From 14289bc0c8c9c7d142c4695fde02c35b02053427 Mon Sep 17 00:00:00 2001 From: Martin Picco Date: Sun, 30 Apr 2023 21:11:46 -0300 Subject: [PATCH] Release: 0.0.1-beta.5 (#488) * Add gas estimates for mainnet * Bump some mainnet gas estimations * [347] create associated token account pending/error state (#450) * start * update: add loader on create associated token acccount warning * [397] disable token modal and filter tokens (#451) * fix: disable opening token modal until wallet and network are selected * update: filter out tokens with 0 balance * fix: allow undefined to pass through filter * fix: allow override of solana rpc (#459) * Bump aggregator sdk packages to solve issue with eth_watchAsset and wallet connect wallets. Add logic to prevent disconnecting when the accountsChanged event is tirggered but the accounts haven't actually changed (e.g. when switching networks) * Create bug_template GH issue template (#462) * Rename bug_template to bug-template.md * add: option for integration to specify default bridge parameters (#461) * add: option for integration to specify default bridge parameters * add: validation for bridge default values * Change default testnet environment rpc for solana to its devnet cluster (#471) * fix: make terms of service link and powered by wormhole more visible across themes (#472) * [#333] Disable controls when a transaction is in progress (#470) * Disable controls when a transaction is in progress * Address review comments * Keep color fill on from fields when transaction is in progress * [344] fix solana transfer token error (#473) * [454] tokens list (#476) * nit: change tokenSymbol to tokenKey (#477) * Fix config key in package readme (#480) * lint: use effect dependencies (#481) * lint: fill in dependency arrays * fix: clear maxSwapAmt when payment option changes to manual * fix: stop trm calls when getting 429 * Update NPM readme `environment` -> `env`, add a few line breaks for readability, bump version number for next release * fix: clear amount when token is cleared * Prepare release-0.0.1-beta.5 --------- Co-authored-by: anondev2323 <122566365+anondev2323@users.noreply.github.com> Co-authored-by: Tony Jin Co-authored-by: Tony Jin Co-authored-by: anondev2323 --- .github/ISSUE_TEMPLATE/bug-template.md | 22 + builder/package-lock.json | 14 +- builder/package.json | 2 +- netlify.toml | 4 + package-lock.json | 47413 ++++++++++++++++ sdk/package-lock.json | 333 +- sdk/package.json | 2 +- sdk/src/config/TESTNET.ts | 2 +- sdk/src/contexts/solana/index.ts | 14 +- wormhole-connect-loader/README.md | 76 +- wormhole-connect-loader/dist/main.css | 2 + wormhole-connect-loader/dist/main.js | 5 +- wormhole-connect-loader/package-lock.json | 4 +- wormhole-connect-loader/package.json | 2 +- wormhole-connect-loader/src/index.tsx | 4 +- wormhole-connect-loader/src/types.ts | 9 +- wormhole-connect/config-overrides.js | 1 + wormhole-connect/package-lock.json | 129 +- wormhole-connect/package.json | 10 +- wormhole-connect/src/AppRouter.tsx | 2 +- .../src/components/AlertBanner.tsx | 1 - .../src/components/ConnectWallet.tsx | 102 +- .../src/components/InputTransparent.tsx | 2 +- wormhole-connect/src/config/index.ts | 23 +- wormhole-connect/src/config/mainnet.ts | 200 +- wormhole-connect/src/config/testnet.ts | 68 +- wormhole-connect/src/config/types.ts | 12 + wormhole-connect/src/config/utils.ts | 57 + wormhole-connect/src/icons/TokenIcons.tsx | 128 + wormhole-connect/src/sdk/gasEstimates.ts | 7 +- wormhole-connect/src/sdk/index.ts | 4 +- wormhole-connect/src/store/transfer.ts | 18 +- wormhole-connect/src/utils/index.ts | 2 +- wormhole-connect/src/utils/style.ts | 1 + .../src/utils/transferValidation.ts | 11 +- wormhole-connect/src/utils/wallet.ts | 5 +- wormhole-connect/src/views/Bridge/Bridge.tsx | 6 +- .../src/views/Bridge/Collapse.tsx | 21 +- .../src/views/Bridge/GasOptions.tsx | 10 +- .../src/views/Bridge/Inputs.tsx/From.tsx | 11 +- .../src/views/Bridge/Inputs.tsx/Inputs.tsx | 9 +- .../src/views/Bridge/Inputs.tsx/Select.tsx | 11 +- .../src/views/Bridge/Inputs.tsx/To.tsx | 207 +- .../src/views/Bridge/Modals/TokensModal.tsx | 37 +- .../src/views/Bridge/NativeGasSlider.tsx | 2 +- .../src/views/Bridge/NetworkTile.tsx | 12 +- wormhole-connect/src/views/Bridge/Preview.tsx | 1 + wormhole-connect/src/views/Bridge/Send.tsx | 92 +- .../src/views/Redeem/AddToWallet.tsx | 9 +- .../src/views/Redeem/Confirmations.tsx | 15 +- .../src/views/Redeem/SendFrom.tsx | 13 +- wormhole-connect/src/views/Redeem/SendTo.tsx | 22 +- wormhole-connect/src/views/WalletModal.tsx | 33 +- 53 files changed, 48821 insertions(+), 381 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug-template.md create mode 100644 netlify.toml create mode 100644 package-lock.json create mode 100644 wormhole-connect/src/config/utils.ts diff --git a/.github/ISSUE_TEMPLATE/bug-template.md b/.github/ISSUE_TEMPLATE/bug-template.md new file mode 100644 index 000000000..23edea679 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-template.md @@ -0,0 +1,22 @@ +--- +name: Bug Template +about: Report a bug from a developer or end user +title: "[Bug]" +labels: ["bug", "integration-support"] +assignees: '' + +--- + +## Before you proceed + + - Check if this is already reported in another issue + - Leave a comment on the issue if there is information missing or you have a question + +## Describe the issue in detail + + - Add step-by-step repro instructions + - Add information about your environment: OS, browser, browser version, Connect package version + - Add information about your toolchain: package manager, package bundler + - If possible, add a screenshot of the issue, raw debug output, and/or a screenshot of the console log + +## What is the expected/desired behavior diff --git a/builder/package-lock.json b/builder/package-lock.json index 5a4a77556..6c5d315b3 100644 --- a/builder/package-lock.json +++ b/builder/package-lock.json @@ -18,7 +18,7 @@ "@types/node": "^16.18.25", "@types/react": "^18.2.0", "@types/react-dom": "^18.2.1", - "@wormhole-foundation/wormhole-connect": "^0.0.1-beta.3", + "@wormhole-foundation/wormhole-connect": "^0.0.1-beta.4", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", @@ -4353,9 +4353,9 @@ } }, "node_modules/@wormhole-foundation/wormhole-connect": { - "version": "0.0.1-beta.3", - "resolved": "https://registry.npmjs.org/@wormhole-foundation/wormhole-connect/-/wormhole-connect-0.0.1-beta.3.tgz", - "integrity": "sha512-I8rHzFjTHI2LiUxsImaxFZSS7OBjy/HHmUY21ODx+U37jwtuCYjva/3vRRGrPmxV7VNoUCyRcm2zstvl6tDCOQ==", + "version": "0.0.1-beta.4", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/wormhole-connect/-/wormhole-connect-0.0.1-beta.4.tgz", + "integrity": "sha512-sRw6fqJNiPs6GLXo75FOHy6GcZgSnTfdbzuNe7M+i+YdKTPJ+nifE02/UnVa8azH02PcsM8sIkQTo/jQhTwzwg==", "dependencies": { "@mui/material": "^5.12.1" }, @@ -18766,9 +18766,9 @@ } }, "@wormhole-foundation/wormhole-connect": { - "version": "0.0.1-beta.3", - "resolved": "https://registry.npmjs.org/@wormhole-foundation/wormhole-connect/-/wormhole-connect-0.0.1-beta.3.tgz", - "integrity": "sha512-I8rHzFjTHI2LiUxsImaxFZSS7OBjy/HHmUY21ODx+U37jwtuCYjva/3vRRGrPmxV7VNoUCyRcm2zstvl6tDCOQ==", + "version": "0.0.1-beta.4", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/wormhole-connect/-/wormhole-connect-0.0.1-beta.4.tgz", + "integrity": "sha512-sRw6fqJNiPs6GLXo75FOHy6GcZgSnTfdbzuNe7M+i+YdKTPJ+nifE02/UnVa8azH02PcsM8sIkQTo/jQhTwzwg==", "requires": { "@mui/material": "^5.12.1" } diff --git a/builder/package.json b/builder/package.json index c75319891..1d8b5dab5 100644 --- a/builder/package.json +++ b/builder/package.json @@ -13,7 +13,7 @@ "@types/node": "^16.18.25", "@types/react": "^18.2.0", "@types/react-dom": "^18.2.1", - "@wormhole-foundation/wormhole-connect": "^0.0.1-beta.3", + "@wormhole-foundation/wormhole-connect": "^0.0.1-beta.4", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 000000000..08654a763 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,4 @@ +[context.mainnet] + command = "npm run build:prod" +[context.production] + command = "npm run build:prod" diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 000000000..a8d8ad017 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,47413 @@ +{ + "name": "wormhole-foundation", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "wormhole-foundation", + "workspaces": [ + "wormhole-connect", + "sdk", + "builder" + ], + "dependencies": { + "tss-react": "^4.7.7" + } + }, + "builder": { + "name": "wormhole-connect-builder", + "version": "0.1.0", + "dependencies": { + "@emotion/react": "^11.10.6", + "@emotion/styled": "^11.10.6", + "@mui/material": "^5.11.9", + "@testing-library/jest-dom": "^5.16.5", + "@testing-library/react": "^13.4.0", + "@testing-library/user-event": "^13.5.0", + "@types/jest": "^27.5.2", + "@types/node": "^16.18.25", + "@types/react": "^18.2.0", + "@types/react-dom": "^18.2.1", + "@wormhole-foundation/wormhole-connect": "^0.0.1-beta.4", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-scripts": "5.0.1", + "tss-react": "^4.8.2", + "typescript": "^4.9.5", + "web-vitals": "^2.1.4" + } + }, + "node_modules/@adobe/css-tools": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.2.0.tgz", + "integrity": "sha512-E09FiIft46CmH5Qnjb0wsW54/YQd69LsxeKUOWawmws1XWvyFGURnAChH0mlr7YPFR1ofwvUQfcL0J3lMxXqPA==" + }, + "node_modules/@alloc/quick-lru": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@apocentre/alias-sampling": { + "version": "0.5.3", + "license": "GPL" + }, + "node_modules/@apollo/client": { + "version": "3.7.12", + "license": "MIT", + "dependencies": { + "@graphql-typed-document-node/core": "^3.1.1", + "@wry/context": "^0.7.0", + "@wry/equality": "^0.5.0", + "@wry/trie": "^0.3.0", + "graphql-tag": "^2.12.6", + "hoist-non-react-statics": "^3.3.2", + "optimism": "^0.16.2", + "prop-types": "^15.7.2", + "response-iterator": "^0.2.6", + "symbol-observable": "^4.0.0", + "ts-invariant": "^0.10.3", + "tslib": "^2.3.0", + "zen-observable-ts": "^1.2.5" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0", + "graphql-ws": "^5.5.5", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0", + "subscriptions-transport-ws": "^0.9.0 || ^0.11.0" + }, + "peerDependenciesMeta": { + "graphql-ws": { + "optional": true + }, + "react": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "subscriptions-transport-ws": { + "optional": true + } + } + }, + "node_modules/@babel/code-frame": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@babel/highlight": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.21.4", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.21.4", + "@babel/generator": "^7.21.4", + "@babel/helper-compilation-targets": "^7.21.4", + "@babel/helper-module-transforms": "^7.21.2", + "@babel/helpers": "^7.21.0", + "@babel/parser": "^7.21.4", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.21.4", + "@babel/types": "^7.21.4", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/eslint-parser": { + "version": "7.21.3", + "license": "MIT", + "dependencies": { + "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", + "eslint-visitor-keys": "^2.1.0", + "semver": "^6.3.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || >=14.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.11.0", + "eslint": "^7.5.0 || ^8.0.0" + } + }, + "node_modules/@babel/eslint-parser/node_modules/eslint-visitor-keys": { + "version": "2.1.0", + "license": "Apache-2.0", + "engines": { + "node": ">=10" + } + }, + "node_modules/@babel/generator": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.21.4", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.18.9", + "license": "MIT", + "dependencies": { + "@babel/helper-explode-assignable-expression": "^7.18.6", + "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.21.4", + "@babel/helper-validator-option": "^7.21.0", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-member-expression-to-functions": "^7.21.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-replace-supers": "^7.20.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/helper-split-export-declaration": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "regexpu-core": "^5.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.3.3", + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.17.7", + "@babel/helper-plugin-utils": "^7.16.7", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0-0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.18.9", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-explode-assignable-expression": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.21.0", + "license": "MIT", + "dependencies": { + "@babel/template": "^7.20.7", + "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.21.0", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.21.4" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.21.2", + "license": "MIT", + "dependencies": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-simple-access": "^7.20.2", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.19.1", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.21.2", + "@babel/types": "^7.21.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.20.2", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.18.9", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-wrap-function": "^7.18.9", + "@babel/types": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.20.7", + "license": "MIT", + "dependencies": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-member-expression-to-functions": "^7.20.7", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.7", + "@babel/types": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.20.2", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.20.0", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.20.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.19.4", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.19.1", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.21.0", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.20.5", + "license": "MIT", + "dependencies": { + "@babel/helper-function-name": "^7.19.0", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.20.5", + "@babel/types": "^7.20.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.21.0", + "license": "MIT", + "dependencies": { + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.21.0", + "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.21.4", + "license": "MIT", + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.20.7", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-proposal-optional-chaining": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-proposal-async-generator-functions": { + "version": "7.20.7", + "license": "MIT", + "dependencies": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-remap-async-to-generator": "^7.18.9", + "@babel/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-class-properties": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-class-static-block": { + "version": "7.21.0", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-proposal-decorators": { + "version": "7.21.0", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-replace-supers": "^7.20.7", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/plugin-syntax-decorators": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-dynamic-import": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-export-namespace-from": { + "version": "7.18.9", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-json-strings": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-logical-assignment-operators": { + "version": "7.20.7", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-numeric-separator": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-object-rest-spread": { + "version": "7.20.7", + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.20.5", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-optional-catch-binding": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-optional-chaining": { + "version": "7.21.0", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-proposal-unicode-property-regex": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-decorators": { + "version": "7.21.0", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-flow": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.20.0", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.19.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.20.7", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.20.7", + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-remap-async-to-generator": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.21.0", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.21.0", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-replace-supers": "^7.20.7", + "@babel/helper-split-export-declaration": "^7.18.6", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.20.7", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/template": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.21.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.18.9", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-flow-strip-types": { + "version": "7.21.0", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-flow": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.21.0", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.18.9", + "license": "MIT", + "dependencies": { + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-function-name": "^7.18.9", + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.18.9", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.20.11", + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.21.2", + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.21.2", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-simple-access": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.20.11", + "license": "MIT", + "dependencies": { + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-validator-identifier": "^7.19.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.20.5", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.20.5", + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-replace-supers": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.21.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-constant-elements": { + "version": "7.21.3", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-display-name": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx": { + "version": "7.21.0", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-jsx": "^7.18.6", + "@babel/types": "^7.21.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-jsx-development": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/plugin-transform-react-jsx": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-react-pure-annotations": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.20.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "regenerator-transform": "^0.15.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-runtime": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-plugin-utils": "^7.20.2", + "babel-plugin-polyfill-corejs2": "^0.3.3", + "babel-plugin-polyfill-corejs3": "^0.6.0", + "babel-plugin-polyfill-regenerator": "^0.4.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.20.7", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.18.9", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.18.9", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.21.3", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-typescript": "^7.20.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.18.10", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.21.4", + "@babel/helper-compilation-targets": "^7.21.4", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.20.7", + "@babel/plugin-proposal-async-generator-functions": "^7.20.7", + "@babel/plugin-proposal-class-properties": "^7.18.6", + "@babel/plugin-proposal-class-static-block": "^7.21.0", + "@babel/plugin-proposal-dynamic-import": "^7.18.6", + "@babel/plugin-proposal-export-namespace-from": "^7.18.9", + "@babel/plugin-proposal-json-strings": "^7.18.6", + "@babel/plugin-proposal-logical-assignment-operators": "^7.20.7", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", + "@babel/plugin-proposal-numeric-separator": "^7.18.6", + "@babel/plugin-proposal-object-rest-spread": "^7.20.7", + "@babel/plugin-proposal-optional-catch-binding": "^7.18.6", + "@babel/plugin-proposal-optional-chaining": "^7.21.0", + "@babel/plugin-proposal-private-methods": "^7.18.6", + "@babel/plugin-proposal-private-property-in-object": "^7.21.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.18.6", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.20.0", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-transform-arrow-functions": "^7.20.7", + "@babel/plugin-transform-async-to-generator": "^7.20.7", + "@babel/plugin-transform-block-scoped-functions": "^7.18.6", + "@babel/plugin-transform-block-scoping": "^7.21.0", + "@babel/plugin-transform-classes": "^7.21.0", + "@babel/plugin-transform-computed-properties": "^7.20.7", + "@babel/plugin-transform-destructuring": "^7.21.3", + "@babel/plugin-transform-dotall-regex": "^7.18.6", + "@babel/plugin-transform-duplicate-keys": "^7.18.9", + "@babel/plugin-transform-exponentiation-operator": "^7.18.6", + "@babel/plugin-transform-for-of": "^7.21.0", + "@babel/plugin-transform-function-name": "^7.18.9", + "@babel/plugin-transform-literals": "^7.18.9", + "@babel/plugin-transform-member-expression-literals": "^7.18.6", + "@babel/plugin-transform-modules-amd": "^7.20.11", + "@babel/plugin-transform-modules-commonjs": "^7.21.2", + "@babel/plugin-transform-modules-systemjs": "^7.20.11", + "@babel/plugin-transform-modules-umd": "^7.18.6", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.20.5", + "@babel/plugin-transform-new-target": "^7.18.6", + "@babel/plugin-transform-object-super": "^7.18.6", + "@babel/plugin-transform-parameters": "^7.21.3", + "@babel/plugin-transform-property-literals": "^7.18.6", + "@babel/plugin-transform-regenerator": "^7.20.5", + "@babel/plugin-transform-reserved-words": "^7.18.6", + "@babel/plugin-transform-shorthand-properties": "^7.18.6", + "@babel/plugin-transform-spread": "^7.20.7", + "@babel/plugin-transform-sticky-regex": "^7.18.6", + "@babel/plugin-transform-template-literals": "^7.18.9", + "@babel/plugin-transform-typeof-symbol": "^7.18.9", + "@babel/plugin-transform-unicode-escapes": "^7.18.10", + "@babel/plugin-transform-unicode-regex": "^7.18.6", + "@babel/preset-modules": "^0.1.5", + "@babel/types": "^7.21.4", + "babel-plugin-polyfill-corejs2": "^0.3.3", + "babel-plugin-polyfill-corejs3": "^0.6.0", + "babel-plugin-polyfill-regenerator": "^0.4.1", + "core-js-compat": "^3.25.1", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.5", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-react": { + "version": "7.18.6", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-validator-option": "^7.18.6", + "@babel/plugin-transform-react-display-name": "^7.18.6", + "@babel/plugin-transform-react-jsx": "^7.18.6", + "@babel/plugin-transform-react-jsx-development": "^7.18.6", + "@babel/plugin-transform-react-pure-annotations": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-typescript": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-syntax-jsx": "^7.21.4", + "@babel/plugin-transform-modules-commonjs": "^7.21.2", + "@babel/plugin-transform-typescript": "^7.21.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/regjsgen": { + "version": "0.8.0", + "license": "MIT" + }, + "node_modules/@babel/runtime": { + "version": "7.21.0", + "license": "MIT", + "dependencies": { + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.20.7", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.21.4", + "@babel/generator": "^7.21.4", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.21.4", + "@babel/types": "^7.21.4", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.21.4", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.19.4", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "license": "MIT" + }, + "node_modules/@blocto/sdk": { + "version": "0.2.22", + "license": "MIT", + "dependencies": { + "bs58": "^4.0.1", + "buffer": "^6.0.3", + "eip1193-provider": "^1.0.1", + "js-sha3": "^0.8.0" + }, + "peerDependencies": { + "@solana/web3.js": "^1.30.2" + } + }, + "node_modules/@censo-custody/solana-wallet-adapter": { + "version": "0.1.0", + "license": "Apache-2.0", + "dependencies": { + "@solana/web3.js": "^1.44.3", + "bs58": "^4.0.1", + "eventemitter3": "^4.0.7", + "uuid": "^8.3.2" + } + }, + "node_modules/@certusone/wormhole-sdk": { + "version": "0.9.14", + "license": "Apache-2.0", + "dependencies": { + "@certusone/wormhole-sdk-proto-web": "0.0.6", + "@certusone/wormhole-sdk-wasm": "^0.0.1", + "@coral-xyz/borsh": "0.2.6", + "@injectivelabs/networks": "1.10.7", + "@injectivelabs/sdk-ts": "1.10.47", + "@injectivelabs/utils": "1.10.5", + "@project-serum/anchor": "^0.25.0", + "@solana/spl-token": "^0.3.5", + "@solana/web3.js": "^1.66.2", + "@terra-money/terra.js": "^3.1.3", + "@xpla/xpla.js": "^0.2.1", + "algosdk": "^1.15.0", + "aptos": "1.5.0", + "axios": "^0.24.0", + "bech32": "^2.0.0", + "binary-parser": "^2.2.1", + "bs58": "^4.0.1", + "elliptic": "^6.5.4", + "js-base64": "^3.6.1", + "near-api-js": "^1.0.0" + } + }, + "node_modules/@certusone/wormhole-sdk-proto-web": { + "version": "0.0.6", + "license": "Apache-2.0", + "dependencies": { + "@improbable-eng/grpc-web": "^0.15.0", + "protobufjs": "^7.0.0", + "rxjs": "^7.5.6" + } + }, + "node_modules/@certusone/wormhole-sdk-wasm": { + "version": "0.0.1", + "license": "Apache-2.0", + "dependencies": { + "@types/long": "^4.0.2", + "@types/node": "^18.0.3" + } + }, + "node_modules/@certusone/wormhole-sdk-wasm/node_modules/@types/node": { + "version": "18.16.1", + "license": "MIT" + }, + "node_modules/@certusone/wormhole-sdk/node_modules/axios": { + "version": "0.24.0", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.14.4" + } + }, + "node_modules/@chainsafe/as-sha256": { + "version": "0.4.1", + "license": "Apache-2.0" + }, + "node_modules/@chainsafe/persistent-merkle-tree": { + "version": "0.6.1", + "license": "Apache-2.0", + "dependencies": { + "@chainsafe/as-sha256": "^0.4.1", + "@noble/hashes": "^1.3.0" + } + }, + "node_modules/@chainsafe/ssz": { + "version": "0.11.1", + "license": "Apache-2.0", + "dependencies": { + "@chainsafe/as-sha256": "^0.4.1", + "@chainsafe/persistent-merkle-tree": "^0.6.1" + } + }, + "node_modules/@classic-terra/terra.proto": { + "version": "1.1.0", + "license": "Apache-2.0", + "dependencies": { + "@improbable-eng/grpc-web": "^0.14.1", + "google-protobuf": "^3.17.3", + "long": "^4.0.0", + "protobufjs": "~6.11.2" + } + }, + "node_modules/@classic-terra/terra.proto/node_modules/@improbable-eng/grpc-web": { + "version": "0.14.1", + "license": "Apache-2.0", + "dependencies": { + "browser-headers": "^0.4.1" + }, + "peerDependencies": { + "google-protobuf": "^3.14.0" + } + }, + "node_modules/@classic-terra/terra.proto/node_modules/protobufjs": { + "version": "6.11.3", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" + } + }, + "node_modules/@coinbase/wallet-sdk": { + "version": "3.6.6", + "license": "Apache-2.0", + "dependencies": { + "@metamask/safe-event-emitter": "2.0.0", + "@solana/web3.js": "^1.70.1", + "bind-decorator": "^1.0.11", + "bn.js": "^5.1.1", + "buffer": "^6.0.3", + "clsx": "^1.1.0", + "eth-block-tracker": "6.1.0", + "eth-json-rpc-filters": "5.1.0", + "eth-rpc-errors": "4.0.2", + "json-rpc-engine": "6.1.0", + "keccak": "^3.0.1", + "preact": "^10.5.9", + "qs": "^6.10.3", + "rxjs": "^6.6.3", + "sha.js": "^2.4.11", + "stream-browserify": "^3.0.0", + "util": "^0.12.4" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/@coinbase/wallet-sdk/node_modules/eth-rpc-errors": { + "version": "4.0.2", + "license": "MIT", + "dependencies": { + "fast-safe-stringify": "^2.0.6" + } + }, + "node_modules/@coinbase/wallet-sdk/node_modules/preact": { + "version": "10.13.2", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + } + }, + "node_modules/@coinbase/wallet-sdk/node_modules/rxjs": { + "version": "6.6.7", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/@coinbase/wallet-sdk/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@confio/ics23": { + "version": "0.6.8", + "license": "Apache-2.0", + "dependencies": { + "@noble/hashes": "^1.0.0", + "protobufjs": "^6.8.8" + } + }, + "node_modules/@confio/ics23/node_modules/protobufjs": { + "version": "6.11.3", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" + } + }, + "node_modules/@coral-xyz/borsh": { + "version": "0.2.6", + "license": "Apache-2.0", + "dependencies": { + "bn.js": "^5.1.2", + "buffer-layout": "^1.2.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@solana/web3.js": "^1.2.0" + } + }, + "node_modules/@cosmjs/amino": { + "version": "0.30.1", + "license": "Apache-2.0", + "dependencies": { + "@cosmjs/crypto": "^0.30.1", + "@cosmjs/encoding": "^0.30.1", + "@cosmjs/math": "^0.30.1", + "@cosmjs/utils": "^0.30.1" + } + }, + "node_modules/@cosmjs/crypto": { + "version": "0.30.1", + "license": "Apache-2.0", + "dependencies": { + "@cosmjs/encoding": "^0.30.1", + "@cosmjs/math": "^0.30.1", + "@cosmjs/utils": "^0.30.1", + "@noble/hashes": "^1", + "bn.js": "^5.2.0", + "elliptic": "^6.5.4", + "libsodium-wrappers": "^0.7.6" + } + }, + "node_modules/@cosmjs/encoding": { + "version": "0.30.1", + "license": "Apache-2.0", + "dependencies": { + "base64-js": "^1.3.0", + "bech32": "^1.1.4", + "readonly-date": "^1.0.0" + } + }, + "node_modules/@cosmjs/encoding/node_modules/bech32": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/@cosmjs/json-rpc": { + "version": "0.30.1", + "license": "Apache-2.0", + "dependencies": { + "@cosmjs/stream": "^0.30.1", + "xstream": "^11.14.0" + } + }, + "node_modules/@cosmjs/math": { + "version": "0.30.1", + "license": "Apache-2.0", + "dependencies": { + "bn.js": "^5.2.0" + } + }, + "node_modules/@cosmjs/proto-signing": { + "version": "0.30.1", + "license": "Apache-2.0", + "dependencies": { + "@cosmjs/amino": "^0.30.1", + "@cosmjs/crypto": "^0.30.1", + "@cosmjs/encoding": "^0.30.1", + "@cosmjs/math": "^0.30.1", + "@cosmjs/utils": "^0.30.1", + "cosmjs-types": "^0.7.1", + "long": "^4.0.0" + } + }, + "node_modules/@cosmjs/socket": { + "version": "0.30.1", + "license": "Apache-2.0", + "dependencies": { + "@cosmjs/stream": "^0.30.1", + "isomorphic-ws": "^4.0.1", + "ws": "^7", + "xstream": "^11.14.0" + } + }, + "node_modules/@cosmjs/stargate": { + "version": "0.30.1", + "license": "Apache-2.0", + "dependencies": { + "@confio/ics23": "^0.6.8", + "@cosmjs/amino": "^0.30.1", + "@cosmjs/encoding": "^0.30.1", + "@cosmjs/math": "^0.30.1", + "@cosmjs/proto-signing": "^0.30.1", + "@cosmjs/stream": "^0.30.1", + "@cosmjs/tendermint-rpc": "^0.30.1", + "@cosmjs/utils": "^0.30.1", + "cosmjs-types": "^0.7.1", + "long": "^4.0.0", + "protobufjs": "~6.11.3", + "xstream": "^11.14.0" + } + }, + "node_modules/@cosmjs/stargate/node_modules/protobufjs": { + "version": "6.11.3", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" + } + }, + "node_modules/@cosmjs/stream": { + "version": "0.30.1", + "license": "Apache-2.0", + "dependencies": { + "xstream": "^11.14.0" + } + }, + "node_modules/@cosmjs/tendermint-rpc": { + "version": "0.30.1", + "license": "Apache-2.0", + "dependencies": { + "@cosmjs/crypto": "^0.30.1", + "@cosmjs/encoding": "^0.30.1", + "@cosmjs/json-rpc": "^0.30.1", + "@cosmjs/math": "^0.30.1", + "@cosmjs/socket": "^0.30.1", + "@cosmjs/stream": "^0.30.1", + "@cosmjs/utils": "^0.30.1", + "axios": "^0.21.2", + "readonly-date": "^1.0.0", + "xstream": "^11.14.0" + } + }, + "node_modules/@cosmjs/tendermint-rpc/node_modules/axios": { + "version": "0.21.4", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.14.0" + } + }, + "node_modules/@cosmjs/utils": { + "version": "0.30.1", + "license": "Apache-2.0" + }, + "node_modules/@csstools/normalize.css": { + "version": "12.0.0", + "license": "CC0-1.0" + }, + "node_modules/@csstools/postcss-cascade-layers": { + "version": "1.1.1", + "license": "CC0-1.0", + "dependencies": { + "@csstools/selector-specificity": "^2.0.2", + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-color-function": { + "version": "1.1.1", + "license": "CC0-1.0", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-font-format-keywords": { + "version": "1.0.1", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-hwb-function": { + "version": "1.0.2", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-ic-unit": { + "version": "1.0.1", + "license": "CC0-1.0", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-is-pseudo-class": { + "version": "2.0.7", + "license": "CC0-1.0", + "dependencies": { + "@csstools/selector-specificity": "^2.0.0", + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-nested-calc": { + "version": "1.0.0", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-normalize-display-values": { + "version": "1.0.1", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-oklab-function": { + "version": "1.1.1", + "license": "CC0-1.0", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-progressive-custom-properties": { + "version": "1.3.0", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.3" + } + }, + "node_modules/@csstools/postcss-stepped-value-functions": { + "version": "1.0.1", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-text-decoration-shorthand": { + "version": "1.0.0", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-trigonometric-functions": { + "version": "1.0.2", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/postcss-unset-value": { + "version": "1.0.2", + "license": "CC0-1.0", + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/@csstools/selector-specificity": { + "version": "2.2.0", + "license": "CC0-1.0", + "engines": { + "node": "^14 || ^16 || >=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss-selector-parser": "^6.0.10" + } + }, + "node_modules/@emotion/babel-plugin": { + "version": "11.10.6", + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.16.7", + "@babel/runtime": "^7.18.3", + "@emotion/hash": "^0.9.0", + "@emotion/memoize": "^0.8.0", + "@emotion/serialize": "^1.1.1", + "babel-plugin-macros": "^3.1.0", + "convert-source-map": "^1.5.0", + "escape-string-regexp": "^4.0.0", + "find-root": "^1.1.0", + "source-map": "^0.5.7", + "stylis": "4.1.3" + } + }, + "node_modules/@emotion/cache": { + "version": "11.10.7", + "license": "MIT", + "dependencies": { + "@emotion/memoize": "^0.8.0", + "@emotion/sheet": "^1.2.1", + "@emotion/utils": "^1.2.0", + "@emotion/weak-memoize": "^0.3.0", + "stylis": "4.1.3" + } + }, + "node_modules/@emotion/hash": { + "version": "0.9.0", + "license": "MIT" + }, + "node_modules/@emotion/is-prop-valid": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "@emotion/memoize": "^0.8.0" + } + }, + "node_modules/@emotion/memoize": { + "version": "0.8.0", + "license": "MIT" + }, + "node_modules/@emotion/react": { + "version": "11.10.6", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.10.6", + "@emotion/cache": "^11.10.5", + "@emotion/serialize": "^1.1.1", + "@emotion/use-insertion-effect-with-fallbacks": "^1.0.0", + "@emotion/utils": "^1.2.0", + "@emotion/weak-memoize": "^0.3.0", + "hoist-non-react-statics": "^3.3.1" + }, + "peerDependencies": { + "react": ">=16.8.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@emotion/serialize": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "@emotion/hash": "^0.9.0", + "@emotion/memoize": "^0.8.0", + "@emotion/unitless": "^0.8.0", + "@emotion/utils": "^1.2.0", + "csstype": "^3.0.2" + } + }, + "node_modules/@emotion/sheet": { + "version": "1.2.1", + "license": "MIT" + }, + "node_modules/@emotion/styled": { + "version": "11.10.6", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.10.6", + "@emotion/is-prop-valid": "^1.2.0", + "@emotion/serialize": "^1.1.1", + "@emotion/use-insertion-effect-with-fallbacks": "^1.0.0", + "@emotion/utils": "^1.2.0" + }, + "peerDependencies": { + "@emotion/react": "^11.0.0-rc.0", + "react": ">=16.8.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@emotion/unitless": { + "version": "0.8.0", + "license": "MIT" + }, + "node_modules/@emotion/use-insertion-effect-with-fallbacks": { + "version": "1.0.0", + "license": "MIT", + "peerDependencies": { + "react": ">=16.8.0" + } + }, + "node_modules/@emotion/utils": { + "version": "1.2.0", + "license": "MIT" + }, + "node_modules/@emotion/weak-memoize": { + "version": "0.3.0", + "license": "MIT" + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.0", + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.5.0", + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.0.2", + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.5.1", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/argparse": { + "version": "2.0.1", + "license": "Python-2.0" + }, + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.20.0", + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/eslintrc/node_modules/js-yaml": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@eslint/eslintrc/node_modules/type-fest": { + "version": "0.20.2", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@eslint/js": { + "version": "8.39.0", + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@ethereumjs/common": { + "version": "2.6.5", + "license": "MIT", + "dependencies": { + "crc-32": "^1.2.0", + "ethereumjs-util": "^7.1.5" + } + }, + "node_modules/@ethereumjs/rlp": { + "version": "4.0.1", + "license": "MPL-2.0", + "bin": { + "rlp": "bin/rlp" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@ethereumjs/tx": { + "version": "3.5.2", + "license": "MPL-2.0", + "dependencies": { + "@ethereumjs/common": "^2.6.4", + "ethereumjs-util": "^7.1.5" + } + }, + "node_modules/@ethereumjs/util": { + "version": "8.0.6", + "license": "MPL-2.0", + "dependencies": { + "@chainsafe/ssz": "^0.11.1", + "@ethereumjs/rlp": "^4.0.1", + "ethereum-cryptography": "^2.0.0", + "micro-ftch": "^0.3.1" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@ethersproject/abi": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/hash": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/strings": "^5.7.0" + } + }, + "node_modules/@ethersproject/abstract-provider": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/networks": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/web": "^5.7.0" + } + }, + "node_modules/@ethersproject/abstract-signer": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0" + } + }, + "node_modules/@ethersproject/address": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/rlp": "^5.7.0" + } + }, + "node_modules/@ethersproject/base64": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bytes": "^5.7.0" + } + }, + "node_modules/@ethersproject/basex": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/properties": "^5.7.0" + } + }, + "node_modules/@ethersproject/bignumber": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "bn.js": "^5.2.1" + } + }, + "node_modules/@ethersproject/bytes": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/logger": "^5.7.0" + } + }, + "node_modules/@ethersproject/constants": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bignumber": "^5.7.0" + } + }, + "node_modules/@ethersproject/contracts": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/abi": "^5.7.0", + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/transactions": "^5.7.0" + } + }, + "node_modules/@ethersproject/hash": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/base64": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/strings": "^5.7.0" + } + }, + "node_modules/@ethersproject/hdnode": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/basex": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/pbkdf2": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/sha2": "^5.7.0", + "@ethersproject/signing-key": "^5.7.0", + "@ethersproject/strings": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/wordlists": "^5.7.0" + } + }, + "node_modules/@ethersproject/json-wallets": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/hdnode": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/pbkdf2": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/random": "^5.7.0", + "@ethersproject/strings": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "aes-js": "3.0.0", + "scrypt-js": "3.0.1" + } + }, + "node_modules/@ethersproject/json-wallets/node_modules/aes-js": { + "version": "3.0.0", + "license": "MIT" + }, + "node_modules/@ethersproject/keccak256": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bytes": "^5.7.0", + "js-sha3": "0.8.0" + } + }, + "node_modules/@ethersproject/logger": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT" + }, + "node_modules/@ethersproject/networks": { + "version": "5.7.1", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/logger": "^5.7.0" + } + }, + "node_modules/@ethersproject/pbkdf2": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/sha2": "^5.7.0" + } + }, + "node_modules/@ethersproject/properties": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/logger": "^5.7.0" + } + }, + "node_modules/@ethersproject/providers": { + "version": "5.7.2", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/base64": "^5.7.0", + "@ethersproject/basex": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/hash": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/networks": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/random": "^5.7.0", + "@ethersproject/rlp": "^5.7.0", + "@ethersproject/sha2": "^5.7.0", + "@ethersproject/strings": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/web": "^5.7.0", + "bech32": "1.1.4", + "ws": "7.4.6" + } + }, + "node_modules/@ethersproject/providers/node_modules/bech32": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/@ethersproject/providers/node_modules/ws": { + "version": "7.4.6", + "license": "MIT", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/@ethersproject/random": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0" + } + }, + "node_modules/@ethersproject/rlp": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0" + } + }, + "node_modules/@ethersproject/sha2": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "hash.js": "1.1.7" + } + }, + "node_modules/@ethersproject/signing-key": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "bn.js": "^5.2.1", + "elliptic": "6.5.4", + "hash.js": "1.1.7" + } + }, + "node_modules/@ethersproject/solidity": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/sha2": "^5.7.0", + "@ethersproject/strings": "^5.7.0" + } + }, + "node_modules/@ethersproject/strings": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/logger": "^5.7.0" + } + }, + "node_modules/@ethersproject/transactions": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/rlp": "^5.7.0", + "@ethersproject/signing-key": "^5.7.0" + } + }, + "node_modules/@ethersproject/units": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/logger": "^5.7.0" + } + }, + "node_modules/@ethersproject/wallet": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/hash": "^5.7.0", + "@ethersproject/hdnode": "^5.7.0", + "@ethersproject/json-wallets": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/random": "^5.7.0", + "@ethersproject/signing-key": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/wordlists": "^5.7.0" + } + }, + "node_modules/@ethersproject/web": { + "version": "5.7.1", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/base64": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/strings": "^5.7.0" + } + }, + "node_modules/@ethersproject/wordlists": { + "version": "5.7.0", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/hash": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/strings": "^5.7.0" + } + }, + "node_modules/@fractalwagmi/popup-connection": { + "version": "1.0.21", + "license": "ISC", + "peerDependencies": { + "react": "^17.0.2 || ^18", + "react-dom": "^17.0.2 || ^18" + } + }, + "node_modules/@fractalwagmi/solana-wallet-adapter": { + "version": "0.1.1", + "license": "ISC", + "dependencies": { + "@fractalwagmi/popup-connection": "^1.0.18", + "@solana/wallet-adapter-base": "^0.9.17", + "bs58": "^5.0.0" + } + }, + "node_modules/@fractalwagmi/solana-wallet-adapter/node_modules/base-x": { + "version": "4.0.0", + "license": "MIT" + }, + "node_modules/@fractalwagmi/solana-wallet-adapter/node_modules/bs58": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "base-x": "^4.0.0" + } + }, + "node_modules/@graphql-typed-document-node/core": { + "version": "3.2.0", + "license": "MIT", + "peerDependencies": { + "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.11.8", + "license": "Apache-2.0", + "dependencies": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "1.2.1", + "license": "BSD-3-Clause" + }, + "node_modules/@improbable-eng/grpc-web": { + "version": "0.15.0", + "license": "Apache-2.0", + "dependencies": { + "browser-headers": "^0.4.1" + }, + "peerDependencies": { + "google-protobuf": "^3.14.0" + } + }, + "node_modules/@injectivelabs/core-proto-ts": { + "version": "0.0.12", + "license": "MIT", + "dependencies": { + "@injectivelabs/grpc-web": "^0.0.1", + "google-protobuf": "^3.14.0", + "protobufjs": "^7.0.0", + "rxjs": "^7.4.0" + } + }, + "node_modules/@injectivelabs/exceptions": { + "version": "1.10.6", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@injectivelabs/grpc-web": "^0.0.1", + "@injectivelabs/ts-types": "^1.10.5", + "http-status-codes": "^2.2.0", + "link-module-alias": "^1.2.0", + "shx": "^0.3.2" + } + }, + "node_modules/@injectivelabs/grpc-web": { + "version": "0.0.1", + "license": "Apache-2.0", + "dependencies": { + "browser-headers": "^0.4.1" + }, + "peerDependencies": { + "google-protobuf": "^3.14.0" + } + }, + "node_modules/@injectivelabs/grpc-web-node-http-transport": { + "version": "0.0.2", + "license": "Apache-2.0", + "peerDependencies": { + "@injectivelabs/grpc-web": ">=0.0.1" + } + }, + "node_modules/@injectivelabs/grpc-web-react-native-transport": { + "version": "0.0.2", + "license": "Apache-2.0", + "peerDependencies": { + "@injectivelabs/grpc-web": ">=0.0.1" + } + }, + "node_modules/@injectivelabs/indexer-proto-ts": { + "version": "1.10.8-rc.4", + "license": "MIT", + "dependencies": { + "@injectivelabs/grpc-web": "^0.0.1", + "google-protobuf": "^3.14.0", + "protobufjs": "^7.0.0", + "rxjs": "^7.4.0" + } + }, + "node_modules/@injectivelabs/mito-proto-ts": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "@injectivelabs/grpc-web": "^0.0.1", + "google-protobuf": "^3.14.0", + "protobufjs": "^7.0.0", + "rxjs": "^7.4.0" + } + }, + "node_modules/@injectivelabs/networks": { + "version": "1.10.7", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@injectivelabs/exceptions": "^1.10.5", + "@injectivelabs/ts-types": "^1.10.4", + "@injectivelabs/utils": "^1.10.5", + "link-module-alias": "^1.2.0", + "shx": "^0.3.2" + } + }, + "node_modules/@injectivelabs/sdk-ts": { + "version": "1.10.47", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@apollo/client": "^3.5.8", + "@cosmjs/amino": "^0.30.1", + "@cosmjs/proto-signing": "^0.30.1", + "@cosmjs/stargate": "^0.30.1", + "@ethersproject/bytes": "^5.7.0", + "@injectivelabs/core-proto-ts": "^0.0.12", + "@injectivelabs/exceptions": "^1.10.5", + "@injectivelabs/grpc-web": "^0.0.1", + "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", + "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", + "@injectivelabs/indexer-proto-ts": "1.10.8-rc.4", + "@injectivelabs/mito-proto-ts": "1.0.4", + "@injectivelabs/networks": "^1.10.7", + "@injectivelabs/test-utils": "^1.10.2", + "@injectivelabs/token-metadata": "^1.10.25", + "@injectivelabs/ts-types": "^1.10.4", + "@injectivelabs/utils": "^1.10.5", + "@metamask/eth-sig-util": "^4.0.0", + "axios": "^0.27.2", + "bech32": "^2.0.0", + "bip39": "^3.0.4", + "cosmjs-types": "^0.7.1", + "eth-crypto": "^2.6.0", + "ethereumjs-util": "^7.1.4", + "ethers": "^5.7.2", + "google-protobuf": "^3.21.0", + "graphql": "^16.3.0", + "http-status-codes": "^2.2.0", + "js-sha3": "^0.8.0", + "jscrypto": "^1.0.3", + "keccak256": "^1.0.6", + "link-module-alias": "^1.2.0", + "rxjs": "^7.8.0", + "secp256k1": "^4.0.3", + "shx": "^0.3.2", + "snakecase-keys": "^5.4.1" + } + }, + "node_modules/@injectivelabs/sdk-ts/node_modules/axios": { + "version": "0.27.2", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "node_modules/@injectivelabs/test-utils": { + "version": "1.10.3", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "axios": "^0.21.1", + "bignumber.js": "^9.0.1", + "link-module-alias": "^1.2.0", + "shx": "^0.3.2", + "snakecase-keys": "^5.1.2", + "store2": "^2.12.0" + } + }, + "node_modules/@injectivelabs/test-utils/node_modules/axios": { + "version": "0.21.4", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.14.0" + } + }, + "node_modules/@injectivelabs/token-metadata": { + "version": "1.10.35", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@injectivelabs/exceptions": "^1.10.6", + "@injectivelabs/networks": "^1.10.8", + "@injectivelabs/ts-types": "^1.10.5", + "@injectivelabs/utils": "^1.10.6", + "@types/lodash.values": "^4.3.6", + "copyfiles": "^2.4.1", + "jsonschema": "^1.4.0", + "link-module-alias": "^1.2.0", + "lodash": "^4.17.21", + "lodash.values": "^4.3.0", + "shx": "^0.3.2" + } + }, + "node_modules/@injectivelabs/token-metadata/node_modules/@injectivelabs/networks": { + "version": "1.10.8", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@injectivelabs/exceptions": "^1.10.6", + "@injectivelabs/ts-types": "^1.10.5", + "@injectivelabs/utils": "^1.10.6", + "link-module-alias": "^1.2.0", + "shx": "^0.3.2" + } + }, + "node_modules/@injectivelabs/token-metadata/node_modules/@injectivelabs/utils": { + "version": "1.10.6", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@injectivelabs/exceptions": "^1.10.6", + "@injectivelabs/ts-types": "^1.10.5", + "axios": "^0.21.1", + "bignumber.js": "^9.0.1", + "http-status-codes": "^2.2.0", + "link-module-alias": "^1.2.0", + "shx": "^0.3.2", + "snakecase-keys": "^5.1.2", + "store2": "^2.12.0" + } + }, + "node_modules/@injectivelabs/token-metadata/node_modules/axios": { + "version": "0.21.4", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.14.0" + } + }, + "node_modules/@injectivelabs/ts-types": { + "version": "1.10.5", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "link-module-alias": "^1.2.0", + "shx": "^0.3.2" + } + }, + "node_modules/@injectivelabs/utils": { + "version": "1.10.5", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "@injectivelabs/exceptions": "^1.10.5", + "@injectivelabs/ts-types": "^1.10.4", + "axios": "^0.21.1", + "bignumber.js": "^9.0.1", + "http-status-codes": "^2.2.0", + "link-module-alias": "^1.2.0", + "shx": "^0.3.2", + "snakecase-keys": "^5.1.2", + "store2": "^2.12.0" + } + }, + "node_modules/@injectivelabs/utils/node_modules/axios": { + "version": "0.21.4", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.14.0" + } + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "license": "ISC", + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.5.0", + "jest-util": "^29.5.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/console/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/console/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/console/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/console/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/@jest/console/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/console": "^29.5.0", + "@jest/reporters": "^29.5.0", + "@jest/test-result": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.5.0", + "jest-config": "^29.5.0", + "jest-haste-map": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.5.0", + "jest-resolve-dependencies": "^29.5.0", + "jest-runner": "^29.5.0", + "jest-runtime": "^29.5.0", + "jest-snapshot": "^29.5.0", + "jest-util": "^29.5.0", + "jest-validate": "^29.5.0", + "jest-watcher": "^29.5.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.5.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/core/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/core/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/@jest/core/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core/node_modules/pretty-format": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/environment": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/fake-timers": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "jest-mock": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "expect": "^29.5.0", + "jest-snapshot": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.4.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/types": "^29.5.0", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.5.0", + "jest-mock": "^29.5.0", + "jest-util": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.5.0", + "@jest/expect": "^29.5.0", + "@jest/types": "^29.5.0", + "jest-mock": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.5.0", + "@jest/test-result": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", + "@jridgewell/trace-mapping": "^0.3.15", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.5.0", + "jest-util": "^29.5.0", + "jest-worker": "^29.5.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/reporters/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/reporters/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/@jest/reporters/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/reporters/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/schemas": { + "version": "29.4.3", + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.25.16" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.4.3", + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.15", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/console": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.5.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.5.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.5.0", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.5.0", + "jest-regex-util": "^29.4.3", + "jest-util": "^29.5.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/transform/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/transform/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/transform/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/@jest/transform/node_modules/convert-source-map": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/@jest/transform/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/transform/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.4.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/types/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/@jest/types/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jnwng/walletconnect-solana": { + "version": "0.1.5", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/qrcode-modal": "^1.8.0", + "@walletconnect/sign-client": "^2.4.5", + "@walletconnect/utils": "^2.4.5", + "bs58": "^5.0.0" + }, + "peerDependencies": { + "@solana/web3.js": "^1.52.0" + } + }, + "node_modules/@jnwng/walletconnect-solana/node_modules/base-x": { + "version": "4.0.0", + "license": "MIT" + }, + "node_modules/@jnwng/walletconnect-solana/node_modules/bs58": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "base-x": "^4.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "license": "MIT", + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/source-map": { + "version": "0.3.3", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.18", + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "license": "MIT" + }, + "node_modules/@json-rpc-tools/provider": { + "version": "1.7.6", + "license": "MIT", + "dependencies": { + "@json-rpc-tools/utils": "^1.7.6", + "axios": "^0.21.0", + "safe-json-utils": "^1.1.1", + "ws": "^7.4.0" + } + }, + "node_modules/@json-rpc-tools/provider/node_modules/axios": { + "version": "0.21.4", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.14.0" + } + }, + "node_modules/@json-rpc-tools/types": { + "version": "1.7.6", + "license": "MIT", + "dependencies": { + "keyvaluestorage-interface": "^1.0.0" + } + }, + "node_modules/@json-rpc-tools/utils": { + "version": "1.7.6", + "license": "MIT", + "dependencies": { + "@json-rpc-tools/types": "^1.7.6", + "@pedrouid/environment": "^1.0.1" + } + }, + "node_modules/@keystonehq/bc-ur-registry": { + "version": "0.5.5", + "license": "Apache-2.0", + "dependencies": { + "@ngraveio/bc-ur": "^1.1.5", + "bs58check": "^2.1.2", + "tslib": "^2.3.0" + } + }, + "node_modules/@keystonehq/bc-ur-registry-sol": { + "version": "0.3.1", + "license": "ISC", + "dependencies": { + "@keystonehq/bc-ur-registry": "^0.5.0", + "bs58check": "^2.1.2", + "uuid": "^8.3.2" + } + }, + "node_modules/@keystonehq/sdk": { + "version": "0.13.1", + "license": "ISC", + "dependencies": { + "@ngraveio/bc-ur": "^1.0.0", + "qrcode.react": "^1.0.1", + "react": "16.13.1", + "react-dom": "16.13.1", + "react-modal": "^3.12.1", + "react-qr-reader": "^2.2.1", + "rxjs": "^6.6.3", + "typescript": "^4.6.2" + } + }, + "node_modules/@keystonehq/sdk/node_modules/qrcode.react": { + "version": "1.0.1", + "license": "ISC", + "dependencies": { + "loose-envify": "^1.4.0", + "prop-types": "^15.6.0", + "qr.js": "0.0.0" + }, + "peerDependencies": { + "react": "^15.5.3 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@keystonehq/sdk/node_modules/react": { + "version": "16.13.1", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1", + "prop-types": "^15.6.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/@keystonehq/sdk/node_modules/react-dom": { + "version": "16.13.1", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1", + "prop-types": "^15.6.2", + "scheduler": "^0.19.1" + }, + "peerDependencies": { + "react": "^16.13.1" + } + }, + "node_modules/@keystonehq/sdk/node_modules/react-qr-reader": { + "version": "2.2.1", + "license": "MIT", + "dependencies": { + "jsqr": "^1.2.0", + "prop-types": "^15.7.2", + "webrtc-adapter": "^7.2.1" + }, + "peerDependencies": { + "react": "~16", + "react-dom": "~16" + } + }, + "node_modules/@keystonehq/sdk/node_modules/rxjs": { + "version": "6.6.7", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/@keystonehq/sdk/node_modules/scheduler": { + "version": "0.19.1", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "node_modules/@keystonehq/sdk/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@keystonehq/sol-keyring": { + "version": "0.3.1", + "license": "ISC", + "dependencies": { + "@keystonehq/bc-ur-registry": "^0.5.0", + "@keystonehq/bc-ur-registry-sol": "^0.3.1", + "@keystonehq/sdk": "^0.13.1", + "@solana/web3.js": "^1.36.0", + "bs58": "^5.0.0", + "uuid": "^8.3.2" + } + }, + "node_modules/@keystonehq/sol-keyring/node_modules/base-x": { + "version": "4.0.0", + "license": "MIT" + }, + "node_modules/@keystonehq/sol-keyring/node_modules/bs58": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "base-x": "^4.0.0" + } + }, + "node_modules/@ledgerhq/connect-kit-loader": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/@ledgerhq/devices": { + "version": "6.27.1", + "license": "Apache-2.0", + "dependencies": { + "@ledgerhq/errors": "^6.10.0", + "@ledgerhq/logs": "^6.10.0", + "rxjs": "6", + "semver": "^7.3.5" + } + }, + "node_modules/@ledgerhq/devices/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@ledgerhq/devices/node_modules/rxjs": { + "version": "6.6.7", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/@ledgerhq/devices/node_modules/semver": { + "version": "7.5.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@ledgerhq/devices/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@ledgerhq/devices/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/@ledgerhq/errors": { + "version": "6.12.4", + "license": "Apache-2.0" + }, + "node_modules/@ledgerhq/hw-transport": { + "version": "6.27.1", + "license": "Apache-2.0", + "dependencies": { + "@ledgerhq/devices": "^6.27.1", + "@ledgerhq/errors": "^6.10.0", + "events": "^3.3.0" + } + }, + "node_modules/@ledgerhq/hw-transport-webhid": { + "version": "6.27.1", + "license": "Apache-2.0", + "dependencies": { + "@ledgerhq/devices": "^6.27.1", + "@ledgerhq/errors": "^6.10.0", + "@ledgerhq/hw-transport": "^6.27.1", + "@ledgerhq/logs": "^6.10.0" + } + }, + "node_modules/@ledgerhq/logs": { + "version": "6.10.1", + "license": "Apache-2.0" + }, + "node_modules/@leichtgewicht/ip-codec": { + "version": "2.0.4", + "license": "MIT" + }, + "node_modules/@lit-labs/ssr-dom-shim": { + "version": "1.1.1", + "license": "BSD-3-Clause" + }, + "node_modules/@lit/reactive-element": { + "version": "1.6.1", + "license": "BSD-3-Clause", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.0.0" + } + }, + "node_modules/@metamask/eth-sig-util": { + "version": "4.0.1", + "license": "ISC", + "dependencies": { + "ethereumjs-abi": "^0.6.8", + "ethereumjs-util": "^6.2.1", + "ethjs-util": "^0.1.6", + "tweetnacl": "^1.0.3", + "tweetnacl-util": "^0.15.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/@metamask/eth-sig-util/node_modules/@types/bn.js": { + "version": "4.11.6", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@metamask/eth-sig-util/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/@metamask/eth-sig-util/node_modules/ethereum-cryptography": { + "version": "0.1.3", + "license": "MIT", + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "node_modules/@metamask/eth-sig-util/node_modules/ethereumjs-util": { + "version": "6.2.1", + "license": "MPL-2.0", + "dependencies": { + "@types/bn.js": "^4.11.3", + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "0.1.6", + "rlp": "^2.2.3" + } + }, + "node_modules/@metamask/safe-event-emitter": { + "version": "2.0.0", + "license": "ISC" + }, + "node_modules/@metamask/utils": { + "version": "3.6.0", + "license": "ISC", + "dependencies": { + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "semver": "^7.3.8", + "superstruct": "^1.0.3" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@metamask/utils/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@metamask/utils/node_modules/semver": { + "version": "7.5.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@metamask/utils/node_modules/superstruct": { + "version": "1.0.3", + "license": "MIT", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@metamask/utils/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/@motionone/animation": { + "version": "10.15.1", + "license": "MIT", + "dependencies": { + "@motionone/easing": "^10.15.1", + "@motionone/types": "^10.15.1", + "@motionone/utils": "^10.15.1", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/dom": { + "version": "10.15.5", + "license": "MIT", + "dependencies": { + "@motionone/animation": "^10.15.1", + "@motionone/generators": "^10.15.1", + "@motionone/types": "^10.15.1", + "@motionone/utils": "^10.15.1", + "hey-listen": "^1.0.8", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/easing": { + "version": "10.15.1", + "license": "MIT", + "dependencies": { + "@motionone/utils": "^10.15.1", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/generators": { + "version": "10.15.1", + "license": "MIT", + "dependencies": { + "@motionone/types": "^10.15.1", + "@motionone/utils": "^10.15.1", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/svelte": { + "version": "10.15.5", + "license": "MIT", + "dependencies": { + "@motionone/dom": "^10.15.5", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/types": { + "version": "10.15.1", + "license": "MIT" + }, + "node_modules/@motionone/utils": { + "version": "10.15.1", + "license": "MIT", + "dependencies": { + "@motionone/types": "^10.15.1", + "hey-listen": "^1.0.8", + "tslib": "^2.3.1" + } + }, + "node_modules/@motionone/vue": { + "version": "10.15.5", + "license": "MIT", + "dependencies": { + "@motionone/dom": "^10.15.5", + "tslib": "^2.3.1" + } + }, + "node_modules/@mui/base": { + "version": "5.0.0-alpha.127", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.21.0", + "@emotion/is-prop-valid": "^1.2.0", + "@mui/types": "^7.2.4", + "@mui/utils": "^5.12.0", + "@popperjs/core": "^2.11.7", + "clsx": "^1.2.1", + "prop-types": "^15.8.1", + "react-is": "^18.2.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0", + "react-dom": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/core-downloads-tracker": { + "version": "5.12.2", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + } + }, + "node_modules/@mui/icons-material": { + "version": "5.11.16", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.21.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@mui/material": "^5.0.0", + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/material": { + "version": "5.12.2", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.21.0", + "@mui/base": "5.0.0-alpha.127", + "@mui/core-downloads-tracker": "^5.12.2", + "@mui/system": "^5.12.1", + "@mui/types": "^7.2.4", + "@mui/utils": "^5.12.0", + "@types/react-transition-group": "^4.4.5", + "clsx": "^1.2.1", + "csstype": "^3.1.2", + "prop-types": "^15.8.1", + "react-is": "^18.2.0", + "react-transition-group": "^4.4.5" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@emotion/react": "^11.5.0", + "@emotion/styled": "^11.3.0", + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0", + "react-dom": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + }, + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/private-theming": { + "version": "5.12.0", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.21.0", + "@mui/utils": "^5.12.0", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/styled-engine": { + "version": "5.12.0", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.21.0", + "@emotion/cache": "^11.10.7", + "csstype": "^3.1.2", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@emotion/react": "^11.4.1", + "@emotion/styled": "^11.3.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + } + } + }, + "node_modules/@mui/system": { + "version": "5.12.1", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.21.0", + "@mui/private-theming": "^5.12.0", + "@mui/styled-engine": "^5.12.0", + "@mui/types": "^7.2.4", + "@mui/utils": "^5.12.0", + "clsx": "^1.2.1", + "csstype": "^3.1.2", + "prop-types": "^15.8.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "@emotion/react": "^11.5.0", + "@emotion/styled": "^11.3.0", + "@types/react": "^17.0.0 || ^18.0.0", + "react": "^17.0.0 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/react": { + "optional": true + }, + "@emotion/styled": { + "optional": true + }, + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/types": { + "version": "7.2.4", + "license": "MIT", + "peerDependencies": { + "@types/react": "*" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + } + } + }, + "node_modules/@mui/utils": { + "version": "5.12.0", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.21.0", + "@types/prop-types": "^15.7.5", + "@types/react-is": "^16.7.1 || ^17.0.0", + "prop-types": "^15.8.1", + "react-is": "^18.2.0" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mui" + }, + "peerDependencies": { + "react": "^17.0.0 || ^18.0.0" + } + }, + "node_modules/@ngraveio/bc-ur": { + "version": "1.1.6", + "license": "MIT", + "dependencies": { + "@apocentre/alias-sampling": "^0.5.3", + "assert": "^2.0.0", + "bignumber.js": "^9.0.1", + "cbor-sync": "^1.0.4", + "crc": "^3.8.0", + "jsbi": "^3.1.5", + "sha.js": "^2.4.11" + } + }, + "node_modules/@nicolo-ribaudo/eslint-scope-5-internals": { + "version": "5.1.1-v1", + "license": "MIT", + "dependencies": { + "eslint-scope": "5.1.1" + } + }, + "node_modules/@noble/curves": { + "version": "1.0.0", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "license": "MIT", + "dependencies": { + "@noble/hashes": "1.3.0" + } + }, + "node_modules/@noble/ed25519": { + "version": "1.7.3", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "license": "MIT" + }, + "node_modules/@noble/hashes": { + "version": "1.3.0", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "license": "MIT" + }, + "node_modules/@noble/secp256k1": { + "version": "1.7.1", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "license": "MIT" + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nomad-xyz/multi-provider": { + "version": "1.1.0", + "license": "Apache-2.0 OR MIT", + "dependencies": { + "ethers": "^5.4.6", + "web3": "^1.6.1" + } + }, + "node_modules/@particle-network/auth": { + "version": "0.5.6", + "license": "Apache-2.0", + "dependencies": { + "crypto-js": "^4.1.1", + "uuid": "^8.3.2" + } + }, + "node_modules/@particle-network/solana-wallet": { + "version": "0.5.6", + "license": "Apache-2.0", + "dependencies": { + "@particle-network/auth": "^0.5.5" + }, + "peerDependencies": { + "@solana/web3.js": "^1.50.1", + "bs58": "^4.0.1" + } + }, + "node_modules/@pedrouid/environment": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin": { + "version": "0.5.10", + "license": "MIT", + "dependencies": { + "ansi-html-community": "^0.0.8", + "common-path-prefix": "^3.0.0", + "core-js-pure": "^3.23.3", + "error-stack-parser": "^2.0.6", + "find-up": "^5.0.0", + "html-entities": "^2.1.0", + "loader-utils": "^2.0.4", + "schema-utils": "^3.0.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">= 10.13" + }, + "peerDependencies": { + "@types/webpack": "4.x || 5.x", + "react-refresh": ">=0.10.0 <1.0.0", + "sockjs-client": "^1.4.0", + "type-fest": ">=0.17.0 <4.0.0", + "webpack": ">=4.43.0 <6.0.0", + "webpack-dev-server": "3.x || 4.x", + "webpack-hot-middleware": "2.x", + "webpack-plugin-serve": "0.x || 1.x" + }, + "peerDependenciesMeta": { + "@types/webpack": { + "optional": true + }, + "sockjs-client": { + "optional": true + }, + "type-fest": { + "optional": true + }, + "webpack-dev-server": { + "optional": true + }, + "webpack-hot-middleware": { + "optional": true + }, + "webpack-plugin-serve": { + "optional": true + } + } + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin/node_modules/find-up": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin/node_modules/locate-path": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin/node_modules/p-locate": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@pmmmwh/react-refresh-webpack-plugin/node_modules/source-map": { + "version": "0.7.4", + "license": "BSD-3-Clause", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@popperjs/core": { + "version": "2.11.7", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/@project-serum/anchor": { + "version": "0.25.0", + "license": "(MIT OR Apache-2.0)", + "dependencies": { + "@project-serum/borsh": "^0.2.5", + "@solana/web3.js": "^1.36.0", + "base64-js": "^1.5.1", + "bn.js": "^5.1.2", + "bs58": "^4.0.1", + "buffer-layout": "^1.2.2", + "camelcase": "^5.3.1", + "cross-fetch": "^3.1.5", + "crypto-hash": "^1.3.0", + "eventemitter3": "^4.0.7", + "js-sha256": "^0.9.0", + "pako": "^2.0.3", + "snake-case": "^3.0.4", + "superstruct": "^0.15.4", + "toml": "^3.0.0" + }, + "engines": { + "node": ">=11" + } + }, + "node_modules/@project-serum/borsh": { + "version": "0.2.5", + "license": "Apache-2.0", + "dependencies": { + "bn.js": "^5.1.2", + "buffer-layout": "^1.2.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@solana/web3.js": "^1.2.0" + } + }, + "node_modules/@project-serum/sol-wallet-adapter": { + "version": "0.2.6", + "license": "Apache-2.0", + "dependencies": { + "bs58": "^4.0.1", + "eventemitter3": "^4.0.7" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@solana/web3.js": "^1.5.0" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "license": "BSD-3-Clause" + }, + "node_modules/@reduxjs/toolkit": { + "version": "1.9.5", + "license": "MIT", + "dependencies": { + "immer": "^9.0.21", + "redux": "^4.2.1", + "redux-thunk": "^2.4.2", + "reselect": "^4.1.8" + }, + "peerDependencies": { + "react": "^16.9.0 || ^17.0.0 || ^18", + "react-redux": "^7.2.1 || ^8.0.2" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-redux": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-babel": { + "version": "5.3.1", + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.10.4", + "@rollup/pluginutils": "^3.1.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "@types/babel__core": "^7.1.9", + "rollup": "^1.20.0||^2.0.0" + }, + "peerDependenciesMeta": { + "@types/babel__core": { + "optional": true + } + } + }, + "node_modules/@rollup/plugin-node-resolve": { + "version": "11.2.1", + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^3.1.0", + "@types/resolve": "1.17.1", + "builtin-modules": "^3.1.0", + "deepmerge": "^4.2.2", + "is-module": "^1.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" + } + }, + "node_modules/@rollup/plugin-replace": { + "version": "2.4.2", + "license": "MIT", + "dependencies": { + "@rollup/pluginutils": "^3.1.0", + "magic-string": "^0.25.7" + }, + "peerDependencies": { + "rollup": "^1.20.0 || ^2.0.0" + } + }, + "node_modules/@rollup/pluginutils": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "@types/estree": "0.0.39", + "estree-walker": "^1.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" + } + }, + "node_modules/@rollup/pluginutils/node_modules/@types/estree": { + "version": "0.0.39", + "license": "MIT" + }, + "node_modules/@rushstack/eslint-patch": { + "version": "1.2.0", + "license": "MIT" + }, + "node_modules/@safe-global/safe-apps-provider": { + "version": "0.15.2", + "license": "MIT", + "dependencies": { + "@safe-global/safe-apps-sdk": "7.9.0", + "events": "^3.3.0" + } + }, + "node_modules/@safe-global/safe-apps-provider/node_modules/@safe-global/safe-apps-sdk": { + "version": "7.9.0", + "license": "MIT", + "dependencies": { + "@safe-global/safe-gateway-typescript-sdk": "^3.5.3", + "ethers": "^5.7.2" + } + }, + "node_modules/@safe-global/safe-apps-sdk": { + "version": "7.10.1", + "license": "MIT", + "dependencies": { + "@safe-global/safe-gateway-typescript-sdk": "^3.5.3", + "ethers": "^5.7.2" + } + }, + "node_modules/@safe-global/safe-gateway-typescript-sdk": { + "version": "3.7.3", + "license": "MIT", + "dependencies": { + "cross-fetch": "^3.1.5" + } + }, + "node_modules/@scure/base": { + "version": "1.1.1", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "license": "MIT" + }, + "node_modules/@scure/bip32": { + "version": "1.3.0", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "license": "MIT", + "dependencies": { + "@noble/curves": "~1.0.0", + "@noble/hashes": "~1.3.0", + "@scure/base": "~1.1.0" + } + }, + "node_modules/@scure/bip39": { + "version": "1.1.0", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "license": "MIT", + "dependencies": { + "@noble/hashes": "~1.1.1", + "@scure/base": "~1.1.0" + } + }, + "node_modules/@scure/bip39/node_modules/@noble/hashes": { + "version": "1.1.5", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "license": "MIT" + }, + "node_modules/@sinclair/typebox": { + "version": "0.25.24", + "license": "MIT" + }, + "node_modules/@sindresorhus/is": { + "version": "4.6.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/is?sponsor=1" + } + }, + "node_modules/@sinonjs/commons": { + "version": "2.0.0", + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.0.2", + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^2.0.0" + } + }, + "node_modules/@socket.io/component-emitter": { + "version": "3.1.0", + "license": "MIT" + }, + "node_modules/@solana/buffer-layout": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "buffer": "~6.0.3" + }, + "engines": { + "node": ">=5.10" + } + }, + "node_modules/@solana/buffer-layout-utils": { + "version": "0.2.0", + "license": "Apache-2.0", + "dependencies": { + "@solana/buffer-layout": "^4.0.0", + "@solana/web3.js": "^1.32.0", + "bigint-buffer": "^1.1.5", + "bignumber.js": "^9.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/@solana/spl-token": { + "version": "0.3.7", + "license": "Apache-2.0", + "dependencies": { + "@solana/buffer-layout": "^4.0.0", + "@solana/buffer-layout-utils": "^0.2.0", + "buffer": "^6.0.3" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.47.4" + } + }, + "node_modules/@solana/wallet-adapter-alpha": { + "version": "0.1.9", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-avana": { + "version": "0.1.12", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-backpack": { + "version": "0.1.13", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-base": { + "version": "0.9.22", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-standard-features": "^1.0.1", + "@wallet-standard/base": "^1.0.1", + "@wallet-standard/features": "^1.0.3", + "eventemitter3": "^4.0.7" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-bitkeep": { + "version": "0.3.18", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-bitpie": { + "version": "0.5.17", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-blocto": { + "version": "0.5.21", + "license": "Apache-2.0", + "dependencies": { + "@blocto/sdk": "^0.2.22", + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-brave": { + "version": "0.1.16", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-censo": { + "version": "0.1.3", + "license": "Apache-2.0", + "dependencies": { + "@censo-custody/solana-wallet-adapter": "^0.1.0", + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.61.0" + } + }, + "node_modules/@solana/wallet-adapter-clover": { + "version": "0.4.18", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-coin98": { + "version": "0.5.19", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22", + "bs58": "^4.0.1" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-coinbase": { + "version": "0.1.17", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-coinhub": { + "version": "0.3.17", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-exodus": { + "version": "0.1.17", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-fractal": { + "version": "0.1.7", + "license": "Apache-2.0", + "dependencies": { + "@fractalwagmi/solana-wallet-adapter": "^0.1.1", + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-glow": { + "version": "0.1.17", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-huobi": { + "version": "0.1.14", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-hyperpay": { + "version": "0.1.13", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-keystone": { + "version": "0.1.11", + "license": "Apache-2.0", + "dependencies": { + "@keystonehq/sol-keyring": "^0.3.1", + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-krystal": { + "version": "0.1.11", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-ledger": { + "version": "0.9.24", + "license": "Apache-2.0", + "dependencies": { + "@ledgerhq/devices": "6.27.1", + "@ledgerhq/hw-transport": "6.27.1", + "@ledgerhq/hw-transport-webhid": "6.27.1", + "@solana/wallet-adapter-base": "^0.9.22", + "buffer": "^6.0.3" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-magiceden": { + "version": "0.1.12", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-mathwallet": { + "version": "0.9.17", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-neko": { + "version": "0.2.11", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-nightly": { + "version": "0.1.15", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-nufi": { + "version": "0.1.16", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-onto": { + "version": "0.1.6", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-particle": { + "version": "0.1.9", + "license": "Apache-2.0", + "dependencies": { + "@particle-network/solana-wallet": "^0.5.6", + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-phantom": { + "version": "0.9.22", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-safepal": { + "version": "0.5.17", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-saifu": { + "version": "0.1.14", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-salmon": { + "version": "0.1.13", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22", + "salmon-adapter-sdk": "^1.1.1" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-sky": { + "version": "0.1.14", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-slope": { + "version": "0.5.20", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22", + "bs58": "^4.0.1" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-solflare": { + "version": "0.6.24", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22", + "@solflare-wallet/sdk": "^1.2.0" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-sollet": { + "version": "0.11.16", + "license": "Apache-2.0", + "dependencies": { + "@project-serum/sol-wallet-adapter": "^0.2.6", + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-solong": { + "version": "0.9.17", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-spot": { + "version": "0.1.14", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-strike": { + "version": "0.1.12", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22", + "@strike-protocols/solana-wallet-adapter": "^0.1.8" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-tokenary": { + "version": "0.1.11", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-tokenpocket": { + "version": "0.4.18", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-torus": { + "version": "0.11.27", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22", + "@toruslabs/solana-embed": "^0.3.3", + "assert": "^2.0.0", + "crypto-browserify": "^3.12.0", + "process": "^0.11.10", + "stream-browserify": "^3.0.0" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-trust": { + "version": "0.1.12", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-unsafe-burner": { + "version": "0.1.6", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-walletconnect": { + "version": "0.1.14", + "license": "Apache-2.0", + "dependencies": { + "@jnwng/walletconnect-solana": "^0.1.5", + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-wallets": { + "version": "0.19.16", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-alpha": "^0.1.9", + "@solana/wallet-adapter-avana": "^0.1.12", + "@solana/wallet-adapter-backpack": "^0.1.13", + "@solana/wallet-adapter-bitkeep": "^0.3.18", + "@solana/wallet-adapter-bitpie": "^0.5.17", + "@solana/wallet-adapter-blocto": "^0.5.21", + "@solana/wallet-adapter-brave": "^0.1.16", + "@solana/wallet-adapter-censo": "^0.1.3", + "@solana/wallet-adapter-clover": "^0.4.18", + "@solana/wallet-adapter-coin98": "^0.5.19", + "@solana/wallet-adapter-coinbase": "^0.1.17", + "@solana/wallet-adapter-coinhub": "^0.3.17", + "@solana/wallet-adapter-exodus": "^0.1.17", + "@solana/wallet-adapter-fractal": "^0.1.7", + "@solana/wallet-adapter-glow": "^0.1.17", + "@solana/wallet-adapter-huobi": "^0.1.14", + "@solana/wallet-adapter-hyperpay": "^0.1.13", + "@solana/wallet-adapter-keystone": "^0.1.11", + "@solana/wallet-adapter-krystal": "^0.1.11", + "@solana/wallet-adapter-ledger": "^0.9.24", + "@solana/wallet-adapter-magiceden": "^0.1.12", + "@solana/wallet-adapter-mathwallet": "^0.9.17", + "@solana/wallet-adapter-neko": "^0.2.11", + "@solana/wallet-adapter-nightly": "^0.1.15", + "@solana/wallet-adapter-nufi": "^0.1.16", + "@solana/wallet-adapter-onto": "^0.1.6", + "@solana/wallet-adapter-particle": "^0.1.9", + "@solana/wallet-adapter-phantom": "^0.9.22", + "@solana/wallet-adapter-safepal": "^0.5.17", + "@solana/wallet-adapter-saifu": "^0.1.14", + "@solana/wallet-adapter-salmon": "^0.1.13", + "@solana/wallet-adapter-sky": "^0.1.14", + "@solana/wallet-adapter-slope": "^0.5.20", + "@solana/wallet-adapter-solflare": "^0.6.24", + "@solana/wallet-adapter-sollet": "^0.11.16", + "@solana/wallet-adapter-solong": "^0.9.17", + "@solana/wallet-adapter-spot": "^0.1.14", + "@solana/wallet-adapter-strike": "^0.1.12", + "@solana/wallet-adapter-tokenary": "^0.1.11", + "@solana/wallet-adapter-tokenpocket": "^0.4.18", + "@solana/wallet-adapter-torus": "^0.11.27", + "@solana/wallet-adapter-trust": "^0.1.12", + "@solana/wallet-adapter-unsafe-burner": "^0.1.6", + "@solana/wallet-adapter-walletconnect": "^0.1.14", + "@solana/wallet-adapter-xdefi": "^0.1.6" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-adapter-xdefi": { + "version": "0.1.6", + "license": "Apache-2.0", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.22" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@solana/web3.js": "^1.58.0" + } + }, + "node_modules/@solana/wallet-standard-features": { + "version": "1.0.1", + "license": "Apache-2.0", + "dependencies": { + "@wallet-standard/base": "^1.0.1", + "@wallet-standard/features": "^1.0.3" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/@solana/web3.js": { + "version": "1.75.0", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.12.5", + "@noble/ed25519": "^1.7.0", + "@noble/hashes": "^1.1.2", + "@noble/secp256k1": "^1.6.3", + "@solana/buffer-layout": "^4.0.0", + "agentkeepalive": "^4.2.1", + "bigint-buffer": "^1.1.5", + "bn.js": "^5.0.0", + "borsh": "^0.7.0", + "bs58": "^4.0.1", + "buffer": "6.0.3", + "fast-stable-stringify": "^1.0.0", + "jayson": "^3.4.4", + "node-fetch": "^2.6.7", + "rpc-websockets": "^7.5.1", + "superstruct": "^0.14.2" + } + }, + "node_modules/@solana/web3.js/node_modules/superstruct": { + "version": "0.14.2", + "license": "MIT" + }, + "node_modules/@solflare-wallet/sdk": { + "version": "1.2.1", + "license": "Apache-2.0", + "dependencies": { + "@project-serum/sol-wallet-adapter": "0.2.0", + "bs58": "^4.0.1", + "eventemitter3": "^4.0.7", + "uuid": "^8.3.2" + }, + "peerDependencies": { + "@solana/web3.js": "^1.61.0" + } + }, + "node_modules/@solflare-wallet/sdk/node_modules/@project-serum/sol-wallet-adapter": { + "version": "0.2.0", + "license": "Apache-2.0", + "dependencies": { + "bs58": "^4.0.1", + "eventemitter3": "^4.0.4" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "@solana/web3.js": "^1.5.0" + } + }, + "node_modules/@stablelib/aead": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/@stablelib/binary": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@stablelib/int": "^1.0.1" + } + }, + "node_modules/@stablelib/bytes": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/@stablelib/chacha": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@stablelib/binary": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/chacha20poly1305": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@stablelib/aead": "^1.0.1", + "@stablelib/binary": "^1.0.1", + "@stablelib/chacha": "^1.0.1", + "@stablelib/constant-time": "^1.0.1", + "@stablelib/poly1305": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/constant-time": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/@stablelib/ed25519": { + "version": "1.0.3", + "license": "MIT", + "dependencies": { + "@stablelib/random": "^1.0.2", + "@stablelib/sha512": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/hash": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/@stablelib/hkdf": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@stablelib/hash": "^1.0.1", + "@stablelib/hmac": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/hmac": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@stablelib/constant-time": "^1.0.1", + "@stablelib/hash": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/int": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/@stablelib/keyagreement": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@stablelib/bytes": "^1.0.1" + } + }, + "node_modules/@stablelib/poly1305": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@stablelib/constant-time": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/random": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "@stablelib/binary": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/sha256": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@stablelib/binary": "^1.0.1", + "@stablelib/hash": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/sha512": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@stablelib/binary": "^1.0.1", + "@stablelib/hash": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@stablelib/wipe": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/@stablelib/x25519": { + "version": "1.0.3", + "license": "MIT", + "dependencies": { + "@stablelib/keyagreement": "^1.0.1", + "@stablelib/random": "^1.0.2", + "@stablelib/wipe": "^1.0.1" + } + }, + "node_modules/@strike-protocols/solana-wallet-adapter": { + "version": "0.1.8", + "license": "Apache-2.0", + "dependencies": { + "@solana/web3.js": "^1.44.3", + "bs58": "^4.0.1", + "eventemitter3": "^4.0.7", + "uuid": "^8.3.2" + } + }, + "node_modules/@surma/rollup-plugin-off-main-thread": { + "version": "2.2.3", + "license": "Apache-2.0", + "dependencies": { + "ejs": "^3.1.6", + "json5": "^2.2.0", + "magic-string": "^0.25.0", + "string.prototype.matchall": "^4.0.6" + } + }, + "node_modules/@svgr/babel-plugin-add-jsx-attribute": { + "version": "5.4.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-remove-jsx-attribute": { + "version": "5.4.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-remove-jsx-empty-expression": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-replace-jsx-attribute-value": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-svg-dynamic-title": { + "version": "5.4.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-svg-em-dimensions": { + "version": "5.4.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-transform-react-native-svg": { + "version": "5.4.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-plugin-transform-svg-component": { + "version": "5.5.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/babel-preset": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "@svgr/babel-plugin-add-jsx-attribute": "^5.4.0", + "@svgr/babel-plugin-remove-jsx-attribute": "^5.4.0", + "@svgr/babel-plugin-remove-jsx-empty-expression": "^5.0.1", + "@svgr/babel-plugin-replace-jsx-attribute-value": "^5.0.1", + "@svgr/babel-plugin-svg-dynamic-title": "^5.4.0", + "@svgr/babel-plugin-svg-em-dimensions": "^5.4.0", + "@svgr/babel-plugin-transform-react-native-svg": "^5.4.0", + "@svgr/babel-plugin-transform-svg-component": "^5.5.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/core": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "@svgr/plugin-jsx": "^5.5.0", + "camelcase": "^6.2.0", + "cosmiconfig": "^7.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/core/node_modules/camelcase": { + "version": "6.3.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@svgr/hast-util-to-babel-ast": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.12.6" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/plugin-jsx": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.12.3", + "@svgr/babel-preset": "^5.5.0", + "@svgr/hast-util-to-babel-ast": "^5.5.0", + "svg-parser": "^2.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/plugin-svgo": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "cosmiconfig": "^7.0.0", + "deepmerge": "^4.2.2", + "svgo": "^1.2.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@svgr/webpack": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/plugin-transform-react-constant-elements": "^7.12.1", + "@babel/preset-env": "^7.12.1", + "@babel/preset-react": "^7.12.5", + "@svgr/core": "^5.5.0", + "@svgr/plugin-jsx": "^5.5.0", + "@svgr/plugin-svgo": "^5.5.0", + "loader-utils": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/gregberge" + } + }, + "node_modules/@szmarczak/http-timer": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "defer-to-connect": "^2.0.1" + }, + "engines": { + "node": ">=14.16" + } + }, + "node_modules/@terra-money/legacy.proto": { + "name": "@terra-money/terra.proto", + "version": "0.1.7", + "license": "Apache-2.0", + "dependencies": { + "google-protobuf": "^3.17.3", + "long": "^4.0.0", + "protobufjs": "~6.11.2" + } + }, + "node_modules/@terra-money/legacy.proto/node_modules/protobufjs": { + "version": "6.11.3", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" + } + }, + "node_modules/@terra-money/terra.js": { + "version": "3.1.8", + "license": "MIT", + "dependencies": { + "@classic-terra/terra.proto": "^1.1.0", + "@terra-money/terra.proto": "^2.1.0", + "axios": "^0.27.2", + "bech32": "^2.0.0", + "bip32": "^2.0.6", + "bip39": "^3.0.3", + "bufferutil": "^4.0.3", + "decimal.js": "^10.2.1", + "jscrypto": "^1.0.1", + "readable-stream": "^3.6.0", + "secp256k1": "^4.0.2", + "tmp": "^0.2.1", + "utf-8-validate": "^5.0.5", + "ws": "^7.5.9" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@terra-money/terra.js/node_modules/axios": { + "version": "0.27.2", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "node_modules/@terra-money/terra.proto": { + "version": "2.1.0", + "license": "Apache-2.0", + "dependencies": { + "@improbable-eng/grpc-web": "^0.14.1", + "google-protobuf": "^3.17.3", + "long": "^4.0.0", + "protobufjs": "~6.11.2" + } + }, + "node_modules/@terra-money/terra.proto/node_modules/@improbable-eng/grpc-web": { + "version": "0.14.1", + "license": "Apache-2.0", + "dependencies": { + "browser-headers": "^0.4.1" + }, + "peerDependencies": { + "google-protobuf": "^3.14.0" + } + }, + "node_modules/@terra-money/terra.proto/node_modules/protobufjs": { + "version": "6.11.3", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" + } + }, + "node_modules/@testing-library/dom": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-9.2.0.tgz", + "integrity": "sha512-xTEnpUKiV/bMyEsE5bT4oYA0x0Z/colMtxzUY8bKyPXBNLn/e0V4ZjBZkEhms0xE4pv9QsPfSRu9AWS4y5wGvA==", + "peer": true, + "dependencies": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "^5.0.0", + "chalk": "^4.1.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.5.0", + "pretty-format": "^27.0.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@testing-library/dom/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "peer": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@testing-library/dom/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "peer": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@testing-library/dom/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "peer": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@testing-library/dom/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "peer": true + }, + "node_modules/@testing-library/dom/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "peer": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/dom/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "peer": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/jest-dom": { + "version": "5.16.5", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.5.tgz", + "integrity": "sha512-N5ixQ2qKpi5OLYfwQmUb/5mSV9LneAcaUfp32pn4yCnpb8r/Yz0pXFPck21dIicKmi+ta5WRAknkZCfA8refMA==", + "dependencies": { + "@adobe/css-tools": "^4.0.1", + "@babel/runtime": "^7.9.2", + "@types/testing-library__jest-dom": "^5.9.1", + "aria-query": "^5.0.0", + "chalk": "^3.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.5.6", + "lodash": "^4.17.15", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=8", + "npm": ">=6", + "yarn": ">=1" + } + }, + "node_modules/@testing-library/jest-dom/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@testing-library/jest-dom/node_modules/chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/jest-dom/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@testing-library/jest-dom/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/@testing-library/jest-dom/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/jest-dom/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/react": { + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-13.4.0.tgz", + "integrity": "sha512-sXOGON+WNTh3MLE9rve97ftaZukN3oNf2KjDy7YTx6hcTO2uuLHuCGynMDhFwGw/jYf4OJ2Qk0i4i79qMNNkyw==", + "dependencies": { + "@babel/runtime": "^7.12.5", + "@testing-library/dom": "^8.5.0", + "@types/react-dom": "^18.0.0" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" + } + }, + "node_modules/@testing-library/react/node_modules/@testing-library/dom": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.20.0.tgz", + "integrity": "sha512-d9ULIT+a4EXLX3UU8FBjauG9NnsZHkHztXoIcTsOKoOw030fyjheN9svkTULjJxtYag9DZz5Jz5qkWZDPxTFwA==", + "dependencies": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "^5.0.0", + "chalk": "^4.1.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.4.4", + "pretty-format": "^27.0.2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@testing-library/react/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@testing-library/react/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@testing-library/react/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@testing-library/react/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/@testing-library/react/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/react/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@testing-library/user-event": { + "version": "13.5.0", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-13.5.0.tgz", + "integrity": "sha512-5Kwtbo3Y/NowpkbRuSepbyMFkZmHgD+vPzYB/RJ4oxt5Gj/avFFBYjhw27cqSVPVw/3a67NK1PbiIr9k4Gwmdg==", + "dependencies": { + "@babel/runtime": "^7.12.5" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + }, + "peerDependencies": { + "@testing-library/dom": ">=7.21.4" + } + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/@toruslabs/base-controllers": { + "version": "2.8.1", + "license": "ISC", + "dependencies": { + "@ethereumjs/util": "^8.0.5", + "@toruslabs/broadcast-channel": "^6.2.0", + "@toruslabs/http-helpers": "^3.3.0", + "@toruslabs/openlogin-jrpc": "^3.2.0", + "async-mutex": "^0.4.0", + "bignumber.js": "^9.1.1", + "bowser": "^2.11.0", + "eth-rpc-errors": "^4.0.3", + "json-rpc-random-id": "^1.0.1", + "lodash": "^4.17.21", + "loglevel": "^1.8.1" + }, + "peerDependencies": { + "@babel/runtime": "7.x" + } + }, + "node_modules/@toruslabs/broadcast-channel": { + "version": "6.2.0", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.21.0", + "@toruslabs/eccrypto": "^2.0.0", + "@toruslabs/metadata-helpers": "^3.1.0", + "bowser": "^2.11.0", + "keccak": "^3.0.3", + "loglevel": "^1.8.1", + "oblivious-set": "1.1.1", + "socket.io-client": "^4.6.1", + "unload": "^2.4.1" + } + }, + "node_modules/@toruslabs/eccrypto": { + "version": "2.1.1", + "license": "CC0-1.0", + "dependencies": { + "elliptic": "^6.5.4" + } + }, + "node_modules/@toruslabs/http-helpers": { + "version": "3.3.0", + "license": "MIT", + "dependencies": { + "lodash.merge": "^4.6.2", + "loglevel": "^1.8.1" + }, + "engines": { + "node": ">=14.17.0", + "npm": ">=6.x" + }, + "peerDependencies": { + "@babel/runtime": "^7.x", + "@sentry/types": "^7.x" + }, + "peerDependenciesMeta": { + "@sentry/types": { + "optional": true + } + } + }, + "node_modules/@toruslabs/metadata-helpers": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "@toruslabs/eccrypto": "^2.0.0", + "@toruslabs/http-helpers": "^3.3.0", + "elliptic": "^6.5.4", + "json-stable-stringify": "^1.0.2", + "keccak": "^3.0.3" + }, + "engines": { + "node": ">=14.17.0", + "npm": ">=6.x" + }, + "peerDependencies": { + "@babel/runtime": "7.x" + } + }, + "node_modules/@toruslabs/openlogin-jrpc": { + "version": "3.2.0", + "license": "ISC", + "dependencies": { + "@toruslabs/openlogin-utils": "^3.0.0", + "end-of-stream": "^1.4.4", + "eth-rpc-errors": "^4.0.3", + "events": "^3.3.0", + "fast-safe-stringify": "^2.1.1", + "once": "^1.4.0", + "pump": "^3.0.0", + "readable-stream": "^3.6.2" + }, + "peerDependencies": { + "@babel/runtime": "7.x" + } + }, + "node_modules/@toruslabs/openlogin-utils": { + "version": "3.0.0", + "license": "ISC", + "dependencies": { + "base64url": "^3.0.1", + "keccak": "^3.0.3", + "randombytes": "^2.1.0" + }, + "peerDependencies": { + "@babel/runtime": "7.x" + } + }, + "node_modules/@toruslabs/solana-embed": { + "version": "0.3.4", + "license": "ISC", + "dependencies": { + "@solana/web3.js": "^1.63.1", + "@toruslabs/base-controllers": "^2.8.0", + "@toruslabs/http-helpers": "^3.3.0", + "@toruslabs/openlogin-jrpc": "^3.2.0", + "eth-rpc-errors": "^4.0.3", + "fast-deep-equal": "^3.1.3", + "is-stream": "^2.0.1", + "lodash-es": "^4.17.21", + "loglevel": "^1.8.1", + "pump": "^3.0.0" + }, + "engines": { + "node": ">=14.17.0", + "npm": ">=6.x" + }, + "peerDependencies": { + "@babel/runtime": "7.x" + } + }, + "node_modules/@trysound/sax": { + "version": "0.2.0", + "license": "ISC", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@types/aria-query": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.1.tgz", + "integrity": "sha512-XTIieEY+gvJ39ChLcB4If5zHtPxt3Syj5rgZR+e1ctpmK8NjPf0zFqsz4JpLJT0xla9GFDKjy8Cpu331nrmE1Q==" + }, + "node_modules/@types/babel__core": { + "version": "7.20.0", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.4", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.1", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.18.5", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.3.0" + } + }, + "node_modules/@types/bn.js": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/body-parser": { + "version": "1.19.2", + "license": "MIT", + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/bonjour": { + "version": "3.5.10", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/bs58": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/bs58/-/bs58-4.0.1.tgz", + "integrity": "sha512-yfAgiWgVLjFCmRv8zAcOIHywYATEwiTVccTLnRp6UxTNavT55M9d/uhK3T03St/+8/z/wW+CRjGKUNmEqoHHCA==", + "dev": true, + "dependencies": { + "base-x": "^3.0.6" + } + }, + "node_modules/@types/cacheable-request": { + "version": "6.0.3", + "license": "MIT", + "dependencies": { + "@types/http-cache-semantics": "*", + "@types/keyv": "^3.1.4", + "@types/node": "*", + "@types/responselike": "^1.0.0" + } + }, + "node_modules/@types/connect": { + "version": "3.4.35", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/connect-history-api-fallback": { + "version": "1.3.5", + "license": "MIT", + "dependencies": { + "@types/express-serve-static-core": "*", + "@types/node": "*" + } + }, + "node_modules/@types/debug": { + "version": "4.1.7", + "license": "MIT", + "dependencies": { + "@types/ms": "*" + } + }, + "node_modules/@types/elliptic": { + "version": "6.4.14", + "resolved": "https://registry.npmjs.org/@types/elliptic/-/elliptic-6.4.14.tgz", + "integrity": "sha512-z4OBcDAU0GVwDTuwJzQCiL6188QvZMkvoERgcVjq0/mPM8jCfdwZ3x5zQEVoL9WCAru3aG5wl3Z5Ww5wBWn7ZQ==", + "dev": true, + "dependencies": { + "@types/bn.js": "*" + } + }, + "node_modules/@types/eslint": { + "version": "8.37.0", + "license": "MIT", + "dependencies": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "node_modules/@types/eslint-scope": { + "version": "3.7.4", + "license": "MIT", + "dependencies": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/@types/express": { + "version": "4.17.17", + "license": "MIT", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "4.17.34", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.6", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/hoist-non-react-statics": { + "version": "3.3.1", + "license": "MIT", + "dependencies": { + "@types/react": "*", + "hoist-non-react-statics": "^3.3.0" + } + }, + "node_modules/@types/html-minifier-terser": { + "version": "6.1.0", + "license": "MIT" + }, + "node_modules/@types/http-cache-semantics": { + "version": "4.0.1", + "license": "MIT" + }, + "node_modules/@types/http-proxy": { + "version": "1.17.11", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "27.5.2", + "license": "MIT", + "dependencies": { + "jest-matcher-utils": "^27.0.0", + "pretty-format": "^27.0.0" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.11", + "license": "MIT" + }, + "node_modules/@types/json5": { + "version": "0.0.29", + "license": "MIT" + }, + "node_modules/@types/keyv": { + "version": "3.1.4", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/lodash": { + "version": "4.14.194", + "license": "MIT" + }, + "node_modules/@types/lodash.values": { + "version": "4.3.7", + "license": "MIT", + "dependencies": { + "@types/lodash": "*" + } + }, + "node_modules/@types/long": { + "version": "4.0.2", + "license": "MIT" + }, + "node_modules/@types/mime": { + "version": "1.3.2", + "license": "MIT" + }, + "node_modules/@types/ms": { + "version": "0.7.31", + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "16.18.25", + "license": "MIT" + }, + "node_modules/@types/node-fetch": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.3.tgz", + "integrity": "sha512-ETTL1mOEdq/sxUtgtOhKjyB2Irra4cjxksvcMUR5Zr4n+PxVhsCD9WS46oPbHL3et9Zde7CNRr+WUNlcHvsX+w==", + "dependencies": { + "@types/node": "*", + "form-data": "^3.0.0" + } + }, + "node_modules/@types/node-fetch/node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@types/parse-json": { + "version": "4.0.0", + "license": "MIT" + }, + "node_modules/@types/pbkdf2": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/prettier": { + "version": "2.7.2", + "license": "MIT" + }, + "node_modules/@types/prop-types": { + "version": "15.7.5", + "license": "MIT" + }, + "node_modules/@types/q": { + "version": "1.5.5", + "license": "MIT" + }, + "node_modules/@types/qs": { + "version": "6.9.7", + "license": "MIT" + }, + "node_modules/@types/range-parser": { + "version": "1.2.4", + "license": "MIT" + }, + "node_modules/@types/react": { + "version": "18.2.0", + "license": "MIT", + "dependencies": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-dom": { + "version": "18.2.1", + "license": "MIT", + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/react-is": { + "version": "17.0.4", + "license": "MIT", + "dependencies": { + "@types/react": "^17" + } + }, + "node_modules/@types/react-is/node_modules/@types/react": { + "version": "17.0.58", + "license": "MIT", + "dependencies": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/react-redux": { + "version": "7.1.25", + "license": "MIT", + "dependencies": { + "@types/hoist-non-react-statics": "^3.3.0", + "@types/react": "*", + "hoist-non-react-statics": "^3.3.0", + "redux": "^4.0.0" + } + }, + "node_modules/@types/react-transition-group": { + "version": "4.4.5", + "license": "MIT", + "dependencies": { + "@types/react": "*" + } + }, + "node_modules/@types/resolve": { + "version": "1.17.1", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/responselike": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/retry": { + "version": "0.12.0", + "license": "MIT" + }, + "node_modules/@types/scheduler": { + "version": "0.16.3", + "license": "MIT" + }, + "node_modules/@types/secp256k1": { + "version": "4.0.3", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/semver": { + "version": "7.3.13", + "license": "MIT" + }, + "node_modules/@types/send": { + "version": "0.17.1", + "license": "MIT", + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/serve-index": { + "version": "1.9.1", + "license": "MIT", + "dependencies": { + "@types/express": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.1", + "license": "MIT", + "dependencies": { + "@types/mime": "*", + "@types/node": "*" + } + }, + "node_modules/@types/sockjs": { + "version": "0.3.33", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/@types/testing-library__jest-dom": { + "version": "5.14.5", + "resolved": "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.5.tgz", + "integrity": "sha512-SBwbxYoyPIvxHbeHxTZX2Pe/74F/tX2/D3mMvzabdeJ25bBojfW0TyB8BHrbq/9zaaKICJZjLP+8r6AeZMFCuQ==", + "dependencies": { + "@types/jest": "*" + } + }, + "node_modules/@types/trusted-types": { + "version": "2.0.3", + "license": "MIT" + }, + "node_modules/@types/use-sync-external-store": { + "version": "0.0.3", + "license": "MIT" + }, + "node_modules/@types/ws": { + "version": "7.4.7", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/yargs": { + "version": "17.0.24", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.0", + "license": "MIT" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "5.59.1", + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.59.1", + "@typescript-eslint/type-utils": "5.59.1", + "@typescript-eslint/utils": "5.59.1", + "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/semver": { + "version": "7.5.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/@typescript-eslint/experimental-utils": { + "version": "5.59.1", + "license": "MIT", + "dependencies": { + "@typescript-eslint/utils": "5.59.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "5.59.1", + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/scope-manager": "5.59.1", + "@typescript-eslint/types": "5.59.1", + "@typescript-eslint/typescript-estree": "5.59.1", + "debug": "^4.3.4" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "5.59.1", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.59.1", + "@typescript-eslint/visitor-keys": "5.59.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "5.59.1", + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "5.59.1", + "@typescript-eslint/utils": "5.59.1", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "5.59.1", + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "5.59.1", + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "5.59.1", + "@typescript-eslint/visitor-keys": "5.59.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.5.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/@typescript-eslint/utils": { + "version": "5.59.1", + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.59.1", + "@typescript-eslint/types": "5.59.1", + "@typescript-eslint/typescript-estree": "5.59.1", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/semver": { + "version": "7.5.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@typescript-eslint/utils/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "5.59.1", + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "5.59.1", + "eslint-visitor-keys": "^3.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@wagmi/chains": { + "version": "0.2.19", + "funding": [ + { + "type": "gitcoin", + "url": "https://wagmi.sh/gitcoin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "license": "MIT", + "peerDependencies": { + "typescript": ">=4.9.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@wagmi/connectors": { + "version": "0.3.16", + "funding": [ + { + "type": "gitcoin", + "url": "https://wagmi.sh/gitcoin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "license": "MIT", + "dependencies": { + "@coinbase/wallet-sdk": "^3.6.4", + "@ledgerhq/connect-kit-loader": "^1.0.1", + "@safe-global/safe-apps-provider": "^0.15.2", + "@safe-global/safe-apps-sdk": "^7.9.0", + "@walletconnect/ethereum-provider": "2.7.0", + "@walletconnect/legacy-provider": "^2.0.0", + "@web3modal/standalone": "^2.3.0", + "abitype": "^0.3.0", + "eventemitter3": "^4.0.7" + }, + "peerDependencies": { + "@wagmi/core": ">=0.9.x", + "ethers": ">=5.5.1 <6", + "typescript": ">=4.9.4" + }, + "peerDependenciesMeta": { + "@wagmi/core": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/@wagmi/core": { + "version": "0.10.10", + "funding": [ + { + "type": "gitcoin", + "url": "https://wagmi.sh/gitcoin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "license": "MIT", + "dependencies": { + "@wagmi/chains": "0.2.19", + "@wagmi/connectors": "0.3.16", + "abitype": "^0.3.0", + "eventemitter3": "^4.0.7", + "zustand": "^4.3.1" + }, + "peerDependencies": { + "ethers": ">=5.5.1 <6", + "typescript": ">=4.9.4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@wallet-standard/base": { + "version": "1.0.1", + "license": "Apache-2.0", + "engines": { + "node": ">=16" + } + }, + "node_modules/@wallet-standard/features": { + "version": "1.0.3", + "license": "Apache-2.0", + "dependencies": { + "@wallet-standard/base": "^1.0.1" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/@walletconnect/browser-utils": { + "version": "1.8.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/safe-json": "1.0.0", + "@walletconnect/types": "^1.8.0", + "@walletconnect/window-getters": "1.0.0", + "@walletconnect/window-metadata": "1.0.0", + "detect-browser": "5.2.0" + } + }, + "node_modules/@walletconnect/core": { + "version": "2.7.1", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-provider": "^1.0.12", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/jsonrpc-ws-connection": "^1.0.11", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "@walletconnect/relay-api": "^1.0.9", + "@walletconnect/relay-auth": "^1.0.4", + "@walletconnect/safe-json": "^1.0.2", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.1", + "@walletconnect/utils": "2.7.1", + "events": "^3.3.0", + "lodash.isequal": "4.5.0", + "uint8arrays": "^3.1.0" + } + }, + "node_modules/@walletconnect/core/node_modules/@walletconnect/safe-json": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/core/node_modules/@walletconnect/types": { + "version": "2.7.1", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/core/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/crypto": { + "version": "1.0.3", + "license": "MIT", + "dependencies": { + "@walletconnect/encoding": "^1.0.2", + "@walletconnect/environment": "^1.0.1", + "@walletconnect/randombytes": "^1.0.3", + "aes-js": "^3.1.2", + "hash.js": "^1.1.7", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/crypto/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/encoding": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "is-typedarray": "1.0.0", + "tslib": "1.14.1", + "typedarray-to-buffer": "3.1.5" + } + }, + "node_modules/@walletconnect/encoding/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/environment": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/environment/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/ethereum-provider": { + "version": "2.7.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/jsonrpc-http-connection": "^1.0.4", + "@walletconnect/jsonrpc-provider": "^1.0.11", + "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/sign-client": "2.7.0", + "@walletconnect/types": "2.7.0", + "@walletconnect/universal-provider": "2.7.0", + "@walletconnect/utils": "2.7.0", + "events": "^3.3.0" + }, + "peerDependencies": { + "@web3modal/standalone": ">=2" + }, + "peerDependenciesMeta": { + "@web3modal/standalone": { + "optional": true + } + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@walletconnect/core": { + "version": "2.7.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-provider": "^1.0.12", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/jsonrpc-ws-connection": "^1.0.11", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "@walletconnect/relay-api": "^1.0.9", + "@walletconnect/relay-auth": "^1.0.4", + "@walletconnect/safe-json": "^1.0.2", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.0", + "@walletconnect/utils": "2.7.0", + "events": "^3.3.0", + "lodash.isequal": "4.5.0", + "uint8arrays": "^3.1.0" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@walletconnect/safe-json": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@walletconnect/sign-client": { + "version": "2.7.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/core": "2.7.0", + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/logger": "^2.0.1", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.0", + "@walletconnect/utils": "2.7.0", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@walletconnect/types": { + "version": "2.7.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@walletconnect/utils": { + "version": "2.7.0", + "license": "Apache-2.0", + "dependencies": { + "@stablelib/chacha20poly1305": "1.0.1", + "@stablelib/hkdf": "1.0.1", + "@stablelib/random": "^1.0.2", + "@stablelib/sha256": "1.0.1", + "@stablelib/x25519": "^1.0.3", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/relay-api": "^1.0.9", + "@walletconnect/safe-json": "^1.0.2", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.0", + "@walletconnect/window-getters": "^1.0.1", + "@walletconnect/window-metadata": "^1.0.1", + "detect-browser": "5.3.0", + "query-string": "7.1.1", + "uint8arrays": "^3.1.0" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@walletconnect/window-getters": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/@walletconnect/window-metadata": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@walletconnect/window-getters": "^1.0.1", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/detect-browser": { + "version": "5.3.0", + "license": "MIT" + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/query-string": { + "version": "7.1.1", + "license": "MIT", + "dependencies": { + "decode-uri-component": "^0.2.0", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@walletconnect/ethereum-provider/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/events": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "keyvaluestorage-interface": "^1.0.0", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/events/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/heartbeat": { + "version": "1.2.1", + "license": "MIT", + "dependencies": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/time": "^1.0.2", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/heartbeat/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/jsonrpc-http-connection": { + "version": "1.0.6", + "license": "MIT", + "dependencies": { + "@walletconnect/jsonrpc-utils": "^1.0.6", + "@walletconnect/safe-json": "^1.0.1", + "cross-fetch": "^3.1.4", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/jsonrpc-http-connection/node_modules/@walletconnect/safe-json": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/jsonrpc-http-connection/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/jsonrpc-provider": { + "version": "1.0.12", + "license": "MIT", + "dependencies": { + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/safe-json": "^1.0.2", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/jsonrpc-provider/node_modules/@walletconnect/safe-json": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/jsonrpc-provider/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/jsonrpc-types": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "keyvaluestorage-interface": "^1.0.0", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/jsonrpc-types/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/jsonrpc-utils": { + "version": "1.0.7", + "license": "MIT", + "dependencies": { + "@walletconnect/environment": "^1.0.1", + "@walletconnect/jsonrpc-types": "^1.0.2", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/jsonrpc-utils/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/jsonrpc-ws-connection": { + "version": "1.0.11", + "license": "MIT", + "dependencies": { + "@walletconnect/jsonrpc-utils": "^1.0.6", + "@walletconnect/safe-json": "^1.0.2", + "events": "^3.3.0", + "tslib": "1.14.1", + "ws": "^7.5.1" + } + }, + "node_modules/@walletconnect/jsonrpc-ws-connection/node_modules/@walletconnect/safe-json": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/jsonrpc-ws-connection/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/keyvaluestorage": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "safe-json-utils": "^1.1.1", + "tslib": "1.14.1" + }, + "peerDependencies": { + "@react-native-async-storage/async-storage": "1.x", + "lokijs": "1.x" + }, + "peerDependenciesMeta": { + "@react-native-async-storage/async-storage": { + "optional": true + }, + "lokijs": { + "optional": true + } + } + }, + "node_modules/@walletconnect/keyvaluestorage/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/legacy-client": { + "version": "2.0.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/crypto": "^1.0.3", + "@walletconnect/encoding": "^1.0.2", + "@walletconnect/jsonrpc-utils": "^1.0.4", + "@walletconnect/legacy-types": "^2.0.0", + "@walletconnect/legacy-utils": "^2.0.0", + "@walletconnect/safe-json": "^1.0.1", + "@walletconnect/window-getters": "^1.0.1", + "@walletconnect/window-metadata": "^1.0.1", + "detect-browser": "^5.3.0", + "query-string": "^6.13.5" + } + }, + "node_modules/@walletconnect/legacy-client/node_modules/@walletconnect/safe-json": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/legacy-client/node_modules/@walletconnect/window-getters": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/legacy-client/node_modules/@walletconnect/window-metadata": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@walletconnect/window-getters": "^1.0.1", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/legacy-client/node_modules/detect-browser": { + "version": "5.3.0", + "license": "MIT" + }, + "node_modules/@walletconnect/legacy-client/node_modules/query-string": { + "version": "6.14.1", + "license": "MIT", + "dependencies": { + "decode-uri-component": "^0.2.0", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@walletconnect/legacy-client/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/legacy-modal": { + "version": "2.0.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/legacy-types": "^2.0.0", + "@walletconnect/legacy-utils": "^2.0.0", + "copy-to-clipboard": "^3.3.3", + "preact": "^10.12.0", + "qrcode": "^1.5.1" + } + }, + "node_modules/@walletconnect/legacy-modal/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@walletconnect/legacy-modal/node_modules/cliui": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/@walletconnect/legacy-modal/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@walletconnect/legacy-modal/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/@walletconnect/legacy-modal/node_modules/pngjs": { + "version": "5.0.0", + "license": "MIT", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@walletconnect/legacy-modal/node_modules/preact": { + "version": "10.13.2", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + } + }, + "node_modules/@walletconnect/legacy-modal/node_modules/qrcode": { + "version": "1.5.3", + "license": "MIT", + "dependencies": { + "dijkstrajs": "^1.0.1", + "encode-utf8": "^1.0.3", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@walletconnect/legacy-modal/node_modules/wrap-ansi": { + "version": "6.2.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@walletconnect/legacy-modal/node_modules/y18n": { + "version": "4.0.3", + "license": "ISC" + }, + "node_modules/@walletconnect/legacy-modal/node_modules/yargs": { + "version": "15.4.1", + "license": "MIT", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@walletconnect/legacy-modal/node_modules/yargs-parser": { + "version": "18.1.3", + "license": "ISC", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@walletconnect/legacy-provider": { + "version": "2.0.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/jsonrpc-http-connection": "^1.0.4", + "@walletconnect/jsonrpc-provider": "^1.0.6", + "@walletconnect/legacy-client": "^2.0.0", + "@walletconnect/legacy-modal": "^2.0.0", + "@walletconnect/legacy-types": "^2.0.0", + "@walletconnect/legacy-utils": "^2.0.0" + } + }, + "node_modules/@walletconnect/legacy-types": { + "version": "2.0.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/jsonrpc-types": "^1.0.2" + } + }, + "node_modules/@walletconnect/legacy-utils": { + "version": "2.0.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/encoding": "^1.0.2", + "@walletconnect/jsonrpc-utils": "^1.0.4", + "@walletconnect/legacy-types": "^2.0.0", + "@walletconnect/safe-json": "^1.0.1", + "@walletconnect/window-getters": "^1.0.1", + "@walletconnect/window-metadata": "^1.0.1", + "detect-browser": "^5.3.0", + "query-string": "^6.13.5" + } + }, + "node_modules/@walletconnect/legacy-utils/node_modules/@walletconnect/safe-json": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/legacy-utils/node_modules/@walletconnect/window-getters": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/legacy-utils/node_modules/@walletconnect/window-metadata": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@walletconnect/window-getters": "^1.0.1", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/legacy-utils/node_modules/detect-browser": { + "version": "5.3.0", + "license": "MIT" + }, + "node_modules/@walletconnect/legacy-utils/node_modules/query-string": { + "version": "6.14.1", + "license": "MIT", + "dependencies": { + "decode-uri-component": "^0.2.0", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@walletconnect/legacy-utils/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/logger": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "pino": "7.11.0", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/logger/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/mobile-registry": { + "version": "1.4.0", + "license": "MIT" + }, + "node_modules/@walletconnect/qrcode-modal": { + "version": "1.8.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/browser-utils": "^1.8.0", + "@walletconnect/mobile-registry": "^1.4.0", + "@walletconnect/types": "^1.8.0", + "copy-to-clipboard": "^3.3.1", + "preact": "10.4.1", + "qrcode": "1.4.4" + } + }, + "node_modules/@walletconnect/randombytes": { + "version": "1.0.3", + "license": "MIT", + "dependencies": { + "@walletconnect/encoding": "^1.0.2", + "@walletconnect/environment": "^1.0.1", + "randombytes": "^2.1.0", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/randombytes/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/relay-api": { + "version": "1.0.9", + "license": "MIT", + "dependencies": { + "@walletconnect/jsonrpc-types": "^1.0.2", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/relay-api/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/relay-auth": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "@stablelib/ed25519": "^1.0.2", + "@stablelib/random": "^1.0.1", + "@walletconnect/safe-json": "^1.0.1", + "@walletconnect/time": "^1.0.2", + "tslib": "1.14.1", + "uint8arrays": "^3.0.0" + } + }, + "node_modules/@walletconnect/relay-auth/node_modules/@walletconnect/safe-json": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/relay-auth/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/safe-json": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/@walletconnect/sign-client": { + "version": "2.7.1", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/core": "2.7.1", + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/logger": "^2.0.1", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.1", + "@walletconnect/utils": "2.7.1", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/sign-client/node_modules/@walletconnect/types": { + "version": "2.7.1", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/time": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/time/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/types": { + "version": "1.8.0", + "license": "Apache-2.0" + }, + "node_modules/@walletconnect/universal-provider": { + "version": "2.7.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/jsonrpc-http-connection": "^1.0.4", + "@walletconnect/jsonrpc-provider": "^1.0.11", + "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/logger": "^2.0.1", + "@walletconnect/sign-client": "2.7.0", + "@walletconnect/types": "2.7.0", + "@walletconnect/utils": "2.7.0", + "eip1193-provider": "1.0.1", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/universal-provider/node_modules/@walletconnect/core": { + "version": "2.7.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-provider": "^1.0.12", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/jsonrpc-ws-connection": "^1.0.11", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "@walletconnect/relay-api": "^1.0.9", + "@walletconnect/relay-auth": "^1.0.4", + "@walletconnect/safe-json": "^1.0.2", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.0", + "@walletconnect/utils": "2.7.0", + "events": "^3.3.0", + "lodash.isequal": "4.5.0", + "uint8arrays": "^3.1.0" + } + }, + "node_modules/@walletconnect/universal-provider/node_modules/@walletconnect/safe-json": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/universal-provider/node_modules/@walletconnect/sign-client": { + "version": "2.7.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/core": "2.7.0", + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/logger": "^2.0.1", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.0", + "@walletconnect/utils": "2.7.0", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/universal-provider/node_modules/@walletconnect/types": { + "version": "2.7.0", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/universal-provider/node_modules/@walletconnect/utils": { + "version": "2.7.0", + "license": "Apache-2.0", + "dependencies": { + "@stablelib/chacha20poly1305": "1.0.1", + "@stablelib/hkdf": "1.0.1", + "@stablelib/random": "^1.0.2", + "@stablelib/sha256": "1.0.1", + "@stablelib/x25519": "^1.0.3", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/relay-api": "^1.0.9", + "@walletconnect/safe-json": "^1.0.2", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.0", + "@walletconnect/window-getters": "^1.0.1", + "@walletconnect/window-metadata": "^1.0.1", + "detect-browser": "5.3.0", + "query-string": "7.1.1", + "uint8arrays": "^3.1.0" + } + }, + "node_modules/@walletconnect/universal-provider/node_modules/@walletconnect/window-getters": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/universal-provider/node_modules/@walletconnect/window-metadata": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@walletconnect/window-getters": "^1.0.1", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/universal-provider/node_modules/detect-browser": { + "version": "5.3.0", + "license": "MIT" + }, + "node_modules/@walletconnect/universal-provider/node_modules/query-string": { + "version": "7.1.1", + "license": "MIT", + "dependencies": { + "decode-uri-component": "^0.2.0", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@walletconnect/universal-provider/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/utils": { + "version": "2.7.1", + "license": "Apache-2.0", + "dependencies": { + "@stablelib/chacha20poly1305": "1.0.1", + "@stablelib/hkdf": "1.0.1", + "@stablelib/random": "^1.0.2", + "@stablelib/sha256": "1.0.1", + "@stablelib/x25519": "^1.0.3", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/relay-api": "^1.0.9", + "@walletconnect/safe-json": "^1.0.2", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.1", + "@walletconnect/window-getters": "^1.0.1", + "@walletconnect/window-metadata": "^1.0.1", + "detect-browser": "5.3.0", + "query-string": "7.1.3", + "uint8arrays": "^3.1.0" + } + }, + "node_modules/@walletconnect/utils/node_modules/@walletconnect/safe-json": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/utils/node_modules/@walletconnect/types": { + "version": "2.7.1", + "license": "Apache-2.0", + "dependencies": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "events": "^3.3.0" + } + }, + "node_modules/@walletconnect/utils/node_modules/@walletconnect/window-getters": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/utils/node_modules/@walletconnect/window-metadata": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@walletconnect/window-getters": "^1.0.1", + "tslib": "1.14.1" + } + }, + "node_modules/@walletconnect/utils/node_modules/detect-browser": { + "version": "5.3.0", + "license": "MIT" + }, + "node_modules/@walletconnect/utils/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/@walletconnect/window-getters": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/@walletconnect/window-metadata": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "@walletconnect/window-getters": "^1.0.0" + } + }, + "node_modules/@web3modal/core": { + "version": "2.3.7", + "license": "Apache-2.0", + "dependencies": { + "buffer": "6.0.3", + "valtio": "1.10.4" + } + }, + "node_modules/@web3modal/standalone": { + "version": "2.3.7", + "license": "Apache-2.0", + "dependencies": { + "@web3modal/core": "2.3.7", + "@web3modal/ui": "2.3.7" + } + }, + "node_modules/@web3modal/ui": { + "version": "2.3.7", + "license": "Apache-2.0", + "dependencies": { + "@web3modal/core": "2.3.7", + "lit": "2.7.3", + "motion": "10.15.5", + "qrcode": "1.5.3" + } + }, + "node_modules/@web3modal/ui/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@web3modal/ui/node_modules/cliui": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "node_modules/@web3modal/ui/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@web3modal/ui/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/@web3modal/ui/node_modules/pngjs": { + "version": "5.0.0", + "license": "MIT", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@web3modal/ui/node_modules/qrcode": { + "version": "1.5.3", + "license": "MIT", + "dependencies": { + "dijkstrajs": "^1.0.1", + "encode-utf8": "^1.0.3", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/@web3modal/ui/node_modules/wrap-ansi": { + "version": "6.2.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@web3modal/ui/node_modules/y18n": { + "version": "4.0.3", + "license": "ISC" + }, + "node_modules/@web3modal/ui/node_modules/yargs": { + "version": "15.4.1", + "license": "MIT", + "dependencies": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@web3modal/ui/node_modules/yargs-parser": { + "version": "18.1.3", + "license": "ISC", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@webassemblyjs/ast": { + "version": "1.11.5", + "license": "MIT", + "dependencies": { + "@webassemblyjs/helper-numbers": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5" + } + }, + "node_modules/@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.5", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-api-error": { + "version": "1.11.5", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-buffer": { + "version": "1.11.5", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-numbers": { + "version": "1.11.5", + "license": "MIT", + "dependencies": { + "@webassemblyjs/floating-point-hex-parser": "1.11.5", + "@webassemblyjs/helper-api-error": "1.11.5", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.5", + "license": "MIT" + }, + "node_modules/@webassemblyjs/helper-wasm-section": { + "version": "1.11.5", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-buffer": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5", + "@webassemblyjs/wasm-gen": "1.11.5" + } + }, + "node_modules/@webassemblyjs/ieee754": { + "version": "1.11.5", + "license": "MIT", + "dependencies": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "node_modules/@webassemblyjs/leb128": { + "version": "1.11.5", + "license": "Apache-2.0", + "dependencies": { + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@webassemblyjs/utf8": { + "version": "1.11.5", + "license": "MIT" + }, + "node_modules/@webassemblyjs/wasm-edit": { + "version": "1.11.5", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-buffer": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5", + "@webassemblyjs/helper-wasm-section": "1.11.5", + "@webassemblyjs/wasm-gen": "1.11.5", + "@webassemblyjs/wasm-opt": "1.11.5", + "@webassemblyjs/wasm-parser": "1.11.5", + "@webassemblyjs/wast-printer": "1.11.5" + } + }, + "node_modules/@webassemblyjs/wasm-gen": { + "version": "1.11.5", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5", + "@webassemblyjs/ieee754": "1.11.5", + "@webassemblyjs/leb128": "1.11.5", + "@webassemblyjs/utf8": "1.11.5" + } + }, + "node_modules/@webassemblyjs/wasm-opt": { + "version": "1.11.5", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-buffer": "1.11.5", + "@webassemblyjs/wasm-gen": "1.11.5", + "@webassemblyjs/wasm-parser": "1.11.5" + } + }, + "node_modules/@webassemblyjs/wasm-parser": { + "version": "1.11.5", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-api-error": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5", + "@webassemblyjs/ieee754": "1.11.5", + "@webassemblyjs/leb128": "1.11.5", + "@webassemblyjs/utf8": "1.11.5" + } + }, + "node_modules/@webassemblyjs/wast-printer": { + "version": "1.11.5", + "license": "MIT", + "dependencies": { + "@webassemblyjs/ast": "1.11.5", + "@xtuc/long": "4.2.2" + } + }, + "node_modules/@wormhole-foundation/wormhole-connect": { + "version": "0.0.1-beta.4", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/wormhole-connect/-/wormhole-connect-0.0.1-beta.4.tgz", + "integrity": "sha512-sRw6fqJNiPs6GLXo75FOHy6GcZgSnTfdbzuNe7M+i+YdKTPJ+nifE02/UnVa8azH02PcsM8sIkQTo/jQhTwzwg==", + "dependencies": { + "@mui/material": "^5.12.1" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" + } + }, + "node_modules/@wormhole-foundation/wormhole-connect-app": { + "resolved": "wormhole-connect", + "link": true + }, + "node_modules/@wormhole-foundation/wormhole-connect-sdk": { + "resolved": "sdk", + "link": true + }, + "node_modules/@wry/context": { + "version": "0.7.0", + "license": "MIT", + "dependencies": { + "tslib": "^2.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@wry/equality": { + "version": "0.5.3", + "license": "MIT", + "dependencies": { + "tslib": "^2.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@wry/trie": { + "version": "0.3.2", + "license": "MIT", + "dependencies": { + "tslib": "^2.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@xlabs-libs/wallet-aggregator-core": { + "version": "0.0.1-alpha.12", + "license": "MIT", + "dependencies": { + "eventemitter3": "^5.0.0" + } + }, + "node_modules/@xlabs-libs/wallet-aggregator-core/node_modules/eventemitter3": { + "version": "5.0.0", + "license": "MIT" + }, + "node_modules/@xlabs-libs/wallet-aggregator-evm": { + "version": "0.0.1-alpha.25", + "license": "MIT", + "dependencies": { + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@wagmi/core": "^0.10.8", + "@web3modal/standalone": "^2.2.1", + "@xlabs-libs/wallet-aggregator-core": "^0.0.1-alpha.12", + "ethers": "^5.7.2", + "versions": "^10.4.1", + "web3-provider-engine": "^16.0.4" + } + }, + "node_modules/@xlabs-libs/wallet-aggregator-react": { + "version": "0.0.1-alpha.11", + "license": "MIT", + "dependencies": { + "@xlabs-libs/wallet-aggregator-core": "^0.0.1-alpha.11" + } + }, + "node_modules/@xlabs-libs/wallet-aggregator-solana": { + "version": "0.0.1-alpha.10", + "license": "MIT", + "dependencies": { + "@solana/wallet-adapter-base": "^0.9.20", + "@xlabs-libs/wallet-aggregator-core": "^0.0.1-alpha.12" + } + }, + "node_modules/@xpla/xpla.js": { + "version": "0.2.3", + "license": "MIT", + "dependencies": { + "@ethersproject/bytes": "^5.6.1", + "@ethersproject/keccak256": "^5.6.1", + "@ethersproject/signing-key": "^5.6.2", + "@terra-money/legacy.proto": "npm:@terra-money/terra.proto@^0.1.7", + "@terra-money/terra.proto": "^2.1.0", + "axios": "^0.26.1", + "bech32": "^2.0.0", + "bip32": "^2.0.6", + "bip39": "^3.0.3", + "bufferutil": "^4.0.3", + "crypto-addr-codec": "^0.1.7", + "decimal.js": "^10.2.1", + "elliptic": "^6.5.4", + "ethereumjs-util": "^7.1.5", + "jscrypto": "^1.0.1", + "readable-stream": "^3.6.0", + "secp256k1": "^4.0.2", + "tmp": "^0.2.1", + "utf-8-validate": "^5.0.5", + "ws": "^7.5.8" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/@xpla/xpla.js/node_modules/axios": { + "version": "0.26.1", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.14.8" + } + }, + "node_modules/@xtuc/ieee754": { + "version": "1.2.0", + "license": "BSD-3-Clause" + }, + "node_modules/@xtuc/long": { + "version": "4.2.2", + "license": "Apache-2.0" + }, + "node_modules/abab": { + "version": "2.0.6", + "license": "BSD-3-Clause" + }, + "node_modules/abitype": { + "version": "0.3.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/wagmi-dev" + } + ], + "license": "MIT", + "engines": { + "pnpm": ">=7" + }, + "peerDependencies": { + "typescript": ">=4.9.4", + "zod": ">=3.19.1" + }, + "peerDependenciesMeta": { + "zod": { + "optional": true + } + } + }, + "node_modules/abortcontroller-polyfill": { + "version": "1.7.5", + "license": "MIT" + }, + "node_modules/abstract-leveldown": { + "version": "2.6.3", + "license": "MIT", + "dependencies": { + "xtend": "~4.0.0" + } + }, + "node_modules/accepts": { + "version": "1.3.8", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/acorn": { + "version": "8.8.2", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-globals": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + } + }, + "node_modules/acorn-globals/node_modules/acorn": { + "version": "7.4.1", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-import-assertions": { + "version": "1.8.0", + "license": "MIT", + "peerDependencies": { + "acorn": "^8" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "7.2.0", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/address": { + "version": "1.2.2", + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/adjust-sourcemap-loader": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "loader-utils": "^2.0.0", + "regex-parser": "^2.2.11" + }, + "engines": { + "node": ">=8.9" + } + }, + "node_modules/aes-js": { + "version": "3.1.2", + "license": "MIT" + }, + "node_modules/agent-base": { + "version": "6.0.2", + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/agentkeepalive": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "debug": "^4.1.0", + "depd": "^2.0.0", + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "2.1.1", + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/ajv-keywords": { + "version": "3.5.2", + "license": "MIT", + "peerDependencies": { + "ajv": "^6.9.1" + } + }, + "node_modules/algo-msgpack-with-bigint": { + "version": "2.1.1", + "license": "ISC", + "engines": { + "node": ">= 10" + } + }, + "node_modules/algosdk": { + "version": "1.24.1", + "license": "MIT", + "dependencies": { + "algo-msgpack-with-bigint": "^2.1.1", + "buffer": "^6.0.2", + "cross-fetch": "^3.1.5", + "hi-base32": "^0.5.1", + "js-sha256": "^0.9.0", + "js-sha3": "^0.8.0", + "js-sha512": "^0.8.0", + "json-bigint": "^1.0.0", + "tweetnacl": "^1.0.3", + "vlq": "^2.0.4" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-html-community": { + "version": "0.0.8", + "engines": [ + "node >= 0.8.0" + ], + "license": "Apache-2.0", + "bin": { + "ansi-html": "bin/ansi-html" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "license": "MIT", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/any-promise": { + "version": "1.3.0", + "license": "MIT" + }, + "node_modules/anymatch": { + "version": "3.1.3", + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/aptos": { + "version": "1.5.0", + "license": "Apache-2.0", + "dependencies": { + "@noble/hashes": "1.1.3", + "@scure/bip39": "1.1.0", + "axios": "0.27.2", + "form-data": "4.0.0", + "tweetnacl": "1.0.3" + }, + "engines": { + "node": ">=11.0.0" + } + }, + "node_modules/aptos/node_modules/@noble/hashes": { + "version": "1.1.3", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "license": "MIT" + }, + "node_modules/aptos/node_modules/axios": { + "version": "0.27.2", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "node_modules/arg": { + "version": "5.0.2", + "license": "MIT" + }, + "node_modules/argparse": { + "version": "1.0.10", + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/aria-query": { + "version": "5.1.3", + "license": "Apache-2.0", + "dependencies": { + "deep-equal": "^2.0.5" + } + }, + "node_modules/array-buffer-byte-length": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/array-includes": { + "version": "3.1.6", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array-union": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/array.prototype.flat": { + "version": "1.3.1", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.flatmap": { + "version": "1.3.1", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.reduce": { + "version": "1.0.5", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-array-method-boxes-properly": "^1.0.0", + "is-string": "^1.0.7" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/array.prototype.tosorted": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + } + }, + "node_modules/asap": { + "version": "2.0.6", + "license": "MIT" + }, + "node_modules/asn1": { + "version": "0.2.6", + "license": "MIT", + "dependencies": { + "safer-buffer": "~2.1.0" + } + }, + "node_modules/asn1.js": { + "version": "5.4.1", + "license": "MIT", + "dependencies": { + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/asn1.js/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/assert": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "es6-object-assign": "^1.1.0", + "is-nan": "^1.2.1", + "object-is": "^1.0.1", + "util": "^0.12.0" + } + }, + "node_modules/assert-plus": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/ast-types-flow": { + "version": "0.0.7", + "license": "ISC" + }, + "node_modules/async": { + "version": "2.6.4", + "license": "MIT", + "dependencies": { + "lodash": "^4.17.14" + } + }, + "node_modules/async-eventemitter": { + "version": "0.2.4", + "license": "MIT", + "dependencies": { + "async": "^2.4.0" + } + }, + "node_modules/async-limiter": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/async-mutex": { + "version": "0.4.0", + "license": "MIT", + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/at-least-node": { + "version": "1.0.0", + "license": "ISC", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/atomic-sleep": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/autoprefixer": { + "version": "10.4.14", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + } + ], + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.5", + "caniuse-lite": "^1.0.30001464", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/aws-sign2": { + "version": "0.7.0", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/aws4": { + "version": "1.12.0", + "license": "MIT" + }, + "node_modules/axe-core": { + "version": "4.7.0", + "license": "MPL-2.0", + "engines": { + "node": ">=4" + } + }, + "node_modules/axios": { + "version": "1.3.6", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/axobject-query": { + "version": "3.1.1", + "license": "Apache-2.0", + "dependencies": { + "deep-equal": "^2.0.5" + } + }, + "node_modules/babel-jest": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/transform": "^29.5.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.5.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/babel-jest/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/babel-jest/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/babel-jest/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/babel-jest/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-jest/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-loader": { + "version": "8.3.0", + "license": "MIT", + "dependencies": { + "find-cache-dir": "^3.3.1", + "loader-utils": "^2.0.0", + "make-dir": "^3.1.0", + "schema-utils": "^2.6.5" + }, + "engines": { + "node": ">= 8.9" + }, + "peerDependencies": { + "@babel/core": "^7.0.0", + "webpack": ">=2" + } + }, + "node_modules/babel-loader/node_modules/schema-utils": { + "version": "2.7.1", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "license": "BSD-3-Clause", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-plugin-macros": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">=10", + "npm": ">=6" + } + }, + "node_modules/babel-plugin-named-asset-import": { + "version": "0.3.8", + "license": "MIT", + "peerDependencies": { + "@babel/core": "^7.1.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.3.3", + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.17.7", + "@babel/helper-define-polyfill-provider": "^0.3.3", + "semver": "^6.1.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.6.0", + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.3.3", + "core-js-compat": "^3.25.1" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.4.1", + "license": "MIT", + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.3.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/babel-plugin-transform-react-remove-prop-types": { + "version": "0.4.24", + "license": "MIT" + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "babel-plugin-jest-hoist": "^29.5.0", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-react-app": { + "version": "10.0.1", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.16.0", + "@babel/plugin-proposal-class-properties": "^7.16.0", + "@babel/plugin-proposal-decorators": "^7.16.4", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0", + "@babel/plugin-proposal-numeric-separator": "^7.16.0", + "@babel/plugin-proposal-optional-chaining": "^7.16.0", + "@babel/plugin-proposal-private-methods": "^7.16.0", + "@babel/plugin-transform-flow-strip-types": "^7.16.0", + "@babel/plugin-transform-react-display-name": "^7.16.0", + "@babel/plugin-transform-runtime": "^7.16.4", + "@babel/preset-env": "^7.16.4", + "@babel/preset-react": "^7.16.0", + "@babel/preset-typescript": "^7.16.0", + "@babel/runtime": "^7.16.3", + "babel-plugin-macros": "^3.1.0", + "babel-plugin-transform-react-remove-prop-types": "^0.4.24" + } + }, + "node_modules/backoff": { + "version": "2.5.0", + "license": "MIT", + "dependencies": { + "precond": "0.2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/base-x": { + "version": "3.0.9", + "license": "MIT", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/base64-js": { + "version": "1.5.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/base64url": { + "version": "3.0.1", + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/batch": { + "version": "0.6.1", + "license": "MIT" + }, + "node_modules/bcrypt-pbkdf": { + "version": "1.0.2", + "license": "BSD-3-Clause", + "dependencies": { + "tweetnacl": "^0.14.3" + } + }, + "node_modules/bcrypt-pbkdf/node_modules/tweetnacl": { + "version": "0.14.5", + "license": "Unlicense" + }, + "node_modules/bech32": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/bfj": { + "version": "7.0.2", + "license": "MIT", + "dependencies": { + "bluebird": "^3.5.5", + "check-types": "^11.1.1", + "hoopy": "^0.1.4", + "tryer": "^1.0.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/big-integer": { + "version": "1.6.36", + "license": "Unlicense", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/big.js": { + "version": "5.2.2", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/bigint-buffer": { + "version": "1.1.5", + "hasInstallScript": true, + "license": "Apache-2.0", + "dependencies": { + "bindings": "^1.3.0" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/bignumber.js": { + "version": "9.1.1", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/binary-extensions": { + "version": "2.2.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/binary-parser": { + "version": "2.2.1", + "license": "MIT", + "engines": { + "node": ">=12" + } + }, + "node_modules/bind-decorator": { + "version": "1.0.11", + "license": "MIT" + }, + "node_modules/bindings": { + "version": "1.5.0", + "license": "MIT", + "dependencies": { + "file-uri-to-path": "1.0.0" + } + }, + "node_modules/bip32": { + "version": "2.0.6", + "license": "MIT", + "dependencies": { + "@types/node": "10.12.18", + "bs58check": "^2.1.1", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "tiny-secp256k1": "^1.1.3", + "typeforce": "^1.11.5", + "wif": "^2.0.6" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/bip32/node_modules/@types/node": { + "version": "10.12.18", + "license": "MIT" + }, + "node_modules/bip39": { + "version": "3.1.0", + "license": "ISC", + "dependencies": { + "@noble/hashes": "^1.2.0" + } + }, + "node_modules/bip66": { + "version": "1.1.5", + "license": "MIT", + "optional": true, + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/blakejs": { + "version": "1.2.1", + "license": "MIT" + }, + "node_modules/bluebird": { + "version": "3.7.2", + "license": "MIT" + }, + "node_modules/bn.js": { + "version": "5.2.1", + "license": "MIT" + }, + "node_modules/body-parser": { + "version": "1.20.2", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/body-parser/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/body-parser/node_modules/http-errors": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/body-parser/node_modules/iconv-lite": { + "version": "0.4.24", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/body-parser/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/body-parser/node_modules/qs": { + "version": "6.11.0", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/body-parser/node_modules/statuses": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/bonjour-service": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "array-flatten": "^2.1.2", + "dns-equal": "^1.0.0", + "fast-deep-equal": "^3.1.3", + "multicast-dns": "^7.2.5" + } + }, + "node_modules/bonjour-service/node_modules/array-flatten": { + "version": "2.1.2", + "license": "MIT" + }, + "node_modules/boolbase": { + "version": "1.0.0", + "license": "ISC" + }, + "node_modules/borsh": { + "version": "0.7.0", + "license": "Apache-2.0", + "dependencies": { + "bn.js": "^5.2.0", + "bs58": "^4.0.0", + "text-encoding-utf-8": "^1.0.2" + } + }, + "node_modules/bowser": { + "version": "2.11.0", + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "license": "MIT", + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/brorand": { + "version": "1.1.0", + "license": "MIT" + }, + "node_modules/browser-headers": { + "version": "0.4.1", + "license": "Apache-2.0" + }, + "node_modules/browser-process-hrtime": { + "version": "1.0.0", + "license": "BSD-2-Clause" + }, + "node_modules/browserify-aes": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "buffer-xor": "^1.0.3", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.3", + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/browserify-cipher": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "browserify-aes": "^1.0.4", + "browserify-des": "^1.0.0", + "evp_bytestokey": "^1.0.0" + } + }, + "node_modules/browserify-des": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "cipher-base": "^1.0.1", + "des.js": "^1.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/browserify-rsa": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "bn.js": "^5.0.0", + "randombytes": "^2.0.1" + } + }, + "node_modules/browserify-sign": { + "version": "4.2.1", + "license": "ISC", + "dependencies": { + "bn.js": "^5.1.1", + "browserify-rsa": "^4.0.1", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "elliptic": "^6.5.3", + "inherits": "^2.0.4", + "parse-asn1": "^5.1.5", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + } + }, + "node_modules/browserify-zlib": { + "version": "0.2.0", + "license": "MIT", + "dependencies": { + "pako": "~1.0.5" + } + }, + "node_modules/browserify-zlib/node_modules/pako": { + "version": "1.0.11", + "license": "(MIT AND Zlib)" + }, + "node_modules/browserslist": { + "version": "4.21.5", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + } + ], + "license": "MIT", + "dependencies": { + "caniuse-lite": "^1.0.30001449", + "electron-to-chromium": "^1.4.284", + "node-releases": "^2.0.8", + "update-browserslist-db": "^1.0.10" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "license": "MIT", + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bs58": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "base-x": "^3.0.2" + } + }, + "node_modules/bs58check": { + "version": "2.1.2", + "license": "MIT", + "dependencies": { + "bs58": "^4.0.0", + "create-hash": "^1.1.0", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "license": "Apache-2.0", + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/btoa": { + "version": "1.2.1", + "license": "(MIT OR Apache-2.0)", + "bin": { + "btoa": "bin/btoa.js" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/buffer": { + "version": "6.0.3", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/buffer-alloc": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "buffer-alloc-unsafe": "^1.1.0", + "buffer-fill": "^1.0.0" + } + }, + "node_modules/buffer-alloc-unsafe": { + "version": "1.1.0", + "license": "MIT" + }, + "node_modules/buffer-fill": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "license": "MIT" + }, + "node_modules/buffer-layout": { + "version": "1.2.2", + "license": "MIT", + "engines": { + "node": ">=4.5" + } + }, + "node_modules/buffer-to-arraybuffer": { + "version": "0.0.5", + "license": "MIT" + }, + "node_modules/buffer-xor": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/bufferutil": { + "version": "4.0.7", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "node-gyp-build": "^4.3.0" + }, + "engines": { + "node": ">=6.14.2" + } + }, + "node_modules/builtin-modules": { + "version": "3.3.0", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/builtin-status-codes": { + "version": "3.0.0", + "license": "MIT" + }, + "node_modules/bytes": { + "version": "3.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/cacheable-lookup": { + "version": "6.1.0", + "license": "MIT", + "engines": { + "node": ">=10.6.0" + } + }, + "node_modules/cacheable-request": { + "version": "7.0.2", + "license": "MIT", + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^4.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^6.0.1", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cacheable-request/node_modules/get-stream": { + "version": "5.2.0", + "license": "MIT", + "dependencies": { + "pump": "^3.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/cacheable-request/node_modules/lowercase-keys": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/call-bind": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camel-case": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/caniuse-api": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001481", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/capability": { + "version": "0.2.5", + "license": "MIT" + }, + "node_modules/case-sensitive-paths-webpack-plugin": { + "version": "2.4.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/caseless": { + "version": "0.12.0", + "license": "Apache-2.0" + }, + "node_modules/cbor-sync": { + "version": "1.0.4", + "license": "MIT" + }, + "node_modules/chalk": { + "version": "2.4.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/chalk/node_modules/escape-string-regexp": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/check-types": { + "version": "11.2.2", + "license": "MIT" + }, + "node_modules/checkpoint-store": { + "version": "1.1.0", + "license": "ISC", + "dependencies": { + "functional-red-black-tree": "^1.0.1" + } + }, + "node_modules/chokidar": { + "version": "3.5.3", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/chownr": { + "version": "1.1.4", + "license": "ISC" + }, + "node_modules/chrome-trace-event": { + "version": "1.0.3", + "license": "MIT", + "engines": { + "node": ">=6.0" + } + }, + "node_modules/ci-info": { + "version": "3.8.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cids": { + "version": "0.7.5", + "license": "MIT", + "dependencies": { + "buffer": "^5.5.0", + "class-is": "^1.1.0", + "multibase": "~0.6.0", + "multicodec": "^1.0.0", + "multihashes": "~0.4.15" + }, + "engines": { + "node": ">=4.0.0", + "npm": ">=3.0.0" + } + }, + "node_modules/cids/node_modules/buffer": { + "version": "5.7.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/cids/node_modules/multicodec": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "buffer": "^5.6.0", + "varint": "^5.0.0" + } + }, + "node_modules/cipher-base": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.2.2", + "license": "MIT" + }, + "node_modules/class-is": { + "version": "1.1.0", + "license": "MIT" + }, + "node_modules/classnames": { + "version": "2.3.2", + "license": "MIT" + }, + "node_modules/clean-css": { + "version": "5.3.2", + "license": "MIT", + "dependencies": { + "source-map": "~0.6.0" + }, + "engines": { + "node": ">= 10.0" + } + }, + "node_modules/clean-css/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cliui": { + "version": "7.0.4", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "node_modules/clone": { + "version": "2.1.2", + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/clone-response": { + "version": "1.0.3", + "license": "MIT", + "dependencies": { + "mimic-response": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/clsx": { + "version": "1.2.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/co": { + "version": "4.6.0", + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/coa": { + "version": "2.0.2", + "license": "MIT", + "dependencies": { + "@types/q": "^1.5.1", + "chalk": "^2.4.1", + "q": "^1.1.2" + }, + "engines": { + "node": ">= 4.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/color-convert": { + "version": "1.9.3", + "license": "MIT", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "license": "MIT" + }, + "node_modules/colord": { + "version": "2.9.3", + "license": "MIT" + }, + "node_modules/colorette": { + "version": "2.0.20", + "license": "MIT" + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "4.1.1", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/common-path-prefix": { + "version": "3.0.0", + "license": "ISC" + }, + "node_modules/common-tags": { + "version": "1.8.2", + "license": "MIT", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/compressible": { + "version": "2.0.18", + "license": "MIT", + "dependencies": { + "mime-db": ">= 1.43.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/compression": { + "version": "1.7.4", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/compression/node_modules/bytes": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/compression/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/compression/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/compression/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/concat-map": { + "version": "0.0.1", + "license": "MIT" + }, + "node_modules/confusing-browser-globals": { + "version": "1.0.11", + "license": "MIT" + }, + "node_modules/connect-history-api-fallback": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-hash": { + "version": "2.5.2", + "license": "ISC", + "dependencies": { + "cids": "^0.7.1", + "multicodec": "^0.5.5", + "multihashes": "^0.4.15" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/convert-source-map": { + "version": "1.9.0", + "license": "MIT" + }, + "node_modules/cookie": { + "version": "0.5.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "license": "MIT" + }, + "node_modules/copy-to-clipboard": { + "version": "3.3.3", + "license": "MIT", + "dependencies": { + "toggle-selection": "^1.0.6" + } + }, + "node_modules/copyfiles": { + "version": "2.4.1", + "license": "MIT", + "dependencies": { + "glob": "^7.0.5", + "minimatch": "^3.0.3", + "mkdirp": "^1.0.4", + "noms": "0.0.0", + "through2": "^2.0.1", + "untildify": "^4.0.0", + "yargs": "^16.1.0" + }, + "bin": { + "copyfiles": "copyfiles", + "copyup": "copyfiles" + } + }, + "node_modules/core-js": { + "version": "3.30.1", + "hasInstallScript": true, + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-js-compat": { + "version": "3.30.1", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.5" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-js-pure": { + "version": "3.30.1", + "hasInstallScript": true, + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/core-util-is": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/cors": { + "version": "2.8.5", + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/cosmiconfig": { + "version": "7.1.0", + "license": "MIT", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/cosmjs-types": { + "version": "0.7.2", + "license": "Apache-2.0", + "dependencies": { + "long": "^4.0.0", + "protobufjs": "~6.11.2" + } + }, + "node_modules/cosmjs-types/node_modules/protobufjs": { + "version": "6.11.3", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" + } + }, + "node_modules/crc": { + "version": "3.8.0", + "license": "MIT", + "dependencies": { + "buffer": "^5.1.0" + } + }, + "node_modules/crc-32": { + "version": "1.2.2", + "license": "Apache-2.0", + "bin": { + "crc32": "bin/crc32.njs" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/crc/node_modules/buffer": { + "version": "5.7.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/create-ecdh": { + "version": "4.0.4", + "license": "MIT", + "dependencies": { + "bn.js": "^4.1.0", + "elliptic": "^6.5.3" + } + }, + "node_modules/create-ecdh/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/create-hash": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" + } + }, + "node_modules/create-hmac": { + "version": "1.1.7", + "license": "MIT", + "dependencies": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "node_modules/cross-fetch": { + "version": "3.1.5", + "license": "MIT", + "dependencies": { + "node-fetch": "2.6.7" + } + }, + "node_modules/cross-fetch/node_modules/node-fetch": { + "version": "2.6.7", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/crypto-addr-codec": { + "version": "0.1.7", + "license": "MIT", + "dependencies": { + "base-x": "^3.0.8", + "big-integer": "1.6.36", + "blakejs": "^1.1.0", + "bs58": "^4.0.1", + "ripemd160-min": "0.0.6", + "safe-buffer": "^5.2.0", + "sha3": "^2.1.1" + } + }, + "node_modules/crypto-browserify": { + "version": "3.12.0", + "license": "MIT", + "dependencies": { + "browserify-cipher": "^1.0.0", + "browserify-sign": "^4.0.0", + "create-ecdh": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.0", + "diffie-hellman": "^5.0.0", + "inherits": "^2.0.1", + "pbkdf2": "^3.0.3", + "public-encrypt": "^4.0.0", + "randombytes": "^2.0.0", + "randomfill": "^1.0.3" + }, + "engines": { + "node": "*" + } + }, + "node_modules/crypto-hash": { + "version": "1.3.0", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/crypto-js": { + "version": "4.1.1", + "license": "MIT" + }, + "node_modules/crypto-random-string": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/css-blank-pseudo": { + "version": "3.0.3", + "license": "CC0-1.0", + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "bin": { + "css-blank-pseudo": "dist/cli.cjs" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/css-declaration-sorter": { + "version": "6.4.0", + "license": "ISC", + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.0.9" + } + }, + "node_modules/css-has-pseudo": { + "version": "3.0.4", + "license": "CC0-1.0", + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "bin": { + "css-has-pseudo": "dist/cli.cjs" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/css-loader": { + "version": "6.7.3", + "license": "MIT", + "dependencies": { + "icss-utils": "^5.1.0", + "postcss": "^8.4.19", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.0", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.2.0", + "semver": "^7.3.8" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/css-loader/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/css-loader/node_modules/semver": { + "version": "7.5.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/css-loader/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/css-minimizer-webpack-plugin": { + "version": "3.4.1", + "license": "MIT", + "dependencies": { + "cssnano": "^5.0.6", + "jest-worker": "^27.0.2", + "postcss": "^8.3.5", + "schema-utils": "^4.0.0", + "serialize-javascript": "^6.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "@parcel/css": { + "optional": true + }, + "clean-css": { + "optional": true + }, + "csso": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/jest-worker": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/schema-utils": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-minimizer-webpack-plugin/node_modules/supports-color": { + "version": "8.1.1", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/css-prefers-color-scheme": { + "version": "6.0.3", + "license": "CC0-1.0", + "bin": { + "css-prefers-color-scheme": "dist/cli.cjs" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/css-select": { + "version": "4.3.0", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css-select-base-adapter": { + "version": "0.1.1", + "license": "MIT" + }, + "node_modules/css-tree": { + "version": "1.0.0-alpha.37", + "license": "MIT", + "dependencies": { + "mdn-data": "2.0.4", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/css-tree/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/css-what": { + "version": "6.1.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/css.escape": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", + "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==" + }, + "node_modules/cssdb": { + "version": "7.5.4", + "license": "CC0-1.0", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + }, + "node_modules/cssesc": { + "version": "3.0.0", + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cssnano": { + "version": "5.1.15", + "license": "MIT", + "dependencies": { + "cssnano-preset-default": "^5.2.14", + "lilconfig": "^2.0.3", + "yaml": "^1.10.2" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/cssnano" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-preset-default": { + "version": "5.2.14", + "license": "MIT", + "dependencies": { + "css-declaration-sorter": "^6.3.1", + "cssnano-utils": "^3.1.0", + "postcss-calc": "^8.2.3", + "postcss-colormin": "^5.3.1", + "postcss-convert-values": "^5.1.3", + "postcss-discard-comments": "^5.1.2", + "postcss-discard-duplicates": "^5.1.0", + "postcss-discard-empty": "^5.1.1", + "postcss-discard-overridden": "^5.1.0", + "postcss-merge-longhand": "^5.1.7", + "postcss-merge-rules": "^5.1.4", + "postcss-minify-font-values": "^5.1.0", + "postcss-minify-gradients": "^5.1.1", + "postcss-minify-params": "^5.1.4", + "postcss-minify-selectors": "^5.2.1", + "postcss-normalize-charset": "^5.1.0", + "postcss-normalize-display-values": "^5.1.0", + "postcss-normalize-positions": "^5.1.1", + "postcss-normalize-repeat-style": "^5.1.1", + "postcss-normalize-string": "^5.1.0", + "postcss-normalize-timing-functions": "^5.1.0", + "postcss-normalize-unicode": "^5.1.1", + "postcss-normalize-url": "^5.1.0", + "postcss-normalize-whitespace": "^5.1.1", + "postcss-ordered-values": "^5.1.3", + "postcss-reduce-initial": "^5.1.2", + "postcss-reduce-transforms": "^5.1.0", + "postcss-svgo": "^5.1.0", + "postcss-unique-selectors": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/cssnano-utils": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/csso": { + "version": "4.2.0", + "license": "MIT", + "dependencies": { + "css-tree": "^1.1.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/csso/node_modules/css-tree": { + "version": "1.1.3", + "license": "MIT", + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/csso/node_modules/mdn-data": { + "version": "2.0.14", + "license": "CC0-1.0" + }, + "node_modules/csso/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/cssom": { + "version": "0.4.4", + "license": "MIT" + }, + "node_modules/cssstyle": { + "version": "2.3.0", + "license": "MIT", + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "license": "MIT" + }, + "node_modules/csstype": { + "version": "3.1.2", + "license": "MIT" + }, + "node_modules/d": { + "version": "1.0.1", + "license": "ISC", + "dependencies": { + "es5-ext": "^0.10.50", + "type": "^1.0.1" + } + }, + "node_modules/damerau-levenshtein": { + "version": "1.0.8", + "license": "BSD-2-Clause" + }, + "node_modules/dashdash": { + "version": "1.14.1", + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/data-urls": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/data-urls/node_modules/tr46": { + "version": "2.1.0", + "license": "MIT", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/data-urls/node_modules/webidl-conversions": { + "version": "6.1.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=10.4" + } + }, + "node_modules/data-urls/node_modules/whatwg-url": { + "version": "8.7.0", + "license": "MIT", + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decamelize": { + "version": "1.2.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/decimal.js": { + "version": "10.4.3", + "license": "MIT" + }, + "node_modules/decode-uri-component": { + "version": "0.2.2", + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/decompress-response": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "mimic-response": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/decompress-response/node_modules/mimic-response": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/dedent": { + "version": "0.7.0", + "license": "MIT" + }, + "node_modules/deep-equal": { + "version": "2.2.1", + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "es-get-iterator": "^1.1.3", + "get-intrinsic": "^1.2.0", + "is-arguments": "^1.1.1", + "is-array-buffer": "^3.0.2", + "is-date-object": "^1.0.5", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "isarray": "^2.0.5", + "object-is": "^1.1.5", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.0", + "side-channel": "^1.0.4", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "license": "MIT" + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/default-gateway": { + "version": "6.0.3", + "license": "BSD-2-Clause", + "dependencies": { + "execa": "^5.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/defer-to-connect": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/deferred-leveldown": { + "version": "1.2.2", + "license": "MIT", + "dependencies": { + "abstract-leveldown": "~2.6.0" + } + }, + "node_modules/define-lazy-prop": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/define-properties": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delay": { + "version": "5.0.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/des.js": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-browser": { + "version": "5.2.0", + "license": "MIT" + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/detect-node": { + "version": "2.1.0", + "license": "MIT" + }, + "node_modules/detect-port-alt": { + "version": "1.1.6", + "license": "MIT", + "dependencies": { + "address": "^1.0.1", + "debug": "^2.6.0" + }, + "bin": { + "detect": "bin/detect-port", + "detect-port": "bin/detect-port" + }, + "engines": { + "node": ">= 4.2.1" + } + }, + "node_modules/detect-port-alt/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/detect-port-alt/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/didyoumean": { + "version": "1.2.2", + "license": "Apache-2.0" + }, + "node_modules/diff-sequences": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/diffie-hellman": { + "version": "5.0.3", + "license": "MIT", + "dependencies": { + "bn.js": "^4.1.0", + "miller-rabin": "^4.0.0", + "randombytes": "^2.0.0" + } + }, + "node_modules/diffie-hellman/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/dijkstrajs": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/dlv": { + "version": "1.1.3", + "license": "MIT" + }, + "node_modules/dns-equal": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/dns-packet": { + "version": "5.6.0", + "license": "MIT", + "dependencies": { + "@leichtgewicht/ip-codec": "^2.0.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/dom-accessibility-api": { + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", + "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==" + }, + "node_modules/dom-converter": { + "version": "0.2.0", + "license": "MIT", + "dependencies": { + "utila": "~0.4" + } + }, + "node_modules/dom-helpers": { + "version": "5.2.1", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.8.7", + "csstype": "^3.0.2" + } + }, + "node_modules/dom-serializer": { + "version": "1.4.1", + "license": "MIT", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + }, + "funding": { + "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" + } + }, + "node_modules/dom-walk": { + "version": "0.1.2" + }, + "node_modules/domelementtype": { + "version": "2.3.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "BSD-2-Clause" + }, + "node_modules/domexception": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "webidl-conversions": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/domexception/node_modules/webidl-conversions": { + "version": "5.0.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/domhandler": { + "version": "4.3.1", + "license": "BSD-2-Clause", + "dependencies": { + "domelementtype": "^2.2.0" + }, + "engines": { + "node": ">= 4" + }, + "funding": { + "url": "https://github.com/fb55/domhandler?sponsor=1" + } + }, + "node_modules/domutils": { + "version": "2.8.0", + "license": "BSD-2-Clause", + "dependencies": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + }, + "funding": { + "url": "https://github.com/fb55/domutils?sponsor=1" + } + }, + "node_modules/dot-case": { + "version": "3.0.4", + "license": "MIT", + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/dotenv": { + "version": "10.0.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=10" + } + }, + "node_modules/dotenv-expand": { + "version": "5.1.0", + "license": "BSD-2-Clause" + }, + "node_modules/drbg.js": { + "version": "1.0.1", + "license": "MIT", + "optional": true, + "dependencies": { + "browserify-aes": "^1.0.6", + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/duplexer": { + "version": "0.1.2", + "license": "MIT" + }, + "node_modules/duplexify": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.4.1", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1", + "stream-shift": "^1.0.0" + } + }, + "node_modules/ecc-jsbn": { + "version": "0.1.2", + "license": "MIT", + "dependencies": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/eccrypto": { + "version": "1.1.6", + "hasInstallScript": true, + "license": "CC0-1.0", + "dependencies": { + "acorn": "7.1.1", + "elliptic": "6.5.4", + "es6-promise": "4.2.8", + "nan": "2.14.0" + }, + "optionalDependencies": { + "secp256k1": "3.7.1" + } + }, + "node_modules/eccrypto/node_modules/acorn": { + "version": "7.1.1", + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/eccrypto/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT", + "optional": true + }, + "node_modules/eccrypto/node_modules/secp256k1": { + "version": "3.7.1", + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "dependencies": { + "bindings": "^1.5.0", + "bip66": "^1.1.5", + "bn.js": "^4.11.8", + "create-hash": "^1.2.0", + "drbg.js": "^1.0.1", + "elliptic": "^6.4.1", + "nan": "^2.14.0", + "safe-buffer": "^5.1.2" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/eip1193-provider": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "@json-rpc-tools/provider": "^1.5.5" + } + }, + "node_modules/ejs": { + "version": "3.1.9", + "license": "Apache-2.0", + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.375", + "license": "ISC" + }, + "node_modules/elliptic": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "node_modules/elliptic/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/emittery": { + "version": "0.13.1", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "9.2.2", + "license": "MIT" + }, + "node_modules/emojis-list": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/encode-utf8": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "1.0.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "license": "MIT", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/engine.io-client": { + "version": "6.4.0", + "license": "MIT", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1", + "engine.io-parser": "~5.0.3", + "ws": "~8.11.0", + "xmlhttprequest-ssl": "~2.0.0" + } + }, + "node_modules/engine.io-client/node_modules/ws": { + "version": "8.11.0", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/engine.io-parser": { + "version": "5.0.6", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/enhanced-resolve": { + "version": "5.13.0", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/entities": { + "version": "2.2.0", + "license": "BSD-2-Clause", + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/env-cmd": { + "version": "10.1.0", + "license": "MIT", + "dependencies": { + "commander": "^4.0.0", + "cross-spawn": "^7.0.0" + }, + "bin": { + "env-cmd": "bin/env-cmd.js" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/errno": { + "version": "0.1.8", + "license": "MIT", + "dependencies": { + "prr": "~1.0.1" + }, + "bin": { + "errno": "cli.js" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/error-polyfill": { + "version": "0.1.3", + "license": "MIT", + "dependencies": { + "capability": "^0.2.5", + "o3": "^1.0.3", + "u3": "^0.1.1" + } + }, + "node_modules/error-stack-parser": { + "version": "2.1.4", + "license": "MIT", + "dependencies": { + "stackframe": "^1.3.4" + } + }, + "node_modules/es-abstract": { + "version": "1.21.2", + "license": "MIT", + "dependencies": { + "array-buffer-byte-length": "^1.0.0", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.0", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.9" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-array-method-boxes-properly": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/es-get-iterator": { + "version": "1.1.3", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "is-arguments": "^1.1.1", + "is-map": "^2.0.2", + "is-set": "^2.0.2", + "is-string": "^1.0.7", + "isarray": "^2.0.5", + "stop-iteration-iterator": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es-module-lexer": { + "version": "1.2.1", + "license": "MIT" + }, + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-shim-unscopables": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "has": "^1.0.3" + } + }, + "node_modules/es-to-primitive": { + "version": "1.2.1", + "license": "MIT", + "dependencies": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/es5-ext": { + "version": "0.10.62", + "hasInstallScript": true, + "license": "ISC", + "dependencies": { + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.3", + "next-tick": "^1.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/es6-iterator": { + "version": "2.0.3", + "license": "MIT", + "dependencies": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "node_modules/es6-object-assign": { + "version": "1.1.0", + "license": "MIT" + }, + "node_modules/es6-promise": { + "version": "4.2.8", + "license": "MIT" + }, + "node_modules/es6-promisify": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "es6-promise": "^4.0.3" + } + }, + "node_modules/es6-symbol": { + "version": "3.1.3", + "license": "ISC", + "dependencies": { + "d": "^1.0.1", + "ext": "^1.1.2" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "license": "MIT" + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/escodegen": { + "version": "2.0.0", + "license": "BSD-2-Clause", + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/escodegen/node_modules/estraverse": { + "version": "5.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/escodegen/node_modules/levn": { + "version": "0.3.0", + "license": "MIT", + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/escodegen/node_modules/optionator": { + "version": "0.8.3", + "license": "MIT", + "dependencies": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/escodegen/node_modules/prelude-ls": { + "version": "1.1.2", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/escodegen/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/escodegen/node_modules/type-check": { + "version": "0.3.2", + "license": "MIT", + "dependencies": { + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/eslint": { + "version": "8.39.0", + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.2", + "@eslint/js": "8.39.0", + "@humanwhocodes/config-array": "^0.11.8", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.0", + "espree": "^9.5.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-sdsl": "^4.1.4", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-config-prettier": { + "version": "8.8.0", + "license": "MIT", + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, + "node_modules/eslint-config-react-app": { + "version": "7.0.1", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.16.0", + "@babel/eslint-parser": "^7.16.3", + "@rushstack/eslint-patch": "^1.1.0", + "@typescript-eslint/eslint-plugin": "^5.5.0", + "@typescript-eslint/parser": "^5.5.0", + "babel-preset-react-app": "^10.0.1", + "confusing-browser-globals": "^1.0.11", + "eslint-plugin-flowtype": "^8.0.3", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-jest": "^25.3.0", + "eslint-plugin-jsx-a11y": "^6.5.1", + "eslint-plugin-react": "^7.27.1", + "eslint-plugin-react-hooks": "^4.3.0", + "eslint-plugin-testing-library": "^5.0.1" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "eslint": "^8.0.0" + } + }, + "node_modules/eslint-import-resolver-node": { + "version": "0.3.7", + "license": "MIT", + "dependencies": { + "debug": "^3.2.7", + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" + } + }, + "node_modules/eslint-import-resolver-node/node_modules/debug": { + "version": "3.2.7", + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-module-utils": { + "version": "2.8.0", + "license": "MIT", + "dependencies": { + "debug": "^3.2.7" + }, + "engines": { + "node": ">=4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + } + } + }, + "node_modules/eslint-module-utils/node_modules/debug": { + "version": "3.2.7", + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-flowtype": { + "version": "8.0.3", + "license": "BSD-3-Clause", + "dependencies": { + "lodash": "^4.17.21", + "string-natural-compare": "^3.0.1" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "@babel/plugin-syntax-flow": "^7.14.5", + "@babel/plugin-transform-react-jsx": "^7.14.9", + "eslint": "^8.1.0" + } + }, + "node_modules/eslint-plugin-import": { + "version": "2.27.5", + "license": "MIT", + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", + "has": "^1.0.3", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", + "tsconfig-paths": "^3.14.1" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8" + } + }, + "node_modules/eslint-plugin-import/node_modules/debug": { + "version": "3.2.7", + "license": "MIT", + "dependencies": { + "ms": "^2.1.1" + } + }, + "node_modules/eslint-plugin-import/node_modules/doctrine": { + "version": "2.1.0", + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-jest": { + "version": "25.7.0", + "license": "MIT", + "dependencies": { + "@typescript-eslint/experimental-utils": "^5.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + }, + "peerDependencies": { + "@typescript-eslint/eslint-plugin": "^4.0.0 || ^5.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "@typescript-eslint/eslint-plugin": { + "optional": true + }, + "jest": { + "optional": true + } + } + }, + "node_modules/eslint-plugin-jsx-a11y": { + "version": "6.7.1", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "ast-types-flow": "^0.0.7", + "axe-core": "^4.6.2", + "axobject-query": "^3.1.1", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "has": "^1.0.3", + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=4.0" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-react": { + "version": "7.32.2", + "license": "MIT", + "dependencies": { + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "array.prototype.tosorted": "^1.1.1", + "doctrine": "^2.1.0", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "object.hasown": "^1.1.2", + "object.values": "^1.1.6", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.0", + "string.prototype.matchall": "^4.0.8" + }, + "engines": { + "node": ">=4" + }, + "peerDependencies": { + "eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8" + } + }, + "node_modules/eslint-plugin-react-hooks": { + "version": "4.6.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/eslint-plugin-react/node_modules/doctrine": { + "version": "2.1.0", + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/eslint-plugin-react/node_modules/estraverse": { + "version": "5.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint-plugin-react/node_modules/resolve": { + "version": "2.0.0-next.4", + "license": "MIT", + "dependencies": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/eslint-plugin-testing-library": { + "version": "5.10.3", + "license": "MIT", + "dependencies": { + "@typescript-eslint/utils": "^5.58.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0", + "npm": ">=6" + }, + "peerDependencies": { + "eslint": "^7.5.0 || ^8.0.0" + } + }, + "node_modules/eslint-scope": { + "version": "5.1.1", + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.0", + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-webpack-plugin": { + "version": "3.2.0", + "license": "MIT", + "dependencies": { + "@types/eslint": "^7.29.0 || ^8.4.1", + "jest-worker": "^28.0.2", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0", + "webpack": "^5.0.0" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/jest-worker": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/eslint-webpack-plugin/node_modules/schema-utils": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/eslint-webpack-plugin/node_modules/supports-color": { + "version": "8.1.1", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/eslint/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/eslint/node_modules/argparse": { + "version": "2.0.1", + "license": "Python-2.0" + }, + "node_modules/eslint/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/eslint/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/eslint/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/eslint/node_modules/eslint-scope": { + "version": "7.2.0", + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/estraverse": { + "version": "5.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint/node_modules/find-up": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/globals": { + "version": "13.20.0", + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/js-yaml": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/eslint/node_modules/locate-path": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/p-locate": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/eslint/node_modules/type-fest": { + "version": "0.20.2", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/espree": { + "version": "9.5.1", + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.5.0", + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esquery/node_modules/estraverse": { + "version": "5.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esrecurse/node_modules/estraverse": { + "version": "5.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "4.3.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/esutils": { + "version": "2.0.3", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/etag": { + "version": "1.8.1", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/eth-block-tracker": { + "version": "6.1.0", + "license": "MIT", + "dependencies": { + "@metamask/safe-event-emitter": "^2.0.0", + "@metamask/utils": "^3.0.1", + "json-rpc-random-id": "^1.0.1", + "pify": "^3.0.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/eth-crypto": { + "version": "2.6.0", + "license": "MIT", + "dependencies": { + "@babel/runtime": "7.20.13", + "@ethereumjs/tx": "3.5.2", + "@types/bn.js": "5.1.1", + "eccrypto": "1.1.6", + "ethereumjs-util": "7.1.5", + "ethers": "5.7.2", + "secp256k1": "5.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/pubkey" + } + }, + "node_modules/eth-crypto/node_modules/@babel/runtime": { + "version": "7.20.13", + "license": "MIT", + "dependencies": { + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/eth-crypto/node_modules/node-addon-api": { + "version": "5.1.0", + "license": "MIT" + }, + "node_modules/eth-crypto/node_modules/secp256k1": { + "version": "5.0.0", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "elliptic": "^6.5.4", + "node-addon-api": "^5.0.0", + "node-gyp-build": "^4.2.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/eth-ens-namehash": { + "version": "2.0.8", + "license": "ISC", + "dependencies": { + "idna-uts46-hx": "^2.3.1", + "js-sha3": "^0.5.7" + } + }, + "node_modules/eth-ens-namehash/node_modules/js-sha3": { + "version": "0.5.7", + "license": "MIT" + }, + "node_modules/eth-json-rpc-filters": { + "version": "5.1.0", + "license": "ISC", + "dependencies": { + "@metamask/safe-event-emitter": "^2.0.0", + "async-mutex": "^0.2.6", + "eth-query": "^2.1.2", + "json-rpc-engine": "^6.1.0", + "pify": "^5.0.0" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/eth-json-rpc-filters/node_modules/async-mutex": { + "version": "0.2.6", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.0" + } + }, + "node_modules/eth-json-rpc-filters/node_modules/pify": { + "version": "5.0.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eth-json-rpc-infura": { + "version": "5.1.0", + "license": "ISC", + "dependencies": { + "eth-json-rpc-middleware": "^6.0.0", + "eth-rpc-errors": "^3.0.0", + "json-rpc-engine": "^5.3.0", + "node-fetch": "^2.6.0" + } + }, + "node_modules/eth-json-rpc-infura/node_modules/eth-rpc-errors": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "fast-safe-stringify": "^2.0.6" + } + }, + "node_modules/eth-json-rpc-infura/node_modules/json-rpc-engine": { + "version": "5.4.0", + "license": "ISC", + "dependencies": { + "eth-rpc-errors": "^3.0.0", + "safe-event-emitter": "^1.0.1" + } + }, + "node_modules/eth-json-rpc-middleware": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "btoa": "^1.2.1", + "clone": "^2.1.1", + "eth-query": "^2.1.2", + "eth-rpc-errors": "^3.0.0", + "eth-sig-util": "^1.4.2", + "ethereumjs-util": "^5.1.2", + "json-rpc-engine": "^5.3.0", + "json-stable-stringify": "^1.0.1", + "node-fetch": "^2.6.1", + "pify": "^3.0.0", + "safe-event-emitter": "^1.0.1" + } + }, + "node_modules/eth-json-rpc-middleware/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/eth-json-rpc-middleware/node_modules/eth-rpc-errors": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "fast-safe-stringify": "^2.0.6" + } + }, + "node_modules/eth-json-rpc-middleware/node_modules/ethereum-cryptography": { + "version": "0.1.3", + "license": "MIT", + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "node_modules/eth-json-rpc-middleware/node_modules/ethereumjs-util": { + "version": "5.2.1", + "license": "MPL-2.0", + "dependencies": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/eth-json-rpc-middleware/node_modules/json-rpc-engine": { + "version": "5.4.0", + "license": "ISC", + "dependencies": { + "eth-rpc-errors": "^3.0.0", + "safe-event-emitter": "^1.0.1" + } + }, + "node_modules/eth-lib": { + "version": "0.1.29", + "license": "MIT", + "dependencies": { + "bn.js": "^4.11.6", + "elliptic": "^6.4.0", + "nano-json-stream-parser": "^0.1.2", + "servify": "^0.1.12", + "ws": "^3.0.0", + "xhr-request-promise": "^0.1.2" + } + }, + "node_modules/eth-lib/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/eth-lib/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/eth-lib/node_modules/ws": { + "version": "3.3.3", + "license": "MIT", + "dependencies": { + "async-limiter": "~1.0.0", + "safe-buffer": "~5.1.0", + "ultron": "~1.1.0" + } + }, + "node_modules/eth-query": { + "version": "2.1.2", + "license": "ISC", + "dependencies": { + "json-rpc-random-id": "^1.0.0", + "xtend": "^4.0.1" + } + }, + "node_modules/eth-rpc-errors": { + "version": "4.0.3", + "license": "MIT", + "dependencies": { + "fast-safe-stringify": "^2.0.6" + } + }, + "node_modules/eth-sig-util": { + "version": "1.4.2", + "license": "ISC", + "dependencies": { + "ethereumjs-abi": "git+https://github.com/ethereumjs/ethereumjs-abi.git", + "ethereumjs-util": "^5.1.1" + } + }, + "node_modules/eth-sig-util/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/eth-sig-util/node_modules/ethereum-cryptography": { + "version": "0.1.3", + "license": "MIT", + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "node_modules/eth-sig-util/node_modules/ethereumjs-util": { + "version": "5.2.1", + "license": "MPL-2.0", + "dependencies": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/ethereum-bloom-filters": { + "version": "1.0.10", + "license": "MIT", + "dependencies": { + "js-sha3": "^0.8.0" + } + }, + "node_modules/ethereum-common": { + "version": "0.2.0", + "license": "MIT" + }, + "node_modules/ethereum-cryptography": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "@noble/curves": "1.0.0", + "@noble/hashes": "1.3.0", + "@scure/bip32": "1.3.0", + "@scure/bip39": "1.2.0" + } + }, + "node_modules/ethereum-cryptography/node_modules/@scure/bip39": { + "version": "1.2.0", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "license": "MIT", + "dependencies": { + "@noble/hashes": "~1.3.0", + "@scure/base": "~1.1.0" + } + }, + "node_modules/ethereumjs-abi": { + "version": "0.6.8", + "license": "MIT", + "dependencies": { + "bn.js": "^4.11.8", + "ethereumjs-util": "^6.0.0" + } + }, + "node_modules/ethereumjs-abi/node_modules/@types/bn.js": { + "version": "4.11.6", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/ethereumjs-abi/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/ethereumjs-abi/node_modules/ethereum-cryptography": { + "version": "0.1.3", + "license": "MIT", + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "node_modules/ethereumjs-abi/node_modules/ethereumjs-util": { + "version": "6.2.1", + "license": "MPL-2.0", + "dependencies": { + "@types/bn.js": "^4.11.3", + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "0.1.6", + "rlp": "^2.2.3" + } + }, + "node_modules/ethereumjs-account": { + "version": "2.0.5", + "license": "MPL-2.0", + "dependencies": { + "ethereumjs-util": "^5.0.0", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/ethereumjs-account/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/ethereumjs-account/node_modules/ethereum-cryptography": { + "version": "0.1.3", + "license": "MIT", + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "node_modules/ethereumjs-account/node_modules/ethereumjs-util": { + "version": "5.2.1", + "license": "MPL-2.0", + "dependencies": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/ethereumjs-block": { + "version": "1.7.1", + "license": "MPL-2.0", + "dependencies": { + "async": "^2.0.1", + "ethereum-common": "0.2.0", + "ethereumjs-tx": "^1.2.2", + "ethereumjs-util": "^5.0.0", + "merkle-patricia-tree": "^2.1.2" + } + }, + "node_modules/ethereumjs-block/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/ethereumjs-block/node_modules/ethereum-cryptography": { + "version": "0.1.3", + "license": "MIT", + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "node_modules/ethereumjs-block/node_modules/ethereumjs-util": { + "version": "5.2.1", + "license": "MPL-2.0", + "dependencies": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/ethereumjs-common": { + "version": "1.5.2", + "license": "MIT" + }, + "node_modules/ethereumjs-tx": { + "version": "1.3.7", + "license": "MPL-2.0", + "dependencies": { + "ethereum-common": "^0.0.18", + "ethereumjs-util": "^5.0.0" + } + }, + "node_modules/ethereumjs-tx/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/ethereumjs-tx/node_modules/ethereum-common": { + "version": "0.0.18", + "license": "MIT" + }, + "node_modules/ethereumjs-tx/node_modules/ethereum-cryptography": { + "version": "0.1.3", + "license": "MIT", + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "node_modules/ethereumjs-tx/node_modules/ethereumjs-util": { + "version": "5.2.1", + "license": "MPL-2.0", + "dependencies": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/ethereumjs-util": { + "version": "7.1.5", + "license": "MPL-2.0", + "dependencies": { + "@types/bn.js": "^5.1.0", + "bn.js": "^5.1.2", + "create-hash": "^1.1.2", + "ethereum-cryptography": "^0.1.3", + "rlp": "^2.2.4" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/ethereumjs-util/node_modules/ethereum-cryptography": { + "version": "0.1.3", + "license": "MIT", + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "node_modules/ethereumjs-vm": { + "version": "2.6.0", + "license": "MPL-2.0", + "dependencies": { + "async": "^2.1.2", + "async-eventemitter": "^0.2.2", + "ethereumjs-account": "^2.0.3", + "ethereumjs-block": "~2.2.0", + "ethereumjs-common": "^1.1.0", + "ethereumjs-util": "^6.0.0", + "fake-merkle-patricia-tree": "^1.0.1", + "functional-red-black-tree": "^1.0.1", + "merkle-patricia-tree": "^2.3.2", + "rustbn.js": "~0.2.0", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/ethereumjs-vm/node_modules/@types/bn.js": { + "version": "4.11.6", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/ethereumjs-vm/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/ethereumjs-vm/node_modules/ethereum-cryptography": { + "version": "0.1.3", + "license": "MIT", + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "node_modules/ethereumjs-vm/node_modules/ethereumjs-block": { + "version": "2.2.2", + "license": "MPL-2.0", + "dependencies": { + "async": "^2.0.1", + "ethereumjs-common": "^1.5.0", + "ethereumjs-tx": "^2.1.1", + "ethereumjs-util": "^5.0.0", + "merkle-patricia-tree": "^2.1.2" + } + }, + "node_modules/ethereumjs-vm/node_modules/ethereumjs-block/node_modules/ethereumjs-util": { + "version": "5.2.1", + "license": "MPL-2.0", + "dependencies": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/ethereumjs-vm/node_modules/ethereumjs-tx": { + "version": "2.1.2", + "license": "MPL-2.0", + "dependencies": { + "ethereumjs-common": "^1.5.0", + "ethereumjs-util": "^6.0.0" + } + }, + "node_modules/ethereumjs-vm/node_modules/ethereumjs-util": { + "version": "6.2.1", + "license": "MPL-2.0", + "dependencies": { + "@types/bn.js": "^4.11.3", + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "0.1.6", + "rlp": "^2.2.3" + } + }, + "node_modules/ethers": { + "version": "5.7.2", + "funding": [ + { + "type": "individual", + "url": "https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2" + }, + { + "type": "individual", + "url": "https://www.buymeacoffee.com/ricmoo" + } + ], + "license": "MIT", + "dependencies": { + "@ethersproject/abi": "5.7.0", + "@ethersproject/abstract-provider": "5.7.0", + "@ethersproject/abstract-signer": "5.7.0", + "@ethersproject/address": "5.7.0", + "@ethersproject/base64": "5.7.0", + "@ethersproject/basex": "5.7.0", + "@ethersproject/bignumber": "5.7.0", + "@ethersproject/bytes": "5.7.0", + "@ethersproject/constants": "5.7.0", + "@ethersproject/contracts": "5.7.0", + "@ethersproject/hash": "5.7.0", + "@ethersproject/hdnode": "5.7.0", + "@ethersproject/json-wallets": "5.7.0", + "@ethersproject/keccak256": "5.7.0", + "@ethersproject/logger": "5.7.0", + "@ethersproject/networks": "5.7.1", + "@ethersproject/pbkdf2": "5.7.0", + "@ethersproject/properties": "5.7.0", + "@ethersproject/providers": "5.7.2", + "@ethersproject/random": "5.7.0", + "@ethersproject/rlp": "5.7.0", + "@ethersproject/sha2": "5.7.0", + "@ethersproject/signing-key": "5.7.0", + "@ethersproject/solidity": "5.7.0", + "@ethersproject/strings": "5.7.0", + "@ethersproject/transactions": "5.7.0", + "@ethersproject/units": "5.7.0", + "@ethersproject/wallet": "5.7.0", + "@ethersproject/web": "5.7.1", + "@ethersproject/wordlists": "5.7.0" + } + }, + "node_modules/ethjs-unit": { + "version": "0.1.6", + "license": "MIT", + "dependencies": { + "bn.js": "4.11.6", + "number-to-bn": "1.7.0" + }, + "engines": { + "node": ">=6.5.0", + "npm": ">=3" + } + }, + "node_modules/ethjs-unit/node_modules/bn.js": { + "version": "4.11.6", + "license": "MIT" + }, + "node_modules/ethjs-util": { + "version": "0.1.6", + "license": "MIT", + "dependencies": { + "is-hex-prefixed": "1.0.0", + "strip-hex-prefix": "1.0.0" + }, + "engines": { + "node": ">=6.5.0", + "npm": ">=3" + } + }, + "node_modules/eventemitter3": { + "version": "4.0.7", + "license": "MIT" + }, + "node_modules/events": { + "version": "3.3.0", + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/evp_bytestokey": { + "version": "1.0.3", + "license": "MIT", + "dependencies": { + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exenv": { + "version": "1.2.2", + "license": "BSD-3-Clause" + }, + "node_modules/exit": { + "version": "0.1.2", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/expect-utils": "^29.5.0", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-util": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/expect/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/expect/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/expect/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/expect/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/expect/node_modules/diff-sequences": { + "version": "29.4.3", + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/expect/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/expect/node_modules/jest-diff": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/expect/node_modules/jest-matcher-utils": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.5.0", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/expect/node_modules/pretty-format": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/expect/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/expect/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/express": { + "version": "4.18.2", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + } + }, + "node_modules/express/node_modules/body-parser": { + "version": "1.20.1", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/express/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/express/node_modules/http-errors": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/express/node_modules/iconv-lite": { + "version": "0.4.24", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/express/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/express/node_modules/qs": { + "version": "6.11.0", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/express/node_modules/raw-body": { + "version": "2.5.1", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/express/node_modules/statuses": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/ext": { + "version": "1.7.0", + "license": "ISC", + "dependencies": { + "type": "^2.7.2" + } + }, + "node_modules/ext/node_modules/type": { + "version": "2.7.2", + "license": "ISC" + }, + "node_modules/extend": { + "version": "3.0.2", + "license": "MIT" + }, + "node_modules/extsprintf": { + "version": "1.3.0", + "engines": [ + "node >=0.6.0" + ], + "license": "MIT" + }, + "node_modules/eyes": { + "version": "0.1.8", + "engines": { + "node": "> 0.1.90" + } + }, + "node_modules/fake-merkle-patricia-tree": { + "version": "1.0.1", + "license": "ISC", + "dependencies": { + "checkpoint-store": "^1.1.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.2.12", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "license": "MIT" + }, + "node_modules/fast-redact": { + "version": "3.1.2", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/fast-safe-stringify": { + "version": "2.1.1", + "license": "MIT" + }, + "node_modules/fast-stable-stringify": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.15.0", + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/faye-websocket": { + "version": "0.11.4", + "license": "Apache-2.0", + "dependencies": { + "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "license": "Apache-2.0", + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/file-loader": { + "version": "6.2.0", + "license": "MIT", + "dependencies": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/file-uri-to-path": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/filelist": { + "version": "1.0.4", + "license": "Apache-2.0", + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/filesize": { + "version": "8.0.7", + "license": "BSD-3-Clause", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/filter-obj": { + "version": "1.1.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/finalhandler": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/finalhandler/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/finalhandler/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/finalhandler/node_modules/statuses": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/find-cache-dir": { + "version": "3.3.2", + "license": "MIT", + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + } + }, + "node_modules/find-root": { + "version": "1.1.0", + "license": "MIT" + }, + "node_modules/find-up": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/flat-cache": { + "version": "3.0.4", + "license": "MIT", + "dependencies": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.2.7", + "license": "ISC" + }, + "node_modules/follow-redirects": { + "version": "1.15.2", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/for-each": { + "version": "0.3.3", + "license": "MIT", + "dependencies": { + "is-callable": "^1.1.3" + } + }, + "node_modules/forever-agent": { + "version": "0.6.1", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/fork-ts-checker-webpack-plugin": { + "version": "6.5.3", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.8.3", + "@types/json-schema": "^7.0.5", + "chalk": "^4.1.0", + "chokidar": "^3.4.2", + "cosmiconfig": "^6.0.0", + "deepmerge": "^4.2.2", + "fs-extra": "^9.0.0", + "glob": "^7.1.6", + "memfs": "^3.1.2", + "minimatch": "^3.0.4", + "schema-utils": "2.7.0", + "semver": "^7.3.2", + "tapable": "^1.0.0" + }, + "engines": { + "node": ">=10", + "yarn": ">=1.0.0" + }, + "peerDependencies": { + "eslint": ">= 6", + "typescript": ">= 2.7", + "vue-template-compiler": "*", + "webpack": ">= 4" + }, + "peerDependenciesMeta": { + "eslint": { + "optional": true + }, + "vue-template-compiler": { + "optional": true + } + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/cosmiconfig": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.1.0", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.7.2" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/fs-extra": { + "version": "9.1.0", + "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/schema-utils": { + "version": "2.7.0", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.4", + "ajv": "^6.12.2", + "ajv-keywords": "^3.4.1" + }, + "engines": { + "node": ">= 8.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/semver": { + "version": "7.5.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/tapable": { + "version": "1.1.3", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/fork-ts-checker-webpack-plugin/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/form-data": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/form-data-encoder": { + "version": "1.7.1", + "license": "MIT" + }, + "node_modules/forwarded": { + "version": "0.2.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fraction.js": { + "version": "4.2.0", + "license": "MIT", + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://www.patreon.com/infusion" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-extra": { + "version": "10.1.0", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/fs-minipass": { + "version": "1.2.7", + "license": "ISC", + "dependencies": { + "minipass": "^2.6.0" + } + }, + "node_modules/fs-monkey": { + "version": "1.0.3", + "license": "Unlicense" + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.2", + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/function.prototype.name": { + "version": "1.1.5", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/functional-red-black-tree": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-own-enumerable-property-symbols": { + "version": "3.0.2", + "license": "ISC" + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/get-symbol-description": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/getpass": { + "version": "0.1.7", + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob-to-regexp": { + "version": "0.4.1", + "license": "BSD-2-Clause" + }, + "node_modules/global": { + "version": "4.4.0", + "license": "MIT", + "dependencies": { + "min-document": "^2.19.0", + "process": "^0.11.10" + } + }, + "node_modules/global-modules": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "global-prefix": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "ini": "^1.3.5", + "kind-of": "^6.0.2", + "which": "^1.3.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/global-prefix/node_modules/which": { + "version": "1.3.1", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "which": "bin/which" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/globalthis": { + "version": "1.0.3", + "license": "MIT", + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "license": "MIT", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/google-protobuf": { + "version": "3.21.2", + "license": "(BSD-3-Clause AND Apache-2.0)" + }, + "node_modules/gopd": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/got": { + "version": "12.1.0", + "license": "MIT", + "dependencies": { + "@sindresorhus/is": "^4.6.0", + "@szmarczak/http-timer": "^5.0.1", + "@types/cacheable-request": "^6.0.2", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^6.0.4", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "form-data-encoder": "1.7.1", + "get-stream": "^6.0.1", + "http2-wrapper": "^2.1.10", + "lowercase-keys": "^3.0.0", + "p-cancelable": "^3.0.0", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=14.16" + }, + "funding": { + "url": "https://github.com/sindresorhus/got?sponsor=1" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "license": "ISC" + }, + "node_modules/grapheme-splitter": { + "version": "1.0.4", + "license": "MIT" + }, + "node_modules/graphql": { + "version": "16.6.0", + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" + } + }, + "node_modules/graphql-tag": { + "version": "2.12.6", + "license": "MIT", + "dependencies": { + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "graphql": "^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" + } + }, + "node_modules/gzip-size": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "duplexer": "^0.1.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/handle-thing": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/har-schema": { + "version": "2.0.0", + "license": "ISC", + "engines": { + "node": ">=4" + } + }, + "node_modules/har-validator": { + "version": "5.1.5", + "license": "MIT", + "dependencies": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/harmony-reflect": { + "version": "1.6.2", + "license": "(Apache-2.0 OR MPL-1.1)" + }, + "node_modules/has": { + "version": "1.0.3", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-bigints": { + "version": "1.0.2", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hash-base": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/hash.js": { + "version": "1.1.7", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } + }, + "node_modules/he": { + "version": "1.2.0", + "license": "MIT", + "bin": { + "he": "bin/he" + } + }, + "node_modules/hey-listen": { + "version": "1.0.8", + "license": "MIT" + }, + "node_modules/hi-base32": { + "version": "0.5.1", + "license": "MIT" + }, + "node_modules/hmac-drbg": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "node_modules/hoist-non-react-statics": { + "version": "3.3.2", + "license": "BSD-3-Clause", + "dependencies": { + "react-is": "^16.7.0" + } + }, + "node_modules/hoist-non-react-statics/node_modules/react-is": { + "version": "16.13.1", + "license": "MIT" + }, + "node_modules/hoopy": { + "version": "0.1.4", + "license": "MIT", + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/hpack.js": { + "version": "2.1.6", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.1", + "obuf": "^1.0.0", + "readable-stream": "^2.0.1", + "wbuf": "^1.1.0" + } + }, + "node_modules/hpack.js/node_modules/isarray": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/hpack.js/node_modules/readable-stream": { + "version": "2.3.8", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/hpack.js/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/hpack.js/node_modules/string_decoder": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/html-encoding-sniffer": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "whatwg-encoding": "^1.0.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/html-entities": { + "version": "2.3.3", + "license": "MIT" + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "license": "MIT" + }, + "node_modules/html-minifier-terser": { + "version": "6.1.0", + "license": "MIT", + "dependencies": { + "camel-case": "^4.1.2", + "clean-css": "^5.2.2", + "commander": "^8.3.0", + "he": "^1.2.0", + "param-case": "^3.0.4", + "relateurl": "^0.2.7", + "terser": "^5.10.0" + }, + "bin": { + "html-minifier-terser": "cli.js" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/html-minifier-terser/node_modules/commander": { + "version": "8.3.0", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/html-webpack-plugin": { + "version": "5.5.1", + "license": "MIT", + "dependencies": { + "@types/html-minifier-terser": "^6.0.0", + "html-minifier-terser": "^6.0.2", + "lodash": "^4.17.21", + "pretty-error": "^4.0.0", + "tapable": "^2.0.0" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/html-webpack-plugin" + }, + "peerDependencies": { + "webpack": "^5.20.0" + } + }, + "node_modules/htmlparser2": { + "version": "6.1.0", + "funding": [ + "https://github.com/fb55/htmlparser2?sponsor=1", + { + "type": "github", + "url": "https://github.com/sponsors/fb55" + } + ], + "license": "MIT", + "dependencies": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "domutils": "^2.5.2", + "entities": "^2.0.0" + } + }, + "node_modules/http-cache-semantics": { + "version": "4.1.1", + "license": "BSD-2-Clause" + }, + "node_modules/http-deceiver": { + "version": "1.2.7", + "license": "MIT" + }, + "node_modules/http-errors": { + "version": "1.8.1", + "license": "MIT", + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/http-errors/node_modules/depd": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/http-https": { + "version": "1.0.0", + "license": "ISC" + }, + "node_modules/http-parser-js": { + "version": "0.5.8", + "license": "MIT" + }, + "node_modules/http-proxy": { + "version": "1.18.1", + "license": "MIT", + "dependencies": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/http-proxy-middleware": { + "version": "2.0.6", + "license": "MIT", + "dependencies": { + "@types/http-proxy": "^1.17.8", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "@types/express": "^4.17.13" + }, + "peerDependenciesMeta": { + "@types/express": { + "optional": true + } + } + }, + "node_modules/http-signature": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + }, + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" + } + }, + "node_modules/http-status-codes": { + "version": "2.2.0", + "license": "MIT" + }, + "node_modules/http2-wrapper": { + "version": "2.2.0", + "license": "MIT", + "dependencies": { + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.2.0" + }, + "engines": { + "node": ">=10.19.0" + } + }, + "node_modules/https-browserify": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "license": "Apache-2.0", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/humanize-ms": { + "version": "1.2.1", + "license": "MIT", + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/icss-utils": { + "version": "5.1.0", + "license": "ISC", + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/idb": { + "version": "7.1.1", + "license": "ISC" + }, + "node_modules/identity-obj-proxy": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "harmony-reflect": "^1.4.6" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/idna-uts46-hx": { + "version": "2.3.1", + "license": "MIT", + "dependencies": { + "punycode": "2.1.0" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/idna-uts46-hx/node_modules/punycode": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/ignore": { + "version": "5.2.4", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/immediate": { + "version": "3.3.0", + "license": "MIT" + }, + "node_modules/immer": { + "version": "9.0.21", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/immer" + } + }, + "node_modules/import-fresh": { + "version": "3.3.0", + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-fresh/node_modules/resolve-from": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "engines": { + "node": ">=8" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "license": "ISC" + }, + "node_modules/ini": { + "version": "1.3.8", + "license": "ISC" + }, + "node_modules/internal-slot": { + "version": "1.0.5", + "license": "MIT", + "dependencies": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/interpret": { + "version": "1.4.0", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-arguments": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-array-buffer": { + "version": "3.0.2", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "license": "MIT" + }, + "node_modules/is-bigint": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-boolean-object": { + "version": "1.1.2", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-callable": { + "version": "1.2.7", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-core-module": { + "version": "2.12.0", + "license": "MIT", + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-date-object": { + "version": "1.0.5", + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-docker": { + "version": "2.2.1", + "license": "MIT", + "bin": { + "is-docker": "cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fn": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-function": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-generator-function": { + "version": "1.0.10", + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-hex-prefixed": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=6.5.0", + "npm": ">=3" + } + }, + "node_modules/is-map": { + "version": "2.0.2", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-module": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/is-nan": { + "version": "1.3.2", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.0", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-negative-zero": { + "version": "2.0.2", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-number-object": { + "version": "1.0.7", + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-obj": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-plain-obj": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/is-regex": { + "version": "1.1.4", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-regexp": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-root": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-set": { + "version": "2.0.2", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-shared-array-buffer": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/is-string": { + "version": "1.0.7", + "license": "MIT", + "dependencies": { + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-symbol": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typed-array": { + "version": "1.1.10", + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/is-weakmap": { + "version": "2.0.1", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakref": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-weakset": { + "version": "2.0.2", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-wsl": { + "version": "2.2.0", + "license": "MIT", + "dependencies": { + "is-docker": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/isarray": { + "version": "2.0.5", + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "license": "ISC" + }, + "node_modules/isomorphic-ws": { + "version": "4.0.1", + "license": "MIT", + "peerDependencies": { + "ws": "*" + } + }, + "node_modules/isstream": { + "version": "0.1.2", + "license": "MIT" + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "license": "BSD-3-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.0", + "license": "BSD-3-Clause", + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "license": "BSD-3-Clause", + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.5", + "license": "BSD-3-Clause", + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jake": { + "version": "10.8.5", + "license": "Apache-2.0", + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.1", + "minimatch": "^3.0.4" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jake/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jake/node_modules/async": { + "version": "3.2.4", + "license": "MIT" + }, + "node_modules/jake/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jake/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jake/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jake/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jake/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jayson": { + "version": "3.7.0", + "license": "MIT", + "dependencies": { + "@types/connect": "^3.4.33", + "@types/node": "^12.12.54", + "@types/ws": "^7.4.4", + "commander": "^2.20.3", + "delay": "^5.0.0", + "es6-promisify": "^5.0.0", + "eyes": "^0.1.8", + "isomorphic-ws": "^4.0.1", + "json-stringify-safe": "^5.0.1", + "JSONStream": "^1.3.5", + "lodash": "^4.17.20", + "uuid": "^8.3.2", + "ws": "^7.4.5" + }, + "bin": { + "jayson": "bin/jayson.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jayson/node_modules/@types/node": { + "version": "12.20.55", + "license": "MIT" + }, + "node_modules/jayson/node_modules/commander": { + "version": "2.20.3", + "license": "MIT" + }, + "node_modules/jest": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/core": "^29.5.0", + "@jest/types": "^29.5.0", + "import-local": "^3.0.2", + "jest-cli": "^29.5.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "execa": "^5.0.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.5.0", + "@jest/expect": "^29.5.0", + "@jest/test-result": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.5.0", + "jest-matcher-utils": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-runtime": "^29.5.0", + "jest-snapshot": "^29.5.0", + "jest-util": "^29.5.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.5.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-circus/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-circus/node_modules/diff-sequences": { + "version": "29.4.3", + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-circus/node_modules/jest-diff": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/jest-matcher-utils": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.5.0", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/pretty-format": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/core": "^29.5.0", + "@jest/test-result": "^29.5.0", + "@jest/types": "^29.5.0", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^29.5.0", + "jest-util": "^29.5.0", + "jest-validate": "^29.5.0", + "prompts": "^2.0.1", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/cliui": { + "version": "8.0.1", + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-cli/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-cli/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-cli/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/yargs": { + "version": "17.7.1", + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/jest-config": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.5.0", + "@jest/types": "^29.5.0", + "babel-jest": "^29.5.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.5.0", + "jest-environment-node": "^29.5.0", + "jest-get-type": "^29.4.3", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.5.0", + "jest-runner": "^29.5.0", + "jest-util": "^29.5.0", + "jest-validate": "^29.5.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.5.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-config/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-config/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-config/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-config/node_modules/pretty-format": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-config/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-config/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-diff/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-diff/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-diff/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-diff/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff/node_modules/jest-get-type": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-diff/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-docblock": { + "version": "29.4.3", + "license": "MIT", + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/types": "^29.5.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.4.3", + "jest-util": "^29.5.0", + "pretty-format": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-each/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-each/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-each/node_modules/pretty-format": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-environment-jsdom": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1", + "jsdom": "^16.6.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-jsdom/node_modules/@jest/environment": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-jsdom/node_modules/@jest/fake-timers": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-jsdom/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-jsdom/node_modules/@sinonjs/commons": { + "version": "1.8.6", + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/jest-environment-jsdom/node_modules/@sinonjs/fake-timers": { + "version": "8.1.0", + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/jest-environment-jsdom/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-environment-jsdom/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-environment-jsdom/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-environment-jsdom/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-environment-jsdom/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-environment-jsdom/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-environment-jsdom/node_modules/jest-message-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-jsdom/node_modules/jest-mock": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-jsdom/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-environment-jsdom/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-environment-node": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.5.0", + "@jest/fake-timers": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "jest-mock": "^29.5.0", + "jest-util": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.4.3", + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/types": "^29.5.0", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.4.3", + "jest-util": "^29.5.0", + "jest-worker": "^29.5.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-jasmine2": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/@jest/console": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/@jest/environment": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/@jest/fake-timers": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/@jest/globals": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/types": "^27.5.1", + "expect": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/@jest/source-map": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9", + "source-map": "^0.6.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/@jest/test-result": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/@jest/transform": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/types": "^27.5.1", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-util": "^27.5.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/@sinonjs/commons": { + "version": "1.8.6", + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/jest-jasmine2/node_modules/@sinonjs/fake-timers": { + "version": "8.1.0", + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/jest-jasmine2/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/jest-jasmine2/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-jasmine2/node_modules/camelcase": { + "version": "6.3.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-jasmine2/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-jasmine2/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-jasmine2/node_modules/expect": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-each": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-get-type": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-haste-map": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^27.5.1", + "jest-serializer": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "micromatch": "^4.0.4", + "walker": "^1.0.7" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-message-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-mock": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-regex-util": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-resolve": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "resolve": "^1.20.0", + "resolve.exports": "^1.1.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-runtime": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/globals": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "execa": "^5.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-snapshot": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.7.2", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.0.0", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^27.5.1", + "semver": "^7.3.2" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-validate": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "leven": "^3.1.0", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-worker": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/jest-jasmine2/node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jest-jasmine2/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-jasmine2/node_modules/resolve.exports": { + "version": "1.1.1", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-jasmine2/node_modules/semver": { + "version": "7.5.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-jasmine2/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jest-jasmine2/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-jasmine2/node_modules/write-file-atomic": { + "version": "3.0.3", + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/jest-jasmine2/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/jest-leak-detector": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-leak-detector/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-leak-detector/node_modules/pretty-format": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-matcher-utils/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-matcher-utils/node_modules/jest-get-type": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.5.0", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.5.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-message-util/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-message-util/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util/node_modules/pretty-format": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-mock": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/types": "^29.5.0", + "@types/node": "*", + "jest-util": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.4.3", + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.5.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.5.0", + "jest-validate": "^29.5.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "jest-regex-util": "^29.4.3", + "jest-snapshot": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-resolve/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-resolve/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-resolve/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/console": "^29.5.0", + "@jest/environment": "^29.5.0", + "@jest/test-result": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.4.3", + "jest-environment-node": "^29.5.0", + "jest-haste-map": "^29.5.0", + "jest-leak-detector": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-resolve": "^29.5.0", + "jest-runtime": "^29.5.0", + "jest-util": "^29.5.0", + "jest-watcher": "^29.5.0", + "jest-worker": "^29.5.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runner/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-runner/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.5.0", + "@jest/fake-timers": "^29.5.0", + "@jest/globals": "^29.5.0", + "@jest/source-map": "^29.4.3", + "@jest/test-result": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-mock": "^29.5.0", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.5.0", + "jest-snapshot": "^29.5.0", + "jest-util": "^29.5.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runtime/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-runtime/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-serializer": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/babel__traverse": "^7.0.6", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.5.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.5.0", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-util": "^29.5.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.5.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-snapshot/node_modules/diff-sequences": { + "version": "29.4.3", + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot/node_modules/jest-diff": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/jest-matcher-utils": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.5.0", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/pretty-format": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.5.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/jest-util": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-util/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-util/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/types": "^29.5.0", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.4.3", + "leven": "^3.1.0", + "pretty-format": "^29.5.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-validate/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-validate/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-validate/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate/node_modules/pretty-format": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.5.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-watcher/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-watcher/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/jest-watcher/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker": { + "version": "29.5.0", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "jest-util": "^29.5.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/jiti": { + "version": "1.18.2", + "license": "MIT", + "bin": { + "jiti": "bin/jiti.js" + } + }, + "node_modules/js-base64": { + "version": "3.7.5", + "license": "BSD-3-Clause" + }, + "node_modules/js-sdsl": { + "version": "4.4.0", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" + } + }, + "node_modules/js-sha256": { + "version": "0.9.0", + "license": "MIT" + }, + "node_modules/js-sha3": { + "version": "0.8.0", + "license": "MIT" + }, + "node_modules/js-sha512": { + "version": "0.8.0", + "license": "MIT" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsbi": { + "version": "3.2.5", + "license": "Apache-2.0" + }, + "node_modules/jsbn": { + "version": "0.1.1", + "license": "MIT" + }, + "node_modules/jscrypto": { + "version": "1.0.3", + "license": "MIT", + "bin": { + "jscrypto": "bin/cli.js" + } + }, + "node_modules/jsdom": { + "version": "16.7.0", + "license": "MIT", + "dependencies": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/form-data": { + "version": "3.0.1", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/jsdom/node_modules/tough-cookie": { + "version": "4.1.2", + "license": "BSD-3-Clause", + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsdom/node_modules/tr46": { + "version": "2.1.0", + "license": "MIT", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsdom/node_modules/universalify": { + "version": "0.2.0", + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/jsdom/node_modules/webidl-conversions": { + "version": "6.1.0", + "license": "BSD-2-Clause", + "engines": { + "node": ">=10.4" + } + }, + "node_modules/jsdom/node_modules/whatwg-url": { + "version": "8.7.0", + "license": "MIT", + "dependencies": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-bigint": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "bignumber.js": "^9.0.0" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "license": "MIT" + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "license": "MIT" + }, + "node_modules/json-rpc-engine": { + "version": "6.1.0", + "license": "ISC", + "dependencies": { + "@metamask/safe-event-emitter": "^2.0.0", + "eth-rpc-errors": "^4.0.2" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/json-rpc-random-id": { + "version": "1.0.1", + "license": "ISC" + }, + "node_modules/json-schema": { + "version": "0.4.0", + "license": "(AFL-2.1 OR BSD-3-Clause)" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "license": "MIT" + }, + "node_modules/json-stable-stringify": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "jsonify": "^0.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "license": "ISC" + }, + "node_modules/json5": { + "version": "2.2.3", + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "license": "MIT", + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsonify": { + "version": "0.0.1", + "license": "Public Domain", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/jsonparse": { + "version": "1.3.1", + "engines": [ + "node >= 0.2.0" + ], + "license": "MIT" + }, + "node_modules/jsonpointer": { + "version": "5.0.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/jsonschema": { + "version": "1.4.1", + "license": "MIT", + "engines": { + "node": "*" + } + }, + "node_modules/JSONStream": { + "version": "1.3.5", + "license": "(MIT OR Apache-2.0)", + "dependencies": { + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" + }, + "bin": { + "JSONStream": "bin.js" + }, + "engines": { + "node": "*" + } + }, + "node_modules/jsprim": { + "version": "1.4.2", + "license": "MIT", + "dependencies": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.4.0", + "verror": "1.10.0" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/jsqr": { + "version": "1.4.0", + "license": "Apache-2.0" + }, + "node_modules/jsx-ast-utils": { + "version": "3.3.3", + "license": "MIT", + "dependencies": { + "array-includes": "^3.1.5", + "object.assign": "^4.1.3" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/keccak": { + "version": "3.0.3", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "node-addon-api": "^2.0.0", + "node-gyp-build": "^4.2.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/keccak256": { + "version": "1.0.6", + "license": "MIT", + "dependencies": { + "bn.js": "^5.2.0", + "buffer": "^6.0.3", + "keccak": "^3.0.2" + } + }, + "node_modules/keyv": { + "version": "4.5.2", + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/keyvaluestorage-interface": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/kind-of": { + "version": "6.0.3", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/klona": { + "version": "2.0.6", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/language-subtag-registry": { + "version": "0.3.22", + "license": "CC0-1.0" + }, + "node_modules/language-tags": { + "version": "1.0.5", + "license": "MIT", + "dependencies": { + "language-subtag-registry": "~0.3.2" + } + }, + "node_modules/launch-editor": { + "version": "2.6.0", + "license": "MIT", + "dependencies": { + "picocolors": "^1.0.0", + "shell-quote": "^1.7.3" + } + }, + "node_modules/level-codec": { + "version": "7.0.1", + "license": "MIT" + }, + "node_modules/level-errors": { + "version": "1.0.5", + "license": "MIT", + "dependencies": { + "errno": "~0.1.1" + } + }, + "node_modules/level-iterator-stream": { + "version": "1.3.1", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.1", + "level-errors": "^1.0.3", + "readable-stream": "^1.0.33", + "xtend": "^4.0.0" + } + }, + "node_modules/level-iterator-stream/node_modules/isarray": { + "version": "0.0.1", + "license": "MIT" + }, + "node_modules/level-iterator-stream/node_modules/readable-stream": { + "version": "1.1.14", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/level-iterator-stream/node_modules/string_decoder": { + "version": "0.10.31", + "license": "MIT" + }, + "node_modules/level-ws": { + "version": "0.0.0", + "license": "MIT", + "dependencies": { + "readable-stream": "~1.0.15", + "xtend": "~2.1.1" + } + }, + "node_modules/level-ws/node_modules/isarray": { + "version": "0.0.1", + "license": "MIT" + }, + "node_modules/level-ws/node_modules/object-keys": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/level-ws/node_modules/readable-stream": { + "version": "1.0.34", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/level-ws/node_modules/string_decoder": { + "version": "0.10.31", + "license": "MIT" + }, + "node_modules/level-ws/node_modules/xtend": { + "version": "2.1.2", + "dependencies": { + "object-keys": "~0.4.0" + }, + "engines": { + "node": ">=0.4" + } + }, + "node_modules/levelup": { + "version": "1.3.9", + "license": "MIT", + "dependencies": { + "deferred-leveldown": "~1.2.1", + "level-codec": "~7.0.0", + "level-errors": "~1.0.3", + "level-iterator-stream": "~1.3.0", + "prr": "~1.0.1", + "semver": "~5.4.1", + "xtend": "~4.0.0" + } + }, + "node_modules/levelup/node_modules/semver": { + "version": "5.4.1", + "license": "ISC", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/libsodium": { + "version": "0.7.11", + "license": "ISC" + }, + "node_modules/libsodium-wrappers": { + "version": "0.7.11", + "license": "ISC", + "dependencies": { + "libsodium": "^0.7.11" + } + }, + "node_modules/lilconfig": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "license": "MIT" + }, + "node_modules/link-module-alias": { + "version": "1.2.0", + "license": "MIT", + "dependencies": { + "chalk": "^2.4.1" + }, + "bin": { + "link-module-alias": "index.js" + }, + "engines": { + "node": "> 8.0.0" + } + }, + "node_modules/lit": { + "version": "2.7.3", + "license": "BSD-3-Clause", + "dependencies": { + "@lit/reactive-element": "^1.6.0", + "lit-element": "^3.3.0", + "lit-html": "^2.7.0" + } + }, + "node_modules/lit-element": { + "version": "3.3.2", + "license": "BSD-3-Clause", + "dependencies": { + "@lit-labs/ssr-dom-shim": "^1.1.0", + "@lit/reactive-element": "^1.3.0", + "lit-html": "^2.7.0" + } + }, + "node_modules/lit-html": { + "version": "2.7.3", + "license": "BSD-3-Clause", + "dependencies": { + "@types/trusted-types": "^2.0.2" + } + }, + "node_modules/loader-runner": { + "version": "4.3.0", + "license": "MIT", + "engines": { + "node": ">=6.11.5" + } + }, + "node_modules/loader-utils": { + "version": "2.0.4", + "license": "MIT", + "dependencies": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + }, + "engines": { + "node": ">=8.9.0" + } + }, + "node_modules/locate-path": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "license": "MIT" + }, + "node_modules/lodash-es": { + "version": "4.17.21", + "license": "MIT" + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "license": "MIT" + }, + "node_modules/lodash.isequal": { + "version": "4.5.0", + "license": "MIT" + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "license": "MIT" + }, + "node_modules/lodash.sortby": { + "version": "4.7.0", + "license": "MIT" + }, + "node_modules/lodash.uniq": { + "version": "4.5.0", + "license": "MIT" + }, + "node_modules/lodash.values": { + "version": "4.3.0", + "license": "MIT" + }, + "node_modules/loglevel": { + "version": "1.8.1", + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + }, + "funding": { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/loglevel" + } + }, + "node_modules/long": { + "version": "4.0.0", + "license": "Apache-2.0" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "license": "MIT", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lower-case": { + "version": "2.0.2", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.3" + } + }, + "node_modules/lowercase-keys": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/ltgt": { + "version": "2.2.1", + "license": "MIT" + }, + "node_modules/lz-string": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", + "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==", + "bin": { + "lz-string": "bin/bin.js" + } + }, + "node_modules/magic-string": { + "version": "0.25.9", + "license": "MIT", + "dependencies": { + "sourcemap-codec": "^1.4.8" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "license": "ISC" + }, + "node_modules/makeerror": { + "version": "1.0.12", + "license": "BSD-3-Clause", + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/map-obj": { + "version": "4.3.0", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/material-ui-popup-state": { + "version": "5.0.8", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.20.6", + "@mui/material": "^5.0.0", + "classnames": "^2.2.6", + "prop-types": "^15.7.2" + }, + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/md5.js": { + "version": "1.3.5", + "license": "MIT", + "dependencies": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/mdn-data": { + "version": "2.0.4", + "license": "CC0-1.0" + }, + "node_modules/media-typer": { + "version": "0.3.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/memdown": { + "version": "1.4.1", + "license": "MIT", + "dependencies": { + "abstract-leveldown": "~2.7.1", + "functional-red-black-tree": "^1.0.1", + "immediate": "^3.2.3", + "inherits": "~2.0.1", + "ltgt": "~2.2.0", + "safe-buffer": "~5.1.1" + } + }, + "node_modules/memdown/node_modules/abstract-leveldown": { + "version": "2.7.2", + "license": "MIT", + "dependencies": { + "xtend": "~4.0.0" + } + }, + "node_modules/memdown/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/memfs": { + "version": "3.5.1", + "license": "Unlicense", + "dependencies": { + "fs-monkey": "^1.0.3" + }, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/merge-descriptors": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/merge2": { + "version": "1.4.1", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/merkle-patricia-tree": { + "version": "2.3.2", + "license": "MPL-2.0", + "dependencies": { + "async": "^1.4.2", + "ethereumjs-util": "^5.0.0", + "level-ws": "0.0.0", + "levelup": "^1.2.1", + "memdown": "^1.0.0", + "readable-stream": "^2.0.0", + "rlp": "^2.0.0", + "semaphore": ">=1.0.1" + } + }, + "node_modules/merkle-patricia-tree/node_modules/async": { + "version": "1.5.2", + "license": "MIT" + }, + "node_modules/merkle-patricia-tree/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/merkle-patricia-tree/node_modules/ethereum-cryptography": { + "version": "0.1.3", + "license": "MIT", + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "node_modules/merkle-patricia-tree/node_modules/ethereumjs-util": { + "version": "5.2.1", + "license": "MPL-2.0", + "dependencies": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/merkle-patricia-tree/node_modules/isarray": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/merkle-patricia-tree/node_modules/readable-stream": { + "version": "2.3.8", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/merkle-patricia-tree/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/merkle-patricia-tree/node_modules/string_decoder": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/micro-ftch": { + "version": "0.3.1", + "license": "MIT" + }, + "node_modules/micromatch": { + "version": "4.0.5", + "license": "MIT", + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/miller-rabin": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "bn.js": "^4.0.0", + "brorand": "^1.0.1" + }, + "bin": { + "miller-rabin": "bin/miller-rabin" + } + }, + "node_modules/miller-rabin/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/mime": { + "version": "1.6.0", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/mimic-response": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/min-document": { + "version": "2.19.0", + "dependencies": { + "dom-walk": "^0.1.0" + } + }, + "node_modules/min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==", + "engines": { + "node": ">=4" + } + }, + "node_modules/mini-css-extract-plugin": { + "version": "2.7.5", + "license": "MIT", + "dependencies": { + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/ajv-keywords": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/mini-css-extract-plugin/node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/mini-css-extract-plugin/node_modules/schema-utils": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/minimalistic-assert": { + "version": "1.0.1", + "license": "ISC" + }, + "node_modules/minimalistic-crypto-utils": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/minimatch": { + "version": "3.1.2", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "2.9.0", + "license": "ISC", + "dependencies": { + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" + } + }, + "node_modules/minizlib": { + "version": "1.3.3", + "license": "MIT", + "dependencies": { + "minipass": "^2.9.0" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mkdirp-promise": { + "version": "5.0.1", + "license": "ISC", + "dependencies": { + "mkdirp": "*" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mock-fs": { + "version": "4.14.0", + "license": "MIT" + }, + "node_modules/motion": { + "version": "10.15.5", + "license": "MIT", + "dependencies": { + "@motionone/animation": "^10.15.1", + "@motionone/dom": "^10.15.5", + "@motionone/svelte": "^10.15.5", + "@motionone/types": "^10.15.1", + "@motionone/utils": "^10.15.1", + "@motionone/vue": "^10.15.5" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "license": "MIT" + }, + "node_modules/multibase": { + "version": "0.6.1", + "license": "MIT", + "dependencies": { + "base-x": "^3.0.8", + "buffer": "^5.5.0" + } + }, + "node_modules/multibase/node_modules/buffer": { + "version": "5.7.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/multicast-dns": { + "version": "7.2.5", + "license": "MIT", + "dependencies": { + "dns-packet": "^5.2.2", + "thunky": "^1.0.2" + }, + "bin": { + "multicast-dns": "cli.js" + } + }, + "node_modules/multicodec": { + "version": "0.5.7", + "license": "MIT", + "dependencies": { + "varint": "^5.0.0" + } + }, + "node_modules/multiformats": { + "version": "9.9.0", + "license": "(Apache-2.0 AND MIT)" + }, + "node_modules/multihashes": { + "version": "0.4.21", + "license": "MIT", + "dependencies": { + "buffer": "^5.5.0", + "multibase": "^0.7.0", + "varint": "^5.0.0" + } + }, + "node_modules/multihashes/node_modules/buffer": { + "version": "5.7.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/multihashes/node_modules/multibase": { + "version": "0.7.0", + "license": "MIT", + "dependencies": { + "base-x": "^3.0.8", + "buffer": "^5.5.0" + } + }, + "node_modules/mustache": { + "version": "4.2.0", + "license": "MIT", + "bin": { + "mustache": "bin/mustache" + } + }, + "node_modules/mz": { + "version": "2.7.0", + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nan": { + "version": "2.14.0", + "license": "MIT" + }, + "node_modules/nano-json-stream-parser": { + "version": "0.1.2", + "license": "MIT" + }, + "node_modules/nanoid": { + "version": "3.3.6", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "license": "MIT" + }, + "node_modules/natural-compare-lite": { + "version": "1.4.0", + "license": "MIT" + }, + "node_modules/near-api-js": { + "version": "1.1.0", + "license": "(MIT AND Apache-2.0)", + "dependencies": { + "bn.js": "5.2.1", + "borsh": "^0.7.0", + "bs58": "^4.0.0", + "depd": "^2.0.0", + "error-polyfill": "^0.1.3", + "http-errors": "^1.7.2", + "js-sha256": "^0.9.0", + "mustache": "^4.0.0", + "node-fetch": "^2.6.1", + "text-encoding-utf-8": "^1.0.2", + "tweetnacl": "^1.0.1" + } + }, + "node_modules/negotiator": { + "version": "0.6.3", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "license": "MIT" + }, + "node_modules/next-tick": { + "version": "1.1.0", + "license": "ISC" + }, + "node_modules/no-case": { + "version": "3.0.4", + "license": "MIT", + "dependencies": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "node_modules/node-addon-api": { + "version": "2.0.2", + "license": "MIT" + }, + "node_modules/node-fetch": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-forge": { + "version": "1.3.1", + "license": "(BSD-3-Clause OR GPL-2.0)", + "engines": { + "node": ">= 6.13.0" + } + }, + "node_modules/node-gyp-build": { + "version": "4.6.0", + "license": "MIT", + "bin": { + "node-gyp-build": "bin.js", + "node-gyp-build-optional": "optional.js", + "node-gyp-build-test": "build-test.js" + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.10", + "license": "MIT" + }, + "node_modules/noms": { + "version": "0.0.0", + "license": "ISC", + "dependencies": { + "inherits": "^2.0.1", + "readable-stream": "~1.0.31" + } + }, + "node_modules/noms/node_modules/isarray": { + "version": "0.0.1", + "license": "MIT" + }, + "node_modules/noms/node_modules/readable-stream": { + "version": "1.0.34", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/noms/node_modules/string_decoder": { + "version": "0.10.31", + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-range": { + "version": "0.1.2", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/normalize-url": { + "version": "6.1.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nth-check": { + "version": "2.1.1", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0" + }, + "funding": { + "url": "https://github.com/fb55/nth-check?sponsor=1" + } + }, + "node_modules/number-to-bn": { + "version": "1.7.0", + "license": "MIT", + "dependencies": { + "bn.js": "4.11.6", + "strip-hex-prefix": "1.0.0" + }, + "engines": { + "node": ">=6.5.0", + "npm": ">=3" + } + }, + "node_modules/number-to-bn/node_modules/bn.js": { + "version": "4.11.6", + "license": "MIT" + }, + "node_modules/nwsapi": { + "version": "2.2.4", + "license": "MIT" + }, + "node_modules/o3": { + "version": "1.0.3", + "license": "MIT", + "dependencies": { + "capability": "^0.2.5" + } + }, + "node_modules/oauth-sign": { + "version": "0.9.0", + "license": "Apache-2.0", + "engines": { + "node": "*" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/object-inspect": { + "version": "1.12.3", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-is": { + "version": "1.1.5", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object-keys": { + "version": "1.1.1", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.assign": { + "version": "4.1.4", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.entries": { + "version": "1.1.6", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/object.fromentries": { + "version": "2.0.6", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.getownpropertydescriptors": { + "version": "2.1.6", + "license": "MIT", + "dependencies": { + "array.prototype.reduce": "^1.0.5", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.21.2", + "safe-array-concat": "^1.0.0" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.hasown": { + "version": "1.1.2", + "license": "MIT", + "dependencies": { + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/object.values": { + "version": "1.1.6", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/oblivious-set": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/oboe": { + "version": "2.1.5", + "license": "BSD", + "dependencies": { + "http-https": "^1.0.0" + } + }, + "node_modules/obuf": { + "version": "1.1.2", + "license": "MIT" + }, + "node_modules/on-exit-leak-free": { + "version": "0.2.0", + "license": "MIT" + }, + "node_modules/on-finished": { + "version": "2.4.1", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/on-headers": { + "version": "1.0.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/open": { + "version": "8.4.2", + "license": "MIT", + "dependencies": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optimism": { + "version": "0.16.2", + "license": "MIT", + "dependencies": { + "@wry/context": "^0.7.0", + "@wry/trie": "^0.3.0" + } + }, + "node_modules/optionator": { + "version": "0.9.1", + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/os-browserify": { + "version": "0.3.0", + "license": "MIT" + }, + "node_modules/p-cancelable": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=12.20" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-retry": { + "version": "4.6.2", + "license": "MIT", + "dependencies": { + "@types/retry": "0.12.0", + "retry": "^0.13.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pako": { + "version": "2.1.0", + "license": "(MIT AND Zlib)" + }, + "node_modules/param-case": { + "version": "3.0.4", + "license": "MIT", + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-asn1": { + "version": "5.1.6", + "license": "ISC", + "dependencies": { + "asn1.js": "^5.2.0", + "browserify-aes": "^1.0.0", + "evp_bytestokey": "^1.0.0", + "pbkdf2": "^3.0.3", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/parse-headers": { + "version": "2.0.5", + "license": "MIT" + }, + "node_modules/parse-json": { + "version": "5.2.0", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse5": { + "version": "6.0.1", + "license": "MIT" + }, + "node_modules/parseurl": { + "version": "1.3.3", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/pascal-case": { + "version": "3.1.2", + "license": "MIT", + "dependencies": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "license": "MIT" + }, + "node_modules/path-to-regexp": { + "version": "0.1.7", + "license": "MIT" + }, + "node_modules/path-type": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/pbkdf2": { + "version": "3.1.2", + "license": "MIT", + "dependencies": { + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4", + "ripemd160": "^2.0.1", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + }, + "engines": { + "node": ">=0.12" + } + }, + "node_modules/performance-now": { + "version": "2.1.0", + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.0.0", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pify": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/pino": { + "version": "7.11.0", + "license": "MIT", + "dependencies": { + "atomic-sleep": "^1.0.0", + "fast-redact": "^3.0.0", + "on-exit-leak-free": "^0.2.0", + "pino-abstract-transport": "v0.5.0", + "pino-std-serializers": "^4.0.0", + "process-warning": "^1.0.0", + "quick-format-unescaped": "^4.0.3", + "real-require": "^0.1.0", + "safe-stable-stringify": "^2.1.0", + "sonic-boom": "^2.2.1", + "thread-stream": "^0.15.1" + }, + "bin": { + "pino": "bin.js" + } + }, + "node_modules/pino-abstract-transport": { + "version": "0.5.0", + "license": "MIT", + "dependencies": { + "duplexify": "^4.1.2", + "split2": "^4.0.0" + } + }, + "node_modules/pino-std-serializers": { + "version": "4.0.0", + "license": "MIT" + }, + "node_modules/pirates": { + "version": "4.0.5", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "license": "MIT", + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-up": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "find-up": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-up/node_modules/find-up": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/locate-path": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/p-limit": { + "version": "2.3.0", + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-up/node_modules/p-locate": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/pkg-up/node_modules/path-exists": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/pngjs": { + "version": "3.4.0", + "license": "MIT", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/postcss": { + "version": "8.4.23", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-attribute-case-insensitive": { + "version": "5.0.2", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-browser-comments": { + "version": "4.0.0", + "license": "CC0-1.0", + "engines": { + "node": ">=8" + }, + "peerDependencies": { + "browserslist": ">=4", + "postcss": ">=8" + } + }, + "node_modules/postcss-calc": { + "version": "8.2.4", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.9", + "postcss-value-parser": "^4.2.0" + }, + "peerDependencies": { + "postcss": "^8.2.2" + } + }, + "node_modules/postcss-clamp": { + "version": "4.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": ">=7.6.0" + }, + "peerDependencies": { + "postcss": "^8.4.6" + } + }, + "node_modules/postcss-color-functional-notation": { + "version": "4.2.4", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-color-hex-alpha": { + "version": "8.0.4", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-color-rebeccapurple": { + "version": "7.1.1", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-colormin": { + "version": "5.3.1", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "colord": "^2.9.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-convert-values": { + "version": "5.1.3", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-custom-media": { + "version": "8.0.2", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.3" + } + }, + "node_modules/postcss-custom-properties": { + "version": "12.1.11", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-custom-selectors": { + "version": "6.0.3", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.3" + } + }, + "node_modules/postcss-dir-pseudo-class": { + "version": "6.0.5", + "license": "CC0-1.0", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-discard-comments": { + "version": "5.1.2", + "license": "MIT", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-duplicates": { + "version": "5.1.0", + "license": "MIT", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-empty": { + "version": "5.1.1", + "license": "MIT", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-discard-overridden": { + "version": "5.1.0", + "license": "MIT", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-double-position-gradients": { + "version": "3.1.2", + "license": "CC0-1.0", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-env-function": { + "version": "4.0.6", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-flexbugs-fixes": { + "version": "5.0.2", + "license": "MIT", + "peerDependencies": { + "postcss": "^8.1.4" + } + }, + "node_modules/postcss-focus-visible": { + "version": "6.0.4", + "license": "CC0-1.0", + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-focus-within": { + "version": "5.0.4", + "license": "CC0-1.0", + "dependencies": { + "postcss-selector-parser": "^6.0.9" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-font-variant": { + "version": "5.0.0", + "license": "MIT", + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-gap-properties": { + "version": "3.0.5", + "license": "CC0-1.0", + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-image-set-function": { + "version": "4.0.7", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-initial": { + "version": "4.0.1", + "license": "MIT", + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-lab-function": { + "version": "4.2.1", + "license": "CC0-1.0", + "dependencies": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-load-config": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "lilconfig": "^2.0.5", + "yaml": "^2.1.1" + }, + "engines": { + "node": ">= 14" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-load-config/node_modules/yaml": { + "version": "2.2.2", + "license": "ISC", + "engines": { + "node": ">= 14" + } + }, + "node_modules/postcss-loader": { + "version": "6.2.1", + "license": "MIT", + "dependencies": { + "cosmiconfig": "^7.0.0", + "klona": "^2.0.5", + "semver": "^7.3.5" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "postcss": "^7.0.0 || ^8.0.1", + "webpack": "^5.0.0" + } + }, + "node_modules/postcss-loader/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/postcss-loader/node_modules/semver": { + "version": "7.5.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/postcss-loader/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/postcss-logical": { + "version": "5.0.4", + "license": "CC0-1.0", + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.4" + } + }, + "node_modules/postcss-media-minmax": { + "version": "5.0.0", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-merge-longhand": { + "version": "5.1.7", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0", + "stylehacks": "^5.1.1" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-merge-rules": { + "version": "5.1.4", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^3.1.0", + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-font-values": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-gradients": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "colord": "^2.9.1", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-params": { + "version": "5.1.4", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-minify-selectors": { + "version": "5.2.1", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-modules-extract-imports": { + "version": "3.0.0", + "license": "ISC", + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-local-by-default": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-scope": { + "version": "3.0.0", + "license": "ISC", + "dependencies": { + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-modules-values": { + "version": "4.0.0", + "license": "ISC", + "dependencies": { + "icss-utils": "^5.0.0" + }, + "engines": { + "node": "^10 || ^12 || >= 14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, + "node_modules/postcss-nested": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.11" + }, + "engines": { + "node": ">=12.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-nesting": { + "version": "10.2.0", + "license": "CC0-1.0", + "dependencies": { + "@csstools/selector-specificity": "^2.0.0", + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-normalize": { + "version": "10.0.1", + "license": "CC0-1.0", + "dependencies": { + "@csstools/normalize.css": "*", + "postcss-browser-comments": "^4", + "sanitize.css": "*" + }, + "engines": { + "node": ">= 12" + }, + "peerDependencies": { + "browserslist": ">= 4", + "postcss": ">= 8" + } + }, + "node_modules/postcss-normalize-charset": { + "version": "5.1.0", + "license": "MIT", + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-display-values": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-positions": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-repeat-style": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-string": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-timing-functions": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-unicode": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-url": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "normalize-url": "^6.0.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-normalize-whitespace": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-opacity-percentage": { + "version": "1.1.3", + "funding": [ + { + "type": "kofi", + "url": "https://ko-fi.com/mrcgrtz" + }, + { + "type": "liberapay", + "url": "https://liberapay.com/mrcgrtz" + } + ], + "license": "MIT", + "engines": { + "node": "^12 || ^14 || >=16" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-ordered-values": { + "version": "5.1.3", + "license": "MIT", + "dependencies": { + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-overflow-shorthand": { + "version": "3.0.4", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-page-break": { + "version": "3.0.4", + "license": "MIT", + "peerDependencies": { + "postcss": "^8" + } + }, + "node_modules/postcss-place": { + "version": "7.0.5", + "license": "CC0-1.0", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-preset-env": { + "version": "7.8.3", + "license": "CC0-1.0", + "dependencies": { + "@csstools/postcss-cascade-layers": "^1.1.1", + "@csstools/postcss-color-function": "^1.1.1", + "@csstools/postcss-font-format-keywords": "^1.0.1", + "@csstools/postcss-hwb-function": "^1.0.2", + "@csstools/postcss-ic-unit": "^1.0.1", + "@csstools/postcss-is-pseudo-class": "^2.0.7", + "@csstools/postcss-nested-calc": "^1.0.0", + "@csstools/postcss-normalize-display-values": "^1.0.1", + "@csstools/postcss-oklab-function": "^1.1.1", + "@csstools/postcss-progressive-custom-properties": "^1.3.0", + "@csstools/postcss-stepped-value-functions": "^1.0.1", + "@csstools/postcss-text-decoration-shorthand": "^1.0.0", + "@csstools/postcss-trigonometric-functions": "^1.0.2", + "@csstools/postcss-unset-value": "^1.0.2", + "autoprefixer": "^10.4.13", + "browserslist": "^4.21.4", + "css-blank-pseudo": "^3.0.3", + "css-has-pseudo": "^3.0.4", + "css-prefers-color-scheme": "^6.0.3", + "cssdb": "^7.1.0", + "postcss-attribute-case-insensitive": "^5.0.2", + "postcss-clamp": "^4.1.0", + "postcss-color-functional-notation": "^4.2.4", + "postcss-color-hex-alpha": "^8.0.4", + "postcss-color-rebeccapurple": "^7.1.1", + "postcss-custom-media": "^8.0.2", + "postcss-custom-properties": "^12.1.10", + "postcss-custom-selectors": "^6.0.3", + "postcss-dir-pseudo-class": "^6.0.5", + "postcss-double-position-gradients": "^3.1.2", + "postcss-env-function": "^4.0.6", + "postcss-focus-visible": "^6.0.4", + "postcss-focus-within": "^5.0.4", + "postcss-font-variant": "^5.0.0", + "postcss-gap-properties": "^3.0.5", + "postcss-image-set-function": "^4.0.7", + "postcss-initial": "^4.0.1", + "postcss-lab-function": "^4.2.1", + "postcss-logical": "^5.0.4", + "postcss-media-minmax": "^5.0.0", + "postcss-nesting": "^10.2.0", + "postcss-opacity-percentage": "^1.1.2", + "postcss-overflow-shorthand": "^3.0.4", + "postcss-page-break": "^3.0.4", + "postcss-place": "^7.0.5", + "postcss-pseudo-class-any-link": "^7.1.6", + "postcss-replace-overflow-wrap": "^4.0.0", + "postcss-selector-not": "^6.0.1", + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-pseudo-class-any-link": { + "version": "7.1.6", + "license": "CC0-1.0", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-reduce-initial": { + "version": "5.1.2", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-reduce-transforms": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-replace-overflow-wrap": { + "version": "4.0.0", + "license": "MIT", + "peerDependencies": { + "postcss": "^8.0.3" + } + }, + "node_modules/postcss-selector-not": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^12 || ^14 || >=16" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + }, + "peerDependencies": { + "postcss": "^8.2" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.0.11", + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-svgo": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.2.0", + "svgo": "^2.7.0" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-svgo/node_modules/commander": { + "version": "7.2.0", + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/postcss-svgo/node_modules/css-tree": { + "version": "1.1.3", + "license": "MIT", + "dependencies": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/postcss-svgo/node_modules/mdn-data": { + "version": "2.0.14", + "license": "CC0-1.0" + }, + "node_modules/postcss-svgo/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/postcss-svgo/node_modules/svgo": { + "version": "2.8.0", + "license": "MIT", + "dependencies": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/postcss-unique-selectors": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.0.5" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "license": "MIT" + }, + "node_modules/preact": { + "version": "10.4.1", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + } + }, + "node_modules/precond": { + "version": "0.2.3", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/prettier": { + "version": "2.8.8", + "license": "MIT", + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/pretty-bytes": { + "version": "5.6.0", + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pretty-error": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "lodash": "^4.17.20", + "renderkid": "^3.0.0" + } + }, + "node_modules/pretty-format": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/pretty-format/node_modules/react-is": { + "version": "17.0.2", + "license": "MIT" + }, + "node_modules/process": { + "version": "0.11.10", + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/process-warning": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/promise": { + "version": "8.3.0", + "license": "MIT", + "dependencies": { + "asap": "~2.0.6" + } + }, + "node_modules/promise-to-callback": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "is-fn": "^1.0.0", + "set-immediate-shim": "^1.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/prop-types": { + "version": "15.8.1", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + } + }, + "node_modules/prop-types/node_modules/react-is": { + "version": "16.13.1", + "license": "MIT" + }, + "node_modules/protobufjs": { + "version": "7.2.3", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/protobufjs/node_modules/long": { + "version": "5.2.3", + "license": "Apache-2.0" + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-compare": { + "version": "2.5.0", + "license": "MIT" + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "license": "MIT" + }, + "node_modules/prr": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/psl": { + "version": "1.9.0", + "license": "MIT" + }, + "node_modules/public-encrypt": { + "version": "4.0.3", + "license": "MIT", + "dependencies": { + "bn.js": "^4.1.0", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "parse-asn1": "^5.0.0", + "randombytes": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "node_modules/public-encrypt/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/pump": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pure-rand": { + "version": "6.0.2", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, + "node_modules/q": { + "version": "1.5.1", + "license": "MIT", + "engines": { + "node": ">=0.6.0", + "teleport": ">=0.2.0" + } + }, + "node_modules/qr.js": { + "version": "0.0.0", + "license": "MIT" + }, + "node_modules/qrcode": { + "version": "1.4.4", + "license": "MIT", + "dependencies": { + "buffer": "^5.4.3", + "buffer-alloc": "^1.2.0", + "buffer-from": "^1.1.1", + "dijkstrajs": "^1.0.1", + "isarray": "^2.0.1", + "pngjs": "^3.3.0", + "yargs": "^13.2.4" + }, + "bin": { + "qrcode": "bin/qrcode" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/qrcode/node_modules/ansi-regex": { + "version": "4.1.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/qrcode/node_modules/buffer": { + "version": "5.7.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/qrcode/node_modules/cliui": { + "version": "5.0.0", + "license": "ISC", + "dependencies": { + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" + } + }, + "node_modules/qrcode/node_modules/emoji-regex": { + "version": "7.0.3", + "license": "MIT" + }, + "node_modules/qrcode/node_modules/find-up": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/qrcode/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/qrcode/node_modules/locate-path": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/qrcode/node_modules/p-limit": { + "version": "2.3.0", + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/qrcode/node_modules/p-locate": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/qrcode/node_modules/path-exists": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/qrcode/node_modules/string-width": { + "version": "3.1.0", + "license": "MIT", + "dependencies": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/qrcode/node_modules/strip-ansi": { + "version": "5.2.0", + "license": "MIT", + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/qrcode/node_modules/wrap-ansi": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/qrcode/node_modules/y18n": { + "version": "4.0.3", + "license": "ISC" + }, + "node_modules/qrcode/node_modules/yargs": { + "version": "13.3.2", + "license": "MIT", + "dependencies": { + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" + } + }, + "node_modules/qrcode/node_modules/yargs-parser": { + "version": "13.1.2", + "license": "ISC", + "dependencies": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + }, + "node_modules/qs": { + "version": "6.11.1", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/query-string": { + "version": "7.1.3", + "license": "MIT", + "dependencies": { + "decode-uri-component": "^0.2.2", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/querystring": { + "version": "0.2.0", + "engines": { + "node": ">=0.4.x" + } + }, + "node_modules/querystringify": { + "version": "2.2.0", + "license": "MIT" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/quick-format-unescaped": { + "version": "4.0.4", + "license": "MIT" + }, + "node_modules/quick-lru": { + "version": "5.1.1", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/raf": { + "version": "3.4.1", + "license": "MIT", + "dependencies": { + "performance-now": "^2.1.0" + } + }, + "node_modules/randombytes": { + "version": "2.1.0", + "license": "MIT", + "dependencies": { + "safe-buffer": "^5.1.0" + } + }, + "node_modules/randomfill": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "randombytes": "^2.0.5", + "safe-buffer": "^5.1.0" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.2", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/http-errors": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/raw-body/node_modules/iconv-lite": { + "version": "0.4.24", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/raw-body/node_modules/statuses": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/react": { + "version": "18.2.0", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-app-polyfill": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "core-js": "^3.19.2", + "object-assign": "^4.1.1", + "promise": "^8.1.0", + "raf": "^3.4.1", + "regenerator-runtime": "^0.13.9", + "whatwg-fetch": "^3.6.2" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/react-app-rewired": { + "version": "2.2.1", + "license": "MIT", + "dependencies": { + "semver": "^5.6.0" + }, + "bin": { + "react-app-rewired": "bin/index.js" + }, + "peerDependencies": { + "react-scripts": ">=2.1.3" + } + }, + "node_modules/react-app-rewired/node_modules/semver": { + "version": "5.7.1", + "license": "ISC", + "bin": { + "semver": "bin/semver" + } + }, + "node_modules/react-dev-utils": { + "version": "12.0.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.16.0", + "address": "^1.1.2", + "browserslist": "^4.18.1", + "chalk": "^4.1.2", + "cross-spawn": "^7.0.3", + "detect-port-alt": "^1.1.6", + "escape-string-regexp": "^4.0.0", + "filesize": "^8.0.6", + "find-up": "^5.0.0", + "fork-ts-checker-webpack-plugin": "^6.5.0", + "global-modules": "^2.0.0", + "globby": "^11.0.4", + "gzip-size": "^6.0.0", + "immer": "^9.0.7", + "is-root": "^2.1.0", + "loader-utils": "^3.2.0", + "open": "^8.4.0", + "pkg-up": "^3.1.0", + "prompts": "^2.4.2", + "react-error-overlay": "^6.0.11", + "recursive-readdir": "^2.2.2", + "shell-quote": "^1.7.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/react-dev-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/react-dev-utils/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/react-dev-utils/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/react-dev-utils/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/react-dev-utils/node_modules/find-up": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react-dev-utils/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/react-dev-utils/node_modules/loader-utils": { + "version": "3.2.1", + "license": "MIT", + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/react-dev-utils/node_modules/locate-path": { + "version": "6.0.0", + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react-dev-utils/node_modules/p-locate": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react-dev-utils/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/react-dom": { + "version": "18.2.0", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.0" + }, + "peerDependencies": { + "react": "^18.2.0" + } + }, + "node_modules/react-error-overlay": { + "version": "6.0.11", + "license": "MIT" + }, + "node_modules/react-is": { + "version": "18.2.0", + "license": "MIT" + }, + "node_modules/react-lifecycles-compat": { + "version": "3.0.4", + "license": "MIT" + }, + "node_modules/react-modal": { + "version": "3.16.1", + "license": "MIT", + "dependencies": { + "exenv": "^1.2.0", + "prop-types": "^15.7.2", + "react-lifecycles-compat": "^3.0.0", + "warning": "^4.0.3" + }, + "engines": { + "node": ">=8" + }, + "peerDependencies": { + "react": "^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18", + "react-dom": "^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18" + } + }, + "node_modules/react-redux": { + "version": "8.0.5", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.12.1", + "@types/hoist-non-react-statics": "^3.3.1", + "@types/use-sync-external-store": "^0.0.3", + "hoist-non-react-statics": "^3.3.2", + "react-is": "^18.0.0", + "use-sync-external-store": "^1.0.0" + }, + "peerDependencies": { + "@types/react": "^16.8 || ^17.0 || ^18.0", + "@types/react-dom": "^16.8 || ^17.0 || ^18.0", + "react": "^16.8 || ^17.0 || ^18.0", + "react-dom": "^16.8 || ^17.0 || ^18.0", + "react-native": ">=0.59", + "redux": "^4" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "@types/react-dom": { + "optional": true + }, + "react-dom": { + "optional": true + }, + "react-native": { + "optional": true + }, + "redux": { + "optional": true + } + } + }, + "node_modules/react-refresh": { + "version": "0.11.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-scripts": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.16.0", + "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", + "@svgr/webpack": "^5.5.0", + "babel-jest": "^27.4.2", + "babel-loader": "^8.2.3", + "babel-plugin-named-asset-import": "^0.3.8", + "babel-preset-react-app": "^10.0.1", + "bfj": "^7.0.2", + "browserslist": "^4.18.1", + "camelcase": "^6.2.1", + "case-sensitive-paths-webpack-plugin": "^2.4.0", + "css-loader": "^6.5.1", + "css-minimizer-webpack-plugin": "^3.2.0", + "dotenv": "^10.0.0", + "dotenv-expand": "^5.1.0", + "eslint": "^8.3.0", + "eslint-config-react-app": "^7.0.1", + "eslint-webpack-plugin": "^3.1.1", + "file-loader": "^6.2.0", + "fs-extra": "^10.0.0", + "html-webpack-plugin": "^5.5.0", + "identity-obj-proxy": "^3.0.0", + "jest": "^27.4.3", + "jest-resolve": "^27.4.2", + "jest-watch-typeahead": "^1.0.0", + "mini-css-extract-plugin": "^2.4.5", + "postcss": "^8.4.4", + "postcss-flexbugs-fixes": "^5.0.2", + "postcss-loader": "^6.2.1", + "postcss-normalize": "^10.0.1", + "postcss-preset-env": "^7.0.1", + "prompts": "^2.4.2", + "react-app-polyfill": "^3.0.0", + "react-dev-utils": "^12.0.1", + "react-refresh": "^0.11.0", + "resolve": "^1.20.0", + "resolve-url-loader": "^4.0.0", + "sass-loader": "^12.3.0", + "semver": "^7.3.5", + "source-map-loader": "^3.0.0", + "style-loader": "^3.3.1", + "tailwindcss": "^3.0.2", + "terser-webpack-plugin": "^5.2.5", + "webpack": "^5.64.4", + "webpack-dev-server": "^4.6.0", + "webpack-manifest-plugin": "^4.0.2", + "workbox-webpack-plugin": "^6.4.1" + }, + "bin": { + "react-scripts": "bin/react-scripts.js" + }, + "engines": { + "node": ">=14.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + }, + "peerDependencies": { + "react": ">= 16", + "typescript": "^3.2.1 || ^4" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/react-scripts/node_modules/@jest/console": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/@jest/core": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/reporters": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^27.5.1", + "jest-config": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-resolve-dependencies": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "jest-watcher": "^27.5.1", + "micromatch": "^4.0.4", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/react-scripts/node_modules/@jest/environment": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/@jest/fake-timers": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/@jest/globals": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/types": "^27.5.1", + "expect": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/@jest/reporters": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-haste-map": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^8.1.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/react-scripts/node_modules/@jest/schemas": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.24.1" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/react-scripts/node_modules/@jest/source-map": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9", + "source-map": "^0.6.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/@jest/test-result": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/@jest/test-sequencer": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/test-result": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-runtime": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/@jest/transform": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.1.0", + "@jest/types": "^27.5.1", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-util": "^27.5.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/@jest/types": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/@sinclair/typebox": { + "version": "0.24.51", + "license": "MIT" + }, + "node_modules/react-scripts/node_modules/@sinonjs/commons": { + "version": "1.8.6", + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/react-scripts/node_modules/@sinonjs/fake-timers": { + "version": "8.1.0", + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^1.7.0" + } + }, + "node_modules/react-scripts/node_modules/@types/yargs": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/react-scripts/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/react-scripts/node_modules/babel-jest": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/react-scripts/node_modules/babel-plugin-jest-hoist": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/babel-preset-jest": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "babel-plugin-jest-hoist": "^27.5.1", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/react-scripts/node_modules/camelcase": { + "version": "6.3.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react-scripts/node_modules/chalk": { + "version": "4.1.2", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/react-scripts/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/react-scripts/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/react-scripts/node_modules/emittery": { + "version": "0.8.1", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/react-scripts/node_modules/expect": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/react-scripts/node_modules/jest": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/core": "^27.5.1", + "import-local": "^3.0.2", + "jest-cli": "^27.5.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/react-scripts/node_modules/jest-changed-files": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "execa": "^5.0.0", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-circus": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-cli": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/core": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "prompts": "^2.0.1", + "yargs": "^16.2.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/react-scripts/node_modules/jest-config": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.8.0", + "@jest/test-sequencer": "^27.5.1", + "@jest/types": "^27.5.1", + "babel-jest": "^27.5.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.9", + "jest-circus": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-jasmine2": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "peerDependencies": { + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "ts-node": { + "optional": true + } + } + }, + "node_modules/react-scripts/node_modules/jest-docblock": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-each": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-environment-node": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-get-type": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-haste-map": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^27.5.1", + "jest-serializer": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "micromatch": "^4.0.4", + "walker": "^1.0.7" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/react-scripts/node_modules/jest-leak-detector": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-message-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-mock": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-regex-util": { + "version": "27.5.1", + "license": "MIT", + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-resolve": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "resolve": "^1.20.0", + "resolve.exports": "^1.1.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-resolve-dependencies": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-snapshot": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-runner": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/console": "^27.5.1", + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-leak-detector": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "source-map-support": "^0.5.6", + "throat": "^6.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-runtime": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/globals": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "execa": "^5.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-snapshot": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.7.2", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.0.0", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^27.5.1", + "semver": "^7.3.2" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-util": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-validate": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/types": "^27.5.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "leven": "^3.1.0", + "pretty-format": "^27.5.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead": { + "version": "1.1.0", + "license": "MIT", + "dependencies": { + "ansi-escapes": "^4.3.1", + "chalk": "^4.0.0", + "jest-regex-util": "^28.0.0", + "jest-watcher": "^28.0.0", + "slash": "^4.0.0", + "string-length": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "peerDependencies": { + "jest": "^27.0.0 || ^28.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/@jest/console": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@jest/types": "^28.1.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^28.1.3", + "jest-util": "^28.1.3", + "slash": "^3.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/@jest/console/node_modules/slash": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/@jest/test-result": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@jest/console": "^28.1.3", + "@jest/types": "^28.1.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/@jest/types": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^28.1.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/@types/yargs": { + "version": "17.0.24", + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/ansi-styles": { + "version": "5.2.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/emittery": { + "version": "0.10.2", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/jest-message-util": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^28.1.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^28.1.3", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/jest-message-util/node_modules/slash": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/jest-regex-util": { + "version": "28.0.2", + "license": "MIT", + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/jest-util": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@jest/types": "^28.1.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/jest-watcher": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@jest/test-result": "^28.1.3", + "@jest/types": "^28.1.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.10.2", + "jest-util": "^28.1.3", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/jest-watcher/node_modules/string-length": { + "version": "4.0.2", + "license": "MIT", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/jest-watcher/node_modules/strip-ansi": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/pretty-format": { + "version": "28.1.3", + "license": "MIT", + "dependencies": { + "@jest/schemas": "^28.1.3", + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/slash": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/string-length": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "char-regex": "^2.0.0", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/string-length/node_modules/char-regex": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">=12.20" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/strip-ansi": { + "version": "7.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/react-scripts/node_modules/jest-watch-typeahead/node_modules/strip-ansi/node_modules/ansi-regex": { + "version": "6.0.1", + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/react-scripts/node_modules/jest-watcher": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^27.5.1", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + } + }, + "node_modules/react-scripts/node_modules/jest-worker": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/react-scripts/node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/react-scripts/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/react-scripts/node_modules/resolve.exports": { + "version": "1.1.1", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/react-scripts/node_modules/semver": { + "version": "7.5.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/react-scripts/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-scripts/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/react-scripts/node_modules/v8-to-istanbul": { + "version": "8.1.1", + "license": "ISC", + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/react-scripts/node_modules/v8-to-istanbul/node_modules/source-map": { + "version": "0.7.4", + "license": "BSD-3-Clause", + "engines": { + "node": ">= 8" + } + }, + "node_modules/react-scripts/node_modules/write-file-atomic": { + "version": "3.0.3", + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "node_modules/react-scripts/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/react-transition-group": { + "version": "4.4.5", + "license": "BSD-3-Clause", + "dependencies": { + "@babel/runtime": "^7.5.5", + "dom-helpers": "^5.0.1", + "loose-envify": "^1.4.0", + "prop-types": "^15.6.2" + }, + "peerDependencies": { + "react": ">=16.6.0", + "react-dom": ">=16.6.0" + } + }, + "node_modules/read-cache": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "pify": "^2.3.0" + } + }, + "node_modules/read-cache/node_modules/pify": { + "version": "2.3.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/readonly-date": { + "version": "1.0.0", + "license": "Apache-2.0" + }, + "node_modules/real-require": { + "version": "0.1.0", + "license": "MIT", + "engines": { + "node": ">= 12.13.0" + } + }, + "node_modules/rechoir": { + "version": "0.6.2", + "dependencies": { + "resolve": "^1.1.6" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/recursive-readdir": { + "version": "2.2.3", + "license": "MIT", + "dependencies": { + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "dependencies": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/redux": { + "version": "4.2.1", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.9.2" + } + }, + "node_modules/redux-thunk": { + "version": "2.4.2", + "license": "MIT", + "peerDependencies": { + "redux": "^4" + } + }, + "node_modules/regenerate": { + "version": "1.4.2", + "license": "MIT" + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.1.0", + "license": "MIT", + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-runtime": { + "version": "0.13.11", + "license": "MIT" + }, + "node_modules/regenerator-transform": { + "version": "0.15.1", + "license": "MIT", + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regex-parser": { + "version": "2.2.11", + "license": "MIT" + }, + "node_modules/regexp.prototype.flags": { + "version": "1.5.0", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/regexpu-core": { + "version": "5.3.2", + "license": "MIT", + "dependencies": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsparser": { + "version": "0.9.1", + "license": "BSD-2-Clause", + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/relateurl": { + "version": "0.2.7", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/renderkid": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "css-select": "^4.1.3", + "dom-converter": "^0.2.0", + "htmlparser2": "^6.1.0", + "lodash": "^4.17.21", + "strip-ansi": "^6.0.1" + } + }, + "node_modules/request": { + "version": "2.88.2", + "license": "Apache-2.0", + "dependencies": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/request/node_modules/form-data": { + "version": "2.3.3", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/request/node_modules/qs": { + "version": "6.5.3", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/request/node_modules/uuid": { + "version": "3.4.0", + "license": "MIT", + "bin": { + "uuid": "bin/uuid" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/require-main-filename": { + "version": "2.0.0", + "license": "ISC" + }, + "node_modules/requires-port": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/reselect": { + "version": "4.1.8", + "license": "MIT" + }, + "node_modules/resolve": { + "version": "1.22.2", + "license": "MIT", + "dependencies": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-alpn": { + "version": "1.2.1", + "license": "MIT" + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-url-loader": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "adjust-sourcemap-loader": "^4.0.0", + "convert-source-map": "^1.7.0", + "loader-utils": "^2.0.0", + "postcss": "^7.0.35", + "source-map": "0.6.1" + }, + "engines": { + "node": ">=8.9" + }, + "peerDependencies": { + "rework": "1.0.1", + "rework-visit": "1.0.0" + }, + "peerDependenciesMeta": { + "rework": { + "optional": true + }, + "rework-visit": { + "optional": true + } + } + }, + "node_modules/resolve-url-loader/node_modules/picocolors": { + "version": "0.2.1", + "license": "ISC" + }, + "node_modules/resolve-url-loader/node_modules/postcss": { + "version": "7.0.39", + "license": "MIT", + "dependencies": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=6.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + } + }, + "node_modules/resolve-url-loader/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.2", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/response-iterator": { + "version": "0.2.6", + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/responselike": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "lowercase-keys": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/responselike/node_modules/lowercase-keys": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/retry": { + "version": "0.13.1", + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/reusify": { + "version": "1.0.4", + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ripemd160": { + "version": "2.0.2", + "license": "MIT", + "dependencies": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1" + } + }, + "node_modules/ripemd160-min": { + "version": "0.0.6", + "engines": { + "node": ">=8" + } + }, + "node_modules/rlp": { + "version": "2.2.7", + "license": "MPL-2.0", + "dependencies": { + "bn.js": "^5.2.0" + }, + "bin": { + "rlp": "bin/rlp" + } + }, + "node_modules/rollup": { + "version": "2.79.1", + "license": "MIT", + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=10.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/rollup-plugin-terser": { + "version": "7.0.2", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.10.4", + "jest-worker": "^26.2.1", + "serialize-javascript": "^4.0.0", + "terser": "^5.0.0" + }, + "peerDependencies": { + "rollup": "^2.0.0" + } + }, + "node_modules/rollup-plugin-terser/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/rollup-plugin-terser/node_modules/jest-worker": { + "version": "26.6.2", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/rollup-plugin-terser/node_modules/serialize-javascript": { + "version": "4.0.0", + "license": "BSD-3-Clause", + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/rollup-plugin-terser/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/rpc-websockets": { + "version": "7.5.1", + "license": "LGPL-3.0-only", + "dependencies": { + "@babel/runtime": "^7.17.2", + "eventemitter3": "^4.0.7", + "uuid": "^8.3.2", + "ws": "^8.5.0" + }, + "funding": { + "type": "paypal", + "url": "https://paypal.me/kozjak" + }, + "optionalDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + } + }, + "node_modules/rpc-websockets/node_modules/ws": { + "version": "8.13.0", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/rtcpeerconnection-shim": { + "version": "1.2.15", + "license": "BSD-3-Clause", + "dependencies": { + "sdp": "^2.6.0" + }, + "engines": { + "node": ">=6.0.0", + "npm": ">=3.10.0" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/rustbn.js": { + "version": "0.2.0", + "license": "(MIT OR Apache-2.0)" + }, + "node_modules/rxjs": { + "version": "7.8.1", + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/safe-array-concat": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + }, + "engines": { + "node": ">=0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safe-event-emitter": { + "version": "1.0.1", + "license": "ISC", + "dependencies": { + "events": "^3.0.0" + } + }, + "node_modules/safe-json-utils": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/safe-regex-test": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/safe-stable-stringify": { + "version": "2.4.3", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "license": "MIT" + }, + "node_modules/salmon-adapter-sdk": { + "version": "1.1.1", + "license": "Apache-2.0", + "dependencies": { + "@project-serum/sol-wallet-adapter": "^0.2.6", + "eventemitter3": "^4.0.7" + }, + "peerDependencies": { + "@solana/web3.js": "^1.44.3" + } + }, + "node_modules/sanitize.css": { + "version": "13.0.0", + "license": "CC0-1.0" + }, + "node_modules/sass-loader": { + "version": "12.6.0", + "license": "MIT", + "dependencies": { + "klona": "^2.0.4", + "neo-async": "^2.6.2" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "fibers": ">= 3.1.0", + "node-sass": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0", + "sass": "^1.3.0", + "sass-embedded": "*", + "webpack": "^5.0.0" + }, + "peerDependenciesMeta": { + "fibers": { + "optional": true + }, + "node-sass": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + } + } + }, + "node_modules/sax": { + "version": "1.2.4", + "license": "ISC" + }, + "node_modules/saxes": { + "version": "5.0.1", + "license": "ISC", + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/scheduler": { + "version": "0.23.0", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/schema-utils": { + "version": "3.1.2", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/scrypt-js": { + "version": "3.0.1", + "license": "MIT" + }, + "node_modules/sdp": { + "version": "2.12.0", + "license": "MIT" + }, + "node_modules/secp256k1": { + "version": "4.0.3", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "elliptic": "^6.5.4", + "node-addon-api": "^2.0.0", + "node-gyp-build": "^4.2.0" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/select-hose": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/selfsigned": { + "version": "2.1.1", + "license": "MIT", + "dependencies": { + "node-forge": "^1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/semaphore": { + "version": "1.1.0", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/semver": { + "version": "6.3.0", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/send": { + "version": "0.18.0", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/send/node_modules/debug/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/send/node_modules/http-errors": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "license": "MIT" + }, + "node_modules/send/node_modules/statuses": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/serialize-javascript": { + "version": "6.0.1", + "license": "BSD-3-Clause", + "dependencies": { + "randombytes": "^2.1.0" + } + }, + "node_modules/serve-index": { + "version": "1.9.1", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/serve-index/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/serve-index/node_modules/depd": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/http-errors": { + "version": "1.6.3", + "license": "MIT", + "dependencies": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/serve-index/node_modules/inherits": { + "version": "2.0.3", + "license": "ISC" + }, + "node_modules/serve-index/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/serve-index/node_modules/setprototypeof": { + "version": "1.1.0", + "license": "ISC" + }, + "node_modules/serve-static": { + "version": "1.15.0", + "license": "MIT", + "dependencies": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/servify": { + "version": "0.1.12", + "license": "MIT", + "dependencies": { + "body-parser": "^1.16.0", + "cors": "^2.8.1", + "express": "^4.14.0", + "request": "^2.79.0", + "xhr": "^2.3.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "license": "ISC" + }, + "node_modules/set-immediate-shim": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/setimmediate": { + "version": "1.0.5", + "license": "MIT" + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "license": "ISC" + }, + "node_modules/sha.js": { + "version": "2.4.11", + "license": "(MIT AND BSD-3-Clause)", + "dependencies": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + }, + "bin": { + "sha.js": "bin.js" + } + }, + "node_modules/sha3": { + "version": "2.1.4", + "license": "MIT", + "dependencies": { + "buffer": "6.0.3" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/shell-quote": { + "version": "1.8.1", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/shelljs": { + "version": "0.8.5", + "license": "BSD-3-Clause", + "dependencies": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + }, + "bin": { + "shjs": "bin/shjs" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/shx": { + "version": "0.3.4", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.3", + "shelljs": "^0.8.5" + }, + "bin": { + "shx": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/side-channel": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "license": "ISC" + }, + "node_modules/simple-concat": { + "version": "1.0.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/simple-get": { + "version": "2.8.2", + "license": "MIT", + "dependencies": { + "decompress-response": "^3.3.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + } + }, + "node_modules/simple-get/node_modules/decompress-response": { + "version": "3.3.0", + "license": "MIT", + "dependencies": { + "mimic-response": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "license": "MIT" + }, + "node_modules/slash": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/snake-case": { + "version": "3.0.4", + "license": "MIT", + "dependencies": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "node_modules/snakecase-keys": { + "version": "5.4.5", + "license": "MIT", + "dependencies": { + "map-obj": "^4.1.0", + "snake-case": "^3.0.4", + "type-fest": "^2.5.2" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/snakecase-keys/node_modules/type-fest": { + "version": "2.19.0", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/socket.io-client": { + "version": "4.6.1", + "license": "MIT", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.2", + "engine.io-client": "~6.4.0", + "socket.io-parser": "~4.2.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/socket.io-parser": { + "version": "4.2.2", + "license": "MIT", + "dependencies": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/sockjs": { + "version": "0.3.24", + "license": "MIT", + "dependencies": { + "faye-websocket": "^0.11.3", + "uuid": "^8.3.2", + "websocket-driver": "^0.7.4" + } + }, + "node_modules/sonic-boom": { + "version": "2.8.0", + "license": "MIT", + "dependencies": { + "atomic-sleep": "^1.0.0" + } + }, + "node_modules/source-list-map": { + "version": "2.0.1", + "license": "MIT" + }, + "node_modules/source-map": { + "version": "0.5.7", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-js": { + "version": "1.0.2", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-loader": { + "version": "3.0.2", + "license": "MIT", + "dependencies": { + "abab": "^2.0.5", + "iconv-lite": "^0.6.3", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/source-map-support/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sourcemap-codec": { + "version": "1.4.8", + "license": "MIT" + }, + "node_modules/spdy": { + "version": "4.0.2", + "license": "MIT", + "dependencies": { + "debug": "^4.1.0", + "handle-thing": "^2.0.0", + "http-deceiver": "^1.2.7", + "select-hose": "^2.0.0", + "spdy-transport": "^3.0.0" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/spdy-transport": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" + } + }, + "node_modules/split-on-first": { + "version": "1.1.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/split2": { + "version": "4.2.0", + "license": "ISC", + "engines": { + "node": ">= 10.x" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "license": "BSD-3-Clause" + }, + "node_modules/sshpk": { + "version": "1.17.0", + "license": "MIT", + "dependencies": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/sshpk/node_modules/tweetnacl": { + "version": "0.14.5", + "license": "Unlicense" + }, + "node_modules/stable": { + "version": "0.1.8", + "license": "MIT" + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/stackframe": { + "version": "1.3.4", + "license": "MIT" + }, + "node_modules/statuses": { + "version": "1.5.0", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/stop-iteration-iterator": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "internal-slot": "^1.0.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/store2": { + "version": "2.14.2", + "license": "(MIT OR GPL-3.0)" + }, + "node_modules/stream-browserify": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "inherits": "~2.0.4", + "readable-stream": "^3.5.0" + } + }, + "node_modules/stream-http": { + "version": "3.2.0", + "license": "MIT", + "dependencies": { + "builtin-status-codes": "^3.0.0", + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "xtend": "^4.0.2" + } + }, + "node_modules/stream-shift": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/strict-uri-encode": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "license": "MIT", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-natural-compare": { + "version": "3.0.1", + "license": "MIT" + }, + "node_modules/string-width": { + "version": "4.2.3", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-width/node_modules/emoji-regex": { + "version": "8.0.0", + "license": "MIT" + }, + "node_modules/string.prototype.matchall": { + "version": "4.0.8", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "regexp.prototype.flags": "^1.4.3", + "side-channel": "^1.0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trim": { + "version": "1.2.7", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimend": { + "version": "1.0.6", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/string.prototype.trimstart": { + "version": "1.0.6", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/stringify-object": { + "version": "3.3.0", + "license": "BSD-2-Clause", + "dependencies": { + "get-own-enumerable-property-symbols": "^3.0.0", + "is-obj": "^1.0.1", + "is-regexp": "^1.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-comments": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-hex-prefix": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "is-hex-prefixed": "1.0.0" + }, + "engines": { + "node": ">=6.5.0", + "npm": ">=3" + } + }, + "node_modules/strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "dependencies": { + "min-indent": "^1.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/style-loader": { + "version": "3.3.2", + "license": "MIT", + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.0.0" + } + }, + "node_modules/stylehacks": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "browserslist": "^4.21.4", + "postcss-selector-parser": "^6.0.4" + }, + "engines": { + "node": "^10 || ^12 || >=14.0" + }, + "peerDependencies": { + "postcss": "^8.2.15" + } + }, + "node_modules/stylis": { + "version": "4.1.3", + "license": "MIT" + }, + "node_modules/sucrase": { + "version": "3.32.0", + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "glob": "7.1.6", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/sucrase/node_modules/glob": { + "version": "7.1.6", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/superstruct": { + "version": "0.15.5", + "license": "MIT" + }, + "node_modules/supports-color": { + "version": "5.5.0", + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-hyperlinks": { + "version": "2.3.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-hyperlinks/node_modules/supports-color": { + "version": "7.2.0", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/svg-parser": { + "version": "2.0.4", + "license": "MIT" + }, + "node_modules/svgo": { + "version": "1.3.2", + "license": "MIT", + "dependencies": { + "chalk": "^2.4.1", + "coa": "^2.0.2", + "css-select": "^2.0.0", + "css-select-base-adapter": "^0.1.1", + "css-tree": "1.0.0-alpha.37", + "csso": "^4.0.2", + "js-yaml": "^3.13.1", + "mkdirp": "~0.5.1", + "object.values": "^1.1.0", + "sax": "~1.2.4", + "stable": "^0.1.8", + "unquote": "~1.1.1", + "util.promisify": "~1.0.0" + }, + "bin": { + "svgo": "bin/svgo" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/svgo/node_modules/css-select": { + "version": "2.1.0", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "^1.0.0", + "css-what": "^3.2.1", + "domutils": "^1.7.0", + "nth-check": "^1.0.2" + } + }, + "node_modules/svgo/node_modules/css-what": { + "version": "3.4.2", + "license": "BSD-2-Clause", + "engines": { + "node": ">= 6" + }, + "funding": { + "url": "https://github.com/sponsors/fb55" + } + }, + "node_modules/svgo/node_modules/dom-serializer": { + "version": "0.2.2", + "license": "MIT", + "dependencies": { + "domelementtype": "^2.0.1", + "entities": "^2.0.0" + } + }, + "node_modules/svgo/node_modules/domutils": { + "version": "1.7.0", + "license": "BSD-2-Clause", + "dependencies": { + "dom-serializer": "0", + "domelementtype": "1" + } + }, + "node_modules/svgo/node_modules/domutils/node_modules/domelementtype": { + "version": "1.3.1", + "license": "BSD-2-Clause" + }, + "node_modules/svgo/node_modules/mkdirp": { + "version": "0.5.6", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/svgo/node_modules/nth-check": { + "version": "1.0.2", + "license": "BSD-2-Clause", + "dependencies": { + "boolbase": "~1.0.0" + } + }, + "node_modules/swarm-js": { + "version": "0.1.42", + "license": "MIT", + "dependencies": { + "bluebird": "^3.5.0", + "buffer": "^5.0.5", + "eth-lib": "^0.1.26", + "fs-extra": "^4.0.2", + "got": "^11.8.5", + "mime-types": "^2.1.16", + "mkdirp-promise": "^5.0.1", + "mock-fs": "^4.1.0", + "setimmediate": "^1.0.5", + "tar": "^4.0.2", + "xhr-request": "^1.0.1" + } + }, + "node_modules/swarm-js/node_modules/@szmarczak/http-timer": { + "version": "4.0.6", + "license": "MIT", + "dependencies": { + "defer-to-connect": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/swarm-js/node_modules/buffer": { + "version": "5.7.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/swarm-js/node_modules/cacheable-lookup": { + "version": "5.0.4", + "license": "MIT", + "engines": { + "node": ">=10.6.0" + } + }, + "node_modules/swarm-js/node_modules/fs-extra": { + "version": "4.0.3", + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "node_modules/swarm-js/node_modules/got": { + "version": "11.8.6", + "license": "MIT", + "dependencies": { + "@sindresorhus/is": "^4.0.0", + "@szmarczak/http-timer": "^4.0.5", + "@types/cacheable-request": "^6.0.1", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^5.0.3", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "http2-wrapper": "^1.0.0-beta.5.2", + "lowercase-keys": "^2.0.0", + "p-cancelable": "^2.0.0", + "responselike": "^2.0.0" + }, + "engines": { + "node": ">=10.19.0" + }, + "funding": { + "url": "https://github.com/sindresorhus/got?sponsor=1" + } + }, + "node_modules/swarm-js/node_modules/http2-wrapper": { + "version": "1.0.3", + "license": "MIT", + "dependencies": { + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.0.0" + }, + "engines": { + "node": ">=10.19.0" + } + }, + "node_modules/swarm-js/node_modules/jsonfile": { + "version": "4.0.0", + "license": "MIT", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/swarm-js/node_modules/lowercase-keys": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/swarm-js/node_modules/p-cancelable": { + "version": "2.1.1", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/swarm-js/node_modules/universalify": { + "version": "0.1.2", + "license": "MIT", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/symbol-observable": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "license": "MIT" + }, + "node_modules/tailwindcss": { + "version": "3.3.2", + "license": "MIT", + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.5.3", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.2.12", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.18.2", + "lilconfig": "^2.1.0", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.23", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.1", + "postcss-nested": "^6.0.1", + "postcss-selector-parser": "^6.0.11", + "postcss-value-parser": "^4.2.0", + "resolve": "^1.22.2", + "sucrase": "^3.32.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tapable": { + "version": "2.2.1", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/tar": { + "version": "4.4.19", + "license": "ISC", + "dependencies": { + "chownr": "^1.1.4", + "fs-minipass": "^1.2.7", + "minipass": "^2.9.0", + "minizlib": "^1.3.3", + "mkdirp": "^0.5.5", + "safe-buffer": "^5.2.1", + "yallist": "^3.1.1" + }, + "engines": { + "node": ">=4.5" + } + }, + "node_modules/tar/node_modules/mkdirp": { + "version": "0.5.6", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.6" + }, + "bin": { + "mkdirp": "bin/cmd.js" + } + }, + "node_modules/temp-dir": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/tempy": { + "version": "0.6.0", + "license": "MIT", + "dependencies": { + "is-stream": "^2.0.0", + "temp-dir": "^2.0.0", + "type-fest": "^0.16.0", + "unique-string": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/tempy/node_modules/type-fest": { + "version": "0.16.0", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/terminal-link": { + "version": "2.1.1", + "license": "MIT", + "dependencies": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/terser": { + "version": "5.17.1", + "license": "BSD-2-Clause", + "dependencies": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "bin": { + "terser": "bin/terser" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/terser-webpack-plugin": { + "version": "5.3.7", + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.5" + }, + "engines": { + "node": ">= 10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^5.1.0" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "uglify-js": { + "optional": true + } + } + }, + "node_modules/terser-webpack-plugin/node_modules/has-flag": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/terser-webpack-plugin/node_modules/jest-worker": { + "version": "27.5.1", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": ">= 10.13.0" + } + }, + "node_modules/terser-webpack-plugin/node_modules/supports-color": { + "version": "8.1.1", + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/terser/node_modules/commander": { + "version": "2.20.3", + "license": "MIT" + }, + "node_modules/terser/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/terser/node_modules/source-map-support": { + "version": "0.5.21", + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/text-encoding-utf-8": { + "version": "1.0.2" + }, + "node_modules/text-table": { + "version": "0.2.0", + "license": "MIT" + }, + "node_modules/thenify": { + "version": "3.3.1", + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "license": "MIT", + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/thread-stream": { + "version": "0.15.2", + "license": "MIT", + "dependencies": { + "real-require": "^0.1.0" + } + }, + "node_modules/throat": { + "version": "6.0.2", + "license": "MIT" + }, + "node_modules/through": { + "version": "2.3.8", + "license": "MIT" + }, + "node_modules/through2": { + "version": "2.0.5", + "license": "MIT", + "dependencies": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "node_modules/through2/node_modules/isarray": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/through2/node_modules/readable-stream": { + "version": "2.3.8", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/through2/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/through2/node_modules/string_decoder": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/thunky": { + "version": "1.1.0", + "license": "MIT" + }, + "node_modules/timed-out": { + "version": "4.0.1", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/tiny-secp256k1": { + "version": "1.1.6", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "bindings": "^1.3.0", + "bn.js": "^4.11.8", + "create-hmac": "^1.1.7", + "elliptic": "^6.4.0", + "nan": "^2.13.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/tiny-secp256k1/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/tmp": { + "version": "0.2.1", + "license": "MIT", + "dependencies": { + "rimraf": "^3.0.0" + }, + "engines": { + "node": ">=8.17.0" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "license": "BSD-3-Clause" + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toggle-selection": { + "version": "1.0.6", + "license": "MIT" + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/toml": { + "version": "3.0.0", + "license": "MIT" + }, + "node_modules/tough-cookie": { + "version": "2.5.0", + "license": "BSD-3-Clause", + "dependencies": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "license": "MIT" + }, + "node_modules/tryer": { + "version": "1.0.1", + "license": "MIT" + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "license": "Apache-2.0" + }, + "node_modules/ts-invariant": { + "version": "0.10.3", + "license": "MIT", + "dependencies": { + "tslib": "^2.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ts-jest": { + "version": "29.1.0", + "license": "MIT", + "dependencies": { + "bs-logger": "0.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^29.0.0", + "json5": "^2.2.3", + "lodash.memoize": "4.x", + "make-error": "1.x", + "semver": "7.x", + "yargs-parser": "^21.0.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/types": "^29.0.0", + "babel-jest": "^29.0.0", + "jest": "^29.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/lru-cache": { + "version": "6.0.0", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.5.0", + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/yallist": { + "version": "4.0.0", + "license": "ISC" + }, + "node_modules/tsconfig-paths": { + "version": "3.14.2", + "license": "MIT", + "dependencies": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + } + }, + "node_modules/tsconfig-paths/node_modules/json5": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "minimist": "^1.2.0" + }, + "bin": { + "json5": "lib/cli.js" + } + }, + "node_modules/tsconfig-paths/node_modules/strip-bom": { + "version": "3.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/tslib": { + "version": "2.5.0", + "license": "0BSD" + }, + "node_modules/tss-react": { + "version": "4.8.3", + "license": "MIT", + "dependencies": { + "@emotion/cache": "*", + "@emotion/serialize": "*", + "@emotion/utils": "*" + }, + "peerDependencies": { + "@emotion/react": "^11.4.1", + "@emotion/server": "^11.4.0", + "react": "^16.8.0 || ^17.0.2 || ^18.0.0" + }, + "peerDependenciesMeta": { + "@emotion/server": { + "optional": true + } + } + }, + "node_modules/tsutils": { + "version": "3.21.0", + "license": "MIT", + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + } + }, + "node_modules/tsutils/node_modules/tslib": { + "version": "1.14.1", + "license": "0BSD" + }, + "node_modules/tunnel-agent": { + "version": "0.6.0", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/tweetnacl": { + "version": "1.0.3", + "license": "Unlicense" + }, + "node_modules/tweetnacl-util": { + "version": "0.15.1", + "license": "Unlicense" + }, + "node_modules/type": { + "version": "1.2.0", + "license": "ISC" + }, + "node_modules/type-check": { + "version": "0.4.0", + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/typedarray-to-buffer": { + "version": "3.1.5", + "license": "MIT", + "dependencies": { + "is-typedarray": "^1.0.0" + } + }, + "node_modules/typeforce": { + "version": "1.18.0", + "license": "MIT" + }, + "node_modules/typescript": { + "version": "4.9.5", + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/u3": { + "version": "0.1.1", + "license": "MIT" + }, + "node_modules/uint8arrays": { + "version": "3.1.1", + "license": "MIT", + "dependencies": { + "multiformats": "^9.4.2" + } + }, + "node_modules/ultron": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/unbox-primitive": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/unique-string": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "crypto-random-string": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/universalify": { + "version": "2.0.0", + "license": "MIT", + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/unload": { + "version": "2.4.1", + "license": "Apache-2.0", + "funding": { + "url": "https://github.com/sponsors/pubkey" + } + }, + "node_modules/unpipe": { + "version": "1.0.0", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/unquote": { + "version": "1.1.1", + "license": "MIT" + }, + "node_modules/untildify": { + "version": "4.0.0", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/upath": { + "version": "1.2.0", + "license": "MIT", + "engines": { + "node": ">=4", + "yarn": "*" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.11", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/url": { + "version": "0.11.0", + "license": "MIT", + "dependencies": { + "punycode": "1.3.2", + "querystring": "0.2.0" + } + }, + "node_modules/url-parse": { + "version": "1.5.10", + "license": "MIT", + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "node_modules/url-set-query": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/url/node_modules/punycode": { + "version": "1.3.2", + "license": "MIT" + }, + "node_modules/use-sync-external-store": { + "version": "1.2.0", + "license": "MIT", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, + "node_modules/utf-8-validate": { + "version": "5.0.10", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "node-gyp-build": "^4.3.0" + }, + "engines": { + "node": ">=6.14.2" + } + }, + "node_modules/utf8": { + "version": "3.0.0", + "license": "MIT" + }, + "node_modules/util": { + "version": "0.12.5", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "license": "MIT" + }, + "node_modules/util.promisify": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.2", + "has-symbols": "^1.0.1", + "object.getownpropertydescriptors": "^2.1.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/utila": { + "version": "0.4.0", + "license": "MIT" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/v8-to-istanbul": { + "version": "9.1.0", + "license": "ISC", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/valtio": { + "version": "1.10.4", + "license": "MIT", + "dependencies": { + "proxy-compare": "2.5.0", + "use-sync-external-store": "1.2.0" + }, + "engines": { + "node": ">=12.20.0" + }, + "peerDependencies": { + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + } + } + }, + "node_modules/varint": { + "version": "5.0.2", + "license": "MIT" + }, + "node_modules/vary": { + "version": "1.1.2", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/verror": { + "version": "1.10.0", + "engines": [ + "node >=0.6.0" + ], + "license": "MIT", + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "node_modules/versions": { + "version": "10.4.3", + "license": "BSD-2-Clause", + "bin": { + "versions": "bin/versions.js" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/vlq": { + "version": "2.0.4", + "license": "MIT" + }, + "node_modules/w3c-hr-time": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "browser-process-hrtime": "^1.0.0" + } + }, + "node_modules/w3c-xmlserializer": { + "version": "2.0.0", + "license": "MIT", + "dependencies": { + "xml-name-validator": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "license": "Apache-2.0", + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/warning": { + "version": "4.0.3", + "license": "MIT", + "dependencies": { + "loose-envify": "^1.0.0" + } + }, + "node_modules/watchpack": { + "version": "2.4.0", + "license": "MIT", + "dependencies": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/wbuf": { + "version": "1.7.3", + "license": "MIT", + "dependencies": { + "minimalistic-assert": "^1.0.0" + } + }, + "node_modules/web-vitals": { + "version": "2.1.4", + "license": "Apache-2.0" + }, + "node_modules/web3": { + "version": "1.9.0", + "hasInstallScript": true, + "license": "LGPL-3.0", + "dependencies": { + "web3-bzz": "1.9.0", + "web3-core": "1.9.0", + "web3-eth": "1.9.0", + "web3-eth-personal": "1.9.0", + "web3-net": "1.9.0", + "web3-shh": "1.9.0", + "web3-utils": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-bzz": { + "version": "1.9.0", + "hasInstallScript": true, + "license": "LGPL-3.0", + "dependencies": { + "@types/node": "^12.12.6", + "got": "12.1.0", + "swarm-js": "^0.1.40" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-bzz/node_modules/@types/node": { + "version": "12.20.55", + "license": "MIT" + }, + "node_modules/web3-core": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "@types/bn.js": "^5.1.1", + "@types/node": "^12.12.6", + "bignumber.js": "^9.0.0", + "web3-core-helpers": "1.9.0", + "web3-core-method": "1.9.0", + "web3-core-requestmanager": "1.9.0", + "web3-utils": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-core-helpers": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "web3-eth-iban": "1.9.0", + "web3-utils": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-core-method": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "@ethersproject/transactions": "^5.6.2", + "web3-core-helpers": "1.9.0", + "web3-core-promievent": "1.9.0", + "web3-core-subscriptions": "1.9.0", + "web3-utils": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-core-promievent": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "eventemitter3": "4.0.4" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-core-promievent/node_modules/eventemitter3": { + "version": "4.0.4", + "license": "MIT" + }, + "node_modules/web3-core-requestmanager": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "util": "^0.12.5", + "web3-core-helpers": "1.9.0", + "web3-providers-http": "1.9.0", + "web3-providers-ipc": "1.9.0", + "web3-providers-ws": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-core-subscriptions": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "eventemitter3": "4.0.4", + "web3-core-helpers": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-core-subscriptions/node_modules/eventemitter3": { + "version": "4.0.4", + "license": "MIT" + }, + "node_modules/web3-core/node_modules/@types/node": { + "version": "12.20.55", + "license": "MIT" + }, + "node_modules/web3-eth": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "web3-core": "1.9.0", + "web3-core-helpers": "1.9.0", + "web3-core-method": "1.9.0", + "web3-core-subscriptions": "1.9.0", + "web3-eth-abi": "1.9.0", + "web3-eth-accounts": "1.9.0", + "web3-eth-contract": "1.9.0", + "web3-eth-ens": "1.9.0", + "web3-eth-iban": "1.9.0", + "web3-eth-personal": "1.9.0", + "web3-net": "1.9.0", + "web3-utils": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-eth-abi": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "@ethersproject/abi": "^5.6.3", + "web3-utils": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-eth-accounts": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "@ethereumjs/common": "2.5.0", + "@ethereumjs/tx": "3.3.2", + "eth-lib": "0.2.8", + "ethereumjs-util": "^7.1.5", + "scrypt-js": "^3.0.1", + "uuid": "^9.0.0", + "web3-core": "1.9.0", + "web3-core-helpers": "1.9.0", + "web3-core-method": "1.9.0", + "web3-utils": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-eth-accounts/node_modules/@ethereumjs/common": { + "version": "2.5.0", + "license": "MIT", + "dependencies": { + "crc-32": "^1.2.0", + "ethereumjs-util": "^7.1.1" + } + }, + "node_modules/web3-eth-accounts/node_modules/@ethereumjs/tx": { + "version": "3.3.2", + "license": "MPL-2.0", + "dependencies": { + "@ethereumjs/common": "^2.5.0", + "ethereumjs-util": "^7.1.2" + } + }, + "node_modules/web3-eth-accounts/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/web3-eth-accounts/node_modules/eth-lib": { + "version": "0.2.8", + "license": "MIT", + "dependencies": { + "bn.js": "^4.11.6", + "elliptic": "^6.4.0", + "xhr-request-promise": "^0.1.2" + } + }, + "node_modules/web3-eth-accounts/node_modules/uuid": { + "version": "9.0.0", + "license": "MIT", + "bin": { + "uuid": "dist/bin/uuid" + } + }, + "node_modules/web3-eth-contract": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "@types/bn.js": "^5.1.1", + "web3-core": "1.9.0", + "web3-core-helpers": "1.9.0", + "web3-core-method": "1.9.0", + "web3-core-promievent": "1.9.0", + "web3-core-subscriptions": "1.9.0", + "web3-eth-abi": "1.9.0", + "web3-utils": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-eth-ens": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "content-hash": "^2.5.2", + "eth-ens-namehash": "2.0.8", + "web3-core": "1.9.0", + "web3-core-helpers": "1.9.0", + "web3-core-promievent": "1.9.0", + "web3-eth-abi": "1.9.0", + "web3-eth-contract": "1.9.0", + "web3-utils": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-eth-iban": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "bn.js": "^5.2.1", + "web3-utils": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-eth-personal": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "@types/node": "^12.12.6", + "web3-core": "1.9.0", + "web3-core-helpers": "1.9.0", + "web3-core-method": "1.9.0", + "web3-net": "1.9.0", + "web3-utils": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-eth-personal/node_modules/@types/node": { + "version": "12.20.55", + "license": "MIT" + }, + "node_modules/web3-net": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "web3-core": "1.9.0", + "web3-core-method": "1.9.0", + "web3-utils": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-provider-engine": { + "version": "16.0.5", + "license": "MIT", + "dependencies": { + "@ethereumjs/tx": "^3.3.0", + "async": "^2.5.0", + "backoff": "^2.5.0", + "clone": "^2.0.0", + "eth-block-tracker": "^5.0.1", + "eth-json-rpc-filters": "^4.2.1", + "eth-json-rpc-infura": "^5.1.0", + "eth-json-rpc-middleware": "^6.0.0", + "eth-rpc-errors": "^3.0.0", + "eth-sig-util": "^1.4.2", + "ethereumjs-block": "^1.2.2", + "ethereumjs-util": "^5.1.5", + "ethereumjs-vm": "^2.3.4", + "json-stable-stringify": "^1.0.1", + "promise-to-callback": "^1.0.0", + "readable-stream": "^2.2.9", + "request": "^2.85.0", + "semaphore": "^1.0.3", + "ws": "^5.1.1", + "xhr": "^2.2.0", + "xtend": "^4.0.1" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/web3-provider-engine/node_modules/async-mutex": { + "version": "0.2.6", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.0" + } + }, + "node_modules/web3-provider-engine/node_modules/bn.js": { + "version": "4.12.0", + "license": "MIT" + }, + "node_modules/web3-provider-engine/node_modules/eth-block-tracker": { + "version": "5.0.1", + "license": "MIT", + "dependencies": { + "@metamask/safe-event-emitter": "^2.0.0", + "json-rpc-random-id": "^1.0.1", + "pify": "^3.0.0" + } + }, + "node_modules/web3-provider-engine/node_modules/eth-json-rpc-filters": { + "version": "4.2.2", + "license": "ISC", + "dependencies": { + "@metamask/safe-event-emitter": "^2.0.0", + "async-mutex": "^0.2.6", + "eth-json-rpc-middleware": "^6.0.0", + "eth-query": "^2.1.2", + "json-rpc-engine": "^6.1.0", + "pify": "^5.0.0" + } + }, + "node_modules/web3-provider-engine/node_modules/eth-json-rpc-filters/node_modules/pify": { + "version": "5.0.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/web3-provider-engine/node_modules/eth-rpc-errors": { + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "fast-safe-stringify": "^2.0.6" + } + }, + "node_modules/web3-provider-engine/node_modules/ethereum-cryptography": { + "version": "0.1.3", + "license": "MIT", + "dependencies": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "node_modules/web3-provider-engine/node_modules/ethereumjs-util": { + "version": "5.2.1", + "license": "MPL-2.0", + "dependencies": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + }, + "node_modules/web3-provider-engine/node_modules/isarray": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/web3-provider-engine/node_modules/readable-stream": { + "version": "2.3.8", + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/web3-provider-engine/node_modules/safe-buffer": { + "version": "5.1.2", + "license": "MIT" + }, + "node_modules/web3-provider-engine/node_modules/string_decoder": { + "version": "1.1.1", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/web3-provider-engine/node_modules/ws": { + "version": "5.2.3", + "license": "MIT", + "dependencies": { + "async-limiter": "~1.0.0" + } + }, + "node_modules/web3-providers-http": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "abortcontroller-polyfill": "^1.7.3", + "cross-fetch": "^3.1.4", + "es6-promise": "^4.2.8", + "web3-core-helpers": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-providers-ipc": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "oboe": "2.1.5", + "web3-core-helpers": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-providers-ws": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "eventemitter3": "4.0.4", + "web3-core-helpers": "1.9.0", + "websocket": "^1.0.32" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-providers-ws/node_modules/eventemitter3": { + "version": "4.0.4", + "license": "MIT" + }, + "node_modules/web3-shh": { + "version": "1.9.0", + "hasInstallScript": true, + "license": "LGPL-3.0", + "dependencies": { + "web3-core": "1.9.0", + "web3-core-method": "1.9.0", + "web3-core-subscriptions": "1.9.0", + "web3-net": "1.9.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/web3-utils": { + "version": "1.9.0", + "license": "LGPL-3.0", + "dependencies": { + "bn.js": "^5.2.1", + "ethereum-bloom-filters": "^1.0.6", + "ethereumjs-util": "^7.1.0", + "ethjs-unit": "0.1.6", + "number-to-bn": "1.7.0", + "randombytes": "^2.1.0", + "utf8": "3.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "license": "BSD-2-Clause" + }, + "node_modules/webpack": { + "version": "5.81.0", + "license": "MIT", + "dependencies": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.13.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.2", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + }, + "bin": { + "webpack": "bin/webpack.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependenciesMeta": { + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-dev-middleware": { + "version": "5.3.3", + "license": "MIT", + "dependencies": { + "colorette": "^2.0.10", + "memfs": "^3.4.3", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^4.0.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.0.0 || ^5.0.0" + } + }, + "node_modules/webpack-dev-middleware/node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack-dev-middleware/node_modules/ajv-keywords": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/webpack-dev-middleware/node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/webpack-dev-middleware/node_modules/schema-utils": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-dev-server": { + "version": "4.13.3", + "license": "MIT", + "dependencies": { + "@types/bonjour": "^3.5.9", + "@types/connect-history-api-fallback": "^1.3.5", + "@types/express": "^4.17.13", + "@types/serve-index": "^1.9.1", + "@types/serve-static": "^1.13.10", + "@types/sockjs": "^0.3.33", + "@types/ws": "^8.5.1", + "ansi-html-community": "^0.0.8", + "bonjour-service": "^1.0.11", + "chokidar": "^3.5.3", + "colorette": "^2.0.10", + "compression": "^1.7.4", + "connect-history-api-fallback": "^2.0.0", + "default-gateway": "^6.0.3", + "express": "^4.17.3", + "graceful-fs": "^4.2.6", + "html-entities": "^2.3.2", + "http-proxy-middleware": "^2.0.3", + "ipaddr.js": "^2.0.1", + "launch-editor": "^2.6.0", + "open": "^8.0.9", + "p-retry": "^4.5.0", + "rimraf": "^3.0.2", + "schema-utils": "^4.0.0", + "selfsigned": "^2.1.1", + "serve-index": "^1.9.1", + "sockjs": "^0.3.24", + "spdy": "^4.0.2", + "webpack-dev-middleware": "^5.3.1", + "ws": "^8.13.0" + }, + "bin": { + "webpack-dev-server": "bin/webpack-dev-server.js" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + }, + "peerDependencies": { + "webpack": "^4.37.0 || ^5.0.0" + }, + "peerDependenciesMeta": { + "webpack": { + "optional": true + }, + "webpack-cli": { + "optional": true + } + } + }, + "node_modules/webpack-dev-server/node_modules/@types/ws": { + "version": "8.5.4", + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/webpack-dev-server/node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/webpack-dev-server/node_modules/ajv-keywords": { + "version": "5.1.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3" + }, + "peerDependencies": { + "ajv": "^8.8.2" + } + }, + "node_modules/webpack-dev-server/node_modules/ipaddr.js": { + "version": "2.0.1", + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/webpack-dev-server/node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/webpack-dev-server/node_modules/schema-utils": { + "version": "4.0.1", + "license": "MIT", + "dependencies": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + }, + "engines": { + "node": ">= 12.13.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/webpack-dev-server/node_modules/ws": { + "version": "8.13.0", + "license": "MIT", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/webpack-manifest-plugin": { + "version": "4.1.1", + "license": "MIT", + "dependencies": { + "tapable": "^2.0.0", + "webpack-sources": "^2.2.0" + }, + "engines": { + "node": ">=12.22.0" + }, + "peerDependencies": { + "webpack": "^4.44.2 || ^5.47.0" + } + }, + "node_modules/webpack-manifest-plugin/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/webpack-manifest-plugin/node_modules/webpack-sources": { + "version": "2.3.1", + "license": "MIT", + "dependencies": { + "source-list-map": "^2.0.1", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webpack-sources": { + "version": "3.2.3", + "license": "MIT", + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/webrtc-adapter": { + "version": "7.7.1", + "license": "BSD-3-Clause", + "dependencies": { + "rtcpeerconnection-shim": "^1.2.15", + "sdp": "^2.12.0" + }, + "engines": { + "node": ">=6.0.0", + "npm": ">=3.10.0" + } + }, + "node_modules/websocket": { + "version": "1.0.34", + "license": "Apache-2.0", + "dependencies": { + "bufferutil": "^4.0.1", + "debug": "^2.2.0", + "es5-ext": "^0.10.50", + "typedarray-to-buffer": "^3.1.5", + "utf-8-validate": "^5.0.2", + "yaeti": "^0.0.6" + }, + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/websocket-driver": { + "version": "0.7.4", + "license": "Apache-2.0", + "dependencies": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/websocket-extensions": { + "version": "0.1.4", + "license": "Apache-2.0", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/websocket/node_modules/debug": { + "version": "2.6.9", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/websocket/node_modules/ms": { + "version": "2.0.0", + "license": "MIT" + }, + "node_modules/whatwg-encoding": { + "version": "1.0.5", + "license": "MIT", + "dependencies": { + "iconv-lite": "0.4.24" + } + }, + "node_modules/whatwg-encoding/node_modules/iconv-lite": { + "version": "0.4.24", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/whatwg-fetch": { + "version": "3.6.2", + "license": "MIT" + }, + "node_modules/whatwg-mimetype": { + "version": "2.3.0", + "license": "MIT" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/which-boxed-primitive": { + "version": "1.0.2", + "license": "MIT", + "dependencies": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-collection": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-weakmap": "^2.0.1", + "is-weakset": "^2.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/which-module": { + "version": "2.0.1", + "license": "ISC" + }, + "node_modules/which-typed-array": { + "version": "1.1.9", + "license": "MIT", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/wif": { + "version": "2.0.6", + "license": "MIT", + "dependencies": { + "bs58check": "<3.0.0" + } + }, + "node_modules/word-wrap": { + "version": "1.2.3", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/workbox-background-sync": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "idb": "^7.0.1", + "workbox-core": "6.5.4" + } + }, + "node_modules/workbox-broadcast-update": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "workbox-core": "6.5.4" + } + }, + "node_modules/workbox-build": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "@apideck/better-ajv-errors": "^0.3.1", + "@babel/core": "^7.11.1", + "@babel/preset-env": "^7.11.0", + "@babel/runtime": "^7.11.2", + "@rollup/plugin-babel": "^5.2.0", + "@rollup/plugin-node-resolve": "^11.2.1", + "@rollup/plugin-replace": "^2.4.1", + "@surma/rollup-plugin-off-main-thread": "^2.2.3", + "ajv": "^8.6.0", + "common-tags": "^1.8.0", + "fast-json-stable-stringify": "^2.1.0", + "fs-extra": "^9.0.1", + "glob": "^7.1.6", + "lodash": "^4.17.20", + "pretty-bytes": "^5.3.0", + "rollup": "^2.43.1", + "rollup-plugin-terser": "^7.0.0", + "source-map": "^0.8.0-beta.0", + "stringify-object": "^3.3.0", + "strip-comments": "^2.0.1", + "tempy": "^0.6.0", + "upath": "^1.2.0", + "workbox-background-sync": "6.5.4", + "workbox-broadcast-update": "6.5.4", + "workbox-cacheable-response": "6.5.4", + "workbox-core": "6.5.4", + "workbox-expiration": "6.5.4", + "workbox-google-analytics": "6.5.4", + "workbox-navigation-preload": "6.5.4", + "workbox-precaching": "6.5.4", + "workbox-range-requests": "6.5.4", + "workbox-recipes": "6.5.4", + "workbox-routing": "6.5.4", + "workbox-strategies": "6.5.4", + "workbox-streams": "6.5.4", + "workbox-sw": "6.5.4", + "workbox-window": "6.5.4" + }, + "engines": { + "node": ">=10.0.0" + } + }, + "node_modules/workbox-build/node_modules/@apideck/better-ajv-errors": { + "version": "0.3.6", + "license": "MIT", + "dependencies": { + "json-schema": "^0.4.0", + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "peerDependencies": { + "ajv": ">=8" + } + }, + "node_modules/workbox-build/node_modules/ajv": { + "version": "8.12.0", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/workbox-build/node_modules/fs-extra": { + "version": "9.1.0", + "license": "MIT", + "dependencies": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/workbox-build/node_modules/json-schema-traverse": { + "version": "1.0.0", + "license": "MIT" + }, + "node_modules/workbox-build/node_modules/source-map": { + "version": "0.8.0-beta.0", + "license": "BSD-3-Clause", + "dependencies": { + "whatwg-url": "^7.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/workbox-build/node_modules/tr46": { + "version": "1.0.1", + "license": "MIT", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/workbox-build/node_modules/webidl-conversions": { + "version": "4.0.2", + "license": "BSD-2-Clause" + }, + "node_modules/workbox-build/node_modules/whatwg-url": { + "version": "7.1.0", + "license": "MIT", + "dependencies": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + }, + "node_modules/workbox-cacheable-response": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "workbox-core": "6.5.4" + } + }, + "node_modules/workbox-core": { + "version": "6.5.4", + "license": "MIT" + }, + "node_modules/workbox-expiration": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "idb": "^7.0.1", + "workbox-core": "6.5.4" + } + }, + "node_modules/workbox-google-analytics": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "workbox-background-sync": "6.5.4", + "workbox-core": "6.5.4", + "workbox-routing": "6.5.4", + "workbox-strategies": "6.5.4" + } + }, + "node_modules/workbox-navigation-preload": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "workbox-core": "6.5.4" + } + }, + "node_modules/workbox-precaching": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "workbox-core": "6.5.4", + "workbox-routing": "6.5.4", + "workbox-strategies": "6.5.4" + } + }, + "node_modules/workbox-range-requests": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "workbox-core": "6.5.4" + } + }, + "node_modules/workbox-recipes": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "workbox-cacheable-response": "6.5.4", + "workbox-core": "6.5.4", + "workbox-expiration": "6.5.4", + "workbox-precaching": "6.5.4", + "workbox-routing": "6.5.4", + "workbox-strategies": "6.5.4" + } + }, + "node_modules/workbox-routing": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "workbox-core": "6.5.4" + } + }, + "node_modules/workbox-strategies": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "workbox-core": "6.5.4" + } + }, + "node_modules/workbox-streams": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "workbox-core": "6.5.4", + "workbox-routing": "6.5.4" + } + }, + "node_modules/workbox-sw": { + "version": "6.5.4", + "license": "MIT" + }, + "node_modules/workbox-webpack-plugin": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "fast-json-stable-stringify": "^2.1.0", + "pretty-bytes": "^5.4.1", + "upath": "^1.2.0", + "webpack-sources": "^1.4.3", + "workbox-build": "6.5.4" + }, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "webpack": "^4.4.0 || ^5.9.0" + } + }, + "node_modules/workbox-webpack-plugin/node_modules/source-map": { + "version": "0.6.1", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/workbox-webpack-plugin/node_modules/webpack-sources": { + "version": "1.4.3", + "license": "MIT", + "dependencies": { + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" + } + }, + "node_modules/workbox-window": { + "version": "6.5.4", + "license": "MIT", + "dependencies": { + "@types/trusted-types": "^2.0.2", + "workbox-core": "6.5.4" + } + }, + "node_modules/wormhole-connect-builder": { + "resolved": "builder", + "link": true + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "license": "MIT" + }, + "node_modules/wrappy": { + "version": "1.0.2", + "license": "ISC" + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/ws": { + "version": "7.5.9", + "license": "MIT", + "engines": { + "node": ">=8.3.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": "^5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xhr": { + "version": "2.6.0", + "license": "MIT", + "dependencies": { + "global": "~4.4.0", + "is-function": "^1.0.1", + "parse-headers": "^2.0.0", + "xtend": "^4.0.0" + } + }, + "node_modules/xhr-request": { + "version": "1.1.0", + "license": "MIT", + "dependencies": { + "buffer-to-arraybuffer": "^0.0.5", + "object-assign": "^4.1.1", + "query-string": "^5.0.1", + "simple-get": "^2.7.0", + "timed-out": "^4.0.1", + "url-set-query": "^1.0.0", + "xhr": "^2.0.4" + } + }, + "node_modules/xhr-request-promise": { + "version": "0.1.3", + "license": "MIT", + "dependencies": { + "xhr-request": "^1.1.0" + } + }, + "node_modules/xhr-request/node_modules/query-string": { + "version": "5.1.1", + "license": "MIT", + "dependencies": { + "decode-uri-component": "^0.2.0", + "object-assign": "^4.1.0", + "strict-uri-encode": "^1.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/xhr-request/node_modules/strict-uri-encode": { + "version": "1.1.0", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/xml-name-validator": { + "version": "3.0.0", + "license": "Apache-2.0" + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "license": "MIT" + }, + "node_modules/xmlhttprequest-ssl": { + "version": "2.0.0", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/xstream": { + "version": "11.14.0", + "license": "MIT", + "dependencies": { + "globalthis": "^1.0.1", + "symbol-observable": "^2.0.3" + } + }, + "node_modules/xstream/node_modules/symbol-observable": { + "version": "2.0.3", + "license": "MIT", + "engines": { + "node": ">=0.10" + } + }, + "node_modules/xtend": { + "version": "4.0.2", + "license": "MIT", + "engines": { + "node": ">=0.4" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yaeti": { + "version": "0.0.6", + "license": "MIT", + "engines": { + "node": ">=0.10.32" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "license": "ISC" + }, + "node_modules/yaml": { + "version": "1.10.2", + "license": "ISC", + "engines": { + "node": ">= 6" + } + }, + "node_modules/yargs": { + "version": "16.2.0", + "license": "MIT", + "dependencies": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs/node_modules/yargs-parser": { + "version": "20.2.9", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/zen-observable": { + "version": "0.8.15", + "license": "MIT" + }, + "node_modules/zen-observable-ts": { + "version": "1.2.5", + "license": "MIT", + "dependencies": { + "zen-observable": "0.8.15" + } + }, + "node_modules/zustand": { + "version": "4.3.7", + "license": "MIT", + "dependencies": { + "use-sync-external-store": "1.2.0" + }, + "engines": { + "node": ">=12.7.0" + }, + "peerDependencies": { + "immer": ">=9.0", + "react": ">=16.8" + }, + "peerDependenciesMeta": { + "immer": { + "optional": true + }, + "react": { + "optional": true + } + } + }, + "sdk": { + "name": "@wormhole-foundation/wormhole-connect-sdk", + "version": "0.1.0-beta.0", + "license": "ISC", + "dependencies": { + "@certusone/wormhole-sdk": "^0.9.14", + "@injectivelabs/sdk-ts": "1.0.211", + "@nomad-xyz/multi-provider": "^1.1.0", + "@solana/spl-token": "^0.3.7", + "@solana/web3.js": "^1.73.0", + "@terra-money/terra.js": "^3.1.7", + "@typescript-eslint/eslint-plugin": "^5.48.1", + "@typescript-eslint/parser": "^5.48.1", + "@xpla/xpla.js": "^0.2.3", + "algosdk": "^1.15.0", + "aptos": "^1.6.0", + "bech32": "^2.0.0", + "bn.js": "^5.2.1", + "buffer-layout": "^1.2.2", + "elliptic": "^6.5.4", + "eslint-config-prettier": "^8.6.0", + "near-api-js": "^1.1.0" + }, + "devDependencies": { + "@types/bs58": "^4.0.1", + "@types/elliptic": "^6.4.14", + "@types/jest": "^27.5.2", + "@types/node": "^16.18.11", + "@types/node-fetch": "^2.6.2", + "eslint": "^8.31.0", + "ethers": "^5.7.2", + "prettier": "^2.8.2", + "typescript": "^4.9.4" + } + }, + "sdk/node_modules/@cosmjs/amino": { + "version": "0.29.5", + "license": "Apache-2.0", + "dependencies": { + "@cosmjs/crypto": "^0.29.5", + "@cosmjs/encoding": "^0.29.5", + "@cosmjs/math": "^0.29.5", + "@cosmjs/utils": "^0.29.5" + } + }, + "sdk/node_modules/@cosmjs/crypto": { + "version": "0.29.5", + "license": "Apache-2.0", + "dependencies": { + "@cosmjs/encoding": "^0.29.5", + "@cosmjs/math": "^0.29.5", + "@cosmjs/utils": "^0.29.5", + "@noble/hashes": "^1", + "bn.js": "^5.2.0", + "elliptic": "^6.5.4", + "libsodium-wrappers": "^0.7.6" + } + }, + "sdk/node_modules/@cosmjs/encoding": { + "version": "0.29.5", + "license": "Apache-2.0", + "dependencies": { + "base64-js": "^1.3.0", + "bech32": "^1.1.4", + "readonly-date": "^1.0.0" + } + }, + "sdk/node_modules/@cosmjs/encoding/node_modules/bech32": { + "version": "1.1.4", + "license": "MIT" + }, + "sdk/node_modules/@cosmjs/json-rpc": { + "version": "0.29.5", + "license": "Apache-2.0", + "dependencies": { + "@cosmjs/stream": "^0.29.5", + "xstream": "^11.14.0" + } + }, + "sdk/node_modules/@cosmjs/math": { + "version": "0.29.5", + "license": "Apache-2.0", + "dependencies": { + "bn.js": "^5.2.0" + } + }, + "sdk/node_modules/@cosmjs/proto-signing": { + "version": "0.29.5", + "license": "Apache-2.0", + "dependencies": { + "@cosmjs/amino": "^0.29.5", + "@cosmjs/crypto": "^0.29.5", + "@cosmjs/encoding": "^0.29.5", + "@cosmjs/math": "^0.29.5", + "@cosmjs/utils": "^0.29.5", + "cosmjs-types": "^0.5.2", + "long": "^4.0.0" + } + }, + "sdk/node_modules/@cosmjs/socket": { + "version": "0.29.5", + "license": "Apache-2.0", + "dependencies": { + "@cosmjs/stream": "^0.29.5", + "isomorphic-ws": "^4.0.1", + "ws": "^7", + "xstream": "^11.14.0" + } + }, + "sdk/node_modules/@cosmjs/stream": { + "version": "0.29.5", + "license": "Apache-2.0", + "dependencies": { + "xstream": "^11.14.0" + } + }, + "sdk/node_modules/@cosmjs/tendermint-rpc": { + "version": "0.29.5", + "license": "Apache-2.0", + "dependencies": { + "@cosmjs/crypto": "^0.29.5", + "@cosmjs/encoding": "^0.29.5", + "@cosmjs/json-rpc": "^0.29.5", + "@cosmjs/math": "^0.29.5", + "@cosmjs/socket": "^0.29.5", + "@cosmjs/stream": "^0.29.5", + "@cosmjs/utils": "^0.29.5", + "axios": "^0.21.2", + "readonly-date": "^1.0.0", + "xstream": "^11.14.0" + } + }, + "sdk/node_modules/@cosmjs/tendermint-rpc/node_modules/axios": { + "version": "0.21.4", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.14.0" + } + }, + "sdk/node_modules/@cosmjs/utils": { + "version": "0.29.5", + "license": "Apache-2.0" + }, + "sdk/node_modules/@injectivelabs/sdk-ts": { + "version": "1.0.211", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "@apollo/client": "^3.5.8", + "@cosmjs/amino": "^0.29.0", + "@cosmjs/proto-signing": "^0.29.0", + "@cosmjs/tendermint-rpc": "^0.29.0", + "@ethersproject/bytes": "^5.7.0", + "@improbable-eng/grpc-web": "^0.15.0", + "@improbable-eng/grpc-web-node-http-transport": "^0.15.0", + "@improbable-eng/grpc-web-react-native-transport": "^0.15.0", + "@injectivelabs/chain-api": "1.8.2-no-tse", + "@injectivelabs/exceptions": "^1.0.25", + "@injectivelabs/indexer-api": "1.0.31", + "@injectivelabs/networks": "^1.0.37", + "@injectivelabs/token-metadata": "^1.0.51", + "@injectivelabs/ts-types": "^1.0.14", + "@injectivelabs/utils": "^1.0.31", + "@metamask/eth-sig-util": "^4.0.1", + "@types/google-protobuf": "^3.15.5", + "axios": "^0.27.2", + "bech32": "^2.0.0", + "bip39": "^3.0.4", + "eth-crypto": "^2.3.0", + "ethereumjs-abi": "^0.6.8", + "ethereumjs-util": "^7.1.4", + "ethers": "^5.6.4", + "ethjs-util": "^0.1.6", + "google-protobuf": "^3.21.0", + "graphql": "^16.3.0", + "http-status-codes": "^2.2.0", + "jscrypto": "^1.0.3", + "keccak256": "^1.0.6", + "link-module-alias": "^1.2.0", + "secp256k1": "^4.0.3", + "shx": "^0.3.2", + "snakecase-keys": "^5.4.1" + } + }, + "sdk/node_modules/@noble/hashes": { + "version": "1.1.3", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "license": "MIT" + }, + "sdk/node_modules/aptos": { + "version": "1.8.4", + "license": "Apache-2.0", + "dependencies": { + "@noble/hashes": "1.1.3", + "@scure/bip39": "1.1.0", + "axios": "0.27.2", + "form-data": "4.0.0", + "tweetnacl": "1.0.3" + }, + "engines": { + "node": ">=11.0.0" + } + }, + "sdk/node_modules/axios": { + "version": "0.27.2", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "sdk/node_modules/cosmjs-types": { + "version": "0.5.2", + "license": "Apache-2.0", + "dependencies": { + "long": "^4.0.0", + "protobufjs": "~6.11.2" + } + }, + "sdk/node_modules/form-data": { + "version": "4.0.0", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "sdk/node_modules/protobufjs": { + "version": "6.11.3", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" + } + }, + "wormhole-connect": { + "name": "@wormhole-foundation/wormhole-connect-app", + "version": "0.0.1-beta.0", + "dependencies": { + "@certusone/wormhole-sdk": "^0.9.13", + "@emotion/react": "^11.10.5", + "@emotion/styled": "^11.10.5", + "@mui/icons-material": "^5.11.0", + "@mui/material": "^5.11.4", + "@nomad-xyz/multi-provider": "^1.1.0", + "@reduxjs/toolkit": "^1.9.1", + "@solana/wallet-adapter-wallets": "^0.19.11", + "@types/jest": "^27.5.2", + "@types/node": "^16.18.11", + "@types/node-fetch": "^2.6.3", + "@types/react": "^18.0.26", + "@types/react-dom": "^18.0.10", + "@types/react-redux": "^7.1.25", + "@typescript-eslint/eslint-plugin": "^5.48.1", + "@typescript-eslint/parser": "^5.48.1", + "@xlabs-libs/wallet-aggregator-core": "^0.0.1-alpha.12", + "@xlabs-libs/wallet-aggregator-evm": "^0.0.1-alpha.25", + "@xlabs-libs/wallet-aggregator-react": "^0.0.1-alpha.11", + "@xlabs-libs/wallet-aggregator-solana": "^0.0.1-alpha.10", + "axios": "^1.2.4", + "babel-jest": "^29.5.0", + "bn.js": "^5.2.1", + "browserify-zlib": "^0.2.0", + "buffer": "^6.0.3", + "crypto-browserify": "^3.12.0", + "env-cmd": "^10.1.0", + "eslint": "^8.31.0", + "eslint-config-prettier": "^8.6.0", + "ethers": "^5.7.2", + "file-loader": "^6.2.0", + "https-browserify": "^1.0.0", + "material-ui-popup-state": "^5.0.4", + "os-browserify": "^0.3.0", + "postcss": "^8.4.21", + "prettier": "^2.8.2", + "react-app-rewired": "^2.2.1", + "react-redux": "^8.0.5", + "react-scripts": "5.0.1", + "stream-browserify": "^3.0.0", + "stream-http": "^3.2.0", + "ts-jest": "^29.0.5", + "tss-react": "^4.5.2", + "typescript": "^4.9.4", + "url": "^0.11.0", + "web-vitals": "^2.1.4" + }, + "devDependencies": { + "@babel/preset-env": "^7.20.2", + "jest": "^29.5.0", + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "peerDependencies": { + "react": "^18.2.0", + "react-dom": "^18.2.0" + } + } + }, + "dependencies": { + "@adobe/css-tools": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@adobe/css-tools/-/css-tools-4.2.0.tgz", + "integrity": "sha512-E09FiIft46CmH5Qnjb0wsW54/YQd69LsxeKUOWawmws1XWvyFGURnAChH0mlr7YPFR1ofwvUQfcL0J3lMxXqPA==" + }, + "@alloc/quick-lru": { + "version": "5.2.0" + }, + "@ampproject/remapping": { + "version": "2.2.1", + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@apocentre/alias-sampling": { + "version": "0.5.3" + }, + "@apollo/client": { + "version": "3.7.12", + "requires": { + "@graphql-typed-document-node/core": "^3.1.1", + "@wry/context": "^0.7.0", + "@wry/equality": "^0.5.0", + "@wry/trie": "^0.3.0", + "graphql-tag": "^2.12.6", + "hoist-non-react-statics": "^3.3.2", + "optimism": "^0.16.2", + "prop-types": "^15.7.2", + "response-iterator": "^0.2.6", + "symbol-observable": "^4.0.0", + "ts-invariant": "^0.10.3", + "tslib": "^2.3.0", + "zen-observable-ts": "^1.2.5" + } + }, + "@babel/code-frame": { + "version": "7.21.4", + "requires": { + "@babel/highlight": "^7.18.6" + } + }, + "@babel/compat-data": { + "version": "7.21.4" + }, + "@babel/core": { + "version": "7.21.4", + "requires": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.21.4", + "@babel/generator": "^7.21.4", + "@babel/helper-compilation-targets": "^7.21.4", + "@babel/helper-module-transforms": "^7.21.2", + "@babel/helpers": "^7.21.0", + "@babel/parser": "^7.21.4", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.21.4", + "@babel/types": "^7.21.4", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.0" + } + }, + "@babel/eslint-parser": { + "version": "7.21.3", + "requires": { + "@nicolo-ribaudo/eslint-scope-5-internals": "5.1.1-v1", + "eslint-visitor-keys": "^2.1.0", + "semver": "^6.3.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "2.1.0" + } + } + }, + "@babel/generator": { + "version": "7.21.4", + "requires": { + "@babel/types": "^7.21.4", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + } + }, + "@babel/helper-annotate-as-pure": { + "version": "7.18.6", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.18.9", + "requires": { + "@babel/helper-explode-assignable-expression": "^7.18.6", + "@babel/types": "^7.18.9" + } + }, + "@babel/helper-compilation-targets": { + "version": "7.21.4", + "requires": { + "@babel/compat-data": "^7.21.4", + "@babel/helper-validator-option": "^7.21.0", + "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", + "semver": "^6.3.0" + } + }, + "@babel/helper-create-class-features-plugin": { + "version": "7.21.4", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-member-expression-to-functions": "^7.21.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-replace-supers": "^7.20.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/helper-split-export-declaration": "^7.18.6" + } + }, + "@babel/helper-create-regexp-features-plugin": { + "version": "7.21.4", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "regexpu-core": "^5.3.1" + } + }, + "@babel/helper-define-polyfill-provider": { + "version": "0.3.3", + "requires": { + "@babel/helper-compilation-targets": "^7.17.7", + "@babel/helper-plugin-utils": "^7.16.7", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2", + "semver": "^6.1.2" + } + }, + "@babel/helper-environment-visitor": { + "version": "7.18.9" + }, + "@babel/helper-explode-assignable-expression": { + "version": "7.18.6", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-function-name": { + "version": "7.21.0", + "requires": { + "@babel/template": "^7.20.7", + "@babel/types": "^7.21.0" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.18.6", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-member-expression-to-functions": { + "version": "7.21.0", + "requires": { + "@babel/types": "^7.21.0" + } + }, + "@babel/helper-module-imports": { + "version": "7.21.4", + "requires": { + "@babel/types": "^7.21.4" + } + }, + "@babel/helper-module-transforms": { + "version": "7.21.2", + "requires": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-simple-access": "^7.20.2", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/helper-validator-identifier": "^7.19.1", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.21.2", + "@babel/types": "^7.21.2" + } + }, + "@babel/helper-optimise-call-expression": { + "version": "7.18.6", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.20.2" + }, + "@babel/helper-remap-async-to-generator": { + "version": "7.18.9", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-wrap-function": "^7.18.9", + "@babel/types": "^7.18.9" + } + }, + "@babel/helper-replace-supers": { + "version": "7.20.7", + "requires": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-member-expression-to-functions": "^7.20.7", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.7", + "@babel/types": "^7.20.7" + } + }, + "@babel/helper-simple-access": { + "version": "7.20.2", + "requires": { + "@babel/types": "^7.20.2" + } + }, + "@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.20.0", + "requires": { + "@babel/types": "^7.20.0" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.18.6", + "requires": { + "@babel/types": "^7.18.6" + } + }, + "@babel/helper-string-parser": { + "version": "7.19.4" + }, + "@babel/helper-validator-identifier": { + "version": "7.19.1" + }, + "@babel/helper-validator-option": { + "version": "7.21.0" + }, + "@babel/helper-wrap-function": { + "version": "7.20.5", + "requires": { + "@babel/helper-function-name": "^7.19.0", + "@babel/template": "^7.18.10", + "@babel/traverse": "^7.20.5", + "@babel/types": "^7.20.5" + } + }, + "@babel/helpers": { + "version": "7.21.0", + "requires": { + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.21.0", + "@babel/types": "^7.21.0" + } + }, + "@babel/highlight": { + "version": "7.18.6", + "requires": { + "@babel/helper-validator-identifier": "^7.18.6", + "chalk": "^2.0.0", + "js-tokens": "^4.0.0" + } + }, + "@babel/parser": { + "version": "7.21.4" + }, + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.20.7", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-proposal-optional-chaining": "^7.20.7" + } + }, + "@babel/plugin-proposal-async-generator-functions": { + "version": "7.20.7", + "requires": { + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-remap-async-to-generator": "^7.18.9", + "@babel/plugin-syntax-async-generators": "^7.8.4" + } + }, + "@babel/plugin-proposal-class-properties": { + "version": "7.18.6", + "requires": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-proposal-class-static-block": { + "version": "7.21.0", + "requires": { + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + } + }, + "@babel/plugin-proposal-decorators": { + "version": "7.21.0", + "requires": { + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-replace-supers": "^7.20.7", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/plugin-syntax-decorators": "^7.21.0" + } + }, + "@babel/plugin-proposal-dynamic-import": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + } + }, + "@babel/plugin-proposal-export-namespace-from": { + "version": "7.18.9", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + } + }, + "@babel/plugin-proposal-json-strings": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-json-strings": "^7.8.3" + } + }, + "@babel/plugin-proposal-logical-assignment-operators": { + "version": "7.20.7", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + } + }, + "@babel/plugin-proposal-nullish-coalescing-operator": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + } + }, + "@babel/plugin-proposal-numeric-separator": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + } + }, + "@babel/plugin-proposal-object-rest-spread": { + "version": "7.20.7", + "requires": { + "@babel/compat-data": "^7.20.5", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.20.7" + } + }, + "@babel/plugin-proposal-optional-catch-binding": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + } + }, + "@babel/plugin-proposal-optional-chaining": { + "version": "7.21.0", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + } + }, + "@babel/plugin-proposal-private-methods": { + "version": "7.18.6", + "requires": { + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + } + }, + "@babel/plugin-proposal-unicode-property-regex": { + "version": "7.18.6", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" + } + }, + "@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-decorators": { + "version": "7.21.0", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-flow": { + "version": "7.21.4", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-syntax-import-assertions": { + "version": "7.20.0", + "requires": { + "@babel/helper-plugin-utils": "^7.19.0" + } + }, + "@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-jsx": { + "version": "7.21.4", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-typescript": { + "version": "7.21.4", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-arrow-functions": { + "version": "7.20.7", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-async-to-generator": { + "version": "7.20.7", + "requires": { + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-remap-async-to-generator": "^7.18.9" + } + }, + "@babel/plugin-transform-block-scoped-functions": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-block-scoping": { + "version": "7.21.0", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-classes": { + "version": "7.21.0", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-optimise-call-expression": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-replace-supers": "^7.20.7", + "@babel/helper-split-export-declaration": "^7.18.6", + "globals": "^11.1.0" + } + }, + "@babel/plugin-transform-computed-properties": { + "version": "7.20.7", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/template": "^7.20.7" + } + }, + "@babel/plugin-transform-destructuring": { + "version": "7.21.3", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-dotall-regex": { + "version": "7.18.6", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-duplicate-keys": { + "version": "7.18.9", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-exponentiation-operator": { + "version": "7.18.6", + "requires": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-flow-strip-types": { + "version": "7.21.0", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-flow": "^7.18.6" + } + }, + "@babel/plugin-transform-for-of": { + "version": "7.21.0", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-function-name": { + "version": "7.18.9", + "requires": { + "@babel/helper-compilation-targets": "^7.18.9", + "@babel/helper-function-name": "^7.18.9", + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-literals": { + "version": "7.18.9", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-member-expression-literals": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-modules-amd": { + "version": "7.20.11", + "requires": { + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-modules-commonjs": { + "version": "7.21.2", + "requires": { + "@babel/helper-module-transforms": "^7.21.2", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-simple-access": "^7.20.2" + } + }, + "@babel/plugin-transform-modules-systemjs": { + "version": "7.20.11", + "requires": { + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-validator-identifier": "^7.19.1" + } + }, + "@babel/plugin-transform-modules-umd": { + "version": "7.18.6", + "requires": { + "@babel/helper-module-transforms": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.20.5", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.20.5", + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-new-target": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-object-super": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-replace-supers": "^7.18.6" + } + }, + "@babel/plugin-transform-parameters": { + "version": "7.21.3", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-property-literals": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-react-constant-elements": { + "version": "7.21.3", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2" + } + }, + "@babel/plugin-transform-react-display-name": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-react-jsx": { + "version": "7.21.0", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-jsx": "^7.18.6", + "@babel/types": "^7.21.0" + } + }, + "@babel/plugin-transform-react-jsx-development": { + "version": "7.18.6", + "requires": { + "@babel/plugin-transform-react-jsx": "^7.18.6" + } + }, + "@babel/plugin-transform-react-pure-annotations": { + "version": "7.18.6", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-regenerator": { + "version": "7.20.5", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2", + "regenerator-transform": "^0.15.1" + } + }, + "@babel/plugin-transform-reserved-words": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-runtime": { + "version": "7.21.4", + "requires": { + "@babel/helper-module-imports": "^7.21.4", + "@babel/helper-plugin-utils": "^7.20.2", + "babel-plugin-polyfill-corejs2": "^0.3.3", + "babel-plugin-polyfill-corejs3": "^0.6.0", + "babel-plugin-polyfill-regenerator": "^0.4.1", + "semver": "^6.3.0" + } + }, + "@babel/plugin-transform-shorthand-properties": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-spread": { + "version": "7.20.7", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0" + } + }, + "@babel/plugin-transform-sticky-regex": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-template-literals": { + "version": "7.18.9", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-typeof-symbol": { + "version": "7.18.9", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-typescript": { + "version": "7.21.3", + "requires": { + "@babel/helper-annotate-as-pure": "^7.18.6", + "@babel/helper-create-class-features-plugin": "^7.21.0", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/plugin-syntax-typescript": "^7.20.0" + } + }, + "@babel/plugin-transform-unicode-escapes": { + "version": "7.18.10", + "requires": { + "@babel/helper-plugin-utils": "^7.18.9" + } + }, + "@babel/plugin-transform-unicode-regex": { + "version": "7.18.6", + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/preset-env": { + "version": "7.21.4", + "requires": { + "@babel/compat-data": "^7.21.4", + "@babel/helper-compilation-targets": "^7.21.4", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.20.7", + "@babel/plugin-proposal-async-generator-functions": "^7.20.7", + "@babel/plugin-proposal-class-properties": "^7.18.6", + "@babel/plugin-proposal-class-static-block": "^7.21.0", + "@babel/plugin-proposal-dynamic-import": "^7.18.6", + "@babel/plugin-proposal-export-namespace-from": "^7.18.9", + "@babel/plugin-proposal-json-strings": "^7.18.6", + "@babel/plugin-proposal-logical-assignment-operators": "^7.20.7", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", + "@babel/plugin-proposal-numeric-separator": "^7.18.6", + "@babel/plugin-proposal-object-rest-spread": "^7.20.7", + "@babel/plugin-proposal-optional-catch-binding": "^7.18.6", + "@babel/plugin-proposal-optional-chaining": "^7.21.0", + "@babel/plugin-proposal-private-methods": "^7.18.6", + "@babel/plugin-proposal-private-property-in-object": "^7.21.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.18.6", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.20.0", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-transform-arrow-functions": "^7.20.7", + "@babel/plugin-transform-async-to-generator": "^7.20.7", + "@babel/plugin-transform-block-scoped-functions": "^7.18.6", + "@babel/plugin-transform-block-scoping": "^7.21.0", + "@babel/plugin-transform-classes": "^7.21.0", + "@babel/plugin-transform-computed-properties": "^7.20.7", + "@babel/plugin-transform-destructuring": "^7.21.3", + "@babel/plugin-transform-dotall-regex": "^7.18.6", + "@babel/plugin-transform-duplicate-keys": "^7.18.9", + "@babel/plugin-transform-exponentiation-operator": "^7.18.6", + "@babel/plugin-transform-for-of": "^7.21.0", + "@babel/plugin-transform-function-name": "^7.18.9", + "@babel/plugin-transform-literals": "^7.18.9", + "@babel/plugin-transform-member-expression-literals": "^7.18.6", + "@babel/plugin-transform-modules-amd": "^7.20.11", + "@babel/plugin-transform-modules-commonjs": "^7.21.2", + "@babel/plugin-transform-modules-systemjs": "^7.20.11", + "@babel/plugin-transform-modules-umd": "^7.18.6", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.20.5", + "@babel/plugin-transform-new-target": "^7.18.6", + "@babel/plugin-transform-object-super": "^7.18.6", + "@babel/plugin-transform-parameters": "^7.21.3", + "@babel/plugin-transform-property-literals": "^7.18.6", + "@babel/plugin-transform-regenerator": "^7.20.5", + "@babel/plugin-transform-reserved-words": "^7.18.6", + "@babel/plugin-transform-shorthand-properties": "^7.18.6", + "@babel/plugin-transform-spread": "^7.20.7", + "@babel/plugin-transform-sticky-regex": "^7.18.6", + "@babel/plugin-transform-template-literals": "^7.18.9", + "@babel/plugin-transform-typeof-symbol": "^7.18.9", + "@babel/plugin-transform-unicode-escapes": "^7.18.10", + "@babel/plugin-transform-unicode-regex": "^7.18.6", + "@babel/preset-modules": "^0.1.5", + "@babel/types": "^7.21.4", + "babel-plugin-polyfill-corejs2": "^0.3.3", + "babel-plugin-polyfill-corejs3": "^0.6.0", + "babel-plugin-polyfill-regenerator": "^0.4.1", + "core-js-compat": "^3.25.1", + "semver": "^6.3.0" + } + }, + "@babel/preset-modules": { + "version": "0.1.5", + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", + "@babel/plugin-transform-dotall-regex": "^7.4.4", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + } + }, + "@babel/preset-react": { + "version": "7.18.6", + "requires": { + "@babel/helper-plugin-utils": "^7.18.6", + "@babel/helper-validator-option": "^7.18.6", + "@babel/plugin-transform-react-display-name": "^7.18.6", + "@babel/plugin-transform-react-jsx": "^7.18.6", + "@babel/plugin-transform-react-jsx-development": "^7.18.6", + "@babel/plugin-transform-react-pure-annotations": "^7.18.6" + } + }, + "@babel/preset-typescript": { + "version": "7.21.4", + "requires": { + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-validator-option": "^7.21.0", + "@babel/plugin-syntax-jsx": "^7.21.4", + "@babel/plugin-transform-modules-commonjs": "^7.21.2", + "@babel/plugin-transform-typescript": "^7.21.3" + } + }, + "@babel/regjsgen": { + "version": "0.8.0" + }, + "@babel/runtime": { + "version": "7.21.0", + "requires": { + "regenerator-runtime": "^0.13.11" + } + }, + "@babel/template": { + "version": "7.20.7", + "requires": { + "@babel/code-frame": "^7.18.6", + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7" + } + }, + "@babel/traverse": { + "version": "7.21.4", + "requires": { + "@babel/code-frame": "^7.21.4", + "@babel/generator": "^7.21.4", + "@babel/helper-environment-visitor": "^7.18.9", + "@babel/helper-function-name": "^7.21.0", + "@babel/helper-hoist-variables": "^7.18.6", + "@babel/helper-split-export-declaration": "^7.18.6", + "@babel/parser": "^7.21.4", + "@babel/types": "^7.21.4", + "debug": "^4.1.0", + "globals": "^11.1.0" + } + }, + "@babel/types": { + "version": "7.21.4", + "requires": { + "@babel/helper-string-parser": "^7.19.4", + "@babel/helper-validator-identifier": "^7.19.1", + "to-fast-properties": "^2.0.0" + } + }, + "@bcoe/v8-coverage": { + "version": "0.2.3" + }, + "@blocto/sdk": { + "version": "0.2.22", + "requires": { + "bs58": "^4.0.1", + "buffer": "^6.0.3", + "eip1193-provider": "^1.0.1", + "js-sha3": "^0.8.0" + } + }, + "@censo-custody/solana-wallet-adapter": { + "version": "0.1.0", + "requires": { + "@solana/web3.js": "^1.44.3", + "bs58": "^4.0.1", + "eventemitter3": "^4.0.7", + "uuid": "^8.3.2" + } + }, + "@certusone/wormhole-sdk": { + "version": "0.9.14", + "requires": { + "@certusone/wormhole-sdk-proto-web": "0.0.6", + "@certusone/wormhole-sdk-wasm": "^0.0.1", + "@coral-xyz/borsh": "0.2.6", + "@injectivelabs/networks": "1.10.7", + "@injectivelabs/sdk-ts": "1.10.47", + "@injectivelabs/utils": "1.10.5", + "@project-serum/anchor": "^0.25.0", + "@solana/spl-token": "^0.3.5", + "@solana/web3.js": "^1.66.2", + "@terra-money/terra.js": "^3.1.3", + "@xpla/xpla.js": "^0.2.1", + "algosdk": "^1.15.0", + "aptos": "1.5.0", + "axios": "^0.24.0", + "bech32": "^2.0.0", + "binary-parser": "^2.2.1", + "bs58": "^4.0.1", + "elliptic": "^6.5.4", + "js-base64": "^3.6.1", + "near-api-js": "^1.0.0" + }, + "dependencies": { + "axios": { + "version": "0.24.0", + "requires": { + "follow-redirects": "^1.14.4" + } + } + } + }, + "@certusone/wormhole-sdk-proto-web": { + "version": "0.0.6", + "requires": { + "@improbable-eng/grpc-web": "^0.15.0", + "protobufjs": "^7.0.0", + "rxjs": "^7.5.6" + } + }, + "@certusone/wormhole-sdk-wasm": { + "version": "0.0.1", + "requires": { + "@types/long": "^4.0.2", + "@types/node": "^18.0.3" + }, + "dependencies": { + "@types/node": { + "version": "18.16.1" + } + } + }, + "@chainsafe/as-sha256": { + "version": "0.4.1" + }, + "@chainsafe/persistent-merkle-tree": { + "version": "0.6.1", + "requires": { + "@chainsafe/as-sha256": "^0.4.1", + "@noble/hashes": "^1.3.0" + } + }, + "@chainsafe/ssz": { + "version": "0.11.1", + "requires": { + "@chainsafe/as-sha256": "^0.4.1", + "@chainsafe/persistent-merkle-tree": "^0.6.1" + } + }, + "@classic-terra/terra.proto": { + "version": "1.1.0", + "requires": { + "@improbable-eng/grpc-web": "^0.14.1", + "google-protobuf": "^3.17.3", + "long": "^4.0.0", + "protobufjs": "~6.11.2" + }, + "dependencies": { + "@improbable-eng/grpc-web": { + "version": "0.14.1", + "requires": { + "browser-headers": "^0.4.1" + } + }, + "protobufjs": { + "version": "6.11.3", + "requires": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + } + } + } + }, + "@coinbase/wallet-sdk": { + "version": "3.6.6", + "requires": { + "@metamask/safe-event-emitter": "2.0.0", + "@solana/web3.js": "^1.70.1", + "bind-decorator": "^1.0.11", + "bn.js": "^5.1.1", + "buffer": "^6.0.3", + "clsx": "^1.1.0", + "eth-block-tracker": "6.1.0", + "eth-json-rpc-filters": "5.1.0", + "eth-rpc-errors": "4.0.2", + "json-rpc-engine": "6.1.0", + "keccak": "^3.0.1", + "preact": "^10.5.9", + "qs": "^6.10.3", + "rxjs": "^6.6.3", + "sha.js": "^2.4.11", + "stream-browserify": "^3.0.0", + "util": "^0.12.4" + }, + "dependencies": { + "eth-rpc-errors": { + "version": "4.0.2", + "requires": { + "fast-safe-stringify": "^2.0.6" + } + }, + "preact": { + "version": "10.13.2" + }, + "rxjs": { + "version": "6.6.7", + "requires": { + "tslib": "^1.9.0" + } + }, + "tslib": { + "version": "1.14.1" + } + } + }, + "@confio/ics23": { + "version": "0.6.8", + "requires": { + "@noble/hashes": "^1.0.0", + "protobufjs": "^6.8.8" + }, + "dependencies": { + "protobufjs": { + "version": "6.11.3", + "requires": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + } + } + } + }, + "@coral-xyz/borsh": { + "version": "0.2.6", + "requires": { + "bn.js": "^5.1.2", + "buffer-layout": "^1.2.0" + } + }, + "@cosmjs/amino": { + "version": "0.30.1", + "requires": { + "@cosmjs/crypto": "^0.30.1", + "@cosmjs/encoding": "^0.30.1", + "@cosmjs/math": "^0.30.1", + "@cosmjs/utils": "^0.30.1" + } + }, + "@cosmjs/crypto": { + "version": "0.30.1", + "requires": { + "@cosmjs/encoding": "^0.30.1", + "@cosmjs/math": "^0.30.1", + "@cosmjs/utils": "^0.30.1", + "@noble/hashes": "^1", + "bn.js": "^5.2.0", + "elliptic": "^6.5.4", + "libsodium-wrappers": "^0.7.6" + } + }, + "@cosmjs/encoding": { + "version": "0.30.1", + "requires": { + "base64-js": "^1.3.0", + "bech32": "^1.1.4", + "readonly-date": "^1.0.0" + }, + "dependencies": { + "bech32": { + "version": "1.1.4" + } + } + }, + "@cosmjs/json-rpc": { + "version": "0.30.1", + "requires": { + "@cosmjs/stream": "^0.30.1", + "xstream": "^11.14.0" + } + }, + "@cosmjs/math": { + "version": "0.30.1", + "requires": { + "bn.js": "^5.2.0" + } + }, + "@cosmjs/proto-signing": { + "version": "0.30.1", + "requires": { + "@cosmjs/amino": "^0.30.1", + "@cosmjs/crypto": "^0.30.1", + "@cosmjs/encoding": "^0.30.1", + "@cosmjs/math": "^0.30.1", + "@cosmjs/utils": "^0.30.1", + "cosmjs-types": "^0.7.1", + "long": "^4.0.0" + } + }, + "@cosmjs/socket": { + "version": "0.30.1", + "requires": { + "@cosmjs/stream": "^0.30.1", + "isomorphic-ws": "^4.0.1", + "ws": "^7", + "xstream": "^11.14.0" + } + }, + "@cosmjs/stargate": { + "version": "0.30.1", + "requires": { + "@confio/ics23": "^0.6.8", + "@cosmjs/amino": "^0.30.1", + "@cosmjs/encoding": "^0.30.1", + "@cosmjs/math": "^0.30.1", + "@cosmjs/proto-signing": "^0.30.1", + "@cosmjs/stream": "^0.30.1", + "@cosmjs/tendermint-rpc": "^0.30.1", + "@cosmjs/utils": "^0.30.1", + "cosmjs-types": "^0.7.1", + "long": "^4.0.0", + "protobufjs": "~6.11.3", + "xstream": "^11.14.0" + }, + "dependencies": { + "protobufjs": { + "version": "6.11.3", + "requires": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + } + } + } + }, + "@cosmjs/stream": { + "version": "0.30.1", + "requires": { + "xstream": "^11.14.0" + } + }, + "@cosmjs/tendermint-rpc": { + "version": "0.30.1", + "requires": { + "@cosmjs/crypto": "^0.30.1", + "@cosmjs/encoding": "^0.30.1", + "@cosmjs/json-rpc": "^0.30.1", + "@cosmjs/math": "^0.30.1", + "@cosmjs/socket": "^0.30.1", + "@cosmjs/stream": "^0.30.1", + "@cosmjs/utils": "^0.30.1", + "axios": "^0.21.2", + "readonly-date": "^1.0.0", + "xstream": "^11.14.0" + }, + "dependencies": { + "axios": { + "version": "0.21.4", + "requires": { + "follow-redirects": "^1.14.0" + } + } + } + }, + "@cosmjs/utils": { + "version": "0.30.1" + }, + "@csstools/normalize.css": { + "version": "12.0.0" + }, + "@csstools/postcss-cascade-layers": { + "version": "1.1.1", + "requires": { + "@csstools/selector-specificity": "^2.0.2", + "postcss-selector-parser": "^6.0.10" + } + }, + "@csstools/postcss-color-function": { + "version": "1.1.1", + "requires": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-font-format-keywords": { + "version": "1.0.1", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-hwb-function": { + "version": "1.0.2", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-ic-unit": { + "version": "1.0.1", + "requires": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-is-pseudo-class": { + "version": "2.0.7", + "requires": { + "@csstools/selector-specificity": "^2.0.0", + "postcss-selector-parser": "^6.0.10" + } + }, + "@csstools/postcss-nested-calc": { + "version": "1.0.0", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-normalize-display-values": { + "version": "1.0.1", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-oklab-function": { + "version": "1.1.1", + "requires": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-progressive-custom-properties": { + "version": "1.3.0", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-stepped-value-functions": { + "version": "1.0.1", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-text-decoration-shorthand": { + "version": "1.0.0", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-trigonometric-functions": { + "version": "1.0.2", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "@csstools/postcss-unset-value": { + "version": "1.0.2", + "requires": {} + }, + "@csstools/selector-specificity": { + "version": "2.2.0", + "requires": {} + }, + "@emotion/babel-plugin": { + "version": "11.10.6", + "requires": { + "@babel/helper-module-imports": "^7.16.7", + "@babel/runtime": "^7.18.3", + "@emotion/hash": "^0.9.0", + "@emotion/memoize": "^0.8.0", + "@emotion/serialize": "^1.1.1", + "babel-plugin-macros": "^3.1.0", + "convert-source-map": "^1.5.0", + "escape-string-regexp": "^4.0.0", + "find-root": "^1.1.0", + "source-map": "^0.5.7", + "stylis": "4.1.3" + } + }, + "@emotion/cache": { + "version": "11.10.7", + "requires": { + "@emotion/memoize": "^0.8.0", + "@emotion/sheet": "^1.2.1", + "@emotion/utils": "^1.2.0", + "@emotion/weak-memoize": "^0.3.0", + "stylis": "4.1.3" + } + }, + "@emotion/hash": { + "version": "0.9.0" + }, + "@emotion/is-prop-valid": { + "version": "1.2.0", + "requires": { + "@emotion/memoize": "^0.8.0" + } + }, + "@emotion/memoize": { + "version": "0.8.0" + }, + "@emotion/react": { + "version": "11.10.6", + "requires": { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.10.6", + "@emotion/cache": "^11.10.5", + "@emotion/serialize": "^1.1.1", + "@emotion/use-insertion-effect-with-fallbacks": "^1.0.0", + "@emotion/utils": "^1.2.0", + "@emotion/weak-memoize": "^0.3.0", + "hoist-non-react-statics": "^3.3.1" + } + }, + "@emotion/serialize": { + "version": "1.1.1", + "requires": { + "@emotion/hash": "^0.9.0", + "@emotion/memoize": "^0.8.0", + "@emotion/unitless": "^0.8.0", + "@emotion/utils": "^1.2.0", + "csstype": "^3.0.2" + } + }, + "@emotion/sheet": { + "version": "1.2.1" + }, + "@emotion/styled": { + "version": "11.10.6", + "requires": { + "@babel/runtime": "^7.18.3", + "@emotion/babel-plugin": "^11.10.6", + "@emotion/is-prop-valid": "^1.2.0", + "@emotion/serialize": "^1.1.1", + "@emotion/use-insertion-effect-with-fallbacks": "^1.0.0", + "@emotion/utils": "^1.2.0" + } + }, + "@emotion/unitless": { + "version": "0.8.0" + }, + "@emotion/use-insertion-effect-with-fallbacks": { + "version": "1.0.0", + "requires": {} + }, + "@emotion/utils": { + "version": "1.2.0" + }, + "@emotion/weak-memoize": { + "version": "0.3.0" + }, + "@eslint-community/eslint-utils": { + "version": "4.4.0", + "requires": { + "eslint-visitor-keys": "^3.3.0" + } + }, + "@eslint-community/regexpp": { + "version": "4.5.0" + }, + "@eslint/eslintrc": { + "version": "2.0.2", + "requires": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.5.1", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "dependencies": { + "argparse": { + "version": "2.0.1" + }, + "globals": { + "version": "13.20.0", + "requires": { + "type-fest": "^0.20.2" + } + }, + "js-yaml": { + "version": "4.1.0", + "requires": { + "argparse": "^2.0.1" + } + }, + "type-fest": { + "version": "0.20.2" + } + } + }, + "@eslint/js": { + "version": "8.39.0" + }, + "@ethereumjs/common": { + "version": "2.6.5", + "requires": { + "crc-32": "^1.2.0", + "ethereumjs-util": "^7.1.5" + } + }, + "@ethereumjs/rlp": { + "version": "4.0.1" + }, + "@ethereumjs/tx": { + "version": "3.5.2", + "requires": { + "@ethereumjs/common": "^2.6.4", + "ethereumjs-util": "^7.1.5" + } + }, + "@ethereumjs/util": { + "version": "8.0.6", + "requires": { + "@chainsafe/ssz": "^0.11.1", + "@ethereumjs/rlp": "^4.0.1", + "ethereum-cryptography": "^2.0.0", + "micro-ftch": "^0.3.1" + } + }, + "@ethersproject/abi": { + "version": "5.7.0", + "requires": { + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/hash": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/strings": "^5.7.0" + } + }, + "@ethersproject/abstract-provider": { + "version": "5.7.0", + "requires": { + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/networks": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/web": "^5.7.0" + } + }, + "@ethersproject/abstract-signer": { + "version": "5.7.0", + "requires": { + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0" + } + }, + "@ethersproject/address": { + "version": "5.7.0", + "requires": { + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/rlp": "^5.7.0" + } + }, + "@ethersproject/base64": { + "version": "5.7.0", + "requires": { + "@ethersproject/bytes": "^5.7.0" + } + }, + "@ethersproject/basex": { + "version": "5.7.0", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/properties": "^5.7.0" + } + }, + "@ethersproject/bignumber": { + "version": "5.7.0", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "bn.js": "^5.2.1" + } + }, + "@ethersproject/bytes": { + "version": "5.7.0", + "requires": { + "@ethersproject/logger": "^5.7.0" + } + }, + "@ethersproject/constants": { + "version": "5.7.0", + "requires": { + "@ethersproject/bignumber": "^5.7.0" + } + }, + "@ethersproject/contracts": { + "version": "5.7.0", + "requires": { + "@ethersproject/abi": "^5.7.0", + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/transactions": "^5.7.0" + } + }, + "@ethersproject/hash": { + "version": "5.7.0", + "requires": { + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/base64": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/strings": "^5.7.0" + } + }, + "@ethersproject/hdnode": { + "version": "5.7.0", + "requires": { + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/basex": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/pbkdf2": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/sha2": "^5.7.0", + "@ethersproject/signing-key": "^5.7.0", + "@ethersproject/strings": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/wordlists": "^5.7.0" + } + }, + "@ethersproject/json-wallets": { + "version": "5.7.0", + "requires": { + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/hdnode": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/pbkdf2": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/random": "^5.7.0", + "@ethersproject/strings": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "aes-js": "3.0.0", + "scrypt-js": "3.0.1" + }, + "dependencies": { + "aes-js": { + "version": "3.0.0" + } + } + }, + "@ethersproject/keccak256": { + "version": "5.7.0", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "js-sha3": "0.8.0" + } + }, + "@ethersproject/logger": { + "version": "5.7.0" + }, + "@ethersproject/networks": { + "version": "5.7.1", + "requires": { + "@ethersproject/logger": "^5.7.0" + } + }, + "@ethersproject/pbkdf2": { + "version": "5.7.0", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/sha2": "^5.7.0" + } + }, + "@ethersproject/properties": { + "version": "5.7.0", + "requires": { + "@ethersproject/logger": "^5.7.0" + } + }, + "@ethersproject/providers": { + "version": "5.7.2", + "requires": { + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/base64": "^5.7.0", + "@ethersproject/basex": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/hash": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/networks": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/random": "^5.7.0", + "@ethersproject/rlp": "^5.7.0", + "@ethersproject/sha2": "^5.7.0", + "@ethersproject/strings": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/web": "^5.7.0", + "bech32": "1.1.4", + "ws": "7.4.6" + }, + "dependencies": { + "bech32": { + "version": "1.1.4" + }, + "ws": { + "version": "7.4.6", + "requires": {} + } + } + }, + "@ethersproject/random": { + "version": "5.7.0", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0" + } + }, + "@ethersproject/rlp": { + "version": "5.7.0", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0" + } + }, + "@ethersproject/sha2": { + "version": "5.7.0", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "hash.js": "1.1.7" + } + }, + "@ethersproject/signing-key": { + "version": "5.7.0", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "bn.js": "^5.2.1", + "elliptic": "6.5.4", + "hash.js": "1.1.7" + } + }, + "@ethersproject/solidity": { + "version": "5.7.0", + "requires": { + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/sha2": "^5.7.0", + "@ethersproject/strings": "^5.7.0" + } + }, + "@ethersproject/strings": { + "version": "5.7.0", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/logger": "^5.7.0" + } + }, + "@ethersproject/transactions": { + "version": "5.7.0", + "requires": { + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/rlp": "^5.7.0", + "@ethersproject/signing-key": "^5.7.0" + } + }, + "@ethersproject/units": { + "version": "5.7.0", + "requires": { + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/constants": "^5.7.0", + "@ethersproject/logger": "^5.7.0" + } + }, + "@ethersproject/wallet": { + "version": "5.7.0", + "requires": { + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/abstract-signer": "^5.7.0", + "@ethersproject/address": "^5.7.0", + "@ethersproject/bignumber": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/hash": "^5.7.0", + "@ethersproject/hdnode": "^5.7.0", + "@ethersproject/json-wallets": "^5.7.0", + "@ethersproject/keccak256": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/random": "^5.7.0", + "@ethersproject/signing-key": "^5.7.0", + "@ethersproject/transactions": "^5.7.0", + "@ethersproject/wordlists": "^5.7.0" + } + }, + "@ethersproject/web": { + "version": "5.7.1", + "requires": { + "@ethersproject/base64": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/strings": "^5.7.0" + } + }, + "@ethersproject/wordlists": { + "version": "5.7.0", + "requires": { + "@ethersproject/bytes": "^5.7.0", + "@ethersproject/hash": "^5.7.0", + "@ethersproject/logger": "^5.7.0", + "@ethersproject/properties": "^5.7.0", + "@ethersproject/strings": "^5.7.0" + } + }, + "@fractalwagmi/popup-connection": { + "version": "1.0.21", + "requires": {} + }, + "@fractalwagmi/solana-wallet-adapter": { + "version": "0.1.1", + "requires": { + "@fractalwagmi/popup-connection": "^1.0.18", + "@solana/wallet-adapter-base": "^0.9.17", + "bs58": "^5.0.0" + }, + "dependencies": { + "base-x": { + "version": "4.0.0" + }, + "bs58": { + "version": "5.0.0", + "requires": { + "base-x": "^4.0.0" + } + } + } + }, + "@graphql-typed-document-node/core": { + "version": "3.2.0", + "requires": {} + }, + "@humanwhocodes/config-array": { + "version": "0.11.8", + "requires": { + "@humanwhocodes/object-schema": "^1.2.1", + "debug": "^4.1.1", + "minimatch": "^3.0.5" + } + }, + "@humanwhocodes/module-importer": { + "version": "1.0.1" + }, + "@humanwhocodes/object-schema": { + "version": "1.2.1" + }, + "@improbable-eng/grpc-web": { + "version": "0.15.0", + "requires": { + "browser-headers": "^0.4.1" + } + }, + "@injectivelabs/core-proto-ts": { + "version": "0.0.12", + "requires": { + "@injectivelabs/grpc-web": "^0.0.1", + "google-protobuf": "^3.14.0", + "protobufjs": "^7.0.0", + "rxjs": "^7.4.0" + } + }, + "@injectivelabs/exceptions": { + "version": "1.10.6", + "requires": { + "@injectivelabs/grpc-web": "^0.0.1", + "@injectivelabs/ts-types": "^1.10.5", + "http-status-codes": "^2.2.0", + "link-module-alias": "^1.2.0", + "shx": "^0.3.2" + } + }, + "@injectivelabs/grpc-web": { + "version": "0.0.1", + "requires": { + "browser-headers": "^0.4.1" + } + }, + "@injectivelabs/grpc-web-node-http-transport": { + "version": "0.0.2", + "requires": {} + }, + "@injectivelabs/grpc-web-react-native-transport": { + "version": "0.0.2", + "requires": {} + }, + "@injectivelabs/indexer-proto-ts": { + "version": "1.10.8-rc.4", + "requires": { + "@injectivelabs/grpc-web": "^0.0.1", + "google-protobuf": "^3.14.0", + "protobufjs": "^7.0.0", + "rxjs": "^7.4.0" + } + }, + "@injectivelabs/mito-proto-ts": { + "version": "1.0.4", + "requires": { + "@injectivelabs/grpc-web": "^0.0.1", + "google-protobuf": "^3.14.0", + "protobufjs": "^7.0.0", + "rxjs": "^7.4.0" + } + }, + "@injectivelabs/networks": { + "version": "1.10.7", + "requires": { + "@injectivelabs/exceptions": "^1.10.5", + "@injectivelabs/ts-types": "^1.10.4", + "@injectivelabs/utils": "^1.10.5", + "link-module-alias": "^1.2.0", + "shx": "^0.3.2" + } + }, + "@injectivelabs/sdk-ts": { + "version": "1.10.47", + "requires": { + "@apollo/client": "^3.5.8", + "@cosmjs/amino": "^0.30.1", + "@cosmjs/proto-signing": "^0.30.1", + "@cosmjs/stargate": "^0.30.1", + "@ethersproject/bytes": "^5.7.0", + "@injectivelabs/core-proto-ts": "^0.0.12", + "@injectivelabs/exceptions": "^1.10.5", + "@injectivelabs/grpc-web": "^0.0.1", + "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", + "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", + "@injectivelabs/indexer-proto-ts": "1.10.8-rc.4", + "@injectivelabs/mito-proto-ts": "1.0.4", + "@injectivelabs/networks": "^1.10.7", + "@injectivelabs/test-utils": "^1.10.2", + "@injectivelabs/token-metadata": "^1.10.25", + "@injectivelabs/ts-types": "^1.10.4", + "@injectivelabs/utils": "^1.10.5", + "@metamask/eth-sig-util": "^4.0.0", + "axios": "^0.27.2", + "bech32": "^2.0.0", + "bip39": "^3.0.4", + "cosmjs-types": "^0.7.1", + "eth-crypto": "^2.6.0", + "ethereumjs-util": "^7.1.4", + "ethers": "^5.7.2", + "google-protobuf": "^3.21.0", + "graphql": "^16.3.0", + "http-status-codes": "^2.2.0", + "js-sha3": "^0.8.0", + "jscrypto": "^1.0.3", + "keccak256": "^1.0.6", + "link-module-alias": "^1.2.0", + "rxjs": "^7.8.0", + "secp256k1": "^4.0.3", + "shx": "^0.3.2", + "snakecase-keys": "^5.4.1" + }, + "dependencies": { + "axios": { + "version": "0.27.2", + "requires": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + } + } + }, + "@injectivelabs/test-utils": { + "version": "1.10.3", + "requires": { + "axios": "^0.21.1", + "bignumber.js": "^9.0.1", + "link-module-alias": "^1.2.0", + "shx": "^0.3.2", + "snakecase-keys": "^5.1.2", + "store2": "^2.12.0" + }, + "dependencies": { + "axios": { + "version": "0.21.4", + "requires": { + "follow-redirects": "^1.14.0" + } + } + } + }, + "@injectivelabs/token-metadata": { + "version": "1.10.35", + "requires": { + "@injectivelabs/exceptions": "^1.10.6", + "@injectivelabs/networks": "^1.10.8", + "@injectivelabs/ts-types": "^1.10.5", + "@injectivelabs/utils": "^1.10.6", + "@types/lodash.values": "^4.3.6", + "copyfiles": "^2.4.1", + "jsonschema": "^1.4.0", + "link-module-alias": "^1.2.0", + "lodash": "^4.17.21", + "lodash.values": "^4.3.0", + "shx": "^0.3.2" + }, + "dependencies": { + "@injectivelabs/networks": { + "version": "1.10.8", + "requires": { + "@injectivelabs/exceptions": "^1.10.6", + "@injectivelabs/ts-types": "^1.10.5", + "@injectivelabs/utils": "^1.10.6", + "link-module-alias": "^1.2.0", + "shx": "^0.3.2" + } + }, + "@injectivelabs/utils": { + "version": "1.10.6", + "requires": { + "@injectivelabs/exceptions": "^1.10.6", + "@injectivelabs/ts-types": "^1.10.5", + "axios": "^0.21.1", + "bignumber.js": "^9.0.1", + "http-status-codes": "^2.2.0", + "link-module-alias": "^1.2.0", + "shx": "^0.3.2", + "snakecase-keys": "^5.1.2", + "store2": "^2.12.0" + } + }, + "axios": { + "version": "0.21.4", + "requires": { + "follow-redirects": "^1.14.0" + } + } + } + }, + "@injectivelabs/ts-types": { + "version": "1.10.5", + "requires": { + "link-module-alias": "^1.2.0", + "shx": "^0.3.2" + } + }, + "@injectivelabs/utils": { + "version": "1.10.5", + "requires": { + "@injectivelabs/exceptions": "^1.10.5", + "@injectivelabs/ts-types": "^1.10.4", + "axios": "^0.21.1", + "bignumber.js": "^9.0.1", + "http-status-codes": "^2.2.0", + "link-module-alias": "^1.2.0", + "shx": "^0.3.2", + "snakecase-keys": "^5.1.2", + "store2": "^2.12.0" + }, + "dependencies": { + "axios": { + "version": "0.21.4", + "requires": { + "follow-redirects": "^1.14.0" + } + } + } + }, + "@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "requires": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + } + }, + "@istanbuljs/schema": { + "version": "0.1.3" + }, + "@jest/console": { + "version": "29.5.0", + "requires": { + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.5.0", + "jest-util": "^29.5.0", + "slash": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/core": { + "version": "29.5.0", + "requires": { + "@jest/console": "^29.5.0", + "@jest/reporters": "^29.5.0", + "@jest/test-result": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.5.0", + "jest-config": "^29.5.0", + "jest-haste-map": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.5.0", + "jest-resolve-dependencies": "^29.5.0", + "jest-runner": "^29.5.0", + "jest-runtime": "^29.5.0", + "jest-snapshot": "^29.5.0", + "jest-util": "^29.5.0", + "jest-validate": "^29.5.0", + "jest-watcher": "^29.5.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.5.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "pretty-format": { + "version": "29.5.0", + "requires": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0" + } + } + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/environment": { + "version": "29.5.0", + "requires": { + "@jest/fake-timers": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "jest-mock": "^29.5.0" + } + }, + "@jest/expect": { + "version": "29.5.0", + "requires": { + "expect": "^29.5.0", + "jest-snapshot": "^29.5.0" + } + }, + "@jest/expect-utils": { + "version": "29.5.0", + "requires": { + "jest-get-type": "^29.4.3" + } + }, + "@jest/fake-timers": { + "version": "29.5.0", + "requires": { + "@jest/types": "^29.5.0", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.5.0", + "jest-mock": "^29.5.0", + "jest-util": "^29.5.0" + } + }, + "@jest/globals": { + "version": "29.5.0", + "requires": { + "@jest/environment": "^29.5.0", + "@jest/expect": "^29.5.0", + "@jest/types": "^29.5.0", + "jest-mock": "^29.5.0" + } + }, + "@jest/reporters": { + "version": "29.5.0", + "requires": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.5.0", + "@jest/test-result": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", + "@jridgewell/trace-mapping": "^0.3.15", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.5.0", + "jest-util": "^29.5.0", + "jest-worker": "^29.5.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/schemas": { + "version": "29.4.3", + "requires": { + "@sinclair/typebox": "^0.25.16" + } + }, + "@jest/source-map": { + "version": "29.4.3", + "requires": { + "@jridgewell/trace-mapping": "^0.3.15", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + } + }, + "@jest/test-result": { + "version": "29.5.0", + "requires": { + "@jest/console": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + } + }, + "@jest/test-sequencer": { + "version": "29.5.0", + "requires": { + "@jest/test-result": "^29.5.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.5.0", + "slash": "^3.0.0" + } + }, + "@jest/transform": { + "version": "29.5.0", + "requires": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.5.0", + "@jridgewell/trace-mapping": "^0.3.15", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.5.0", + "jest-regex-util": "^29.4.3", + "jest-util": "^29.5.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "convert-source-map": { + "version": "2.0.0" + }, + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/types": { + "version": "29.5.0", + "requires": { + "@jest/schemas": "^29.4.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jnwng/walletconnect-solana": { + "version": "0.1.5", + "requires": { + "@walletconnect/qrcode-modal": "^1.8.0", + "@walletconnect/sign-client": "^2.4.5", + "@walletconnect/utils": "^2.4.5", + "bs58": "^5.0.0" + }, + "dependencies": { + "base-x": { + "version": "4.0.0" + }, + "bs58": { + "version": "5.0.0", + "requires": { + "base-x": "^4.0.0" + } + } + } + }, + "@jridgewell/gen-mapping": { + "version": "0.3.3", + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.0" + }, + "@jridgewell/set-array": { + "version": "1.1.2" + }, + "@jridgewell/source-map": { + "version": "0.3.3", + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.15" + }, + "@jridgewell/trace-mapping": { + "version": "0.3.18", + "requires": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + }, + "dependencies": { + "@jridgewell/sourcemap-codec": { + "version": "1.4.14" + } + } + }, + "@json-rpc-tools/provider": { + "version": "1.7.6", + "requires": { + "@json-rpc-tools/utils": "^1.7.6", + "axios": "^0.21.0", + "safe-json-utils": "^1.1.1", + "ws": "^7.4.0" + }, + "dependencies": { + "axios": { + "version": "0.21.4", + "requires": { + "follow-redirects": "^1.14.0" + } + } + } + }, + "@json-rpc-tools/types": { + "version": "1.7.6", + "requires": { + "keyvaluestorage-interface": "^1.0.0" + } + }, + "@json-rpc-tools/utils": { + "version": "1.7.6", + "requires": { + "@json-rpc-tools/types": "^1.7.6", + "@pedrouid/environment": "^1.0.1" + } + }, + "@keystonehq/bc-ur-registry": { + "version": "0.5.5", + "requires": { + "@ngraveio/bc-ur": "^1.1.5", + "bs58check": "^2.1.2", + "tslib": "^2.3.0" + } + }, + "@keystonehq/bc-ur-registry-sol": { + "version": "0.3.1", + "requires": { + "@keystonehq/bc-ur-registry": "^0.5.0", + "bs58check": "^2.1.2", + "uuid": "^8.3.2" + } + }, + "@keystonehq/sdk": { + "version": "0.13.1", + "requires": { + "@ngraveio/bc-ur": "^1.0.0", + "qrcode.react": "^1.0.1", + "react": "16.13.1", + "react-dom": "16.13.1", + "react-modal": "^3.12.1", + "react-qr-reader": "^2.2.1", + "rxjs": "^6.6.3", + "typescript": "^4.6.2" + }, + "dependencies": { + "qrcode.react": { + "version": "1.0.1", + "requires": { + "loose-envify": "^1.4.0", + "prop-types": "^15.6.0", + "qr.js": "0.0.0" + } + }, + "react": { + "version": "16.13.1", + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1", + "prop-types": "^15.6.2" + } + }, + "react-dom": { + "version": "16.13.1", + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1", + "prop-types": "^15.6.2", + "scheduler": "^0.19.1" + } + }, + "react-qr-reader": { + "version": "2.2.1", + "requires": { + "jsqr": "^1.2.0", + "prop-types": "^15.7.2", + "webrtc-adapter": "^7.2.1" + } + }, + "rxjs": { + "version": "6.6.7", + "requires": { + "tslib": "^1.9.0" + } + }, + "scheduler": { + "version": "0.19.1", + "requires": { + "loose-envify": "^1.1.0", + "object-assign": "^4.1.1" + } + }, + "tslib": { + "version": "1.14.1" + } + } + }, + "@keystonehq/sol-keyring": { + "version": "0.3.1", + "requires": { + "@keystonehq/bc-ur-registry": "^0.5.0", + "@keystonehq/bc-ur-registry-sol": "^0.3.1", + "@keystonehq/sdk": "^0.13.1", + "@solana/web3.js": "^1.36.0", + "bs58": "^5.0.0", + "uuid": "^8.3.2" + }, + "dependencies": { + "base-x": { + "version": "4.0.0" + }, + "bs58": { + "version": "5.0.0", + "requires": { + "base-x": "^4.0.0" + } + } + } + }, + "@ledgerhq/connect-kit-loader": { + "version": "1.0.2" + }, + "@ledgerhq/devices": { + "version": "6.27.1", + "requires": { + "@ledgerhq/errors": "^6.10.0", + "@ledgerhq/logs": "^6.10.0", + "rxjs": "6", + "semver": "^7.3.5" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "requires": { + "yallist": "^4.0.0" + } + }, + "rxjs": { + "version": "6.6.7", + "requires": { + "tslib": "^1.9.0" + } + }, + "semver": { + "version": "7.5.0", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "tslib": { + "version": "1.14.1" + }, + "yallist": { + "version": "4.0.0" + } + } + }, + "@ledgerhq/errors": { + "version": "6.12.4" + }, + "@ledgerhq/hw-transport": { + "version": "6.27.1", + "requires": { + "@ledgerhq/devices": "^6.27.1", + "@ledgerhq/errors": "^6.10.0", + "events": "^3.3.0" + } + }, + "@ledgerhq/hw-transport-webhid": { + "version": "6.27.1", + "requires": { + "@ledgerhq/devices": "^6.27.1", + "@ledgerhq/errors": "^6.10.0", + "@ledgerhq/hw-transport": "^6.27.1", + "@ledgerhq/logs": "^6.10.0" + } + }, + "@ledgerhq/logs": { + "version": "6.10.1" + }, + "@leichtgewicht/ip-codec": { + "version": "2.0.4" + }, + "@lit-labs/ssr-dom-shim": { + "version": "1.1.1" + }, + "@lit/reactive-element": { + "version": "1.6.1", + "requires": { + "@lit-labs/ssr-dom-shim": "^1.0.0" + } + }, + "@metamask/eth-sig-util": { + "version": "4.0.1", + "requires": { + "ethereumjs-abi": "^0.6.8", + "ethereumjs-util": "^6.2.1", + "ethjs-util": "^0.1.6", + "tweetnacl": "^1.0.3", + "tweetnacl-util": "^0.15.1" + }, + "dependencies": { + "@types/bn.js": { + "version": "4.11.6", + "requires": { + "@types/node": "*" + } + }, + "bn.js": { + "version": "4.12.0" + }, + "ethereum-cryptography": { + "version": "0.1.3", + "requires": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "ethereumjs-util": { + "version": "6.2.1", + "requires": { + "@types/bn.js": "^4.11.3", + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "0.1.6", + "rlp": "^2.2.3" + } + } + } + }, + "@metamask/safe-event-emitter": { + "version": "2.0.0" + }, + "@metamask/utils": { + "version": "3.6.0", + "requires": { + "@types/debug": "^4.1.7", + "debug": "^4.3.4", + "semver": "^7.3.8", + "superstruct": "^1.0.3" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.5.0", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "superstruct": { + "version": "1.0.3" + }, + "yallist": { + "version": "4.0.0" + } + } + }, + "@motionone/animation": { + "version": "10.15.1", + "requires": { + "@motionone/easing": "^10.15.1", + "@motionone/types": "^10.15.1", + "@motionone/utils": "^10.15.1", + "tslib": "^2.3.1" + } + }, + "@motionone/dom": { + "version": "10.15.5", + "requires": { + "@motionone/animation": "^10.15.1", + "@motionone/generators": "^10.15.1", + "@motionone/types": "^10.15.1", + "@motionone/utils": "^10.15.1", + "hey-listen": "^1.0.8", + "tslib": "^2.3.1" + } + }, + "@motionone/easing": { + "version": "10.15.1", + "requires": { + "@motionone/utils": "^10.15.1", + "tslib": "^2.3.1" + } + }, + "@motionone/generators": { + "version": "10.15.1", + "requires": { + "@motionone/types": "^10.15.1", + "@motionone/utils": "^10.15.1", + "tslib": "^2.3.1" + } + }, + "@motionone/svelte": { + "version": "10.15.5", + "requires": { + "@motionone/dom": "^10.15.5", + "tslib": "^2.3.1" + } + }, + "@motionone/types": { + "version": "10.15.1" + }, + "@motionone/utils": { + "version": "10.15.1", + "requires": { + "@motionone/types": "^10.15.1", + "hey-listen": "^1.0.8", + "tslib": "^2.3.1" + } + }, + "@motionone/vue": { + "version": "10.15.5", + "requires": { + "@motionone/dom": "^10.15.5", + "tslib": "^2.3.1" + } + }, + "@mui/base": { + "version": "5.0.0-alpha.127", + "requires": { + "@babel/runtime": "^7.21.0", + "@emotion/is-prop-valid": "^1.2.0", + "@mui/types": "^7.2.4", + "@mui/utils": "^5.12.0", + "@popperjs/core": "^2.11.7", + "clsx": "^1.2.1", + "prop-types": "^15.8.1", + "react-is": "^18.2.0" + } + }, + "@mui/core-downloads-tracker": { + "version": "5.12.2" + }, + "@mui/icons-material": { + "version": "5.11.16", + "requires": { + "@babel/runtime": "^7.21.0" + } + }, + "@mui/material": { + "version": "5.12.2", + "requires": { + "@babel/runtime": "^7.21.0", + "@mui/base": "5.0.0-alpha.127", + "@mui/core-downloads-tracker": "^5.12.2", + "@mui/system": "^5.12.1", + "@mui/types": "^7.2.4", + "@mui/utils": "^5.12.0", + "@types/react-transition-group": "^4.4.5", + "clsx": "^1.2.1", + "csstype": "^3.1.2", + "prop-types": "^15.8.1", + "react-is": "^18.2.0", + "react-transition-group": "^4.4.5" + } + }, + "@mui/private-theming": { + "version": "5.12.0", + "requires": { + "@babel/runtime": "^7.21.0", + "@mui/utils": "^5.12.0", + "prop-types": "^15.8.1" + } + }, + "@mui/styled-engine": { + "version": "5.12.0", + "requires": { + "@babel/runtime": "^7.21.0", + "@emotion/cache": "^11.10.7", + "csstype": "^3.1.2", + "prop-types": "^15.8.1" + } + }, + "@mui/system": { + "version": "5.12.1", + "requires": { + "@babel/runtime": "^7.21.0", + "@mui/private-theming": "^5.12.0", + "@mui/styled-engine": "^5.12.0", + "@mui/types": "^7.2.4", + "@mui/utils": "^5.12.0", + "clsx": "^1.2.1", + "csstype": "^3.1.2", + "prop-types": "^15.8.1" + } + }, + "@mui/types": { + "version": "7.2.4", + "requires": {} + }, + "@mui/utils": { + "version": "5.12.0", + "requires": { + "@babel/runtime": "^7.21.0", + "@types/prop-types": "^15.7.5", + "@types/react-is": "^16.7.1 || ^17.0.0", + "prop-types": "^15.8.1", + "react-is": "^18.2.0" + } + }, + "@ngraveio/bc-ur": { + "version": "1.1.6", + "requires": { + "@apocentre/alias-sampling": "^0.5.3", + "assert": "^2.0.0", + "bignumber.js": "^9.0.1", + "cbor-sync": "^1.0.4", + "crc": "^3.8.0", + "jsbi": "^3.1.5", + "sha.js": "^2.4.11" + } + }, + "@nicolo-ribaudo/eslint-scope-5-internals": { + "version": "5.1.1-v1", + "requires": { + "eslint-scope": "5.1.1" + } + }, + "@noble/curves": { + "version": "1.0.0", + "requires": { + "@noble/hashes": "1.3.0" + } + }, + "@noble/ed25519": { + "version": "1.7.3" + }, + "@noble/hashes": { + "version": "1.3.0" + }, + "@noble/secp256k1": { + "version": "1.7.1" + }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.5" + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, + "@nomad-xyz/multi-provider": { + "version": "1.1.0", + "requires": { + "ethers": "^5.4.6", + "web3": "^1.6.1" + } + }, + "@particle-network/auth": { + "version": "0.5.6", + "requires": { + "crypto-js": "^4.1.1", + "uuid": "^8.3.2" + } + }, + "@particle-network/solana-wallet": { + "version": "0.5.6", + "requires": { + "@particle-network/auth": "^0.5.5" + } + }, + "@pedrouid/environment": { + "version": "1.0.1" + }, + "@pmmmwh/react-refresh-webpack-plugin": { + "version": "0.5.10", + "requires": { + "ansi-html-community": "^0.0.8", + "common-path-prefix": "^3.0.0", + "core-js-pure": "^3.23.3", + "error-stack-parser": "^2.0.6", + "find-up": "^5.0.0", + "html-entities": "^2.1.0", + "loader-utils": "^2.0.4", + "schema-utils": "^3.0.0", + "source-map": "^0.7.3" + }, + "dependencies": { + "find-up": { + "version": "5.0.0", + "requires": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + } + }, + "locate-path": { + "version": "6.0.0", + "requires": { + "p-locate": "^5.0.0" + } + }, + "p-locate": { + "version": "5.0.0", + "requires": { + "p-limit": "^3.0.2" + } + }, + "source-map": { + "version": "0.7.4" + } + } + }, + "@popperjs/core": { + "version": "2.11.7" + }, + "@project-serum/anchor": { + "version": "0.25.0", + "requires": { + "@project-serum/borsh": "^0.2.5", + "@solana/web3.js": "^1.36.0", + "base64-js": "^1.5.1", + "bn.js": "^5.1.2", + "bs58": "^4.0.1", + "buffer-layout": "^1.2.2", + "camelcase": "^5.3.1", + "cross-fetch": "^3.1.5", + "crypto-hash": "^1.3.0", + "eventemitter3": "^4.0.7", + "js-sha256": "^0.9.0", + "pako": "^2.0.3", + "snake-case": "^3.0.4", + "superstruct": "^0.15.4", + "toml": "^3.0.0" + } + }, + "@project-serum/borsh": { + "version": "0.2.5", + "requires": { + "bn.js": "^5.1.2", + "buffer-layout": "^1.2.0" + } + }, + "@project-serum/sol-wallet-adapter": { + "version": "0.2.6", + "requires": { + "bs58": "^4.0.1", + "eventemitter3": "^4.0.7" + } + }, + "@protobufjs/aspromise": { + "version": "1.1.2" + }, + "@protobufjs/base64": { + "version": "1.1.2" + }, + "@protobufjs/codegen": { + "version": "2.0.4" + }, + "@protobufjs/eventemitter": { + "version": "1.1.0" + }, + "@protobufjs/fetch": { + "version": "1.1.0", + "requires": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "@protobufjs/float": { + "version": "1.0.2" + }, + "@protobufjs/inquire": { + "version": "1.1.0" + }, + "@protobufjs/path": { + "version": "1.1.2" + }, + "@protobufjs/pool": { + "version": "1.1.0" + }, + "@protobufjs/utf8": { + "version": "1.1.0" + }, + "@reduxjs/toolkit": { + "version": "1.9.5", + "requires": { + "immer": "^9.0.21", + "redux": "^4.2.1", + "redux-thunk": "^2.4.2", + "reselect": "^4.1.8" + } + }, + "@rollup/plugin-babel": { + "version": "5.3.1", + "requires": { + "@babel/helper-module-imports": "^7.10.4", + "@rollup/pluginutils": "^3.1.0" + } + }, + "@rollup/plugin-node-resolve": { + "version": "11.2.1", + "requires": { + "@rollup/pluginutils": "^3.1.0", + "@types/resolve": "1.17.1", + "builtin-modules": "^3.1.0", + "deepmerge": "^4.2.2", + "is-module": "^1.0.0", + "resolve": "^1.19.0" + } + }, + "@rollup/plugin-replace": { + "version": "2.4.2", + "requires": { + "@rollup/pluginutils": "^3.1.0", + "magic-string": "^0.25.7" + } + }, + "@rollup/pluginutils": { + "version": "3.1.0", + "requires": { + "@types/estree": "0.0.39", + "estree-walker": "^1.0.1", + "picomatch": "^2.2.2" + }, + "dependencies": { + "@types/estree": { + "version": "0.0.39" + } + } + }, + "@rushstack/eslint-patch": { + "version": "1.2.0" + }, + "@safe-global/safe-apps-provider": { + "version": "0.15.2", + "requires": { + "@safe-global/safe-apps-sdk": "7.9.0", + "events": "^3.3.0" + }, + "dependencies": { + "@safe-global/safe-apps-sdk": { + "version": "7.9.0", + "requires": { + "@safe-global/safe-gateway-typescript-sdk": "^3.5.3", + "ethers": "^5.7.2" + } + } + } + }, + "@safe-global/safe-apps-sdk": { + "version": "7.10.1", + "requires": { + "@safe-global/safe-gateway-typescript-sdk": "^3.5.3", + "ethers": "^5.7.2" + } + }, + "@safe-global/safe-gateway-typescript-sdk": { + "version": "3.7.3", + "requires": { + "cross-fetch": "^3.1.5" + } + }, + "@scure/base": { + "version": "1.1.1" + }, + "@scure/bip32": { + "version": "1.3.0", + "requires": { + "@noble/curves": "~1.0.0", + "@noble/hashes": "~1.3.0", + "@scure/base": "~1.1.0" + } + }, + "@scure/bip39": { + "version": "1.1.0", + "requires": { + "@noble/hashes": "~1.1.1", + "@scure/base": "~1.1.0" + }, + "dependencies": { + "@noble/hashes": { + "version": "1.1.5" + } + } + }, + "@sinclair/typebox": { + "version": "0.25.24" + }, + "@sindresorhus/is": { + "version": "4.6.0" + }, + "@sinonjs/commons": { + "version": "2.0.0", + "requires": { + "type-detect": "4.0.8" + } + }, + "@sinonjs/fake-timers": { + "version": "10.0.2", + "requires": { + "@sinonjs/commons": "^2.0.0" + } + }, + "@socket.io/component-emitter": { + "version": "3.1.0" + }, + "@solana/buffer-layout": { + "version": "4.0.1", + "requires": { + "buffer": "~6.0.3" + } + }, + "@solana/buffer-layout-utils": { + "version": "0.2.0", + "requires": { + "@solana/buffer-layout": "^4.0.0", + "@solana/web3.js": "^1.32.0", + "bigint-buffer": "^1.1.5", + "bignumber.js": "^9.0.1" + } + }, + "@solana/spl-token": { + "version": "0.3.7", + "requires": { + "@solana/buffer-layout": "^4.0.0", + "@solana/buffer-layout-utils": "^0.2.0", + "buffer": "^6.0.3" + } + }, + "@solana/wallet-adapter-alpha": { + "version": "0.1.9", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-avana": { + "version": "0.1.12", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-backpack": { + "version": "0.1.13", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-base": { + "version": "0.9.22", + "requires": { + "@solana/wallet-standard-features": "^1.0.1", + "@wallet-standard/base": "^1.0.1", + "@wallet-standard/features": "^1.0.3", + "eventemitter3": "^4.0.7" + } + }, + "@solana/wallet-adapter-bitkeep": { + "version": "0.3.18", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-bitpie": { + "version": "0.5.17", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-blocto": { + "version": "0.5.21", + "requires": { + "@blocto/sdk": "^0.2.22", + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-brave": { + "version": "0.1.16", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-censo": { + "version": "0.1.3", + "requires": { + "@censo-custody/solana-wallet-adapter": "^0.1.0", + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-clover": { + "version": "0.4.18", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-coin98": { + "version": "0.5.19", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22", + "bs58": "^4.0.1" + } + }, + "@solana/wallet-adapter-coinbase": { + "version": "0.1.17", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-coinhub": { + "version": "0.3.17", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-exodus": { + "version": "0.1.17", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-fractal": { + "version": "0.1.7", + "requires": { + "@fractalwagmi/solana-wallet-adapter": "^0.1.1", + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-glow": { + "version": "0.1.17", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-huobi": { + "version": "0.1.14", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-hyperpay": { + "version": "0.1.13", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-keystone": { + "version": "0.1.11", + "requires": { + "@keystonehq/sol-keyring": "^0.3.1", + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-krystal": { + "version": "0.1.11", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-ledger": { + "version": "0.9.24", + "requires": { + "@ledgerhq/devices": "6.27.1", + "@ledgerhq/hw-transport": "6.27.1", + "@ledgerhq/hw-transport-webhid": "6.27.1", + "@solana/wallet-adapter-base": "^0.9.22", + "buffer": "^6.0.3" + } + }, + "@solana/wallet-adapter-magiceden": { + "version": "0.1.12", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-mathwallet": { + "version": "0.9.17", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-neko": { + "version": "0.2.11", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-nightly": { + "version": "0.1.15", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-nufi": { + "version": "0.1.16", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-onto": { + "version": "0.1.6", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-particle": { + "version": "0.1.9", + "requires": { + "@particle-network/solana-wallet": "^0.5.6", + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-phantom": { + "version": "0.9.22", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-safepal": { + "version": "0.5.17", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-saifu": { + "version": "0.1.14", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-salmon": { + "version": "0.1.13", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22", + "salmon-adapter-sdk": "^1.1.1" + } + }, + "@solana/wallet-adapter-sky": { + "version": "0.1.14", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-slope": { + "version": "0.5.20", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22", + "bs58": "^4.0.1" + } + }, + "@solana/wallet-adapter-solflare": { + "version": "0.6.24", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22", + "@solflare-wallet/sdk": "^1.2.0" + } + }, + "@solana/wallet-adapter-sollet": { + "version": "0.11.16", + "requires": { + "@project-serum/sol-wallet-adapter": "^0.2.6", + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-solong": { + "version": "0.9.17", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-spot": { + "version": "0.1.14", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-strike": { + "version": "0.1.12", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22", + "@strike-protocols/solana-wallet-adapter": "^0.1.8" + } + }, + "@solana/wallet-adapter-tokenary": { + "version": "0.1.11", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-tokenpocket": { + "version": "0.4.18", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-torus": { + "version": "0.11.27", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22", + "@toruslabs/solana-embed": "^0.3.3", + "assert": "^2.0.0", + "crypto-browserify": "^3.12.0", + "process": "^0.11.10", + "stream-browserify": "^3.0.0" + } + }, + "@solana/wallet-adapter-trust": { + "version": "0.1.12", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-unsafe-burner": { + "version": "0.1.6", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-walletconnect": { + "version": "0.1.14", + "requires": { + "@jnwng/walletconnect-solana": "^0.1.5", + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-adapter-wallets": { + "version": "0.19.16", + "requires": { + "@solana/wallet-adapter-alpha": "^0.1.9", + "@solana/wallet-adapter-avana": "^0.1.12", + "@solana/wallet-adapter-backpack": "^0.1.13", + "@solana/wallet-adapter-bitkeep": "^0.3.18", + "@solana/wallet-adapter-bitpie": "^0.5.17", + "@solana/wallet-adapter-blocto": "^0.5.21", + "@solana/wallet-adapter-brave": "^0.1.16", + "@solana/wallet-adapter-censo": "^0.1.3", + "@solana/wallet-adapter-clover": "^0.4.18", + "@solana/wallet-adapter-coin98": "^0.5.19", + "@solana/wallet-adapter-coinbase": "^0.1.17", + "@solana/wallet-adapter-coinhub": "^0.3.17", + "@solana/wallet-adapter-exodus": "^0.1.17", + "@solana/wallet-adapter-fractal": "^0.1.7", + "@solana/wallet-adapter-glow": "^0.1.17", + "@solana/wallet-adapter-huobi": "^0.1.14", + "@solana/wallet-adapter-hyperpay": "^0.1.13", + "@solana/wallet-adapter-keystone": "^0.1.11", + "@solana/wallet-adapter-krystal": "^0.1.11", + "@solana/wallet-adapter-ledger": "^0.9.24", + "@solana/wallet-adapter-magiceden": "^0.1.12", + "@solana/wallet-adapter-mathwallet": "^0.9.17", + "@solana/wallet-adapter-neko": "^0.2.11", + "@solana/wallet-adapter-nightly": "^0.1.15", + "@solana/wallet-adapter-nufi": "^0.1.16", + "@solana/wallet-adapter-onto": "^0.1.6", + "@solana/wallet-adapter-particle": "^0.1.9", + "@solana/wallet-adapter-phantom": "^0.9.22", + "@solana/wallet-adapter-safepal": "^0.5.17", + "@solana/wallet-adapter-saifu": "^0.1.14", + "@solana/wallet-adapter-salmon": "^0.1.13", + "@solana/wallet-adapter-sky": "^0.1.14", + "@solana/wallet-adapter-slope": "^0.5.20", + "@solana/wallet-adapter-solflare": "^0.6.24", + "@solana/wallet-adapter-sollet": "^0.11.16", + "@solana/wallet-adapter-solong": "^0.9.17", + "@solana/wallet-adapter-spot": "^0.1.14", + "@solana/wallet-adapter-strike": "^0.1.12", + "@solana/wallet-adapter-tokenary": "^0.1.11", + "@solana/wallet-adapter-tokenpocket": "^0.4.18", + "@solana/wallet-adapter-torus": "^0.11.27", + "@solana/wallet-adapter-trust": "^0.1.12", + "@solana/wallet-adapter-unsafe-burner": "^0.1.6", + "@solana/wallet-adapter-walletconnect": "^0.1.14", + "@solana/wallet-adapter-xdefi": "^0.1.6" + } + }, + "@solana/wallet-adapter-xdefi": { + "version": "0.1.6", + "requires": { + "@solana/wallet-adapter-base": "^0.9.22" + } + }, + "@solana/wallet-standard-features": { + "version": "1.0.1", + "requires": { + "@wallet-standard/base": "^1.0.1", + "@wallet-standard/features": "^1.0.3" + } + }, + "@solana/web3.js": { + "version": "1.75.0", + "requires": { + "@babel/runtime": "^7.12.5", + "@noble/ed25519": "^1.7.0", + "@noble/hashes": "^1.1.2", + "@noble/secp256k1": "^1.6.3", + "@solana/buffer-layout": "^4.0.0", + "agentkeepalive": "^4.2.1", + "bigint-buffer": "^1.1.5", + "bn.js": "^5.0.0", + "borsh": "^0.7.0", + "bs58": "^4.0.1", + "buffer": "6.0.3", + "fast-stable-stringify": "^1.0.0", + "jayson": "^3.4.4", + "node-fetch": "^2.6.7", + "rpc-websockets": "^7.5.1", + "superstruct": "^0.14.2" + }, + "dependencies": { + "superstruct": { + "version": "0.14.2" + } + } + }, + "@solflare-wallet/sdk": { + "version": "1.2.1", + "requires": { + "@project-serum/sol-wallet-adapter": "0.2.0", + "bs58": "^4.0.1", + "eventemitter3": "^4.0.7", + "uuid": "^8.3.2" + }, + "dependencies": { + "@project-serum/sol-wallet-adapter": { + "version": "0.2.0", + "requires": { + "bs58": "^4.0.1", + "eventemitter3": "^4.0.4" + } + } + } + }, + "@stablelib/aead": { + "version": "1.0.1" + }, + "@stablelib/binary": { + "version": "1.0.1", + "requires": { + "@stablelib/int": "^1.0.1" + } + }, + "@stablelib/bytes": { + "version": "1.0.1" + }, + "@stablelib/chacha": { + "version": "1.0.1", + "requires": { + "@stablelib/binary": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "@stablelib/chacha20poly1305": { + "version": "1.0.1", + "requires": { + "@stablelib/aead": "^1.0.1", + "@stablelib/binary": "^1.0.1", + "@stablelib/chacha": "^1.0.1", + "@stablelib/constant-time": "^1.0.1", + "@stablelib/poly1305": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "@stablelib/constant-time": { + "version": "1.0.1" + }, + "@stablelib/ed25519": { + "version": "1.0.3", + "requires": { + "@stablelib/random": "^1.0.2", + "@stablelib/sha512": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "@stablelib/hash": { + "version": "1.0.1" + }, + "@stablelib/hkdf": { + "version": "1.0.1", + "requires": { + "@stablelib/hash": "^1.0.1", + "@stablelib/hmac": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "@stablelib/hmac": { + "version": "1.0.1", + "requires": { + "@stablelib/constant-time": "^1.0.1", + "@stablelib/hash": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "@stablelib/int": { + "version": "1.0.1" + }, + "@stablelib/keyagreement": { + "version": "1.0.1", + "requires": { + "@stablelib/bytes": "^1.0.1" + } + }, + "@stablelib/poly1305": { + "version": "1.0.1", + "requires": { + "@stablelib/constant-time": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "@stablelib/random": { + "version": "1.0.2", + "requires": { + "@stablelib/binary": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "@stablelib/sha256": { + "version": "1.0.1", + "requires": { + "@stablelib/binary": "^1.0.1", + "@stablelib/hash": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "@stablelib/sha512": { + "version": "1.0.1", + "requires": { + "@stablelib/binary": "^1.0.1", + "@stablelib/hash": "^1.0.1", + "@stablelib/wipe": "^1.0.1" + } + }, + "@stablelib/wipe": { + "version": "1.0.1" + }, + "@stablelib/x25519": { + "version": "1.0.3", + "requires": { + "@stablelib/keyagreement": "^1.0.1", + "@stablelib/random": "^1.0.2", + "@stablelib/wipe": "^1.0.1" + } + }, + "@strike-protocols/solana-wallet-adapter": { + "version": "0.1.8", + "requires": { + "@solana/web3.js": "^1.44.3", + "bs58": "^4.0.1", + "eventemitter3": "^4.0.7", + "uuid": "^8.3.2" + } + }, + "@surma/rollup-plugin-off-main-thread": { + "version": "2.2.3", + "requires": { + "ejs": "^3.1.6", + "json5": "^2.2.0", + "magic-string": "^0.25.0", + "string.prototype.matchall": "^4.0.6" + } + }, + "@svgr/babel-plugin-add-jsx-attribute": { + "version": "5.4.0" + }, + "@svgr/babel-plugin-remove-jsx-attribute": { + "version": "5.4.0" + }, + "@svgr/babel-plugin-remove-jsx-empty-expression": { + "version": "5.0.1" + }, + "@svgr/babel-plugin-replace-jsx-attribute-value": { + "version": "5.0.1" + }, + "@svgr/babel-plugin-svg-dynamic-title": { + "version": "5.4.0" + }, + "@svgr/babel-plugin-svg-em-dimensions": { + "version": "5.4.0" + }, + "@svgr/babel-plugin-transform-react-native-svg": { + "version": "5.4.0" + }, + "@svgr/babel-plugin-transform-svg-component": { + "version": "5.5.0" + }, + "@svgr/babel-preset": { + "version": "5.5.0", + "requires": { + "@svgr/babel-plugin-add-jsx-attribute": "^5.4.0", + "@svgr/babel-plugin-remove-jsx-attribute": "^5.4.0", + "@svgr/babel-plugin-remove-jsx-empty-expression": "^5.0.1", + "@svgr/babel-plugin-replace-jsx-attribute-value": "^5.0.1", + "@svgr/babel-plugin-svg-dynamic-title": "^5.4.0", + "@svgr/babel-plugin-svg-em-dimensions": "^5.4.0", + "@svgr/babel-plugin-transform-react-native-svg": "^5.4.0", + "@svgr/babel-plugin-transform-svg-component": "^5.5.0" + } + }, + "@svgr/core": { + "version": "5.5.0", + "requires": { + "@svgr/plugin-jsx": "^5.5.0", + "camelcase": "^6.2.0", + "cosmiconfig": "^7.0.0" + }, + "dependencies": { + "camelcase": { + "version": "6.3.0" + } + } + }, + "@svgr/hast-util-to-babel-ast": { + "version": "5.5.0", + "requires": { + "@babel/types": "^7.12.6" + } + }, + "@svgr/plugin-jsx": { + "version": "5.5.0", + "requires": { + "@babel/core": "^7.12.3", + "@svgr/babel-preset": "^5.5.0", + "@svgr/hast-util-to-babel-ast": "^5.5.0", + "svg-parser": "^2.0.2" + } + }, + "@svgr/plugin-svgo": { + "version": "5.5.0", + "requires": { + "cosmiconfig": "^7.0.0", + "deepmerge": "^4.2.2", + "svgo": "^1.2.2" + } + }, + "@svgr/webpack": { + "version": "5.5.0", + "requires": { + "@babel/core": "^7.12.3", + "@babel/plugin-transform-react-constant-elements": "^7.12.1", + "@babel/preset-env": "^7.12.1", + "@babel/preset-react": "^7.12.5", + "@svgr/core": "^5.5.0", + "@svgr/plugin-jsx": "^5.5.0", + "@svgr/plugin-svgo": "^5.5.0", + "loader-utils": "^2.0.0" + } + }, + "@szmarczak/http-timer": { + "version": "5.0.1", + "requires": { + "defer-to-connect": "^2.0.1" + } + }, + "@terra-money/legacy.proto": { + "version": "npm:@terra-money/terra.proto@0.1.7", + "requires": { + "google-protobuf": "^3.17.3", + "long": "^4.0.0", + "protobufjs": "~6.11.2" + }, + "dependencies": { + "protobufjs": { + "version": "6.11.3", + "requires": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + } + } + } + }, + "@terra-money/terra.js": { + "version": "3.1.8", + "requires": { + "@classic-terra/terra.proto": "^1.1.0", + "@terra-money/terra.proto": "^2.1.0", + "axios": "^0.27.2", + "bech32": "^2.0.0", + "bip32": "^2.0.6", + "bip39": "^3.0.3", + "bufferutil": "^4.0.3", + "decimal.js": "^10.2.1", + "jscrypto": "^1.0.1", + "readable-stream": "^3.6.0", + "secp256k1": "^4.0.2", + "tmp": "^0.2.1", + "utf-8-validate": "^5.0.5", + "ws": "^7.5.9" + }, + "dependencies": { + "axios": { + "version": "0.27.2", + "requires": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + } + } + }, + "@terra-money/terra.proto": { + "version": "2.1.0", + "requires": { + "@improbable-eng/grpc-web": "^0.14.1", + "google-protobuf": "^3.17.3", + "long": "^4.0.0", + "protobufjs": "~6.11.2" + }, + "dependencies": { + "@improbable-eng/grpc-web": { + "version": "0.14.1", + "requires": { + "browser-headers": "^0.4.1" + } + }, + "protobufjs": { + "version": "6.11.3", + "requires": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + } + } + } + }, + "@testing-library/dom": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-9.2.0.tgz", + "integrity": "sha512-xTEnpUKiV/bMyEsE5bT4oYA0x0Z/colMtxzUY8bKyPXBNLn/e0V4ZjBZkEhms0xE4pv9QsPfSRu9AWS4y5wGvA==", + "peer": true, + "requires": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "^5.0.0", + "chalk": "^4.1.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.5.0", + "pretty-format": "^27.0.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "peer": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "peer": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "peer": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "peer": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "peer": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "peer": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@testing-library/jest-dom": { + "version": "5.16.5", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-5.16.5.tgz", + "integrity": "sha512-N5ixQ2qKpi5OLYfwQmUb/5mSV9LneAcaUfp32pn4yCnpb8r/Yz0pXFPck21dIicKmi+ta5WRAknkZCfA8refMA==", + "requires": { + "@adobe/css-tools": "^4.0.1", + "@babel/runtime": "^7.9.2", + "@types/testing-library__jest-dom": "^5.9.1", + "aria-query": "^5.0.0", + "chalk": "^3.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.5.6", + "lodash": "^4.17.15", + "redent": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz", + "integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@testing-library/react": { + "version": "13.4.0", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-13.4.0.tgz", + "integrity": "sha512-sXOGON+WNTh3MLE9rve97ftaZukN3oNf2KjDy7YTx6hcTO2uuLHuCGynMDhFwGw/jYf4OJ2Qk0i4i79qMNNkyw==", + "requires": { + "@babel/runtime": "^7.12.5", + "@testing-library/dom": "^8.5.0", + "@types/react-dom": "^18.0.0" + }, + "dependencies": { + "@testing-library/dom": { + "version": "8.20.0", + "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-8.20.0.tgz", + "integrity": "sha512-d9ULIT+a4EXLX3UU8FBjauG9NnsZHkHztXoIcTsOKoOw030fyjheN9svkTULjJxtYag9DZz5Jz5qkWZDPxTFwA==", + "requires": { + "@babel/code-frame": "^7.10.4", + "@babel/runtime": "^7.12.5", + "@types/aria-query": "^5.0.1", + "aria-query": "^5.0.0", + "chalk": "^4.1.0", + "dom-accessibility-api": "^0.5.9", + "lz-string": "^1.4.4", + "pretty-format": "^27.0.2" + } + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@testing-library/user-event": { + "version": "13.5.0", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-13.5.0.tgz", + "integrity": "sha512-5Kwtbo3Y/NowpkbRuSepbyMFkZmHgD+vPzYB/RJ4oxt5Gj/avFFBYjhw27cqSVPVw/3a67NK1PbiIr9k4Gwmdg==", + "requires": { + "@babel/runtime": "^7.12.5" + } + }, + "@tootallnate/once": { + "version": "1.1.2" + }, + "@toruslabs/base-controllers": { + "version": "2.8.1", + "requires": { + "@ethereumjs/util": "^8.0.5", + "@toruslabs/broadcast-channel": "^6.2.0", + "@toruslabs/http-helpers": "^3.3.0", + "@toruslabs/openlogin-jrpc": "^3.2.0", + "async-mutex": "^0.4.0", + "bignumber.js": "^9.1.1", + "bowser": "^2.11.0", + "eth-rpc-errors": "^4.0.3", + "json-rpc-random-id": "^1.0.1", + "lodash": "^4.17.21", + "loglevel": "^1.8.1" + } + }, + "@toruslabs/broadcast-channel": { + "version": "6.2.0", + "requires": { + "@babel/runtime": "^7.21.0", + "@toruslabs/eccrypto": "^2.0.0", + "@toruslabs/metadata-helpers": "^3.1.0", + "bowser": "^2.11.0", + "keccak": "^3.0.3", + "loglevel": "^1.8.1", + "oblivious-set": "1.1.1", + "socket.io-client": "^4.6.1", + "unload": "^2.4.1" + } + }, + "@toruslabs/eccrypto": { + "version": "2.1.1", + "requires": { + "elliptic": "^6.5.4" + } + }, + "@toruslabs/http-helpers": { + "version": "3.3.0", + "requires": { + "lodash.merge": "^4.6.2", + "loglevel": "^1.8.1" + } + }, + "@toruslabs/metadata-helpers": { + "version": "3.1.0", + "requires": { + "@toruslabs/eccrypto": "^2.0.0", + "@toruslabs/http-helpers": "^3.3.0", + "elliptic": "^6.5.4", + "json-stable-stringify": "^1.0.2", + "keccak": "^3.0.3" + } + }, + "@toruslabs/openlogin-jrpc": { + "version": "3.2.0", + "requires": { + "@toruslabs/openlogin-utils": "^3.0.0", + "end-of-stream": "^1.4.4", + "eth-rpc-errors": "^4.0.3", + "events": "^3.3.0", + "fast-safe-stringify": "^2.1.1", + "once": "^1.4.0", + "pump": "^3.0.0", + "readable-stream": "^3.6.2" + } + }, + "@toruslabs/openlogin-utils": { + "version": "3.0.0", + "requires": { + "base64url": "^3.0.1", + "keccak": "^3.0.3", + "randombytes": "^2.1.0" + } + }, + "@toruslabs/solana-embed": { + "version": "0.3.4", + "requires": { + "@solana/web3.js": "^1.63.1", + "@toruslabs/base-controllers": "^2.8.0", + "@toruslabs/http-helpers": "^3.3.0", + "@toruslabs/openlogin-jrpc": "^3.2.0", + "eth-rpc-errors": "^4.0.3", + "fast-deep-equal": "^3.1.3", + "is-stream": "^2.0.1", + "lodash-es": "^4.17.21", + "loglevel": "^1.8.1", + "pump": "^3.0.0" + } + }, + "@trysound/sax": { + "version": "0.2.0" + }, + "@types/aria-query": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/@types/aria-query/-/aria-query-5.0.1.tgz", + "integrity": "sha512-XTIieEY+gvJ39ChLcB4If5zHtPxt3Syj5rgZR+e1ctpmK8NjPf0zFqsz4JpLJT0xla9GFDKjy8Cpu331nrmE1Q==" + }, + "@types/babel__core": { + "version": "7.20.0", + "requires": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "@types/babel__generator": { + "version": "7.6.4", + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@types/babel__template": { + "version": "7.4.1", + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@types/babel__traverse": { + "version": "7.18.5", + "requires": { + "@babel/types": "^7.3.0" + } + }, + "@types/bn.js": { + "version": "5.1.1", + "requires": { + "@types/node": "*" + } + }, + "@types/body-parser": { + "version": "1.19.2", + "requires": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "@types/bonjour": { + "version": "3.5.10", + "requires": { + "@types/node": "*" + } + }, + "@types/bs58": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/bs58/-/bs58-4.0.1.tgz", + "integrity": "sha512-yfAgiWgVLjFCmRv8zAcOIHywYATEwiTVccTLnRp6UxTNavT55M9d/uhK3T03St/+8/z/wW+CRjGKUNmEqoHHCA==", + "dev": true, + "requires": { + "base-x": "^3.0.6" + } + }, + "@types/cacheable-request": { + "version": "6.0.3", + "requires": { + "@types/http-cache-semantics": "*", + "@types/keyv": "^3.1.4", + "@types/node": "*", + "@types/responselike": "^1.0.0" + } + }, + "@types/connect": { + "version": "3.4.35", + "requires": { + "@types/node": "*" + } + }, + "@types/connect-history-api-fallback": { + "version": "1.3.5", + "requires": { + "@types/express-serve-static-core": "*", + "@types/node": "*" + } + }, + "@types/debug": { + "version": "4.1.7", + "requires": { + "@types/ms": "*" + } + }, + "@types/elliptic": { + "version": "6.4.14", + "resolved": "https://registry.npmjs.org/@types/elliptic/-/elliptic-6.4.14.tgz", + "integrity": "sha512-z4OBcDAU0GVwDTuwJzQCiL6188QvZMkvoERgcVjq0/mPM8jCfdwZ3x5zQEVoL9WCAru3aG5wl3Z5Ww5wBWn7ZQ==", + "dev": true, + "requires": { + "@types/bn.js": "*" + } + }, + "@types/eslint": { + "version": "8.37.0", + "requires": { + "@types/estree": "*", + "@types/json-schema": "*" + } + }, + "@types/eslint-scope": { + "version": "3.7.4", + "requires": { + "@types/eslint": "*", + "@types/estree": "*" + } + }, + "@types/estree": { + "version": "1.0.1" + }, + "@types/express": { + "version": "4.17.17", + "requires": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "@types/express-serve-static-core": { + "version": "4.17.34", + "requires": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "@types/graceful-fs": { + "version": "4.1.6", + "requires": { + "@types/node": "*" + } + }, + "@types/hoist-non-react-statics": { + "version": "3.3.1", + "requires": { + "@types/react": "*", + "hoist-non-react-statics": "^3.3.0" + } + }, + "@types/html-minifier-terser": { + "version": "6.1.0" + }, + "@types/http-cache-semantics": { + "version": "4.0.1" + }, + "@types/http-proxy": { + "version": "1.17.11", + "requires": { + "@types/node": "*" + } + }, + "@types/istanbul-lib-coverage": { + "version": "2.0.4" + }, + "@types/istanbul-lib-report": { + "version": "3.0.0", + "requires": { + "@types/istanbul-lib-coverage": "*" + } + }, + "@types/istanbul-reports": { + "version": "3.0.1", + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/jest": { + "version": "27.5.2", + "requires": { + "jest-matcher-utils": "^27.0.0", + "pretty-format": "^27.0.0" + } + }, + "@types/json-schema": { + "version": "7.0.11" + }, + "@types/json5": { + "version": "0.0.29" + }, + "@types/keyv": { + "version": "3.1.4", + "requires": { + "@types/node": "*" + } + }, + "@types/lodash": { + "version": "4.14.194" + }, + "@types/lodash.values": { + "version": "4.3.7", + "requires": { + "@types/lodash": "*" + } + }, + "@types/long": { + "version": "4.0.2" + }, + "@types/mime": { + "version": "1.3.2" + }, + "@types/ms": { + "version": "0.7.31" + }, + "@types/node": { + "version": "16.18.25" + }, + "@types/node-fetch": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.3.tgz", + "integrity": "sha512-ETTL1mOEdq/sxUtgtOhKjyB2Irra4cjxksvcMUR5Zr4n+PxVhsCD9WS46oPbHL3et9Zde7CNRr+WUNlcHvsX+w==", + "requires": { + "@types/node": "*", + "form-data": "^3.0.0" + }, + "dependencies": { + "form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + } + } + }, + "@types/parse-json": { + "version": "4.0.0" + }, + "@types/pbkdf2": { + "version": "3.1.0", + "requires": { + "@types/node": "*" + } + }, + "@types/prettier": { + "version": "2.7.2" + }, + "@types/prop-types": { + "version": "15.7.5" + }, + "@types/q": { + "version": "1.5.5" + }, + "@types/qs": { + "version": "6.9.7" + }, + "@types/range-parser": { + "version": "1.2.4" + }, + "@types/react": { + "version": "18.2.0", + "requires": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + }, + "@types/react-dom": { + "version": "18.2.1", + "requires": { + "@types/react": "*" + } + }, + "@types/react-is": { + "version": "17.0.4", + "requires": { + "@types/react": "^17" + }, + "dependencies": { + "@types/react": { + "version": "17.0.58", + "requires": { + "@types/prop-types": "*", + "@types/scheduler": "*", + "csstype": "^3.0.2" + } + } + } + }, + "@types/react-redux": { + "version": "7.1.25", + "requires": { + "@types/hoist-non-react-statics": "^3.3.0", + "@types/react": "*", + "hoist-non-react-statics": "^3.3.0", + "redux": "^4.0.0" + } + }, + "@types/react-transition-group": { + "version": "4.4.5", + "requires": { + "@types/react": "*" + } + }, + "@types/resolve": { + "version": "1.17.1", + "requires": { + "@types/node": "*" + } + }, + "@types/responselike": { + "version": "1.0.0", + "requires": { + "@types/node": "*" + } + }, + "@types/retry": { + "version": "0.12.0" + }, + "@types/scheduler": { + "version": "0.16.3" + }, + "@types/secp256k1": { + "version": "4.0.3", + "requires": { + "@types/node": "*" + } + }, + "@types/semver": { + "version": "7.3.13" + }, + "@types/send": { + "version": "0.17.1", + "requires": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "@types/serve-index": { + "version": "1.9.1", + "requires": { + "@types/express": "*" + } + }, + "@types/serve-static": { + "version": "1.15.1", + "requires": { + "@types/mime": "*", + "@types/node": "*" + } + }, + "@types/sockjs": { + "version": "0.3.33", + "requires": { + "@types/node": "*" + } + }, + "@types/stack-utils": { + "version": "2.0.1" + }, + "@types/testing-library__jest-dom": { + "version": "5.14.5", + "resolved": "https://registry.npmjs.org/@types/testing-library__jest-dom/-/testing-library__jest-dom-5.14.5.tgz", + "integrity": "sha512-SBwbxYoyPIvxHbeHxTZX2Pe/74F/tX2/D3mMvzabdeJ25bBojfW0TyB8BHrbq/9zaaKICJZjLP+8r6AeZMFCuQ==", + "requires": { + "@types/jest": "*" + } + }, + "@types/trusted-types": { + "version": "2.0.3" + }, + "@types/use-sync-external-store": { + "version": "0.0.3" + }, + "@types/ws": { + "version": "7.4.7", + "requires": { + "@types/node": "*" + } + }, + "@types/yargs": { + "version": "17.0.24", + "requires": { + "@types/yargs-parser": "*" + } + }, + "@types/yargs-parser": { + "version": "21.0.0" + }, + "@typescript-eslint/eslint-plugin": { + "version": "5.59.1", + "requires": { + "@eslint-community/regexpp": "^4.4.0", + "@typescript-eslint/scope-manager": "5.59.1", + "@typescript-eslint/type-utils": "5.59.1", + "@typescript-eslint/utils": "5.59.1", + "debug": "^4.3.4", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "natural-compare-lite": "^1.4.0", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.5.0", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0" + } + } + }, + "@typescript-eslint/experimental-utils": { + "version": "5.59.1", + "requires": { + "@typescript-eslint/utils": "5.59.1" + } + }, + "@typescript-eslint/parser": { + "version": "5.59.1", + "requires": { + "@typescript-eslint/scope-manager": "5.59.1", + "@typescript-eslint/types": "5.59.1", + "@typescript-eslint/typescript-estree": "5.59.1", + "debug": "^4.3.4" + } + }, + "@typescript-eslint/scope-manager": { + "version": "5.59.1", + "requires": { + "@typescript-eslint/types": "5.59.1", + "@typescript-eslint/visitor-keys": "5.59.1" + } + }, + "@typescript-eslint/type-utils": { + "version": "5.59.1", + "requires": { + "@typescript-eslint/typescript-estree": "5.59.1", + "@typescript-eslint/utils": "5.59.1", + "debug": "^4.3.4", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/types": { + "version": "5.59.1" + }, + "@typescript-eslint/typescript-estree": { + "version": "5.59.1", + "requires": { + "@typescript-eslint/types": "5.59.1", + "@typescript-eslint/visitor-keys": "5.59.1", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "semver": "^7.3.7", + "tsutils": "^3.21.0" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.5.0", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0" + } + } + }, + "@typescript-eslint/utils": { + "version": "5.59.1", + "requires": { + "@eslint-community/eslint-utils": "^4.2.0", + "@types/json-schema": "^7.0.9", + "@types/semver": "^7.3.12", + "@typescript-eslint/scope-manager": "5.59.1", + "@typescript-eslint/types": "5.59.1", + "@typescript-eslint/typescript-estree": "5.59.1", + "eslint-scope": "^5.1.1", + "semver": "^7.3.7" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.5.0", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0" + } + } + }, + "@typescript-eslint/visitor-keys": { + "version": "5.59.1", + "requires": { + "@typescript-eslint/types": "5.59.1", + "eslint-visitor-keys": "^3.3.0" + } + }, + "@wagmi/chains": { + "version": "0.2.19", + "requires": {} + }, + "@wagmi/connectors": { + "version": "0.3.16", + "requires": { + "@coinbase/wallet-sdk": "^3.6.4", + "@ledgerhq/connect-kit-loader": "^1.0.1", + "@safe-global/safe-apps-provider": "^0.15.2", + "@safe-global/safe-apps-sdk": "^7.9.0", + "@walletconnect/ethereum-provider": "2.7.0", + "@walletconnect/legacy-provider": "^2.0.0", + "@web3modal/standalone": "^2.3.0", + "abitype": "^0.3.0", + "eventemitter3": "^4.0.7" + } + }, + "@wagmi/core": { + "version": "0.10.10", + "requires": { + "@wagmi/chains": "0.2.19", + "@wagmi/connectors": "0.3.16", + "abitype": "^0.3.0", + "eventemitter3": "^4.0.7", + "zustand": "^4.3.1" + } + }, + "@wallet-standard/base": { + "version": "1.0.1" + }, + "@wallet-standard/features": { + "version": "1.0.3", + "requires": { + "@wallet-standard/base": "^1.0.1" + } + }, + "@walletconnect/browser-utils": { + "version": "1.8.0", + "requires": { + "@walletconnect/safe-json": "1.0.0", + "@walletconnect/types": "^1.8.0", + "@walletconnect/window-getters": "1.0.0", + "@walletconnect/window-metadata": "1.0.0", + "detect-browser": "5.2.0" + } + }, + "@walletconnect/core": { + "version": "2.7.1", + "requires": { + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-provider": "^1.0.12", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/jsonrpc-ws-connection": "^1.0.11", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "@walletconnect/relay-api": "^1.0.9", + "@walletconnect/relay-auth": "^1.0.4", + "@walletconnect/safe-json": "^1.0.2", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.1", + "@walletconnect/utils": "2.7.1", + "events": "^3.3.0", + "lodash.isequal": "4.5.0", + "uint8arrays": "^3.1.0" + }, + "dependencies": { + "@walletconnect/safe-json": { + "version": "1.0.2", + "requires": { + "tslib": "1.14.1" + } + }, + "@walletconnect/types": { + "version": "2.7.1", + "requires": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "events": "^3.3.0" + } + }, + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/crypto": { + "version": "1.0.3", + "requires": { + "@walletconnect/encoding": "^1.0.2", + "@walletconnect/environment": "^1.0.1", + "@walletconnect/randombytes": "^1.0.3", + "aes-js": "^3.1.2", + "hash.js": "^1.1.7", + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/encoding": { + "version": "1.0.2", + "requires": { + "is-typedarray": "1.0.0", + "tslib": "1.14.1", + "typedarray-to-buffer": "3.1.5" + }, + "dependencies": { + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/environment": { + "version": "1.0.1", + "requires": { + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/ethereum-provider": { + "version": "2.7.0", + "requires": { + "@walletconnect/jsonrpc-http-connection": "^1.0.4", + "@walletconnect/jsonrpc-provider": "^1.0.11", + "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/sign-client": "2.7.0", + "@walletconnect/types": "2.7.0", + "@walletconnect/universal-provider": "2.7.0", + "@walletconnect/utils": "2.7.0", + "events": "^3.3.0" + }, + "dependencies": { + "@walletconnect/core": { + "version": "2.7.0", + "requires": { + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-provider": "^1.0.12", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/jsonrpc-ws-connection": "^1.0.11", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "@walletconnect/relay-api": "^1.0.9", + "@walletconnect/relay-auth": "^1.0.4", + "@walletconnect/safe-json": "^1.0.2", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.0", + "@walletconnect/utils": "2.7.0", + "events": "^3.3.0", + "lodash.isequal": "4.5.0", + "uint8arrays": "^3.1.0" + } + }, + "@walletconnect/safe-json": { + "version": "1.0.2", + "requires": { + "tslib": "1.14.1" + } + }, + "@walletconnect/sign-client": { + "version": "2.7.0", + "requires": { + "@walletconnect/core": "2.7.0", + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/logger": "^2.0.1", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.0", + "@walletconnect/utils": "2.7.0", + "events": "^3.3.0" + } + }, + "@walletconnect/types": { + "version": "2.7.0", + "requires": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "events": "^3.3.0" + } + }, + "@walletconnect/utils": { + "version": "2.7.0", + "requires": { + "@stablelib/chacha20poly1305": "1.0.1", + "@stablelib/hkdf": "1.0.1", + "@stablelib/random": "^1.0.2", + "@stablelib/sha256": "1.0.1", + "@stablelib/x25519": "^1.0.3", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/relay-api": "^1.0.9", + "@walletconnect/safe-json": "^1.0.2", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.0", + "@walletconnect/window-getters": "^1.0.1", + "@walletconnect/window-metadata": "^1.0.1", + "detect-browser": "5.3.0", + "query-string": "7.1.1", + "uint8arrays": "^3.1.0" + } + }, + "@walletconnect/window-getters": { + "version": "1.0.1", + "requires": { + "tslib": "1.14.1" + } + }, + "@walletconnect/window-metadata": { + "version": "1.0.1", + "requires": { + "@walletconnect/window-getters": "^1.0.1", + "tslib": "1.14.1" + } + }, + "detect-browser": { + "version": "5.3.0" + }, + "query-string": { + "version": "7.1.1", + "requires": { + "decode-uri-component": "^0.2.0", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + } + }, + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/events": { + "version": "1.0.1", + "requires": { + "keyvaluestorage-interface": "^1.0.0", + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/heartbeat": { + "version": "1.2.1", + "requires": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/time": "^1.0.2", + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/jsonrpc-http-connection": { + "version": "1.0.6", + "requires": { + "@walletconnect/jsonrpc-utils": "^1.0.6", + "@walletconnect/safe-json": "^1.0.1", + "cross-fetch": "^3.1.4", + "tslib": "1.14.1" + }, + "dependencies": { + "@walletconnect/safe-json": { + "version": "1.0.2", + "requires": { + "tslib": "1.14.1" + } + }, + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/jsonrpc-provider": { + "version": "1.0.12", + "requires": { + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/safe-json": "^1.0.2", + "tslib": "1.14.1" + }, + "dependencies": { + "@walletconnect/safe-json": { + "version": "1.0.2", + "requires": { + "tslib": "1.14.1" + } + }, + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/jsonrpc-types": { + "version": "1.0.2", + "requires": { + "keyvaluestorage-interface": "^1.0.0", + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/jsonrpc-utils": { + "version": "1.0.7", + "requires": { + "@walletconnect/environment": "^1.0.1", + "@walletconnect/jsonrpc-types": "^1.0.2", + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/jsonrpc-ws-connection": { + "version": "1.0.11", + "requires": { + "@walletconnect/jsonrpc-utils": "^1.0.6", + "@walletconnect/safe-json": "^1.0.2", + "events": "^3.3.0", + "tslib": "1.14.1", + "ws": "^7.5.1" + }, + "dependencies": { + "@walletconnect/safe-json": { + "version": "1.0.2", + "requires": { + "tslib": "1.14.1" + } + }, + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/keyvaluestorage": { + "version": "1.0.2", + "requires": { + "safe-json-utils": "^1.1.1", + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/legacy-client": { + "version": "2.0.0", + "requires": { + "@walletconnect/crypto": "^1.0.3", + "@walletconnect/encoding": "^1.0.2", + "@walletconnect/jsonrpc-utils": "^1.0.4", + "@walletconnect/legacy-types": "^2.0.0", + "@walletconnect/legacy-utils": "^2.0.0", + "@walletconnect/safe-json": "^1.0.1", + "@walletconnect/window-getters": "^1.0.1", + "@walletconnect/window-metadata": "^1.0.1", + "detect-browser": "^5.3.0", + "query-string": "^6.13.5" + }, + "dependencies": { + "@walletconnect/safe-json": { + "version": "1.0.2", + "requires": { + "tslib": "1.14.1" + } + }, + "@walletconnect/window-getters": { + "version": "1.0.1", + "requires": { + "tslib": "1.14.1" + } + }, + "@walletconnect/window-metadata": { + "version": "1.0.1", + "requires": { + "@walletconnect/window-getters": "^1.0.1", + "tslib": "1.14.1" + } + }, + "detect-browser": { + "version": "5.3.0" + }, + "query-string": { + "version": "6.14.1", + "requires": { + "decode-uri-component": "^0.2.0", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + } + }, + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/legacy-modal": { + "version": "2.0.0", + "requires": { + "@walletconnect/legacy-types": "^2.0.0", + "@walletconnect/legacy-utils": "^2.0.0", + "copy-to-clipboard": "^3.3.3", + "preact": "^10.12.0", + "qrcode": "^1.5.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "cliui": { + "version": "6.0.0", + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "pngjs": { + "version": "5.0.0" + }, + "preact": { + "version": "10.13.2" + }, + "qrcode": { + "version": "1.5.3", + "requires": { + "dijkstrajs": "^1.0.1", + "encode-utf8": "^1.0.3", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + } + }, + "wrap-ansi": { + "version": "6.2.0", + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "y18n": { + "version": "4.0.3" + }, + "yargs": { + "version": "15.4.1", + "requires": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + } + }, + "yargs-parser": { + "version": "18.1.3", + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } + }, + "@walletconnect/legacy-provider": { + "version": "2.0.0", + "requires": { + "@walletconnect/jsonrpc-http-connection": "^1.0.4", + "@walletconnect/jsonrpc-provider": "^1.0.6", + "@walletconnect/legacy-client": "^2.0.0", + "@walletconnect/legacy-modal": "^2.0.0", + "@walletconnect/legacy-types": "^2.0.0", + "@walletconnect/legacy-utils": "^2.0.0" + } + }, + "@walletconnect/legacy-types": { + "version": "2.0.0", + "requires": { + "@walletconnect/jsonrpc-types": "^1.0.2" + } + }, + "@walletconnect/legacy-utils": { + "version": "2.0.0", + "requires": { + "@walletconnect/encoding": "^1.0.2", + "@walletconnect/jsonrpc-utils": "^1.0.4", + "@walletconnect/legacy-types": "^2.0.0", + "@walletconnect/safe-json": "^1.0.1", + "@walletconnect/window-getters": "^1.0.1", + "@walletconnect/window-metadata": "^1.0.1", + "detect-browser": "^5.3.0", + "query-string": "^6.13.5" + }, + "dependencies": { + "@walletconnect/safe-json": { + "version": "1.0.2", + "requires": { + "tslib": "1.14.1" + } + }, + "@walletconnect/window-getters": { + "version": "1.0.1", + "requires": { + "tslib": "1.14.1" + } + }, + "@walletconnect/window-metadata": { + "version": "1.0.1", + "requires": { + "@walletconnect/window-getters": "^1.0.1", + "tslib": "1.14.1" + } + }, + "detect-browser": { + "version": "5.3.0" + }, + "query-string": { + "version": "6.14.1", + "requires": { + "decode-uri-component": "^0.2.0", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + } + }, + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/logger": { + "version": "2.0.1", + "requires": { + "pino": "7.11.0", + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/mobile-registry": { + "version": "1.4.0" + }, + "@walletconnect/qrcode-modal": { + "version": "1.8.0", + "requires": { + "@walletconnect/browser-utils": "^1.8.0", + "@walletconnect/mobile-registry": "^1.4.0", + "@walletconnect/types": "^1.8.0", + "copy-to-clipboard": "^3.3.1", + "preact": "10.4.1", + "qrcode": "1.4.4" + } + }, + "@walletconnect/randombytes": { + "version": "1.0.3", + "requires": { + "@walletconnect/encoding": "^1.0.2", + "@walletconnect/environment": "^1.0.1", + "randombytes": "^2.1.0", + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/relay-api": { + "version": "1.0.9", + "requires": { + "@walletconnect/jsonrpc-types": "^1.0.2", + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/relay-auth": { + "version": "1.0.4", + "requires": { + "@stablelib/ed25519": "^1.0.2", + "@stablelib/random": "^1.0.1", + "@walletconnect/safe-json": "^1.0.1", + "@walletconnect/time": "^1.0.2", + "tslib": "1.14.1", + "uint8arrays": "^3.0.0" + }, + "dependencies": { + "@walletconnect/safe-json": { + "version": "1.0.2", + "requires": { + "tslib": "1.14.1" + } + }, + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/safe-json": { + "version": "1.0.0" + }, + "@walletconnect/sign-client": { + "version": "2.7.1", + "requires": { + "@walletconnect/core": "2.7.1", + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/logger": "^2.0.1", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.1", + "@walletconnect/utils": "2.7.1", + "events": "^3.3.0" + }, + "dependencies": { + "@walletconnect/types": { + "version": "2.7.1", + "requires": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "events": "^3.3.0" + } + } + } + }, + "@walletconnect/time": { + "version": "1.0.2", + "requires": { + "tslib": "1.14.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/types": { + "version": "1.8.0" + }, + "@walletconnect/universal-provider": { + "version": "2.7.0", + "requires": { + "@walletconnect/jsonrpc-http-connection": "^1.0.4", + "@walletconnect/jsonrpc-provider": "^1.0.11", + "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/logger": "^2.0.1", + "@walletconnect/sign-client": "2.7.0", + "@walletconnect/types": "2.7.0", + "@walletconnect/utils": "2.7.0", + "eip1193-provider": "1.0.1", + "events": "^3.3.0" + }, + "dependencies": { + "@walletconnect/core": { + "version": "2.7.0", + "requires": { + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-provider": "^1.0.12", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/jsonrpc-ws-connection": "^1.0.11", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "@walletconnect/relay-api": "^1.0.9", + "@walletconnect/relay-auth": "^1.0.4", + "@walletconnect/safe-json": "^1.0.2", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.0", + "@walletconnect/utils": "2.7.0", + "events": "^3.3.0", + "lodash.isequal": "4.5.0", + "uint8arrays": "^3.1.0" + } + }, + "@walletconnect/safe-json": { + "version": "1.0.2", + "requires": { + "tslib": "1.14.1" + } + }, + "@walletconnect/sign-client": { + "version": "2.7.0", + "requires": { + "@walletconnect/core": "2.7.0", + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/logger": "^2.0.1", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.0", + "@walletconnect/utils": "2.7.0", + "events": "^3.3.0" + } + }, + "@walletconnect/types": { + "version": "2.7.0", + "requires": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "events": "^3.3.0" + } + }, + "@walletconnect/utils": { + "version": "2.7.0", + "requires": { + "@stablelib/chacha20poly1305": "1.0.1", + "@stablelib/hkdf": "1.0.1", + "@stablelib/random": "^1.0.2", + "@stablelib/sha256": "1.0.1", + "@stablelib/x25519": "^1.0.3", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/relay-api": "^1.0.9", + "@walletconnect/safe-json": "^1.0.2", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.0", + "@walletconnect/window-getters": "^1.0.1", + "@walletconnect/window-metadata": "^1.0.1", + "detect-browser": "5.3.0", + "query-string": "7.1.1", + "uint8arrays": "^3.1.0" + } + }, + "@walletconnect/window-getters": { + "version": "1.0.1", + "requires": { + "tslib": "1.14.1" + } + }, + "@walletconnect/window-metadata": { + "version": "1.0.1", + "requires": { + "@walletconnect/window-getters": "^1.0.1", + "tslib": "1.14.1" + } + }, + "detect-browser": { + "version": "5.3.0" + }, + "query-string": { + "version": "7.1.1", + "requires": { + "decode-uri-component": "^0.2.0", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + } + }, + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/utils": { + "version": "2.7.1", + "requires": { + "@stablelib/chacha20poly1305": "1.0.1", + "@stablelib/hkdf": "1.0.1", + "@stablelib/random": "^1.0.2", + "@stablelib/sha256": "1.0.1", + "@stablelib/x25519": "^1.0.3", + "@walletconnect/jsonrpc-utils": "^1.0.7", + "@walletconnect/relay-api": "^1.0.9", + "@walletconnect/safe-json": "^1.0.2", + "@walletconnect/time": "^1.0.2", + "@walletconnect/types": "2.7.1", + "@walletconnect/window-getters": "^1.0.1", + "@walletconnect/window-metadata": "^1.0.1", + "detect-browser": "5.3.0", + "query-string": "7.1.3", + "uint8arrays": "^3.1.0" + }, + "dependencies": { + "@walletconnect/safe-json": { + "version": "1.0.2", + "requires": { + "tslib": "1.14.1" + } + }, + "@walletconnect/types": { + "version": "2.7.1", + "requires": { + "@walletconnect/events": "^1.0.1", + "@walletconnect/heartbeat": "1.2.1", + "@walletconnect/jsonrpc-types": "^1.0.2", + "@walletconnect/keyvaluestorage": "^1.0.2", + "@walletconnect/logger": "^2.0.1", + "events": "^3.3.0" + } + }, + "@walletconnect/window-getters": { + "version": "1.0.1", + "requires": { + "tslib": "1.14.1" + } + }, + "@walletconnect/window-metadata": { + "version": "1.0.1", + "requires": { + "@walletconnect/window-getters": "^1.0.1", + "tslib": "1.14.1" + } + }, + "detect-browser": { + "version": "5.3.0" + }, + "tslib": { + "version": "1.14.1" + } + } + }, + "@walletconnect/window-getters": { + "version": "1.0.0" + }, + "@walletconnect/window-metadata": { + "version": "1.0.0", + "requires": { + "@walletconnect/window-getters": "^1.0.0" + } + }, + "@web3modal/core": { + "version": "2.3.7", + "requires": { + "buffer": "6.0.3", + "valtio": "1.10.4" + } + }, + "@web3modal/standalone": { + "version": "2.3.7", + "requires": { + "@web3modal/core": "2.3.7", + "@web3modal/ui": "2.3.7" + } + }, + "@web3modal/ui": { + "version": "2.3.7", + "requires": { + "@web3modal/core": "2.3.7", + "lit": "2.7.3", + "motion": "10.15.5", + "qrcode": "1.5.3" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "cliui": { + "version": "6.0.0", + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^6.2.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "pngjs": { + "version": "5.0.0" + }, + "qrcode": { + "version": "1.5.3", + "requires": { + "dijkstrajs": "^1.0.1", + "encode-utf8": "^1.0.3", + "pngjs": "^5.0.0", + "yargs": "^15.3.1" + } + }, + "wrap-ansi": { + "version": "6.2.0", + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "y18n": { + "version": "4.0.3" + }, + "yargs": { + "version": "15.4.1", + "requires": { + "cliui": "^6.0.0", + "decamelize": "^1.2.0", + "find-up": "^4.1.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^4.2.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^18.1.2" + } + }, + "yargs-parser": { + "version": "18.1.3", + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } + }, + "@webassemblyjs/ast": { + "version": "1.11.5", + "requires": { + "@webassemblyjs/helper-numbers": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5" + } + }, + "@webassemblyjs/floating-point-hex-parser": { + "version": "1.11.5" + }, + "@webassemblyjs/helper-api-error": { + "version": "1.11.5" + }, + "@webassemblyjs/helper-buffer": { + "version": "1.11.5" + }, + "@webassemblyjs/helper-numbers": { + "version": "1.11.5", + "requires": { + "@webassemblyjs/floating-point-hex-parser": "1.11.5", + "@webassemblyjs/helper-api-error": "1.11.5", + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/helper-wasm-bytecode": { + "version": "1.11.5" + }, + "@webassemblyjs/helper-wasm-section": { + "version": "1.11.5", + "requires": { + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-buffer": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5", + "@webassemblyjs/wasm-gen": "1.11.5" + } + }, + "@webassemblyjs/ieee754": { + "version": "1.11.5", + "requires": { + "@xtuc/ieee754": "^1.2.0" + } + }, + "@webassemblyjs/leb128": { + "version": "1.11.5", + "requires": { + "@xtuc/long": "4.2.2" + } + }, + "@webassemblyjs/utf8": { + "version": "1.11.5" + }, + "@webassemblyjs/wasm-edit": { + "version": "1.11.5", + "requires": { + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-buffer": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5", + "@webassemblyjs/helper-wasm-section": "1.11.5", + "@webassemblyjs/wasm-gen": "1.11.5", + "@webassemblyjs/wasm-opt": "1.11.5", + "@webassemblyjs/wasm-parser": "1.11.5", + "@webassemblyjs/wast-printer": "1.11.5" + } + }, + "@webassemblyjs/wasm-gen": { + "version": "1.11.5", + "requires": { + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5", + "@webassemblyjs/ieee754": "1.11.5", + "@webassemblyjs/leb128": "1.11.5", + "@webassemblyjs/utf8": "1.11.5" + } + }, + "@webassemblyjs/wasm-opt": { + "version": "1.11.5", + "requires": { + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-buffer": "1.11.5", + "@webassemblyjs/wasm-gen": "1.11.5", + "@webassemblyjs/wasm-parser": "1.11.5" + } + }, + "@webassemblyjs/wasm-parser": { + "version": "1.11.5", + "requires": { + "@webassemblyjs/ast": "1.11.5", + "@webassemblyjs/helper-api-error": "1.11.5", + "@webassemblyjs/helper-wasm-bytecode": "1.11.5", + "@webassemblyjs/ieee754": "1.11.5", + "@webassemblyjs/leb128": "1.11.5", + "@webassemblyjs/utf8": "1.11.5" + } + }, + "@webassemblyjs/wast-printer": { + "version": "1.11.5", + "requires": { + "@webassemblyjs/ast": "1.11.5", + "@xtuc/long": "4.2.2" + } + }, + "@wormhole-foundation/wormhole-connect": { + "version": "0.0.1-beta.4", + "resolved": "https://registry.npmjs.org/@wormhole-foundation/wormhole-connect/-/wormhole-connect-0.0.1-beta.4.tgz", + "integrity": "sha512-sRw6fqJNiPs6GLXo75FOHy6GcZgSnTfdbzuNe7M+i+YdKTPJ+nifE02/UnVa8azH02PcsM8sIkQTo/jQhTwzwg==", + "requires": { + "@mui/material": "^5.12.1" + } + }, + "@wormhole-foundation/wormhole-connect-app": { + "version": "file:wormhole-connect", + "requires": { + "@babel/preset-env": "^7.20.2", + "@certusone/wormhole-sdk": "^0.9.13", + "@emotion/react": "^11.10.5", + "@emotion/styled": "^11.10.5", + "@mui/icons-material": "^5.11.0", + "@mui/material": "^5.11.4", + "@nomad-xyz/multi-provider": "^1.1.0", + "@reduxjs/toolkit": "^1.9.1", + "@solana/wallet-adapter-wallets": "^0.19.11", + "@types/jest": "^27.5.2", + "@types/node": "^16.18.11", + "@types/node-fetch": "^2.6.3", + "@types/react": "^18.0.26", + "@types/react-dom": "^18.0.10", + "@types/react-redux": "^7.1.25", + "@typescript-eslint/eslint-plugin": "^5.48.1", + "@typescript-eslint/parser": "^5.48.1", + "@xlabs-libs/wallet-aggregator-core": "^0.0.1-alpha.12", + "@xlabs-libs/wallet-aggregator-evm": "^0.0.1-alpha.25", + "@xlabs-libs/wallet-aggregator-react": "^0.0.1-alpha.11", + "@xlabs-libs/wallet-aggregator-solana": "^0.0.1-alpha.10", + "axios": "^1.2.4", + "babel-jest": "^29.5.0", + "bn.js": "^5.2.1", + "browserify-zlib": "^0.2.0", + "buffer": "^6.0.3", + "crypto-browserify": "^3.12.0", + "env-cmd": "^10.1.0", + "eslint": "^8.31.0", + "eslint-config-prettier": "^8.6.0", + "ethers": "^5.7.2", + "file-loader": "^6.2.0", + "https-browserify": "^1.0.0", + "jest": "^29.5.0", + "material-ui-popup-state": "^5.0.4", + "os-browserify": "^0.3.0", + "postcss": "^8.4.21", + "prettier": "^2.8.2", + "react": "^18.2.0", + "react-app-rewired": "^2.2.1", + "react-dom": "^18.2.0", + "react-redux": "^8.0.5", + "react-scripts": "5.0.1", + "stream-browserify": "^3.0.0", + "stream-http": "^3.2.0", + "ts-jest": "^29.0.5", + "tss-react": "^4.5.2", + "typescript": "^4.9.4", + "url": "^0.11.0", + "web-vitals": "^2.1.4" + } + }, + "@wormhole-foundation/wormhole-connect-sdk": { + "version": "file:sdk", + "requires": { + "@certusone/wormhole-sdk": "^0.9.14", + "@injectivelabs/sdk-ts": "1.0.211", + "@nomad-xyz/multi-provider": "^1.1.0", + "@solana/spl-token": "^0.3.7", + "@solana/web3.js": "^1.73.0", + "@terra-money/terra.js": "^3.1.7", + "@types/bs58": "^4.0.1", + "@types/elliptic": "^6.4.14", + "@types/jest": "^27.5.2", + "@types/node": "^16.18.11", + "@types/node-fetch": "^2.6.2", + "@typescript-eslint/eslint-plugin": "^5.48.1", + "@typescript-eslint/parser": "^5.48.1", + "@xpla/xpla.js": "^0.2.3", + "algosdk": "^1.15.0", + "aptos": "^1.6.0", + "bech32": "^2.0.0", + "bn.js": "^5.2.1", + "buffer-layout": "^1.2.2", + "elliptic": "^6.5.4", + "eslint": "^8.31.0", + "eslint-config-prettier": "^8.6.0", + "ethers": "^5.7.2", + "near-api-js": "^1.1.0", + "prettier": "^2.8.2", + "typescript": "^4.9.4" + }, + "dependencies": { + "@cosmjs/amino": { + "version": "0.29.5", + "requires": { + "@cosmjs/crypto": "^0.29.5", + "@cosmjs/encoding": "^0.29.5", + "@cosmjs/math": "^0.29.5", + "@cosmjs/utils": "^0.29.5" + } + }, + "@cosmjs/crypto": { + "version": "0.29.5", + "requires": { + "@cosmjs/encoding": "^0.29.5", + "@cosmjs/math": "^0.29.5", + "@cosmjs/utils": "^0.29.5", + "@noble/hashes": "^1", + "bn.js": "^5.2.0", + "elliptic": "^6.5.4", + "libsodium-wrappers": "^0.7.6" + } + }, + "@cosmjs/encoding": { + "version": "0.29.5", + "requires": { + "base64-js": "^1.3.0", + "bech32": "^1.1.4", + "readonly-date": "^1.0.0" + }, + "dependencies": { + "bech32": { + "version": "1.1.4" + } + } + }, + "@cosmjs/json-rpc": { + "version": "0.29.5", + "requires": { + "@cosmjs/stream": "^0.29.5", + "xstream": "^11.14.0" + } + }, + "@cosmjs/math": { + "version": "0.29.5", + "requires": { + "bn.js": "^5.2.0" + } + }, + "@cosmjs/proto-signing": { + "version": "0.29.5", + "requires": { + "@cosmjs/amino": "^0.29.5", + "@cosmjs/crypto": "^0.29.5", + "@cosmjs/encoding": "^0.29.5", + "@cosmjs/math": "^0.29.5", + "@cosmjs/utils": "^0.29.5", + "cosmjs-types": "^0.5.2", + "long": "^4.0.0" + } + }, + "@cosmjs/socket": { + "version": "0.29.5", + "requires": { + "@cosmjs/stream": "^0.29.5", + "isomorphic-ws": "^4.0.1", + "ws": "^7", + "xstream": "^11.14.0" + } + }, + "@cosmjs/stream": { + "version": "0.29.5", + "requires": { + "xstream": "^11.14.0" + } + }, + "@cosmjs/tendermint-rpc": { + "version": "0.29.5", + "requires": { + "@cosmjs/crypto": "^0.29.5", + "@cosmjs/encoding": "^0.29.5", + "@cosmjs/json-rpc": "^0.29.5", + "@cosmjs/math": "^0.29.5", + "@cosmjs/socket": "^0.29.5", + "@cosmjs/stream": "^0.29.5", + "@cosmjs/utils": "^0.29.5", + "axios": "^0.21.2", + "readonly-date": "^1.0.0", + "xstream": "^11.14.0" + }, + "dependencies": { + "axios": { + "version": "0.21.4", + "requires": { + "follow-redirects": "^1.14.0" + } + } + } + }, + "@cosmjs/utils": { + "version": "0.29.5" + }, + "@injectivelabs/sdk-ts": { + "version": "1.0.211", + "requires": { + "@apollo/client": "^3.5.8", + "@cosmjs/amino": "^0.29.0", + "@cosmjs/proto-signing": "^0.29.0", + "@cosmjs/tendermint-rpc": "^0.29.0", + "@ethersproject/bytes": "^5.7.0", + "@improbable-eng/grpc-web": "^0.15.0", + "@improbable-eng/grpc-web-node-http-transport": "^0.15.0", + "@improbable-eng/grpc-web-react-native-transport": "^0.15.0", + "@injectivelabs/chain-api": "1.8.2-no-tse", + "@injectivelabs/exceptions": "^1.0.25", + "@injectivelabs/indexer-api": "1.0.31", + "@injectivelabs/networks": "^1.0.37", + "@injectivelabs/token-metadata": "^1.0.51", + "@injectivelabs/ts-types": "^1.0.14", + "@injectivelabs/utils": "^1.0.31", + "@metamask/eth-sig-util": "^4.0.1", + "@types/google-protobuf": "^3.15.5", + "axios": "^0.27.2", + "bech32": "^2.0.0", + "bip39": "^3.0.4", + "eth-crypto": "^2.3.0", + "ethereumjs-abi": "^0.6.8", + "ethereumjs-util": "^7.1.4", + "ethers": "^5.6.4", + "ethjs-util": "^0.1.6", + "google-protobuf": "^3.21.0", + "graphql": "^16.3.0", + "http-status-codes": "^2.2.0", + "jscrypto": "^1.0.3", + "keccak256": "^1.0.6", + "link-module-alias": "^1.2.0", + "secp256k1": "^4.0.3", + "shx": "^0.3.2", + "snakecase-keys": "^5.4.1" + } + }, + "@noble/hashes": { + "version": "1.1.3" + }, + "aptos": { + "version": "1.8.4", + "requires": { + "@noble/hashes": "1.1.3", + "@scure/bip39": "1.1.0", + "axios": "0.27.2", + "form-data": "4.0.0", + "tweetnacl": "1.0.3" + } + }, + "axios": { + "version": "0.27.2", + "requires": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + }, + "cosmjs-types": { + "version": "0.5.2", + "requires": { + "long": "^4.0.0", + "protobufjs": "~6.11.2" + } + }, + "form-data": { + "version": "4.0.0", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, + "protobufjs": { + "version": "6.11.3", + "requires": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + } + } + } + }, + "@wry/context": { + "version": "0.7.0", + "requires": { + "tslib": "^2.3.0" + } + }, + "@wry/equality": { + "version": "0.5.3", + "requires": { + "tslib": "^2.3.0" + } + }, + "@wry/trie": { + "version": "0.3.2", + "requires": { + "tslib": "^2.3.0" + } + }, + "@xlabs-libs/wallet-aggregator-core": { + "version": "0.0.1-alpha.12", + "requires": { + "eventemitter3": "^5.0.0" + }, + "dependencies": { + "eventemitter3": { + "version": "5.0.0" + } + } + }, + "@xlabs-libs/wallet-aggregator-evm": { + "version": "0.0.1-alpha.25", + "requires": { + "@ethersproject/abstract-provider": "^5.7.0", + "@ethersproject/bytes": "^5.7.0", + "@wagmi/core": "^0.10.8", + "@web3modal/standalone": "^2.2.1", + "@xlabs-libs/wallet-aggregator-core": "^0.0.1-alpha.12", + "ethers": "^5.7.2", + "versions": "^10.4.1", + "web3-provider-engine": "^16.0.4" + } + }, + "@xlabs-libs/wallet-aggregator-react": { + "version": "0.0.1-alpha.11", + "requires": { + "@xlabs-libs/wallet-aggregator-core": "^0.0.1-alpha.11" + } + }, + "@xlabs-libs/wallet-aggregator-solana": { + "version": "0.0.1-alpha.10", + "requires": { + "@solana/wallet-adapter-base": "^0.9.20", + "@xlabs-libs/wallet-aggregator-core": "^0.0.1-alpha.12" + } + }, + "@xpla/xpla.js": { + "version": "0.2.3", + "requires": { + "@ethersproject/bytes": "^5.6.1", + "@ethersproject/keccak256": "^5.6.1", + "@ethersproject/signing-key": "^5.6.2", + "@terra-money/legacy.proto": "npm:@terra-money/terra.proto@^0.1.7", + "@terra-money/terra.proto": "^2.1.0", + "axios": "^0.26.1", + "bech32": "^2.0.0", + "bip32": "^2.0.6", + "bip39": "^3.0.3", + "bufferutil": "^4.0.3", + "crypto-addr-codec": "^0.1.7", + "decimal.js": "^10.2.1", + "elliptic": "^6.5.4", + "ethereumjs-util": "^7.1.5", + "jscrypto": "^1.0.1", + "readable-stream": "^3.6.0", + "secp256k1": "^4.0.2", + "tmp": "^0.2.1", + "utf-8-validate": "^5.0.5", + "ws": "^7.5.8" + }, + "dependencies": { + "axios": { + "version": "0.26.1", + "requires": { + "follow-redirects": "^1.14.8" + } + } + } + }, + "@xtuc/ieee754": { + "version": "1.2.0" + }, + "@xtuc/long": { + "version": "4.2.2" + }, + "abab": { + "version": "2.0.6" + }, + "abitype": { + "version": "0.3.0", + "requires": {} + }, + "abortcontroller-polyfill": { + "version": "1.7.5" + }, + "abstract-leveldown": { + "version": "2.6.3", + "requires": { + "xtend": "~4.0.0" + } + }, + "accepts": { + "version": "1.3.8", + "requires": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + } + }, + "acorn": { + "version": "8.8.2" + }, + "acorn-globals": { + "version": "6.0.0", + "requires": { + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1" + }, + "dependencies": { + "acorn": { + "version": "7.4.1" + } + } + }, + "acorn-import-assertions": { + "version": "1.8.0", + "requires": {} + }, + "acorn-jsx": { + "version": "5.3.2", + "requires": {} + }, + "acorn-walk": { + "version": "7.2.0" + }, + "address": { + "version": "1.2.2" + }, + "adjust-sourcemap-loader": { + "version": "4.0.0", + "requires": { + "loader-utils": "^2.0.0", + "regex-parser": "^2.2.11" + } + }, + "aes-js": { + "version": "3.1.2" + }, + "agent-base": { + "version": "6.0.2", + "requires": { + "debug": "4" + } + }, + "agentkeepalive": { + "version": "4.3.0", + "requires": { + "debug": "^4.1.0", + "depd": "^2.0.0", + "humanize-ms": "^1.2.1" + } + }, + "ajv": { + "version": "6.12.6", + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "ajv-formats": { + "version": "2.1.1", + "requires": { + "ajv": "^8.0.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "json-schema-traverse": { + "version": "1.0.0" + } + } + }, + "ajv-keywords": { + "version": "3.5.2", + "requires": {} + }, + "algo-msgpack-with-bigint": { + "version": "2.1.1" + }, + "algosdk": { + "version": "1.24.1", + "requires": { + "algo-msgpack-with-bigint": "^2.1.1", + "buffer": "^6.0.2", + "cross-fetch": "^3.1.5", + "hi-base32": "^0.5.1", + "js-sha256": "^0.9.0", + "js-sha3": "^0.8.0", + "js-sha512": "^0.8.0", + "json-bigint": "^1.0.0", + "tweetnacl": "^1.0.3", + "vlq": "^2.0.4" + } + }, + "ansi-escapes": { + "version": "4.3.2", + "requires": { + "type-fest": "^0.21.3" + } + }, + "ansi-html-community": { + "version": "0.0.8" + }, + "ansi-regex": { + "version": "5.0.1" + }, + "ansi-styles": { + "version": "3.2.1", + "requires": { + "color-convert": "^1.9.0" + } + }, + "any-promise": { + "version": "1.3.0" + }, + "anymatch": { + "version": "3.1.3", + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "aptos": { + "version": "1.5.0", + "requires": { + "@noble/hashes": "1.1.3", + "@scure/bip39": "1.1.0", + "axios": "0.27.2", + "form-data": "4.0.0", + "tweetnacl": "1.0.3" + }, + "dependencies": { + "@noble/hashes": { + "version": "1.1.3" + }, + "axios": { + "version": "0.27.2", + "requires": { + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" + } + } + } + }, + "arg": { + "version": "5.0.2" + }, + "argparse": { + "version": "1.0.10", + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "aria-query": { + "version": "5.1.3", + "requires": { + "deep-equal": "^2.0.5" + } + }, + "array-buffer-byte-length": { + "version": "1.0.0", + "requires": { + "call-bind": "^1.0.2", + "is-array-buffer": "^3.0.1" + } + }, + "array-flatten": { + "version": "1.1.1" + }, + "array-includes": { + "version": "3.1.6", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "is-string": "^1.0.7" + } + }, + "array-union": { + "version": "2.1.0" + }, + "array.prototype.flat": { + "version": "1.3.1", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + } + }, + "array.prototype.flatmap": { + "version": "1.3.1", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0" + } + }, + "array.prototype.reduce": { + "version": "1.0.5", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-array-method-boxes-properly": "^1.0.0", + "is-string": "^1.0.7" + } + }, + "array.prototype.tosorted": { + "version": "1.1.1", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "es-shim-unscopables": "^1.0.0", + "get-intrinsic": "^1.1.3" + } + }, + "asap": { + "version": "2.0.6" + }, + "asn1": { + "version": "0.2.6", + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "asn1.js": { + "version": "5.4.1", + "requires": { + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "safer-buffer": "^2.1.0" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0" + } + } + }, + "assert": { + "version": "2.0.0", + "requires": { + "es6-object-assign": "^1.1.0", + "is-nan": "^1.2.1", + "object-is": "^1.0.1", + "util": "^0.12.0" + } + }, + "assert-plus": { + "version": "1.0.0" + }, + "ast-types-flow": { + "version": "0.0.7" + }, + "async": { + "version": "2.6.4", + "requires": { + "lodash": "^4.17.14" + } + }, + "async-eventemitter": { + "version": "0.2.4", + "requires": { + "async": "^2.4.0" + } + }, + "async-limiter": { + "version": "1.0.1" + }, + "async-mutex": { + "version": "0.4.0", + "requires": { + "tslib": "^2.4.0" + } + }, + "asynckit": { + "version": "0.4.0" + }, + "at-least-node": { + "version": "1.0.0" + }, + "atomic-sleep": { + "version": "1.0.0" + }, + "autoprefixer": { + "version": "10.4.14", + "requires": { + "browserslist": "^4.21.5", + "caniuse-lite": "^1.0.30001464", + "fraction.js": "^4.2.0", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + } + }, + "available-typed-arrays": { + "version": "1.0.5" + }, + "aws-sign2": { + "version": "0.7.0" + }, + "aws4": { + "version": "1.12.0" + }, + "axe-core": { + "version": "4.7.0" + }, + "axios": { + "version": "1.3.6", + "requires": { + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "axobject-query": { + "version": "3.1.1", + "requires": { + "deep-equal": "^2.0.5" + } + }, + "babel-jest": { + "version": "29.5.0", + "requires": { + "@jest/transform": "^29.5.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.5.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "babel-loader": { + "version": "8.3.0", + "requires": { + "find-cache-dir": "^3.3.1", + "loader-utils": "^2.0.0", + "make-dir": "^3.1.0", + "schema-utils": "^2.6.5" + }, + "dependencies": { + "schema-utils": { + "version": "2.7.1", + "requires": { + "@types/json-schema": "^7.0.5", + "ajv": "^6.12.4", + "ajv-keywords": "^3.5.2" + } + } + } + }, + "babel-plugin-istanbul": { + "version": "6.1.1", + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + } + }, + "babel-plugin-jest-hoist": { + "version": "29.5.0", + "requires": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + } + }, + "babel-plugin-macros": { + "version": "3.1.0", + "requires": { + "@babel/runtime": "^7.12.5", + "cosmiconfig": "^7.0.0", + "resolve": "^1.19.0" + } + }, + "babel-plugin-named-asset-import": { + "version": "0.3.8", + "requires": {} + }, + "babel-plugin-polyfill-corejs2": { + "version": "0.3.3", + "requires": { + "@babel/compat-data": "^7.17.7", + "@babel/helper-define-polyfill-provider": "^0.3.3", + "semver": "^6.1.1" + } + }, + "babel-plugin-polyfill-corejs3": { + "version": "0.6.0", + "requires": { + "@babel/helper-define-polyfill-provider": "^0.3.3", + "core-js-compat": "^3.25.1" + } + }, + "babel-plugin-polyfill-regenerator": { + "version": "0.4.1", + "requires": { + "@babel/helper-define-polyfill-provider": "^0.3.3" + } + }, + "babel-plugin-transform-react-remove-prop-types": { + "version": "0.4.24" + }, + "babel-preset-current-node-syntax": { + "version": "1.0.1", + "requires": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + } + }, + "babel-preset-jest": { + "version": "29.5.0", + "requires": { + "babel-plugin-jest-hoist": "^29.5.0", + "babel-preset-current-node-syntax": "^1.0.0" + } + }, + "babel-preset-react-app": { + "version": "10.0.1", + "requires": { + "@babel/core": "^7.16.0", + "@babel/plugin-proposal-class-properties": "^7.16.0", + "@babel/plugin-proposal-decorators": "^7.16.4", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0", + "@babel/plugin-proposal-numeric-separator": "^7.16.0", + "@babel/plugin-proposal-optional-chaining": "^7.16.0", + "@babel/plugin-proposal-private-methods": "^7.16.0", + "@babel/plugin-transform-flow-strip-types": "^7.16.0", + "@babel/plugin-transform-react-display-name": "^7.16.0", + "@babel/plugin-transform-runtime": "^7.16.4", + "@babel/preset-env": "^7.16.4", + "@babel/preset-react": "^7.16.0", + "@babel/preset-typescript": "^7.16.0", + "@babel/runtime": "^7.16.3", + "babel-plugin-macros": "^3.1.0", + "babel-plugin-transform-react-remove-prop-types": "^0.4.24" + } + }, + "backoff": { + "version": "2.5.0", + "requires": { + "precond": "0.2" + } + }, + "balanced-match": { + "version": "1.0.2" + }, + "base-x": { + "version": "3.0.9", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "base64-js": { + "version": "1.5.1" + }, + "base64url": { + "version": "3.0.1" + }, + "batch": { + "version": "0.6.1" + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "requires": { + "tweetnacl": "^0.14.3" + }, + "dependencies": { + "tweetnacl": { + "version": "0.14.5" + } + } + }, + "bech32": { + "version": "2.0.0" + }, + "bfj": { + "version": "7.0.2", + "requires": { + "bluebird": "^3.5.5", + "check-types": "^11.1.1", + "hoopy": "^0.1.4", + "tryer": "^1.0.1" + } + }, + "big-integer": { + "version": "1.6.36" + }, + "big.js": { + "version": "5.2.2" + }, + "bigint-buffer": { + "version": "1.1.5", + "requires": { + "bindings": "^1.3.0" + } + }, + "bignumber.js": { + "version": "9.1.1" + }, + "binary-extensions": { + "version": "2.2.0" + }, + "binary-parser": { + "version": "2.2.1" + }, + "bind-decorator": { + "version": "1.0.11" + }, + "bindings": { + "version": "1.5.0", + "requires": { + "file-uri-to-path": "1.0.0" + } + }, + "bip32": { + "version": "2.0.6", + "requires": { + "@types/node": "10.12.18", + "bs58check": "^2.1.1", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "tiny-secp256k1": "^1.1.3", + "typeforce": "^1.11.5", + "wif": "^2.0.6" + }, + "dependencies": { + "@types/node": { + "version": "10.12.18" + } + } + }, + "bip39": { + "version": "3.1.0", + "requires": { + "@noble/hashes": "^1.2.0" + } + }, + "bip66": { + "version": "1.1.5", + "optional": true, + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "blakejs": { + "version": "1.2.1" + }, + "bluebird": { + "version": "3.7.2" + }, + "bn.js": { + "version": "5.2.1" + }, + "body-parser": { + "version": "1.20.2", + "requires": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "requires": { + "ms": "2.0.0" + } + }, + "http-errors": { + "version": "2.0.0", + "requires": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + } + }, + "iconv-lite": { + "version": "0.4.24", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ms": { + "version": "2.0.0" + }, + "qs": { + "version": "6.11.0", + "requires": { + "side-channel": "^1.0.4" + } + }, + "statuses": { + "version": "2.0.1" + } + } + }, + "bonjour-service": { + "version": "1.1.1", + "requires": { + "array-flatten": "^2.1.2", + "dns-equal": "^1.0.0", + "fast-deep-equal": "^3.1.3", + "multicast-dns": "^7.2.5" + }, + "dependencies": { + "array-flatten": { + "version": "2.1.2" + } + } + }, + "boolbase": { + "version": "1.0.0" + }, + "borsh": { + "version": "0.7.0", + "requires": { + "bn.js": "^5.2.0", + "bs58": "^4.0.0", + "text-encoding-utf-8": "^1.0.2" + } + }, + "bowser": { + "version": "2.11.0" + }, + "brace-expansion": { + "version": "1.1.11", + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.2", + "requires": { + "fill-range": "^7.0.1" + } + }, + "brorand": { + "version": "1.1.0" + }, + "browser-headers": { + "version": "0.4.1" + }, + "browser-process-hrtime": { + "version": "1.0.0" + }, + "browserify-aes": { + "version": "1.2.0", + "requires": { + "buffer-xor": "^1.0.3", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.3", + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "browserify-cipher": { + "version": "1.0.1", + "requires": { + "browserify-aes": "^1.0.4", + "browserify-des": "^1.0.0", + "evp_bytestokey": "^1.0.0" + } + }, + "browserify-des": { + "version": "1.0.2", + "requires": { + "cipher-base": "^1.0.1", + "des.js": "^1.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "browserify-rsa": { + "version": "4.1.0", + "requires": { + "bn.js": "^5.0.0", + "randombytes": "^2.0.1" + } + }, + "browserify-sign": { + "version": "4.2.1", + "requires": { + "bn.js": "^5.1.1", + "browserify-rsa": "^4.0.1", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "elliptic": "^6.5.3", + "inherits": "^2.0.4", + "parse-asn1": "^5.1.5", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + } + }, + "browserify-zlib": { + "version": "0.2.0", + "requires": { + "pako": "~1.0.5" + }, + "dependencies": { + "pako": { + "version": "1.0.11" + } + } + }, + "browserslist": { + "version": "4.21.5", + "requires": { + "caniuse-lite": "^1.0.30001449", + "electron-to-chromium": "^1.4.284", + "node-releases": "^2.0.8", + "update-browserslist-db": "^1.0.10" + } + }, + "bs-logger": { + "version": "0.2.6", + "requires": { + "fast-json-stable-stringify": "2.x" + } + }, + "bs58": { + "version": "4.0.1", + "requires": { + "base-x": "^3.0.2" + } + }, + "bs58check": { + "version": "2.1.2", + "requires": { + "bs58": "^4.0.0", + "create-hash": "^1.1.0", + "safe-buffer": "^5.1.2" + } + }, + "bser": { + "version": "2.1.1", + "requires": { + "node-int64": "^0.4.0" + } + }, + "btoa": { + "version": "1.2.1" + }, + "buffer": { + "version": "6.0.3", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "buffer-alloc": { + "version": "1.2.0", + "requires": { + "buffer-alloc-unsafe": "^1.1.0", + "buffer-fill": "^1.0.0" + } + }, + "buffer-alloc-unsafe": { + "version": "1.1.0" + }, + "buffer-fill": { + "version": "1.0.0" + }, + "buffer-from": { + "version": "1.1.2" + }, + "buffer-layout": { + "version": "1.2.2" + }, + "buffer-to-arraybuffer": { + "version": "0.0.5" + }, + "buffer-xor": { + "version": "1.0.3" + }, + "bufferutil": { + "version": "4.0.7", + "requires": { + "node-gyp-build": "^4.3.0" + } + }, + "builtin-modules": { + "version": "3.3.0" + }, + "builtin-status-codes": { + "version": "3.0.0" + }, + "bytes": { + "version": "3.1.2" + }, + "cacheable-lookup": { + "version": "6.1.0" + }, + "cacheable-request": { + "version": "7.0.2", + "requires": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^4.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^6.0.1", + "responselike": "^2.0.0" + }, + "dependencies": { + "get-stream": { + "version": "5.2.0", + "requires": { + "pump": "^3.0.0" + } + }, + "lowercase-keys": { + "version": "2.0.0" + } + } + }, + "call-bind": { + "version": "1.0.2", + "requires": { + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" + } + }, + "callsites": { + "version": "3.1.0" + }, + "camel-case": { + "version": "4.1.2", + "requires": { + "pascal-case": "^3.1.2", + "tslib": "^2.0.3" + } + }, + "camelcase": { + "version": "5.3.1" + }, + "camelcase-css": { + "version": "2.0.1" + }, + "caniuse-api": { + "version": "3.0.0", + "requires": { + "browserslist": "^4.0.0", + "caniuse-lite": "^1.0.0", + "lodash.memoize": "^4.1.2", + "lodash.uniq": "^4.5.0" + } + }, + "caniuse-lite": { + "version": "1.0.30001481" + }, + "capability": { + "version": "0.2.5" + }, + "case-sensitive-paths-webpack-plugin": { + "version": "2.4.0" + }, + "caseless": { + "version": "0.12.0" + }, + "cbor-sync": { + "version": "1.0.4" + }, + "chalk": { + "version": "2.4.2", + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "dependencies": { + "escape-string-regexp": { + "version": "1.0.5" + } + } + }, + "char-regex": { + "version": "1.0.2" + }, + "check-types": { + "version": "11.2.2" + }, + "checkpoint-store": { + "version": "1.1.0", + "requires": { + "functional-red-black-tree": "^1.0.1" + } + }, + "chokidar": { + "version": "3.5.3", + "requires": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "fsevents": "~2.3.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "dependencies": { + "glob-parent": { + "version": "5.1.2", + "requires": { + "is-glob": "^4.0.1" + } + } + } + }, + "chownr": { + "version": "1.1.4" + }, + "chrome-trace-event": { + "version": "1.0.3" + }, + "ci-info": { + "version": "3.8.0" + }, + "cids": { + "version": "0.7.5", + "requires": { + "buffer": "^5.5.0", + "class-is": "^1.1.0", + "multibase": "~0.6.0", + "multicodec": "^1.0.0", + "multihashes": "~0.4.15" + }, + "dependencies": { + "buffer": { + "version": "5.7.1", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "multicodec": { + "version": "1.0.4", + "requires": { + "buffer": "^5.6.0", + "varint": "^5.0.0" + } + } + } + }, + "cipher-base": { + "version": "1.0.4", + "requires": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "cjs-module-lexer": { + "version": "1.2.2" + }, + "class-is": { + "version": "1.1.0" + }, + "classnames": { + "version": "2.3.2" + }, + "clean-css": { + "version": "5.3.2", + "requires": { + "source-map": "~0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1" + } + } + }, + "cliui": { + "version": "7.0.4", + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.0", + "wrap-ansi": "^7.0.0" + } + }, + "clone": { + "version": "2.1.2" + }, + "clone-response": { + "version": "1.0.3", + "requires": { + "mimic-response": "^1.0.0" + } + }, + "clsx": { + "version": "1.2.1" + }, + "co": { + "version": "4.6.0" + }, + "coa": { + "version": "2.0.2", + "requires": { + "@types/q": "^1.5.1", + "chalk": "^2.4.1", + "q": "^1.1.2" + } + }, + "collect-v8-coverage": { + "version": "1.0.1" + }, + "color-convert": { + "version": "1.9.3", + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3" + }, + "colord": { + "version": "2.9.3" + }, + "colorette": { + "version": "2.0.20" + }, + "combined-stream": { + "version": "1.0.8", + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "commander": { + "version": "4.1.1" + }, + "common-path-prefix": { + "version": "3.0.0" + }, + "common-tags": { + "version": "1.8.2" + }, + "commondir": { + "version": "1.0.1" + }, + "compressible": { + "version": "2.0.18", + "requires": { + "mime-db": ">= 1.43.0 < 2" + } + }, + "compression": { + "version": "1.7.4", + "requires": { + "accepts": "~1.3.5", + "bytes": "3.0.0", + "compressible": "~2.0.16", + "debug": "2.6.9", + "on-headers": "~1.0.2", + "safe-buffer": "5.1.2", + "vary": "~1.1.2" + }, + "dependencies": { + "bytes": { + "version": "3.0.0" + }, + "debug": { + "version": "2.6.9", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0" + }, + "safe-buffer": { + "version": "5.1.2" + } + } + }, + "concat-map": { + "version": "0.0.1" + }, + "confusing-browser-globals": { + "version": "1.0.11" + }, + "connect-history-api-fallback": { + "version": "2.0.0" + }, + "content-disposition": { + "version": "0.5.4", + "requires": { + "safe-buffer": "5.2.1" + } + }, + "content-hash": { + "version": "2.5.2", + "requires": { + "cids": "^0.7.1", + "multicodec": "^0.5.5", + "multihashes": "^0.4.15" + } + }, + "content-type": { + "version": "1.0.5" + }, + "convert-source-map": { + "version": "1.9.0" + }, + "cookie": { + "version": "0.5.0" + }, + "cookie-signature": { + "version": "1.0.6" + }, + "copy-to-clipboard": { + "version": "3.3.3", + "requires": { + "toggle-selection": "^1.0.6" + } + }, + "copyfiles": { + "version": "2.4.1", + "requires": { + "glob": "^7.0.5", + "minimatch": "^3.0.3", + "mkdirp": "^1.0.4", + "noms": "0.0.0", + "through2": "^2.0.1", + "untildify": "^4.0.0", + "yargs": "^16.1.0" + } + }, + "core-js": { + "version": "3.30.1" + }, + "core-js-compat": { + "version": "3.30.1", + "requires": { + "browserslist": "^4.21.5" + } + }, + "core-js-pure": { + "version": "3.30.1" + }, + "core-util-is": { + "version": "1.0.2" + }, + "cors": { + "version": "2.8.5", + "requires": { + "object-assign": "^4", + "vary": "^1" + } + }, + "cosmiconfig": { + "version": "7.1.0", + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.2.1", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.10.0" + } + }, + "cosmjs-types": { + "version": "0.7.2", + "requires": { + "long": "^4.0.0", + "protobufjs": "~6.11.2" + }, + "dependencies": { + "protobufjs": { + "version": "6.11.3", + "requires": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/long": "^4.0.1", + "@types/node": ">=13.7.0", + "long": "^4.0.0" + } + } + } + }, + "crc": { + "version": "3.8.0", + "requires": { + "buffer": "^5.1.0" + }, + "dependencies": { + "buffer": { + "version": "5.7.1", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + } + } + }, + "crc-32": { + "version": "1.2.2" + }, + "create-ecdh": { + "version": "4.0.4", + "requires": { + "bn.js": "^4.1.0", + "elliptic": "^6.5.3" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0" + } + } + }, + "create-hash": { + "version": "1.2.0", + "requires": { + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" + } + }, + "create-hmac": { + "version": "1.1.7", + "requires": { + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "cross-fetch": { + "version": "3.1.5", + "requires": { + "node-fetch": "2.6.7" + }, + "dependencies": { + "node-fetch": { + "version": "2.6.7", + "requires": { + "whatwg-url": "^5.0.0" + } + } + } + }, + "cross-spawn": { + "version": "7.0.3", + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "crypto-addr-codec": { + "version": "0.1.7", + "requires": { + "base-x": "^3.0.8", + "big-integer": "1.6.36", + "blakejs": "^1.1.0", + "bs58": "^4.0.1", + "ripemd160-min": "0.0.6", + "safe-buffer": "^5.2.0", + "sha3": "^2.1.1" + } + }, + "crypto-browserify": { + "version": "3.12.0", + "requires": { + "browserify-cipher": "^1.0.0", + "browserify-sign": "^4.0.0", + "create-ecdh": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.0", + "diffie-hellman": "^5.0.0", + "inherits": "^2.0.1", + "pbkdf2": "^3.0.3", + "public-encrypt": "^4.0.0", + "randombytes": "^2.0.0", + "randomfill": "^1.0.3" + } + }, + "crypto-hash": { + "version": "1.3.0" + }, + "crypto-js": { + "version": "4.1.1" + }, + "crypto-random-string": { + "version": "2.0.0" + }, + "css-blank-pseudo": { + "version": "3.0.3", + "requires": { + "postcss-selector-parser": "^6.0.9" + } + }, + "css-declaration-sorter": { + "version": "6.4.0", + "requires": {} + }, + "css-has-pseudo": { + "version": "3.0.4", + "requires": { + "postcss-selector-parser": "^6.0.9" + } + }, + "css-loader": { + "version": "6.7.3", + "requires": { + "icss-utils": "^5.1.0", + "postcss": "^8.4.19", + "postcss-modules-extract-imports": "^3.0.0", + "postcss-modules-local-by-default": "^4.0.0", + "postcss-modules-scope": "^3.0.0", + "postcss-modules-values": "^4.0.0", + "postcss-value-parser": "^4.2.0", + "semver": "^7.3.8" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.5.0", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0" + } + } + }, + "css-minimizer-webpack-plugin": { + "version": "3.4.1", + "requires": { + "cssnano": "^5.0.6", + "jest-worker": "^27.0.2", + "postcss": "^8.3.5", + "schema-utils": "^4.0.0", + "serialize-javascript": "^6.0.0", + "source-map": "^0.6.1" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "5.1.0", + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, + "has-flag": { + "version": "4.0.0" + }, + "jest-worker": { + "version": "27.5.1", + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + } + }, + "json-schema-traverse": { + "version": "1.0.0" + }, + "schema-utils": { + "version": "4.0.1", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } + }, + "source-map": { + "version": "0.6.1" + }, + "supports-color": { + "version": "8.1.1", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "css-prefers-color-scheme": { + "version": "6.0.3", + "requires": {} + }, + "css-select": { + "version": "4.3.0", + "requires": { + "boolbase": "^1.0.0", + "css-what": "^6.0.1", + "domhandler": "^4.3.1", + "domutils": "^2.8.0", + "nth-check": "^2.0.1" + } + }, + "css-select-base-adapter": { + "version": "0.1.1" + }, + "css-tree": { + "version": "1.0.0-alpha.37", + "requires": { + "mdn-data": "2.0.4", + "source-map": "^0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1" + } + } + }, + "css-what": { + "version": "6.1.0" + }, + "css.escape": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz", + "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg==" + }, + "cssdb": { + "version": "7.5.4" + }, + "cssesc": { + "version": "3.0.0" + }, + "cssnano": { + "version": "5.1.15", + "requires": { + "cssnano-preset-default": "^5.2.14", + "lilconfig": "^2.0.3", + "yaml": "^1.10.2" + } + }, + "cssnano-preset-default": { + "version": "5.2.14", + "requires": { + "css-declaration-sorter": "^6.3.1", + "cssnano-utils": "^3.1.0", + "postcss-calc": "^8.2.3", + "postcss-colormin": "^5.3.1", + "postcss-convert-values": "^5.1.3", + "postcss-discard-comments": "^5.1.2", + "postcss-discard-duplicates": "^5.1.0", + "postcss-discard-empty": "^5.1.1", + "postcss-discard-overridden": "^5.1.0", + "postcss-merge-longhand": "^5.1.7", + "postcss-merge-rules": "^5.1.4", + "postcss-minify-font-values": "^5.1.0", + "postcss-minify-gradients": "^5.1.1", + "postcss-minify-params": "^5.1.4", + "postcss-minify-selectors": "^5.2.1", + "postcss-normalize-charset": "^5.1.0", + "postcss-normalize-display-values": "^5.1.0", + "postcss-normalize-positions": "^5.1.1", + "postcss-normalize-repeat-style": "^5.1.1", + "postcss-normalize-string": "^5.1.0", + "postcss-normalize-timing-functions": "^5.1.0", + "postcss-normalize-unicode": "^5.1.1", + "postcss-normalize-url": "^5.1.0", + "postcss-normalize-whitespace": "^5.1.1", + "postcss-ordered-values": "^5.1.3", + "postcss-reduce-initial": "^5.1.2", + "postcss-reduce-transforms": "^5.1.0", + "postcss-svgo": "^5.1.0", + "postcss-unique-selectors": "^5.1.1" + } + }, + "cssnano-utils": { + "version": "3.1.0", + "requires": {} + }, + "csso": { + "version": "4.2.0", + "requires": { + "css-tree": "^1.1.2" + }, + "dependencies": { + "css-tree": { + "version": "1.1.3", + "requires": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + } + }, + "mdn-data": { + "version": "2.0.14" + }, + "source-map": { + "version": "0.6.1" + } + } + }, + "cssom": { + "version": "0.4.4" + }, + "cssstyle": { + "version": "2.3.0", + "requires": { + "cssom": "~0.3.6" + }, + "dependencies": { + "cssom": { + "version": "0.3.8" + } + } + }, + "csstype": { + "version": "3.1.2" + }, + "d": { + "version": "1.0.1", + "requires": { + "es5-ext": "^0.10.50", + "type": "^1.0.1" + } + }, + "damerau-levenshtein": { + "version": "1.0.8" + }, + "dashdash": { + "version": "1.14.1", + "requires": { + "assert-plus": "^1.0.0" + } + }, + "data-urls": { + "version": "2.0.0", + "requires": { + "abab": "^2.0.3", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.0.0" + }, + "dependencies": { + "tr46": { + "version": "2.1.0", + "requires": { + "punycode": "^2.1.1" + } + }, + "webidl-conversions": { + "version": "6.1.0" + }, + "whatwg-url": { + "version": "8.7.0", + "requires": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + } + } + } + }, + "debug": { + "version": "4.3.4", + "requires": { + "ms": "2.1.2" + } + }, + "decamelize": { + "version": "1.2.0" + }, + "decimal.js": { + "version": "10.4.3" + }, + "decode-uri-component": { + "version": "0.2.2" + }, + "decompress-response": { + "version": "6.0.0", + "requires": { + "mimic-response": "^3.1.0" + }, + "dependencies": { + "mimic-response": { + "version": "3.1.0" + } + } + }, + "dedent": { + "version": "0.7.0" + }, + "deep-equal": { + "version": "2.2.1", + "requires": { + "array-buffer-byte-length": "^1.0.0", + "call-bind": "^1.0.2", + "es-get-iterator": "^1.1.3", + "get-intrinsic": "^1.2.0", + "is-arguments": "^1.1.1", + "is-array-buffer": "^3.0.2", + "is-date-object": "^1.0.5", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "isarray": "^2.0.5", + "object-is": "^1.1.5", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.5.0", + "side-channel": "^1.0.4", + "which-boxed-primitive": "^1.0.2", + "which-collection": "^1.0.1", + "which-typed-array": "^1.1.9" + } + }, + "deep-is": { + "version": "0.1.4" + }, + "deepmerge": { + "version": "4.3.1" + }, + "default-gateway": { + "version": "6.0.3", + "requires": { + "execa": "^5.0.0" + } + }, + "defer-to-connect": { + "version": "2.0.1" + }, + "deferred-leveldown": { + "version": "1.2.2", + "requires": { + "abstract-leveldown": "~2.6.0" + } + }, + "define-lazy-prop": { + "version": "2.0.0" + }, + "define-properties": { + "version": "1.2.0", + "requires": { + "has-property-descriptors": "^1.0.0", + "object-keys": "^1.1.1" + } + }, + "delay": { + "version": "5.0.0" + }, + "delayed-stream": { + "version": "1.0.0" + }, + "depd": { + "version": "2.0.0" + }, + "des.js": { + "version": "1.0.1", + "requires": { + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" + } + }, + "destroy": { + "version": "1.2.0" + }, + "detect-browser": { + "version": "5.2.0" + }, + "detect-newline": { + "version": "3.1.0" + }, + "detect-node": { + "version": "2.1.0" + }, + "detect-port-alt": { + "version": "1.1.6", + "requires": { + "address": "^1.0.1", + "debug": "^2.6.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0" + } + } + }, + "didyoumean": { + "version": "1.2.2" + }, + "diff-sequences": { + "version": "27.5.1" + }, + "diffie-hellman": { + "version": "5.0.3", + "requires": { + "bn.js": "^4.1.0", + "miller-rabin": "^4.0.0", + "randombytes": "^2.0.0" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0" + } + } + }, + "dijkstrajs": { + "version": "1.0.3" + }, + "dir-glob": { + "version": "3.0.1", + "requires": { + "path-type": "^4.0.0" + } + }, + "dlv": { + "version": "1.1.3" + }, + "dns-equal": { + "version": "1.0.0" + }, + "dns-packet": { + "version": "5.6.0", + "requires": { + "@leichtgewicht/ip-codec": "^2.0.1" + } + }, + "doctrine": { + "version": "3.0.0", + "requires": { + "esutils": "^2.0.2" + } + }, + "dom-accessibility-api": { + "version": "0.5.16", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.5.16.tgz", + "integrity": "sha512-X7BJ2yElsnOJ30pZF4uIIDfBEVgF4XEBxL9Bxhy6dnrm5hkzqmsWHGTiHqRiITNhMyFLyAiWndIJP7Z1NTteDg==" + }, + "dom-converter": { + "version": "0.2.0", + "requires": { + "utila": "~0.4" + } + }, + "dom-helpers": { + "version": "5.2.1", + "requires": { + "@babel/runtime": "^7.8.7", + "csstype": "^3.0.2" + } + }, + "dom-serializer": { + "version": "1.4.1", + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.2.0", + "entities": "^2.0.0" + } + }, + "dom-walk": { + "version": "0.1.2" + }, + "domelementtype": { + "version": "2.3.0" + }, + "domexception": { + "version": "2.0.1", + "requires": { + "webidl-conversions": "^5.0.0" + }, + "dependencies": { + "webidl-conversions": { + "version": "5.0.0" + } + } + }, + "domhandler": { + "version": "4.3.1", + "requires": { + "domelementtype": "^2.2.0" + } + }, + "domutils": { + "version": "2.8.0", + "requires": { + "dom-serializer": "^1.0.1", + "domelementtype": "^2.2.0", + "domhandler": "^4.2.0" + } + }, + "dot-case": { + "version": "3.0.4", + "requires": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "dotenv": { + "version": "10.0.0" + }, + "dotenv-expand": { + "version": "5.1.0" + }, + "drbg.js": { + "version": "1.0.1", + "optional": true, + "requires": { + "browserify-aes": "^1.0.6", + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4" + } + }, + "duplexer": { + "version": "0.1.2" + }, + "duplexify": { + "version": "4.1.2", + "requires": { + "end-of-stream": "^1.4.1", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1", + "stream-shift": "^1.0.0" + } + }, + "ecc-jsbn": { + "version": "0.1.2", + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "eccrypto": { + "version": "1.1.6", + "requires": { + "acorn": "7.1.1", + "elliptic": "6.5.4", + "es6-promise": "4.2.8", + "nan": "2.14.0", + "secp256k1": "3.7.1" + }, + "dependencies": { + "acorn": { + "version": "7.1.1" + }, + "bn.js": { + "version": "4.12.0", + "optional": true + }, + "secp256k1": { + "version": "3.7.1", + "optional": true, + "requires": { + "bindings": "^1.5.0", + "bip66": "^1.1.5", + "bn.js": "^4.11.8", + "create-hash": "^1.2.0", + "drbg.js": "^1.0.1", + "elliptic": "^6.4.1", + "nan": "^2.14.0", + "safe-buffer": "^5.1.2" + } + } + } + }, + "ee-first": { + "version": "1.1.1" + }, + "eip1193-provider": { + "version": "1.0.1", + "requires": { + "@json-rpc-tools/provider": "^1.5.5" + } + }, + "ejs": { + "version": "3.1.9", + "requires": { + "jake": "^10.8.5" + } + }, + "electron-to-chromium": { + "version": "1.4.375" + }, + "elliptic": { + "version": "6.5.4", + "requires": { + "bn.js": "^4.11.9", + "brorand": "^1.1.0", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.1", + "inherits": "^2.0.4", + "minimalistic-assert": "^1.0.1", + "minimalistic-crypto-utils": "^1.0.1" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0" + } + } + }, + "emittery": { + "version": "0.13.1" + }, + "emoji-regex": { + "version": "9.2.2" + }, + "emojis-list": { + "version": "3.0.0" + }, + "encode-utf8": { + "version": "1.0.3" + }, + "encodeurl": { + "version": "1.0.2" + }, + "end-of-stream": { + "version": "1.4.4", + "requires": { + "once": "^1.4.0" + } + }, + "engine.io-client": { + "version": "6.4.0", + "requires": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1", + "engine.io-parser": "~5.0.3", + "ws": "~8.11.0", + "xmlhttprequest-ssl": "~2.0.0" + }, + "dependencies": { + "ws": { + "version": "8.11.0", + "requires": {} + } + } + }, + "engine.io-parser": { + "version": "5.0.6" + }, + "enhanced-resolve": { + "version": "5.13.0", + "requires": { + "graceful-fs": "^4.2.4", + "tapable": "^2.2.0" + } + }, + "entities": { + "version": "2.2.0" + }, + "env-cmd": { + "version": "10.1.0", + "requires": { + "commander": "^4.0.0", + "cross-spawn": "^7.0.0" + } + }, + "errno": { + "version": "0.1.8", + "requires": { + "prr": "~1.0.1" + } + }, + "error-ex": { + "version": "1.3.2", + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "error-polyfill": { + "version": "0.1.3", + "requires": { + "capability": "^0.2.5", + "o3": "^1.0.3", + "u3": "^0.1.1" + } + }, + "error-stack-parser": { + "version": "2.1.4", + "requires": { + "stackframe": "^1.3.4" + } + }, + "es-abstract": { + "version": "1.21.2", + "requires": { + "array-buffer-byte-length": "^1.0.0", + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.1", + "es-to-primitive": "^1.2.1", + "function.prototype.name": "^1.1.5", + "get-intrinsic": "^1.2.0", + "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", + "gopd": "^1.0.1", + "has": "^1.0.3", + "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.5", + "is-array-buffer": "^3.0.2", + "is-callable": "^1.2.7", + "is-negative-zero": "^2.0.2", + "is-regex": "^1.1.4", + "is-shared-array-buffer": "^1.0.2", + "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", + "is-weakref": "^1.0.2", + "object-inspect": "^1.12.3", + "object-keys": "^1.1.1", + "object.assign": "^4.1.4", + "regexp.prototype.flags": "^1.4.3", + "safe-regex-test": "^1.0.0", + "string.prototype.trim": "^1.2.7", + "string.prototype.trimend": "^1.0.6", + "string.prototype.trimstart": "^1.0.6", + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.9" + } + }, + "es-array-method-boxes-properly": { + "version": "1.0.0" + }, + "es-get-iterator": { + "version": "1.1.3", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "is-arguments": "^1.1.1", + "is-map": "^2.0.2", + "is-set": "^2.0.2", + "is-string": "^1.0.7", + "isarray": "^2.0.5", + "stop-iteration-iterator": "^1.0.0" + } + }, + "es-module-lexer": { + "version": "1.2.1" + }, + "es-set-tostringtag": { + "version": "2.0.1", + "requires": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + } + }, + "es-shim-unscopables": { + "version": "1.0.0", + "requires": { + "has": "^1.0.3" + } + }, + "es-to-primitive": { + "version": "1.2.1", + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "es5-ext": { + "version": "0.10.62", + "requires": { + "es6-iterator": "^2.0.3", + "es6-symbol": "^3.1.3", + "next-tick": "^1.1.0" + } + }, + "es6-iterator": { + "version": "2.0.3", + "requires": { + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" + } + }, + "es6-object-assign": { + "version": "1.1.0" + }, + "es6-promise": { + "version": "4.2.8" + }, + "es6-promisify": { + "version": "5.0.0", + "requires": { + "es6-promise": "^4.0.3" + } + }, + "es6-symbol": { + "version": "3.1.3", + "requires": { + "d": "^1.0.1", + "ext": "^1.1.2" + } + }, + "escalade": { + "version": "3.1.1" + }, + "escape-html": { + "version": "1.0.3" + }, + "escape-string-regexp": { + "version": "4.0.0" + }, + "escodegen": { + "version": "2.0.0", + "requires": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0" + }, + "levn": { + "version": "0.3.0", + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } + }, + "optionator": { + "version": "0.8.3", + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + } + }, + "prelude-ls": { + "version": "1.1.2" + }, + "source-map": { + "version": "0.6.1", + "optional": true + }, + "type-check": { + "version": "0.3.2", + "requires": { + "prelude-ls": "~1.1.2" + } + } + } + }, + "eslint": { + "version": "8.39.0", + "requires": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.4.0", + "@eslint/eslintrc": "^2.0.2", + "@eslint/js": "8.39.0", + "@humanwhocodes/config-array": "^0.11.8", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "ajv": "^6.10.0", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.0", + "eslint-visitor-keys": "^3.4.0", + "espree": "^9.5.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "grapheme-splitter": "^1.0.4", + "ignore": "^5.2.0", + "import-fresh": "^3.0.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-sdsl": "^4.1.4", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.1", + "strip-ansi": "^6.0.1", + "strip-json-comments": "^3.1.0", + "text-table": "^0.2.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "argparse": { + "version": "2.0.1" + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "eslint-scope": { + "version": "7.2.0", + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + } + }, + "estraverse": { + "version": "5.3.0" + }, + "find-up": { + "version": "5.0.0", + "requires": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + } + }, + "globals": { + "version": "13.20.0", + "requires": { + "type-fest": "^0.20.2" + } + }, + "has-flag": { + "version": "4.0.0" + }, + "js-yaml": { + "version": "4.1.0", + "requires": { + "argparse": "^2.0.1" + } + }, + "locate-path": { + "version": "6.0.0", + "requires": { + "p-locate": "^5.0.0" + } + }, + "p-locate": { + "version": "5.0.0", + "requires": { + "p-limit": "^3.0.2" + } + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + }, + "type-fest": { + "version": "0.20.2" + } + } + }, + "eslint-config-prettier": { + "version": "8.8.0", + "requires": {} + }, + "eslint-config-react-app": { + "version": "7.0.1", + "requires": { + "@babel/core": "^7.16.0", + "@babel/eslint-parser": "^7.16.3", + "@rushstack/eslint-patch": "^1.1.0", + "@typescript-eslint/eslint-plugin": "^5.5.0", + "@typescript-eslint/parser": "^5.5.0", + "babel-preset-react-app": "^10.0.1", + "confusing-browser-globals": "^1.0.11", + "eslint-plugin-flowtype": "^8.0.3", + "eslint-plugin-import": "^2.25.3", + "eslint-plugin-jest": "^25.3.0", + "eslint-plugin-jsx-a11y": "^6.5.1", + "eslint-plugin-react": "^7.27.1", + "eslint-plugin-react-hooks": "^4.3.0", + "eslint-plugin-testing-library": "^5.0.1" + } + }, + "eslint-import-resolver-node": { + "version": "0.3.7", + "requires": { + "debug": "^3.2.7", + "is-core-module": "^2.11.0", + "resolve": "^1.22.1" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "eslint-module-utils": { + "version": "2.8.0", + "requires": { + "debug": "^3.2.7" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "requires": { + "ms": "^2.1.1" + } + } + } + }, + "eslint-plugin-flowtype": { + "version": "8.0.3", + "requires": { + "lodash": "^4.17.21", + "string-natural-compare": "^3.0.1" + } + }, + "eslint-plugin-import": { + "version": "2.27.5", + "requires": { + "array-includes": "^3.1.6", + "array.prototype.flat": "^1.3.1", + "array.prototype.flatmap": "^1.3.1", + "debug": "^3.2.7", + "doctrine": "^2.1.0", + "eslint-import-resolver-node": "^0.3.7", + "eslint-module-utils": "^2.7.4", + "has": "^1.0.3", + "is-core-module": "^2.11.0", + "is-glob": "^4.0.3", + "minimatch": "^3.1.2", + "object.values": "^1.1.6", + "resolve": "^1.22.1", + "semver": "^6.3.0", + "tsconfig-paths": "^3.14.1" + }, + "dependencies": { + "debug": { + "version": "3.2.7", + "requires": { + "ms": "^2.1.1" + } + }, + "doctrine": { + "version": "2.1.0", + "requires": { + "esutils": "^2.0.2" + } + } + } + }, + "eslint-plugin-jest": { + "version": "25.7.0", + "requires": { + "@typescript-eslint/experimental-utils": "^5.0.0" + } + }, + "eslint-plugin-jsx-a11y": { + "version": "6.7.1", + "requires": { + "@babel/runtime": "^7.20.7", + "aria-query": "^5.1.3", + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "ast-types-flow": "^0.0.7", + "axe-core": "^4.6.2", + "axobject-query": "^3.1.1", + "damerau-levenshtein": "^1.0.8", + "emoji-regex": "^9.2.2", + "has": "^1.0.3", + "jsx-ast-utils": "^3.3.3", + "language-tags": "=1.0.5", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "semver": "^6.3.0" + } + }, + "eslint-plugin-react": { + "version": "7.32.2", + "requires": { + "array-includes": "^3.1.6", + "array.prototype.flatmap": "^1.3.1", + "array.prototype.tosorted": "^1.1.1", + "doctrine": "^2.1.0", + "estraverse": "^5.3.0", + "jsx-ast-utils": "^2.4.1 || ^3.0.0", + "minimatch": "^3.1.2", + "object.entries": "^1.1.6", + "object.fromentries": "^2.0.6", + "object.hasown": "^1.1.2", + "object.values": "^1.1.6", + "prop-types": "^15.8.1", + "resolve": "^2.0.0-next.4", + "semver": "^6.3.0", + "string.prototype.matchall": "^4.0.8" + }, + "dependencies": { + "doctrine": { + "version": "2.1.0", + "requires": { + "esutils": "^2.0.2" + } + }, + "estraverse": { + "version": "5.3.0" + }, + "resolve": { + "version": "2.0.0-next.4", + "requires": { + "is-core-module": "^2.9.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + } + } + }, + "eslint-plugin-react-hooks": { + "version": "4.6.0", + "requires": {} + }, + "eslint-plugin-testing-library": { + "version": "5.10.3", + "requires": { + "@typescript-eslint/utils": "^5.58.0" + } + }, + "eslint-scope": { + "version": "5.1.1", + "requires": { + "esrecurse": "^4.3.0", + "estraverse": "^4.1.1" + } + }, + "eslint-visitor-keys": { + "version": "3.4.0" + }, + "eslint-webpack-plugin": { + "version": "3.2.0", + "requires": { + "@types/eslint": "^7.29.0 || ^8.4.1", + "jest-worker": "^28.0.2", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "schema-utils": "^4.0.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "5.1.0", + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, + "has-flag": { + "version": "4.0.0" + }, + "jest-worker": { + "version": "28.1.3", + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + } + }, + "json-schema-traverse": { + "version": "1.0.0" + }, + "schema-utils": { + "version": "4.0.1", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } + }, + "supports-color": { + "version": "8.1.1", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "espree": { + "version": "9.5.1", + "requires": { + "acorn": "^8.8.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.0" + } + }, + "esprima": { + "version": "4.0.1" + }, + "esquery": { + "version": "1.5.0", + "requires": { + "estraverse": "^5.1.0" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0" + } + } + }, + "esrecurse": { + "version": "4.3.0", + "requires": { + "estraverse": "^5.2.0" + }, + "dependencies": { + "estraverse": { + "version": "5.3.0" + } + } + }, + "estraverse": { + "version": "4.3.0" + }, + "estree-walker": { + "version": "1.0.1" + }, + "esutils": { + "version": "2.0.3" + }, + "etag": { + "version": "1.8.1" + }, + "eth-block-tracker": { + "version": "6.1.0", + "requires": { + "@metamask/safe-event-emitter": "^2.0.0", + "@metamask/utils": "^3.0.1", + "json-rpc-random-id": "^1.0.1", + "pify": "^3.0.0" + } + }, + "eth-crypto": { + "version": "2.6.0", + "requires": { + "@babel/runtime": "7.20.13", + "@ethereumjs/tx": "3.5.2", + "@types/bn.js": "5.1.1", + "eccrypto": "1.1.6", + "ethereumjs-util": "7.1.5", + "ethers": "5.7.2", + "secp256k1": "5.0.0" + }, + "dependencies": { + "@babel/runtime": { + "version": "7.20.13", + "requires": { + "regenerator-runtime": "^0.13.11" + } + }, + "node-addon-api": { + "version": "5.1.0" + }, + "secp256k1": { + "version": "5.0.0", + "requires": { + "elliptic": "^6.5.4", + "node-addon-api": "^5.0.0", + "node-gyp-build": "^4.2.0" + } + } + } + }, + "eth-ens-namehash": { + "version": "2.0.8", + "requires": { + "idna-uts46-hx": "^2.3.1", + "js-sha3": "^0.5.7" + }, + "dependencies": { + "js-sha3": { + "version": "0.5.7" + } + } + }, + "eth-json-rpc-filters": { + "version": "5.1.0", + "requires": { + "@metamask/safe-event-emitter": "^2.0.0", + "async-mutex": "^0.2.6", + "eth-query": "^2.1.2", + "json-rpc-engine": "^6.1.0", + "pify": "^5.0.0" + }, + "dependencies": { + "async-mutex": { + "version": "0.2.6", + "requires": { + "tslib": "^2.0.0" + } + }, + "pify": { + "version": "5.0.0" + } + } + }, + "eth-json-rpc-infura": { + "version": "5.1.0", + "requires": { + "eth-json-rpc-middleware": "^6.0.0", + "eth-rpc-errors": "^3.0.0", + "json-rpc-engine": "^5.3.0", + "node-fetch": "^2.6.0" + }, + "dependencies": { + "eth-rpc-errors": { + "version": "3.0.0", + "requires": { + "fast-safe-stringify": "^2.0.6" + } + }, + "json-rpc-engine": { + "version": "5.4.0", + "requires": { + "eth-rpc-errors": "^3.0.0", + "safe-event-emitter": "^1.0.1" + } + } + } + }, + "eth-json-rpc-middleware": { + "version": "6.0.0", + "requires": { + "btoa": "^1.2.1", + "clone": "^2.1.1", + "eth-query": "^2.1.2", + "eth-rpc-errors": "^3.0.0", + "eth-sig-util": "^1.4.2", + "ethereumjs-util": "^5.1.2", + "json-rpc-engine": "^5.3.0", + "json-stable-stringify": "^1.0.1", + "node-fetch": "^2.6.1", + "pify": "^3.0.0", + "safe-event-emitter": "^1.0.1" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0" + }, + "eth-rpc-errors": { + "version": "3.0.0", + "requires": { + "fast-safe-stringify": "^2.0.6" + } + }, + "ethereum-cryptography": { + "version": "0.1.3", + "requires": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "ethereumjs-util": { + "version": "5.2.1", + "requires": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + }, + "json-rpc-engine": { + "version": "5.4.0", + "requires": { + "eth-rpc-errors": "^3.0.0", + "safe-event-emitter": "^1.0.1" + } + } + } + }, + "eth-lib": { + "version": "0.1.29", + "requires": { + "bn.js": "^4.11.6", + "elliptic": "^6.4.0", + "nano-json-stream-parser": "^0.1.2", + "servify": "^0.1.12", + "ws": "^3.0.0", + "xhr-request-promise": "^0.1.2" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0" + }, + "safe-buffer": { + "version": "5.1.2" + }, + "ws": { + "version": "3.3.3", + "requires": { + "async-limiter": "~1.0.0", + "safe-buffer": "~5.1.0", + "ultron": "~1.1.0" + } + } + } + }, + "eth-query": { + "version": "2.1.2", + "requires": { + "json-rpc-random-id": "^1.0.0", + "xtend": "^4.0.1" + } + }, + "eth-rpc-errors": { + "version": "4.0.3", + "requires": { + "fast-safe-stringify": "^2.0.6" + } + }, + "eth-sig-util": { + "version": "1.4.2", + "requires": { + "ethereumjs-abi": "git+https://github.com/ethereumjs/ethereumjs-abi.git", + "ethereumjs-util": "^5.1.1" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0" + }, + "ethereum-cryptography": { + "version": "0.1.3", + "requires": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "ethereumjs-util": { + "version": "5.2.1", + "requires": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + } + } + }, + "ethereum-bloom-filters": { + "version": "1.0.10", + "requires": { + "js-sha3": "^0.8.0" + } + }, + "ethereum-common": { + "version": "0.2.0" + }, + "ethereum-cryptography": { + "version": "2.0.0", + "requires": { + "@noble/curves": "1.0.0", + "@noble/hashes": "1.3.0", + "@scure/bip32": "1.3.0", + "@scure/bip39": "1.2.0" + }, + "dependencies": { + "@scure/bip39": { + "version": "1.2.0", + "requires": { + "@noble/hashes": "~1.3.0", + "@scure/base": "~1.1.0" + } + } + } + }, + "ethereumjs-abi": { + "version": "0.6.8", + "requires": { + "bn.js": "^4.11.8", + "ethereumjs-util": "^6.0.0" + }, + "dependencies": { + "@types/bn.js": { + "version": "4.11.6", + "requires": { + "@types/node": "*" + } + }, + "bn.js": { + "version": "4.12.0" + }, + "ethereum-cryptography": { + "version": "0.1.3", + "requires": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "ethereumjs-util": { + "version": "6.2.1", + "requires": { + "@types/bn.js": "^4.11.3", + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "0.1.6", + "rlp": "^2.2.3" + } + } + } + }, + "ethereumjs-account": { + "version": "2.0.5", + "requires": { + "ethereumjs-util": "^5.0.0", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0" + }, + "ethereum-cryptography": { + "version": "0.1.3", + "requires": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "ethereumjs-util": { + "version": "5.2.1", + "requires": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + } + } + }, + "ethereumjs-block": { + "version": "1.7.1", + "requires": { + "async": "^2.0.1", + "ethereum-common": "0.2.0", + "ethereumjs-tx": "^1.2.2", + "ethereumjs-util": "^5.0.0", + "merkle-patricia-tree": "^2.1.2" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0" + }, + "ethereum-cryptography": { + "version": "0.1.3", + "requires": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "ethereumjs-util": { + "version": "5.2.1", + "requires": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + } + } + }, + "ethereumjs-common": { + "version": "1.5.2" + }, + "ethereumjs-tx": { + "version": "1.3.7", + "requires": { + "ethereum-common": "^0.0.18", + "ethereumjs-util": "^5.0.0" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0" + }, + "ethereum-common": { + "version": "0.0.18" + }, + "ethereum-cryptography": { + "version": "0.1.3", + "requires": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "ethereumjs-util": { + "version": "5.2.1", + "requires": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + } + } + }, + "ethereumjs-util": { + "version": "7.1.5", + "requires": { + "@types/bn.js": "^5.1.0", + "bn.js": "^5.1.2", + "create-hash": "^1.1.2", + "ethereum-cryptography": "^0.1.3", + "rlp": "^2.2.4" + }, + "dependencies": { + "ethereum-cryptography": { + "version": "0.1.3", + "requires": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + } + } + }, + "ethereumjs-vm": { + "version": "2.6.0", + "requires": { + "async": "^2.1.2", + "async-eventemitter": "^0.2.2", + "ethereumjs-account": "^2.0.3", + "ethereumjs-block": "~2.2.0", + "ethereumjs-common": "^1.1.0", + "ethereumjs-util": "^6.0.0", + "fake-merkle-patricia-tree": "^1.0.1", + "functional-red-black-tree": "^1.0.1", + "merkle-patricia-tree": "^2.3.2", + "rustbn.js": "~0.2.0", + "safe-buffer": "^5.1.1" + }, + "dependencies": { + "@types/bn.js": { + "version": "4.11.6", + "requires": { + "@types/node": "*" + } + }, + "bn.js": { + "version": "4.12.0" + }, + "ethereum-cryptography": { + "version": "0.1.3", + "requires": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "ethereumjs-block": { + "version": "2.2.2", + "requires": { + "async": "^2.0.1", + "ethereumjs-common": "^1.5.0", + "ethereumjs-tx": "^2.1.1", + "ethereumjs-util": "^5.0.0", + "merkle-patricia-tree": "^2.1.2" + }, + "dependencies": { + "ethereumjs-util": { + "version": "5.2.1", + "requires": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + } + } + }, + "ethereumjs-tx": { + "version": "2.1.2", + "requires": { + "ethereumjs-common": "^1.5.0", + "ethereumjs-util": "^6.0.0" + } + }, + "ethereumjs-util": { + "version": "6.2.1", + "requires": { + "@types/bn.js": "^4.11.3", + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "0.1.6", + "rlp": "^2.2.3" + } + } + } + }, + "ethers": { + "version": "5.7.2", + "requires": { + "@ethersproject/abi": "5.7.0", + "@ethersproject/abstract-provider": "5.7.0", + "@ethersproject/abstract-signer": "5.7.0", + "@ethersproject/address": "5.7.0", + "@ethersproject/base64": "5.7.0", + "@ethersproject/basex": "5.7.0", + "@ethersproject/bignumber": "5.7.0", + "@ethersproject/bytes": "5.7.0", + "@ethersproject/constants": "5.7.0", + "@ethersproject/contracts": "5.7.0", + "@ethersproject/hash": "5.7.0", + "@ethersproject/hdnode": "5.7.0", + "@ethersproject/json-wallets": "5.7.0", + "@ethersproject/keccak256": "5.7.0", + "@ethersproject/logger": "5.7.0", + "@ethersproject/networks": "5.7.1", + "@ethersproject/pbkdf2": "5.7.0", + "@ethersproject/properties": "5.7.0", + "@ethersproject/providers": "5.7.2", + "@ethersproject/random": "5.7.0", + "@ethersproject/rlp": "5.7.0", + "@ethersproject/sha2": "5.7.0", + "@ethersproject/signing-key": "5.7.0", + "@ethersproject/solidity": "5.7.0", + "@ethersproject/strings": "5.7.0", + "@ethersproject/transactions": "5.7.0", + "@ethersproject/units": "5.7.0", + "@ethersproject/wallet": "5.7.0", + "@ethersproject/web": "5.7.1", + "@ethersproject/wordlists": "5.7.0" + } + }, + "ethjs-unit": { + "version": "0.1.6", + "requires": { + "bn.js": "4.11.6", + "number-to-bn": "1.7.0" + }, + "dependencies": { + "bn.js": { + "version": "4.11.6" + } + } + }, + "ethjs-util": { + "version": "0.1.6", + "requires": { + "is-hex-prefixed": "1.0.0", + "strip-hex-prefix": "1.0.0" + } + }, + "eventemitter3": { + "version": "4.0.7" + }, + "events": { + "version": "3.3.0" + }, + "evp_bytestokey": { + "version": "1.0.3", + "requires": { + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" + } + }, + "execa": { + "version": "5.1.1", + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + } + }, + "exenv": { + "version": "1.2.2" + }, + "exit": { + "version": "0.1.2" + }, + "expect": { + "version": "29.5.0", + "requires": { + "@jest/expect-utils": "^29.5.0", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-util": "^29.5.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "diff-sequences": { + "version": "29.4.3" + }, + "has-flag": { + "version": "4.0.0" + }, + "jest-diff": { + "version": "29.5.0", + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + } + }, + "jest-matcher-utils": { + "version": "29.5.0", + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^29.5.0", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + } + }, + "pretty-format": { + "version": "29.5.0", + "requires": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0" + } + } + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "express": { + "version": "4.18.2", + "requires": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.1", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.5.0", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.2.0", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.1", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.7", + "proxy-addr": "~2.0.7", + "qs": "6.11.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.18.0", + "serve-static": "1.15.0", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "dependencies": { + "body-parser": { + "version": "1.20.1", + "requires": { + "bytes": "3.1.2", + "content-type": "~1.0.4", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.11.0", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + } + }, + "debug": { + "version": "2.6.9", + "requires": { + "ms": "2.0.0" + } + }, + "http-errors": { + "version": "2.0.0", + "requires": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + } + }, + "iconv-lite": { + "version": "0.4.24", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "ms": { + "version": "2.0.0" + }, + "qs": { + "version": "6.11.0", + "requires": { + "side-channel": "^1.0.4" + } + }, + "raw-body": { + "version": "2.5.1", + "requires": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + } + }, + "statuses": { + "version": "2.0.1" + } + } + }, + "ext": { + "version": "1.7.0", + "requires": { + "type": "^2.7.2" + }, + "dependencies": { + "type": { + "version": "2.7.2" + } + } + }, + "extend": { + "version": "3.0.2" + }, + "extsprintf": { + "version": "1.3.0" + }, + "eyes": { + "version": "0.1.8" + }, + "fake-merkle-patricia-tree": { + "version": "1.0.1", + "requires": { + "checkpoint-store": "^1.1.0" + } + }, + "fast-deep-equal": { + "version": "3.1.3" + }, + "fast-glob": { + "version": "3.2.12", + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.4" + }, + "dependencies": { + "glob-parent": { + "version": "5.1.2", + "requires": { + "is-glob": "^4.0.1" + } + } + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0" + }, + "fast-levenshtein": { + "version": "2.0.6" + }, + "fast-redact": { + "version": "3.1.2" + }, + "fast-safe-stringify": { + "version": "2.1.1" + }, + "fast-stable-stringify": { + "version": "1.0.0" + }, + "fastq": { + "version": "1.15.0", + "requires": { + "reusify": "^1.0.4" + } + }, + "faye-websocket": { + "version": "0.11.4", + "requires": { + "websocket-driver": ">=0.5.1" + } + }, + "fb-watchman": { + "version": "2.0.2", + "requires": { + "bser": "2.1.1" + } + }, + "file-entry-cache": { + "version": "6.0.1", + "requires": { + "flat-cache": "^3.0.4" + } + }, + "file-loader": { + "version": "6.2.0", + "requires": { + "loader-utils": "^2.0.0", + "schema-utils": "^3.0.0" + } + }, + "file-uri-to-path": { + "version": "1.0.0" + }, + "filelist": { + "version": "1.0.4", + "requires": { + "minimatch": "^5.0.1" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "5.1.6", + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, + "filesize": { + "version": "8.0.7" + }, + "fill-range": { + "version": "7.0.1", + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "filter-obj": { + "version": "1.1.0" + }, + "finalhandler": { + "version": "1.2.0", + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0" + }, + "statuses": { + "version": "2.0.1" + } + } + }, + "find-cache-dir": { + "version": "3.3.2", + "requires": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + } + }, + "find-root": { + "version": "1.1.0" + }, + "find-up": { + "version": "4.1.0", + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "flat-cache": { + "version": "3.0.4", + "requires": { + "flatted": "^3.1.0", + "rimraf": "^3.0.2" + } + }, + "flatted": { + "version": "3.2.7" + }, + "follow-redirects": { + "version": "1.15.2" + }, + "for-each": { + "version": "0.3.3", + "requires": { + "is-callable": "^1.1.3" + } + }, + "forever-agent": { + "version": "0.6.1" + }, + "fork-ts-checker-webpack-plugin": { + "version": "6.5.3", + "requires": { + "@babel/code-frame": "^7.8.3", + "@types/json-schema": "^7.0.5", + "chalk": "^4.1.0", + "chokidar": "^3.4.2", + "cosmiconfig": "^6.0.0", + "deepmerge": "^4.2.2", + "fs-extra": "^9.0.0", + "glob": "^7.1.6", + "memfs": "^3.1.2", + "minimatch": "^3.0.4", + "schema-utils": "2.7.0", + "semver": "^7.3.2", + "tapable": "^1.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "cosmiconfig": { + "version": "6.0.0", + "requires": { + "@types/parse-json": "^4.0.0", + "import-fresh": "^3.1.0", + "parse-json": "^5.0.0", + "path-type": "^4.0.0", + "yaml": "^1.7.2" + } + }, + "fs-extra": { + "version": "9.1.0", + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "has-flag": { + "version": "4.0.0" + }, + "lru-cache": { + "version": "6.0.0", + "requires": { + "yallist": "^4.0.0" + } + }, + "schema-utils": { + "version": "2.7.0", + "requires": { + "@types/json-schema": "^7.0.4", + "ajv": "^6.12.2", + "ajv-keywords": "^3.4.1" + } + }, + "semver": { + "version": "7.5.0", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + }, + "tapable": { + "version": "1.1.3" + }, + "yallist": { + "version": "4.0.0" + } + } + }, + "form-data": { + "version": "4.0.0", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, + "form-data-encoder": { + "version": "1.7.1" + }, + "forwarded": { + "version": "0.2.0" + }, + "fraction.js": { + "version": "4.2.0" + }, + "fresh": { + "version": "0.5.2" + }, + "fs-extra": { + "version": "10.1.0", + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "fs-minipass": { + "version": "1.2.7", + "requires": { + "minipass": "^2.6.0" + } + }, + "fs-monkey": { + "version": "1.0.3" + }, + "fs.realpath": { + "version": "1.0.0" + }, + "fsevents": { + "version": "2.3.2", + "optional": true + }, + "function-bind": { + "version": "1.1.1" + }, + "function.prototype.name": { + "version": "1.1.5", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3", + "es-abstract": "^1.19.0", + "functions-have-names": "^1.2.2" + } + }, + "functional-red-black-tree": { + "version": "1.0.1" + }, + "functions-have-names": { + "version": "1.2.3" + }, + "gensync": { + "version": "1.0.0-beta.2" + }, + "get-caller-file": { + "version": "2.0.5" + }, + "get-intrinsic": { + "version": "1.2.0", + "requires": { + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" + } + }, + "get-own-enumerable-property-symbols": { + "version": "3.0.2" + }, + "get-package-type": { + "version": "0.1.0" + }, + "get-stream": { + "version": "6.0.1" + }, + "get-symbol-description": { + "version": "1.0.0", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + } + }, + "getpass": { + "version": "0.1.7", + "requires": { + "assert-plus": "^1.0.0" + } + }, + "glob": { + "version": "7.2.3", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "6.0.2", + "requires": { + "is-glob": "^4.0.3" + } + }, + "glob-to-regexp": { + "version": "0.4.1" + }, + "global": { + "version": "4.4.0", + "requires": { + "min-document": "^2.19.0", + "process": "^0.11.10" + } + }, + "global-modules": { + "version": "2.0.0", + "requires": { + "global-prefix": "^3.0.0" + } + }, + "global-prefix": { + "version": "3.0.0", + "requires": { + "ini": "^1.3.5", + "kind-of": "^6.0.2", + "which": "^1.3.1" + }, + "dependencies": { + "which": { + "version": "1.3.1", + "requires": { + "isexe": "^2.0.0" + } + } + } + }, + "globals": { + "version": "11.12.0" + }, + "globalthis": { + "version": "1.0.3", + "requires": { + "define-properties": "^1.1.3" + } + }, + "globby": { + "version": "11.1.0", + "requires": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + } + }, + "google-protobuf": { + "version": "3.21.2" + }, + "gopd": { + "version": "1.0.1", + "requires": { + "get-intrinsic": "^1.1.3" + } + }, + "got": { + "version": "12.1.0", + "requires": { + "@sindresorhus/is": "^4.6.0", + "@szmarczak/http-timer": "^5.0.1", + "@types/cacheable-request": "^6.0.2", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^6.0.4", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "form-data-encoder": "1.7.1", + "get-stream": "^6.0.1", + "http2-wrapper": "^2.1.10", + "lowercase-keys": "^3.0.0", + "p-cancelable": "^3.0.0", + "responselike": "^2.0.0" + } + }, + "graceful-fs": { + "version": "4.2.11" + }, + "grapheme-splitter": { + "version": "1.0.4" + }, + "graphql": { + "version": "16.6.0" + }, + "graphql-tag": { + "version": "2.12.6", + "requires": { + "tslib": "^2.1.0" + } + }, + "gzip-size": { + "version": "6.0.0", + "requires": { + "duplexer": "^0.1.2" + } + }, + "handle-thing": { + "version": "2.0.1" + }, + "har-schema": { + "version": "2.0.0" + }, + "har-validator": { + "version": "5.1.5", + "requires": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + } + }, + "harmony-reflect": { + "version": "1.6.2" + }, + "has": { + "version": "1.0.3", + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-bigints": { + "version": "1.0.2" + }, + "has-flag": { + "version": "3.0.0" + }, + "has-property-descriptors": { + "version": "1.0.0", + "requires": { + "get-intrinsic": "^1.1.1" + } + }, + "has-proto": { + "version": "1.0.1" + }, + "has-symbols": { + "version": "1.0.3" + }, + "has-tostringtag": { + "version": "1.0.0", + "requires": { + "has-symbols": "^1.0.2" + } + }, + "hash-base": { + "version": "3.1.0", + "requires": { + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "safe-buffer": "^5.2.0" + } + }, + "hash.js": { + "version": "1.1.7", + "requires": { + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.1" + } + }, + "he": { + "version": "1.2.0" + }, + "hey-listen": { + "version": "1.0.8" + }, + "hi-base32": { + "version": "0.5.1" + }, + "hmac-drbg": { + "version": "1.0.1", + "requires": { + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" + } + }, + "hoist-non-react-statics": { + "version": "3.3.2", + "requires": { + "react-is": "^16.7.0" + }, + "dependencies": { + "react-is": { + "version": "16.13.1" + } + } + }, + "hoopy": { + "version": "0.1.4" + }, + "hpack.js": { + "version": "2.1.6", + "requires": { + "inherits": "^2.0.1", + "obuf": "^1.0.0", + "readable-stream": "^2.0.1", + "wbuf": "^1.1.0" + }, + "dependencies": { + "isarray": { + "version": "1.0.0" + }, + "readable-stream": { + "version": "2.3.8", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2" + }, + "string_decoder": { + "version": "1.1.1", + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "html-encoding-sniffer": { + "version": "2.0.1", + "requires": { + "whatwg-encoding": "^1.0.5" + } + }, + "html-entities": { + "version": "2.3.3" + }, + "html-escaper": { + "version": "2.0.2" + }, + "html-minifier-terser": { + "version": "6.1.0", + "requires": { + "camel-case": "^4.1.2", + "clean-css": "^5.2.2", + "commander": "^8.3.0", + "he": "^1.2.0", + "param-case": "^3.0.4", + "relateurl": "^0.2.7", + "terser": "^5.10.0" + }, + "dependencies": { + "commander": { + "version": "8.3.0" + } + } + }, + "html-webpack-plugin": { + "version": "5.5.1", + "requires": { + "@types/html-minifier-terser": "^6.0.0", + "html-minifier-terser": "^6.0.2", + "lodash": "^4.17.21", + "pretty-error": "^4.0.0", + "tapable": "^2.0.0" + } + }, + "htmlparser2": { + "version": "6.1.0", + "requires": { + "domelementtype": "^2.0.1", + "domhandler": "^4.0.0", + "domutils": "^2.5.2", + "entities": "^2.0.0" + } + }, + "http-cache-semantics": { + "version": "4.1.1" + }, + "http-deceiver": { + "version": "1.2.7" + }, + "http-errors": { + "version": "1.8.1", + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": ">= 1.5.0 < 2", + "toidentifier": "1.0.1" + }, + "dependencies": { + "depd": { + "version": "1.1.2" + } + } + }, + "http-https": { + "version": "1.0.0" + }, + "http-parser-js": { + "version": "0.5.8" + }, + "http-proxy": { + "version": "1.18.1", + "requires": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + } + }, + "http-proxy-agent": { + "version": "4.0.1", + "requires": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + } + }, + "http-proxy-middleware": { + "version": "2.0.6", + "requires": { + "@types/http-proxy": "^1.17.8", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + } + }, + "http-signature": { + "version": "1.2.0", + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "http-status-codes": { + "version": "2.2.0" + }, + "http2-wrapper": { + "version": "2.2.0", + "requires": { + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.2.0" + } + }, + "https-browserify": { + "version": "1.0.0" + }, + "https-proxy-agent": { + "version": "5.0.1", + "requires": { + "agent-base": "6", + "debug": "4" + } + }, + "human-signals": { + "version": "2.1.0" + }, + "humanize-ms": { + "version": "1.2.1", + "requires": { + "ms": "^2.0.0" + } + }, + "iconv-lite": { + "version": "0.6.3", + "requires": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + } + }, + "icss-utils": { + "version": "5.1.0", + "requires": {} + }, + "idb": { + "version": "7.1.1" + }, + "identity-obj-proxy": { + "version": "3.0.0", + "requires": { + "harmony-reflect": "^1.4.6" + } + }, + "idna-uts46-hx": { + "version": "2.3.1", + "requires": { + "punycode": "2.1.0" + }, + "dependencies": { + "punycode": { + "version": "2.1.0" + } + } + }, + "ieee754": { + "version": "1.2.1" + }, + "ignore": { + "version": "5.2.4" + }, + "immediate": { + "version": "3.3.0" + }, + "immer": { + "version": "9.0.21" + }, + "import-fresh": { + "version": "3.3.0", + "requires": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "dependencies": { + "resolve-from": { + "version": "4.0.0" + } + } + }, + "import-local": { + "version": "3.1.0", + "requires": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4" + }, + "indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" + }, + "inflight": { + "version": "1.0.6", + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4" + }, + "ini": { + "version": "1.3.8" + }, + "internal-slot": { + "version": "1.0.5", + "requires": { + "get-intrinsic": "^1.2.0", + "has": "^1.0.3", + "side-channel": "^1.0.4" + } + }, + "interpret": { + "version": "1.4.0" + }, + "ipaddr.js": { + "version": "1.9.1" + }, + "is-arguments": { + "version": "1.1.1", + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-array-buffer": { + "version": "3.0.2", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "is-typed-array": "^1.1.10" + } + }, + "is-arrayish": { + "version": "0.2.1" + }, + "is-bigint": { + "version": "1.0.4", + "requires": { + "has-bigints": "^1.0.1" + } + }, + "is-binary-path": { + "version": "2.1.0", + "requires": { + "binary-extensions": "^2.0.0" + } + }, + "is-boolean-object": { + "version": "1.1.2", + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-callable": { + "version": "1.2.7" + }, + "is-core-module": { + "version": "2.12.0", + "requires": { + "has": "^1.0.3" + } + }, + "is-date-object": { + "version": "1.0.5", + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-docker": { + "version": "2.2.1" + }, + "is-extglob": { + "version": "2.1.1" + }, + "is-fn": { + "version": "1.0.0" + }, + "is-fullwidth-code-point": { + "version": "3.0.0" + }, + "is-function": { + "version": "1.0.2" + }, + "is-generator-fn": { + "version": "2.1.0" + }, + "is-generator-function": { + "version": "1.0.10", + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-glob": { + "version": "4.0.3", + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-hex-prefixed": { + "version": "1.0.0" + }, + "is-map": { + "version": "2.0.2" + }, + "is-module": { + "version": "1.0.0" + }, + "is-nan": { + "version": "1.3.2", + "requires": { + "call-bind": "^1.0.0", + "define-properties": "^1.1.3" + } + }, + "is-negative-zero": { + "version": "2.0.2" + }, + "is-number": { + "version": "7.0.0" + }, + "is-number-object": { + "version": "1.0.7", + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-obj": { + "version": "1.0.1" + }, + "is-path-inside": { + "version": "3.0.3" + }, + "is-plain-obj": { + "version": "3.0.0" + }, + "is-potential-custom-element-name": { + "version": "1.0.1" + }, + "is-regex": { + "version": "1.1.4", + "requires": { + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" + } + }, + "is-regexp": { + "version": "1.0.0" + }, + "is-root": { + "version": "2.1.0" + }, + "is-set": { + "version": "2.0.2" + }, + "is-shared-array-buffer": { + "version": "1.0.2", + "requires": { + "call-bind": "^1.0.2" + } + }, + "is-stream": { + "version": "2.0.1" + }, + "is-string": { + "version": "1.0.7", + "requires": { + "has-tostringtag": "^1.0.0" + } + }, + "is-symbol": { + "version": "1.0.4", + "requires": { + "has-symbols": "^1.0.2" + } + }, + "is-typed-array": { + "version": "1.1.10", + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + } + }, + "is-typedarray": { + "version": "1.0.0" + }, + "is-weakmap": { + "version": "2.0.1" + }, + "is-weakref": { + "version": "1.0.2", + "requires": { + "call-bind": "^1.0.2" + } + }, + "is-weakset": { + "version": "2.0.2", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.1" + } + }, + "is-wsl": { + "version": "2.2.0", + "requires": { + "is-docker": "^2.0.0" + } + }, + "isarray": { + "version": "2.0.5" + }, + "isexe": { + "version": "2.0.0" + }, + "isomorphic-ws": { + "version": "4.0.1", + "requires": {} + }, + "isstream": { + "version": "0.1.2" + }, + "istanbul-lib-coverage": { + "version": "3.2.0" + }, + "istanbul-lib-instrument": { + "version": "5.2.1", + "requires": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + } + }, + "istanbul-lib-report": { + "version": "3.0.0", + "requires": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "istanbul-lib-source-maps": { + "version": "4.0.1", + "requires": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1" + } + } + }, + "istanbul-reports": { + "version": "3.1.5", + "requires": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + } + }, + "jake": { + "version": "10.8.5", + "requires": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.1", + "minimatch": "^3.0.4" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "async": { + "version": "3.2.4" + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jayson": { + "version": "3.7.0", + "requires": { + "@types/connect": "^3.4.33", + "@types/node": "^12.12.54", + "@types/ws": "^7.4.4", + "commander": "^2.20.3", + "delay": "^5.0.0", + "es6-promisify": "^5.0.0", + "eyes": "^0.1.8", + "isomorphic-ws": "^4.0.1", + "json-stringify-safe": "^5.0.1", + "JSONStream": "^1.3.5", + "lodash": "^4.17.20", + "uuid": "^8.3.2", + "ws": "^7.4.5" + }, + "dependencies": { + "@types/node": { + "version": "12.20.55" + }, + "commander": { + "version": "2.20.3" + } + } + }, + "jest": { + "version": "29.5.0", + "requires": { + "@jest/core": "^29.5.0", + "@jest/types": "^29.5.0", + "import-local": "^3.0.2", + "jest-cli": "^29.5.0" + } + }, + "jest-changed-files": { + "version": "29.5.0", + "requires": { + "execa": "^5.0.0", + "p-limit": "^3.1.0" + } + }, + "jest-circus": { + "version": "29.5.0", + "requires": { + "@jest/environment": "^29.5.0", + "@jest/expect": "^29.5.0", + "@jest/test-result": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.5.0", + "jest-matcher-utils": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-runtime": "^29.5.0", + "jest-snapshot": "^29.5.0", + "jest-util": "^29.5.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.5.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "diff-sequences": { + "version": "29.4.3" + }, + "has-flag": { + "version": "4.0.0" + }, + "jest-diff": { + "version": "29.5.0", + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + } + }, + "jest-matcher-utils": { + "version": "29.5.0", + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^29.5.0", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + } + }, + "pretty-format": { + "version": "29.5.0", + "requires": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0" + } + } + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-cli": { + "version": "29.5.0", + "requires": { + "@jest/core": "^29.5.0", + "@jest/test-result": "^29.5.0", + "@jest/types": "^29.5.0", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^29.5.0", + "jest-util": "^29.5.0", + "jest-validate": "^29.5.0", + "prompts": "^2.0.1", + "yargs": "^17.3.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "cliui": { + "version": "8.0.1", + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + }, + "yargs": { + "version": "17.7.1", + "requires": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + } + } + } + }, + "jest-config": { + "version": "29.5.0", + "requires": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.5.0", + "@jest/types": "^29.5.0", + "babel-jest": "^29.5.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.5.0", + "jest-environment-node": "^29.5.0", + "jest-get-type": "^29.4.3", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.5.0", + "jest-runner": "^29.5.0", + "jest-util": "^29.5.0", + "jest-validate": "^29.5.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.5.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "pretty-format": { + "version": "29.5.0", + "requires": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0" + } + } + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-diff": { + "version": "27.5.1", + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "jest-get-type": { + "version": "27.5.1" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-docblock": { + "version": "29.4.3", + "requires": { + "detect-newline": "^3.0.0" + } + }, + "jest-each": { + "version": "29.5.0", + "requires": { + "@jest/types": "^29.5.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.4.3", + "jest-util": "^29.5.0", + "pretty-format": "^29.5.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "pretty-format": { + "version": "29.5.0", + "requires": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0" + } + } + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-environment-jsdom": { + "version": "27.5.1", + "requires": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1", + "jsdom": "^16.6.0" + }, + "dependencies": { + "@jest/environment": { + "version": "27.5.1", + "requires": { + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" + } + }, + "@jest/fake-timers": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + } + }, + "@jest/types": { + "version": "27.5.1", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + } + }, + "@sinonjs/commons": { + "version": "1.8.6", + "requires": { + "type-detect": "4.0.8" + } + }, + "@sinonjs/fake-timers": { + "version": "8.1.0", + "requires": { + "@sinonjs/commons": "^1.7.0" + } + }, + "@types/yargs": { + "version": "16.0.5", + "requires": { + "@types/yargs-parser": "*" + } + }, + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "jest-message-util": { + "version": "27.5.1", + "requires": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + } + }, + "jest-mock": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "@types/node": "*" + } + }, + "jest-util": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-environment-node": { + "version": "29.5.0", + "requires": { + "@jest/environment": "^29.5.0", + "@jest/fake-timers": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "jest-mock": "^29.5.0", + "jest-util": "^29.5.0" + } + }, + "jest-get-type": { + "version": "29.4.3" + }, + "jest-haste-map": { + "version": "29.5.0", + "requires": { + "@jest/types": "^29.5.0", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.4.3", + "jest-util": "^29.5.0", + "jest-worker": "^29.5.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + } + }, + "jest-jasmine2": { + "version": "27.5.1", + "requires": { + "@jest/environment": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "throat": "^6.0.1" + }, + "dependencies": { + "@jest/console": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0" + } + }, + "@jest/environment": { + "version": "27.5.1", + "requires": { + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" + } + }, + "@jest/fake-timers": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + } + }, + "@jest/globals": { + "version": "27.5.1", + "requires": { + "@jest/environment": "^27.5.1", + "@jest/types": "^27.5.1", + "expect": "^27.5.1" + } + }, + "@jest/source-map": { + "version": "27.5.1", + "requires": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9", + "source-map": "^0.6.0" + } + }, + "@jest/test-result": { + "version": "27.5.1", + "requires": { + "@jest/console": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + } + }, + "@jest/transform": { + "version": "27.5.1", + "requires": { + "@babel/core": "^7.1.0", + "@jest/types": "^27.5.1", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-util": "^27.5.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + } + }, + "@jest/types": { + "version": "27.5.1", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + } + }, + "@sinonjs/commons": { + "version": "1.8.6", + "requires": { + "type-detect": "4.0.8" + } + }, + "@sinonjs/fake-timers": { + "version": "8.1.0", + "requires": { + "@sinonjs/commons": "^1.7.0" + } + }, + "@types/yargs": { + "version": "16.0.5", + "requires": { + "@types/yargs-parser": "*" + } + }, + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "camelcase": { + "version": "6.3.0" + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "expect": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + } + }, + "has-flag": { + "version": "4.0.0" + }, + "jest-each": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1" + } + }, + "jest-get-type": { + "version": "27.5.1" + }, + "jest-haste-map": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^27.5.1", + "jest-serializer": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "micromatch": "^4.0.4", + "walker": "^1.0.7" + } + }, + "jest-message-util": { + "version": "27.5.1", + "requires": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + } + }, + "jest-mock": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "@types/node": "*" + } + }, + "jest-regex-util": { + "version": "27.5.1" + }, + "jest-resolve": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "resolve": "^1.20.0", + "resolve.exports": "^1.1.0", + "slash": "^3.0.0" + } + }, + "jest-runtime": { + "version": "27.5.1", + "requires": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/globals": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "execa": "^5.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + } + }, + "jest-snapshot": { + "version": "27.5.1", + "requires": { + "@babel/core": "^7.7.2", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.0.0", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^27.5.1", + "semver": "^7.3.2" + } + }, + "jest-util": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "jest-validate": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "leven": "^3.1.0", + "pretty-format": "^27.5.1" + } + }, + "jest-worker": { + "version": "27.5.1", + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "supports-color": { + "version": "8.1.1", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "lru-cache": { + "version": "6.0.0", + "requires": { + "yallist": "^4.0.0" + } + }, + "resolve.exports": { + "version": "1.1.1" + }, + "semver": { + "version": "7.5.0", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "source-map": { + "version": "0.6.1" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + }, + "write-file-atomic": { + "version": "3.0.3", + "requires": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "yallist": { + "version": "4.0.0" + } + } + }, + "jest-leak-detector": { + "version": "29.5.0", + "requires": { + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0" + }, + "pretty-format": { + "version": "29.5.0", + "requires": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + } + } + } + }, + "jest-matcher-utils": { + "version": "27.5.1", + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "jest-get-type": { + "version": "27.5.1" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-message-util": { + "version": "29.5.0", + "requires": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.5.0", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.5.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "pretty-format": { + "version": "29.5.0", + "requires": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0" + } + } + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-mock": { + "version": "29.5.0", + "requires": { + "@jest/types": "^29.5.0", + "@types/node": "*", + "jest-util": "^29.5.0" + } + }, + "jest-pnp-resolver": { + "version": "1.2.3", + "requires": {} + }, + "jest-regex-util": { + "version": "29.4.3" + }, + "jest-resolve": { + "version": "29.5.0", + "requires": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.5.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.5.0", + "jest-validate": "^29.5.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-resolve-dependencies": { + "version": "29.5.0", + "requires": { + "jest-regex-util": "^29.4.3", + "jest-snapshot": "^29.5.0" + } + }, + "jest-runner": { + "version": "29.5.0", + "requires": { + "@jest/console": "^29.5.0", + "@jest/environment": "^29.5.0", + "@jest/test-result": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.4.3", + "jest-environment-node": "^29.5.0", + "jest-haste-map": "^29.5.0", + "jest-leak-detector": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-resolve": "^29.5.0", + "jest-runtime": "^29.5.0", + "jest-util": "^29.5.0", + "jest-watcher": "^29.5.0", + "jest-worker": "^29.5.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-runtime": { + "version": "29.5.0", + "requires": { + "@jest/environment": "^29.5.0", + "@jest/fake-timers": "^29.5.0", + "@jest/globals": "^29.5.0", + "@jest/source-map": "^29.4.3", + "@jest/test-result": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-mock": "^29.5.0", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.5.0", + "jest-snapshot": "^29.5.0", + "jest-util": "^29.5.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-serializer": { + "version": "27.5.1", + "requires": { + "@types/node": "*", + "graceful-fs": "^4.2.9" + } + }, + "jest-snapshot": { + "version": "29.5.0", + "requires": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.5.0", + "@jest/transform": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/babel__traverse": "^7.0.6", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.5.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.5.0", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.5.0", + "jest-message-util": "^29.5.0", + "jest-util": "^29.5.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.5.0", + "semver": "^7.3.5" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "diff-sequences": { + "version": "29.4.3" + }, + "has-flag": { + "version": "4.0.0" + }, + "jest-diff": { + "version": "29.5.0", + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + } + }, + "jest-matcher-utils": { + "version": "29.5.0", + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^29.5.0", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.5.0" + } + }, + "lru-cache": { + "version": "6.0.0", + "requires": { + "yallist": "^4.0.0" + } + }, + "pretty-format": { + "version": "29.5.0", + "requires": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0" + } + } + }, + "semver": { + "version": "7.5.0", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + }, + "yallist": { + "version": "4.0.0" + } + } + }, + "jest-util": { + "version": "29.5.0", + "requires": { + "@jest/types": "^29.5.0", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-validate": { + "version": "29.5.0", + "requires": { + "@jest/types": "^29.5.0", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.4.3", + "leven": "^3.1.0", + "pretty-format": "^29.5.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "camelcase": { + "version": "6.3.0" + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "pretty-format": { + "version": "29.5.0", + "requires": { + "@jest/schemas": "^29.4.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0" + } + } + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-watcher": { + "version": "29.5.0", + "requires": { + "@jest/test-result": "^29.5.0", + "@jest/types": "^29.5.0", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.5.0", + "string-length": "^4.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-worker": { + "version": "29.5.0", + "requires": { + "@types/node": "*", + "jest-util": "^29.5.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "8.1.1", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jiti": { + "version": "1.18.2" + }, + "js-base64": { + "version": "3.7.5" + }, + "js-sdsl": { + "version": "4.4.0" + }, + "js-sha256": { + "version": "0.9.0" + }, + "js-sha3": { + "version": "0.8.0" + }, + "js-sha512": { + "version": "0.8.0" + }, + "js-tokens": { + "version": "4.0.0" + }, + "js-yaml": { + "version": "3.14.1", + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsbi": { + "version": "3.2.5" + }, + "jsbn": { + "version": "0.1.1" + }, + "jscrypto": { + "version": "1.0.3" + }, + "jsdom": { + "version": "16.7.0", + "requires": { + "abab": "^2.0.5", + "acorn": "^8.2.4", + "acorn-globals": "^6.0.0", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "data-urls": "^2.0.0", + "decimal.js": "^10.2.1", + "domexception": "^2.0.1", + "escodegen": "^2.0.0", + "form-data": "^3.0.0", + "html-encoding-sniffer": "^2.0.1", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.0", + "parse5": "6.0.1", + "saxes": "^5.0.1", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.0.0", + "w3c-hr-time": "^1.0.2", + "w3c-xmlserializer": "^2.0.0", + "webidl-conversions": "^6.1.0", + "whatwg-encoding": "^1.0.5", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.5.0", + "ws": "^7.4.6", + "xml-name-validator": "^3.0.0" + }, + "dependencies": { + "form-data": { + "version": "3.0.1", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, + "tough-cookie": { + "version": "4.1.2", + "requires": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + } + }, + "tr46": { + "version": "2.1.0", + "requires": { + "punycode": "^2.1.1" + } + }, + "universalify": { + "version": "0.2.0" + }, + "webidl-conversions": { + "version": "6.1.0" + }, + "whatwg-url": { + "version": "8.7.0", + "requires": { + "lodash": "^4.7.0", + "tr46": "^2.1.0", + "webidl-conversions": "^6.1.0" + } + } + } + }, + "jsesc": { + "version": "2.5.2" + }, + "json-bigint": { + "version": "1.0.0", + "requires": { + "bignumber.js": "^9.0.0" + } + }, + "json-buffer": { + "version": "3.0.1" + }, + "json-parse-even-better-errors": { + "version": "2.3.1" + }, + "json-rpc-engine": { + "version": "6.1.0", + "requires": { + "@metamask/safe-event-emitter": "^2.0.0", + "eth-rpc-errors": "^4.0.2" + } + }, + "json-rpc-random-id": { + "version": "1.0.1" + }, + "json-schema": { + "version": "0.4.0" + }, + "json-schema-traverse": { + "version": "0.4.1" + }, + "json-stable-stringify": { + "version": "1.0.2", + "requires": { + "jsonify": "^0.0.1" + } + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1" + }, + "json-stringify-safe": { + "version": "5.0.1" + }, + "json5": { + "version": "2.2.3" + }, + "jsonfile": { + "version": "6.1.0", + "requires": { + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" + } + }, + "jsonify": { + "version": "0.0.1" + }, + "jsonparse": { + "version": "1.3.1" + }, + "jsonpointer": { + "version": "5.0.1" + }, + "jsonschema": { + "version": "1.4.1" + }, + "JSONStream": { + "version": "1.3.5", + "requires": { + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" + } + }, + "jsprim": { + "version": "1.4.2", + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.4.0", + "verror": "1.10.0" + } + }, + "jsqr": { + "version": "1.4.0" + }, + "jsx-ast-utils": { + "version": "3.3.3", + "requires": { + "array-includes": "^3.1.5", + "object.assign": "^4.1.3" + } + }, + "keccak": { + "version": "3.0.3", + "requires": { + "node-addon-api": "^2.0.0", + "node-gyp-build": "^4.2.0", + "readable-stream": "^3.6.0" + } + }, + "keccak256": { + "version": "1.0.6", + "requires": { + "bn.js": "^5.2.0", + "buffer": "^6.0.3", + "keccak": "^3.0.2" + } + }, + "keyv": { + "version": "4.5.2", + "requires": { + "json-buffer": "3.0.1" + } + }, + "keyvaluestorage-interface": { + "version": "1.0.0" + }, + "kind-of": { + "version": "6.0.3" + }, + "kleur": { + "version": "3.0.3" + }, + "klona": { + "version": "2.0.6" + }, + "language-subtag-registry": { + "version": "0.3.22" + }, + "language-tags": { + "version": "1.0.5", + "requires": { + "language-subtag-registry": "~0.3.2" + } + }, + "launch-editor": { + "version": "2.6.0", + "requires": { + "picocolors": "^1.0.0", + "shell-quote": "^1.7.3" + } + }, + "level-codec": { + "version": "7.0.1" + }, + "level-errors": { + "version": "1.0.5", + "requires": { + "errno": "~0.1.1" + } + }, + "level-iterator-stream": { + "version": "1.3.1", + "requires": { + "inherits": "^2.0.1", + "level-errors": "^1.0.3", + "readable-stream": "^1.0.33", + "xtend": "^4.0.0" + }, + "dependencies": { + "isarray": { + "version": "0.0.1" + }, + "readable-stream": { + "version": "1.1.14", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "string_decoder": { + "version": "0.10.31" + } + } + }, + "level-ws": { + "version": "0.0.0", + "requires": { + "readable-stream": "~1.0.15", + "xtend": "~2.1.1" + }, + "dependencies": { + "isarray": { + "version": "0.0.1" + }, + "object-keys": { + "version": "0.4.0" + }, + "readable-stream": { + "version": "1.0.34", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "string_decoder": { + "version": "0.10.31" + }, + "xtend": { + "version": "2.1.2", + "requires": { + "object-keys": "~0.4.0" + } + } + } + }, + "levelup": { + "version": "1.3.9", + "requires": { + "deferred-leveldown": "~1.2.1", + "level-codec": "~7.0.0", + "level-errors": "~1.0.3", + "level-iterator-stream": "~1.3.0", + "prr": "~1.0.1", + "semver": "~5.4.1", + "xtend": "~4.0.0" + }, + "dependencies": { + "semver": { + "version": "5.4.1" + } + } + }, + "leven": { + "version": "3.1.0" + }, + "levn": { + "version": "0.4.1", + "requires": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + } + }, + "libsodium": { + "version": "0.7.11" + }, + "libsodium-wrappers": { + "version": "0.7.11", + "requires": { + "libsodium": "^0.7.11" + } + }, + "lilconfig": { + "version": "2.1.0" + }, + "lines-and-columns": { + "version": "1.2.4" + }, + "link-module-alias": { + "version": "1.2.0", + "requires": { + "chalk": "^2.4.1" + } + }, + "lit": { + "version": "2.7.3", + "requires": { + "@lit/reactive-element": "^1.6.0", + "lit-element": "^3.3.0", + "lit-html": "^2.7.0" + } + }, + "lit-element": { + "version": "3.3.2", + "requires": { + "@lit-labs/ssr-dom-shim": "^1.1.0", + "@lit/reactive-element": "^1.3.0", + "lit-html": "^2.7.0" + } + }, + "lit-html": { + "version": "2.7.3", + "requires": { + "@types/trusted-types": "^2.0.2" + } + }, + "loader-runner": { + "version": "4.3.0" + }, + "loader-utils": { + "version": "2.0.4", + "requires": { + "big.js": "^5.2.2", + "emojis-list": "^3.0.0", + "json5": "^2.1.2" + } + }, + "locate-path": { + "version": "5.0.0", + "requires": { + "p-locate": "^4.1.0" + } + }, + "lodash": { + "version": "4.17.21" + }, + "lodash-es": { + "version": "4.17.21" + }, + "lodash.debounce": { + "version": "4.0.8" + }, + "lodash.isequal": { + "version": "4.5.0" + }, + "lodash.memoize": { + "version": "4.1.2" + }, + "lodash.merge": { + "version": "4.6.2" + }, + "lodash.sortby": { + "version": "4.7.0" + }, + "lodash.uniq": { + "version": "4.5.0" + }, + "lodash.values": { + "version": "4.3.0" + }, + "loglevel": { + "version": "1.8.1" + }, + "long": { + "version": "4.0.0" + }, + "loose-envify": { + "version": "1.4.0", + "requires": { + "js-tokens": "^3.0.0 || ^4.0.0" + } + }, + "lower-case": { + "version": "2.0.2", + "requires": { + "tslib": "^2.0.3" + } + }, + "lowercase-keys": { + "version": "3.0.0" + }, + "lru-cache": { + "version": "5.1.1", + "requires": { + "yallist": "^3.0.2" + } + }, + "ltgt": { + "version": "2.2.1" + }, + "lz-string": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/lz-string/-/lz-string-1.5.0.tgz", + "integrity": "sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==" + }, + "magic-string": { + "version": "0.25.9", + "requires": { + "sourcemap-codec": "^1.4.8" + } + }, + "make-dir": { + "version": "3.1.0", + "requires": { + "semver": "^6.0.0" + } + }, + "make-error": { + "version": "1.3.6" + }, + "makeerror": { + "version": "1.0.12", + "requires": { + "tmpl": "1.0.5" + } + }, + "map-obj": { + "version": "4.3.0" + }, + "material-ui-popup-state": { + "version": "5.0.8", + "requires": { + "@babel/runtime": "^7.20.6", + "@mui/material": "^5.0.0", + "classnames": "^2.2.6", + "prop-types": "^15.7.2" + } + }, + "md5.js": { + "version": "1.3.5", + "requires": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1", + "safe-buffer": "^5.1.2" + } + }, + "mdn-data": { + "version": "2.0.4" + }, + "media-typer": { + "version": "0.3.0" + }, + "memdown": { + "version": "1.4.1", + "requires": { + "abstract-leveldown": "~2.7.1", + "functional-red-black-tree": "^1.0.1", + "immediate": "^3.2.3", + "inherits": "~2.0.1", + "ltgt": "~2.2.0", + "safe-buffer": "~5.1.1" + }, + "dependencies": { + "abstract-leveldown": { + "version": "2.7.2", + "requires": { + "xtend": "~4.0.0" + } + }, + "safe-buffer": { + "version": "5.1.2" + } + } + }, + "memfs": { + "version": "3.5.1", + "requires": { + "fs-monkey": "^1.0.3" + } + }, + "merge-descriptors": { + "version": "1.0.1" + }, + "merge-stream": { + "version": "2.0.0" + }, + "merge2": { + "version": "1.4.1" + }, + "merkle-patricia-tree": { + "version": "2.3.2", + "requires": { + "async": "^1.4.2", + "ethereumjs-util": "^5.0.0", + "level-ws": "0.0.0", + "levelup": "^1.2.1", + "memdown": "^1.0.0", + "readable-stream": "^2.0.0", + "rlp": "^2.0.0", + "semaphore": ">=1.0.1" + }, + "dependencies": { + "async": { + "version": "1.5.2" + }, + "bn.js": { + "version": "4.12.0" + }, + "ethereum-cryptography": { + "version": "0.1.3", + "requires": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "ethereumjs-util": { + "version": "5.2.1", + "requires": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + }, + "isarray": { + "version": "1.0.0" + }, + "readable-stream": { + "version": "2.3.8", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2" + }, + "string_decoder": { + "version": "1.1.1", + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "methods": { + "version": "1.1.2" + }, + "micro-ftch": { + "version": "0.3.1" + }, + "micromatch": { + "version": "4.0.5", + "requires": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + } + }, + "miller-rabin": { + "version": "4.0.1", + "requires": { + "bn.js": "^4.0.0", + "brorand": "^1.0.1" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0" + } + } + }, + "mime": { + "version": "1.6.0" + }, + "mime-db": { + "version": "1.52.0" + }, + "mime-types": { + "version": "2.1.35", + "requires": { + "mime-db": "1.52.0" + } + }, + "mimic-fn": { + "version": "2.1.0" + }, + "mimic-response": { + "version": "1.0.1" + }, + "min-document": { + "version": "2.19.0", + "requires": { + "dom-walk": "^0.1.0" + } + }, + "min-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/min-indent/-/min-indent-1.0.1.tgz", + "integrity": "sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==" + }, + "mini-css-extract-plugin": { + "version": "2.7.5", + "requires": { + "schema-utils": "^4.0.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "5.1.0", + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, + "json-schema-traverse": { + "version": "1.0.0" + }, + "schema-utils": { + "version": "4.0.1", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } + } + } + }, + "minimalistic-assert": { + "version": "1.0.1" + }, + "minimalistic-crypto-utils": { + "version": "1.0.1" + }, + "minimatch": { + "version": "3.1.2", + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.8" + }, + "minipass": { + "version": "2.9.0", + "requires": { + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" + } + }, + "minizlib": { + "version": "1.3.3", + "requires": { + "minipass": "^2.9.0" + } + }, + "mkdirp": { + "version": "1.0.4" + }, + "mkdirp-promise": { + "version": "5.0.1", + "requires": { + "mkdirp": "*" + } + }, + "mock-fs": { + "version": "4.14.0" + }, + "motion": { + "version": "10.15.5", + "requires": { + "@motionone/animation": "^10.15.1", + "@motionone/dom": "^10.15.5", + "@motionone/svelte": "^10.15.5", + "@motionone/types": "^10.15.1", + "@motionone/utils": "^10.15.1", + "@motionone/vue": "^10.15.5" + } + }, + "ms": { + "version": "2.1.2" + }, + "multibase": { + "version": "0.6.1", + "requires": { + "base-x": "^3.0.8", + "buffer": "^5.5.0" + }, + "dependencies": { + "buffer": { + "version": "5.7.1", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + } + } + }, + "multicast-dns": { + "version": "7.2.5", + "requires": { + "dns-packet": "^5.2.2", + "thunky": "^1.0.2" + } + }, + "multicodec": { + "version": "0.5.7", + "requires": { + "varint": "^5.0.0" + } + }, + "multiformats": { + "version": "9.9.0" + }, + "multihashes": { + "version": "0.4.21", + "requires": { + "buffer": "^5.5.0", + "multibase": "^0.7.0", + "varint": "^5.0.0" + }, + "dependencies": { + "buffer": { + "version": "5.7.1", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "multibase": { + "version": "0.7.0", + "requires": { + "base-x": "^3.0.8", + "buffer": "^5.5.0" + } + } + } + }, + "mustache": { + "version": "4.2.0" + }, + "mz": { + "version": "2.7.0", + "requires": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "nan": { + "version": "2.14.0" + }, + "nano-json-stream-parser": { + "version": "0.1.2" + }, + "nanoid": { + "version": "3.3.6" + }, + "natural-compare": { + "version": "1.4.0" + }, + "natural-compare-lite": { + "version": "1.4.0" + }, + "near-api-js": { + "version": "1.1.0", + "requires": { + "bn.js": "5.2.1", + "borsh": "^0.7.0", + "bs58": "^4.0.0", + "depd": "^2.0.0", + "error-polyfill": "^0.1.3", + "http-errors": "^1.7.2", + "js-sha256": "^0.9.0", + "mustache": "^4.0.0", + "node-fetch": "^2.6.1", + "text-encoding-utf-8": "^1.0.2", + "tweetnacl": "^1.0.1" + } + }, + "negotiator": { + "version": "0.6.3" + }, + "neo-async": { + "version": "2.6.2" + }, + "next-tick": { + "version": "1.1.0" + }, + "no-case": { + "version": "3.0.4", + "requires": { + "lower-case": "^2.0.2", + "tslib": "^2.0.3" + } + }, + "node-addon-api": { + "version": "2.0.2" + }, + "node-fetch": { + "version": "2.6.9", + "requires": { + "whatwg-url": "^5.0.0" + } + }, + "node-forge": { + "version": "1.3.1" + }, + "node-gyp-build": { + "version": "4.6.0" + }, + "node-int64": { + "version": "0.4.0" + }, + "node-releases": { + "version": "2.0.10" + }, + "noms": { + "version": "0.0.0", + "requires": { + "inherits": "^2.0.1", + "readable-stream": "~1.0.31" + }, + "dependencies": { + "isarray": { + "version": "0.0.1" + }, + "readable-stream": { + "version": "1.0.34", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "string_decoder": { + "version": "0.10.31" + } + } + }, + "normalize-path": { + "version": "3.0.0" + }, + "normalize-range": { + "version": "0.1.2" + }, + "normalize-url": { + "version": "6.1.0" + }, + "npm-run-path": { + "version": "4.0.1", + "requires": { + "path-key": "^3.0.0" + } + }, + "nth-check": { + "version": "2.1.1", + "requires": { + "boolbase": "^1.0.0" + } + }, + "number-to-bn": { + "version": "1.7.0", + "requires": { + "bn.js": "4.11.6", + "strip-hex-prefix": "1.0.0" + }, + "dependencies": { + "bn.js": { + "version": "4.11.6" + } + } + }, + "nwsapi": { + "version": "2.2.4" + }, + "o3": { + "version": "1.0.3", + "requires": { + "capability": "^0.2.5" + } + }, + "oauth-sign": { + "version": "0.9.0" + }, + "object-assign": { + "version": "4.1.1" + }, + "object-hash": { + "version": "3.0.0" + }, + "object-inspect": { + "version": "1.12.3" + }, + "object-is": { + "version": "1.1.5", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.3" + } + }, + "object-keys": { + "version": "1.1.1" + }, + "object.assign": { + "version": "4.1.4", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "has-symbols": "^1.0.3", + "object-keys": "^1.1.1" + } + }, + "object.entries": { + "version": "1.1.6", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "object.fromentries": { + "version": "2.0.6", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "object.getownpropertydescriptors": { + "version": "2.1.6", + "requires": { + "array.prototype.reduce": "^1.0.5", + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "es-abstract": "^1.21.2", + "safe-array-concat": "^1.0.0" + } + }, + "object.hasown": { + "version": "1.1.2", + "requires": { + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "object.values": { + "version": "1.1.6", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "oblivious-set": { + "version": "1.1.1" + }, + "oboe": { + "version": "2.1.5", + "requires": { + "http-https": "^1.0.0" + } + }, + "obuf": { + "version": "1.1.2" + }, + "on-exit-leak-free": { + "version": "0.2.0" + }, + "on-finished": { + "version": "2.4.1", + "requires": { + "ee-first": "1.1.1" + } + }, + "on-headers": { + "version": "1.0.2" + }, + "once": { + "version": "1.4.0", + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "5.1.2", + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "open": { + "version": "8.4.2", + "requires": { + "define-lazy-prop": "^2.0.0", + "is-docker": "^2.1.1", + "is-wsl": "^2.2.0" + } + }, + "optimism": { + "version": "0.16.2", + "requires": { + "@wry/context": "^0.7.0", + "@wry/trie": "^0.3.0" + } + }, + "optionator": { + "version": "0.9.1", + "requires": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.3" + } + }, + "os-browserify": { + "version": "0.3.0" + }, + "p-cancelable": { + "version": "3.0.0" + }, + "p-limit": { + "version": "3.1.0", + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "4.1.0", + "requires": { + "p-limit": "^2.2.0" + }, + "dependencies": { + "p-limit": { + "version": "2.3.0", + "requires": { + "p-try": "^2.0.0" + } + } + } + }, + "p-retry": { + "version": "4.6.2", + "requires": { + "@types/retry": "0.12.0", + "retry": "^0.13.1" + } + }, + "p-try": { + "version": "2.2.0" + }, + "pako": { + "version": "2.1.0" + }, + "param-case": { + "version": "3.0.4", + "requires": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "parent-module": { + "version": "1.0.1", + "requires": { + "callsites": "^3.0.0" + } + }, + "parse-asn1": { + "version": "5.1.6", + "requires": { + "asn1.js": "^5.2.0", + "browserify-aes": "^1.0.0", + "evp_bytestokey": "^1.0.0", + "pbkdf2": "^3.0.3", + "safe-buffer": "^5.1.1" + } + }, + "parse-headers": { + "version": "2.0.5" + }, + "parse-json": { + "version": "5.2.0", + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "parse5": { + "version": "6.0.1" + }, + "parseurl": { + "version": "1.3.3" + }, + "pascal-case": { + "version": "3.1.2", + "requires": { + "no-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "path-exists": { + "version": "4.0.0" + }, + "path-is-absolute": { + "version": "1.0.1" + }, + "path-key": { + "version": "3.1.1" + }, + "path-parse": { + "version": "1.0.7" + }, + "path-to-regexp": { + "version": "0.1.7" + }, + "path-type": { + "version": "4.0.0" + }, + "pbkdf2": { + "version": "3.1.2", + "requires": { + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4", + "ripemd160": "^2.0.1", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" + } + }, + "performance-now": { + "version": "2.1.0" + }, + "picocolors": { + "version": "1.0.0" + }, + "picomatch": { + "version": "2.3.1" + }, + "pify": { + "version": "3.0.0" + }, + "pino": { + "version": "7.11.0", + "requires": { + "atomic-sleep": "^1.0.0", + "fast-redact": "^3.0.0", + "on-exit-leak-free": "^0.2.0", + "pino-abstract-transport": "v0.5.0", + "pino-std-serializers": "^4.0.0", + "process-warning": "^1.0.0", + "quick-format-unescaped": "^4.0.3", + "real-require": "^0.1.0", + "safe-stable-stringify": "^2.1.0", + "sonic-boom": "^2.2.1", + "thread-stream": "^0.15.1" + } + }, + "pino-abstract-transport": { + "version": "0.5.0", + "requires": { + "duplexify": "^4.1.2", + "split2": "^4.0.0" + } + }, + "pino-std-serializers": { + "version": "4.0.0" + }, + "pirates": { + "version": "4.0.5" + }, + "pkg-dir": { + "version": "4.2.0", + "requires": { + "find-up": "^4.0.0" + } + }, + "pkg-up": { + "version": "3.1.0", + "requires": { + "find-up": "^3.0.0" + }, + "dependencies": { + "find-up": { + "version": "3.0.0", + "requires": { + "locate-path": "^3.0.0" + } + }, + "locate-path": { + "version": "3.0.0", + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "2.3.0", + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "requires": { + "p-limit": "^2.0.0" + } + }, + "path-exists": { + "version": "3.0.0" + } + } + }, + "pngjs": { + "version": "3.4.0" + }, + "postcss": { + "version": "8.4.23", + "requires": { + "nanoid": "^3.3.6", + "picocolors": "^1.0.0", + "source-map-js": "^1.0.2" + } + }, + "postcss-attribute-case-insensitive": { + "version": "5.0.2", + "requires": { + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-browser-comments": { + "version": "4.0.0", + "requires": {} + }, + "postcss-calc": { + "version": "8.2.4", + "requires": { + "postcss-selector-parser": "^6.0.9", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-clamp": { + "version": "4.1.0", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-color-functional-notation": { + "version": "4.2.4", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-color-hex-alpha": { + "version": "8.0.4", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-color-rebeccapurple": { + "version": "7.1.1", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-colormin": { + "version": "5.3.1", + "requires": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "colord": "^2.9.1", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-convert-values": { + "version": "5.1.3", + "requires": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-custom-media": { + "version": "8.0.2", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-custom-properties": { + "version": "12.1.11", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-custom-selectors": { + "version": "6.0.3", + "requires": { + "postcss-selector-parser": "^6.0.4" + } + }, + "postcss-dir-pseudo-class": { + "version": "6.0.5", + "requires": { + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-discard-comments": { + "version": "5.1.2", + "requires": {} + }, + "postcss-discard-duplicates": { + "version": "5.1.0", + "requires": {} + }, + "postcss-discard-empty": { + "version": "5.1.1", + "requires": {} + }, + "postcss-discard-overridden": { + "version": "5.1.0", + "requires": {} + }, + "postcss-double-position-gradients": { + "version": "3.1.2", + "requires": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-env-function": { + "version": "4.0.6", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-flexbugs-fixes": { + "version": "5.0.2", + "requires": {} + }, + "postcss-focus-visible": { + "version": "6.0.4", + "requires": { + "postcss-selector-parser": "^6.0.9" + } + }, + "postcss-focus-within": { + "version": "5.0.4", + "requires": { + "postcss-selector-parser": "^6.0.9" + } + }, + "postcss-font-variant": { + "version": "5.0.0", + "requires": {} + }, + "postcss-gap-properties": { + "version": "3.0.5", + "requires": {} + }, + "postcss-image-set-function": { + "version": "4.0.7", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-import": { + "version": "15.1.0", + "requires": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + } + }, + "postcss-initial": { + "version": "4.0.1", + "requires": {} + }, + "postcss-js": { + "version": "4.0.1", + "requires": { + "camelcase-css": "^2.0.1" + } + }, + "postcss-lab-function": { + "version": "4.2.1", + "requires": { + "@csstools/postcss-progressive-custom-properties": "^1.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-load-config": { + "version": "4.0.1", + "requires": { + "lilconfig": "^2.0.5", + "yaml": "^2.1.1" + }, + "dependencies": { + "yaml": { + "version": "2.2.2" + } + } + }, + "postcss-loader": { + "version": "6.2.1", + "requires": { + "cosmiconfig": "^7.0.0", + "klona": "^2.0.5", + "semver": "^7.3.5" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.5.0", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0" + } + } + }, + "postcss-logical": { + "version": "5.0.4", + "requires": {} + }, + "postcss-media-minmax": { + "version": "5.0.0", + "requires": {} + }, + "postcss-merge-longhand": { + "version": "5.1.7", + "requires": { + "postcss-value-parser": "^4.2.0", + "stylehacks": "^5.1.1" + } + }, + "postcss-merge-rules": { + "version": "5.1.4", + "requires": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0", + "cssnano-utils": "^3.1.0", + "postcss-selector-parser": "^6.0.5" + } + }, + "postcss-minify-font-values": { + "version": "5.1.0", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-minify-gradients": { + "version": "5.1.1", + "requires": { + "colord": "^2.9.1", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-minify-params": { + "version": "5.1.4", + "requires": { + "browserslist": "^4.21.4", + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-minify-selectors": { + "version": "5.2.1", + "requires": { + "postcss-selector-parser": "^6.0.5" + } + }, + "postcss-modules-extract-imports": { + "version": "3.0.0", + "requires": {} + }, + "postcss-modules-local-by-default": { + "version": "4.0.0", + "requires": { + "icss-utils": "^5.0.0", + "postcss-selector-parser": "^6.0.2", + "postcss-value-parser": "^4.1.0" + } + }, + "postcss-modules-scope": { + "version": "3.0.0", + "requires": { + "postcss-selector-parser": "^6.0.4" + } + }, + "postcss-modules-values": { + "version": "4.0.0", + "requires": { + "icss-utils": "^5.0.0" + } + }, + "postcss-nested": { + "version": "6.0.1", + "requires": { + "postcss-selector-parser": "^6.0.11" + } + }, + "postcss-nesting": { + "version": "10.2.0", + "requires": { + "@csstools/selector-specificity": "^2.0.0", + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-normalize": { + "version": "10.0.1", + "requires": { + "@csstools/normalize.css": "*", + "postcss-browser-comments": "^4", + "sanitize.css": "*" + } + }, + "postcss-normalize-charset": { + "version": "5.1.0", + "requires": {} + }, + "postcss-normalize-display-values": { + "version": "5.1.0", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-positions": { + "version": "5.1.1", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-repeat-style": { + "version": "5.1.1", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-string": { + "version": "5.1.0", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-timing-functions": { + "version": "5.1.0", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-unicode": { + "version": "5.1.1", + "requires": { + "browserslist": "^4.21.4", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-url": { + "version": "5.1.0", + "requires": { + "normalize-url": "^6.0.1", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-normalize-whitespace": { + "version": "5.1.1", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-opacity-percentage": { + "version": "1.1.3", + "requires": {} + }, + "postcss-ordered-values": { + "version": "5.1.3", + "requires": { + "cssnano-utils": "^3.1.0", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-overflow-shorthand": { + "version": "3.0.4", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-page-break": { + "version": "3.0.4", + "requires": {} + }, + "postcss-place": { + "version": "7.0.5", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-preset-env": { + "version": "7.8.3", + "requires": { + "@csstools/postcss-cascade-layers": "^1.1.1", + "@csstools/postcss-color-function": "^1.1.1", + "@csstools/postcss-font-format-keywords": "^1.0.1", + "@csstools/postcss-hwb-function": "^1.0.2", + "@csstools/postcss-ic-unit": "^1.0.1", + "@csstools/postcss-is-pseudo-class": "^2.0.7", + "@csstools/postcss-nested-calc": "^1.0.0", + "@csstools/postcss-normalize-display-values": "^1.0.1", + "@csstools/postcss-oklab-function": "^1.1.1", + "@csstools/postcss-progressive-custom-properties": "^1.3.0", + "@csstools/postcss-stepped-value-functions": "^1.0.1", + "@csstools/postcss-text-decoration-shorthand": "^1.0.0", + "@csstools/postcss-trigonometric-functions": "^1.0.2", + "@csstools/postcss-unset-value": "^1.0.2", + "autoprefixer": "^10.4.13", + "browserslist": "^4.21.4", + "css-blank-pseudo": "^3.0.3", + "css-has-pseudo": "^3.0.4", + "css-prefers-color-scheme": "^6.0.3", + "cssdb": "^7.1.0", + "postcss-attribute-case-insensitive": "^5.0.2", + "postcss-clamp": "^4.1.0", + "postcss-color-functional-notation": "^4.2.4", + "postcss-color-hex-alpha": "^8.0.4", + "postcss-color-rebeccapurple": "^7.1.1", + "postcss-custom-media": "^8.0.2", + "postcss-custom-properties": "^12.1.10", + "postcss-custom-selectors": "^6.0.3", + "postcss-dir-pseudo-class": "^6.0.5", + "postcss-double-position-gradients": "^3.1.2", + "postcss-env-function": "^4.0.6", + "postcss-focus-visible": "^6.0.4", + "postcss-focus-within": "^5.0.4", + "postcss-font-variant": "^5.0.0", + "postcss-gap-properties": "^3.0.5", + "postcss-image-set-function": "^4.0.7", + "postcss-initial": "^4.0.1", + "postcss-lab-function": "^4.2.1", + "postcss-logical": "^5.0.4", + "postcss-media-minmax": "^5.0.0", + "postcss-nesting": "^10.2.0", + "postcss-opacity-percentage": "^1.1.2", + "postcss-overflow-shorthand": "^3.0.4", + "postcss-page-break": "^3.0.4", + "postcss-place": "^7.0.5", + "postcss-pseudo-class-any-link": "^7.1.6", + "postcss-replace-overflow-wrap": "^4.0.0", + "postcss-selector-not": "^6.0.1", + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-pseudo-class-any-link": { + "version": "7.1.6", + "requires": { + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-reduce-initial": { + "version": "5.1.2", + "requires": { + "browserslist": "^4.21.4", + "caniuse-api": "^3.0.0" + } + }, + "postcss-reduce-transforms": { + "version": "5.1.0", + "requires": { + "postcss-value-parser": "^4.2.0" + } + }, + "postcss-replace-overflow-wrap": { + "version": "4.0.0", + "requires": {} + }, + "postcss-selector-not": { + "version": "6.0.1", + "requires": { + "postcss-selector-parser": "^6.0.10" + } + }, + "postcss-selector-parser": { + "version": "6.0.11", + "requires": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + } + }, + "postcss-svgo": { + "version": "5.1.0", + "requires": { + "postcss-value-parser": "^4.2.0", + "svgo": "^2.7.0" + }, + "dependencies": { + "commander": { + "version": "7.2.0" + }, + "css-tree": { + "version": "1.1.3", + "requires": { + "mdn-data": "2.0.14", + "source-map": "^0.6.1" + } + }, + "mdn-data": { + "version": "2.0.14" + }, + "source-map": { + "version": "0.6.1" + }, + "svgo": { + "version": "2.8.0", + "requires": { + "@trysound/sax": "0.2.0", + "commander": "^7.2.0", + "css-select": "^4.1.3", + "css-tree": "^1.1.3", + "csso": "^4.2.0", + "picocolors": "^1.0.0", + "stable": "^0.1.8" + } + } + } + }, + "postcss-unique-selectors": { + "version": "5.1.1", + "requires": { + "postcss-selector-parser": "^6.0.5" + } + }, + "postcss-value-parser": { + "version": "4.2.0" + }, + "preact": { + "version": "10.4.1" + }, + "precond": { + "version": "0.2.3" + }, + "prelude-ls": { + "version": "1.2.1" + }, + "prettier": { + "version": "2.8.8" + }, + "pretty-bytes": { + "version": "5.6.0" + }, + "pretty-error": { + "version": "4.0.0", + "requires": { + "lodash": "^4.17.20", + "renderkid": "^3.0.0" + } + }, + "pretty-format": { + "version": "27.5.1", + "requires": { + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0" + }, + "react-is": { + "version": "17.0.2" + } + } + }, + "process": { + "version": "0.11.10" + }, + "process-nextick-args": { + "version": "2.0.1" + }, + "process-warning": { + "version": "1.0.0" + }, + "promise": { + "version": "8.3.0", + "requires": { + "asap": "~2.0.6" + } + }, + "promise-to-callback": { + "version": "1.0.0", + "requires": { + "is-fn": "^1.0.0", + "set-immediate-shim": "^1.0.1" + } + }, + "prompts": { + "version": "2.4.2", + "requires": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + } + }, + "prop-types": { + "version": "15.8.1", + "requires": { + "loose-envify": "^1.4.0", + "object-assign": "^4.1.1", + "react-is": "^16.13.1" + }, + "dependencies": { + "react-is": { + "version": "16.13.1" + } + } + }, + "protobufjs": { + "version": "7.2.3", + "requires": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "dependencies": { + "long": { + "version": "5.2.3" + } + } + }, + "proxy-addr": { + "version": "2.0.7", + "requires": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + } + }, + "proxy-compare": { + "version": "2.5.0" + }, + "proxy-from-env": { + "version": "1.1.0" + }, + "prr": { + "version": "1.0.1" + }, + "psl": { + "version": "1.9.0" + }, + "public-encrypt": { + "version": "4.0.3", + "requires": { + "bn.js": "^4.1.0", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "parse-asn1": "^5.0.0", + "randombytes": "^2.0.1", + "safe-buffer": "^5.1.2" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0" + } + } + }, + "pump": { + "version": "3.0.0", + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "punycode": { + "version": "2.3.0" + }, + "pure-rand": { + "version": "6.0.2" + }, + "q": { + "version": "1.5.1" + }, + "qr.js": { + "version": "0.0.0" + }, + "qrcode": { + "version": "1.4.4", + "requires": { + "buffer": "^5.4.3", + "buffer-alloc": "^1.2.0", + "buffer-from": "^1.1.1", + "dijkstrajs": "^1.0.1", + "isarray": "^2.0.1", + "pngjs": "^3.3.0", + "yargs": "^13.2.4" + }, + "dependencies": { + "ansi-regex": { + "version": "4.1.1" + }, + "buffer": { + "version": "5.7.1", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "cliui": { + "version": "5.0.0", + "requires": { + "string-width": "^3.1.0", + "strip-ansi": "^5.2.0", + "wrap-ansi": "^5.1.0" + } + }, + "emoji-regex": { + "version": "7.0.3" + }, + "find-up": { + "version": "3.0.0", + "requires": { + "locate-path": "^3.0.0" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0" + }, + "locate-path": { + "version": "3.0.0", + "requires": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + } + }, + "p-limit": { + "version": "2.3.0", + "requires": { + "p-try": "^2.0.0" + } + }, + "p-locate": { + "version": "3.0.0", + "requires": { + "p-limit": "^2.0.0" + } + }, + "path-exists": { + "version": "3.0.0" + }, + "string-width": { + "version": "3.1.0", + "requires": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + } + }, + "strip-ansi": { + "version": "5.2.0", + "requires": { + "ansi-regex": "^4.1.0" + } + }, + "wrap-ansi": { + "version": "5.1.0", + "requires": { + "ansi-styles": "^3.2.0", + "string-width": "^3.0.0", + "strip-ansi": "^5.0.0" + } + }, + "y18n": { + "version": "4.0.3" + }, + "yargs": { + "version": "13.3.2", + "requires": { + "cliui": "^5.0.0", + "find-up": "^3.0.0", + "get-caller-file": "^2.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^2.0.0", + "set-blocking": "^2.0.0", + "string-width": "^3.0.0", + "which-module": "^2.0.0", + "y18n": "^4.0.0", + "yargs-parser": "^13.1.2" + } + }, + "yargs-parser": { + "version": "13.1.2", + "requires": { + "camelcase": "^5.0.0", + "decamelize": "^1.2.0" + } + } + } + }, + "qs": { + "version": "6.11.1", + "requires": { + "side-channel": "^1.0.4" + } + }, + "query-string": { + "version": "7.1.3", + "requires": { + "decode-uri-component": "^0.2.2", + "filter-obj": "^1.1.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" + } + }, + "querystring": { + "version": "0.2.0" + }, + "querystringify": { + "version": "2.2.0" + }, + "queue-microtask": { + "version": "1.2.3" + }, + "quick-format-unescaped": { + "version": "4.0.4" + }, + "quick-lru": { + "version": "5.1.1" + }, + "raf": { + "version": "3.4.1", + "requires": { + "performance-now": "^2.1.0" + } + }, + "randombytes": { + "version": "2.1.0", + "requires": { + "safe-buffer": "^5.1.0" + } + }, + "randomfill": { + "version": "1.0.4", + "requires": { + "randombytes": "^2.0.5", + "safe-buffer": "^5.1.0" + } + }, + "range-parser": { + "version": "1.2.1" + }, + "raw-body": { + "version": "2.5.2", + "requires": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "dependencies": { + "http-errors": { + "version": "2.0.0", + "requires": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + } + }, + "iconv-lite": { + "version": "0.4.24", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + }, + "statuses": { + "version": "2.0.1" + } + } + }, + "react": { + "version": "18.2.0", + "requires": { + "loose-envify": "^1.1.0" + } + }, + "react-app-polyfill": { + "version": "3.0.0", + "requires": { + "core-js": "^3.19.2", + "object-assign": "^4.1.1", + "promise": "^8.1.0", + "raf": "^3.4.1", + "regenerator-runtime": "^0.13.9", + "whatwg-fetch": "^3.6.2" + } + }, + "react-app-rewired": { + "version": "2.2.1", + "requires": { + "semver": "^5.6.0" + }, + "dependencies": { + "semver": { + "version": "5.7.1" + } + } + }, + "react-dev-utils": { + "version": "12.0.1", + "requires": { + "@babel/code-frame": "^7.16.0", + "address": "^1.1.2", + "browserslist": "^4.18.1", + "chalk": "^4.1.2", + "cross-spawn": "^7.0.3", + "detect-port-alt": "^1.1.6", + "escape-string-regexp": "^4.0.0", + "filesize": "^8.0.6", + "find-up": "^5.0.0", + "fork-ts-checker-webpack-plugin": "^6.5.0", + "global-modules": "^2.0.0", + "globby": "^11.0.4", + "gzip-size": "^6.0.0", + "immer": "^9.0.7", + "is-root": "^2.1.0", + "loader-utils": "^3.2.0", + "open": "^8.4.0", + "pkg-up": "^3.1.0", + "prompts": "^2.4.2", + "react-error-overlay": "^6.0.11", + "recursive-readdir": "^2.2.2", + "shell-quote": "^1.7.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "find-up": { + "version": "5.0.0", + "requires": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + } + }, + "has-flag": { + "version": "4.0.0" + }, + "loader-utils": { + "version": "3.2.1" + }, + "locate-path": { + "version": "6.0.0", + "requires": { + "p-locate": "^5.0.0" + } + }, + "p-locate": { + "version": "5.0.0", + "requires": { + "p-limit": "^3.0.2" + } + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "react-dom": { + "version": "18.2.0", + "requires": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.0" + } + }, + "react-error-overlay": { + "version": "6.0.11" + }, + "react-is": { + "version": "18.2.0" + }, + "react-lifecycles-compat": { + "version": "3.0.4" + }, + "react-modal": { + "version": "3.16.1", + "requires": { + "exenv": "^1.2.0", + "prop-types": "^15.7.2", + "react-lifecycles-compat": "^3.0.0", + "warning": "^4.0.3" + } + }, + "react-redux": { + "version": "8.0.5", + "requires": { + "@babel/runtime": "^7.12.1", + "@types/hoist-non-react-statics": "^3.3.1", + "@types/use-sync-external-store": "^0.0.3", + "hoist-non-react-statics": "^3.3.2", + "react-is": "^18.0.0", + "use-sync-external-store": "^1.0.0" + } + }, + "react-refresh": { + "version": "0.11.0" + }, + "react-scripts": { + "version": "5.0.1", + "requires": { + "@babel/core": "^7.16.0", + "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3", + "@svgr/webpack": "^5.5.0", + "babel-jest": "^27.4.2", + "babel-loader": "^8.2.3", + "babel-plugin-named-asset-import": "^0.3.8", + "babel-preset-react-app": "^10.0.1", + "bfj": "^7.0.2", + "browserslist": "^4.18.1", + "camelcase": "^6.2.1", + "case-sensitive-paths-webpack-plugin": "^2.4.0", + "css-loader": "^6.5.1", + "css-minimizer-webpack-plugin": "^3.2.0", + "dotenv": "^10.0.0", + "dotenv-expand": "^5.1.0", + "eslint": "^8.3.0", + "eslint-config-react-app": "^7.0.1", + "eslint-webpack-plugin": "^3.1.1", + "file-loader": "^6.2.0", + "fs-extra": "^10.0.0", + "fsevents": "^2.3.2", + "html-webpack-plugin": "^5.5.0", + "identity-obj-proxy": "^3.0.0", + "jest": "^27.4.3", + "jest-resolve": "^27.4.2", + "jest-watch-typeahead": "^1.0.0", + "mini-css-extract-plugin": "^2.4.5", + "postcss": "^8.4.4", + "postcss-flexbugs-fixes": "^5.0.2", + "postcss-loader": "^6.2.1", + "postcss-normalize": "^10.0.1", + "postcss-preset-env": "^7.0.1", + "prompts": "^2.4.2", + "react-app-polyfill": "^3.0.0", + "react-dev-utils": "^12.0.1", + "react-refresh": "^0.11.0", + "resolve": "^1.20.0", + "resolve-url-loader": "^4.0.0", + "sass-loader": "^12.3.0", + "semver": "^7.3.5", + "source-map-loader": "^3.0.0", + "style-loader": "^3.3.1", + "tailwindcss": "^3.0.2", + "terser-webpack-plugin": "^5.2.5", + "webpack": "^5.64.4", + "webpack-dev-server": "^4.6.0", + "webpack-manifest-plugin": "^4.0.2", + "workbox-webpack-plugin": "^6.4.1" + }, + "dependencies": { + "@jest/console": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0" + } + }, + "@jest/core": { + "version": "27.5.1", + "requires": { + "@jest/console": "^27.5.1", + "@jest/reporters": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^27.5.1", + "jest-config": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-resolve-dependencies": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "jest-watcher": "^27.5.1", + "micromatch": "^4.0.4", + "rimraf": "^3.0.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + } + }, + "@jest/environment": { + "version": "27.5.1", + "requires": { + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" + } + }, + "@jest/fake-timers": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + } + }, + "@jest/globals": { + "version": "27.5.1", + "requires": { + "@jest/environment": "^27.5.1", + "@jest/types": "^27.5.1", + "expect": "^27.5.1" + } + }, + "@jest/reporters": { + "version": "27.5.1", + "requires": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.2", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-haste-map": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "slash": "^3.0.0", + "source-map": "^0.6.0", + "string-length": "^4.0.1", + "terminal-link": "^2.0.0", + "v8-to-istanbul": "^8.1.0" + } + }, + "@jest/schemas": { + "version": "28.1.3", + "requires": { + "@sinclair/typebox": "^0.24.1" + } + }, + "@jest/source-map": { + "version": "27.5.1", + "requires": { + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9", + "source-map": "^0.6.0" + } + }, + "@jest/test-result": { + "version": "27.5.1", + "requires": { + "@jest/console": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + } + }, + "@jest/test-sequencer": { + "version": "27.5.1", + "requires": { + "@jest/test-result": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-runtime": "^27.5.1" + } + }, + "@jest/transform": { + "version": "27.5.1", + "requires": { + "@babel/core": "^7.1.0", + "@jest/types": "^27.5.1", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^1.4.0", + "fast-json-stable-stringify": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-util": "^27.5.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "source-map": "^0.6.1", + "write-file-atomic": "^3.0.0" + } + }, + "@jest/types": { + "version": "27.5.1", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" + } + }, + "@sinclair/typebox": { + "version": "0.24.51" + }, + "@sinonjs/commons": { + "version": "1.8.6", + "requires": { + "type-detect": "4.0.8" + } + }, + "@sinonjs/fake-timers": { + "version": "8.1.0", + "requires": { + "@sinonjs/commons": "^1.7.0" + } + }, + "@types/yargs": { + "version": "16.0.5", + "requires": { + "@types/yargs-parser": "*" + } + }, + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "babel-jest": { + "version": "27.5.1", + "requires": { + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + } + }, + "babel-plugin-jest-hoist": { + "version": "27.5.1", + "requires": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.0.0", + "@types/babel__traverse": "^7.0.6" + } + }, + "babel-preset-jest": { + "version": "27.5.1", + "requires": { + "babel-plugin-jest-hoist": "^27.5.1", + "babel-preset-current-node-syntax": "^1.0.0" + } + }, + "camelcase": { + "version": "6.3.0" + }, + "chalk": { + "version": "4.1.2", + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + }, + "emittery": { + "version": "0.8.1" + }, + "expect": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1" + } + }, + "has-flag": { + "version": "4.0.0" + }, + "jest": { + "version": "27.5.1", + "requires": { + "@jest/core": "^27.5.1", + "import-local": "^3.0.2", + "jest-cli": "^27.5.1" + } + }, + "jest-changed-files": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "execa": "^5.0.0", + "throat": "^6.0.1" + } + }, + "jest-circus": { + "version": "27.5.1", + "requires": { + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "expect": "^27.5.1", + "is-generator-fn": "^2.0.0", + "jest-each": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3", + "throat": "^6.0.1" + } + }, + "jest-cli": { + "version": "27.5.1", + "requires": { + "@jest/core": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "prompts": "^2.0.1", + "yargs": "^16.2.0" + } + }, + "jest-config": { + "version": "27.5.1", + "requires": { + "@babel/core": "^7.8.0", + "@jest/test-sequencer": "^27.5.1", + "@jest/types": "^27.5.1", + "babel-jest": "^27.5.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.1", + "graceful-fs": "^4.2.9", + "jest-circus": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-jasmine2": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runner": "^27.5.1", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + } + }, + "jest-docblock": { + "version": "27.5.1", + "requires": { + "detect-newline": "^3.0.0" + } + }, + "jest-each": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "jest-util": "^27.5.1", + "pretty-format": "^27.5.1" + } + }, + "jest-environment-node": { + "version": "27.5.1", + "requires": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" + } + }, + "jest-get-type": { + "version": "27.5.1" + }, + "jest-haste-map": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "@types/graceful-fs": "^4.1.2", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^27.5.1", + "jest-serializer": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "micromatch": "^4.0.4", + "walker": "^1.0.7" + } + }, + "jest-leak-detector": { + "version": "27.5.1", + "requires": { + "jest-get-type": "^27.5.1", + "pretty-format": "^27.5.1" + } + }, + "jest-message-util": { + "version": "27.5.1", + "requires": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + } + }, + "jest-mock": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "@types/node": "*" + } + }, + "jest-regex-util": { + "version": "27.5.1" + }, + "jest-resolve": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^27.5.1", + "jest-validate": "^27.5.1", + "resolve": "^1.20.0", + "resolve.exports": "^1.1.0", + "slash": "^3.0.0" + } + }, + "jest-resolve-dependencies": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-snapshot": "^27.5.1" + } + }, + "jest-runner": { + "version": "27.5.1", + "requires": { + "@jest/console": "^27.5.1", + "@jest/environment": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.8.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^27.5.1", + "jest-environment-jsdom": "^27.5.1", + "jest-environment-node": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-leak-detector": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-runtime": "^27.5.1", + "jest-util": "^27.5.1", + "jest-worker": "^27.5.1", + "source-map-support": "^0.5.6", + "throat": "^6.0.1" + } + }, + "jest-runtime": { + "version": "27.5.1", + "requires": { + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/globals": "^27.5.1", + "@jest/source-map": "^27.5.1", + "@jest/test-result": "^27.5.1", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "execa": "^5.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-regex-util": "^27.5.1", + "jest-resolve": "^27.5.1", + "jest-snapshot": "^27.5.1", + "jest-util": "^27.5.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + } + }, + "jest-snapshot": { + "version": "27.5.1", + "requires": { + "@babel/core": "^7.7.2", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/traverse": "^7.7.2", + "@babel/types": "^7.0.0", + "@jest/transform": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/babel__traverse": "^7.0.4", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^27.5.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^27.5.1", + "jest-get-type": "^27.5.1", + "jest-haste-map": "^27.5.1", + "jest-matcher-utils": "^27.5.1", + "jest-message-util": "^27.5.1", + "jest-util": "^27.5.1", + "natural-compare": "^1.4.0", + "pretty-format": "^27.5.1", + "semver": "^7.3.2" + } + }, + "jest-util": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "jest-validate": { + "version": "27.5.1", + "requires": { + "@jest/types": "^27.5.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^27.5.1", + "leven": "^3.1.0", + "pretty-format": "^27.5.1" + } + }, + "jest-watch-typeahead": { + "version": "1.1.0", + "requires": { + "ansi-escapes": "^4.3.1", + "chalk": "^4.0.0", + "jest-regex-util": "^28.0.0", + "jest-watcher": "^28.0.0", + "slash": "^4.0.0", + "string-length": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "dependencies": { + "@jest/console": { + "version": "28.1.3", + "requires": { + "@jest/types": "^28.1.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^28.1.3", + "jest-util": "^28.1.3", + "slash": "^3.0.0" + }, + "dependencies": { + "slash": { + "version": "3.0.0" + } + } + }, + "@jest/test-result": { + "version": "28.1.3", + "requires": { + "@jest/console": "^28.1.3", + "@jest/types": "^28.1.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + } + }, + "@jest/types": { + "version": "28.1.3", + "requires": { + "@jest/schemas": "^28.1.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + } + }, + "@types/yargs": { + "version": "17.0.24", + "requires": { + "@types/yargs-parser": "*" + } + }, + "ansi-styles": { + "version": "5.2.0" + }, + "emittery": { + "version": "0.10.2" + }, + "jest-message-util": { + "version": "28.1.3", + "requires": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^28.1.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^28.1.3", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "dependencies": { + "slash": { + "version": "3.0.0" + } + } + }, + "jest-regex-util": { + "version": "28.0.2" + }, + "jest-util": { + "version": "28.1.3", + "requires": { + "@jest/types": "^28.1.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "jest-watcher": { + "version": "28.1.3", + "requires": { + "@jest/test-result": "^28.1.3", + "@jest/types": "^28.1.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.10.2", + "jest-util": "^28.1.3", + "string-length": "^4.0.1" + }, + "dependencies": { + "string-length": { + "version": "4.0.2", + "requires": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + } + }, + "strip-ansi": { + "version": "6.0.1", + "requires": { + "ansi-regex": "^5.0.1" + } + } + } + }, + "pretty-format": { + "version": "28.1.3", + "requires": { + "@jest/schemas": "^28.1.3", + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + } + }, + "slash": { + "version": "4.0.0" + }, + "string-length": { + "version": "5.0.1", + "requires": { + "char-regex": "^2.0.0", + "strip-ansi": "^7.0.1" + }, + "dependencies": { + "char-regex": { + "version": "2.0.1" + } + } + }, + "strip-ansi": { + "version": "7.0.1", + "requires": { + "ansi-regex": "^6.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "6.0.1" + } + } + } + } + }, + "jest-watcher": { + "version": "27.5.1", + "requires": { + "@jest/test-result": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "jest-util": "^27.5.1", + "string-length": "^4.0.1" + } + }, + "jest-worker": { + "version": "27.5.1", + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "supports-color": { + "version": "8.1.1", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "lru-cache": { + "version": "6.0.0", + "requires": { + "yallist": "^4.0.0" + } + }, + "resolve.exports": { + "version": "1.1.1" + }, + "semver": { + "version": "7.5.0", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "source-map": { + "version": "0.6.1" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + }, + "v8-to-istanbul": { + "version": "8.1.1", + "requires": { + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0", + "source-map": "^0.7.3" + }, + "dependencies": { + "source-map": { + "version": "0.7.4" + } + } + }, + "write-file-atomic": { + "version": "3.0.3", + "requires": { + "imurmurhash": "^0.1.4", + "is-typedarray": "^1.0.0", + "signal-exit": "^3.0.2", + "typedarray-to-buffer": "^3.1.5" + } + }, + "yallist": { + "version": "4.0.0" + } + } + }, + "react-transition-group": { + "version": "4.4.5", + "requires": { + "@babel/runtime": "^7.5.5", + "dom-helpers": "^5.0.1", + "loose-envify": "^1.4.0", + "prop-types": "^15.6.2" + } + }, + "read-cache": { + "version": "1.0.0", + "requires": { + "pify": "^2.3.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0" + } + } + }, + "readable-stream": { + "version": "3.6.2", + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "readdirp": { + "version": "3.6.0", + "requires": { + "picomatch": "^2.2.1" + } + }, + "readonly-date": { + "version": "1.0.0" + }, + "real-require": { + "version": "0.1.0" + }, + "rechoir": { + "version": "0.6.2", + "requires": { + "resolve": "^1.1.6" + } + }, + "recursive-readdir": { + "version": "2.2.3", + "requires": { + "minimatch": "^3.0.5" + } + }, + "redent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz", + "integrity": "sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg==", + "requires": { + "indent-string": "^4.0.0", + "strip-indent": "^3.0.0" + } + }, + "redux": { + "version": "4.2.1", + "requires": { + "@babel/runtime": "^7.9.2" + } + }, + "redux-thunk": { + "version": "2.4.2", + "requires": {} + }, + "regenerate": { + "version": "1.4.2" + }, + "regenerate-unicode-properties": { + "version": "10.1.0", + "requires": { + "regenerate": "^1.4.2" + } + }, + "regenerator-runtime": { + "version": "0.13.11" + }, + "regenerator-transform": { + "version": "0.15.1", + "requires": { + "@babel/runtime": "^7.8.4" + } + }, + "regex-parser": { + "version": "2.2.11" + }, + "regexp.prototype.flags": { + "version": "1.5.0", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.2.0", + "functions-have-names": "^1.2.3" + } + }, + "regexpu-core": { + "version": "5.3.2", + "requires": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + } + }, + "regjsparser": { + "version": "0.9.1", + "requires": { + "jsesc": "~0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0" + } + } + }, + "relateurl": { + "version": "0.2.7" + }, + "renderkid": { + "version": "3.0.0", + "requires": { + "css-select": "^4.1.3", + "dom-converter": "^0.2.0", + "htmlparser2": "^6.1.0", + "lodash": "^4.17.21", + "strip-ansi": "^6.0.1" + } + }, + "request": { + "version": "2.88.2", + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "dependencies": { + "form-data": { + "version": "2.3.3", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "qs": { + "version": "6.5.3" + }, + "uuid": { + "version": "3.4.0" + } + } + }, + "require-directory": { + "version": "2.1.1" + }, + "require-from-string": { + "version": "2.0.2" + }, + "require-main-filename": { + "version": "2.0.0" + }, + "requires-port": { + "version": "1.0.0" + }, + "reselect": { + "version": "4.1.8" + }, + "resolve": { + "version": "1.22.2", + "requires": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "resolve-alpn": { + "version": "1.2.1" + }, + "resolve-cwd": { + "version": "3.0.0", + "requires": { + "resolve-from": "^5.0.0" + } + }, + "resolve-from": { + "version": "5.0.0" + }, + "resolve-url-loader": { + "version": "4.0.0", + "requires": { + "adjust-sourcemap-loader": "^4.0.0", + "convert-source-map": "^1.7.0", + "loader-utils": "^2.0.0", + "postcss": "^7.0.35", + "source-map": "0.6.1" + }, + "dependencies": { + "picocolors": { + "version": "0.2.1" + }, + "postcss": { + "version": "7.0.39", + "requires": { + "picocolors": "^0.2.1", + "source-map": "^0.6.1" + } + }, + "source-map": { + "version": "0.6.1" + } + } + }, + "resolve.exports": { + "version": "2.0.2" + }, + "response-iterator": { + "version": "0.2.6" + }, + "responselike": { + "version": "2.0.1", + "requires": { + "lowercase-keys": "^2.0.0" + }, + "dependencies": { + "lowercase-keys": { + "version": "2.0.0" + } + } + }, + "retry": { + "version": "0.13.1" + }, + "reusify": { + "version": "1.0.4" + }, + "rimraf": { + "version": "3.0.2", + "requires": { + "glob": "^7.1.3" + } + }, + "ripemd160": { + "version": "2.0.2", + "requires": { + "hash-base": "^3.0.0", + "inherits": "^2.0.1" + } + }, + "ripemd160-min": { + "version": "0.0.6" + }, + "rlp": { + "version": "2.2.7", + "requires": { + "bn.js": "^5.2.0" + } + }, + "rollup": { + "version": "2.79.1", + "requires": { + "fsevents": "~2.3.2" + } + }, + "rollup-plugin-terser": { + "version": "7.0.2", + "requires": { + "@babel/code-frame": "^7.10.4", + "jest-worker": "^26.2.1", + "serialize-javascript": "^4.0.0", + "terser": "^5.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0" + }, + "jest-worker": { + "version": "26.6.2", + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^7.0.0" + } + }, + "serialize-javascript": { + "version": "4.0.0", + "requires": { + "randombytes": "^2.1.0" + } + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "rpc-websockets": { + "version": "7.5.1", + "requires": { + "@babel/runtime": "^7.17.2", + "bufferutil": "^4.0.1", + "eventemitter3": "^4.0.7", + "utf-8-validate": "^5.0.2", + "uuid": "^8.3.2", + "ws": "^8.5.0" + }, + "dependencies": { + "ws": { + "version": "8.13.0", + "requires": {} + } + } + }, + "rtcpeerconnection-shim": { + "version": "1.2.15", + "requires": { + "sdp": "^2.6.0" + } + }, + "run-parallel": { + "version": "1.2.0", + "requires": { + "queue-microtask": "^1.2.2" + } + }, + "rustbn.js": { + "version": "0.2.0" + }, + "rxjs": { + "version": "7.8.1", + "requires": { + "tslib": "^2.1.0" + } + }, + "safe-array-concat": { + "version": "1.0.0", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.2.0", + "has-symbols": "^1.0.3", + "isarray": "^2.0.5" + } + }, + "safe-buffer": { + "version": "5.2.1" + }, + "safe-event-emitter": { + "version": "1.0.1", + "requires": { + "events": "^3.0.0" + } + }, + "safe-json-utils": { + "version": "1.1.1" + }, + "safe-regex-test": { + "version": "1.0.0", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-regex": "^1.1.4" + } + }, + "safe-stable-stringify": { + "version": "2.4.3" + }, + "safer-buffer": { + "version": "2.1.2" + }, + "salmon-adapter-sdk": { + "version": "1.1.1", + "requires": { + "@project-serum/sol-wallet-adapter": "^0.2.6", + "eventemitter3": "^4.0.7" + } + }, + "sanitize.css": { + "version": "13.0.0" + }, + "sass-loader": { + "version": "12.6.0", + "requires": { + "klona": "^2.0.4", + "neo-async": "^2.6.2" + } + }, + "sax": { + "version": "1.2.4" + }, + "saxes": { + "version": "5.0.1", + "requires": { + "xmlchars": "^2.2.0" + } + }, + "scheduler": { + "version": "0.23.0", + "requires": { + "loose-envify": "^1.1.0" + } + }, + "schema-utils": { + "version": "3.1.2", + "requires": { + "@types/json-schema": "^7.0.8", + "ajv": "^6.12.5", + "ajv-keywords": "^3.5.2" + } + }, + "scrypt-js": { + "version": "3.0.1" + }, + "sdp": { + "version": "2.12.0" + }, + "secp256k1": { + "version": "4.0.3", + "requires": { + "elliptic": "^6.5.4", + "node-addon-api": "^2.0.0", + "node-gyp-build": "^4.2.0" + } + }, + "select-hose": { + "version": "2.0.0" + }, + "selfsigned": { + "version": "2.1.1", + "requires": { + "node-forge": "^1" + } + }, + "semaphore": { + "version": "1.1.0" + }, + "semver": { + "version": "6.3.0" + }, + "send": { + "version": "0.18.0", + "requires": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "requires": { + "ms": "2.0.0" + }, + "dependencies": { + "ms": { + "version": "2.0.0" + } + } + }, + "http-errors": { + "version": "2.0.0", + "requires": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + } + }, + "ms": { + "version": "2.1.3" + }, + "statuses": { + "version": "2.0.1" + } + } + }, + "serialize-javascript": { + "version": "6.0.1", + "requires": { + "randombytes": "^2.1.0" + } + }, + "serve-index": { + "version": "1.9.1", + "requires": { + "accepts": "~1.3.4", + "batch": "0.6.1", + "debug": "2.6.9", + "escape-html": "~1.0.3", + "http-errors": "~1.6.2", + "mime-types": "~2.1.17", + "parseurl": "~1.3.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "requires": { + "ms": "2.0.0" + } + }, + "depd": { + "version": "1.1.2" + }, + "http-errors": { + "version": "1.6.3", + "requires": { + "depd": "~1.1.2", + "inherits": "2.0.3", + "setprototypeof": "1.1.0", + "statuses": ">= 1.4.0 < 2" + } + }, + "inherits": { + "version": "2.0.3" + }, + "ms": { + "version": "2.0.0" + }, + "setprototypeof": { + "version": "1.1.0" + } + } + }, + "serve-static": { + "version": "1.15.0", + "requires": { + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.18.0" + } + }, + "servify": { + "version": "0.1.12", + "requires": { + "body-parser": "^1.16.0", + "cors": "^2.8.1", + "express": "^4.14.0", + "request": "^2.79.0", + "xhr": "^2.3.3" + } + }, + "set-blocking": { + "version": "2.0.0" + }, + "set-immediate-shim": { + "version": "1.0.1" + }, + "setimmediate": { + "version": "1.0.5" + }, + "setprototypeof": { + "version": "1.2.0" + }, + "sha.js": { + "version": "2.4.11", + "requires": { + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" + } + }, + "sha3": { + "version": "2.1.4", + "requires": { + "buffer": "6.0.3" + } + }, + "shebang-command": { + "version": "2.0.0", + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0" + }, + "shell-quote": { + "version": "1.8.1" + }, + "shelljs": { + "version": "0.8.5", + "requires": { + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" + } + }, + "shx": { + "version": "0.3.4", + "requires": { + "minimist": "^1.2.3", + "shelljs": "^0.8.5" + } + }, + "side-channel": { + "version": "1.0.4", + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, + "signal-exit": { + "version": "3.0.7" + }, + "simple-concat": { + "version": "1.0.1" + }, + "simple-get": { + "version": "2.8.2", + "requires": { + "decompress-response": "^3.3.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + }, + "dependencies": { + "decompress-response": { + "version": "3.3.0", + "requires": { + "mimic-response": "^1.0.0" + } + } + } + }, + "sisteransi": { + "version": "1.0.5" + }, + "slash": { + "version": "3.0.0" + }, + "snake-case": { + "version": "3.0.4", + "requires": { + "dot-case": "^3.0.4", + "tslib": "^2.0.3" + } + }, + "snakecase-keys": { + "version": "5.4.5", + "requires": { + "map-obj": "^4.1.0", + "snake-case": "^3.0.4", + "type-fest": "^2.5.2" + }, + "dependencies": { + "type-fest": { + "version": "2.19.0" + } + } + }, + "socket.io-client": { + "version": "4.6.1", + "requires": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.2", + "engine.io-client": "~6.4.0", + "socket.io-parser": "~4.2.1" + } + }, + "socket.io-parser": { + "version": "4.2.2", + "requires": { + "@socket.io/component-emitter": "~3.1.0", + "debug": "~4.3.1" + } + }, + "sockjs": { + "version": "0.3.24", + "requires": { + "faye-websocket": "^0.11.3", + "uuid": "^8.3.2", + "websocket-driver": "^0.7.4" + } + }, + "sonic-boom": { + "version": "2.8.0", + "requires": { + "atomic-sleep": "^1.0.0" + } + }, + "source-list-map": { + "version": "2.0.1" + }, + "source-map": { + "version": "0.5.7" + }, + "source-map-js": { + "version": "1.0.2" + }, + "source-map-loader": { + "version": "3.0.2", + "requires": { + "abab": "^2.0.5", + "iconv-lite": "^0.6.3", + "source-map-js": "^1.0.1" + } + }, + "source-map-support": { + "version": "0.5.13", + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1" + } + } + }, + "sourcemap-codec": { + "version": "1.4.8" + }, + "spdy": { + "version": "4.0.2", + "requires": { + "debug": "^4.1.0", + "handle-thing": "^2.0.0", + "http-deceiver": "^1.2.7", + "select-hose": "^2.0.0", + "spdy-transport": "^3.0.0" + } + }, + "spdy-transport": { + "version": "3.0.0", + "requires": { + "debug": "^4.1.0", + "detect-node": "^2.0.4", + "hpack.js": "^2.1.6", + "obuf": "^1.1.2", + "readable-stream": "^3.0.6", + "wbuf": "^1.7.3" + } + }, + "split-on-first": { + "version": "1.1.0" + }, + "split2": { + "version": "4.2.0" + }, + "sprintf-js": { + "version": "1.0.3" + }, + "sshpk": { + "version": "1.17.0", + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + }, + "dependencies": { + "tweetnacl": { + "version": "0.14.5" + } + } + }, + "stable": { + "version": "0.1.8" + }, + "stack-utils": { + "version": "2.0.6", + "requires": { + "escape-string-regexp": "^2.0.0" + }, + "dependencies": { + "escape-string-regexp": { + "version": "2.0.0" + } + } + }, + "stackframe": { + "version": "1.3.4" + }, + "statuses": { + "version": "1.5.0" + }, + "stop-iteration-iterator": { + "version": "1.0.0", + "requires": { + "internal-slot": "^1.0.4" + } + }, + "store2": { + "version": "2.14.2" + }, + "stream-browserify": { + "version": "3.0.0", + "requires": { + "inherits": "~2.0.4", + "readable-stream": "^3.5.0" + } + }, + "stream-http": { + "version": "3.2.0", + "requires": { + "builtin-status-codes": "^3.0.0", + "inherits": "^2.0.4", + "readable-stream": "^3.6.0", + "xtend": "^4.0.2" + } + }, + "stream-shift": { + "version": "1.0.1" + }, + "strict-uri-encode": { + "version": "2.0.0" + }, + "string_decoder": { + "version": "1.3.0", + "requires": { + "safe-buffer": "~5.2.0" + } + }, + "string-length": { + "version": "4.0.2", + "requires": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + } + }, + "string-natural-compare": { + "version": "3.0.1" + }, + "string-width": { + "version": "4.2.3", + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "dependencies": { + "emoji-regex": { + "version": "8.0.0" + } + } + }, + "string.prototype.matchall": { + "version": "4.0.8", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4", + "get-intrinsic": "^1.1.3", + "has-symbols": "^1.0.3", + "internal-slot": "^1.0.3", + "regexp.prototype.flags": "^1.4.3", + "side-channel": "^1.0.4" + } + }, + "string.prototype.trim": { + "version": "1.2.7", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "string.prototype.trimend": { + "version": "1.0.6", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "string.prototype.trimstart": { + "version": "1.0.6", + "requires": { + "call-bind": "^1.0.2", + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" + } + }, + "stringify-object": { + "version": "3.3.0", + "requires": { + "get-own-enumerable-property-symbols": "^3.0.0", + "is-obj": "^1.0.1", + "is-regexp": "^1.0.0" + } + }, + "strip-ansi": { + "version": "6.0.1", + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "strip-bom": { + "version": "4.0.0" + }, + "strip-comments": { + "version": "2.0.1" + }, + "strip-final-newline": { + "version": "2.0.0" + }, + "strip-hex-prefix": { + "version": "1.0.0", + "requires": { + "is-hex-prefixed": "1.0.0" + } + }, + "strip-indent": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-3.0.0.tgz", + "integrity": "sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==", + "requires": { + "min-indent": "^1.0.0" + } + }, + "strip-json-comments": { + "version": "3.1.1" + }, + "style-loader": { + "version": "3.3.2", + "requires": {} + }, + "stylehacks": { + "version": "5.1.1", + "requires": { + "browserslist": "^4.21.4", + "postcss-selector-parser": "^6.0.4" + } + }, + "stylis": { + "version": "4.1.3" + }, + "sucrase": { + "version": "3.32.0", + "requires": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "glob": "7.1.6", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "ts-interface-checker": "^0.1.9" + }, + "dependencies": { + "glob": { + "version": "7.1.6", + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + } + } + }, + "superstruct": { + "version": "0.15.5" + }, + "supports-color": { + "version": "5.5.0", + "requires": { + "has-flag": "^3.0.0" + } + }, + "supports-hyperlinks": { + "version": "2.3.0", + "requires": { + "has-flag": "^4.0.0", + "supports-color": "^7.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0" + }, + "supports-color": { + "version": "7.2.0", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "supports-preserve-symlinks-flag": { + "version": "1.0.0" + }, + "svg-parser": { + "version": "2.0.4" + }, + "svgo": { + "version": "1.3.2", + "requires": { + "chalk": "^2.4.1", + "coa": "^2.0.2", + "css-select": "^2.0.0", + "css-select-base-adapter": "^0.1.1", + "css-tree": "1.0.0-alpha.37", + "csso": "^4.0.2", + "js-yaml": "^3.13.1", + "mkdirp": "~0.5.1", + "object.values": "^1.1.0", + "sax": "~1.2.4", + "stable": "^0.1.8", + "unquote": "~1.1.1", + "util.promisify": "~1.0.0" + }, + "dependencies": { + "css-select": { + "version": "2.1.0", + "requires": { + "boolbase": "^1.0.0", + "css-what": "^3.2.1", + "domutils": "^1.7.0", + "nth-check": "^1.0.2" + } + }, + "css-what": { + "version": "3.4.2" + }, + "dom-serializer": { + "version": "0.2.2", + "requires": { + "domelementtype": "^2.0.1", + "entities": "^2.0.0" + } + }, + "domutils": { + "version": "1.7.0", + "requires": { + "dom-serializer": "0", + "domelementtype": "1" + }, + "dependencies": { + "domelementtype": { + "version": "1.3.1" + } + } + }, + "mkdirp": { + "version": "0.5.6", + "requires": { + "minimist": "^1.2.6" + } + }, + "nth-check": { + "version": "1.0.2", + "requires": { + "boolbase": "~1.0.0" + } + } + } + }, + "swarm-js": { + "version": "0.1.42", + "requires": { + "bluebird": "^3.5.0", + "buffer": "^5.0.5", + "eth-lib": "^0.1.26", + "fs-extra": "^4.0.2", + "got": "^11.8.5", + "mime-types": "^2.1.16", + "mkdirp-promise": "^5.0.1", + "mock-fs": "^4.1.0", + "setimmediate": "^1.0.5", + "tar": "^4.0.2", + "xhr-request": "^1.0.1" + }, + "dependencies": { + "@szmarczak/http-timer": { + "version": "4.0.6", + "requires": { + "defer-to-connect": "^2.0.0" + } + }, + "buffer": { + "version": "5.7.1", + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "cacheable-lookup": { + "version": "5.0.4" + }, + "fs-extra": { + "version": "4.0.3", + "requires": { + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + } + }, + "got": { + "version": "11.8.6", + "requires": { + "@sindresorhus/is": "^4.0.0", + "@szmarczak/http-timer": "^4.0.5", + "@types/cacheable-request": "^6.0.1", + "@types/responselike": "^1.0.0", + "cacheable-lookup": "^5.0.3", + "cacheable-request": "^7.0.2", + "decompress-response": "^6.0.0", + "http2-wrapper": "^1.0.0-beta.5.2", + "lowercase-keys": "^2.0.0", + "p-cancelable": "^2.0.0", + "responselike": "^2.0.0" + } + }, + "http2-wrapper": { + "version": "1.0.3", + "requires": { + "quick-lru": "^5.1.1", + "resolve-alpn": "^1.0.0" + } + }, + "jsonfile": { + "version": "4.0.0", + "requires": { + "graceful-fs": "^4.1.6" + } + }, + "lowercase-keys": { + "version": "2.0.0" + }, + "p-cancelable": { + "version": "2.1.1" + }, + "universalify": { + "version": "0.1.2" + } + } + }, + "symbol-observable": { + "version": "4.0.0" + }, + "symbol-tree": { + "version": "3.2.4" + }, + "tailwindcss": { + "version": "3.3.2", + "requires": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.5.3", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.2.12", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.18.2", + "lilconfig": "^2.1.0", + "micromatch": "^4.0.5", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.0.0", + "postcss": "^8.4.23", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.1", + "postcss-nested": "^6.0.1", + "postcss-selector-parser": "^6.0.11", + "postcss-value-parser": "^4.2.0", + "resolve": "^1.22.2", + "sucrase": "^3.32.0" + } + }, + "tapable": { + "version": "2.2.1" + }, + "tar": { + "version": "4.4.19", + "requires": { + "chownr": "^1.1.4", + "fs-minipass": "^1.2.7", + "minipass": "^2.9.0", + "minizlib": "^1.3.3", + "mkdirp": "^0.5.5", + "safe-buffer": "^5.2.1", + "yallist": "^3.1.1" + }, + "dependencies": { + "mkdirp": { + "version": "0.5.6", + "requires": { + "minimist": "^1.2.6" + } + } + } + }, + "temp-dir": { + "version": "2.0.0" + }, + "tempy": { + "version": "0.6.0", + "requires": { + "is-stream": "^2.0.0", + "temp-dir": "^2.0.0", + "type-fest": "^0.16.0", + "unique-string": "^2.0.0" + }, + "dependencies": { + "type-fest": { + "version": "0.16.0" + } + } + }, + "terminal-link": { + "version": "2.1.1", + "requires": { + "ansi-escapes": "^4.2.1", + "supports-hyperlinks": "^2.0.0" + } + }, + "terser": { + "version": "5.17.1", + "requires": { + "@jridgewell/source-map": "^0.3.2", + "acorn": "^8.5.0", + "commander": "^2.20.0", + "source-map-support": "~0.5.20" + }, + "dependencies": { + "commander": { + "version": "2.20.3" + }, + "source-map": { + "version": "0.6.1" + }, + "source-map-support": { + "version": "0.5.21", + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + } + } + }, + "terser-webpack-plugin": { + "version": "5.3.7", + "requires": { + "@jridgewell/trace-mapping": "^0.3.17", + "jest-worker": "^27.4.5", + "schema-utils": "^3.1.1", + "serialize-javascript": "^6.0.1", + "terser": "^5.16.5" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0" + }, + "jest-worker": { + "version": "27.5.1", + "requires": { + "@types/node": "*", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + } + }, + "supports-color": { + "version": "8.1.1", + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "test-exclude": { + "version": "6.0.0", + "requires": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + } + }, + "text-encoding-utf-8": { + "version": "1.0.2" + }, + "text-table": { + "version": "0.2.0" + }, + "thenify": { + "version": "3.3.1", + "requires": { + "any-promise": "^1.0.0" + } + }, + "thenify-all": { + "version": "1.6.0", + "requires": { + "thenify": ">= 3.1.0 < 4" + } + }, + "thread-stream": { + "version": "0.15.2", + "requires": { + "real-require": "^0.1.0" + } + }, + "throat": { + "version": "6.0.2" + }, + "through": { + "version": "2.3.8" + }, + "through2": { + "version": "2.0.5", + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + }, + "dependencies": { + "isarray": { + "version": "1.0.0" + }, + "readable-stream": { + "version": "2.3.8", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2" + }, + "string_decoder": { + "version": "1.1.1", + "requires": { + "safe-buffer": "~5.1.0" + } + } + } + }, + "thunky": { + "version": "1.1.0" + }, + "timed-out": { + "version": "4.0.1" + }, + "tiny-secp256k1": { + "version": "1.1.6", + "requires": { + "bindings": "^1.3.0", + "bn.js": "^4.11.8", + "create-hmac": "^1.1.7", + "elliptic": "^6.4.0", + "nan": "^2.13.2" + }, + "dependencies": { + "bn.js": { + "version": "4.12.0" + } + } + }, + "tmp": { + "version": "0.2.1", + "requires": { + "rimraf": "^3.0.0" + } + }, + "tmpl": { + "version": "1.0.5" + }, + "to-fast-properties": { + "version": "2.0.0" + }, + "to-regex-range": { + "version": "5.0.1", + "requires": { + "is-number": "^7.0.0" + } + }, + "toggle-selection": { + "version": "1.0.6" + }, + "toidentifier": { + "version": "1.0.1" + }, + "toml": { + "version": "3.0.0" + }, + "tough-cookie": { + "version": "2.5.0", + "requires": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + }, + "tr46": { + "version": "0.0.3" + }, + "tryer": { + "version": "1.0.1" + }, + "ts-interface-checker": { + "version": "0.1.13" + }, + "ts-invariant": { + "version": "0.10.3", + "requires": { + "tslib": "^2.1.0" + } + }, + "ts-jest": { + "version": "29.1.0", + "requires": { + "bs-logger": "0.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^29.0.0", + "json5": "^2.2.3", + "lodash.memoize": "4.x", + "make-error": "1.x", + "semver": "7.x", + "yargs-parser": "^21.0.1" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.5.0", + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0" + } + } + }, + "tsconfig-paths": { + "version": "3.14.2", + "requires": { + "@types/json5": "^0.0.29", + "json5": "^1.0.2", + "minimist": "^1.2.6", + "strip-bom": "^3.0.0" + }, + "dependencies": { + "json5": { + "version": "1.0.2", + "requires": { + "minimist": "^1.2.0" + } + }, + "strip-bom": { + "version": "3.0.0" + } + } + }, + "tslib": { + "version": "2.5.0" + }, + "tss-react": { + "version": "4.8.3", + "requires": { + "@emotion/cache": "*", + "@emotion/serialize": "*", + "@emotion/utils": "*" + } + }, + "tsutils": { + "version": "3.21.0", + "requires": { + "tslib": "^1.8.1" + }, + "dependencies": { + "tslib": { + "version": "1.14.1" + } + } + }, + "tunnel-agent": { + "version": "0.6.0", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "1.0.3" + }, + "tweetnacl-util": { + "version": "0.15.1" + }, + "type": { + "version": "1.2.0" + }, + "type-check": { + "version": "0.4.0", + "requires": { + "prelude-ls": "^1.2.1" + } + }, + "type-detect": { + "version": "4.0.8" + }, + "type-fest": { + "version": "0.21.3" + }, + "type-is": { + "version": "1.6.18", + "requires": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + } + }, + "typed-array-length": { + "version": "1.0.4", + "requires": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + } + }, + "typedarray-to-buffer": { + "version": "3.1.5", + "requires": { + "is-typedarray": "^1.0.0" + } + }, + "typeforce": { + "version": "1.18.0" + }, + "typescript": { + "version": "4.9.5" + }, + "u3": { + "version": "0.1.1" + }, + "uint8arrays": { + "version": "3.1.1", + "requires": { + "multiformats": "^9.4.2" + } + }, + "ultron": { + "version": "1.1.1" + }, + "unbox-primitive": { + "version": "1.0.2", + "requires": { + "call-bind": "^1.0.2", + "has-bigints": "^1.0.2", + "has-symbols": "^1.0.3", + "which-boxed-primitive": "^1.0.2" + } + }, + "unicode-canonical-property-names-ecmascript": { + "version": "2.0.0" + }, + "unicode-match-property-ecmascript": { + "version": "2.0.0", + "requires": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + } + }, + "unicode-match-property-value-ecmascript": { + "version": "2.1.0" + }, + "unicode-property-aliases-ecmascript": { + "version": "2.1.0" + }, + "unique-string": { + "version": "2.0.0", + "requires": { + "crypto-random-string": "^2.0.0" + } + }, + "universalify": { + "version": "2.0.0" + }, + "unload": { + "version": "2.4.1" + }, + "unpipe": { + "version": "1.0.0" + }, + "unquote": { + "version": "1.1.1" + }, + "untildify": { + "version": "4.0.0" + }, + "upath": { + "version": "1.2.0" + }, + "update-browserslist-db": { + "version": "1.0.11", + "requires": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + } + }, + "uri-js": { + "version": "4.4.1", + "requires": { + "punycode": "^2.1.0" + } + }, + "url": { + "version": "0.11.0", + "requires": { + "punycode": "1.3.2", + "querystring": "0.2.0" + }, + "dependencies": { + "punycode": { + "version": "1.3.2" + } + } + }, + "url-parse": { + "version": "1.5.10", + "requires": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "url-set-query": { + "version": "1.0.0" + }, + "use-sync-external-store": { + "version": "1.2.0", + "requires": {} + }, + "utf-8-validate": { + "version": "5.0.10", + "requires": { + "node-gyp-build": "^4.3.0" + } + }, + "utf8": { + "version": "3.0.0" + }, + "util": { + "version": "0.12.5", + "requires": { + "inherits": "^2.0.3", + "is-arguments": "^1.0.4", + "is-generator-function": "^1.0.7", + "is-typed-array": "^1.1.3", + "which-typed-array": "^1.1.2" + } + }, + "util-deprecate": { + "version": "1.0.2" + }, + "util.promisify": { + "version": "1.0.1", + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.2", + "has-symbols": "^1.0.1", + "object.getownpropertydescriptors": "^2.1.0" + } + }, + "utila": { + "version": "0.4.0" + }, + "utils-merge": { + "version": "1.0.1" + }, + "uuid": { + "version": "8.3.2" + }, + "v8-to-istanbul": { + "version": "9.1.0", + "requires": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0" + } + }, + "valtio": { + "version": "1.10.4", + "requires": { + "proxy-compare": "2.5.0", + "use-sync-external-store": "1.2.0" + } + }, + "varint": { + "version": "5.0.2" + }, + "vary": { + "version": "1.1.2" + }, + "verror": { + "version": "1.10.0", + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "versions": { + "version": "10.4.3" + }, + "vlq": { + "version": "2.0.4" + }, + "w3c-hr-time": { + "version": "1.0.2", + "requires": { + "browser-process-hrtime": "^1.0.0" + } + }, + "w3c-xmlserializer": { + "version": "2.0.0", + "requires": { + "xml-name-validator": "^3.0.0" + } + }, + "walker": { + "version": "1.0.8", + "requires": { + "makeerror": "1.0.12" + } + }, + "warning": { + "version": "4.0.3", + "requires": { + "loose-envify": "^1.0.0" + } + }, + "watchpack": { + "version": "2.4.0", + "requires": { + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.1.2" + } + }, + "wbuf": { + "version": "1.7.3", + "requires": { + "minimalistic-assert": "^1.0.0" + } + }, + "web-vitals": { + "version": "2.1.4" + }, + "web3": { + "version": "1.9.0", + "requires": { + "web3-bzz": "1.9.0", + "web3-core": "1.9.0", + "web3-eth": "1.9.0", + "web3-eth-personal": "1.9.0", + "web3-net": "1.9.0", + "web3-shh": "1.9.0", + "web3-utils": "1.9.0" + } + }, + "web3-bzz": { + "version": "1.9.0", + "requires": { + "@types/node": "^12.12.6", + "got": "12.1.0", + "swarm-js": "^0.1.40" + }, + "dependencies": { + "@types/node": { + "version": "12.20.55" + } + } + }, + "web3-core": { + "version": "1.9.0", + "requires": { + "@types/bn.js": "^5.1.1", + "@types/node": "^12.12.6", + "bignumber.js": "^9.0.0", + "web3-core-helpers": "1.9.0", + "web3-core-method": "1.9.0", + "web3-core-requestmanager": "1.9.0", + "web3-utils": "1.9.0" + }, + "dependencies": { + "@types/node": { + "version": "12.20.55" + } + } + }, + "web3-core-helpers": { + "version": "1.9.0", + "requires": { + "web3-eth-iban": "1.9.0", + "web3-utils": "1.9.0" + } + }, + "web3-core-method": { + "version": "1.9.0", + "requires": { + "@ethersproject/transactions": "^5.6.2", + "web3-core-helpers": "1.9.0", + "web3-core-promievent": "1.9.0", + "web3-core-subscriptions": "1.9.0", + "web3-utils": "1.9.0" + } + }, + "web3-core-promievent": { + "version": "1.9.0", + "requires": { + "eventemitter3": "4.0.4" + }, + "dependencies": { + "eventemitter3": { + "version": "4.0.4" + } + } + }, + "web3-core-requestmanager": { + "version": "1.9.0", + "requires": { + "util": "^0.12.5", + "web3-core-helpers": "1.9.0", + "web3-providers-http": "1.9.0", + "web3-providers-ipc": "1.9.0", + "web3-providers-ws": "1.9.0" + } + }, + "web3-core-subscriptions": { + "version": "1.9.0", + "requires": { + "eventemitter3": "4.0.4", + "web3-core-helpers": "1.9.0" + }, + "dependencies": { + "eventemitter3": { + "version": "4.0.4" + } + } + }, + "web3-eth": { + "version": "1.9.0", + "requires": { + "web3-core": "1.9.0", + "web3-core-helpers": "1.9.0", + "web3-core-method": "1.9.0", + "web3-core-subscriptions": "1.9.0", + "web3-eth-abi": "1.9.0", + "web3-eth-accounts": "1.9.0", + "web3-eth-contract": "1.9.0", + "web3-eth-ens": "1.9.0", + "web3-eth-iban": "1.9.0", + "web3-eth-personal": "1.9.0", + "web3-net": "1.9.0", + "web3-utils": "1.9.0" + } + }, + "web3-eth-abi": { + "version": "1.9.0", + "requires": { + "@ethersproject/abi": "^5.6.3", + "web3-utils": "1.9.0" + } + }, + "web3-eth-accounts": { + "version": "1.9.0", + "requires": { + "@ethereumjs/common": "2.5.0", + "@ethereumjs/tx": "3.3.2", + "eth-lib": "0.2.8", + "ethereumjs-util": "^7.1.5", + "scrypt-js": "^3.0.1", + "uuid": "^9.0.0", + "web3-core": "1.9.0", + "web3-core-helpers": "1.9.0", + "web3-core-method": "1.9.0", + "web3-utils": "1.9.0" + }, + "dependencies": { + "@ethereumjs/common": { + "version": "2.5.0", + "requires": { + "crc-32": "^1.2.0", + "ethereumjs-util": "^7.1.1" + } + }, + "@ethereumjs/tx": { + "version": "3.3.2", + "requires": { + "@ethereumjs/common": "^2.5.0", + "ethereumjs-util": "^7.1.2" + } + }, + "bn.js": { + "version": "4.12.0" + }, + "eth-lib": { + "version": "0.2.8", + "requires": { + "bn.js": "^4.11.6", + "elliptic": "^6.4.0", + "xhr-request-promise": "^0.1.2" + } + }, + "uuid": { + "version": "9.0.0" + } + } + }, + "web3-eth-contract": { + "version": "1.9.0", + "requires": { + "@types/bn.js": "^5.1.1", + "web3-core": "1.9.0", + "web3-core-helpers": "1.9.0", + "web3-core-method": "1.9.0", + "web3-core-promievent": "1.9.0", + "web3-core-subscriptions": "1.9.0", + "web3-eth-abi": "1.9.0", + "web3-utils": "1.9.0" + } + }, + "web3-eth-ens": { + "version": "1.9.0", + "requires": { + "content-hash": "^2.5.2", + "eth-ens-namehash": "2.0.8", + "web3-core": "1.9.0", + "web3-core-helpers": "1.9.0", + "web3-core-promievent": "1.9.0", + "web3-eth-abi": "1.9.0", + "web3-eth-contract": "1.9.0", + "web3-utils": "1.9.0" + } + }, + "web3-eth-iban": { + "version": "1.9.0", + "requires": { + "bn.js": "^5.2.1", + "web3-utils": "1.9.0" + } + }, + "web3-eth-personal": { + "version": "1.9.0", + "requires": { + "@types/node": "^12.12.6", + "web3-core": "1.9.0", + "web3-core-helpers": "1.9.0", + "web3-core-method": "1.9.0", + "web3-net": "1.9.0", + "web3-utils": "1.9.0" + }, + "dependencies": { + "@types/node": { + "version": "12.20.55" + } + } + }, + "web3-net": { + "version": "1.9.0", + "requires": { + "web3-core": "1.9.0", + "web3-core-method": "1.9.0", + "web3-utils": "1.9.0" + } + }, + "web3-provider-engine": { + "version": "16.0.5", + "requires": { + "@ethereumjs/tx": "^3.3.0", + "async": "^2.5.0", + "backoff": "^2.5.0", + "clone": "^2.0.0", + "eth-block-tracker": "^5.0.1", + "eth-json-rpc-filters": "^4.2.1", + "eth-json-rpc-infura": "^5.1.0", + "eth-json-rpc-middleware": "^6.0.0", + "eth-rpc-errors": "^3.0.0", + "eth-sig-util": "^1.4.2", + "ethereumjs-block": "^1.2.2", + "ethereumjs-util": "^5.1.5", + "ethereumjs-vm": "^2.3.4", + "json-stable-stringify": "^1.0.1", + "promise-to-callback": "^1.0.0", + "readable-stream": "^2.2.9", + "request": "^2.85.0", + "semaphore": "^1.0.3", + "ws": "^5.1.1", + "xhr": "^2.2.0", + "xtend": "^4.0.1" + }, + "dependencies": { + "async-mutex": { + "version": "0.2.6", + "requires": { + "tslib": "^2.0.0" + } + }, + "bn.js": { + "version": "4.12.0" + }, + "eth-block-tracker": { + "version": "5.0.1", + "requires": { + "@metamask/safe-event-emitter": "^2.0.0", + "json-rpc-random-id": "^1.0.1", + "pify": "^3.0.0" + } + }, + "eth-json-rpc-filters": { + "version": "4.2.2", + "requires": { + "@metamask/safe-event-emitter": "^2.0.0", + "async-mutex": "^0.2.6", + "eth-json-rpc-middleware": "^6.0.0", + "eth-query": "^2.1.2", + "json-rpc-engine": "^6.1.0", + "pify": "^5.0.0" + }, + "dependencies": { + "pify": { + "version": "5.0.0" + } + } + }, + "eth-rpc-errors": { + "version": "3.0.0", + "requires": { + "fast-safe-stringify": "^2.0.6" + } + }, + "ethereum-cryptography": { + "version": "0.1.3", + "requires": { + "@types/pbkdf2": "^3.0.0", + "@types/secp256k1": "^4.0.1", + "blakejs": "^1.1.0", + "browserify-aes": "^1.2.0", + "bs58check": "^2.1.2", + "create-hash": "^1.2.0", + "create-hmac": "^1.1.7", + "hash.js": "^1.1.7", + "keccak": "^3.0.0", + "pbkdf2": "^3.0.17", + "randombytes": "^2.1.0", + "safe-buffer": "^5.1.2", + "scrypt-js": "^3.0.0", + "secp256k1": "^4.0.1", + "setimmediate": "^1.0.5" + } + }, + "ethereumjs-util": { + "version": "5.2.1", + "requires": { + "bn.js": "^4.11.0", + "create-hash": "^1.1.2", + "elliptic": "^6.5.2", + "ethereum-cryptography": "^0.1.3", + "ethjs-util": "^0.1.3", + "rlp": "^2.0.0", + "safe-buffer": "^5.1.1" + } + }, + "isarray": { + "version": "1.0.0" + }, + "readable-stream": { + "version": "2.3.8", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "safe-buffer": { + "version": "5.1.2" + }, + "string_decoder": { + "version": "1.1.1", + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "ws": { + "version": "5.2.3", + "requires": { + "async-limiter": "~1.0.0" + } + } + } + }, + "web3-providers-http": { + "version": "1.9.0", + "requires": { + "abortcontroller-polyfill": "^1.7.3", + "cross-fetch": "^3.1.4", + "es6-promise": "^4.2.8", + "web3-core-helpers": "1.9.0" + } + }, + "web3-providers-ipc": { + "version": "1.9.0", + "requires": { + "oboe": "2.1.5", + "web3-core-helpers": "1.9.0" + } + }, + "web3-providers-ws": { + "version": "1.9.0", + "requires": { + "eventemitter3": "4.0.4", + "web3-core-helpers": "1.9.0", + "websocket": "^1.0.32" + }, + "dependencies": { + "eventemitter3": { + "version": "4.0.4" + } + } + }, + "web3-shh": { + "version": "1.9.0", + "requires": { + "web3-core": "1.9.0", + "web3-core-method": "1.9.0", + "web3-core-subscriptions": "1.9.0", + "web3-net": "1.9.0" + } + }, + "web3-utils": { + "version": "1.9.0", + "requires": { + "bn.js": "^5.2.1", + "ethereum-bloom-filters": "^1.0.6", + "ethereumjs-util": "^7.1.0", + "ethjs-unit": "0.1.6", + "number-to-bn": "1.7.0", + "randombytes": "^2.1.0", + "utf8": "3.0.0" + } + }, + "webidl-conversions": { + "version": "3.0.1" + }, + "webpack": { + "version": "5.81.0", + "requires": { + "@types/eslint-scope": "^3.7.3", + "@types/estree": "^1.0.0", + "@webassemblyjs/ast": "^1.11.5", + "@webassemblyjs/wasm-edit": "^1.11.5", + "@webassemblyjs/wasm-parser": "^1.11.5", + "acorn": "^8.7.1", + "acorn-import-assertions": "^1.7.6", + "browserslist": "^4.14.5", + "chrome-trace-event": "^1.0.2", + "enhanced-resolve": "^5.13.0", + "es-module-lexer": "^1.2.1", + "eslint-scope": "5.1.1", + "events": "^3.2.0", + "glob-to-regexp": "^0.4.1", + "graceful-fs": "^4.2.9", + "json-parse-even-better-errors": "^2.3.1", + "loader-runner": "^4.2.0", + "mime-types": "^2.1.27", + "neo-async": "^2.6.2", + "schema-utils": "^3.1.2", + "tapable": "^2.1.1", + "terser-webpack-plugin": "^5.3.7", + "watchpack": "^2.4.0", + "webpack-sources": "^3.2.3" + } + }, + "webpack-dev-middleware": { + "version": "5.3.3", + "requires": { + "colorette": "^2.0.10", + "memfs": "^3.4.3", + "mime-types": "^2.1.31", + "range-parser": "^1.2.1", + "schema-utils": "^4.0.0" + }, + "dependencies": { + "ajv": { + "version": "8.12.0", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "5.1.0", + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, + "json-schema-traverse": { + "version": "1.0.0" + }, + "schema-utils": { + "version": "4.0.1", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } + } + } + }, + "webpack-dev-server": { + "version": "4.13.3", + "requires": { + "@types/bonjour": "^3.5.9", + "@types/connect-history-api-fallback": "^1.3.5", + "@types/express": "^4.17.13", + "@types/serve-index": "^1.9.1", + "@types/serve-static": "^1.13.10", + "@types/sockjs": "^0.3.33", + "@types/ws": "^8.5.1", + "ansi-html-community": "^0.0.8", + "bonjour-service": "^1.0.11", + "chokidar": "^3.5.3", + "colorette": "^2.0.10", + "compression": "^1.7.4", + "connect-history-api-fallback": "^2.0.0", + "default-gateway": "^6.0.3", + "express": "^4.17.3", + "graceful-fs": "^4.2.6", + "html-entities": "^2.3.2", + "http-proxy-middleware": "^2.0.3", + "ipaddr.js": "^2.0.1", + "launch-editor": "^2.6.0", + "open": "^8.0.9", + "p-retry": "^4.5.0", + "rimraf": "^3.0.2", + "schema-utils": "^4.0.0", + "selfsigned": "^2.1.1", + "serve-index": "^1.9.1", + "sockjs": "^0.3.24", + "spdy": "^4.0.2", + "webpack-dev-middleware": "^5.3.1", + "ws": "^8.13.0" + }, + "dependencies": { + "@types/ws": { + "version": "8.5.4", + "requires": { + "@types/node": "*" + } + }, + "ajv": { + "version": "8.12.0", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "ajv-keywords": { + "version": "5.1.0", + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, + "ipaddr.js": { + "version": "2.0.1" + }, + "json-schema-traverse": { + "version": "1.0.0" + }, + "schema-utils": { + "version": "4.0.1", + "requires": { + "@types/json-schema": "^7.0.9", + "ajv": "^8.9.0", + "ajv-formats": "^2.1.1", + "ajv-keywords": "^5.1.0" + } + }, + "ws": { + "version": "8.13.0", + "requires": {} + } + } + }, + "webpack-manifest-plugin": { + "version": "4.1.1", + "requires": { + "tapable": "^2.0.0", + "webpack-sources": "^2.2.0" + }, + "dependencies": { + "source-map": { + "version": "0.6.1" + }, + "webpack-sources": { + "version": "2.3.1", + "requires": { + "source-list-map": "^2.0.1", + "source-map": "^0.6.1" + } + } + } + }, + "webpack-sources": { + "version": "3.2.3" + }, + "webrtc-adapter": { + "version": "7.7.1", + "requires": { + "rtcpeerconnection-shim": "^1.2.15", + "sdp": "^2.12.0" + } + }, + "websocket": { + "version": "1.0.34", + "requires": { + "bufferutil": "^4.0.1", + "debug": "^2.2.0", + "es5-ext": "^0.10.50", + "typedarray-to-buffer": "^3.1.5", + "utf-8-validate": "^5.0.2", + "yaeti": "^0.0.6" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "requires": { + "ms": "2.0.0" + } + }, + "ms": { + "version": "2.0.0" + } + } + }, + "websocket-driver": { + "version": "0.7.4", + "requires": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + } + }, + "websocket-extensions": { + "version": "0.1.4" + }, + "whatwg-encoding": { + "version": "1.0.5", + "requires": { + "iconv-lite": "0.4.24" + }, + "dependencies": { + "iconv-lite": { + "version": "0.4.24", + "requires": { + "safer-buffer": ">= 2.1.2 < 3" + } + } + } + }, + "whatwg-fetch": { + "version": "3.6.2" + }, + "whatwg-mimetype": { + "version": "2.3.0" + }, + "whatwg-url": { + "version": "5.0.0", + "requires": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "which": { + "version": "2.0.2", + "requires": { + "isexe": "^2.0.0" + } + }, + "which-boxed-primitive": { + "version": "1.0.2", + "requires": { + "is-bigint": "^1.0.1", + "is-boolean-object": "^1.1.0", + "is-number-object": "^1.0.4", + "is-string": "^1.0.5", + "is-symbol": "^1.0.3" + } + }, + "which-collection": { + "version": "1.0.1", + "requires": { + "is-map": "^2.0.1", + "is-set": "^2.0.1", + "is-weakmap": "^2.0.1", + "is-weakset": "^2.0.1" + } + }, + "which-module": { + "version": "2.0.1" + }, + "which-typed-array": { + "version": "1.1.9", + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + } + }, + "wif": { + "version": "2.0.6", + "requires": { + "bs58check": "<3.0.0" + } + }, + "word-wrap": { + "version": "1.2.3" + }, + "workbox-background-sync": { + "version": "6.5.4", + "requires": { + "idb": "^7.0.1", + "workbox-core": "6.5.4" + } + }, + "workbox-broadcast-update": { + "version": "6.5.4", + "requires": { + "workbox-core": "6.5.4" + } + }, + "workbox-build": { + "version": "6.5.4", + "requires": { + "@apideck/better-ajv-errors": "^0.3.1", + "@babel/core": "^7.11.1", + "@babel/preset-env": "^7.11.0", + "@babel/runtime": "^7.11.2", + "@rollup/plugin-babel": "^5.2.0", + "@rollup/plugin-node-resolve": "^11.2.1", + "@rollup/plugin-replace": "^2.4.1", + "@surma/rollup-plugin-off-main-thread": "^2.2.3", + "ajv": "^8.6.0", + "common-tags": "^1.8.0", + "fast-json-stable-stringify": "^2.1.0", + "fs-extra": "^9.0.1", + "glob": "^7.1.6", + "lodash": "^4.17.20", + "pretty-bytes": "^5.3.0", + "rollup": "^2.43.1", + "rollup-plugin-terser": "^7.0.0", + "source-map": "^0.8.0-beta.0", + "stringify-object": "^3.3.0", + "strip-comments": "^2.0.1", + "tempy": "^0.6.0", + "upath": "^1.2.0", + "workbox-background-sync": "6.5.4", + "workbox-broadcast-update": "6.5.4", + "workbox-cacheable-response": "6.5.4", + "workbox-core": "6.5.4", + "workbox-expiration": "6.5.4", + "workbox-google-analytics": "6.5.4", + "workbox-navigation-preload": "6.5.4", + "workbox-precaching": "6.5.4", + "workbox-range-requests": "6.5.4", + "workbox-recipes": "6.5.4", + "workbox-routing": "6.5.4", + "workbox-strategies": "6.5.4", + "workbox-streams": "6.5.4", + "workbox-sw": "6.5.4", + "workbox-window": "6.5.4" + }, + "dependencies": { + "@apideck/better-ajv-errors": { + "version": "0.3.6", + "requires": { + "json-schema": "^0.4.0", + "jsonpointer": "^5.0.0", + "leven": "^3.1.0" + } + }, + "ajv": { + "version": "8.12.0", + "requires": { + "fast-deep-equal": "^3.1.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2", + "uri-js": "^4.2.2" + } + }, + "fs-extra": { + "version": "9.1.0", + "requires": { + "at-least-node": "^1.0.0", + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } + }, + "json-schema-traverse": { + "version": "1.0.0" + }, + "source-map": { + "version": "0.8.0-beta.0", + "requires": { + "whatwg-url": "^7.0.0" + } + }, + "tr46": { + "version": "1.0.1", + "requires": { + "punycode": "^2.1.0" + } + }, + "webidl-conversions": { + "version": "4.0.2" + }, + "whatwg-url": { + "version": "7.1.0", + "requires": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + } + } + }, + "workbox-cacheable-response": { + "version": "6.5.4", + "requires": { + "workbox-core": "6.5.4" + } + }, + "workbox-core": { + "version": "6.5.4" + }, + "workbox-expiration": { + "version": "6.5.4", + "requires": { + "idb": "^7.0.1", + "workbox-core": "6.5.4" + } + }, + "workbox-google-analytics": { + "version": "6.5.4", + "requires": { + "workbox-background-sync": "6.5.4", + "workbox-core": "6.5.4", + "workbox-routing": "6.5.4", + "workbox-strategies": "6.5.4" + } + }, + "workbox-navigation-preload": { + "version": "6.5.4", + "requires": { + "workbox-core": "6.5.4" + } + }, + "workbox-precaching": { + "version": "6.5.4", + "requires": { + "workbox-core": "6.5.4", + "workbox-routing": "6.5.4", + "workbox-strategies": "6.5.4" + } + }, + "workbox-range-requests": { + "version": "6.5.4", + "requires": { + "workbox-core": "6.5.4" + } + }, + "workbox-recipes": { + "version": "6.5.4", + "requires": { + "workbox-cacheable-response": "6.5.4", + "workbox-core": "6.5.4", + "workbox-expiration": "6.5.4", + "workbox-precaching": "6.5.4", + "workbox-routing": "6.5.4", + "workbox-strategies": "6.5.4" + } + }, + "workbox-routing": { + "version": "6.5.4", + "requires": { + "workbox-core": "6.5.4" + } + }, + "workbox-strategies": { + "version": "6.5.4", + "requires": { + "workbox-core": "6.5.4" + } + }, + "workbox-streams": { + "version": "6.5.4", + "requires": { + "workbox-core": "6.5.4", + "workbox-routing": "6.5.4" + } + }, + "workbox-sw": { + "version": "6.5.4" + }, + "workbox-webpack-plugin": { + "version": "6.5.4", + "requires": { + "fast-json-stable-stringify": "^2.1.0", + "pretty-bytes": "^5.4.1", + "upath": "^1.2.0", + "webpack-sources": "^1.4.3", + "workbox-build": "6.5.4" + }, + "dependencies": { + "source-map": { + "version": "0.6.1" + }, + "webpack-sources": { + "version": "1.4.3", + "requires": { + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" + } + } + } + }, + "workbox-window": { + "version": "6.5.4", + "requires": { + "@types/trusted-types": "^2.0.2", + "workbox-core": "6.5.4" + } + }, + "wormhole-connect-builder": { + "version": "file:builder", + "requires": { + "@emotion/react": "^11.10.6", + "@emotion/styled": "^11.10.6", + "@mui/material": "^5.11.9", + "@testing-library/jest-dom": "^5.16.5", + "@testing-library/react": "^13.4.0", + "@testing-library/user-event": "^13.5.0", + "@types/jest": "^27.5.2", + "@types/node": "^16.18.25", + "@types/react": "^18.2.0", + "@types/react-dom": "^18.2.1", + "@wormhole-foundation/wormhole-connect": "^0.0.1-beta.4", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-scripts": "5.0.1", + "tss-react": "^4.8.2", + "typescript": "^4.9.5", + "web-vitals": "^2.1.4" + } + }, + "wrap-ansi": { + "version": "7.0.0", + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "requires": { + "color-convert": "^2.0.1" + } + }, + "color-convert": { + "version": "2.0.1", + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4" + } + } + }, + "wrappy": { + "version": "1.0.2" + }, + "write-file-atomic": { + "version": "4.0.2", + "requires": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + } + }, + "ws": { + "version": "7.5.9", + "requires": {} + }, + "xhr": { + "version": "2.6.0", + "requires": { + "global": "~4.4.0", + "is-function": "^1.0.1", + "parse-headers": "^2.0.0", + "xtend": "^4.0.0" + } + }, + "xhr-request": { + "version": "1.1.0", + "requires": { + "buffer-to-arraybuffer": "^0.0.5", + "object-assign": "^4.1.1", + "query-string": "^5.0.1", + "simple-get": "^2.7.0", + "timed-out": "^4.0.1", + "url-set-query": "^1.0.0", + "xhr": "^2.0.4" + }, + "dependencies": { + "query-string": { + "version": "5.1.1", + "requires": { + "decode-uri-component": "^0.2.0", + "object-assign": "^4.1.0", + "strict-uri-encode": "^1.0.0" + } + }, + "strict-uri-encode": { + "version": "1.1.0" + } + } + }, + "xhr-request-promise": { + "version": "0.1.3", + "requires": { + "xhr-request": "^1.1.0" + } + }, + "xml-name-validator": { + "version": "3.0.0" + }, + "xmlchars": { + "version": "2.2.0" + }, + "xmlhttprequest-ssl": { + "version": "2.0.0" + }, + "xstream": { + "version": "11.14.0", + "requires": { + "globalthis": "^1.0.1", + "symbol-observable": "^2.0.3" + }, + "dependencies": { + "symbol-observable": { + "version": "2.0.3" + } + } + }, + "xtend": { + "version": "4.0.2" + }, + "y18n": { + "version": "5.0.8" + }, + "yaeti": { + "version": "0.0.6" + }, + "yallist": { + "version": "3.1.1" + }, + "yaml": { + "version": "1.10.2" + }, + "yargs": { + "version": "16.2.0", + "requires": { + "cliui": "^7.0.2", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.0", + "y18n": "^5.0.5", + "yargs-parser": "^20.2.2" + }, + "dependencies": { + "yargs-parser": { + "version": "20.2.9" + } + } + }, + "yargs-parser": { + "version": "21.1.1" + }, + "yocto-queue": { + "version": "0.1.0" + }, + "zen-observable": { + "version": "0.8.15" + }, + "zen-observable-ts": { + "version": "1.2.5", + "requires": { + "zen-observable": "0.8.15" + } + }, + "zustand": { + "version": "4.3.7", + "requires": { + "use-sync-external-store": "1.2.0" + } + } + } +} diff --git a/sdk/package-lock.json b/sdk/package-lock.json index b5790dee6..3b8f91ac4 100644 --- a/sdk/package-lock.json +++ b/sdk/package-lock.json @@ -9,8 +9,9 @@ "version": "0.1.0-beta.0", "license": "ISC", "dependencies": { - "@certusone/wormhole-sdk": "^0.9.8", + "@certusone/wormhole-sdk": "^0.9.15-beta.2", "@injectivelabs/sdk-ts": "1.0.211", + "@mysten/sui.js": "^0.32.2", "@nomad-xyz/multi-provider": "^1.1.0", "@solana/spl-token": "^0.3.7", "@solana/web3.js": "^1.73.0", @@ -92,16 +93,17 @@ } }, "node_modules/@certusone/wormhole-sdk": { - "version": "0.9.13", - "resolved": "https://registry.npmjs.org/@certusone/wormhole-sdk/-/wormhole-sdk-0.9.13.tgz", - "integrity": "sha512-9GtDulHKjqDxYvxvY1iF64FTek2EZ0MrdyceIR4Ss77rxy70glgah7hzcJ1LlpnSdxog9J9Y4ZhQLLstMGSRQA==", + "version": "0.9.15-beta.2", + "resolved": "https://registry.npmjs.org/@certusone/wormhole-sdk/-/wormhole-sdk-0.9.15-beta.2.tgz", + "integrity": "sha512-WVPk8EPOTA3042aOyMyqzLAqepf39bjGhSc+wRCyPPmviFuUk6JYBjVBGD2kWgAYISQ9NmRm23O5qyQNrC/jvw==", "dependencies": { "@certusone/wormhole-sdk-proto-web": "0.0.6", "@certusone/wormhole-sdk-wasm": "^0.0.1", "@coral-xyz/borsh": "0.2.6", - "@injectivelabs/networks": "1.10.7", - "@injectivelabs/sdk-ts": "1.10.46", - "@injectivelabs/utils": "1.10.5", + "@injectivelabs/networks": "^1.0.73", + "@injectivelabs/sdk-ts": "^1.0.368", + "@injectivelabs/utils": "^1.0.63", + "@mysten/sui.js": "0.32.2", "@project-serum/anchor": "^0.25.0", "@solana/spl-token": "^0.3.5", "@solana/web3.js": "^1.66.2", @@ -210,9 +212,9 @@ "integrity": "sha512-KvvX58MGMWh7xA+N+deCfunkA/ZNDvFLw4YbOmX3f/XBIkqrVY7qlotfy2aNb1kgp6h4B6Yc8YawJPDTfvWX7g==" }, "node_modules/@certusone/wormhole-sdk/node_modules/@injectivelabs/sdk-ts": { - "version": "1.10.46", - "resolved": "https://registry.npmjs.org/@injectivelabs/sdk-ts/-/sdk-ts-1.10.46.tgz", - "integrity": "sha512-ceBq6QIic9mdGps5OO7rVxpvak6AFHSvq0guhDRMyyq4KCjLdsIQuZNA8h7hrHKHqMEZu2u5chfbDL4GHLv7MA==", + "version": "1.10.47", + "resolved": "https://registry.npmjs.org/@injectivelabs/sdk-ts/-/sdk-ts-1.10.47.tgz", + "integrity": "sha512-G11Cdf5iO6is0qWzQRdfiUJLI8IPF4VtD5mVfBwnakrk78syN/Dy492trL7hispDSQaCJaP6a/fa6HnMPCsvzA==", "hasInstallScript": true, "dependencies": { "@apollo/client": "^3.5.8", @@ -220,13 +222,13 @@ "@cosmjs/proto-signing": "^0.30.1", "@cosmjs/stargate": "^0.30.1", "@ethersproject/bytes": "^5.7.0", - "@injectivelabs/core-proto-ts": "^0.0.11", + "@injectivelabs/core-proto-ts": "^0.0.12", "@injectivelabs/exceptions": "^1.10.5", "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", - "@injectivelabs/indexer-proto-ts": "1.10.8-rc.3", - "@injectivelabs/mito-proto-ts": "1.0.3", + "@injectivelabs/indexer-proto-ts": "1.10.8-rc.4", + "@injectivelabs/mito-proto-ts": "1.0.4", "@injectivelabs/networks": "^1.10.7", "@injectivelabs/test-utils": "^1.10.2", "@injectivelabs/token-metadata": "^1.10.25", @@ -1585,9 +1587,9 @@ } }, "node_modules/@injectivelabs/core-proto-ts": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/@injectivelabs/core-proto-ts/-/core-proto-ts-0.0.11.tgz", - "integrity": "sha512-gYMzkoZ0olXLbEhSQVarUCMR6VAHytvENDv2Psjl9EjO5Pg93vTGLViS4E4vA5fezRfdF/x0Uic31w+ogp66jA==", + "version": "0.0.12", + "resolved": "https://registry.npmjs.org/@injectivelabs/core-proto-ts/-/core-proto-ts-0.0.12.tgz", + "integrity": "sha512-axdL+KWuv4aORIdYqJQy5k9H+bPsi5Y4KWNcYPxrFQ0FAu+sjpvm5PmbIzBSgv/hnIB2cHcLuKvE3BtEa3vJ/w==", "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", "google-protobuf": "^3.14.0", @@ -1656,9 +1658,9 @@ } }, "node_modules/@injectivelabs/indexer-proto-ts": { - "version": "1.10.8-rc.3", - "resolved": "https://registry.npmjs.org/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.10.8-rc.3.tgz", - "integrity": "sha512-Sa9vR3YkOaP0shvprA6Kw/a7kxgrozi06Lv9TV687Kumw9gMxrAF4fy3oxwC9iUtRY0OLVgaALh4xNH0mGz4Fw==", + "version": "1.10.8-rc.4", + "resolved": "https://registry.npmjs.org/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.10.8-rc.4.tgz", + "integrity": "sha512-IwbepTfsHHAv3Z36As6yH/+HIplOEpUu6SFHBCVgdSIaQ8GuvTib4HETiVnV4mjYqoyVgWs+zLSAfih46rdMJQ==", "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", "google-protobuf": "^3.14.0", @@ -1667,9 +1669,9 @@ } }, "node_modules/@injectivelabs/mito-proto-ts": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@injectivelabs/mito-proto-ts/-/mito-proto-ts-1.0.3.tgz", - "integrity": "sha512-3dkM4uCVGvvG4RC1eWN5pLEJu3m5YHB6oayOOsgXMAbQG6CxNQTyRV0secdHRdrJ403n2WJv9MPe8Lkzo8ryhA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@injectivelabs/mito-proto-ts/-/mito-proto-ts-1.0.4.tgz", + "integrity": "sha512-8raVmZnaXVbpikMTmnc+OtViBPzgyx2ilezUTZFCNcQzZM01lbJlpd0NbF6K5tG76eJ3Wjwj+YpAdRPNuayZ4A==", "dependencies": { "@injectivelabs/grpc-web": "^0.0.1", "google-protobuf": "^3.14.0", @@ -1755,9 +1757,9 @@ } }, "node_modules/@injectivelabs/test-utils": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/@injectivelabs/test-utils/-/test-utils-1.10.2.tgz", - "integrity": "sha512-B84qmz4ABxynSiNefUqGbR6ZQOciGJTUv7CSEYN9oRLNZoRCE+jsCVTh9SSqSKF4ZD84llAnyISYWweStW7ifw==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/@injectivelabs/test-utils/-/test-utils-1.10.3.tgz", + "integrity": "sha512-5lSGj8eo4tXMRcIdA1JCKEDlFdWvFvnGp08rogCjrrUooELWU+OMQhweS8+0zgcnjR569BE1VCluH1wE8MZCKg==", "hasInstallScript": true, "dependencies": { "axios": "^0.21.1", @@ -1872,6 +1874,114 @@ "rlp": "^2.2.3" } }, + "node_modules/@mysten/bcs": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@mysten/bcs/-/bcs-0.7.1.tgz", + "integrity": "sha512-wFPb8bkhwrbiStfZMV5rFM7J+umpke59/dNjDp+UYJKykNlW23LCk2ePyEUvGdb62HGJM1jyOJ8g4egE3OmdKA==", + "dependencies": { + "bs58": "^5.0.0" + } + }, + "node_modules/@mysten/bcs/node_modules/base-x": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", + "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==" + }, + "node_modules/@mysten/bcs/node_modules/bs58": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", + "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", + "dependencies": { + "base-x": "^4.0.0" + } + }, + "node_modules/@mysten/sui.js": { + "version": "0.32.2", + "resolved": "https://registry.npmjs.org/@mysten/sui.js/-/sui.js-0.32.2.tgz", + "integrity": "sha512-/Hm4xkGolJhqj8FvQr7QSHDTlxIvL52mtbOao9f75YjrBh7y1Uh9kbJSY7xiTF1NY9sv6p5hUVlYRJuM0Hvn9A==", + "dependencies": { + "@mysten/bcs": "0.7.1", + "@noble/curves": "^1.0.0", + "@noble/hashes": "^1.3.0", + "@scure/bip32": "^1.3.0", + "@scure/bip39": "^1.2.0", + "@suchipi/femver": "^1.0.0", + "jayson": "^4.0.0", + "rpc-websockets": "^7.5.1", + "superstruct": "^1.0.3", + "tweetnacl": "^1.0.3" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/@mysten/sui.js/node_modules/@scure/bip39": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", + "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "@noble/hashes": "~1.3.0", + "@scure/base": "~1.1.0" + } + }, + "node_modules/@mysten/sui.js/node_modules/@types/node": { + "version": "12.20.55", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", + "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" + }, + "node_modules/@mysten/sui.js/node_modules/jayson": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/jayson/-/jayson-4.1.0.tgz", + "integrity": "sha512-R6JlbyLN53Mjku329XoRT2zJAE6ZgOQ8f91ucYdMCD4nkGCF9kZSrcGXpHIU4jeKj58zUZke2p+cdQchU7Ly7A==", + "dependencies": { + "@types/connect": "^3.4.33", + "@types/node": "^12.12.54", + "@types/ws": "^7.4.4", + "commander": "^2.20.3", + "delay": "^5.0.0", + "es6-promisify": "^5.0.0", + "eyes": "^0.1.8", + "isomorphic-ws": "^4.0.1", + "json-stringify-safe": "^5.0.1", + "JSONStream": "^1.3.5", + "uuid": "^8.3.2", + "ws": "^7.4.5" + }, + "bin": { + "jayson": "bin/jayson.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@mysten/sui.js/node_modules/superstruct": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.3.tgz", + "integrity": "sha512-8iTn3oSS8nRGn+C2pgXSKPI3jmpm6FExNazNpjvqS6ZUJQCej3PUXEKM8NjHBOs54ExM+LPW/FBRhymrdcCiSg==", + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@noble/curves": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.0.0.tgz", + "integrity": "sha512-2upgEu0iLiDVDZkNLeFV2+ht0BAVgQnEmCk6JsOch9Rp8xfkMCbvbAZlA2pBHQc73dbl+vFOXfqkf4uemdn0bw==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "@noble/hashes": "1.3.0" + } + }, "node_modules/@noble/ed25519": { "version": "1.7.3", "resolved": "https://registry.npmjs.org/@noble/ed25519/-/ed25519-1.7.3.tgz", @@ -2051,6 +2161,22 @@ } ] }, + "node_modules/@scure/bip32": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", + "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", + "funding": [ + { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + ], + "dependencies": { + "@noble/curves": "~1.0.0", + "@noble/hashes": "~1.3.0", + "@scure/base": "~1.1.0" + } + }, "node_modules/@scure/bip39": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.0.tgz", @@ -2157,6 +2283,11 @@ "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-0.14.2.tgz", "integrity": "sha512-nPewA6m9mR3d6k7WkZ8N8zpTWfenFH3q9pA2PkuiZxINr9DKB2+40wEQf0ixn8VaGuJ78AB6iWOtStI+/4FKZQ==" }, + "node_modules/@suchipi/femver": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@suchipi/femver/-/femver-1.0.0.tgz", + "integrity": "sha512-bprE8+K5V+DPX7q2e2K57ImqNBdfGHDIWaGI5xHxZoxbKOuQZn4wzPiUxOAHnsUr3w3xHrWXwN7gnG/iIuEMIg==" + }, "node_modules/@szmarczak/http-timer": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", @@ -8906,16 +9037,17 @@ } }, "@certusone/wormhole-sdk": { - "version": "0.9.13", - "resolved": "https://registry.npmjs.org/@certusone/wormhole-sdk/-/wormhole-sdk-0.9.13.tgz", - "integrity": "sha512-9GtDulHKjqDxYvxvY1iF64FTek2EZ0MrdyceIR4Ss77rxy70glgah7hzcJ1LlpnSdxog9J9Y4ZhQLLstMGSRQA==", + "version": "0.9.15-beta.2", + "resolved": "https://registry.npmjs.org/@certusone/wormhole-sdk/-/wormhole-sdk-0.9.15-beta.2.tgz", + "integrity": "sha512-WVPk8EPOTA3042aOyMyqzLAqepf39bjGhSc+wRCyPPmviFuUk6JYBjVBGD2kWgAYISQ9NmRm23O5qyQNrC/jvw==", "requires": { "@certusone/wormhole-sdk-proto-web": "0.0.6", "@certusone/wormhole-sdk-wasm": "^0.0.1", "@coral-xyz/borsh": "0.2.6", - "@injectivelabs/networks": "1.10.7", - "@injectivelabs/sdk-ts": "1.10.46", - "@injectivelabs/utils": "1.10.5", + "@injectivelabs/networks": "^1.0.73", + "@injectivelabs/sdk-ts": "^1.0.368", + "@injectivelabs/utils": "^1.0.63", + "@mysten/sui.js": "0.32.2", "@project-serum/anchor": "^0.25.0", "@solana/spl-token": "^0.3.5", "@solana/web3.js": "^1.66.2", @@ -9002,22 +9134,22 @@ "integrity": "sha512-KvvX58MGMWh7xA+N+deCfunkA/ZNDvFLw4YbOmX3f/XBIkqrVY7qlotfy2aNb1kgp6h4B6Yc8YawJPDTfvWX7g==" }, "@injectivelabs/sdk-ts": { - "version": "1.10.46", - "resolved": "https://registry.npmjs.org/@injectivelabs/sdk-ts/-/sdk-ts-1.10.46.tgz", - "integrity": "sha512-ceBq6QIic9mdGps5OO7rVxpvak6AFHSvq0guhDRMyyq4KCjLdsIQuZNA8h7hrHKHqMEZu2u5chfbDL4GHLv7MA==", + "version": "1.10.47", + "resolved": "https://registry.npmjs.org/@injectivelabs/sdk-ts/-/sdk-ts-1.10.47.tgz", + "integrity": "sha512-G11Cdf5iO6is0qWzQRdfiUJLI8IPF4VtD5mVfBwnakrk78syN/Dy492trL7hispDSQaCJaP6a/fa6HnMPCsvzA==", "requires": { "@apollo/client": "^3.5.8", "@cosmjs/amino": "^0.30.1", "@cosmjs/proto-signing": "^0.30.1", "@cosmjs/stargate": "^0.30.1", "@ethersproject/bytes": "^5.7.0", - "@injectivelabs/core-proto-ts": "^0.0.11", + "@injectivelabs/core-proto-ts": "^0.0.12", "@injectivelabs/exceptions": "^1.10.5", "@injectivelabs/grpc-web": "^0.0.1", "@injectivelabs/grpc-web-node-http-transport": "^0.0.2", "@injectivelabs/grpc-web-react-native-transport": "^0.0.2", - "@injectivelabs/indexer-proto-ts": "1.10.8-rc.3", - "@injectivelabs/mito-proto-ts": "1.0.3", + "@injectivelabs/indexer-proto-ts": "1.10.8-rc.4", + "@injectivelabs/mito-proto-ts": "1.0.4", "@injectivelabs/networks": "^1.10.7", "@injectivelabs/test-utils": "^1.10.2", "@injectivelabs/token-metadata": "^1.10.25", @@ -10027,9 +10159,9 @@ } }, "@injectivelabs/core-proto-ts": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/@injectivelabs/core-proto-ts/-/core-proto-ts-0.0.11.tgz", - "integrity": "sha512-gYMzkoZ0olXLbEhSQVarUCMR6VAHytvENDv2Psjl9EjO5Pg93vTGLViS4E4vA5fezRfdF/x0Uic31w+ogp66jA==", + "version": "0.0.12", + "resolved": "https://registry.npmjs.org/@injectivelabs/core-proto-ts/-/core-proto-ts-0.0.12.tgz", + "integrity": "sha512-axdL+KWuv4aORIdYqJQy5k9H+bPsi5Y4KWNcYPxrFQ0FAu+sjpvm5PmbIzBSgv/hnIB2cHcLuKvE3BtEa3vJ/w==", "requires": { "@injectivelabs/grpc-web": "^0.0.1", "google-protobuf": "^3.14.0", @@ -10089,9 +10221,9 @@ } }, "@injectivelabs/indexer-proto-ts": { - "version": "1.10.8-rc.3", - "resolved": "https://registry.npmjs.org/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.10.8-rc.3.tgz", - "integrity": "sha512-Sa9vR3YkOaP0shvprA6Kw/a7kxgrozi06Lv9TV687Kumw9gMxrAF4fy3oxwC9iUtRY0OLVgaALh4xNH0mGz4Fw==", + "version": "1.10.8-rc.4", + "resolved": "https://registry.npmjs.org/@injectivelabs/indexer-proto-ts/-/indexer-proto-ts-1.10.8-rc.4.tgz", + "integrity": "sha512-IwbepTfsHHAv3Z36As6yH/+HIplOEpUu6SFHBCVgdSIaQ8GuvTib4HETiVnV4mjYqoyVgWs+zLSAfih46rdMJQ==", "requires": { "@injectivelabs/grpc-web": "^0.0.1", "google-protobuf": "^3.14.0", @@ -10100,9 +10232,9 @@ } }, "@injectivelabs/mito-proto-ts": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@injectivelabs/mito-proto-ts/-/mito-proto-ts-1.0.3.tgz", - "integrity": "sha512-3dkM4uCVGvvG4RC1eWN5pLEJu3m5YHB6oayOOsgXMAbQG6CxNQTyRV0secdHRdrJ403n2WJv9MPe8Lkzo8ryhA==", + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@injectivelabs/mito-proto-ts/-/mito-proto-ts-1.0.4.tgz", + "integrity": "sha512-8raVmZnaXVbpikMTmnc+OtViBPzgyx2ilezUTZFCNcQzZM01lbJlpd0NbF6K5tG76eJ3Wjwj+YpAdRPNuayZ4A==", "requires": { "@injectivelabs/grpc-web": "^0.0.1", "google-protobuf": "^3.14.0", @@ -10185,9 +10317,9 @@ } }, "@injectivelabs/test-utils": { - "version": "1.10.2", - "resolved": "https://registry.npmjs.org/@injectivelabs/test-utils/-/test-utils-1.10.2.tgz", - "integrity": "sha512-B84qmz4ABxynSiNefUqGbR6ZQOciGJTUv7CSEYN9oRLNZoRCE+jsCVTh9SSqSKF4ZD84llAnyISYWweStW7ifw==", + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/@injectivelabs/test-utils/-/test-utils-1.10.3.tgz", + "integrity": "sha512-5lSGj8eo4tXMRcIdA1JCKEDlFdWvFvnGp08rogCjrrUooELWU+OMQhweS8+0zgcnjR569BE1VCluH1wE8MZCKg==", "requires": { "axios": "^0.21.1", "bignumber.js": "^9.0.1", @@ -10301,6 +10433,94 @@ } } }, + "@mysten/bcs": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/@mysten/bcs/-/bcs-0.7.1.tgz", + "integrity": "sha512-wFPb8bkhwrbiStfZMV5rFM7J+umpke59/dNjDp+UYJKykNlW23LCk2ePyEUvGdb62HGJM1jyOJ8g4egE3OmdKA==", + "requires": { + "bs58": "^5.0.0" + }, + "dependencies": { + "base-x": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.0.tgz", + "integrity": "sha512-FuwxlW4H5kh37X/oW59pwTzzTKRzfrrQwhmyspRM7swOEZcHtDZSCt45U6oKgtuFE+WYPblePMVIPR4RZrh/hw==" + }, + "bs58": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz", + "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==", + "requires": { + "base-x": "^4.0.0" + } + } + } + }, + "@mysten/sui.js": { + "version": "0.32.2", + "resolved": "https://registry.npmjs.org/@mysten/sui.js/-/sui.js-0.32.2.tgz", + "integrity": "sha512-/Hm4xkGolJhqj8FvQr7QSHDTlxIvL52mtbOao9f75YjrBh7y1Uh9kbJSY7xiTF1NY9sv6p5hUVlYRJuM0Hvn9A==", + "requires": { + "@mysten/bcs": "0.7.1", + "@noble/curves": "^1.0.0", + "@noble/hashes": "^1.3.0", + "@scure/bip32": "^1.3.0", + "@scure/bip39": "^1.2.0", + "@suchipi/femver": "^1.0.0", + "jayson": "^4.0.0", + "rpc-websockets": "^7.5.1", + "superstruct": "^1.0.3", + "tweetnacl": "^1.0.3" + }, + "dependencies": { + "@scure/bip39": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.0.tgz", + "integrity": "sha512-SX/uKq52cuxm4YFXWFaVByaSHJh2w3BnokVSeUJVCv6K7WulT9u2BuNRBhuFl8vAuYnzx9bEu9WgpcNYTrYieg==", + "requires": { + "@noble/hashes": "~1.3.0", + "@scure/base": "~1.1.0" + } + }, + "@types/node": { + "version": "12.20.55", + "resolved": "https://registry.npmjs.org/@types/node/-/node-12.20.55.tgz", + "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==" + }, + "jayson": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/jayson/-/jayson-4.1.0.tgz", + "integrity": "sha512-R6JlbyLN53Mjku329XoRT2zJAE6ZgOQ8f91ucYdMCD4nkGCF9kZSrcGXpHIU4jeKj58zUZke2p+cdQchU7Ly7A==", + "requires": { + "@types/connect": "^3.4.33", + "@types/node": "^12.12.54", + "@types/ws": "^7.4.4", + "commander": "^2.20.3", + "delay": "^5.0.0", + "es6-promisify": "^5.0.0", + "eyes": "^0.1.8", + "isomorphic-ws": "^4.0.1", + "json-stringify-safe": "^5.0.1", + "JSONStream": "^1.3.5", + "uuid": "^8.3.2", + "ws": "^7.4.5" + } + }, + "superstruct": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/superstruct/-/superstruct-1.0.3.tgz", + "integrity": "sha512-8iTn3oSS8nRGn+C2pgXSKPI3jmpm6FExNazNpjvqS6ZUJQCej3PUXEKM8NjHBOs54ExM+LPW/FBRhymrdcCiSg==" + } + } + }, + "@noble/curves": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.0.0.tgz", + "integrity": "sha512-2upgEu0iLiDVDZkNLeFV2+ht0BAVgQnEmCk6JsOch9Rp8xfkMCbvbAZlA2pBHQc73dbl+vFOXfqkf4uemdn0bw==", + "requires": { + "@noble/hashes": "1.3.0" + } + }, "@noble/ed25519": { "version": "1.7.3", "resolved": "https://registry.npmjs.org/@noble/ed25519/-/ed25519-1.7.3.tgz", @@ -10438,6 +10658,16 @@ "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.1.tgz", "integrity": "sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==" }, + "@scure/bip32": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.0.tgz", + "integrity": "sha512-bcKpo1oj54hGholplGLpqPHRbIsnbixFtc06nwuNM5/dwSXOq/AAYoIBRsBmnZJSdfeNW5rnff7NTAz3ZCqR9Q==", + "requires": { + "@noble/curves": "~1.0.0", + "@noble/hashes": "~1.3.0", + "@scure/base": "~1.1.0" + } + }, "@scure/bip39": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.1.0.tgz", @@ -10518,6 +10748,11 @@ } } }, + "@suchipi/femver": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@suchipi/femver/-/femver-1.0.0.tgz", + "integrity": "sha512-bprE8+K5V+DPX7q2e2K57ImqNBdfGHDIWaGI5xHxZoxbKOuQZn4wzPiUxOAHnsUr3w3xHrWXwN7gnG/iIuEMIg==" + }, "@szmarczak/http-timer": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-5.0.1.tgz", diff --git a/sdk/package.json b/sdk/package.json index 8a08cfe6e..fd4e108d4 100644 --- a/sdk/package.json +++ b/sdk/package.json @@ -5,7 +5,7 @@ "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "dependencies": { - "@certusone/wormhole-sdk": "^0.9.8", + "@certusone/wormhole-sdk": "^0.9.14", "@injectivelabs/sdk-ts": "1.0.211", "@nomad-xyz/multi-provider": "^1.1.0", "@solana/spl-token": "^0.3.7", diff --git a/sdk/src/config/TESTNET.ts b/sdk/src/config/TESTNET.ts index 594860315..1f0fdf745 100644 --- a/sdk/src/config/TESTNET.ts +++ b/sdk/src/config/TESTNET.ts @@ -112,7 +112,7 @@ const TESTNET_CONFIG: WormholeConfig = { fuji: 'https://api.avax-test.network/ext/bc/C/rpc', fantom: 'https://rpc.ankr.com/fantom_testnet', alfajores: 'https://alfajores-forno.celo-testnet.org', - solana: 'https://api.testnet.solana.com', + solana: 'https://api.devnet.solana.com', moonbasealpha: 'https://rpc.api.moonbase.moonbeam.network', }, chains: TESTNET, diff --git a/sdk/src/contexts/solana/index.ts b/sdk/src/contexts/solana/index.ts index a6ba86b32..ffb799dad 100644 --- a/sdk/src/contexts/solana/index.ts +++ b/sdk/src/contexts/solana/index.ts @@ -71,7 +71,9 @@ export class SolanaContext< super(); this.context = context; const tag = context.environment === 'MAINNET' ? 'mainnet-beta' : 'devnet'; - this.connection = new Connection(clusterApiUrl(tag)); + this.connection = new Connection( + context.conf.rpcs.solana || clusterApiUrl(tag), + ); this.contracts = new SolContracts(context); } @@ -274,7 +276,7 @@ export class SolanaContext< } private async transferFromSolana( - senderAddress: string, + senderAddress: PublicKeyInitData, amount: bigint, recipientChain: ChainId | ChainName, recipientAddress: Uint8Array | Buffer, @@ -361,12 +363,8 @@ export class SolanaContext< 'finalized', ); } else { - const destTokenAddr = await destContext.mustGetForeignAsset( - token, - recipientChain, - ); const formattedTokenAddr = arrayify( - destContext.formatAddress(destTokenAddr), + destContext.formatAddress(token.address), ); const solTokenAddr = await this.mustGetForeignAsset( token, @@ -385,7 +383,7 @@ export class SolanaContext< recipientChain, formattedRecipient, splToken.value[0].pubkey, - this.context.resolveDomain(token.chain), + this.context.toChainId(token.chain), formattedTokenAddr, undefined, relayerFeeBN, diff --git a/wormhole-connect-loader/README.md b/wormhole-connect-loader/README.md index 8f4a7867f..b1526e404 100644 --- a/wormhole-connect-loader/README.md +++ b/wormhole-connect-loader/README.md @@ -8,7 +8,7 @@ Integration does not get easier than this. Wormhole Connect is an easy seamless ```ts { - "environment": "testnet", + "env": "testnet", "networks": ["goerli", "mumbai"], "tokens": ["ETH", "WETH", "MATIC", "WMATIC"], "mode": "light" @@ -18,12 +18,14 @@ Integration does not get easier than this. Wormhole Connect is an easy seamless #### Accepted values -Environment: +Environment (`env`): | Mainnet | Testnet | | ---------- | --------- | | mainnet | testnet | -Chains: +
+ +Networks (`networks`): | Mainnet | Testnet | | ---------- | ------------- | | ethereum | goerli | @@ -34,31 +36,45 @@ Chains: | moonbeam | moonbasealpha | | solana | solana | -Tokens: -| Mainnet | Testnet | -| ------- | ------- | -| ETH | ETH | -| WETH | WETH | -| USDC | USDC | -| MATIC | MATIC | -| WMATIC | WMATIC | -| BNB | BNB | -| WBNB | WBNB | -| AVAX | AVAX | -| WAVAX | WAVAX | -| FTM | FTM | -| WFTM | WFTM | -| CELO | CELO | -| GLMR | GLMR | -| WGLMR | WGLMR | -| SOL | WSOL | - -Mode: +
+ +Tokens (`tokens`): +| Mainnet | Testnet | +| ----------- | ------- | +| ETH | ETH | +| WETH | WETH | +| USDCeth | USDCeth | +| WBTC | | +| USDT | | +| DAI | | +| BUSD | | +| MATIC | MATIC | +| WMATIC | WMATIC | +| USDCpolygon | | +| BNB | BNB | +| WBNB | WBNB | +| USDCbnb | | +| AVAX | AVAX | +| WAVAX | WAVAX | +| USDCavax | | +| FTM | FTM | +| WFTM | WFTM | +| CELO | CELO | +| GLMR | GLMR | +| WGLMR | WGLMR | +| SOL | WSOL | +| USDCsol | | + +
+ +Mode (`mode`): | | | | ---- | ----- | | dark | light | -Custom theme: +
+ +Custom theme (`customTheme`): ```js import { dark, light, Theme } from '@wormhole-foundation/wormhole-connect'; @@ -68,8 +84,8 @@ import { dark, light, Theme } from '@wormhole-foundation/wormhole-connect'; ```html - - + + ``` ### 3. Embed it in your application @@ -96,13 +112,17 @@ function App() { } ``` -Specify networks/tokens (optional) +Specify networks/tokens and rpc endpoints (optional) ```jsx import WormholeBridge, { WormholeConnectConfig } from '@wormhole-foundation/wormhole-connect'; const config: WormholeConnectConfig = { - environment: "mainnet", + env: "mainnet", networks: ["ethereum", "polygon", "solana"], tokens: ["ETH", "WETH", "MATIC", "WMATIC"], + rpc: { + ethereum: "https://rpc.ankr.com/eth", + solana: "https://rpc.ankr.com/solana", + } } function App() { diff --git a/wormhole-connect-loader/dist/main.css b/wormhole-connect-loader/dist/main.css index 0aa7cd1a4..e9a35784b 100644 --- a/wormhole-connect-loader/dist/main.css +++ b/wormhole-connect-loader/dist/main.css @@ -28,3 +28,5 @@ input[type='number'] { /* Firefox */ } + +/*# sourceMappingURL=main.fbc9466a.css.map*/ \ No newline at end of file diff --git a/wormhole-connect-loader/dist/main.js b/wormhole-connect-loader/dist/main.js index db0536e5f..e1f7b0e63 100644 --- a/wormhole-connect-loader/dist/main.js +++ b/wormhole-connect-loader/dist/main.js @@ -1,2 +1,3 @@ -/*! For license information please see main.723721db.js.LICENSE.txt */ -(function(){var __webpack_modules__={31814:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(68442).default,o=n(34560).default,s=n(47474).default,c=n(17964).default,u=n(54790).default;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenBridgeRelayer__factory=void 0;var f=n(71283),d=[{inputs:[{internalType:"uint16",name:"chainId",type:"uint16"},{internalType:"address",name:"wormhole",type:"address"},{internalType:"address",name:"tokenBridge_",type:"address"},{internalType:"address",name:"wethAddress",type:"address"},{internalType:"bool",name:"unwrapWeth_",type:"bool"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransfered",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"uint256",name:"swapRate",type:"uint256"}],name:"SwapRateUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint16",name:"emitterChainId",type:"uint16"},{indexed:!0,internalType:"bytes32",name:"emitterAddress",type:"bytes32"},{indexed:!0,internalType:"uint64",name:"sequence",type:"uint64"}],name:"TransferRedeemed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"address",name:"relayer",type:"address"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"nativeAmount",type:"uint256"}],name:"SwapExecuted",type:"event"},{inputs:[],name:"WETH",outputs:[{internalType:"contract IWETH",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"calculateMaxSwapAmountIn",outputs:[{internalType:"uint256",name:"maxAllowed",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"toNativeAmount",type:"uint256"}],name:"calculateNativeSwapAmountOut",outputs:[{internalType:"uint256",name:"nativeAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"targetChainId",type:"uint16"},{internalType:"address",name:"token",type:"address"},{internalType:"uint8",name:"decimals",type:"uint8"}],name:"calculateRelayerFee",outputs:[{internalType:"uint256",name:"feeInTokenDenomination",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"chainId_",type:"uint16"}],name:"cancelOwnershipTransferRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"chainId",outputs:[{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"encodedTransferMessage",type:"bytes"}],name:"completeTransferWithRelay",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"confirmOwnershipTransferRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"decodeTransferWithRelay",outputs:[{components:[{internalType:"uint8",name:"payloadId",type:"uint8"},{internalType:"uint256",name:"targetRelayerFee",type:"uint256"},{internalType:"uint256",name:"toNativeTokenAmount",type:"uint256"},{internalType:"bytes32",name:"targetRecipient",type:"bytes32"}],internalType:"struct TokenBridgeRelayerStructs.TransferWithRelay",name:"transfer",type:"tuple"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint8",name:"decimals",type:"uint8"}],name:"denormalizeAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint16",name:"chainId_",type:"uint16"},{internalType:"address",name:"token",type:"address"}],name:"deregisterToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint8",name:"payloadId",type:"uint8"},{internalType:"uint256",name:"targetRelayerFee",type:"uint256"},{internalType:"uint256",name:"toNativeTokenAmount",type:"uint256"},{internalType:"bytes32",name:"targetRecipient",type:"bytes32"}],internalType:"struct TokenBridgeRelayerStructs.TransferWithRelay",name:"transfer",type:"tuple"}],name:"encodeTransferWithRelay",outputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"payload",type:"bytes"}],name:"fetchLocalAddressFromTransferMessage",outputs:[{internalType:"address",name:"localAddress",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAcceptedTokensList",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"emitterChainId",type:"uint16"}],name:"getRegisteredContract",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"isAcceptedToken",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"maxNativeSwapAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"nativeSwapRate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint8",name:"decimals",type:"uint8"}],name:"normalizeAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingOwner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"chainId_",type:"uint16"},{internalType:"bytes32",name:"contractAddress",type:"bytes32"}],name:"registerContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"chainId_",type:"uint16"},{internalType:"address",name:"token",type:"address"}],name:"registerToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"chainId_",type:"uint16"}],name:"relayerFee",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"relayerFeePrecision",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"chainId_",type:"uint16"},{internalType:"address",name:"newOwner",type:"address"}],name:"submitOwnershipTransferRequest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"swapRate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"swapRatePrecision",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"tokenBridge",outputs:[{internalType:"contract ITokenBridge",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"toNativeTokenAmount",type:"uint256"},{internalType:"uint16",name:"targetChain",type:"uint16"},{internalType:"bytes32",name:"targetRecipient",type:"bytes32"},{internalType:"uint32",name:"batchId",type:"uint32"}],name:"transferTokensWithRelay",outputs:[{internalType:"uint64",name:"messageSequence",type:"uint64"}],stateMutability:"payable",type:"function"},{inputs:[],name:"unwrapWeth",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"chainId_",type:"uint16"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"maxAmount",type:"uint256"}],name:"updateMaxNativeSwapAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"chainId_",type:"uint16"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"updateRelayerFee",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"chainId_",type:"uint16"},{internalType:"uint256",name:"relayerFeePrecision_",type:"uint256"}],name:"updateRelayerFeePrecision",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"chainId_",type:"uint16"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"swapRate",type:"uint256"}],name:"updateSwapRate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"chainId_",type:"uint16"},{internalType:"uint256",name:"swapRatePrecision_",type:"uint256"}],name:"updateSwapRatePrecision",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"chainId_",type:"uint16"},{internalType:"bool",name:"unwrapWeth_",type:"bool"}],name:"updateUnwrapWethFlag",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"wormhole",outputs:[{internalType:"contract IWormhole",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"toNativeTokenAmount",type:"uint256"},{internalType:"uint16",name:"targetChain",type:"uint16"},{internalType:"bytes32",name:"targetRecipient",type:"bytes32"},{internalType:"uint32",name:"batchId",type:"uint32"}],name:"wrapAndTransferEthWithRelay",outputs:[{internalType:"uint64",name:"messageSequence",type:"uint64"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],l="0x60806040523480156200001157600080fd5b506040516200405538038062004055833981016040819052620000349162000260565b6001600d5561ffff8516620000825760405162461bcd60e51b815260206004820152600f60248201526e1a5b9d985b1a590818da185a5b9259608a1b60448201526064015b60405180910390fd5b6001600160a01b038416620000da5760405162461bcd60e51b815260206004820152601860248201527f696e76616c696420776f726d686f6c6520616464726573730000000000000000604482015260640162000079565b6001600160a01b038316620001325760405162461bcd60e51b815260206004820152601c60248201527f696e76616c696420746f6b656e20627269646765206164647265737300000000604482015260640162000079565b6001600160a01b0382166200018a5760405162461bcd60e51b815260206004820152601460248201527f696e76616c696420776574682061646472657373000000000000000000000000604482015260640162000079565b600180546001600160a01b031916331790556000805461ffff191661ffff8716179055600380546001600160a01b0319166001600160a01b038616179055600480546001600160a01b0319166001600160a01b038516179055600080546301000000600160b81b03191663010000006001600160a01b038516021790556000805462ff0000191662010000831515021790556200022a6305f5e100600555565b620002386305f5e100600655565b5050505050620002e0565b80516001600160a01b03811681146200025b57600080fd5b919050565b600080600080600060a086880312156200027957600080fd5b855161ffff811681146200028c57600080fd5b94506200029c6020870162000243565b9350620002ac6040870162000243565b9250620002bc6060870162000243565b915060808601518015158114620002d257600080fd5b809150509295509295909350565b613d6580620002f06000396000f3fe6080604052600436106102345760003560e01c80637c9dec7a1161012e578063a2f32c8f116100ab578063cd601c781161006f578063cd601c781461071a578063df160d761461073a578063e30c39781461075c578063f23f82ef1461077a578063fff982a81461079a57600080fd5b8063a2f32c8f14610677578063ad5c464814610697578063b5419523146106bc578063c6328a46146106dc578063c9c22f9f146106fa57600080fd5b806390a1afaa116100f257806390a1afaa146105c957806394cc743d146105e95780639a8a0592146106095780639cf278cd1461062c5780639fe089ad1461064a57600080fd5b80637c9dec7a146104f75780638335572f1461054d57806384acd1bb1461056d5780638da5cb5b1461058b5780638e151dd1146105a957600080fd5b80632def3e16116101bc5780633d62cca0116101805780633d62cca014610440578063415828bf1461047157806351e2d7b5146104865780635b9cf0e1146104a657806366775a6b146104c657600080fd5b80632def3e16146103875780632efe4f42146103a75780632f25e25f146103dd57806339ba6611146103f05780633b6e750f1461041057600080fd5b806327105ab91161020357806327105ab9146102c657806328ded8e3146102e657806329ac8361146103065780632ca8008c146103195780632d77e8fe1461034f57600080fd5b8063016aa20514610240578063038c0b66146102625780631019d654146102775780631acdab4b146102a757600080fd5b3661023b57005b600080fd5b34801561024c57600080fd5b5061026061025b36600461313d565b6107ba565b005b34801561026e57600080fd5b50610260610884565b61028a610285366004613188565b610971565b6040516001600160401b0390911681526020015b60405180910390f35b3480156102b357600080fd5b506005545b60405190815260200161029e565b3480156102d257600080fd5b506102b86102e13660046131fe565b610ac3565b3480156102f257600080fd5b506102b86103013660046131fe565b610afd565b61028a610314366004613223565b610b2b565b34801561032557600080fd5b506102b861033436600461326d565b6001600160a01b031660009081526008602052604090205490565b34801561035b57600080fd5b5061036f61036a366004613365565b610d7b565b6040516001600160a01b03909116815260200161029e565b34801561039357600080fd5b506102606103a23660046133e4565b610e9b565b3480156103b357600080fd5b506102b86103c236600461326d565b6001600160a01b031660009081526009602052604090205490565b6102606103eb366004613410565b610f59565b3480156103fc57600080fd5b506102b861040b366004613481565b611210565b34801561041c57600080fd5b5061043061042b36600461326d565b6112c3565b604051901515815260200161029e565b34801561044c57600080fd5b506102b861045b3660046134cc565b61ffff1660009081526007602052604090205490565b34801561047d57600080fd5b506006546102b8565b34801561049257600080fd5b506102606104a13660046133e4565b6112e1565b3480156104b257600080fd5b506102606104c13660046133e4565b61140b565b3480156104d257600080fd5b506102b86104e13660046134cc565b61ffff166000908152600a602052604090205490565b34801561050357600080fd5b50610517610512366004613365565b611502565b60405161029e9190815160ff16815260208083015190820152604080830151908201526060918201519181019190915260800190565b34801561055957600080fd5b506102606105683660046134f7565b611633565b34801561057957600080fd5b506003546001600160a01b031661036f565b34801561059757600080fd5b506001546001600160a01b031661036f565b3480156105b557600080fd5b506102b86105c4366004613525565b6116ba565b3480156105d557600080fd5b506102606105e43660046133e4565b61179a565b3480156105f557600080fd5b5061026061060436600461313d565b611858565b34801561061557600080fd5b5060005460405161ffff909116815260200161029e565b34801561063857600080fd5b5060005462010000900460ff16610430565b34801561065657600080fd5b5061066a610665366004613543565b611924565b60405161029e9190613601565b34801561068357600080fd5b506102606106923660046134cc565b6119cf565b3480156106a357600080fd5b50600054630100000090046001600160a01b031661036f565b3480156106c857600080fd5b506102b86106d736600461326d565b611a46565b3480156106e857600080fd5b506004546001600160a01b031661036f565b34801561070657600080fd5b5061026061071536600461313d565b611ae0565b34801561072657600080fd5b506102b861073536600461326d565b611b9c565b34801561074657600080fd5b5061074f611c81565b60405161029e9190613614565b34801561076857600080fd5b506002546001600160a01b031661036f565b34801561078657600080fd5b50610260610795366004613661565b611ce6565b3480156107a657600080fd5b506102606107b5366004613661565b611e11565b336107cd6001546001600160a01b031690565b6001600160a01b0316146107fc5760405162461bcd60e51b81526004016107f3906136a2565b60405180910390fd5b818061ffff1661080f60005461ffff1690565b61ffff16146108305760405162461bcd60e51b81526004016107f3906136d0565b6001600160a01b0382166108765760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b60448201526064016107f3565b61087f82611ec5565b505050565b60006108986002546001600160a01b031690565b9050336001600160a01b038216146108f25760405162461bcd60e51b815260206004820152601b60248201527f63616c6c6572206d7573742062652070656e64696e674f776e6572000000000060448201526064016107f3565b60006109066001546001600160a01b031690565b600180546001600160a01b0319166001600160a01b038516179055905061092d600061206a565b816001600160a01b0316816001600160a01b03167f0d18b5fd22306e373229b9439188228edca81207d1667f604daf6cef8aa3ee6760405160405180910390a35050565b600061097b61208c565b600061098f6003546001600160a01b031690565b6001600160a01b0316631a90a2196040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109f091906136f5565b9050803414610a365760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742076616c756560701b60448201526064016107f3565b6000610a41896120e5565b9050610a56610a508983610ac3565b82610afd565b9750610a628989612187565b9750610aab6040518060c001604052808b6001600160a01b031681526020018360ff1681526020018a81526020018981526020018861ffff1681526020018781525085846121bd565b92505050610ab96001600d55565b9695505050505050565b600060088260ff161115610af457610adc600883613724565b610ae790600a613821565b610af19084613830565b92505b50815b92915050565b600060088260ff161115610af457610b16600883613724565b610b2190600a613821565b610af19084613852565b6000805462010000900460ff16610b845760405162461bcd60e51b815260206004820181905260248201527f574554482066756e6374696f6e616c697479206e6f7420737570706f7274656460448201526064016107f3565b6000610b986003546001600160a01b031690565b6001600160a01b0316631a90a2196040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bd5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bf991906136f5565b9050803411610c3f5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742076616c756560701b60448201526064016107f3565b6000610c4b8234613869565b90506000610c64610c5d836012610ac3565b6012610afd565b610c6e9083613869565b90508015610ca557604051339082156108fc029083906000818181858888f19350505050158015610ca3573d6000803e3d6000fd5b505b6000610cb18284613869565b90506000610ccf6000546001600160a01b0363010000009091041690565b9050806001600160a01b031663d0e30db0836040518263ffffffff1660e01b81526004016000604051808303818588803b158015610d0c57600080fd5b505af1158015610d20573d6000803e3d6000fd5b5050505050610d6d6040518060c00160405280836001600160a01b03168152602001601260ff1681526020018481526020018c81526020018b61ffff1681526020018a81525088876121bd565b9a9950505050505050505050565b600080610d898360216124d7565b90506000610d98846041612535565b9050610da760005461ffff1690565b61ffff168161ffff1614610e88576004546001600160a01b0316604051630ff8f14360e11b815261ffff83166004820152602481018490526001600160a01b039190911690631ff1e28690604401602060405180830381865afa158015610e12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e36919061387c565b92506001600160a01b038316610e835760405162461bcd60e51b81526020600482015260126024820152711d1bdad95b881b9bdd08185d1d195cdd195960721b60448201526064016107f3565b610e94565b610e9182612592565b92505b5050919050565b33610eae6001546001600160a01b031690565b6001600160a01b031614610ed45760405162461bcd60e51b81526004016107f3906136a2565b818061ffff16610ee760005461ffff1690565b61ffff1614610f085760405162461bcd60e51b81526004016107f3906136d0565b60008211610f505760405162461bcd60e51b81526020600482015260156024820152740707265636973696f6e206d757374206265203e203605c1b60448201526064016107f3565b61087f82600555565b6000806000610f9d85858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506125e692505050565b9250925092506000610fae84611502565b90506000610fbf8260600151612592565b90506000610fd660005460ff620100009091041690565b90506001600160a01b0382163303610ffe57610ff4848387846128c2565b5050505050505050565b6000611009856120e5565b9050611019846020015182610afd565b6020850152600054630100000090046001600160a01b03166001600160a01b0316856001600160a01b0316036110645761105986848660200151856129ec565b505050505050505050565b6040840151156111c75761107c846040015182610afd565b604085015260008061108d87611b9c565b905080866040015111156110a357604086018190525b6110b18787604001516116ba565b9150811561118957813410156111095760405162461bcd60e51b815260206004820181905260248201527f696e73756666696369656e74206e617469766520617373657420616d6f756e7460448201526064016107f3565b60006111158334613869565b9050801561114c57604051339082156108fc029083906000818181858888f1935050505015801561114a573d6000803e3d6000fd5b505b6040516001600160a01b0387169084156108fc029085906000818181858888f19350505050158015611182573d6000803e3d6000fd5b50506111c4565b6000604087015234156111c45760405133903480156108fc02916000818181858888f193505050501580156111c2573d6000803e3d6000fd5b505b50505b6000846040015185602001516111dd9190613899565b905080156111f0576111f0863383612b44565b61120486856111ff848b613869565b612b44565b50505050505050505050565b6001600160a01b0382166000908152600860205260408120548060000361126d5760405162461bcd60e51b81526020600482015260116024820152701cddd85c081c985d19481b9bdd081cd95d607a1b60448201526064016107f3565b60065461127a9082613852565b60055461ffff87166000908152600a602052604090205461129c86600a613821565b6112a69190613852565b6112b09190613852565b6112ba9190613830565b95945050505050565b6001600160a01b03166000908152600b602052604090205460ff1690565b336112f46001546001600160a01b031690565b6001600160a01b03161461131a5760405162461bcd60e51b81526004016107f3906136a2565b806113775760405162461bcd60e51b815260206004820152602760248201527f636f6e7472616374416464726573732063616e6e6f7420657175616c206279746044820152666573333228302960c81b60648201526084016107f3565b61ffff821615801590611393575060005461ffff838116911614155b6113ef5760405162461bcd60e51b815260206004820152602760248201527f636861696e49645f2063616e6e6f7420657175616c2030206f7220746869732060448201526618da185a5b925960ca1b60648201526084016107f3565b61ffff91909116600090815260076020526040902055565b5050565b3361141e6001546001600160a01b031690565b6001600160a01b0316146114445760405162461bcd60e51b81526004016107f3906136a2565b60005461ffff1661ffff168261ffff16036114915760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b21031b430b4b760991b60448201526064016107f3565b61ffff82166000908152600760205260409020546114ea5760405162461bcd60e51b815260206004820152601660248201527518dbdb9d1c9858dd08191bd95cdb89dd08195e1a5cdd60521b60448201526064016107f3565b61ffff919091166000908152600a6020526040902055565b6040805160808101825260008082526020820181905291810182905260608101829052906115308382612ba7565b60ff168252611540600182613899565b9050816000015160ff1660011461158d5760405162461bcd60e51b81526020600482015260116024820152701a5b9d985b1a59081c185e5b1bd8591259607a1b60448201526064016107f3565b6115978382612c03565b6020808401919091526115aa9082613899565b90506115b68382612c03565b60408301526115c6602082613899565b90506115d283826124d7565b60608301526115e2602082613899565b90508251811461162d5760405162461bcd60e51b81526020600482015260166024820152750d2dcecc2d8d2c840dacae6e6c2ceca40d8cadccee8d60531b60448201526064016107f3565b50919050565b336116466001546001600160a01b031690565b6001600160a01b03161461166c5760405162461bcd60e51b81526004016107f3906136a2565b818061ffff1661167f60005461ffff1690565b61ffff16146116a05760405162461bcd60e51b81526004016107f3906136d0565b6000805462ff000019166201000084151502179055505050565b6000806116c6846120e5565b905060006116ec6116e76000546001600160a01b0363010000009091041690565b6120e5565b90508060ff168260ff161115611749576117068183613724565b61171190600a613821565b61171a86611a46565b6117249190613852565b8461172e60055490565b6117389190613852565b6117429190613830565b9250611792565b61175285611a46565b61175c8383613724565b61176790600a613821565b8561177160055490565b61177b9190613852565b6117859190613852565b61178f9190613830565b92505b505092915050565b336117ad6001546001600160a01b031690565b6001600160a01b0316146117d35760405162461bcd60e51b81526004016107f3906136a2565b818061ffff166117e660005461ffff1690565b61ffff16146118075760405162461bcd60e51b81526004016107f3906136d0565b6000821161184f5760405162461bcd60e51b81526020600482015260156024820152740707265636973696f6e206d757374206265203e203605c1b60448201526064016107f3565b61087f82600655565b3361186b6001546001600160a01b031690565b6001600160a01b0316146118915760405162461bcd60e51b81526004016107f3906136a2565b818061ffff166118a460005461ffff1690565b61ffff16146118c55760405162461bcd60e51b81526004016107f3906136d0565b6001600160a01b03821661191b5760405162461bcd60e51b815260206004820181905260248201527f6e65774f776e65722063616e6e6f7420657175616c206164647265737328302960448201526064016107f3565b61087f8261206a565b6060816000015160ff166001146119715760405162461bcd60e51b81526020600482015260116024820152701a5b9d985b1a59081c185e5b1bd8591259607a1b60448201526064016107f3565b8151602080840151604080860151606087015191516119b995949192910160f89490941b6001600160f81b031916845260018401929092526021830152604182015260610190565b6040516020818303038152906040529050919050565b336119e26001546001600160a01b031690565b6001600160a01b031614611a085760405162461bcd60e51b81526004016107f3906136a2565b808061ffff16611a1b60005461ffff1690565b61ffff1614611a3c5760405162461bcd60e51b81526004016107f3906136d0565b611407600061206a565b600080546001600160a01b0363010000009091048116825260086020526040808320549184168352822054600082118015611a815750600081115b611ac15760405162461bcd60e51b81526020600482015260116024820152701cddd85c081c985d19481b9bdd081cd95d607a1b60448201526064016107f3565b8082611acc60055490565b611ad69190613852565b610e919190613830565b33611af36001546001600160a01b031690565b6001600160a01b031614611b195760405162461bcd60e51b81526004016107f3906136a2565b818061ffff16611b2c60005461ffff1690565b61ffff1614611b4d5760405162461bcd60e51b81526004016107f3906136d0565b6001600160a01b038216611b935760405162461bcd60e51b815260206004820152600d60248201526c34b73b30b634b2103a37b5b2b760991b60448201526064016107f3565b61087f82612c58565b600080611ba8836120e5565b90506000611bc96116e76000546001600160a01b0363010000009091041690565b90508060ff168260ff161115611c3857600554611be68284613724565b611bf190600a613821565b611bfa86611a46565b6001600160a01b038716600090815260096020526040902054611c1d9190613852565b611c279190613852565b611c319190613830565b9250610e94565b600554611c458383613724565b611c5090600a613821565b611c5a9190613852565b611c6385611a46565b6001600160a01b038616600090815260096020526040902054611acc565b60606000600c01805480602002602001604051908101604052809291908181526020018280548015611cdc57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311611cbe575b5050505050905090565b33611cf96001546001600160a01b031690565b6001600160a01b031614611d1f5760405162461bcd60e51b81526004016107f3906136a2565b828061ffff16611d3260005461ffff1690565b61ffff1614611d535760405162461bcd60e51b81526004016107f3906136d0565b611d5c836112c3565b611d785760405162461bcd60e51b81526004016107f3906138ac565b60008211611dc85760405162461bcd60e51b815260206004820152601960248201527f737761702072617465206d757374206265206e6f6e7a65726f0000000000000060448201526064016107f3565b6001600160a01b038316600081815260086020526040808220859055518492917fc6eb9fb936b61b402d503deeffc822f46492e15c2c8f079815cc4850ad7b02b091a350505050565b33611e246001546001600160a01b031690565b6001600160a01b031614611e4a5760405162461bcd60e51b81526004016107f3906136a2565b828061ffff16611e5d60005461ffff1690565b61ffff1614611e7e5760405162461bcd60e51b81526004016107f3906136d0565b611e87836112c3565b611ea35760405162461bcd60e51b81526004016107f3906138ac565b6001600160a01b03831660009081526009602052604090208290555b50505050565b6001600160a01b0381166000908152600b602052604090205460ff16611f245760405162461bcd60e51b81526020600482015260146024820152731d1bdad95b881b9bdd081c9959da5cdd195c995960621b60448201526064016107f3565b6001600160a01b0381166000908152600b60209081526040808320805460ff191690556008825280832083905560099091528120819055600c54905b81811015611faa57826001600160a01b03166000600c018281548110611f8857611f886138d8565b6000918252602090912001546001600160a01b031614611faa57600101611f60565b81811461087f57600182111561203257600c611fc7600184613869565b81548110611fd757611fd76138d8565b600091825260209091200154600c80546001600160a01b039092169183908110612003576120036138d8565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b031602179055505b600c805480612043576120436138ee565b600082815260209020810160001990810180546001600160a01b0319169055019055505050565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6002600d54036120de5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107f3565b6002600d55565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b179052905160009182916001600160a01b0385169161212891613904565b600060405180830381855afa9150503d8060008114612163576040519150601f19603f3d011682016040523d82523d6000602084013e612168565b606091505b50915050808060200190518101906121809190613930565b9392505050565b60008061219384612d27565b90506121a184333086612dd3565b806121ab85612d27565b6121b59190613869565b949350505050565b60006121cc84600001516112c3565b6121e85760405162461bcd60e51b81526004016107f3906138ac565b60a08401516122455760405162461bcd60e51b8152602060048201526024808201527f746172676574526563697069656e742063616e6e6f74206265206279746573336044820152633228302960e01b60648201526084016107f3565b600061225985604001518660200151610ac3565b9050600081116122ab5760405162461bcd60e51b815260206004820152601d60248201527f6e6f726d616c697a656420616d6f756e74206d757374206265203e203000000060448201526064016107f3565b60006122bf86606001518760200151610ac3565b90508560600151600014806122d45750600081115b6123205760405162461bcd60e51b815260206004820152601b60248201527f696e76616c696420746f4e6174697665546f6b656e416d6f756e74000000000060448201526064016107f3565b608086015161ffff166000908152600760205260409020548061237d5760405162461bcd60e51b81526020600482015260156024820152741d185c99d95d081b9bdd081c9959da5cdd195c9959605a1b60448201526064016107f3565b60006123a361239989608001518a600001518b60200151611210565b8960200151610ac3565b90506123af8382613899565b84116123f35760405162461bcd60e51b81526020600482015260136024820152721a5b9cdd59999a58da595b9d08185b5bdd5b9d606a1b60448201526064016107f3565b60006124266040518060800160405280600160ff1681526020018481526020018681526020018b60a00151815250611924565b9050600061243c6004546001600160a01b031690565b90506124518a60000151828c60400151612e0b565b806001600160a01b031663c5a5ebda898c600001518d604001518e60800151898f896040518863ffffffff1660e01b81526004016124949695949392919061394d565b60206040518083038185885af11580156124b2573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610d6d91906139b3565b60006124e4826020613899565b8351101561252c5760405162461bcd60e51b8152602060048201526015602482015274746f427974657333325f6f75744f66426f756e647360581b60448201526064016107f3565b50016020015190565b6000612542826002613899565b835110156125895760405162461bcd60e51b8152602060048201526014602482015273746f55696e7431365f6f75744f66426f756e647360601b60448201526064016107f3565b50016002015190565b60006001600160a01b03198216156125e25760405162461bcd60e51b8152602060048201526013602482015272696e76616c69642045564d206164647265737360681b60448201526064016107f3565b5090565b606060008060006125ff6003546001600160a01b031690565b6001600160a01b031663a9e11893866040518263ffffffff1660e01b815260040161262a9190613601565b600060405180830381865afa158015612647573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405261266f9190810190613af2565b905060006126808260e00151610d7b565b905061268b816112c3565b6126ce5760405162461bcd60e51b81526020600482015260146024820152731d1bdad95b881b9bdd081c9959da5cdd195c995960621b60448201526064016107f3565b60006126d982612d27565b905060006126ef6004546001600160a01b031690565b90506000816001600160a01b031663c3f511c18a6040518263ffffffff1660e01b815260040161271f9190613601565b6000604051808303816000875af115801561273e573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526127669190810190613c16565b905060008361277486612d27565b61277e9190613869565b90506000836001600160a01b031663ea63738d846040518263ffffffff1660e01b81526004016127ae9190613601565b600060405180830381865afa1580156127cb573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526127f39190810190613c4a565b9050612813876060015161ffff1660009081526007602052604090205490565b8160c00151146128655760405162461bcd60e51b815260206004820152601760248201527f636f6e7472616374206e6f74207265676973746572656400000000000000000060448201526064016107f3565b8660a001516001600160401b03168760800151886060015161ffff167fcaf280c8cfeba144da67230d9b009c8f868a75bac9a528fa0474be1ba317c16960405160405180910390a460e001519a9099509397509295505050505050565b341561291c5760405162461bcd60e51b815260206004820152602360248201527f726563697069656e742063616e6e6f742073776170206e61746976652061737360448201526265747360e81b60648201526084016107f3565b6000546001600160a01b03630100000090910481169085168114801561293f5750815b156129da57604051632e1a7d4d60e01b8152600481018490526001600160a01b03821690632e1a7d4d90602401600060405180830381600087803b15801561298657600080fd5b505af115801561299a573d6000803e3d6000fd5b50506040516001600160a01b038716925085156108fc02915085906000818181858888f193505050501580156129d4573d6000803e3d6000fd5b506129e5565b6129e5858585612b44565b5050505050565b3415612a2f5760405162461bcd60e51b815260206004820152601260248201527176616c7565206d757374206265207a65726f60701b60448201526064016107f3565b8015612b1557600054604051632e1a7d4d60e01b81526004810186905263010000009091046001600160a01b031690632e1a7d4d90602401600060405180830381600087803b158015612a8157600080fd5b505af1158015612a95573d6000803e3d6000fd5b50505050826001600160a01b03166108fc8386612ab29190613869565b6040518115909202916000818181858888f19350505050158015612ada573d6000803e3d6000fd5b508115612b1057604051339083156108fc029084906000818181858888f19350505050158015612b0e573d6000803e3d6000fd5b505b611ebf565b600054630100000090046001600160a01b0316612b3781856111ff8689613869565b82156129e5576129e58133855b6040516001600160a01b03831660248201526044810182905261087f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152612f20565b6000612bb4826001613899565b83511015612bfa5760405162461bcd60e51b8152602060048201526013602482015272746f55696e74385f6f75744f66426f756e647360681b60448201526064016107f3565b50016001015190565b6000612c10826020613899565b8351101561252c5760405162461bcd60e51b8152602060048201526015602482015274746f55696e743235365f6f75744f66426f756e647360581b60448201526064016107f3565b6001600160a01b0381166000908152600b602052604090205460ff1615612cc15760405162461bcd60e51b815260206004820152601860248201527f746f6b656e20616c72656164792072656769737465726564000000000000000060448201526064016107f3565b6001600160a01b03166000818152600b60205260408120805460ff19166001908117909155600c805491820181559091527fdf6966c971051c3d54ec59162606531493a51404a002842f56009d7e5cf4a8c70180546001600160a01b0319169091179055565b604080513060248083019190915282518083039091018152604490910182526020810180516001600160e01b03166370a0823160e01b179052905160009182916001600160a01b03851691612d7b91613904565b600060405180830381855afa9150503d8060008114612db6576040519150601f19603f3d011682016040523d82523d6000602084013e612dbb565b606091505b509150508080602001905181019061218091906136f5565b6040516001600160a01b0380851660248301528316604482015260648101829052611ebf9085906323b872dd60e01b90608401612b70565b801580612e855750604051636eb1769f60e11b81523060048201526001600160a01b03838116602483015284169063dd62ed3e90604401602060405180830381865afa158015612e5f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e8391906136f5565b155b612ef05760405162461bcd60e51b815260206004820152603660248201527f5361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f60448201527520746f206e6f6e2d7a65726f20616c6c6f77616e636560501b60648201526084016107f3565b6040516001600160a01b03831660248201526044810182905261087f90849063095ea7b360e01b90606401612b70565b6000612f75826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612ff29092919063ffffffff16565b80519091501561087f5780806020019051810190612f939190613d12565b61087f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016107f3565b60606121b5848460008585600080866001600160a01b031685876040516130199190613904565b60006040518083038185875af1925050503d8060008114613056576040519150601f19603f3d011682016040523d82523d6000602084013e61305b565b606091505b509150915061306c87838387613077565b979650505050505050565b606083156130e65782516000036130df576001600160a01b0385163b6130df5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016107f3565b50816121b5565b6121b583838151156130fb5781518083602001fd5b8060405162461bcd60e51b81526004016107f39190613601565b61ffff8116811461312557600080fd5b50565b6001600160a01b038116811461312557600080fd5b6000806040838503121561315057600080fd5b823561315b81613115565b9150602083013561316b81613128565b809150509250929050565b63ffffffff8116811461312557600080fd5b60008060008060008060c087890312156131a157600080fd5b86356131ac81613128565b9550602087013594506040870135935060608701356131ca81613115565b92506080870135915060a08701356131e181613176565b809150509295509295509295565b60ff8116811461312557600080fd5b6000806040838503121561321157600080fd5b82359150602083013561316b816131ef565b6000806000806080858703121561323957600080fd5b84359350602085013561324b81613115565b925060408501359150606085013561326281613176565b939692955090935050565b60006020828403121561327f57600080fd5b813561218081613128565b634e487b7160e01b600052604160045260246000fd5b604051608081016001600160401b03811182821017156132c2576132c261328a565b60405290565b60405161016081016001600160401b03811182821017156132c2576132c261328a565b60405161010081016001600160401b03811182821017156132c2576132c261328a565b604051601f8201601f191681016001600160401b03811182821017156133365761333661328a565b604052919050565b60006001600160401b038211156133575761335761328a565b50601f01601f191660200190565b60006020828403121561337757600080fd5b81356001600160401b0381111561338d57600080fd5b8201601f8101841361339e57600080fd5b80356133b16133ac8261333e565b61330e565b8181528560208385010111156133c657600080fd5b81602084016020830137600091810160200191909152949350505050565b600080604083850312156133f757600080fd5b823561340281613115565b946020939093013593505050565b6000806020838503121561342357600080fd5b82356001600160401b038082111561343a57600080fd5b818501915085601f83011261344e57600080fd5b81358181111561345d57600080fd5b86602082850101111561346f57600080fd5b60209290920196919550909350505050565b60008060006060848603121561349657600080fd5b83356134a181613115565b925060208401356134b181613128565b915060408401356134c1816131ef565b809150509250925092565b6000602082840312156134de57600080fd5b813561218081613115565b801515811461312557600080fd5b6000806040838503121561350a57600080fd5b823561351581613115565b9150602083013561316b816134e9565b6000806040838503121561353857600080fd5b823561340281613128565b60006080828403121561355557600080fd5b604051608081018181106001600160401b03821117156135775761357761328a565b6040528235613585816131ef565b808252506020830135602082015260408301356040820152606083013560608201528091505092915050565b60005b838110156135cc5781810151838201526020016135b4565b50506000910152565b600081518084526135ed8160208601602086016135b1565b601f01601f19169290920160200192915050565b60208152600061218060208301846135d5565b6020808252825182820181905260009190848201906040850190845b818110156136555783516001600160a01b031683529284019291840191600101613630565b50909695505050505050565b60008060006060848603121561367657600080fd5b833561368181613115565b9250602084013561369181613128565b929592945050506040919091013590565b60208082526014908201527331b0b63632b9103737ba103a34329037bbb732b960611b604082015260600190565b6020808252600b908201526a3bb937b7339031b430b4b760a91b604082015260600190565b60006020828403121561370757600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b60ff8281168282160390811115610af757610af761370e565b600181815b8085111561377857816000190482111561375e5761375e61370e565b8085161561376b57918102915b93841c9390800290613742565b509250929050565b60008261378f57506001610af7565b8161379c57506000610af7565b81600181146137b257600281146137bc576137d8565b6001915050610af7565b60ff8411156137cd576137cd61370e565b50506001821b610af7565b5060208310610133831016604e8410600b84101617156137fb575081810a610af7565b613805838361373d565b80600019048211156138195761381961370e565b029392505050565b600061218060ff841683613780565b60008261384d57634e487b7160e01b600052601260045260246000fd5b500490565b8082028115828204841417610af757610af761370e565b81810381811115610af757610af761370e565b60006020828403121561388e57600080fd5b815161218081613128565b80820180821115610af757610af761370e565b6020808252601290820152711d1bdad95b881b9bdd081858d8d95c1d195960721b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b600082516139168184602087016135b1565b9190910192915050565b805161392b816131ef565b919050565b60006020828403121561394257600080fd5b8151612180816131ef565b60018060a01b038716815285602082015261ffff8516604082015283606082015263ffffffff8316608082015260c060a0820152600061399060c08301846135d5565b98975050505050505050565b80516001600160401b038116811461392b57600080fd5b6000602082840312156139c557600080fd5b6121808261399c565b805161392b81613176565b805161392b81613115565b600082601f8301126139f557600080fd5b8151613a036133ac8261333e565b818152846020838601011115613a1857600080fd5b6121b58260208301602087016135b1565b600082601f830112613a3a57600080fd5b815160206001600160401b03821115613a5557613a5561328a565b613a63818360051b0161330e565b82815260079290921b84018101918181019086841115613a8257600080fd5b8286015b84811015613ae75760808189031215613a9f5760008081fd5b613aa76132a0565b815181528482015185820152604080830151613ac2816131ef565b90820152606082810151613ad5816131ef565b90820152835291830191608001613a86565b509695505050505050565b600060208284031215613b0457600080fd5b81516001600160401b0380821115613b1b57600080fd5b908301906101608286031215613b3057600080fd5b613b386132c8565b613b4183613920565b8152613b4f602084016139ce565b6020820152613b60604084016139ce565b6040820152613b71606084016139d9565b606082015260808301516080820152613b8c60a0840161399c565b60a0820152613b9d60c08401613920565b60c082015260e083015182811115613bb457600080fd5b613bc0878286016139e4565b60e083015250610100613bd48185016139ce565b908201526101208381015183811115613bec57600080fd5b613bf888828701613a29565b91830191909152506101409283015192810192909252509392505050565b600060208284031215613c2857600080fd5b81516001600160401b03811115613c3e57600080fd5b6121b5848285016139e4565b600060208284031215613c5c57600080fd5b81516001600160401b0380821115613c7357600080fd5b908301906101008286031215613c8857600080fd5b613c906132eb565b613c9983613920565b81526020830151602082015260408301516040820152613cbb606084016139d9565b606082015260808301516080820152613cd660a084016139d9565b60a082015260c083015160c082015260e083015182811115613cf757600080fd5b613d03878286016139e4565b60e08301525095945050505050565b600060208284031215613d2457600080fd5b8151612180816134e956fea26469706673582212209cd7aa4e5402ef26381db379010320443521d1fc3a9c4d8d8892f083982ed25164736f6c63430008110033",p=function(e){c(n,e);var t=u(n);function n(){var e;r(this,n);for(var a=arguments.length,o=new Array(a),s=0;s1?t.call.apply(t,[this].concat(o)):t.call(this,d,l,o[0]),i(e)}return a(n,[{key:"deploy",value:function(e,t,r,a,i,c){return o(s(n.prototype),"deploy",this).call(this,e,t,r,a,i,c||{})}},{key:"getDeployTransaction",value:function(e,t,r,a,i,c){return o(s(n.prototype),"getDeployTransaction",this).call(this,e,t,r,a,i,c||{})}},{key:"attach",value:function(e){return o(s(n.prototype),"attach",this).call(this,e)}},{key:"connect",value:function(e){return o(s(n.prototype),"connect",this).call(this,e)}}],[{key:"createInterface",value:function(){return new f.utils.Interface(d)}},{key:"connect",value:function(e,t){return new f.Contract(e,d,t)}}]),n}(f.ContractFactory);t.TokenBridgeRelayer__factory=p,p.bytecode=l,p.abi=d},79948:function(e,t,n){"use strict";var r=n(62503).default;Object.defineProperty(t,"__esModule",{value:!0}),t.MAINNET_CHAINS=void 0;var a=n(71258),i=n(70246);t.MAINNET_CHAINS={solana:1,ethereum:2,bsc:4,polygon:5,avalanche:6,fantom:10,celo:14,moonbeam:16};var o={env:"MAINNET",rpcs:{ethereum:"https://rpc.ankr.com/eth",solana:"https://api.mainnet-beta.solana.com",polygon:"https://rpc.ankr.com/polygon",bsc:"https://bscrpc.com",avalanche:"https://rpc.ankr.com/avalanche",fantom:"https://rpc.ankr.com/fantom",celo:"https://rpc.ankr.com/celo",moonbeam:"https://rpc.ankr.com/moonbeam"},chains:{ethereum:{key:"ethereum",id:2,context:i.Context.ETH,contracts:r(r({},a.CONTRACTS.MAINNET.ethereum),{},{relayer:"0x461a8878060aa45fa685732bff654ca1fdef2830"}),finalityThreshold:15},solana:{key:"solana",id:1,context:i.Context.SOLANA,contracts:a.CONTRACTS.MAINNET.solana,finalityThreshold:32},polygon:{key:"polygon",id:5,context:i.Context.ETH,contracts:r(r({},a.CONTRACTS.MAINNET.polygon),{},{relayer:"0x461a8878060aa45fa685732bff654ca1fdef2830"}),finalityThreshold:512},bsc:{key:"bsc",id:4,context:i.Context.ETH,contracts:r(r({},a.CONTRACTS.MAINNET.bsc),{},{relayer:"0x461a8878060aa45fa685732bff654ca1fdef2830"}),finalityThreshold:15},avalanche:{key:"avalanche",id:6,context:i.Context.ETH,contracts:r(r({},a.CONTRACTS.MAINNET.avalanche),{},{relayer:"0x461a8878060aa45fa685732bff654ca1fdef2830"}),finalityThreshold:15},fantom:{key:"fantom",id:10,context:i.Context.ETH,contracts:r(r({},a.CONTRACTS.MAINNET.fantom),{},{relayer:"0x461a8878060aa45fa685732bff654ca1fdef2830"}),finalityThreshold:1},celo:{key:"celo",id:14,context:i.Context.ETH,contracts:r(r({},a.CONTRACTS.MAINNET.celo),{},{relayer:"0x461a8878060aa45fa685732bff654ca1fdef2830"}),finalityThreshold:1},moonbeam:{key:"moonbeam",id:16,context:i.Context.ETH,contracts:r(r({},a.CONTRACTS.MAINNET.moonbeam),{},{relayer:"0x461a8878060aa45fa685732bff654ca1fdef2830"}),finalityThreshold:1}}};t.default=o},46643:function(e,t,n){"use strict";var r=n(62503).default;Object.defineProperty(t,"__esModule",{value:!0}),t.TESTNET_CHAINS=void 0;var a=n(71258),i=n(70246);t.TESTNET_CHAINS={solana:1,goerli:2,bsc:4,mumbai:5,fuji:6,fantom:10,alfajores:14,moonbasealpha:16};var o={env:"TESTNET",rpcs:{goerli:"https://rpc.ankr.com/eth_goerli",mumbai:"https://polygon-mumbai.blockpi.network/v1/rpc/public",bsc:"https://data-seed-prebsc-1-s3.binance.org:8545",fuji:"https://api.avax-test.network/ext/bc/C/rpc",fantom:"https://rpc.ankr.com/fantom_testnet",alfajores:"https://alfajores-forno.celo-testnet.org",solana:"https://api.testnet.solana.com",moonbasealpha:"https://rpc.api.moonbase.moonbeam.network"},chains:{goerli:{key:"goerli",id:2,context:i.Context.ETH,contracts:r(r({},a.CONTRACTS.TESTNET.ethereum),{},{relayer:"0xe32b14c48e4b7c6825b855f231786fe5ba9ce014"}),finalityThreshold:15},solana:{key:"solana",id:1,context:i.Context.SOLANA,contracts:r({},a.CONTRACTS.TESTNET.solana),finalityThreshold:32},mumbai:{key:"mumbai",id:5,context:i.Context.ETH,contracts:r(r({},a.CONTRACTS.TESTNET.polygon),{},{relayer:"0x953a2342496b15d69dec25c8e62274995e82d243"}),finalityThreshold:64},bsc:{key:"bsc",id:4,context:i.Context.ETH,contracts:r(r({},a.CONTRACTS.TESTNET.bsc),{},{relayer:"0x49a401f7fa594bc618a7a39b316b78e329620103"}),finalityThreshold:15},fuji:{key:"fuji",id:6,context:i.Context.ETH,contracts:r(r({},a.CONTRACTS.TESTNET.avalanche),{},{relayer:"0x8369839932222c1ca3bc7d16f970c56f61993a44"}),finalityThreshold:0},fantom:{key:"fantom",id:10,context:i.Context.ETH,contracts:r(r({},a.CONTRACTS.TESTNET.fantom),{},{relayer:"0x5122298f68341a088c5370d7678e13912e4ed378"}),finalityThreshold:1},alfajores:{key:"alfajores",id:14,context:i.Context.ETH,contracts:r(r({},a.CONTRACTS.TESTNET.celo),{},{relayer:"0x5c9da01cbf5088ee660b9701dc526c6e5df1c239"}),finalityThreshold:1},moonbasealpha:{key:"moonbasealpha",id:16,context:i.Context.ETH,contracts:r(r({},a.CONTRACTS.TESTNET.moonbeam),{},{relayer:"0xa098368aaadc0fdf3e309cda710d7a5f8bdeecd9"}),finalityThreshold:1}}};t.default=o},88585:function(e,t,n){"use strict";var r=n(51795).default,a=n(63298).default;Object.defineProperty(t,"__esModule",{value:!0}),t.ContractsAbstract=void 0;var i=r((function e(){a(this,e)}));t.ContractsAbstract=i},22617:function(e,t,n){"use strict";var r=n(51795).default,a=n(63298).default,i=n(17964).default,o=n(54790).default;Object.defineProperty(t,"__esModule",{value:!0}),t.RelayerAbstract=void 0;var s=function(e){i(n,e);var t=o(n);function n(){return a(this,n),t.apply(this,arguments)}return r(n)}(n(9977).TokenBridgeAbstract);t.RelayerAbstract=s},9977:function(e,t,n){"use strict";var r=n(51795).default,a=n(63298).default;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenBridgeAbstract=void 0;var i=r((function e(){a(this,e)}));t.TokenBridgeAbstract=i},81306:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(17964).default,o=n(54790).default;Object.defineProperty(t,"__esModule",{value:!0}),t.EthContracts=void 0;var s=n(71258),c=n(70246),u=n(31814),f=n(88585),d=n(36453),l=function(e){i(n,e);var t=o(n);function n(e){var a;return r(this,n),(a=t.call(this)).context=e,a._contracts=new Map,(0,d.filterByContext)(e.conf,c.Context.ETH).forEach((function(e){a._contracts.set(e.key,e.contracts)})),a}return a(n,[{key:"getContracts",value:function(e){var t=this.context.toChainName(e);return this._contracts.get(t)}},{key:"mustGetContracts",value:function(e){var t=this.context.toChainName(e),n=this._contracts.get(t);if(!n)throw new Error("no EVM contracts found for ".concat(e));return n}},{key:"getCore",value:function(e){var t=this.context.mustGetConnection(e),n=this.mustGetContracts(e).core;if(n)return s.ethers_contracts.Wormhole__factory.connect(n,t)}},{key:"mustGetCore",value:function(e){var t=this.getCore(e);if(!t)throw new Error("Core contract for domain ".concat(e," not found"));return t}},{key:"getBridge",value:function(e){var t=this.context.mustGetConnection(e),n=this.mustGetContracts(e).token_bridge;if(n)return s.ethers_contracts.Bridge__factory.connect(n,t)}},{key:"mustGetBridge",value:function(e){var t=this.getBridge(e);if(!t)throw new Error("Bridge contract for domain ".concat(e," not found"));return t}},{key:"getNftBridge",value:function(e){var t=this.context.mustGetConnection(e),n=this.mustGetContracts(e).nft_bridge;if(n)return s.ethers_contracts.NFTBridge__factory.connect(n,t)}},{key:"mustGetNftBridge",value:function(e){var t=this.getNftBridge(e);if(!t)throw new Error("NFT Bridge contract for domain ".concat(e," not found"));return t}},{key:"getTokenBridgeRelayer",value:function(e){var t=this.context.mustGetConnection(e),n=this.mustGetContracts(e).relayer;if(n)return u.TokenBridgeRelayer__factory.connect(n,t)}},{key:"mustGetTokenBridgeRelayer",value:function(e){var t=this.getTokenBridgeRelayer(e);if(!t)throw new Error("Token Bridge Relayer contract for domain ".concat(e," not found"));return t}}]),n}(f.ContractsAbstract);t.EthContracts=l},73642:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(62503).default,i=n(63333).default,o=n(37240).default,s=n(63298).default,c=n(51795).default,u=n(17964).default,f=n(54790).default;Object.defineProperty(t,"__esModule",{value:!0}),t.EthContext=void 0;var d=n(2772),l=n(71258),p=n(71283),b=n(71283),h=n(70246),y=n(81306),m=n(41072),v=function(e){u(N,e);var t,n,v,g,A,w,x,_,k,S,I,E,C,T,O,P,M,B,R=f(N);function N(e){var t;return s(this,N),(t=R.call(this)).context=e,t.contracts=new y.EthContracts(e),t}return c(N,[{key:"getForeignAsset",value:(B=o(i().mark((function e(t,n){var r,a,o,s,c,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.context.toChainId(n),a=this.context.toChainId(t.chain),r!==a){e.next=4;break}return e.abrupt("return",t.address);case 4:return o=this.contracts.mustGetBridge(n),s=this.context.getContext(t.chain),c=s.formatAddress(t.address),e.next=9,o.wrappedAsset(a,b.utils.arrayify(c));case 9:if((u=e.sent)!==p.constants.AddressZero){e.next=12;break}return e.abrupt("return",null);case 12:return e.abrupt("return",u);case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return B.apply(this,arguments)})},{key:"mustGetForeignAsset",value:(M=o(i().mark((function e(t,n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getForeignAsset(t,n);case 2:if(r=e.sent){e.next=5;break}throw new Error("token not registered");case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return M.apply(this,arguments)})},{key:"fetchTokenDecimals",value:(P=o(i().mark((function e(t,n){var r,a,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.context.mustGetProvider(n),a=d.TokenImplementation__factory.connect(t,r),e.next=4,a.decimals();case 4:return o=e.sent,e.abrupt("return",o);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return P.apply(this,arguments)})},{key:"getNativeBalance",value:(O=o(i().mark((function e(t,n){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.context.mustGetProvider(n),e.next=3,r.getBalance(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return O.apply(this,arguments)})},{key:"getTokenBalance",value:(T=o(i().mark((function e(t,n,r){var a,o,s,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getForeignAsset(n,r);case 2:if(a=e.sent){e.next=5;break}return e.abrupt("return",null);case 5:return o=this.context.mustGetProvider(r),s=d.TokenImplementation__factory.connect(a,o),e.next=9,s.balanceOf(t);case 9:return c=e.sent,e.abrupt("return",c);case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return T.apply(this,arguments)})},{key:"approve",value:(C=o(i().mark((function e(t,n,r,a,o){var s,c,u,f,l,b;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s=this.context.getSigner(t)){e.next=3;break}throw new Error("No signer for ".concat(t));case 3:return e.next=5,s.getAddress();case 5:if(c=e.sent,u=d.TokenImplementation__factory.connect(r,s)){e.next=9;break}throw new Error("token contract not available for ".concat(r));case 9:return e.next=11,u.allowance(c,n);case 11:if(f=e.sent,l=a||p.constants.MaxUint256,!f.lt(l)){e.next=19;break}return e.next=16,u.approve(n,l);case 16:return b=e.sent,e.next=19,b.wait();case 19:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a){return C.apply(this,arguments)})},{key:"prepareSend",value:(E=o(i().mark((function e(t,n,r,a,o,s){var c,u,f,d,b,y,m,v,g,A,w=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=w.length>6&&void 0!==w[6]?w[6]:0,u=this.context.getContext(o),f=this.context.toChainId(o),d=this.context.toChainName(r),b=p.ethers.BigNumber.from(n),y=this.contracts.mustGetBridge(r),m=s,1!==f){e.next=20;break}if(v=t,t!==h.NATIVE){e.next=16;break}return e.next=13,y.WETH();case 13:e.t0=e.sent,e.t1=d,v={address:e.t0,chain:e.t1};case 16:return e.next=18,u.getAssociatedTokenAddress(v,s);case 18:g=e.sent,m=g.toString();case 20:if(t!==h.NATIVE){e.next=26;break}return e.next=23,y.callStatic.wrapAndTransferETH(f,u.formatAddress(m),c,(0,l.createNonce)(),{gasLimit:25e4,value:b,from:a});case 23:return e.abrupt("return",y.populateTransaction.wrapAndTransferETH(f,u.formatAddress(m),c,(0,l.createNonce)(),{gasLimit:25e4,value:b}));case 26:return e.next=28,this.mustGetForeignAsset(t,r);case 28:return A=e.sent,e.next=31,y.callStatic.transferTokens(A,b,f,u.formatAddress(m),c,(0,l.createNonce)(),{gasLimit:25e4,from:a});case 31:return e.abrupt("return",y.populateTransaction.transferTokens(A,b,f,u.formatAddress(m),c,(0,l.createNonce)(),{gasLimit:25e4}));case 32:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i){return E.apply(this,arguments)})},{key:"send",value:(I=o(i().mark((function e(t,n,r,a,o,s){var c,u,f,d,l,b,y,m,v=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c=v.length>6&&void 0!==v[6]?v[6]:0,u=v.length>7?v[7]:void 0,f=this.context.getSigner(r)){e.next=5;break}throw new Error("No signer for ".concat(r));case 5:if(t===h.NATIVE){e.next=13;break}return d=p.ethers.BigNumber.from(n),l=this.contracts.mustGetBridge(r),e.next=10,this.mustGetForeignAsset(t,r);case 10:return b=e.sent,e.next=13,this.approve(r,l.address,b,d);case 13:return e.next=15,this.prepareSend(t,n,r,a,o,s,c,u);case 15:return y=e.sent,e.next=18,f.sendTransaction(y);case 18:return m=e.sent,e.next=21,m.wait();case 21:return e.abrupt("return",e.sent);case 22:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i){return I.apply(this,arguments)})},{key:"sendWithPayload",value:(S=o(i().mark((function e(t,n,r,o,s,c,u,f){var d,b,y,m,v,g,A;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d=this.context.getContext(s),b=this.context.toChainId(s),y=this.contracts.mustGetBridge(r),m=p.ethers.BigNumber.from(n),t!==h.NATIVE){e.next=13;break}return e.next=7,y.wrapAndTransferETHWithPayload(b,d.formatAddress(c),(0,l.createNonce)(),u,a(a({},f||{}),{},{value:m}));case 7:return v=e.sent,e.next=10,v.wait();case 10:case 23:return e.abrupt("return",e.sent);case 13:return e.next=15,this.mustGetForeignAsset(t,r);case 15:return g=e.sent,e.next=18,this.approve(r,y.address,g,m);case 18:return e.next=20,y.transferTokensWithPayload(d.parseAddress(g),m,b,d.formatAddress(c),(0,l.createNonce)(),u,f);case 20:return A=e.sent,e.next=23,A.wait();case 24:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i,o,s){return S.apply(this,arguments)})},{key:"prepareSendWithRelay",value:(k=o(i().mark((function e(t,n,r,a,o,s,c,u){var f,d,l,b,y,m;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p.ethers.utils.isAddress(c)){e.next=3;break}throw new Error("invalid recipient address: ".concat(c));case 3:if(f=this.context.getContext(s),d=this.context.toChainId(s),l=p.ethers.BigNumber.from(n),b=this.contracts.mustGetTokenBridgeRelayer(a),y=p.ethers.BigNumber.from(r),t!==h.NATIVE){e.next=12;break}return e.abrupt("return",b.populateTransaction.wrapAndTransferEthWithRelay(y,d,f.formatAddress(c),0,{gasLimit:3e5,value:l}));case 12:return e.next=14,this.mustGetForeignAsset(t,a);case 14:return m=e.sent,e.abrupt("return",b.populateTransaction.transferTokensWithRelay(this.parseAddress(m),l,y,d,f.formatAddress(c),0,{gasLimit:3e5}));case 16:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i,o,s){return k.apply(this,arguments)})},{key:"sendWithRelay",value:(_=o(i().mark((function e(t,n,r,a,o,s,c,u){var f,d,l,b,y,m;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f=this.context.getSigner(a)){e.next=3;break}throw new Error("No signer for ".concat(a));case 3:if(t===h.NATIVE){e.next=11;break}return d=p.ethers.BigNumber.from(n),l=this.contracts.mustGetTokenBridgeRelayer(a),e.next=8,this.mustGetForeignAsset(t,a);case 8:return b=e.sent,e.next=11,this.approve(a,l.address,b,d);case 11:return e.next=13,this.prepareSendWithRelay(t,n,r,a,o,s,c,u);case 13:return y=e.sent,e.next=16,f.sendTransaction(y);case 16:return m=e.sent,e.next=19,m.wait();case 19:return e.abrupt("return",e.sent);case 20:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i,o,s){return _.apply(this,arguments)})},{key:"prepareRedeem",value:(x=o(i().mark((function e(t,n){var r,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:{},a=this.contracts.mustGetBridge(t),e.next=4,a.callStatic.completeTransfer(n,r);case 4:return e.abrupt("return",a.populateTransaction.completeTransfer(n,r));case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return x.apply(this,arguments)})},{key:"redeem",value:(w=o(i().mark((function e(t,n){var r,a,o,s,c=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=c.length>2&&void 0!==c[2]?c[2]:{},a=this.context.getSigner(t)){e.next=4;break}throw new Error("No signer for ".concat(t));case 4:return e.next=6,this.prepareRedeem(t,n,r);case 6:return o=e.sent,e.next=9,a.sendTransaction(o);case 9:return s=e.sent,e.next=12,s.wait();case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return w.apply(this,arguments)})},{key:"calculateMaxSwapAmount",value:(A=o(i().mark((function e(t,n){var r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.contracts.mustGetTokenBridgeRelayer(t),e.next=3,this.mustGetForeignAsset(n,t);case 3:return a=e.sent,e.next=6,r.calculateMaxSwapAmountIn(a);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return A.apply(this,arguments)})},{key:"calculateNativeTokenAmt",value:(g=o(i().mark((function e(t,n,r){var a,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.contracts.mustGetTokenBridgeRelayer(t),e.next=3,this.mustGetForeignAsset(n,t);case 3:return o=e.sent,e.next=6,a.calculateNativeSwapAmountOut(o,r);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return g.apply(this,arguments)})},{key:"parseMessageFromTx",value:(v=o(i().mark((function e(t,n){var r,a,s,c,u,f,l,p,h,y,m=this;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.context.mustGetProvider(n),e.next=3,r.getTransactionReceipt(t);case 3:if(a=e.sent){e.next=6;break}throw new Error("No receipt for ".concat(t," on ").concat(n));case 6:return c=a.gasUsed,u=a.effectiveGasPrice,c&&u&&(s=c.mul(u)),f=this.contracts.mustGetCore(n),l=this.contracts.mustGetBridge(n),p=this.contracts.getTokenBridgeRelayer(n),h=a.logs.filter((function(e){return e.address===f.address})),y=h.map(function(){var e=o(i().mark((function e(r){var o,c,u,f,h,y,v,g,A,w,x,_,k,S;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=d.Implementation__factory.createInterface().parseLog(r),c=m.context.toChainName(n),!o.args.payload.startsWith("0x01")){e.next=12;break}return e.next=5,l.parseTransfer(o.args.payload);case 5:return u=e.sent,f=m.context.getContext(u.toChain),h=m.context.getContext(u.tokenChain),y=h.parseAddress(u.tokenAddress),v=m.context.toChainName(u.tokenChain),g={sendTx:t,sender:a.from,amount:u.amount,payloadID:u.payloadID,recipient:f.parseAddress(u.to),toChain:m.context.toChainName(u.toChain),fromChain:c,tokenAddress:y,tokenChain:v,tokenId:{chain:v,address:y},sequence:o.args.sequence,emitterAddress:b.utils.hexlify(m.formatAddress(l.address)),block:a.blockNumber,gasFee:s},e.abrupt("return",g);case 12:if(p){e.next=14;break}throw new Error("no relayer contract to decode message payload");case 14:return e.next=16,l.parseTransferWithPayload(o.args.payload);case 16:return A=e.sent,w=m.context.getContext(A.toChain),e.next=20,p.decodeTransferWithRelay(A.payload);case 20:return x=e.sent,_=m.parseAddress(A.tokenAddress),k=m.context.toChainName(A.tokenChain),S={sendTx:t,sender:a.from,amount:A.amount,payloadID:A.payloadID,to:w.parseAddress(A.to),toChain:m.context.toChainName(A.toChain),fromChain:c,tokenAddress:_,tokenChain:k,tokenId:{chain:k,address:_},sequence:o.args.sequence,emitterAddress:b.utils.hexlify(m.formatAddress(l.address)),block:a.blockNumber,gasFee:s,payload:A.payload,relayerPayloadId:x.payloadId,recipient:w.parseAddress(x.targetRecipient),relayerFee:x.targetRelayerFee,toNativeTokenAmount:x.toNativeTokenAmount},e.abrupt("return",S);case 25:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=15,Promise.all(y);case 15:return e.abrupt("return",e.sent);case 16:case"end":return e.stop()}}),e,this)}))),function(e,t){return v.apply(this,arguments)})},{key:"getRelayerFee",value:(n=o(i().mark((function e(t,n,r){var a,o,s,c,u,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.contracts.mustGetTokenBridgeRelayer(t),e.next=3,this.mustGetForeignAsset(r,t);case 3:return o=e.sent,s=this.context.mustGetProvider(t),c=d.TokenImplementation__factory.connect(o,s),e.next=8,c.decimals();case 8:return u=e.sent,f=this.context.toChainId(n),e.next=12,a.calculateRelayerFee(f,o,u);case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"isTransferCompleted",value:(t=o(i().mark((function e(t,n){var r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.contracts.mustGetBridge(t),a=(0,m.parseVaa)(b.utils.arrayify(n)).hash,e.next=4,r.isTransferCompleted(a);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"formatAddress",value:function(e){return r.from(b.utils.zeroPad(e,32))}},{key:"parseAddress",value:function(e){var t=b.utils.hexlify(b.utils.stripZeros(e));return b.utils.getAddress(t)}},{key:"getTxIdFromReceipt",value:function(e){return e.transactionHash}}]),N}(n(22617).RelayerAbstract);t.EthContext=v},31816:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(17964).default,o=n(54790).default;Object.defineProperty(t,"__esModule",{value:!0}),t.SolContracts=void 0;var s=n(83702),c=n(70246),u=n(88585),f=n(36453),d=n(15683),l=n(34729),p=n(97210),b=function(e){i(n,e);var t=o(n);function n(e){var a;r(this,n),(a=t.call(this)).context=e;var i="MAINNET"===e.environment?"mainnet-beta":"devnet";return a.connection=new s.Connection((0,s.clusterApiUrl)(i)),a._contracts=new Map,(0,f.filterByContext)(e.conf,c.Context.SOLANA).forEach((function(e){a._contracts.set(e.key,e.contracts)})),a}return a(n,[{key:"getContracts",value:function(e){var t=this.context.toChainName(e);return this._contracts.get(t)}},{key:"mustGetContracts",value:function(e){var t=this.context.toChainName(e),n=this._contracts.get(t);if(!n)throw new Error("no Solana contracts found for ".concat(e));return n}},{key:"getCore",value:function(e){if(!this.context.getContext("solana").connection)throw new Error("no connection");var t=this.context.mustGetContracts("solana");if(t.core)return(0,d.createReadOnlyWormholeProgramInterface)(t.core,this.connection)}},{key:"mustGetCore",value:function(e){var t=this.getCore(e);if(!t)throw new Error("Core contract for domain ".concat(e," not found"));return t}},{key:"getBridge",value:function(e){var t=this.context.getContext("solana").connection;if(!t)throw new Error("no connection");var n=this.context.mustGetContracts("solana");if(n.token_bridge)return(0,l.createReadOnlyTokenBridgeProgramInterface)(n.token_bridge,t)}},{key:"mustGetBridge",value:function(e){var t=this.getBridge(e);if(!t)throw new Error("Bridge contract for domain ".concat(e," not found"));return t}},{key:"getNftBridge",value:function(e){var t=this.context.getContext("solana").connection;if(!t)throw new Error("no connection");var n=this.context.mustGetContracts("solana");if(n.nft_bridge)return(0,p.createReadOnlyNftBridgeProgramInterface)(n.nft_bridge,t)}},{key:"mustGetNftBridge",value:function(e){var t=this.getNftBridge(e);if(!t)throw new Error("NFT Bridge contract for domain ".concat(e," not found"));return t}},{key:"getTokenBridgeRelayer",value:function(e){}},{key:"mustGetTokenBridgeRelayer",value:function(e){throw new Error("relayer not deployed on Solana")}}]),n}(u.ContractsAbstract);t.SolContracts=b},47635:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(63333).default,i=n(37240).default,o=n(63298).default,s=n(51795).default,c=n(17964).default,u=n(54790).default,f=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),d=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return d(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SolanaContext=void 0;var p=n(71258),b=n(13865),h=n(83702),y=n(71283),m=n(7155),v=l(n(79948)),g=n(41072),A=n(70246),w=n(31816),x=n(34729),_=n(15683),k=n(9977),S="Program log: Sequence: ",I=v.default.chains.solana.key,E=function(e){c(L,e);var t,n,f,d,l,k,E,C,T,O,P,M,B,R,N,D,j,U=u(L);function L(e){var t;o(this,L),(t=U.call(this)).context=e;var n="MAINNET"===e.environment?"mainnet-beta":"devnet";return t.connection=new h.Connection((0,h.clusterApiUrl)(n)),t.contracts=new w.SolContracts(e),t}return s(L,[{key:"setConnection",value:(j=i(a().mark((function e(t){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.connection=t;case 1:case"end":return e.stop()}}),e,this)}))),function(e){return j.apply(this,arguments)})},{key:"fetchTokenDecimals",value:(D=i(a().mark((function e(t,n){var r,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connection){e.next=2;break}throw new Error("no connection");case 2:return e.next=4,this.connection.getParsedAccountInfo(new h.PublicKey(t));case 4:if(r=e.sent){e.next=7;break}throw new Error("could not fetch token details");case 7:return i=r.value.data.parsed.info.decimals,e.abrupt("return",i);case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return D.apply(this,arguments)})},{key:"getTokenAccountOwner",value:(N=i(a().mark((function e(t){var n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,b.getAccount)(this.connection,new h.PublicKey(t));case 2:return n=e.sent,e.abrupt("return",n.owner.toString());case 4:case"end":return e.stop()}}),e,this)}))),function(e){return N.apply(this,arguments)})},{key:"getNativeBalance",value:(R=i(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connection){e.next=2;break}throw new Error("no connection");case 2:return e.next=4,this.connection.getBalance(new h.PublicKey(t));case 4:return r=e.sent,e.abrupt("return",y.BigNumber.from(r));case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return R.apply(this,arguments)})},{key:"getTokenBalance",value:(B=i(a().mark((function e(t,n,r){var i,o,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connection){e.next=2;break}throw new Error("no connection");case 2:return e.next=4,this.getForeignAsset(n,r);case 4:if(i=e.sent){e.next=7;break}return e.abrupt("return",null);case 7:return e.next=9,this.connection.getTokenAccountsByOwner(new h.PublicKey(t),{mint:new h.PublicKey(i)});case 9:if((o=e.sent).value[0]){e.next=12;break}return e.abrupt("return",null);case 12:return e.next=14,this.connection.getTokenAccountBalance(o.value[0].pubkey);case 14:return s=e.sent,e.abrupt("return",y.BigNumber.from(s.value.amount));case 16:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return B.apply(this,arguments)})},{key:"getAssociatedTokenAddress",value:(M=i(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.mustGetForeignAsset(t,I);case 2:return r=e.sent,e.next=5,(0,b.getAssociatedTokenAddress)(new h.PublicKey(r),new h.PublicKey(n),void 0,b.TOKEN_PROGRAM_ID,b.ASSOCIATED_TOKEN_PROGRAM_ID);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return M.apply(this,arguments)})},{key:"getAssociatedTokenAccount",value:(P=i(a().mark((function e(t,n){var r,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connection){e.next=2;break}throw new Error("no connection");case 2:return e.next=4,this.getAssociatedTokenAddress(t,n);case 4:return r=e.sent,e.prev=5,e.next=8,(0,b.getAccount)(this.connection,r);case 8:return i=e.sent,e.abrupt("return",i);case 12:return e.prev=12,e.t0=e.catch(5),e.abrupt("return",null);case 15:case"end":return e.stop()}}),e,this,[[5,12]])}))),function(e,t){return P.apply(this,arguments)})},{key:"createAssociatedTokenAccount",value:(O=i(a().mark((function e(t,n,r){var i,o,s,c,u,f,d,l,p;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connection){e.next=2;break}throw new Error("no connection");case 2:return e.next=4,this.getAssociatedTokenAccount(t,n);case 4:if(!e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.mustGetForeignAsset(t,I);case 9:return i=e.sent,e.next=12,this.getAssociatedTokenAddress(t,n);case 12:return o=e.sent,s=new h.PublicKey(n),c=new h.PublicKey(i),u=new h.PublicKey(o),f=(0,b.createAssociatedTokenAccountInstruction)(s,u,s,c),d=(new h.Transaction).add(f),e.next=20,this.connection.getLatestBlockhash(r);case 20:return l=e.sent,p=l.blockhash,d.recentBlockhash=p,d.feePayer=s,e.abrupt("return",d);case 25:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return O.apply(this,arguments)})},{key:"transferNativeSol",value:(T=i(a().mark((function e(t,n,i,o,s,c,u){var f,d,l,y,m,v,g,A,w,_,k,S,E,C,T;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connection){e.next=2;break}throw new Error("no connection");case 2:if((f=this.contracts.mustGetContracts(I)).core&&f.token_bridge){e.next=5;break}throw new Error("contracts not found");case 5:return e.next=7,(0,b.getMinimumBalanceForRentExemptAccount)(this.connection,u);case 7:return d=e.sent,l=new h.PublicKey(t),y=h.Keypair.generate(),m=h.SystemProgram.createAccount({fromPubkey:l,newAccountPubkey:y.publicKey,lamports:d,space:b.ACCOUNT_SIZE,programId:b.TOKEN_PROGRAM_ID}),v=h.SystemProgram.transfer({fromPubkey:l,lamports:n,toPubkey:y.publicKey}),g=(0,b.createInitializeAccountInstruction)(y.publicKey,b.NATIVE_MINT,l),A=(0,x.createApproveAuthoritySignerInstruction)(f.token_bridge,y.publicKey,l,n),w=h.Keypair.generate(),_=(0,p.createNonce)().readUInt32LE(0),k=(0,x.createTransferNativeInstruction)(this.connection,f.token_bridge,f.core,t,w.publicKey,y.publicKey,b.NATIVE_MINT,_,n,s||BigInt(0),r.from(o),this.context.toChainId(i)),S=(0,b.createCloseAccountInstruction)(y.publicKey,l,l),e.next=20,this.connection.getLatestBlockhash(u);case 20:return E=e.sent,C=E.blockhash,(T=new h.Transaction).recentBlockhash=C,T.feePayer=l,T.add(m,v,g,A,k,S),T.partialSign(w,y),e.abrupt("return",T);case 28:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i,o){return T.apply(this,arguments)})},{key:"transferFromSolana",value:(C=i(a().mark((function e(t,n,r,i,o,s,c,u,f,d,l){var b,y,m,v,g,A,w,_,k;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connection){e.next=2;break}throw new Error("no connection");case 2:if((b=this.contracts.mustGetContracts(I)).core&&b.token_bridge){e.next=5;break}throw new Error("contracts not found");case 5:return y=this.context.toChainId(r),void 0===u&&(u=t),m=(0,p.createNonce)().readUInt32LE(0),v=(0,x.createApproveAuthoritySignerInstruction)(b.token_bridge,o,new h.PublicKey(u),n),g=h.Keypair.generate(),A=(0,x.createTransferWrappedInstruction)(this.connection,b.token_bridge,b.core,t,g.publicKey,o,u,s,c,m,n,f||BigInt(0),i,y),w=(new h.Transaction).add(v,A),e.next=14,this.connection.getLatestBlockhash(l);case 14:return _=e.sent,k=_.blockhash,w.recentBlockhash=k,w.feePayer=new h.PublicKey(t),w.partialSign(g),e.abrupt("return",w);case 20:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i,o,s,c,u,f){return C.apply(this,arguments)})},{key:"send",value:(E=i(a().mark((function e(t,n,r,i,o,s,c,u){var f,d,l,p,b,v,g,w;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connection){e.next=2;break}throw new Error("no connection");case 2:if(f=this.context.getContext(o),d=(0,m.arrayify)(f.formatAddress(s)),l=c?BigInt(c):void 0,p=y.BigNumber.from(n).toBigInt(),t!==A.NATIVE){e.next=12;break}return e.next=9,this.transferNativeSol(i,p,o,d,l,void 0,"finalized");case 9:case 26:return e.abrupt("return",e.sent);case 12:return e.next=14,f.mustGetForeignAsset(t,o);case 14:return b=e.sent,v=(0,m.arrayify)(f.formatAddress(b)),e.next=18,this.mustGetForeignAsset(t,I);case 18:return g=e.sent,e.next=21,this.connection.getTokenAccountsByOwner(new h.PublicKey(i),{mint:new h.PublicKey(g)});case 21:if((w=e.sent)&&w.value[0]){e.next=24;break}throw new Error("account does not have any token balance");case 24:return e.next=26,this.transferFromSolana(i,p,o,d,w.value[0].pubkey,this.context.resolveDomain(t.chain),v,void 0,l,void 0,"finalized");case 27:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i,o,s){return E.apply(this,arguments)})},{key:"sendWithPayload",value:(k=i(a().mark((function e(t,n,r,i,o,s,c,u){var f,d,l,p,b,y;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connection){e.next=2;break}throw new Error("no connection");case 2:if(f=BigInt(n),d=this.context.getContext(o),l=(0,m.arrayify)(d.formatAddress(s)),t!==A.NATIVE){e.next=11;break}return e.next=8,this.transferNativeSol(i,f,o,l,void 0,c,"finalized");case 8:case 22:return e.abrupt("return",e.sent);case 11:return p=(0,m.arrayify)(d.formatAddress(t.address)),e.next=14,this.mustGetForeignAsset(t,I);case 14:return b=e.sent,e.next=17,this.connection.getTokenAccountsByOwner(new h.PublicKey(i),{mint:new h.PublicKey(b)});case 17:if((y=e.sent)&&y.value[0]){e.next=20;break}throw new Error("account does not have any token balance");case 20:return e.next=22,this.transferFromSolana(i,f,o,l,y.value[0].pubkey,this.context.resolveDomain(t.chain),p,void 0,void 0,c,"finalized");case 23:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i,o,s){return k.apply(this,arguments)})},{key:"formatAddress",value:function(e){var t="string"==typeof e&&e.startsWith("0x")?(0,m.arrayify)(e):e;return(0,m.hexlify)((0,m.zeroPad)(new h.PublicKey(t).toBytes(),32))}},{key:"parseAddress",value:function(e){var t="string"==typeof e&&e.startsWith("0x")?(0,m.arrayify)(e):e;return new h.PublicKey(t).toString()}},{key:"getForeignAsset",value:(l=i(a().mark((function e(t,n){var r,i,o,s,c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connection){e.next=2;break}throw new Error("no connection");case 2:if(r=this.context.toChainId(t.chain),this.context.toChainId(n)!==r){e.next=6;break}return e.abrupt("return",t.address);case 6:if((i=this.context.mustGetContracts(n)).token_bridge){e.next=9;break}throw new Error("contracts not found");case 9:return o=this.context.getContext(t.chain),s=o.formatAddress(t.address),e.next=13,(0,p.getForeignAssetSolana)(this.connection,i.token_bridge,r,(0,m.arrayify)(s));case 13:if(c=e.sent){e.next=16;break}return e.abrupt("return",null);case 16:return e.abrupt("return",c);case 17:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"mustGetForeignAsset",value:(d=i(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getForeignAsset(t,n);case 2:if(r=e.sent){e.next=5;break}throw new Error("token not registered");case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"parseMessageFromTx",value:(f=i(a().mark((function e(t,n){var r,i,o,s,c,u,f,d,l,p,b,h,v,A,w,x,k,E,C,T,O,P,M,B;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connection){e.next=2;break}throw new Error("no connection");case 2:if((d=this.contracts.mustGetContracts(I)).core&&d.token_bridge){e.next=5;break}throw new Error("contracts not found");case 5:return e.next=7,this.connection.getTransaction(t);case 7:return l=e.sent,e.next=10,this.connection.getParsedTransaction(t);case 10:if(p=e.sent,l&&null!==(r=l.meta)&&void 0!==r&&r.innerInstructions[0].instructions){e.next=13;break}throw new Error("transaction not found");case 13:return b=null===(i=l.meta)||void 0===i?void 0:i.innerInstructions[0].instructions,h=l.transaction.message.accountKeys,v=b.filter((function(e){var t=h[e.programIdIndex].toString(),n=h[e.accounts[2]],r=d.core,a=(0,_.deriveWormholeEmitterKey)(d.token_bridge);return t===r&&n.equals(a)})),e.next=18,(0,_.getPostedMessage)(this.connection,h[v[0].accounts[1]]);case 18:if(A=e.sent,w=A.message,x=null==p||null===(o=p.meta)||void 0===o?void 0:o.innerInstructions[0].instructions,k=x?x.reduce((function(e,t){return t.parsed&&t.parsed.info&&t.parsed.info.lamports?e+t.parsed.info.lamports:e}),0):0,E=(0,g.parseTokenTransferPayload)(w.payload),C=null===(s=l.meta)||void 0===s||null===(c=s.logMessages)||void 0===c||null===(u=c.filter((function(e){return e.startsWith(S)})))||void 0===u||null===(f=u[0])||void 0===f?void 0:f.replace(S,"")){e.next=26;break}throw new Error("sequence not found");case 26:return T=this.context.getContext(E.tokenChain),O=this.context.getContext(E.toChain),P=T.parseAddress((0,m.hexlify)(E.tokenAddress)),M=this.context.toChainName(E.tokenChain),B={sendTx:t,sender:h[0].toString(),amount:y.BigNumber.from(E.amount),payloadID:E.payloadType,recipient:O.parseAddress((0,m.hexlify)(E.to)),toChain:this.context.toChainName(E.toChain),fromChain:this.context.toChainName(n),tokenAddress:P,tokenChain:M,tokenId:{chain:M,address:P},sequence:y.BigNumber.from(C),emitterAddress:"3b26409f8aaded3f5ddca184695aa6a0fa829b0c85caf84856324896d214ca98",gasFee:y.BigNumber.from(k),block:l.slot},e.abrupt("return",[B]);case 32:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"redeem",value:(n=i(a().mark((function e(t,n,r,i){var o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i){e.next=2;break}throw new Error("receiving wallet address required for redeeming on Solana");case 2:if(this.connection){e.next=4;break}throw new Error("no connection");case 4:if((o=this.contracts.mustGetContracts(I)).core&&o.token_bridge){e.next=7;break}throw new Error("contracts not found for solana");case 7:if((0,g.parseTokenTransferVaa)(n).tokenChain!==v.MAINNET_CHAINS.solana){e.next=15;break}return e.next=12,(0,p.redeemAndUnwrapOnSolana)(this.connection,o.core,o.token_bridge,i,n);case 12:case 17:return e.abrupt("return",e.sent);case 15:return e.next=17,(0,p.redeemOnSolana)(this.connection,o.core,o.token_bridge,i,n);case 18:case"end":return e.stop()}}),e,this)}))),function(e,t,r,a){return n.apply(this,arguments)})},{key:"isTransferCompleted",value:(t=i(a().mark((function e(t,n){var r,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.connection){e.next=2;break}throw new Error("no connection");case 2:return r=(0,g.parseVaa)((0,m.arrayify)(n)),i=this.contracts.mustGetBridge(t),e.abrupt("return",(0,_.getClaim)(this.connection,i.programId,r.emitterAddress,r.emitterChain,r.sequence,"finalized").catch((function(e){return!1})));case 5:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"getTxIdFromReceipt",value:function(e){return e.signatures[0].publicKey.toString()}}]),L}(k.TokenBridgeAbstract);t.SolanaContext=E},72272:function(e,t,n){"use strict";var r=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.accountSize=void 0;var a=n(28838);function i(e,t){if("enum"===t.type.kind){var n=t.type.variants.map((function(t){return void 0===t.fields?0:t.fields.map((function(t){if("object"!=typeof t||!("name"in t))throw new Error("Tuple enum variants not yet implemented.");return o(e,t.type)})).reduce((function(e,t){return e+t}))}));return Math.max.apply(Math,r(n))+1}return void 0===t.type.fields?0:t.type.fields.map((function(t){return o(e,t.type)})).reduce((function(e,t){return e+t}),0)}function o(e,t){switch(t){case"bool":case"u8":case"i8":case"bytes":case"string":return 1;case"i16":case"u16":return 2;case"u32":case"i32":case"f32":return 4;case"u64":case"i64":case"f64":return 8;case"u128":case"i128":return 16;case"publicKey":return 32;default:if("vec"in t)return 1;if("option"in t)return 1+o(e,t.option);if("coption"in t)return 4+o(e,t.coption);if("defined"in t){var n,r,s=null!==(n=null===(r=e.types)||void 0===r?void 0:r.filter((function(e){return e.name===t.defined})))&&void 0!==n?n:[];if(1!==s.length)throw new a.IdlError("Type not found: ".concat(JSON.stringify(t)));return i(e,s[0])}if("array"in t){var c=t.array[0],u=t.array[1];return o(e,c)*u}throw new Error("Invalid type ".concat(JSON.stringify(t)))}}t.accountSize=i},28838:function(e,t,n){"use strict";var r=n(51795).default,a=n(63298).default,i=n(17964).default,o=n(54790).default,s=n(51555).default;Object.defineProperty(t,"__esModule",{value:!0}),t.IdlError=void 0;var c=function(e){i(n,e);var t=o(n);function n(e){var r;return a(this,n),(r=t.call(this,e)).name="IdlError",r}return r(n)}(s(Error));t.IdlError=c},11343:function(e,t,n){"use strict";var r=n(63333).default,a=n(37240).default,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.encodeIdlAccount=t.decodeIdlAccount=t.seed=t.idlAddress=void 0;var c=n(62332),u=n(83702),f=s(n(80725));function d(){return(d=a(r().mark((function e(t){var n;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u.PublicKey.findProgramAddress([],t);case 2:return n=e.sent[0],e.next=5,u.PublicKey.createWithSeed(n,"anchor:idl",t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.idlAddress=function(e){return d.apply(this,arguments)},t.seed=function(){return"anchor:idl"};var l=f.struct([f.publicKey("authority"),f.vecU8("data")]);t.decodeIdlAccount=function(e){return l.decode(e)},t.encodeIdlAccount=function(e){var t=c.Buffer.alloc(1e3),n=l.encode(e,t);return t.slice(0,n)}},29873:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(72272),t),a(n(28838),t),a(n(11343),t)},52355:function(e,t,n){"use strict";var r=n(63333).default,a=n(51795).default,i=n(63298).default,o=n(17964).default,s=n(54790).default,c=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.NftBridgeConfig=t.getNftBridgeConfig=t.deriveNftBridgeConfigKey=void 0;var u=n(34729);function f(){return(f=c(r().mark((function e(t,n,a){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,u.getTokenBridgeConfig)(t,n,a));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.deriveNftBridgeConfigKey=u.deriveTokenBridgeConfigKey,t.getNftBridgeConfig=function(e,t,n){return f.apply(this,arguments)};var d=function(e){o(n,e);var t=s(n);function n(){return i(this,n),t.apply(this,arguments)}return a(n)}(u.TokenBridgeConfig);t.NftBridgeConfig=d},37059:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.getEndpointRegistration=t.deriveUpgradeAuthorityKey=t.deriveMintAuthorityKey=t.deriveEndpointKey=t.deriveCustodySignerKey=t.deriveCustodyKey=t.deriveAuthoritySignerKey=t.EndpointRegistration=void 0,a(n(52355),t),a(n(59529),t);var i=n(34729);Object.defineProperty(t,"EndpointRegistration",{enumerable:!0,get:function(){return i.EndpointRegistration}}),Object.defineProperty(t,"deriveAuthoritySignerKey",{enumerable:!0,get:function(){return i.deriveAuthoritySignerKey}}),Object.defineProperty(t,"deriveCustodyKey",{enumerable:!0,get:function(){return i.deriveCustodyKey}}),Object.defineProperty(t,"deriveCustodySignerKey",{enumerable:!0,get:function(){return i.deriveCustodySignerKey}}),Object.defineProperty(t,"deriveEndpointKey",{enumerable:!0,get:function(){return i.deriveEndpointKey}}),Object.defineProperty(t,"deriveMintAuthorityKey",{enumerable:!0,get:function(){return i.deriveMintAuthorityKey}}),Object.defineProperty(t,"deriveUpgradeAuthorityKey",{enumerable:!0,get:function(){return i.deriveUpgradeAuthorityKey}}),Object.defineProperty(t,"getEndpointRegistration",{enumerable:!0,get:function(){return i.getEndpointRegistration}})},59529:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(63333).default,i=n(63298).default,o=n(51795).default,s=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.WrappedMeta=t.getWrappedMeta=t.deriveWrappedMintKey=t.deriveWrappedMetaKey=void 0;var c=n(71258),u=n(59818),f=n(264),d=n(34729),l=n(79948),p=n(34729);function b(){return(b=s(a().mark((function e(t,n,r,i){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.getAccountInfo((0,d.deriveWrappedMetaKey)(n,r),i).then((function(e){return h.deserialize((0,f.getAccountData)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object.defineProperty(t,"deriveWrappedMetaKey",{enumerable:!0,get:function(){return p.deriveWrappedMetaKey}}),t.deriveWrappedMintKey=function(e,t,n,a){if(t==l.MAINNET_CHAINS.solana)throw new Error("tokenChain == CHAIN_ID_SOLANA does not have wrapped mint key");return"string"==typeof n&&(n=(0,c.tryNativeToUint8Array)(n,t)),(0,f.deriveAddress)([r.from("wrapped"),(i=r.alloc(2),i.writeUInt16BE(t),i),n,new u.BN(a.toString()).toArrayLike(r,"be",32)],e);var i},t.getWrappedMeta=function(e,t,n,r){return b.apply(this,arguments)};var h=function(){function e(t,n,r){i(this,e),this.chain=t,this.tokenAddress=n,this.tokenId=r}return o(e,null,[{key:"deserialize",value:function(t){if(66!=t.length)throw new Error("data.length != 66");return new e(t.readUInt16LE(0),t.subarray(2,34),BigInt(new u.BN(t.subarray(34,66),void 0,"le").toString()))}}]),e}();t.WrappedMeta=h},96258:function(e,t,n){"use strict";var r=n(63333).default,a=n(37240).default,i=n(63298).default,o=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.NftBridgeAccountsCoder=void 0;var s=n(29873),c=function(){function e(t){i(this,e),this.idl=t}var t;return o(e,[{key:"encode",value:(t=a(r().mark((function e(t,n){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next=3;break;case 3:throw new Error("Invalid account name: ".concat(t));case 4:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})},{key:"decode",value:function(e,t){return this.decodeUnchecked(e,t)}},{key:"decodeUnchecked",value:function(e,t){throw new Error("Invalid account name: ".concat(e))}},{key:"memcmp",value:function(e,t){throw new Error("Invalid account name: ".concat(e))}},{key:"size",value:function(e){var t;return null!==(t=(0,s.accountSize)(this.idl,e))&&void 0!==t?t:0}}]),e}();t.NftBridgeAccountsCoder=c},98507:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.NftBridgeEventsCoder=void 0;var i=function(){function e(t){r(this,e)}return a(e,[{key:"decode",value:function(e){throw new Error("NFT Bridge program does not have events")}}]),e}();t.NftBridgeEventsCoder=i},53945:function(e,t,n){"use strict";var r=n(51795).default,a=n(63298).default;Object.defineProperty(t,"__esModule",{value:!0}),t.NftBridgeCoder=t.NftBridgeInstruction=void 0;var i=n(96258),o=n(98507),s=n(56754),c=n(49874),u=n(86593),f=n(56754);Object.defineProperty(t,"NftBridgeInstruction",{enumerable:!0,get:function(){return f.NftBridgeInstruction}});var d=r((function e(t){a(this,e),this.instruction=new s.NftBridgeInstructionCoder(t),this.accounts=new i.NftBridgeAccountsCoder(t),this.state=new c.NftBridgeStateCoder(t),this.events=new o.NftBridgeEventsCoder(t),this.types=new u.NftBridgeTypesCoder(t)}));t.NftBridgeCoder=d},56754:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(96505).default,i=n(63298).default,o=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.NftBridgeInstruction=t.NftBridgeInstructionCoder=void 0;var s,c=n(83702),u=function(){function e(t){i(this,e)}return o(e,[{key:"encode",value:function(e,t){switch(e){case"initialize":return l=t.wormhole,(p=r.alloc(32)).write(new c.PublicKey(l).toBuffer().toString("hex"),0,"hex"),f(s.Initialize,p);case"completeNative":return a(t),f(s.CompleteNative);case"completeWrapped":return a(t),f(s.CompleteWrapped);case"completeWrappedMeta":return a(t),f(s.CompleteWrappedMeta);case"transferWrapped":return i=(n=t).nonce,o=n.targetAddress,u=n.targetChain,f(s.TransferWrapped,d({nonce:i,targetAddress:o,targetChain:u}));case"transferNative":return function(e){var t=e.nonce,n=e.targetAddress,r=e.targetChain;return f(s.TransferNative,d({nonce:t,targetAddress:n,targetChain:r}))}(t);case"registerChain":return a(t),f(s.RegisterChain);case"upgradeContract":return a(t),f(s.UpgradeContract);default:throw new Error("Invalid instruction: ".concat(e))}var n,i,o,u,l,p}},{key:"encodeState",value:function(e,t){throw new Error("NFT Bridge program does not have state")}}]),e}();function f(e,t){var n=void 0===t?0:t.length,a=r.alloc(1+n);return a.writeUInt8(e,0),n>0&&a.write(t.toString("hex"),1,"hex"),a}function d(e){var t=e.nonce,n=e.targetAddress,a=e.targetChain;if(!r.isBuffer(n))throw new Error("targetAddress must be Buffer");var i=r.alloc(38);return i.writeUInt32LE(t,0),i.write(n.toString("hex"),4,"hex"),i.writeUInt16LE(a,36),i}t.NftBridgeInstructionCoder=u,function(e){e[e.Initialize=0]="Initialize",e[e.CompleteNative=1]="CompleteNative",e[e.CompleteWrapped=2]="CompleteWrapped",e[e.CompleteWrappedMeta=3]="CompleteWrappedMeta",e[e.TransferWrapped=4]="TransferWrapped",e[e.TransferNative=5]="TransferNative",e[e.RegisterChain=6]="RegisterChain",e[e.UpgradeContract=7]="UpgradeContract"}(s=t.NftBridgeInstruction||(t.NftBridgeInstruction={}))},49874:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.NftBridgeStateCoder=void 0;var i=function(){function e(t){r(this,e)}return a(e,[{key:"encode",value:function(e,t){throw new Error("NFT Bridge program does not have state")}},{key:"decode",value:function(e){throw new Error("NFT Bridge program does not have state")}}]),e}();t.NftBridgeStateCoder=i},86593:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.NftBridgeTypesCoder=void 0;var i=function(){function e(t){r(this,e)}return a(e,[{key:"encode",value:function(e,t){throw new Error("NFT Bridge program does not have user-defined types")}},{key:"decode",value:function(e,t){throw new Error("NFT Bridge program does not have user-defined types")}}]),e}();t.NftBridgeTypesCoder=i},97210:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(37059),t),a(n(46910),t),a(n(14255),t)},90902:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApproveAuthoritySignerInstruction=void 0;var r=n(34729);t.createApproveAuthoritySignerInstruction=function(e,t,n){return(0,r.createApproveAuthoritySignerInstruction)(e,t,n,1)}},25591:function(e,t,n){"use strict";var r=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getCompleteTransferNativeAccounts=t.createCompleteTransferNativeInstruction=void 0;var a=n(83702),i=n(13865),o=n(14255),s=n(15683),c=n(37059),u=n(41072);function f(e,t,n,r,f){var d=(0,u.isBytes)(r)?(0,u.parseNftTransferVaa)(r):r,l=(0,o.tokenIdToMint)(d.tokenId);return{payer:new a.PublicKey(n),config:(0,c.deriveNftBridgeConfigKey)(e),vaa:(0,s.derivePostedVaaKey)(t,d.hash),claim:(0,s.deriveClaimKey)(e,d.emitterAddress,d.emitterChain,d.sequence),endpoint:(0,c.deriveEndpointKey)(e,d.emitterChain,d.emitterAddress),to:new a.PublicKey(d.to),toAuthority:new a.PublicKey(void 0===f?n:f),custody:(0,c.deriveCustodyKey)(e,l),mint:l,custodySigner:(0,c.deriveCustodySignerKey)(e),rent:a.SYSVAR_RENT_PUBKEY,systemProgram:a.SystemProgram.programId,tokenProgram:i.TOKEN_PROGRAM_ID,wormholeProgram:new a.PublicKey(t)}}t.createCompleteTransferNativeInstruction=function(e,t,n,a,i,s){var c=(0,o.createReadOnlyNftBridgeProgramInterface)(t,e).methods.completeNative();return c._ixFn.apply(c,r(c._args).concat([{accounts:f(t,n,a,i,s),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getCompleteTransferNativeAccounts=f},26875:function(e,t,n){"use strict";var r=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getCompleteTransferWrappedAccounts=t.createCompleteTransferWrappedInstruction=void 0;var a=n(83702),i=n(13865),o=n(14255),s=n(15683),c=n(37059),u=n(41072),f=n(264);function d(e,t,n,r,o){var d=(0,u.isBytes)(r)?(0,u.parseNftTransferVaa)(r):r,l=(0,c.deriveWrappedMintKey)(e,d.tokenChain,d.tokenAddress,d.tokenId);return{payer:new a.PublicKey(n),config:(0,c.deriveNftBridgeConfigKey)(e),vaa:(0,s.derivePostedVaaKey)(t,d.hash),claim:(0,s.deriveClaimKey)(e,d.emitterAddress,d.emitterChain,d.sequence),endpoint:(0,c.deriveEndpointKey)(e,d.emitterChain,d.emitterAddress),to:new a.PublicKey(d.to),toAuthority:new a.PublicKey(void 0===o?n:o),mint:l,wrappedMeta:(0,c.deriveWrappedMetaKey)(e,l),mintAuthority:(0,c.deriveMintAuthorityKey)(e),rent:a.SYSVAR_RENT_PUBKEY,systemProgram:a.SystemProgram.programId,tokenProgram:i.TOKEN_PROGRAM_ID,splMetadataProgram:f.SplTokenMetadataProgram.programId,associatedTokenProgram:i.ASSOCIATED_TOKEN_PROGRAM_ID,wormholeProgram:new a.PublicKey(t)}}t.createCompleteTransferWrappedInstruction=function(e,t,n,a,i,s){var c=(0,o.createReadOnlyNftBridgeProgramInterface)(t).methods.completeWrapped();return c._ixFn.apply(c,r(c._args).concat([{accounts:d(t,n,a,i,s),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getCompleteTransferWrappedAccounts=d},58550:function(e,t,n){"use strict";var r=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getCompleteWrappedMetaAccounts=t.createCompleteWrappedMetaInstruction=void 0;var a=n(83702),i=n(13865),o=n(14255),s=n(15683),c=n(37059),u=n(41072),f=n(264);function d(e,t,n,r){var o=(0,u.isBytes)(r)?(0,u.parseNftTransferVaa)(r):r,d=(0,c.deriveWrappedMintKey)(e,o.tokenChain,o.tokenAddress,o.tokenId);return{payer:new a.PublicKey(n),config:(0,c.deriveNftBridgeConfigKey)(e),vaa:(0,s.derivePostedVaaKey)(t,o.hash),endpoint:(0,c.deriveEndpointKey)(e,o.emitterChain,o.emitterAddress),mint:d,wrappedMeta:(0,c.deriveWrappedMetaKey)(e,d),splMetadata:(0,f.deriveSplTokenMetadataKey)(d),mintAuthority:(0,c.deriveMintAuthorityKey)(e),rent:a.SYSVAR_RENT_PUBKEY,systemProgram:a.SystemProgram.programId,tokenProgram:i.TOKEN_PROGRAM_ID,splMetadataProgram:f.SplTokenMetadataProgram.programId,wormholeProgram:new a.PublicKey(t)}}t.createCompleteWrappedMetaInstruction=function(e,t,n,a,i){var s=(0,o.createReadOnlyNftBridgeProgramInterface)(t).methods.completeWrappedMeta();return s._ixFn.apply(s,r(s._args).concat([{accounts:d(t,n,a,i),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getCompleteWrappedMetaAccounts=d},63726:function(e,t,n){"use strict";var r=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getUpgradeContractAccounts=t.createUpgradeContractInstruction=t.getRegisterChainAccounts=t.createRegisterChainInstruction=void 0;var a=n(83702),i=n(14255),o=n(15683),s=n(37059),c=n(41072),u=n(264);function f(e,t,n,r){var i=(0,c.isBytes)(r)?(0,c.parseNftBridgeRegisterChainVaa)(r):r;return{payer:new a.PublicKey(n),config:(0,s.deriveNftBridgeConfigKey)(e),endpoint:(0,s.deriveEndpointKey)(e,i.foreignChain,i.foreignAddress),vaa:(0,o.derivePostedVaaKey)(t,i.hash),claim:(0,o.deriveClaimKey)(e,i.emitterAddress,i.emitterChain,i.sequence),rent:a.SYSVAR_RENT_PUBKEY,systemProgram:a.SystemProgram.programId,wormholeProgram:new a.PublicKey(t)}}function d(e,t,n,r,i){var f=(0,c.isBytes)(r)?(0,c.parseNftBridgeUpgradeContractVaa)(r):r;return{payer:new a.PublicKey(n),vaa:(0,o.derivePostedVaaKey)(t,f.hash),claim:(0,o.deriveClaimKey)(e,f.emitterAddress,f.emitterChain,f.sequence),upgradeAuthority:(0,s.deriveUpgradeAuthorityKey)(e),spill:new a.PublicKey(void 0===i?n:i),implementation:new a.PublicKey(f.newContract),programData:(0,u.deriveUpgradeableProgramKey)(e),nftBridgeProgram:new a.PublicKey(e),rent:a.SYSVAR_RENT_PUBKEY,clock:a.SYSVAR_CLOCK_PUBKEY,bpfLoaderUpgradeable:u.BpfLoaderUpgradeable.programId,systemProgram:a.SystemProgram.programId}}t.createRegisterChainInstruction=function(e,t,n,a,o){var s=(0,i.createReadOnlyNftBridgeProgramInterface)(t,e).methods.registerChain();return s._ixFn.apply(s,r(s._args).concat([{accounts:f(t,n,a,o),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getRegisterChainAccounts=f,t.createUpgradeContractInstruction=function(e,t,n,a,o,s){var c=(0,i.createReadOnlyNftBridgeProgramInterface)(t,e).methods.upgradeContract();return c._ixFn.apply(c,r(c._args).concat([{accounts:d(t,n,a,o,s),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getUpgradeContractAccounts=d},46910:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(90902),t),a(n(25591),t),a(n(26875),t),a(n(58550),t),a(n(31694),t),a(n(63726),t),a(n(70049),t),a(n(95266),t)},31694:function(e,t,n){"use strict";var r=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getInitializeAccounts=t.createInitializeInstruction=void 0;var a=n(83702),i=n(14255),o=n(37059);function s(e,t){return{payer:new a.PublicKey(t),config:(0,o.deriveNftBridgeConfigKey)(e),rent:a.SYSVAR_RENT_PUBKEY,systemProgram:a.SystemProgram.programId}}t.createInitializeInstruction=function(e,t,n,a){var o=(0,i.createReadOnlyNftBridgeProgramInterface)(t).methods.initialize(a);return o._ixFn.apply(o,r(o._args).concat([{accounts:s(t,n),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getInitializeAccounts=s},70049:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getTransferNativeAccounts=t.createTransferNativeInstruction=void 0;var i=n(83702),o=n(13865),s=n(14255),c=n(15683),u=n(37059),f=n(264);function d(e,t,n,r,a,s){var d=(0,c.getPostMessageAccounts)(t,n,e,r),l=d.bridge,p=d.message,b=d.emitter,h=d.sequence,y=d.feeCollector,m=d.clock,v=d.rent,g=d.systemProgram;return{payer:new i.PublicKey(n),config:(0,u.deriveNftBridgeConfigKey)(e),from:new i.PublicKey(a),mint:new i.PublicKey(s),splMetadata:(0,f.deriveSplTokenMetadataKey)(s),custody:(0,u.deriveCustodyKey)(e,s),authoritySigner:(0,u.deriveAuthoritySignerKey)(e),custodySigner:(0,u.deriveCustodySignerKey)(e),wormholeBridge:l,wormholeMessage:p,wormholeEmitter:b,wormholeSequence:h,wormholeFeeCollector:y,clock:m,rent:v,systemProgram:g,tokenProgram:o.TOKEN_PROGRAM_ID,splMetadataProgram:f.SplTokenMetadataProgram.programId,wormholeProgram:new i.PublicKey(t)}}t.createTransferNativeInstruction=function(e,t,n,i,o,c,u,f,l,p){var b=(0,s.createReadOnlyNftBridgeProgramInterface)(t,e).methods.transferNative(f,r.from(l),p);return b._ixFn.apply(b,a(b._args).concat([{accounts:d(t,n,i,o,c,u),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getTransferNativeAccounts=d},95266:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getTransferWrappedAccounts=t.createTransferWrappedInstruction=void 0;var i=n(83702),o=n(13865),s=n(14255),c=n(15683),u=n(37059),f=n(264);function d(e,t,n,r,a,s,d,l,p){var b=(0,u.deriveWrappedMintKey)(e,d,l,p),h=(0,c.getPostMessageAccounts)(t,n,e,r),y=h.bridge,m=h.message,v=h.emitter,g=h.sequence,A=h.feeCollector,w=h.clock,x=h.rent,_=h.systemProgram;return{payer:new i.PublicKey(n),config:(0,u.deriveNftBridgeConfigKey)(e),from:new i.PublicKey(a),fromOwner:new i.PublicKey(s),mint:b,wrappedMeta:(0,u.deriveWrappedMetaKey)(e,b),splMetadata:(0,f.deriveSplTokenMetadataKey)(b),authoritySigner:(0,u.deriveAuthoritySignerKey)(e),wormholeBridge:y,wormholeMessage:m,wormholeEmitter:v,wormholeSequence:g,wormholeFeeCollector:A,clock:w,rent:x,systemProgram:_,tokenProgram:o.TOKEN_PROGRAM_ID,splMetadataProgram:f.SplTokenMetadataProgram.programId,wormholeProgram:new i.PublicKey(t)}}t.createTransferWrappedInstruction=function(e,t,n,i,o,c,u,f,l,p,b,h,y){var m=(0,s.createReadOnlyNftBridgeProgramInterface)(t,e).methods.transferWrapped(b,r.from(h),y);return m._ixFn.apply(m,a(m._args).concat([{accounts:d(t,n,i,o,c,u,f,l,p),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getTransferWrappedAccounts=d},14255:function(e,t,n){"use strict";var r=n(62332).Buffer,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mintToTokenId=t.tokenIdToMint=t.coder=t.createReadOnlyNftBridgeProgramInterface=t.createNftBridgeProgramInterface=t.NFT_TRANSFER_NATIVE_TOKEN_ADDRESS=void 0;var i=n(83702),o=n(59818),s=n(264),c=n(53945),u=a(n(63425));function f(e,t){return new o.Program(u.default,new i.PublicKey(e),void 0===t?{connection:null}:t,d())}function d(){return new c.NftBridgeCoder(u.default)}t.NFT_TRANSFER_NATIVE_TOKEN_ADDRESS=r.alloc(32,1),t.createNftBridgeProgramInterface=f,t.createReadOnlyNftBridgeProgramInterface=function(e,t){return f(e,(0,s.createReadOnlyProvider)(t))},t.coder=d,t.tokenIdToMint=function(e){return new i.PublicKey(new o.BN(e.toString()).toArrayLike(r))},t.mintToTokenId=function(e){return BigInt(new o.BN(new i.PublicKey(e).toBuffer()).toString())}},76526:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(63333).default,i=n(63298).default,o=n(51795).default,s=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenBridgeConfig=t.getTokenBridgeConfig=t.deriveTokenBridgeConfigKey=void 0;var c=n(83702),u=n(264);function f(e){return(0,u.deriveAddress)([r.from("config")],e)}function d(){return(d=s(a().mark((function e(t,n,r){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.getAccountInfo(f(n),r).then((function(e){return l.deserialize((0,u.getAccountData)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.deriveTokenBridgeConfigKey=f,t.getTokenBridgeConfig=function(e,t,n){return d.apply(this,arguments)};var l=function(){function e(t){i(this,e),this.wormhole=new c.PublicKey(t)}return o(e,null,[{key:"deserialize",value:function(t){if(32!=t.length)throw new Error("data.length != 32");return new e(t.subarray(0,32))}}]),e}();t.TokenBridgeConfig=l},65684:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deriveCustodyKey=void 0;var r=n(83702),a=n(264);t.deriveCustodyKey=function(e,t){return(0,a.deriveAddress)([new r.PublicKey(t).toBuffer()],e)}},28361:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(63333).default,i=n(63298).default,o=n(51795).default,s=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.EndpointRegistration=t.getEndpointRegistration=t.deriveEndpointKey=void 0;var c=n(83702),u=n(79948),f=n(264),d=n(71258);function l(){return(l=s(a().mark((function e(t,n,r){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.getAccountInfo(new c.PublicKey(n),r).then((function(e){return p.deserialize((0,f.getAccountData)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.deriveEndpointKey=function(e,t,n){if(t==u.MAINNET_CHAINS.solana)throw new Error("emitterChain == CHAIN_ID_SOLANA cannot exist as foreign token bridge emitter");return"string"==typeof n&&(n=(0,d.tryNativeToUint8Array)(n,t)),(0,f.deriveAddress)([(a=r.alloc(2),a.writeUInt16BE(t),a),n],e);var a},t.getEndpointRegistration=function(e,t,n){return l.apply(this,arguments)};var p=function(){function e(t,n){i(this,e),this.chain=t,this.contract=n}return o(e,null,[{key:"deserialize",value:function(t){if(34!=t.length)throw new Error("data.length != 34");return new e(t.readUInt16LE(0),t.subarray(2,34))}}]),e}();t.EndpointRegistration=p},77176:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.deriveUpgradeAuthorityKey=void 0,a(n(76526),t),a(n(65684),t),a(n(28361),t),a(n(59546),t),a(n(37660),t),a(n(77742),t);var i=n(15683);Object.defineProperty(t,"deriveUpgradeAuthorityKey",{enumerable:!0,get:function(){return i.deriveUpgradeAuthorityKey}})},37660:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.deriveMintAuthorityKey=t.deriveCustodySignerKey=t.deriveAuthoritySignerKey=void 0;var a=n(264);t.deriveAuthoritySignerKey=function(e){return(0,a.deriveAddress)([r.from("authority_signer")],e)},t.deriveCustodySignerKey=function(e){return(0,a.deriveAddress)([r.from("custody_signer")],e)},t.deriveMintAuthorityKey=function(e){return(0,a.deriveAddress)([r.from("mint_signer")],e)}},59546:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.deriveRedeemerAccountKey=t.deriveSenderAccountKey=void 0;var a=n(264);t.deriveSenderAccountKey=function(e){return(0,a.deriveAddress)([r.from("sender")],e)},t.deriveRedeemerAccountKey=function(e){return(0,a.deriveAddress)([r.from("redeemer")],e)}},77742:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(63333).default,i=n(63298).default,o=n(51795).default,s=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.WrappedMeta=t.getWrappedMeta=t.deriveWrappedMetaKey=t.deriveWrappedMintKey=t.deriveSplTokenMetadataKey=void 0;var c=n(71258),u=n(83702),f=n(79948),d=n(264),l=n(37310);function p(e,t){return(0,d.deriveAddress)([r.from("meta"),new u.PublicKey(t).toBuffer()],e)}function b(){return(b=s(a().mark((function e(t,n,r,i){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.getAccountInfo(p(n,r),i).then((function(e){return h.deserialize((0,d.getAccountData)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}Object.defineProperty(t,"deriveSplTokenMetadataKey",{enumerable:!0,get:function(){return l.deriveSplTokenMetadataKey}}),t.deriveWrappedMintKey=function(e,t,n){if(t==f.MAINNET_CHAINS.solana)throw new Error("tokenChain == CHAIN_ID_SOLANA does not have wrapped mint key");return"string"==typeof n&&(n=(0,c.tryNativeToUint8Array)(n,t)),(0,d.deriveAddress)([r.from("wrapped"),(a=r.alloc(2),a.writeUInt16BE(t),a),n],e);var a},t.deriveWrappedMetaKey=p,t.getWrappedMeta=function(e,t,n,r){return b.apply(this,arguments)};var h=function(){function e(t,n,r){i(this,e),this.chain=t,this.tokenAddress=n,this.originalDecimals=r}return o(e,null,[{key:"deserialize",value:function(t){if(35!=t.length)throw new Error("data.length != 35");return new e(t.readUInt16LE(0),t.subarray(2,34),t.readUInt8(34))}}]),e}();t.WrappedMeta=h},29774:function(e,t,n){"use strict";var r=n(63333).default,a=n(37240).default,i=n(63298).default,o=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenBridgeAccountsCoder=void 0;var s=n(29873),c=function(){function e(t){i(this,e),this.idl=t}var t;return o(e,[{key:"encode",value:(t=a(r().mark((function e(t,n){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next=3;break;case 3:throw new Error("Invalid account name: ".concat(t));case 4:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})},{key:"decode",value:function(e,t){return this.decodeUnchecked(e,t)}},{key:"decodeUnchecked",value:function(e,t){throw new Error("Invalid account name: ".concat(e))}},{key:"memcmp",value:function(e,t){throw new Error("Invalid account name: ".concat(e))}},{key:"size",value:function(e){var t;return null!==(t=(0,s.accountSize)(this.idl,e))&&void 0!==t?t:0}}]),e}();t.TokenBridgeAccountsCoder=c},33151:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenBridgeEventsCoder=void 0;var i=function(){function e(t){r(this,e)}return a(e,[{key:"decode",value:function(e){throw new Error("Token Bridge program does not have events")}}]),e}();t.TokenBridgeEventsCoder=i},45876:function(e,t,n){"use strict";var r=n(51795).default,a=n(63298).default;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenBridgeCoder=t.TokenBridgeInstruction=void 0;var i=n(29774),o=n(33151),s=n(25249),c=n(95498),u=n(12933),f=n(25249);Object.defineProperty(t,"TokenBridgeInstruction",{enumerable:!0,get:function(){return f.TokenBridgeInstruction}});var d=r((function e(t){a(this,e),this.instruction=new s.TokenBridgeInstructionCoder(t),this.accounts=new i.TokenBridgeAccountsCoder(t),this.state=new c.TokenBridgeStateCoder(t),this.events=new o.TokenBridgeEventsCoder(t),this.types=new u.TokenBridgeTypesCoder(t)}));t.TokenBridgeCoder=d},25249:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(96505).default,i=n(63298).default,o=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenBridgeInstruction=t.TokenBridgeInstructionCoder=void 0;var s,c=n(83702),u=function(){function e(t){i(this,e)}return o(e,[{key:"encode",value:function(e,t){switch(e){case"initialize":return h=t.wormhole,(y=r.alloc(32)).write(new c.PublicKey(h).toBuffer().toString("hex"),0,"hex"),f(s.Initialize,y);case"attestToken":return function(e){var t=e.nonce,n=r.alloc(4);return n.writeUInt32LE(t,0),f(s.AttestToken,n)}(t);case"completeNative":return a(t),f(s.CompleteNative);case"completeWrapped":return a(t),f(s.CompleteWrapped);case"transferWrapped":return i=(n=t).nonce,o=n.amount,u=n.fee,p=n.targetAddress,b=n.targetChain,f(s.TransferWrapped,d({nonce:i,amount:o,fee:u,targetAddress:p,targetChain:b}));case"transferNative":return function(e){var t=e.nonce,n=e.amount,r=e.fee,a=e.targetAddress,i=e.targetChain;return f(s.TransferNative,d({nonce:t,amount:n,fee:r,targetAddress:a,targetChain:i}))}(t);case"registerChain":return a(t),f(s.RegisterChain);case"createWrapped":return a(t),f(s.CreateWrapped);case"upgradeContract":return a(t),f(s.UpgradeContract);case"transferWrappedWithPayload":return function(e){var t=e.nonce,n=e.amount,r=e.fee,a=e.targetAddress,i=e.targetChain,o=e.payload;return f(s.TransferWrappedWithPayload,l({nonce:t,amount:n,fee:r,targetAddress:a,targetChain:i,payload:o}))}(t);case"transferNativeWithPayload":return function(e){var t=e.nonce,n=e.amount,r=e.fee,a=e.targetAddress,i=e.targetChain,o=e.payload;return f(s.TransferNativeWithPayload,l({nonce:t,amount:n,fee:r,targetAddress:a,targetChain:i,payload:o}))}(t);default:throw new Error("Invalid instruction: ".concat(e))}var n,i,o,u,p,b,h,y}},{key:"encodeState",value:function(e,t){throw new Error("Token Bridge program does not have state")}}]),e}();function f(e,t){var n=void 0===t?0:t.length,a=r.alloc(1+n);return a.writeUInt8(e,0),n>0&&a.write(t.toString("hex"),1,"hex"),a}function d(e){var t=e.nonce,n=e.amount,a=e.fee,i=e.targetAddress,o=e.targetChain;if("bigint"!=typeof n&&(n=BigInt(n)),"bigint"!=typeof a&&(a=BigInt(a)),!r.isBuffer(i))throw new Error("targetAddress must be Buffer");var s=r.alloc(54);return s.writeUInt32LE(t,0),s.writeBigUInt64LE(n,4),s.writeBigUInt64LE(a,12),s.write(i.toString("hex"),20,"hex"),s.writeUInt16LE(o,52),s}function l(e){var t=e.nonce,n=e.amount,a=e.targetAddress,i=e.targetChain,o=e.payload;if("bigint"!=typeof n&&(n=BigInt(n)),!r.isBuffer(a))throw new Error("targetAddress must be Buffer");if(!r.isBuffer(o))throw new Error("payload must be Buffer");var s=r.alloc(50);return s.writeUInt32LE(t,0),s.writeBigUInt64LE(n,4),s.write(a.toString("hex"),12,"hex"),s.writeUInt16LE(i,44),s.writeUInt32LE(o.length,46),r.concat([s,o,r.alloc(1)])}t.TokenBridgeInstructionCoder=u,function(e){e[e.Initialize=0]="Initialize",e[e.AttestToken=1]="AttestToken",e[e.CompleteNative=2]="CompleteNative",e[e.CompleteWrapped=3]="CompleteWrapped",e[e.TransferWrapped=4]="TransferWrapped",e[e.TransferNative=5]="TransferNative",e[e.RegisterChain=6]="RegisterChain",e[e.CreateWrapped=7]="CreateWrapped",e[e.UpgradeContract=8]="UpgradeContract",e[e.CompleteNativeWithPayload=9]="CompleteNativeWithPayload",e[e.CompleteWrappedWithPayload=10]="CompleteWrappedWithPayload",e[e.TransferWrappedWithPayload=11]="TransferWrappedWithPayload",e[e.TransferNativeWithPayload=12]="TransferNativeWithPayload"}(s=t.TokenBridgeInstruction||(t.TokenBridgeInstruction={}))},95498:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenBridgeStateCoder=void 0;var i=function(){function e(t){r(this,e)}return a(e,[{key:"encode",value:function(e,t){throw new Error("Token Bridge program does not have state")}},{key:"decode",value:function(e){throw new Error("Token Bridge program does not have state")}}]),e}();t.TokenBridgeStateCoder=i},12933:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.TokenBridgeTypesCoder=void 0;var i=function(){function e(t){r(this,e)}return a(e,[{key:"encode",value:function(e,t){throw new Error("Token Bridge program does not have user-defined types")}},{key:"decode",value:function(e,t){throw new Error("Token Bridge program does not have user-defined types")}}]),e}();t.TokenBridgeTypesCoder=i},5996:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCompleteTransferWrappedWithPayloadCpiAccounts=t.getCompleteTransferNativeWithPayloadCpiAccounts=t.getTransferWrappedWithPayloadCpiAccounts=t.getTransferNativeWithPayloadCpiAccounts=t.getTokenBridgeDerivedAccounts=void 0;var r=n(13865),a=n(83702),i=n(41072),o=n(15683),s=n(77176),c=n(47398);t.getTokenBridgeDerivedAccounts=function(e,t,n){var r=(0,o.getWormholeDerivedAccounts)(t,n),a=r.wormholeEmitter,i=r.wormholeBridge,c=r.wormholeFeeCollector,u=r.wormholeSequence;return{tokenBridgeConfig:(0,s.deriveTokenBridgeConfigKey)(t),tokenBridgeAuthoritySigner:(0,s.deriveAuthoritySignerKey)(t),tokenBridgeCustodySigner:(0,s.deriveCustodySignerKey)(t),tokenBridgeMintAuthority:(0,s.deriveMintAuthorityKey)(t),tokenBridgeSender:(0,s.deriveSenderAccountKey)(e),tokenBridgeRedeemer:(0,s.deriveRedeemerAccountKey)(e),wormholeBridge:i,tokenBridgeEmitter:a,wormholeFeeCollector:c,tokenBridgeSequence:u}},t.getTransferNativeWithPayloadCpiAccounts=function(e,t,n,r,a,i,o){var s=(0,c.getTransferNativeWithPayloadAccounts)(t,n,r,a,i,o,e);return{payer:s.payer,tokenBridgeConfig:s.config,fromTokenAccount:s.from,mint:s.mint,tokenBridgeCustody:s.custody,tokenBridgeAuthoritySigner:s.authoritySigner,tokenBridgeCustodySigner:s.custodySigner,wormholeBridge:s.wormholeBridge,wormholeMessage:s.wormholeMessage,tokenBridgeEmitter:s.wormholeEmitter,tokenBridgeSequence:s.wormholeSequence,wormholeFeeCollector:s.wormholeFeeCollector,clock:s.clock,tokenBridgeSender:s.sender,rent:s.rent,systemProgram:s.systemProgram,tokenProgram:s.tokenProgram,wormholeProgram:s.wormholeProgram}},t.getTransferWrappedWithPayloadCpiAccounts=function(e,t,n,r,a,i,o,s,u){var f=(0,c.getTransferWrappedWithPayloadAccounts)(t,n,r,a,i,void 0===u?e:u,o,s,e);return{payer:f.payer,tokenBridgeConfig:f.config,fromTokenAccount:f.from,fromTokenAccountOwner:f.fromOwner,tokenBridgeWrappedMint:f.mint,tokenBridgeWrappedMeta:f.wrappedMeta,tokenBridgeAuthoritySigner:f.authoritySigner,wormholeBridge:f.wormholeBridge,wormholeMessage:f.wormholeMessage,tokenBridgeEmitter:f.wormholeEmitter,tokenBridgeSequence:f.wormholeSequence,wormholeFeeCollector:f.wormholeFeeCollector,clock:f.clock,tokenBridgeSender:f.sender,rent:f.rent,systemProgram:f.systemProgram,tokenProgram:f.tokenProgram,wormholeProgram:f.wormholeProgram}},t.getCompleteTransferNativeWithPayloadCpiAccounts=function(e,t,n,c,u){var f=(0,i.isBytes)(c)?(0,i.parseTokenTransferVaa)(c):c,d=new a.PublicKey(f.tokenAddress),l=new a.PublicKey(f.to);return{payer:new a.PublicKey(n),tokenBridgeConfig:(0,s.deriveTokenBridgeConfigKey)(e),vaa:(0,o.derivePostedVaaKey)(t,f.hash),tokenBridgeClaim:(0,o.deriveClaimKey)(e,f.emitterAddress,f.emitterChain,f.sequence),tokenBridgeForeignEndpoint:(0,s.deriveEndpointKey)(e,f.emitterChain,f.emitterAddress),toTokenAccount:new a.PublicKey(u),tokenBridgeRedeemer:(0,s.deriveRedeemerAccountKey)(l),toFeesTokenAccount:new a.PublicKey(u),tokenBridgeCustody:(0,s.deriveCustodyKey)(e,d),mint:d,tokenBridgeCustodySigner:(0,s.deriveCustodySignerKey)(e),rent:a.SYSVAR_RENT_PUBKEY,systemProgram:a.SystemProgram.programId,tokenProgram:r.TOKEN_PROGRAM_ID,wormholeProgram:new a.PublicKey(t)}},t.getCompleteTransferWrappedWithPayloadCpiAccounts=function(e,t,n,c,u){var f=(0,i.isBytes)(c)?(0,i.parseTokenTransferVaa)(c):c,d=(0,s.deriveWrappedMintKey)(e,f.tokenChain,f.tokenAddress),l=new a.PublicKey(f.to);return{payer:new a.PublicKey(n),tokenBridgeConfig:(0,s.deriveTokenBridgeConfigKey)(e),vaa:(0,o.derivePostedVaaKey)(t,f.hash),tokenBridgeClaim:(0,o.deriveClaimKey)(e,f.emitterAddress,f.emitterChain,f.sequence),tokenBridgeForeignEndpoint:(0,s.deriveEndpointKey)(e,f.emitterChain,f.emitterAddress),toTokenAccount:new a.PublicKey(u),tokenBridgeRedeemer:(0,s.deriveRedeemerAccountKey)(l),toFeesTokenAccount:new a.PublicKey(u),tokenBridgeWrappedMint:d,tokenBridgeWrappedMeta:(0,s.deriveWrappedMetaKey)(e,d),tokenBridgeMintAuthority:(0,s.deriveMintAuthorityKey)(e),rent:a.SYSVAR_RENT_PUBKEY,systemProgram:a.SystemProgram.programId,tokenProgram:r.TOKEN_PROGRAM_ID,wormholeProgram:new a.PublicKey(t)}}},34729:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(77176),t),a(n(5996),t),a(n(47398),t),a(n(47626),t)},20353:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createApproveAuthoritySignerInstruction=void 0;var r=n(13865),a=n(83702),i=n(77176);t.createApproveAuthoritySignerInstruction=function(e,t,n,o){return(0,r.createApproveInstruction)(new a.PublicKey(t),(0,i.deriveAuthoritySignerKey)(e),new a.PublicKey(n),o)}},44587:function(e,t,n){"use strict";var r=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getAttestTokenAccounts=t.createAttestTokenInstruction=void 0;var a=n(83702),i=n(47626),o=n(15683),s=n(77176);function c(e,t,n,r,i){var c=(0,o.getPostMessageAccounts)(t,n,e,i),u=c.bridge,f=c.emitter,d=c.sequence,l=c.feeCollector,p=c.clock,b=c.rent,h=c.systemProgram;return{payer:new a.PublicKey(n),config:(0,s.deriveTokenBridgeConfigKey)(e),mint:new a.PublicKey(r),wrappedMeta:(0,s.deriveWrappedMetaKey)(e,r),splMetadata:(0,s.deriveSplTokenMetadataKey)(r),wormholeBridge:u,wormholeMessage:new a.PublicKey(i),wormholeEmitter:f,wormholeSequence:d,wormholeFeeCollector:l,clock:p,rent:b,systemProgram:h,wormholeProgram:new a.PublicKey(t)}}t.createAttestTokenInstruction=function(e,t,n,a,o,s,u){var f=(0,i.createReadOnlyTokenBridgeProgramInterface)(t,e).methods.attestToken(u);return f._ixFn.apply(f,r(f._args).concat([{accounts:c(t,n,a,o,s),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getAttestTokenAccounts=c},27817:function(e,t,n){"use strict";var r=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getCompleteTransferNativeAccounts=t.createCompleteTransferNativeInstruction=void 0;var a=n(83702),i=n(13865),o=n(47626),s=n(15683),c=n(77176),u=n(41072);function f(e,t,n,r,o){var f=(0,u.isBytes)(r)?(0,u.parseTokenTransferVaa)(r):r,d=new a.PublicKey(f.tokenAddress);return{payer:new a.PublicKey(n),config:(0,c.deriveTokenBridgeConfigKey)(e),vaa:(0,s.derivePostedVaaKey)(t,f.hash),claim:(0,s.deriveClaimKey)(e,f.emitterAddress,f.emitterChain,f.sequence),endpoint:(0,c.deriveEndpointKey)(e,f.emitterChain,f.emitterAddress),to:new a.PublicKey(f.to),toFees:new a.PublicKey(void 0===o?f.to:o),custody:(0,c.deriveCustodyKey)(e,d),mint:d,custodySigner:(0,c.deriveCustodySignerKey)(e),rent:a.SYSVAR_RENT_PUBKEY,systemProgram:a.SystemProgram.programId,tokenProgram:i.TOKEN_PROGRAM_ID,wormholeProgram:new a.PublicKey(t)}}t.createCompleteTransferNativeInstruction=function(e,t,n,a,i,s){var c=(0,o.createReadOnlyTokenBridgeProgramInterface)(t,e).methods.completeNative();return c._ixFn.apply(c,r(c._args).concat([{accounts:f(t,n,a,i,s),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getCompleteTransferNativeAccounts=f},54860:function(e,t,n){"use strict";var r=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getCompleteTransferWrappedAccounts=t.createCompleteTransferWrappedInstruction=void 0;var a=n(83702),i=n(13865),o=n(47626),s=n(15683),c=n(77176),u=n(41072);function f(e,t,n,r,o){var f=(0,u.isBytes)(r)?(0,u.parseTokenTransferVaa)(r):r,d=(0,c.deriveWrappedMintKey)(e,f.tokenChain,f.tokenAddress);return{payer:new a.PublicKey(n),config:(0,c.deriveTokenBridgeConfigKey)(e),vaa:(0,s.derivePostedVaaKey)(t,f.hash),claim:(0,s.deriveClaimKey)(e,f.emitterAddress,f.emitterChain,f.sequence),endpoint:(0,c.deriveEndpointKey)(e,f.emitterChain,f.emitterAddress),to:new a.PublicKey(f.to),toFees:new a.PublicKey(void 0===o?f.to:o),mint:d,wrappedMeta:(0,c.deriveWrappedMetaKey)(e,d),mintAuthority:(0,c.deriveMintAuthorityKey)(e),rent:a.SYSVAR_RENT_PUBKEY,systemProgram:a.SystemProgram.programId,tokenProgram:i.TOKEN_PROGRAM_ID,wormholeProgram:new a.PublicKey(t)}}t.createCompleteTransferWrappedInstruction=function(e,t,n,a,i,s){var c=(0,o.createReadOnlyTokenBridgeProgramInterface)(t,e).methods.completeWrapped();return c._ixFn.apply(c,r(c._args).concat([{accounts:f(t,n,a,i,s),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getCompleteTransferWrappedAccounts=f},48932:function(e,t,n){"use strict";var r=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getCreateWrappedAccounts=t.createCreateWrappedInstruction=void 0;var a=n(83702),i=n(13865),o=n(47626),s=n(15683),c=n(77176),u=n(41072),f=n(264);function d(e,t,n,r){var o=(0,u.isBytes)(r)?(0,u.parseAttestMetaVaa)(r):r,d=(0,c.deriveWrappedMintKey)(e,o.tokenChain,o.tokenAddress);return{payer:new a.PublicKey(n),config:(0,c.deriveTokenBridgeConfigKey)(e),endpoint:(0,c.deriveEndpointKey)(e,o.emitterChain,o.emitterAddress),vaa:(0,s.derivePostedVaaKey)(t,o.hash),claim:(0,s.deriveClaimKey)(e,o.emitterAddress,o.emitterChain,o.sequence),mint:d,wrappedMeta:(0,c.deriveWrappedMetaKey)(e,d),splMetadata:(0,c.deriveSplTokenMetadataKey)(d),mintAuthority:(0,c.deriveMintAuthorityKey)(e),rent:a.SYSVAR_RENT_PUBKEY,systemProgram:a.SystemProgram.programId,tokenProgram:i.TOKEN_PROGRAM_ID,splMetadataProgram:f.SplTokenMetadataProgram.programId,wormholeProgram:new a.PublicKey(t)}}t.createCreateWrappedInstruction=function(e,t,n,a,i){var s=(0,o.createReadOnlyTokenBridgeProgramInterface)(t,e).methods.createWrapped();return s._ixFn.apply(s,r(s._args).concat([{accounts:d(t,n,a,i),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getCreateWrappedAccounts=d},73756:function(e,t,n){"use strict";var r=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getUpgradeContractAccounts=t.createUpgradeContractInstruction=t.getRegisterChainAccounts=t.createRegisterChainInstruction=void 0;var a=n(83702),i=n(47626),o=n(15683),s=n(77176),c=n(41072),u=n(264);function f(e,t,n,r){var i=(0,c.isBytes)(r)?(0,c.parseTokenBridgeRegisterChainVaa)(r):r;return{payer:new a.PublicKey(n),config:(0,s.deriveTokenBridgeConfigKey)(e),endpoint:(0,s.deriveEndpointKey)(e,i.foreignChain,i.foreignAddress),vaa:(0,o.derivePostedVaaKey)(t,i.hash),claim:(0,o.deriveClaimKey)(e,i.emitterAddress,i.emitterChain,i.sequence),rent:a.SYSVAR_RENT_PUBKEY,systemProgram:a.SystemProgram.programId,wormholeProgram:new a.PublicKey(t)}}function d(e,t,n,r,i){var f=(0,c.isBytes)(r)?(0,c.parseTokenBridgeUpgradeContractVaa)(r):r;return{payer:new a.PublicKey(n),vaa:(0,o.derivePostedVaaKey)(t,f.hash),claim:(0,o.deriveClaimKey)(e,f.emitterAddress,f.emitterChain,f.sequence),upgradeAuthority:(0,s.deriveUpgradeAuthorityKey)(e),spill:new a.PublicKey(void 0===i?n:i),implementation:new a.PublicKey(f.newContract),programData:(0,u.deriveUpgradeableProgramKey)(e),tokenBridgeProgram:new a.PublicKey(e),rent:a.SYSVAR_RENT_PUBKEY,clock:a.SYSVAR_CLOCK_PUBKEY,bpfLoaderUpgradeable:u.BpfLoaderUpgradeable.programId,systemProgram:a.SystemProgram.programId}}t.createRegisterChainInstruction=function(e,t,n,a){var o=(0,i.createReadOnlyTokenBridgeProgramInterface)(e).methods.registerChain();return o._ixFn.apply(o,r(o._args).concat([{accounts:f(e,t,n,a),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getRegisterChainAccounts=f,t.createUpgradeContractInstruction=function(e,t,n,a,o){var s=(0,i.createReadOnlyTokenBridgeProgramInterface)(e).methods.upgradeContract();return s._ixFn.apply(s,r(s._args).concat([{accounts:d(e,t,n,a,o),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getUpgradeContractAccounts=d},47398:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(20353),t),a(n(44587),t),a(n(27817),t),a(n(54860),t),a(n(48932),t),a(n(87788),t),a(n(73756),t),a(n(555),t),a(n(55783),t),a(n(79899),t),a(n(7011),t)},87788:function(e,t,n){"use strict";var r=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getInitializeAccounts=t.createInitializeInstruction=void 0;var a=n(83702),i=n(47626),o=n(77176);function s(e,t){return{payer:new a.PublicKey(t),config:(0,o.deriveTokenBridgeConfigKey)(e),rent:a.SYSVAR_RENT_PUBKEY,systemProgram:a.SystemProgram.programId}}t.createInitializeInstruction=function(e,t,n){var a=(0,i.createReadOnlyTokenBridgeProgramInterface)(e).methods.initialize(n);return a._ixFn.apply(a,r(a._args).concat([{accounts:s(e,t),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getInitializeAccounts=s},555:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getTransferNativeAccounts=t.createTransferNativeInstruction=void 0;var i=n(83702),o=n(13865),s=n(47626),c=n(15683),u=n(77176);function f(e,t,n,r,a,s){var f=(0,c.getPostMessageCpiAccounts)(e,t,n,r),d=f.wormholeBridge,l=f.wormholeMessage,p=f.wormholeEmitter,b=f.wormholeSequence,h=f.wormholeFeeCollector,y=f.clock,m=f.rent,v=f.systemProgram;return{payer:new i.PublicKey(n),config:(0,u.deriveTokenBridgeConfigKey)(e),from:new i.PublicKey(a),mint:new i.PublicKey(s),custody:(0,u.deriveCustodyKey)(e,s),authoritySigner:(0,u.deriveAuthoritySignerKey)(e),custodySigner:(0,u.deriveCustodySignerKey)(e),wormholeBridge:d,wormholeMessage:l,wormholeEmitter:p,wormholeSequence:b,wormholeFeeCollector:h,clock:y,rent:m,systemProgram:v,tokenProgram:o.TOKEN_PROGRAM_ID,wormholeProgram:new i.PublicKey(t)}}t.createTransferNativeInstruction=function(e,t,n,i,o,c,u,d,l,p,b,h){var y=(0,s.createReadOnlyTokenBridgeProgramInterface)(t,e).methods.transferNative(d,l,p,r.from(b),h);return y._ixFn.apply(y,a(y._args).concat([{accounts:f(t,n,i,o,c,u),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getTransferNativeAccounts=f},55783:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getTransferNativeWithPayloadAccounts=t.createTransferNativeWithPayloadInstruction=void 0;var i=n(83702),o=n(13865),s=n(47626),c=n(15683),u=n(77176);function f(e,t,n,r,a,s,f){var d=(0,c.getPostMessageCpiAccounts)(e,t,n,r),l=d.wormholeBridge,p=d.wormholeMessage,b=d.wormholeEmitter,h=d.wormholeSequence,y=d.wormholeFeeCollector,m=d.clock,v=d.rent,g=d.systemProgram;return{payer:new i.PublicKey(n),config:(0,u.deriveTokenBridgeConfigKey)(e),from:new i.PublicKey(a),mint:new i.PublicKey(s),custody:(0,u.deriveCustodyKey)(e,s),authoritySigner:(0,u.deriveAuthoritySignerKey)(e),custodySigner:(0,u.deriveCustodySignerKey)(e),wormholeBridge:l,wormholeMessage:p,wormholeEmitter:b,wormholeSequence:h,wormholeFeeCollector:y,clock:m,sender:new i.PublicKey(void 0===f?n:(0,u.deriveSenderAccountKey)(f)),rent:v,systemProgram:g,tokenProgram:o.TOKEN_PROGRAM_ID,wormholeProgram:new i.PublicKey(t)}}t.createTransferNativeWithPayloadInstruction=function(e,t,n,i,o,c,u,d,l,p,b,h){var y=(0,s.createReadOnlyTokenBridgeProgramInterface)(t,e).methods.transferNativeWithPayload(d,l,r.from(p),b,r.from(h),null);return y._ixFn.apply(y,a(y._args).concat([{accounts:f(t,n,i,o,c,u),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getTransferNativeWithPayloadAccounts=f},79899:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getTransferWrappedAccounts=t.createTransferWrappedInstruction=void 0;var i=n(83702),o=n(13865),s=n(47626),c=n(15683),u=n(77176);function f(e,t,n,r,a,s,f,d){var l=(0,u.deriveWrappedMintKey)(e,f,d),p=(0,c.getPostMessageCpiAccounts)(e,t,n,r),b=p.wormholeBridge,h=p.wormholeMessage,y=p.wormholeEmitter,m=p.wormholeSequence,v=p.wormholeFeeCollector,g=p.clock,A=p.rent,w=p.systemProgram;return{payer:new i.PublicKey(n),config:(0,u.deriveTokenBridgeConfigKey)(e),from:new i.PublicKey(a),fromOwner:new i.PublicKey(s),mint:l,wrappedMeta:(0,u.deriveWrappedMetaKey)(e,l),authoritySigner:(0,u.deriveAuthoritySignerKey)(e),wormholeBridge:b,wormholeMessage:h,wormholeEmitter:y,wormholeSequence:m,wormholeFeeCollector:v,clock:g,rent:A,systemProgram:w,wormholeProgram:new i.PublicKey(t),tokenProgram:o.TOKEN_PROGRAM_ID}}t.createTransferWrappedInstruction=function(e,t,n,i,o,c,u,d,l,p,b,h,y,m){var v=(0,s.createReadOnlyTokenBridgeProgramInterface)(t,e).methods.transferWrapped(p,b,h,r.from(y),m);return v._ixFn.apply(v,a(v._args).concat([{accounts:f(t,n,i,o,c,u,d,l),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getTransferWrappedAccounts=f},7011:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getTransferWrappedWithPayloadAccounts=t.createTransferWrappedWithPayloadInstruction=void 0;var i=n(83702),o=n(13865),s=n(47626),c=n(15683),u=n(77176);function f(e,t,n,r,a,s,f,d,l){var p=(0,u.deriveWrappedMintKey)(e,f,d),b=(0,c.getPostMessageCpiAccounts)(e,t,n,r),h=b.wormholeBridge,y=b.wormholeMessage,m=b.wormholeEmitter,v=b.wormholeSequence,g=b.wormholeFeeCollector,A=b.clock,w=b.rent,x=b.systemProgram;return{payer:new i.PublicKey(n),config:(0,u.deriveTokenBridgeConfigKey)(e),from:new i.PublicKey(a),fromOwner:new i.PublicKey(s),mint:p,wrappedMeta:(0,u.deriveWrappedMetaKey)(e,p),authoritySigner:(0,u.deriveAuthoritySignerKey)(e),wormholeBridge:h,wormholeMessage:y,wormholeEmitter:m,wormholeSequence:v,wormholeFeeCollector:g,clock:A,sender:new i.PublicKey(void 0===l?n:(0,u.deriveSenderAccountKey)(l)),rent:w,systemProgram:x,wormholeProgram:new i.PublicKey(t),tokenProgram:o.TOKEN_PROGRAM_ID}}t.createTransferWrappedWithPayloadInstruction=function(e,t,n,i,o,c,u,d,l,p,b,h,y,m){var v=(0,s.createReadOnlyTokenBridgeProgramInterface)(t,e).methods.transferWrappedWithPayload(p,b,r.from(h),y,r.from(m),null);return v._ixFn.apply(v,a(v._args).concat([{accounts:f(t,n,i,o,c,u,d,l),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getTransferWrappedWithPayloadAccounts=f},47626:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.coder=t.createReadOnlyTokenBridgeProgramInterface=t.createTokenBridgeProgramInterface=void 0;var a=n(83702),i=n(59818),o=n(264),s=n(45876),c=r(n(57898));function u(e,t){return new i.Program(c.default,new a.PublicKey(e),void 0===t?{connection:null}:t,f())}function f(){return new s.TokenBridgeCoder(c.default)}t.createTokenBridgeProgramInterface=u,t.createReadOnlyTokenBridgeProgramInterface=function(e,t){return u(e,(0,o.createReadOnlyProvider)(t))},t.coder=f},1108:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAccountData=t.newReadOnlyAccountMeta=t.newAccountMeta=t.deriveAddress=void 0;var r=n(83702);t.deriveAddress=function(e,t){return r.PublicKey.findProgramAddressSync(e,new r.PublicKey(t))[0]},t.newAccountMeta=function(e,t){return{pubkey:new r.PublicKey(e),isWritable:!0,isSigner:t}},t.newReadOnlyAccountMeta=function(e,t){return{pubkey:new r.PublicKey(e),isWritable:!1,isSigner:t}},t.getAccountData=function(e){if(null===e)throw Error("account info is null");return e.data}},36683:function(e,t,n){"use strict";var r=n(51795).default,a=n(63298).default;Object.defineProperty(t,"__esModule",{value:!0}),t.deriveUpgradeableProgramKey=t.BpfLoaderUpgradeable=void 0;var i=n(83702),o=n(1108),s=r((function e(){a(this,e)}));t.BpfLoaderUpgradeable=s,s.programId=new i.PublicKey("BPFLoaderUpgradeab1e11111111111111111111111"),t.deriveUpgradeableProgramKey=function(e){return(0,o.deriveAddress)([new i.PublicKey(e).toBuffer()],s.programId)}},11924:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createReadOnlyProvider=void 0,t.createReadOnlyProvider=function(e){if(void 0!==e)return{connection:e}}},264:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(1108),t),a(n(36683),t),a(n(11924),t),a(n(37515),t),a(n(37310),t),a(n(83233),t)},37515:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(63298).default,i=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1SignatureOffsets=t.createSecp256k1Instruction=t.ETHEREUM_KEY_LENGTH=t.SIGNATURE_LENGTH=void 0;var o=n(83702);t.SIGNATURE_LENGTH=65,t.ETHEREUM_KEY_LENGTH=20,t.createSecp256k1Instruction=function(e,t,n){return{keys:[],programId:o.Secp256k1Program.programId,data:s.serialize(e,t,n)}};var s=function(){function e(){a(this,e)}return i(e,null,[{key:"serialize",value:function(e,n,a){if(0==e.length)throw Error("signatures.length == 0");if(e.length!=n.length)throw Error("signatures.length != keys.length");if(32!=a.length)throw Error("message.length != 32");var i=e.length,o=11,s=1+i*o,c=t.SIGNATURE_LENGTH+t.ETHEREUM_KEY_LENGTH,u=s+i*c,f=r.alloc(u+32);f.writeUInt8(i,0),f.write(a.toString("hex"),u,"hex");for(var d=0;d0,t.readUInt8(33))}}]),e}();t.Creator=h,h.size=34;var y=function(){function e(t,n,r,a,i){d(this,e),this.name=t,this.symbol=n,this.uri=r,this.sellerFeeBasisPoints=a,this.creators=i}return l(e,[{key:"serialize",value:function(){var e=this.name.length,t=this.symbol.length,n=this.uri.length,a=this.creators,i=function(){if(null===a)return[0,0];var e=a.length;return[e,4+e*h.size]}(),o=f(i,2),s=o[0],c=o[1],u=r.alloc(15+e+t+n+c);if(u.writeUInt32LE(e,0),u.write(this.name,4),u.writeUInt32LE(t,4+e),u.write(this.symbol,8+e),u.writeUInt32LE(n,8+e+t),u.write(this.uri,12+e+t),u.writeUInt16LE(this.sellerFeeBasisPoints,12+e+t+n),null===a)u.writeUInt8(0,14+e+t+n);else{u.writeUInt8(1,14+e+t+n),u.writeUInt32LE(s,15+e+t+n);for(var d=0;d6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,f=arguments.length>9?arguments[9]:void 0,d=arguments.length>10&&void 0!==arguments[10]&&arguments[10],l=arguments.length>11&&void 0!==arguments[11]?arguments[11]:A(n),h=[(0,b.newAccountMeta)(l,!1),(0,b.newReadOnlyAccountMeta)(n,!1),(0,b.newReadOnlyAccountMeta)(r,!0),(0,b.newReadOnlyAccountMeta)(t,!0),(0,b.newReadOnlyAccountMeta)(o,s),(0,b.newReadOnlyAccountMeta)(p.SystemProgram.programId,!1),(0,b.newReadOnlyAccountMeta)(p.SYSVAR_RENT_PUBKEY,!1)],y=m.serializeInstructionData(a,i,void 0===c?"":c,void 0===f?0:f,void 0===u?null:u,d);return{programId:e.programId,keys:h,data:y}}}]),e}();function A(e){return(0,b.deriveAddress)([r.from("metadata"),g.programId.toBuffer(),new p.PublicKey(e).toBuffer()],g.programId)}t.SplTokenMetadataProgram=g,g.programId=new p.PublicKey("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"),t.deriveSplTokenMetadataKey=A,(v=t.Key||(t.Key={}))[v.Uninitialized=0]="Uninitialized",v[v.EditionV1=1]="EditionV1",v[v.MasterEditionV1=2]="MasterEditionV1",v[v.ReservationListV1=3]="ReservationListV1",v[v.MetadataV1=4]="MetadataV1",v[v.ReservationListV2=5]="ReservationListV2",v[v.MasterEditionV2=6]="MasterEditionV2",v[v.EditionMarker=7]="EditionMarker";var w=function(){function e(t,n,r,a,i,o){d(this,e),this.key=t,this.updateAuthority=new p.PublicKey(n),this.mint=new p.PublicKey(r),this.data=a,this.primarySaleHappened=i,this.isMutable=o}return l(e,null,[{key:"deserialize",value:function(t){var n=t.readUInt8(0),r=t.subarray(1,33),a=t.subarray(33,65),i=y.deserialize(t.subarray(65)),o=i.serialize().length;return new e(n,r,a,i,t.readUInt8(65+o)>0,t.readUInt8(66+o)>0)}}]),e}();function x(){return(x=i(a().mark((function e(t,n,r){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.getAccountInfo(A(n),r).then((function(e){return w.deserialize((0,b.getAccountData)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.Metadata=w,t.getMetadata=function(e,t,n){return x.apply(this,arguments)}},83233:function(e,t,n){"use strict";var r=n(62503).default,a=n(21146).default,i=n(63333).default,o=n(37240).default,s=n(63298).default,c=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.sendAndConfirmTransactionsWithRetry=t.signSendAndConfirmTransaction=t.NodeWallet=t.modifySignTransaction=t.signTransactionFactory=void 0;var u=n(83702);function f(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r4&&void 0!==w[4]?w[4]:0,f=w.length>5?w[5]:void 0,0!=s.length){e.next=4;break}return e.abrupt("return",Promise.reject("No transactions provided to send."));case 4:d=null==f?void 0:f.commitment,l=0,p=[],b=a(s),e.prev=8,b.s();case 10:if((h=b.n()).done){e.next=44;break}y=h.value;case 12:if(!(l<=c)){e.next=40;break}return e.prev=13,e.next=16,t.getLatestBlockhash(d);case 16:return m=e.sent,y.recentBlockhash=m.blockhash,y.feePayer=new u.PublicKey(o),e.next=21,n(y).catch((function(e){return null}));case 21:if(null!==(v=e.sent)){e.next=24;break}return e.abrupt("return",Promise.reject("Failed to sign transaction."));case 24:return e.next=26,t.sendRawTransaction(v.serialize(),f);case 26:return g=e.sent,e.next=29,t.confirmTransaction(r({signature:g},m),d);case 29:return A=e.sent,p.push({signature:g,response:A}),e.abrupt("break",40);case 34:e.prev=34,e.t0=e.catch(13),console.error(e.t0),++l;case 38:e.next=12;break;case 40:if(!(l>c)){e.next=42;break}return e.abrupt("return",Promise.reject("Reached the maximum number of retries."));case 42:e.next=10;break;case 44:e.next=49;break;case 46:e.prev=46,e.t1=e.catch(8),b.e(e.t1);case 49:return e.prev=49,b.f(),e.finish(49);case 52:return e.abrupt("return",Promise.resolve(p));case 53:case"end":return e.stop()}}),e,null,[[8,46,49,52],[13,34]])}))),b.apply(this,arguments)}t.NodeWallet=l,t.signSendAndConfirmTransaction=function(e,t,n,r,a){return p.apply(this,arguments)},t.sendAndConfirmTransactionsWithRetry=function(e,t,n,r){return b.apply(this,arguments)}},1299:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(63333).default,i=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getClaim=t.deriveClaimKey=void 0;var o=n(264);function s(e,t,n,a){var i="string"==typeof t?r.from(t,"hex"):r.from(t);if(32!=i.length)throw Error("address.length != 32");var s,c=r.alloc(8);return c.writeBigUInt64BE("number"==typeof a?BigInt(a):a),(0,o.deriveAddress)([i,(s=r.alloc(2),s.writeUInt16BE(n),s),c],e)}function c(){return(c=i(a().mark((function e(t,n,r,i,c,u){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.getAccountInfo(s(n,r,i,c),u).then((function(e){return!!(0,o.getAccountData)(e)[0]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.deriveClaimKey=s,t.getClaim=function(e,t,n,r,a,i){return c.apply(this,arguments)}},93607:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(63333).default,i=n(63298).default,o=n(51795).default,s=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.BridgeData=t.BridgeConfig=t.getWormholeBridgeData=t.deriveWormholeBridgeDataKey=void 0;var c=n(264);function u(e){return(0,c.deriveAddress)([r.from("Bridge")],e)}function f(){return(f=s(a().mark((function e(t,n,r){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.getAccountInfo(u(n),r).then((function(e){return l.deserialize((0,c.getAccountData)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.deriveWormholeBridgeDataKey=u,t.getWormholeBridgeData=function(e,t,n){return f.apply(this,arguments)};var d=function(){function e(t,n){i(this,e),this.guardianSetExpirationTime=t,this.fee=n}return o(e,null,[{key:"deserialize",value:function(t){if(12!=t.length)throw new Error("data.length != 12");return new e(t.readUInt32LE(0),t.readBigUInt64LE(4))}}]),e}();t.BridgeConfig=d;var l=function(){function e(t,n,r){i(this,e),this.guardianSetIndex=t,this.lastLamports=n,this.config=r}return o(e,null,[{key:"deserialize",value:function(t){if(24!=t.length)throw new Error("data.length != 24");return new e(t.readUInt32LE(0),t.readBigUInt64LE(4),d.deserialize(t.subarray(12)))}}]),e}();t.BridgeData=l},46818:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(63333).default,i=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getProgramSequenceTracker=t.getEmitterKeys=t.deriveWormholeEmitterKey=void 0;var o=n(264),s=n(47645);function c(e){return(0,o.deriveAddress)([r.from("emitter")],e)}function u(){return(u=i(a().mark((function e(t,n,r,i){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,s.getSequenceTracker)(t,c(n),r,i));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.deriveWormholeEmitterKey=c,t.getEmitterKeys=function(e,t){var n=c(e);return{emitter:n,sequence:(0,s.deriveEmitterSequenceKey)(n,t)}},t.getProgramSequenceTracker=function(e,t,n,r){return u.apply(this,arguments)}},73215:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.deriveFeeCollectorKey=void 0;var a=n(264);t.deriveFeeCollectorKey=function(e){return(0,a.deriveAddress)([r.from("fee_collector")],e)}},84710:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(63333).default,i=n(63298).default,o=n(51795).default,s=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.GuardianSetData=t.getGuardianSet=t.deriveGuardianSetKey=void 0;var c=n(264);function u(e,t){return(0,c.deriveAddress)([r.from("GuardianSet"),(n=r.alloc(4),n.writeUInt32BE(t),n)],e);var n}function f(){return(f=s(a().mark((function e(t,n,r,i){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t.getAccountInfo(u(n,r),i).then((function(e){return d.deserialize((0,c.getAccountData)(e))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.deriveGuardianSetKey=u,t.getGuardianSet=function(e,t,n,r){return f.apply(this,arguments)};var d=function(){function e(t,n,r,a){i(this,e),this.index=t,this.keys=n,this.creationTime=r,this.expirationTime=a}return o(e,null,[{key:"deserialize",value:function(t){for(var n=t.readUInt32LE(0),r=t.readUInt32LE(4),a=8+r*c.ETHEREUM_KEY_LENGTH,i=t.readUInt32LE(a),o=t.readUInt32LE(4+a),s=[],u=0;u1&&void 0!==arguments[1]?arguments[1]:"hex")?r.from(e,"hex"):l.default.decode(e));var n=e.slice(0,1).readInt8(),a=e.slice(1),i=(0,p.camelCase)(d[n]);return this.ixLayout.get(i)?{data:null===(t=this.ixLayout.get(i))||void 0===t?void 0:t.decode(a),name:i}:null}}],[{key:"parseIxLayout",value:function(e){var t=(e.state?e.state.methods:[]).map((function(t){var n=t.args.map((function(t){var n,r;return h.IdlCoder.fieldLayout(t,Array.from([].concat(a(null!==(n=e.accounts)&&void 0!==n?n:[]),a(null!==(r=e.types)&&void 0!==r?r:[]))))})),r=(0,p.camelCase)(t.name);return[r,b.struct(n,r)]})).concat(e.instructions.map((function(t){var n=t.args.map((function(t){var n,r;return h.IdlCoder.fieldLayout(t,Array.from([].concat(a(null!==(n=e.accounts)&&void 0!==n?n:[]),a(null!==(r=e.types)&&void 0!==r?r:[]))))})),r=(0,p.camelCase)(t.name);return[r,b.struct(n,r)]})));return new Map(t)}}]),e}();t.WormholeInstructionCoder=y,function(e){e[e.Initialize=0]="Initialize",e[e.PostMessage=1]="PostMessage",e[e.PostVaa=2]="PostVaa",e[e.SetFees=3]="SetFees",e[e.TransferFees=4]="TransferFees",e[e.UpgradeContract=5]="UpgradeContract",e[e.UpgradeGuardianSet=6]="UpgradeGuardianSet",e[e.VerifySignatures=7]="VerifySignatures",e[e.PostMessageUnreliable=8]="PostMessageUnreliable"}(d=t.WormholeInstruction||(t.WormholeInstruction={}))},50568:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.WormholeStateCoder=void 0;var i=function(){function e(t){r(this,e)}return a(e,[{key:"encode",value:function(e,t){throw new Error("Wormhole program does not have state")}},{key:"decode",value:function(e){throw new Error("Wormhole program does not have state")}}]),e}();t.WormholeStateCoder=i},64346:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.WormholeTypesCoder=void 0;var i=function(){function e(t){r(this,e)}return a(e,[{key:"encode",value:function(e,t){throw new Error("Wormhole program does not have user-defined types")}},{key:"decode",value:function(e,t){throw new Error("Wormhole program does not have user-defined types")}}]),e}();t.WormholeTypesCoder=i},39202:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPostMessageCpiAccounts=t.getWormholeDerivedAccounts=void 0;var r=n(9406),a=n(45402);t.getWormholeDerivedAccounts=function(e,t){var n=(0,r.getEmitterKeys)(e,t),a=n.emitter,i=n.sequence;return{wormholeBridge:(0,r.deriveWormholeBridgeDataKey)(t),wormholeEmitter:a,wormholeSequence:i,wormholeFeeCollector:(0,r.deriveFeeCollectorKey)(t)}},t.getPostMessageCpiAccounts=function(e,t,n,r){var i=(0,a.getPostMessageAccounts)(t,n,e,r);return{payer:i.payer,wormholeBridge:i.bridge,wormholeMessage:i.message,wormholeEmitter:i.emitter,wormholeSequence:i.sequence,wormholeFeeCollector:i.feeCollector,clock:i.clock,rent:i.rent,systemProgram:i.systemProgram}}},15683:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(9406),t),a(n(39202),t),a(n(45402),t),a(n(64843),t),a(n(4368),t)},36228:function(e,t,n){"use strict";var r=n(63333).default,a=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.createBridgeFeeTransferInstruction=void 0;var i=n(83702),o=n(9406);function s(){return(s=a(r().mark((function e(t,n,a,s){var c;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,o.getWormholeBridgeData)(t,n,s).then((function(e){return e.config.fee}));case 2:return c=e.sent,e.abrupt("return",i.SystemProgram.transfer({fromPubkey:new i.PublicKey(a),toPubkey:(0,o.deriveFeeCollectorKey)(n),lamports:c}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.createBridgeFeeTransferInstruction=function(e,t,n,r){return s.apply(this,arguments)}},78269:function(e,t,n){"use strict";var r=n(48648).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getUpgradeContractAccounts=t.createUpgradeContractInstruction=t.getUpgradeGuardianSetAccounts=t.createUpgradeGuardianSetInstruction=t.getTransferFeesAccounts=t.createTransferFeesInstruction=t.getSetFeesAccounts=t.createSetFeesInstruction=void 0;var a=n(83702),i=n(41072),o=n(4368),s=n(9406),c=n(264);function u(e,t,n){var r=(0,i.isBytes)(n)?(0,i.parseGovernanceVaa)(n):n;return{payer:new a.PublicKey(t),bridge:(0,s.deriveWormholeBridgeDataKey)(e),vaa:(0,s.derivePostedVaaKey)(e,r.hash),claim:(0,s.deriveClaimKey)(e,r.emitterAddress,r.emitterChain,r.sequence),systemProgram:a.SystemProgram.programId}}function f(e,t,n,r){var o=(0,i.isBytes)(r)?(0,i.parseGovernanceVaa)(r):r;return{payer:new a.PublicKey(t),bridge:(0,s.deriveWormholeBridgeDataKey)(e),vaa:(0,s.derivePostedVaaKey)(e,o.hash),claim:(0,s.deriveClaimKey)(e,o.emitterAddress,o.emitterChain,o.sequence),feeCollector:(0,s.deriveFeeCollectorKey)(e),recipient:new a.PublicKey(n),rent:a.SYSVAR_RENT_PUBKEY,systemProgram:a.SystemProgram.programId}}function d(e,t,n){var r=(0,i.isBytes)(n)?(0,i.parseGovernanceVaa)(n):n;return{payer:new a.PublicKey(t),bridge:(0,s.deriveWormholeBridgeDataKey)(e),vaa:(0,s.derivePostedVaaKey)(e,r.hash),claim:(0,s.deriveClaimKey)(e,r.emitterAddress,r.emitterChain,r.sequence),guardianSetOld:(0,s.deriveGuardianSetKey)(e,r.guardianSetIndex),guardianSetNew:(0,s.deriveGuardianSetKey)(e,r.guardianSetIndex+1),systemProgram:a.SystemProgram.programId}}function l(e,t,n,r){var o=(0,i.isBytes)(n)?(0,i.parseGovernanceVaa)(n):n,u=o.orderPayload;if(32!=u.length)throw new Error("implementation.length != 32");return{payer:new a.PublicKey(t),bridge:(0,s.deriveWormholeBridgeDataKey)(e),vaa:(0,s.derivePostedVaaKey)(e,o.hash),claim:(0,s.deriveClaimKey)(e,o.emitterAddress,o.emitterChain,o.sequence),upgradeAuthority:(0,s.deriveUpgradeAuthorityKey)(e),spill:new a.PublicKey(void 0===r?t:r),implementation:new a.PublicKey(u),programData:(0,c.deriveUpgradeableProgramKey)(e),wormholeProgram:new a.PublicKey(e),rent:a.SYSVAR_RENT_PUBKEY,clock:a.SYSVAR_CLOCK_PUBKEY,bpfLoaderUpgradeable:c.BpfLoaderUpgradeable.programId,systemProgram:a.SystemProgram.programId}}t.createSetFeesInstruction=function(e,t,n,a){var i=(0,o.createReadOnlyWormholeProgramInterface)(t,e).methods.setFees();return i._ixFn.apply(i,r(i._args).concat([{accounts:u(t,n,a),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getSetFeesAccounts=u,t.createTransferFeesInstruction=function(e,t,n,a,i){var s=(0,o.createReadOnlyWormholeProgramInterface)(t,e).methods.transferFees();return s._ixFn.apply(s,r(s._args).concat([{accounts:f(t,n,a,i),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getTransferFeesAccounts=f,t.createUpgradeGuardianSetInstruction=function(e,t,n,a){var i=(0,o.createReadOnlyWormholeProgramInterface)(t,e).methods.upgradeGuardianSet();return i._ixFn.apply(i,r(i._args).concat([{accounts:d(t,n,a),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getUpgradeGuardianSetAccounts=d,t.createUpgradeContractInstruction=function(e,t,n,a){var i=(0,o.createReadOnlyWormholeProgramInterface)(t,e).methods.upgradeContract();return i._ixFn.apply(i,r(i._args).concat([{accounts:l(t,n,a),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getUpgradeContractAccounts=l},45402:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(36228),t),a(n(78269),t),a(n(41597),t),a(n(39897),t),a(n(16893),t),a(n(13043),t)},41597:function(e,t,n){"use strict";var r=n(48648).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getInitializeAccounts=t.createInitializeInstruction=void 0;var i=n(83702),o=n(4368),s=n(9406),c=a(n(7134));function u(e,t){return{bridge:(0,s.deriveWormholeBridgeDataKey)(e),guardianSet:(0,s.deriveGuardianSetKey)(e,0),feeCollector:(0,s.deriveFeeCollectorKey)(e),payer:new i.PublicKey(t),clock:i.SYSVAR_CLOCK_PUBKEY,rent:i.SYSVAR_RENT_PUBKEY,systemProgram:i.SystemProgram.programId}}t.createInitializeInstruction=function(e,t,n,a,i,s){var f=(0,o.createReadOnlyWormholeProgramInterface)(t,e).methods.initialize(a,new c.default(i.toString()),r(s));return f._ixFn.apply(f,r(f._args).concat([{accounts:u(t,n),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getInitializeAccounts=u},39897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPostMessageAccounts=void 0;var r=n(83702),a=n(9406);t.getPostMessageAccounts=function(e,t,n,i){var o=(0,a.getEmitterKeys)(n,e),s=o.emitter,c=o.sequence;return{bridge:(0,a.deriveWormholeBridgeDataKey)(e),message:new r.PublicKey(i),emitter:s,sequence:c,payer:new r.PublicKey(t),feeCollector:(0,a.deriveFeeCollectorKey)(e),clock:r.SYSVAR_CLOCK_PUBKEY,rent:r.SYSVAR_RENT_PUBKEY,systemProgram:r.SystemProgram.programId}}},16893:function(e,t,n){"use strict";var r=n(48648).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getPostVaaAccounts=t.createPostVaaInstruction=void 0;var i=n(83702),o=n(4368),s=n(9406),c=n(41072),u=a(n(7134));function f(e,t,n,r){var a=(0,c.isBytes)(r)?(0,c.parseVaa)(r):r;return{guardianSet:(0,s.deriveGuardianSetKey)(e,a.guardianSetIndex),bridge:(0,s.deriveWormholeBridgeDataKey)(e),signatureSet:new i.PublicKey(n),vaa:(0,s.derivePostedVaaKey)(e,a.hash),payer:new i.PublicKey(t),clock:i.SYSVAR_CLOCK_PUBKEY,rent:i.SYSVAR_RENT_PUBKEY,systemProgram:i.SystemProgram.programId}}t.createPostVaaInstruction=function(e,t,n,a,i){var s=(0,c.isBytes)(a)?(0,c.parseVaa)(a):a,d=(0,o.createReadOnlyWormholeProgramInterface)(t,e).methods.postVaa(s.version,s.guardianSetIndex,s.timestamp,s.nonce,s.emitterChain,r(s.emitterAddress),new u.default(s.sequence.toString()),s.consistencyLevel,s.payload);return d._ixFn.apply(d,r(d._args).concat([{accounts:f(t,n,i,s),signers:void 0,remainingAccounts:void 0,preInstructions:void 0,postInstructions:void 0}]))},t.getPostVaaAccounts=f},13043:function(e,t,n){"use strict";var r=n(63333).default,a=n(48648).default,i=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getVerifySignatureAccounts=t.createVerifySignaturesInstructions=void 0;var o=n(83702),s=n(264),c=n(9406),u=n(41072),f=n(4368);function d(){return(d=i(r().mark((function e(t,n,a,i,o,f){var d,p,b,h,y,m,v,g,A,w,x,_,k,S,I,E;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d=(0,u.isBytes)(i)?(0,u.parseVaa)(i):i,p=d.guardianSetIndex,e.next=4,(0,c.getWormholeBridgeData)(t,n);case 4:if(b=e.sent,p==b.guardianSetIndex){e.next=7;break}throw new Error("guardianSetIndex != config.guardianSetIndex");case 7:return e.next=9,(0,c.getGuardianSet)(t,n,p,f);case 9:for(h=e.sent,y=d.guardianSignatures,m=h.keys,v=[],g=0;g0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}(t,2),r=n[0];return e[n[1]]=r,e}),{});function ae(e){return"number"==typeof e?e in re:e in _}function ie(e){if(!ae(e))throw"number"==typeof e?Error("Unknown chain id: "+e):Error("Unknown chain: "+e)}function oe(e){return _[e]}function se(e){return re[e]}function ce(e){return _[e]}function ue(e){return"number"==typeof e&&pe(e)?e:ce(e)}function fe(e){return"number"==typeof e&&ae(e)?e:oe(e)}function de(e){return se(fe(e))}function le(e){var t=fe(e);return t===E||t===T||t===P||t===O||t===M||t===R||t===N||t===D||t===j||t===U||t===L||t===F||t===H||t===J||t===G||t===W||t===ee||t===ne}function pe(e){var t=fe(e);return t===C||t===z||t===q||t===X}function be(e){var t=fe(e);return t===C||t===z}function he(e){if(!le(e))throw Error("Expected an EVM chain, but "+e+" is not")}var ye,me,ve,ge,Ae,we,xe="So11111111111111111111111111111111111111112",_e=9,ke=8,Se="0108bc32f7de18a5f6e1e7d6ee7aff9f5fc858d0d87ac0da94dd8d2a5d267d6b",Ie="277fa055b6a73c42c0662d5236c65c864ccbf2d4abd21f174a30c8b786eab84b",Ee="0000000000000000000000000000000000000000000000000000000000000001",Ce="terra1x46rqay4d3cssq8gxxvqz8xt6nwlz4td20k38v",Te=n(12620),Oe=n.n(Te),Pe=n(44698),Me=n.n(Pe);Me().util.Long!==Oe()&&(Me().util.Long=Oe(),Me().configure()),Me().util.Long!==Oe()&&(Me().util.Long=Oe(),Me().configure()),function(e){e[e.TYPE_DOUBLE=1]="TYPE_DOUBLE",e[e.TYPE_FLOAT=2]="TYPE_FLOAT",e[e.TYPE_INT64=3]="TYPE_INT64",e[e.TYPE_UINT64=4]="TYPE_UINT64",e[e.TYPE_INT32=5]="TYPE_INT32",e[e.TYPE_FIXED64=6]="TYPE_FIXED64",e[e.TYPE_FIXED32=7]="TYPE_FIXED32",e[e.TYPE_BOOL=8]="TYPE_BOOL",e[e.TYPE_STRING=9]="TYPE_STRING",e[e.TYPE_GROUP=10]="TYPE_GROUP",e[e.TYPE_MESSAGE=11]="TYPE_MESSAGE",e[e.TYPE_BYTES=12]="TYPE_BYTES",e[e.TYPE_UINT32=13]="TYPE_UINT32",e[e.TYPE_ENUM=14]="TYPE_ENUM",e[e.TYPE_SFIXED32=15]="TYPE_SFIXED32",e[e.TYPE_SFIXED64=16]="TYPE_SFIXED64",e[e.TYPE_SINT32=17]="TYPE_SINT32",e[e.TYPE_SINT64=18]="TYPE_SINT64",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ye||(ye={})),function(e){e[e.LABEL_OPTIONAL=1]="LABEL_OPTIONAL",e[e.LABEL_REQUIRED=2]="LABEL_REQUIRED",e[e.LABEL_REPEATED=3]="LABEL_REPEATED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(me||(me={})),function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ve||(ve={})),function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ge||(ge={})),function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Ae||(Ae={})),function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(we||(we={}));var Be=function(){if(void 0!==Be)return Be;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}();Be.atob,Be.btoa,Me().util.Long!==Oe()&&(Me().util.Long=Oe(),Me().configure());var Re=function(){return Re=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},De={nodeName:"",counter:"0",timestamp:"0",version:"",guardianAddr:"",bootTimestamp:"0",features:""},je=function(e,t){var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Re({},De);for(a.networks=[],a.features=[];n.pos>>3){case 1:a.nodeName=n.string();break;case 2:a.counter=Ke(n.int64());break;case 3:a.timestamp=Ke(n.int64());break;case 4:a.networks.push(Le.decode(n,n.uint32()));break;case 5:a.version=n.string();break;case 6:a.guardianAddr=n.string();break;case 7:a.bootTimestamp=Ke(n.int64());break;case 8:a.features.push(n.string());break;default:n.skipType(7&i)}}return a},Ue={id:0,height:"0",contractAddress:"",errorCount:"0"},Le={encode:function(e,t){return void 0===t&&(t=Me().Writer.create()),0!==e.id&&t.uint32(8).uint32(e.id),"0"!==e.height&&t.uint32(16).int64(e.height),""!==e.contractAddress&&t.uint32(26).string(e.contractAddress),"0"!==e.errorCount&&t.uint32(32).uint64(e.errorCount),t},decode:function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Re({},Ue);n.pos>>3){case 1:a.id=n.uint32();break;case 2:a.height=Ke(n.int64());break;case 3:a.contractAddress=n.string();break;case 4:a.errorCount=Ke(n.uint64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Re({},Ue);return void 0!==e.id&&null!==e.id?t.id=Number(e.id):t.id=0,void 0!==e.height&&null!==e.height?t.height=String(e.height):t.height="0",void 0!==e.contractAddress&&null!==e.contractAddress?t.contractAddress=String(e.contractAddress):t.contractAddress="",void 0!==e.errorCount&&null!==e.errorCount?t.errorCount=String(e.errorCount):t.errorCount="0",t},toJSON:function(e){var t={};return void 0!==e.id&&(t.id=e.id),void 0!==e.height&&(t.height=e.height),void 0!==e.contractAddress&&(t.contractAddress=e.contractAddress),void 0!==e.errorCount&&(t.errorCount=e.errorCount),t},fromPartial:function(e){var t=Re({},Ue);return void 0!==e.id&&null!==e.id?t.id=e.id:t.id=0,void 0!==e.height&&null!==e.height?t.height=e.height:t.height="0",void 0!==e.contractAddress&&null!==e.contractAddress?t.contractAddress=e.contractAddress:t.contractAddress="",void 0!==e.errorCount&&null!==e.errorCount?t.errorCount=e.errorCount:t.errorCount="0",t}},Ze={},Fe=function(e,t){var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Re({},Ze);for(a.vaa=new Uint8Array;n.pos>>3==1?a.vaa=n.bytes():n.skipType(7&i)}return a},He={chainId:0},ze={chainId:0,nonce:0,batchId:""},qe=function(e,t){var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Re({},ze);for(a.batchVaa=new Uint8Array,a.txId=new Uint8Array;n.pos>>3){case 1:a.batchVaa=n.bytes();break;case 2:a.chainId=n.uint32();break;case 3:a.txId=n.bytes();break;case 4:a.nonce=n.uint32();break;case 5:a.batchId=n.string();break;default:n.skipType(7&i)}}return a},Qe=function(){if(void 0!==Qe)return Qe;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}();Qe.atob;Qe.btoa;function Ke(e){return e.toString()}Me().util.Long!==Oe()&&(Me().util.Long=Oe(),Me().configure());var Ve=n(24840),Je=n(84587),Ge=function(){return Ge=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ye={currentSetIndex:0,timestamp:0},Xe={sequence:"0",nonce:0},$e={encode:function(e,t){return void 0===t&&(t=Me().Writer.create()),"0"!==e.sequence&&t.uint32(16).uint64(e.sequence),0!==e.nonce&&t.uint32(24).uint32(e.nonce),void 0!==e.guardianSet&&nt.encode(e.guardianSet,t.uint32(82).fork()).ldelim(),void 0!==e.contractUpgrade&&ct.encode(e.contractUpgrade,t.uint32(90).fork()).ldelim(),void 0!==e.bridgeRegisterChain&&ot.encode(e.bridgeRegisterChain,t.uint32(98).fork()).ldelim(),void 0!==e.bridgeContractUpgrade&&ft.encode(e.bridgeContractUpgrade,t.uint32(106).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ge({},Xe);n.pos>>3){case 2:a.sequence=Zt(n.uint64());break;case 3:a.nonce=n.uint32();break;case 10:a.guardianSet=nt.decode(n,n.uint32());break;case 11:a.contractUpgrade=ct.decode(n,n.uint32());break;case 12:a.bridgeRegisterChain=ot.decode(n,n.uint32());break;case 13:a.bridgeContractUpgrade=ft.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Ge({},Xe);return void 0!==e.sequence&&null!==e.sequence?t.sequence=String(e.sequence):t.sequence="0",void 0!==e.nonce&&null!==e.nonce?t.nonce=Number(e.nonce):t.nonce=0,void 0!==e.guardianSet&&null!==e.guardianSet?t.guardianSet=nt.fromJSON(e.guardianSet):t.guardianSet=void 0,void 0!==e.contractUpgrade&&null!==e.contractUpgrade?t.contractUpgrade=ct.fromJSON(e.contractUpgrade):t.contractUpgrade=void 0,void 0!==e.bridgeRegisterChain&&null!==e.bridgeRegisterChain?t.bridgeRegisterChain=ot.fromJSON(e.bridgeRegisterChain):t.bridgeRegisterChain=void 0,void 0!==e.bridgeContractUpgrade&&null!==e.bridgeContractUpgrade?t.bridgeContractUpgrade=ft.fromJSON(e.bridgeContractUpgrade):t.bridgeContractUpgrade=void 0,t},toJSON:function(e){var t={};return void 0!==e.sequence&&(t.sequence=e.sequence),void 0!==e.nonce&&(t.nonce=e.nonce),void 0!==e.guardianSet&&(t.guardianSet=e.guardianSet?nt.toJSON(e.guardianSet):void 0),void 0!==e.contractUpgrade&&(t.contractUpgrade=e.contractUpgrade?ct.toJSON(e.contractUpgrade):void 0),void 0!==e.bridgeRegisterChain&&(t.bridgeRegisterChain=e.bridgeRegisterChain?ot.toJSON(e.bridgeRegisterChain):void 0),void 0!==e.bridgeContractUpgrade&&(t.bridgeContractUpgrade=e.bridgeContractUpgrade?ft.toJSON(e.bridgeContractUpgrade):void 0),t},fromPartial:function(e){var t=Ge({},Xe);return void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence="0",void 0!==e.nonce&&null!==e.nonce?t.nonce=e.nonce:t.nonce=0,void 0!==e.guardianSet&&null!==e.guardianSet?t.guardianSet=nt.fromPartial(e.guardianSet):t.guardianSet=void 0,void 0!==e.contractUpgrade&&null!==e.contractUpgrade?t.contractUpgrade=ct.fromPartial(e.contractUpgrade):t.contractUpgrade=void 0,void 0!==e.bridgeRegisterChain&&null!==e.bridgeRegisterChain?t.bridgeRegisterChain=ot.fromPartial(e.bridgeRegisterChain):t.bridgeRegisterChain=void 0,void 0!==e.bridgeContractUpgrade&&null!==e.bridgeContractUpgrade?t.bridgeContractUpgrade=ft.fromPartial(e.bridgeContractUpgrade):t.bridgeContractUpgrade=void 0,t}},et={},tt={},nt={encode:function(e,t){var n,r;void 0===t&&(t=Me().Writer.create());try{for(var a=We(e.guardians),i=a.next();!i.done;i=a.next()){var o=i.value;at.encode(o,t.uint32(26).fork()).ldelim()}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return t},decode:function(e,t){var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ge({},tt);for(a.guardians=[];n.pos>>3==3?a.guardians.push(at.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t,n,r=Ge({},tt);if(r.guardians=[],void 0!==e.guardians&&null!==e.guardians)try{for(var a=We(e.guardians),i=a.next();!i.done;i=a.next()){var o=i.value;r.guardians.push(at.fromJSON(o))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r},toJSON:function(e){var t={};return e.guardians?t.guardians=e.guardians.map((function(e){return e?at.toJSON(e):void 0})):t.guardians=[],t},fromPartial:function(e){var t,n,r=Ge({},tt);if(r.guardians=[],void 0!==e.guardians&&null!==e.guardians)try{for(var a=We(e.guardians),i=a.next();!i.done;i=a.next()){var o=i.value;r.guardians.push(at.fromPartial(o))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}},rt={pubkey:"",name:""},at={encode:function(e,t){return void 0===t&&(t=Me().Writer.create()),""!==e.pubkey&&t.uint32(10).string(e.pubkey),""!==e.name&&t.uint32(18).string(e.name),t},decode:function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ge({},rt);n.pos>>3){case 1:a.pubkey=n.string();break;case 2:a.name=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Ge({},rt);return void 0!==e.pubkey&&null!==e.pubkey?t.pubkey=String(e.pubkey):t.pubkey="",void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",t},toJSON:function(e){var t={};return void 0!==e.pubkey&&(t.pubkey=e.pubkey),void 0!==e.name&&(t.name=e.name),t},fromPartial:function(e){var t=Ge({},rt);return void 0!==e.pubkey&&null!==e.pubkey?t.pubkey=e.pubkey:t.pubkey="",void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",t}},it={module:"",chainId:0,emitterAddress:""},ot={encode:function(e,t){return void 0===t&&(t=Me().Writer.create()),""!==e.module&&t.uint32(10).string(e.module),0!==e.chainId&&t.uint32(16).uint32(e.chainId),""!==e.emitterAddress&&t.uint32(26).string(e.emitterAddress),t},decode:function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ge({},it);n.pos>>3){case 1:a.module=n.string();break;case 2:a.chainId=n.uint32();break;case 3:a.emitterAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Ge({},it);return void 0!==e.module&&null!==e.module?t.module=String(e.module):t.module="",void 0!==e.chainId&&null!==e.chainId?t.chainId=Number(e.chainId):t.chainId=0,void 0!==e.emitterAddress&&null!==e.emitterAddress?t.emitterAddress=String(e.emitterAddress):t.emitterAddress="",t},toJSON:function(e){var t={};return void 0!==e.module&&(t.module=e.module),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.emitterAddress&&(t.emitterAddress=e.emitterAddress),t},fromPartial:function(e){var t=Ge({},it);return void 0!==e.module&&null!==e.module?t.module=e.module:t.module="",void 0!==e.chainId&&null!==e.chainId?t.chainId=e.chainId:t.chainId=0,void 0!==e.emitterAddress&&null!==e.emitterAddress?t.emitterAddress=e.emitterAddress:t.emitterAddress="",t}},st={chainId:0,newContract:""},ct={encode:function(e,t){return void 0===t&&(t=Me().Writer.create()),0!==e.chainId&&t.uint32(8).uint32(e.chainId),""!==e.newContract&&t.uint32(18).string(e.newContract),t},decode:function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ge({},st);n.pos>>3){case 1:a.chainId=n.uint32();break;case 2:a.newContract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Ge({},st);return void 0!==e.chainId&&null!==e.chainId?t.chainId=Number(e.chainId):t.chainId=0,void 0!==e.newContract&&null!==e.newContract?t.newContract=String(e.newContract):t.newContract="",t},toJSON:function(e){var t={};return void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.newContract&&(t.newContract=e.newContract),t},fromPartial:function(e){var t=Ge({},st);return void 0!==e.chainId&&null!==e.chainId?t.chainId=e.chainId:t.chainId=0,void 0!==e.newContract&&null!==e.newContract?t.newContract=e.newContract:t.newContract="",t}},ut={module:"",targetChainId:0,newContract:""},ft={encode:function(e,t){return void 0===t&&(t=Me().Writer.create()),""!==e.module&&t.uint32(10).string(e.module),0!==e.targetChainId&&t.uint32(16).uint32(e.targetChainId),""!==e.newContract&&t.uint32(26).string(e.newContract),t},decode:function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ge({},ut);n.pos>>3){case 1:a.module=n.string();break;case 2:a.targetChainId=n.uint32();break;case 3:a.newContract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Ge({},ut);return void 0!==e.module&&null!==e.module?t.module=String(e.module):t.module="",void 0!==e.targetChainId&&null!==e.targetChainId?t.targetChainId=Number(e.targetChainId):t.targetChainId=0,void 0!==e.newContract&&null!==e.newContract?t.newContract=String(e.newContract):t.newContract="",t},toJSON:function(e){var t={};return void 0!==e.module&&(t.module=e.module),void 0!==e.targetChainId&&(t.targetChainId=e.targetChainId),void 0!==e.newContract&&(t.newContract=e.newContract),t},fromPartial:function(e){var t=Ge({},ut);return void 0!==e.module&&null!==e.module?t.module=e.module:t.module="",void 0!==e.targetChainId&&null!==e.targetChainId?t.targetChainId=e.targetChainId:t.targetChainId=0,void 0!==e.newContract&&null!==e.newContract?t.newContract=e.newContract:t.newContract="",t}},dt={emitterChain:0,emitterAddress:"",rpcBackfill:!1,backfillNodes:""},lt={missingMessages:"",firstSequence:"0",lastSequence:"0"},pt={},bt=function(e,t){return void 0===t&&(t=Me().Writer.create()),void 0!==e.observationRequest&&function(e,t){return void 0===t&&(t=Me().Writer.create()),0!==e.chainId&&t.uint32(8).uint32(e.chainId),0!==e.txHash.length&&t.uint32(18).bytes(e.txHash),t}(e.observationRequest,t.uint32(10).fork()).ldelim(),t},ht=function(e){var t=Ge({},pt);return void 0!==e.observationRequest&&null!==e.observationRequest?t.observationRequest=function(e){var t=Re({},He);return void 0!==e.chainId&&null!==e.chainId?t.chainId=e.chainId:t.chainId=0,void 0!==e.txHash&&null!==e.txHash?t.txHash=e.txHash:t.txHash=new Uint8Array,t}(e.observationRequest):t.observationRequest=void 0,t},yt={},mt={},vt={response:""},gt={},At={response:""},wt={vaaId:""},xt={response:""},_t={vaaId:""},kt={response:""},St={vaaId:""},It={response:""},Et={daysOld:"0",logOnly:!1},Ct={response:""},Tt=(function(){function e(e){this.rpc=e,this.InjectGovernanceVAA=this.InjectGovernanceVAA.bind(this),this.FindMissingMessages=this.FindMissingMessages.bind(this),this.SendObservationRequest=this.SendObservationRequest.bind(this),this.ChainGovernorStatus=this.ChainGovernorStatus.bind(this),this.ChainGovernorReload=this.ChainGovernorReload.bind(this),this.ChainGovernorDropPendingVAA=this.ChainGovernorDropPendingVAA.bind(this),this.ChainGovernorReleasePendingVAA=this.ChainGovernorReleasePendingVAA.bind(this),this.ChainGovernorResetReleaseTimer=this.ChainGovernorResetReleaseTimer.bind(this),this.PurgePythNetVaas=this.PurgePythNetVaas.bind(this)}e.prototype.InjectGovernanceVAA=function(e,t){return this.rpc.unary(Ot,function(e){var t,n,r=Ge({},Ye);if(r.messages=[],void 0!==e.currentSetIndex&&null!==e.currentSetIndex?r.currentSetIndex=e.currentSetIndex:r.currentSetIndex=0,void 0!==e.messages&&null!==e.messages)try{for(var a=We(e.messages),i=a.next();!i.done;i=a.next()){var o=i.value;r.messages.push($e.fromPartial(o))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return void 0!==e.timestamp&&null!==e.timestamp?r.timestamp=e.timestamp:r.timestamp=0,r}(e),t)},e.prototype.FindMissingMessages=function(e,t){return this.rpc.unary(Pt,function(e){var t,n,r=Ge({},dt);if(r.backfillNodes=[],void 0!==e.emitterChain&&null!==e.emitterChain?r.emitterChain=e.emitterChain:r.emitterChain=0,void 0!==e.emitterAddress&&null!==e.emitterAddress?r.emitterAddress=e.emitterAddress:r.emitterAddress="",void 0!==e.rpcBackfill&&null!==e.rpcBackfill?r.rpcBackfill=e.rpcBackfill:r.rpcBackfill=!1,void 0!==e.backfillNodes&&null!==e.backfillNodes)try{for(var a=We(e.backfillNodes),i=a.next();!i.done;i=a.next()){var o=i.value;r.backfillNodes.push(o)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}(e),t)},e.prototype.SendObservationRequest=function(e,t){return this.rpc.unary(Mt,ht(e),t)},e.prototype.ChainGovernorStatus=function(e,t){return this.rpc.unary(Bt,Ge({},mt),t)},e.prototype.ChainGovernorReload=function(e,t){return this.rpc.unary(Rt,Ge({},gt),t)},e.prototype.ChainGovernorDropPendingVAA=function(e,t){return this.rpc.unary(Nt,(n=e,r=Ge({},wt),void 0!==n.vaaId&&null!==n.vaaId?r.vaaId=n.vaaId:r.vaaId="",r),t);var n,r},e.prototype.ChainGovernorReleasePendingVAA=function(e,t){return this.rpc.unary(Dt,(n=e,r=Ge({},_t),void 0!==n.vaaId&&null!==n.vaaId?r.vaaId=n.vaaId:r.vaaId="",r),t);var n,r},e.prototype.ChainGovernorResetReleaseTimer=function(e,t){return this.rpc.unary(jt,(n=e,r=Ge({},St),void 0!==n.vaaId&&null!==n.vaaId?r.vaaId=n.vaaId:r.vaaId="",r),t);var n,r},e.prototype.PurgePythNetVaas=function(e,t){return this.rpc.unary(Ut,(n=e,r=Ge({},Et),void 0!==n.daysOld&&null!==n.daysOld?r.daysOld=n.daysOld:r.daysOld="0",void 0!==n.logOnly&&null!==n.logOnly?r.logOnly=n.logOnly:r.logOnly=!1,r),t);var n,r}}(),{serviceName:"node.v1.NodePrivilegedService"}),Ot={methodName:"InjectGovernanceVAA",service:Tt,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return function(e,t){var n,r;void 0===t&&(t=Me().Writer.create()),0!==e.currentSetIndex&&t.uint32(8).uint32(e.currentSetIndex);try{for(var a=We(e.messages),i=a.next();!i.done;i=a.next()){var o=i.value;$e.encode(o,t.uint32(18).fork()).ldelim()}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return 0!==e.timestamp&&t.uint32(24).uint32(e.timestamp),t}(this).finish()}},responseType:{deserializeBinary:function(e){return Ge(Ge({},function(e,t){var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ge({},et);for(a.digests=[];n.pos>>3==1?a.digests.push(n.bytes()):n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},Pt={methodName:"FindMissingMessages",service:Tt,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return function(e,t){var n,r;void 0===t&&(t=Me().Writer.create()),0!==e.emitterChain&&t.uint32(8).uint32(e.emitterChain),""!==e.emitterAddress&&t.uint32(18).string(e.emitterAddress),!0===e.rpcBackfill&&t.uint32(24).bool(e.rpcBackfill);try{for(var a=We(e.backfillNodes),i=a.next();!i.done;i=a.next()){var o=i.value;t.uint32(34).string(o)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return t}(this).finish()}},responseType:{deserializeBinary:function(e){return Ge(Ge({},function(e,t){var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ge({},lt);for(a.missingMessages=[];n.pos>>3){case 1:a.missingMessages.push(n.string());break;case 2:a.firstSequence=Zt(n.uint64());break;case 3:a.lastSequence=Zt(n.uint64());break;default:n.skipType(7&i)}}return a}(e)),{toObject:function(){return this}})}}},Mt={methodName:"SendObservationRequest",service:Tt,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return bt(this).finish()}},responseType:{deserializeBinary:function(e){return Ge(Ge({},function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ge({},yt);n.pos>>3==1?a.response=n.string():n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},Rt={methodName:"ChainGovernorReload",service:Tt,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return(void 0===e&&(e=Me().Writer.create()),e).finish();var e}},responseType:{deserializeBinary:function(e){return Ge(Ge({},function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ge({},At);n.pos>>3==1?a.response=n.string():n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},Nt={methodName:"ChainGovernorDropPendingVAA",service:Tt,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return(e=this,void 0===t&&(t=Me().Writer.create()),""!==e.vaaId&&t.uint32(10).string(e.vaaId),t).finish();var e,t}},responseType:{deserializeBinary:function(e){return Ge(Ge({},function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ge({},xt);n.pos>>3==1?a.response=n.string():n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},Dt={methodName:"ChainGovernorReleasePendingVAA",service:Tt,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return(e=this,void 0===t&&(t=Me().Writer.create()),""!==e.vaaId&&t.uint32(10).string(e.vaaId),t).finish();var e,t}},responseType:{deserializeBinary:function(e){return Ge(Ge({},function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ge({},kt);n.pos>>3==1?a.response=n.string():n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},jt={methodName:"ChainGovernorResetReleaseTimer",service:Tt,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return(e=this,void 0===t&&(t=Me().Writer.create()),""!==e.vaaId&&t.uint32(10).string(e.vaaId),t).finish();var e,t}},responseType:{deserializeBinary:function(e){return Ge(Ge({},function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ge({},It);n.pos>>3==1?a.response=n.string():n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},Ut={methodName:"PurgePythNetVaas",service:Tt,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return(e=this,void 0===t&&(t=Me().Writer.create()),"0"!==e.daysOld&&t.uint32(8).uint64(e.daysOld),!0===e.logOnly&&t.uint32(16).bool(e.logOnly),t).finish();var e,t}},responseType:{deserializeBinary:function(e){return Ge(Ge({},function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ge({},Ct);n.pos>>3==1?a.response=n.string():n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},Lt=function(){if(void 0!==Lt)return Lt;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}();function Zt(e){return e.toString()}Lt.atob,Lt.btoa,Me().util.Long!==Oe()&&(Me().util.Long=Oe(),Me().configure());var Ft,Ht=function(){return Ht=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(e){e[e.CHAIN_ID_UNSPECIFIED=0]="CHAIN_ID_UNSPECIFIED",e[e.CHAIN_ID_SOLANA=1]="CHAIN_ID_SOLANA",e[e.CHAIN_ID_ETHEREUM=2]="CHAIN_ID_ETHEREUM",e[e.CHAIN_ID_TERRA=3]="CHAIN_ID_TERRA",e[e.CHAIN_ID_BSC=4]="CHAIN_ID_BSC",e[e.CHAIN_ID_POLYGON=5]="CHAIN_ID_POLYGON",e[e.CHAIN_ID_AVALANCHE=6]="CHAIN_ID_AVALANCHE",e[e.CHAIN_ID_OASIS=7]="CHAIN_ID_OASIS",e[e.CHAIN_ID_ALGORAND=8]="CHAIN_ID_ALGORAND",e[e.CHAIN_ID_AURORA=9]="CHAIN_ID_AURORA",e[e.CHAIN_ID_FANTOM=10]="CHAIN_ID_FANTOM",e[e.CHAIN_ID_KARURA=11]="CHAIN_ID_KARURA",e[e.CHAIN_ID_ACALA=12]="CHAIN_ID_ACALA",e[e.CHAIN_ID_KLAYTN=13]="CHAIN_ID_KLAYTN",e[e.CHAIN_ID_CELO=14]="CHAIN_ID_CELO",e[e.CHAIN_ID_NEAR=15]="CHAIN_ID_NEAR",e[e.CHAIN_ID_MOONBEAM=16]="CHAIN_ID_MOONBEAM",e[e.CHAIN_ID_NEON=17]="CHAIN_ID_NEON",e[e.CHAIN_ID_TERRA2=18]="CHAIN_ID_TERRA2",e[e.CHAIN_ID_INJECTIVE=19]="CHAIN_ID_INJECTIVE",e[e.CHAIN_ID_OSMOSIS=20]="CHAIN_ID_OSMOSIS",e[e.CHAIN_ID_SUI=21]="CHAIN_ID_SUI",e[e.CHAIN_ID_APTOS=22]="CHAIN_ID_APTOS",e[e.CHAIN_ID_ARBITRUM=23]="CHAIN_ID_ARBITRUM",e[e.CHAIN_ID_OPTIMISM=24]="CHAIN_ID_OPTIMISM",e[e.CHAIN_ID_GNOSIS=25]="CHAIN_ID_GNOSIS",e[e.CHAIN_ID_PYTHNET=26]="CHAIN_ID_PYTHNET",e[e.CHAIN_ID_XPLA=28]="CHAIN_ID_XPLA",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Ft||(Ft={}));var qt={emitterChain:0,emitterAddress:"",sequence:"0"},Qt=function(e,t){return void 0===t&&(t=Me().Writer.create()),0!==e.emitterChain&&t.uint32(8).int32(e.emitterChain),""!==e.emitterAddress&&t.uint32(18).string(e.emitterAddress),"0"!==e.sequence&&t.uint32(24).uint64(e.sequence),t},Kt=function(e){var t=Ht({},qt);return void 0!==e.emitterChain&&null!==e.emitterChain?t.emitterChain=e.emitterChain:t.emitterChain=0,void 0!==e.emitterAddress&&null!==e.emitterAddress?t.emitterAddress=e.emitterAddress:t.emitterAddress="",void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence="0",t},Vt={emitterChain:0,nonce:0},Jt={},Gt={},Wt={},Yt=function(e,t){return void 0===t&&(t=Me().Writer.create()),void 0!==e.batchId&&function(e,t){return void 0===t&&(t=Me().Writer.create()),0!==e.emitterChain&&t.uint32(8).int32(e.emitterChain),0!==e.txId.length&&t.uint32(18).bytes(e.txId),0!==e.nonce&&t.uint32(24).uint32(e.nonce),t}(e.batchId,t.uint32(10).fork()).ldelim(),t},Xt=function(e){var t=Ht({},Wt);return void 0!==e.batchId&&null!==e.batchId?t.batchId=function(e){var t=Ht({},Vt);return void 0!==e.emitterChain&&null!==e.emitterChain?t.emitterChain=e.emitterChain:t.emitterChain=0,void 0!==e.txId&&null!==e.txId?t.txId=e.txId:t.txId=new Uint8Array,void 0!==e.nonce&&null!==e.nonce?t.nonce=e.nonce:t.nonce=0,t}(e.batchId):t.batchId=void 0,t},$t={},en={},tn={},nn={verifiedGuardianAddr:"",p2pNodeAddr:""},rn={encode:function(e,t){return void 0===t&&(t=Me().Writer.create()),""!==e.verifiedGuardianAddr&&t.uint32(10).string(e.verifiedGuardianAddr),""!==e.p2pNodeAddr&&t.uint32(18).string(e.p2pNodeAddr),void 0!==e.rawHeartbeat&&function(e,t){var n,r,a,i;void 0===t&&(t=Me().Writer.create()),""!==e.nodeName&&t.uint32(10).string(e.nodeName),"0"!==e.counter&&t.uint32(16).int64(e.counter),"0"!==e.timestamp&&t.uint32(24).int64(e.timestamp);try{for(var o=Ne(e.networks),s=o.next();!s.done;s=o.next()){var c=s.value;Le.encode(c,t.uint32(34).fork()).ldelim()}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}""!==e.version&&t.uint32(42).string(e.version),""!==e.guardianAddr&&t.uint32(50).string(e.guardianAddr),"0"!==e.bootTimestamp&&t.uint32(56).int64(e.bootTimestamp);try{for(var u=Ne(e.features),f=u.next();!f.done;f=u.next())c=f.value,t.uint32(66).string(c)}catch(e){a={error:e}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}return t}(e.rawHeartbeat,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ht({},nn);n.pos>>3){case 1:a.verifiedGuardianAddr=n.string();break;case 2:a.p2pNodeAddr=n.string();break;case 3:a.rawHeartbeat=je(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Ht({},nn);return void 0!==e.verifiedGuardianAddr&&null!==e.verifiedGuardianAddr?t.verifiedGuardianAddr=String(e.verifiedGuardianAddr):t.verifiedGuardianAddr="",void 0!==e.p2pNodeAddr&&null!==e.p2pNodeAddr?t.p2pNodeAddr=String(e.p2pNodeAddr):t.p2pNodeAddr="",void 0!==e.rawHeartbeat&&null!==e.rawHeartbeat?t.rawHeartbeat=function(e){var t,n,r,a,i=Re({},De);if(i.networks=[],i.features=[],void 0!==e.nodeName&&null!==e.nodeName?i.nodeName=String(e.nodeName):i.nodeName="",void 0!==e.counter&&null!==e.counter?i.counter=String(e.counter):i.counter="0",void 0!==e.timestamp&&null!==e.timestamp?i.timestamp=String(e.timestamp):i.timestamp="0",void 0!==e.networks&&null!==e.networks)try{for(var o=Ne(e.networks),s=o.next();!s.done;s=o.next()){var c=s.value;i.networks.push(Le.fromJSON(c))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}if(void 0!==e.version&&null!==e.version?i.version=String(e.version):i.version="",void 0!==e.guardianAddr&&null!==e.guardianAddr?i.guardianAddr=String(e.guardianAddr):i.guardianAddr="",void 0!==e.bootTimestamp&&null!==e.bootTimestamp?i.bootTimestamp=String(e.bootTimestamp):i.bootTimestamp="0",void 0!==e.features&&null!==e.features)try{for(var u=Ne(e.features),f=u.next();!f.done;f=u.next())c=f.value,i.features.push(String(c))}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=u.return)&&a.call(u)}finally{if(r)throw r.error}}return i}(e.rawHeartbeat):t.rawHeartbeat=void 0,t},toJSON:function(e){var t={};return void 0!==e.verifiedGuardianAddr&&(t.verifiedGuardianAddr=e.verifiedGuardianAddr),void 0!==e.p2pNodeAddr&&(t.p2pNodeAddr=e.p2pNodeAddr),void 0!==e.rawHeartbeat&&(t.rawHeartbeat=e.rawHeartbeat?function(e){var t={};return void 0!==e.nodeName&&(t.nodeName=e.nodeName),void 0!==e.counter&&(t.counter=e.counter),void 0!==e.timestamp&&(t.timestamp=e.timestamp),e.networks?t.networks=e.networks.map((function(e){return e?Le.toJSON(e):void 0})):t.networks=[],void 0!==e.version&&(t.version=e.version),void 0!==e.guardianAddr&&(t.guardianAddr=e.guardianAddr),void 0!==e.bootTimestamp&&(t.bootTimestamp=e.bootTimestamp),e.features?t.features=e.features.map((function(e){return e})):t.features=[],t}(e.rawHeartbeat):void 0),t},fromPartial:function(e){var t=Ht({},nn);return void 0!==e.verifiedGuardianAddr&&null!==e.verifiedGuardianAddr?t.verifiedGuardianAddr=e.verifiedGuardianAddr:t.verifiedGuardianAddr="",void 0!==e.p2pNodeAddr&&null!==e.p2pNodeAddr?t.p2pNodeAddr=e.p2pNodeAddr:t.p2pNodeAddr="",void 0!==e.rawHeartbeat&&null!==e.rawHeartbeat?t.rawHeartbeat=function(e){var t,n,r,a,i=Re({},De);if(i.networks=[],i.features=[],void 0!==e.nodeName&&null!==e.nodeName?i.nodeName=e.nodeName:i.nodeName="",void 0!==e.counter&&null!==e.counter?i.counter=e.counter:i.counter="0",void 0!==e.timestamp&&null!==e.timestamp?i.timestamp=e.timestamp:i.timestamp="0",void 0!==e.networks&&null!==e.networks)try{for(var o=Ne(e.networks),s=o.next();!s.done;s=o.next()){var c=s.value;i.networks.push(Le.fromPartial(c))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}if(void 0!==e.version&&null!==e.version?i.version=e.version:i.version="",void 0!==e.guardianAddr&&null!==e.guardianAddr?i.guardianAddr=e.guardianAddr:i.guardianAddr="",void 0!==e.bootTimestamp&&null!==e.bootTimestamp?i.bootTimestamp=e.bootTimestamp:i.bootTimestamp="0",void 0!==e.features&&null!==e.features)try{for(var u=Ne(e.features),f=u.next();!f.done;f=u.next())c=f.value,i.features.push(c)}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=u.return)&&a.call(u)}finally{if(r)throw r.error}}return i}(e.rawHeartbeat):t.rawHeartbeat=void 0,t}},an={},on={},sn={index:0,addresses:""},cn={encode:function(e,t){var n,r;void 0===t&&(t=Me().Writer.create()),0!==e.index&&t.uint32(8).uint32(e.index);try{for(var a=zt(e.addresses),i=a.next();!i.done;i=a.next()){var o=i.value;t.uint32(18).string(o)}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return t},decode:function(e,t){var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ht({},sn);for(a.addresses=[];n.pos>>3){case 1:a.index=n.uint32();break;case 2:a.addresses.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t,n,r=Ht({},sn);if(r.addresses=[],void 0!==e.index&&null!==e.index?r.index=Number(e.index):r.index=0,void 0!==e.addresses&&null!==e.addresses)try{for(var a=zt(e.addresses),i=a.next();!i.done;i=a.next()){var o=i.value;r.addresses.push(String(o))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r},toJSON:function(e){var t={};return void 0!==e.index&&(t.index=e.index),e.addresses?t.addresses=e.addresses.map((function(e){return e})):t.addresses=[],t},fromPartial:function(e){var t,n,r=Ht({},sn);if(r.addresses=[],void 0!==e.index&&null!==e.index?r.index=e.index:r.index=0,void 0!==e.addresses&&null!==e.addresses)try{for(var a=zt(e.addresses),i=a.next();!i.done;i=a.next()){var o=i.value;r.addresses.push(o)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}},un={},fn={},dn={chainId:0,remainingAvailableNotional:"0",notionalLimit:"0",bigTransactionSize:"0"},ln={encode:function(e,t){return void 0===t&&(t=Me().Writer.create()),0!==e.chainId&&t.uint32(8).uint32(e.chainId),"0"!==e.remainingAvailableNotional&&t.uint32(16).uint64(e.remainingAvailableNotional),"0"!==e.notionalLimit&&t.uint32(24).uint64(e.notionalLimit),"0"!==e.bigTransactionSize&&t.uint32(32).uint64(e.bigTransactionSize),t},decode:function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ht({},dn);n.pos>>3){case 1:a.chainId=n.uint32();break;case 2:a.remainingAvailableNotional=Nn(n.uint64());break;case 3:a.notionalLimit=Nn(n.uint64());break;case 4:a.bigTransactionSize=Nn(n.uint64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Ht({},dn);return void 0!==e.chainId&&null!==e.chainId?t.chainId=Number(e.chainId):t.chainId=0,void 0!==e.remainingAvailableNotional&&null!==e.remainingAvailableNotional?t.remainingAvailableNotional=String(e.remainingAvailableNotional):t.remainingAvailableNotional="0",void 0!==e.notionalLimit&&null!==e.notionalLimit?t.notionalLimit=String(e.notionalLimit):t.notionalLimit="0",void 0!==e.bigTransactionSize&&null!==e.bigTransactionSize?t.bigTransactionSize=String(e.bigTransactionSize):t.bigTransactionSize="0",t},toJSON:function(e){var t={};return void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.remainingAvailableNotional&&(t.remainingAvailableNotional=e.remainingAvailableNotional),void 0!==e.notionalLimit&&(t.notionalLimit=e.notionalLimit),void 0!==e.bigTransactionSize&&(t.bigTransactionSize=e.bigTransactionSize),t},fromPartial:function(e){var t=Ht({},dn);return void 0!==e.chainId&&null!==e.chainId?t.chainId=e.chainId:t.chainId=0,void 0!==e.remainingAvailableNotional&&null!==e.remainingAvailableNotional?t.remainingAvailableNotional=e.remainingAvailableNotional:t.remainingAvailableNotional="0",void 0!==e.notionalLimit&&null!==e.notionalLimit?t.notionalLimit=e.notionalLimit:t.notionalLimit="0",void 0!==e.bigTransactionSize&&null!==e.bigTransactionSize?t.bigTransactionSize=e.bigTransactionSize:t.bigTransactionSize="0",t}},pn={},bn={},hn={emitterChain:0,emitterAddress:"",sequence:"0",releaseTime:0,notionalValue:"0",txHash:""},yn={encode:function(e,t){return void 0===t&&(t=Me().Writer.create()),0!==e.emitterChain&&t.uint32(8).uint32(e.emitterChain),""!==e.emitterAddress&&t.uint32(18).string(e.emitterAddress),"0"!==e.sequence&&t.uint32(24).uint64(e.sequence),0!==e.releaseTime&&t.uint32(32).uint32(e.releaseTime),"0"!==e.notionalValue&&t.uint32(40).uint64(e.notionalValue),""!==e.txHash&&t.uint32(50).string(e.txHash),t},decode:function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ht({},hn);n.pos>>3){case 1:a.emitterChain=n.uint32();break;case 2:a.emitterAddress=n.string();break;case 3:a.sequence=Nn(n.uint64());break;case 4:a.releaseTime=n.uint32();break;case 5:a.notionalValue=Nn(n.uint64());break;case 6:a.txHash=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Ht({},hn);return void 0!==e.emitterChain&&null!==e.emitterChain?t.emitterChain=Number(e.emitterChain):t.emitterChain=0,void 0!==e.emitterAddress&&null!==e.emitterAddress?t.emitterAddress=String(e.emitterAddress):t.emitterAddress="",void 0!==e.sequence&&null!==e.sequence?t.sequence=String(e.sequence):t.sequence="0",void 0!==e.releaseTime&&null!==e.releaseTime?t.releaseTime=Number(e.releaseTime):t.releaseTime=0,void 0!==e.notionalValue&&null!==e.notionalValue?t.notionalValue=String(e.notionalValue):t.notionalValue="0",void 0!==e.txHash&&null!==e.txHash?t.txHash=String(e.txHash):t.txHash="",t},toJSON:function(e){var t={};return void 0!==e.emitterChain&&(t.emitterChain=e.emitterChain),void 0!==e.emitterAddress&&(t.emitterAddress=e.emitterAddress),void 0!==e.sequence&&(t.sequence=e.sequence),void 0!==e.releaseTime&&(t.releaseTime=e.releaseTime),void 0!==e.notionalValue&&(t.notionalValue=e.notionalValue),void 0!==e.txHash&&(t.txHash=e.txHash),t},fromPartial:function(e){var t=Ht({},hn);return void 0!==e.emitterChain&&null!==e.emitterChain?t.emitterChain=e.emitterChain:t.emitterChain=0,void 0!==e.emitterAddress&&null!==e.emitterAddress?t.emitterAddress=e.emitterAddress:t.emitterAddress="",void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence="0",void 0!==e.releaseTime&&null!==e.releaseTime?t.releaseTime=e.releaseTime:t.releaseTime=0,void 0!==e.notionalValue&&null!==e.notionalValue?t.notionalValue=e.notionalValue:t.notionalValue="0",void 0!==e.txHash&&null!==e.txHash?t.txHash=e.txHash:t.txHash="",t}},mn={},vn={isEnqueued:!1},gn={},An={},wn={originChainId:0,originAddress:"",price:0},xn={encode:function(e,t){return void 0===t&&(t=Me().Writer.create()),0!==e.originChainId&&t.uint32(8).uint32(e.originChainId),""!==e.originAddress&&t.uint32(18).string(e.originAddress),0!==e.price&&t.uint32(29).float(e.price),t},decode:function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ht({},wn);n.pos>>3){case 1:a.originChainId=n.uint32();break;case 2:a.originAddress=n.string();break;case 3:a.price=n.float();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Ht({},wn);return void 0!==e.originChainId&&null!==e.originChainId?t.originChainId=Number(e.originChainId):t.originChainId=0,void 0!==e.originAddress&&null!==e.originAddress?t.originAddress=String(e.originAddress):t.originAddress="",void 0!==e.price&&null!==e.price?t.price=Number(e.price):t.price=0,t},toJSON:function(e){var t={};return void 0!==e.originChainId&&(t.originChainId=e.originChainId),void 0!==e.originAddress&&(t.originAddress=e.originAddress),void 0!==e.price&&(t.price=e.price),t},fromPartial:function(e){var t=Ht({},wn);return void 0!==e.originChainId&&null!==e.originChainId?t.originChainId=e.originChainId:t.originChainId=0,void 0!==e.originAddress&&null!==e.originAddress?t.originAddress=e.originAddress:t.originAddress="",void 0!==e.price&&null!==e.price?t.price=e.price:t.price=0,t}},_n=function(){function e(e){this.rpc=e,this.GetLastHeartbeats=this.GetLastHeartbeats.bind(this),this.GetSignedVAA=this.GetSignedVAA.bind(this),this.GetSignedBatchVAA=this.GetSignedBatchVAA.bind(this),this.GetCurrentGuardianSet=this.GetCurrentGuardianSet.bind(this),this.GovernorGetAvailableNotionalByChain=this.GovernorGetAvailableNotionalByChain.bind(this),this.GovernorGetEnqueuedVAAs=this.GovernorGetEnqueuedVAAs.bind(this),this.GovernorIsVAAEnqueued=this.GovernorIsVAAEnqueued.bind(this),this.GovernorGetTokenList=this.GovernorGetTokenList.bind(this)}return e.prototype.GetLastHeartbeats=function(e,t){return this.rpc.unary(Sn,Ht({},en),t)},e.prototype.GetSignedVAA=function(e,t){return this.rpc.unary(In,(n=e,r=Ht({},Jt),void 0!==n.messageId&&null!==n.messageId?r.messageId=Kt(n.messageId):r.messageId=void 0,r),t);var n,r},e.prototype.GetSignedBatchVAA=function(e,t){return this.rpc.unary(En,Xt(e),t)},e.prototype.GetCurrentGuardianSet=function(e,t){return this.rpc.unary(Cn,Ht({},an),t)},e.prototype.GovernorGetAvailableNotionalByChain=function(e,t){return this.rpc.unary(Tn,Ht({},un),t)},e.prototype.GovernorGetEnqueuedVAAs=function(e,t){return this.rpc.unary(On,Ht({},pn),t)},e.prototype.GovernorIsVAAEnqueued=function(e,t){return this.rpc.unary(Pn,(n=e,r=Ht({},mn),void 0!==n.messageId&&null!==n.messageId?r.messageId=Kt(n.messageId):r.messageId=void 0,r),t);var n,r},e.prototype.GovernorGetTokenList=function(e,t){return this.rpc.unary(Mn,Ht({},gn),t)},e}(),kn={serviceName:"publicrpc.v1.PublicRPCService"},Sn={methodName:"GetLastHeartbeats",service:kn,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return(void 0===e&&(e=Me().Writer.create()),e).finish();var e}},responseType:{deserializeBinary:function(e){return Ht(Ht({},function(e,t){var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ht({},tn);for(a.entries=[];n.pos>>3==1?a.entries.push(rn.decode(n,n.uint32())):n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},In={methodName:"GetSignedVAA",service:kn,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return(e=this,void 0===t&&(t=Me().Writer.create()),void 0!==e.messageId&&Qt(e.messageId,t.uint32(10).fork()).ldelim(),t).finish();var e,t}},responseType:{deserializeBinary:function(e){return Ht(Ht({},function(e,t){var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ht({},Gt);for(a.vaaBytes=new Uint8Array;n.pos>>3==1?a.vaaBytes=n.bytes():n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},En={methodName:"GetSignedBatchVAA",service:kn,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return Yt(this).finish()}},responseType:{deserializeBinary:function(e){return Ht(Ht({},function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ht({},$t);n.pos>>3==1?a.signedBatchVaa=qe(n,n.uint32()):n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},Cn={methodName:"GetCurrentGuardianSet",service:kn,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return(void 0===e&&(e=Me().Writer.create()),e).finish();var e}},responseType:{deserializeBinary:function(e){return Ht(Ht({},function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ht({},on);n.pos>>3==1?a.guardianSet=cn.decode(n,n.uint32()):n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},Tn={methodName:"GovernorGetAvailableNotionalByChain",service:kn,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return(void 0===e&&(e=Me().Writer.create()),e).finish();var e}},responseType:{deserializeBinary:function(e){return Ht(Ht({},function(e,t){var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ht({},fn);for(a.entries=[];n.pos>>3==1?a.entries.push(ln.decode(n,n.uint32())):n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},On={methodName:"GovernorGetEnqueuedVAAs",service:kn,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return(void 0===e&&(e=Me().Writer.create()),e).finish();var e}},responseType:{deserializeBinary:function(e){return Ht(Ht({},function(e,t){var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ht({},bn);for(a.entries=[];n.pos>>3==1?a.entries.push(yn.decode(n,n.uint32())):n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},Pn={methodName:"GovernorIsVAAEnqueued",service:kn,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return(e=this,void 0===t&&(t=Me().Writer.create()),void 0!==e.messageId&&Qt(e.messageId,t.uint32(10).fork()).ldelim(),t).finish();var e,t}},responseType:{deserializeBinary:function(e){return Ht(Ht({},function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ht({},vn);n.pos>>3==1?a.isEnqueued=n.bool():n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},Mn={methodName:"GovernorGetTokenList",service:kn,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return(void 0===e&&(e=Me().Writer.create()),e).finish();var e}},responseType:{deserializeBinary:function(e){return Ht(Ht({},function(e,t){var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ht({},An);for(a.entries=[];n.pos>>3==1?a.entries.push(xn.decode(n,n.uint32())):n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},Bn=function(){function e(e,t){this.host=e,this.options=t}return e.prototype.unary=function(e,t,n){var r,a=this,i=Ht(Ht({},t),e.requestType),o=n&&this.options.metadata?new Je.BrowserHeaders(Ht(Ht({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise((function(t,n){Ve.grpc.unary(e,{request:i,host:a.host,metadata:o,transport:a.options.transport,debug:a.options.debug,onEnd:function(e){if(e.status===Ve.grpc.Code.OK)t(e.message);else{var r=new Error(e.statusMessage);r.code=e.status,r.metadata=e.trailers,n(r)}}})}))},e}(),Rn=function(){if(void 0!==Rn)return Rn;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}();function Nn(e){return e.toString()}Rn.atob,Rn.btoa,Me().util.Long!==Oe()&&(Me().util.Long=Oe(),Me().configure());var Dn=n(15685);function jn(e){return"function"==typeof e}function Un(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Ln=Un((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}));function Zn(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Fn=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,r,a;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var o=(0,Dn.XA)(i),s=o.next();!s.done;s=o.next())s.value.remove(this)}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else i.remove(this);var c=this.initialTeardown;if(jn(c))try{c()}catch(e){a=e instanceof Ln?e.errors:[e]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=(0,Dn.XA)(u),d=f.next();!d.done;d=f.next()){var l=d.value;try{qn(l)}catch(e){a=null!=a?a:[],e instanceof Ln?a=(0,Dn.ev)((0,Dn.ev)([],(0,Dn.CR)(a)),(0,Dn.CR)(e.errors)):a.push(e)}}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}if(a)throw new Ln(a)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)qn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Zn(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&Zn(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}(),Hn=Fn.EMPTY;function zn(e){return e instanceof Fn||e&&"closed"in e&&jn(e.remove)&&jn(e.add)&&jn(e.unsubscribe)}function qn(e){jn(e)?e():e.unsubscribe()}var Qn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Kn={setTimeout:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){for(var n=[],r=2;r0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,a=n.isStopped,i=n.observers;return r||a?Hn:(this.currentObservers=null,i.push(e),new Fn((function(){t.currentObservers=null,Zn(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,a=t.isStopped;n?e.error(r):a&&e.complete()},t.prototype.asObservable=function(){var e=new ur;return e.source=this,e},t.create=function(e,t){return new mr(e,t)},t}(ur),mr=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return(0,Dn.ZT)(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:Hn},t}(yr);function vr(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new yr}:t,r=e.resetOnError,a=void 0===r||r,i=e.resetOnComplete,o=void 0===i||i,s=e.resetOnRefCountZero,c=void 0===s||s;return function(e){var t,r,i,s,u=0,f=!1,d=!1,l=function(){null==r||r.unsubscribe(),r=void 0},p=function(){l(),t=i=void 0,f=d=!1},b=function(){var e=t;p(),null==e||e.unsubscribe()};return(s=function(e,s){u++,d||f||l();var h=i=null!=i?i:n();s.add((function(){0!=--u||d||f||(r=gr(b,c))})),h.subscribe(s),!t&&u>0&&(t=new rr({next:function(e){return h.next(e)},error:function(e){d=!0,l(),r=gr(p,a,e),h.error(e)},complete:function(){f=!0,l(),r=gr(p,o),h.complete()}}),pr(e).subscribe(t))},function(e){if(function(e){return jn(null==e?void 0:e.lift)}(e))return e.lift((function(e){try{return s(e,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")})(e)}}function gr(e,t){for(var n=[],r=2;r=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},xr={chainId:0,emitterAddress:""},_r={chainId:0,nonce:0},kr={chainId:0},Sr={},Ir=function(e,t){return void 0===t&&(t=Me().Writer.create()),void 0!==e.emitterFilter&&function(e,t){return void 0===t&&(t=Me().Writer.create()),0!==e.chainId&&t.uint32(8).int32(e.chainId),""!==e.emitterAddress&&t.uint32(18).string(e.emitterAddress),t}(e.emitterFilter,t.uint32(10).fork()).ldelim(),void 0!==e.batchFilter&&function(e,t){return void 0===t&&(t=Me().Writer.create()),0!==e.chainId&&t.uint32(8).int32(e.chainId),0!==e.txId.length&&t.uint32(18).bytes(e.txId),0!==e.nonce&&t.uint32(24).uint32(e.nonce),t}(e.batchFilter,t.uint32(18).fork()).ldelim(),void 0!==e.batchTransactionFilter&&function(e,t){return void 0===t&&(t=Me().Writer.create()),0!==e.chainId&&t.uint32(8).int32(e.chainId),0!==e.txId.length&&t.uint32(18).bytes(e.txId),t}(e.batchTransactionFilter,t.uint32(26).fork()).ldelim(),t},Er=function(e){var t=Ar({},Sr);return void 0!==e.emitterFilter&&null!==e.emitterFilter?t.emitterFilter=function(e){var t=Ar({},xr);return void 0!==e.chainId&&null!==e.chainId?t.chainId=e.chainId:t.chainId=0,void 0!==e.emitterAddress&&null!==e.emitterAddress?t.emitterAddress=e.emitterAddress:t.emitterAddress="",t}(e.emitterFilter):t.emitterFilter=void 0,void 0!==e.batchFilter&&null!==e.batchFilter?t.batchFilter=function(e){var t=Ar({},_r);return void 0!==e.chainId&&null!==e.chainId?t.chainId=e.chainId:t.chainId=0,void 0!==e.txId&&null!==e.txId?t.txId=e.txId:t.txId=new Uint8Array,void 0!==e.nonce&&null!==e.nonce?t.nonce=e.nonce:t.nonce=0,t}(e.batchFilter):t.batchFilter=void 0,void 0!==e.batchTransactionFilter&&null!==e.batchTransactionFilter?t.batchTransactionFilter=function(e){var t=Ar({},kr);return void 0!==e.chainId&&null!==e.chainId?t.chainId=e.chainId:t.chainId=0,void 0!==e.txId&&null!==e.txId?t.txId=e.txId:t.txId=new Uint8Array,t}(e.batchTransactionFilter):t.batchTransactionFilter=void 0,t},Cr={},Tr={},Or={},Pr={},Mr=(function(){function e(e){this.rpc=e,this.SubscribeSignedVAA=this.SubscribeSignedVAA.bind(this),this.SubscribeSignedVAAByType=this.SubscribeSignedVAAByType.bind(this)}e.prototype.SubscribeSignedVAA=function(e,t){return this.rpc.invoke(Br,function(e){var t,n,r=Ar({},Cr);if(r.filters=[],void 0!==e.filters&&null!==e.filters)try{for(var a=wr(e.filters),i=a.next();!i.done;i=a.next()){var o=i.value;r.filters.push(Er(o))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}(e),t)},e.prototype.SubscribeSignedVAAByType=function(e,t){return this.rpc.invoke(Rr,function(e){var t,n,r=Ar({},Tr);if(r.filters=[],void 0!==e.filters&&null!==e.filters)try{for(var a=wr(e.filters),i=a.next();!i.done;i=a.next()){var o=i.value;r.filters.push(Er(o))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}(e),t)}}(),{serviceName:"spy.v1.SpyRPCService"}),Br={methodName:"SubscribeSignedVAA",service:Mr,requestStream:!1,responseStream:!0,requestType:{serializeBinary:function(){return function(e,t){var n,r;void 0===t&&(t=Me().Writer.create());try{for(var a=wr(e.filters),i=a.next();!i.done;i=a.next()){var o=i.value;Ir(o,t.uint32(10).fork()).ldelim()}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return t}(this).finish()}},responseType:{deserializeBinary:function(e){return Ar(Ar({},function(e,t){var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ar({},Or);for(a.vaaBytes=new Uint8Array;n.pos>>3==1?a.vaaBytes=n.bytes():n.skipType(7&i)}return a}(e)),{toObject:function(){return this}})}}},Rr={methodName:"SubscribeSignedVAAByType",service:Mr,requestStream:!1,responseStream:!0,requestType:{serializeBinary:function(){return function(e,t){var n,r;void 0===t&&(t=Me().Writer.create());try{for(var a=wr(e.filters),i=a.next();!i.done;i=a.next()){var o=i.value;Ir(o,t.uint32(10).fork()).ldelim()}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return t}(this).finish()}},responseType:{deserializeBinary:function(e){return Ar(Ar({},function(e,t){for(var n=e instanceof Me().Reader?e:new(Me().Reader)(e),r=void 0===t?n.len:n.pos+t,a=Ar({},Pr);n.pos>>3){case 1:a.signedVaa=Fe(n,n.uint32());break;case 2:a.signedBatchVaa=qe(n,n.uint32());break;default:n.skipType(7&i)}}return a}(e)),{toObject:function(){return this}})}}},Nr=(function(){function e(e,t){this.host=e,this.options=t}e.prototype.unary=function(e,t,n){var r,a=this,i=Ar(Ar({},t),e.requestType),o=n&&this.options.metadata?new Je.BrowserHeaders(Ar(Ar({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise((function(t,n){Ve.grpc.unary(e,{request:i,host:a.host,metadata:o,transport:a.options.transport,debug:a.options.debug,onEnd:function(e){if(e.status===Ve.grpc.Code.OK)t(e.message);else{var r=new Error(e.statusMessage);r.code=e.status,r.metadata=e.trailers,n(r)}}})}))},e.prototype.invoke=function(e,t,n){var r,a=this,i=[2,4,8,9,10,13,14,15],o=Ar(Ar({},t),e.requestType),s=n&&this.options.metadata?new Je.BrowserHeaders(Ar(Ar({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new ur((function(t){!function n(){var r=Ve.grpc.invoke(e,{host:a.host,request:o,transport:a.options.streamingTransport||a.options.transport,metadata:s,debug:a.options.debug,onMessage:function(e){return t.next(e)},onEnd:function(e,r){0===e?t.complete():i.includes(e)?setTimeout(n,3e3):t.error(new Error("Error ".concat(e," ").concat(r)))}});t.add((function(){return r.close()}))}()})).pipe(vr())}}(),function(){if(void 0!==Nr)return Nr;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}());Nr.atob,Nr.btoa,Me().util.Long!==Oe()&&(Me().util.Long=Oe(),Me().configure());var Dr=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},jr=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]o)throw d;return[3,6];case 6:return[3,1];case 7:return[2,u]}}))}))}var qr=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Qr=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]o)throw d;return[3,6];case 6:return[3,1];case 7:return[2,u]}}))}))}var Xr=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},$r=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]o)throw d;return[3,6];case 6:return[3,1];case 7:return[2,u]}}))}))}var oa=n(29382),sa=n(20240),ca=n(19677),ua=n(24611),fa=n(23680),da=n(17204),la=n(24269),pa=n(38114),ba=n(745),ha=n(53755),ya=n(47061),ma=n(59900),va=n(19961),ga=n(13691),Aa=n(88839),wa=("object"==typeof self&&"crypto"in self&&self.crypto,function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)});if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");var xa=Array.from({length:256},(function(e,t){return t.toString(16).padStart(2,"0")}));function _a(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");for(var t="",n=0;n1?t-1:0),r=1;r0&&!n.includes(e.length))throw new TypeError("Expected Uint8Array of length ".concat(n,", not of length=").concat(e.length))}var Oa={number:Ca,bool:function(e){if("boolean"!=typeof e)throw new Error("Expected boolean, not ".concat(e))},bytes:Ta,hash:function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");Ca(e.outputLen),Ca(e.blockLen)},exists:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},output:function(e,t){Ta(e);var n=t.outputLen;if(e.length1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&Ma),l:Number(e>>Ba&Ma)}:{h:0|Number(e>>Ba&Ma),l:0|Number(e&Ma)}}for(var Na={fromBig:Ra,split:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length),a=0;a>>0)<>>0)},shrSH:function(e,t,n){return e>>>n},shrSL:function(e,t,n){return e<<32-n|t>>>n},rotrSH:function(e,t,n){return e>>>n|t<<32-n},rotrSL:function(e,t,n){return e<<32-n|t>>>n},rotrBH:function(e,t,n){return e<<64-n|t>>>n-32},rotrBL:function(e,t,n){return e>>>n-32|t<<64-n},rotr32H:function(e,t){return t},rotr32L:function(e,t){return e},rotlSH:function(e,t,n){return e<>>32-n},rotlSL:function(e,t,n){return t<>>32-n},rotlBH:function(e,t,n){return t<>>64-n},rotlBL:function(e,t,n){return e<>>64-n},add:function(e,t,n,r){var a=(t>>>0)+(r>>>0);return{h:e+n+(a/Math.pow(2,32)|0)|0,l:0|a}},add3L:function(e,t,n){return(e>>>0)+(t>>>0)+(n>>>0)},add3H:function(e,t,n,r){return t+n+r+(e/Math.pow(2,32)|0)|0},add4L:function(e,t,n,r){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)},add4H:function(e,t,n,r,a){return t+n+r+a+(e/Math.pow(2,32)|0)|0},add5H:function(e,t,n,r,a,i){return t+n+r+a+i+(e/Math.pow(2,32)|0)|0},add5L:function(e,t,n,r,a){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(a>>>0)}},Da=Na,ja=[],Ua=[],La=[],Za=BigInt(0),Fa=BigInt(1),Ha=BigInt(2),za=BigInt(7),qa=BigInt(256),Qa=BigInt(113),Ka=0,Va=Fa,Ja=1,Ga=0;Ka<24;Ka++){var Wa=[Ga,(2*Ja+3*Ga)%5];Ja=Wa[0],Ga=Wa[1],ja.push(2*(5*Ga+Ja)),Ua.push((Ka+1)*(Ka+2)/2%64);for(var Ya=Za,Xa=0;Xa<7;Xa++)(Va=(Va<>za)*Qa)%qa)&Ha&&(Ya^=Fa<<(Fa<32?Da.rotlBH(e,t,n):Da.rotlSH(e,t,n)},ai=function(e,t,n){return n>32?Da.rotlBL(e,t,n):Da.rotlSL(e,t,n)},ii=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i,o,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if((0,ya.Z)(this,n),(i=t.call(this)).blockLen=e,i.suffix=r,i.outputLen=a,i.enableXOF=s,i.rounds=c,i.pos=0,i.posOut=0,i.finished=!1,i.destroyed=!1,Pa.number(a),0>=i.blockLen||i.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return i.state=new Uint8Array(200),i.state32=(o=i.state,new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4))),i}return(0,ma.Z)(n,[{key:"keccak",value:function(){!function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=new Uint32Array(10),r=24-t;r<24;r++){for(var a=0;a<10;a++)n[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(var i=0;i<10;i+=2)for(var o=(i+8)%10,s=(i+2)%10,c=n[s],u=n[s+1],f=ri(c,u,1)^n[o],d=ai(c,u,1)^n[o+1],l=0;l<50;l+=10)e[i+l]^=f,e[i+l+1]^=d;for(var p=e[2],b=e[3],h=0;h<24;h++){var y=Ua[h],m=ri(p,b,y),v=ai(p,b,y),g=ja[h];p=e[g],b=e[g+1],e[g]=m,e[g+1]=v}for(var A=0;A<50;A+=10){for(var w=0;w<10;w++)n[w]=e[A+w];for(var x=0;x<10;x++)e[A+x]^=~n[(x+2)%10]&n[(x+4)%10]}e[0]^=ti[r],e[1]^=ni[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(e){Pa.exists(this);for(var t=this.blockLen,n=this.state,r=(e=Sa(e)).length,a=0;a=n&&this.keccak();var i=Math.min(n-this.posOut,a-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}},{key:"xofInto",value:function(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}},{key:"xof",value:function(e){return Pa.number(e),this.xofInto(new Uint8Array(e))}},{key:"digestInto",value:function(e){if(Pa.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(e){var t=this.blockLen,r=this.suffix,a=this.outputLen,i=this.rounds,o=this.enableXOF;return e||(e=new n(t,r,a,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=a,e.enableXOF=o,e.destroyed=this.destroyed,e}}]),n}(Ia),oi=function(e,t,n){return Ea((function(){return new ii(t,e,n)}))},si=(oi(6,144,28),oi(6,136,32)),ci=(oi(6,104,48),oi(6,72,64),oi(1,144,28),oi(1,136,32),oi(1,104,48),oi(1,72,64),function(e,t,n){return r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new ii(t,e,void 0===r.dkLen?n:r.dkLen,!0)},a=function(e,t){return r(t).update(Sa(e)).digest()},i=r({}),a.outputLen=i.outputLen,a.blockLen=i.blockLen,a.create=function(e){return r(e)},a;var r,a,i}),ui=(ci(31,168,16),ci(31,136,32),function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r){var a;(0,ya.Z)(this,n),(a=t.call(this)).finished=!1,a.destroyed=!1,Pa.hash(e);var i=Sa(r);if(a.iHash=e.create(),"function"!=typeof a.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");a.blockLen=a.iHash.blockLen,a.outputLen=a.iHash.outputLen;var o=a.blockLen,s=new Uint8Array(o);s.set(i.length>o?e.create().update(i).digest():i);for(var c=0;cr-i&&(this.process(n,0),i=0);for(var o=i;o>a&i),s=Number(n&i),c=r?4:0,u=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+u,s,r)}(n,r-8,BigInt(8*this.length),a),this.process(n,0);var s=wa(e);this.get().forEach((function(e,t){return s.setUint32(4*t,e,a)}))}},{key:"digest",value:function(){var e=this.buffer,t=this.outputLen;this.digestInto(e);var n=e.slice(0,t);return this.destroy(),n}},{key:"_cloneInto",value:function(e){var t;e||(e=new this.constructor),(t=e).set.apply(t,(0,va.Z)(this.get()));var n=this.blockLen,r=this.buffer,a=this.length,i=this.finished,o=this.destroyed,s=this.pos;return e.length=a,e.pos=s,e.finished=i,e.destroyed=o,a%n&&e.buffer.set(r),e}}]),n}(Ia),li=Da.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((function(e){return BigInt(e)}))),pi=(0,fa.Z)(li,2),bi=pi[0],hi=pi[1],yi=new Uint32Array(80),mi=new Uint32Array(80),vi=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){var e;return(0,ya.Z)(this,n),(e=t.call(this,128,64,16,!1)).Ah=1779033703,e.Al=-205731576,e.Bh=-1150833019,e.Bl=-2067093701,e.Ch=1013904242,e.Cl=-23791573,e.Dh=-1521486534,e.Dl=1595750129,e.Eh=1359893119,e.El=-1377402159,e.Fh=-1694144372,e.Fl=725511199,e.Gh=528734635,e.Gl=-79577749,e.Hh=1541459225,e.Hl=327033209,e}return(0,ma.Z)(n,[{key:"get",value:function(){return[this.Ah,this.Al,this.Bh,this.Bl,this.Ch,this.Cl,this.Dh,this.Dl,this.Eh,this.El,this.Fh,this.Fl,this.Gh,this.Gl,this.Hh,this.Hl]}},{key:"set",value:function(e,t,n,r,a,i,o,s,c,u,f,d,l,p,b,h){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|a,this.Cl=0|i,this.Dh=0|o,this.Dl=0|s,this.Eh=0|c,this.El=0|u,this.Fh=0|f,this.Fl=0|d,this.Gh=0|l,this.Gl=0|p,this.Hh=0|b,this.Hl=0|h}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)yi[n]=e.getUint32(t),mi[n]=e.getUint32(t+=4);for(var r=16;r<80;r++){var a=0|yi[r-15],i=0|mi[r-15],o=Da.rotrSH(a,i,1)^Da.rotrSH(a,i,8)^Da.shrSH(a,i,7),s=Da.rotrSL(a,i,1)^Da.rotrSL(a,i,8)^Da.shrSL(a,i,7),c=0|yi[r-2],u=0|mi[r-2],f=Da.rotrSH(c,u,19)^Da.rotrBH(c,u,61)^Da.shrSH(c,u,6),d=Da.rotrSL(c,u,19)^Da.rotrBL(c,u,61)^Da.shrSL(c,u,6),l=Da.add4L(s,d,mi[r-7],mi[r-16]),p=Da.add4H(l,o,f,yi[r-7],yi[r-16]);yi[r]=0|p,mi[r]=0|l}for(var b=this.Ah,h=this.Al,y=this.Bh,m=this.Bl,v=this.Ch,g=this.Cl,A=this.Dh,w=this.Dl,x=this.Eh,_=this.El,k=this.Fh,S=this.Fl,I=this.Gh,E=this.Gl,C=this.Hh,T=this.Hl,O=0;O<80;O++){var P=Da.rotrSH(x,_,14)^Da.rotrSH(x,_,18)^Da.rotrBH(x,_,41),M=Da.rotrSL(x,_,14)^Da.rotrSL(x,_,18)^Da.rotrBL(x,_,41),B=x&k^~x&I,R=_&S^~_&E,N=Da.add5L(T,M,R,hi[O],mi[O]),D=Da.add5H(N,C,P,B,bi[O],yi[O]),j=0|N,U=Da.rotrSH(b,h,28)^Da.rotrBH(b,h,34)^Da.rotrBH(b,h,39),L=Da.rotrSL(b,h,28)^Da.rotrBL(b,h,34)^Da.rotrBL(b,h,39),Z=b&y^b&v^y&v,F=h&m^h&g^m&g;C=0|I,T=0|E,I=0|k,E=0|S,k=0|x,S=0|_;var H=Da.add(0|A,0|w,0|D,0|j);x=H.h,_=H.l,A=0|v,w=0|g,v=0|y,g=0|m,y=0|b,m=0|h;var z=Da.add3L(j,L,F);b=Da.add3H(z,D,U,Z),h=0|z}var q=Da.add(0|this.Ah,0|this.Al,0|b,0|h);b=q.h,h=q.l;var Q=Da.add(0|this.Bh,0|this.Bl,0|y,0|m);y=Q.h,m=Q.l;var K=Da.add(0|this.Ch,0|this.Cl,0|v,0|g);v=K.h,g=K.l;var V=Da.add(0|this.Dh,0|this.Dl,0|A,0|w);A=V.h,w=V.l;var J=Da.add(0|this.Eh,0|this.El,0|x,0|_);x=J.h,_=J.l;var G=Da.add(0|this.Fh,0|this.Fl,0|k,0|S);k=G.h,S=G.l;var W=Da.add(0|this.Gh,0|this.Gl,0|I,0|E);I=W.h,E=W.l;var Y=Da.add(0|this.Hh,0|this.Hl,0|C,0|T);C=Y.h,T=Y.l,this.set(b,h,y,m,v,g,A,w,x,_,k,S,I,E,C,T)}},{key:"roundClean",value:function(){yi.fill(0),mi.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),n}(di),gi=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){var e;return(0,ya.Z)(this,n),(e=t.call(this)).Ah=573645204,e.Al=-64227540,e.Bh=-1621794909,e.Bl=-934517566,e.Ch=596883563,e.Cl=1867755857,e.Dh=-1774684391,e.Dl=1497426621,e.Eh=-1775747358,e.El=-1467023389,e.Fh=-1101128155,e.Fl=1401305490,e.Gh=721525244,e.Gl=746961066,e.Hh=246885852,e.Hl=-2117784414,e.outputLen=32,e}return(0,ma.Z)(n)}(vi),Ai=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){var e;return(0,ya.Z)(this,n),(e=t.call(this)).Ah=-876896931,e.Al=-1056596264,e.Bh=1654270250,e.Bl=914150663,e.Ch=-1856437926,e.Cl=812702999,e.Dh=355462360,e.Dl=-150054599,e.Eh=1731405415,e.El=-4191439,e.Fh=-1900787065,e.Fl=1750603025,e.Gh=-619958771,e.Gl=1694076839,e.Hh=1203062813,e.Hl=-1090891868,e.outputLen=48,e}return(0,ma.Z)(n)}(vi),wi=Ea((function(){return new vi})),xi=(Ea((function(){return new gi})),Ea((function(){return new Ai})),n(73812)),_i=n(15990),ki=["sender"],Si=Object.defineProperty,Ii=Object.getOwnPropertyDescriptor,Ei=function(e,t){for(var n in t)Si(e,n,{get:t[n],enumerable:!0})},Ci=function(e,t,n,r){for(var a,i=r>1?void 0:r?Ii(t,n):t,o=e.length-1;o>=0;o--)(a=e[o])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&Si(t,n,i),i},Ti=/^m(\/[0-9]+')+$/,Oi=function(e){return e.replace("'","")},Pi=function(){function e(t){(0,ya.Z)(this,e),t.startsWith("0x")?this.hexString=t:this.hexString="0x".concat(t)}return(0,ma.Z)(e,[{key:"hex",value:function(){return this.hexString}},{key:"noPrefix",value:function(){return this.hexString.slice(2)}},{key:"toString",value:function(){return this.hex()}},{key:"toShortString",value:function(){var e=this.hexString.replace(/^0x0*/,"");return"0x".concat(e)}},{key:"toUint8Array",value:function(){return Uint8Array.from(ka(this.noPrefix()))}}],[{key:"fromBuffer",value:function(t){return e.fromUint8Array(t)}},{key:"fromUint8Array",value:function(t){return new e(_a(t))}},{key:"ensure",value:function(t){return"string"==typeof t?new e(t):t}}]),e}();function Mi(e){return Bi.apply(this,arguments)}function Bi(){return(Bi=(0,ha.Z)((0,ua.Z)().mark((function e(t){return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout(e,t)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ri=2e5;function Ni(e){var t,n,r;return"object"==typeof e?(t=e.hashFunction,n=e.ttlMs,r=e.tags):t=e,function(e,a,i){if(null!=i.value)i.value=ji(i.value,t,n,r);else{if(null==i.get)throw new Error("Only put a Memoize() decorator on a method or get accessor.");i.get=ji(i.get,t,n,r)}}}var Di=new Map;function ji(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0,a=Symbol("__memoized_map__");return function(){var i,o=this;o.hasOwnProperty(a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!1,writable:!1,value:new Map});var s=o[a];if(Array.isArray(r)){var c,u=(0,ba.Z)(r);try{for(u.s();!(c=u.n()).done;){var f=c.value;Di.has(f)?Di.get(f).push(s):Di.set(f,[s])}}catch(e){u.e(e)}finally{u.f()}}for(var d=arguments.length,l=new Array(d),p=0;p0||n>0){var b;b=!0===t?l.map((function(e){return e.toString()})).join("!"):t?t.apply(o,l):l[0];var h="".concat(b,"__timestamp"),y=!1;if(n>0)if(s.has(h)){var m=s.get(h);y=Date.now()-m>n}else y=!0;s.has(b)&&!y?i=s.get(b):(i=e.apply(o,l),s.set(b,i),n>0&&s.set(h,Date.now()))}else{var v=o;s.has(v)?i=s.get(v):(i=e.apply(o,l),s.set(v,i))}return i}}function Ui(e,t,n,r){return Li.apply(this,arguments)}function Li(){return(Li=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a){var i,o,s,c;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=[];case 1:return e.next=4,t(Pi.ensure(n).hex(),null==(i=null==a?void 0:a.ledgerVersion)?void 0:i.toString(),s,r);case 4:if(c=e.sent,s=c.__headers["x-aptos-cursor"],delete c.__headers,o.push.apply(o,(0,va.Z)(c)),null!=s){e.next=10;break}return e.abrupt("break",12);case 10:e.next=1;break;case 12:return e.abrupt("return",o);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Zi={};Ei(Zi,{AccountAddress:function(){return lo},AccountAuthenticator:function(){return xo},AccountAuthenticatorEd25519:function(){return _o},AccountAuthenticatorMultiEd25519:function(){return ko},ArgumentABI:function(){return ls},AuthenticationKey:function(){return ms},ChainId:function(){return Xo},ChangeSet:function(){return qo},Ed25519PublicKey:function(){return po},Ed25519Signature:function(){return bo},EntryFunction:function(){return Fo},EntryFunctionABI:function(){return hs},Identifier:function(){return So},Module:function(){return Ho},ModuleId:function(){return zo},MultiAgentRawTransaction:function(){return Jo},MultiEd25519PublicKey:function(){return ho},MultiEd25519Signature:function(){return mo},RawTransaction:function(){return Lo},RawTransactionWithData:function(){return Vo},RotationProofChallenge:function(){return vs},Script:function(){return Zo},ScriptABI:function(){return ps},SignedTransaction:function(){return Ko},StructTag:function(){return Uo},Transaction:function(){return us},TransactionArgument:function(){return $o},TransactionArgumentAddress:function(){return os},TransactionArgumentBool:function(){return cs},TransactionArgumentU128:function(){return as},TransactionArgumentU16:function(){return ts},TransactionArgumentU256:function(){return is},TransactionArgumentU32:function(){return ns},TransactionArgumentU64:function(){return rs},TransactionArgumentU8:function(){return es},TransactionArgumentU8Vector:function(){return ss},TransactionAuthenticator:function(){return vo},TransactionAuthenticatorEd25519:function(){return go},TransactionAuthenticatorMultiAgent:function(){return wo},TransactionAuthenticatorMultiEd25519:function(){return Ao},TransactionPayload:function(){return Go},TransactionPayloadEntryFunction:function(){return Yo},TransactionPayloadScript:function(){return Wo},TransactionScriptABI:function(){return bs},TypeArgumentABI:function(){return ds},TypeTag:function(){return Io},TypeTagAddress:function(){return Ro},TypeTagBool:function(){return Eo},TypeTagSigner:function(){return No},TypeTagStruct:function(){return jo},TypeTagU128:function(){return Mo},TypeTagU16:function(){return To},TypeTagU256:function(){return Bo},TypeTagU32:function(){return Oo},TypeTagU64:function(){return Po},TypeTagU8:function(){return Co},TypeTagVector:function(){return Do},UserTransaction:function(){return fs},WriteSet:function(){return Qo}});var Fi={};Ei(Fi,{Deserializer:function(){return Wi},Serializer:function(){return Ji},bcsSerializeBool:function(){return oo},bcsSerializeBytes:function(){return co},bcsSerializeFixedBytes:function(){return uo},bcsSerializeStr:function(){return so},bcsSerializeU128:function(){return io},bcsSerializeU16:function(){return ro},bcsSerializeU32:function(){return ao},bcsSerializeU8:function(){return no},bcsSerializeUint64:function(){return to},bcsToBytes:function(){return eo},deserializeVector:function(){return $i},serializeVector:function(){return Yi},serializeVectorWithFunc:function(){return Xi}});var Hi=Math.pow(2,8)-1,zi=Math.pow(2,16)-1,qi=Math.pow(2,32)-1,Qi=BigInt(Math.pow(2,64))-BigInt(1),Ki=BigInt(Math.pow(2,128))-BigInt(1),Vi=BigInt(Math.pow(2,256))-BigInt(1),Ji=function(){function e(){(0,ya.Z)(this,e),this.buffer=new ArrayBuffer(64),this.offset=0}return(0,ma.Z)(e,[{key:"ensureBufferWillHandleSize",value:function(e){for(;this.buffer.byteLength>BigInt(32);this.serializeU32(Number(t)),this.serializeU32(Number(n))}},{key:"serializeU128",value:function(e){var t=BigInt(e.toString())&Qi,n=BigInt(e.toString())>>BigInt(64);this.serializeU64(t),this.serializeU64(n)}},{key:"serializeU256",value:function(e){var t=BigInt(e.toString())&Ki,n=BigInt(e.toString())>>BigInt(128);this.serializeU128(t),this.serializeU128(n)}},{key:"serializeU32AsUleb128",value:function(e){for(var t=e,n=[];t>>>7!=0;)n.push(127&t|128),t>>>=7;n.push(t),this.serialize(new Uint8Array(n))}},{key:"getBytes",value:function(){return new Uint8Array(this.buffer).slice(0,this.offset)}}]),e}();function Gi(e,t,n){return function(r,a,i){var o=i.value;return i.value=function(r){var a=BigInt(r.toString());if(a>BigInt(t.toString())||athis.buffer.byteLength)throw new Error("Reached to the end of buffer");var t=this.buffer.slice(this.offset,this.offset+e);return this.offset+=e,t}},{key:"deserializeStr",value:function(){var e=this.deserializeBytes();return(new TextDecoder).decode(e)}},{key:"deserializeBytes",value:function(){var e=this.deserializeUleb128AsU32();return new Uint8Array(this.read(e))}},{key:"deserializeFixedBytes",value:function(e){return new Uint8Array(this.read(e))}},{key:"deserializeBool",value:function(){var e=new Uint8Array(this.read(1))[0];if(1!==e&&0!==e)throw new Error("Invalid boolean value");return 1===e}},{key:"deserializeU8",value:function(){return new DataView(this.read(1)).getUint8(0)}},{key:"deserializeU16",value:function(){return new DataView(this.read(2)).getUint16(0,!0)}},{key:"deserializeU32",value:function(){return new DataView(this.read(4)).getUint32(0,!0)}},{key:"deserializeU64",value:function(){var e=this.deserializeU32(),t=this.deserializeU32();return BigInt(BigInt(t)<qi)throw new Error("Overflow while parsing uleb128-encoded uint32 value");return Number(e)}}]),e}();function Yi(e,t){t.serializeU32AsUleb128(e.length),e.forEach((function(e){e.serialize(t)}))}function Xi(e,t){var n=new Ji;n.serializeU32AsUleb128(e.length);var r=n[t];return e.forEach((function(e){r.call(n,e)})),n.getBytes()}function $i(e,t){for(var n=e.deserializeUleb128AsU32(),r=[],a=0;ae.LENGTH)throw new Error("Hex string is too long. Address's length is 32 bytes.");if(r.length===e.LENGTH)return new e(r);var a=new Uint8Array(e.LENGTH);return a.set(r,e.LENGTH-r.length),new e(a)}},{key:"isValid",value:function(t){if(""===t)return!1;var n=Pi.ensure(t);return n.noPrefix().length%2!=0&&(n=new Pi("0".concat(n.noPrefix()))),n.toUint8Array().length<=e.LENGTH}},{key:"deserialize",value:function(t){return new e(t.deserializeFixedBytes(e.LENGTH))}}]),e}(),lo=fo;lo.LENGTH=32,lo.CORE_CODE_ADDRESS=fo.fromHex("0x1");var po=function(){function e(t){if((0,ya.Z)(this,e),t.length!==e.LENGTH)throw new Error("Ed25519PublicKey length should be ".concat(e.LENGTH));this.value=t}return(0,ma.Z)(e,[{key:"toBytes",value:function(){return this.value}},{key:"serialize",value:function(e){e.serializeBytes(this.value)}}],[{key:"deserialize",value:function(t){return new e(t.deserializeBytes())}}]),e}();po.LENGTH=32;var bo=function(){function e(t){if((0,ya.Z)(this,e),this.value=t,t.length!==e.LENGTH)throw new Error("Ed25519Signature length should be ".concat(e.LENGTH))}return(0,ma.Z)(e,[{key:"serialize",value:function(e){e.serializeBytes(this.value)}}],[{key:"deserialize",value:function(t){return new e(t.deserializeBytes())}}]),e}();bo.LENGTH=64;var ho=function(){function e(t,n){if((0,ya.Z)(this,e),this.public_keys=t,this.threshold=n,n>32)throw new Error('"threshold" cannot be larger than '.concat(32))}return(0,ma.Z)(e,[{key:"toBytes",value:function(){var e=new Uint8Array(this.public_keys.length*po.LENGTH+1);return this.public_keys.forEach((function(t,n){e.set(t.value,n*po.LENGTH)})),e[this.public_keys.length*po.LENGTH]=this.threshold,e}},{key:"serialize",value:function(e){e.serializeBytes(this.toBytes())}}],[{key:"deserialize",value:function(t){for(var n=t.deserializeBytes(),r=n[n.length-1],a=[],i=0;i=32)throw new Error("Invalid bit value ".concat(e,"."));if(n.has(e))throw new Error("Duplicated bits detected.");n.add(e);var r=Math.floor(e/8),a=t[r];a|=128>>e%8,t[r]=a})),t}},{key:"deserialize",value:function(t){for(var n=t.deserializeBytes(),r=n.subarray(n.length-4),a=[],i=0;i2&&void 0!==arguments[2]?arguments[2]:2147483648;if(!function(e){return!!Ti.test(e)&&!e.split("/").slice(1).map(Oi).some(Number.isNaN)}(e))throw new Error("Invalid derivation path");var r=function(e){var t=fi.create(wi,"ed25519 seed").update(ka(e)).digest();return{key:t.slice(0,32),chainCode:t.slice(32)}}(t),a=r.key,i=r.chainCode;return e.split("/").slice(1).map(Oi).map((function(e){return parseInt(e,10)})).reduce((function(e,t){return function(e,t){var n=e.key,r=e.chainCode,a=new ArrayBuffer(4);new DataView(a).setUint32(0,t);var i=new Uint8Array(a),o=new Uint8Array([0]),s=new Uint8Array([].concat((0,va.Z)(o),(0,va.Z)(n),(0,va.Z)(i))),c=fi.create(wi,r).update(s).digest();return{key:c.slice(0,32),chainCode:c.slice(32)}}(e,t+n)}),{key:a,chainCode:i})}(t,_a(Aa.Z1(r))).key)}},{key:"getResourceAccountAddress",value:function(e,t){var n=eo(lo.fromHex(e)),r=new Uint8Array([].concat((0,va.Z)(n),(0,va.Z)(t),[ms.DERIVE_RESOURCE_ACCOUNT_SCHEME])),a=si.create();return a.update(r),Pi.fromUint8Array(a.digest())}}]),e}(),As=gs;As.isValidPath=function(e){return!!/^m\/44'\/637'\/[0-9]+'\/[0-9]+'\/[0-9]+'+$/.test(e)},Ci([Ni()],As.prototype,"authKey",1);var ws={};Ei(ws,{$AccountData:function(){return tc},$AccountSignature:function(){return nc},$AccountSignature_Ed25519Signature:function(){return rc},$AccountSignature_MultiEd25519Signature:function(){return ac},$Address:function(){return ic},$AptosError:function(){return oc},$AptosErrorCode:function(){return sc},$Block:function(){return cc},$BlockMetadataTransaction:function(){return uc},$DecodedTableData:function(){return fc},$DeleteModule:function(){return lc},$DeleteResource:function(){return pc},$DeleteTableItem:function(){return bc},$DeletedTableData:function(){return dc},$DirectWriteSet:function(){return hc},$Ed25519Signature:function(){return yc},$EncodeSubmissionRequest:function(){return mc},$EntryFunctionId:function(){return vc},$EntryFunctionPayload:function(){return gc},$Event:function(){return Ac},$EventGuid:function(){return wc},$GasEstimation:function(){return xc},$GenesisPayload:function(){return _c},$GenesisPayload_WriteSetPayload:function(){return kc},$GenesisTransaction:function(){return Sc},$HashValue:function(){return Ic},$HealthCheckSuccess:function(){return Ec},$HexEncodedBytes:function(){return Cc},$IdentifierWrapper:function(){return Tc},$IndexResponse:function(){return Oc},$ModuleBundlePayload:function(){return Pc},$MoveAbility:function(){return Mc},$MoveFunction:function(){return Bc},$MoveFunctionGenericTypeParam:function(){return Rc},$MoveFunctionVisibility:function(){return Nc},$MoveModule:function(){return Dc},$MoveModuleBytecode:function(){return jc},$MoveModuleId:function(){return Uc},$MoveResource:function(){return Lc},$MoveScriptBytecode:function(){return Zc},$MoveStruct:function(){return Fc},$MoveStructField:function(){return Hc},$MoveStructGenericTypeParam:function(){return zc},$MoveStructTag:function(){return qc},$MoveStructValue:function(){return Qc},$MoveType:function(){return Kc},$MoveValue:function(){return Vc},$MultiAgentSignature:function(){return Jc},$MultiEd25519Signature:function(){return Gc},$PendingTransaction:function(){return Wc},$RawTableItemRequest:function(){return Yc},$RoleType:function(){return Xc},$ScriptPayload:function(){return $c},$ScriptWriteSet:function(){return eu},$StateCheckpointTransaction:function(){return tu},$StateKeyWrapper:function(){return nu},$SubmitTransactionRequest:function(){return ru},$TableItemRequest:function(){return au},$Transaction:function(){return iu},$TransactionPayload:function(){return du},$TransactionPayload_EntryFunctionPayload:function(){return lu},$TransactionPayload_ModuleBundlePayload:function(){return pu},$TransactionPayload_ScriptPayload:function(){return bu},$TransactionSignature:function(){return mu},$TransactionSignature_Ed25519Signature:function(){return vu},$TransactionSignature_MultiAgentSignature:function(){return gu},$TransactionSignature_MultiEd25519Signature:function(){return Au},$Transaction_BlockMetadataTransaction:function(){return ou},$Transaction_GenesisTransaction:function(){return su},$Transaction_PendingTransaction:function(){return cu},$Transaction_StateCheckpointTransaction:function(){return uu},$Transaction_UserTransaction:function(){return fu},$TransactionsBatchSingleSubmissionFailure:function(){return hu},$TransactionsBatchSubmissionResult:function(){return yu},$U128:function(){return wu},$U256:function(){return xu},$U64:function(){return _u},$UserTransaction:function(){return ku},$VersionedEvent:function(){return Su},$ViewRequest:function(){return Iu},$WriteModule:function(){return Eu},$WriteResource:function(){return Cu},$WriteSet:function(){return Tu},$WriteSetChange:function(){return Mu},$WriteSetChange_DeleteModule:function(){return Bu},$WriteSetChange_DeleteResource:function(){return Ru},$WriteSetChange_DeleteTableItem:function(){return Nu},$WriteSetChange_WriteModule:function(){return Du},$WriteSetChange_WriteResource:function(){return ju},$WriteSetChange_WriteTableItem:function(){return Uu},$WriteSetPayload:function(){return Lu},$WriteSet_DirectWriteSet:function(){return Ou},$WriteSet_ScriptWriteSet:function(){return Pu},$WriteTableItem:function(){return Zu},AccountsService:function(){return zs},ApiError:function(){return _s},AptosErrorCode:function(){return Xs},AptosGeneratedClient:function(){return Ws},BaseHttpRequest:function(){return xs},BlocksService:function(){return qs},CancelError:function(){return ks},CancelablePromise:function(){return Ss},EventsService:function(){return Qs},GeneralService:function(){return Ks},MoveFunctionVisibility:function(){return $s},OpenAPI:function(){return Ys},RoleType:function(){return ec},TablesService:function(){return Vs},TransactionsService:function(){return Js},ViewService:function(){return Gs}});var xs=(0,ma.Z)((function e(t){(0,ya.Z)(this,e),this.config=t})),_s=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,a)).name="ApiError",i.url=r.url,i.status=r.status,i.statusText=r.statusText,i.body=r.body,i.request=e,i}return(0,ma.Z)(n)}((0,da.Z)(Error)),ks=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r;return(0,ya.Z)(this,n),(r=t.call(this,e)).name="CancelError",r}return(0,ma.Z)(n,[{key:"isCancelled",get:function(){return!0}}]),n}((0,da.Z)(Error)),Ss=function(){function e(t){var n=this;(0,ya.Z)(this,e),this._isResolved=!1,this._isRejected=!1,this._isCancelled=!1,this._cancelHandlers=[],this._promise=new Promise((function(e,r){n._resolve=e,n._reject=r;var a=function(e){n._isResolved||n._isRejected||n._isCancelled||n._cancelHandlers.push(e)};return Object.defineProperty(a,"isResolved",{get:function(){return n._isResolved}}),Object.defineProperty(a,"isRejected",{get:function(){return n._isRejected}}),Object.defineProperty(a,"isCancelled",{get:function(){return n._isCancelled}}),t((function(e){var t;n._isResolved||n._isRejected||n._isCancelled||(n._isResolved=!0,null==(t=n._resolve)||t.call(n,e))}),(function(e){var t;n._isResolved||n._isRejected||n._isCancelled||(n._isRejected=!0,null==(t=n._reject)||t.call(n,e))}),a)}))}return(0,ma.Z)(e,[{key:"then",value:function(e,t){return this._promise.then(e,t)}},{key:"catch",value:function(e){return this._promise.catch(e)}},{key:"finally",value:function(e){return this._promise.finally(e)}},{key:"cancel",value:function(){var e;if(!(this._isResolved||this._isRejected||this._isCancelled)){if(this._isCancelled=!0,this._cancelHandlers.length)try{var t,n=(0,ba.Z)(this._cancelHandlers);try{for(n.s();!(t=n.n()).done;)(0,t.value)()}catch(e){n.e(e)}finally{n.f()}}catch(e){return void console.warn("Cancellation threw an error",e)}this._cancelHandlers.length=0,null==(e=this._reject)||e.call(this,new ks("Request aborted"))}}},{key:"isCancelled",get:function(){return this._isCancelled}}]),e}();Symbol.toStringTag;var Is=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map;(0,ya.Z)(this,e),this.jar=t}return(0,ma.Z)(e,[{key:"setCookie",value:function(t,n){var r,a=t.origin.toLowerCase();this.jar.has(a)||this.jar.set(a,[]);var i=e.parse(n);this.jar.set(a,[].concat((0,va.Z)((null==(r=this.jar.get(a))?void 0:r.filter((function(e){return e.name!==i.name})))||[]),[i]))}},{key:"getCookies",value:function(e){var t,n=e.origin.toLowerCase();return this.jar.get(n)&&(null==(t=this.jar.get(n))?void 0:t.filter((function(e){return!e.expires||e.expires>new Date})))||[]}}],[{key:"parse",value:function(e){if("string"!=typeof e)throw new Error("argument str must be a string");var t,n=e.split(";").map((function(e){return e.trim()}));if(!(n.length>0))throw new Error("Invalid cookie");var r=n[0].split("="),a=(0,fa.Z)(r,2),i=a[0],o=a[1];if(!i||!o)throw new Error("Invalid cookie");return t={name:i,value:o},n.slice(1).forEach((function(e){var n=e.split("="),r=(0,fa.Z)(n,2),a=r[0],i=r[1];if(!a.trim())throw new Error("Invalid cookie");var o=a.toLowerCase(),s="'"===(null==i?void 0:i.charAt(0))||'"'===(null==i?void 0:i.charAt(0))?null==i?void 0:i.slice(1,-1):i;if("expires"===o&&(t.expires=new Date(s)),"path"===o&&(t.path=s),"samesite"===o){if("Lax"!==s&&"None"!==s&&"Strict"!==s)throw new Error("Invalid cookie SameSite value");t.sameSite=s}"secure"===o&&(t.secure=!0)})),t}}]),e}(),Es=new Is;xi.interceptors.response.use((function(e){return Array.isArray(e.headers["set-cookie"])&&e.headers["set-cookie"].forEach((function(t){Es.setCookie(new URL(e.config.url),t)})),e})),xi.interceptors.request.use((function(e){var t=Es.getCookies(new URL(e.url));return(null==t?void 0:t.length)>0&&e.headers&&(e.headers.cookie=t.map((function(e){return"".concat(e.name,"=").concat(e.value)})).join("; ")),e}));var Cs=function(e){return null!=e},Ts=function(e){return"string"==typeof e},Os=function(e){return Ts(e)&&""!==e},Ps=function(e){return"object"==typeof e&&"string"==typeof e.type&&"function"==typeof e.stream&&"function"==typeof e.arrayBuffer&&"function"==typeof e.constructor&&"string"==typeof e.constructor.name&&/^(Blob|File)$/.test(e.constructor.name)&&/^(Blob|File)$/.test(e[Symbol.toStringTag])},Ms=function(e){var t=[],n=function e(n,r){Cs(r)&&(Array.isArray(r)?r.forEach((function(t){e(n,t)})):"object"==typeof r?Object.entries(r).forEach((function(t){var r=(0,fa.Z)(t,2),a=r[0],i=r[1];e("".concat(n,"[").concat(a,"]"),i)})):function(e,n){t.push("".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(String(n))))}(n,r))};return Object.entries(e).forEach((function(e){var t=(0,fa.Z)(e,2),r=t[0],a=t[1];n(r,a)})),t.length>0?"?".concat(t.join("&")):""},Bs=function(e,t){var n=e.ENCODE_PATH||encodeURI,r=t.url.replace("{api-version}",e.VERSION).replace(/{(.*?)}/g,(function(e,r){var a;return(null==(a=t.path)?void 0:a.hasOwnProperty(r))?n(String(t.path[r])):e})),a="".concat(e.BASE).concat(r);return t.query?"".concat(a).concat(Ms(t.query)):a},Rs=function(e){if(e.formData){var t=new _i,n=function(e,n){Ts(n)||Ps(n)?t.append(e,n):t.append(e,JSON.stringify(n))};return Object.entries(e.formData).filter((function(e){var t=(0,fa.Z)(e,2),n=(t[0],t[1]);return Cs(n)})).forEach((function(e){var t=(0,fa.Z)(e,2),r=t[0],a=t[1];Array.isArray(a)?a.forEach((function(e){return n(r,e)})):n(r,a)})),t}},Ns=function(){var e=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("function"!=typeof n){e.next=2;break}return e.abrupt("return",n(t));case 2:return e.abrupt("return",n);case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Ds=function(){var e=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a,i,o,s,c,u,f;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ns(n,t.TOKEN);case 2:return a=e.sent,e.next=5,Ns(n,t.USERNAME);case 5:return i=e.sent,e.next=8,Ns(n,t.PASSWORD);case 8:return o=e.sent,e.next=11,Ns(n,t.HEADERS);case 11:return s=e.sent,c="function"==typeof(null==r?void 0:r.getHeaders)&&(null==r?void 0:r.getHeaders())||{},u=Object.entries((0,ca.Z)((0,ca.Z)((0,ca.Z)({Accept:"application/json"},s),n.headers),c)).filter((function(e){var t=(0,fa.Z)(e,2),n=(t[0],t[1]);return Cs(n)})).reduce((function(e,t){var n=(0,fa.Z)(t,2),r=n[0],a=n[1];return(0,ca.Z)((0,ca.Z)({},e),{},(0,sa.Z)({},r,String(a)))}),{}),Os(a)&&(u.Authorization="Bearer ".concat(a)),Os(i)&&Os(o)&&(d="".concat(i,":").concat(o),f=btoa(d),u.Authorization="Basic ".concat(f)),n.body&&(n.mediaType?u["Content-Type"]=n.mediaType:Ps(n.body)?u["Content-Type"]=n.body.type||"application/octet-stream":Ts(n.body)?u["Content-Type"]="text/plain":n.body instanceof _i||(u["Content-Type"]="application/json")),e.abrupt("return",u);case 18:case"end":return e.stop()}var d}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),js=function(e){if(e.body)return e.body},Us=function(){var e=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a,i,o,s){var c,u,f;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=xi.CancelToken.source(),u={url:r,headers:o,data:null!=a?a:i,method:n.method,withCredentials:t.WITH_CREDENTIALS,cancelToken:c.token},Object.keys(t.HEADERS||{}).filter((function(e){return"accept"===e.toLowerCase()})).map((function(e){return t.HEADERS[e]})).includes("application/x-bcs")&&(u.responseType="arraybuffer"),s((function(){return c.cancel("The user aborted a request.")})),e.prev=5,e.next=8,xi.request(u);case 8:return e.abrupt("return",e.sent);case 11:if(e.prev=11,e.t0=e.catch(5),!(f=e.t0).response){e.next=16;break}return e.abrupt("return",f.response);case 16:throw e.t0;case 17:case"end":return e.stop()}}),e,null,[[5,11]])})));return function(t,n,r,a,i,o,s){return e.apply(this,arguments)}}(),Ls=function(e,t){if(t){var n=e.headers[t];if(Ts(n))return n}},Zs=function(e){if(204!==e.status)return e.data},Fs=function(e,t){var n=(0,ca.Z)({400:"Bad Request",401:"Unauthorized",403:"Forbidden",404:"Not Found",429:"Too Many Requests",500:"Internal Server Error",502:"Bad Gateway",503:"Service Unavailable"},e.errors)[t.status];if(n)throw new _s(e,t,n);if(!t.ok)throw new _s(e,t,"Generic Error")},Hs=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){return(0,ya.Z)(this,n),t.call(this,e)}return(0,ma.Z)(n,[{key:"request",value:function(e){return function(e,t){return new Ss(function(){var n=(0,ha.Z)((0,ua.Z)().mark((function n(r,a,i){var o,s,c,u,f,d,l,p,b;return(0,ua.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,o=Bs(e,t),s=Rs(t),c=js(t),n.next=6,Ds(e,t,s);case 6:if(u=n.sent,i.isCancelled){n.next=18;break}return n.next=10,Us(e,t,o,c,s,u,i);case 10:f=n.sent,d=Zs(f),l=Ls(f,t.responseHeader),p={url:o,ok:(h=f.status,h>=200&&h<300),status:f.status,statusText:f.statusText,body:null!=l?l:d},Fs(t,p),b=p.body;try{b.__headers=f.headers}catch(e){}r(b);case 18:n.next=23;break;case 20:n.prev=20,n.t0=n.catch(0),a(n.t0);case 23:case"end":return n.stop()}var h}),n,null,[[0,20]])})));return function(e,t,r){return n.apply(this,arguments)}}())}(this.config,e)}}]),n}(xs),zs=function(){function e(t){(0,ya.Z)(this,e),this.httpRequest=t}return(0,ma.Z)(e,[{key:"getAccount",value:function(e,t){return this.httpRequest.request({method:"GET",url:"/accounts/{address}",path:{address:e},query:{ledger_version:t}})}},{key:"getAccountResources",value:function(e,t,n,r){return this.httpRequest.request({method:"GET",url:"/accounts/{address}/resources",path:{address:e},query:{ledger_version:t,start:n,limit:r}})}},{key:"getAccountModules",value:function(e,t,n,r){return this.httpRequest.request({method:"GET",url:"/accounts/{address}/modules",path:{address:e},query:{ledger_version:t,start:n,limit:r}})}},{key:"getAccountResource",value:function(e,t,n){return this.httpRequest.request({method:"GET",url:"/accounts/{address}/resource/{resource_type}",path:{address:e,resource_type:t},query:{ledger_version:n}})}},{key:"getAccountModule",value:function(e,t,n){return this.httpRequest.request({method:"GET",url:"/accounts/{address}/module/{module_name}",path:{address:e,module_name:t},query:{ledger_version:n}})}}]),e}(),qs=function(){function e(t){(0,ya.Z)(this,e),this.httpRequest=t}return(0,ma.Z)(e,[{key:"getBlockByHeight",value:function(e,t){return this.httpRequest.request({method:"GET",url:"/blocks/by_height/{block_height}",path:{block_height:e},query:{with_transactions:t}})}},{key:"getBlockByVersion",value:function(e,t){return this.httpRequest.request({method:"GET",url:"/blocks/by_version/{version}",path:{version:e},query:{with_transactions:t}})}}]),e}(),Qs=function(){function e(t){(0,ya.Z)(this,e),this.httpRequest=t}return(0,ma.Z)(e,[{key:"getEventsByCreationNumber",value:function(e,t,n,r){return this.httpRequest.request({method:"GET",url:"/accounts/{address}/events/{creation_number}",path:{address:e,creation_number:t},query:{start:n,limit:r}})}},{key:"getEventsByEventHandle",value:function(e,t,n,r,a){return this.httpRequest.request({method:"GET",url:"/accounts/{address}/events/{event_handle}/{field_name}",path:{address:e,event_handle:t,field_name:n},query:{start:r,limit:a}})}}]),e}(),Ks=function(){function e(t){(0,ya.Z)(this,e),this.httpRequest=t}return(0,ma.Z)(e,[{key:"spec",value:function(){return this.httpRequest.request({method:"GET",url:"/spec"})}},{key:"healthy",value:function(e){return this.httpRequest.request({method:"GET",url:"/-/healthy",query:{duration_secs:e}})}},{key:"getLedgerInfo",value:function(){return this.httpRequest.request({method:"GET",url:"/"})}}]),e}(),Vs=function(){function e(t){(0,ya.Z)(this,e),this.httpRequest=t}return(0,ma.Z)(e,[{key:"getTableItem",value:function(e,t,n){return this.httpRequest.request({method:"POST",url:"/tables/{table_handle}/item",path:{table_handle:e},query:{ledger_version:n},body:t,mediaType:"application/json"})}},{key:"getRawTableItem",value:function(e,t,n){return this.httpRequest.request({method:"POST",url:"/tables/{table_handle}/raw_item",path:{table_handle:e},query:{ledger_version:n},body:t,mediaType:"application/json"})}}]),e}(),Js=function(){function e(t){(0,ya.Z)(this,e),this.httpRequest=t}return(0,ma.Z)(e,[{key:"getTransactions",value:function(e,t){return this.httpRequest.request({method:"GET",url:"/transactions",query:{start:e,limit:t}})}},{key:"submitTransaction",value:function(e){return this.httpRequest.request({method:"POST",url:"/transactions",body:e,mediaType:"application/json"})}},{key:"getTransactionByHash",value:function(e){return this.httpRequest.request({method:"GET",url:"/transactions/by_hash/{txn_hash}",path:{txn_hash:e}})}},{key:"getTransactionByVersion",value:function(e){return this.httpRequest.request({method:"GET",url:"/transactions/by_version/{txn_version}",path:{txn_version:e}})}},{key:"getAccountTransactions",value:function(e,t,n){return this.httpRequest.request({method:"GET",url:"/accounts/{address}/transactions",path:{address:e},query:{start:t,limit:n}})}},{key:"submitBatchTransactions",value:function(e){return this.httpRequest.request({method:"POST",url:"/transactions/batch",body:e,mediaType:"application/json"})}},{key:"simulateTransaction",value:function(e,t,n,r){return this.httpRequest.request({method:"POST",url:"/transactions/simulate",query:{estimate_max_gas_amount:t,estimate_gas_unit_price:n,estimate_prioritized_gas_unit_price:r},body:e,mediaType:"application/json"})}},{key:"encodeSubmission",value:function(e){return this.httpRequest.request({method:"POST",url:"/transactions/encode_submission",body:e,mediaType:"application/json"})}},{key:"estimateGasPrice",value:function(){return this.httpRequest.request({method:"GET",url:"/estimate_gas_price"})}}]),e}(),Gs=function(){function e(t){(0,ya.Z)(this,e),this.httpRequest=t}return(0,ma.Z)(e,[{key:"view",value:function(e,t){return this.httpRequest.request({method:"POST",url:"/view",query:{ledger_version:t},body:e,mediaType:"application/json"})}}]),e}(),Ws=(0,ma.Z)((function e(t){var n,r,a,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hs;(0,ya.Z)(this,e),this.request=new o({BASE:null!=(n=null==t?void 0:t.BASE)?n:"/v1",VERSION:null!=(r=null==t?void 0:t.VERSION)?r:"1.2.0",WITH_CREDENTIALS:null!=(a=null==t?void 0:t.WITH_CREDENTIALS)&&a,CREDENTIALS:null!=(i=null==t?void 0:t.CREDENTIALS)?i:"include",TOKEN:null==t?void 0:t.TOKEN,USERNAME:null==t?void 0:t.USERNAME,PASSWORD:null==t?void 0:t.PASSWORD,HEADERS:null==t?void 0:t.HEADERS,ENCODE_PATH:null==t?void 0:t.ENCODE_PATH}),this.accounts=new zs(this.request),this.blocks=new qs(this.request),this.events=new Qs(this.request),this.general=new Ks(this.request),this.tables=new Vs(this.request),this.transactions=new Js(this.request),this.view=new Gs(this.request)})),Ys={BASE:"/v1",VERSION:"1.2.0",WITH_CREDENTIALS:!1,CREDENTIALS:"include",TOKEN:void 0,USERNAME:void 0,PASSWORD:void 0,HEADERS:void 0,ENCODE_PATH:void 0},Xs=function(e){return e.ACCOUNT_NOT_FOUND="account_not_found",e.RESOURCE_NOT_FOUND="resource_not_found",e.MODULE_NOT_FOUND="module_not_found",e.STRUCT_FIELD_NOT_FOUND="struct_field_not_found",e.VERSION_NOT_FOUND="version_not_found",e.TRANSACTION_NOT_FOUND="transaction_not_found",e.TABLE_ITEM_NOT_FOUND="table_item_not_found",e.BLOCK_NOT_FOUND="block_not_found",e.VERSION_PRUNED="version_pruned",e.BLOCK_PRUNED="block_pruned",e.INVALID_INPUT="invalid_input",e.INVALID_TRANSACTION_UPDATE="invalid_transaction_update",e.SEQUENCE_NUMBER_TOO_OLD="sequence_number_too_old",e.VM_ERROR="vm_error",e.HEALTH_CHECK_FAILED="health_check_failed",e.MEMPOOL_IS_FULL="mempool_is_full",e.INTERNAL_ERROR="internal_error",e.WEB_FRAMEWORK_ERROR="web_framework_error",e.BCS_NOT_SUPPORTED="bcs_not_supported",e.API_DISABLED="api_disabled",e}(Xs||{}),$s=function(e){return e.PRIVATE="private",e.PUBLIC="public",e.FRIEND="friend",e}($s||{}),ec=function(e){return e.VALIDATOR="validator",e.FULL_NODE="full_node",e}(ec||{}),tc={description:"Account data\n\n A simplified version of the onchain Account resource",properties:{sequence_number:{type:"U64",isRequired:!0},authentication_key:{type:"HexEncodedBytes",isRequired:!0}}},nc={type:"one-of",description:"Account signature scheme\n\n The account signature scheme allows you to have two types of accounts:\n\n 1. A single Ed25519 key account, one private key\n 2. A k-of-n multi-Ed25519 key account, multiple private keys, such that k-of-n must sign a transaction.",contains:[{type:"AccountSignature_Ed25519Signature"},{type:"AccountSignature_MultiEd25519Signature"}]},rc={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"Ed25519Signature"}]},ac={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"MultiEd25519Signature"}]},ic={type:"string",description:"A hex encoded 32 byte Aptos account address.\n\n This is represented in a string as a 64 character hex string, sometimes\n shortened by stripping leading 0s, and adding a 0x.\n\n For example, address 0x0000000000000000000000000000000000000000000000000000000000000001 is represented as 0x1.\n ",format:"hex"},oc={description:"This is the generic struct we use for all API errors, it contains a string\n message and an Aptos API specific error code.",properties:{message:{type:"string",description:"A message describing the error",isRequired:!0},error_code:{type:"AptosErrorCode",isRequired:!0},vm_error_code:{type:"number",description:"A code providing VM error details when submitting transactions to the VM",format:"uint64"}}},sc={type:"Enum"},cc={description:"A Block with or without transactions\n\n This contains the information about a transactions along with\n associated transactions if requested",properties:{block_height:{type:"U64",isRequired:!0},block_hash:{type:"HashValue",isRequired:!0},block_timestamp:{type:"U64",isRequired:!0},first_version:{type:"U64",isRequired:!0},last_version:{type:"U64",isRequired:!0},transactions:{type:"array",contains:{type:"Transaction"}}}},uc={description:"A block metadata transaction\n\n This signifies the beginning of a block, and contains information\n about the specific block",properties:{version:{type:"U64",isRequired:!0},hash:{type:"HashValue",isRequired:!0},state_change_hash:{type:"HashValue",isRequired:!0},event_root_hash:{type:"HashValue",isRequired:!0},state_checkpoint_hash:{type:"HashValue"},gas_used:{type:"U64",isRequired:!0},success:{type:"boolean",description:"Whether the transaction was successful",isRequired:!0},vm_status:{type:"string",description:"The VM status of the transaction, can tell useful information in a failure",isRequired:!0},accumulator_root_hash:{type:"HashValue",isRequired:!0},changes:{type:"array",contains:{type:"WriteSetChange"},isRequired:!0},id:{type:"HashValue",isRequired:!0},epoch:{type:"U64",isRequired:!0},round:{type:"U64",isRequired:!0},events:{type:"array",contains:{type:"Event"},isRequired:!0},previous_block_votes_bitvec:{type:"array",contains:{type:"number",format:"uint8"},isRequired:!0},proposer:{type:"Address",isRequired:!0},failed_proposer_indices:{type:"array",contains:{type:"number",format:"uint32"},isRequired:!0},timestamp:{type:"U64",isRequired:!0}}},fc={description:"Decoded table data",properties:{key:{description:"Key of table in JSON",properties:{},isRequired:!0},key_type:{type:"string",description:"Type of key",isRequired:!0},value:{description:"Value of table in JSON",properties:{},isRequired:!0},value_type:{type:"string",description:"Type of value",isRequired:!0}}},dc={description:"Deleted table data",properties:{key:{description:"Deleted key",properties:{},isRequired:!0},key_type:{type:"string",description:"Deleted key type",isRequired:!0}}},lc={description:"Delete a module",properties:{address:{type:"Address",isRequired:!0},state_key_hash:{type:"string",description:"State key hash",isRequired:!0},module:{type:"MoveModuleId",isRequired:!0}}},pc={description:"Delete a resource",properties:{address:{type:"Address",isRequired:!0},state_key_hash:{type:"string",description:"State key hash",isRequired:!0},resource:{type:"MoveStructTag",isRequired:!0}}},bc={description:"Delete a table item",properties:{state_key_hash:{type:"string",isRequired:!0},handle:{type:"HexEncodedBytes",isRequired:!0},key:{type:"HexEncodedBytes",isRequired:!0},data:{type:"DeletedTableData"}}},hc={properties:{changes:{type:"array",contains:{type:"WriteSetChange"},isRequired:!0},events:{type:"array",contains:{type:"Event"},isRequired:!0}}},yc={description:"A single Ed25519 signature",properties:{public_key:{type:"HexEncodedBytes",isRequired:!0},signature:{type:"HexEncodedBytes",isRequired:!0}}},mc={description:"Request to encode a submission",properties:{sender:{type:"Address",isRequired:!0},sequence_number:{type:"U64",isRequired:!0},max_gas_amount:{type:"U64",isRequired:!0},gas_unit_price:{type:"U64",isRequired:!0},expiration_timestamp_secs:{type:"U64",isRequired:!0},payload:{type:"TransactionPayload",isRequired:!0},secondary_signers:{type:"array",contains:{type:"Address"}}}},vc={type:"string",description:"Entry function id is string representation of a entry function defined on-chain.\n\n Format: `{address}::{module name}::{function name}`\n\n Both `module name` and `function name` are case-sensitive.\n "},gc={description:"Payload which runs a single entry function",properties:{function:{type:"EntryFunctionId",isRequired:!0},type_arguments:{type:"array",contains:{type:"MoveType"},isRequired:!0},arguments:{type:"array",contains:{properties:{}},isRequired:!0}}},Ac={description:"An event from a transaction",properties:{guid:{type:"EventGuid",isRequired:!0},sequence_number:{type:"U64",isRequired:!0},type:{type:"MoveType",isRequired:!0},data:{description:"The JSON representation of the event",properties:{},isRequired:!0}}},wc={properties:{creation_number:{type:"U64",isRequired:!0},account_address:{type:"Address",isRequired:!0}}},xc={description:"Struct holding the outputs of the estimate gas API",properties:{deprioritized_gas_estimate:{type:"number",description:"The deprioritized estimate for the gas unit price",format:"uint64"},gas_estimate:{type:"number",description:"The current estimate for the gas unit price",isRequired:!0,format:"uint64"},prioritized_gas_estimate:{type:"number",description:"The prioritized estimate for the gas unit price",format:"uint64"}}},_c={type:"one-of",description:"The writeset payload of the Genesis transaction",contains:[{type:"GenesisPayload_WriteSetPayload"}]},kc={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"WriteSetPayload"}]},Sc={description:"The genesis transaction\n\n This only occurs at the genesis transaction (version 0)",properties:{version:{type:"U64",isRequired:!0},hash:{type:"HashValue",isRequired:!0},state_change_hash:{type:"HashValue",isRequired:!0},event_root_hash:{type:"HashValue",isRequired:!0},state_checkpoint_hash:{type:"HashValue"},gas_used:{type:"U64",isRequired:!0},success:{type:"boolean",description:"Whether the transaction was successful",isRequired:!0},vm_status:{type:"string",description:"The VM status of the transaction, can tell useful information in a failure",isRequired:!0},accumulator_root_hash:{type:"HashValue",isRequired:!0},changes:{type:"array",contains:{type:"WriteSetChange"},isRequired:!0},payload:{type:"GenesisPayload",isRequired:!0},events:{type:"array",contains:{type:"Event"},isRequired:!0}}},Ic={type:"string"},Ec={description:"Representation of a successful healthcheck",properties:{message:{type:"string",isRequired:!0}}},Cc={type:"string",description:"All bytes (Vec) data is represented as hex-encoded string prefixed with `0x` and fulfilled with\n two hex digits per byte.\n\n Unlike the `Address` type, HexEncodedBytes will not trim any zeros.\n ",format:"hex"},Tc={type:"string"},Oc={description:'The struct holding all data returned to the client by the\n index endpoint (i.e., GET "/"). Only for responding in JSON',properties:{chain_id:{type:"number",description:"Chain ID of the current chain",isRequired:!0,format:"uint8"},epoch:{type:"U64",isRequired:!0},ledger_version:{type:"U64",isRequired:!0},oldest_ledger_version:{type:"U64",isRequired:!0},ledger_timestamp:{type:"U64",isRequired:!0},node_role:{type:"RoleType",isRequired:!0},oldest_block_height:{type:"U64",isRequired:!0},block_height:{type:"U64",isRequired:!0},git_hash:{type:"string",description:"Git hash of the build of the API endpoint. Can be used to determine the exact\n software version used by the API endpoint."}}},Pc={properties:{modules:{type:"array",contains:{type:"MoveModuleBytecode"},isRequired:!0}}},Mc={type:"string"},Bc={description:"Move function",properties:{name:{type:"IdentifierWrapper",isRequired:!0},visibility:{type:"MoveFunctionVisibility",isRequired:!0},is_entry:{type:"boolean",description:"Whether the function can be called as an entry function directly in a transaction",isRequired:!0},generic_type_params:{type:"array",contains:{type:"MoveFunctionGenericTypeParam"},isRequired:!0},params:{type:"array",contains:{type:"MoveType"},isRequired:!0},return:{type:"array",contains:{type:"MoveType"},isRequired:!0}}},Rc={description:"Move function generic type param",properties:{constraints:{type:"array",contains:{type:"MoveAbility"},isRequired:!0}}},Nc={type:"Enum"},Dc={description:"A Move module",properties:{address:{type:"Address",isRequired:!0},name:{type:"IdentifierWrapper",isRequired:!0},friends:{type:"array",contains:{type:"MoveModuleId"},isRequired:!0},exposed_functions:{type:"array",contains:{type:"MoveFunction"},isRequired:!0},structs:{type:"array",contains:{type:"MoveStruct"},isRequired:!0}}},jc={description:"Move module bytecode along with it's ABI",properties:{bytecode:{type:"HexEncodedBytes",isRequired:!0},abi:{type:"MoveModule"}}},Uc={type:"string",description:"Move module id is a string representation of Move module.\n\n Format: `{address}::{module name}`\n\n `address` should be hex-encoded 32 byte account address that is prefixed with `0x`.\n\n Module name is case-sensitive.\n "},Lc={description:"A parsed Move resource",properties:{type:{type:"MoveStructTag",isRequired:!0},data:{type:"MoveStructValue",isRequired:!0}}},Zc={description:"Move script bytecode",properties:{bytecode:{type:"HexEncodedBytes",isRequired:!0},abi:{type:"MoveFunction"}}},Fc={description:"A move struct",properties:{name:{type:"IdentifierWrapper",isRequired:!0},is_native:{type:"boolean",description:"Whether the struct is a native struct of Move",isRequired:!0},abilities:{type:"array",contains:{type:"MoveAbility"},isRequired:!0},generic_type_params:{type:"array",contains:{type:"MoveStructGenericTypeParam"},isRequired:!0},fields:{type:"array",contains:{type:"MoveStructField"},isRequired:!0}}},Hc={description:"Move struct field",properties:{name:{type:"IdentifierWrapper",isRequired:!0},type:{type:"MoveType",isRequired:!0}}},zc={description:"Move generic type param",properties:{constraints:{type:"array",contains:{type:"MoveAbility"},isRequired:!0}}},qc={type:"string",description:"String representation of a MoveStructTag (on-chain Move struct type). This exists so you\n can specify MoveStructTags as path / query parameters, e.g. for get_events_by_event_handle.\n\n It is a combination of:\n 1. `move_module_address`, `module_name` and `struct_name`, all joined by `::`\n 2. `struct generic type parameters` joined by `, `\n\n Examples:\n * `0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>`\n * `0x1::account::Account`\n\n Note:\n 1. Empty chars should be ignored when comparing 2 struct tag ids.\n 2. When used in an URL path, should be encoded by url-encoding (AKA percent-encoding).\n\n See [doc](https://aptos.dev/concepts/accounts) for more details.\n ",pattern:"^0x[0-9a-zA-Z:_<>]+$"},Qc={description:'This is a JSON representation of some data within an account resource. More specifically,\n it is a map of strings to arbitrary JSON values / objects, where the keys are top level\n fields within the given resource.\n\n To clarify, you might query for 0x1::account::Account and see the example data.\n\n Move `bool` type value is serialized into `boolean`.\n\n Move `u8`, `u16` and `u32` type value is serialized into `integer`.\n\n Move `u64`, `u128` and `u256` type value is serialized into `string`.\n\n Move `address` type value (32 byte Aptos account address) is serialized into a HexEncodedBytes string.\n For example:\n - `0x1`\n - `0x1668f6be25668c1a17cd8caf6b8d2f25`\n\n Move `vector` type value is serialized into `array`, except `vector` which is serialized into a\n HexEncodedBytes string with `0x` prefix.\n For example:\n - `vector{255, 255}` => `["255", "255"]`\n - `vector{255, 255}` => `0xffff`\n\n Move `struct` type value is serialized into `object` that looks like this (except some Move stdlib types, see the following section):\n ```json\n {\n field1_name: field1_value,\n field2_name: field2_value,\n ......\n }\n ```\n\n For example:\n `{ "created": "0xa550c18", "role_id": "0" }`\n\n **Special serialization for Move stdlib types**:\n - [0x1::string::String](https://github.com/aptos-labs/aptos-core/blob/main/language/move-stdlib/docs/ascii.md)\n is serialized into `string`. For example, struct value `0x1::string::String{bytes: b"Hello World!"}`\n is serialized as `"Hello World!"` in JSON.\n ',properties:{}},Kc={type:"string",description:"String representation of an on-chain Move type tag that is exposed in transaction payload.\n Values:\n - bool\n - u8\n - u16\n - u32\n - u64\n - u128\n - u256\n - address\n - signer\n - vector: `vector<{non-reference MoveTypeId}>`\n - struct: `{address}::{module_name}::{struct_name}::<{generic types}>`\n\n Vector type value examples:\n - `vector`\n - `vector>`\n - `vector<0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>>`\n\n Struct type value examples:\n - `0x1::coin::CoinStore<0x1::aptos_coin::AptosCoin>\n - `0x1::account::Account`\n\n Note:\n 1. Empty chars should be ignored when comparing 2 struct tag ids.\n 2. When used in an URL path, should be encoded by url-encoding (AKA percent-encoding).\n ",pattern:"^(bool|u8|u64|u128|address|signer|vector<.+>|0x[0-9a-zA-Z:_<, >]+)$"},Vc={type:"any-of",description:"An enum of the possible Move value types",contains:[{type:"number",format:"uint8"},{type:"number",format:"uint16"},{type:"number",format:"uint32"},{type:"U64"},{type:"U128"},{type:"U256"},{type:"boolean"},{type:"Address"},{type:"array",contains:{type:"MoveValue"}},{type:"HexEncodedBytes"},{type:"MoveStructValue"},{type:"string"}]},Jc={description:"Multi agent signature for multi agent transactions\n\n This allows you to have transactions across multiple accounts",properties:{sender:{type:"AccountSignature",isRequired:!0},secondary_signer_addresses:{type:"array",contains:{type:"Address"},isRequired:!0},secondary_signers:{type:"array",contains:{type:"AccountSignature"},isRequired:!0}}},Gc={description:"A Ed25519 multi-sig signature\n\n This allows k-of-n signing for a transaction",properties:{public_keys:{type:"array",contains:{type:"HexEncodedBytes"},isRequired:!0},signatures:{type:"array",contains:{type:"HexEncodedBytes"},isRequired:!0},threshold:{type:"number",description:"The number of signatures required for a successful transaction",isRequired:!0,format:"uint8"},bitmap:{type:"HexEncodedBytes",isRequired:!0}}},Wc={description:"A transaction waiting in mempool",properties:{hash:{type:"HashValue",isRequired:!0},sender:{type:"Address",isRequired:!0},sequence_number:{type:"U64",isRequired:!0},max_gas_amount:{type:"U64",isRequired:!0},gas_unit_price:{type:"U64",isRequired:!0},expiration_timestamp_secs:{type:"U64",isRequired:!0},payload:{type:"TransactionPayload",isRequired:!0},signature:{type:"TransactionSignature"}}},Yc={description:"Table Item request for the GetTableItemRaw API",properties:{key:{type:"HexEncodedBytes",isRequired:!0}}},Xc={type:"Enum"},$c={description:"Payload which runs a script that can run multiple functions",properties:{code:{type:"MoveScriptBytecode",isRequired:!0},type_arguments:{type:"array",contains:{type:"MoveType"},isRequired:!0},arguments:{type:"array",contains:{properties:{}},isRequired:!0}}},eu={properties:{execute_as:{type:"Address",isRequired:!0},script:{type:"ScriptPayload",isRequired:!0}}},tu={description:"A state checkpoint transaction",properties:{version:{type:"U64",isRequired:!0},hash:{type:"HashValue",isRequired:!0},state_change_hash:{type:"HashValue",isRequired:!0},event_root_hash:{type:"HashValue",isRequired:!0},state_checkpoint_hash:{type:"HashValue"},gas_used:{type:"U64",isRequired:!0},success:{type:"boolean",description:"Whether the transaction was successful",isRequired:!0},vm_status:{type:"string",description:"The VM status of the transaction, can tell useful information in a failure",isRequired:!0},accumulator_root_hash:{type:"HashValue",isRequired:!0},changes:{type:"array",contains:{type:"WriteSetChange"},isRequired:!0},timestamp:{type:"U64",isRequired:!0}}},nu={type:"string",description:"Representation of a StateKey as a hex string. This is used for cursor based pagination.\n "},ru={description:"A request to submit a transaction\n\n This requires a transaction and a signature of it",properties:{sender:{type:"Address",isRequired:!0},sequence_number:{type:"U64",isRequired:!0},max_gas_amount:{type:"U64",isRequired:!0},gas_unit_price:{type:"U64",isRequired:!0},expiration_timestamp_secs:{type:"U64",isRequired:!0},payload:{type:"TransactionPayload",isRequired:!0},signature:{type:"TransactionSignature",isRequired:!0}}},au={description:"Table Item request for the GetTableItem API",properties:{key_type:{type:"MoveType",isRequired:!0},value_type:{type:"MoveType",isRequired:!0},key:{description:"The value of the table item's key",properties:{},isRequired:!0}}},iu={type:"one-of",description:"Enum of the different types of transactions in Aptos",contains:[{type:"Transaction_PendingTransaction"},{type:"Transaction_UserTransaction"},{type:"Transaction_GenesisTransaction"},{type:"Transaction_BlockMetadataTransaction"},{type:"Transaction_StateCheckpointTransaction"}]},ou={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"BlockMetadataTransaction"}]},su={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"GenesisTransaction"}]},cu={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"PendingTransaction"}]},uu={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"StateCheckpointTransaction"}]},fu={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"UserTransaction"}]},du={type:"one-of",description:"An enum of the possible transaction payloads",contains:[{type:"TransactionPayload_EntryFunctionPayload"},{type:"TransactionPayload_ScriptPayload"},{type:"TransactionPayload_ModuleBundlePayload"}]},lu={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"EntryFunctionPayload"}]},pu={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"ModuleBundlePayload"}]},bu={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"ScriptPayload"}]},hu={description:"Information telling which batch submission transactions failed",properties:{error:{type:"AptosError",isRequired:!0},transaction_index:{type:"number",description:"The index of which transaction failed, same as submission order",isRequired:!0,format:"uint64"}}},yu={description:"Batch transaction submission result\n\n Tells which transactions failed",properties:{transaction_failures:{type:"array",contains:{type:"TransactionsBatchSingleSubmissionFailure"},isRequired:!0}}},mu={type:"one-of",description:"An enum representing the different transaction signatures available",contains:[{type:"TransactionSignature_Ed25519Signature"},{type:"TransactionSignature_MultiEd25519Signature"},{type:"TransactionSignature_MultiAgentSignature"}]},vu={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"Ed25519Signature"}]},gu={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"MultiAgentSignature"}]},Au={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"MultiEd25519Signature"}]},wu={type:"string",description:"A string containing a 128-bit unsigned integer.\n\n We represent u128 values as a string to ensure compatibility with languages such\n as JavaScript that do not parse u128s in JSON natively.\n ",format:"uint128"},xu={type:"string",description:"A string containing a 256-bit unsigned integer.\n\n We represent u256 values as a string to ensure compatibility with languages such\n as JavaScript that do not parse u256s in JSON natively.\n ",format:"uint256"},_u={type:"string",description:"A string containing a 64-bit unsigned integer.\n\n We represent u64 values as a string to ensure compatibility with languages such\n as JavaScript that do not parse u64s in JSON natively.\n ",format:"uint64"},ku={description:"A transaction submitted by a user to change the state of the blockchain",properties:{version:{type:"U64",isRequired:!0},hash:{type:"HashValue",isRequired:!0},state_change_hash:{type:"HashValue",isRequired:!0},event_root_hash:{type:"HashValue",isRequired:!0},state_checkpoint_hash:{type:"HashValue"},gas_used:{type:"U64",isRequired:!0},success:{type:"boolean",description:"Whether the transaction was successful",isRequired:!0},vm_status:{type:"string",description:"The VM status of the transaction, can tell useful information in a failure",isRequired:!0},accumulator_root_hash:{type:"HashValue",isRequired:!0},changes:{type:"array",contains:{type:"WriteSetChange"},isRequired:!0},sender:{type:"Address",isRequired:!0},sequence_number:{type:"U64",isRequired:!0},max_gas_amount:{type:"U64",isRequired:!0},gas_unit_price:{type:"U64",isRequired:!0},expiration_timestamp_secs:{type:"U64",isRequired:!0},payload:{type:"TransactionPayload",isRequired:!0},signature:{type:"TransactionSignature"},events:{type:"array",contains:{type:"Event"},isRequired:!0},timestamp:{type:"U64",isRequired:!0}}},Su={description:"An event from a transaction with a version",properties:{version:{type:"U64",isRequired:!0},guid:{type:"EventGuid",isRequired:!0},sequence_number:{type:"U64",isRequired:!0},type:{type:"MoveType",isRequired:!0},data:{description:"The JSON representation of the event",properties:{},isRequired:!0}}},Iu={description:"View request for the Move View Function API",properties:{function:{type:"EntryFunctionId",isRequired:!0},type_arguments:{type:"array",contains:{type:"MoveType"},isRequired:!0},arguments:{type:"array",contains:{properties:{}},isRequired:!0}}},Eu={description:"Write a new module or update an existing one",properties:{address:{type:"Address",isRequired:!0},state_key_hash:{type:"string",description:"State key hash",isRequired:!0},data:{type:"MoveModuleBytecode",isRequired:!0}}},Cu={description:"Write a resource or update an existing one",properties:{address:{type:"Address",isRequired:!0},state_key_hash:{type:"string",description:"State key hash",isRequired:!0},data:{type:"MoveResource",isRequired:!0}}},Tu={type:"one-of",description:"The associated writeset with a payload",contains:[{type:"WriteSet_ScriptWriteSet"},{type:"WriteSet_DirectWriteSet"}]},Ou={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"DirectWriteSet"}]},Pu={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"ScriptWriteSet"}]},Mu={type:"one-of",description:"A final state change of a transaction on a resource or module",contains:[{type:"WriteSetChange_DeleteModule"},{type:"WriteSetChange_DeleteResource"},{type:"WriteSetChange_DeleteTableItem"},{type:"WriteSetChange_WriteModule"},{type:"WriteSetChange_WriteResource"},{type:"WriteSetChange_WriteTableItem"}]},Bu={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"DeleteModule"}]},Ru={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"DeleteResource"}]},Nu={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"DeleteTableItem"}]},Du={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"WriteModule"}]},ju={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"WriteResource"}]},Uu={type:"all-of",contains:[{properties:{type:{type:"string",isRequired:!0}}},{type:"WriteTableItem"}]},Lu={description:"A writeset payload, used only for genesis",properties:{write_set:{type:"WriteSet",isRequired:!0}}},Zu={description:"Change set to write a table item",properties:{state_key_hash:{type:"string",isRequired:!0},handle:{type:"HexEncodedBytes",isRequired:!0},key:{type:"HexEncodedBytes",isRequired:!0},value:{type:"HexEncodedBytes",isRequired:!0},data:{type:"DecodedTableData"}}},Fu=new Uo(lo.fromHex("0x1"),new So("string"),new So("String"),[]);function Hu(e,t,n){if(!(null==t?void 0:t.includes(typeof e)))throw new Error(n||"Invalid arg: ".concat(e," type should be ").concat(t instanceof Array?t.join(" or "):t))}function zu(e){throw new Error(e)}function qu(e){return!!e.match(/\s/)}function Qu(e){return!!e.match(/[_A-Za-z0-9]/g)}function Ku(e,t){var n=e[t];if(":"===n){if("::"===e.slice(t,t+2))return[["COLON","::"],2];zu("Unrecognized token.")}else{if("<"===n)return[["LT","<"],1];if(">"===n)return[["GT",">"],1];if(","===n)return[["COMMA",","],1];if(qu(n)){for(var r="",a=t;a0&&this.tokens[0][1]===e)||(this.consume(","),this.tokens.length>0&&this.tokens[0][1]===e&&t));)this.tokens.length<=0&&zu("Invalid type tag.");return n}},{key:"parseTypeTag",value:function(){0===this.tokens.length&&zu("Invalid type tag.");var e=this.tokens.shift(),t=(0,fa.Z)(e,2),n=t[0],r=t[1];if("u8"===r)return new Co;if("u16"===r)return new To;if("u32"===r)return new Oo;if("u64"===r)return new Po;if("u128"===r)return new Mo;if("u256"===r)return new Bo;if("bool"===r)return new Eo;if("address"===r)return new Ro;if("vector"===r){this.consume("<");var a=this.parseTypeTag();return this.consume(">"),new Do(a)}if("IDENT"===n&&(r.startsWith("0x")||r.startsWith("0X"))){var i=r;this.consume("::");var o=this.tokens.shift(),s=(0,fa.Z)(o,2),c=s[0],u=s[1];"IDENT"!==c&&zu("Invalid type tag."),this.consume("::");var f=this.tokens.shift(),d=(0,fa.Z)(f,2),l=d[0],p=d[1];"IDENT"!==l&&zu("Invalid type tag.");var b=[];this.tokens.length>0&&"<"===this.tokens[0][1]&&(this.consume("<"),b=this.parseCommaList(">",!0),this.consume(">"));var h=new Uo(lo.fromHex(i),new So(u),new So(p),b);return new jo(h)}throw new Error("Invalid type tag.")}}]),e}();function Ju(e){if(Hu(e,["boolean","string"]),"boolean"==typeof e)return e;if("true"===e)return!0;if("false"===e)return!1;throw new Error("Invalid boolean string.")}function Gu(e){if(Hu(e,["number","string"]),"number"==typeof e)return e;var t=Number.parseInt(e,10);if(Number.isNaN(t))throw new Error("Invalid number string.");return t}function Wu(e){return Hu(e,["number","bigint","string"]),BigInt(e)}function Yu(e,t,n){if(t instanceof Eo)n.serializeBool(Ju(e));else if(t instanceof Co)n.serializeU8(Gu(e));else if(t instanceof To)n.serializeU16(Gu(e));else if(t instanceof Oo)n.serializeU32(Gu(e));else if(t instanceof Po)n.serializeU64(Wu(e));else if(t instanceof Mo)n.serializeU128(Wu(e));else if(t instanceof Bo)n.serializeU256(Wu(e));else{if(!(t instanceof Ro)){if(t instanceof Do){if(t.value instanceof Co){if(e instanceof Uint8Array)return void n.serializeBytes(e);if("string"==typeof e)return void n.serializeStr(e)}if(!(e instanceof Array))throw new Error("Invalid vector args.");return n.serializeU32AsUleb128(e.length),void e.forEach((function(e){return Yu(e,t.value,n)}))}if(t instanceof jo){var r=t.value,a=r.address,i=r.module_name,o=r.name;if("0x1::string::String"!=="".concat(Pi.fromUint8Array(a.address).toShortString(),"::").concat(i.value,"::").concat(o.value))throw new Error("The only supported struct arg is of type 0x1::string::String");return Hu(e,["string"]),void n.serializeStr(e)}throw new Error("Unsupported arg type.")}var s;if("string"==typeof e||e instanceof Pi)s=lo.fromHex(e);else{if(!(e instanceof lo))throw new Error("Invalid account address.");s=e}s.serialize(n)}}var Xu=function(){function e(t,n){(0,ya.Z)(this,e),this.rawTxnBuilder=n,this.signingFunction=t}return(0,ma.Z)(e,[{key:"build",value:function(e,t,n){if(!this.rawTxnBuilder)throw new Error("this.rawTxnBuilder doesn't exist.");return this.rawTxnBuilder.build(e,t,n)}}],[{key:"getSigningMessage",value:function(e){var t=si.create();if(e instanceof Lo)t.update("APTOS::RawTransaction");else{if(!(e instanceof Jo))throw new Error("Unknown transaction type.");t.update("APTOS::RawTransactionWithData")}var n=t.digest(),r=eo(e),a=new Uint8Array(n.length+r.length);return a.set(n),a.set(r,n.length),a}}]),e}(),$u=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,a)).publicKey=r,i}return(0,ma.Z)(n,[{key:"rawToSigned",value:function(e){var t=Xu.getSigningMessage(e),n=this.signingFunction(t),r=new go(new po(this.publicKey),n);return new Ko(e,r)}},{key:"sign",value:function(e){return eo(this.rawToSigned(e))}}]),n}(Xu),ef=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r){var a;return(0,ya.Z)(this,n),(a=t.call(this,e)).publicKey=r,a}return(0,ma.Z)(n,[{key:"rawToSigned",value:function(e){var t=Xu.getSigningMessage(e),n=this.signingFunction(t),r=new Ao(this.publicKey,n);return new Ko(e,r)}},{key:"sign",value:function(e){return eo(this.rawToSigned(e))}}]),n}(Xu),tf=function(){function e(t,n){var r=this;(0,ya.Z)(this,e),this.abiMap=new Map,t.forEach((function(e){var t,n=new Wi(e),a=ps.deserialize(n);if(a instanceof hs){var i=a,o=i.module_name,s=o.address,c=o.name;t="".concat(Pi.fromUint8Array(s.address).toShortString(),"::").concat(c.value,"::").concat(i.name)}else t=a.name;if(r.abiMap.has(t))throw new Error("Found conflicting ABI interfaces");r.abiMap.set(t,a)})),this.builderConfig=(0,ca.Z)({maxGasAmount:BigInt(Ri),expSecFromNow:20},n)}return(0,ma.Z)(e,[{key:"setSequenceNumber",value:function(e){this.builderConfig.sequenceNumber=BigInt(e)}},{key:"buildTransactionPayload",value:function(t,n,r){var a,i=n.map((function(e){return new Vu(e).parseTypeTag()}));if(!this.abiMap.has(t))throw new Error("Cannot find function: ".concat(t));var o=this.abiMap.get(t);if(o instanceof hs){var s=o,c=e.toBCSArgs(s.args,r);a=new Yo(new Fo(s.module_name,new So(s.name),i,c))}else{if(!(o instanceof bs))throw new Error("Unknown ABI format.");var u=o,f=e.toTransactionArguments(u.args,r);a=new Wo(new Zo(u.code,i,f))}return a}},{key:"build",value:function(e,t,n){var r=this.builderConfig,a=r.sender,i=r.sequenceNumber,o=r.gasUnitPrice,s=r.maxGasAmount,c=r.expSecFromNow,u=r.chainId;if(!o)throw new Error("No gasUnitPrice provided.");var f=a instanceof lo?a:lo.fromHex(a),d=BigInt(Math.floor(Date.now()/1e3)+Number(c)),l=this.buildTransactionPayload(e,t,n);if(l)return new Lo(f,BigInt(i),l,BigInt(s),BigInt(o),d,new Xo(Number(u)));throw new Error("Invalid ABI.")}}],[{key:"toBCSArgs",value:function(e,t){if(e.length!==t.length)throw new Error("Wrong number of args provided.");return t.map((function(t,n){var r=new Ji;return Yu(t,e[n].type_tag,r),r.getBytes()}))}},{key:"toTransactionArguments",value:function(e,t){if(e.length!==t.length)throw new Error("Wrong number of args provided.");return t.map((function(t,n){return function(e,t){if(t instanceof Eo)return new cs(Ju(e));if(t instanceof Co)return new es(Gu(e));if(t instanceof To)return new ts(Gu(e));if(t instanceof Oo)return new ns(Gu(e));if(t instanceof Po)return new rs(Wu(e));if(t instanceof Mo)return new as(Wu(e));if(t instanceof Bo)return new is(Wu(e));if(t instanceof Ro){var n;if("string"==typeof e||e instanceof Pi)n=lo.fromHex(e);else{if(!(e instanceof lo))throw new Error("Invalid account address.");n=e}return new os(n)}if(t instanceof Do&&t.value instanceof Co){if(!(e instanceof Uint8Array))throw new Error("".concat(e," should be an instance of Uint8Array"));return new ss(e)}throw new Error("Unknown type for TransactionArgument.")}(t,e[n].type_tag)}))}}]),e}(),nf=function(){function e(t,n){(0,ya.Z)(this,e),this.aptosClient=t,this.builderConfig=n}var t,n;return(0,ma.Z)(e,[{key:"fetchABI",value:(n=(0,ha.Z)((0,ua.Z)().mark((function e(t){var n,r,a;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.aptosClient.getAccountModules(t);case 2:return n=e.sent,r=n.map((function(e){return e.abi})).flatMap((function(e){return e.exposed_functions.filter((function(e){return e.is_entry})).map((function(t){return(0,ca.Z)({fullName:"".concat(e.address,"::").concat(e.name,"::").concat(t.name)},t)}))})),a=new Map,r.forEach((function(e){a.set(e.fullName,e)})),e.abrupt("return",a);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"build",value:(t=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a,i,o,s,c,u,f,d,l,p,b,h,y,m,v,g,A,w,x;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(3===(t=t.replace(/^0[xX]0*/g,"0x")).split("::").length){e.next=5;break}throw new Error("'func' needs to be a fully qualified function name in format
::::, e.g. 0x1::coins::transfer");case 5:return a=t.split("::"),i=(0,fa.Z)(a,2),o=i[0],s=i[1],e.next=8,this.fetchABI(o);case 8:if((c=e.sent).has(t)){e.next=11;break}throw new Error("".concat(t," doesn't exist."));case 11:return u=c.get(t),f=u.params.filter((function(e){return"signer"!==e&&"&signer"!==e})),d=f.map((function(e,t){return new ls("var".concat(t),new Vu(e).parseTypeTag())})),l=new hs(u.name,zo.fromStr("".concat(o,"::").concat(s)),"",u.generic_type_params.map((function(e,t){return new ds("".concat(t))})),d),p=this.builderConfig,b=p.sender,h=(0,oa.Z)(p,ki),y=b instanceof lo?Pi.fromUint8Array(b.address):b,e.next=19,Promise.all([(null==h?void 0:h.sequenceNumber)?Promise.resolve({sequence_number:null==h?void 0:h.sequenceNumber}):this.aptosClient.getAccount(y),(null==h?void 0:h.chainId)?Promise.resolve(null==h?void 0:h.chainId):this.aptosClient.getChainId(),(null==h?void 0:h.gasUnitPrice)?Promise.resolve({gas_estimate:null==h?void 0:h.gasUnitPrice}):this.aptosClient.estimateGasPrice()]);case 19:return m=e.sent,v=(0,fa.Z)(m,3),g=v[0].sequence_number,A=v[1],w=v[2].gas_estimate,x=new tf([eo(l)],(0,ca.Z)({sender:b,sequenceNumber:g,chainId:A,gasUnitPrice:BigInt(w)},h)),e.abrupt("return",x.build(t,n,r));case 26:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})}]),e}();Ci([(6e5,Ni({ttlMs:6e5,hashFunction:undefined}))],nf.prototype,"fetchABI",1);var rf=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,ya.Z)(this,e),!t)throw new Error("Node URL cannot be empty.");var a=null==n?{}:(0,ca.Z)({},n);this.nodeUrl=r?t:function(e){var t="".concat(e);return t.endsWith("/")&&(t=t.substring(0,t.length-1)),t.endsWith("/v1")||(t="".concat(t).concat("/v1")),t}(t),a.BASE=this.nodeUrl,!1===(null==n?void 0:n.WITH_CREDENTIALS)?a.WITH_CREDENTIALS=!1:a.WITH_CREDENTIALS=!0,this.client=new Ws(a)}var t,n,r,a,i,o,s,c,u,f,d,l,p,b,h,y,m,v,g,A,w,x,_,k,S,I,E,C,T,O,P,M,B;return(0,ma.Z)(e,[{key:"getAccount",value:(B=(0,ha.Z)((0,ua.Z)().mark((function e(t){return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.accounts.getAccount(Pi.ensure(t).hex()));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return B.apply(this,arguments)})},{key:"getAccountTransactions",value:(M=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){var r;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.transactions.getAccountTransactions(Pi.ensure(t).hex(),null==(r=null==n?void 0:n.start)?void 0:r.toString(),null==n?void 0:n.limit));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return M.apply(this,arguments)})},{key:"getAccountModules",value:(P=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){var r,a;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.client.accounts.getAccountModules.bind({httpRequest:this.client.request}),e.next=3,Ui(r,t,1e3,n);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return P.apply(this,arguments)})},{key:"getAccountModule",value:(O=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.accounts.getAccountModule(Pi.ensure(t).hex(),n,null==(a=null==r?void 0:r.ledgerVersion)?void 0:a.toString()));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return O.apply(this,arguments)})},{key:"getAccountResources",value:(T=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){var r,a;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.client.accounts.getAccountResources.bind({httpRequest:this.client.request}),e.next=3,Ui(r,t,9999,n);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return T.apply(this,arguments)})},{key:"getAccountResource",value:(C=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.accounts.getAccountResource(Pi.ensure(t).hex(),n,null==(a=null==r?void 0:r.ledgerVersion)?void 0:a.toString()));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return C.apply(this,arguments)})},{key:"generateTransaction",value:(E=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a,i,o;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={sender:t},(null==r?void 0:r.sequence_number)&&(a.sequenceNumber=r.sequence_number),(null==r?void 0:r.gas_unit_price)&&(a.gasUnitPrice=r.gas_unit_price),(null==r?void 0:r.max_gas_amount)&&(a.maxGasAmount=r.max_gas_amount),(null==r?void 0:r.expiration_timestamp_secs)&&(i=Number.parseInt(r.expiration_timestamp_secs,10),a.expSecFromNow=i-Math.floor(Date.now()/1e3)),o=new nf(this,a),e.abrupt("return",o.build(n.function,n.type_arguments,n.arguments));case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return E.apply(this,arguments)})},{key:"signTransaction",value:(I=(0,ha.Z)((0,ua.Z)().mark((function t(n,r){return(0,ua.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve(e.generateBCSTransaction(n,r)));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return I.apply(this,arguments)})},{key:"getEventsByCreationNumber",value:(S=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.events.getEventsByCreationNumber(Pi.ensure(t).hex(),n.toString(),null==(a=null==r?void 0:r.start)?void 0:a.toString(),null==r?void 0:r.limit));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return S.apply(this,arguments)})},{key:"getEventsByEventHandle",value:(k=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a){var i;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.events.getEventsByEventHandle(Pi.ensure(t).hex(),n,r,null==(i=null==a?void 0:a.start)?void 0:i.toString(),null==a?void 0:a.limit));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return k.apply(this,arguments)})},{key:"submitTransaction",value:(_=(0,ha.Z)((0,ua.Z)().mark((function e(t){return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.submitSignedBCSTransaction(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"simulateTransaction",value:(x=(0,ha.Z)((0,ua.Z)().mark((function t(n,r,a){var i,o,s;return(0,ua.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n instanceof As?i=e.generateBCSSimulation(n,r):n instanceof ho?(o=new ef((function(){for(var e=n.threshold,t=[],r=[],a=0;a=i)){e.next=7;break}return e.abrupt("break",27);case 7:return e.prev=7,e.next=10,this.client.transactions.getTransactionByHash(t);case 10:if(u=e.sent,s="pending_transaction"===u.type){e.next=14;break}return e.abrupt("break",27);case 14:e.next=22;break;case 16:if(e.prev=16,e.t0=e.catch(7),f=e.t0 instanceof _s,d=f&&404!==e.t0.status&&e.t0.status>=400&&e.t0.status<500,f&&!d){e.next=22;break}throw e.t0;case 22:return e.next=24,Mi(1e3);case 24:c+=1,e.next=4;break;case 27:if(void 0!==u){e.next=29;break}throw new Error("Waiting for transaction ".concat(t," failed"));case 29:if(!s){e.next=31;break}throw new sf("Waiting for transaction ".concat(t," timed out after ").concat(i," seconds"),u);case 31:if(o){e.next=33;break}return e.abrupt("return",u);case 33:if(null==u?void 0:u.success){e.next=35;break}throw new cf("Transaction ".concat(t," committed to the blockchain but execution failed"),u);case 35:return e.abrupt("return",u);case 36:case"end":return e.stop()}}),e,this,[[7,16]])}))),function(e,t){return h.apply(this,arguments)})},{key:"waitForTransaction",value:(b=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTransactionWithResult(t,n);case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return b.apply(this,arguments)})},{key:"getLedgerInfo",value:(p=(0,ha.Z)((0,ua.Z)().mark((function e(){return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.general.getLedgerInfo());case 1:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"getChainId",value:(l=(0,ha.Z)((0,ua.Z)().mark((function e(){var t;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getLedgerInfo();case 2:return t=e.sent,e.abrupt("return",t.chain_id);case 4:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"getTableItem",value:(d=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a,i;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.tables.getTableItem(t,n,null==(a=null==r?void 0:r.ledgerVersion)?void 0:a.toString());case 2:return i=e.sent,e.abrupt("return",i);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return d.apply(this,arguments)})},{key:"generateRawTransaction",value:(f=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a,i,o,s,c,u,f,d,l;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this.getAccount(t),this.getChainId(),(null==r?void 0:r.gasUnitPrice)?Promise.resolve({gas_estimate:r.gasUnitPrice}):this.estimateGasPrice()]);case 2:return a=e.sent,i=(0,fa.Z)(a,3),o=i[0].sequence_number,s=i[1],c=i[2].gas_estimate,u=(0,ca.Z)({maxGasAmount:BigInt(Ri),gasUnitPrice:BigInt(c),expireTimestamp:BigInt(Math.floor(Date.now()/1e3)+20)},r),f=u.maxGasAmount,d=u.gasUnitPrice,l=u.expireTimestamp,e.abrupt("return",new Zi.RawTransaction(Zi.AccountAddress.fromHex(t),BigInt(o),n,f,d,l,new Zi.ChainId(s)));case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return f.apply(this,arguments)})},{key:"generateSignSubmitTransaction",value:(u=(0,ha.Z)((0,ua.Z)().mark((function t(n,r,a){var i,o,s;return(0,ua.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.generateRawTransaction(n.address(),r,a);case 2:return i=t.sent,o=e.generateBCSTransaction(n,i),t.next=6,this.submitSignedBCSTransaction(o);case 6:return s=t.sent,t.abrupt("return",s.hash);case 8:case"end":return t.stop()}}),t,this)}))),function(e,t,n){return u.apply(this,arguments)})},{key:"publishPackage",value:(c=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a){var i,o;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new Ji,Yi(r,i),o=new Zi.TransactionPayloadEntryFunction(Zi.EntryFunction.natural("0x1::code","publish_package_txn",[],[co(n),i.getBytes()])),e.abrupt("return",this.generateSignSubmitTransaction(t,o,a));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return c.apply(this,arguments)})},{key:"generateSignSubmitWaitForTransaction",value:(s=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.generateSignSubmitTransaction(t,n,r);case 2:return a=e.sent,e.abrupt("return",this.waitForTransactionWithResult(a,r));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return s.apply(this,arguments)})},{key:"estimateGasPrice",value:(o=(0,ha.Z)((0,ua.Z)().mark((function e(){return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.transactions.estimateGasPrice());case 1:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"estimateMaxGasAmount",value:(i=(0,ha.Z)((0,ua.Z)().mark((function e(t){var n,r,a,i,o,s,c;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="0x1::coin::CoinStore<".concat("0x1::aptos_coin::AptosCoin",">"),e.next=3,Promise.all([this.estimateGasPrice(),this.getAccountResources(t)]);case 3:return r=e.sent,a=(0,fa.Z)(r,2),i=a[0].gas_estimate,o=a[1],s=o.find((function(e){return e.type===n})),c=BigInt(s.data.coin.value),e.abrupt("return",c/BigInt(i));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"rotateAuthKeyEd25519",value:(a=(0,ha.Z)((0,ua.Z)().mark((function t(n,r,a){var i,o,s,c,u,f,d,l,p,b,h;return(0,ua.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getAccount(n.address());case 2:return i=t.sent,o=i.sequence_number,s=i.authentication_key,c=new As(r),u=new Zi.RotationProofChallenge(Zi.AccountAddress.CORE_CODE_ADDRESS,"account","RotationProofChallenge",BigInt(o),Zi.AccountAddress.fromHex(n.address()),new Zi.AccountAddress(new Pi(s).toUint8Array()),c.pubKey().toUint8Array()),f=Pi.fromUint8Array(eo(u)),d=n.signHexString(f),l=c.signHexString(f),p=new Zi.TransactionPayloadEntryFunction(Zi.EntryFunction.natural("0x1::account","rotate_authentication_key",[],[no(0),co(n.pubKey().toUint8Array()),no(0),co(c.pubKey().toUint8Array()),co(d.toUint8Array()),co(l.toUint8Array())])),t.next=13,this.generateRawTransaction(n.address(),p,a);case 13:return b=t.sent,h=e.generateBCSTransaction(n,b),t.abrupt("return",this.submitSignedBCSTransaction(h));case 16:case"end":return t.stop()}}),t,this)}))),function(e,t,n){return a.apply(this,arguments)})},{key:"lookupOriginalAddress",value:(r=(0,ha.Z)((0,ua.Z)().mark((function e(t){var n,r,a;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountResource("0x1","0x1::account::OriginatingAddress");case 2:return n=e.sent,r=n.data.address_map.handle,e.next=6,this.getTableItem(r,{key_type:"address",value_type:"address",key:Pi.ensure(t).hex()});case 6:return a=e.sent,e.abrupt("return",new Pi(a));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getBlockByHeight",value:(n=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.blocks.getBlockByHeight(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"getBlockByVersion",value:(t=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.blocks.getBlockByVersion(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"clearCache",value:function(e){!function(e){var t,n=new Set,r=(0,ba.Z)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value,i=Di.get(a);if(i){var o,s=(0,ba.Z)(i);try{for(s.s();!(o=s.n()).done;){var c=o.value;n.has(c)||(c.clear(),n.add(c))}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){r.e(e)}finally{r.f()}n.size}(e)}}],[{key:"generateBCSTransaction",value:function(e,t){return new $u((function(t){var n=e.signBuffer(t);return new Zi.Ed25519Signature(n.toUint8Array())}),e.pubKey().toUint8Array()).sign(t)}},{key:"generateBCSSimulation",value:function(e,t){return new $u((function(e){var t=new Uint8Array(64);return new Zi.Ed25519Signature(t)}),e.pubKey().toUint8Array()).sign(t)}}]),e}(),af=rf;Ci([uf],af.prototype,"getAccount",1),Ci([uf],af.prototype,"getAccountTransactions",1),Ci([uf],af.prototype,"getAccountModules",1),Ci([uf],af.prototype,"getAccountModule",1),Ci([uf],af.prototype,"getAccountResources",1),Ci([uf],af.prototype,"getAccountResource",1),Ci([uf],af.prototype,"getEventsByCreationNumber",1),Ci([uf],af.prototype,"getEventsByEventHandle",1),Ci([uf],af.prototype,"submitSignedBCSTransaction",1),Ci([uf],af.prototype,"submitBCSSimulation",1),Ci([uf],af.prototype,"getTransactions",1),Ci([uf],af.prototype,"getTransactionByHash",1),Ci([uf],af.prototype,"getTransactionByVersion",1),Ci([uf],af.prototype,"getLedgerInfo",1),Ci([Ni()],af.prototype,"getChainId",1),Ci([uf],af.prototype,"getTableItem",1),Ci([uf,Ni({ttlMs:3e5,tags:["gas_estimates"]})],af.prototype,"estimateGasPrice",1),Ci([uf],af.prototype,"estimateMaxGasAmount",1),Ci([uf],af.prototype,"getBlockByHeight",1),Ci([uf],af.prototype,"getBlockByVersion",1);var of=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a,i){var o;return(0,ya.Z)(this,n),(o=t.call(this,r)).status=e,o.message=r,o.errorCode=a,o.vmErrorCode=i,o}return(0,ma.Z)(n)}((0,da.Z)(Error)),sf=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r){var a;return(0,ya.Z)(this,n),(a=t.call(this,e)).lastSubmittedTransaction=r,a}return(0,ma.Z)(n)}((0,da.Z)(Error)),cf=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r){var a;return(0,ya.Z)(this,n),(a=t.call(this,e)).transaction=r,a}return(0,ma.Z)(n)}((0,da.Z)(Error));function uf(e,t,n){var r=n.value;return n.value=function(){var e=(0,ha.Z)((0,ua.Z)().mark((function e(){var t,n,a,i,o,s,c=arguments;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(e.prev=0,a=c.length,i=new Array(a),o=0;o4&&void 0!==c[4]?c[4]:Qi,o=c.length>5?c[5]:void 0,s=this.transactionBuilder.buildTransactionPayload("0x3::token::create_collection_script",[],[n,r,a,i,[!1,!1,!1]]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,s,o));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return y.apply(this,arguments)})},{key:"createToken",value:(h=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a,i,o){var s,c,u,f,d,l,p,b,h,y=arguments;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=y.length>6&&void 0!==y[6]?y[6]:Qi,c=y.length>7&&void 0!==y[7]?y[7]:t.address(),u=y.length>8&&void 0!==y[8]?y[8]:0,f=y.length>9&&void 0!==y[9]?y[9]:0,d=y.length>10&&void 0!==y[10]?y[10]:[],l=y.length>11&&void 0!==y[11]?y[11]:[],p=y.length>12&&void 0!==y[12]?y[12]:[],b=y.length>13?y[13]:void 0,h=this.transactionBuilder.buildTransactionPayload("0x3::token::create_token_script",[],[n,r,a,i,s,o,c,u,f,[!1,!1,!1,!1,!1],d,bf(l,p),p]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,h,b));case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i){return h.apply(this,arguments)})},{key:"createTokenWithMutabilityConfig",value:(b=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a,i,o){var s,c,u,f,d,l,p,b,h,y,m=arguments;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=m.length>6&&void 0!==m[6]?m[6]:Qi,c=m.length>7&&void 0!==m[7]?m[7]:t.address(),u=m.length>8&&void 0!==m[8]?m[8]:0,f=m.length>9&&void 0!==m[9]?m[9]:0,d=m.length>10&&void 0!==m[10]?m[10]:[],l=m.length>11&&void 0!==m[11]?m[11]:[],p=m.length>12&&void 0!==m[12]?m[12]:[],b=m.length>13&&void 0!==m[13]?m[13]:[!1,!1,!1,!1,!1],h=m.length>14?m[14]:void 0,y=this.transactionBuilder.buildTransactionPayload("0x3::token::create_token_script",[],[n,r,a,i,s,o,c,u,f,b,d,l,p]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,y,h));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i){return b.apply(this,arguments)})},{key:"offerToken",value:(p=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a,i,o){var s,c,u,f=arguments;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=f.length>6&&void 0!==f[6]?f[6]:0,c=f.length>7?f[7]:void 0,u=this.transactionBuilder.buildTransactionPayload("0x3::token_transfers::offer_script",[],[n,r,a,i,s,o]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,u,c));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i){return p.apply(this,arguments)})},{key:"claimToken",value:(l=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a,i){var o,s,c,u=arguments;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=u.length>5&&void 0!==u[5]?u[5]:0,s=u.length>6?u[6]:void 0,c=this.transactionBuilder.buildTransactionPayload("0x3::token_transfers::claim_script",[],[n,r,a,i,o]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,c,s));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a){return l.apply(this,arguments)})},{key:"cancelTokenOffer",value:(d=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a,i){var o,s,c,u=arguments;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=u.length>5&&void 0!==u[5]?u[5]:0,s=u.length>6?u[6]:void 0,c=this.transactionBuilder.buildTransactionPayload("0x3::token_transfers::cancel_offer_script",[],[n,r,a,i,o]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,c,s));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a){return d.apply(this,arguments)})},{key:"directTransferToken",value:(f=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a,i,o){var s,c,u,f,d,l,p,b,h,y,m,v,g=arguments;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=g.length>6&&void 0!==g[6]?g[6]:0,c=g.length>7?g[7]:void 0,u=this.transactionBuilder.buildTransactionPayload("0x3::token::direct_transfer_script",[],[r,a,i,s,o]),e.next=5,this.aptosClient.generateRawTransaction(t.address(),u,c);case 5:return f=e.sent,d=new Zi.MultiAgentRawTransaction(f,[Zi.AccountAddress.fromHex(n.address())]),l=new Zi.Ed25519Signature(t.signBuffer(Xu.getSigningMessage(d)).toUint8Array()),p=new Zi.AccountAuthenticatorEd25519(new Zi.Ed25519PublicKey(t.signingKey.publicKey),l),b=new Zi.Ed25519Signature(n.signBuffer(Xu.getSigningMessage(d)).toUint8Array()),h=new Zi.AccountAuthenticatorEd25519(new Zi.Ed25519PublicKey(n.signingKey.publicKey),b),y=new Zi.TransactionAuthenticatorMultiAgent(p,[Zi.AccountAddress.fromHex(n.address())],[h]),m=eo(new Zi.SignedTransaction(f,y)),e.next=15,this.aptosClient.submitSignedBCSTransaction(m);case 15:return v=e.sent,e.abrupt("return",v.hash);case 17:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i){return f.apply(this,arguments)})},{key:"optInTokenTransfer",value:(u=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.transactionBuilder.buildTransactionPayload("0x3::token::opt_in_direct_transfer",[],[n]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,a,r));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return u.apply(this,arguments)})},{key:"transferWithOptIn",value:(c=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a,i,o,s,c){var u;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=new Wo(new Zo(new Pi("a11ceb0b0500000006010004020408030c0a05161d073339086c400000010100020700010307000104030100010504020007060c0508000800030503010801000405080008000304060c0801050306737472696e6705746f6b656e06537472696e6707546f6b656e4964136372656174655f746f6b656e5f69645f726177087472616e73666572000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000030000010c0b010b020b030b0411000c070b000b070b050b06110102").toUint8Array(),[],[new os(Zi.AccountAddress.fromHex(n)),new ss((new TextEncoder).encode(r)),new ss((new TextEncoder).encode(a)),new rs(BigInt(i)),new os(Zi.AccountAddress.fromHex(o)),new rs(BigInt(s))])),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,u,c));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i,o,s){return c.apply(this,arguments)})},{key:"burnByCreator",value:(s=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a,i,o,s){var c;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=this.transactionBuilder.buildTransactionPayload("0x3::token::burn_by_creator",[],[n,r,a,i,o]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,c,s));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i,o){return s.apply(this,arguments)})},{key:"burnByOwner",value:(o=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a,i,o,s){var c;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=this.transactionBuilder.buildTransactionPayload("0x3::token::burn",[],[n,r,a,i,o]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,c,s));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i,s){return o.apply(this,arguments)})},{key:"mutateTokenProperties",value:(i=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a,i,o,s,c,u,f,d){var l;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=this.transactionBuilder.buildTransactionPayload("0x3::token::mutate_token_properties",[],[n,r,a,i,o,s,c,u,f]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,l,d));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,o,s,c,u,f,d){return i.apply(this,arguments)})},{key:"getCollectionData",value:(a=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){var r,a,i,o,s;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.aptosClient.getAccountResources(t);case 2:return r=e.sent,a=r.find((function(e){return"0x3::token::Collections"===e.type})),i=a.data.collection_data.handle,o={key_type:"0x1::string::String",value_type:"0x3::token::CollectionData",key:n},e.next=8,this.aptosClient.getTableItem(i,o);case 8:return s=e.sent,e.abrupt("return",s);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"getTokenData",value:(r=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a,i,o,s,c;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t instanceof Pi?t.hex():t,e.next=3,this.aptosClient.getAccountResource(a,"0x3::token::Collections");case 3:return i=e.sent,o=i.data.token_data.handle,s={key_type:"0x3::token::TokenDataId",value_type:"0x3::token::TokenData",key:{creator:a,collection:n,name:r}},e.next=9,this.aptosClient.getTableItem(o,s);case 9:return c=e.sent,e.abrupt("return",new yf(c.collection,c.description,c.name,c.maximum,c.supply,c.uri,c.default_properties,c.mutability_config));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"getToken",value:(n=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a,i,o=arguments;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=o.length>3&&void 0!==o[3]?o[3]:"0",i={creator:t instanceof Pi?t.hex():t,collection:n,name:r},e.abrupt("return",this.getTokenForAccount(t,{token_data_id:i,property_version:a}));case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"getTokenForAccount",value:(t=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){var r,a,i,o;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.aptosClient.getAccountResource(t instanceof Pi?t.hex():t,"0x3::token::TokenStore");case 2:return r=e.sent,a=r.data.tokens.handle,i={key_type:"0x3::token::TokenId",value_type:"0x3::token::Token",key:n},e.prev=5,e.next=8,this.aptosClient.getTableItem(a,i);case 8:return o=e.sent,e.abrupt("return",new mf(o.id,o.amount,o.token_properties));case 12:if(e.prev=12,e.t0=e.catch(5),404!==(null==e.t0?void 0:e.t0.status)){e.next=16;break}return e.abrupt("return",{id:n,amount:"0",token_properties:new lf});case 16:return e.abrupt("return",e.t0);case 17:case"end":return e.stop()}}),e,this,[[5,12]])}))),function(e,n){return t.apply(this,arguments)})}]),e}(),gf=n(7155),Af=n(26891),wf=n(25289),xf=n(83702),_f=n(52103),kf=n(40267),Sf=n(7018),If=n(824),Ef=n(92335),Cf=n.n(Ef),Tf=n(24162),Of=n(62332).Buffer,Pf=function(){function e(t){var n=t.bidderKey,r=t.bidAmount,a=t.bidID,i=t.auctionKey,o=t.auctionID,s=t.maxPrice;(0,ya.Z)(this,e),this.name="Bid",this.tag=Of.from([97,66]);var c=kf.decodeAddress(n),u=kf.decodeAddress(i);if(!Number.isSafeInteger(r)||r<0)throw Error("Bid amount must be positive and 2^53-1");if(!Number.isSafeInteger(a)||a<0)throw Error("BidID must be positive and 2^53-1");if(!Number.isSafeInteger(o)||o<0)throw Error("auctionID must be positive");Object.assign(this,{bidderKey:c,bidAmount:r,bidID:a,auctionKey:u,auctionID:o,maxPrice:s})}return(0,ma.Z)(e,[{key:"get_obj_for_encoding",value:function(){return{bidder:Of.from(this.bidderKey.publicKey),cur:this.bidAmount,price:this.maxPrice,id:this.bidID,auc:Of.from(this.auctionKey.publicKey),aid:this.auctionID}}},{key:"signBid",value:function(e){var t=Sf.encode(this.get_obj_for_encoding()),n=Of.from(Tf.concatArrays(this.tag,t)),r=_f.sign(n,e),a={t:"b",b:{sig:Of.from(r),bid:this.get_obj_for_encoding()}};return new Uint8Array(Sf.encode(a))}}]),e}(),Mf=1e6,Bf="Microalgos should be positive and less than 2^53 - 1.";function Rf(e){if(e<0||!Number.isSafeInteger(e))throw new Error(Bf);return e/Mf}function Nf(e){var t=e*Mf;return Math.round(t)}n(64936);var Df=n(24959),jf=n(76686),Uf=function(){function e(t,n,r,a){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};(0,ya.Z)(this,e),"function"==typeof n.get?this.c=new Df.default(n):(i="string"==typeof n?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={};return t[arguments.length>1?arguments[1]:void 0]=e,t}(n,t):n,this.c=new Df.default(i,r,a,o)),this.intDecoding=jf.Z.DEFAULT}return(0,ma.Z)(e,[{key:"setIntEncoding",value:function(e){this.intDecoding=e}},{key:"getIntEncoding",value:function(){return this.intDecoding}}]),e}(),Lf=n(56949),Zf=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).account=a,i.account=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account)}},{key:"exclude",value:function(e){return this.query.exclude=e,this}}]),n}(Lf.Z),Ff=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a,i){var o;return(0,ya.Z)(this,n),(o=t.call(this,e,r)).account=a,o.assetID=i,o.account=a,o.assetID=i,o}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/assets/").concat(this.assetID)}}]),n}(Lf.Z),Hf=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a,i){var o;return(0,ya.Z)(this,n),(o=t.call(this,e,r)).account=a,o.applicationID=i,o.account=a,o.applicationID=i,o}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/applications/").concat(this.applicationID)}}]),n}(Lf.Z),zf=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r){var a;if((0,ya.Z)(this,n),a=t.call(this,e),!Number.isInteger(r))throw Error("roundNumber should be an integer");return a.round=r,a.query={format:"msgpack"},a}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round)}},{key:"prepare",value:function(e){if(e&&e.byteLength>0)return Sf.decode(e)}}]),n}(Lf.Z),qf=n(62332).Buffer;function Qf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;return Object.keys(t).every((function(e){return"content-type"!==e.toLowerCase()}))&&((t=(0,ca.Z)({},e))["Content-Type"]="text/plain"),t}var Kf=function(e){(0,la.Z)(r,e);var t,n=(0,pa.Z)(r);function r(e,t){var a;return(0,ya.Z)(this,r),(a=n.call(this,e)).source=t,a.source=t,a}return(0,ma.Z)(r,[{key:"path",value:function(){return"/v2/teal/compile"}},{key:"sourcemap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query.sourcemap=e,this}},{key:"do",value:(t=(0,ha.Z)((0,ua.Z)().mark((function e(){var t,n,r=arguments;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Qf(r.length>0&&void 0!==r[0]?r[0]:{}),e.next=4,this.c.post(this.path(),qf.from(this.source),t,this.query);case 4:return n=e.sent,e.abrupt("return",n.body);case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(Lf.Z),Vf=n(62332).Buffer,Jf=function(e){(0,la.Z)(r,e);var t,n=(0,pa.Z)(r);function r(e,t){var a;return(0,ya.Z)(this,r),(a=n.call(this,e)).blob=Sf.encode(t.get_obj_for_encoding(!0)),a}return(0,ma.Z)(r,[{key:"path",value:function(){return"/v2/teal/dryrun"}},{key:"do",value:(t=(0,ha.Z)((0,ua.Z)().mark((function e(){var t,n,r=arguments;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Qf(r.length>0&&void 0!==r[0]?r[0]:{}),e.next=4,this.c.post(this.path(),Vf.from(this.blob),t);case 4:return n=e.sent,e.abrupt("return",n.body);case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(Lf.Z),Gf=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ya.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n,[{key:"path",value:function(){return"/genesis"}}]),n}(Lf.Z),Wf=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).index=a,i.index=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/assets/".concat(this.index)}}]),n}(Lf.Z),Yf=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).index=a,i.index=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.index)}}]),n}(Lf.Z),Xf=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;if((0,ya.Z)(this,n),i=t.call(this,e,r),!Number.isInteger(a))throw Error("roundNumber should be an integer");return i.round=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round,"/hash")}}]),n}(Lf.Z),$f=n(62332).Buffer;function ed(e,t){var n;if(e instanceof Uint8Array)n=t?e:$f.from(e).toString("base64");else if("function"==typeof e.get_obj_for_encoding)n=e.get_obj_for_encoding(t);else if(Array.isArray(e)){n=[];var r,a=(0,ba.Z)(e);try{for(a.s();!(r=a.n()).done;){var i=r.value;n.push(ed(i,t))}}catch(e){a.e(e)}finally{a.f()}}else if("object"==typeof e){for(var o={},s=0,c=Object.keys(e);s0&&void 0!==arguments[0]&&arguments[0],t={},n=0,r=Object.keys(this.attribute_map);n0&&void 0!==r[0]?r[0]:{},e.next=3,this.c.get(this.path(),{},t);case 3:if((n=e.sent).ok){e.next=6;break}throw new Error("Health response: ".concat(n.status));case 6:return e.abrupt("return",{});case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(Lf.Z),Wd=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r){var a;return(0,ya.Z)(this,n),(a=t.call(this,e)).txid=r,a.txid=r,a.query.format="msgpack",a}return(0,ma.Z)(n,[{key:"prepare",value:function(e){if(e&&e.byteLength>0)return Sf.decode(e)}},{key:"path",value:function(){return"/v2/transactions/pending/".concat(this.txid)}},{key:"max",value:function(e){return this.query.max=e,this}}]),n}(Lf.Z),Yd=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r;return(0,ya.Z)(this,n),(r=t.call(this,e)).query.format="msgpack",r}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/transactions/pending"}},{key:"prepare",value:function(e){if(e&&e.byteLength>0)return Sf.decode(e)}},{key:"max",value:function(e){return this.query.max=e,this}}]),n}(Lf.Z),Xd=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r){var a;return(0,ya.Z)(this,n),(a=t.call(this,e)).address=r,a.address=r,a.query.format="msgpack",a}return(0,ma.Z)(n,[{key:"prepare",value:function(e){if(e&&e.byteLength>0)return Sf.decode(e)}},{key:"path",value:function(){return"/v2/accounts/".concat(this.address,"/transactions/pending")}},{key:"max",value:function(e){return this.query.max=e,this}}]),n}(Lf.Z),$d=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a,i){var o;return(0,ya.Z)(this,n),(o=t.call(this,e,r)).round=a,o.txID=i,o.round=a,o.txID=i,o}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round,"/transactions/").concat(this.txID,"/proof")}},{key:"hashType",value:function(e){return this.query.hashtype=e,this}}]),n}(Lf.Z),el=n(45736),tl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ya.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/status"}}]),n}(Lf.Z),nl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;if((0,ya.Z)(this,n),(i=t.call(this,e,r)).round=a,!Number.isInteger(a))throw Error("round should be an integer");return i.round=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/status/wait-for-block-after/".concat(this.round)}}]),n}(Lf.Z),rl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ya.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/transactions/params"}},{key:"prepare",value:function(e){return{flatFee:!1,fee:e.fee,firstRound:e["last-round"],lastRound:e["last-round"]+1e3,genesisID:e["genesis-id"],genesisHash:e["genesis-hash"]}}}]),n}(Lf.Z),al=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ya.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/ledger/supply"}}]),n}(Lf.Z),il=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ya.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n,[{key:"path",value:function(){return"/versions"}}]),n}(Lf.Z),ol=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).round=a,i.round=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round,"/lightheader/proof")}}]),n}(Lf.Z),sl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).round=a,i.round=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/stateproofs/".concat(this.round)}}]),n}(Lf.Z),cl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://r2.algorand.network",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4180,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,ya.Z)(this,n),t.call(this,"X-Algo-API-Token",e,r,a,i)}return(0,ma.Z)(n,[{key:"healthCheck",value:function(){return new Gd(this.c)}},{key:"versionsCheck",value:function(){return new il(this.c)}},{key:"sendRawTransaction",value:function(e){return new el.default(this.c,e)}},{key:"accountInformation",value:function(e){return new Zf(this.c,this.intDecoding,e)}},{key:"accountAssetInformation",value:function(e,t){return new Ff(this.c,this.intDecoding,e,t)}},{key:"accountApplicationInformation",value:function(e,t){return new Hf(this.c,this.intDecoding,e,t)}},{key:"block",value:function(e){return new zf(this.c,e)}},{key:"getBlockHash",value:function(e){return new Xf(this.c,this.intDecoding,e)}},{key:"pendingTransactionInformation",value:function(e){return new Wd(this.c,e)}},{key:"pendingTransactionsInformation",value:function(){return new Yd(this.c)}},{key:"pendingTransactionByAddress",value:function(e){return new Xd(this.c,e)}},{key:"status",value:function(){return new tl(this.c,this.intDecoding)}},{key:"statusAfterBlock",value:function(e){return new nl(this.c,this.intDecoding,e)}},{key:"getTransactionParams",value:function(){return new rl(this.c)}},{key:"supply",value:function(){return new al(this.c,this.intDecoding)}},{key:"compile",value:function(e){return new Kf(this.c,e)}},{key:"dryrun",value:function(e){return new Jf(this.c,e)}},{key:"getAssetByID",value:function(e){return new Wf(this.c,this.intDecoding,e)}},{key:"getApplicationByID",value:function(e){return new Yf(this.c,this.intDecoding,e)}},{key:"getApplicationBoxByName",value:function(e,t){return new Vd(this.c,this.intDecoding,e,t)}},{key:"getApplicationBoxes",value:function(e){return new Jd(this.c,this.intDecoding,e)}},{key:"genesis",value:function(){return new Gf(this.c,this.intDecoding)}},{key:"getTransactionProof",value:function(e,t){return new $d(this.c,this.intDecoding,e,t)}},{key:"getLightBlockHeaderProof",value:function(e){return new ol(this.c,this.intDecoding,e)}},{key:"getStateProof",value:function(e){return new sl(this.c,this.intDecoding,e)}}]),n}(Uf),ul=n(62332).Buffer,fl=function(e){(0,la.Z)(_,e);var t,n,r,a,i,o,s,c,u,f,d,l,p,b,h,y,m,v,g,A,w,x=(0,pa.Z)(_);function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://127.0.0.1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7833,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,ya.Z)(this,_),x.call(this,"X-KMD-API-Token",e,t,n,r)}return(0,ma.Z)(_,[{key:"versions",value:(w=(0,ha.Z)((0,ua.Z)().mark((function e(){var t;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.c.get("/versions");case 2:return t=e.sent,e.abrupt("return",t.body);case 4:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"listWallets",value:(A=(0,ha.Z)((0,ua.Z)().mark((function e(){var t;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.c.get("/v1/wallets");case 2:return t=e.sent,e.abrupt("return",t.body);case 4:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"createWallet",value:(g=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){var r,a,i,o=arguments;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:new Uint8Array,a={wallet_name:t,wallet_driver_name:o.length>3&&void 0!==o[3]?o[3]:"sqlite",wallet_password:n,master_derivation_key:ul.from(r).toString("base64")},e.next=5,this.c.post("/v1/wallet",a);case 5:return i=e.sent,e.abrupt("return",i.body);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"initWalletHandle",value:(v=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){var r,a;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={wallet_id:t,wallet_password:n},e.next=3,this.c.post("/v1/wallet/init",r);case 3:return a=e.sent,e.abrupt("return",a.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return v.apply(this,arguments)})},{key:"releaseWalletHandle",value:(m=(0,ha.Z)((0,ua.Z)().mark((function e(t){var n,r;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/wallet/release",n);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"renewWalletHandle",value:(y=(0,ha.Z)((0,ua.Z)().mark((function e(t){var n,r;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/wallet/renew",n);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return y.apply(this,arguments)})},{key:"renameWallet",value:(h=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a,i;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={wallet_id:t,wallet_password:n,wallet_name:r},e.next=3,this.c.post("/v1/wallet/rename",a);case 3:return i=e.sent,e.abrupt("return",i.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return h.apply(this,arguments)})},{key:"getWallet",value:(b=(0,ha.Z)((0,ua.Z)().mark((function e(t){var n,r;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/wallet/info",n);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"exportMasterDerivationKey",value:(p=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){var r,a;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={wallet_handle_token:t,wallet_password:n},e.next=3,this.c.post("/v1/master-key/export",r);case 3:return a=e.sent,e.abrupt("return",{master_derivation_key:ul.from(a.body.master_derivation_key,"base64")});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"importKey",value:(l=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){var r,a;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={wallet_handle_token:t,private_key:ul.from(n).toString("base64")},e.next=3,this.c.post("/v1/key/import",r);case 3:return a=e.sent,e.abrupt("return",a.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"exportKey",value:(d=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a,i;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={wallet_handle_token:t,address:r,wallet_password:n},e.next=3,this.c.post("/v1/key/export",a);case 3:return i=e.sent,e.abrupt("return",{private_key:ul.from(i.body.private_key,"base64")});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return d.apply(this,arguments)})},{key:"generateKey",value:(f=(0,ha.Z)((0,ua.Z)().mark((function e(t){var n,r;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t,display_mnemonic:!1},e.next=3,this.c.post("/v1/key",n);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"deleteKey",value:(u=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a,i;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={wallet_handle_token:t,address:r,wallet_password:n},e.next=3,this.c.delete("/v1/key",a);case 3:return i=e.sent,e.abrupt("return",i.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return u.apply(this,arguments)})},{key:"listKeys",value:(c=(0,ha.Z)((0,ua.Z)().mark((function e(t){var n,r;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/key/list",n);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"signTransaction",value:(s=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a,i,o;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=If.instantiateTxnIfNeeded(r),i={wallet_handle_token:t,wallet_password:n,transaction:ul.from(a.toByte()).toString("base64")},e.next=4,this.c.post("/v1/transaction/sign",i);case 4:if(200!==(o=e.sent).status){e.next=7;break}return e.abrupt("return",ul.from(o.body.signed_transaction,"base64"));case 7:return e.abrupt("return",o.body);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return s.apply(this,arguments)})},{key:"signTransactionWithSpecificPublicKey",value:(o=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a){var i,o,s;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=If.instantiateTxnIfNeeded(r),o={wallet_handle_token:t,wallet_password:n,transaction:ul.from(i.toByte()).toString("base64"),public_key:ul.from(a).toString("base64")},e.next=4,this.c.post("/v1/transaction/sign",o);case 4:if(200!==(s=e.sent).status){e.next=7;break}return e.abrupt("return",ul.from(s.body.signed_transaction,"base64"));case 7:return e.abrupt("return",s.body);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return o.apply(this,arguments)})},{key:"listMultisig",value:(i=(0,ha.Z)((0,ua.Z)().mark((function e(t){var n,r;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/multisig/list",n);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"importMultisig",value:(a=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a){var i,o;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={wallet_handle_token:t,multisig_version:n,threshold:r,pks:a},e.next=3,this.c.post("/v1/multisig/import",i);case 3:return o=e.sent,e.abrupt("return",o.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return a.apply(this,arguments)})},{key:"exportMultisig",value:(r=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){var r,a;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={wallet_handle_token:t,address:n},e.next=3,this.c.post("/v1/multisig/export",r);case 3:return a=e.sent,e.abrupt("return",a.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"signMultisigTransaction",value:(n=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r,a,i){var o,s,c;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=If.instantiateTxnIfNeeded(r),s={wallet_handle_token:t,transaction:ul.from(o.toByte()).toString("base64"),public_key:ul.from(a).toString("base64"),partial_multisig:i,wallet_password:n},e.next=4,this.c.post("/v1/multisig/sign",s);case 4:return c=e.sent,e.abrupt("return",c.body);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t,r,a,i){return n.apply(this,arguments)})},{key:"deleteMultisig",value:(t=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a,i;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={wallet_handle_token:t,address:r,wallet_password:n},e.next=3,this.c.delete("/v1/multisig",a);case 3:return i=e.sent,e.abrupt("return",i.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})}]),_}(Uf),dl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ya.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n,[{key:"path",value:function(){return"/health"}}]),n}(Lf.Z),ll=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).index=a,i.index=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/assets/".concat(this.index,"/balances")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(Lf.Z),pl=n(62332).Buffer;function bl(e){return"string"==typeof e?e:pl.from(e).toString("base64")}var hl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).account=a,i.account=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/transactions")}},{key:"notePrefix",value:function(e){return this.query["note-prefix"]=bl(e),this}},{key:"txType",value:function(e){return this.query["tx-type"]=e,this}},{key:"sigType",value:function(e){return this.query["sig-type"]=e,this}},{key:"txid",value:function(e){return this.query.txid=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"minRound",value:function(e){return this.query["min-round"]=e,this}},{key:"maxRound",value:function(e){return this.query["max-round"]=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"beforeTime",value:function(e){return this.query["before-time"]=e,this}},{key:"afterTime",value:function(e){return this.query["after-time"]=e,this}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"rekeyTo",value:function(e){return this.query["rekey-to"]=e,this}}]),n}(Lf.Z),yl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).index=a,i.index=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/assets/".concat(this.index,"/transactions")}},{key:"notePrefix",value:function(e){return this.query["note-prefix"]=bl(e),this}},{key:"txType",value:function(e){return this.query["tx-type"]=e,this}},{key:"sigType",value:function(e){return this.query["sig-type"]=e,this}},{key:"txid",value:function(e){return this.query.txid=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"minRound",value:function(e){return this.query["min-round"]=e,this}},{key:"maxRound",value:function(e){return this.query["max-round"]=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"beforeTime",value:function(e){return this.query["before-time"]=e,this}},{key:"afterTime",value:function(e){return this.query["after-time"]=e,this}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"addressRole",value:function(e){return this.query["address-role"]=e,this}},{key:"address",value:function(e){return this.query.address=e,this}},{key:"excludeCloseTo",value:function(e){return this.query["exclude-close-to"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"rekeyTo",value:function(e){return this.query["rekey-to"]=e,this}}]),n}(Lf.Z),ml=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).round=a,i.round=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round)}},{key:"headerOnly",value:function(e){return this.query["header-only"]=e,this}}]),n}(Lf.Z),vl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).txID=a,i.txID=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/transactions/".concat(this.txID)}}]),n}(Lf.Z),gl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).account=a,i.account=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account)}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"exclude",value:function(e){return this.query.exclude=e,this}}]),n}(Lf.Z),Al=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).account=a,i.account=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/assets")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"assetId",value:function(e){return this.query["asset-id"]=e,this}}]),n}(Lf.Z),wl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).account=a,i.account=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/created-assets")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}}]),n}(Lf.Z),xl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).account=a,i.account=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/apps-local-state")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"applicationID",value:function(e){return this.query["application-id"]=e,this}}]),n}(Lf.Z),_l=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).account=a,i.account=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/created-applications")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"applicationID",value:function(e){return this.query["application-id"]=e,this}}]),n}(Lf.Z),kl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).index=a,i.index=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/assets/".concat(this.index)}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(Lf.Z),Sl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).index=a,i.index=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.index)}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(Lf.Z),Il=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).appID=a,i.appID=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.appID,"/logs")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"minRound",value:function(e){return this.query["min-round"]=e,this}},{key:"maxRound",value:function(e){return this.query["max-round"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"sender",value:function(e){return this.query["sender-address"]=e,this}},{key:"txid",value:function(e){return this.query.txid=e,this}}]),n}(Lf.Z),El=n(62332).Buffer,Cl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.address,i=e.amount,o=e.amountWithoutPendingRewards,s=e.pendingRewards,c=e.rewards,u=e.round,f=e.status,d=e.totalAppsOptedIn,l=e.totalAssetsOptedIn,p=e.totalBoxBytes,b=e.totalBoxes,h=e.totalCreatedApps,y=e.totalCreatedAssets,m=e.appsLocalState,v=e.appsTotalExtraPages,g=e.appsTotalSchema,A=e.assets,w=e.authAddr,x=e.closedAtRound,_=e.createdApps,k=e.createdAssets,S=e.createdAtRound,I=e.deleted,E=e.participation,C=e.rewardBase,T=e.sigType;return(0,ya.Z)(this,n),(r=t.call(this)).address=a,r.amount=i,r.amountWithoutPendingRewards=o,r.pendingRewards=s,r.rewards=c,r.round=u,r.status=f,r.totalAppsOptedIn=d,r.totalAssetsOptedIn=l,r.totalBoxBytes=p,r.totalBoxes=b,r.totalCreatedApps=h,r.totalCreatedAssets=y,r.appsLocalState=m,r.appsTotalExtraPages=v,r.appsTotalSchema=g,r.assets=A,r.authAddr=w,r.closedAtRound=x,r.createdApps=_,r.createdAssets=k,r.createdAtRound=S,r.deleted=I,r.participation=E,r.rewardBase=C,r.sigType=T,r.attribute_map={address:"address",amount:"amount",amountWithoutPendingRewards:"amount-without-pending-rewards",pendingRewards:"pending-rewards",rewards:"rewards",round:"round",status:"status",totalAppsOptedIn:"total-apps-opted-in",totalAssetsOptedIn:"total-assets-opted-in",totalBoxBytes:"total-box-bytes",totalBoxes:"total-boxes",totalCreatedApps:"total-created-apps",totalCreatedAssets:"total-created-assets",appsLocalState:"apps-local-state",appsTotalExtraPages:"apps-total-extra-pages",appsTotalSchema:"apps-total-schema",assets:"assets",authAddr:"auth-addr",closedAtRound:"closed-at-round",createdApps:"created-apps",createdAssets:"created-assets",createdAtRound:"created-at-round",deleted:"deleted",participation:"participation",rewardBase:"reward-base",sigType:"sig-type"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.address)throw new Error("Response is missing required field 'address': ".concat(e));if(void 0===e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if(void 0===e["amount-without-pending-rewards"])throw new Error("Response is missing required field 'amount-without-pending-rewards': ".concat(e));if(void 0===e["pending-rewards"])throw new Error("Response is missing required field 'pending-rewards': ".concat(e));if(void 0===e.rewards)throw new Error("Response is missing required field 'rewards': ".concat(e));if(void 0===e.round)throw new Error("Response is missing required field 'round': ".concat(e));if(void 0===e.status)throw new Error("Response is missing required field 'status': ".concat(e));if(void 0===e["total-apps-opted-in"])throw new Error("Response is missing required field 'total-apps-opted-in': ".concat(e));if(void 0===e["total-assets-opted-in"])throw new Error("Response is missing required field 'total-assets-opted-in': ".concat(e));if(void 0===e["total-box-bytes"])throw new Error("Response is missing required field 'total-box-bytes': ".concat(e));if(void 0===e["total-boxes"])throw new Error("Response is missing required field 'total-boxes': ".concat(e));if(void 0===e["total-created-apps"])throw new Error("Response is missing required field 'total-created-apps': ".concat(e));if(void 0===e["total-created-assets"])throw new Error("Response is missing required field 'total-created-assets': ".concat(e));return new n({address:e.address,amount:e.amount,amountWithoutPendingRewards:e["amount-without-pending-rewards"],pendingRewards:e["pending-rewards"],rewards:e.rewards,round:e.round,status:e.status,totalAppsOptedIn:e["total-apps-opted-in"],totalAssetsOptedIn:e["total-assets-opted-in"],totalBoxBytes:e["total-box-bytes"],totalBoxes:e["total-boxes"],totalCreatedApps:e["total-created-apps"],totalCreatedAssets:e["total-created-assets"],appsLocalState:void 0!==e["apps-local-state"]?e["apps-local-state"].map(Rl.from_obj_for_encoding):void 0,appsTotalExtraPages:e["apps-total-extra-pages"],appsTotalSchema:void 0!==e["apps-total-schema"]?Zl.from_obj_for_encoding(e["apps-total-schema"]):void 0,assets:void 0!==e.assets?e.assets.map(ql.from_obj_for_encoding):void 0,authAddr:e["auth-addr"],closedAtRound:e["closed-at-round"],createdApps:void 0!==e["created-apps"]?e["created-apps"].map(Bl.from_obj_for_encoding):void 0,createdAssets:void 0!==e["created-assets"]?e["created-assets"].map(Hl.from_obj_for_encoding):void 0,createdAtRound:e["created-at-round"],deleted:e.deleted,participation:void 0!==e.participation?Tl.from_obj_for_encoding(e.participation):void 0,rewardBase:e["reward-base"],sigType:e["sig-type"]})}}]),n}(td),Tl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.selectionParticipationKey,i=e.voteFirstValid,o=e.voteKeyDilution,s=e.voteLastValid,c=e.voteParticipationKey,u=e.stateProofKey;return(0,ya.Z)(this,n),(r=t.call(this)).selectionParticipationKey="string"==typeof a?new Uint8Array(El.from(a,"base64")):a,r.voteFirstValid=i,r.voteKeyDilution=o,r.voteLastValid=s,r.voteParticipationKey="string"==typeof c?new Uint8Array(El.from(c,"base64")):c,r.stateProofKey="string"==typeof u?new Uint8Array(El.from(u,"base64")):u,r.attribute_map={selectionParticipationKey:"selection-participation-key",voteFirstValid:"vote-first-valid",voteKeyDilution:"vote-key-dilution",voteLastValid:"vote-last-valid",voteParticipationKey:"vote-participation-key",stateProofKey:"state-proof-key"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["selection-participation-key"])throw new Error("Response is missing required field 'selection-participation-key': ".concat(e));if(void 0===e["vote-first-valid"])throw new Error("Response is missing required field 'vote-first-valid': ".concat(e));if(void 0===e["vote-key-dilution"])throw new Error("Response is missing required field 'vote-key-dilution': ".concat(e));if(void 0===e["vote-last-valid"])throw new Error("Response is missing required field 'vote-last-valid': ".concat(e));if(void 0===e["vote-participation-key"])throw new Error("Response is missing required field 'vote-participation-key': ".concat(e));return new n({selectionParticipationKey:e["selection-participation-key"],voteFirstValid:e["vote-first-valid"],voteKeyDilution:e["vote-key-dilution"],voteLastValid:e["vote-last-valid"],voteParticipationKey:e["vote-participation-key"],stateProofKey:e["state-proof-key"]})}}]),n}(td),Ol=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.account,i=e.currentRound;return(0,ya.Z)(this,n),(r=t.call(this)).account=a,r.currentRound=i,r.attribute_map={account:"account",currentRound:"current-round"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.account)throw new Error("Response is missing required field 'account': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({account:Cl.from_obj_for_encoding(e.account),currentRound:e["current-round"]})}}]),n}(td),Pl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.address,i=e.delta;return(0,ya.Z)(this,n),(r=t.call(this)).address=a,r.delta=i,r.attribute_map={address:"address",delta:"delta"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.address)throw new Error("Response is missing required field 'address': ".concat(e));if(!Array.isArray(e.delta))throw new Error("Response is missing required array field 'delta': ".concat(e));return new n({address:e.address,delta:e.delta.map(ap.from_obj_for_encoding)})}}]),n}(td),Ml=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.accounts,i=e.currentRound,o=e.nextToken;return(0,ya.Z)(this,n),(r=t.call(this)).accounts=a,r.currentRound=i,r.nextToken=o,r.attribute_map={accounts:"accounts",currentRound:"current-round",nextToken:"next-token"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.accounts))throw new Error("Response is missing required array field 'accounts': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({accounts:e.accounts.map(Cl.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(td),Bl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.id,i=e.params,o=e.createdAtRound,s=e.deleted,c=e.deletedAtRound;return(0,ya.Z)(this,n),(r=t.call(this)).id=a,r.params=i,r.createdAtRound=o,r.deleted=s,r.deletedAtRound=c,r.attribute_map={id:"id",params:"params",createdAtRound:"created-at-round",deleted:"deleted",deletedAtRound:"deleted-at-round"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.id)throw new Error("Response is missing required field 'id': ".concat(e));if(void 0===e.params)throw new Error("Response is missing required field 'params': ".concat(e));return new n({id:e.id,params:Ul.from_obj_for_encoding(e.params),createdAtRound:e["created-at-round"],deleted:e.deleted,deletedAtRound:e["deleted-at-round"]})}}]),n}(td),Rl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.id,i=e.schema,o=e.closedOutAtRound,s=e.deleted,c=e.keyValue,u=e.optedInAtRound;return(0,ya.Z)(this,n),(r=t.call(this)).id=a,r.schema=i,r.closedOutAtRound=o,r.deleted=s,r.keyValue=c,r.optedInAtRound=u,r.attribute_map={id:"id",schema:"schema",closedOutAtRound:"closed-out-at-round",deleted:"deleted",keyValue:"key-value",optedInAtRound:"opted-in-at-round"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.id)throw new Error("Response is missing required field 'id': ".concat(e));if(void 0===e.schema)throw new Error("Response is missing required field 'schema': ".concat(e));return new n({id:e.id,schema:Zl.from_obj_for_encoding(e.schema),closedOutAtRound:e["closed-out-at-round"],deleted:e.deleted,keyValue:void 0!==e["key-value"]?e["key-value"].map(gp.from_obj_for_encoding):void 0,optedInAtRound:e["opted-in-at-round"]})}}]),n}(td),Nl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.appsLocalStates,i=e.currentRound,o=e.nextToken;return(0,ya.Z)(this,n),(r=t.call(this)).appsLocalStates=a,r.currentRound=i,r.nextToken=o,r.attribute_map={appsLocalStates:"apps-local-states",currentRound:"current-round",nextToken:"next-token"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e["apps-local-states"]))throw new Error("Response is missing required array field 'apps-local-states': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({appsLocalStates:e["apps-local-states"].map(Rl.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(td),Dl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.logs,i=e.txid;return(0,ya.Z)(this,n),(r=t.call(this)).logs=a,r.txid=i,r.attribute_map={logs:"logs",txid:"txid"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.logs))throw new Error("Response is missing required array field 'logs': ".concat(e));if(void 0===e.txid)throw new Error("Response is missing required field 'txid': ".concat(e));return new n({logs:e.logs,txid:e.txid})}}]),n}(td),jl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.applicationId,i=e.currentRound,o=e.logData,s=e.nextToken;return(0,ya.Z)(this,n),(r=t.call(this)).applicationId=a,r.currentRound=i,r.logData=o,r.nextToken=s,r.attribute_map={applicationId:"application-id",currentRound:"current-round",logData:"log-data",nextToken:"next-token"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["application-id"])throw new Error("Response is missing required field 'application-id': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({applicationId:e["application-id"],currentRound:e["current-round"],logData:void 0!==e["log-data"]?e["log-data"].map(Dl.from_obj_for_encoding):void 0,nextToken:e["next-token"]})}}]),n}(td),Ul=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.approvalProgram,i=e.clearStateProgram,o=e.creator,s=e.extraProgramPages,c=e.globalState,u=e.globalStateSchema,f=e.localStateSchema;return(0,ya.Z)(this,n),(r=t.call(this)).approvalProgram="string"==typeof a?new Uint8Array(El.from(a,"base64")):a,r.clearStateProgram="string"==typeof i?new Uint8Array(El.from(i,"base64")):i,r.creator=o,r.extraProgramPages=s,r.globalState=c,r.globalStateSchema=u,r.localStateSchema=f,r.attribute_map={approvalProgram:"approval-program",clearStateProgram:"clear-state-program",creator:"creator",extraProgramPages:"extra-program-pages",globalState:"global-state",globalStateSchema:"global-state-schema",localStateSchema:"local-state-schema"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["approval-program"])throw new Error("Response is missing required field 'approval-program': ".concat(e));if(void 0===e["clear-state-program"])throw new Error("Response is missing required field 'clear-state-program': ".concat(e));return new n({approvalProgram:e["approval-program"],clearStateProgram:e["clear-state-program"],creator:e.creator,extraProgramPages:e["extra-program-pages"],globalState:void 0!==e["global-state"]?e["global-state"].map(gp.from_obj_for_encoding):void 0,globalStateSchema:void 0!==e["global-state-schema"]?Zl.from_obj_for_encoding(e["global-state-schema"]):void 0,localStateSchema:void 0!==e["local-state-schema"]?Zl.from_obj_for_encoding(e["local-state-schema"]):void 0})}}]),n}(td),Ll=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.currentRound,i=e.application;return(0,ya.Z)(this,n),(r=t.call(this)).currentRound=a,r.application=i,r.attribute_map={currentRound:"current-round",application:"application"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({currentRound:e["current-round"],application:void 0!==e.application?Bl.from_obj_for_encoding(e.application):void 0})}}]),n}(td),Zl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.numByteSlice,i=e.numUint;return(0,ya.Z)(this,n),(r=t.call(this)).numByteSlice=a,r.numUint=i,r.attribute_map={numByteSlice:"num-byte-slice",numUint:"num-uint"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["num-byte-slice"])throw new Error("Response is missing required field 'num-byte-slice': ".concat(e));if(void 0===e["num-uint"])throw new Error("Response is missing required field 'num-uint': ".concat(e));return new n({numByteSlice:e["num-byte-slice"],numUint:e["num-uint"]})}}]),n}(td),Fl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.applications,i=e.currentRound,o=e.nextToken;return(0,ya.Z)(this,n),(r=t.call(this)).applications=a,r.currentRound=i,r.nextToken=o,r.attribute_map={applications:"applications",currentRound:"current-round",nextToken:"next-token"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.applications))throw new Error("Response is missing required array field 'applications': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({applications:e.applications.map(Bl.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(td),Hl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.index,i=e.params,o=e.createdAtRound,s=e.deleted,c=e.destroyedAtRound;return(0,ya.Z)(this,n),(r=t.call(this)).index=a,r.params=i,r.createdAtRound=o,r.deleted=s,r.destroyedAtRound=c,r.attribute_map={index:"index",params:"params",createdAtRound:"created-at-round",deleted:"deleted",destroyedAtRound:"destroyed-at-round"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.index)throw new Error("Response is missing required field 'index': ".concat(e));if(void 0===e.params)throw new Error("Response is missing required field 'params': ".concat(e));return new n({index:e.index,params:Kl.from_obj_for_encoding(e.params),createdAtRound:e["created-at-round"],deleted:e.deleted,destroyedAtRound:e["destroyed-at-round"]})}}]),n}(td),zl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.balances,i=e.currentRound,o=e.nextToken;return(0,ya.Z)(this,n),(r=t.call(this)).balances=a,r.currentRound=i,r.nextToken=o,r.attribute_map={balances:"balances",currentRound:"current-round",nextToken:"next-token"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.balances))throw new Error("Response is missing required array field 'balances': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({balances:e.balances.map(up.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(td),ql=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.amount,i=e.assetId,o=e.isFrozen,s=e.deleted,c=e.optedInAtRound,u=e.optedOutAtRound;return(0,ya.Z)(this,n),(r=t.call(this)).amount=a,r.assetId=i,r.isFrozen=o,r.deleted=s,r.optedInAtRound=c,r.optedOutAtRound=u,r.attribute_map={amount:"amount",assetId:"asset-id",isFrozen:"is-frozen",deleted:"deleted",optedInAtRound:"opted-in-at-round",optedOutAtRound:"opted-out-at-round"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if(void 0===e["asset-id"])throw new Error("Response is missing required field 'asset-id': ".concat(e));if(void 0===e["is-frozen"])throw new Error("Response is missing required field 'is-frozen': ".concat(e));return new n({amount:e.amount,assetId:e["asset-id"],isFrozen:e["is-frozen"],deleted:e.deleted,optedInAtRound:e["opted-in-at-round"],optedOutAtRound:e["opted-out-at-round"]})}}]),n}(td),Ql=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.assets,i=e.currentRound,o=e.nextToken;return(0,ya.Z)(this,n),(r=t.call(this)).assets=a,r.currentRound=i,r.nextToken=o,r.attribute_map={assets:"assets",currentRound:"current-round",nextToken:"next-token"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.assets))throw new Error("Response is missing required array field 'assets': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({assets:e.assets.map(ql.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(td),Kl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.creator,i=e.decimals,o=e.total,s=e.clawback,c=e.defaultFrozen,u=e.freeze,f=e.manager,d=e.metadataHash,l=e.name,p=e.nameB64,b=e.reserve,h=e.unitName,y=e.unitNameB64,m=e.url,v=e.urlB64;return(0,ya.Z)(this,n),(r=t.call(this)).creator=a,r.decimals=i,r.total=o,r.clawback=s,r.defaultFrozen=c,r.freeze=u,r.manager=f,r.metadataHash="string"==typeof d?new Uint8Array(El.from(d,"base64")):d,r.name=l,r.nameB64="string"==typeof p?new Uint8Array(El.from(p,"base64")):p,r.reserve=b,r.unitName=h,r.unitNameB64="string"==typeof y?new Uint8Array(El.from(y,"base64")):y,r.url=m,r.urlB64="string"==typeof v?new Uint8Array(El.from(v,"base64")):v,r.attribute_map={creator:"creator",decimals:"decimals",total:"total",clawback:"clawback",defaultFrozen:"default-frozen",freeze:"freeze",manager:"manager",metadataHash:"metadata-hash",name:"name",nameB64:"name-b64",reserve:"reserve",unitName:"unit-name",unitNameB64:"unit-name-b64",url:"url",urlB64:"url-b64"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.creator)throw new Error("Response is missing required field 'creator': ".concat(e));if(void 0===e.decimals)throw new Error("Response is missing required field 'decimals': ".concat(e));if(void 0===e.total)throw new Error("Response is missing required field 'total': ".concat(e));return new n({creator:e.creator,decimals:e.decimals,total:e.total,clawback:e.clawback,defaultFrozen:e["default-frozen"],freeze:e.freeze,manager:e.manager,metadataHash:e["metadata-hash"],name:e.name,nameB64:e["name-b64"],reserve:e.reserve,unitName:e["unit-name"],unitNameB64:e["unit-name-b64"],url:e.url,urlB64:e["url-b64"]})}}]),n}(td),Vl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.asset,i=e.currentRound;return(0,ya.Z)(this,n),(r=t.call(this)).asset=a,r.currentRound=i,r.attribute_map={asset:"asset",currentRound:"current-round"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.asset)throw new Error("Response is missing required field 'asset': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({asset:Hl.from_obj_for_encoding(e.asset),currentRound:e["current-round"]})}}]),n}(td),Jl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.assets,i=e.currentRound,o=e.nextToken;return(0,ya.Z)(this,n),(r=t.call(this)).assets=a,r.currentRound=i,r.nextToken=o,r.attribute_map={assets:"assets",currentRound:"current-round",nextToken:"next-token"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.assets))throw new Error("Response is missing required array field 'assets': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({assets:e.assets.map(Hl.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(td),Gl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.genesisHash,i=e.genesisId,o=e.previousBlockHash,s=e.round,c=e.seed,u=e.timestamp,f=e.transactionsRoot,d=e.transactionsRootSha256,l=e.participationUpdates,p=e.rewards,b=e.stateProofTracking,h=e.transactions,y=e.txnCounter,m=e.upgradeState,v=e.upgradeVote;return(0,ya.Z)(this,n),(r=t.call(this)).genesisHash="string"==typeof a?new Uint8Array(El.from(a,"base64")):a,r.genesisId=i,r.previousBlockHash="string"==typeof o?new Uint8Array(El.from(o,"base64")):o,r.round=s,r.seed="string"==typeof c?new Uint8Array(El.from(c,"base64")):c,r.timestamp=u,r.transactionsRoot="string"==typeof f?new Uint8Array(El.from(f,"base64")):f,r.transactionsRootSha256="string"==typeof d?new Uint8Array(El.from(d,"base64")):d,r.participationUpdates=l,r.rewards=p,r.stateProofTracking=b,r.transactions=h,r.txnCounter=y,r.upgradeState=m,r.upgradeVote=v,r.attribute_map={genesisHash:"genesis-hash",genesisId:"genesis-id",previousBlockHash:"previous-block-hash",round:"round",seed:"seed",timestamp:"timestamp",transactionsRoot:"transactions-root",transactionsRootSha256:"transactions-root-sha256",participationUpdates:"participation-updates",rewards:"rewards",stateProofTracking:"state-proof-tracking",transactions:"transactions",txnCounter:"txn-counter",upgradeState:"upgrade-state",upgradeVote:"upgrade-vote"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["genesis-hash"])throw new Error("Response is missing required field 'genesis-hash': ".concat(e));if(void 0===e["genesis-id"])throw new Error("Response is missing required field 'genesis-id': ".concat(e));if(void 0===e["previous-block-hash"])throw new Error("Response is missing required field 'previous-block-hash': ".concat(e));if(void 0===e.round)throw new Error("Response is missing required field 'round': ".concat(e));if(void 0===e.seed)throw new Error("Response is missing required field 'seed': ".concat(e));if(void 0===e.timestamp)throw new Error("Response is missing required field 'timestamp': ".concat(e));if(void 0===e["transactions-root"])throw new Error("Response is missing required field 'transactions-root': ".concat(e));if(void 0===e["transactions-root-sha256"])throw new Error("Response is missing required field 'transactions-root-sha256': ".concat(e));return new n({genesisHash:e["genesis-hash"],genesisId:e["genesis-id"],previousBlockHash:e["previous-block-hash"],round:e.round,seed:e.seed,timestamp:e.timestamp,transactionsRoot:e["transactions-root"],transactionsRootSha256:e["transactions-root-sha256"],participationUpdates:void 0!==e["participation-updates"]?fp.from_obj_for_encoding(e["participation-updates"]):void 0,rewards:void 0!==e.rewards?Wl.from_obj_for_encoding(e.rewards):void 0,stateProofTracking:void 0!==e["state-proof-tracking"]?e["state-proof-tracking"].map(yp.from_obj_for_encoding):void 0,transactions:void 0!==e.transactions?e.transactions.map(wp.from_obj_for_encoding):void 0,txnCounter:e["txn-counter"],upgradeState:void 0!==e["upgrade-state"]?Yl.from_obj_for_encoding(e["upgrade-state"]):void 0,upgradeVote:void 0!==e["upgrade-vote"]?Xl.from_obj_for_encoding(e["upgrade-vote"]):void 0})}}]),n}(td),Wl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.feeSink,i=e.rewardsCalculationRound,o=e.rewardsLevel,s=e.rewardsPool,c=e.rewardsRate,u=e.rewardsResidue;return(0,ya.Z)(this,n),(r=t.call(this)).feeSink=a,r.rewardsCalculationRound=i,r.rewardsLevel=o,r.rewardsPool=s,r.rewardsRate=c,r.rewardsResidue=u,r.attribute_map={feeSink:"fee-sink",rewardsCalculationRound:"rewards-calculation-round",rewardsLevel:"rewards-level",rewardsPool:"rewards-pool",rewardsRate:"rewards-rate",rewardsResidue:"rewards-residue"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["fee-sink"])throw new Error("Response is missing required field 'fee-sink': ".concat(e));if(void 0===e["rewards-calculation-round"])throw new Error("Response is missing required field 'rewards-calculation-round': ".concat(e));if(void 0===e["rewards-level"])throw new Error("Response is missing required field 'rewards-level': ".concat(e));if(void 0===e["rewards-pool"])throw new Error("Response is missing required field 'rewards-pool': ".concat(e));if(void 0===e["rewards-rate"])throw new Error("Response is missing required field 'rewards-rate': ".concat(e));if(void 0===e["rewards-residue"])throw new Error("Response is missing required field 'rewards-residue': ".concat(e));return new n({feeSink:e["fee-sink"],rewardsCalculationRound:e["rewards-calculation-round"],rewardsLevel:e["rewards-level"],rewardsPool:e["rewards-pool"],rewardsRate:e["rewards-rate"],rewardsResidue:e["rewards-residue"]})}}]),n}(td),Yl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.currentProtocol,i=e.nextProtocol,o=e.nextProtocolApprovals,s=e.nextProtocolSwitchOn,c=e.nextProtocolVoteBefore;return(0,ya.Z)(this,n),(r=t.call(this)).currentProtocol=a,r.nextProtocol=i,r.nextProtocolApprovals=o,r.nextProtocolSwitchOn=s,r.nextProtocolVoteBefore=c,r.attribute_map={currentProtocol:"current-protocol",nextProtocol:"next-protocol",nextProtocolApprovals:"next-protocol-approvals",nextProtocolSwitchOn:"next-protocol-switch-on",nextProtocolVoteBefore:"next-protocol-vote-before"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["current-protocol"])throw new Error("Response is missing required field 'current-protocol': ".concat(e));return new n({currentProtocol:e["current-protocol"],nextProtocol:e["next-protocol"],nextProtocolApprovals:e["next-protocol-approvals"],nextProtocolSwitchOn:e["next-protocol-switch-on"],nextProtocolVoteBefore:e["next-protocol-vote-before"]})}}]),n}(td),Xl=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.upgradeApprove,i=e.upgradeDelay,o=e.upgradePropose;return(0,ya.Z)(this,n),(r=t.call(this)).upgradeApprove=a,r.upgradeDelay=i,r.upgradePropose=o,r.attribute_map={upgradeApprove:"upgrade-approve",upgradeDelay:"upgrade-delay",upgradePropose:"upgrade-propose"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({upgradeApprove:e["upgrade-approve"],upgradeDelay:e["upgrade-delay"],upgradePropose:e["upgrade-propose"]})}}]),n}(td),$l=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.name,i=e.value;return(0,ya.Z)(this,n),(r=t.call(this)).name="string"==typeof a?new Uint8Array(El.from(a,"base64")):a,r.value="string"==typeof i?new Uint8Array(El.from(i,"base64")):i,r.attribute_map={name:"name",value:"value"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.name)throw new Error("Response is missing required field 'name': ".concat(e));if(void 0===e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new n({name:e.name,value:e.value})}}]),n}(td),ep=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.name;return(0,ya.Z)(this,n),(r=t.call(this)).name="string"==typeof a?new Uint8Array(El.from(a,"base64")):a,r.attribute_map={name:"name"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.name)throw new Error("Response is missing required field 'name': ".concat(e));return new n({name:e.name})}}]),n}(td),tp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.applicationId,i=e.boxes,o=e.nextToken;return(0,ya.Z)(this,n),(r=t.call(this)).applicationId=a,r.boxes=i,r.nextToken=o,r.attribute_map={applicationId:"application-id",boxes:"boxes",nextToken:"next-token"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["application-id"])throw new Error("Response is missing required field 'application-id': ".concat(e));if(!Array.isArray(e.boxes))throw new Error("Response is missing required array field 'boxes': ".concat(e));return new n({applicationId:e["application-id"],boxes:e.boxes.map(ep.from_obj_for_encoding),nextToken:e["next-token"]})}}]),n}(td),np=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.message,i=e.data;return(0,ya.Z)(this,n),(r=t.call(this)).message=a,r.data=i,r.attribute_map={message:"message",data:"data"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.message)throw new Error("Response is missing required field 'message': ".concat(e));return new n({message:e.message,data:e.data})}}]),n}(td),rp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.action,i=e.bytes,o=e.uint;return(0,ya.Z)(this,n),(r=t.call(this)).action=a,r.bytes=i,r.uint=o,r.attribute_map={action:"action",bytes:"bytes",uint:"uint"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.action)throw new Error("Response is missing required field 'action': ".concat(e));return new n({action:e.action,bytes:e.bytes,uint:e.uint})}}]),n}(td),ap=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.key,i=e.value;return(0,ya.Z)(this,n),(r=t.call(this)).key=a,r.value=i,r.attribute_map={key:"key",value:"value"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.key)throw new Error("Response is missing required field 'key': ".concat(e));if(void 0===e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new n({key:e.key,value:rp.from_obj_for_encoding(e.value)})}}]),n}(td),ip=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.hashType;return(0,ya.Z)(this,n),(r=t.call(this)).hashType=a,r.attribute_map={hashType:"hash-type"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({hashType:e["hash-type"]})}}]),n}(td),op=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.dbAvailable,i=e.isMigrating,o=e.message,s=e.round,c=e.version,u=e.data,f=e.errors;return(0,ya.Z)(this,n),(r=t.call(this)).dbAvailable=a,r.isMigrating=i,r.message=o,r.round=s,r.version=c,r.data=u,r.errors=f,r.attribute_map={dbAvailable:"db-available",isMigrating:"is-migrating",message:"message",round:"round",version:"version",data:"data",errors:"errors"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["db-available"])throw new Error("Response is missing required field 'db-available': ".concat(e));if(void 0===e["is-migrating"])throw new Error("Response is missing required field 'is-migrating': ".concat(e));if(void 0===e.message)throw new Error("Response is missing required field 'message': ".concat(e));if(void 0===e.round)throw new Error("Response is missing required field 'round': ".concat(e));if(void 0===e.version)throw new Error("Response is missing required field 'version': ".concat(e));return new n({dbAvailable:e["db-available"],isMigrating:e["is-migrating"],message:e.message,round:e.round,version:e.version,data:e.data,errors:e.errors})}}]),n}(td),sp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.blockHeadersCommitment,i=e.firstAttestedRound,o=e.latestAttestedRound,s=e.lnProvenWeight,c=e.votersCommitment;return(0,ya.Z)(this,n),(r=t.call(this)).blockHeadersCommitment="string"==typeof a?new Uint8Array(El.from(a,"base64")):a,r.firstAttestedRound=i,r.latestAttestedRound=o,r.lnProvenWeight=s,r.votersCommitment="string"==typeof c?new Uint8Array(El.from(c,"base64")):c,r.attribute_map={blockHeadersCommitment:"block-headers-commitment",firstAttestedRound:"first-attested-round",latestAttestedRound:"latest-attested-round",lnProvenWeight:"ln-proven-weight",votersCommitment:"voters-commitment"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({blockHeadersCommitment:e["block-headers-commitment"],firstAttestedRound:e["first-attested-round"],latestAttestedRound:e["latest-attested-round"],lnProvenWeight:e["ln-proven-weight"],votersCommitment:e["voters-commitment"]})}}]),n}(td),cp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.hashFactory,i=e.path,o=e.treeDepth;return(0,ya.Z)(this,n),(r=t.call(this)).hashFactory=a,r.path=i,r.treeDepth=o,r.attribute_map={hashFactory:"hash-factory",path:"path",treeDepth:"tree-depth"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({hashFactory:void 0!==e["hash-factory"]?ip.from_obj_for_encoding(e["hash-factory"]):void 0,path:e.path,treeDepth:e["tree-depth"]})}}]),n}(td),up=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.address,i=e.amount,o=e.isFrozen,s=e.deleted,c=e.optedInAtRound,u=e.optedOutAtRound;return(0,ya.Z)(this,n),(r=t.call(this)).address=a,r.amount=i,r.isFrozen=o,r.deleted=s,r.optedInAtRound=c,r.optedOutAtRound=u,r.attribute_map={address:"address",amount:"amount",isFrozen:"is-frozen",deleted:"deleted",optedInAtRound:"opted-in-at-round",optedOutAtRound:"opted-out-at-round"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.address)throw new Error("Response is missing required field 'address': ".concat(e));if(void 0===e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if(void 0===e["is-frozen"])throw new Error("Response is missing required field 'is-frozen': ".concat(e));return new n({address:e.address,amount:e.amount,isFrozen:e["is-frozen"],deleted:e.deleted,optedInAtRound:e["opted-in-at-round"],optedOutAtRound:e["opted-out-at-round"]})}}]),n}(td),fp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.expiredParticipationAccounts;return(0,ya.Z)(this,n),(r=t.call(this)).expiredParticipationAccounts=a,r.attribute_map={expiredParticipationAccounts:"expired-participation-accounts"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({expiredParticipationAccounts:e["expired-participation-accounts"]})}}]),n}(td),dp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.partProofs,i=e.positionsToReveal,o=e.reveals,s=e.saltVersion,c=e.sigCommit,u=e.sigProofs,f=e.signedWeight;return(0,ya.Z)(this,n),(r=t.call(this)).partProofs=a,r.positionsToReveal=i,r.reveals=o,r.saltVersion=s,r.sigCommit="string"==typeof c?new Uint8Array(El.from(c,"base64")):c,r.sigProofs=u,r.signedWeight=f,r.attribute_map={partProofs:"part-proofs",positionsToReveal:"positions-to-reveal",reveals:"reveals",saltVersion:"salt-version",sigCommit:"sig-commit",sigProofs:"sig-proofs",signedWeight:"signed-weight"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({partProofs:void 0!==e["part-proofs"]?cp.from_obj_for_encoding(e["part-proofs"]):void 0,positionsToReveal:e["positions-to-reveal"],reveals:void 0!==e.reveals?e.reveals.map(pp.from_obj_for_encoding):void 0,saltVersion:e["salt-version"],sigCommit:e["sig-commit"],sigProofs:void 0!==e["sig-proofs"]?cp.from_obj_for_encoding(e["sig-proofs"]):void 0,signedWeight:e["signed-weight"]})}}]),n}(td),lp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.verifier,i=e.weight;return(0,ya.Z)(this,n),(r=t.call(this)).verifier=a,r.weight=i,r.attribute_map={verifier:"verifier",weight:"weight"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({verifier:void 0!==e.verifier?mp.from_obj_for_encoding(e.verifier):void 0,weight:e.weight})}}]),n}(td),pp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.participant,i=e.position,o=e.sigSlot;return(0,ya.Z)(this,n),(r=t.call(this)).participant=a,r.position=i,r.sigSlot=o,r.attribute_map={participant:"participant",position:"position",sigSlot:"sig-slot"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({participant:void 0!==e.participant?lp.from_obj_for_encoding(e.participant):void 0,position:e.position,sigSlot:void 0!==e["sig-slot"]?bp.from_obj_for_encoding(e["sig-slot"]):void 0})}}]),n}(td),bp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.lowerSigWeight,i=e.signature;return(0,ya.Z)(this,n),(r=t.call(this)).lowerSigWeight=a,r.signature=i,r.attribute_map={lowerSigWeight:"lower-sig-weight",signature:"signature"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({lowerSigWeight:e["lower-sig-weight"],signature:void 0!==e.signature?hp.from_obj_for_encoding(e.signature):void 0})}}]),n}(td),hp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.falconSignature,i=e.merkleArrayIndex,o=e.proof,s=e.verifyingKey;return(0,ya.Z)(this,n),(r=t.call(this)).falconSignature="string"==typeof a?new Uint8Array(El.from(a,"base64")):a,r.merkleArrayIndex=i,r.proof=o,r.verifyingKey="string"==typeof s?new Uint8Array(El.from(s,"base64")):s,r.attribute_map={falconSignature:"falcon-signature",merkleArrayIndex:"merkle-array-index",proof:"proof",verifyingKey:"verifying-key"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({falconSignature:e["falcon-signature"],merkleArrayIndex:e["merkle-array-index"],proof:void 0!==e.proof?cp.from_obj_for_encoding(e.proof):void 0,verifyingKey:e["verifying-key"]})}}]),n}(td),yp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.nextRound,i=e.onlineTotalWeight,o=e.type,s=e.votersCommitment;return(0,ya.Z)(this,n),(r=t.call(this)).nextRound=a,r.onlineTotalWeight=i,r.type=o,r.votersCommitment="string"==typeof s?new Uint8Array(El.from(s,"base64")):s,r.attribute_map={nextRound:"next-round",onlineTotalWeight:"online-total-weight",type:"type",votersCommitment:"voters-commitment"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({nextRound:e["next-round"],onlineTotalWeight:e["online-total-weight"],type:e.type,votersCommitment:e["voters-commitment"]})}}]),n}(td),mp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.commitment,i=e.keyLifetime;return(0,ya.Z)(this,n),(r=t.call(this)).commitment="string"==typeof a?new Uint8Array(El.from(a,"base64")):a,r.keyLifetime=i,r.attribute_map={commitment:"commitment",keyLifetime:"key-lifetime"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({commitment:e.commitment,keyLifetime:e["key-lifetime"]})}}]),n}(td),vp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.numByteSlice,i=e.numUint;return(0,ya.Z)(this,n),(r=t.call(this)).numByteSlice=a,r.numUint=i,r.attribute_map={numByteSlice:"num-byte-slice",numUint:"num-uint"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["num-byte-slice"])throw new Error("Response is missing required field 'num-byte-slice': ".concat(e));if(void 0===e["num-uint"])throw new Error("Response is missing required field 'num-uint': ".concat(e));return new n({numByteSlice:e["num-byte-slice"],numUint:e["num-uint"]})}}]),n}(td),gp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.key,i=e.value;return(0,ya.Z)(this,n),(r=t.call(this)).key=a,r.value=i,r.attribute_map={key:"key",value:"value"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.key)throw new Error("Response is missing required field 'key': ".concat(e));if(void 0===e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new n({key:e.key,value:Ap.from_obj_for_encoding(e.value)})}}]),n}(td),Ap=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.bytes,i=e.type,o=e.uint;return(0,ya.Z)(this,n),(r=t.call(this)).bytes=a,r.type=i,r.uint=o,r.attribute_map={bytes:"bytes",type:"type",uint:"uint"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.bytes)throw new Error("Response is missing required field 'bytes': ".concat(e));if(void 0===e.type)throw new Error("Response is missing required field 'type': ".concat(e));if(void 0===e.uint)throw new Error("Response is missing required field 'uint': ".concat(e));return new n({bytes:e.bytes,type:e.type,uint:e.uint})}}]),n}(td),wp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.fee,i=e.firstValid,o=e.lastValid,s=e.sender,c=e.applicationTransaction,u=e.assetConfigTransaction,f=e.assetFreezeTransaction,d=e.assetTransferTransaction,l=e.authAddr,p=e.closeRewards,b=e.closingAmount,h=e.confirmedRound,y=e.createdApplicationIndex,m=e.createdAssetIndex,v=e.genesisHash,g=e.genesisId,A=e.globalStateDelta,w=e.group,x=e.id,_=e.innerTxns,k=e.intraRoundOffset,S=e.keyregTransaction,I=e.lease,E=e.localStateDelta,C=e.logs,T=e.note,O=e.paymentTransaction,P=e.receiverRewards,M=e.rekeyTo,B=e.roundTime,R=e.senderRewards,N=e.signature,D=e.stateProofTransaction,j=e.txType;return(0,ya.Z)(this,n),(r=t.call(this)).fee=a,r.firstValid=i,r.lastValid=o,r.sender=s,r.applicationTransaction=c,r.assetConfigTransaction=u,r.assetFreezeTransaction=f,r.assetTransferTransaction=d,r.authAddr=l,r.closeRewards=p,r.closingAmount=b,r.confirmedRound=h,r.createdApplicationIndex=y,r.createdAssetIndex=m,r.genesisHash="string"==typeof v?new Uint8Array(El.from(v,"base64")):v,r.genesisId=g,r.globalStateDelta=A,r.group="string"==typeof w?new Uint8Array(El.from(w,"base64")):w,r.id=x,r.innerTxns=_,r.intraRoundOffset=k,r.keyregTransaction=S,r.lease="string"==typeof I?new Uint8Array(El.from(I,"base64")):I,r.localStateDelta=E,r.logs=C,r.note="string"==typeof T?new Uint8Array(El.from(T,"base64")):T,r.paymentTransaction=O,r.receiverRewards=P,r.rekeyTo=M,r.roundTime=B,r.senderRewards=R,r.signature=N,r.stateProofTransaction=D,r.txType=j,r.attribute_map={fee:"fee",firstValid:"first-valid",lastValid:"last-valid",sender:"sender",applicationTransaction:"application-transaction",assetConfigTransaction:"asset-config-transaction",assetFreezeTransaction:"asset-freeze-transaction",assetTransferTransaction:"asset-transfer-transaction",authAddr:"auth-addr",closeRewards:"close-rewards",closingAmount:"closing-amount",confirmedRound:"confirmed-round",createdApplicationIndex:"created-application-index",createdAssetIndex:"created-asset-index",genesisHash:"genesis-hash",genesisId:"genesis-id",globalStateDelta:"global-state-delta",group:"group",id:"id",innerTxns:"inner-txns",intraRoundOffset:"intra-round-offset",keyregTransaction:"keyreg-transaction",lease:"lease",localStateDelta:"local-state-delta",logs:"logs",note:"note",paymentTransaction:"payment-transaction",receiverRewards:"receiver-rewards",rekeyTo:"rekey-to",roundTime:"round-time",senderRewards:"sender-rewards",signature:"signature",stateProofTransaction:"state-proof-transaction",txType:"tx-type"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.fee)throw new Error("Response is missing required field 'fee': ".concat(e));if(void 0===e["first-valid"])throw new Error("Response is missing required field 'first-valid': ".concat(e));if(void 0===e["last-valid"])throw new Error("Response is missing required field 'last-valid': ".concat(e));if(void 0===e.sender)throw new Error("Response is missing required field 'sender': ".concat(e));return new n({fee:e.fee,firstValid:e["first-valid"],lastValid:e["last-valid"],sender:e.sender,applicationTransaction:void 0!==e["application-transaction"]?xp.from_obj_for_encoding(e["application-transaction"]):void 0,assetConfigTransaction:void 0!==e["asset-config-transaction"]?_p.from_obj_for_encoding(e["asset-config-transaction"]):void 0,assetFreezeTransaction:void 0!==e["asset-freeze-transaction"]?kp.from_obj_for_encoding(e["asset-freeze-transaction"]):void 0,assetTransferTransaction:void 0!==e["asset-transfer-transaction"]?Sp.from_obj_for_encoding(e["asset-transfer-transaction"]):void 0,authAddr:e["auth-addr"],closeRewards:e["close-rewards"],closingAmount:e["closing-amount"],confirmedRound:e["confirmed-round"],createdApplicationIndex:e["created-application-index"],createdAssetIndex:e["created-asset-index"],genesisHash:e["genesis-hash"],genesisId:e["genesis-id"],globalStateDelta:void 0!==e["global-state-delta"]?e["global-state-delta"].map(ap.from_obj_for_encoding):void 0,group:e.group,id:e.id,innerTxns:void 0!==e["inner-txns"]?e["inner-txns"].map(n.from_obj_for_encoding):void 0,intraRoundOffset:e["intra-round-offset"],keyregTransaction:void 0!==e["keyreg-transaction"]?Ip.from_obj_for_encoding(e["keyreg-transaction"]):void 0,lease:e.lease,localStateDelta:void 0!==e["local-state-delta"]?e["local-state-delta"].map(Pl.from_obj_for_encoding):void 0,logs:e.logs,note:e.note,paymentTransaction:void 0!==e["payment-transaction"]?Ep.from_obj_for_encoding(e["payment-transaction"]):void 0,receiverRewards:e["receiver-rewards"],rekeyTo:e["rekey-to"],roundTime:e["round-time"],senderRewards:e["sender-rewards"],signature:void 0!==e.signature?Tp.from_obj_for_encoding(e.signature):void 0,stateProofTransaction:void 0!==e["state-proof-transaction"]?Bp.from_obj_for_encoding(e["state-proof-transaction"]):void 0,txType:e["tx-type"]})}}]),n}(td),xp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.applicationId,i=e.accounts,o=e.applicationArgs,s=e.approvalProgram,c=e.clearStateProgram,u=e.extraProgramPages,f=e.foreignApps,d=e.foreignAssets,l=e.globalStateSchema,p=e.localStateSchema,b=e.onCompletion;return(0,ya.Z)(this,n),(r=t.call(this)).applicationId=a,r.accounts=i,r.applicationArgs=o,r.approvalProgram="string"==typeof s?new Uint8Array(El.from(s,"base64")):s,r.clearStateProgram="string"==typeof c?new Uint8Array(El.from(c,"base64")):c,r.extraProgramPages=u,r.foreignApps=f,r.foreignAssets=d,r.globalStateSchema=l,r.localStateSchema=p,r.onCompletion=b,r.attribute_map={applicationId:"application-id",accounts:"accounts",applicationArgs:"application-args",approvalProgram:"approval-program",clearStateProgram:"clear-state-program",extraProgramPages:"extra-program-pages",foreignApps:"foreign-apps",foreignAssets:"foreign-assets",globalStateSchema:"global-state-schema",localStateSchema:"local-state-schema",onCompletion:"on-completion"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["application-id"])throw new Error("Response is missing required field 'application-id': ".concat(e));return new n({applicationId:e["application-id"],accounts:e.accounts,applicationArgs:e["application-args"],approvalProgram:e["approval-program"],clearStateProgram:e["clear-state-program"],extraProgramPages:e["extra-program-pages"],foreignApps:e["foreign-apps"],foreignAssets:e["foreign-assets"],globalStateSchema:void 0!==e["global-state-schema"]?vp.from_obj_for_encoding(e["global-state-schema"]):void 0,localStateSchema:void 0!==e["local-state-schema"]?vp.from_obj_for_encoding(e["local-state-schema"]):void 0,onCompletion:e["on-completion"]})}}]),n}(td),_p=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.assetId,i=e.params;return(0,ya.Z)(this,n),(r=t.call(this)).assetId=a,r.params=i,r.attribute_map={assetId:"asset-id",params:"params"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({assetId:e["asset-id"],params:void 0!==e.params?Kl.from_obj_for_encoding(e.params):void 0})}}]),n}(td),kp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.address,i=e.assetId,o=e.newFreezeStatus;return(0,ya.Z)(this,n),(r=t.call(this)).address=a,r.assetId=i,r.newFreezeStatus=o,r.attribute_map={address:"address",assetId:"asset-id",newFreezeStatus:"new-freeze-status"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.address)throw new Error("Response is missing required field 'address': ".concat(e));if(void 0===e["asset-id"])throw new Error("Response is missing required field 'asset-id': ".concat(e));if(void 0===e["new-freeze-status"])throw new Error("Response is missing required field 'new-freeze-status': ".concat(e));return new n({address:e.address,assetId:e["asset-id"],newFreezeStatus:e["new-freeze-status"]})}}]),n}(td),Sp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.amount,i=e.assetId,o=e.receiver,s=e.closeAmount,c=e.closeTo,u=e.sender;return(0,ya.Z)(this,n),(r=t.call(this)).amount=a,r.assetId=i,r.receiver=o,r.closeAmount=s,r.closeTo=c,r.sender=u,r.attribute_map={amount:"amount",assetId:"asset-id",receiver:"receiver",closeAmount:"close-amount",closeTo:"close-to",sender:"sender"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if(void 0===e["asset-id"])throw new Error("Response is missing required field 'asset-id': ".concat(e));if(void 0===e.receiver)throw new Error("Response is missing required field 'receiver': ".concat(e));return new n({amount:e.amount,assetId:e["asset-id"],receiver:e.receiver,closeAmount:e["close-amount"],closeTo:e["close-to"],sender:e.sender})}}]),n}(td),Ip=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.nonParticipation,i=e.selectionParticipationKey,o=e.stateProofKey,s=e.voteFirstValid,c=e.voteKeyDilution,u=e.voteLastValid,f=e.voteParticipationKey;return(0,ya.Z)(this,n),(r=t.call(this)).nonParticipation=a,r.selectionParticipationKey="string"==typeof i?new Uint8Array(El.from(i,"base64")):i,r.stateProofKey="string"==typeof o?new Uint8Array(El.from(o,"base64")):o,r.voteFirstValid=s,r.voteKeyDilution=c,r.voteLastValid=u,r.voteParticipationKey="string"==typeof f?new Uint8Array(El.from(f,"base64")):f,r.attribute_map={nonParticipation:"non-participation",selectionParticipationKey:"selection-participation-key",stateProofKey:"state-proof-key",voteFirstValid:"vote-first-valid",voteKeyDilution:"vote-key-dilution",voteLastValid:"vote-last-valid",voteParticipationKey:"vote-participation-key"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({nonParticipation:e["non-participation"],selectionParticipationKey:e["selection-participation-key"],stateProofKey:e["state-proof-key"],voteFirstValid:e["vote-first-valid"],voteKeyDilution:e["vote-key-dilution"],voteLastValid:e["vote-last-valid"],voteParticipationKey:e["vote-participation-key"]})}}]),n}(td),Ep=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.amount,i=e.receiver,o=e.closeAmount,s=e.closeRemainderTo;return(0,ya.Z)(this,n),(r=t.call(this)).amount=a,r.receiver=i,r.closeAmount=o,r.closeRemainderTo=s,r.attribute_map={amount:"amount",receiver:"receiver",closeAmount:"close-amount",closeRemainderTo:"close-remainder-to"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if(void 0===e.receiver)throw new Error("Response is missing required field 'receiver': ".concat(e));return new n({amount:e.amount,receiver:e.receiver,closeAmount:e["close-amount"],closeRemainderTo:e["close-remainder-to"]})}}]),n}(td),Cp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.currentRound,i=e.transaction;return(0,ya.Z)(this,n),(r=t.call(this)).currentRound=a,r.transaction=i,r.attribute_map={currentRound:"current-round",transaction:"transaction"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));if(void 0===e.transaction)throw new Error("Response is missing required field 'transaction': ".concat(e));return new n({currentRound:e["current-round"],transaction:wp.from_obj_for_encoding(e.transaction)})}}]),n}(td),Tp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.logicsig,i=e.multisig,o=e.sig;return(0,ya.Z)(this,n),(r=t.call(this)).logicsig=a,r.multisig=i,r.sig="string"==typeof o?new Uint8Array(El.from(o,"base64")):o,r.attribute_map={logicsig:"logicsig",multisig:"multisig",sig:"sig"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({logicsig:void 0!==e.logicsig?Op.from_obj_for_encoding(e.logicsig):void 0,multisig:void 0!==e.multisig?Pp.from_obj_for_encoding(e.multisig):void 0,sig:e.sig})}}]),n}(td),Op=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.logic,i=e.args,o=e.multisigSignature,s=e.signature;return(0,ya.Z)(this,n),(r=t.call(this)).logic="string"==typeof a?new Uint8Array(El.from(a,"base64")):a,r.args=i,r.multisigSignature=o,r.signature="string"==typeof s?new Uint8Array(El.from(s,"base64")):s,r.attribute_map={logic:"logic",args:"args",multisigSignature:"multisig-signature",signature:"signature"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.logic)throw new Error("Response is missing required field 'logic': ".concat(e));return new n({logic:e.logic,args:e.args,multisigSignature:void 0!==e["multisig-signature"]?Pp.from_obj_for_encoding(e["multisig-signature"]):void 0,signature:e.signature})}}]),n}(td),Pp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.subsignature,i=e.threshold,o=e.version;return(0,ya.Z)(this,n),(r=t.call(this)).subsignature=a,r.threshold=i,r.version=o,r.attribute_map={subsignature:"subsignature",threshold:"threshold",version:"version"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({subsignature:void 0!==e.subsignature?e.subsignature.map(Mp.from_obj_for_encoding):void 0,threshold:e.threshold,version:e.version})}}]),n}(td),Mp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.publicKey,i=e.signature;return(0,ya.Z)(this,n),(r=t.call(this)).publicKey="string"==typeof a?new Uint8Array(El.from(a,"base64")):a,r.signature="string"==typeof i?new Uint8Array(El.from(i,"base64")):i,r.attribute_map={publicKey:"public-key",signature:"signature"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({publicKey:e["public-key"],signature:e.signature})}}]),n}(td),Bp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.message,i=e.stateProof,o=e.stateProofType;return(0,ya.Z)(this,n),(r=t.call(this)).message=a,r.stateProof=i,r.stateProofType=o,r.attribute_map={message:"message",stateProof:"state-proof",stateProofType:"state-proof-type"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({message:void 0!==e.message?sp.from_obj_for_encoding(e.message):void 0,stateProof:void 0!==e["state-proof"]?dp.from_obj_for_encoding(e["state-proof"]):void 0,stateProofType:e["state-proof-type"]})}}]),n}(td),Rp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.currentRound,i=e.transactions,o=e.nextToken;return(0,ya.Z)(this,n),(r=t.call(this)).currentRound=a,r.transactions=i,r.nextToken=o,r.attribute_map={currentRound:"current-round",transactions:"transactions",nextToken:"next-token"},r}return(0,ma.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));if(!Array.isArray(e.transactions))throw new Error("Response is missing required array field 'transactions': ".concat(e));return new n({currentRound:e["current-round"],transactions:e.transactions.map(wp.from_obj_for_encoding),nextToken:e["next-token"]})}}]),n}(td),Np=n(62332).Buffer,Dp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a,i){var o;(0,ya.Z)(this,n),(o=t.call(this,e,r)).index=a,o.index=a;var s=Np.from(i).toString("base64");return o.query.name=encodeURI("b64:".concat(s)),o}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.index,"/box")}},{key:"prepare",value:function(e){return $l.from_obj_for_encoding(e)}}]),n}(Lf.Z),jp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ya.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/accounts"}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"authAddr",value:function(e){return this.query["auth-addr"]=e,this}},{key:"applicationID",value:function(e){return this.query["application-id"]=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"exclude",value:function(e){return this.query.exclude=e,this}}]),n}(Lf.Z),Up=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ya.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/transactions"}},{key:"notePrefix",value:function(e){return this.query["note-prefix"]=bl(e),this}},{key:"txType",value:function(e){return this.query["tx-type"]=e,this}},{key:"sigType",value:function(e){return this.query["sig-type"]=e,this}},{key:"txid",value:function(e){return this.query.txid=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"minRound",value:function(e){return this.query["min-round"]=e,this}},{key:"maxRound",value:function(e){return this.query["max-round"]=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"beforeTime",value:function(e){return this.query["before-time"]=e,this}},{key:"afterTime",value:function(e){return this.query["after-time"]=e,this}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"addressRole",value:function(e){return this.query["address-role"]=e,this}},{key:"address",value:function(e){return this.query.address=e,this}},{key:"excludeCloseTo",value:function(e){return this.query["exclude-close-to"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"rekeyTo",value:function(e){return this.query["rekey-to"]=e,this}},{key:"applicationID",value:function(e){return this.query["application-id"]=e,this}}]),n}(Lf.Z),Lp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ya.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/assets"}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"creator",value:function(e){return this.query.creator=e,this}},{key:"name",value:function(e){return this.query.name=e,this}},{key:"unit",value:function(e){return this.query.unit=e,this}},{key:"index",value:function(e){return this.query["asset-id"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(Lf.Z),Zp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ya.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/applications"}},{key:"index",value:function(e){return this.query["application-id"]=e,this}},{key:"creator",value:function(e){return this.query.creator=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(Lf.Z),Fp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e,r)).index=a,i.index=a,i}return(0,ma.Z)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.index,"/boxes")}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"prepare",value:function(e){return tp.from_obj_for_encoding(e)}}]),n}(Lf.Z),Hp=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://127.0.0.1",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8080,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,ya.Z)(this,n),t.call(this,"X-Indexer-API-Token",e,r,a,i)}return(0,ma.Z)(n,[{key:"makeHealthCheck",value:function(){return new dl(this.c,this.intDecoding)}},{key:"lookupAssetBalances",value:function(e){return new ll(this.c,this.intDecoding,e)}},{key:"lookupAssetTransactions",value:function(e){return new yl(this.c,this.intDecoding,e)}},{key:"lookupAccountTransactions",value:function(e){return new hl(this.c,this.intDecoding,e)}},{key:"lookupBlock",value:function(e){return new ml(this.c,this.intDecoding,e)}},{key:"lookupTransactionByID",value:function(e){return new vl(this.c,this.intDecoding,e)}},{key:"lookupAccountByID",value:function(e){return new gl(this.c,this.intDecoding,e)}},{key:"lookupAccountAssets",value:function(e){return new Al(this.c,this.intDecoding,e)}},{key:"lookupAccountCreatedAssets",value:function(e){return new wl(this.c,this.intDecoding,e)}},{key:"lookupAccountAppLocalStates",value:function(e){return new xl(this.c,this.intDecoding,e)}},{key:"lookupAccountCreatedApplications",value:function(e){return new _l(this.c,this.intDecoding,e)}},{key:"lookupAssetByID",value:function(e){return new kl(this.c,this.intDecoding,e)}},{key:"lookupApplications",value:function(e){return new Sl(this.c,this.intDecoding,e)}},{key:"lookupApplicationLogs",value:function(e){return new Il(this.c,this.intDecoding,e)}},{key:"searchAccounts",value:function(){return new jp(this.c,this.intDecoding)}},{key:"searchForTransactions",value:function(){return new Up(this.c,this.intDecoding)}},{key:"searchForAssets",value:function(){return new Lp(this.c,this.intDecoding)}},{key:"searchForApplications",value:function(){return new Zp(this.c,this.intDecoding)}},{key:"searchForApplicationBoxes",value:function(e){return new Fp(this.c,this.intDecoding,e)}},{key:"lookupApplicationBoxByIDandName",value:function(e,t){return new Dp(this.c,this.intDecoding,e,t)}}]),n}(Uf);function zp(e,t,n){return qp.apply(this,arguments)}function qp(){return qp=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a,i,o,s,c;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.status().do();case 2:if(void 0!==(a=e.sent)){e.next=5;break}throw new Error("Unable to get node status");case 5:i=a["last-round"]+1,o=i;case 7:if(!(o=11&&(t.push(2047&n),n>>=11,r-=11)})),r&&t.push(n),t}function eb(e){return e.map((function(e){return Wp[e]}))}function tb(e){return eb($p(_f.genericHash(e)))[0]}function nb(e){if(e.length!==_f.SEED_BTYES_LENGTH)throw new RangeError("Seed length must be ".concat(_f.SEED_BTYES_LENGTH));var t=eb($p(e)),n=tb(e);return"".concat(t.join(" ")," ").concat(n)}function rb(e){var t,n=e.split(" "),r=n.slice(0,24),a=(0,ba.Z)(r);try{for(a.s();!(t=a.n()).done;){var i=t.value;if(-1===Wp.indexOf(i))throw new Error(Xp)}}catch(e){a.e(e)}finally{a.f()}var o,s,c,u=n[n.length-1],f=r.map((function(e){return Wp.indexOf(e)})),d=(o=[],s=0,c=0,f.forEach((function(e){for(s|=e<=8;)o.push(255&s),s>>=8,c-=8})),c&&o.push(s),new Uint8Array(o));if(33!==d.length)throw new Error(Yp);if(0!==d[d.length-1])throw new Error(Yp);if(tb(d=d.slice(0,d.length-1))===u)return d;throw new Error(Yp)}function ab(e){var t=rb(e),n=_f.keyPairFromSeed(t);return{addr:kf.encodeAddress(n.publicKey),sk:n.secretKey}}function ib(e){return nb(e.slice(0,_f.SEED_BTYES_LENGTH))}function ob(e){return rb(e)}function sb(e){return nb(e)}var cb=n(5532),ub=n(18024),fb=n(93292),db={},lb={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach((function(e,t){db[e]=t,lb[t]=e}));var pb=function(){function e(t){var n=t.version,r=t.sources,a=t.names,i=t.mappings;if((0,ya.Z)(this,e),this.version=n,this.sources=r,this.names=a,this.mappings=i,3!==this.version)throw new Error("Only version 3 is supported, got ".concat(this.version));if(void 0===this.mappings)throw new Error("mapping undefined, cannot build source map without `mapping`");var o=this.mappings.split(";").map((function(e){var t=function(e){for(var t=[],n=0,r=0,a=0;a>>=1,s?t.push(0===r?-2147483648:-r):t.push(r),r=n=0}}return t}(e);if(t.length>2)return t[2]}));this.pcToLine={},this.lineToPc={};var s,c=0,u=(0,ba.Z)(o.entries());try{for(u.s();!(s=u.n()).done;){var f=(0,fa.Z)(s.value,2),d=f[0],l=f[1];void 0!==l&&(c+=l),c in this.lineToPc||(this.lineToPc[c]=[]),this.lineToPc[c].push(d),this.pcToLine[d]=c}}catch(e){u.e(e)}finally{u.f()}}return(0,ma.Z)(e,[{key:"getLineForPc",value:function(e){return this.pcToLine[e]}},{key:"getPcsForLine",value:function(e){return this.lineToPc[e]}}]),e}(),bb=n(95775),hb=n(62332).Buffer,yb=1380011588;function mb(e){return e.params["approval-program"]=hb.from(e.params["approval-program"].toString(),"base64"),e.params["clear-state-program"]=hb.from(e.params["clear-state-program"].toString(),"base64"),e}function vb(e){return gb.apply(this,arguments)}function gb(){return gb=(0,ha.Z)((0,ua.Z)().mark((function e(t){var n,r,a,i,o,s,c,u,f,d,l,p,b,h,y,m,v,g,A,w,x,_,k,S,I,E;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.client,r=t.txns,a=t.protocolVersion,i=t.latestTimestamp,o=t.round,s=t.sources,c=[],u=[],f=[],d=[],l=[],p=(0,ba.Z)(r);try{for(p.s();!(b=p.n()).done;)(h=b.value).txn.type===bb.i.appl&&(l.push((0,kf.encodeAddress)(h.txn.from.publicKey)),h.txn.appAccounts&&l.push.apply(l,(0,va.Z)(h.txn.appAccounts.map((function(e){return(0,kf.encodeAddress)(e.publicKey)})))),h.txn.appForeignApps&&(f.push.apply(f,(0,va.Z)(h.txn.appForeignApps)),l.push.apply(l,(0,va.Z)(h.txn.appForeignApps.map((function(e){return(0,kf.getApplicationAddress)(e)}))))),h.txn.appForeignAssets&&d.push.apply(d,(0,va.Z)(h.txn.appForeignAssets)),void 0===h.txn.appIndex||0===h.txn.appIndex?c.push(new cd(yb,new fd({creator:(0,kf.encodeAddress)(h.txn.from.publicKey),approvalProgram:h.txn.appApprovalProgram,clearStateProgram:h.txn.appClearProgram,localStateSchema:new dd(h.txn.appLocalInts,h.txn.appLocalByteSlices),globalStateSchema:new dd(h.txn.appGlobalInts,h.txn.appGlobalByteSlices)}))):(f.push(h.txn.appIndex),l.push((0,kf.getApplicationAddress)(h.txn.appIndex))))}catch(e){p.e(e)}finally{p.f()}for(y=[],m=0,v=(0,va.Z)(new Set(d));mt&&t>0?"".concat(e.slice(0,t),"..."):e}function kb(e,t){if(0===t.length)return"";for(var n=null,r=0;re.length||JSON.stringify(e[r])!==JSON.stringify(t[r]))&&(n=r);if(null==n)return"";var a=t[n];return a.bytes.length>0?"".concat(n," = 0x").concat(hb.from(a.bytes,"base64").toString("hex")):"".concat(n," = ").concat(a.uint.toString())}function Sb(e,t){var n=t?e.reverse():e;return"[".concat(n.map((function(e){switch(e.type){case 1:return"0x".concat(hb.from(e.bytes,"base64").toString("hex"));case 2:return"".concat(e.uint.toString());default:return""}})).join(", "),"]")}var Ib=function(){function e(t){(0,ya.Z)(this,e),this.disassembly=[],this.appCallMessages=[],this.localDeltas=[],this.globalDelta=[],this.cost=0,this.logicSigMessages=[],this.logicSigDisassembly=[],this.logs=[],this.appCallTrace=void 0,this.logicSigTrace=void 0,this.required=["disassembly"],this.optionals=["app-call-messages","local-deltas","global-delta","cost","logic-sig-messages","logic-sig-disassembly","logs"],this.traces=["app-call-trace","logic-sig-trace"],this.disassembly=t.disassembly,this.appCallMessages=t["app-call-messages"],this.localDeltas=t["local-deltas"],this.globalDelta=t["global-delta"],this.cost=t.cost,this.logicSigMessages=t["logic-sig-messages"],this.logicSigDisassembly=t["logic-sig-disassembly"],this.logs=t.logs,this.appCallTrace=new xb(t["app-call-trace"]),this.logicSigTrace=new xb(t["logic-sig-trace"])}return(0,ma.Z)(e,[{key:"appCallRejected",value:function(){return void 0!==this.appCallMessages&&this.appCallMessages.includes("REJECT")}},{key:"logicSigRejected",value:function(){return void 0!==this.logicSigMessages&&this.logicSigMessages.includes("REJECT")}},{key:"appTrace",value:function(t){if(void 0===this.appCallTrace||!this.disassembly)return"";var n=t;return void 0===t&&(n={maxValueWidth:30,topOfStackFirst:!1}),e.trace(this.appCallTrace,this.disassembly,n)}},{key:"lsigTrace",value:function(t){if(void 0===this.logicSigTrace||void 0===this.logicSigDisassembly)return"";var n=t;return void 0===t&&(n={maxValueWidth:30,topOfStackFirst:!0}),e.trace(this.logicSigTrace,this.logicSigDisassembly,n)}}],[{key:"trace",value:function(e,t,n){for(var r=n.maxValueWidth||30,a=[["pc#","ln#","source","scratch","stack"]],i=0;i0&&void 0!==e.trace[i-1].scratch?e.trace[i-1].scratch:[],b=""===c?t[s]:"!! ".concat(c," !!");a.push([u.toString().padEnd(3," "),s.toString().padEnd(3," "),_b(b,r),_b(kb(p,l),r),_b(Sb(d,n.topOfStackFirst),r)])}var h=a.reduce((function(e,t){for(var n=new Array(a[0].length).fill(0),r=0;re[r]?t[r].length:e[r];return n}),new Array(a[0].length).fill(0));return"".concat(a.map((function(e){return e.map((function(e,t){return e.padEnd(h[t]+1," ")})).join("|").trim()})).join("\n"),"\n")}}]),e}(),Eb=(0,ma.Z)((function e(t){(0,ya.Z)(this,e),this.error="",this.protocolVersion="",this.txns=[],this.error=t.error,this.protocolVersion=t["protocol-version"],this.txns=t.txns.map((function(e){return new Ib(e)}))})),Cb=n(50598);function Tb(e){return function(t,n){var r,a=[],i=(0,ba.Z)(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;a.push(t[o].signTxn(e.sk))}}catch(e){i.e(e)}finally{i.f()}return Promise.resolve(a)}}function Ob(e){return function(t,n){var r,a=[],i=(0,ba.Z)(n);try{for(i.s();!(r=i.n()).done;){var o=r.value,s=(0,ub.signLogicSigTransactionObject)(t[o],e).blob;a.push(s)}}catch(e){i.e(e)}finally{i.f()}return Promise.resolve(a)}}function Pb(e,t){return function(n,r){var a,i=[],o=(0,ba.Z)(r);try{for(o.s();!(a=o.n()).done;){var s,c=n[a.value],u=[],f=(0,ba.Z)(t);try{for(f.s();!(s=f.n()).done;){var d=s.value,l=(0,fb.PU)(c,e,d).blob;u.push(l)}}catch(e){f.e(e)}finally{f.f()}i.push((0,fb.J6)(u))}}catch(e){o.e(e)}finally{o.f()}return Promise.resolve(i)}}function Mb(e){return"object"==typeof e&&2===Object.keys(e).length&&"object"==typeof e.txn&&"function"==typeof e.signer}var Bb,Rb,Nb=n(62332).Buffer,Db=Math.pow(2,16)-1,jb=32,Ub=1,Lb=1,Zb=2,Fb=/^([a-z\d[\](),]+)\[(0|[1-9][\d]*)]$/,Hb=/^ufixed([1-9][\d]*)x([1-9][\d]*)$/,zb=function(){function e(){(0,ya.Z)(this,e)}return(0,ma.Z)(e,null,[{key:"from",value:function(t){if(t.endsWith("[]")){var n=e.from(t.slice(0,t.length-2));return new Yb(n)}if(t.endsWith("]")){var r=t.match(Fb);if(3!==r.length)throw new Error("malformed static array string: ".concat(t));var a=r[2],i=parseInt(a,10);if(i>Db)throw new Error("array length exceeds limit ".concat(Db));var o=e.from(r[1]);return new Wb(o,i)}if(t.startsWith("uint")){var s=t.slice(4,t.length);if(u=s,!(0,va.Z)(u).every((function(e){return"0123456789".includes(e)})))throw new Error("malformed uint string: ".concat(s));var c=parseInt(s,10);if(c>Db)throw new Error("malformed uint string: ".concat(c));return new qb(c)}var u;if("byte"===t)return new Jb;if(t.startsWith("ufixed")){var f=t.match(Hb);if(3!==f.length)throw new Error("malformed ufixed type: ".concat(t));var d=parseInt(f[1],10),l=parseInt(f[2],10);return new Qb(d,l)}if("bool"===t)return new Vb;if("address"===t)return new Kb;if("string"===t)return new Gb;if(t.length>=2&&"("===t[0]&&")"===t[t.length-1]){for(var p=Xb.parseTupleContent(t.slice(1,t.length-1)),b=[],h=0;h512)throw new Error("unsupported uint type bitSize: ".concat(e));return r.bitSize=e,r}return(0,ma.Z)(n,[{key:"toString",value:function(){return"uint".concat(this.bitSize)}},{key:"equals",value:function(e){return e instanceof n&&this.bitSize===e.bitSize}},{key:"isDynamic",value:function(){return!1}},{key:"byteLen",value:function(){return this.bitSize/8}},{key:"encode",value:function(e){if("bigint"!=typeof e&&"number"!=typeof e)throw new Error("Cannot encode value as uint".concat(this.bitSize,": ").concat(e));if(e>=BigInt(Math.pow(2,this.bitSize))||e512)throw new Error("unsupported ufixed type bitSize: ".concat(e));if(r>160||r<1)throw new Error("unsupported ufixed type precision: ".concat(r));return a.bitSize=e,a.precision=r,a}return(0,ma.Z)(n,[{key:"toString",value:function(){return"ufixed".concat(this.bitSize,"x").concat(this.precision)}},{key:"equals",value:function(e){return e instanceof n&&this.bitSize===e.bitSize&&this.precision===e.precision}},{key:"isDynamic",value:function(){return!1}},{key:"byteLen",value:function(){return this.bitSize/8}},{key:"encode",value:function(e){if("bigint"!=typeof e&&"number"!=typeof e)throw new Error("Cannot encode value as ".concat(this.toString(),": ").concat(e));if(e>=BigInt(Math.pow(2,this.bitSize))||e255)throw new Error("".concat(e," cannot be encoded into a byte"));return new Uint8Array([e])}},{key:"decode",value:function(e){if(1!==e.byteLength)throw new Error("byte string must be 1 byte long");return e[0]}}]),n}(zb),Gb=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ya.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n,[{key:"toString",value:function(){return"string"}},{key:"equals",value:function(e){return e instanceof n}},{key:"isDynamic",value:function(){return!0}},{key:"byteLen",value:function(){throw new Error("".concat(this.toString()," is a dynamic type"))}},{key:"encode",value:function(e){if("string"!=typeof e&&!(e instanceof Uint8Array))throw new Error("Cannot encode value as string: ".concat(e));var t=Nb.from(e),n=Kp(t.length,Zb),r=new Uint8Array(t.length+Zb);return r.set(n),r.set(t,Zb),r}},{key:"decode",value:function(e){if(e.length=Db)throw new Error("tuple type child type number larger than maximum uint16 error");return r.childTypes=e,r}return(0,ma.Z)(n,[{key:"toString",value:function(){for(var e=[],t=0;tDb)throw new Error("length of tuple array should not exceed a uint16");for(var n=this.childTypes,r=[],a=[],i=new Map,o=0;oDb)throw new Error("byte length of ".concat(m," should not exceed a uint16"));r[y]=Kp(m,Zb)}h+=a[y].length}return Tf.concatArrays.apply(void 0,r.concat(a))}},{key:"decode",value:function(e){for(var t=this.childTypes,n=[],r=[],a=0,i=0,o=Nb.from(e);a0&&(n[n.length-1].right=c,c>l;(e[i]&p)>0?r.push(new Uint8Array([128])):r.push(new Uint8Array([0]))}a+=d,i+=1}else{var b=s.byteLen();r.push(e.slice(i,i+b)),i+=b}if(a!==t.length-1&&i>=e.length)throw new Error("input byte not enough to decode");a+=1}if(n.length>0&&(n[n.length-1].right=e.length,i=e.length),iy.right)throw new Error("dynamic segment should display a [l, r] space with l <= r");if(h!==n.length-1&&y.right!==n[h+1].left)throw new Error("dynamic segment should be consecutive")}for(var m=0,v=0;v8)throw new Error("value list passed in should be no greater than length 8");for(var n=0;n0&&-1===n))break;r+=1}}return r}function th(e){return e===Bb.any||e===Bb.pay||e===Bb.keyreg||e===Bb.acfg||e===Bb.axfer||e===Bb.afrz||e===Bb.appl}function nh(e,t){return e===Bb.any||t.type&&t.type.toString()===e.toString()}function rh(e){return e===Rb.account||e===Rb.application||e===Rb.asset}!function(e){e.any="txn",e.pay="pay",e.keyreg="keyreg",e.acfg="acfg",e.axfer="axfer",e.afrz="afrz",e.appl="appl"}(Bb||(Bb={})),function(e){e.account="account",e.application="application",e.asset="asset"}(Rb||(Rb={}));var ah=function(){function e(t){if((0,ya.Z)(this,e),"string"!=typeof t.name||"object"!=typeof t.returns||!Array.isArray(t.args))throw new Error("Invalid ABIMethod parameters");this.name=t.name,this.description=t.desc,this.args=t.args.map((function(e){var t=e.type,n=e.name,r=e.desc;return th(t)||rh(t)?{type:t,name:n,description:r}:{type:zb.from(t),name:n,description:r}})),this.returns={type:"void"===t.returns.type?t.returns.type:zb.from(t.returns.type),description:t.returns.desc}}return(0,ma.Z)(e,[{key:"getSignature",value:function(){var e=this.args.map((function(e){return e.type.toString()})).join(","),t=this.returns.type.toString();return"".concat(this.name,"(").concat(e,")").concat(t)}},{key:"getSelector",value:function(){var e=(0,_f.genericHash)(this.getSignature());return new Uint8Array(e.slice(0,4))}},{key:"txnCount",value:function(){var e,t=1,n=(0,ba.Z)(this.args);try{for(n.s();!(e=n.n()).done;){var r=e.value;"string"==typeof r.type&&th(r.type)&&(t+=1)}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"toJSON",value:function(){return{name:this.name,desc:this.description,args:this.args.map((function(e){var t=e.type,n=e.name,r=e.description;return{type:t.toString(),name:n,desc:r}})),returns:{type:this.returns.type.toString(),desc:this.returns.description}}}}],[{key:"fromSignature",value:function(t){var n=function(e){var t=e.indexOf("(");if(-1===t)throw new Error("Invalid method signature: ".concat(e));for(var n=-1,r=0,a=t;a1)throw new Error("found ".concat(n.length," methods with the same name ").concat(n.map((function(e){return e.getSignature()})).join(",")));if(0===n.length)throw new Error("found 0 methods with the name ".concat(t));return n[0]}var oh,sh=function(){function e(t){if((0,ya.Z)(this,e),"string"!=typeof t.name||!Array.isArray(t.methods)||t.networks&&"object"!=typeof t.networks)throw new Error("Invalid ABIContract parameters");this.name=t.name,this.description=t.desc,this.networks=t.networks?(0,ca.Z)({},t.networks):{},this.methods=t.methods.map((function(e){return new ah(e)}))}return(0,ma.Z)(e,[{key:"toJSON",value:function(){return{name:this.name,desc:this.description,networks:this.networks,methods:this.methods.map((function(e){return e.toJSON()}))}}},{key:"getMethodByName",value:function(e){return ih(this.methods,e)}}]),e}(),ch=function(){function e(t){if((0,ya.Z)(this,e),"string"!=typeof t.name||!Array.isArray(t.methods))throw new Error("Invalid ABIInterface parameters");this.name=t.name,this.description=t.desc,this.methods=t.methods.map((function(e){return new ah(e)}))}return(0,ma.Z)(e,[{key:"toJSON",value:function(){return{name:this.name,desc:this.description,methods:this.methods.map((function(e){return e.toJSON()}))}}},{key:"getMethodByName",value:function(e){return ih(this.methods,e)}}]),e}(),uh=n(15922),fh=n(62332).Buffer,dh=fh.from([21,31,124,117]);function lh(e,t,n){if(null!=n&&e===n)return 0;for(var r=null==n?0:1,a=0;ae.MAX_GROUP_SIZE)throw new Error("Adding additional transactions exceeds the maximum atomic group size of ".concat(e.MAX_GROUP_SIZE));if(0===r){if(null==u||null==f||null==d||null==l||null==p||null==b)throw new Error("One of the following required parameters for application creation is missing: approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices")}else if(c===uh.hq.UpdateApplicationOC){if(null==u||null==f)throw new Error("One of the following required parameters for OnApplicationComplete.UpdateApplicationOC is missing: approvalProgram, clearProgram");if(null!=d||null!=l||null!=p||null!=b||null!=h)throw new Error("One of the following application creation parameters were set on a non-creation call: numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages")}else if(null!=u||null!=f||null!=d||null!=l||null!=p||null!=b||null!=h)throw new Error("One of the following application creation parameters were set on a non-creation call: approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages");if(null==i&&(i=[]),i.length!==a.args.length)throw new Error("Incorrect number of method arguments. Expected ".concat(a.args.length,", got ").concat(i.length));for(var w=[],x=[],_=[],k=[],S=[],I=new Map,E=y||[],C=0;CNumber.MAX_SAFE_INTEGER)throw new Error("Expected safe integer for application value, got ".concat(F));U=lh(Number(F),B,r);break;case Rb.asset:var H=new qb(64),z=H.decode(H.encode(j));if(z>Number.MAX_SAFE_INTEGER)throw new Error("Expected safe integer for asset value, got ".concat(z));U=lh(Number(z),R);break;default:throw new Error("Unknown reference type: ".concat(D))}P.push(U)}for(var q=0;q15){var Q=w.slice(14),K=x.slice(14);w=w.slice(0,14),x=x.slice(0,14),w.push(new Xb(Q)),x.push(K)}for(var V=[a.getSelector()],J=0;J1&&(0,cb.assignGroupID)(this.transactions.map((function(e){return e.txn}))),this.status=oh.BUILT}return this.transactions}},{key:"gatherSignatures",value:(r=(0,ha.Z)((0,ua.Z)().mark((function e(){var t,n,r,a,i,o,s,c,u,f,d,l,p;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this.status>=oh.SIGNED)){e.next=2;break}return e.abrupt("return",this.signedTxns);case 2:for(t=this.buildGroup(),n=t.map((function(e){return e.txn})),r=new Map,a=0;aoh.SUBMITTED)){e.next=2;break}throw new Error("Transaction group cannot be resubmitted");case 2:return e.next=4,this.gatherSignatures();case 4:return n=e.sent,e.next=7,t.sendRawTransaction(n).do();case 7:return this.status=oh.SUBMITTED,e.abrupt("return",this.txIDs);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"execute",value:(t=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){var r,a,i,o,s,c,u,f,d,l,p,b,h,y,m,v,g=this;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.status!==oh.COMMITTED){e.next=2;break}throw new Error("Transaction group has already been executed successfully");case 2:return e.next=4,this.submit(t);case 4:return r=e.sent,this.status=oh.SUBMITTED,a=this.transactions.findIndex((function(e,t){return g.methodCalls.has(t)})),i=-1===a?0:a,e.next=10,zp(t,r[i],n);case 10:o=e.sent,this.status=oh.COMMITTED,s=o["confirmed-round"],c=[],u=(0,ba.Z)(this.methodCalls),e.prev=15,u.s();case 17:if((f=u.n()).done){e.next=48;break}if(d=(0,fa.Z)(f.value,2),l=d[0],p=d[1],b=r[l],h={txID:b,rawReturnValue:new Uint8Array,method:p},e.prev=21,l!==a){e.next=26;break}e.t0=o,e.next=29;break;case 26:return e.next=28,t.pendingTransactionInformation(b).do();case 28:e.t0=e.sent;case 29:if(y=e.t0,h.txInfo=y,"void"===p.returns.type){e.next=40;break}if(0!==(m=y.logs||[]).length){e.next=35;break}throw new Error("App call transaction did not log a return value");case 35:if(!((v=fh.from(m[m.length-1],"base64")).byteLength<4)&&v.slice(0,4).equals(dh)){e.next=38;break}throw new Error("App call transaction did not log a return value");case 38:h.rawReturnValue=new Uint8Array(v.slice(4)),h.returnValue=p.returns.type.decode(h.rawReturnValue);case 40:e.next=45;break;case 42:e.prev=42,e.t1=e.catch(21),h.decodeError=e.t1;case 45:c.push(h);case 46:e.next=17;break;case 48:e.next=53;break;case 50:e.prev=50,e.t2=e.catch(15),u.e(e.t2);case 53:return e.prev=53,u.f(),e.finish(53);case 56:return e.abrupt("return",{confirmedRound:s,txIDs:r,methodResults:c});case 57:case"end":return e.stop()}}),e,this,[[15,50,53,56],[21,42]])}))),function(e,n){return t.apply(this,arguments)})}]),e}();ph.MAX_GROUP_SIZE=16;var bh=n(62332).Buffer,hh=bh.from([77,88]),yh="The transaction sender address and multisig preimage do not match.";function mh(e,t){if(void 0===e.from){var n=_f.keyPairFromSecretKey(t);e.from=kf.encodeAddress(n.publicKey)}var r=If.instantiateTxnIfNeeded(e);return{txID:r.txID().toString(),blob:r.signTxn(t)}}function vh(e,t){return new Pf(e).signBid(t)}function gh(e,t){var n=bh.from(Tf.concatArrays(hh,e));return _f.sign(n,t)}function Ah(e,t,n){var r=bh.from(Tf.concatArrays(hh,e)),a=kf.decodeAddress(n).publicKey;return _f.verify(r,t,a)}function wh(e){return new Uint8Array(Sf.encode(e))}function xh(e){return Sf.decode(e)}var _h=new Error(yh),kh=new Error(Bf),Sh=Cf(),Ih=o,Eh=n(63978),Ch=n(56578);function Th(e,t){return xf.PublicKey.findProgramAddressSync(e,new xf.PublicKey(t))[0]}function Oh(e,t){return{pubkey:new xf.PublicKey(e),isWritable:!0,isSigner:t}}function Ph(e,t){return{pubkey:new xf.PublicKey(e),isWritable:!1,isSigner:t}}function Mh(e){if(null===e)throw Error("account info is null");return e.data}var Bh=n(62332).Buffer;function Rh(e,t){return Th([Bh.from("Sequence"),new xf.PublicKey(e).toBytes()],t)}!function(){function e(e){this.sequence=e}e.deserialize=function(t){if(8!=t.length)throw new Error("data.length != 8");return new e(t.readBigUInt64LE(0))},e.prototype.value=function(){return this.sequence}}();var Nh=n(62332).Buffer;function Dh(e){return Th([Nh.from("emitter")],e)}function jh(e,t){var n=Dh(e);return{emitter:n,sequence:Rh(n,t)}}var Uh=n(62332).Buffer,Lh=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Zh=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]BigInt(Number.MAX_SAFE_INTEGER))throw new Error("integer is unsafe");return Number(e)}var Gh=n(62332).Buffer,Wh=BigInt(127);function Yh(e,t,n){return Gh.from(function(e,t,n){if(e=BigInt(128);t++)e>>=BigInt(7);return t+1}(e);if(n=n||0,(t=t||new ArrayBuffer(r)).byteLength>=BigInt(7);return a[i]=Number(e),a}(e,t,n)).toString("hex")}var Xh=n(62332).Buffer,$h=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},ey=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},oy=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},sy=function(e,t){for(var n=0,r=t.length,a=e.length;n=n.length||3===n.readIntBE(s,1)&&(t.Meta="TokenBridge Transfer With Payload",t.Type=n.readIntBE(s,1),s+=1,t.Amount=Ay(e,s,32),s+=32,t.Contract=cm(Ay(e,s,32)),s+=32,t.FromChain=n.readIntBE(s,2),s+=2,t.ToAddress=Ay(e,s,32),s+=32,t.ToChain=n.readIntBE(s,2),s+=2,t.FromAddress=Ay(e,s,32),s+=32,t.Payload=e.slice(s)),t}var xy=new RegExp("\0","g");function _y(e){var t=wy(e),n=ny.from(t.Body);t.action=n.readUInt8(0),t.Contract=n.slice(1,33).toString("hex"),t.FromChain=n.readUInt16BE(33),t.Symbol=ny.from(n.slice(35,67)),t.Name=ny.from(n.slice(67,99)),t.TokenId=n.slice(99,131);var r=n.readUInt8(131);t.uri=ny.from(n.slice(132,132+r)).toString("utf8").replace(xy,"");var a=132+r;return t.ToAddress=n.slice(a,a+32),t.ToChain=n.readUInt16BE(a+32),t}function ky(e,t,n){return ry(this,void 0,void 0,(function(){var r,a,i,o,s,c,u,f,d,l,p,b,h,y,m,v,g,A,w,x,_;return ay(this,(function(k){switch(k.label){case 0:return r=null,[4,e.accountInformation(n).do()];case 1:a=k.sent();try{for(i=iy(a["apps-local-state"]),o=i.next();!o.done;o=i.next())if(s=o.value,BigInt(s.id)===t){r=s["key-value"];break}}catch(e){A={error:e}}finally{try{o&&!o.done&&(w=i.return)&&w.call(i)}finally{if(A)throw A.error}}if(c=ny.alloc(0),u=ny.alloc(0),r){f=ny.alloc(127),d=ny.from("meta"),l=[],p=new Map;try{for(b=iy(r),h=b.next();!h.done;h=b.next())y=h.value,m=ny.from(y.key,"base64"),v=m.readInt8(),ny.compare(m,d)&&(g=ny.from(y.value.bytes,"base64"),ny.compare(g,f)&&(p.set(v.toString(),g),l.push(v.toString())))}catch(e){x={error:e}}finally{try{h&&!h.done&&(_=b.return)&&_.call(b)}finally{if(x)throw x.error}}l.sort((function(e,t){return e.localeCompare(t,"en",{numeric:!0})})),l.forEach((function(e){c=ny.concat([c,p.get(e)||u])}))}return[2,new Uint8Array(c)]}}))}))}function Sy(e,t,n){return ry(this,void 0,void 0,(function(){var r,a,i;return ay(this,(function(o){switch(o.label){case 0:return[4,e.accountInformation(n).do()];case 1:return r=o.sent(),a=r.assets,i=!1,a.forEach((function(e){BigInt(e["asset-id"])!==t||(i=!0)})),[2,i]}}))}))}var Iy=function(e,t,n,r){this.vaaMap=e,this.accounts=t,this.txs=n,this.guardianAddr=r};function Ey(e,t,n,r,a){return ry(this,void 0,void 0,(function(){var i,o,s,c,u,f,d,l,p,b,h,y,m,v,g,A,w,x,_,k,S,I,E,C,T,O,P,M,B,R,N,D;return ay(this,(function(j){switch(j.label){case 0:return i=wy(n),o=i.sequence/BigInt(dy),s=i.chainRaw,c=i.emitter,u=i.index,f=[],[4,gy(e,r,a,o,s+c)];case 1:return d=j.sent(),l=d.addr,p=d.txs,f.push.apply(f,sy([],oy(p))),b=wm("guardian"),[4,gy(e,r,t,BigInt(u),b)];case 2:return h=j.sent(),y=h.addr,m=h.txs,f.push.apply(f,sy([],oy(m))),v=[l,y],[4,ky(e,t,y)];case 3:return g=j.sent(),[4,e.getTransactionParams().do()];case 4:for(A=j.sent(),w=(0,gf.keccak256)((0,gf.keccak256)(i.digest)).slice(2),x=i.siglen,_=Math.floor(x/ly)+1,k=66*ly,S=i.signatures,I=xm("verifySigs"),E=new ub.LogicSigAccount(by),C=0;C<_;C++){for((T=S.slice(C*k)).length>k&&(T=T.slice(0,k)),O=T.length/66,P=new Uint8Array(20*O),M=0;M8&&(_=ny.from(x.slice(0,8)),A.push(Jh(_.readBigUInt64BE(0)))),c.push({tx:(0,Cb.makePaymentTxnWithSuggestedParamsFromObject)({from:a,to:h,amount:1e5,suggestedParams:v}),signer:null}),(g=new Uint8Array(1))[0]=1,c.push({tx:(0,Cb.makeApplicationCallTxnFromObject)({appArgs:[xm("nop"),g],appIndex:Jh(t),from:a,onComplete:Cb.OnApplicationComplete.NoOpOC,suggestedParams:v}),signer:null}),(g=new Uint8Array(1))[0]=2,c.push({tx:(0,Cb.makeApplicationCallTxnFromObject)({appArgs:[xm("nop"),g],appIndex:Jh(t),from:a,onComplete:Cb.OnApplicationComplete.NoOpOC,suggestedParams:v}),signer:null}),c.push({tx:(0,Cb.makeApplicationCallTxnFromObject)({accounts:s,appArgs:[xm("receiveAttest"),r],appIndex:Jh(t),foreignAssets:A,from:a,onComplete:Cb.OnApplicationComplete.NoOpOC,suggestedParams:v}),signer:null}),c[c.length-1].tx.fee=2*c[c.length-1].tx.fee,E.label=11;case 11:return"TokenBridge Transfer"!==b&&"TokenBridge Transfer With Payload"!==b||void 0===o.Contract?[3,17]:(A=[],w=0,o.FromChain===B?[3,13]:[4,ky(e,t,h)]);case 12:return(x=E.sent()).length>8&&(_=ny.from(x.slice(0,8)),w=Jh(_.readBigUInt64BE(0))),[3,14];case 13:w=parseInt(o.Contract,16),E.label=14;case 14:return k=0,S="",void 0!==o.ToAddress&&(8===o.ToChain&&3===o.Type?(k=Number(My(cm(o.ToAddress))),S=(0,kf.getApplicationAddress)(k)):S=(0,kf.encodeAddress)(o.ToAddress)),0===w?[3,16]:(A.push(w),[4,Sy(e,BigInt(w),S)]);case 15:if(!E.sent()){if(a!=S)throw new Error("cannot ASA optin for somebody else (asset "+w.toString()+")");c.unshift({tx:(0,Cb.makeAssetTransferTxnWithSuggestedParamsFromObject)({amount:0,assetIndex:w,from:a,suggestedParams:v,to:a}),signer:null})}E.label=16;case 16:s.push(S),c.push({tx:(0,Cb.makeApplicationCallTxnFromObject)({accounts:s,appArgs:[xm("completeTransfer"),r],appIndex:Jh(t),foreignAssets:A,from:a,onComplete:Cb.OnApplicationComplete.NoOpOC,suggestedParams:v}),signer:null}),void 0!==o.Fee&&0===ny.compare(o.Fee,ny.from(uy,"hex"))?c[c.length-1].tx.fee=2*c[c.length-1].tx.fee:c[c.length-1].tx.fee=3*c[c.length-1].tx.fee,"TokenBridge Transfer With Payload"===b&&(c[c.length-1].tx.appForeignApps=[k],I=Ih.ABIMethod.fromSignature("portal_transfer(byte[])byte[]"),c.push({tx:(0,Cb.makeApplicationCallTxnFromObject)({appArgs:[I.getSelector(),I.args[0].type.encode(r)],appIndex:k,foreignAssets:A,from:a,onComplete:Cb.OnApplicationComplete.NoOpOC,suggestedParams:v}),signer:null})),E.label=17;case 17:return[2,c]}}))}))}function Ty(e){return(0,kf.encodeAddress)(e)}function Oy(e){return Ty(um(e))}function Py(e){return cm((0,kf.decodeAddress)(e).publicKey)}function My(e){return Eh.O$.from(um(e)).toBigInt()}function By(e){return Eh.O$.from(um(e)).toString()}function Ry(e,t,n){return ry(this,void 0,void 0,(function(){var r,a,i,o,s,c,u,f,d;return ay(this,(function(l){switch(l.label){case 0:(0,cb.assignGroupID)(t.map((function(e){return e.tx}))),r=[],l.label=1;case 1:l.trys.push([1,7,8,9]),a=iy(t),i=a.next(),l.label=2;case 2:return i.done?[3,6]:(o=i.value).signer?(c=(s=r).push,[4,o.signer.signTxn(o.tx)]):[3,4];case 3:return c.apply(s,[l.sent()]),[3,5];case 4:r.push(o.tx.signTxn(n.sk)),l.label=5;case 5:return i=a.next(),[3,2];case 6:return[3,9];case 7:return u=l.sent(),f={error:u},[3,9];case 8:try{i&&!i.done&&(d=a.return)&&d.call(a)}finally{if(f)throw f.error}return[7];case 9:return[4,e.sendRawTransaction(r).do()];case 10:return l.sent(),[4,zp(e,t[t.length-1].tx.txID(),4)];case 11:return[2,l.sent()]}}))}))}function Ny(e){return new Uint8Array(Ch.bech32.fromWords(Ch.bech32.decode(e).words))}function Dy(e,t){return Ch.bech32.encode(e,Ch.bech32.toWords(t))}var jy=function(e){return void 0===e&&(e=""),e.startsWith("u")&&4===e.length},Uy=function(e){return void 0===e&&(e=""),jy(e)||"uluna"===e};function Ly(e){for(var t=[],n=0;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};function em(e,t){var n=e.receipts_outcome.reduce((function(e,t){return e.totalGasBurned+=t.outcome.gas_burnt,e.totalTokensBurned+=Vy().utils.format.formatNearAmount(t.outcome.tokens_burnt),e}),{totalGasBurned:e.transaction_outcome.outcome.gas_burnt,totalTokensBurned:Vy().utils.format.formatNearAmount(e.transaction_outcome.outcome.tokens_burnt)}),r=n.totalGasBurned,a=n.totalTokensBurned;console.log(t,"totalGasBurned",r,"totalTokensBurned",a)}function tm(e,t,n){return Yy(this,void 0,void 0,(function(){var r,a,i;return Xy(this,(function(o){switch(o.label){case 0:return[4,am(e,t,"hash_account",{account:n})];case 1:return r=$y.apply(void 0,[o.sent(),2]),a=r[0],i=r[1],[2,{isRegistered:a,accountHash:i}]}}))}))}function nm(e,t,n){return Yy(this,void 0,void 0,(function(){var r,a,i;return Xy(this,(function(o){switch(o.label){case 0:return[4,am(e,t,"hash_lookup",{hash:n})];case 1:return r=$y.apply(void 0,[o.sent(),2]),a=r[0],i=r[1],[2,{found:a,value:i}]}}))}))}function rm(e,t){return{contractId:t,methodName:"register_account",args:{account:e},gas:new(Gy())("100000000000000"),attachedDeposit:new(Gy())("2000000000000000000000")}}function am(e,t,n,r){return Yy(this,void 0,void 0,(function(){var a;return Xy(this,(function(i){switch(i.label){case 0:return[4,e.query({request_type:"call_function",account_id:t,method_name:n,args_base64:r?Wy.from(JSON.stringify(r)).toString("base64"):"",finality:"final"})];case 1:return a=i.sent(),[2,JSON.parse(Wy.from(a.result).toString())]}}))}))}var im=n(62332).Buffer,om=function(e){return e.startsWith("01")},sm=function(e){return im.from((0,gf.stripZeros)(um(e.substr(2)))).toString("ascii")},cm=function(e){return im.from(e).toString("hex")},um=function(e){return e.startsWith("0x")&&(e=e.slice(2)),new Uint8Array(im.from(e,"hex"))},fm=function(e,t){var n=fe(t);if(le(n))return(0,gf.hexZeroPad)((0,gf.hexValue)(e),20);if(n===I||n===Y)return new xf.PublicKey(e).toString();if(be(n)){var r=cm(e);return om(r)?sm(r):n!==z||function(e){return e.startsWith("000000000000000000000000")}(r)?Dy("terra",e.slice(-20)):Dy("terra",e)}if(n===q)return Dy("inj",e.slice(-20));if(n===B)return Ty(e);if(n==te)return Dy("wormhole",e.slice(-20));if(n===X)return Dy("xpla",e.slice(-20));if(n===Z)throw Error("uint8ArrayToNative: Use tryHexToNativeStringNear instead.");if(n===Q)throw Error("uint8ArrayToNative: Osmosis not supported yet.");if(n===K)throw Error("uint8ArrayToNative: Sui not supported yet.");if(n===V)throw Error("uint8ArrayToNative: Aptos not supported yet.");if(n===S)throw Error("uint8ArrayToNative: Chain id unset");if(n===$)throw Error("uint8ArrayToNative: Btc not supported");throw Error("Don't know how to convert address for chain "+n)},dm=function(e,t,n){return function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var r,a,i;return function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},Tm=function(e,t,n,r){return e.generateTransaction(t.address(),n,r).then((function(n){return Fm(e,t,n)}))},Om=function(e,t,n,r){return Im(void 0,void 0,void 0,(function(){var a,i,o,s,c;return Em(this,(function(u){switch(u.label){case 0:return a=Object.assign({gas_unit_price:"100",max_gas_amount:"30000"},r),[4,Promise.all([e.getAccount(t.address()),e.getChainId()])];case 1:return i=Cm.apply(void 0,[u.sent(),2]),o=i[0].sequence_number,s=i[1],c=new Zi.RawTransaction(Zi.AccountAddress.fromHex(t.address()),BigInt(o),n,BigInt(a.max_gas_amount),BigInt(a.gas_unit_price),BigInt(Math.floor(Date.now()/1e3)+10),new Zi.ChainId(s)),[2,Fm(e,t,c)]}}))}))},Pm=function(e,t,n){if(t===V)return Bm(n)?km(n):(console.error("Invalid qualified type"),null);var r=Mm(e,t,n);return r?km(r)+"::coin::T":null},Mm=function(e,t,n){if(t===V)return null;var r=Sm.alloc(1);r.writeUInt8(255);var a=Sm.alloc(2);return a.writeUInt16BE(t),(0,Af.sha3_256)(Sm.concat([_m((0,gf.hexZeroPad)(km(e),32)),a,Sm.from("::","ascii"),_m((0,gf.hexZeroPad)(km(n),32)),r]))},Bm=function(e){return/^(0x)?[0-9a-fA-F]+::\w+::\w+$/.test(e)},Rm=function(e){return(0,Af.sha3_256)(e)};function Nm(e,t,n){return Im(this,void 0,void 0,(function(){var r,a,i,o,s;return Em(this,(function(c){switch(c.label){case 0:return t=km(t),[4,e.getAccountResource(t,t+"::state::State")];case 1:r=c.sent().data,a=r.native_infos.handle,c.label=2;case 2:return c.trys.push([2,4,,5]),[4,e.getTableItem(a,{key_type:t+"::token_hash::TokenHash",value_type:"0x1::type_info::TypeInfo",key:{hash:n}})];case 3:return(i=c.sent())?(o=Sm.from(i.module_name.substring(2),"hex").toString("ascii"),s=Sm.from(i.struct_name.substring(2),"hex").toString("ascii"),[2,i.account_address+"::"+o+"::"+s]):[2,null];case 4:return c.sent(),[2,null];case 5:return[2]}}))}))}var Dm=function(e){return e.split("::")[0]},jm=function(e,t,n){return Im(void 0,void 0,void 0,(function(){var r,a,i;return Em(this,(function(o){switch(o.label){case 0:return(r=fe(t))===V?[2,null]:((a=Sm.alloc(2)).writeUInt16BE(r),i=Sm.concat([a,Sm.from(n)]),[4,As.getResourceAccountAddress(e,i)]);case 1:return[2,o.sent().toString()]}}))}))},Um=function(e){return Im(void 0,void 0,void 0,(function(){var t;return Em(this,(function(n){return t=Sm.concat([Fi.bcsToBytes(Zi.AccountAddress.fromHex(e.token_data_id.creator)),Sm.from((0,Af.sha3_256)(e.token_data_id.collection),"hex")]),[2,new Uint8Array(Sm.from((0,Af.sha3_256)(t),"hex"))]}))}))},Lm=function(e){return Im(void 0,void 0,void 0,(function(){var t,n;return Em(this,(function(r){return(t=Sm.alloc(8)).writeBigUInt64BE(BigInt(e.property_version)),n=Sm.concat([Fi.bcsToBytes(Zi.AccountAddress.fromHex(e.token_data_id.creator)),Sm.from((0,Af.sha3_256)(e.token_data_id.collection),"hex"),Sm.from((0,Af.sha3_256)(e.token_data_id.name),"hex"),t]),[2,new Uint8Array(Sm.from((0,Af.sha3_256)(n),"hex"))]}))}))},Zm=function(e,t,n){return Im(void 0,void 0,void 0,(function(){var r,a,i,o,s;return Em(this,(function(c){switch(c.label){case 0:return[4,e.getAccountResource(t,t+"::state::State")];case 1:return r=c.sent().data,a=r.native_infos.handle,[4,e.getTableItem(a,{key_type:t+"::token_hash::TokenHash",value_type:"0x3::token::TokenId",key:{hash:Pi.fromUint8Array(n).hex()}})];case 2:return i=c.sent(),o=i.token_data_id,s=i.property_version,[2,{token_data_id:o,property_version:s}]}}))}))},Fm=function(e,t,n){return Im(void 0,void 0,void 0,(function(){return Em(this,(function(r){switch(r.label){case 0:return[4,e.simulateTransaction(t,n).then((function(e){return e.forEach((function(e){if(!e.success)throw new Error("Transaction failed: "+e.vm_status+"\n"+JSON.stringify(e,null,2))}))}))];case 1:return r.sent(),[2,e.signTransaction(t,n).then((function(t){return e.submitTransaction(t)})).then((function(t){return e.waitForTransactionWithResult(t.hash)}))]}}))}))},Hm=n(62332).Buffer;function zm(){var e=1e5*Math.random(),t=Hm.alloc(4);return t.writeUInt32LE(e,0),t}var qm=n(62332).Buffer,Qm=function(e){var t=e.data;return JSON.parse(qm.from("string"==typeof t?t:qm.from(t).toString(),"base64").toString())},Km=function(e,t,n){return function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var r,a,i,o,s,c,u;return function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Hv(e,t){var n=e.logs.filter((function(e){return e.address===t}))[0];return Zv.createInterface().parseLog(n).args.sequence.toString()}function zv(e,t){return e.logs.filter((function(e){return e.address===t})).map((function(e){return Zv.createInterface().parseLog(e).args.sequence.toString()}))}function qv(e){var t="";return JSON.parse(e.raw_log).map((function(e){e.events.map((function(e){e.attributes.map((function(e){"message.sequence"===e.key&&(t=e.value)}))}))})),t.toString()}function Qv(e){var t="";return JSON.parse(e.raw_log).map((function(e){e.events.map((function(e){e.attributes.map((function(e){"message.sequence"===e.key&&(t=e.value)}))}))})),t.toString()}function Kv(e){var t=[];return JSON.parse(e.raw_log).map((function(e){e.events.map((function(e){e.attributes.map((function(e){"message.sequence"===e.key&&t.push(e.value.toString())}))}))})),t}function Vv(e){var t="";return JSON.parse(e.rawLog).map((function(e){e.events.map((function(e){e.attributes.map((function(e){"message.sequence"===e.key&&(t=e.value)}))}))})),t.toString()}var Jv="Program log: Sequence: ";function Gv(e){var t,n,r,a,i=null===(a=null===(r=null===(n=null===(t=e.meta)||void 0===t?void 0:t.logMessages)||void 0===n?void 0:n.filter((function(e){return e.startsWith(Jv)})))||void 0===r?void 0:r[0])||void 0===a?void 0:a.replace(Jv,"");if(!i)throw new Error("sequence not found");return i.toString()}function Wv(e){var t,n;return null===(n=null===(t=e.meta)||void 0===t?void 0:t.logMessages)||void 0===n?void 0:n.filter((function(e){return e.startsWith(Jv)})).map((function(e){return e.replace(Jv,"")}))}function Yv(e){var t="";return e["inner-txns"]&&e["inner-txns"].forEach((function(e){e.logs&&(t=Eh.O$.from(e.logs[0].slice(0,8)).toString())})),t}var Xv="EVENT_JSON:";function $v(e){var t,n,r,a;try{for(var i=Fv(e.receipts_outcome),o=i.next();!o.done;o=i.next()){var s=o.value;try{for(var c=(r=void 0,Fv(s.outcome.logs)),u=c.next();!u.done;u=c.next()){var f=u.value;if(f.startsWith(Xv)){var d=JSON.parse(f.slice(Xv.length));if("wormhole"===d.standard&&"publish"===d.event)return d.seq.toString()}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return null}function eg(e,t){if(t.success){var n=t.events.find((function(t){return t.type===e+"::state::WormholeMessage"}));return(null==n?void 0:n.data.sequence)||null}return null}var tg=n(65657),ng=n(85340),rg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ag=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldContract",type:"address"},{indexed:!0,internalType:"address",name:"newContract",type:"address"}],name:"ContractUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{inputs:[],name:"WETH",outputs:[{internalType:"contract IWETH",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"chainId_",type:"uint16"}],name:"bridgeContracts",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"chainId",outputs:[{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"evmChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"finality",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"hash",type:"bytes32"}],name:"governanceActionIsConsumed",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"governanceChainId",outputs:[{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"governanceContract",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"isFork",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"impl",type:"address"}],name:"isInitialized",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"hash",type:"bytes32"}],name:"isTransferCompleted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"isWrappedAsset",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"outstandingBridged",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"encodedRecoverChainId",type:"bytes"}],name:"parseRecoverChainId",outputs:[{components:[{internalType:"bytes32",name:"module",type:"bytes32"},{internalType:"uint8",name:"action",type:"uint8"},{internalType:"uint256",name:"evmChainId",type:"uint256"},{internalType:"uint16",name:"newChainId",type:"uint16"}],internalType:"struct BridgeStructs.RecoverChainId",name:"rci",type:"tuple"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"parseRegisterChain",outputs:[{components:[{internalType:"bytes32",name:"module",type:"bytes32"},{internalType:"uint8",name:"action",type:"uint8"},{internalType:"uint16",name:"chainId",type:"uint16"},{internalType:"uint16",name:"emitterChainID",type:"uint16"},{internalType:"bytes32",name:"emitterAddress",type:"bytes32"}],internalType:"struct BridgeStructs.RegisterChain",name:"chain",type:"tuple"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"parseUpgrade",outputs:[{components:[{internalType:"bytes32",name:"module",type:"bytes32"},{internalType:"uint8",name:"action",type:"uint8"},{internalType:"uint16",name:"chainId",type:"uint16"},{internalType:"bytes32",name:"newContract",type:"bytes32"}],internalType:"struct BridgeStructs.UpgradeContract",name:"chain",type:"tuple"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVM",type:"bytes"}],name:"registerChain",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVM",type:"bytes"}],name:"submitRecoverChainId",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"tokenImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVM",type:"bytes"}],name:"upgrade",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"wormhole",outputs:[{internalType:"contract IWormhole",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"tokenChainId",type:"uint16"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"}],name:"wrappedAsset",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"},{inputs:[{internalType:"address",name:"tokenAddress",type:"address"},{internalType:"uint32",name:"nonce",type:"uint32"}],name:"attestToken",outputs:[{internalType:"uint64",name:"sequence",type:"uint64"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint16",name:"recipientChain",type:"uint16"},{internalType:"bytes32",name:"recipient",type:"bytes32"},{internalType:"uint256",name:"arbiterFee",type:"uint256"},{internalType:"uint32",name:"nonce",type:"uint32"}],name:"wrapAndTransferETH",outputs:[{internalType:"uint64",name:"sequence",type:"uint64"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint16",name:"recipientChain",type:"uint16"},{internalType:"bytes32",name:"recipient",type:"bytes32"},{internalType:"uint32",name:"nonce",type:"uint32"},{internalType:"bytes",name:"payload",type:"bytes"}],name:"wrapAndTransferETHWithPayload",outputs:[{internalType:"uint64",name:"sequence",type:"uint64"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint16",name:"recipientChain",type:"uint16"},{internalType:"bytes32",name:"recipient",type:"bytes32"},{internalType:"uint256",name:"arbiterFee",type:"uint256"},{internalType:"uint32",name:"nonce",type:"uint32"}],name:"transferTokens",outputs:[{internalType:"uint64",name:"sequence",type:"uint64"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint16",name:"recipientChain",type:"uint16"},{internalType:"bytes32",name:"recipient",type:"bytes32"},{internalType:"uint32",name:"nonce",type:"uint32"},{internalType:"bytes",name:"payload",type:"bytes"}],name:"transferTokensWithPayload",outputs:[{internalType:"uint64",name:"sequence",type:"uint64"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVm",type:"bytes"}],name:"updateWrapped",outputs:[{internalType:"address",name:"token",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVm",type:"bytes"}],name:"createWrapped",outputs:[{internalType:"address",name:"token",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVm",type:"bytes"}],name:"completeTransferWithPayload",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVm",type:"bytes"}],name:"completeTransferAndUnwrapETHWithPayload",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVm",type:"bytes"}],name:"completeTransfer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVm",type:"bytes"}],name:"completeTransferAndUnwrapETH",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint8",name:"payloadID",type:"uint8"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"},{internalType:"uint16",name:"tokenChain",type:"uint16"},{internalType:"uint8",name:"decimals",type:"uint8"},{internalType:"bytes32",name:"symbol",type:"bytes32"},{internalType:"bytes32",name:"name",type:"bytes32"}],internalType:"struct BridgeStructs.AssetMeta",name:"meta",type:"tuple"}],name:"encodeAssetMeta",outputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"uint8",name:"payloadID",type:"uint8"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"},{internalType:"uint16",name:"tokenChain",type:"uint16"},{internalType:"bytes32",name:"to",type:"bytes32"},{internalType:"uint16",name:"toChain",type:"uint16"},{internalType:"uint256",name:"fee",type:"uint256"}],internalType:"struct BridgeStructs.Transfer",name:"transfer",type:"tuple"}],name:"encodeTransfer",outputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"uint8",name:"payloadID",type:"uint8"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"},{internalType:"uint16",name:"tokenChain",type:"uint16"},{internalType:"bytes32",name:"to",type:"bytes32"},{internalType:"uint16",name:"toChain",type:"uint16"},{internalType:"bytes32",name:"fromAddress",type:"bytes32"},{internalType:"bytes",name:"payload",type:"bytes"}],internalType:"struct BridgeStructs.TransferWithPayload",name:"transfer",type:"tuple"}],name:"encodeTransferWithPayload",outputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"parsePayloadID",outputs:[{internalType:"uint8",name:"payloadID",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"parseAssetMeta",outputs:[{components:[{internalType:"uint8",name:"payloadID",type:"uint8"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"},{internalType:"uint16",name:"tokenChain",type:"uint16"},{internalType:"uint8",name:"decimals",type:"uint8"},{internalType:"bytes32",name:"symbol",type:"bytes32"},{internalType:"bytes32",name:"name",type:"bytes32"}],internalType:"struct BridgeStructs.AssetMeta",name:"meta",type:"tuple"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"parseTransfer",outputs:[{components:[{internalType:"uint8",name:"payloadID",type:"uint8"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"},{internalType:"uint16",name:"tokenChain",type:"uint16"},{internalType:"bytes32",name:"to",type:"bytes32"},{internalType:"uint16",name:"toChain",type:"uint16"},{internalType:"uint256",name:"fee",type:"uint256"}],internalType:"struct BridgeStructs.Transfer",name:"transfer",type:"tuple"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"parseTransferWithPayload",outputs:[{components:[{internalType:"uint8",name:"payloadID",type:"uint8"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"},{internalType:"uint16",name:"tokenChain",type:"uint16"},{internalType:"bytes32",name:"to",type:"bytes32"},{internalType:"uint16",name:"toChain",type:"uint16"},{internalType:"bytes32",name:"fromAddress",type:"bytes32"},{internalType:"bytes",name:"payload",type:"bytes"}],internalType:"struct BridgeStructs.TransferWithPayload",name:"transfer",type:"tuple"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"_parseTransferCommon",outputs:[{components:[{internalType:"uint8",name:"payloadID",type:"uint8"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"},{internalType:"uint16",name:"tokenChain",type:"uint16"},{internalType:"bytes32",name:"to",type:"bytes32"},{internalType:"uint16",name:"toChain",type:"uint16"},{internalType:"uint256",name:"fee",type:"uint256"}],internalType:"struct BridgeStructs.Transfer",name:"transfer",type:"tuple"}],stateMutability:"pure",type:"function"}],ig="0x608060405234801561001057600080fd5b506001600d55615b33806100256000396000f3fe6080604052600436106200027b5760003560e01c8063ad5c46481162000153578063cb4cfea811620000c5578063e89bc4011162000084578063e89bc401146200094e578063ea63738d1462000973578063f768441f14620009a7578063fbe3c2cd14620009cc578063fbeeacd914620009ed578063ff200cde1462000a4d57600080fd5b8063cb4cfea8146200084f578063d56e2e2414620008af578063d60b347f14620008d4578063e039f2241462000911578063e8059810146200092957600080fd5b8063bee9cdfc1162000112578063bee9cdfc14620007c0578063c3f511c114620007d7578063c48fa11514620007fc578063c5a5ebda1462000813578063c6878519146200082a57600080fd5b8063ad5c464814620006f5578063ad66a5f11462000715578063b046223b146200074a578063b172b222146200076f578063b96c7e4d146200078657600080fd5b80632c3c02a411620001ed57806384acd1bb11620001ac57806384acd1bb146200063b5780639981509f146200065b5780639a8a05921462000672578063a5799f93146200069c578063aa4efa5b14620006c157600080fd5b80632c3c02a4146200057f5780632f3a3d5d14620005b35780635f85426614620005d357806364d42b1714620005f8578063739fc8d1146200061957600080fd5b80631a2be4da116200023a5780631a2be4da14620004115780631c8475e4146200045f5780631ff1e28614620004935780632539464514620004d15780632b51137514620004f657600080fd5b806301f53255146200028857806307dfd8fb14620003065780630f50900814620003825780630f5287b014620003ba578063178149e714620003ea57600080fd5b366200028357005b600080fd5b3480156200029557600080fd5b50620002ad620002a7366004620045a7565b62000a72565b604051620002fd9190600060a0820190508251825260ff6020840151166020830152604083015161ffff808216604085015280606086015116606085015250506080830151608083015292915050565b60405180910390f35b3480156200031357600080fd5b506200032b62000325366004620045a7565b62000bee565b604051620002fd9190600060c08201905060ff83511682526020830151602083015261ffff604084015116604083015260ff60608401511660608301526080830151608083015260a083015160a083015292915050565b3480156200038f57600080fd5b50620003a7620003a1366004620045a7565b62000d7d565b60405160ff9091168152602001620002fd565b620003d1620003cb36600462004426565b62000d91565b6040516001600160401b039091168152602001620002fd565b348015620003f757600080fd5b506200040f62000409366004620045a7565b62000e35565b005b3480156200041e57600080fd5b506200044e6200043036600462004409565b6001600160a01b031660009081526009602052604090205460ff1690565b6040519015158152602001620002fd565b3480156200046c57600080fd5b50620004846200047e366004620045a7565b62000f51565b604051620002fd919062004c0b565b348015620004a057600080fd5b50620004b8620004b2366004620049d1565b62000f60565b6040516001600160a01b039091168152602001620002fd565b348015620004de57600080fd5b506200040f620004f0366004620045a7565b62000f8c565b3480156200050357600080fd5b506200051b62000515366004620045a7565b6200109c565b604051620002fd9190600060e08201905060ff83511682526020830151602083015260408301516040830152606083015161ffff8082166060850152608085015160808501528060a08601511660a0850152505060c083015160c083015292915050565b3480156200058c57600080fd5b506200044e6200059e36600462004575565b60009081526005602052604090205460ff1690565b348015620005c057600080fd5b506001546001600160a01b0316620004b8565b348015620005e057600080fd5b5062000484620005f23660046200477f565b6200120d565b3480156200060557600080fd5b50600c545b604051908152602001620002fd565b3480156200062657600080fd5b50600254640100000000900460ff16620003a7565b3480156200064857600080fd5b506000546001600160a01b0316620004b8565b620003d16200066c366004620049ff565b620012a2565b3480156200067f57600080fd5b5060025461ffff165b60405161ffff9091168152602001620002fd565b348015620006a957600080fd5b506200040f620006bb366004620045a7565b620012e2565b348015620006ce57600080fd5b506200044e620006e036600462004575565b60009081526006602052604090205460ff1690565b3480156200070257600080fd5b506004546001600160a01b0316620004b8565b3480156200072257600080fd5b506200060a6200073436600462004993565b61ffff166000908152600b602052604090205490565b3480156200075757600080fd5b50620004846200076936600462004613565b6200144e565b3480156200077c57600080fd5b506003546200060a565b3480156200079357600080fd5b506200060a620007a536600462004409565b6001600160a01b03166000908152600a602052604090205490565b620003d1620007d136600462004a4d565b620014c7565b348015620007e457600080fd5b5062000484620007f6366004620045a7565b620014fa565b620003d16200080d3660046200451d565b62001509565b620003d16200082436600462004491565b6200182e565b3480156200083757600080fd5b506200040f62000849366004620045a7565b620018bd565b3480156200085c57600080fd5b50620008746200086e366004620045a7565b620018ce565b604051620002fd91908151815260208083015160ff16908201526040808301519082015260609182015161ffff169181019190915260800190565b348015620008bc57600080fd5b5062000484620008ce366004620046ad565b620019cd565b348015620008e157600080fd5b506200044e620008f336600462004409565b6001600160a01b031660009081526007602052604090205460ff1690565b3480156200091e57600080fd5b506200044e62001a10565b3480156200093657600080fd5b50620004b862000948366004620045a7565b62001a24565b3480156200095b57600080fd5b506200051b6200096d366004620045a7565b62001b39565b3480156200098057600080fd5b506200099862000992366004620045a7565b62001c45565b604051620002fd919062004d6f565b348015620009b457600080fd5b50620004b8620009c6366004620045a7565b62001dc2565b348015620009d957600080fd5b5060025462010000900461ffff1662000688565b348015620009fa57600080fd5b5062000a1262000a0c366004620045a7565b62001ed7565b604051620002fd91908151815260208083015160ff169082015260408083015161ffff16908201526060918201519181019190915260800190565b34801562000a5a57600080fd5b506200040f62000a6c366004620045a7565b62001fd6565b6040805160a08101825260008082526020820181905291810182905260608101829052608081018290529062000aa9838262001fe3565b825262000ab860208262004ef2565b82519091506a546f6b656e4272696467651462000af25760405162461bcd60e51b815260040162000ae99062004d23565b60405180910390fd5b62000afe838262002045565b60ff16602083015262000b1360018262004ef2565b9050816020015160ff1660011462000b3f5760405162461bcd60e51b815260040162000ae99062004d49565b62000b4b8382620020a5565b61ffff16604083015262000b6160028262004ef2565b905062000b6f8382620020a5565b61ffff16606083015262000b8560028262004ef2565b905062000b93838262001fe3565b608083015262000ba560208262004ef2565b90508083511462000be85760405162461bcd60e51b815260206004820152600c60248201526b0eee4dedcce40d8cadccee8d60a31b604482015260640162000ae9565b50919050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081018290529062000c2c838262002045565b60ff16825262000c3e60018262004ef2565b9050816000015160ff1660021462000c8d5760405162461bcd60e51b8152602060048201526011602482015270696e76616c69642041737365744d65746160781b604482015260640162000ae9565b62000c99838262001fe3565b60208084019190915262000cae908262004ef2565b905062000cbc8382620020a5565b61ffff16604083015262000cd260028262004ef2565b905062000ce0838262002045565b60ff16606083015262000cf560018262004ef2565b905062000d03838262001fe3565b608083015262000d1560208262004ef2565b905062000d23838262001fe3565b60a083015262000d3560208262004ef2565b90508083511462000be85760405162461bcd60e51b8152602060048201526011602482015270696e76616c69642041737365744d65746160781b604482015260640162000ae9565b600062000d8b828262002045565b92915050565b60006002600d54141562000de85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640162000ae9565b6002600d55600062000dfc88888662002106565b905062000e248160000151826020015183604001518989866060015187608001518a620025b6565b6001600d5598975050505050505050565b62000e3f62001a10565b62000e7a5760405162461bcd60e51b815260206004820152600a6024820152696e6f74206120666f726b60b01b604482015260640162000ae9565b600080600062000e8a84620026ea565b92509250925081819062000eb35760405162461bcd60e51b815260040162000ae9919062004c0b565b5062000ec483610140015162002919565b600062000ed58460e00151620018ce565b90504681604001511462000f205760405162461bcd60e51b815260206004820152601160248201527034b73b30b634b21022ab269021b430b4b760791b604482015260640162000ae9565b62000f2f816040015162002934565b60608101516002805461ffff191661ffff9092169190911790555b5050505050565b606062000d8b8260016200297f565b61ffff91909116600090815260086020908152604080832093835292905220546001600160a01b031690565b62000f9662001a10565b1562000fd45760405162461bcd60e51b815260206004820152600c60248201526b696e76616c696420666f726b60a01b604482015260640162000ae9565b600080600062000fe484620026ea565b9250925092508181906200100d5760405162461bcd60e51b815260040162000ae9919062004c0b565b506200101e83610140015162002919565b60006200102f8460e0015162001ed7565b90506200103f60025461ffff1690565b61ffff16816040015161ffff16146200108c5760405162461bcd60e51b815260206004820152600e60248201526d1ddc9bdb99c818da185a5b881a5960921b604482015260640162000ae9565b606081015162000f4a90620030f2565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905290620010e1838262002045565b60ff168252620010f360018262004ef2565b9050816000015160ff166001146200111f5760405162461bcd60e51b815260040162000ae99062004cf9565b6200112b838262003229565b60208084019190915262001140908262004ef2565b90506200114e838262001fe3565b60408301526200116060208262004ef2565b90506200116e8382620020a5565b61ffff1660608301526200118460028262004ef2565b905062001192838262001fe3565b6080830152620011a460208262004ef2565b9050620011b28382620020a5565b61ffff1660a0830152620011c860028262004ef2565b9050620011d6838262003229565b60c0830152620011e860208262004ef2565b90508083511462000be85760405162461bcd60e51b815260040162000ae99062004cf9565b8051602080830151604080850151606080870151608088015160a089015160c08a0151955160f89990991b6001600160f81b031916978901979097526021880195909552604187019290925260f091821b6001600160f01b03199081166061880152606387019490945293901b909116608384015260858301529060a5015b6040516020818303038152906040529050919050565b600080620012b08462003282565b9050620012d88160000151826020015183604001518989866060015187608001518a620025b6565b9695505050505050565b6000806000620012f284620026ea565b9250925092508181906200131b5760405162461bcd60e51b815260040162000ae9919062004c0b565b506200132c83610140015162002919565b60006200133d8460e0015162000a72565b90506200134d60025461ffff1690565b61ffff16816040015161ffff161480156200136f57506200136d62001a10565b155b80620013815750604081015161ffff16155b620013c25760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a590818da185a5b881a5960821b604482015260640162000ae9565b606081015161ffff166000908152600b602052604081205414620014295760405162461bcd60e51b815260206004820152601860248201527f636861696e20616c726561647920726567697374657265640000000000000000604482015260640162000ae9565b62000f4a8160600151826080015161ffff9091166000908152600b6020526040902055565b8051602080830151604080850151606080870151608088015160a0890151945160f898891b6001600160f81b031990811698820198909852602181019690965260f09390931b6001600160f01b031916604186015290951b9093166043830152604482019290925260648101919091526084016200128c565b600080620014d6600062003282565b9050620012d8816000015182602001518360400151898986608001518a8a6200355c565b606062000d8b8260006200297f565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b179052905160009182916001600160a01b038616916200154e9162004b28565b600060405180830381855afa9150503d80600081146200158b576040519150601f19603f3d011682016040523d82523d6000602084013e62001590565b606091505b5060408051600481526024810182526020810180516001600160e01b03166395d89b4160e01b1790529051919350600092506001600160a01b03871691620015d9919062004b28565b600060405180830381855afa9150503d806000811462001616576040519150601f19603f3d011682016040523d82523d6000602084013e6200161b565b606091505b5060408051600481526024810182526020810180516001600160e01b03166306fdde0360e01b1790529051919350600092506001600160a01b0388169162001664919062004b28565b600060405180830381855afa9150503d8060008114620016a1576040519150601f19603f3d011682016040523d82523d6000602084013e620016a6565b606091505b50915050600083806020019051810190620016c2919062004adb565b9050600083806020019051810190620016dc9190620045dd565b9050600083806020019051810190620016f69190620045dd565b9050600080602084015191506020830151905060006040518060c00160405280600260ff1681526020018d6001600160a01b031660001b81526020016200174060025461ffff1690565b61ffff1681526020018760ff16815260200184815260200183815250905060006200176b826200144e565b9050620017806000546001600160a01b031690565b6001600160a01b031663b19a437e348e84620017a760025460ff6401000000009091041690565b6040518563ffffffff1660e01b8152600401620017c79392919062004dea565b6020604051808303818588803b158015620017e157600080fd5b505af1158015620017f6573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906200181d919062004abe565b9d9c50505050505050505050505050565b60006002600d541415620018855760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640162000ae9565b6002600d5560006200189988888362002106565b905062000e24816000015182602001518360400151898986608001518a8a6200355c565b620018ca8160006200297f565b5050565b604080516080810182526000808252602082018190529181018290526060810182905290620018fe838262001fe3565b82526200190d60208262004ef2565b82519091506a546f6b656e427269646765146200193e5760405162461bcd60e51b815260040162000ae99062004d23565b6200194a838262002045565b60ff1660208301526200195f60018262004ef2565b9050816020015160ff166003146200198b5760405162461bcd60e51b815260040162000ae99062004d49565b62001997838262003229565b6040830152620019a960208262004ef2565b9050620019b78382620020a5565b61ffff16606083015262000ba560028262004ef2565b6060816000015182602001518360400151846060015185608001518660a001518760c001518860e001516040516020016200128c98979695949392919062004b79565b60004662001a1d600c5490565b1415905090565b60008060008062001a3d6000546001600160a01b031690565b6001600160a01b031663c0fd8bde866040518263ffffffff1660e01b815260040162001a6a919062004c0b565b60006040518083038186803b15801562001a8357600080fd5b505afa15801562001a98573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262001ac2919081019062004824565b92509250925081819062001aeb5760405162461bcd60e51b815260040162000ae9919062004c0b565b5062001af783620035cf565b62001b165760405162461bcd60e51b815260040162000ae99062004cd0565b600062001b278460e0015162000bee565b9050620012d8818560a001516200363c565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081018290529062001b7d8362000d7d565b90508060ff166001141562001b9f5762001b97836200109c565b915062000be8565b8060ff166003141562001c0757600062001bb98462001c45565b60038452602080820151908501526040808201519085015260608082015161ffff908116918601919091526080808301519086015260a091820151169084015250600060c083015262000be8565b60405162461bcd60e51b8152602060048201526012602482015271125b9d985b1a59081c185e5b1bd859081a5960721b604482015260640162000ae9565b604080516101008101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e08201529062001c91838262002045565b60ff16825262001ca360018262004ef2565b9050816000015160ff1660031462001ccf5760405162461bcd60e51b815260040162000ae99062004cf9565b62001cdb838262003229565b60208084019190915262001cf0908262004ef2565b905062001cfe838262001fe3565b604083015262001d1060208262004ef2565b905062001d1e8382620020a5565b61ffff16606083015262001d3460028262004ef2565b905062001d42838262001fe3565b608083015262001d5460208262004ef2565b905062001d628382620020a5565b61ffff1660a083015262001d7860028262004ef2565b905062001d86838262001fe3565b60c083015262001d9860208262004ef2565b905062001db78182855162001dae919062005058565b859190620038ed565b60e083015250919050565b60008060008062001ddb6000546001600160a01b031690565b6001600160a01b031663c0fd8bde866040518263ffffffff1660e01b815260040162001e08919062004c0b565b60006040518083038186803b15801562001e2157600080fd5b505afa15801562001e36573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262001e60919081019062004824565b92509250925081819062001e895760405162461bcd60e51b815260040162000ae9919062004c0b565b5062001e9583620035cf565b62001eb45760405162461bcd60e51b815260040162000ae99062004cd0565b600062001ec58460e0015162000bee565b9050620012d8818560a0015162003a08565b60408051608081018252600080825260208201819052918101829052606081018290529062001f07838262001fe3565b825262001f1660208262004ef2565b82519091506a546f6b656e4272696467651462001f475760405162461bcd60e51b815260040162000ae99062004d23565b62001f53838262002045565b60ff16602083015262001f6860018262004ef2565b9050816020015160ff1660021462001f945760405162461bcd60e51b815260040162000ae99062004d49565b62001fa08382620020a5565b61ffff16604083015262001fb660028262004ef2565b905062001fc4838262001fe3565b606083015262000ba560208262004ef2565b620018ca8160016200297f565b600062001ff282602062004ef2565b835110156200203c5760405162461bcd60e51b8152602060048201526015602482015274746f427974657333325f6f75744f66426f756e647360581b604482015260640162000ae9565b50016020015190565b60006200205482600162004ef2565b835110156200209c5760405162461bcd60e51b8152602060048201526013602482015272746f55696e74385f6f75744f66426f756e647360681b604482015260640162000ae9565b50016001015190565b6000620020b482600262004ef2565b83511015620020fd5760405162461bcd60e51b8152602060048201526014602482015273746f55696e7431365f6f75744f66426f756e647360601b604482015260640162000ae9565b50016002015190565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091526001600160a01b038416600090815260096020526040812054819060ff16156200224957856001600160a01b0316639a8a05926040518163ffffffff1660e01b815260040160206040518083038186803b1580156200218f57600080fd5b505afa158015620021a4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620021ca9190620049b2565b9150856001600160a01b0316633d6c043b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200220657600080fd5b505afa1580156200221b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200224191906200458e565b90506200225d565b505060025461ffff166001600160a01b0385165b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b17905290516000916001600160a01b03891691620022a1919062004b28565b600060405180830381855afa9150503d8060008114620022de576040519150601f19603f3d011682016040523d82523d6000602084013e620022e3565b606091505b50915050600081806020019051810190620022ff919062004adb565b90506200231862002311888362003b03565b8262003b42565b96506200232860025461ffff1690565b61ffff168461ffff161415620024c857604080513060248083019190915282518083039091018152604490910182526020810180516001600160e01b03166370a0823160e01b17905290516000916001600160a01b038b16916200238d919062004b28565b600060405180830381855afa9150503d8060008114620023ca576040519150601f19603f3d011682016040523d82523d6000602084013e620023cf565b606091505b50915050600081806020019051810190620023eb91906200458e565b9050620023fb8a33308c62003b77565b604080513060248083019190915282518083039091018152604490910182526020810180516001600160e01b03166370a0823160e01b17905290516000916001600160a01b038d169162002450919062004b28565b600060405180830381855afa9150503d80600081146200248d576040519150601f19603f3d011682016040523d82523d6000602084013e62002492565b606091505b50915050600081806020019051810190620024ae91906200458e565b9050620024bc838262005058565b9a505050505062002539565b620024d68833308a62003b77565b604051632770a7eb60e21b8152306004820152602481018890526001600160a01b03891690639dc29fac90604401600060405180830381600087803b1580156200251f57600080fd5b505af115801562002534573d6000803e3d6000fd5b505050505b600062002547888362003b03565b9050600062002557888462003b03565b90506200256760025461ffff1690565b61ffff168661ffff1614156200258357620025838a8362003bea565b6040805160a08101825261ffff909716875260208701959095529385015250506060820152346080820152949350505050565b600086841115620025ff5760405162461bcd60e51b815260206004820152601260248201527119995948195e18d959591cc8185b5bdd5b9d60721b604482015260640162000ae9565b6040805160e081018252600181526020810189905290810189905261ffff8a8116606083015260808201879052871660a082015260c081018590526000546001600160a01b031663b19a437e858562002658856200120d565b600254640100000000900460ff166040518563ffffffff1660e01b8152600401620026869392919062004dea565b6020604051808303818588803b158015620026a057600080fd5b505af1158015620026b5573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190620026dc919062004abe565b9a9950505050505050505050565b604080516101608101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820181905261010082018390526101208201526101408101919091526000606060008060006200275e6000546001600160a01b031690565b6001600160a01b031663c0fd8bde886040518263ffffffff1660e01b81526004016200278b919062004c0b565b60006040518083038186803b158015620027a457600080fd5b505afa158015620027b9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620027e3919081019062004824565b92509250925081620027fc579194509250905062002912565b60025462010000900461ffff1661ffff16836060015161ffff16146200285a5750506040805180820190915260168152753bb937b7339033b7bb32b93730b731b29031b430b4b760511b602082015290935060009250905062002912565b600354836080015114620028ad57505060408051808201909152601981527f77726f6e6720676f7665726e616e636520636f6e747261637400000000000000602082015290935060009250905062002912565b61014083015160009081526005602052604090205460ff1615620028f75782600060405180606001604052806022815260200162005adc6022913995509550955050505062002912565b50506040805160208101909152600081529093506001925090505b9193909250565b6000908152600560205260409020805460ff19166001179055565b4681146200297a5760405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a5908195d9b50da185a5b925960721b604482015260640162000ae9565b600c55565b60606000806000620029996000546001600160a01b031690565b6001600160a01b031663c0fd8bde876040518263ffffffff1660e01b8152600401620029c6919062004c0b565b60006040518083038186803b158015620029df57600080fd5b505afa158015620029f4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262002a1e919081019062004824565b92509250925081819062002a475760405162461bcd60e51b815260040162000ae9919062004c0b565b5062002a5383620035cf565b62002a725760405162461bcd60e51b815260040162000ae99062004cd0565b600062002a838460e0015162001b39565b9050600062002a96826080015162003cb7565b9050816000015160ff166003141562002af457336001600160a01b0382161462002af45760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21039b2b73232b960911b604482015260640162000ae9565b61014085015160009081526006602052604090205460ff161562002b5b5760405162461bcd60e51b815260206004820152601a60248201527f7472616e7366657220616c726561647920636f6d706c65746564000000000000604482015260640162000ae9565b62002b808561014001516000908152600660205260409020805460ff19166001179055565b60025461ffff1661ffff168260a0015161ffff161462002bda5760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b2103a30b933b2ba1031b430b4b760611b604482015260640162000ae9565b600062002bea60025461ffff1690565b61ffff16836060015161ffff16141562002c255762002c0d836040015162003cb7565b905062002c1f81846020015162003d0d565b62002ca6565b600062002c3b8460600151856040015162000f60565b90506001600160a01b03811662002ca35760405162461bcd60e51b815260206004820152602560248201527f6e6f207772617070657220666f72207468697320746f6b656e2063726561746560448201526419081e595d60da1b606482015260840162000ae9565b90505b87158062002cc157506004546001600160a01b038281169116145b62002d1b5760405162461bcd60e51b815260206004820152602360248201527f696e76616c696420746f6b656e2c2063616e206f6e6c7920756e77726170205760448201526208aa8960eb1b606482015260840162000ae9565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b17905290516000916001600160a01b0384169162002d5f919062004b28565b600060405180830381855afa9150503d806000811462002d9c576040519150601f19603f3d011682016040523d82523d6000602084013e62002da1565b606091505b5091505060008180602001905181019062002dbd919062004adb565b9050600062002dd186602001518362003b42565b9050600062002de58760c001518462003b42565b905060008111801562002e0157506001600160a01b0386163314155b1562002f93578181111562002e645760405162461bcd60e51b815260206004820152602260248201527f66656520686967686572207468616e207472616e7366657272656420616d6f756044820152611b9d60f21b606482015260840162000ae9565b8b1562002efe5760048054604051632e1a7d4d60e01b81529182018390526001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801562002eb057600080fd5b505af115801562002ec5573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f1935050505015801562002ef7573d6000803e3d6000fd5b5062002f97565b60025461ffff1661ffff16876060015161ffff161462002f80576040516340c10f1960e01b8152336004820152602481018290526001600160a01b038616906340c10f1990604401600060405180830381600087803b15801562002f6157600080fd5b505af115801562002f76573d6000803e3d6000fd5b5050505062002f97565b62002f8d85338362003d3f565b62002f97565b5060005b600062002fa5828462005058565b90508c156200304a5760048054604051632e1a7d4d60e01b81529182018390526001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801562002ff357600080fd5b505af115801562003008573d6000803e3d6000fd5b50506040516001600160a01b038a16925083156108fc02915083906000818181858888f1935050505015801562003043573d6000803e3d6000fd5b50620030db565b60025461ffff1661ffff16886060015161ffff1614620030ce576040516340c10f1960e01b81526001600160a01b038881166004830152602482018390528716906340c10f1990604401600060405180830381600087803b158015620030af57600080fd5b505af1158015620030c4573d6000803e3d6000fd5b50505050620030db565b620030db86888362003d3f565b50505060e0909701519a9950505050505050505050565b6000620031267f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b9050620031338262003d71565b60408051600481526024810182526020810180516001600160e01b031663204a7f0760e21b179052905160009182916001600160a01b03861691620031789162004b28565b600060405180830381855af49150503d8060008114620031b5576040519150601f19603f3d011682016040523d82523d6000602084013e620031ba565b606091505b5091509150818190620031e25760405162461bcd60e51b815260040162000ae9919062004c0b565b50836001600160a01b0316836001600160a01b03167f2e4cc16c100f0b55e2df82ab0b1a7e294aa9cbd01b48fbaf622683fbc0507a4960405160405180910390a350505050565b60006200323882602062004ef2565b835110156200203c5760405162461bcd60e51b8152602060048201526015602482015274746f55696e743235365f6f75744f66426f756e647360581b604482015260640162000ae9565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600080546001600160a01b03166001600160a01b0316631a90a2196040518163ffffffff1660e01b815260040160206040518083038186803b158015620032f357600080fd5b505afa15801562003308573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200332e91906200458e565b90503481106200338c5760405162461bcd60e51b815260206004820152602260248201527f76616c756520697320736d616c6c6572207468616e20776f726d686f6c652066604482015261656560f01b606482015260840162000ae9565b60006200339a823462005058565b905080841115620034035760405162461bcd60e51b815260206004820152602c60248201527f66656520697320626967676572207468616e20616d6f756e74206d696e75732060448201526b776f726d686f6c652066656560a01b606482015260840162000ae9565b60006200341282601262003b03565b905060006200342386601262003b03565b905060006200343483601262003b42565b62003440908562005058565b905080156200347957604051339082156108fc029083906000818181858888f1935050505015801562003477573d6000803e3d6000fd5b505b6004546001600160a01b031663d0e30db062003496838762005058565b6040518263ffffffff1660e01b81526004016000604051808303818588803b158015620034c257600080fd5b505af1158015620034d7573d6000803e3d6000fd5b5050505050620034fa620034f36004546001600160a01b031690565b8462003bea565b6040518060a001604052806200351360025461ffff1690565b61ffff1681526020016200352f6004546001600160a01b031690565b6001600160a01b031660001b81526020018481526020018381526020018681525095505050505050919050565b6040805161010081018252600381526020810188905290810188905261ffff808a16606083015260808201869052861660a08201523360c082015260e08101829052600090620035b46000546001600160a01b031690565b6001600160a01b031663b19a437e86866200265885620019cd565b6000620035db62001a10565b15620036195760405162461bcd60e51b815260206004820152600c60248201526b696e76616c696420666f726b60a01b604482015260640162000ae9565b50608081015160609091015161ffff166000908152600b60205260409020541490565b60006200364c60025461ffff1690565b61ffff16836040015161ffff161415620036ba5760405162461bcd60e51b815260206004820152602860248201527f63616e206f6e6c79207772617020746f6b656e732066726f6d20666f726569676044820152676e20636861696e7360c01b606482015260840162000ae9565b60006001600160a01b0316620036d98460400151856020015162000f60565b6001600160a01b031614620037315760405162461bcd60e51b815260206004820152601c60248201527f7772617070656420617373657420616c72656164792065786973747300000000604482015260640162000ae9565b600063c71f461560e01b6200374a8560a0015162003db3565b62003759866080015162003db3565b8660600151863089604001518a6020015160405160240162003782979695949392919062004c63565b60408051601f19818403018152918152602080830180516001600160e01b03166001600160e01b03199095169490941790935251909250600091620037cc91309185910162004be5565b6040516020818303038152906040529050600060405180602001620037f190620041f7565b601f1982820381018352601f909101166040819052620038179190849060200162004b46565b60405160208183030381529060405290506000866040015187602001516040516020016200385e92919060f09290921b6001600160f01b0319168252600282015260220190565b604051602081830303815290604052805190602001209050808251602084016000f59450843b6200388e57600080fd5b6040808801516020808a015161ffff90921660009081526008825283812092815291815282822080546001600160a01b0319166001600160a01b038a1690811790915582526009905220805460ff191660011790555050505092915050565b606081620038fd81601f62004ef2565b10156200393e5760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b604482015260640162000ae9565b6200394a828462004ef2565b84511015620039905760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b604482015260640162000ae9565b606082158015620039b15760405191506000825260208201604052620039fd565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015620039ec578051835260209283019201620039d2565b5050858452601f01601f1916604052505b5090505b9392505050565b60008062003a1f8460400151856020015162000f60565b90506001600160a01b03811662003a795760405162461bcd60e51b815260206004820152601d60248201527f7772617070656420617373657420646f6573206e6f7420657869737473000000604482015260640162000ae9565b806001600160a01b031663a18cd7c662003a978660a0015162003db3565b62003aa6876080015162003db3565b866040518463ffffffff1660e01b815260040162003ac79392919062004c20565b600060405180830381600087803b15801562003ae257600080fd5b505af115801562003af7573d6000803e3d6000fd5b50929695505050505050565b600060088260ff16111562003b3b5762003b1f60088362005072565b62003b2c90600a62004f77565b62003b38908462004f0d565b92505b5090919050565b600060088260ff16111562003b3b5762003b5e60088362005072565b62003b6b90600a62004f77565b62003b38908462005036565b6040516001600160a01b038085166024830152831660448201526064810182905262003be49085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915262003eee565b50505050565b6001600160a01b0382166000908152600a60205260409020546001600160401b0362003c17838362004ef2565b111562003c855760405162461bcd60e51b815260206004820152603560248201527f7472616e736665722065786365656473206d6178206f75747374616e64696e6760448201527408189c9a5919d959081d1bdad95b88185b5bdd5b9d605a1b606482015260840162000ae9565b62003cb28362003c96848462004ef2565b6001600160a01b039091166000908152600a6020526040902055565b505050565b60006001600160a01b031982161562003d095760405162461bcd60e51b8152602060048201526013602482015272696e76616c69642045564d206164647265737360681b604482015260640162000ae9565b5090565b620018ca828262003d33856001600160a01b03166000908152600a602052604090205490565b62003c96919062005058565b6040516001600160a01b03831660248201526044810182905262003cb290849063a9059cbb60e01b9060640162003bac565b62003d7c8162003fc7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606060005b60208110801562003df6575082816020811062003de557634e487b7160e01b600052603260045260246000fd5b1a60f81b6001600160f81b03191615155b1562003e11578062003e0881620050c7565b91505062003db8565b6000816001600160401b0381111562003e3a57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801562003e65576020820181803683370190505b50905060005b8281101562003ee65784816020811062003e9557634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811062003eba57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508062003edd81620050c7565b91505062003e6b565b509392505050565b600062003f45826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200406e9092919063ffffffff16565b80519091501562003cb2578080602001905181019062003f66919062004558565b62003cb25760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840162000ae9565b803b6200402d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840162000ae9565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60606200407f848460008562004087565b949350505050565b606082471015620040ea5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840162000ae9565b843b6200413a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000ae9565b600080866001600160a01b0316858760405162004158919062004b28565b60006040518083038185875af1925050503d806000811462004197576040519150601f19603f3d011682016040523d82523d6000602084013e6200419c565b606091505b5091509150620041ae828286620041b9565b979650505050505050565b60608315620041ca57508162003a01565b825115620041db5782518084602001fd5b8160405162461bcd60e51b815260040162000ae9919062004c0b565b610993806200514983390190565b80356001600160a01b03811681146200421d57600080fd5b919050565b600082601f83011262004233578081fd5b815160206001600160401b03821115620042515762004251620050fb565b62004261818360051b0162004e95565b80838252828201915082860187848660071b890101111562004281578586fd5b855b85811015620042f157608080838b0312156200429d578788fd5b620042a762004e1e565b835181528684015187820152604080850151620042c48162005138565b90820152606084810151620042d98162005138565b90820152855293850193919091019060010162004283565b5090979650505050505050565b805180151581146200421d57600080fd5b600082601f83011262004320578081fd5b813562004337620043318262004ec8565b62004e95565b8181528460208386010111156200434c578283fd5b816020850160208301379081016020019190915292915050565b600082601f83011262004377578081fd5b815162004388620043318262004ec8565b8181528460208386010111156200439d578283fd5b6200407f82602083016020870162005098565b80356200421d8162005111565b80516200421d8162005111565b80516200421d8162005125565b80516001600160401b03811681146200421d57600080fd5b80356200421d8162005138565b80516200421d8162005138565b6000602082840312156200441b578081fd5b62003a018262004205565b60008060008060008060c087890312156200443f578182fd5b6200444a8762004205565b9550602087013594506040870135620044638162005111565b9350606087013592506080870135915060a0870135620044838162005125565b809150509295509295509295565b60008060008060008060c08789031215620044aa578384fd5b620044b58762004205565b9550602087013594506040870135620044ce8162005111565b9350606087013592506080870135620044e78162005125565b915060a08701356001600160401b0381111562004502578182fd5b6200451089828a016200430f565b9150509295509295509295565b6000806040838503121562004530578182fd5b6200453b8362004205565b915060208301356200454d8162005125565b809150509250929050565b6000602082840312156200456a578081fd5b62003a0182620042fe565b60006020828403121562004587578081fd5b5035919050565b600060208284031215620045a0578081fd5b5051919050565b600060208284031215620045b9578081fd5b81356001600160401b03811115620045cf578182fd5b6200407f848285016200430f565b600060208284031215620045ef578081fd5b81516001600160401b0381111562004605578182fd5b6200407f8482850162004366565b600060c0828403121562004625578081fd5b60405160c081018181106001600160401b03821117156200464a576200464a620050fb565b60405282356200465a8162005138565b8152602083810135908201526040830135620046768162005111565b604082015260608301356200468b8162005138565b60608201526080838101359082015260a0928301359281019290925250919050565b600060208284031215620046bf578081fd5b81356001600160401b0380821115620046d6578283fd5b908301906101008286031215620046eb578283fd5b620046f562004e49565b6200470083620043ef565b815260208301356020820152604083013560408201526200472460608401620043b0565b6060820152608083013560808201526200474160a08401620043b0565b60a082015260c083013560c082015260e08301358281111562004762578485fd5b62004770878286016200430f565b60e08301525095945050505050565b600060e0828403121562004791578081fd5b60405160e081018181106001600160401b0382111715620047b657620047b6620050fb565b6040528235620047c68162005138565b8082525060208301356020820152604083013560408201526060830135620047ee8162005111565b6060820152608083810135908201526200480b60a08401620043b0565b60a082015260c083013560c08201528091505092915050565b60008060006060848603121562004839578081fd5b83516001600160401b038082111562004850578283fd5b90850190610160828803121562004865578283fd5b6200486f62004e6f565b6200487a83620043fc565b81526200488a60208401620043ca565b60208201526200489d60408401620043ca565b6040820152620048b060608401620043bd565b606082015260808301516080820152620048cd60a08401620043d7565b60a0820152620048e060c08401620043fc565b60c082015260e083015182811115620048f7578485fd5b620049058982860162004366565b60e0830152506101006200491b818501620043ca565b90820152610120838101518381111562004933578586fd5b620049418a82870162004222565b9183019190915250610140838101519082015294506200496460208701620042fe565b935060408601519150808211156200497a578283fd5b50620049898682870162004366565b9150509250925092565b600060208284031215620049a5578081fd5b813562003a018162005111565b600060208284031215620049c4578081fd5b815162003a018162005111565b60008060408385031215620049e4578182fd5b8235620049f18162005111565b946020939093013593505050565b6000806000806080858703121562004a15578182fd5b843562004a228162005111565b93506020850135925060408501359150606085013562004a428162005125565b939692955090935050565b6000806000806080858703121562004a63578182fd5b843562004a708162005111565b935060208501359250604085013562004a898162005125565b915060608501356001600160401b0381111562004aa4578182fd5b62004ab2878288016200430f565b91505092959194509250565b60006020828403121562004ad0578081fd5b62003a0182620043d7565b60006020828403121562004aed578081fd5b815162003a018162005138565b6000815180845262004b1481602086016020860162005098565b601f01601f19169290920160200192915050565b6000825162004b3c81846020870162005098565b9190910192915050565b6000835162004b5a81846020880162005098565b83519083019062004b7081836020880162005098565b01949350505050565b60ff60f81b8960f81b168152876001820152866021820152600061ffff60f01b808860f01b166041840152866043840152808660f01b16606384015250836065830152825162004bd181608585016020870162005098565b919091016085019998505050505050505050565b6001600160a01b03831681526040602082018190526000906200407f9083018462004afa565b60208152600062003a01602083018462004afa565b60608152600062004c35606083018662004afa565b828103602084015262004c49818662004afa565b9150506001600160401b0383166040830152949350505050565b60e08152600062004c7860e083018a62004afa565b828103602084015262004c8c818a62004afa565b60ff98909816604084015250506001600160401b039490941660608501526001600160a01b0392909216608084015261ffff1660a083015260c09091015292915050565b6020808252600f908201526e34b73b30b634b21032b6b4ba3a32b960891b604082015260600190565b60208082526010908201526f34b73b30b634b2102a3930b739b332b960811b604082015260600190565b6020808252600c908201526b77726f6e67206d6f64756c6560a01b604082015260600190565b6020808252600c908201526b3bb937b7339030b1ba34b7b760a11b604082015260600190565b6020815260ff8251166020820152602082015160408201526040820151606082015261ffff6060830151166080820152608082015160a0820152600060a083015162004dc160c084018261ffff169052565b5060c083015160e083015260e08301516101008081850152506200407f61012084018262004afa565b63ffffffff8416815260606020820152600062004e0b606083018562004afa565b905060ff83166040830152949350505050565b604051608081016001600160401b038111828210171562004e435762004e43620050fb565b60405290565b60405161010081016001600160401b038111828210171562004e435762004e43620050fb565b60405161016081016001600160401b038111828210171562004e435762004e43620050fb565b604051601f8201601f191681016001600160401b038111828210171562004ec05762004ec0620050fb565b604052919050565b60006001600160401b0382111562004ee45762004ee4620050fb565b50601f01601f191660200190565b6000821982111562004f085762004f08620050e5565b500190565b60008262004f2957634e487b7160e01b81526012600452602481fd5b500490565b600181815b8085111562004f6f57816000190482111562004f535762004f53620050e5565b8085161562004f6157918102915b93841c939080029062004f33565b509250929050565b600062003a0160ff84168360008262004f935750600162000d8b565b8162004fa25750600062000d8b565b816001811462004fbb576002811462004fc65762004fe6565b600191505062000d8b565b60ff84111562004fda5762004fda620050e5565b50506001821b62000d8b565b5060208310610133831016604e8410600b84101617156200500b575081810a62000d8b565b62005017838362004f2e565b80600019048211156200502e576200502e620050e5565b029392505050565b6000816000190483118215151615620050535762005053620050e5565b500290565b6000828210156200506d576200506d620050e5565b500390565b600060ff821660ff8416808210156200508f576200508f620050e5565b90039392505050565b60005b83811015620050b55781810151838201526020016200509b565b8381111562003be45750506000910152565b6000600019821415620050de57620050de620050e5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61ffff811681146200512257600080fd5b50565b63ffffffff811681146200512257600080fd5b60ff811681146200512257600080fdfe608060405234801561001057600080fd5b5060405161099338038061099383398101604081905261002f9161048e565b818161005c60017fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d51610599565b60008051602061094c8339815191521461008657634e487b7160e01b600052600160045260246000fd5b6100928282600061009b565b505050506105fe565b6100a483610175565b6040516001600160a01b038416907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e90600090a26000825111806100e55750805b156101705761016e836001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561012657600080fd5b505afa15801561013a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061015e9190610474565b8361031560201b6100291760201c565b505b505050565b6101888161034160201b6100551760201c565b6101e75760405162461bcd60e51b815260206004820152602560248201527f455243313936373a206e657720626561636f6e206973206e6f74206120636f6e6044820152641d1c9858dd60da1b60648201526084015b60405180910390fd5b61026a816001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561022357600080fd5b505afa158015610237573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025b9190610474565b61034160201b6100551760201c565b6102cf5760405162461bcd60e51b815260206004820152603060248201527f455243313936373a20626561636f6e20696d706c656d656e746174696f6e206960448201526f1cc81b9bdd08184818dbdb9d1c9858dd60821b60648201526084016101de565b806102f460008051602061094c83398151915260001b61034760201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b606061033a838360405180606001604052806027815260200161096c6027913961034a565b9392505050565b3b151590565b90565b6060833b6103a95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016101de565b600080856001600160a01b0316856040516103c4919061054a565b600060405180830381855af49150503d80600081146103ff576040519150601f19603f3d011682016040523d82523d6000602084013e610404565b606091505b50909250905061041582828661041f565b9695505050505050565b6060831561042e57508161033a565b82511561043e5782518084602001fd5b8160405162461bcd60e51b81526004016101de9190610566565b80516001600160a01b038116811461046f57600080fd5b919050565b600060208284031215610485578081fd5b61033a82610458565b600080604083850312156104a0578081fd5b6104a983610458565b60208401519092506001600160401b03808211156104c5578283fd5b818501915085601f8301126104d8578283fd5b8151818111156104ea576104ea6105e8565b604051601f8201601f19908116603f01168101908382118183101715610512576105126105e8565b8160405282815288602084870101111561052a578586fd5b61053b8360208301602088016105bc565b80955050505050509250929050565b6000825161055c8184602087016105bc565b9190910192915050565b60208152600082518060208401526105858160408501602087016105bc565b601f01601f19169190910160400192915050565b6000828210156105b757634e487b7160e01b81526011600452602481fd5b500390565b60005b838110156105d75781810151838201526020016105bf565b8381111561016e5750506000910152565b634e487b7160e01b600052604160045260246000fd5b61033f8061060d6000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b610106565b565b606061004e83836040518060600160405280602781526020016102e36027913961012a565b9392505050565b3b151590565b90565b60006100917fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50546001600160a01b031690565b6001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156100c957600080fd5b505afa1580156100dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610101919061023c565b905090565b3660008037600080366000845af43d6000803e808015610125573d6000f35b3d6000fd5b6060833b61018e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b0316856040516101a99190610263565b600060405180830381855af49150503d80600081146101e4576040519150601f19603f3d011682016040523d82523d6000602084013e6101e9565b606091505b50915091506101f9828286610203565b9695505050505050565b6060831561021257508161004e565b8251156102225782518084602001fd5b8160405162461bcd60e51b8152600401610185919061027f565b60006020828403121561024d578081fd5b81516001600160a01b038116811461004e578182fd5b600082516102758184602087016102b2565b9190910192915050565b602081526000825180602084015261029e8160408501602087016102b2565b601f01601f19169190910160400192915050565b60005b838110156102cd5781810151838201526020016102b5565b838111156102dc576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212203e23ac4f79a95247999f8e0df94ea5bd5e38561ccfd051b0ea50ba9aea59b8f164736f6c63430008040033a3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564676f7665726e616e636520616374696f6e20616c726561647920636f6e73756d6564a2646970667358221220192f6503b193a6b12985fc48ae3b170718031240712e8cb9d849215b069487c264736f6c63430008040033",og=function(e){function t(t){return e.call(this,ag,ig,t)||this}return rg(t,e),t.prototype.deploy=function(t){return e.prototype.deploy.call(this,t||{})},t.prototype.getDeployTransaction=function(t){return e.prototype.getDeployTransaction.call(this,t||{})},t.prototype.attach=function(t){return e.prototype.attach.call(this,t)},t.prototype.connect=function(t){return e.prototype.connect.call(this,t)},t.createInterface=function(){return new Nv.vU(ag)},t.connect=function(e,t){return new Dv.CH(e,ag,t)},t.bytecode=ig,t.abi=ag,t}(Dv.lV),sg=n(62332).Buffer,cg=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},ug=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},Qg=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&r.write(t.toString("hex"),1,"hex"),r}function eA(e){var t=e.nonce,n=e.amount,r=e.fee,a=e.targetAddress,i=e.targetChain;if("bigint"!=typeof n&&(n=BigInt(n)),"bigint"!=typeof r&&(r=BigInt(r)),!Yg.isBuffer(a))throw new Error("targetAddress must be Buffer");var o=Yg.alloc(54);return o.writeUInt32LE(t,0),o.writeBigUInt64LE(n,4),o.writeBigUInt64LE(r,12),o.write(a.toString("hex"),20,"hex"),o.writeUInt16LE(i,52),o}function tA(e){var t=e.nonce,n=e.amount,r=e.targetAddress,a=e.targetChain,i=e.payload;if("bigint"!=typeof n&&(n=BigInt(n)),!Yg.isBuffer(r))throw new Error("targetAddress must be Buffer");if(!Yg.isBuffer(i))throw new Error("payload must be Buffer");var o=Yg.alloc(50);return o.writeUInt32LE(t,0),o.writeBigUInt64LE(n,4),o.write(r.toString("hex"),12,"hex"),o.writeUInt16LE(a,44),o.writeUInt32LE(i.length,46),Yg.concat([o,i,Yg.alloc(1)])}!function(e){e[e.Initialize=0]="Initialize",e[e.AttestToken=1]="AttestToken",e[e.CompleteNative=2]="CompleteNative",e[e.CompleteWrapped=3]="CompleteWrapped",e[e.TransferWrapped=4]="TransferWrapped",e[e.TransferNative=5]="TransferNative",e[e.RegisterChain=6]="RegisterChain",e[e.CreateWrapped=7]="CreateWrapped",e[e.UpgradeContract=8]="UpgradeContract",e[e.CompleteNativeWithPayload=9]="CompleteNativeWithPayload",e[e.CompleteWrappedWithPayload=10]="CompleteWrappedWithPayload",e[e.TransferWrappedWithPayload=11]="TransferWrappedWithPayload",e[e.TransferNativeWithPayload=12]="TransferNativeWithPayload"}(Jg||(Jg={}));var nA=function(){function e(e){}return e.prototype.encode=function(e,t){throw new Error("Token Bridge program does not have state")},e.prototype.decode=function(e){throw new Error("Token Bridge program does not have state")},e}(),rA=function(){function e(e){}return e.prototype.encode=function(e,t){throw new Error("Token Bridge program does not have user-defined types")},e.prototype.decode=function(e,t){throw new Error("Token Bridge program does not have user-defined types")},e}(),aA=function(e){this.instruction=new Xg(e),this.accounts=new Gg(e),this.state=new nA(e),this.events=new Wg(e),this.types=new rA(e)},iA=JSON.parse('{"version":"0.1.0","name":"wormhole","instructions":[{"name":"initialize","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":true,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[{"name":"wormhole","type":"publicKey"}]},{"name":"attestToken","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":true,"isSigner":false},{"name":"mint","isMut":false,"isSigner":false},{"name":"wrappedMeta","isMut":false,"isSigner":false},{"name":"splMetadata","isMut":false,"isSigner":false},{"name":"wormholeBridge","isMut":true,"isSigner":false},{"name":"wormholeMessage","isMut":true,"isSigner":true},{"name":"wormholeEmitter","isMut":false,"isSigner":false},{"name":"wormholeSequence","isMut":true,"isSigner":false},{"name":"wormholeFeeCollector","isMut":true,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[{"name":"nonce","type":"u32"}]},{"name":"completeNative","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"endpoint","isMut":false,"isSigner":false},{"name":"to","isMut":true,"isSigner":false},{"name":"toFees","isMut":true,"isSigner":false},{"name":"custody","isMut":true,"isSigner":false},{"name":"mint","isMut":false,"isSigner":false},{"name":"custodySigner","isMut":false,"isSigner":false},{"name":"rent","isMut":true,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"completeWrapped","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"endpoint","isMut":false,"isSigner":false},{"name":"to","isMut":true,"isSigner":false},{"name":"toFees","isMut":true,"isSigner":false},{"name":"mint","isMut":true,"isSigner":false},{"name":"wrappedMeta","isMut":false,"isSigner":false},{"name":"mintAuthority","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"transferWrapped","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"from","isMut":true,"isSigner":false},{"name":"fromOwner","isMut":true,"isSigner":true},{"name":"mint","isMut":true,"isSigner":false},{"name":"wrappedMeta","isMut":false,"isSigner":false},{"name":"authoritySigner","isMut":false,"isSigner":false},{"name":"wormholeBridge","isMut":true,"isSigner":false},{"name":"wormholeMessage","isMut":true,"isSigner":true},{"name":"wormholeEmitter","isMut":false,"isSigner":false},{"name":"wormholeSequence","isMut":true,"isSigner":false},{"name":"wormholeFeeCollector","isMut":true,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[{"name":"nonce","type":"u32"},{"name":"amount","type":"u64"},{"name":"fee","type":"u64"},{"name":"targetAddress","type":{"array":["u8",32]}},{"name":"targetChain","type":"u16"}]},{"name":"transferNative","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"from","isMut":true,"isSigner":false},{"name":"mint","isMut":true,"isSigner":false},{"name":"custody","isMut":true,"isSigner":false},{"name":"authoritySigner","isMut":false,"isSigner":false},{"name":"custodySigner","isMut":false,"isSigner":false},{"name":"wormholeBridge","isMut":true,"isSigner":false},{"name":"wormholeMessage","isMut":true,"isSigner":true},{"name":"wormholeEmitter","isMut":false,"isSigner":false},{"name":"wormholeSequence","isMut":true,"isSigner":false},{"name":"wormholeFeeCollector","isMut":true,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[{"name":"nonce","type":"u32"},{"name":"amount","type":"u64"},{"name":"fee","type":"u64"},{"name":"targetAddress","type":{"array":["u8",32]}},{"name":"targetChain","type":"u16"}]},{"name":"registerChain","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"endpoint","isMut":true,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"createWrapped","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"endpoint","isMut":false,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"mint","isMut":true,"isSigner":false},{"name":"wrappedMeta","isMut":true,"isSigner":false},{"name":"splMetadata","isMut":true,"isSigner":false},{"name":"mintAuthority","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"splMetadataProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"upgradeContract","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"upgradeAuthority","isMut":false,"isSigner":false},{"name":"spill","isMut":true,"isSigner":false},{"name":"implementation","isMut":true,"isSigner":false},{"name":"programData","isMut":true,"isSigner":false},{"name":"tokenBridgeProgram","isMut":true,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"bpfLoaderUpgradeable","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"transferWrappedWithPayload","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"from","isMut":true,"isSigner":false},{"name":"fromOwner","isMut":true,"isSigner":true},{"name":"mint","isMut":true,"isSigner":false},{"name":"wrappedMeta","isMut":false,"isSigner":false},{"name":"authoritySigner","isMut":false,"isSigner":false},{"name":"wormholeBridge","isMut":true,"isSigner":false},{"name":"wormholeMessage","isMut":true,"isSigner":true},{"name":"wormholeEmitter","isMut":false,"isSigner":false},{"name":"wormholeSequence","isMut":true,"isSigner":false},{"name":"wormholeFeeCollector","isMut":true,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"sender","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[{"name":"nonce","type":"u32"},{"name":"amount","type":"u64"},{"name":"targetAddress","type":{"array":["u8",32]}},{"name":"targetChain","type":"u16"},{"name":"payload","type":"bytes"},{"name":"cpiProgramId","type":{"option":"publicKey"}}]},{"name":"transferNativeWithPayload","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"from","isMut":true,"isSigner":false},{"name":"mint","isMut":true,"isSigner":false},{"name":"custody","isMut":true,"isSigner":false},{"name":"authoritySigner","isMut":false,"isSigner":false},{"name":"custodySigner","isMut":false,"isSigner":false},{"name":"wormholeBridge","isMut":true,"isSigner":false},{"name":"wormholeMessage","isMut":true,"isSigner":true},{"name":"wormholeEmitter","isMut":false,"isSigner":false},{"name":"wormholeSequence","isMut":true,"isSigner":false},{"name":"wormholeFeeCollector","isMut":true,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"sender","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[{"name":"nonce","type":"u32"},{"name":"amount","type":"u64"},{"name":"targetAddress","type":{"array":["u8",32]}},{"name":"targetChain","type":"u16"},{"name":"payload","type":"bytes"},{"name":"cpiProgramId","type":{"option":"publicKey"}}]}],"accounts":[]}');function oA(e,t){return function(e,t){return new Vm.Program(iA,new xf.PublicKey(e),void 0===t?{connection:null}:t,new aA(iA))}(e,Fg(t))}function sA(e,t,n,r){var a=jh(n,e),i=a.emitter,o=a.sequence;return{bridge:Mg(e),message:new xf.PublicKey(r),emitter:i,sequence:o,payer:new xf.PublicKey(t),feeCollector:jg(e),clock:xf.SYSVAR_CLOCK_PUBKEY,rent:xf.SYSVAR_RENT_PUBKEY,systemProgram:xf.SystemProgram.programId}}var cA=n(62332).Buffer;function uA(e){return Th([cA.from("config")],e)}var fA,dA=function(){function e(e){this.wormhole=new xf.PublicKey(e)}return e.deserialize=function(t){if(32!=t.length)throw new Error("data.length != 32");return new e(t.subarray(0,32))},e}(),lA=n(62332).Buffer,pA=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bA=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},hA=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0,t.readUInt8(33))},e.size=34,e}(),mA=function(){function e(e,t,n,r,a){this.name=e,this.symbol=t,this.uri=n,this.sellerFeeBasisPoints=r,this.creators=a}return e.prototype.serialize=function(){var e=this.name.length,t=this.symbol.length,n=this.uri.length,r=this.creators,a=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}(function(){if(null===r)return[0,0];var e=r.length;return[e,4+e*yA.size]}(),2),i=a[0],o=a[1],s=lA.alloc(15+e+t+n+o);if(s.writeUInt32LE(e,0),s.write(this.name,4),s.writeUInt32LE(t,4+e),s.write(this.symbol,8+e),s.writeUInt32LE(n,8+e+t),s.write(this.uri,12+e+t),s.writeUInt16LE(this.sellerFeeBasisPoints,12+e+t+n),null===r)s.writeUInt8(0,14+e+t+n);else{s.writeUInt8(1,14+e+t+n),s.writeUInt32LE(i,15+e+t+n);for(var c=0;c0,t.readUInt8(66+o)>0)},e}();function xA(e,t,n){return bA(this,void 0,void 0,(function(){return hA(this,(function(r){return[2,e.getAccountInfo(AA(t),n).then((function(e){return wA.deserialize(Mh(e))}))]}))}))}var _A=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},kA=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},TA=function(e,t){for(var n=0,r=t.length,a=e.length;nBigInt(0)&&(A=(0,Cb.makePaymentTxnWithSuggestedParamsFromObject)({from:r,suggestedParams:m,to:(0,kf.getApplicationAddress)(t),amount:g}),c.push({tx:A,signer:null})),w=[f,l,(0,kf.getApplicationAddress)(n)],p&&w.push(p.address),x=(0,Cb.makeApplicationCallTxnFromObject)({appArgs:[b,Kp(a,8)],accounts:w,appIndex:Jh(t),foreignApps:[Jh(n)],foreignAssets:[Jh(a)],from:r,onComplete:Cb.OnApplicationComplete.NoOpOC,suggestedParams:m}),g>BigInt(0)?x.fee*=3:x.fee*=2,c.push({tx:x,signer:null}),[2,c]}}))}))}function NA(e,t,n,r){return IA(this,void 0,void 0,(function(){var a,i;return EA(this,(function(o){switch(o.label){case 0:return a=[],[4,am(e,t,"message_fee")];case 1:return i=o.sent(),wg(n,r)?[3,3]:[4,tm(e,n,r)];case 2:o.sent().isRegistered||a.push({contractId:n,methodName:"register_account",args:{account:r},gas:new(Gy())("100000000000000"),attachedDeposit:new(Gy())("2000000000000000000000")}),o.label=3;case 3:return a.push({contractId:n,methodName:"attest_token",args:{token:r,message_fee:i},attachedDeposit:new(Gy())("3000000000000000000000").add(new(Gy())(i)),gas:new(Gy())("100000000000000")}),[2,a]}}))}))}function DA(e,t,n){return IA(this,void 0,void 0,(function(){var r;return EA(this,(function(a){switch(a.label){case 0:return[4,am(e,t,"message_fee")];case 1:return r=a.sent()+1,[2,{contractId:n,methodName:"attest_near",args:{message_fee:r},attachedDeposit:new(Gy())(r),gas:new(Gy())("100000000000000")}]}}))}))}function jA(e,t,n){return _g(e,t,n)}var UA,LA=n(62332).Buffer,ZA="function"==typeof btoa,FA="function"==typeof LA,HA=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder,Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")),zA=(UA={},HA.forEach((function(e,t){return UA[e]=t})),String.fromCharCode.bind(String)),qA=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))}),QA=ZA?function(e){return btoa(e)}:FA?function(e){return LA.from(e,"binary").toString("base64")}:function(e){for(var t,n,r,a,i="",o=e.length%3,s=0;s255||(r=e.charCodeAt(s++))>255||(a=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");i+=HA[(t=n<<16|r<<8|a)>>18&63]+HA[t>>12&63]+HA[t>>6&63]+HA[63&t]}return o?i.slice(0,o-3)+"===".substring(o):i},KA=FA?function(e){return LA.from(e).toString("base64")}:function(e){for(var t=[],n=0,r=e.length;n1&&void 0!==arguments[1]&&arguments[1]?qA(KA(e)):KA(e)},JA=new xf.PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),GA=(new xf.PublicKey("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),new xf.PublicKey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL")),WA=new xf.PublicKey("So11111111111111111111111111111111111111112");new xf.PublicKey("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP");var YA,XA=function(){function e(e,t,n,r,a,i,o,s,c,u){this.vaaVersion=e,this.consistencyLevel=t,this.vaaTime=n,this.vaaSignatureAccount=new xf.PublicKey(r),this.submissionTime=a,this.nonce=i,this.sequence=o,this.emitterChain=s,this.emitterAddress=c,this.payload=u}return e.deserialize=function(t){var n=t.readUInt8(0),r=t.readUInt8(1),a=t.readUInt32LE(2),i=new xf.PublicKey(t.subarray(6,38)),o=t.readUInt32LE(38),s=t.readUInt32LE(42),c=t.readBigUInt64LE(46),u=t.readUInt16LE(54),f=t.subarray(56,88),d=t.readUInt32LE(88);return new e(n,r,a,i,o,s,c,u,f,t.subarray(92,92+d))},e}(),$A=n(62332).Buffer,ew=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tw=function(){function e(e){this.message=e}return e.deserialize=function(t){return new e(XA.deserialize(t.subarray(3)))},e}();function nw(e,t){return Th([$A.from("PostedVAA"),t],e)}ew((function(){return null!==YA&&YA.apply(this,arguments)||this}),YA=tw);var rw=n(62332).Buffer;function aw(e,t,n){if(t==I)throw new Error("emitterChain == CHAIN_ID_SOLANA cannot exist as foreign token bridge emitter");return"string"==typeof n&&(n=vm(n,t)),Th([(r=rw.alloc(2),r.writeUInt16BE(t),r),n],e);var r}!function(){function e(e,t){this.chain=e,this.contract=t}e.deserialize=function(t){if(34!=t.length)throw new Error("data.length != 34");return new e(t.readUInt16LE(0),t.subarray(2,34))}}();var iw=n(62332).Buffer;function ow(e){return Th([iw.from("authority_signer")],e)}function sw(e){return Th([iw.from("custody_signer")],e)}function cw(e){return Th([iw.from("mint_signer")],e)}var uw=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},fw=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]8?[2,kw.from(s.slice(0,8)).readBigUInt64BE(0)]:[2,null];case 4:return[2]}}))}))}function Mw(e,t,n,r){return Sw(this,void 0,void 0,(function(){var a;return Iw(this,(function(i){switch(i.label){case 0:return[4,am(e,t,"get_foreign_asset",{chain:fe(n),address:r})];case 1:return[2,""!==(a=i.sent())?a:null]}}))}))}function Bw(e,t,n,r){return Sw(this,void 0,void 0,(function(){var a,i;return Iw(this,(function(o){switch(o.label){case 0:if(a=fe(n),!(i=Pm(t,a,r)))return[2,null];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,e.getAccountResource(Dm(i),"0x1::coin::CoinInfo<"+i+">")];case 2:return o.sent(),[2,i];case 3:return o.sent(),[2,null];case 4:return[2]}}))}))}var Rw=n(39669),Nw=n.n(Rw),Dw=n(25594),jw=n(23935),Uw=function(e){return{decode:e.decode.bind(e),encode:e.encode.bind(e)}},Lw=n(62332).Buffer,Zw=function(e){return function(t){var n=(0,Dw.blob)(e,t),r=Uw(n),a=r.encode,i=r.decode,o=n;return o.decode=function(e,t){var n=i(e,t);return(0,jw.toBigIntLE)(Lw.from(n))},o.encode=function(t,n,r){var i=(0,jw.toBufferLE)(t,e);return a(i,n,r)},o}},Fw=function(e){return function(t){var n=(0,Dw.blob)(e,t),r=Uw(n),a=r.encode,i=r.decode,o=n;return o.decode=function(e,t){var n=i(e,t);return(0,jw.toBigIntBE)(Lw.from(n))},o.encode=function(t,n,r){var i=(0,jw.toBufferBE)(t,e);return a(i,n,r)},o}},Hw=Zw(8),zw=(Fw(8),Zw(16),Fw(16),Zw(24),Fw(24),Zw(32),Fw(32),/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i),qw=Math.ceil,Qw=Math.floor,Kw="[BigNumber Error] ",Vw=Kw+"Number primitive has more than 15 significant digits: ",Jw=1e14,Gw=14,Ww=9007199254740991,Yw=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Xw=1e7,$w=1e9;function ex(e){var t=0|e;return e>0||e===t?t:t-1}function tx(e){for(var t,n,r=1,a=e.length,i=e[0]+"";ru^n?1:-1;for(s=(c=a.length)<(u=i.length)?c:u,o=0;oi[o]^n?1:-1;return c==u?0:c>u^n?1:-1}function rx(e,t,n,r){if(en||e!==Qw(e))throw Error(Kw+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function ax(e){var t=e.c.length-1;return ex(e.e/Gw)==t&&e.c[t]%2!=0}function ix(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function ox(e,t,n){var r,a;if(t<0){for(a=n+".";++t;a+=n);e=a+e}else if(++t>(r=e.length)){for(a=n,t-=r;--t;a+=n);e+=a}else tg?l.c=l.e=null:e.e=10;c/=10,s++);return void(s>g?l.c=l.e=null:(l.e=s,l.c=[e]))}d=String(e)}else{if(!zw.test(d=String(e)))return a(l,d,u);l.s=45==d.charCodeAt(0)?(d=d.slice(1),-1):1}(s=d.indexOf("."))>-1&&(d=d.replace(".","")),(c=d.search(/e/i))>0?(s<0&&(s=c),s+=+d.slice(c+1),d=d.substring(0,c)):s<0&&(s=d.length)}else{if(rx(t,2,k.length,"Base"),10==t&&S)return O(l=new I(e),b+l.e+1,h);if(d=String(e),u="number"==typeof e){if(0*e!=0)return a(l,d,u,t);if(l.s=1/e<0?(d=d.slice(1),-1):1,I.DEBUG&&d.replace(/^0\.0*|\./,"").length>15)throw Error(Vw+e)}else l.s=45===d.charCodeAt(0)?(d=d.slice(1),-1):1;for(n=k.slice(0,t),s=c=0,f=d.length;cs){s=f;continue}}else if(!o&&(d==d.toUpperCase()&&(d=d.toLowerCase())||d==d.toLowerCase()&&(d=d.toUpperCase()))){o=!0,c=-1,s=0;continue}return a(l,String(e),u,t)}u=!1,(s=(d=r(d,t,10,l.s)).indexOf("."))>-1?d=d.replace(".",""):s=d.length}for(c=0;48===d.charCodeAt(c);c++);for(f=d.length;48===d.charCodeAt(--f););if(d=d.slice(c,++f)){if(f-=c,u&&I.DEBUG&&f>15&&(e>Ww||e!==Qw(e)))throw Error(Vw+l.s*e);if((s=s-c-1)>g)l.c=l.e=null;else if(s=m)?ix(c,o):ox(c,o,"0");else if(i=(e=O(new I(e),t,n)).e,s=(c=tx(e.c)).length,1==r||2==r&&(t<=i||i<=y)){for(;ss){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=i-s)>0)for(i+1==s&&(c+=".");t--;c+="0");return e.s<0&&a?"-"+c:c}function C(e,t){for(var n,r=1,a=new I(e[0]);r=10;a/=10,r++);return(n=r+n*Gw-1)>g?e.c=e.e=null:n=10;s/=10,a++);if((i=t-a)<0)i+=Gw,o=t,f=(c=d[u=0])/l[a-o-1]%10|0;else if((u=qw((i+1)/Gw))>=d.length){if(!r)break e;for(;d.length<=u;d.push(0));c=f=0,a=1,o=(i%=Gw)-Gw+1}else{for(c=s=d[u],a=1;s>=10;s/=10,a++);f=(o=(i%=Gw)-Gw+a)<0?0:c/l[a-o-1]%10|0}if(r=r||t<0||null!=d[u+1]||(o<0?c:c%l[a-o-1]),r=n<4?(f||r)&&(0==n||n==(e.s<0?3:2)):f>5||5==f&&(4==n||r||6==n&&(i>0?o>0?c/l[a-o]:0:d[u-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,r?(t-=e.e+1,d[0]=l[(Gw-t%Gw)%Gw],e.e=-t||0):d[0]=e.e=0,e;if(0==i?(d.length=u,s=1,u--):(d.length=u+1,s=l[Gw-i],d[u]=o>0?Qw(c/l[a-o]%l[o])*s:0),r)for(;;){if(0==u){for(i=1,o=d[0];o>=10;o/=10,i++);for(o=d[0]+=s,s=1;o>=10;o/=10,s++);i!=s&&(e.e++,d[0]==Jw&&(d[0]=1));break}if(d[u]+=s,d[u]!=Jw)break;d[u--]=0,s=1}for(i=d.length;0===d[--i];d.pop());}e.e>g?e.c=e.e=null:e.e=m?ix(t,n):ox(t,n,"0"),e.s<0?"-"+t:t)}return I.clone=e,I.ROUND_UP=0,I.ROUND_DOWN=1,I.ROUND_CEIL=2,I.ROUND_FLOOR=3,I.ROUND_HALF_UP=4,I.ROUND_HALF_DOWN=5,I.ROUND_HALF_EVEN=6,I.ROUND_HALF_CEIL=7,I.ROUND_HALF_FLOOR=8,I.EUCLID=9,I.config=I.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(Kw+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(rx(n=e[t],0,$w,t),b=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(rx(n=e[t],0,8,t),h=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(rx(n[0],-$w,0,t),rx(n[1],0,$w,t),y=n[0],m=n[1]):(rx(n,-$w,$w,t),y=-(m=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)rx(n[0],-$w,-1,t),rx(n[1],1,$w,t),v=n[0],g=n[1];else{if(rx(n,-$w,$w,t),!n)throw Error(Kw+t+" cannot be zero: "+n);v=-(g=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(Kw+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw A=!n,Error(Kw+"crypto unavailable");A=n}else A=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(rx(n=e[t],0,9,t),w=n),e.hasOwnProperty(t="POW_PRECISION")&&(rx(n=e[t],0,$w,t),x=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(Kw+t+" not an object: "+n);_=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(Kw+t+" invalid: "+n);S="0123456789"==n.slice(0,10),k=n}}return{DECIMAL_PLACES:b,ROUNDING_MODE:h,EXPONENTIAL_AT:[y,m],RANGE:[v,g],CRYPTO:A,MODULO_MODE:w,POW_PRECISION:x,FORMAT:_,ALPHABET:k}},I.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!I.DEBUG)return!0;var t,n,r=e.c,a=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===i||-1===i)&&a>=-$w&&a<=$w&&a===Qw(a)){if(0===r[0]){if(0===a&&1===r.length)return!0;break e}if((t=(a+1)%Gw)<1&&(t+=Gw),String(r[0]).length==t){for(t=0;t=Jw||n!==Qw(n))break e;if(0!==n)return!0}}}else if(null===r&&null===a&&(null===i||1===i||-1===i))return!0;throw Error(Kw+"Invalid BigNumber: "+e)},I.maximum=I.max=function(){return C(arguments,l.lt)},I.minimum=I.min=function(){return C(arguments,l.gt)},I.random=(i=9007199254740992,o=Math.random()*i&2097151?function(){return Qw(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,a,i,s=0,c=[],u=new I(p);if(null==e?e=b:rx(e,0,$w),a=qw(e/Gw),A)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));s>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[s]=n[0],t[s+1]=n[1]):(c.push(i%1e14),s+=2);s=a/2}else{if(!crypto.randomBytes)throw A=!1,Error(Kw+"crypto unavailable");for(t=crypto.randomBytes(a*=7);s=9e15?crypto.randomBytes(7).copy(t,s):(c.push(i%1e14),s+=7);s=a/7}if(!A)for(;s=10;i/=10,s++);sn-1&&(null==o[a+1]&&(o[a+1]=0),o[a+1]+=o[a]/n|0,o[a]%=n)}return o.reverse()}return function(r,a,i,o,s){var c,u,f,d,l,p,y,m,v=r.indexOf("."),g=b,A=h;for(v>=0&&(d=x,x=0,r=r.replace(".",""),p=(m=new I(a)).pow(r.length-v),x=d,m.c=t(ox(tx(p.c),p.e,"0"),10,i,e),m.e=m.c.length),f=d=(y=t(r,a,i,s?(c=k,e):(c=e,k))).length;0==y[--d];y.pop());if(!y[0])return c.charAt(0);if(v<0?--f:(p.c=y,p.e=f,p.s=o,y=(p=n(p,m,g,A,i)).c,l=p.r,f=p.e),v=y[u=f+g+1],d=i/2,l=l||u<0||null!=y[u+1],l=A<4?(null!=v||l)&&(0==A||A==(p.s<0?3:2)):v>d||v==d&&(4==A||l||6==A&&1&y[u-1]||A==(p.s<0?8:7)),u<1||!y[0])r=l?ox(c.charAt(1),-g,c.charAt(0)):c.charAt(0);else{if(y.length=u,l)for(--i;++y[--u]>i;)y[u]=0,u||(++f,y=[1].concat(y));for(d=y.length;!y[--d];);for(v=0,r="";v<=d;r+=c.charAt(y[v++]));r=ox(r,f,c.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,a,i,o,s=0,c=e.length,u=t%Xw,f=t/Xw|0;for(e=e.slice();c--;)s=((a=u*(i=e[c]%Xw)+(r=f*i+(o=e[c]/Xw|0)*u)%Xw*Xw+s)/n|0)+(r/Xw|0)+f*o,e[c]=a%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var a,i;if(n!=r)i=n>r?1:-1;else for(a=i=0;at[a]?1:-1;break}return i}function n(e,t,n,r){for(var a=0;n--;)e[n]-=a,a=e[n]1;e.splice(0,1));}return function(r,a,i,o,s){var c,u,f,d,l,p,b,h,y,m,v,g,A,w,x,_,k,S=r.s==a.s?1:-1,E=r.c,C=a.c;if(!(E&&E[0]&&C&&C[0]))return new I(r.s&&a.s&&(E?!C||E[0]!=C[0]:C)?E&&0==E[0]||!C?0*S:S/0:NaN);for(y=(h=new I(S)).c=[],S=i+(u=r.e-a.e)+1,s||(s=Jw,u=ex(r.e/Gw)-ex(a.e/Gw),S=S/Gw|0),f=0;C[f]==(E[f]||0);f++);if(C[f]>(E[f]||0)&&u--,S<0)y.push(1),d=!0;else{for(w=E.length,_=C.length,f=0,S+=2,(l=Qw(s/(C[0]+1)))>1&&(C=e(C,l,s),E=e(E,l,s),_=C.length,w=E.length),A=_,v=(m=E.slice(0,_)).length;v<_;m[v++]=0);k=C.slice(),k=[0].concat(k),x=C[0],C[1]>=s/2&&x++;do{if(l=0,(c=t(C,m,_,v))<0){if(g=m[0],_!=v&&(g=g*s+(m[1]||0)),(l=Qw(g/x))>1)for(l>=s&&(l=s-1),b=(p=e(C,l,s)).length,v=m.length;1==t(p,m,b,v);)l--,n(p,_=10;S/=10,f++);O(h,i+(h.e=f+u*Gw-1)+1,o,d)}else h.e=u,h.r=+d;return h}}(),s=/^(-?)0([xbo])(?=\w[\w.]*$)/i,c=/^([^.]+)\.$/,u=/^\.([^.]+)$/,f=/^-?(Infinity|NaN)$/,d=/^\s*\+(?=[\w.])|^\s+|\s+$/g,a=function(e,t,n,r){var a,i=n?t:t.replace(d,"");if(f.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!n&&(i=i.replace(s,(function(e,t,n){return a="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=a?e:t})),r&&(a=r,i=i.replace(c,"$1").replace(u,"0.$1")),t!=i))return new I(i,a);if(I.DEBUG)throw Error(Kw+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},l.absoluteValue=l.abs=function(){var e=new I(this);return e.s<0&&(e.s=1),e},l.comparedTo=function(e,t){return nx(this,new I(e,t))},l.decimalPlaces=l.dp=function(e,t){var n,r,a,i=this;if(null!=e)return rx(e,0,$w),null==t?t=h:rx(t,0,8),O(new I(i),e+i.e+1,t);if(!(n=i.c))return null;if(r=((a=n.length-1)-ex(this.e/Gw))*Gw,a=n[a])for(;a%10==0;a/=10,r--);return r<0&&(r=0),r},l.dividedBy=l.div=function(e,t){return n(this,new I(e,t),b,h)},l.dividedToIntegerBy=l.idiv=function(e,t){return n(this,new I(e,t),0,1)},l.exponentiatedBy=l.pow=function(e,t){var n,r,a,i,o,s,c,u,f=this;if((e=new I(e)).c&&!e.isInteger())throw Error(Kw+"Exponent not an integer: "+P(e));if(null!=t&&(t=new I(t)),o=e.e>14,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!e.c||!e.c[0])return u=new I(Math.pow(+P(f),o?e.s*(2-ax(e)):+P(e))),t?u.mod(t):u;if(s=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new I(NaN);(r=!s&&f.isInteger()&&t.isInteger())&&(f=f.mod(t))}else{if(e.e>9&&(f.e>0||f.e<-1||(0==f.e?f.c[0]>1||o&&f.c[1]>=24e7:f.c[0]<8e13||o&&f.c[0]<=9999975e7)))return i=f.s<0&&ax(e)?-0:0,f.e>-1&&(i=1/i),new I(s?1/i:i);x&&(i=qw(x/Gw+2))}for(o?(n=new I(.5),s&&(e.s=1),c=ax(e)):c=(a=Math.abs(+P(e)))%2,u=new I(p);;){if(c){if(!(u=u.times(f)).c)break;i?u.c.length>i&&(u.c.length=i):r&&(u=u.mod(t))}if(a){if(0===(a=Qw(a/2)))break;c=a%2}else if(O(e=e.times(n),e.e+1,1),e.e>14)c=ax(e);else{if(0==(a=+P(e)))break;c=a%2}f=f.times(f),i?f.c&&f.c.length>i&&(f.c.length=i):r&&(f=f.mod(t))}return r?u:(s&&(u=p.div(u)),t?u.mod(t):i?O(u,x,h,void 0):u)},l.integerValue=function(e){var t=new I(this);return null==e?e=h:rx(e,0,8),O(t,t.e+1,e)},l.isEqualTo=l.eq=function(e,t){return 0===nx(this,new I(e,t))},l.isFinite=function(){return!!this.c},l.isGreaterThan=l.gt=function(e,t){return nx(this,new I(e,t))>0},l.isGreaterThanOrEqualTo=l.gte=function(e,t){return 1===(t=nx(this,new I(e,t)))||0===t},l.isInteger=function(){return!!this.c&&ex(this.e/Gw)>this.c.length-2},l.isLessThan=l.lt=function(e,t){return nx(this,new I(e,t))<0},l.isLessThanOrEqualTo=l.lte=function(e,t){return-1===(t=nx(this,new I(e,t)))||0===t},l.isNaN=function(){return!this.s},l.isNegative=function(){return this.s<0},l.isPositive=function(){return this.s>0},l.isZero=function(){return!!this.c&&0==this.c[0]},l.minus=function(e,t){var n,r,a,i,o=this,s=o.s;if(t=(e=new I(e,t)).s,!s||!t)return new I(NaN);if(s!=t)return e.s=-t,o.plus(e);var c=o.e/Gw,u=e.e/Gw,f=o.c,d=e.c;if(!c||!u){if(!f||!d)return f?(e.s=-t,e):new I(d?o:NaN);if(!f[0]||!d[0])return d[0]?(e.s=-t,e):new I(f[0]?o:3==h?-0:0)}if(c=ex(c),u=ex(u),f=f.slice(),s=c-u){for((i=s<0)?(s=-s,a=f):(u=c,a=d),a.reverse(),t=s;t--;a.push(0));a.reverse()}else for(r=(i=(s=f.length)<(t=d.length))?s:t,s=t=0;t0)for(;t--;f[n++]=0);for(t=Jw-1;r>s;){if(f[--r]=0;){for(n=0,l=g[a]%y,p=g[a]/y|0,i=a+(o=c);i>a;)n=((u=l*(u=v[--o]%y)+(s=p*u+(f=v[o]/y|0)*l)%y*y+b[i]+n)/h|0)+(s/y|0)+p*f,b[i--]=u%h;b[i]=n}return n?++r:b.splice(0,1),T(e,b,r)},l.negated=function(){var e=new I(this);return e.s=-e.s||null,e},l.plus=function(e,t){var n,r=this,a=r.s;if(t=(e=new I(e,t)).s,!a||!t)return new I(NaN);if(a!=t)return e.s=-t,r.minus(e);var i=r.e/Gw,o=e.e/Gw,s=r.c,c=e.c;if(!i||!o){if(!s||!c)return new I(a/0);if(!s[0]||!c[0])return c[0]?e:new I(s[0]?r:0*a)}if(i=ex(i),o=ex(o),s=s.slice(),a=i-o){for(a>0?(o=i,n=c):(a=-a,n=s),n.reverse();a--;n.push(0));n.reverse()}for((a=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=a),a=0;t;)a=(s[--t]=s[t]+c[t]+a)/Jw|0,s[t]=Jw===s[t]?0:s[t]%Jw;return a&&(s=[a].concat(s),++o),T(e,s,o)},l.precision=l.sd=function(e,t){var n,r,a,i=this;if(null!=e&&e!==!!e)return rx(e,1,$w),null==t?t=h:rx(t,0,8),O(new I(i),e,t);if(!(n=i.c))return null;if(r=(a=n.length-1)*Gw+1,a=n[a]){for(;a%10==0;a/=10,r--);for(a=n[0];a>=10;a/=10,r++);}return e&&i.e+1>r&&(r=i.e+1),r},l.shiftedBy=function(e){return rx(e,-9007199254740991,Ww),this.times("1e"+e)},l.squareRoot=l.sqrt=function(){var e,t,r,a,i,o=this,s=o.c,c=o.s,u=o.e,f=b+4,d=new I("0.5");if(1!==c||!s||!s[0])return new I(!c||c<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(c=Math.sqrt(+P(o)))||c==1/0?(((t=tx(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(+t),u=ex((u+1)/2)-(u<0||u%2),r=new I(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new I(c+""),r.c[0])for((c=(u=r.e)+f)<3&&(c=0);;)if(i=r,r=d.times(i.plus(n(o,i,f,1))),tx(i.c).slice(0,c)===(t=tx(r.c)).slice(0,c)){if(r.e0&&b>0){for(i=b%s||s,f=p.substr(0,i);i0&&(f+=u+p.slice(i)),l&&(f="-"+f)}r=d?f+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?d.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):f}return(n.prefix||"")+r+(n.suffix||"")},l.toFraction=function(e){var t,r,a,i,o,s,c,u,f,d,l,b,y=this,m=y.c;if(null!=e&&(!(c=new I(e)).isInteger()&&(c.c||1!==c.s)||c.lt(p)))throw Error(Kw+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+P(c));if(!m)return new I(y);for(t=new I(p),f=r=new I(p),a=u=new I(p),b=tx(m),o=t.e=b.length-y.e-1,t.c[0]=Yw[(s=o%Gw)<0?Gw+s:s],e=!e||c.comparedTo(t)>0?o>0?t:f:c,s=g,g=1/0,c=new I(b),u.c[0]=0;d=n(c,t,0,1),1!=(i=r.plus(d.times(a))).comparedTo(e);)r=a,a=i,f=u.plus(d.times(i=f)),u=i,t=c.minus(d.times(i=t)),c=i;return i=n(e.minus(r),a,0,1),u=u.plus(i.times(f)),r=r.plus(i.times(a)),u.s=f.s=y.s,l=n(f,a,o*=2,h).minus(y).abs().comparedTo(n(u,r,o,h).minus(y).abs())<1?[f,a]:[u,r],g=s,l},l.toNumber=function(){return+P(this)},l.toPrecision=function(e,t){return null!=e&&rx(e,1,$w),E(this,e,t,2)},l.toString=function(e){var t,n=this,a=n.s,i=n.e;return null===i?a?(t="Infinity",a<0&&(t="-"+t)):t="NaN":(null==e?t=i<=y||i>=m?ix(tx(n.c),i):ox(tx(n.c),i,"0"):10===e&&S?t=ox(tx((n=O(new I(n),b+i+1,h)).c),n.e,"0"):(rx(e,2,k.length,"Base"),t=r(ox(tx(n.c),i,"0"),10,e,a,!0)),a<0&&n.c[0]&&(t="-"+t)),t},l.valueOf=l.toJSON=function(){return P(this)},l._isBigNumber=!0,l[Symbol.toStringTag]="BigNumber",l[Symbol.for("nodejs.util.inspect.custom")]=l.valueOf,null!=t&&I.set(t),I}(),fx=(new ux("1e+18"),function(e){var t=(0,Dw.u8)(e),n=Uw(t),r=n.encode,a=n.decode,i=t;return i.decode=function(e,t){return!!a(e,t)},i.encode=function(e,t,n){var a=Number(e);return r(a,t,n)},i}),dx=function(e){var t=(0,Dw.blob)(32,e),n=Uw(t),r=n.encode,a=n.decode,i=t;return i.decode=function(e,t){var n=a(e,t);return new xf.PublicKey(n)},i.encode=function(e,t,n){var a=e.toBuffer();return r(a,t,n)},i},lx=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e){return(0,ya.Z)(this,n),t.call(this,e)}return(0,ma.Z)(n)}((0,da.Z)(Error)),px=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){var e;return(0,ya.Z)(this,n),(e=t.apply(this,arguments)).name="TokenAccountNotFoundError",e}return(0,ma.Z)(n)}(lx),bx=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){var e;return(0,ya.Z)(this,n),(e=t.apply(this,arguments)).name="TokenInvalidAccountOwnerError",e}return(0,ma.Z)(n)}(lx),hx=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){var e;return(0,ya.Z)(this,n),(e=t.apply(this,arguments)).name="TokenInvalidAccountSizeError",e}return(0,ma.Z)(n)}(lx),yx=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){var e;return(0,ya.Z)(this,n),(e=t.apply(this,arguments)).name="TokenInvalidMintError",e}return(0,ma.Z)(n)}(lx);(cx=sx||(sx={}))[cx.Uninitialized=0]="Uninitialized",cx[cx.Mint=1]="Mint",cx[cx.Account=2]="Account";var mx=1,vx=(0,Dw.struct)([(0,Dw.u8)("m"),(0,Dw.u8)("n"),fx("isInitialized"),dx("signer1"),dx("signer2"),dx("signer3"),dx("signer4"),dx("signer5"),dx("signer6"),dx("signer7"),dx("signer8"),dx("signer9"),dx("signer10"),dx("signer11")]).span,gx=(0,Dw.struct)([fx("lockCpi")]).span,Ax=(0,Dw.struct)([(0,Dw.u8)("state")]).span,wx=(0,Dw.struct)([]).span,xx=(0,Dw.struct)([dx("rateAuthority"),(0,Dw.ns64)("initializationTimestamp"),(0,Dw.s16)("preUpdateAverageRate"),(0,Dw.ns64)("lastUpdateTimestamp"),(0,Dw.s16)("currentRate")]).span,_x=(0,Dw.struct)([fx("requireIncomingTransferMemos")]).span,kx=(0,Dw.struct)([dx("closeAuthority")]).span,Sx=(0,Dw.struct)([]).span,Ix=(0,Dw.struct)([dx("delegate")]).span;function Ex(e){return(0,Dw.struct)([Hw("epoch"),Hw("maximumFee"),(0,Dw.u16)("transferFeeBasisPoints")],e)}var Cx,Tx,Ox=(0,Dw.struct)([dx("transferFeeConfigAuthority"),dx("withdrawWithheldAuthority"),Hw("withheldAmount"),Ex("olderTransferFee"),Ex("newerTransferFee")]).span,Px=(0,Dw.struct)([Hw("withheldAmount")]).span;(Tx=Cx||(Cx={}))[Tx.Uninitialized=0]="Uninitialized",Tx[Tx.TransferFeeConfig=1]="TransferFeeConfig",Tx[Tx.TransferFeeAmount=2]="TransferFeeAmount",Tx[Tx.MintCloseAuthority=3]="MintCloseAuthority",Tx[Tx.ConfidentialTransferMint=4]="ConfidentialTransferMint",Tx[Tx.ConfidentialTransferAccount=5]="ConfidentialTransferAccount",Tx[Tx.DefaultAccountState=6]="DefaultAccountState",Tx[Tx.ImmutableOwner=7]="ImmutableOwner",Tx[Tx.MemoTransfer=8]="MemoTransfer",Tx[Tx.NonTransferable=9]="NonTransferable",Tx[Tx.InterestBearingConfig=10]="InterestBearingConfig",Tx[Tx.CpiGuard=11]="CpiGuard",Tx[Tx.PermanentDelegate=12]="PermanentDelegate";var Mx,Bx=2,Rx=2;function Nx(e){return function(e,t){if(0===e.length)return t;var n=Dx+mx+e.filter((function(t,n){return n===e.indexOf(t)})).map((function(e){return function(e){switch(e){case Cx.Uninitialized:return 0;case Cx.TransferFeeConfig:return Ox;case Cx.TransferFeeAmount:return Px;case Cx.MintCloseAuthority:return kx;case Cx.ConfidentialTransferMint:return 97;case Cx.ConfidentialTransferAccount:return 286;case Cx.CpiGuard:return gx;case Cx.DefaultAccountState:return Ax;case Cx.ImmutableOwner:return wx;case Cx.MemoTransfer:return _x;case Cx.NonTransferable:return Sx;case Cx.InterestBearingConfig:return xx;case Cx.PermanentDelegate:return Ix;default:throw Error("Unknown extension type: ".concat(e))}}(e)+Bx+Rx})).reduce((function(e,t){return e+t}));return n===vx?n+Bx:n}(e,Dx)}n(62332).Buffer,function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Frozen=2]="Frozen"}(Mx||(Mx={}));var Dx=(0,Dw.struct)([dx("mint"),dx("owner"),Hw("amount"),(0,Dw.u32)("delegateOption"),dx("delegate"),(0,Dw.u8)("state"),(0,Dw.u32)("isNativeOption"),Hw("isNative"),Hw("delegatedAmount"),(0,Dw.u32)("closeAuthorityOption"),dx("closeAuthority")]).span;function jx(e,t){return Ux.apply(this,arguments)}function Ux(){return(Ux=(0,ha.Z)((0,ua.Z)().mark((function e(t,n){return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Lx(t,[],n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Lx(e,t,n){return Zx.apply(this,arguments)}function Zx(){return(Zx=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Nx(n),e.next=3,t.getMinimumBalanceForRentExemption(a,r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Fx,Hx,zx=n(62332).Buffer,qx=(0,Dw.struct)([(0,Dw.u32)("mintAuthorityOption"),dx("mintAuthority"),Hw("supply"),(0,Dw.u8)("decimals"),fx("isInitialized"),(0,Dw.u32)("freezeAuthorityOption"),dx("freezeAuthority")]),Qx=qx.span;function Kx(e,t,n){return Vx.apply(this,arguments)}function Vx(){return Vx=(0,ha.Z)((0,ua.Z)().mark((function e(t,n,r){var a,i,o=arguments;return(0,ua.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=o.length>3&&void 0!==o[3]?o[3]:JA,e.next=3,t.getAccountInfo(n,r);case 3:return i=e.sent,e.abrupt("return",Jx(n,i,a));case 5:case"end":return e.stop()}}),e)}))),Vx.apply(this,arguments)}function Jx(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JA;if(!t)throw new px;if(!t.owner.equals(n))throw new bx;if(t.data.lengthQx){if(t.data.length<=Dx)throw new hx;if(t.data.length===vx)throw new hx;if(t.data[Dx]!=sx.Mint)throw new yx;a=t.data.slice(Dx+mx)}return{address:e,mintAuthority:r.mintAuthorityOption?r.mintAuthority:null,supply:r.supply,decimals:r.decimals,isInitialized:r.isInitialized,freezeAuthority:r.freezeAuthorityOption?r.freezeAuthority:null,tlvData:a}}(Hx=Fx||(Fx={}))[Hx.InitializeMint=0]="InitializeMint",Hx[Hx.InitializeAccount=1]="InitializeAccount",Hx[Hx.InitializeMultisig=2]="InitializeMultisig",Hx[Hx.Transfer=3]="Transfer",Hx[Hx.Approve=4]="Approve",Hx[Hx.Revoke=5]="Revoke",Hx[Hx.SetAuthority=6]="SetAuthority",Hx[Hx.MintTo=7]="MintTo",Hx[Hx.Burn=8]="Burn",Hx[Hx.CloseAccount=9]="CloseAccount",Hx[Hx.FreezeAccount=10]="FreezeAccount",Hx[Hx.ThawAccount=11]="ThawAccount",Hx[Hx.TransferChecked=12]="TransferChecked",Hx[Hx.ApproveChecked=13]="ApproveChecked",Hx[Hx.MintToChecked=14]="MintToChecked",Hx[Hx.BurnChecked=15]="BurnChecked",Hx[Hx.InitializeAccount2=16]="InitializeAccount2",Hx[Hx.SyncNative=17]="SyncNative",Hx[Hx.InitializeAccount3=18]="InitializeAccount3",Hx[Hx.InitializeMultisig2=19]="InitializeMultisig2",Hx[Hx.InitializeMint2=20]="InitializeMint2",Hx[Hx.GetAccountDataSize=21]="GetAccountDataSize",Hx[Hx.InitializeImmutableOwner=22]="InitializeImmutableOwner",Hx[Hx.AmountToUiAmount=23]="AmountToUiAmount",Hx[Hx.UiAmountToAmount=24]="UiAmountToAmount",Hx[Hx.InitializeMintCloseAuthority=25]="InitializeMintCloseAuthority",Hx[Hx.TransferFeeExtension=26]="TransferFeeExtension",Hx[Hx.ConfidentialTransferExtension=27]="ConfidentialTransferExtension",Hx[Hx.DefaultAccountStateExtension=28]="DefaultAccountStateExtension",Hx[Hx.Reallocate=29]="Reallocate",Hx[Hx.MemoTransferExtension=30]="MemoTransferExtension",Hx[Hx.CreateNativeMint=31]="CreateNativeMint",Hx[Hx.InitializeNonTransferableMint=32]="InitializeNonTransferableMint",Hx[Hx.InterestBearingMintExtension=33]="InterestBearingMintExtension",Hx[Hx.CpiGuardExtension=34]="CpiGuardExtension",Hx[Hx.InitializePermanentDelegate=35]="InitializePermanentDelegate";var Gx=n(62332).Buffer,Wx=(0,Dw.struct)([(0,Dw.u8)("instruction")]);function Yx(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:JA,a=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:xf.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],i=Gx.alloc(Wx.span);return Wx.encode({instruction:Fx.InitializeAccount},i),new xf.TransactionInstruction({keys:a,programId:r,data:i})}function Xx(e,t,n){if(n.length){e.push({pubkey:t,isSigner:!1,isWritable:!1});var r,a=(0,ba.Z)(n);try{for(a.s();!(r=a.n()).done;){var i=r.value;e.push({pubkey:i instanceof xf.PublicKey?i:i.publicKey,isSigner:!0,isWritable:!1})}}catch(e){a.e(e)}finally{a.f()}}else e.push({pubkey:t,isSigner:!0,isWritable:!1});return e}var $x=n(62332).Buffer,e_=(0,Dw.struct)([(0,Dw.u8)("instruction"),Hw("amount")]),t_=n(62332).Buffer,n_=(0,Dw.struct)([(0,Dw.u8)("instruction")]);function r_(e,t,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:JA,a=Xx([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}],n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]),i=t_.alloc(n_.span);return n_.encode({instruction:Fx.CloseAccount},i),new xf.TransactionInstruction({keys:a,programId:r,data:i})}function a_(e,t){return Th([new xf.PublicKey(t).toBuffer()],e)}var i_=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},o_=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},f_=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]5&&void 0!==arguments[5]?arguments[5]:JA,i=Xx([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}],n,arguments.length>4&&void 0!==arguments[4]?arguments[4]:[]),o=$x.alloc(e_.span);return e_.encode({instruction:Fx.Transfer,amount:BigInt(r)},o),new xf.TransactionInstruction({keys:i,programId:a,data:o})}(s,d.publicKey,f,c.valueOf()),y=r_(d.publicKey,f,f),[4,e.getLatestBlockhash(i)]);case 3:return m=g.sent().blockhash,(v=new xf.Transaction).recentBlockhash=m,v.feePayer=f,v.add(l,p,b,h,y),v.partialSign(d),[2,v]}}))}))}function w_(e,t,n,r,a,i,o){return b_(this,void 0,void 0,(function(){var s,c,u,f;return h_(this,(function(d){switch(d.label){case 0:return s=ov(a),c=s.tokenChain==I?s_:d_,u=(new xf.Transaction).add(c(n,t,r,s,i)),[4,e.getLatestBlockhash(o)];case 1:return f=d.sent().blockhash,u.recentBlockhash=f,u.feePayer=new xf.PublicKey(r),[2,u]}}))}))}function x_(e,t,n,r,a){return b_(this,void 0,void 0,(function(){return h_(this,(function(i){switch(i.label){case 0:return[4,Cy(e,t,n,r,a)];case 1:return[2,i.sent()]}}))}))}function __(e,t,n,r){return b_(this,void 0,void 0,(function(){var a,i,o,s,c,u;return h_(this,(function(f){switch(f.label){case 0:if(a=[],(i=wy(r)).ToChain!==Z)throw new Error("Not destined for NEAR");return[4,nm(e,n,cm(i.ToAddress))];case 1:if(o=f.sent(),s=o.found,c=o.value,!s)throw new Error("Unregistered receiver (receiving account is not registered)");return[4,Mw(e,n,i.FromChain,i.Contract)];case 2:if(u=f.sent(),"0000000000000000000000000000000000000000000000000000000000000000"===i.Contract)return[3,5];if(""===u||null===u)throw new Error("Unregistered token (has it been attested?)");return[4,am(e,u,"storage_balance_of",{account_id:c})];case 3:return null===f.sent()&&a.push({contractId:u,methodName:"storage_deposit",args:{account_id:c,registration_only:!0},gas:new(Gy())("100000000000000"),attachedDeposit:new(Gy())("2000000000000000000000")}),void 0===i.Fee||0===p_.compare(i.Fee,p_.from("0000000000000000000000000000000000000000000000000000000000000000","hex"))?[3,5]:[4,am(e,u,"storage_balance_of",{account_id:t})];case 4:null===f.sent()&&a.push({contractId:u,methodName:"storage_deposit",args:{account_id:t,registration_only:!0},gas:new(Gy())("100000000000000"),attachedDeposit:new(Gy())("2000000000000000000000")}),f.label=5;case 5:return a.push({contractId:n,methodName:"submit_vaa",args:{vaa:cm(r)},attachedDeposit:new(Gy())("100000000000000000000000"),gas:new(Gy())("150000000000000")}),a.push({contractId:n,methodName:"submit_vaa",args:{vaa:cm(r)},attachedDeposit:new(Gy())("100000000000000000000000"),gas:new(Gy())("150000000000000")}),[2,a]}}))}))}function k_(e,t,n){return kg(e,t,n)}var S_=n(62332).Buffer,I_=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},E_=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]",value_type:"u8",key:i})];case 3:return o.sent(),[2,!0];case 4:return o.sent(),[2,!1];case 5:return[2]}}))}))}var j_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),U_=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner_",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"},{internalType:"uint8",name:"decimals_",type:"uint8"},{internalType:"uint64",name:"sequence_",type:"uint64"},{internalType:"address",name:"owner_",type:"address"},{internalType:"uint16",name:"chainId_",type:"uint16"},{internalType:"bytes32",name:"nativeContract_",type:"bytes32"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"chainId",outputs:[{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"nativeContract",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account_",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient_",type:"address"},{internalType:"uint256",name:"amount_",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner_",type:"address"},{internalType:"address",name:"spender_",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender_",type:"address"},{internalType:"uint256",name:"amount_",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"sender_",type:"address"},{internalType:"address",name:"recipient_",type:"address"},{internalType:"uint256",name:"amount_",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender_",type:"address"},{internalType:"uint256",name:"addedValue_",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender_",type:"address"},{internalType:"uint256",name:"subtractedValue_",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account_",type:"address"},{internalType:"uint256",name:"amount_",type:"uint256"}],name:"mint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account_",type:"address"},{internalType:"uint256",name:"amount_",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"},{internalType:"uint64",name:"sequence_",type:"uint64"}],name:"updateDetails",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner_",type:"address"},{internalType:"address",name:"spender_",type:"address"},{internalType:"uint256",name:"value_",type:"uint256"},{internalType:"uint256",name:"deadline_",type:"uint256"},{internalType:"uint8",name:"v_",type:"uint8"},{internalType:"bytes32",name:"r_",type:"bytes32"},{internalType:"bytes32",name:"s_",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"domainFields",type:"bytes1"},{internalType:"string",name:"domainName",type:"string"},{internalType:"string",name:"domainVersion",type:"string"},{internalType:"uint256",name:"domainChainId",type:"uint256"},{internalType:"address",name:"domainVerifyingContract",type:"address"},{internalType:"bytes32",name:"domainSalt",type:"bytes32"},{internalType:"uint256[]",name:"domainExtensions",type:"uint256[]"}],stateMutability:"view",type:"function"}],L_="0x608060405234801561001057600080fd5b50611a18806100206000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806384b0196e116100b8578063a18cd7c61161007c578063a18cd7c6146102a8578063a457c2d7146102bb578063a9059cbb146102ce578063c71f4615146102e1578063d505accf146102f4578063dd62ed3e1461030757600080fd5b806384b0196e146102365780638da5cb5b1461025157806395d89b411461026c5780639a8a0592146102745780639dc29fac1461029557600080fd5b80633644e5151161010a5780633644e515146101c257806339509351146101ca5780633d6c043b146101dd57806340c10f19146101e557806370a08231146101fa5780637ecebe001461022357600080fd5b806306fdde0314610147578063095ea7b31461016557806318160ddd1461018857806323b872dd1461019a578063313ce567146101ad575b600080fd5b61014f610340565b60405161015c91906118d8565b60405180910390f35b6101786101733660046116aa565b6103d4565b604051901515815260200161015c565b6003545b60405190815260200161015c565b6101786101a8366004611606565b6103ea565b60045460405160ff909116815260200161015c565b61018c6104a0565b6101786101d83660046116aa565b6104af565b60085461018c565b6101f86101f33660046116aa565b6104e6565b005b61018c6102083660046115b3565b6001600160a01b031660009081526005602052604090205490565b61018c6102313660046115b3565b61051e565b61023e61053e565b60405161015c9796959493929190611843565b6007546040516001600160a01b03909116815260200161015c565b61014f61059c565b600754600160a81b900461ffff1660405161ffff909116815260200161015c565b6101f86102a33660046116aa565b6105ae565b6101f86102b63660046116d3565b6105e2565b6101786102c93660046116aa565b6106bc565b6101786102dc3660046116aa565b610757565b6101f86102ef366004611744565b610764565b6101f8610302366004611641565b6107e7565b61018c6103153660046115d4565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b606060008001805461035190611981565b80601f016020809104026020016040519081016040528092919081815260200182805461037d90611981565b80156103ca5780601f1061039f576101008083540402835291602001916103ca565b820191906000526020600020905b8154815290600101906020018083116103ad57829003601f168201915b5050505050905090565b60006103e1338484610953565b50600192915050565b60006103f7848484610a78565b6001600160a01b0384166000908152600660209081526040808320338452909152902054828110156104815760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6104958533610490868561193a565b610953565b506001949350505050565b60006104aa610c50565b905090565b3360008181526006602090815260408083206001600160a01b038716845290915281205490916103e1918590610490908690611922565b6007546001600160a01b031633146105105760405162461bcd60e51b8152600401610478906118eb565b61051a8282610c92565b5050565b6001600160a01b0381166000908152600e60205260408120545b92915050565b600060608060008060006060610552610340565b6040805180820190915260018152603160f81b60208201524630610574610d74565b604080516000815260208101909152601f60f81b9d959c50939a509198509650945092509050565b60606000600101805461035190611981565b6007546001600160a01b031633146105d85760405162461bcd60e51b8152600401610478906118eb565b61051a8282610dbe565b6007546001600160a01b0316331461060c5760405162461bcd60e51b8152600401610478906118eb565b60025467ffffffffffffffff80831691161061066a5760405162461bcd60e51b815260206004820152601e60248201527f63757272656e74206d6574616461746120697320757020746f206461746500006044820152606401610478565b825161067d90600090602086019061144e565b50815161069190600190602085019061144e565b506002805467ffffffffffffffff191667ffffffffffffffff83161790556106b7610f0d565b505050565b3360009081526006602090815260408083206001600160a01b03861684529091528120548281101561073e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610478565b61074d3385610490868561193a565b5060019392505050565b60006103e1338484610a78565b600754600160a01b900460ff16156107b45760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610478565b6007805460ff60a01b1916600160a01b1790556107d687878787878787610f69565b6107de610f0d565b50505050505050565b6107ef610f0d565b8342111561083f5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610478565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c988888861086e8c611005565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006108c98261102d565b905060006108d982878787611040565b9050896001600160a01b0316816001600160a01b03161461093c5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610478565b6109478a8a8a610953565b50505050505050505050565b6001600160a01b0383166109b55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610478565b6001600160a01b038216610a165760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610478565b6001600160a01b0383811660008181526006602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610adc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610478565b6001600160a01b038216610b3e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610478565b6001600160a01b03831660009081526005602052604090205481811015610bb65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610478565b610bc0828261193a565b6001600160a01b038086166000908152600560205260408082209390935590851681529081208054849290610bf6908490611922565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c4291815260200190565b60405180910390a350505050565b600b546000906001600160a01b031630148015610c6e5750600a5446145b15610c7a575060095490565b6104aa610c85611068565b610c8d610d74565b611082565b6001600160a01b038216610ce85760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610478565b8060006003016000828254610cfd9190611922565b90915550506001600160a01b03821660009081526005602052604081208054839290610d2a908490611922565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600754600854604051600160a81b90920460f01b6001600160f01b031916602083015260228201526000906042015b60405160208183030381529060405280519060200120905090565b6001600160a01b038216610e1e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610478565b6001600160a01b03821660009081526005602052604090205481811015610e925760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610478565b610e9c828261193a565b6001600160a01b03841660009081526005602052604081209190915560038054849290610eca90849061193a565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610a6b565b6000610f17611068565b90506000610f23610d74565b600d5490915082141580610f395750600c548114155b1561051a5746600a55600b80546001600160a01b03191630179055610f5e8282611082565b600955600c55600d55565b8651610f7c9060009060208a019061144e565b508551610f9090600190602089019061144e565b506004805460ff90961660ff19909616959095179094556002805467ffffffffffffffff90941667ffffffffffffffff19909416939093179092556007805461ffff909316600160a81b02600162ffff0160a01b03199093166001600160a01b03909216919091179190911790556008555050565b6001600160a01b0381166000908152600e602052604090208054600181018255905b50919050565b600061053861103a610c50565b83611136565b60008060006110518787878761115d565b9150915061105e8161124a565b5095945050505050565b6000611072610340565b604051602001610da39190611827565b60007fd87cd6ef79d4e2b95e15ce8abf732db51ec771f1ca2edccf22a46c729ac56472836110c46040805180820190915260018152603160f81b602082015290565b6040516020016110d49190611827565b60408051601f1981840301815282825280516020918201209083019490945281019190915260608101919091524660808201523060a082015260c0810183905260e0015b60405160208183030381529060405280519060200120905092915050565b60405161190160f01b60208201526022810183905260428101829052600090606201611118565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156111945750600090506003611241565b8460ff16601b141580156111ac57508460ff16601c14155b156111bd5750600090506004611241565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611211573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661123a57600060019250925050611241565b9150600090505b94509492505050565b600081600481111561126c57634e487b7160e01b600052602160045260246000fd5b14156112755750565b600181600481111561129757634e487b7160e01b600052602160045260246000fd5b14156112e55760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610478565b600281600481111561130757634e487b7160e01b600052602160045260246000fd5b14156113555760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610478565b600381600481111561137757634e487b7160e01b600052602160045260246000fd5b14156113d05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610478565b60048160048111156113f257634e487b7160e01b600052602160045260246000fd5b141561144b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610478565b50565b82805461145a90611981565b90600052602060002090601f01602090048101928261147c57600085556114c2565b82601f1061149557805160ff19168380011785556114c2565b828001600101855582156114c2579182015b828111156114c25782518255916020019190600101906114a7565b506114ce9291506114d2565b5090565b5b808211156114ce57600081556001016114d3565b80356001600160a01b03811681146114fe57600080fd5b919050565b600082601f830112611513578081fd5b813567ffffffffffffffff8082111561152e5761152e6119cc565b604051601f8301601f19908116603f01168101908282118183101715611556576115566119cc565b8160405283815286602085880101111561156e578485fd5b8360208701602083013792830160200193909352509392505050565b803567ffffffffffffffff811681146114fe57600080fd5b803560ff811681146114fe57600080fd5b6000602082840312156115c4578081fd5b6115cd826114e7565b9392505050565b600080604083850312156115e6578081fd5b6115ef836114e7565b91506115fd602084016114e7565b90509250929050565b60008060006060848603121561161a578081fd5b611623846114e7565b9250611631602085016114e7565b9150604084013590509250925092565b600080600080600080600060e0888a03121561165b578283fd5b611664886114e7565b9650611672602089016114e7565b9550604088013594506060880135935061168e608089016115a2565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156116bc578182fd5b6116c5836114e7565b946020939093013593505050565b6000806000606084860312156116e7578283fd5b833567ffffffffffffffff808211156116fe578485fd5b61170a87838801611503565b9450602086013591508082111561171f578384fd5b5061172c86828701611503565b92505061173b6040850161158a565b90509250925092565b600080600080600080600060e0888a03121561175e578283fd5b873567ffffffffffffffff80821115611775578485fd5b6117818b838c01611503565b985060208a0135915080821115611796578485fd5b506117a38a828b01611503565b9650506117b2604089016115a2565b94506117c06060890161158a565b93506117ce608089016114e7565b925060a088013561ffff811681146117e4578283fd5b8092505060c0880135905092959891949750929550565b60008151808452611813816020860160208601611951565b601f01601f19169290920160200192915050565b60008251611839818460208701611951565b9190910192915050565b60ff60f81b881681526000602060e08184015261186360e084018a6117fb565b8381036040850152611875818a6117fb565b606085018990526001600160a01b038816608086015260a0850187905284810360c08601528551808252838701925090830190845b818110156118c6578351835292840192918401916001016118aa565b50909c9b505050505050505050505050565b6020815260006115cd60208301846117fb565b60208082526017908201527f63616c6c6572206973206e6f7420746865206f776e6572000000000000000000604082015260600190565b60008219821115611935576119356119b6565b500190565b60008282101561194c5761194c6119b6565b500390565b60005b8381101561196c578181015183820152602001611954565b8381111561197b576000848401525b50505050565b600181811c9082168061199557607f821691505b6020821081141561102757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212203de9d8f3af673eec4b7def57fea7c44ddaacb566240ed7be1ee0e924bc2e586264736f6c63430008040033",Z_=function(e){function t(t){return e.call(this,U_,L_,t)||this}return j_(t,e),t.prototype.deploy=function(t){return e.prototype.deploy.call(this,t||{})},t.prototype.getDeployTransaction=function(t){return e.prototype.getDeployTransaction.call(this,t||{})},t.prototype.attach=function(t){return e.prototype.attach.call(this,t)},t.prototype.connect=function(t){return e.prototype.connect.call(this,t)},t.createInterface=function(){return new Nv.vU(U_)},t.connect=function(e,t){return new Dv.CH(e,U_,t)},t.bytecode=L_,t.abi=U_,t}(Dv.lV),F_=n(62332).Buffer,H_=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},z_=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1&&void 0!==arguments[1]?arguments[1]:18;return new ux(e).multipliedBy(new ux(10).pow(t))}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:18)}}],[{key:"make",value:function(e){return new n(e)}}]),n}(hS);n(72374),(Kk=Qk||(Qk={}))[Kk.ACCEPTED=202]="ACCEPTED",Kk[Kk.BAD_GATEWAY=502]="BAD_GATEWAY",Kk[Kk.BAD_REQUEST=400]="BAD_REQUEST",Kk[Kk.CONFLICT=409]="CONFLICT",Kk[Kk.CONTINUE=100]="CONTINUE",Kk[Kk.CREATED=201]="CREATED",Kk[Kk.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",Kk[Kk.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",Kk[Kk.FORBIDDEN=403]="FORBIDDEN",Kk[Kk.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",Kk[Kk.GONE=410]="GONE",Kk[Kk.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",Kk[Kk.IM_A_TEAPOT=418]="IM_A_TEAPOT",Kk[Kk.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",Kk[Kk.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",Kk[Kk.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",Kk[Kk.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",Kk[Kk.LOCKED=423]="LOCKED",Kk[Kk.METHOD_FAILURE=420]="METHOD_FAILURE",Kk[Kk.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",Kk[Kk.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",Kk[Kk.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",Kk[Kk.MULTI_STATUS=207]="MULTI_STATUS",Kk[Kk.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",Kk[Kk.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",Kk[Kk.NO_CONTENT=204]="NO_CONTENT",Kk[Kk.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",Kk[Kk.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",Kk[Kk.NOT_FOUND=404]="NOT_FOUND",Kk[Kk.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",Kk[Kk.NOT_MODIFIED=304]="NOT_MODIFIED",Kk[Kk.OK=200]="OK",Kk[Kk.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",Kk[Kk.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",Kk[Kk.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",Kk[Kk.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",Kk[Kk.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",Kk[Kk.PROCESSING=102]="PROCESSING",Kk[Kk.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",Kk[Kk.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",Kk[Kk.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",Kk[Kk.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",Kk[Kk.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",Kk[Kk.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",Kk[Kk.RESET_CONTENT=205]="RESET_CONTENT",Kk[Kk.SEE_OTHER=303]="SEE_OTHER",Kk[Kk.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",Kk[Kk.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",Kk[Kk.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",Kk[Kk.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",Kk[Kk.UNAUTHORIZED=401]="UNAUTHORIZED",Kk[Kk.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",Kk[Kk.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",Kk[Kk.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",Kk[Kk.USE_PROXY=305]="USE_PROXY",Kk[Kk.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",function(e){e.Idle="idle",e.Loading="loading",e.Completed="completed",e.Error="error",e.Confirmed="confirmed"}(Vk||(Vk={}));var mS="inj",vS=4e5,gS=(new hS(vS).times(5e8).toString(),vS.toString(),new hS(86400),hS.clone({ROUNDING_MODE:hS.ROUND_DOWN}),hS.clone({ROUNDING_MODE:hS.ROUND_DOWN}),function(e){return new hS(e).toFixed(18)}),AS=function e(t){var n=t.object,r=t.messageType,a=t.primaryType,i=void 0===a?"MsgValue":a,o=["order_mask","order_type","oracle_type","round","oracle_scale_factor","expiry","option","proposal_id"],s=new Map,c=new Array;for(var u in $_(n)){var f=$_(n)[u];if("@type"!==u){var d=typeof f;if("boolean"===d)c.push({name:u,type:"bool"});else if("number"===d||"bigint"===d||o.includes(u))c.push({name:u,type:wS(u)});else if("string"===d)c.push({name:u,type:"string"});else{if("object"!==d)throw new Jk(new Error("Type ".concat(u," not found")));if(Array.isArray(f)&&0===f.length)throw new Jk(new Error("Array with length 0 found"));if(Array.isArray(f)&&f.length>0){var l=typeof f[0];if("boolean"===l||"number"===l||"string"===l){for(var p in f)if(typeof p!==l)throw new Jk(new Error("Array with different types found"));"boolean"===l?c.push({name:u,type:"bool[]"}):"number"===l?c.push({name:u,type:"number[]"}):"string"===l&&c.push({name:u,type:"string[]"})}else{if("object"!==l)throw new Jk(new Error("Array with elements of unknown type found"));var b=_S({property:pS(u),parentProperty:i,messageType:r}),h=e({object:f[0],primaryType:b,messageType:r}),y=h.get(b);c.push({name:u,type:"".concat(b,"[]")}),s.set(b,y);var m,v=(0,ba.Z)(h.keys());try{for(v.s();!(m=v.n()).done;){var g=m.value;g!==i&&s.set(g,h.get(g))}}catch(e){v.e(e)}finally{v.f()}}}else if(f instanceof Date)c.push({name:u,type:"string"});else{var A=_S({property:pS(u),parentProperty:i,messageType:r}),w=e({object:f,primaryType:A,messageType:r}),x=w.get(A);c.push({name:u,type:A}),s.set(A,x);var _,k=(0,ba.Z)(w.keys());try{for(k.s();!(_=k.n()).done;){var S=_.value;S!==i&&s.set(S,w.get(S))}}catch(e){k.e(e)}finally{k.f()}}}}}return s.set(i,c),s},wS=function(e){switch(e){case"order_mask":case"order_type":case"oracle_type":case"option":return"int32";case"round":case"oracle_scale_factor":case"proposal_id":default:return"uint64";case"expiry":return"int64"}},xS=function e(t,n){var r=["proposal_id","round","oracle_scale_factor","timeout_timestamp","revision_height","revision_number","expiry"],a=["min_price_tick_size","price","quantity","margin","trigger_price","min_quantity_tick_size"],i={"exchange/MsgIncreasePositionMargin":["amount"]},o={"wasmx/MsgExecuteContractCompat":["funds"]};return Object.keys(t).reduce((function(s,c){var u=t[c];if(!u){if(n){var f=Object.keys(o).find((function(e){return e===n}));if(f&&o[f].includes(c))return(0,ca.Z)((0,ca.Z)({},s),{},(0,sa.Z)({},c,u))}return s}if("object"==typeof u)return u instanceof Date?(0,ca.Z)((0,ca.Z)({},s),{},(0,sa.Z)({},c,u.toJSON().split(".")[0]+"Z")):Array.isArray(u)?(0,ca.Z)((0,ca.Z)({},s),{},(0,sa.Z)({},c,u.map((function(t){return e(t)})))):(0,ca.Z)((0,ca.Z)({},s),{},(0,sa.Z)({},c,e(u)));if(function(e){return"number"==typeof e||!isNaN(parseFloat(e))}(u)&&r.includes(c))return(0,ca.Z)((0,ca.Z)({},s),{},(0,sa.Z)({},c,u.toString()));if("string"==typeof u){if(a.includes(c))return(0,ca.Z)((0,ca.Z)({},s),{},(0,sa.Z)({},c,gS(u)));if(n){var d=Object.keys(i).find((function(e){return e===n}));if(d&&i[d].includes(c))return(0,ca.Z)((0,ca.Z)({},s),{},(0,sa.Z)({},c,gS(u)))}}return(0,ca.Z)((0,ca.Z)({},s),{},(0,sa.Z)({},c,u))}),{})},_S=function(e){var t=e.property,n=e.parentProperty;return"wasm/MsgExecuteContract"===e.messageType?kS(t,n):SS(t,n)},kS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="CosmwasmInnerMsgMarker",r=e.replace("Type","");if("Msg"===r)return n;var a=t.replace(n,"");return"".concat(a+r,"Value")},SS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.replace("Type",""),r="MsgValue"===t?"":t.replace("Type","");return"Type".concat(r+n)};function IS(e){if(Array.isArray(e))return e.map(IS);if("object"!=typeof e||null===e)return e;var t={};return Object.keys(e).sort().forEach((function(n){void 0!==e[n]&&null!==e[n]&&(t[n]=IS(e[n]))})),t}var ES,CS,TS=function(){function e(t){(0,ya.Z)(this,e),(0,sa.Z)(this,"params",void 0),this.params=t}return(0,ma.Z)(e,[{key:"toJSON",value:function(){return JSON.stringify(IS(this.toData()))}},{key:"toEip712Types",value:function(){var e=this.toAmino();return AS({object:e.value,messageType:e.type})}},{key:"toEip712",value:function(){var e=this.toAmino(),t=e.type,n=e.value;return{type:t,value:xS(n,t)}}},{key:"toDirectSignJSON",value:function(){return JSON.stringify(IS(this.toDirectSign()))}}]),e}();!function(e){e[e.NO_HASH=0]="NO_HASH",e[e.SHA256=1]="SHA256",e[e.SHA512=2]="SHA512",e[e.KECCAK=3]="KECCAK",e[e.RIPEMD160=4]="RIPEMD160",e[e.BITCOIN=5]="BITCOIN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ES||(ES={})),function(e){e[e.NO_PREFIX=0]="NO_PREFIX",e[e.VAR_PROTO=1]="VAR_PROTO",e[e.VAR_RLP=2]="VAR_RLP",e[e.FIXED32_BIG=3]="FIXED32_BIG",e[e.FIXED32_LITTLE=4]="FIXED32_LITTLE",e[e.FIXED64_BIG=5]="FIXED64_BIG",e[e.FIXED64_LITTLE=6]="FIXED64_LITTLE",e[e.REQUIRE_32_BYTES=7]="REQUIRE_32_BYTES",e[e.REQUIRE_64_BYTES=8]="REQUIRE_64_BYTES",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(CS||(CS={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var OS=n(14508);!function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error;var PS,MS,BS,RS,NS,DS,jS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={denom:"",amount:""};n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{denom:US(e.denom)?String(e.denom):"",amount:US(e.amount)?String(e.amount):""}},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},create:function(e){return jS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={denom:"",amount:""};return r.denom=null!==(t=e.denom)&&void 0!==t?t:"",r.amount=null!==(n=e.amount)&&void 0!==n?n:"",r}};function US(e){return null!=e}(function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(e){e[e.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",e[e.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",e[e.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",e[e.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(PS||(PS={})),function(e){e[e.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",e[e.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",e[e.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",e[e.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(MS||(MS={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(e){e[e.NEW=0]="NEW",e[e.RECHECK=1]="RECHECK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(BS||(BS={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",e[e.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(RS||(RS={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.REJECT=3]="REJECT",e[e.REJECT_FORMAT=4]="REJECT_FORMAT",e[e.REJECT_SENDER=5]="REJECT_SENDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(NS||(NS={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.RETRY=3]="RETRY",e[e.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",e[e.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(DS||(DS={}));var LS=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),LS.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var ZS=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),ZS.Error,Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var FS,HS,zS=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),zS.Error,Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(e){e[e.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",e[e.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",e[e.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",e[e.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",e[e.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(FS||(FS={})),function(e){e[e.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",e[e.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",e[e.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",e[e.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",e[e.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",e[e.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(HS||(HS={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var qS=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),qS.Error,Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var QS,KS,VS=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),VS.Error,Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,(KS=QS||(QS={}))[KS.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",KS[KS.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",KS[KS.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",KS[KS.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",KS[KS.UNRECOGNIZED=-1]="UNRECOGNIZED",Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var JS,GS=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),GS.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(e){e[e.AUTHORIZATION_TYPE_UNSPECIFIED=0]="AUTHORIZATION_TYPE_UNSPECIFIED",e[e.AUTHORIZATION_TYPE_DELEGATE=1]="AUTHORIZATION_TYPE_DELEGATE",e[e.AUTHORIZATION_TYPE_UNDELEGATE=2]="AUTHORIZATION_TYPE_UNDELEGATE",e[e.AUTHORIZATION_TYPE_REDELEGATE=3]="AUTHORIZATION_TYPE_REDELEGATE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(JS||(JS={})),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var WS=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),WS.Error,Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var YS,XS,$S,eI,tI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),tI.Error,function(e){e[e.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",e[e.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",e[e.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",e[e.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",e[e.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(YS||(YS={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(e){e[e.ORDER_BY_UNSPECIFIED=0]="ORDER_BY_UNSPECIFIED",e[e.ORDER_BY_ASC=1]="ORDER_BY_ASC",e[e.ORDER_BY_DESC=2]="ORDER_BY_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(XS||(XS={})),(eI=$S||($S={}))[eI.BROADCAST_MODE_UNSPECIFIED=0]="BROADCAST_MODE_UNSPECIFIED",eI[eI.BROADCAST_MODE_BLOCK=1]="BROADCAST_MODE_BLOCK",eI[eI.BROADCAST_MODE_SYNC=2]="BROADCAST_MODE_SYNC",eI[eI.BROADCAST_MODE_ASYNC=3]="BROADCAST_MODE_ASYNC",eI[eI.UNRECOGNIZED=-1]="UNRECOGNIZED";var nI,rI,aI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),aI.Error,function(e){e[e.ACCESS_TYPE_UNSPECIFIED=0]="ACCESS_TYPE_UNSPECIFIED",e[e.ACCESS_TYPE_NOBODY=1]="ACCESS_TYPE_NOBODY",e[e.ACCESS_TYPE_ONLY_ADDRESS=2]="ACCESS_TYPE_ONLY_ADDRESS",e[e.ACCESS_TYPE_EVERYBODY=3]="ACCESS_TYPE_EVERYBODY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(nI||(nI={})),function(e){e[e.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED=0]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED",e[e.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT=1]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT",e[e.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE=2]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE",e[e.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS=3]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(rI||(rI={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var iI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),iI.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var oI,sI,cI,uI,fI,dI,lI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),lI.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(e){e[e.TYPE_DOUBLE=1]="TYPE_DOUBLE",e[e.TYPE_FLOAT=2]="TYPE_FLOAT",e[e.TYPE_INT64=3]="TYPE_INT64",e[e.TYPE_UINT64=4]="TYPE_UINT64",e[e.TYPE_INT32=5]="TYPE_INT32",e[e.TYPE_FIXED64=6]="TYPE_FIXED64",e[e.TYPE_FIXED32=7]="TYPE_FIXED32",e[e.TYPE_BOOL=8]="TYPE_BOOL",e[e.TYPE_STRING=9]="TYPE_STRING",e[e.TYPE_GROUP=10]="TYPE_GROUP",e[e.TYPE_MESSAGE=11]="TYPE_MESSAGE",e[e.TYPE_BYTES=12]="TYPE_BYTES",e[e.TYPE_UINT32=13]="TYPE_UINT32",e[e.TYPE_ENUM=14]="TYPE_ENUM",e[e.TYPE_SFIXED32=15]="TYPE_SFIXED32",e[e.TYPE_SFIXED64=16]="TYPE_SFIXED64",e[e.TYPE_SINT32=17]="TYPE_SINT32",e[e.TYPE_SINT64=18]="TYPE_SINT64",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(oI||(oI={})),function(e){e[e.LABEL_OPTIONAL=1]="LABEL_OPTIONAL",e[e.LABEL_REQUIRED=2]="LABEL_REQUIRED",e[e.LABEL_REPEATED=3]="LABEL_REPEATED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(sI||(sI={})),function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(cI||(cI={})),function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(uI||(uI={})),function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(fI||(fI={})),function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(dI||(dI={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var pI,bI,hI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),hI.Error,function(e){e[e.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",e[e.STATE_INIT=1]="STATE_INIT",e[e.STATE_TRYOPEN=2]="STATE_TRYOPEN",e[e.STATE_OPEN=3]="STATE_OPEN",e[e.STATE_CLOSED=4]="STATE_CLOSED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(pI||(pI={})),function(e){e[e.ORDER_NONE_UNSPECIFIED=0]="ORDER_NONE_UNSPECIFIED",e[e.ORDER_UNORDERED=1]="ORDER_UNORDERED",e[e.ORDER_ORDERED=2]="ORDER_ORDERED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(bI||(bI={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var yI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),yI.Error;var mI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),mI.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var vI,gI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),gI.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(e){e[e.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",e[e.STATE_INIT=1]="STATE_INIT",e[e.STATE_TRYOPEN=2]="STATE_TRYOPEN",e[e.STATE_OPEN=3]="STATE_OPEN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(vI||(vI={})),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var AI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),AI.Error;var wI,xI,_I=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),_I.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(e){e[e.DATA_TYPE_UNINITIALIZED_UNSPECIFIED=0]="DATA_TYPE_UNINITIALIZED_UNSPECIFIED",e[e.DATA_TYPE_CLIENT_STATE=1]="DATA_TYPE_CLIENT_STATE",e[e.DATA_TYPE_CONSENSUS_STATE=2]="DATA_TYPE_CONSENSUS_STATE",e[e.DATA_TYPE_CONNECTION_STATE=3]="DATA_TYPE_CONNECTION_STATE",e[e.DATA_TYPE_CHANNEL_STATE=4]="DATA_TYPE_CHANNEL_STATE",e[e.DATA_TYPE_PACKET_COMMITMENT=5]="DATA_TYPE_PACKET_COMMITMENT",e[e.DATA_TYPE_PACKET_ACKNOWLEDGEMENT=6]="DATA_TYPE_PACKET_ACKNOWLEDGEMENT",e[e.DATA_TYPE_PACKET_RECEIPT_ABSENCE=7]="DATA_TYPE_PACKET_RECEIPT_ABSENCE",e[e.DATA_TYPE_NEXT_SEQUENCE_RECV=8]="DATA_TYPE_NEXT_SEQUENCE_RECV",e[e.DATA_TYPE_HEADER=9]="DATA_TYPE_HEADER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(wI||(wI={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(e){e[e.DATA_TYPE_UNINITIALIZED_UNSPECIFIED=0]="DATA_TYPE_UNINITIALIZED_UNSPECIFIED",e[e.DATA_TYPE_CLIENT_STATE=1]="DATA_TYPE_CLIENT_STATE",e[e.DATA_TYPE_CONSENSUS_STATE=2]="DATA_TYPE_CONSENSUS_STATE",e[e.DATA_TYPE_CONNECTION_STATE=3]="DATA_TYPE_CONNECTION_STATE",e[e.DATA_TYPE_CHANNEL_STATE=4]="DATA_TYPE_CHANNEL_STATE",e[e.DATA_TYPE_PACKET_COMMITMENT=5]="DATA_TYPE_PACKET_COMMITMENT",e[e.DATA_TYPE_PACKET_ACKNOWLEDGEMENT=6]="DATA_TYPE_PACKET_ACKNOWLEDGEMENT",e[e.DATA_TYPE_PACKET_RECEIPT_ABSENCE=7]="DATA_TYPE_PACKET_RECEIPT_ABSENCE",e[e.DATA_TYPE_NEXT_SEQUENCE_RECV=8]="DATA_TYPE_NEXT_SEQUENCE_RECV",e[e.DATA_TYPE_HEADER=9]="DATA_TYPE_HEADER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(xI||(xI={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var kI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),kI.Error;var SI,II,EI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();function CI(e){switch(e){case 0:case"Unspecified":return SI.Unspecified;case 1:case"Band":return SI.Band;case 2:case"PriceFeed":return SI.PriceFeed;case 3:case"Coinbase":return SI.Coinbase;case 4:case"Chainlink":return SI.Chainlink;case 5:case"Razor":return SI.Razor;case 6:case"Dia":return SI.Dia;case 7:case"API3":return SI.API3;case 8:case"Uma":return SI.Uma;case 9:case"Pyth":return SI.Pyth;case 10:case"BandIBC":return SI.BandIBC;case 11:case"Provider":return SI.Provider;default:return SI.UNRECOGNIZED}}function TI(e){switch(e){case SI.Unspecified:return"Unspecified";case SI.Band:return"Band";case SI.PriceFeed:return"PriceFeed";case SI.Coinbase:return"Coinbase";case SI.Chainlink:return"Chainlink";case SI.Razor:return"Razor";case SI.Dia:return"Dia";case SI.API3:return"API3";case SI.Uma:return"Uma";case SI.Pyth:return"Pyth";case SI.BandIBC:return"BandIBC";case SI.Provider:return"Provider";case SI.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),EI.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(e){e[e.Unspecified=0]="Unspecified",e[e.Band=1]="Band",e[e.PriceFeed=2]="PriceFeed",e[e.Coinbase=3]="Coinbase",e[e.Chainlink=4]="Chainlink",e[e.Razor=5]="Razor",e[e.Dia=6]="Dia",e[e.API3=7]="API3",e[e.Uma=8]="Uma",e[e.Pyth=9]="Pyth",e[e.BandIBC=10]="BandIBC",e[e.Provider=11]="Provider",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(SI||(SI={})),function(e){e[e.Unknown=0]="Unknown",e[e.Trading=1]="Trading",e[e.Halted=2]="Halted",e[e.Auction=3]="Auction",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(II||(II={}));var OI,PI,MI,BI,RI,NI={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return 0!==e.groupCount&&t.uint32(8).uint32(e.groupCount),0!==e.recordsSampleSize&&t.uint32(16).uint32(e.recordsSampleSize),""!==e.mean&&t.uint32(26).string(e.mean),""!==e.twap&&t.uint32(34).string(e.twap),"0"!==e.firstTimestamp&&t.uint32(40).int64(e.firstTimestamp),"0"!==e.lastTimestamp&&t.uint32(48).int64(e.lastTimestamp),""!==e.minPrice&&t.uint32(58).string(e.minPrice),""!==e.maxPrice&&t.uint32(66).string(e.maxPrice),""!==e.medianPrice&&t.uint32(74).string(e.medianPrice),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={groupCount:0,recordsSampleSize:0,mean:"",twap:"",firstTimestamp:"0",lastTimestamp:"0",minPrice:"",maxPrice:"",medianPrice:""};n.pos>>3){case 1:a.groupCount=n.uint32();break;case 2:a.recordsSampleSize=n.uint32();break;case 3:a.mean=n.string();break;case 4:a.twap=n.string();break;case 5:a.firstTimestamp=DI(n.int64());break;case 6:a.lastTimestamp=DI(n.int64());break;case 7:a.minPrice=n.string();break;case 8:a.maxPrice=n.string();break;case 9:a.medianPrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{groupCount:jI(e.groupCount)?Number(e.groupCount):0,recordsSampleSize:jI(e.recordsSampleSize)?Number(e.recordsSampleSize):0,mean:jI(e.mean)?String(e.mean):"",twap:jI(e.twap)?String(e.twap):"",firstTimestamp:jI(e.firstTimestamp)?String(e.firstTimestamp):"0",lastTimestamp:jI(e.lastTimestamp)?String(e.lastTimestamp):"0",minPrice:jI(e.minPrice)?String(e.minPrice):"",maxPrice:jI(e.maxPrice)?String(e.maxPrice):"",medianPrice:jI(e.medianPrice)?String(e.medianPrice):""}},toJSON:function(e){var t={};return void 0!==e.groupCount&&(t.groupCount=Math.round(e.groupCount)),void 0!==e.recordsSampleSize&&(t.recordsSampleSize=Math.round(e.recordsSampleSize)),void 0!==e.mean&&(t.mean=e.mean),void 0!==e.twap&&(t.twap=e.twap),void 0!==e.firstTimestamp&&(t.firstTimestamp=e.firstTimestamp),void 0!==e.lastTimestamp&&(t.lastTimestamp=e.lastTimestamp),void 0!==e.minPrice&&(t.minPrice=e.minPrice),void 0!==e.maxPrice&&(t.maxPrice=e.maxPrice),void 0!==e.medianPrice&&(t.medianPrice=e.medianPrice),t},create:function(e){return NI.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c,u,f={groupCount:0,recordsSampleSize:0,mean:"",twap:"",firstTimestamp:"0",lastTimestamp:"0",minPrice:"",maxPrice:"",medianPrice:""};return f.groupCount=null!==(t=e.groupCount)&&void 0!==t?t:0,f.recordsSampleSize=null!==(n=e.recordsSampleSize)&&void 0!==n?n:0,f.mean=null!==(r=e.mean)&&void 0!==r?r:"",f.twap=null!==(a=e.twap)&&void 0!==a?a:"",f.firstTimestamp=null!==(i=e.firstTimestamp)&&void 0!==i?i:"0",f.lastTimestamp=null!==(o=e.lastTimestamp)&&void 0!==o?o:"0",f.minPrice=null!==(s=e.minPrice)&&void 0!==s?s:"",f.maxPrice=null!==(c=e.maxPrice)&&void 0!==c?c:"",f.medianPrice=null!==(u=e.medianPrice)&&void 0!==u?u:"",f}};function DI(e){return e.toString()}function jI(e){return null!=e}function UI(e){switch(e){case 0:case"Nobody":return OI.Nobody;case 1:case"BeginBlockerSmartContractsOnly":return OI.BeginBlockerSmartContractsOnly;case 2:case"SmartContractsOnly":return OI.SmartContractsOnly;case 3:case"Everyone":return OI.Everyone;default:return OI.UNRECOGNIZED}}function LI(e){switch(e){case 0:case"Unspecified":return PI.Unspecified;case 1:case"Active":return PI.Active;case 2:case"Paused":return PI.Paused;case 3:case"Demolished":return PI.Demolished;case 4:case"Expired":return PI.Expired;default:return PI.UNRECOGNIZED}}function ZI(e){switch(e){case PI.Unspecified:return"Unspecified";case PI.Active:return"Active";case PI.Paused:return"Paused";case PI.Demolished:return"Demolished";case PI.Expired:return"Expired";case PI.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function FI(e){switch(e){case 0:case"UNSPECIFIED":return MI.UNSPECIFIED;case 1:case"BUY":return MI.BUY;case 2:case"SELL":return MI.SELL;case 3:case"STOP_BUY":return MI.STOP_BUY;case 4:case"STOP_SELL":return MI.STOP_SELL;case 5:case"TAKE_BUY":return MI.TAKE_BUY;case 6:case"TAKE_SELL":return MI.TAKE_SELL;case 7:case"BUY_PO":return MI.BUY_PO;case 8:case"SELL_PO":return MI.SELL_PO;case 9:case"BUY_ATOMIC":return MI.BUY_ATOMIC;case 10:case"SELL_ATOMIC":return MI.SELL_ATOMIC;default:return MI.UNRECOGNIZED}}function HI(e){switch(e){case MI.UNSPECIFIED:return"UNSPECIFIED";case MI.BUY:return"BUY";case MI.SELL:return"SELL";case MI.STOP_BUY:return"STOP_BUY";case MI.STOP_SELL:return"STOP_SELL";case MI.TAKE_BUY:return"TAKE_BUY";case MI.TAKE_SELL:return"TAKE_SELL";case MI.BUY_PO:return"BUY_PO";case MI.SELL_PO:return"SELL_PO";case MI.BUY_ATOMIC:return"BUY_ATOMIC";case MI.SELL_ATOMIC:return"SELL_ATOMIC";case MI.UNRECOGNIZED:default:return"UNRECOGNIZED"}}!function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(e){e[e.Nobody=0]="Nobody",e[e.BeginBlockerSmartContractsOnly=1]="BeginBlockerSmartContractsOnly",e[e.SmartContractsOnly=2]="SmartContractsOnly",e[e.Everyone=3]="Everyone",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(OI||(OI={})),function(e){e[e.Unspecified=0]="Unspecified",e[e.Active=1]="Active",e[e.Paused=2]="Paused",e[e.Demolished=3]="Demolished",e[e.Expired=4]="Expired",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(PI||(PI={})),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.BUY=1]="BUY",e[e.SELL=2]="SELL",e[e.STOP_BUY=3]="STOP_BUY",e[e.STOP_SELL=4]="STOP_SELL",e[e.TAKE_BUY=5]="TAKE_BUY",e[e.TAKE_SELL=6]="TAKE_SELL",e[e.BUY_PO=7]="BUY_PO",e[e.SELL_PO=8]="SELL_PO",e[e.BUY_ATOMIC=9]="BUY_ATOMIC",e[e.SELL_ATOMIC=10]="SELL_ATOMIC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(MI||(MI={})),function(e){e[e.UnspecifiedExecutionType=0]="UnspecifiedExecutionType",e[e.Market=1]="Market",e[e.LimitFill=2]="LimitFill",e[e.LimitMatchRestingOrder=3]="LimitMatchRestingOrder",e[e.LimitMatchNewOrder=4]="LimitMatchNewOrder",e[e.MarketLiquidation=5]="MarketLiquidation",e[e.ExpiryMarketSettlement=6]="ExpiryMarketSettlement",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(BI||(BI={})),function(e){e[e.UNUSED=0]="UNUSED",e[e.ANY=1]="ANY",e[e.REGULAR=2]="REGULAR",e[e.CONDITIONAL=4]="CONDITIONAL",e[e.DIRECTION_BUY_OR_HIGHER=8]="DIRECTION_BUY_OR_HIGHER",e[e.DIRECTION_SELL_OR_LOWER=16]="DIRECTION_SELL_OR_LOWER",e[e.TYPE_MARKET=32]="TYPE_MARKET",e[e.TYPE_LIMIT=64]="TYPE_LIMIT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(RI||(RI={}));var zI={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.spotMarketInstantListingFee&&jS.encode(e.spotMarketInstantListingFee,t.uint32(10).fork()).ldelim(),void 0!==e.derivativeMarketInstantListingFee&&jS.encode(e.derivativeMarketInstantListingFee,t.uint32(18).fork()).ldelim(),""!==e.defaultSpotMakerFeeRate&&t.uint32(26).string(e.defaultSpotMakerFeeRate),""!==e.defaultSpotTakerFeeRate&&t.uint32(34).string(e.defaultSpotTakerFeeRate),""!==e.defaultDerivativeMakerFeeRate&&t.uint32(42).string(e.defaultDerivativeMakerFeeRate),""!==e.defaultDerivativeTakerFeeRate&&t.uint32(50).string(e.defaultDerivativeTakerFeeRate),""!==e.defaultInitialMarginRatio&&t.uint32(58).string(e.defaultInitialMarginRatio),""!==e.defaultMaintenanceMarginRatio&&t.uint32(66).string(e.defaultMaintenanceMarginRatio),"0"!==e.defaultFundingInterval&&t.uint32(72).int64(e.defaultFundingInterval),"0"!==e.fundingMultiple&&t.uint32(80).int64(e.fundingMultiple),""!==e.relayerFeeShareRate&&t.uint32(90).string(e.relayerFeeShareRate),""!==e.defaultHourlyFundingRateCap&&t.uint32(98).string(e.defaultHourlyFundingRateCap),""!==e.defaultHourlyInterestRate&&t.uint32(106).string(e.defaultHourlyInterestRate),0!==e.maxDerivativeOrderSideCount&&t.uint32(112).uint32(e.maxDerivativeOrderSideCount),""!==e.injRewardStakedRequirementThreshold&&t.uint32(122).string(e.injRewardStakedRequirementThreshold),"0"!==e.tradingRewardsVestingDuration&&t.uint32(128).int64(e.tradingRewardsVestingDuration),""!==e.liquidatorRewardShareRate&&t.uint32(138).string(e.liquidatorRewardShareRate),void 0!==e.binaryOptionsMarketInstantListingFee&&jS.encode(e.binaryOptionsMarketInstantListingFee,t.uint32(146).fork()).ldelim(),0!==e.atomicMarketOrderAccessLevel&&t.uint32(152).int32(e.atomicMarketOrderAccessLevel),""!==e.spotAtomicMarketOrderFeeMultiplier&&t.uint32(162).string(e.spotAtomicMarketOrderFeeMultiplier),""!==e.derivativeAtomicMarketOrderFeeMultiplier&&t.uint32(170).string(e.derivativeAtomicMarketOrderFeeMultiplier),""!==e.binaryOptionsAtomicMarketOrderFeeMultiplier&&t.uint32(178).string(e.binaryOptionsAtomicMarketOrderFeeMultiplier),""!==e.minimalProtocolFeeRate&&t.uint32(186).string(e.minimalProtocolFeeRate),!0===e.isInstantDerivativeMarketLaunchEnabled&&t.uint32(192).bool(e.isInstantDerivativeMarketLaunchEnabled),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={spotMarketInstantListingFee:void 0,derivativeMarketInstantListingFee:void 0,defaultSpotMakerFeeRate:"",defaultSpotTakerFeeRate:"",defaultDerivativeMakerFeeRate:"",defaultDerivativeTakerFeeRate:"",defaultInitialMarginRatio:"",defaultMaintenanceMarginRatio:"",defaultFundingInterval:"0",fundingMultiple:"0",relayerFeeShareRate:"",defaultHourlyFundingRateCap:"",defaultHourlyInterestRate:"",maxDerivativeOrderSideCount:0,injRewardStakedRequirementThreshold:"",tradingRewardsVestingDuration:"0",liquidatorRewardShareRate:"",binaryOptionsMarketInstantListingFee:void 0,atomicMarketOrderAccessLevel:0,spotAtomicMarketOrderFeeMultiplier:"",derivativeAtomicMarketOrderFeeMultiplier:"",binaryOptionsAtomicMarketOrderFeeMultiplier:"",minimalProtocolFeeRate:"",isInstantDerivativeMarketLaunchEnabled:!1};n.pos>>3){case 1:a.spotMarketInstantListingFee=jS.decode(n,n.uint32());break;case 2:a.derivativeMarketInstantListingFee=jS.decode(n,n.uint32());break;case 3:a.defaultSpotMakerFeeRate=n.string();break;case 4:a.defaultSpotTakerFeeRate=n.string();break;case 5:a.defaultDerivativeMakerFeeRate=n.string();break;case 6:a.defaultDerivativeTakerFeeRate=n.string();break;case 7:a.defaultInitialMarginRatio=n.string();break;case 8:a.defaultMaintenanceMarginRatio=n.string();break;case 9:a.defaultFundingInterval=OE(n.int64());break;case 10:a.fundingMultiple=OE(n.int64());break;case 11:a.relayerFeeShareRate=n.string();break;case 12:a.defaultHourlyFundingRateCap=n.string();break;case 13:a.defaultHourlyInterestRate=n.string();break;case 14:a.maxDerivativeOrderSideCount=n.uint32();break;case 15:a.injRewardStakedRequirementThreshold=n.string();break;case 16:a.tradingRewardsVestingDuration=OE(n.int64());break;case 17:a.liquidatorRewardShareRate=n.string();break;case 18:a.binaryOptionsMarketInstantListingFee=jS.decode(n,n.uint32());break;case 19:a.atomicMarketOrderAccessLevel=n.int32();break;case 20:a.spotAtomicMarketOrderFeeMultiplier=n.string();break;case 21:a.derivativeAtomicMarketOrderFeeMultiplier=n.string();break;case 22:a.binaryOptionsAtomicMarketOrderFeeMultiplier=n.string();break;case 23:a.minimalProtocolFeeRate=n.string();break;case 24:a.isInstantDerivativeMarketLaunchEnabled=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{spotMarketInstantListingFee:PE(e.spotMarketInstantListingFee)?jS.fromJSON(e.spotMarketInstantListingFee):void 0,derivativeMarketInstantListingFee:PE(e.derivativeMarketInstantListingFee)?jS.fromJSON(e.derivativeMarketInstantListingFee):void 0,defaultSpotMakerFeeRate:PE(e.defaultSpotMakerFeeRate)?String(e.defaultSpotMakerFeeRate):"",defaultSpotTakerFeeRate:PE(e.defaultSpotTakerFeeRate)?String(e.defaultSpotTakerFeeRate):"",defaultDerivativeMakerFeeRate:PE(e.defaultDerivativeMakerFeeRate)?String(e.defaultDerivativeMakerFeeRate):"",defaultDerivativeTakerFeeRate:PE(e.defaultDerivativeTakerFeeRate)?String(e.defaultDerivativeTakerFeeRate):"",defaultInitialMarginRatio:PE(e.defaultInitialMarginRatio)?String(e.defaultInitialMarginRatio):"",defaultMaintenanceMarginRatio:PE(e.defaultMaintenanceMarginRatio)?String(e.defaultMaintenanceMarginRatio):"",defaultFundingInterval:PE(e.defaultFundingInterval)?String(e.defaultFundingInterval):"0",fundingMultiple:PE(e.fundingMultiple)?String(e.fundingMultiple):"0",relayerFeeShareRate:PE(e.relayerFeeShareRate)?String(e.relayerFeeShareRate):"",defaultHourlyFundingRateCap:PE(e.defaultHourlyFundingRateCap)?String(e.defaultHourlyFundingRateCap):"",defaultHourlyInterestRate:PE(e.defaultHourlyInterestRate)?String(e.defaultHourlyInterestRate):"",maxDerivativeOrderSideCount:PE(e.maxDerivativeOrderSideCount)?Number(e.maxDerivativeOrderSideCount):0,injRewardStakedRequirementThreshold:PE(e.injRewardStakedRequirementThreshold)?String(e.injRewardStakedRequirementThreshold):"",tradingRewardsVestingDuration:PE(e.tradingRewardsVestingDuration)?String(e.tradingRewardsVestingDuration):"0",liquidatorRewardShareRate:PE(e.liquidatorRewardShareRate)?String(e.liquidatorRewardShareRate):"",binaryOptionsMarketInstantListingFee:PE(e.binaryOptionsMarketInstantListingFee)?jS.fromJSON(e.binaryOptionsMarketInstantListingFee):void 0,atomicMarketOrderAccessLevel:PE(e.atomicMarketOrderAccessLevel)?UI(e.atomicMarketOrderAccessLevel):0,spotAtomicMarketOrderFeeMultiplier:PE(e.spotAtomicMarketOrderFeeMultiplier)?String(e.spotAtomicMarketOrderFeeMultiplier):"",derivativeAtomicMarketOrderFeeMultiplier:PE(e.derivativeAtomicMarketOrderFeeMultiplier)?String(e.derivativeAtomicMarketOrderFeeMultiplier):"",binaryOptionsAtomicMarketOrderFeeMultiplier:PE(e.binaryOptionsAtomicMarketOrderFeeMultiplier)?String(e.binaryOptionsAtomicMarketOrderFeeMultiplier):"",minimalProtocolFeeRate:PE(e.minimalProtocolFeeRate)?String(e.minimalProtocolFeeRate):"",isInstantDerivativeMarketLaunchEnabled:!!PE(e.isInstantDerivativeMarketLaunchEnabled)&&Boolean(e.isInstantDerivativeMarketLaunchEnabled)}},toJSON:function(e){var t={};return void 0!==e.spotMarketInstantListingFee&&(t.spotMarketInstantListingFee=e.spotMarketInstantListingFee?jS.toJSON(e.spotMarketInstantListingFee):void 0),void 0!==e.derivativeMarketInstantListingFee&&(t.derivativeMarketInstantListingFee=e.derivativeMarketInstantListingFee?jS.toJSON(e.derivativeMarketInstantListingFee):void 0),void 0!==e.defaultSpotMakerFeeRate&&(t.defaultSpotMakerFeeRate=e.defaultSpotMakerFeeRate),void 0!==e.defaultSpotTakerFeeRate&&(t.defaultSpotTakerFeeRate=e.defaultSpotTakerFeeRate),void 0!==e.defaultDerivativeMakerFeeRate&&(t.defaultDerivativeMakerFeeRate=e.defaultDerivativeMakerFeeRate),void 0!==e.defaultDerivativeTakerFeeRate&&(t.defaultDerivativeTakerFeeRate=e.defaultDerivativeTakerFeeRate),void 0!==e.defaultInitialMarginRatio&&(t.defaultInitialMarginRatio=e.defaultInitialMarginRatio),void 0!==e.defaultMaintenanceMarginRatio&&(t.defaultMaintenanceMarginRatio=e.defaultMaintenanceMarginRatio),void 0!==e.defaultFundingInterval&&(t.defaultFundingInterval=e.defaultFundingInterval),void 0!==e.fundingMultiple&&(t.fundingMultiple=e.fundingMultiple),void 0!==e.relayerFeeShareRate&&(t.relayerFeeShareRate=e.relayerFeeShareRate),void 0!==e.defaultHourlyFundingRateCap&&(t.defaultHourlyFundingRateCap=e.defaultHourlyFundingRateCap),void 0!==e.defaultHourlyInterestRate&&(t.defaultHourlyInterestRate=e.defaultHourlyInterestRate),void 0!==e.maxDerivativeOrderSideCount&&(t.maxDerivativeOrderSideCount=Math.round(e.maxDerivativeOrderSideCount)),void 0!==e.injRewardStakedRequirementThreshold&&(t.injRewardStakedRequirementThreshold=e.injRewardStakedRequirementThreshold),void 0!==e.tradingRewardsVestingDuration&&(t.tradingRewardsVestingDuration=e.tradingRewardsVestingDuration),void 0!==e.liquidatorRewardShareRate&&(t.liquidatorRewardShareRate=e.liquidatorRewardShareRate),void 0!==e.binaryOptionsMarketInstantListingFee&&(t.binaryOptionsMarketInstantListingFee=e.binaryOptionsMarketInstantListingFee?jS.toJSON(e.binaryOptionsMarketInstantListingFee):void 0),void 0!==e.atomicMarketOrderAccessLevel&&(t.atomicMarketOrderAccessLevel=function(e){switch(e){case OI.Nobody:return"Nobody";case OI.BeginBlockerSmartContractsOnly:return"BeginBlockerSmartContractsOnly";case OI.SmartContractsOnly:return"SmartContractsOnly";case OI.Everyone:return"Everyone";case OI.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.atomicMarketOrderAccessLevel)),void 0!==e.spotAtomicMarketOrderFeeMultiplier&&(t.spotAtomicMarketOrderFeeMultiplier=e.spotAtomicMarketOrderFeeMultiplier),void 0!==e.derivativeAtomicMarketOrderFeeMultiplier&&(t.derivativeAtomicMarketOrderFeeMultiplier=e.derivativeAtomicMarketOrderFeeMultiplier),void 0!==e.binaryOptionsAtomicMarketOrderFeeMultiplier&&(t.binaryOptionsAtomicMarketOrderFeeMultiplier=e.binaryOptionsAtomicMarketOrderFeeMultiplier),void 0!==e.minimalProtocolFeeRate&&(t.minimalProtocolFeeRate=e.minimalProtocolFeeRate),void 0!==e.isInstantDerivativeMarketLaunchEnabled&&(t.isInstantDerivativeMarketLaunchEnabled=e.isInstantDerivativeMarketLaunchEnabled),t},create:function(e){return zI.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c,u,f,d,l,p,b,h,y,m,v,g,A,w,x={spotMarketInstantListingFee:void 0,derivativeMarketInstantListingFee:void 0,defaultSpotMakerFeeRate:"",defaultSpotTakerFeeRate:"",defaultDerivativeMakerFeeRate:"",defaultDerivativeTakerFeeRate:"",defaultInitialMarginRatio:"",defaultMaintenanceMarginRatio:"",defaultFundingInterval:"0",fundingMultiple:"0",relayerFeeShareRate:"",defaultHourlyFundingRateCap:"",defaultHourlyInterestRate:"",maxDerivativeOrderSideCount:0,injRewardStakedRequirementThreshold:"",tradingRewardsVestingDuration:"0",liquidatorRewardShareRate:"",binaryOptionsMarketInstantListingFee:void 0,atomicMarketOrderAccessLevel:0,spotAtomicMarketOrderFeeMultiplier:"",derivativeAtomicMarketOrderFeeMultiplier:"",binaryOptionsAtomicMarketOrderFeeMultiplier:"",minimalProtocolFeeRate:"",isInstantDerivativeMarketLaunchEnabled:!1};return x.spotMarketInstantListingFee=void 0!==e.spotMarketInstantListingFee&&null!==e.spotMarketInstantListingFee?jS.fromPartial(e.spotMarketInstantListingFee):void 0,x.derivativeMarketInstantListingFee=void 0!==e.derivativeMarketInstantListingFee&&null!==e.derivativeMarketInstantListingFee?jS.fromPartial(e.derivativeMarketInstantListingFee):void 0,x.defaultSpotMakerFeeRate=null!==(t=e.defaultSpotMakerFeeRate)&&void 0!==t?t:"",x.defaultSpotTakerFeeRate=null!==(n=e.defaultSpotTakerFeeRate)&&void 0!==n?n:"",x.defaultDerivativeMakerFeeRate=null!==(r=e.defaultDerivativeMakerFeeRate)&&void 0!==r?r:"",x.defaultDerivativeTakerFeeRate=null!==(a=e.defaultDerivativeTakerFeeRate)&&void 0!==a?a:"",x.defaultInitialMarginRatio=null!==(i=e.defaultInitialMarginRatio)&&void 0!==i?i:"",x.defaultMaintenanceMarginRatio=null!==(o=e.defaultMaintenanceMarginRatio)&&void 0!==o?o:"",x.defaultFundingInterval=null!==(s=e.defaultFundingInterval)&&void 0!==s?s:"0",x.fundingMultiple=null!==(c=e.fundingMultiple)&&void 0!==c?c:"0",x.relayerFeeShareRate=null!==(u=e.relayerFeeShareRate)&&void 0!==u?u:"",x.defaultHourlyFundingRateCap=null!==(f=e.defaultHourlyFundingRateCap)&&void 0!==f?f:"",x.defaultHourlyInterestRate=null!==(d=e.defaultHourlyInterestRate)&&void 0!==d?d:"",x.maxDerivativeOrderSideCount=null!==(l=e.maxDerivativeOrderSideCount)&&void 0!==l?l:0,x.injRewardStakedRequirementThreshold=null!==(p=e.injRewardStakedRequirementThreshold)&&void 0!==p?p:"",x.tradingRewardsVestingDuration=null!==(b=e.tradingRewardsVestingDuration)&&void 0!==b?b:"0",x.liquidatorRewardShareRate=null!==(h=e.liquidatorRewardShareRate)&&void 0!==h?h:"",x.binaryOptionsMarketInstantListingFee=void 0!==e.binaryOptionsMarketInstantListingFee&&null!==e.binaryOptionsMarketInstantListingFee?jS.fromPartial(e.binaryOptionsMarketInstantListingFee):void 0,x.atomicMarketOrderAccessLevel=null!==(y=e.atomicMarketOrderAccessLevel)&&void 0!==y?y:0,x.spotAtomicMarketOrderFeeMultiplier=null!==(m=e.spotAtomicMarketOrderFeeMultiplier)&&void 0!==m?m:"",x.derivativeAtomicMarketOrderFeeMultiplier=null!==(v=e.derivativeAtomicMarketOrderFeeMultiplier)&&void 0!==v?v:"",x.binaryOptionsAtomicMarketOrderFeeMultiplier=null!==(g=e.binaryOptionsAtomicMarketOrderFeeMultiplier)&&void 0!==g?g:"",x.minimalProtocolFeeRate=null!==(A=e.minimalProtocolFeeRate)&&void 0!==A?A:"",x.isInstantDerivativeMarketLaunchEnabled=null!==(w=e.isInstantDerivativeMarketLaunchEnabled)&&void 0!==w&&w,x}},qI={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.feeMultiplier&&t.uint32(18).string(e.feeMultiplier),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",feeMultiplier:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.feeMultiplier=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:PE(e.marketId)?String(e.marketId):"",feeMultiplier:PE(e.feeMultiplier)?String(e.feeMultiplier):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.feeMultiplier&&(t.feeMultiplier=e.feeMultiplier),t},create:function(e){return qI.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",feeMultiplier:""};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.feeMultiplier=null!==(n=e.feeMultiplier)&&void 0!==n?n:"",r}},QI={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.ticker&&t.uint32(10).string(e.ticker),""!==e.oracleBase&&t.uint32(18).string(e.oracleBase),""!==e.oracleQuote&&t.uint32(26).string(e.oracleQuote),0!==e.oracleType&&t.uint32(32).int32(e.oracleType),0!==e.oracleScaleFactor&&t.uint32(40).uint32(e.oracleScaleFactor),""!==e.quoteDenom&&t.uint32(50).string(e.quoteDenom),""!==e.marketId&&t.uint32(58).string(e.marketId),""!==e.initialMarginRatio&&t.uint32(66).string(e.initialMarginRatio),""!==e.maintenanceMarginRatio&&t.uint32(74).string(e.maintenanceMarginRatio),""!==e.makerFeeRate&&t.uint32(82).string(e.makerFeeRate),""!==e.takerFeeRate&&t.uint32(90).string(e.takerFeeRate),""!==e.relayerFeeShareRate&&t.uint32(98).string(e.relayerFeeShareRate),!0===e.isPerpetual&&t.uint32(104).bool(e.isPerpetual),0!==e.status&&t.uint32(112).int32(e.status),""!==e.minPriceTickSize&&t.uint32(122).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.uint32(130).string(e.minQuantityTickSize),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={ticker:"",oracleBase:"",oracleQuote:"",oracleType:0,oracleScaleFactor:0,quoteDenom:"",marketId:"",initialMarginRatio:"",maintenanceMarginRatio:"",makerFeeRate:"",takerFeeRate:"",relayerFeeShareRate:"",isPerpetual:!1,status:0,minPriceTickSize:"",minQuantityTickSize:""};n.pos>>3){case 1:a.ticker=n.string();break;case 2:a.oracleBase=n.string();break;case 3:a.oracleQuote=n.string();break;case 4:a.oracleType=n.int32();break;case 5:a.oracleScaleFactor=n.uint32();break;case 6:a.quoteDenom=n.string();break;case 7:a.marketId=n.string();break;case 8:a.initialMarginRatio=n.string();break;case 9:a.maintenanceMarginRatio=n.string();break;case 10:a.makerFeeRate=n.string();break;case 11:a.takerFeeRate=n.string();break;case 12:a.relayerFeeShareRate=n.string();break;case 13:a.isPerpetual=n.bool();break;case 14:a.status=n.int32();break;case 15:a.minPriceTickSize=n.string();break;case 16:a.minQuantityTickSize=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{ticker:PE(e.ticker)?String(e.ticker):"",oracleBase:PE(e.oracleBase)?String(e.oracleBase):"",oracleQuote:PE(e.oracleQuote)?String(e.oracleQuote):"",oracleType:PE(e.oracleType)?CI(e.oracleType):0,oracleScaleFactor:PE(e.oracleScaleFactor)?Number(e.oracleScaleFactor):0,quoteDenom:PE(e.quoteDenom)?String(e.quoteDenom):"",marketId:PE(e.marketId)?String(e.marketId):"",initialMarginRatio:PE(e.initialMarginRatio)?String(e.initialMarginRatio):"",maintenanceMarginRatio:PE(e.maintenanceMarginRatio)?String(e.maintenanceMarginRatio):"",makerFeeRate:PE(e.makerFeeRate)?String(e.makerFeeRate):"",takerFeeRate:PE(e.takerFeeRate)?String(e.takerFeeRate):"",relayerFeeShareRate:PE(e.relayerFeeShareRate)?String(e.relayerFeeShareRate):"",isPerpetual:!!PE(e.isPerpetual)&&Boolean(e.isPerpetual),status:PE(e.status)?LI(e.status):0,minPriceTickSize:PE(e.minPriceTickSize)?String(e.minPriceTickSize):"",minQuantityTickSize:PE(e.minQuantityTickSize)?String(e.minQuantityTickSize):""}},toJSON:function(e){var t={};return void 0!==e.ticker&&(t.ticker=e.ticker),void 0!==e.oracleBase&&(t.oracleBase=e.oracleBase),void 0!==e.oracleQuote&&(t.oracleQuote=e.oracleQuote),void 0!==e.oracleType&&(t.oracleType=TI(e.oracleType)),void 0!==e.oracleScaleFactor&&(t.oracleScaleFactor=Math.round(e.oracleScaleFactor)),void 0!==e.quoteDenom&&(t.quoteDenom=e.quoteDenom),void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.initialMarginRatio&&(t.initialMarginRatio=e.initialMarginRatio),void 0!==e.maintenanceMarginRatio&&(t.maintenanceMarginRatio=e.maintenanceMarginRatio),void 0!==e.makerFeeRate&&(t.makerFeeRate=e.makerFeeRate),void 0!==e.takerFeeRate&&(t.takerFeeRate=e.takerFeeRate),void 0!==e.relayerFeeShareRate&&(t.relayerFeeShareRate=e.relayerFeeShareRate),void 0!==e.isPerpetual&&(t.isPerpetual=e.isPerpetual),void 0!==e.status&&(t.status=ZI(e.status)),void 0!==e.minPriceTickSize&&(t.minPriceTickSize=e.minPriceTickSize),void 0!==e.minQuantityTickSize&&(t.minQuantityTickSize=e.minQuantityTickSize),t},create:function(e){return QI.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c,u,f,d,l,p,b,h,y,m={ticker:"",oracleBase:"",oracleQuote:"",oracleType:0,oracleScaleFactor:0,quoteDenom:"",marketId:"",initialMarginRatio:"",maintenanceMarginRatio:"",makerFeeRate:"",takerFeeRate:"",relayerFeeShareRate:"",isPerpetual:!1,status:0,minPriceTickSize:"",minQuantityTickSize:""};return m.ticker=null!==(t=e.ticker)&&void 0!==t?t:"",m.oracleBase=null!==(n=e.oracleBase)&&void 0!==n?n:"",m.oracleQuote=null!==(r=e.oracleQuote)&&void 0!==r?r:"",m.oracleType=null!==(a=e.oracleType)&&void 0!==a?a:0,m.oracleScaleFactor=null!==(i=e.oracleScaleFactor)&&void 0!==i?i:0,m.quoteDenom=null!==(o=e.quoteDenom)&&void 0!==o?o:"",m.marketId=null!==(s=e.marketId)&&void 0!==s?s:"",m.initialMarginRatio=null!==(c=e.initialMarginRatio)&&void 0!==c?c:"",m.maintenanceMarginRatio=null!==(u=e.maintenanceMarginRatio)&&void 0!==u?u:"",m.makerFeeRate=null!==(f=e.makerFeeRate)&&void 0!==f?f:"",m.takerFeeRate=null!==(d=e.takerFeeRate)&&void 0!==d?d:"",m.relayerFeeShareRate=null!==(l=e.relayerFeeShareRate)&&void 0!==l?l:"",m.isPerpetual=null!==(p=e.isPerpetual)&&void 0!==p&&p,m.status=null!==(b=e.status)&&void 0!==b?b:0,m.minPriceTickSize=null!==(h=e.minPriceTickSize)&&void 0!==h?h:"",m.minQuantityTickSize=null!==(y=e.minQuantityTickSize)&&void 0!==y?y:"",m}},KI={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.ticker&&t.uint32(10).string(e.ticker),""!==e.oracleSymbol&&t.uint32(18).string(e.oracleSymbol),""!==e.oracleProvider&&t.uint32(26).string(e.oracleProvider),0!==e.oracleType&&t.uint32(32).int32(e.oracleType),0!==e.oracleScaleFactor&&t.uint32(40).uint32(e.oracleScaleFactor),"0"!==e.expirationTimestamp&&t.uint32(48).int64(e.expirationTimestamp),"0"!==e.settlementTimestamp&&t.uint32(56).int64(e.settlementTimestamp),""!==e.admin&&t.uint32(66).string(e.admin),""!==e.quoteDenom&&t.uint32(74).string(e.quoteDenom),""!==e.marketId&&t.uint32(82).string(e.marketId),""!==e.makerFeeRate&&t.uint32(90).string(e.makerFeeRate),""!==e.takerFeeRate&&t.uint32(98).string(e.takerFeeRate),""!==e.relayerFeeShareRate&&t.uint32(106).string(e.relayerFeeShareRate),0!==e.status&&t.uint32(112).int32(e.status),""!==e.minPriceTickSize&&t.uint32(122).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.uint32(130).string(e.minQuantityTickSize),""!==e.settlementPrice&&t.uint32(138).string(e.settlementPrice),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={ticker:"",oracleSymbol:"",oracleProvider:"",oracleType:0,oracleScaleFactor:0,expirationTimestamp:"0",settlementTimestamp:"0",admin:"",quoteDenom:"",marketId:"",makerFeeRate:"",takerFeeRate:"",relayerFeeShareRate:"",status:0,minPriceTickSize:"",minQuantityTickSize:"",settlementPrice:""};n.pos>>3){case 1:a.ticker=n.string();break;case 2:a.oracleSymbol=n.string();break;case 3:a.oracleProvider=n.string();break;case 4:a.oracleType=n.int32();break;case 5:a.oracleScaleFactor=n.uint32();break;case 6:a.expirationTimestamp=OE(n.int64());break;case 7:a.settlementTimestamp=OE(n.int64());break;case 8:a.admin=n.string();break;case 9:a.quoteDenom=n.string();break;case 10:a.marketId=n.string();break;case 11:a.makerFeeRate=n.string();break;case 12:a.takerFeeRate=n.string();break;case 13:a.relayerFeeShareRate=n.string();break;case 14:a.status=n.int32();break;case 15:a.minPriceTickSize=n.string();break;case 16:a.minQuantityTickSize=n.string();break;case 17:a.settlementPrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{ticker:PE(e.ticker)?String(e.ticker):"",oracleSymbol:PE(e.oracleSymbol)?String(e.oracleSymbol):"",oracleProvider:PE(e.oracleProvider)?String(e.oracleProvider):"",oracleType:PE(e.oracleType)?CI(e.oracleType):0,oracleScaleFactor:PE(e.oracleScaleFactor)?Number(e.oracleScaleFactor):0,expirationTimestamp:PE(e.expirationTimestamp)?String(e.expirationTimestamp):"0",settlementTimestamp:PE(e.settlementTimestamp)?String(e.settlementTimestamp):"0",admin:PE(e.admin)?String(e.admin):"",quoteDenom:PE(e.quoteDenom)?String(e.quoteDenom):"",marketId:PE(e.marketId)?String(e.marketId):"",makerFeeRate:PE(e.makerFeeRate)?String(e.makerFeeRate):"",takerFeeRate:PE(e.takerFeeRate)?String(e.takerFeeRate):"",relayerFeeShareRate:PE(e.relayerFeeShareRate)?String(e.relayerFeeShareRate):"",status:PE(e.status)?LI(e.status):0,minPriceTickSize:PE(e.minPriceTickSize)?String(e.minPriceTickSize):"",minQuantityTickSize:PE(e.minQuantityTickSize)?String(e.minQuantityTickSize):"",settlementPrice:PE(e.settlementPrice)?String(e.settlementPrice):""}},toJSON:function(e){var t={};return void 0!==e.ticker&&(t.ticker=e.ticker),void 0!==e.oracleSymbol&&(t.oracleSymbol=e.oracleSymbol),void 0!==e.oracleProvider&&(t.oracleProvider=e.oracleProvider),void 0!==e.oracleType&&(t.oracleType=TI(e.oracleType)),void 0!==e.oracleScaleFactor&&(t.oracleScaleFactor=Math.round(e.oracleScaleFactor)),void 0!==e.expirationTimestamp&&(t.expirationTimestamp=e.expirationTimestamp),void 0!==e.settlementTimestamp&&(t.settlementTimestamp=e.settlementTimestamp),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.quoteDenom&&(t.quoteDenom=e.quoteDenom),void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.makerFeeRate&&(t.makerFeeRate=e.makerFeeRate),void 0!==e.takerFeeRate&&(t.takerFeeRate=e.takerFeeRate),void 0!==e.relayerFeeShareRate&&(t.relayerFeeShareRate=e.relayerFeeShareRate),void 0!==e.status&&(t.status=ZI(e.status)),void 0!==e.minPriceTickSize&&(t.minPriceTickSize=e.minPriceTickSize),void 0!==e.minQuantityTickSize&&(t.minQuantityTickSize=e.minQuantityTickSize),void 0!==e.settlementPrice&&(t.settlementPrice=e.settlementPrice),t},create:function(e){return KI.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c,u,f,d,l,p,b,h,y,m,v={ticker:"",oracleSymbol:"",oracleProvider:"",oracleType:0,oracleScaleFactor:0,expirationTimestamp:"0",settlementTimestamp:"0",admin:"",quoteDenom:"",marketId:"",makerFeeRate:"",takerFeeRate:"",relayerFeeShareRate:"",status:0,minPriceTickSize:"",minQuantityTickSize:"",settlementPrice:""};return v.ticker=null!==(t=e.ticker)&&void 0!==t?t:"",v.oracleSymbol=null!==(n=e.oracleSymbol)&&void 0!==n?n:"",v.oracleProvider=null!==(r=e.oracleProvider)&&void 0!==r?r:"",v.oracleType=null!==(a=e.oracleType)&&void 0!==a?a:0,v.oracleScaleFactor=null!==(i=e.oracleScaleFactor)&&void 0!==i?i:0,v.expirationTimestamp=null!==(o=e.expirationTimestamp)&&void 0!==o?o:"0",v.settlementTimestamp=null!==(s=e.settlementTimestamp)&&void 0!==s?s:"0",v.admin=null!==(c=e.admin)&&void 0!==c?c:"",v.quoteDenom=null!==(u=e.quoteDenom)&&void 0!==u?u:"",v.marketId=null!==(f=e.marketId)&&void 0!==f?f:"",v.makerFeeRate=null!==(d=e.makerFeeRate)&&void 0!==d?d:"",v.takerFeeRate=null!==(l=e.takerFeeRate)&&void 0!==l?l:"",v.relayerFeeShareRate=null!==(p=e.relayerFeeShareRate)&&void 0!==p?p:"",v.status=null!==(b=e.status)&&void 0!==b?b:0,v.minPriceTickSize=null!==(h=e.minPriceTickSize)&&void 0!==h?h:"",v.minQuantityTickSize=null!==(y=e.minQuantityTickSize)&&void 0!==y?y:"",v.settlementPrice=null!==(m=e.settlementPrice)&&void 0!==m?m:"",v}},VI={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),"0"!==e.expirationTimestamp&&t.uint32(16).int64(e.expirationTimestamp),"0"!==e.twapStartTimestamp&&t.uint32(24).int64(e.twapStartTimestamp),""!==e.expirationTwapStartPriceCumulative&&t.uint32(34).string(e.expirationTwapStartPriceCumulative),""!==e.settlementPrice&&t.uint32(42).string(e.settlementPrice),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",expirationTimestamp:"0",twapStartTimestamp:"0",expirationTwapStartPriceCumulative:"",settlementPrice:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.expirationTimestamp=OE(n.int64());break;case 3:a.twapStartTimestamp=OE(n.int64());break;case 4:a.expirationTwapStartPriceCumulative=n.string();break;case 5:a.settlementPrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:PE(e.marketId)?String(e.marketId):"",expirationTimestamp:PE(e.expirationTimestamp)?String(e.expirationTimestamp):"0",twapStartTimestamp:PE(e.twapStartTimestamp)?String(e.twapStartTimestamp):"0",expirationTwapStartPriceCumulative:PE(e.expirationTwapStartPriceCumulative)?String(e.expirationTwapStartPriceCumulative):"",settlementPrice:PE(e.settlementPrice)?String(e.settlementPrice):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.expirationTimestamp&&(t.expirationTimestamp=e.expirationTimestamp),void 0!==e.twapStartTimestamp&&(t.twapStartTimestamp=e.twapStartTimestamp),void 0!==e.expirationTwapStartPriceCumulative&&(t.expirationTwapStartPriceCumulative=e.expirationTwapStartPriceCumulative),void 0!==e.settlementPrice&&(t.settlementPrice=e.settlementPrice),t},create:function(e){return VI.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={marketId:"",expirationTimestamp:"0",twapStartTimestamp:"0",expirationTwapStartPriceCumulative:"",settlementPrice:""};return o.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",o.expirationTimestamp=null!==(n=e.expirationTimestamp)&&void 0!==n?n:"0",o.twapStartTimestamp=null!==(r=e.twapStartTimestamp)&&void 0!==r?r:"0",o.expirationTwapStartPriceCumulative=null!==(a=e.expirationTwapStartPriceCumulative)&&void 0!==a?a:"",o.settlementPrice=null!==(i=e.settlementPrice)&&void 0!==i?i:"",o}},JI={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.hourlyFundingRateCap&&t.uint32(18).string(e.hourlyFundingRateCap),""!==e.hourlyInterestRate&&t.uint32(26).string(e.hourlyInterestRate),"0"!==e.nextFundingTimestamp&&t.uint32(32).int64(e.nextFundingTimestamp),"0"!==e.fundingInterval&&t.uint32(40).int64(e.fundingInterval),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",hourlyFundingRateCap:"",hourlyInterestRate:"",nextFundingTimestamp:"0",fundingInterval:"0"};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.hourlyFundingRateCap=n.string();break;case 3:a.hourlyInterestRate=n.string();break;case 4:a.nextFundingTimestamp=OE(n.int64());break;case 5:a.fundingInterval=OE(n.int64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:PE(e.marketId)?String(e.marketId):"",hourlyFundingRateCap:PE(e.hourlyFundingRateCap)?String(e.hourlyFundingRateCap):"",hourlyInterestRate:PE(e.hourlyInterestRate)?String(e.hourlyInterestRate):"",nextFundingTimestamp:PE(e.nextFundingTimestamp)?String(e.nextFundingTimestamp):"0",fundingInterval:PE(e.fundingInterval)?String(e.fundingInterval):"0"}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.hourlyFundingRateCap&&(t.hourlyFundingRateCap=e.hourlyFundingRateCap),void 0!==e.hourlyInterestRate&&(t.hourlyInterestRate=e.hourlyInterestRate),void 0!==e.nextFundingTimestamp&&(t.nextFundingTimestamp=e.nextFundingTimestamp),void 0!==e.fundingInterval&&(t.fundingInterval=e.fundingInterval),t},create:function(e){return JI.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={marketId:"",hourlyFundingRateCap:"",hourlyInterestRate:"",nextFundingTimestamp:"0",fundingInterval:"0"};return o.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",o.hourlyFundingRateCap=null!==(n=e.hourlyFundingRateCap)&&void 0!==n?n:"",o.hourlyInterestRate=null!==(r=e.hourlyInterestRate)&&void 0!==r?r:"",o.nextFundingTimestamp=null!==(a=e.nextFundingTimestamp)&&void 0!==a?a:"0",o.fundingInterval=null!==(i=e.fundingInterval)&&void 0!==i?i:"0",o}},GI={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.cumulativeFunding&&t.uint32(10).string(e.cumulativeFunding),""!==e.cumulativePrice&&t.uint32(18).string(e.cumulativePrice),"0"!==e.lastTimestamp&&t.uint32(24).int64(e.lastTimestamp),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={cumulativeFunding:"",cumulativePrice:"",lastTimestamp:"0"};n.pos>>3){case 1:a.cumulativeFunding=n.string();break;case 2:a.cumulativePrice=n.string();break;case 3:a.lastTimestamp=OE(n.int64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{cumulativeFunding:PE(e.cumulativeFunding)?String(e.cumulativeFunding):"",cumulativePrice:PE(e.cumulativePrice)?String(e.cumulativePrice):"",lastTimestamp:PE(e.lastTimestamp)?String(e.lastTimestamp):"0"}},toJSON:function(e){var t={};return void 0!==e.cumulativeFunding&&(t.cumulativeFunding=e.cumulativeFunding),void 0!==e.cumulativePrice&&(t.cumulativePrice=e.cumulativePrice),void 0!==e.lastTimestamp&&(t.lastTimestamp=e.lastTimestamp),t},create:function(e){return GI.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={cumulativeFunding:"",cumulativePrice:"",lastTimestamp:"0"};return a.cumulativeFunding=null!==(t=e.cumulativeFunding)&&void 0!==t?t:"",a.cumulativePrice=null!==(n=e.cumulativePrice)&&void 0!==n?n:"",a.lastTimestamp=null!==(r=e.lastTimestamp)&&void 0!==r?r:"0",a}},WI={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.settlementPrice&&t.uint32(18).string(e.settlementPrice),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",settlementPrice:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.settlementPrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:PE(e.marketId)?String(e.marketId):"",settlementPrice:PE(e.settlementPrice)?String(e.settlementPrice):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.settlementPrice&&(t.settlementPrice=e.settlementPrice),t},create:function(e){return WI.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",settlementPrice:""};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.settlementPrice=null!==(n=e.settlementPrice)&&void 0!==n?n:"",r}},YI={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.ticker&&t.uint32(10).string(e.ticker),""!==e.baseDenom&&t.uint32(18).string(e.baseDenom),""!==e.quoteDenom&&t.uint32(26).string(e.quoteDenom),""!==e.makerFeeRate&&t.uint32(34).string(e.makerFeeRate),""!==e.takerFeeRate&&t.uint32(42).string(e.takerFeeRate),""!==e.relayerFeeShareRate&&t.uint32(50).string(e.relayerFeeShareRate),""!==e.marketId&&t.uint32(58).string(e.marketId),0!==e.status&&t.uint32(64).int32(e.status),""!==e.minPriceTickSize&&t.uint32(74).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.uint32(82).string(e.minQuantityTickSize),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={ticker:"",baseDenom:"",quoteDenom:"",makerFeeRate:"",takerFeeRate:"",relayerFeeShareRate:"",marketId:"",status:0,minPriceTickSize:"",minQuantityTickSize:""};n.pos>>3){case 1:a.ticker=n.string();break;case 2:a.baseDenom=n.string();break;case 3:a.quoteDenom=n.string();break;case 4:a.makerFeeRate=n.string();break;case 5:a.takerFeeRate=n.string();break;case 6:a.relayerFeeShareRate=n.string();break;case 7:a.marketId=n.string();break;case 8:a.status=n.int32();break;case 9:a.minPriceTickSize=n.string();break;case 10:a.minQuantityTickSize=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{ticker:PE(e.ticker)?String(e.ticker):"",baseDenom:PE(e.baseDenom)?String(e.baseDenom):"",quoteDenom:PE(e.quoteDenom)?String(e.quoteDenom):"",makerFeeRate:PE(e.makerFeeRate)?String(e.makerFeeRate):"",takerFeeRate:PE(e.takerFeeRate)?String(e.takerFeeRate):"",relayerFeeShareRate:PE(e.relayerFeeShareRate)?String(e.relayerFeeShareRate):"",marketId:PE(e.marketId)?String(e.marketId):"",status:PE(e.status)?LI(e.status):0,minPriceTickSize:PE(e.minPriceTickSize)?String(e.minPriceTickSize):"",minQuantityTickSize:PE(e.minQuantityTickSize)?String(e.minQuantityTickSize):""}},toJSON:function(e){var t={};return void 0!==e.ticker&&(t.ticker=e.ticker),void 0!==e.baseDenom&&(t.baseDenom=e.baseDenom),void 0!==e.quoteDenom&&(t.quoteDenom=e.quoteDenom),void 0!==e.makerFeeRate&&(t.makerFeeRate=e.makerFeeRate),void 0!==e.takerFeeRate&&(t.takerFeeRate=e.takerFeeRate),void 0!==e.relayerFeeShareRate&&(t.relayerFeeShareRate=e.relayerFeeShareRate),void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.status&&(t.status=ZI(e.status)),void 0!==e.minPriceTickSize&&(t.minPriceTickSize=e.minPriceTickSize),void 0!==e.minQuantityTickSize&&(t.minQuantityTickSize=e.minQuantityTickSize),t},create:function(e){return YI.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c,u,f,d={ticker:"",baseDenom:"",quoteDenom:"",makerFeeRate:"",takerFeeRate:"",relayerFeeShareRate:"",marketId:"",status:0,minPriceTickSize:"",minQuantityTickSize:""};return d.ticker=null!==(t=e.ticker)&&void 0!==t?t:"",d.baseDenom=null!==(n=e.baseDenom)&&void 0!==n?n:"",d.quoteDenom=null!==(r=e.quoteDenom)&&void 0!==r?r:"",d.makerFeeRate=null!==(a=e.makerFeeRate)&&void 0!==a?a:"",d.takerFeeRate=null!==(i=e.takerFeeRate)&&void 0!==i?i:"",d.relayerFeeShareRate=null!==(o=e.relayerFeeShareRate)&&void 0!==o?o:"",d.marketId=null!==(s=e.marketId)&&void 0!==s?s:"",d.status=null!==(c=e.status)&&void 0!==c?c:0,d.minPriceTickSize=null!==(u=e.minPriceTickSize)&&void 0!==u?u:"",d.minQuantityTickSize=null!==(f=e.minQuantityTickSize)&&void 0!==f?f:"",d}},XI={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.availableBalance&&t.uint32(10).string(e.availableBalance),""!==e.totalBalance&&t.uint32(18).string(e.totalBalance),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={availableBalance:"",totalBalance:""};n.pos>>3){case 1:a.availableBalance=n.string();break;case 2:a.totalBalance=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{availableBalance:PE(e.availableBalance)?String(e.availableBalance):"",totalBalance:PE(e.totalBalance)?String(e.totalBalance):""}},toJSON:function(e){var t={};return void 0!==e.availableBalance&&(t.availableBalance=e.availableBalance),void 0!==e.totalBalance&&(t.totalBalance=e.totalBalance),t},create:function(e){return XI.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={availableBalance:"",totalBalance:""};return r.availableBalance=null!==(t=e.availableBalance)&&void 0!==t?t:"",r.totalBalance=null!==(n=e.totalBalance)&&void 0!==n?n:"",r}},$I={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return 0!==e.nonce&&t.uint32(8).uint32(e.nonce),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={nonce:0};n.pos>>3==1?a.nonce=n.uint32():n.skipType(7&i)}return a},fromJSON:function(e){return{nonce:PE(e.nonce)?Number(e.nonce):0}},toJSON:function(e){var t={};return void 0!==e.nonce&&(t.nonce=Math.round(e.nonce)),t},create:function(e){return $I.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={nonce:0};return n.nonce=null!==(t=e.nonce)&&void 0!==t?t:0,n}},eE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.feeRecipient&&t.uint32(18).string(e.feeRecipient),""!==e.price&&t.uint32(26).string(e.price),""!==e.quantity&&t.uint32(34).string(e.quantity),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",feeRecipient:"",price:"",quantity:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.feeRecipient=n.string();break;case 3:a.price=n.string();break;case 4:a.quantity=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:PE(e.subaccountId)?String(e.subaccountId):"",feeRecipient:PE(e.feeRecipient)?String(e.feeRecipient):"",price:PE(e.price)?String(e.price):"",quantity:PE(e.quantity)?String(e.quantity):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.feeRecipient&&(t.feeRecipient=e.feeRecipient),void 0!==e.price&&(t.price=e.price),void 0!==e.quantity&&(t.quantity=e.quantity),t},create:function(e){return eE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={subaccountId:"",feeRecipient:"",price:"",quantity:""};return i.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",i.feeRecipient=null!==(n=e.feeRecipient)&&void 0!==n?n:"",i.price=null!==(r=e.price)&&void 0!==r?r:"",i.quantity=null!==(a=e.quantity)&&void 0!==a?a:"",i}};function tE(){return{orderInfo:void 0,orderType:0,fillable:"",triggerPrice:"",orderHash:new Uint8Array}}var nE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.orderInfo&&eE.encode(e.orderInfo,t.uint32(10).fork()).ldelim(),0!==e.orderType&&t.uint32(16).int32(e.orderType),""!==e.fillable&&t.uint32(26).string(e.fillable),""!==e.triggerPrice&&t.uint32(34).string(e.triggerPrice),0!==e.orderHash.length&&t.uint32(42).bytes(e.orderHash),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a=tE();n.pos>>3){case 1:a.orderInfo=eE.decode(n,n.uint32());break;case 2:a.orderType=n.int32();break;case 3:a.fillable=n.string();break;case 4:a.triggerPrice=n.string();break;case 5:a.orderHash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{orderInfo:PE(e.orderInfo)?eE.fromJSON(e.orderInfo):void 0,orderType:PE(e.orderType)?FI(e.orderType):0,fillable:PE(e.fillable)?String(e.fillable):"",triggerPrice:PE(e.triggerPrice)?String(e.triggerPrice):"",orderHash:PE(e.orderHash)?CE(e.orderHash):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.orderInfo&&(t.orderInfo=e.orderInfo?eE.toJSON(e.orderInfo):void 0),void 0!==e.orderType&&(t.orderType=HI(e.orderType)),void 0!==e.fillable&&(t.fillable=e.fillable),void 0!==e.triggerPrice&&(t.triggerPrice=e.triggerPrice),void 0!==e.orderHash&&(t.orderHash=TE(void 0!==e.orderHash?e.orderHash:new Uint8Array)),t},create:function(e){return nE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i=tE();return i.orderInfo=void 0!==e.orderInfo&&null!==e.orderInfo?eE.fromPartial(e.orderInfo):void 0,i.orderType=null!==(t=e.orderType)&&void 0!==t?t:0,i.fillable=null!==(n=e.fillable)&&void 0!==n?n:"",i.triggerPrice=null!==(r=e.triggerPrice)&&void 0!==r?r:"",i.orderHash=null!==(a=e.orderHash)&&void 0!==a?a:new Uint8Array,i}},rE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return 0!==e.vanillaLimitOrderCount&&t.uint32(8).uint32(e.vanillaLimitOrderCount),0!==e.reduceOnlyLimitOrderCount&&t.uint32(16).uint32(e.reduceOnlyLimitOrderCount),""!==e.aggregateReduceOnlyQuantity&&t.uint32(26).string(e.aggregateReduceOnlyQuantity),""!==e.aggregateVanillaQuantity&&t.uint32(34).string(e.aggregateVanillaQuantity),0!==e.vanillaConditionalOrderCount&&t.uint32(40).uint32(e.vanillaConditionalOrderCount),0!==e.reduceOnlyConditionalOrderCount&&t.uint32(48).uint32(e.reduceOnlyConditionalOrderCount),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={vanillaLimitOrderCount:0,reduceOnlyLimitOrderCount:0,aggregateReduceOnlyQuantity:"",aggregateVanillaQuantity:"",vanillaConditionalOrderCount:0,reduceOnlyConditionalOrderCount:0};n.pos>>3){case 1:a.vanillaLimitOrderCount=n.uint32();break;case 2:a.reduceOnlyLimitOrderCount=n.uint32();break;case 3:a.aggregateReduceOnlyQuantity=n.string();break;case 4:a.aggregateVanillaQuantity=n.string();break;case 5:a.vanillaConditionalOrderCount=n.uint32();break;case 6:a.reduceOnlyConditionalOrderCount=n.uint32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{vanillaLimitOrderCount:PE(e.vanillaLimitOrderCount)?Number(e.vanillaLimitOrderCount):0,reduceOnlyLimitOrderCount:PE(e.reduceOnlyLimitOrderCount)?Number(e.reduceOnlyLimitOrderCount):0,aggregateReduceOnlyQuantity:PE(e.aggregateReduceOnlyQuantity)?String(e.aggregateReduceOnlyQuantity):"",aggregateVanillaQuantity:PE(e.aggregateVanillaQuantity)?String(e.aggregateVanillaQuantity):"",vanillaConditionalOrderCount:PE(e.vanillaConditionalOrderCount)?Number(e.vanillaConditionalOrderCount):0,reduceOnlyConditionalOrderCount:PE(e.reduceOnlyConditionalOrderCount)?Number(e.reduceOnlyConditionalOrderCount):0}},toJSON:function(e){var t={};return void 0!==e.vanillaLimitOrderCount&&(t.vanillaLimitOrderCount=Math.round(e.vanillaLimitOrderCount)),void 0!==e.reduceOnlyLimitOrderCount&&(t.reduceOnlyLimitOrderCount=Math.round(e.reduceOnlyLimitOrderCount)),void 0!==e.aggregateReduceOnlyQuantity&&(t.aggregateReduceOnlyQuantity=e.aggregateReduceOnlyQuantity),void 0!==e.aggregateVanillaQuantity&&(t.aggregateVanillaQuantity=e.aggregateVanillaQuantity),void 0!==e.vanillaConditionalOrderCount&&(t.vanillaConditionalOrderCount=Math.round(e.vanillaConditionalOrderCount)),void 0!==e.reduceOnlyConditionalOrderCount&&(t.reduceOnlyConditionalOrderCount=Math.round(e.reduceOnlyConditionalOrderCount)),t},create:function(e){return rE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s={vanillaLimitOrderCount:0,reduceOnlyLimitOrderCount:0,aggregateReduceOnlyQuantity:"",aggregateVanillaQuantity:"",vanillaConditionalOrderCount:0,reduceOnlyConditionalOrderCount:0};return s.vanillaLimitOrderCount=null!==(t=e.vanillaLimitOrderCount)&&void 0!==t?t:0,s.reduceOnlyLimitOrderCount=null!==(n=e.reduceOnlyLimitOrderCount)&&void 0!==n?n:0,s.aggregateReduceOnlyQuantity=null!==(r=e.aggregateReduceOnlyQuantity)&&void 0!==r?r:"",s.aggregateVanillaQuantity=null!==(a=e.aggregateVanillaQuantity)&&void 0!==a?a:"",s.vanillaConditionalOrderCount=null!==(i=e.vanillaConditionalOrderCount)&&void 0!==i?i:0,s.reduceOnlyConditionalOrderCount=null!==(o=e.reduceOnlyConditionalOrderCount)&&void 0!==o?o:0,s}},aE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.price&&t.uint32(10).string(e.price),""!==e.quantity&&t.uint32(18).string(e.quantity),!0===e.isReduceOnly&&t.uint32(24).bool(e.isReduceOnly),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={price:"",quantity:"",isReduceOnly:!1};n.pos>>3){case 1:a.price=n.string();break;case 2:a.quantity=n.string();break;case 3:a.isReduceOnly=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{price:PE(e.price)?String(e.price):"",quantity:PE(e.quantity)?String(e.quantity):"",isReduceOnly:!!PE(e.isReduceOnly)&&Boolean(e.isReduceOnly)}},toJSON:function(e){var t={};return void 0!==e.price&&(t.price=e.price),void 0!==e.quantity&&(t.quantity=e.quantity),void 0!==e.isReduceOnly&&(t.isReduceOnly=e.isReduceOnly),t},create:function(e){return aE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={price:"",quantity:"",isReduceOnly:!1};return a.price=null!==(t=e.price)&&void 0!==t?t:"",a.quantity=null!==(n=e.quantity)&&void 0!==n?n:"",a.isReduceOnly=null!==(r=e.isReduceOnly)&&void 0!==r&&r,a}};function iE(){return{order:void 0,orderHash:new Uint8Array}}var oE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.order&&aE.encode(e.order,t.uint32(10).fork()).ldelim(),0!==e.orderHash.length&&t.uint32(18).bytes(e.orderHash),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a=iE();n.pos>>3){case 1:a.order=aE.decode(n,n.uint32());break;case 2:a.orderHash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{order:PE(e.order)?aE.fromJSON(e.order):void 0,orderHash:PE(e.orderHash)?CE(e.orderHash):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.order&&(t.order=e.order?aE.toJSON(e.order):void 0),void 0!==e.orderHash&&(t.orderHash=TE(void 0!==e.orderHash?e.orderHash:new Uint8Array)),t},create:function(e){return oE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n=iE();return n.order=void 0!==e.order&&null!==e.order?aE.fromPartial(e.order):void 0,n.orderHash=null!==(t=e.orderHash)&&void 0!==t?t:new Uint8Array,n}};function sE(){return{orderInfo:void 0,orderType:0,margin:"",fillable:"",triggerPrice:"",orderHash:new Uint8Array}}var cE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.orderInfo&&eE.encode(e.orderInfo,t.uint32(10).fork()).ldelim(),0!==e.orderType&&t.uint32(16).int32(e.orderType),""!==e.margin&&t.uint32(26).string(e.margin),""!==e.fillable&&t.uint32(34).string(e.fillable),""!==e.triggerPrice&&t.uint32(42).string(e.triggerPrice),0!==e.orderHash.length&&t.uint32(50).bytes(e.orderHash),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a=sE();n.pos>>3){case 1:a.orderInfo=eE.decode(n,n.uint32());break;case 2:a.orderType=n.int32();break;case 3:a.margin=n.string();break;case 4:a.fillable=n.string();break;case 5:a.triggerPrice=n.string();break;case 6:a.orderHash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{orderInfo:PE(e.orderInfo)?eE.fromJSON(e.orderInfo):void 0,orderType:PE(e.orderType)?FI(e.orderType):0,margin:PE(e.margin)?String(e.margin):"",fillable:PE(e.fillable)?String(e.fillable):"",triggerPrice:PE(e.triggerPrice)?String(e.triggerPrice):"",orderHash:PE(e.orderHash)?CE(e.orderHash):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.orderInfo&&(t.orderInfo=e.orderInfo?eE.toJSON(e.orderInfo):void 0),void 0!==e.orderType&&(t.orderType=HI(e.orderType)),void 0!==e.margin&&(t.margin=e.margin),void 0!==e.fillable&&(t.fillable=e.fillable),void 0!==e.triggerPrice&&(t.triggerPrice=e.triggerPrice),void 0!==e.orderHash&&(t.orderHash=TE(void 0!==e.orderHash?e.orderHash:new Uint8Array)),t},create:function(e){return cE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o=sE();return o.orderInfo=void 0!==e.orderInfo&&null!==e.orderInfo?eE.fromPartial(e.orderInfo):void 0,o.orderType=null!==(t=e.orderType)&&void 0!==t?t:0,o.margin=null!==(n=e.margin)&&void 0!==n?n:"",o.fillable=null!==(r=e.fillable)&&void 0!==r?r:"",o.triggerPrice=null!==(a=e.triggerPrice)&&void 0!==a?a:"",o.orderHash=null!==(i=e.orderHash)&&void 0!==i?i:new Uint8Array,o}};function uE(){return{orderInfo:void 0,orderType:0,margin:"",marginHold:"",triggerPrice:"",orderHash:new Uint8Array}}var fE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.orderInfo&&eE.encode(e.orderInfo,t.uint32(10).fork()).ldelim(),0!==e.orderType&&t.uint32(16).int32(e.orderType),""!==e.margin&&t.uint32(26).string(e.margin),""!==e.marginHold&&t.uint32(34).string(e.marginHold),""!==e.triggerPrice&&t.uint32(42).string(e.triggerPrice),0!==e.orderHash.length&&t.uint32(50).bytes(e.orderHash),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a=uE();n.pos>>3){case 1:a.orderInfo=eE.decode(n,n.uint32());break;case 2:a.orderType=n.int32();break;case 3:a.margin=n.string();break;case 4:a.marginHold=n.string();break;case 5:a.triggerPrice=n.string();break;case 6:a.orderHash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{orderInfo:PE(e.orderInfo)?eE.fromJSON(e.orderInfo):void 0,orderType:PE(e.orderType)?FI(e.orderType):0,margin:PE(e.margin)?String(e.margin):"",marginHold:PE(e.marginHold)?String(e.marginHold):"",triggerPrice:PE(e.triggerPrice)?String(e.triggerPrice):"",orderHash:PE(e.orderHash)?CE(e.orderHash):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.orderInfo&&(t.orderInfo=e.orderInfo?eE.toJSON(e.orderInfo):void 0),void 0!==e.orderType&&(t.orderType=HI(e.orderType)),void 0!==e.margin&&(t.margin=e.margin),void 0!==e.marginHold&&(t.marginHold=e.marginHold),void 0!==e.triggerPrice&&(t.triggerPrice=e.triggerPrice),void 0!==e.orderHash&&(t.orderHash=TE(void 0!==e.orderHash?e.orderHash:new Uint8Array)),t},create:function(e){return fE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o=uE();return o.orderInfo=void 0!==e.orderInfo&&null!==e.orderInfo?eE.fromPartial(e.orderInfo):void 0,o.orderType=null!==(t=e.orderType)&&void 0!==t?t:0,o.margin=null!==(n=e.margin)&&void 0!==n?n:"",o.marginHold=null!==(r=e.marginHold)&&void 0!==r?r:"",o.triggerPrice=null!==(a=e.triggerPrice)&&void 0!==a?a:"",o.orderHash=null!==(i=e.orderHash)&&void 0!==i?i:new Uint8Array,o}},dE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return!0===e.isLong&&t.uint32(8).bool(e.isLong),""!==e.quantity&&t.uint32(18).string(e.quantity),""!==e.entryPrice&&t.uint32(26).string(e.entryPrice),""!==e.margin&&t.uint32(34).string(e.margin),""!==e.cumulativeFundingEntry&&t.uint32(42).string(e.cumulativeFundingEntry),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={isLong:!1,quantity:"",entryPrice:"",margin:"",cumulativeFundingEntry:""};n.pos>>3){case 1:a.isLong=n.bool();break;case 2:a.quantity=n.string();break;case 3:a.entryPrice=n.string();break;case 4:a.margin=n.string();break;case 5:a.cumulativeFundingEntry=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{isLong:!!PE(e.isLong)&&Boolean(e.isLong),quantity:PE(e.quantity)?String(e.quantity):"",entryPrice:PE(e.entryPrice)?String(e.entryPrice):"",margin:PE(e.margin)?String(e.margin):"",cumulativeFundingEntry:PE(e.cumulativeFundingEntry)?String(e.cumulativeFundingEntry):""}},toJSON:function(e){var t={};return void 0!==e.isLong&&(t.isLong=e.isLong),void 0!==e.quantity&&(t.quantity=e.quantity),void 0!==e.entryPrice&&(t.entryPrice=e.entryPrice),void 0!==e.margin&&(t.margin=e.margin),void 0!==e.cumulativeFundingEntry&&(t.cumulativeFundingEntry=e.cumulativeFundingEntry),t},create:function(e){return dE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={isLong:!1,quantity:"",entryPrice:"",margin:"",cumulativeFundingEntry:""};return o.isLong=null!==(t=e.isLong)&&void 0!==t&&t,o.quantity=null!==(n=e.quantity)&&void 0!==n?n:"",o.entryPrice=null!==(r=e.entryPrice)&&void 0!==r?r:"",o.margin=null!==(a=e.margin)&&void 0!==a?a:"",o.cumulativeFundingEntry=null!==(i=e.cumulativeFundingEntry)&&void 0!==i?i:"",o}},lE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.makerPointsMultiplier&&t.uint32(10).string(e.makerPointsMultiplier),""!==e.takerPointsMultiplier&&t.uint32(18).string(e.takerPointsMultiplier),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={makerPointsMultiplier:"",takerPointsMultiplier:""};n.pos>>3){case 1:a.makerPointsMultiplier=n.string();break;case 2:a.takerPointsMultiplier=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{makerPointsMultiplier:PE(e.makerPointsMultiplier)?String(e.makerPointsMultiplier):"",takerPointsMultiplier:PE(e.takerPointsMultiplier)?String(e.takerPointsMultiplier):""}},toJSON:function(e){var t={};return void 0!==e.makerPointsMultiplier&&(t.makerPointsMultiplier=e.makerPointsMultiplier),void 0!==e.takerPointsMultiplier&&(t.takerPointsMultiplier=e.takerPointsMultiplier),t},create:function(e){return lE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={makerPointsMultiplier:"",takerPointsMultiplier:""};return r.makerPointsMultiplier=null!==(t=e.makerPointsMultiplier)&&void 0!==t?t:"",r.takerPointsMultiplier=null!==(n=e.takerPointsMultiplier)&&void 0!==n?n:"",r}},pE={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.boostedSpotMarketIds);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ba.Z)(e.spotMarketMultipliers);try{for(o.s();!(i=o.n()).done;){var s=i.value;lE.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}var c,u=(0,ba.Z)(e.boostedDerivativeMarketIds);try{for(u.s();!(c=u.n()).done;){var f=c.value;n.uint32(26).string(f)}}catch(e){u.e(e)}finally{u.f()}var d,l=(0,ba.Z)(e.derivativeMarketMultipliers);try{for(l.s();!(d=l.n()).done;){var p=d.value;lE.encode(p,n.uint32(34).fork()).ldelim()}}catch(e){l.e(e)}finally{l.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={boostedSpotMarketIds:[],spotMarketMultipliers:[],boostedDerivativeMarketIds:[],derivativeMarketMultipliers:[]};n.pos>>3){case 1:a.boostedSpotMarketIds.push(n.string());break;case 2:a.spotMarketMultipliers.push(lE.decode(n,n.uint32()));break;case 3:a.boostedDerivativeMarketIds.push(n.string());break;case 4:a.derivativeMarketMultipliers.push(lE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{boostedSpotMarketIds:Array.isArray(null==e?void 0:e.boostedSpotMarketIds)?e.boostedSpotMarketIds.map((function(e){return String(e)})):[],spotMarketMultipliers:Array.isArray(null==e?void 0:e.spotMarketMultipliers)?e.spotMarketMultipliers.map((function(e){return lE.fromJSON(e)})):[],boostedDerivativeMarketIds:Array.isArray(null==e?void 0:e.boostedDerivativeMarketIds)?e.boostedDerivativeMarketIds.map((function(e){return String(e)})):[],derivativeMarketMultipliers:Array.isArray(null==e?void 0:e.derivativeMarketMultipliers)?e.derivativeMarketMultipliers.map((function(e){return lE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.boostedSpotMarketIds?t.boostedSpotMarketIds=e.boostedSpotMarketIds.map((function(e){return e})):t.boostedSpotMarketIds=[],e.spotMarketMultipliers?t.spotMarketMultipliers=e.spotMarketMultipliers.map((function(e){return e?lE.toJSON(e):void 0})):t.spotMarketMultipliers=[],e.boostedDerivativeMarketIds?t.boostedDerivativeMarketIds=e.boostedDerivativeMarketIds.map((function(e){return e})):t.boostedDerivativeMarketIds=[],e.derivativeMarketMultipliers?t.derivativeMarketMultipliers=e.derivativeMarketMultipliers.map((function(e){return e?lE.toJSON(e):void 0})):t.derivativeMarketMultipliers=[],t},create:function(e){return pE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={boostedSpotMarketIds:[],spotMarketMultipliers:[],boostedDerivativeMarketIds:[],derivativeMarketMultipliers:[]};return i.boostedSpotMarketIds=(null===(t=e.boostedSpotMarketIds)||void 0===t?void 0:t.map((function(e){return e})))||[],i.spotMarketMultipliers=(null===(n=e.spotMarketMultipliers)||void 0===n?void 0:n.map((function(e){return lE.fromPartial(e)})))||[],i.boostedDerivativeMarketIds=(null===(r=e.boostedDerivativeMarketIds)||void 0===r?void 0:r.map((function(e){return e})))||[],i.derivativeMarketMultipliers=(null===(a=e.derivativeMarketMultipliers)||void 0===a?void 0:a.map((function(e){return lE.fromPartial(e)})))||[],i}},bE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();"0"!==e.startTimestamp&&t.uint32(8).int64(e.startTimestamp);var n,r=(0,ba.Z)(e.maxCampaignRewards);try{for(r.s();!(n=r.n()).done;){var a=n.value;jS.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={startTimestamp:"0",maxCampaignRewards:[]};n.pos>>3){case 1:a.startTimestamp=OE(n.int64());break;case 2:a.maxCampaignRewards.push(jS.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{startTimestamp:PE(e.startTimestamp)?String(e.startTimestamp):"0",maxCampaignRewards:Array.isArray(null==e?void 0:e.maxCampaignRewards)?e.maxCampaignRewards.map((function(e){return jS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.startTimestamp&&(t.startTimestamp=e.startTimestamp),e.maxCampaignRewards?t.maxCampaignRewards=e.maxCampaignRewards.map((function(e){return e?jS.toJSON(e):void 0})):t.maxCampaignRewards=[],t},create:function(e){return bE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={startTimestamp:"0",maxCampaignRewards:[]};return r.startTimestamp=null!==(t=e.startTimestamp)&&void 0!==t?t:"0",r.maxCampaignRewards=(null===(n=e.maxCampaignRewards)||void 0===n?void 0:n.map((function(e){return jS.fromPartial(e)})))||[],r}},hE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();"0"!==e.campaignDurationSeconds&&t.uint32(8).int64(e.campaignDurationSeconds);var n,r=(0,ba.Z)(e.quoteDenoms);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.uint32(18).string(a)}}catch(e){r.e(e)}finally{r.f()}void 0!==e.tradingRewardBoostInfo&&pE.encode(e.tradingRewardBoostInfo,t.uint32(26).fork()).ldelim();var i,o=(0,ba.Z)(e.disqualifiedMarketIds);try{for(o.s();!(i=o.n()).done;){var s=i.value;t.uint32(34).string(s)}}catch(e){o.e(e)}finally{o.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={campaignDurationSeconds:"0",quoteDenoms:[],tradingRewardBoostInfo:void 0,disqualifiedMarketIds:[]};n.pos>>3){case 1:a.campaignDurationSeconds=OE(n.int64());break;case 2:a.quoteDenoms.push(n.string());break;case 3:a.tradingRewardBoostInfo=pE.decode(n,n.uint32());break;case 4:a.disqualifiedMarketIds.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{campaignDurationSeconds:PE(e.campaignDurationSeconds)?String(e.campaignDurationSeconds):"0",quoteDenoms:Array.isArray(null==e?void 0:e.quoteDenoms)?e.quoteDenoms.map((function(e){return String(e)})):[],tradingRewardBoostInfo:PE(e.tradingRewardBoostInfo)?pE.fromJSON(e.tradingRewardBoostInfo):void 0,disqualifiedMarketIds:Array.isArray(null==e?void 0:e.disqualifiedMarketIds)?e.disqualifiedMarketIds.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.campaignDurationSeconds&&(t.campaignDurationSeconds=e.campaignDurationSeconds),e.quoteDenoms?t.quoteDenoms=e.quoteDenoms.map((function(e){return e})):t.quoteDenoms=[],void 0!==e.tradingRewardBoostInfo&&(t.tradingRewardBoostInfo=e.tradingRewardBoostInfo?pE.toJSON(e.tradingRewardBoostInfo):void 0),e.disqualifiedMarketIds?t.disqualifiedMarketIds=e.disqualifiedMarketIds.map((function(e){return e})):t.disqualifiedMarketIds=[],t},create:function(e){return hE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={campaignDurationSeconds:"0",quoteDenoms:[],tradingRewardBoostInfo:void 0,disqualifiedMarketIds:[]};return a.campaignDurationSeconds=null!==(t=e.campaignDurationSeconds)&&void 0!==t?t:"0",a.quoteDenoms=(null===(n=e.quoteDenoms)||void 0===n?void 0:n.map((function(e){return e})))||[],a.tradingRewardBoostInfo=void 0!==e.tradingRewardBoostInfo&&null!==e.tradingRewardBoostInfo?pE.fromPartial(e.tradingRewardBoostInfo):void 0,a.disqualifiedMarketIds=(null===(r=e.disqualifiedMarketIds)||void 0===r?void 0:r.map((function(e){return e})))||[],a}},yE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.makerDiscountRate&&t.uint32(10).string(e.makerDiscountRate),""!==e.takerDiscountRate&&t.uint32(18).string(e.takerDiscountRate),""!==e.stakedAmount&&t.uint32(26).string(e.stakedAmount),""!==e.volume&&t.uint32(34).string(e.volume),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={makerDiscountRate:"",takerDiscountRate:"",stakedAmount:"",volume:""};n.pos>>3){case 1:a.makerDiscountRate=n.string();break;case 2:a.takerDiscountRate=n.string();break;case 3:a.stakedAmount=n.string();break;case 4:a.volume=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{makerDiscountRate:PE(e.makerDiscountRate)?String(e.makerDiscountRate):"",takerDiscountRate:PE(e.takerDiscountRate)?String(e.takerDiscountRate):"",stakedAmount:PE(e.stakedAmount)?String(e.stakedAmount):"",volume:PE(e.volume)?String(e.volume):""}},toJSON:function(e){var t={};return void 0!==e.makerDiscountRate&&(t.makerDiscountRate=e.makerDiscountRate),void 0!==e.takerDiscountRate&&(t.takerDiscountRate=e.takerDiscountRate),void 0!==e.stakedAmount&&(t.stakedAmount=e.stakedAmount),void 0!==e.volume&&(t.volume=e.volume),t},create:function(e){return yE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={makerDiscountRate:"",takerDiscountRate:"",stakedAmount:"",volume:""};return i.makerDiscountRate=null!==(t=e.makerDiscountRate)&&void 0!==t?t:"",i.takerDiscountRate=null!==(n=e.takerDiscountRate)&&void 0!==n?n:"",i.stakedAmount=null!==(r=e.stakedAmount)&&void 0!==r?r:"",i.volume=null!==(a=e.volume)&&void 0!==a?a:"",i}},mE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();"0"!==e.bucketCount&&t.uint32(8).uint64(e.bucketCount),"0"!==e.bucketDuration&&t.uint32(16).int64(e.bucketDuration);var n,r=(0,ba.Z)(e.quoteDenoms);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.uint32(26).string(a)}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ba.Z)(e.tierInfos);try{for(o.s();!(i=o.n()).done;){var s=i.value;yE.encode(s,t.uint32(34).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}var c,u=(0,ba.Z)(e.disqualifiedMarketIds);try{for(u.s();!(c=u.n()).done;){var f=c.value;t.uint32(42).string(f)}}catch(e){u.e(e)}finally{u.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={bucketCount:"0",bucketDuration:"0",quoteDenoms:[],tierInfos:[],disqualifiedMarketIds:[]};n.pos>>3){case 1:a.bucketCount=OE(n.uint64());break;case 2:a.bucketDuration=OE(n.int64());break;case 3:a.quoteDenoms.push(n.string());break;case 4:a.tierInfos.push(yE.decode(n,n.uint32()));break;case 5:a.disqualifiedMarketIds.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{bucketCount:PE(e.bucketCount)?String(e.bucketCount):"0",bucketDuration:PE(e.bucketDuration)?String(e.bucketDuration):"0",quoteDenoms:Array.isArray(null==e?void 0:e.quoteDenoms)?e.quoteDenoms.map((function(e){return String(e)})):[],tierInfos:Array.isArray(null==e?void 0:e.tierInfos)?e.tierInfos.map((function(e){return yE.fromJSON(e)})):[],disqualifiedMarketIds:Array.isArray(null==e?void 0:e.disqualifiedMarketIds)?e.disqualifiedMarketIds.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.bucketCount&&(t.bucketCount=e.bucketCount),void 0!==e.bucketDuration&&(t.bucketDuration=e.bucketDuration),e.quoteDenoms?t.quoteDenoms=e.quoteDenoms.map((function(e){return e})):t.quoteDenoms=[],e.tierInfos?t.tierInfos=e.tierInfos.map((function(e){return e?yE.toJSON(e):void 0})):t.tierInfos=[],e.disqualifiedMarketIds?t.disqualifiedMarketIds=e.disqualifiedMarketIds.map((function(e){return e})):t.disqualifiedMarketIds=[],t},create:function(e){return mE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={bucketCount:"0",bucketDuration:"0",quoteDenoms:[],tierInfos:[],disqualifiedMarketIds:[]};return o.bucketCount=null!==(t=e.bucketCount)&&void 0!==t?t:"0",o.bucketDuration=null!==(n=e.bucketDuration)&&void 0!==n?n:"0",o.quoteDenoms=(null===(r=e.quoteDenoms)||void 0===r?void 0:r.map((function(e){return e})))||[],o.tierInfos=(null===(a=e.tierInfos)||void 0===a?void 0:a.map((function(e){return yE.fromPartial(e)})))||[],o.disqualifiedMarketIds=(null===(i=e.disqualifiedMarketIds)||void 0===i?void 0:i.map((function(e){return e})))||[],o}},vE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return"0"!==e.tier&&t.uint32(8).uint64(e.tier),"0"!==e.ttlTimestamp&&t.uint32(16).int64(e.ttlTimestamp),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={tier:"0",ttlTimestamp:"0"};n.pos>>3){case 1:a.tier=OE(n.uint64());break;case 2:a.ttlTimestamp=OE(n.int64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{tier:PE(e.tier)?String(e.tier):"0",ttlTimestamp:PE(e.ttlTimestamp)?String(e.ttlTimestamp):"0"}},toJSON:function(e){var t={};return void 0!==e.tier&&(t.tier=e.tier),void 0!==e.ttlTimestamp&&(t.ttlTimestamp=e.ttlTimestamp),t},create:function(e){return vE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={tier:"0",ttlTimestamp:"0"};return r.tier=null!==(t=e.tier)&&void 0!==t?t:"0",r.ttlTimestamp=null!==(n=e.ttlTimestamp)&&void 0!==n?n:"0",r}},gE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.makerVolume&&t.uint32(10).string(e.makerVolume),""!==e.takerVolume&&t.uint32(18).string(e.takerVolume),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={makerVolume:"",takerVolume:""};n.pos>>3){case 1:a.makerVolume=n.string();break;case 2:a.takerVolume=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{makerVolume:PE(e.makerVolume)?String(e.makerVolume):"",takerVolume:PE(e.takerVolume)?String(e.takerVolume):""}},toJSON:function(e){var t={};return void 0!==e.makerVolume&&(t.makerVolume=e.makerVolume),void 0!==e.takerVolume&&(t.takerVolume=e.takerVolume),t},create:function(e){return gE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={makerVolume:"",takerVolume:""};return r.makerVolume=null!==(t=e.makerVolume)&&void 0!==t?t:"",r.takerVolume=null!==(n=e.takerVolume)&&void 0!==n?n:"",r}},AE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();""!==e.marketId&&t.uint32(10).string(e.marketId);var n,r=(0,ba.Z)(e.latestTradeRecords);try{for(r.s();!(n=r.n()).done;){var a=n.value;wE.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",latestTradeRecords:[]};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.latestTradeRecords.push(wE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:PE(e.marketId)?String(e.marketId):"",latestTradeRecords:Array.isArray(null==e?void 0:e.latestTradeRecords)?e.latestTradeRecords.map((function(e){return wE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),e.latestTradeRecords?t.latestTradeRecords=e.latestTradeRecords.map((function(e){return e?wE.toJSON(e):void 0})):t.latestTradeRecords=[],t},create:function(e){return AE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",latestTradeRecords:[]};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.latestTradeRecords=(null===(n=e.latestTradeRecords)||void 0===n?void 0:n.map((function(e){return wE.fromPartial(e)})))||[],r}},wE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return"0"!==e.timestamp&&t.uint32(8).int64(e.timestamp),""!==e.price&&t.uint32(18).string(e.price),""!==e.quantity&&t.uint32(26).string(e.quantity),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={timestamp:"0",price:"",quantity:""};n.pos>>3){case 1:a.timestamp=OE(n.int64());break;case 2:a.price=n.string();break;case 3:a.quantity=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{timestamp:PE(e.timestamp)?String(e.timestamp):"0",price:PE(e.price)?String(e.price):"",quantity:PE(e.quantity)?String(e.quantity):""}},toJSON:function(e){var t={};return void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.price&&(t.price=e.price),void 0!==e.quantity&&(t.quantity=e.quantity),t},create:function(e){return wE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={timestamp:"0",price:"",quantity:""};return a.timestamp=null!==(t=e.timestamp)&&void 0!==t?t:"0",a.price=null!==(n=e.price)&&void 0!==n?n:"",a.quantity=null!==(r=e.quantity)&&void 0!==r?r:"",a}},xE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.p&&t.uint32(10).string(e.p),""!==e.q&&t.uint32(18).string(e.q),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={p:"",q:""};n.pos>>3){case 1:a.p=n.string();break;case 2:a.q=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{p:PE(e.p)?String(e.p):"",q:PE(e.q)?String(e.q):""}},toJSON:function(e){var t={};return void 0!==e.p&&(t.p=e.p),void 0!==e.q&&(t.q=e.q),t},create:function(e){return xE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={p:"",q:""};return r.p=null!==(t=e.p)&&void 0!==t?t:"",r.q=null!==(n=e.q)&&void 0!==n?n:"",r}},_E={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();""!==e.subaccountId&&t.uint32(10).string(e.subaccountId);var n,r=(0,ba.Z)(e.marketVolumes);try{for(r.s();!(n=r.n()).done;){var a=n.value;SE.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",marketVolumes:[]};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.marketVolumes.push(SE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:PE(e.subaccountId)?String(e.subaccountId):"",marketVolumes:Array.isArray(null==e?void 0:e.marketVolumes)?e.marketVolumes.map((function(e){return SE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),e.marketVolumes?t.marketVolumes=e.marketVolumes.map((function(e){return e?SE.toJSON(e):void 0})):t.marketVolumes=[],t},create:function(e){return _E.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",marketVolumes:[]};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.marketVolumes=(null===(n=e.marketVolumes)||void 0===n?void 0:n.map((function(e){return SE.fromPartial(e)})))||[],r}},kE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();""!==e.account&&t.uint32(10).string(e.account);var n,r=(0,ba.Z)(e.marketVolumes);try{for(r.s();!(n=r.n()).done;){var a=n.value;SE.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={account:"",marketVolumes:[]};n.pos>>3){case 1:a.account=n.string();break;case 2:a.marketVolumes.push(SE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{account:PE(e.account)?String(e.account):"",marketVolumes:Array.isArray(null==e?void 0:e.marketVolumes)?e.marketVolumes.map((function(e){return SE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.account&&(t.account=e.account),e.marketVolumes?t.marketVolumes=e.marketVolumes.map((function(e){return e?SE.toJSON(e):void 0})):t.marketVolumes=[],t},create:function(e){return kE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={account:"",marketVolumes:[]};return r.account=null!==(t=e.account)&&void 0!==t?t:"",r.marketVolumes=(null===(n=e.marketVolumes)||void 0===n?void 0:n.map((function(e){return SE.fromPartial(e)})))||[],r}},SE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),void 0!==e.volume&&gE.encode(e.volume,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",volume:void 0};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.volume=gE.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:PE(e.marketId)?String(e.marketId):"",volume:PE(e.volume)?gE.fromJSON(e.volume):void 0}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.volume&&(t.volume=e.volume?gE.toJSON(e.volume):void 0),t},create:function(e){return SE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:"",volume:void 0};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n.volume=void 0!==e.volume&&null!==e.volume?gE.fromPartial(e.volume):void 0,n}},IE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),"0"!==e.decimals&&t.uint32(16).uint64(e.decimals),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={denom:"",decimals:"0"};n.pos>>3){case 1:a.denom=n.string();break;case 2:a.decimals=OE(n.uint64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{denom:PE(e.denom)?String(e.denom):"",decimals:PE(e.decimals)?String(e.decimals):"0"}},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.decimals&&(t.decimals=e.decimals),t},create:function(e){return IE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={denom:"",decimals:"0"};return r.denom=null!==(t=e.denom)&&void 0!==t?t:"",r.decimals=null!==(n=e.decimals)&&void 0!==n?n:"0",r}},EE=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();function CE(e){if(EE.Buffer)return Uint8Array.from(EE.Buffer.from(e,"base64"));for(var t=EE.atob(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();void 0!==e.params&&zI.encode(e.params,t.uint32(10).fork()).ldelim();var n,r=(0,ba.Z)(e.spotMarkets);try{for(r.s();!(n=r.n()).done;){var a=n.value;YI.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ba.Z)(e.derivativeMarkets);try{for(o.s();!(i=o.n()).done;){var s=i.value;QI.encode(s,t.uint32(26).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}var c,u=(0,ba.Z)(e.spotOrderbook);try{for(u.s();!(c=u.n()).done;){var f=c.value;ZE.encode(f,t.uint32(34).fork()).ldelim()}}catch(e){u.e(e)}finally{u.f()}var d,l=(0,ba.Z)(e.derivativeOrderbook);try{for(l.s();!(d=l.n()).done;){var p=d.value;FE.encode(p,t.uint32(42).fork()).ldelim()}}catch(e){l.e(e)}finally{l.f()}var b,h=(0,ba.Z)(e.balances);try{for(h.s();!(b=h.n()).done;){var y=b.value;zE.encode(y,t.uint32(50).fork()).ldelim()}}catch(e){h.e(e)}finally{h.f()}var m,v=(0,ba.Z)(e.positions);try{for(v.s();!(m=v.n()).done;){var g=m.value;qE.encode(g,t.uint32(58).fork()).ldelim()}}catch(e){v.e(e)}finally{v.f()}var A,w=(0,ba.Z)(e.subaccountTradeNonces);try{for(w.s();!(A=w.n()).done;){var x=A.value;QE.encode(x,t.uint32(66).fork()).ldelim()}}catch(e){w.e(e)}finally{w.f()}var _,k=(0,ba.Z)(e.expiryFuturesMarketInfoState);try{for(k.s();!(_=k.n()).done;){var S=_.value;KE.encode(S,t.uint32(74).fork()).ldelim()}}catch(e){k.e(e)}finally{k.f()}var I,E=(0,ba.Z)(e.perpetualMarketInfo);try{for(E.s();!(I=E.n()).done;){var C=I.value;JI.encode(C,t.uint32(82).fork()).ldelim()}}catch(e){E.e(e)}finally{E.f()}var T,O=(0,ba.Z)(e.perpetualMarketFundingState);try{for(O.s();!(T=O.n()).done;){var P=T.value;VE.encode(P,t.uint32(90).fork()).ldelim()}}catch(e){O.e(e)}finally{O.f()}var M,B=(0,ba.Z)(e.derivativeMarketSettlementScheduled);try{for(B.s();!(M=B.n()).done;){var R=M.value;WI.encode(R,t.uint32(98).fork()).ldelim()}}catch(e){B.e(e)}finally{B.f()}!0===e.isSpotExchangeEnabled&&t.uint32(104).bool(e.isSpotExchangeEnabled),!0===e.isDerivativesExchangeEnabled&&t.uint32(112).bool(e.isDerivativesExchangeEnabled),void 0!==e.tradingRewardCampaignInfo&&hE.encode(e.tradingRewardCampaignInfo,t.uint32(122).fork()).ldelim();var N,D=(0,ba.Z)(e.tradingRewardPoolCampaignSchedule);try{for(D.s();!(N=D.n()).done;){var j=N.value;bE.encode(j,t.uint32(130).fork()).ldelim()}}catch(e){D.e(e)}finally{D.f()}var U,L=(0,ba.Z)(e.tradingRewardCampaignAccountPoints);try{for(L.s();!(U=L.n()).done;){var Z=U.value;UE.encode(Z,t.uint32(138).fork()).ldelim()}}catch(e){L.e(e)}finally{L.f()}void 0!==e.feeDiscountSchedule&&mE.encode(e.feeDiscountSchedule,t.uint32(146).fork()).ldelim();var F,H=(0,ba.Z)(e.feeDiscountAccountTierTtl);try{for(H.s();!(F=H.n()).done;){var z=F.value;NE.encode(z,t.uint32(154).fork()).ldelim()}}catch(e){H.e(e)}finally{H.f()}var q,Q=(0,ba.Z)(e.feeDiscountBucketVolumeAccounts);try{for(Q.s();!(q=Q.n()).done;){var K=q.value;DE.encode(K,t.uint32(162).fork()).ldelim()}}catch(e){Q.e(e)}finally{Q.f()}!0===e.isFirstFeeCycleFinished&&t.uint32(168).bool(e.isFirstFeeCycleFinished);var V,J=(0,ba.Z)(e.pendingTradingRewardPoolCampaignSchedule);try{for(J.s();!(V=J.n()).done;){var G=V.value;bE.encode(G,t.uint32(178).fork()).ldelim()}}catch(e){J.e(e)}finally{J.f()}var W,Y=(0,ba.Z)(e.pendingTradingRewardCampaignAccountPoints);try{for(Y.s();!(W=Y.n()).done;){var X=W.value;LE.encode(X,t.uint32(186).fork()).ldelim()}}catch(e){Y.e(e)}finally{Y.f()}var $,ee=(0,ba.Z)(e.rewardsOptOutAddresses);try{for(ee.s();!($=ee.n()).done;){var te=$.value;t.uint32(194).string(te)}}catch(e){ee.e(e)}finally{ee.f()}var ne,re=(0,ba.Z)(e.historicalTradeRecords);try{for(re.s();!(ne=re.n()).done;){var ae=ne.value;AE.encode(ae,t.uint32(202).fork()).ldelim()}}catch(e){re.e(e)}finally{re.f()}var ie,oe=(0,ba.Z)(e.binaryOptionsMarkets);try{for(oe.s();!(ie=oe.n()).done;){var se=ie.value;KI.encode(se,t.uint32(210).fork()).ldelim()}}catch(e){oe.e(e)}finally{oe.f()}var ce,ue=(0,ba.Z)(e.binaryOptionsMarketIdsScheduledForSettlement);try{for(ue.s();!(ce=ue.n()).done;){var fe=ce.value;t.uint32(218).string(fe)}}catch(e){ue.e(e)}finally{ue.f()}var de,le=(0,ba.Z)(e.spotMarketIdsScheduledToForceClose);try{for(le.s();!(de=le.n()).done;){var pe=de.value;t.uint32(226).string(pe)}}catch(e){le.e(e)}finally{le.f()}var be,he=(0,ba.Z)(e.denomDecimals);try{for(he.s();!(be=he.n()).done;){var ye=be.value;IE.encode(ye,t.uint32(234).fork()).ldelim()}}catch(e){he.e(e)}finally{he.f()}var me,ve=(0,ba.Z)(e.conditionalDerivativeOrderbooks);try{for(ve.s();!(me=ve.n()).done;){var ge=me.value;HE.encode(ge,t.uint32(242).fork()).ldelim()}}catch(e){ve.e(e)}finally{ve.f()}var Ae,we=(0,ba.Z)(e.marketFeeMultipliers);try{for(we.s();!(Ae=we.n()).done;){var xe=Ae.value;qI.encode(xe,t.uint32(250).fork()).ldelim()}}catch(e){we.e(e)}finally{we.f()}var _e,ke=(0,ba.Z)(e.orderbookSequences);try{for(ke.s();!(_e=ke.n()).done;){var Se=_e.value;RE.encode(Se,t.uint32(258).fork()).ldelim()}}catch(e){ke.e(e)}finally{ke.f()}var Ie,Ee=(0,ba.Z)(e.subaccountVolumes);try{for(Ee.s();!(Ie=Ee.n()).done;){var Ce=Ie.value;_E.encode(Ce,t.uint32(266).fork()).ldelim()}}catch(e){Ee.e(e)}finally{Ee.f()}var Te,Oe=(0,ba.Z)(e.marketVolumes);try{for(Oe.s();!(Te=Oe.n()).done;){var Me=Te.value;SE.encode(Me,t.uint32(274).fork()).ldelim()}}catch(e){Oe.e(e)}finally{Oe.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={params:void 0,spotMarkets:[],derivativeMarkets:[],spotOrderbook:[],derivativeOrderbook:[],balances:[],positions:[],subaccountTradeNonces:[],expiryFuturesMarketInfoState:[],perpetualMarketInfo:[],perpetualMarketFundingState:[],derivativeMarketSettlementScheduled:[],isSpotExchangeEnabled:!1,isDerivativesExchangeEnabled:!1,tradingRewardCampaignInfo:void 0,tradingRewardPoolCampaignSchedule:[],tradingRewardCampaignAccountPoints:[],feeDiscountSchedule:void 0,feeDiscountAccountTierTtl:[],feeDiscountBucketVolumeAccounts:[],isFirstFeeCycleFinished:!1,pendingTradingRewardPoolCampaignSchedule:[],pendingTradingRewardCampaignAccountPoints:[],rewardsOptOutAddresses:[],historicalTradeRecords:[],binaryOptionsMarkets:[],binaryOptionsMarketIdsScheduledForSettlement:[],spotMarketIdsScheduledToForceClose:[],denomDecimals:[],conditionalDerivativeOrderbooks:[],marketFeeMultipliers:[],orderbookSequences:[],subaccountVolumes:[],marketVolumes:[]};n.pos>>3){case 1:a.params=zI.decode(n,n.uint32());break;case 2:a.spotMarkets.push(YI.decode(n,n.uint32()));break;case 3:a.derivativeMarkets.push(QI.decode(n,n.uint32()));break;case 4:a.spotOrderbook.push(ZE.decode(n,n.uint32()));break;case 5:a.derivativeOrderbook.push(FE.decode(n,n.uint32()));break;case 6:a.balances.push(zE.decode(n,n.uint32()));break;case 7:a.positions.push(qE.decode(n,n.uint32()));break;case 8:a.subaccountTradeNonces.push(QE.decode(n,n.uint32()));break;case 9:a.expiryFuturesMarketInfoState.push(KE.decode(n,n.uint32()));break;case 10:a.perpetualMarketInfo.push(JI.decode(n,n.uint32()));break;case 11:a.perpetualMarketFundingState.push(VE.decode(n,n.uint32()));break;case 12:a.derivativeMarketSettlementScheduled.push(WI.decode(n,n.uint32()));break;case 13:a.isSpotExchangeEnabled=n.bool();break;case 14:a.isDerivativesExchangeEnabled=n.bool();break;case 15:a.tradingRewardCampaignInfo=hE.decode(n,n.uint32());break;case 16:a.tradingRewardPoolCampaignSchedule.push(bE.decode(n,n.uint32()));break;case 17:a.tradingRewardCampaignAccountPoints.push(UE.decode(n,n.uint32()));break;case 18:a.feeDiscountSchedule=mE.decode(n,n.uint32());break;case 19:a.feeDiscountAccountTierTtl.push(NE.decode(n,n.uint32()));break;case 20:a.feeDiscountBucketVolumeAccounts.push(DE.decode(n,n.uint32()));break;case 21:a.isFirstFeeCycleFinished=n.bool();break;case 22:a.pendingTradingRewardPoolCampaignSchedule.push(bE.decode(n,n.uint32()));break;case 23:a.pendingTradingRewardCampaignAccountPoints.push(LE.decode(n,n.uint32()));break;case 24:a.rewardsOptOutAddresses.push(n.string());break;case 25:a.historicalTradeRecords.push(AE.decode(n,n.uint32()));break;case 26:a.binaryOptionsMarkets.push(KI.decode(n,n.uint32()));break;case 27:a.binaryOptionsMarketIdsScheduledForSettlement.push(n.string());break;case 28:a.spotMarketIdsScheduledToForceClose.push(n.string());break;case 29:a.denomDecimals.push(IE.decode(n,n.uint32()));break;case 30:a.conditionalDerivativeOrderbooks.push(HE.decode(n,n.uint32()));break;case 31:a.marketFeeMultipliers.push(qI.decode(n,n.uint32()));break;case 32:a.orderbookSequences.push(RE.decode(n,n.uint32()));break;case 33:a.subaccountVolumes.push(_E.decode(n,n.uint32()));break;case 34:a.marketVolumes.push(SE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{params:GE(e.params)?zI.fromJSON(e.params):void 0,spotMarkets:Array.isArray(null==e?void 0:e.spotMarkets)?e.spotMarkets.map((function(e){return YI.fromJSON(e)})):[],derivativeMarkets:Array.isArray(null==e?void 0:e.derivativeMarkets)?e.derivativeMarkets.map((function(e){return QI.fromJSON(e)})):[],spotOrderbook:Array.isArray(null==e?void 0:e.spotOrderbook)?e.spotOrderbook.map((function(e){return ZE.fromJSON(e)})):[],derivativeOrderbook:Array.isArray(null==e?void 0:e.derivativeOrderbook)?e.derivativeOrderbook.map((function(e){return FE.fromJSON(e)})):[],balances:Array.isArray(null==e?void 0:e.balances)?e.balances.map((function(e){return zE.fromJSON(e)})):[],positions:Array.isArray(null==e?void 0:e.positions)?e.positions.map((function(e){return qE.fromJSON(e)})):[],subaccountTradeNonces:Array.isArray(null==e?void 0:e.subaccountTradeNonces)?e.subaccountTradeNonces.map((function(e){return QE.fromJSON(e)})):[],expiryFuturesMarketInfoState:Array.isArray(null==e?void 0:e.expiryFuturesMarketInfoState)?e.expiryFuturesMarketInfoState.map((function(e){return KE.fromJSON(e)})):[],perpetualMarketInfo:Array.isArray(null==e?void 0:e.perpetualMarketInfo)?e.perpetualMarketInfo.map((function(e){return JI.fromJSON(e)})):[],perpetualMarketFundingState:Array.isArray(null==e?void 0:e.perpetualMarketFundingState)?e.perpetualMarketFundingState.map((function(e){return VE.fromJSON(e)})):[],derivativeMarketSettlementScheduled:Array.isArray(null==e?void 0:e.derivativeMarketSettlementScheduled)?e.derivativeMarketSettlementScheduled.map((function(e){return WI.fromJSON(e)})):[],isSpotExchangeEnabled:!!GE(e.isSpotExchangeEnabled)&&Boolean(e.isSpotExchangeEnabled),isDerivativesExchangeEnabled:!!GE(e.isDerivativesExchangeEnabled)&&Boolean(e.isDerivativesExchangeEnabled),tradingRewardCampaignInfo:GE(e.tradingRewardCampaignInfo)?hE.fromJSON(e.tradingRewardCampaignInfo):void 0,tradingRewardPoolCampaignSchedule:Array.isArray(null==e?void 0:e.tradingRewardPoolCampaignSchedule)?e.tradingRewardPoolCampaignSchedule.map((function(e){return bE.fromJSON(e)})):[],tradingRewardCampaignAccountPoints:Array.isArray(null==e?void 0:e.tradingRewardCampaignAccountPoints)?e.tradingRewardCampaignAccountPoints.map((function(e){return UE.fromJSON(e)})):[],feeDiscountSchedule:GE(e.feeDiscountSchedule)?mE.fromJSON(e.feeDiscountSchedule):void 0,feeDiscountAccountTierTtl:Array.isArray(null==e?void 0:e.feeDiscountAccountTierTtl)?e.feeDiscountAccountTierTtl.map((function(e){return NE.fromJSON(e)})):[],feeDiscountBucketVolumeAccounts:Array.isArray(null==e?void 0:e.feeDiscountBucketVolumeAccounts)?e.feeDiscountBucketVolumeAccounts.map((function(e){return DE.fromJSON(e)})):[],isFirstFeeCycleFinished:!!GE(e.isFirstFeeCycleFinished)&&Boolean(e.isFirstFeeCycleFinished),pendingTradingRewardPoolCampaignSchedule:Array.isArray(null==e?void 0:e.pendingTradingRewardPoolCampaignSchedule)?e.pendingTradingRewardPoolCampaignSchedule.map((function(e){return bE.fromJSON(e)})):[],pendingTradingRewardCampaignAccountPoints:Array.isArray(null==e?void 0:e.pendingTradingRewardCampaignAccountPoints)?e.pendingTradingRewardCampaignAccountPoints.map((function(e){return LE.fromJSON(e)})):[],rewardsOptOutAddresses:Array.isArray(null==e?void 0:e.rewardsOptOutAddresses)?e.rewardsOptOutAddresses.map((function(e){return String(e)})):[],historicalTradeRecords:Array.isArray(null==e?void 0:e.historicalTradeRecords)?e.historicalTradeRecords.map((function(e){return AE.fromJSON(e)})):[],binaryOptionsMarkets:Array.isArray(null==e?void 0:e.binaryOptionsMarkets)?e.binaryOptionsMarkets.map((function(e){return KI.fromJSON(e)})):[],binaryOptionsMarketIdsScheduledForSettlement:Array.isArray(null==e?void 0:e.binaryOptionsMarketIdsScheduledForSettlement)?e.binaryOptionsMarketIdsScheduledForSettlement.map((function(e){return String(e)})):[],spotMarketIdsScheduledToForceClose:Array.isArray(null==e?void 0:e.spotMarketIdsScheduledToForceClose)?e.spotMarketIdsScheduledToForceClose.map((function(e){return String(e)})):[],denomDecimals:Array.isArray(null==e?void 0:e.denomDecimals)?e.denomDecimals.map((function(e){return IE.fromJSON(e)})):[],conditionalDerivativeOrderbooks:Array.isArray(null==e?void 0:e.conditionalDerivativeOrderbooks)?e.conditionalDerivativeOrderbooks.map((function(e){return HE.fromJSON(e)})):[],marketFeeMultipliers:Array.isArray(null==e?void 0:e.marketFeeMultipliers)?e.marketFeeMultipliers.map((function(e){return qI.fromJSON(e)})):[],orderbookSequences:Array.isArray(null==e?void 0:e.orderbookSequences)?e.orderbookSequences.map((function(e){return RE.fromJSON(e)})):[],subaccountVolumes:Array.isArray(null==e?void 0:e.subaccountVolumes)?e.subaccountVolumes.map((function(e){return _E.fromJSON(e)})):[],marketVolumes:Array.isArray(null==e?void 0:e.marketVolumes)?e.marketVolumes.map((function(e){return SE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.params&&(t.params=e.params?zI.toJSON(e.params):void 0),e.spotMarkets?t.spotMarkets=e.spotMarkets.map((function(e){return e?YI.toJSON(e):void 0})):t.spotMarkets=[],e.derivativeMarkets?t.derivativeMarkets=e.derivativeMarkets.map((function(e){return e?QI.toJSON(e):void 0})):t.derivativeMarkets=[],e.spotOrderbook?t.spotOrderbook=e.spotOrderbook.map((function(e){return e?ZE.toJSON(e):void 0})):t.spotOrderbook=[],e.derivativeOrderbook?t.derivativeOrderbook=e.derivativeOrderbook.map((function(e){return e?FE.toJSON(e):void 0})):t.derivativeOrderbook=[],e.balances?t.balances=e.balances.map((function(e){return e?zE.toJSON(e):void 0})):t.balances=[],e.positions?t.positions=e.positions.map((function(e){return e?qE.toJSON(e):void 0})):t.positions=[],e.subaccountTradeNonces?t.subaccountTradeNonces=e.subaccountTradeNonces.map((function(e){return e?QE.toJSON(e):void 0})):t.subaccountTradeNonces=[],e.expiryFuturesMarketInfoState?t.expiryFuturesMarketInfoState=e.expiryFuturesMarketInfoState.map((function(e){return e?KE.toJSON(e):void 0})):t.expiryFuturesMarketInfoState=[],e.perpetualMarketInfo?t.perpetualMarketInfo=e.perpetualMarketInfo.map((function(e){return e?JI.toJSON(e):void 0})):t.perpetualMarketInfo=[],e.perpetualMarketFundingState?t.perpetualMarketFundingState=e.perpetualMarketFundingState.map((function(e){return e?VE.toJSON(e):void 0})):t.perpetualMarketFundingState=[],e.derivativeMarketSettlementScheduled?t.derivativeMarketSettlementScheduled=e.derivativeMarketSettlementScheduled.map((function(e){return e?WI.toJSON(e):void 0})):t.derivativeMarketSettlementScheduled=[],void 0!==e.isSpotExchangeEnabled&&(t.isSpotExchangeEnabled=e.isSpotExchangeEnabled),void 0!==e.isDerivativesExchangeEnabled&&(t.isDerivativesExchangeEnabled=e.isDerivativesExchangeEnabled),void 0!==e.tradingRewardCampaignInfo&&(t.tradingRewardCampaignInfo=e.tradingRewardCampaignInfo?hE.toJSON(e.tradingRewardCampaignInfo):void 0),e.tradingRewardPoolCampaignSchedule?t.tradingRewardPoolCampaignSchedule=e.tradingRewardPoolCampaignSchedule.map((function(e){return e?bE.toJSON(e):void 0})):t.tradingRewardPoolCampaignSchedule=[],e.tradingRewardCampaignAccountPoints?t.tradingRewardCampaignAccountPoints=e.tradingRewardCampaignAccountPoints.map((function(e){return e?UE.toJSON(e):void 0})):t.tradingRewardCampaignAccountPoints=[],void 0!==e.feeDiscountSchedule&&(t.feeDiscountSchedule=e.feeDiscountSchedule?mE.toJSON(e.feeDiscountSchedule):void 0),e.feeDiscountAccountTierTtl?t.feeDiscountAccountTierTtl=e.feeDiscountAccountTierTtl.map((function(e){return e?NE.toJSON(e):void 0})):t.feeDiscountAccountTierTtl=[],e.feeDiscountBucketVolumeAccounts?t.feeDiscountBucketVolumeAccounts=e.feeDiscountBucketVolumeAccounts.map((function(e){return e?DE.toJSON(e):void 0})):t.feeDiscountBucketVolumeAccounts=[],void 0!==e.isFirstFeeCycleFinished&&(t.isFirstFeeCycleFinished=e.isFirstFeeCycleFinished),e.pendingTradingRewardPoolCampaignSchedule?t.pendingTradingRewardPoolCampaignSchedule=e.pendingTradingRewardPoolCampaignSchedule.map((function(e){return e?bE.toJSON(e):void 0})):t.pendingTradingRewardPoolCampaignSchedule=[],e.pendingTradingRewardCampaignAccountPoints?t.pendingTradingRewardCampaignAccountPoints=e.pendingTradingRewardCampaignAccountPoints.map((function(e){return e?LE.toJSON(e):void 0})):t.pendingTradingRewardCampaignAccountPoints=[],e.rewardsOptOutAddresses?t.rewardsOptOutAddresses=e.rewardsOptOutAddresses.map((function(e){return e})):t.rewardsOptOutAddresses=[],e.historicalTradeRecords?t.historicalTradeRecords=e.historicalTradeRecords.map((function(e){return e?AE.toJSON(e):void 0})):t.historicalTradeRecords=[],e.binaryOptionsMarkets?t.binaryOptionsMarkets=e.binaryOptionsMarkets.map((function(e){return e?KI.toJSON(e):void 0})):t.binaryOptionsMarkets=[],e.binaryOptionsMarketIdsScheduledForSettlement?t.binaryOptionsMarketIdsScheduledForSettlement=e.binaryOptionsMarketIdsScheduledForSettlement.map((function(e){return e})):t.binaryOptionsMarketIdsScheduledForSettlement=[],e.spotMarketIdsScheduledToForceClose?t.spotMarketIdsScheduledToForceClose=e.spotMarketIdsScheduledToForceClose.map((function(e){return e})):t.spotMarketIdsScheduledToForceClose=[],e.denomDecimals?t.denomDecimals=e.denomDecimals.map((function(e){return e?IE.toJSON(e):void 0})):t.denomDecimals=[],e.conditionalDerivativeOrderbooks?t.conditionalDerivativeOrderbooks=e.conditionalDerivativeOrderbooks.map((function(e){return e?HE.toJSON(e):void 0})):t.conditionalDerivativeOrderbooks=[],e.marketFeeMultipliers?t.marketFeeMultipliers=e.marketFeeMultipliers.map((function(e){return e?qI.toJSON(e):void 0})):t.marketFeeMultipliers=[],e.orderbookSequences?t.orderbookSequences=e.orderbookSequences.map((function(e){return e?RE.toJSON(e):void 0})):t.orderbookSequences=[],e.subaccountVolumes?t.subaccountVolumes=e.subaccountVolumes.map((function(e){return e?_E.toJSON(e):void 0})):t.subaccountVolumes=[],e.marketVolumes?t.marketVolumes=e.marketVolumes.map((function(e){return e?SE.toJSON(e):void 0})):t.marketVolumes=[],t},create:function(e){return BE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c,u,f,d,l,p,b,h,y,m,v,g,A,w,x,_,k,S,I,E,C,T,O,P,M={params:void 0,spotMarkets:[],derivativeMarkets:[],spotOrderbook:[],derivativeOrderbook:[],balances:[],positions:[],subaccountTradeNonces:[],expiryFuturesMarketInfoState:[],perpetualMarketInfo:[],perpetualMarketFundingState:[],derivativeMarketSettlementScheduled:[],isSpotExchangeEnabled:!1,isDerivativesExchangeEnabled:!1,tradingRewardCampaignInfo:void 0,tradingRewardPoolCampaignSchedule:[],tradingRewardCampaignAccountPoints:[],feeDiscountSchedule:void 0,feeDiscountAccountTierTtl:[],feeDiscountBucketVolumeAccounts:[],isFirstFeeCycleFinished:!1,pendingTradingRewardPoolCampaignSchedule:[],pendingTradingRewardCampaignAccountPoints:[],rewardsOptOutAddresses:[],historicalTradeRecords:[],binaryOptionsMarkets:[],binaryOptionsMarketIdsScheduledForSettlement:[],spotMarketIdsScheduledToForceClose:[],denomDecimals:[],conditionalDerivativeOrderbooks:[],marketFeeMultipliers:[],orderbookSequences:[],subaccountVolumes:[],marketVolumes:[]};return M.params=void 0!==e.params&&null!==e.params?zI.fromPartial(e.params):void 0,M.spotMarkets=(null===(t=e.spotMarkets)||void 0===t?void 0:t.map((function(e){return YI.fromPartial(e)})))||[],M.derivativeMarkets=(null===(n=e.derivativeMarkets)||void 0===n?void 0:n.map((function(e){return QI.fromPartial(e)})))||[],M.spotOrderbook=(null===(r=e.spotOrderbook)||void 0===r?void 0:r.map((function(e){return ZE.fromPartial(e)})))||[],M.derivativeOrderbook=(null===(a=e.derivativeOrderbook)||void 0===a?void 0:a.map((function(e){return FE.fromPartial(e)})))||[],M.balances=(null===(i=e.balances)||void 0===i?void 0:i.map((function(e){return zE.fromPartial(e)})))||[],M.positions=(null===(o=e.positions)||void 0===o?void 0:o.map((function(e){return qE.fromPartial(e)})))||[],M.subaccountTradeNonces=(null===(s=e.subaccountTradeNonces)||void 0===s?void 0:s.map((function(e){return QE.fromPartial(e)})))||[],M.expiryFuturesMarketInfoState=(null===(c=e.expiryFuturesMarketInfoState)||void 0===c?void 0:c.map((function(e){return KE.fromPartial(e)})))||[],M.perpetualMarketInfo=(null===(u=e.perpetualMarketInfo)||void 0===u?void 0:u.map((function(e){return JI.fromPartial(e)})))||[],M.perpetualMarketFundingState=(null===(f=e.perpetualMarketFundingState)||void 0===f?void 0:f.map((function(e){return VE.fromPartial(e)})))||[],M.derivativeMarketSettlementScheduled=(null===(d=e.derivativeMarketSettlementScheduled)||void 0===d?void 0:d.map((function(e){return WI.fromPartial(e)})))||[],M.isSpotExchangeEnabled=null!==(l=e.isSpotExchangeEnabled)&&void 0!==l&&l,M.isDerivativesExchangeEnabled=null!==(p=e.isDerivativesExchangeEnabled)&&void 0!==p&&p,M.tradingRewardCampaignInfo=void 0!==e.tradingRewardCampaignInfo&&null!==e.tradingRewardCampaignInfo?hE.fromPartial(e.tradingRewardCampaignInfo):void 0,M.tradingRewardPoolCampaignSchedule=(null===(b=e.tradingRewardPoolCampaignSchedule)||void 0===b?void 0:b.map((function(e){return bE.fromPartial(e)})))||[],M.tradingRewardCampaignAccountPoints=(null===(h=e.tradingRewardCampaignAccountPoints)||void 0===h?void 0:h.map((function(e){return UE.fromPartial(e)})))||[],M.feeDiscountSchedule=void 0!==e.feeDiscountSchedule&&null!==e.feeDiscountSchedule?mE.fromPartial(e.feeDiscountSchedule):void 0,M.feeDiscountAccountTierTtl=(null===(y=e.feeDiscountAccountTierTtl)||void 0===y?void 0:y.map((function(e){return NE.fromPartial(e)})))||[],M.feeDiscountBucketVolumeAccounts=(null===(m=e.feeDiscountBucketVolumeAccounts)||void 0===m?void 0:m.map((function(e){return DE.fromPartial(e)})))||[],M.isFirstFeeCycleFinished=null!==(v=e.isFirstFeeCycleFinished)&&void 0!==v&&v,M.pendingTradingRewardPoolCampaignSchedule=(null===(g=e.pendingTradingRewardPoolCampaignSchedule)||void 0===g?void 0:g.map((function(e){return bE.fromPartial(e)})))||[],M.pendingTradingRewardCampaignAccountPoints=(null===(A=e.pendingTradingRewardCampaignAccountPoints)||void 0===A?void 0:A.map((function(e){return LE.fromPartial(e)})))||[],M.rewardsOptOutAddresses=(null===(w=e.rewardsOptOutAddresses)||void 0===w?void 0:w.map((function(e){return e})))||[],M.historicalTradeRecords=(null===(x=e.historicalTradeRecords)||void 0===x?void 0:x.map((function(e){return AE.fromPartial(e)})))||[],M.binaryOptionsMarkets=(null===(_=e.binaryOptionsMarkets)||void 0===_?void 0:_.map((function(e){return KI.fromPartial(e)})))||[],M.binaryOptionsMarketIdsScheduledForSettlement=(null===(k=e.binaryOptionsMarketIdsScheduledForSettlement)||void 0===k?void 0:k.map((function(e){return e})))||[],M.spotMarketIdsScheduledToForceClose=(null===(S=e.spotMarketIdsScheduledToForceClose)||void 0===S?void 0:S.map((function(e){return e})))||[],M.denomDecimals=(null===(I=e.denomDecimals)||void 0===I?void 0:I.map((function(e){return IE.fromPartial(e)})))||[],M.conditionalDerivativeOrderbooks=(null===(E=e.conditionalDerivativeOrderbooks)||void 0===E?void 0:E.map((function(e){return HE.fromPartial(e)})))||[],M.marketFeeMultipliers=(null===(C=e.marketFeeMultipliers)||void 0===C?void 0:C.map((function(e){return qI.fromPartial(e)})))||[],M.orderbookSequences=(null===(T=e.orderbookSequences)||void 0===T?void 0:T.map((function(e){return RE.fromPartial(e)})))||[],M.subaccountVolumes=(null===(O=e.subaccountVolumes)||void 0===O?void 0:O.map((function(e){return _E.fromPartial(e)})))||[],M.marketVolumes=(null===(P=e.marketVolumes)||void 0===P?void 0:P.map((function(e){return SE.fromPartial(e)})))||[],M}},RE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return"0"!==e.sequence&&t.uint32(8).uint64(e.sequence),""!==e.marketId&&t.uint32(18).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={sequence:"0",marketId:""};n.pos>>3){case 1:a.sequence=JE(n.uint64());break;case 2:a.marketId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{sequence:GE(e.sequence)?String(e.sequence):"0",marketId:GE(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.sequence&&(t.sequence=e.sequence),void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return RE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={sequence:"0",marketId:""};return r.sequence=null!==(t=e.sequence)&&void 0!==t?t:"0",r.marketId=null!==(n=e.marketId)&&void 0!==n?n:"",r}},NE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.account&&t.uint32(10).string(e.account),void 0!==e.tierTtl&&vE.encode(e.tierTtl,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={account:"",tierTtl:void 0};n.pos>>3){case 1:a.account=n.string();break;case 2:a.tierTtl=vE.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{account:GE(e.account)?String(e.account):"",tierTtl:GE(e.tierTtl)?vE.fromJSON(e.tierTtl):void 0}},toJSON:function(e){var t={};return void 0!==e.account&&(t.account=e.account),void 0!==e.tierTtl&&(t.tierTtl=e.tierTtl?vE.toJSON(e.tierTtl):void 0),t},create:function(e){return NE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={account:"",tierTtl:void 0};return n.account=null!==(t=e.account)&&void 0!==t?t:"",n.tierTtl=void 0!==e.tierTtl&&null!==e.tierTtl?vE.fromPartial(e.tierTtl):void 0,n}},DE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();"0"!==e.bucketStartTimestamp&&t.uint32(8).int64(e.bucketStartTimestamp);var n,r=(0,ba.Z)(e.accountVolume);try{for(r.s();!(n=r.n()).done;){var a=n.value;jE.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={bucketStartTimestamp:"0",accountVolume:[]};n.pos>>3){case 1:a.bucketStartTimestamp=JE(n.int64());break;case 2:a.accountVolume.push(jE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{bucketStartTimestamp:GE(e.bucketStartTimestamp)?String(e.bucketStartTimestamp):"0",accountVolume:Array.isArray(null==e?void 0:e.accountVolume)?e.accountVolume.map((function(e){return jE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.bucketStartTimestamp&&(t.bucketStartTimestamp=e.bucketStartTimestamp),e.accountVolume?t.accountVolume=e.accountVolume.map((function(e){return e?jE.toJSON(e):void 0})):t.accountVolume=[],t},create:function(e){return DE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={bucketStartTimestamp:"0",accountVolume:[]};return r.bucketStartTimestamp=null!==(t=e.bucketStartTimestamp)&&void 0!==t?t:"0",r.accountVolume=(null===(n=e.accountVolume)||void 0===n?void 0:n.map((function(e){return jE.fromPartial(e)})))||[],r}},jE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.account&&t.uint32(10).string(e.account),""!==e.volume&&t.uint32(18).string(e.volume),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={account:"",volume:""};n.pos>>3){case 1:a.account=n.string();break;case 2:a.volume=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{account:GE(e.account)?String(e.account):"",volume:GE(e.volume)?String(e.volume):""}},toJSON:function(e){var t={};return void 0!==e.account&&(t.account=e.account),void 0!==e.volume&&(t.volume=e.volume),t},create:function(e){return jE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={account:"",volume:""};return r.account=null!==(t=e.account)&&void 0!==t?t:"",r.volume=null!==(n=e.volume)&&void 0!==n?n:"",r}},UE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.account&&t.uint32(10).string(e.account),""!==e.points&&t.uint32(18).string(e.points),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={account:"",points:""};n.pos>>3){case 1:a.account=n.string();break;case 2:a.points=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{account:GE(e.account)?String(e.account):"",points:GE(e.points)?String(e.points):""}},toJSON:function(e){var t={};return void 0!==e.account&&(t.account=e.account),void 0!==e.points&&(t.points=e.points),t},create:function(e){return UE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={account:"",points:""};return r.account=null!==(t=e.account)&&void 0!==t?t:"",r.points=null!==(n=e.points)&&void 0!==n?n:"",r}},LE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();"0"!==e.rewardPoolStartTimestamp&&t.uint32(8).int64(e.rewardPoolStartTimestamp);var n,r=(0,ba.Z)(e.accountPoints);try{for(r.s();!(n=r.n()).done;){var a=n.value;UE.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={rewardPoolStartTimestamp:"0",accountPoints:[]};n.pos>>3){case 1:a.rewardPoolStartTimestamp=JE(n.int64());break;case 2:a.accountPoints.push(UE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{rewardPoolStartTimestamp:GE(e.rewardPoolStartTimestamp)?String(e.rewardPoolStartTimestamp):"0",accountPoints:Array.isArray(null==e?void 0:e.accountPoints)?e.accountPoints.map((function(e){return UE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.rewardPoolStartTimestamp&&(t.rewardPoolStartTimestamp=e.rewardPoolStartTimestamp),e.accountPoints?t.accountPoints=e.accountPoints.map((function(e){return e?UE.toJSON(e):void 0})):t.accountPoints=[],t},create:function(e){return LE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={rewardPoolStartTimestamp:"0",accountPoints:[]};return r.rewardPoolStartTimestamp=null!==(t=e.rewardPoolStartTimestamp)&&void 0!==t?t:"0",r.accountPoints=(null===(n=e.accountPoints)||void 0===n?void 0:n.map((function(e){return UE.fromPartial(e)})))||[],r}},ZE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();""!==e.marketId&&t.uint32(10).string(e.marketId),!0===e.isBuySide&&t.uint32(16).bool(e.isBuySide);var n,r=(0,ba.Z)(e.orders);try{for(r.s();!(n=r.n()).done;){var a=n.value;nE.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",isBuySide:!1,orders:[]};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.isBuySide=n.bool();break;case 3:a.orders.push(nE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:GE(e.marketId)?String(e.marketId):"",isBuySide:!!GE(e.isBuySide)&&Boolean(e.isBuySide),orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return nE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.isBuySide&&(t.isBuySide=e.isBuySide),e.orders?t.orders=e.orders.map((function(e){return e?nE.toJSON(e):void 0})):t.orders=[],t},create:function(e){return ZE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={marketId:"",isBuySide:!1,orders:[]};return a.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",a.isBuySide=null!==(n=e.isBuySide)&&void 0!==n&&n,a.orders=(null===(r=e.orders)||void 0===r?void 0:r.map((function(e){return nE.fromPartial(e)})))||[],a}},FE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();""!==e.marketId&&t.uint32(10).string(e.marketId),!0===e.isBuySide&&t.uint32(16).bool(e.isBuySide);var n,r=(0,ba.Z)(e.orders);try{for(r.s();!(n=r.n()).done;){var a=n.value;cE.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",isBuySide:!1,orders:[]};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.isBuySide=n.bool();break;case 3:a.orders.push(cE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:GE(e.marketId)?String(e.marketId):"",isBuySide:!!GE(e.isBuySide)&&Boolean(e.isBuySide),orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return cE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.isBuySide&&(t.isBuySide=e.isBuySide),e.orders?t.orders=e.orders.map((function(e){return e?cE.toJSON(e):void 0})):t.orders=[],t},create:function(e){return FE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={marketId:"",isBuySide:!1,orders:[]};return a.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",a.isBuySide=null!==(n=e.isBuySide)&&void 0!==n&&n,a.orders=(null===(r=e.orders)||void 0===r?void 0:r.map((function(e){return cE.fromPartial(e)})))||[],a}},HE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();""!==e.marketId&&t.uint32(10).string(e.marketId);var n,r=(0,ba.Z)(e.limitBuyOrders);try{for(r.s();!(n=r.n()).done;){var a=n.value;cE.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ba.Z)(e.marketBuyOrders);try{for(o.s();!(i=o.n()).done;){var s=i.value;fE.encode(s,t.uint32(26).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}var c,u=(0,ba.Z)(e.limitSellOrders);try{for(u.s();!(c=u.n()).done;){var f=c.value;cE.encode(f,t.uint32(34).fork()).ldelim()}}catch(e){u.e(e)}finally{u.f()}var d,l=(0,ba.Z)(e.marketSellOrders);try{for(l.s();!(d=l.n()).done;){var p=d.value;fE.encode(p,t.uint32(42).fork()).ldelim()}}catch(e){l.e(e)}finally{l.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",limitBuyOrders:[],marketBuyOrders:[],limitSellOrders:[],marketSellOrders:[]};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.limitBuyOrders.push(cE.decode(n,n.uint32()));break;case 3:a.marketBuyOrders.push(fE.decode(n,n.uint32()));break;case 4:a.limitSellOrders.push(cE.decode(n,n.uint32()));break;case 5:a.marketSellOrders.push(fE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:GE(e.marketId)?String(e.marketId):"",limitBuyOrders:Array.isArray(null==e?void 0:e.limitBuyOrders)?e.limitBuyOrders.map((function(e){return cE.fromJSON(e)})):[],marketBuyOrders:Array.isArray(null==e?void 0:e.marketBuyOrders)?e.marketBuyOrders.map((function(e){return fE.fromJSON(e)})):[],limitSellOrders:Array.isArray(null==e?void 0:e.limitSellOrders)?e.limitSellOrders.map((function(e){return cE.fromJSON(e)})):[],marketSellOrders:Array.isArray(null==e?void 0:e.marketSellOrders)?e.marketSellOrders.map((function(e){return fE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),e.limitBuyOrders?t.limitBuyOrders=e.limitBuyOrders.map((function(e){return e?cE.toJSON(e):void 0})):t.limitBuyOrders=[],e.marketBuyOrders?t.marketBuyOrders=e.marketBuyOrders.map((function(e){return e?fE.toJSON(e):void 0})):t.marketBuyOrders=[],e.limitSellOrders?t.limitSellOrders=e.limitSellOrders.map((function(e){return e?cE.toJSON(e):void 0})):t.limitSellOrders=[],e.marketSellOrders?t.marketSellOrders=e.marketSellOrders.map((function(e){return e?fE.toJSON(e):void 0})):t.marketSellOrders=[],t},create:function(e){return HE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={marketId:"",limitBuyOrders:[],marketBuyOrders:[],limitSellOrders:[],marketSellOrders:[]};return o.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",o.limitBuyOrders=(null===(n=e.limitBuyOrders)||void 0===n?void 0:n.map((function(e){return cE.fromPartial(e)})))||[],o.marketBuyOrders=(null===(r=e.marketBuyOrders)||void 0===r?void 0:r.map((function(e){return fE.fromPartial(e)})))||[],o.limitSellOrders=(null===(a=e.limitSellOrders)||void 0===a?void 0:a.map((function(e){return cE.fromPartial(e)})))||[],o.marketSellOrders=(null===(i=e.marketSellOrders)||void 0===i?void 0:i.map((function(e){return fE.fromPartial(e)})))||[],o}},zE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.denom&&t.uint32(18).string(e.denom),void 0!==e.deposits&&XI.encode(e.deposits,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",denom:"",deposits:void 0};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.denom=n.string();break;case 3:a.deposits=XI.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:GE(e.subaccountId)?String(e.subaccountId):"",denom:GE(e.denom)?String(e.denom):"",deposits:GE(e.deposits)?XI.fromJSON(e.deposits):void 0}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.denom&&(t.denom=e.denom),void 0!==e.deposits&&(t.deposits=e.deposits?XI.toJSON(e.deposits):void 0),t},create:function(e){return zE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",denom:"",deposits:void 0};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.denom=null!==(n=e.denom)&&void 0!==n?n:"",r.deposits=void 0!==e.deposits&&null!==e.deposits?XI.fromPartial(e.deposits):void 0,r}},qE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.marketId&&t.uint32(18).string(e.marketId),void 0!==e.position&&dE.encode(e.position,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",marketId:"",position:void 0};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.marketId=n.string();break;case 3:a.position=dE.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:GE(e.subaccountId)?String(e.subaccountId):"",marketId:GE(e.marketId)?String(e.marketId):"",position:GE(e.position)?dE.fromJSON(e.position):void 0}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.position&&(t.position=e.position?dE.toJSON(e.position):void 0),t},create:function(e){return qE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",marketId:"",position:void 0};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.marketId=null!==(n=e.marketId)&&void 0!==n?n:"",r.position=void 0!==e.position&&null!==e.position?dE.fromPartial(e.position):void 0,r}},QE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),void 0!==e.subaccountTradeNonce&&$I.encode(e.subaccountTradeNonce,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",subaccountTradeNonce:void 0};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.subaccountTradeNonce=$I.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:GE(e.subaccountId)?String(e.subaccountId):"",subaccountTradeNonce:GE(e.subaccountTradeNonce)?$I.fromJSON(e.subaccountTradeNonce):void 0}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.subaccountTradeNonce&&(t.subaccountTradeNonce=e.subaccountTradeNonce?$I.toJSON(e.subaccountTradeNonce):void 0),t},create:function(e){return QE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={subaccountId:"",subaccountTradeNonce:void 0};return n.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",n.subaccountTradeNonce=void 0!==e.subaccountTradeNonce&&null!==e.subaccountTradeNonce?$I.fromPartial(e.subaccountTradeNonce):void 0,n}},KE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),void 0!==e.marketInfo&&VI.encode(e.marketInfo,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",marketInfo:void 0};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.marketInfo=VI.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:GE(e.marketId)?String(e.marketId):"",marketInfo:GE(e.marketInfo)?VI.fromJSON(e.marketInfo):void 0}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.marketInfo&&(t.marketInfo=e.marketInfo?VI.toJSON(e.marketInfo):void 0),t},create:function(e){return KE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:"",marketInfo:void 0};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n.marketInfo=void 0!==e.marketInfo&&null!==e.marketInfo?VI.fromPartial(e.marketInfo):void 0,n}},VE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),void 0!==e.funding&&GI.encode(e.funding,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",funding:void 0};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.funding=GI.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:GE(e.marketId)?String(e.marketId):"",funding:GE(e.funding)?GI.fromJSON(e.funding):void 0}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.funding&&(t.funding=e.funding?GI.toJSON(e.funding):void 0),t},create:function(e){return VE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:"",funding:void 0};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n.funding=void 0!==e.funding&&null!==e.funding?GI.fromPartial(e.funding):void 0,n}};function JE(e){return e.toString()}function GE(e){return null!=e}function WE(e){switch(e){case 0:case"UnspecifiedOrder":return ME.UnspecifiedOrder;case 1:case"FromWorstToBest":return ME.FromWorstToBest;case 2:case"FromBestToWorst":return ME.FromBestToWorst;default:return ME.UNRECOGNIZED}}function YE(e){switch(e){case ME.UnspecifiedOrder:return"UnspecifiedOrder";case ME.FromWorstToBest:return"FromWorstToBest";case ME.FromBestToWorst:return"FromBestToWorst";case ME.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(e){e[e.UnspecifiedOrder=0]="UnspecifiedOrder",e[e.FromWorstToBest=1]="FromWorstToBest",e[e.FromBestToWorst=2]="FromBestToWorst",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ME||(ME={}));var XE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.trader&&t.uint32(10).string(e.trader),0!==e.subaccountNonce&&t.uint32(16).uint32(e.subaccountNonce),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={trader:"",subaccountNonce:0};n.pos>>3){case 1:a.trader=n.string();break;case 2:a.subaccountNonce=n.uint32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{trader:fP(e.trader)?String(e.trader):"",subaccountNonce:fP(e.subaccountNonce)?Number(e.subaccountNonce):0}},toJSON:function(e){var t={};return void 0!==e.trader&&(t.trader=e.trader),void 0!==e.subaccountNonce&&(t.subaccountNonce=Math.round(e.subaccountNonce)),t},create:function(e){return XE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={trader:"",subaccountNonce:0};return r.trader=null!==(t=e.trader)&&void 0!==t?t:"",r.subaccountNonce=null!==(n=e.subaccountNonce)&&void 0!==n?n:0,r}},$E={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.marketId&&t.uint32(18).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",marketId:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.marketId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:fP(e.subaccountId)?String(e.subaccountId):"",marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return $E.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",marketId:""};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.marketId=null!==(n=e.marketId)&&void 0!==n?n:"",r}},eC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.buyOrders);try{for(r.s();!(t=r.n()).done;){var a=t.value;oE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ba.Z)(e.sellOrders);try{for(o.s();!(i=o.n()).done;){var s=i.value;oE.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={buyOrders:[],sellOrders:[]};n.pos>>3){case 1:a.buyOrders.push(oE.decode(n,n.uint32()));break;case 2:a.sellOrders.push(oE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{buyOrders:Array.isArray(null==e?void 0:e.buyOrders)?e.buyOrders.map((function(e){return oE.fromJSON(e)})):[],sellOrders:Array.isArray(null==e?void 0:e.sellOrders)?e.sellOrders.map((function(e){return oE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.buyOrders?t.buyOrders=e.buyOrders.map((function(e){return e?oE.toJSON(e):void 0})):t.buyOrders=[],e.sellOrders?t.sellOrders=e.sellOrders.map((function(e){return e?oE.toJSON(e):void 0})):t.sellOrders=[],t},create:function(e){return eC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={buyOrders:[],sellOrders:[]};return r.buyOrders=(null===(t=e.buyOrders)||void 0===t?void 0:t.map((function(e){return oE.fromPartial(e)})))||[],r.sellOrders=(null===(n=e.sellOrders)||void 0===n?void 0:n.map((function(e){return oE.fromPartial(e)})))||[],r}},tC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.metadata&&rE.encode(e.metadata,t.uint32(10).fork()).ldelim(),""!==e.marketId&&t.uint32(18).string(e.marketId),!0===e.isBuy&&t.uint32(24).bool(e.isBuy),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={metadata:void 0,marketId:"",isBuy:!1};n.pos>>3){case 1:a.metadata=rE.decode(n,n.uint32());break;case 2:a.marketId=n.string();break;case 3:a.isBuy=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{metadata:fP(e.metadata)?rE.fromJSON(e.metadata):void 0,marketId:fP(e.marketId)?String(e.marketId):"",isBuy:!!fP(e.isBuy)&&Boolean(e.isBuy)}},toJSON:function(e){var t={};return void 0!==e.metadata&&(t.metadata=e.metadata?rE.toJSON(e.metadata):void 0),void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.isBuy&&(t.isBuy=e.isBuy),t},create:function(e){return tC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={metadata:void 0,marketId:"",isBuy:!1};return r.metadata=void 0!==e.metadata&&null!==e.metadata?rE.fromPartial(e.metadata):void 0,r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.isBuy=null!==(n=e.isBuy)&&void 0!==n&&n,r}},nC={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create()},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.params&&zI.encode(e.params,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={params:void 0};n.pos>>3==1?a.params=zI.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{params:fP(e.params)?zI.fromJSON(e.params):void 0}},toJSON:function(e){var t={};return void 0!==e.params&&(t.params=e.params?zI.toJSON(e.params):void 0),t},create:function(e){return rC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={params:void 0};return t.params=void 0!==e.params&&null!==e.params?zI.fromPartial(e.params):void 0,t}},aC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),void 0!==e.subaccount&&XE.encode(e.subaccount,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",subaccount:void 0};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.subaccount=XE.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:fP(e.subaccountId)?String(e.subaccountId):"",subaccount:fP(e.subaccount)?XE.fromJSON(e.subaccount):void 0}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.subaccount&&(t.subaccount=e.subaccount?XE.toJSON(e.subaccount):void 0),t},create:function(e){return aC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={subaccountId:"",subaccount:void 0};return n.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",n.subaccount=void 0!==e.subaccount&&null!==e.subaccount?XE.fromPartial(e.subaccount):void 0,n}},iC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return Object.entries(e.deposits).forEach((function(e){var n=(0,fa.Z)(e,2),r=n[0],a=n[1];oC.encode({key:r,value:a},t.uint32(10).fork()).ldelim()})),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={deposits:{}};n.pos>>3==1){var o=oC.decode(n,n.uint32());void 0!==o.value&&(a.deposits[o.key]=o.value)}else n.skipType(7&i)}return a},fromJSON:function(e){return{deposits:(t=e.deposits,"object"==typeof t&&null!==t?Object.entries(e.deposits).reduce((function(e,t){var n=(0,fa.Z)(t,2),r=n[0],a=n[1];return e[r]=XI.fromJSON(a),e}),{}):{})};var t},toJSON:function(e){var t={deposits:{}};return e.deposits&&Object.entries(e.deposits).forEach((function(e){var n=(0,fa.Z)(e,2),r=n[0],a=n[1];t.deposits[r]=XI.toJSON(a)})),t},create:function(e){return iC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={deposits:{}};return n.deposits=Object.entries(null!==(t=e.deposits)&&void 0!==t?t:{}).reduce((function(e,t){var n=(0,fa.Z)(t,2),r=n[0],a=n[1];return void 0!==a&&(e[r]=XI.fromPartial(a)),e}),{}),n}},oC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&XI.encode(e.value,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={key:"",value:void 0};n.pos>>3){case 1:a.key=n.string();break;case 2:a.value=XI.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{key:fP(e.key)?String(e.key):"",value:fP(e.value)?XI.fromJSON(e.value):void 0}},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value?XI.toJSON(e.value):void 0),t},create:function(e){return oC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={key:"",value:void 0};return n.key=null!==(t=e.key)&&void 0!==t?t:"",n.value=void 0!==e.value&&null!==e.value?XI.fromPartial(e.value):void 0,n}},sC={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create()},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.balances);try{for(r.s();!(t=r.n()).done;){var a=t.value;zE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={balances:[]};n.pos>>3==1?a.balances.push(zE.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{balances:Array.isArray(null==e?void 0:e.balances)?e.balances.map((function(e){return zE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.balances?t.balances=e.balances.map((function(e){return e?zE.toJSON(e):void 0})):t.balances=[],t},create:function(e){return cC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={balances:[]};return n.balances=(null===(t=e.balances)||void 0===t?void 0:t.map((function(e){return zE.fromPartial(e)})))||[],n}},uC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.account&&t.uint32(10).string(e.account),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={account:""};n.pos>>3==1?a.account=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{account:fP(e.account)?String(e.account):""}},toJSON:function(e){var t={};return void 0!==e.account&&(t.account=e.account),t},create:function(e){return uC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={account:""};return n.account=null!==(t=e.account)&&void 0!==t?t:"",n}},fC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.aggregateVolumes);try{for(r.s();!(t=r.n()).done;){var a=t.value;SE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={aggregateVolumes:[]};n.pos>>3==1?a.aggregateVolumes.push(SE.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{aggregateVolumes:Array.isArray(null==e?void 0:e.aggregateVolumes)?e.aggregateVolumes.map((function(e){return SE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.aggregateVolumes?t.aggregateVolumes=e.aggregateVolumes.map((function(e){return e?SE.toJSON(e):void 0})):t.aggregateVolumes=[],t},create:function(e){return fC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={aggregateVolumes:[]};return n.aggregateVolumes=(null===(t=e.aggregateVolumes)||void 0===t?void 0:t.map((function(e){return SE.fromPartial(e)})))||[],n}},dC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.accounts);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ba.Z)(e.marketIds);try{for(o.s();!(i=o.n()).done;){var s=i.value;n.uint32(18).string(s)}}catch(e){o.e(e)}finally{o.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={accounts:[],marketIds:[]};n.pos>>3){case 1:a.accounts.push(n.string());break;case 2:a.marketIds.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{accounts:Array.isArray(null==e?void 0:e.accounts)?e.accounts.map((function(e){return String(e)})):[],marketIds:Array.isArray(null==e?void 0:e.marketIds)?e.marketIds.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return e.accounts?t.accounts=e.accounts.map((function(e){return e})):t.accounts=[],e.marketIds?t.marketIds=e.marketIds.map((function(e){return e})):t.marketIds=[],t},create:function(e){return dC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={accounts:[],marketIds:[]};return r.accounts=(null===(t=e.accounts)||void 0===t?void 0:t.map((function(e){return e})))||[],r.marketIds=(null===(n=e.marketIds)||void 0===n?void 0:n.map((function(e){return e})))||[],r}},lC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.aggregateAccountVolumes);try{for(r.s();!(t=r.n()).done;){var a=t.value;kE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ba.Z)(e.aggregateMarketVolumes);try{for(o.s();!(i=o.n()).done;){var s=i.value;SE.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={aggregateAccountVolumes:[],aggregateMarketVolumes:[]};n.pos>>3){case 1:a.aggregateAccountVolumes.push(kE.decode(n,n.uint32()));break;case 2:a.aggregateMarketVolumes.push(SE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{aggregateAccountVolumes:Array.isArray(null==e?void 0:e.aggregateAccountVolumes)?e.aggregateAccountVolumes.map((function(e){return kE.fromJSON(e)})):[],aggregateMarketVolumes:Array.isArray(null==e?void 0:e.aggregateMarketVolumes)?e.aggregateMarketVolumes.map((function(e){return SE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.aggregateAccountVolumes?t.aggregateAccountVolumes=e.aggregateAccountVolumes.map((function(e){return e?kE.toJSON(e):void 0})):t.aggregateAccountVolumes=[],e.aggregateMarketVolumes?t.aggregateMarketVolumes=e.aggregateMarketVolumes.map((function(e){return e?SE.toJSON(e):void 0})):t.aggregateMarketVolumes=[],t},create:function(e){return lC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={aggregateAccountVolumes:[],aggregateMarketVolumes:[]};return r.aggregateAccountVolumes=(null===(t=e.aggregateAccountVolumes)||void 0===t?void 0:t.map((function(e){return kE.fromPartial(e)})))||[],r.aggregateMarketVolumes=(null===(n=e.aggregateMarketVolumes)||void 0===n?void 0:n.map((function(e){return SE.fromPartial(e)})))||[],r}},pC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return pC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},bC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.volume&&gE.encode(e.volume,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={volume:void 0};n.pos>>3==1?a.volume=gE.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{volume:fP(e.volume)?gE.fromJSON(e.volume):void 0}},toJSON:function(e){var t={};return void 0!==e.volume&&(t.volume=e.volume?gE.toJSON(e.volume):void 0),t},create:function(e){return bC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={volume:void 0};return t.volume=void 0!==e.volume&&null!==e.volume?gE.fromPartial(e.volume):void 0,t}},hC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={denom:""};n.pos>>3==1?a.denom=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{denom:fP(e.denom)?String(e.denom):""}},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),t},create:function(e){return hC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={denom:""};return n.denom=null!==(t=e.denom)&&void 0!==t?t:"",n}},yC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return"0"!==e.decimal&&t.uint32(8).uint64(e.decimal),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={decimal:"0"};n.pos>>3==1?a.decimal=uP(n.uint64()):n.skipType(7&i)}return a},fromJSON:function(e){return{decimal:fP(e.decimal)?String(e.decimal):"0"}},toJSON:function(e){var t={};return void 0!==e.decimal&&(t.decimal=e.decimal),t},create:function(e){return yC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={decimal:"0"};return n.decimal=null!==(t=e.decimal)&&void 0!==t?t:"0",n}},mC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.denoms);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={denoms:[]};n.pos>>3==1?a.denoms.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){return{denoms:Array.isArray(null==e?void 0:e.denoms)?e.denoms.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return e.denoms?t.denoms=e.denoms.map((function(e){return e})):t.denoms=[],t},create:function(e){return mC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={denoms:[]};return n.denoms=(null===(t=e.denoms)||void 0===t?void 0:t.map((function(e){return e})))||[],n}},vC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.denomDecimals);try{for(r.s();!(t=r.n()).done;){var a=t.value;IE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={denomDecimals:[]};n.pos>>3==1?a.denomDecimals.push(IE.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{denomDecimals:Array.isArray(null==e?void 0:e.denomDecimals)?e.denomDecimals.map((function(e){return IE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.denomDecimals?t.denomDecimals=e.denomDecimals.map((function(e){return e?IE.toJSON(e):void 0})):t.denomDecimals=[],t},create:function(e){return vC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={denomDecimals:[]};return n.denomDecimals=(null===(t=e.denomDecimals)||void 0===t?void 0:t.map((function(e){return IE.fromPartial(e)})))||[],n}},gC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.marketIds);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketIds:[]};n.pos>>3==1?a.marketIds.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){return{marketIds:Array.isArray(null==e?void 0:e.marketIds)?e.marketIds.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return e.marketIds?t.marketIds=e.marketIds.map((function(e){return e})):t.marketIds=[],t},create:function(e){return gC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketIds:[]};return n.marketIds=(null===(t=e.marketIds)||void 0===t?void 0:t.map((function(e){return e})))||[],n}},AC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.volumes);try{for(r.s();!(t=r.n()).done;){var a=t.value;SE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={volumes:[]};n.pos>>3==1?a.volumes.push(SE.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{volumes:Array.isArray(null==e?void 0:e.volumes)?e.volumes.map((function(e){return SE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.volumes?t.volumes=e.volumes.map((function(e){return e?SE.toJSON(e):void 0})):t.volumes=[],t},create:function(e){return AC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={volumes:[]};return n.volumes=(null===(t=e.volumes)||void 0===t?void 0:t.map((function(e){return SE.fromPartial(e)})))||[],n}},wC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.denom&&t.uint32(18).string(e.denom),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",denom:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.denom=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:fP(e.subaccountId)?String(e.subaccountId):"",denom:fP(e.denom)?String(e.denom):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.denom&&(t.denom=e.denom),t},create:function(e){return wC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",denom:""};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.denom=null!==(n=e.denom)&&void 0!==n?n:"",r}},xC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.deposits&&XI.encode(e.deposits,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={deposits:void 0};n.pos>>3==1?a.deposits=XI.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{deposits:fP(e.deposits)?XI.fromJSON(e.deposits):void 0}},toJSON:function(e){var t={};return void 0!==e.deposits&&(t.deposits=e.deposits?XI.toJSON(e.deposits):void 0),t},create:function(e){return xC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={deposits:void 0};return t.deposits=void 0!==e.deposits&&null!==e.deposits?XI.fromPartial(e.deposits):void 0,t}},_C={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.status&&t.uint32(10).string(e.status),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={status:""};n.pos>>3==1?a.status=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{status:fP(e.status)?String(e.status):""}},toJSON:function(e){var t={};return void 0!==e.status&&(t.status=e.status),t},create:function(e){return _C.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={status:""};return n.status=null!==(t=e.status)&&void 0!==t?t:"",n}},kC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.markets);try{for(r.s();!(t=r.n()).done;){var a=t.value;YI.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={markets:[]};n.pos>>3==1?a.markets.push(YI.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{markets:Array.isArray(null==e?void 0:e.markets)?e.markets.map((function(e){return YI.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.markets?t.markets=e.markets.map((function(e){return e?YI.toJSON(e):void 0})):t.markets=[],t},create:function(e){return kC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={markets:[]};return n.markets=(null===(t=e.markets)||void 0===t?void 0:t.map((function(e){return YI.fromPartial(e)})))||[],n}},SC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return SC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},IC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.market&&YI.encode(e.market,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={market:void 0};n.pos>>3==1?a.market=YI.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{market:fP(e.market)?YI.fromJSON(e.market):void 0}},toJSON:function(e){var t={};return void 0!==e.market&&(t.market=e.market?YI.toJSON(e.market):void 0),t},create:function(e){return IC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={market:void 0};return t.market=void 0!==e.market&&null!==e.market?YI.fromPartial(e.market):void 0,t}},EC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),"0"!==e.limit&&t.uint32(16).uint64(e.limit),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",limit:"0"};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.limit=uP(n.uint64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):"",limit:fP(e.limit)?String(e.limit):"0"}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.limit&&(t.limit=e.limit),t},create:function(e){return EC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",limit:"0"};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.limit=null!==(n=e.limit)&&void 0!==n?n:"0",r}},CC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.buysPriceLevel);try{for(r.s();!(t=r.n()).done;){var a=t.value;xE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ba.Z)(e.sellsPriceLevel);try{for(o.s();!(i=o.n()).done;){var s=i.value;xE.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={buysPriceLevel:[],sellsPriceLevel:[]};n.pos>>3){case 1:a.buysPriceLevel.push(xE.decode(n,n.uint32()));break;case 2:a.sellsPriceLevel.push(xE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{buysPriceLevel:Array.isArray(null==e?void 0:e.buysPriceLevel)?e.buysPriceLevel.map((function(e){return xE.fromJSON(e)})):[],sellsPriceLevel:Array.isArray(null==e?void 0:e.sellsPriceLevel)?e.sellsPriceLevel.map((function(e){return xE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.buysPriceLevel?t.buysPriceLevel=e.buysPriceLevel.map((function(e){return e?xE.toJSON(e):void 0})):t.buysPriceLevel=[],e.sellsPriceLevel?t.sellsPriceLevel=e.sellsPriceLevel.map((function(e){return e?xE.toJSON(e):void 0})):t.sellsPriceLevel=[],t},create:function(e){return CC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={buysPriceLevel:[],sellsPriceLevel:[]};return r.buysPriceLevel=(null===(t=e.buysPriceLevel)||void 0===t?void 0:t.map((function(e){return xE.fromPartial(e)})))||[],r.sellsPriceLevel=(null===(n=e.sellsPriceLevel)||void 0===n?void 0:n.map((function(e){return xE.fromPartial(e)})))||[],r}},TC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.subaccountId&&t.uint32(18).string(e.subaccountId);var n,r=(0,ba.Z)(e.orderHashes);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.uint32(26).string(a)}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",subaccountId:"",orderHashes:[]};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.subaccountId=n.string();break;case 3:a.orderHashes.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):"",subaccountId:fP(e.subaccountId)?String(e.subaccountId):"",orderHashes:Array.isArray(null==e?void 0:e.orderHashes)?e.orderHashes.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),e.orderHashes?t.orderHashes=e.orderHashes.map((function(e){return e})):t.orderHashes=[],t},create:function(e){return TC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={marketId:"",subaccountId:"",orderHashes:[]};return a.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",a.subaccountId=null!==(n=e.subaccountId)&&void 0!==n?n:"",a.orderHashes=(null===(r=e.orderHashes)||void 0===r?void 0:r.map((function(e){return e})))||[],a}},OC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.orders);try{for(r.s();!(t=r.n()).done;){var a=t.value;MC.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={orders:[]};n.pos>>3==1?a.orders.push(MC.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return MC.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.orders?t.orders=e.orders.map((function(e){return e?MC.toJSON(e):void 0})):t.orders=[],t},create:function(e){return OC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={orders:[]};return n.orders=(null===(t=e.orders)||void 0===t?void 0:t.map((function(e){return MC.fromPartial(e)})))||[],n}},PC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.subaccountId&&t.uint32(18).string(e.subaccountId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",subaccountId:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.subaccountId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):"",subaccountId:fP(e.subaccountId)?String(e.subaccountId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),t},create:function(e){return PC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",subaccountId:""};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.subaccountId=null!==(n=e.subaccountId)&&void 0!==n?n:"",r}},MC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.price&&t.uint32(10).string(e.price),""!==e.quantity&&t.uint32(18).string(e.quantity),""!==e.fillable&&t.uint32(26).string(e.fillable),!0===e.isBuy&&t.uint32(32).bool(e.isBuy),""!==e.orderHash&&t.uint32(42).string(e.orderHash),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={price:"",quantity:"",fillable:"",isBuy:!1,orderHash:""};n.pos>>3){case 1:a.price=n.string();break;case 2:a.quantity=n.string();break;case 3:a.fillable=n.string();break;case 4:a.isBuy=n.bool();break;case 5:a.orderHash=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{price:fP(e.price)?String(e.price):"",quantity:fP(e.quantity)?String(e.quantity):"",fillable:fP(e.fillable)?String(e.fillable):"",isBuy:!!fP(e.isBuy)&&Boolean(e.isBuy),orderHash:fP(e.orderHash)?String(e.orderHash):""}},toJSON:function(e){var t={};return void 0!==e.price&&(t.price=e.price),void 0!==e.quantity&&(t.quantity=e.quantity),void 0!==e.fillable&&(t.fillable=e.fillable),void 0!==e.isBuy&&(t.isBuy=e.isBuy),void 0!==e.orderHash&&(t.orderHash=e.orderHash),t},create:function(e){return MC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={price:"",quantity:"",fillable:"",isBuy:!1,orderHash:""};return o.price=null!==(t=e.price)&&void 0!==t?t:"",o.quantity=null!==(n=e.quantity)&&void 0!==n?n:"",o.fillable=null!==(r=e.fillable)&&void 0!==r?r:"",o.isBuy=null!==(a=e.isBuy)&&void 0!==a&&a,o.orderHash=null!==(i=e.orderHash)&&void 0!==i?i:"",o}},BC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.orders);try{for(r.s();!(t=r.n()).done;){var a=t.value;MC.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={orders:[]};n.pos>>3==1?a.orders.push(MC.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return MC.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.orders?t.orders=e.orders.map((function(e){return e?MC.toJSON(e):void 0})):t.orders=[],t},create:function(e){return BC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={orders:[]};return n.orders=(null===(t=e.orders)||void 0===t?void 0:t.map((function(e){return MC.fromPartial(e)})))||[],n}},RC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return RC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},NC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.midPrice&&t.uint32(10).string(e.midPrice),""!==e.bestBuyPrice&&t.uint32(18).string(e.bestBuyPrice),""!==e.bestSellPrice&&t.uint32(26).string(e.bestSellPrice),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={midPrice:"",bestBuyPrice:"",bestSellPrice:""};n.pos>>3){case 1:a.midPrice=n.string();break;case 2:a.bestBuyPrice=n.string();break;case 3:a.bestSellPrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{midPrice:fP(e.midPrice)?String(e.midPrice):"",bestBuyPrice:fP(e.bestBuyPrice)?String(e.bestBuyPrice):"",bestSellPrice:fP(e.bestSellPrice)?String(e.bestSellPrice):""}},toJSON:function(e){var t={};return void 0!==e.midPrice&&(t.midPrice=e.midPrice),void 0!==e.bestBuyPrice&&(t.bestBuyPrice=e.bestBuyPrice),void 0!==e.bestSellPrice&&(t.bestSellPrice=e.bestSellPrice),t},create:function(e){return NC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={midPrice:"",bestBuyPrice:"",bestSellPrice:""};return a.midPrice=null!==(t=e.midPrice)&&void 0!==t?t:"",a.bestBuyPrice=null!==(n=e.bestBuyPrice)&&void 0!==n?n:"",a.bestSellPrice=null!==(r=e.bestSellPrice)&&void 0!==r?r:"",a}},DC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return DC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},jC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.midPrice&&t.uint32(10).string(e.midPrice),""!==e.bestBuyPrice&&t.uint32(18).string(e.bestBuyPrice),""!==e.bestSellPrice&&t.uint32(26).string(e.bestSellPrice),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={midPrice:"",bestBuyPrice:"",bestSellPrice:""};n.pos>>3){case 1:a.midPrice=n.string();break;case 2:a.bestBuyPrice=n.string();break;case 3:a.bestSellPrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{midPrice:fP(e.midPrice)?String(e.midPrice):"",bestBuyPrice:fP(e.bestBuyPrice)?String(e.bestBuyPrice):"",bestSellPrice:fP(e.bestSellPrice)?String(e.bestSellPrice):""}},toJSON:function(e){var t={};return void 0!==e.midPrice&&(t.midPrice=e.midPrice),void 0!==e.bestBuyPrice&&(t.bestBuyPrice=e.bestBuyPrice),void 0!==e.bestSellPrice&&(t.bestSellPrice=e.bestSellPrice),t},create:function(e){return jC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={midPrice:"",bestBuyPrice:"",bestSellPrice:""};return a.midPrice=null!==(t=e.midPrice)&&void 0!==t?t:"",a.bestBuyPrice=null!==(n=e.bestBuyPrice)&&void 0!==n?n:"",a.bestSellPrice=null!==(r=e.bestSellPrice)&&void 0!==r?r:"",a}},UC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),"0"!==e.limit&&t.uint32(16).uint64(e.limit),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",limit:"0"};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.limit=uP(n.uint64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):"",limit:fP(e.limit)?String(e.limit):"0"}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.limit&&(t.limit=e.limit),t},create:function(e){return UC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",limit:"0"};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.limit=null!==(n=e.limit)&&void 0!==n?n:"0",r}},LC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.buysPriceLevel);try{for(r.s();!(t=r.n()).done;){var a=t.value;xE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ba.Z)(e.sellsPriceLevel);try{for(o.s();!(i=o.n()).done;){var s=i.value;xE.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={buysPriceLevel:[],sellsPriceLevel:[]};n.pos>>3){case 1:a.buysPriceLevel.push(xE.decode(n,n.uint32()));break;case 2:a.sellsPriceLevel.push(xE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{buysPriceLevel:Array.isArray(null==e?void 0:e.buysPriceLevel)?e.buysPriceLevel.map((function(e){return xE.fromJSON(e)})):[],sellsPriceLevel:Array.isArray(null==e?void 0:e.sellsPriceLevel)?e.sellsPriceLevel.map((function(e){return xE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.buysPriceLevel?t.buysPriceLevel=e.buysPriceLevel.map((function(e){return e?xE.toJSON(e):void 0})):t.buysPriceLevel=[],e.sellsPriceLevel?t.sellsPriceLevel=e.sellsPriceLevel.map((function(e){return e?xE.toJSON(e):void 0})):t.sellsPriceLevel=[],t},create:function(e){return LC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={buysPriceLevel:[],sellsPriceLevel:[]};return r.buysPriceLevel=(null===(t=e.buysPriceLevel)||void 0===t?void 0:t.map((function(e){return xE.fromPartial(e)})))||[],r.sellsPriceLevel=(null===(n=e.sellsPriceLevel)||void 0===n?void 0:n.map((function(e){return xE.fromPartial(e)})))||[],r}},ZC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.subaccountId&&t.uint32(18).string(e.subaccountId),""!==e.baseAmount&&t.uint32(26).string(e.baseAmount),""!==e.quoteAmount&&t.uint32(34).string(e.quoteAmount),0!==e.strategy&&t.uint32(40).int32(e.strategy),""!==e.referencePrice&&t.uint32(50).string(e.referencePrice),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",subaccountId:"",baseAmount:"",quoteAmount:"",strategy:0,referencePrice:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.subaccountId=n.string();break;case 3:a.baseAmount=n.string();break;case 4:a.quoteAmount=n.string();break;case 5:a.strategy=n.int32();break;case 6:a.referencePrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):"",subaccountId:fP(e.subaccountId)?String(e.subaccountId):"",baseAmount:fP(e.baseAmount)?String(e.baseAmount):"",quoteAmount:fP(e.quoteAmount)?String(e.quoteAmount):"",strategy:fP(e.strategy)?WE(e.strategy):0,referencePrice:fP(e.referencePrice)?String(e.referencePrice):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.baseAmount&&(t.baseAmount=e.baseAmount),void 0!==e.quoteAmount&&(t.quoteAmount=e.quoteAmount),void 0!==e.strategy&&(t.strategy=YE(e.strategy)),void 0!==e.referencePrice&&(t.referencePrice=e.referencePrice),t},create:function(e){return ZC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s={marketId:"",subaccountId:"",baseAmount:"",quoteAmount:"",strategy:0,referencePrice:""};return s.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",s.subaccountId=null!==(n=e.subaccountId)&&void 0!==n?n:"",s.baseAmount=null!==(r=e.baseAmount)&&void 0!==r?r:"",s.quoteAmount=null!==(a=e.quoteAmount)&&void 0!==a?a:"",s.strategy=null!==(i=e.strategy)&&void 0!==i?i:0,s.referencePrice=null!==(o=e.referencePrice)&&void 0!==o?o:"",s}},FC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.subaccountId&&t.uint32(18).string(e.subaccountId),""!==e.quoteAmount&&t.uint32(26).string(e.quoteAmount),0!==e.strategy&&t.uint32(32).int32(e.strategy),""!==e.referencePrice&&t.uint32(42).string(e.referencePrice),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",subaccountId:"",quoteAmount:"",strategy:0,referencePrice:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.subaccountId=n.string();break;case 3:a.quoteAmount=n.string();break;case 4:a.strategy=n.int32();break;case 5:a.referencePrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):"",subaccountId:fP(e.subaccountId)?String(e.subaccountId):"",quoteAmount:fP(e.quoteAmount)?String(e.quoteAmount):"",strategy:fP(e.strategy)?WE(e.strategy):0,referencePrice:fP(e.referencePrice)?String(e.referencePrice):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.quoteAmount&&(t.quoteAmount=e.quoteAmount),void 0!==e.strategy&&(t.strategy=YE(e.strategy)),void 0!==e.referencePrice&&(t.referencePrice=e.referencePrice),t},create:function(e){return FC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={marketId:"",subaccountId:"",quoteAmount:"",strategy:0,referencePrice:""};return o.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",o.subaccountId=null!==(n=e.subaccountId)&&void 0!==n?n:"",o.quoteAmount=null!==(r=e.quoteAmount)&&void 0!==r?r:"",o.strategy=null!==(a=e.strategy)&&void 0!==a?a:0,o.referencePrice=null!==(i=e.referencePrice)&&void 0!==i?i:"",o}},HC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.subaccountId&&t.uint32(18).string(e.subaccountId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",subaccountId:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.subaccountId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):"",subaccountId:fP(e.subaccountId)?String(e.subaccountId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),t},create:function(e){return HC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",subaccountId:""};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.subaccountId=null!==(n=e.subaccountId)&&void 0!==n?n:"",r}},zC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.price&&t.uint32(10).string(e.price),""!==e.quantity&&t.uint32(18).string(e.quantity),""!==e.margin&&t.uint32(26).string(e.margin),""!==e.fillable&&t.uint32(34).string(e.fillable),!0===e.isBuy&&t.uint32(40).bool(e.isBuy),""!==e.orderHash&&t.uint32(50).string(e.orderHash),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={price:"",quantity:"",margin:"",fillable:"",isBuy:!1,orderHash:""};n.pos>>3){case 1:a.price=n.string();break;case 2:a.quantity=n.string();break;case 3:a.margin=n.string();break;case 4:a.fillable=n.string();break;case 5:a.isBuy=n.bool();break;case 6:a.orderHash=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{price:fP(e.price)?String(e.price):"",quantity:fP(e.quantity)?String(e.quantity):"",margin:fP(e.margin)?String(e.margin):"",fillable:fP(e.fillable)?String(e.fillable):"",isBuy:!!fP(e.isBuy)&&Boolean(e.isBuy),orderHash:fP(e.orderHash)?String(e.orderHash):""}},toJSON:function(e){var t={};return void 0!==e.price&&(t.price=e.price),void 0!==e.quantity&&(t.quantity=e.quantity),void 0!==e.margin&&(t.margin=e.margin),void 0!==e.fillable&&(t.fillable=e.fillable),void 0!==e.isBuy&&(t.isBuy=e.isBuy),void 0!==e.orderHash&&(t.orderHash=e.orderHash),t},create:function(e){return zC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s={price:"",quantity:"",margin:"",fillable:"",isBuy:!1,orderHash:""};return s.price=null!==(t=e.price)&&void 0!==t?t:"",s.quantity=null!==(n=e.quantity)&&void 0!==n?n:"",s.margin=null!==(r=e.margin)&&void 0!==r?r:"",s.fillable=null!==(a=e.fillable)&&void 0!==a?a:"",s.isBuy=null!==(i=e.isBuy)&&void 0!==i&&i,s.orderHash=null!==(o=e.orderHash)&&void 0!==o?o:"",s}},qC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.orders);try{for(r.s();!(t=r.n()).done;){var a=t.value;zC.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={orders:[]};n.pos>>3==1?a.orders.push(zC.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return zC.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.orders?t.orders=e.orders.map((function(e){return e?zC.toJSON(e):void 0})):t.orders=[],t},create:function(e){return qC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={orders:[]};return n.orders=(null===(t=e.orders)||void 0===t?void 0:t.map((function(e){return zC.fromPartial(e)})))||[],n}},QC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.subaccountId&&t.uint32(18).string(e.subaccountId);var n,r=(0,ba.Z)(e.orderHashes);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.uint32(26).string(a)}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",subaccountId:"",orderHashes:[]};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.subaccountId=n.string();break;case 3:a.orderHashes.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):"",subaccountId:fP(e.subaccountId)?String(e.subaccountId):"",orderHashes:Array.isArray(null==e?void 0:e.orderHashes)?e.orderHashes.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),e.orderHashes?t.orderHashes=e.orderHashes.map((function(e){return e})):t.orderHashes=[],t},create:function(e){return QC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={marketId:"",subaccountId:"",orderHashes:[]};return a.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",a.subaccountId=null!==(n=e.subaccountId)&&void 0!==n?n:"",a.orderHashes=(null===(r=e.orderHashes)||void 0===r?void 0:r.map((function(e){return e})))||[],a}},KC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.orders);try{for(r.s();!(t=r.n()).done;){var a=t.value;zC.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={orders:[]};n.pos>>3==1?a.orders.push(zC.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return zC.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.orders?t.orders=e.orders.map((function(e){return e?zC.toJSON(e):void 0})):t.orders=[],t},create:function(e){return KC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={orders:[]};return n.orders=(null===(t=e.orders)||void 0===t?void 0:t.map((function(e){return zC.fromPartial(e)})))||[],n}},VC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.status&&t.uint32(10).string(e.status),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={status:""};n.pos>>3==1?a.status=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{status:fP(e.status)?String(e.status):""}},toJSON:function(e){var t={};return void 0!==e.status&&(t.status=e.status),t},create:function(e){return VC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={status:""};return n.status=null!==(t=e.status)&&void 0!==t?t:"",n}},JC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.price&&t.uint32(10).string(e.price),""!==e.quantity&&t.uint32(18).string(e.quantity),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={price:"",quantity:""};n.pos>>3){case 1:a.price=n.string();break;case 2:a.quantity=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{price:fP(e.price)?String(e.price):"",quantity:fP(e.quantity)?String(e.quantity):""}},toJSON:function(e){var t={};return void 0!==e.price&&(t.price=e.price),void 0!==e.quantity&&(t.quantity=e.quantity),t},create:function(e){return JC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={price:"",quantity:""};return r.price=null!==(t=e.price)&&void 0!==t?t:"",r.quantity=null!==(n=e.quantity)&&void 0!==n?n:"",r}},GC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.marketInfo&&JI.encode(e.marketInfo,t.uint32(10).fork()).ldelim(),void 0!==e.fundingInfo&&GI.encode(e.fundingInfo,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketInfo:void 0,fundingInfo:void 0};n.pos>>3){case 1:a.marketInfo=JI.decode(n,n.uint32());break;case 2:a.fundingInfo=GI.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketInfo:fP(e.marketInfo)?JI.fromJSON(e.marketInfo):void 0,fundingInfo:fP(e.fundingInfo)?GI.fromJSON(e.fundingInfo):void 0}},toJSON:function(e){var t={};return void 0!==e.marketInfo&&(t.marketInfo=e.marketInfo?JI.toJSON(e.marketInfo):void 0),void 0!==e.fundingInfo&&(t.fundingInfo=e.fundingInfo?GI.toJSON(e.fundingInfo):void 0),t},create:function(e){return GC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={marketInfo:void 0,fundingInfo:void 0};return t.marketInfo=void 0!==e.marketInfo&&null!==e.marketInfo?JI.fromPartial(e.marketInfo):void 0,t.fundingInfo=void 0!==e.fundingInfo&&null!==e.fundingInfo?GI.fromPartial(e.fundingInfo):void 0,t}},WC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.market&&QI.encode(e.market,t.uint32(10).fork()).ldelim(),void 0!==e.perpetualInfo&&GC.encode(e.perpetualInfo,t.uint32(18).fork()).ldelim(),void 0!==e.futuresInfo&&VI.encode(e.futuresInfo,t.uint32(26).fork()).ldelim(),""!==e.markPrice&&t.uint32(34).string(e.markPrice),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={market:void 0,perpetualInfo:void 0,futuresInfo:void 0,markPrice:""};n.pos>>3){case 1:a.market=QI.decode(n,n.uint32());break;case 2:a.perpetualInfo=GC.decode(n,n.uint32());break;case 3:a.futuresInfo=VI.decode(n,n.uint32());break;case 4:a.markPrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{market:fP(e.market)?QI.fromJSON(e.market):void 0,perpetualInfo:fP(e.perpetualInfo)?GC.fromJSON(e.perpetualInfo):void 0,futuresInfo:fP(e.futuresInfo)?VI.fromJSON(e.futuresInfo):void 0,markPrice:fP(e.markPrice)?String(e.markPrice):""}},toJSON:function(e){var t={};return void 0!==e.market&&(t.market=e.market?QI.toJSON(e.market):void 0),void 0!==e.perpetualInfo&&(t.perpetualInfo=e.perpetualInfo?GC.toJSON(e.perpetualInfo):void 0),void 0!==e.futuresInfo&&(t.futuresInfo=e.futuresInfo?VI.toJSON(e.futuresInfo):void 0),void 0!==e.markPrice&&(t.markPrice=e.markPrice),t},create:function(e){return WC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={market:void 0,perpetualInfo:void 0,futuresInfo:void 0,markPrice:""};return n.market=void 0!==e.market&&null!==e.market?QI.fromPartial(e.market):void 0,n.perpetualInfo=void 0!==e.perpetualInfo&&null!==e.perpetualInfo?GC.fromPartial(e.perpetualInfo):void 0,n.futuresInfo=void 0!==e.futuresInfo&&null!==e.futuresInfo?VI.fromPartial(e.futuresInfo):void 0,n.markPrice=null!==(t=e.markPrice)&&void 0!==t?t:"",n}},YC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.markets);try{for(r.s();!(t=r.n()).done;){var a=t.value;WC.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={markets:[]};n.pos>>3==1?a.markets.push(WC.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{markets:Array.isArray(null==e?void 0:e.markets)?e.markets.map((function(e){return WC.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.markets?t.markets=e.markets.map((function(e){return e?WC.toJSON(e):void 0})):t.markets=[],t},create:function(e){return YC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={markets:[]};return n.markets=(null===(t=e.markets)||void 0===t?void 0:t.map((function(e){return WC.fromPartial(e)})))||[],n}},XC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return XC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},$C={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.market&&WC.encode(e.market,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={market:void 0};n.pos>>3==1?a.market=WC.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{market:fP(e.market)?WC.fromJSON(e.market):void 0}},toJSON:function(e){var t={};return void 0!==e.market&&(t.market=e.market?WC.toJSON(e.market):void 0),t},create:function(e){return $C.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={market:void 0};return t.market=void 0!==e.market&&null!==e.market?WC.fromPartial(e.market):void 0,t}},eT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return eT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},tT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.address&&t.uint32(10).string(e.address),""!==e.subaccountId&&t.uint32(18).string(e.subaccountId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={address:"",subaccountId:""};n.pos>>3){case 1:a.address=n.string();break;case 2:a.subaccountId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{address:fP(e.address)?String(e.address):"",subaccountId:fP(e.subaccountId)?String(e.subaccountId):""}},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),t},create:function(e){return tT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={address:"",subaccountId:""};return r.address=null!==(t=e.address)&&void 0!==t?t:"",r.subaccountId=null!==(n=e.subaccountId)&&void 0!==n?n:"",r}},nT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:""};n.pos>>3==1?a.subaccountId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{subaccountId:fP(e.subaccountId)?String(e.subaccountId):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),t},create:function(e){return nT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={subaccountId:""};return n.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",n}},rT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:""};n.pos>>3==1?a.subaccountId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{subaccountId:fP(e.subaccountId)?String(e.subaccountId):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),t},create:function(e){return rT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={subaccountId:""};return n.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",n}},aT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.marketId&&t.uint32(18).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",marketId:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.marketId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:fP(e.subaccountId)?String(e.subaccountId):"",marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return aT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",marketId:""};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.marketId=null!==(n=e.marketId)&&void 0!==n?n:"",r}},iT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.marketId&&t.uint32(18).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",marketId:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.marketId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:fP(e.subaccountId)?String(e.subaccountId):"",marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return iT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",marketId:""};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.marketId=null!==(n=e.marketId)&&void 0!==n?n:"",r}},oT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:""};n.pos>>3==1?a.subaccountId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{subaccountId:fP(e.subaccountId)?String(e.subaccountId):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),t},create:function(e){return oT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={subaccountId:""};return n.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",n}},sT={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.state);try{for(r.s();!(t=r.n()).done;){var a=t.value;qE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={state:[]};n.pos>>3==1?a.state.push(qE.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{state:Array.isArray(null==e?void 0:e.state)?e.state.map((function(e){return qE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.state?t.state=e.state.map((function(e){return e?qE.toJSON(e):void 0})):t.state=[],t},create:function(e){return sT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={state:[]};return n.state=(null===(t=e.state)||void 0===t?void 0:t.map((function(e){return qE.fromPartial(e)})))||[],n}},cT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.state&&dE.encode(e.state,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={state:void 0};n.pos>>3==1?a.state=dE.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{state:fP(e.state)?dE.fromJSON(e.state):void 0}},toJSON:function(e){var t={};return void 0!==e.state&&(t.state=e.state?dE.toJSON(e.state):void 0),t},create:function(e){return cT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={state:void 0};return t.state=void 0!==e.state&&null!==e.state?dE.fromPartial(e.state):void 0,t}},uT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return!0===e.isLong&&t.uint32(8).bool(e.isLong),""!==e.quantity&&t.uint32(18).string(e.quantity),""!==e.entryPrice&&t.uint32(26).string(e.entryPrice),""!==e.effectiveMargin&&t.uint32(34).string(e.effectiveMargin),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={isLong:!1,quantity:"",entryPrice:"",effectiveMargin:""};n.pos>>3){case 1:a.isLong=n.bool();break;case 2:a.quantity=n.string();break;case 3:a.entryPrice=n.string();break;case 4:a.effectiveMargin=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{isLong:!!fP(e.isLong)&&Boolean(e.isLong),quantity:fP(e.quantity)?String(e.quantity):"",entryPrice:fP(e.entryPrice)?String(e.entryPrice):"",effectiveMargin:fP(e.effectiveMargin)?String(e.effectiveMargin):""}},toJSON:function(e){var t={};return void 0!==e.isLong&&(t.isLong=e.isLong),void 0!==e.quantity&&(t.quantity=e.quantity),void 0!==e.entryPrice&&(t.entryPrice=e.entryPrice),void 0!==e.effectiveMargin&&(t.effectiveMargin=e.effectiveMargin),t},create:function(e){return uT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={isLong:!1,quantity:"",entryPrice:"",effectiveMargin:""};return i.isLong=null!==(t=e.isLong)&&void 0!==t&&t,i.quantity=null!==(n=e.quantity)&&void 0!==n?n:"",i.entryPrice=null!==(r=e.entryPrice)&&void 0!==r?r:"",i.effectiveMargin=null!==(a=e.effectiveMargin)&&void 0!==a?a:"",i}},fT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.state&&uT.encode(e.state,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={state:void 0};n.pos>>3==1?a.state=uT.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{state:fP(e.state)?uT.fromJSON(e.state):void 0}},toJSON:function(e){var t={};return void 0!==e.state&&(t.state=e.state?uT.toJSON(e.state):void 0),t},create:function(e){return fT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={state:void 0};return t.state=void 0!==e.state&&null!==e.state?uT.fromPartial(e.state):void 0,t}},dT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return dT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},lT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.info&&JI.encode(e.info,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={info:void 0};n.pos>>3==1?a.info=JI.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{info:fP(e.info)?JI.fromJSON(e.info):void 0}},toJSON:function(e){var t={};return void 0!==e.info&&(t.info=e.info?JI.toJSON(e.info):void 0),t},create:function(e){return lT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={info:void 0};return t.info=void 0!==e.info&&null!==e.info?JI.fromPartial(e.info):void 0,t}},pT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return pT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},bT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.info&&VI.encode(e.info,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={info:void 0};n.pos>>3==1?a.info=VI.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{info:fP(e.info)?VI.fromJSON(e.info):void 0}},toJSON:function(e){var t={};return void 0!==e.info&&(t.info=e.info?VI.toJSON(e.info):void 0),t},create:function(e){return bT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={info:void 0};return t.info=void 0!==e.info&&null!==e.info?VI.fromPartial(e.info):void 0,t}},hT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return hT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},yT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.state&&GI.encode(e.state,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={state:void 0};n.pos>>3==1?a.state=GI.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{state:fP(e.state)?GI.fromJSON(e.state):void 0}},toJSON:function(e){var t={};return void 0!==e.state&&(t.state=e.state?GI.toJSON(e.state):void 0),t},create:function(e){return yT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={state:void 0};return t.state=void 0!==e.state&&null!==e.state?GI.fromPartial(e.state):void 0,t}},mT={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.metadata);try{for(r.s();!(t=r.n()).done;){var a=t.value;tC.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={metadata:[]};n.pos>>3==1?a.metadata.push(tC.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{metadata:Array.isArray(null==e?void 0:e.metadata)?e.metadata.map((function(e){return tC.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.metadata?t.metadata=e.metadata.map((function(e){return e?tC.toJSON(e):void 0})):t.metadata=[],t},create:function(e){return mT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={metadata:[]};return n.metadata=(null===(t=e.metadata)||void 0===t?void 0:t.map((function(e){return tC.fromPartial(e)})))||[],n}},vT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return 0!==e.nonce&&t.uint32(8).uint32(e.nonce),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={nonce:0};n.pos>>3==1?a.nonce=n.uint32():n.skipType(7&i)}return a},fromJSON:function(e){return{nonce:fP(e.nonce)?Number(e.nonce):0}},toJSON:function(e){var t={};return void 0!==e.nonce&&(t.nonce=Math.round(e.nonce)),t},create:function(e){return vT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={nonce:0};return n.nonce=null!==(t=e.nonce)&&void 0!==t?t:0,n}},gT={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create()},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.state&&BE.encode(e.state,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={state:void 0};n.pos>>3==1?a.state=BE.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{state:fP(e.state)?BE.fromJSON(e.state):void 0}},toJSON:function(e){var t={};return void 0!==e.state&&(t.state=e.state?BE.toJSON(e.state):void 0),t},create:function(e){return AT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={state:void 0};return t.state=void 0!==e.state&&null!==e.state?BE.fromPartial(e.state):void 0,t}},wT={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create()},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.state);try{for(r.s();!(t=r.n()).done;){var a=t.value;qE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={state:[]};n.pos>>3==1?a.state.push(qE.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{state:Array.isArray(null==e?void 0:e.state)?e.state.map((function(e){return qE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.state?t.state=e.state.map((function(e){return e?qE.toJSON(e):void 0})):t.state=[],t},create:function(e){return xT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={state:[]};return n.state=(null===(t=e.state)||void 0===t?void 0:t.map((function(e){return qE.fromPartial(e)})))||[],n}},_T={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.accounts);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}return"0"!==e.pendingPoolTimestamp&&n.uint32(16).int64(e.pendingPoolTimestamp),n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={accounts:[],pendingPoolTimestamp:"0"};n.pos>>3){case 1:a.accounts.push(n.string());break;case 2:a.pendingPoolTimestamp=uP(n.int64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{accounts:Array.isArray(null==e?void 0:e.accounts)?e.accounts.map((function(e){return String(e)})):[],pendingPoolTimestamp:fP(e.pendingPoolTimestamp)?String(e.pendingPoolTimestamp):"0"}},toJSON:function(e){var t={};return e.accounts?t.accounts=e.accounts.map((function(e){return e})):t.accounts=[],void 0!==e.pendingPoolTimestamp&&(t.pendingPoolTimestamp=e.pendingPoolTimestamp),t},create:function(e){return _T.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={accounts:[],pendingPoolTimestamp:"0"};return r.accounts=(null===(t=e.accounts)||void 0===t?void 0:t.map((function(e){return e})))||[],r.pendingPoolTimestamp=null!==(n=e.pendingPoolTimestamp)&&void 0!==n?n:"0",r}},kT={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.accountTradeRewardPoints);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={accountTradeRewardPoints:[]};n.pos>>3==1?a.accountTradeRewardPoints.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){return{accountTradeRewardPoints:Array.isArray(null==e?void 0:e.accountTradeRewardPoints)?e.accountTradeRewardPoints.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return e.accountTradeRewardPoints?t.accountTradeRewardPoints=e.accountTradeRewardPoints.map((function(e){return e})):t.accountTradeRewardPoints=[],t},create:function(e){return kT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={accountTradeRewardPoints:[]};return n.accountTradeRewardPoints=(null===(t=e.accountTradeRewardPoints)||void 0===t?void 0:t.map((function(e){return e})))||[],n}},ST={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create()},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();void 0!==e.tradingRewardCampaignInfo&&hE.encode(e.tradingRewardCampaignInfo,t.uint32(10).fork()).ldelim();var n,r=(0,ba.Z)(e.tradingRewardPoolCampaignSchedule);try{for(r.s();!(n=r.n()).done;){var a=n.value;bE.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}""!==e.totalTradeRewardPoints&&t.uint32(26).string(e.totalTradeRewardPoints);var i,o=(0,ba.Z)(e.pendingTradingRewardPoolCampaignSchedule);try{for(o.s();!(i=o.n()).done;){var s=i.value;bE.encode(s,t.uint32(34).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}var c,u=(0,ba.Z)(e.pendingTotalTradeRewardPoints);try{for(u.s();!(c=u.n()).done;){var f=c.value;t.uint32(42).string(f)}}catch(e){u.e(e)}finally{u.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={tradingRewardCampaignInfo:void 0,tradingRewardPoolCampaignSchedule:[],totalTradeRewardPoints:"",pendingTradingRewardPoolCampaignSchedule:[],pendingTotalTradeRewardPoints:[]};n.pos>>3){case 1:a.tradingRewardCampaignInfo=hE.decode(n,n.uint32());break;case 2:a.tradingRewardPoolCampaignSchedule.push(bE.decode(n,n.uint32()));break;case 3:a.totalTradeRewardPoints=n.string();break;case 4:a.pendingTradingRewardPoolCampaignSchedule.push(bE.decode(n,n.uint32()));break;case 5:a.pendingTotalTradeRewardPoints.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{tradingRewardCampaignInfo:fP(e.tradingRewardCampaignInfo)?hE.fromJSON(e.tradingRewardCampaignInfo):void 0,tradingRewardPoolCampaignSchedule:Array.isArray(null==e?void 0:e.tradingRewardPoolCampaignSchedule)?e.tradingRewardPoolCampaignSchedule.map((function(e){return bE.fromJSON(e)})):[],totalTradeRewardPoints:fP(e.totalTradeRewardPoints)?String(e.totalTradeRewardPoints):"",pendingTradingRewardPoolCampaignSchedule:Array.isArray(null==e?void 0:e.pendingTradingRewardPoolCampaignSchedule)?e.pendingTradingRewardPoolCampaignSchedule.map((function(e){return bE.fromJSON(e)})):[],pendingTotalTradeRewardPoints:Array.isArray(null==e?void 0:e.pendingTotalTradeRewardPoints)?e.pendingTotalTradeRewardPoints.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.tradingRewardCampaignInfo&&(t.tradingRewardCampaignInfo=e.tradingRewardCampaignInfo?hE.toJSON(e.tradingRewardCampaignInfo):void 0),e.tradingRewardPoolCampaignSchedule?t.tradingRewardPoolCampaignSchedule=e.tradingRewardPoolCampaignSchedule.map((function(e){return e?bE.toJSON(e):void 0})):t.tradingRewardPoolCampaignSchedule=[],void 0!==e.totalTradeRewardPoints&&(t.totalTradeRewardPoints=e.totalTradeRewardPoints),e.pendingTradingRewardPoolCampaignSchedule?t.pendingTradingRewardPoolCampaignSchedule=e.pendingTradingRewardPoolCampaignSchedule.map((function(e){return e?bE.toJSON(e):void 0})):t.pendingTradingRewardPoolCampaignSchedule=[],e.pendingTotalTradeRewardPoints?t.pendingTotalTradeRewardPoints=e.pendingTotalTradeRewardPoints.map((function(e){return e})):t.pendingTotalTradeRewardPoints=[],t},create:function(e){return IT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={tradingRewardCampaignInfo:void 0,tradingRewardPoolCampaignSchedule:[],totalTradeRewardPoints:"",pendingTradingRewardPoolCampaignSchedule:[],pendingTotalTradeRewardPoints:[]};return i.tradingRewardCampaignInfo=void 0!==e.tradingRewardCampaignInfo&&null!==e.tradingRewardCampaignInfo?hE.fromPartial(e.tradingRewardCampaignInfo):void 0,i.tradingRewardPoolCampaignSchedule=(null===(t=e.tradingRewardPoolCampaignSchedule)||void 0===t?void 0:t.map((function(e){return bE.fromPartial(e)})))||[],i.totalTradeRewardPoints=null!==(n=e.totalTradeRewardPoints)&&void 0!==n?n:"",i.pendingTradingRewardPoolCampaignSchedule=(null===(r=e.pendingTradingRewardPoolCampaignSchedule)||void 0===r?void 0:r.map((function(e){return bE.fromPartial(e)})))||[],i.pendingTotalTradeRewardPoints=(null===(a=e.pendingTotalTradeRewardPoints)||void 0===a?void 0:a.map((function(e){return e})))||[],i}},ET={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.account&&t.uint32(10).string(e.account),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={account:""};n.pos>>3==1?a.account=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{account:fP(e.account)?String(e.account):""}},toJSON:function(e){var t={};return void 0!==e.account&&(t.account=e.account),t},create:function(e){return ET.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={account:""};return n.account=null!==(t=e.account)&&void 0!==t?t:"",n}},CT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return!0===e.isOptedOut&&t.uint32(8).bool(e.isOptedOut),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={isOptedOut:!1};n.pos>>3==1?a.isOptedOut=n.bool():n.skipType(7&i)}return a},fromJSON:function(e){return{isOptedOut:!!fP(e.isOptedOut)&&Boolean(e.isOptedOut)}},toJSON:function(e){var t={};return void 0!==e.isOptedOut&&(t.isOptedOut=e.isOptedOut),t},create:function(e){return CT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={isOptedOut:!1};return n.isOptedOut=null!==(t=e.isOptedOut)&&void 0!==t&&t,n}},TT={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create()},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.accounts);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={accounts:[]};n.pos>>3==1?a.accounts.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){return{accounts:Array.isArray(null==e?void 0:e.accounts)?e.accounts.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return e.accounts?t.accounts=e.accounts.map((function(e){return e})):t.accounts=[],t},create:function(e){return OT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={accounts:[]};return n.accounts=(null===(t=e.accounts)||void 0===t?void 0:t.map((function(e){return e})))||[],n}},PT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.account&&t.uint32(10).string(e.account),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={account:""};n.pos>>3==1?a.account=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{account:fP(e.account)?String(e.account):""}},toJSON:function(e){var t={};return void 0!==e.account&&(t.account=e.account),t},create:function(e){return PT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={account:""};return n.account=null!==(t=e.account)&&void 0!==t?t:"",n}},MT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return"0"!==e.tierLevel&&t.uint32(8).uint64(e.tierLevel),void 0!==e.accountInfo&&yE.encode(e.accountInfo,t.uint32(18).fork()).ldelim(),void 0!==e.accountTtl&&vE.encode(e.accountTtl,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={tierLevel:"0",accountInfo:void 0,accountTtl:void 0};n.pos>>3){case 1:a.tierLevel=uP(n.uint64());break;case 2:a.accountInfo=yE.decode(n,n.uint32());break;case 3:a.accountTtl=vE.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{tierLevel:fP(e.tierLevel)?String(e.tierLevel):"0",accountInfo:fP(e.accountInfo)?yE.fromJSON(e.accountInfo):void 0,accountTtl:fP(e.accountTtl)?vE.fromJSON(e.accountTtl):void 0}},toJSON:function(e){var t={};return void 0!==e.tierLevel&&(t.tierLevel=e.tierLevel),void 0!==e.accountInfo&&(t.accountInfo=e.accountInfo?yE.toJSON(e.accountInfo):void 0),void 0!==e.accountTtl&&(t.accountTtl=e.accountTtl?vE.toJSON(e.accountTtl):void 0),t},create:function(e){return MT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={tierLevel:"0",accountInfo:void 0,accountTtl:void 0};return n.tierLevel=null!==(t=e.tierLevel)&&void 0!==t?t:"0",n.accountInfo=void 0!==e.accountInfo&&null!==e.accountInfo?yE.fromPartial(e.accountInfo):void 0,n.accountTtl=void 0!==e.accountTtl&&null!==e.accountTtl?vE.fromPartial(e.accountTtl):void 0,n}},BT={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create()},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return void 0!==e.feeDiscountSchedule&&mE.encode(e.feeDiscountSchedule,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={feeDiscountSchedule:void 0};n.pos>>3==1?a.feeDiscountSchedule=mE.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{feeDiscountSchedule:fP(e.feeDiscountSchedule)?mE.fromJSON(e.feeDiscountSchedule):void 0}},toJSON:function(e){var t={};return void 0!==e.feeDiscountSchedule&&(t.feeDiscountSchedule=e.feeDiscountSchedule?mE.toJSON(e.feeDiscountSchedule):void 0),t},create:function(e){return RT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={feeDiscountSchedule:void 0};return t.feeDiscountSchedule=void 0!==e.feeDiscountSchedule&&null!==e.feeDiscountSchedule?mE.fromPartial(e.feeDiscountSchedule):void 0,t}},NT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return"0"!==e.dustFactor&&t.uint32(8).int64(e.dustFactor),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={dustFactor:"0"};n.pos>>3==1?a.dustFactor=uP(n.int64()):n.skipType(7&i)}return a},fromJSON:function(e){return{dustFactor:fP(e.dustFactor)?String(e.dustFactor):"0"}},toJSON:function(e){var t={};return void 0!==e.dustFactor&&(t.dustFactor=e.dustFactor),t},create:function(e){return NT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={dustFactor:"0"};return n.dustFactor=null!==(t=e.dustFactor)&&void 0!==t?t:"0",n}},DT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.denom&&t.uint32(18).string(e.denom),""!==e.available&&t.uint32(26).string(e.available),""!==e.total&&t.uint32(34).string(e.total),""!==e.balanceHold&&t.uint32(42).string(e.balanceHold),""!==e.expectedTotal&&t.uint32(50).string(e.expectedTotal),""!==e.difference&&t.uint32(58).string(e.difference),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",denom:"",available:"",total:"",balanceHold:"",expectedTotal:"",difference:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.denom=n.string();break;case 3:a.available=n.string();break;case 4:a.total=n.string();break;case 5:a.balanceHold=n.string();break;case 6:a.expectedTotal=n.string();break;case 7:a.difference=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:fP(e.subaccountId)?String(e.subaccountId):"",denom:fP(e.denom)?String(e.denom):"",available:fP(e.available)?String(e.available):"",total:fP(e.total)?String(e.total):"",balanceHold:fP(e.balanceHold)?String(e.balanceHold):"",expectedTotal:fP(e.expectedTotal)?String(e.expectedTotal):"",difference:fP(e.difference)?String(e.difference):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.denom&&(t.denom=e.denom),void 0!==e.available&&(t.available=e.available),void 0!==e.total&&(t.total=e.total),void 0!==e.balanceHold&&(t.balanceHold=e.balanceHold),void 0!==e.expectedTotal&&(t.expectedTotal=e.expectedTotal),void 0!==e.difference&&(t.difference=e.difference),t},create:function(e){return DT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c={subaccountId:"",denom:"",available:"",total:"",balanceHold:"",expectedTotal:"",difference:""};return c.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",c.denom=null!==(n=e.denom)&&void 0!==n?n:"",c.available=null!==(r=e.available)&&void 0!==r?r:"",c.total=null!==(a=e.total)&&void 0!==a?a:"",c.balanceHold=null!==(i=e.balanceHold)&&void 0!==i?i:"",c.expectedTotal=null!==(o=e.expectedTotal)&&void 0!==o?o:"",c.difference=null!==(s=e.difference)&&void 0!==s?s:"",c}},jT={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.balanceMismatches);try{for(r.s();!(t=r.n()).done;){var a=t.value;DT.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={balanceMismatches:[]};n.pos>>3==1?a.balanceMismatches.push(DT.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{balanceMismatches:Array.isArray(null==e?void 0:e.balanceMismatches)?e.balanceMismatches.map((function(e){return DT.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.balanceMismatches?t.balanceMismatches=e.balanceMismatches.map((function(e){return e?DT.toJSON(e):void 0})):t.balanceMismatches=[],t},create:function(e){return jT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={balanceMismatches:[]};return n.balanceMismatches=(null===(t=e.balanceMismatches)||void 0===t?void 0:t.map((function(e){return DT.fromPartial(e)})))||[],n}},UT={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create()},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.denom&&t.uint32(18).string(e.denom),""!==e.available&&t.uint32(26).string(e.available),""!==e.total&&t.uint32(34).string(e.total),""!==e.balanceHold&&t.uint32(42).string(e.balanceHold),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",denom:"",available:"",total:"",balanceHold:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.denom=n.string();break;case 3:a.available=n.string();break;case 4:a.total=n.string();break;case 5:a.balanceHold=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:fP(e.subaccountId)?String(e.subaccountId):"",denom:fP(e.denom)?String(e.denom):"",available:fP(e.available)?String(e.available):"",total:fP(e.total)?String(e.total):"",balanceHold:fP(e.balanceHold)?String(e.balanceHold):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.denom&&(t.denom=e.denom),void 0!==e.available&&(t.available=e.available),void 0!==e.total&&(t.total=e.total),void 0!==e.balanceHold&&(t.balanceHold=e.balanceHold),t},create:function(e){return LT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={subaccountId:"",denom:"",available:"",total:"",balanceHold:""};return o.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",o.denom=null!==(n=e.denom)&&void 0!==n?n:"",o.available=null!==(r=e.available)&&void 0!==r?r:"",o.total=null!==(a=e.total)&&void 0!==a?a:"",o.balanceHold=null!==(i=e.balanceHold)&&void 0!==i?i:"",o}},ZT={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.balanceWithBalanceHolds);try{for(r.s();!(t=r.n()).done;){var a=t.value;LT.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={balanceWithBalanceHolds:[]};n.pos>>3==1?a.balanceWithBalanceHolds.push(LT.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{balanceWithBalanceHolds:Array.isArray(null==e?void 0:e.balanceWithBalanceHolds)?e.balanceWithBalanceHolds.map((function(e){return LT.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.balanceWithBalanceHolds?t.balanceWithBalanceHolds=e.balanceWithBalanceHolds.map((function(e){return e?LT.toJSON(e):void 0})):t.balanceWithBalanceHolds=[],t},create:function(e){return ZT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={balanceWithBalanceHolds:[]};return n.balanceWithBalanceHolds=(null===(t=e.balanceWithBalanceHolds)||void 0===t?void 0:t.map((function(e){return LT.fromPartial(e)})))||[],n}},FT={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create()},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return"0"!==e.tier&&t.uint32(8).uint64(e.tier),"0"!==e.count&&t.uint32(16).uint64(e.count),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={tier:"0",count:"0"};n.pos>>3){case 1:a.tier=uP(n.uint64());break;case 2:a.count=uP(n.uint64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{tier:fP(e.tier)?String(e.tier):"0",count:fP(e.count)?String(e.count):"0"}},toJSON:function(e){var t={};return void 0!==e.tier&&(t.tier=e.tier),void 0!==e.count&&(t.count=e.count),t},create:function(e){return HT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={tier:"0",count:"0"};return r.tier=null!==(t=e.tier)&&void 0!==t?t:"0",r.count=null!==(n=e.count)&&void 0!==n?n:"0",r}},zT={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.statistics);try{for(r.s();!(t=r.n()).done;){var a=t.value;HT.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={statistics:[]};n.pos>>3==1?a.statistics.push(HT.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{statistics:Array.isArray(null==e?void 0:e.statistics)?e.statistics.map((function(e){return HT.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.statistics?t.statistics=e.statistics.map((function(e){return e?HT.toJSON(e):void 0})):t.statistics=[],t},create:function(e){return zT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={statistics:[]};return n.statistics=(null===(t=e.statistics)||void 0===t?void 0:t.map((function(e){return HT.fromPartial(e)})))||[],n}},qT={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create()},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.masterAddresses);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ba.Z)(e.derivativeAddresses);try{for(o.s();!(i=o.n()).done;){var s=i.value;n.uint32(18).string(s)}}catch(e){o.e(e)}finally{o.f()}var c,u=(0,ba.Z)(e.spotAddresses);try{for(u.s();!(c=u.n()).done;){var f=c.value;n.uint32(26).string(f)}}catch(e){u.e(e)}finally{u.f()}var d,l=(0,ba.Z)(e.cw20Addresses);try{for(l.s();!(d=l.n()).done;){var p=d.value;n.uint32(34).string(p)}}catch(e){l.e(e)}finally{l.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={masterAddresses:[],derivativeAddresses:[],spotAddresses:[],cw20Addresses:[]};n.pos>>3){case 1:a.masterAddresses.push(n.string());break;case 2:a.derivativeAddresses.push(n.string());break;case 3:a.spotAddresses.push(n.string());break;case 4:a.cw20Addresses.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{masterAddresses:Array.isArray(null==e?void 0:e.masterAddresses)?e.masterAddresses.map((function(e){return String(e)})):[],derivativeAddresses:Array.isArray(null==e?void 0:e.derivativeAddresses)?e.derivativeAddresses.map((function(e){return String(e)})):[],spotAddresses:Array.isArray(null==e?void 0:e.spotAddresses)?e.spotAddresses.map((function(e){return String(e)})):[],cw20Addresses:Array.isArray(null==e?void 0:e.cw20Addresses)?e.cw20Addresses.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return e.masterAddresses?t.masterAddresses=e.masterAddresses.map((function(e){return e})):t.masterAddresses=[],e.derivativeAddresses?t.derivativeAddresses=e.derivativeAddresses.map((function(e){return e})):t.derivativeAddresses=[],e.spotAddresses?t.spotAddresses=e.spotAddresses.map((function(e){return e})):t.spotAddresses=[],e.cw20Addresses?t.cw20Addresses=e.cw20Addresses.map((function(e){return e})):t.cw20Addresses=[],t},create:function(e){return QT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={masterAddresses:[],derivativeAddresses:[],spotAddresses:[],cw20Addresses:[]};return i.masterAddresses=(null===(t=e.masterAddresses)||void 0===t?void 0:t.map((function(e){return e})))||[],i.derivativeAddresses=(null===(n=e.derivativeAddresses)||void 0===n?void 0:n.map((function(e){return e})))||[],i.spotAddresses=(null===(r=e.spotAddresses)||void 0===r?void 0:r.map((function(e){return e})))||[],i.cw20Addresses=(null===(a=e.cw20Addresses)||void 0===a?void 0:a.map((function(e){return e})))||[],i}},KT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.vaultSubaccountId&&t.uint32(10).string(e.vaultSubaccountId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={vaultSubaccountId:""};n.pos>>3==1?a.vaultSubaccountId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{vaultSubaccountId:fP(e.vaultSubaccountId)?String(e.vaultSubaccountId):""}},toJSON:function(e){var t={};return void 0!==e.vaultSubaccountId&&(t.vaultSubaccountId=e.vaultSubaccountId),t},create:function(e){return KT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={vaultSubaccountId:""};return n.vaultSubaccountId=null!==(t=e.vaultSubaccountId)&&void 0!==t?t:"",n}},VT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return VT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},JT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return JT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},GT={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.tradeRecords);try{for(r.s();!(t=r.n()).done;){var a=t.value;AE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={tradeRecords:[]};n.pos>>3==1?a.tradeRecords.push(AE.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{tradeRecords:Array.isArray(null==e?void 0:e.tradeRecords)?e.tradeRecords.map((function(e){return AE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.tradeRecords?t.tradeRecords=e.tradeRecords.map((function(e){return e?AE.toJSON(e):void 0})):t.tradeRecords=[],t},create:function(e){return GT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={tradeRecords:[]};return n.tradeRecords=(null===(t=e.tradeRecords)||void 0===t?void 0:t.map((function(e){return AE.fromPartial(e)})))||[],n}},WT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return"0"!==e.tradeGroupingSec&&t.uint32(8).uint64(e.tradeGroupingSec),"0"!==e.maxAge&&t.uint32(16).uint64(e.maxAge),!0===e.includeRawHistory&&t.uint32(32).bool(e.includeRawHistory),!0===e.includeMetadata&&t.uint32(40).bool(e.includeMetadata),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={tradeGroupingSec:"0",maxAge:"0",includeRawHistory:!1,includeMetadata:!1};n.pos>>3){case 1:a.tradeGroupingSec=uP(n.uint64());break;case 2:a.maxAge=uP(n.uint64());break;case 4:a.includeRawHistory=n.bool();break;case 5:a.includeMetadata=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{tradeGroupingSec:fP(e.tradeGroupingSec)?String(e.tradeGroupingSec):"0",maxAge:fP(e.maxAge)?String(e.maxAge):"0",includeRawHistory:!!fP(e.includeRawHistory)&&Boolean(e.includeRawHistory),includeMetadata:!!fP(e.includeMetadata)&&Boolean(e.includeMetadata)}},toJSON:function(e){var t={};return void 0!==e.tradeGroupingSec&&(t.tradeGroupingSec=e.tradeGroupingSec),void 0!==e.maxAge&&(t.maxAge=e.maxAge),void 0!==e.includeRawHistory&&(t.includeRawHistory=e.includeRawHistory),void 0!==e.includeMetadata&&(t.includeMetadata=e.includeMetadata),t},create:function(e){return WT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={tradeGroupingSec:"0",maxAge:"0",includeRawHistory:!1,includeMetadata:!1};return i.tradeGroupingSec=null!==(t=e.tradeGroupingSec)&&void 0!==t?t:"0",i.maxAge=null!==(n=e.maxAge)&&void 0!==n?n:"0",i.includeRawHistory=null!==(r=e.includeRawHistory)&&void 0!==r&&r,i.includeMetadata=null!==(a=e.includeMetadata)&&void 0!==a&&a,i}},YT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),void 0!==e.tradeHistoryOptions&&WT.encode(e.tradeHistoryOptions,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",tradeHistoryOptions:void 0};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.tradeHistoryOptions=WT.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):"",tradeHistoryOptions:fP(e.tradeHistoryOptions)?WT.fromJSON(e.tradeHistoryOptions):void 0}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.tradeHistoryOptions&&(t.tradeHistoryOptions=e.tradeHistoryOptions?WT.toJSON(e.tradeHistoryOptions):void 0),t},create:function(e){return YT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:"",tradeHistoryOptions:void 0};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n.tradeHistoryOptions=void 0!==e.tradeHistoryOptions&&null!==e.tradeHistoryOptions?WT.fromPartial(e.tradeHistoryOptions):void 0,n}},XT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();""!==e.volatility&&t.uint32(10).string(e.volatility),void 0!==e.historyMetadata&&NI.encode(e.historyMetadata,t.uint32(18).fork()).ldelim();var n,r=(0,ba.Z)(e.rawHistory);try{for(r.s();!(n=r.n()).done;){var a=n.value;wE.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={volatility:"",historyMetadata:void 0,rawHistory:[]};n.pos>>3){case 1:a.volatility=n.string();break;case 2:a.historyMetadata=NI.decode(n,n.uint32());break;case 3:a.rawHistory.push(wE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{volatility:fP(e.volatility)?String(e.volatility):"",historyMetadata:fP(e.historyMetadata)?NI.fromJSON(e.historyMetadata):void 0,rawHistory:Array.isArray(null==e?void 0:e.rawHistory)?e.rawHistory.map((function(e){return wE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.volatility&&(t.volatility=e.volatility),void 0!==e.historyMetadata&&(t.historyMetadata=e.historyMetadata?NI.toJSON(e.historyMetadata):void 0),e.rawHistory?t.rawHistory=e.rawHistory.map((function(e){return e?wE.toJSON(e):void 0})):t.rawHistory=[],t},create:function(e){return XT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={volatility:"",historyMetadata:void 0,rawHistory:[]};return r.volatility=null!==(t=e.volatility)&&void 0!==t?t:"",r.historyMetadata=void 0!==e.historyMetadata&&null!==e.historyMetadata?NI.fromPartial(e.historyMetadata):void 0,r.rawHistory=(null===(n=e.rawHistory)||void 0===n?void 0:n.map((function(e){return wE.fromPartial(e)})))||[],r}},$T={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.status&&t.uint32(10).string(e.status),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={status:""};n.pos>>3==1?a.status=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{status:fP(e.status)?String(e.status):""}},toJSON:function(e){var t={};return void 0!==e.status&&(t.status=e.status),t},create:function(e){return $T.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={status:""};return n.status=null!==(t=e.status)&&void 0!==t?t:"",n}},eO={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.markets);try{for(r.s();!(t=r.n()).done;){var a=t.value;KI.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={markets:[]};n.pos>>3==1?a.markets.push(KI.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{markets:Array.isArray(null==e?void 0:e.markets)?e.markets.map((function(e){return KI.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.markets?t.markets=e.markets.map((function(e){return e?KI.toJSON(e):void 0})):t.markets=[],t},create:function(e){return eO.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={markets:[]};return n.markets=(null===(t=e.markets)||void 0===t?void 0:t.map((function(e){return KI.fromPartial(e)})))||[],n}},tO={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.marketId&&t.uint32(18).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",marketId:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.marketId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:fP(e.subaccountId)?String(e.subaccountId):"",marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return tO.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",marketId:""};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.marketId=null!==(n=e.marketId)&&void 0!==n?n:"",r}},nO={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.price&&t.uint32(10).string(e.price),""!==e.quantity&&t.uint32(18).string(e.quantity),""!==e.margin&&t.uint32(26).string(e.margin),""!==e.triggerPrice&&t.uint32(34).string(e.triggerPrice),!0===e.isBuy&&t.uint32(40).bool(e.isBuy),!0===e.isLimit&&t.uint32(48).bool(e.isLimit),""!==e.orderHash&&t.uint32(58).string(e.orderHash),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={price:"",quantity:"",margin:"",triggerPrice:"",isBuy:!1,isLimit:!1,orderHash:""};n.pos>>3){case 1:a.price=n.string();break;case 2:a.quantity=n.string();break;case 3:a.margin=n.string();break;case 4:a.triggerPrice=n.string();break;case 5:a.isBuy=n.bool();break;case 6:a.isLimit=n.bool();break;case 7:a.orderHash=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{price:fP(e.price)?String(e.price):"",quantity:fP(e.quantity)?String(e.quantity):"",margin:fP(e.margin)?String(e.margin):"",triggerPrice:fP(e.triggerPrice)?String(e.triggerPrice):"",isBuy:!!fP(e.isBuy)&&Boolean(e.isBuy),isLimit:!!fP(e.isLimit)&&Boolean(e.isLimit),orderHash:fP(e.orderHash)?String(e.orderHash):""}},toJSON:function(e){var t={};return void 0!==e.price&&(t.price=e.price),void 0!==e.quantity&&(t.quantity=e.quantity),void 0!==e.margin&&(t.margin=e.margin),void 0!==e.triggerPrice&&(t.triggerPrice=e.triggerPrice),void 0!==e.isBuy&&(t.isBuy=e.isBuy),void 0!==e.isLimit&&(t.isLimit=e.isLimit),void 0!==e.orderHash&&(t.orderHash=e.orderHash),t},create:function(e){return nO.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c={price:"",quantity:"",margin:"",triggerPrice:"",isBuy:!1,isLimit:!1,orderHash:""};return c.price=null!==(t=e.price)&&void 0!==t?t:"",c.quantity=null!==(n=e.quantity)&&void 0!==n?n:"",c.margin=null!==(r=e.margin)&&void 0!==r?r:"",c.triggerPrice=null!==(a=e.triggerPrice)&&void 0!==a?a:"",c.isBuy=null!==(i=e.isBuy)&&void 0!==i&&i,c.isLimit=null!==(o=e.isLimit)&&void 0!==o&&o,c.orderHash=null!==(s=e.orderHash)&&void 0!==s?s:"",c}},rO={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create(),r=(0,ba.Z)(e.orders);try{for(r.s();!(t=r.n()).done;){var a=t.value;nO.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={orders:[]};n.pos>>3==1?a.orders.push(nO.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return nO.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.orders?t.orders=e.orders.map((function(e){return e?nO.toJSON(e):void 0})):t.orders=[],t},create:function(e){return rO.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={orders:[]};return n.orders=(null===(t=e.orders)||void 0===t?void 0:t.map((function(e){return nO.fromPartial(e)})))||[],n}},aO={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:fP(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return aO.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},iO={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.multiplier&&t.uint32(10).string(e.multiplier),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={multiplier:""};n.pos>>3==1?a.multiplier=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{multiplier:fP(e.multiplier)?String(e.multiplier):""}},toJSON:function(e){var t={};return void 0!==e.multiplier&&(t.multiplier=e.multiplier),t},create:function(e){return iO.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={multiplier:""};return n.multiplier=null!==(t=e.multiplier)&&void 0!==t?t:"",n}},oO=function(){function e(t){(0,ya.Z)(this,e),this.rpc=t,this.QueryExchangeParams=this.QueryExchangeParams.bind(this),this.SubaccountDeposits=this.SubaccountDeposits.bind(this),this.SubaccountDeposit=this.SubaccountDeposit.bind(this),this.ExchangeBalances=this.ExchangeBalances.bind(this),this.AggregateVolume=this.AggregateVolume.bind(this),this.AggregateVolumes=this.AggregateVolumes.bind(this),this.AggregateMarketVolume=this.AggregateMarketVolume.bind(this),this.AggregateMarketVolumes=this.AggregateMarketVolumes.bind(this),this.DenomDecimal=this.DenomDecimal.bind(this),this.DenomDecimals=this.DenomDecimals.bind(this),this.SpotMarkets=this.SpotMarkets.bind(this),this.SpotMarket=this.SpotMarket.bind(this),this.SpotOrderbook=this.SpotOrderbook.bind(this),this.TraderSpotOrders=this.TraderSpotOrders.bind(this),this.SpotOrdersByHashes=this.SpotOrdersByHashes.bind(this),this.SubaccountOrders=this.SubaccountOrders.bind(this),this.TraderSpotTransientOrders=this.TraderSpotTransientOrders.bind(this),this.SpotMidPriceAndTOB=this.SpotMidPriceAndTOB.bind(this),this.DerivativeMidPriceAndTOB=this.DerivativeMidPriceAndTOB.bind(this),this.DerivativeOrderbook=this.DerivativeOrderbook.bind(this),this.TraderDerivativeOrders=this.TraderDerivativeOrders.bind(this),this.DerivativeOrdersByHashes=this.DerivativeOrdersByHashes.bind(this),this.TraderDerivativeTransientOrders=this.TraderDerivativeTransientOrders.bind(this),this.DerivativeMarkets=this.DerivativeMarkets.bind(this),this.DerivativeMarket=this.DerivativeMarket.bind(this),this.DerivativeMarketAddress=this.DerivativeMarketAddress.bind(this),this.SubaccountTradeNonce=this.SubaccountTradeNonce.bind(this),this.ExchangeModuleState=this.ExchangeModuleState.bind(this),this.Positions=this.Positions.bind(this),this.SubaccountPositions=this.SubaccountPositions.bind(this),this.SubaccountPositionInMarket=this.SubaccountPositionInMarket.bind(this),this.SubaccountEffectivePositionInMarket=this.SubaccountEffectivePositionInMarket.bind(this),this.PerpetualMarketInfo=this.PerpetualMarketInfo.bind(this),this.ExpiryFuturesMarketInfo=this.ExpiryFuturesMarketInfo.bind(this),this.PerpetualMarketFunding=this.PerpetualMarketFunding.bind(this),this.SubaccountOrderMetadata=this.SubaccountOrderMetadata.bind(this),this.TradeRewardPoints=this.TradeRewardPoints.bind(this),this.PendingTradeRewardPoints=this.PendingTradeRewardPoints.bind(this),this.TradeRewardCampaign=this.TradeRewardCampaign.bind(this),this.FeeDiscountAccountInfo=this.FeeDiscountAccountInfo.bind(this),this.FeeDiscountSchedule=this.FeeDiscountSchedule.bind(this),this.BalanceMismatches=this.BalanceMismatches.bind(this),this.BalanceWithBalanceHolds=this.BalanceWithBalanceHolds.bind(this),this.FeeDiscountTierStatistics=this.FeeDiscountTierStatistics.bind(this),this.MitoVaultInfos=this.MitoVaultInfos.bind(this),this.QueryMarketIDFromVault=this.QueryMarketIDFromVault.bind(this),this.HistoricalTradeRecords=this.HistoricalTradeRecords.bind(this),this.IsOptedOutOfRewards=this.IsOptedOutOfRewards.bind(this),this.OptedOutOfRewardsAccounts=this.OptedOutOfRewardsAccounts.bind(this),this.MarketVolatility=this.MarketVolatility.bind(this),this.BinaryOptionsMarkets=this.BinaryOptionsMarkets.bind(this),this.TraderDerivativeConditionalOrders=this.TraderDerivativeConditionalOrders.bind(this),this.MarketAtomicExecutionFeeMultiplier=this.MarketAtomicExecutionFeeMultiplier.bind(this)}return(0,ma.Z)(e,[{key:"QueryExchangeParams",value:function(e,t){return this.rpc.unary(cO,nC.fromPartial(e),t)}},{key:"SubaccountDeposits",value:function(e,t){return this.rpc.unary(uO,aC.fromPartial(e),t)}},{key:"SubaccountDeposit",value:function(e,t){return this.rpc.unary(fO,wC.fromPartial(e),t)}},{key:"ExchangeBalances",value:function(e,t){return this.rpc.unary(dO,sC.fromPartial(e),t)}},{key:"AggregateVolume",value:function(e,t){return this.rpc.unary(lO,uC.fromPartial(e),t)}},{key:"AggregateVolumes",value:function(e,t){return this.rpc.unary(pO,dC.fromPartial(e),t)}},{key:"AggregateMarketVolume",value:function(e,t){return this.rpc.unary(bO,pC.fromPartial(e),t)}},{key:"AggregateMarketVolumes",value:function(e,t){return this.rpc.unary(hO,gC.fromPartial(e),t)}},{key:"DenomDecimal",value:function(e,t){return this.rpc.unary(yO,hC.fromPartial(e),t)}},{key:"DenomDecimals",value:function(e,t){return this.rpc.unary(mO,mC.fromPartial(e),t)}},{key:"SpotMarkets",value:function(e,t){return this.rpc.unary(vO,_C.fromPartial(e),t)}},{key:"SpotMarket",value:function(e,t){return this.rpc.unary(gO,SC.fromPartial(e),t)}},{key:"SpotOrderbook",value:function(e,t){return this.rpc.unary(AO,EC.fromPartial(e),t)}},{key:"TraderSpotOrders",value:function(e,t){return this.rpc.unary(wO,PC.fromPartial(e),t)}},{key:"SpotOrdersByHashes",value:function(e,t){return this.rpc.unary(xO,TC.fromPartial(e),t)}},{key:"SubaccountOrders",value:function(e,t){return this.rpc.unary(_O,$E.fromPartial(e),t)}},{key:"TraderSpotTransientOrders",value:function(e,t){return this.rpc.unary(kO,PC.fromPartial(e),t)}},{key:"SpotMidPriceAndTOB",value:function(e,t){return this.rpc.unary(SO,RC.fromPartial(e),t)}},{key:"DerivativeMidPriceAndTOB",value:function(e,t){return this.rpc.unary(IO,DC.fromPartial(e),t)}},{key:"DerivativeOrderbook",value:function(e,t){return this.rpc.unary(EO,UC.fromPartial(e),t)}},{key:"TraderDerivativeOrders",value:function(e,t){return this.rpc.unary(CO,HC.fromPartial(e),t)}},{key:"DerivativeOrdersByHashes",value:function(e,t){return this.rpc.unary(TO,QC.fromPartial(e),t)}},{key:"TraderDerivativeTransientOrders",value:function(e,t){return this.rpc.unary(OO,HC.fromPartial(e),t)}},{key:"DerivativeMarkets",value:function(e,t){return this.rpc.unary(PO,VC.fromPartial(e),t)}},{key:"DerivativeMarket",value:function(e,t){return this.rpc.unary(MO,XC.fromPartial(e),t)}},{key:"DerivativeMarketAddress",value:function(e,t){return this.rpc.unary(BO,eT.fromPartial(e),t)}},{key:"SubaccountTradeNonce",value:function(e,t){return this.rpc.unary(RO,nT.fromPartial(e),t)}},{key:"ExchangeModuleState",value:function(e,t){return this.rpc.unary(NO,gT.fromPartial(e),t)}},{key:"Positions",value:function(e,t){return this.rpc.unary(DO,wT.fromPartial(e),t)}},{key:"SubaccountPositions",value:function(e,t){return this.rpc.unary(jO,rT.fromPartial(e),t)}},{key:"SubaccountPositionInMarket",value:function(e,t){return this.rpc.unary(UO,aT.fromPartial(e),t)}},{key:"SubaccountEffectivePositionInMarket",value:function(e,t){return this.rpc.unary(LO,iT.fromPartial(e),t)}},{key:"PerpetualMarketInfo",value:function(e,t){return this.rpc.unary(ZO,dT.fromPartial(e),t)}},{key:"ExpiryFuturesMarketInfo",value:function(e,t){return this.rpc.unary(FO,pT.fromPartial(e),t)}},{key:"PerpetualMarketFunding",value:function(e,t){return this.rpc.unary(HO,hT.fromPartial(e),t)}},{key:"SubaccountOrderMetadata",value:function(e,t){return this.rpc.unary(zO,oT.fromPartial(e),t)}},{key:"TradeRewardPoints",value:function(e,t){return this.rpc.unary(qO,_T.fromPartial(e),t)}},{key:"PendingTradeRewardPoints",value:function(e,t){return this.rpc.unary(QO,_T.fromPartial(e),t)}},{key:"TradeRewardCampaign",value:function(e,t){return this.rpc.unary(KO,ST.fromPartial(e),t)}},{key:"FeeDiscountAccountInfo",value:function(e,t){return this.rpc.unary(VO,PT.fromPartial(e),t)}},{key:"FeeDiscountSchedule",value:function(e,t){return this.rpc.unary(JO,BT.fromPartial(e),t)}},{key:"BalanceMismatches",value:function(e,t){return this.rpc.unary(GO,NT.fromPartial(e),t)}},{key:"BalanceWithBalanceHolds",value:function(e,t){return this.rpc.unary(WO,UT.fromPartial(e),t)}},{key:"FeeDiscountTierStatistics",value:function(e,t){return this.rpc.unary(YO,FT.fromPartial(e),t)}},{key:"MitoVaultInfos",value:function(e,t){return this.rpc.unary(XO,qT.fromPartial(e),t)}},{key:"QueryMarketIDFromVault",value:function(e,t){return this.rpc.unary($O,KT.fromPartial(e),t)}},{key:"HistoricalTradeRecords",value:function(e,t){return this.rpc.unary(eP,JT.fromPartial(e),t)}},{key:"IsOptedOutOfRewards",value:function(e,t){return this.rpc.unary(tP,ET.fromPartial(e),t)}},{key:"OptedOutOfRewardsAccounts",value:function(e,t){return this.rpc.unary(nP,TT.fromPartial(e),t)}},{key:"MarketVolatility",value:function(e,t){return this.rpc.unary(rP,YT.fromPartial(e),t)}},{key:"BinaryOptionsMarkets",value:function(e,t){return this.rpc.unary(aP,$T.fromPartial(e),t)}},{key:"TraderDerivativeConditionalOrders",value:function(e,t){return this.rpc.unary(iP,tO.fromPartial(e),t)}},{key:"MarketAtomicExecutionFeeMultiplier",value:function(e,t){return this.rpc.unary(oP,aO.fromPartial(e),t)}}]),e}(),sO={serviceName:"injective.exchange.v1beta1.Query"},cO={methodName:"QueryExchangeParams",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return nC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=rC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},uO={methodName:"SubaccountDeposits",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return aC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=iC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},fO={methodName:"SubaccountDeposit",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return wC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=xC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},dO={methodName:"ExchangeBalances",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return sC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=cC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},lO={methodName:"AggregateVolume",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return uC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=fC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},pO={methodName:"AggregateVolumes",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return dC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=lC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},bO={methodName:"AggregateMarketVolume",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return pC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=bC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},hO={methodName:"AggregateMarketVolumes",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return gC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=AC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},yO={methodName:"DenomDecimal",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return hC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=yC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},mO={methodName:"DenomDecimals",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return mC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=vC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},vO={methodName:"SpotMarkets",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return _C.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=kC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},gO={methodName:"SpotMarket",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return SC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=IC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},AO={methodName:"SpotOrderbook",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return EC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=CC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},wO={methodName:"TraderSpotOrders",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return PC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=BC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},xO={methodName:"SpotOrdersByHashes",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return TC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=OC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},_O={methodName:"SubaccountOrders",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return $E.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=eC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},kO={methodName:"TraderSpotTransientOrders",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return PC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=BC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},SO={methodName:"SpotMidPriceAndTOB",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return RC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=NC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},IO={methodName:"DerivativeMidPriceAndTOB",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return DC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=jC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},EO={methodName:"DerivativeOrderbook",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return UC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=LC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},CO={methodName:"TraderDerivativeOrders",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return HC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=qC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},TO={methodName:"DerivativeOrdersByHashes",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return QC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=KC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},OO={methodName:"TraderDerivativeTransientOrders",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return HC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=qC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},PO={methodName:"DerivativeMarkets",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return VC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=YC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},MO={methodName:"DerivativeMarket",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return XC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=$C.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},BO={methodName:"DerivativeMarketAddress",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return eT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=tT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},RO={methodName:"SubaccountTradeNonce",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return nT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=vT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},NO={methodName:"ExchangeModuleState",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return gT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=AT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},DO={methodName:"Positions",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return wT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=xT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},jO={methodName:"SubaccountPositions",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return rT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=sT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},UO={methodName:"SubaccountPositionInMarket",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return aT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=cT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},LO={methodName:"SubaccountEffectivePositionInMarket",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return iT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=fT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},ZO={methodName:"PerpetualMarketInfo",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return dT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=lT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},FO={methodName:"ExpiryFuturesMarketInfo",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return pT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=bT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},HO={methodName:"PerpetualMarketFunding",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return hT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=yT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},zO={methodName:"SubaccountOrderMetadata",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return oT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=mT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},qO={methodName:"TradeRewardPoints",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return _T.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=kT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},QO={methodName:"PendingTradeRewardPoints",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return _T.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=kT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},KO={methodName:"TradeRewardCampaign",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return ST.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=IT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},VO={methodName:"FeeDiscountAccountInfo",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return PT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=MT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},JO={methodName:"FeeDiscountSchedule",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return BT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=RT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},GO={methodName:"BalanceMismatches",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return NT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=jT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},WO={methodName:"BalanceWithBalanceHolds",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return UT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=ZT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},YO={methodName:"FeeDiscountTierStatistics",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return FT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=zT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},XO={methodName:"MitoVaultInfos",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return qT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=QT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},$O={methodName:"QueryMarketIDFromVault",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return KT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=VT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},eP={methodName:"HistoricalTradeRecords",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return JT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=GT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},tP={methodName:"IsOptedOutOfRewards",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return ET.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=CT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},nP={methodName:"OptedOutOfRewardsAccounts",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return TT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=OT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},rP={methodName:"MarketVolatility",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return YT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=XT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},aP={methodName:"BinaryOptionsMarkets",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return $T.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=eO.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},iP={methodName:"TraderDerivativeConditionalOrders",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return tO.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=rO.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},oP={methodName:"MarketAtomicExecutionFeeMultiplier",service:sO,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return aO.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=iO.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},sP=function(){function e(t,n){(0,ya.Z)(this,e),this.host=t,this.options=n}return(0,ma.Z)(e,[{key:"unary",value:function(e,t,n){var r,a=this,i=Object.assign(Object.assign({},t),e.requestType),o=n&&this.options.metadata?new Je.BrowserHeaders(Object.assign(Object.assign({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise((function(t,n){OS.grpc.unary(e,{request:i,host:a.host,metadata:o,transport:a.options.transport,debug:a.options.debug,onEnd:function(e){if(e.status===OS.grpc.Code.OK)t(e.message.toObject());else{var r=new lP(e.statusMessage,e.status,e.trailers);n(r)}}})}))}}]),e}(),cP=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();function uP(e){return e.toString()}function fP(e){return null!=e}Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var dP,lP=function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ya.Z)(this,n),(i=t.call(this,e)).code=r,i.metadata=a,i}return(0,ma.Z)(n)}(cP.Error);!function(e){e[e.EXCHANGE_UNSPECIFIED=0]="EXCHANGE_UNSPECIFIED",e[e.SPOT=1]="SPOT",e[e.DERIVATIVES=2]="DERIVATIVES",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(dP||(dP={}));var pP=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),pP.Error,Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error;var bP=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),bP.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var hP=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),hP.Error;var yP=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),yP.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var mP=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),mP.Error;var vP,gP=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),gP.Error,Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(e){e[e.CLAIM_TYPE_UNKNOWN=0]="CLAIM_TYPE_UNKNOWN",e[e.CLAIM_TYPE_DEPOSIT=1]="CLAIM_TYPE_DEPOSIT",e[e.CLAIM_TYPE_WITHDRAW=2]="CLAIM_TYPE_WITHDRAW",e[e.CLAIM_TYPE_ERC20_DEPLOYED=3]="CLAIM_TYPE_ERC20_DEPLOYED",e[e.CLAIM_TYPE_VALSET_UPDATED=4]="CLAIM_TYPE_VALSET_UPDATED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(vP||(vP={})),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var AP=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),AP.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var wP,xP=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),xP.Error,function(e){e[e.SIGN_TYPE_UNKNOWN=0]="SIGN_TYPE_UNKNOWN",e[e.SIGN_TYPE_ORCHESTRATOR_SIGNED_MULTI_SIG_UPDATE=1]="SIGN_TYPE_ORCHESTRATOR_SIGNED_MULTI_SIG_UPDATE",e[e.SIGN_TYPE_ORCHESTRATOR_SIGNED_WITHDRAW_BATCH=2]="SIGN_TYPE_ORCHESTRATOR_SIGNED_WITHDRAW_BATCH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(wP||(wP={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure());var _P,kP,SP,IP,EP,CP,TP,OP,PP,MP,BP,RP,NP,DP={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pe.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(18).string(e.contract),""!==e.msg&&t.uint32(26).string(e.msg),""!==e.funds&&t.uint32(34).string(e.funds),t},decode:function(e,t){for(var n=e instanceof Pe.Reader?e:new Pe.Reader(e),r=void 0===t?n.len:n.pos+t,a={sender:"",contract:"",msg:"",funds:""};n.pos>>3){case 1:a.sender=n.string();break;case 2:a.contract=n.string();break;case 3:a.msg=n.string();break;case 4:a.funds=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{sender:UP(e.sender)?String(e.sender):"",contract:UP(e.contract)?String(e.contract):"",msg:UP(e.msg)?String(e.msg):"",funds:UP(e.funds)?String(e.funds):""}},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.msg&&(t.msg=e.msg),void 0!==e.funds&&(t.funds=e.funds),t},create:function(e){return DP.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={sender:"",contract:"",msg:"",funds:""};return i.sender=null!==(t=e.sender)&&void 0!==t?t:"",i.contract=null!==(n=e.contract)&&void 0!==n?n:"",i.msg=null!==(r=e.msg)&&void 0!==r?r:"",i.funds=null!==(a=e.funds)&&void 0!==a?a:"",i}},jP=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();function UP(e){return null!=e}Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),jP.Error,Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),n(62332).Buffer,function(e){e[e.Mainnet=1]="Mainnet",e[e.Ropsten=3]="Ropsten",e[e.Rinkeby=4]="Rinkeby",e[e.Goerli=5]="Goerli",e[e.Kovan=42]="Kovan",e[e.Injective=888]="Injective",e[e.Ganache=1337]="Ganache",e[e.HardHat=31337]="HardHat"}(_P||(_P={})),function(e){e.Mainnet="injective-1",e.Testnet="injective-888",e.Devnet="injective-777"}(kP||(kP={})),function(e){e.MsgExec="cosmos.authz.v1beta1.MsgExec",e.MsgGrant="cosmos.authz.v1beta1.MsgGrant",e.MsgSend="cosmos.bank.v1beta1.MsgSend",e.MsgWithdrawDelegatorReward="cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",e.MsgGrantAllowance="cosmos.feegrant.v1beta1.MsgGrantAllowance",e.MsgDepositCosmos="cosmos.gov.v1beta1.MsgDeposit",e.MsgSubmitProposal="cosmos.gov.v1beta1.MsgSubmitProposal",e.MsgVote="cosmos.gov.v1beta1.MsgVote",e.MsgUnjail="cosmos.slashing.v1beta1.MsgUnjail",e.MsgBeginRedelegate="cosmos.staking.v1beta1.MsgBeginRedelegate",e.MsgCreateValidator="cosmos.staking.v1beta1.MsgCreateValidator",e.MsgDelegate="cosmos.staking.v1beta1.MsgDelegate",e.MsgEditValidator="cosmos.staking.v1beta1.MsgEditValidator",e.MsgUndelegate="cosmos.staking.v1beta1.MsgUndelegate",e.MsgExecuteContract="cosmwasm.wasm.v1.MsgExecuteContract",e.MsgInstantiateContract="cosmwasm.wasm.v1.MsgInstantiateContract",e.MsgInstantiateContract2="cosmwasm.wasm.v1.MsgInstantiateContract2",e.MsgMigrateContract="cosmwasm.wasm.v1.MsgMigrateContract",e.MsgStoreCode="cosmwasm.wasm.v1.MsgStoreCode",e.MsgUpdateAdmin="cosmwasm.wasm.v1.MsgUpdateAdmin",e.MsgTransfer="ibc.applications.transfer.v1.MsgTransfer",e.MsgAcknowledgement="ibc.core.channel.v1.MsgAcknowledgement",e.MsgChannelOpenAck="ibc.core.channel.v1.MsgChannelOpenAck",e.MsgChannelOpenConfirm="ibc.core.channel.v1.MsgChannelOpenConfirm",e.MsgChannelOpenInit="ibc.core.channel.v1.MsgChannelOpenInit",e.MsgChannelOpenTry="ibc.core.channel.v1.MsgChannelOpenTry",e.MsgRecvPacket="ibc.core.channel.v1.MsgRecvPacket",e.MsgTimeout="ibc.core.channel.v1.MsgTimeout",e.MsgCreateClient="ibc.core.client.v1.MsgCreateClient",e.MsgUpdateClient="ibc.core.client.v1.MsgUpdateClient",e.MsgConnectionOpenAck="ibc.core.connection.v1.MsgConnectionOpenAck",e.MsgConnectionOpenConfirm="ibc.core.connection.v1.MsgConnectionOpenConfirm",e.MsgConnectionOpenInit="ibc.core.connection.v1.MsgConnectionOpenInit",e.MsgConnectionOpenTry="ibc.core.connection.v1.MsgConnectionOpenTry",e.MsgBid="injective.auction.v1beta1.MsgBid",e.MsgAdminUpdateBinaryOptionsMarket="injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarket",e.MsgBatchCancelDerivativeOrders="injective.exchange.v1beta1.MsgBatchCancelDerivativeOrders",e.MsgBatchCancelSpotOrders="injective.exchange.v1beta1.MsgBatchCancelSpotOrders",e.MsgBatchCreateDerivativeLimitOrders="injective.exchange.v1beta1.MsgBatchCreateDerivativeLimitOrders",e.MsgBatchCreateSpotLimitOrders="injective.exchange.v1beta1.MsgBatchCreateSpotLimitOrders",e.MsgBatchUpdateOrders="injective.exchange.v1beta1.MsgBatchUpdateOrders",e.MsgCancelBinaryOptionsOrder="injective.exchange.v1beta1.MsgCancelBinaryOptionsOrder",e.MsgCancelDerivativeOrder="injective.exchange.v1beta1.MsgCancelDerivativeOrder",e.MsgCancelSpotOrder="injective.exchange.v1beta1.MsgCancelSpotOrder",e.MsgCreateBinaryOptionsLimitOrder="injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrder",e.MsgCreateBinaryOptionsMarketOrder="injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrder",e.MsgCreateDerivativeLimitOrder="injective.exchange.v1beta1.MsgCreateDerivativeLimitOrder",e.MsgCreateDerivativeMarketOrder="injective.exchange.v1beta1.MsgCreateDerivativeMarketOrder",e.MsgCreateSpotLimitOrder="injective.exchange.v1beta1.MsgCreateSpotLimitOrder",e.MsgCreateSpotMarketOrder="injective.exchange.v1beta1.MsgCreateSpotMarketOrder",e.MsgDeposit="injective.exchange.v1beta1.MsgDeposit",e.MsgExternalTransfer="injective.exchange.v1beta1.MsgExternalTransfer",e.MsgIncreasePositionMargin="injective.exchange.v1beta1.MsgIncreasePositionMargin",e.MsgInstantBinaryOptionsMarketLaunch="injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunch",e.MsgInstantPerpetualMarketLaunch="injective.exchange.v1beta1.MsgInstantPerpetualMarketLaunch",e.MsgInstantSpotMarketLaunch="injective.exchange.v1beta1.MsgInstantSpotMarketLaunch",e.MsgReclaimLockedFunds="injective.exchange.v1beta1.MsgReclaimLockedFunds",e.MsgRewardsOptOut="injective.exchange.v1beta1.MsgRewardsOptOut",e.MsgSubaccountTransfer="injective.exchange.v1beta1.MsgSubaccountTransfer",e.MsgWithdraw="injective.exchange.v1beta1.MsgWithdraw",e.MsgCreateInsuranceFund="injective.insurance.v1beta1.MsgCreateInsuranceFund",e.MsgRequestRedemption="injective.insurance.v1beta1.MsgRequestRedemption",e.MsgUnderwrite="injective.insurance.v1beta1.MsgUnderwrite",e.MsgConfirmBatch="injective.peggy.v1.MsgConfirmBatch",e.MsgDepositClaim="injective.peggy.v1.MsgDepositClaim",e.MsgERC20DeployedClaim="injective.peggy.v1.MsgERC20DeployedClaim",e.MsgRequestBatch="injective.peggy.v1.MsgRequestBatch",e.MsgSendToEth="injective.peggy.v1.MsgSendToEth",e.MsgSetOrchestratorAddresses="injective.peggy.v1.MsgSetOrchestratorAddresses",e.MsgValsetConfirm="injective.peggy.v1.MsgValsetConfirm",e.MsgValsetUpdatedClaim="injective.peggy.v1.MsgValsetUpdatedClaim",e.MsgWithdrawClaim="injective.peggy.v1.MsgWithdrawClaim",e.MsgBurn="injective.tokenfactory.v1beta1.MsgBurn",e.MsgCreateDenom="injective.tokenfactory.v1beta1.MsgCreateDenom",e.MsgMint="injective.tokenfactory.v1beta1.MsgMint",e.MsgExecuteContractCompat="injective.wasmx.v1.MsgExecuteContractCompat"}(SP||(SP={})),function(e){e.Success="success",e.Fail="fail"}(IP||(IP={})),function(e){e.Insert="insert",e.Delete="delete",e.Replace="replace",e.Update="update",e.Invalidate="invalidate"}(EP||(EP={})),function(e){e.Injective="injective-1",e.Cosmoshub="cosmoshub-4",e.Juno="juno-1",e.Osmosis="osmosis-1",e.Terra="columbus-5",e.TerraUST="columbus-5",e.Chihuahua="chihuahua-1",e.Axelar="axelar-dojo-1",e.Evmos="evmos_9001-2",e.Persistence="core-1",e.Secret="secret-4",e.Stride="stride-1",e.Crescent="crescent-1",e.Sommelier="sommelier-3",e.Canto="canto_7700-1"}(CP||(CP={})),function(e){e.Injective="injective-888",e.Cosmoshub="cosmoshub-testnet"}(TP||(TP={})),function(e){e.Injective="injective-777",e.Injective1="injective-777"}(OP||(OP={})),function(e){e.Market="market",e.LimitFill="limitFill",e.LimitMatchRestingOrder="limitMatchRestingOrder",e.LimitMatchNewOrder="limitMatchNewOrder"}(PP||(PP={})),function(e){e.Maker="maker",e.Taker="taker"}(MP||(MP={})),function(e){e.Buy="buy",e.Sell="sell",e.Long="long",e.Short="short"}(BP||(BP={})),function(e){e.Unfilled="unfilled",e.Booked="booked",e.PartialFilled="partial_filled",e.PartiallyFilled="partially_filled",e.Filled="filled",e.Canceled="canceled",e.Triggered="triggered"}(RP||(RP={})),function(e){e.Unspecified="unspecified",e.Buy="buy",e.Sell="sell",e.StopBuy="stop_buy",e.StopSell="stop_sell",e.TakeBuy="take_buy",e.TakeSell="take_sell",e.BuyPO="buy_po",e.SellPO="sell_po",e.BuyAtomic="buy_atomic",e.SellAtomic="sell_atomic",e.Unrecognized="unrecognized"}(NP||(NP={}));var LP,ZP,FP,HP,zP,qP={feeDenom:"inj",chainId:kP.Mainnet,ethereumChainId:_P.Mainnet,env:"mainnet"},QP={feeDenom:"inj",chainId:kP.Testnet,ethereumChainId:_P.Goerli,env:"testnet"},KP={feeDenom:"inj",chainId:kP.Devnet,ethereumChainId:_P.Goerli,env:"devnet"},VP={feeDenom:"inj",chainId:kP.Devnet,ethereumChainId:_P.Goerli,env:"local"},JP={indexerApi:"https://k8s.testnet.exchange.grpc-web.injective.network",sentryGrpcApi:"https://k8s.testnet.chain.grpc-web.injective.network",tendermintApi:"https://k8s.testnet.tm.injective.network",sentryHttpApi:"https://k8s.testnet.lcd.injective.network"},GP=(0,ca.Z)({},JP),WP={indexer:"https://staging.api.injective.network",grpc:"https://staging.grpc.injective.network",rpc:"https://staging.tm.injective.network",rest:"https://staging.lcd.injective.network",chronos:"https://staging.api.injective.network",explorer:"https://staging.api.injective.network"},YP=(0,ca.Z)({},WP);(zP=LP||(LP={})).MainnetK8s="mainnetK8s",zP.MainnetLB="mainnetLB",zP.Mainnet="mainnet",zP.Staging="staging",zP.Public="public",zP.TestnetK8s="testnetK8s",zP.TestnetOld="testnetOld",zP.Testnet="testnet",zP.Devnet1="devnet1",zP.Devnet2="devnet2",zP.Devnet="devnet",zP.Local="local",ZP={},(0,sa.Z)(ZP,LP.MainnetK8s,{indexerApi:"https://k8s.mainnet.exchange.grpc-web.injective.network",sentryGrpcApi:"https://k8s.mainnet.chain.grpc-web.injective.network",tendermintApi:"https://k8s.mainnet.tm.injective.network",sentryHttpApi:"https://k8s.mainnet.lcd.injective.network"}),(0,sa.Z)(ZP,LP.MainnetLB,{indexerApi:"https://k8s.mainnet.exchange.grpc-web.injective.network",sentryGrpcApi:"https://k8s.mainnet.chain.grpc-web.injective.network",tendermintApi:"https://k8s.mainnet.tm.injective.network",sentryHttpApi:"https://k8s.mainnet.lcd.injective.network"}),(0,sa.Z)(ZP,LP.Staging,{indexerApi:"https://staging.api.injective.network",sentryGrpcApi:"https://staging.grpc.injective.network",tendermintApi:"https://staging.tm.injective.network",sentryHttpApi:"https://staging.lcd.injective.network"}),(0,sa.Z)(ZP,LP.Mainnet,{indexerApi:"https://api.injective.network",sentryGrpcApi:"https://grpc.injective.network",tendermintApi:"https://tm.injective.network",sentryHttpApi:"https://lcd.injective.network"}),(0,sa.Z)(ZP,LP.Public,{indexerApi:"https://public.api.injective.network",sentryGrpcApi:"https://public.grpc.injective.network",tendermintApi:"https://tm.injective.network",sentryHttpApi:"https://public.lcd.injective.network"}),(0,sa.Z)(ZP,LP.Devnet,{indexerApi:"https://devnet.api.injective.dev",sentryGrpcApi:"https://devnet.grpc.injective.dev",tendermintApi:"https://devnet.tm.injective.dev",sentryHttpApi:"https://devnet.lcd.injective.dev"}),(0,sa.Z)(ZP,LP.Devnet1,{indexerApi:"https://devnet-1.api.injective.dev",sentryGrpcApi:"https://devnet-1.grpc.injective.dev",tendermintApi:"https://devnet-1.tm.injective.dev",sentryHttpApi:"https://devnet-1.lcd.injective.dev"}),(0,sa.Z)(ZP,LP.Devnet2,{indexerApi:"https://devnet-2.api.injective.dev",sentryGrpcApi:"https://devnet-2.grpc.injective.dev",tendermintApi:"https://devnet-2.tm.injective.dev",sentryHttpApi:"https://devnet-2.lcd.injective.dev"}),(0,sa.Z)(ZP,LP.Testnet,GP),(0,sa.Z)(ZP,LP.TestnetK8s,JP),(0,sa.Z)(ZP,LP.TestnetOld,{indexerApi:"https://testnet.api.injective.dev",sentryGrpcApi:"https://testnet.grpc.injective.dev",tendermintApi:"https://testnet.tm.injective.dev",sentryHttpApi:"https://testnet.lcd.injective.dev"}),(0,sa.Z)(ZP,LP.Local,{indexerApi:"https://localhost:4444",sentryGrpcApi:"http://localhost:9091",tendermintApi:"http://localhost:9091",sentryHttpApi:"http://localhost:9091"}),FP={},(0,sa.Z)(FP,LP.MainnetLB,{indexer:"https://k8s.global.mainnet.exchange.grpc-web.injective.network",grpc:"https://k8s.global.mainnet.chain.grpc-web.injective.network",rpc:"https://k8s.global.mainnet.tm.injective.network",rest:"https://k8s.global.mainnet.lcd.injective.network",chronos:"https://k8s.global.mainnet.chronos.grpc-web.injective.network",explorer:"https://k8s.global.mainnet.explorer.grpc-web.injective.network"}),(0,sa.Z)(FP,LP.MainnetK8s,{indexer:"https://k8s.mainnet.exchange.grpc-web.injective.network",grpc:"https://k8s.mainnet.chain.grpc-web.injective.network",rpc:"https://k8s.mainnet.tm.injective.network",rest:"https://k8s.mainnet.lcd.injective.network",chronos:"https://k8s.mainnet.chronos.grpc-web.injective.network",explorer:"https://k8s.mainnet.explorer.grpc-web.injective.network"}),(0,sa.Z)(FP,LP.Staging,WP),(0,sa.Z)(FP,LP.Mainnet,{indexer:"https://api.injective.network",grpc:"https://grpc.injective.network",rpc:"https://tm.injective.network",rest:"https://lcd.injective.network",chronos:"https://api.injective.network",explorer:"https://api.injective.network"}),(0,sa.Z)(FP,LP.Public,YP),(0,sa.Z)(FP,LP.Devnet,{indexer:"https://devnet.api.injective.dev",grpc:"https://devnet.grpc.injective.dev",rpc:"https://devnet.tm.injective.dev",rest:"https://devnet.lcd.injective.dev",chronos:"https://devnet.api.injective.dev",explorer:"https://devnet.api.injective.dev"}),(0,sa.Z)(FP,LP.Devnet1,{indexer:"https://devnet-1.api.injective.dev",grpc:"https://devnet-1.grpc.injective.dev",rpc:"https://devnet-1.tm.injective.dev",rest:"https://devnet-1.lcd.injective.dev",chronos:"https://devnet-1.api.injective.dev",explorer:"https://devnet-1.api.injective.dev"}),(0,sa.Z)(FP,LP.Devnet2,{indexer:"https://devnet-2.api.injective.dev",grpc:"https://devnet-2.grpc.injective.dev",rpc:"https://devnet-2.tm.injective.dev",rest:"https://devnet-2.lcd.injective.dev",chronos:"https://devnet-2.api.injective.dev",explorer:"https://devnet-2.api.injective.dev"}),(0,sa.Z)(FP,LP.Testnet,{indexer:"https://testnet.exchange.grpc-web.injective.network",grpc:"https://testnet.chain.grpc-web.injective.network",rpc:"https://testnet.tm.injective.network",rest:"https://testnet.lcd.injective.network",chronos:"https://testnet.exchange.grpc-web.injective.network",explorer:"https://testnet.exchange.grpc-web.injective.network"}),(0,sa.Z)(FP,LP.TestnetK8s,{indexer:"https://k8s.testnet.exchange.grpc-web.injective.network",grpc:"https://k8s.testnet.chain.grpc-web.injective.network",rpc:"https://k8s.testnet.tm.injective.network",rest:"https://k8s.testnet.lcd.injective.network",chronos:"https://k8s.testnet.exchange.grpc-web.injective.network",explorer:"https://k8s.testnet.explorer.grpc-web.injective.network"}),(0,sa.Z)(FP,LP.TestnetOld,{indexer:"https://testnet.exchange.grpc-web.injective.dev",grpc:"https://testnet.chain.grpc-web.injective.dev",rpc:"https://testnet.tm.injective.dev",rest:"https://testnet.lcd.injective.dev",chronos:"https://testnet.exchange.grpc-web.injective.dev",explorer:"https://testnet.exchange.grpc-web.injective.dev"}),(0,sa.Z)(FP,LP.Local,{indexer:"https://localhost:4444",grpc:"http://localhost:9091",rpc:"http://localhost:9091",rest:"http://localhost:9091",chronos:"https://localhost:4445",explorer:"https://localhost:4446"}),HP={},(0,sa.Z)(HP,LP.MainnetLB,qP),(0,sa.Z)(HP,LP.MainnetK8s,qP),(0,sa.Z)(HP,LP.Staging,qP),(0,sa.Z)(HP,LP.Mainnet,qP),(0,sa.Z)(HP,LP.Public,qP),(0,sa.Z)(HP,LP.Devnet,KP),(0,sa.Z)(HP,LP.Devnet1,KP),(0,sa.Z)(HP,LP.Devnet2,KP),(0,sa.Z)(HP,LP.Testnet,QP),(0,sa.Z)(HP,LP.TestnetOld,QP),(0,sa.Z)(HP,LP.TestnetK8s,QP),(0,sa.Z)(HP,LP.Local,VP);var XP,$P=n(63544),eM=(XP={},(0,sa.Z)(XP,LP.Mainnet,"inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk"),(0,sa.Z)(XP,LP.MainnetLB,"inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk"),(0,sa.Z)(XP,LP.MainnetK8s,"inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk"),(0,sa.Z)(XP,LP.Public,"inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk"),(0,sa.Z)(XP,LP.Staging,"inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk"),(0,sa.Z)(XP,LP.Testnet,"inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6"),(0,sa.Z)(XP,LP.TestnetK8s,"inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6"),(0,sa.Z)(XP,LP.TestnetOld,"inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6"),(0,sa.Z)(XP,LP.Devnet,"inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6"),(0,sa.Z)(XP,LP.Devnet1,"inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6"),(0,sa.Z)(XP,LP.Devnet2,"inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6"),(0,sa.Z)(XP,LP.Local,"inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6"),n(62332).Buffer,n(62332).Buffer,function(e){return e?(0,ca.Z)((0,ca.Z)({},e),{},{to:parseInt(e.to.toString()||"0",10),from:parseInt(e.from.toString()||"0",10),total:parseInt(e.total||"0",10)}):{to:0,from:0,total:0}});n(53372),n(62332).Buffer,n(62332).Buffer,n(77294),n(95345),n(4147),n(74263),n(40951),n(2414),n(62332).Buffer,n(62332).Buffer,n(62332).Buffer;var tM,nM=n(28957),rM=n(96126),aM=function(){return fS()?(0,rM.ReactNativeTransport)({withCredentials:!0}):dS()?(0,nM.NodeHttpTransport)():void 0};!function(e){e.UnBonded="UnBonded",e.UnBonding="UnBonding",e.Bonded="Bonded"}(tM||(tM={})),n(62332).Buffer,(0,ca.Z)({},ik),lS()||OS.grpc.setDefaultTransport(aM()),n(62332).Buffer;var iM,oM,sM=("0x".concat(new hS(888).toString(16)),iM={EIP712Domain:[{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"}]},(0,sa.Z)(iM,"SpotOrder",[{name:"MarketId",type:"string"},{name:"OrderInfo",type:"OrderInfo"},{name:"Salt",type:"string"},{name:"OrderType",type:"string"},{name:"TriggerPrice",type:"string"}]),(0,sa.Z)(iM,"DerivativeOrder",[{name:"MarketId",type:"string"},{name:"OrderInfo",type:"OrderInfo"},{name:"OrderType",type:"string"},{name:"Margin",type:"string"},{name:"TriggerPrice",type:"string"},{name:"Salt",type:"string"}]),(0,sa.Z)(iM,"OrderInfo",[{name:"SubaccountId",type:"string"},{name:"FeeRecipient",type:"string"},{name:"Price",type:"string"},{name:"Quantity",type:"string"}]),n(62332).Buffer,n(77020),n(62332).Buffer,function(e){(0,la.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ya.Z)(this,n),t.apply(this,arguments)}return(0,ma.Z)(n,[{key:"toProto",value:function(){var e=this.params,t=DP.create(),n=this.getMsgObject();if(t.msg=JSON.stringify(n),t.sender=e.sender,t.contract=e.contractAddress,e.funds){var r=(Array.isArray(e.funds)?e.funds:[e.funds]).map((function(e){return"".concat(e.amount).concat(e.denom)}));t.funds=r.join(",")}else t.funds="0";return DP.fromPartial(t)}},{key:"toData",value:function(){var e=this.toProto();return(0,ca.Z)({"@type":"/injective.wasmx.v1.MsgExecuteContractCompat"},e)}},{key:"toAmino",value:function(){var e=this.toProto(),t=(0,ca.Z)((0,ca.Z)({},$_(e)),{},{msg:JSON.stringify(this.getMsgObject())});return delete t.funds_list,{type:"wasmx/MsgExecuteContractCompat",value:t}}},{key:"toWeb3",value:function(){var e=this.toAmino().value;return(0,ca.Z)({"@type":"/injective.wasmx.v1.MsgExecuteContractCompat"},e)}},{key:"toDirectSign",value:function(){return{type:"/injective.wasmx.v1.MsgExecuteContractCompat",message:this.toProto()}}},{key:"toBinary",value:function(){return DP.encode(this.toProto()).finish()}},{key:"getMsgObject",value:function(){var e=this.params;if((e.exec||e.msg)&&e.execArgs)throw new Jk(new Error("Please provide only one exec|msg argument"));if(e.execArgs)return e.execArgs.toExecData();if(e.exec)return(0,sa.Z)({},e.exec.action,e.exec.msg);if(e.msg)return e.msg;throw new Jk(new Error("Please provide at least one exec argument"))}}],[{key:"fromJSON",value:function(e){return new n(e)}}]),n}(TS));!function(e){e.Sync="BROADCAST_MODE_SYNC",e.Async="BROADCAST_MODE_ASYNC",e.Block="BROADCAST_MODE_BLOCK"}(oM||(oM={})),n(62332).Buffer,n(58880),YS.SIGN_MODE_DIRECT,YS.SIGN_MODE_LEGACY_AMINO_JSON,n(64182),n(62332).Buffer,n(62332).Buffer;var cM,uM,fM,dM,lM=function(){function e(){(0,ya.Z)(this,e)}return(0,ma.Z)(e,null,[{key:"accountPortfolioResponseToAccountPortfolio",value:function(t){var n=t.portfolio,r=n.subaccounts||[];return{portfolioValue:n.portfolioValue,availableBalance:n.availableBalance,lockedBalance:n.lockedBalance,unrealizedPnl:n.unrealizedPnl,subaccountsList:r.map(e.grpcSubaccountPortfolioToSubaccountPortfolio)}}},{key:"grpcSubaccountPortfolioToSubaccountPortfolio",value:function(e){return{subaccountId:e.subaccountId,availableBalance:e.availableBalance,lockedBalance:e.lockedBalance,unrealizedPnl:e.unrealizedPnl}}},{key:"grpcAccountPortfolioToAccountPortfolio",value:function(t){return{portfolioValue:t.portfolioValue,availableBalance:t.availableBalance,lockedBalance:t.lockedBalance,unrealizedPnl:t.unrealizedPnl,subaccountsList:t.subaccounts.map(e.grpcSubaccountPortfolioToSubaccountPortfolio)}}},{key:"grpcAmountToAmount",value:function(e){return{amount:e.amount,denom:e.denom}}},{key:"grpcDepositToDeposit",value:function(e){return{totalBalance:e.totalBalance,availableBalance:e.availableBalance}}},{key:"balancesResponseToBalances",value:function(t){return t.balances.map((function(t){return e.grpcBalanceToBalance(t)}))}},{key:"balanceResponseToBalance",value:function(t){return e.grpcBalanceToBalance(t.balance)}},{key:"grpcBalanceToBalance",value:function(t){var n=t.deposit;return{subaccountId:t.subaccountId,accountAddress:t.accountAddress,denom:t.denom,deposit:n?e.grpcDepositToDeposit(n):void 0}}},{key:"grpcBalancesToBalances",value:function(t){return t.map((function(t){return e.grpcBalanceToBalance(t)}))}},{key:"grpcTransferHistoryEntryToTransferHistoryEntry",value:function(t){var n=t.amount;return{transferType:t.transferType,srcSubaccountId:t.srcSubaccountId,srcSubaccountAddress:t.srcAccountAddress,dstSubaccountId:t.dstSubaccountId,dstSubaccountAddress:t.dstAccountAddress,executedAt:parseInt(t.executedAt,10),amount:n?e.grpcAmountToAmount(n):void 0}}},{key:"tradingRewardsResponseToTradingRewards",value:function(t){return t.rewards.map(e.grpcTradingRewardToTradingReward)}},{key:"grpcTradingRewardsToTradingRewards",value:function(t){return t.map(e.grpcTradingRewardToTradingReward)}},{key:"grpcTradingRewardToTradingReward",value:function(e){return{accountAddress:e.accountAddress,rewards:e.rewards.map((function(e){return{amount:e.amount,denom:e.denom}})),distributedAt:parseInt(e.distributedAt,10)}}},{key:"transferHistoryResponseToTransferHistory",value:function(t){var n=t.transfers,r=t.paging;return{transfers:n.map((function(t){return e.grpcTransferHistoryEntryToTransferHistoryEntry(t)})),pagination:eM(r)}}},{key:"grpcTransferHistoryToTransferHistory",value:function(t){return t.map((function(t){return e.grpcTransferHistoryEntryToTransferHistoryEntry(t)}))}}]),e}();!function(e){e.Market="market",e.LimitFill="limitFill",e.LimitMatchRestingOrder="limitMatchRestingOrder",e.LimitMatchNewOrder="limitMatchNewOrder"}(cM||(cM={})),function(e){e.Maker="maker",e.Taker="taker"}(uM||(uM={})),function(e){e.Buy="buy",e.Sell="sell",e.Long="long",e.Short="short"}(fM||(fM={})),function(e){e.Insert="insert",e.Delete="delete",e.Replace="replace",e.Update="update",e.Invalidate="invalidate"}(dM||(dM={}));var pM=(0,ma.Z)((function e(){(0,ya.Z)(this,e)}));(0,sa.Z)(pM,"balanceStreamCallback",(function(e){var t=e.balance;return{balance:t?lM.grpcBalanceToBalance(t):void 0,operation:dM.Update,timestamp:e.timestamp}}));var bM=(0,ma.Z)((function e(){(0,ya.Z)(this,e)}));(0,sa.Z)(bM,"accountPortfolioStreamCallback",(function(e){return{type:e.type,denom:e.denom,amount:e.amount,subaccountId:e.subaccountId}}));var hM=(0,ma.Z)((function e(){(0,ya.Z)(this,e)}));(0,sa.Z)(hM,"bidsStreamCallback",(function(e){return{bid:{bidder:e.bidder,bidAmount:e.bidAmount,bidTimestamp:parseInt(e.timestamp,10)},operation:EP.Insert}}));var yM=function(){function e(){(0,ya.Z)(this,e)}return(0,ma.Z)(e,null,[{key:"grpcTokenMetaToTokenMeta",value:function(e){if(e)return{name:e.name,address:e.address,symbol:e.symbol,logo:e.logo,decimals:e.decimals,updatedAt:e.updatedAt,coinGeckoId:""}}},{key:"grpcPerpetualMarketInfoToPerpetualMarketInfo",value:function(e){if(e)return{hourlyFundingRateCap:e.hourlyFundingRateCap,hourlyInterestRate:e.hourlyInterestRate,nextFundingTimestamp:parseInt(e.nextFundingTimestamp,10),fundingInterval:parseInt(e.fundingInterval,10)}}},{key:"grpcPerpetualMarketFundingToPerpetualMarketFunding",value:function(e){if(e)return{cumulativeFunding:e.cumulativeFunding,cumulativePrice:e.cumulativePrice,lastTimestamp:parseInt(e.lastTimestamp,10)}}},{key:"grpcExpiryFuturesMarketInfoToExpiryFuturesMarketInfo",value:function(e){if(e)return{expirationTimestamp:parseInt(e.expirationTimestamp,10),settlementPrice:e.settlementPrice}}},{key:"marketResponseToMarket",value:function(t){var n=t.market;return e.grpcMarketToMarket(n)}},{key:"marketsResponseToMarkets",value:function(t){var n=t.markets;return e.grpcMarketsToMarkets(n)}},{key:"ordersResponseToOrders",value:function(t){var n=t.orders,r=t.paging;return{orders:e.grpcOrdersToOrders(n),pagination:eM(r)}}},{key:"orderHistoryResponseToOrderHistory",value:function(t){var n=t.orders,r=t.paging;return{orderHistory:e.grpcOrderHistoryListToOrderHistoryList(n),pagination:eM(r)}}},{key:"positionsResponseToPositions",value:function(t){var n=t.positions,r=t.paging;return{positions:e.grpcPositionsToPositions(n),pagination:eM(r)}}},{key:"tradesResponseToTrades",value:function(t){var n=t.trades,r=t.paging;return{trades:e.grpcTradesToTrades(n),pagination:eM(r)}}},{key:"subaccountTradesListResponseToSubaccountTradesList",value:function(t){var n=t.trades;return e.grpcTradesToTrades(n)}},{key:"fundingPaymentsResponseToFundingPayments",value:function(t){var n=t.payments,r=t.paging;return{fundingPayments:e.grpcFundingPaymentsToFundingPayments(n),pagination:eM(r)}}},{key:"fundingRatesResponseToFundingRates",value:function(t){var n=t.fundingRates,r=t.paging;return{fundingRates:e.grpcFundingRatesToFundingRates(n),pagination:eM(r)}}},{key:"orderbookV2ResponseToOrderbookV2",value:function(t){var n=t.orderbook;return e.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(n.sequence,10),buys:null==n?void 0:n.buys,sells:null==n?void 0:n.sells})}},{key:"orderbooksV2ResponseToOrderbooksV2",value:function(t){return t.orderbooks.map((function(t){var n=t.orderbook;return{marketId:t.marketId,orderbook:e.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(n.sequence,10),buys:n.buys,sells:n.sells})}}))}},{key:"binaryOptionsMarketResponseToBinaryOptionsMarket",value:function(t){var n=t.market;return e.grpcBinaryOptionsMarketToBinaryOptionsMarket(n)}},{key:"binaryOptionsMarketResponseWithPaginationToBinaryOptionsMarket",value:function(t){var n=t.markets,r=t.paging;return{markets:e.grpcBinaryOptionsMarketsToBinaryOptionsMarkets(n),pagination:eM(r)}}},{key:"binaryOptionsMarketsResponseToBinaryOptionsMarkets",value:function(t){var n=t.markets;return e.grpcBinaryOptionsMarketsToBinaryOptionsMarkets(n)}},{key:"grpcBinaryOptionsMarketToBinaryOptionsMarket",value:function(t){return{marketId:t.marketId,marketStatus:t.marketStatus,ticker:t.ticker,oracleSymbol:t.oracleSymbol,oracleProvider:t.oracleProvider,oracleType:t.oracleType,oracleScaleFactor:t.oracleScaleFactor,expirationTimestamp:parseInt(t.expirationTimestamp,10),settlementTimestamp:parseInt(t.settlementTimestamp,10),quoteDenom:t.quoteDenom,quoteToken:e.grpcTokenMetaToTokenMeta(t.quoteTokenMeta),makerFeeRate:t.makerFeeRate,takerFeeRate:t.takerFeeRate,serviceProviderFee:t.serviceProviderFee,minPriceTickSize:t.minPriceTickSize,minQuantityTickSize:t.minQuantityTickSize,settlementPrice:t.settlementPrice}}},{key:"grpcBinaryOptionsMarketsToBinaryOptionsMarkets",value:function(t){return t.map(e.grpcBinaryOptionsMarketToBinaryOptionsMarket)}},{key:"grpcMarketToMarket",value:function(t){return{oracleBase:t.oracleBase,oracleQuote:t.oracleQuote,oracleType:t.oracleType,oracleScaleFactor:t.oracleScaleFactor,initialMarginRatio:t.initialMarginRatio,maintenanceMarginRatio:t.maintenanceMarginRatio,isPerpetual:t.isPerpetual,marketId:t.marketId,marketStatus:t.marketStatus,ticker:t.ticker,quoteDenom:t.quoteDenom,quoteToken:e.grpcTokenMetaToTokenMeta(t.quoteTokenMeta),makerFeeRate:t.makerFeeRate,takerFeeRate:t.takerFeeRate,serviceProviderFee:t.serviceProviderFee,minPriceTickSize:new hS(t.minPriceTickSize).toNumber(),minQuantityTickSize:new hS(t.minQuantityTickSize).toNumber(),perpetualMarketInfo:e.grpcPerpetualMarketInfoToPerpetualMarketInfo(t.perpetualMarketInfo),perpetualMarketFunding:e.grpcPerpetualMarketFundingToPerpetualMarketFunding(t.perpetualMarketFunding),expiryFuturesMarketInfo:e.grpcExpiryFuturesMarketInfoToExpiryFuturesMarketInfo(t.expiryFuturesMarketInfo)}}},{key:"grpcMarketsToMarkets",value:function(t){return t.map((function(t){return e.grpcMarketToMarket(t)}))}},{key:"grpcPositionDeltaToPositionDelta",value:function(e){return{tradeDirection:e.tradeDirection,executionPrice:e.executionPrice,executionQuantity:e.executionQuantity,executionMargin:e.executionMargin}}},{key:"grpcPriceLevelToPriceLevel",value:function(e){return{price:e.price,quantity:e.quantity,timestamp:parseInt(e.timestamp,10)}}},{key:"grpcPriceLevelsToPriceLevels",value:function(t){return t.map((function(t){return e.grpcPriceLevelToPriceLevel(t)}))}},{key:"grpcOrderbookToOrderbook",value:function(t){var n=t.buys,r=t.sells;return{buys:e.grpcPriceLevelsToPriceLevels(n),sells:e.grpcPriceLevelsToPriceLevels(r)}}},{key:"grpcOrderbookV2ToOrderbookV2",value:function(t){var n=t.sequence,r=t.buys,a=t.sells;return{sequence:n,buys:e.grpcPriceLevelsToPriceLevels(r),sells:e.grpcPriceLevelsToPriceLevels(a)}}},{key:"grpcOrderToOrder",value:function(e){return{orderHash:e.orderHash,orderSide:e.orderSide,marketId:e.marketId,subaccountId:e.subaccountId,isReduceOnly:e.isReduceOnly,margin:e.margin,price:e.price,quantity:e.quantity,unfilledQuantity:e.unfilledQuantity,triggerPrice:e.triggerPrice,feeRecipient:e.feeRecipient,state:e.state,createdAt:parseInt(e.createdAt,10),updatedAt:parseInt(e.updatedAt,10),orderNumber:parseInt(e.orderNumber,10),triggerAt:parseInt(e.triggerAt,10),orderType:e.orderType,isConditional:e.isConditional,placedOrderHash:e.placedOrderHash,executionType:e.executionType}}},{key:"grpcOrdersToOrders",value:function(t){return t.map((function(t){return e.grpcOrderToOrder(t)}))}},{key:"grpcOrderHistoryToOrderHistory",value:function(e){return{orderHash:e.orderHash,marketId:e.marketId,isActive:e.isActive,subaccountId:e.subaccountId,executionType:e.executionType,orderType:e.orderType,price:e.price,triggerPrice:e.triggerPrice,quantity:e.quantity,filledQuantity:e.filledQuantity,state:e.state,createdAt:parseInt(e.createdAt,10),updatedAt:parseInt(e.updatedAt,10),triggerAt:parseInt(e.triggerAt,10),isReduceOnly:e.isReduceOnly,direction:e.direction,isConditional:e.isConditional,placedOrderHash:e.placedOrderHash,margin:e.margin}}},{key:"grpcOrderHistoryListToOrderHistoryList",value:function(t){return t.map((function(t){return e.grpcOrderHistoryToOrderHistory(t)}))}},{key:"grpcPositionToPosition",value:function(e){return{marketId:e.marketId,subaccountId:e.subaccountId,direction:e.direction,quantity:e.quantity,entryPrice:e.entryPrice,margin:e.margin,aggregateReduceOnlyQuantity:e.aggregateReduceOnlyQuantity,liquidationPrice:e.liquidationPrice,markPrice:e.markPrice,ticker:e.ticker,updatedAt:parseInt(e.updatedAt,10)}}},{key:"grpcPositionsToPositions",value:function(t){return t.map((function(t){return e.grpcPositionToPosition(t)}))}},{key:"grpcTradeToTrade",value:function(t){var n=t.positionDelta,r=n?e.grpcPositionDeltaToPositionDelta(n):{tradeDirection:BP.Buy,executionPrice:"0",executionQuantity:"0",executionMargin:"0"};return(0,ca.Z)({orderHash:t.orderHash,tradeId:t.tradeId,subaccountId:t.subaccountId,marketId:t.marketId,executedAt:parseInt(t.executedAt,10),tradeExecutionType:t.tradeExecutionType,executionSide:t.executionSide,fee:t.fee,feeRecipient:t.feeRecipient,isLiquidation:t.isLiquidation,payout:t.payout},r)}},{key:"grpcTradesToTrades",value:function(t){return t.map((function(t){return e.grpcTradeToTrade(t)}))}},{key:"grpcFundingPaymentToFundingPayment",value:function(e){return{marketId:e.marketId,subaccountId:e.subaccountId,amount:e.amount,timestamp:parseInt(e.timestamp,10)}}},{key:"grpcFundingPaymentsToFundingPayments",value:function(t){return t.map(e.grpcFundingPaymentToFundingPayment)}},{key:"grpcFundingRateToFundingRate",value:function(e){return{marketId:e.marketId,rate:e.rate,timestamp:parseInt(e.timestamp,10)}}},{key:"grpcFundingRatesToFundingRates",value:function(t){return t.map(e.grpcFundingRateToFundingRate)}}]),e}(),mM=(0,ma.Z)((function e(){(0,ya.Z)(this,e)}));(0,sa.Z)(mM,"tradesStreamCallback",(function(e){var t=e.trade;return{trade:t?yM.grpcTradeToTrade(t):void 0,operation:e.operationType,timestamp:e.timestamp}})),(0,sa.Z)(mM,"positionStreamCallback",(function(e){var t=e.position;return{position:t?yM.grpcPositionToPosition(t):void 0,timestamp:e.timestamp}})),(0,sa.Z)(mM,"ordersStreamCallback",(function(e){var t=e.order;return{order:t?yM.grpcOrderToOrder(t):void 0,operation:e.operationType,timestamp:e.timestamp}})),(0,sa.Z)(mM,"orderHistoryStreamCallback",(function(e){var t=e.order;return{order:t?yM.grpcOrderHistoryToOrderHistory(t):void 0,operation:e.operationType,timestamp:e.timestamp}})),(0,sa.Z)(mM,"orderbookV2StreamCallback",(function(e){var t=e.orderbook;return{orderbook:t?yM.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(t.sequence,10),buys:t.buys,sells:t.sells}):void 0,operation:e.operationType,marketId:e.marketId,timestamp:e.timestamp}})),(0,sa.Z)(mM,"orderbookUpdateStreamCallback",(function(e){var t=e.orderbookLevelUpdates;return{orderbook:t?yM.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(t.sequence,10),buys:t.buys,sells:t.sells}):void 0,operation:e.operationType,marketId:e.marketId,timestamp:e.timestamp}}));var vM=n(62332).Buffer,gM=function(){function e(){(0,ya.Z)(this,e)}return(0,ma.Z)(e,null,[{key:"getTxByTxHashResponseToTx",value:function(t){return e.grpcTransactionToTransaction(t)}},{key:"getAccountTxsResponseToAccountTxs",value:function(t){var n=t.data,r=t.paging;return{txs:e.grpcTransactionsToTransactionsFromDetail(n),pagination:eM(r)}}},{key:"getValidatorUptimeResponseToValidatorUptime",value:function(t){return t.data.map((function(t){return e.grpcValidatorUptimeToValidatorUptime(t)}))}},{key:"getPeggyDepositTxsResponseToPeggyDepositTxs",value:function(t){return t.field.map((function(t){return e.grpcPeggyDepositTx(t)}))}},{key:"getPeggyWithdrawalTxsResponseToPeggyWithdrawalTxs",value:function(t){return t.field.map((function(t){return e.grpcPeggyWithdrawalTx(t)}))}},{key:"getIBCTransferTxsResponseToIBCTransferTxs",value:function(t){return t.field.map((function(t){return e.grpcIBCTransferTxToIBCTransferTx(t)}))}},{key:"validatorResponseToValidator",value:function(t){var n=t.data;return{id:n.id,moniker:n.moniker,operatorAddress:n.operatorAddress,consensusAddress:n.consensusAddress,jailed:n.jailed,status:n.status,tokens:n.tokens,delegatorShares:n.delegatorShares,description:e.grpcValidatorDescriptionToValidatorDescription(n.description),unbondingHeight:parseInt(n.unbondingHeight,10),unbondingTime:n.unbondingTime,commissionRate:n.commissionRate,commissionMaxRate:n.commissionMaxRate,commissionMaxChangeRate:n.commissionMaxChangeRate,commissionUpdateTime:n.commissionUpdateTime,proposed:parseInt(n.proposed,10),signed:parseInt(n.signed,10),missed:parseInt(n.missed,10),uptimePercentage:n.uptimePercentage,timestamp:n.timestamp,uptimesList:n.uptimes.map(e.grpcValidatorUptimeToValidatorUptime),slashingEventsList:n.slashingEvents.map(e.grpcValidatorSlashingEventToValidatorSlashingEvent)}}},{key:"streamTxResponseToTxs",value:function(e){return{id:e.id,blockNumber:parseInt(e.blockNumber,10),blockTimestamp:e.blockTimestamp,hash:e.hash,codespace:e.codespace,messages:e.messages,txNumber:parseInt(e.txNumber,10),errorLog:e.errorLog,code:e.code}}},{key:"grpcGasFeeToGasFee",value:function(e){return{amounts:e.amount.map((function(e){return{amount:e.amount,denom:e.denom}})),gasLimit:parseInt(e.gasLimit,10),payer:e.payer,granter:e.granter}}},{key:"grpcTransactionToBankMsgSendTransaction",value:function(e){var t=e.data,n=JSON.parse(vM.from(t.messages).toString()),r=(0,fa.Z)(n,1)[0];return{blockNumber:parseInt(t.blockNumber,10),blockTimestamp:t.blockTimestamp,hash:t.hash,amount:r.value.amount[0].amount,denom:r.value.amount[0].denom,sender:r.value.from_address,receiver:r.value.to_address}}},{key:"grpcTransactionToTransaction",value:function(t){var n=t.data;return{id:n.id,blockNumber:parseInt(n.blockNumber,10),blockTimestamp:n.blockTimestamp,hash:n.hash,code:n.code,info:n.info,gasWanted:parseInt(n.gasWanted,10),gasUsed:parseInt(n.gasUsed,10),codespace:n.codespace,data:n.data,gasFee:e.grpcGasFeeToGasFee(n.gasFee),txType:n.txType,signatures:n.signatures.map((function(e){return{pubkey:e.pubkey,address:e.address,sequence:parseInt(e.sequence,10),signature:e.signature}})),events:n.events.map((function(e){return{type:e.type,attributes:e.attributes}})),messages:JSON.parse(vM.from(n.messages).toString())}}},{key:"grpcTransactionsToTransactions",value:function(t){return t.map((function(t){return e.grpcTransactionToTransaction(t)}))}},{key:"grpcTransactionToTransactionFromDetail",value:function(t){var n=JSON.parse(vM.from(t.messages).toString("utf8"));return(0,ca.Z)((0,ca.Z)({},t),{},{gasWanted:parseInt(t.gasWanted,10),gasUsed:parseInt(t.gasUsed,10),blockNumber:parseInt(t.blockNumber,10),signatures:t.signatures.map((function(e){return{pubkey:e.pubkey,address:e.address,sequence:parseInt(e.sequence,10),signature:e.signature}})),gasFee:t.gasFee?e.grpcGasFeeToGasFee(t.gasFee):{gasLimit:0,payer:"",granter:"",amounts:[]},events:t.events.map((function(e){return{type:e.type,attributes:e.attributes}})),messages:n})}},{key:"grpcTransactionsToTransactionsFromDetail",value:function(t){return t.map(e.grpcTransactionToTransactionFromDetail)}},{key:"grpcBlockToBlock",value:function(e){return{height:parseInt(e.height,10),proposer:e.proposer,moniker:e.moniker,blockHash:e.blockHash,parentHash:e.parentHash,numPreCommits:parseInt(e.numPreCommits,10),numTxs:parseInt(e.numTxs,10),timestamp:e.timestamp}}},{key:"grpcBlockToBlockWithTxs",value:function(e){return{height:parseInt(e.height,10),proposer:e.proposer,moniker:e.moniker,blockHash:e.blockHash,parentHash:e.parentHash,numPreCommits:parseInt(e.numPreCommits,10),numTxs:parseInt(e.numTxs,10),timestamp:e.timestamp}}},{key:"grpcBlocksToBlocks",value:function(t){return t.map((function(t){return e.grpcBlockToBlock(t)}))}},{key:"grpcBlocksToBlocksWithTxs",value:function(t){return t.map((function(t){return e.grpcBlockToBlockWithTxs(t)}))}},{key:"grpcValidatorDescriptionToValidatorDescription",value:function(e){return{moniker:e.moniker,identity:e.identity,website:e.website,securityContact:e.securityContact,details:e.details}}},{key:"grpcValidatorUptimeToValidatorUptime",value:function(e){return{blockNumber:parseInt(e.blockNumber,10),status:e.status}}},{key:"grpcValidatorSlashingEventToValidatorSlashingEvent",value:function(e){return{blockNumber:parseInt(e.blockNumber,10),blockTimestamp:e.blockTimestamp,address:e.address,power:parseInt(e.power,10),reason:e.reason,jailed:e.jailed,missedBlocks:parseInt(e.missedBlocks,10)}}},{key:"grpcIBCTransferTxToIBCTransferTx",value:function(e){return{sender:e.sender,receiver:e.receiver,sourcePort:e.sourcePort,sourceChannel:e.sourceChannel,destinationPort:e.destinationPort,destinationChannel:e.destinationChannel,amount:e.amount,denom:e.denom,timeoutHeight:e.timeoutHeight,timeoutTimestamp:parseInt(e.timeoutTimestamp,10),packetSequence:parseInt(e.packetSequence,10),dataHex:e.dataHex,state:e.state,txHashesList:e.txHashes,createdAt:e.createdAt,updatedAt:e.updatedAt}}},{key:"grpcPeggyDepositTx",value:function(e){return{sender:e.sender,receiver:e.receiver,eventNonce:parseInt(e.eventNonce,10),eventHeight:parseInt(e.eventHeight,10),amount:e.amount,denom:e.denom,orchestratorAddress:e.orchestratorAddress,state:e.state,claimType:e.claimType,txHashesList:e.txHashes,createdAt:e.createdAt,updatedAt:e.updatedAt}}},{key:"grpcPeggyWithdrawalTx",value:function(e){return{sender:e.sender,receiver:e.receiver,amount:e.amount,denom:e.denom,bridgeFee:e.bridgeFee,outgoingTxId:parseInt(e.outgoingTxId,10),batchTimeout:parseInt(e.batchTimeout,10),batchNonce:parseInt(e.batchNonce,10),eventNonce:parseInt(e.eventNonce,10),eventHeight:parseInt(e.eventHeight,10),orchestratorAddress:e.orchestratorAddress,state:e.state,claimType:e.claimType,txHashesList:e.txHashes,createdAt:e.createdAt,updatedAt:e.updatedAt}}}]),e}(),AM=(0,ma.Z)((function e(){(0,ya.Z)(this,e)}));(0,sa.Z)(AM,"blocksStreamCallback",(function(e){return{block:gM.grpcBlockToBlock(e),operation:dM.Insert}})),(0,sa.Z)(AM,"blocksWithTxsStreamCallback",(function(e){return{block:gM.grpcBlockToBlockWithTxs(e),operation:dM.Insert}})),(0,sa.Z)(AM,"transactionsStreamCallback",(function(e){return{block:gM.streamTxResponseToTxs(e),operation:dM.Insert}}));var wM,xM,_M=function(){function e(){(0,ya.Z)(this,e)}return(0,ma.Z)(e,null,[{key:"grpcTokenMetaToTokenMeta",value:function(e){if(e)return{name:e.name,address:e.address,symbol:e.symbol,logo:e.logo,decimals:e.decimals,updatedAt:e.updatedAt,coinGeckoId:""}}},{key:"marketResponseToMarket",value:function(t){var n=t.market;return e.grpcMarketToMarket(n)}},{key:"marketsResponseToMarkets",value:function(t){var n=t.markets;return e.grpcMarketsToMarkets(n)}},{key:"ordersResponseToOrders",value:function(t){var n=t.orders,r=t.paging;return{orders:e.grpcOrdersToOrders(n),pagination:eM(r)}}},{key:"orderHistoryResponseToOrderHistory",value:function(t){var n=t.orders,r=t.paging;return{orderHistory:e.grpcOrderHistoryListToOrderHistoryList(n),pagination:eM(r)}}},{key:"tradesResponseToTrades",value:function(t){var n=t.trades,r=t.paging;return{trades:e.grpcTradesToTrades(n),pagination:eM(r)}}},{key:"subaccountTradesListResponseToTradesList",value:function(t){var n=t.trades;return e.grpcTradesToTrades(n)}},{key:"orderbookV2ResponseToOrderbookV2",value:function(t){var n=t.orderbook;return e.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(n.sequence,10),buys:null==n?void 0:n.buys,sells:null==n?void 0:n.sells})}},{key:"orderbooksV2ResponseToOrderbooksV2",value:function(t){return t.orderbooks.map((function(t){var n=t.orderbook;return{marketId:t.marketId,orderbook:e.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(n.sequence,10),buys:n.buys,sells:n.sells})}}))}},{key:"grpcMarketToMarket",value:function(t){return{marketId:t.marketId,marketStatus:t.marketStatus,ticker:t.ticker,baseDenom:t.baseDenom,quoteDenom:t.quoteDenom,quoteToken:e.grpcTokenMetaToTokenMeta(t.quoteTokenMeta),baseToken:e.grpcTokenMetaToTokenMeta(t.baseTokenMeta),makerFeeRate:t.makerFeeRate,takerFeeRate:t.takerFeeRate,serviceProviderFee:t.serviceProviderFee,minPriceTickSize:new hS(t.minPriceTickSize).toNumber(),minQuantityTickSize:new hS(t.minQuantityTickSize).toNumber()}}},{key:"grpcMarketsToMarkets",value:function(t){return t.map((function(t){return e.grpcMarketToMarket(t)}))}},{key:"grpcPriceLevelToPriceLevel",value:function(e){return{price:e.price,quantity:e.quantity,timestamp:parseInt(e.timestamp,10)}}},{key:"grpcPriceLevelsToPriceLevels",value:function(t){return t.map((function(t){return e.grpcPriceLevelToPriceLevel(t)}))}},{key:"grpcOrderbookToOrderbook",value:function(t){var n=t.buys,r=t.sells;return{buys:e.grpcPriceLevelsToPriceLevels(n),sells:e.grpcPriceLevelsToPriceLevels(r)}}},{key:"grpcOrderbookV2ToOrderbookV2",value:function(t){var n=t.buys,r=t.sells;return{sequence:t.sequence,buys:e.grpcPriceLevelsToPriceLevels(n),sells:e.grpcPriceLevelsToPriceLevels(r)}}},{key:"grpcOrderToOrder",value:function(e){return{orderHash:e.orderHash,orderSide:e.orderSide,marketId:e.marketId,subaccountId:e.subaccountId,price:e.price,state:e.state,quantity:e.quantity,unfilledQuantity:e.unfilledQuantity,triggerPrice:e.triggerPrice,feeRecipient:e.feeRecipient,createdAt:parseInt(e.createdAt,10),updatedAt:parseInt(e.updatedAt,10)}}},{key:"grpcOrdersToOrders",value:function(t){return t.map((function(t){return e.grpcOrderToOrder(t)}))}},{key:"grpcOrderHistoryToOrderHistory",value:function(e){return{orderHash:e.orderHash,marketId:e.marketId,active:e.isActive,subaccountId:e.subaccountId,executionType:e.executionType,orderType:e.orderType,price:e.price,triggerPrice:e.triggerPrice,quantity:e.quantity,filledQuantity:e.filledQuantity,state:e.state,createdAt:parseInt(e.createdAt,10),updatedAt:parseInt(e.updatedAt,10),direction:e.direction}}},{key:"grpcOrderHistoryListToOrderHistoryList",value:function(t){return t.map((function(t){return e.grpcOrderHistoryToOrderHistory(t)}))}},{key:"grpcTradeToTrade",value:function(t){var n=t.price,r=n?e.grpcPriceLevelToPriceLevel(n):{price:"0",quantity:"0",timestamp:0};return(0,ca.Z)({orderHash:t.orderHash,subaccountId:t.subaccountId,marketId:t.marketId,tradeId:t.tradeId,executedAt:parseInt(t.executedAt,10),feeRecipient:t.feeRecipient,tradeExecutionType:t.tradeExecutionType,executionSide:t.executionSide,tradeDirection:t.tradeDirection,fee:t.fee},r)}},{key:"grpcTradesToTrades",value:function(t){return t.map((function(t){return e.grpcTradeToTrade(t)}))}}]),e}(),kM=(0,ma.Z)((function e(){(0,ya.Z)(this,e)}));(0,sa.Z)(kM,"pricesStreamCallback",(function(e){return{price:e.price,operation:dM.Update,timestamp:parseInt(e.timestamp,10)}})),(0,sa.Z)(kM,"pricesByMarketsCallback",(function(e){return(0,ca.Z)({},e)})),function(e){e.CosmosHub="channel-1",e.Evmos="channel-83",e.Osmosis="channel-8",e.Terra="channel-4",e.Axelar="channel-84",e.Persistence="channel-82",e.Chihuahua="channel-76",e.SecretNetwork="channel-88",e.Juno="channel-78",e.Stride="channel-89",e.Crescent="channel-90",e.Sommelier="channel-93"}(xM||(xM={}));var SM,IM,EM,CM=["channel-1","channel-4","channel-5","channel-6","channel-8","channel-13","channel-74","channel-76","channel-78","channel-82","channel-83","channel-84","channel-88","channel-89","channel-90","channel-93","channel-99","channel-104","channel-105"];wM={},(0,sa.Z)(wM,xM.Osmosis,{inj:"ibc/64BA6E31FE887D66C6F8F31C7B1A80C7CA179239677B4088BB55F5EA07DBE273"}),(0,sa.Z)(wM,xM.Crescent,{inj:"ibc/5A76568E079A31FA12165E4559BA9F1E9D4C97F9C2060B538C84DCD503815E30"}),(0,sa.Z)(wM,xM.Persistence,{inj:"ibc/D64E84758BCA42602C27E9ED2DB8F4EFDAE6A1E311CF404B516D45FEDF319D73"}),(0,sa.Z)(wM,xM.Stride,{inj:"ibc/A7454562FF29FE068F42F9DE4805ABEF54F599D1720B345D6518D9B5C64EA6D2"}),(EM=SM||(SM={})).Ibc="ibc",EM.Cw20="cw20",EM.Spl="spl",EM.Erc20="erc20",EM.Native="native",EM.TokenFactory="tokenFactory",EM.InsuranceFund="insuranceFund",EM.Unknown="unknown",function(e){e.Solana="solana",e.Cosmos="cosmos",e.Ethereum="ethereum",e.EthereumWh="ethereum-wormhole"}(IM||(IM={}));var TM,OM,PM,MM,BM,RM={vARI:{name:"Aries",logo:"aries.svg",symbol:"vARI",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:SM.Cw20}},vTAU:{name:"Taurus",logo:"taurus.svg",symbol:"vTAU",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:SM.Cw20}},vGEM:{name:"Gemini",logo:"gemini.svg",symbol:"vGEM",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:SM.Cw20}},vCAN:{name:"Cancer",logo:"cancer.svg",symbol:"vCAN",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:SM.Cw20}},vLEO:{name:"Leo",logo:"leo.svg",symbol:"vLEO",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:SM.Cw20}},vVIR:{name:"Virgo",logo:"virgo.svg",symbol:"vVIR",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:SM.Cw20}},vLIB:{name:"Libra",logo:"libra.svg",symbol:"vLIB",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:SM.Cw20}},vSCOR:{name:"Scorpio",logo:"scorpio.svg",symbol:"vSCOR",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:SM.Cw20}},vSAG:{name:"Sagittarius",logo:"sagittarius.svg",symbol:"vSAG",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:SM.Cw20}},vCAP:{name:"Capricorn",logo:"capricorn.svg",symbol:"vCAP",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:SM.Cw20}},vAQUA:{name:"Aquarius",logo:"aquarius.svg",symbol:"vAQUA",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:SM.Cw20}},vPIS:{name:"Pisces",logo:"pisces.svg",symbol:"vPIS",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:SM.Cw20}}},NM={BTC:{name:"Bitcoin",symbol:"BTC",decimals:8,logo:"bitcoin.svg",coinGeckoId:"bitcoin",erc20:{decimals:8,address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",tokenType:SM.Erc20}},wBTC:{name:"Wrapped Bitcoin",symbol:"wBTC",decimals:8,logo:"wbtc.svg",coinGeckoId:"wrapped-bitcoin",erc20:{decimals:8,address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",tokenType:SM.Erc20},cw20s:[{decimals:18,symbol:"wBTC",source:IM.Cosmos,address:"inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku",tokenType:SM.Cw20}]},ETH:{name:"Ethereum",symbol:"ETH",decimals:18,logo:"ethereum.svg",coinGeckoId:"ethereum",erc20:{decimals:18,isNative:!0,address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",tokenType:SM.Erc20}},wETH:{name:"Wrapped Ethereum",symbol:"wETH",decimals:18,logo:"ethereum.svg",coinGeckoId:"ethereum",erc20:{decimals:18,address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",tokenType:SM.Erc20}},INJ:{name:"Injective",symbol:"INJ",decimals:18,logo:"injective-v3.svg",coinGeckoId:"injective-protocol",erc20:{decimals:18,address:"0xe28b3B32B6c345A34Ff64674606124Dd5Aceca30",tokenType:SM.Erc20}},USDT:{name:"Tether",symbol:"USDT",decimals:6,logo:"usdt.svg",coinGeckoId:"tether",erc20:{decimals:6,address:"0xdAC17F958D2ee523a2206206994597C13D831ec7",tokenType:SM.Erc20}},USDC:{symbol:"USDC",name:"USD Coin",decimals:6,logo:"usdc.svg",coinGeckoId:"usd-coin",erc20:{decimals:6,symbol:"USDC",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",tokenType:SM.Erc20},cw20s:[{decimals:6,symbol:"USDCet",source:IM.EthereumWh,address:"inj1q6zlut7gtkzknkk773jecujwsdkgq882akqksk",tokenType:SM.Cw20},{decimals:6,symbol:"USDCso",source:IM.Solana,address:"inj12pwnhtv7yat2s30xuf4gdk9qm85v4j3e60dgvu",tokenType:SM.Cw20}]},GRT:{name:"Graph Token",symbol:"GRT",decimals:18,logo:"graphToken.svg",coinGeckoId:"the-graph",erc20:{decimals:18,address:"0xc944E90C64B2c07662A292be6244BDf05Cda44a7",tokenType:SM.Erc20}},SNX:{name:"Synthetix Network Token",symbol:"SNX",decimals:18,logo:"synthetix.svg",coinGeckoId:"havven",erc20:{decimals:18,address:"0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F",tokenType:SM.Erc20}},BNB:{name:"Binance Coin",symbol:"BNB",decimals:18,logo:"bnb.svg",coinGeckoId:"binancecoin",erc20:{decimals:18,address:"0xB8c77482e45F1F44dE1745F52C74426C631bDD52",tokenType:SM.Erc20}},AAVE:{name:"Aave",symbol:"AAVE",decimals:18,logo:"AAVE.svg",coinGeckoId:"aave",erc20:{decimals:18,address:"0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9",tokenType:SM.Erc20}},YFI:{name:"yearn.finance",symbol:"YFI",logo:"yfi.svg",decimals:18,coinGeckoId:"yearn-finance",erc20:{decimals:18,address:"0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e",tokenType:SM.Erc20}},COMP:{name:"Compound",symbol:"COMP",decimals:18,logo:"comp.svg",coinGeckoId:"compound-coin",erc20:{decimals:18,address:"0xc00e94Cb662C3520282E6f5717214004A7f26888",tokenType:SM.Erc20}},ZRX:{name:"0x",symbol:"ZRX",decimals:18,logo:"zrx.svg",coinGeckoId:"0x",erc20:{decimals:18,address:"0xE41d2489571d322189246DaFA5ebDe1F4699F498",tokenType:SM.Erc20}},MATIC:{name:"Polygon",logo:"matic.svg",symbol:"MATIC",decimals:18,coinGeckoId:"matic-network",erc20:{decimals:18,address:"0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0",tokenType:SM.Erc20}},UNI:{name:"Uniswap",symbol:"UNI",logo:"uni.svg",decimals:18,coinGeckoId:"uniswap",erc20:{decimals:18,address:"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",tokenType:SM.Erc20}},DAI:{name:"Dai",symbol:"DAI",decimals:18,logo:"dai.svg",coinGeckoId:"dai",erc20:{decimals:18,address:"0x6B175474E89094C44Da98b954EedeAC495271d0F",tokenType:SM.Erc20}},LINK:{name:"Chainlink",symbol:"LINK",decimals:18,logo:"chainlink.svg",coinGeckoId:"chainlink",erc20:{decimals:18,address:"0x514910771AF9Ca656af840dff83E8264EcF986CA",tokenType:SM.Erc20}},SUSHI:{name:"SushiSwap",symbol:"SUSHI",decimals:18,logo:"sushi.svg",coinGeckoId:"sushi",erc20:{decimals:18,address:"0x6B3595068778DD592e39A122f4f5a5cF09C90fE2",tokenType:SM.Erc20}},AXS:{name:"Axie Infinity",symbol:"AXS",decimals:18,logo:"axs.png",coinGeckoId:"axie-infinity",erc20:{decimals:18,address:"0xBB0E17EF65F82Ab018d8EDd776e8DD940327B28b",tokenType:SM.Erc20}},"1INCH":{name:"1inch",symbol:"1INCH",decimals:18,logo:"1inch.png",coinGeckoId:"1inch",erc20:{decimals:18,address:"0x111111111117dC0aa78b770fA6A738034120C302",tokenType:SM.Erc20}},BAT:{name:"Basic Attention Token",symbol:"BAT",decimals:18,logo:"bat.png",coinGeckoId:"basic-attention-token",erc20:{decimals:18,address:"0x0D8775F648430679A709E98d2b0Cb6250d2887EF",tokenType:SM.Erc20}},BUSD:{name:"Binance USD",symbol:"BUSD",decimals:18,logo:"busd.png",coinGeckoId:"binance-usd",erc20:{decimals:18,address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53",tokenType:SM.Erc20}},CEL:{name:"Celsius",symbol:"CEL",decimals:4,logo:"cel.png",coinGeckoId:"celsius-degree-token",erc20:{decimals:4,address:"0xaaAEBE6Fe48E54f431b0C390CfaF0b017d09D42d",tokenType:SM.Erc20}},CELL:{name:"Cellframe",symbol:"CELL",decimals:18,logo:"cell.png",coinGeckoId:"cellframe",erc20:{decimals:18,address:"0x26c8AFBBFE1EBaca03C2bB082E69D0476Bffe099",tokenType:SM.Erc20}},DEFI5:{name:"DEFI Top 5 Tokens Index",symbol:"DEFI5",decimals:18,logo:"defi5.png",coinGeckoId:"defi-top-5-tokens-index",erc20:{decimals:18,address:"0xfa6de2697D59E88Ed7Fc4dFE5A33daC43565ea41",tokenType:SM.Erc20}},ENJ:{name:"Enjin Coin",symbol:"ENJ",decimals:18,logo:"enj.png",coinGeckoId:"enjincoin",erc20:{decimals:18,address:"0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c",tokenType:SM.Erc20}},EVAI:{name:"Evai.io",symbol:"EVAI",decimals:8,logo:"evai.png",coinGeckoId:"evai",erc20:{decimals:8,address:"0x50f09629d0afDF40398a3F317cc676cA9132055c",tokenType:SM.Erc20}},FTM:{name:"Fantom",symbol:"FTM",decimals:18,logo:"ftm.png",coinGeckoId:"fantom",erc20:{decimals:18,address:"0x4E15361FD6b4BB609Fa63C81A2be19d873717870",tokenType:SM.Erc20}},HT:{name:"Huobi Token",symbol:"HT",decimals:18,logo:"ht.png",coinGeckoId:"huobi-token",erc20:{decimals:18,address:"0x6f259637dcD74C767781E37Bc6133cd6A68aa161",tokenType:SM.Erc20}},NEXO:{name:"Nexo",symbol:"NEXO",decimals:18,logo:"nexo.png",coinGeckoId:"nexo",erc20:{decimals:18,address:"0xB62132e35a6c13ee1EE0f84dC5d40bad8d815206",tokenType:SM.Erc20}},NOIA:{name:"Syntropy",symbol:"NOIA",decimals:18,logo:"noia.png",coinGeckoId:"noia-network",erc20:{decimals:18,address:"0xa8c8CfB141A3bB59FEA1E2ea6B79b5ECBCD7b6ca",tokenType:SM.Erc20}},OCEAN:{name:"Ocean Protocol",symbol:"OCEAN",decimals:18,logo:"ocean.png",coinGeckoId:"ocean-protocol",erc20:{decimals:18,address:"0x967da4048cD07aB37855c090aAF366e4ce1b9F48",tokenType:SM.Erc20}},PAXG:{name:"PAX Gold",symbol:"PAXG",decimals:18,logo:"paxg.png",coinGeckoId:"pax-gold",erc20:{decimals:18,address:"0x45804880De22913dAFE09f4980848ECE6EcbAf78",tokenType:SM.Erc20}},POOL:{name:"PoolTogether",symbol:"POOL",decimals:18,logo:"pool.png",coinGeckoId:"pooltogether",erc20:{decimals:18,address:"0x0cEC1A9154Ff802e7934Fc916Ed7Ca50bDE6844e",tokenType:SM.Erc20}},RUNE:{name:"THORChain (ERC20)",symbol:"RUNE",decimals:18,logo:"rune.png",coinGeckoId:"thorchain-erc20",erc20:{decimals:18,address:"0x3155BA85D5F96b2d030a4966AF206230e46849cb",tokenType:SM.Erc20}},SHIB:{name:"SHIBA INU",symbol:"SHIB",decimals:18,logo:"shib.png",coinGeckoId:"shiba-inu",erc20:{decimals:18,address:"0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE",tokenType:SM.Erc20}},STARS:{name:"Mogul Productions",symbol:"STARS",decimals:18,logo:"stars.png",coinGeckoId:"mogul-productions",erc20:{decimals:18,address:"0xc55c2175E90A46602fD42e931f62B3Acc1A013Ca",tokenType:SM.Erc20}},STT:{name:"Scatter.cx",symbol:"STT",decimals:18,logo:"scatter.webp",coinGeckoId:"scatter-cx",erc20:{decimals:18,address:"0xaC9Bb427953aC7FDDC562ADcA86CF42D988047Fd",tokenType:SM.Erc20}},SWAP:{name:"TrustSwap",symbol:"SWAP",decimals:18,logo:"trustswap.png",coinGeckoId:"trustswap",erc20:{decimals:18,address:"0xaC9Bb427953aC7FDDC562ADcA86CF42D988047Fd",tokenType:SM.Erc20}},UMA:{name:"UMA",symbol:"UMA",decimals:18,coinGeckoId:"uma",logo:"uma.png",erc20:{decimals:18,address:"0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828",tokenType:SM.Erc20}},UTK:{name:"Utrust",symbol:"UTK",decimals:18,logo:"utk.png",coinGeckoId:"utrust",erc20:{decimals:18,address:"0xdc9Ac3C20D1ed0B540dF9b1feDC10039Df13F99c",tokenType:SM.Erc20}},ATOM:{name:"Cosmos",symbol:"ATOM",decimals:6,logo:"atom.svg",coinGeckoId:"cosmos",erc20:{decimals:6,address:"0x8D983cb9388EaC77af0474fA441C4815500Cb7BB",tokenType:SM.Erc20},ibc:{decimals:6,isNative:!0,baseDenom:"uatom",path:"transfer/channel-1",channelId:"channel-1",hash:"624BA9DD171915A2B9EA70F69638B2CEA179959850C1A586F6C485498F29EDD4",tokenType:SM.Ibc}},UPHOTON:{name:"Cosmos Testnet",symbol:"UPHOTON",decimals:6,logo:"atom.svg",coinGeckoId:"cosmos",erc20:{decimals:6,address:"0x8D983cb9388EaC77af0474fA441C4815500Cb7BB",tokenType:SM.Erc20},ibc:{decimals:6,isNative:!0,baseDenom:"uphoton",path:"transfer/channel-2",channelId:"channel-2",hash:"48BC9C6ACBDFC1EBA034F1859245D53EA4BF74147189D66F27C23BF966335DFB",tokenType:SM.Ibc}},LUNA:{name:"Terra",symbol:"LUNA",decimals:6,logo:"luna.png",coinGeckoId:"terra-luna",erc20:{decimals:6,address:"0xd2877702675e6cEb975b4A1dFf9fb7BAF4C91ea9",tokenType:SM.Erc20},ibc:{decimals:6,isNative:!0,baseDenom:"uluna",path:"transfer/channel-4",channelId:"channel-4",hash:"B8AF5D92165F35AB31F3FC7C7B444B9D240760FA5D406C49D24862BD0284E395",tokenType:SM.Ibc}},UST:{name:"TerraUSD",baseDenom:"UUSD",symbol:"UST",logo:"ust.png",decimals:18,coinGeckoId:"terrausd",erc20:{decimals:18,address:"0xa47c8bf37f92aBed4A126BDA807A7b7498661acD",tokenType:SM.Erc20},ibc:{decimals:18,isNative:!0,baseDenom:"uusd",path:"transfer/channel-4",channelId:"channel-4",hash:"B448C0CA358B958301D328CCDC5D5AD642FC30A6D3AE106FF721DB315F3DDE5C",tokenType:SM.Ibc}},GF:{name:"GuildFi",symbol:"GF",decimals:18,logo:"gf.png",coinGeckoId:"guildfi",erc20:{decimals:18,address:"0xaaef88cea01475125522e117bfe45cf32044e238",tokenType:SM.Erc20}},XBX:{name:"BurnX",symbol:"XBX",decimals:18,logo:"xbx.png",coinGeckoId:"",erc20:{decimals:18,address:"0x080B12E80C9b45e97C23b6ad10a16B3e2a123949",tokenType:SM.Erc20}},OSMO:{name:"Osmosis",symbol:"OSMO",decimals:6,coinGeckoId:"osmosis",logo:"osmo.png",ibc:{decimals:6,isNative:!0,baseDenom:"uosmo",path:"transfer/channel-8",channelId:"channel-8",hash:"92E0120F15D037353CFB73C14651FC8930ADC05B93100FD7754D3A689E53B333",tokenType:SM.Ibc}},TAB:{name:"Injective",logo:"injective-v3.svg",symbol:"TAB",decimals:18,coinGeckoId:"injective-protocol",erc20:{decimals:18,address:"0x36B3D7ACe7201E28040eFf30e815290D7b37ffaD",tokenType:SM.Erc20}},HUAHUA:{name:"Chihuahua",symbol:"HUAHUA",decimals:6,logo:"chihuahua.jpeg",coinGeckoId:"chihuahua-token",ibc:{decimals:6,isNative:!0,baseDenom:"uhuahua",path:"transfer/channel-76",channelId:"channel-76",hash:"E7807A46C0B7B44B350DA58F51F278881B863EC4DCA94635DAB39E52C30766CB",tokenType:SM.Ibc}},JUNO:{name:"Juno",symbol:"JUNO",decimals:6,logo:"juno.jpeg",coinGeckoId:"juno-network",ibc:{decimals:6,isNative:!0,baseDenom:"ujuno",path:"transfer/channel-78",channelId:"channel-78",hash:"D50E26996253EBAA8C684B9CD653FE2F7665D7BDDCA3D48D5E1378CF6334F211",tokenType:SM.Ibc}},AXL:{name:"Axelar",logo:"axelar.jpeg",symbol:"AXL",decimals:6,coinGeckoId:"axelar",erc20:{decimals:6,address:"0x3eacbDC6C382ea22b78aCc158581A55aaF4ef3Cc",tokenType:SM.Erc20},ibc:{decimals:6,isNative:!0,baseDenom:"uaxl",path:"transfer/channel-84",channelId:"channel-84",hash:"B68C1D2682A8B69E20BB921E34C6A3A2B6D1E13E3E8C0092E373826F546DEE65",tokenType:SM.Ibc}},BAYC:{name:"Bored Ape Yacht Club",symbol:"BAYC",logo:"bayc.svg",decimals:18,coinGeckoId:""},APE:{name:"Ape Coin",symbol:"APE",decimals:18,logo:"ape.png",coinGeckoId:"apecoin",erc20:{decimals:18,address:"0x4d224452801ACEd8B2F0aebE155379bb5D594381",tokenType:SM.Erc20}},SCRT:{name:"Secret Network",symbol:"SCRT",decimals:6,logo:"scrt.png",coinGeckoId:"secret",ibc:{decimals:6,isNative:!0,baseDenom:"uscrt",path:"transfer/channel-88",channelId:"channel-88",hash:"0954E1C28EB7AF5B72D24F3BC2B47BBB2FDF91BDDFD57B74B99E133AED40972A",tokenType:SM.Ibc}},XPRT:{name:"Persistence",symbol:"XPRT",decimals:6,logo:"xprt.svg",coinGeckoId:"persistence",ibc:{decimals:6,isNative:!0,baseDenom:"uxprt",path:"transfer/channel-82",channelId:"channel-82",hash:"B786E7CBBF026F6F15A8DA248E0F18C62A0F7A70CB2DABD9239398C8B5150ABB",tokenType:SM.Ibc}},EVMOS:{name:"Evmos",symbol:"EVMOS",decimals:18,logo:"evmos.svg",coinGeckoId:"evmos",ibc:{decimals:18,isNative:!0,baseDenom:"aevmos",path:"transfer/channel-83",channelId:"channel-83",hash:"16618B7F7AC551F48C057A13F4CA5503693FBFF507719A85BC6876B8BD75F821",tokenType:SM.Ibc}},STX:{name:"Stacks",symbol:"STX",decimals:6,logo:"stacks.png",coinGeckoId:"blockstack"},DOT:{name:"Polkadot",symbol:"DOT",decimals:10,logo:"dot.jpeg",coinGeckoId:"polkadot",erc20:{decimals:10,address:"0xFfFFfFff1FcaCBd218EDc0EbA20Fc2308C778080",tokenType:SM.Erc20},ibc:{decimals:10,isNative:!1,baseDenom:"dot-planck",path:"transfer/channel-84",channelId:"channel-84",hash:"624BA9DD171915A2B9EA70F69638B2CEA179959850C1A586F6C485498F29EDD4",tokenType:SM.Ibc},cw20:{decimals:10,address:"inj1spzwwtr2luljr300ng2gu52zg7wn7j44m92mdf",tokenType:SM.Cw20}},"DOT-PLANCK":{name:"Polkadot",symbol:"DOT",decimals:10,logo:"dot.jpeg",coinGeckoId:"polkadot",erc20:{decimals:10,address:"0xFfFFfFff1FcaCBd218EDc0EbA20Fc2308C778080",tokenType:SM.Erc20}},STRD:{name:"Stride",symbol:"STRD",decimals:6,logo:"stride.png",coinGeckoId:"stride",ibc:{decimals:6,isNative:!0,baseDenom:"ustrd",path:"transfer/channel-89",channelId:"channel-89",hash:"3FDD002A3A4019B05A33D324B2F29748E77AF501BEA5C96D1F28B2D6755F9F25",tokenType:SM.Ibc}},CRE:{name:"Crescent",symbol:"CRE",decimals:6,logo:"crescent.jpeg",coinGeckoId:"crescent-network",ibc:{decimals:6,isNative:!0,baseDenom:"ucre",path:"transfer/channel-90",channelId:"channel-90",hash:"3A6DD3358D9F7ADD18CDE79BA10B400511A5DE4AE2C037D7C9639B52ADAF35C6",tokenType:SM.Ibc}},PROJ:{name:"PROJ",logo:"projx.png",symbol:"Proj",decimals:6,coinGeckoId:""},ASTRO:{name:"ASTRO",symbol:"ASTRO",decimals:6,logo:"astroport.png",coinGeckoId:"astroport-fi",ibc:{decimals:6,isNative:!0,baseDenom:"cw20:terra1nsuqsk6kh58ulczatwev87ttq2z6r3pusulg9r24mfj2fvtzd4uq3exn26",path:"transfer/channel-104",channelId:"channel-104",hash:"EBD5A24C554198EBAF44979C5B4D2C2D312E6EBAB71962C92F735499C7575839",tokenType:SM.Ibc}},SOL:{name:"Solana",symbol:"SOL",decimals:8,logo:"solana.svg",coinGeckoId:"solana",spl:{decimals:9,address:"",isNative:!0,tokenType:SM.Spl},cw20:{decimals:8,address:"inj1sthrn5ep8ls5vzz8f9gp89khhmedahhdkqa8z3",tokenType:SM.Cw20}},SOMM:{name:"Sommelier",symbol:"SOMM",decimals:6,logo:"sommelier.png",coinGeckoId:"sommelier",ibc:{decimals:6,isNative:!0,baseDenom:"usomm",path:"transfer/channel-93",channelId:"channel-93",hash:"34346A60A95EB030D62D6F5BDD4B745BE18E8A693372A8A347D5D53DBBB1328B",tokenType:SM.Ibc}},ETHBTCTREND:{name:"ETHBTC Trend",symbol:"ETHBTCTrend",decimals:18,logo:"ethbtctrend.svg",coinGeckoId:"",erc20:{decimals:18,address:"0x6b7f87279982d919Bbf85182DDeAB179B366D8f2",tokenType:SM.Erc20}},STEADYETH:{name:"SteadyETH",symbol:"SteadyETH",decimals:18,logo:"steadyeth.svg",coinGeckoId:"",erc20:{decimals:18,address:"0x3F07A84eCdf494310D397d24c1C78B041D2fa622",tokenType:SM.Erc20}},STEADYBTC:{name:"SteadyBTC",symbol:"SteadyBTC",decimals:18,logo:"steadybtc.svg",coinGeckoId:"",erc20:{decimals:18,address:"0x4986fD36b6b16f49b43282Ee2e24C5cF90ed166d",tokenType:SM.Erc20}},XPLA:{name:"XPLA",symbol:"XPLA",decimals:8,logo:"xpla.svg",coinGeckoId:"xpla",cw20:{decimals:8,address:"inj1j08452mqwadp8xu25kn9rleyl2gufgfjqjvewe",tokenType:SM.Cw20}},AVAX:{name:"AVAX",symbol:"WAVAX",decimals:8,logo:"avax.webp",coinGeckoId:"avalanche-2",cw20:{decimals:8,address:"inj18a2u6az6dzw528rptepfg6n49ak6hdzkny4um6",tokenType:SM.Cw20}},BONK:{name:"BONK",symbol:"BONK",decimals:5,logo:"bonk.jpeg",coinGeckoId:"bonk"},CHZ:{name:"Chiliz",symbol:"CHZ",decimals:18,logo:"chz.png",coinGeckoId:"chiliz",erc20:{decimals:18,address:"0x3506424F91fD33084466F402d5D97f05F8e3b4AF",tokenType:SM.Erc20},cw20:{decimals:8,address:"inj1q6kpxy6ar5lkxqudjvryarrrttmakwsvzkvcyh",tokenType:SM.Cw20}},CANTO:{name:"Canto",symbol:"CANTO",decimals:18,logo:"canto.webp",coinGeckoId:"canto",ibc:{decimals:18,isNative:!0,baseDenom:"acanto",path:"transfer/channel-99",channelId:"channel-99",hash:"C733F37CB50114AFE8053C320DF45D0AAD8B94F556EB306AC2ABA0B9963CDF0D",tokenType:SM.Ibc}},QAT:{name:"Test QAT",symbol:"QAT",decimals:18,logo:"injective-v3.svg",coinGeckoId:"injective-protocol",erc20:{decimals:18,address:"0x1902e18fEB1234D00d880f1fACA5C8d74e8501E9",tokenType:SM.Erc20},cw20:{decimals:8,address:"inj1m4g54lg2mhhm7a4h3ms5xlyecafhe4macgsuen",tokenType:SM.Cw20}},PUGGO:{name:"Puggo",symbol:"PUG",decimals:18,logo:"puggo.jpg",coinGeckoId:"",erc20:{decimals:18,address:"0xf9a06dE3F6639E6ee4F079095D5093644Ad85E8b",tokenType:SM.Erc20}},LDO:{name:"Lido DAO Token",symbol:"LDO",decimals:18,logo:"lido-dao.webp",coinGeckoId:"lido-dao",erc20:{decimals:18,address:"0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32",tokenType:SM.Erc20},cw20:{decimals:8,address:"inj1me6t602jlndzxgv2d7ekcnkjuqdp7vfh4txpyy",tokenType:SM.Cw20}},USDCfr:{name:"USDC Frontrunner",symbol:"USDCfr",decimals:6,logo:"usdc.svg",coinGeckoId:"usd-coin",erc20:{decimals:6,address:"0xf9152067989BDc8783fF586624124C05A529A5D1",tokenType:SM.Erc20}},ARB:{name:"Arbitrum",symbol:"ARB",decimals:18,logo:"arb.png",coinGeckoId:"arbitrum",erc20:{decimals:18,address:"0x912CE59144191C1204E64559FE8253a0e49E6548",tokenType:SM.Erc20},cw20:{decimals:8,address:"inj1d5vz0uzwlpfvgwrwulxg6syy82axa58y4fuszd",tokenType:SM.Cw20}},EUR:{name:"Euro",symbol:"EUR",decimals:6,logo:"eur.svg",coinGeckoId:""},GBP:{name:"British Pound",symbol:"GBP",decimals:6,logo:"gpb.svg",coinGeckoId:""},JPY:{name:"Japanese Yen",symbol:"JPY",decimals:6,logo:"jpy.svg",coinGeckoId:""},BRZ:{name:"Brazilian Digital Token",symbol:"BRZ",decimals:4,logo:"brz.png",coinGeckoId:"brz",erc20:{decimals:4,address:"0x420412E765BFa6d85aaaC94b4f7b708C89be2e2B",tokenType:SM.Erc20},cw20:{decimals:4,address:"inj14jesa4q248mfxztfc9zgpswkpa4wx249mya9kk",tokenType:SM.Cw20}},ASTR:{name:"Astar",symbol:"ASTR",decimals:18,logo:"astar.svg",coinGeckoId:"astar",cw20:{decimals:18,address:"inj1mhmln627samtkuwe459ylq763r4n7n69gxxc9x",tokenType:SM.Cw20}},XAU:{name:"Gold",symbol:"XAU",decimals:6,logo:"gold.svg",coinGeckoId:""},ALPHA:{name:"Alpha Coin",symbol:"ALPHA",decimals:18,logo:"alpha.png",coinGeckoId:"alphacoin",erc20:{decimals:18,address:"0x138C2F1123cF3f82E4596d097c118eAc6684940B",tokenType:SM.Erc20},cw20:{decimals:8,address:"inj1zwnsemwrpve3wrrg0njj89w6mt5rmj9ydkc46u",tokenType:SM.Cw20}},WMATIC:{name:"Wrapped Matic",symbol:"WMATIC",decimals:18,logo:"matic.webp",coinGeckoId:"wmatic",erc20:{decimals:18,address:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",tokenType:SM.Erc20},cw20:{decimals:8,address:"inj1dxv423h8ygzgxmxnvrf33ws3k94aedfdevxd8h",tokenType:SM.Cw20}}},DM=(0,ca.Z)((0,ca.Z)({},NM),RM),jM=Object.keys(DM).filter((function(e){return DM[e].ibc})).map((function(e){return DM[e].ibc.baseDenom})),UM=DM,LM=function(e){var t,n=e.denom;return(null===(t=e.cw20s)||void 0===t?void 0:t.find((function(e){return n.includes(e.address)})))||e.cw20||void 0},ZM=function(e){return e===mS?SM.Native:e.startsWith("inj")?SM.Cw20:e.startsWith("ibc")?SM.Ibc:e.startsWith("factory/")?SM.TokenFactory:e.startsWith("peggy")?SM.Erc20:e.startsWith("share")?SM.InsuranceFund:SM.Cw20},FM=function(e){if(e.denom.startsWith("factory/")){var t=LM(e);return(null==t?void 0:t.symbol)||e.symbol}var n,r;return e.denom.startsWith("peggy")?(null===(n=e.erc20)||void 0===n?void 0:n.symbol)||e.symbol:e.denom.startsWith("ibc")&&(null===(r=e.ibc)||void 0===r?void 0:r.symbol)||e.symbol},HM=function(e){if(e.denom===mS)return e.decimals;var t,n,r;if(e.denom.startsWith("inj"))return(null===(t=e.cw20)||void 0===t?void 0:t.decimals)||e.decimals;if(e.denom.startsWith("factory/")){var a=LM(e);return(null==a?void 0:a.decimals)||e.decimals}return e.denom.startsWith("ibc")?(null===(n=e.ibc)||void 0===n?void 0:n.decimals)||e.decimals:e.denom.startsWith("peggy")?(null===(r=e.erc20)||void 0===r?void 0:r.decimals)||e.decimals:(e.denom.startsWith("share"),e.decimals)},zM=function(e,t){var n,r=jM.includes(t||"")||(null===(n=e.ibc)||void 0===n?void 0:n.baseDenom)===t?SM.Ibc:ZM(t||""),a=(0,ca.Z)((0,ca.Z)({},e),{},{tokenType:r,denom:t||""}),i=(0,ca.Z)((0,ca.Z)({},a),{},{tokenType:r,decimals:HM(a),symbol:FM(a)});return[SM.TokenFactory,SM.Cw20].includes(r)?i.cw20?(0,ca.Z)((0,ca.Z)({},i),{},{cw20s:[]}):i.cw20s?(0,ca.Z)((0,ca.Z)((0,ca.Z)({},i),function(e,t){var n=e.cw20,r=e.cw20s,a=e.denom||"";if(n||r){if(n)return(0,ca.Z)((0,ca.Z)({},e),{},{cw20:n,denom:n.address,tokenType:ZM(n.address)});if(r)if(a){var i=a.startsWith("inj")?[a]:a.split("/").reverse(),o=(0,fa.Z)(i,1)[0],s=r.find((function(e){return e.address===o}));return s?(0,ca.Z)((0,ca.Z)({},e),{},{cw20:s,denom:s.address,symbol:s.symbol,tokenType:ZM(s.address)}):void 0}}}((0,ca.Z)((0,ca.Z)({},i),{},{denom:t,tokenType:SM.Cw20}))),{},{tokenType:r,denom:i.denom}):i:i},qM=function(){function e(t,n){(0,ya.Z)(this,e),(0,sa.Z)(this,"denom",void 0),(0,sa.Z)(this,"meta",void 0),this.denom=t,this.meta=n}return(0,ma.Z)(e,[{key:"toToken",value:function(){var e=this.meta,t=this.denom;return(0,ca.Z)((0,ca.Z)({},e),{},{denom:t,tokenType:ZM(t)})}},{key:"symbol",get:function(){var e=this.meta,t=this.denom;if(t.startsWith("inj")||t.startsWith("factory/")){var n=t.startsWith("inj")?[t]:t.split("/").reverse(),r=(0,fa.Z)(n,1)[0];if(!e.cw20)return e.symbol;if(!Array.isArray(e.cw20))return e.symbol;var a=e.cw20.find((function(e){return e.address===r}));return a?a.symbol:e.symbol}return e.symbol}},{key:"logo",get:function(){return this.meta.logo}},{key:"coinGeckoId",get:function(){return this.meta.coinGeckoId}},{key:"name",get:function(){return this.meta.symbol}},{key:"splDecimals",get:function(){var e=this.meta;return e.spl?e.spl.decimals:e.decimals}},{key:"cw20Decimals",get:function(){var e=this.denom,t=this.meta;if(!e.startsWith("inj")||e.startsWith("factory/"))return t.decimals;var n=e.startsWith("inj")?[e]:e.split("/").reverse(),r=(0,fa.Z)(n,1)[0];if(!t.cw20)return t.decimals;if(!Array.isArray(t.cw20))return t.cw20.decimals;var a=t.cw20.find((function(e){return e.address===r}));return a?a.decimals:t.decimals}},{key:"erc20Decimals",get:function(){var e=this.meta;return e.erc20?e.erc20.decimals:e.decimals}},{key:"decimals",get:function(){var e=this.denom,t=this.meta;if(e.startsWith("inj")||e.startsWith("factory/")){var n=e.startsWith("inj")?[e]:e.split("/").reverse(),r=(0,fa.Z)(n,1)[0];if(!t.cw20)return t.decimals;if(!Array.isArray(t.cw20))return t.cw20.decimals;var a=t.cw20.find((function(e){return e.address===r}));return a?a.decimals:t.decimals}return e.startsWith("peggy")?t.erc20?t.erc20.decimals:t.decimals:e.startsWith("ibc")&&t.ibc?t.ibc.decimals:t.decimals}},{key:"address",get:function(){var e=this.denom,t=this.meta;if(e.startsWith("inj")||e.startsWith("factory/")){var n=e.startsWith("inj")?[e]:e.split("/").reverse();return(0,fa.Z)(n,1)[0]}return e.startsWith("peggy")?t.erc20?t.erc20.address:"":e.startsWith("ibc")&&t.erc20?t.erc20.address:""}},{key:"tokenType",get:function(){var e=this.denom;return ZM(e)}},{key:"isCanonical",get:function(){return function(e){if(!e.denom.startsWith("ibc/")||!e.ibc)return!1;var t=e.ibc.path.replace("transfer/","").split("/");if(t.length>1)return!1;var n=(0,fa.Z)(t,1)[0];return CM.includes(n)}(this.toToken())}}],[{key:"fromMeta",value:function(t,n){if(!t.denom&&!n)throw new Jk(new Error("Please provide a ".concat(n)));return new e(t.denom||n,t)}},{key:"fromToken",value:function(t){return new e(t.denom,t)}}]),e}(),QM=function(){function e(t){(0,ya.Z)(this,e),(0,sa.Z)(this,"tokens",void 0),(0,sa.Z)(this,"tokensByErc20Address",void 0),(0,sa.Z)(this,"tokensByCw20Address",void 0),(0,sa.Z)(this,"tokensByHash",void 0),(0,sa.Z)(this,"tokensByName",void 0),this.tokens=function(e){return Object.keys(e).reduce((function(t,n){var r,a,i,o=e[n];if(o.ibc&&o.ibc.baseDenom)return(0,ca.Z)((0,ca.Z)({},t),{},(r={},(0,sa.Z)(r,o.ibc.baseDenom.toUpperCase(),o),(0,sa.Z)(r,o.symbol.toUpperCase(),o),r));if(o.cw20&&o.cw20.address)return(0,ca.Z)((0,ca.Z)({},t),{},(a={},(0,sa.Z)(a,o.cw20.address.toUpperCase(),o),(0,sa.Z)(a,o.symbol.toUpperCase(),o),a));if(o.spl&&o.spl.address)return(0,ca.Z)((0,ca.Z)({},t),{},(i={},(0,sa.Z)(i,o.spl.address.toUpperCase(),o),(0,sa.Z)(i,o.symbol.toUpperCase(),o),i));if(o.cw20s){var s=o.cw20s.reduce((function(e,t){return(0,ca.Z)((0,ca.Z)({},e),{},(0,sa.Z)({},t.symbol.toUpperCase(),o))}),{});return(0,ca.Z)((0,ca.Z)((0,ca.Z)({},t),s),{},(0,sa.Z)({},o.symbol.toUpperCase(),o))}return(0,ca.Z)((0,ca.Z)({},t),{},(0,sa.Z)({},o.symbol.toUpperCase(),o))}),{})}(t),this.tokensByErc20Address=function(e){return Object.keys(e).filter((function(t){return!!e[t].erc20})).reduce((function(t,n){return e[n].erc20?(0,ca.Z)((0,ca.Z)({},t),{},(0,sa.Z)({},e[n].erc20.address,e[n])):t}),{})}(this.tokens),this.tokensByCw20Address=function(e){return Object.keys(e).filter((function(t){return e[t].cw20||e[t].cw20s})).reduce((function(t,n){if(!e[n].cw20&&!e[n].cw20s)return t;var r=e[n];if(r.cw20)return(0,ca.Z)((0,ca.Z)({},t),{},(0,sa.Z)({},r.cw20.address,e[n]));if(r.cw20s){var a=r.cw20s.reduce((function(t,r){return(0,ca.Z)((0,ca.Z)({},t),{},(0,sa.Z)({},r.address,e[n]))}),{});return(0,ca.Z)((0,ca.Z)({},t),a)}return t}),{})}(this.tokens),this.tokensByHash=function(e){return Object.keys(e).reduce((function(t,n){return e[n].ibc?(0,ca.Z)((0,ca.Z)({},t),{},(0,sa.Z)({},e[n].ibc.hash.toUpperCase(),e[n])):t}),{})}(this.tokens),this.tokensByName=function(e){return Object.keys(e).reduce((function(t,n){return(0,ca.Z)((0,ca.Z)({},t),{},(0,sa.Z)({},e[n].name.toLowerCase(),e[n]))}),{})}(this.tokens)}return(0,ma.Z)(e,[{key:"getMetaBySymbol",value:function(e){var t=this.tokens,n=e.toUpperCase();if(t[n]||t[e])return t[n]||t[e]}},{key:"getMetaByAddress",value:function(e){return e.startsWith("0x")?this.getMetaByErc20Address(e):this.getMetaByCw20Address(e)}},{key:"getMetaByCw20Address",value:function(e){var t=this.tokensByCw20Address,n=e.toLowerCase();if(t[n]||t[e]){var r=t[n]||t[e];return r?(0,ca.Z)((0,ca.Z)({},r),{},{tokenType:SM.Cw20}):void 0}}},{key:"getMetaByErc20Address",value:function(e){var t=this.tokensByErc20Address,n=e.toLowerCase();if(!t[n]&&!t[e]){var r=Object.keys(t).find((function(t){return t.toLowerCase()===e||t.toLowerCase()===n}));return r?(0,ca.Z)((0,ca.Z)({},t[r]),{},{tokenType:SM.Erc20}):void 0}var a=t[n]||t[e];return a?(0,ca.Z)((0,ca.Z)({},a),{},{tokenType:SM.Erc20}):void 0}},{key:"getMetaByHash",value:function(e){var t=this.tokensByHash,n=e.toUpperCase().replace("IBC/","");if(t[n]||t[e]){var r=t[n]||t[e];return r?(0,ca.Z)((0,ca.Z)({},r),{},{tokenType:SM.Ibc}):void 0}}},{key:"getMetaByName",value:function(e){var t=this.tokensByName,n=e.toLowerCase();if(t[n]||t[e])return t[n]||t[e]}},{key:"getCoinGeckoIdFromSymbol",value:function(e){var t=this.tokens,n=e.toUpperCase();return t[n]&&t[n].coinGeckoId||""}}]),e}(),KM={INJ:"0xBe8d71D26525440A03311cc7fa372262c5354A3c"},VM={INJ:"0xBe8d71D26525440A03311cc7fa372262c5354A3c"},JM={INJ:"0xBe8d71D26525440A03311cc7fa372262c5354A3c"},GM=function(e,t){var n=UM[e];return UM[e].erc20&&t?(0,ca.Z)((0,ca.Z)({},n),{},{erc20:(0,ca.Z)((0,ca.Z)({},UM[e].erc20),t?{address:t}:{})}):n},WM=function(){return Object.keys(UM).reduce((function(e,t){var n=t,r=KM[n];return(0,ca.Z)((0,ca.Z)({},e),{},(0,sa.Z)({},n.toUpperCase(),GM(t,r)))}),{})},YM=function(){return Object.keys(UM).reduce((function(e,t){var n=t,r=VM[n];return(0,ca.Z)((0,ca.Z)({},e),{},(0,sa.Z)({},n.toUpperCase(),GM(t,r)))}),{})},XM=function(){return Object.keys(UM).reduce((function(e,t){var n=t,r=JM[n];return(0,ca.Z)((0,ca.Z)({},e),{},(0,sa.Z)({},n.toUpperCase(),GM(t,r)))}),{})},$M={INJ:"0xAD1794307245443B3Cb55d88e79EEE4d8a548C03",USDT:"0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5",APE:"0x44C21afAaF20c270EBbF5914Cfc3b5022173FEB7",USDC:"0x07865c6E87B9F70255377e024ace6630C1Eaa37F",wETH:"0xdB309Bb079EB419C18fe7D568c61cD2FdB65D9aF"},eB={SOL:"inj12ngevx045zpvacus9s6anr258gkwpmthnz80e9",USDC:{USDCet:"inj12sqy9uzzl3h3vqxam7sz9f0yvmhampcgesh3qw"}},tB={ASTRO:{hash:"E8AC6B792CDE60AB208CA060CA010A3881F682A7307F624347AB71B6A0B0BF89",path:"transfer/channel-13",channelId:"channel-13",baseDenom:"ASTRO"}},nB=function(){return Object.keys(UM).reduce((function(e,t){var n=(0,ca.Z)({},UM[t]);if(!(n.erc20||n.cw20||n.cw20s||n.ibc))return(0,ca.Z)((0,ca.Z)({},e),{},(0,sa.Z)({},t.toUpperCase(),n));var r=$M[t],a=eB[t],i=tB[t];if(!r&&!a&&!i)return(0,ca.Z)((0,ca.Z)({},e),{},(0,sa.Z)({},t.toUpperCase(),n));var o=(0,ca.Z)({},n);if(i&&o.ibc&&(o.ibc=(0,ca.Z)((0,ca.Z)({},o.ibc),{},{hash:i.hash,path:i.path,channelId:i.channelId})),r&&o.erc20&&(o.erc20.address=r),a&&(o.cw20&&"string"==typeof a&&(o.cw20.address=a),o.cw20s&&"string"!=typeof a)){var s=o.cw20s.map((function(e){var t=e.symbol;return a[t]?(0,ca.Z)((0,ca.Z)({},e),{},{address:a[t]}):e}));o.cw20s=s}return(0,ca.Z)((0,ca.Z)({},e),{},(0,sa.Z)({},t.toUpperCase(),o))}),{})},rB=function(){function e(t){(0,ya.Z)(this,e),(0,sa.Z)(this,"tokenMetaUtils",void 0),this.tokenMetaUtils=t}return(0,ma.Z)(e,[{key:"toToken",value:function(e){var t=e.startsWith("ibc/")||e.startsWith("peggy")||e.startsWith("factory/");if(e===mS)return zM(this.tokenMetaUtils.getMetaBySymbol(e),e);try{if(!t){var n=this.tokenMetaUtils.getMetaBySymbol(e);if(n)return zM(n,e);var r=this.tokenMetaUtils.getMetaByAddress(e);if(r)return zM(r,e);var a=this.tokenMetaUtils.getMetaByName(e);return a?zM(a,e):void 0}if(e.startsWith("ibc/")){var i=this.getIbcDenomTokenMeta(e);return i?zM(i,e):void 0}if(e.startsWith("factory/")){var o=this.getFactoryDenomTokenMeta(e);return o?zM(o,e):void 0}if(e.startsWith("peggy")){var s=this.getPeggyDenomTokenMeta(e);return s?zM(s,e):void 0}var c=this.getCw20DenomTokenMeta(e);return c?zM(c,e):void 0}catch(e){return}}},{key:"toTokenInfo",value:function(e){var t=this.toToken(e);return t?qM.fromToken(t):void 0}},{key:"getPeggyDenomTokenMeta",value:function(e){var t=e.startsWith("peggy")?e.replace("peggy",""):e;if(!t.startsWith("0x"))throw new Jk(new Error("The address ".concat(t," is not a valid ERC20 address")));if(42!==t.length)throw new Jk(new Error("The address ".concat(t," is not a valid ERC20 address")));return this.tokenMetaUtils.getMetaByAddress(t)}},{key:"getCw20DenomTokenMeta",value:function(e){if(!e.startsWith("inj"))throw new Jk(new Error("The address ".concat(e," is not a valid CW20 address")));return this.tokenMetaUtils.getMetaByAddress(e)}},{key:"getIbcDenomTokenMeta",value:function(e){return this.tokenMetaUtils.getMetaByHash(e)}},{key:"getFactoryDenomTokenMeta",value:function(e){var t=e.split("/").reverse(),n=(0,fa.Z)(t,1)[0];if(!n||!n.startsWith("inj"))throw new Jk(new Error("The address ".concat(n," is not a valid CW20 address")));var r=this.tokenMetaUtils.getMetaByAddress(n);return r?(0,ca.Z)((0,ca.Z)({},r),{},{tokenType:SM.TokenFactory}):void 0}}],[{key:"make",value:function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:LP.Mainnet){case LP.Staging:case LP.Mainnet:case LP.MainnetK8s:case LP.MainnetLB:case LP.Local:return new e(new QM(UM));case LP.Devnet:return new e(new QM(WM()));case LP.Devnet1:return new e(new QM(YM()));case LP.Devnet2:return new e(new QM(XM()));case LP.Testnet:case LP.TestnetOld:case LP.TestnetK8s:return new e(new QM(nB()));default:return new e(new QM(UM))}}}]),e}(),aB=function(){function e(){(0,ya.Z)(this,e)}return(0,ma.Z)(e,null,[{key:"make",value:function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:LP.Mainnet){case LP.Staging:case LP.Mainnet:case LP.MainnetK8s:case LP.MainnetLB:case LP.Local:return new QM(UM);case LP.Devnet:return new QM(WM());case LP.Devnet1:return new QM(YM());case LP.Devnet2:return new QM(XM());case LP.Testnet:case LP.TestnetOld:case LP.TestnetK8s:return new QM(nB());default:return new QM(UM)}}}]),e}(),iB=(aB.make(),rB.make(),new yS(0),(0,ma.Z)((function e(){(0,ya.Z)(this,e)})));(0,sa.Z)(iB,"tradesStreamCallback",(function(e){var t=e.trade;return{trade:t?_M.grpcTradeToTrade(t):void 0,operation:e.operationType,timestamp:e.timestamp}})),(0,sa.Z)(iB,"ordersStreamCallback",(function(e){var t=e.order;return{order:t?_M.grpcOrderToOrder(t):void 0,operation:e.operationType,timestamp:e.timestamp}})),(0,sa.Z)(iB,"orderHistoryStreamCallback",(function(e){var t=e.order;return{order:t?_M.grpcOrderHistoryToOrderHistory(t):void 0,operation:e.operationType,timestamp:e.timestamp}})),(0,sa.Z)(iB,"orderbookV2StreamCallback",(function(e){var t=e.orderbook;return{orderbook:t?_M.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(t.sequence,10),buys:t.buys,sells:t.sells}):void 0,operation:e.operationType,marketId:e.marketId,timestamp:e.timestamp}})),(0,sa.Z)(iB,"orderbookUpdateStreamCallback",(function(e){var t=e.orderbookLevelUpdates;return{orderbook:t?_M.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(t.sequence,10),buys:t.buys,sells:t.sells}):void 0,operation:e.operationType,marketId:e.marketId,timestamp:e.timestamp}})),function(e){e.Internal="internal",e.External="external",e.Withdraw="withdraw",e.Deposit="deposit"}(TM||(TM={})),function(e){e[e.AccessTypeUnspecified=0]="AccessTypeUnspecified",e[e.AccessTypeNobody=1]="AccessTypeNobody",e[e.AccessTypeOnlyAddress=2]="AccessTypeOnlyAddress",e[e.AccessTypeEverybody=3]="AccessTypeEverybody"}(OM||(OM={})),function(e){e.AccessTypeUnspecified="Unspecified",e.AccessTypeNobody="Nobody",e.AccessTypeOnlyAddress="Only Address",e.AccessTypeEverybody="Everybody"}(PM||(PM={})),function(e){e.Proposed="proposed",e.Signed="signed",e.Missed="missed"}(MM||(MM={})),function(e){e.Pending="pending",e.Disbursed="disbursed"}(BM||(BM={})),(0,ca.Z)({},ok);var oB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),oB.Error;var sB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),sB.Error;var cB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),cB.Error;var uB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),uB.Error;var fB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),fB.Error;var dB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),dB.Error;var lB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),lB.Error;var pB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),pB.Error;var bB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),bB.Error;var hB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),hB.Error;var yB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),yB.Error,lS()||OS.grpc.setDefaultTransport(aM());var mB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Pe.util.Long!==Te&&(Pe.util.Long=Te,Pe.configure()),mB.Error,n(62332).Buffer;var vB=n(91806);function gB(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var AB=/\r\n|[\n\r]/g;function wB(e,t){var n,r=0,a=1,i=(0,ba.Z)(e.body.matchAll(AB));try{for(i.s();!(n=i.n()).done;){var o=n.value;if("number"==typeof o.index||gB(!1),o.index>=t)break;r=o.index+o[0].length,a+=1}}catch(e){i.e(e)}finally{i.f()}return{line:a,column:t+1-r}}function xB(e){return _B(e.source,wB(e.source,e.start))}function _B(e,t){var n=e.locationOffset.column-1,r="".padStart(n)+e.body,a=t.line-1,i=e.locationOffset.line-1,o=t.line+i,s=1===t.line?n:0,c=t.column+s,u="".concat(e.name,":").concat(o,":").concat(c,"\n"),f=r.split(/\r\n|[\n\r]/g),d=f[a];if(d.length>120){for(var l=Math.floor(c/80),p=c%80,b=[],h=0;h1?s-1:0),u=1;u0&&(e.extensions=this.extensions),e}}]),r}((0,da.Z)(Error),Symbol.toStringTag);function IB(e){return void 0===e||0===e.length?void 0:e}function EB(e,t,n){return new SB("Syntax Error: ".concat(n),{source:e,positions:[t]})}var CB,TB,OB,PB,MB,BB=function(e){function t(e,n,r){(0,ya.Z)(this,t),this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=r}return(0,ma.Z)(t,[{key:e,get:function(){return"Location"}},{key:"toJSON",value:function(){return{start:this.start,end:this.end}}}]),t}(Symbol.toStringTag),RB=function(e){function t(e,n,r,a,i,o){(0,ya.Z)(this,t),this.kind=e,this.start=n,this.end=r,this.line=a,this.column=i,this.value=o,this.prev=null,this.next=null}return(0,ma.Z)(t,[{key:e,get:function(){return"Token"}},{key:"toJSON",value:function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}]),t}(Symbol.toStringTag);function NB(e){return e>=48&&e<=57}function DB(e){return e>=97&&e<=122||e>=65&&e<=90}function jB(e){return DB(e)||95===e}function UB(e){for(var t,n=Number.MAX_SAFE_INTEGER,r=null,a=-1,i=0;i",MB.EOF="",MB.BANG="!",MB.DOLLAR="$",MB.AMP="&",MB.PAREN_L="(",MB.PAREN_R=")",MB.SPREAD="...",MB.COLON=":",MB.EQUALS="=",MB.AT="@",MB.BRACKET_L="[",MB.BRACKET_R="]",MB.BRACE_L="{",MB.PIPE="|",MB.BRACE_R="}",MB.NAME="Name",MB.INT="Int",MB.FLOAT="Float",MB.STRING="String",MB.BLOCK_STRING="BlockString",MB.COMMENT="Comment";var ZB=function(e){function t(e){(0,ya.Z)(this,t);var n=new RB(PB.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}return(0,ma.Z)(t,[{key:e,get:function(){return"Lexer"}},{key:"advance",value:function(){return this.lastToken=this.token,this.token=this.lookahead()}},{key:"lookahead",value:function(){var e=this.token;if(e.kind!==PB.EOF)do{if(e.next)e=e.next;else{var t=VB(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===PB.COMMENT);return e}}]),t}(Symbol.toStringTag);function FB(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function HB(e,t){return zB(e.charCodeAt(t))&&qB(e.charCodeAt(t+1))}function zB(e){return e>=55296&&e<=56319}function qB(e){return e>=56320&&e<=57343}function QB(e,t){var n=e.source.body.codePointAt(t);if(void 0===n)return PB.EOF;if(n>=32&&n<=126){var r=String.fromCodePoint(n);return'"'===r?"'\"'":'"'.concat(r,'"')}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function KB(e,t,n,r,a){var i=e.line,o=1+n-e.lineStart;return new RB(t,n,r,i,o,a)}function VB(e,t){for(var n=e.source.body,r=n.length,a=t;a=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function nR(e,t){var n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw EB(e.source,t,'Invalid character escape sequence: "'.concat(n.slice(t,t+2),'".'))}function rR(e,t){for(var n=e.source.body,r=n.length,a=e.lineStart,i=t+3,o=i,s="",c=[];i2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,a=[],i=0;i1&&a.push("... ".concat(r," more items")),"["+a.join(", ")+"]"}(e,n);return function(e,t){var n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";var r=n.map((function(e){var n=(0,fa.Z)(e,2);return n[0]+": "+oR(n[1],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var sR=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};(0,ya.Z)(this,t),"string"==typeof e||iR(!1,"Body must be a string. Received: ".concat(oR(e,[]),".")),this.body=e,this.name=n,this.locationOffset=r,this.locationOffset.line>0||iR(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||iR(!1,"column in locationOffset is 1-indexed and must be positive.")}return(0,ma.Z)(t,[{key:e,get:function(){return"Source"}}]),t}(Symbol.toStringTag),cR=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,ya.Z)(this,e);var r=function(e){return e instanceof sR}(t)?t:new sR(t);this._lexer=new ZB(r),this._options=n,this._tokenCounter=0}return(0,ma.Z)(e,[{key:"parseName",value:function(){var e=this.expectToken(PB.NAME);return this.node(e,{kind:OB.NAME,value:e.value})}},{key:"parseDocument",value:function(){return this.node(this._lexer.token,{kind:OB.DOCUMENT,definitions:this.many(PB.SOF,this.parseDefinition,PB.EOF)})}},{key:"parseDefinition",value:function(){if(this.peek(PB.BRACE_L))return this.parseOperationDefinition();var e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===PB.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw EB(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}},{key:"parseOperationDefinition",value:function(){var e=this._lexer.token;if(this.peek(PB.BRACE_L))return this.node(e,{kind:OB.OPERATION_DEFINITION,operation:CB.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});var t,n=this.parseOperationType();return this.peek(PB.NAME)&&(t=this.parseName()),this.node(e,{kind:OB.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseOperationType",value:function(){var e=this.expectToken(PB.NAME);switch(e.value){case"query":return CB.QUERY;case"mutation":return CB.MUTATION;case"subscription":return CB.SUBSCRIPTION}throw this.unexpected(e)}},{key:"parseVariableDefinitions",value:function(){return this.optionalMany(PB.PAREN_L,this.parseVariableDefinition,PB.PAREN_R)}},{key:"parseVariableDefinition",value:function(){return this.node(this._lexer.token,{kind:OB.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(PB.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(PB.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}},{key:"parseVariable",value:function(){var e=this._lexer.token;return this.expectToken(PB.DOLLAR),this.node(e,{kind:OB.VARIABLE,name:this.parseName()})}},{key:"parseSelectionSet",value:function(){return this.node(this._lexer.token,{kind:OB.SELECTION_SET,selections:this.many(PB.BRACE_L,this.parseSelection,PB.BRACE_R)})}},{key:"parseSelection",value:function(){return this.peek(PB.SPREAD)?this.parseFragment():this.parseField()}},{key:"parseField",value:function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(PB.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:OB.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(PB.BRACE_L)?this.parseSelectionSet():void 0})}},{key:"parseArguments",value:function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(PB.PAREN_L,t,PB.PAREN_R)}},{key:"parseArgument",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._lexer.token,n=this.parseName();return this.expectToken(PB.COLON),this.node(t,{kind:OB.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}},{key:"parseConstArgument",value:function(){return this.parseArgument(!0)}},{key:"parseFragment",value:function(){var e=this._lexer.token;this.expectToken(PB.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(PB.NAME)?this.node(e,{kind:OB.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:OB.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentDefinition",value:function(){var e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:OB.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:OB.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentName",value:function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}},{key:"parseValueLiteral",value:function(e){var t=this._lexer.token;switch(t.kind){case PB.BRACKET_L:return this.parseList(e);case PB.BRACE_L:return this.parseObject(e);case PB.INT:return this.advanceLexer(),this.node(t,{kind:OB.INT,value:t.value});case PB.FLOAT:return this.advanceLexer(),this.node(t,{kind:OB.FLOAT,value:t.value});case PB.STRING:case PB.BLOCK_STRING:return this.parseStringLiteral();case PB.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:OB.BOOLEAN,value:!0});case"false":return this.node(t,{kind:OB.BOOLEAN,value:!1});case"null":return this.node(t,{kind:OB.NULL});default:return this.node(t,{kind:OB.ENUM,value:t.value})}case PB.DOLLAR:if(e){if(this.expectToken(PB.DOLLAR),this._lexer.token.kind===PB.NAME){var n=this._lexer.token.value;throw EB(this._lexer.source,t.start,'Unexpected variable "$'.concat(n,'" in constant value.'))}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}},{key:"parseConstValueLiteral",value:function(){return this.parseValueLiteral(!0)}},{key:"parseStringLiteral",value:function(){var e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:OB.STRING,value:e.value,block:e.kind===PB.BLOCK_STRING})}},{key:"parseList",value:function(e){var t=this;return this.node(this._lexer.token,{kind:OB.LIST,values:this.any(PB.BRACKET_L,(function(){return t.parseValueLiteral(e)}),PB.BRACKET_R)})}},{key:"parseObject",value:function(e){var t=this;return this.node(this._lexer.token,{kind:OB.OBJECT,fields:this.any(PB.BRACE_L,(function(){return t.parseObjectField(e)}),PB.BRACE_R)})}},{key:"parseObjectField",value:function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(PB.COLON),this.node(t,{kind:OB.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}},{key:"parseDirectives",value:function(e){for(var t=[];this.peek(PB.AT);)t.push(this.parseDirective(e));return t}},{key:"parseConstDirectives",value:function(){return this.parseDirectives(!0)}},{key:"parseDirective",value:function(e){var t=this._lexer.token;return this.expectToken(PB.AT),this.node(t,{kind:OB.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}},{key:"parseTypeReference",value:function(){var e,t=this._lexer.token;if(this.expectOptionalToken(PB.BRACKET_L)){var n=this.parseTypeReference();this.expectToken(PB.BRACKET_R),e=this.node(t,{kind:OB.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(PB.BANG)?this.node(t,{kind:OB.NON_NULL_TYPE,type:e}):e}},{key:"parseNamedType",value:function(){return this.node(this._lexer.token,{kind:OB.NAMED_TYPE,name:this.parseName()})}},{key:"peekDescription",value:function(){return this.peek(PB.STRING)||this.peek(PB.BLOCK_STRING)}},{key:"parseDescription",value:function(){if(this.peekDescription())return this.parseStringLiteral()}},{key:"parseSchemaDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseConstDirectives(),r=this.many(PB.BRACE_L,this.parseOperationTypeDefinition,PB.BRACE_R);return this.node(e,{kind:OB.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}},{key:"parseOperationTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(PB.COLON);var n=this.parseNamedType();return this.node(e,{kind:OB.OPERATION_TYPE_DEFINITION,operation:t,type:n})}},{key:"parseScalarTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:OB.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:OB.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:a,fields:i})}},{key:"parseImplementsInterfaces",value:function(){return this.expectOptionalKeyword("implements")?this.delimitedMany(PB.AMP,this.parseNamedType):[]}},{key:"parseFieldsDefinition",value:function(){return this.optionalMany(PB.BRACE_L,this.parseFieldDefinition,PB.BRACE_R)}},{key:"parseFieldDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(PB.COLON);var a=this.parseTypeReference(),i=this.parseConstDirectives();return this.node(e,{kind:OB.FIELD_DEFINITION,description:t,name:n,arguments:r,type:a,directives:i})}},{key:"parseArgumentDefs",value:function(){return this.optionalMany(PB.PAREN_L,this.parseInputValueDef,PB.PAREN_R)}},{key:"parseInputValueDef",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(PB.COLON);var r,a=this.parseTypeReference();this.expectOptionalToken(PB.EQUALS)&&(r=this.parseConstValueLiteral());var i=this.parseConstDirectives();return this.node(e,{kind:OB.INPUT_VALUE_DEFINITION,description:t,name:n,type:a,defaultValue:r,directives:i})}},{key:"parseInterfaceTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:OB.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:a,fields:i})}},{key:"parseUnionTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(e,{kind:OB.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:a})}},{key:"parseUnionMemberTypes",value:function(){return this.expectOptionalToken(PB.EQUALS)?this.delimitedMany(PB.PIPE,this.parseNamedType):[]}},{key:"parseEnumTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(e,{kind:OB.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:a})}},{key:"parseEnumValuesDefinition",value:function(){return this.optionalMany(PB.BRACE_L,this.parseEnumValueDefinition,PB.BRACE_R)}},{key:"parseEnumValueDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:OB.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseEnumValueName",value:function(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw EB(this._lexer.source,this._lexer.token.start,"".concat(uR(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}},{key:"parseInputObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(e,{kind:OB.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:a})}},{key:"parseInputFieldsDefinition",value:function(){return this.optionalMany(PB.BRACE_L,this.parseInputValueDef,PB.BRACE_R)}},{key:"parseTypeSystemExtension",value:function(){var e=this._lexer.lookahead();if(e.kind===PB.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}},{key:"parseSchemaExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseConstDirectives(),n=this.optionalMany(PB.BRACE_L,this.parseOperationTypeDefinition,PB.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:OB.SCHEMA_EXTENSION,directives:t,operationTypes:n})}},{key:"parseScalarTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:OB.SCALAR_TYPE_EXTENSION,name:t,directives:n})}},{key:"parseObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===a.length)throw this.unexpected();return this.node(e,{kind:OB.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:a})}},{key:"parseInterfaceTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===a.length)throw this.unexpected();return this.node(e,{kind:OB.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:a})}},{key:"parseUnionTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:OB.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}},{key:"parseEnumTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:OB.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}},{key:"parseInputObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:OB.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}},{key:"parseDirectiveDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(PB.AT);var n=this.parseName(),r=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var i=this.parseDirectiveLocations();return this.node(e,{kind:OB.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:a,locations:i})}},{key:"parseDirectiveLocations",value:function(){return this.delimitedMany(PB.PIPE,this.parseDirectiveLocation)}},{key:"parseDirectiveLocation",value:function(){var e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(TB,t.value))return t;throw this.unexpected(e)}},{key:"node",value:function(e,t){return!0!==this._options.noLocation&&(t.loc=new BB(e,this._lexer.lastToken,this._lexer.source)),t}},{key:"peek",value:function(e){return this._lexer.token.kind===e}},{key:"expectToken",value:function(e){var t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw EB(this._lexer.source,t.start,"Expected ".concat(fR(e),", found ").concat(uR(t),"."))}},{key:"expectOptionalToken",value:function(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}},{key:"expectKeyword",value:function(e){var t=this._lexer.token;if(t.kind!==PB.NAME||t.value!==e)throw EB(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(uR(t),"."));this.advanceLexer()}},{key:"expectOptionalKeyword",value:function(e){var t=this._lexer.token;return t.kind===PB.NAME&&t.value===e&&(this.advanceLexer(),!0)}},{key:"unexpected",value:function(e){var t=null!=e?e:this._lexer.token;return EB(this._lexer.source,t.start,"Unexpected ".concat(uR(t),"."))}},{key:"any",value:function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r}},{key:"optionalMany",value:function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]}},{key:"many",value:function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}},{key:"delimitedMany",value:function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}},{key:"advanceLexer",value:function(){var e=this._options.maxTokens,t=this._lexer.advance();if(void 0!==e&&t.kind!==PB.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw EB(this._lexer.source,t.start,"Document contains more that ".concat(e," tokens. Parsing aborted."))}}]),e}();function uR(e){var t=e.value;return fR(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function fR(e){return function(e){return e===PB.BANG||e===PB.DOLLAR||e===PB.AMP||e===PB.PAREN_L||e===PB.PAREN_R||e===PB.SPREAD||e===PB.COLON||e===PB.EQUALS||e===PB.AT||e===PB.BRACKET_L||e===PB.BRACKET_R||e===PB.BRACE_L||e===PB.PIPE||e===PB.BRACE_R}(e)?'"'.concat(e,'"'):e}var dR=new Map,lR=new Map,pR=!0,bR=!1;function hR(e){return e.replace(/[\s,]+/g," ").trim()}function yR(e){var t,n,r,a=hR(e);if(!dR.has(a)){var i=function(e,t){return new cR(e,t).parseDocument()}(e,{experimentalFragmentVariables:bR,allowLegacyFragmentVariables:bR});if(!i||"Document"!==i.kind)throw new Error("Not a valid GraphQL document.");dR.set(a,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=i,n=new Set,r=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,a=hR((o=e.loc).source.body.substring(o.start,o.end)),i=lR.get(t);i&&!i.has(a)?pR&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):i||lR.set(t,i=new Set),i.add(a),n.has(a)||(n.add(a),r.push(e))}else r.push(e);var o})),(0,Dn.pi)((0,Dn.pi)({},t),{definitions:r}))))}return dR.get(a)}function mR(e){for(var t=[],n=1;n1&&void 0!==arguments[1]&&arguments[1];if(e=kR(e),!0===t)return LR.from(e,"hex").toString("base64");for(var n="";e.length%4!=0;)e="0"+e;for(var r=0;r1&&void 0!==arguments[1]&&arguments[1]))return SR(LR.from(e,"base64").toString("hex"));for(var t="",n=0;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]5&&void 0!==arguments[5]?arguments[5]:JA,i=Xx([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1}],n,arguments.length>4&&void 0!==arguments[4]?arguments[4]:[]),o=rN.alloc(aN.span);return aN.encode({instruction:Fx.Approve,amount:BigInt(r)},o),new xf.TransactionInstruction({keys:i,programId:a,data:o})}(new xf.PublicKey(t),ow(e),new xf.PublicKey(n),r)}function oN(e,t){var n=jh(e,t),r=n.emitter,a=n.sequence;return{wormholeBridge:Mg(t),wormholeEmitter:r,wormholeSequence:a,wormholeFeeCollector:jg(t)}}function sN(e,t,n,r){var a=sA(t,n,e,r);return{payer:a.payer,wormholeBridge:a.bridge,wormholeMessage:a.message,wormholeEmitter:a.emitter,wormholeSequence:a.sequence,wormholeFeeCollector:a.feeCollector,clock:a.clock,rent:a.rent,systemProgram:a.systemProgram}}var cN=n(62332).Buffer;function uN(e){return Th([cN.from("sender")],e)}function fN(e){return Th([cN.from("redeemer")],e)}var dN=n(62332).Buffer,lN=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},pN=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},vN=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},_N=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},EN=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},RN=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&(I=(0,Cb.makePaymentTxnWithSuggestedParamsFromObject)({from:r,suggestedParams:w,to:(0,kf.getApplicationAddress)(t),amount:x}),p.push({tx:I,signer:null})),g?[3,8]:(_=TN.from("native","binary").toString("hex"),[4,gy(e,r,t,a,_)]);case 7:k=N.sent(),m=k.addr,p.push.apply(p,RN([],BN(k.txs))),N.label=8;case 8:return(S=a!==BigInt(0))?[4,Sy(e,a,m)]:[3,10];case 9:S=!N.sent(),N.label=10;case 10:return S&&(I=(0,Cb.makePaymentTxnWithSuggestedParamsFromObject)({from:r,to:m,amount:1e5,suggestedParams:w}),p.push({tx:I,signer:null}),E=xm("optin"),(C=(0,Cb.makeApplicationCallTxnFromObject)({from:r,appIndex:Jh(t),onComplete:Cb.OnApplicationComplete.NoOpOC,appArgs:[E,Kp(a,8)],foreignAssets:[Jh(a)],accounts:[m],suggestedParams:w})).fee*=2,p.push({tx:C,signer:null})),T=(0,Cb.makeApplicationCallTxnFromObject)({from:r,appIndex:Jh(t),onComplete:Cb.OnApplicationComplete.NoOpOC,appArgs:[xm("nop")],suggestedParams:w}),p.push({tx:T,signer:null}),O=[],a===BigInt(0)?(P=(0,Cb.makePaymentTxnWithSuggestedParamsFromObject)({from:r,to:m,amount:i,suggestedParams:w}),p.push({tx:P,signer:null}),O=[h,m,m]):(M=(0,Cb.makeAssetTransferTxnWithSuggestedParamsFromObject)({from:r,to:m,suggestedParams:w,amount:i,assetIndex:Jh(a)}),p.push({tx:M,signer:null}),O=[h,m,v.address]),B=[xm("sendTransfer"),Kp(a,8),Kp(i,8),um(o),Kp(f,8),Kp(c,8)],null!==u&&B.push(u),(R=(0,Cb.makeApplicationCallTxnFromObject)({from:r,appIndex:Jh(t),onComplete:Cb.OnApplicationComplete.NoOpOC,appArgs:B,foreignApps:[Jh(n)],foreignAssets:[Jh(a)],accounts:O,suggestedParams:w})).fee*=2,p.push({tx:R,signer:null}),[2,p]}}))}))}function qN(e,t,n,r,a,i,o,s,c,u){return void 0===u&&(u=""),PN(this,void 0,void 0,(function(){var f,d,l,p;return MN(this,(function(b){switch(b.label){case 0:return f=wg(r,a),[4,am(e,n,"message_fee",{})];case 1:return d=b.sent(),s=fe(s),f?[2,[{contractId:r,methodName:"send_transfer_wormhole_token",args:{token:a,amount:i.toString(10),receiver:cm(o),chain:s,fee:c.toString(10),payload:u,message_fee:d},attachedDeposit:new(Gy())(d+1),gas:new(Gy())("100000000000000")}]]:[3,2];case 2:return l=[],[4,am(e,a,"storage_balance_of",{account_id:r})];case 3:return null===b.sent()&&l.push({contractId:a,methodName:"storage_deposit",args:{account_id:r,registration_only:!0},gas:new(Gy())("100000000000000"),attachedDeposit:new(Gy())("2000000000000000000000")}),d>0?[4,am(e,r,"bank_balance",{acct:t})]:[3,5];case 4:(p=b.sent())[0]||l.push({contractId:r,methodName:"register_bank",args:{},gas:new(Gy())("100000000000000"),attachedDeposit:new(Gy())("2000000000000000000000")}),p[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint8",e,t)}},{key:"uint16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("uint16"),e,t)}},{key:"uint16le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint16le",e,t)}},{key:"uint16be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint16be",e,t)}},{key:"uint32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("uint32"),e,t)}},{key:"uint32le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint32le",e,t)}},{key:"uint32be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint32be",e,t)}},{key:"int8",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int8",e,t)}},{key:"int16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("int16"),e,t)}},{key:"int16le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int16le",e,t)}},{key:"int16be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int16be",e,t)}},{key:"int32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("int32"),e,t)}},{key:"int32le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int32le",e,t)}},{key:"int32be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int32be",e,t)}},{key:"bigIntVersionCheck",value:function(){if(!DataView.prototype.getBigInt64)throw new Error("BigInt64 is unsupported on this runtime")}},{key:"int64",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN(this.useThisEndian("int64"),e,t)}},{key:"int64be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("int64be",e,t)}},{key:"int64le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("int64le",e,t)}},{key:"uint64",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN(this.useThisEndian("uint64"),e,t)}},{key:"uint64be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("uint64be",e,t)}},{key:"uint64le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("uint64le",e,t)}},{key:"floatle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("floatle",e,t)}},{key:"floatbe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("floatbe",e,t)}},{key:"doublele",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("doublele",e,t)}},{key:"doublebe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("doublebe",e,t)}},{key:"bitN",value:function(e,t,n){return n.length=e,this.setNextParser("bit",t,n)}},{key:"bit1",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(1,e,t)}},{key:"bit2",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(2,e,t)}},{key:"bit3",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(3,e,t)}},{key:"bit4",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(4,e,t)}},{key:"bit5",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(5,e,t)}},{key:"bit6",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(6,e,t)}},{key:"bit7",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(7,e,t)}},{key:"bit8",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(8,e,t)}},{key:"bit9",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(9,e,t)}},{key:"bit10",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(10,e,t)}},{key:"bit11",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(11,e,t)}},{key:"bit12",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(12,e,t)}},{key:"bit13",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(13,e,t)}},{key:"bit14",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(14,e,t)}},{key:"bit15",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(15,e,t)}},{key:"bit16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(16,e,t)}},{key:"bit17",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(17,e,t)}},{key:"bit18",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(18,e,t)}},{key:"bit19",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(19,e,t)}},{key:"bit20",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(20,e,t)}},{key:"bit21",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(21,e,t)}},{key:"bit22",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(22,e,t)}},{key:"bit23",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(23,e,t)}},{key:"bit24",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(24,e,t)}},{key:"bit25",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(25,e,t)}},{key:"bit26",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(26,e,t)}},{key:"bit27",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(27,e,t)}},{key:"bit28",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(28,e,t)}},{key:"bit29",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(29,e,t)}},{key:"bit30",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(30,e,t)}},{key:"bit31",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(31,e,t)}},{key:"bit32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(32,e,t)}},{key:"namely",value:function(e){return rD.set(e,this),this.alias=e,this}},{key:"skip",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.seek(e,t)}},{key:"seek",value:function(e){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).assert)throw new Error("assert option on seek is not allowed.");return this.setNextParser("seek","",{length:e})}},{key:"string",value:function(e,t){if(!t.zeroTerminated&&!t.length&&!t.greedy)throw new Error("One of length, zeroTerminated, or greedy must be defined for string.");if((t.zeroTerminated||t.length)&&t.greedy)throw new Error("greedy is mutually exclusive with length and zeroTerminated for string.");if(t.stripNull&&!t.length&&!t.greedy)throw new Error("length or greedy must be defined if stripNull is enabled.");return t.encoding=t.encoding||"utf8",this.setNextParser("string",e,t)}},{key:"buffer",value:function(e,t){if(!t.length&&!t.readUntil)throw new Error("length or readUntil must be defined for buffer.");return this.setNextParser("buffer",e,t)}},{key:"wrapped",value:function(e,t){if("object"!=typeof t&&"object"==typeof e&&(t=e,e=""),!t||!t.wrapper||!t.type)throw new Error("Both wrapper and type must be defined for wrapped.");if(!t.length&&!t.readUntil)throw new Error("length or readUntil must be defined for wrapped.");return this.setNextParser("wrapper",e,t)}},{key:"array",value:function(e,t){if(!t.readUntil&&!t.length&&!t.lengthInBytes)throw new Error("One of readUntil, length and lengthInBytes must be defined for array.");if(!t.type)throw new Error("type is required for array.");if("string"==typeof t.type&&!rD.has(t.type)&&!(t.type in iD))throw new Error('Array element type "'.concat(t.type,'" is unkown.'));return this.setNextParser("array",e,t)}},{key:"choice",value:function(e,t){if("object"!=typeof t&&"object"==typeof e&&(t=e,e=""),!t)throw new Error("tag and choices are are required for choice.");if(!t.tag)throw new Error("tag is requird for choice.");if(!t.choices)throw new Error("choices is required for choice.");for(var n in t.choices){var r=parseInt(n,10),a=t.choices[r];if(isNaN(r))throw new Error('Choice key "'.concat(n,'" is not a number.'));if("string"==typeof a&&!rD.has(a)&&!(a in iD))throw new Error('Choice type "'.concat(a,'" is unkown.'))}return this.setNextParser("choice",e,t)}},{key:"nest",value:function(t,n){if("object"!=typeof n&&"object"==typeof t&&(n=t,t=""),!n||!n.type)throw new Error("type is required for nest.");if(!(n.type instanceof e||rD.has(n.type)))throw new Error("type must be a known parser name or a Parser object.");if(!(n.type instanceof e||t))throw new Error("type must be a Parser object if the variable name is omitted.");return this.setNextParser("nest",t,n)}},{key:"pointer",value:function(e,t){if(!t.offset)throw new Error("offset is required for pointer.");if(!t.type)throw new Error("type is required for pointer.");if("string"==typeof t.type&&!(t.type in iD)&&!rD.has(t.type))throw new Error('Pointer type "'.concat(t.type,'" is unkown.'));return this.setNextParser("pointer",e,t)}},{key:"saveOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setNextParser("saveOffset",e,t)}},{key:"endianness",value:function(e){switch(e.toLowerCase()){case"little":this.endian="le";break;case"big":this.endian="be";break;default:throw new Error('endianness must be one of "little" or "big"')}return this}},{key:"endianess",value:function(e){return this.endianness(e)}},{key:"useContextVars",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.useContextVariables=e,this}},{key:"create",value:function(e){if(!(e instanceof Function))throw new Error("Constructor must be a Function object.");return this.constructorFn=e,this}},{key:"getContext",value:function(e){var t=new nD(e,this.useContextVariables);return t.pushCode("var dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.length);"),this.alias?(this.addAliasedCode(t),t.pushCode("return ".concat(aD+this.alias,"(0).result;"))):this.addRawCode(t),t}},{key:"getCode",value:function(){return this.getContext("imports").code}},{key:"addRawCode",value:function(e){e.pushCode("var offset = 0;"),e.pushCode("var vars = ".concat(this.constructorFn?"new constructorFn()":"{}",";")),e.pushCode("vars.$parent = null;"),e.pushCode("vars.$root = vars;"),this.generate(e),this.resolveReferences(e),e.pushCode("delete vars.$parent;"),e.pushCode("delete vars.$root;"),e.pushCode("return vars;")}},{key:"addAliasedCode",value:function(e){return e.pushCode("function ".concat(aD+this.alias,"(offset, context) {")),e.pushCode("var vars = ".concat(this.constructorFn?"new constructorFn()":"{}",";")),e.pushCode("var ctx = Object.assign({$parent: null, $root: vars}, context || {});"),e.pushCode("vars = Object.assign(vars, ctx);"),this.generate(e),e.markResolved(this.alias),this.resolveReferences(e),e.pushCode("Object.keys(ctx).forEach(function (item) { delete vars[item]; });"),e.pushCode("return { offset: offset, result: vars };"),e.pushCode("}"),e}},{key:"resolveReferences",value:function(e){var t=e.getUnresolvedReferences();e.markRequested(t),t.forEach((function(t){var n;null===(n=rD.get(t))||void 0===n||n.addAliasedCode(e)}))}},{key:"compile",value:function(){var e="imports",t=this.getContext(e);this.compiled=new Function(e,"TextDecoder","return function (buffer, constructorFn) { ".concat(t.code," };"))(t.imports,TextDecoder)}},{key:"sizeOf",value:function(){var t=NaN;if(Object.keys(iD).indexOf(this.type)>=0)t=iD[this.type];else if("string"===this.type&&"number"==typeof this.options.length)t=this.options.length;else if("buffer"===this.type&&"number"==typeof this.options.length)t=this.options.length;else if("array"===this.type&&"number"==typeof this.options.length){var n=NaN;"string"==typeof this.options.type?n=iD[this.options.type]:this.options.type instanceof e&&(n=this.options.type.sizeOf()),t=this.options.length*n}else"seek"===this.type?t=this.options.length:"nest"===this.type?t=this.options.type.sizeOf():this.type||(t=0);return this.next&&(t+=this.next.sizeOf()),t}},{key:"parse",value:function(e){return this.compiled||this.compile(),this.compiled(e,this.constructorFn)}},{key:"setNextParser",value:function(t,n,r){var a=new e;return a.type=t,a.varName=n,a.options=r,a.endian=this.endian,this.head?this.head.next=a:this.next=a,this.head=a,this}},{key:"generate",value:function(e){if(this.type){switch(this.type){case"uint8":case"uint16le":case"uint16be":case"uint32le":case"uint32be":case"int8":case"int16le":case"int16be":case"int32le":case"int32be":case"int64be":case"int64le":case"uint64be":case"uint64le":case"floatle":case"floatbe":case"doublele":case"doublebe":this.primitiveGenerateN(this.type,e);break;case"bit":this.generateBit(e);break;case"string":this.generateString(e);break;case"buffer":this.generateBuffer(e);break;case"seek":this.generateSeek(e);break;case"nest":this.generateNest(e);break;case"array":this.generateArray(e);break;case"choice":this.generateChoice(e);break;case"pointer":this.generatePointer(e);break;case"saveOffset":this.generateSaveOffset(e);break;case"wrapper":this.generateWrapper(e)}"bit"!==this.type&&this.generateAssert(e)}var t=e.generateVariable(this.varName);return this.options.formatter&&"bit"!==this.type&&this.generateFormatter(e,t,this.options.formatter),this.generateNext(e)}},{key:"generateAssert",value:function(e){if(this.options.assert){var t=e.generateVariable(this.varName);switch(typeof this.options.assert){case"function":var n=e.addImport(this.options.assert);e.pushCode("if (!".concat(n,".call(vars, ").concat(t,")) {"));break;case"number":e.pushCode("if (".concat(this.options.assert," !== ").concat(t,") {"));break;case"string":e.pushCode("if (".concat(JSON.stringify(this.options.assert)," !== ").concat(t,") {"));break;default:throw new Error("assert option must be a string, number or a function.")}e.generateError('"Assertion error: '.concat(t,' is " + ').concat(JSON.stringify(this.options.assert.toString()))),e.pushCode("}")}}},{key:"generateNext",value:function(e){return this.next&&(e=this.next.generate(e)),e}},{key:"generateBit",value:function(e){var t=JSON.parse(JSON.stringify(this));if(t.options=this.options,t.generateAssert=this.generateAssert.bind(this),t.generateFormatter=this.generateFormatter.bind(this),t.varName=e.generateVariable(t.varName),e.bitFields.push(t),!this.next||this.next&&["bit","nest"].indexOf(this.next.type)<0){var n=e.generateTmpVariable();e.pushCode("var ".concat(n," = 0;"));var r=0,a="be"===this.endian,i=0,o=0;e.bitFields.forEach((function(t,s){var c=t.options.length;if(c>o){if(o){var u=-1>>>32-o;e.pushCode("".concat(t.varName," = (").concat(n," & 0x").concat(u.toString(16),") << ").concat(c-o,";")),c-=o}r=0,o=i=function(t){return t<=8?(e.pushCode("".concat(n," = dataView.getUint8(offset);")),t=8):t<=16?(e.pushCode("".concat(n," = dataView.getUint16(offset);")),t=16):t<=24?(e.pushCode("".concat(n," = (dataView.getUint16(offset) << 8) | dataView.getUint8(offset + 2);")),t=24):(e.pushCode("".concat(n," = dataView.getUint32(offset);")),t=32),e.pushCode("offset += ".concat(t/8,";")),t}(function(){for(var t=0,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;n32)break;t+=r}return t}(s)-o)}var f=a?i-r-c:r,d=-1>>>32-c;e.pushCode("".concat(t.varName," ").concat(c> ").concat(f," & 0x").concat(d.toString(16),";")),32===t.options.length&&e.pushCode("".concat(t.varName," >>>= 0")),t.options.assert&&t.generateAssert(e),t.options.formatter&&t.generateFormatter(e,t.varName,t.options.formatter),r+=c,o-=c})),e.bitFields=[]}}},{key:"generateSeek",value:function(e){var t=e.generateOption(this.options.length);e.pushCode("offset += ".concat(t,";"))}},{key:"generateString",value:function(e){var t=e.generateVariable(this.varName),n=e.generateTmpVariable(),r=this.options.encoding,a="hex"===r.toLowerCase(),i='b => b.toString(16).padStart(2, "0")';if(this.options.length&&this.options.zeroTerminated){var o=this.options.length;e.pushCode("var ".concat(n," = offset;")),e.pushCode("while(dataView.getUint8(offset++) !== 0 && offset - ".concat(n," < ").concat(o,");"));var s="offset - ".concat(n," < ").concat(o," ? offset - 1 : offset");e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(").concat(n,", ").concat(s,"), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(").concat(n,", ").concat(s,"));"))}else if(this.options.length){var c=e.generateOption(this.options.length);e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(offset, offset + ").concat(c,"), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(offset, offset + ").concat(c,"));")),e.pushCode("offset += ".concat(c,";"))}else this.options.zeroTerminated?(e.pushCode("var ".concat(n," = offset;")),e.pushCode("while(dataView.getUint8(offset++) !== 0);"),e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(").concat(n,", offset - 1), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(").concat(n,", offset - 1));"))):this.options.greedy&&(e.pushCode("var ".concat(n," = offset;")),e.pushCode("while(buffer.length > offset++);"),e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(").concat(n,", offset), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(").concat(n,", offset));")));this.options.stripNull&&e.pushCode("".concat(t," = ").concat(t,".replace(/\\x00+$/g, '')"))}},{key:"generateBuffer",value:function(e){var t=e.generateVariable(this.varName);if("function"==typeof this.options.readUntil){var n=this.options.readUntil,r=e.generateTmpVariable(),a=e.generateTmpVariable();e.pushCode("var ".concat(r," = offset;")),e.pushCode("var ".concat(a," = 0;")),e.pushCode("while (offset < buffer.length) {"),e.pushCode("".concat(a," = dataView.getUint8(offset);"));var i=e.addImport(n);e.pushCode("if (".concat(i,".call(").concat(e.generateVariable(),", ").concat(a,", buffer.subarray(offset))) break;")),e.pushCode("offset += 1;"),e.pushCode("}"),e.pushCode("".concat(t," = buffer.subarray(").concat(r,", offset);"))}else if("eof"===this.options.readUntil)e.pushCode("".concat(t," = buffer.subarray(offset);"));else{var o=e.generateOption(this.options.length);e.pushCode("".concat(t," = buffer.subarray(offset, offset + ").concat(o,");")),e.pushCode("offset += ".concat(o,";"))}this.options.clone&&e.pushCode("".concat(t," = buffer.constructor.from(").concat(t,");"))}},{key:"generateArray",value:function(t){var n=t.generateOption(this.options.length),r=t.generateOption(this.options.lengthInBytes),a=this.options.type,i=t.generateTmpVariable(),o=t.generateVariable(this.varName),s=t.generateTmpVariable(),c=this.options.key,u="string"==typeof c;if(u?t.pushCode("".concat(o," = {};")):t.pushCode("".concat(o," = [];")),"function"==typeof this.options.readUntil?t.pushCode("do {"):"eof"===this.options.readUntil?t.pushCode("for (var ".concat(i," = 0; offset < buffer.length; ").concat(i,"++) {")):void 0!==r?t.pushCode("for (var ".concat(i," = offset + ").concat(r,"; offset < ").concat(i,"; ) {")):t.pushCode("for (var ".concat(i," = ").concat(n,"; ").concat(i," > 0; ").concat(i,"--) {")),"string"==typeof a)if(rD.get(a)){var f=t.generateTmpVariable();if(t.pushCode("var ".concat(f," = ").concat(aD+a,"(offset, {")),t.useContextVariables){var d=t.generateVariable();t.pushCode("$parent: ".concat(d,",")),t.pushCode("$root: ".concat(d,".$root,")),this.options.readUntil||void 0!==r||t.pushCode("$index: ".concat(n," - ").concat(i,","))}t.pushCode("});"),t.pushCode("var ".concat(s," = ").concat(f,".result; offset = ").concat(f,".offset;")),a!==this.alias&&t.addReference(a)}else{var l=oD[a],p=sD[a];t.pushCode("var ".concat(s," = dataView.get").concat(l,"(offset, ").concat(p,");")),t.pushCode("offset += ".concat(iD[a],";"))}else if(a instanceof e){t.pushCode("var ".concat(s," = {};"));var b=t.generateVariable();t.pushScope(s),t.useContextVariables&&(t.pushCode("".concat(s,".$parent = ").concat(b,";")),t.pushCode("".concat(s,".$root = ").concat(b,".$root;")),this.options.readUntil||void 0!==r||t.pushCode("".concat(s,".$index = ").concat(n," - ").concat(i,";"))),a.generate(t),t.useContextVariables&&(t.pushCode("delete ".concat(s,".$parent;")),t.pushCode("delete ".concat(s,".$root;")),t.pushCode("delete ".concat(s,".$index;"))),t.popScope()}if(u?t.pushCode("".concat(o,"[").concat(s,".").concat(c,"] = ").concat(s,";")):t.pushCode("".concat(o,".push(").concat(s,");")),t.pushCode("}"),"function"==typeof this.options.readUntil){var h=this.options.readUntil,y=t.addImport(h);t.pushCode("while (!".concat(y,".call(").concat(t.generateVariable(),", ").concat(s,", buffer.subarray(offset)));"))}}},{key:"generateChoiceCase",value:function(t,n,r){if("string"==typeof r){var a=t.generateVariable(this.varName);if(rD.has(r)){var i=t.generateTmpVariable();t.pushCode("var ".concat(i," = ").concat(aD+r,"(offset, {")),t.useContextVariables&&(t.pushCode("$parent: ".concat(a,".$parent,")),t.pushCode("$root: ".concat(a,".$root,"))),t.pushCode("});"),t.pushCode("".concat(a," = ").concat(i,".result; offset = ").concat(i,".offset;")),r!==this.alias&&t.addReference(r)}else{var o=oD[r],s=sD[r];t.pushCode("".concat(a," = dataView.get").concat(o,"(offset, ").concat(s,");")),t.pushCode("offset += ".concat(iD[r]))}}else r instanceof e&&(t.pushPath(n),r.generate(t),t.popPath(n))}},{key:"generateChoice",value:function(e){var t=e.generateOption(this.options.tag),n=e.generateVariable(this.varName);if(this.varName&&(e.pushCode("".concat(n," = {};")),e.useContextVariables)){var r=e.generateVariable();e.pushCode("".concat(n,".$parent = ").concat(r,";")),e.pushCode("".concat(n,".$root = ").concat(r,".$root;"))}for(var a in e.pushCode("switch(".concat(t,") {")),this.options.choices){var i=parseInt(a,10),o=this.options.choices[i];e.pushCode("case ".concat(i,":")),this.generateChoiceCase(e,this.varName,o),e.pushCode("break;")}e.pushCode("default:"),this.options.defaultChoice?this.generateChoiceCase(e,this.varName,this.options.defaultChoice):e.generateError('"Met undefined tag value " + '.concat(t,' + " at choice"')),e.pushCode("}"),this.varName&&e.useContextVariables&&(e.pushCode("delete ".concat(n,".$parent;")),e.pushCode("delete ".concat(n,".$root;")))}},{key:"generateNest",value:function(t){var n=t.generateVariable(this.varName);if(this.options.type instanceof e){if(this.varName&&(t.pushCode("".concat(n," = {};")),t.useContextVariables)){var r=t.generateVariable();t.pushCode("".concat(n,".$parent = ").concat(r,";")),t.pushCode("".concat(n,".$root = ").concat(r,".$root;"))}t.pushPath(this.varName),this.options.type.generate(t),t.popPath(this.varName),this.varName&&t.useContextVariables&&t.useContextVariables&&(t.pushCode("delete ".concat(n,".$parent;")),t.pushCode("delete ".concat(n,".$root;")))}else if(rD.has(this.options.type)){var a=t.generateTmpVariable();if(t.pushCode("var ".concat(a," = ").concat(aD+this.options.type,"(offset, {")),t.useContextVariables){var i=t.generateVariable();t.pushCode("$parent: ".concat(i,",")),t.pushCode("$root: ".concat(i,".$root,"))}t.pushCode("});"),t.pushCode("".concat(n," = ").concat(a,".result; offset = ").concat(a,".offset;")),this.options.type!==this.alias&&t.addReference(this.options.type)}}},{key:"generateWrapper",value:function(t){var n=t.generateVariable(this.varName),r=t.generateTmpVariable();if("function"==typeof this.options.readUntil){var a=this.options.readUntil,i=t.generateTmpVariable(),o=t.generateTmpVariable();t.pushCode("var ".concat(i," = offset;")),t.pushCode("var ".concat(o," = 0;")),t.pushCode("while (offset < buffer.length) {"),t.pushCode("".concat(o," = dataView.getUint8(offset);"));var s=t.addImport(a);t.pushCode("if (".concat(s,".call(").concat(t.generateVariable(),", ").concat(o,", buffer.subarray(offset))) break;")),t.pushCode("offset += 1;"),t.pushCode("}"),t.pushCode("".concat(r," = buffer.subarray(").concat(i,", offset);"))}else if("eof"===this.options.readUntil)t.pushCode("".concat(r," = buffer.subarray(offset);"));else{var c=t.generateOption(this.options.length);t.pushCode("".concat(r," = buffer.subarray(offset, offset + ").concat(c,");")),t.pushCode("offset += ".concat(c,";"))}this.options.clone&&t.pushCode("".concat(r," = buffer.constructor.from(").concat(r,");"));var u=t.generateTmpVariable(),f=t.generateTmpVariable(),d=t.generateTmpVariable(),l=t.addImport(this.options.wrapper);if(t.pushCode("".concat(r," = ").concat(l,".call(this, ").concat(r,").subarray(0);")),t.pushCode("var ".concat(u," = buffer;")),t.pushCode("var ".concat(f," = offset;")),t.pushCode("var ".concat(d," = dataView;")),t.pushCode("buffer = ".concat(r,";")),t.pushCode("offset = 0;"),t.pushCode("dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.length);"),this.options.type instanceof e)this.varName&&t.pushCode("".concat(n," = {};")),t.pushPath(this.varName),this.options.type.generate(t),t.popPath(this.varName);else if(rD.has(this.options.type)){var p=t.generateTmpVariable();t.pushCode("var ".concat(p," = ").concat(aD+this.options.type,"(0);")),t.pushCode("".concat(n," = ").concat(p,".result;")),this.options.type!==this.alias&&t.addReference(this.options.type)}t.pushCode("buffer = ".concat(u,";")),t.pushCode("dataView = ".concat(d,";")),t.pushCode("offset = ".concat(f,";"))}},{key:"generateFormatter",value:function(e,t,n){if("function"==typeof n){var r=e.addImport(n);e.pushCode("".concat(t," = ").concat(r,".call(").concat(e.generateVariable(),", ").concat(t,");"))}}},{key:"generatePointer",value:function(t){var n=this.options.type,r=t.generateOption(this.options.offset),a=t.generateTmpVariable(),i=t.generateVariable(this.varName);if(t.pushCode("var ".concat(a," = offset;")),t.pushCode("offset = ".concat(r,";")),this.options.type instanceof e){if(t.pushCode("".concat(i," = {};")),t.useContextVariables){var o=t.generateVariable();t.pushCode("".concat(i,".$parent = ").concat(o,";")),t.pushCode("".concat(i,".$root = ").concat(o,".$root;"))}t.pushPath(this.varName),this.options.type.generate(t),t.popPath(this.varName),t.useContextVariables&&(t.pushCode("delete ".concat(i,".$parent;")),t.pushCode("delete ".concat(i,".$root;")))}else if(rD.has(this.options.type)){var s=t.generateTmpVariable();if(t.pushCode("var ".concat(s," = ").concat(aD+this.options.type,"(offset, {")),t.useContextVariables){var c=t.generateVariable();t.pushCode("$parent: ".concat(c,",")),t.pushCode("$root: ".concat(c,".$root,"))}t.pushCode("});"),t.pushCode("".concat(i," = ").concat(s,".result; offset = ").concat(s,".offset;")),this.options.type!==this.alias&&t.addReference(this.options.type)}else if(Object.keys(iD).indexOf(this.options.type)>=0){var u=oD[n],f=sD[n];t.pushCode("".concat(i," = dataView.get").concat(u,"(offset, ").concat(f,");")),t.pushCode("offset += ".concat(iD[n],";"))}t.pushCode("offset = ".concat(a,";"))}},{key:"generateSaveOffset",value:function(e){var t=e.generateVariable(this.varName);e.pushCode("".concat(t," = offset"))}}],[{key:"start",value:function(){return new e}}]),e}(),uD=n(26150),fD=n(35730),dD=n(62332).Buffer,lD=function(){return lD=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},bD=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},hZ=function(e,t){for(var n=0,r=t.length,a=e.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function mZ(){for(var e=[],t=0;ta)return[2,Promise.reject("Reached the maximum number of retries.")];A.label=12;case 12:return f=u.next(),[3,2];case 13:return[3,16];case 14:return m=A.sent(),v={error:m},[3,16];case 15:try{f&&!f.done&&(g=u.return)&&g.call(u)}finally{if(v)throw v.error}return[7];case 16:return[2,Promise.resolve(c)]}}))}))}var xZ=n(62332).Buffer,_Z=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},kZ=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},LZ=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},GZ=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},tF=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},sF=function(e,t){for(var n=0,r=t.length,a=e.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function uF(e,t,n,r,a,i,o){return aF(this,void 0,void 0,(function(){var s,c,u,f,d,l,p,b,h;return iF(this,(function(y){switch(y.label){case 0:return[4,dF(e,n,r,a,o)];case 1:return s=y.sent(),c=s.unsignedTransactions,u=s.signers,f=c.pop(),[4,wZ(e,vZ.apply(void 0,sF([t],oF(u))),r.toString(),c,i)];case 2:return d=y.sent(),p=(l=d.push).apply,b=[d],h=[[]],[4,wZ(e,t,r.toString(),[f],i)];case 3:return p.apply(l,b.concat([sF.apply(void 0,h.concat([oF.apply(void 0,[y.sent()])]))])),[2,d]}}))}))}function fF(e,t,n,r,a,i,o){return void 0===o&&(o=!0),aF(this,void 0,void 0,(function(){var s,c,u,f,d,l,p,b,h,y,m,v,g,A,w,x,_,k=this;return iF(this,(function(S){switch(S.label){case 0:return[4,dF(e,n,r,a,null==i?void 0:i.commitment)];case 1:return s=S.sent(),c=s.unsignedTransactions,u=s.signers,f=c.pop(),d=function(n){return aF(k,void 0,void 0,(function(){return iF(this,(function(a){return[2,AZ(e,r,vZ.apply(void 0,sF([t],oF(u))),n,i)]}))}))},l=[],o?[4,Promise.all(c.map((function(e){return aF(k,void 0,void 0,(function(){return iF(this,(function(t){return[2,d(e)]}))}))})))]:[3,3];case 2:return p=S.sent(),l.push.apply(l,sF([],oF(p))),[3,10];case 3:S.trys.push([3,8,9,10]),b=cF(c),h=b.next(),S.label=4;case 4:return h.done?[3,7]:(y=h.value,v=(m=l).push,[4,d(y)]);case 5:v.apply(m,[S.sent()]),S.label=6;case 6:return h=b.next(),[3,4];case 7:return[3,10];case 8:return g=S.sent(),x={error:g},[3,10];case 9:try{h&&!h.done&&(_=b.return)&&_.call(b)}finally{if(x)throw x.error}return[7];case 10:return w=(A=l).push,[4,AZ(e,r,t,f,i)];case 11:return w.apply(A,[S.sent()]),[2,l]}}))}))}function dF(e,t,n,r,a){return aF(this,void 0,void 0,(function(){var i,o,s,c,u,f;return iF(this,(function(d){switch(d.label){case 0:return i=(0,gf.isBytes)(r)?Xm(r):r,o=xf.Keypair.generate(),[4,YZ(e,t,n,i,o.publicKey,a)];case 1:for(s=d.sent(),c=[],u=0;u0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&r.write(t.toString("hex"),1,"hex"),r}function zF(e){var t=e.nonce,n=e.targetAddress,r=e.targetChain;if(!ZF.isBuffer(n))throw new Error("targetAddress must be Buffer");var a=ZF.alloc(38);return a.writeUInt32LE(t,0),a.write(n.toString("hex"),4,"hex"),a.writeUInt16LE(r,36),a}!function(e){e[e.Initialize=0]="Initialize",e[e.CompleteNative=1]="CompleteNative",e[e.CompleteWrapped=2]="CompleteWrapped",e[e.CompleteWrappedMeta=3]="CompleteWrappedMeta",e[e.TransferWrapped=4]="TransferWrapped",e[e.TransferNative=5]="TransferNative",e[e.RegisterChain=6]="RegisterChain",e[e.UpgradeContract=7]="UpgradeContract"}(jF||(jF={}));var qF=function(){function e(e){}return e.prototype.encode=function(e,t){throw new Error("NFT Bridge program does not have state")},e.prototype.decode=function(e){throw new Error("NFT Bridge program does not have state")},e}(),QF=function(){function e(e){}return e.prototype.encode=function(e,t){throw new Error("NFT Bridge program does not have user-defined types")},e.prototype.decode=function(e,t){throw new Error("NFT Bridge program does not have user-defined types")},e}(),KF=function(e){this.instruction=new FF(e),this.accounts=new UF(e),this.state=new qF(e),this.events=new LF(e),this.types=new QF(e)},VF=JSON.parse('{"version":"0.1.0","name":"wormhole","instructions":[{"name":"initialize","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":true,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[{"name":"wormhole","type":"publicKey"}]},{"name":"completeNative","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"endpoint","isMut":false,"isSigner":false},{"name":"to","isMut":true,"isSigner":false},{"name":"toAuthority","isMut":true,"isSigner":false},{"name":"custody","isMut":true,"isSigner":false},{"name":"mint","isMut":false,"isSigner":false},{"name":"custodySigner","isMut":false,"isSigner":false},{"name":"rent","isMut":true,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"completeWrapped","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"endpoint","isMut":false,"isSigner":false},{"name":"to","isMut":true,"isSigner":false},{"name":"toAuthority","isMut":true,"isSigner":false},{"name":"mint","isMut":true,"isSigner":false},{"name":"wrappedMeta","isMut":true,"isSigner":false},{"name":"mintAuthority","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"splMetadataProgram","isMut":false,"isSigner":false},{"name":"associatedTokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"completeWrappedMeta","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"endpoint","isMut":false,"isSigner":false},{"name":"mint","isMut":false,"isSigner":false},{"name":"wrappedMeta","isMut":false,"isSigner":false},{"name":"splMetadata","isMut":true,"isSigner":false},{"name":"mintAuthority","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"splMetadataProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"transferWrapped","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"from","isMut":true,"isSigner":false},{"name":"fromOwner","isMut":true,"isSigner":true},{"name":"mint","isMut":true,"isSigner":false},{"name":"wrappedMeta","isMut":false,"isSigner":false},{"name":"splMetadata","isMut":false,"isSigner":false},{"name":"authoritySigner","isMut":false,"isSigner":false},{"name":"wormholeBridge","isMut":true,"isSigner":false},{"name":"wormholeMessage","isMut":true,"isSigner":true},{"name":"wormholeEmitter","isMut":false,"isSigner":false},{"name":"wormholeSequence","isMut":true,"isSigner":false},{"name":"wormholeFeeCollector","isMut":true,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"splMetadataProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[{"name":"nonce","type":"u32"},{"name":"targetAddress","type":{"array":["u8",32]}},{"name":"targetChain","type":"u16"}]},{"name":"transferNative","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"from","isMut":true,"isSigner":false},{"name":"mint","isMut":true,"isSigner":false},{"name":"splMetadata","isMut":false,"isSigner":false},{"name":"custody","isMut":true,"isSigner":false},{"name":"authoritySigner","isMut":false,"isSigner":false},{"name":"custodySigner","isMut":false,"isSigner":false},{"name":"wormholeBridge","isMut":true,"isSigner":false},{"name":"wormholeMessage","isMut":true,"isSigner":true},{"name":"wormholeEmitter","isMut":false,"isSigner":false},{"name":"wormholeSequence","isMut":true,"isSigner":false},{"name":"wormholeFeeCollector","isMut":true,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"splMetadataProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[{"name":"nonce","type":"u32"},{"name":"targetAddress","type":{"array":["u8",32]}},{"name":"targetChain","type":"u16"}]},{"name":"registerChain","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"endpoint","isMut":true,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"upgradeContract","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"upgradeAuthority","isMut":false,"isSigner":false},{"name":"spill","isMut":true,"isSigner":false},{"name":"implementation","isMut":true,"isSigner":false},{"name":"programData","isMut":true,"isSigner":false},{"name":"nftBridgeProgram","isMut":true,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"bpfLoaderUpgradeable","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[]}],"accounts":[]}'),JF=n(62332).Buffer;function GF(e,t){return function(e,t){return new Vm.Program(VF,new xf.PublicKey(e),void 0===t?{connection:null}:t,new KF(VF))}(e,Fg(t))}JF.alloc(32,1);var WF=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),YF=uA;!function(e){WF((function(){return null!==e&&e.apply(this,arguments)||this}),e)}(dA);var XF=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},$F=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},rH=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},sH=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]",value_type:"u8",key:i})];case 3:return o.sent(),[2,!0];case 4:return o.sent(),[2,!1];case 5:return[2]}}))}))}var _H=n(62332).Buffer,kH=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},SH=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},BH=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},jH=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0;){if(18!=t.shift())throw new Error("Invalid multisig data. Expecting 0x12 prefix before participant pubkey length.");var d=h(t),l=i(d,2),y=l[0],m=l[1];if(t.splice(0,m),t.length127)throw new Error("Decoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.Varint implementation from the Go standard library and write some tests.");return[e[0],1]}function y(e){var t=s.Uint53.fromString(e.toString()).toNumber();if(t>127)throw new Error("Encoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.PutUvarint implementation from the Go standard library and write some tests.");return[t]}function m(e){if((0,u.isMultisigThresholdPubkey)(e)){var t=Array.from(p);t.push(8),t.push.apply(t,a(y(e.value.threshold)));var n,i=r(e.value.pubkeys.map((function(e){return m(e)})));try{for(i.s();!(n=i.n()).done;){var s=n.value;t.push(18),t.push.apply(t,a(y(s.length))),t.push.apply(t,a(s))}}catch(e){i.e(e)}finally{i.f()}return new Uint8Array(t)}if((0,u.isEd25519Pubkey)(e))return new Uint8Array([].concat(a(d),a((0,o.fromBase64)(e.value))));if((0,u.isSecp256k1Pubkey)(e))return new Uint8Array([].concat(a(f),a((0,o.fromBase64)(e.value))));throw new Error("Unsupported pubkey type")}t.decodeAminoPubkey=b,t.decodeBech32Pubkey=function(e){return b((0,o.fromBech32)(e).data)},t.encodeAminoPubkey=m,t.encodeBech32Pubkey=function(e,t){return(0,o.toBech32)(t,m(e))}},62573:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeKdf=t.makeStdTx=t.isStdTx=t.serializeSignDoc=t.makeSignDoc=t.encodeSecp256k1Signature=t.decodeSignature=t.Secp256k1Wallet=t.Secp256k1HdWallet=t.extractKdfConfiguration=t.pubkeyType=t.isSinglePubkey=t.isSecp256k1Pubkey=t.isMultisigThresholdPubkey=t.isEd25519Pubkey=t.makeCosmoshubPath=t.createMultisigThresholdPubkey=t.encodeSecp256k1Pubkey=t.encodeEd25519Pubkey=t.encodeBech32Pubkey=t.encodeAminoPubkey=t.decodeBech32Pubkey=t.decodeAminoPubkey=t.parseCoins=t.coins=t.coin=t.addCoins=t.rawSecp256k1PubkeyToRawAddress=t.rawEd25519PubkeyToRawAddress=t.pubkeyToRawAddress=t.pubkeyToAddress=void 0;var r=n(91428);Object.defineProperty(t,"pubkeyToAddress",{enumerable:!0,get:function(){return r.pubkeyToAddress}}),Object.defineProperty(t,"pubkeyToRawAddress",{enumerable:!0,get:function(){return r.pubkeyToRawAddress}}),Object.defineProperty(t,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return r.rawEd25519PubkeyToRawAddress}}),Object.defineProperty(t,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return r.rawSecp256k1PubkeyToRawAddress}});var a=n(26603);Object.defineProperty(t,"addCoins",{enumerable:!0,get:function(){return a.addCoins}}),Object.defineProperty(t,"coin",{enumerable:!0,get:function(){return a.coin}}),Object.defineProperty(t,"coins",{enumerable:!0,get:function(){return a.coins}}),Object.defineProperty(t,"parseCoins",{enumerable:!0,get:function(){return a.parseCoins}});var i=n(93132);Object.defineProperty(t,"decodeAminoPubkey",{enumerable:!0,get:function(){return i.decodeAminoPubkey}}),Object.defineProperty(t,"decodeBech32Pubkey",{enumerable:!0,get:function(){return i.decodeBech32Pubkey}}),Object.defineProperty(t,"encodeAminoPubkey",{enumerable:!0,get:function(){return i.encodeAminoPubkey}}),Object.defineProperty(t,"encodeBech32Pubkey",{enumerable:!0,get:function(){return i.encodeBech32Pubkey}}),Object.defineProperty(t,"encodeEd25519Pubkey",{enumerable:!0,get:function(){return i.encodeEd25519Pubkey}}),Object.defineProperty(t,"encodeSecp256k1Pubkey",{enumerable:!0,get:function(){return i.encodeSecp256k1Pubkey}});var o=n(79996);Object.defineProperty(t,"createMultisigThresholdPubkey",{enumerable:!0,get:function(){return o.createMultisigThresholdPubkey}});var s=n(4341);Object.defineProperty(t,"makeCosmoshubPath",{enumerable:!0,get:function(){return s.makeCosmoshubPath}});var c=n(26854);Object.defineProperty(t,"isEd25519Pubkey",{enumerable:!0,get:function(){return c.isEd25519Pubkey}}),Object.defineProperty(t,"isMultisigThresholdPubkey",{enumerable:!0,get:function(){return c.isMultisigThresholdPubkey}}),Object.defineProperty(t,"isSecp256k1Pubkey",{enumerable:!0,get:function(){return c.isSecp256k1Pubkey}}),Object.defineProperty(t,"isSinglePubkey",{enumerable:!0,get:function(){return c.isSinglePubkey}}),Object.defineProperty(t,"pubkeyType",{enumerable:!0,get:function(){return c.pubkeyType}});var u=n(45685);Object.defineProperty(t,"extractKdfConfiguration",{enumerable:!0,get:function(){return u.extractKdfConfiguration}}),Object.defineProperty(t,"Secp256k1HdWallet",{enumerable:!0,get:function(){return u.Secp256k1HdWallet}});var f=n(54939);Object.defineProperty(t,"Secp256k1Wallet",{enumerable:!0,get:function(){return f.Secp256k1Wallet}});var d=n(54866);Object.defineProperty(t,"decodeSignature",{enumerable:!0,get:function(){return d.decodeSignature}}),Object.defineProperty(t,"encodeSecp256k1Signature",{enumerable:!0,get:function(){return d.encodeSecp256k1Signature}});var l=n(97620);Object.defineProperty(t,"makeSignDoc",{enumerable:!0,get:function(){return l.makeSignDoc}}),Object.defineProperty(t,"serializeSignDoc",{enumerable:!0,get:function(){return l.serializeSignDoc}});var p=n(33103);Object.defineProperty(t,"isStdTx",{enumerable:!0,get:function(){return p.isStdTx}}),Object.defineProperty(t,"makeStdTx",{enumerable:!0,get:function(){return p.makeStdTx}});var b=n(94477);Object.defineProperty(t,"executeKdf",{enumerable:!0,get:function(){return b.executeKdf}})},79996:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMultisigThresholdPubkey=t.compareArrays=void 0;var r=n(73762),a=n(9851),i=n(91428);function o(e,t){var n=(0,r.toHex)(e),a=(0,r.toHex)(t);return n===a?0:n2&&void 0!==arguments[2]&&arguments[2],r=new a.Uint53(t);if(r.toNumber()>e.length)throw new Error("Threshold k = ".concat(r.toNumber()," exceeds number of keys n = ").concat(e.length));var s=n?e:Array.from(e).sort((function(e,t){return o((0,i.pubkeyToRawAddress)(e),(0,i.pubkeyToRawAddress)(t))}));return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:r.toString(),pubkeys:s}}}},4341:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeCosmoshubPath=void 0;var r=n(2419);t.makeCosmoshubPath=function(e){return[r.Slip10RawIndex.hardened(44),r.Slip10RawIndex.hardened(118),r.Slip10RawIndex.hardened(0),r.Slip10RawIndex.normal(0),r.Slip10RawIndex.normal(e)]}},26854:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMultisigThresholdPubkey=t.isSinglePubkey=t.pubkeyType=t.isSecp256k1Pubkey=t.isEd25519Pubkey=void 0,t.isEd25519Pubkey=function(e){return"tendermint/PubKeyEd25519"===e.type},t.isSecp256k1Pubkey=function(e){return"tendermint/PubKeySecp256k1"===e.type},t.pubkeyType={secp256k1:"tendermint/PubKeySecp256k1",ed25519:"tendermint/PubKeyEd25519",sr25519:"tendermint/PubKeySr25519",multisigThreshold:"tendermint/PubKeyMultisigThreshold"},t.isSinglePubkey=function(e){return[t.pubkeyType.ed25519,t.pubkeyType.secp256k1,t.pubkeyType.sr25519].includes(e.type)},t.isMultisigThresholdPubkey=function(e){return"tendermint/PubKeyMultisigThreshold"===e.type}},45685:function(e,t,n){"use strict";var r=n(62503).default,a=n(48648).default,i=n(63333).default,o=n(37240).default,s=n(63298).default,c=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1HdWallet=t.extractKdfConfiguration=void 0;var u=n(2419),f=n(73762),d=n(55736),l=n(91428),p=n(4341),b=n(54866),h=n(97620),y=n(94477),m="secp256k1wallet-v1",v={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12288}};t.extractKdfConfiguration=function(e){var t=JSON.parse(e);if(!(0,d.isNonNullObject)(t))throw new Error("Root document is not an object.");if(t.type===m)return t.kdf;throw new Error("Unsupported serialization type")};var g={bip39Password:"",hdPaths:[(0,p.makeCosmoshubPath)(0)],prefix:"cosmos"},A=function(){function e(t,n){var r,a;s(this,e);var i=null!==(r=n.hdPaths)&&void 0!==r?r:g.hdPaths,o=null!==(a=n.prefix)&&void 0!==a?a:g.prefix;this.secret=t,this.seed=n.seed,this.accounts=i.map((function(e){return{hdPath:e,prefix:o}}))}var t,n,p,A,w,x,_,k,S,I,E;return c(e,[{key:"mnemonic",get:function(){return this.secret.toString()}},{key:"getAccounts",value:(E=o(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountsWithPrivkeys();case 2:return t=e.sent,e.abrupt("return",t.map((function(e){return{algo:e.algo,pubkey:e.pubkey,address:e.address}})));case 4:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{key:"signAmino",value:(I=o(i().mark((function e(t,n){var r,o,s,c,f,d,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountsWithPrivkeys();case 2:if(r=e.sent,void 0!==(o=r.find((function(e){return e.address===t})))){e.next=6;break}throw new Error("Address ".concat(t," not found in wallet"));case 6:return s=o.privkey,c=o.pubkey,f=(0,u.sha256)((0,h.serializeSignDoc)(n)),e.next=10,u.Secp256k1.createSignature(f,s);case 10:return d=e.sent,l=new Uint8Array([].concat(a(d.r(32)),a(d.s(32)))),e.abrupt("return",{signed:n,signature:(0,b.encodeSecp256k1Signature)(c,l)});case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return I.apply(this,arguments)})},{key:"serialize",value:(S=o(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=v,e.next=3,(0,y.executeKdf)(t,n);case 3:return r=e.sent,e.abrupt("return",this.serializeWithEncryptionKey(r,n));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"serializeWithEncryptionKey",value:(k=o(i().mark((function e(t,n){var r,a,o,s,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={mnemonic:this.mnemonic,accounts:this.accounts.map((function(e){var t=e.hdPath,n=e.prefix;return{hdPath:(0,u.pathToString)(t),prefix:n}}))},a=(0,f.toUtf8)(JSON.stringify(r)),o={algorithm:y.supportedAlgorithms.xchacha20poly1305Ietf},e.next=5,(0,y.encrypt)(a,t,o);case 5:return s=e.sent,c={type:m,kdf:n,encryption:o,data:(0,f.toBase64)(s)},e.abrupt("return",JSON.stringify(c));case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return k.apply(this,arguments)})},{key:"getKeyPair",value:(_=o(i().mark((function e(t){var n,r,a,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.Slip10.derivePath(u.Slip10Curve.Secp256k1,this.seed,t),r=n.privkey,e.next=3,u.Secp256k1.makeKeypair(r);case 3:return a=e.sent,o=a.pubkey,e.abrupt("return",{privkey:r,pubkey:u.Secp256k1.compressPubkey(o)});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"getAccountsWithPrivkeys",value:(x=o(i().mark((function e(){var t=this;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(this.accounts.map(function(){var e=o(i().mark((function e(n){var r,a,o,s,c,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.hdPath,a=n.prefix,e.next=3,t.getKeyPair(r);case 3:return o=e.sent,s=o.privkey,c=o.pubkey,u=(0,f.toBech32)(a,(0,l.rawSecp256k1PubkeyToRawAddress)(c)),e.abrupt("return",{algo:"secp256k1",privkey:s,pubkey:c,address:u});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)})}],[{key:"fromMnemonic",value:(w=o(i().mark((function t(n){var a,o,s,c=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>1&&void 0!==c[1]?c[1]:{},o=new u.EnglishMnemonic(n),t.next=4,u.Bip39.mnemonicToSeed(o,a.bip39Password);case 4:return s=t.sent,t.abrupt("return",new e(o,r(r({},a),{},{seed:s})));case 6:case"end":return t.stop()}}),t)}))),function(e){return w.apply(this,arguments)})},{key:"generate",value:(A=o(i().mark((function t(){var n,r,a,o,s,c=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:12,r=c.length>1&&void 0!==c[1]?c[1]:{},a=4*Math.floor(11*n/33),o=u.Random.getBytes(a),s=u.Bip39.encode(o),t.abrupt("return",e.fromMnemonic(s.toString(),r));case 6:case"end":return t.stop()}}),t)}))),function(){return A.apply(this,arguments)})},{key:"deserialize",value:(p=o(i().mark((function t(n,r){var a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=JSON.parse(n),(0,d.isNonNullObject)(a)){t.next=3;break}throw new Error("Root document is not an object.");case 3:t.t0=a.type,t.next=t.t0===m?6:7;break;case 6:return t.abrupt("return",e.deserializeTypeV1(n,r));case 7:throw new Error("Unsupported serialization type");case 8:case"end":return t.stop()}}),t)}))),function(e,t){return p.apply(this,arguments)})},{key:"deserializeWithEncryptionKey",value:(n=o(i().mark((function t(n,r){var a,o,s,c,l,p,b,h;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=JSON.parse(n),(0,d.isNonNullObject)(a)){t.next=3;break}throw new Error("Root document is not an object.");case 3:o=a,t.t0=o.type,t.next=t.t0===m?7:22;break;case 7:return t.next=9,(0,y.decrypt)((0,f.fromBase64)(o.data),r,o.encryption);case 9:if(s=t.sent,c=JSON.parse((0,f.fromUtf8)(s)),l=c.mnemonic,p=c.accounts,(0,d.assert)("string"==typeof l),Array.isArray(p)){t.next=15;break}throw new Error("Property 'accounts' is not an array");case 15:if(p.every((function(e){return t=e,!!(0,d.isNonNullObject)(t)&&"string"==typeof t.hdPath&&"string"==typeof t.prefix;var t}))){t.next=17;break}throw new Error("Account is not in the correct format.");case 17:if(b=p[0].prefix,p.every((function(e){return e.prefix===b}))){t.next=20;break}throw new Error("Accounts do not all have the same prefix");case 20:return h=p.map((function(e){var t=e.hdPath;return(0,u.stringToPath)(t)})),t.abrupt("return",e.fromMnemonic(l,{hdPaths:h,prefix:b}));case 22:throw new Error("Unsupported serialization type");case 23:case"end":return t.stop()}}),t)}))),function(e,t){return n.apply(this,arguments)})},{key:"deserializeTypeV1",value:(t=o(i().mark((function t(n,r){var a,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=JSON.parse(n),(0,d.isNonNullObject)(a)){t.next=3;break}throw new Error("Root document is not an object.");case 3:return t.next=5,(0,y.executeKdf)(r,a.kdf);case 5:return o=t.sent,t.abrupt("return",e.deserializeWithEncryptionKey(n,o));case 7:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();t.Secp256k1HdWallet=A},54939:function(e,t,n){"use strict";var r=n(48648).default,a=n(63333).default,i=n(37240).default,o=n(63298).default,s=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1Wallet=void 0;var c=n(2419),u=n(73762),f=n(91428),d=n(54866),l=n(97620),p=function(){function e(t,n,r){o(this,e),this.privkey=t,this.pubkey=n,this.prefix=r}var t,n,p;return s(e,[{key:"address",get:function(){return(0,u.toBech32)(this.prefix,(0,f.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}},{key:"getAccounts",value:(p=i(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]);case 1:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"signAmino",value:(n=i(a().mark((function e(t,n){var i,o,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t===this.address){e.next=2;break}throw new Error("Address ".concat(t," not found in wallet"));case 2:return i=new c.Sha256((0,l.serializeSignDoc)(n)).digest(),e.next=5,c.Secp256k1.createSignature(i,this.privkey);case 5:return o=e.sent,s=new Uint8Array([].concat(r(o.r(32)),r(o.s(32)))),e.abrupt("return",{signed:n,signature:(0,d.encodeSecp256k1Signature)(this.pubkey,s)});case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})}],[{key:"fromKey",value:(t=i(a().mark((function t(n){var r,i,o=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:"cosmos",t.next=3,c.Secp256k1.makeKeypair(n);case 3:return i=t.sent.pubkey,t.abrupt("return",new e(n,c.Secp256k1.compressPubkey(i),r));case 5:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}]),e}();t.Secp256k1Wallet=p},54866:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSignature=t.encodeSecp256k1Signature=void 0;var r=n(73762),a=n(93132),i=n(26854);t.encodeSecp256k1Signature=function(e,t){if(64!==t.length)throw new Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.");return{pub_key:(0,a.encodeSecp256k1Pubkey)(e),signature:(0,r.toBase64)(t)}},t.decodeSignature=function(e){if(e.pub_key.type===i.pubkeyType.secp256k1)return{pubkey:(0,r.fromBase64)(e.pub_key.value),signature:(0,r.fromBase64)(e.signature)};throw new Error("Unsupported pubkey type")}},97620:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeSignDoc=t.escapeCharacters=t.makeSignDoc=t.sortedJsonStringify=void 0;var r=n(73762),a=n(9851);function i(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return e.map(i);var t=Object.keys(e).sort(),n={};return t.forEach((function(t){n[t]=i(e[t])})),n}function o(e){return JSON.stringify(i(e))}function s(e){return e.replace(/&/g,"\\u0026").replace(//g,"\\u003e")}t.sortedJsonStringify=o,t.makeSignDoc=function(e,t,n,r,i,o){return{chain_id:n,account_number:a.Uint53.fromString(i.toString()).toString(),sequence:a.Uint53.fromString(o.toString()).toString(),fee:t,msgs:e,memo:r||""}},t.escapeCharacters=s,t.serializeSignDoc=function(e){var t=s(o(e));return(0,r.toUtf8)(t)}},33103:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeStdTx=t.isStdTx=void 0,t.isStdTx=function(e){var t=e.memo,n=e.msg,r=e.fee,a=e.signatures;return"string"==typeof t&&Array.isArray(n)&&"object"==typeof r&&Array.isArray(a)},t.makeStdTx=function(e,t){return{msg:e.msgs,fee:e.fee,memo:e.memo,signatures:Array.isArray(t)?t:[t]}}},94477:function(e,t,n){"use strict";var r=n(48648).default,a=n(63333).default,i=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=t.supportedAlgorithms=t.executeKdf=t.cosmjsSalt=void 0;var o=n(2419),s=n(73762);function c(){return(c=i(a().mark((function e(n,r){var i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=r.algorithm,e.next="argon2id"===e.t0?3:7;break;case 3:if(i=r.params,(0,o.isArgon2idOptions)(i)){e.next=6;break}throw new Error("Invalid format of argon2id params");case 6:return e.abrupt("return",o.Argon2id.execute(n,t.cosmjsSalt,i));case 7:throw new Error("Unsupported KDF algorithm");case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(){return(u=i(a().mark((function e(n,i,s){var c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=s.algorithm,e.next=e.t0===t.supportedAlgorithms.xchacha20poly1305Ietf?3:14;break;case 3:return c=o.Random.getBytes(o.xchacha20NonceLength),e.t1=Uint8Array,e.t2=[],e.t3=r(c),e.t4=r,e.next=10,o.Xchacha20poly1305Ietf.encrypt(n,i,c);case 10:return e.t5=e.sent,e.t6=(0,e.t4)(e.t5),e.t7=e.t2.concat.call(e.t2,e.t3,e.t6),e.abrupt("return",new e.t1(e.t7));case 14:throw new Error("Unsupported encryption algorithm: '".concat(s.algorithm,"'"));case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(){return(f=i(a().mark((function e(n,r,i){var s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=i.algorithm,e.next=e.t0===t.supportedAlgorithms.xchacha20poly1305Ietf?3:5;break;case 3:return s=n.slice(0,o.xchacha20NonceLength),e.abrupt("return",o.Xchacha20poly1305Ietf.decrypt(n.slice(o.xchacha20NonceLength),r,s));case 5:throw new Error("Unsupported encryption algorithm: '".concat(i.algorithm,"'"));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.cosmjsSalt=(0,s.toAscii)("The CosmJS salt."),t.executeKdf=function(e,t){return c.apply(this,arguments)},t.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"},t.encrypt=function(e,t,n){return u.apply(this,arguments)},t.decrypt=function(e,t,n){return f.apply(this,arguments)}},84406:function(e,t,n){"use strict";var r=n(63333).default,a=n(37240).default,i=n(21146).default,o=n(63298).default,s=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Bip39=t.EnglishMnemonic=t.mnemonicToEntropy=t.entropyToMnemonic=void 0;var c=n(73762),u=n(63454),f=n(59433),d=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];function l(e){return Array.from(e).map((function(e){return e.toString(2).padStart(8,"0")})).join("")}function p(e){var t=8*e.length/32;return l((0,f.sha256)(e)).slice(0,t)}function b(e){return parseInt(e,2)}var h=[16,20,24,28,32],y=[12,15,18,21,24];function m(e){if(-1===h.indexOf(e.length))throw new Error("invalid input length");return(l(e)+p(e)).match(/(.{11})/g).map((function(e){var t=b(e);return d[t]})).join(" ")}function v(e){return e.normalize("NFKD")}function g(e){var t=v(e).split(" ");if(!y.includes(t.length))throw new Error("Invalid number of words");var n=t.map((function(e){var t=d.indexOf(e);if(-1===t)throw new Error("Found word that is not in the wordlist");return t.toString(2).padStart(11,"0")})).join(""),r=32*Math.floor(n.length/33),a=n.slice(0,r),i=n.slice(r),o=a.match(/(.{1,8})/g).map(b);if(o.length<16||o.length>32||o.length%4!=0)throw new Error("Invalid entropy");var s=Uint8Array.from(o);if(p(s)!==i)throw new Error("Invalid mnemonic checksum");return s}t.entropyToMnemonic=m,t.mnemonicToEntropy=g;var A=function(){function e(t){if(o(this,e),!e.mnemonicMatcher.test(t))throw new Error("Invalid mnemonic format");var n=t.split(" "),r=[12,15,18,21,24];if(-1===r.indexOf(n.length))throw new Error("Invalid word count in mnemonic (allowed: ".concat(r," got: ").concat(n.length,")"));var a,s=i(n);try{for(s.s();!(a=s.n()).done;){var c=a.value;if(-1===e.wordlist.indexOf(c))throw new Error("Mnemonic contains invalid word")}}catch(e){s.e(e)}finally{s.f()}g(t),this.data=t}return s(e,[{key:"toString",value:function(){return this.data}}]),e}();t.EnglishMnemonic=A,A.wordlist=d,A.mnemonicMatcher=/^[a-z]+( [a-z]+)*$/;var w=function(){function e(){o(this,e)}var t;return s(e,null,[{key:"encode",value:function(e){return new A(m(e))}},{key:"decode",value:function(e){return g(e.toString())}},{key:"mnemonicToSeed",value:(t=a(r().mark((function e(t,n){var a,i,o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(0,c.toUtf8)(v(t.toString())),i="mnemonic"+(n?v(n):""),o=(0,c.toUtf8)(i),e.abrupt("return",(0,u.pbkdf2Sha512)(a,o,2048,64));case 4:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})}]),e}();t.Bip39=w},71239:function(e,t,n){"use strict";var r=n(48648).default,a=n(63298).default,i=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Hmac=void 0;var o=function(){function e(t,n){a(this,e);var i=(new t).blockSize;this.hash=function(e){return(new t).update(e).digest()};var o=n;if(o.length>i&&(o=this.hash(o)),o.length32)){e.next=4;break}throw new Error("Message hash length must not exceed 32 bytes");case 4:if(a=l.keyFromPrivate(n),i=a.sign(t,{canonical:!0}),o=i.r,s=i.s,"number"==typeof(c=i.recoveryParam)){e.next=8;break}throw new Error("Recovery param missing");case 8:return e.abrupt("return",new d.ExtendedSecp256k1Signature(Uint8Array.from(o.toArray()),Uint8Array.from(s.toArray()),c));case 9:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})},{key:"verifySignature",value:(t=a(r().mark((function e(t,n,a){var i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==n.length){e.next=2;break}throw new Error("Message hash must not be empty");case 2:if(!(n.length>32)){e.next=4;break}throw new Error("Message hash length must not exceed 32 bytes");case 4:return i=l.keyFromPublic(a),e.prev=5,e.abrupt("return",i.verify(n,t.toDer()));case 9:return e.prev=9,e.t0=e.catch(5),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e,null,[[5,9]])}))),function(e,n,r){return t.apply(this,arguments)})},{key:"recoverPubkey",value:function(e,t){var n={r:(0,c.toHex)(e.r()),s:(0,c.toHex)(e.s())},r=l.recoverPubKey(t,n,e.recovery),a=l.keyFromPublic(r);return(0,c.fromHex)(a.getPublic(!1,"hex"))}},{key:"compressPubkey",value:function(e){switch(e.length){case 33:return e;case 65:return Uint8Array.from(l.keyFromPublic(e).getPublic(!0,"array"));default:throw new Error("Invalid pubkey length")}}},{key:"uncompressPubkey",value:function(e){switch(e.length){case 33:return Uint8Array.from(l.keyFromPublic(e).getPublic(!1,"array"));case 65:return e;default:throw new Error("Invalid pubkey length")}}},{key:"trimRecoveryByte",value:function(e){switch(e.length){case 64:return e;case 65:return e.slice(0,64);default:throw new Error("Invalid signature length")}}}]),e}();t.Secp256k1=b},10796:function(e,t,n){"use strict";var r=n(17964).default,a=n(54790).default,i=n(48648).default,o=n(63298).default,s=n(51795).default,c=n(21146).default;function u(e){var t,n=0,r=c(e);try{for(r.s();!(t=r.n()).done&&0===t.value;)n++}catch(e){r.e(e)}finally{r.f()}return e.slice(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedSecp256k1Signature=t.Secp256k1Signature=void 0;var f=2,d=function(){function e(t,n){if(o(this,e),t.length>32||0===t.length||0===t[0])throw new Error("Unsigned integer r must be encoded as unpadded big endian.");if(n.length>32||0===n.length||0===n[0])throw new Error("Unsigned integer s must be encoded as unpadded big endian.");this.data={r:t,s:n}}return s(e,[{key:"r",value:function(e){if(void 0===e)return this.data.r;var t=e-this.data.r.length;if(t<0)throw new Error("Length too small to hold parameter r");var n=new Uint8Array(t);return new Uint8Array([].concat(i(n),i(this.data.r)))}},{key:"s",value:function(e){if(void 0===e)return this.data.s;var t=e-this.data.s.length;if(t<0)throw new Error("Length too small to hold parameter s");var n=new Uint8Array(t);return new Uint8Array([].concat(i(n),i(this.data.s)))}},{key:"toFixedLength",value:function(){return new Uint8Array([].concat(i(this.r(32)),i(this.s(32))))}},{key:"toDer",value:function(){var e=this.data.r[0]>=128?new Uint8Array([0].concat(i(this.data.r))):this.data.r,t=this.data.s[0]>=128?new Uint8Array([0].concat(i(this.data.s))):this.data.s,n=e.length,r=t.length,a=new Uint8Array([f,n].concat(i(e),[f,r],i(t)));return new Uint8Array([48,a.length].concat(i(a)))}}],[{key:"fromFixedLength",value:function(t){if(64!==t.length)throw new Error("Got invalid data length: ".concat(t.length,". Expected 2x 32 bytes for the pair (r, s)"));return new e(u(t.slice(0,32)),u(t.slice(32,64)))}},{key:"fromDer",value:function(t){var n=0;if(48!==t[n++])throw new Error("Prefix 0x30 expected");var r=t[n++];if(t.length-n!==r)throw new Error("Data length mismatch detected");if(t[n++]!==f)throw new Error("INTEGER tag expected");var a=t[n++];if(a>=128)throw new Error("Decoding length values above 127 not supported");var i=t.slice(n,n+a);if(n+=a,t[n++]!==f)throw new Error("INTEGER tag expected");var o=t[n++];if(o>=128)throw new Error("Decoding length values above 127 not supported");var s=t.slice(n,n+o);return n+=o,new e(u(i),u(s))}}]),e}();t.Secp256k1Signature=d;var l=function(e){r(n,e);var t=a(n);function n(e,r,a){var i;if(o(this,n),i=t.call(this,e,r),!Number.isInteger(a))throw new Error("The recovery parameter must be an integer.");if(a<0||a>4)throw new Error("The recovery parameter must be one of 0, 1, 2, 3.");return i.recovery=a,i}return s(n,[{key:"toFixedLength",value:function(){return new Uint8Array([].concat(i(this.r(32)),i(this.s(32)),[this.recovery]))}}],[{key:"fromFixedLength",value:function(e){if(65!==e.length)throw new Error("Got invalid data length ".concat(e.length,". Expected 32 + 32 + 1"));return new n(u(e.slice(0,32)),u(e.slice(32,64)),e[64])}}]),n}(d);t.ExtendedSecp256k1Signature=l},59433:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.Sha512=t.sha256=t.Sha256=void 0;var i=n(81848),o=n(34306),s=n(1906),c=function(){function e(t){r(this,e),this.blockSize=64,this.impl=i.sha256.create(),t&&this.update(t)}return a(e,[{key:"update",value:function(e){return this.impl.update((0,s.toRealUint8Array)(e)),this}},{key:"digest",value:function(){return this.impl.digest()}}]),e}();t.Sha256=c,t.sha256=function(e){return new c(e).digest()};var u=function(){function e(t){r(this,e),this.blockSize=128,this.impl=o.sha512.create(),t&&this.update(t)}return a(e,[{key:"update",value:function(e){return this.impl.update((0,s.toRealUint8Array)(e)),this}},{key:"digest",value:function(){return this.impl.digest()}}]),e}();t.Sha512=u,t.sha512=function(e){return new u(e).digest()}},4192:function(e,t,n){"use strict";var r=n(10202).default,a=n(48648).default,i=n(21146).default,o=n(63298).default,s=n(51795).default,c=n(17964).default,u=n(54790).default,f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.stringToPath=t.pathToString=t.Slip10=t.Slip10RawIndex=t.slip10CurveFromString=t.Slip10Curve=void 0;var d,l=n(73762),p=n(9851),b=f(n(7134)),h=f(n(35730)),y=n(71239),m=n(59433);!function(e){e.Secp256k1="Bitcoin seed",e.Ed25519="ed25519 seed"}(d=t.Slip10Curve||(t.Slip10Curve={})),t.slip10CurveFromString=function(e){switch(e){case d.Ed25519:return d.Ed25519;case d.Secp256k1:return d.Secp256k1;default:throw new Error("Unknown curve string: '".concat(e,"'"))}};var v=function(e){c(n,e);var t=u(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"isHardened",value:function(){return this.data>=Math.pow(2,31)}}],[{key:"hardened",value:function(e){return new n(e+Math.pow(2,31))}},{key:"normal",value:function(e){return new n(e)}}]),n}(p.Uint32);t.Slip10RawIndex=v;var g=new h.default.ec("secp256k1"),A=function(){function e(){o(this,e)}return s(e,null,[{key:"derivePath",value:function(e,t,n){var r,a=this.master(e,t),o=i(n);try{for(o.s();!(r=o.n()).done;){var s=r.value;a=this.child(e,a.privkey,a.chainCode,s)}}catch(e){o.e(e)}finally{o.f()}return a}},{key:"master",value:function(e,t){var n=new y.Hmac(m.Sha512,(0,l.toAscii)(e)).update(t).digest(),r=n.slice(0,32),a=n.slice(32,64);return e!==d.Ed25519&&(this.isZero(r)||this.isGteN(e,r))?this.master(e,n):{chainCode:a,privkey:r}}},{key:"child",value:function(t,n,r,i){var o;if(i.isHardened()){var s=new Uint8Array([0].concat(a(n),a(i.toBytesBigEndian())));o=new y.Hmac(m.Sha512,r).update(s).digest()}else{if(t===d.Ed25519)throw new Error("Normal keys are not allowed with ed25519");var c=new Uint8Array([].concat(a(e.serializedPoint(t,new b.default(n))),a(i.toBytesBigEndian())));o=new y.Hmac(m.Sha512,r).update(c).digest()}return this.childImpl(t,n,r,i,o)}},{key:"serializedPoint",value:function(e,t){if(e===d.Secp256k1)return(0,l.fromHex)(g.g.mul(t).encodeCompressed("hex"));throw new Error("curve not supported")}},{key:"childImpl",value:function(e,t,n,r,i){var o=i.slice(0,32),s=i.slice(32,64),c=s;if(e===d.Ed25519)return{chainCode:c,privkey:o};var u=this.n(e),f=new b.default(o).add(new b.default(t)).mod(u),l=Uint8Array.from(f.toArray("be",32));if(this.isGteN(e,o)||this.isZero(l)){var p=new y.Hmac(m.Sha512,n).update(new Uint8Array([1].concat(a(s),a(r.toBytesBigEndian())))).digest();return this.childImpl(e,t,n,r,p)}return{chainCode:c,privkey:l}}},{key:"isZero",value:function(e){return e.every((function(e){return 0===e}))}},{key:"isGteN",value:function(e,t){return new b.default(t).gte(this.n(e))}},{key:"n",value:function(e){if(e===d.Secp256k1)return new b.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",16);throw new Error("curve not supported")}}]),e}();t.Slip10=A,t.pathToString=function(e){return e.reduce((function(e,t){return e+"/"+(t.isHardened()?"".concat(t.toNumber()-Math.pow(2,31),"'"):t.toString())}),"m")},t.stringToPath=function(e){if(!e.startsWith("m"))throw new Error("Path string must start with 'm'");for(var t=e.slice(1),n=new Array;t;){var a=t.match(/^\/([0-9]+)('?)/);if(!a)throw new Error("Syntax error while reading path component");var i=r(a,3),o=i[0],s=i[1],c=i[2],u=p.Uint53.fromString(s).toNumber();if(u>=Math.pow(2,31))throw new Error("Component value too high. Must not exceed 2**31-1.");c?n.push(v.hardened(u)):n.push(v.normal(u)),t=t.slice(o.length)}return n}},1906:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRealUint8Array=void 0,t.toRealUint8Array=function(e){return e instanceof Uint8Array?e:Uint8Array.from(e)}},40445:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromAscii=t.toAscii=void 0,t.toAscii=function(e){return Uint8Array.from(e.split("").map((function(e){var t=e.charCodeAt(0);if(t<32||t>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+t);return t})))},t.fromAscii=function(e){var t;return(t=Array.from(e),t.map((function(e){if(e<32||e>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+e);return String.fromCharCode(e)}))).join("")}},67368:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.fromBase64=t.toBase64=void 0;var o=i(n(44473));t.toBase64=function(e){return o.fromByteArray(e)},t.fromBase64=function(e){if(!e.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return o.toByteArray(e)}},12809:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeBech32=t.fromBech32=t.toBech32=void 0;var o=i(n(57026));function s(e,t,n){return o.encode(e,o.toWords(t),n)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=o.decode(e,t);return{prefix:n.prefix,data:new Uint8Array(o.fromWords(n.words))}}t.toBech32=s,t.fromBech32=c,t.normalizeBech32=function(e){var t=c(e);return s(t.prefix,t.data)}},65924:function(e,t,n){"use strict";var r=n(21146).default;Object.defineProperty(t,"__esModule",{value:!0}),t.fromHex=t.toHex=void 0,t.toHex=function(e){var t,n="",a=r(e);try{for(a.s();!(t=a.n()).done;)n+=("0"+t.value.toString(16)).slice(-2)}catch(e){a.e(e)}finally{a.f()}return n},t.fromHex=function(e){if(e.length%2!=0)throw new Error("hex string length must be a multiple of 2");for(var t=new Uint8Array(e.length/2),n=0;n1&&void 0!==arguments[1]?arguments[1]:2;return e.toString().padStart(t,"0")}t.fromRfc3339=function(e){var t=n.exec(e);if(!t)throw new Error("Date string is not in RFC3339 format");var r,a,i,o=+t[1],s=+t[2],c=+t[3],u=+t[4],f=+t[5],d=+t[6],l=t[7]?Math.floor(1e3*+t[7]):0;"Z"===t[8]?(r=1,a=0,i=0):(r="-"===t[8].substring(0,1)?-1:1,a=+t[8].substring(1,3),i=+t[8].substring(4,6));var p=r*(60*a+i)*60,b=Date.UTC(o,s-1,c,u,f,d,l)-1e3*p;return new Date(b)},t.toRfc3339=function(e){var t=e.getUTCFullYear(),n=r(e.getUTCMonth()+1),a=r(e.getUTCDate()),i=r(e.getUTCHours()),o=r(e.getUTCMinutes()),s=r(e.getUTCSeconds()),c=r(e.getUTCMilliseconds(),3);return"".concat(t,"-").concat(n,"-").concat(a,"T").concat(i,":").concat(o,":").concat(s,".").concat(c,"Z")}},82610:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromUtf8=t.toUtf8=void 0,t.toUtf8=function(e){return(new TextEncoder).encode(e)},t.fromUtf8=function(e){return new TextDecoder("utf-8",{fatal:!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])}).decode(e)}},57026:function(e){"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n={},r=0;r>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,n=0;n126)return"Invalid prefix ("+e+")";t=i(t)^r>>5}for(t=i(t),n=0;nt)return"Exceeds length limit";var r=e.toLowerCase(),a=e.toUpperCase();if(e!==r&&e!==a)return"Mixed-case string "+e;var s=(e=r).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var c=e.slice(0,s),u=e.slice(s+1);if(u.length<6)return"Data too short";var f=o(c);if("string"==typeof f)return f;for(var d=[],l=0;l=u.length||d.push(b)}return 1!==f?"Invalid checksum for "+e:{prefix:c,words:d}}function c(e,t,n,r){for(var a=0,i=0,o=(1<=n;)i-=n,s.push(a>>i&o);if(r)i>0&&s.push(a<=t)return"Excess padding";if(a<r)throw new TypeError("Exceeds length limit");var a=o(e=e.toLowerCase());if("string"==typeof a)throw new Error(a);for(var s=e+"1",c=0;c>5!=0)throw new Error("Non 5-bit word");a=i(a)^u,s+=t.charAt(u)}for(c=0;c<6;++c)a=i(a);for(a^=1,c=0;c<6;++c)s+=t.charAt(a>>5*(5-c)&31);return s},toWordsUnsafe:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},68746:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Decimal=void 0;var o=i(n(7134)),s=function(){function e(t,n){if(r(this,e),!t.match(/^[0-9]+$/))throw new Error("Invalid string format. Only non-negative integers in decimal representation supported.");this.data={atomics:new o.default(t),fractionalDigits:n}}return a(e,[{key:"atomics",get:function(){return this.data.atomics.toString()}},{key:"fractionalDigits",get:function(){return this.data.fractionalDigits}},{key:"clone",value:function(){return new e(this.atomics,this.fractionalDigits)}},{key:"floor",value:function(){var t=new o.default(10).pow(new o.default(this.data.fractionalDigits)),n=this.data.atomics.div(t);return this.data.atomics.mod(t).isZero()?this.clone():e.fromAtomics(n.mul(t).toString(),this.fractionalDigits)}},{key:"ceil",value:function(){var t=new o.default(10).pow(new o.default(this.data.fractionalDigits)),n=this.data.atomics.div(t);return this.data.atomics.mod(t).isZero()?this.clone():e.fromAtomics(n.addn(1).mul(t).toString(),this.fractionalDigits)}},{key:"toString",value:function(){var e=new o.default(10).pow(new o.default(this.data.fractionalDigits)),t=this.data.atomics.div(e),n=this.data.atomics.mod(e);if(n.isZero())return t.toString();var r=n.toString().padStart(this.data.fractionalDigits,"0").replace(/0+$/,"");return"".concat(t.toString(),".").concat(r)}},{key:"toFloatApproximation",value:function(){var e=Number(this.toString());if(Number.isNaN(e))throw new Error("Conversion to number failed");return e}},{key:"plus",value:function(t){if(this.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");return new e(this.data.atomics.add(new o.default(t.atomics)).toString(),this.fractionalDigits)}},{key:"minus",value:function(t){if(this.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");var n=this.data.atomics.sub(new o.default(t.atomics));if(n.ltn(0))throw new Error("Difference must not be negative");return new e(n.toString(),this.fractionalDigits)}},{key:"multiply",value:function(t){return new e(this.data.atomics.mul(new o.default(t.toString())).toString(),this.fractionalDigits)}},{key:"equals",value:function(t){return 0===e.compare(this,t)}},{key:"isLessThan",value:function(t){return e.compare(this,t)<0}},{key:"isLessThanOrEqual",value:function(t){return e.compare(this,t)<=0}},{key:"isGreaterThan",value:function(t){return e.compare(this,t)>0}},{key:"isGreaterThanOrEqual",value:function(t){return e.compare(this,t)>=0}}],[{key:"fromUserInput",value:function(t,n){e.verifyFractionalDigits(n);var r,a,i=t.match(/[^0-9.]/);if(i)throw new Error("Invalid character at position ".concat(i.index+1));if(""===t)r="0",a="";else if(-1===t.search(/\./))r=t,a="";else{var o=t.split(".");switch(o.length){case 0:case 1:throw new Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!o[1])throw new Error("Fractional part missing");r=o[0],a=o[1].replace(/0+$/,"");break;default:throw new Error("More than one separator found")}}if(a.length>n)throw new Error("Got more fractional digits than supported");return new e("".concat(r).concat(a.padEnd(n,"0")),n)}},{key:"fromAtomics",value:function(t,n){return e.verifyFractionalDigits(n),new e(t,n)}},{key:"zero",value:function(t){return e.verifyFractionalDigits(t),new e("0",t)}},{key:"one",value:function(t){return e.verifyFractionalDigits(t),new e("1"+"0".repeat(t),t)}},{key:"verifyFractionalDigits",value:function(e){if(!Number.isInteger(e))throw new Error("Fractional digits is not an integer");if(e<0)throw new Error("Fractional digits must not be negative");if(e>100)throw new Error("Fractional digits must not exceed ".concat(100))}},{key:"compare",value:function(e,t){if(e.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");return e.data.atomics.cmp(new o.default(t.atomics))}}]),e}();t.Decimal=s},9851:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Uint64=t.Uint53=t.Uint32=t.Int53=t.Decimal=void 0;var r=n(68746);Object.defineProperty(t,"Decimal",{enumerable:!0,get:function(){return r.Decimal}});var a=n(28905);Object.defineProperty(t,"Int53",{enumerable:!0,get:function(){return a.Int53}}),Object.defineProperty(t,"Uint32",{enumerable:!0,get:function(){return a.Uint32}}),Object.defineProperty(t,"Uint53",{enumerable:!0,get:function(){return a.Uint53}}),Object.defineProperty(t,"Uint64",{enumerable:!0,get:function(){return a.Uint64}})},28905:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Uint64=t.Uint53=t.Int53=t.Uint32=void 0;var o=i(n(7134)),s=new o.default("18446744073709551615",10,"be"),c=function(){function e(t){if(r(this,e),Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");if(t<0||t>4294967295)throw new Error("Input not in uint32 range: "+t.toString());this.data=t}return a(e,[{key:"toBytesBigEndian",value:function(){return new Uint8Array([255&Math.floor(this.data/Math.pow(2,24)),255&Math.floor(this.data/Math.pow(2,16)),255&Math.floor(this.data/Math.pow(2,8)),255&Math.floor(this.data/Math.pow(2,0))])}},{key:"toBytesLittleEndian",value:function(){return new Uint8Array([255&Math.floor(this.data/Math.pow(2,0)),255&Math.floor(this.data/Math.pow(2,8)),255&Math.floor(this.data/Math.pow(2,16)),255&Math.floor(this.data/Math.pow(2,24))])}},{key:"toNumber",value:function(){return this.data}},{key:"toBigInt",value:function(){return BigInt(this.toNumber())}},{key:"toString",value:function(){return this.data.toString()}}],[{key:"fromBigEndianBytes",value:function(t){return e.fromBytes(t)}},{key:"fromBytes",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(4!==t.length)throw new Error("Invalid input length. Expected 4 bytes.");for(var r=0;r255||t[r]<0)throw new Error("Invalid value in byte. Found: "+t[r]);var a="be"===n?t:Array.from(t).reverse();return new e(a[0]*Math.pow(2,24)+a[1]*Math.pow(2,16)+a[2]*Math.pow(2,8)+a[3])}},{key:"fromString",value:function(t){if(!t.match(/^[0-9]+$/))throw new Error("Invalid string format");return new e(Number.parseInt(t,10))}}]),e}();t.Uint32=c;var u=function(){function e(t){if(r(this,e),Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");if(tNumber.MAX_SAFE_INTEGER)throw new Error("Input not in int53 range: "+t.toString());this.data=t}return a(e,[{key:"toNumber",value:function(){return this.data}},{key:"toBigInt",value:function(){return BigInt(this.toNumber())}},{key:"toString",value:function(){return this.data.toString()}}],[{key:"fromString",value:function(t){if(!t.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return new e(Number.parseInt(t,10))}}]),e}();t.Int53=u;var f=function(){function e(t){r(this,e);var n=new u(t);if(n.toNumber()<0)throw new Error("Input is negative");this.data=n}return a(e,[{key:"toNumber",value:function(){return this.data.toNumber()}},{key:"toBigInt",value:function(){return BigInt(this.toNumber())}},{key:"toString",value:function(){return this.data.toString()}}],[{key:"fromString",value:function(t){return new e(u.fromString(t).toNumber())}}]),e}();t.Uint53=f;var d=function(){function e(t){if(r(this,e),t.isNeg())throw new Error("Input is negative");if(t.gt(s))throw new Error("Input exceeds uint64 range");this.data=t}return a(e,[{key:"toBytesBigEndian",value:function(){return Uint8Array.from(this.data.toArray("be",8))}},{key:"toBytesLittleEndian",value:function(){return Uint8Array.from(this.data.toArray("le",8))}},{key:"toString",value:function(){return this.data.toString(10)}},{key:"toBigInt",value:function(){return BigInt(this.toString())}},{key:"toNumber",value:function(){return this.data.toNumber()}}],[{key:"fromBytesBigEndian",value:function(t){return e.fromBytes(t)}},{key:"fromBytes",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(8!==t.length)throw new Error("Invalid input length. Expected 8 bytes.");for(var r=0;r255||t[r]<0)throw new Error("Invalid value in byte. Found: "+t[r]);var a="be"===n?Array.from(t):Array.from(t).reverse();return new e(new o.default(a))}},{key:"fromString",value:function(t){if(!t.match(/^[0-9]+$/))throw new Error("Invalid string format");return new e(new o.default(t,10,"be"))}},{key:"fromNumber",value:function(t){if(Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");var n;try{n=new o.default(t)}catch(e){throw new Error("Input is not a safe integer")}return new e(n)}}]),e}();t.Uint64=d},23799:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseCoins=void 0,t.parseCoins=function(e){return e.replace(/\s/g,"").split(",").filter(Boolean).map((function(e){var t=e.match(/^([0-9]+)([a-zA-Z][a-zA-Z0-9/]{2,127})$/);if(!t)throw new Error("Got an invalid coin string");return{amount:t[1].replace(/^0+/,"")||"0",denom:t[2]}}))}},73988:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeTxRaw=void 0;var r=n(64182);t.decodeTxRaw=function(e){var t=r.TxRaw.decode(e);return{authInfo:r.AuthInfo.decode(t.authInfoBytes),body:r.TxBody.decode(t.bodyBytes),signatures:t.signatures}}},32784:function(e,t,n){"use strict";var r=n(62503).default,a=n(48648).default,i=n(63333).default,o=n(37240).default,s=n(63298).default,c=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectSecp256k1HdWallet=t.extractKdfConfiguration=void 0;var u=n(62573),f=n(2419),d=n(73762),l=n(55736),p=n(26605),b=n(22423),h="directsecp256k1hdwallet-v1",y={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12288}};t.extractKdfConfiguration=function(e){var t=JSON.parse(e);if(!(0,l.isNonNullObject)(t))throw new Error("Root document is not an object.");if(t.type===h)return t.kdf;throw new Error("Unsupported serialization type")};var m={bip39Password:"",hdPaths:[(0,u.makeCosmoshubPath)(0)],prefix:"cosmos"},v=function(){function e(t,n){var r,a;s(this,e);var i=null!==(r=n.prefix)&&void 0!==r?r:m.prefix,o=null!==(a=n.hdPaths)&&void 0!==a?a:m.hdPaths;this.secret=t,this.seed=n.seed,this.accounts=o.map((function(e){return{hdPath:e,prefix:i}}))}var t,n,v,g,A,w,x,_,k,S,I;return c(e,[{key:"mnemonic",get:function(){return this.secret.toString()}},{key:"getAccounts",value:(I=o(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountsWithPrivkeys();case 2:return t=e.sent,e.abrupt("return",t.map((function(e){return{algo:e.algo,pubkey:e.pubkey,address:e.address}})));case 4:case"end":return e.stop()}}),e,this)}))),function(){return I.apply(this,arguments)})},{key:"signDirect",value:(S=o(i().mark((function e(t,n){var r,o,s,c,d,l,b,h,y;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountsWithPrivkeys();case 2:if(r=e.sent,void 0!==(o=r.find((function(e){return e.address===t})))){e.next=6;break}throw new Error("Address ".concat(t," not found in wallet"));case 6:return s=o.privkey,c=o.pubkey,d=(0,p.makeSignBytes)(n),l=(0,f.sha256)(d),e.next=11,f.Secp256k1.createSignature(l,s);case 11:return b=e.sent,h=new Uint8Array([].concat(a(b.r(32)),a(b.s(32)))),y=(0,u.encodeSecp256k1Signature)(c,h),e.abrupt("return",{signed:n,signature:y});case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return S.apply(this,arguments)})},{key:"serialize",value:(k=o(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=y,e.next=3,(0,b.executeKdf)(t,n);case 3:return r=e.sent,e.abrupt("return",this.serializeWithEncryptionKey(r,n));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"serializeWithEncryptionKey",value:(_=o(i().mark((function e(t,n){var r,a,o,s,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={mnemonic:this.mnemonic,accounts:this.accounts.map((function(e){var t=e.hdPath,n=e.prefix;return{hdPath:(0,f.pathToString)(t),prefix:n}}))},a=(0,d.toUtf8)(JSON.stringify(r)),o={algorithm:b.supportedAlgorithms.xchacha20poly1305Ietf},e.next=5,(0,b.encrypt)(a,t,o);case 5:return s=e.sent,c={type:h,kdf:n,encryption:o,data:(0,d.toBase64)(s)},e.abrupt("return",JSON.stringify(c));case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return _.apply(this,arguments)})},{key:"getKeyPair",value:(x=o(i().mark((function e(t){var n,r,a,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=f.Slip10.derivePath(f.Slip10Curve.Secp256k1,this.seed,t),r=n.privkey,e.next=3,f.Secp256k1.makeKeypair(r);case 3:return a=e.sent,o=a.pubkey,e.abrupt("return",{privkey:r,pubkey:f.Secp256k1.compressPubkey(o)});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"getAccountsWithPrivkeys",value:(w=o(i().mark((function e(){var t=this;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(this.accounts.map(function(){var e=o(i().mark((function e(n){var r,a,o,s,c,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.hdPath,a=n.prefix,e.next=3,t.getKeyPair(r);case 3:return o=e.sent,s=o.privkey,c=o.pubkey,f=(0,d.toBech32)(a,(0,u.rawSecp256k1PubkeyToRawAddress)(c)),e.abrupt("return",{algo:"secp256k1",privkey:s,pubkey:c,address:f});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})}],[{key:"fromMnemonic",value:(A=o(i().mark((function t(n){var a,o,s,c=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>1&&void 0!==c[1]?c[1]:{},o=new f.EnglishMnemonic(n),t.next=4,f.Bip39.mnemonicToSeed(o,a.bip39Password);case 4:return s=t.sent,t.abrupt("return",new e(o,r(r({},a),{},{seed:s})));case 6:case"end":return t.stop()}}),t)}))),function(e){return A.apply(this,arguments)})},{key:"generate",value:(g=o(i().mark((function t(){var n,r,a,o,s,c=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:12,r=c.length>1&&void 0!==c[1]?c[1]:{},a=4*Math.floor(11*n/33),o=f.Random.getBytes(a),s=f.Bip39.encode(o),t.abrupt("return",e.fromMnemonic(s.toString(),r));case 6:case"end":return t.stop()}}),t)}))),function(){return g.apply(this,arguments)})},{key:"deserialize",value:(v=o(i().mark((function t(n,r){var a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=JSON.parse(n),(0,l.isNonNullObject)(a)){t.next=3;break}throw new Error("Root document is not an object.");case 3:t.t0=a.type,t.next=t.t0===h?6:7;break;case 6:return t.abrupt("return",e.deserializeTypeV1(n,r));case 7:throw new Error("Unsupported serialization type");case 8:case"end":return t.stop()}}),t)}))),function(e,t){return v.apply(this,arguments)})},{key:"deserializeWithEncryptionKey",value:(n=o(i().mark((function t(n,r){var a,o,s,c,u,p,y,m;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=JSON.parse(n),(0,l.isNonNullObject)(a)){t.next=3;break}throw new Error("Root document is not an object.");case 3:o=a,t.t0=o.type,t.next=t.t0===h?7:22;break;case 7:return t.next=9,(0,b.decrypt)((0,d.fromBase64)(o.data),r,o.encryption);case 9:if(s=t.sent,c=JSON.parse((0,d.fromUtf8)(s)),u=c.mnemonic,p=c.accounts,(0,l.assert)("string"==typeof u),Array.isArray(p)){t.next=15;break}throw new Error("Property 'accounts' is not an array");case 15:if(p.every((function(e){return t=e,!!(0,l.isNonNullObject)(t)&&"string"==typeof t.hdPath&&"string"==typeof t.prefix;var t}))){t.next=17;break}throw new Error("Account is not in the correct format.");case 17:if(y=p[0].prefix,p.every((function(e){return e.prefix===y}))){t.next=20;break}throw new Error("Accounts do not all have the same prefix");case 20:return m=p.map((function(e){var t=e.hdPath;return(0,f.stringToPath)(t)})),t.abrupt("return",e.fromMnemonic(u,{hdPaths:m,prefix:y}));case 22:throw new Error("Unsupported serialization type");case 23:case"end":return t.stop()}}),t)}))),function(e,t){return n.apply(this,arguments)})},{key:"deserializeTypeV1",value:(t=o(i().mark((function t(n,r){var a,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=JSON.parse(n),(0,l.isNonNullObject)(a)){t.next=3;break}throw new Error("Root document is not an object.");case 3:return t.next=5,(0,b.executeKdf)(r,a.kdf);case 5:return o=t.sent,t.abrupt("return",e.deserializeWithEncryptionKey(n,o));case 7:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();t.DirectSecp256k1HdWallet=v},26736:function(e,t,n){"use strict";var r=n(48648).default,a=n(63333).default,i=n(37240).default,o=n(63298).default,s=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectSecp256k1Wallet=void 0;var c=n(62573),u=n(2419),f=n(73762),d=n(26605),l=function(){function e(t,n,r){o(this,e),this.privkey=t,this.pubkey=n,this.prefix=r}var t,n,l;return s(e,[{key:"address",get:function(){return(0,f.toBech32)(this.prefix,(0,c.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}},{key:"getAccounts",value:(l=i(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]);case 1:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"signDirect",value:(n=i(a().mark((function e(t,n){var i,o,s,f,l;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(0,d.makeSignBytes)(n),t===this.address){e.next=3;break}throw new Error("Address ".concat(t," not found in wallet"));case 3:return o=(0,u.sha256)(i),e.next=6,u.Secp256k1.createSignature(o,this.privkey);case 6:return s=e.sent,f=new Uint8Array([].concat(r(s.r(32)),r(s.s(32)))),l=(0,c.encodeSecp256k1Signature)(this.pubkey,f),e.abrupt("return",{signed:n,signature:l});case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})}],[{key:"fromKey",value:(t=i(a().mark((function t(n){var r,i,o=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:"cosmos",t.next=3,u.Secp256k1.makeKeypair(n);case 3:return i=t.sent.pubkey,t.abrupt("return",new e(n,u.Secp256k1.compressPubkey(i),r));case 5:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}]),e}();t.DirectSecp256k1Wallet=l},75219:function(e,t,n){"use strict";n(23799),n(73988),n(32784),n(26736),n(12384),n(48340),n(14270),n(87236),n(26605),n(22423),n(62573)},12384:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeCosmoshubPath=void 0;var r=n(2419);t.makeCosmoshubPath=function(e){return[r.Slip10RawIndex.hardened(44),r.Slip10RawIndex.hardened(118),r.Slip10RawIndex.hardened(0),r.Slip10RawIndex.normal(0),r.Slip10RawIndex.normal(e)]}},48340:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePubkey=t.anyToSinglePubkey=t.encodePubkey=void 0;var r=n(62573),a=n(73762),i=n(9851),o=n(85525),s=n(37466),c=n(19384),u=n(92234);function f(e){switch(e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":var t=c.PubKey.decode(e.value).key;return(0,r.encodeSecp256k1Pubkey)(t);case"/cosmos.crypto.ed25519.PubKey":var n=o.PubKey.decode(e.value).key;return(0,r.encodeEd25519Pubkey)(n);default:throw new Error("Pubkey type_url ".concat(e.typeUrl," not recognized as single public key type"))}}t.encodePubkey=function e(t){if((0,r.isSecp256k1Pubkey)(t)){var n=c.PubKey.fromPartial({key:(0,a.fromBase64)(t.value)});return u.Any.fromPartial({typeUrl:"/cosmos.crypto.secp256k1.PubKey",value:Uint8Array.from(c.PubKey.encode(n).finish())})}if((0,r.isEd25519Pubkey)(t)){var f=o.PubKey.fromPartial({key:(0,a.fromBase64)(t.value)});return u.Any.fromPartial({typeUrl:"/cosmos.crypto.ed25519.PubKey",value:Uint8Array.from(o.PubKey.encode(f).finish())})}if((0,r.isMultisigThresholdPubkey)(t)){var d=s.LegacyAminoPubKey.fromPartial({threshold:i.Uint53.fromString(t.value.threshold).toNumber(),publicKeys:t.value.pubkeys.map(e)});return u.Any.fromPartial({typeUrl:"/cosmos.crypto.multisig.LegacyAminoPubKey",value:Uint8Array.from(s.LegacyAminoPubKey.encode(d).finish())})}throw new Error("Pubkey type ".concat(t.type," not recognized"))},t.anyToSinglePubkey=f,t.decodePubkey=function(e){switch(e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":case"/cosmos.crypto.ed25519.PubKey":return f(e);case"/cosmos.crypto.multisig.LegacyAminoPubKey":var t=s.LegacyAminoPubKey.decode(e.value),n=t.threshold,r=t.publicKeys;return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:n.toString(),pubkeys:r.map(f)}};default:throw new Error("Pubkey type_url ".concat(e.typeUrl," not recognized"))}}},14270:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(10202).default,i=n(62503).default,o=n(48648).default,s=n(63298).default,c=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Registry=t.isTxBodyEncodeObject=t.isPbjsGeneratedType=t.isTsProtoGeneratedType=void 0;var u=n(85830),f=n(25026),d=n(64182),l=n(92234);function p(e){return"function"==typeof e.fromPartial}t.isTsProtoGeneratedType=p,t.isPbjsGeneratedType=function(e){return!p(e)};function b(e){return"/cosmos.tx.v1beta1.TxBody"===e.typeUrl}t.isTxBodyEncodeObject=b;var h=function(){function e(t){s(this,e);this.types=t?new Map(o(t)):new Map([["/cosmos.base.v1beta1.Coin",f.Coin],["/cosmos.bank.v1beta1.MsgSend",u.MsgSend]])}return c(e,[{key:"register",value:function(e,t){this.types.set(e,t)}},{key:"lookupType",value:function(e){return this.types.get(e)}},{key:"lookupTypeWithError",value:function(e){var t=this.lookupType(e);if(!t)throw new Error("Unregistered type url: ".concat(e));return t}},{key:"encode",value:function(e){var t=e.value,n=e.typeUrl;if(b(e))return this.encodeTxBody(t);var r=this.lookupTypeWithError(n),a=p(r)?r.fromPartial(t):r.create(t);return r.encode(a).finish()}},{key:"encodeAsAny",value:function(e){var t=this.encode(e);return l.Any.fromPartial({typeUrl:e.typeUrl,value:t})}},{key:"encodeTxBody",value:function(e){var t=this,n=e.messages.map((function(e){return t.encodeAsAny(e)})),r=d.TxBody.fromPartial(i(i({},e),{},{messages:n}));return d.TxBody.encode(r).finish()}},{key:"decode",value:function(e){var t=e.typeUrl,n=e.value;if("/cosmos.tx.v1beta1.TxBody"===t)return this.decodeTxBody(n);var i=this.lookupTypeWithError(t).decode(n);return Object.entries(i).forEach((function(e){var t=a(e,2),n=t[0],o=t[1];void 0!==r&&void 0!==r.isBuffer&&r.isBuffer(o)&&(i[n]=Uint8Array.from(o))})),i}},{key:"decodeTxBody",value:function(e){var t=this,n=d.TxBody.decode(e);return i(i({},n),{},{messages:n.messages.map((function(e){var n=e.typeUrl,r=e.value;if(!n)throw new Error("Missing type_url in Any");if(!r)throw new Error("Missing value in Any");return t.decode({typeUrl:n,value:r})}))})}}]),e}();t.Registry=h},87236:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOfflineDirectSigner=void 0,t.isOfflineDirectSigner=function(e){return void 0!==e.signDirect}},26605:function(e,t,n){"use strict";var r=n(48648).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.makeSignBytes=t.makeSignDoc=t.makeAuthInfoBytes=void 0;var i=n(55736),o=n(15283),s=n(64182),c=a(n(12620));function u(e,t){return e.map((function(e){var n=e.pubkey,r=e.sequence;return{publicKey:n,modeInfo:{single:{mode:t}},sequence:c.default.fromNumber(r)}}))}t.makeAuthInfoBytes=function(e,t,n,a,f){var d=arguments.length>5&&void 0!==arguments[5]?arguments[5]:o.SignMode.SIGN_MODE_DIRECT;(0,i.assert)(void 0===a||"string"==typeof a,"feeGranter must be undefined or string"),(0,i.assert)(void 0===f||"string"==typeof f,"feePayer must be undefined or string");var l=s.AuthInfo.fromPartial({signerInfos:u(e,d),fee:{amount:r(t),gasLimit:c.default.fromNumber(n),granter:a,payer:f}});return s.AuthInfo.encode(l).finish()},t.makeSignDoc=function(e,t,n,r){return{bodyBytes:e,authInfoBytes:t,chainId:n,accountNumber:c.default.fromNumber(r)}},t.makeSignBytes=function(e){var t=e.accountNumber,n=e.authInfoBytes,r=e.bodyBytes,a=e.chainId,i=s.SignDoc.fromPartial({accountNumber:t,authInfoBytes:n,bodyBytes:r,chainId:a});return s.SignDoc.encode(i).finish()}},22423:function(e,t,n){"use strict";var r=n(48648).default,a=n(63333).default,i=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=t.supportedAlgorithms=t.executeKdf=t.cosmjsSalt=void 0;var o=n(2419),s=n(73762);function c(){return(c=i(a().mark((function e(n,r){var i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=r.algorithm,e.next="argon2id"===e.t0?3:7;break;case 3:if(i=r.params,(0,o.isArgon2idOptions)(i)){e.next=6;break}throw new Error("Invalid format of argon2id params");case 6:return e.abrupt("return",o.Argon2id.execute(n,t.cosmjsSalt,i));case 7:throw new Error("Unsupported KDF algorithm");case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(){return(u=i(a().mark((function e(n,i,s){var c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=s.algorithm,e.next=e.t0===t.supportedAlgorithms.xchacha20poly1305Ietf?3:14;break;case 3:return c=o.Random.getBytes(o.xchacha20NonceLength),e.t1=Uint8Array,e.t2=[],e.t3=r(c),e.t4=r,e.next=10,o.Xchacha20poly1305Ietf.encrypt(n,i,c);case 10:return e.t5=e.sent,e.t6=(0,e.t4)(e.t5),e.t7=e.t2.concat.call(e.t2,e.t3,e.t6),e.abrupt("return",new e.t1(e.t7));case 14:throw new Error("Unsupported encryption algorithm: '".concat(s.algorithm,"'"));case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function f(){return(f=i(a().mark((function e(n,r,i){var s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=i.algorithm,e.next=e.t0===t.supportedAlgorithms.xchacha20poly1305Ietf?3:5;break;case 3:return s=n.slice(0,o.xchacha20NonceLength),e.abrupt("return",o.Xchacha20poly1305Ietf.decrypt(n.slice(o.xchacha20NonceLength),r,s));case 5:throw new Error("Unsupported encryption algorithm: '".concat(i.algorithm,"'"));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.cosmjsSalt=(0,s.toAscii)("The CosmJS salt."),t.executeKdf=function(e,t){return c.apply(this,arguments)},t.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"},t.encrypt=function(e,t,n){return u.apply(this,arguments)},t.decrypt=function(e,t,n){return f.apply(this,arguments)}},57544:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayContentStartsWith=t.arrayContentEquals=void 0,t.arrayContentEquals=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){l.headers[e]=a.merge(u)})),e.exports=l},6452:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},31767:function(e){e.exports={version:"0.27.2"}},31144:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},81967:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},38076:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},17473:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(96134);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":a.isDate(e)?e.toISOString():a.isArrayBuffer(e)||a.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return function e(r,o){if(a.isPlainObject(r)||a.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+o);n.push(r),a.forEach(r,(function(n,r){if(!a.isUndefined(n)){var s,c=o?o+"."+r:r;if(n&&!o&&"object"==typeof n)if(a.endsWith(r,"{}"))n=JSON.stringify(n);else if(a.endsWith(r,"[]")&&(s=a.toArray(n)))return void s.forEach((function(e){!a.isUndefined(e)&&t.append(c,i(e))}));e(n,c)}})),n.pop()}else t.append(o,i(r))}(e),t}},5385:function(e,t,n){"use strict";var r=n(31767).version,a=n(56056),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new a(i(r," has been removed"+(t?" in "+t:"")),a.ERR_DEPRECATED);return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new a("options must be an object",a.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var c=e[o],u=void 0===c||s(c,o,e);if(!0!==u)throw new a("option "+o+" must be "+u,a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new a("Unknown option "+o,a.ERR_BAD_OPTION)}},validators:i}},96134:function(e,t,n){"use strict";var r,a=n(31144),i=Object.prototype.toString,o=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function c(e){return Array.isArray(e)}function u(e){return void 0===e}var f=s("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function l(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),b=s("File"),h=s("Blob"),y=s("FileList");function m(e){return"[object Function]"===i.call(e)}var v=s("URLSearchParams");function g(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var n=0,r=e.length;n0;)o[i=r[a]]||(t[i]=e[i],o[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:y}},42380:function(e,t){"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Wrong positive integer: ".concat(e))}function r(e){if("boolean"!=typeof e)throw new Error("Expected boolean, not ".concat(e))}function a(e){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&!n.includes(e.length))throw new TypeError("Expected Uint8Array of length ".concat(n,", not of length=").concat(e.length))}function i(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){a(e);var n=t.outputLen;if(e.lengthr-i&&(this.process(n,0),i=0);for(var o=i;o>a&i),s=Number(n&i),c=r?4:0,u=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+u,s,r)}(n,r-8,BigInt(8*this.length),a),this.process(n,0);var s=(0,u.createView)(e);this.get().forEach((function(e,t){return s.setUint32(4*t,e,a)}))}},{key:"digest",value:function(){var e=this.buffer,t=this.outputLen;this.digestInto(e);var n=e.slice(0,t);return this.destroy(),n}},{key:"_cloneInto",value:function(e){var t;e||(e=new this.constructor),(t=e).set.apply(t,r(this.get()));var n=this.blockLen,a=this.buffer,i=this.length,o=this.finished,s=this.destroyed,c=this.pos;return e.length=i,e.pos=c,e.finished=o,e.destroyed=s,i%n&&e.buffer.set(a),e}}]),n}(u.Hash);t.SHA2=f},76741:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add=t.toBig=t.split=t.fromBig=void 0;var n=BigInt(Math.pow(2,32)-1),r=BigInt(32);function a(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function i(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length),i=0;i>>0)+(r>>>0);return{h:e+n+(a/Math.pow(2,32)|0)|0,l:0|a}}t.fromBig=a,t.split=i,t.toBig=function(e,t){return BigInt(e>>>0)<>>0)},t.add=o;var s={fromBig:a,split:i,toBig:t.toBig,shrSH:function(e,t,n){return e>>>n},shrSL:function(e,t,n){return e<<32-n|t>>>n},rotrSH:function(e,t,n){return e>>>n|t<<32-n},rotrSL:function(e,t,n){return e<<32-n|t>>>n},rotrBH:function(e,t,n){return e<<64-n|t>>>n-32},rotrBL:function(e,t,n){return e>>>n-32|t<<64-n},rotr32H:function(e,t){return t},rotr32L:function(e,t){return e},rotlSH:function(e,t,n){return e<>>32-n},rotlSL:function(e,t,n){return t<>>32-n},rotlBH:function(e,t,n){return t<>>64-n},rotlBL:function(e,t,n){return e<>>64-n},add:o,add3L:function(e,t,n){return(e>>>0)+(t>>>0)+(n>>>0)},add3H:function(e,t,n,r){return t+n+r+(e/Math.pow(2,32)|0)|0},add4L:function(e,t,n,r){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)},add4H:function(e,t,n,r,a){return t+n+r+a+(e/Math.pow(2,32)|0)|0},add5H:function(e,t,n,r,a,i){return t+n+r+a+i+(e/Math.pow(2,32)|0)|0},add5L:function(e,t,n,r,a){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(a>>>0)}};t.default=s},3454:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto={node:void 0,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0}},62356:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(17964).default,o=n(54790).default;Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=void 0;var s=n(42380),c=n(79901),u=function(e){i(n,e);var t=o(n);function n(e,a){var i;r(this,n),(i=t.call(this)).finished=!1,i.destroyed=!1,s.default.hash(e);var o=(0,c.toBytes)(a);if(i.iHash=e.create(),"function"!=typeof i.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");i.blockLen=i.iHash.blockLen,i.outputLen=i.iHash.outputLen;var u=i.blockLen,f=new Uint8Array(u);f.set(o.length>u?e.create().update(o).digest():o);for(var d=0;d= 1");var d=(0,s.toBytes)(t),l=(0,s.toBytes)(n),p=new Uint8Array(u),b=o.hmac.create(e,d),h=b._cloneInto().update(l);return{c:c,dkLen:u,asyncTick:f,DK:p,PRF:b,PRFSalt:h}}function u(e,t,n,r,a){return e.destroy(),t.destroy(),r&&r.destroy(),a.fill(0),n}function f(){return(f=a(r().mark((function e(t,n,a,i){var o,f,d,l,p,b,h,y,m,v,g,A,w,x;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=c(t,n,a,i),f=o.c,d=o.dkLen,l=o.asyncTick,p=o.DK,b=o.PRF,h=o.PRFSalt,m=new Uint8Array(4),v=(0,s.createView)(m),g=new Uint8Array(b.outputLen),A=r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=p.subarray(x,x+b.outputLen),v.setInt32(0,w,!1),(y=h._cloneInto(y)).update(m).digestInto(g),t.set(g.subarray(0,t.length)),e.next=6,(0,s.asyncLoop)(f-1,l,(function(e){b._cloneInto(y).update(g).digestInto(g);for(var n=0;n>>32-t};function k(e,t,n,r){return 0===e?t^n^r:1===e?t&n|~t&r:2===e?(t|~n)^r:3===e?t&r|n&~r:t^(n|~r)}var S=new Uint32Array(16),I=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this,64,20,8,!0)).h0=1732584193,e.h1=-271733879,e.h2=-1732584194,e.h3=271733878,e.h4=-1009589776,e}return a(n,[{key:"get",value:function(){return[this.h0,this.h1,this.h2,this.h3,this.h4]}},{key:"set",value:function(e,t,n,r,a){this.h0=0|e,this.h1=0|t,this.h2=0|n,this.h3=0|r,this.h4=0|a}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)S[n]=e.getUint32(t,!0);for(var r=0|this.h0,a=r,i=0|this.h1,o=i,s=0|this.h2,c=s,u=0|this.h3,f=u,d=0|this.h4,b=d,h=0;h<5;h++){for(var y=4-h,m=w[h],v=x[h],I=l[h],E=p[h],C=g[h],T=A[h],O=0;O<16;O++){var P=_(r+k(h,i,s,u)+S[I[O]]+m,C[O])+d|0;r=d,d=u,u=0|_(s,10),s=i,i=P}for(var M=0;M<16;M++){var B=_(a+k(y,o,c,f)+S[E[M]]+v,T[M])+b|0;a=b,b=f,f=0|_(c,10),c=o,o=B}}this.set(this.h1+s+f|0,this.h2+u+b|0,this.h3+d+a|0,this.h4+r+o|0,this.h0+i+c|0)}},{key:"roundClean",value:function(){S.fill(0)}},{key:"destroy",value:function(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}]),n}(s.SHA2);t.RIPEMD160=I,t.ripemd160=(0,c.wrapConstructor)((function(){return new I}))},81848:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(17964).default,o=n(54790).default;Object.defineProperty(t,"__esModule",{value:!0}),t.sha256=void 0;var s=n(47627),c=n(79901),u=function(e,t,n){return e&t^e&n^t&n},f=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]),d=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=new Uint32Array(64),p=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this,64,32,8,!1)).A=0|d[0],e.B=0|d[1],e.C=0|d[2],e.D=0|d[3],e.E=0|d[4],e.F=0|d[5],e.G=0|d[6],e.H=0|d[7],e}return a(n,[{key:"get",value:function(){return[this.A,this.B,this.C,this.D,this.E,this.F,this.G,this.H]}},{key:"set",value:function(e,t,n,r,a,i,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|a,this.F=0|i,this.G=0|o,this.H=0|s}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)l[n]=e.getUint32(t,!1);for(var r=16;r<64;r++){var a=l[r-15],i=l[r-2],o=(0,c.rotr)(a,7)^(0,c.rotr)(a,18)^a>>>3,s=(0,c.rotr)(i,17)^(0,c.rotr)(i,19)^i>>>10;l[r]=s+l[r-7]+o+l[r-16]|0}for(var d,p=this.A,b=this.B,h=this.C,y=this.D,m=this.E,v=this.F,g=this.G,A=this.H,w=0;w<64;w++){var x=A+((0,c.rotr)(m,6)^(0,c.rotr)(m,11)^(0,c.rotr)(m,25))+((d=m)&v^~d&g)+f[w]+l[w]|0,_=((0,c.rotr)(p,2)^(0,c.rotr)(p,13)^(0,c.rotr)(p,22))+u(p,b,h)|0;A=g,g=v,v=m,m=y+x|0,y=h,h=b,b=p,p=x+_|0}p=p+this.A|0,b=b+this.B|0,h=h+this.C|0,y=y+this.D|0,m=m+this.E|0,v=v+this.F|0,g=g+this.G|0,A=A+this.H|0,this.set(p,b,h,y,m,v,g,A)}},{key:"roundClean",value:function(){l.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),n}(s.SHA2);t.sha256=(0,c.wrapConstructor)((function(){return new p}))},26499:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(17964).default,o=n(54790).default,s=n(10202).default;Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;for(var c=n(42380),u=n(76741),f=n(79901),d=[],l=[],p=[],b=BigInt(0),h=BigInt(1),y=BigInt(2),m=BigInt(7),v=BigInt(256),g=BigInt(113),A=0,w=h,x=1,_=0;A<24;A++){var k=[_,(2*x+3*_)%5];x=k[0],_=k[1],d.push(2*(5*_+x)),l.push((A+1)*(A+2)/2%64);for(var S=b,I=0;I<7;I++)(w=(w<>m)*g)%v)&y&&(S^=h<<(h<32?u.default.rotlBH(e,t,n):u.default.rotlSH(e,t,n)},P=function(e,t,n){return n>32?u.default.rotlBL(e,t,n):u.default.rotlSL(e,t,n)};function M(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=new Uint32Array(10),r=24-t;r<24;r++){for(var a=0;a<10;a++)n[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(var i=0;i<10;i+=2)for(var o=(i+8)%10,s=(i+2)%10,c=n[s],u=n[s+1],f=O(c,u,1)^n[o],p=P(c,u,1)^n[o+1],b=0;b<50;b+=10)e[i+b]^=f,e[i+b+1]^=p;for(var h=e[2],y=e[3],m=0;m<24;m++){var v=l[m],g=O(h,y,v),A=P(h,y,v),w=d[m];h=e[w],y=e[w+1],e[w]=g,e[w+1]=A}for(var x=0;x<50;x+=10){for(var _=0;_<10;_++)n[_]=e[x+_];for(var k=0;k<10;k++)e[x+k]^=~n[(k+2)%10]&n[(k+4)%10]}e[0]^=C[r],e[1]^=T[r]}n.fill(0)}t.keccakP=M;var B=function(e){i(n,e);var t=o(n);function n(e,a,i){var o,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(r(this,n),(o=t.call(this)).blockLen=e,o.suffix=a,o.outputLen=i,o.enableXOF=s,o.rounds=u,o.pos=0,o.posOut=0,o.finished=!1,o.destroyed=!1,c.default.number(i),0>=o.blockLen||o.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return o.state=new Uint8Array(200),o.state32=(0,f.u32)(o.state),o}return a(n,[{key:"keccak",value:function(){M(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(e){c.default.exists(this);for(var t=this.blockLen,n=this.state,r=(e=(0,f.toBytes)(e)).length,a=0;a=n&&this.keccak();var i=Math.min(n-this.posOut,a-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}},{key:"xofInto",value:function(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}},{key:"xof",value:function(e){return c.default.number(e),this.xofInto(new Uint8Array(e))}},{key:"digestInto",value:function(e){if(c.default.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(e){var t=this.blockLen,r=this.suffix,a=this.outputLen,i=this.rounds,o=this.enableXOF;return e||(e=new n(t,r,a,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=a,e.enableXOF=o,e.destroyed=this.destroyed,e}}]),n}(f.Hash);t.Keccak=B;var R=function(e,t,n){return(0,f.wrapConstructor)((function(){return new B(t,e,n)}))};t.sha3_224=R(6,144,28),t.sha3_256=R(6,136,32),t.sha3_384=R(6,104,48),t.sha3_512=R(6,72,64),t.keccak_224=R(1,144,28),t.keccak_256=R(1,136,32),t.keccak_384=R(1,104,48),t.keccak_512=R(1,72,64);var N=function(e,t,n){return(0,f.wrapConstructorWithOpts)((function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new B(t,e,void 0===r.dkLen?n:r.dkLen,!0)}))};t.shake128=N(31,168,16),t.shake256=N(31,136,32)},34306:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(17964).default,o=n(54790).default,s=n(10202).default;Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512=t.SHA512=void 0;var c=n(47627),u=n(76741),f=n(79901),d=s(u.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((function(e){return BigInt(e)}))),2),l=d[0],p=d[1],b=new Uint32Array(80),h=new Uint32Array(80),y=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this,128,64,16,!1)).Ah=1779033703,e.Al=-205731576,e.Bh=-1150833019,e.Bl=-2067093701,e.Ch=1013904242,e.Cl=-23791573,e.Dh=-1521486534,e.Dl=1595750129,e.Eh=1359893119,e.El=-1377402159,e.Fh=-1694144372,e.Fl=725511199,e.Gh=528734635,e.Gl=-79577749,e.Hh=1541459225,e.Hl=327033209,e}return a(n,[{key:"get",value:function(){return[this.Ah,this.Al,this.Bh,this.Bl,this.Ch,this.Cl,this.Dh,this.Dl,this.Eh,this.El,this.Fh,this.Fl,this.Gh,this.Gl,this.Hh,this.Hl]}},{key:"set",value:function(e,t,n,r,a,i,o,s,c,u,f,d,l,p,b,h){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|a,this.Cl=0|i,this.Dh=0|o,this.Dl=0|s,this.Eh=0|c,this.El=0|u,this.Fh=0|f,this.Fl=0|d,this.Gh=0|l,this.Gl=0|p,this.Hh=0|b,this.Hl=0|h}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)b[n]=e.getUint32(t),h[n]=e.getUint32(t+=4);for(var r=16;r<80;r++){var a=0|b[r-15],i=0|h[r-15],o=u.default.rotrSH(a,i,1)^u.default.rotrSH(a,i,8)^u.default.shrSH(a,i,7),s=u.default.rotrSL(a,i,1)^u.default.rotrSL(a,i,8)^u.default.shrSL(a,i,7),c=0|b[r-2],f=0|h[r-2],d=u.default.rotrSH(c,f,19)^u.default.rotrBH(c,f,61)^u.default.shrSH(c,f,6),y=u.default.rotrSL(c,f,19)^u.default.rotrBL(c,f,61)^u.default.shrSL(c,f,6),m=u.default.add4L(s,y,h[r-7],h[r-16]),v=u.default.add4H(m,o,d,b[r-7],b[r-16]);b[r]=0|v,h[r]=0|m}for(var g=this.Ah,A=this.Al,w=this.Bh,x=this.Bl,_=this.Ch,k=this.Cl,S=this.Dh,I=this.Dl,E=this.Eh,C=this.El,T=this.Fh,O=this.Fl,P=this.Gh,M=this.Gl,B=this.Hh,R=this.Hl,N=0;N<80;N++){var D=u.default.rotrSH(E,C,14)^u.default.rotrSH(E,C,18)^u.default.rotrBH(E,C,41),j=u.default.rotrSL(E,C,14)^u.default.rotrSL(E,C,18)^u.default.rotrBL(E,C,41),U=E&T^~E&P,L=C&O^~C&M,Z=u.default.add5L(R,j,L,p[N],h[N]),F=u.default.add5H(Z,B,D,U,l[N],b[N]),H=0|Z,z=u.default.rotrSH(g,A,28)^u.default.rotrBH(g,A,34)^u.default.rotrBH(g,A,39),q=u.default.rotrSL(g,A,28)^u.default.rotrBL(g,A,34)^u.default.rotrBL(g,A,39),Q=g&w^g&_^w&_,K=A&x^A&k^x&k;B=0|P,R=0|M,P=0|T,M=0|O,T=0|E,O=0|C;var V=u.default.add(0|S,0|I,0|F,0|H);E=V.h,C=V.l,S=0|_,I=0|k,_=0|w,k=0|x,w=0|g,x=0|A;var J=u.default.add3L(H,q,K);g=u.default.add3H(J,F,z,Q),A=0|J}var G=u.default.add(0|this.Ah,0|this.Al,0|g,0|A);g=G.h,A=G.l;var W=u.default.add(0|this.Bh,0|this.Bl,0|w,0|x);w=W.h,x=W.l;var Y=u.default.add(0|this.Ch,0|this.Cl,0|_,0|k);_=Y.h,k=Y.l;var X=u.default.add(0|this.Dh,0|this.Dl,0|S,0|I);S=X.h,I=X.l;var $=u.default.add(0|this.Eh,0|this.El,0|E,0|C);E=$.h,C=$.l;var ee=u.default.add(0|this.Fh,0|this.Fl,0|T,0|O);T=ee.h,O=ee.l;var te=u.default.add(0|this.Gh,0|this.Gl,0|P,0|M);P=te.h,M=te.l;var ne=u.default.add(0|this.Hh,0|this.Hl,0|B,0|R);B=ne.h,R=ne.l,this.set(g,A,w,x,_,k,S,I,E,C,T,O,P,M,B,R)}},{key:"roundClean",value:function(){b.fill(0),h.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),n}(c.SHA2);t.SHA512=y;var m=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).Ah=573645204,e.Al=-64227540,e.Bh=-1621794909,e.Bl=-934517566,e.Ch=596883563,e.Cl=1867755857,e.Dh=-1774684391,e.Dl=1497426621,e.Eh=-1775747358,e.El=-1467023389,e.Fh=-1101128155,e.Fl=1401305490,e.Gh=721525244,e.Gl=746961066,e.Hh=246885852,e.Hl=-2117784414,e.outputLen=32,e}return a(n)}(y),v=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).Ah=-876896931,e.Al=-1056596264,e.Bh=1654270250,e.Bl=914150663,e.Ch=-1856437926,e.Cl=812702999,e.Dh=355462360,e.Dl=-150054599,e.Eh=1731405415,e.El=-4191439,e.Fh=-1900787065,e.Fl=1750603025,e.Gh=-619958771,e.Gl=1694076839,e.Hh=1203062813,e.Hl=-1090891868,e.outputLen=48,e}return a(n)}(y);t.sha512=(0,f.wrapConstructor)((function(){return new y})),t.sha512_256=(0,f.wrapConstructor)((function(){return new m})),t.sha384=(0,f.wrapConstructor)((function(){return new v}))},79901:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(63333).default,o=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;var s=n(3454);if(t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");var c=Array.from({length:256},(function(e,t){return t.toString(16).padStart(2,"0")}));t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");for(var t="",n=0;n=0&&c0&&void 0!==arguments[0]?arguments[0]:32;if(s.crypto.web)return s.crypto.web.getRandomValues(new Uint8Array(e));if(s.crypto.node)return new Uint8Array(s.crypto.node.randomBytes(e).buffer);throw new Error("The environment doesn't have randomBytes function")}},73812:function(e,t,n){e.exports=n(28231)},45160:function(e,t,n){"use strict";var r=n(85854),a=n(64754),i=n(22198),o=n(14686),s=n(74022),c=n(8256),u=n(88565),f=n(64259),d=n(36095),l=n(26683),p=n(76940);e.exports=function(e){return new Promise((function(t,n){var b,h=e.data,y=e.headers,m=e.responseType;function v(){e.cancelToken&&e.cancelToken.unsubscribe(b),e.signal&&e.signal.removeEventListener("abort",b)}r.isFormData(h)&&r.isStandardBrowserEnv()&&delete y["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var A=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";y.Authorization="Basic "+btoa(A+":"+w)}var x=s(e.baseURL,e.url);function _(){if(g){var r="getAllResponseHeaders"in g?c(g.getAllResponseHeaders()):null,i={data:m&&"text"!==m&&"json"!==m?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};a((function(e){t(e),v()}),(function(e){n(e),v()}),i),g=null}}if(g.open(e.method.toUpperCase(),o(x,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=_:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(_)},g.onabort=function(){g&&(n(new d("Request aborted",d.ECONNABORTED,e,g)),g=null)},g.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,g,g)),g=null},g.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,r.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,g)),g=null},r.isStandardBrowserEnv()){var k=(e.withCredentials||u(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;k&&(y[e.xsrfHeaderName]=k)}"setRequestHeader"in g&&r.forEach(y,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete y[t]:g.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),m&&"json"!==m&&(g.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(b=function(e){g&&(n(!e||e&&e.type?new l:e),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(b),e.signal&&(e.signal.aborted?b():e.signal.addEventListener("abort",b))),h||(h=null);var S=p(x);S&&-1===["http","https","file"].indexOf(S)?n(new d("Unsupported protocol "+S+":",d.ERR_BAD_REQUEST,e)):g.send(h)}))}},28231:function(e,t,n){"use strict";var r=n(85854),a=n(61750),i=n(28162),o=n(8180),s=function e(t){var n=new i(t),s=a(i.prototype.request,n);return r.extend(s,i.prototype,n),r.extend(s,n),s.create=function(n){return e(o(t,n))},s}(n(84816));s.Axios=i,s.CanceledError=n(26683),s.CancelToken=n(27158),s.isCancel=n(21951),s.VERSION=n(10901).version,s.toFormData=n(6548),s.AxiosError=n(36095),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(45663),s.isAxiosError=n(85322),e.exports=s,e.exports.default=s},27158:function(e,t,n){"use strict";var r=n(26683);function a(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){l.headers[e]=a.merge(u)})),e.exports=l},64259:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},10901:function(e){e.exports={version:"0.27.2"}},61750:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},76940:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},45663:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},6548:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(85854);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":a.isDate(e)?e.toISOString():a.isArrayBuffer(e)||a.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return function e(r,o){if(a.isPlainObject(r)||a.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+o);n.push(r),a.forEach(r,(function(n,r){if(!a.isUndefined(n)){var s,c=o?o+"."+r:r;if(n&&!o&&"object"==typeof n)if(a.endsWith(r,"{}"))n=JSON.stringify(n);else if(a.endsWith(r,"[]")&&(s=a.toArray(n)))return void s.forEach((function(e){!a.isUndefined(e)&&t.append(c,i(e))}));e(n,c)}})),n.pop()}else t.append(o,i(r))}(e),t}},633:function(e,t,n){"use strict";var r=n(10901).version,a=n(36095),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new a(i(r," has been removed"+(t?" in "+t:"")),a.ERR_DEPRECATED);return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new a("options must be an object",a.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var c=e[o],u=void 0===c||s(c,o,e);if(!0!==u)throw new a("option "+o+" must be "+u,a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new a("Unknown option "+o,a.ERR_BAD_OPTION)}},validators:i}},85854:function(e,t,n){"use strict";var r,a=n(61750),i=Object.prototype.toString,o=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function c(e){return Array.isArray(e)}function u(e){return void 0===e}var f=s("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function l(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),b=s("File"),h=s("Blob"),y=s("FileList");function m(e){return"[object Function]"===i.call(e)}var v=s("URLSearchParams");function g(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var n=0,r=e.length;n0;)o[i=r[a]]||(t[i]=e[i],o[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:y}},6941:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=t.DenomUnit=t.Supply=t.Output=t.Input=t.SendEnabled=t.Params=t.protobufPackage=void 0;var s=n(25026),c=o(n(51679)),u=n(92625);t.protobufPackage="cosmos.bank.v1beta1",t.Params={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create(),i=r(e.sendEnabled);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.SendEnabled.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return!0===e.defaultSendEnabled&&a.uint32(16).bool(e.defaultSendEnabled),a},decode:function(e,n){for(var r=e instanceof c.Reader?e:new c.Reader(e),a=void 0===n?r.len:r.pos+n,i={sendEnabled:[],defaultSendEnabled:!1};r.pos>>3){case 1:i.sendEnabled.push(t.SendEnabled.decode(r,r.uint32()));break;case 2:i.defaultSendEnabled=r.bool();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{sendEnabled:Array.isArray(null==e?void 0:e.sendEnabled)?e.sendEnabled.map((function(e){return t.SendEnabled.fromJSON(e)})):[],defaultSendEnabled:!!(0,u.isSet)(e.defaultSendEnabled)&&Boolean(e.defaultSendEnabled)}},toJSON:function(e){var n={};return e.sendEnabled?n.sendEnabled=e.sendEnabled.map((function(e){return e?t.SendEnabled.toJSON(e):void 0})):n.sendEnabled=[],void 0!==e.defaultSendEnabled&&(n.defaultSendEnabled=e.defaultSendEnabled),n},fromPartial:function(e){var n,r,a={sendEnabled:[],defaultSendEnabled:!1};return a.sendEnabled=(null===(n=e.sendEnabled)||void 0===n?void 0:n.map((function(e){return t.SendEnabled.fromPartial(e)})))||[],a.defaultSendEnabled=null!==(r=e.defaultSendEnabled)&&void 0!==r&&r,a}},t.SendEnabled={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),!0===e.enabled&&t.uint32(16).bool(e.enabled),t},decode:function(e,t){for(var n=e instanceof c.Reader?e:new c.Reader(e),r=void 0===t?n.len:n.pos+t,a={denom:"",enabled:!1};n.pos>>3){case 1:a.denom=n.string();break;case 2:a.enabled=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{denom:(0,u.isSet)(e.denom)?String(e.denom):"",enabled:!!(0,u.isSet)(e.enabled)&&Boolean(e.enabled)}},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.enabled&&(t.enabled=e.enabled),t},fromPartial:function(e){var t,n,r={denom:"",enabled:!1};return r.denom=null!==(t=e.denom)&&void 0!==t?t:"",r.enabled=null!==(n=e.enabled)&&void 0!==n&&n,r}},t.Input={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create();""!==e.address&&t.uint32(10).string(e.address);var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){for(var n=e instanceof c.Reader?e:new c.Reader(e),r=void 0===t?n.len:n.pos+t,a={address:"",coins:[]};n.pos>>3){case 1:a.address=n.string();break;case 2:a.coins.push(s.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{address:(0,u.isSet)(e.address)?String(e.address):"",coins:Array.isArray(null==e?void 0:e.coins)?e.coins.map((function(e){return s.Coin.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.coins=[],t},fromPartial:function(e){var t,n,r={address:"",coins:[]};return r.address=null!==(t=e.address)&&void 0!==t?t:"",r.coins=(null===(n=e.coins)||void 0===n?void 0:n.map((function(e){return s.Coin.fromPartial(e)})))||[],r}},t.Output={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create();""!==e.address&&t.uint32(10).string(e.address);var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){for(var n=e instanceof c.Reader?e:new c.Reader(e),r=void 0===t?n.len:n.pos+t,a={address:"",coins:[]};n.pos>>3){case 1:a.address=n.string();break;case 2:a.coins.push(s.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{address:(0,u.isSet)(e.address)?String(e.address):"",coins:Array.isArray(null==e?void 0:e.coins)?e.coins.map((function(e){return s.Coin.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.coins=[],t},fromPartial:function(e){var t,n,r={address:"",coins:[]};return r.address=null!==(t=e.address)&&void 0!==t?t:"",r.coins=(null===(n=e.coins)||void 0===n?void 0:n.map((function(e){return s.Coin.fromPartial(e)})))||[],r}},t.Supply={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create(),a=r(e.total);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){for(var n=e instanceof c.Reader?e:new c.Reader(e),r=void 0===t?n.len:n.pos+t,a={total:[]};n.pos>>3==1?a.total.push(s.Coin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{total:Array.isArray(null==e?void 0:e.total)?e.total.map((function(e){return s.Coin.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.total?t.total=e.total.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.total=[],t},fromPartial:function(e){var t,n={total:[]};return n.total=(null===(t=e.total)||void 0===t?void 0:t.map((function(e){return s.Coin.fromPartial(e)})))||[],n}},t.DenomUnit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create();""!==e.denom&&t.uint32(10).string(e.denom),0!==e.exponent&&t.uint32(16).uint32(e.exponent);var n,a=r(e.aliases);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(26).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){for(var n=e instanceof c.Reader?e:new c.Reader(e),r=void 0===t?n.len:n.pos+t,a={denom:"",exponent:0,aliases:[]};n.pos>>3){case 1:a.denom=n.string();break;case 2:a.exponent=n.uint32();break;case 3:a.aliases.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{denom:(0,u.isSet)(e.denom)?String(e.denom):"",exponent:(0,u.isSet)(e.exponent)?Number(e.exponent):0,aliases:Array.isArray(null==e?void 0:e.aliases)?e.aliases.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.exponent&&(t.exponent=Math.round(e.exponent)),e.aliases?t.aliases=e.aliases.map((function(e){return e})):t.aliases=[],t},fromPartial:function(e){var t,n,r,a={denom:"",exponent:0,aliases:[]};return a.denom=null!==(t=e.denom)&&void 0!==t?t:"",a.exponent=null!==(n=e.exponent)&&void 0!==n?n:0,a.aliases=(null===(r=e.aliases)||void 0===r?void 0:r.map((function(e){return e})))||[],a}},t.Metadata={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create();""!==e.description&&n.uint32(10).string(e.description);var a,i=r(e.denomUnits);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.DenomUnit.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return""!==e.base&&n.uint32(26).string(e.base),""!==e.display&&n.uint32(34).string(e.display),""!==e.name&&n.uint32(42).string(e.name),""!==e.symbol&&n.uint32(50).string(e.symbol),n},decode:function(e,n){for(var r=e instanceof c.Reader?e:new c.Reader(e),a=void 0===n?r.len:r.pos+n,i={description:"",denomUnits:[],base:"",display:"",name:"",symbol:""};r.pos>>3){case 1:i.description=r.string();break;case 2:i.denomUnits.push(t.DenomUnit.decode(r,r.uint32()));break;case 3:i.base=r.string();break;case 4:i.display=r.string();break;case 5:i.name=r.string();break;case 6:i.symbol=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{description:(0,u.isSet)(e.description)?String(e.description):"",denomUnits:Array.isArray(null==e?void 0:e.denomUnits)?e.denomUnits.map((function(e){return t.DenomUnit.fromJSON(e)})):[],base:(0,u.isSet)(e.base)?String(e.base):"",display:(0,u.isSet)(e.display)?String(e.display):"",name:(0,u.isSet)(e.name)?String(e.name):"",symbol:(0,u.isSet)(e.symbol)?String(e.symbol):""}},toJSON:function(e){var n={};return void 0!==e.description&&(n.description=e.description),e.denomUnits?n.denomUnits=e.denomUnits.map((function(e){return e?t.DenomUnit.toJSON(e):void 0})):n.denomUnits=[],void 0!==e.base&&(n.base=e.base),void 0!==e.display&&(n.display=e.display),void 0!==e.name&&(n.name=e.name),void 0!==e.symbol&&(n.symbol=e.symbol),n},fromPartial:function(e){var n,r,a,i,o,s,c={description:"",denomUnits:[],base:"",display:"",name:"",symbol:""};return c.description=null!==(n=e.description)&&void 0!==n?n:"",c.denomUnits=(null===(r=e.denomUnits)||void 0===r?void 0:r.map((function(e){return t.DenomUnit.fromPartial(e)})))||[],c.base=null!==(a=e.base)&&void 0!==a?a:"",c.display=null!==(i=e.display)&&void 0!==i?i:"",c.name=null!==(o=e.name)&&void 0!==o?o:"",c.symbol=null!==(s=e.symbol)&&void 0!==s?s:"",c}}},85830:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(21146).default,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgMultiSendResponse=t.MsgMultiSend=t.MsgSendResponse=t.MsgSend=t.protobufPackage=void 0;var u=n(25026),f=n(6941),d=c(n(51679)),l=n(92625);t.protobufPackage="cosmos.bank.v1beta1",t.MsgSend={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create();""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress);var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;u.Coin.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof d.Reader?e:new d.Reader(e),r=void 0===t?n.len:n.pos+t,a={fromAddress:"",toAddress:"",amount:[]};n.pos>>3){case 1:a.fromAddress=n.string();break;case 2:a.toAddress=n.string();break;case 3:a.amount.push(u.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{fromAddress:(0,l.isSet)(e.fromAddress)?String(e.fromAddress):"",toAddress:(0,l.isSet)(e.toAddress)?String(e.toAddress):"",amount:Array.isArray(null==e?void 0:e.amount)?e.amount.map((function(e){return u.Coin.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map((function(e){return e?u.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t,n,r,a={fromAddress:"",toAddress:"",amount:[]};return a.fromAddress=null!==(t=e.fromAddress)&&void 0!==t?t:"",a.toAddress=null!==(n=e.toAddress)&&void 0!==n?n:"",a.amount=(null===(r=e.amount)||void 0===r?void 0:r.map((function(e){return u.Coin.fromPartial(e)})))||[],a}},t.MsgSendResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create()},decode:function(e,t){for(var n=e instanceof d.Reader?e:new d.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:d.Writer.create(),r=i(e.inputs);try{for(r.s();!(t=r.n()).done;){var a=t.value;f.Input.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var o,s=i(e.outputs);try{for(s.s();!(o=s.n()).done;){var c=o.value;f.Output.encode(c,n.uint32(18).fork()).ldelim()}}catch(e){s.e(e)}finally{s.f()}return n},decode:function(e,t){for(var n=e instanceof d.Reader?e:new d.Reader(e),r=void 0===t?n.len:n.pos+t,a={inputs:[],outputs:[]};n.pos>>3){case 1:a.inputs.push(f.Input.decode(n,n.uint32()));break;case 2:a.outputs.push(f.Output.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{inputs:Array.isArray(null==e?void 0:e.inputs)?e.inputs.map((function(e){return f.Input.fromJSON(e)})):[],outputs:Array.isArray(null==e?void 0:e.outputs)?e.outputs.map((function(e){return f.Output.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.inputs?t.inputs=e.inputs.map((function(e){return e?f.Input.toJSON(e):void 0})):t.inputs=[],e.outputs?t.outputs=e.outputs.map((function(e){return e?f.Output.toJSON(e):void 0})):t.outputs=[],t},fromPartial:function(e){var t,n,r={inputs:[],outputs:[]};return r.inputs=(null===(t=e.inputs)||void 0===t?void 0:t.map((function(e){return f.Input.fromPartial(e)})))||[],r.outputs=(null===(n=e.outputs)||void 0===n?void 0:n.map((function(e){return f.Output.fromPartial(e)})))||[],r}},t.MsgMultiSendResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create()},decode:function(e,t){for(var n=e instanceof d.Reader?e:new d.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a={denom:"",amount:""};n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{denom:(0,s.isSet)(e.denom)?String(e.denom):"",amount:(0,s.isSet)(e.amount)?String(e.amount):""}},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t,n,r={denom:"",amount:""};return r.denom=null!==(t=e.denom)&&void 0!==t?t:"",r.amount=null!==(n=e.amount)&&void 0!==n?n:"",r}},t.DecCoin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a={denom:"",amount:""};n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{denom:(0,s.isSet)(e.denom)?String(e.denom):"",amount:(0,s.isSet)(e.amount)?String(e.amount):""}},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t,n,r={denom:"",amount:""};return r.denom=null!==(t=e.denom)&&void 0!==t?t:"",r.amount=null!==(n=e.amount)&&void 0!==n?n:"",r}},t.IntProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return""!==e.int&&t.uint32(10).string(e.int),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a={int:""};n.pos>>3==1?a.int=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{int:(0,s.isSet)(e.int)?String(e.int):""}},toJSON:function(e){var t={};return void 0!==e.int&&(t.int=e.int),t},fromPartial:function(e){var t,n={int:""};return n.int=null!==(t=e.int)&&void 0!==t?t:"",n}},t.DecProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return""!==e.dec&&t.uint32(10).string(e.dec),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a={dec:""};n.pos>>3==1?a.dec=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{dec:(0,s.isSet)(e.dec)?String(e.dec):""}},toJSON:function(e){var t={};return void 0!==e.dec&&(t.dec=e.dec),t},fromPartial:function(e){var t,n={dec:""};return n.dec=null!==(t=e.dec)&&void 0!==t?t:"",n}}},85525:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PrivKey=t.PubKey=t.protobufPackage=void 0;var o=i(n(51679)),s=n(92625);function c(){return{key:new Uint8Array}}function u(){return{key:new Uint8Array}}t.protobufPackage="cosmos.crypto.ed25519",t.PubKey={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a=c();n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){return{key:(0,s.isSet)(e.key)?(0,s.bytesFromBase64)(e.key):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=(0,s.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t,n=c();return n.key=null!==(t=e.key)&&void 0!==t?t:new Uint8Array,n}},t.PrivKey={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a=u();n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){return{key:(0,s.isSet)(e.key)?(0,s.bytesFromBase64)(e.key):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=(0,s.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t,n=u();return n.key=null!==(t=e.key)&&void 0!==t?t:new Uint8Array,n}}},37466:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LegacyAminoPubKey=t.protobufPackage=void 0;var s=n(92234),c=o(n(51679)),u=n(92625);t.protobufPackage="cosmos.crypto.multisig",t.LegacyAminoPubKey={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create();0!==e.threshold&&t.uint32(8).uint32(e.threshold);var n,a=r(e.publicKeys);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.Any.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){for(var n=e instanceof c.Reader?e:new c.Reader(e),r=void 0===t?n.len:n.pos+t,a={threshold:0,publicKeys:[]};n.pos>>3){case 1:a.threshold=n.uint32();break;case 2:a.publicKeys.push(s.Any.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{threshold:(0,u.isSet)(e.threshold)?Number(e.threshold):0,publicKeys:Array.isArray(null==e?void 0:e.publicKeys)?e.publicKeys.map((function(e){return s.Any.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.threshold&&(t.threshold=Math.round(e.threshold)),e.publicKeys?t.publicKeys=e.publicKeys.map((function(e){return e?s.Any.toJSON(e):void 0})):t.publicKeys=[],t},fromPartial:function(e){var t,n,r={threshold:0,publicKeys:[]};return r.threshold=null!==(t=e.threshold)&&void 0!==t?t:0,r.publicKeys=(null===(n=e.publicKeys)||void 0===n?void 0:n.map((function(e){return s.Any.fromPartial(e)})))||[],r}}},67972:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CompactBitArray=t.MultiSignature=t.protobufPackage=void 0;var s=o(n(51679)),c=n(92625);function u(){return{extraBitsStored:0,elems:new Uint8Array}}t.protobufPackage="cosmos.crypto.multisig.v1beta1",t.MultiSignature={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Writer.create(),a=r(e.signatures);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){for(var n=e instanceof s.Reader?e:new s.Reader(e),r=void 0===t?n.len:n.pos+t,a={signatures:[]};n.pos>>3==1?a.signatures.push(n.bytes()):n.skipType(7&i)}return a},fromJSON:function(e){return{signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map((function(e){return(0,c.bytesFromBase64)(e)})):[]}},toJSON:function(e){var t={};return e.signatures?t.signatures=e.signatures.map((function(e){return(0,c.base64FromBytes)(void 0!==e?e:new Uint8Array)})):t.signatures=[],t},fromPartial:function(e){var t,n={signatures:[]};return n.signatures=(null===(t=e.signatures)||void 0===t?void 0:t.map((function(e){return e})))||[],n}},t.CompactBitArray={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Writer.create();return 0!==e.extraBitsStored&&t.uint32(8).uint32(e.extraBitsStored),0!==e.elems.length&&t.uint32(18).bytes(e.elems),t},decode:function(e,t){for(var n=e instanceof s.Reader?e:new s.Reader(e),r=void 0===t?n.len:n.pos+t,a=u();n.pos>>3){case 1:a.extraBitsStored=n.uint32();break;case 2:a.elems=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{extraBitsStored:(0,c.isSet)(e.extraBitsStored)?Number(e.extraBitsStored):0,elems:(0,c.isSet)(e.elems)?(0,c.bytesFromBase64)(e.elems):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.extraBitsStored&&(t.extraBitsStored=Math.round(e.extraBitsStored)),void 0!==e.elems&&(t.elems=(0,c.base64FromBytes)(void 0!==e.elems?e.elems:new Uint8Array)),t},fromPartial:function(e){var t,n,r=u();return r.extraBitsStored=null!==(t=e.extraBitsStored)&&void 0!==t?t:0,r.elems=null!==(n=e.elems)&&void 0!==n?n:new Uint8Array,r}}},19384:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PrivKey=t.PubKey=t.protobufPackage=void 0;var o=i(n(51679)),s=n(92625);function c(){return{key:new Uint8Array}}function u(){return{key:new Uint8Array}}t.protobufPackage="cosmos.crypto.secp256k1",t.PubKey={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a=c();n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){return{key:(0,s.isSet)(e.key)?(0,s.bytesFromBase64)(e.key):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=(0,s.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t,n=c();return n.key=null!==(t=e.key)&&void 0!==t?t:new Uint8Array,n}},t.PrivKey={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a=u();n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){return{key:(0,s.isSet)(e.key)?(0,s.bytesFromBase64)(e.key):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=(0,s.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t,n=u();return n.key=null!==(t=e.key)&&void 0!==t?t:new Uint8Array,n}}},15283:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureDescriptor_Data_Multi=t.SignatureDescriptor_Data_Single=t.SignatureDescriptor_Data=t.SignatureDescriptor=t.SignatureDescriptors=t.signModeToJSON=t.signModeFromJSON=t.SignMode=t.protobufPackage=void 0;var s,c=n(67972),u=n(92234),f=o(n(51679)),d=n(92625);function l(e){switch(e){case 0:case"SIGN_MODE_UNSPECIFIED":return s.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return s.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return s.SIGN_MODE_TEXTUAL;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return s.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return s.SIGN_MODE_EIP_191;default:return s.UNRECOGNIZED}}function p(e){switch(e){case s.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case s.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case s.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case s.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case s.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function b(){return{publicKey:void 0,data:void 0,sequence:d.Long.UZERO}}function h(){return{mode:0,signature:new Uint8Array}}t.protobufPackage="cosmos.tx.signing.v1beta1",function(e){e[e.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",e[e.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",e[e.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",e[e.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",e[e.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.SignMode||(t.SignMode={})),t.signModeFromJSON=l,t.signModeToJSON=p,t.SignatureDescriptors={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create(),i=r(e.signatures);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.SignatureDescriptor.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){for(var r=e instanceof f.Reader?e:new f.Reader(e),a=void 0===n?r.len:r.pos+n,i={signatures:[]};r.pos>>3==1?i.signatures.push(t.SignatureDescriptor.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){return{signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map((function(e){return t.SignatureDescriptor.fromJSON(e)})):[]}},toJSON:function(e){var n={};return e.signatures?n.signatures=e.signatures.map((function(e){return e?t.SignatureDescriptor.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n,r={signatures:[]};return r.signatures=(null===(n=e.signatures)||void 0===n?void 0:n.map((function(e){return t.SignatureDescriptor.fromPartial(e)})))||[],r}},t.SignatureDescriptor={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create();return void 0!==e.publicKey&&u.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),void 0!==e.data&&t.SignatureDescriptor_Data.encode(e.data,n.uint32(18).fork()).ldelim(),e.sequence.isZero()||n.uint32(24).uint64(e.sequence),n},decode:function(e,n){for(var r=e instanceof f.Reader?e:new f.Reader(e),a=void 0===n?r.len:r.pos+n,i=b();r.pos>>3){case 1:i.publicKey=u.Any.decode(r,r.uint32());break;case 2:i.data=t.SignatureDescriptor_Data.decode(r,r.uint32());break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{publicKey:(0,d.isSet)(e.publicKey)?u.Any.fromJSON(e.publicKey):void 0,data:(0,d.isSet)(e.data)?t.SignatureDescriptor_Data.fromJSON(e.data):void 0,sequence:(0,d.isSet)(e.sequence)?d.Long.fromValue(e.sequence):d.Long.UZERO}},toJSON:function(e){var n={};return void 0!==e.publicKey&&(n.publicKey=e.publicKey?u.Any.toJSON(e.publicKey):void 0),void 0!==e.data&&(n.data=e.data?t.SignatureDescriptor_Data.toJSON(e.data):void 0),void 0!==e.sequence&&(n.sequence=(e.sequence||d.Long.UZERO).toString()),n},fromPartial:function(e){var n=b();return n.publicKey=void 0!==e.publicKey&&null!==e.publicKey?u.Any.fromPartial(e.publicKey):void 0,n.data=void 0!==e.data&&null!==e.data?t.SignatureDescriptor_Data.fromPartial(e.data):void 0,n.sequence=void 0!==e.sequence&&null!==e.sequence?d.Long.fromValue(e.sequence):d.Long.UZERO,n}},t.SignatureDescriptor_Data={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create();return void 0!==e.single&&t.SignatureDescriptor_Data_Single.encode(e.single,n.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.SignatureDescriptor_Data_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof f.Reader?e:new f.Reader(e),a=void 0===n?r.len:r.pos+n,i={single:void 0,multi:void 0};r.pos>>3){case 1:i.single=t.SignatureDescriptor_Data_Single.decode(r,r.uint32());break;case 2:i.multi=t.SignatureDescriptor_Data_Multi.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{single:(0,d.isSet)(e.single)?t.SignatureDescriptor_Data_Single.fromJSON(e.single):void 0,multi:(0,d.isSet)(e.multi)?t.SignatureDescriptor_Data_Multi.fromJSON(e.multi):void 0}},toJSON:function(e){var n={};return void 0!==e.single&&(n.single=e.single?t.SignatureDescriptor_Data_Single.toJSON(e.single):void 0),void 0!==e.multi&&(n.multi=e.multi?t.SignatureDescriptor_Data_Multi.toJSON(e.multi):void 0),n},fromPartial:function(e){var n={single:void 0,multi:void 0};return n.single=void 0!==e.single&&null!==e.single?t.SignatureDescriptor_Data_Single.fromPartial(e.single):void 0,n.multi=void 0!==e.multi&&null!==e.multi?t.SignatureDescriptor_Data_Multi.fromPartial(e.multi):void 0,n}},t.SignatureDescriptor_Data_Single={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create();return 0!==e.mode&&t.uint32(8).int32(e.mode),0!==e.signature.length&&t.uint32(18).bytes(e.signature),t},decode:function(e,t){for(var n=e instanceof f.Reader?e:new f.Reader(e),r=void 0===t?n.len:n.pos+t,a=h();n.pos>>3){case 1:a.mode=n.int32();break;case 2:a.signature=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{mode:(0,d.isSet)(e.mode)?l(e.mode):0,signature:(0,d.isSet)(e.signature)?(0,d.bytesFromBase64)(e.signature):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.mode&&(t.mode=p(e.mode)),void 0!==e.signature&&(t.signature=(0,d.base64FromBytes)(void 0!==e.signature?e.signature:new Uint8Array)),t},fromPartial:function(e){var t,n,r=h();return r.mode=null!==(t=e.mode)&&void 0!==t?t:0,r.signature=null!==(n=e.signature)&&void 0!==n?n:new Uint8Array,r}},t.SignatureDescriptor_Data_Multi={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create();void 0!==e.bitarray&&c.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.SignatureDescriptor_Data.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){for(var r=e instanceof f.Reader?e:new f.Reader(e),a=void 0===n?r.len:r.pos+n,i={bitarray:void 0,signatures:[]};r.pos>>3){case 1:i.bitarray=c.CompactBitArray.decode(r,r.uint32());break;case 2:i.signatures.push(t.SignatureDescriptor_Data.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{bitarray:(0,d.isSet)(e.bitarray)?c.CompactBitArray.fromJSON(e.bitarray):void 0,signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map((function(e){return t.SignatureDescriptor_Data.fromJSON(e)})):[]}},toJSON:function(e){var n={};return void 0!==e.bitarray&&(n.bitarray=e.bitarray?c.CompactBitArray.toJSON(e.bitarray):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return e?t.SignatureDescriptor_Data.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n,r={bitarray:void 0,signatures:[]};return r.bitarray=void 0!==e.bitarray&&null!==e.bitarray?c.CompactBitArray.fromPartial(e.bitarray):void 0,r.signatures=(null===(n=e.signatures)||void 0===n?void 0:n.map((function(e){return t.SignatureDescriptor_Data.fromPartial(e)})))||[],r}}},64182:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Fee=t.ModeInfo_Multi=t.ModeInfo_Single=t.ModeInfo=t.SignerInfo=t.AuthInfo=t.TxBody=t.SignDoc=t.TxRaw=t.Tx=t.protobufPackage=void 0;var s=n(92234),c=n(15283),u=n(67972),f=n(25026),d=o(n(51679)),l=n(92625);function p(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,signatures:[]}}function b(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,chainId:"",accountNumber:l.Long.UZERO}}function h(){return{messages:[],memo:"",timeoutHeight:l.Long.UZERO,extensionOptions:[],nonCriticalExtensionOptions:[]}}function y(){return{publicKey:void 0,modeInfo:void 0,sequence:l.Long.UZERO}}function m(){return{amount:[],gasLimit:l.Long.UZERO,payer:"",granter:""}}t.protobufPackage="cosmos.tx.v1beta1",t.Tx={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create();void 0!==e.body&&t.TxBody.encode(e.body,n.uint32(10).fork()).ldelim(),void 0!==e.authInfo&&t.AuthInfo.encode(e.authInfo,n.uint32(18).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.uint32(26).bytes(o)}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){for(var r=e instanceof d.Reader?e:new d.Reader(e),a=void 0===n?r.len:r.pos+n,i={body:void 0,authInfo:void 0,signatures:[]};r.pos>>3){case 1:i.body=t.TxBody.decode(r,r.uint32());break;case 2:i.authInfo=t.AuthInfo.decode(r,r.uint32());break;case 3:i.signatures.push(r.bytes());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{body:(0,l.isSet)(e.body)?t.TxBody.fromJSON(e.body):void 0,authInfo:(0,l.isSet)(e.authInfo)?t.AuthInfo.fromJSON(e.authInfo):void 0,signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map((function(e){return(0,l.bytesFromBase64)(e)})):[]}},toJSON:function(e){var n={};return void 0!==e.body&&(n.body=e.body?t.TxBody.toJSON(e.body):void 0),void 0!==e.authInfo&&(n.authInfo=e.authInfo?t.AuthInfo.toJSON(e.authInfo):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return(0,l.base64FromBytes)(void 0!==e?e:new Uint8Array)})):n.signatures=[],n},fromPartial:function(e){var n,r={body:void 0,authInfo:void 0,signatures:[]};return r.body=void 0!==e.body&&null!==e.body?t.TxBody.fromPartial(e.body):void 0,r.authInfo=void 0!==e.authInfo&&null!==e.authInfo?t.AuthInfo.fromPartial(e.authInfo):void 0,r.signatures=(null===(n=e.signatures)||void 0===n?void 0:n.map((function(e){return e})))||[],r}},t.TxRaw={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create();0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes);var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(26).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){for(var n=e instanceof d.Reader?e:new d.Reader(e),r=void 0===t?n.len:n.pos+t,a=p();n.pos>>3){case 1:a.bodyBytes=n.bytes();break;case 2:a.authInfoBytes=n.bytes();break;case 3:a.signatures.push(n.bytes());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{bodyBytes:(0,l.isSet)(e.bodyBytes)?(0,l.bytesFromBase64)(e.bodyBytes):new Uint8Array,authInfoBytes:(0,l.isSet)(e.authInfoBytes)?(0,l.bytesFromBase64)(e.authInfoBytes):new Uint8Array,signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map((function(e){return(0,l.bytesFromBase64)(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.bodyBytes&&(t.bodyBytes=(0,l.base64FromBytes)(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=(0,l.base64FromBytes)(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),e.signatures?t.signatures=e.signatures.map((function(e){return(0,l.base64FromBytes)(void 0!==e?e:new Uint8Array)})):t.signatures=[],t},fromPartial:function(e){var t,n,r,a=p();return a.bodyBytes=null!==(t=e.bodyBytes)&&void 0!==t?t:new Uint8Array,a.authInfoBytes=null!==(n=e.authInfoBytes)&&void 0!==n?n:new Uint8Array,a.signatures=(null===(r=e.signatures)||void 0===r?void 0:r.map((function(e){return e})))||[],a}},t.SignDoc={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create();return 0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes),""!==e.chainId&&t.uint32(26).string(e.chainId),e.accountNumber.isZero()||t.uint32(32).uint64(e.accountNumber),t},decode:function(e,t){for(var n=e instanceof d.Reader?e:new d.Reader(e),r=void 0===t?n.len:n.pos+t,a=b();n.pos>>3){case 1:a.bodyBytes=n.bytes();break;case 2:a.authInfoBytes=n.bytes();break;case 3:a.chainId=n.string();break;case 4:a.accountNumber=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{bodyBytes:(0,l.isSet)(e.bodyBytes)?(0,l.bytesFromBase64)(e.bodyBytes):new Uint8Array,authInfoBytes:(0,l.isSet)(e.authInfoBytes)?(0,l.bytesFromBase64)(e.authInfoBytes):new Uint8Array,chainId:(0,l.isSet)(e.chainId)?String(e.chainId):"",accountNumber:(0,l.isSet)(e.accountNumber)?l.Long.fromValue(e.accountNumber):l.Long.UZERO}},toJSON:function(e){var t={};return void 0!==e.bodyBytes&&(t.bodyBytes=(0,l.base64FromBytes)(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=(0,l.base64FromBytes)(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||l.Long.UZERO).toString()),t},fromPartial:function(e){var t,n,r,a=b();return a.bodyBytes=null!==(t=e.bodyBytes)&&void 0!==t?t:new Uint8Array,a.authInfoBytes=null!==(n=e.authInfoBytes)&&void 0!==n?n:new Uint8Array,a.chainId=null!==(r=e.chainId)&&void 0!==r?r:"",a.accountNumber=void 0!==e.accountNumber&&null!==e.accountNumber?l.Long.fromValue(e.accountNumber):l.Long.UZERO,a}},t.TxBody={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create(),a=r(e.messages);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Any.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}""!==e.memo&&n.uint32(18).string(e.memo),e.timeoutHeight.isZero()||n.uint32(24).uint64(e.timeoutHeight);var o,c=r(e.extensionOptions);try{for(c.s();!(o=c.n()).done;){var u=o.value;s.Any.encode(u,n.uint32(8186).fork()).ldelim()}}catch(e){c.e(e)}finally{c.f()}var f,l=r(e.nonCriticalExtensionOptions);try{for(l.s();!(f=l.n()).done;){var p=f.value;s.Any.encode(p,n.uint32(16378).fork()).ldelim()}}catch(e){l.e(e)}finally{l.f()}return n},decode:function(e,t){for(var n=e instanceof d.Reader?e:new d.Reader(e),r=void 0===t?n.len:n.pos+t,a=h();n.pos>>3){case 1:a.messages.push(s.Any.decode(n,n.uint32()));break;case 2:a.memo=n.string();break;case 3:a.timeoutHeight=n.uint64();break;case 1023:a.extensionOptions.push(s.Any.decode(n,n.uint32()));break;case 2047:a.nonCriticalExtensionOptions.push(s.Any.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{messages:Array.isArray(null==e?void 0:e.messages)?e.messages.map((function(e){return s.Any.fromJSON(e)})):[],memo:(0,l.isSet)(e.memo)?String(e.memo):"",timeoutHeight:(0,l.isSet)(e.timeoutHeight)?l.Long.fromValue(e.timeoutHeight):l.Long.UZERO,extensionOptions:Array.isArray(null==e?void 0:e.extensionOptions)?e.extensionOptions.map((function(e){return s.Any.fromJSON(e)})):[],nonCriticalExtensionOptions:Array.isArray(null==e?void 0:e.nonCriticalExtensionOptions)?e.nonCriticalExtensionOptions.map((function(e){return s.Any.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.messages?t.messages=e.messages.map((function(e){return e?s.Any.toJSON(e):void 0})):t.messages=[],void 0!==e.memo&&(t.memo=e.memo),void 0!==e.timeoutHeight&&(t.timeoutHeight=(e.timeoutHeight||l.Long.UZERO).toString()),e.extensionOptions?t.extensionOptions=e.extensionOptions.map((function(e){return e?s.Any.toJSON(e):void 0})):t.extensionOptions=[],e.nonCriticalExtensionOptions?t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map((function(e){return e?s.Any.toJSON(e):void 0})):t.nonCriticalExtensionOptions=[],t},fromPartial:function(e){var t,n,r,a,i=h();return i.messages=(null===(t=e.messages)||void 0===t?void 0:t.map((function(e){return s.Any.fromPartial(e)})))||[],i.memo=null!==(n=e.memo)&&void 0!==n?n:"",i.timeoutHeight=void 0!==e.timeoutHeight&&null!==e.timeoutHeight?l.Long.fromValue(e.timeoutHeight):l.Long.UZERO,i.extensionOptions=(null===(r=e.extensionOptions)||void 0===r?void 0:r.map((function(e){return s.Any.fromPartial(e)})))||[],i.nonCriticalExtensionOptions=(null===(a=e.nonCriticalExtensionOptions)||void 0===a?void 0:a.map((function(e){return s.Any.fromPartial(e)})))||[],i}},t.AuthInfo={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create(),i=r(e.signerInfos);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.SignerInfo.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return void 0!==e.fee&&t.Fee.encode(e.fee,a.uint32(18).fork()).ldelim(),a},decode:function(e,n){for(var r=e instanceof d.Reader?e:new d.Reader(e),a=void 0===n?r.len:r.pos+n,i={signerInfos:[],fee:void 0};r.pos>>3){case 1:i.signerInfos.push(t.SignerInfo.decode(r,r.uint32()));break;case 2:i.fee=t.Fee.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{signerInfos:Array.isArray(null==e?void 0:e.signerInfos)?e.signerInfos.map((function(e){return t.SignerInfo.fromJSON(e)})):[],fee:(0,l.isSet)(e.fee)?t.Fee.fromJSON(e.fee):void 0}},toJSON:function(e){var n={};return e.signerInfos?n.signerInfos=e.signerInfos.map((function(e){return e?t.SignerInfo.toJSON(e):void 0})):n.signerInfos=[],void 0!==e.fee&&(n.fee=e.fee?t.Fee.toJSON(e.fee):void 0),n},fromPartial:function(e){var n,r={signerInfos:[],fee:void 0};return r.signerInfos=(null===(n=e.signerInfos)||void 0===n?void 0:n.map((function(e){return t.SignerInfo.fromPartial(e)})))||[],r.fee=void 0!==e.fee&&null!==e.fee?t.Fee.fromPartial(e.fee):void 0,r}},t.SignerInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create();return void 0!==e.publicKey&&s.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),void 0!==e.modeInfo&&t.ModeInfo.encode(e.modeInfo,n.uint32(18).fork()).ldelim(),e.sequence.isZero()||n.uint32(24).uint64(e.sequence),n},decode:function(e,n){for(var r=e instanceof d.Reader?e:new d.Reader(e),a=void 0===n?r.len:r.pos+n,i=y();r.pos>>3){case 1:i.publicKey=s.Any.decode(r,r.uint32());break;case 2:i.modeInfo=t.ModeInfo.decode(r,r.uint32());break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{publicKey:(0,l.isSet)(e.publicKey)?s.Any.fromJSON(e.publicKey):void 0,modeInfo:(0,l.isSet)(e.modeInfo)?t.ModeInfo.fromJSON(e.modeInfo):void 0,sequence:(0,l.isSet)(e.sequence)?l.Long.fromValue(e.sequence):l.Long.UZERO}},toJSON:function(e){var n={};return void 0!==e.publicKey&&(n.publicKey=e.publicKey?s.Any.toJSON(e.publicKey):void 0),void 0!==e.modeInfo&&(n.modeInfo=e.modeInfo?t.ModeInfo.toJSON(e.modeInfo):void 0),void 0!==e.sequence&&(n.sequence=(e.sequence||l.Long.UZERO).toString()),n},fromPartial:function(e){var n=y();return n.publicKey=void 0!==e.publicKey&&null!==e.publicKey?s.Any.fromPartial(e.publicKey):void 0,n.modeInfo=void 0!==e.modeInfo&&null!==e.modeInfo?t.ModeInfo.fromPartial(e.modeInfo):void 0,n.sequence=void 0!==e.sequence&&null!==e.sequence?l.Long.fromValue(e.sequence):l.Long.UZERO,n}},t.ModeInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create();return void 0!==e.single&&t.ModeInfo_Single.encode(e.single,n.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.ModeInfo_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof d.Reader?e:new d.Reader(e),a=void 0===n?r.len:r.pos+n,i={single:void 0,multi:void 0};r.pos>>3){case 1:i.single=t.ModeInfo_Single.decode(r,r.uint32());break;case 2:i.multi=t.ModeInfo_Multi.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{single:(0,l.isSet)(e.single)?t.ModeInfo_Single.fromJSON(e.single):void 0,multi:(0,l.isSet)(e.multi)?t.ModeInfo_Multi.fromJSON(e.multi):void 0}},toJSON:function(e){var n={};return void 0!==e.single&&(n.single=e.single?t.ModeInfo_Single.toJSON(e.single):void 0),void 0!==e.multi&&(n.multi=e.multi?t.ModeInfo_Multi.toJSON(e.multi):void 0),n},fromPartial:function(e){var n={single:void 0,multi:void 0};return n.single=void 0!==e.single&&null!==e.single?t.ModeInfo_Single.fromPartial(e.single):void 0,n.multi=void 0!==e.multi&&null!==e.multi?t.ModeInfo_Multi.fromPartial(e.multi):void 0,n}},t.ModeInfo_Single={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create();return 0!==e.mode&&t.uint32(8).int32(e.mode),t},decode:function(e,t){for(var n=e instanceof d.Reader?e:new d.Reader(e),r=void 0===t?n.len:n.pos+t,a={mode:0};n.pos>>3==1?a.mode=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){return{mode:(0,l.isSet)(e.mode)?(0,c.signModeFromJSON)(e.mode):0}},toJSON:function(e){var t={};return void 0!==e.mode&&(t.mode=(0,c.signModeToJSON)(e.mode)),t},fromPartial:function(e){var t,n={mode:0};return n.mode=null!==(t=e.mode)&&void 0!==t?t:0,n}},t.ModeInfo_Multi={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create();void 0!==e.bitarray&&u.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();var a,i=r(e.modeInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.ModeInfo.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){for(var r=e instanceof d.Reader?e:new d.Reader(e),a=void 0===n?r.len:r.pos+n,i={bitarray:void 0,modeInfos:[]};r.pos>>3){case 1:i.bitarray=u.CompactBitArray.decode(r,r.uint32());break;case 2:i.modeInfos.push(t.ModeInfo.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{bitarray:(0,l.isSet)(e.bitarray)?u.CompactBitArray.fromJSON(e.bitarray):void 0,modeInfos:Array.isArray(null==e?void 0:e.modeInfos)?e.modeInfos.map((function(e){return t.ModeInfo.fromJSON(e)})):[]}},toJSON:function(e){var n={};return void 0!==e.bitarray&&(n.bitarray=e.bitarray?u.CompactBitArray.toJSON(e.bitarray):void 0),e.modeInfos?n.modeInfos=e.modeInfos.map((function(e){return e?t.ModeInfo.toJSON(e):void 0})):n.modeInfos=[],n},fromPartial:function(e){var n,r={bitarray:void 0,modeInfos:[]};return r.bitarray=void 0!==e.bitarray&&null!==e.bitarray?u.CompactBitArray.fromPartial(e.bitarray):void 0,r.modeInfos=(null===(n=e.modeInfos)||void 0===n?void 0:n.map((function(e){return t.ModeInfo.fromPartial(e)})))||[],r}},t.Fee={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create(),a=r(e.amount);try{for(a.s();!(t=a.n()).done;){var i=t.value;f.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return e.gasLimit.isZero()||n.uint32(16).uint64(e.gasLimit),""!==e.payer&&n.uint32(26).string(e.payer),""!==e.granter&&n.uint32(34).string(e.granter),n},decode:function(e,t){for(var n=e instanceof d.Reader?e:new d.Reader(e),r=void 0===t?n.len:n.pos+t,a=m();n.pos>>3){case 1:a.amount.push(f.Coin.decode(n,n.uint32()));break;case 2:a.gasLimit=n.uint64();break;case 3:a.payer=n.string();break;case 4:a.granter=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{amount:Array.isArray(null==e?void 0:e.amount)?e.amount.map((function(e){return f.Coin.fromJSON(e)})):[],gasLimit:(0,l.isSet)(e.gasLimit)?l.Long.fromValue(e.gasLimit):l.Long.UZERO,payer:(0,l.isSet)(e.payer)?String(e.payer):"",granter:(0,l.isSet)(e.granter)?String(e.granter):""}},toJSON:function(e){var t={};return e.amount?t.amount=e.amount.map((function(e){return e?f.Coin.toJSON(e):void 0})):t.amount=[],void 0!==e.gasLimit&&(t.gasLimit=(e.gasLimit||l.Long.UZERO).toString()),void 0!==e.payer&&(t.payer=e.payer),void 0!==e.granter&&(t.granter=e.granter),t},fromPartial:function(e){var t,n,r,a=m();return a.amount=(null===(t=e.amount)||void 0===t?void 0:t.map((function(e){return f.Coin.fromPartial(e)})))||[],a.gasLimit=void 0!==e.gasLimit&&null!==e.gasLimit?l.Long.fromValue(e.gasLimit):l.Long.UZERO,a.payer=null!==(n=e.payer)&&void 0!==n?n:"",a.granter=null!==(r=e.granter)&&void 0!==r?r:"",a}}},87590:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleVersion=t.CancelSoftwareUpgradeProposal=t.SoftwareUpgradeProposal=t.Plan=t.protobufPackage=void 0;var o=n(69919),s=n(92234),c=n(92625),u=i(n(51679));function f(){return{name:"",time:void 0,height:c.Long.ZERO,info:"",upgradedClientState:void 0}}function d(){return{name:"",version:c.Long.UZERO}}t.protobufPackage="cosmos.upgrade.v1beta1",t.Plan={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return""!==e.name&&t.uint32(10).string(e.name),void 0!==e.time&&o.Timestamp.encode(e.time,t.uint32(18).fork()).ldelim(),e.height.isZero()||t.uint32(24).int64(e.height),""!==e.info&&t.uint32(34).string(e.info),void 0!==e.upgradedClientState&&s.Any.encode(e.upgradedClientState,t.uint32(42).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a=f();n.pos>>3){case 1:a.name=n.string();break;case 2:a.time=o.Timestamp.decode(n,n.uint32());break;case 3:a.height=n.int64();break;case 4:a.info=n.string();break;case 5:a.upgradedClientState=s.Any.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{name:(0,c.isSet)(e.name)?String(e.name):"",time:(0,c.isSet)(e.time)?(0,c.fromJsonTimestamp)(e.time):void 0,height:(0,c.isSet)(e.height)?c.Long.fromValue(e.height):c.Long.ZERO,info:(0,c.isSet)(e.info)?String(e.info):"",upgradedClientState:(0,c.isSet)(e.upgradedClientState)?s.Any.fromJSON(e.upgradedClientState):void 0}},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.time&&(t.time=(0,c.fromTimestamp)(e.time).toISOString()),void 0!==e.height&&(t.height=(e.height||c.Long.ZERO).toString()),void 0!==e.info&&(t.info=e.info),void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?s.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial:function(e){var t,n,r=f();return r.name=null!==(t=e.name)&&void 0!==t?t:"",r.time=void 0!==e.time&&null!==e.time?o.Timestamp.fromPartial(e.time):void 0,r.height=void 0!==e.height&&null!==e.height?c.Long.fromValue(e.height):c.Long.ZERO,r.info=null!==(n=e.info)&&void 0!==n?n:"",r.upgradedClientState=void 0!==e.upgradedClientState&&null!==e.upgradedClientState?s.Any.fromPartial(e.upgradedClientState):void 0,r}},t.SoftwareUpgradeProposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return""!==e.title&&n.uint32(10).string(e.title),""!==e.description&&n.uint32(18).string(e.description),void 0!==e.plan&&t.Plan.encode(e.plan,n.uint32(26).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof u.Reader?e:new u.Reader(e),a=void 0===n?r.len:r.pos+n,i={title:"",description:"",plan:void 0};r.pos>>3){case 1:i.title=r.string();break;case 2:i.description=r.string();break;case 3:i.plan=t.Plan.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{title:(0,c.isSet)(e.title)?String(e.title):"",description:(0,c.isSet)(e.description)?String(e.description):"",plan:(0,c.isSet)(e.plan)?t.Plan.fromJSON(e.plan):void 0}},toJSON:function(e){var n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.description&&(n.description=e.description),void 0!==e.plan&&(n.plan=e.plan?t.Plan.toJSON(e.plan):void 0),n},fromPartial:function(e){var n,r,a={title:"",description:"",plan:void 0};return a.title=null!==(n=e.title)&&void 0!==n?n:"",a.description=null!==(r=e.description)&&void 0!==r?r:"",a.plan=void 0!==e.plan&&null!==e.plan?t.Plan.fromPartial(e.plan):void 0,a}},t.CancelSoftwareUpgradeProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a={title:"",description:""};n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{title:(0,c.isSet)(e.title)?String(e.title):"",description:(0,c.isSet)(e.description)?String(e.description):""}},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),t},fromPartial:function(e){var t,n,r={title:"",description:""};return r.title=null!==(t=e.title)&&void 0!==t?t:"",r.description=null!==(n=e.description)&&void 0!==n?n:"",r}},t.ModuleVersion={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return""!==e.name&&t.uint32(10).string(e.name),e.version.isZero()||t.uint32(16).uint64(e.version),t},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a=d();n.pos>>3){case 1:a.name=n.string();break;case 2:a.version=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{name:(0,c.isSet)(e.name)?String(e.name):"",version:(0,c.isSet)(e.version)?c.Long.fromValue(e.version):c.Long.UZERO}},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.version&&(t.version=(e.version||c.Long.UZERO).toString()),t},fromPartial:function(e){var t,n=d();return n.name=null!==(t=e.name)&&void 0!==t?t:"",n.version=void 0!==e.version&&null!==e.version?c.Long.fromValue(e.version):c.Long.UZERO,n}}},92234:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Any=t.protobufPackage=void 0;var o=i(n(51679)),s=n(92625);function c(){return{typeUrl:"",value:new Uint8Array}}t.protobufPackage="google.protobuf",t.Any={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a=c();n.pos>>3){case 1:a.typeUrl=n.string();break;case 2:a.value=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{typeUrl:(0,s.isSet)(e.typeUrl)?String(e.typeUrl):"",value:(0,s.isSet)(e.value)?(0,s.bytesFromBase64)(e.value):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.typeUrl&&(t.typeUrl=e.typeUrl),void 0!==e.value&&(t.value=(0,s.base64FromBytes)(void 0!==e.value?e.value:new Uint8Array)),t},fromPartial:function(e){var t,n,r=c();return r.typeUrl=null!==(t=e.typeUrl)&&void 0!==t?t:"",r.value=null!==(n=e.value)&&void 0!==n?n:new Uint8Array,r}}},69919:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.protobufPackage=void 0;var o=n(92625),s=i(n(51679));function c(){return{seconds:o.Long.ZERO,nanos:0}}t.protobufPackage="google.protobuf",t.Timestamp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Writer.create();return e.seconds.isZero()||t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t},decode:function(e,t){for(var n=e instanceof s.Reader?e:new s.Reader(e),r=void 0===t?n.len:n.pos+t,a=c();n.pos>>3){case 1:a.seconds=n.int64();break;case 2:a.nanos=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{seconds:(0,o.isSet)(e.seconds)?o.Long.fromValue(e.seconds):o.Long.ZERO,nanos:(0,o.isSet)(e.nanos)?Number(e.nanos):0}},toJSON:function(e){var t={};return void 0!==e.seconds&&(t.seconds=(e.seconds||o.Long.ZERO).toString()),void 0!==e.nanos&&(t.nanos=Math.round(e.nanos)),t},fromPartial:function(e){var t,n=c();return n.seconds=void 0!==e.seconds&&null!==e.seconds?o.Long.fromValue(e.seconds):o.Long.ZERO,n.nanos=null!==(t=e.nanos)&&void 0!==t?t:0,n}}},92625:function(e,t,n){"use strict";var r=n(62332).Buffer,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fromJsonTimestamp=t.fromTimestamp=t.toTimestamp=t.setPaginationParams=t.isObject=t.isSet=t.fromDuration=t.toDuration=t.omitDefault=t.base64FromBytes=t.bytesFromBase64=t.Long=void 0;var c=o(n(51679)),u=s(n(12620));t.Long=u.default,c.util.Long!==u.default&&(c.util.Long=u.default,c.configure());var f=function(){if(void 0!==f)return f;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),d=f.atob||function(e){return f.Buffer.from(e,"base64").toString("binary")};t.bytesFromBase64=function(e){for(var t=d(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:d.Writer.create();return""!==e.sourcePort&&t.uint32(10).string(e.sourcePort),""!==e.sourceChannel&&t.uint32(18).string(e.sourceChannel),void 0!==e.token&&c.Coin.encode(e.token,t.uint32(26).fork()).ldelim(),""!==e.sender&&t.uint32(34).string(e.sender),""!==e.receiver&&t.uint32(42).string(e.receiver),void 0!==e.timeoutHeight&&u.Height.encode(e.timeoutHeight,t.uint32(50).fork()).ldelim(),e.timeoutTimestamp.isZero()||t.uint32(56).uint64(e.timeoutTimestamp),""!==e.memo&&t.uint32(66).string(e.memo),t},decode:function(e,t){for(var n=e instanceof d.Reader?e:new d.Reader(e),r=void 0===t?n.len:n.pos+t,a=l();n.pos>>3){case 1:a.sourcePort=n.string();break;case 2:a.sourceChannel=n.string();break;case 3:a.token=c.Coin.decode(n,n.uint32());break;case 4:a.sender=n.string();break;case 5:a.receiver=n.string();break;case 6:a.timeoutHeight=u.Height.decode(n,n.uint32());break;case 7:a.timeoutTimestamp=n.uint64();break;case 8:a.memo=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{sourcePort:(0,f.isSet)(e.sourcePort)?String(e.sourcePort):"",sourceChannel:(0,f.isSet)(e.sourceChannel)?String(e.sourceChannel):"",token:(0,f.isSet)(e.token)?c.Coin.fromJSON(e.token):void 0,sender:(0,f.isSet)(e.sender)?String(e.sender):"",receiver:(0,f.isSet)(e.receiver)?String(e.receiver):"",timeoutHeight:(0,f.isSet)(e.timeoutHeight)?u.Height.fromJSON(e.timeoutHeight):void 0,timeoutTimestamp:(0,f.isSet)(e.timeoutTimestamp)?f.Long.fromValue(e.timeoutTimestamp):f.Long.UZERO,memo:(0,f.isSet)(e.memo)?String(e.memo):""}},toJSON:function(e){var t={};return void 0!==e.sourcePort&&(t.sourcePort=e.sourcePort),void 0!==e.sourceChannel&&(t.sourceChannel=e.sourceChannel),void 0!==e.token&&(t.token=e.token?c.Coin.toJSON(e.token):void 0),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.receiver&&(t.receiver=e.receiver),void 0!==e.timeoutHeight&&(t.timeoutHeight=e.timeoutHeight?u.Height.toJSON(e.timeoutHeight):void 0),void 0!==e.timeoutTimestamp&&(t.timeoutTimestamp=(e.timeoutTimestamp||f.Long.UZERO).toString()),void 0!==e.memo&&(t.memo=e.memo),t},fromPartial:function(e){var t,n,r,a,i,o=l();return o.sourcePort=null!==(t=e.sourcePort)&&void 0!==t?t:"",o.sourceChannel=null!==(n=e.sourceChannel)&&void 0!==n?n:"",o.token=void 0!==e.token&&null!==e.token?c.Coin.fromPartial(e.token):void 0,o.sender=null!==(r=e.sender)&&void 0!==r?r:"",o.receiver=null!==(a=e.receiver)&&void 0!==a?a:"",o.timeoutHeight=void 0!==e.timeoutHeight&&null!==e.timeoutHeight?u.Height.fromPartial(e.timeoutHeight):void 0,o.timeoutTimestamp=void 0!==e.timeoutTimestamp&&null!==e.timeoutTimestamp?f.Long.fromValue(e.timeoutTimestamp):f.Long.UZERO,o.memo=null!==(i=e.memo)&&void 0!==i?i:"",o}},t.MsgTransferResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create();return e.sequence.isZero()||t.uint32(8).uint64(e.sequence),t},decode:function(e,t){for(var n=e instanceof d.Reader?e:new d.Reader(e),r=void 0===t?n.len:n.pos+t,a=p();n.pos>>3==1?a.sequence=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){return{sequence:(0,f.isSet)(e.sequence)?f.Long.fromValue(e.sequence):f.Long.UZERO}},toJSON:function(e){var t={};return void 0!==e.sequence&&(t.sequence=(e.sequence||f.Long.UZERO).toString()),t},fromPartial:function(e){var t=p();return t.sequence=void 0!==e.sequence&&null!==e.sequence?f.Long.fromValue(e.sequence):f.Long.UZERO,t}};var b=function(){function e(t){r(this,e),this.rpc=t,this.Transfer=this.Transfer.bind(this)}return a(e,[{key:"Transfer",value:function(e){var n=t.MsgTransfer.encode(e).finish();return this.rpc.request("ibc.applications.transfer.v1.Msg","Transfer",n).then((function(e){return t.MsgTransferResponse.decode(new d.Reader(e))}))}}]),e}();t.MsgClientImpl=b},97060:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.Height=t.UpgradeProposal=t.ClientUpdateProposal=t.ClientConsensusStates=t.ConsensusStateWithHeight=t.IdentifiedClientState=t.protobufPackage=void 0;var s=n(92234),c=n(87590),u=o(n(51679)),f=n(92625);function d(){return{revisionNumber:f.Long.UZERO,revisionHeight:f.Long.UZERO}}t.protobufPackage="ibc.core.client.v1",t.IdentifiedClientState={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.clientState&&s.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a={clientId:"",clientState:void 0};n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.clientState=s.Any.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{clientId:(0,f.isSet)(e.clientId)?String(e.clientId):"",clientState:(0,f.isSet)(e.clientState)?s.Any.fromJSON(e.clientState):void 0}},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.clientState&&(t.clientState=e.clientState?s.Any.toJSON(e.clientState):void 0),t},fromPartial:function(e){var t,n={clientId:"",clientState:void 0};return n.clientId=null!==(t=e.clientId)&&void 0!==t?t:"",n.clientState=void 0!==e.clientState&&null!==e.clientState?s.Any.fromPartial(e.clientState):void 0,n}},t.ConsensusStateWithHeight={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return void 0!==e.height&&t.Height.encode(e.height,n.uint32(10).fork()).ldelim(),void 0!==e.consensusState&&s.Any.encode(e.consensusState,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof u.Reader?e:new u.Reader(e),a=void 0===n?r.len:r.pos+n,i={height:void 0,consensusState:void 0};r.pos>>3){case 1:i.height=t.Height.decode(r,r.uint32());break;case 2:i.consensusState=s.Any.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{height:(0,f.isSet)(e.height)?t.Height.fromJSON(e.height):void 0,consensusState:(0,f.isSet)(e.consensusState)?s.Any.fromJSON(e.consensusState):void 0}},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=e.height?t.Height.toJSON(e.height):void 0),void 0!==e.consensusState&&(n.consensusState=e.consensusState?s.Any.toJSON(e.consensusState):void 0),n},fromPartial:function(e){var n={height:void 0,consensusState:void 0};return n.height=void 0!==e.height&&null!==e.height?t.Height.fromPartial(e.height):void 0,n.consensusState=void 0!==e.consensusState&&null!==e.consensusState?s.Any.fromPartial(e.consensusState):void 0,n}},t.ClientConsensusStates={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();""!==e.clientId&&n.uint32(10).string(e.clientId);var a,i=r(e.consensusStates);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.ConsensusStateWithHeight.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){for(var r=e instanceof u.Reader?e:new u.Reader(e),a=void 0===n?r.len:r.pos+n,i={clientId:"",consensusStates:[]};r.pos>>3){case 1:i.clientId=r.string();break;case 2:i.consensusStates.push(t.ConsensusStateWithHeight.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{clientId:(0,f.isSet)(e.clientId)?String(e.clientId):"",consensusStates:Array.isArray(null==e?void 0:e.consensusStates)?e.consensusStates.map((function(e){return t.ConsensusStateWithHeight.fromJSON(e)})):[]}},toJSON:function(e){var n={};return void 0!==e.clientId&&(n.clientId=e.clientId),e.consensusStates?n.consensusStates=e.consensusStates.map((function(e){return e?t.ConsensusStateWithHeight.toJSON(e):void 0})):n.consensusStates=[],n},fromPartial:function(e){var n,r,a={clientId:"",consensusStates:[]};return a.clientId=null!==(n=e.clientId)&&void 0!==n?n:"",a.consensusStates=(null===(r=e.consensusStates)||void 0===r?void 0:r.map((function(e){return t.ConsensusStateWithHeight.fromPartial(e)})))||[],a}},t.ClientUpdateProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.subjectClientId&&t.uint32(26).string(e.subjectClientId),""!==e.substituteClientId&&t.uint32(34).string(e.substituteClientId),t},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a={title:"",description:"",subjectClientId:"",substituteClientId:""};n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.subjectClientId=n.string();break;case 4:a.substituteClientId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{title:(0,f.isSet)(e.title)?String(e.title):"",description:(0,f.isSet)(e.description)?String(e.description):"",subjectClientId:(0,f.isSet)(e.subjectClientId)?String(e.subjectClientId):"",substituteClientId:(0,f.isSet)(e.substituteClientId)?String(e.substituteClientId):""}},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.subjectClientId&&(t.subjectClientId=e.subjectClientId),void 0!==e.substituteClientId&&(t.substituteClientId=e.substituteClientId),t},fromPartial:function(e){var t,n,r,a,i={title:"",description:"",subjectClientId:"",substituteClientId:""};return i.title=null!==(t=e.title)&&void 0!==t?t:"",i.description=null!==(n=e.description)&&void 0!==n?n:"",i.subjectClientId=null!==(r=e.subjectClientId)&&void 0!==r?r:"",i.substituteClientId=null!==(a=e.substituteClientId)&&void 0!==a?a:"",i}},t.UpgradeProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),void 0!==e.plan&&c.Plan.encode(e.plan,t.uint32(26).fork()).ldelim(),void 0!==e.upgradedClientState&&s.Any.encode(e.upgradedClientState,t.uint32(34).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a={title:"",description:"",plan:void 0,upgradedClientState:void 0};n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.plan=c.Plan.decode(n,n.uint32());break;case 4:a.upgradedClientState=s.Any.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{title:(0,f.isSet)(e.title)?String(e.title):"",description:(0,f.isSet)(e.description)?String(e.description):"",plan:(0,f.isSet)(e.plan)?c.Plan.fromJSON(e.plan):void 0,upgradedClientState:(0,f.isSet)(e.upgradedClientState)?s.Any.fromJSON(e.upgradedClientState):void 0}},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.plan&&(t.plan=e.plan?c.Plan.toJSON(e.plan):void 0),void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?s.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial:function(e){var t,n,r={title:"",description:"",plan:void 0,upgradedClientState:void 0};return r.title=null!==(t=e.title)&&void 0!==t?t:"",r.description=null!==(n=e.description)&&void 0!==n?n:"",r.plan=void 0!==e.plan&&null!==e.plan?c.Plan.fromPartial(e.plan):void 0,r.upgradedClientState=void 0!==e.upgradedClientState&&null!==e.upgradedClientState?s.Any.fromPartial(e.upgradedClientState):void 0,r}},t.Height={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return e.revisionNumber.isZero()||t.uint32(8).uint64(e.revisionNumber),e.revisionHeight.isZero()||t.uint32(16).uint64(e.revisionHeight),t},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a=d();n.pos>>3){case 1:a.revisionNumber=n.uint64();break;case 2:a.revisionHeight=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{revisionNumber:(0,f.isSet)(e.revisionNumber)?f.Long.fromValue(e.revisionNumber):f.Long.UZERO,revisionHeight:(0,f.isSet)(e.revisionHeight)?f.Long.fromValue(e.revisionHeight):f.Long.UZERO}},toJSON:function(e){var t={};return void 0!==e.revisionNumber&&(t.revisionNumber=(e.revisionNumber||f.Long.UZERO).toString()),void 0!==e.revisionHeight&&(t.revisionHeight=(e.revisionHeight||f.Long.UZERO).toString()),t},fromPartial:function(e){var t=d();return t.revisionNumber=void 0!==e.revisionNumber&&null!==e.revisionNumber?f.Long.fromValue(e.revisionNumber):f.Long.UZERO,t.revisionHeight=void 0!==e.revisionHeight&&null!==e.revisionHeight?f.Long.fromValue(e.revisionHeight):f.Long.UZERO,t}},t.Params={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create(),a=r(e.allowedClients);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a={allowedClients:[]};n.pos>>3==1?a.allowedClients.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){return{allowedClients:Array.isArray(null==e?void 0:e.allowedClients)?e.allowedClients.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return e.allowedClients?t.allowedClients=e.allowedClients.map((function(e){return e})):t.allowedClients=[],t},fromPartial:function(e){var t,n={allowedClients:[]};return n.allowedClients=(null===(t=e.allowedClients)||void 0===t?void 0:t.map((function(e){return e})))||[],n}}},15990:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},51679:function(e,t,n){"use strict";e.exports=n(72194)},72194:function(e,t,n){"use strict";var r=t;function a(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(74280),r.BufferWriter=n(53048),r.Reader=n(15879),r.BufferReader=n(2120),r.util=n(15045),r.rpc=n(68657),r.roots=n(68074),r.configure=a,a()},15879:function(e,t,n){"use strict";e.exports=c;var r,a=n(15045),i=a.LongBits,o=a.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u,f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},d=function(){return a.Buffer?function(e){return(c.create=function(e){return a.Buffer.isBuffer(e)?new r(e):f(e)})(e)}:f};function l(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function p(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function b(){if(this.pos+8>this.len)throw s(this,8);return new i(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}c.create=d(),c.prototype._slice=a.Array.prototype.subarray||a.Array.prototype.slice,c.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return u}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return p(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|p(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=a.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=a.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return o.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){r=e,c.create=d(),r._configure();var t=a.Long?"toLong":"toNumber";a.merge(c.prototype,{int64:function(){return l.call(this)[t](!1)},uint64:function(){return l.call(this)[t](!0)},sint64:function(){return l.call(this).zzDecode()[t](!1)},fixed64:function(){return b.call(this)[t](!0)},sfixed64:function(){return b.call(this)[t](!1)}})}},2120:function(e,t,n){"use strict";e.exports=i;var r=n(15879);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(15045);function i(e){r.call(this,e)}i._configure=function(){a.Buffer&&(i.prototype._slice=a.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},68074:function(e){"use strict";e.exports={}},68657:function(e,t,n){"use strict";t.Service=n(34050)},34050:function(e,t,n){"use strict";e.exports=a;var r=n(15045);function a(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(a.prototype=Object.create(r.EventEmitter.prototype)).constructor=a,a.prototype.rpcCall=function e(t,n,a,i,o){if(!i)throw TypeError("request must be specified");var s=this;if(!o)return r.asPromise(e,s,t,n,a,i);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,n){if(e)return s.emit("error",e,t),o(e);if(null!==n){if(!(n instanceof a))try{n=a[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),o(e)}return s.emit("data",n,t),o(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){o(e)}),0)}else setTimeout((function(){o(Error("already ended"))}),0)},a.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},53951:function(e,t,n){"use strict";e.exports=a;var r=n(15045);function a(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=a.zero=new a(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var o=a.zeroHash="\0\0\0\0\0\0\0\0";a.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new a(n,r)},a.from=function(e){if("number"==typeof e)return a.fromNumber(e);if(r.isString(e)){if(!r.Long)return a.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new a(e.low>>>0,e.high>>>0):i},a.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},a.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;a.fromHash=function(e){return e===o?i:new a((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},a.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},a.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},a.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},a.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},15045:function(e,t,n){"use strict";var r=t;function a(e,t,n){for(var r=Object.keys(t),a=0;a0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=a,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function y(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}d.create=l(),d.alloc=function(e){return new a.Array(e)},a.Array!==Array&&(d.alloc=a.pool(d.alloc,a.Array.prototype.subarray)),d.prototype._push=function(e,t,n){return this.tail=this.tail.next=new c(e,t,n),this.len+=t,this},b.prototype=Object.create(c.prototype),b.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new b((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(h,10,i.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=i.from(e);return this._push(h,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(h,t.length(),t)},d.prototype.bool=function(e){return this._push(p,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(y,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=i.from(e);return this._push(y,4,t.lo)._push(y,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(a.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(a.float.writeDoubleLE,8,e)};var m=a.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(p,1,0);if(a.isString(e)){var n=d.alloc(t=o.length(e));o.decode(e,n,0),e=n}return this.uint32(t)._push(m,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(p,1,0)},d.prototype.fork=function(){return this.states=new f(this),this.head=this.tail=new c(u,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},d._configure=function(e){r=e,d.create=l(),r._configure()}},53048:function(e,t,n){"use strict";e.exports=i;var r=n(74280);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(15045);function i(){r.call(this)}function o(e,t,n){e.length<40?a.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i._configure=function(){i.alloc=a._Buffer_allocUnsafe,i.writeBytesBuffer=a.Buffer&&a.Buffer.prototype instanceof Uint8Array&&"set"===a.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=a.Buffer.byteLength(e);return this.uint32(t),t&&this._push(o,t,e),this},i._configure()},54693:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.ModuleAccount=t.BaseAccount=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(4617)),s=n(70631);t.protobufPackage="cosmos.auth.v1beta1";var c={address:"",accountNumber:i.default.UZERO,sequence:i.default.UZERO};t.BaseAccount={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.address&&t.uint32(10).string(e.address),void 0!==e.pubKey&&s.Any.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.accountNumber.isZero()||t.uint32(24).uint64(e.accountNumber),e.sequence.isZero()||t.uint32(32).uint64(e.sequence),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.address=n.string();break;case 2:a.pubKey=s.Any.decode(n,n.uint32());break;case 3:a.accountNumber=n.uint64();break;case 4:a.sequence=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.Any.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=i.default.fromString(e.accountNumber):t.accountNumber=i.default.UZERO,void 0!==e.sequence&&null!==e.sequence?t.sequence=i.default.fromString(e.sequence):t.sequence=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.pubKey&&(t.pubKey=e.pubKey?s.Any.toJSON(e.pubKey):void 0),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||i.default.UZERO).toString()),void 0!==e.sequence&&(t.sequence=(e.sequence||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.Any.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=e.accountNumber:t.accountNumber=i.default.UZERO,void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence=i.default.UZERO,t}};var u={name:"",permissions:""};t.ModuleAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseAccount&&t.BaseAccount.encode(e.baseAccount,n.uint32(10).fork()).ldelim(),""!==e.name&&n.uint32(18).string(e.name);var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.uint32(26).string(s)}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},u);for(i.permissions=[];r.pos>>3){case 1:i.baseAccount=t.BaseAccount.decode(r,r.uint32());break;case 2:i.name=r.string();break;case 3:i.permissions.push(r.string());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},u);if(n.permissions=[],void 0!==e.baseAccount&&null!==e.baseAccount?n.baseAccount=t.BaseAccount.fromJSON(e.baseAccount):n.baseAccount=void 0,void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.permissions&&null!==e.permissions){var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.permissions.push(String(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.baseAccount&&(n.baseAccount=e.baseAccount?t.BaseAccount.toJSON(e.baseAccount):void 0),void 0!==e.name&&(n.name=e.name),e.permissions?n.permissions=e.permissions.map((function(e){return e})):n.permissions=[],n},fromPartial:function(e){var n=Object.assign({},u);if(n.permissions=[],void 0!==e.baseAccount&&null!==e.baseAccount?n.baseAccount=t.BaseAccount.fromPartial(e.baseAccount):n.baseAccount=void 0,void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.permissions&&null!==e.permissions){var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.permissions.push(o)}}catch(e){i.e(e)}finally{i.f()}}return n}};var f={maxMemoCharacters:i.default.UZERO,txSigLimit:i.default.UZERO,txSizeCostPerByte:i.default.UZERO,sigVerifyCostEd25519:i.default.UZERO,sigVerifyCostSecp256k1:i.default.UZERO};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.maxMemoCharacters.isZero()||t.uint32(8).uint64(e.maxMemoCharacters),e.txSigLimit.isZero()||t.uint32(16).uint64(e.txSigLimit),e.txSizeCostPerByte.isZero()||t.uint32(24).uint64(e.txSizeCostPerByte),e.sigVerifyCostEd25519.isZero()||t.uint32(32).uint64(e.sigVerifyCostEd25519),e.sigVerifyCostSecp256k1.isZero()||t.uint32(40).uint64(e.sigVerifyCostSecp256k1),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.maxMemoCharacters=n.uint64();break;case 2:a.txSigLimit=n.uint64();break;case 3:a.txSizeCostPerByte=n.uint64();break;case 4:a.sigVerifyCostEd25519=n.uint64();break;case 5:a.sigVerifyCostSecp256k1=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters?t.maxMemoCharacters=i.default.fromString(e.maxMemoCharacters):t.maxMemoCharacters=i.default.UZERO,void 0!==e.txSigLimit&&null!==e.txSigLimit?t.txSigLimit=i.default.fromString(e.txSigLimit):t.txSigLimit=i.default.UZERO,void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte?t.txSizeCostPerByte=i.default.fromString(e.txSizeCostPerByte):t.txSizeCostPerByte=i.default.UZERO,void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=i.default.fromString(e.sigVerifyCostEd25519):t.sigVerifyCostEd25519=i.default.UZERO,void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=i.default.fromString(e.sigVerifyCostSecp256k1):t.sigVerifyCostSecp256k1=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.maxMemoCharacters&&(t.maxMemoCharacters=(e.maxMemoCharacters||i.default.UZERO).toString()),void 0!==e.txSigLimit&&(t.txSigLimit=(e.txSigLimit||i.default.UZERO).toString()),void 0!==e.txSizeCostPerByte&&(t.txSizeCostPerByte=(e.txSizeCostPerByte||i.default.UZERO).toString()),void 0!==e.sigVerifyCostEd25519&&(t.sigVerifyCostEd25519=(e.sigVerifyCostEd25519||i.default.UZERO).toString()),void 0!==e.sigVerifyCostSecp256k1&&(t.sigVerifyCostSecp256k1=(e.sigVerifyCostSecp256k1||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters?t.maxMemoCharacters=e.maxMemoCharacters:t.maxMemoCharacters=i.default.UZERO,void 0!==e.txSigLimit&&null!==e.txSigLimit?t.txSigLimit=e.txSigLimit:t.txSigLimit=i.default.UZERO,void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte?t.txSizeCostPerByte=e.txSizeCostPerByte:t.txSizeCostPerByte=i.default.UZERO,void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=e.sigVerifyCostEd25519:t.sigVerifyCostEd25519=i.default.UZERO,void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=e.sigVerifyCostSecp256k1:t.sigVerifyCostSecp256k1=i.default.UZERO,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},981:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DecProto=t.IntProto=t.DecCoin=t.Coin=t.protobufPackage=void 0;var a=r(n(12620)),i=r(n(4617));t.protobufPackage="cosmos.base.v1beta1";var o={denom:"",amount:""};t.Coin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t}};var s={denom:"",amount:""};t.DecCoin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t}};var c={int:""};t.IntProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.int&&t.uint32(10).string(e.int),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3==1?a.int=n.string():n.skipType(7&o)}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.int&&null!==e.int?t.int=String(e.int):t.int="",t},toJSON:function(e){var t={};return void 0!==e.int&&(t.int=e.int),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.int&&null!==e.int?t.int=e.int:t.int="",t}};var u={dec:""};t.DecProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.dec&&t.uint32(10).string(e.dec),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3==1?a.dec=n.string():n.skipType(7&o)}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.dec&&null!==e.dec?t.dec=String(e.dec):t.dec="",t},toJSON:function(e){var t={};return void 0!==e.dec&&(t.dec=e.dec),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.dec&&null!==e.dec?t.dec=e.dec:t.dec="",t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},11674:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PermanentLockedAccount=t.PeriodicVestingAccount=t.Period=t.DelayedVestingAccount=t.ContinuousVestingAccount=t.BaseVestingAccount=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(4617)),s=n(54693),c=n(981);t.protobufPackage="cosmos.vesting.v1beta1";var u={endTime:i.default.ZERO};t.BaseVestingAccount={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseAccount&&s.BaseAccount.encode(e.baseAccount,t.uint32(10).fork()).ldelim();var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}var u,f=r(e.delegatedFree);try{for(f.s();!(u=f.n()).done;){var d=u.value;c.Coin.encode(d,t.uint32(26).fork()).ldelim()}}catch(e){f.e(e)}finally{f.f()}var l,p=r(e.delegatedVesting);try{for(p.s();!(l=p.n()).done;){var b=l.value;c.Coin.encode(b,t.uint32(34).fork()).ldelim()}}catch(e){p.e(e)}finally{p.f()}return e.endTime.isZero()||t.uint32(40).int64(e.endTime),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.originalVesting=[],a.delegatedFree=[],a.delegatedVesting=[];n.pos>>3){case 1:a.baseAccount=s.BaseAccount.decode(n,n.uint32());break;case 2:a.originalVesting.push(c.Coin.decode(n,n.uint32()));break;case 3:a.delegatedFree.push(c.Coin.decode(n,n.uint32()));break;case 4:a.delegatedVesting.push(c.Coin.decode(n,n.uint32()));break;case 5:a.endTime=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);if(t.originalVesting=[],t.delegatedFree=[],t.delegatedVesting=[],void 0!==e.baseAccount&&null!==e.baseAccount?t.baseAccount=s.BaseAccount.fromJSON(e.baseAccount):t.baseAccount=void 0,void 0!==e.originalVesting&&null!==e.originalVesting){var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.originalVesting.push(c.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.delegatedFree&&null!==e.delegatedFree){var f,d=r(e.delegatedFree);try{for(d.s();!(f=d.n()).done;){var l=f.value;t.delegatedFree.push(c.Coin.fromJSON(l))}}catch(e){d.e(e)}finally{d.f()}}if(void 0!==e.delegatedVesting&&null!==e.delegatedVesting){var p,b=r(e.delegatedVesting);try{for(b.s();!(p=b.n()).done;){var h=p.value;t.delegatedVesting.push(c.Coin.fromJSON(h))}}catch(e){b.e(e)}finally{b.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=i.default.fromString(e.endTime):t.endTime=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.baseAccount&&(t.baseAccount=e.baseAccount?s.BaseAccount.toJSON(e.baseAccount):void 0),e.originalVesting?t.originalVesting=e.originalVesting.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.originalVesting=[],e.delegatedFree?t.delegatedFree=e.delegatedFree.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.delegatedFree=[],e.delegatedVesting?t.delegatedVesting=e.delegatedVesting.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.delegatedVesting=[],void 0!==e.endTime&&(t.endTime=(e.endTime||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},u);if(t.originalVesting=[],t.delegatedFree=[],t.delegatedVesting=[],void 0!==e.baseAccount&&null!==e.baseAccount?t.baseAccount=s.BaseAccount.fromPartial(e.baseAccount):t.baseAccount=void 0,void 0!==e.originalVesting&&null!==e.originalVesting){var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.originalVesting.push(c.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.delegatedFree&&null!==e.delegatedFree){var f,d=r(e.delegatedFree);try{for(d.s();!(f=d.n()).done;){var l=f.value;t.delegatedFree.push(c.Coin.fromPartial(l))}}catch(e){d.e(e)}finally{d.f()}}if(void 0!==e.delegatedVesting&&null!==e.delegatedVesting){var p,b=r(e.delegatedVesting);try{for(b.s();!(p=b.n()).done;){var h=p.value;t.delegatedVesting.push(c.Coin.fromPartial(h))}}catch(e){b.e(e)}finally{b.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=e.endTime:t.endTime=i.default.ZERO,t}};var f={startTime:i.default.ZERO};t.ContinuousVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),e.startTime.isZero()||n.uint32(16).int64(e.startTime),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);r.pos>>3){case 1:i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32());break;case 2:i.startTime=r.int64();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},f);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=i.default.fromString(e.startTime):n.startTime=i.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),void 0!==e.startTime&&(n.startTime=(e.startTime||i.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},f);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=e.startTime:n.startTime=i.default.ZERO,n}};var d={};t.DelayedVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);r.pos>>3==1?i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32()):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},d);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),n},fromPartial:function(e){var n=Object.assign({},d);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,n}};var l={length:i.default.ZERO};t.Period={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.length.isZero()||t.uint32(8).int64(e.length);var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.amount=[];n.pos>>3){case 1:a.length=n.int64();break;case 2:a.amount.push(c.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.amount=[],void 0!==e.length&&null!==e.length?t.length=i.default.fromString(e.length):t.length=i.default.ZERO,void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(c.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.length&&(t.length=(e.length||i.default.ZERO).toString()),e.amount?t.amount=e.amount.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t=Object.assign({},l);if(t.amount=[],void 0!==e.length&&null!==e.length?t.length=e.length:t.length=i.default.ZERO,void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(c.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return t}};var p={startTime:i.default.ZERO};t.PeriodicVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),e.startTime.isZero()||n.uint32(16).int64(e.startTime);var a,i=r(e.vestingPeriods);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Period.encode(s,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);for(i.vestingPeriods=[];r.pos>>3){case 1:i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32());break;case 2:i.startTime=r.int64();break;case 3:i.vestingPeriods.push(t.Period.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},p);if(n.vestingPeriods=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=i.default.fromString(e.startTime):n.startTime=i.default.ZERO,void 0!==e.vestingPeriods&&null!==e.vestingPeriods){var a,o=r(e.vestingPeriods);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.vestingPeriods.push(t.Period.fromJSON(s))}}catch(e){o.e(e)}finally{o.f()}}return n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),void 0!==e.startTime&&(n.startTime=(e.startTime||i.default.ZERO).toString()),e.vestingPeriods?n.vestingPeriods=e.vestingPeriods.map((function(e){return e?t.Period.toJSON(e):void 0})):n.vestingPeriods=[],n},fromPartial:function(e){var n=Object.assign({},p);if(n.vestingPeriods=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=e.startTime:n.startTime=i.default.ZERO,void 0!==e.vestingPeriods&&null!==e.vestingPeriods){var a,o=r(e.vestingPeriods);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.vestingPeriods.push(t.Period.fromPartial(s))}}catch(e){o.e(e)}finally{o.f()}}return n}};var b={};t.PermanentLockedAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);r.pos>>3==1?i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32()):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},b);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),n},fromPartial:function(e){var n=Object.assign({},b);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},70631:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Any=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(4617));t.protobufPackage="google.protobuf";var s={typeUrl:""};t.Any={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.value=new Uint8Array;n.pos>>3){case 1:a.typeUrl=n.string();break;case 2:a.value=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);return t.value=new Uint8Array,void 0!==e.typeUrl&&null!==e.typeUrl?t.typeUrl=String(e.typeUrl):t.typeUrl="",void 0!==e.value&&null!==e.value&&(t.value=function(e){for(var t=u(e),n=new Uint8Array(t.length),r=0;r0){var i=r.substring(0,a).trim(),o=r.substring(a+1).trim();this.append(i,o)}}},e.prototype.delete=function(e,t){var n=r.normalizeName(e);if(void 0===t)delete this.headersMap[n];else{var a=this.headersMap[n];if(a){var i=a.indexOf(t);i>=0&&a.splice(i,1),0===a.length&&delete this.headersMap[n]}}},e.prototype.append=function(e,t){var n=this,a=r.normalizeName(e);Array.isArray(this.headersMap[a])||(this.headersMap[a]=[]),Array.isArray(t)?t.forEach((function(e){n.headersMap[a].push(r.normalizeValue(e))})):this.headersMap[a].push(r.normalizeValue(t))},e.prototype.set=function(e,t){var n=r.normalizeName(e);if(Array.isArray(t)){var a=[];t.forEach((function(e){a.push(r.normalizeValue(e))})),this.headersMap[n]=a}else this.headersMap[n]=[r.normalizeValue(t)]},e.prototype.has=function(e,t){var n=this.headersMap[r.normalizeName(e)];if(!Array.isArray(n))return!1;if(void 0!==t){var a=r.normalizeValue(t);return n.indexOf(a)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[r.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach((function(n){e(n,t.headersMap[n])}),this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach((function(t,n){n.forEach((function(n){e.append(t,n)}))})),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.BrowserHeaders=r.BrowserHeaders},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var n=e[Symbol.iterator](),r=n.next();!r.done;)t(r.value[0]),r=n.next()},t.iterateHeadersKeys=function(e,t){for(var n=e.keys(),r=n.next();!r.done;)t(r.value),r=n.next()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var n=e;if(n instanceof Headers&&n.getAll)return n.getAll(t);var r=n.get(t);return r&&"string"==typeof r?[r]:r},t.getHeaderKeys=function(e){var t=e,n={},a=[];return t.keys?r.iterateHeadersKeys(t,(function(e){n[e]||(n[e]=!0,a.push(e))})):t.forEach?t.forEach((function(e,t){n[t]||(n[t]=!0,a.push(t))})):r.iterateHeaders(t,(function(e){var t=e[0];n[t]||(n[t]=!0,a.push(t))})),a},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach((function(e){e.split(",").forEach((function(e){t.push(e)}))})),t}}]))},617:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkParser=t.ChunkType=t.encodeASCII=t.decodeASCII=void 0;var r,a=n(65);function i(e){return 9===(t=e)||10===t||13===t||e>=32&&e<=126;var t}function o(e){for(var t=0;t!==e.length;++t)if(!i(e[t]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(e))}function s(e){return 128==(128&e.getUint8(0))}function c(e){return e.getUint32(1,!1)}function u(e,t,n){return e.byteLength-t>=n}function f(e,t,n){if(e.slice)return e.slice(t,n);var r=e.length;void 0!==n&&(r=n);for(var a=new Uint8Array(r-t),i=0,o=t;o=0?n:i.httpStatusToCode(t);this.props.debug&&o.debug("onHeaders.code",r);var a=e.get("grpc-message")||[];if(this.props.debug&&o.debug("onHeaders.gRPCMessage",a),this.rawOnHeaders(e),r!==i.Code.OK){var s=this.decodeGRPCStatus(a[0]);this.rawOnError(r,s,e)}}},e.prototype.onTransportChunk=function(e){var t=this;if(this.closed)this.props.debug&&o.debug("grpc.onChunk received after request was closed - ignoring");else{var n=[];try{n=this.parser.parse(e)}catch(e){return this.props.debug&&o.debug("onChunk.parsing error",e,e.message),void this.rawOnError(i.Code.Internal,"parsing error: "+e.message)}n.forEach((function(e){if(e.chunkType===a.ChunkType.MESSAGE){var n=t.methodDefinition.responseType.deserializeBinary(e.data);t.rawOnMessage(n)}else e.chunkType===a.ChunkType.TRAILERS&&(t.responseHeaders?(t.responseTrailers=new r.Metadata(e.trailers),t.props.debug&&o.debug("onChunk.trailers",t.responseTrailers)):(t.responseHeaders=new r.Metadata(e.trailers),t.rawOnHeaders(t.responseHeaders)))}))}},e.prototype.onTransportEnd=function(){if(this.props.debug&&o.debug("grpc.onEnd"),this.closed)this.props.debug&&o.debug("grpc.onEnd received after request was closed - ignoring");else if(void 0!==this.responseTrailers){var e=f(this.responseTrailers);if(null!==e){var t=this.responseTrailers.get("grpc-message"),n=this.decodeGRPCStatus(t[0]);this.rawOnEnd(e,n,this.responseTrailers)}else this.rawOnError(i.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(void 0===this.responseHeaders)return void this.rawOnError(i.Code.Unknown,"Response closed without headers");var r=f(this.responseHeaders),a=this.responseHeaders.get("grpc-message");if(this.props.debug&&o.debug("grpc.headers only response ",r,a),null===r)return void this.rawOnEnd(i.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var s=this.decodeGRPCStatus(a[0]);this.rawOnEnd(r,s,this.responseHeaders)}},e.prototype.decodeGRPCStatus=function(e){if(!e)return"";try{return decodeURIComponent(e)}catch(t){return e}},e.prototype.rawOnEnd=function(e,t,n){var r=this;this.props.debug&&o.debug("rawOnEnd",e,t,n),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(a){if(!r.closed)try{a(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnHeaders=function(e){this.props.debug&&o.debug("rawOnHeaders",e),this.completed||this.onHeadersCallbacks.forEach((function(t){try{t(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.rawOnError=function(e,t,n){var a=this;void 0===n&&(n=new r.Metadata),this.props.debug&&o.debug("rawOnError",e,t),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(r){if(!a.closed)try{r(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnMessage=function(e){var t=this;this.props.debug&&o.debug("rawOnMessage",e.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach((function(n){if(!t.closed)try{n(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.onHeaders=function(e){this.onHeadersCallbacks.push(e)},e.prototype.onMessage=function(e){this.onMessageCallbacks.push(e)},e.prototype.onEnd=function(e){this.onEndCallbacks.push(e)},e.prototype.start=function(e){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var t=new r.Metadata(e||{});t.set("content-type","application/grpc-web+proto"),t.set("x-grpc-web","1"),this.transport.start(t)},e.prototype.send=function(e){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var t=c.frameRequest(e);this.transport.sendMessage(t)},e.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},e.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&o.debug("request.abort aborting request"),this.transport.cancel()},e}();function f(e){var t=e.get("grpc-status")||[];if(t.length>0)try{var n=t[0];return parseInt(n,10)}catch(e){return null}return null}},346:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debug=void 0,t.debug=function(){for(var e=[],t=0;t=55296&&n<=56319){var r=e.charCodeAt(t+1);r>=56320&&r<=57343&&(n=65536+(n-55296<<10)+(r-56320))}return n}function d(e){for(var t=new Uint8Array(e.length),n=0,r=0;r "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u,f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},d=function(){return a.Buffer?function(e){return(c.create=function(e){return a.Buffer.isBuffer(e)?new r(e):f(e)})(e)}:f};function l(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function p(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function b(){if(this.pos+8>this.len)throw s(this,8);return new i(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}c.create=d(),c.prototype._slice=a.Array.prototype.subarray||a.Array.prototype.slice,c.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return u}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return p(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|p(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=a.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=a.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return o.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){r=e,c.create=d(),r._configure();var t=a.Long?"toLong":"toNumber";a.merge(c.prototype,{int64:function(){return l.call(this)[t](!1)},uint64:function(){return l.call(this)[t](!0)},sint64:function(){return l.call(this).zzDecode()[t](!1)},fixed64:function(){return b.call(this)[t](!0)},sfixed64:function(){return b.call(this)[t](!1)}})}},61510:function(e,t,n){"use strict";e.exports=i;var r=n(87197);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(13531);function i(e){r.call(this,e)}i._configure=function(){a.Buffer&&(i.prototype._slice=a.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},11268:function(e){"use strict";e.exports={}},95352:function(e,t,n){"use strict";t.Service=n(51220)},51220:function(e,t,n){"use strict";e.exports=a;var r=n(13531);function a(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(a.prototype=Object.create(r.EventEmitter.prototype)).constructor=a,a.prototype.rpcCall=function e(t,n,a,i,o){if(!i)throw TypeError("request must be specified");var s=this;if(!o)return r.asPromise(e,s,t,n,a,i);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,n){if(e)return s.emit("error",e,t),o(e);if(null!==n){if(!(n instanceof a))try{n=a[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),o(e)}return s.emit("data",n,t),o(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){o(e)}),0)}else setTimeout((function(){o(Error("already ended"))}),0)},a.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},34594:function(e,t,n){"use strict";e.exports=a;var r=n(13531);function a(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=a.zero=new a(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var o=a.zeroHash="\0\0\0\0\0\0\0\0";a.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new a(n,r)},a.from=function(e){if("number"==typeof e)return a.fromNumber(e);if(r.isString(e)){if(!r.Long)return a.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new a(e.low>>>0,e.high>>>0):i},a.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},a.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;a.fromHash=function(e){return e===o?i:new a((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},a.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},a.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},a.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},a.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},13531:function(e,t,n){"use strict";var r=t;function a(e,t,n){for(var r=Object.keys(t),a=0;a0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=a,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function y(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}d.create=l(),d.alloc=function(e){return new a.Array(e)},a.Array!==Array&&(d.alloc=a.pool(d.alloc,a.Array.prototype.subarray)),d.prototype._push=function(e,t,n){return this.tail=this.tail.next=new c(e,t,n),this.len+=t,this},b.prototype=Object.create(c.prototype),b.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new b((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(h,10,i.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=i.from(e);return this._push(h,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(h,t.length(),t)},d.prototype.bool=function(e){return this._push(p,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(y,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=i.from(e);return this._push(y,4,t.lo)._push(y,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(a.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(a.float.writeDoubleLE,8,e)};var m=a.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(p,1,0);if(a.isString(e)){var n=d.alloc(t=o.length(e));o.decode(e,n,0),e=n}return this.uint32(t)._push(m,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(p,1,0)},d.prototype.fork=function(){return this.states=new f(this),this.head=this.tail=new c(u,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},d._configure=function(e){r=e,d.create=l(),r._configure()}},10969:function(e,t,n){"use strict";e.exports=i;var r=n(60102);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(13531);function i(){r.call(this)}function o(e,t,n){e.length<40?a.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i._configure=function(){i.alloc=a._Buffer_allocUnsafe,i.writeBytesBuffer=a.Buffer&&a.Buffer.prototype instanceof Uint8Array&&"set"===a.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=a.Buffer.byteLength(e);return this.uint32(t),t&&this._push(o,t,e),this},i._configure()},5062:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgSwapSendDesc=t.MsgSwapDesc=t.MsgDesc=t.MsgClientImpl=t.MsgSwapSendResponse=t.MsgSwapSend=t.MsgSwapResponse=t.MsgSwap=t.protobufPackage=void 0;var o=i(n(12620)),s=n(94670),c=i(n(4617)),u=n(981),f=n(84587);t.protobufPackage="terra.market.v1beta1";var d={trader:"",askDenom:""};t.MsgSwap={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.trader&&t.uint32(10).string(e.trader),void 0!==e.offerCoin&&u.Coin.encode(e.offerCoin,t.uint32(18).fork()).ldelim(),""!==e.askDenom&&t.uint32(26).string(e.askDenom),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.trader=n.string();break;case 2:a.offerCoin=u.Coin.decode(n,n.uint32());break;case 3:a.askDenom=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.trader&&null!==e.trader?t.trader=String(e.trader):t.trader="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=u.Coin.fromJSON(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=String(e.askDenom):t.askDenom="",t},toJSON:function(e){var t={};return void 0!==e.trader&&(t.trader=e.trader),void 0!==e.offerCoin&&(t.offerCoin=e.offerCoin?u.Coin.toJSON(e.offerCoin):void 0),void 0!==e.askDenom&&(t.askDenom=e.askDenom),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.trader&&null!==e.trader?t.trader=e.trader:t.trader="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=u.Coin.fromPartial(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=e.askDenom:t.askDenom="",t}};var l={};t.MsgSwapResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.swapCoin&&u.Coin.encode(e.swapCoin,t.uint32(10).fork()).ldelim(),void 0!==e.swapFee&&u.Coin.encode(e.swapFee,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.swapCoin=u.Coin.decode(n,n.uint32());break;case 2:a.swapFee=u.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=u.Coin.fromJSON(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=u.Coin.fromJSON(e.swapFee):t.swapFee=void 0,t},toJSON:function(e){var t={};return void 0!==e.swapCoin&&(t.swapCoin=e.swapCoin?u.Coin.toJSON(e.swapCoin):void 0),void 0!==e.swapFee&&(t.swapFee=e.swapFee?u.Coin.toJSON(e.swapFee):void 0),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=u.Coin.fromPartial(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=u.Coin.fromPartial(e.swapFee):t.swapFee=void 0,t}};var p={fromAddress:"",toAddress:"",askDenom:""};t.MsgSwapSend={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress),void 0!==e.offerCoin&&u.Coin.encode(e.offerCoin,t.uint32(26).fork()).ldelim(),""!==e.askDenom&&t.uint32(34).string(e.askDenom),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.fromAddress=n.string();break;case 2:a.toAddress=n.string();break;case 3:a.offerCoin=u.Coin.decode(n,n.uint32());break;case 4:a.askDenom=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=String(e.toAddress):t.toAddress="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=u.Coin.fromJSON(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=String(e.askDenom):t.askDenom="",t},toJSON:function(e){var t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),void 0!==e.offerCoin&&(t.offerCoin=e.offerCoin?u.Coin.toJSON(e.offerCoin):void 0),void 0!==e.askDenom&&(t.askDenom=e.askDenom),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=e.toAddress:t.toAddress="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=u.Coin.fromPartial(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=e.askDenom:t.askDenom="",t}};var b={};t.MsgSwapSendResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.swapCoin&&u.Coin.encode(e.swapCoin,t.uint32(10).fork()).ldelim(),void 0!==e.swapFee&&u.Coin.encode(e.swapFee,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.swapCoin=u.Coin.decode(n,n.uint32());break;case 2:a.swapFee=u.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=u.Coin.fromJSON(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=u.Coin.fromJSON(e.swapFee):t.swapFee=void 0,t},toJSON:function(e){var t={};return void 0!==e.swapCoin&&(t.swapCoin=e.swapCoin?u.Coin.toJSON(e.swapCoin):void 0),void 0!==e.swapFee&&(t.swapFee=e.swapFee?u.Coin.toJSON(e.swapFee):void 0),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=u.Coin.fromPartial(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=u.Coin.fromPartial(e.swapFee):t.swapFee=void 0,t}};var h=function(){function e(t){r(this,e),this.rpc=t,this.Swap=this.Swap.bind(this),this.SwapSend=this.SwapSend.bind(this)}return a(e,[{key:"Swap",value:function(e,n){return this.rpc.unary(t.MsgSwapDesc,t.MsgSwap.fromPartial(e),n)}},{key:"SwapSend",value:function(e,n){return this.rpc.unary(t.MsgSwapSendDesc,t.MsgSwapSend.fromPartial(e),n)}}]),e}();t.MsgClientImpl=h,t.MsgDesc={serviceName:"terra.market.v1beta1.Msg"},t.MsgSwapDesc={methodName:"Swap",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgSwap.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgSwapResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgSwapSendDesc={methodName:"SwapSend",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgSwapSend.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgSwapSendResponse.decode(e)),{toObject:function(){return this}})}}};var y=function(){function e(t,n){r(this,e),this.host=t,this.options=n}return a(e,[{key:"unary",value:function(e,t,n){var r,a=this,i=Object.assign(Object.assign({},t),e.requestType),o=n&&this.options.metadata?new f.BrowserHeaders(Object.assign(Object.assign({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise((function(t,n){s.grpc.unary(e,{request:i,host:a.host,metadata:o,transport:a.options.transport,debug:a.options.debug,onEnd:function(e){if(e.status===s.grpc.Code.OK)t(e.message);else{var r=new Error(e.statusMessage);r.code=e.status,r.metadata=e.trailers,n(r)}}})}))}}]),e}();t.GrpcWebImpl=y,c.default.util.Long!==o.default&&(c.default.util.Long=o.default,c.default.configure())},68018:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExchangeRateTuple=t.AggregateExchangeRateVote=t.AggregateExchangeRatePrevote=t.Denom=t.Params=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(4617));t.protobufPackage="terra.oracle.v1beta1";var s={votePeriod:i.default.UZERO,voteThreshold:"",rewardBand:"",rewardDistributionWindow:i.default.UZERO,slashFraction:"",slashWindow:i.default.UZERO,minValidPerWindow:""};t.Params={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.votePeriod.isZero()||n.uint32(8).uint64(e.votePeriod),""!==e.voteThreshold&&n.uint32(18).string(e.voteThreshold),""!==e.rewardBand&&n.uint32(26).string(e.rewardBand),e.rewardDistributionWindow.isZero()||n.uint32(32).uint64(e.rewardDistributionWindow);var a,i=r(e.whitelist);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Denom.encode(s,n.uint32(42).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return""!==e.slashFraction&&n.uint32(50).string(e.slashFraction),e.slashWindow.isZero()||n.uint32(56).uint64(e.slashWindow),""!==e.minValidPerWindow&&n.uint32(66).string(e.minValidPerWindow),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},s);for(i.whitelist=[];r.pos>>3){case 1:i.votePeriod=r.uint64();break;case 2:i.voteThreshold=r.string();break;case 3:i.rewardBand=r.string();break;case 4:i.rewardDistributionWindow=r.uint64();break;case 5:i.whitelist.push(t.Denom.decode(r,r.uint32()));break;case 6:i.slashFraction=r.string();break;case 7:i.slashWindow=r.uint64();break;case 8:i.minValidPerWindow=r.string();break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},s);if(n.whitelist=[],void 0!==e.votePeriod&&null!==e.votePeriod?n.votePeriod=i.default.fromString(e.votePeriod):n.votePeriod=i.default.UZERO,void 0!==e.voteThreshold&&null!==e.voteThreshold?n.voteThreshold=String(e.voteThreshold):n.voteThreshold="",void 0!==e.rewardBand&&null!==e.rewardBand?n.rewardBand=String(e.rewardBand):n.rewardBand="",void 0!==e.rewardDistributionWindow&&null!==e.rewardDistributionWindow?n.rewardDistributionWindow=i.default.fromString(e.rewardDistributionWindow):n.rewardDistributionWindow=i.default.UZERO,void 0!==e.whitelist&&null!==e.whitelist){var a,o=r(e.whitelist);try{for(o.s();!(a=o.n()).done;){var c=a.value;n.whitelist.push(t.Denom.fromJSON(c))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.slashFraction&&null!==e.slashFraction?n.slashFraction=String(e.slashFraction):n.slashFraction="",void 0!==e.slashWindow&&null!==e.slashWindow?n.slashWindow=i.default.fromString(e.slashWindow):n.slashWindow=i.default.UZERO,void 0!==e.minValidPerWindow&&null!==e.minValidPerWindow?n.minValidPerWindow=String(e.minValidPerWindow):n.minValidPerWindow="",n},toJSON:function(e){var n={};return void 0!==e.votePeriod&&(n.votePeriod=(e.votePeriod||i.default.UZERO).toString()),void 0!==e.voteThreshold&&(n.voteThreshold=e.voteThreshold),void 0!==e.rewardBand&&(n.rewardBand=e.rewardBand),void 0!==e.rewardDistributionWindow&&(n.rewardDistributionWindow=(e.rewardDistributionWindow||i.default.UZERO).toString()),e.whitelist?n.whitelist=e.whitelist.map((function(e){return e?t.Denom.toJSON(e):void 0})):n.whitelist=[],void 0!==e.slashFraction&&(n.slashFraction=e.slashFraction),void 0!==e.slashWindow&&(n.slashWindow=(e.slashWindow||i.default.UZERO).toString()),void 0!==e.minValidPerWindow&&(n.minValidPerWindow=e.minValidPerWindow),n},fromPartial:function(e){var n=Object.assign({},s);if(n.whitelist=[],void 0!==e.votePeriod&&null!==e.votePeriod?n.votePeriod=e.votePeriod:n.votePeriod=i.default.UZERO,void 0!==e.voteThreshold&&null!==e.voteThreshold?n.voteThreshold=e.voteThreshold:n.voteThreshold="",void 0!==e.rewardBand&&null!==e.rewardBand?n.rewardBand=e.rewardBand:n.rewardBand="",void 0!==e.rewardDistributionWindow&&null!==e.rewardDistributionWindow?n.rewardDistributionWindow=e.rewardDistributionWindow:n.rewardDistributionWindow=i.default.UZERO,void 0!==e.whitelist&&null!==e.whitelist){var a,o=r(e.whitelist);try{for(o.s();!(a=o.n()).done;){var c=a.value;n.whitelist.push(t.Denom.fromPartial(c))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.slashFraction&&null!==e.slashFraction?n.slashFraction=e.slashFraction:n.slashFraction="",void 0!==e.slashWindow&&null!==e.slashWindow?n.slashWindow=e.slashWindow:n.slashWindow=i.default.UZERO,void 0!==e.minValidPerWindow&&null!==e.minValidPerWindow?n.minValidPerWindow=e.minValidPerWindow:n.minValidPerWindow="",n}};var c={name:"",tobinTax:""};t.Denom={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.name&&t.uint32(10).string(e.name),""!==e.tobinTax&&t.uint32(18).string(e.tobinTax),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.name=n.string();break;case 2:a.tobinTax=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.tobinTax&&null!==e.tobinTax?t.tobinTax=String(e.tobinTax):t.tobinTax="",t},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.tobinTax&&(t.tobinTax=e.tobinTax),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.tobinTax&&null!==e.tobinTax?t.tobinTax=e.tobinTax:t.tobinTax="",t}};var u={hash:"",voter:"",submitBlock:i.default.UZERO};t.AggregateExchangeRatePrevote={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.hash&&t.uint32(10).string(e.hash),""!==e.voter&&t.uint32(18).string(e.voter),e.submitBlock.isZero()||t.uint32(24).uint64(e.submitBlock),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.hash=n.string();break;case 2:a.voter=n.string();break;case 3:a.submitBlock=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.hash&&null!==e.hash?t.hash=String(e.hash):t.hash="",void 0!==e.voter&&null!==e.voter?t.voter=String(e.voter):t.voter="",void 0!==e.submitBlock&&null!==e.submitBlock?t.submitBlock=i.default.fromString(e.submitBlock):t.submitBlock=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=e.hash),void 0!==e.voter&&(t.voter=e.voter),void 0!==e.submitBlock&&(t.submitBlock=(e.submitBlock||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash="",void 0!==e.voter&&null!==e.voter?t.voter=e.voter:t.voter="",void 0!==e.submitBlock&&null!==e.submitBlock?t.submitBlock=e.submitBlock:t.submitBlock=i.default.UZERO,t}};var f={voter:""};t.AggregateExchangeRateVote={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.exchangeRateTuples);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.ExchangeRateTuple.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return""!==e.voter&&a.uint32(18).string(e.voter),a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);for(i.exchangeRateTuples=[];r.pos>>3){case 1:i.exchangeRateTuples.push(t.ExchangeRateTuple.decode(r,r.uint32()));break;case 2:i.voter=r.string();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},f);if(n.exchangeRateTuples=[],void 0!==e.exchangeRateTuples&&null!==e.exchangeRateTuples){var a,i=r(e.exchangeRateTuples);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.exchangeRateTuples.push(t.ExchangeRateTuple.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.voter&&null!==e.voter?n.voter=String(e.voter):n.voter="",n},toJSON:function(e){var n={};return e.exchangeRateTuples?n.exchangeRateTuples=e.exchangeRateTuples.map((function(e){return e?t.ExchangeRateTuple.toJSON(e):void 0})):n.exchangeRateTuples=[],void 0!==e.voter&&(n.voter=e.voter),n},fromPartial:function(e){var n=Object.assign({},f);if(n.exchangeRateTuples=[],void 0!==e.exchangeRateTuples&&null!==e.exchangeRateTuples){var a,i=r(e.exchangeRateTuples);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.exchangeRateTuples.push(t.ExchangeRateTuple.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.voter&&null!==e.voter?n.voter=e.voter:n.voter="",n}};var d={denom:"",exchangeRate:""};t.ExchangeRateTuple={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.exchangeRate&&t.uint32(18).string(e.exchangeRate),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.exchangeRate=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.exchangeRate&&null!==e.exchangeRate?t.exchangeRate=String(e.exchangeRate):t.exchangeRate="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.exchangeRate&&(t.exchangeRate=e.exchangeRate),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.exchangeRate&&null!==e.exchangeRate?t.exchangeRate=e.exchangeRate:t.exchangeRate="",t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},82454:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgDelegateFeedConsentDesc=t.MsgAggregateExchangeRateVoteDesc=t.MsgAggregateExchangeRatePrevoteDesc=t.MsgDesc=t.MsgClientImpl=t.MsgDelegateFeedConsentResponse=t.MsgDelegateFeedConsent=t.MsgAggregateExchangeRateVoteResponse=t.MsgAggregateExchangeRateVote=t.MsgAggregateExchangeRatePrevoteResponse=t.MsgAggregateExchangeRatePrevote=t.protobufPackage=void 0;var o=i(n(12620)),s=n(94670),c=i(n(4617)),u=n(84587);t.protobufPackage="terra.oracle.v1beta1";var f={hash:"",feeder:"",validator:""};t.MsgAggregateExchangeRatePrevote={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.hash&&t.uint32(10).string(e.hash),""!==e.feeder&&t.uint32(18).string(e.feeder),""!==e.validator&&t.uint32(26).string(e.validator),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.hash=n.string();break;case 2:a.feeder=n.string();break;case 3:a.validator=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.hash&&null!==e.hash?t.hash=String(e.hash):t.hash="",void 0!==e.feeder&&null!==e.feeder?t.feeder=String(e.feeder):t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=String(e.validator):t.validator="",t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=e.hash),void 0!==e.feeder&&(t.feeder=e.feeder),void 0!==e.validator&&(t.validator=e.validator),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash="",void 0!==e.feeder&&null!==e.feeder?t.feeder=e.feeder:t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=e.validator:t.validator="",t}};var d={};t.MsgAggregateExchangeRatePrevoteResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.salt&&t.uint32(10).string(e.salt),""!==e.exchangeRates&&t.uint32(18).string(e.exchangeRates),""!==e.feeder&&t.uint32(26).string(e.feeder),""!==e.validator&&t.uint32(34).string(e.validator),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.salt=n.string();break;case 2:a.exchangeRates=n.string();break;case 3:a.feeder=n.string();break;case 4:a.validator=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.salt&&null!==e.salt?t.salt=String(e.salt):t.salt="",void 0!==e.exchangeRates&&null!==e.exchangeRates?t.exchangeRates=String(e.exchangeRates):t.exchangeRates="",void 0!==e.feeder&&null!==e.feeder?t.feeder=String(e.feeder):t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=String(e.validator):t.validator="",t},toJSON:function(e){var t={};return void 0!==e.salt&&(t.salt=e.salt),void 0!==e.exchangeRates&&(t.exchangeRates=e.exchangeRates),void 0!==e.feeder&&(t.feeder=e.feeder),void 0!==e.validator&&(t.validator=e.validator),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.salt&&null!==e.salt?t.salt=e.salt:t.salt="",void 0!==e.exchangeRates&&null!==e.exchangeRates?t.exchangeRates=e.exchangeRates:t.exchangeRates="",void 0!==e.feeder&&null!==e.feeder?t.feeder=e.feeder:t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=e.validator:t.validator="",t}};var p={};t.MsgAggregateExchangeRateVoteResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.operator&&t.uint32(10).string(e.operator),""!==e.delegate&&t.uint32(18).string(e.delegate),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.operator=n.string();break;case 2:a.delegate=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.operator&&null!==e.operator?t.operator=String(e.operator):t.operator="",void 0!==e.delegate&&null!==e.delegate?t.delegate=String(e.delegate):t.delegate="",t},toJSON:function(e){var t={};return void 0!==e.operator&&(t.operator=e.operator),void 0!==e.delegate&&(t.delegate=e.delegate),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.operator&&null!==e.operator?t.operator=e.operator:t.operator="",void 0!==e.delegate&&null!==e.delegate?t.delegate=e.delegate:t.delegate="",t}};var h={};t.MsgDelegateFeedConsentResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description);var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(26).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.addresses=[];n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.addresses.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);if(t.addresses=[],void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.addresses&&null!==e.addresses){var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.addresses.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),e.addresses?t.addresses=e.addresses.map((function(e){return e})):t.addresses=[],t},fromPartial:function(e){var t=Object.assign({},s);if(t.addresses=[],void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.addresses&&null!==e.addresses){var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.addresses.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var c={title:"",description:"",addresses:""};t.RemoveBurnTaxExemptionAddressProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description);var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(26).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.addresses=[];n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.addresses.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);if(t.addresses=[],void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.addresses&&null!==e.addresses){var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.addresses.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),e.addresses?t.addresses=e.addresses.map((function(e){return e})):t.addresses=[],t},fromPartial:function(e){var t=Object.assign({},c);if(t.addresses=[],void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.addresses&&null!==e.addresses){var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.addresses.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},7191:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpochInitialIssuance=t.EpochTaxProceeds=t.PolicyConstraints=t.Params=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(4617)),s=n(981);t.protobufPackage="terra.treasury.v1beta1";var c={seigniorageBurdenTarget:"",miningIncrement:"",windowShort:i.default.UZERO,windowLong:i.default.UZERO,windowProbation:i.default.UZERO,burnTaxSplit:""};t.Params={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.taxPolicy&&t.PolicyConstraints.encode(e.taxPolicy,n.uint32(10).fork()).ldelim(),void 0!==e.rewardPolicy&&t.PolicyConstraints.encode(e.rewardPolicy,n.uint32(18).fork()).ldelim(),""!==e.seigniorageBurdenTarget&&n.uint32(26).string(e.seigniorageBurdenTarget),""!==e.miningIncrement&&n.uint32(34).string(e.miningIncrement),e.windowShort.isZero()||n.uint32(40).uint64(e.windowShort),e.windowLong.isZero()||n.uint32(48).uint64(e.windowLong),e.windowProbation.isZero()||n.uint32(56).uint64(e.windowProbation),""!==e.burnTaxSplit&&n.uint32(66).string(e.burnTaxSplit),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);r.pos>>3){case 1:i.taxPolicy=t.PolicyConstraints.decode(r,r.uint32());break;case 2:i.rewardPolicy=t.PolicyConstraints.decode(r,r.uint32());break;case 3:i.seigniorageBurdenTarget=r.string();break;case 4:i.miningIncrement=r.string();break;case 5:i.windowShort=r.uint64();break;case 6:i.windowLong=r.uint64();break;case 7:i.windowProbation=r.uint64();break;case 8:i.burnTaxSplit=r.string();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);return void 0!==e.taxPolicy&&null!==e.taxPolicy?n.taxPolicy=t.PolicyConstraints.fromJSON(e.taxPolicy):n.taxPolicy=void 0,void 0!==e.rewardPolicy&&null!==e.rewardPolicy?n.rewardPolicy=t.PolicyConstraints.fromJSON(e.rewardPolicy):n.rewardPolicy=void 0,void 0!==e.seigniorageBurdenTarget&&null!==e.seigniorageBurdenTarget?n.seigniorageBurdenTarget=String(e.seigniorageBurdenTarget):n.seigniorageBurdenTarget="",void 0!==e.miningIncrement&&null!==e.miningIncrement?n.miningIncrement=String(e.miningIncrement):n.miningIncrement="",void 0!==e.windowShort&&null!==e.windowShort?n.windowShort=i.default.fromString(e.windowShort):n.windowShort=i.default.UZERO,void 0!==e.windowLong&&null!==e.windowLong?n.windowLong=i.default.fromString(e.windowLong):n.windowLong=i.default.UZERO,void 0!==e.windowProbation&&null!==e.windowProbation?n.windowProbation=i.default.fromString(e.windowProbation):n.windowProbation=i.default.UZERO,void 0!==e.burnTaxSplit&&null!==e.burnTaxSplit?n.burnTaxSplit=String(e.burnTaxSplit):n.burnTaxSplit="",n},toJSON:function(e){var n={};return void 0!==e.taxPolicy&&(n.taxPolicy=e.taxPolicy?t.PolicyConstraints.toJSON(e.taxPolicy):void 0),void 0!==e.rewardPolicy&&(n.rewardPolicy=e.rewardPolicy?t.PolicyConstraints.toJSON(e.rewardPolicy):void 0),void 0!==e.seigniorageBurdenTarget&&(n.seigniorageBurdenTarget=e.seigniorageBurdenTarget),void 0!==e.miningIncrement&&(n.miningIncrement=e.miningIncrement),void 0!==e.windowShort&&(n.windowShort=(e.windowShort||i.default.UZERO).toString()),void 0!==e.windowLong&&(n.windowLong=(e.windowLong||i.default.UZERO).toString()),void 0!==e.windowProbation&&(n.windowProbation=(e.windowProbation||i.default.UZERO).toString()),void 0!==e.burnTaxSplit&&(n.burnTaxSplit=e.burnTaxSplit),n},fromPartial:function(e){var n=Object.assign({},c);return void 0!==e.taxPolicy&&null!==e.taxPolicy?n.taxPolicy=t.PolicyConstraints.fromPartial(e.taxPolicy):n.taxPolicy=void 0,void 0!==e.rewardPolicy&&null!==e.rewardPolicy?n.rewardPolicy=t.PolicyConstraints.fromPartial(e.rewardPolicy):n.rewardPolicy=void 0,void 0!==e.seigniorageBurdenTarget&&null!==e.seigniorageBurdenTarget?n.seigniorageBurdenTarget=e.seigniorageBurdenTarget:n.seigniorageBurdenTarget="",void 0!==e.miningIncrement&&null!==e.miningIncrement?n.miningIncrement=e.miningIncrement:n.miningIncrement="",void 0!==e.windowShort&&null!==e.windowShort?n.windowShort=e.windowShort:n.windowShort=i.default.UZERO,void 0!==e.windowLong&&null!==e.windowLong?n.windowLong=e.windowLong:n.windowLong=i.default.UZERO,void 0!==e.windowProbation&&null!==e.windowProbation?n.windowProbation=e.windowProbation:n.windowProbation=i.default.UZERO,void 0!==e.burnTaxSplit&&null!==e.burnTaxSplit?n.burnTaxSplit=e.burnTaxSplit:n.burnTaxSplit="",n}};var u={rateMin:"",rateMax:"",changeRateMax:""};t.PolicyConstraints={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.rateMin&&t.uint32(10).string(e.rateMin),""!==e.rateMax&&t.uint32(18).string(e.rateMax),void 0!==e.cap&&s.Coin.encode(e.cap,t.uint32(26).fork()).ldelim(),""!==e.changeRateMax&&t.uint32(34).string(e.changeRateMax),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.rateMin=n.string();break;case 2:a.rateMax=n.string();break;case 3:a.cap=s.Coin.decode(n,n.uint32());break;case 4:a.changeRateMax=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.rateMin&&null!==e.rateMin?t.rateMin=String(e.rateMin):t.rateMin="",void 0!==e.rateMax&&null!==e.rateMax?t.rateMax=String(e.rateMax):t.rateMax="",void 0!==e.cap&&null!==e.cap?t.cap=s.Coin.fromJSON(e.cap):t.cap=void 0,void 0!==e.changeRateMax&&null!==e.changeRateMax?t.changeRateMax=String(e.changeRateMax):t.changeRateMax="",t},toJSON:function(e){var t={};return void 0!==e.rateMin&&(t.rateMin=e.rateMin),void 0!==e.rateMax&&(t.rateMax=e.rateMax),void 0!==e.cap&&(t.cap=e.cap?s.Coin.toJSON(e.cap):void 0),void 0!==e.changeRateMax&&(t.changeRateMax=e.changeRateMax),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.rateMin&&null!==e.rateMin?t.rateMin=e.rateMin:t.rateMin="",void 0!==e.rateMax&&null!==e.rateMax?t.rateMax=e.rateMax:t.rateMax="",void 0!==e.cap&&null!==e.cap?t.cap=s.Coin.fromPartial(e.cap):t.cap=void 0,void 0!==e.changeRateMax&&null!==e.changeRateMax?t.changeRateMax=e.changeRateMax:t.changeRateMax="",t}};var f={};t.EpochTaxProceeds={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.taxProceeds);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.taxProceeds=[];n.pos>>3==1?a.taxProceeds.push(s.Coin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},f);if(t.taxProceeds=[],void 0!==e.taxProceeds&&null!==e.taxProceeds){var n,a=r(e.taxProceeds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.taxProceeds.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.taxProceeds?t.taxProceeds=e.taxProceeds.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.taxProceeds=[],t},fromPartial:function(e){var t=Object.assign({},f);if(t.taxProceeds=[],void 0!==e.taxProceeds&&null!==e.taxProceeds){var n,a=r(e.taxProceeds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.taxProceeds.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var d={};t.EpochInitialIssuance={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.issuance);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.issuance=[];n.pos>>3==1?a.issuance.push(s.Coin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},d);if(t.issuance=[],void 0!==e.issuance&&null!==e.issuance){var n,a=r(e.issuance);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.issuance.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.issuance?t.issuance=e.issuance.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.issuance=[],t},fromPartial:function(e){var t=Object.assign({},d);if(t.issuance=[],void 0!==e.issuance&&null!==e.issuance){var n,a=r(e.issuance);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.issuance.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},20307:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VestingSchedule=t.Schedule=t.LazyGradedVestingAccount=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(4617)),s=n(11674);t.protobufPackage="terra.vesting.v1beta1";var c={};t.LazyGradedVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseVestingAccount&&s.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim();var a,i=r(e.vestingSchedules);try{for(i.s();!(a=i.n()).done;){var c=a.value;t.VestingSchedule.encode(c,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);for(i.vestingSchedules=[];r.pos>>3){case 1:i.baseVestingAccount=s.BaseVestingAccount.decode(r,r.uint32());break;case 2:i.vestingSchedules.push(t.VestingSchedule.decode(r,r.uint32()));break;default:r.skipType(7&u)}}return i},fromJSON:function(e){var n=Object.assign({},c);if(n.vestingSchedules=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=s.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.vestingSchedules&&null!==e.vestingSchedules){var a,i=r(e.vestingSchedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.vestingSchedules.push(t.VestingSchedule.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?s.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),e.vestingSchedules?n.vestingSchedules=e.vestingSchedules.map((function(e){return e?t.VestingSchedule.toJSON(e):void 0})):n.vestingSchedules=[],n},fromPartial:function(e){var n=Object.assign({},c);if(n.vestingSchedules=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=s.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.vestingSchedules&&null!==e.vestingSchedules){var a,i=r(e.vestingSchedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.vestingSchedules.push(t.VestingSchedule.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var u={startTime:i.default.ZERO,endTime:i.default.ZERO,ratio:""};t.Schedule={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.startTime.isZero()||t.uint32(8).int64(e.startTime),e.endTime.isZero()||t.uint32(16).int64(e.endTime),""!==e.ratio&&t.uint32(26).string(e.ratio),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.startTime=n.int64();break;case 2:a.endTime=n.int64();break;case 3:a.ratio=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.startTime&&null!==e.startTime?t.startTime=i.default.fromString(e.startTime):t.startTime=i.default.ZERO,void 0!==e.endTime&&null!==e.endTime?t.endTime=i.default.fromString(e.endTime):t.endTime=i.default.ZERO,void 0!==e.ratio&&null!==e.ratio?t.ratio=String(e.ratio):t.ratio="",t},toJSON:function(e){var t={};return void 0!==e.startTime&&(t.startTime=(e.startTime||i.default.ZERO).toString()),void 0!==e.endTime&&(t.endTime=(e.endTime||i.default.ZERO).toString()),void 0!==e.ratio&&(t.ratio=e.ratio),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.startTime&&null!==e.startTime?t.startTime=e.startTime:t.startTime=i.default.ZERO,void 0!==e.endTime&&null!==e.endTime?t.endTime=e.endTime:t.endTime=i.default.ZERO,void 0!==e.ratio&&null!==e.ratio?t.ratio=e.ratio:t.ratio="",t}};var f={denom:""};t.VestingSchedule={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.denom&&n.uint32(10).string(e.denom);var a,i=r(e.schedules);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Schedule.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);for(i.schedules=[];r.pos>>3){case 1:i.denom=r.string();break;case 2:i.schedules.push(t.Schedule.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},f);if(n.schedules=[],void 0!==e.denom&&null!==e.denom?n.denom=String(e.denom):n.denom="",void 0!==e.schedules&&null!==e.schedules){var a,i=r(e.schedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.schedules.push(t.Schedule.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.denom&&(n.denom=e.denom),e.schedules?n.schedules=e.schedules.map((function(e){return e?t.Schedule.toJSON(e):void 0})):n.schedules=[],n},fromPartial:function(e){var n=Object.assign({},f);if(n.schedules=[],void 0!==e.denom&&null!==e.denom?n.denom=e.denom:n.denom="",void 0!==e.schedules&&null!==e.schedules){var a,i=r(e.schedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.schedules.push(t.Schedule.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},5678:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(21146).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgClearContractAdminDesc=t.MsgUpdateContractAdminDesc=t.MsgMigrateContractDesc=t.MsgExecuteContractDesc=t.MsgInstantiateContractDesc=t.MsgMigrateCodeDesc=t.MsgStoreCodeDesc=t.MsgDesc=t.MsgClientImpl=t.MsgClearContractAdminResponse=t.MsgClearContractAdmin=t.MsgUpdateContractAdminResponse=t.MsgUpdateContractAdmin=t.MsgMigrateContractResponse=t.MsgMigrateContract=t.MsgExecuteContractResponse=t.MsgExecuteContract=t.MsgInstantiateContractResponse=t.MsgInstantiateContract=t.MsgMigrateCodeResponse=t.MsgMigrateCode=t.MsgStoreCodeResponse=t.MsgStoreCode=t.protobufPackage=void 0;var s=o(n(12620)),c=n(94670),u=o(n(4617)),f=n(84587),d=n(981);t.protobufPackage="terra.wasm.v1beta1";var l={sender:""};t.MsgStoreCode={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),0!==e.wasmByteCode.length&&t.uint32(18).bytes(e.wasmByteCode),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.wasmByteCode=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.wasmByteCode=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return t.wasmByteCode=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode&&(t.wasmByteCode=O(e.wasmByteCode)),t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.wasmByteCode&&(t.wasmByteCode=M(void 0!==e.wasmByteCode?e.wasmByteCode:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode?t.wasmByteCode=e.wasmByteCode:t.wasmByteCode=new Uint8Array,t}};var p={codeId:s.default.UZERO};t.MsgStoreCodeResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return e.codeId.isZero()||t.uint32(8).uint64(e.codeId),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3==1?a.codeId=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,t}};var b={codeId:s.default.UZERO,sender:""};t.MsgMigrateCode={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return e.codeId.isZero()||t.uint32(8).uint64(e.codeId),""!==e.sender&&t.uint32(18).string(e.sender),0!==e.wasmByteCode.length&&t.uint32(26).bytes(e.wasmByteCode),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.wasmByteCode=new Uint8Array;n.pos>>3){case 1:a.codeId=n.uint64();break;case 2:a.sender=n.string();break;case 3:a.wasmByteCode=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return t.wasmByteCode=new Uint8Array,void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode&&(t.wasmByteCode=O(e.wasmByteCode)),t},toJSON:function(e){var t={};return void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.wasmByteCode&&(t.wasmByteCode=M(void 0!==e.wasmByteCode?e.wasmByteCode:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode?t.wasmByteCode=e.wasmByteCode:t.wasmByteCode=new Uint8Array,t}};var h={};t.MsgMigrateCodeResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.sender&&t.uint32(10).string(e.sender),""!==e.admin&&t.uint32(18).string(e.admin),e.codeId.isZero()||t.uint32(24).uint64(e.codeId),0!==e.initMsg.length&&t.uint32(34).bytes(e.initMsg);var n,r=i(e.initCoins);try{for(r.s();!(n=r.n()).done;){var a=n.value;d.Coin.encode(a,t.uint32(42).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.initCoins=[],a.initMsg=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.admin=n.string();break;case 3:a.codeId=n.uint64();break;case 4:a.initMsg=n.bytes();break;case 5:a.initCoins.push(d.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);if(t.initCoins=[],t.initMsg=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,void 0!==e.initMsg&&null!==e.initMsg&&(t.initMsg=O(e.initMsg)),void 0!==e.initCoins&&null!==e.initCoins){var n,r=i(e.initCoins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.initCoins.push(d.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.initMsg&&(t.initMsg=M(void 0!==e.initMsg?e.initMsg:new Uint8Array)),e.initCoins?t.initCoins=e.initCoins.map((function(e){return e?d.Coin.toJSON(e):void 0})):t.initCoins=[],t},fromPartial:function(e){var t=Object.assign({},y);if(t.initCoins=[],void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,void 0!==e.initMsg&&null!==e.initMsg?t.initMsg=e.initMsg:t.initMsg=new Uint8Array,void 0!==e.initCoins&&null!==e.initCoins){var n,r=i(e.initCoins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.initCoins.push(d.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var m={contractAddress:""};t.MsgInstantiateContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.contractAddress&&t.uint32(10).string(e.contractAddress),0!==e.data.length&&t.uint32(18).bytes(e.data),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.data=new Uint8Array;n.pos>>3){case 1:a.contractAddress=n.string();break;case 2:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return t.data=new Uint8Array,void 0!==e.contractAddress&&null!==e.contractAddress?t.contractAddress=String(e.contractAddress):t.contractAddress="",void 0!==e.data&&null!==e.data&&(t.data=O(e.data)),t},toJSON:function(e){var t={};return void 0!==e.contractAddress&&(t.contractAddress=e.contractAddress),void 0!==e.data&&(t.data=M(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.contractAddress&&null!==e.contractAddress?t.contractAddress=e.contractAddress:t.contractAddress="",void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var v={sender:"",contract:""};t.MsgExecuteContract={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(18).string(e.contract),0!==e.executeMsg.length&&t.uint32(26).bytes(e.executeMsg);var n,r=i(e.coins);try{for(r.s();!(n=r.n()).done;){var a=n.value;d.Coin.encode(a,t.uint32(42).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.coins=[],a.executeMsg=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.contract=n.string();break;case 3:a.executeMsg=n.bytes();break;case 5:a.coins.push(d.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);if(t.coins=[],t.executeMsg=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.executeMsg&&null!==e.executeMsg&&(t.executeMsg=O(e.executeMsg)),void 0!==e.coins&&null!==e.coins){var n,r=i(e.coins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.coins.push(d.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.executeMsg&&(t.executeMsg=M(void 0!==e.executeMsg?e.executeMsg:new Uint8Array)),e.coins?t.coins=e.coins.map((function(e){return e?d.Coin.toJSON(e):void 0})):t.coins=[],t},fromPartial:function(e){var t=Object.assign({},v);if(t.coins=[],void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.executeMsg&&null!==e.executeMsg?t.executeMsg=e.executeMsg:t.executeMsg=new Uint8Array,void 0!==e.coins&&null!==e.coins){var n,r=i(e.coins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.coins.push(d.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var g={};t.MsgExecuteContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);for(a.data=new Uint8Array;n.pos>>3==1?a.data=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},g);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=O(e.data)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=M(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},g);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var A={admin:"",contract:"",newCodeId:s.default.UZERO};t.MsgMigrateContract={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.admin&&t.uint32(10).string(e.admin),""!==e.contract&&t.uint32(18).string(e.contract),e.newCodeId.isZero()||t.uint32(24).uint64(e.newCodeId),0!==e.migrateMsg.length&&t.uint32(34).bytes(e.migrateMsg),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.migrateMsg=new Uint8Array;n.pos>>3){case 1:a.admin=n.string();break;case 2:a.contract=n.string();break;case 3:a.newCodeId=n.uint64();break;case 4:a.migrateMsg=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return t.migrateMsg=new Uint8Array,void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.newCodeId&&null!==e.newCodeId?t.newCodeId=s.default.fromString(e.newCodeId):t.newCodeId=s.default.UZERO,void 0!==e.migrateMsg&&null!==e.migrateMsg&&(t.migrateMsg=O(e.migrateMsg)),t},toJSON:function(e){var t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.newCodeId&&(t.newCodeId=(e.newCodeId||s.default.UZERO).toString()),void 0!==e.migrateMsg&&(t.migrateMsg=M(void 0!==e.migrateMsg?e.migrateMsg:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.newCodeId&&null!==e.newCodeId?t.newCodeId=e.newCodeId:t.newCodeId=s.default.UZERO,void 0!==e.migrateMsg&&null!==e.migrateMsg?t.migrateMsg=e.migrateMsg:t.migrateMsg=new Uint8Array,t}};var w={};t.MsgMigrateContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);for(a.data=new Uint8Array;n.pos>>3==1?a.data=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},w);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=O(e.data)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=M(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var x={admin:"",newAdmin:"",contract:""};t.MsgUpdateContractAdmin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.admin&&t.uint32(10).string(e.admin),""!==e.newAdmin&&t.uint32(18).string(e.newAdmin),""!==e.contract&&t.uint32(26).string(e.contract),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},x);n.pos>>3){case 1:a.admin=n.string();break;case 2:a.newAdmin=n.string();break;case 3:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},x);return void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=String(e.newAdmin):t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.newAdmin&&(t.newAdmin=e.newAdmin),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},x);return void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=e.newAdmin:t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var _={};t.MsgUpdateContractAdminResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.admin&&t.uint32(10).string(e.admin),""!==e.contract&&t.uint32(18).string(e.contract),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);n.pos>>3){case 1:a.admin=n.string();break;case 2:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},k);return void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var S={};t.MsgClearContractAdminResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},S);n.pos1&&void 0!==arguments[1]?arguments[1]:0,n=new d.default(this.blob.decode(e,t),10,"le");return this.signed?n.fromTwos(8*this.span).clone():n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.signed&&(e=e.toTwos(8*this.span)),this.blob.encode(e.toArrayLike(r,"le",this.span),t,n)}}]),n}(u.Layout);function b(e){return new p(8,!1,e)}t.u64=b,t.i64=function(e){return new p(8,!0,e)},t.u128=function(e){return new p(16,!1,e)},t.i128=function(e){return new p(16,!0,e)},t.u256=function(e){return new p(32,!1,e)},t.i256=function(e){return new p(32,!0,e)};var h=function(e){o(n,e);var t=s(n);function n(e,r,i,o){var s;return a(this,n),(s=t.call(this,e.span,o)).layout=e,s.decoder=r,s.encoder=i,s}return i(n,[{key:"decode",value:function(e,t){return this.decoder(this.layout.decode(e,t))}},{key:"encode",value:function(e,t,n){return this.layout.encode(this.encoder(e),t,n)}},{key:"getSpan",value:function(e,t){return this.layout.getSpan(e,t)}}]),n}(u.Layout);t.publicKey=function(e){return new h((0,u.blob)(32),(function(e){return new f.PublicKey(e)}),(function(e){return e.toBuffer()}),e)};var y=function(e){o(n,e);var t=s(n);function n(e,r){var i;return a(this,n),(i=t.call(this,-1,r)).layout=e,i.discriminator=(0,u.u8)(),i}return i(n,[{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null==e?this.discriminator.encode(0,t,n):(this.discriminator.encode(1,t,n),this.layout.encode(e,t,n+1)+1)}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return null;if(1===n)return this.layout.decode(e,t+1);throw new Error("Invalid option "+this.property)}},{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return 1;if(1===n)return this.layout.getSpan(e,t+1)+1;throw new Error("Invalid option "+this.property)}}]),n}(u.Layout);function m(e){if(0===e)return!1;if(1===e)return!0;throw new Error("Invalid bool: "+e)}function v(e){return e?1:0}function g(e){var t=(0,u.u32)("length"),n=(0,u.struct)([t,(0,u.blob)((0,u.offset)(t,-t.span),"data")]);return new h(n,(function(e){return e.data}),(function(e){return{data:e}}),e)}t.option=function(e,t){return new y(e,t)},t.bool=function(e){return new h((0,u.u8)(),m,v,e)},t.vec=function(e,t){var n=(0,u.u32)("length"),r=(0,u.struct)([n,(0,u.seq)(e,(0,u.offset)(n,-n.span),"values")]);return new h(r,(function(e){return e.values}),(function(e){return{values:e}}),t)},t.tagged=function(e,t,n){var r=(0,u.struct)([b("tag"),t.replicate("data")]);return new h(r,(function(t){var n=t.tag,r=t.data;if(!n.eq(e))throw new Error("Invalid tag, expected: "+e.toString("hex")+", got: "+n.toString("hex"));return r}),(function(t){return{tag:e,data:t}}),n)},t.vecU8=g,t.str=function(e){return new h(g(),(function(e){return e.toString("utf-8")}),(function(e){return r.from(e,"utf-8")}),e)},t.rustEnum=function(e,t,n){var r=(0,u.union)(null!=n?n:(0,u.u8)(),t);return e.forEach((function(e,t){return r.addVariant(t,e,e.property)})),r},t.array=function(e,t,n){var r=(0,u.struct)([(0,u.seq)(e,t,"values")]);return new h(r,(function(e){return e.values}),(function(e){return{values:e}}),n)};var A=function(e){o(n,e);var t=s(n);function n(e,r,i){var o;return a(this,n),(o=t.call(this,e.span+r.span,i)).keyLayout=e,o.valueLayout=r,o}return i(n,[{key:"decode",value:function(e,t){return t=t||0,[this.keyLayout.decode(e,t),this.valueLayout.decode(e,t+this.keyLayout.getSpan(e,t))]}},{key:"encode",value:function(e,t,n){n=n||0;var r=this.keyLayout.encode(e[0],t,n);return r+this.valueLayout.encode(e[1],t,n+r)}},{key:"getSpan",value:function(e,t){return this.keyLayout.getSpan(e,t)+this.valueLayout.getSpan(e,t)}}]),n}(u.Layout);t.map=function(e,t,n){var r=(0,u.u32)("length"),a=(0,u.struct)([r,(0,u.seq)(new A(e,t),(0,u.offset)(r,-r.span),"values")]);return new h(a,(function(e){var t=e.values;return new Map(t)}),(function(e){return{values:Array.from(e.entries())}}),n)}},5529:function(e,t,n){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.chains=t._getInitializedChains=void 0;var i=a(n(70436)),o=a(n(76483)),s=a(n(98295)),c=a(n(71732)),u=a(n(30891)),f=a(n(25298));function d(e){var t,n,a={1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan",5:"goerli",11155111:"sepolia"},d={mainnet:i.default,ropsten:o.default,rinkeby:s.default,kovan:c.default,goerli:u.default,sepolia:f.default};if(e)try{for(var l=r(e),p=l.next();!p.done;p=l.next()){var b=p.value,h=b.name;a[b.chainId.toString()]=h,d[h]=b}}catch(e){t={error:e}}finally{try{p&&!p.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return d.names=a,d}t._getInitializedChains=d,t.chains=d()},16422:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EIPs=void 0,t.EIPs={1153:n(77),1559:n(3553),2315:n(92874),2537:n(87791),2565:n(55260),2718:n(93807),2929:n(87355),2930:n(17380),3198:n(12570),3529:n(58293),3540:n(57765),3541:n(10592),3554:n(7402),3607:n(87363),3651:n(56472),3670:n(17035),3675:n(96592),3855:n(41551),3860:n(53460),4345:n(10665),4399:n(94815),5133:n(73651)}},5426:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hardforks=void 0,t.hardforks=[["chainstart",n(75277)],["homestead",n(65453)],["dao",n(84528)],["tangerineWhistle",n(96297)],["spuriousDragon",n(31132)],["byzantium",n(68316)],["constantinople",n(95438)],["petersburg",n(68421)],["istanbul",n(15273)],["muirGlacier",n(40694)],["berlin",n(67749)],["london",n(21964)],["shanghai",n(90354)],["arrowGlacier",n(51224)],["grayGlacier",n(84115)],["mergeForkIdTransition",n(94513)],["merge",n(61554)]]},31747:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsensusAlgorithm=t.ConsensusType=t.Hardfork=t.Chain=t.CustomChain=void 0;var c,u,f,d,l,p=n(5641),b=n(92211),h=n(63544),y=n(5529),m=n(5426),v=n(16422);!function(e){e.PolygonMainnet="polygon-mainnet",e.PolygonMumbai="polygon-mumbai",e.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",e.xDaiChain="x-dai-chain",e.OptimisticKovan="optimistic-kovan",e.OptimisticEthereum="optimistic-ethereum"}(c=t.CustomChain||(t.CustomChain={})),(l=t.Chain||(t.Chain={}))[l.Mainnet=1]="Mainnet",l[l.Ropsten=3]="Ropsten",l[l.Rinkeby=4]="Rinkeby",l[l.Kovan=42]="Kovan",l[l.Goerli=5]="Goerli",l[l.Sepolia=11155111]="Sepolia",function(e){e.Chainstart="chainstart",e.Homestead="homestead",e.Dao="dao",e.TangerineWhistle="tangerineWhistle",e.SpuriousDragon="spuriousDragon",e.Byzantium="byzantium",e.Constantinople="constantinople",e.Petersburg="petersburg",e.Istanbul="istanbul",e.MuirGlacier="muirGlacier",e.Berlin="berlin",e.London="london",e.ArrowGlacier="arrowGlacier",e.GrayGlacier="grayGlacier",e.MergeForkIdTransition="mergeForkIdTransition",e.Merge="merge",e.Shanghai="shanghai"}(u=t.Hardfork||(t.Hardfork={})),(d=t.ConsensusType||(t.ConsensusType={})).ProofOfStake="pos",d.ProofOfWork="pow",d.ProofOfAuthority="poa",(f=t.ConsensusAlgorithm||(t.ConsensusAlgorithm={})).Ethash="ethash",f.Clique="clique",f.Casper="casper";var g=function(e){function t(t){var n,r,a,i,o=this;(o=e.call(this)||this)._supportedHardforks=[],o._eips=[],o._customChains=null!==(a=t.customChains)&&void 0!==a?a:[],o._chainParams=o.setChain(t.chain),o.DEFAULT_HARDFORK=null!==(i=o._chainParams.defaultHardfork)&&void 0!==i?i:u.Istanbul;try{for(var c=s(o._chainParams.hardforks),f=c.next();!f.done;f=c.next()){var d=f.value;d.forkHash||(d.forkHash=o._calcForkHash(d.name))}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return o._hardfork=o.DEFAULT_HARDFORK,t.supportedHardforks&&(o._supportedHardforks=t.supportedHardforks),t.hardfork&&o.setHardfork(t.hardfork),t.eips&&o.setEIPs(t.eips),o}return i(t,e),t.custom=function(e,n){var r;void 0===n&&(n={});var a=null!==(r=n.baseChain)&&void 0!==r?r:"mainnet",i=o({},t._getChainParams(a));if(i.name="custom-chain","string"!=typeof e)return new t(o({chain:o(o({},i),e)},n));if(e===c.PolygonMainnet)return t.custom({name:c.PolygonMainnet,chainId:137,networkId:137},n);if(e===c.PolygonMumbai)return t.custom({name:c.PolygonMumbai,chainId:80001,networkId:80001},n);if(e===c.ArbitrumRinkebyTestnet)return t.custom({name:c.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611},n);if(e===c.xDaiChain)return t.custom({name:c.xDaiChain,chainId:100,networkId:100},n);if(e===c.OptimisticKovan)return t.custom({name:c.OptimisticKovan,chainId:69,networkId:69},o({hardfork:u.Berlin},n));if(e===c.OptimisticEthereum)return t.custom({name:c.OptimisticEthereum,chainId:10,networkId:10},o({hardfork:u.Berlin},n));throw new Error("Custom chain ".concat(e," not supported"))},t.forCustomChain=function(e,n,r,a){var i=t._getChainParams(e);return new t({chain:o(o({},i),n),hardfork:r,supportedHardforks:a})},t.isSupportedChainId=function(e){var t=(0,y._getInitializedChains)();return Boolean(t.names[e.toString()])},t._getChainParams=function(e,t){var n=(0,y._getInitializedChains)(t);if("number"==typeof e||h.BN.isBN(e)){if(e=e.toString(),n.names[e])return n[n.names[e]];throw new Error("Chain with ID ".concat(e," not supported"))}if(n[e])return n[e];throw new Error("Chain with name ".concat(e," not supported"))},t.prototype.setChain=function(e){var n,r;if("number"==typeof e||"string"==typeof e||h.BN.isBN(e)){var a;a=this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0])?this._customChains.map((function(e){return e[0]})):this._customChains,this._chainParams=t._getChainParams(e,a)}else{if("object"!=typeof e)throw new Error("Wrong input format");if(this._customChains.length>0)throw new Error("Chain must be a string, number, or BN when initialized with customChains passed in");try{for(var i=s(["networkId","genesis","hardforks","bootstrapNodes"]),o=i.next();!o.done;o=i.next()){var c=o.value;if(void 0===e[c])throw new Error("Missing required chain parameter: ".concat(c))}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}this._chainParams=e}return this._chainParams},t.prototype.setHardfork=function(e){var t,n;if(!this._isSupportedHardfork(e))throw new Error("Hardfork ".concat(e," not set as supported in supportedHardforks"));var r=!1;try{for(var a=s(m.hardforks),i=a.next();!i.done;i=a.next())i.value[0]===e&&(this._hardfork!==e&&(this._hardfork=e,this.emit("hardforkChanged",e)),r=!0)}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}if(!r)throw new Error("Hardfork with name ".concat(e," not supported"))},t.prototype.getHardforkByBlockNumber=function(e,t){var n,r;e=(0,h.toType)(e,h.TypeOutput.BN),t=(0,h.toType)(t,h.TypeOutput.BN);var a,i,o,c=u.Chainstart;try{for(var f=s(this.hardforks()),d=f.next();!d.done;d=f.next()){var l=d.value;if(null!==l.block)e.gte(new h.BN(l.block))&&(c=l.name),t&&l.td&&(t.gte(new h.BN(l.td))?a=l.name:i=o),o=l.name;else if(null!=t&&void 0!==l.td&&null!==l.td&&t.gte(new h.BN(l.td)))return l.name}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}if(t){var p="block number: ".concat(e," (-> ").concat(c,"), ");if(a&&!this.hardforkGteHardfork(c,a)){var b="HF determined by block number is lower than the minimum total difficulty HF";throw p+="total difficulty: ".concat(t," (-> ").concat(a,")"),new Error("".concat(b,": ").concat(p))}if(i&&!this.hardforkGteHardfork(i,c))throw b="Maximum HF determined by total difficulty is lower than the block number HF",p+="total difficulty: ".concat(t," (-> ").concat(i,")"),new Error("".concat(b,": ").concat(p))}return c},t.prototype.setHardforkByBlockNumber=function(e,t){var n=this.getHardforkByBlockNumber(e,t);return this.setHardfork(n),n},t.prototype._chooseHardfork=function(e,t){if(void 0===t&&(t=!0),e){if(t&&!this._isSupportedHardfork(e))throw new Error("Hardfork ".concat(e," not set as supported in supportedHardforks"))}else e=this._hardfork;return e},t.prototype._getHardfork=function(e){var t,n,r=this.hardforks();try{for(var a=s(r),i=a.next();!i.done;i=a.next()){var o=i.value;if(o.name===e)return o}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}throw new Error("Hardfork ".concat(e," not defined for chain ").concat(this.chainName()))},t.prototype._isSupportedHardfork=function(e){var t,n;if(!(this._supportedHardforks.length>0))return!0;try{for(var r=s(this._supportedHardforks),a=r.next();!a.done;a=r.next())if(e===a.value)return!0}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!1},t.prototype.setEIPs=function(e){var t,n,r=this;void 0===e&&(e=[]);var a=function(t){if(!(t in v.EIPs))throw new Error("".concat(t," not supported"));var n=i.gteHardfork(v.EIPs[t].minimumHardfork);if(!n)throw new Error("".concat(t," cannot be activated on hardfork ").concat(i.hardfork(),", minimumHardfork: ").concat(n));v.EIPs[t].requiredEIPs&&v.EIPs[t].requiredEIPs.forEach((function(n){if(!e.includes(n)&&!r.isActivatedEIP(n))throw new Error("".concat(t," requires EIP ").concat(n,", but is not included in the EIP list"))}))},i=this;try{for(var o=s(e),c=o.next();!c.done;c=o.next())a(c.value)}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}this._eips=e},t.prototype.param=function(e,t){var n,r,a=null;try{for(var i=s(this._eips),o=i.next();!o.done;o=i.next()){var c=o.value;if(null!==(a=this.paramByEIP(e,t,c)))return a}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this.paramByHardfork(e,t,this._hardfork)},t.prototype.paramByHardfork=function(e,t,n){var r,a,i,o;n=this._chooseHardfork(n);var c=null;try{for(var u=s(m.hardforks),f=u.next();!f.done;f=u.next()){var d=f.value;if("eips"in d[1]){var l=d[1].eips;try{for(var p=(i=void 0,s(l)),b=p.next();!b.done;b=p.next()){var h=b.value,y=this.paramByEIP(e,t,h);c=null!==y?y:c}}catch(e){i={error:e}}finally{try{b&&!b.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}}else{if(!d[1][e])throw new Error("Topic ".concat(e," not defined"));void 0!==d[1][e][t]&&(c=d[1][e][t].v)}if(d[0]===n)break}}catch(e){r={error:e}}finally{try{f&&!f.done&&(a=u.return)&&a.call(u)}finally{if(r)throw r.error}}return c},t.prototype.paramByEIP=function(e,t,n){if(!(n in v.EIPs))throw new Error("".concat(n," not supported"));var r=v.EIPs[n];if(!(e in r))throw new Error("Topic ".concat(e," not defined"));return void 0===r[e][t]?null:r[e][t].v},t.prototype.paramByBlock=function(e,t,n){var r=this.activeHardforks(n),a=r[r.length-1].name;return this.paramByHardfork(e,t,a)},t.prototype.isActivatedEIP=function(e){var t,n;if(this.eips().includes(e))return!0;try{for(var r=s(m.hardforks),a=r.next();!a.done;a=r.next()){var i=a.value[1];if(this.gteHardfork(i.name)&&"eips"in i&&i.eips.includes(e))return!0}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!1},t.prototype.hardforkIsActiveOnBlock=function(e,t,n){var r;void 0===n&&(n={}),t=(0,h.toType)(t,h.TypeOutput.BN);var a=null!==(r=n.onlySupported)&&void 0!==r&&r;e=this._chooseHardfork(e,a);var i=this.hardforkBlockBN(e);return!(!i||!t.gte(i))},t.prototype.activeOnBlock=function(e,t){return this.hardforkIsActiveOnBlock(null,e,t)},t.prototype.hardforkGteHardfork=function(e,t,n){var r,a;void 0===n&&(n={});var i,o=void 0!==n.onlyActive&&n.onlyActive;e=this._chooseHardfork(e,n.onlySupported),i=o?this.activeHardforks(null,n):this.hardforks();var c=-1,u=-1,f=0;try{for(var d=s(i),l=d.next();!l.done;l=d.next()){var p=l.value;p.name===e&&(c=f),p.name===t&&(u=f),f+=1}}catch(e){r={error:e}}finally{try{l&&!l.done&&(a=d.return)&&a.call(d)}finally{if(r)throw r.error}}return c>=u&&-1!==u},t.prototype.gteHardfork=function(e,t){return this.hardforkGteHardfork(null,e,t)},t.prototype.hardforkIsActiveOnChain=function(e,t){var n,r,a;void 0===t&&(t={});var i=null!==(a=t.onlySupported)&&void 0!==a&&a;e=this._chooseHardfork(e,i);try{for(var o=s(this.hardforks()),c=o.next();!c.done;c=o.next()){var u=c.value;if(u.name===e&&null!==u.block)return!0}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1},t.prototype.activeHardforks=function(e,t){var n,r;void 0===t&&(t={});var a=[],i=this.hardforks();try{for(var o=s(i),c=o.next();!c.done;c=o.next()){var u=c.value;if(null!==u.block){if(null!=e&&e0)return n[n.length-1].name;throw new Error("No (supported) active hardfork found")},t.prototype.hardforkBlock=function(e){var t=this.hardforkBlockBN(e);return(0,h.toType)(t,h.TypeOutput.Number)},t.prototype.hardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).block;return null==t?null:new h.BN(t)},t.prototype.hardforkTD=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).td;return null==t?null:new h.BN(t)},t.prototype.isHardforkBlock=function(e,t){e=(0,h.toType)(e,h.TypeOutput.BN),t=this._chooseHardfork(t,!1);var n=this.hardforkBlockBN(t);return!!n&&n.eq(e)},t.prototype.nextHardforkBlock=function(e){var t=this.nextHardforkBlockBN(e);return(0,h.toType)(t,h.TypeOutput.Number)},t.prototype.nextHardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this.hardforkBlockBN(e);return null===t?null:this.hardforks().reduce((function(e,n){var r=new h.BN(n.block);return r.gt(t)&&null===e?r:e}),null)},t.prototype.isNextHardforkBlock=function(e,t){e=(0,h.toType)(e,h.TypeOutput.BN),t=this._chooseHardfork(t,!1);var n=this.nextHardforkBlockBN(t);return null!==n&&n.eq(e)},t.prototype._calcForkHash=function(e){var t,n,r=a.from(this.genesis().hash.substr(2),"hex"),i=a.alloc(0),o=0;try{for(var c=s(this.hardforks()),u=c.next();!u.done;u=c.next()){var f=u.value,d=f.block;if(0!==d&&null!==d&&d!==o){var l=a.from(d.toString(16).padStart(16,"0"),"hex");i=a.concat([i,l])}if(f.name===e)break;null!==d&&(o=d)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}var p=a.concat([r,i]),y=(0,h.intToBuffer)((0,b.buf)(p)>>>0).toString("hex");return"0x".concat(y)},t.prototype.forkHash=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e);if(null===t.block&&void 0===t.td)throw new Error("No fork hash calculation possible for future hardfork");return void 0!==t.forkHash?t.forkHash:this._calcForkHash(e)},t.prototype.hardforkForForkHash=function(e){var t=this.hardforks().filter((function(t){return t.forkHash===e}));return t.length>=1?t[t.length-1]:null},t.prototype.genesis=function(){return this._chainParams.genesis},t.prototype.genesisState=function(){var e,t;switch(this.chainName()){case"mainnet":return n(80575);case"ropsten":return n(69893);case"rinkeby":return n(27484);case"kovan":return n(98613);case"goerli":return n(20574);case"sepolia":return n(65550)}if(this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0]))try{for(var r=s(this._customChains),a=r.next();!a.done;a=r.next()){var i=a.value;if(i[0].name===this.chainName())return i[1]}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return{}},t.prototype.hardforks=function(){return this._chainParams.hardforks},t.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},t.prototype.dnsNetworks=function(){return this._chainParams.dnsNetworks},t.prototype.hardfork=function(){return this._hardfork},t.prototype.chainId=function(){return(0,h.toType)(this.chainIdBN(),h.TypeOutput.Number)},t.prototype.chainIdBN=function(){return new h.BN(this._chainParams.chainId)},t.prototype.chainName=function(){return this._chainParams.name},t.prototype.networkId=function(){return(0,h.toType)(this.networkIdBN(),h.TypeOutput.Number)},t.prototype.networkIdBN=function(){return new h.BN(this._chainParams.networkId)},t.prototype.eips=function(){return this._eips},t.prototype.consensusType=function(){var e,t,n,r=this.hardfork();try{for(var a=s(m.hardforks),i=a.next();!i.done;i=a.next()){var o=i.value;if("consensus"in o[1]&&(n=o[1].consensus.type),o[0]===r)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return n||this._chainParams.consensus.type},t.prototype.consensusAlgorithm=function(){var e,t,n,r=this.hardfork();try{for(var a=s(m.hardforks),i=a.next();!i.done;i=a.next()){var o=i.value;if("consensus"in o[1]&&(n=o[1].consensus.algorithm),o[0]===r)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return n||this._chainParams.consensus.algorithm},t.prototype.consensusConfig=function(){var e,t,n,r=this.hardfork();try{for(var a=s(m.hardforks),i=a.next();!i.done;i=a.next()){var o=i.value;if("consensus"in o[1]&&(n=o[1].consensus[o[1].consensus.algorithm]),o[0]===r)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}if(n)return n;var c=this.consensusAlgorithm();return this._chainParams.consensus[c]},t.prototype.copy=function(){var e=Object.assign(Object.create(Object.getPrototypeOf(this)),this);return e.removeAllListeners(),e},t}(p.EventEmitter);t.default=g},76098:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTransaction=void 0;var c=i(n(31747)),u=n(63544),f=n(93293),d=function(){function e(e,t){this.cache={hash:void 0,dataFee:void 0},this.activeCapabilities=[],this.DEFAULT_CHAIN=c.Chain.Mainnet,this.DEFAULT_HARDFORK=c.Hardfork.Istanbul;var n=e.nonce,r=e.gasLimit,a=e.to,i=e.value,o=e.data,s=e.v,f=e.r,d=e.s,l=e.type;this._type=new u.BN((0,u.toBuffer)(l)).toNumber(),this.txOptions=t;var p=(0,u.toBuffer)(""===a?"0x":a),b=(0,u.toBuffer)(""===s?"0x":s),h=(0,u.toBuffer)(""===f?"0x":f),y=(0,u.toBuffer)(""===d?"0x":d);this.nonce=new u.BN((0,u.toBuffer)(""===n?"0x":n)),this.gasLimit=new u.BN((0,u.toBuffer)(""===r?"0x":r)),this.to=p.length>0?new u.Address(p):void 0,this.value=new u.BN((0,u.toBuffer)(""===i?"0x":i)),this.data=(0,u.toBuffer)(""===o?"0x":o),this.v=b.length>0?new u.BN(b):void 0,this.r=h.length>0?new u.BN(h):void 0,this.s=y.length>0?new u.BN(y):void 0,this._validateCannotExceedMaxInteger({value:this.value,r:this.r,s:this.s}),this._validateCannotExceedMaxInteger({gasLimit:this.gasLimit},64),this._validateCannotExceedMaxInteger({nonce:this.nonce},64,!0)}return Object.defineProperty(e.prototype,"transactionType",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.supports=function(e){return this.activeCapabilities.includes(e)},e.prototype.validate=function(e){void 0===e&&(e=!1);var t=[];return this.getBaseFee().gt(this.gasLimit)&&t.push("gasLimit is too low. given ".concat(this.gasLimit,", need at least ").concat(this.getBaseFee())),this.isSigned()&&!this.verifySignature()&&t.push("Invalid Signature"),e?t:0===t.length},e.prototype.getBaseFee=function(){var e=this.getDataFee().addn(this.common.param("gasPrices","tx"));return this.common.gteHardfork("homestead")&&this.toCreationAddress()&&e.iaddn(this.common.param("gasPrices","txCreation")),e},e.prototype.getDataFee=function(){for(var e=this.common.param("gasPrices","txDataZero"),t=this.common.param("gasPrices","txDataNonZero"),n=0,r=0;r-1&&this.activeCapabilities.splice(d,1)}return c},e.prototype._getCommon=function(e,t){var n;if(t){var r=new u.BN((0,u.toBuffer)(t));if(e){if(!e.chainIdBN().eq(r)){var a=this._errorMsg("The chain ID does not match the chain ID of Common");throw new Error(a)}return e.copy()}return c.default.isSupportedChainId(r)?new c.default({chain:r,hardfork:this.DEFAULT_HARDFORK}):c.default.forCustomChain(this.DEFAULT_CHAIN,{name:"custom-chain",networkId:r,chainId:r},this.DEFAULT_HARDFORK)}return null!==(n=null==e?void 0:e.copy())&&void 0!==n?n:new c.default({chain:this.DEFAULT_CHAIN,hardfork:this.DEFAULT_HARDFORK})},e.prototype._validateCannotExceedMaxInteger=function(e,t,n){var r,a;void 0===t&&(t=256),void 0===n&&(n=!1);try{for(var i=o(Object.entries(e)),c=i.next();!c.done;c=i.next()){var f=s(c.value,2),d=f[0],l=f[1];switch(t){case 64:if(n){if(null==l?void 0:l.gte(u.MAX_UINT64)){var p=this._errorMsg("".concat(d," cannot equal or exceed MAX_UINT64 (2^64-1), given ").concat(l));throw new Error(p)}}else if(null==l?void 0:l.gt(u.MAX_UINT64))throw p=this._errorMsg("".concat(d," cannot exceed MAX_UINT64 (2^64-1), given ").concat(l)),new Error(p);break;case 256:if(n){if(null==l?void 0:l.gte(u.MAX_INTEGER))throw p=this._errorMsg("".concat(d," cannot equal or exceed MAX_INTEGER (2^256-1), given ").concat(l)),new Error(p)}else if(null==l?void 0:l.gt(u.MAX_INTEGER))throw p=this._errorMsg("".concat(d," cannot exceed MAX_INTEGER (2^256-1), given ").concat(l)),new Error(p);break;default:throw p=this._errorMsg("unimplemented bits value"),new Error(p)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}},e.prototype._getSharedErrorPostfix=function(){var e="";try{e=this.isSigned()?(0,u.bufferToHex)(this.hash()):"not available (unsigned)"}catch(t){e="error"}var t="";try{t=this.isSigned().toString()}catch(t){e="error"}var n="";try{n=this.common.hardfork()}catch(e){n="error"}return"tx type=".concat(this.type," hash=").concat(e," nonce=").concat(this.nonce," value=").concat(this.value," ")+"signed=".concat(t," hf=").concat(n)},e}();t.BaseTransaction=d},25161:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0});var c=n(63544),u=n(76098),f=n(93293),d=n(36971),l=a.from(2..toString(16).padStart(2,"0"),"hex"),p=function(e){function t(t,n){void 0===n&&(n={});var r,a,i=this;(i=e.call(this,o(o({},t),{type:2}),n)||this).DEFAULT_HARDFORK="london";var s=t.chainId,u=t.accessList,l=t.maxFeePerGas,p=t.maxPriorityFeePerGas;if(i.common=i._getCommon(n.common,s),i.chainId=i.common.chainIdBN(),!i.common.isActivatedEIP(1559))throw new Error("EIP-1559 not enabled on Common");i.activeCapabilities=i.activeCapabilities.concat([1559,2718,2930]);var b=d.AccessLists.getAccessListData(null!=u?u:[]);if(i.accessList=b.accessList,i.AccessListJSON=b.AccessListJSON,d.AccessLists.verifyAccessList(i.accessList),i.maxFeePerGas=new c.BN((0,c.toBuffer)(""===l?"0x":l)),i.maxPriorityFeePerGas=new c.BN((0,c.toBuffer)(""===p?"0x":p)),i._validateCannotExceedMaxInteger({maxFeePerGas:i.maxFeePerGas,maxPriorityFeePerGas:i.maxPriorityFeePerGas}),i.gasLimit.mul(i.maxFeePerGas).gt(c.MAX_INTEGER)){var h=i._errorMsg("gasLimit * maxFeePerGas cannot exceed MAX_INTEGER (2^256-1)");throw new Error(h)}if(i.maxFeePerGas.lt(i.maxPriorityFeePerGas))throw h=i._errorMsg("maxFeePerGas cannot be less than maxPriorityFeePerGas (The total must be the larger of the two)"),new Error(h);if(i.v&&!i.v.eqn(0)&&!i.v.eqn(1))throw h=i._errorMsg("The y-parity of the transaction should either be 0 or 1"),new Error(h);if(i.common.gteHardfork("homestead")&&(null===(r=i.s)||void 0===r?void 0:r.gt(f.N_DIV_2)))throw h=i._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid"),new Error(h);return i.common.isActivatedEIP(3860)&&(0,d.checkMaxInitCodeSize)(i.common,i.data.length),(null===(a=null==n?void 0:n.freeze)||void 0===a||a)&&Object.freeze(i),i}return i(t,e),Object.defineProperty(t.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),t.fromTxData=function(e,n){return void 0===n&&(n={}),new t(e,n)},t.fromSerializedTx=function(e,n){if(void 0===n&&(n={}),!e.slice(0,1).equals(l))throw new Error("Invalid serialized tx input: not an EIP-1559 transaction (wrong tx type, expected: ".concat(2,", received: ").concat(e.slice(0,1).toString("hex")));var r=c.rlp.decode(e.slice(1));if(!Array.isArray(r))throw new Error("Invalid serialized tx input: must be array");return t.fromValuesArray(r,n)},t.fromRlpSerializedTx=function(e,n){return void 0===n&&(n={}),t.fromSerializedTx(e,n)},t.fromValuesArray=function(e,n){if(void 0===n&&(n={}),9!==e.length&&12!==e.length)throw new Error("Invalid EIP-1559 transaction. Only expecting 9 values (for unsigned tx) or 12 values (for signed tx).");var r=s(e,12),a=r[0],i=r[1],o=r[2],u=r[3],f=r[4],d=r[5],l=r[6],p=r[7],b=r[8],h=r[9],y=r[10],m=r[11];return(0,c.validateNoLeadingZeroes)({nonce:i,maxPriorityFeePerGas:o,maxFeePerGas:u,gasLimit:f,value:l,v:h,r:y,s:m}),new t({chainId:new c.BN(a),nonce:i,maxPriorityFeePerGas:o,maxFeePerGas:u,gasLimit:f,to:d,value:l,data:p,accessList:null!=b?b:[],v:void 0!==h?new c.BN(h):void 0,r:y,s:m},n)},t.prototype.getDataFee=function(){if(this.cache.dataFee&&this.cache.dataFee.hardfork===this.common.hardfork())return this.cache.dataFee.value;var t=e.prototype.getDataFee.call(this);return t.iaddn(d.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),Object.isFrozen(this)&&(this.cache.dataFee={value:t,hardfork:this.common.hardfork()}),t},t.prototype.getUpfrontCost=function(e){void 0===e&&(e=new c.BN(0));var t=c.BN.min(this.maxPriorityFeePerGas,this.maxFeePerGas.sub(e)).add(e);return this.gasLimit.mul(t).add(this.value)},t.prototype.raw=function(){return[(0,c.bnToUnpaddedBuffer)(this.chainId),(0,c.bnToUnpaddedBuffer)(this.nonce),(0,c.bnToUnpaddedBuffer)(this.maxPriorityFeePerGas),(0,c.bnToUnpaddedBuffer)(this.maxFeePerGas),(0,c.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:a.from([]),(0,c.bnToUnpaddedBuffer)(this.value),this.data,this.accessList,void 0!==this.v?(0,c.bnToUnpaddedBuffer)(this.v):a.from([]),void 0!==this.r?(0,c.bnToUnpaddedBuffer)(this.r):a.from([]),void 0!==this.s?(0,c.bnToUnpaddedBuffer)(this.s):a.from([])]},t.prototype.serialize=function(){var e=this.raw();return a.concat([l,c.rlp.encode(e)])},t.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var t=this.raw().slice(0,9),n=a.concat([l,c.rlp.encode(t)]);return e?(0,c.keccak256)(n):n},t.prototype.hash=function(){if(!this.isSigned()){var e=this._errorMsg("Cannot call hash method if transaction is not signed");throw new Error(e)}return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,c.keccak256)(this.serialize())),this.cache.hash):(0,c.keccak256)(this.serialize())},t.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},t.prototype.getSenderPublicKey=function(){var e;if(!this.isSigned()){var t=this._errorMsg("Cannot call this method if transaction is not signed");throw new Error(t)}var n=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(f.N_DIV_2)))throw t=this._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid"),new Error(t);var r=this,a=r.v,i=r.r,o=r.s;try{return(0,c.ecrecover)(n,a.addn(27),(0,c.bnToUnpaddedBuffer)(i),(0,c.bnToUnpaddedBuffer)(o))}catch(e){throw t=this._errorMsg("Invalid Signature"),new Error(t)}},t.prototype._processSignature=function(e,n,r){var a=o(o({},this.txOptions),{common:this.common});return t.fromTxData({chainId:this.chainId,nonce:this.nonce,maxPriorityFeePerGas:this.maxPriorityFeePerGas,maxFeePerGas:this.maxFeePerGas,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new c.BN(e-27),r:new c.BN(n),s:new c.BN(r)},a)},t.prototype.toJSON=function(){var e=d.AccessLists.getAccessListJSON(this.accessList);return{chainId:(0,c.bnToHex)(this.chainId),nonce:(0,c.bnToHex)(this.nonce),maxPriorityFeePerGas:(0,c.bnToHex)(this.maxPriorityFeePerGas),maxFeePerGas:(0,c.bnToHex)(this.maxFeePerGas),gasLimit:(0,c.bnToHex)(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:(0,c.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),accessList:e,v:void 0!==this.v?(0,c.bnToHex)(this.v):void 0,r:void 0!==this.r?(0,c.bnToHex)(this.r):void 0,s:void 0!==this.s?(0,c.bnToHex)(this.s):void 0}},t.prototype.errorStr=function(){return this._getSharedErrorPostfix()+" maxFeePerGas=".concat(this.maxFeePerGas," maxPriorityFeePerGas=").concat(this.maxPriorityFeePerGas)},t.prototype._errorMsg=function(e){return"".concat(e," (").concat(this.errorStr(),")")},t}(u.BaseTransaction);t.default=p},83886:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0});var c=n(63544),u=n(76098),f=n(93293),d=n(36971),l=a.from(1..toString(16).padStart(2,"0"),"hex"),p=function(e){function t(t,n){void 0===n&&(n={});var r,a,i=this;(i=e.call(this,o(o({},t),{type:1}),n)||this).DEFAULT_HARDFORK="berlin";var s=t.chainId,u=t.accessList,l=t.gasPrice;if(i.common=i._getCommon(n.common,s),i.chainId=i.common.chainIdBN(),!i.common.isActivatedEIP(2930))throw new Error("EIP-2930 not enabled on Common");i.activeCapabilities=i.activeCapabilities.concat([2718,2930]);var p=d.AccessLists.getAccessListData(null!=u?u:[]);if(i.accessList=p.accessList,i.AccessListJSON=p.AccessListJSON,d.AccessLists.verifyAccessList(i.accessList),i.gasPrice=new c.BN((0,c.toBuffer)(""===l?"0x":l)),i._validateCannotExceedMaxInteger({gasPrice:i.gasPrice}),i.gasPrice.mul(i.gasLimit).gt(c.MAX_INTEGER)){var b=i._errorMsg("gasLimit * gasPrice cannot exceed MAX_INTEGER");throw new Error(b)}if(i.v&&!i.v.eqn(0)&&!i.v.eqn(1))throw b=i._errorMsg("The y-parity of the transaction should either be 0 or 1"),new Error(b);if(i.common.gteHardfork("homestead")&&(null===(r=i.s)||void 0===r?void 0:r.gt(f.N_DIV_2)))throw b=i._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid"),new Error(b);return i.common.isActivatedEIP(3860)&&(0,d.checkMaxInitCodeSize)(i.common,i.data.length),(null===(a=null==n?void 0:n.freeze)||void 0===a||a)&&Object.freeze(i),i}return i(t,e),Object.defineProperty(t.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),t.fromTxData=function(e,n){return void 0===n&&(n={}),new t(e,n)},t.fromSerializedTx=function(e,n){if(void 0===n&&(n={}),!e.slice(0,1).equals(l))throw new Error("Invalid serialized tx input: not an EIP-2930 transaction (wrong tx type, expected: ".concat(1,", received: ").concat(e.slice(0,1).toString("hex")));var r=c.rlp.decode(e.slice(1));if(!Array.isArray(r))throw new Error("Invalid serialized tx input: must be array");return t.fromValuesArray(r,n)},t.fromRlpSerializedTx=function(e,n){return void 0===n&&(n={}),t.fromSerializedTx(e,n)},t.fromValuesArray=function(e,n){if(void 0===n&&(n={}),8!==e.length&&11!==e.length)throw new Error("Invalid EIP-2930 transaction. Only expecting 8 values (for unsigned tx) or 11 values (for signed tx).");var r=s(e,11),a=r[0],i=r[1],o=r[2],u=r[3],f=r[4],d=r[5],l=r[6],p=r[7],b=r[8],h=r[9],y=r[10];return(0,c.validateNoLeadingZeroes)({nonce:i,gasPrice:o,gasLimit:u,value:d,v:b,r:h,s:y}),new t({chainId:new c.BN(a),nonce:i,gasPrice:o,gasLimit:u,to:f,value:d,data:l,accessList:null!=p?p:[],v:void 0!==b?new c.BN(b):void 0,r:h,s:y},n)},t.prototype.getDataFee=function(){if(this.cache.dataFee&&this.cache.dataFee.hardfork===this.common.hardfork())return this.cache.dataFee.value;var t=e.prototype.getDataFee.call(this);return t.iaddn(d.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),Object.isFrozen(this)&&(this.cache.dataFee={value:t,hardfork:this.common.hardfork()}),t},t.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},t.prototype.raw=function(){return[(0,c.bnToUnpaddedBuffer)(this.chainId),(0,c.bnToUnpaddedBuffer)(this.nonce),(0,c.bnToUnpaddedBuffer)(this.gasPrice),(0,c.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:a.from([]),(0,c.bnToUnpaddedBuffer)(this.value),this.data,this.accessList,void 0!==this.v?(0,c.bnToUnpaddedBuffer)(this.v):a.from([]),void 0!==this.r?(0,c.bnToUnpaddedBuffer)(this.r):a.from([]),void 0!==this.s?(0,c.bnToUnpaddedBuffer)(this.s):a.from([])]},t.prototype.serialize=function(){var e=this.raw();return a.concat([l,c.rlp.encode(e)])},t.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var t=this.raw().slice(0,8),n=a.concat([l,c.rlp.encode(t)]);return e?(0,c.keccak256)(n):n},t.prototype.hash=function(){if(!this.isSigned()){var e=this._errorMsg("Cannot call hash method if transaction is not signed");throw new Error(e)}return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,c.keccak256)(this.serialize())),this.cache.hash):(0,c.keccak256)(this.serialize())},t.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},t.prototype.getSenderPublicKey=function(){var e;if(!this.isSigned()){var t=this._errorMsg("Cannot call this method if transaction is not signed");throw new Error(t)}var n=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(f.N_DIV_2)))throw t=this._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid"),new Error(t);var r=this,a=r.yParity,i=r.r,o=r.s;try{return(0,c.ecrecover)(n,a.addn(27),(0,c.bnToUnpaddedBuffer)(i),(0,c.bnToUnpaddedBuffer)(o))}catch(e){throw t=this._errorMsg("Invalid Signature"),new Error(t)}},t.prototype._processSignature=function(e,n,r){var a=o(o({},this.txOptions),{common:this.common});return t.fromTxData({chainId:this.chainId,nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new c.BN(e-27),r:new c.BN(n),s:new c.BN(r)},a)},t.prototype.toJSON=function(){var e=d.AccessLists.getAccessListJSON(this.accessList);return{chainId:(0,c.bnToHex)(this.chainId),nonce:(0,c.bnToHex)(this.nonce),gasPrice:(0,c.bnToHex)(this.gasPrice),gasLimit:(0,c.bnToHex)(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:(0,c.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),accessList:e,v:void 0!==this.v?(0,c.bnToHex)(this.v):void 0,r:void 0!==this.r?(0,c.bnToHex)(this.r):void 0,s:void 0!==this.s?(0,c.bnToHex)(this.s):void 0}},t.prototype.errorStr=function(){var e,t;return this._getSharedErrorPostfix()+" gasPrice=".concat(this.gasPrice," accessListCount=").concat(null!==(t=null===(e=this.accessList)||void 0===e?void 0:e.length)&&void 0!==t?t:0)},t.prototype._errorMsg=function(e){return"".concat(e," (").concat(this.errorStr(),")")},t}(u.BaseTransaction);t.default=p},71119:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeeMarketEIP1559Transaction=t.TransactionFactory=t.AccessListEIP2930Transaction=t.Transaction=void 0;var o=n(66471);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return i(o).default}});var s=n(83886);Object.defineProperty(t,"AccessListEIP2930Transaction",{enumerable:!0,get:function(){return i(s).default}});var c=n(14584);Object.defineProperty(t,"TransactionFactory",{enumerable:!0,get:function(){return i(c).default}});var u=n(25161);Object.defineProperty(t,"FeeMarketEIP1559Transaction",{enumerable:!0,get:function(){return i(u).default}}),a(n(93293),t)},66471:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0});var c=n(63544),u=n(93293),f=n(76098),d=n(36971),l=function(e){function t(t,n){void 0===n&&(n={});var r,a=this;if((a=e.call(this,o(o({},t),{type:0}),n)||this).common=a._validateTxV(a.v,n.common),a.gasPrice=new c.BN((0,c.toBuffer)(""===t.gasPrice?"0x":t.gasPrice)),a.gasPrice.mul(a.gasLimit).gt(c.MAX_INTEGER)){var i=a._errorMsg("gas limit * gasPrice cannot exceed MAX_INTEGER (2^256-1)");throw new Error(i)}if(a._validateCannotExceedMaxInteger({gasPrice:a.gasPrice}),a.common.gteHardfork("spuriousDragon"))if(a.isSigned()){var s=a.v,f=a.common.chainIdBN().muln(2);(s.eq(f.addn(35))||s.eq(f.addn(36)))&&a.activeCapabilities.push(u.Capability.EIP155ReplayProtection)}else a.activeCapabilities.push(u.Capability.EIP155ReplayProtection);return a.common.isActivatedEIP(3860)&&(0,d.checkMaxInitCodeSize)(a.common,a.data.length),(null===(r=null==n?void 0:n.freeze)||void 0===r||r)&&Object.freeze(a),a}return i(t,e),t.fromTxData=function(e,n){return void 0===n&&(n={}),new t(e,n)},t.fromSerializedTx=function(e,t){void 0===t&&(t={});var n=c.rlp.decode(e);if(!Array.isArray(n))throw new Error("Invalid serialized tx input. Must be array");return this.fromValuesArray(n,t)},t.fromRlpSerializedTx=function(e,n){return void 0===n&&(n={}),t.fromSerializedTx(e,n)},t.fromValuesArray=function(e,n){if(void 0===n&&(n={}),6!==e.length&&9!==e.length)throw new Error("Invalid transaction. Only expecting 6 values (for unsigned tx) or 9 values (for signed tx).");var r=s(e,9),a=r[0],i=r[1],o=r[2],u=r[3],f=r[4],d=r[5],l=r[6],p=r[7],b=r[8];return(0,c.validateNoLeadingZeroes)({nonce:a,gasPrice:i,gasLimit:o,value:f,v:l,r:p,s:b}),new t({nonce:a,gasPrice:i,gasLimit:o,to:u,value:f,data:d,v:l,r:p,s:b},n)},t.prototype.raw=function(){return[(0,c.bnToUnpaddedBuffer)(this.nonce),(0,c.bnToUnpaddedBuffer)(this.gasPrice),(0,c.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:a.from([]),(0,c.bnToUnpaddedBuffer)(this.value),this.data,void 0!==this.v?(0,c.bnToUnpaddedBuffer)(this.v):a.from([]),void 0!==this.r?(0,c.bnToUnpaddedBuffer)(this.r):a.from([]),void 0!==this.s?(0,c.bnToUnpaddedBuffer)(this.s):a.from([])]},t.prototype.serialize=function(){return c.rlp.encode(this.raw())},t.prototype._getMessageToSign=function(){var e=[(0,c.bnToUnpaddedBuffer)(this.nonce),(0,c.bnToUnpaddedBuffer)(this.gasPrice),(0,c.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:a.from([]),(0,c.bnToUnpaddedBuffer)(this.value),this.data];return this.supports(u.Capability.EIP155ReplayProtection)&&(e.push((0,c.toBuffer)(this.common.chainIdBN())),e.push((0,c.unpadBuffer)((0,c.toBuffer)(0))),e.push((0,c.unpadBuffer)((0,c.toBuffer)(0)))),e},t.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var t=this._getMessageToSign();return e?(0,c.rlphash)(t):t},t.prototype.getDataFee=function(){return this.cache.dataFee&&this.cache.dataFee.hardfork===this.common.hardfork()?this.cache.dataFee.value:(Object.isFrozen(this)&&(this.cache.dataFee={value:e.prototype.getDataFee.call(this),hardfork:this.common.hardfork()}),e.prototype.getDataFee.call(this))},t.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},t.prototype.hash=function(){return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,c.rlphash)(this.raw())),this.cache.hash):(0,c.rlphash)(this.raw())},t.prototype.getMessageToVerifySignature=function(){if(!this.isSigned()){var e=this._errorMsg("This transaction is not signed");throw new Error(e)}var t=this._getMessageToSign();return(0,c.rlphash)(t)},t.prototype.getSenderPublicKey=function(){var e,t=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(u.N_DIV_2))){var n=this._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");throw new Error(n)}var r=this,a=r.v,i=r.r,o=r.s;try{return(0,c.ecrecover)(t,a,(0,c.bnToUnpaddedBuffer)(i),(0,c.bnToUnpaddedBuffer)(o),this.supports(u.Capability.EIP155ReplayProtection)?this.common.chainIdBN():void 0)}catch(e){throw n=this._errorMsg("Invalid Signature"),new Error(n)}},t.prototype._processSignature=function(e,n,r){var a=new c.BN(e);this.supports(u.Capability.EIP155ReplayProtection)&&a.iadd(this.common.chainIdBN().muln(2).addn(8));var i=o(o({},this.txOptions),{common:this.common});return t.fromTxData({nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,v:a,r:new c.BN(n),s:new c.BN(r)},i)},t.prototype.toJSON=function(){return{nonce:(0,c.bnToHex)(this.nonce),gasPrice:(0,c.bnToHex)(this.gasPrice),gasLimit:(0,c.bnToHex)(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:(0,c.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),v:void 0!==this.v?(0,c.bnToHex)(this.v):void 0,r:void 0!==this.r?(0,c.bnToHex)(this.r):void 0,s:void 0!==this.s?(0,c.bnToHex)(this.s):void 0}},t.prototype._validateTxV=function(e,t){if(void 0!==e&&e.ltn(37)&&!e.eqn(27)&&!e.eqn(28))throw new Error("Legacy txs need either v = 27/28 or v >= 37 (EIP-155 replay protection), got v = ".concat(e));var n;if(void 0!==e&&(!t||t.gteHardfork("spuriousDragon"))&&!e.eqn(27)&&!e.eqn(28))if(t){var r=t.chainIdBN().muln(2);if(!e.eq(r.addn(35))&&!e.eq(r.addn(36)))throw new Error("Incompatible EIP155-based V ".concat(e," and chain id ").concat(t.chainIdBN(),". See the Common parameter of the Transaction constructor to set the chain id."))}else{var a;a=e.subn(35).isEven()?35:36,n=e.subn(a).divn(2)}return this._getCommon(t,n)},t.prototype._unsignedTxImplementsEIP155=function(){return this.common.gteHardfork("spuriousDragon")},t.prototype._signedTxImplementsEIP155=function(){if(!this.isSigned()){var e=this._errorMsg("This transaction is not signed");throw new Error(e)}var t=this.common.gteHardfork("spuriousDragon"),n=this.v,r=this.common.chainIdBN().muln(2);return(n.eq(r.addn(35))||n.eq(r.addn(36)))&&t},t.prototype.errorStr=function(){return this._getSharedErrorPostfix()+" gasPrice=".concat(this.gasPrice)},t.prototype._errorMsg=function(e){return"".concat(e," (").concat(this.errorStr(),")")},t}(f.BaseTransaction);t.default=l},14584:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var a=n(63544),i=n(71119),o=function(){function e(){}return e.fromTxData=function(e,t){if(void 0===t&&(t={}),"type"in e&&void 0!==e.type){var n=new a.BN((0,a.toBuffer)(e.type)).toNumber();if(0===n)return i.Transaction.fromTxData(e,t);if(1===n)return i.AccessListEIP2930Transaction.fromTxData(e,t);if(2===n)return i.FeeMarketEIP1559Transaction.fromTxData(e,t);throw new Error("Tx instantiation with type ".concat(n," not supported"))}return i.Transaction.fromTxData(e,t)},e.fromSerializedData=function(e,t){if(void 0===t&&(t={}),e[0]<=127){var n=void 0;switch(e[0]){case 1:n=2930;break;case 2:n=1559;break;default:throw new Error("TypedTransaction with ID ".concat(e[0]," unknown"))}return 1559===n?i.FeeMarketEIP1559Transaction.fromSerializedTx(e,t):i.AccessListEIP2930Transaction.fromSerializedTx(e,t)}return i.Transaction.fromSerializedTx(e,t)},e.fromBlockBodyData=function(e,t){if(void 0===t&&(t={}),r.isBuffer(e))return this.fromSerializedData(e,t);if(Array.isArray(e))return i.Transaction.fromValuesArray(e,t);throw new Error("Cannot decode transaction: unknown type input")},e.getTransactionClass=function(e,t){if(void 0===e&&(e=0),0==e||e>=128&&e<=255)return i.Transaction;switch(e){case 1:return i.AccessListEIP2930Transaction;case 2:return i.FeeMarketEIP1559Transaction;default:throw new Error("TypedTransaction with ID ".concat(e," unknown"))}},e}();t.default=o},93293:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.N_DIV_2=t.isAccessList=t.isAccessListBuffer=t.Capability=void 0;var r,a=n(63544);function i(e){if(0===e.length)return!0;var t=e[0];return!!Array.isArray(t)}(r=t.Capability||(t.Capability={}))[r.EIP155ReplayProtection=155]="EIP155ReplayProtection",r[r.EIP1559FeeMarket=1559]="EIP1559FeeMarket",r[r.EIP2718TypedTransaction=2718]="EIP2718TypedTransaction",r[r.EIP2930AccessLists=2930]="EIP2930AccessLists",t.isAccessListBuffer=i,t.isAccessList=function(e){return!i(e)},t.N_DIV_2=new a.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16)},36971:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccessLists=t.checkMaxInitCodeSize=void 0;var r=n(63544),a=n(93293);t.checkMaxInitCodeSize=function(e,t){if(t>e.param("vm","maxInitCodeSize"))throw new Error("the initcode size of this transaction is too large: it is ".concat(t," while the max is ").concat(e.param("vm","maxInitCodeSize")))};var i=function(){function e(){}return e.getAccessListData=function(e){var t,n;if(e&&(0,a.isAccessList)(e)){t=e;for(var i=[],o=0;o=0?a:"")+"]",c=-1===a||e.dynamic;return(o=t.call(this,"array",s,i,c)).coder=e,o.length=a,o}return(0,a.Z)(n,[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],n=0;ne._data.length&&h.throwError("insufficient data length",s.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});for(var n=[],r=0;r256||r%8!=0)&&B.throwArgumentError("invalid "+n[1]+" bit length","param",e),new C(r/8,"int"===n[1],e.name)}if(n=e.type.match(R)){var a=parseInt(n[1]);return(0===a||a>32)&&B.throwArgumentError("invalid bytes length","param",e),new k(a,e.name)}return B.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new u.Ej(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new u.QV(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,n=e.map((function(e){return t._getCoder(M._R.from(e))}));return new P(n,"_").defaultValue()}},{key:"encode",value:function(e,t){var n=this;e.length!==t.length&&B.throwError("types/values length mismatch",s.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var r=e.map((function(e){return n._getCoder(M._R.from(e))})),a=new P(r,"_"),i=this._getWriter();return a.encode(i,t),i.data}},{key:"decode",value:function(e,t,n){var r=this,a=e.map((function(e){return r._getCoder(M._R.from(e))}));return new P(a,"_").decode(this._getReader((0,i.arrayify)(t),n))}}]),e}(),j=new D},67564:function(e,t,n){"use strict";n.d(t,{BR:function(){return d},Ej:function(){return b},QV:function(){return p},XI:function(){return l}});var r=n(47061),a=n(59900),i=n(25289),o=n(63978),s=n(36584),c=n(17163),u=n(2725),f=new c.Logger(u.i);function d(e){var t=[];return function e(n,r){if(Array.isArray(r))for(var a in r){var i=n.slice();i.push(a);try{e(i,r[a])}catch(e){t.push({path:i,error:e})}}}([],e),t}var l=function(){function e(t,n,a,i){(0,r.Z)(this,e),this.name=t,this.type=n,this.localName=a,this.dynamic=i}return(0,a.Z)(e,[{key:"_throwError",value:function(e,t){f.throwArgumentError(e,this.localName,t)}}]),e}(),p=function(){function e(t){(0,r.Z)(this,e),(0,s.defineReadOnly)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}return(0,a.Z)(e,[{key:"data",get:function(){return(0,i.hexConcat)(this._data)}},{key:"length",get:function(){return this._dataLength}},{key:"_writeData",value:function(e){return this._data.push(e),this._dataLength+=e.length,e.length}},{key:"appendWriter",value:function(e){return this._writeData((0,i.concat)(e._data))}},{key:"writeBytes",value:function(e){var t=(0,i.arrayify)(e),n=t.length%this.wordSize;return n&&(t=(0,i.concat)([t,this._padding.slice(n)])),this._writeData(t)}},{key:"_getValue",value:function(e){var t=(0,i.arrayify)(o.O$.from(e));return t.length>this.wordSize&&f.throwError("value out-of-bounds",c.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,i.concat)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){e._data[t]=e._getValue(n)}}}]),e}(),b=function(){function e(t,n,a,o){(0,r.Z)(this,e),(0,s.defineReadOnly)(this,"_data",(0,i.arrayify)(t)),(0,s.defineReadOnly)(this,"wordSize",n||32),(0,s.defineReadOnly)(this,"_coerceFunc",a),(0,s.defineReadOnly)(this,"allowLoose",o),this._offset=0}return(0,a.Z)(e,[{key:"data",get:function(){return(0,i.hexlify)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,n){return this._coerceFunc?this._coerceFunc(t,n):e.coerce(t,n)}},{key:"_peekBytes",value:function(e,t,n){var r=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?r=t:f.throwError("data out-of-bounds",c.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)}},{key:"readValue",value:function(){return o.O$.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t}}]),e}()},30951:function(e,t,n){"use strict";n.d(t,{HY:function(){return w},IC:function(){return T},QV:function(){return x},Xg:function(){return I},YW:function(){return E},_R:function(){return g},pc:function(){return m}});var r=n(24269),a=n(38114),i=n(47061),o=n(59900),s=n(63978),c=n(36584),u=n(17163),f=n(2725),d=new u.Logger(f.i),l={},p={calldata:!0,memory:!0,storage:!0},b={calldata:!0,memory:!0};function h(e,t){if("bytes"===e||"string"===e){if(p[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&b[t])return!0;return(p[t]||"payable"===t)&&d.throwArgumentError("invalid modifier","name",t),!1}function y(e,t){for(var n in t)(0,c.defineReadOnly)(e,n,t[n])}var m=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),v=new RegExp(/^(.*)\[([0-9]*)\]$/),g=function(){function e(t,n){(0,i.Z)(this,e),t!==l&&d.throwError("use fromString",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),y(this,n);var r=this.type.match(v);y(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:e.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return(0,o.Z)(e,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||d.throwArgumentError("invalid format type","format",e),e===m.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var n="";return"array"===this.baseType?(n+=this.arrayChildren.format(e),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==m.sighash&&(n+=this.type),n+="("+this.components.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+")"):n+=this.type,e!==m.sighash&&(!0===this.indexed&&(n+=" indexed"),e===m.full&&this.name&&(n+=" "+this.name)),n}}],[{key:"from",value:function(t,n){return"string"==typeof t?e.fromString(t,n):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(l,{name:t.name||null,type:O(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,n){return r=function(e,t){var n=e;function r(t){d.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function a(e){var n={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(n.indexed=!1),n}e=e.replace(/\s/g," ");for(var i={type:"",name:"",state:{allowType:!0}},o=i,s=0;s2&&d.throwArgumentError("invalid human-readable ABI signature","value",e),n[1].match(/^[0-9]+$/)||d.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=s.O$.from(n[1]),n[0]):e}function k(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function S(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&d.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&d.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||d.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&d.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&d.throwArgumentError("unable to determine stateMutability","value",e),t}var I=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||d.throwArgumentError("invalid format type","format",e),e===m.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});e===m.sighash&&d.throwError("cannot format a constructor for sighash",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isConstructorFragment(e))return e;"constructor"!==e.type&&d.throwArgumentError("invalid constructor object","value",e);var t=S(e);t.constant&&d.throwArgumentError("constructor cannot be constant","value",e);var r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(g.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?s.O$.from(e.gas):null};return new n(l,r)}},{key:"fromString",value:function(e){var t={type:"constructor"},r=(e=_(e,t)).match(B);return r&&"constructor"===r[1].trim()||d.throwArgumentError("invalid constructor string","value",e),t.inputs=A(r[2].trim(),!1),k(r[3].trim(),t),n.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),n}(w),E=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||d.throwArgumentError("invalid format type","format",e),e===m.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==m.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+") ",e!==m.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isFunctionFragment(e))return e;"function"!==e.type&&d.throwArgumentError("invalid function object","value",e);var t=S(e),r={type:e.type,name:M(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(g.fromObject):[],outputs:e.outputs?e.outputs.map(g.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?s.O$.from(e.gas):null};return new n(l,r)}},{key:"fromString",value:function(e){var t={type:"function"},r=(e=_(e,t)).split(" returns ");r.length>2&&d.throwArgumentError("invalid function string","value",e);var a=r[0].match(B);if(a||d.throwArgumentError("invalid function signature","value",e),t.name=a[1].trim(),t.name&&M(t.name),t.inputs=A(a[2],!1),k(a[3].trim(),t),r.length>1){var i=r[1].match(B);""==i[1].trim()&&""==i[3].trim()||d.throwArgumentError("unexpected tokens","value",e),t.outputs=A(i[2],!1)}else t.outputs=[];return n.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),n}(I);function C(e){var t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||d.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}var T=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||d.throwArgumentError("invalid format type","format",e),e===m.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==m.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+") ").trim()}}],[{key:"from",value:function(e){return"string"==typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isErrorFragment(e))return e;"error"!==e.type&&d.throwArgumentError("invalid error object","value",e);var t={type:e.type,name:M(e.name),inputs:e.inputs?e.inputs.map(g.fromObject):[]};return C(new n(l,t))}},{key:"fromString",value:function(e){var t={type:"error"},r=e.match(B);return r||d.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&M(t.name),t.inputs=A(r[2],!1),C(n.fromObject(t))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}]),n}(w);function O(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var P=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function M(e){return e&&e.match(P)||d.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var B=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},20540:function(e,t,n){"use strict";n.r(t),n.d(t,{AbiCoder:function(){return a.R},ConstructorFragment:function(){return r.Xg},ErrorFragment:function(){return r.IC},EventFragment:function(){return r.QV},FormatTypes:function(){return r.pc},Fragment:function(){return r.HY},FunctionFragment:function(){return r.YW},Indexed:function(){return i.Hk},Interface:function(){return i.vU},LogDescription:function(){return i.CC},ParamType:function(){return r._R},TransactionDescription:function(){return i.vk},checkResultErrors:function(){return o.BR},defaultAbiCoder:function(){return a.$}});var r=n(30951),a=n(26150),i=n(56669),o=n(67564)},56669:function(e,t,n){"use strict";n.d(t,{CC:function(){return v},Hk:function(){return w},vU:function(){return k},vk:function(){return g}});var r=n(59900),a=n(47061),i=n(24269),o=n(38114),s=n(73772),c=n(63978),u=n(25289),f=n(89477),d=n(3431),l=n(36584),p=n(26150),b=n(30951),h=n(17163),y=n(2725),m=new h.Logger(y.i),v=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n)}(l.Description),g=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n)}(l.Description),A=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n)}(l.Description),w=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n,null,[{key:"isIndexed",value:function(e){return!(!e||!e._isIndexed)}}]),n}(l.Description),x={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function _(e,t){var n=new Error("deferred error during ABI decoding triggered accessing ".concat(e));return n.error=t,n}var k=function(){function e(t){var n=this;(0,a.Z)(this,e);var r=[];r="string"==typeof t?JSON.parse(t):t,(0,l.defineReadOnly)(this,"fragments",r.map((function(e){return b.HY.from(e)})).filter((function(e){return null!=e}))),(0,l.defineReadOnly)(this,"_abiCoder",(0,l.getStatic)(this instanceof e?this.constructor:void 0,"getAbiCoder")()),(0,l.defineReadOnly)(this,"functions",{}),(0,l.defineReadOnly)(this,"errors",{}),(0,l.defineReadOnly)(this,"events",{}),(0,l.defineReadOnly)(this,"structs",{}),this.fragments.forEach((function(e){var t=null;switch(e.type){case"constructor":return n.deploy?void m.warn("duplicate definition - constructor"):void(0,l.defineReadOnly)(n,"deploy",e);case"function":t=n.functions;break;case"event":t=n.events;break;case"error":t=n.errors;break;default:return}var r=e.format();t[r]?m.warn("duplicate definition - "+r):t[r]=e})),this.deploy||(0,l.defineReadOnly)(this,"deploy",b.Xg.from({payable:!1,type:"constructor"})),(0,l.defineReadOnly)(this,"_isInterface",!0)}return(0,r.Z)(e,[{key:"format",value:function(e){e||(e=b.pc.full),e===b.pc.sighash&&m.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map((function(t){return t.format(e)}));return e===b.pc.json?JSON.stringify(t.map((function(e){return JSON.parse(e)}))):t}},{key:"getFunction",value:function(e){if((0,u.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];m.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),r=Object.keys(this.functions).filter((function(e){return e.split("(")[0]===n}));return 0===r.length?m.throwArgumentError("no matching function","name",n):r.length>1&&m.throwArgumentError("multiple matching functions","name",n),this.functions[r[0]]}var a=this.functions[b.YW.fromString(e).format()];return a||m.throwArgumentError("no matching function","signature",e),a}},{key:"getEvent",value:function(e){if((0,u.isHexString)(e)){var t=e.toLowerCase();for(var n in this.events)if(t===this.getEventTopic(n))return this.events[n];m.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var r=e.trim(),a=Object.keys(this.events).filter((function(e){return e.split("(")[0]===r}));return 0===a.length?m.throwArgumentError("no matching event","name",r):a.length>1&&m.throwArgumentError("multiple matching events","name",r),this.events[a[0]]}var i=this.events[b.QV.fromString(e).format()];return i||m.throwArgumentError("no matching event","signature",e),i}},{key:"getError",value:function(e){if((0,u.isHexString)(e)){var t=(0,l.getStatic)(this.constructor,"getSighash");for(var n in this.errors)if(e===t(this.errors[n]))return this.errors[n];m.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var r=e.trim(),a=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===r}));return 0===a.length?m.throwArgumentError("no matching error","name",r):a.length>1&&m.throwArgumentError("multiple matching errors","name",r),this.errors[a[0]]}var i=this.errors[b.YW.fromString(e).format()];return i||m.throwArgumentError("no matching error","signature",e),i}},{key:"getSighash",value:function(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,l.getStatic)(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,l.getStatic)(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,t){"string"==typeof e&&(e=this.getError(e));var n=(0,u.arrayify)(t);return(0,u.hexlify)(n.slice(0,4))!==this.getSighash(e)&&m.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",(0,u.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"==typeof e&&(e=this.getError(e)),(0,u.hexlify)((0,u.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e));var n=(0,u.arrayify)(t);return(0,u.hexlify)(n.slice(0,4))!==this.getSighash(e)&&m.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",(0,u.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,u.hexlify)((0,u.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e));var n=(0,u.arrayify)(t),r=null,a="",i=null,o=null,s=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch(d){}break;case 4:var c=(0,u.hexlify)(n.slice(0,4)),f=x[c];if(f)i=this._abiCoder.decode(f.inputs,n.slice(4)),o=f.name,s=f.signature,f.reason&&(r=i[0]),"Error"===o?a="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(i[0])):"Panic"===o&&(a="; VM Exception while processing transaction: reverted with panic code ".concat(i[0]));else try{var d=this.getError(c);i=this._abiCoder.decode(d.inputs,n.slice(4)),o=d.name,s=d.format()}catch(d){}}return m.throwError("call revert exception"+a,h.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,u.hexlify)(t),errorArgs:i,errorName:o,errorSignature:s,reason:r})}},{key:"encodeFunctionResult",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,u.hexlify)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var n=this;"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&m.throwError("too many arguments for "+e.format(),h.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var r=[];e.anonymous||r.push(this.getEventTopic(e));var a=function(e,t){return"string"===e.type?(0,f.id)(t):"bytes"===e.type?(0,d.keccak256)((0,u.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=c.O$.from(t).toHexString()),"address"===e.type&&n._abiCoder.encode(["address"],[t]),(0,u.hexZeroPad)((0,u.hexlify)(t),32))};for(t.forEach((function(t,n){var i=e.inputs[n];i.indexed?null==t?r.push(null):"array"===i.baseType||"tuple"===i.baseType?m.throwArgumentError("filtering with tuples or arrays not supported","contract."+i.name,t):Array.isArray(t)?r.push(t.map((function(e){return a(i,e)}))):r.push(a(i,t)):null!=t&&m.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+i.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}},{key:"encodeEventLog",value:function(e,t){var n=this;"string"==typeof e&&(e=this.getEvent(e));var r=[],a=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&m.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,o){var s=t[o];if(e.indexed)if("string"===e.type)r.push((0,f.id)(s));else if("bytes"===e.type)r.push((0,d.keccak256)(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(n._abiCoder.encode([e.type],[s]))}else a.push(e),i.push(s)})),{data:this._abiCoder.encode(a,i),topics:r}}},{key:"decodeEventLog",value:function(e,t,n){if("string"==typeof e&&(e=this.getEvent(e)),null!=n&&!e.anonymous){var r=this.getEventTopic(e);(0,u.isHexString)(n[0],32)&&n[0].toLowerCase()===r||m.throwError("fragment/topic mismatch",h.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:r,value:n[0]}),n=n.slice(1)}var a=[],i=[],o=[];e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(a.push(b._R.fromObject({type:"bytes32",name:e.name})),o.push(!0)):(a.push(e),o.push(!1)):(i.push(e),o.push(!1))}));var s=null!=n?this._abiCoder.decode(a,(0,u.concat)(n)):null,c=this._abiCoder.decode(i,t,!0),f=[],d=0,l=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==s)f[t]=new w({_isIndexed:!0,hash:null});else if(o[t])f[t]=new w({_isIndexed:!0,hash:s[l++]});else try{f[t]=s[l++]}catch(e){f[t]=e}else try{f[t]=c[d++]}catch(e){f[t]=e}if(e.name&&null==f[e.name]){var n=f[t];n instanceof Error?Object.defineProperty(f,e.name,{enumerable:!0,get:function(){throw _("property ".concat(JSON.stringify(e.name)),n)}}):f[e.name]=n}}));for(var p=function(e){var t=f[e];t instanceof Error&&Object.defineProperty(f,e,{enumerable:!0,get:function(){throw _("index ".concat(e),t)}})},y=0;y=0)throw e;return l.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",f.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:n})}))),null==n.chainId?n.chainId=this.getChainId():n.chainId=Promise.all([Promise.resolve(n.chainId),this.getChainId()]).then((function(t){return 0!==t[1]&&t[0]!==t[1]&&l.throwArgumentError("chainId address mismatch","transaction",e),t[0]})),t.next=23,(0,u.resolveProperties)(n);case 23:return t.abrupt("return",t.sent);case 24:case"end":return t.stop()}}),t,this)})))}},{key:"_checkProvider",value:function(e){this.provider||l.throwError("missing provider",f.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}}],[{key:"isSigner",value:function(e){return!(!e||!e._isSigner)}}]),e}(),y=function(e){(0,a.Z)(n,e);var t=(0,i.Z)(n);function n(e,a){var i;return(0,s.Z)(this,n),i=t.call(this),(0,u.defineReadOnly)((0,r.Z)(i),"address",e),(0,u.defineReadOnly)((0,r.Z)(i),"provider",a||null),i}return(0,c.Z)(n,[{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"_fail",value:function(e,t){return Promise.resolve().then((function(){l.throwError(e,f.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})}))}},{key:"signMessage",value:function(e){return this._fail("VoidSigner cannot sign messages","signMessage")}},{key:"signTransaction",value:function(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}},{key:"_signTypedData",value:function(e,t,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}},{key:"connect",value:function(e){return new n(this.address,e)}}]),n}(h)},73772:function(e,t,n){"use strict";n.r(t),n.d(t,{getAddress:function(){return h},getContractAddress:function(){return v},getCreate2Address:function(){return g},getIcapAddress:function(){return m},isAddress:function(){return y}});var r=n(25289),a=n(63978),i=n(3431),o=n(95710),s=new(n(17163).Logger)("address/5.7.0");function c(e){(0,r.isHexString)(e,20)||s.throwArgumentError("invalid address","address",e);for(var t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40),a=0;a<40;a++)n[a]=t[a].charCodeAt(0);for(var o=(0,r.arrayify)((0,i.keccak256)(n)),c=0;c<40;c+=2)o[c>>1]>>4>=8&&(t[c]=t[c].toUpperCase()),(15&o[c>>1])>=8&&(t[c+1]=t[c+1].toUpperCase());return"0x"+t.join("")}for(var u={},f=0;f<10;f++)u[String(f)]=String(f);for(var d=0;d<26;d++)u[String.fromCharCode(65+d)]=String(10+d);var l,p=Math.floor((l=9007199254740991,Math.log10?Math.log10(l):Math.log(l)/Math.LN10));function b(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return u[e]})).join("");t.length>=p;){var n=t.substring(0,p);t=parseInt(n,10)%97+t.substring(n.length)}for(var r=String(98-parseInt(t,10)%97);r.length<2;)r="0"+r;return r}function h(e){var t=null;if("string"!=typeof e&&s.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=c(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&s.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==b(e)&&s.throwArgumentError("bad icap checksum","address",e),t=(0,a.g$)(e.substring(4));t.length<40;)t="0"+t;t=c("0x"+t)}else s.throwArgumentError("invalid address","address",e);return t}function y(e){try{return h(e),!0}catch(e){}return!1}function m(e){for(var t=(0,a.t2)(h(e).substring(2)).toUpperCase();t.length<30;)t="0"+t;return"XE"+b("XE00"+t)+t}function v(e){var t=null;try{t=h(e.from)}catch(t){s.throwArgumentError("missing from address","transaction",e)}var n=(0,r.stripZeros)((0,r.arrayify)(a.O$.from(e.nonce).toHexString()));return h((0,r.hexDataSlice)((0,i.keccak256)((0,o.encode)([t,n])),12))}function g(e,t,n){return 32!==(0,r.hexDataLength)(t)&&s.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,r.hexDataLength)(n)&&s.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),h((0,r.hexDataSlice)((0,i.keccak256)((0,r.concat)(["0xff",h(e),t,n])),12))}},45127:function(e,t,n){"use strict";n.d(t,{J:function(){return a},c:function(){return i}});var r=n(25289);function a(e){e=atob(e);for(var t=[],n=0;n0;)n.push(a%this.base),a=a/this.base|0}for(var s="",c=0;0===t[c]&&c=0;--u)s+=this.alphabet[n[u]];return s}},{key:"decode",value:function(e){if("string"!=typeof e)throw new TypeError("Expected String");var t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(var n=0;n>=8;for(;a>0;)t.push(255&a),a>>=8}for(var s=0;e[s]===this._leader&&s0&&(10===arguments[0]?h||(h=!0,d.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?d.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",c.Logger.errors.UNEXPECTED_ARGUMENT,{}):d.throwError("BigNumber.toString does not accept parameters",c.Logger.errors.UNEXPECTED_ARGUMENT,{})),g(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(e){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(t){if(t instanceof e)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e(l,m(t)):t.match(/^-?[0-9]+$/)?new e(l,m(new f(t))):d.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&A("underflow","BigNumber.from",t),(t>=p||t<=-p)&&A("overflow","BigNumber.from",t),e.from(String(t));var n=t;if("bigint"==typeof n)return e.from(n.toString());if((0,s.isBytes)(n))return e.from((0,s.hexlify)(n));if(n)if(n.toHexString){var r=n.toHexString();if("string"==typeof r)return e.from(r)}else{var a=n._hex;if(null==a&&"BigNumber"===n.type&&(a=n.hex),"string"==typeof a&&((0,s.isHexString)(a)||"-"===a[0]&&(0,s.isHexString)(a.substring(1))))return e.from(a)}return d.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}]),e}();function m(e){if("string"!=typeof e)return m(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&d.throwArgumentError("invalid hex","value",e),"0x00"===(e=m(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function v(e){return y.from(m(e))}function g(e){var t=y.from(e).toHexString();return"-"===t[0]?new f("-"+t.substring(3),16):new f(t.substring(2),16)}function A(e,t,n){var r={fault:e,operation:t};return null!=n&&(r.value=n),d.throwError(e,c.Logger.errors.NUMERIC_FAULT,r)}function w(e){return new f(e,36).toString(16)}function x(e){return new f(e,16).toString(36)}},91757:function(e,t,n){"use strict";n.d(t,{Ox:function(){return m},S5:function(){return y},xs:function(){return g}});var r=n(47061),a=n(59900),i=n(25289),o=n(17163),s=n(24720),c=n(63978),u=new o.Logger(s.i),f={},d=c.O$.from(0),l=c.O$.from(-1);function p(e,t,n,r){var a={fault:t,operation:n};return void 0!==r&&(a.value=r),u.throwError(e,o.Logger.errors.NUMERIC_FAULT,a)}for(var b="0";b.length<256;)b+=b;function h(e){if("number"!=typeof e)try{e=c.O$.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+b.substring(0,e):u.throwArgumentError("invalid decimal size","decimals",e)}function y(e,t){null==t&&(t=0);var n=h(t),r=(e=c.O$.from(e)).lt(d);r&&(e=e.mul(l));for(var a=e.mod(n).toString();a.length2&&u.throwArgumentError("too many decimal points","value",e);var i=a[0],o=a[1];for(i||(i="0"),o||(o="0");"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(o.length>n.length-1&&p("fractional component exceeds decimals","underflow","parseFixed"),""===o&&(o="0");o.length80&&u.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",a),new e(f,n,r,a)}}]),e}(),g=function(){function e(t,n,a,i){(0,r.Z)(this,e),t!==f&&u.throwError("cannot use FixedNumber constructor; use FixedNumber.from",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=n,this._value=a,this._isFixedNumber=!0,Object.freeze(this)}return(0,a.Z)(e,[{key:"_checkFormat",value:function(e){this.format.name!==e.format.name&&u.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}},{key:"addUnsafe",value:function(t){this._checkFormat(t);var n=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return e.fromValue(n.add(r),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(t){this._checkFormat(t);var n=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return e.fromValue(n.sub(r),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(t){this._checkFormat(t);var n=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return e.fromValue(n.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(t){this._checkFormat(t);var n=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return e.fromValue(n.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}},{key:"floor",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var n=e.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(n=n.subUnsafe(A.toFormat(n.format))),n}},{key:"ceiling",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var n=e.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(n=n.addUnsafe(A.toFormat(n.format))),n}},{key:"round",value:function(t){null==t&&(t=0);var n=this.toString().split(".");if(1===n.length&&n.push("0"),(t<0||t>80||t%1)&&u.throwArgumentError("invalid decimal count","decimals",t),n[1].length<=t)return this;var r=e.from("1"+b.substring(0,t),this.format),a=w.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(a).floor().divUnsafe(r)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(e){if(null==e)return this._hex;e%8&&u.throwArgumentError("invalid byte width","width",e);var t=c.O$.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,i.hexZeroPad)(t,e/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(t){return e.fromString(this._value,t)}}],[{key:"fromValue",value:function(t,n,r){return null!=r||null==n||(0,c.Zm)(n)||(r=n,n=null),null==n&&(n=0),null==r&&(r="fixed"),e.fromString(y(t,n),v.from(r))}},{key:"fromString",value:function(t,n){null==n&&(n="fixed");var r=v.from(n),a=m(t,r.decimals);!r.signed&&a.lt(d)&&p("unsigned value cannot be negative","overflow","value",t);var o=null;r.signed?o=a.toTwos(r.width).toHexString():(o=a.toHexString(),o=(0,i.hexZeroPad)(o,r.width/8));var s=y(a,r.decimals);return new e(f,o,s,r)}},{key:"fromBytes",value:function(t,n){null==n&&(n="fixed");var r=v.from(n);if((0,i.arrayify)(t).length>r.width/8)throw new Error("overflow");var a=c.O$.from(t);r.signed&&(a=a.fromTwos(r.width));var o=a.toTwos((r.signed?0:1)+r.width).toHexString(),s=y(a,r.decimals);return new e(f,o,s,r)}},{key:"from",value:function(t,n){if("string"==typeof t)return e.fromString(t,n);if((0,i.isBytes)(t))return e.fromBytes(t,n);try{return e.fromValue(t,0,n)}catch(e){if(e.code!==o.Logger.errors.INVALID_ARGUMENT)throw e}return u.throwArgumentError("invalid FixedNumber value","value",t)}},{key:"isFixedNumber",value:function(e){return!(!e||!e._isFixedNumber)}}]),e}(),A=g.from(1),w=g.from("0.5")},25289:function(e,t,n){"use strict";n.r(t),n.d(t,{arrayify:function(){return u},concat:function(){return f},hexConcat:function(){return v},hexDataLength:function(){return y},hexDataSlice:function(){return m},hexStripZeros:function(){return A},hexValue:function(){return g},hexZeroPad:function(){return w},hexlify:function(){return h},isBytes:function(){return c},isBytesLike:function(){return o},isHexString:function(){return p},joinSignature:function(){return _},splitSignature:function(){return x},stripZeros:function(){return d},zeroPad:function(){return l}});var r=new(n(17163).Logger)("bytes/5.7.0");function a(e){return!!e.toHexString}function i(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return i(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function o(e){return p(e)&&!(e.length%2)||c(e)}function s(e){return"number"==typeof e&&e==e&&e%1==0}function c(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!s(e.length)||e.length<0)return!1;for(var t=0;t=256)return!1}return!0}function u(e,t){if(t||(t={}),"number"==typeof e){r.checkSafeUint53(e,"invalid arrayify value");for(var n=[];e;)n.unshift(255&e),e=parseInt(String(e/256));return 0===n.length&&n.push(0),i(new Uint8Array(n))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e)&&(e=e.toHexString()),p(e)){var o=e.substring(2);o.length%2&&("left"===t.hexPad?o="0"+o:"right"===t.hexPad?o+="0":r.throwArgumentError("hex data is odd-length","value",e));for(var s=[],u=0;ut&&r.throwArgumentError("value out of range","value",arguments[0]);var n=new Uint8Array(t);return n.set(e,t-e.length),i(n)}function p(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var b="0123456789abcdef";function h(e,t){if(t||(t={}),"number"==typeof e){r.checkSafeUint53(e,"invalid hexlify value");for(var n="";e;)n=b[15&e]+n,e=Math.floor(e/16);return n.length?(n.length%2&&(n="0"+n),"0x"+n):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e))return e.toHexString();if(p(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":r.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(c(e)){for(var i="0x",o=0;o>4]+b[15&s]}return i}return r.throwArgumentError("invalid hexlify value","value",e)}function y(e){if("string"!=typeof e)e=h(e);else if(!p(e)||e.length%2)return null;return(e.length-2)/2}function m(e,t,n){return"string"!=typeof e?e=h(e):(!p(e)||e.length%2)&&r.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)}function v(e){var t="0x";return e.forEach((function(e){t+=h(e).substring(2)})),t}function g(e){var t=A(h(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function A(e){"string"!=typeof e&&(e=h(e)),p(e)||r.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t2*t+2&&r.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function x(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(o(e)){var n=u(e);64===n.length?(t.v=27+(n[32]>>7),n[32]&=127,t.r=h(n.slice(0,32)),t.s=h(n.slice(32,64))):65===n.length?(t.r=h(n.slice(0,32)),t.s=h(n.slice(32,64)),t.v=n[64]):r.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:r.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(n[32]|=128),t._vs=h(n.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){var a=l(u(t._vs),32);t._vs=h(a);var i=a[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&r.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),a[0]&=127;var s=h(a);null==t.s?t.s=s:t.s!==s&&r.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?r.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{var c=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==c&&r.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&p(t.r)?t.r=w(t.r,32):r.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&p(t.s)?t.s=w(t.s,32):r.throwArgumentError("signature missing or invalid s","signature",e);var f=u(t.s);f[0]>=128&&r.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(f[0]|=128);var d=h(f);t._vs&&(p(t._vs)||r.throwArgumentError("signature invalid _vs","signature",e),t._vs=w(t._vs,32)),null==t._vs?t._vs=d:t._vs!==d&&r.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function _(e){return h(f([(e=x(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},79248:function(e,t,n){"use strict";n.d(t,{$B:function(){return f},Bz:function(){return u},Ce:function(){return c},PS:function(){return d},Py:function(){return s},_Y:function(){return i},fh:function(){return o},tL:function(){return a}});var r=n(63978),a=r.O$.from(-1),i=r.O$.from(0),o=r.O$.from(1),s=r.O$.from(2),c=r.O$.from("1000000000000000000"),u=r.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),f=r.O$.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),d=r.O$.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},19709:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r="0x0000000000000000000000000000000000000000000000000000000000000000"},25859:function(e,t,n){"use strict";n.d(t,{VZ:function(){return D},CH:function(){return j},lV:function(){return U}});var r=n(19961),a=n(14771),i=n(78283),o=n(70886),s=n(24269),c=n(38114),u=n(47061),f=n(59900),d=n(24611),l=n(67564),p=n(56669),b=n(4951),h=n(28110),y=n(73772),m=n(63978),v=n(25289),g=n(36584),A=n(99849),w=n(17163),x=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},_=new w.Logger("contracts/5.7.0"),k={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function S(e,t){return x(this,void 0,void 0,(0,d.Z)().mark((function n(){var r,a;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t;case 2:return"string"!=typeof(r=n.sent)&&_.throwArgumentError("invalid address or ENS name","name",r),n.prev=4,n.abrupt("return",(0,y.getAddress)(r));case 8:n.prev=8,n.t0=n.catch(4);case 10:return e||_.throwError("a provider or signer is needed to resolve ENS names",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"}),n.next=13,e.resolveName(r);case 13:return null==(a=n.sent)&&_.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n.abrupt("return",a);case 16:case"end":return n.stop()}}),n,null,[[4,8]])})))}function I(e,t,n){return x(this,void 0,void 0,(0,d.Z)().mark((function r(){return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Array.isArray(n)){r.next=4;break}return r.next=3,Promise.all(n.map((function(n,r){return I(e,Array.isArray(t)?t[r]:t[n.name],n)})));case 3:case 7:case 11:case 17:return r.abrupt("return",r.sent);case 4:if("address"!==n.type){r.next=8;break}return r.next=7,S(e,t);case 8:if("tuple"!==n.type){r.next=12;break}return r.next=11,I(e,t,n.components);case 12:if("array"!==n.baseType){r.next=18;break}if(Array.isArray(t)){r.next=15;break}return r.abrupt("return",Promise.reject(_.makeError("invalid value for array",w.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:t})));case 15:return r.next=17,Promise.all(t.map((function(t){return I(e,t,n.arrayChildren)})));case 18:return r.abrupt("return",t);case 19:case"end":return r.stop()}}),r)})))}function E(e,t,n){return x(this,void 0,void 0,(0,d.Z)().mark((function r(){var a,i,o,s,c,u,f,l,p,b,h=this;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={},n.length===t.inputs.length+1&&"object"==typeof n[n.length-1]&&(a=(0,g.shallowCopy)(n.pop())),_.checkArgumentCount(n.length,t.inputs.length,"passed to contract"),e.signer?a.from?a.from=(0,g.resolveProperties)({override:S(e.signer,a.from),signer:e.signer.getAddress()}).then((function(e){return x(h,void 0,void 0,(0,d.Z)().mark((function t(){return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,y.getAddress)(e.signer)!==e.override&&_.throwError("Contract with a Signer cannot override from",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.abrupt("return",e.override);case 2:case"end":return t.stop()}}),t)})))})):a.from=e.signer.getAddress():a.from&&(a.from=S(e.provider,a.from)),r.next=6,(0,g.resolveProperties)({args:I(e.signer||e.provider,n,t.inputs),address:e.resolvedAddress,overrides:(0,g.resolveProperties)(a)||{}});case 6:if(i=r.sent,o=e.interface.encodeFunctionData(t,i.args),s={data:o,to:i.address},null!=(c=i.overrides).nonce&&(s.nonce=m.O$.from(c.nonce).toNumber()),null!=c.gasLimit&&(s.gasLimit=m.O$.from(c.gasLimit)),null!=c.gasPrice&&(s.gasPrice=m.O$.from(c.gasPrice)),null!=c.maxFeePerGas&&(s.maxFeePerGas=m.O$.from(c.maxFeePerGas)),null!=c.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=m.O$.from(c.maxPriorityFeePerGas)),null!=c.from&&(s.from=c.from),null!=c.type&&(s.type=c.type),null!=c.accessList&&(s.accessList=(0,A.accessListify)(c.accessList)),null==s.gasLimit&&null!=t.gas){for(u=21e3,f=(0,v.arrayify)(o),l=0;l1)){e=e.substring(1);var n=t[0];try{null==a[e]&&(0,g.defineReadOnly)(a,e,a[n])}catch(e){}null==a.functions[e]&&(0,g.defineReadOnly)(a.functions,e,a.functions[n]),null==a.callStatic[e]&&(0,g.defineReadOnly)(a.callStatic,e,a.callStatic[n]),null==a.populateTransaction[e]&&(0,g.defineReadOnly)(a.populateTransaction,e,a.populateTransaction[n]),null==a.estimateGas[e]&&(0,g.defineReadOnly)(a.estimateGas,e,a.estimateGas[n])}}))}return(0,f.Z)(e,[{key:"deployed",value:function(){return this._deployed()}},{key:"_deployed",value:function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return t})):this._deployedPromise=this.provider.getCode(this.address,e).then((function(e){return"0x"===e&&_.throwError("contract not deployed",w.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t}))),this._deployedPromise}},{key:"fallback",value:function(e){var t=this;this.signer||_.throwError("sending a transactions require a signer",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var n=(0,g.shallowCopy)(e||{});return["from","to"].forEach((function(e){null!=n[e]&&_.throwError("cannot override "+e,w.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})})),n.to=this.resolvedAddress,this.deployed().then((function(){return t.signer.sendTransaction(n)}))}},{key:"connect",value:function(e){"string"==typeof e&&(e=new h.b(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,g.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t}},{key:"attach",value:function(e){return new this.constructor(e,this.interface,this.signer||this.provider)}},{key:"_normalizeRunningEvent",value:function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}},{key:"_getRunningEvent",value:function(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new B);if("event"===e)return this._normalizeRunningEvent(new M("event",null));if("*"===e)return this._normalizeRunningEvent(new N(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new R(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var n=e.topics[0];if("string"!=typeof n)throw new Error("invalid topic");var r=this.interface.getEvent(n);return this._normalizeRunningEvent(new R(this.address,this.interface,r,e.topics))}catch(e){}var a={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new M(P(a),a))}return this._normalizeRunningEvent(new N(this.address,this.interface))}},{key:"_checkRunningEvents",value:function(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}},{key:"_wrapEvent",value:function(e,t,n){var r=this,a=(0,g.deepCopy)(t);return a.removeListener=function(){n&&(e.removeListener(n),r._checkRunningEvents(e))},a.getBlock=function(){return r.provider.getBlock(t.blockHash)},a.getTransaction=function(){return r.provider.getTransaction(t.transactionHash)},a.getTransactionReceipt=function(){return r.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(a),a}},{key:"_addEventListener",value:function(e,t,n){var a=this;if(this.provider||_.throwError("events require a provider or a signer with a provider",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(n){var i=a._wrapEvent(e,n,t);if(null==i.decodeError)try{var o=e.getEmit(i);a.emit.apply(a,[e.filter].concat((0,r.Z)(o)))}catch(e){i.decodeError=e.error}null!=e.filter&&a.emit("event",i),null!=i.decodeError&&a.emit("error",i.decodeError,i)};this._wrappedEmits[e.tag]=i,null!=e.filter&&this.provider.on(e.filter,i)}}},{key:"queryFilter",value:function(e,t,n){var r=this,a=this._getRunningEvent(e),i=(0,g.shallowCopy)(a.filter);return"string"==typeof t&&(0,v.isHexString)(t,32)?(null!=n&&_.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=n?n:"latest"),this.provider.getLogs(i).then((function(e){return e.map((function(e){return r._wrapEvent(a,e,null)}))}))}},{key:"on",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}},{key:"once",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}},{key:"emit",value:function(e){if(!this.provider)return!1;for(var t=this._getRunningEvent(e),n=arguments.length,r=new Array(n>1?n-1:0),a=1;a0;return this._checkRunningEvents(t),i}},{key:"listenerCount",value:function(e){var t=this;return this.provider?null==e?Object.keys(this._runningEvents).reduce((function(e,n){return e+t._runningEvents[n].listenerCount()}),0):this._getRunningEvent(e).listenerCount():0}},{key:"listeners",value:function(e){if(!this.provider)return[];if(null==e){var t=[];for(var n in this._runningEvents)this._runningEvents[n].listeners().forEach((function(e){t.push(e)}));return t}return this._getRunningEvent(e).listeners()}},{key:"removeAllListeners",value:function(e){if(!this.provider)return this;if(null==e){for(var t in this._runningEvents){var n=this._runningEvents[t];n.removeAllListeners(),this._checkRunningEvents(n)}return this}var r=this._getRunningEvent(e);return r.removeAllListeners(),this._checkRunningEvents(r),this}},{key:"off",value:function(e,t){if(!this.provider)return this;var n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"getContractAddress",value:function(e){return(0,y.getContractAddress)(e)}},{key:"getInterface",value:function(e){return p.vU.isInterface(e)?e:new p.vU(e)}},{key:"isIndexed",value:function(e){return p.Hk.isIndexed(e)}}]),e}(),j=function(e){(0,s.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.apply(this,arguments)}return(0,f.Z)(n)}(D),U=function(){function e(t,n,r){(0,u.Z)(this,e);var a=null;"0x"!==(a="string"==typeof n?n:(0,v.isBytes)(n)?(0,v.hexlify)(n):n&&"string"==typeof n.object?n.object:"!").substring(0,2)&&(a="0x"+a),(!(0,v.isHexString)(a)||a.length%2)&&_.throwArgumentError("invalid bytecode","bytecode",n),r&&!h.E.isSigner(r)&&_.throwArgumentError("invalid signer","signer",r),(0,g.defineReadOnly)(this,"bytecode",a),(0,g.defineReadOnly)(this,"interface",(0,g.getStatic)(this instanceof e?this.constructor:void 0,"getInterface")(t)),(0,g.defineReadOnly)(this,"signer",r||null)}return(0,f.Z)(e,[{key:"getDeployTransaction",value:function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&Array.isArray(t)?e(t,a-1):n.push(t)}))}(e,t),n}function d(e){return 1&e?~e>>1:e>>1}function l(e,t){for(var n=Array(e),r=0,a=-1;r>--u&1}for(var l=Math.pow(2,31),p=l>>>1,b=p>>1,h=l-1,y=0,m=0;m<31;m++)y=y<<1|d();for(var v=[],g=0,A=l;;){for(var w=Math.floor(((y-g+1)*a-1)/A),x=0,_=r;_-x>1;){var k=x+_>>>1;w>>1|d(),S=S<<1^p,I=(I^p)<<1|p|1;g=S,A=1+I-S}var E=r-4;return v.map((function(t){switch(t-E){case 3:return E+65792+(e[c++]<<16|e[c++]<<8|e[c++]);case 2:return E+256+(e[c++]<<8|e[c++]);case 1:return E+e[c++];default:return t-1}}))}(A),x=0,function(){return w[x++]}),k=new Set(b(_)),S=new Set(b(_)),I=function(e){for(var t=[];;){var n=e();if(0==n)break;t.push(y(n,e))}for(;;){var r=e()-1;if(r<0)break;t.push(m(r,e))}return function(e){for(var t={},n=0;n>=1),check:2==r}}()),C=45,T=95;function O(e){return(0,a.XL)(e)}function P(e){return e.filter((function(e){return 65039!=e}))}function M(e){var t,n=(0,u.Z)(e.split("."));try{for(n.s();!(t=n.n()).done;){var r=t.value,a=O(r);try{for(var i=a.lastIndexOf(T)-1;i>=0;i--)if(a[i]!==T)throw new Error("underscore only allowed at start");if(a.length>=4&&a.every((function(e){return e<128}))&&a[2]===C&&a[3]===C)throw new Error("invalid label extension")}catch(e){throw new Error('Invalid label "'.concat(r,'": ').concat(e.message))}}}catch(e){n.e(e)}finally{n.f()}return e}function B(e,t){var n,r,a,i=E,o=[],s=e.length;t&&(t.length=0);for(var u=function(){var u=e[--s];if(!(i=null===(n=i.branches.find((function(e){return e.set.has(u)})))||void 0===n?void 0:n.node))return"break";if(i.save)a=u;else if(i.check&&u===a)return"break";o.push(u),i.fe0f&&(o.push(65039),s>0&&65039==e[s-1]&&s--),i.valid&&(r=o.slice(),2==i.valid&&r.splice(1,1),t&&t.push.apply(t,(0,c.Z)(e.slice(s).reverse())),e.length=s)};s&&"break"!==u(););return r}var R=new o.Logger(s.i),N=new Uint8Array(32);function D(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function j(e){var t=(0,a.Y0)(function(e){return M(function(e,t){for(var n=O(e).reverse(),r=[];n.length;){var a=B(n);if(a)r.push.apply(r,(0,c.Z)(t(a)));else{var i=n.pop();if(k.has(i))r.push(i);else if(!S.has(i)){var o=I[i];if(!o)throw new Error("Disallowed codepoint: 0x".concat(i.toString(16).toUpperCase()));r.push.apply(r,(0,c.Z)(o))}}}return M(String.fromCodePoint.apply(String,r).normalize("NFC"))}(e,P))}(e)),n=[];if(0===e.length)return n;for(var r=0,i=0;i=t.length)throw new Error("invalid ENS name; empty component");return n.push(D(t.slice(r))),n}function U(e){return j(e).map((function(e){return(0,a.ZN)(e)})).join(".")}function L(e){try{return 0!==j(e).length}catch(e){}return!1}function Z(e){"string"!=typeof e&&R.throwArgumentError("invalid ENS name; not a string","name",e);for(var t=N,n=j(e);n.length;)t=(0,i.keccak256)((0,r.concat)([t,(0,i.keccak256)(n.pop())]));return(0,r.hexlify)(t)}function F(e){return(0,r.hexlify)((0,r.concat)(j(e).map((function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"}N.fill(0)},10988:function(e,t,n){"use strict";n.d(t,{E:function(){return C}});var r=n(24611),a=n(47061),i=n(59900),o=n(73772),s=n(63978),c=n(25289),u=n(3431),f=n(36584),d=n(17163),l=n(76402),p=n(89477),b=new d.Logger(l.i),h=new Uint8Array(32);h.fill(0);var y=s.O$.from(-1),m=s.O$.from(0),v=s.O$.from(1),g=s.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),A=(0,c.hexZeroPad)(v.toHexString(),32),w=(0,c.hexZeroPad)(m.toHexString(),32),x={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},_=["name","version","chainId","verifyingContract","salt"];function k(e){return function(t){return"string"!=typeof t&&b.throwArgumentError("invalid domain value for ".concat(JSON.stringify(e)),"domain.".concat(e),t),t}}var S={name:k("name"),version:k("version"),chainId:function(e){try{return s.O$.from(e).toString()}catch(e){}return b.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,o.getAddress)(e).toLowerCase()}catch(e){}return b.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{var t=(0,c.arrayify)(e);if(32!==t.length)throw new Error("bad length");return(0,c.hexlify)(t)}catch(e){}return b.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function I(e){var t=e.match(/^(u?)int(\d*)$/);if(t){var n=""===t[1],r=parseInt(t[2]||"256");(r%8!=0||r>256||t[2]&&t[2]!==String(r))&&b.throwArgumentError("invalid numeric width","type",e);var a=g.mask(n?r-1:r),i=n?a.add(v).mul(y):m;return function(t){var n=s.O$.from(t);return(n.lt(i)||n.gt(a))&&b.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),(0,c.hexZeroPad)(n.toTwos(256).toHexString(),32)}}var f=e.match(/^bytes(\d+)$/);if(f){var d=parseInt(f[1]);return(0===d||d>32||f[1]!==String(d))&&b.throwArgumentError("invalid bytes width","type",e),function(t){return(0,c.arrayify)(t).length!==d&&b.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){var t=(0,c.arrayify)(e),n=t.length%32;return n?(0,c.hexConcat)([t,h.slice(n)]):(0,c.hexlify)(t)}(t)}}switch(e){case"address":return function(e){return(0,c.hexZeroPad)((0,o.getAddress)(e),32)};case"bool":return function(e){return e?A:w};case"bytes":return function(e){return(0,u.keccak256)(e)};case"string":return function(e){return(0,p.id)(e)}}return null}function E(e,t){return"".concat(e,"(").concat(t.map((function(e){var t=e.name;return e.type+" "+t})).join(","),")")}var C=function(){function e(t){(0,a.Z)(this,e),(0,f.defineReadOnly)(this,"types",Object.freeze((0,f.deepCopy)(t))),(0,f.defineReadOnly)(this,"_encoderCache",{}),(0,f.defineReadOnly)(this,"_types",{});var n={},r={},i={};Object.keys(t).forEach((function(e){n[e]={},r[e]=[],i[e]={}}));var o=function(e){var a={};t[e].forEach((function(i){a[i.name]&&b.throwArgumentError("duplicate variable name ".concat(JSON.stringify(i.name)," in ").concat(JSON.stringify(e)),"types",t),a[i.name]=!0;var o=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];o===e&&b.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",t),I(o)||(r[o]||b.throwArgumentError("unknown type ".concat(JSON.stringify(o)),"types",t),r[o].push(e),n[e][o]=!0)}))};for(var s in t)o(s);var c=Object.keys(r).filter((function(e){return 0===r[e].length}));for(var u in 0===c.length?b.throwArgumentError("missing primary type","types",t):c.length>1&&b.throwArgumentError("ambiguous primary types or unused types: ".concat(c.map((function(e){return JSON.stringify(e)})).join(", ")),"types",t),(0,f.defineReadOnly)(this,"primaryType",c[0]),function e(a,o){o[a]&&b.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",t),o[a]=!0,Object.keys(n[a]).forEach((function(t){r[t]&&(e(t,o),Object.keys(o).forEach((function(e){i[e][t]=!0})))})),delete o[a]}(this.primaryType,{}),i){var d=Object.keys(i[u]);d.sort(),this._types[u]=E(u,t[u])+d.map((function(e){return E(e,t[e])})).join("")}}return(0,i.Z)(e,[{key:"getEncoder",value:function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}},{key:"_getEncoder",value:function(e){var t=this,n=I(e);if(n)return n;var r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){var a=r[1],i=this.getEncoder(a),o=parseInt(r[3]);return function(e){o>=0&&e.length!==o&&b.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);var n=e.map(i);return t._types[a]&&(n=n.map(u.keccak256)),(0,u.keccak256)((0,c.hexConcat)(n))}}var s=this.types[e];if(s){var f=(0,p.id)(this._types[e]);return function(e){var n=s.map((function(n){var r=n.name,a=n.type,i=t.getEncoder(a)(e[r]);return t._types[a]?(0,u.keccak256)(i):i}));return n.unshift(f),(0,c.hexConcat)(n)}}return b.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"encodeType",value:function(e){var t=this._types[e];return t||b.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}},{key:"encodeData",value:function(e,t){return this.getEncoder(e)(t)}},{key:"hashStruct",value:function(e,t){return(0,u.keccak256)(this.encodeData(e,t))}},{key:"encode",value:function(e){return this.encodeData(this.primaryType,e)}},{key:"hash",value:function(e){return this.hashStruct(this.primaryType,e)}},{key:"_visit",value:function(e,t,n){var r=this;if(I(e))return n(e,t);var a=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){var i=a[1],o=parseInt(a[3]);return o>=0&&t.length!==o&&b.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return r._visit(i,e,n)}))}var s=this.types[e];return s?s.reduce((function(e,a){var i=a.name,o=a.type;return e[i]=r._visit(o,t[i],n),e}),{}):b.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"visit",value:function(e,t){return this._visit(this.primaryType,e,t)}}],[{key:"from",value:function(t){return new e(t)}},{key:"getPrimaryType",value:function(t){return e.from(t).primaryType}},{key:"hashStruct",value:function(t,n,r){return e.from(n).hashStruct(t,r)}},{key:"hashDomain",value:function(t){var n=[];for(var r in t){var a=x[r];a||b.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(r)),"domain",t),n.push({name:r,type:a})}return n.sort((function(e,t){return _.indexOf(e.name)-_.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:n},t)}},{key:"encode",value:function(t,n,r){return(0,c.hexConcat)(["0x1901",e.hashDomain(t),e.from(n).hash(r)])}},{key:"hash",value:function(t,n,r){return(0,u.keccak256)(e.encode(t,n,r))}},{key:"resolveNames",value:function(t,n,a,i){return o=this,s=void 0,u=void 0,d=(0,r.Z)().mark((function o(){var s,u,d;return(0,r.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=(0,f.shallowCopy)(t),s={},t.verifyingContract&&!(0,c.isHexString)(t.verifyingContract,20)&&(s[t.verifyingContract]="0x"),(u=e.from(n)).visit(a,(function(e,t){return"address"!==e||(0,c.isHexString)(t,20)||(s[t]="0x"),t})),o.t0=(0,r.Z)().keys(s);case 6:if((o.t1=o.t0()).done){o.next=13;break}return d=o.t1.value,o.next=10,i(d);case 10:s[d]=o.sent,o.next=6;break;case 13:return t.verifyingContract&&s[t.verifyingContract]&&(t.verifyingContract=s[t.verifyingContract]),a=u.visit(a,(function(e,t){return"address"===e&&s[t]?s[t]:t})),o.abrupt("return",{domain:t,value:a});case 16:case"end":return o.stop()}}),o)})),new(u||(u=Promise))((function(e,t){function n(e){try{a(d.next(e))}catch(e){t(e)}}function r(e){try{a(d.throw(e))}catch(e){t(e)}}function a(t){var a;t.done?e(t.value):(a=t.value,a instanceof u?a:new u((function(e){e(a)}))).then(n,r)}a((d=d.apply(o,s||[])).next())}));var o,s,u,d}},{key:"getPayload",value:function(t,n,r){e.hashDomain(t);var a={},i=[];_.forEach((function(e){var n=t[e];null!=n&&(a[e]=S[e](n),i.push({name:e,type:x[e]}))}));var o=e.from(n),u=(0,f.shallowCopy)(n);return u.EIP712Domain?b.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",n):u.EIP712Domain=i,o.encode(r),{types:u,domain:a,primaryType:o.primaryType,message:o.visit(r,(function(e,t){if(e.match(/^bytes(\d*)/))return(0,c.hexlify)((0,c.arrayify)(t));if(e.match(/^u?int/))return s.O$.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&b.throwArgumentError("invalid string","value",t),t}return b.throwArgumentError("unsupported type","type",e)}))}}}]),e}()},75993:function(e,t,n){"use strict";n.r(t),n.d(t,{HDNode:function(){return I},defaultPath:function(){return S},entropyToMnemonic:function(){return T},getAccountPath:function(){return P},isValidMnemonic:function(){return O},mnemonicToEntropy:function(){return C},mnemonicToSeed:function(){return E}});var r=n(47061),a=n(59900),i=n(93681),o=n(25289),s=n(63978),c=n(18145),u=n(11009),f=n(36584),d=n(1207),l=n(40552),p=n(45441),b=n(99849),h=n(97760),y=new(n(17163).Logger)("hdnode/5.7.0"),m=s.O$.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),v=(0,c.Y0)("Bitcoin seed"),g=2147483648;function A(e){return(1<=256)throw new Error("Depth too large!");return x((0,o.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,o.hexlify)(this.depth),this.parentFingerprint,(0,o.hexZeroPad)((0,o.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,o.concat)(["0x00",this.privateKey]):this.publicKey]))}},{key:"neuter",value:function(){return new e(k,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}},{key:"_derive",value:function(t){if(t>4294967295)throw new Error("invalid index - "+String(t));var n=this.path;n&&(n+="/"+(t&~g));var r=new Uint8Array(37);if(t&g){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set((0,o.arrayify)(this.privateKey),1),n&&(n+="'")}else r.set((0,o.arrayify)(this.publicKey));for(var a=24;a>=0;a-=8)r[33+(a>>3)]=t>>24-a&255;var i=(0,o.arrayify)((0,l.Gy)(p.p.sha512,this.chainCode,r)),c=i.slice(0,32),u=i.slice(32),f=null,b=null;this.privateKey?f=w(s.O$.from(c).add(this.privateKey).mod(m)):b=new d.SigningKey((0,o.hexlify)(c))._addPoint(this.publicKey);var h=n,y=this.mnemonic;return y&&(h=Object.freeze({phrase:y.phrase,path:n,locale:y.locale||"en"})),new e(k,f,b,this.fingerprint,w(u),t,this.depth+1,h)}},{key:"derivePath",value:function(e){var t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();for(var n=this,r=0;r=g)throw new Error("invalid path index - "+a);n=n._derive(g+i)}else{if(!a.match(/^[0-9]+$/))throw new Error("invalid path component - "+a);var o=parseInt(a);if(o>=g)throw new Error("invalid path index - "+a);n=n._derive(o)}}return n}}],[{key:"_fromSeed",value:function(t,n){var r=(0,o.arrayify)(t);if(r.length<16||r.length>64)throw new Error("invalid seed");var a=(0,o.arrayify)((0,l.Gy)(p.p.sha512,v,r));return new e(k,w(a.slice(0,32)),null,"0x00000000",w(a.slice(32)),0,0,n)}},{key:"fromMnemonic",value:function(t,n,r){return t=T(C(t,r=_(r)),r),e._fromSeed(E(t,n),{phrase:t,path:"m",locale:r.locale})}},{key:"fromSeed",value:function(t){return e._fromSeed(t,null)}},{key:"fromExtendedKey",value:function(t){var n=i.Base58.decode(t);82===n.length&&x(n.slice(0,78))===t||y.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var r=n[4],a=(0,o.hexlify)(n.slice(5,9)),s=parseInt((0,o.hexlify)(n.slice(9,13)).substring(2),16),c=(0,o.hexlify)(n.slice(13,45)),u=n.slice(45,78);switch((0,o.hexlify)(n.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(k,null,(0,o.hexlify)(u),a,c,s,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==u[0])break;return new e(k,(0,o.hexlify)(u.slice(1)),null,a,c,s,r,null)}return y.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}]),e}();function E(e,t){t||(t="");var n=(0,c.Y0)("mnemonic"+t,c.Uj.NFKD);return(0,u.n)((0,c.Y0)(e,c.Uj.NFKD),n,2048,64,"sha512")}function C(e,t){t=_(t),y.checkNormalize();var n=t.split(e);if(n.length%3!=0)throw new Error("invalid mnemonic");for(var r=(0,o.arrayify)(new Uint8Array(Math.ceil(11*n.length/8))),a=0,i=0;i>3]|=1<<7-a%8),a++}var u=32*n.length/3,f=A(n.length/3);if(((0,o.arrayify)((0,l.JQ)(r.slice(0,u/8)))[0]&f)!=(r[r.length-1]&f))throw new Error("invalid checksum");return(0,o.hexlify)(r.slice(0,u/8))}function T(e,t){if(t=_(t),(e=(0,o.arrayify)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy");for(var n=[0],r=11,a=0;a8?(n[n.length-1]<<=8,n[n.length-1]|=e[a],r-=8):(n[n.length-1]<<=r,n[n.length-1]|=e[a]>>8-r,n.push(e[a]&(1<<8-r)-1),r+=3);var i=e.length/4,s=(0,o.arrayify)((0,l.JQ)(e))[0]&A(i);return n[n.length-1]<<=i,n[n.length-1]|=s>>8-i,t.join(n.map((function(e){return t.getWord(e)})))}function O(e,t){try{return C(e,t),!0}catch(e){}return!1}function P(e){return("number"!=typeof e||e<0||e>=g||e%1)&&y.throwArgumentError("invalid account index","index",e),"m/44'/60'/".concat(e,"'/0/0")}},76059:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="json-wallets/5.7.0"},22313:function(e,t,n){"use strict";n.r(t),n.d(t,{decryptCrowdsale:function(){return A},decryptJsonWallet:function(){return _},decryptJsonWalletSync:function(){return k},decryptKeystore:function(){return x.pe},decryptKeystoreSync:function(){return x.hb},encryptKeystore:function(){return x.HI},getJsonWalletAddress:function(){return w.Rb},isCrowdsaleWallet:function(){return w.LW},isKeystoreWallet:function(){return w.aO}});var r=n(47061),a=n(59900),i=n(24269),o=n(38114),s=n(95388),c=n.n(s),u=n(73772),f=n(25289),d=n(3431),l=n(11009),p=n(18145),b=n(36584),h=n(17163),y=n(76059),m=n(70947),v=new h.Logger(y.i),g=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"isCrowdsaleAccount",value:function(e){return!(!e||!e._isCrowdsaleAccount)}}]),n}(b.Description);function A(e,t){var n=JSON.parse(e);t=(0,m.Ij)(t);var r=(0,u.getAddress)((0,m.gx)(n,"ethaddr")),a=(0,m.p3)((0,m.gx)(n,"encseed"));a&&a.length%16==0||v.throwArgumentError("invalid encseed","json",e);for(var i=(0,f.arrayify)((0,l.n)(t,t,2e3,32,"sha256")).slice(0,16),o=a.slice(0,16),s=a.slice(16),b=new(c().ModeOfOperation.cbc)(i,o),h=c().padding.pkcs7.strip((0,f.arrayify)(b.decrypt(s))),y="",A=0;Au[n]||console.log.apply(console,t)}},{key:"debug",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r>4],n+=p[15&t[a]];i.push(e+"=Uint8Array(0x"+n+")")}else i.push(e+"="+JSON.stringify(t))}catch(t){i.push(e+"="+JSON.stringify(r[e].toString()))}})),i.push("code=".concat(n)),i.push("version=".concat(this.version));var o=t,s="";switch(n){case a.NUMERIC_FAULT:s="NUMERIC_FAULT";var u=t;switch(u){case"overflow":case"underflow":case"division-by-zero":s+="-"+u;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break;case a.CALL_EXCEPTION:case a.INSUFFICIENT_FUNDS:case a.MISSING_NEW:case a.NONCE_EXPIRED:case a.REPLACEMENT_UNDERPRICED:case a.TRANSACTION_REPLACED:case a.UNPREDICTABLE_GAS_LIMIT:s=n}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(t+=" ("+i.join(", ")+")");var f=new Error(t);return f.reason=o,f.code=n,Object.keys(r).forEach((function(e){f[e]=r[e]})),f}},{key:"throwError",value:function(e,t,n){throw this.makeError(e,t,n)}},{key:"throwArgumentError",value:function(t,n,r){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:n,value:r})}},{key:"assert",value:function(e,t,n,r){e||this.throwError(t,n,r)}},{key:"assertArgument",value:function(e,t,n,r){e||this.throwArgumentError(t,n,r)}},{key:"checkNormalize",value:function(t){null==t&&(t="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})}},{key:"checkSafeUint53",value:function(t,n){"number"==typeof t&&(null==n&&(n="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(n,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(n,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,n,r){r=r?": "+r:"",tn&&this.throwError("too many arguments"+r,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:n})}},{key:"checkNew",value:function(t,n){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:n.name})}},{key:"checkAbstract",value:function(t,n){t===n?this.throwError("cannot instantiate abstract class "+JSON.stringify(n.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:n.name})}}],[{key:"globalLogger",value:function(){return d||(d=new e("logger/5.7.0")),d}},{key:"setCensorship",value:function(t,n){if(!t&&n&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),s){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}c=!!t,s=!!n}},{key:"setLogLevel",value:function(t){var n=u[t.toLowerCase()];null!=n?f=n:e.globalLogger().warn("invalid log level - "+t)}},{key:"from",value:function(t){return new e(t)}}]),e}();b.errors=a,b.levels=r},11009:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(25289),a=n(40552);function i(e,t,n,i,o){var s;e=(0,r.arrayify)(e),t=(0,r.arrayify)(t);var c,u,f=1,d=new Uint8Array(i),l=new Uint8Array(t.length+4);l.set(t);for(var p=1;p<=f;p++){l[t.length]=p>>24&255,l[t.length+1]=p>>16&255,l[t.length+2]=p>>8&255,l[t.length+3]=255&p;var b=(0,r.arrayify)((0,a.Gy)(o,e,l));s||(s=b.length,u=new Uint8Array(s),c=i-((f=Math.ceil(i/s))-1)*s),u.set(b);for(var h=1;h>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,n=0;n126)return"Invalid prefix ("+e+")";t=i(t)^r>>5}for(t=i(t),n=0;nt)return"Exceeds length limit";var r=e.toLowerCase(),a=e.toUpperCase();if(e!==r&&e!==a)return"Mixed-case string "+e;var s=(e=r).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var c=e.slice(0,s),u=e.slice(s+1);if(u.length<6)return"Data too short";var f=o(c);if("string"==typeof f)return f;for(var d=[],l=0;l=u.length||d.push(b)}return 1!==f?"Invalid checksum for "+e:{prefix:c,words:d}}function c(e,t,n,r){for(var a=0,i=0,o=(1<=n;)i-=n,s.push(a>>i&o);if(r)i>0&&s.push(a<=t)return"Excess padding";if(a<r)throw new TypeError("Exceeds length limit");var a=o(e=e.toLowerCase());if("string"==typeof a)throw new Error(a);for(var s=e+"1",c=0;c>5!=0)throw new Error("Non 5-bit word");a=i(a)^u,s+=t.charAt(u)}for(c=0;c<6;++c)a=i(a);for(a^=1,c=0;c<6;++c)s+=t.charAt(a>>5*(5-c)&31);return s},toWordsUnsafe:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},24845:function(e,t,n){"use strict";n.r(t),n.d(t,{randomBytes:function(){return r.O},shuffled:function(){return a.y}});var r=n(51189),a=n(25380)},51189:function(e,t,n){"use strict";n.d(t,{O:function(){return c}});var r=n(25289),a=n(17163),i=new a.Logger("random/5.7.0"),o=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}(),s=o.crypto||o.msCrypto;function c(e){(e<=0||e>1024||e%1||e!=e)&&i.throwArgumentError("invalid length","length",e);var t=new Uint8Array(e);return s.getRandomValues(t),(0,r.arrayify)(t)}s&&s.getRandomValues||(i.warn("WARNING: Missing strong random number source"),s={getRandomValues:function(e){return i.throwError("no secure random source avaialble",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},25380:function(e,t,n){"use strict";function r(e){for(var t=(e=e.slice()).length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}n.d(t,{y:function(){return r}})},95710:function(e,t,n){"use strict";n.r(t),n.d(t,{decode:function(){return l},encode:function(){return u}});var r=n(25289),a=n(17163),i=new a.Logger("rlp/5.7.0");function o(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function s(e,t,n){for(var r=0,a=0;at+1+r&&i.throwError("child data too short",a.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:o}}function d(e,t){if(0===e.length&&i.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){var n=e[t]-247;t+1+n>e.length&&i.throwError("data short segment too short",a.Logger.errors.BUFFER_OVERRUN,{});var o=s(e,t+1,n);return t+1+n+o>e.length&&i.throwError("data long segment too short",a.Logger.errors.BUFFER_OVERRUN,{}),f(e,t,t+1+n,n+o)}if(e[t]>=192){var c=e[t]-192;return t+1+c>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),f(e,t,t+1,c)}if(e[t]>=184){var u=e[t]-183;t+1+u>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});var d=s(e,t+1,u);return t+1+u+d>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+u+d,result:(0,r.hexlify)(e.slice(t+1+u,t+1+u+d))}}if(e[t]>=128){var l=e[t]-128;return t+1+l>e.length&&i.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+l,result:(0,r.hexlify)(e.slice(t+1,t+1+l))}}return{consumed:1,result:(0,r.hexlify)(e[t])}}function l(e){var t=(0,r.arrayify)(e),n=d(t,0);return n.consumed!==t.length&&i.throwArgumentError("invalid rlp data","data",e),n.result}},18590:function(e,t,n){"use strict";n.r(t),n.d(t,{SupportedAlgorithm:function(){return a.p},computeHmac:function(){return r.Gy},ripemd160:function(){return r.bP},sha256:function(){return r.JQ},sha512:function(){return r.o}});var r=n(40552),a=n(45441)},40552:function(e,t,n){"use strict";n.d(t,{Gy:function(){return l},bP:function(){return u},JQ:function(){return f},o:function(){return d}});var r=n(9597),a=n.n(r),i=n(25289),o=n(45441),s=n(17163),c=new s.Logger("sha2/5.7.0");function u(e){return"0x"+a().ripemd160().update((0,i.arrayify)(e)).digest("hex")}function f(e){return"0x"+a().sha256().update((0,i.arrayify)(e)).digest("hex")}function d(e){return"0x"+a().sha512().update((0,i.arrayify)(e)).digest("hex")}function l(e,t,n){return o.p[e]||c.throwError("unsupported algorithm "+e,s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+a().hmac(a()[e],(0,i.arrayify)(t)).update((0,i.arrayify)(n)).digest("hex")}},45441:function(e,t,n){"use strict";var r;n.d(t,{p:function(){return r}}),function(e){e.sha256="sha256",e.sha512="sha512"}(r||(r={}))},1207:function(e,t,n){"use strict";n.r(t),n.d(t,{SigningKey:function(){return W},computePublicKey:function(){return X},recoverPublicKey:function(){return Y}});var r=n(47061),a=n(59900),i=n(7134),o=n.n(i),s=n(9597),c=n.n(s);function u(e,t,n){return n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},e(n,n.exports),n.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var f=d;function d(e,t){if(!e)throw new Error(t||"Assertion failed")}d.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var l=u((function(e,t){var n=t;function r(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n>8,o=255&a;i?n.push(i,o):n.push(o)}return n},n.zero2=r,n.toHex=a,n.encode=function(e,t){return"hex"===t?a(e):e}})),p=u((function(e,t){var n=t;n.assert=f,n.toArray=l.toArray,n.zero2=l.zero2,n.toHex=l.toHex,n.encode=l.encode,n.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var a=1<(a>>1)-1?(a>>1)-c:c,i.isubn(s)):s=0,r[o]=s,i.iushrn(1)}return r},n.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,a=0,i=0;e.cmpn(-a)>0||t.cmpn(-i)>0;){var o,s,c=e.andln(3)+a&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),o=0==(1&c)?0:3!=(r=e.andln(7)+a&7)&&5!==r||2!==u?c:-c,n[0].push(o),s=0==(1&u)?0:3!=(r=t.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[1].push(s),2*a===o+1&&(a=1-a),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},n.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new(o())(e,"hex","le")}})),b=p.getNAF,h=p.getJSF,y=p.assert;function m(e,t){this.type=e,this.p=new(o())(t.p,16),this.red=t.prime?o().red(t.prime):o().mont(this.p),this.zero=new(o())(0).toRed(this.red),this.one=new(o())(1).toRed(this.red),this.two=new(o())(2).toRed(this.red),this.n=t.n&&new(o())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var v=m;function g(e,t){this.curve=e,this.type=t,this.precomputed=null}m.prototype.point=function(){throw new Error("Not implemented")},m.prototype.validate=function(){throw new Error("Not implemented")},m.prototype._fixedNafMul=function(e,t){y(e.precomputed);var n=e._getDoubles(),r=b(t,1,this._bitLength),a=(1<=i;c--)o=(o<<1)+r[c];s.push(o)}for(var u=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=a;d>0;d--){for(i=0;i=0;s--){for(var c=0;s>=0&&0===i[s];s--)c++;if(s>=0&&c++,o=o.dblp(c),s<0)break;var u=i[s];y(0!==u),o="affine"===e.type?u>0?o.mixedAdd(a[u-1>>1]):o.mixedAdd(a[-u-1>>1].neg()):u>0?o.add(a[u-1>>1]):o.add(a[-u-1>>1].neg())}return"affine"===e.type?o.toP():o},m.prototype._wnafMulAdd=function(e,t,n,r,a){var i,o,s,c=this._wnafT1,u=this._wnafT2,f=this._wnafT3,d=0;for(i=0;i=1;i-=2){var p=i-1,y=i;if(1===c[p]&&1===c[y]){var m=[t[p],null,null,t[y]];0===t[p].y.cmp(t[y].y)?(m[1]=t[p].add(t[y]),m[2]=t[p].toJ().mixedAdd(t[y].neg())):0===t[p].y.cmp(t[y].y.redNeg())?(m[1]=t[p].toJ().mixedAdd(t[y]),m[2]=t[p].add(t[y].neg())):(m[1]=t[p].toJ().mixedAdd(t[y]),m[2]=t[p].toJ().mixedAdd(t[y].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=h(n[p],n[y]);for(d=Math.max(g[0].length,d),f[p]=new Array(d),f[y]=new Array(d),o=0;o=0;i--){for(var k=0;i>=0;){var S=!0;for(o=0;o=0&&k++,x=x.dblp(k),i<0)break;for(o=0;o0?s=u[o][I-1>>1]:I<0&&(s=u[o][-I-1>>1].neg()),x="affine"===s.type?x.mixedAdd(s):x.add(s))}}for(i=0;i=Math.ceil((e.bitLength()+1)/t.step)},g.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,a=0;a=0&&(i=t,s=n),r.negative&&(r=r.neg(),a=a.neg()),i.negative&&(i=i.neg(),s=s.neg()),[{a:r,b:a},{a:i,b:s}]},x.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],a=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),o=a.mul(n.a),s=i.mul(r.a),c=a.mul(n.b),u=i.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(u).neg()}},x.prototype.pointFromX=function(e,t){(e=new(o())(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},x.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(a).cmpn(0)},x.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,a=this._endoWnafT2,i=0;i":""},k.prototype.isInfinity=function(){return this.inf},k.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},k.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),a=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},k.prototype.getX=function(){return this.x.fromRed()},k.prototype.getY=function(){return this.y.fromRed()},k.prototype.mul=function(e){return e=new(o())(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},k.prototype.mulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a):this.curve._wnafMulAdd(1,r,a,2)},k.prototype.jmulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a,!0):this.curve._wnafMulAdd(1,r,a,2,!0)},k.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},k.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},k.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},A(S,v.BasePoint),x.prototype.jpoint=function(e,t,n){return new S(this,e,t,n)},S.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},S.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},S.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),a=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(a),c=i.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),f=u.redMul(s),d=r.redMul(u),l=c.redSqr().redIAdd(f).redISub(d).redISub(d),p=c.redMul(d.redISub(l)).redISub(i.redMul(f)),b=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(l,p,b)},S.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),a=this.y,i=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=a.redSub(i);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),f=n.redMul(c),d=s.redSqr().redIAdd(u).redISub(f).redISub(f),l=s.redMul(f.redISub(d)).redISub(a.redMul(u)),p=this.z.redMul(o);return this.curve.jpoint(d,l,p)},S.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(a),0===this.x.cmp(n))return!0}},S.prototype.inspect=function(){return this.isInfinity()?"":""},S.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var I=u((function(e,t){var n=t;n.base=v,n.short=_,n.mont=null,n.edwards=null})),E=u((function(e,t){var n,r=t,a=p.assert;function i(e){"short"===e.type?this.curve=new I.short(e):"edwards"===e.type?this.curve=new I.edwards(e):this.curve=new I.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new i(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=i,o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:c().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:c().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:c().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:c().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:c().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:c().sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:c().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(e){n=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:c().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function C(e){if(!(this instanceof C))return new C(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=l.toArray(e.entropy,e.entropyEnc||"hex"),n=l.toArray(e.nonce,e.nonceEnc||"hex"),r=l.toArray(e.pers,e.persEnc||"hex");f(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var T=C;C.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},C.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=l.toArray(n,r||"hex"),this._update(n));for(var a=[];a.length"};var B=p.assert;function R(e,t){if(e instanceof R)return e;this._importDER(e,t)||(B(e.r&&e.s,"Signature without r or s"),this.r=new(o())(e.r,16),this.s=new(o())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var N=R;function D(){this.place=0}function j(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var a=0,i=0,o=t.place;i>>=0;return!(a<=127)&&(t.place=o,a)}function U(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}R.prototype._importDER=function(e,t){e=p.toArray(e,t);var n=new D;if(48!==e[n.place++])return!1;var r=j(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=j(e,n);if(!1===a)return!1;var i=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var s=j(e,n);if(!1===s)return!1;if(e.length!==s+n.place)return!1;var c=e.slice(n.place,s+n.place);if(0===i[0]){if(!(128&i[1]))return!1;i=i.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new(o())(i),this.s=new(o())(c),this.recoveryParam=null,!0},R.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=U(t),n=U(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];L(r,t.length),(r=r.concat(t)).push(2),L(r,n.length);var a=r.concat(n),i=[48];return L(i,a.length),i=i.concat(a),p.encode(i,e)};var Z=function(){throw new Error("unsupported")},F=p.assert;function H(e){if(!(this instanceof H))return new H(e);"string"==typeof e&&(F(Object.prototype.hasOwnProperty.call(E,e),"Unknown curve "+e),e=E[e]),e instanceof E.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var z=H;H.prototype.keyPair=function(e){return new M(this,e)},H.prototype.keyFromPrivate=function(e,t){return M.fromPrivate(this,e,t)},H.prototype.keyFromPublic=function(e,t){return M.fromPublic(this,e,t)},H.prototype.genKeyPair=function(e){e||(e={});for(var t=new T({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||Z(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new(o())(2));;){var a=new(o())(t.generate(n));if(!(a.cmp(r)>0))return a.iaddn(1),this.keyFromPrivate(a)}},H.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},H.prototype.sign=function(e,t,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new(o())(e,16));for(var a=this.n.byteLength(),i=t.getPrivate().toArray("be",a),s=e.toArray("be",a),c=new T({hash:this.hash,entropy:i,nonce:s,pers:r.pers,persEnc:r.persEnc||"utf8"}),u=this.n.sub(new(o())(1)),f=0;;f++){var d=r.k?r.k(f):new(o())(c.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(u)>=0)){var l=this.g.mul(d);if(!l.isInfinity()){var p=l.getX(),b=p.umod(this.n);if(0!==b.cmpn(0)){var h=d.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(h=h.umod(this.n)).cmpn(0)){var y=(l.getY().isOdd()?1:0)|(0!==p.cmp(b)?2:0);return r.canonical&&h.cmp(this.nh)>0&&(h=this.n.sub(h),y^=1),new N({r:b,s:h,recoveryParam:y})}}}}}},H.prototype.verify=function(e,t,n,r){e=this._truncateToN(new(o())(e,16)),n=this.keyFromPublic(n,r);var a=(t=new N(t,"hex")).r,i=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;var s,c=i.invm(this.n),u=c.mul(e).umod(this.n),f=c.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,n.getPublic(),f)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(u,n.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},H.prototype.recoverPubKey=function(e,t,n,r){F((3&n)===n,"The recovery param is more than two bits"),t=new N(t,r);var a=this.n,i=new(o())(e),s=t.r,c=t.s,u=1&n,f=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var d=t.r.invm(a),l=a.sub(i).mul(d).umod(a),p=c.mul(d).umod(a);return this.g.mulAdd(l,s,p)},H.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new N(t,r)).recoveryParam)return t.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(n))return a}throw new Error("Unable to find valid recovery factor")};var q=u((function(e,t){var n=t;n.version="6.5.4",n.utils=p,n.rand=function(){throw new Error("unsupported")},n.curve=I,n.curves=E,n.ec=z,n.eddsa=null})).ec,Q=n(25289),K=n(36584),V=new(n(17163).Logger)("signing-key/5.7.0"),J=null;function G(){return J||(J=new q("secp256k1")),J}var W=function(){function e(t){(0,r.Z)(this,e),(0,K.defineReadOnly)(this,"curve","secp256k1"),(0,K.defineReadOnly)(this,"privateKey",(0,Q.hexlify)(t)),32!==(0,Q.hexDataLength)(this.privateKey)&&V.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var n=G().keyFromPrivate((0,Q.arrayify)(this.privateKey));(0,K.defineReadOnly)(this,"publicKey","0x"+n.getPublic(!1,"hex")),(0,K.defineReadOnly)(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),(0,K.defineReadOnly)(this,"_isSigningKey",!0)}return(0,a.Z)(e,[{key:"_addPoint",value:function(e){var t=G().keyFromPublic((0,Q.arrayify)(this.publicKey)),n=G().keyFromPublic((0,Q.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(e){var t=G().keyFromPrivate((0,Q.arrayify)(this.privateKey)),n=(0,Q.arrayify)(e);32!==n.length&&V.throwArgumentError("bad digest length","digest",e);var r=t.sign(n,{canonical:!0});return(0,Q.splitSignature)({recoveryParam:r.recoveryParam,r:(0,Q.hexZeroPad)("0x"+r.r.toString(16),32),s:(0,Q.hexZeroPad)("0x"+r.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(e){var t=G().keyFromPrivate((0,Q.arrayify)(this.privateKey)),n=G().keyFromPublic((0,Q.arrayify)(X(e)));return(0,Q.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(e){return!(!e||!e._isSigningKey)}}]),e}();function Y(e,t){var n=(0,Q.splitSignature)(t),r={r:(0,Q.arrayify)(n.r),s:(0,Q.arrayify)(n.s)};return"0x"+G().recoverPubKey((0,Q.arrayify)(e),r,n.recoveryParam).encode("hex",!1)}function X(e,t){var n=(0,Q.arrayify)(e);if(32===n.length){var r=new W(n);return t?"0x"+G().keyFromPrivate(n).getPublic(!0,"hex"):r.publicKey}return 33===n.length?t?(0,Q.hexlify)(n):"0x"+G().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+G().keyFromPublic(n).getPublic(!0,"hex"):(0,Q.hexlify)(n):V.throwArgumentError("invalid public or private key","key","[REDACTED]")}},26188:function(e,t,n){"use strict";n.r(t),n.d(t,{keccak256:function(){return y},pack:function(){return h},sha256:function(){return m}});var r=n(63978),a=n(25289),i=n(3431),o=n(40552),s=n(18145),c=n(17163),u=new RegExp("^bytes([0-9]+)$"),f=new RegExp("^(u?int)([0-9]*)$"),d=new RegExp("^(.*)\\[([0-9]*)\\]$"),l="0000000000000000000000000000000000000000000000000000000000000000",p=new c.Logger("solidity/5.7.0");function b(e,t,n){switch(e){case"address":return n?(0,a.zeroPad)(t,32):(0,a.arrayify)(t);case"string":return(0,s.Y0)(t);case"bytes":return(0,a.arrayify)(t);case"bool":return t=t?"0x01":"0x00",n?(0,a.zeroPad)(t,32):(0,a.arrayify)(t)}var i=e.match(f);if(i){var o=parseInt(i[2]||"256");return(i[2]&&String(o)!==i[2]||o%8!=0||0===o||o>256)&&p.throwArgumentError("invalid number type","type",e),n&&(o=256),t=r.O$.from(t).toTwos(o),(0,a.zeroPad)(t,o/8)}if(i=e.match(u)){var c=parseInt(i[1]);return(String(c)!==i[1]||0===c||c>32)&&p.throwArgumentError("invalid bytes type","type",e),(0,a.arrayify)(t).byteLength!==c&&p.throwArgumentError("invalid value for ".concat(e),"value",t),n?(0,a.arrayify)((t+l).substring(0,66)):t}if((i=e.match(d))&&Array.isArray(t)){var h=i[1];parseInt(i[2]||String(t.length))!=t.length&&p.throwArgumentError("invalid array length for ".concat(e),"value",t);var y=[];return t.forEach((function(e){y.push(b(h,e,!0))})),(0,a.concat)(y)}return p.throwArgumentError("invalid type","type",e)}function h(e,t){e.length!=t.length&&p.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);var n=[];return e.forEach((function(e,r){n.push(b(e,t[r]))})),(0,a.hexlify)((0,a.concat)(n))}function y(e,t){return(0,i.keccak256)(h(e,t))}function m(e,t){return(0,o.JQ)(h(e,t))}},34818:function(e,t,n){"use strict";n.d(t,{F:function(){return s},s:function(){return o}});var r=n(19709),a=n(25289),i=n(18145);function o(e){var t=(0,i.Y0)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,a.hexlify)((0,a.concat)([t,r.R]).slice(0,32))}function s(e){var t=(0,a.arrayify)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");for(var n=31;0===t[n-1];)n--;return(0,i.ZN)(t.slice(0,n))}},85395:function(e,t,n){"use strict";n.d(t,{Ll:function(){return b}});var r=n(18145);function a(e,t){t||(t=function(e){return[parseInt(e,16)]});var n=0,r={};return e.split(",").forEach((function(e){var a=e.split(":");n+=parseInt(a[0],16),r[n]=t(a[1])})),r}function i(e){var t=0;return e.split(",").map((function(e){var n=e.split("-");return 1===n.length?n[1]="0":""===n[1]&&(n[1]="1"),{l:t+parseInt(n[0],16),h:t=parseInt(n[1],16)}}))}function o(e,t){for(var n=0,r=0;r=(n+=a.l)&&e<=n+a.h&&(e-n)%(a.d||1)==0){if(a.e&&-1!==a.e.indexOf(e-n))continue;return a}}return null}var s=i("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),c="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),u=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],f=a("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),d=a("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),l=a("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data");for(var t=[],n=0;n=0)return[];if(e>=65024&&e<=65039)return[];var t=function(e){var t=o(e,u);if(t)return[e+t.s];var n=f[e];if(n)return n;var r=d[e];return r?[e+r[0]]:l[e]||null}(e);return t||[e]})),n=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[]),(n=(0,r.XL)((0,r.uu)(n),r.Uj.NFKC)).forEach((function(e){if(o(e,p))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),n.forEach((function(e){if(o(e,s))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));var a=(0,r.uu)(n);if("-"===a.substring(0,1)||"--"===a.substring(2,4)||"-"===a.substring(a.length-1))throw new Error("invalid hyphen");return a}},12074:function(e,t,n){"use strict";n.r(t),n.d(t,{UnicodeNormalizationForm:function(){return i.Uj},Utf8ErrorFuncs:function(){return i.te},Utf8ErrorReason:function(){return i.Uw},_toEscapedUtf8String:function(){return i.U$},formatBytes32String:function(){return r.s},nameprep:function(){return a.Ll},parseBytes32String:function(){return r.F},toUtf8Bytes:function(){return i.Y0},toUtf8CodePoints:function(){return i.XL},toUtf8String:function(){return i.ZN}});var r=n(34818),a=n(85395),i=n(18145)},18145:function(e,t,n){"use strict";n.d(t,{Uj:function(){return r},te:function(){return c},Uw:function(){return a},U$:function(){return l},uu:function(){return p},Y0:function(){return f},XL:function(){return h},ZN:function(){return b}});var r,a,i=n(25289),o=new(n(17163).Logger)("strings/5.7.0");function s(e,t,n,r,i){if(e===a.BAD_PREFIX||e===a.UNEXPECTED_CONTINUE){for(var o=0,s=t+1;s>6==2;s++)o++;return o}return e===a.OVERRUN?n.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(r||(r={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(a||(a={}));var c=Object.freeze({error:function(e,t,n,r,a){return o.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",n)},ignore:s,replace:function(e,t,n,r,i){return e===a.OVERLONG?(r.push(i),0):(r.push(65533),s(e,t,n))}});function u(e,t){null==t&&(t=c.error),e=(0,i.arrayify)(e);for(var n=[],r=0;r>7!=0){var s=null,u=null;if(192==(224&o))s=1,u=127;else if(224==(240&o))s=2,u=2047;else{if(240!=(248&o)){r+=t(128==(192&o)?a.UNEXPECTED_CONTINUE:a.BAD_PREFIX,r-1,e,n);continue}s=3,u=65535}if(r-1+s>=e.length)r+=t(a.OVERRUN,r-1,e,n);else{for(var f=o&(1<<8-s-1)-1,d=0;d1114111?r+=t(a.OUT_OF_RANGE,r-1-s,e,n,f):f>=55296&&f<=57343?r+=t(a.UTF16_SURROGATE,r-1-s,e,n,f):f<=u?r+=t(a.OVERLONG,r-1-s,e,n,f):n.push(f))}}else n.push(o)}return n}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current;t!=r.current&&(o.checkNormalize(),e=e.normalize(t));for(var n=[],a=0;a>6|192),n.push(63&s|128);else if(55296==(64512&s)){a++;var c=e.charCodeAt(a);if(a>=e.length||56320!=(64512&c))throw new Error("invalid utf-8 string");var u=65536+((1023&s)<<10)+(1023&c);n.push(u>>18|240),n.push(u>>12&63|128),n.push(u>>6&63|128),n.push(63&u|128)}else n.push(s>>12|224),n.push(s>>6&63|128),n.push(63&s|128)}return(0,i.arrayify)(n)}function d(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function l(e,t){return'"'+u(e,t).map((function(e){if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?d(e):d(55296+((e-=65536)>>10&1023))+d(56320+(1023&e))})).join("")+'"'}function p(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function b(e,t){return p(u(e,t))}function h(e){return u(f(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current))}},99849:function(e,t,n){"use strict";n.r(t),n.d(t,{TransactionTypes:function(){return r},accessListify:function(){return x},computeAddress:function(){return v},parse:function(){return C},recoverAddress:function(){return g},serialize:function(){return I}});var r,a=n(73772),i=n(63978),o=n(25289),s=n(79248),c=n(3431),u=n(36584),f=n(95710),d=n(1207),l=n(17163),p=new l.Logger("transactions/5.7.0");function b(e){return"0x"===e?null:(0,a.getAddress)(e)}function h(e){return"0x"===e?s._Y:i.O$.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(r||(r={}));var y=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],m={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function v(e){var t=(0,d.computePublicKey)(e);return(0,a.getAddress)((0,o.hexDataSlice)((0,c.keccak256)((0,o.hexDataSlice)(t,1)),12))}function g(e,t){return v((0,d.recoverPublicKey)((0,o.arrayify)(e),t))}function A(e,t){var n=(0,o.stripZeros)(i.O$.from(e).toHexString());return n.length>32&&p.throwArgumentError("invalid length for "+t,"transaction:"+t,e),n}function w(e,t){return{address:(0,a.getAddress)(e),storageKeys:(t||[]).map((function(t,n){return 32!==(0,o.hexDataLength)(t)&&p.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(n,"]"),t),t.toLowerCase()}))}}function x(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&p.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),w(e[0],e[1])):w(e.address,e.storageKeys)}));var t=Object.keys(e).map((function(t){var n=e[t].reduce((function(e,t){return e[t]=!0,e}),{});return w(t,Object.keys(n).sort())}));return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function _(e){return x(e).map((function(e){return[e.address,e.storageKeys]}))}function k(e,t){if(null!=e.gasPrice){var n=i.O$.from(e.gasPrice),r=i.O$.from(e.maxFeePerGas||0);n.eq(r)||p.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:r})}var s=[A(e.chainId||0,"chainId"),A(e.nonce||0,"nonce"),A(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),A(e.maxFeePerGas||0,"maxFeePerGas"),A(e.gasLimit||0,"gasLimit"),null!=e.to?(0,a.getAddress)(e.to):"0x",A(e.value||0,"value"),e.data||"0x",_(e.accessList||[])];if(t){var c=(0,o.splitSignature)(t);s.push(A(c.recoveryParam,"recoveryParam")),s.push((0,o.stripZeros)(c.r)),s.push((0,o.stripZeros)(c.s))}return(0,o.hexConcat)(["0x02",f.encode(s)])}function S(e,t){var n=[A(e.chainId||0,"chainId"),A(e.nonce||0,"nonce"),A(e.gasPrice||0,"gasPrice"),A(e.gasLimit||0,"gasLimit"),null!=e.to?(0,a.getAddress)(e.to):"0x",A(e.value||0,"value"),e.data||"0x",_(e.accessList||[])];if(t){var r=(0,o.splitSignature)(t);n.push(A(r.recoveryParam,"recoveryParam")),n.push((0,o.stripZeros)(r.r)),n.push((0,o.stripZeros)(r.s))}return(0,o.hexConcat)(["0x01",f.encode(n)])}function I(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&p.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){(0,u.checkProperties)(e,m);var n=[];y.forEach((function(t){var r=e[t.name]||[],a={};t.numeric&&(a.hexPad="left"),r=(0,o.arrayify)((0,o.hexlify)(r,a)),t.length&&r.length!==t.length&&r.length>0&&p.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),t.maxLength&&(r=(0,o.stripZeros)(r)).length>t.maxLength&&p.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),n.push((0,o.hexlify)(r))}));var r=0;if(null!=e.chainId?"number"!=typeof(r=e.chainId)&&p.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!(0,o.isBytesLike)(t)&&t.v>28&&(r=Math.floor((t.v-35)/2)),0!==r&&(n.push((0,o.hexlify)(r)),n.push("0x"),n.push("0x")),!t)return f.encode(n);var a=(0,o.splitSignature)(t),i=27+a.recoveryParam;return 0!==r?(n.pop(),n.pop(),n.pop(),i+=2*r+8,a.v>28&&a.v!==i&&p.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):a.v!==i&&p.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),n.push((0,o.hexlify)(i)),n.push((0,o.stripZeros)((0,o.arrayify)(a.r))),n.push((0,o.stripZeros)((0,o.arrayify)(a.s))),f.encode(n)}(e,t);switch(e.type){case 1:return S(e,t);case 2:return k(e,t)}return p.throwError("unsupported transaction type: ".concat(e.type),l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function E(e,t,n){try{var r=h(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(e){p.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,o.hexZeroPad)(t[1],32),e.s=(0,o.hexZeroPad)(t[2],32);try{var a=(0,c.keccak256)(n(e));e.from=g(a,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function C(e){var t=(0,o.arrayify)(e);if(t[0]>127)return function(e){var t=f.decode(e);9!==t.length&&6!==t.length&&p.throwArgumentError("invalid raw transaction","rawTransaction",e);var n={nonce:h(t[0]).toNumber(),gasPrice:h(t[1]),gasLimit:h(t[2]),to:b(t[3]),value:h(t[4]),data:t[5],chainId:0};if(6===t.length)return n;try{n.v=i.O$.from(t[6]).toNumber()}catch(e){return n}if(n.r=(0,o.hexZeroPad)(t[7],32),n.s=(0,o.hexZeroPad)(t[8],32),i.O$.from(n.r).isZero()&&i.O$.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);var r=n.v-27,a=t.slice(0,6);0!==n.chainId&&(a.push((0,o.hexlify)(n.chainId)),a.push("0x"),a.push("0x"),r-=2*n.chainId+8);var s=(0,c.keccak256)(f.encode(a));try{n.from=g(s,{r:(0,o.hexlify)(n.r),s:(0,o.hexlify)(n.s),recoveryParam:r})}catch(e){}n.hash=(0,c.keccak256)(e)}return n.type=null,n}(t);switch(t[0]){case 1:return function(e){var t=f.decode(e.slice(1));8!==t.length&&11!==t.length&&p.throwArgumentError("invalid component count for transaction type: 1","payload",(0,o.hexlify)(e));var n={type:1,chainId:h(t[0]).toNumber(),nonce:h(t[1]).toNumber(),gasPrice:h(t[2]),gasLimit:h(t[3]),to:b(t[4]),value:h(t[5]),data:t[6],accessList:x(t[7])};return 8===t.length||(n.hash=(0,c.keccak256)(e),E(n,t.slice(8),S)),n}(t);case 2:return function(e){var t=f.decode(e.slice(1));9!==t.length&&12!==t.length&&p.throwArgumentError("invalid component count for transaction type: 2","payload",(0,o.hexlify)(e));var n=h(t[2]),r=h(t[3]),a={type:2,chainId:h(t[0]).toNumber(),nonce:h(t[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:r,gasPrice:null,gasLimit:h(t[4]),to:b(t[5]),value:h(t[6]),data:t[7],accessList:x(t[8])};return 9===t.length||(a.hash=(0,c.keccak256)(e),E(a,t.slice(9),k)),a}(t)}return p.throwError("unsupported transaction type: ".concat(t[0]),l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},94938:function(e,t,n){"use strict";n.r(t),n.d(t,{commify:function(){return o},formatEther:function(){return u},formatUnits:function(){return s},parseEther:function(){return f},parseUnits:function(){return c}});var r=n(91757),a=new(n(17163).Logger)("units/5.7.0"),i=["wei","kwei","mwei","gwei","szabo","finney","ether"];function o(e){var t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&a.throwArgumentError("invalid value","value",e);var n=t[0],r="";for("-"===n.substring(0,1)&&(r="-",n=n.substring(1));"0"===n.substring(0,1);)n=n.substring(1);""===n&&(n="0");var i="";for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);for(var o=[];n.length;){if(n.length<=3){o.unshift(n);break}var s=n.length-3;o.unshift(n.substring(s)),n=n.substring(0,s)}return r+o.join(",")+i}function s(e,t){if("string"==typeof t){var n=i.indexOf(t);-1!==n&&(t=3*n)}return(0,r.S5)(e,null!=t?t:18)}function c(e,t){if("string"!=typeof e&&a.throwArgumentError("value must be a string","value",e),"string"==typeof t){var n=i.indexOf(t);-1!==n&&(t=3*n)}return(0,r.Ox)(e,null!=t?t:18)}function u(e){return s(e,18)}function f(e){return c(e,18)}},64839:function(e,t,n){"use strict";n.r(t),n.d(t,{Wallet:function(){return I},verifyMessage:function(){return E},verifyTypedData:function(){return C}});var r=n(24611),a=n(47061),i=n(59900),o=n(14771),s=n(24269),c=n(38114),u=n(73772),f=n(4951),d=n(28110),l=n(25289),p=n(27099),b=n(10988),h=n(75993),y=n(3431),m=n(36584),v=n(51189),g=n(1207),A=n(93155),w=n(22313),x=n(99849),_=n(17163),k=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},S=new _.Logger("wallet/5.7.0"),I=function(e){(0,s.Z)(n,e);var t=(0,c.Z)(n);function n(e,r){var i,s;if((0,a.Z)(this,n),i=t.call(this),null!=(s=e)&&(0,l.isHexString)(s.privateKey,32)&&null!=s.address){var c=new g.SigningKey(e.privateKey);if((0,m.defineReadOnly)((0,o.Z)(i),"_signingKey",(function(){return c})),(0,m.defineReadOnly)((0,o.Z)(i),"address",(0,x.computeAddress)(i.publicKey)),i.address!==(0,u.getAddress)(e.address)&&S.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){var t=e.mnemonic;return t&&t.phrase}(e)){var d=e.mnemonic;(0,m.defineReadOnly)((0,o.Z)(i),"_mnemonic",(function(){return{phrase:d.phrase,path:d.path||h.defaultPath,locale:d.locale||"en"}}));var p=i.mnemonic,b=h.HDNode.fromMnemonic(p.phrase,null,p.locale).derivePath(p.path);(0,x.computeAddress)(b.privateKey)!==i.address&&S.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,m.defineReadOnly)((0,o.Z)(i),"_mnemonic",(function(){return null}))}else{if(g.SigningKey.isSigningKey(e))"secp256k1"!==e.curve&&S.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,m.defineReadOnly)((0,o.Z)(i),"_signingKey",(function(){return e}));else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);var y=new g.SigningKey(e);(0,m.defineReadOnly)((0,o.Z)(i),"_signingKey",(function(){return y}))}(0,m.defineReadOnly)((0,o.Z)(i),"_mnemonic",(function(){return null})),(0,m.defineReadOnly)((0,o.Z)(i),"address",(0,x.computeAddress)(i.publicKey))}return r&&!f.zt.isProvider(r)&&S.throwArgumentError("invalid provider","provider",r),(0,m.defineReadOnly)((0,o.Z)(i),"provider",r||null),i}return(0,i.Z)(n,[{key:"mnemonic",get:function(){return this._mnemonic()}},{key:"privateKey",get:function(){return this._signingKey().privateKey}},{key:"publicKey",get:function(){return this._signingKey().publicKey}},{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"connect",value:function(e){return new n(this,e)}},{key:"signTransaction",value:function(e){var t=this;return(0,m.resolveProperties)(e).then((function(n){null!=n.from&&((0,u.getAddress)(n.from)!==t.address&&S.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete n.from);var r=t._signingKey().signDigest((0,y.keccak256)((0,x.serialize)(n)));return(0,x.serialize)(n,r)}))}},{key:"signMessage",value:function(e){return k(this,void 0,void 0,(0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.joinSignature)(this._signingKey().signDigest((0,p.r)(e))));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,n){return k(this,void 0,void 0,(0,r.Z)().mark((function a(){var i,o=this;return(0,r.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,b.E.resolveNames(e,t,n,(function(e){return null==o.provider&&S.throwError("cannot resolve ENS names without a provider",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),o.provider.resolveName(e)}));case 2:return i=r.sent,r.abrupt("return",(0,l.joinSignature)(this._signingKey().signDigest(b.E.hash(i.domain,t,i.value))));case 4:case"end":return r.stop()}}),a,this)})))}},{key:"encrypt",value:function(e,t,n){if("function"!=typeof t||n||(n=t,t={}),n&&"function"!=typeof n)throw new Error("invalid callback");return t||(t={}),(0,A.HI)(this,e,t,n)}}],[{key:"createRandom",value:function(e){var t=(0,v.O)(16);e||(e={}),e.extraEntropy&&(t=(0,l.arrayify)((0,l.hexDataSlice)((0,y.keccak256)((0,l.concat)([t,e.extraEntropy])),0,16)));var r=(0,h.entropyToMnemonic)(t,e.locale);return n.fromMnemonic(r,e.path,e.locale)}},{key:"fromEncryptedJson",value:function(e,t,r){return(0,w.decryptJsonWallet)(e,t,r).then((function(e){return new n(e)}))}},{key:"fromEncryptedJsonSync",value:function(e,t){return new n((0,w.decryptJsonWalletSync)(e,t))}},{key:"fromMnemonic",value:function(e,t,r){return t||(t=h.defaultPath),new n(h.HDNode.fromMnemonic(e,null,r).derivePath(t))}}]),n}(d.E);function E(e,t){return(0,x.recoverAddress)((0,p.r)(e),t)}function C(e,t,n,r){return(0,x.recoverAddress)(b.E.hash(e,t,n),r)}},46344:function(e,t,n){"use strict";n.r(t),n.d(t,{_fetchData:function(){return h},fetchJson:function(){return y},poll:function(){return m}});var r=n(24611),a=n(45127),i=n(25289),o=n(36584),s=n(18145),c=n(17163),u=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))};function f(e,t){return u(this,void 0,void 0,(0,r.Z)().mark((function n(){var a,o,s,c,u;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==t&&(t={}),a={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0},!0!==t.skipFetchSetup&&(a.mode="cors",a.cache="no-cache",a.credentials="same-origin",a.redirect="follow",a.referrer="client"),null!=t.fetchOptions&&((o=t.fetchOptions).mode&&(a.mode=o.mode),o.cache&&(a.cache=o.cache),o.credentials&&(a.credentials=o.credentials),o.redirect&&(a.redirect=o.redirect),o.referrer&&(a.referrer=o.referrer)),n.next=7,fetch(e,a);case 7:return s=n.sent,n.next=10,s.arrayBuffer();case 10:return c=n.sent,u={},s.headers.forEach?s.headers.forEach((function(e,t){u[t.toLowerCase()]=e})):s.headers.keys().forEach((function(e){u[e.toLowerCase()]=s.headers.get(e)})),n.abrupt("return",{headers:u,statusCode:s.status,statusMessage:s.statusText,body:(0,i.arrayify)(new Uint8Array(c))});case 14:case"end":return n.stop()}}),n)})))}var d=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},l=new c.Logger("web/5.7.1");function p(e){return new Promise((function(t){setTimeout(t,e)}))}function b(e,t){if(null==e)return null;if("string"==typeof e)return e;if((0,i.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,s.ZN)(e)}catch(e){}return(0,i.hexlify)(e)}return e}function h(e,t,n){var i="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;l.assertArgument(i>0&&i%1==0,"invalid connection throttle limit","connection.throttleLimit",i);var u="object"==typeof e?e.throttleCallback:null,h="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;l.assertArgument(h>0&&h%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",h);var y="object"==typeof e&&!!e.errorPassThrough,m={},v=null,g={method:"GET"},A=!1,w=12e4;if("string"==typeof e)v=e;else if("object"==typeof e){if(null!=e&&null!=e.url||l.throwArgumentError("missing URL","connection.url",e),v=e.url,"number"==typeof e.timeout&&e.timeout>0&&(w=e.timeout),e.headers)for(var x in e.headers)m[x.toLowerCase()]={key:x,value:String(e.headers[x])},["if-none-match","if-modified-since"].indexOf(x.toLowerCase())>=0&&(A=!0);if(g.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==v.substring(0,6)&&!0!==e.allowInsecureAuthentication&&l.throwError("basic authentication requires a secure https url",c.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:v,user:e.user,password:"[REDACTED]"});var _=e.user+":"+e.password;m.authorization={key:"Authorization",value:"Basic "+(0,a.c)((0,s.Y0)(_))}}null!=e.skipFetchSetup&&(g.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(g.fetchOptions=(0,o.shallowCopy)(e.fetchOptions))}var k,S=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),I=v?v.match(S):null;if(I)try{var E={statusCode:200,statusMessage:"OK",headers:{"content-type":I[1]||"text/plain"},body:I[2]?(0,a.J)(I[3]):(k=I[3],(0,s.Y0)(k.replace(/%([0-9a-f][0-9a-f])/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}))))},C=E.body;return n&&(C=n(E.body,E)),Promise.resolve(C)}catch(e){l.throwError("processing response error",c.Logger.errors.SERVER_ERROR,{body:b(I[1],I[2]),error:e,requestBody:null,requestMethod:"GET",url:v})}t&&(g.method="POST",g.body=t,null==m["content-type"]&&(m["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==m["content-length"]&&(m["content-length"]={key:"Content-Length",value:String(t.length)}));var T={};Object.keys(m).forEach((function(e){var t=m[e];T[t.key]=t.value})),g.headers=T;var O,P=(O=null,{promise:new Promise((function(e,t){w&&(O=setTimeout((function(){null!=O&&(O=null,t(l.makeError("timeout",c.Logger.errors.TIMEOUT,{requestBody:b(g.body,T["content-type"]),requestMethod:g.method,timeout:w,url:v})))}),w))})),cancel:function(){null!=O&&(clearTimeout(O),O=null)}}),M=function(){return d(this,void 0,void 0,(0,r.Z)().mark((function e(){var t,a,o,s,d,m,w,x,_,k;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t=300)&&(P.cancel(),l.throwError("bad response",c.Logger.errors.SERVER_ERROR,{status:a.statusCode,headers:a.headers,body:b(w,a.headers?a.headers["content-type"]:null),requestBody:b(g.body,T["content-type"]),requestMethod:g.method,url:v})),!n){e.next=60;break}return e.prev=37,e.next=40,n(w,a);case 40:return x=e.sent,P.cancel(),e.abrupt("return",x);case 45:if(e.prev=45,e.t1=e.catch(37),!(e.t1.throttleRetry&&ts)return void(o()&&r(new Error("retry limit reached")));var u=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));ut.ceiling&&(u=t.ceiling),setTimeout(a,u)}return null}),(function(e){o()&&r(e)}))}()}))}},27063:function(e,t,n){"use strict";n.d(t,{D:function(){return c}});var r=n(47061),a=n(59900),i=n(89477),o=n(36584),s=new(n(17163).Logger)("wordlists/5.7.0"),c=function(){function e(t){(0,r.Z)(this,e),s.checkAbstract(this instanceof e?this.constructor:void 0,e),(0,o.defineReadOnly)(this,"locale",t)}return(0,a.Z)(e,[{key:"split",value:function(e){return e.toLowerCase().split(/ +/g)}},{key:"join",value:function(e){return e.join(" ")}}],[{key:"check",value:function(e){for(var t=[],n=0;n<2048;n++){var r=e.getWord(n);if(n!==e.getWordIndex(r))return"0x";t.push(r)}return(0,i.id)(t.join("\n")+"\n")}},{key:"register",value:function(e,t){t||(t=e.locale)}}]),e}()},97760:function(e,t,n){"use strict";n.d(t,{E:function(){return d}});var r=n(47061),a=n(59900),i=n(24269),o=n(38114),s=n(27063),c=null;function u(e){if(null==c&&(c="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==s.D.check(e)))throw c=null,new Error("BIP39 Wordlist for en (English) FAILED")}var f=new(function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,"en")}return(0,a.Z)(n,[{key:"getWord",value:function(e){return u(this),c[e]}},{key:"getWordIndex",value:function(e){return u(this),c.indexOf(e)}}]),n}(s.D));s.D.register(f);var d={en:f}},24840:function(e){var t,n;e.exports=(t={418:function(e,t){!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={splitValues:!1});var n,a=this;this.headersMap={},e&&("undefined"!=typeof Headers&&e instanceof Headers?r.getHeaderKeys(e).forEach((function(n){r.getHeaderValues(e,n).forEach((function(e){t.splitValues?a.append(n,r.splitHeaderValue(e)):a.append(n,e)}))})):"object"==typeof(n=e)&&"object"==typeof n.headersMap&&"function"==typeof n.forEach?e.forEach((function(e,t){a.append(e,t)})):"undefined"!=typeof Map&&e instanceof Map?e.forEach((function(e,t){a.append(t,e)})):"string"==typeof e?this.appendFromString(e):"object"==typeof e&&Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];Array.isArray(n)?n.forEach((function(e){a.append(t,e)})):a.append(t,n)})))}return e.prototype.appendFromString=function(e){for(var t=e.split("\r\n"),n=0;n0){var i=r.substring(0,a).trim(),o=r.substring(a+1).trim();this.append(i,o)}}},e.prototype.delete=function(e,t){var n=r.normalizeName(e);if(void 0===t)delete this.headersMap[n];else{var a=this.headersMap[n];if(a){var i=a.indexOf(t);i>=0&&a.splice(i,1),0===a.length&&delete this.headersMap[n]}}},e.prototype.append=function(e,t){var n=this,a=r.normalizeName(e);Array.isArray(this.headersMap[a])||(this.headersMap[a]=[]),Array.isArray(t)?t.forEach((function(e){n.headersMap[a].push(r.normalizeValue(e))})):this.headersMap[a].push(r.normalizeValue(t))},e.prototype.set=function(e,t){var n=r.normalizeName(e);if(Array.isArray(t)){var a=[];t.forEach((function(e){a.push(r.normalizeValue(e))})),this.headersMap[n]=a}else this.headersMap[n]=[r.normalizeValue(t)]},e.prototype.has=function(e,t){var n=this.headersMap[r.normalizeName(e)];if(!Array.isArray(n))return!1;if(void 0!==t){var a=r.normalizeValue(t);return n.indexOf(a)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[r.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach((function(n){e(n,t.headersMap[n])}),this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach((function(t,n){n.forEach((function(n){e.append(t,n)}))})),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.BrowserHeaders=r.BrowserHeaders},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var n=e[Symbol.iterator](),r=n.next();!r.done;)t(r.value[0]),r=n.next()},t.iterateHeadersKeys=function(e,t){for(var n=e.keys(),r=n.next();!r.done;)t(r.value),r=n.next()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var n=e;if(n instanceof Headers&&n.getAll)return n.getAll(t);var r=n.get(t);return r&&"string"==typeof r?[r]:r},t.getHeaderKeys=function(e){var t=e,n={},a=[];return t.keys?r.iterateHeadersKeys(t,(function(e){n[e]||(n[e]=!0,a.push(e))})):t.forEach?t.forEach((function(e,t){n[t]||(n[t]=!0,a.push(t))})):r.iterateHeaders(t,(function(e){var t=e[0];n[t]||(n[t]=!0,a.push(t))})),a},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach((function(e){e.split(",").forEach((function(e){t.push(e)}))})),t}}]))},617:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkParser=t.ChunkType=t.encodeASCII=t.decodeASCII=void 0;var r,a=n(65);function i(e){return 9===(t=e)||10===t||13===t||e>=32&&e<=126;var t}function o(e){for(var t=0;t!==e.length;++t)if(!i(e[t]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(e))}function s(e){return 128==(128&e.getUint8(0))}function c(e){return e.getUint32(1,!1)}function u(e,t,n){return e.byteLength-t>=n}function f(e,t,n){if(e.slice)return e.slice(t,n);var r=e.length;void 0!==n&&(r=n);for(var a=new Uint8Array(r-t),i=0,o=t;o=0?n:i.httpStatusToCode(t);this.props.debug&&o.debug("onHeaders.code",r);var a=e.get("grpc-message")||[];if(this.props.debug&&o.debug("onHeaders.gRPCMessage",a),this.rawOnHeaders(e),r!==i.Code.OK){var s=this.decodeGRPCStatus(a[0]);this.rawOnError(r,s,e)}}},e.prototype.onTransportChunk=function(e){var t=this;if(this.closed)this.props.debug&&o.debug("grpc.onChunk received after request was closed - ignoring");else{var n=[];try{n=this.parser.parse(e)}catch(e){return this.props.debug&&o.debug("onChunk.parsing error",e,e.message),void this.rawOnError(i.Code.Internal,"parsing error: "+e.message)}n.forEach((function(e){if(e.chunkType===a.ChunkType.MESSAGE){var n=t.methodDefinition.responseType.deserializeBinary(e.data);t.rawOnMessage(n)}else e.chunkType===a.ChunkType.TRAILERS&&(t.responseHeaders?(t.responseTrailers=new r.Metadata(e.trailers),t.props.debug&&o.debug("onChunk.trailers",t.responseTrailers)):(t.responseHeaders=new r.Metadata(e.trailers),t.rawOnHeaders(t.responseHeaders)))}))}},e.prototype.onTransportEnd=function(){if(this.props.debug&&o.debug("grpc.onEnd"),this.closed)this.props.debug&&o.debug("grpc.onEnd received after request was closed - ignoring");else if(void 0!==this.responseTrailers){var e=f(this.responseTrailers);if(null!==e){var t=this.responseTrailers.get("grpc-message"),n=this.decodeGRPCStatus(t[0]);this.rawOnEnd(e,n,this.responseTrailers)}else this.rawOnError(i.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(void 0===this.responseHeaders)return void this.rawOnError(i.Code.Unknown,"Response closed without headers");var r=f(this.responseHeaders),a=this.responseHeaders.get("grpc-message");if(this.props.debug&&o.debug("grpc.headers only response ",r,a),null===r)return void this.rawOnEnd(i.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var s=this.decodeGRPCStatus(a[0]);this.rawOnEnd(r,s,this.responseHeaders)}},e.prototype.decodeGRPCStatus=function(e){if(!e)return"";try{return decodeURIComponent(e)}catch(t){return e}},e.prototype.rawOnEnd=function(e,t,n){var r=this;this.props.debug&&o.debug("rawOnEnd",e,t,n),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(a){if(!r.closed)try{a(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnHeaders=function(e){this.props.debug&&o.debug("rawOnHeaders",e),this.completed||this.onHeadersCallbacks.forEach((function(t){try{t(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.rawOnError=function(e,t,n){var a=this;void 0===n&&(n=new r.Metadata),this.props.debug&&o.debug("rawOnError",e,t),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(r){if(!a.closed)try{r(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnMessage=function(e){var t=this;this.props.debug&&o.debug("rawOnMessage",e.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach((function(n){if(!t.closed)try{n(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.onHeaders=function(e){this.onHeadersCallbacks.push(e)},e.prototype.onMessage=function(e){this.onMessageCallbacks.push(e)},e.prototype.onEnd=function(e){this.onEndCallbacks.push(e)},e.prototype.start=function(e){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var t=new r.Metadata(e||{});t.set("content-type","application/grpc-web+proto"),t.set("x-grpc-web","1"),this.transport.start(t)},e.prototype.send=function(e){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var t=c.frameRequest(e);this.transport.sendMessage(t)},e.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},e.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&o.debug("request.abort aborting request"),this.transport.cancel()},e}();function f(e){var t=e.get("grpc-status")||[];if(t.length>0)try{var n=t[0];return parseInt(n,10)}catch(e){return null}return null}},346:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debug=void 0,t.debug=function(){for(var e=[],t=0;t=55296&&n<=56319){var r=e.charCodeAt(t+1);r>=56320&&r<=57343&&(n=65536+(n-55296<<10)+(r-56320))}return n}function d(e){for(var t=new Uint8Array(e.length),n=0,r=0;rt;n--)o.unshift(e[n]);throw r}}}function c(){for(var e=[],t=0;t=55296&&n<=56319){var r=e.charCodeAt(t+1);r>=56320&&r<=57343&&(n=65536+(n-55296<<10)+(r-56320))}return n}var d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.configureXhr=function(){this.options.debug&&c("ArrayBufferXHR.configureXhr: setting responseType to 'arraybuffer'"),this.xhr.responseType="arraybuffer"},t.prototype.onProgressEvent=function(){},t.prototype.onLoadEvent=function(){var e=this,t=this.xhr.response;this.options.debug&&c("ArrayBufferXHR.onLoadEvent: ",new Uint8Array(t)),u((function(){e.options.onChunk(new Uint8Array(t),!0)})),u((function(){e.options.onEnd()}))},t}(function(){function e(e,t){this.options=e,this.init=t}return e.prototype.onProgressEvent=function(){var e=this;this.options.debug&&c("XHR.onProgressEvent.length: ",this.xhr.response.length);var t=this.xhr.response.substr(this.index);this.index=this.xhr.response.length;var n=function(e){for(var t=new Uint8Array(e.length),n=0,r=0;r0){var i=r.substring(0,a).trim(),o=r.substring(a+1).trim();this.append(i,o)}}},e.prototype.delete=function(e,t){var n=r.normalizeName(e);if(void 0===t)delete this.headersMap[n];else{var a=this.headersMap[n];if(a){var i=a.indexOf(t);i>=0&&a.splice(i,1),0===a.length&&delete this.headersMap[n]}}},e.prototype.append=function(e,t){var n=this,a=r.normalizeName(e);Array.isArray(this.headersMap[a])||(this.headersMap[a]=[]),Array.isArray(t)?t.forEach((function(e){n.headersMap[a].push(r.normalizeValue(e))})):this.headersMap[a].push(r.normalizeValue(t))},e.prototype.set=function(e,t){var n=r.normalizeName(e);if(Array.isArray(t)){var a=[];t.forEach((function(e){a.push(r.normalizeValue(e))})),this.headersMap[n]=a}else this.headersMap[n]=[r.normalizeValue(t)]},e.prototype.has=function(e,t){var n=this.headersMap[r.normalizeName(e)];if(!Array.isArray(n))return!1;if(void 0!==t){var a=r.normalizeValue(t);return n.indexOf(a)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[r.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach((function(n){e(n,t.headersMap[n])}),this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach((function(t,n){n.forEach((function(n){e.append(t,n)}))})),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.BrowserHeaders=r.BrowserHeaders},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var n=e[Symbol.iterator](),r=n.next();!r.done;)t(r.value[0]),r=n.next()},t.iterateHeadersKeys=function(e,t){for(var n=e.keys(),r=n.next();!r.done;)t(r.value),r=n.next()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var n=e;if(n instanceof Headers&&n.getAll)return n.getAll(t);var r=n.get(t);return r&&"string"==typeof r?[r]:r},t.getHeaderKeys=function(e){var t=e,n={},a=[];return t.keys?r.iterateHeadersKeys(t,(function(e){n[e]||(n[e]=!0,a.push(e))})):t.forEach?t.forEach((function(e,t){n[t]||(n[t]=!0,a.push(t))})):r.iterateHeaders(t,(function(e){var t=e[0];n[t]||(n[t]=!0,a.push(t))})),a},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach((function(e){e.split(",").forEach((function(e){t.push(e)}))})),t}}]))},617:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkParser=t.ChunkType=t.encodeASCII=t.decodeASCII=void 0;var r,a=n(65);function i(e){return 9===(t=e)||10===t||13===t||e>=32&&e<=126;var t}function o(e){for(var t=0;t!==e.length;++t)if(!i(e[t]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(e))}function s(e){return 128==(128&e.getUint8(0))}function c(e){return e.getUint32(1,!1)}function u(e,t,n){return e.byteLength-t>=n}function f(e,t,n){if(e.slice)return e.slice(t,n);var r=e.length;void 0!==n&&(r=n);for(var a=new Uint8Array(r-t),i=0,o=t;o=0?n:i.httpStatusToCode(t);this.props.debug&&o.debug("onHeaders.code",r);var a=e.get("grpc-message")||[];if(this.props.debug&&o.debug("onHeaders.gRPCMessage",a),this.rawOnHeaders(e),r!==i.Code.OK){var s=this.decodeGRPCStatus(a[0]);this.rawOnError(r,s,e)}}},e.prototype.onTransportChunk=function(e){var t=this;if(this.closed)this.props.debug&&o.debug("grpc.onChunk received after request was closed - ignoring");else{var n=[];try{n=this.parser.parse(e)}catch(e){return this.props.debug&&o.debug("onChunk.parsing error",e,e.message),void this.rawOnError(i.Code.Internal,"parsing error: "+e.message)}n.forEach((function(e){if(e.chunkType===a.ChunkType.MESSAGE){var n=t.methodDefinition.responseType.deserializeBinary(e.data);t.rawOnMessage(n)}else e.chunkType===a.ChunkType.TRAILERS&&(t.responseHeaders?(t.responseTrailers=new r.Metadata(e.trailers),t.props.debug&&o.debug("onChunk.trailers",t.responseTrailers)):(t.responseHeaders=new r.Metadata(e.trailers),t.rawOnHeaders(t.responseHeaders)))}))}},e.prototype.onTransportEnd=function(){if(this.props.debug&&o.debug("grpc.onEnd"),this.closed)this.props.debug&&o.debug("grpc.onEnd received after request was closed - ignoring");else if(void 0!==this.responseTrailers){var e=f(this.responseTrailers);if(null!==e){var t=this.responseTrailers.get("grpc-message"),n=this.decodeGRPCStatus(t[0]);this.rawOnEnd(e,n,this.responseTrailers)}else this.rawOnError(i.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(void 0===this.responseHeaders)return void this.rawOnError(i.Code.Unknown,"Response closed without headers");var r=f(this.responseHeaders),a=this.responseHeaders.get("grpc-message");if(this.props.debug&&o.debug("grpc.headers only response ",r,a),null===r)return void this.rawOnEnd(i.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var s=this.decodeGRPCStatus(a[0]);this.rawOnEnd(r,s,this.responseHeaders)}},e.prototype.decodeGRPCStatus=function(e){if(!e)return"";try{return decodeURIComponent(e)}catch(t){return e}},e.prototype.rawOnEnd=function(e,t,n){var r=this;this.props.debug&&o.debug("rawOnEnd",e,t,n),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(a){if(!r.closed)try{a(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnHeaders=function(e){this.props.debug&&o.debug("rawOnHeaders",e),this.completed||this.onHeadersCallbacks.forEach((function(t){try{t(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.rawOnError=function(e,t,n){var a=this;void 0===n&&(n=new r.Metadata),this.props.debug&&o.debug("rawOnError",e,t),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(r){if(!a.closed)try{r(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnMessage=function(e){var t=this;this.props.debug&&o.debug("rawOnMessage",e.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach((function(n){if(!t.closed)try{n(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.onHeaders=function(e){this.onHeadersCallbacks.push(e)},e.prototype.onMessage=function(e){this.onMessageCallbacks.push(e)},e.prototype.onEnd=function(e){this.onEndCallbacks.push(e)},e.prototype.start=function(e){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var t=new r.Metadata(e||{});t.set("content-type","application/grpc-web+proto"),t.set("x-grpc-web","1"),this.transport.start(t)},e.prototype.send=function(e){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var t=c.frameRequest(e);this.transport.sendMessage(t)},e.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},e.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&o.debug("request.abort aborting request"),this.transport.cancel()},e}();function f(e){var t=e.get("grpc-status")||[];if(t.length>0)try{var n=t[0];return parseInt(n,10)}catch(e){return null}return null}},346:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debug=void 0,t.debug=function(){for(var e=[],t=0;t=55296&&n<=56319){var r=e.charCodeAt(t+1);r>=56320&&r<=57343&&(n=65536+(n-55296<<10)+(r-56320))}return n}function d(e){for(var t=new Uint8Array(e.length),n=0,r=0;r=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){f.headers[e]=a.merge(s)})),e.exports=f},7026:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},96322:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},5638:function(e,t,n){"use strict";var r=n(56672),a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},o=r.version.split(".");function s(e,t){for(var n=t?t.split("."):o,r=e.split("."),a=0;a<3;a++){if(n[a]>r[a])return!0;if(n[a]0;){var i=r[a],o=t[i];if(o){var s=e[i],c=void 0===s||o(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:a}},35853:function(e,t,n){"use strict";var r=n(7026),a=Object.prototype.toString;function i(e){return"[object Array]"===a.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===a.call(e)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n0&&(c=i-s-16),o.padding="0".repeat(c),f({publicKey:t,data:JSON.stringify(o),version:a})},t.decrypt=d,t.decryptSafely=function(e){var t=e.encryptedData,n=e.privateKey;if(u.isNullish(t))throw new Error("Missing encryptedData parameter");if(u.isNullish(n))throw new Error("Missing privateKey parameter");return JSON.parse(d({encryptedData:t,privateKey:n})).data},t.getEncryptionPublicKey=function(e){var t=l(e),n=s.box.keyPair.fromSecretKey(t).publicKey;return c.encodeBase64(n)}},2414:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.concatSig=void 0,a(n(73933),t),a(n(95116),t),a(n(8166),t);var i=n(74770);Object.defineProperty(t,"concatSig",{enumerable:!0,get:function(){return i.concatSig}}),Object.defineProperty(t,"normalize",{enumerable:!0,get:function(){return i.normalize}})},73933:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractPublicKey=t.recoverPersonalSignature=t.personalSign=void 0;var r=n(78097),a=n(74770);function i(e,t){var n=r.hashPersonalMessage(a.legacyToBuffer(e));return a.recoverPublicKey(n,t)}t.personalSign=function(e){var t=e.privateKey,n=e.data;if(a.isNullish(n))throw new Error("Missing data parameter");if(a.isNullish(t))throw new Error("Missing privateKey parameter");var i=a.legacyToBuffer(n),o=r.hashPersonalMessage(i),s=r.ecsign(o,t);return a.concatSig(r.toBuffer(s.v),s.r,s.s)},t.recoverPersonalSignature=function(e){var t=e.data,n=e.signature;if(a.isNullish(t))throw new Error("Missing data parameter");if(a.isNullish(n))throw new Error("Missing signature parameter");var o=i(t,n),s=r.publicToAddress(o);return r.bufferToHex(s)},t.extractPublicKey=function(e){var t=e.data,n=e.signature;if(a.isNullish(t))throw new Error("Missing data parameter");if(a.isNullish(n))throw new Error("Missing signature parameter");var r=i(t,n);return"0x".concat(r.toString("hex"))}},95116:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(48648).default,i=n(21146).default,o=n(10202).default;Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedSignature=t.signTypedData=t.typedSignatureHash=t.TypedDataUtils=t.TYPED_MESSAGE_SCHEMA=t.SignTypedDataVersion=void 0;var s,c=n(78097),u=n(28213),f=n(74770);function d(e,t){if(!Object.keys(s).includes(e))throw new Error("Invalid version: '".concat(e,"'"));if(t&&!t.includes(e))throw new Error("SignTypedDataVersion not allowed: '".concat(e,"'. Allowed versions are: ").concat(t.join(", ")))}function l(e,t,n,a,i){if(d(i,[s.V3,s.V4]),void 0!==e[n])return["bytes32",i===s.V4&&null==a?"0x0000000000000000000000000000000000000000000000000000000000000000":c.keccak(p(n,a,e,i))];if(void 0===a)throw new Error("missing value for field ".concat(t," of type ").concat(n));if("bytes"===n)return["bytes32",c.keccak(a)];if("string"===n)return"string"==typeof a&&(a=r.from(a,"utf8")),["bytes32",c.keccak(a)];if(n.lastIndexOf("]")===n.length-1){if(i===s.V3)throw new Error("Arrays are unimplemented in encodeData; use V4 extension");var f=n.slice(0,n.lastIndexOf("[")),b=a.map((function(n){return l(e,t,f,n,i)}));return["bytes32",c.keccak(u.rawEncode(b.map((function(e){return o(e,1)[0]})),b.map((function(e){return o(e,2)[1]}))))]}return[n,a]}function p(e,t,n,r){d(r,[s.V3,s.V4]);var a,c=["bytes32"],f=[m(e,n)],p=i(n[e]);try{for(p.s();!(a=p.n()).done;){var b=a.value;if(r!==s.V3||void 0!==t[b.name]){var h=l(n,b.name,b.type,t[b.name],r),y=o(h,2),v=y[0],g=y[1];c.push(v),f.push(g)}}}catch(e){p.e(e)}finally{p.f()}return u.rawEncode(c,f)}function b(e,t){var n="",r=h(e,t);r.delete(e);var o,s=[e].concat(a(Array.from(r).sort())),c=i(s);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(!t[u])throw new Error("No type definition specified: ".concat(u));n+="".concat(u,"(").concat(t[u].map((function(e){var t=e.name,n=e.type;return"".concat(n," ").concat(t)})).join(","),")")}}catch(e){c.e(e)}finally{c.f()}return n}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,r=e.match(/^[0-9A-Z_a-z]*/);if(e=o(r,1)[0],n.has(e)||void 0===t[e])return n;n.add(e);var a,s=i(t[e]);try{for(s.s();!(a=s.n()).done;)h(a.value.type,t,n)}catch(e){s.e(e)}finally{s.f()}return n}function y(e,t,n,r){return d(r,[s.V3,s.V4]),c.keccak(p(e,t,n,r))}function m(e,t){return c.keccak(b(e,t))}function v(e){var n={};for(var r in t.TYPED_MESSAGE_SCHEMA.properties)e[r]&&(n[r]=e[r]);return"types"in n&&(n.types=Object.assign({EIP712Domain:[]},n.types)),n}function g(e){var t=new Error("Expect argument to be non-empty array");if("object"!=typeof e||!("length"in e)||!e.length)throw t;var n=e.map((function(e){return"bytes"!==e.type?e.value:f.legacyToBuffer(e.value)})),r=e.map((function(e){return e.type})),a=e.map((function(e){if(!e.name)throw t;return"".concat(e.type," ").concat(e.name)}));return u.soliditySHA3(["bytes32","bytes32"],[u.soliditySHA3(new Array(e.length).fill("string"),a),u.soliditySHA3(r,n)])}!function(e){e.V1="V1",e.V3="V3",e.V4="V4"}(s=t.SignTypedDataVersion||(t.SignTypedDataVersion={})),t.TYPED_MESSAGE_SCHEMA={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},t.TypedDataUtils={encodeData:p,encodeType:b,findTypeDependencies:h,hashStruct:y,hashType:m,sanitizeData:v,eip712Hash:function(e,t){d(t,[s.V3,s.V4]);var n=v(e),a=[r.from("1901","hex")];return a.push(y("EIP712Domain",n.domain,n.types,t)),"EIP712Domain"!==n.primaryType&&a.push(y(n.primaryType,n.message,n.types,t)),c.keccak(r.concat(a))}},t.typedSignatureHash=function(e){var t=g(e);return c.bufferToHex(t)},t.signTypedData=function(e){var n=e.privateKey,r=e.data,a=e.version;if(d(a),f.isNullish(r))throw new Error("Missing data parameter");if(f.isNullish(n))throw new Error("Missing private key parameter");var i=a===s.V1?g(r):t.TypedDataUtils.eip712Hash(r,a),o=c.ecsign(i,n);return f.concatSig(c.toBuffer(o.v),o.r,o.s)},t.recoverTypedSignature=function(e){var n=e.data,r=e.signature,a=e.version;if(d(a),f.isNullish(n))throw new Error("Missing data parameter");if(f.isNullish(r))throw new Error("Missing signature parameter");var i=a===s.V1?g(n):t.TypedDataUtils.eip712Hash(n,a),o=f.recoverPublicKey(i,r),u=c.publicToAddress(o);return c.bufferToHex(u)}},74770:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.recoverPublicKey=t.concatSig=t.legacyToBuffer=t.isNullish=t.padWithZeroes=void 0;var a=n(78097),i=n(16358);function o(e,t){if(""!==e&&!/^[0-9a-f]+$/i.test(e))throw new Error("Expected an unprefixed hex string. Received: ".concat(e));if(t<0)throw new Error("Expected a non-negative integer target length. Received: ".concat(t));return String.prototype.padStart.call(e,t,"0")}t.padWithZeroes=o,t.isNullish=function(e){return null==e},t.legacyToBuffer=function(e){return"string"!=typeof e||i.isHexString(e)?a.toBuffer(e):r.from(e)},t.concatSig=function(e,t,n){var r=a.fromSigned(t),s=a.fromSigned(n),c=a.bufferToInt(e),u=o(a.toUnsigned(r).toString("hex"),64),f=o(a.toUnsigned(s).toString("hex"),64),d=i.stripHexPrefix(i.intToHex(c));return a.addHexPrefix(u.concat(f,d))},t.recoverPublicKey=function(e,t){var n=a.fromRpcSig(t);return a.ecrecover(e,n.v,n.r,n.s)},t.normalize=function(e){if(e){if("number"==typeof e){var t=a.toBuffer(e);e=a.bufferToHex(t)}if("string"!=typeof e){var n="eth-sig-util.normalize() requires hex string or integer input.";throw n+=" received ".concat(typeof e,": ").concat(e),new Error(n)}return a.addHexPrefix(e.toLowerCase())}}},42606:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(29096).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var b=u-p|0;f+=(o=(a=0|e.words[b])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?f[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],p=l[e];n="";var b=this.clone();for(b.negative=0;!b.isZero();){var h=b.modn(p).toString(e);n=(b=b.idivn(p)).isZero()?h+n:f[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),f=this.clone();if(c){for(s=0;!f.isZero();s++)o=f.andln(255),f.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,p=0|o[1],b=8191&p,h=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,S=0|o[5],I=8191&S,E=S>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,R=0|o[8],N=8191&R,D=R>>>13,j=0|o[9],U=8191&j,L=j>>>13,Z=0|s[0],F=8191&Z,H=Z>>>13,z=0|s[1],q=8191&z,Q=z>>>13,K=0|s[2],V=8191&K,J=K>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],be=8191&pe,he=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,F))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,F)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,F),a=(a=Math.imul(b,H))+Math.imul(h,F)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,Q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,F),a=(a=Math.imul(m,H))+Math.imul(v,F)|0,i=Math.imul(v,H),r=r+Math.imul(b,q)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(h,q)|0,i=i+Math.imul(h,Q)|0;var ve=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(a=(a=a+Math.imul(d,J)|0)+Math.imul(l,V)|0))<<13)|0;u=((i=i+Math.imul(l,J)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,F),a=(a=Math.imul(A,H))+Math.imul(w,F)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,Q)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,Q)|0,r=r+Math.imul(b,V)|0,a=(a=a+Math.imul(b,J)|0)+Math.imul(h,V)|0,i=i+Math.imul(h,J)|0;var ge=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(a=(a=a+Math.imul(d,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,F),a=(a=Math.imul(_,H))+Math.imul(k,F)|0,i=Math.imul(k,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,Q)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,Q)|0,r=r+Math.imul(m,V)|0,a=(a=a+Math.imul(m,J)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,J)|0,r=r+Math.imul(b,W)|0,a=(a=a+Math.imul(b,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(I,F),a=(a=Math.imul(I,H))+Math.imul(E,F)|0,i=Math.imul(E,H),r=r+Math.imul(_,q)|0,a=(a=a+Math.imul(_,Q)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,Q)|0,r=r+Math.imul(A,V)|0,a=(a=a+Math.imul(A,J)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,J)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(b,$)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,F),a=(a=Math.imul(T,H))+Math.imul(O,F)|0,i=Math.imul(O,H),r=r+Math.imul(I,q)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,Q)|0,r=r+Math.imul(_,V)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(b,ne)|0,a=(a=a+Math.imul(b,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,F),a=(a=Math.imul(M,H))+Math.imul(B,F)|0,i=Math.imul(B,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,Q)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,Q)|0,r=r+Math.imul(I,V)|0,a=(a=a+Math.imul(I,J)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,J)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(b,ie)|0,a=(a=a+Math.imul(b,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(N,F),a=(a=Math.imul(N,H))+Math.imul(D,F)|0,i=Math.imul(D,H),r=r+Math.imul(M,q)|0,a=(a=a+Math.imul(M,Q)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,Q)|0,r=r+Math.imul(T,V)|0,a=(a=a+Math.imul(T,J)|0)+Math.imul(O,V)|0,i=i+Math.imul(O,J)|0,r=r+Math.imul(I,W)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(b,ce)|0,a=(a=a+Math.imul(b,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,F),a=(a=Math.imul(U,H))+Math.imul(L,F)|0,i=Math.imul(L,H),r=r+Math.imul(N,q)|0,a=(a=a+Math.imul(N,Q)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,Q)|0,r=r+Math.imul(M,V)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,J)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(I,$)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(b,de)|0,a=(a=a+Math.imul(b,le)|0)+Math.imul(h,de)|0,i=i+Math.imul(h,le)|0;var Se=(u+(r=r+Math.imul(d,be)|0)|0)+((8191&(a=(a=a+Math.imul(d,he)|0)+Math.imul(l,be)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,q),a=(a=Math.imul(U,Q))+Math.imul(L,q)|0,i=Math.imul(L,Q),r=r+Math.imul(N,V)|0,a=(a=a+Math.imul(N,J)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,J)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(I,ne)|0,a=(a=a+Math.imul(I,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Ie=(u+(r=r+Math.imul(b,be)|0)|0)+((8191&(a=(a=a+Math.imul(b,he)|0)+Math.imul(h,be)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,V),a=(a=Math.imul(U,J))+Math.imul(L,V)|0,i=Math.imul(L,J),r=r+Math.imul(N,W)|0,a=(a=a+Math.imul(N,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,be)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,be)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(N,$)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(I,ce)|0,a=(a=a+Math.imul(I,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,de)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,be)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,be)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(N,ne)|0,a=(a=a+Math.imul(N,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(I,de)|0,a=(a=a+Math.imul(I,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,be)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,be)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(N,ie)|0,a=(a=a+Math.imul(N,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(I,be)|0)|0)+((8191&(a=(a=a+Math.imul(I,he)|0)+Math.imul(E,be)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,de)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,de)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,be)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,be)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(N,de)|0,a=(a=a+Math.imul(N,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,be)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,be)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,de),a=(a=Math.imul(U,le))+Math.imul(L,de)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(N,be)|0)|0)+((8191&(a=(a=a+Math.imul(N,he)|0)+Math.imul(D,be)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Re=(u+(r=Math.imul(U,be))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,be)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Se,c[10]=Ie,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Re,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(b=p),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?b(this,e,t):r<63?p(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0==(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var b=0,h=1;0==(n.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(n.iushrn(b);b-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0==(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),b=o;0!==p.cmp(s);){for(var h=p,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4==++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},27566:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.importPublic=t.privateToPublic=t.privateToAddress=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.isPrecompiled=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isZeroAddress=t.isValidAddress=t.zeroAddress=void 0;var a=n(60285),i=n(16358),o=n(4593),s=n(42606),c=n(18283),u=n(54360);t.zeroAddress=function(){var e=c.zeros(20);return c.bufferToHex(e)},t.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},t.isZeroAddress=function(e){return t.zeroAddress()===c.addHexPrefix(e)},t.toChecksumAddress=function(e,t){e=i.stripHexPrefix(e).toLowerCase();for(var n=void 0!==t?t.toString()+"0x":"",r=u.keccak(n+e).toString("hex"),a="0x",o=0;o=8?a+=e[o].toUpperCase():a+=e[o];return a},t.isValidChecksumAddress=function(e,n){return t.isValidAddress(e)&&t.toChecksumAddress(e,n)===e},t.generateAddress=function(e,t){e=c.toBuffer(e);var n=new s(t);return n.isZero()?u.rlphash([e,null]).slice(-20):u.rlphash([e,r.from(n.toArray())]).slice(-20)},t.generateAddress2=function(e,t,n){var i=c.toBuffer(e),o=c.toBuffer(t),s=c.toBuffer(n);return a(20===i.length),a(32===o.length),u.keccak256(r.concat([r.from("ff","hex"),i,o,u.keccak256(s)])).slice(-20)},t.isPrecompiled=function(e){var t=c.unpad(e);return 1===t.length&&t[0]>=1&&t[0]<=8},t.isValidPrivate=function(e){return o.privateKeyVerify(e)},t.isValidPublic=function(e,t){return void 0===t&&(t=!1),64===e.length?o.publicKeyVerify(r.concat([r.from([4]),e])):!!t&&o.publicKeyVerify(e)},t.pubToAddress=function(e,t){return void 0===t&&(t=!1),e=c.toBuffer(e),t&&64!==e.length&&(e=o.publicKeyConvert(e,!1).slice(1)),a(64===e.length),u.keccak(e).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToAddress=function(e){return t.publicToAddress(t.privateToPublic(e))},t.privateToPublic=function(e){return e=c.toBuffer(e),o.publicKeyCreate(e,!1).slice(1)},t.importPublic=function(e){return 64!==(e=c.toBuffer(e)).length&&(e=o.publicKeyConvert(e,!1).slice(1)),e}},18283:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.baToJSON=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.stripZeros=t.unpad=t.setLengthRight=t.setLength=t.setLengthLeft=t.zeros=void 0;var a=n(16358),i=n(42606);t.zeros=function(e){return r.allocUnsafe(e).fill(0)},t.setLengthLeft=function(e,n,r){void 0===r&&(r=!1);var a=t.zeros(n);return e=t.toBuffer(e),r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},t.stripZeros=t.unpad,t.toBuffer=function(e){if(!r.isBuffer(e))if(Array.isArray(e))e=r.from(e);else if("string"==typeof e){if(!a.isHexString(e))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+e);e=r.from(a.padToEven(a.stripHexPrefix(e)),"hex")}else if("number"==typeof e)e=a.intToBuffer(e);else if(null==e)e=r.allocUnsafe(0);else if(i.isBN(e))e=e.toArrayLike(r);else{if(!e.toArray)throw new Error("invalid type");e=r.from(e.toArray())}return e},t.bufferToInt=function(e){return new i(t.toBuffer(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=t.toBuffer(e)).toString("hex")},t.fromSigned=function(e){return new i(e).fromTwos(256)},t.toUnsigned=function(e){return r.from(e.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||a.isHexPrefixed(e)?e:"0x"+e},t.baToJSON=function(e){if(r.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var n=[],a=0;a=i.length,"The field "+t.name+" must not have more "+t.length+" bytes")):t.allowZero&&0===i.length||!t.length||a(t.length===i.length,"The field "+t.name+" must have byte length of "+t.length),e.raw[n]=i}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:i,set:o}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:o,get:i})})),n)if("string"==typeof n&&(n=r.from(i.stripHexPrefix(n),"hex")),r.isBuffer(n)&&(n=o.decode(n)),Array.isArray(n)){if(n.length>e._fields.length)throw new Error("wrong number of fields in data");n.forEach((function(t,n){e[e._fields[n]]=s.toBuffer(t)}))}else{if("object"!=typeof n)throw new Error("invalid data");var c=Object.keys(n);t.forEach((function(t){-1!==c.indexOf(t.name)&&(e[t.name]=n[t.name]),-1!==c.indexOf(t.alias)&&(e[t.alias]=n[t.alias])}))}}},4593:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhUnsafe=t.ecdh=t.recover=t.verify=t.sign=t.signatureImportLax=t.signatureImport=t.signatureExport=t.signatureNormalize=t.publicKeyCombine=t.publicKeyTweakMul=t.publicKeyTweakAdd=t.publicKeyVerify=t.publicKeyConvert=t.publicKeyCreate=t.privateKeyTweakMul=t.privateKeyTweakAdd=t.privateKeyModInverse=t.privateKeyNegate=t.privateKeyImport=t.privateKeyExport=t.privateKeyVerify=void 0;var a=n(86939),i=n(53299),o=n(61838);t.privateKeyVerify=function(e){return 32===e.length&&a.privateKeyVerify(Uint8Array.from(e))},t.privateKeyExport=function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var n=i.privateKeyExport(e,t);return o.privateKeyExport(e,n,t)},t.privateKeyImport=function(e){if(null!==(e=o.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error("couldn't import from DER format")},t.privateKeyNegate=function(e){return r.from(a.privateKeyNegate(Uint8Array.from(e)))},t.privateKeyModInverse=function(e){if(32!==e.length)throw new Error("private key length is invalid");return r.from(i.privateKeyModInverse(Uint8Array.from(e)))},t.privateKeyTweakAdd=function(e,t){return r.from(a.privateKeyTweakAdd(Uint8Array.from(e),t))},t.privateKeyTweakMul=function(e,t){return r.from(a.privateKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t)))},t.publicKeyCreate=function(e,t){return r.from(a.publicKeyCreate(Uint8Array.from(e),t))},t.publicKeyConvert=function(e,t){return r.from(a.publicKeyConvert(Uint8Array.from(e),t))},t.publicKeyVerify=function(e){return(33===e.length||65===e.length)&&a.publicKeyVerify(Uint8Array.from(e))},t.publicKeyTweakAdd=function(e,t,n){return r.from(a.publicKeyTweakAdd(Uint8Array.from(e),Uint8Array.from(t),n))},t.publicKeyTweakMul=function(e,t,n){return r.from(a.publicKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t),n))},t.publicKeyCombine=function(e,t){var n=[];return e.forEach((function(e){n.push(Uint8Array.from(e))})),r.from(a.publicKeyCombine(n,t))},t.signatureNormalize=function(e){return r.from(a.signatureNormalize(Uint8Array.from(e)))},t.signatureExport=function(e){return r.from(a.signatureExport(Uint8Array.from(e)))},t.signatureImport=function(e){return r.from(a.signatureImport(Uint8Array.from(e)))},t.signatureImportLax=function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=o.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return i.signatureImport(t)},t.sign=function(e,t,n){if(null===n)throw new TypeError("options should be an Object");var i=void 0;if(n){if(i={},null===n.data)throw new TypeError("options.data should be a Buffer");if(n.data){if(32!=n.data.length)throw new RangeError("options.data length is invalid");i.data=new Uint8Array(n.data)}if(null===n.noncefn)throw new TypeError("options.noncefn should be a Function");n.noncefn&&(i.noncefn=function(e,t,a,i,o){var s=null!=a?r.from(a):null,c=null!=i?r.from(i):null,u=r.from("");return n.noncefn&&(u=n.noncefn(r.from(e),r.from(t),s,c,o)),new Uint8Array(u)})}var o=a.ecdsaSign(Uint8Array.from(e),Uint8Array.from(t),i);return{signature:r.from(o.signature),recovery:o.recid}},t.verify=function(e,t,n){return a.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),n)},t.recover=function(e,t,n,i){return r.from(a.ecdsaRecover(Uint8Array.from(t),n,Uint8Array.from(e),i))},t.ecdh=function(e,t){return r.from(a.ecdh(Uint8Array.from(e),Uint8Array.from(t),{}))},t.ecdhUnsafe=function(e,t,n){if(33!==e.length&&65!==e.length)throw new RangeError("public key length is invalid");if(32!==t.length)throw new RangeError("private key length is invalid");return r.from(i.ecdhUnsafe(Uint8Array.from(e),Uint8Array.from(t),n))}},61838:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var a=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),i=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(e,t,n){void 0===n&&(n=!0);var o=r.from(n?a:i);return e.copy(o,n?8:9),t.copy(o,n?181:214),o},t.privateKeyImport=function(e){var t=e.length,n=0;if(t2)return null;if(t<(n+=1)+r)return null;var a=e[n+r-1]|(r>1?e[n+r-2]<<8:0);return t<(n+=r)+a||t32||ta)return null;if(2!==e[i++])return null;var s=e[i++];if(128&s){if(i+(o=s-128)>a)return null;for(;o>0&&0===e[i];i+=1,o-=1);for(s=0;o>0;i+=1,o-=1)s=(s<<8)+e[i]}if(s>a-i)return null;var c=i;if(i+=s,2!==e[i++])return null;var u=e[i++];if(128&u){if(i+(o=u-128)>a)return null;for(;o>0&&0===e[i];i+=1,o-=1);for(u=0;o>0;i+=1,o-=1)u=(u<<8)+e[i]}if(u>a-i)return null;var f=i;for(i+=u;s>0&&0===e[c];s-=1,c+=1);if(s>32)return null;var d=e.slice(c,c+s);for(d.copy(t,32-d.length);u>0&&0===e[f];u-=1,f+=1);if(u>32)return null;var l=e.slice(f,f+u);return l.copy(n,32-l.length),{r:t,s:n}}},53299:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var a=n(42606),i=new(0,n(35730).ec)("secp256k1"),o=i.curve;t.privateKeyExport=function(e,t){void 0===t&&(t=!0);var n=new a(e);if(n.ucmp(o.n)>=0)throw new Error("couldn't export to DER format");var r=i.g.mul(n);return s(r.getX(),r.getY(),t)},t.privateKeyModInverse=function(e){var t=new a(e);if(t.ucmp(o.n)>=0||t.isZero())throw new Error("private key range is invalid");return t.invm(o.n).toArrayLike(r,"be",32)},t.signatureImport=function(e){var t=new a(e.r);t.ucmp(o.n)>=0&&(t=new a(0));var n=new a(e.s);return n.ucmp(o.n)>=0&&(n=new a(0)),r.concat([t.toArrayLike(r,"be",32),n.toArrayLike(r,"be",32)])},t.ecdhUnsafe=function(e,t,n){void 0===n&&(n=!0);var r=i.keyFromPublic(e),c=new a(t);if(c.ucmp(o.n)>=0||c.isZero())throw new Error("scalar was invalid (zero or overflow)");var u=r.pub.mul(c);return s(u.getX(),u.getY(),n)};var s=function(e,t,n){var a;return n?((a=r.alloc(33))[0]=t.isOdd()?3:2,e.toArrayLike(r,"be",32).copy(a,1)):((a=r.alloc(65))[0]=4,e.toArrayLike(r,"be",32).copy(a,1),t.toArrayLike(r,"be",32).copy(a,33)),a}},65996:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var a=n(4593),i=n(42606),o=n(18283),s=n(54360);function c(e,t){return t?e-(2*t+35):e-27}function u(e){return 0===e||1===e}t.ecsign=function(e,t,n){var r=a.sign(e,t),i=r.recovery;return{r:r.signature.slice(0,32),s:r.signature.slice(32,64),v:n?i+(2*n+35):i+27}},t.ecrecover=function(e,t,n,i,s){var f=r.concat([o.setLength(n,32),o.setLength(i,32)],64),d=c(t,s);if(!u(d))throw new Error("Invalid signature v value");var l=a.recover(e,f,d);return a.publicKeyConvert(l,!1).slice(1)},t.toRpcSig=function(e,t,n,a){if(!u(c(e,a)))throw new Error("Invalid signature v value");return o.bufferToHex(r.concat([o.setLengthLeft(t,32),o.setLengthLeft(n,32),o.toBuffer(e)]))},t.fromRpcSig=function(e){var t=o.toBuffer(e);if(65!==t.length)throw new Error("Invalid signature length");var n=t[64];return n<27&&(n+=27),{v:n,r:t.slice(0,32),s:t.slice(32,64)}},t.isValidSignature=function(e,t,n,r,a){void 0===r&&(r=!0);var o=new i("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new i("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==n.length)return!1;if(!u(c(e,a)))return!1;var f=new i(t),d=new i(n);return!(f.isZero()||f.gt(s)||d.isZero()||d.gt(s)||r&&1===d.cmp(o))},t.hashPersonalMessage=function(e){var t=r.from("Ethereum Signed Message:\n"+e.length.toString(),"utf-8");return s.keccak(r.concat([t,e]))}},84878:function(e,t){"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Wrong positive integer: ".concat(e))}function r(e){if("boolean"!=typeof e)throw new Error("Expected boolean, not ".concat(e))}function a(e){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&!n.includes(e.length))throw new TypeError("Expected Uint8Array of length ".concat(n,", not of length=").concat(e.length))}function i(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){a(e);var n=t.outputLen;if(e.lengthr-i&&(this.process(n,0),i=0);for(var o=i;o>a&i),s=Number(n&i),c=r?4:0,u=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+u,s,r)}(n,r-8,BigInt(8*this.length),a),this.process(n,0);var s=(0,u.createView)(e),f=this.outputLen;if(f%4)throw new Error("_sha2: outputLen should be aligned to 32bit");var d=f/4,l=this.get();if(d>l.length)throw new Error("_sha2: outputLen bigger than state");for(var p=0;p1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function i(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length),i=0;i>>0)+(r>>>0);return{h:e+n+(a/Math.pow(2,32)|0)|0,l:0|a}}t.fromBig=a,t.split=i,t.toBig=function(e,t){return BigInt(e>>>0)<>>0)},t.add=o;var s={fromBig:a,split:i,toBig:t.toBig,shrSH:function(e,t,n){return e>>>n},shrSL:function(e,t,n){return e<<32-n|t>>>n},rotrSH:function(e,t,n){return e>>>n|t<<32-n},rotrSL:function(e,t,n){return e<<32-n|t>>>n},rotrBH:function(e,t,n){return e<<64-n|t>>>n-32},rotrBL:function(e,t,n){return e>>>n-32|t<<64-n},rotr32H:function(e,t){return t},rotr32L:function(e,t){return e},rotlSH:function(e,t,n){return e<>>32-n},rotlSL:function(e,t,n){return t<>>32-n},rotlBH:function(e,t,n){return t<>>64-n},rotlBL:function(e,t,n){return e<>>64-n},add:o,add3L:function(e,t,n){return(e>>>0)+(t>>>0)+(n>>>0)},add3H:function(e,t,n,r){return t+n+r+(e/Math.pow(2,32)|0)|0},add4L:function(e,t,n,r){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)},add4H:function(e,t,n,r,a){return t+n+r+a+(e/Math.pow(2,32)|0)|0},add5H:function(e,t,n,r,a,i){return t+n+r+a+i+(e/Math.pow(2,32)|0)|0},add5L:function(e,t,n,r,a){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(a>>>0)}};t.default=s},77413:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},48018:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(17964).default,o=n(54790).default;Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=void 0;var s=n(84878),c=n(36771),u=function(e){i(n,e);var t=o(n);function n(e,a){var i;r(this,n),(i=t.call(this)).finished=!1,i.destroyed=!1,s.default.hash(e);var o=(0,c.toBytes)(a);if(i.iHash=e.create(),"function"!=typeof i.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");i.blockLen=i.iHash.blockLen,i.outputLen=i.iHash.outputLen;var u=i.blockLen,f=new Uint8Array(u);f.set(o.length>u?e.create().update(o).digest():o);for(var d=0;d= 1");var d=(0,s.toBytes)(t),l=(0,s.toBytes)(n),p=new Uint8Array(u),b=o.hmac.create(e,d),h=b._cloneInto().update(l);return{c:c,dkLen:u,asyncTick:f,DK:p,PRF:b,PRFSalt:h}}function u(e,t,n,r,a){return e.destroy(),t.destroy(),r&&r.destroy(),a.fill(0),n}function f(){return(f=a(r().mark((function e(t,n,a,i){var o,f,d,l,p,b,h,y,m,v,g,A,w,x;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=c(t,n,a,i),f=o.c,d=o.dkLen,l=o.asyncTick,p=o.DK,b=o.PRF,h=o.PRFSalt,m=new Uint8Array(4),v=(0,s.createView)(m),g=new Uint8Array(b.outputLen),A=r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=p.subarray(x,x+b.outputLen),v.setInt32(0,w,!1),(y=h._cloneInto(y)).update(m).digestInto(g),t.set(g.subarray(0,t.length)),e.next=6,(0,s.asyncLoop)(f-1,l,(function(e){b._cloneInto(y).update(g).digestInto(g);for(var n=0;n>>3,s=(0,c.rotr)(i,17)^(0,c.rotr)(i,19)^i>>>10;l[r]=s+l[r-7]+o+l[r-16]|0}for(var d,p=this.A,b=this.B,h=this.C,y=this.D,m=this.E,v=this.F,g=this.G,A=this.H,w=0;w<64;w++){var x=A+((0,c.rotr)(m,6)^(0,c.rotr)(m,11)^(0,c.rotr)(m,25))+((d=m)&v^~d&g)+f[w]+l[w]|0,_=((0,c.rotr)(p,2)^(0,c.rotr)(p,13)^(0,c.rotr)(p,22))+u(p,b,h)|0;A=g,g=v,v=m,m=y+x|0,y=h,h=b,b=p,p=x+_|0}p=p+this.A|0,b=b+this.B|0,h=h+this.C|0,y=y+this.D|0,m=m+this.E|0,v=v+this.F|0,g=g+this.G|0,A=A+this.H|0,this.set(p,b,h,y,m,v,g,A)}},{key:"roundClean",value:function(){l.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),n}(s.SHA2),b=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).A=-1056596264,e.B=914150663,e.C=812702999,e.D=-150054599,e.E=-4191439,e.F=1750603025,e.G=1694076839,e.H=-1090891868,e.outputLen=28,e}return a(n)}(p);t.sha256=(0,c.wrapConstructor)((function(){return new p})),t.sha224=(0,c.wrapConstructor)((function(){return new b}))},47319:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(17964).default,o=n(54790).default,s=n(10202).default;Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;var c=n(92801),u=n(52738),f=n(36771),d=s(u.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((function(e){return BigInt(e)}))),2),l=d[0],p=d[1],b=new Uint32Array(80),h=new Uint32Array(80),y=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this,128,64,16,!1)).Ah=1779033703,e.Al=-205731576,e.Bh=-1150833019,e.Bl=-2067093701,e.Ch=1013904242,e.Cl=-23791573,e.Dh=-1521486534,e.Dl=1595750129,e.Eh=1359893119,e.El=-1377402159,e.Fh=-1694144372,e.Fl=725511199,e.Gh=528734635,e.Gl=-79577749,e.Hh=1541459225,e.Hl=327033209,e}return a(n,[{key:"get",value:function(){return[this.Ah,this.Al,this.Bh,this.Bl,this.Ch,this.Cl,this.Dh,this.Dl,this.Eh,this.El,this.Fh,this.Fl,this.Gh,this.Gl,this.Hh,this.Hl]}},{key:"set",value:function(e,t,n,r,a,i,o,s,c,u,f,d,l,p,b,h){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|a,this.Cl=0|i,this.Dh=0|o,this.Dl=0|s,this.Eh=0|c,this.El=0|u,this.Fh=0|f,this.Fl=0|d,this.Gh=0|l,this.Gl=0|p,this.Hh=0|b,this.Hl=0|h}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)b[n]=e.getUint32(t),h[n]=e.getUint32(t+=4);for(var r=16;r<80;r++){var a=0|b[r-15],i=0|h[r-15],o=u.default.rotrSH(a,i,1)^u.default.rotrSH(a,i,8)^u.default.shrSH(a,i,7),s=u.default.rotrSL(a,i,1)^u.default.rotrSL(a,i,8)^u.default.shrSL(a,i,7),c=0|b[r-2],f=0|h[r-2],d=u.default.rotrSH(c,f,19)^u.default.rotrBH(c,f,61)^u.default.shrSH(c,f,6),y=u.default.rotrSL(c,f,19)^u.default.rotrBL(c,f,61)^u.default.shrSL(c,f,6),m=u.default.add4L(s,y,h[r-7],h[r-16]),v=u.default.add4H(m,o,d,b[r-7],b[r-16]);b[r]=0|v,h[r]=0|m}for(var g=this.Ah,A=this.Al,w=this.Bh,x=this.Bl,_=this.Ch,k=this.Cl,S=this.Dh,I=this.Dl,E=this.Eh,C=this.El,T=this.Fh,O=this.Fl,P=this.Gh,M=this.Gl,B=this.Hh,R=this.Hl,N=0;N<80;N++){var D=u.default.rotrSH(E,C,14)^u.default.rotrSH(E,C,18)^u.default.rotrBH(E,C,41),j=u.default.rotrSL(E,C,14)^u.default.rotrSL(E,C,18)^u.default.rotrBL(E,C,41),U=E&T^~E&P,L=C&O^~C&M,Z=u.default.add5L(R,j,L,p[N],h[N]),F=u.default.add5H(Z,B,D,U,l[N],b[N]),H=0|Z,z=u.default.rotrSH(g,A,28)^u.default.rotrBH(g,A,34)^u.default.rotrBH(g,A,39),q=u.default.rotrSL(g,A,28)^u.default.rotrBL(g,A,34)^u.default.rotrBL(g,A,39),Q=g&w^g&_^w&_,K=A&x^A&k^x&k;B=0|P,R=0|M,P=0|T,M=0|O,T=0|E,O=0|C;var V=u.default.add(0|S,0|I,0|F,0|H);E=V.h,C=V.l,S=0|_,I=0|k,_=0|w,k=0|x,w=0|g,x=0|A;var J=u.default.add3L(H,q,K);g=u.default.add3H(J,F,z,Q),A=0|J}var G=u.default.add(0|this.Ah,0|this.Al,0|g,0|A);g=G.h,A=G.l;var W=u.default.add(0|this.Bh,0|this.Bl,0|w,0|x);w=W.h,x=W.l;var Y=u.default.add(0|this.Ch,0|this.Cl,0|_,0|k);_=Y.h,k=Y.l;var X=u.default.add(0|this.Dh,0|this.Dl,0|S,0|I);S=X.h,I=X.l;var $=u.default.add(0|this.Eh,0|this.El,0|E,0|C);E=$.h,C=$.l;var ee=u.default.add(0|this.Fh,0|this.Fl,0|T,0|O);T=ee.h,O=ee.l;var te=u.default.add(0|this.Gh,0|this.Gl,0|P,0|M);P=te.h,M=te.l;var ne=u.default.add(0|this.Hh,0|this.Hl,0|B,0|R);B=ne.h,R=ne.l,this.set(g,A,w,x,_,k,S,I,E,C,T,O,P,M,B,R)}},{key:"roundClean",value:function(){b.fill(0),h.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),n}(c.SHA2);t.SHA512=y;var m=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).Ah=-1942145080,e.Al=424955298,e.Bh=1944164710,e.Bl=-1982016298,e.Ch=502970286,e.Cl=855612546,e.Dh=1738396948,e.Dl=1479516111,e.Eh=258812777,e.El=2077511080,e.Fh=2011393907,e.Fl=79989058,e.Gh=1067287976,e.Gl=1780299464,e.Hh=286451373,e.Hl=-1848208735,e.outputLen=28,e}return a(n)}(y),v=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).Ah=573645204,e.Al=-64227540,e.Bh=-1621794909,e.Bl=-934517566,e.Ch=596883563,e.Cl=1867755857,e.Dh=-1774684391,e.Dl=1497426621,e.Eh=-1775747358,e.El=-1467023389,e.Fh=-1101128155,e.Fl=1401305490,e.Gh=721525244,e.Gl=746961066,e.Hh=246885852,e.Hl=-2117784414,e.outputLen=32,e}return a(n)}(y),g=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).Ah=-876896931,e.Al=-1056596264,e.Bh=1654270250,e.Bl=914150663,e.Ch=-1856437926,e.Cl=812702999,e.Dh=355462360,e.Dl=-150054599,e.Eh=1731405415,e.El=-4191439,e.Fh=-1900787065,e.Fl=1750603025,e.Gh=-619958771,e.Gl=1694076839,e.Hh=1203062813,e.Hl=-1090891868,e.outputLen=48,e}return a(n)}(y);t.sha512=(0,f.wrapConstructor)((function(){return new y})),t.sha512_224=(0,f.wrapConstructor)((function(){return new m})),t.sha512_256=(0,f.wrapConstructor)((function(){return new v})),t.sha384=(0,f.wrapConstructor)((function(){return new g}))},36771:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(63333).default,o=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;var s=n(77413);if(t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");var c=Array.from({length:256},(function(e,t){return t.toString(16).padStart(2,"0")}));t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");for(var t="",n=0;n=0&&c0&&void 0!==arguments[0]?arguments[0]:32;if(s.crypto&&"function"==typeof s.crypto.getRandomValues)return s.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},99243:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Contracts=void 0;var i=function(){function e(t,n){r(this,e),this.context=t;for(var a=arguments.length,i=new Array(a>2?a-2:0),o=2;o0?n:0,"utf8"),t.readUInt32BE(0)}function p(e){var t=f.ethers.utils.arrayify(e);if(t.length>32)throw new Error("Too long");if(20!==t.length&&32!=t.length)throw new Error("bad input, expect address or bytes32");return f.ethers.utils.zeroPad(t,32)}t.chainIdToDomain=function(e){var t=d.get(e);if(!t)throw new Error("Cannot find corresponding Nomad domain for chainId ".concat(e));return t},t.getHexDomainFromString=function(e){return"0x"+l(e).toString(16)},t.getDomainFromString=l,t.canonizeId=p,t.evmId=function(e){var t=(0,u.arrayify)(e);if(32===t.length)return(0,u.hexlify)(t.slice(12,32));if(20===t.length)return(0,u.hexlify)(t);throw new Error("Invalid id length. expected 20 or 32. Got ".concat(t.length))},t.equalIds=function(e,t){var n=p(e),r=p(t);return n.every((function(e,t){return e===r[t]}))},t.delay=function(e){return new Promise((function(t){return setTimeout(t,e)}))},t.parseInt=function(e){return f.ethers.BigNumber.from(e).toNumber()};var b=function(e){o(n,e);var t=s(n);function n(e){return i(this,n),t.call(this,"Unreachable. You should not see this Error. Please file an issue at https://github.com/nomad-xyz/monorepo, including the full error output. Extra info: ".concat(null!=e?e:"none"))}return a(n)}(c(Error));t.UnreachableError=b;var h=function(e){o(n,e);var t=s(n);function n(e,r){var a;return i(this,n),(a=t.call(this,r)).provider=e,a}return a(n)}(c(Error));t.WithContext=h;var y=function(e){o(n,e);var t=s(n);function n(e,r){var a;return i(this,n),(a=t.call(this,e,"Attempted to access an unknown domain: ".concat(r,".\nHint: have you called `context.registerDomain(...)` yet?"))).name="UnknownDomainError",a.domain=r,a}return a(n)}(h);t.UnknownDomainError=y;var m=function(e){o(n,e);var t=s(n);function n(e,r){var a;i(this,n);var o=e.resolveDomainName(r),s=e.resolveDomain(r);return(a=t.call(this,e,"Missing provider for domain: ".concat(s," : ").concat(o,".\nHint: Have you called `context.registerProvider(").concat(r,", provider)` yet?"))).name="NoProviderError",a.domain=r,a.domainName=o,a.domainNumber=s,a}return a(n)}(h);t.NoProviderError=m},59818:function(e,t,n){"use strict";n.r(t),n.d(t,{ACCOUNT_DISCRIMINATOR_SIZE:function(){return ua},AccountClient:function(){return Yi},AnchorError:function(){return Vr},AnchorProvider:function(){return Br},BN:function(){return _()},BorshAccountsCoder:function(){return fa},BorshCoder:function(){return ma},BorshEventCoder:function(){return da},BorshInstructionCoder:function(){return aa},BorshStateCoder:function(){return pa},EventManager:function(){return to},EventParser:function(){return no},IdlError:function(){return Qr},LangErrorCode:function(){return Wr},LangErrorMessage:function(){return Yr},MethodsBuilderFactory:function(){return fo},Native:function(){return So},Program:function(){return po},ProgramError:function(){return Jr},ProgramErrorStack:function(){return Kr},Spl:function(){return xo},SplTokenCoder:function(){return si},StateClient:function(){return Gi},SystemCoder:function(){return xi},eventDiscriminator:function(){return la},getProvider:function(){return Lr},parseIdlErrors:function(){return Wn},setProvider:function(){return Ur},splitArgsAndCtx:function(){return Qi},stateDiscriminator:function(){return ba},toInstruction:function(){return Yn},translateAddress:function(){return $n},translateError:function(){return Gr},utils:function(){return zi},validateAccounts:function(){return Xn},web3:function(){return w}});var r=n(78283),a=n(70886),i=n(24593),o=n(53755),s=n(9189),c=n(23680),u=n(24611),f=n(745),d=n(19677),l=n(19961),p=n(29382),b=n(59900),h=n(47061),y=n(14771),m=n(24269),v=n(38114),g=n(17204),A=n(62332),w=n(83702),x=n(7134),_=n.n(x),k=n(6506),S=n.n(k),I=n(44473),E=n(7720),C=n.n(E),T=n(25748),O=n(80725);function P(e){for(var t=e.length;--t>=0;)e[t]=0}var M=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),B=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),R=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),N=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),D=new Array(576);P(D);var j=new Array(60);P(j);var U=new Array(512);P(U);var L=new Array(256);P(L);var Z=new Array(29);P(Z);var F,H,z,q=new Array(30);function Q(e,t,n,r,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=a,this.has_stree=e&&e.length}function K(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}P(q);var V=function(e){return e<256?U[e]:U[256+(e>>>7)]},J=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},G=function(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1},X=function(e,t,n){var r,a,i=new Array(16),o=0;for(r=1;r<=15;r++)o=o+n[r-1]<<1,i[r]=o;for(a=0;a<=t;a++){var s=e[2*a+1];0!==s&&(e[2*a]=Y(i[s]++,s))}},$=function(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},ee=function(e){e.bi_valid>8?J(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},te=function(e,t,n,r){var a=2*t,i=2*n;return e[a]>1;n>=1;n--)ne(e,i,n);a=c;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ne(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*a]=i[2*n]+i[2*r],e.depth[a]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=a,e.heap[1]=a++,ne(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,a,i,o,s,c=t.dyn_tree,u=t.max_code,f=t.stat_desc.static_tree,d=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,b=t.stat_desc.max_length,h=0;for(i=0;i<=15;i++)e.bl_count[i]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(i=c[2*c[2*(r=e.heap[n])+1]+1]+1)>b&&(i=b,h++),c[2*r+1]=i,r>u||(e.bl_count[i]++,o=0,r>=p&&(o=l[r-p]),s=c[2*r],e.opt_len+=s*(i+o),d&&(e.static_len+=s*(f[2*r+1]+o)));if(0!==h){do{for(i=b-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[b]--,h-=2}while(h>0);for(i=b;0!==i;i--)for(r=e.bl_count[i];0!==r;)(a=e.heap[--n])>u||(c[2*a+1]!==i&&(e.opt_len+=(i-c[2*a+1])*c[2*a],c[2*a+1]=i),r--)}}(e,t),X(i,u,e.bl_count)},ie=function(e,t,n){var r,a,i=-1,o=t[1],s=0,c=7,u=4;for(0===o&&(c=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)a=o,o=t[2*(r+1)+1],++s>=7;r<30;r++)for(q[r]=a<<7,e=0;e<1<0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),ae(e,e.l_desc),ae(e,e.d_desc),o=function(e){var t;for(ie(e,e.dyn_ltree,e.l_desc.max_code),ie(e,e.dyn_dtree,e.d_desc.max_code),ae(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*N[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=a&&(a=i)):a=i=n+5,n+4<=a&&-1!==t?ce(e,t,n,r):4===e.strategy||i===a?(G(e,2+(r?1:0),3),re(e,D,j)):(G(e,4+(r?1:0),3),function(e,t,n,r){var a;for(G(e,t-257,5),G(e,n-1,5),G(e,r-4,4),a=0;a>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(L[n]+256+1)]++,e.dyn_dtree[2*V(t)]++),e.sym_next===e.sym_end},pe=function(e){G(e,2,3),W(e,256,D),function(e){16===e.bi_valid?(J(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)},be=function(e,t,n,r){for(var a=65535&e|0,i=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{i=i+(a=a+t[r++]|0)|0}while(--o);a%=65521,i%=65521}return a|i<<16|0},he=new Uint32Array(function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}()),ye=function(e,t,n,r){var a=he,i=r+n;e^=-1;for(var o=r;o>>8^a[255&(e^t[o])];return-1^e},me={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ve={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},ge=ue,Ae=fe,we=de,xe=le,_e=pe,ke=ve.Z_NO_FLUSH,Se=ve.Z_PARTIAL_FLUSH,Ie=ve.Z_FULL_FLUSH,Ee=ve.Z_FINISH,Ce=ve.Z_BLOCK,Te=ve.Z_OK,Oe=ve.Z_STREAM_END,Pe=ve.Z_STREAM_ERROR,Me=ve.Z_DATA_ERROR,Be=ve.Z_BUF_ERROR,Re=ve.Z_DEFAULT_COMPRESSION,Ne=ve.Z_FILTERED,De=ve.Z_HUFFMAN_ONLY,je=ve.Z_RLE,Ue=ve.Z_FIXED,Le=ve.Z_DEFAULT_STRATEGY,Ze=ve.Z_UNKNOWN,Fe=ve.Z_DEFLATED,He=258,ze=262,qe=42,Qe=113,Ke=666,Ve=function(e,t){return e.msg=me[t],t},Je=function(e){return 2*e-(e>4?9:0)},Ge=function(e){for(var t=e.length;--t>=0;)e[t]=0},We=function(e){var t,n,r,a=e.w_size;r=t=e.hash_size;do{n=e.head[--r],e.head[r]=n>=a?n-a:0}while(--t);r=t=a;do{n=e.prev[--r],e.prev[r]=n>=a?n-a:0}while(--t)},Ye=function(e,t,n){return(t<e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},$e=function(e,t){we(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Xe(e.strm)},et=function(e,t){e.pending_buf[e.pending++]=t},tt=function(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},nt=function(e,t,n,r){var a=e.avail_in;return a>r&&(a=r),0===a?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),n),1===e.state.wrap?e.adler=be(e.adler,t,a,n):2===e.state.wrap&&(e.adler=ye(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)},rt=function(e,t){var n,r,a=e.max_chain_length,i=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-ze?e.strstart-(e.w_size-ze):0,u=e.window,f=e.w_mask,d=e.prev,l=e.strstart+He,p=u[i+o-1],b=u[i+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+o]===b&&u[n+o-1]===p&&u[n]===u[i]&&u[++n]===u[i+1]){i+=2,n++;do{}while(u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&io){if(e.match_start=t,o=r,r>=s)break;p=u[i+o-1],b=u[i+o]}}}while((t=d[t&f])>c&&0!=--a);return o<=e.lookahead?o:e.lookahead},at=function(e){var t,n,r,a=e.w_size;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=a+(a-ze)&&(e.window.set(e.window.subarray(a,a+a-n),0),e.match_start-=a,e.strstart-=a,e.block_start-=a,e.insert>e.strstart&&(e.insert=e.strstart),We(e),n+=a),0===e.strm.avail_in)break;if(t=nt(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=t,e.lookahead+e.insert>=3)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=Ye(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=Ye(e,e.ins_h,e.window[r+3-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookaheade.w_size?e.w_size:e.pending_buf_size-5,o=0,s=e.strm.avail_in;do{if(n=65535,a=e.bi_valid+42>>3,e.strm.avail_out(r=e.strstart-e.block_start)+e.strm.avail_in&&(n=r+e.strm.avail_in),n>a&&(n=a),n>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Xe(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(nt(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===o);return(s-=e.strm.avail_in)&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_watera&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(nt(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water>3,i=(a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a)>e.w_size?e.w_size:a,((r=e.strstart-e.block_start)>=i||(r||t===Ee)&&t!==ke&&0===e.strm.avail_in&&r<=a)&&(n=r>a?a:r,o=t===Ee&&0===e.strm.avail_in&&n===r?1:0,Ae(e,e.block_start,n,o),e.block_start+=n,Xe(e.strm)),o?3:1)},ot=function(e,t){for(var n,r;;){if(e.lookahead=3&&(e.ins_h=Ye(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-ze&&(e.match_length=rt(e,n)),e.match_length>=3)if(r=xe(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=Ye(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Ye(e,e.ins_h,e.window[e.strstart+1]);else r=xe(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&($e(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===Ee?($e(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&($e(e,!1),0===e.strm.avail_out)?1:2},st=function(e,t){for(var n,r,a;;){if(e.lookahead=3&&(e.ins_h=Ye(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-3,r=xe(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=Ye(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&($e(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=xe(e,0,e.window[e.strstart-1]))&&$e(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=xe(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===Ee?($e(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&($e(e,!1),0===e.strm.avail_out)?1:2};function ct(e,t,n,r,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=a}var ut=[new ct(0,0,0,0,it),new ct(4,4,8,4,ot),new ct(4,5,16,8,ot),new ct(4,6,32,32,ot),new ct(4,4,16,16,st),new ct(8,16,32,32,st),new ct(8,16,128,128,st),new ct(8,32,128,256,st),new ct(32,128,258,1024,st),new ct(32,258,258,4096,st)];function ft(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Fe,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Ge(this.dyn_ltree),Ge(this.dyn_dtree),Ge(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Ge(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Ge(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var dt=function(e){if(!e)return 1;var t=e.state;return!t||t.strm!==e||t.status!==qe&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==Qe&&t.status!==Ke?1:0},lt=function(e){if(dt(e))return Ve(e,Pe);e.total_in=e.total_out=0,e.data_type=Ze;var t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?qe:Qe,e.adler=2===t.wrap?0:1,t.last_flush=-2,ge(t),Te},pt=function(e){var t,n=lt(e);return n===Te&&((t=e.state).window_size=2*t.w_size,Ge(t.head),t.max_lazy_match=ut[t.level].max_lazy,t.good_match=ut[t.level].good_length,t.nice_match=ut[t.level].nice_length,t.max_chain_length=ut[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n},bt=function(e,t,n,r,a,i){if(!e)return Pe;var o=1;if(t===Re&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),a<1||a>9||n!==Fe||r<8||r>15||t<0||t>9||i<0||i>Ue||8===r&&1!==o)return Ve(e,Pe);8===r&&(r=9);var s=new ft;return e.state=s,s.strm=e,s.status=qe,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<Ce||t<0)return e?Ve(e,Pe):Pe;var n=e.state;if(!e.output||0!==e.avail_in&&!e.input||n.status===Ke&&t!==Ee)return Ve(e,0===e.avail_out?Be:Pe);var r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(Xe(e),0===e.avail_out)return n.last_flush=-1,Te}else if(0===e.avail_in&&Je(t)<=Je(r)&&t!==Ee)return Ve(e,Be);if(n.status===Ke&&0!==e.avail_in)return Ve(e,Be);if(n.status===qe&&0===n.wrap&&(n.status=Qe),n.status===qe){var a=Fe+(n.w_bits-8<<4)<<8;if(a|=(n.strategy>=De||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),tt(n,a+=31-a%31),0!==n.strstart&&(tt(n,e.adler>>>16),tt(n,65535&e.adler)),e.adler=1,n.status=Qe,Xe(e),0!==n.pending)return n.last_flush=-1,Te}if(57===n.status)if(e.adler=0,et(n,31),et(n,139),et(n,8),n.gzhead)et(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),et(n,255&n.gzhead.time),et(n,n.gzhead.time>>8&255),et(n,n.gzhead.time>>16&255),et(n,n.gzhead.time>>24&255),et(n,9===n.level?2:n.strategy>=De||n.level<2?4:0),et(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(et(n,255&n.gzhead.extra.length),et(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=ye(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(et(n,0),et(n,0),et(n,0),et(n,0),et(n,0),et(n,9===n.level?2:n.strategy>=De||n.level<2?4:0),et(n,3),n.status=Qe,Xe(e),0!==n.pending)return n.last_flush=-1,Te;if(69===n.status){if(n.gzhead.extra){for(var i=n.pending,o=(65535&n.gzhead.extra.length)-n.gzindex;n.pending+o>n.pending_buf_size;){var s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=s,Xe(e),0!==n.pending)return n.last_flush=-1,Te;i=0,o-=s}var c=new Uint8Array(n.gzhead.extra);n.pending_buf.set(c.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>i&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){var u,f=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>f&&(e.adler=ye(e.adler,n.pending_buf,n.pending-f,f)),Xe(e),0!==n.pending)return n.last_flush=-1,Te;f=0}u=n.gzindexf&&(e.adler=ye(e.adler,n.pending_buf,n.pending-f,f)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){var d,l=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>l&&(e.adler=ye(e.adler,n.pending_buf,n.pending-l,l)),Xe(e),0!==n.pending)return n.last_flush=-1,Te;l=0}d=n.gzindexl&&(e.adler=ye(e.adler,n.pending_buf,n.pending-l,l))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Xe(e),0!==n.pending))return n.last_flush=-1,Te;et(n,255&e.adler),et(n,e.adler>>8&255),e.adler=0}if(n.status=Qe,Xe(e),0!==n.pending)return n.last_flush=-1,Te}if(0!==e.avail_in||0!==n.lookahead||t!==ke&&n.status!==Ke){var p=0===n.level?it(n,t):n.strategy===De?function(e,t){for(var n;;){if(0===e.lookahead&&(at(e),0===e.lookahead)){if(t===ke)return 1;break}if(e.match_length=0,n=xe(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&($e(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Ee?($e(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&($e(e,!1),0===e.strm.avail_out)?1:2}(n,t):n.strategy===je?function(e,t){for(var n,r,a,i,o=e.window;;){if(e.lookahead<=He){if(at(e),e.lookahead<=He&&t===ke)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=o[a=e.strstart-1])===o[++a]&&r===o[++a]&&r===o[++a]){i=e.strstart+He;do{}while(r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=xe(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=xe(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&($e(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Ee?($e(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&($e(e,!1),0===e.strm.avail_out)?1:2}(n,t):ut[n.level].func(n,t);if(3!==p&&4!==p||(n.status=Ke),1===p||3===p)return 0===e.avail_out&&(n.last_flush=-1),Te;if(2===p&&(t===Se?_e(n):t!==Ce&&(Ae(n,0,0,!1),t===Ie&&(Ge(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Xe(e),0===e.avail_out))return n.last_flush=-1,Te}return t!==Ee?Te:n.wrap<=0?Oe:(2===n.wrap?(et(n,255&e.adler),et(n,e.adler>>8&255),et(n,e.adler>>16&255),et(n,e.adler>>24&255),et(n,255&e.total_in),et(n,e.total_in>>8&255),et(n,e.total_in>>16&255),et(n,e.total_in>>24&255)):(tt(n,e.adler>>>16),tt(n,65535&e.adler)),Xe(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?Te:Oe)},deflateEnd:function(e){if(dt(e))return Pe;var t=e.state.status;return e.state=null,t===Qe?Ve(e,Me):Te},deflateSetDictionary:function(e,t){var n=t.length;if(dt(e))return Pe;var r=e.state,a=r.wrap;if(2===a||1===a&&r.status!==qe||r.lookahead)return Pe;if(1===a&&(e.adler=be(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===a&&(Ge(r.head),r.strstart=0,r.block_start=0,r.insert=0);var i=new Uint8Array(r.w_size);i.set(t.subarray(n-r.w_size,n),0),t=i,n=r.w_size}var o=e.avail_in,s=e.next_in,c=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,at(r);r.lookahead>=3;){var u=r.strstart,f=r.lookahead-2;do{r.ins_h=Ye(r,r.ins_h,r.window[u+3-1]),r.prev[u&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=u,u++}while(--f);r.strstart=u,r.lookahead=2,at(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=s,e.input=c,e.avail_in=o,r.wrap=a,Te},deflateInfo:"pako deflate (from Nodeca project)"},yt=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},mt={assign:function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)yt(n,r)&&(e[r]=n[r])}}return e},flattenChunks:function(e){for(var t=0,n=0,r=e.length;n=252?6:At>=248?5:At>=240?4:At>=224?3:At>=192?2:1;gt[254]=gt[254]=1;var wt={string2buf:function(e){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);var t,n,r,a,i,o=e.length,s=0;for(a=0;a>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t},buf2string:function(e,t){var n,r,a=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));var i=new Array(2*a);for(r=0,n=0;n4)i[r++]=65533,n+=s-1;else{for(o&=2===s?31:3===s?15:7;s>1&&n1?i[r++]=65533:o<65536?i[r++]=o:(o-=65536,i[r++]=55296|o>>10&1023,i[r++]=56320|1023&o)}}}return function(e,t){if(t<65534&&e.subarray&&vt)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));for(var n="",r=0;re.length&&(t=e.length);for(var n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+gt[e[n]]>t?n:t}},xt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},_t=Object.prototype.toString,kt=ve.Z_NO_FLUSH,St=ve.Z_SYNC_FLUSH,It=ve.Z_FULL_FLUSH,Et=ve.Z_FINISH,Ct=ve.Z_OK,Tt=ve.Z_STREAM_END,Ot=ve.Z_DEFAULT_COMPRESSION,Pt=ve.Z_DEFAULT_STRATEGY,Mt=ve.Z_DEFLATED;function Bt(e){this.options=mt.assign({level:Ot,method:Mt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Pt},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xt,this.strm.avail_out=0;var n=ht.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Ct)throw new Error(me[n]);if(t.header&&ht.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r="string"==typeof t.dictionary?wt.string2buf(t.dictionary):"[object ArrayBuffer]"===_t.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=ht.deflateSetDictionary(this.strm,r))!==Ct)throw new Error(me[n]);this._dict_set=!0}}Bt.prototype.push=function(e,t){var n,r,a=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?Et:kt,"string"==typeof e?a.input=wt.string2buf(e):"[object ArrayBuffer]"===_t.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(r===St||r===It)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if((n=ht.deflate(a,r))===Tt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=ht.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Ct;if(0!==a.avail_out){if(r>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Bt.prototype.onData=function(e){this.chunks.push(e)},Bt.prototype.onEnd=function(e){e===Ct&&(this.result=mt.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Rt=16209,Nt=function(e,t){var n,r,a,i,o,s,c,u,f,d,l,p,b,h,y,m,v,g,A,w,x,_,k,S,I=e.state;n=e.next_in,k=e.input,r=n+(e.avail_in-5),a=e.next_out,S=e.output,i=a-(t-e.avail_out),o=a+(e.avail_out-257),s=I.dmax,c=I.wsize,u=I.whave,f=I.wnext,d=I.window,l=I.hold,p=I.bits,b=I.lencode,h=I.distcode,y=(1<>>=g=v>>>24,p-=g,0==(g=v>>>16&255))S[a++]=65535&v;else{if(!(16&g)){if(0==(64&g)){v=b[(65535&v)+(l&(1<>>=g,p-=g),p<15&&(l+=k[n++]<>>=g=v>>>24,p-=g,!(16&(g=v>>>16&255))){if(0==(64&g)){v=h[(65535&v)+(l&(1<s){e.msg="invalid distance too far back",I.mode=Rt;break e}if(l>>>=g,p-=g,w>(g=a-i)){if((g=w-g)>u&&I.sane){e.msg="invalid distance too far back",I.mode=Rt;break e}if(x=0,_=d,0===f){if(x+=c-g,g2;)S[a++]=_[x++],S[a++]=_[x++],S[a++]=_[x++],A-=3;A&&(S[a++]=_[x++],A>1&&(S[a++]=_[x++]))}else{x=a-w;do{S[a++]=S[x++],S[a++]=S[x++],S[a++]=S[x++],A-=3}while(A>2);A&&(S[a++]=S[x++],A>1&&(S[a++]=S[x++]))}break}}break}}while(n>3,l&=(1<<(p-=A<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n=1&&0===T[w];w--);if(x>w&&(x=w),0===w)return a[i++]=20971520,a[i++]=20971520,s.bits=1,0;for(A=1;A0&&(0===e||1!==w))return-1;for(O[1]=0,v=1;v<15;v++)O[v+1]=O[v]+T[v];for(g=0;g852||2===e&&I>592)return 1;for(;;){b=v-k,o[g]+1=p?(h=P[o[g]-p],y=C[o[g]-p]):(h=96,y=0),c=1<>k)+(u-=c)]=b<<24|h<<16|y|0}while(0!==u);for(c=1<>=1;if(0!==c?(E&=c-1,E+=c):E=0,g++,0==--T[v]){if(v===w)break;v=t[n+o[g]]}if(v>x&&(E&d)!==f){for(0===k&&(k=x),l+=A,S=1<<(_=v-k);_+k852||2===e&&I>592)return 1;a[f=E&d]=x<<24|_<<16|l-i|0}}return 0!==E&&(a[l+E]=v-k<<24|64<<16|0),s.bits=x,0},Ft=ve.Z_FINISH,Ht=ve.Z_BLOCK,zt=ve.Z_TREES,qt=ve.Z_OK,Qt=ve.Z_STREAM_END,Kt=ve.Z_NEED_DICT,Vt=ve.Z_STREAM_ERROR,Jt=ve.Z_DATA_ERROR,Gt=ve.Z_MEM_ERROR,Wt=ve.Z_BUF_ERROR,Yt=ve.Z_DEFLATED,Xt=16180,$t=16190,en=16191,tn=16192,nn=16194,rn=16199,an=16200,on=16206,sn=16209,cn=function(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)};function un(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var fn,dn,ln=function(e){if(!e)return 1;var t=e.state;return!t||t.strm!==e||t.mode16211?1:0},pn=function(e){if(ln(e))return Vt;var t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=Xt,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,qt},bn=function(e){if(ln(e))return Vt;var t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,pn(e)},hn=function(e,t){var n;if(ln(e))return Vt;var r=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Vt:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,bn(e))},yn=function(e,t){if(!e)return Vt;var n=new un;e.state=n,n.strm=e,n.window=null,n.mode=Xt;var r=hn(e,t);return r!==qt&&(e.state=null),r},mn=!0,vn=function(e){if(mn){fn=new Int32Array(512),dn=new Int32Array(32);for(var t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Zt(1,e.lens,0,288,fn,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Zt(2,e.lens,0,32,dn,0,e.work,{bits:5}),mn=!1}e.lencode=fn,e.lenbits=9,e.distcode=dn,e.distbits=5},gn=function(e,t,n,r){var a,i=e.state;return null===i.window&&(i.wsize=1<=i.wsize?(i.window.set(t.subarray(n-i.wsize,n),0),i.wnext=0,i.whave=i.wsize):((a=i.wsize-i.wnext)>r&&(a=r),i.window.set(t.subarray(n-r,n-r+a),i.wnext),(r-=a)?(i.window.set(t.subarray(n-r,n),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave>>8&255,n.check=ye(n.check,E,2,0),u=0,f=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=sn;break}if((15&u)!==Yt){e.msg="unknown compression method",n.mode=sn;break}if(f-=4,x=8+(15&(u>>>=4)),0===n.wbits&&(n.wbits=x),x>15||x>n.wbits){e.msg="invalid window size",n.mode=sn;break}n.dmax=1<>8&1),512&n.flags&&4&n.wrap&&(E[0]=255&u,E[1]=u>>>8&255,n.check=ye(n.check,E,2,0)),u=0,f=0,n.mode=16182;case 16182:for(;f<32;){if(0===s)break e;s--,u+=r[i++]<>>8&255,E[2]=u>>>16&255,E[3]=u>>>24&255,n.check=ye(n.check,E,4,0)),u=0,f=0,n.mode=16183;case 16183:for(;f<16;){if(0===s)break e;s--,u+=r[i++]<>8),512&n.flags&&4&n.wrap&&(E[0]=255&u,E[1]=u>>>8&255,n.check=ye(n.check,E,2,0)),u=0,f=0,n.mode=16184;case 16184:if(1024&n.flags){for(;f<16;){if(0===s)break e;s--,u+=r[i++]<>>8&255,n.check=ye(n.check,E,2,0)),u=0,f=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&((p=n.length)>s&&(p=s),p&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(i,i+p),x)),512&n.flags&&4&n.wrap&&(n.check=ye(n.check,r,p,i)),s-=p,i+=p,n.length-=p),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===s)break e;p=0;do{x=r[i+p++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&p>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=en;break;case 16189:for(;f<32;){if(0===s)break e;s--,u+=r[i++]<>>=7&f,f-=7&f,n.mode=on;break}for(;f<3;){if(0===s)break e;s--,u+=r[i++]<>>=1)){case 0:n.mode=16193;break;case 1:if(vn(n),n.mode=rn,t===zt){u>>>=2,f-=2;break e}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=sn}u>>>=2,f-=2;break;case 16193:for(u>>>=7&f,f-=7&f;f<32;){if(0===s)break e;s--,u+=r[i++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=sn;break}if(n.length=65535&u,u=0,f=0,n.mode=nn,t===zt)break e;case nn:n.mode=16195;case 16195:if(p=n.length){if(p>s&&(p=s),p>c&&(p=c),0===p)break e;a.set(r.subarray(i,i+p),o),s-=p,i+=p,c-=p,o+=p,n.length-=p;break}n.mode=en;break;case 16196:for(;f<14;){if(0===s)break e;s--,u+=r[i++]<>>=5,f-=5,n.ndist=1+(31&u),u>>>=5,f-=5,n.ncode=4+(15&u),u>>>=4,f-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=sn;break}n.have=0,n.mode=16197;case 16197:for(;n.have>>=3,f-=3}for(;n.have<19;)n.lens[C[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,k={bits:n.lenbits},_=Zt(0,n.lens,0,19,n.lencode,0,n.work,k),n.lenbits=k.bits,_){e.msg="invalid code lengths set",n.mode=sn;break}n.have=0,n.mode=16198;case 16198:for(;n.have>>16&255,v=65535&I,!((y=I>>>24)<=f);){if(0===s)break e;s--,u+=r[i++]<>>=y,f-=y,n.lens[n.have++]=v;else{if(16===v){for(S=y+2;f>>=y,f-=y,0===n.have){e.msg="invalid bit length repeat",n.mode=sn;break}x=n.lens[n.have-1],p=3+(3&u),u>>>=2,f-=2}else if(17===v){for(S=y+3;f>>=y)),u>>>=3,f-=3}else{for(S=y+7;f>>=y)),u>>>=7,f-=7}if(n.have+p>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=sn;break}for(;p--;)n.lens[n.have++]=x}}if(n.mode===sn)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=sn;break}if(n.lenbits=9,k={bits:n.lenbits},_=Zt(1,n.lens,0,n.nlen,n.lencode,0,n.work,k),n.lenbits=k.bits,_){e.msg="invalid literal/lengths set",n.mode=sn;break}if(n.distbits=6,n.distcode=n.distdyn,k={bits:n.distbits},_=Zt(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,k),n.distbits=k.bits,_){e.msg="invalid distances set",n.mode=sn;break}if(n.mode=rn,t===zt)break e;case rn:n.mode=an;case an:if(s>=6&&c>=258){e.next_out=o,e.avail_out=c,e.next_in=i,e.avail_in=s,n.hold=u,n.bits=f,Nt(e,l),o=e.next_out,a=e.output,c=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,u=n.hold,f=n.bits,n.mode===en&&(n.back=-1);break}for(n.back=0;m=(I=n.lencode[u&(1<>>16&255,v=65535&I,!((y=I>>>24)<=f);){if(0===s)break e;s--,u+=r[i++]<>g)])>>>16&255,v=65535&I,!(g+(y=I>>>24)<=f);){if(0===s)break e;s--,u+=r[i++]<>>=g,f-=g,n.back+=g}if(u>>>=y,f-=y,n.back+=y,n.length=v,0===m){n.mode=16205;break}if(32&m){n.back=-1,n.mode=en;break}if(64&m){e.msg="invalid literal/length code",n.mode=sn;break}n.extra=15&m,n.mode=16201;case 16201:if(n.extra){for(S=n.extra;f>>=n.extra,f-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;m=(I=n.distcode[u&(1<>>16&255,v=65535&I,!((y=I>>>24)<=f);){if(0===s)break e;s--,u+=r[i++]<>g)])>>>16&255,v=65535&I,!(g+(y=I>>>24)<=f);){if(0===s)break e;s--,u+=r[i++]<>>=g,f-=g,n.back+=g}if(u>>>=y,f-=y,n.back+=y,64&m){e.msg="invalid distance code",n.mode=sn;break}n.offset=v,n.extra=15&m,n.mode=16203;case 16203:if(n.extra){for(S=n.extra;f>>=n.extra,f-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=sn;break}n.mode=16204;case 16204:if(0===c)break e;if(p=l-c,n.offset>p){if((p=n.offset-p)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=sn;break}p>n.wnext?(p-=n.wnext,b=n.wsize-p):b=n.wnext-p,p>n.length&&(p=n.length),h=n.window}else h=a,b=o-n.offset,p=n.length;p>c&&(p=c),c-=p,n.length-=p;do{a[o++]=h[b++]}while(--p);0===n.length&&(n.mode=an);break;case 16205:if(0===c)break e;a[o++]=n.length,c--,n.mode=an;break;case on:if(n.wrap){for(;f<32;){if(0===s)break e;s--,u|=r[i++]<=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xt,this.strm.avail_out=0;var n=An.inflateInit2(this.strm,t.windowBits);if(n!==Sn)throw new Error(me[n]);if(this.header=new wn,An.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=wt.string2buf(t.dictionary):"[object ArrayBuffer]"===xn.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=An.inflateSetDictionary(this.strm,t.dictionary))!==Sn))throw new Error(me[n])}function Mn(e,t){var n=new Pn(t);if(n.push(e),n.err)throw n.msg||me[n.err];return n.result}Pn.prototype.push=function(e,t){var n,r,a,i=this.strm,o=this.options.chunkSize,s=this.options.dictionary;if(this.ended)return!1;for(r=t===~~t?t:!0===t?kn:_n,"[object ArrayBuffer]"===xn.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(n=An.inflate(i,r))===En&&s&&((n=An.inflateSetDictionary(i,s))===Sn?n=An.inflate(i,r):n===Tn&&(n=En));i.avail_in>0&&n===In&&i.state.wrap>0&&0!==e[i.next_in];)An.inflateReset(i),n=An.inflate(i,r);switch(n){case Cn:case Tn:case En:case On:return this.onEnd(n),this.ended=!0,!1}if(a=i.avail_out,i.next_out&&(0===i.avail_out||n===In))if("string"===this.options.to){var c=wt.utf8border(i.output,i.next_out),u=i.next_out-c,f=wt.buf2string(i.output,c);i.next_out=u,i.avail_out=o-u,u&&i.output.set(i.output.subarray(c,c+u),0),this.onData(f)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(n!==Sn||0!==a){if(n===In)return n=An.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,!0;if(0===i.avail_in)break}}return!0},Pn.prototype.onData=function(e){this.chunks.push(e)},Pn.prototype.onEnd=function(e){e===Sn&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=mt.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Bn=Mn,Rn=n(49277),Nn=n.n(Rn),Dn=n(60285),jn=n(62332).Buffer,Un=["message"],Ln=(0,u.Z)().mark(ar),Zn=(0,u.Z)().mark(ir),Fn=Object.freeze({__proto__:null,encode:function(e){return e.reduce((function(e,t){return e+t.toString(16).padStart(2,"0")}),"0x")},decode:function(e){0===e.indexOf("0x")&&(e=e.substr(2)),e.length%2==1&&(e="0"+e);var t=e.match(/.{2}/g);return null===t?A.Buffer.from([]):A.Buffer.from(t.map((function(e){return parseInt(e,16)})))}});function Hn(e){return new TextDecoder("utf-8").decode(e)}function zn(e){return(new TextEncoder).encode(e)}var qn=Object.freeze({__proto__:null,decode:Hn,encode:zn});function Qn(e){return S().encode(e)}var Kn=Object.freeze({__proto__:null,encode:Qn,decode:function(e){return S().decode(e)}});function Vn(e){return A.Buffer.from(I.toByteArray(e))}var Jn=Object.freeze({__proto__:null,encode:function(e){return I.fromByteArray(e)},decode:Vn}),Gn=Object.freeze({__proto__:null,hex:Fn,utf8:qn,bs58:Kn,base64:Jn});function Wn(e){var t=new Map;return e.errors&&e.errors.forEach((function(e){var n,r=null!==(n=e.msg)&&void 0!==n?n:e.name;t.set(e.code,r)})),t}function Yn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){if("accounts"in e)Xn(e.accounts,t[e.name]);else if(void 0===t[e.name])throw new Error("Invalid arguments: ".concat(e.name," not provided."))}))}function $n(e){return e instanceof w.PublicKey?e:new w.PublicKey(e)}var er=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r){var a,i;(0,h.Z)(this,n);var o=e.message,s=(0,p.Z)(e,Un),c=e.path;return(a=t.call(this,0===c.length?o:"At path: "+c.join(".")+" -- "+o)).value=void 0,a.key=void 0,a.type=void 0,a.refinement=void 0,a.path=void 0,a.branch=void 0,a.failures=void 0,Object.assign((0,y.Z)(a),s),a.name=a.constructor.name,a.failures=function(){var t;return null!=(t=i)?t:i=[e].concat((0,l.Z)(r()))},a}return(0,b.Z)(n)}((0,g.Z)(TypeError));function tr(e){return"object"==typeof e&&null!=e}function nr(e){return"string"==typeof e?JSON.stringify(e):""+e}function rr(e,t,n,r){if(!0!==e){!1===e?e={}:"string"==typeof e&&(e={message:e});var a=t.path,i=t.branch,o=n.type,s=e,c=s.refinement,u=s.message,f=void 0===u?"Expected a value of type `"+o+"`"+(c?" with refinement `"+c+"`":"")+", but received: `"+nr(r)+"`":u;return(0,d.Z)((0,d.Z)({value:r,type:o,refinement:c,key:a[a.length-1],path:a,branch:i},e),{},{message:f})}}function ar(e,t,n,r){var a,i,o,s,c;return(0,u.Z)().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:tr(a=e)&&"function"==typeof a[Symbol.iterator]||(e=[e]),i=(0,f.Z)(e),u.prev=2,i.s();case 4:if((o=i.n()).done){u.next=13;break}if(s=o.value,c=rr(s,t,n,r),u.t0=c,!u.t0){u.next=11;break}return u.next=11,c;case 11:u.next=4;break;case 13:u.next=18;break;case 15:u.prev=15,u.t1=u.catch(2),i.e(u.t1);case 18:return u.prev=18,i.f(),u.finish(18);case 21:case"end":return u.stop()}}),Ln,null,[[2,15,18,21]])}function ir(e,t,n){var r,a,i,o,s,d,p,b,h,y,m,v,g,A,w,x,_,k,S,I,E,C,T,O,P,M,B,R;return(0,u.Z)().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(void 0===n&&(n={}),a=(r=n).path,i=void 0===a?[]:a,o=r.branch,s=void 0===o?[e]:o,d=r.coerce,p=void 0!==d&&d,b=r.mask,h=void 0!==b&&b,y={path:i,branch:s},p&&(e=t.coercer(e,y),h&&"type"!==t.type&&tr(t.schema)&&tr(e)&&!Array.isArray(e)))for(m in e)void 0===t.schema[m]&&delete e[m];v=!0,g=(0,f.Z)(t.validator(e,y)),u.prev=5,g.s();case 7:if((A=g.n()).done){u.next=14;break}return w=A.value,v=!1,u.next=12,[w,void 0];case 12:u.next=7;break;case 14:u.next=19;break;case 16:u.prev=16,u.t0=u.catch(5),g.e(u.t0);case 19:return u.prev=19,g.f(),u.finish(19);case 22:x=(0,f.Z)(t.entries(e,y)),u.prev=23,x.s();case 25:if((_=x.n()).done){u.next=52;break}k=(0,c.Z)(_.value,3),S=k[0],I=k[1],E=k[2],C=ir(I,E,{path:void 0===S?i:[].concat((0,l.Z)(i),[S]),branch:void 0===S?s:[].concat((0,l.Z)(s),[I]),coerce:p,mask:h}),T=(0,f.Z)(C),u.prev=29,T.s();case 31:if((O=T.n()).done){u.next=42;break}if(!(P=O.value)[0]){u.next=39;break}return v=!1,u.next=37,[P[0],void 0];case 37:u.next=40;break;case 39:p&&(I=P[1],void 0===S?e=I:e instanceof Map?e.set(S,I):e instanceof Set?e.add(I):tr(e)&&(e[S]=I));case 40:u.next=31;break;case 42:u.next=47;break;case 44:u.prev=44,u.t1=u.catch(29),T.e(u.t1);case 47:return u.prev=47,T.f(),u.finish(47);case 50:u.next=25;break;case 52:u.next=57;break;case 54:u.prev=54,u.t2=u.catch(23),x.e(u.t2);case 57:return u.prev=57,x.f(),u.finish(57);case 60:if(!v){u.next=79;break}M=(0,f.Z)(t.refiner(e,y)),u.prev=62,M.s();case 64:if((B=M.n()).done){u.next=71;break}return R=B.value,v=!1,u.next=69,[R,void 0];case 69:u.next=64;break;case 71:u.next=76;break;case 73:u.prev=73,u.t3=u.catch(62),M.e(u.t3);case 76:return u.prev=76,M.f(),u.finish(76);case 79:if(u.t4=v,!u.t4){u.next=83;break}return u.next=83,[void 0,e];case 83:case"end":return u.stop()}}),Zn,null,[[5,16,19,22],[23,54,57,60],[29,44,47,50],[62,73,76,79]])}var or=function(){function e(t){var n=this;(0,h.Z)(this,e),this.TYPE=void 0,this.type=void 0,this.schema=void 0,this.coercer=void 0,this.validator=void 0,this.refiner=void 0,this.entries=void 0;var r=t.type,a=t.schema,i=t.validator,o=t.refiner,s=t.coercer,c=void 0===s?function(e){return e}:s,f=t.entries,d=void 0===f?(0,u.Z)().mark((function e(){return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})):f;this.type=r,this.schema=a,this.entries=d,this.coercer=c,this.validator=i?function(e,t){return ar(i(e,t),t,n,e)}:function(){return[]},this.refiner=o?function(e,t){return ar(o(e,t),t,n,e)}:function(){return[]}}return(0,b.Z)(e,[{key:"assert",value:function(e){return function(e,t){var n=ur(e,t);if(n[0])throw n[0]}(e,this)}},{key:"create",value:function(e){return sr(e,this)}},{key:"is",value:function(e){return cr(e,this)}},{key:"mask",value:function(e){return function(e,t){var n=ur(e,t,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}(e,this)}},{key:"validate",value:function(e,t){return void 0===t&&(t={}),ur(e,this,t)}}]),e}();function sr(e,t){var n=ur(e,t,{coerce:!0});if(n[0])throw n[0];return n[1]}function cr(e,t){return!ur(e,t)[0]}function ur(e,t,n){void 0===n&&(n={});var r=ir(e,t,n),a=function(e){var t=e.next(),n=t.done,r=t.value;return n?void 0:r}(r);return a[0]?[new er(a[0],(0,u.Z)().mark((function e(){var t,n,a;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,f.Z)(r),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=11;break}if(a=n.value,e.t0=a[0],!e.t0){e.next=9;break}return e.next=9,a[0];case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])}))),void 0]:[void 0,a[1]]}function fr(e,t){return new or({type:e,schema:null,validator:t})}function dr(e){return new or({type:"array",schema:e,entries:(0,u.Z)().mark((function t(n){var r,a,i,o,s;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e||!Array.isArray(n)){t.next=18;break}r=(0,f.Z)(n.entries()),t.prev=2,r.s();case 4:if((a=r.n()).done){t.next=10;break}return i=(0,c.Z)(a.value,2),o=i[0],s=i[1],t.next=8,[o,s,e];case 8:t.next=4;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),r.e(t.t0);case 15:return t.prev=15,r.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])})),coercer:function(e){return Array.isArray(e)?e.slice():e},validator:function(e){return Array.isArray(e)||"Expected an array value, but received: "+nr(e)}})}function lr(e){var t=nr(e),n=typeof e;return new or({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:function(n){return n===e||"Expected the literal `"+t+"`, but received: "+nr(n)}})}function pr(e){return new or((0,d.Z)((0,d.Z)({},e),{},{validator:function(t,n){return null===t||e.validator(t,n)},refiner:function(t,n){return null===t||e.refiner(t,n)}}))}function br(){return fr("number",(function(e){return"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+nr(e)}))}function hr(e){return new or((0,d.Z)((0,d.Z)({},e),{},{validator:function(t,n){return void 0===t||e.validator(t,n)},refiner:function(t,n){return void 0===t||e.refiner(t,n)}}))}function yr(){return fr("string",(function(e){return"string"==typeof e||"Expected a string, but received: "+nr(e)}))}function mr(e){var t=Object.keys(e);return new or({type:"type",schema:e,entries:(0,u.Z)().mark((function n(r){var a,i,o;return(0,u.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!tr(r)){n.next=9;break}a=0,i=t;case 2:if(!(a0&&n.sign.apply(n,(0,l.Z)(r)),o=n._compile(),s=o.serialize(),c=n._serialize(s).toString("base64"),f={encoding:"base64",commitment:null!=a?a:t.commitment},i&&(d=(Array.isArray(i)?i:o.nonProgramIds()).map((function(e){return e.toBase58()})),f.accounts={encoding:"base64",addresses:d}),r&&(f.sigVerify=!0),p=[c,f],e.t0=sr,e.next=8,t._rpcRequest("simulateTransaction",p);case 8:if(e.t1=e.sent,e.t2=Pr,!("error"in(b=(0,e.t0)(e.t1,e.t2)))){e.next=14;break}throw"data"in b.error&&(h=b.error.data.logs)&&Array.isArray(h)&&(y="\n "+h.join("\n "),console.error(b.error.message,y)),new w.SendTransactionError("failed to simulate transaction: "+b.error.message,h);case 14:return e.abrupt("return",b.result);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ir=Er(gr());function Er(e){return vr([mr({jsonrpc:lr("2.0"),id:yr(),result:e}),mr({jsonrpc:lr("2.0"),id:yr(),error:mr({code:gr(),message:yr(),data:hr(fr("any",(function(){return!0})))})})])}var Cr,Tr,Or,Pr=(Tr=mr({err:pr(vr([mr({}),yr()])),logs:pr(dr(yr())),accounts:hr(pr(dr(pr(mr({executable:fr("boolean",(function(e){return"boolean"==typeof e})),owner:yr(),lamports:br(),data:dr(yr()),rentEpoch:hr(br())}))))),unitsConsumed:hr(br())}),function(e,t,n){return new or((0,d.Z)((0,d.Z)({},e),{},{coercer:function(r,a){return cr(r,t)?e.coercer(n(r),a):e.coercer(r,a)}}))}(Er(Cr=mr({context:mr({slot:br()}),value:Tr})),Ir,(function(e){return"error"in e?e:(0,d.Z)((0,d.Z)({},e),{},{result:sr(e.result,Cr)})}))),Mr=Object.freeze({__proto__:null,invoke:(Or=(0,o.Z)((0,u.Z)().mark((function e(t,n,r,a){var i;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=$n(t),a||(a=Lr()),(i=new w.Transaction).add(new w.TransactionInstruction({programId:t,keys:null!=n?n:[],data:r})),void 0!==a.sendAndConfirm){e.next=4;break}throw new Error("This function requires 'Provider.sendAndConfirm' to be implemented.");case 4:return e.next=6,a.sendAndConfirm(i,[]);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)}))),function(e,t,n,r){return Or.apply(this,arguments)}),getMultipleAccounts:Ar,simulateTransaction:kr}),Br=function(){function e(t,n,r){(0,h.Z)(this,e),this.connection=t,this.wallet=n,this.opts=r,this.publicKey=n.publicKey}var t,n,r;return(0,b.Z)(e,[{key:"sendAndConfirm",value:(r=(0,o.Z)((0,u.Z)().mark((function e(t,n,r){var a,i,o,s;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===r&&(r=this.opts),t.feePayer=this.wallet.publicKey,e.next=4,this.connection.getRecentBlockhash(r.preflightCommitment);case 4:return t.recentBlockhash=e.sent.blockhash,e.next=7,this.wallet.signTransaction(t);case 7:return t=e.sent,(null!=n?n:[]).forEach((function(e){t.partialSign(e)})),i=t.serialize(),e.prev=10,e.next=13,Nr(this.connection,i,r);case 13:return e.abrupt("return",e.sent);case 16:if(e.prev=16,e.t0=e.catch(10),!(e.t0 instanceof jr)){e.next=26;break}return e.next=21,this.connection.getTransaction(Qn(t.signature),{commitment:"confirmed"});case 21:if(!(o=e.sent)){e.next=25;break}throw(s=null===(a=o.meta)||void 0===a?void 0:a.logMessages)?new w.SendTransactionError(e.t0.message,s):e.t0;case 25:case 26:throw e.t0;case 27:case"end":return e.stop()}}),e,this,[[10,16]])}))),function(e,t,n){return r.apply(this,arguments)})},{key:"sendAll",value:(n=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r,a,i,o,s,c,f=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===n&&(n=this.opts),e.next=3,this.connection.getRecentBlockhash(n.preflightCommitment);case 3:return r=e.sent,a=t.map((function(e){var t,n=e.tx,a=null!==(t=e.signers)&&void 0!==t?t:[];return n.feePayer=f.wallet.publicKey,n.recentBlockhash=r.blockhash,a.forEach((function(e){n.partialSign(e)})),n})),e.next=7,this.wallet.signAllTransactions(a);case 7:i=e.sent,o=[],s=0;case 10:if(!(s1)return null;r=s[0].match(/([0-9]+)/g)[0]}try{a=parseInt(r)}catch(e){return null}var c=t.get(a);return void 0!==c||void 0!==(c=Yr.get(a))?new n(a,c,e.logs):null}}]),n}((0,g.Z)(Error));function Gr(e,t){zr("debug-logs")&&console.log("Translating error:",e);var n=Vr.parse(e.logs);if(n)return n;var r=Jr.parse(e,t);if(r)return r;if(e.logs){var a={get:function(t,n){return"programErrorStack"===n?t.programErrorStack.stack:"program"===n?t.programErrorStack.stack[e.programErrorStack.stack.length-1]:Reflect.get.apply(Reflect,arguments)}};return e.programErrorStack=Kr.parse(e.logs),new Proxy(e,a)}return e}var Wr={InstructionMissing:100,InstructionFallbackNotFound:101,InstructionDidNotDeserialize:102,InstructionDidNotSerialize:103,IdlInstructionStub:1e3,IdlInstructionInvalidProgram:1001,ConstraintMut:2e3,ConstraintHasOne:2001,ConstraintSigner:2002,ConstraintRaw:2003,ConstraintOwner:2004,ConstraintRentExempt:2005,ConstraintSeeds:2006,ConstraintExecutable:2007,ConstraintState:2008,ConstraintAssociated:2009,ConstraintAssociatedInit:2010,ConstraintClose:2011,ConstraintAddress:2012,ConstraintZero:2013,ConstraintTokenMint:2014,ConstraintTokenOwner:2015,ConstraintMintMintAuthority:2016,ConstraintMintFreezeAuthority:2017,ConstraintMintDecimals:2018,ConstraintSpace:2019,RequireViolated:2500,RequireEqViolated:2501,RequireKeysEqViolated:2502,RequireNeqViolated:2503,RequireKeysNeqViolated:2504,RequireGtViolated:2505,RequireGteViolated:2506,AccountDiscriminatorAlreadySet:3e3,AccountDiscriminatorNotFound:3001,AccountDiscriminatorMismatch:3002,AccountDidNotDeserialize:3003,AccountDidNotSerialize:3004,AccountNotEnoughKeys:3005,AccountNotMutable:3006,AccountOwnedByWrongProgram:3007,InvalidProgramId:3008,InvalidProgramExecutable:3009,AccountNotSigner:3010,AccountNotSystemOwned:3011,AccountNotInitialized:3012,AccountNotProgramData:3013,AccountNotAssociatedTokenAccount:3014,AccountSysvarMismatch:3015,AccountReallocExceedsLimit:3016,AccountDuplicateReallocs:3017,StateInvalidAddress:4e3,DeclaredProgramIdMismatch:4100,Deprecated:5e3},Yr=new Map([[Wr.InstructionMissing,"8 byte instruction identifier not provided"],[Wr.InstructionFallbackNotFound,"Fallback functions are not supported"],[Wr.InstructionDidNotDeserialize,"The program could not deserialize the given instruction"],[Wr.InstructionDidNotSerialize,"The program could not serialize the given instruction"],[Wr.IdlInstructionStub,"The program was compiled without idl instructions"],[Wr.IdlInstructionInvalidProgram,"The transaction was given an invalid program for the IDL instruction"],[Wr.ConstraintMut,"A mut constraint was violated"],[Wr.ConstraintHasOne,"A has_one constraint was violated"],[Wr.ConstraintSigner,"A signer constraint was violated"],[Wr.ConstraintRaw,"A raw constraint was violated"],[Wr.ConstraintOwner,"An owner constraint was violated"],[Wr.ConstraintRentExempt,"A rent exemption constraint was violated"],[Wr.ConstraintSeeds,"A seeds constraint was violated"],[Wr.ConstraintExecutable,"An executable constraint was violated"],[Wr.ConstraintState,"A state constraint was violated"],[Wr.ConstraintAssociated,"An associated constraint was violated"],[Wr.ConstraintAssociatedInit,"An associated init constraint was violated"],[Wr.ConstraintClose,"A close constraint was violated"],[Wr.ConstraintAddress,"An address constraint was violated"],[Wr.ConstraintZero,"Expected zero account discriminant"],[Wr.ConstraintTokenMint,"A token mint constraint was violated"],[Wr.ConstraintTokenOwner,"A token owner constraint was violated"],[Wr.ConstraintMintMintAuthority,"A mint mint authority constraint was violated"],[Wr.ConstraintMintFreezeAuthority,"A mint freeze authority constraint was violated"],[Wr.ConstraintMintDecimals,"A mint decimals constraint was violated"],[Wr.ConstraintSpace,"A space constraint was violated"],[Wr.RequireViolated,"A require expression was violated"],[Wr.RequireEqViolated,"A require_eq expression was violated"],[Wr.RequireKeysEqViolated,"A require_keys_eq expression was violated"],[Wr.RequireNeqViolated,"A require_neq expression was violated"],[Wr.RequireKeysNeqViolated,"A require_keys_neq expression was violated"],[Wr.RequireGtViolated,"A require_gt expression was violated"],[Wr.RequireGteViolated,"A require_gte expression was violated"],[Wr.AccountDiscriminatorAlreadySet,"The account discriminator was already set on this account"],[Wr.AccountDiscriminatorNotFound,"No 8 byte discriminator was found on the account"],[Wr.AccountDiscriminatorMismatch,"8 byte discriminator did not match what was expected"],[Wr.AccountDidNotDeserialize,"Failed to deserialize the account"],[Wr.AccountDidNotSerialize,"Failed to serialize the account"],[Wr.AccountNotEnoughKeys,"Not enough account keys given to the instruction"],[Wr.AccountNotMutable,"The given account is not mutable"],[Wr.AccountOwnedByWrongProgram,"The given account is owned by a different program than expected"],[Wr.InvalidProgramId,"Program ID was not as expected"],[Wr.InvalidProgramExecutable,"Program account is not executable"],[Wr.AccountNotSigner,"The given account did not sign"],[Wr.AccountNotSystemOwned,"The given account is not owned by the system program"],[Wr.AccountNotInitialized,"The program expected this account to be already initialized"],[Wr.AccountNotProgramData,"The given account is not a program data account"],[Wr.AccountNotAssociatedTokenAccount,"The given account is not the associated token account"],[Wr.AccountSysvarMismatch,"The given public key does not match the required sysvar"],[Wr.AccountReallocExceedsLimit,"The account reallocation exceeds the MAX_PERMITTED_DATA_INCREASE limit"],[Wr.AccountDuplicateReallocs,"The account was duplicated for more than one reallocation"],[Wr.StateInvalidAddress,"The given state account does not have the correct address"],[Wr.DeclaredProgramIdMismatch,"The declared program id does not match the actual program id"],[Wr.Deprecated,"The API being used is deprecated and should no longer be used"]]),Xr=function(){return Xr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;if("struct"===t.type.kind){var a=t.type.fields.map((function(t){return e.fieldLayout(t,n)}));return O.struct(a,r)}if("enum"===t.type.kind){var i=t.type.variants.map((function(t){var r=C()(t.name);if(void 0===t.fields)return O.struct([],r);var a=t.fields.map((function(t){if(!t.hasOwnProperty("name"))throw new Error("Tuple enum variants not yet implemented.");return e.fieldLayout(t,n)}));return O.struct(a,r)}));return void 0!==r?O.rustEnum(i).replicate(r):O.rustEnum(i,r)}throw new Error("Unknown type kint: ".concat(t))}}]),e}(),aa=function(){function e(t){var n=this;(0,h.Z)(this,e),this.idl=t,this.ixLayout=e.parseIxLayout(t);var r=new Map;t.instructions.forEach((function(e){var t=oa("global",e.name);r.set(S().encode(t),{layout:n.ixLayout.get(e.name),name:e.name})})),t.state&&t.state.methods.map((function(e){var t=oa("state",e.name);r.set(S().encode(t),{layout:n.ixLayout.get(e.name),name:e.name})})),this.sighashLayouts=r}return(0,b.Z)(e,[{key:"encode",value:function(e,t){return this._encode("global",e,t)}},{key:"encodeState",value:function(e,t){return this._encode("state",e,t)}},{key:"_encode",value:function(e,t,n){var r=A.Buffer.alloc(1e3),a=C()(t),i=this.ixLayout.get(a);if(!i)throw new Error("Unknown method: ".concat(a));var o=i.encode(n,r),s=r.slice(0,o);return A.Buffer.concat([oa(e,t),s])}},{key:"decode",value:function(e){"string"==typeof e&&(e="hex"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hex")?A.Buffer.from(e,"hex"):S().decode(e));var t=S().encode(e.slice(0,8)),n=e.slice(8),r=this.sighashLayouts.get(t);return r?{data:r.layout.decode(n),name:r.name}:null}},{key:"format",value:function(e,t){return ia.format(e,t,this.idl)}}],[{key:"parseIxLayout",value:function(e){var t=(e.state?e.state.methods:[]).map((function(t){var n=t.args.map((function(t){var n,r;return ra.fieldLayout(t,Array.from([].concat((0,l.Z)(null!==(n=e.accounts)&&void 0!==n?n:[]),(0,l.Z)(null!==(r=e.types)&&void 0!==r?r:[]))))})),r=C()(t.name);return[r,O.struct(n,r)]})).concat(e.instructions.map((function(t){var n=t.args.map((function(t){var n,r;return ra.fieldLayout(t,Array.from([].concat((0,l.Z)(null!==(n=e.accounts)&&void 0!==n?n:[]),(0,l.Z)(null!==(r=e.types)&&void 0!==r?r:[]))))})),r=C()(t.name);return[r,O.struct(n,r)]})));return new Map(t)}}]),e}(),ia=function(){function e(){(0,h.Z)(this,e)}return(0,b.Z)(e,null,[{key:"format",value:function(t,n,r){var a=r.instructions.filter((function(e){return t.name===e.name}))[0];if(void 0===a)return console.error("Invalid instruction given"),null;var i=a.args.map((function(n){return{name:n.name,type:e.formatIdlType(n.type),data:e.formatIdlData(n,t.data[n.name],r.types)}})),o=e.flattenIdlAccounts(a.accounts);return{args:i,accounts:n.map((function(e,t){return t");if("option"in e)return"Option<".concat(this.formatIdlType(e.option),">");if("defined"in e)return e.defined;if("array"in e)return"Array<".concat(e.array[0],"; ").concat(e.array[1],">");throw new Error("Unknown IDL type: ".concat(e))}},{key:"formatIdlData",value:function(t,n,r){var a=this;if("string"==typeof t.type)return n.toString();if(t.type.hasOwnProperty("vec"))return"["+n.map((function(e){return a.formatIdlData({name:"",type:t.type.vec},e)})).join(", ")+"]";if(t.type.hasOwnProperty("option"))return null===n?"null":this.formatIdlData({name:"",type:t.type.option},n,r);if(t.type.hasOwnProperty("defined")){if(void 0===r)throw new Error("User defined types not provided");var i=r.filter((function(e){return e.name===t.type.defined}));if(1!==i.length)throw new Error("Type not found: ".concat(t.type.defined));return e.formatIdlDataDefined(i[0],n,r)}return"unknown"}},{key:"formatIdlDataDefined",value:function(t,n,r){if("struct"===t.type.kind){var a=t.type;return"{ "+Object.keys(n).map((function(t){var i=a.fields.filter((function(e){return e.name===t}))[0];if(void 0===i)throw new Error("Unable to find type");return t+": "+e.formatIdlData(i,n[t],r)})).join(", ")+" }"}if(0===t.type.variants.length)return"{}";if(t.type.variants[0].name){var i=t.type.variants,o=Object.keys(n)[0],s=n[o],c=Object.keys(s).map((function(t){var n,a=s[t],c=null===(n=i[o])||void 0===n?void 0:n.filter((function(e){return e.name===t}))[0];if(void 0===c)throw new Error("Unable to find variant");return t+": "+e.formatIdlData(c,a,r)})).join(", "),u=C()(o,{pascalCase:!0});return 0===c.length?u:"".concat(u," { ").concat(c," }")}return"Tuple formatting not yet implemented"}},{key:"flattenIdlAccounts",value:function(t,n){return t.map((function(t){var r=function(e){var t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)}(t.name);if(t.hasOwnProperty("accounts")){var a=n?"".concat(n," > ").concat(r):r;return e.flattenIdlAccounts(t.accounts,a)}return(0,d.Z)((0,d.Z)({},t),{},{name:n?"".concat(n," > ").concat(r):r})})).flat()}}]),e}();function oa(e,t){var n,r="".concat(e,":").concat((void 0===n&&(n={}),function(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?ea:n,a=t.stripRegexp,i=void 0===a?ta:a,o=t.transform,s=void 0===o?$r:o,c=t.delimiter,u=void 0===c?" ":c,f=na(na(e,r,"$1\0$2"),i,"\0"),d=0,l=f.length;"\0"===f.charAt(d);)d++;for(;"\0"===f.charAt(l-1);)l--;return f.slice(d,l).split("\0").map(s).join(u)}(e,Xr({delimiter:"."},t))}(t,Xr({delimiter:"_"},n))));return A.Buffer.from(T.sha256.digest(r)).slice(0,8)}function sa(e,t){if("enum"===t.type.kind){var n=t.type.variants.map((function(t){return void 0===t.fields?0:t.fields.map((function(t){if("object"!=typeof t||!("name"in t))throw new Error("Tuple enum variants not yet implemented.");return ca(e,t.type)})).reduce((function(e,t){return e+t}))}));return Math.max.apply(Math,(0,l.Z)(n))+1}return void 0===t.type.fields?0:t.type.fields.map((function(t){return ca(e,t.type)})).reduce((function(e,t){return e+t}),0)}function ca(e,t){var n,r;switch(t){case"bool":case"u8":case"i8":case"bytes":case"string":return 1;case"i16":case"u16":return 2;case"u32":case"i32":case"f32":return 4;case"u64":case"i64":case"f64":return 8;case"u128":case"i128":return 16;case"publicKey":return 32;default:if("vec"in t)return 1;if("option"in t)return 1+ca(e,t.option);if("coption"in t)return 4+ca(e,t.coption);if("defined"in t){var a=null!==(r=null===(n=e.types)||void 0===n?void 0:n.filter((function(e){return e.name===t.defined})))&&void 0!==r?r:[];if(1!==a.length)throw new Qr("Type not found: ".concat(JSON.stringify(t)));return sa(e,a[0])}if("array"in t){var i=t.array[0],o=t.array[1];return ca(e,i)*o}throw new Error("Invalid type ".concat(JSON.stringify(t)))}}var ua=8,fa=function(){function e(t){if((0,h.Z)(this,e),void 0!==t.accounts){var n=t.accounts.map((function(e){return[e.name,ra.typeDefLayout(e,t.types)]}));this.accountLayouts=new Map(n),this.idl=t}else this.accountLayouts=new Map}var t;return(0,b.Z)(e,[{key:"encode",value:(t=(0,o.Z)((0,u.Z)().mark((function t(n,r){var a,i,o,s,c;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=A.Buffer.alloc(1e3),i=this.accountLayouts.get(n)){t.next=3;break}throw new Error("Unknown account: ".concat(n));case 3:return o=i.encode(r,a),s=a.slice(0,o),c=e.accountDiscriminator(n),t.abrupt("return",A.Buffer.concat([c,s]));case 6:case"end":return t.stop()}}),t,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"decode",value:function(t,n){if(e.accountDiscriminator(t).compare(n.slice(0,8)))throw new Error("Invalid account discriminator");return this.decodeUnchecked(t,n)}},{key:"decodeUnchecked",value:function(e,t){var n=t.slice(8),r=this.accountLayouts.get(e);if(!r)throw new Error("Unknown account: ".concat(e));return r.decode(n)}},{key:"memcmp",value:function(t,n){var r=e.accountDiscriminator(t);return{offset:0,bytes:S().encode(n?A.Buffer.concat([r,n]):r)}}},{key:"size",value:function(e){var t;return 8+(null!==(t=sa(this.idl,e))&&void 0!==t?t:0)}}],[{key:"accountDiscriminator",value:function(e){return A.Buffer.from(T.sha256.digest("account:".concat(C()(e,{pascalCase:!0})))).slice(0,8)}}]),e}(),da=function(){function e(t){if((0,h.Z)(this,e),void 0!==t.events){var n=t.events.map((function(e){var n={name:e.name,type:{kind:"struct",fields:e.fields.map((function(e){return{name:e.name,type:e.type}}))}};return[e.name,ra.typeDefLayout(n,t.types)]}));this.layouts=new Map(n),this.discriminators=new Map(void 0===t.events?[]:t.events.map((function(e){return[I.fromByteArray(la(e.name)),e.name]})))}else this.layouts=new Map}return(0,b.Z)(e,[{key:"decode",value:function(e){var t;try{t=A.Buffer.from(I.toByteArray(e))}catch(e){return null}var n=I.fromByteArray(t.slice(0,8)),r=this.discriminators.get(n);if(void 0===r)return null;var a=this.layouts.get(r);if(!a)throw new Error("Unknown event: ".concat(r));return{data:a.decode(t.slice(8)),name:r}}}]),e}();function la(e){return A.Buffer.from(T.sha256.digest("event:".concat(e))).slice(0,8)}var pa=function(){function e(t){if((0,h.Z)(this,e),void 0===t.state)throw new Error("Idl state not defined.");this.layout=ra.typeDefLayout(t.state.struct,t.types)}var t;return(0,b.Z)(e,[{key:"encode",value:(t=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r,a,i,o;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=A.Buffer.alloc(1e3),a=this.layout.encode(n,r),e.next=4,ba(t);case 4:return i=e.sent,o=r.slice(0,a),e.abrupt("return",A.Buffer.concat([i,o]));case 7:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"decode",value:function(e){var t=e.slice(8);return this.layout.decode(t)}}]),e}();function ba(e){return ha.apply(this,arguments)}function ha(){return(ha=(0,o.Z)((0,u.Z)().mark((function e(t){var n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=zr("anchor-deprecated-state")?"account":"state",e.abrupt("return",A.Buffer.from(T.sha256.digest("".concat(n,":").concat(t))).slice(0,8));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ya=function(){function e(t){if((0,h.Z)(this,e),void 0!==t.types){var n=t.types.map((function(e){return[e.name,ra.typeDefLayout(e,t.types)]}));this.typeLayouts=new Map(n),this.idl=t}else this.typeLayouts=new Map}return(0,b.Z)(e,[{key:"encode",value:function(e,t){var n=A.Buffer.alloc(1e3),r=this.typeLayouts.get(e);if(!r)throw new Error("Unknown type: ".concat(e));var a=r.encode(t,n);return n.slice(0,a)}},{key:"decode",value:function(e,t){var n=this.typeLayouts.get(e);if(!n)throw new Error("Unknown type: ".concat(e));return n.decode(t)}}]),e}(),ma=(0,b.Z)((function e(t){(0,h.Z)(this,e),this.instruction=new aa(t),this.accounts=new fa(t),this.events=new da(t),t.state&&(this.state=new pa(t)),this.types=new ya(t)})),va="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},ga=function(){function e(t,n){if((0,h.Z)(this,e),!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=n}return(0,b.Z)(e,[{key:"makeDestinationObject",value:function(){return{}}},{key:"decode",value:function(e,t){throw new Error("Layout is abstract")}},{key:"encode",value:function(e,t,n){throw new Error("Layout is abstract")}},{key:"getSpan",value:function(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(e){var t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}},{key:"fromArray",value:function(e){}}]),e}(),Aa=ga,wa=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,b.Z)(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}(ga),xa=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r,a){var i;if((0,h.Z)(this,n),!(e instanceof ga))throw new TypeError("layout must be a Layout");if(void 0===r)r=0;else if(!Number.isInteger(r))throw new TypeError("offset must be integer or undefined");return(i=t.call(this,e.span,a||e.property)).layout=e,i.offset=r,i}return(0,b.Z)(n,[{key:"isCount",value:function(){return this.layout instanceof _a||this.layout instanceof ka}},{key:"decode",value:function(e,t){return void 0===t&&(t=0),this.layout.decode(e,t+this.offset)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),this.layout.encode(e,t,n+this.offset)}}]),n}(wa),_a=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r){var a;if((0,h.Z)(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return(0,i.Z)(a)}return(0,b.Z)(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readUIntLE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeUIntLE(e,n,this.span),this.span}}]),n}(ga),ka=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r){var a;if((0,h.Z)(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return(0,i.Z)(a)}return(0,b.Z)(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readUIntBE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeUIntBE(e,n,this.span),this.span}}]),n}(ga),Sa=Math.pow(2,32);function Ia(e){var t=Math.floor(e/Sa);return{hi32:t,lo32:e-t*Sa}}function Ea(e,t){return e*Sa+t}var Ca=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e){return(0,h.Z)(this,n),t.call(this,8,e)}return(0,b.Z)(n,[{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.readUInt32LE(t);return Ea(e.readUInt32LE(t+4),n)}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=Ia(e);return t.writeUInt32LE(r.lo32,n),t.writeUInt32LE(r.hi32,n+4),8}}]),n}(ga),Ta=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e){return(0,h.Z)(this,n),t.call(this,8,e)}return(0,b.Z)(n,[{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.readUInt32LE(t);return Ea(e.readInt32LE(t+4),n)}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=Ia(e);return t.writeUInt32LE(r.lo32,n),t.writeInt32LE(r.hi32,n+4),8}}]),n}(ga),Oa=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r,a){var i;if((0,h.Z)(this,n),!Array.isArray(e)||!e.reduce((function(e,t){return e&&t instanceof ga}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof r&&void 0===a&&(a=r,r=void 0);var o,s=(0,f.Z)(e);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(0>c.span&&void 0===c.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(e){s.e(e)}finally{s.f()}var u=-1;try{u=e.reduce((function(e,t){return e+t.getSpan()}),0)}catch(e){}return(i=t.call(this,u,r)).fields=e,i.decodePrefixes=!!a,i}return(0,b.Z)(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=0;try{n=this.fields.reduce((function(n,r){var a=r.getSpan(e,t);return t+=a,n+a}),0)}catch(e){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n,r=this.makeDestinationObject(),a=(0,f.Z)(this.fields);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(void 0!==i.property&&(r[i.property]=i.decode(e,t)),t+=i.getSpan(e,t),this.decodePrefixes&&e.length===t)break}}catch(e){a.e(e)}finally{a.f()}return r}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r,a=n,i=0,o=0,s=(0,f.Z)(this.fields);try{for(s.s();!(r=s.n()).done;){var c=r.value,u=c.span;if(o=0u&&(u=c.getSpan(t,n)))}i=n,n+=u}}catch(e){s.e(e)}finally{s.f()}return i+o-a}},{key:"fromArray",value:function(e){var t,n=this.makeDestinationObject(),r=(0,f.Z)(this.fields);try{for(r.s();!(t=r.n()).done;){var a=t.value;void 0!==a.property&&0a.span?n=-1:0<=n&&(n+=a.span)}}catch(e){r.e(e)}finally{r.f()}}}]),n}(ga),Pa=function(){function e(t){(0,h.Z)(this,e),this.property=t}return(0,b.Z)(e,[{key:"decode",value:function(){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(){throw new Error("UnionDiscriminator is abstract")}}]),e}(),Ma=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r){var a;if((0,h.Z)(this,n),!(e instanceof wa&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(a=t.call(this,r||e.property||"variant")).layout=e,a}return(0,b.Z)(n,[{key:"decode",value:function(e,t){return this.layout.decode(e,t)}},{key:"encode",value:function(e,t,n){return this.layout.encode(e,t,n)}}]),n}(Pa),Ba=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r,a){var i;(0,h.Z)(this,n);var o=e instanceof _a||e instanceof ka;if(o)e=new Ma(new xa(e));else if(e instanceof wa&&e.isCount())e=new Ma(e);else if(!(e instanceof Pa))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===r&&(r=null),!(null===r||r instanceof ga))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var s=-1;r&&0<=(s=r.span)&&o&&(s+=e.layout.span),(i=t.call(this,s,a)).discriminator=e,i.usesPrefixDiscriminator=o,i.defaultLayout=r,i.registry={};var c=i.defaultGetSourceVariant.bind((0,y.Z)(i));return i.getSourceVariant=function(e){return c(e)},i.configGetSourceVariant=function(e){c=e.bind(this)},i}return(0,b.Z)(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}},{key:"defaultGetSourceVariant",value:function(e){if(e.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&e.hasOwnProperty(this.defaultLayout.property))return;var t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||e.hasOwnProperty(t.property)))return t}else for(var n in this.registry){var r=this.registry[n];if(e.hasOwnProperty(r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(e,t){var n;void 0===t&&(t=0);var r=this.discriminator,a=r.decode(e,t),i=this.registry[a];if(void 0===i){var o=0;i=this.defaultLayout,this.usesPrefixDiscriminator&&(o=r.layout.span),(n=this.makeDestinationObject())[r.property]=a,n[i.property]=this.defaultLayout.decode(e,t+o)}else n=i.decode(e,t);return n}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=this.getSourceVariant(e);if(void 0===r){var a=this.discriminator,i=this.defaultLayout,o=0;return this.usesPrefixDiscriminator&&(o=a.layout.span),a.encode(e[a.property],t,n),o+i.encode(e[i.property],t,n+o)}return r.encode(e,t,n)}},{key:"addVariant",value:function(e,t,n){var r=new Ra(this,e,t,n);return this.registry[e]=r,r}},{key:"getVariant",value:function(e,t){var n=e;return jn.isBuffer(e)&&(void 0===t&&(t=0),n=this.discriminator.decode(e,t)),this.registry[n]}}]),n}(ga),Ra=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r,a,i){var o;if((0,h.Z)(this,n),!(e instanceof Ba))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof a&&void 0===i&&(i=a,a=null),a){if(!(a instanceof ga))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=a.span&&a.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof i)throw new TypeError("variant must have a String property")}var s=e.span;return 0>e.span&&0<=(s=a?a.span:0)&&e.usesPrefixDiscriminator&&(s+=e.discriminator.layout.span),(o=t.call(this,s,i)).union=e,o.variant=r,o.layout=a||null,o}return(0,b.Z)(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),n+this.layout.getSpan(e,t+n)}},{key:"decode",value:function(e,t){var n=this.makeDestinationObject();if(void 0===t&&(t=0),this!==this.union.getVariant(e,t))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!e.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);var a=r;if(this.layout&&(this.layout.encode(e[this.property],t,n+r),a+=this.layout.getSpan(t,n+r),0<=this.union.span&&a>this.union.span))throw new Error("encoded variant overruns containing union");return a}},{key:"fromArray",value:function(e){if(this.layout)return this.layout.fromArray(e)}}]),n}(ga),Na=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r){var a;if((0,h.Z)(this,n),!(e instanceof wa&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");var i=-1;return e instanceof wa||(i=e),(a=t.call(this,i,r)).length=e,a}return(0,b.Z)(n,[{key:"getSpan",value:function(e,t){var n=this.span;return 0>n&&(n=this.length.decode(e,t)),n}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=this.span;return 0>n&&(n=this.length.decode(e,t)),e.slice(t,t+n)}},{key:"encode",value:function(e,t,n){var r,a=this.length;if(this.length instanceof wa&&(a=e.length),!jn.isBuffer(e)||a!==e.length)throw new TypeError((r="Blob.encode",(this.property?r+"["+this.property+"]":r)+" requires (length "+a+") Buffer as src"));if(n+a>t.length)throw new RangeError("encoding overruns Buffer");return t.write(e.toString("hex"),n,a,"hex"),this.length instanceof wa&&this.length.encode(a,t,n),a}}]),n}(ga),Da=function(e,t,n){return new xa(e,t,n)},ja=function(e){return new _a(1,e)},Ua=function(e){return new _a(4,e)},La=function(e){return new Ca(e)},Za=function(e){return new Ta(e)},Fa=function(e,t,n){return new Oa(e,t,n)},Ha=function(e,t,n){return new Ba(e,t,n)},za=function(e,t){return new Na(e,t)},qa=function(){function e(t){(0,h.Z)(this,e)}return(0,b.Z)(e,[{key:"encode",value:function(e,t){switch(C()(e)){case"initializeMint":return function(e){var t=e.decimals,n=e.mintAuthority,r=e.freezeAuthority;return Va({initializeMint:{decimals:t,mintAuthority:n.toBuffer(),freezeAuthorityOption:!!r,freezeAuthority:(r||w.PublicKey.default).toBuffer()}})}(t);case"initializeAccount":return Va({initializeAccount:{}});case"initializeMultisig":return Va({initializeMultisig:{m:t.m}});case"transfer":return Va({transfer:{amount:t.amount}});case"approve":return Va({approve:{amount:t.amount}});case"revoke":return Va({revoke:{}});case"setAuthority":return Va({setAuthority:{authorityType:(s=t).authorityType,newAuthority:s.newAuthority}});case"mintTo":return Va({mintTo:{amount:t.amount}});case"burn":return Va({burn:{amount:t.amount}});case"closeAccount":return Va({closeAccount:{}});case"freezeAccount":return Va({freezeAccount:{}});case"thawAccount":return Va({thawAccount:{}});case"transferChecked":return Va({transferChecked:{amount:(o=t).amount,decimals:o.decimals}});case"approvedChecked":return Va({approveChecked:{amount:(i=t).amount,decimals:i.decimals}});case"mintToChecked":return Va({mintToChecked:{amount:(a=t).amount,decimals:a.decimals}});case"burnChecked":return Va({burnChecked:{amount:(r=t).amount,decimals:r.decimals}});case"intializeAccount2":return Va({initilaizeAccount2:{authority:t.authority}});case"syncNative":return Va({syncNative:{}});case"initializeAccount3":return Va({initializeAccount3:{authority:t.authority}});case"initializeMultisig2":return Va({initializeMultisig2:{m:t.m}});case"initializeMint2":return Va({encodeInitializeMint2:{decimals:(n=t).decimals,mintAuthority:n.mintAuthority,freezeAuthority:n.freezeAuthority}});default:throw new Error("Invalid instruction: ".concat(e))}var n,r,a,i,o,s}},{key:"encodeState",value:function(e,t){throw new Error("SPL token does not have state")}}]),e}(),Qa=Ha(ja("instruction"));function Ka(e){return za(32,e)}function Va(e){var t=jn.alloc(Ja),n=Qa.encode(e,t);return t.slice(0,n)}Qa.addVariant(0,Fa([ja("decimals"),za(32,"mintAuthority"),ja("freezeAuthorityOption"),Ka("freezeAuthority")]),"initializeMint"),Qa.addVariant(1,Fa([]),"initializeAccount"),Qa.addVariant(2,Fa([ja("m")]),"initializeMultisig"),Qa.addVariant(3,Fa([La("amount")]),"transfer"),Qa.addVariant(4,Fa([La("amount")]),"approve"),Qa.addVariant(5,Fa([]),"revoke"),Qa.addVariant(6,Fa([ja("authorityType"),ja("newAuthorityOption"),Ka("newAuthority")]),"setAuthority"),Qa.addVariant(7,Fa([La("amount")]),"mintTo"),Qa.addVariant(8,Fa([La("amount")]),"burn"),Qa.addVariant(9,Fa([]),"closeAccount"),Qa.addVariant(10,Fa([]),"freezeAccount"),Qa.addVariant(11,Fa([]),"thawAccount"),Qa.addVariant(12,Fa([La("amount"),ja("decimals")]),"transferChecked"),Qa.addVariant(13,Fa([La("amount"),ja("decimals")]),"approvedChecked"),Qa.addVariant(14,Fa([La("amount"),ja("decimals")]),"mintToChecked"),Qa.addVariant(15,Fa([La("amount"),ja("decimals")]),"burnedChecked"),Qa.addVariant(16,Fa([Ka("authority")]),"InitializeAccount2"),Qa.addVariant(17,Fa([]),"syncNative"),Qa.addVariant(18,Fa([Ka("authority")]),"initializeAccount3"),Qa.addVariant(19,Fa([ja("m")]),"initializeMultisig2"),Qa.addVariant(20,Fa([ja("decimals"),Ka("mintAuthority"),ja("freezeAuthorityOption"),Ka("freezeAuthority")]),"initializeMint2");var Ja=Math.max.apply(Math,(0,l.Z)(Object.values(Qa.registry).map((function(e){return e.span})))),Ga=function(){function e(t){(0,h.Z)(this,e)}return(0,b.Z)(e,[{key:"encode",value:function(e,t){throw new Error("SPL token does not have state")}},{key:"decode",value:function(e){throw new Error("SPL token does not have state")}}]),e}();function Wa(e){return new $a(za(8),(function(e){return ti.fromBuffer(e)}),(function(e){return e.toBuffer()}),e)}function Ya(e){return new $a(za(32),(function(e){return new w.PublicKey(e)}),(function(e){return e.toBuffer()}),e)}function Xa(e,t){return new ei(e,t)}var $a=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r,a,i){var o;return(0,h.Z)(this,n),(o=t.call(this,e.span,i)).layout=e,o.decoder=r,o.encoder=a,o}return(0,b.Z)(n,[{key:"decode",value:function(e,t){return this.decoder(this.layout.decode(e,t))}},{key:"encode",value:function(e,t,n){return this.layout.encode(this.encoder(e),t,n)}},{key:"getSpan",value:function(e,t){return this.layout.getSpan(e,t)}}]),n}(Aa),ei=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r){var a;return(0,h.Z)(this,n),(a=t.call(this,-1,r)).layout=e,a.discriminator=Ua(),a}return(0,b.Z)(n,[{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null==e?this.layout.span+this.discriminator.encode(0,t,n):(this.discriminator.encode(1,t,n),this.layout.encode(e,t,n+4)+4)}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return null;if(1===n)return this.layout.decode(e,t+4);throw new Error("Invalid coption "+this.layout.property)}},{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.getSpan(e,t+4)+4}}]),n}(Aa),ti=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,b.Z)(n,[{key:"toBuffer",value:function(){var e=(0,r.Z)((0,a.Z)(n.prototype),"toArray",this).call(this).reverse(),t=jn.from(e);if(8===t.length)return t;if(t.length>=8)throw new Error("u64 too large");var i=jn.alloc(8);return t.copy(i),i}}],[{key:"fromBuffer",value:function(e){if(8!==e.length)throw new Error("Invalid buffer length: ".concat(e.length));return new n((0,l.Z)(e).reverse().map((function(e){return"00".concat(e.toString(16)).slice(-2)})).join(""),16)}}]),n}(_()),ni=function(){function e(t){(0,h.Z)(this,e),this.idl=t}var t;return(0,b.Z)(e,[{key:"encode",value:(t=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r,a,i,o;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next="token"===e.t0?3:"mint"===e.t0?5:7;break;case 3:return r=jn.alloc(165),a=ai.encode(n,r),e.abrupt("return",r.slice(0,a));case 5:return i=jn.alloc(82),o=ri.encode(n,i),e.abrupt("return",i.slice(0,o));case 7:throw new Error("Invalid account name: ".concat(t));case 8:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})},{key:"decode",value:function(e,t){return this.decodeUnchecked(e,t)}},{key:"decodeUnchecked",value:function(e,t){switch(e){case"token":return function(e){return ai.decode(e)}(t);case"mint":return function(e){return ri.decode(e)}(t);default:throw new Error("Invalid account name: ".concat(e))}}},{key:"memcmp",value:function(e,t){switch(e){case"token":return{dataSize:165};case"mint":return{dataSize:82};default:throw new Error("Invalid account name: ".concat(e))}}},{key:"size",value:function(e){var t;return null!==(t=sa(this.idl,e))&&void 0!==t?t:0}}]),e}(),ri=Fa([Xa(Ya(),"mintAuthority"),Wa("supply"),ja("decimals"),new $a(ja(),(function(e){if(0===e)return!1;if(1===e)return!0;throw new Error("Invalid bool: "+e)}),(function(e){return e?1:0}),"isInitialized"),Xa(Ya(),"freezeAuthority")]),ai=Fa([Ya("mint"),Ya("authority"),Wa("amount"),Xa(Ya(),"delegate"),ja("state"),Xa(Wa(),"isNative"),Wa("delegatedAmount"),Xa(Ya(),"closeAuthority")]),ii=function(){function e(t){(0,h.Z)(this,e)}return(0,b.Z)(e,[{key:"decode",value:function(e){throw new Error("SPL token program does not have events")}}]),e}(),oi=function(){function e(t){(0,h.Z)(this,e)}return(0,b.Z)(e,[{key:"encode",value:function(e,t){throw new Error("SPL token does not have user-defined types")}},{key:"decode",value:function(e,t){throw new Error("SPL token does not have user-defined types")}}]),e}(),si=(0,b.Z)((function e(t){(0,h.Z)(this,e),this.instruction=new qa(t),this.accounts=new ni(t),this.events=new ii(t),this.state=new Ga(t),this.types=new oi(t)})),ci=function(){function e(t){(0,h.Z)(this,e)}return(0,b.Z)(e,[{key:"encode",value:function(e,t){switch(C()(e)){case"createAccount":return pi({createAccount:{lamports:(n=t).lamports,space:n.space,owner:n.owner.toBuffer()}});case"assign":return pi({assign:{owner:t.owner.toBuffer()}});case"transfer":return pi({transfer:{lamports:t.lamports}});case"createAccountWithSeed":return function(e){var t=e.base,n=e.seed,r=e.lamports,a=e.space,i=e.owner;return pi({createAccountWithSeed:{base:t.toBuffer(),seed:n,lamports:r,space:a,owner:i.toBuffer()}},li.getVariant(3).span+n.length)}(t);case"advanceNonceAccount":return pi({advanceNonceAccount:{authorized:t.authorized.toBuffer()}});case"withdrawNonceAccount":return pi({withdrawNonceAccount:{lamports:t.lamports}});case"initializeNonceAccount":return pi({initializeNonceAccount:{authorized:t.authorized.toBuffer()}});case"authorizeNonceAccount":return pi({authorizeNonceAccount:{authorized:t.authorized.toBuffer()}});case"allocate":return pi({allocate:{space:t.space}});case"allocateWithSeed":return function(e){var t=e.base,n=e.seed,r=e.space,a=e.owner;return pi({allocateWithSeed:{base:t.toBuffer(),seed:n,space:r,owner:a.toBuffer()}},li.getVariant(9).span+n.length)}(t);case"assignWithSeed":return function(e){var t=e.base,n=e.seed,r=e.owner;return pi({assignWithSeed:{base:t.toBuffer(),seed:n,owner:r.toBuffer()}},li.getVariant(10).span+n.length)}(t);case"transferWithSeed":return function(e){var t=e.lamports,n=e.seed;return pi({transferWithSeed:{lamports:t,seed:n,owner:e.owner.toBuffer()}},li.getVariant(11).span+n.length)}(t);default:throw new Error("Invalid instruction: ".concat(e))}var n}},{key:"encodeState",value:function(e,t){throw new Error("System does not have state")}}]),e}(),ui=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e){var r;return(0,h.Z)(this,n),(r=t.call(this,-1,e)).property=e,r.layout=Fa([Ua("length"),Ua("lengthPadding"),za(Da(Ua(),-8),"chars")],r.property),r}return(0,b.Z)(n,[{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null==e)return this.layout.span;var r={chars:jn.from(e,"utf8")};return this.layout.encode(r,t,n)}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.decode(e,t).chars.toString()}},{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Ua().span+Ua().span+new(_())(new Uint8Array(e).slice(t,t+4),10,"le").toNumber()}}]),n}(Aa);function fi(e){return new ui(e)}function di(e){return za(32,e)}var li=Ha(Ua("instruction"));function pi(e,t){var n=jn.alloc(null!=t?t:bi),r=li.encode(e,n);return void 0===t?n.slice(0,r):n}li.addVariant(0,Fa([Za("lamports"),Za("space"),di("owner")]),"createAccount"),li.addVariant(1,Fa([di("owner")]),"assign"),li.addVariant(2,Fa([Za("lamports")]),"transfer"),li.addVariant(3,Fa([di("base"),fi("seed"),Za("lamports"),Za("space"),di("owner")]),"createAccountWithSeed"),li.addVariant(4,Fa([di("authorized")]),"advanceNonceAccount"),li.addVariant(5,Fa([Za("lamports")]),"withdrawNonceAccount"),li.addVariant(6,Fa([di("authorized")]),"initializeNonceAccount"),li.addVariant(7,Fa([di("authorized")]),"authorizeNonceAccount"),li.addVariant(8,Fa([Za("space")]),"allocate"),li.addVariant(9,Fa([di("base"),fi("seed"),Za("space"),di("owner")]),"allocateWithSeed"),li.addVariant(10,Fa([di("base"),fi("seed"),di("owner")]),"assignWithSeed"),li.addVariant(11,Fa([Za("lamports"),fi("seed"),di("owner")]),"transferWithSeed");var bi=Math.max.apply(Math,(0,l.Z)(Object.values(li.registry).map((function(e){return e.span})))),hi=function(){function e(t){(0,h.Z)(this,e)}return(0,b.Z)(e,[{key:"encode",value:function(e,t){throw new Error("System does not have state")}},{key:"decode",value:function(e){throw new Error("System does not have state")}}]),e}(),yi=function(){function e(t){(0,h.Z)(this,e),this.idl=t}var t;return(0,b.Z)(e,[{key:"encode",value:(t=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r,a;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("nonce"!==t){e.next=3;break}return r=jn.alloc(w.NONCE_ACCOUNT_LENGTH),a=gi.encode(n,r),e.abrupt("return",r.slice(0,a));case 3:throw new Error("Invalid account name: ".concat(t));case 4:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})},{key:"decode",value:function(e,t){return this.decodeUnchecked(e,t)}},{key:"decodeUnchecked",value:function(e,t){if("nonce"===e)return function(e){return gi.decode(e)}(t);throw new Error("Invalid account name: ".concat(e))}},{key:"memcmp",value:function(e,t){if("nonce"===e)return{dataSize:w.NONCE_ACCOUNT_LENGTH};throw new Error("Invalid account name: ".concat(e))}},{key:"size",value:function(e){var t;return null!==(t=sa(this.idl,e))&&void 0!==t?t:0}}]),e}(),mi=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r,a,i){var o;return(0,h.Z)(this,n),(o=t.call(this,e.span,i)).layout=e,o.decoder=r,o.encoder=a,o}return(0,b.Z)(n,[{key:"decode",value:function(e,t){return this.decoder(this.layout.decode(e,t))}},{key:"encode",value:function(e,t,n){return this.layout.encode(this.encoder(e),t,n)}},{key:"getSpan",value:function(e,t){return this.layout.getSpan(e,t)}}]),n}(Aa);function vi(e){return new mi(za(32),(function(e){return new w.PublicKey(e)}),(function(e){return e.toBuffer()}),e)}var gi=Fa([Ua("version"),Ua("state"),vi("authorizedPubkey"),vi("nonce"),Fa([La("lamportsPerSignature")],"feeCalculator")]),Ai=function(){function e(t){(0,h.Z)(this,e)}return(0,b.Z)(e,[{key:"decode",value:function(e){throw new Error("System program does not have events")}}]),e}(),wi=function(){function e(t){(0,h.Z)(this,e)}return(0,b.Z)(e,[{key:"encode",value:function(e,t){throw new Error("System does not have user-defined types")}},{key:"decode",value:function(e,t){throw new Error("System does not have user-defined types")}}]),e}(),xi=(0,b.Z)((function e(t){(0,h.Z)(this,e),this.instruction=new ci(t),this.accounts=new yi(t),this.events=new Ai(t),this.state=new hi(t),this.types=new wi(t)})),_i=Object.freeze({__proto__:null,hash:function(e){return(0,T.sha256)(e)}});function ki(e,t,n){var r=A.Buffer.concat([e.toBuffer(),A.Buffer.from(t),n.toBuffer()]),a=T.sha256.digest(r);return new w.PublicKey(A.Buffer.from(a))}function Si(e,t){var n=A.Buffer.alloc(0);e.forEach((function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");n=A.Buffer.concat([n,Ei(e)])})),n=A.Buffer.concat([n,t.toBuffer(),A.Buffer.from("ProgramDerivedAddress")]);var r=(0,T.sha256)(new Uint8Array(n)),a=new(_())(r,16).toArray(void 0,32);if(w.PublicKey.isOnCurve(new Uint8Array(a)))throw new Error("Invalid seeds, address must fall off the curve");return new w.PublicKey(a)}function Ii(e,t){for(var n,r=255;0!=r;){try{n=Si(e.concat(A.Buffer.from([r])),t)}catch(e){if(e instanceof TypeError)throw e;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}var Ei=function(e){return e instanceof A.Buffer?e:e instanceof Uint8Array?A.Buffer.from(e.buffer,e.byteOffset,e.byteLength):A.Buffer.from(e)};function Ci(e){return Ti.apply(this,arguments)}function Ti(){return Ti=(0,o.Z)((0,u.Z)().mark((function e(t){var n,r,a,i,o,s,f,d=arguments;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=[A.Buffer.from([97,110,99,104,111,114])],r=d.length,a=new Array(r>1?r-1:0),i=1;i-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function b(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function h(e){var t=new FileReader,n=b(t);return t.readAsArrayBuffer(e),n}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&a&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=b(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function A(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}})),t}function w(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];w.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function _(e,n){return new Promise((function(r,i){var o=new g(e,n);if(o.signal&&o.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var a="response"in s?s.response:s.responseText;r(new w(a,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&a&&(s.responseType="blob"),o.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",c)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}_.polyfill=!0,e.fetch||(e.fetch=_,e.Headers=l,e.Request=g,e.Response=w),t.Headers=l,t.Request=g,t.Response=w,t.fetch=_,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=r;(t=a.fetch).default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t}(Ni,Ni.exports);var Di=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Ni.exports);function ji(e,t){return Ui.apply(this,arguments)}function Ui(){return Ui=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r,a,i,o,s,c;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getAccountInfo(n);case 2:if(null!==(r=e.sent)){e.next=5;break}throw new Error("program account not found");case 5:return a=Zi(r.data),i=a.program,e.next=9,t.getAccountInfo(i.programdataAddress);case 9:if(null!==(o=e.sent)){e.next=12;break}throw new Error("program data account not found");case 12:return s=Zi(o.data),c=s.programData,e.abrupt("return",c);case 14:case"end":return e.stop()}}),e)}))),Ui.apply(this,arguments)}var Li=O.rustEnum([O.struct([],"uninitialized"),O.struct([O.option(O.publicKey(),"authorityAddress")],"buffer"),O.struct([O.publicKey("programdataAddress")],"program"),O.struct([O.u64("slot"),O.option(O.publicKey(),"upgradeAuthorityAddress")],"programData")],void 0,O.u32());function Zi(e){return Li.decode(e)}var Fi,Hi=Object.freeze({__proto__:null,verifiedBuild:(Fi=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r,a,i,o,s,f,d,l,p=arguments;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=p.length>2&&void 0!==p[2]?p[2]:5,a="https://api.apr.dev/api/v0/program/".concat(n.toString(),"/latest?limit=").concat(r),e.next=4,Promise.all([ji(t,n),Di(a)]);case 4:return i=e.sent,o=(0,c.Z)(i,2),s=o[0],f=o[1],e.next=10,f.json();case 10:if(d=e.sent.filter((function(e){return!e.aborted&&"Built"===e.state&&"Verified"===e.verified})),0!==d.length){e.next=13;break}return e.abrupt("return",null);case 13:return l=d[0],e.abrupt("return",s.slot.toNumber()!==l.verified_slot?null:l);case 15:case"end":return e.stop()}}),e)}))),function(e,t){return Fi.apply(this,arguments)}),fetchData:ji,decodeUpgradeableLoaderState:Zi}),zi=Object.freeze({__proto__:null,sha256:_i,rpc:Mr,publicKey:Pi,bytes:Gn,token:Ri,features:qr,registry:Hi}),qi=O.struct([O.publicKey("authority"),O.vecU8("data")]);function Qi(e,t){var n,r,a={},i=e.args?e.args.length:0;if(t.length>i){if(t.length!==i+1)throw new Error("provided too many arguments ".concat(t," to instruction ").concat(null==e?void 0:e.name," expecting: ").concat(null!==(r=null===(n=e.args)||void 0===n?void 0:n.map((function(e){return e.name})))&&void 0!==r?r:[]));a=t.pop()}return[t,a]}var Ki=function(){function e(){(0,h.Z)(this,e)}return(0,b.Z)(e,null,[{key:"build",value:function(t,n,r){if("_inner"===t.name)throw new Qr("the _inner name is reserved");var a=function e(){for(var a=arguments.length,i=new Array(a),o=0;o2&&void 0!==arguments[2]?arguments[2]:Lr(),a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new ma(t);(0,h.Z)(this,e),this.provider=r,this.coder=a,this._idl=t,this._programId=n,this._address=Wi(n),this._sub=null;var i=function(){var e,i={},o={},s={};return null===(e=t.state)||void 0===e||e.methods.forEach((function(e){var u=Ki.build(e,(function(e,t){return a.instruction.encodeState(e,t)}),n);u.accounts=function(t){var a=function(e,t,n,r){if("new"===n.name){var a=Ii([],e),i=(0,c.Z)(a,1)[0];if(void 0===t.wallet)throw new Error("This function requires the Provider interface implementor to have a 'wallet' field.");return[{pubkey:t.wallet.publicKey,isWritable:!1,isSigner:!0},{pubkey:Wi(e),isWritable:!0,isSigner:!1},{pubkey:i,isWritable:!1,isSigner:!1},{pubkey:w.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:e,isWritable:!1,isSigner:!1}]}return Xn(n.accounts,r),[{pubkey:Wi(e),isWritable:!0,isSigner:!1}]}(n,r,e,t);return a.concat(Ki.accountsArray(t,e.accounts,e.name))};var f=Ji.build(e,u),d=Vi.build(e,f,Wn(t),r),l=C()(e.name);i[l]=u,o[l]=f,s[l]=d})),[i,o,s]}(),o=(0,c.Z)(i,3),s=o[0],u=o[1],f=o[2];this.instruction=s,this.transaction=u,this.rpc=f}var t;return(0,b.Z)(e,[{key:"programId",get:function(){return this._programId}},{key:"fetch",value:(t=(0,o.Z)((0,u.Z)().mark((function e(){var t,n,r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.address(),e.next=3,this.provider.connection.getAccountInfo(t);case 3:if(null!==(n=e.sent)){e.next=6;break}throw new Error("Account does not exist ".concat(t.toString()));case 6:if(r=this._idl.state){e.next=9;break}throw new Error("State is not specified in IDL.");case 9:return e.next=11,ba(r.struct.name);case 11:if(!e.sent.compare(n.data.slice(0,8))){e.next=13;break}throw new Error("Invalid account discriminator");case 13:return e.abrupt("return",this.coder.state.decode(n.data));case 14:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"address",value:function(){return this._address}},{key:"subscribe",value:function(e){var t=this;if(null!==this._sub)return this._sub.ee;var n=new(Nn()),r=this.provider.connection.onAccountChange(this.address(),(function(e){var r=t.coder.state.decode(e.data);n.emit("change",r)}),e);return this._sub={ee:n,listener:r},n}},{key:"unsubscribe",value:function(){var e=this;null!==this._sub&&this.provider.connection.removeAccountChangeListener(this._sub.listener).then((0,o.Z)((0,u.Z)().mark((function t(){return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e._sub=null;case 1:case"end":return t.stop()}}),t)})))).catch(console.error)}}]),e}();function Wi(e){var t=Ii([],e);return ki((0,c.Z)(t,1)[0],"unversioned",e)}var Yi=function(){function e(t,n,r,a,i){(0,h.Z)(this,e),this._idlAccount=n,this._programId=r,this._provider=null!=a?a:Lr(),this._coder=null!=i?i:new ma(t),this._size=this._coder.accounts.size(n)}var t,n,r,a,i,s,c,f,d;return(0,b.Z)(e,[{key:"size",get:function(){return this._size}},{key:"programId",get:function(){return this._programId}},{key:"provider",get:function(){return this._provider}},{key:"coder",get:function(){return this._coder}},{key:"fetchNullable",value:(d=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountInfo(t,n);case 2:return r=e.sent,e.abrupt("return",null===r?null:this._coder.accounts.decode(this._idlAccount.name,r.data));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"fetch",value:(f=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchNullable(t,n);case 2:if(null!==(r=e.sent)){e.next=5;break}throw new Error("Account does not exist ".concat(t.toString()));case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"fetchMultiple",value:(c=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ar(this._provider.connection,t.map((function(e){return $n(e)})),n);case 2:return e.abrupt("return",e.sent.map((function(e){return null==e?null:r._coder.accounts.decode(r._idlAccount.name,null==e?void 0:e.account.data)})));case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"all",value:(s=(0,o.Z)((0,u.Z)().mark((function e(t){var n=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._provider.connection.getProgramAccounts(this._programId,{commitment:this._provider.connection.commitment,filters:[{memcmp:this.coder.accounts.memcmp(this._idlAccount.name,t instanceof jn?t:void 0)}].concat((0,l.Z)(Array.isArray(t)?t:[]))});case 2:return e.abrupt("return",e.sent.map((function(e){var t=e.pubkey,r=e.account;return{publicKey:t,account:n._coder.accounts.decode(n._idlAccount.name,r.data)}})));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"subscribe",value:function(e,t){var n=this,r=Xi.get(e.toString());if(r)return r.ee;var a=new(Nn());e=$n(e);var i=this._provider.connection.onAccountChange(e,(function(e){var t=n._coder.accounts.decode(n._idlAccount.name,e.data);a.emit("change",t)}),t);return Xi.set(e.toString(),{ee:a,listener:i}),a}},{key:"unsubscribe",value:(i=(0,o.Z)((0,u.Z)().mark((function e(t){var n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=Xi.get(t.toString()))){e.next=8;break}if(e.t0=Xi,!e.t0){e.next=6;break}return e.next=6,this._provider.connection.removeAccountChangeListener(n.listener).then((function(){Xi.delete(t.toString())})).catch(console.error);case 6:e.next=9;break;case 8:console.warn("Address is not subscribed");case 9:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"createInstruction",value:(a=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.size,void 0!==this._provider.wallet){e.next=3;break}throw new Error("This function requires the Provider interface implementor to have a 'wallet' field.");case 3:return e.t0=w.SystemProgram,e.t1=this._provider.wallet.publicKey,e.t2=t.publicKey,e.t3=null!=n?n:r,e.next=9,this._provider.connection.getMinimumBalanceForRentExemption(null!=n?n:r);case 9:return e.t4=e.sent,e.t5=this._programId,e.t6={fromPubkey:e.t1,newAccountPubkey:e.t2,space:e.t3,lamports:e.t4,programId:e.t5},e.abrupt("return",e.t0.createAccount.call(e.t0,e.t6));case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"associated",value:(r=(0,o.Z)((0,u.Z)().mark((function e(){var t,n=arguments;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.associatedAddress.apply(this,n);case 2:return t=e.sent,e.next=5,this.fetch(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"associatedAddress",value:(n=(0,o.Z)((0,u.Z)().mark((function e(){var t,n,r,a=arguments;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=a.length,n=new Array(t),r=0;r0&&e.program()===this.programId.toString()?this.handleProgramLog(t):[null].concat((0,l.Z)(this.handleSystemLog(t)))}},{key:"handleProgramLog",value:function(e){if(e.startsWith("Program log: ")||e.startsWith("Program data: ")){var t=e.startsWith("Program log: ")?e.slice($i):e.slice(eo);return[this.coder.events.decode(t),null,!1]}return[null].concat((0,l.Z)(this.handleSystemLog(e)))}},{key:"handleSystemLog",value:function(e){var t=e.split(":")[0];return null!==t.match(/^Program (.*) success/g)?[null,!0]:t.startsWith("Program ".concat(this.programId.toString()," invoke"))?[this.programId.toString(),!1]:t.includes("invoke")?["cpi",!1]:[null,!1]}}]),e}(),ro=function(){function e(){(0,h.Z)(this,e),this.stack=[]}return(0,b.Z)(e,[{key:"program",value:function(){return Dn.ok(this.stack.length>0),this.stack[this.stack.length-1]}},{key:"push",value:function(e){this.stack.push(e)}},{key:"pop",value:function(){Dn.ok(this.stack.length>0),this.stack.pop()}}]),e}(),ao=function(){function e(t){(0,h.Z)(this,e),this.logs=t}return(0,b.Z)(e,[{key:"next",value:function(){if(0===this.logs.length)return null;var e=this.logs[0];return this.logs=this.logs.slice(1),e}}]),e}(),io=new w.PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");function oo(){return new si(so)}var so={version:"0.1.0",name:"spl_token",instructions:[{name:"initializeMint",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[{name:"decimals",type:"u8"},{name:"mintAuthority",type:"publicKey"},{name:"freezeAuthority",type:{coption:"publicKey"}}]},{name:"initializeAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[]},{name:"initializeMultisig",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[{name:"m",type:"u8"}]},{name:"transfer",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"destination",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"approve",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"delegate",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"revoke",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[]},{name:"setAuthority",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"authorityType",type:"u8"},{name:"newAuthority",type:{coption:"publicKey"}}]},{name:"mintTo",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"to",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"burn",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"closeAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"destination",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!1}],args:[]},{name:"freezeAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[]},{name:"thawAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[]},{name:"transferChecked",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"destination",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"approveChecked",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"delegate",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"mintToChecked",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"to",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"burnChecked",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"initializeAccount2",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[{name:"authority",type:"publicKey"}]},{name:"syncNative",accounts:[{name:"account",isMut:!0,isSigner:!1}],args:[]},{name:"initializeAccount3",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1}],args:[{name:"authority",type:"publicKey"}]},{name:"initializeMultisig2",accounts:[{name:"account",isMut:!0,isSigner:!1}],args:[{name:"m",type:"u8"}]},{name:"initializeMint2",accounts:[{name:"mint",isMut:!0,isSigner:!1}],args:[{name:"decimals",type:"u8"},{name:"mintAuthority",type:"publicKey"},{name:"freezeAuthority",type:{coption:"publicKey"}}]}],accounts:[{name:"mint",type:{kind:"struct",fields:[{name:"mintAuthority",type:{coption:"publicKey"}},{name:"supply",type:"u64"},{name:"decimals",type:"u8"},{name:"isInitialized",type:"bool"},{name:"freezeAuthority",type:{coption:"publicKey"}}]}},{name:"token",type:{kind:"struct",fields:[{name:"mint",type:"publicKey"},{name:"authority",type:"publicKey"},{name:"amount",type:"u64"},{name:"delegate",type:{coption:"publicKey"}},{name:"state",type:"u8"},{name:"isNative",type:{coption:"u64"}},{name:"delegatedAmount",type:"u64"},{name:"closeAuthority",type:{coption:"publicKey"}}]}}]},co=function(){function e(t,n,r,a,i,o){(0,h.Z)(this,e),this._args=t,this._accounts=n,this._provider=r,this._programId=a,this._idlIx=i,this._accountStore=new uo(r,o)}var t,n,r,a,i,s,f;return(0,b.Z)(e,[{key:"resolve",value:(f=(0,o.Z)((0,u.Z)().mark((function t(){var n,r,a,i,o,s;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=0;case 1:if(!(n0&&!this._accounts[s],!t.t0){t.next=20;break}return t.next=20,this.autoPopulatePda(o);case 20:i+=1,t.next=14;break;case 23:case"end":return t.stop()}}),t,this)}))),function(){return f.apply(this,arguments)})},{key:"autoPopulatePda",value:(s=(0,o.Z)((0,u.Z)().mark((function e(t){var n,r,a,i,o,s=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.pda&&t.pda.seeds){e.next=2;break}throw new Error("Must have seeds");case 2:return e.next=4,Promise.all(t.pda.seeds.map((function(e){return s.toBuffer(e)})));case 4:return n=e.sent,e.next=7,this.parseProgramId(t);case 7:return r=e.sent,e.next=10,w.PublicKey.findProgramAddress(n,r);case 10:a=e.sent,i=(0,c.Z)(a,1),o=i[0],this._accounts[C()(t.name)]=o;case 14:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"parseProgramId",value:(i=(0,o.Z)((0,u.Z)().mark((function e(t){var n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(n=t.pda)||void 0===n?void 0:n.programId){e.next=2;break}return e.abrupt("return",this._programId);case 2:e.t0=t.pda.programId.kind,e.next="const"===e.t0?5:"arg"===e.t0?6:"account"===e.t0?7:10;break;case 5:return e.abrupt("return",new w.PublicKey(this.toBufferConst(t.pda.programId.value)));case 6:return e.abrupt("return",this.argValue(t.pda.programId));case 7:return e.next=9,this.accountValue(t.pda.programId);case 9:return e.abrupt("return",e.sent);case 10:throw new Error("Unexpected program seed kind: ".concat(t.pda.programId.kind));case 11:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"toBuffer",value:(a=(0,o.Z)((0,u.Z)().mark((function e(t){return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.kind,e.next="const"===e.t0?3:"arg"===e.t0?4:"account"===e.t0?7:10;break;case 3:return e.abrupt("return",this.toBufferConst(t));case 4:return e.next=6,this.toBufferArg(t);case 6:case 9:return e.abrupt("return",e.sent);case 7:return e.next=9,this.toBufferAccount(t);case 10:throw new Error("Unexpected seed kind: ".concat(t.kind));case 11:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"toBufferConst",value:function(e){return this.toBufferValue(e.type,e.value)}},{key:"toBufferArg",value:(r=(0,o.Z)((0,u.Z)().mark((function e(t){var n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.argValue(t),e.abrupt("return",this.toBufferValue(t.type,n));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"argValue",value:function(e){var t=C()(e.path.split(".")[0]),n=this._idlIx.args.findIndex((function(e){return e.name===t}));if(-1===n)throw new Error("Unable to find argument for seed: ".concat(t));return this._args[n]}},{key:"toBufferAccount",value:(n=(0,o.Z)((0,u.Z)().mark((function e(t){var n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.accountValue(t);case 2:return n=e.sent,e.abrupt("return",this.toBufferValue(t.type,n));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"accountValue",value:(t=(0,o.Z)((0,u.Z)().mark((function e(t){var n,r,a,i;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.path.split("."),r=n[0],a=this._accounts[C()(r)],1!==n.length){e.next=3;break}return e.abrupt("return",a);case 3:return e.next=5,this._accountStore.fetchAccount(t.account,a);case 5:return i=e.sent,e.abrupt("return",this.parseAccountValue(i,n.slice(1)));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"parseAccountValue",value:function(e,t){for(var n;t.length>0;)n=e[C()(t[0])],t=t.slice(1);return n}},{key:"toBufferValue",value:function(e,t){switch(e){case"u8":return jn.from([t]);case"u16":var n=jn.alloc(2);return n.writeUInt16LE(t),n;case"u32":var r=jn.alloc(4);return r.writeUInt32LE(t),r;case"u64":var a=jn.alloc(8);return a.writeBigUInt64LE(BigInt(t)),a;case"string":return jn.from(zn(t));case"publicKey":return t.toBuffer();default:if(e.array)return jn.from(t);throw new Error("Unexpected seed type: ".concat(e))}}}]),e}();co.CONST_ACCOUNTS={associatedTokenProgram:Bi,rent:w.SYSVAR_RENT_PUBKEY,systemProgram:w.SystemProgram.programId,tokenProgram:Mi};var uo=function(){function e(t,n){(0,h.Z)(this,e),this._provider=t,this._accounts=n,this._cache=new Map}var t;return(0,b.Z)(e,[{key:"fetchAccount",value:(t=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r,a,i,o;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.toString(),this._cache.has(r)){e.next=14;break}if("TokenAccount"!==t){e.next=12;break}return e.next=5,this._provider.connection.getAccountInfo(n);case 5:if(null!==(a=e.sent)){e.next=8;break}throw new Error("invalid account info for ".concat(r));case 8:i=oo().accounts.decode("token",a.data),this._cache.set(r,i),e.next=14;break;case 12:o=this._accounts[C()(t)].fetch(n),this._cache.set(r,o);case 14:return e.abrupt("return",this._cache.get(r));case 15:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})}]),e}(),fo=function(){function e(){(0,h.Z)(this,e)}return(0,b.Z)(e,null,[{key:"build",value:function(e,t,n,r,a,i,o,s,c){return function(){for(var u=arguments.length,f=new Array(u),d=0;d1&&void 0!==arguments[1]?arguments[1]:0,n=new d.default(this.blob.decode(e,t),10,"le");return this.signed?n.fromTwos(8*this.span).clone():n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.signed&&(e=e.toTwos(8*this.span)),this.blob.encode(e.toArrayLike(r,"le",this.span),t,n)}}]),n}(u.Layout);function b(e){return new p(8,!1,e)}t.u64=b,t.i64=function(e){return new p(8,!0,e)},t.u128=function(e){return new p(16,!1,e)},t.i128=function(e){return new p(16,!0,e)};var h=function(e){o(n,e);var t=s(n);function n(e,r,i,o){var s;return a(this,n),(s=t.call(this,e.span,o)).layout=e,s.decoder=r,s.encoder=i,s}return i(n,[{key:"decode",value:function(e,t){return this.decoder(this.layout.decode(e,t))}},{key:"encode",value:function(e,t,n){return this.layout.encode(this.encoder(e),t,n)}},{key:"getSpan",value:function(e,t){return this.layout.getSpan(e,t)}}]),n}(u.Layout);t.publicKey=function(e){return new h(u.blob(32),(function(e){return new f.PublicKey(e)}),(function(e){return e.toBuffer()}),e)};var y=function(e){o(n,e);var t=s(n);function n(e,r){var i;return a(this,n),(i=t.call(this,-1,r)).layout=e,i.discriminator=u.u8(),i}return i(n,[{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null==e?this.discriminator.encode(0,t,n):(this.discriminator.encode(1,t,n),this.layout.encode(e,t,n+1)+1)}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return null;if(1===n)return this.layout.decode(e,t+1);throw new Error("Invalid option "+this.property)}},{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return 1;if(1===n)return this.layout.getSpan(e,t+1)+1;throw new Error("Invalid option "+this.property)}}]),n}(u.Layout);function m(e){if(0===e)return!1;if(1===e)return!0;throw new Error("Invalid bool: "+e)}function v(e){return e?1:0}function g(e){var t=u.u32("length"),n=u.struct([t,u.blob(u.offset(t,-t.span),"data")]);return new h(n,(function(e){return e.data}),(function(e){return{data:e}}),e)}t.option=function(e,t){return new y(e,t)},t.bool=function(e){return new h(u.u8(),m,v,e)},t.vec=function(e,t){var n=u.u32("length"),r=u.struct([n,u.seq(e,u.offset(n,-n.span),"values")]);return new h(r,(function(e){return e.values}),(function(e){return{values:e}}),t)},t.tagged=function(e,t,n){var r=u.struct([b("tag"),t.replicate("data")]);return new h(r,(function(t){var n=t.tag,r=t.data;if(!n.eq(e))throw new Error("Invalid tag, expected: "+e.toString("hex")+", got: "+n.toString("hex"));return r}),(function(t){return{tag:e,data:t}}),n)},t.vecU8=g,t.str=function(e){return new h(g(),(function(e){return e.toString("utf-8")}),(function(e){return r.from(e,"utf-8")}),e)},t.rustEnum=function(e,t,n){var r=u.union(null!=n?n:u.u8(),t);return e.forEach((function(e,t){return r.addVariant(t,e,e.property)})),r},t.array=function(e,t,n){var r=u.struct([u.seq(e,t,"values")]);return new h(r,(function(e){return e.values}),(function(e){return{values:e}}),n)};var A=function(e){o(n,e);var t=s(n);function n(e,r,i){var o;return a(this,n),(o=t.call(this,e.span+r.span,i)).keyLayout=e,o.valueLayout=r,o}return i(n,[{key:"decode",value:function(e,t){return t=t||0,[this.keyLayout.decode(e,t),this.valueLayout.decode(e,t+this.keyLayout.getSpan(e,t))]}},{key:"encode",value:function(e,t,n){n=n||0;var r=this.keyLayout.encode(e[0],t,n);return r+this.valueLayout.encode(e[1],t,n+r)}},{key:"getSpan",value:function(e,t){return this.keyLayout.getSpan(e,t)+this.valueLayout.getSpan(e,t)}}]),n}(u.Layout);t.map=function(e,t,n){var r=u.u32("length"),a=u.struct([r,u.seq(new A(e,t),u.offset(r,-r.span),"values")]);return new h(a,(function(e){var t=e.values;return new Map(t)}),(function(e){return{values:Array.from(e.entries())}}),n)}},66696:function(e){"use strict";e.exports=function(e,t){for(var n=new Array(arguments.length-1),r=0,a=2,i=!0;a1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),a=new Array(123),i=0;i<64;)a[r[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;n.encode=function(e,t,n){for(var a,i=null,o=[],s=0,c=0;t>2],a=(3&u)<<4,c=1;break;case 1:o[s++]=r[a|u>>4],a=(15&u)<<2,c=2;break;case 2:o[s++]=r[a|u>>6],o[s++]=r[63&u],c=0}s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),s=0)}return c&&(o[s++]=r[a],o[s++]=61,1===c&&(o[s++]=61)),i?(s&&i.push(String.fromCharCode.apply(String,o.slice(0,s))),i.join("")):String.fromCharCode.apply(String,o.slice(0,s))};var o="invalid encoding";n.decode=function(e,t,n){for(var r,i=n,s=0,c=0;c1)break;if(void 0===(u=a[u]))throw Error(o);switch(s){case 0:r=u,s=1;break;case 1:t[n++]=r<<2|(48&u)>>4,r=u,s=2;break;case 2:t[n++]=(15&r)<<4|(60&u)>>2,r=u,s=3;break;case 3:t[n++]=(3&r)<<6|u,s=0}}if(1===s)throw Error(o);return n-i},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},19548:function(e){"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((a<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((a<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var i=Math.floor(Math.log(t)/Math.LN2);e((a<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,n,r)}}function o(e,t,n){var r=e(t,n),a=2*(r>>31)+1,i=r>>>23&255,o=8388607&r;return 255===i?o?NaN:a*(1/0):0===i?1401298464324817e-60*a*o:a*Math.pow(2,i-150)*(o+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=o.bind(null,a),e.readFloatBE=o.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function a(e,r,a){t[0]=e,r[a]=n[0],r[a+1]=n[1],r[a+2]=n[2],r[a+3]=n[3],r[a+4]=n[4],r[a+5]=n[5],r[a+6]=n[6],r[a+7]=n[7]}function i(e,r,a){t[0]=e,r[a]=n[7],r[a+1]=n[6],r[a+2]=n[5],r[a+3]=n[4],r[a+4]=n[3],r[a+5]=n[2],r[a+6]=n[1],r[a+7]=n[0]}function o(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?a:i,e.writeDoubleBE=r?i:a,e.readDoubleLE=r?o:s,e.readDoubleBE=r?s:o}():function(){function t(e,t,n,r,a,i){var o=r<0?1:0;if(o&&(r=-r),0===r)e(0,a,i+t),e(1/r>0?0:2147483648,a,i+n);else if(isNaN(r))e(0,a,i+t),e(2146959360,a,i+n);else if(r>17976931348623157e292)e(0,a,i+t),e((o<<31|2146435072)>>>0,a,i+n);else{var s;if(r<22250738585072014e-324)e((s=r/5e-324)>>>0,a,i+t),e((o<<31|s/4294967296)>>>0,a,i+n);else{var c=Math.floor(Math.log(r)/Math.LN2);1024===c&&(c=1023),e(4503599627370496*(s=r*Math.pow(2,-c))>>>0,a,i+t),e((o<<31|c+1023<<20|1048576*s&1048575)>>>0,a,i+n)}}}function o(e,t,n,r,a){var i=e(r,a+t),o=e(r,a+n),s=2*(o>>31)+1,c=o>>>20&2047,u=4294967296*(1048575&o)+i;return 2047===c?u?NaN:s*(1/0):0===c?5e-324*s*u:s*Math.pow(2,c-1075)*(u+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=o.bind(null,a,0,4),e.readDoubleBE=o.bind(null,i,4,0)}(),e}function n(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function r(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function a(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},36820:function(module){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},14464:function(e){"use strict";e.exports=function(e,t,n){var r=n||8192,a=r>>>1,i=null,o=r;return function(n){if(n<1||n>a)return e(n);o+n>r&&(i=e(r),o=0);var s=t.call(i,o,o+=n);return 7&o&&(o=1+(7|o)),s}}},92640:function(e,t){"use strict";var n=t;n.length=function(e){for(var t=0,n=0,r=0;r191&&r<224?i[o++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[o++]=55296+(r>>10),i[o++]=56320+(1023&r)):i[o++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],o>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,i)),o=0);return a?(o&&a.push(String.fromCharCode.apply(String,i.slice(0,o))),a.join("")):String.fromCharCode.apply(String,i.slice(0,o))},n.write=function(e,t,n){for(var r,a,i=n,o=0;o>6|192,t[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(a=e.charCodeAt(o+1)))?(r=65536+((1023&r)<<10)+(1023&a),++o,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-i}},39708:function(e,t,n){"use strict";var r=n(21146).default;function a(e){if(!Number.isSafeInteger(e))throw new Error("Wrong integer: ".concat(e))}function i(){for(var e=function(e,t){return function(n){return e(t(n))}},t=arguments.length,n=new Array(t),r=0;r=e.length)throw new Error("Digit index outside alphabet: ".concat(t," (alphabet: ").concat(e.length,")"));return e[t]}))},decode:function(t){if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("alphabet.decode input should be array of strings");return t.map((function(t){if("string"!=typeof t)throw new Error("alphabet.decode: not string element=".concat(t));var n=e.indexOf(t);if(-1===n)throw new Error('Unknown letter: "'.concat(t,'". Allowed: ').concat(e));return n}))}}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if("string"!=typeof e)throw new Error("join separator should be string");return{encode:function(t){if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("join.encode input should be array of strings");var n,a=r(t);try{for(a.s();!(n=a.n()).done;){var i=n.value;if("string"!=typeof i)throw new Error("join.encode: non-string input=".concat(i))}}catch(e){a.e(e)}finally{a.f()}return t.join(e)},decode:function(t){if("string"!=typeof t)throw new Error("join.decode input should be string");return t.split(e)}}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"=";if(a(e),"string"!=typeof t)throw new Error("padding chr should be string");return{encode:function(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");var a,i=r(n);try{for(i.s();!(a=i.n()).done;){var o=a.value;if("string"!=typeof o)throw new Error("padding.encode: non-string input=".concat(o))}}catch(e){i.e(e)}finally{i.f()}for(;n.length*e%8;)n.push(t);return n},decode:function(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");var a,i=r(n);try{for(i.s();!(a=i.n()).done;){var o=a.value;if("string"!=typeof o)throw new Error("padding.decode: non-string input=".concat(o))}}catch(e){i.e(e)}finally{i.f()}var s=n.length;if(s*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;s>0&&n[s-1]===t;s--)if(!((s-1)*e%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,s)}}}function u(e){if("function"!=typeof e)throw new Error("normalize fn should be function");return{encode:function(e){return e},decode:function(t){return e(t)}}}function f(e,t,n){if(t<2)throw new Error("convertRadix: wrong from=".concat(t,", base cannot be less than 2"));if(n<2)throw new Error("convertRadix: wrong to=".concat(n,", base cannot be less than 2"));if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];var r=0,i=[],o=Array.from(e);for(o.forEach((function(e){if(a(e),e<0||e>=t)throw new Error("Wrong integer: ".concat(e))}));;){for(var s=0,c=!0,u=r;u32)throw new Error("convertRadix2: wrong from=".concat(t));if(n<=0||n>32)throw new Error("convertRadix2: wrong to=".concat(n));if(l(t,n)>32)throw new Error("convertRadix2: carry overflow from=".concat(t," to=").concat(n," carryBits=").concat(l(t,n)));var o,s=0,c=0,u=Math.pow(2,n)-1,f=[],d=r(e);try{for(d.s();!(o=d.n()).done;){var p=o.value;if(a(p),p>=Math.pow(2,t))throw new Error("convertRadix2: invalid data word=".concat(p," from=").concat(t));if(s=s<32)throw new Error("convertRadix2: carry overflow pos=".concat(c," from=").concat(t));for(c+=t;c>=n;c-=n)f.push((s>>c-n&u)>>>0);s&=Math.pow(2,c)-1}}catch(e){d.e(e)}finally{d.f()}if(s=s<=t)throw new Error("Excess padding");if(!i&&s)throw new Error("Non-zero padding: ".concat(s));return i&&c>0&&f.push(s>>>0),f}function b(e){return a(e),{encode:function(t){if(!(t instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return f(Array.from(t),Math.pow(2,8),e)},decode:function(t){if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(f(t,e,Math.pow(2,8)))}}}function h(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(a(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(l(8,e)>32||l(e,8)>32)throw new Error("radix2: carry overflow");return{encode:function(n){if(!(n instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return p(Array.from(n),8,e,!t)},decode:function(n){if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(p(n,e,8,t))}}}function y(e){if("function"!=typeof e)throw new Error("unsafeWrapper fn should be function");return function(){try{for(var t=arguments.length,n=new Array(t),r=0;r>25,n=(33554431&e)<<5,r=0;r>r&1)&&(n^=w[r]);return n}function _(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=e.length,i=1,o=0;o126)throw new Error("Invalid prefix (".concat(e,")"));i=x(i)^s>>5}i=x(i);for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:90;if("string"!=typeof e)throw new Error("bech32.decode input should be string, not ".concat(typeof e));if(e.length<8||!1!==n&&e.length>n)throw new TypeError("Wrong string length: ".concat(e.length," (").concat(e,"). Expected (8..").concat(n,")"));var r=e.toLowerCase();if(e!==r&&e!==e.toUpperCase())throw new Error("String must be lowercase or uppercase");var a=(e=r).lastIndexOf("1");if(0===a||-1===a)throw new Error('Letter "1" must be present between prefix and data only');var i=e.slice(0,a),o=e.slice(a+1);if(o.length<6)throw new Error("Data must be at least 6 characters long");var s=A.decode(o).slice(0,-6),c=_(i,s,t);if(!o.endsWith(c))throw new Error("Invalid checksum in ".concat(e,': expected "').concat(c,'"'));return{prefix:i,words:s}}return{encode:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:90;if("string"!=typeof e)throw new Error("bech32.encode prefix should be string, not ".concat(typeof e));if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("bech32.encode words should be array of numbers, not ".concat(typeof n));var a=e.length+7+n.length;if(!1!==r&&a>r)throw new TypeError("Length ".concat(a," exceeds limit ").concat(r));return e=e.toLowerCase(),"".concat(e,"1").concat(A.encode(n)).concat(_(e,n,t))},decode:o,decodeToBytes:function(e){var t=o(e,!1),n=t.prefix,a=t.words;return{prefix:n,words:a,bytes:r(a)}},decodeUnsafe:y(o),fromWords:r,fromWordsUnsafe:i,toWords:a}}t.bech32=k("bech32"),t.bech32m=k("bech32m"),t.utf8={encode:function(e){return(new TextDecoder).decode(e)},decode:function(e){return(new TextEncoder).encode(e)}},t.hex=i(h(4),o("0123456789abcdef"),s(""),u((function(e){if("string"!=typeof e||e.length%2)throw new TypeError("hex.decode: expected string, got ".concat(typeof e," with length ").concat(e.length));return e.toLowerCase()})));var S={utf8:t.utf8,hex:t.hex,base16:t.base16,base32:t.base32,base64:t.base64,base64url:t.base64url,base58:t.base58,base58xmr:t.base58xmr},I="Invalid encoding type. Available types: ".concat(Object.keys(S).join(", "));t.bytesToString=function(e,t){if("string"!=typeof e||!S.hasOwnProperty(e))throw new TypeError(I);if(!(t instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return S[e].encode(t)},t.str=t.bytesToString,t.stringToBytes=function(e,t){if(!S.hasOwnProperty(e))throw new TypeError(I);if("string"!=typeof t)throw new TypeError("stringToBytes() expects string");return S[e].decode(t)},t.bytes=t.stringToBytes},88839:function(e,t,n){"use strict";t.Z1=void 0;n(87769);var r=n(25703),a=(n(49600),n(62066));n(51944),n(39708);function i(e){if("string"!=typeof e)throw new TypeError("Invalid mnemonic type: ".concat(typeof e));return e.normalize("NFKD")}function o(e){var t=i(e),n=t.split(" ");if(![12,15,18,21,24].includes(n.length))throw new Error("Invalid mnemonic");return{nfkd:t,words:n}}t.Z1=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,r.pbkdf2)(a.sha512,o(e).nfkd,function(e){return i("mnemonic".concat(e))}(t),{c:2048,dkLen:64})}},87769:function(e,t){"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Wrong positive integer: ".concat(e))}function r(e){if("boolean"!=typeof e)throw new Error("Expected boolean, not ".concat(e))}function a(e){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&!n.includes(e.length))throw new TypeError("Expected Uint8Array of length ".concat(n,", not of length=").concat(e.length))}function i(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){a(e);var n=t.outputLen;if(e.lengthr-i&&(this.process(n,0),i=0);for(var o=i;o>a&i),s=Number(n&i),c=r?4:0,u=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+u,s,r)}(n,r-8,BigInt(8*this.length),a),this.process(n,0);var s=(0,u.createView)(e),f=this.outputLen;if(f%4)throw new Error("_sha2: outputLen should be aligned to 32bit");var d=f/4,l=this.get();if(d>l.length)throw new Error("_sha2: outputLen bigger than state");for(var p=0;p1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function i(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length),i=0;i>>0)+(r>>>0);return{h:e+n+(a/Math.pow(2,32)|0)|0,l:0|a}}t.fromBig=a,t.split=i,t.toBig=function(e,t){return BigInt(e>>>0)<>>0)},t.add=o;var s={fromBig:a,split:i,toBig:t.toBig,shrSH:function(e,t,n){return e>>>n},shrSL:function(e,t,n){return e<<32-n|t>>>n},rotrSH:function(e,t,n){return e>>>n|t<<32-n},rotrSL:function(e,t,n){return e<<32-n|t>>>n},rotrBH:function(e,t,n){return e<<64-n|t>>>n-32},rotrBL:function(e,t,n){return e>>>n-32|t<<64-n},rotr32H:function(e,t){return t},rotr32L:function(e,t){return e},rotlSH:function(e,t,n){return e<>>32-n},rotlSL:function(e,t,n){return t<>>32-n},rotlBH:function(e,t,n){return t<>>64-n},rotlBL:function(e,t,n){return e<>>64-n},add:o,add3L:function(e,t,n){return(e>>>0)+(t>>>0)+(n>>>0)},add3H:function(e,t,n,r){return t+n+r+(e/Math.pow(2,32)|0)|0},add4L:function(e,t,n,r){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)},add4H:function(e,t,n,r,a){return t+n+r+a+(e/Math.pow(2,32)|0)|0},add5H:function(e,t,n,r,a,i){return t+n+r+a+i+(e/Math.pow(2,32)|0)|0},add5L:function(e,t,n,r,a){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(a>>>0)}};t.default=s},18933:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto={node:void 0,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0}},14280:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(17964).default,o=n(54790).default;Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=void 0;var s=n(87769),c=n(51944),u=function(e){i(n,e);var t=o(n);function n(e,a){var i;r(this,n),(i=t.call(this)).finished=!1,i.destroyed=!1,s.default.hash(e);var o=(0,c.toBytes)(a);if(i.iHash=e.create(),"function"!=typeof i.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");i.blockLen=i.iHash.blockLen,i.outputLen=i.iHash.outputLen;var u=i.blockLen,f=new Uint8Array(u);f.set(o.length>u?e.create().update(o).digest():o);for(var d=0;d= 1");var d=(0,s.toBytes)(t),l=(0,s.toBytes)(n),p=new Uint8Array(u),b=o.hmac.create(e,d),h=b._cloneInto().update(l);return{c:c,dkLen:u,asyncTick:f,DK:p,PRF:b,PRFSalt:h}}function u(e,t,n,r,a){return e.destroy(),t.destroy(),r&&r.destroy(),a.fill(0),n}function f(){return(f=a(r().mark((function e(t,n,a,i){var o,f,d,l,p,b,h,y,m,v,g,A,w,x;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=c(t,n,a,i),f=o.c,d=o.dkLen,l=o.asyncTick,p=o.DK,b=o.PRF,h=o.PRFSalt,m=new Uint8Array(4),v=(0,s.createView)(m),g=new Uint8Array(b.outputLen),A=r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=p.subarray(x,x+b.outputLen),v.setInt32(0,w,!1),(y=h._cloneInto(y)).update(m).digestInto(g),t.set(g.subarray(0,t.length)),e.next=6,(0,s.asyncLoop)(f-1,l,(function(e){b._cloneInto(y).update(g).digestInto(g);for(var n=0;n>>3,s=(0,c.rotr)(i,17)^(0,c.rotr)(i,19)^i>>>10;l[r]=s+l[r-7]+o+l[r-16]|0}for(var d,p=this.A,b=this.B,h=this.C,y=this.D,m=this.E,v=this.F,g=this.G,A=this.H,w=0;w<64;w++){var x=A+((0,c.rotr)(m,6)^(0,c.rotr)(m,11)^(0,c.rotr)(m,25))+((d=m)&v^~d&g)+f[w]+l[w]|0,_=((0,c.rotr)(p,2)^(0,c.rotr)(p,13)^(0,c.rotr)(p,22))+u(p,b,h)|0;A=g,g=v,v=m,m=y+x|0,y=h,h=b,b=p,p=x+_|0}p=p+this.A|0,b=b+this.B|0,h=h+this.C|0,y=y+this.D|0,m=m+this.E|0,v=v+this.F|0,g=g+this.G|0,A=A+this.H|0,this.set(p,b,h,y,m,v,g,A)}},{key:"roundClean",value:function(){l.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),n}(s.SHA2),b=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).A=-1056596264,e.B=914150663,e.C=812702999,e.D=-150054599,e.E=-4191439,e.F=1750603025,e.G=1694076839,e.H=-1090891868,e.outputLen=28,e}return a(n)}(p);t.sha256=(0,c.wrapConstructor)((function(){return new p})),t.sha224=(0,c.wrapConstructor)((function(){return new b}))},62066:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(17964).default,o=n(54790).default,s=n(10202).default;Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;var c=n(84537),u=n(69271),f=n(51944),d=s(u.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((function(e){return BigInt(e)}))),2),l=d[0],p=d[1],b=new Uint32Array(80),h=new Uint32Array(80),y=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this,128,64,16,!1)).Ah=1779033703,e.Al=-205731576,e.Bh=-1150833019,e.Bl=-2067093701,e.Ch=1013904242,e.Cl=-23791573,e.Dh=-1521486534,e.Dl=1595750129,e.Eh=1359893119,e.El=-1377402159,e.Fh=-1694144372,e.Fl=725511199,e.Gh=528734635,e.Gl=-79577749,e.Hh=1541459225,e.Hl=327033209,e}return a(n,[{key:"get",value:function(){return[this.Ah,this.Al,this.Bh,this.Bl,this.Ch,this.Cl,this.Dh,this.Dl,this.Eh,this.El,this.Fh,this.Fl,this.Gh,this.Gl,this.Hh,this.Hl]}},{key:"set",value:function(e,t,n,r,a,i,o,s,c,u,f,d,l,p,b,h){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|a,this.Cl=0|i,this.Dh=0|o,this.Dl=0|s,this.Eh=0|c,this.El=0|u,this.Fh=0|f,this.Fl=0|d,this.Gh=0|l,this.Gl=0|p,this.Hh=0|b,this.Hl=0|h}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)b[n]=e.getUint32(t),h[n]=e.getUint32(t+=4);for(var r=16;r<80;r++){var a=0|b[r-15],i=0|h[r-15],o=u.default.rotrSH(a,i,1)^u.default.rotrSH(a,i,8)^u.default.shrSH(a,i,7),s=u.default.rotrSL(a,i,1)^u.default.rotrSL(a,i,8)^u.default.shrSL(a,i,7),c=0|b[r-2],f=0|h[r-2],d=u.default.rotrSH(c,f,19)^u.default.rotrBH(c,f,61)^u.default.shrSH(c,f,6),y=u.default.rotrSL(c,f,19)^u.default.rotrBL(c,f,61)^u.default.shrSL(c,f,6),m=u.default.add4L(s,y,h[r-7],h[r-16]),v=u.default.add4H(m,o,d,b[r-7],b[r-16]);b[r]=0|v,h[r]=0|m}for(var g=this.Ah,A=this.Al,w=this.Bh,x=this.Bl,_=this.Ch,k=this.Cl,S=this.Dh,I=this.Dl,E=this.Eh,C=this.El,T=this.Fh,O=this.Fl,P=this.Gh,M=this.Gl,B=this.Hh,R=this.Hl,N=0;N<80;N++){var D=u.default.rotrSH(E,C,14)^u.default.rotrSH(E,C,18)^u.default.rotrBH(E,C,41),j=u.default.rotrSL(E,C,14)^u.default.rotrSL(E,C,18)^u.default.rotrBL(E,C,41),U=E&T^~E&P,L=C&O^~C&M,Z=u.default.add5L(R,j,L,p[N],h[N]),F=u.default.add5H(Z,B,D,U,l[N],b[N]),H=0|Z,z=u.default.rotrSH(g,A,28)^u.default.rotrBH(g,A,34)^u.default.rotrBH(g,A,39),q=u.default.rotrSL(g,A,28)^u.default.rotrBL(g,A,34)^u.default.rotrBL(g,A,39),Q=g&w^g&_^w&_,K=A&x^A&k^x&k;B=0|P,R=0|M,P=0|T,M=0|O,T=0|E,O=0|C;var V=u.default.add(0|S,0|I,0|F,0|H);E=V.h,C=V.l,S=0|_,I=0|k,_=0|w,k=0|x,w=0|g,x=0|A;var J=u.default.add3L(H,q,K);g=u.default.add3H(J,F,z,Q),A=0|J}var G=u.default.add(0|this.Ah,0|this.Al,0|g,0|A);g=G.h,A=G.l;var W=u.default.add(0|this.Bh,0|this.Bl,0|w,0|x);w=W.h,x=W.l;var Y=u.default.add(0|this.Ch,0|this.Cl,0|_,0|k);_=Y.h,k=Y.l;var X=u.default.add(0|this.Dh,0|this.Dl,0|S,0|I);S=X.h,I=X.l;var $=u.default.add(0|this.Eh,0|this.El,0|E,0|C);E=$.h,C=$.l;var ee=u.default.add(0|this.Fh,0|this.Fl,0|T,0|O);T=ee.h,O=ee.l;var te=u.default.add(0|this.Gh,0|this.Gl,0|P,0|M);P=te.h,M=te.l;var ne=u.default.add(0|this.Hh,0|this.Hl,0|B,0|R);B=ne.h,R=ne.l,this.set(g,A,w,x,_,k,S,I,E,C,T,O,P,M,B,R)}},{key:"roundClean",value:function(){b.fill(0),h.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),n}(c.SHA2);t.SHA512=y;var m=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).Ah=-1942145080,e.Al=424955298,e.Bh=1944164710,e.Bl=-1982016298,e.Ch=502970286,e.Cl=855612546,e.Dh=1738396948,e.Dl=1479516111,e.Eh=258812777,e.El=2077511080,e.Fh=2011393907,e.Fl=79989058,e.Gh=1067287976,e.Gl=1780299464,e.Hh=286451373,e.Hl=-1848208735,e.outputLen=28,e}return a(n)}(y),v=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).Ah=573645204,e.Al=-64227540,e.Bh=-1621794909,e.Bl=-934517566,e.Ch=596883563,e.Cl=1867755857,e.Dh=-1774684391,e.Dl=1497426621,e.Eh=-1775747358,e.El=-1467023389,e.Fh=-1101128155,e.Fl=1401305490,e.Gh=721525244,e.Gl=746961066,e.Hh=246885852,e.Hl=-2117784414,e.outputLen=32,e}return a(n)}(y),g=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).Ah=-876896931,e.Al=-1056596264,e.Bh=1654270250,e.Bl=914150663,e.Ch=-1856437926,e.Cl=812702999,e.Dh=355462360,e.Dl=-150054599,e.Eh=1731405415,e.El=-4191439,e.Fh=-1900787065,e.Fl=1750603025,e.Gh=-619958771,e.Gl=1694076839,e.Hh=1203062813,e.Hl=-1090891868,e.outputLen=48,e}return a(n)}(y);t.sha512=(0,f.wrapConstructor)((function(){return new y})),t.sha512_224=(0,f.wrapConstructor)((function(){return new m})),t.sha512_256=(0,f.wrapConstructor)((function(){return new v})),t.sha384=(0,f.wrapConstructor)((function(){return new g}))},51944:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(63333).default,o=n(37240).default;Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;var s=n(18933);if(t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");var c=Array.from({length:256},(function(e,t){return t.toString(16).padStart(2,"0")}));t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");for(var t="",n=0;n=0&&c0&&void 0!==arguments[0]?arguments[0]:32;if(s.crypto.web)return s.crypto.web.getRandomValues(new Uint8Array(e));if(s.crypto.node)return new Uint8Array(s.crypto.node.randomBytes(e).buffer);throw new Error("The environment doesn't have randomBytes function")}},25594:function(e,t,n){"use strict";var r=n(34560).default,a=n(47474).default,i=n(1185).default,o=n(21146).default,s=n(17964).default,c=n(54790).default,u=n(63298).default,f=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.s16=t.s8=t.nu64be=t.u48be=t.u40be=t.u32be=t.u24be=t.u16be=t.nu64=t.u48=t.u40=t.u32=t.u24=t.u16=t.u8=t.offset=t.greedy=t.Constant=t.UTF8=t.CString=t.Blob=t.Boolean=t.BitField=t.BitStructure=t.VariantLayout=t.Union=t.UnionLayoutDiscriminator=t.UnionDiscriminator=t.Structure=t.Sequence=t.DoubleBE=t.Double=t.FloatBE=t.Float=t.NearInt64BE=t.NearInt64=t.NearUInt64BE=t.NearUInt64=t.IntBE=t.Int=t.UIntBE=t.UInt=t.OffsetLayout=t.GreedyCount=t.ExternalLayout=t.bindConstructorLayout=t.nameWithProperty=t.Layout=t.uint8ArrayToBuffer=t.checkUint8Array=void 0,t.constant=t.utf8=t.cstr=t.blob=t.unionLayoutDiscriminator=t.union=t.seq=t.bits=t.struct=t.f64be=t.f64=t.f32be=t.f32=t.ns64be=t.s48be=t.s40be=t.s32be=t.s24be=t.s16be=t.ns64=t.s48=t.s40=t.s32=t.s24=void 0;var d=n(62332);function l(e){if(!(e instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function p(e){return l(e),d.Buffer.from(e.buffer,e.byteOffset,e.length)}t.checkUint8Array=l,t.uint8ArrayToBuffer=p;var b=function(){function e(t,n){if(u(this,e),!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=n}return f(e,[{key:"makeDestinationObject",value:function(){return{}}},{key:"getSpan",value:function(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(e){var t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}},{key:"fromArray",value:function(e){}}]),e}();function h(e,t){return t.property?e+"["+t.property+"]":e}t.Layout=b,t.nameWithProperty=h,t.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(e,"layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof b))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(t,"boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=function(){return new e},Object.defineProperty(e.prototype,"encode",{value:function(e,n){return t.encode(this,e,n)},writable:!0}),Object.defineProperty(e,"decode",{value:function(e,n){return t.decode(e,n)},writable:!0})};var y=function(e){s(n,e);var t=c(n);function n(){return u(this,n),t.apply(this,arguments)}return f(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}(b);t.ExternalLayout=y;var m=function(e){s(n,e);var t=c(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,a=arguments.length>1?arguments[1]:void 0;if(u(this,n),!Number.isInteger(r)||0>=r)throw new TypeError("elementSpan must be a (positive) integer");return(e=t.call(this,-1,a)).elementSpan=r,e}return f(n,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;l(e);var n=e.length-t;return Math.floor(n/this.elementSpan)}},{key:"encode",value:function(e,t,n){return 0}}]),n}(y);t.GreedyCount=m;var v=function(e){s(n,e);var t=c(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;if(u(this,n),!(e instanceof b))throw new TypeError("layout must be a Layout");if(!Number.isInteger(a))throw new TypeError("offset must be integer or undefined");return(r=t.call(this,e.span,i||e.property)).layout=e,r.offset=a,r}return f(n,[{key:"isCount",value:function(){return this.layout instanceof g||this.layout instanceof A}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.decode(e,t+this.offset)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.layout.encode(e,t,n+this.offset)}}]),n}(y);t.OffsetLayout=v;var g=function(e){s(n,e);var t=c(n);function n(e,r){var a;if(u(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return f(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(e).readUIntLE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(t).writeUIntLE(e,n,this.span),this.span}}]),n}(b);t.UInt=g;var A=function(e){s(n,e);var t=c(n);function n(e,r){var a;if(u(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return f(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(e).readUIntBE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(t).writeUIntBE(e,n,this.span),this.span}}]),n}(b);t.UIntBE=A;var w=function(e){s(n,e);var t=c(n);function n(e,r){var a;if(u(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return f(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(e).readIntLE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(t).writeIntLE(e,n,this.span),this.span}}]),n}(b);t.Int=w;var x=function(e){s(n,e);var t=c(n);function n(e,r){var a;if(u(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return f(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(e).readIntBE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(t).writeIntBE(e,n,this.span),this.span}}]),n}(b);t.IntBE=x;var _=Math.pow(2,32);function k(e){var t=Math.floor(e/_);return{hi32:t,lo32:e-t*_}}function S(e,t){return e*_+t}var I=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,8,e)}return f(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=p(e),r=n.readUInt32LE(t);return S(n.readUInt32LE(t+4),r)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=k(e),a=p(t);return a.writeUInt32LE(r.lo32,n),a.writeUInt32LE(r.hi32,n+4),8}}]),n}(b);t.NearUInt64=I;var E=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,8,e)}return f(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=p(e);return S(n.readUInt32BE(t),n.readUInt32BE(t+4))}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=k(e),a=p(t);return a.writeUInt32BE(r.hi32,n),a.writeUInt32BE(r.lo32,n+4),8}}]),n}(b);t.NearUInt64BE=E;var C=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,8,e)}return f(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=p(e),r=n.readUInt32LE(t);return S(n.readInt32LE(t+4),r)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=k(e),a=p(t);return a.writeUInt32LE(r.lo32,n),a.writeInt32LE(r.hi32,n+4),8}}]),n}(b);t.NearInt64=C;var T=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,8,e)}return f(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=p(e);return S(n.readInt32BE(t),n.readUInt32BE(t+4))}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=k(e),a=p(t);return a.writeInt32BE(r.hi32,n),a.writeUInt32BE(r.lo32,n+4),8}}]),n}(b);t.NearInt64BE=T;var O=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,4,e)}return f(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(e).readFloatLE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(t).writeFloatLE(e,n),4}}]),n}(b);t.Float=O;var P=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,4,e)}return f(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(e).readFloatBE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(t).writeFloatBE(e,n),4}}]),n}(b);t.FloatBE=P;var M=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,8,e)}return f(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(e).readDoubleLE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(t).writeDoubleLE(e,n),8}}]),n}(b);t.Double=M;var B=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,8,e)}return f(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p(e).readDoubleBE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return p(t).writeDoubleBE(e,n),8}}]),n}(b);t.DoubleBE=B;var R=function(e){s(n,e);var t=c(n);function n(e,r,a){var i;if(u(this,n),!(e instanceof b))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof y&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var o=-1;return!(r instanceof y)&&01&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0,r=this.count;if(r instanceof y&&(r=r.decode(e,t)),01&&void 0!==arguments[1]?arguments[1]:0,n=[],r=0,a=this.count;for(a instanceof y&&(a=a.decode(e,t));r2&&void 0!==arguments[2]?arguments[2]:0,r=this.elementLayout,a=e.reduce((function(e,a){return e+r.encode(a,t,n+e)}),0);return this.count instanceof y&&this.count.encode(e.length,t,n),a}}]),n}(b);t.Sequence=R;var N=function(e){s(n,e);var t=c(n);function n(e,r,a){var i;if(u(this,n),!Array.isArray(e)||!e.reduce((function(e,t){return e&&t instanceof b}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof r&&void 0===a&&(a=r,r=void 0);var s,c=o(e);try{for(c.s();!(s=c.n()).done;){var f=s.value;if(0>f.span&&void 0===f.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(e){c.e(e)}finally{c.f()}var d=-1;try{d=e.reduce((function(e,t){return e+t.getSpan()}),0)}catch(e){}return(i=t.call(this,d,r)).fields=e,i.decodePrefixes=!!a,i}return f(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0;try{n=this.fields.reduce((function(n,r){var a=r.getSpan(e,t);return t+=a,n+a}),0)}catch(e){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;l(e);var n,r=this.makeDestinationObject(),a=o(this.fields);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(void 0!==i.property&&(r[i.property]=i.decode(e,t)),t+=i.getSpan(e,t),this.decodePrefixes&&e.length===t)break}}catch(e){a.e(e)}finally{a.f()}return r}},{key:"encode",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=r,i=0,s=0,c=o(this.fields);try{for(c.s();!(n=c.n()).done;){var u=n.value,f=u.span;if(s=0f&&(f=u.getSpan(t,r)))}i=r,r+=f}}catch(e){c.e(e)}finally{c.f()}return i+s-a}},{key:"fromArray",value:function(e){var t,n=this.makeDestinationObject(),r=o(this.fields);try{for(r.s();!(t=r.n()).done;){var a=t.value;void 0!==a.property&&0a.span?n=-1:0<=n&&(n+=a.span)}}catch(e){r.e(e)}finally{r.f()}}}]),n}(b);t.Structure=N;var D=function(){function e(t){u(this,e),this.property=t}return f(e,[{key:"decode",value:function(e,t){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(e,t,n){throw new Error("UnionDiscriminator is abstract")}}]),e}();t.UnionDiscriminator=D;var j=function(e){s(n,e);var t=c(n);function n(e,r){var a;if(u(this,n),!(e instanceof y&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(a=t.call(this,r||e.property||"variant")).layout=e,a}return f(n,[{key:"decode",value:function(e,t){return this.layout.decode(e,t)}},{key:"encode",value:function(e,t,n){return this.layout.encode(e,t,n)}}]),n}(D);t.UnionLayoutDiscriminator=j;var U=function(e){s(n,e);var t=c(n);function n(e,r,a){var o,s;if(u(this,n),e instanceof g||e instanceof A)s=new j(new v(e));else if(e instanceof y&&e.isCount())s=new j(e);else{if(!(e instanceof D))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");s=e}if(void 0===r&&(r=null),!(null===r||r instanceof b))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var c=-1;r&&0<=(c=r.span)&&(e instanceof g||e instanceof A)&&(c+=s.layout.span),(o=t.call(this,c,a)).discriminator=s,o.usesPrefixDiscriminator=e instanceof g||e instanceof A,o.defaultLayout=r,o.registry={};var f=o.defaultGetSourceVariant.bind(i(o));return o.getSourceVariant=function(e){return f(e)},o.configGetSourceVariant=function(e){f=e.bind(this)},o}return f(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}},{key:"defaultGetSourceVariant",value:function(e){if(Object.prototype.hasOwnProperty.call(e,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(e,this.defaultLayout.property))return;var t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||t.property&&Object.prototype.hasOwnProperty.call(e,t.property)))return t}else for(var n in this.registry){var r=this.registry[n];if(r.property&&Object.prototype.hasOwnProperty.call(e,r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.discriminator,a=r.decode(e,n),i=this.registry[a];if(void 0===i){var o=this.defaultLayout,s=0;this.usesPrefixDiscriminator&&(s=r.layout.span),(t=this.makeDestinationObject())[r.property]=a,t[o.property]=o.decode(e,n+s)}else t=i.decode(e,n);return t}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getSourceVariant(e);if(void 0===r){var a=this.discriminator,i=this.defaultLayout,o=0;return this.usesPrefixDiscriminator&&(o=a.layout.span),a.encode(e[a.property],t,n),o+i.encode(e[i.property],t,n+o)}return r.encode(e,t,n)}},{key:"addVariant",value:function(e,t,n){var r=new L(this,e,t,n);return this.registry[e]=r,r}},{key:"getVariant",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=e instanceof Uint8Array?this.discriminator.decode(e,n):e,this.registry[t]}}]),n}(b);t.Union=U;var L=function(e){s(n,e);var t=c(n);function n(e,r,a,i){var o;if(u(this,n),!(e instanceof U))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof a&&void 0===i&&(i=a,a=null),a){if(!(a instanceof b))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=a.span&&a.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof i)throw new TypeError("variant must have a String property")}var s=e.span;return 0>e.span&&0<=(s=a?a.span:0)&&e.usesPrefixDiscriminator&&(s+=e.discriminator.layout.span),(o=t.call(this,s,i)).union=e,o.variant=r,o.layout=a||null,o}return f(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);var r=0;return this.layout&&(r=this.layout.getSpan(e,t+n)),n+r}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.makeDestinationObject();if(this!==this.union.getVariant(e,t))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(e,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);var a=r;if(this.layout&&(this.layout.encode(e[this.property],t,n+r),a+=this.layout.getSpan(t,n+r),0<=this.union.span&&a>this.union.span))throw new Error("encoded variant overruns containing union");return a}},{key:"fromArray",value:function(e){if(this.layout)return this.layout.fromArray(e)}}]),n}(b);function Z(e){return 0>e&&(e+=4294967296),e}t.VariantLayout=L;var F=function(e){s(n,e);var t=c(n);function n(e,r,a){var i;if(u(this,n),!(e instanceof g||e instanceof A))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof r&&void 0===a&&(a=r,r=!1),41&&void 0!==arguments[1]?arguments[1]:0,n=this.makeDestinationObject(),r=this.word.decode(e,t);this._packedSetValue(r);var a,i=o(this.fields);try{for(i.s();!(a=i.n()).done;){var s=a.value;void 0!==s.property&&(n[s.property]=s.decode(e))}}catch(e){i.e(e)}finally{i.f()}return n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.word.decode(t,n);this._packedSetValue(r);var a,i=o(this.fields);try{for(i.s();!(a=i.n()).done;){var s=a.value;if(void 0!==s.property){var c=e[s.property];void 0!==c&&s.encode(c)}}}catch(e){i.e(e)}finally{i.f()}return this.word.encode(this._packedGetValue(),t,n)}},{key:"addField",value:function(e,t){var n=new H(this,e,t);return this.fields.push(n),n}},{key:"addBoolean",value:function(e){var t=new z(this,e);return this.fields.push(t),t}},{key:"fieldFor",value:function(e){if("string"!=typeof e)throw new TypeError("property must be string");var t,n=o(this.fields);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.property===e)return r}}catch(e){n.e(e)}finally{n.f()}}}]),n}(b);t.BitStructure=F;var H=function(){function e(t,n,r){if(u(this,e),!(t instanceof F))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(n)||0>=n)throw new TypeError("bits must be positive integer");var a=8*t.span,i=t.fields.reduce((function(e,t){return e+t.bits}),0);if(n+i>a)throw new Error("bits too long for span remainder ("+(a-i)+" of "+a+" remain)");this.container=t,this.bits=n,this.valueMask=(1<>>this.start}},{key:"encode",value:function(e){if("number"!=typeof e||!Number.isInteger(e)||e!==Z(e&this.valueMask))throw new TypeError(h("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var t=this.container._packedGetValue(),n=Z(e<n&&(n=this.length.decode(e,t)),n}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.span;return 0>n&&(n=this.length.decode(e,t)),p(e).slice(t,t+n)}},{key:"encode",value:function(e,t,n){var r=this.length;if(this.length instanceof y&&(r=e.length),!(e instanceof Uint8Array&&r===e.length))throw new TypeError(h("Blob.encode",this)+" requires (length "+r+") Uint8Array as src");if(n+r>t.length)throw new RangeError("encoding overruns Uint8Array");var a=p(e);return p(t).write(a.toString("hex"),n,r,"hex"),this.length instanceof y&&this.length.encode(r,t,n),r}}]),n}(b);t.Blob=q;var Q=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,-1,e)}return f(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;l(e);for(var n=t;n1&&void 0!==arguments[1]?arguments[1]:0,n=this.getSpan(e,t);return p(e).slice(t,t+n-1).toString("utf-8")}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;"string"!=typeof e&&(e=String(e));var r=d.Buffer.from(e,"utf8"),a=r.length;if(n+a>t.length)throw new RangeError("encoding overruns Buffer");var i=p(t);return r.copy(i,n),i[n+a]=0,a+1}}]),n}(b);t.CString=Q;var K=function(e){s(n,e);var t=c(n);function n(e,r){var a;if(u(this,n),"string"==typeof e&&void 0===r&&(r=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");return(a=t.call(this,-1,r)).maxSpan=e,a}return f(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return l(e),e.length-t}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpan2&&void 0!==arguments[2]?arguments[2]:0;"string"!=typeof e&&(e=String(e));var r=d.Buffer.from(e,"utf8"),a=r.length;if(0<=this.maxSpan&&this.maxSpant.length)throw new RangeError("encoding overruns Buffer");return r.copy(p(t),n),a}}]),n}(b);t.UTF8=K;var V=function(e){s(n,e);var t=c(n);function n(e,r){var a;return u(this,n),(a=t.call(this,0,r)).value=e,a}return f(n,[{key:"decode",value:function(e,t){return this.value}},{key:"encode",value:function(e,t,n){return 0}}]),n}(b);t.Constant=V,t.greedy=function(e,t){return new m(e,t)},t.offset=function(e,t,n){return new v(e,t,n)},t.u8=function(e){return new g(1,e)},t.u16=function(e){return new g(2,e)},t.u24=function(e){return new g(3,e)},t.u32=function(e){return new g(4,e)},t.u40=function(e){return new g(5,e)},t.u48=function(e){return new g(6,e)},t.nu64=function(e){return new I(e)},t.u16be=function(e){return new A(2,e)},t.u24be=function(e){return new A(3,e)},t.u32be=function(e){return new A(4,e)},t.u40be=function(e){return new A(5,e)},t.u48be=function(e){return new A(6,e)},t.nu64be=function(e){return new E(e)},t.s8=function(e){return new w(1,e)},t.s16=function(e){return new w(2,e)},t.s24=function(e){return new w(3,e)},t.s32=function(e){return new w(4,e)},t.s40=function(e){return new w(5,e)},t.s48=function(e){return new w(6,e)},t.ns64=function(e){return new C(e)},t.s16be=function(e){return new x(2,e)},t.s24be=function(e){return new x(3,e)},t.s32be=function(e){return new x(4,e)},t.s40be=function(e){return new x(5,e)},t.s48be=function(e){return new x(6,e)},t.ns64be=function(e){return new T(e)},t.f32=function(e){return new O(e)},t.f32be=function(e){return new P(e)},t.f64=function(e){return new M(e)},t.f64be=function(e){return new B(e)},t.struct=function(e,t,n){return new N(e,t,n)},t.bits=function(e,t,n){return new F(e,t,n)},t.seq=function(e,t,n){return new R(e,t,n)},t.union=function(e,t,n){return new U(e,t,n)},t.unionLayoutDiscriminator=function(e,t){return new j(e,t)},t.blob=function(e,t){return new q(e,t)},t.cstr=function(e){return new Q(e)},t.utf8=function(e,t){return new K(e,t)},t.constant=function(e,t){return new V(e,t)}},83702:function(e,t,n){"use strict";n.r(t),n.d(t,{Account:function(){return Dr},AddressLookupTableAccount:function(){return Qa},AddressLookupTableInstruction:function(){return Lo},AddressLookupTableProgram:function(){return Zo},Authorized:function(){return Wo},BLOCKHASH_CACHE_TIMEOUT_MS:function(){return Ya},BPF_LOADER_DEPRECATED_PROGRAM_ID:function(){return jr},BPF_LOADER_PROGRAM_ID:function(){return Ma},BpfLoader:function(){return Ba},COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:function(){return Ho},ComputeBudgetInstruction:function(){return Fo},ComputeBudgetProgram:function(){return zo},Connection:function(){return Do},Ed25519Program:function(){return Qo},Enum:function(){return Or},EpochSchedule:function(){return La},FeeCalculatorLayout:function(){return xa},Keypair:function(){return jo},LAMPORTS_PER_SOL:function(){return gs},LOOKUP_TABLE_INSTRUCTION_LAYOUTS:function(){return Uo},Loader:function(){return Pa},Lockup:function(){return Yo},MAX_SEED_LENGTH:function(){return Mr},Message:function(){return ea},MessageAccountKeys:function(){return qr},MessageV0:function(){return ta},NONCE_ACCOUNT_LENGTH:function(){return ka},NonceAccount:function(){return Sa},PACKET_DATA_SIZE:function(){return Ur},PUBLIC_KEY_LENGTH:function(){return Br},PublicKey:function(){return Nr},SIGNATURE_LENGTH_IN_BYTES:function(){return Zr},SOLANA_SCHEMA:function(){return Pr},STAKE_CONFIG_ID:function(){return Go},STAKE_INSTRUCTION_LAYOUTS:function(){return $o},SYSTEM_INSTRUCTION_LAYOUTS:function(){return Ca},SYSVAR_CLOCK_PUBKEY:function(){return ca},SYSVAR_EPOCH_SCHEDULE_PUBKEY:function(){return ua},SYSVAR_INSTRUCTIONS_PUBKEY:function(){return fa},SYSVAR_RECENT_BLOCKHASHES_PUBKEY:function(){return da},SYSVAR_RENT_PUBKEY:function(){return la},SYSVAR_REWARDS_PUBKEY:function(){return pa},SYSVAR_SLOT_HASHES_PUBKEY:function(){return ba},SYSVAR_SLOT_HISTORY_PUBKEY:function(){return ha},SYSVAR_STAKE_HISTORY_PUBKEY:function(){return ya},Secp256k1Program:function(){return Jo},SendTransactionError:function(){return Za},SolanaJSONRPCError:function(){return Ha},SolanaJSONRPCErrorCode:function(){return Fa},StakeAuthorizationLayout:function(){return es},StakeInstruction:function(){return Xo},StakeProgram:function(){return ts},Struct:function(){return Tr},SystemInstruction:function(){return Ea},SystemProgram:function(){return Ta},Transaction:function(){return ia},TransactionExpiredBlockheightExceededError:function(){return Fr},TransactionExpiredNonceInvalidError:function(){return zr},TransactionExpiredTimeoutError:function(){return Hr},TransactionInstruction:function(){return aa},TransactionMessage:function(){return oa},TransactionStatus:function(){return Xr},VALIDATOR_INFO_KEY:function(){return ss},VERSION_PREFIX_MASK:function(){return Lr},VOTE_PROGRAM_ID:function(){return fs},ValidatorInfo:function(){return us},VersionedMessage:function(){return na},VersionedTransaction:function(){return sa},VoteAccount:function(){return ls},VoteAuthorizationLayout:function(){return is},VoteInit:function(){return ns},VoteInstruction:function(){return rs},VoteProgram:function(){return os},clusterApiUrl:function(){return ys},sendAndConfirmRawTransaction:function(){return ms},sendAndConfirmTransaction:function(){return ma}});var r=n(29382),a=n(78283),i=n(70886),o=n(19677),s=n(23680),c=n(19961),u=n(745),f=n(17204),d=n(24611),l=n(53755),p=n(24269),b=n(38114),h=n(47061),y=n(59900),m=n(62332);function v(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Wrong positive integer: ".concat(e))}function g(e){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&!n.includes(e.length))throw new TypeError("Expected Uint8Array of length ".concat(n,", not of length=").concat(e.length))}var A={number:v,bool:function(e){if("boolean"!=typeof e)throw new Error("Expected boolean, not ".concat(e))},bytes:g,hash:function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");v(e.outputLen),v(e.blockLen)},exists:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},output:function(e,t){g(e);var n=t.outputLen;if(e.length>>t};if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function k(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw new TypeError("utf8ToBytes expected string, got ".concat(typeof e));return(new TextEncoder).encode(e)}(e)),!(e instanceof Uint8Array))throw new TypeError("Expected input type is Uint8Array (got ".concat(typeof e,")"));return e}Array.from({length:256},(function(e,t){return t.toString(16).padStart(2,"0")}));var S=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,[{key:"clone",value:function(){return this._cloneInto()}}]),e}();function I(e){var t=function(t){return e().update(k(t)).digest()},n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=function(){return e()},t}var E=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e,r,a,i){var o;return(0,h.Z)(this,n),(o=t.call(this)).blockLen=e,o.outputLen=r,o.padOffset=a,o.isLE=i,o.finished=!1,o.length=0,o.pos=0,o.destroyed=!1,o.buffer=new Uint8Array(e),o.view=x(o.buffer),o}return(0,y.Z)(n,[{key:"update",value:function(e){w.exists(this);for(var t=this.view,n=this.buffer,r=this.blockLen,a=(e=k(e)).length,i=0;ir-i&&(this.process(n,0),i=0);for(var o=i;o>a&i),s=Number(n&i),c=r?4:0,u=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+u,s,r)}(n,r-8,BigInt(8*this.length),a),this.process(n,0);var s=x(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");var u=c/4,f=this.get();if(u>f.length)throw new Error("_sha2: outputLen bigger than state");for(var d=0;d1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&C),l:Number(e>>T&C)}:{h:0|Number(e>>T&C),l:0|Number(e&C)}}var P={fromBig:O,split:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length),a=0;a>>0)<>>0)},shrSH:function(e,t,n){return e>>>n},shrSL:function(e,t,n){return e<<32-n|t>>>n},rotrSH:function(e,t,n){return e>>>n|t<<32-n},rotrSL:function(e,t,n){return e<<32-n|t>>>n},rotrBH:function(e,t,n){return e<<64-n|t>>>n-32},rotrBL:function(e,t,n){return e>>>n-32|t<<64-n},rotr32H:function(e,t){return t},rotr32L:function(e,t){return e},rotlSH:function(e,t,n){return e<>>32-n},rotlSL:function(e,t,n){return t<>>32-n},rotlBH:function(e,t,n){return t<>>64-n},rotlBL:function(e,t,n){return e<>>64-n},add:function(e,t,n,r){var a=(t>>>0)+(r>>>0);return{h:e+n+(a/Math.pow(2,32)|0)|0,l:0|a}},add3L:function(e,t,n){return(e>>>0)+(t>>>0)+(n>>>0)},add3H:function(e,t,n,r){return t+n+r+(e/Math.pow(2,32)|0)|0},add4L:function(e,t,n,r){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)},add4H:function(e,t,n,r,a){return t+n+r+a+(e/Math.pow(2,32)|0)|0},add5H:function(e,t,n,r,a,i){return t+n+r+a+i+(e/Math.pow(2,32)|0)|0},add5L:function(e,t,n,r,a){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(a>>>0)}},M=P,B=M.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((function(e){return BigInt(e)}))),R=(0,s.Z)(B,2),N=R[0],D=R[1],j=new Uint32Array(80),U=new Uint32Array(80),L=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this,128,64,16,!1)).Ah=1779033703,e.Al=-205731576,e.Bh=-1150833019,e.Bl=-2067093701,e.Ch=1013904242,e.Cl=-23791573,e.Dh=-1521486534,e.Dl=1595750129,e.Eh=1359893119,e.El=-1377402159,e.Fh=-1694144372,e.Fl=725511199,e.Gh=528734635,e.Gl=-79577749,e.Hh=1541459225,e.Hl=327033209,e}return(0,y.Z)(n,[{key:"get",value:function(){return[this.Ah,this.Al,this.Bh,this.Bl,this.Ch,this.Cl,this.Dh,this.Dl,this.Eh,this.El,this.Fh,this.Fl,this.Gh,this.Gl,this.Hh,this.Hl]}},{key:"set",value:function(e,t,n,r,a,i,o,s,c,u,f,d,l,p,b,h){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|a,this.Cl=0|i,this.Dh=0|o,this.Dl=0|s,this.Eh=0|c,this.El=0|u,this.Fh=0|f,this.Fl=0|d,this.Gh=0|l,this.Gl=0|p,this.Hh=0|b,this.Hl=0|h}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)j[n]=e.getUint32(t),U[n]=e.getUint32(t+=4);for(var r=16;r<80;r++){var a=0|j[r-15],i=0|U[r-15],o=M.rotrSH(a,i,1)^M.rotrSH(a,i,8)^M.shrSH(a,i,7),s=M.rotrSL(a,i,1)^M.rotrSL(a,i,8)^M.shrSL(a,i,7),c=0|j[r-2],u=0|U[r-2],f=M.rotrSH(c,u,19)^M.rotrBH(c,u,61)^M.shrSH(c,u,6),d=M.rotrSL(c,u,19)^M.rotrBL(c,u,61)^M.shrSL(c,u,6),l=M.add4L(s,d,U[r-7],U[r-16]),p=M.add4H(l,o,f,j[r-7],j[r-16]);j[r]=0|p,U[r]=0|l}for(var b=this.Ah,h=this.Al,y=this.Bh,m=this.Bl,v=this.Ch,g=this.Cl,A=this.Dh,w=this.Dl,x=this.Eh,_=this.El,k=this.Fh,S=this.Fl,I=this.Gh,E=this.Gl,C=this.Hh,T=this.Hl,O=0;O<80;O++){var P=M.rotrSH(x,_,14)^M.rotrSH(x,_,18)^M.rotrBH(x,_,41),B=M.rotrSL(x,_,14)^M.rotrSL(x,_,18)^M.rotrBL(x,_,41),R=x&k^~x&I,L=_&S^~_&E,Z=M.add5L(T,B,L,D[O],U[O]),F=M.add5H(Z,C,P,R,N[O],j[O]),H=0|Z,z=M.rotrSH(b,h,28)^M.rotrBH(b,h,34)^M.rotrBH(b,h,39),q=M.rotrSL(b,h,28)^M.rotrBL(b,h,34)^M.rotrBL(b,h,39),Q=b&y^b&v^y&v,K=h&m^h&g^m&g;C=0|I,T=0|E,I=0|k,E=0|S,k=0|x,S=0|_;var V=M.add(0|A,0|w,0|F,0|H);x=V.h,_=V.l,A=0|v,w=0|g,v=0|y,g=0|m,y=0|b,m=0|h;var J=M.add3L(H,q,K);b=M.add3H(J,F,z,Q),h=0|J}var G=M.add(0|this.Ah,0|this.Al,0|b,0|h);b=G.h,h=G.l;var W=M.add(0|this.Bh,0|this.Bl,0|y,0|m);y=W.h,m=W.l;var Y=M.add(0|this.Ch,0|this.Cl,0|v,0|g);v=Y.h,g=Y.l;var X=M.add(0|this.Dh,0|this.Dl,0|A,0|w);A=X.h,w=X.l;var $=M.add(0|this.Eh,0|this.El,0|x,0|_);x=$.h,_=$.l;var ee=M.add(0|this.Fh,0|this.Fl,0|k,0|S);k=ee.h,S=ee.l;var te=M.add(0|this.Gh,0|this.Gl,0|I,0|E);I=te.h,E=te.l;var ne=M.add(0|this.Hh,0|this.Hl,0|C,0|T);C=ne.h,T=ne.l,this.set(b,h,y,m,v,g,A,w,x,_,k,S,I,E,C,T)}},{key:"roundClean",value:function(){j.fill(0),U.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),n}(E),Z=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this)).Ah=-1942145080,e.Al=424955298,e.Bh=1944164710,e.Bl=-1982016298,e.Ch=502970286,e.Cl=855612546,e.Dh=1738396948,e.Dl=1479516111,e.Eh=258812777,e.El=2077511080,e.Fh=2011393907,e.Fl=79989058,e.Gh=1067287976,e.Gl=1780299464,e.Hh=286451373,e.Hl=-1848208735,e.outputLen=28,e}return(0,y.Z)(n)}(L),F=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this)).Ah=573645204,e.Al=-64227540,e.Bh=-1621794909,e.Bl=-934517566,e.Ch=596883563,e.Cl=1867755857,e.Dh=-1774684391,e.Dl=1497426621,e.Eh=-1775747358,e.El=-1467023389,e.Fh=-1101128155,e.Fl=1401305490,e.Gh=721525244,e.Gl=746961066,e.Hh=246885852,e.Hl=-2117784414,e.outputLen=32,e}return(0,y.Z)(n)}(L),H=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this)).Ah=-876896931,e.Al=-1056596264,e.Bh=1654270250,e.Bl=914150663,e.Ch=-1856437926,e.Cl=812702999,e.Dh=355462360,e.Dl=-150054599,e.Eh=1731405415,e.El=-4191439,e.Fh=-1900787065,e.Fl=1750603025,e.Gh=-619958771,e.Gl=1694076839,e.Hh=1203062813,e.Hl=-1090891868,e.outputLen=48,e}return(0,y.Z)(n)}(L),z=I((function(){return new L})),q=(I((function(){return new Z})),I((function(){return new F})),I((function(){return new H})),n(44619)),Q=n.t(q,2),K=BigInt(0),V=BigInt(1),J=BigInt(2),G=BigInt(8),W=BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),Y=Object.freeze({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),l:W,n:W,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")}),X=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),$=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),ee=(BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742"),BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235")),te=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),ne=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),re=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),ae=function(){function e(t,n,r,a){(0,h.Z)(this,e),this.x=t,this.y=n,this.z=r,this.t=a}return(0,y.Z)(e,[{key:"equals",value:function(e){oe(e);var t=this.x,n=this.y,r=this.z,a=e.x,i=e.y,o=e.z,s=ke(t*o),c=ke(a*r),u=ke(n*o),f=ke(i*r);return s===c&&u===f}},{key:"negate",value:function(){return new e(ke(-this.x),this.y,this.z,ke(-this.t))}},{key:"double",value:function(){var t=this.x,n=this.y,r=this.z,a=Y.a,i=ke(t*t),o=ke(n*n),s=ke(J*ke(r*r)),c=ke(a*i),u=t+n,f=ke(ke(u*u)-i-o),d=c+o,l=d-s,p=c-o,b=ke(f*l),h=ke(d*p),y=ke(f*p);return new e(b,h,ke(l*d),y)}},{key:"add",value:function(t){oe(t);var n=this.x,r=this.y,a=this.z,i=this.t,o=t.x,s=t.y,c=t.z,u=t.t,f=ke((r-n)*(s+o)),d=ke((r+n)*(s-o)),l=ke(d-f);if(l===K)return this.double();var p=ke(a*J*u),b=ke(i*J*c),h=b+p,y=d+f,m=b-p,v=ke(h*l),g=ke(y*m),A=ke(h*m);return new e(v,g,ke(l*y),A)}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"precomputeWindow",value:function(e){for(var t=1+256/e,n=[],r=this,a=r,i=0;i>=d,b>c&&(b-=f,t+=V);var h=p,y=p+Math.abs(b)-1,m=l%2!=0,v=b<0;0===b?o=o.add(ie(m,a[h])):i=i.add(ie(v,a[y]))}return e.normalizeZ([i,o])[0]}},{key:"multiply",value:function(e,t){return this.wNAF(Pe(e,Y.l),t)}},{key:"multiplyUnsafe",value:function(t){var n=Pe(t,Y.l,!1),r=e.BASE,a=e.ZERO;if(n===K)return a;if(this.equals(a)||n===V)return this;if(this.equals(r))return this.wNAF(n);for(var i=a,o=this;n>K;)n&V&&(i=i.add(o)),o=o.double(),n>>=V;return i}},{key:"isSmallOrder",value:function(){return this.multiplyUnsafe(Y.h).equals(e.ZERO)}},{key:"isTorsionFree",value:function(){var t=this.multiplyUnsafe(Y.l/J).double();return Y.l%J&&(t=t.add(this)),t.equals(e.ZERO)}},{key:"toAffine",value:function(t){var n=this.x,r=this.y,a=this.z,i=this.equals(e.ZERO);null==t&&(t=i?G:Se(a));var o=ke(n*t),s=ke(r*t),c=ke(a*t);if(i)return de.ZERO;if(c!==V)throw new Error("invZ was invalid");return new de(o,s)}},{key:"fromRistrettoBytes",value:function(){ce()}},{key:"toRistrettoBytes",value:function(){ce()}},{key:"fromRistrettoHash",value:function(){ce()}}],[{key:"fromAffine",value:function(t){if(!(t instanceof de))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return t.equals(de.ZERO)?e.ZERO:new e(t.x,t.y,V,ke(t.x*t.y))}},{key:"toAffineBatch",value:function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y.P,n=new Array(e.length),r=Se(e.reduce((function(e,r,a){return r===K?e:(n[a]=e,ke(e*r,t))}),V),t);return e.reduceRight((function(e,r,a){return r===K?e:(n[a]=ke(e*n[a],t),ke(e*r,t))}),r),n}(e.map((function(e){return e.z})));return e.map((function(e,n){return e.toAffine(t[n])}))}},{key:"normalizeZ",value:function(e){return this.toAffineBatch(e).map(this.fromAffine)}}]),e}();function ie(e,t){var n=t.negate();return e?n:t}function oe(e){if(!(e instanceof ae))throw new TypeError("ExtendedPoint expected")}function se(e){if(!(e instanceof ue))throw new TypeError("RistrettoPoint expected")}function ce(){throw new Error("Legacy method: switch to RistrettoPoint")}ae.BASE=new ae(Y.Gx,Y.Gy,V,ke(Y.Gx*Y.Gy)),ae.ZERO=new ae(K,V,V,K);var ue=function(){function e(t){(0,h.Z)(this,e),this.ep=t}return(0,y.Z)(e,[{key:"toRawBytes",value:function(){var e,t=this.ep,n=t.x,r=t.y,a=t.z,i=t.t,o=ke(ke(a+r)*ke(a-r)),s=ke(n*r),c=ke(s*s),u=Ce(ke(o*c)).value,f=ke(u*o),d=ke(u*s),l=ke(f*d*i);if(ge(i*l)){var p=ke(r*$),b=ke(n*$);n=p,r=b,e=ke(f*te)}else e=d;ge(n*l)&&(r=ke(-r));var h=ke((a-r)*e);return ge(h)&&(h=ke(-h)),ve(h)}},{key:"toHex",value:function(){return he(this.toRawBytes())}},{key:"toString",value:function(){return this.toHex()}},{key:"equals",value:function(e){se(e);var t=this.ep,n=e.ep,r=ke(t.x*n.y)===ke(t.y*n.x),a=ke(t.y*n.y)===ke(t.x*n.x);return r||a}},{key:"add",value:function(t){return se(t),new e(this.ep.add(t.ep))}},{key:"subtract",value:function(t){return se(t),new e(this.ep.subtract(t.ep))}},{key:"multiply",value:function(t){return new e(this.ep.multiply(t))}},{key:"multiplyUnsafe",value:function(t){return new e(this.ep.multiplyUnsafe(t))}}],[{key:"calcElligatorRistrettoMap",value:function(e){var t=Y.d,n=ke($*e*e),r=ke((n+V)*ne),a=BigInt(-1),i=ke((a-t*n)*ke(n+t)),o=Ee(r,i),s=o.isValid,c=o.value,u=ke(c*e);ge(u)||(u=ke(-u)),s||(c=u),s||(a=n);var f=ke(a*(n-V)*re-i),d=c*c,l=ke((c+c)*i),p=ke(f*ee),b=ke(V-d),h=ke(V+d);return new ae(ke(l*h),ke(b*p),ke(p*h),ke(l*b))}},{key:"hashToCurve",value:function(t){var n=_e((t=Oe(t,64)).slice(0,32)),r=this.calcElligatorRistrettoMap(n),a=_e(t.slice(32,64)),i=this.calcElligatorRistrettoMap(a);return new e(r.add(i))}},{key:"fromHex",value:function(t){t=Oe(t,32);var n=Y.a,r=Y.d,a="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",i=_e(t);if(!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n1&&void 0!==arguments[1])||arguments[1],r=Y.d,a=Y.P,i=(t=Oe(t,32)).slice();i[31]=-129&t[31];var o=Ae(i);if(n&&o>=a)throw new Error("Expected 0 < hex < P");if(!n&&o>=X)throw new Error("Expected 0 < hex < 2**256");var s=ke(o*o),c=Ee(ke(s-V),ke(r*s+V)),u=c.isValid,f=c.value;if(!u)throw new Error("Point.fromHex: invalid y coordinate");var d=(f&V)===V;return 0!=(128&t[31])!==d&&(f=ke(-f)),new e(f,o)}},{key:"fromPrivateKey",value:(t=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ne(t);case 2:return e.abrupt("return",e.sent.point);case 3:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}();de.BASE=new de(Y.Gx,Y.Gy),de.ZERO=new de(K,V);var le=function(){function e(t,n){(0,h.Z)(this,e),this.r=t,this.s=n,this.assertValidity()}return(0,y.Z)(e,[{key:"assertValidity",value:function(){var e=this.r,t=this.s;if(!(e instanceof de))throw new Error("Expected Point instance");return Pe(t,Y.l,!1),this}},{key:"toRawBytes",value:function(){var e=new Uint8Array(64);return e.set(this.r.toRawBytes()),e.set(ve(this.s),32),e}},{key:"toHex",value:function(){return he(this.toRawBytes())}}],[{key:"fromHex",value:function(t){var n=Oe(t,64);return new e(de.fromHex(n.slice(0,32),!1),Ae(n.slice(32,64)))}}]),e}();function pe(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:Y.P,n=e%t;return n>=K?n:t+n}function Se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y.P;if(e===K||t<=K)throw new Error("invert: expected positive integers, got n=".concat(e," mod=").concat(t));for(var n=ke(e,t),r=t,a=K,i=V,o=V,s=K;n!==K;){var c=r/n,u=r%n,f=a-o*c,d=i-s*c;r=n,n=u,a=o,i=s,o=f,s=d}if(r!==V)throw new Error("invert: does not exist");return ke(a,t)}function Ie(e,t){for(var n=Y.P,r=e;t-- >K;)r*=r,r%=n;return r}function Ee(e,t){var n=ke(t*t*t),r=ke(n*n*t),a=ke(e*n*function(e){var t=Y.P,n=BigInt(5),r=BigInt(10),a=BigInt(20),i=BigInt(40),o=BigInt(80),s=e*e%t*e%t,c=Ie(s,J)*s%t,u=Ie(c,V)*e%t,f=Ie(u,n)*u%t,d=Ie(f,r)*f%t,l=Ie(d,a)*d%t,p=Ie(l,i)*l%t,b=Ie(p,o)*p%t,h=Ie(b,o)*p%t,y=Ie(h,r)*f%t;return{pow_p_5_8:Ie(y,J)*e%t,b2:s}}(e*r).pow_p_5_8),i=ke(t*a*a),o=a,s=ke(a*$),c=i===e,u=i===ke(-e),f=i===ke(-e*$);return c&&(a=o),(u||f)&&(a=s),ge(a)&&(a=ke(-a)),{isValid:c||u,value:a}}function Ce(e){return Ee(V,e)}function Te(e){return ke(Ae(e),Y.l)}function Oe(e,t){var n=e instanceof Uint8Array?Uint8Array.from(e):ye(e);if("number"==typeof t&&n.length!==t)throw new Error("Expected ".concat(t," bytes"));return n}function Pe(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t)throw new TypeError("Specify max value");if("number"==typeof e&&Number.isSafeInteger(e)&&(e=BigInt(e)),"bigint"==typeof e&&e1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return ke(Ae(e),Y.l-V)+V},randomBytes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(He.web)return He.web.getRandomValues(new Uint8Array(e));if(He.node){var t=He.node.randomBytes;return new Uint8Array(t(e).buffer)}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:function(){return ze.randomBytes(32)},sha512:(Fe=(0,l.Z)((0,d.Z)().mark((function e(){var t,n,r=arguments;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=pe.apply(void 0,r),!He.web){e.next=8;break}return e.next=4,He.web.subtle.digest("SHA-512",t.buffer);case 4:return n=e.sent,e.abrupt("return",new Uint8Array(n));case 8:if(!He.node){e.next=12;break}return e.abrupt("return",Uint8Array.from(He.node.createHash("sha512").update(t).digest()));case 12:throw new Error("The environment doesn't have sha512 function");case 13:case"end":return e.stop()}}),e)}))),function(){return Fe.apply(this,arguments)}),precompute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:de.BASE,n=t.equals(de.BASE)?t:new de(t.x,t.y);return n._setWindowSize(e),n.multiply(J),n},sha512Sync:void 0};Object.defineProperties(ze,{sha512Sync:{configurable:!1,get:function(){return we},set:function(e){we||(we=e)}}});var qe=n(7134),Qe=n.n(qe),Ke=n(6506),Ve=n.n(Ke),Je=function(e,t,n){return e&t^e&n^t&n},Ge=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]),We=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ye=new Uint32Array(64),Xe=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this,64,32,8,!1)).A=0|We[0],e.B=0|We[1],e.C=0|We[2],e.D=0|We[3],e.E=0|We[4],e.F=0|We[5],e.G=0|We[6],e.H=0|We[7],e}return(0,y.Z)(n,[{key:"get",value:function(){return[this.A,this.B,this.C,this.D,this.E,this.F,this.G,this.H]}},{key:"set",value:function(e,t,n,r,a,i,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|a,this.F=0|i,this.G=0|o,this.H=0|s}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)Ye[n]=e.getUint32(t,!1);for(var r=16;r<64;r++){var a=Ye[r-15],i=Ye[r-2],o=_(a,7)^_(a,18)^a>>>3,s=_(i,17)^_(i,19)^i>>>10;Ye[r]=s+Ye[r-7]+o+Ye[r-16]|0}for(var c,u=this.A,f=this.B,d=this.C,l=this.D,p=this.E,b=this.F,h=this.G,y=this.H,m=0;m<64;m++){var v=y+(_(p,6)^_(p,11)^_(p,25))+((c=p)&b^~c&h)+Ge[m]+Ye[m]|0,g=(_(u,2)^_(u,13)^_(u,22))+Je(u,f,d)|0;y=h,h=b,b=p,p=l+v|0,l=d,d=f,f=u,u=v+g|0}u=u+this.A|0,f=f+this.B|0,d=d+this.C|0,l=l+this.D|0,p=p+this.E|0,b=b+this.F|0,h=h+this.G|0,y=y+this.H|0,this.set(u,f,d,l,p,b,h,y)}},{key:"roundClean",value:function(){Ye.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),n}(E),$e=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this)).A=-1056596264,e.B=914150663,e.C=812702999,e.D=-150054599,e.E=-4191439,e.F=1750603025,e.G=1694076839,e.H=-1090891868,e.outputLen=28,e}return(0,y.Z)(n)}(Xe),et=I((function(){return new Xe})),tt=(I((function(){return new $e})),n(95208)),nt=n(25594),rt=n(23935),at=n(9189),it=n(14771),ot=["message"],st=(0,d.Z)().mark(pt),ct=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e,a){var i,o;(0,h.Z)(this,n);var s=e.message,u=(0,r.Z)(e,ot),f=e.path,d=0===f.length?s:"At path: "+f.join(".")+" -- "+s;return i=t.call(this,d),Object.assign((0,it.Z)(i),u),i.name=i.constructor.name,i.failures=function(){var t;return null!=(t=o)?t:o=[e].concat((0,c.Z)(a()))},i}return(0,y.Z)(n)}((0,f.Z)(TypeError));function ut(e){return ft(e)&&"function"==typeof e[Symbol.iterator]}function ft(e){return"object"==typeof e&&null!=e}function dt(e){return"string"==typeof e?JSON.stringify(e):""+e}function lt(e,t,n,r){if(!0!==e){!1===e?e={}:"string"==typeof e&&(e={message:e});var a=t.path,i=t.branch,s=n.type,c=e,u=c.refinement,f=c.message,d=void 0===f?"Expected a value of type `"+s+"`"+(u?" with refinement `"+u+"`":"")+", but received: `"+dt(r)+"`":f;return(0,o.Z)((0,o.Z)({value:r,type:s,refinement:u,key:a[a.length-1],path:a,branch:i},e),{},{message:d})}}function pt(e,t,n,r){var a,i,o,s;return(0,d.Z)().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:ut(e)||(e=[e]),a=(0,u.Z)(e),c.prev=2,a.s();case 4:if((i=a.n()).done){c.next=12;break}if(o=i.value,!(s=lt(o,t,n,r))){c.next=10;break}return c.next=10,s;case 10:c.next=4;break;case 12:c.next=17;break;case 14:c.prev=14,c.t0=c.catch(2),a.e(c.t0);case 17:return c.prev=17,a.f(),c.finish(17);case 20:case"end":return c.stop()}}),st,null,[[2,14,17,20]])}function bt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,d.Z)().mark((function r(){var a,i,o,f,l,p,b,h,y,m,v,g,A,w,x,_,k,S,I,E,C,T,O,P,M,B,R;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=n.path,i=void 0===a?[]:a,o=n.branch,f=void 0===o?[e]:o,l=n.coerce,p=void 0!==l&&l,b=n.mask,h=void 0!==b&&b,y={path:i,branch:f},p&&(e=t.coercer(e,y),h&&"type"!==t.type&&ft(t.schema)&&ft(e)&&!Array.isArray(e)))for(m in e)void 0===t.schema[m]&&delete e[m];v=!0,g=(0,u.Z)(t.validator(e,y)),r.prev=5,g.s();case 7:if((A=g.n()).done){r.next=14;break}return w=A.value,v=!1,r.next=12,[w,void 0];case 12:r.next=7;break;case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(5),g.e(r.t0);case 19:return r.prev=19,g.f(),r.finish(19);case 22:x=(0,u.Z)(t.entries(e,y)),r.prev=23,x.s();case 25:if((_=x.n()).done){r.next=52;break}k=(0,s.Z)(_.value,3),S=k[0],I=k[1],E=k[2],C=bt(I,E,{path:void 0===S?i:[].concat((0,c.Z)(i),[S]),branch:void 0===S?f:[].concat((0,c.Z)(f),[I]),coerce:p,mask:h}),T=(0,u.Z)(C),r.prev=29,T.s();case 31:if((O=T.n()).done){r.next=42;break}if(!(P=O.value)[0]){r.next=39;break}return v=!1,r.next=37,[P[0],void 0];case 37:r.next=40;break;case 39:p&&(I=P[1],void 0===S?e=I:e instanceof Map?e.set(S,I):e instanceof Set?e.add(I):ft(e)&&(e[S]=I));case 40:r.next=31;break;case 42:r.next=47;break;case 44:r.prev=44,r.t1=r.catch(29),T.e(r.t1);case 47:return r.prev=47,T.f(),r.finish(47);case 50:r.next=25;break;case 52:r.next=57;break;case 54:r.prev=54,r.t2=r.catch(23),x.e(r.t2);case 57:return r.prev=57,x.f(),r.finish(57);case 60:if(!v){r.next=79;break}M=(0,u.Z)(t.refiner(e,y)),r.prev=62,M.s();case 64:if((B=M.n()).done){r.next=71;break}return R=B.value,v=!1,r.next=69,[R,void 0];case 69:r.next=64;break;case 71:r.next=76;break;case 73:r.prev=73,r.t3=r.catch(62),M.e(r.t3);case 76:return r.prev=76,M.f(),r.finish(76);case 79:if(!v){r.next=82;break}return r.next=82,[void 0,e];case 82:case"end":return r.stop()}}),r,null,[[5,16,19,22],[23,54,57,60],[29,44,47,50],[62,73,76,79]])}))()}var ht=function(){function e(t){var n=this;(0,h.Z)(this,e);var r=t.type,a=t.schema,i=t.validator,o=t.refiner,s=t.coercer,c=void 0===s?function(e){return e}:s,u=t.entries,f=void 0===u?(0,d.Z)().mark((function e(){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})):u;this.type=r,this.schema=a,this.entries=f,this.coercer=c,this.validator=i?function(e,t){return pt(i(e,t),t,n,e)}:function(){return[]},this.refiner=o?function(e,t){return pt(o(e,t),t,n,e)}:function(){return[]}}return(0,y.Z)(e,[{key:"assert",value:function(e){return yt(e,this)}},{key:"create",value:function(e){return mt(e,this)}},{key:"is",value:function(e){return vt(e,this)}},{key:"mask",value:function(e){return function(e,t){var n=gt(e,t,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}(e,this)}},{key:"validate",value:function(e){return gt(e,this,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}}]),e}();function yt(e,t){var n=gt(e,t);if(n[0])throw n[0]}function mt(e,t){var n=gt(e,t,{coerce:!0});if(n[0])throw n[0];return n[1]}function vt(e,t){return!gt(e,t)[0]}function gt(e,t){var n=bt(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r=function(e){var t=e.next(),n=t.done,r=t.value;return n?void 0:r}(n);if(r[0]){var a=new ct(r[0],(0,d.Z)().mark((function e(){var t,r,a;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,u.Z)(n),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=10;break}if(!(a=r.value)[0]){e.next=8;break}return e.next=8,a[0];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])})));return[a,void 0]}return[void 0,r[1]]}function At(e,t){return new ht({type:e,schema:null,validator:t})}function wt(e){return new ht({type:"array",schema:e,entries:(0,d.Z)().mark((function t(n){var r,a,i,o,c;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e||!Array.isArray(n)){t.next=18;break}r=(0,u.Z)(n.entries()),t.prev=2,r.s();case 4:if((a=r.n()).done){t.next=10;break}return i=(0,s.Z)(a.value,2),o=i[0],c=i[1],t.next=8,[o,c,e];case 8:t.next=4;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),r.e(t.t0);case 15:return t.prev=15,r.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])})),coercer:function(e){return Array.isArray(e)?e.slice():e},validator:function(e){return Array.isArray(e)||"Expected an array value, but received: "+dt(e)}})}function xt(){return At("boolean",(function(e){return"boolean"==typeof e}))}function _t(e){return At("instance",(function(t){return t instanceof e||"Expected a `"+e.name+"` instance, but received: "+dt(t)}))}function kt(e){var t=dt(e),n=typeof e;return new ht({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:function(n){return n===e||"Expected the literal `"+t+"`, but received: "+dt(n)}})}function St(e){return new ht((0,o.Z)((0,o.Z)({},e),{},{validator:function(t,n){return null===t||e.validator(t,n)},refiner:function(t,n){return null===t||e.refiner(t,n)}}))}function It(){return At("number",(function(e){return"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+dt(e)}))}function Et(e){return new ht((0,o.Z)((0,o.Z)({},e),{},{validator:function(t,n){return void 0===t||e.validator(t,n)},refiner:function(t,n){return void 0===t||e.refiner(t,n)}}))}function Ct(e,t){return new ht({type:"record",schema:null,entries:(0,d.Z)().mark((function n(r){var a,i;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!ft(r)){n.next=11;break}n.t0=(0,d.Z)().keys(r);case 2:if((n.t1=n.t0()).done){n.next=11;break}return a=n.t1.value,i=r[a],n.next=7,[a,a,e];case 7:return n.next=9,[a,i,t];case 9:n.next=2;break;case 11:case"end":return n.stop()}}),n)})),validator:function(e){return ft(e)||"Expected an object, but received: "+dt(e)}})}function Tt(){return At("string",(function(e){return"string"==typeof e||"Expected a string, but received: "+dt(e)}))}function Ot(e){var t=At("never",(function(){return!1}));return new ht({type:"tuple",schema:null,entries:(0,d.Z)().mark((function n(r){var a,i;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Array.isArray(r)){n.next=9;break}a=Math.max(e.length,r.length),i=0;case 3:if(!(i>Qt)*Vt)%Kt)&qt&&($t^=zt<<(zt<32?M.rotlBH(e,t,n):M.rotlSH(e,t,n)},sn=function(e,t,n){return n>32?M.rotlBL(e,t,n):M.rotlSL(e,t,n)},cn=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e,r,a){var i,o,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if((0,h.Z)(this,n),(i=t.call(this)).blockLen=e,i.suffix=r,i.outputLen=a,i.enableXOF=s,i.rounds=c,i.pos=0,i.posOut=0,i.finished=!1,i.destroyed=!1,w.number(a),0>=i.blockLen||i.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return i.state=new Uint8Array(200),i.state32=(o=i.state,new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4))),i}return(0,y.Z)(n,[{key:"keccak",value:function(){!function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=new Uint32Array(10),r=24-t;r<24;r++){for(var a=0;a<10;a++)n[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(var i=0;i<10;i+=2)for(var o=(i+8)%10,s=(i+2)%10,c=n[s],u=n[s+1],f=on(c,u,1)^n[o],d=sn(c,u,1)^n[o+1],l=0;l<50;l+=10)e[i+l]^=f,e[i+l+1]^=d;for(var p=e[2],b=e[3],h=0;h<24;h++){var y=Zt[h],m=on(p,b,y),v=sn(p,b,y),g=Lt[h];p=e[g],b=e[g+1],e[g]=m,e[g+1]=v}for(var A=0;A<50;A+=10){for(var w=0;w<10;w++)n[w]=e[A+w];for(var x=0;x<10;x++)e[A+x]^=~n[(x+2)%10]&n[(x+4)%10]}e[0]^=rn[r],e[1]^=an[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(e){w.exists(this);for(var t=this.blockLen,n=this.state,r=(e=k(e)).length,a=0;a=n&&this.keccak();var i=Math.min(n-this.posOut,a-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}},{key:"xofInto",value:function(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}},{key:"xof",value:function(e){return w.number(e),this.xofInto(new Uint8Array(e))}},{key:"digestInto",value:function(e){if(w.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(e){var t=this.blockLen,r=this.suffix,a=this.outputLen,i=this.rounds,o=this.enableXOF;return e||(e=new n(t,r,a,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=a,e.enableXOF=o,e.destroyed=this.destroyed,e}}]),n}(S),un=function(e,t,n){return I((function(){return new cn(t,e,n)}))},fn=(un(6,144,28),un(6,136,32),un(6,104,48),un(6,72,64),un(1,144,28),un(1,136,32)),dn=(un(1,104,48),un(1,72,64),function(e,t,n){return r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new cn(t,e,void 0===r.dkLen?n:r.dkLen,!0)},a=function(e,t){return r(t).update(k(e)).digest()},i=r({}),a.outputLen=i.outputLen,a.blockLen=i.blockLen,a.create=function(e){return r(e)},a;var r,a,i}),ln=(dn(31,168,16),dn(31,136,32),function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e,r){var a;(0,h.Z)(this,n),(a=t.call(this)).finished=!1,a.destroyed=!1,w.hash(e);var i=k(r);if(a.iHash=e.create(),"function"!=typeof a.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");a.blockLen=a.iHash.blockLen,a.outputLen=a.iHash.outputLen;var o=a.blockLen,s=new Uint8Array(o);s.set(i.length>o?e.create().update(i).digest():i);for(var c=0;co,l=f>o;if(d&&(u=t-u),l&&(f=t-f),u>o||f>o)throw new Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:d,k1:u,k2neg:l,k2:f}},Sn=32,In=32,En=Sn+1,Cn=2*Sn+1;function Tn(e){var t=wn.a,n=wn.b,r=er(e*e),a=er(r*e);return er(a+t*e+n)}var On=wn.a===yn,Pn=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e){return(0,h.Z)(this,n),t.call(this,e)}return(0,y.Z)(n)}((0,f.Z)(Error));function Mn(e){if(!(e instanceof Bn))throw new TypeError("JacobianPoint expected")}var Bn=function(){function e(t,n,r){(0,h.Z)(this,e),this.x=t,this.y=n,this.z=r}return(0,y.Z)(e,[{key:"equals",value:function(e){Mn(e);var t=this.x,n=this.y,r=this.z,a=e.x,i=e.y,o=e.z,s=er(r*r),c=er(o*o),u=er(t*c),f=er(a*s),d=er(er(n*o)*c),l=er(er(i*r)*s);return u===f&&d===l}},{key:"negate",value:function(){return new e(this.x,er(-this.y),this.z)}},{key:"double",value:function(){var t=this.x,n=this.y,r=this.z,a=er(t*t),i=er(n*n),o=er(i*i),s=t+i,c=er(vn*(er(s*s)-a-o)),u=er(gn*a),f=er(u*u),d=er(f-vn*c);return new e(d,er(u*(c-d)-An*o),er(vn*n*r))}},{key:"add",value:function(t){Mn(t);var n=this.x,r=this.y,a=this.z,i=t.x,o=t.y,s=t.z;if(i===yn||o===yn)return this;if(n===yn||r===yn)return t;var c=er(a*a),u=er(s*s),f=er(n*u),d=er(i*c),l=er(er(r*s)*u),p=er(er(o*a)*c),b=er(d-f),h=er(p-l);if(b===yn)return h===yn?this.double():e.ZERO;var y=er(b*b),m=er(b*y),v=er(f*y),g=er(h*h-m-vn*v);return new e(g,er(h*(v-g)-l*m),er(a*s*b))}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiplyUnsafe",value:function(t){var n=e.ZERO;if("bigint"==typeof t&&t===yn)return n;var r=$n(t);if(r===mn)return this;if(!On){for(var a=n,i=this;r>yn;)r&mn&&(a=a.add(i)),i=i.double(),r>>=mn;return a}for(var o=kn(r),s=o.k1neg,c=o.k1,u=o.k2neg,f=o.k2,d=n,l=n,p=this;c>yn||f>yn;)c&mn&&(d=d.add(p)),f&mn&&(l=l.add(p)),p=p.double(),c>>=mn,f>>=mn;return s&&(d=d.negate()),u&&(l=l.negate()),l=new e(er(l.x*_n),l.y,l.z),d.add(l)}},{key:"precomputeWindow",value:function(e){for(var t=On?128/e+1:256/e+1,n=[],r=this,a=r,i=0;i>=d,b>c&&(b-=f,t+=mn);var h=p,y=p+Math.abs(b)-1,m=l%2!=0,v=b<0;0===b?o=o.add(Rn(m,a[h])):i=i.add(Rn(v,a[y]))}return{p:i,f:o}}},{key:"multiply",value:function(t,n){var r,a,i=$n(t);if(On){var o=kn(i),s=o.k1neg,c=o.k1,u=o.k2neg,f=o.k2,d=this.wNAF(c,n),l=d.p,p=d.f,b=this.wNAF(f,n),h=b.p,y=b.f;l=Rn(s,l),h=new e(er((h=Rn(u,h)).x*_n),h.y,h.z),r=l.add(h),a=p.add(y)}else{var m=this.wNAF(i,n);r=m.p,a=m.f}return e.normalizeZ([r,a])[0]}},{key:"toAffine",value:function(t){var n=this.x,r=this.y,a=this.z,i=this.equals(e.ZERO);null==t&&(t=i?An:nr(a));var o=t,s=er(o*o),c=er(s*o),u=er(n*s),f=er(r*c),d=er(a*o);if(i)return Dn.ZERO;if(d!==mn)throw new Error("invZ was invalid");return new Dn(u,f)}}],[{key:"fromAffine",value:function(t){if(!(t instanceof Dn))throw new TypeError("JacobianPoint#fromAffine: expected Point");return t.equals(Dn.ZERO)?e.ZERO:new e(t.x,t.y,mn)}},{key:"toAffineBatch",value:function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn.P,n=new Array(e.length),r=nr(e.reduce((function(e,r,a){return r===yn?e:(n[a]=e,er(e*r,t))}),mn),t);return e.reduceRight((function(e,r,a){return r===yn?e:(n[a]=er(e*n[a],t),er(e*r,t))}),r),n}(e.map((function(e){return e.z})));return e.map((function(e,n){return e.toAffine(t[n])}))}},{key:"normalizeZ",value:function(t){return e.toAffineBatch(t).map(e.fromAffine)}}]),e}();function Rn(e,t){var n=t.negate();return e?n:t}Bn.BASE=new Bn(wn.Gx,wn.Gy,mn),Bn.ZERO=new Bn(yn,mn,yn);var Nn=new WeakMap,Dn=function(){function e(t,n){(0,h.Z)(this,e),this.x=t,this.y=n}return(0,y.Z)(e,[{key:"_setWindowSize",value:function(e){this._WINDOW_SIZE=e,Nn.delete(this)}},{key:"hasEvenY",value:function(){return this.y%vn===yn}},{key:"toRawBytes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Wn(this.toHex(e))}},{key:"toHex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Kn(this.x);if(e){var n=this.hasEvenY()?"02":"03";return"".concat(n).concat(t)}return"04".concat(t).concat(Kn(this.y))}},{key:"toHexX",value:function(){return this.toHex(!0).slice(2)}},{key:"toRawX",value:function(){return this.toRawBytes(!0).slice(1)}},{key:"assertValidity",value:function(){var e="Point is not on elliptic curve",t=this.x,n=this.y;if(!or(t)||!or(n))throw new Error(e);var r=er(n*n);if(er(r-Tn(t))!==yn)throw new Error(e)}},{key:"equals",value:function(e){return this.x===e.x&&this.y===e.y}},{key:"negate",value:function(){return new e(this.x,er(-this.y))}},{key:"double",value:function(){return Bn.fromAffine(this).double().toAffine()}},{key:"add",value:function(e){return Bn.fromAffine(this).add(Bn.fromAffine(e)).toAffine()}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiply",value:function(e){return Bn.fromAffine(this).multiply(e,this).toAffine()}},{key:"multiplyAndAddUnsafe",value:function(t,n,r){var a=Bn.fromAffine(this),i=n===yn||n===mn||this!==e.BASE?a.multiplyUnsafe(n):a.multiply(n),o=Bn.fromAffine(t).multiplyUnsafe(r),s=i.add(o);return s.equals(Bn.ZERO)?void 0:s.toAffine()}}],[{key:"fromCompressedHex",value:function(t){var n=32===t.length,r=Yn(n?t:t.subarray(1));if(!or(r))throw new Error("Point is not on curve");var a=function(e){var t=wn.P,n=BigInt(6),r=BigInt(11),a=BigInt(22),i=BigInt(23),o=BigInt(44),s=BigInt(88),c=e*e*e%t,u=c*c*e%t,f=tr(u,gn)*u%t,d=tr(f,gn)*u%t,l=tr(d,vn)*c%t,p=tr(l,r)*l%t,b=tr(p,a)*p%t,h=tr(b,o)*b%t,y=tr(h,s)*h%t,m=tr(y,o)*b%t,v=tr(m,gn)*u%t,g=tr(v,i)*p%t,A=tr(g,n)*c%t,w=tr(A,vn);if(w*w%t!==e)throw new Error("Cannot find square root");return w}(Tn(r)),i=(a&mn)===mn;n?i&&(a=er(-a)):1==(1&t[0])!==i&&(a=er(-a));var o=new e(r,a);return o.assertValidity(),o}},{key:"fromUncompressedHex",value:function(t){var n=new e(Yn(t.subarray(1,Sn+1)),Yn(t.subarray(Sn+1,2*Sn+1)));return n.assertValidity(),n}},{key:"fromHex",value:function(e){var t=Xn(e),n=t.length,r=t[0];if(n===Sn)return this.fromCompressedHex(t);if(n===En&&(2===r||3===r))return this.fromCompressedHex(t);if(n===Cn&&4===r)return this.fromUncompressedHex(t);throw new Error("Point.fromHex: received invalid point. Expected 32-".concat(En," compressed bytes or ").concat(Cn," uncompressed bytes, not ").concat(n))}},{key:"fromPrivateKey",value:function(t){return e.BASE.multiply(cr(t))}},{key:"fromSignature",value:function(t,n,r){var a=function(e){if(e instanceof Ln)return e.assertValidity(),e;try{return Ln.fromDER(e)}catch(t){return Ln.fromCompact(e)}}(n),i=a.r,o=a.s;if(![0,1,2,3].includes(r))throw new Error("Cannot recover: invalid recovery bit");var s=rr(Xn(t)),c=wn.n,u=2===r||3===r?i+c:i,f=nr(u,c),d=er(-s*f,c),l=er(o*f,c),p=1&r?"03":"02",b=e.fromHex(p+Kn(u)),h=e.BASE.multiplyAndAddUnsafe(b,d,l);if(!h)throw new Error("Cannot recover signature: point at infinify");return h.assertValidity(),h}}]),e}();function jn(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function Un(e){if(e.length<2||2!==e[0])throw new Error("Invalid signature integer tag: ".concat(Hn(e)));var t=e[1],n=e.subarray(2,t+2);if(!t||n.length!==t)throw new Error("Invalid signature integer: wrong length");if(0===n[0]&&n[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:Yn(n),left:e.subarray(t+2)}}Dn.BASE=new Dn(wn.Gx,wn.Gy),Dn.ZERO=new Dn(yn,yn);var Ln=function(){function e(t,n){(0,h.Z)(this,e),this.r=t,this.s=n,this.assertValidity()}return(0,y.Z)(e,[{key:"assertValidity",value:function(){var e=this.r,t=this.s;if(!ir(e))throw new Error("Invalid Signature: r must be 0 < r < n");if(!ir(t))throw new Error("Invalid Signature: s must be 0 < s < n")}},{key:"hasHighS",value:function(){var e=wn.n>>mn;return this.s>e}},{key:"normalizeS",value:function(){return this.hasHighS()?new e(this.r,er(-this.s,wn.n)):this}},{key:"toDERRawBytes",value:function(){return Wn(this.toDERHex())}},{key:"toDERHex",value:function(){var e=jn(Jn(this.s)),t=jn(Jn(this.r)),n=e.length/2,r=t.length/2,a=Jn(n),i=Jn(r),o=Jn(r+n+4);return"30".concat(o,"02").concat(i).concat(t,"02").concat(a).concat(e)}},{key:"toRawBytes",value:function(){return this.toDERRawBytes()}},{key:"toHex",value:function(){return this.toDERHex()}},{key:"toCompactRawBytes",value:function(){return Wn(this.toCompactHex())}},{key:"toCompactHex",value:function(){return Kn(this.r)+Kn(this.s)}}],[{key:"fromCompact",value:function(t){var n=t instanceof Uint8Array,r="Signature.fromCompact";if("string"!=typeof t&&!n)throw new TypeError("".concat(r,": Expected string or Uint8Array"));var a=n?Hn(t):t;if(128!==a.length)throw new Error("".concat(r,": Expected 64-byte hex"));return new e(Gn(a.slice(0,64)),Gn(a.slice(64,128)))}},{key:"fromDER",value:function(t){var n=t instanceof Uint8Array;if("string"!=typeof t&&!n)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");var r=function(e){if(e.length<2||48!=e[0])throw new Error("Invalid signature tag: ".concat(Hn(e)));if(e[1]!==e.length-2)throw new Error("Invalid signature: incorrect length");var t=Un(e.subarray(2)),n=t.data,r=Un(t.left),a=r.data,i=r.left;if(i.length)throw new Error("Invalid signature: left bytes after parsing: ".concat(Hn(i)));return{r:n,s:a}}(n?t:Wn(t));return new e(r.r,r.s)}},{key:"fromHex",value:function(e){return this.fromDER(e)}}]),e}();function Zn(){for(var e=arguments.length,t=new Array(e),n=0;n0)return BigInt(e);if("bigint"==typeof e&&ir(e))return e;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function er(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn.P,n=e%t;return n>=yn?n:t+n}function tr(e,t){for(var n=wn.P,r=e;t-- >yn;)r*=r,r%=n;return r}function nr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn.P;if(e===yn||t<=yn)throw new Error("invert: expected positive integers, got n=".concat(e," mod=").concat(t));for(var n=er(e,t),r=t,a=yn,i=mn,o=mn,s=yn;n!==yn;){var c=r/n,u=r%n,f=a-o*c,d=i-s*c;r=n,n=u,a=o,i=s,o=f,s=d}if(r!==mn)throw new Error("invert: does not exist");return er(a,t)}function rr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(e){var t=8*e.length-8*In,n=Yn(e);return t>0?n>>BigInt(t):n}(e);if(t)return n;var r=wn.n;return n>=r?n-r:n}var ar=function(){function e(t,n){if((0,h.Z)(this,e),this.hashLen=t,this.qByteLen=n,"number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof n||n<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(t).fill(1),this.k=new Uint8Array(t).fill(0),this.counter=0}var t,n;return(0,y.Z)(e,[{key:"hmac",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}},{key:"reseed",value:(n=(0,l.Z)((0,d.Z)().mark((function e(){var t,n=arguments;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:new Uint8Array,e.next=3,this.hmac(this.v,Uint8Array.from([0]),t);case 3:return this.k=e.sent,e.next=6,this.hmac(this.v);case 6:if(this.v=e.sent,0!==t.length){e.next=9;break}return e.abrupt("return");case 9:return e.next=11,this.hmac(this.v,Uint8Array.from([1]),t);case 11:return this.k=e.sent,e.next=14,this.hmac(this.v);case 14:this.v=e.sent;case 15:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"reseedSync",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array;this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),e),this.v=this.hmacSync(this.v),0!==e.length&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),e),this.v=this.hmacSync(this.v))}},{key:"generate",value:(t=(0,l.Z)((0,d.Z)().mark((function e(){var t,n,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.incr(),t=0,n=[];case 3:if(!(t3&&void 0!==arguments[3])||arguments[3],a=wn.n,i=rr(e,!0);if(ir(i)){var o=nr(i,a),s=Dn.BASE.multiply(i),c=er(s.x,a);if(c!==yn){var u=er(o*er(t+n*c,a),a);if(u!==yn){var f=new Ln(c,u),d=(s.x===f.r?0:2)|Number(s.y&mn);return r&&f.hasHighS()&&(f=f.normalizeS(),d^=1),{sig:f,recovery:d}}}}}function cr(e){var t;if("bigint"==typeof e)t=e;else if("number"==typeof e&&Number.isSafeInteger(e)&&e>0)t=BigInt(e);else if("string"==typeof e){if(e.length!==2*In)throw new Error("Expected 32 bytes of private key");t=Gn(e)}else{if(!(e instanceof Uint8Array))throw new TypeError("Expected valid private key");if(e.length!==In)throw new Error("Expected 32 bytes of private key");t=Yn(e)}if(!ir(t))throw new Error("Expected private key: 0 < key < n");return t}function ur(e){return Yn(e.length>Sn?e.slice(0,Sn):e)}function fr(e){var t=ur(e),n=er(t,wn.n);return dr(n1024)throw new Error("Expected valid bytes of private key as per FIPS 186");return Vn(er(Yn(e),wn.n-mn)+mn)},randomBytes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(br.web)return br.web.getRandomValues(new Uint8Array(e));if(br.node){var t=br.node.randomBytes;return Uint8Array.from(t(e))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:function(){return yr.hashToPrivateKey(yr.randomBytes(In+8))},precompute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dn.BASE,n=t===Dn.BASE?t:new Dn(t.x,t.y);return n._setWindowSize(e),n.multiply(gn),n},sha256:function(){var e=(0,l.Z)((0,d.Z)().mark((function e(){var t,n,r,a,i,o,s=arguments;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=s.length,n=new Array(t),r=0;r1?n-1:0),a=1;a1?a-1:0),o=1;o1?r-1:0),i=1;iBr)throw new Error("Invalid public key input")}return t}return(0,y.Z)(o,[{key:"equals",value:function(e){return this._bn.eq(e._bn)}},{key:"toBase58",value:function(){return Ve().encode(this.toBytes())}},{key:"toJSON",value:function(){return this.toBase58()}},{key:"toBytes",value:function(){var e=this.toBuffer();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}},{key:"toBuffer",value:function(){var e=this._bn.toArrayLike(m.Buffer);if(e.length===Br)return e;var t=m.Buffer.alloc(32);return e.copy(t,32-e.length),t}},{key:t,get:function(){return"PublicKey(".concat(this.toString(),")")}},{key:"toString",value:function(){return this.toBase58()}}],[{key:"unique",value:function(){var e=new o(Rr);return Rr+=1,new o(e.toBuffer())}},{key:"createWithSeed",value:(a=(0,l.Z)((0,d.Z)().mark((function e(t,n,r){var a,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=m.Buffer.concat([t.toBuffer(),m.Buffer.from(n),r.toBuffer()]),i=et(a),e.abrupt("return",new o(i));case 3:case"end":return e.stop()}}),e)}))),function(e,t,n){return a.apply(this,arguments)})},{key:"createProgramAddressSync",value:function(e,t){var n=m.Buffer.alloc(0);e.forEach((function(e){if(e.length>Mr)throw new TypeError("Max seed length exceeded");n=m.Buffer.concat([n,Cr(e)])})),n=m.Buffer.concat([n,t.toBuffer(),m.Buffer.from("ProgramDerivedAddress")]);var r=et(n);if(kr(r))throw new Error("Invalid seeds, address must fall off the curve");return new o(r)}},{key:"createProgramAddress",value:(r=(0,l.Z)((0,d.Z)().mark((function e(t,n){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.createProgramAddressSync(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"findProgramAddressSync",value:function(e,t){for(var n,r=255;0!=r;){try{var a=e.concat(m.Buffer.from([r]));n=this.createProgramAddressSync(a,t)}catch(e){if(e instanceof TypeError)throw e;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}},{key:"findProgramAddress",value:(n=(0,l.Z)((0,d.Z)().mark((function e(t,n){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.findProgramAddressSync(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"isOnCurve",value:function(e){return kr(new o(e).toBytes())}}]),o}(Tr,Sr);Nr.default=new Nr("11111111111111111111111111111111"),Pr.set(Nr,{kind:"struct",fields:[["_bn","u256"]]});var Dr=function(){function e(t){if((0,h.Z)(this,e),this._publicKey=void 0,this._secretKey=void 0,t){var n=Cr(t);if(64!==t.length)throw new Error("bad secret key size");this._publicKey=n.slice(32,64),this._secretKey=n.slice(0,32)}else this._secretKey=Cr(wr()),this._publicKey=Cr(_r(this._secretKey))}return(0,y.Z)(e,[{key:"publicKey",get:function(){return new Nr(this._publicKey)}},{key:"secretKey",get:function(){return m.Buffer.concat([this._secretKey,this._publicKey],64)}}]),e}(),jr=new Nr("BPFLoader1111111111111111111111111111111111"),Ur=1232,Lr=127,Zr=64,Fr=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e){var r;return(0,h.Z)(this,n),(r=t.call(this,"Signature ".concat(e," has expired: block height exceeded."))).signature=void 0,r.signature=e,r}return(0,y.Z)(n)}((0,f.Z)(Error));Object.defineProperty(Fr.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});var Hr=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e,r){var a;return(0,h.Z)(this,n),(a=t.call(this,"Transaction was not confirmed in ".concat(r.toFixed(2)," seconds. It is ")+"unknown if it succeeded or failed. Check signature "+"".concat(e," using the Solana Explorer or CLI tools."))).signature=void 0,a.signature=e,a}return(0,y.Z)(n)}((0,f.Z)(Error));Object.defineProperty(Hr.prototype,"name",{value:"TransactionExpiredTimeoutError"});var zr=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e){var r;return(0,h.Z)(this,n),(r=t.call(this,"Signature ".concat(e," has expired: the nonce is no longer valid."))).signature=void 0,r.signature=e,r}return(0,y.Z)(n)}((0,f.Z)(Error));Object.defineProperty(zr.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});var qr=function(){function e(t,n){(0,h.Z)(this,e),this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=n}return(0,y.Z)(e,[{key:"keySegments",value:function(){var e=[this.staticAccountKeys];return this.accountKeysFromLookups&&(e.push(this.accountKeysFromLookups.writable),e.push(this.accountKeysFromLookups.readonly)),e}},{key:"get",value:function(e){var t,n=(0,u.Z)(this.keySegments());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e256)throw new Error("Account index overflow encountered during compilation");var t=new Map;this.keySegments().flat().forEach((function(e,n){t.set(e.toBase58(),n)}));var n=function(e){var n=t.get(e.toBase58());if(void 0===n)throw new Error("Encountered an unknown instruction account key during compilation");return n};return e.map((function(e){return{programIdIndex:n(e.programId),accountKeyIndexes:e.keys.map((function(e){return n(e.pubkey)})),data:e.data}}))}}]),e}(),Qr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey";return nt.blob(32,e)},Kr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"signature";return nt.blob(64,e)},Vr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string",t=nt.struct([nt.u32("length"),nt.u32("lengthPadding"),nt.blob(nt.offset(nt.u32(),-8),"chars")],e),n=t.decode.bind(t),r=t.encode.bind(t),a=t;return a.decode=function(e,t){return n(e,t).chars.toString()},a.encode=function(e,t,n){var a={chars:m.Buffer.from(e,"utf8")};return r(a,t,n)},a.alloc=function(e){return nt.u32().span+nt.u32().span+m.Buffer.from(e,"utf8").length},a};function Jr(e,t){var n=function e(n){if(n.span>=0)return n.span;if("function"==typeof n.alloc)return n.alloc(t[n.property]);if("count"in n&&"elementLayout"in n){var r=t[n.property];if(Array.isArray(r))return r.length*e(n.elementLayout)}else if("fields"in n)return Jr({layout:n},t[n.property]);return 0},r=0;return e.layout.fields.forEach((function(e){r+=n(e)})),r}function Gr(e){for(var t=0,n=0;;){var r=e.shift();if(t|=(127&r)<<7*n,n+=1,0==(128&r))break}return t}function Wr(e,t){for(var n=t;;){var r=127&n;if(0==(n>>=7)){e.push(r);break}r|=128,e.push(r)}}function Yr(e,t){if(!e)throw new Error(t||"Assertion failed")}var Xr,$r=function(){function e(t,n){(0,h.Z)(this,e),this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=n}return(0,y.Z)(e,[{key:"getMessageComponents",value:function(){var e=(0,c.Z)(this.keyMetaMap.entries());Yr(e.length<=256,"Max static account keys length exceeded");var t=e.filter((function(e){var t=(0,s.Z)(e,2)[1];return t.isSigner&&t.isWritable})),n=e.filter((function(e){var t=(0,s.Z)(e,2)[1];return t.isSigner&&!t.isWritable})),r=e.filter((function(e){var t=(0,s.Z)(e,2)[1];return!t.isSigner&&t.isWritable})),a=e.filter((function(e){var t=(0,s.Z)(e,2)[1];return!t.isSigner&&!t.isWritable})),i={numRequiredSignatures:t.length+n.length,numReadonlySignedAccounts:n.length,numReadonlyUnsignedAccounts:a.length};return Yr(t.length>0,"Expected at least one writable signer key"),Yr((0,s.Z)(t[0],1)[0]===this.payer.toBase58(),"Expected first writable signer key to be the fee payer"),[i,[].concat((0,c.Z)(t.map((function(e){var t=(0,s.Z)(e,1)[0];return new Nr(t)}))),(0,c.Z)(n.map((function(e){var t=(0,s.Z)(e,1)[0];return new Nr(t)}))),(0,c.Z)(r.map((function(e){var t=(0,s.Z)(e,1)[0];return new Nr(t)}))),(0,c.Z)(a.map((function(e){var t=(0,s.Z)(e,1)[0];return new Nr(t)}))))]}},{key:"extractTableLookup",value:function(e){var t=this.drainKeysFoundInLookupTable(e.state.addresses,(function(e){return!e.isSigner&&!e.isInvoked&&e.isWritable})),n=(0,s.Z)(t,2),r=n[0],a=n[1],i=this.drainKeysFoundInLookupTable(e.state.addresses,(function(e){return!e.isSigner&&!e.isInvoked&&!e.isWritable})),o=(0,s.Z)(i,2),c=o[0],u=o[1];if(0!==r.length||0!==c.length)return[{accountKey:e.key,writableIndexes:r,readonlyIndexes:c},{writable:a,readonly:u}]}},{key:"drainKeysFoundInLookupTable",value:function(e,t){var n,r=this,a=new Array,i=new Array,o=(0,u.Z)(this.keyMetaMap.entries());try{var c=function(){var o=(0,s.Z)(n.value,2),c=o[0],u=o[1];if(t(u)){var f=new Nr(c),d=e.findIndex((function(e){return e.equals(f)}));d>=0&&(Yr(d<256,"Max lookup table index exceeded"),a.push(d),i.push(f),r.keyMetaMap.delete(c))}};for(o.s();!(n=o.n()).done;)c()}catch(e){o.e(e)}finally{o.f()}return[a,i]}}],[{key:"compile",value:function(t,n){var r=new Map,a=function(e){var t=e.toBase58(),n=r.get(t);return void 0===n&&(n={isSigner:!1,isWritable:!1,isInvoked:!1},r.set(t,n)),n},i=a(n);i.isSigner=!0,i.isWritable=!0;var o,s=(0,u.Z)(t);try{for(s.s();!(o=s.n()).done;){var c=o.value;a(c.programId).isInvoked=!0;var f,d=(0,u.Z)(c.keys);try{for(d.s();!(f=d.n()).done;){var l=f.value,p=a(l.pubkey);p.isSigner||(p.isSigner=l.isSigner),p.isWritable||(p.isWritable=l.isWritable)}}catch(e){d.e(e)}finally{d.f()}}}catch(e){s.e(e)}finally{s.f()}return new e(n,r)}}]),e}(),ea=function(){function e(t){var n=this;(0,h.Z)(this,e),this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map((function(e){return new Nr(e)})),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach((function(e){return n.indexToProgramIds.set(e.programIdIndex,n.accountKeys[e.programIdIndex])}))}return(0,y.Z)(e,[{key:"version",get:function(){return"legacy"}},{key:"staticAccountKeys",get:function(){return this.accountKeys}},{key:"compiledInstructions",get:function(){return this.instructions.map((function(e){return{programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:Ve().decode(e.data)}}))}},{key:"addressTableLookups",get:function(){return[]}},{key:"getAccountKeys",value:function(){return new qr(this.staticAccountKeys)}},{key:"isAccountSigner",value:function(e){return e=this.header.numRequiredSignatures?e-t0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new qr(this.staticAccountKeys,t)}},{key:"isAccountSigner",value:function(e){return e=n?e-n=this.header.numRequiredSignatures?e-t0?this.signatures[0].signature:null}},{key:"toJSON",value:function(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map((function(e){return e.toJSON()})),signers:this.signatures.map((function(e){return e.publicKey.toJSON()}))}}},{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(var r=0;r-1?(f[n].isWritable=f[n].isWritable||e.isWritable,f[n].isSigner=f[n].isSigner||e.isSigner):f.push(e)})),f.sort((function(e,t){return e.isSigner!==t.isSigner?e.isSigner?-1:1:e.isWritable!==t.isWritable?e.isWritable?-1:1:e.pubkey.toBase58().localeCompare(t.pubkey.toBase58())}));var d=f.findIndex((function(e){return e.pubkey.equals(n)}));if(d>-1){var l=f.splice(d,1),p=(0,s.Z)(l,1)[0];p.isSigner=!0,p.isWritable=!0,f.unshift(p)}else f.unshift({pubkey:n,isSigner:!0,isWritable:!0});var b,h=(0,u.Z)(this.signatures);try{var y=function(){var e=b.value,t=f.findIndex((function(t){return t.pubkey.equals(e.publicKey)}));if(!(t>-1))throw new Error("unknown signer: ".concat(e.publicKey.toString()));f[t].isSigner||(f[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))};for(h.s();!(b=h.n()).done;)y()}catch(e){h.e(e)}finally{h.f()}var m=0,v=0,g=0,A=[],w=[];f.forEach((function(e){var t=e.pubkey,n=e.isSigner,r=e.isWritable;n?(A.push(t.toString()),m+=1,r||(v+=1)):(w.push(t.toString()),r||(g+=1))}));var x=A.concat(w),_=t.map((function(e){var t=e.data,n=e.programId;return{programIdIndex:x.indexOf(n.toString()),accounts:e.keys.map((function(e){return x.indexOf(e.pubkey.toString())})),data:Ve().encode(t)}}));return _.forEach((function(e){Yr(e.programIdIndex>=0),e.accounts.forEach((function(e){return Yr(e>=0)}))})),new ea({header:{numRequiredSignatures:m,numReadonlySignedAccounts:v,numReadonlyUnsignedAccounts:g},accountKeys:x,recentBlockhash:e,instructions:_})}},{key:"_compile",value:function(){var e=this.compileMessage(),t=e.accountKeys.slice(0,e.header.numRequiredSignatures);return this.signatures.length===t.length&&this.signatures.every((function(e,n){return t[n].equals(e.publicKey)}))||(this.signatures=t.map((function(e){return{signature:null,publicKey:e}}))),e}},{key:"serializeMessage",value:function(){return this._compile().serialize()}},{key:"getEstimatedFee",value:(t=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFeeForMessage(this.compileMessage());case 2:return e.abrupt("return",e.sent.value);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"setSigners",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?r-1:0),i=1;i ").concat(Ur)),a}},{key:"keys",get:function(){return Yr(1===this.instructions.length),this.instructions[0].keys.map((function(e){return e.pubkey}))}},{key:"programId",get:function(){return Yr(1===this.instructions.length),this.instructions[0].programId}},{key:"data",get:function(){return Yr(1===this.instructions.length),this.instructions[0].data}}],[{key:"from",value:function(t){for(var n=(0,c.Z)(t),r=Gr(n),a=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:[],r=new e;return r.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(r.feePayer=t.accountKeys[0]),n.forEach((function(e,n){var a={signature:e==Ve().encode(ra)?null:Ve().decode(e),publicKey:t.accountKeys[n]};r.signatures.push(a)})),t.instructions.forEach((function(e){var n=e.accounts.map((function(e){var n=t.accountKeys[e];return{pubkey:n,isSigner:r.signatures.some((function(e){return e.publicKey.toString()===n.toString()}))||t.isAccountSigner(e),isWritable:t.isAccountWritable(e)}}));r.instructions.push(new aa({keys:n,programId:t.accountKeys[e.programIdIndex],data:Ve().decode(e.data)}))})),r._message=t,r._json=r.toJSON(),r}}]),e}(),oa=function(){function e(t){(0,h.Z)(this,e),this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=t.payerKey,this.instructions=t.instructions,this.recentBlockhash=t.recentBlockhash}return(0,y.Z)(e,[{key:"compileToLegacyMessage",value:function(){return ea.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions})}},{key:"compileToV0Message",value:function(e){return ta.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions,addressLookupTableAccounts:e})}}],[{key:"decompile",value:function(t,n){var r=t.header,a=t.compiledInstructions,i=t.recentBlockhash,o=r.numRequiredSignatures,s=r.numReadonlySignedAccounts,c=r.numReadonlyUnsignedAccounts,f=o-s;Yr(f>0,"Message header is invalid");var d=t.staticAccountKeys.length-o-c;Yr(d>=0,"Message header is invalid");var l=t.getAccountKeys(n),p=l.get(0);if(void 0===p)throw new Error("Failed to decompile message because no account keys were found");var b,h=[],y=(0,u.Z)(a);try{for(y.s();!(b=y.n()).done;){var m,v=b.value,g=[],A=(0,u.Z)(v.accountKeyIndexes);try{for(A.s();!(m=A.n()).done;){var w=m.value,x=l.get(w);if(void 0===x)throw new Error("Failed to find key for account key index ".concat(w));var _;_=w=0,"Cannot sign with non signer key ".concat(e.publicKey.toBase58())),n.signatures[i]=Ir(r,e.secretKey)};for(i.s();!(t=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}}},{key:"addSignature",value:function(e,t){Yr(64===t.byteLength,"Signature must be 64 bytes long");var n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex((function(t){return t.equals(e)}));Yr(n>=0,"Can not add signature; `".concat(e.toBase58(),"` is not required to sign this transaction")),this.signatures[n]=t}}],[{key:"deserialize",value:function(t){for(var n=(0,c.Z)(t),r=[],a=Gr(n),i=0;i=0?e.layout.span:Jr(e,t),r=m.Buffer.alloc(n),a=Object.assign({instruction:e.index},t);return e.layout.encode(a,r),r}function wa(e,t){var n;try{n=e.layout.decode(t)}catch(e){throw new Error("invalid instruction; "+e)}if(n.instruction!==e.index)throw new Error("invalid instruction; instruction index mismatch ".concat(n.instruction," != ").concat(e.index));return n}var xa=nt.nu64("lamportsPerSignature"),_a=nt.struct([nt.u32("version"),nt.u32("state"),Qr("authorizedPubkey"),Qr("nonce"),nt.struct([xa],"feeCalculator")]),ka=_a.span,Sa=function(){function e(t){(0,h.Z)(this,e),this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}return(0,y.Z)(e,null,[{key:"fromAccountData",value:function(t){var n=_a.decode(Cr(t),0);return new e({authorizedPubkey:new Nr(n.authorizedPubkey),nonce:new Nr(n.nonce).toString(),feeCalculator:n.feeCalculator})}}]),e}(),Ia=(8,function(e){var t=(0,nt.blob)(8,e),n=function(e){return{decode:e.decode.bind(e),encode:e.encode.bind(e)}}(t),r=n.encode,a=n.decode,i=t;return i.decode=function(e,t){var n=a(e,t);return(0,rt.toBigIntLE)(m.Buffer.from(n))},i.encode=function(e,t,n){var a=(0,rt.toBufferLE)(e,8);return r(a,t,n)},i}),Ea=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=nt.u32("instruction").decode(e.data),r=0,a=Object.entries(Ca);r0?s:1,space:o.length,programId:i}));case 17:if(null===u){t.next=20;break}return t.next=20,ma(n,u,[r,a],{commitment:"confirmed"});case 20:f=nt.struct([nt.u32("instruction"),nt.u32("offset"),nt.u32("bytesLength"),nt.u32("bytesLengthPadding"),nt.seq(nt.u8("byte"),nt.offset(nt.u32(),-8),"bytes")]),l=e.chunkSize,p=0,b=o,h=[];case 25:if(!(b.length>0)){t.next=39;break}if(y=b.slice(0,l),v=m.Buffer.alloc(l+16),f.encode({instruction:0,offset:p,bytes:y,bytesLength:0,bytesLengthPadding:0},v),g=(new ia).add({keys:[{pubkey:a.publicKey,isSigner:!0,isWritable:!0}],programId:i,data:v}),h.push(ma(n,g,[r,a],{commitment:"confirmed"})),!n._rpcEndpoint.includes("solana.com")){t.next=35;break}return t.next=35,ga(250);case 35:p+=l,b=b.slice(l),t.next=25;break;case 39:return t.next=41,Promise.all(h);case 41:return A=nt.struct([nt.u32("instruction")]),w=m.Buffer.alloc(A.span),A.encode({instruction:1},w),x=(new ia).add({keys:[{pubkey:a.publicKey,isSigner:!0,isWritable:!0},{pubkey:la,isSigner:!1,isWritable:!1}],programId:i,data:w}),t.next=47,ma(n,x,[r,a],{commitment:"confirmed"});case 47:return t.abrupt("return",!0);case 48:case"end":return t.stop()}}),t)}))),function(e,n,r,a,i){return t.apply(this,arguments)})}]),e}();Pa.chunkSize=Oa;var Ma=new Nr("BPFLoader2111111111111111111111111111111111"),Ba=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"getMinNumSignatures",value:function(e){return Pa.getMinNumSignatures(e)}},{key:"load",value:function(e,t,n,r,a){return Pa.load(e,t,n,a,r)}}]),e}(),Ra=Object.prototype.toString,Na=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function Da(e,t){var n,r,a,i,o,s,c;if(!0===e)return"true";if(!1===e)return"false";switch(typeof e){case"object":if(null===e)return null;if(e.toJSON&&"function"==typeof e.toJSON)return Da(e.toJSON(),t);if("[object Array]"===(c=Ra.call(e))){for(a="[",r=e.length-1,n=0;n-1&&(a+=Da(e[n],!0)),a+"]"}if("[object Object]"===c){for(r=(i=Na(e).sort()).length,a="",n=0;n1;)e/=2,t++;return t}var La=function(){function e(t,n,r,a,i){(0,h.Z)(this,e),this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=n,this.warmup=r,this.firstNormalEpoch=a,this.firstNormalSlot=i}return(0,y.Z)(e,[{key:"getEpoch",value:function(e){return this.getEpochAndSlotIndex(e)[0]}},{key:"getEpochAndSlotIndex",value:function(e){if(e>1,n|=n>>2,n|=n>>4,n|=n>>8,n|=n>>16,1+(n|=n>>32)))-Ua(32)-1;return[t,e-(this.getSlotsInEpoch(t)-32)]}var n,r=e-this.firstNormalSlot,a=Math.floor(r/this.slotsPerEpoch);return[this.firstNormalEpoch+a,r%this.slotsPerEpoch]}},{key:"getFirstSlotInEpoch",value:function(e){return e<=this.firstNormalEpoch?32*(Math.pow(2,e)-1):(e-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}},{key:"getLastSlotInEpoch",value:function(e){return this.getFirstSlotInEpoch(e)+this.getSlotsInEpoch(e)-1}},{key:"getSlotsInEpoch",value:function(e){return e0&&(a.until=o.signatures[o.signatures.length-1].toString()),e.next=22;break;case 15:if(e.prev=15,e.t0=e.catch(8),!(e.t0 instanceof Error&&e.t0.message.includes("skipped"))){e.next=21;break}return e.abrupt("continue",4);case 21:throw e.t0;case 22:e.next=4;break;case 24:return e.next=26,this.getSlot("finalized");case 26:s=e.sent;case 27:if("before"in a){e.next=47;break}if(!(++r>s)){e.next=31;break}return e.abrupt("break",47);case 31:return e.prev=31,e.next=34,this.getConfirmedBlockSignatures(r);case 34:(c=e.sent).signatures.length>0&&(a.before=c.signatures[c.signatures.length-1].toString()),e.next=45;break;case 38:if(e.prev=38,e.t1=e.catch(31),!(e.t1 instanceof Error&&e.t1.message.includes("skipped"))){e.next=44;break}return e.abrupt("continue",27);case 44:throw e.t1;case 45:e.next=27;break;case 47:return e.next=49,this.getConfirmedSignaturesForAddress2(t,a);case 49:return u=e.sent,e.abrupt("return",u.map((function(e){return e.signature})));case 51:case"end":return e.stop()}}),e,this,[[8,15],[31,38]])}))),function(e,t,n){return M.apply(this,arguments)})},{key:"getConfirmedSignaturesForAddress2",value:(P=(0,l.Z)((0,d.Z)().mark((function e(t,n,r){var a,i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this._buildArgsAtLeastConfirmed([t.toBase58()],r,void 0,n),e.next=3,this._rpcRequest("getConfirmedSignaturesForAddress2",a);case 3:if(i=e.sent,!("error"in(o=mt(i,Ui)))){e.next=7;break}throw new Ha(o.error,"failed to get confirmed signatures for address");case 7:return e.abrupt("return",o.result);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return P.apply(this,arguments)})},{key:"getSignaturesForAddress",value:(O=(0,l.Z)((0,d.Z)().mark((function e(t,n,r){var a,i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this._buildArgsAtLeastConfirmed([t.toBase58()],r,void 0,n),e.next=3,this._rpcRequest("getSignaturesForAddress",a);case 3:if(i=e.sent,!("error"in(o=mt(i,Li)))){e.next=7;break}throw new Ha(o.error,"failed to get signatures for address");case 7:return e.abrupt("return",o.result);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return O.apply(this,arguments)})},{key:"getAddressLookupTable",value:(T=(0,l.Z)((0,d.Z)().mark((function e(t,n){var r,a,i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountInfoAndContext(t,n);case 2:return r=e.sent,a=r.context,i=r.value,o=null,null!==i&&(o=new Qa({key:t,state:Qa.deserialize(i.data)})),e.abrupt("return",{context:a,value:o});case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return T.apply(this,arguments)})},{key:"getNonceAndContext",value:(C=(0,l.Z)((0,d.Z)().mark((function e(t,n){var r,a,i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountInfoAndContext(t,n);case 2:return r=e.sent,a=r.context,i=r.value,o=null,null!==i&&(o=Sa.fromAccountData(i.data)),e.abrupt("return",{context:a,value:o});case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return C.apply(this,arguments)})},{key:"getNonce",value:(E=(0,l.Z)((0,d.Z)().mark((function e(t,n){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNonceAndContext(t,n).then((function(e){return e.value})).catch((function(e){throw new Error("failed to get nonce for account "+t.toBase58()+": "+e)}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return E.apply(this,arguments)})},{key:"requestAirdrop",value:(I=(0,l.Z)((0,d.Z)().mark((function e(t,n){var r,a;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("requestAirdrop",[t.toBase58(),n]);case 2:if(r=e.sent,!("error"in(a=mt(r,Po)))){e.next=6;break}throw new Ha(a.error,"airdrop to ".concat(t.toBase58()," failed"));case 6:return e.abrupt("return",a.result);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return I.apply(this,arguments)})},{key:"_blockhashWithExpiryBlockHeight",value:(S=(0,l.Z)((0,d.Z)().mark((function e(t){var n,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=10;break}case 1:if(!this._pollingBlockhash){e.next=6;break}return e.next=4,ga(100);case 4:e.next=1;break;case 6:if(n=Date.now()-this._blockhashInfo.lastFetch,r=n>=Ya,null===this._blockhashInfo.latestBlockhash||r){e.next=10;break}return e.abrupt("return",this._blockhashInfo.latestBlockhash);case 10:return e.next=12,this._pollNewBlockhash();case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"_pollNewBlockhash",value:(k=(0,l.Z)((0,d.Z)().mark((function e(){var t,n,r,a,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._pollingBlockhash=!0,e.prev=1,t=Date.now(),n=this._blockhashInfo.latestBlockhash,r=n?n.blockhash:null,a=0;case 6:if(!(a<50)){e.next=18;break}return e.next=9,this.getLatestBlockhash("finalized");case 9:if(i=e.sent,r===i.blockhash){e.next=13;break}return this._blockhashInfo={latestBlockhash:i,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},e.abrupt("return",i);case 13:return e.next=15,ga(200);case 15:a++,e.next=6;break;case 18:throw new Error("Unable to obtain a new blockhash after ".concat(Date.now()-t,"ms"));case 19:return e.prev=19,this._pollingBlockhash=!1,e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[1,,19,22]])}))),function(){return k.apply(this,arguments)})},{key:"getStakeMinimumDelegation",value:(_=(0,l.Z)((0,d.Z)().mark((function e(t){var n,r,a,i,o,s;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Xa(t),r=n.commitment,a=n.config,i=this._buildArgs([],r,"base64",a),e.next=4,this._rpcRequest("getStakeMinimumDelegation",i);case 4:if(o=e.sent,!("error"in(s=mt(o,ni(It()))))){e.next=8;break}throw new Ha(s.error,"failed to get stake minimum delegation");case 8:return e.abrupt("return",s.result);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"simulateTransaction",value:(x=(0,l.Z)((0,d.Z)().mark((function e(t,n,r){var a,i,o,s,u,f,l,p,b,h,y,v,g,A,w,x,_,k,S,I,E,C,T,O,P;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("message"in t)){e.next=17;break}if(a=t.serialize(),i=m.Buffer.from(a).toString("base64"),!Array.isArray(n)&&void 0===r){e.next=6;break}throw new Error("Invalid arguments");case 6:return(o=n||{}).encoding="base64","commitment"in o||(o.commitment=this.commitment),s=[i,o],e.next=12,this._rpcRequest("simulateTransaction",s);case 12:if(u=e.sent,!("error"in(f=mt(u,yi)))){e.next=16;break}throw new Error("failed to simulate transaction: "+f.error.message);case 16:return e.abrupt("return",f.result);case 17:if(t instanceof ia?(p=t,(l=new ia).feePayer=p.feePayer,l.instructions=t.instructions,l.nonceInfo=p.nonceInfo,l.signatures=p.signatures):(l=ia.populate(t))._message=l._json=void 0,void 0===n||Array.isArray(n)){e.next=20;break}throw new Error("Invalid arguments");case 20:if(b=n,!l.nonceInfo||!b){e.next=25;break}(h=l).sign.apply(h,(0,c.Z)(b)),e.next=45;break;case 25:y=this._disableBlockhashCaching;case 26:return e.next=28,this._blockhashWithExpiryBlockHeight(y);case 28:if(g=e.sent,l.lastValidBlockHeight=g.lastValidBlockHeight,l.recentBlockhash=g.blockhash,b){e.next=33;break}return e.abrupt("break",45);case 33:if((v=l).sign.apply(v,(0,c.Z)(b)),l.signature){e.next=36;break}throw new Error("!signature");case 36:if(A=l.signature.toString("base64"),this._blockhashInfo.simulatedSignatures.includes(A)||this._blockhashInfo.transactionSignatures.includes(A)){e.next=42;break}return this._blockhashInfo.simulatedSignatures.push(A),e.abrupt("break",45);case 42:y=!0;case 43:e.next=26;break;case 45:return w=l._compile(),x=w.serialize(),_=l._serialize(x),k=_.toString("base64"),S={encoding:"base64",commitment:this.commitment},r&&(I=(Array.isArray(r)?r:w.nonProgramIds()).map((function(e){return e.toBase58()})),S.accounts={encoding:"base64",addresses:I}),b&&(S.sigVerify=!0),E=[k,S],e.next=55,this._rpcRequest("simulateTransaction",E);case 55:if(C=e.sent,!("error"in(T=mt(C,yi)))){e.next=60;break}throw"data"in T.error&&(O=T.error.data.logs)&&Array.isArray(O)&&(P="\n "+O.join("\n "),console.error(T.error.message,P)),new Za("failed to simulate transaction: "+T.error.message,O);case 60:return e.abrupt("return",T.result);case 61:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return x.apply(this,arguments)})},{key:"sendTransaction",value:(w=(0,l.Z)((0,d.Z)().mark((function e(t,n,r){var a,i,o,s,u,f;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("version"in t)){e.next=7;break}if(!n||!Array.isArray(n)){e.next=3;break}throw new Error("Invalid arguments");case 3:return a=t.serialize(),e.next=6,this.sendRawTransaction(a,n);case 6:return e.abrupt("return",e.sent);case 7:if(void 0!==n&&Array.isArray(n)){e.next=9;break}throw new Error("Invalid arguments");case 9:if(i=n,!t.nonceInfo){e.next=14;break}t.sign.apply(t,(0,c.Z)(i)),e.next=32;break;case 14:o=this._disableBlockhashCaching;case 15:return e.next=17,this._blockhashWithExpiryBlockHeight(o);case 17:if(s=e.sent,t.lastValidBlockHeight=s.lastValidBlockHeight,t.recentBlockhash=s.blockhash,t.sign.apply(t,(0,c.Z)(i)),t.signature){e.next=23;break}throw new Error("!signature");case 23:if(u=t.signature.toString("base64"),this._blockhashInfo.transactionSignatures.includes(u)){e.next=29;break}return this._blockhashInfo.transactionSignatures.push(u),e.abrupt("break",32);case 29:o=!0;case 30:e.next=15;break;case 32:return f=t.serialize(),e.next=35,this.sendRawTransaction(f,r);case 35:return e.abrupt("return",e.sent);case 36:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return w.apply(this,arguments)})},{key:"sendRawTransaction",value:(A=(0,l.Z)((0,d.Z)().mark((function e(t,n){var r,a;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Cr(t).toString("base64"),e.next=3,this.sendEncodedTransaction(r,n);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return A.apply(this,arguments)})},{key:"sendEncodedTransaction",value:(g=(0,l.Z)((0,d.Z)().mark((function e(t,n){var r,a,i,o,s,c,u;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={encoding:"base64"},a=n&&n.skipPreflight,i=n&&n.preflightCommitment||this.commitment,n&&null!=n.maxRetries&&(r.maxRetries=n.maxRetries),n&&null!=n.minContextSlot&&(r.minContextSlot=n.minContextSlot),a&&(r.skipPreflight=a),i&&(r.preflightCommitment=i),o=[t,r],e.next=10,this._rpcRequest("sendTransaction",o);case 10:if(s=e.sent,!("error"in(c=mt(s,Mo)))){e.next=15;break}throw"data"in c.error&&(u=c.error.data.logs),new Za("failed to send transaction: "+c.error.message,u);case 15:return e.abrupt("return",c.result);case 16:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"_wsOnOpen",value:function(){var e=this;this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval((function(){(0,l.Z)((0,d.Z)().mark((function t(){return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._rpcWebSocket.notify("ping");case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:case"end":return t.stop()}}),t,null,[[0,5]])})))()}),5e3),this._updateSubscriptions()}},{key:"_wsOnError",value:function(e){this._rpcWebSocketConnected=!1,console.error("ws error:",e.message)}},{key:"_wsOnClose",value:function(e){var t=this;this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==e?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach((function(e){var n=(0,s.Z)(e,2),r=n[0],a=n[1];t._setSubscription(r,(0,o.Z)((0,o.Z)({},a),{},{state:"pending"}))}))):this._updateSubscriptions()}},{key:"_setSubscription",value:function(e,t){var n,r=null===(n=this._subscriptionsByHash[e])||void 0===n?void 0:n.state;if(this._subscriptionsByHash[e]=t,r!==t.state){var a=this._subscriptionStateChangeCallbacksByHash[e];a&&a.forEach((function(e){try{e(t.state)}catch(e){}}))}}},{key:"_onSubscriptionStateChange",value:function(e,t){var n,r=this,a=this._subscriptionHashByClientSubscriptionId[e];if(null==a)return function(){};var i=(n=this._subscriptionStateChangeCallbacksByHash)[a]||(n[a]=new Set);return i.add(t),function(){i.delete(t),0===i.size&&delete r._subscriptionStateChangeCallbacksByHash[a]}}},{key:"_updateSubscriptions",value:(v=(0,l.Z)((0,d.Z)().mark((function e(){var t,n,r=this;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==Object.keys(this._subscriptionsByHash).length){e.next=3;break}return this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout((function(){r._rpcWebSocketIdleTimeout=null;try{r._rpcWebSocket.close()}catch(e){e instanceof Error&&console.log("Error when closing socket connection: ".concat(e.message))}}),500)),e.abrupt("return");case 3:if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),this._rpcWebSocketConnected){e.next=7;break}return this._rpcWebSocket.connect(),e.abrupt("return");case 7:return t=this._rpcWebSocketGeneration,n=function(){return t===r._rpcWebSocketGeneration},e.next=11,Promise.all(Object.keys(this._subscriptionsByHash).map(function(){var e=(0,l.Z)((0,d.Z)().mark((function e(t){var a;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(a=r._subscriptionsByHash[t])){e.next=3;break}return e.abrupt("return");case 3:e.t0=a.state,e.next="pending"===e.t0||"unsubscribed"===e.t0?6:"subscribed"===e.t0?15:19;break;case 6:if(0!==a.callbacks.size){e.next=12;break}return delete r._subscriptionsByHash[t],"unsubscribed"===a.state&&delete r._subscriptionCallbacksByServerSubscriptionId[a.serverSubscriptionId],e.next=11,r._updateSubscriptions();case 11:return e.abrupt("return");case 12:return e.next=14,(0,l.Z)((0,d.Z)().mark((function e(){var i,s,c;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.args,s=a.method,e.prev=1,r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"subscribing"})),e.next=5,r._rpcWebSocket.call(s,i);case 5:return c=e.sent,r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{serverSubscriptionId:c,state:"subscribed"})),r._subscriptionCallbacksByServerSubscriptionId[c]=a.callbacks,e.next=10,r._updateSubscriptions();case 10:e.next=20;break;case 12:if(e.prev=12,e.t0=e.catch(1),e.t0 instanceof Error&&console.error("".concat(s," error for argument"),i,e.t0.message),n()){e.next=17;break}return e.abrupt("return");case 17:return r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"pending"})),e.next=20,r._updateSubscriptions();case 20:case"end":return e.stop()}}),e,null,[[1,12]])})))();case 14:case 18:return e.abrupt("break",19);case 15:if(0!==a.callbacks.size){e.next=18;break}return e.next=18,(0,l.Z)((0,d.Z)().mark((function e(){var i,s;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=a.serverSubscriptionId,s=a.unsubscribeMethod,!r._subscriptionsAutoDisposedByRpc.has(i)){e.next=5;break}r._subscriptionsAutoDisposedByRpc.delete(i),e.next=21;break;case 5:return r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"unsubscribing"})),r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"unsubscribing"})),e.prev=7,e.next=10,r._rpcWebSocket.call(s,[i]);case 10:e.next=21;break;case 12:if(e.prev=12,e.t0=e.catch(7),e.t0 instanceof Error&&console.error("".concat(s," error:"),e.t0.message),n()){e.next=17;break}return e.abrupt("return");case 17:return r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"subscribed"})),e.next=20,r._updateSubscriptions();case 20:return e.abrupt("return");case 21:return r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"unsubscribed"})),e.next=24,r._updateSubscriptions();case 24:case"end":return e.stop()}}),e,null,[[7,12]])})))();case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 11:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"_handleServerNotification",value:function(e,t){var n=this._subscriptionCallbacksByServerSubscriptionId[e];void 0!==n&&n.forEach((function(e){try{e.apply(void 0,(0,c.Z)(t))}catch(e){console.error(e)}}))}},{key:"_wsOnAccountNotification",value:function(e){var t=mt(e,Zi),n=t.result,r=t.subscription;this._handleServerNotification(r,[n.value,n.context])}},{key:"_makeSubscription",value:function(e,t){var n=this,r=this._nextClientSubscriptionId++,a=ja([e.method,t]),i=this._subscriptionsByHash[a];return void 0===i?this._subscriptionsByHash[a]=(0,o.Z)((0,o.Z)({},e),{},{args:t,callbacks:new Set([e.callback]),state:"pending"}):i.callbacks.add(e.callback),this._subscriptionHashByClientSubscriptionId[r]=a,this._subscriptionDisposeFunctionsByClientSubscriptionId[r]=(0,l.Z)((0,d.Z)().mark((function t(){var i;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete n._subscriptionDisposeFunctionsByClientSubscriptionId[r],delete n._subscriptionHashByClientSubscriptionId[r],Yr(void 0!==(i=n._subscriptionsByHash[a]),"Could not find a `Subscription` when tearing down client subscription #".concat(r)),i.callbacks.delete(e.callback),t.next=7,n._updateSubscriptions();case 7:case"end":return t.stop()}}),t)}))),this._updateSubscriptions(),r}},{key:"onAccountChange",value:function(e,t,n){var r=this._buildArgs([e.toBase58()],n||this._commitment||"finalized","base64");return this._makeSubscription({callback:t,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},r)}},{key:"removeAccountChangeListener",value:(b=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"account change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"_wsOnProgramAccountNotification",value:function(e){var t=mt(e,Hi),n=t.result,r=t.subscription;this._handleServerNotification(r,[{accountId:n.value.pubkey,accountInfo:n.value.account},n.context])}},{key:"onProgramAccountChange",value:function(e,t,n,r){var a=this._buildArgs([e.toBase58()],n||this._commitment||"finalized","base64",r?{filters:r}:void 0);return this._makeSubscription({callback:t,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},a)}},{key:"removeProgramAccountChangeListener",value:(p=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"program account change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"onLogs",value:function(e,t,n){var r=this._buildArgs(["object"==typeof e?{mentions:[e.toString()]}:e],n||this._commitment||"finalized");return this._makeSubscription({callback:t,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},r)}},{key:"removeOnLogsListener",value:(f=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"logs");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"_wsOnLogsNotification",value:function(e){var t=mt(e,Ro),n=t.result,r=t.subscription;this._handleServerNotification(r,[n.value,n.context])}},{key:"_wsOnSlotNotification",value:function(e){var t=mt(e,qi),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onSlotChange",value:function(e){return this._makeSubscription({callback:e,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}},{key:"removeSlotChangeListener",value:(u=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"slot change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"_wsOnSlotUpdatesNotification",value:function(e){var t=mt(e,Ki),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onSlotUpdate",value:function(e){return this._makeSubscription({callback:e,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}},{key:"removeSlotUpdateListener",value:(i=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"slot update");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"_unsubscribeClientSubscription",value:(a=(0,l.Z)((0,d.Z)().mark((function e(t,n){var r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this._subscriptionDisposeFunctionsByClientSubscriptionId[t])){e.next=6;break}return e.next=4,r();case 4:e.next=7;break;case 6:console.warn("Ignored unsubscribe request because an active subscription with id "+"`".concat(t,"` for '").concat(n,"' events ")+"could not be found.");case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"_buildArgs",value:function(e,t,n,r){var a=t||this._commitment;if(a||n||r){var i={};n&&(i.encoding=n),a&&(i.commitment=a),r&&(i=Object.assign(i,r)),e.push(i)}return e}},{key:"_buildArgsAtLeastConfirmed",value:function(e,t,n,r){var a=t||this._commitment;if(a&&!["confirmed","finalized"].includes(a))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(e,t,n,r)}},{key:"_wsOnSignatureNotification",value:function(e){var t=mt(e,Vi),n=t.result,r=t.subscription;"receivedSignature"!==n.value&&this._subscriptionsAutoDisposedByRpc.add(r),this._handleServerNotification(r,"receivedSignature"===n.value?[{type:"received"},n.context]:[{type:"status",result:n.value},n.context])}},{key:"onSignature",value:function(e,t,n){var r=this,a=this._buildArgs([e],n||this._commitment||"finalized"),i=this._makeSubscription({callback:function(e,n){if("status"===e.type){t(e.result,n);try{r.removeSignatureListener(i)}catch(e){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},a);return i}},{key:"onSignatureWithOptions",value:function(e,t,n){var a=this,i=(0,o.Z)((0,o.Z)({},n),{},{commitment:n&&n.commitment||this._commitment||"finalized"}),s=i.commitment,c=(0,r.Z)(i,Ar),u=this._buildArgs([e],s,void 0,c),f=this._makeSubscription({callback:function(e,n){t(e,n);try{a.removeSignatureListener(f)}catch(e){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},u);return f}},{key:"removeSignatureListener",value:(n=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"signature result");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_wsOnRootNotification",value:function(e){var t=mt(e,Ji),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onRootChange",value:function(e){return this._makeSubscription({callback:e,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}},{key:"removeRootChangeListener",value:(t=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"root change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),jo=function(){function e(t){(0,h.Z)(this,e),this._keypair=void 0,this._keypair=null!=t?t:xr()}return(0,y.Z)(e,[{key:"publicKey",get:function(){return new Nr(this._keypair.publicKey)}},{key:"secretKey",get:function(){return new Uint8Array(this._keypair.secretKey)}}],[{key:"generate",value:function(){return new e(xr())}},{key:"fromSecretKey",value:function(t,n){if(64!==t.byteLength)throw new Error("bad secret key size");var r=t.slice(32,64);if(!n||!n.skipValidation)for(var a=t.slice(0,32),i=_r(a),o=0;o<32;o++)if(r[o]!==i[o])throw new Error("provided secretKey is invalid");return new e({publicKey:r,secretKey:t})}},{key:"fromSeed",value:function(t){var n=_r(t),r=new Uint8Array(64);return r.set(t),r.set(n,32),new e({publicKey:n,secretKey:r})}}]),e}(),Uo=Object.freeze({CreateLookupTable:{index:0,layout:nt.struct([nt.u32("instruction"),Ia("recentSlot"),nt.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:nt.struct([nt.u32("instruction")])},ExtendLookupTable:{index:2,layout:nt.struct([nt.u32("instruction"),Ia(),nt.seq(Qr(),nt.offset(nt.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:nt.struct([nt.u32("instruction")])},CloseLookupTable:{index:4,layout:nt.struct([nt.u32("instruction")])}}),Lo=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=nt.u32("instruction").decode(e.data),r=0,a=Object.entries(Uo);r2?e.keys[2].pubkey:void 0,addresses:t.map((function(e){return new Nr(e)}))}}},{key:"decodeCloseLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,3),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,recipient:e.keys[2].pubkey}}},{key:"decodeFreezeLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}},{key:"decodeDeactivateLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}},{key:"checkProgramId",value:function(e){if(!e.equals(Zo.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}},{key:"checkKeysLength",value:function(e,t){if(e.length1?n-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:{},a=function(e,t,n){if(null==e)throw new Error('sign: expected valid message hash, not "'.concat(e,'"'));var r=Xn(e),a=cr(t),i=[dr(a),fr(r)];if(null!=n){!0===n&&(n=yr.randomBytes(Sn));var o=Xn(n);if(o.length!==Sn)throw new Error("sign: Expected ".concat(Sn," bytes of extra data"));i.push(o)}return{seed:Zn.apply(void 0,i),m:ur(r),d:a}}(e,t,r.extraEntropy),i=a.seed,o=a.m,s=a.d,c=new ar(32,In);for(c.reseedSync(i);!(n=sr(c.generateSync(),o,s,r.canonical));)c.reseedSync();return function(e,t){var n=e.sig,r=e.recovery,a=Object.assign({canonical:!0,der:!0},t),i=a.der,o=a.recovered,s=i?n.toDERRawBytes():n.toCompactRawBytes();return o?[s,r]:s}(n,r)}(e,t,{der:!1,recovered:!0})};yr.isValidPrivateKey;var Vo=nt.struct([nt.u8("numSignatures"),nt.u16("signatureOffset"),nt.u8("signatureInstructionIndex"),nt.u16("ethAddressOffset"),nt.u8("ethAddressInstructionIndex"),nt.u16("messageDataOffset"),nt.u16("messageDataSize"),nt.u8("messageInstructionIndex"),nt.blob(20,"ethAddress"),nt.blob(64,"signature"),nt.u8("recoveryId")]),Jo=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"publicKeyToEthAddress",value:function(e){Yr(64===e.length,"Public key must be ".concat(64," bytes but received ").concat(e.length," bytes"));try{return m.Buffer.from(fn(Cr(e))).slice(-20)}catch(e){throw new Error("Error constructing Ethereum address: ".concat(e))}}},{key:"createInstructionWithPublicKey",value:function(t){var n=t.publicKey,r=t.message,a=t.signature,i=t.recoveryId,o=t.instructionIndex;return e.createInstructionWithEthAddress({ethAddress:e.publicKeyToEthAddress(n),message:r,signature:a,recoveryId:i,instructionIndex:o})}},{key:"createInstructionWithEthAddress",value:function(t){var n,r=t.ethAddress,a=t.message,i=t.signature,o=t.recoveryId,s=t.instructionIndex,c=void 0===s?0:s;Yr(20===(n="string"==typeof r?r.startsWith("0x")?m.Buffer.from(r.substr(2),"hex"):m.Buffer.from(r,"hex"):r).length,"Address must be ".concat(20," bytes but received ").concat(n.length," bytes"));var u=12+n.length,f=u+i.length+1,d=m.Buffer.alloc(Vo.span+a.length);return Vo.encode({numSignatures:1,signatureOffset:u,signatureInstructionIndex:c,ethAddressOffset:12,ethAddressInstructionIndex:c,messageDataOffset:f,messageDataSize:a.length,messageInstructionIndex:c,signature:Cr(i),ethAddress:Cr(n),recoveryId:o},d),d.fill(Cr(a),Vo.span),new aa({keys:[],programId:e.programId,data:d})}},{key:"createInstructionWithPrivateKey",value:function(e){var t=e.privateKey,n=e.message,r=e.instructionIndex;Yr(32===t.length,"Private key must be ".concat(32," bytes but received ").concat(t.length," bytes"));try{var a=Cr(t),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Dn.fromPrivateKey(e).toRawBytes(t)}(a,!1).slice(1),o=m.Buffer.from(fn(Cr(n))),c=Ko(o,a),u=(0,s.Z)(c,2),f=u[0],d=u[1];return this.createInstructionWithPublicKey({publicKey:i,message:n,signature:f,recoveryId:d,instructionIndex:r})}catch(e){throw new Error("Error creating instruction; ".concat(e))}}}]),e}();Jo.programId=new Nr("KeccakSecp256k11111111111111111111111111111");var Go=new Nr("StakeConfig11111111111111111111111111111111"),Wo=(0,y.Z)((function e(t,n){(0,h.Z)(this,e),this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=n})),Yo=(0,y.Z)((function e(t,n,r){(0,h.Z)(this,e),this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=n,this.custodian=r}));Yo.default=new Yo(0,0,Nr.default);var Xo=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=nt.u32("instruction").decode(e.data),r=0,a=Object.entries($o);r3&&(a.custodianPubkey=e.keys[3].pubkey),a}},{key:"decodeAuthorizeWithSeed",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);var t=wa($o.AuthorizeWithSeed,e.data),n=t.newAuthorized,r=t.stakeAuthorizationType,a=t.authoritySeed,i=t.authorityOwner,o={stakePubkey:e.keys[0].pubkey,authorityBase:e.keys[1].pubkey,authoritySeed:a,authorityOwner:new Nr(i),newAuthorizedPubkey:new Nr(n),stakeAuthorizationType:{index:r}};return e.keys.length>3&&(o.custodianPubkey=e.keys[3].pubkey),o}},{key:"decodeSplit",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);var t=wa($o.Split,e.data).lamports;return{stakePubkey:e.keys[0].pubkey,splitStakePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[2].pubkey,lamports:t}}},{key:"decodeMerge",value:function(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),wa($o.Merge,e.data),{stakePubkey:e.keys[0].pubkey,sourceStakePubKey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey}}},{key:"decodeWithdraw",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,5);var t=wa($o.Withdraw,e.data).lamports,n={stakePubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey,lamports:t};return e.keys.length>5&&(n.custodianPubkey=e.keys[5].pubkey),n}},{key:"decodeDeactivate",value:function(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),wa($o.Deactivate,e.data),{stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey}}},{key:"checkProgramId",value:function(e){if(!e.equals(ts.programId))throw new Error("invalid instruction; programId is not StakeProgram")}},{key:"checkKeyLength",value:function(e,t){if(e.length0&&void 0!==arguments[0]?arguments[0]:"authorized";return nt.struct([Qr("staker"),Qr("withdrawer")],e)}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lockup";return nt.struct([nt.ns64("unixTimestamp"),nt.ns64("epoch"),Qr("custodian")],e)}()])},Authorize:{index:1,layout:nt.struct([nt.u32("instruction"),Qr("newAuthorized"),nt.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:nt.struct([nt.u32("instruction")])},Split:{index:3,layout:nt.struct([nt.u32("instruction"),nt.ns64("lamports")])},Withdraw:{index:4,layout:nt.struct([nt.u32("instruction"),nt.ns64("lamports")])},Deactivate:{index:5,layout:nt.struct([nt.u32("instruction")])},Merge:{index:7,layout:nt.struct([nt.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:nt.struct([nt.u32("instruction"),Qr("newAuthorized"),nt.u32("stakeAuthorizationType"),Vr("authoritySeed"),Qr("authorityOwner")])}}),es=Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),ts=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"initialize",value:function(e){var t=e.stakePubkey,n=e.authorized,r=e.lockup||Yo.default,a=Aa($o.Initialize,{authorized:{staker:Cr(n.staker.toBuffer()),withdrawer:Cr(n.withdrawer.toBuffer())},lockup:{unixTimestamp:r.unixTimestamp,epoch:r.epoch,custodian:Cr(r.custodian.toBuffer())}}),i={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:la,isSigner:!1,isWritable:!1}],programId:this.programId,data:a};return new aa(i)}},{key:"createAccountWithSeed",value:function(e){var t=new ia;t.add(Ta.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:this.space,programId:this.programId}));var n=e.stakePubkey,r=e.authorized,a=e.lockup;return t.add(this.initialize({stakePubkey:n,authorized:r,lockup:a}))}},{key:"createAccount",value:function(e){var t=new ia;t.add(Ta.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,lamports:e.lamports,space:this.space,programId:this.programId}));var n=e.stakePubkey,r=e.authorized,a=e.lockup;return t.add(this.initialize({stakePubkey:n,authorized:r,lockup:a}))}},{key:"delegate",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.votePubkey,a=Aa($o.Delegate);return(new ia).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:ya,isSigner:!1,isWritable:!1},{pubkey:Go,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}},{key:"authorize",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.newAuthorizedPubkey,a=e.stakeAuthorizationType,i=e.custodianPubkey,o=Aa($o.Authorize,{newAuthorized:Cr(r.toBuffer()),stakeAuthorizationType:a.index}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return i&&s.push({pubkey:i,isSigner:!1,isWritable:!1}),(new ia).add({keys:s,programId:this.programId,data:o})}},{key:"authorizeWithSeed",value:function(e){var t=e.stakePubkey,n=e.authorityBase,r=e.authoritySeed,a=e.authorityOwner,i=e.newAuthorizedPubkey,o=e.stakeAuthorizationType,s=e.custodianPubkey,c=Aa($o.AuthorizeWithSeed,{newAuthorized:Cr(i.toBuffer()),stakeAuthorizationType:o.index,authoritySeed:r,authorityOwner:Cr(a.toBuffer())}),u=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:ca,isSigner:!1,isWritable:!1}];return s&&u.push({pubkey:s,isSigner:!1,isWritable:!1}),(new ia).add({keys:u,programId:this.programId,data:c})}},{key:"splitInstruction",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.splitStakePubkey,a=e.lamports,i=Aa($o.Split,{lamports:a});return new aa({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"split",value:function(e){var t=new ia;return t.add(Ta.createAccount({fromPubkey:e.authorizedPubkey,newAccountPubkey:e.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),t.add(this.splitInstruction(e))}},{key:"splitWithSeed",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.splitStakePubkey,a=e.basePubkey,i=e.seed,o=e.lamports,s=new ia;return s.add(Ta.allocate({accountPubkey:r,basePubkey:a,seed:i,space:this.space,programId:this.programId})),s.add(this.splitInstruction({stakePubkey:t,authorizedPubkey:n,splitStakePubkey:r,lamports:o}))}},{key:"merge",value:function(e){var t=e.stakePubkey,n=e.sourceStakePubKey,r=e.authorizedPubkey,a=Aa($o.Merge);return(new ia).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:ya,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}},{key:"withdraw",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.toPubkey,a=e.lamports,i=e.custodianPubkey,o=Aa($o.Withdraw,{lamports:a}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:ya,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return i&&s.push({pubkey:i,isSigner:!1,isWritable:!1}),(new ia).add({keys:s,programId:this.programId,data:o})}},{key:"deactivate",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=Aa($o.Deactivate);return(new ia).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}}]),e}();ts.programId=new Nr("Stake11111111111111111111111111111111111111"),ts.space=200;var ns=(0,y.Z)((function e(t,n,r,a){(0,h.Z)(this,e),this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=n,this.authorizedWithdrawer=r,this.commission=a})),rs=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=nt.u32("instruction").decode(e.data),r=0,a=Object.entries(as);r0&&void 0!==arguments[0]?arguments[0]:"voteInit";return nt.struct([Qr("nodePubkey"),Qr("authorizedVoter"),Qr("authorizedWithdrawer"),nt.u8("commission")],e)}()])},Authorize:{index:1,layout:nt.struct([nt.u32("instruction"),Qr("newAuthorized"),nt.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:nt.struct([nt.u32("instruction"),nt.ns64("lamports")])},AuthorizeWithSeed:{index:10,layout:nt.struct([nt.u32("instruction"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"voteAuthorizeWithSeedArgs";return nt.struct([nt.u32("voteAuthorizationType"),Qr("currentAuthorityDerivedKeyOwnerPubkey"),Vr("currentAuthorityDerivedKeySeed"),Qr("newAuthorized")],e)}()])}}),is=Object.freeze({Voter:{index:0},Withdrawer:{index:1}}),os=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"initializeAccount",value:function(e){var t=e.votePubkey,n=e.nodePubkey,r=e.voteInit,a=Aa(as.InitializeAccount,{voteInit:{nodePubkey:Cr(r.nodePubkey.toBuffer()),authorizedVoter:Cr(r.authorizedVoter.toBuffer()),authorizedWithdrawer:Cr(r.authorizedWithdrawer.toBuffer()),commission:r.commission}}),i={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:la,isSigner:!1,isWritable:!1},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:a};return new aa(i)}},{key:"createAccount",value:function(e){var t=new ia;return t.add(Ta.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.votePubkey,lamports:e.lamports,space:this.space,programId:this.programId})),t.add(this.initializeAccount({votePubkey:e.votePubkey,nodePubkey:e.voteInit.nodePubkey,voteInit:e.voteInit}))}},{key:"authorize",value:function(e){var t=e.votePubkey,n=e.authorizedPubkey,r=e.newAuthorizedPubkey,a=e.voteAuthorizationType,i=Aa(as.Authorize,{newAuthorized:Cr(r.toBuffer()),voteAuthorizationType:a.index}),o=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return(new ia).add({keys:o,programId:this.programId,data:i})}},{key:"authorizeWithSeed",value:function(e){var t=e.currentAuthorityDerivedKeyBasePubkey,n=e.currentAuthorityDerivedKeyOwnerPubkey,r=e.currentAuthorityDerivedKeySeed,a=e.newAuthorizedPubkey,i=e.voteAuthorizationType,o=e.votePubkey,s=Aa(as.AuthorizeWithSeed,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:Cr(n.toBuffer()),currentAuthorityDerivedKeySeed:r,newAuthorized:Cr(a.toBuffer()),voteAuthorizationType:i.index}}),c=[{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:t,isSigner:!0,isWritable:!1}];return(new ia).add({keys:c,programId:this.programId,data:s})}},{key:"withdraw",value:function(e){var t=e.votePubkey,n=e.authorizedWithdrawerPubkey,r=e.lamports,a=e.toPubkey,i=Aa(as.Withdraw,{lamports:r}),o=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return(new ia).add({keys:o,programId:this.programId,data:i})}},{key:"safeWithdraw",value:function(t,n,r){if(t.lamports>n-r)throw new Error("Withdraw will leave vote account with insuffcient funds.");return e.withdraw(t)}}]),e}();os.programId=new Nr("Vote111111111111111111111111111111111111111"),os.space=3731;var ss=new Nr("Va1idator1nfo111111111111111111111111111111"),cs=Pt({name:Tt(),website:Et(Tt()),details:Et(Tt()),keybaseUsername:Et(Tt())}),us=function(){function e(t,n){(0,h.Z)(this,e),this.key=void 0,this.info=void 0,this.key=t,this.info=n}return(0,y.Z)(e,null,[{key:"fromConfigData",value:function(t){var n=(0,c.Z)(t);if(2!==Gr(n))return null;for(var r=[],a=0;a<2;a++){var i=new Nr(n.slice(0,Br)),o=1===(n=n.slice(Br)).slice(0,1)[0];n=n.slice(1),r.push({publicKey:i,isSigner:o})}if(r[0].publicKey.equals(ss)&&r[1].isSigner){var s=Vr().decode(m.Buffer.from(n)),u=JSON.parse(s);return yt(u,cs),new e(r[1].publicKey,u)}return null}}]),e}(),fs=new Nr("Vote111111111111111111111111111111111111111"),ds=nt.struct([Qr("nodePubkey"),Qr("authorizedWithdrawer"),nt.u8("commission"),nt.nu64(),nt.seq(nt.struct([nt.nu64("slot"),nt.u32("confirmationCount")]),nt.offset(nt.u32(),-8),"votes"),nt.u8("rootSlotValid"),nt.nu64("rootSlot"),nt.nu64(),nt.seq(nt.struct([nt.nu64("epoch"),Qr("authorizedVoter")]),nt.offset(nt.u32(),-8),"authorizedVoters"),nt.struct([nt.seq(nt.struct([Qr("authorizedPubkey"),nt.nu64("epochOfLastAuthorizedSwitch"),nt.nu64("targetEpoch")]),32,"buf"),nt.nu64("idx"),nt.u8("isEmpty")],"priorVoters"),nt.nu64(),nt.seq(nt.struct([nt.nu64("epoch"),nt.nu64("credits"),nt.nu64("prevCredits")]),nt.offset(nt.u32(),-8),"epochCredits"),nt.struct([nt.nu64("slot"),nt.nu64("timestamp")],"lastTimestamp")]),ls=function(){function e(t){(0,h.Z)(this,e),this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}return(0,y.Z)(e,null,[{key:"fromAccountData",value:function(t){var n,r,a,i=ds.decode(Cr(t),4),o=i.rootSlot;return i.rootSlotValid||(o=null),new e({nodePubkey:new Nr(i.nodePubkey),authorizedWithdrawer:new Nr(i.authorizedWithdrawer),commission:i.commission,votes:i.votes,rootSlot:o,authorizedVoters:i.authorizedVoters.map(ps),priorVoters:(n=i.priorVoters,r=n.buf,a=n.idx,n.isEmpty?[]:[].concat((0,c.Z)(r.slice(a+1).map(bs)),(0,c.Z)(r.slice(0,a).map(bs)))),epochCredits:i.epochCredits,lastTimestamp:i.lastTimestamp})}}]),e}();function ps(e){var t=e.authorizedVoter;return{epoch:e.epoch,authorizedVoter:new Nr(t)}}function bs(e){var t=e.authorizedPubkey,n=e.epochOfLastAuthorizedSwitch,r=e.targetEpoch;return{authorizedPubkey:new Nr(t),epochOfLastAuthorizedSwitch:n,targetEpoch:r}}var hs={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function ys(e,t){var n=!1===t?"http":"https";if(!e)return hs[n].devnet;var r=hs[n][e];if(!r)throw new Error("Unknown ".concat(n," cluster: ").concat(e));return r}function ms(e,t,n,r){return vs.apply(this,arguments)}function vs(){return vs=(0,l.Z)((0,d.Z)().mark((function e(t,n,r,a){var i,o,s,c,u,f,l;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r&&Object.prototype.hasOwnProperty.call(r,"lastValidBlockHeight")||r&&Object.prototype.hasOwnProperty.call(r,"nonceValue")?(i=r,o=a):o=r,s=o&&{skipPreflight:o.skipPreflight,preflightCommitment:o.preflightCommitment||o.commitment,minContextSlot:o.minContextSlot},e.next=4,t.sendRawTransaction(n,s);case 4:return c=e.sent,u=o&&o.commitment,f=i?t.confirmTransaction(i,u):t.confirmTransaction(c,u),e.next=9,f;case 9:if(!(l=e.sent.value).err){e.next=12;break}throw new Error("Raw transaction ".concat(c," failed (").concat(JSON.stringify(l),")"));case 12:return e.abrupt("return",c);case 13:case"end":return e.stop()}}),e)}))),vs.apply(this,arguments)}var gs=1e9},65580:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.ModuleAccount=t.BaseAccount=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(60832)),s=n(30189);t.protobufPackage="cosmos.auth.v1beta1";var c={address:"",accountNumber:i.default.UZERO,sequence:i.default.UZERO};t.BaseAccount={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.address&&t.uint32(10).string(e.address),void 0!==e.pubKey&&s.Any.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.accountNumber.isZero()||t.uint32(24).uint64(e.accountNumber),e.sequence.isZero()||t.uint32(32).uint64(e.sequence),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.address=n.string();break;case 2:a.pubKey=s.Any.decode(n,n.uint32());break;case 3:a.accountNumber=n.uint64();break;case 4:a.sequence=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.Any.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=i.default.fromString(e.accountNumber):t.accountNumber=i.default.UZERO,void 0!==e.sequence&&null!==e.sequence?t.sequence=i.default.fromString(e.sequence):t.sequence=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.pubKey&&(t.pubKey=e.pubKey?s.Any.toJSON(e.pubKey):void 0),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||i.default.UZERO).toString()),void 0!==e.sequence&&(t.sequence=(e.sequence||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.Any.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=e.accountNumber:t.accountNumber=i.default.UZERO,void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence=i.default.UZERO,t}};var u={name:"",permissions:""};t.ModuleAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseAccount&&t.BaseAccount.encode(e.baseAccount,n.uint32(10).fork()).ldelim(),""!==e.name&&n.uint32(18).string(e.name);var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.uint32(26).string(s)}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},u);for(i.permissions=[];r.pos>>3){case 1:i.baseAccount=t.BaseAccount.decode(r,r.uint32());break;case 2:i.name=r.string();break;case 3:i.permissions.push(r.string());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},u);if(n.permissions=[],void 0!==e.baseAccount&&null!==e.baseAccount?n.baseAccount=t.BaseAccount.fromJSON(e.baseAccount):n.baseAccount=void 0,void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.permissions&&null!==e.permissions){var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.permissions.push(String(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.baseAccount&&(n.baseAccount=e.baseAccount?t.BaseAccount.toJSON(e.baseAccount):void 0),void 0!==e.name&&(n.name=e.name),e.permissions?n.permissions=e.permissions.map((function(e){return e})):n.permissions=[],n},fromPartial:function(e){var n=Object.assign({},u);if(n.permissions=[],void 0!==e.baseAccount&&null!==e.baseAccount?n.baseAccount=t.BaseAccount.fromPartial(e.baseAccount):n.baseAccount=void 0,void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.permissions&&null!==e.permissions){var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.permissions.push(o)}}catch(e){i.e(e)}finally{i.f()}}return n}};var f={maxMemoCharacters:i.default.UZERO,txSigLimit:i.default.UZERO,txSizeCostPerByte:i.default.UZERO,sigVerifyCostEd25519:i.default.UZERO,sigVerifyCostSecp256k1:i.default.UZERO};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.maxMemoCharacters.isZero()||t.uint32(8).uint64(e.maxMemoCharacters),e.txSigLimit.isZero()||t.uint32(16).uint64(e.txSigLimit),e.txSizeCostPerByte.isZero()||t.uint32(24).uint64(e.txSizeCostPerByte),e.sigVerifyCostEd25519.isZero()||t.uint32(32).uint64(e.sigVerifyCostEd25519),e.sigVerifyCostSecp256k1.isZero()||t.uint32(40).uint64(e.sigVerifyCostSecp256k1),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.maxMemoCharacters=n.uint64();break;case 2:a.txSigLimit=n.uint64();break;case 3:a.txSizeCostPerByte=n.uint64();break;case 4:a.sigVerifyCostEd25519=n.uint64();break;case 5:a.sigVerifyCostSecp256k1=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters?t.maxMemoCharacters=i.default.fromString(e.maxMemoCharacters):t.maxMemoCharacters=i.default.UZERO,void 0!==e.txSigLimit&&null!==e.txSigLimit?t.txSigLimit=i.default.fromString(e.txSigLimit):t.txSigLimit=i.default.UZERO,void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte?t.txSizeCostPerByte=i.default.fromString(e.txSizeCostPerByte):t.txSizeCostPerByte=i.default.UZERO,void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=i.default.fromString(e.sigVerifyCostEd25519):t.sigVerifyCostEd25519=i.default.UZERO,void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=i.default.fromString(e.sigVerifyCostSecp256k1):t.sigVerifyCostSecp256k1=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.maxMemoCharacters&&(t.maxMemoCharacters=(e.maxMemoCharacters||i.default.UZERO).toString()),void 0!==e.txSigLimit&&(t.txSigLimit=(e.txSigLimit||i.default.UZERO).toString()),void 0!==e.txSizeCostPerByte&&(t.txSizeCostPerByte=(e.txSizeCostPerByte||i.default.UZERO).toString()),void 0!==e.sigVerifyCostEd25519&&(t.sigVerifyCostEd25519=(e.sigVerifyCostEd25519||i.default.UZERO).toString()),void 0!==e.sigVerifyCostSecp256k1&&(t.sigVerifyCostSecp256k1=(e.sigVerifyCostSecp256k1||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters?t.maxMemoCharacters=e.maxMemoCharacters:t.maxMemoCharacters=i.default.UZERO,void 0!==e.txSigLimit&&null!==e.txSigLimit?t.txSigLimit=e.txSigLimit:t.txSigLimit=i.default.UZERO,void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte?t.txSizeCostPerByte=e.txSizeCostPerByte:t.txSizeCostPerByte=i.default.UZERO,void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=e.sigVerifyCostEd25519:t.sigVerifyCostEd25519=i.default.UZERO,void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=e.sigVerifyCostSecp256k1:t.sigVerifyCostSecp256k1=i.default.UZERO,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},77048:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SearchTxsResult=t.TxMsgData=t.MsgData=t.SimulationResponse=t.Result=t.GasInfo=t.Attribute=t.StringEvent=t.ABCIMessageLog=t.TxResponse=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(60832)),s=n(30189),c=n(48359);t.protobufPackage="cosmos.base.abci.v1beta1";var u={height:i.default.ZERO,txhash:"",codespace:"",code:0,data:"",rawLog:"",info:"",gasWanted:i.default.ZERO,gasUsed:i.default.ZERO,timestamp:""};t.TxResponse={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.height.isZero()||n.uint32(8).int64(e.height),""!==e.txhash&&n.uint32(18).string(e.txhash),""!==e.codespace&&n.uint32(26).string(e.codespace),0!==e.code&&n.uint32(32).uint32(e.code),""!==e.data&&n.uint32(42).string(e.data),""!==e.rawLog&&n.uint32(50).string(e.rawLog);var a,i=r(e.logs);try{for(i.s();!(a=i.n()).done;){var c=a.value;t.ABCIMessageLog.encode(c,n.uint32(58).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return""!==e.info&&n.uint32(66).string(e.info),e.gasWanted.isZero()||n.uint32(72).int64(e.gasWanted),e.gasUsed.isZero()||n.uint32(80).int64(e.gasUsed),void 0!==e.tx&&s.Any.encode(e.tx,n.uint32(90).fork()).ldelim(),""!==e.timestamp&&n.uint32(98).string(e.timestamp),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},u);for(i.logs=[];r.pos>>3){case 1:i.height=r.int64();break;case 2:i.txhash=r.string();break;case 3:i.codespace=r.string();break;case 4:i.code=r.uint32();break;case 5:i.data=r.string();break;case 6:i.rawLog=r.string();break;case 7:i.logs.push(t.ABCIMessageLog.decode(r,r.uint32()));break;case 8:i.info=r.string();break;case 9:i.gasWanted=r.int64();break;case 10:i.gasUsed=r.int64();break;case 11:i.tx=s.Any.decode(r,r.uint32());break;case 12:i.timestamp=r.string();break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},u);if(n.logs=[],void 0!==e.height&&null!==e.height?n.height=i.default.fromString(e.height):n.height=i.default.ZERO,void 0!==e.txhash&&null!==e.txhash?n.txhash=String(e.txhash):n.txhash="",void 0!==e.codespace&&null!==e.codespace?n.codespace=String(e.codespace):n.codespace="",void 0!==e.code&&null!==e.code?n.code=Number(e.code):n.code=0,void 0!==e.data&&null!==e.data?n.data=String(e.data):n.data="",void 0!==e.rawLog&&null!==e.rawLog?n.rawLog=String(e.rawLog):n.rawLog="",void 0!==e.logs&&null!==e.logs){var a,o=r(e.logs);try{for(o.s();!(a=o.n()).done;){var c=a.value;n.logs.push(t.ABCIMessageLog.fromJSON(c))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=i.default.fromString(e.gasWanted):n.gasWanted=i.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=i.default.fromString(e.gasUsed):n.gasUsed=i.default.ZERO,void 0!==e.tx&&null!==e.tx?n.tx=s.Any.fromJSON(e.tx):n.tx=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=String(e.timestamp):n.timestamp="",n},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=(e.height||i.default.ZERO).toString()),void 0!==e.txhash&&(n.txhash=e.txhash),void 0!==e.codespace&&(n.codespace=e.codespace),void 0!==e.code&&(n.code=e.code),void 0!==e.data&&(n.data=e.data),void 0!==e.rawLog&&(n.rawLog=e.rawLog),e.logs?n.logs=e.logs.map((function(e){return e?t.ABCIMessageLog.toJSON(e):void 0})):n.logs=[],void 0!==e.info&&(n.info=e.info),void 0!==e.gasWanted&&(n.gasWanted=(e.gasWanted||i.default.ZERO).toString()),void 0!==e.gasUsed&&(n.gasUsed=(e.gasUsed||i.default.ZERO).toString()),void 0!==e.tx&&(n.tx=e.tx?s.Any.toJSON(e.tx):void 0),void 0!==e.timestamp&&(n.timestamp=e.timestamp),n},fromPartial:function(e){var n=Object.assign({},u);if(n.logs=[],void 0!==e.height&&null!==e.height?n.height=e.height:n.height=i.default.ZERO,void 0!==e.txhash&&null!==e.txhash?n.txhash=e.txhash:n.txhash="",void 0!==e.codespace&&null!==e.codespace?n.codespace=e.codespace:n.codespace="",void 0!==e.code&&null!==e.code?n.code=e.code:n.code=0,void 0!==e.data&&null!==e.data?n.data=e.data:n.data="",void 0!==e.rawLog&&null!==e.rawLog?n.rawLog=e.rawLog:n.rawLog="",void 0!==e.logs&&null!==e.logs){var a,o=r(e.logs);try{for(o.s();!(a=o.n()).done;){var c=a.value;n.logs.push(t.ABCIMessageLog.fromPartial(c))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.info&&null!==e.info?n.info=e.info:n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=e.gasWanted:n.gasWanted=i.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=e.gasUsed:n.gasUsed=i.default.ZERO,void 0!==e.tx&&null!==e.tx?n.tx=s.Any.fromPartial(e.tx):n.tx=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=e.timestamp:n.timestamp="",n}};var f={msgIndex:0,log:""};t.ABCIMessageLog={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();0!==e.msgIndex&&n.uint32(8).uint32(e.msgIndex),""!==e.log&&n.uint32(18).string(e.log);var a,i=r(e.events);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.StringEvent.encode(s,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);for(i.events=[];r.pos>>3){case 1:i.msgIndex=r.uint32();break;case 2:i.log=r.string();break;case 3:i.events.push(t.StringEvent.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},f);if(n.events=[],void 0!==e.msgIndex&&null!==e.msgIndex?n.msgIndex=Number(e.msgIndex):n.msgIndex=0,void 0!==e.log&&null!==e.log?n.log=String(e.log):n.log="",void 0!==e.events&&null!==e.events){var a,i=r(e.events);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.events.push(t.StringEvent.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.msgIndex&&(n.msgIndex=e.msgIndex),void 0!==e.log&&(n.log=e.log),e.events?n.events=e.events.map((function(e){return e?t.StringEvent.toJSON(e):void 0})):n.events=[],n},fromPartial:function(e){var n=Object.assign({},f);if(n.events=[],void 0!==e.msgIndex&&null!==e.msgIndex?n.msgIndex=e.msgIndex:n.msgIndex=0,void 0!==e.log&&null!==e.log?n.log=e.log:n.log="",void 0!==e.events&&null!==e.events){var a,i=r(e.events);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.events.push(t.StringEvent.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var d={type:""};t.StringEvent={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.type&&n.uint32(10).string(e.type);var a,i=r(e.attributes);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Attribute.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);for(i.attributes=[];r.pos>>3){case 1:i.type=r.string();break;case 2:i.attributes.push(t.Attribute.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},d);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=String(e.type):n.type="",void 0!==e.attributes&&null!==e.attributes){var a,i=r(e.attributes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.attributes.push(t.Attribute.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=e.type),e.attributes?n.attributes=e.attributes.map((function(e){return e?t.Attribute.toJSON(e):void 0})):n.attributes=[],n},fromPartial:function(e){var n=Object.assign({},d);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=e.type:n.type="",void 0!==e.attributes&&null!==e.attributes){var a,i=r(e.attributes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.attributes.push(t.Attribute.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var l={key:"",value:""};t.Attribute={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.key=n.string();break;case 2:a.value=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}};var p={gasWanted:i.default.UZERO,gasUsed:i.default.UZERO};t.GasInfo={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.gasWanted.isZero()||t.uint32(8).uint64(e.gasWanted),e.gasUsed.isZero()||t.uint32(16).uint64(e.gasUsed),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.gasWanted=n.uint64();break;case 2:a.gasUsed=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.gasWanted&&null!==e.gasWanted?t.gasWanted=i.default.fromString(e.gasWanted):t.gasWanted=i.default.UZERO,void 0!==e.gasUsed&&null!==e.gasUsed?t.gasUsed=i.default.fromString(e.gasUsed):t.gasUsed=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.gasWanted&&(t.gasWanted=(e.gasWanted||i.default.UZERO).toString()),void 0!==e.gasUsed&&(t.gasUsed=(e.gasUsed||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.gasWanted&&null!==e.gasWanted?t.gasWanted=e.gasWanted:t.gasWanted=i.default.UZERO,void 0!==e.gasUsed&&null!==e.gasUsed?t.gasUsed=e.gasUsed:t.gasUsed=i.default.UZERO,t}};var b={log:""};t.Result={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();0!==e.data.length&&t.uint32(10).bytes(e.data),""!==e.log&&t.uint32(18).string(e.log);var n,a=r(e.events);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Event.encode(i,t.uint32(26).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.events=[],a.data=new Uint8Array;n.pos>>3){case 1:a.data=n.bytes();break;case 2:a.log=n.string();break;case 3:a.events.push(c.Event.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);if(t.events=[],t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=w(e.data)),void 0!==e.log&&null!==e.log?t.log=String(e.log):t.log="",void 0!==e.events&&null!==e.events){var n,a=r(e.events);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.events.push(c.Event.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=_(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(t.log=e.log),e.events?t.events=e.events.map((function(e){return e?c.Event.toJSON(e):void 0})):t.events=[],t},fromPartial:function(e){var t=Object.assign({},b);if(t.events=[],void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.log&&null!==e.log?t.log=e.log:t.log="",void 0!==e.events&&null!==e.events){var n,a=r(e.events);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.events.push(c.Event.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var h={};t.SimulationResponse={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.gasInfo&&t.GasInfo.encode(e.gasInfo,n.uint32(10).fork()).ldelim(),void 0!==e.result&&t.Result.encode(e.result,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},h);r.pos>>3){case 1:i.gasInfo=t.GasInfo.decode(r,r.uint32());break;case 2:i.result=t.Result.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},h);return void 0!==e.gasInfo&&null!==e.gasInfo?n.gasInfo=t.GasInfo.fromJSON(e.gasInfo):n.gasInfo=void 0,void 0!==e.result&&null!==e.result?n.result=t.Result.fromJSON(e.result):n.result=void 0,n},toJSON:function(e){var n={};return void 0!==e.gasInfo&&(n.gasInfo=e.gasInfo?t.GasInfo.toJSON(e.gasInfo):void 0),void 0!==e.result&&(n.result=e.result?t.Result.toJSON(e.result):void 0),n},fromPartial:function(e){var n=Object.assign({},h);return void 0!==e.gasInfo&&null!==e.gasInfo?n.gasInfo=t.GasInfo.fromPartial(e.gasInfo):n.gasInfo=void 0,void 0!==e.result&&null!==e.result?n.result=t.Result.fromPartial(e.result):n.result=void 0,n}};var y={msgType:""};t.MsgData={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.msgType&&t.uint32(10).string(e.msgType),0!==e.data.length&&t.uint32(18).bytes(e.data),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.data=new Uint8Array;n.pos>>3){case 1:a.msgType=n.string();break;case 2:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return t.data=new Uint8Array,void 0!==e.msgType&&null!==e.msgType?t.msgType=String(e.msgType):t.msgType="",void 0!==e.data&&null!==e.data&&(t.data=w(e.data)),t},toJSON:function(e){var t={};return void 0!==e.msgType&&(t.msgType=e.msgType),void 0!==e.data&&(t.data=_(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.msgType&&null!==e.msgType?t.msgType=e.msgType:t.msgType="",void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var m={};t.TxMsgData={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.data);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.MsgData.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},m);for(i.data=[];r.pos>>3==1?i.data.push(t.MsgData.decode(r,r.uint32())):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},m);if(n.data=[],void 0!==e.data&&null!==e.data){var a,i=r(e.data);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.data.push(t.MsgData.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.data?n.data=e.data.map((function(e){return e?t.MsgData.toJSON(e):void 0})):n.data=[],n},fromPartial:function(e){var n=Object.assign({},m);if(n.data=[],void 0!==e.data&&null!==e.data){var a,i=r(e.data);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.data.push(t.MsgData.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var v={totalCount:i.default.UZERO,count:i.default.UZERO,pageNumber:i.default.UZERO,pageTotal:i.default.UZERO,limit:i.default.UZERO};t.SearchTxsResult={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.totalCount.isZero()||n.uint32(8).uint64(e.totalCount),e.count.isZero()||n.uint32(16).uint64(e.count),e.pageNumber.isZero()||n.uint32(24).uint64(e.pageNumber),e.pageTotal.isZero()||n.uint32(32).uint64(e.pageTotal),e.limit.isZero()||n.uint32(40).uint64(e.limit);var a,i=r(e.txs);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.TxResponse.encode(s,n.uint32(50).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},v);for(i.txs=[];r.pos>>3){case 1:i.totalCount=r.uint64();break;case 2:i.count=r.uint64();break;case 3:i.pageNumber=r.uint64();break;case 4:i.pageTotal=r.uint64();break;case 5:i.limit=r.uint64();break;case 6:i.txs.push(t.TxResponse.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},v);if(n.txs=[],void 0!==e.totalCount&&null!==e.totalCount?n.totalCount=i.default.fromString(e.totalCount):n.totalCount=i.default.UZERO,void 0!==e.count&&null!==e.count?n.count=i.default.fromString(e.count):n.count=i.default.UZERO,void 0!==e.pageNumber&&null!==e.pageNumber?n.pageNumber=i.default.fromString(e.pageNumber):n.pageNumber=i.default.UZERO,void 0!==e.pageTotal&&null!==e.pageTotal?n.pageTotal=i.default.fromString(e.pageTotal):n.pageTotal=i.default.UZERO,void 0!==e.limit&&null!==e.limit?n.limit=i.default.fromString(e.limit):n.limit=i.default.UZERO,void 0!==e.txs&&null!==e.txs){var a,o=r(e.txs);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.txs.push(t.TxResponse.fromJSON(s))}}catch(e){o.e(e)}finally{o.f()}}return n},toJSON:function(e){var n={};return void 0!==e.totalCount&&(n.totalCount=(e.totalCount||i.default.UZERO).toString()),void 0!==e.count&&(n.count=(e.count||i.default.UZERO).toString()),void 0!==e.pageNumber&&(n.pageNumber=(e.pageNumber||i.default.UZERO).toString()),void 0!==e.pageTotal&&(n.pageTotal=(e.pageTotal||i.default.UZERO).toString()),void 0!==e.limit&&(n.limit=(e.limit||i.default.UZERO).toString()),e.txs?n.txs=e.txs.map((function(e){return e?t.TxResponse.toJSON(e):void 0})):n.txs=[],n},fromPartial:function(e){var n=Object.assign({},v);if(n.txs=[],void 0!==e.totalCount&&null!==e.totalCount?n.totalCount=e.totalCount:n.totalCount=i.default.UZERO,void 0!==e.count&&null!==e.count?n.count=e.count:n.count=i.default.UZERO,void 0!==e.pageNumber&&null!==e.pageNumber?n.pageNumber=e.pageNumber:n.pageNumber=i.default.UZERO,void 0!==e.pageTotal&&null!==e.pageTotal?n.pageTotal=e.pageTotal:n.pageTotal=i.default.UZERO,void 0!==e.limit&&null!==e.limit?n.limit=e.limit:n.limit=i.default.UZERO,void 0!==e.txs&&null!==e.txs){var a,o=r(e.txs);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.txs.push(t.TxResponse.fromPartial(s))}}catch(e){o.e(e)}finally{o.f()}}return n}};var g=function(){if(void 0!==g)return g;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),A=g.atob||function(e){return g.Buffer.from(e,"base64").toString("binary")};function w(e){for(var t=A(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),e.offset.isZero()||t.uint32(16).uint64(e.offset),e.limit.isZero()||t.uint32(24).uint64(e.limit),!0===e.countTotal&&t.uint32(32).bool(e.countTotal),!0===e.reverse&&t.uint32(40).bool(e.reverse),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.key=new Uint8Array;n.pos>>3){case 1:a.key=n.bytes();break;case 2:a.offset=n.uint64();break;case 3:a.limit=n.uint64();break;case 4:a.countTotal=n.bool();break;case 5:a.reverse=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);return t.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=d(e.key)),void 0!==e.offset&&null!==e.offset?t.offset=i.default.fromString(e.offset):t.offset=i.default.UZERO,void 0!==e.limit&&null!==e.limit?t.limit=i.default.fromString(e.limit):t.limit=i.default.UZERO,void 0!==e.countTotal&&null!==e.countTotal?t.countTotal=Boolean(e.countTotal):t.countTotal=!1,void 0!==e.reverse&&null!==e.reverse?t.reverse=Boolean(e.reverse):t.reverse=!1,t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=p(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.offset&&(t.offset=(e.offset||i.default.UZERO).toString()),void 0!==e.limit&&(t.limit=(e.limit||i.default.UZERO).toString()),void 0!==e.countTotal&&(t.countTotal=e.countTotal),void 0!==e.reverse&&(t.reverse=e.reverse),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.offset&&null!==e.offset?t.offset=e.offset:t.offset=i.default.UZERO,void 0!==e.limit&&null!==e.limit?t.limit=e.limit:t.limit=i.default.UZERO,void 0!==e.countTotal&&null!==e.countTotal?t.countTotal=e.countTotal:t.countTotal=!1,void 0!==e.reverse&&null!==e.reverse?t.reverse=e.reverse:t.reverse=!1,t}};var c={total:i.default.UZERO};t.PageResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.nextKey.length&&t.uint32(10).bytes(e.nextKey),e.total.isZero()||t.uint32(16).uint64(e.total),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.nextKey=new Uint8Array;n.pos>>3){case 1:a.nextKey=n.bytes();break;case 2:a.total=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return t.nextKey=new Uint8Array,void 0!==e.nextKey&&null!==e.nextKey&&(t.nextKey=d(e.nextKey)),void 0!==e.total&&null!==e.total?t.total=i.default.fromString(e.total):t.total=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.nextKey&&(t.nextKey=p(void 0!==e.nextKey?e.nextKey:new Uint8Array)),void 0!==e.total&&(t.total=(e.total||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.nextKey&&null!==e.nextKey?t.nextKey=e.nextKey:t.nextKey=new Uint8Array,void 0!==e.total&&null!==e.total?t.total=e.total:t.total=i.default.UZERO,t}};var u=function(){if(void 0!==u)return u;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),f=u.atob||function(e){return u.Buffer.from(e,"base64").toString("binary")};function d(e){for(var t=f(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t}};var s={denom:"",amount:""};t.DecCoin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t}};var c={int:""};t.IntProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.int&&t.uint32(10).string(e.int),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3==1?a.int=n.string():n.skipType(7&o)}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.int&&null!==e.int?t.int=String(e.int):t.int="",t},toJSON:function(e){var t={};return void 0!==e.int&&(t.int=e.int),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.int&&null!==e.int?t.int=e.int:t.int="",t}};var u={dec:""};t.DecProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.dec&&t.uint32(10).string(e.dec),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3==1?a.dec=n.string():n.skipType(7&o)}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.dec&&null!==e.dec?t.dec=String(e.dec):t.dec="",t},toJSON:function(e){var t={};return void 0!==e.dec&&(t.dec=e.dec),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.dec&&null!==e.dec?t.dec=e.dec:t.dec="",t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},36675:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompactBitArray=t.MultiSignature=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(60832));t.protobufPackage="cosmos.crypto.multisig.v1beta1";var s={};t.MultiSignature={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.signatures);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.signatures=[];n.pos>>3==1?a.signatures.push(n.bytes()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},s);if(t.signatures=[],void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(d(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.signatures?t.signatures=e.signatures.map((function(e){return p(void 0!==e?e:new Uint8Array)})):t.signatures=[],t},fromPartial:function(e){var t=Object.assign({},s);if(t.signatures=[],void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var c={extraBitsStored:0};t.CompactBitArray={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.extraBitsStored&&t.uint32(8).uint32(e.extraBitsStored),0!==e.elems.length&&t.uint32(18).bytes(e.elems),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.elems=new Uint8Array;n.pos>>3){case 1:a.extraBitsStored=n.uint32();break;case 2:a.elems=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return t.elems=new Uint8Array,void 0!==e.extraBitsStored&&null!==e.extraBitsStored?t.extraBitsStored=Number(e.extraBitsStored):t.extraBitsStored=0,void 0!==e.elems&&null!==e.elems&&(t.elems=d(e.elems)),t},toJSON:function(e){var t={};return void 0!==e.extraBitsStored&&(t.extraBitsStored=e.extraBitsStored),void 0!==e.elems&&(t.elems=p(void 0!==e.elems?e.elems:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.extraBitsStored&&null!==e.extraBitsStored?t.extraBitsStored=e.extraBitsStored:t.extraBitsStored=0,void 0!==e.elems&&null!==e.elems?t.elems=e.elems:t.elems=new Uint8Array,t}};var u=function(){if(void 0!==u)return u;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),f=u.atob||function(e){return u.Buffer.from(e,"base64").toString("binary")};function d(e){for(var t=f(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.withdrawAddress&&t.uint32(18).string(e.withdrawAddress),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.withdrawAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.withdrawAddress&&null!==e.withdrawAddress?t.withdrawAddress=String(e.withdrawAddress):t.withdrawAddress="",t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.withdrawAddress&&(t.withdrawAddress=e.withdrawAddress),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.withdrawAddress&&null!==e.withdrawAddress?t.withdrawAddress=e.withdrawAddress:t.withdrawAddress="",t}};var d={};t.MsgSetWithdrawAddressResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",t}};var p={};t.MsgWithdrawDelegatorRewardResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.validatorAddress&&t.uint32(10).string(e.validatorAddress),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3==1?a.validatorAddress=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",t},toJSON:function(e){var t={};return void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",t}};var h={};t.MsgWithdrawValidatorCommissionResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create(),r=i(e.amount);try{for(r.s();!(t=r.n()).done;){var a=t.value;u.Coin.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return""!==e.depositor&&n.uint32(18).string(e.depositor),n},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.amount=[];n.pos>>3){case 1:a.amount.push(u.Coin.decode(n,n.uint32()));break;case 2:a.depositor=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(u.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.depositor&&null!==e.depositor?t.depositor=String(e.depositor):t.depositor="",t},toJSON:function(e){var t={};return e.amount?t.amount=e.amount.map((function(e){return e?u.Coin.toJSON(e):void 0})):t.amount=[],void 0!==e.depositor&&(t.depositor=e.depositor),t},fromPartial:function(e){var t=Object.assign({},y);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(u.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.depositor&&null!==e.depositor?t.depositor=e.depositor:t.depositor="",t}};var m={};t.MsgFundCommunityPoolResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.option&&t.uint32(8).int32(e.option),""!==e.weight&&t.uint32(18).string(e.weight),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3){case 1:a.option=n.int32();break;case 2:a.weight=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.option&&null!==e.option?t.option=p(e.option):t.option=0,void 0!==e.weight&&null!==e.weight?t.weight=String(e.weight):t.weight="",t},toJSON:function(e){var t={};return void 0!==e.option&&(t.option=b(e.option)),void 0!==e.weight&&(t.weight=e.weight),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.option&&null!==e.option?t.option=e.option:t.option=0,void 0!==e.weight&&null!==e.weight?t.weight=e.weight:t.weight="",t}};var v={title:"",description:""};t.TextProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",t}};var g={proposalId:s.default.UZERO,depositor:""};t.Deposit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.proposalId.isZero()||t.uint32(8).uint64(e.proposalId),""!==e.depositor&&t.uint32(18).string(e.depositor);var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;l.Coin.encode(i,t.uint32(26).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);for(a.amount=[];n.pos>>3){case 1:a.proposalId=n.uint64();break;case 2:a.depositor=n.string();break;case 3:a.amount.push(l.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},g);if(t.amount=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=s.default.fromString(e.proposalId):t.proposalId=s.default.UZERO,void 0!==e.depositor&&null!==e.depositor?t.depositor=String(e.depositor):t.depositor="",void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.amount.push(l.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.depositor&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map((function(e){return e?l.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t=Object.assign({},g);if(t.amount=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=e.proposalId:t.proposalId=s.default.UZERO,void 0!==e.depositor&&null!==e.depositor?t.depositor=e.depositor:t.depositor="",void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.amount.push(l.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var A={proposalId:s.default.UZERO,status:0};t.Proposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.proposalId.isZero()||n.uint32(8).uint64(e.proposalId),void 0!==e.content&&u.Any.encode(e.content,n.uint32(18).fork()).ldelim(),0!==e.status&&n.uint32(24).int32(e.status),void 0!==e.finalTallyResult&&t.TallyResult.encode(e.finalTallyResult,n.uint32(34).fork()).ldelim(),void 0!==e.submitTime&&d.Timestamp.encode(P(e.submitTime),n.uint32(42).fork()).ldelim(),void 0!==e.depositEndTime&&d.Timestamp.encode(P(e.depositEndTime),n.uint32(50).fork()).ldelim();var a,i=r(e.totalDeposit);try{for(i.s();!(a=i.n()).done;){var o=a.value;l.Coin.encode(o,n.uint32(58).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return void 0!==e.votingStartTime&&d.Timestamp.encode(P(e.votingStartTime),n.uint32(66).fork()).ldelim(),void 0!==e.votingEndTime&&d.Timestamp.encode(P(e.votingEndTime),n.uint32(74).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},A);for(i.totalDeposit=[];r.pos>>3){case 1:i.proposalId=r.uint64();break;case 2:i.content=u.Any.decode(r,r.uint32());break;case 3:i.status=r.int32();break;case 4:i.finalTallyResult=t.TallyResult.decode(r,r.uint32());break;case 5:i.submitTime=M(d.Timestamp.decode(r,r.uint32()));break;case 6:i.depositEndTime=M(d.Timestamp.decode(r,r.uint32()));break;case 7:i.totalDeposit.push(l.Coin.decode(r,r.uint32()));break;case 8:i.votingStartTime=M(d.Timestamp.decode(r,r.uint32()));break;case 9:i.votingEndTime=M(d.Timestamp.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},A);if(n.totalDeposit=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=s.default.fromString(e.proposalId):n.proposalId=s.default.UZERO,void 0!==e.content&&null!==e.content?n.content=u.Any.fromJSON(e.content):n.content=void 0,void 0!==e.status&&null!==e.status?n.status=h(e.status):n.status=0,void 0!==e.finalTallyResult&&null!==e.finalTallyResult?n.finalTallyResult=t.TallyResult.fromJSON(e.finalTallyResult):n.finalTallyResult=void 0,void 0!==e.submitTime&&null!==e.submitTime?n.submitTime=B(e.submitTime):n.submitTime=void 0,void 0!==e.depositEndTime&&null!==e.depositEndTime?n.depositEndTime=B(e.depositEndTime):n.depositEndTime=void 0,void 0!==e.totalDeposit&&null!==e.totalDeposit){var a,i=r(e.totalDeposit);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.totalDeposit.push(l.Coin.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.votingStartTime&&null!==e.votingStartTime?n.votingStartTime=B(e.votingStartTime):n.votingStartTime=void 0,void 0!==e.votingEndTime&&null!==e.votingEndTime?n.votingEndTime=B(e.votingEndTime):n.votingEndTime=void 0,n},toJSON:function(e){var n={};return void 0!==e.proposalId&&(n.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.content&&(n.content=e.content?u.Any.toJSON(e.content):void 0),void 0!==e.status&&(n.status=y(e.status)),void 0!==e.finalTallyResult&&(n.finalTallyResult=e.finalTallyResult?t.TallyResult.toJSON(e.finalTallyResult):void 0),void 0!==e.submitTime&&(n.submitTime=e.submitTime.toISOString()),void 0!==e.depositEndTime&&(n.depositEndTime=e.depositEndTime.toISOString()),e.totalDeposit?n.totalDeposit=e.totalDeposit.map((function(e){return e?l.Coin.toJSON(e):void 0})):n.totalDeposit=[],void 0!==e.votingStartTime&&(n.votingStartTime=e.votingStartTime.toISOString()),void 0!==e.votingEndTime&&(n.votingEndTime=e.votingEndTime.toISOString()),n},fromPartial:function(e){var n=Object.assign({},A);if(n.totalDeposit=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=e.proposalId:n.proposalId=s.default.UZERO,void 0!==e.content&&null!==e.content?n.content=u.Any.fromPartial(e.content):n.content=void 0,void 0!==e.status&&null!==e.status?n.status=e.status:n.status=0,void 0!==e.finalTallyResult&&null!==e.finalTallyResult?n.finalTallyResult=t.TallyResult.fromPartial(e.finalTallyResult):n.finalTallyResult=void 0,void 0!==e.submitTime&&null!==e.submitTime?n.submitTime=e.submitTime:n.submitTime=void 0,void 0!==e.depositEndTime&&null!==e.depositEndTime?n.depositEndTime=e.depositEndTime:n.depositEndTime=void 0,void 0!==e.totalDeposit&&null!==e.totalDeposit){var a,i=r(e.totalDeposit);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.totalDeposit.push(l.Coin.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.votingStartTime&&null!==e.votingStartTime?n.votingStartTime=e.votingStartTime:n.votingStartTime=void 0,void 0!==e.votingEndTime&&null!==e.votingEndTime?n.votingEndTime=e.votingEndTime:n.votingEndTime=void 0,n}};var w={yes:"",abstain:"",no:"",noWithVeto:""};t.TallyResult={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.yes&&t.uint32(10).string(e.yes),""!==e.abstain&&t.uint32(18).string(e.abstain),""!==e.no&&t.uint32(26).string(e.no),""!==e.noWithVeto&&t.uint32(34).string(e.noWithVeto),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos>>3){case 1:a.yes=n.string();break;case 2:a.abstain=n.string();break;case 3:a.no=n.string();break;case 4:a.noWithVeto=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},w);return void 0!==e.yes&&null!==e.yes?t.yes=String(e.yes):t.yes="",void 0!==e.abstain&&null!==e.abstain?t.abstain=String(e.abstain):t.abstain="",void 0!==e.no&&null!==e.no?t.no=String(e.no):t.no="",void 0!==e.noWithVeto&&null!==e.noWithVeto?t.noWithVeto=String(e.noWithVeto):t.noWithVeto="",t},toJSON:function(e){var t={};return void 0!==e.yes&&(t.yes=e.yes),void 0!==e.abstain&&(t.abstain=e.abstain),void 0!==e.no&&(t.no=e.no),void 0!==e.noWithVeto&&(t.noWithVeto=e.noWithVeto),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.yes&&null!==e.yes?t.yes=e.yes:t.yes="",void 0!==e.abstain&&null!==e.abstain?t.abstain=e.abstain:t.abstain="",void 0!==e.no&&null!==e.no?t.no=e.no:t.no="",void 0!==e.noWithVeto&&null!==e.noWithVeto?t.noWithVeto=e.noWithVeto:t.noWithVeto="",t}};var x={proposalId:s.default.UZERO,voter:"",option:0};t.Vote={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.proposalId.isZero()||n.uint32(8).uint64(e.proposalId),""!==e.voter&&n.uint32(18).string(e.voter),0!==e.option&&n.uint32(24).int32(e.option);var a,i=r(e.options);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.WeightedVoteOption.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},x);for(i.options=[];r.pos>>3){case 1:i.proposalId=r.uint64();break;case 2:i.voter=r.string();break;case 3:i.option=r.int32();break;case 4:i.options.push(t.WeightedVoteOption.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},x);if(n.options=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=s.default.fromString(e.proposalId):n.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?n.voter=String(e.voter):n.voter="",void 0!==e.option&&null!==e.option?n.option=p(e.option):n.option=0,void 0!==e.options&&null!==e.options){var a,i=r(e.options);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.options.push(t.WeightedVoteOption.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.proposalId&&(n.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.voter&&(n.voter=e.voter),void 0!==e.option&&(n.option=b(e.option)),e.options?n.options=e.options.map((function(e){return e?t.WeightedVoteOption.toJSON(e):void 0})):n.options=[],n},fromPartial:function(e){var n=Object.assign({},x);if(n.options=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=e.proposalId:n.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?n.voter=e.voter:n.voter="",void 0!==e.option&&null!==e.option?n.option=e.option:n.option=0,void 0!==e.options&&null!==e.options){var a,i=r(e.options);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.options.push(t.WeightedVoteOption.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var _={};t.DepositParams={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create(),a=r(e.minDeposit);try{for(a.s();!(t=a.n()).done;){var i=t.value;l.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return void 0!==e.maxDepositPeriod&&f.Duration.encode(e.maxDepositPeriod,n.uint32(18).fork()).ldelim(),n},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);for(a.minDeposit=[];n.pos>>3){case 1:a.minDeposit.push(l.Coin.decode(n,n.uint32()));break;case 2:a.maxDepositPeriod=f.Duration.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},_);if(t.minDeposit=[],void 0!==e.minDeposit&&null!==e.minDeposit){var n,a=r(e.minDeposit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.minDeposit.push(l.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.maxDepositPeriod&&null!==e.maxDepositPeriod?t.maxDepositPeriod=f.Duration.fromJSON(e.maxDepositPeriod):t.maxDepositPeriod=void 0,t},toJSON:function(e){var t={};return e.minDeposit?t.minDeposit=e.minDeposit.map((function(e){return e?l.Coin.toJSON(e):void 0})):t.minDeposit=[],void 0!==e.maxDepositPeriod&&(t.maxDepositPeriod=e.maxDepositPeriod?f.Duration.toJSON(e.maxDepositPeriod):void 0),t},fromPartial:function(e){var t=Object.assign({},_);if(t.minDeposit=[],void 0!==e.minDeposit&&null!==e.minDeposit){var n,a=r(e.minDeposit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.minDeposit.push(l.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.maxDepositPeriod&&null!==e.maxDepositPeriod?t.maxDepositPeriod=f.Duration.fromPartial(e.maxDepositPeriod):t.maxDepositPeriod=void 0,t}};var k={};t.VotingParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.votingPeriod&&f.Duration.encode(e.votingPeriod,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);n.pos>>3==1?a.votingPeriod=f.Duration.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},k);return void 0!==e.votingPeriod&&null!==e.votingPeriod?t.votingPeriod=f.Duration.fromJSON(e.votingPeriod):t.votingPeriod=void 0,t},toJSON:function(e){var t={};return void 0!==e.votingPeriod&&(t.votingPeriod=e.votingPeriod?f.Duration.toJSON(e.votingPeriod):void 0),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.votingPeriod&&null!==e.votingPeriod?t.votingPeriod=f.Duration.fromPartial(e.votingPeriod):t.votingPeriod=void 0,t}};var S={};t.TallyParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.quorum.length&&t.uint32(10).bytes(e.quorum),0!==e.threshold.length&&t.uint32(18).bytes(e.threshold),0!==e.vetoThreshold.length&&t.uint32(26).bytes(e.vetoThreshold),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},S);for(a.quorum=new Uint8Array,a.threshold=new Uint8Array,a.vetoThreshold=new Uint8Array;n.pos>>3){case 1:a.quorum=n.bytes();break;case 2:a.threshold=n.bytes();break;case 3:a.vetoThreshold=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},S);return t.quorum=new Uint8Array,t.threshold=new Uint8Array,t.vetoThreshold=new Uint8Array,void 0!==e.quorum&&null!==e.quorum&&(t.quorum=C(e.quorum)),void 0!==e.threshold&&null!==e.threshold&&(t.threshold=C(e.threshold)),void 0!==e.vetoThreshold&&null!==e.vetoThreshold&&(t.vetoThreshold=C(e.vetoThreshold)),t},toJSON:function(e){var t={};return void 0!==e.quorum&&(t.quorum=O(void 0!==e.quorum?e.quorum:new Uint8Array)),void 0!==e.threshold&&(t.threshold=O(void 0!==e.threshold?e.threshold:new Uint8Array)),void 0!==e.vetoThreshold&&(t.vetoThreshold=O(void 0!==e.vetoThreshold?e.vetoThreshold:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},S);return void 0!==e.quorum&&null!==e.quorum?t.quorum=e.quorum:t.quorum=new Uint8Array,void 0!==e.threshold&&null!==e.threshold?t.threshold=e.threshold:t.threshold=new Uint8Array,void 0!==e.vetoThreshold&&null!==e.vetoThreshold?t.vetoThreshold=e.vetoThreshold:t.vetoThreshold=new Uint8Array,t}};var I=function(){if(void 0!==I)return I;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),E=I.atob||function(e){return I.Buffer.from(e,"base64").toString("binary")};function C(e){for(var t=E(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&n.uint32(10).string(e.title),""!==e.description&&n.uint32(18).string(e.description);var a,i=r(e.changes);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.ParamChange.encode(s,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},s);for(i.changes=[];r.pos>>3){case 1:i.title=r.string();break;case 2:i.description=r.string();break;case 3:i.changes.push(t.ParamChange.decode(r,r.uint32()));break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},s);if(n.changes=[],void 0!==e.title&&null!==e.title?n.title=String(e.title):n.title="",void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.changes&&null!==e.changes){var a,i=r(e.changes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.changes.push(t.ParamChange.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.description&&(n.description=e.description),e.changes?n.changes=e.changes.map((function(e){return e?t.ParamChange.toJSON(e):void 0})):n.changes=[],n},fromPartial:function(e){var n=Object.assign({},s);if(n.changes=[],void 0!==e.title&&null!==e.title?n.title=e.title:n.title="",void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.changes&&null!==e.changes){var a,i=r(e.changes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.changes.push(t.ParamChange.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var c={subspace:"",key:"",value:""};t.ParamChange={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.subspace&&t.uint32(10).string(e.subspace),""!==e.key&&t.uint32(18).string(e.key),""!==e.value&&t.uint32(26).string(e.value),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.subspace=n.string();break;case 2:a.key=n.string();break;case 3:a.value=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.subspace&&null!==e.subspace?t.subspace=String(e.subspace):t.subspace="",void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON:function(e){var t={};return void 0!==e.subspace&&(t.subspace=e.subspace),void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.subspace&&null!==e.subspace?t.subspace=e.subspace:t.subspace="",void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},70322:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureDescriptor_Data_Multi=t.SignatureDescriptor_Data_Single=t.SignatureDescriptor_Data=t.SignatureDescriptor=t.SignatureDescriptors=t.signModeToJSON=t.signModeFromJSON=t.SignMode=t.protobufPackage=void 0;var i,o=a(n(12620)),s=a(n(60832)),c=n(30189),u=n(36675);function f(e){switch(e){case 0:case"SIGN_MODE_UNSPECIFIED":return i.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return i.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return i.SIGN_MODE_TEXTUAL;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return i.SIGN_MODE_LEGACY_AMINO_JSON;default:return i.UNRECOGNIZED}}function d(e){switch(e){case i.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case i.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case i.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case i.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";default:return"UNKNOWN"}}t.protobufPackage="cosmos.tx.signing.v1beta1",function(e){e[e.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",e[e.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",e[e.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",e[e.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=t.SignMode||(t.SignMode={})),t.signModeFromJSON=f,t.signModeToJSON=d;var l={};t.SignatureDescriptors={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create(),i=r(e.signatures);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.SignatureDescriptor.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},l);for(i.signatures=[];r.pos>>3==1?i.signatures.push(t.SignatureDescriptor.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},l);if(n.signatures=[],void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.signatures?n.signatures=e.signatures.map((function(e){return e?t.SignatureDescriptor.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},l);if(n.signatures=[],void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var p={sequence:o.default.UZERO};t.SignatureDescriptor={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.publicKey&&c.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),void 0!==e.data&&t.SignatureDescriptor_Data.encode(e.data,n.uint32(18).fork()).ldelim(),e.sequence.isZero()||n.uint32(24).uint64(e.sequence),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);r.pos>>3){case 1:i.publicKey=c.Any.decode(r,r.uint32());break;case 2:i.data=t.SignatureDescriptor_Data.decode(r,r.uint32());break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},p);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=c.Any.fromJSON(e.publicKey):n.publicKey=void 0,void 0!==e.data&&null!==e.data?n.data=t.SignatureDescriptor_Data.fromJSON(e.data):n.data=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=o.default.fromString(e.sequence):n.sequence=o.default.UZERO,n},toJSON:function(e){var n={};return void 0!==e.publicKey&&(n.publicKey=e.publicKey?c.Any.toJSON(e.publicKey):void 0),void 0!==e.data&&(n.data=e.data?t.SignatureDescriptor_Data.toJSON(e.data):void 0),void 0!==e.sequence&&(n.sequence=(e.sequence||o.default.UZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},p);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=c.Any.fromPartial(e.publicKey):n.publicKey=void 0,void 0!==e.data&&null!==e.data?n.data=t.SignatureDescriptor_Data.fromPartial(e.data):n.data=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=e.sequence:n.sequence=o.default.UZERO,n}};var b={};t.SignatureDescriptor_Data={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.single&&t.SignatureDescriptor_Data_Single.encode(e.single,n.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.SignatureDescriptor_Data_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);r.pos>>3){case 1:i.single=t.SignatureDescriptor_Data_Single.decode(r,r.uint32());break;case 2:i.multi=t.SignatureDescriptor_Data_Multi.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},b);return void 0!==e.single&&null!==e.single?n.single=t.SignatureDescriptor_Data_Single.fromJSON(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.SignatureDescriptor_Data_Multi.fromJSON(e.multi):n.multi=void 0,n},toJSON:function(e){var n={};return void 0!==e.single&&(n.single=e.single?t.SignatureDescriptor_Data_Single.toJSON(e.single):void 0),void 0!==e.multi&&(n.multi=e.multi?t.SignatureDescriptor_Data_Multi.toJSON(e.multi):void 0),n},fromPartial:function(e){var n=Object.assign({},b);return void 0!==e.single&&null!==e.single?n.single=t.SignatureDescriptor_Data_Single.fromPartial(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.SignatureDescriptor_Data_Multi.fromPartial(e.multi):n.multi=void 0,n}};var h={mode:0};t.SignatureDescriptor_Data_Single={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return 0!==e.mode&&t.uint32(8).int32(e.mode),0!==e.signature.length&&t.uint32(18).bytes(e.signature),t},decode:function(e,t){var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.signature=new Uint8Array;n.pos>>3){case 1:a.mode=n.int32();break;case 2:a.signature=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);return t.signature=new Uint8Array,void 0!==e.mode&&null!==e.mode?t.mode=f(e.mode):t.mode=0,void 0!==e.signature&&null!==e.signature&&(t.signature=function(e){for(var t=v(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();void 0!==e.bitarray&&u.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.SignatureDescriptor_Data.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},y);for(i.signatures=[];r.pos>>3){case 1:i.bitarray=u.CompactBitArray.decode(r,r.uint32());break;case 2:i.signatures.push(t.SignatureDescriptor_Data.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},y);if(n.signatures=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromJSON(e.bitarray):n.bitarray=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor_Data.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.bitarray&&(n.bitarray=e.bitarray?u.CompactBitArray.toJSON(e.bitarray):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return e?t.SignatureDescriptor_Data.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},y);if(n.signatures=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromPartial(e.bitarray):n.bitarray=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor_Data.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var m=function(){if(void 0!==m)return m;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),v=m.atob||function(e){return m.Buffer.from(e,"base64").toString("binary")},g=m.btoa||function(e){return m.Buffer.from(e,"binary").toString("base64")};s.default.util.Long!==o.default&&(s.default.util.Long=o.default,s.default.configure())},52736:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(21146).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceClientImpl=t.GetTxResponse=t.GetTxRequest=t.SimulateResponse=t.SimulateRequest=t.BroadcastTxResponse=t.BroadcastTxRequest=t.GetTxsEventResponse=t.GetTxsEventRequest=t.broadcastModeToJSON=t.broadcastModeFromJSON=t.BroadcastMode=t.orderByToJSON=t.orderByFromJSON=t.OrderBy=t.protobufPackage=void 0;var s,c,u=o(n(12620)),f=o(n(60832)),d=n(81071),l=n(77048),p=n(68e3);function b(e){switch(e){case 0:case"ORDER_BY_UNSPECIFIED":return s.ORDER_BY_UNSPECIFIED;case 1:case"ORDER_BY_ASC":return s.ORDER_BY_ASC;case 2:case"ORDER_BY_DESC":return s.ORDER_BY_DESC;default:return s.UNRECOGNIZED}}function h(e){switch(e){case s.ORDER_BY_UNSPECIFIED:return"ORDER_BY_UNSPECIFIED";case s.ORDER_BY_ASC:return"ORDER_BY_ASC";case s.ORDER_BY_DESC:return"ORDER_BY_DESC";default:return"UNKNOWN"}}function y(e){switch(e){case 0:case"BROADCAST_MODE_UNSPECIFIED":return c.BROADCAST_MODE_UNSPECIFIED;case 1:case"BROADCAST_MODE_BLOCK":return c.BROADCAST_MODE_BLOCK;case 2:case"BROADCAST_MODE_SYNC":return c.BROADCAST_MODE_SYNC;case 3:case"BROADCAST_MODE_ASYNC":return c.BROADCAST_MODE_ASYNC;default:return c.UNRECOGNIZED}}function m(e){switch(e){case c.BROADCAST_MODE_UNSPECIFIED:return"BROADCAST_MODE_UNSPECIFIED";case c.BROADCAST_MODE_BLOCK:return"BROADCAST_MODE_BLOCK";case c.BROADCAST_MODE_SYNC:return"BROADCAST_MODE_SYNC";case c.BROADCAST_MODE_ASYNC:return"BROADCAST_MODE_ASYNC";default:return"UNKNOWN"}}t.protobufPackage="cosmos.tx.v1beta1",function(e){e[e.ORDER_BY_UNSPECIFIED=0]="ORDER_BY_UNSPECIFIED",e[e.ORDER_BY_ASC=1]="ORDER_BY_ASC",e[e.ORDER_BY_DESC=2]="ORDER_BY_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.OrderBy||(t.OrderBy={})),t.orderByFromJSON=b,t.orderByToJSON=h,function(e){e[e.BROADCAST_MODE_UNSPECIFIED=0]="BROADCAST_MODE_UNSPECIFIED",e[e.BROADCAST_MODE_BLOCK=1]="BROADCAST_MODE_BLOCK",e[e.BROADCAST_MODE_SYNC=2]="BROADCAST_MODE_SYNC",e[e.BROADCAST_MODE_ASYNC=3]="BROADCAST_MODE_ASYNC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.BroadcastMode||(t.BroadcastMode={})),t.broadcastModeFromJSON=y,t.broadcastModeToJSON=m;var v={events:"",orderBy:0};t.GetTxsEventRequest={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create(),r=i(e.events);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}return void 0!==e.pagination&&d.PageRequest.encode(e.pagination,n.uint32(18).fork()).ldelim(),0!==e.orderBy&&n.uint32(24).int32(e.orderBy),n},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.events=[];n.pos>>3){case 1:a.events.push(n.string());break;case 2:a.pagination=d.PageRequest.decode(n,n.uint32());break;case 3:a.orderBy=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);if(t.events=[],void 0!==e.events&&null!==e.events){var n,r=i(e.events);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.events.push(String(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=d.PageRequest.fromJSON(e.pagination):t.pagination=void 0,void 0!==e.orderBy&&null!==e.orderBy?t.orderBy=b(e.orderBy):t.orderBy=0,t},toJSON:function(e){var t={};return e.events?t.events=e.events.map((function(e){return e})):t.events=[],void 0!==e.pagination&&(t.pagination=e.pagination?d.PageRequest.toJSON(e.pagination):void 0),void 0!==e.orderBy&&(t.orderBy=h(e.orderBy)),t},fromPartial:function(e){var t=Object.assign({},v);if(t.events=[],void 0!==e.events&&null!==e.events){var n,r=i(e.events);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.events.push(a)}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=d.PageRequest.fromPartial(e.pagination):t.pagination=void 0,void 0!==e.orderBy&&null!==e.orderBy?t.orderBy=e.orderBy:t.orderBy=0,t}};var g={};t.GetTxsEventResponse={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create(),r=i(e.txs);try{for(r.s();!(t=r.n()).done;){var a=t.value;p.Tx.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var o,s=i(e.txResponses);try{for(s.s();!(o=s.n()).done;){var c=o.value;l.TxResponse.encode(c,n.uint32(18).fork()).ldelim()}}catch(e){s.e(e)}finally{s.f()}return void 0!==e.pagination&&d.PageResponse.encode(e.pagination,n.uint32(26).fork()).ldelim(),n},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);for(a.txs=[],a.txResponses=[];n.pos>>3){case 1:a.txs.push(p.Tx.decode(n,n.uint32()));break;case 2:a.txResponses.push(l.TxResponse.decode(n,n.uint32()));break;case 3:a.pagination=d.PageResponse.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},g);if(t.txs=[],t.txResponses=[],void 0!==e.txs&&null!==e.txs){var n,r=i(e.txs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.txs.push(p.Tx.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}if(void 0!==e.txResponses&&null!==e.txResponses){var o,s=i(e.txResponses);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.txResponses.push(l.TxResponse.fromJSON(c))}}catch(e){s.e(e)}finally{s.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=d.PageResponse.fromJSON(e.pagination):t.pagination=void 0,t},toJSON:function(e){var t={};return e.txs?t.txs=e.txs.map((function(e){return e?p.Tx.toJSON(e):void 0})):t.txs=[],e.txResponses?t.txResponses=e.txResponses.map((function(e){return e?l.TxResponse.toJSON(e):void 0})):t.txResponses=[],void 0!==e.pagination&&(t.pagination=e.pagination?d.PageResponse.toJSON(e.pagination):void 0),t},fromPartial:function(e){var t=Object.assign({},g);if(t.txs=[],t.txResponses=[],void 0!==e.txs&&null!==e.txs){var n,r=i(e.txs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.txs.push(p.Tx.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}if(void 0!==e.txResponses&&null!==e.txResponses){var o,s=i(e.txResponses);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.txResponses.push(l.TxResponse.fromPartial(c))}}catch(e){s.e(e)}finally{s.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=d.PageResponse.fromPartial(e.pagination):t.pagination=void 0,t}};var A={mode:0};t.BroadcastTxRequest={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return 0!==e.txBytes.length&&t.uint32(10).bytes(e.txBytes),0!==e.mode&&t.uint32(16).int32(e.mode),t},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.txBytes=new Uint8Array;n.pos>>3){case 1:a.txBytes=n.bytes();break;case 2:a.mode=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return t.txBytes=new Uint8Array,void 0!==e.txBytes&&null!==e.txBytes&&(t.txBytes=T(e.txBytes)),void 0!==e.mode&&null!==e.mode?t.mode=y(e.mode):t.mode=0,t},toJSON:function(e){var t={};return void 0!==e.txBytes&&(t.txBytes=P(void 0!==e.txBytes?e.txBytes:new Uint8Array)),void 0!==e.mode&&(t.mode=m(e.mode)),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.txBytes&&null!==e.txBytes?t.txBytes=e.txBytes:t.txBytes=new Uint8Array,void 0!==e.mode&&null!==e.mode?t.mode=e.mode:t.mode=0,t}};var w={};t.BroadcastTxResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return void 0!==e.txResponse&&l.TxResponse.encode(e.txResponse,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos>>3==1?a.txResponse=l.TxResponse.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},w);return void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=l.TxResponse.fromJSON(e.txResponse):t.txResponse=void 0,t},toJSON:function(e){var t={};return void 0!==e.txResponse&&(t.txResponse=e.txResponse?l.TxResponse.toJSON(e.txResponse):void 0),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=l.TxResponse.fromPartial(e.txResponse):t.txResponse=void 0,t}};var x={};t.SimulateRequest={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return void 0!==e.tx&&p.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),0!==e.txBytes.length&&t.uint32(18).bytes(e.txBytes),t},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},x);for(a.txBytes=new Uint8Array;n.pos>>3){case 1:a.tx=p.Tx.decode(n,n.uint32());break;case 2:a.txBytes=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},x);return t.txBytes=new Uint8Array,void 0!==e.tx&&null!==e.tx?t.tx=p.Tx.fromJSON(e.tx):t.tx=void 0,void 0!==e.txBytes&&null!==e.txBytes&&(t.txBytes=T(e.txBytes)),t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=e.tx?p.Tx.toJSON(e.tx):void 0),void 0!==e.txBytes&&(t.txBytes=P(void 0!==e.txBytes?e.txBytes:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},x);return void 0!==e.tx&&null!==e.tx?t.tx=p.Tx.fromPartial(e.tx):t.tx=void 0,void 0!==e.txBytes&&null!==e.txBytes?t.txBytes=e.txBytes:t.txBytes=new Uint8Array,t}};var _={};t.SimulateResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return void 0!==e.gasInfo&&l.GasInfo.encode(e.gasInfo,t.uint32(10).fork()).ldelim(),void 0!==e.result&&l.Result.encode(e.result,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);n.pos>>3){case 1:a.gasInfo=l.GasInfo.decode(n,n.uint32());break;case 2:a.result=l.Result.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},_);return void 0!==e.gasInfo&&null!==e.gasInfo?t.gasInfo=l.GasInfo.fromJSON(e.gasInfo):t.gasInfo=void 0,void 0!==e.result&&null!==e.result?t.result=l.Result.fromJSON(e.result):t.result=void 0,t},toJSON:function(e){var t={};return void 0!==e.gasInfo&&(t.gasInfo=e.gasInfo?l.GasInfo.toJSON(e.gasInfo):void 0),void 0!==e.result&&(t.result=e.result?l.Result.toJSON(e.result):void 0),t},fromPartial:function(e){var t=Object.assign({},_);return void 0!==e.gasInfo&&null!==e.gasInfo?t.gasInfo=l.GasInfo.fromPartial(e.gasInfo):t.gasInfo=void 0,void 0!==e.result&&null!==e.result?t.result=l.Result.fromPartial(e.result):t.result=void 0,t}};var k={hash:""};t.GetTxRequest={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return""!==e.hash&&t.uint32(10).string(e.hash),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);n.pos>>3==1?a.hash=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},k);return void 0!==e.hash&&null!==e.hash?t.hash=String(e.hash):t.hash="",t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=e.hash),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash="",t}};var S={};t.GetTxResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return void 0!==e.tx&&p.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),void 0!==e.txResponse&&l.TxResponse.encode(e.txResponse,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},S);n.pos>>3){case 1:a.tx=p.Tx.decode(n,n.uint32());break;case 2:a.txResponse=l.TxResponse.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},S);return void 0!==e.tx&&null!==e.tx?t.tx=p.Tx.fromJSON(e.tx):t.tx=void 0,void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=l.TxResponse.fromJSON(e.txResponse):t.txResponse=void 0,t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=e.tx?p.Tx.toJSON(e.tx):void 0),void 0!==e.txResponse&&(t.txResponse=e.txResponse?l.TxResponse.toJSON(e.txResponse):void 0),t},fromPartial:function(e){var t=Object.assign({},S);return void 0!==e.tx&&null!==e.tx?t.tx=p.Tx.fromPartial(e.tx):t.tx=void 0,void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=l.TxResponse.fromPartial(e.txResponse):t.txResponse=void 0,t}};var I=function(){function e(t){r(this,e),this.rpc=t,this.Simulate=this.Simulate.bind(this),this.GetTx=this.GetTx.bind(this),this.BroadcastTx=this.BroadcastTx.bind(this),this.GetTxsEvent=this.GetTxsEvent.bind(this)}return a(e,[{key:"Simulate",value:function(e){var n=t.SimulateRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","Simulate",n).then((function(e){return t.SimulateResponse.decode(new f.default.Reader(e))}))}},{key:"GetTx",value:function(e){var n=t.GetTxRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetTx",n).then((function(e){return t.GetTxResponse.decode(new f.default.Reader(e))}))}},{key:"BroadcastTx",value:function(e){var n=t.BroadcastTxRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","BroadcastTx",n).then((function(e){return t.BroadcastTxResponse.decode(new f.default.Reader(e))}))}},{key:"GetTxsEvent",value:function(e){var n=t.GetTxsEventRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetTxsEvent",n).then((function(e){return t.GetTxsEventResponse.decode(new f.default.Reader(e))}))}}]),e}();t.ServiceClientImpl=I;var E=function(){if(void 0!==E)return E;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),C=E.atob||function(e){return E.Buffer.from(e,"base64").toString("binary")};function T(e){for(var t=C(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.body&&t.TxBody.encode(e.body,n.uint32(10).fork()).ldelim(),void 0!==e.authInfo&&t.AuthInfo.encode(e.authInfo,n.uint32(18).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.uint32(26).bytes(s)}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);for(i.signatures=[];r.pos>>3){case 1:i.body=t.TxBody.decode(r,r.uint32());break;case 2:i.authInfo=t.AuthInfo.decode(r,r.uint32());break;case 3:i.signatures.push(r.bytes());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},d);if(n.signatures=[],void 0!==e.body&&null!==e.body?n.body=t.TxBody.fromJSON(e.body):n.body=void 0,void 0!==e.authInfo&&null!==e.authInfo?n.authInfo=t.AuthInfo.fromJSON(e.authInfo):n.authInfo=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(_(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.body&&(n.body=e.body?t.TxBody.toJSON(e.body):void 0),void 0!==e.authInfo&&(n.authInfo=e.authInfo?t.AuthInfo.toJSON(e.authInfo):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return S(void 0!==e?e:new Uint8Array)})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},d);if(n.signatures=[],void 0!==e.body&&null!==e.body?n.body=t.TxBody.fromPartial(e.body):n.body=void 0,void 0!==e.authInfo&&null!==e.authInfo?n.authInfo=t.AuthInfo.fromPartial(e.authInfo):n.authInfo=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(o)}}catch(e){i.e(e)}finally{i.f()}}return n}};var l={};t.TxRaw={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes);var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(26).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.signatures=[],a.bodyBytes=new Uint8Array,a.authInfoBytes=new Uint8Array;n.pos>>3){case 1:a.bodyBytes=n.bytes();break;case 2:a.authInfoBytes=n.bytes();break;case 3:a.signatures.push(n.bytes());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.signatures=[],t.bodyBytes=new Uint8Array,t.authInfoBytes=new Uint8Array,void 0!==e.bodyBytes&&null!==e.bodyBytes&&(t.bodyBytes=_(e.bodyBytes)),void 0!==e.authInfoBytes&&null!==e.authInfoBytes&&(t.authInfoBytes=_(e.authInfoBytes)),void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(_(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.bodyBytes&&(t.bodyBytes=S(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=S(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),e.signatures?t.signatures=e.signatures.map((function(e){return S(void 0!==e?e:new Uint8Array)})):t.signatures=[],t},fromPartial:function(e){var t=Object.assign({},l);if(t.signatures=[],void 0!==e.bodyBytes&&null!==e.bodyBytes?t.bodyBytes=e.bodyBytes:t.bodyBytes=new Uint8Array,void 0!==e.authInfoBytes&&null!==e.authInfoBytes?t.authInfoBytes=e.authInfoBytes:t.authInfoBytes=new Uint8Array,void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var p={chainId:"",accountNumber:i.default.UZERO};t.SignDoc={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes),""!==e.chainId&&t.uint32(26).string(e.chainId),e.accountNumber.isZero()||t.uint32(32).uint64(e.accountNumber),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.bodyBytes=new Uint8Array,a.authInfoBytes=new Uint8Array;n.pos>>3){case 1:a.bodyBytes=n.bytes();break;case 2:a.authInfoBytes=n.bytes();break;case 3:a.chainId=n.string();break;case 4:a.accountNumber=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return t.bodyBytes=new Uint8Array,t.authInfoBytes=new Uint8Array,void 0!==e.bodyBytes&&null!==e.bodyBytes&&(t.bodyBytes=_(e.bodyBytes)),void 0!==e.authInfoBytes&&null!==e.authInfoBytes&&(t.authInfoBytes=_(e.authInfoBytes)),void 0!==e.chainId&&null!==e.chainId?t.chainId=String(e.chainId):t.chainId="",void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=i.default.fromString(e.accountNumber):t.accountNumber=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.bodyBytes&&(t.bodyBytes=S(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=S(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.bodyBytes&&null!==e.bodyBytes?t.bodyBytes=e.bodyBytes:t.bodyBytes=new Uint8Array,void 0!==e.authInfoBytes&&null!==e.authInfoBytes?t.authInfoBytes=e.authInfoBytes:t.authInfoBytes=new Uint8Array,void 0!==e.chainId&&null!==e.chainId?t.chainId=e.chainId:t.chainId="",void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=e.accountNumber:t.accountNumber=i.default.UZERO,t}};var b={memo:"",timeoutHeight:i.default.UZERO};t.TxBody={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.messages);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Any.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}""!==e.memo&&n.uint32(18).string(e.memo),e.timeoutHeight.isZero()||n.uint32(24).uint64(e.timeoutHeight);var c,u=r(e.extensionOptions);try{for(u.s();!(c=u.n()).done;){var f=c.value;s.Any.encode(f,n.uint32(8186).fork()).ldelim()}}catch(e){u.e(e)}finally{u.f()}var d,l=r(e.nonCriticalExtensionOptions);try{for(l.s();!(d=l.n()).done;){var p=d.value;s.Any.encode(p,n.uint32(16378).fork()).ldelim()}}catch(e){l.e(e)}finally{l.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.messages=[],a.extensionOptions=[],a.nonCriticalExtensionOptions=[];n.pos>>3){case 1:a.messages.push(s.Any.decode(n,n.uint32()));break;case 2:a.memo=n.string();break;case 3:a.timeoutHeight=n.uint64();break;case 1023:a.extensionOptions.push(s.Any.decode(n,n.uint32()));break;case 2047:a.nonCriticalExtensionOptions.push(s.Any.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);if(t.messages=[],t.extensionOptions=[],t.nonCriticalExtensionOptions=[],void 0!==e.messages&&null!==e.messages){var n,a=r(e.messages);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.messages.push(s.Any.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.memo&&null!==e.memo?t.memo=String(e.memo):t.memo="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=i.default.fromString(e.timeoutHeight):t.timeoutHeight=i.default.UZERO,void 0!==e.extensionOptions&&null!==e.extensionOptions){var c,u=r(e.extensionOptions);try{for(u.s();!(c=u.n()).done;){var f=c.value;t.extensionOptions.push(s.Any.fromJSON(f))}}catch(e){u.e(e)}finally{u.f()}}if(void 0!==e.nonCriticalExtensionOptions&&null!==e.nonCriticalExtensionOptions){var d,l=r(e.nonCriticalExtensionOptions);try{for(l.s();!(d=l.n()).done;){var p=d.value;t.nonCriticalExtensionOptions.push(s.Any.fromJSON(p))}}catch(e){l.e(e)}finally{l.f()}}return t},toJSON:function(e){var t={};return e.messages?t.messages=e.messages.map((function(e){return e?s.Any.toJSON(e):void 0})):t.messages=[],void 0!==e.memo&&(t.memo=e.memo),void 0!==e.timeoutHeight&&(t.timeoutHeight=(e.timeoutHeight||i.default.UZERO).toString()),e.extensionOptions?t.extensionOptions=e.extensionOptions.map((function(e){return e?s.Any.toJSON(e):void 0})):t.extensionOptions=[],e.nonCriticalExtensionOptions?t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map((function(e){return e?s.Any.toJSON(e):void 0})):t.nonCriticalExtensionOptions=[],t},fromPartial:function(e){var t=Object.assign({},b);if(t.messages=[],t.extensionOptions=[],t.nonCriticalExtensionOptions=[],void 0!==e.messages&&null!==e.messages){var n,a=r(e.messages);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.messages.push(s.Any.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.memo&&null!==e.memo?t.memo=e.memo:t.memo="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=e.timeoutHeight:t.timeoutHeight=i.default.UZERO,void 0!==e.extensionOptions&&null!==e.extensionOptions){var c,u=r(e.extensionOptions);try{for(u.s();!(c=u.n()).done;){var f=c.value;t.extensionOptions.push(s.Any.fromPartial(f))}}catch(e){u.e(e)}finally{u.f()}}if(void 0!==e.nonCriticalExtensionOptions&&null!==e.nonCriticalExtensionOptions){var d,l=r(e.nonCriticalExtensionOptions);try{for(l.s();!(d=l.n()).done;){var p=d.value;t.nonCriticalExtensionOptions.push(s.Any.fromPartial(p))}}catch(e){l.e(e)}finally{l.f()}}return t}};var h={};t.AuthInfo={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.signerInfos);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.SignerInfo.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return void 0!==e.fee&&t.Fee.encode(e.fee,a.uint32(18).fork()).ldelim(),a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},h);for(i.signerInfos=[];r.pos>>3){case 1:i.signerInfos.push(t.SignerInfo.decode(r,r.uint32()));break;case 2:i.fee=t.Fee.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},h);if(n.signerInfos=[],void 0!==e.signerInfos&&null!==e.signerInfos){var a,i=r(e.signerInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signerInfos.push(t.SignerInfo.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.fee&&null!==e.fee?n.fee=t.Fee.fromJSON(e.fee):n.fee=void 0,n},toJSON:function(e){var n={};return e.signerInfos?n.signerInfos=e.signerInfos.map((function(e){return e?t.SignerInfo.toJSON(e):void 0})):n.signerInfos=[],void 0!==e.fee&&(n.fee=e.fee?t.Fee.toJSON(e.fee):void 0),n},fromPartial:function(e){var n=Object.assign({},h);if(n.signerInfos=[],void 0!==e.signerInfos&&null!==e.signerInfos){var a,i=r(e.signerInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signerInfos.push(t.SignerInfo.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.fee&&null!==e.fee?n.fee=t.Fee.fromPartial(e.fee):n.fee=void 0,n}};var y={sequence:i.default.UZERO};t.SignerInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.publicKey&&s.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),void 0!==e.modeInfo&&t.ModeInfo.encode(e.modeInfo,n.uint32(18).fork()).ldelim(),e.sequence.isZero()||n.uint32(24).uint64(e.sequence),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},y);r.pos>>3){case 1:i.publicKey=s.Any.decode(r,r.uint32());break;case 2:i.modeInfo=t.ModeInfo.decode(r,r.uint32());break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},y);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=s.Any.fromJSON(e.publicKey):n.publicKey=void 0,void 0!==e.modeInfo&&null!==e.modeInfo?n.modeInfo=t.ModeInfo.fromJSON(e.modeInfo):n.modeInfo=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=i.default.fromString(e.sequence):n.sequence=i.default.UZERO,n},toJSON:function(e){var n={};return void 0!==e.publicKey&&(n.publicKey=e.publicKey?s.Any.toJSON(e.publicKey):void 0),void 0!==e.modeInfo&&(n.modeInfo=e.modeInfo?t.ModeInfo.toJSON(e.modeInfo):void 0),void 0!==e.sequence&&(n.sequence=(e.sequence||i.default.UZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},y);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=s.Any.fromPartial(e.publicKey):n.publicKey=void 0,void 0!==e.modeInfo&&null!==e.modeInfo?n.modeInfo=t.ModeInfo.fromPartial(e.modeInfo):n.modeInfo=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=e.sequence:n.sequence=i.default.UZERO,n}};var m={};t.ModeInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.single&&t.ModeInfo_Single.encode(e.single,n.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.ModeInfo_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},m);r.pos>>3){case 1:i.single=t.ModeInfo_Single.decode(r,r.uint32());break;case 2:i.multi=t.ModeInfo_Multi.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},m);return void 0!==e.single&&null!==e.single?n.single=t.ModeInfo_Single.fromJSON(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.ModeInfo_Multi.fromJSON(e.multi):n.multi=void 0,n},toJSON:function(e){var n={};return void 0!==e.single&&(n.single=e.single?t.ModeInfo_Single.toJSON(e.single):void 0),void 0!==e.multi&&(n.multi=e.multi?t.ModeInfo_Multi.toJSON(e.multi):void 0),n},fromPartial:function(e){var n=Object.assign({},m);return void 0!==e.single&&null!==e.single?n.single=t.ModeInfo_Single.fromPartial(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.ModeInfo_Multi.fromPartial(e.multi):n.multi=void 0,n}};var v={mode:0};t.ModeInfo_Single={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.mode&&t.uint32(8).int32(e.mode),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3==1?a.mode=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.mode&&null!==e.mode?t.mode=c.signModeFromJSON(e.mode):t.mode=0,t},toJSON:function(e){var t={};return void 0!==e.mode&&(t.mode=c.signModeToJSON(e.mode)),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.mode&&null!==e.mode?t.mode=e.mode:t.mode=0,t}};var g={};t.ModeInfo_Multi={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.bitarray&&u.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();var a,i=r(e.modeInfos);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.ModeInfo.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},g);for(i.modeInfos=[];r.pos>>3){case 1:i.bitarray=u.CompactBitArray.decode(r,r.uint32());break;case 2:i.modeInfos.push(t.ModeInfo.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},g);if(n.modeInfos=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromJSON(e.bitarray):n.bitarray=void 0,void 0!==e.modeInfos&&null!==e.modeInfos){var a,i=r(e.modeInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.modeInfos.push(t.ModeInfo.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.bitarray&&(n.bitarray=e.bitarray?u.CompactBitArray.toJSON(e.bitarray):void 0),e.modeInfos?n.modeInfos=e.modeInfos.map((function(e){return e?t.ModeInfo.toJSON(e):void 0})):n.modeInfos=[],n},fromPartial:function(e){var n=Object.assign({},g);if(n.modeInfos=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromPartial(e.bitarray):n.bitarray=void 0,void 0!==e.modeInfos&&null!==e.modeInfos){var a,i=r(e.modeInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.modeInfos.push(t.ModeInfo.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var A={gasLimit:i.default.UZERO,payer:"",granter:""};t.Fee={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.amount);try{for(a.s();!(t=a.n()).done;){var i=t.value;f.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return e.gasLimit.isZero()||n.uint32(16).uint64(e.gasLimit),""!==e.payer&&n.uint32(26).string(e.payer),""!==e.granter&&n.uint32(34).string(e.granter),n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.amount=[];n.pos>>3){case 1:a.amount.push(f.Coin.decode(n,n.uint32()));break;case 2:a.gasLimit=n.uint64();break;case 3:a.payer=n.string();break;case 4:a.granter=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(f.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.gasLimit&&null!==e.gasLimit?t.gasLimit=i.default.fromString(e.gasLimit):t.gasLimit=i.default.UZERO,void 0!==e.payer&&null!==e.payer?t.payer=String(e.payer):t.payer="",void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",t},toJSON:function(e){var t={};return e.amount?t.amount=e.amount.map((function(e){return e?f.Coin.toJSON(e):void 0})):t.amount=[],void 0!==e.gasLimit&&(t.gasLimit=(e.gasLimit||i.default.UZERO).toString()),void 0!==e.payer&&(t.payer=e.payer),void 0!==e.granter&&(t.granter=e.granter),t},fromPartial:function(e){var t=Object.assign({},A);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(f.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.gasLimit&&null!==e.gasLimit?t.gasLimit=e.gasLimit:t.gasLimit=i.default.UZERO,void 0!==e.payer&&null!==e.payer?t.payer=e.payer:t.payer="",void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",t}};var w=function(){if(void 0!==w)return w;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),x=w.atob||function(e){return w.Buffer.from(e,"base64").toString("binary")};function _(e){for(var t=x(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.name&&u.uint32(10).string(e.name),void 0!==e.time&&s.Timestamp.encode((t=e.time,c=t.getTime()/1e3,n=a.default.fromNumber(c),r=t.getTime()%1e3*1e6,{seconds:n,nanos:r}),u.uint32(18).fork()).ldelim(),e.height.isZero()||u.uint32(24).int64(e.height),""!==e.info&&u.uint32(34).string(e.info),void 0!==e.upgradedClientState&&o.Any.encode(e.upgradedClientState,u.uint32(42).fork()).ldelim(),u},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.name=n.string();break;case 2:a.time=l(s.Timestamp.decode(n,n.uint32()));break;case 3:a.height=n.int64();break;case 4:a.info=n.string();break;case 5:a.upgradedClientState=o.Any.decode(n,n.uint32());break;default:n.skipType(7&u)}}return a},fromJSON:function(e){var t,n=Object.assign({},c);return void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.time&&null!==e.time?n.time=(t=e.time)instanceof Date?t:"string"==typeof t?new Date(t):l(s.Timestamp.fromJSON(t)):n.time=void 0,void 0!==e.height&&null!==e.height?n.height=a.default.fromString(e.height):n.height=a.default.ZERO,void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.upgradedClientState&&null!==e.upgradedClientState?n.upgradedClientState=o.Any.fromJSON(e.upgradedClientState):n.upgradedClientState=void 0,n},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.time&&(t.time=e.time.toISOString()),void 0!==e.height&&(t.height=(e.height||a.default.ZERO).toString()),void 0!==e.info&&(t.info=e.info),void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?o.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.time&&null!==e.time?t.time=e.time:t.time=void 0,void 0!==e.height&&null!==e.height?t.height=e.height:t.height=a.default.ZERO,void 0!==e.info&&null!==e.info?t.info=e.info:t.info="",void 0!==e.upgradedClientState&&null!==e.upgradedClientState?t.upgradedClientState=o.Any.fromPartial(e.upgradedClientState):t.upgradedClientState=void 0,t}};var u={title:"",description:""};t.SoftwareUpgradeProposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.title&&n.uint32(10).string(e.title),""!==e.description&&n.uint32(18).string(e.description),void 0!==e.plan&&t.Plan.encode(e.plan,n.uint32(26).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof i.default.Reader?e:new i.default.Reader(e),a=void 0===n?r.len:r.pos+n,o=Object.assign({},u);r.pos>>3){case 1:o.title=r.string();break;case 2:o.description=r.string();break;case 3:o.plan=t.Plan.decode(r,r.uint32());break;default:r.skipType(7&s)}}return o},fromJSON:function(e){var n=Object.assign({},u);return void 0!==e.title&&null!==e.title?n.title=String(e.title):n.title="",void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.plan&&null!==e.plan?n.plan=t.Plan.fromJSON(e.plan):n.plan=void 0,n},toJSON:function(e){var n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.description&&(n.description=e.description),void 0!==e.plan&&(n.plan=e.plan?t.Plan.toJSON(e.plan):void 0),n},fromPartial:function(e){var n=Object.assign({},u);return void 0!==e.title&&null!==e.title?n.title=e.title:n.title="",void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.plan&&null!==e.plan?n.plan=t.Plan.fromPartial(e.plan):n.plan=void 0,n}};var f={title:"",description:""};t.CancelSoftwareUpgradeProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",t}};var d={name:"",version:a.default.UZERO};function l(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}t.ModuleVersion={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.name&&t.uint32(10).string(e.name),e.version.isZero()||t.uint32(16).uint64(e.version),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.name=n.string();break;case 2:a.version=n.uint64();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.version&&null!==e.version?t.version=a.default.fromString(e.version):t.version=a.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.version&&(t.version=(e.version||a.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.version&&null!==e.version?t.version=e.version:t.version=a.default.UZERO,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},23216:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseVestingAccount=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(60832)),s=n(65580),c=n(9063);t.protobufPackage="cosmos.vesting.v1beta1";var u={endTime:i.default.ZERO};t.BaseVestingAccount={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseAccount&&s.BaseAccount.encode(e.baseAccount,t.uint32(10).fork()).ldelim();var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}var u,f=r(e.delegatedFree);try{for(f.s();!(u=f.n()).done;){var d=u.value;c.Coin.encode(d,t.uint32(26).fork()).ldelim()}}catch(e){f.e(e)}finally{f.f()}var l,p=r(e.delegatedVesting);try{for(p.s();!(l=p.n()).done;){var b=l.value;c.Coin.encode(b,t.uint32(34).fork()).ldelim()}}catch(e){p.e(e)}finally{p.f()}return e.endTime.isZero()||t.uint32(40).int64(e.endTime),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.originalVesting=[],a.delegatedFree=[],a.delegatedVesting=[];n.pos>>3){case 1:a.baseAccount=s.BaseAccount.decode(n,n.uint32());break;case 2:a.originalVesting.push(c.Coin.decode(n,n.uint32()));break;case 3:a.delegatedFree.push(c.Coin.decode(n,n.uint32()));break;case 4:a.delegatedVesting.push(c.Coin.decode(n,n.uint32()));break;case 5:a.endTime=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);if(t.originalVesting=[],t.delegatedFree=[],t.delegatedVesting=[],void 0!==e.baseAccount&&null!==e.baseAccount?t.baseAccount=s.BaseAccount.fromJSON(e.baseAccount):t.baseAccount=void 0,void 0!==e.originalVesting&&null!==e.originalVesting){var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.originalVesting.push(c.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.delegatedFree&&null!==e.delegatedFree){var f,d=r(e.delegatedFree);try{for(d.s();!(f=d.n()).done;){var l=f.value;t.delegatedFree.push(c.Coin.fromJSON(l))}}catch(e){d.e(e)}finally{d.f()}}if(void 0!==e.delegatedVesting&&null!==e.delegatedVesting){var p,b=r(e.delegatedVesting);try{for(b.s();!(p=b.n()).done;){var h=p.value;t.delegatedVesting.push(c.Coin.fromJSON(h))}}catch(e){b.e(e)}finally{b.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=i.default.fromString(e.endTime):t.endTime=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.baseAccount&&(t.baseAccount=e.baseAccount?s.BaseAccount.toJSON(e.baseAccount):void 0),e.originalVesting?t.originalVesting=e.originalVesting.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.originalVesting=[],e.delegatedFree?t.delegatedFree=e.delegatedFree.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.delegatedFree=[],e.delegatedVesting?t.delegatedVesting=e.delegatedVesting.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.delegatedVesting=[],void 0!==e.endTime&&(t.endTime=(e.endTime||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},u);if(t.originalVesting=[],t.delegatedFree=[],t.delegatedVesting=[],void 0!==e.baseAccount&&null!==e.baseAccount?t.baseAccount=s.BaseAccount.fromPartial(e.baseAccount):t.baseAccount=void 0,void 0!==e.originalVesting&&null!==e.originalVesting){var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.originalVesting.push(c.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.delegatedFree&&null!==e.delegatedFree){var f,d=r(e.delegatedFree);try{for(d.s();!(f=d.n()).done;){var l=f.value;t.delegatedFree.push(c.Coin.fromPartial(l))}}catch(e){d.e(e)}finally{d.f()}}if(void 0!==e.delegatedVesting&&null!==e.delegatedVesting){var p,b=r(e.delegatedVesting);try{for(b.s();!(p=b.n()).done;){var h=p.value;t.delegatedVesting.push(c.Coin.fromPartial(h))}}catch(e){b.e(e)}finally{b.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=e.endTime:t.endTime=i.default.ZERO,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},30189:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Any=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(60832));t.protobufPackage="google.protobuf";var s={typeUrl:""};t.Any={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.value=new Uint8Array;n.pos>>3){case 1:a.typeUrl=n.string();break;case 2:a.value=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);return t.value=new Uint8Array,void 0!==e.typeUrl&&null!==e.typeUrl?t.typeUrl=String(e.typeUrl):t.typeUrl="",void 0!==e.value&&null!==e.value&&(t.value=function(e){for(var t=u(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.seconds.isZero()||t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.seconds=n.int64();break;case 2:a.nanos=n.int32();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=a.default.fromString(e.seconds):t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=Number(e.nanos):t.nanos=0,t},toJSON:function(e){var t={};return void 0!==e.seconds&&(t.seconds=(e.seconds||a.default.ZERO).toString()),void 0!==e.nanos&&(t.nanos=e.nanos),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=e.seconds:t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=e.nanos:t.nanos=0,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},49053:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.protobufPackage=void 0;var a=r(n(12620)),i=r(n(60832));t.protobufPackage="google.protobuf";var o={seconds:a.default.ZERO,nanos:0};t.Timestamp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.seconds.isZero()||t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.seconds=n.int64();break;case 2:a.nanos=n.int32();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=a.default.fromString(e.seconds):t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=Number(e.nanos):t.nanos=0,t},toJSON:function(e){var t={};return void 0!==e.seconds&&(t.seconds=(e.seconds||a.default.ZERO).toString()),void 0!==e.nanos&&(t.nanos=e.nanos),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=e.seconds:t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=e.nanos:t.nanos=0,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},67266:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.DenomTrace=t.FungibleTokenPacketData=t.protobufPackage=void 0;var a=r(n(12620)),i=r(n(60832));t.protobufPackage="ibc.applications.transfer.v1";var o={denom:"",amount:a.default.UZERO,sender:"",receiver:""};t.FungibleTokenPacketData={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),e.amount.isZero()||t.uint32(16).uint64(e.amount),""!==e.sender&&t.uint32(26).string(e.sender),""!==e.receiver&&t.uint32(34).string(e.receiver),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.uint64();break;case 3:a.sender=n.string();break;case 4:a.receiver=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=a.default.fromString(e.amount):t.amount=a.default.UZERO,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.receiver&&null!==e.receiver?t.receiver=String(e.receiver):t.receiver="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=(e.amount||a.default.UZERO).toString()),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.receiver&&(t.receiver=e.receiver),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount=a.default.UZERO,void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.receiver&&null!==e.receiver?t.receiver=e.receiver:t.receiver="",t}};var s={path:"",baseDenom:""};t.DenomTrace={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.path&&t.uint32(10).string(e.path),""!==e.baseDenom&&t.uint32(18).string(e.baseDenom),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.path=n.string();break;case 2:a.baseDenom=n.string();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.path&&null!==e.path?t.path=String(e.path):t.path="",void 0!==e.baseDenom&&null!==e.baseDenom?t.baseDenom=String(e.baseDenom):t.baseDenom="",t},toJSON:function(e){var t={};return void 0!==e.path&&(t.path=e.path),void 0!==e.baseDenom&&(t.baseDenom=e.baseDenom),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.path&&null!==e.path?t.path=e.path:t.path="",void 0!==e.baseDenom&&null!==e.baseDenom?t.baseDenom=e.baseDenom:t.baseDenom="",t}};var c={sendEnabled:!1,receiveEnabled:!1};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return!0===e.sendEnabled&&t.uint32(8).bool(e.sendEnabled),!0===e.receiveEnabled&&t.uint32(16).bool(e.receiveEnabled),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.sendEnabled=n.bool();break;case 2:a.receiveEnabled=n.bool();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.sendEnabled&&null!==e.sendEnabled?t.sendEnabled=Boolean(e.sendEnabled):t.sendEnabled=!1,void 0!==e.receiveEnabled&&null!==e.receiveEnabled?t.receiveEnabled=Boolean(e.receiveEnabled):t.receiveEnabled=!1,t},toJSON:function(e){var t={};return void 0!==e.sendEnabled&&(t.sendEnabled=e.sendEnabled),void 0!==e.receiveEnabled&&(t.receiveEnabled=e.receiveEnabled),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.sendEnabled&&null!==e.sendEnabled?t.sendEnabled=e.sendEnabled:t.sendEnabled=!1,void 0!==e.receiveEnabled&&null!==e.receiveEnabled?t.receiveEnabled=e.receiveEnabled:t.receiveEnabled=!1,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},60832:function(e,t,n){"use strict";e.exports=n(58358)},58358:function(e,t,n){"use strict";var r=t;function a(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(49741),r.BufferWriter=n(66302),r.Reader=n(43716),r.BufferReader=n(69072),r.util=n(28299),r.rpc=n(43657),r.roots=n(86901),r.configure=a,a()},43716:function(e,t,n){"use strict";e.exports=c;var r,a=n(28299),i=a.LongBits,o=a.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u,f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},d=function(){return a.Buffer?function(e){return(c.create=function(e){return a.Buffer.isBuffer(e)?new r(e):f(e)})(e)}:f};function l(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function p(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function b(){if(this.pos+8>this.len)throw s(this,8);return new i(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}c.create=d(),c.prototype._slice=a.Array.prototype.subarray||a.Array.prototype.slice,c.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return u}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return p(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|p(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=a.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=a.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return o.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){r=e,c.create=d(),r._configure();var t=a.Long?"toLong":"toNumber";a.merge(c.prototype,{int64:function(){return l.call(this)[t](!1)},uint64:function(){return l.call(this)[t](!0)},sint64:function(){return l.call(this).zzDecode()[t](!1)},fixed64:function(){return b.call(this)[t](!0)},sfixed64:function(){return b.call(this)[t](!1)}})}},69072:function(e,t,n){"use strict";e.exports=i;var r=n(43716);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(28299);function i(e){r.call(this,e)}i._configure=function(){a.Buffer&&(i.prototype._slice=a.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},86901:function(e){"use strict";e.exports={}},43657:function(e,t,n){"use strict";t.Service=n(5846)},5846:function(e,t,n){"use strict";e.exports=a;var r=n(28299);function a(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(a.prototype=Object.create(r.EventEmitter.prototype)).constructor=a,a.prototype.rpcCall=function e(t,n,a,i,o){if(!i)throw TypeError("request must be specified");var s=this;if(!o)return r.asPromise(e,s,t,n,a,i);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,n){if(e)return s.emit("error",e,t),o(e);if(null!==n){if(!(n instanceof a))try{n=a[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),o(e)}return s.emit("data",n,t),o(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){o(e)}),0)}else setTimeout((function(){o(Error("already ended"))}),0)},a.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},51331:function(e,t,n){"use strict";e.exports=a;var r=n(28299);function a(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=a.zero=new a(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var o=a.zeroHash="\0\0\0\0\0\0\0\0";a.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new a(n,r)},a.from=function(e){if("number"==typeof e)return a.fromNumber(e);if(r.isString(e)){if(!r.Long)return a.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new a(e.low>>>0,e.high>>>0):i},a.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},a.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;a.fromHash=function(e){return e===o?i:new a((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},a.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},a.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},a.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},a.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},28299:function(e,t,n){"use strict";var r=t;function a(e,t,n){for(var r=Object.keys(t),a=0;a0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=a,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function y(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}d.create=l(),d.alloc=function(e){return new a.Array(e)},a.Array!==Array&&(d.alloc=a.pool(d.alloc,a.Array.prototype.subarray)),d.prototype._push=function(e,t,n){return this.tail=this.tail.next=new c(e,t,n),this.len+=t,this},b.prototype=Object.create(c.prototype),b.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new b((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(h,10,i.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=i.from(e);return this._push(h,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(h,t.length(),t)},d.prototype.bool=function(e){return this._push(p,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(y,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=i.from(e);return this._push(y,4,t.lo)._push(y,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(a.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(a.float.writeDoubleLE,8,e)};var m=a.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(p,1,0);if(a.isString(e)){var n=d.alloc(t=o.length(e));o.decode(e,n,0),e=n}return this.uint32(t)._push(m,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(p,1,0)},d.prototype.fork=function(){return this.states=new f(this),this.head=this.tail=new c(u,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},d._configure=function(e){r=e,d.create=l(),r._configure()}},66302:function(e,t,n){"use strict";e.exports=i;var r=n(49741);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(28299);function i(){r.call(this)}function o(e,t,n){e.length<40?a.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i._configure=function(){i.alloc=a._Buffer_allocUnsafe,i.writeBytesBuffer=a.Buffer&&a.Buffer.prototype instanceof Uint8Array&&"set"===a.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=a.Buffer.byteLength(e);return this.uint32(t),t&&this._push(o,t,e),this},i._configure()},48359:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(21146).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ABCIApplicationClientImpl=t.Snapshot=t.Evidence=t.VoteInfo=t.ValidatorUpdate=t.Validator=t.TxResult=t.EventAttribute=t.Event=t.LastCommitInfo=t.BlockParams=t.ConsensusParams=t.ResponseApplySnapshotChunk=t.ResponseLoadSnapshotChunk=t.ResponseOfferSnapshot=t.ResponseListSnapshots=t.ResponseCommit=t.ResponseEndBlock=t.ResponseDeliverTx=t.ResponseCheckTx=t.ResponseBeginBlock=t.ResponseQuery=t.ResponseInitChain=t.ResponseSetOption=t.ResponseInfo=t.ResponseFlush=t.ResponseEcho=t.ResponseException=t.Response=t.RequestApplySnapshotChunk=t.RequestLoadSnapshotChunk=t.RequestOfferSnapshot=t.RequestListSnapshots=t.RequestCommit=t.RequestEndBlock=t.RequestDeliverTx=t.RequestCheckTx=t.RequestBeginBlock=t.RequestQuery=t.RequestInitChain=t.RequestSetOption=t.RequestInfo=t.RequestFlush=t.RequestEcho=t.Request=t.responseApplySnapshotChunk_ResultToJSON=t.responseApplySnapshotChunk_ResultFromJSON=t.ResponseApplySnapshotChunk_Result=t.responseOfferSnapshot_ResultToJSON=t.responseOfferSnapshot_ResultFromJSON=t.ResponseOfferSnapshot_Result=t.evidenceTypeToJSON=t.evidenceTypeFromJSON=t.EvidenceType=t.checkTxTypeToJSON=t.checkTxTypeFromJSON=t.CheckTxType=t.protobufPackage=void 0;var s,c,u,f,d=o(n(12620)),l=o(n(60832)),p=n(95247),b=n(3945),h=n(8734),y=n(63709),m=n(49053);function v(e){switch(e){case 0:case"NEW":return s.NEW;case 1:case"RECHECK":return s.RECHECK;default:return s.UNRECOGNIZED}}function g(e){switch(e){case s.NEW:return"NEW";case s.RECHECK:return"RECHECK";default:return"UNKNOWN"}}function A(e){switch(e){case 0:case"UNKNOWN":return c.UNKNOWN;case 1:case"DUPLICATE_VOTE":return c.DUPLICATE_VOTE;case 2:case"LIGHT_CLIENT_ATTACK":return c.LIGHT_CLIENT_ATTACK;default:return c.UNRECOGNIZED}}function w(e){switch(e){case c.UNKNOWN:return"UNKNOWN";case c.DUPLICATE_VOTE:return"DUPLICATE_VOTE";case c.LIGHT_CLIENT_ATTACK:return"LIGHT_CLIENT_ATTACK";default:return"UNKNOWN"}}function x(e){switch(e){case 0:case"UNKNOWN":return u.UNKNOWN;case 1:case"ACCEPT":return u.ACCEPT;case 2:case"ABORT":return u.ABORT;case 3:case"REJECT":return u.REJECT;case 4:case"REJECT_FORMAT":return u.REJECT_FORMAT;case 5:case"REJECT_SENDER":return u.REJECT_SENDER;default:return u.UNRECOGNIZED}}function _(e){switch(e){case u.UNKNOWN:return"UNKNOWN";case u.ACCEPT:return"ACCEPT";case u.ABORT:return"ABORT";case u.REJECT:return"REJECT";case u.REJECT_FORMAT:return"REJECT_FORMAT";case u.REJECT_SENDER:return"REJECT_SENDER";default:return"UNKNOWN"}}function k(e){switch(e){case 0:case"UNKNOWN":return f.UNKNOWN;case 1:case"ACCEPT":return f.ACCEPT;case 2:case"ABORT":return f.ABORT;case 3:case"RETRY":return f.RETRY;case 4:case"RETRY_SNAPSHOT":return f.RETRY_SNAPSHOT;case 5:case"REJECT_SNAPSHOT":return f.REJECT_SNAPSHOT;default:return f.UNRECOGNIZED}}function S(e){switch(e){case f.UNKNOWN:return"UNKNOWN";case f.ACCEPT:return"ACCEPT";case f.ABORT:return"ABORT";case f.RETRY:return"RETRY";case f.RETRY_SNAPSHOT:return"RETRY_SNAPSHOT";case f.REJECT_SNAPSHOT:return"REJECT_SNAPSHOT";default:return"UNKNOWN"}}t.protobufPackage="tendermint.abci",function(e){e[e.NEW=0]="NEW",e[e.RECHECK=1]="RECHECK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.CheckTxType||(t.CheckTxType={})),t.checkTxTypeFromJSON=v,t.checkTxTypeToJSON=g,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",e[e.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.EvidenceType||(t.EvidenceType={})),t.evidenceTypeFromJSON=A,t.evidenceTypeToJSON=w,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.REJECT=3]="REJECT",e[e.REJECT_FORMAT=4]="REJECT_FORMAT",e[e.REJECT_SENDER=5]="REJECT_SENDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=t.ResponseOfferSnapshot_Result||(t.ResponseOfferSnapshot_Result={})),t.responseOfferSnapshot_ResultFromJSON=x,t.responseOfferSnapshot_ResultToJSON=_,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.RETRY=3]="RETRY",e[e.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",e[e.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(f=t.ResponseApplySnapshotChunk_Result||(t.ResponseApplySnapshotChunk_Result={})),t.responseApplySnapshotChunk_ResultFromJSON=k,t.responseApplySnapshotChunk_ResultToJSON=S;var I={};t.Request={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return void 0!==e.echo&&t.RequestEcho.encode(e.echo,n.uint32(10).fork()).ldelim(),void 0!==e.flush&&t.RequestFlush.encode(e.flush,n.uint32(18).fork()).ldelim(),void 0!==e.info&&t.RequestInfo.encode(e.info,n.uint32(26).fork()).ldelim(),void 0!==e.setOption&&t.RequestSetOption.encode(e.setOption,n.uint32(34).fork()).ldelim(),void 0!==e.initChain&&t.RequestInitChain.encode(e.initChain,n.uint32(42).fork()).ldelim(),void 0!==e.query&&t.RequestQuery.encode(e.query,n.uint32(50).fork()).ldelim(),void 0!==e.beginBlock&&t.RequestBeginBlock.encode(e.beginBlock,n.uint32(58).fork()).ldelim(),void 0!==e.checkTx&&t.RequestCheckTx.encode(e.checkTx,n.uint32(66).fork()).ldelim(),void 0!==e.deliverTx&&t.RequestDeliverTx.encode(e.deliverTx,n.uint32(74).fork()).ldelim(),void 0!==e.endBlock&&t.RequestEndBlock.encode(e.endBlock,n.uint32(82).fork()).ldelim(),void 0!==e.commit&&t.RequestCommit.encode(e.commit,n.uint32(90).fork()).ldelim(),void 0!==e.listSnapshots&&t.RequestListSnapshots.encode(e.listSnapshots,n.uint32(98).fork()).ldelim(),void 0!==e.offerSnapshot&&t.RequestOfferSnapshot.encode(e.offerSnapshot,n.uint32(106).fork()).ldelim(),void 0!==e.loadSnapshotChunk&&t.RequestLoadSnapshotChunk.encode(e.loadSnapshotChunk,n.uint32(114).fork()).ldelim(),void 0!==e.applySnapshotChunk&&t.RequestApplySnapshotChunk.encode(e.applySnapshotChunk,n.uint32(122).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},I);r.pos>>3){case 1:i.echo=t.RequestEcho.decode(r,r.uint32());break;case 2:i.flush=t.RequestFlush.decode(r,r.uint32());break;case 3:i.info=t.RequestInfo.decode(r,r.uint32());break;case 4:i.setOption=t.RequestSetOption.decode(r,r.uint32());break;case 5:i.initChain=t.RequestInitChain.decode(r,r.uint32());break;case 6:i.query=t.RequestQuery.decode(r,r.uint32());break;case 7:i.beginBlock=t.RequestBeginBlock.decode(r,r.uint32());break;case 8:i.checkTx=t.RequestCheckTx.decode(r,r.uint32());break;case 9:i.deliverTx=t.RequestDeliverTx.decode(r,r.uint32());break;case 10:i.endBlock=t.RequestEndBlock.decode(r,r.uint32());break;case 11:i.commit=t.RequestCommit.decode(r,r.uint32());break;case 12:i.listSnapshots=t.RequestListSnapshots.decode(r,r.uint32());break;case 13:i.offerSnapshot=t.RequestOfferSnapshot.decode(r,r.uint32());break;case 14:i.loadSnapshotChunk=t.RequestLoadSnapshotChunk.decode(r,r.uint32());break;case 15:i.applySnapshotChunk=t.RequestApplySnapshotChunk.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},I);return void 0!==e.echo&&null!==e.echo?n.echo=t.RequestEcho.fromJSON(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.RequestFlush.fromJSON(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.RequestInfo.fromJSON(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.RequestSetOption.fromJSON(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.RequestInitChain.fromJSON(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.RequestQuery.fromJSON(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.RequestBeginBlock.fromJSON(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.RequestCheckTx.fromJSON(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.RequestDeliverTx.fromJSON(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.RequestEndBlock.fromJSON(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.RequestCommit.fromJSON(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.RequestListSnapshots.fromJSON(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.RequestOfferSnapshot.fromJSON(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.RequestLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.RequestApplySnapshotChunk.fromJSON(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n},toJSON:function(e){var n={};return void 0!==e.echo&&(n.echo=e.echo?t.RequestEcho.toJSON(e.echo):void 0),void 0!==e.flush&&(n.flush=e.flush?t.RequestFlush.toJSON(e.flush):void 0),void 0!==e.info&&(n.info=e.info?t.RequestInfo.toJSON(e.info):void 0),void 0!==e.setOption&&(n.setOption=e.setOption?t.RequestSetOption.toJSON(e.setOption):void 0),void 0!==e.initChain&&(n.initChain=e.initChain?t.RequestInitChain.toJSON(e.initChain):void 0),void 0!==e.query&&(n.query=e.query?t.RequestQuery.toJSON(e.query):void 0),void 0!==e.beginBlock&&(n.beginBlock=e.beginBlock?t.RequestBeginBlock.toJSON(e.beginBlock):void 0),void 0!==e.checkTx&&(n.checkTx=e.checkTx?t.RequestCheckTx.toJSON(e.checkTx):void 0),void 0!==e.deliverTx&&(n.deliverTx=e.deliverTx?t.RequestDeliverTx.toJSON(e.deliverTx):void 0),void 0!==e.endBlock&&(n.endBlock=e.endBlock?t.RequestEndBlock.toJSON(e.endBlock):void 0),void 0!==e.commit&&(n.commit=e.commit?t.RequestCommit.toJSON(e.commit):void 0),void 0!==e.listSnapshots&&(n.listSnapshots=e.listSnapshots?t.RequestListSnapshots.toJSON(e.listSnapshots):void 0),void 0!==e.offerSnapshot&&(n.offerSnapshot=e.offerSnapshot?t.RequestOfferSnapshot.toJSON(e.offerSnapshot):void 0),void 0!==e.loadSnapshotChunk&&(n.loadSnapshotChunk=e.loadSnapshotChunk?t.RequestLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),void 0!==e.applySnapshotChunk&&(n.applySnapshotChunk=e.applySnapshotChunk?t.RequestApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),n},fromPartial:function(e){var n=Object.assign({},I);return void 0!==e.echo&&null!==e.echo?n.echo=t.RequestEcho.fromPartial(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.RequestFlush.fromPartial(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.RequestInfo.fromPartial(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.RequestSetOption.fromPartial(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.RequestInitChain.fromPartial(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.RequestQuery.fromPartial(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.RequestBeginBlock.fromPartial(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.RequestCheckTx.fromPartial(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.RequestDeliverTx.fromPartial(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.RequestEndBlock.fromPartial(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.RequestCommit.fromPartial(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.RequestListSnapshots.fromPartial(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.RequestOfferSnapshot.fromPartial(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.RequestLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.RequestApplySnapshotChunk.fromPartial(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n}};var E={message:""};t.RequestEcho={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return""!==e.message&&t.uint32(10).string(e.message),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},E);n.pos>>3==1?a.message=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},E);return void 0!==e.message&&null!==e.message?t.message=String(e.message):t.message="",t},toJSON:function(e){var t={};return void 0!==e.message&&(t.message=e.message),t},fromPartial:function(e){var t=Object.assign({},E);return void 0!==e.message&&null!==e.message?t.message=e.message:t.message="",t}};var C={};t.RequestFlush={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create()},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},C);n.pos1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return""!==e.version&&t.uint32(10).string(e.version),e.blockVersion.isZero()||t.uint32(16).uint64(e.blockVersion),e.p2pVersion.isZero()||t.uint32(24).uint64(e.p2pVersion),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},T);n.pos>>3){case 1:a.version=n.string();break;case 2:a.blockVersion=n.uint64();break;case 3:a.p2pVersion=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},T);return void 0!==e.version&&null!==e.version?t.version=String(e.version):t.version="",void 0!==e.blockVersion&&null!==e.blockVersion?t.blockVersion=d.default.fromString(e.blockVersion):t.blockVersion=d.default.UZERO,void 0!==e.p2pVersion&&null!==e.p2pVersion?t.p2pVersion=d.default.fromString(e.p2pVersion):t.p2pVersion=d.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.version&&(t.version=e.version),void 0!==e.blockVersion&&(t.blockVersion=(e.blockVersion||d.default.UZERO).toString()),void 0!==e.p2pVersion&&(t.p2pVersion=(e.p2pVersion||d.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},T);return void 0!==e.version&&null!==e.version?t.version=e.version:t.version="",void 0!==e.blockVersion&&null!==e.blockVersion?t.blockVersion=e.blockVersion:t.blockVersion=d.default.UZERO,void 0!==e.p2pVersion&&null!==e.p2pVersion?t.p2pVersion=e.p2pVersion:t.p2pVersion=d.default.UZERO,t}};var O={key:"",value:""};t.RequestSetOption={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},O);n.pos>>3){case 1:a.key=n.string();break;case 2:a.value=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},O);return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial:function(e){var t=Object.assign({},O);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}};var P={chainId:"",initialHeight:d.default.ZERO};t.RequestInitChain={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();void 0!==e.time&&m.Timestamp.encode(xe(e.time),n.uint32(10).fork()).ldelim(),""!==e.chainId&&n.uint32(18).string(e.chainId),void 0!==e.consensusParams&&t.ConsensusParams.encode(e.consensusParams,n.uint32(26).fork()).ldelim();var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.ValidatorUpdate.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return 0!==e.appStateBytes.length&&n.uint32(42).bytes(e.appStateBytes),e.initialHeight.isZero()||n.uint32(48).int64(e.initialHeight),n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},P);for(i.validators=[],i.appStateBytes=new Uint8Array;r.pos>>3){case 1:i.time=_e(m.Timestamp.decode(r,r.uint32()));break;case 2:i.chainId=r.string();break;case 3:i.consensusParams=t.ConsensusParams.decode(r,r.uint32());break;case 4:i.validators.push(t.ValidatorUpdate.decode(r,r.uint32()));break;case 5:i.appStateBytes=r.bytes();break;case 6:i.initialHeight=r.int64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},P);if(n.validators=[],n.appStateBytes=new Uint8Array,void 0!==e.time&&null!==e.time?n.time=ke(e.time):n.time=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=String(e.chainId):n.chainId="",void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromJSON(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appStateBytes&&null!==e.appStateBytes&&(n.appStateBytes=ge(e.appStateBytes)),void 0!==e.initialHeight&&null!==e.initialHeight?n.initialHeight=d.default.fromString(e.initialHeight):n.initialHeight=d.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.time&&(n.time=e.time.toISOString()),void 0!==e.chainId&&(n.chainId=e.chainId),void 0!==e.consensusParams&&(n.consensusParams=e.consensusParams?t.ConsensusParams.toJSON(e.consensusParams):void 0),e.validators?n.validators=e.validators.map((function(e){return e?t.ValidatorUpdate.toJSON(e):void 0})):n.validators=[],void 0!==e.appStateBytes&&(n.appStateBytes=we(void 0!==e.appStateBytes?e.appStateBytes:new Uint8Array)),void 0!==e.initialHeight&&(n.initialHeight=(e.initialHeight||d.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},P);if(n.validators=[],void 0!==e.time&&null!==e.time?n.time=e.time:n.time=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=e.chainId:n.chainId="",void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromPartial(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appStateBytes&&null!==e.appStateBytes?n.appStateBytes=e.appStateBytes:n.appStateBytes=new Uint8Array,void 0!==e.initialHeight&&null!==e.initialHeight?n.initialHeight=e.initialHeight:n.initialHeight=d.default.ZERO,n}};var M={path:"",height:d.default.ZERO,prove:!1};t.RequestQuery={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),""!==e.path&&t.uint32(18).string(e.path),e.height.isZero()||t.uint32(24).int64(e.height),!0===e.prove&&t.uint32(32).bool(e.prove),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},M);for(a.data=new Uint8Array;n.pos>>3){case 1:a.data=n.bytes();break;case 2:a.path=n.string();break;case 3:a.height=n.int64();break;case 4:a.prove=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},M);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=ge(e.data)),void 0!==e.path&&null!==e.path?t.path=String(e.path):t.path="",void 0!==e.height&&null!==e.height?t.height=d.default.fromString(e.height):t.height=d.default.ZERO,void 0!==e.prove&&null!==e.prove?t.prove=Boolean(e.prove):t.prove=!1,t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=we(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.path&&(t.path=e.path),void 0!==e.height&&(t.height=(e.height||d.default.ZERO).toString()),void 0!==e.prove&&(t.prove=e.prove),t},fromPartial:function(e){var t=Object.assign({},M);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.path&&null!==e.path?t.path=e.path:t.path="",void 0!==e.height&&null!==e.height?t.height=e.height:t.height=d.default.ZERO,void 0!==e.prove&&null!==e.prove?t.prove=e.prove:t.prove=!1,t}};var B={};t.RequestBeginBlock={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();0!==e.hash.length&&n.uint32(10).bytes(e.hash),void 0!==e.header&&p.Header.encode(e.header,n.uint32(18).fork()).ldelim(),void 0!==e.lastCommitInfo&&t.LastCommitInfo.encode(e.lastCommitInfo,n.uint32(26).fork()).ldelim();var r,a=i(e.byzantineValidators);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.Evidence.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},B);for(i.byzantineValidators=[],i.hash=new Uint8Array;r.pos>>3){case 1:i.hash=r.bytes();break;case 2:i.header=p.Header.decode(r,r.uint32());break;case 3:i.lastCommitInfo=t.LastCommitInfo.decode(r,r.uint32());break;case 4:i.byzantineValidators.push(t.Evidence.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},B);if(n.byzantineValidators=[],n.hash=new Uint8Array,void 0!==e.hash&&null!==e.hash&&(n.hash=ge(e.hash)),void 0!==e.header&&null!==e.header?n.header=p.Header.fromJSON(e.header):n.header=void 0,void 0!==e.lastCommitInfo&&null!==e.lastCommitInfo?n.lastCommitInfo=t.LastCommitInfo.fromJSON(e.lastCommitInfo):n.lastCommitInfo=void 0,void 0!==e.byzantineValidators&&null!==e.byzantineValidators){var r,a=i(e.byzantineValidators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.byzantineValidators.push(t.Evidence.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return void 0!==e.hash&&(n.hash=we(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.header&&(n.header=e.header?p.Header.toJSON(e.header):void 0),void 0!==e.lastCommitInfo&&(n.lastCommitInfo=e.lastCommitInfo?t.LastCommitInfo.toJSON(e.lastCommitInfo):void 0),e.byzantineValidators?n.byzantineValidators=e.byzantineValidators.map((function(e){return e?t.Evidence.toJSON(e):void 0})):n.byzantineValidators=[],n},fromPartial:function(e){var n=Object.assign({},B);if(n.byzantineValidators=[],void 0!==e.hash&&null!==e.hash?n.hash=e.hash:n.hash=new Uint8Array,void 0!==e.header&&null!==e.header?n.header=p.Header.fromPartial(e.header):n.header=void 0,void 0!==e.lastCommitInfo&&null!==e.lastCommitInfo?n.lastCommitInfo=t.LastCommitInfo.fromPartial(e.lastCommitInfo):n.lastCommitInfo=void 0,void 0!==e.byzantineValidators&&null!==e.byzantineValidators){var r,a=i(e.byzantineValidators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.byzantineValidators.push(t.Evidence.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var R={type:0};t.RequestCheckTx={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.tx.length&&t.uint32(10).bytes(e.tx),0!==e.type&&t.uint32(16).int32(e.type),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},R);for(a.tx=new Uint8Array;n.pos>>3){case 1:a.tx=n.bytes();break;case 2:a.type=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},R);return t.tx=new Uint8Array,void 0!==e.tx&&null!==e.tx&&(t.tx=ge(e.tx)),void 0!==e.type&&null!==e.type?t.type=v(e.type):t.type=0,t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=we(void 0!==e.tx?e.tx:new Uint8Array)),void 0!==e.type&&(t.type=g(e.type)),t},fromPartial:function(e){var t=Object.assign({},R);return void 0!==e.tx&&null!==e.tx?t.tx=e.tx:t.tx=new Uint8Array,void 0!==e.type&&null!==e.type?t.type=e.type:t.type=0,t}};var N={};t.RequestDeliverTx={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.tx.length&&t.uint32(10).bytes(e.tx),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},N);for(a.tx=new Uint8Array;n.pos>>3==1?a.tx=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},N);return t.tx=new Uint8Array,void 0!==e.tx&&null!==e.tx&&(t.tx=ge(e.tx)),t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=we(void 0!==e.tx?e.tx:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},N);return void 0!==e.tx&&null!==e.tx?t.tx=e.tx:t.tx=new Uint8Array,t}};var D={height:d.default.ZERO};t.RequestEndBlock={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return e.height.isZero()||t.uint32(8).int64(e.height),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},D);n.pos>>3==1?a.height=n.int64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},D);return void 0!==e.height&&null!==e.height?t.height=d.default.fromString(e.height):t.height=d.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.height&&(t.height=(e.height||d.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},D);return void 0!==e.height&&null!==e.height?t.height=e.height:t.height=d.default.ZERO,t}};var j={};t.RequestCommit={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create()},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},j);n.pos1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create()},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},U);n.pos1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return void 0!==e.snapshot&&t.Snapshot.encode(e.snapshot,n.uint32(10).fork()).ldelim(),0!==e.appHash.length&&n.uint32(18).bytes(e.appHash),n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},L);for(i.appHash=new Uint8Array;r.pos>>3){case 1:i.snapshot=t.Snapshot.decode(r,r.uint32());break;case 2:i.appHash=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},L);return n.appHash=new Uint8Array,void 0!==e.snapshot&&null!==e.snapshot?n.snapshot=t.Snapshot.fromJSON(e.snapshot):n.snapshot=void 0,void 0!==e.appHash&&null!==e.appHash&&(n.appHash=ge(e.appHash)),n},toJSON:function(e){var n={};return void 0!==e.snapshot&&(n.snapshot=e.snapshot?t.Snapshot.toJSON(e.snapshot):void 0),void 0!==e.appHash&&(n.appHash=we(void 0!==e.appHash?e.appHash:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},L);return void 0!==e.snapshot&&null!==e.snapshot?n.snapshot=t.Snapshot.fromPartial(e.snapshot):n.snapshot=void 0,void 0!==e.appHash&&null!==e.appHash?n.appHash=e.appHash:n.appHash=new Uint8Array,n}};var Z={height:d.default.UZERO,format:0,chunk:0};t.RequestLoadSnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return e.height.isZero()||t.uint32(8).uint64(e.height),0!==e.format&&t.uint32(16).uint32(e.format),0!==e.chunk&&t.uint32(24).uint32(e.chunk),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},Z);n.pos>>3){case 1:a.height=n.uint64();break;case 2:a.format=n.uint32();break;case 3:a.chunk=n.uint32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},Z);return void 0!==e.height&&null!==e.height?t.height=d.default.fromString(e.height):t.height=d.default.UZERO,void 0!==e.format&&null!==e.format?t.format=Number(e.format):t.format=0,void 0!==e.chunk&&null!==e.chunk?t.chunk=Number(e.chunk):t.chunk=0,t},toJSON:function(e){var t={};return void 0!==e.height&&(t.height=(e.height||d.default.UZERO).toString()),void 0!==e.format&&(t.format=e.format),void 0!==e.chunk&&(t.chunk=e.chunk),t},fromPartial:function(e){var t=Object.assign({},Z);return void 0!==e.height&&null!==e.height?t.height=e.height:t.height=d.default.UZERO,void 0!==e.format&&null!==e.format?t.format=e.format:t.format=0,void 0!==e.chunk&&null!==e.chunk?t.chunk=e.chunk:t.chunk=0,t}};var F={index:0,sender:""};t.RequestApplySnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.index&&t.uint32(8).uint32(e.index),0!==e.chunk.length&&t.uint32(18).bytes(e.chunk),""!==e.sender&&t.uint32(26).string(e.sender),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},F);for(a.chunk=new Uint8Array;n.pos>>3){case 1:a.index=n.uint32();break;case 2:a.chunk=n.bytes();break;case 3:a.sender=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},F);return t.chunk=new Uint8Array,void 0!==e.index&&null!==e.index?t.index=Number(e.index):t.index=0,void 0!==e.chunk&&null!==e.chunk&&(t.chunk=ge(e.chunk)),void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",t},toJSON:function(e){var t={};return void 0!==e.index&&(t.index=e.index),void 0!==e.chunk&&(t.chunk=we(void 0!==e.chunk?e.chunk:new Uint8Array)),void 0!==e.sender&&(t.sender=e.sender),t},fromPartial:function(e){var t=Object.assign({},F);return void 0!==e.index&&null!==e.index?t.index=e.index:t.index=0,void 0!==e.chunk&&null!==e.chunk?t.chunk=e.chunk:t.chunk=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",t}};var H={};t.Response={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return void 0!==e.exception&&t.ResponseException.encode(e.exception,n.uint32(10).fork()).ldelim(),void 0!==e.echo&&t.ResponseEcho.encode(e.echo,n.uint32(18).fork()).ldelim(),void 0!==e.flush&&t.ResponseFlush.encode(e.flush,n.uint32(26).fork()).ldelim(),void 0!==e.info&&t.ResponseInfo.encode(e.info,n.uint32(34).fork()).ldelim(),void 0!==e.setOption&&t.ResponseSetOption.encode(e.setOption,n.uint32(42).fork()).ldelim(),void 0!==e.initChain&&t.ResponseInitChain.encode(e.initChain,n.uint32(50).fork()).ldelim(),void 0!==e.query&&t.ResponseQuery.encode(e.query,n.uint32(58).fork()).ldelim(),void 0!==e.beginBlock&&t.ResponseBeginBlock.encode(e.beginBlock,n.uint32(66).fork()).ldelim(),void 0!==e.checkTx&&t.ResponseCheckTx.encode(e.checkTx,n.uint32(74).fork()).ldelim(),void 0!==e.deliverTx&&t.ResponseDeliverTx.encode(e.deliverTx,n.uint32(82).fork()).ldelim(),void 0!==e.endBlock&&t.ResponseEndBlock.encode(e.endBlock,n.uint32(90).fork()).ldelim(),void 0!==e.commit&&t.ResponseCommit.encode(e.commit,n.uint32(98).fork()).ldelim(),void 0!==e.listSnapshots&&t.ResponseListSnapshots.encode(e.listSnapshots,n.uint32(106).fork()).ldelim(),void 0!==e.offerSnapshot&&t.ResponseOfferSnapshot.encode(e.offerSnapshot,n.uint32(114).fork()).ldelim(),void 0!==e.loadSnapshotChunk&&t.ResponseLoadSnapshotChunk.encode(e.loadSnapshotChunk,n.uint32(122).fork()).ldelim(),void 0!==e.applySnapshotChunk&&t.ResponseApplySnapshotChunk.encode(e.applySnapshotChunk,n.uint32(130).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},H);r.pos>>3){case 1:i.exception=t.ResponseException.decode(r,r.uint32());break;case 2:i.echo=t.ResponseEcho.decode(r,r.uint32());break;case 3:i.flush=t.ResponseFlush.decode(r,r.uint32());break;case 4:i.info=t.ResponseInfo.decode(r,r.uint32());break;case 5:i.setOption=t.ResponseSetOption.decode(r,r.uint32());break;case 6:i.initChain=t.ResponseInitChain.decode(r,r.uint32());break;case 7:i.query=t.ResponseQuery.decode(r,r.uint32());break;case 8:i.beginBlock=t.ResponseBeginBlock.decode(r,r.uint32());break;case 9:i.checkTx=t.ResponseCheckTx.decode(r,r.uint32());break;case 10:i.deliverTx=t.ResponseDeliverTx.decode(r,r.uint32());break;case 11:i.endBlock=t.ResponseEndBlock.decode(r,r.uint32());break;case 12:i.commit=t.ResponseCommit.decode(r,r.uint32());break;case 13:i.listSnapshots=t.ResponseListSnapshots.decode(r,r.uint32());break;case 14:i.offerSnapshot=t.ResponseOfferSnapshot.decode(r,r.uint32());break;case 15:i.loadSnapshotChunk=t.ResponseLoadSnapshotChunk.decode(r,r.uint32());break;case 16:i.applySnapshotChunk=t.ResponseApplySnapshotChunk.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},H);return void 0!==e.exception&&null!==e.exception?n.exception=t.ResponseException.fromJSON(e.exception):n.exception=void 0,void 0!==e.echo&&null!==e.echo?n.echo=t.ResponseEcho.fromJSON(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.ResponseFlush.fromJSON(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.ResponseInfo.fromJSON(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.ResponseSetOption.fromJSON(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.ResponseInitChain.fromJSON(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.ResponseQuery.fromJSON(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.ResponseBeginBlock.fromJSON(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.ResponseCheckTx.fromJSON(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.ResponseDeliverTx.fromJSON(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.ResponseEndBlock.fromJSON(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.ResponseCommit.fromJSON(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.ResponseListSnapshots.fromJSON(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.ResponseOfferSnapshot.fromJSON(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.ResponseLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.ResponseApplySnapshotChunk.fromJSON(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n},toJSON:function(e){var n={};return void 0!==e.exception&&(n.exception=e.exception?t.ResponseException.toJSON(e.exception):void 0),void 0!==e.echo&&(n.echo=e.echo?t.ResponseEcho.toJSON(e.echo):void 0),void 0!==e.flush&&(n.flush=e.flush?t.ResponseFlush.toJSON(e.flush):void 0),void 0!==e.info&&(n.info=e.info?t.ResponseInfo.toJSON(e.info):void 0),void 0!==e.setOption&&(n.setOption=e.setOption?t.ResponseSetOption.toJSON(e.setOption):void 0),void 0!==e.initChain&&(n.initChain=e.initChain?t.ResponseInitChain.toJSON(e.initChain):void 0),void 0!==e.query&&(n.query=e.query?t.ResponseQuery.toJSON(e.query):void 0),void 0!==e.beginBlock&&(n.beginBlock=e.beginBlock?t.ResponseBeginBlock.toJSON(e.beginBlock):void 0),void 0!==e.checkTx&&(n.checkTx=e.checkTx?t.ResponseCheckTx.toJSON(e.checkTx):void 0),void 0!==e.deliverTx&&(n.deliverTx=e.deliverTx?t.ResponseDeliverTx.toJSON(e.deliverTx):void 0),void 0!==e.endBlock&&(n.endBlock=e.endBlock?t.ResponseEndBlock.toJSON(e.endBlock):void 0),void 0!==e.commit&&(n.commit=e.commit?t.ResponseCommit.toJSON(e.commit):void 0),void 0!==e.listSnapshots&&(n.listSnapshots=e.listSnapshots?t.ResponseListSnapshots.toJSON(e.listSnapshots):void 0),void 0!==e.offerSnapshot&&(n.offerSnapshot=e.offerSnapshot?t.ResponseOfferSnapshot.toJSON(e.offerSnapshot):void 0),void 0!==e.loadSnapshotChunk&&(n.loadSnapshotChunk=e.loadSnapshotChunk?t.ResponseLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),void 0!==e.applySnapshotChunk&&(n.applySnapshotChunk=e.applySnapshotChunk?t.ResponseApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),n},fromPartial:function(e){var n=Object.assign({},H);return void 0!==e.exception&&null!==e.exception?n.exception=t.ResponseException.fromPartial(e.exception):n.exception=void 0,void 0!==e.echo&&null!==e.echo?n.echo=t.ResponseEcho.fromPartial(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.ResponseFlush.fromPartial(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.ResponseInfo.fromPartial(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.ResponseSetOption.fromPartial(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.ResponseInitChain.fromPartial(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.ResponseQuery.fromPartial(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.ResponseBeginBlock.fromPartial(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.ResponseCheckTx.fromPartial(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.ResponseDeliverTx.fromPartial(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.ResponseEndBlock.fromPartial(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.ResponseCommit.fromPartial(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.ResponseListSnapshots.fromPartial(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.ResponseOfferSnapshot.fromPartial(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.ResponseLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.ResponseApplySnapshotChunk.fromPartial(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n}};var z={error:""};t.ResponseException={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return""!==e.error&&t.uint32(10).string(e.error),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},z);n.pos>>3==1?a.error=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},z);return void 0!==e.error&&null!==e.error?t.error=String(e.error):t.error="",t},toJSON:function(e){var t={};return void 0!==e.error&&(t.error=e.error),t},fromPartial:function(e){var t=Object.assign({},z);return void 0!==e.error&&null!==e.error?t.error=e.error:t.error="",t}};var q={message:""};t.ResponseEcho={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return""!==e.message&&t.uint32(10).string(e.message),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},q);n.pos>>3==1?a.message=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},q);return void 0!==e.message&&null!==e.message?t.message=String(e.message):t.message="",t},toJSON:function(e){var t={};return void 0!==e.message&&(t.message=e.message),t},fromPartial:function(e){var t=Object.assign({},q);return void 0!==e.message&&null!==e.message?t.message=e.message:t.message="",t}};var Q={};t.ResponseFlush={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create()},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},Q);n.pos1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return""!==e.data&&t.uint32(10).string(e.data),""!==e.version&&t.uint32(18).string(e.version),e.appVersion.isZero()||t.uint32(24).uint64(e.appVersion),e.lastBlockHeight.isZero()||t.uint32(32).int64(e.lastBlockHeight),0!==e.lastBlockAppHash.length&&t.uint32(42).bytes(e.lastBlockAppHash),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},K);for(a.lastBlockAppHash=new Uint8Array;n.pos>>3){case 1:a.data=n.string();break;case 2:a.version=n.string();break;case 3:a.appVersion=n.uint64();break;case 4:a.lastBlockHeight=n.int64();break;case 5:a.lastBlockAppHash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},K);return t.lastBlockAppHash=new Uint8Array,void 0!==e.data&&null!==e.data?t.data=String(e.data):t.data="",void 0!==e.version&&null!==e.version?t.version=String(e.version):t.version="",void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=d.default.fromString(e.appVersion):t.appVersion=d.default.UZERO,void 0!==e.lastBlockHeight&&null!==e.lastBlockHeight?t.lastBlockHeight=d.default.fromString(e.lastBlockHeight):t.lastBlockHeight=d.default.ZERO,void 0!==e.lastBlockAppHash&&null!==e.lastBlockAppHash&&(t.lastBlockAppHash=ge(e.lastBlockAppHash)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=e.data),void 0!==e.version&&(t.version=e.version),void 0!==e.appVersion&&(t.appVersion=(e.appVersion||d.default.UZERO).toString()),void 0!==e.lastBlockHeight&&(t.lastBlockHeight=(e.lastBlockHeight||d.default.ZERO).toString()),void 0!==e.lastBlockAppHash&&(t.lastBlockAppHash=we(void 0!==e.lastBlockAppHash?e.lastBlockAppHash:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},K);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data="",void 0!==e.version&&null!==e.version?t.version=e.version:t.version="",void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=e.appVersion:t.appVersion=d.default.UZERO,void 0!==e.lastBlockHeight&&null!==e.lastBlockHeight?t.lastBlockHeight=e.lastBlockHeight:t.lastBlockHeight=d.default.ZERO,void 0!==e.lastBlockAppHash&&null!==e.lastBlockAppHash?t.lastBlockAppHash=e.lastBlockAppHash:t.lastBlockAppHash=new Uint8Array,t}};var V={code:0,log:"",info:""};t.ResponseSetOption={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.code&&t.uint32(8).uint32(e.code),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},V);n.pos>>3){case 1:a.code=n.uint32();break;case 3:a.log=n.string();break;case 4:a.info=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},V);return void 0!==e.code&&null!==e.code?t.code=Number(e.code):t.code=0,void 0!==e.log&&null!==e.log?t.log=String(e.log):t.log="",void 0!==e.info&&null!==e.info?t.info=String(e.info):t.info="",t},toJSON:function(e){var t={};return void 0!==e.code&&(t.code=e.code),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),t},fromPartial:function(e){var t=Object.assign({},V);return void 0!==e.code&&null!==e.code?t.code=e.code:t.code=0,void 0!==e.log&&null!==e.log?t.log=e.log:t.log="",void 0!==e.info&&null!==e.info?t.info=e.info:t.info="",t}};var J={};t.ResponseInitChain={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();void 0!==e.consensusParams&&t.ConsensusParams.encode(e.consensusParams,n.uint32(10).fork()).ldelim();var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.ValidatorUpdate.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return 0!==e.appHash.length&&n.uint32(26).bytes(e.appHash),n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},J);for(i.validators=[],i.appHash=new Uint8Array;r.pos>>3){case 1:i.consensusParams=t.ConsensusParams.decode(r,r.uint32());break;case 2:i.validators.push(t.ValidatorUpdate.decode(r,r.uint32()));break;case 3:i.appHash=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},J);if(n.validators=[],n.appHash=new Uint8Array,void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromJSON(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appHash&&null!==e.appHash&&(n.appHash=ge(e.appHash)),n},toJSON:function(e){var n={};return void 0!==e.consensusParams&&(n.consensusParams=e.consensusParams?t.ConsensusParams.toJSON(e.consensusParams):void 0),e.validators?n.validators=e.validators.map((function(e){return e?t.ValidatorUpdate.toJSON(e):void 0})):n.validators=[],void 0!==e.appHash&&(n.appHash=we(void 0!==e.appHash?e.appHash:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},J);if(n.validators=[],void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromPartial(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appHash&&null!==e.appHash?n.appHash=e.appHash:n.appHash=new Uint8Array,n}};var G={code:0,log:"",info:"",index:d.default.ZERO,height:d.default.ZERO,codespace:""};t.ResponseQuery={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.code&&t.uint32(8).uint32(e.code),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),e.index.isZero()||t.uint32(40).int64(e.index),0!==e.key.length&&t.uint32(50).bytes(e.key),0!==e.value.length&&t.uint32(58).bytes(e.value),void 0!==e.proofOps&&b.ProofOps.encode(e.proofOps,t.uint32(66).fork()).ldelim(),e.height.isZero()||t.uint32(72).int64(e.height),""!==e.codespace&&t.uint32(82).string(e.codespace),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},G);for(a.key=new Uint8Array,a.value=new Uint8Array;n.pos>>3){case 1:a.code=n.uint32();break;case 3:a.log=n.string();break;case 4:a.info=n.string();break;case 5:a.index=n.int64();break;case 6:a.key=n.bytes();break;case 7:a.value=n.bytes();break;case 8:a.proofOps=b.ProofOps.decode(n,n.uint32());break;case 9:a.height=n.int64();break;case 10:a.codespace=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},G);return t.key=new Uint8Array,t.value=new Uint8Array,void 0!==e.code&&null!==e.code?t.code=Number(e.code):t.code=0,void 0!==e.log&&null!==e.log?t.log=String(e.log):t.log="",void 0!==e.info&&null!==e.info?t.info=String(e.info):t.info="",void 0!==e.index&&null!==e.index?t.index=d.default.fromString(e.index):t.index=d.default.ZERO,void 0!==e.key&&null!==e.key&&(t.key=ge(e.key)),void 0!==e.value&&null!==e.value&&(t.value=ge(e.value)),void 0!==e.proofOps&&null!==e.proofOps?t.proofOps=b.ProofOps.fromJSON(e.proofOps):t.proofOps=void 0,void 0!==e.height&&null!==e.height?t.height=d.default.fromString(e.height):t.height=d.default.ZERO,void 0!==e.codespace&&null!==e.codespace?t.codespace=String(e.codespace):t.codespace="",t},toJSON:function(e){var t={};return void 0!==e.code&&(t.code=e.code),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),void 0!==e.index&&(t.index=(e.index||d.default.ZERO).toString()),void 0!==e.key&&(t.key=we(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(t.value=we(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.proofOps&&(t.proofOps=e.proofOps?b.ProofOps.toJSON(e.proofOps):void 0),void 0!==e.height&&(t.height=(e.height||d.default.ZERO).toString()),void 0!==e.codespace&&(t.codespace=e.codespace),t},fromPartial:function(e){var t=Object.assign({},G);return void 0!==e.code&&null!==e.code?t.code=e.code:t.code=0,void 0!==e.log&&null!==e.log?t.log=e.log:t.log="",void 0!==e.info&&null!==e.info?t.info=e.info:t.info="",void 0!==e.index&&null!==e.index?t.index=e.index:t.index=d.default.ZERO,void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.value&&null!==e.value?t.value=e.value:t.value=new Uint8Array,void 0!==e.proofOps&&null!==e.proofOps?t.proofOps=b.ProofOps.fromPartial(e.proofOps):t.proofOps=void 0,void 0!==e.height&&null!==e.height?t.height=e.height:t.height=d.default.ZERO,void 0!==e.codespace&&null!==e.codespace?t.codespace=e.codespace:t.codespace="",t}};var W={};t.ResponseBeginBlock={encode:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create(),a=i(e.events);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.Event.encode(o,r.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return r},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},W);for(i.events=[];r.pos>>3==1?i.events.push(t.Event.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},W);if(n.events=[],void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],n},fromPartial:function(e){var n=Object.assign({},W);if(n.events=[],void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var Y={code:0,log:"",info:"",gasWanted:d.default.ZERO,gasUsed:d.default.ZERO,codespace:""};t.ResponseCheckTx={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();0!==e.code&&n.uint32(8).uint32(e.code),0!==e.data.length&&n.uint32(18).bytes(e.data),""!==e.log&&n.uint32(26).string(e.log),""!==e.info&&n.uint32(34).string(e.info),e.gasWanted.isZero()||n.uint32(40).int64(e.gasWanted),e.gasUsed.isZero()||n.uint32(48).int64(e.gasUsed);var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.Event.encode(o,n.uint32(58).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return""!==e.codespace&&n.uint32(66).string(e.codespace),n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},Y);for(i.events=[],i.data=new Uint8Array;r.pos>>3){case 1:i.code=r.uint32();break;case 2:i.data=r.bytes();break;case 3:i.log=r.string();break;case 4:i.info=r.string();break;case 5:i.gasWanted=r.int64();break;case 6:i.gasUsed=r.int64();break;case 7:i.events.push(t.Event.decode(r,r.uint32()));break;case 8:i.codespace=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},Y);if(n.events=[],n.data=new Uint8Array,void 0!==e.code&&null!==e.code?n.code=Number(e.code):n.code=0,void 0!==e.data&&null!==e.data&&(n.data=ge(e.data)),void 0!==e.log&&null!==e.log?n.log=String(e.log):n.log="",void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=d.default.fromString(e.gasWanted):n.gasWanted=d.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=d.default.fromString(e.gasUsed):n.gasUsed=d.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=String(e.codespace):n.codespace="",n},toJSON:function(e){var n={};return void 0!==e.code&&(n.code=e.code),void 0!==e.data&&(n.data=we(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(n.log=e.log),void 0!==e.info&&(n.info=e.info),void 0!==e.gasWanted&&(n.gasWanted=(e.gasWanted||d.default.ZERO).toString()),void 0!==e.gasUsed&&(n.gasUsed=(e.gasUsed||d.default.ZERO).toString()),e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],void 0!==e.codespace&&(n.codespace=e.codespace),n},fromPartial:function(e){var n=Object.assign({},Y);if(n.events=[],void 0!==e.code&&null!==e.code?n.code=e.code:n.code=0,void 0!==e.data&&null!==e.data?n.data=e.data:n.data=new Uint8Array,void 0!==e.log&&null!==e.log?n.log=e.log:n.log="",void 0!==e.info&&null!==e.info?n.info=e.info:n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=e.gasWanted:n.gasWanted=d.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=e.gasUsed:n.gasUsed=d.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=e.codespace:n.codespace="",n}};var X={code:0,log:"",info:"",gasWanted:d.default.ZERO,gasUsed:d.default.ZERO,codespace:""};t.ResponseDeliverTx={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();0!==e.code&&n.uint32(8).uint32(e.code),0!==e.data.length&&n.uint32(18).bytes(e.data),""!==e.log&&n.uint32(26).string(e.log),""!==e.info&&n.uint32(34).string(e.info),e.gasWanted.isZero()||n.uint32(40).int64(e.gasWanted),e.gasUsed.isZero()||n.uint32(48).int64(e.gasUsed);var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.Event.encode(o,n.uint32(58).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return""!==e.codespace&&n.uint32(66).string(e.codespace),n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},X);for(i.events=[],i.data=new Uint8Array;r.pos>>3){case 1:i.code=r.uint32();break;case 2:i.data=r.bytes();break;case 3:i.log=r.string();break;case 4:i.info=r.string();break;case 5:i.gasWanted=r.int64();break;case 6:i.gasUsed=r.int64();break;case 7:i.events.push(t.Event.decode(r,r.uint32()));break;case 8:i.codespace=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},X);if(n.events=[],n.data=new Uint8Array,void 0!==e.code&&null!==e.code?n.code=Number(e.code):n.code=0,void 0!==e.data&&null!==e.data&&(n.data=ge(e.data)),void 0!==e.log&&null!==e.log?n.log=String(e.log):n.log="",void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=d.default.fromString(e.gasWanted):n.gasWanted=d.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=d.default.fromString(e.gasUsed):n.gasUsed=d.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=String(e.codespace):n.codespace="",n},toJSON:function(e){var n={};return void 0!==e.code&&(n.code=e.code),void 0!==e.data&&(n.data=we(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(n.log=e.log),void 0!==e.info&&(n.info=e.info),void 0!==e.gasWanted&&(n.gasWanted=(e.gasWanted||d.default.ZERO).toString()),void 0!==e.gasUsed&&(n.gasUsed=(e.gasUsed||d.default.ZERO).toString()),e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],void 0!==e.codespace&&(n.codespace=e.codespace),n},fromPartial:function(e){var n=Object.assign({},X);if(n.events=[],void 0!==e.code&&null!==e.code?n.code=e.code:n.code=0,void 0!==e.data&&null!==e.data?n.data=e.data:n.data=new Uint8Array,void 0!==e.log&&null!==e.log?n.log=e.log:n.log="",void 0!==e.info&&null!==e.info?n.info=e.info:n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=e.gasWanted:n.gasWanted=d.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=e.gasUsed:n.gasUsed=d.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=e.codespace:n.codespace="",n}};var $={};t.ResponseEndBlock={encode:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create(),a=i(e.validatorUpdates);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.ValidatorUpdate.encode(o,r.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}void 0!==e.consensusParamUpdates&&t.ConsensusParams.encode(e.consensusParamUpdates,r.uint32(18).fork()).ldelim();var s,c=i(e.events);try{for(c.s();!(s=c.n()).done;){var u=s.value;t.Event.encode(u,r.uint32(26).fork()).ldelim()}}catch(e){c.e(e)}finally{c.f()}return r},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},$);for(i.validatorUpdates=[],i.events=[];r.pos>>3){case 1:i.validatorUpdates.push(t.ValidatorUpdate.decode(r,r.uint32()));break;case 2:i.consensusParamUpdates=t.ConsensusParams.decode(r,r.uint32());break;case 3:i.events.push(t.Event.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},$);if(n.validatorUpdates=[],n.events=[],void 0!==e.validatorUpdates&&null!==e.validatorUpdates){var r,a=i(e.validatorUpdates);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validatorUpdates.push(t.ValidatorUpdate.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.consensusParamUpdates&&null!==e.consensusParamUpdates?n.consensusParamUpdates=t.ConsensusParams.fromJSON(e.consensusParamUpdates):n.consensusParamUpdates=void 0,void 0!==e.events&&null!==e.events){var s,c=i(e.events);try{for(c.s();!(s=c.n()).done;){var u=s.value;n.events.push(t.Event.fromJSON(u))}}catch(e){c.e(e)}finally{c.f()}}return n},toJSON:function(e){var n={};return e.validatorUpdates?n.validatorUpdates=e.validatorUpdates.map((function(e){return e?t.ValidatorUpdate.toJSON(e):void 0})):n.validatorUpdates=[],void 0!==e.consensusParamUpdates&&(n.consensusParamUpdates=e.consensusParamUpdates?t.ConsensusParams.toJSON(e.consensusParamUpdates):void 0),e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],n},fromPartial:function(e){var n=Object.assign({},$);if(n.validatorUpdates=[],n.events=[],void 0!==e.validatorUpdates&&null!==e.validatorUpdates){var r,a=i(e.validatorUpdates);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validatorUpdates.push(t.ValidatorUpdate.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.consensusParamUpdates&&null!==e.consensusParamUpdates?n.consensusParamUpdates=t.ConsensusParams.fromPartial(e.consensusParamUpdates):n.consensusParamUpdates=void 0,void 0!==e.events&&null!==e.events){var s,c=i(e.events);try{for(c.s();!(s=c.n()).done;){var u=s.value;n.events.push(t.Event.fromPartial(u))}}catch(e){c.e(e)}finally{c.f()}}return n}};var ee={retainHeight:d.default.ZERO};t.ResponseCommit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.data.length&&t.uint32(18).bytes(e.data),e.retainHeight.isZero()||t.uint32(24).int64(e.retainHeight),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ee);for(a.data=new Uint8Array;n.pos>>3){case 2:a.data=n.bytes();break;case 3:a.retainHeight=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},ee);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=ge(e.data)),void 0!==e.retainHeight&&null!==e.retainHeight?t.retainHeight=d.default.fromString(e.retainHeight):t.retainHeight=d.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=we(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.retainHeight&&(t.retainHeight=(e.retainHeight||d.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},ee);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.retainHeight&&null!==e.retainHeight?t.retainHeight=e.retainHeight:t.retainHeight=d.default.ZERO,t}};var te={};t.ResponseListSnapshots={encode:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create(),a=i(e.snapshots);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.Snapshot.encode(o,r.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return r},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},te);for(i.snapshots=[];r.pos>>3==1?i.snapshots.push(t.Snapshot.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},te);if(n.snapshots=[],void 0!==e.snapshots&&null!==e.snapshots){var r,a=i(e.snapshots);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.snapshots.push(t.Snapshot.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return e.snapshots?n.snapshots=e.snapshots.map((function(e){return e?t.Snapshot.toJSON(e):void 0})):n.snapshots=[],n},fromPartial:function(e){var n=Object.assign({},te);if(n.snapshots=[],void 0!==e.snapshots&&null!==e.snapshots){var r,a=i(e.snapshots);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.snapshots.push(t.Snapshot.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var ne={result:0};t.ResponseOfferSnapshot={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.result&&t.uint32(8).int32(e.result),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ne);n.pos>>3==1?a.result=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},ne);return void 0!==e.result&&null!==e.result?t.result=x(e.result):t.result=0,t},toJSON:function(e){var t={};return void 0!==e.result&&(t.result=_(e.result)),t},fromPartial:function(e){var t=Object.assign({},ne);return void 0!==e.result&&null!==e.result?t.result=e.result:t.result=0,t}};var re={};t.ResponseLoadSnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.chunk.length&&t.uint32(10).bytes(e.chunk),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},re);for(a.chunk=new Uint8Array;n.pos>>3==1?a.chunk=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},re);return t.chunk=new Uint8Array,void 0!==e.chunk&&null!==e.chunk&&(t.chunk=ge(e.chunk)),t},toJSON:function(e){var t={};return void 0!==e.chunk&&(t.chunk=we(void 0!==e.chunk?e.chunk:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},re);return void 0!==e.chunk&&null!==e.chunk?t.chunk=e.chunk:t.chunk=new Uint8Array,t}};var ae={result:0,refetchChunks:0,rejectSenders:""};t.ResponseApplySnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();0!==e.result&&t.uint32(8).int32(e.result),t.uint32(18).fork();var n,r=i(e.refetchChunks);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.uint32(a)}}catch(e){r.e(e)}finally{r.f()}t.ldelim();var o,s=i(e.rejectSenders);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.uint32(26).string(c)}}catch(e){s.e(e)}finally{s.f()}return t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ae);for(a.refetchChunks=[],a.rejectSenders=[];n.pos>>3){case 1:a.result=n.int32();break;case 2:if(2==(7&i))for(var o=n.uint32()+n.pos;n.pos1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return void 0!==e.block&&t.BlockParams.encode(e.block,n.uint32(10).fork()).ldelim(),void 0!==e.evidence&&h.EvidenceParams.encode(e.evidence,n.uint32(18).fork()).ldelim(),void 0!==e.validator&&h.ValidatorParams.encode(e.validator,n.uint32(26).fork()).ldelim(),void 0!==e.version&&h.VersionParams.encode(e.version,n.uint32(34).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},ie);r.pos>>3){case 1:i.block=t.BlockParams.decode(r,r.uint32());break;case 2:i.evidence=h.EvidenceParams.decode(r,r.uint32());break;case 3:i.validator=h.ValidatorParams.decode(r,r.uint32());break;case 4:i.version=h.VersionParams.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},ie);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromJSON(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=h.EvidenceParams.fromJSON(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=h.ValidatorParams.fromJSON(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=h.VersionParams.fromJSON(e.version):n.version=void 0,n},toJSON:function(e){var n={};return void 0!==e.block&&(n.block=e.block?t.BlockParams.toJSON(e.block):void 0),void 0!==e.evidence&&(n.evidence=e.evidence?h.EvidenceParams.toJSON(e.evidence):void 0),void 0!==e.validator&&(n.validator=e.validator?h.ValidatorParams.toJSON(e.validator):void 0),void 0!==e.version&&(n.version=e.version?h.VersionParams.toJSON(e.version):void 0),n},fromPartial:function(e){var n=Object.assign({},ie);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromPartial(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=h.EvidenceParams.fromPartial(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=h.ValidatorParams.fromPartial(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=h.VersionParams.fromPartial(e.version):n.version=void 0,n}};var oe={maxBytes:d.default.ZERO,maxGas:d.default.ZERO};t.BlockParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return e.maxBytes.isZero()||t.uint32(8).int64(e.maxBytes),e.maxGas.isZero()||t.uint32(16).int64(e.maxGas),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},oe);n.pos>>3){case 1:a.maxBytes=n.int64();break;case 2:a.maxGas=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},oe);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=d.default.fromString(e.maxBytes):t.maxBytes=d.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=d.default.fromString(e.maxGas):t.maxGas=d.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.maxBytes&&(t.maxBytes=(e.maxBytes||d.default.ZERO).toString()),void 0!==e.maxGas&&(t.maxGas=(e.maxGas||d.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},oe);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=e.maxBytes:t.maxBytes=d.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=e.maxGas:t.maxGas=d.default.ZERO,t}};var se={round:0};t.LastCommitInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();0!==e.round&&n.uint32(8).int32(e.round);var r,a=i(e.votes);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.VoteInfo.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},se);for(i.votes=[];r.pos>>3){case 1:i.round=r.int32();break;case 2:i.votes.push(t.VoteInfo.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},se);if(n.votes=[],void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.votes&&null!==e.votes){var r,a=i(e.votes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.votes.push(t.VoteInfo.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return void 0!==e.round&&(n.round=e.round),e.votes?n.votes=e.votes.map((function(e){return e?t.VoteInfo.toJSON(e):void 0})):n.votes=[],n},fromPartial:function(e){var n=Object.assign({},se);if(n.votes=[],void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.votes&&null!==e.votes){var r,a=i(e.votes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.votes.push(t.VoteInfo.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var ce={type:""};t.Event={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();""!==e.type&&n.uint32(10).string(e.type);var r,a=i(e.attributes);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.EventAttribute.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},ce);for(i.attributes=[];r.pos>>3){case 1:i.type=r.string();break;case 2:i.attributes.push(t.EventAttribute.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},ce);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=String(e.type):n.type="",void 0!==e.attributes&&null!==e.attributes){var r,a=i(e.attributes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.attributes.push(t.EventAttribute.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=e.type),e.attributes?n.attributes=e.attributes.map((function(e){return e?t.EventAttribute.toJSON(e):void 0})):n.attributes=[],n},fromPartial:function(e){var n=Object.assign({},ce);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=e.type:n.type="",void 0!==e.attributes&&null!==e.attributes){var r,a=i(e.attributes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.attributes.push(t.EventAttribute.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var ue={index:!1};t.EventAttribute={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),0!==e.value.length&&t.uint32(18).bytes(e.value),!0===e.index&&t.uint32(24).bool(e.index),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ue);for(a.key=new Uint8Array,a.value=new Uint8Array;n.pos>>3){case 1:a.key=n.bytes();break;case 2:a.value=n.bytes();break;case 3:a.index=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},ue);return t.key=new Uint8Array,t.value=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=ge(e.key)),void 0!==e.value&&null!==e.value&&(t.value=ge(e.value)),void 0!==e.index&&null!==e.index?t.index=Boolean(e.index):t.index=!1,t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=we(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(t.value=we(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.index&&(t.index=e.index),t},fromPartial:function(e){var t=Object.assign({},ue);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.value&&null!==e.value?t.value=e.value:t.value=new Uint8Array,void 0!==e.index&&null!==e.index?t.index=e.index:t.index=!1,t}};var fe={height:d.default.ZERO,index:0};t.TxResult={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return e.height.isZero()||n.uint32(8).int64(e.height),0!==e.index&&n.uint32(16).uint32(e.index),0!==e.tx.length&&n.uint32(26).bytes(e.tx),void 0!==e.result&&t.ResponseDeliverTx.encode(e.result,n.uint32(34).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},fe);for(i.tx=new Uint8Array;r.pos>>3){case 1:i.height=r.int64();break;case 2:i.index=r.uint32();break;case 3:i.tx=r.bytes();break;case 4:i.result=t.ResponseDeliverTx.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},fe);return n.tx=new Uint8Array,void 0!==e.height&&null!==e.height?n.height=d.default.fromString(e.height):n.height=d.default.ZERO,void 0!==e.index&&null!==e.index?n.index=Number(e.index):n.index=0,void 0!==e.tx&&null!==e.tx&&(n.tx=ge(e.tx)),void 0!==e.result&&null!==e.result?n.result=t.ResponseDeliverTx.fromJSON(e.result):n.result=void 0,n},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=(e.height||d.default.ZERO).toString()),void 0!==e.index&&(n.index=e.index),void 0!==e.tx&&(n.tx=we(void 0!==e.tx?e.tx:new Uint8Array)),void 0!==e.result&&(n.result=e.result?t.ResponseDeliverTx.toJSON(e.result):void 0),n},fromPartial:function(e){var n=Object.assign({},fe);return void 0!==e.height&&null!==e.height?n.height=e.height:n.height=d.default.ZERO,void 0!==e.index&&null!==e.index?n.index=e.index:n.index=0,void 0!==e.tx&&null!==e.tx?n.tx=e.tx:n.tx=new Uint8Array,void 0!==e.result&&null!==e.result?n.result=t.ResponseDeliverTx.fromPartial(e.result):n.result=void 0,n}};var de={power:d.default.ZERO};t.Validator={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.address.length&&t.uint32(10).bytes(e.address),e.power.isZero()||t.uint32(24).int64(e.power),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},de);for(a.address=new Uint8Array;n.pos>>3){case 1:a.address=n.bytes();break;case 3:a.power=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},de);return t.address=new Uint8Array,void 0!==e.address&&null!==e.address&&(t.address=ge(e.address)),void 0!==e.power&&null!==e.power?t.power=d.default.fromString(e.power):t.power=d.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=we(void 0!==e.address?e.address:new Uint8Array)),void 0!==e.power&&(t.power=(e.power||d.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},de);return void 0!==e.address&&null!==e.address?t.address=e.address:t.address=new Uint8Array,void 0!==e.power&&null!==e.power?t.power=e.power:t.power=d.default.ZERO,t}};var le={power:d.default.ZERO};t.ValidatorUpdate={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return void 0!==e.pubKey&&y.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),e.power.isZero()||t.uint32(16).int64(e.power),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},le);n.pos>>3){case 1:a.pubKey=y.PublicKey.decode(n,n.uint32());break;case 2:a.power=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},le);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=y.PublicKey.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.power&&null!==e.power?t.power=d.default.fromString(e.power):t.power=d.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.pubKey&&(t.pubKey=e.pubKey?y.PublicKey.toJSON(e.pubKey):void 0),void 0!==e.power&&(t.power=(e.power||d.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},le);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=y.PublicKey.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.power&&null!==e.power?t.power=e.power:t.power=d.default.ZERO,t}};var pe={signedLastBlock:!1};t.VoteInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return void 0!==e.validator&&t.Validator.encode(e.validator,n.uint32(10).fork()).ldelim(),!0===e.signedLastBlock&&n.uint32(16).bool(e.signedLastBlock),n},decode:function(e,n){for(var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},pe);r.pos>>3){case 1:i.validator=t.Validator.decode(r,r.uint32());break;case 2:i.signedLastBlock=r.bool();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},pe);return void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromJSON(e.validator):n.validator=void 0,void 0!==e.signedLastBlock&&null!==e.signedLastBlock?n.signedLastBlock=Boolean(e.signedLastBlock):n.signedLastBlock=!1,n},toJSON:function(e){var n={};return void 0!==e.validator&&(n.validator=e.validator?t.Validator.toJSON(e.validator):void 0),void 0!==e.signedLastBlock&&(n.signedLastBlock=e.signedLastBlock),n},fromPartial:function(e){var n=Object.assign({},pe);return void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromPartial(e.validator):n.validator=void 0,void 0!==e.signedLastBlock&&null!==e.signedLastBlock?n.signedLastBlock=e.signedLastBlock:n.signedLastBlock=!1,n}};var be={type:0,height:d.default.ZERO,totalVotingPower:d.default.ZERO};t.Evidence={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.type&&n.uint32(8).int32(e.type),void 0!==e.validator&&t.Validator.encode(e.validator,n.uint32(18).fork()).ldelim(),e.height.isZero()||n.uint32(24).int64(e.height),void 0!==e.time&&m.Timestamp.encode(xe(e.time),n.uint32(34).fork()).ldelim(),e.totalVotingPower.isZero()||n.uint32(40).int64(e.totalVotingPower),n},decode:function(e,n){for(var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},be);r.pos>>3){case 1:i.type=r.int32();break;case 2:i.validator=t.Validator.decode(r,r.uint32());break;case 3:i.height=r.int64();break;case 4:i.time=_e(m.Timestamp.decode(r,r.uint32()));break;case 5:i.totalVotingPower=r.int64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},be);return void 0!==e.type&&null!==e.type?n.type=A(e.type):n.type=0,void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromJSON(e.validator):n.validator=void 0,void 0!==e.height&&null!==e.height?n.height=d.default.fromString(e.height):n.height=d.default.ZERO,void 0!==e.time&&null!==e.time?n.time=ke(e.time):n.time=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=d.default.fromString(e.totalVotingPower):n.totalVotingPower=d.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=w(e.type)),void 0!==e.validator&&(n.validator=e.validator?t.Validator.toJSON(e.validator):void 0),void 0!==e.height&&(n.height=(e.height||d.default.ZERO).toString()),void 0!==e.time&&(n.time=e.time.toISOString()),void 0!==e.totalVotingPower&&(n.totalVotingPower=(e.totalVotingPower||d.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},be);return void 0!==e.type&&null!==e.type?n.type=e.type:n.type=0,void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromPartial(e.validator):n.validator=void 0,void 0!==e.height&&null!==e.height?n.height=e.height:n.height=d.default.ZERO,void 0!==e.time&&null!==e.time?n.time=e.time:n.time=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=e.totalVotingPower:n.totalVotingPower=d.default.ZERO,n}};var he={height:d.default.UZERO,format:0,chunks:0};t.Snapshot={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return e.height.isZero()||t.uint32(8).uint64(e.height),0!==e.format&&t.uint32(16).uint32(e.format),0!==e.chunks&&t.uint32(24).uint32(e.chunks),0!==e.hash.length&&t.uint32(34).bytes(e.hash),0!==e.metadata.length&&t.uint32(42).bytes(e.metadata),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},he);for(a.hash=new Uint8Array,a.metadata=new Uint8Array;n.pos>>3){case 1:a.height=n.uint64();break;case 2:a.format=n.uint32();break;case 3:a.chunks=n.uint32();break;case 4:a.hash=n.bytes();break;case 5:a.metadata=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},he);return t.hash=new Uint8Array,t.metadata=new Uint8Array,void 0!==e.height&&null!==e.height?t.height=d.default.fromString(e.height):t.height=d.default.UZERO,void 0!==e.format&&null!==e.format?t.format=Number(e.format):t.format=0,void 0!==e.chunks&&null!==e.chunks?t.chunks=Number(e.chunks):t.chunks=0,void 0!==e.hash&&null!==e.hash&&(t.hash=ge(e.hash)),void 0!==e.metadata&&null!==e.metadata&&(t.metadata=ge(e.metadata)),t},toJSON:function(e){var t={};return void 0!==e.height&&(t.height=(e.height||d.default.UZERO).toString()),void 0!==e.format&&(t.format=e.format),void 0!==e.chunks&&(t.chunks=e.chunks),void 0!==e.hash&&(t.hash=we(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.metadata&&(t.metadata=we(void 0!==e.metadata?e.metadata:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},he);return void 0!==e.height&&null!==e.height?t.height=e.height:t.height=d.default.UZERO,void 0!==e.format&&null!==e.format?t.format=e.format:t.format=0,void 0!==e.chunks&&null!==e.chunks?t.chunks=e.chunks:t.chunks=0,void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash=new Uint8Array,void 0!==e.metadata&&null!==e.metadata?t.metadata=e.metadata:t.metadata=new Uint8Array,t}};var ye=function(){function e(t){r(this,e),this.rpc=t,this.Echo=this.Echo.bind(this),this.Flush=this.Flush.bind(this),this.Info=this.Info.bind(this),this.SetOption=this.SetOption.bind(this),this.DeliverTx=this.DeliverTx.bind(this),this.CheckTx=this.CheckTx.bind(this),this.Query=this.Query.bind(this),this.Commit=this.Commit.bind(this),this.InitChain=this.InitChain.bind(this),this.BeginBlock=this.BeginBlock.bind(this),this.EndBlock=this.EndBlock.bind(this),this.ListSnapshots=this.ListSnapshots.bind(this),this.OfferSnapshot=this.OfferSnapshot.bind(this),this.LoadSnapshotChunk=this.LoadSnapshotChunk.bind(this),this.ApplySnapshotChunk=this.ApplySnapshotChunk.bind(this)}return a(e,[{key:"Echo",value:function(e){var n=t.RequestEcho.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Echo",n).then((function(e){return t.ResponseEcho.decode(new l.default.Reader(e))}))}},{key:"Flush",value:function(e){var n=t.RequestFlush.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Flush",n).then((function(e){return t.ResponseFlush.decode(new l.default.Reader(e))}))}},{key:"Info",value:function(e){var n=t.RequestInfo.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Info",n).then((function(e){return t.ResponseInfo.decode(new l.default.Reader(e))}))}},{key:"SetOption",value:function(e){var n=t.RequestSetOption.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","SetOption",n).then((function(e){return t.ResponseSetOption.decode(new l.default.Reader(e))}))}},{key:"DeliverTx",value:function(e){var n=t.RequestDeliverTx.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","DeliverTx",n).then((function(e){return t.ResponseDeliverTx.decode(new l.default.Reader(e))}))}},{key:"CheckTx",value:function(e){var n=t.RequestCheckTx.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","CheckTx",n).then((function(e){return t.ResponseCheckTx.decode(new l.default.Reader(e))}))}},{key:"Query",value:function(e){var n=t.RequestQuery.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Query",n).then((function(e){return t.ResponseQuery.decode(new l.default.Reader(e))}))}},{key:"Commit",value:function(e){var n=t.RequestCommit.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Commit",n).then((function(e){return t.ResponseCommit.decode(new l.default.Reader(e))}))}},{key:"InitChain",value:function(e){var n=t.RequestInitChain.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","InitChain",n).then((function(e){return t.ResponseInitChain.decode(new l.default.Reader(e))}))}},{key:"BeginBlock",value:function(e){var n=t.RequestBeginBlock.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","BeginBlock",n).then((function(e){return t.ResponseBeginBlock.decode(new l.default.Reader(e))}))}},{key:"EndBlock",value:function(e){var n=t.RequestEndBlock.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","EndBlock",n).then((function(e){return t.ResponseEndBlock.decode(new l.default.Reader(e))}))}},{key:"ListSnapshots",value:function(e){var n=t.RequestListSnapshots.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ListSnapshots",n).then((function(e){return t.ResponseListSnapshots.decode(new l.default.Reader(e))}))}},{key:"OfferSnapshot",value:function(e){var n=t.RequestOfferSnapshot.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","OfferSnapshot",n).then((function(e){return t.ResponseOfferSnapshot.decode(new l.default.Reader(e))}))}},{key:"LoadSnapshotChunk",value:function(e){var n=t.RequestLoadSnapshotChunk.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","LoadSnapshotChunk",n).then((function(e){return t.ResponseLoadSnapshotChunk.decode(new l.default.Reader(e))}))}},{key:"ApplySnapshotChunk",value:function(e){var n=t.RequestApplySnapshotChunk.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ApplySnapshotChunk",n).then((function(e){return t.ResponseApplySnapshotChunk.decode(new l.default.Reader(e))}))}}]),e}();t.ABCIApplicationClientImpl=ye;var me=function(){if(void 0!==me)return me;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),ve=me.atob||function(e){return me.Buffer.from(e,"base64").toString("binary")};function ge(e){for(var t=ve(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.ed25519&&t.uint32(10).bytes(e.ed25519),void 0!==e.secp256k1&&t.uint32(18).bytes(e.secp256k1),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.ed25519=n.bytes();break;case 2:a.secp256k1=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.ed25519&&null!==e.ed25519&&(t.ed25519=f(e.ed25519)),void 0!==e.secp256k1&&null!==e.secp256k1&&(t.secp256k1=f(e.secp256k1)),t},toJSON:function(e){var t={};return void 0!==e.ed25519&&(t.ed25519=void 0!==e.ed25519?l(e.ed25519):void 0),void 0!==e.secp256k1&&(t.secp256k1=void 0!==e.secp256k1?l(e.secp256k1):void 0),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.ed25519&&null!==e.ed25519?t.ed25519=e.ed25519:t.ed25519=void 0,void 0!==e.secp256k1&&null!==e.secp256k1?t.secp256k1=e.secp256k1:t.secp256k1=void 0,t}};var c=function(){if(void 0!==c)return c;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),u=c.atob||function(e){return c.Buffer.from(e,"base64").toString("binary")};function f(e){for(var t=u(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.total.isZero()||t.uint32(8).int64(e.total),e.index.isZero()||t.uint32(16).int64(e.index),0!==e.leafHash.length&&t.uint32(26).bytes(e.leafHash);var n,a=r(e.aunts);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(34).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.aunts=[],a.leafHash=new Uint8Array;n.pos>>3){case 1:a.total=n.int64();break;case 2:a.index=n.int64();break;case 3:a.leafHash=n.bytes();break;case 4:a.aunts.push(n.bytes());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);if(t.aunts=[],t.leafHash=new Uint8Array,void 0!==e.total&&null!==e.total?t.total=i.default.fromString(e.total):t.total=i.default.ZERO,void 0!==e.index&&null!==e.index?t.index=i.default.fromString(e.index):t.index=i.default.ZERO,void 0!==e.leafHash&&null!==e.leafHash&&(t.leafHash=b(e.leafHash)),void 0!==e.aunts&&null!==e.aunts){var n,a=r(e.aunts);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.aunts.push(b(o))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.total&&(t.total=(e.total||i.default.ZERO).toString()),void 0!==e.index&&(t.index=(e.index||i.default.ZERO).toString()),void 0!==e.leafHash&&(t.leafHash=y(void 0!==e.leafHash?e.leafHash:new Uint8Array)),e.aunts?t.aunts=e.aunts.map((function(e){return y(void 0!==e?e:new Uint8Array)})):t.aunts=[],t},fromPartial:function(e){var t=Object.assign({},s);if(t.aunts=[],void 0!==e.total&&null!==e.total?t.total=e.total:t.total=i.default.ZERO,void 0!==e.index&&null!==e.index?t.index=e.index:t.index=i.default.ZERO,void 0!==e.leafHash&&null!==e.leafHash?t.leafHash=e.leafHash:t.leafHash=new Uint8Array,void 0!==e.aunts&&null!==e.aunts){var n,a=r(e.aunts);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.aunts.push(o)}}catch(e){a.e(e)}finally{a.f()}}return t}};var c={};t.ValueOp={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&n.uint32(10).bytes(e.key),void 0!==e.proof&&t.Proof.encode(e.proof,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);for(i.key=new Uint8Array;r.pos>>3){case 1:i.key=r.bytes();break;case 2:i.proof=t.Proof.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);return n.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(n.key=b(e.key)),void 0!==e.proof&&null!==e.proof?n.proof=t.Proof.fromJSON(e.proof):n.proof=void 0,n},toJSON:function(e){var n={};return void 0!==e.key&&(n.key=y(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.proof&&(n.proof=e.proof?t.Proof.toJSON(e.proof):void 0),n},fromPartial:function(e){var n=Object.assign({},c);return void 0!==e.key&&null!==e.key?n.key=e.key:n.key=new Uint8Array,void 0!==e.proof&&null!==e.proof?n.proof=t.Proof.fromPartial(e.proof):n.proof=void 0,n}};var u={key:"",input:"",output:""};t.DominoOp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.key&&t.uint32(10).string(e.key),""!==e.input&&t.uint32(18).string(e.input),""!==e.output&&t.uint32(26).string(e.output),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.key=n.string();break;case 2:a.input=n.string();break;case 3:a.output=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.input&&null!==e.input?t.input=String(e.input):t.input="",void 0!==e.output&&null!==e.output?t.output=String(e.output):t.output="",t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.input&&(t.input=e.input),void 0!==e.output&&(t.output=e.output),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.input&&null!==e.input?t.input=e.input:t.input="",void 0!==e.output&&null!==e.output?t.output=e.output:t.output="",t}};var f={type:""};t.ProofOp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.type&&t.uint32(10).string(e.type),0!==e.key.length&&t.uint32(18).bytes(e.key),0!==e.data.length&&t.uint32(26).bytes(e.data),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.key=new Uint8Array,a.data=new Uint8Array;n.pos>>3){case 1:a.type=n.string();break;case 2:a.key=n.bytes();break;case 3:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return t.key=new Uint8Array,t.data=new Uint8Array,void 0!==e.type&&null!==e.type?t.type=String(e.type):t.type="",void 0!==e.key&&null!==e.key&&(t.key=b(e.key)),void 0!==e.data&&null!==e.data&&(t.data=b(e.data)),t},toJSON:function(e){var t={};return void 0!==e.type&&(t.type=e.type),void 0!==e.key&&(t.key=y(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.data&&(t.data=y(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.type&&null!==e.type?t.type=e.type:t.type="",void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var d={};t.ProofOps={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.ops);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.ProofOp.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);for(i.ops=[];r.pos>>3==1?i.ops.push(t.ProofOp.decode(r,r.uint32())):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},d);if(n.ops=[],void 0!==e.ops&&null!==e.ops){var a,i=r(e.ops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.ops.push(t.ProofOp.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.ops?n.ops=e.ops.map((function(e){return e?t.ProofOp.toJSON(e):void 0})):n.ops=[],n},fromPartial:function(e){var n=Object.assign({},d);if(n.ops=[],void 0!==e.ops&&null!==e.ops){var a,i=r(e.ops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.ops.push(t.ProofOp.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var l=function(){if(void 0!==l)return l;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),p=l.atob||function(e){return l.Buffer.from(e,"base64").toString("binary")};function b(e){for(var t=p(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.block&&t.BlockParams.encode(e.block,n.uint32(10).fork()).ldelim(),void 0!==e.evidence&&t.EvidenceParams.encode(e.evidence,n.uint32(18).fork()).ldelim(),void 0!==e.validator&&t.ValidatorParams.encode(e.validator,n.uint32(26).fork()).ldelim(),void 0!==e.version&&t.VersionParams.encode(e.version,n.uint32(34).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);r.pos>>3){case 1:i.block=t.BlockParams.decode(r,r.uint32());break;case 2:i.evidence=t.EvidenceParams.decode(r,r.uint32());break;case 3:i.validator=t.ValidatorParams.decode(r,r.uint32());break;case 4:i.version=t.VersionParams.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromJSON(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=t.EvidenceParams.fromJSON(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=t.ValidatorParams.fromJSON(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=t.VersionParams.fromJSON(e.version):n.version=void 0,n},toJSON:function(e){var n={};return void 0!==e.block&&(n.block=e.block?t.BlockParams.toJSON(e.block):void 0),void 0!==e.evidence&&(n.evidence=e.evidence?t.EvidenceParams.toJSON(e.evidence):void 0),void 0!==e.validator&&(n.validator=e.validator?t.ValidatorParams.toJSON(e.validator):void 0),void 0!==e.version&&(n.version=e.version?t.VersionParams.toJSON(e.version):void 0),n},fromPartial:function(e){var n=Object.assign({},c);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromPartial(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=t.EvidenceParams.fromPartial(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=t.ValidatorParams.fromPartial(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=t.VersionParams.fromPartial(e.version):n.version=void 0,n}};var u={maxBytes:i.default.ZERO,maxGas:i.default.ZERO,timeIotaMs:i.default.ZERO};t.BlockParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.maxBytes.isZero()||t.uint32(8).int64(e.maxBytes),e.maxGas.isZero()||t.uint32(16).int64(e.maxGas),e.timeIotaMs.isZero()||t.uint32(24).int64(e.timeIotaMs),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.maxBytes=n.int64();break;case 2:a.maxGas=n.int64();break;case 3:a.timeIotaMs=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=i.default.fromString(e.maxBytes):t.maxBytes=i.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=i.default.fromString(e.maxGas):t.maxGas=i.default.ZERO,void 0!==e.timeIotaMs&&null!==e.timeIotaMs?t.timeIotaMs=i.default.fromString(e.timeIotaMs):t.timeIotaMs=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.maxBytes&&(t.maxBytes=(e.maxBytes||i.default.ZERO).toString()),void 0!==e.maxGas&&(t.maxGas=(e.maxGas||i.default.ZERO).toString()),void 0!==e.timeIotaMs&&(t.timeIotaMs=(e.timeIotaMs||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=e.maxBytes:t.maxBytes=i.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=e.maxGas:t.maxGas=i.default.ZERO,void 0!==e.timeIotaMs&&null!==e.timeIotaMs?t.timeIotaMs=e.timeIotaMs:t.timeIotaMs=i.default.ZERO,t}};var f={maxAgeNumBlocks:i.default.ZERO,maxBytes:i.default.ZERO};t.EvidenceParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.maxAgeNumBlocks.isZero()||t.uint32(8).int64(e.maxAgeNumBlocks),void 0!==e.maxAgeDuration&&s.Duration.encode(e.maxAgeDuration,t.uint32(18).fork()).ldelim(),e.maxBytes.isZero()||t.uint32(24).int64(e.maxBytes),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.maxAgeNumBlocks=n.int64();break;case 2:a.maxAgeDuration=s.Duration.decode(n,n.uint32());break;case 3:a.maxBytes=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.maxAgeNumBlocks&&null!==e.maxAgeNumBlocks?t.maxAgeNumBlocks=i.default.fromString(e.maxAgeNumBlocks):t.maxAgeNumBlocks=i.default.ZERO,void 0!==e.maxAgeDuration&&null!==e.maxAgeDuration?t.maxAgeDuration=s.Duration.fromJSON(e.maxAgeDuration):t.maxAgeDuration=void 0,void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=i.default.fromString(e.maxBytes):t.maxBytes=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.maxAgeNumBlocks&&(t.maxAgeNumBlocks=(e.maxAgeNumBlocks||i.default.ZERO).toString()),void 0!==e.maxAgeDuration&&(t.maxAgeDuration=e.maxAgeDuration?s.Duration.toJSON(e.maxAgeDuration):void 0),void 0!==e.maxBytes&&(t.maxBytes=(e.maxBytes||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.maxAgeNumBlocks&&null!==e.maxAgeNumBlocks?t.maxAgeNumBlocks=e.maxAgeNumBlocks:t.maxAgeNumBlocks=i.default.ZERO,void 0!==e.maxAgeDuration&&null!==e.maxAgeDuration?t.maxAgeDuration=s.Duration.fromPartial(e.maxAgeDuration):t.maxAgeDuration=void 0,void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=e.maxBytes:t.maxBytes=i.default.ZERO,t}};var d={pubKeyTypes:""};t.ValidatorParams={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.pubKeyTypes);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.pubKeyTypes=[];n.pos>>3==1?a.pubKeyTypes.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},d);if(t.pubKeyTypes=[],void 0!==e.pubKeyTypes&&null!==e.pubKeyTypes){var n,a=r(e.pubKeyTypes);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.pubKeyTypes.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.pubKeyTypes?t.pubKeyTypes=e.pubKeyTypes.map((function(e){return e})):t.pubKeyTypes=[],t},fromPartial:function(e){var t=Object.assign({},d);if(t.pubKeyTypes=[],void 0!==e.pubKeyTypes&&null!==e.pubKeyTypes){var n,a=r(e.pubKeyTypes);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.pubKeyTypes.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var l={appVersion:i.default.UZERO};t.VersionParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.appVersion.isZero()||t.uint32(8).uint64(e.appVersion),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3==1?a.appVersion=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=i.default.fromString(e.appVersion):t.appVersion=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.appVersion&&(t.appVersion=(e.appVersion||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=e.appVersion:t.appVersion=i.default.UZERO,t}};var p={blockMaxBytes:i.default.ZERO,blockMaxGas:i.default.ZERO};t.HashedParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.blockMaxBytes.isZero()||t.uint32(8).int64(e.blockMaxBytes),e.blockMaxGas.isZero()||t.uint32(16).int64(e.blockMaxGas),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.blockMaxBytes=n.int64();break;case 2:a.blockMaxGas=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.blockMaxBytes&&null!==e.blockMaxBytes?t.blockMaxBytes=i.default.fromString(e.blockMaxBytes):t.blockMaxBytes=i.default.ZERO,void 0!==e.blockMaxGas&&null!==e.blockMaxGas?t.blockMaxGas=i.default.fromString(e.blockMaxGas):t.blockMaxGas=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.blockMaxBytes&&(t.blockMaxBytes=(e.blockMaxBytes||i.default.ZERO).toString()),void 0!==e.blockMaxGas&&(t.blockMaxGas=(e.blockMaxGas||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.blockMaxBytes&&null!==e.blockMaxBytes?t.blockMaxBytes=e.blockMaxBytes:t.blockMaxBytes=i.default.ZERO,void 0!==e.blockMaxGas&&null!==e.blockMaxGas?t.blockMaxGas=e.blockMaxGas:t.blockMaxGas=i.default.ZERO,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},95247:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TxProof=t.BlockMeta=t.LightBlock=t.SignedHeader=t.Proposal=t.CommitSig=t.Commit=t.Vote=t.Data=t.Header=t.BlockID=t.Part=t.PartSetHeader=t.signedMsgTypeToJSON=t.signedMsgTypeFromJSON=t.SignedMsgType=t.blockIDFlagToJSON=t.blockIDFlagFromJSON=t.BlockIDFlag=t.protobufPackage=void 0;var i,o,s=a(n(12620)),c=a(n(60832)),u=n(3945),f=n(15050),d=n(43259),l=n(49053);function p(e){switch(e){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return i.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return i.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return i.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return i.BLOCK_ID_FLAG_NIL;default:return i.UNRECOGNIZED}}function b(e){switch(e){case i.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case i.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case i.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case i.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";default:return"UNKNOWN"}}function h(e){switch(e){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return o.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return o.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return o.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return o.SIGNED_MSG_TYPE_PROPOSAL;default:return o.UNRECOGNIZED}}function y(e){switch(e){case o.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case o.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case o.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case o.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";default:return"UNKNOWN"}}t.protobufPackage="tendermint.types",function(e){e[e.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",e[e.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",e[e.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",e[e.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=t.BlockIDFlag||(t.BlockIDFlag={})),t.blockIDFlagFromJSON=p,t.blockIDFlagToJSON=b,function(e){e[e.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",e[e.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",e[e.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",e[e.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=t.SignedMsgType||(t.SignedMsgType={})),t.signedMsgTypeFromJSON=h,t.signedMsgTypeToJSON=y;var m={total:0};t.PartSetHeader={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.total&&t.uint32(8).uint32(e.total),0!==e.hash.length&&t.uint32(18).bytes(e.hash),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.hash=new Uint8Array;n.pos>>3){case 1:a.total=n.uint32();break;case 2:a.hash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return t.hash=new Uint8Array,void 0!==e.total&&null!==e.total?t.total=Number(e.total):t.total=0,void 0!==e.hash&&null!==e.hash&&(t.hash=M(e.hash)),t},toJSON:function(e){var t={};return void 0!==e.total&&(t.total=e.total),void 0!==e.hash&&(t.hash=R(void 0!==e.hash?e.hash:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.total&&null!==e.total?t.total=e.total:t.total=0,void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash=new Uint8Array,t}};var v={index:0};t.Part={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.index&&t.uint32(8).uint32(e.index),0!==e.bytes.length&&t.uint32(18).bytes(e.bytes),void 0!==e.proof&&u.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.bytes=new Uint8Array;n.pos>>3){case 1:a.index=n.uint32();break;case 2:a.bytes=n.bytes();break;case 3:a.proof=u.Proof.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return t.bytes=new Uint8Array,void 0!==e.index&&null!==e.index?t.index=Number(e.index):t.index=0,void 0!==e.bytes&&null!==e.bytes&&(t.bytes=M(e.bytes)),void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromJSON(e.proof):t.proof=void 0,t},toJSON:function(e){var t={};return void 0!==e.index&&(t.index=e.index),void 0!==e.bytes&&(t.bytes=R(void 0!==e.bytes?e.bytes:new Uint8Array)),void 0!==e.proof&&(t.proof=e.proof?u.Proof.toJSON(e.proof):void 0),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.index&&null!==e.index?t.index=e.index:t.index=0,void 0!==e.bytes&&null!==e.bytes?t.bytes=e.bytes:t.bytes=new Uint8Array,void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromPartial(e.proof):t.proof=void 0,t}};var g={};t.BlockID={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.hash.length&&n.uint32(10).bytes(e.hash),void 0!==e.partSetHeader&&t.PartSetHeader.encode(e.partSetHeader,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},g);for(i.hash=new Uint8Array;r.pos>>3){case 1:i.hash=r.bytes();break;case 2:i.partSetHeader=t.PartSetHeader.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},g);return n.hash=new Uint8Array,void 0!==e.hash&&null!==e.hash&&(n.hash=M(e.hash)),void 0!==e.partSetHeader&&null!==e.partSetHeader?n.partSetHeader=t.PartSetHeader.fromJSON(e.partSetHeader):n.partSetHeader=void 0,n},toJSON:function(e){var n={};return void 0!==e.hash&&(n.hash=R(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.partSetHeader&&(n.partSetHeader=e.partSetHeader?t.PartSetHeader.toJSON(e.partSetHeader):void 0),n},fromPartial:function(e){var n=Object.assign({},g);return void 0!==e.hash&&null!==e.hash?n.hash=e.hash:n.hash=new Uint8Array,void 0!==e.partSetHeader&&null!==e.partSetHeader?n.partSetHeader=t.PartSetHeader.fromPartial(e.partSetHeader):n.partSetHeader=void 0,n}};var A={chainId:"",height:s.default.ZERO};t.Header={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.version&&f.Consensus.encode(e.version,n.uint32(10).fork()).ldelim(),""!==e.chainId&&n.uint32(18).string(e.chainId),e.height.isZero()||n.uint32(24).int64(e.height),void 0!==e.time&&l.Timestamp.encode(N(e.time),n.uint32(34).fork()).ldelim(),void 0!==e.lastBlockId&&t.BlockID.encode(e.lastBlockId,n.uint32(42).fork()).ldelim(),0!==e.lastCommitHash.length&&n.uint32(50).bytes(e.lastCommitHash),0!==e.dataHash.length&&n.uint32(58).bytes(e.dataHash),0!==e.validatorsHash.length&&n.uint32(66).bytes(e.validatorsHash),0!==e.nextValidatorsHash.length&&n.uint32(74).bytes(e.nextValidatorsHash),0!==e.consensusHash.length&&n.uint32(82).bytes(e.consensusHash),0!==e.appHash.length&&n.uint32(90).bytes(e.appHash),0!==e.lastResultsHash.length&&n.uint32(98).bytes(e.lastResultsHash),0!==e.evidenceHash.length&&n.uint32(106).bytes(e.evidenceHash),0!==e.proposerAddress.length&&n.uint32(114).bytes(e.proposerAddress),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},A);for(i.lastCommitHash=new Uint8Array,i.dataHash=new Uint8Array,i.validatorsHash=new Uint8Array,i.nextValidatorsHash=new Uint8Array,i.consensusHash=new Uint8Array,i.appHash=new Uint8Array,i.lastResultsHash=new Uint8Array,i.evidenceHash=new Uint8Array,i.proposerAddress=new Uint8Array;r.pos>>3){case 1:i.version=f.Consensus.decode(r,r.uint32());break;case 2:i.chainId=r.string();break;case 3:i.height=r.int64();break;case 4:i.time=D(l.Timestamp.decode(r,r.uint32()));break;case 5:i.lastBlockId=t.BlockID.decode(r,r.uint32());break;case 6:i.lastCommitHash=r.bytes();break;case 7:i.dataHash=r.bytes();break;case 8:i.validatorsHash=r.bytes();break;case 9:i.nextValidatorsHash=r.bytes();break;case 10:i.consensusHash=r.bytes();break;case 11:i.appHash=r.bytes();break;case 12:i.lastResultsHash=r.bytes();break;case 13:i.evidenceHash=r.bytes();break;case 14:i.proposerAddress=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},A);return n.lastCommitHash=new Uint8Array,n.dataHash=new Uint8Array,n.validatorsHash=new Uint8Array,n.nextValidatorsHash=new Uint8Array,n.consensusHash=new Uint8Array,n.appHash=new Uint8Array,n.lastResultsHash=new Uint8Array,n.evidenceHash=new Uint8Array,n.proposerAddress=new Uint8Array,void 0!==e.version&&null!==e.version?n.version=f.Consensus.fromJSON(e.version):n.version=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=String(e.chainId):n.chainId="",void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.time&&null!==e.time?n.time=j(e.time):n.time=void 0,void 0!==e.lastBlockId&&null!==e.lastBlockId?n.lastBlockId=t.BlockID.fromJSON(e.lastBlockId):n.lastBlockId=void 0,void 0!==e.lastCommitHash&&null!==e.lastCommitHash&&(n.lastCommitHash=M(e.lastCommitHash)),void 0!==e.dataHash&&null!==e.dataHash&&(n.dataHash=M(e.dataHash)),void 0!==e.validatorsHash&&null!==e.validatorsHash&&(n.validatorsHash=M(e.validatorsHash)),void 0!==e.nextValidatorsHash&&null!==e.nextValidatorsHash&&(n.nextValidatorsHash=M(e.nextValidatorsHash)),void 0!==e.consensusHash&&null!==e.consensusHash&&(n.consensusHash=M(e.consensusHash)),void 0!==e.appHash&&null!==e.appHash&&(n.appHash=M(e.appHash)),void 0!==e.lastResultsHash&&null!==e.lastResultsHash&&(n.lastResultsHash=M(e.lastResultsHash)),void 0!==e.evidenceHash&&null!==e.evidenceHash&&(n.evidenceHash=M(e.evidenceHash)),void 0!==e.proposerAddress&&null!==e.proposerAddress&&(n.proposerAddress=M(e.proposerAddress)),n},toJSON:function(e){var n={};return void 0!==e.version&&(n.version=e.version?f.Consensus.toJSON(e.version):void 0),void 0!==e.chainId&&(n.chainId=e.chainId),void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.time&&(n.time=e.time.toISOString()),void 0!==e.lastBlockId&&(n.lastBlockId=e.lastBlockId?t.BlockID.toJSON(e.lastBlockId):void 0),void 0!==e.lastCommitHash&&(n.lastCommitHash=R(void 0!==e.lastCommitHash?e.lastCommitHash:new Uint8Array)),void 0!==e.dataHash&&(n.dataHash=R(void 0!==e.dataHash?e.dataHash:new Uint8Array)),void 0!==e.validatorsHash&&(n.validatorsHash=R(void 0!==e.validatorsHash?e.validatorsHash:new Uint8Array)),void 0!==e.nextValidatorsHash&&(n.nextValidatorsHash=R(void 0!==e.nextValidatorsHash?e.nextValidatorsHash:new Uint8Array)),void 0!==e.consensusHash&&(n.consensusHash=R(void 0!==e.consensusHash?e.consensusHash:new Uint8Array)),void 0!==e.appHash&&(n.appHash=R(void 0!==e.appHash?e.appHash:new Uint8Array)),void 0!==e.lastResultsHash&&(n.lastResultsHash=R(void 0!==e.lastResultsHash?e.lastResultsHash:new Uint8Array)),void 0!==e.evidenceHash&&(n.evidenceHash=R(void 0!==e.evidenceHash?e.evidenceHash:new Uint8Array)),void 0!==e.proposerAddress&&(n.proposerAddress=R(void 0!==e.proposerAddress?e.proposerAddress:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},A);return void 0!==e.version&&null!==e.version?n.version=f.Consensus.fromPartial(e.version):n.version=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=e.chainId:n.chainId="",void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.time&&null!==e.time?n.time=e.time:n.time=void 0,void 0!==e.lastBlockId&&null!==e.lastBlockId?n.lastBlockId=t.BlockID.fromPartial(e.lastBlockId):n.lastBlockId=void 0,void 0!==e.lastCommitHash&&null!==e.lastCommitHash?n.lastCommitHash=e.lastCommitHash:n.lastCommitHash=new Uint8Array,void 0!==e.dataHash&&null!==e.dataHash?n.dataHash=e.dataHash:n.dataHash=new Uint8Array,void 0!==e.validatorsHash&&null!==e.validatorsHash?n.validatorsHash=e.validatorsHash:n.validatorsHash=new Uint8Array,void 0!==e.nextValidatorsHash&&null!==e.nextValidatorsHash?n.nextValidatorsHash=e.nextValidatorsHash:n.nextValidatorsHash=new Uint8Array,void 0!==e.consensusHash&&null!==e.consensusHash?n.consensusHash=e.consensusHash:n.consensusHash=new Uint8Array,void 0!==e.appHash&&null!==e.appHash?n.appHash=e.appHash:n.appHash=new Uint8Array,void 0!==e.lastResultsHash&&null!==e.lastResultsHash?n.lastResultsHash=e.lastResultsHash:n.lastResultsHash=new Uint8Array,void 0!==e.evidenceHash&&null!==e.evidenceHash?n.evidenceHash=e.evidenceHash:n.evidenceHash=new Uint8Array,void 0!==e.proposerAddress&&null!==e.proposerAddress?n.proposerAddress=e.proposerAddress:n.proposerAddress=new Uint8Array,n}};var w={};t.Data={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create(),a=r(e.txs);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);for(a.txs=[];n.pos>>3==1?a.txs.push(n.bytes()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},w);if(t.txs=[],void 0!==e.txs&&null!==e.txs){var n,a=r(e.txs);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.txs.push(M(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.txs?t.txs=e.txs.map((function(e){return R(void 0!==e?e:new Uint8Array)})):t.txs=[],t},fromPartial:function(e){var t=Object.assign({},w);if(t.txs=[],void 0!==e.txs&&null!==e.txs){var n,a=r(e.txs);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.txs.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var x={type:0,height:s.default.ZERO,round:0,validatorIndex:0};t.Vote={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.type&&n.uint32(8).int32(e.type),e.height.isZero()||n.uint32(16).int64(e.height),0!==e.round&&n.uint32(24).int32(e.round),void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(34).fork()).ldelim(),void 0!==e.timestamp&&l.Timestamp.encode(N(e.timestamp),n.uint32(42).fork()).ldelim(),0!==e.validatorAddress.length&&n.uint32(50).bytes(e.validatorAddress),0!==e.validatorIndex&&n.uint32(56).int32(e.validatorIndex),0!==e.signature.length&&n.uint32(66).bytes(e.signature),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},x);for(i.validatorAddress=new Uint8Array,i.signature=new Uint8Array;r.pos>>3){case 1:i.type=r.int32();break;case 2:i.height=r.int64();break;case 3:i.round=r.int32();break;case 4:i.blockId=t.BlockID.decode(r,r.uint32());break;case 5:i.timestamp=D(l.Timestamp.decode(r,r.uint32()));break;case 6:i.validatorAddress=r.bytes();break;case 7:i.validatorIndex=r.int32();break;case 8:i.signature=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},x);return n.validatorAddress=new Uint8Array,n.signature=new Uint8Array,void 0!==e.type&&null!==e.type?n.type=h(e.type):n.type=0,void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=j(e.timestamp):n.timestamp=void 0,void 0!==e.validatorAddress&&null!==e.validatorAddress&&(n.validatorAddress=M(e.validatorAddress)),void 0!==e.validatorIndex&&null!==e.validatorIndex?n.validatorIndex=Number(e.validatorIndex):n.validatorIndex=0,void 0!==e.signature&&null!==e.signature&&(n.signature=M(e.signature)),n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=y(e.type)),void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.round&&(n.round=e.round),void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.timestamp&&(n.timestamp=e.timestamp.toISOString()),void 0!==e.validatorAddress&&(n.validatorAddress=R(void 0!==e.validatorAddress?e.validatorAddress:new Uint8Array)),void 0!==e.validatorIndex&&(n.validatorIndex=e.validatorIndex),void 0!==e.signature&&(n.signature=R(void 0!==e.signature?e.signature:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},x);return void 0!==e.type&&null!==e.type?n.type=e.type:n.type=0,void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=e.timestamp:n.timestamp=void 0,void 0!==e.validatorAddress&&null!==e.validatorAddress?n.validatorAddress=e.validatorAddress:n.validatorAddress=new Uint8Array,void 0!==e.validatorIndex&&null!==e.validatorIndex?n.validatorIndex=e.validatorIndex:n.validatorIndex=0,void 0!==e.signature&&null!==e.signature?n.signature=e.signature:n.signature=new Uint8Array,n}};var _={height:s.default.ZERO,round:0};t.Commit={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.height.isZero()||n.uint32(8).int64(e.height),0!==e.round&&n.uint32(16).int32(e.round),void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(26).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.CommitSig.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},_);for(i.signatures=[];r.pos>>3){case 1:i.height=r.int64();break;case 2:i.round=r.int32();break;case 3:i.blockId=t.BlockID.decode(r,r.uint32());break;case 4:i.signatures.push(t.CommitSig.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},_);if(n.signatures=[],void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.CommitSig.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.round&&(n.round=e.round),void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return e?t.CommitSig.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},_);if(n.signatures=[],void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.CommitSig.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var k={blockIdFlag:0};t.CommitSig={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.blockIdFlag&&t.uint32(8).int32(e.blockIdFlag),0!==e.validatorAddress.length&&t.uint32(18).bytes(e.validatorAddress),void 0!==e.timestamp&&l.Timestamp.encode(N(e.timestamp),t.uint32(26).fork()).ldelim(),0!==e.signature.length&&t.uint32(34).bytes(e.signature),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);for(a.validatorAddress=new Uint8Array,a.signature=new Uint8Array;n.pos>>3){case 1:a.blockIdFlag=n.int32();break;case 2:a.validatorAddress=n.bytes();break;case 3:a.timestamp=D(l.Timestamp.decode(n,n.uint32()));break;case 4:a.signature=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},k);return t.validatorAddress=new Uint8Array,t.signature=new Uint8Array,void 0!==e.blockIdFlag&&null!==e.blockIdFlag?t.blockIdFlag=p(e.blockIdFlag):t.blockIdFlag=0,void 0!==e.validatorAddress&&null!==e.validatorAddress&&(t.validatorAddress=M(e.validatorAddress)),void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=j(e.timestamp):t.timestamp=void 0,void 0!==e.signature&&null!==e.signature&&(t.signature=M(e.signature)),t},toJSON:function(e){var t={};return void 0!==e.blockIdFlag&&(t.blockIdFlag=b(e.blockIdFlag)),void 0!==e.validatorAddress&&(t.validatorAddress=R(void 0!==e.validatorAddress?e.validatorAddress:new Uint8Array)),void 0!==e.timestamp&&(t.timestamp=e.timestamp.toISOString()),void 0!==e.signature&&(t.signature=R(void 0!==e.signature?e.signature:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.blockIdFlag&&null!==e.blockIdFlag?t.blockIdFlag=e.blockIdFlag:t.blockIdFlag=0,void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress=new Uint8Array,void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=e.timestamp:t.timestamp=void 0,void 0!==e.signature&&null!==e.signature?t.signature=e.signature:t.signature=new Uint8Array,t}};var S={type:0,height:s.default.ZERO,round:0,polRound:0};t.Proposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.type&&n.uint32(8).int32(e.type),e.height.isZero()||n.uint32(16).int64(e.height),0!==e.round&&n.uint32(24).int32(e.round),0!==e.polRound&&n.uint32(32).int32(e.polRound),void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(42).fork()).ldelim(),void 0!==e.timestamp&&l.Timestamp.encode(N(e.timestamp),n.uint32(50).fork()).ldelim(),0!==e.signature.length&&n.uint32(58).bytes(e.signature),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},S);for(i.signature=new Uint8Array;r.pos>>3){case 1:i.type=r.int32();break;case 2:i.height=r.int64();break;case 3:i.round=r.int32();break;case 4:i.polRound=r.int32();break;case 5:i.blockId=t.BlockID.decode(r,r.uint32());break;case 6:i.timestamp=D(l.Timestamp.decode(r,r.uint32()));break;case 7:i.signature=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},S);return n.signature=new Uint8Array,void 0!==e.type&&null!==e.type?n.type=h(e.type):n.type=0,void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.polRound&&null!==e.polRound?n.polRound=Number(e.polRound):n.polRound=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=j(e.timestamp):n.timestamp=void 0,void 0!==e.signature&&null!==e.signature&&(n.signature=M(e.signature)),n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=y(e.type)),void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.round&&(n.round=e.round),void 0!==e.polRound&&(n.polRound=e.polRound),void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.timestamp&&(n.timestamp=e.timestamp.toISOString()),void 0!==e.signature&&(n.signature=R(void 0!==e.signature?e.signature:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},S);return void 0!==e.type&&null!==e.type?n.type=e.type:n.type=0,void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.polRound&&null!==e.polRound?n.polRound=e.polRound:n.polRound=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=e.timestamp:n.timestamp=void 0,void 0!==e.signature&&null!==e.signature?n.signature=e.signature:n.signature=new Uint8Array,n}};var I={};t.SignedHeader={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.header&&t.Header.encode(e.header,n.uint32(10).fork()).ldelim(),void 0!==e.commit&&t.Commit.encode(e.commit,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},I);r.pos>>3){case 1:i.header=t.Header.decode(r,r.uint32());break;case 2:i.commit=t.Commit.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},I);return void 0!==e.header&&null!==e.header?n.header=t.Header.fromJSON(e.header):n.header=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.Commit.fromJSON(e.commit):n.commit=void 0,n},toJSON:function(e){var n={};return void 0!==e.header&&(n.header=e.header?t.Header.toJSON(e.header):void 0),void 0!==e.commit&&(n.commit=e.commit?t.Commit.toJSON(e.commit):void 0),n},fromPartial:function(e){var n=Object.assign({},I);return void 0!==e.header&&null!==e.header?n.header=t.Header.fromPartial(e.header):n.header=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.Commit.fromPartial(e.commit):n.commit=void 0,n}};var E={};t.LightBlock={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.signedHeader&&t.SignedHeader.encode(e.signedHeader,n.uint32(10).fork()).ldelim(),void 0!==e.validatorSet&&d.ValidatorSet.encode(e.validatorSet,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},E);r.pos>>3){case 1:i.signedHeader=t.SignedHeader.decode(r,r.uint32());break;case 2:i.validatorSet=d.ValidatorSet.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},E);return void 0!==e.signedHeader&&null!==e.signedHeader?n.signedHeader=t.SignedHeader.fromJSON(e.signedHeader):n.signedHeader=void 0,void 0!==e.validatorSet&&null!==e.validatorSet?n.validatorSet=d.ValidatorSet.fromJSON(e.validatorSet):n.validatorSet=void 0,n},toJSON:function(e){var n={};return void 0!==e.signedHeader&&(n.signedHeader=e.signedHeader?t.SignedHeader.toJSON(e.signedHeader):void 0),void 0!==e.validatorSet&&(n.validatorSet=e.validatorSet?d.ValidatorSet.toJSON(e.validatorSet):void 0),n},fromPartial:function(e){var n=Object.assign({},E);return void 0!==e.signedHeader&&null!==e.signedHeader?n.signedHeader=t.SignedHeader.fromPartial(e.signedHeader):n.signedHeader=void 0,void 0!==e.validatorSet&&null!==e.validatorSet?n.validatorSet=d.ValidatorSet.fromPartial(e.validatorSet):n.validatorSet=void 0,n}};var C={blockSize:s.default.ZERO,numTxs:s.default.ZERO};t.BlockMeta={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(10).fork()).ldelim(),e.blockSize.isZero()||n.uint32(16).int64(e.blockSize),void 0!==e.header&&t.Header.encode(e.header,n.uint32(26).fork()).ldelim(),e.numTxs.isZero()||n.uint32(32).int64(e.numTxs),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},C);r.pos>>3){case 1:i.blockId=t.BlockID.decode(r,r.uint32());break;case 2:i.blockSize=r.int64();break;case 3:i.header=t.Header.decode(r,r.uint32());break;case 4:i.numTxs=r.int64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},C);return void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.blockSize&&null!==e.blockSize?n.blockSize=s.default.fromString(e.blockSize):n.blockSize=s.default.ZERO,void 0!==e.header&&null!==e.header?n.header=t.Header.fromJSON(e.header):n.header=void 0,void 0!==e.numTxs&&null!==e.numTxs?n.numTxs=s.default.fromString(e.numTxs):n.numTxs=s.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.blockSize&&(n.blockSize=(e.blockSize||s.default.ZERO).toString()),void 0!==e.header&&(n.header=e.header?t.Header.toJSON(e.header):void 0),void 0!==e.numTxs&&(n.numTxs=(e.numTxs||s.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},C);return void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.blockSize&&null!==e.blockSize?n.blockSize=e.blockSize:n.blockSize=s.default.ZERO,void 0!==e.header&&null!==e.header?n.header=t.Header.fromPartial(e.header):n.header=void 0,void 0!==e.numTxs&&null!==e.numTxs?n.numTxs=e.numTxs:n.numTxs=s.default.ZERO,n}};var T={};t.TxProof={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.rootHash.length&&t.uint32(10).bytes(e.rootHash),0!==e.data.length&&t.uint32(18).bytes(e.data),void 0!==e.proof&&u.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},T);for(a.rootHash=new Uint8Array,a.data=new Uint8Array;n.pos>>3){case 1:a.rootHash=n.bytes();break;case 2:a.data=n.bytes();break;case 3:a.proof=u.Proof.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},T);return t.rootHash=new Uint8Array,t.data=new Uint8Array,void 0!==e.rootHash&&null!==e.rootHash&&(t.rootHash=M(e.rootHash)),void 0!==e.data&&null!==e.data&&(t.data=M(e.data)),void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromJSON(e.proof):t.proof=void 0,t},toJSON:function(e){var t={};return void 0!==e.rootHash&&(t.rootHash=R(void 0!==e.rootHash?e.rootHash:new Uint8Array)),void 0!==e.data&&(t.data=R(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.proof&&(t.proof=e.proof?u.Proof.toJSON(e.proof):void 0),t},fromPartial:function(e){var t=Object.assign({},T);return void 0!==e.rootHash&&null!==e.rootHash?t.rootHash=e.rootHash:t.rootHash=new Uint8Array,void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromPartial(e.proof):t.proof=void 0,t}};var O=function(){if(void 0!==O)return O;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),P=O.atob||function(e){return O.Buffer.from(e,"base64").toString("binary")};function M(e){for(var t=P(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.validators);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.Validator.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return void 0!==e.proposer&&t.Validator.encode(e.proposer,a.uint32(18).fork()).ldelim(),e.totalVotingPower.isZero()||a.uint32(24).int64(e.totalVotingPower),a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);for(i.validators=[];r.pos>>3){case 1:i.validators.push(t.Validator.decode(r,r.uint32()));break;case 2:i.proposer=t.Validator.decode(r,r.uint32());break;case 3:i.totalVotingPower=r.int64();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);if(n.validators=[],void 0!==e.validators&&null!==e.validators){var a,o=r(e.validators);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.validators.push(t.Validator.fromJSON(s))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.proposer&&null!==e.proposer?n.proposer=t.Validator.fromJSON(e.proposer):n.proposer=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=i.default.fromString(e.totalVotingPower):n.totalVotingPower=i.default.ZERO,n},toJSON:function(e){var n={};return e.validators?n.validators=e.validators.map((function(e){return e?t.Validator.toJSON(e):void 0})):n.validators=[],void 0!==e.proposer&&(n.proposer=e.proposer?t.Validator.toJSON(e.proposer):void 0),void 0!==e.totalVotingPower&&(n.totalVotingPower=(e.totalVotingPower||i.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},c);if(n.validators=[],void 0!==e.validators&&null!==e.validators){var a,o=r(e.validators);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.validators.push(t.Validator.fromPartial(s))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.proposer&&null!==e.proposer?n.proposer=t.Validator.fromPartial(e.proposer):n.proposer=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=e.totalVotingPower:n.totalVotingPower=i.default.ZERO,n}};var u={votingPower:i.default.ZERO,proposerPriority:i.default.ZERO};t.Validator={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.address.length&&t.uint32(10).bytes(e.address),void 0!==e.pubKey&&s.PublicKey.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.votingPower.isZero()||t.uint32(24).int64(e.votingPower),e.proposerPriority.isZero()||t.uint32(32).int64(e.proposerPriority),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.address=new Uint8Array;n.pos>>3){case 1:a.address=n.bytes();break;case 2:a.pubKey=s.PublicKey.decode(n,n.uint32());break;case 3:a.votingPower=n.int64();break;case 4:a.proposerPriority=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return t.address=new Uint8Array,void 0!==e.address&&null!==e.address&&(t.address=function(e){for(var t=l(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.pubKey&&s.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),e.votingPower.isZero()||t.uint32(16).int64(e.votingPower),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.pubKey=s.PublicKey.decode(n,n.uint32());break;case 2:a.votingPower=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.PublicKey.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.votingPower&&null!==e.votingPower?t.votingPower=i.default.fromString(e.votingPower):t.votingPower=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.pubKey&&(t.pubKey=e.pubKey?s.PublicKey.toJSON(e.pubKey):void 0),void 0!==e.votingPower&&(t.votingPower=(e.votingPower||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.PublicKey.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.votingPower&&null!==e.votingPower?t.votingPower=e.votingPower:t.votingPower=i.default.ZERO,t}};var d=function(){if(void 0!==d)return d;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),l=d.atob||function(e){return d.Buffer.from(e,"base64").toString("binary")},p=d.btoa||function(e){return d.Buffer.from(e,"binary").toString("base64")};o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},15050:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Consensus=t.App=t.protobufPackage=void 0;var a=r(n(12620)),i=r(n(60832));t.protobufPackage="tendermint.version";var o={protocol:a.default.UZERO,software:""};t.App={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.protocol.isZero()||t.uint32(8).uint64(e.protocol),""!==e.software&&t.uint32(18).string(e.software),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.protocol=n.uint64();break;case 2:a.software=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.protocol&&null!==e.protocol?t.protocol=a.default.fromString(e.protocol):t.protocol=a.default.UZERO,void 0!==e.software&&null!==e.software?t.software=String(e.software):t.software="",t},toJSON:function(e){var t={};return void 0!==e.protocol&&(t.protocol=(e.protocol||a.default.UZERO).toString()),void 0!==e.software&&(t.software=e.software),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.protocol&&null!==e.protocol?t.protocol=e.protocol:t.protocol=a.default.UZERO,void 0!==e.software&&null!==e.software?t.software=e.software:t.software="",t}};var s={block:a.default.UZERO,app:a.default.UZERO};t.Consensus={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.block.isZero()||t.uint32(8).uint64(e.block),e.app.isZero()||t.uint32(16).uint64(e.app),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.block=n.uint64();break;case 2:a.app=n.uint64();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.block&&null!==e.block?t.block=a.default.fromString(e.block):t.block=a.default.UZERO,void 0!==e.app&&null!==e.app?t.app=a.default.fromString(e.app):t.app=a.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.block&&(t.block=(e.block||a.default.UZERO).toString()),void 0!==e.app&&(t.app=(e.app||a.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.block&&null!==e.block?t.block=e.block:t.block=a.default.UZERO,void 0!==e.app&&null!==e.app?t.app=e.app:t.app=a.default.UZERO,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},18526:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgSwapSendResponse=t.MsgSwapSend=t.MsgSwapResponse=t.MsgSwap=t.protobufPackage=void 0;var o=i(n(12620)),s=i(n(60832)),c=n(9063);t.protobufPackage="terra.market.v1beta1";var u={trader:"",askDenom:""};t.MsgSwap={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.trader&&t.uint32(10).string(e.trader),void 0!==e.offerCoin&&c.Coin.encode(e.offerCoin,t.uint32(18).fork()).ldelim(),""!==e.askDenom&&t.uint32(26).string(e.askDenom),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.trader=n.string();break;case 2:a.offerCoin=c.Coin.decode(n,n.uint32());break;case 3:a.askDenom=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.trader&&null!==e.trader?t.trader=String(e.trader):t.trader="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=c.Coin.fromJSON(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=String(e.askDenom):t.askDenom="",t},toJSON:function(e){var t={};return void 0!==e.trader&&(t.trader=e.trader),void 0!==e.offerCoin&&(t.offerCoin=e.offerCoin?c.Coin.toJSON(e.offerCoin):void 0),void 0!==e.askDenom&&(t.askDenom=e.askDenom),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.trader&&null!==e.trader?t.trader=e.trader:t.trader="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=c.Coin.fromPartial(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=e.askDenom:t.askDenom="",t}};var f={};t.MsgSwapResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.swapCoin&&c.Coin.encode(e.swapCoin,t.uint32(10).fork()).ldelim(),void 0!==e.swapFee&&c.Coin.encode(e.swapFee,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.swapCoin=c.Coin.decode(n,n.uint32());break;case 2:a.swapFee=c.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=c.Coin.fromJSON(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=c.Coin.fromJSON(e.swapFee):t.swapFee=void 0,t},toJSON:function(e){var t={};return void 0!==e.swapCoin&&(t.swapCoin=e.swapCoin?c.Coin.toJSON(e.swapCoin):void 0),void 0!==e.swapFee&&(t.swapFee=e.swapFee?c.Coin.toJSON(e.swapFee):void 0),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=c.Coin.fromPartial(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=c.Coin.fromPartial(e.swapFee):t.swapFee=void 0,t}};var d={fromAddress:"",toAddress:"",askDenom:""};t.MsgSwapSend={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress),void 0!==e.offerCoin&&c.Coin.encode(e.offerCoin,t.uint32(26).fork()).ldelim(),""!==e.askDenom&&t.uint32(34).string(e.askDenom),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.fromAddress=n.string();break;case 2:a.toAddress=n.string();break;case 3:a.offerCoin=c.Coin.decode(n,n.uint32());break;case 4:a.askDenom=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=String(e.toAddress):t.toAddress="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=c.Coin.fromJSON(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=String(e.askDenom):t.askDenom="",t},toJSON:function(e){var t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),void 0!==e.offerCoin&&(t.offerCoin=e.offerCoin?c.Coin.toJSON(e.offerCoin):void 0),void 0!==e.askDenom&&(t.askDenom=e.askDenom),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=e.toAddress:t.toAddress="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=c.Coin.fromPartial(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=e.askDenom:t.askDenom="",t}};var l={};t.MsgSwapSendResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.swapCoin&&c.Coin.encode(e.swapCoin,t.uint32(10).fork()).ldelim(),void 0!==e.swapFee&&c.Coin.encode(e.swapFee,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.swapCoin=c.Coin.decode(n,n.uint32());break;case 2:a.swapFee=c.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=c.Coin.fromJSON(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=c.Coin.fromJSON(e.swapFee):t.swapFee=void 0,t},toJSON:function(e){var t={};return void 0!==e.swapCoin&&(t.swapCoin=e.swapCoin?c.Coin.toJSON(e.swapCoin):void 0),void 0!==e.swapFee&&(t.swapFee=e.swapFee?c.Coin.toJSON(e.swapFee):void 0),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=c.Coin.fromPartial(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=c.Coin.fromPartial(e.swapFee):t.swapFee=void 0,t}};var p=function(){function e(t){r(this,e),this.rpc=t,this.Swap=this.Swap.bind(this),this.SwapSend=this.SwapSend.bind(this)}return a(e,[{key:"Swap",value:function(e){var n=t.MsgSwap.encode(e).finish();return this.rpc.request("terra.market.v1beta1.Msg","Swap",n).then((function(e){return t.MsgSwapResponse.decode(new s.default.Reader(e))}))}},{key:"SwapSend",value:function(e){var n=t.MsgSwapSend.encode(e).finish();return this.rpc.request("terra.market.v1beta1.Msg","SwapSend",n).then((function(e){return t.MsgSwapSendResponse.decode(new s.default.Reader(e))}))}}]),e}();t.MsgClientImpl=p,s.default.util.Long!==o.default&&(s.default.util.Long=o.default,s.default.configure())},55334:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExchangeRateTuple=t.AggregateExchangeRateVote=t.AggregateExchangeRatePrevote=t.Denom=t.Params=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(60832));t.protobufPackage="terra.oracle.v1beta1";var s={votePeriod:i.default.UZERO,voteThreshold:"",rewardBand:"",rewardDistributionWindow:i.default.UZERO,slashFraction:"",slashWindow:i.default.UZERO,minValidPerWindow:""};t.Params={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.votePeriod.isZero()||n.uint32(8).uint64(e.votePeriod),""!==e.voteThreshold&&n.uint32(18).string(e.voteThreshold),""!==e.rewardBand&&n.uint32(26).string(e.rewardBand),e.rewardDistributionWindow.isZero()||n.uint32(32).uint64(e.rewardDistributionWindow);var a,i=r(e.whitelist);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Denom.encode(s,n.uint32(42).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return""!==e.slashFraction&&n.uint32(50).string(e.slashFraction),e.slashWindow.isZero()||n.uint32(56).uint64(e.slashWindow),""!==e.minValidPerWindow&&n.uint32(66).string(e.minValidPerWindow),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},s);for(i.whitelist=[];r.pos>>3){case 1:i.votePeriod=r.uint64();break;case 2:i.voteThreshold=r.string();break;case 3:i.rewardBand=r.string();break;case 4:i.rewardDistributionWindow=r.uint64();break;case 5:i.whitelist.push(t.Denom.decode(r,r.uint32()));break;case 6:i.slashFraction=r.string();break;case 7:i.slashWindow=r.uint64();break;case 8:i.minValidPerWindow=r.string();break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},s);if(n.whitelist=[],void 0!==e.votePeriod&&null!==e.votePeriod?n.votePeriod=i.default.fromString(e.votePeriod):n.votePeriod=i.default.UZERO,void 0!==e.voteThreshold&&null!==e.voteThreshold?n.voteThreshold=String(e.voteThreshold):n.voteThreshold="",void 0!==e.rewardBand&&null!==e.rewardBand?n.rewardBand=String(e.rewardBand):n.rewardBand="",void 0!==e.rewardDistributionWindow&&null!==e.rewardDistributionWindow?n.rewardDistributionWindow=i.default.fromString(e.rewardDistributionWindow):n.rewardDistributionWindow=i.default.UZERO,void 0!==e.whitelist&&null!==e.whitelist){var a,o=r(e.whitelist);try{for(o.s();!(a=o.n()).done;){var c=a.value;n.whitelist.push(t.Denom.fromJSON(c))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.slashFraction&&null!==e.slashFraction?n.slashFraction=String(e.slashFraction):n.slashFraction="",void 0!==e.slashWindow&&null!==e.slashWindow?n.slashWindow=i.default.fromString(e.slashWindow):n.slashWindow=i.default.UZERO,void 0!==e.minValidPerWindow&&null!==e.minValidPerWindow?n.minValidPerWindow=String(e.minValidPerWindow):n.minValidPerWindow="",n},toJSON:function(e){var n={};return void 0!==e.votePeriod&&(n.votePeriod=(e.votePeriod||i.default.UZERO).toString()),void 0!==e.voteThreshold&&(n.voteThreshold=e.voteThreshold),void 0!==e.rewardBand&&(n.rewardBand=e.rewardBand),void 0!==e.rewardDistributionWindow&&(n.rewardDistributionWindow=(e.rewardDistributionWindow||i.default.UZERO).toString()),e.whitelist?n.whitelist=e.whitelist.map((function(e){return e?t.Denom.toJSON(e):void 0})):n.whitelist=[],void 0!==e.slashFraction&&(n.slashFraction=e.slashFraction),void 0!==e.slashWindow&&(n.slashWindow=(e.slashWindow||i.default.UZERO).toString()),void 0!==e.minValidPerWindow&&(n.minValidPerWindow=e.minValidPerWindow),n},fromPartial:function(e){var n=Object.assign({},s);if(n.whitelist=[],void 0!==e.votePeriod&&null!==e.votePeriod?n.votePeriod=e.votePeriod:n.votePeriod=i.default.UZERO,void 0!==e.voteThreshold&&null!==e.voteThreshold?n.voteThreshold=e.voteThreshold:n.voteThreshold="",void 0!==e.rewardBand&&null!==e.rewardBand?n.rewardBand=e.rewardBand:n.rewardBand="",void 0!==e.rewardDistributionWindow&&null!==e.rewardDistributionWindow?n.rewardDistributionWindow=e.rewardDistributionWindow:n.rewardDistributionWindow=i.default.UZERO,void 0!==e.whitelist&&null!==e.whitelist){var a,o=r(e.whitelist);try{for(o.s();!(a=o.n()).done;){var c=a.value;n.whitelist.push(t.Denom.fromPartial(c))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.slashFraction&&null!==e.slashFraction?n.slashFraction=e.slashFraction:n.slashFraction="",void 0!==e.slashWindow&&null!==e.slashWindow?n.slashWindow=e.slashWindow:n.slashWindow=i.default.UZERO,void 0!==e.minValidPerWindow&&null!==e.minValidPerWindow?n.minValidPerWindow=e.minValidPerWindow:n.minValidPerWindow="",n}};var c={name:"",tobinTax:""};t.Denom={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.name&&t.uint32(10).string(e.name),""!==e.tobinTax&&t.uint32(18).string(e.tobinTax),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.name=n.string();break;case 2:a.tobinTax=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.tobinTax&&null!==e.tobinTax?t.tobinTax=String(e.tobinTax):t.tobinTax="",t},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.tobinTax&&(t.tobinTax=e.tobinTax),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.tobinTax&&null!==e.tobinTax?t.tobinTax=e.tobinTax:t.tobinTax="",t}};var u={hash:"",voter:"",submitBlock:i.default.UZERO};t.AggregateExchangeRatePrevote={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.hash&&t.uint32(10).string(e.hash),""!==e.voter&&t.uint32(18).string(e.voter),e.submitBlock.isZero()||t.uint32(24).uint64(e.submitBlock),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.hash=n.string();break;case 2:a.voter=n.string();break;case 3:a.submitBlock=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.hash&&null!==e.hash?t.hash=String(e.hash):t.hash="",void 0!==e.voter&&null!==e.voter?t.voter=String(e.voter):t.voter="",void 0!==e.submitBlock&&null!==e.submitBlock?t.submitBlock=i.default.fromString(e.submitBlock):t.submitBlock=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=e.hash),void 0!==e.voter&&(t.voter=e.voter),void 0!==e.submitBlock&&(t.submitBlock=(e.submitBlock||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash="",void 0!==e.voter&&null!==e.voter?t.voter=e.voter:t.voter="",void 0!==e.submitBlock&&null!==e.submitBlock?t.submitBlock=e.submitBlock:t.submitBlock=i.default.UZERO,t}};var f={voter:""};t.AggregateExchangeRateVote={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.exchangeRateTuples);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.ExchangeRateTuple.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return""!==e.voter&&a.uint32(18).string(e.voter),a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);for(i.exchangeRateTuples=[];r.pos>>3){case 1:i.exchangeRateTuples.push(t.ExchangeRateTuple.decode(r,r.uint32()));break;case 2:i.voter=r.string();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},f);if(n.exchangeRateTuples=[],void 0!==e.exchangeRateTuples&&null!==e.exchangeRateTuples){var a,i=r(e.exchangeRateTuples);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.exchangeRateTuples.push(t.ExchangeRateTuple.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.voter&&null!==e.voter?n.voter=String(e.voter):n.voter="",n},toJSON:function(e){var n={};return e.exchangeRateTuples?n.exchangeRateTuples=e.exchangeRateTuples.map((function(e){return e?t.ExchangeRateTuple.toJSON(e):void 0})):n.exchangeRateTuples=[],void 0!==e.voter&&(n.voter=e.voter),n},fromPartial:function(e){var n=Object.assign({},f);if(n.exchangeRateTuples=[],void 0!==e.exchangeRateTuples&&null!==e.exchangeRateTuples){var a,i=r(e.exchangeRateTuples);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.exchangeRateTuples.push(t.ExchangeRateTuple.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.voter&&null!==e.voter?n.voter=e.voter:n.voter="",n}};var d={denom:"",exchangeRate:""};t.ExchangeRateTuple={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.exchangeRate&&t.uint32(18).string(e.exchangeRate),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.exchangeRate=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.exchangeRate&&null!==e.exchangeRate?t.exchangeRate=String(e.exchangeRate):t.exchangeRate="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.exchangeRate&&(t.exchangeRate=e.exchangeRate),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.exchangeRate&&null!==e.exchangeRate?t.exchangeRate=e.exchangeRate:t.exchangeRate="",t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},24575:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgDelegateFeedConsentResponse=t.MsgDelegateFeedConsent=t.MsgAggregateExchangeRateVoteResponse=t.MsgAggregateExchangeRateVote=t.MsgAggregateExchangeRatePrevoteResponse=t.MsgAggregateExchangeRatePrevote=t.protobufPackage=void 0;var o=i(n(12620)),s=i(n(60832));t.protobufPackage="terra.oracle.v1beta1";var c={hash:"",feeder:"",validator:""};t.MsgAggregateExchangeRatePrevote={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.hash&&t.uint32(10).string(e.hash),""!==e.feeder&&t.uint32(18).string(e.feeder),""!==e.validator&&t.uint32(26).string(e.validator),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.hash=n.string();break;case 2:a.feeder=n.string();break;case 3:a.validator=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.hash&&null!==e.hash?t.hash=String(e.hash):t.hash="",void 0!==e.feeder&&null!==e.feeder?t.feeder=String(e.feeder):t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=String(e.validator):t.validator="",t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=e.hash),void 0!==e.feeder&&(t.feeder=e.feeder),void 0!==e.validator&&(t.validator=e.validator),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash="",void 0!==e.feeder&&null!==e.feeder?t.feeder=e.feeder:t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=e.validator:t.validator="",t}};var u={};t.MsgAggregateExchangeRatePrevoteResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create()},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.salt&&t.uint32(10).string(e.salt),""!==e.exchangeRates&&t.uint32(18).string(e.exchangeRates),""!==e.feeder&&t.uint32(26).string(e.feeder),""!==e.validator&&t.uint32(34).string(e.validator),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.salt=n.string();break;case 2:a.exchangeRates=n.string();break;case 3:a.feeder=n.string();break;case 4:a.validator=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.salt&&null!==e.salt?t.salt=String(e.salt):t.salt="",void 0!==e.exchangeRates&&null!==e.exchangeRates?t.exchangeRates=String(e.exchangeRates):t.exchangeRates="",void 0!==e.feeder&&null!==e.feeder?t.feeder=String(e.feeder):t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=String(e.validator):t.validator="",t},toJSON:function(e){var t={};return void 0!==e.salt&&(t.salt=e.salt),void 0!==e.exchangeRates&&(t.exchangeRates=e.exchangeRates),void 0!==e.feeder&&(t.feeder=e.feeder),void 0!==e.validator&&(t.validator=e.validator),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.salt&&null!==e.salt?t.salt=e.salt:t.salt="",void 0!==e.exchangeRates&&null!==e.exchangeRates?t.exchangeRates=e.exchangeRates:t.exchangeRates="",void 0!==e.feeder&&null!==e.feeder?t.feeder=e.feeder:t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=e.validator:t.validator="",t}};var d={};t.MsgAggregateExchangeRateVoteResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create()},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.operator&&t.uint32(10).string(e.operator),""!==e.delegate&&t.uint32(18).string(e.delegate),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.operator=n.string();break;case 2:a.delegate=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.operator&&null!==e.operator?t.operator=String(e.operator):t.operator="",void 0!==e.delegate&&null!==e.delegate?t.delegate=String(e.delegate):t.delegate="",t},toJSON:function(e){var t={};return void 0!==e.operator&&(t.operator=e.operator),void 0!==e.delegate&&(t.delegate=e.delegate),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.operator&&null!==e.operator?t.operator=e.operator:t.operator="",void 0!==e.delegate&&null!==e.delegate?t.delegate=e.delegate:t.delegate="",t}};var p={};t.MsgDelegateFeedConsentResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create()},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.taxPolicy&&t.PolicyConstraints.encode(e.taxPolicy,n.uint32(10).fork()).ldelim(),void 0!==e.rewardPolicy&&t.PolicyConstraints.encode(e.rewardPolicy,n.uint32(18).fork()).ldelim(),""!==e.seigniorageBurdenTarget&&n.uint32(26).string(e.seigniorageBurdenTarget),""!==e.miningIncrement&&n.uint32(34).string(e.miningIncrement),e.windowShort.isZero()||n.uint32(40).uint64(e.windowShort),e.windowLong.isZero()||n.uint32(48).uint64(e.windowLong),e.windowProbation.isZero()||n.uint32(56).uint64(e.windowProbation),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);r.pos>>3){case 1:i.taxPolicy=t.PolicyConstraints.decode(r,r.uint32());break;case 2:i.rewardPolicy=t.PolicyConstraints.decode(r,r.uint32());break;case 3:i.seigniorageBurdenTarget=r.string();break;case 4:i.miningIncrement=r.string();break;case 5:i.windowShort=r.uint64();break;case 6:i.windowLong=r.uint64();break;case 7:i.windowProbation=r.uint64();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);return void 0!==e.taxPolicy&&null!==e.taxPolicy?n.taxPolicy=t.PolicyConstraints.fromJSON(e.taxPolicy):n.taxPolicy=void 0,void 0!==e.rewardPolicy&&null!==e.rewardPolicy?n.rewardPolicy=t.PolicyConstraints.fromJSON(e.rewardPolicy):n.rewardPolicy=void 0,void 0!==e.seigniorageBurdenTarget&&null!==e.seigniorageBurdenTarget?n.seigniorageBurdenTarget=String(e.seigniorageBurdenTarget):n.seigniorageBurdenTarget="",void 0!==e.miningIncrement&&null!==e.miningIncrement?n.miningIncrement=String(e.miningIncrement):n.miningIncrement="",void 0!==e.windowShort&&null!==e.windowShort?n.windowShort=i.default.fromString(e.windowShort):n.windowShort=i.default.UZERO,void 0!==e.windowLong&&null!==e.windowLong?n.windowLong=i.default.fromString(e.windowLong):n.windowLong=i.default.UZERO,void 0!==e.windowProbation&&null!==e.windowProbation?n.windowProbation=i.default.fromString(e.windowProbation):n.windowProbation=i.default.UZERO,n},toJSON:function(e){var n={};return void 0!==e.taxPolicy&&(n.taxPolicy=e.taxPolicy?t.PolicyConstraints.toJSON(e.taxPolicy):void 0),void 0!==e.rewardPolicy&&(n.rewardPolicy=e.rewardPolicy?t.PolicyConstraints.toJSON(e.rewardPolicy):void 0),void 0!==e.seigniorageBurdenTarget&&(n.seigniorageBurdenTarget=e.seigniorageBurdenTarget),void 0!==e.miningIncrement&&(n.miningIncrement=e.miningIncrement),void 0!==e.windowShort&&(n.windowShort=(e.windowShort||i.default.UZERO).toString()),void 0!==e.windowLong&&(n.windowLong=(e.windowLong||i.default.UZERO).toString()),void 0!==e.windowProbation&&(n.windowProbation=(e.windowProbation||i.default.UZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},c);return void 0!==e.taxPolicy&&null!==e.taxPolicy?n.taxPolicy=t.PolicyConstraints.fromPartial(e.taxPolicy):n.taxPolicy=void 0,void 0!==e.rewardPolicy&&null!==e.rewardPolicy?n.rewardPolicy=t.PolicyConstraints.fromPartial(e.rewardPolicy):n.rewardPolicy=void 0,void 0!==e.seigniorageBurdenTarget&&null!==e.seigniorageBurdenTarget?n.seigniorageBurdenTarget=e.seigniorageBurdenTarget:n.seigniorageBurdenTarget="",void 0!==e.miningIncrement&&null!==e.miningIncrement?n.miningIncrement=e.miningIncrement:n.miningIncrement="",void 0!==e.windowShort&&null!==e.windowShort?n.windowShort=e.windowShort:n.windowShort=i.default.UZERO,void 0!==e.windowLong&&null!==e.windowLong?n.windowLong=e.windowLong:n.windowLong=i.default.UZERO,void 0!==e.windowProbation&&null!==e.windowProbation?n.windowProbation=e.windowProbation:n.windowProbation=i.default.UZERO,n}};var u={rateMin:"",rateMax:"",changeRateMax:""};t.PolicyConstraints={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.rateMin&&t.uint32(10).string(e.rateMin),""!==e.rateMax&&t.uint32(18).string(e.rateMax),void 0!==e.cap&&s.Coin.encode(e.cap,t.uint32(26).fork()).ldelim(),""!==e.changeRateMax&&t.uint32(34).string(e.changeRateMax),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.rateMin=n.string();break;case 2:a.rateMax=n.string();break;case 3:a.cap=s.Coin.decode(n,n.uint32());break;case 4:a.changeRateMax=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.rateMin&&null!==e.rateMin?t.rateMin=String(e.rateMin):t.rateMin="",void 0!==e.rateMax&&null!==e.rateMax?t.rateMax=String(e.rateMax):t.rateMax="",void 0!==e.cap&&null!==e.cap?t.cap=s.Coin.fromJSON(e.cap):t.cap=void 0,void 0!==e.changeRateMax&&null!==e.changeRateMax?t.changeRateMax=String(e.changeRateMax):t.changeRateMax="",t},toJSON:function(e){var t={};return void 0!==e.rateMin&&(t.rateMin=e.rateMin),void 0!==e.rateMax&&(t.rateMax=e.rateMax),void 0!==e.cap&&(t.cap=e.cap?s.Coin.toJSON(e.cap):void 0),void 0!==e.changeRateMax&&(t.changeRateMax=e.changeRateMax),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.rateMin&&null!==e.rateMin?t.rateMin=e.rateMin:t.rateMin="",void 0!==e.rateMax&&null!==e.rateMax?t.rateMax=e.rateMax:t.rateMax="",void 0!==e.cap&&null!==e.cap?t.cap=s.Coin.fromPartial(e.cap):t.cap=void 0,void 0!==e.changeRateMax&&null!==e.changeRateMax?t.changeRateMax=e.changeRateMax:t.changeRateMax="",t}};var f={};t.EpochTaxProceeds={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.taxProceeds);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.taxProceeds=[];n.pos>>3==1?a.taxProceeds.push(s.Coin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},f);if(t.taxProceeds=[],void 0!==e.taxProceeds&&null!==e.taxProceeds){var n,a=r(e.taxProceeds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.taxProceeds.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.taxProceeds?t.taxProceeds=e.taxProceeds.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.taxProceeds=[],t},fromPartial:function(e){var t=Object.assign({},f);if(t.taxProceeds=[],void 0!==e.taxProceeds&&null!==e.taxProceeds){var n,a=r(e.taxProceeds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.taxProceeds.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var d={};t.EpochInitialIssuance={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.issuance);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.issuance=[];n.pos>>3==1?a.issuance.push(s.Coin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},d);if(t.issuance=[],void 0!==e.issuance&&null!==e.issuance){var n,a=r(e.issuance);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.issuance.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.issuance?t.issuance=e.issuance.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.issuance=[],t},fromPartial:function(e){var t=Object.assign({},d);if(t.issuance=[],void 0!==e.issuance&&null!==e.issuance){var n,a=r(e.issuance);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.issuance.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},18965:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VestingSchedule=t.Schedule=t.LazyGradedVestingAccount=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(60832)),s=n(23216);t.protobufPackage="terra.vesting.v1beta1";var c={};t.LazyGradedVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseVestingAccount&&s.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim();var a,i=r(e.vestingSchedules);try{for(i.s();!(a=i.n()).done;){var c=a.value;t.VestingSchedule.encode(c,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);for(i.vestingSchedules=[];r.pos>>3){case 1:i.baseVestingAccount=s.BaseVestingAccount.decode(r,r.uint32());break;case 2:i.vestingSchedules.push(t.VestingSchedule.decode(r,r.uint32()));break;default:r.skipType(7&u)}}return i},fromJSON:function(e){var n=Object.assign({},c);if(n.vestingSchedules=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=s.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.vestingSchedules&&null!==e.vestingSchedules){var a,i=r(e.vestingSchedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.vestingSchedules.push(t.VestingSchedule.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?s.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),e.vestingSchedules?n.vestingSchedules=e.vestingSchedules.map((function(e){return e?t.VestingSchedule.toJSON(e):void 0})):n.vestingSchedules=[],n},fromPartial:function(e){var n=Object.assign({},c);if(n.vestingSchedules=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=s.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.vestingSchedules&&null!==e.vestingSchedules){var a,i=r(e.vestingSchedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.vestingSchedules.push(t.VestingSchedule.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var u={startTime:i.default.ZERO,endTime:i.default.ZERO,ratio:""};t.Schedule={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.startTime.isZero()||t.uint32(8).int64(e.startTime),e.endTime.isZero()||t.uint32(16).int64(e.endTime),""!==e.ratio&&t.uint32(26).string(e.ratio),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.startTime=n.int64();break;case 2:a.endTime=n.int64();break;case 3:a.ratio=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.startTime&&null!==e.startTime?t.startTime=i.default.fromString(e.startTime):t.startTime=i.default.ZERO,void 0!==e.endTime&&null!==e.endTime?t.endTime=i.default.fromString(e.endTime):t.endTime=i.default.ZERO,void 0!==e.ratio&&null!==e.ratio?t.ratio=String(e.ratio):t.ratio="",t},toJSON:function(e){var t={};return void 0!==e.startTime&&(t.startTime=(e.startTime||i.default.ZERO).toString()),void 0!==e.endTime&&(t.endTime=(e.endTime||i.default.ZERO).toString()),void 0!==e.ratio&&(t.ratio=e.ratio),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.startTime&&null!==e.startTime?t.startTime=e.startTime:t.startTime=i.default.ZERO,void 0!==e.endTime&&null!==e.endTime?t.endTime=e.endTime:t.endTime=i.default.ZERO,void 0!==e.ratio&&null!==e.ratio?t.ratio=e.ratio:t.ratio="",t}};var f={denom:""};t.VestingSchedule={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.denom&&n.uint32(10).string(e.denom);var a,i=r(e.schedules);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Schedule.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);for(i.schedules=[];r.pos>>3){case 1:i.denom=r.string();break;case 2:i.schedules.push(t.Schedule.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},f);if(n.schedules=[],void 0!==e.denom&&null!==e.denom?n.denom=String(e.denom):n.denom="",void 0!==e.schedules&&null!==e.schedules){var a,i=r(e.schedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.schedules.push(t.Schedule.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.denom&&(n.denom=e.denom),e.schedules?n.schedules=e.schedules.map((function(e){return e?t.Schedule.toJSON(e):void 0})):n.schedules=[],n},fromPartial:function(e){var n=Object.assign({},f);if(n.schedules=[],void 0!==e.denom&&null!==e.denom?n.denom=e.denom:n.denom="",void 0!==e.schedules&&null!==e.schedules){var a,i=r(e.schedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.schedules.push(t.Schedule.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},15398:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(21146).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgClearContractAdminResponse=t.MsgClearContractAdmin=t.MsgUpdateContractAdminResponse=t.MsgUpdateContractAdmin=t.MsgMigrateContractResponse=t.MsgMigrateContract=t.MsgExecuteContractResponse=t.MsgExecuteContract=t.MsgInstantiateContractResponse=t.MsgInstantiateContract=t.MsgMigrateCodeResponse=t.MsgMigrateCode=t.MsgStoreCodeResponse=t.MsgStoreCode=t.protobufPackage=void 0;var s=o(n(12620)),c=o(n(60832)),u=n(9063);t.protobufPackage="terra.wasm.v1beta1";var f={sender:""};t.MsgStoreCode={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),0!==e.wasmByteCode.length&&t.uint32(18).bytes(e.wasmByteCode),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.wasmByteCode=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.wasmByteCode=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return t.wasmByteCode=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode&&(t.wasmByteCode=E(e.wasmByteCode)),t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.wasmByteCode&&(t.wasmByteCode=T(void 0!==e.wasmByteCode?e.wasmByteCode:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode?t.wasmByteCode=e.wasmByteCode:t.wasmByteCode=new Uint8Array,t}};var d={codeId:s.default.UZERO};t.MsgStoreCodeResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return e.codeId.isZero()||t.uint32(8).uint64(e.codeId),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3==1?a.codeId=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,t}};var l={codeId:s.default.UZERO,sender:""};t.MsgMigrateCode={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return e.codeId.isZero()||t.uint32(8).uint64(e.codeId),""!==e.sender&&t.uint32(18).string(e.sender),0!==e.wasmByteCode.length&&t.uint32(26).bytes(e.wasmByteCode),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.wasmByteCode=new Uint8Array;n.pos>>3){case 1:a.codeId=n.uint64();break;case 2:a.sender=n.string();break;case 3:a.wasmByteCode=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return t.wasmByteCode=new Uint8Array,void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode&&(t.wasmByteCode=E(e.wasmByteCode)),t},toJSON:function(e){var t={};return void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.wasmByteCode&&(t.wasmByteCode=T(void 0!==e.wasmByteCode?e.wasmByteCode:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode?t.wasmByteCode=e.wasmByteCode:t.wasmByteCode=new Uint8Array,t}};var p={};t.MsgMigrateCodeResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();""!==e.sender&&t.uint32(10).string(e.sender),""!==e.admin&&t.uint32(18).string(e.admin),e.codeId.isZero()||t.uint32(24).uint64(e.codeId),0!==e.initMsg.length&&t.uint32(34).bytes(e.initMsg);var n,r=i(e.initCoins);try{for(r.s();!(n=r.n()).done;){var a=n.value;u.Coin.encode(a,t.uint32(42).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.initCoins=[],a.initMsg=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.admin=n.string();break;case 3:a.codeId=n.uint64();break;case 4:a.initMsg=n.bytes();break;case 5:a.initCoins.push(u.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);if(t.initCoins=[],t.initMsg=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,void 0!==e.initMsg&&null!==e.initMsg&&(t.initMsg=E(e.initMsg)),void 0!==e.initCoins&&null!==e.initCoins){var n,r=i(e.initCoins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.initCoins.push(u.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.initMsg&&(t.initMsg=T(void 0!==e.initMsg?e.initMsg:new Uint8Array)),e.initCoins?t.initCoins=e.initCoins.map((function(e){return e?u.Coin.toJSON(e):void 0})):t.initCoins=[],t},fromPartial:function(e){var t=Object.assign({},b);if(t.initCoins=[],void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,void 0!==e.initMsg&&null!==e.initMsg?t.initMsg=e.initMsg:t.initMsg=new Uint8Array,void 0!==e.initCoins&&null!==e.initCoins){var n,r=i(e.initCoins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.initCoins.push(u.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var h={contractAddress:""};t.MsgInstantiateContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.contractAddress&&t.uint32(10).string(e.contractAddress),0!==e.data.length&&t.uint32(18).bytes(e.data),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.data=new Uint8Array;n.pos>>3){case 1:a.contractAddress=n.string();break;case 2:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);return t.data=new Uint8Array,void 0!==e.contractAddress&&null!==e.contractAddress?t.contractAddress=String(e.contractAddress):t.contractAddress="",void 0!==e.data&&null!==e.data&&(t.data=E(e.data)),t},toJSON:function(e){var t={};return void 0!==e.contractAddress&&(t.contractAddress=e.contractAddress),void 0!==e.data&&(t.data=T(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},h);return void 0!==e.contractAddress&&null!==e.contractAddress?t.contractAddress=e.contractAddress:t.contractAddress="",void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var y={sender:"",contract:""};t.MsgExecuteContract={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(18).string(e.contract),0!==e.executeMsg.length&&t.uint32(26).bytes(e.executeMsg);var n,r=i(e.coins);try{for(r.s();!(n=r.n()).done;){var a=n.value;u.Coin.encode(a,t.uint32(42).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.coins=[],a.executeMsg=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.contract=n.string();break;case 3:a.executeMsg=n.bytes();break;case 5:a.coins.push(u.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);if(t.coins=[],t.executeMsg=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.executeMsg&&null!==e.executeMsg&&(t.executeMsg=E(e.executeMsg)),void 0!==e.coins&&null!==e.coins){var n,r=i(e.coins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.coins.push(u.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.executeMsg&&(t.executeMsg=T(void 0!==e.executeMsg?e.executeMsg:new Uint8Array)),e.coins?t.coins=e.coins.map((function(e){return e?u.Coin.toJSON(e):void 0})):t.coins=[],t},fromPartial:function(e){var t=Object.assign({},y);if(t.coins=[],void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.executeMsg&&null!==e.executeMsg?t.executeMsg=e.executeMsg:t.executeMsg=new Uint8Array,void 0!==e.coins&&null!==e.coins){var n,r=i(e.coins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.coins.push(u.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var m={};t.MsgExecuteContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.data=new Uint8Array;n.pos>>3==1?a.data=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},m);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=E(e.data)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=T(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var v={admin:"",contract:"",newCodeId:s.default.UZERO};t.MsgMigrateContract={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.admin&&t.uint32(10).string(e.admin),""!==e.contract&&t.uint32(18).string(e.contract),e.newCodeId.isZero()||t.uint32(24).uint64(e.newCodeId),0!==e.migrateMsg.length&&t.uint32(34).bytes(e.migrateMsg),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.migrateMsg=new Uint8Array;n.pos>>3){case 1:a.admin=n.string();break;case 2:a.contract=n.string();break;case 3:a.newCodeId=n.uint64();break;case 4:a.migrateMsg=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return t.migrateMsg=new Uint8Array,void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.newCodeId&&null!==e.newCodeId?t.newCodeId=s.default.fromString(e.newCodeId):t.newCodeId=s.default.UZERO,void 0!==e.migrateMsg&&null!==e.migrateMsg&&(t.migrateMsg=E(e.migrateMsg)),t},toJSON:function(e){var t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.newCodeId&&(t.newCodeId=(e.newCodeId||s.default.UZERO).toString()),void 0!==e.migrateMsg&&(t.migrateMsg=T(void 0!==e.migrateMsg?e.migrateMsg:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.newCodeId&&null!==e.newCodeId?t.newCodeId=e.newCodeId:t.newCodeId=s.default.UZERO,void 0!==e.migrateMsg&&null!==e.migrateMsg?t.migrateMsg=e.migrateMsg:t.migrateMsg=new Uint8Array,t}};var g={};t.MsgMigrateContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);for(a.data=new Uint8Array;n.pos>>3==1?a.data=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},g);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=E(e.data)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=T(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},g);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var A={admin:"",newAdmin:"",contract:""};t.MsgUpdateContractAdmin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.admin&&t.uint32(10).string(e.admin),""!==e.newAdmin&&t.uint32(18).string(e.newAdmin),""!==e.contract&&t.uint32(26).string(e.contract),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);n.pos>>3){case 1:a.admin=n.string();break;case 2:a.newAdmin=n.string();break;case 3:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=String(e.newAdmin):t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.newAdmin&&(t.newAdmin=e.newAdmin),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=e.newAdmin:t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var w={};t.MsgUpdateContractAdminResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.admin&&t.uint32(10).string(e.admin),""!==e.contract&&t.uint32(18).string(e.contract),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},x);n.pos>>3){case 1:a.admin=n.string();break;case 2:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},x);return void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},x);return void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var _={};t.MsgClearContractAdminResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);n.pos0||-1===this._reconnectCount)?(-1!==this._reconnectCount&&this._reconnectCount--,this.reconnectTimeoutId&&clearTimeout(this.reconnectTimeoutId),this.reconnectTimeoutId=setTimeout((function(){e.emit("reconnect"),e.start()}),this.reconnectInterval)):this.emit("destroyed")},t.prototype.subscribe=function(e,t,n){this.queryParams=function(e){for(var t=[],n=0,r=Object.keys(e);n":case"<":case"<=":case">=":i="number"!=typeof o[1]?"".concat(a).concat(o[0]).concat(o[1].toISOString()):"".concat(a).concat(o[0]).concat(o[1]);break;case"CONTAINS":i="".concat(a," CONTAINS '").concat(f(o[1]),"'");break;case"EXISTS":i="".concat(a," EXISTS")}else switch(typeof o){case"number":i="".concat(a,"=").concat(o);break;case"string":i="".concat(a,"='").concat(f(o),"'");break;default:i="".concat(a,"=").concat(o.toISOString())}t.push(i)}return t.join(" AND ")}(i({"tm.event":e},t)),this.callback=n},t.prototype.subscribeTx=function(e,t){this.subscribe("Tx",e,(function(e){return e.value.TxResult.txhash=(0,u.hashToHex)(e.value.TxResult.tx),t(e)}))},t}(s.EventEmitter);t.WebSocketClient=d},82100:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(94602),t),a(n(2093),t),a(n(9473),t),a(n(72035),t),a(n(76634),t)},99100:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&(o=c)),f=new u.TxBody(t.msgs,t.memo||""),d=new u.AuthInfo([],new u.Fee(0,new u.Coins)),(l=new u.Tx(f,d,[])).appendEmptySignatures(e),i&&"auto"!==i&&"0"!==i?[3,2]:[4,this.estimateGas(l,{gasAdjustment:r})];case 1:i=s.sent().toString(),s.label=2;case 2:return p=o?o.mul(i).toIntCeilCoins():this.lcd.config.isClassic?"0uusd":"0uluna",[2,new u.Fee(Number.parseInt(i),p,"","")]}}))}))},t.prototype.estimateGas=function(e,t){return o(this,void 0,void 0,(function(){var n,r,a,i;return s(this,(function(o){switch(o.label){case 0:if(n=(null==t?void 0:t.gasAdjustment)||this.lcd.config.gasAdjustment,r=e,e.signatures.length<=0){if(!(t&&t.signers&&t.signers.length>0))throw Error("cannot append signature");a=new u.AuthInfo([],new u.Fee(0,new u.Coins)),(r=new u.Tx(e.body,a,[])).appendEmptySignatures(t.signers)}return[4,this.c.post("/cosmos/tx/v1beta1/simulate",{tx_bytes:this.encode(r)}).then((function(e){return l.fromData(e)}))];case 1:return i=o.sent(),[2,new u.Dec(n).mul(i.gas_info.gas_used).toNumber()]}}))}))},t.prototype.computeTax=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){throw new Error("Tax was removed from network")}))}))},t.prototype.encode=function(e){return a.from(e.toBytes(this.lcd.config.isClassic)).toString("base64")},t.prototype.decode=function(e){return u.Tx.fromBuffer(a.from(e,"base64"),this.lcd.config.isClassic)},t.prototype.hash=function(e){return o(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,this.encode(e)];case 1:return t=n.sent(),[2,(0,f.hashToHex)(t)]}}))}))},t.prototype._broadcast=function(e,t){return o(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,this.c.post("/cosmos/tx/v1beta1/txs",{tx_bytes:this.encode(e),mode:t})];case 1:return[2,n.sent()]}}))}))},t.prototype.broadcast=function(e,t){return void 0===t&&(t=3e4),o(this,void 0,void 0,(function(){var n,r,a,i;return s(this,(function(o){switch(o.label){case 0:return n=500,[4,this._broadcast(e,"BROADCAST_MODE_SYNC")];case 1:if(null!=(r=o.sent().tx_response).code&&0!=r.code)return[2,{height:Number.parseInt(r.height),txhash:r.txhash,raw_log:r.raw_log,code:r.code,codespace:r.codespace,gas_used:0,gas_wanted:0,timestamp:"",logs:[]}];i=0,o.label=2;case 2:if(!(i<=t/n))return[3,9];o.label=3;case 3:return o.trys.push([3,5,,6]),[4,this.txInfo(r.txhash)];case 4:return a=o.sent(),[3,6];case 5:return o.sent(),[3,6];case 6:return a?[3,9]:[4,new Promise((function(e){return setTimeout(e,n)}))];case 7:o.sent(),o.label=8;case 8:return i++,[3,2];case 9:if(!a)throw new Error("Transaction was not included in a block before timeout of ".concat(t,"ms"));return[2,{txhash:a.txhash,raw_log:a.raw_log,gas_wanted:a.gas_wanted,gas_used:a.gas_used,height:+a.height,logs:(a.logs||[]).map((function(e){return d.TxLog.fromData(e)})),code:a.code,codespace:a.codespace,timestamp:a.timestamp}]}}))}))},t.prototype.broadcastBlock=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._broadcast(e,"BROADCAST_MODE_BLOCK").then((function(e){var t=e.tx_response;return{txhash:t.txhash,raw_log:t.raw_log,gas_wanted:Number.parseInt(t.gas_wanted),gas_used:Number.parseInt(t.gas_used),height:+t.height,logs:t.logs.map((function(e){return d.TxLog.fromData(e)})),code:t.code,codespace:t.codespace,data:t.data,info:t.info,timestamp:t.timestamp}}))]}))}))},t.prototype.broadcastSync=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._broadcast(e,"BROADCAST_MODE_SYNC").then((function(e){var t=e.tx_response,n={height:+t.height,txhash:t.txhash,raw_log:t.raw_log};return t.code&&(n.code=t.code),t.codespace&&(n.codespace=t.codespace),n}))]}))}))},t.prototype.broadcastAsync=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._broadcast(e,"BROADCAST_MODE_ASYNC").then((function(e){var t=e.tx_response;return{height:+t.height,txhash:t.txhash}}))]}))}))},t.prototype.search=function(e){var t;return o(this,void 0,void 0,(function(){var n,r=this;return s(this,(function(a){return n=new URLSearchParams,null===(t=e.events)||void 0===t||t.forEach((function(e){return n.append("events","tx.height"===e.key?"".concat(e.key,"=").concat(e.value):"".concat(e.key,"='").concat(e.value,"'"))})),delete e.events,Object.entries(e).forEach((function(e){n.append(e[0],e[1])})),[2,this.c.getRaw("/cosmos/tx/v1beta1/txs",n).then((function(e){return{txs:e.tx_responses.map((function(e){return u.TxInfo.fromData(e,r.lcd.config.isClassic)})),pagination:e.pagination}}))]}))}))},t}(c.BaseAPI);t.TxAPI=p},15102:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]Math.pow(2,32)-1)throw new Error("CompactBitArray overflow");return new e(t%8,r.alloc(n))},e.prototype.count=function(){return 0==this.extra_bits_stored?8*this.elems.length:8*(this.elems.length-1)+this.extra_bits_stored},e.prototype.getIndex=function(e){return!(e<0||e>=this.count())&&(this.elems.readUInt8(e>>3)&1<<7-e%8)>0},e.prototype.setIndex=function(e,t){return!(e<0||e>=this.count()||(t?this.elems[e>>3]|=1<<7-e%8:this.elems[e>>3]&=~(1<<7-e%8),0))},e.prototype.numTrueBitsBefore=function(e){var t=function(e){return e.toString(2).split("0").join("").length},n=0,r=this.count();e>r&&(e=r);for(var a=0;;a++){if(8*a+7>=e)return n+t(this.elems[a]>>7-e%8+1);n+=t(this.elems[a])}},e.fromData=function(t){return new e(t.extra_bits_stored,r.from(t.elems,"base64"))},e.prototype.toData=function(){return{elems:this.elems.toString("base64"),extra_bits_stored:this.extra_bits_stored}},e.fromProto=function(t){return new e(t.extraBitsStored,r.from(t.elems))},e.prototype.toProto=function(){return a.CompactBitArray.fromPartial({elems:this.elems,extraBitsStored:this.extra_bits_stored})},e}();t.CompactBitArray=i},54449:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9544:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Deposit=void 0;var c=n(25678),u=n(4789),f=n(91197),d=s(n(12620)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.proposal_id=t,a.depositor=n,a.amount=new c.Coins(r),a}return a(t,e),t.fromAmino=function(e){var n=e.proposal_id,r=e.depositor,a=e.amount;return new t(Number.parseInt(n),r,c.Coins.fromAmino(a))},t.prototype.toAmino=function(){var e=this,t=e.proposal_id,n=e.depositor,r=e.amount;return{proposal_id:t.toString(),depositor:n,amount:r.toAmino()}},t.fromData=function(e){var n=e.proposal_id,r=e.depositor,a=e.amount;return new t(Number.parseInt(n),r,c.Coins.fromData(a))},t.prototype.toData=function(){var e=this,t=e.proposal_id,n=e.depositor,r=e.amount;return{proposal_id:t.toString(),depositor:n,amount:r.toData()}},t.fromProto=function(e){return new t(e.proposalId.toNumber(),e.depositor,c.Coins.fromProto(e.amount))},t.prototype.toProto=function(){var e=this,t=e.proposal_id,n=e.depositor,r=e.amount;return f.Deposit.fromPartial({proposalId:d.fromNumber(t),depositor:n,amount:r.toProto()})},t}(u.JSONSerializable);t.Deposit=l},30084:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Fee=void 0;var c=n(4789),u=n(25678),f=n(78277),d=n(62875),l=s(n(12620)),p=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.gas_limit=t,i.payer=r,i.granter=a,i.amount=new u.Coins(n),i}return a(t,e),t.fromAmino=function(e){var n=e.gas,r=e.amount;return new t(Number.parseInt(n),u.Coins.fromAmino(r),"","")},t.prototype.toAmino=function(){return{gas:new f.Int(this.gas_limit).toString(),amount:this.amount.toAmino()}},t.fromData=function(e){return new t(Number.parseInt(e.gas_limit),u.Coins.fromData(e.amount),e.payer,e.granter)},t.prototype.toData=function(){var e=this,t=e.amount,n=e.gas_limit,r=e.payer,a=e.granter;return{amount:t.toData(),gas_limit:n.toFixed(),granter:null!=a?a:"",payer:null!=r?r:""}},t.fromProto=function(e){return new t(e.gasLimit.toNumber(),u.Coins.fromProto(e.amount),e.payer,e.granter)},t.prototype.toProto=function(){var e=this,t=e.amount,n=e.gas_limit,r=e.payer,a=e.granter;return d.Fee.fromPartial({amount:t.toProto(),gasLimit:l.fromNumber(n),granter:a,payer:r})},t.prototype.gasPrices=function(){return this.amount.toDecCoins().div(this.gas_limit)},t}(c.JSONSerializable);t.Fee=p},77297:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Msg=void 0;var r,a=n(17070),i=n(77398),o=n(24906),s=n(97985),c=n(49494),u=n(15782),f=n(97257),d=n(27679),l=n(49293),p=n(55456),b=n(41069),h=n(96096),y=n(1027),m=n(80672),v=n(70907),g=n(97501);(r=t.Msg||(t.Msg={})).fromAmino=function(e,t){switch(e.type){case"bank/MsgSend":case"cosmos-sdk/MsgSend":return a.MsgSend.fromAmino(e,t);case"bank/MsgMultiSend":case"cosmos-sdk/MsgMultiSend":return a.MsgMultiSend.fromAmino(e,t);case"distribution/MsgModifyWithdrawAddress":case"cosmos-sdk/MsgModifyWithdrawAddress":return i.MsgSetWithdrawAddress.fromAmino(e,t);case"distribution/MsgWithdrawDelegationReward":case"cosmos-sdk/MsgWithdrawDelegationReward":return i.MsgWithdrawDelegatorReward.fromAmino(e,t);case"distribution/MsgWithdrawValidatorCommission":case"cosmos-sdk/MsgWithdrawValidatorCommission":return i.MsgWithdrawValidatorCommission.fromAmino(e,t);case"distribution/MsgFundCommunityPool":case"cosmos-sdk/MsgFundCommunityPool":return i.MsgFundCommunityPool.fromAmino(e,t);case"feegrant/MsgGrantAllowance":case"cosmos-sdk/MsgGrantAllowance":return o.MsgGrantAllowance.fromAmino(e,t);case"feegrant/MsgRevokeAllowance":case"cosmos-sdk/MsgRevokeAllowance":return o.MsgRevokeAllowance.fromAmino(e,t);case"gov/MsgDeposit":case"cosmos-sdk/MsgDeposit":return s.MsgDeposit.fromAmino(e,t);case"gov/MsgSubmitProposal":case"cosmos-sdk/MsgSubmitProposal":return s.MsgSubmitProposal.fromAmino(e,t);case"gov/MsgVote":case"cosmos-sdk/MsgVote":return s.MsgVote.fromAmino(e,t);case"gov/MsgVoteWeighted":case"cosmos-sdk/MsgVoteWeighted":return s.MsgVoteWeighted.fromAmino(e,t);case"market/MsgSwap":return c.MsgSwap.fromAmino(e,t);case"market/MsgSwapSend":return c.MsgSwapSend.fromAmino(e,t);case"msgauth/MsgGrantAuthorization":case"cosmos-sdk/MsgGrant":return u.MsgGrantAuthorization.fromAmino(e,t);case"msgauth/MsgRevokeAuthorization":case"cosmos-sdk/MsgRevoke":return u.MsgRevokeAuthorization.fromAmino(e,t);case"msgauth/MsgExecAuthorized":case"cosmos-sdk/MsgExec":return u.MsgExecAuthorized.fromAmino(e,t);case"oracle/MsgDelegateFeedConsent":return f.MsgDelegateFeedConsent.fromAmino(e,t);case"oracle/MsgAggregateExchangeRatePrevote":return f.MsgAggregateExchangeRatePrevote.fromAmino(e,t);case"oracle/MsgAggregateExchangeRateVote":return f.MsgAggregateExchangeRateVote.fromAmino(e,t);case"slashing/MsgUnjail":case"cosmos-sdk/MsgUnjail":return d.MsgUnjail.fromAmino(e,t);case"staking/MsgDelegate":case"cosmos-sdk/MsgDelegate":return l.MsgDelegate.fromAmino(e,t);case"staking/MsgUndelegate":case"cosmos-sdk/MsgUndelegate":return l.MsgUndelegate.fromAmino(e,t);case"staking/MsgBeginRedelegate":case"cosmos-sdk/MsgBeginRedelegate":return l.MsgBeginRedelegate.fromAmino(e,t);case"staking/MsgCreateValidator":case"cosmos-sdk/MsgCreateValidator":return l.MsgCreateValidator.fromAmino(e,t);case"staking/MsgEditValidator":case"cosmos-sdk/MsgEditValidator":return l.MsgEditValidator.fromAmino(e,t);case"cosmos-sdk/MsgCreatePeriodicVestingAccount":return p.MsgCreatePeriodicVestingAccount.fromAmino(e,t);case"cosmos-sdk/MsgCreateVestingAccount":return p.MsgCreateVestingAccount.fromAmino(e,t);case"cosmos-sdk/MsgDonateAllVestingTokens":return p.MsgDonateAllVestingTokens.fromAmino(e,t);case"wasm/MsgStoreCode":return b.MsgStoreCode.fromAmino(e,t);case"wasm/MsgMigrateCode":return b.MsgMigrateCode.fromAmino(e,t);case"wasm/MsgInstantiateContract":return b.MsgInstantiateContract.fromAmino(e,t);case"wasm/MsgExecuteContract":return b.MsgExecuteContract.fromAmino(e,t);case"wasm/MsgMigrateContract":return b.MsgMigrateContract.fromAmino(e,t);case"wasm/MsgUpdateContractAdmin":case"wasm/MsgUpdateAdmin":return b.MsgUpdateContractAdmin.fromAmino(e,t);case"wasm/MsgClearContractAdmin":case"wasm/MsgClearAdmin":return b.MsgClearContractAdmin.fromAmino(e,t);case"cosmos-sdk/MsgTransfer":return h.MsgTransfer.fromAmino(e,t);case"crisis/MsgVerifyInvariant":case"cosmos-sdk/MsgVerifyInvariant":return g.MsgVerifyInvariant.fromAmino(e,t)}},r.fromData=function(e,t){switch(e["@type"]){case"/cosmos.bank.v1beta1.MsgSend":return a.MsgSend.fromData(e,t);case"/cosmos.bank.v1beta1.MsgMultiSend":return a.MsgMultiSend.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress":return i.MsgSetWithdrawAddress.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward":return i.MsgWithdrawDelegatorReward.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission":return i.MsgWithdrawValidatorCommission.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgFundCommunityPool":return i.MsgFundCommunityPool.fromData(e,t);case"/cosmos.feegrant.v1beta1.MsgGrantAllowance":return o.MsgGrantAllowance.fromData(e,t);case"/cosmos.feegrant.v1beta1.MsgRevokeAllowance":return o.MsgRevokeAllowance.fromData(e,t);case"/cosmos.gov.v1beta1.MsgDeposit":return s.MsgDeposit.fromData(e,t);case"/cosmos.gov.v1beta1.MsgSubmitProposal":return s.MsgSubmitProposal.fromData(e,t);case"/cosmos.gov.v1beta1.MsgVote":return s.MsgVote.fromData(e,t);case"/cosmos.gov.v1beta1.MsgVoteWeighted":return s.MsgVoteWeighted.fromData(e,t);case"/terra.market.v1beta1.MsgSwap":return c.MsgSwap.fromData(e,t);case"/terra.market.v1beta1.MsgSwapSend":return c.MsgSwapSend.fromData(e,t);case"/cosmos.authz.v1beta1.MsgGrant":return u.MsgGrantAuthorization.fromData(e,t);case"/cosmos.authz.v1beta1.MsgRevoke":return u.MsgRevokeAuthorization.fromData(e,t);case"/cosmos.authz.v1beta1.MsgExec":return u.MsgExecAuthorized.fromData(e,t);case"/terra.oracle.v1beta1.MsgDelegateFeedConsent":return f.MsgDelegateFeedConsent.fromData(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote":return f.MsgAggregateExchangeRatePrevote.fromData(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote":return f.MsgAggregateExchangeRateVote.fromData(e,t);case"/cosmos.slashing.v1beta1.MsgUnjail":return d.MsgUnjail.fromData(e,t);case"/cosmos.staking.v1beta1.MsgDelegate":return l.MsgDelegate.fromData(e,t);case"/cosmos.staking.v1beta1.MsgUndelegate":return l.MsgUndelegate.fromData(e,t);case"/cosmos.staking.v1beta1.MsgBeginRedelegate":return l.MsgBeginRedelegate.fromData(e,t);case"/cosmos.staking.v1beta1.MsgCreateValidator":return l.MsgCreateValidator.fromData(e,t);case"/cosmos.staking.v1beta1.MsgEditValidator":return l.MsgEditValidator.fromData(e,t);case"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount":return p.MsgCreatePeriodicVestingAccount.fromData(e,t);case"/cosmos.vesting.v1beta1.MsgCreateVestingAccount":return p.MsgCreateVestingAccount.fromData(e,t);case"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens":return p.MsgDonateAllVestingTokens.fromData(e,t);case"/terra.wasm.v1beta1.MsgStoreCode":case"/cosmwasm.wasm.v1.MsgStoreCode":return b.MsgStoreCode.fromData(e,t);case"/terra.wasm.v1beta1.MsgMigrateCode":return b.MsgMigrateCode.fromData(e,t);case"/terra.wasm.v1beta1.MsgInstantiateContract":case"/cosmwasm.wasm.v1.MsgInstantiateContract":return b.MsgInstantiateContract.fromData(e,t);case"/terra.wasm.v1beta1.MsgExecuteContract":case"/cosmwasm.wasm.v1.MsgExecuteContract":return b.MsgExecuteContract.fromData(e,t);case"/terra.wasm.v1beta1.MsgMigrateContract":case"/cosmwasm.wasm.v1.MsgMigrateContract":return b.MsgMigrateContract.fromData(e,t);case"/terra.wasm.v1beta1.MsgUpdateContractAdmin":case"/cosmwasm.wasm.v1.MsgUpdateAdmin":return b.MsgUpdateContractAdmin.fromData(e,t);case"/terra.wasm.v1beta1.MsgClearContractAdmin":case"/cosmwasm.wasm.v1.MsgClearAdmin":return b.MsgClearContractAdmin.fromData(e,t);case"/ibc.applications.transfer.v1.MsgTransfer":return h.MsgTransfer.fromData(e,t);case"/ibc.core.client.v1.MsgCreateClient":return y.MsgCreateClient.fromData(e,t);case"/ibc.core.client.v1.MsgUpdateClient":return y.MsgUpdateClient.fromData(e,t);case"/ibc.core.client.v1.MsgUpgradeClient":return y.MsgUpgradeClient.fromData(e,t);case"/ibc.core.client.v1.MsgSubmitMisbehaviour":return y.MsgSubmitMisbehaviour.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenInit":return m.MsgConnectionOpenInit.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenTry":return m.MsgConnectionOpenTry.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenConfirm":return m.MsgConnectionOpenConfirm.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenAck":return m.MsgConnectionOpenAck.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenInit":return v.MsgChannelOpenInit.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenTry":return v.MsgChannelOpenTry.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenConfirm":return v.MsgChannelOpenConfirm.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenAck":return v.MsgChannelOpenAck.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelCloseInit":return v.MsgChannelCloseInit.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelCloseConfirm":return v.MsgChannelCloseConfirm.fromData(e,t);case"/ibc.core.channel.v1.MsgRecvPacket":return v.MsgRecvPacket.fromData(e,t);case"/ibc.core.channel.v1.MsgAcknowledgement":return v.MsgAcknowledgement.fromData(e,t);case"/ibc.core.channel.v1.MsgTimeout":return v.MsgTimeout.fromData(e,t);case"/ibc.core.channel.v1.MsgTimeoutOnClose":return v.MsgTimeoutOnClose.fromData(e,t);case"/cosmos.crisis.v1beta1.MsgVerifyInvariant":return g.MsgVerifyInvariant.fromData(e,t);default:throw Error("not supported msg ".concat(e["@type"]))}},r.fromProto=function(e,t){switch(e.typeUrl){case"/cosmos.bank.v1beta1.MsgSend":return a.MsgSend.unpackAny(e,t);case"/cosmos.bank.v1beta1.MsgMultiSend":return a.MsgMultiSend.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress":return i.MsgSetWithdrawAddress.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward":return i.MsgWithdrawDelegatorReward.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission":return i.MsgWithdrawValidatorCommission.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgFundCommunityPool":return i.MsgFundCommunityPool.unpackAny(e,t);case"/cosmos.feegrant.v1beta1.MsgGrantAllowance":return o.MsgGrantAllowance.unpackAny(e,t);case"/cosmos.feegrant.v1beta1.MsgRevokeAllowance":return o.MsgRevokeAllowance.unpackAny(e,t);case"/cosmos.gov.v1beta1.MsgDeposit":return s.MsgDeposit.unpackAny(e,t);case"/cosmos.gov.v1beta1.MsgSubmitProposal":return s.MsgSubmitProposal.unpackAny(e,t);case"/cosmos.gov.v1beta1.MsgVote":return s.MsgVote.unpackAny(e,t);case"/terra.market.v1beta1.MsgSwap":return c.MsgSwap.unpackAny(e,t);case"/terra.market.v1beta1.MsgSwapSend":return c.MsgSwapSend.unpackAny(e,t);case"/cosmos.authz.v1beta1.MsgGrant":return u.MsgGrantAuthorization.unpackAny(e,t);case"/cosmos.authz.v1beta1.MsgRevoke":return u.MsgRevokeAuthorization.unpackAny(e,t);case"/cosmos.authz.v1beta1.MsgExec":return u.MsgExecAuthorized.unpackAny(e,t);case"/terra.oracle.v1beta1.MsgDelegateFeedConsent":return f.MsgDelegateFeedConsent.unpackAny(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote":return f.MsgAggregateExchangeRatePrevote.unpackAny(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote":return f.MsgAggregateExchangeRateVote.unpackAny(e,t);case"/cosmos.slashing.v1beta1.MsgUnjail":return d.MsgUnjail.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgDelegate":return l.MsgDelegate.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgUndelegate":return l.MsgUndelegate.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgBeginRedelegate":return l.MsgBeginRedelegate.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgCreateValidator":return l.MsgCreateValidator.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgEditValidator":return l.MsgEditValidator.unpackAny(e,t);case"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount":return p.MsgCreatePeriodicVestingAccount.unpackAny(e,t);case"/cosmos.vesting.v1beta1.MsgCreateVestingAccount":return p.MsgCreateVestingAccount.unpackAny(e,t);case"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens":return p.MsgDonateAllVestingTokens.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgStoreCode":case"/cosmwasm.wasm.v1.MsgStoreCode":return b.MsgStoreCode.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgMigrateCode":return b.MsgMigrateCode.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgInstantiateContract":case"/cosmwasm.wasm.v1.MsgInstantiateContract":return b.MsgInstantiateContract.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgExecuteContract":case"/cosmwasm.wasm.v1.MsgExecuteContract":return b.MsgExecuteContract.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgMigrateContract":case"/cosmwasm.wasm.v1beta1.MsgMigrateContract":return b.MsgMigrateContract.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgUpdateContractAdmin":case"/cosmwasm.wasm.v1beta1.MsgUpdateAdmin":return b.MsgUpdateContractAdmin.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgClearContractAdmin":case"/cosmwasm.wasm.v1.MsgClearAdmin":return b.MsgClearContractAdmin.unpackAny(e,t);case"/ibc.applications.transfer.v1.MsgTransfer":return h.MsgTransfer.unpackAny(e,t);case"/ibc.core.client.v1.MsgCreateClient":return y.MsgCreateClient.unpackAny(e,t);case"/ibc.core.client.v1.MsgUpdateClient":return y.MsgUpdateClient.unpackAny(e,t);case"/ibc.core.client.v1.MsgUpgradeClient":return y.MsgUpgradeClient.unpackAny(e,t);case"/ibc.core.client.v1.MsgSubmitMisbehaviour":return y.MsgSubmitMisbehaviour.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenInit":return m.MsgConnectionOpenInit.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenTry":return m.MsgConnectionOpenTry.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenConfirm":return m.MsgConnectionOpenConfirm.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenAck":return m.MsgConnectionOpenAck.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenInit":return v.MsgChannelOpenInit.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenTry":return v.MsgChannelOpenTry.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenConfirm":return v.MsgChannelOpenConfirm.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenAck":return v.MsgChannelOpenAck.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelCloseInit":return v.MsgChannelCloseInit.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelCloseConfirm":return v.MsgChannelCloseConfirm.unpackAny(e,t);case"/ibc.core.channel.v1.MsgRecvPacket":return v.MsgRecvPacket.unpackAny(e,t);case"/ibc.core.channel.v1.MsgAcknowledgement":return v.MsgAcknowledgement.unpackAny(e,t);case"/ibc.core.channel.v1.MsgTimeout":return v.MsgTimeout.unpackAny(e,t);case"/ibc.core.channel.v1.MsgTimeoutOnClose":return v.MsgTimeoutOnClose.unpackAny(e,t);case"/cosmos.crisis.v1beta1.MsgVerifyInvariant":return g.MsgVerifyInvariant.unpackAny(e,t);default:throw Error("not supported msg ".concat(e.typeUrl))}}},60291:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSignature=void 0;var r=n(49725),a=n(82242),i=n(92565),o=function(){function e(e){this.multisig_pubkey=e;var t=e.pubkeys.length;this.bitarray=a.CompactBitArray.fromBits(t),this.signatures=[]}return e.prototype.appendSignature=function(e,t){var n=this.bitarray.numTrueBitsBefore(t);this.bitarray.getIndex(t)?this.signatures[n]=e:(this.bitarray.setIndex(t,!0),n!=this.signatures.length?this.signatures.splice(n,0,e):this.signatures.push(e))},e.prototype.appendSignatureFromPubKey=function(e,t){var n=this.multisig_pubkey.pubkeys.findIndex((function(e){return e.key===t.key}));if(-1==n)throw new Error("provided key doesn't exist in public_keys");this.appendSignature(e,n)},e.prototype.appendSignatureV2s=function(e){for(var t=0,n=e;t127)throw new Error("Encoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.PutUvarint implementation from the Go standard library and write some tests.");return[t]};(o=t.PublicKey||(t.PublicKey={})).fromAmino=function(e){switch(e.type){case"tendermint/PubKeySecp256k1":return v.fromAmino(e);case"tendermint/PubKeyMultisigThreshold":return g.fromAmino(e);case"tendermint/PubKeyEd25519":return A.fromAmino(e)}},o.fromData=function(e){switch(e["@type"]){case"/cosmos.crypto.secp256k1.PubKey":return v.fromData(e);case"/cosmos.crypto.multisig.LegacyAminoPubKey":return g.fromData(e);case"/cosmos.crypto.ed25519.PubKey":return A.fromData(e)}},o.fromProto=function(e){var t=e.typeUrl;if("/cosmos.crypto.secp256k1.PubKey"===t)return v.unpackAny(e);if("/cosmos.crypto.multisig.LegacyAminoPubKey"===t)return g.unpackAny(e);if("/cosmos.crypto.ed25519.PubKey"===t)return A.unpackAny(e);throw new Error("Pubkey type ".concat(t," not recognized"))};var v=function(e){function t(t){var n=e.call(this)||this;return n.key=t,n}return i(t,e),t.fromAmino=function(e){return new t(e.value)},t.prototype.toAmino=function(){return{type:"tendermint/PubKeySecp256k1",value:this.key}},t.fromData=function(e){return new t(e.key)},t.prototype.toData=function(){return{"@type":"/cosmos.crypto.secp256k1.PubKey",key:this.key}},t.fromProto=function(e){return new t(a.from(e.key).toString("base64"))},t.prototype.toProto=function(){return d.PubKey.fromPartial({key:a.from(this.key,"base64")})},t.prototype.packAny=function(){return f.Any.fromPartial({typeUrl:"/cosmos.crypto.secp256k1.PubKey",value:d.PubKey.encode(this.toProto()).finish()})},t.unpackAny=function(e){return t.fromProto(d.PubKey.decode(e.value))},t.prototype.encodeAminoPubkey=function(){return a.concat([b,a.from(this.key,"base64")])},t.prototype.rawAddress=function(){var e=a.from(this.key,"base64");return(0,c.ripemd160)((0,c.sha256)(e))},t.prototype.address=function(){return p.bech32.encode("terra",p.bech32.toWords(this.rawAddress()))},t.prototype.pubkeyAddress=function(){return p.bech32.encode("terrapub",p.bech32.toWords(this.encodeAminoPubkey()))},t}(s.JSONSerializable);t.SimplePublicKey=v;var g=function(e){function t(t,n){var r=e.call(this)||this;return r.threshold=t,r.pubkeys=n,r}return i(t,e),t.prototype.encodeAminoPubkey=function(){var e=Array.from(y);e.push(8),e.push.apply(e,m(this.threshold));for(var t=0,n=this.pubkeys.map((function(e){return e.encodeAminoPubkey()}));t0?e.toFixed():void 0,revision_height:t>0?t.toFixed():void 0}},t.fromData=function(e){var n=e.revision_number,r=e.revision_height;return new t(Number.parseInt(n),Number.parseInt(r))},t.prototype.toData=function(){var e=this.revision_number,t=this.revision_height;return{revision_number:e.toFixed(),revision_height:t.toFixed()}},t.fromProto=function(e){return new t(e.revisionNumber.toNumber(),e.revisionHeight.toNumber())},t.prototype.toProto=function(){var e=this.revision_number,t=this.revision_height;return c.Height.fromPartial({revisionNumber:u.fromNumber(e),revisionHeight:u.fromNumber(t)})},t}(n(4789).JSONSerializable);t.Height=f},76567:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifiedClientState=void 0;var i=n(39163),o=function(e){function t(t,n){var r=e.call(this)||this;return r.client_id=t,r.client_state=n,r}return a(t,e),t.fromAmino=function(e){return new t(e.client_id,e.client_state)},t.prototype.toAmino=function(){return{client_id:this.client_id,client_state:this.client_state}},t.fromData=function(e){return new t(e.client_id,e.client_state)},t.prototype.toData=function(){return{client_id:this.client_id,client_state:this.client_state}},t.fromProto=function(e){return new t(e.clientId,e.clientState)},t.prototype.toProto=function(){var e=this.client_id,t=this.client_state;return i.IdentifiedClientState.fromPartial({clientId:e,clientState:t})},t}(n(4789).JSONSerializable);t.IdentifiedClientState=o},26860:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MerklePrefix=void 0;var o=n(14697),s=function(e){function t(t){var n=e.call(this)||this;return n.key_prefix=t,n}return i(t,e),t.fromAmino=function(e){return new t(e.key_prefix)},t.prototype.toAmino=function(){return{key_prefix:this.key_prefix}},t.fromData=function(e){return new t(e.key_prefix)},t.prototype.toData=function(){return{key_prefix:this.key_prefix}},t.fromProto=function(e){return new t(a.from(e.keyPrefix).toString("base64"))},t.prototype.toProto=function(){var e=this.key_prefix;return o.MerklePrefix.fromPartial({keyPrefix:a.from(e,"base64")})},t}(n(4789).JSONSerializable);t.MerklePrefix=s},83115:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Counterparty=void 0;var i=n(73956),o=n(4789),s=n(26860),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_id=t,a.connection_id=n,a.prefix=r,a}return a(t,e),t.fromAmino=function(e){var n=e.client_id,r=e.connection_id,a=e.prefix;return new t(n,r,a?s.MerklePrefix.fromAmino(a):void 0)},t.prototype.toAmino=function(){var e=this;return{client_id:e.client_id,connection_id:e.connection_id,prefix:e.prefix}},t.fromData=function(e){var n=e.client_id,r=e.connection_id,a=e.prefix;return new t(n,r,a?s.MerklePrefix.fromData(a):void 0)},t.prototype.toData=function(){var e=this,t=e.client_id,n=e.connection_id,r=e.prefix;return{client_id:t,connection_id:n,prefix:r?r.toData():void 0}},t.fromProto=function(e){return new t(e.clientId,e.connectionId,e.prefix?s.MerklePrefix.fromProto(e.prefix):void 0)},t.prototype.toProto=function(){var e=this,t=e.client_id,n=e.connection_id,r=e.prefix;return i.Counterparty.fromPartial({clientId:t,connectionId:n,prefix:r?r.toProto():void 0})},t}(o.JSONSerializable);t.Counterparty=c},91960:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifiedConnection=t.stateToJSON=t.stateFromJSON=t.State=void 0;var o=n(73956),s=n(4789),c=n(36907),u=n(73956);Object.defineProperty(t,"State",{enumerable:!0,get:function(){return u.State}}),Object.defineProperty(t,"stateFromJSON",{enumerable:!0,get:function(){return u.stateFromJSON}}),Object.defineProperty(t,"stateToJSON",{enumerable:!0,get:function(){return u.stateToJSON}});var f=n(83115),d=i(n(12620)),l=function(e){function t(t,n,r,a,i,o){var s=e.call(this)||this;return s.id=t,s.client_id=n,s.versions=r,s.state=a,s.counterparty=i,s.delay_period=o,s}return a(t,e),t.fromAmino=function(e){var n=e.id,r=e.client_id,a=e.versions,i=e.state,o=e.counterparty,s=e.delay_period;return new t(n,r,a.map(c.Version.fromAmino),(0,u.stateFromJSON)(i),o?f.Counterparty.fromAmino(o):void 0,Number.parseInt(s))},t.prototype.toAmino=function(){var e=this,t=e.id,n=e.client_id,r=e.versions,a=e.state,i=e.counterparty,o=e.delay_period;return{id:t,client_id:n,versions:r.map((function(e){return e.toAmino()})),state:(0,u.stateToJSON)(a),counterparty:null==i?void 0:i.toAmino(),delay_period:o.toFixed()}},t.fromData=function(e){var n=e.id,r=e.client_id,a=e.versions,i=e.state,o=e.counterparty,s=e.delay_period;return new t(n,r,a.map(c.Version.fromData),(0,u.stateFromJSON)(i),o?f.Counterparty.fromData(o):void 0,Number.parseInt(s))},t.prototype.toData=function(){var e=this,t=e.id,n=e.client_id,r=e.versions,a=e.state,i=e.counterparty,o=e.delay_period;return{id:t,client_id:n,versions:r.map((function(e){return e.toData()})),state:(0,u.stateToJSON)(a),counterparty:null==i?void 0:i.toData(),delay_period:o.toFixed()}},t.fromProto=function(e){return new t(e.id,e.clientId,e.versions.map(c.Version.fromProto),e.state,e.counterparty?f.Counterparty.fromProto(e.counterparty):void 0,e.delayPeriod.toNumber())},t.prototype.toProto=function(){var e=this,t=e.id,n=e.client_id,r=e.versions,a=e.state,i=e.counterparty,s=e.delay_period;return o.IdentifiedConnection.fromPartial({id:t,clientId:n,versions:r.map((function(e){return e.toProto()})),state:a,counterparty:null==i?void 0:i.toProto(),delayPeriod:d.default.fromNumber(s)})},t}(s.JSONSerializable);t.IdentifiedConnection=l},36907:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Version=void 0;var i=n(73956),o=function(e){function t(t,n){var r=e.call(this)||this;return r.identifier=t,r.features=n,r}return a(t,e),t.fromAmino=function(e){return new t(e.identifier,e.features)},t.prototype.toAmino=function(){return{identifier:this.identifier,features:this.features}},t.fromData=function(e){return new t(e.identifier,e.features)},t.prototype.toData=function(){return{identifier:this.identifier,features:this.features}},t.fromProto=function(e){return new t(e.identifier,e.features)},t.prototype.toProto=function(){var e=this.identifier,t=this.features;return i.Version.fromPartial({identifier:e,features:t})},t}(n(4789).JSONSerializable);t.Version=o},84932:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(83115),t),a(n(36907),t),a(n(91960),t)},82338:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Header=void 0;var i=n(4789),o=n(21047),s=n(14475),c=n(37025),u=n(81019),f=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.signedHeader=t,i.validatorSet=n,i.trustedHeight=r,i.trustedValidators=a,i}return a(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.signed_header,r=e.validator_set,a=e.trusted_height,i=e.trusted_validators;return new t(n?c.SignedHeader.fromData(n):void 0,r?c.ValidatorSet.fromData(r):void 0,a?s.Height.fromData(a):void 0,i?c.ValidatorSet.fromData(i):void 0)},t.prototype.toData=function(){var e=this,t=e.signedHeader,n=e.validatorSet,r=e.trustedHeight,a=e.trustedValidators;return{signed_header:(null==t?void 0:t.toData())||void 0,validator_set:(null==n?void 0:n.toData())||void 0,trusted_height:(null==r?void 0:r.toData())||void 0,trusted_validators:(null==a?void 0:a.toData())||void 0}},t.fromProto=function(e){var n=e.signedHeader,r=e.validatorSet,a=e.trustedHeight,i=e.trustedValidators;return new t(n?c.SignedHeader.fromProto(n):void 0,r?c.ValidatorSet.fromProto(r):void 0,a?s.Height.fromProto(a):void 0,i?c.ValidatorSet.fromProto(i):void 0)},t.prototype.toProto=function(){var e=this,t=e.signedHeader,n=e.validatorSet,r=e.trustedHeight,a=e.trustedValidators;return o.Header.fromPartial({signedHeader:(null==t?void 0:t.toProto())||void 0,validatorSet:(null==n?void 0:n.toProto())||void 0,trustedHeight:(null==r?void 0:r.toProto())||void 0,trustedValidators:(null==a?void 0:a.toProto())||void 0})},t.prototype.packAny=function(){return u.Any.fromPartial({typeUrl:"ibc.lightclients.tendermint.v1.Header",value:o.Header.encode(this.toProto()).finish()})},t.unpackAny=function(e){return t.fromProto(o.Header.decode(e.value))},t}(i.JSONSerializable);t.Header=f},19182:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelCloseConfirm=void 0;var o=n(4789),s=n(81019),c=n(14475),u=n(43316),f=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.port_id=t,o.channel_id=n,o.proof_init=r,o.proof_height=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel_id,i=e.proof_init,o=e.proof_height,s=e.signer;return new t(r,a,i,o?c.Height.fromData(o):void 0,s)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.proof_init,i=t.proof_height,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelCloseConfirm",port_id:n,channel_id:r,proof_init:a,proof_height:i?i.toData():void 0,signer:o}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,a.from(e.proofInit).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,i=t.proof_init,o=t.proof_height,s=t.signer;return u.MsgChannelCloseConfirm.fromPartial({portId:n,channelId:r,proofInit:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,signer:s})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelCloseConfirm",value:u.MsgChannelCloseConfirm.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgChannelCloseConfirm.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelCloseConfirm=f},6487:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelCloseInit=void 0;var i=n(4789),o=n(81019),s=n(43316),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.port_id=t,a.channel_id=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.port_id,e.channel_id,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.channel.v1.MsgChannelCloseInit",port_id:t.port_id,channel_id:t.channel_id,signer:t.signer}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.signer;return s.MsgChannelCloseInit.fromPartial({portId:n,channelId:r,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelCloseInit",value:s.MsgChannelCloseInit.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgChannelCloseInit.decode(e.value))},t}(i.JSONSerializable);t.MsgChannelCloseInit=c},73394:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenAck=void 0;var o=n(4789),s=n(81019),c=n(14475),u=n(43316),f=function(e){function t(t,n,r,a,i,o,s){var c=e.call(this)||this;return c.port_id=t,c.channel_id=n,c.counterparty_channel_id=r,c.counterparty_version=a,c.proof_try=i,c.proof_height=o,c.signer=s,c}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel_id,i=e.counterparty_channel_id,o=e.counterparty_version,s=e.proof_try,u=e.proof_height,f=e.signer;return new t(r,a,i,o,s,u?c.Height.fromData(u):void 0,f)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.counterparty_channel_id,i=t.counterparty_version,o=t.proof_try,s=t.proof_height,c=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenAck",port_id:n,channel_id:r,counterparty_channel_id:a,counterparty_version:i,proof_try:o,proof_height:s?s.toData():void 0,signer:c}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,e.counterpartyChannelId,e.counterpartyVersion,a.from(e.proofTry).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,i=t.counterparty_channel_id,o=t.counterparty_version,s=t.proof_try,c=t.proof_height,f=t.signer;return u.MsgChannelOpenAck.fromPartial({portId:n,channelId:r,counterpartyChannelId:i,counterpartyVersion:o,proofTry:a.from(s,"base64"),proofHeight:c?c.toProto():void 0,signer:f})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenAck",value:u.MsgChannelOpenAck.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgChannelOpenAck.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelOpenAck=f},25028:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenConfirm=void 0;var o=n(4789),s=n(81019),c=n(14475),u=n(43316),f=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.port_id=t,o.channel_id=n,o.proof_ack=r,o.proof_height=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel_id,i=e.proof_ack,o=e.proof_height,s=e.signer;return new t(r,a,i,o?c.Height.fromData(o):void 0,s)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.proof_ack,i=t.proof_height,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenConfirm",port_id:n,channel_id:r,proof_ack:a,proof_height:i?i.toData():void 0,signer:o}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,a.from(e.proofAck).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,i=t.proof_ack,o=t.proof_height,s=t.signer;return u.MsgChannelOpenConfirm.fromPartial({portId:n,channelId:r,proofAck:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,signer:s})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenConfirm",value:u.MsgChannelOpenConfirm.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgChannelOpenConfirm.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelOpenConfirm=f},40635:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenInit=void 0;var i=n(4789),o=n(81019),s=n(85633),c=n(43316),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.port_id=t,a.channel=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel,i=e.signer;return new t(r,a?s.Channel.fromData(a):void 0,i)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel,a=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenInit",port_id:n,channel:r?r.toData():void 0,signer:a}},t.fromProto=function(e,n){return new t(e.portId,e.channel?s.Channel.fromProto(e.channel):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel,a=t.signer;return c.MsgChannelOpenInit.fromPartial({portId:n,channel:r?r.toProto():void 0,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenInit",value:c.MsgChannelOpenInit.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgChannelOpenInit.decode(e.value))},t}(i.JSONSerializable);t.MsgChannelOpenInit=u},21391:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenTry=void 0;var o=n(4789),s=n(81019),c=n(85633),u=n(14475),f=n(43316),d=function(e){function t(t,n,r,a,i,o,s){var c=e.call(this)||this;return c.port_id=t,c.previous_channel_id=n,c.channel=r,c.counterparty_version=a,c.proof_init=i,c.proof_height=o,c.signer=s,c}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.previous_channel_id,i=e.channel,o=e.counterparty_version,s=e.proof_init,f=e.proof_height,d=e.signer;return new t(r,a,i?c.Channel.fromData(i):void 0,o,s,f?u.Height.fromData(f):void 0,d)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.previous_channel_id,a=t.channel,i=t.counterparty_version,o=t.proof_init,s=t.proof_height,c=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenTry",port_id:n,previous_channel_id:r,channel:a?a.toData():void 0,counterparty_version:i,proof_init:o,proof_height:s?s.toData():void 0,signer:c}},t.fromProto=function(e,n){return new t(e.portId,e.previousChannelId,e.channel?c.Channel.fromProto(e.channel):void 0,e.counterpartyVersion,a.from(e.proofInit).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.previous_channel_id,i=t.channel,o=t.counterparty_version,s=t.proof_init,c=t.proof_height,u=t.signer;return f.MsgChannelOpenTry.fromPartial({portId:n,previousChannelId:r,channel:i?i.toProto():void 0,counterpartyVersion:o,proofInit:a.from(s,"base64"),proofHeight:c?c.toProto():void 0,signer:u})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenTry",value:f.MsgChannelOpenTry.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgChannelOpenTry.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelOpenTry=d},87157:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgAcknowledgement=void 0;var o=n(4789),s=n(81019),c=n(14475),u=n(3439),f=n(43316),d=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.packet=t,o.acknowledgement=n,o.proof_acked=r,o.proof_height=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.acknowledgement,i=e.proof_acked,o=e.proof_height,s=e.signer;return new t(r?u.Packet.fromData(r):void 0,i,a,o?c.Height.fromData(o):void 0,s)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.acknowledgement,a=t.proof_acked,i=t.proof_height,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgAcknowledgement",packet:n?n.toData():void 0,acknowledgement:r,proof_acked:a,proof_height:i?i.toData():void 0,signer:o}},t.fromProto=function(e,n){return new t(e.packet?u.Packet.fromProto(e.packet):void 0,a.from(e.acknowledgement).toString("base64"),a.from(e.proofAcked).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.acknowledgement,i=t.proof_acked,o=t.proof_height,s=t.signer;return f.MsgAcknowledgement.fromPartial({packet:n?n.toProto():void 0,acknowledgement:a.from(r,"base64"),proofAcked:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,signer:s})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgAcknowledgement",value:f.MsgAcknowledgement.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgAcknowledgement.decode(e.value))},t}(o.JSONSerializable);t.MsgAcknowledgement=d},59840:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgRecvPacket=void 0;var o=n(4789),s=n(81019),c=n(14475),u=n(3439),f=n(43316),d=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.packet=t,i.proof_commitment=n,i.proof_height=r,i.signer=a,i}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.proof_commitment,i=e.proof_height,o=e.signer;return new t(r?u.Packet.fromData(r):void 0,a,i?c.Height.fromData(i):void 0,o)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.proof_commitment,a=t.proof_height,i=t.signer;return{"@type":"/ibc.core.channel.v1.MsgRecvPacket",packet:n?n.toData():void 0,proof_commitment:r,proof_height:a?a.toData():void 0,signer:i}},t.fromProto=function(e,n){return new t(e.packet?u.Packet.fromProto(e.packet):void 0,a.from(e.proofCommitment).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.proof_commitment,i=t.proof_height,o=t.signer;return f.MsgRecvPacket.fromPartial({packet:n?n.toProto():void 0,proofCommitment:a.from(r,"base64"),proofHeight:i?i.toProto():void 0,signer:o})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgRecvPacket",value:f.MsgRecvPacket.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgRecvPacket.decode(e.value))},t}(o.JSONSerializable);t.MsgRecvPacket=d},33138:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgTimeout=void 0;var s=n(4789),c=n(81019),u=n(14475),f=n(3439),d=n(43316),l=o(n(12620)),p=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.packet=t,o.proof_unreceived=n,o.proof_height=r,o.next_sequence_recv=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.proof_unreceived,i=e.proof_height,o=e.next_sequence_recv,s=e.signer;return new t(r?f.Packet.fromData(r):void 0,a,i?u.Height.fromData(i):void 0,Number.parseInt(o),s)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.proof_unreceived,a=t.proof_height,i=t.next_sequence_recv,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgTimeout",packet:n?n.toData():void 0,proof_unreceived:r,proof_height:a?a.toData():void 0,next_sequence_recv:i.toFixed(),signer:o}},t.fromProto=function(e,n){return new t(e.packet?f.Packet.fromProto(e.packet):void 0,a.from(e.proofUnreceived).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.nextSequenceRecv.toNumber(),e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.proof_unreceived,i=t.proof_height,o=t.next_sequence_recv,s=t.signer;return d.MsgTimeout.fromPartial({packet:n?n.toProto():void 0,proofUnreceived:a.from(r,"base64"),proofHeight:i?i.toProto():void 0,nextSequenceRecv:l.default.fromNumber(o),signer:s})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgTimeout",value:d.MsgTimeout.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgTimeout.decode(e.value))},t}(s.JSONSerializable);t.MsgTimeout=p},11466:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgTimeoutOnClose=void 0;var s=n(4789),c=n(81019),u=n(14475),f=n(3439),d=n(43316),l=o(n(12620)),p=function(e){function t(t,n,r,a,i,o){var s=e.call(this)||this;return s.packet=t,s.proof_unreceived=n,s.proof_close=r,s.proof_height=a,s.next_sequence_recv=i,s.signer=o,s}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.proof_unreceived,i=e.proof_close,o=e.proof_height,s=e.next_sequence_recv,c=e.signer;return new t(r?f.Packet.fromData(r):void 0,i,a,o?u.Height.fromData(o):void 0,Number.parseInt(s),c)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.proof_unreceived,a=t.proof_close,i=t.proof_height,o=t.next_sequence_recv,s=t.signer;return{"@type":"/ibc.core.channel.v1.MsgTimeoutOnClose",packet:n?n.toData():void 0,proof_unreceived:r,proof_close:a,proof_height:i?i.toData():void 0,next_sequence_recv:o.toFixed(),signer:s}},t.fromProto=function(e,n){return new t(e.packet?f.Packet.fromProto(e.packet):void 0,a.from(e.proofUnreceived).toString("base64"),a.from(e.proofClose).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.nextSequenceRecv.toNumber(),e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.proof_unreceived,i=t.proof_close,o=t.proof_height,s=t.next_sequence_recv,c=t.signer;return d.MsgTimeoutOnClose.fromPartial({packet:n?n.toProto():void 0,proofUnreceived:a.from(r,"base64"),proofClose:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,nextSequenceRecv:l.default.fromNumber(s),signer:c})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgTimeoutOnClose",value:d.MsgTimeoutOnClose.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgTimeoutOnClose.decode(e.value))},t}(s.JSONSerializable);t.MsgTimeoutOnClose=p},70907:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(40635),t),a(n(21391),t),a(n(25028),t),a(n(73394),t),a(n(6487),t),a(n(19182),t),a(n(59840),t),a(n(87157),t),a(n(33138),t),a(n(11466),t)},86081:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreateClient=void 0;var i=n(4789),o=n(81019),s=n(95994),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_state=t,a.consensus_state=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.client_state,e.consensus_state,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.MsgCreateClient",client_state:t.client_state,consensus_state:t.consensus_state,signer:t.signer}},t.fromProto=function(e,n){return new t(e.clientState,e.consensusState,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_state,r=t.consensus_state,a=t.signer;return s.MsgCreateClient.fromPartial({clientState:n,consensusState:r,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgCreateClient",value:s.MsgCreateClient.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgCreateClient.decode(e.value))},t}(i.JSONSerializable);t.MsgCreateClient=c},67030:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgSubmitMisbehaviour=void 0;var i=n(4789),o=n(81019),s=n(95994),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_id=t,a.misbehaviour=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.client_id,e.misbehaviour,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.MsgSubmitMisbehaviour",client_id:t.client_id,misbehaviour:t.misbehaviour,signer:t.signer}},t.fromProto=function(e,n){return new t(e.clientId,e.misbehaviour,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.misbehaviour,a=t.signer;return s.MsgSubmitMisbehaviour.fromPartial({clientId:n,misbehaviour:r,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgSubmitMisbehaviour",value:s.MsgSubmitMisbehaviour.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgSubmitMisbehaviour.decode(e.value))},t}(i.JSONSerializable);t.MsgSubmitMisbehaviour=c},21509:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUpdateClient=void 0;var i=n(4789),o=n(81019),s=n(95994),c=n(82338),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_id=t,a.header=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.client_id,a=e.header,i=e.signer;return new t(r,a?c.Header.fromData(a):void 0,i)},t.prototype.toData=function(e){var t=this,n=t.client_id,r=t.header,a=t.signer;return{"@type":"/ibc.core.client.v1.MsgUpdateClient",client_id:n,header:(null==r?void 0:r.toData())||void 0,signer:a}},t.fromProto=function(e,n){return new t(e.clientId,e.header?c.Header.unpackAny(e.header):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.header,a=t.signer;return s.MsgUpdateClient.fromPartial({clientId:n,header:(null==r?void 0:r.packAny())||void 0,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgUpdateClient",value:s.MsgUpdateClient.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgUpdateClient.decode(e.value))},t}(i.JSONSerializable);t.MsgUpdateClient=u},16912:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUpgradeClient=void 0;var o=n(4789),s=n(81019),c=n(95994),u=function(e){function t(t,n,r,a,i,o){var s=e.call(this)||this;return s.client_id=t,s.client_state=n,s.consensus_state=r,s.proof_upgrade_client=a,s.proof_upgrade_consensus_state=i,s.signer=o,s}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.client_id,e.client_state,e.consensus_state,e.proof_upgrade_client,e.proof_upgrade_consensus_state,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.MsgUpgradeClient",client_id:t.client_id,client_state:t.client_state,consensus_state:t.consensus_state,proof_upgrade_client:t.proof_upgrade_client,proof_upgrade_consensus_state:t.proof_upgrade_consensus_state,signer:t.signer}},t.fromProto=function(e,n){return new t(e.clientId,e.clientState,e.consensusState,a.from(e.proofUpgradeClient).toString("base64"),a.from(e.proofUpgradeConsensusState).toString("base64"),e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.client_state,i=t.consensus_state,o=t.proof_upgrade_client,s=t.proof_upgrade_consensus_state,u=t.signer;return c.MsgUpgradeClient.fromPartial({clientId:n,clientState:r,consensusState:i,proofUpgradeClient:a.from(o,"base64"),proofUpgradeConsensusState:a.from(s,"base64"),signer:u})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgUpgradeClient",value:c.MsgUpgradeClient.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgUpgradeClient.decode(e.value))},t}(o.JSONSerializable);t.MsgUpgradeClient=u},1027:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(86081),t),a(n(21509),t),a(n(16912),t),a(n(67030),t)},1764:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PublicKey=t.Proof=void 0;var u=n(4058),f=n(14484),d=c(n(12620)),l=n(4789),p=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.total=t,i.index=n,i.leafHash=r,i.aunts=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.total,r=e.index,a=e.leaf_hash,i=e.aunts;return new t(Number.parseInt(n),Number.parseInt(r),a,i)},t.prototype.toData=function(){var e=this,t=e.total,n=e.index,r=e.leafHash,a=e.aunts;return{total:t.toFixed(),index:n.toFixed(),leaf_hash:r,aunts:a}},t.fromProto=function(e){return new t(e.total.toNumber(),e.index.toNumber(),a.from(e.leafHash).toString("base64"),e.aunts.map((function(e){return a.from(e).toString("base64")})))},t.prototype.toProto=function(){var e=this,t=e.total,n=e.index,r=e.leafHash,i=e.aunts;return u.Proof.fromPartial({total:d.fromNumber(t),index:d.fromNumber(n),leafHash:a.from(r,"base64"),aunts:i.map((function(e){return a.from(e,"base64")}))})},t}(l.JSONSerializable);t.Proof=p;var b=function(e){function t(t,n){var r=e.call(this)||this;return r.ed25519=t,r.secp256k1=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){return new t(e.ed25519,e.secp256k1)},t.prototype.toData=function(){return{ed25519:this.ed25519,secp256k1:this.secp256k1}},t.fromProto=function(e){var n=e.ed25519,r=e.secp256k1;return new t(n?a.from(n).toString("base64"):void 0,r?a.from(r).toString("base64"):void 0)},t.prototype.toProto=function(){var e=this.ed25519,t=this.secp256k1;return f.PublicKey.fromPartial({ed25519:e?a.from(e,"base64"):void 0,secp256k1:t?a.from(t,"base64"):void 0})},t}(l.JSONSerializable);t.PublicKey=b},37025:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Validator=t.ValidatorSet=t.CommitSig=t.Commit=t.PartSetHeader=t.BlockID=t.SignedHeader=t.Header=void 0;var u=n(73921),f=n(16021),d=c(n(12620)),l=n(4789),p=n(24471),b=n(1764),h=function(e){function t(t,n,r,a,i,o,s,c,u,f,d,l,p,b){var h=e.call(this)||this;return h.version=t,h.chainId=n,h.height=r,h.time=a,h.lastBlockId=i,h.lastCommitHash=o,h.dataHash=s,h.validatorsHash=c,h.nextValidatorsHash=u,h.consensusHash=f,h.appHash=d,h.lastResultsHash=l,h.evidenceHash=p,h.proposerAddress=b,h}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.version,r=e.chain_id,a=e.height,i=e.time,o=e.last_block_id,s=e.last_commit_hash,c=e.data_hash,u=e.validators_hash,f=e.next_validators_hash,d=e.consensus_hash,l=e.app_hash,b=e.last_results_hash,h=e.evidence_hash,y=e.proposer_address;return new t(n?p.Consensus.fromData(n):void 0,r,a,i?new Date(i):void 0,o?m.fromData(o):void 0,s,c,u,f,d,l,b,h,y)},t.prototype.toData=function(){var e=this,t=e.version,n=e.chainId,r=e.height,a=e.time,i=e.lastBlockId,o=e.lastCommitHash,s=e.dataHash,c=e.validatorsHash,u=e.nextValidatorsHash,f=e.consensusHash,d=e.appHash,l=e.lastResultsHash,p=e.evidenceHash,b=e.proposerAddress;return{version:null==t?void 0:t.toData(),chain_id:n,height:r,time:a?a.toISOString().replace(/\.000Z$/,"Z"):void 0,last_block_id:i?i.toData():void 0,last_commit_hash:o,data_hash:s,validators_hash:c,next_validators_hash:u,consensus_hash:f,app_hash:d,last_results_hash:l,evidence_hash:p,proposer_address:b}},t.fromProto=function(e){var n=e.version,r=e.chainId,i=e.height,o=e.time,s=e.lastBlockId,c=e.lastCommitHash,u=e.dataHash,f=e.validatorsHash,d=e.nextValidatorsHash,l=e.consensusHash,b=e.appHash,h=e.lastResultsHash,y=e.evidenceHash,v=e.proposerAddress;return new t(n?p.Consensus.fromProto(n):void 0,r,i.toString(),o,s?m.fromProto(s):void 0,a.from(c).toString("base64"),a.from(u).toString("base64"),a.from(f).toString("base64"),a.from(d).toString("base64"),a.from(l).toString("base64"),a.from(b).toString("base64"),a.from(h).toString("base64"),a.from(y).toString("base64"),v.toString())},t.prototype.toProto=function(){var e=this,t=e.version,n=e.chainId,r=e.height,i=e.time,o=e.lastBlockId,s=e.lastCommitHash,c=e.dataHash,f=e.validatorsHash,l=e.nextValidatorsHash,p=e.consensusHash,b=e.appHash,h=e.lastResultsHash,y=e.evidenceHash,m=e.proposerAddress;return u.Header.fromPartial({version:null==t?void 0:t.toProto(),chainId:n,height:d.fromString(r),time:i,lastBlockId:null==o?void 0:o.toProto(),lastCommitHash:a.from(s,"base64"),dataHash:a.from(c,"base64"),validatorsHash:a.from(f,"base64"),nextValidatorsHash:a.from(l,"base64"),consensusHash:a.from(p,"base64"),appHash:a.from(b,"base64"),lastResultsHash:a.from(h,"base64"),evidenceHash:a.from(y,"base64"),proposerAddress:a.from(m)})},t}(l.JSONSerializable);t.Header=h;var y=function(e){function t(t,n){var r=e.call(this)||this;return r.header=t,r.commit=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.header,r=e.commit;return new t(n?h.fromData(n):void 0,r?g.fromData(r):void 0)},t.prototype.toData=function(){var e=this.header,t=this.commit;return{header:null==e?void 0:e.toData(),commit:null==t?void 0:t.toData()}},t.fromProto=function(e){return new t(e.header?h.fromProto(e.header):void 0,e.commit?g.fromProto(e.commit):void 0)},t.prototype.toProto=function(){var e=this.header,t=this.commit;return u.SignedHeader.fromPartial({header:null==e?void 0:e.toProto(),commit:null==t?void 0:t.toProto()})},t}(l.JSONSerializable);t.SignedHeader=y;var m=function(e){function t(t,n){var r=e.call(this)||this;return r.hash=t,r.partSetHeader=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.hash,r=e.part_set_header;return new t(n,r?v.fromData(r):void 0)},t.prototype.toData=function(){var e=this.hash,t=this.partSetHeader;return{hash:e,part_set_header:null==t?void 0:t.toData()}},t.fromProto=function(e){return new t(a.from(e.hash).toString("base64"),e.partSetHeader?v.fromProto(e.partSetHeader):void 0)},t.prototype.toProto=function(){var e=this.hash,t=this.partSetHeader;return u.BlockID.fromPartial({hash:a.from(e,"base64"),partSetHeader:t?t.toProto():void 0})},t}(l.JSONSerializable);t.BlockID=m;var v=function(e){function t(t,n){var r=e.call(this)||this;return r.total=t,r.hash=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.total,r=e.hash;return new t(parseInt(n),r)},t.prototype.toData=function(){var e=this.total,t=this.hash;return{total:e.toFixed(),hash:t}},t.fromProto=function(e){return new t(e.total,a.from(e.hash).toString("base64"))},t.prototype.toProto=function(){var e=this.total,t=this.hash;return u.PartSetHeader.fromPartial({total:e,hash:a.from(t,"base64")})},t}(l.JSONSerializable);t.PartSetHeader=v;var g=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.height=t,i.round=n,i.blockId=r,i.signatures=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.height,r=e.round,a=e.block_id,i=e.signatures;return new t(d.fromString(n),Number.parseInt(r),a?m.fromData(a):void 0,i.map((function(e){return A.fromData(e)})))},t.prototype.toData=function(){var e=this,t=e.height,n=e.round,r=e.blockId,a=e.signatures;return{height:t.toString(),round:n.toFixed(),block_id:null==r?void 0:r.toData(),signatures:a.map((function(e){return e.toData()}))}},t.fromProto=function(e){var n=e.height,r=e.round,a=e.blockId,i=e.signatures;return new t(n,r,a?m.fromProto(a):void 0,i.map((function(e){return A.fromProto(e)})))},t.prototype.toProto=function(){var e=this,t=e.height,n=e.round,r=e.blockId,a=e.signatures;return u.Commit.fromPartial({height:t,round:n,blockId:null==r?void 0:r.toProto(),signatures:a.map((function(e){return e.toProto()}))})},t}(l.JSONSerializable);t.Commit=g;var A=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.blockIdFlag=t,i.validatorAddress=n,i.timestamp=r,i.signature=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.block_id_flag,r=e.validator_address,a=e.timestamp,i=e.signature;return new t((0,u.blockIDFlagFromJSON)(n),r,a?new Date(a):void 0,i)},t.prototype.toData=function(){var e=this,t=e.blockIdFlag,n=e.validatorAddress,r=e.timestamp,a=e.signature;return{block_id_flag:(0,u.blockIDFlagToJSON)(t),validator_address:n||"",timestamp:r?r.toISOString().replace(/\.000Z$/,"Z"):void 0,signature:a||""}},t.fromProto=function(e){var n=e.blockIdFlag,r=e.validatorAddress,i=e.timestamp,o=e.signature;return new t(n,a.from(r).toString("base64"),i,a.from(o).toString("base64"))},t.prototype.toProto=function(){var e=this,t=e.blockIdFlag,n=e.validatorAddress,r=e.timestamp,i=e.signature;return u.CommitSig.fromPartial({blockIdFlag:t,validatorAddress:n?a.from(n,"base64"):void 0,timestamp:r,signature:i?a.from(i,"base64"):void 0})},t}(l.JSONSerializable);t.CommitSig=A;var w=function(e){function t(t,n,r){var a=e.call(this)||this;return a.validators=t,a.proposer=n,a.totalVotingPower=r,a}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.validators,r=e.proposer,a=e.total_voting_power;return new t(n.map((function(e){return x.fromData(e)})),r?x.fromData(r):void 0,d.fromString(a))},t.prototype.toData=function(){var e=this,t=e.validators,n=e.proposer,r=e.totalVotingPower;return{validators:t.map((function(e){return e.toData()})),proposer:null==n?void 0:n.toData(),total_voting_power:r.toString()}},t.fromProto=function(e){var n=e.validators,r=e.proposer,a=e.totalVotingPower;return new t(n.map((function(e){return x.fromProto(e)})),r?x.fromProto(r):void 0,a)},t.prototype.toProto=function(){var e=this,t=e.validators,n=e.proposer,r=e.totalVotingPower;return f.ValidatorSet.fromPartial({validators:t.map((function(e){return e.toProto()})),proposer:(null==n?void 0:n.toProto())||void 0,totalVotingPower:r})},t}(l.JSONSerializable);t.ValidatorSet=w;var x=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.address=t,i.pubKey=n,i.votingPower=r,i.proposerPriority=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.address,r=e.pub_key,a=e.voting_power,i=e.proposer_priority;return new t(n,r?b.PublicKey.fromData(r):void 0,d.fromString(a),d.fromString(i))},t.prototype.toData=function(){var e=this,t=e.address,n=e.pubKey,r=e.votingPower,a=e.proposerPriority;return{address:t,pub_key:null==n?void 0:n.toData(),voting_power:r.toString(),proposer_priority:a.toString()}},t.fromProto=function(e){var n=e.address,r=e.pubKey,i=e.votingPower,o=e.proposerPriority;return new t(a.from(n).toString("base64"),r?b.PublicKey.fromProto(r):void 0,i,o)},t.prototype.toProto=function(){var e=this,t=e.address,n=e.pubKey,r=e.votingPower,i=e.proposerPriority;return f.Validator.fromPartial({address:a.from(t,"base64"),pubKey:(null==n?void 0:n.toProto())||void 0,votingPower:r,proposerPriority:i})},t}(l.JSONSerializable);t.Validator=x},24471:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.App=t.Consensus=void 0;var c=n(2673),u=n(2673),f=s(n(12620)),d=n(4789),l=function(e){function t(t,n){var r=e.call(this)||this;return r.block=t,r.app=n,r}return a(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.block,r=e.app;return new t(Number.parseInt(n),Number.parseInt(r))},t.prototype.toData=function(){var e=this.block,t=this.app;return{block:e.toFixed(),app:t.toFixed()}},t.fromProto=function(e){return new t(e.block.toNumber(),e.app.toNumber())},t.prototype.toProto=function(){var e=this.block,t=this.app;return c.Consensus.fromPartial({block:f.fromNumber(e),app:f.fromNumber(t)})},t}(d.JSONSerializable);t.Consensus=l;var p=function(e){function t(t,n){var r=e.call(this)||this;return r.protocol=t,r.software=n,r}return a(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.protocol,r=e.software;return new t(Number.parseInt(n),r)},t.prototype.toData=function(){var e=this.protocol,t=this.software;return{protocol:e.toFixed(),software:t}},t.fromProto=function(e){return new t(e.protocol.toNumber(),e.software)},t.prototype.toProto=function(){var e=this.protocol,t=this.software;return u.App.fromPartial({protocol:f.fromNumber(e),software:t})},t}(d.JSONSerializable);t.App=p},14517:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenAck=void 0;var o=n(4789),s=n(81019),c=n(36907),u=n(52888),f=n(14475),d=function(e){function t(t,n,r,a,i,o,s,c,u,f){var d=e.call(this)||this;return d.connection_id=t,d.counterparty_connection_id=n,d.version=r,d.client_state=a,d.proof_height=i,d.proof_try=o,d.proof_client=s,d.proof_consensus=c,d.consensus_height=u,d.signer=f,d}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.connection_id,a=e.counterparty_connection_id,i=e.version,o=e.client_state,s=e.proof_height,u=e.proof_try,d=e.proof_client,l=e.proof_consensus,p=e.consensus_height,b=e.signer;return new t(r,a,i?c.Version.fromData(i):void 0,o,s?f.Height.fromData(s):void 0,u,d,l,p?f.Height.fromData(p):void 0,b)},t.prototype.toData=function(e){var t=this,n=t.connection_id,r=t.counterparty_connection_id,a=t.version,i=t.client_state,o=t.proof_height,s=t.proof_try,c=t.proof_client,u=t.proof_consensus,f=t.consensus_height,d=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenAck",connection_id:n,counterparty_connection_id:r,version:a?a.toData():void 0,client_state:i,proof_height:o?o.toData():void 0,proof_try:s,proof_client:c,proof_consensus:u,consensus_height:f?f.toData():void 0,signer:d}},t.fromProto=function(e,n){return new t(e.connectionId,e.counterpartyConnectionId,e.version?c.Version.fromProto(e.version):void 0,e.clientState,e.proofHeight?f.Height.fromProto(e.proofHeight):void 0,a.from(e.proofTry).toString("base64"),a.from(e.proofClient).toString("base64"),a.from(e.proofConsensus).toString("base64"),e.consensusHeight?f.Height.fromProto(e.consensusHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.connection_id,r=t.counterparty_connection_id,i=t.version,o=t.client_state,s=t.proof_height,c=t.proof_try,f=t.proof_client,d=t.proof_consensus,l=t.consensus_height,p=t.signer;return u.MsgConnectionOpenAck.fromPartial({connectionId:n,counterpartyConnectionId:r,version:i?i.toProto():void 0,clientState:o,proofHeight:s?s.toProto():void 0,proofTry:a.from(c,"base64"),proofClient:a.from(f,"base64"),proofConsensus:a.from(d,"base64"),consensusHeight:l?l.toProto():void 0,signer:p})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenAck",value:u.MsgConnectionOpenAck.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgConnectionOpenAck.decode(e.value))},t}(o.JSONSerializable);t.MsgConnectionOpenAck=d},86387:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenConfirm=void 0;var o=n(4789),s=n(81019),c=n(52888),u=n(14475),f=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.connection_id=t,i.proof_ack=n,i.proof_height=r,i.signer=a,i}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.connection_id,a=e.proof_ack,i=e.proof_height,o=e.signer;return new t(r,a,i?u.Height.fromData(i):void 0,o)},t.prototype.toData=function(e){var t=this,n=t.connection_id,r=t.proof_ack,a=t.proof_height,i=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenConfirm",connection_id:n,proof_ack:r,proof_height:a?a.toData():void 0,signer:i}},t.fromProto=function(e,n){return new t(e.connectionId,a.from(e.proofAck).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.connection_id,r=t.proof_ack,i=t.proof_height,o=t.signer;return c.MsgConnectionOpenConfirm.fromPartial({connectionId:n,proofAck:a.from(r,"base64"),proofHeight:i?i.toProto():void 0,signer:o})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenConfirm",value:c.MsgConnectionOpenConfirm.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgConnectionOpenConfirm.decode(e.value))},t}(o.JSONSerializable);t.MsgConnectionOpenConfirm=f},54006:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenInit=void 0;var o=n(4789),s=n(81019),c=n(83115),u=n(36907),f=n(52888),d=i(n(12620)),l=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.client_id=t,o.delay_period=n,o.signer=r,o.counterparty=a,o.version=i,o}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.client_id,a=e.counterparty,i=e.version,o=e.delay_period,s=e.signer;return new t(r,Number.parseInt(o),s,a?c.Counterparty.fromData(a):void 0,i?u.Version.fromData(i):void 0)},t.prototype.toData=function(e){var t=this,n=t.client_id,r=t.counterparty,a=t.version,i=t.delay_period,o=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenInit",client_id:n,delay_period:i.toFixed(),signer:o,counterparty:r?r.toData():void 0,version:a?a.toData():void 0}},t.fromProto=function(e,n){return new t(e.clientId,e.delayPeriod.toNumber(),e.signer,e.counterparty?c.Counterparty.fromProto(e.counterparty):void 0,e.version?u.Version.fromProto(e.version):void 0)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.counterparty,a=t.version,i=t.delay_period,o=t.signer;return f.MsgConnectionOpenInit.fromPartial({clientId:n,delayPeriod:d.default.fromNumber(i),signer:o,counterparty:r?r.toProto():void 0,version:a?a.toProto():void 0})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenInit",value:f.MsgConnectionOpenInit.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgConnectionOpenInit.decode(e.value))},t}(o.JSONSerializable);t.MsgConnectionOpenInit=l},56105:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenTry=void 0;var s=n(4789),c=n(81019),u=n(83115),f=n(36907),d=n(52888),l=o(n(12620)),p=n(14475),b=function(e){function t(t,n,r,a,i,o,s,c,u,f,d,l){var p=e.call(this)||this;return p.client_id=t,p.previous_connection_id=n,p.client_state=r,p.counterparty=a,p.delay_period=i,p.counterparty_versions=o,p.proof_height=s,p.proof_init=c,p.proof_client=u,p.proof_consensus=f,p.consensus_height=d,p.signer=l,p}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.client_id,i=e.previous_connection_id,o=e.client_state,s=e.counterparty,c=e.delay_period,d=e.counterparty_versions,l=e.proof_height,b=e.proof_init,h=e.proof_client,y=e.proof_consensus,m=e.consensus_height,v=e.signer;return new t(r,i,o,s?u.Counterparty.fromData(s):void 0,Number.parseInt(c),d.length>0?d.map((function(e){return f.Version.fromData(e)})):[],l?p.Height.fromData(l):void 0,a.from(b).toString("base64"),a.from(h).toString("base64"),a.from(y).toString("base64"),m?p.Height.fromData(m):void 0,v)},t.prototype.toData=function(e){var t=this,n=t.client_id,r=t.previous_connection_id,a=t.client_state,i=t.counterparty,o=t.delay_period,s=t.counterparty_versions,c=t.proof_height,u=t.proof_init,f=t.proof_client,d=t.proof_consensus,l=t.consensus_height,p=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenTry",client_id:n,previous_connection_id:r,client_state:a,counterparty:i?i.toData():void 0,delay_period:o.toFixed(),counterparty_versions:s.length>0?s.map((function(e){return e.toData()})):[],proof_height:c?c.toData():void 0,proof_init:u,proof_client:f,proof_consensus:d,consensus_height:l?l.toData():void 0,signer:p}},t.fromProto=function(e,n){return new t(e.clientId,e.previousConnectionId,e.clientState,e.counterparty?u.Counterparty.fromProto(e.counterparty):void 0,e.delayPeriod.toNumber(),e.counterpartyVersions.length>0?e.counterpartyVersions.map((function(e){return f.Version.fromProto(e)})):[],e.proofHeight?p.Height.fromProto(e.proofHeight):void 0,a.from(e.proofInit).toString("base64"),a.from(e.proofClient).toString("base64"),a.from(e.proofConsensus).toString("base64"),e.consensusHeight?p.Height.fromProto(e.consensusHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.previous_connection_id,i=t.client_state,o=t.counterparty,s=t.delay_period,c=t.counterparty_versions,u=t.proof_height,f=t.proof_init,p=t.proof_client,b=t.proof_consensus,h=t.consensus_height,y=t.signer;return d.MsgConnectionOpenTry.fromPartial({clientId:n,previousConnectionId:r,clientState:i.toProto(),counterparty:o?o.toProto():void 0,delayPeriod:l.default.fromNumber(s),counterpartyVersions:c.length>0?c.map((function(e){return e.toProto()})):[],proofHeight:u?u.toProto():void 0,proofInit:a.from(f,"base64"),proofClient:a.from(p,"base64"),proofConsensus:a.from(b,"base64"),consensusHeight:h?h.toProto():void 0,signer:y})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenTry",value:d.MsgConnectionOpenTry.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgConnectionOpenTry.decode(e.value))},t}(s.JSONSerializable);t.MsgConnectionOpenTry=b},80672:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(54006),t),a(n(56105),t),a(n(86387),t),a(n(14517),t)},84103:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientUpdateProposal=void 0;var i=n(4789),o=n(81019),s=n(39163),c=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.title=t,i.description=n,i.subjectClientId=r,i.substituteClientId=a,i}return a(t,e),t.fromAmino=function(e,n){var r=e.value;return new t(r.title,r.description,r.subjectClientId,r.substituteClientId)},t.prototype.toAmino=function(e){var t=this;return{type:"ibc/ClientUpdateProposal",value:{title:t.title,description:t.description,subjectClientId:t.subjectClientId,substituteClientId:t.substituteClientId}}},t.fromData=function(e,n){return new t(e.title,e.description,e.subject_client_id,e.substitute_client_id)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.ClientUpdateProposal",title:t.title,description:t.description,subject_client_id:t.subjectClientId,substitute_client_id:t.substituteClientId}},t.fromProto=function(e,n){return new t(e.title,e.description,e.subjectClientId,e.substituteClientId)},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,a=t.subjectClientId,i=t.substituteClientId;return s.ClientUpdateProposal.fromPartial({subjectClientId:a,substituteClientId:i,description:r,title:n})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.ClientUpdateProposal",value:s.ClientUpdateProposal.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.ClientUpdateProposal.decode(e.value))},t}(i.JSONSerializable);t.ClientUpdateProposal=c},7598:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(84103),t)},91842:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(99212),t),a(n(27657),t),a(n(25678),t),a(n(54449),t),a(n(77297),t),a(n(78277),t),a(n(49725),t),a(n(30084),t),a(n(25271),t),a(n(33639),t),a(n(313),t),a(n(31158),t),a(n(9544),t),a(n(92565),t),a(n(60291),t),a(n(8298),t),a(n(19395),t),a(n(60146),t),a(n(40333),t),a(n(17923),t),a(n(13506),t),a(n(701),t),a(n(17070),t),a(n(77398),t),a(n(74474),t),a(n(24906),t),a(n(75158),t),a(n(97985),t),a(n(87044),t),a(n(68469),t),a(n(88694),t),a(n(49494),t),a(n(15782),t),a(n(74972),t),a(n(97257),t),a(n(86280),t),a(n(18441),t),a(n(8791),t),a(n(79694),t),a(n(27679),t),a(n(49293),t),a(n(69717),t),a(n(4210),t),a(n(13033),t),a(n(27344),t),a(n(67811),t),a(n(9829),t),a(n(57482),t),a(n(12987),t),a(n(41069),t),a(n(95430),t),a(n(70907),t),a(n(1027),t),a(n(80672),t),a(n(96096),t),a(n(16696),t)},94070:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgSwap=void 0;var i=n(4789),o=n(27657),s=n(5062),c=n(81019),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.trader=t,a.offer_coin=n,a.ask_denom=r,a}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.trader,i=r.offer_coin,s=r.ask_denom;return new t(a,o.Coin.fromAmino(i),s)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.trader,r=t.offer_coin,a=t.ask_denom;return{type:"market/MsgSwap",value:{trader:n,offer_coin:r.toAmino(),ask_denom:a}}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.trader,o.Coin.fromProto(e.offerCoin),e.askDenom)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.trader,r=t.offer_coin,a=t.ask_denom;return s.MsgSwap.fromPartial({askDenom:a,offerCoin:r.toProto(),trader:n})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/terra.market.v1beta1.MsgSwap",value:s.MsgSwap.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.MsgSwap.decode(e.value),n)},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.trader,a=e.offer_coin,i=e.ask_denom;return new t(r,o.Coin.fromData(a),i)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.trader,r=t.offer_coin,a=t.ask_denom;return{"@type":"/terra.market.v1beta1.MsgSwap",trader:n,offer_coin:r.toData(),ask_denom:a}},t}(i.JSONSerializable);t.MsgSwap=u},28654:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgSwapSend=void 0;var i=n(4789),o=n(27657),s=n(81019),c=n(5062),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.from_address=t,i.to_address=n,i.offer_coin=r,i.ask_denom=a,i}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.from_address,i=r.to_address,s=r.offer_coin,c=r.ask_denom;return new t(a,i,o.Coin.fromAmino(s),c)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.offer_coin,i=t.ask_denom;return{type:"market/MsgSwapSend",value:{from_address:n,to_address:r,offer_coin:a.toAmino(),ask_denom:i}}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.fromAddress,e.toAddress,o.Coin.fromProto(e.offerCoin),e.askDenom)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.offer_coin,i=t.ask_denom;return c.MsgSwapSend.fromPartial({askDenom:i,fromAddress:n,offerCoin:a.toProto(),toAddress:r})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return s.Any.fromPartial({typeUrl:"/terra.market.v1beta1.MsgSwapSend",value:c.MsgSwapSend.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(c.MsgSwapSend.decode(e.value),n)},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.from_address,a=e.to_address,i=e.offer_coin,s=e.ask_denom;return new t(r,a,o.Coin.fromData(i),s)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.offer_coin,i=t.ask_denom;return{"@type":"/terra.market.v1beta1.MsgSwapSend",from_address:n,to_address:r,offer_coin:a.toData(),ask_denom:i}},t}(i.JSONSerializable);t.MsgSwapSend=u},49494:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(94070),t),a(n(28654),t)},78277:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.int=t.dec=t.Int=t.Dec=t.Numeric=t.DEC_PRECISION=void 0;var o,s=i(n(1194));t.DEC_PRECISION=18,function(e){e.parse=function(e){if(e instanceof c)return e;if("string"==typeof e)return e.includes(".")?new c(e):new u(e);var t=new s.default(e);return t.isInteger()?new u(t):new c(t.toString())}}(o=t.Numeric||(t.Numeric={}));var c=function(e){function n(t){return e.call(this,(null!=t?t:0).toString())||this}return a(n,e),n.prototype.toString=function(){return this.toFixed(t.DEC_PRECISION)},n.withPrec=function(e,t){return new n(new n(e).div(Math.pow(10,t)))},n.prototype.toInt=function(){return new u(this)},n.prototype.add=function(t){var r=new n(o.parse(t));return new n(e.prototype.add.call(this,r))},n.prototype.sub=function(t){var r=new n(o.parse(t));return new n(e.prototype.sub.call(this,r))},n.prototype.mul=function(t){var r=new n(o.parse(t));return new n(e.prototype.mul.call(this,r))},n.prototype.div=function(t){var r=new n(o.parse(t));return new n(e.prototype.div.call(this,r))},n.prototype.mod=function(t){var r=new n(o.parse(t));return new n(e.prototype.mod.call(this,r))},n}(s.default);t.Dec=c;var u=function(e){function t(t){var n=new s.default((null!=t?t:0).toString());return e.call(this,n.divToInt(1))||this}return a(t,e),t.prototype.toString=function(){return this.toFixed()},t.prototype.toDec=function(){return new c(this)},t.prototype.add=function(e){var n=o.parse(e);return n instanceof c?new c(this).add(n):new t(this.plus(n))},t.prototype.sub=function(e){var n=o.parse(e);return n instanceof c?new c(this).sub(n):new t(this.minus(n))},t.prototype.mul=function(e){var n=o.parse(e);return n instanceof c?new c(this).mul(n):new t(this.times(n))},t.prototype.div=function(n){var r=o.parse(n);return r instanceof c?new c(this).div(r):new t(e.prototype.div.call(this,r))},t.prototype.mod=function(n){var r=o.parse(n);return r instanceof c?new c(this).mod(r):new t(e.prototype.mod.call(this,r))},t}(s.default.clone());t.Int=u,t.dec=function(e){return new c(e[0])},t.int=function(e){return new u(e[0])}},86280:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AggregateExchangeRatePrevote=void 0;var c=n(4789),u=n(68018),f=s(n(12620)),d=function(e){function t(t,n,r){var a=e.call(this)||this;return a.hash=t,a.voter=n,a.submit_block=r,a}return a(t,e),t.fromAmino=function(e){var n=e.hash,r=e.voter,a=e.submit_block;return new t(n,r,Number.parseInt(a))},t.prototype.toAmino=function(){var e=this;return{hash:e.hash,voter:e.voter,submit_block:e.submit_block.toFixed()}},t.fromData=function(e){var n=e.hash,r=e.voter,a=e.submit_block;return new t(n,r,Number.parseInt(a))},t.prototype.toData=function(){var e=this;return{hash:e.hash,voter:e.voter,submit_block:e.submit_block.toFixed()}},t.fromProto=function(e){return new t(e.hash,e.voter,e.submitBlock.toNumber())},t.prototype.toProto=function(){var e=this,t=e.hash,n=e.voter,r=e.submit_block;return u.AggregateExchangeRatePrevote.fromPartial({hash:t,submitBlock:f.fromNumber(r),voter:n})},t}(c.JSONSerializable);t.AggregateExchangeRatePrevote=d},18441:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExchangeRateTuple=t.AggregateExchangeRateVote=void 0;var i=n(4789),o=n(68018),s=n(78277),c=function(e){function t(t,n){var r=e.call(this)||this;return r.exchange_rate_tuples=t,r.voter=n,r}return a(t,e),t.fromAmino=function(e){var n=e.exchange_rate_tuples,r=e.voter;return new t(n.map((function(e){return u.fromAmino(e)})),r)},t.prototype.toAmino=function(){var e=this.exchange_rate_tuples,t=this.voter;return{exchange_rate_tuples:e.map((function(e){return e.toAmino()})),voter:t}},t.fromData=function(e){var n=e.exchange_rate_tuples,r=e.voter;return new t(n.map((function(e){return u.fromData(e)})),r)},t.prototype.toData=function(){var e=this.exchange_rate_tuples,t=this.voter;return{exchange_rate_tuples:e.map((function(e){return e.toData()})),voter:t}},t.fromProto=function(e){return new t(e.exchangeRateTuples.map((function(e){return u.fromProto(e)})),e.voter)},t.prototype.toProto=function(){var e=this.exchange_rate_tuples,t=this.voter;return o.AggregateExchangeRateVote.fromPartial({exchangeRateTuples:e.map((function(e){return e.toProto()})),voter:t})},t}(i.JSONSerializable);t.AggregateExchangeRateVote=c;var u=function(e){function t(t,n){var r=e.call(this)||this;return r.denom=t,r.exchange_rate=new s.Dec(n),r}return a(t,e),t.fromAmino=function(e){return new t(e.denom,e.exchange_rate)},t.prototype.toAmino=function(){return{denom:this.denom,exchange_rate:this.exchange_rate.toString()}},t.fromData=function(e){return new t(e.denom,e.exchange_rate)},t.prototype.toData=function(){return{denom:this.denom,exchange_rate:this.exchange_rate.toString()}},t.fromProto=function(e){return new t(e.denom,e.exchangeRate)},t.prototype.toProto=function(){var e=this.denom,t=this.exchange_rate;return o.ExchangeRateTuple.fromPartial({denom:e,exchangeRate:t.toString()})},t}(i.JSONSerializable);t.ExchangeRateTuple=u},60322:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgAggregateExchangeRatePrevote=void 0;var i=n(4789),o=n(81019),s=n(82454),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.hash=t,a.feeder=n,a.validator=r,a}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value;return new t(r.hash,r.feeder,r.validator)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{type:"oracle/MsgAggregateExchangeRatePrevote",value:{hash:t.hash,feeder:t.feeder,validator:t.validator}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.hash,e.feeder,e.validator)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{"@type":"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote",hash:t.hash,feeder:t.feeder,validator:t.validator}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.hash,e.feeder,e.validator)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.hash,r=t.feeder,a=t.validator;return s.MsgAggregateExchangeRatePrevote.fromPartial({hash:n,feeder:r,validator:a})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote",value:s.MsgAggregateExchangeRatePrevote.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.MsgAggregateExchangeRatePrevote.decode(e.value),n)},t}(i.JSONSerializable);t.MsgAggregateExchangeRatePrevote=c},20879:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgAggregateExchangeRateVote=t.aggregateVoteHash=void 0;var i=n(77294),o=n(4789),s=n(60322),c=n(25678),u=n(81019),f=n(82454);function d(e,t,n){var r="".concat(t,":").concat(e.toDecCoins().toString(),":").concat(n);return i.SHA256.hash(r).toString().substring(0,40)}t.aggregateVoteHash=d;var l=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.salt=n,i.feeder=r,i.validator=a,i.exchange_rates=new c.Coins(t).toDecCoins(),i}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.exchange_rates,i=r.salt,o=r.feeder,s=r.validator;return new t(c.Coins.fromString(a),i,o,s)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.exchange_rates,r=t.salt,a=t.feeder,i=t.validator;return{type:"oracle/MsgAggregateExchangeRateVote",value:{exchange_rates:n.toDecCoins().toString(),salt:r,feeder:a,validator:i}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.exchange_rates,a=e.salt,i=e.feeder,o=e.validator;return new t(c.Coins.fromString(r),a,i,o)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.exchange_rates,r=t.salt,a=t.feeder,i=t.validator;return{"@type":"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote",exchange_rates:n.toDecCoins().toString(),salt:r,feeder:a,validator:i}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(c.Coins.fromString(e.exchangeRates),e.salt,e.feeder,e.validator)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.exchange_rates,r=t.salt,a=t.feeder,i=t.validator;return f.MsgAggregateExchangeRateVote.fromPartial({exchangeRates:n.toString(),feeder:a,salt:r,validator:i})},t.prototype.getAggregateVoteHash=function(){return d(this.exchange_rates,this.salt,this.validator)},t.prototype.getPrevote=function(){return new s.MsgAggregateExchangeRatePrevote(this.getAggregateVoteHash(),this.feeder,this.validator)},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return u.Any.fromPartial({typeUrl:"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote",value:f.MsgAggregateExchangeRateVote.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(f.MsgAggregateExchangeRateVote.decode(e.value),n)},t}(o.JSONSerializable);t.MsgAggregateExchangeRateVote=l},56138:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgDelegateFeedConsent=void 0;var i=n(4789),o=n(81019),s=n(82454),c=function(e){function t(t,n){var r=e.call(this)||this;return r.operator=t,r.delegate=n,r}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value;return new t(r.operator,r.delegate)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");return{type:"oracle/MsgDelegateFeedConsent",value:{operator:this.operator,delegate:this.delegate}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.operator,e.delegate)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");return{"@type":"/terra.oracle.v1beta1.MsgDelegateFeedConsent",operator:this.operator,delegate:this.delegate}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.operator,e.delegate)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this.operator,n=this.delegate;return s.MsgDelegateFeedConsent.fromPartial({delegate:n,operator:t})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/terra.oracle.v1beta1.MsgDelegateFeedConsent",value:s.MsgDelegateFeedConsent.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.MsgDelegateFeedConsent.decode(e.value),n)},t}(i.JSONSerializable);t.MsgDelegateFeedConsent=c},97257:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(56138),t),a(n(20879),t),a(n(60322),t)},79694:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ParamChange=t.ParamChanges=void 0;var i=n(4789),o=n(68378),s=function(e){function t(t){var n=e.call(this)||this;return n.paramChanges=t,n}return a(t,e),t.fromAmino=function(e){return new t((null!=e?e:[]).map(c.fromAmino))},t.prototype.toAmino=function(){return this.paramChanges.map((function(e){return e.toAmino()}))},t.fromData=function(e){return new t((null!=e?e:[]).map(c.fromData))},t.prototype.toData=function(){return this.paramChanges.map((function(e){return e.toData()}))},t.fromProto=function(e){return new t((null!=e?e:[]).map(c.fromProto))},t.prototype.toProto=function(){return this.paramChanges.map((function(e){return e.toProto()}))},t}(i.JSONSerializable);t.ParamChanges=s;var c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.subspace=t,a.key=n,a.value=r,a}return a(t,e),t.fromAmino=function(e){return new t(e.subspace,e.key,e.value)},t.prototype.toAmino=function(){var e=this;return{subspace:e.subspace,key:e.key,value:e.value}},t.fromData=function(e){return new t(e.subspace,e.key,e.value)},t.prototype.toData=function(){var e=this;return{subspace:e.subspace,key:e.key,value:e.value}},t.fromProto=function(e){return new t(e.subspace,e.key,e.value)},t.prototype.toProto=function(){var e=this,t=e.subspace,n=e.key,r=e.value;return o.ParamChange.fromPartial({key:n,subspace:t,value:r})},t}(i.JSONSerializable);t.ParamChange=c},94124:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ParameterChangeProposal=void 0;var i=n(4789),o=n(79694),s=n(81019),c=n(68378),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,Array.isArray(r)?a.changes=o.ParamChanges.fromData(r):a.changes=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.title,i=r.description,s=r.changes;return new t(a,i,o.ParamChanges.fromAmino(s))},t.prototype.toAmino=function(e){var t=this;return{type:e?"params/ParameterChangeProposal":"cosmos-sdk/ParameterChangeProposal",value:{title:t.title,description:t.description,changes:t.changes.toAmino()}}},t.fromData=function(e,n){var r=e.title,a=e.description,i=e.changes;return new t(r,a,o.ParamChanges.fromData(i))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.params.v1beta1.ParameterChangeProposal",title:t.title,description:t.description,changes:t.changes.toData()}},t.fromProto=function(e,n){return new t(e.title,e.description,o.ParamChanges.fromProto(e.changes))},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,a=t.changes;return c.ParameterChangeProposal.fromPartial({changes:a.toProto(),description:r,title:n})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.params.v1beta1.ParameterChangeProposal",value:c.ParameterChangeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.ParameterChangeProposal.decode(e.value),n)},t}(i.JSONSerializable);t.ParameterChangeProposal=u},8791:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(94124),t)},48577:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUnjail=void 0;var i=n(4789),o=n(81019),s=n(42144),c=function(e){function t(t){var n=e.call(this)||this;return n.address=t,n}return a(t,e),t.fromAmino=function(e,n){return new t(e.value.address)},t.prototype.toAmino=function(e){return{type:e?"slashing/MsgUnjail":"cosmos-sdk/MsgUnjail",value:{address:this.address}}},t.fromData=function(e,n){return new t(e.address)},t.prototype.toData=function(e){return{"@type":"/cosmos.slashing.v1beta1.MsgUnjail",address:this.address}},t.fromProto=function(e,n){return new t(e.validatorAddr)},t.prototype.toProto=function(e){var t=this.address;return s.MsgUnjail.fromPartial({validatorAddr:t})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/cosmos.slashing.v1beta1.MsgUnjail",value:s.MsgUnjail.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgUnjail.decode(e.value),n)},t}(i.JSONSerializable);t.MsgUnjail=c},27679:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(48577),t)},69717:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Delegation=void 0;var i=n(4789),o=n(78277),s=n(27657),c=n(18672),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.delegator_address=t,i.validator_address=n,i.shares=r,i.balance=a,i}return a(t,e),t.fromAmino=function(e){var n=e.delegation,r=n.delegator_address,a=n.validator_address,i=n.shares,c=e.balance;return new t(r,a,new o.Dec(i),s.Coin.fromAmino(c))},t.prototype.toAmino=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.shares,a=e.balance;return{delegation:{delegator_address:t,validator_address:n,shares:r.toString()},balance:a.toAmino()}},t.fromData=function(e){var n=e.delegation,r=n.delegator_address,a=n.validator_address,i=n.shares,c=e.balance;return new t(r,a,new o.Dec(i),s.Coin.fromData(c))},t.prototype.toData=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.shares,a=e.balance;return{delegation:{delegator_address:t,validator_address:n,shares:r.toString()},balance:a.toData()}},t.fromProto=function(e){var n=e.delegation;return new t(n.delegatorAddress,n.validatorAddress,new o.Dec(n.shares),s.Coin.fromProto(e.balance))},t.prototype.toProto=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.shares,a=e.balance;return c.DelegationResponse.fromPartial({delegation:c.Delegation.fromPartial({delegatorAddress:t,shares:r.toString(),validatorAddress:n}),balance:a.toProto()})},t}(i.JSONSerializable);t.Delegation=u},4210:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Redelegation=void 0;var c=n(4789),u=n(78277),f=n(18672),d=s(n(12620)),l=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.delegator_address=t,i.validator_src_address=n,i.validator_dst_address=r,i.entries=a,i}return a(t,e),t.fromAmino=function(e){var n=e.redelegation;return new t(n.delegator_address,n.validator_src_address,n.validator_dst_address,e.entries.map((function(e){return t.Entry.fromAmino(e)})))},t.prototype.toAmino=function(){var e=this;return{redelegation:{delegator_address:e.delegator_address,validator_src_address:e.validator_src_address,validator_dst_address:e.validator_dst_address},entries:e.entries.map((function(e){return e.toAmino()}))}},t.fromData=function(e){var n=e.redelegation;return new t(n.delegator_address,n.validator_src_address,n.validator_dst_address,e.entries.map((function(e){return t.Entry.fromData(e)})))},t.prototype.toData=function(){var e=this;return{redelegation:{delegator_address:e.delegator_address,validator_src_address:e.validator_src_address,validator_dst_address:e.validator_dst_address},entries:e.entries.map((function(e){return e.toData()}))}},t.fromProto=function(e){var n=e.redelegation;return new t(n.delegatorAddress,n.validatorDstAddress,n.validatorDstAddress,e.entries.map((function(e){return t.Entry.fromProto(e)})))},t.prototype.toProto=function(){var e=this,t=e.delegator_address,n=e.validator_src_address,r=e.validator_dst_address,a=e.entries;return f.RedelegationResponse.fromPartial({entries:a.map((function(e){return e.toProto()})),redelegation:f.Redelegation.fromPartial({delegatorAddress:t,entries:a.map((function(e){return e.toProto().redelegationEntry})),validatorDstAddress:r,validatorSrcAddress:n})})},t}(c.JSONSerializable);t.Redelegation=l,function(e){var t=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.initial_balance=t,o.balance=n,o.shares_dst=r,o.creation_height=a,o.completion_time=i,o}return a(t,e),t.prototype.toAmino=function(){return{redelegation_entry:{initial_balance:this.initial_balance.toString(),shares_dst:this.shares_dst.toString(),creation_height:this.creation_height,completion_time:this.completion_time.toISOString()},balance:this.balance.toString()}},t.fromAmino=function(e){var n=e.redelegation_entry,r=n.initial_balance,a=n.shares_dst,i=n.creation_height,o=n.completion_time,s=e.balance;return new t(new u.Int(r),new u.Int(s),new u.Dec(a),i,new Date(o))},t.prototype.toData=function(){return{redelegation_entry:{initial_balance:this.initial_balance.toString(),shares_dst:this.shares_dst.toString(),creation_height:this.creation_height,completion_time:this.completion_time.toISOString()},balance:this.balance.toString()}},t.fromData=function(e){var n=e.redelegation_entry,r=n.initial_balance,a=n.shares_dst,i=n.creation_height,o=n.completion_time,s=e.balance;return new t(new u.Int(r),new u.Int(s),new u.Dec(a),i,new Date(o))},t.prototype.toProto=function(){var e=this,t=e.initial_balance,n=e.balance,r=e.shares_dst,a=e.creation_height,i=e.completion_time;return f.RedelegationEntryResponse.fromPartial({balance:n.toString(),redelegationEntry:f.RedelegationEntry.fromPartial({completionTime:i,creationHeight:d.fromNumber(a),initialBalance:t.toString(),sharesDst:r.toString()})})},t.fromProto=function(e){var n=e.redelegationEntry;return new t(new u.Int(n.initialBalance),new u.Int(e.balance),new u.Dec(n.sharesDst),n.creationHeight.toNumber(),n.completionTime)},t}(c.JSONSerializable);e.Entry=t}(l=t.Redelegation||(t.Redelegation={})),t.Redelegation=l},13033:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.UnbondingDelegation=void 0;var c=n(4789),u=n(78277),f=n(18672),d=s(n(12620)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.delegator_address=t,a.validator_address=n,a.entries=r,a}return a(t,e),t.fromAmino=function(e){return new t(e.delegator_address,e.validator_address,e.entries.map((function(e){return t.Entry.fromAmino(e)})))},t.prototype.toAmino=function(){var e=this;return{delegator_address:e.delegator_address,validator_address:e.validator_address,entries:e.entries.map((function(e){return e.toAmino()}))}},t.fromData=function(e){return new t(e.delegator_address,e.validator_address,e.entries.map((function(e){return t.Entry.fromData(e)})))},t.prototype.toData=function(){var e=this;return{delegator_address:e.delegator_address,validator_address:e.validator_address,entries:e.entries.map((function(e){return e.toData()}))}},t.prototype.toProto=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.entries;return f.UnbondingDelegation.fromPartial({delegatorAddress:t,entries:r.map((function(e){return e.toProto()})),validatorAddress:n})},t.fromProto=function(e){return new t(e.delegatorAddress,e.validatorAddress,e.entries.map((function(e){return t.Entry.fromProto(e)})))},t}(c.JSONSerializable);t.UnbondingDelegation=l,function(e){var t=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.initial_balance=t,i.balance=n,i.creation_height=r,i.completion_time=a,i}return a(t,e),t.prototype.toAmino=function(){return{initial_balance:this.initial_balance.toString(),balance:this.balance.toString(),creation_height:this.creation_height.toFixed(),completion_time:this.completion_time.toISOString()}},t.fromAmino=function(e){var n=e.initial_balance,r=e.balance,a=e.creation_height,i=e.completion_time;return new t(new u.Int(n),new u.Int(r),Number.parseInt(a),new Date(i))},t.prototype.toData=function(){return{initial_balance:this.initial_balance.toString(),balance:this.balance.toString(),creation_height:this.creation_height.toFixed(),completion_time:this.completion_time.toISOString()}},t.fromData=function(e){var n=e.initial_balance,r=e.balance,a=e.creation_height,i=e.completion_time;return new t(new u.Int(n),new u.Int(r),Number.parseInt(a),new Date(i))},t.prototype.toProto=function(){var e=this,t=e.initial_balance,n=e.balance,r=e.creation_height,a=e.completion_time;return f.UnbondingDelegationEntry.fromPartial({balance:n.toString(),completionTime:a,creationHeight:d.fromNumber(r),initialBalance:t.toString()})},t.fromProto=function(e){return new t(new u.Int(e.initialBalance),new u.Int(e.balance),e.creationHeight.toNumber(),e.completionTime)},t}(c.JSONSerializable);e.Entry=t}(l=t.UnbondingDelegation||(t.UnbondingDelegation={})),t.UnbondingDelegation=l},27344:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Validator=void 0;var c=n(4789),u=n(78277),f=n(49725),d=n(18672),l=s(n(12620)),p=function(e){function t(t,n,r,a,i,o,s,c,u,f,d){var l=e.call(this)||this;return l.operator_address=t,l.consensus_pubkey=n,l.jailed=r,l.status=a,l.tokens=i,l.delegator_shares=o,l.description=s,l.unbonding_height=c,l.unbonding_time=u,l.commission=f,l.min_self_delegation=d,l}return a(t,e),t.prototype.toAmino=function(){return{operator_address:this.operator_address,consensus_pubkey:this.consensus_pubkey.toAmino(),jailed:this.jailed,status:this.status,tokens:this.tokens.toString(),delegator_shares:this.delegator_shares.toString(),description:this.description,unbonding_height:this.unbonding_height.toFixed(),unbonding_time:this.unbonding_time.toISOString(),commission:this.commission.toAmino(),min_self_delegation:this.min_self_delegation.toString()}},t.fromAmino=function(e){return new t(e.operator_address,f.ValConsPublicKey.fromAmino(e.consensus_pubkey),e.jailed||!1,e.status||0,new u.Int(e.tokens),new u.Dec(e.delegator_shares),t.Description.fromAmino(e.description),Number.parseInt(e.unbonding_height),new Date(e.unbonding_time),t.Commission.fromAmino(e.commission),new u.Int(e.min_self_delegation))},t.prototype.toData=function(){return{operator_address:this.operator_address,consensus_pubkey:this.consensus_pubkey.toData(),jailed:this.jailed,status:this.status,tokens:this.tokens.toString(),delegator_shares:this.delegator_shares.toString(),description:this.description,unbonding_height:this.unbonding_height.toFixed(),unbonding_time:this.unbonding_time.toISOString(),commission:this.commission.toData(),min_self_delegation:this.min_self_delegation.toString()}},t.fromData=function(e){return new t(e.operator_address,f.ValConsPublicKey.fromData(e.consensus_pubkey),e.jailed||!1,e.status||0,new u.Int(e.tokens),new u.Dec(e.delegator_shares),t.Description.fromData(e.description),Number.parseInt(e.unbonding_height),new Date(e.unbonding_time),t.Commission.fromData(e.commission),new u.Int(e.min_self_delegation))},t.prototype.toProto=function(){var e=this,t=e.operator_address,n=e.consensus_pubkey,r=e.jailed,a=e.status,i=e.tokens,o=e.delegator_shares,s=e.description,c=e.unbonding_height,u=e.unbonding_time,f=e.commission,p=e.min_self_delegation;return d.Validator.fromPartial({commission:f.toProto(),consensusPubkey:n.packAny(),delegatorShares:o.toString(),description:s.toProto(),jailed:r,minSelfDelegation:p.toString(),operatorAddress:t,status:a,tokens:i.toString(),unbondingHeight:l.fromNumber(c),unbondingTime:u})},t.fromProto=function(e){return new t(e.operatorAddress,f.ValConsPublicKey.unpackAny(e.consensusPubkey),e.jailed,e.status,new u.Int(e.tokens),new u.Dec(e.delegatorShares),t.Description.fromProto(e.description),e.unbondingHeight.toNumber(),e.unbondingTime,t.Commission.fromProto(e.commission),new u.Int(e.minSelfDelegation))},t}(c.JSONSerializable);t.Validator=p,function(e){e.Status=d.BondStatus;var t=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.moniker=t,o.identity=n,o.website=r,o.details=a,o.security_contact=i,o}return a(t,e),t.prototype.toAmino=function(){return{moniker:this.moniker,identity:this.identity,website:this.website,details:this.details,security_contact:this.security_contact}},t.fromAmino=function(e){return new t(e.moniker,e.identity||"",e.website||"",e.details||"",e.security_contact||"")},t.prototype.toData=function(){return{moniker:this.moniker,identity:this.identity,website:this.website,details:this.details,security_contact:this.security_contact}},t.fromData=function(e){return new t(e.moniker,e.identity||"",e.website||"",e.details||"",e.security_contact||"")},t.prototype.toProto=function(){var e=this,t=e.moniker,n=e.identity,r=e.website,a=e.details,i=e.security_contact;return d.Description.fromPartial({details:a,identity:n,moniker:t,securityContact:i,website:r})},t.fromProto=function(e){return new t(e.moniker,e.identity,e.website,e.details,e.securityContact)},t}(c.JSONSerializable);e.Description=t;var n=function(e){function t(t,n,r){var a=e.call(this)||this;return a.rate=t,a.max_rate=n,a.max_change_rate=r,a}return a(t,e),t.fromAmino=function(e){var n=e.rate,r=e.max_rate,a=e.max_change_rate;return new t(new u.Dec(n),new u.Dec(r),new u.Dec(a))},t.prototype.toAmino=function(){var e=this,t=e.rate,n=e.max_rate,r=e.max_change_rate;return{rate:t.toString(),max_rate:n.toString(),max_change_rate:r.toString()}},t.fromData=function(e){var n=e.rate,r=e.max_rate,a=e.max_change_rate;return new t(new u.Dec(n),new u.Dec(r),new u.Dec(a))},t.prototype.toData=function(){var e=this,t=e.rate,n=e.max_rate,r=e.max_change_rate;return{rate:t.toString(),max_rate:n.toString(),max_change_rate:r.toString()}},t.fromProto=function(e){return new t(new u.Dec(e.rate),new u.Dec(e.maxRate),new u.Dec(e.maxChangeRate))},t.prototype.toProto=function(){var e=this,t=e.rate,n=e.max_rate,r=e.max_change_rate;return d.CommissionRates.fromPartial({maxChangeRate:r.toString(),maxRate:n.toString(),rate:t.toString()})},t}(c.JSONSerializable);e.CommissionRates=n;var r=function(e){function t(t,n){var r=e.call(this)||this;return r.commission_rates=t,r.update_time=n,r}return a(t,e),t.prototype.toAmino=function(){return{commission_rates:this.commission_rates.toAmino(),update_time:this.update_time.toISOString()}},t.fromAmino=function(e){return new t(n.fromAmino(e.commission_rates),new Date(e.update_time))},t.prototype.toData=function(){return{commission_rates:this.commission_rates.toData(),update_time:this.update_time.toISOString()}},t.fromData=function(e){return new t(n.fromData(e.commission_rates),new Date(e.update_time))},t.prototype.toProto=function(){var e=this.commission_rates,t=this.update_time;return d.Commission.fromPartial({commissionRates:e.toProto(),updateTime:t})},t.fromProto=function(e){return new t(n.fromProto(e.commissionRates),e.updateTime)},t}(c.JSONSerializable);e.Commission=r}(p=t.Validator||(t.Validator={})),t.Validator=p},42419:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgBeginRedelegate=void 0;var i=n(4789),o=n(27657),s=n(81019),c=n(47111),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.delegator_address=t,i.validator_src_address=n,i.validator_dst_address=r,i.amount=a,i}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.delegator_address,i=r.validator_src_address,s=r.validator_dst_address,c=r.amount;return new t(a,i,s,o.Coin.fromAmino(c))},t.prototype.toAmino=function(e){var t=this;return{type:e?"staking/MsgBeginRedelegate":"cosmos-sdk/MsgBeginRedelegate",value:{delegator_address:t.delegator_address,validator_src_address:t.validator_src_address,validator_dst_address:t.validator_dst_address,amount:t.amount.toAmino()}}},t.fromData=function(e,n){var r=e.delegator_address,a=e.validator_src_address,i=e.validator_dst_address,s=e.amount;return new t(r,a,i,o.Coin.fromData(s))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.staking.v1beta1.MsgBeginRedelegate",delegator_address:t.delegator_address,validator_src_address:t.validator_src_address,validator_dst_address:t.validator_dst_address,amount:t.amount.toData()}},t.fromProto=function(e,n){return new t(e.delegatorAddress,e.validatorSrcAddress,e.validatorDstAddress,o.Coin.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this,n=t.delegator_address,r=t.validator_src_address,a=t.validator_dst_address,i=t.amount;return c.MsgBeginRedelegate.fromPartial({amount:i.toProto(),delegatorAddress:n,validatorDstAddress:a,validatorSrcAddress:r})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgBeginRedelegate",value:c.MsgBeginRedelegate.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgBeginRedelegate.decode(e.value),n)},t}(i.JSONSerializable);t.MsgBeginRedelegate=u},20092:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreateValidator=void 0;var i=n(4789),o=n(27657),s=n(78277),c=n(27344),u=n(81019),f=n(47111),d=n(49725),l=function(e){function t(t,n,r,a,i,o,s){var c=e.call(this)||this;return c.description=t,c.commission=n,c.min_self_delegation=r,c.delegator_address=a,c.validator_address=i,c.pubkey=o,c.value=s,c}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.description,i=r.commission,u=r.min_self_delegation,f=r.delegator_address,l=r.validator_address,p=r.pubkey,b=r.value;return new t(a,c.Validator.CommissionRates.fromAmino(i),new s.Int(u),f,l,d.ValConsPublicKey.fromAmino(p),o.Coin.fromAmino(b))},t.prototype.toAmino=function(e){var t=this,n=t.description,r=t.commission,a=t.min_self_delegation,i=t.delegator_address,o=t.validator_address,s=t.pubkey,c=t.value;return{type:e?"staking/MsgCreateValidator":"cosmos-sdk/MsgCreateValidator",value:{description:n,commission:r.toAmino(),min_self_delegation:a.toString(),delegator_address:i,validator_address:o,pubkey:s.toAmino(),value:c.toAmino()}}},t.fromData=function(e,n){var r=e.description,a=e.commission,i=e.min_self_delegation,u=e.delegator_address,f=e.validator_address,l=e.pubkey,p=e.value;return new t(r,c.Validator.CommissionRates.fromData(a),new s.Int(i),u,f,d.ValConsPublicKey.fromData(l),o.Coin.fromData(p))},t.prototype.toData=function(e){var t=this,n=t.description,r=t.commission,a=t.min_self_delegation,i=t.delegator_address,o=t.validator_address,s=t.pubkey,c=t.value;return{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator",description:n,commission:r.toData(),min_self_delegation:a.toString(),delegator_address:i,validator_address:o,pubkey:s.toData(),value:c.toData()}},t.fromProto=function(e,n){return new t(c.Validator.Description.fromProto(e.description),c.Validator.CommissionRates.fromProto(e.commission),new s.Int(e.minSelfDelegation),e.delegatorAddress,e.validatorAddress,d.PublicKey.fromProto(e.pubkey),o.Coin.fromProto(e.value))},t.prototype.toProto=function(e){var t=this,n=t.description,r=t.commission,a=t.min_self_delegation,i=t.delegator_address,o=t.validator_address,s=t.pubkey,c=t.value;return f.MsgCreateValidator.fromPartial({commission:r.toProto(),delegatorAddress:i,description:n.toProto(),minSelfDelegation:a.toString(),pubkey:s.packAny(),validatorAddress:o,value:c.toProto()})},t.prototype.packAny=function(e){return u.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgCreateValidator",value:f.MsgCreateValidator.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgCreateValidator.decode(e.value),n)},t}(i.JSONSerializable);t.MsgCreateValidator=l},61539:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgDelegate=void 0;var i=n(27657),o=n(4789),s=n(81019),c=n(47111),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.delegator_address=t,a.validator_address=n,a.amount=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.delegator_address,o=r.validator_address,s=r.amount;return new t(a,o,i.Coin.fromAmino(s))},t.prototype.toAmino=function(e){var t=this;return{type:e?"staking/MsgDelegate":"cosmos-sdk/MsgDelegate",value:{delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toAmino()}}},t.fromProto=function(e,n){return new t(e.delegatorAddress,e.validatorAddress,i.Coin.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this,n=t.delegator_address,r=t.validator_address,a=t.amount;return c.MsgDelegate.fromPartial({amount:a.toProto(),delegatorAddress:n,validatorAddress:r})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:c.MsgDelegate.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgDelegate.decode(e.value),n)},t.fromData=function(e,n){var r=e.delegator_address,a=e.validator_address,o=e.amount;return new t(r,a,i.Coin.fromData(o))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.staking.v1beta1.MsgDelegate",delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toData()}},t}(o.JSONSerializable);t.MsgDelegate=u},9507:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgEditValidator=void 0;var i=n(4789),o=n(78277),s=n(27344),c=n(81019),u=n(47111),f=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.description=t,i.validator_address=n,i.commission_rate=r,i.min_self_delegation=a,i}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.description,i=r.validator_address,c=r.commission_rate,u=r.min_self_delegation;return new t(s.Validator.Description.fromAmino(a),i,c?new o.Dec(c):void 0,u?new o.Int(u):void 0)},t.prototype.toAmino=function(e){var t=this,n=t.description,r=t.validator_address,a=t.commission_rate,i=t.min_self_delegation;return{type:e?"staking/MsgEditValidator":"cosmos-sdk/MsgEditValidator",value:{description:n,validator_address:r,commission_rate:a?a.toString():void 0,min_self_delegation:i?i.toString():void 0}}},t.fromProto=function(e,n){return new t(s.Validator.Description.fromProto(e.description),e.validatorAddress,""!==e.commissionRate?new o.Dec(e.commissionRate):void 0,""!==e.minSelfDelegation?new o.Int(e.minSelfDelegation):void 0)},t.prototype.toProto=function(e){var t=this,n=t.description,r=t.validator_address,a=t.commission_rate,i=t.min_self_delegation;return u.MsgEditValidator.fromPartial({description:n.toProto(),commissionRate:(null==a?void 0:a.toString())||"",minSelfDelegation:(null==i?void 0:i.toString())||"",validatorAddress:r})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgEditValidator",value:u.MsgEditValidator.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgEditValidator.decode(e.value),n)},t.fromData=function(e,n){var r=e.description,a=e.validator_address,i=e.commission_rate,c=e.min_self_delegation;return new t(s.Validator.Description.fromData(r),a,i?new o.Dec(i):void 0,c?new o.Int(c):void 0)},t.prototype.toData=function(e){var t=this,n=t.description,r=t.validator_address,a=t.commission_rate,i=t.min_self_delegation;return{"@type":"/cosmos.staking.v1beta1.MsgEditValidator",description:n,validator_address:r,commission_rate:a?a.toString():void 0,min_self_delegation:i?i.toString():void 0}},t}(i.JSONSerializable);t.MsgEditValidator=f,function(e){e.DESC_DO_NOT_MODIFY={moniker:"[do-not-modify]",website:"[do-not-modify]",identity:"[do-not-modify]",details:"[do-not-modify]",security_contact:"[do-not-modify]"}}(f=t.MsgEditValidator||(t.MsgEditValidator={})),t.MsgEditValidator=f},33762:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUndelegate=void 0;var i=n(27657),o=n(4789),s=n(81019),c=n(47111),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.delegator_address=t,a.validator_address=n,a.amount=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.delegator_address,o=r.validator_address,s=r.amount;return new t(a,o,i.Coin.fromAmino(s))},t.prototype.toAmino=function(e){var t=this;return{type:e?"staking/MsgUndelegate":"cosmos-sdk/MsgUndelegate",value:{delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toAmino()}}},t.fromProto=function(e,n){return new t(e.delegatorAddress,e.validatorAddress,i.Coin.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this,n=t.delegator_address,r=t.validator_address,a=t.amount;return c.MsgUndelegate.fromPartial({amount:a.toProto(),delegatorAddress:n,validatorAddress:r})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:c.MsgUndelegate.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgUndelegate.decode(e.value),n)},t.fromData=function(e,n){var r=e.delegator_address,a=e.validator_address,o=e.amount;return new t(r,a,i.Coin.fromData(o))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.staking.v1beta1.MsgUndelegate",delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toData()}},t}(o.JSONSerializable);t.MsgUndelegate=u},49293:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(61539),t),a(n(33762),t),a(n(42419),t),a(n(20092),t),a(n(9507),t)},67811:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PolicyConstraints=void 0;var i=n(4789),o=n(27657),s=n(78277),c=n(7191),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.cap=r,i.rate_min=new s.Dec(t),i.rate_max=new s.Dec(n),i.change_rate_max=new s.Dec(a),i}return a(t,e),t.fromAmino=function(e){var n=e.rate_min,r=e.rate_max,a=e.cap,i=e.change_rate_max;return new t(n,r,o.Coin.fromAmino(a),i)},t.prototype.toAmino=function(){var e=this,t=e.rate_min,n=e.rate_max,r=e.cap,a=e.change_rate_max;return{rate_min:t.toString(),rate_max:n.toString(),cap:r.toAmino(),change_rate_max:a.toString()}},t.fromData=function(e){var n=e.rate_min,r=e.rate_max,a=e.cap,i=e.change_rate_max;return new t(n,r,o.Coin.fromData(a),i)},t.prototype.toData=function(){var e=this,t=e.rate_min,n=e.rate_max,r=e.cap,a=e.change_rate_max;return{rate_min:t.toString(),rate_max:n.toString(),cap:r.toData(),change_rate_max:a.toString()}},t.fromProto=function(e){return new t(e.rateMax,e.rateMin,o.Coin.fromProto(e.cap),e.changeRateMax)},t.prototype.toProto=function(){var e=this,t=e.rate_min,n=e.rate_max,r=e.cap,a=e.change_rate_max;return c.PolicyConstraints.fromPartial({cap:r.toProto(),changeRateMax:a.toString(),rateMax:n.toString(),rateMin:t.toString()})},t.prototype.clamp=function(e,t){var n=new s.Dec(e),r=new s.Dec(t);r.lt(this.rate_min)?r=this.rate_min:r.gt(this.rate_max)&&(r=this.rate_max);var a=r.sub(n);return r.gt(n)?a.gt(this.change_rate_max)&&(r=n.add(this.change_rate_max)):a.abs().gt(this.change_rate_max)&&(r=n.sub(this.change_rate_max)),r},t}(i.JSONSerializable);t.PolicyConstraints=u},63674:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AddBurnTaxExemptionAddressProposal=void 0;var i=n(4789),o=n(81019),s=n(86485),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.addresses=r,a}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.addresses)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{type:"treasury/AddBurnTaxExemptionAddressProposal",value:{title:t.title,description:t.description,addresses:t.addresses}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.addresses)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{"@type":"/terra.treasury.v1beta1.AddBurnTaxExemptionAddressProposal",title:t.title,description:t.description,addresses:t.addresses}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.addresses)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.addresses;return s.AddBurnTaxExemptionAddressProposal.fromPartial({title:n,description:r,addresses:a})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/terra.treasury.v1beta1.AddBurnTaxExemptionAddressProposal",value:s.AddBurnTaxExemptionAddressProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.AddBurnTaxExemptionAddressProposal.decode(e.value),n)},t}(i.JSONSerializable);t.AddBurnTaxExemptionAddressProposal=c},33385:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveBurnTaxExemptionAddressProposal=void 0;var i=n(4789),o=n(81019),s=n(86485),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.addresses=r,a}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.addresses)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{type:"treasury/RemoveBurnTaxExemptionAddressProposal",value:{title:t.title,description:t.description,addresses:t.addresses}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.addresses)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{"@type":"/terra.treasury.v1beta1.RemoveBurnTaxExemptionAddressProposal",title:t.title,description:t.description,addresses:t.addresses}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.addresses)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.addresses;return s.RemoveBurnTaxExemptionAddressProposal.fromPartial({title:n,description:r,addresses:a})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/terra.treasury.v1beta1.RemoveBurnTaxExemptionAddressProposal",value:s.RemoveBurnTaxExemptionAddressProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.RemoveBurnTaxExemptionAddressProposal.decode(e.value),n)},t}(i.JSONSerializable);t.RemoveBurnTaxExemptionAddressProposal=c},99211:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(63674),t),a(n(33385),t)},76069:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Plan=void 0;var o=n(4789),s=n(34962),c=i(n(12620)),u=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.name=t,o.time=n,o.height=r,o.info=a,o.upgraded_client_state=i,o}return a(t,e),t.fromAmino=function(e){var n=e.name,r=e.time,a=e.height,i=e.info,o=e.upgraded_client_state;return new t(n,r?new Date(r):void 0,a,i,o)},t.prototype.toAmino=function(){var e=this,t=e.name,n=e.time,r=e.height,a=e.info,i=e.upgraded_client_state;return{name:t,time:n?n.toISOString().replace(/\.000Z$/,"Z"):void 0,height:r,info:a,upgraded_client_state:i}},t.fromData=function(e){var n=e.name,r=e.time,a=e.height,i=e.info,o=e.upgraded_client_state;return new t(n,r?new Date(r):void 0,a,i,o)},t.prototype.toData=function(){var e=this,t=e.name,n=e.time,r=e.height,a=e.info,i=e.upgraded_client_state;return{name:t,time:n?n.toISOString().replace(/\.000Z$/,"Z"):void 0,height:r,info:a,upgraded_client_state:i}},t.fromProto=function(e){return new t(e.name,e.time,e.height.toString(),e.info,e.upgradedClientState)},t.prototype.toProto=function(){var e=this,t=e.name,n=e.time,r=e.height,a=e.info,i=e.upgraded_client_state;return s.Plan.fromPartial({name:t,time:n,height:c.default.fromString(r),info:a,upgradedClientState:i})},t}(o.JSONSerializable);t.Plan=u},57482:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(76069),t),a(n(73121),t)},37674:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CancelSoftwareUpgradeProposal=void 0;var i=n(4789),o=n(81019),s=n(34962),c=function(e){function t(t,n){var r=e.call(this)||this;return r.title=t,r.description=n,r}return a(t,e),t.fromAmino=function(e,n){var r=e.value;return new t(r.title,r.description)},t.prototype.toAmino=function(e){return{type:e?"upgrade/CancelSoftwareUpgradeProposal":"cosmos-sdk/CancelSoftwareUpgradeProposal",value:{title:this.title,description:this.description}}},t.fromData=function(e,n){return new t(e.title,e.description)},t.prototype.toData=function(e){return{"@type":"/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",title:this.title,description:this.description}},t.fromProto=function(e,n){return new t(e.title,e.description)},t.prototype.toProto=function(e){var t=this.title,n=this.description;return s.CancelSoftwareUpgradeProposal.fromPartial({title:t,description:n})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",value:s.CancelSoftwareUpgradeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.CancelSoftwareUpgradeProposal.decode(e.value),n)},t}(i.JSONSerializable);t.CancelSoftwareUpgradeProposal=c},4392:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SoftwareUpgradeProposal=void 0;var i=n(4789),o=n(81019),s=n(34962),c=n(76069),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.plan=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.title,i=r.description,o=r.plan;return new t(a,i,o?c.Plan.fromAmino(o):void 0)},t.prototype.toAmino=function(e){var t=this,n=t.title,r=t.description,a=t.plan;return{type:e?"upgrade/SoftwareUpgradeProposal":"cosmos-sdk/SoftwareUpgradeProposal",value:{title:n,description:r,plan:a?a.toAmino():void 0}}},t.fromData=function(e,n){var r=e.title,a=e.description,i=e.plan;return new t(r,a,i?c.Plan.fromData(i):void 0)},t.prototype.toData=function(e){var t=this,n=t.title,r=t.description,a=t.plan;return{"@type":"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",title:n,description:r,plan:a?a.toData():void 0}},t.fromProto=function(e,n){return new t(e.title,e.description,e.plan?c.Plan.fromProto(e.plan):void 0)},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,a=t.plan;return s.SoftwareUpgradeProposal.fromPartial({title:n,description:r,plan:a?a.toProto():void 0})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",value:s.SoftwareUpgradeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.SoftwareUpgradeProposal.decode(e.value),n)},t}(i.JSONSerializable);t.SoftwareUpgradeProposal=u},73121:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(4392),t),a(n(37674),t)},27265:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Period=void 0;var c=n(25678),u=n(25101),f=n(4789),d=s(n(12620)),l=function(e){function t(t,n){var r=e.call(this)||this;return r.length=t,r.amount=new c.Coins(n),r}return a(t,e),t.fromAmino=function(e,n){var r=e.length,a=e.amount;return new t(Number.parseInt(r),c.Coins.fromAmino(a))},t.prototype.toAmino=function(e){var t=this.length,n=this.amount;return{length:t.toFixed(),amount:n.toAmino()}},t.fromData=function(e,n){var r=e.length,a=e.amount;return new t(Number.parseInt(r),c.Coins.fromData(a))},t.prototype.toData=function(e){var t=this.length,n=this.amount;return{length:t.toFixed(),amount:n.toData()}},t.fromProto=function(e,n){return new t(e.length.toNumber(),c.Coins.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this.length,n=this.amount;return u.Period.fromPartial({length:d.fromNumber(t),amount:n.toProto()})},t}(f.JSONSerializable);t.Period=l},9829:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(27265),t),a(n(55456),t)},87317:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreatePeriodicVestingAccount=void 0;var o=n(27265),s=n(4789),c=n(81019),u=n(71967),f=i(n(12620)),d=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.from_address=t,i.to_address=n,i.start_time=r,i.vesting_periods=a,i}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.from_address,i=r.to_address,s=r.start_time,c=r.vesting_periods;return new t(a,i,Number.parseInt(s),c.map((function(e){return o.Period.fromAmino(e,n)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.start_time,i=t.vesting_periods;return{type:"cosmos-sdk/MsgCreatePeriodicVestingAccount",value:{from_address:n,to_address:r,start_time:a.toFixed(),vesting_periods:i.map((function(t){return t.toAmino(e)}))}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.from_address,a=e.to_address,i=e.start_time,s=e.vesting_periods;return new t(r,a,Number.parseInt(i),s.map((function(e){return o.Period.fromData(e,n)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.start_time,i=t.vesting_periods;return{"@type":"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",from_address:n,to_address:r,start_time:a.toFixed(),vesting_periods:i.map((function(t){return t.toData(e)}))}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.fromAddress,e.toAddress,e.startTime.toNumber(),e.vestingPeriods.map((function(e){return o.Period.fromProto(e,n)})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.start_time,i=t.vesting_periods;return u.MsgCreatePeriodicVestingAccount.fromPartial({fromAddress:n,toAddress:r,startTime:f.default.fromNumber(a),vestingPeriods:i.map((function(t){return t.toProto(e)}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",value:u.MsgCreatePeriodicVestingAccount.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(u.MsgCreatePeriodicVestingAccount.decode(e.value),n)},t}(s.JSONSerializable);t.MsgCreatePeriodicVestingAccount=d},42824:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreateVestingAccount=void 0;var o=n(25678),s=n(4789),c=n(81019),u=n(71967),f=i(n(12620)),d=function(e){function t(t,n,r,a,i){var s=e.call(this)||this;return s.from_address=t,s.to_address=n,s.end_time=a,s.delayed=i,s.amount=new o.Coins(r),s}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.from_address,i=r.to_address,s=r.amount,c=r.end_time,u=r.delayed;return new t(a,i,o.Coins.fromAmino(s),Number.parseInt(c),u)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.amount,i=t.end_time,o=t.delayed;return{type:"cosmos-sdk/MsgCreateVestingAccount",value:{from_address:n,to_address:r,amount:a.toAmino(),end_time:i.toFixed(),delayed:o}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.from_address,a=e.to_address,i=e.amount,s=e.end_time,c=e.delayed;return new t(r,a,o.Coins.fromData(i),Number.parseInt(s),c)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.amount,i=t.end_time,o=t.delayed;return{"@type":"/cosmos.vesting.v1beta1.MsgCreateVestingAccount",from_address:n,to_address:r,amount:a.toData(),end_time:i.toFixed(),delayed:o}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.fromAddress,e.toAddress,o.Coins.fromProto(e.amount),e.endTime.toNumber(),e.delayed)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.amount,i=t.end_time,o=t.delayed;return u.MsgCreateVestingAccount.fromPartial({fromAddress:n,toAddress:r,amount:a.toProto(),endTime:f.default.fromNumber(i),delayed:o})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/cosmos.vesting.v1beta1.MsgCreateVestingAccount",value:u.MsgCreateVestingAccount.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(u.MsgCreateVestingAccount.decode(e.value),n)},t}(s.JSONSerializable);t.MsgCreateVestingAccount=d},55238:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgDonateAllVestingTokens=void 0;var i=n(4789),o=n(81019),s=n(71967),c=function(e){function t(t){var n=e.call(this)||this;return n.from_address=t,n}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.value.from_address)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");return{type:"cosmos-sdk/MsgDonateAllVestingTokens",value:{from_address:this.from_address}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.from_address)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");return{"@type":"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens",from_address:this.from_address}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.fromAddress)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");return s.MsgDonateAllVestingTokens.fromPartial({fromAddress:this.from_address})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens",value:s.MsgDonateAllVestingTokens.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.MsgDonateAllVestingTokens.decode(e.value),n)},t}(i.JSONSerializable);t.MsgDonateAllVestingTokens=c},55456:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(87317),t),a(n(42824),t),a(n(55238),t)},58133:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AbsoluteTxPosition=void 0;var c=n(10763),u=n(4789),f=s(n(12620)),d=function(e){function t(t,n){var r=e.call(this)||this;return r.block_height=t,r.tx_index=n,r}return a(t,e),t.fromAmino=function(e){return new t(Number.parseInt(e.block_height),Number.parseInt(e.tx_index))},t.prototype.toAmino=function(){return{block_height:this.block_height.toFixed(),tx_index:this.tx_index.toFixed()}},t.fromData=function(e){return new t(Number.parseInt(e.block_height),Number.parseInt(e.tx_index))},t.prototype.toData=function(){return{block_height:this.block_height.toFixed(),tx_index:this.tx_index.toFixed()}},t.fromProto=function(e){return new t(e.blockHeight.toNumber(),e.txIndex.toNumber())},t.prototype.toProto=function(){return c.AbsoluteTxPosition.fromPartial({blockHeight:f.fromNumber(this.block_height),txIndex:f.fromNumber(this.tx_index)})},t}(u.JSONSerializable);t.AbsoluteTxPosition=d},95276:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessConfig=t.AccessType=void 0;var i=n(10763);Object.defineProperty(t,"AccessType",{enumerable:!0,get:function(){return i.AccessType}});var o=n(4789),s=n(35613),c=function(e){function t(t,n){var r=e.call(this)||this;return r.permission=t,r.address=n,r}return a(t,e),t.fromAmino=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.permission),e.address)},t.prototype.toAmino=function(){return{permission:(0,i.accessTypeToJSON)(this.permission),address:this.address}},t.fromData=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.permission),e.address)},t.prototype.toData=function(){return{permission:(0,i.accessTypeToJSON)(this.permission),address:this.address}},t.fromProto=function(e){return new t(e.permission,e.address)},t.prototype.toProto=function(){return i.AccessConfig.fromPartial({permission:this.permission,address:this.address})},t}(o.JSONSerializable);t.AccessConfig=c},58231:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AccessConfigUpdate=void 0;var c=n(15679),u=n(4789),f=n(95276),d=s(n(12620)),l=function(e){function t(t,n){var r=e.call(this)||this;return r.code_id=t,r.instantiate_permission=n,r}return a(t,e),t.fromAmino=function(e){return new t(Number.parseInt(e.code_id),e.instantiate_permission?f.AccessConfig.fromAmino(e.instantiate_permission):void 0)},t.prototype.toAmino=function(){var e;return{code_id:this.code_id.toFixed(),instantiate_permission:null===(e=this.instantiate_permission)||void 0===e?void 0:e.toAmino()}},t.fromData=function(e){return new t(Number.parseInt(e.code_id),e.instantiate_permission?f.AccessConfig.fromData(e.instantiate_permission):void 0)},t.prototype.toData=function(){var e;return{code_id:this.code_id.toFixed(),instantiate_permission:null===(e=this.instantiate_permission)||void 0===e?void 0:e.toData()}},t.fromProto=function(e){return new t(e.codeId.toNumber(),e.instantiatePermission?f.AccessConfig.fromProto(e.instantiatePermission):void 0)},t.prototype.toProto=function(){var e;return c.AccessConfigUpdate.fromPartial({codeId:d.fromNumber(this.code_id),instantiatePermission:null===(e=this.instantiate_permission)||void 0===e?void 0:e.toProto()})},t}(u.JSONSerializable);t.AccessConfigUpdate=l},59007:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessTypeParam=t.AccessType=void 0;var i=n(10763);Object.defineProperty(t,"AccessType",{enumerable:!0,get:function(){return i.AccessType}});var o=n(4789),s=n(35613),c=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return a(t,e),t.fromAmino=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.value))},t.prototype.toAmino=function(){return{value:(0,i.accessTypeToJSON)(this.value)}},t.fromData=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.value))},t.prototype.toData=function(){return{value:(0,i.accessTypeToJSON)(this.value)}},t.fromProto=function(e){return new t(e.value)},t.prototype.toProto=function(){return i.AccessTypeParam.fromPartial({value:this.value})},t}(o.JSONSerializable);t.AccessTypeParam=c},7319:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryEntry=void 0;var u=n(10763),f=n(4789),d=c(n(12620)),l=n(58133),p=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.operation=t,i.code_id=n,i.updated=r,i.msg=a,i}return i(t,e),t.fromAmino=function(e){return new t((0,u.contractCodeHistoryOperationTypeFromJSON)(e.operation),Number.parseInt(e.code_id),e.updated?l.AbsoluteTxPosition.fromAmino(e.updated):void 0,e.msg)},t.prototype.toAmino=function(){var e;return{operation:(0,u.contractCodeHistoryOperationTypeToJSON)(this.operation),code_id:this.code_id.toFixed(),updated:null===(e=this.updated)||void 0===e?void 0:e.toAmino(),msg:this.msg}},t.fromData=function(e){return new t((0,u.contractCodeHistoryOperationTypeFromJSON)(e.operation),Number.parseInt(e.code_id),e.updated?l.AbsoluteTxPosition.fromData(e.updated):void 0,e.msg)},t.prototype.toData=function(){var e;return{operation:(0,u.contractCodeHistoryOperationTypeToJSON)(this.operation),code_id:this.code_id.toFixed(),updated:null===(e=this.updated)||void 0===e?void 0:e.toData(),msg:this.msg}},t.fromProto=function(e){return new t(e.operation,e.codeId.toNumber(),e.updated?l.AbsoluteTxPosition.fromProto(e.updated):void 0,JSON.parse(a.from(e.msg).toString("utf-8")))},t.prototype.toProto=function(){var e;return u.ContractCodeHistoryEntry.fromPartial({operation:this.operation,codeId:d.fromNumber(this.code_id),updated:null===(e=this.updated)||void 0===e?void 0:e.toProto(),msg:a.from(JSON.stringify((0,f.removeNull)(this.msg)),"utf-8")})},t}(f.JSONSerializable);t.HistoryEntry=p},12987:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(59007),t),a(n(95276),t)},16973:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClearContractAdmin=void 0;var i=n(4789),o=n(81019),s=n(5678),c=n(2314),u=function(e){function t(t,n){var r=e.call(this)||this;return r.admin=t,r.contract=n,r}return a(t,e),t.fromAmino=function(e,n){if(n){var r=e.value;return new t(r.admin,r.contract)}var a=e.value;return new t(a.sender,a.contract)},t.prototype.toAmino=function(e){var t=this.admin,n=this.contract;return e?{type:"wasm/MsgClearContractAdmin",value:{admin:t,contract:n}}:{type:"wasm/MsgClearAdmin",value:{sender:t,contract:n}}},t.fromProto=function(e,n){if(n){var r=e;return new t(r.admin,r.contract)}var a=e;return new t(a.sender,a.contract)},t.prototype.toProto=function(e){return e?s.MsgClearContractAdmin.fromPartial({admin:this.admin,contract:this.contract}):c.MsgClearAdmin.fromPartial({sender:this.admin,contract:this.contract})},t.prototype.packAny=function(e){return e?o.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgClearContractAdmin",value:s.MsgClearContractAdmin.encode(this.toProto(e)).finish()}):o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgClearAdmin",value:c.MsgClearAdmin.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(s.MsgClearContractAdmin.decode(e.value),n):t.fromProto(c.MsgClearAdmin.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e;return new t(r.admin,r.contract)}var a=e;return new t(a.sender,a.contract)},t.prototype.toData=function(e){return e?{"@type":"/terra.wasm.v1beta1.MsgClearContractAdmin",admin:this.admin,contract:this.contract}:{"@type":"/cosmwasm.wasm.v1.MsgClearAdmin",sender:this.admin,contract:this.contract}},t}(i.JSONSerializable);t.MsgClearContractAdmin=u},64433:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgExecuteContract=void 0;var o=n(4789),s=n(25678),c=n(81019),u=n(5678),f=n(2314),d=function(e){function t(t,n,r,a){void 0===a&&(a={});var i=e.call(this)||this;return i.sender=t,i.contract=n,i.execute_msg=r,i.coins=new s.Coins(a),i}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value,a=r.sender,i=r.contract,o=r.execute_msg,c=r.coins;return new t(a,i,o,s.Coins.fromAmino(c))}var u=e.value,f=(a=u.sender,i=u.contract,u.msg),d=u.funds;return new t(a,i,f,s.Coins.fromAmino(d))},t.prototype.toAmino=function(e){var t=this,n=t.sender,r=t.contract,a=t.execute_msg,i=t.coins;return e?{type:"wasm/MsgExecuteContract",value:{sender:n,contract:r,execute_msg:(0,o.removeNull)(a),coins:i.toAmino()}}:{type:"wasm/MsgExecuteContract",value:{sender:n,contract:r,msg:(0,o.removeNull)(a),funds:i.toAmino()}}},t.fromProto=function(e,n){var r;return n?new t((r=e).sender,r.contract,JSON.parse(a.from(r.executeMsg).toString("utf-8")),s.Coins.fromProto(r.coins)):new t((r=e).sender,r.contract,JSON.parse(a.from(r.msg).toString("utf-8")),s.Coins.fromProto(r.funds))},t.prototype.toProto=function(e){var t=this,n=t.sender,r=t.contract,i=t.execute_msg,s=t.coins;return e?u.MsgExecuteContract.fromPartial({coins:s.toProto(),contract:r,sender:n,executeMsg:a.from(JSON.stringify((0,o.removeNull)(i)),"utf-8")}):f.MsgExecuteContract.fromPartial({funds:s.toProto(),contract:r,sender:n,msg:a.from(JSON.stringify((0,o.removeNull)(i)),"utf-8")})},t.prototype.packAny=function(e){return e?c.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgExecuteContract",value:u.MsgExecuteContract.encode(this.toProto(e)).finish()}):c.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgExecuteContract",value:f.MsgExecuteContract.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(n?u.MsgExecuteContract.decode(e.value):f.MsgExecuteContract.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e,a=r.sender,i=r.contract,o=r.execute_msg,c=r.coins;return new t(a,i,o,s.Coins.fromData(c))}var u=e,f=(a=u.sender,i=u.contract,u.msg),d=u.funds;return new t(a,i,f,s.Coins.fromData(d))},t.prototype.toData=function(e){var t=this,n=t.sender,r=t.contract,a=t.execute_msg,i=t.coins;return e?{"@type":"/terra.wasm.v1beta1.MsgExecuteContract",sender:n,contract:r,execute_msg:a,coins:i.toData()}:{"@type":"/cosmwasm.wasm.v1.MsgExecuteContract",sender:n,contract:r,msg:a,funds:i.toData()}},t}(o.JSONSerializable);t.MsgExecuteContract=d},296:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgInstantiateContract=void 0;var u=n(4789),f=n(25678),d=n(81019),l=n(5678),p=n(2314),b=c(n(12620)),h=function(e){function t(t,n,r,a,i,o){void 0===i&&(i={});var s=e.call(this)||this;return s.sender=t,s.admin=n,s.code_id=r,s.init_msg=a,s.label=o,s.init_coins=new f.Coins(i),s}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value,a=r.sender,i=r.admin,o=r.code_id,s=r.init_msg,c=r.init_coins;return new t(a,i,Number.parseInt(o),s,f.Coins.fromAmino(c))}var u=e.value,d=(a=u.sender,i=u.admin,o=u.code_id,u.msg),l=u.funds,p=u.label;return new t(a,i,Number.parseInt(o),d,f.Coins.fromAmino(l),p)},t.prototype.toAmino=function(e){var t=this,n=t.sender,r=t.admin,a=t.code_id,i=t.init_msg,o=t.init_coins,s=t.label;return e?{type:"wasm/MsgInstantiateContract",value:{sender:n,admin:r,code_id:a.toFixed(),init_msg:(0,u.removeNull)(i),init_coins:o.toAmino()}}:{type:"wasm/MsgInstantiateContract",value:{sender:n,admin:r,code_id:a.toFixed(),label:s,msg:(0,u.removeNull)(i),funds:o.toAmino()}}},t.fromProto=function(e,n){var r;return n?new t((r=e).sender,""!==r.admin?r.admin:void 0,r.codeId.toNumber(),JSON.parse(a.from(r.initMsg).toString("utf-8")),f.Coins.fromProto(r.initCoins)):new t((r=e).sender,""!==r.admin?r.admin:void 0,r.codeId.toNumber(),JSON.parse(a.from(r.msg).toString("utf-8")),f.Coins.fromProto(r.funds),""!==r.label?r.label:void 0)},t.prototype.toProto=function(e){var t=this,n=t.sender,r=t.admin,i=t.code_id,o=t.init_msg,s=t.init_coins,c=t.label;return e?l.MsgInstantiateContract.fromPartial({admin:r,codeId:b.fromNumber(i),initCoins:s.toProto(),initMsg:a.from(JSON.stringify(o),"utf-8"),sender:n}):p.MsgInstantiateContract.fromPartial({admin:r,codeId:b.fromNumber(i),funds:s.toProto(),msg:a.from(JSON.stringify(o),"utf-8"),sender:n,label:c})},t.prototype.packAny=function(e){return e?d.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgInstantiateContract",value:l.MsgInstantiateContract.encode(this.toProto(e)).finish()}):d.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract",value:p.MsgInstantiateContract.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(l.MsgInstantiateContract.decode(e.value),n):t.fromProto(p.MsgInstantiateContract.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e,a=r.sender,i=r.admin,o=r.code_id,s=r.init_msg,c=r.init_coins;return new t(a,""!==i?i:void 0,Number.parseInt(o),s,f.Coins.fromData(c))}var u=e,d=(a=u.sender,i=u.admin,o=u.code_id,u.label),l=u.msg,p=u.funds;return new t(a,""!==i?i:void 0,Number.parseInt(o),l,f.Coins.fromData(p),d)},t.prototype.toData=function(e){var t=this,n=t.sender,r=t.admin,a=t.code_id,i=t.label,o=t.init_msg,s=t.init_coins;return e?{"@type":"/terra.wasm.v1beta1.MsgInstantiateContract",sender:n,admin:r||"",code_id:a.toFixed(),init_msg:(0,u.removeNull)(o),init_coins:s.toData()}:{"@type":"/cosmwasm.wasm.v1.MsgInstantiateContract",sender:n,admin:r||"",code_id:a.toFixed(),label:i,msg:(0,u.removeNull)(o),funds:s.toData()}},t}(u.JSONSerializable);t.MsgInstantiateContract=h},90741:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgMigrateCode=void 0;var u=n(4789),f=n(81019),d=n(5678),l=c(n(12620)),p=function(e){function t(t,n,r){var a=e.call(this)||this;return a.sender=t,a.code_id=n,a.wasm_byte_code=r,a}return i(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.sender,i=r.code_id,o=r.wasm_byte_code;return new t(a,Number.parseInt(i),o)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.sender,r=t.code_id,a=t.wasm_byte_code;return{type:"wasm/MsgMigrateCode",value:{sender:n,code_id:r.toFixed(),wasm_byte_code:a}}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.sender,e.codeId.toNumber(),a.from(e.wasmByteCode).toString("base64"))},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.sender,r=t.code_id,i=t.wasm_byte_code;return d.MsgMigrateCode.fromPartial({codeId:l.fromNumber(r),sender:n,wasmByteCode:a.from(i,"base64")})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return f.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgMigrateCode",value:d.MsgMigrateCode.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(d.MsgMigrateCode.decode(e.value),n)},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.sender,a=e.code_id,i=e.wasm_byte_code;return new t(r,Number.parseInt(a),i)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.sender,r=t.code_id,a=t.wasm_byte_code;return{"@type":"/terra.wasm.v1beta1.MsgMigrateCode",sender:n,code_id:r.toFixed(),wasm_byte_code:a}},t}(u.JSONSerializable);t.MsgMigrateCode=p},20652:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgMigrateContract=void 0;var u=n(4789),f=n(81019),d=n(5678),l=n(2314),p=c(n(12620)),b=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.admin=t,i.contract=n,i.new_code_id=r,i.migrate_msg=a,i}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value,a=r.admin,i=r.contract,o=r.new_code_id,s=r.migrate_msg;return new t(a,i,Number.parseInt(o),s)}var c=e.value,u=c.sender,f=(i=c.contract,c.code_id),d=c.msg;return new t(u,i,Number.parseInt(f),d)},t.prototype.toAmino=function(e){if(e){var t=this,n=t.admin,r=t.contract,a=t.new_code_id,i=t.migrate_msg;return{type:"wasm/MsgMigrateContract",value:{admin:n,contract:r,new_code_id:a.toFixed(),migrate_msg:(0,u.removeNull)(i)}}}var o=this;return n=o.admin,r=o.contract,a=o.new_code_id,i=o.migrate_msg,{type:"wasm/MsgMigrateContract",value:{sender:n,contract:r,code_id:a.toFixed(),msg:(0,u.removeNull)(i)}}},t.fromProto=function(e,n){var r;return n?new t((r=e).admin,r.contract,r.newCodeId.toNumber(),JSON.parse(a.from(r.migrateMsg).toString("utf-8"))):new t((r=e).sender,r.contract,r.codeId.toNumber(),JSON.parse(a.from(r.msg).toString("utf-8")))},t.prototype.toProto=function(e){var t=this,n=t.admin,r=t.contract,i=t.new_code_id,o=t.migrate_msg;return e?d.MsgMigrateContract.fromPartial({admin:n,contract:r,newCodeId:p.fromNumber(i),migrateMsg:a.from(JSON.stringify(o),"utf-8")}):l.MsgMigrateContract.fromPartial({sender:n,contract:r,codeId:p.fromNumber(i),msg:a.from(JSON.stringify(o),"utf-8")})},t.prototype.packAny=function(e){return e?f.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgMigrateContract",value:d.MsgMigrateContract.encode(this.toProto(e)).finish()}):f.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgMigrateContract",value:l.MsgMigrateContract.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(n?d.MsgMigrateContract.decode(e.value):l.MsgMigrateContract.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e,a=r.admin,i=r.contract,o=r.new_code_id,s=r.migrate_msg;return new t(a,i,Number.parseInt(o),s)}var c=e,u=c.sender,f=(i=c.contract,c.code_id),d=c.msg;return new t(u,i,Number.parseInt(f),d)},t.prototype.toData=function(e){var t=this,n=t.admin,r=t.contract,a=t.new_code_id,i=t.migrate_msg;return e?{"@type":"/terra.wasm.v1beta1.MsgMigrateContract",admin:n,contract:r,new_code_id:a.toFixed(),migrate_msg:(0,u.removeNull)(i)}:{"@type":"/cosmwasm.wasm.v1.MsgMigrateContract",sender:n,contract:r,code_id:a.toFixed(),msg:(0,u.removeNull)(i)}},t}(u.JSONSerializable);t.MsgMigrateContract=b},37343:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgStoreCode=void 0;var o=n(4789),s=n(81019),c=n(5678),u=n(2314),f=n(95276),d=function(e){function t(t,n,r){var a=e.call(this)||this;return a.sender=t,a.wasm_byte_code=n,a.instantiate_permission=r,a}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value;return new t(i=r.sender,o=r.wasm_byte_code)}var a=e.value,i=a.sender,o=a.wasm_byte_code,s=a.instantiate_permission;return new t(i,o,s?f.AccessConfig.fromAmino(s):void 0)},t.prototype.toAmino=function(e){var t=this,n=t.sender,r=t.wasm_byte_code,a=t.instantiate_permission;return e?{type:"wasm/MsgStoreCode",value:{sender:n,wasm_byte_code:r}}:{type:"wasm/MsgStoreCode",value:{sender:n,wasm_byte_code:r,instantiate_permission:null==a?void 0:a.toAmino()}}},t.fromProto=function(e,n){if(n)return new t(e.sender,a.from(e.wasmByteCode).toString("base64"));var r=e;return new t(r.sender,a.from(r.wasmByteCode).toString("base64"),r.instantiatePermission?f.AccessConfig.fromProto(r.instantiatePermission):void 0)},t.prototype.toProto=function(e){var t=this,n=t.sender,r=t.wasm_byte_code,i=t.instantiate_permission;return e?c.MsgStoreCode.fromPartial({sender:n,wasmByteCode:a.from(r,"base64")}):u.MsgStoreCode.fromPartial({sender:n,wasmByteCode:a.from(r,"base64"),instantiatePermission:null==i?void 0:i.toProto()})},t.prototype.packAny=function(e){var t;return t=e?"/terra.wasm.v1beta1.MsgStoreCode":"/cosmwasm.wasm.v1.MsgStoreCode",s.Any.fromPartial({typeUrl:t,value:e?c.MsgStoreCode.encode(this.toProto(e)).finish():u.MsgStoreCode.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(c.MsgStoreCode.decode(e.value),n):t.fromProto(u.MsgStoreCode.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e;return new t(i=r.sender,o=r.wasm_byte_code)}var a=e,i=a.sender,o=a.wasm_byte_code,s=a.instantiate_permission;return new t(i,o,s?f.AccessConfig.fromData(s):void 0)},t.prototype.toData=function(e){var t=this,n=t.sender,r=t.wasm_byte_code,a=t.instantiate_permission;return e?{"@type":"/terra.wasm.v1beta1.MsgStoreCode",sender:n,wasm_byte_code:r}:{"@type":"/cosmwasm.wasm.v1.MsgStoreCode",sender:n,wasm_byte_code:r,instantiate_permission:null==a?void 0:a.toData()}},t}(o.JSONSerializable);t.MsgStoreCode=d},45480:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUpdateContractAdmin=void 0;var i=n(4789),o=n(81019),s=n(5678),c=n(2314),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.admin=t,a.new_admin=n,a.contract=r,a}return a(t,e),t.fromAmino=function(e,n){if(n){var r=e.value;return new t(r.admin,r.new_admin,r.contract)}var a=e.value;return new t(a.sender,a.new_admin,a.contract)},t.prototype.toAmino=function(e){var t=this,n=t.admin,r=t.new_admin,a=t.contract;return e?{type:"wasm/MsgUpdateContractAdmin",value:{admin:n,new_admin:r,contract:a}}:{type:"wasm/MsgUpdateAdmin",value:{sender:n,new_admin:r,contract:a}}},t.fromProto=function(e,n){var r;return new t(n?(r=e).admin:(r=e).sender,r.newAdmin,r.contract)},t.prototype.toProto=function(e){var t=this,n=t.admin,r=t.new_admin,a=t.contract;return e?s.MsgUpdateContractAdmin.fromPartial({admin:n,contract:a,newAdmin:r}):c.MsgUpdateAdmin.fromPartial({sender:n,contract:a,newAdmin:r})},t.prototype.packAny=function(e){return e?o.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgUpdateContractAdmin",value:s.MsgUpdateContractAdmin.encode(this.toProto(e)).finish()}):o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgUpdateAdmin",value:c.MsgUpdateAdmin.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(s.MsgUpdateContractAdmin.decode(e.value),n):t.fromProto(c.MsgUpdateAdmin.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e;return new t(r.admin,r.new_admin,r.contract)}var a=e;return new t(a.sender,a.new_admin,a.contract)},t.prototype.toData=function(e){var t=this,n=t.admin,r=t.new_admin,a=t.contract;return e?{"@type":"/terra.wasm.v1beta1.MsgUpdateContractAdmin",admin:n,new_admin:r,contract:a}:{"@type":"/cosmwasm.wasm.v1.MsgUpdateAdmin",sender:n,new_admin:r,contract:a}},t}(i.JSONSerializable);t.MsgUpdateContractAdmin=u},41069:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(37343),t),a(n(90741),t),a(n(296),t),a(n(64433),t),a(n(20652),t),a(n(45480),t),a(n(16973),t)},49836:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClearAdminProposal=void 0;var i=n(4789),o=n(81019),s=n(15679),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.contract=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.contract)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/ClearAdminProposal",value:{title:t.title,description:t.description,contract:t.contract}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract;return s.ClearAdminProposal.fromPartial({title:n,description:r,contract:a})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.ClearAdminProposal",value:s.ClearAdminProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.ClearAdminProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.contract)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.ClearAdminProposal",title:t.title,description:t.description,contract:t.contract}},t}(i.JSONSerializable);t.ClearAdminProposal=c},90995:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExecuteContractProposal=void 0;var o=n(4789),s=n(25678),c=n(81019),u=n(15679),f=function(e){function t(t,n,r,a,i,o){void 0===o&&(o={});var c=e.call(this)||this;return c.title=t,c.description=n,c.run_as=r,c.contract=a,c.execute_msg=i,c.coins=new s.Coins(o),c}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.run_as,c=r.contract,u=r.msg,f=r.funds;return new t(a,i,o,c,u,s.Coins.fromAmino(f))},t.prototype.toAmino=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.contract,s=t.execute_msg,c=t.coins;if(e)throw new Error("Not supported for the network");return{type:"wasm/ExecuteContractProposal",value:{title:n,description:r,run_as:a,contract:i,msg:(0,o.removeNull)(s),funds:c.toAmino()}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.runAs,e.contract,JSON.parse(a.from(e.msg).toString("utf-8")),s.Coins.fromProto(e.funds))},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,i=t.run_as,s=t.contract,c=t.execute_msg,f=t.coins;if(e)throw new Error("Not supported for the network");return u.ExecuteContractProposal.fromPartial({title:n,description:r,funds:f.toProto(),contract:s,runAs:i,msg:a.from(JSON.stringify((0,o.removeNull)(c)),"utf-8")})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.ExecuteContractProposal",value:u.ExecuteContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.ExecuteContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e,a=r.title,i=r.description,o=r.run_as,c=r.contract,u=r.msg,f=r.funds;return new t(a,i,o,c,u,s.Coins.fromData(f))},t.prototype.toData=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.contract,o=t.execute_msg,s=t.coins;if(e)throw new Error("Not supported for the network");return{"@type":"/cosmwasm.wasm.v1.ExecuteContractProposal",title:n,description:r,run_as:a,contract:i,msg:o,funds:s.toData()}},t}(o.JSONSerializable);t.ExecuteContractProposal=f},18422:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiateContractProposal=void 0;var u=n(4789),f=n(25678),d=n(81019),l=n(15679),p=c(n(12620)),b=function(e){function t(t,n,r,a,i,o,s,c){void 0===s&&(s={});var u=e.call(this)||this;return u.title=t,u.description=n,u.run_as=r,u.admin=a,u.code_id=i,u.init_msg=o,u.label=c,u.init_coins=new f.Coins(s),u}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.run_as,s=r.admin,c=r.code_id,u=r.msg,d=r.funds,l=r.label;return new t(a,i,o,s,Number.parseInt(c),u,f.Coins.fromAmino(d),l)},t.prototype.toAmino=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.admin,o=t.code_id,s=t.init_msg,c=t.init_coins,f=t.label;if(e)throw new Error("Not supported for the network");return{type:"wasm/InstantiateContractProposal",value:{title:n,description:r,run_as:a,admin:i,code_id:o.toFixed(),label:f,msg:(0,u.removeNull)(s),funds:c.toAmino()}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.runAs,""!==e.admin?e.admin:void 0,e.codeId.toNumber(),JSON.parse(a.from(e.msg).toString("utf-8")),f.Coins.fromProto(e.funds),e.label)},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,i=t.run_as,o=t.admin,s=t.code_id,c=t.init_msg,u=t.init_coins,f=t.label;if(e)throw new Error("Not supported for the network");return l.InstantiateContractProposal.fromPartial({title:n,description:r,runAs:i,admin:o,codeId:p.fromNumber(s),funds:u.toProto(),msg:a.from(JSON.stringify(c),"utf-8"),label:f})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return d.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.InstantiateContractProposal",value:l.InstantiateContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(l.InstantiateContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e,a=r.title,i=r.description,o=r.run_as,s=r.admin,c=r.code_id,u=r.label,d=r.msg,l=r.funds;return new t(a,i,o,""!==s?s:void 0,Number.parseInt(c),d,f.Coins.fromData(l),u)},t.prototype.toData=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.admin,o=t.code_id,s=t.label,c=t.init_msg,f=t.init_coins;if(e)throw new Error("Not supported for the network");return{"@type":"/cosmwasm.wasm.v1.InstantiateContractProposal",title:n,description:r,run_as:a,admin:i||"",code_id:o.toFixed(),label:s,msg:(0,u.removeNull)(c),funds:f.toData()}},t}(u.JSONSerializable);t.InstantiateContractProposal=b},60801:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateContractProposal=void 0;var u=n(4789),f=n(81019),d=n(15679),l=c(n(12620)),p=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.title=t,o.description=n,o.contract=r,o.new_code_id=a,o.migrate_msg=i,o}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.contract,s=r.code_id,c=r.msg;return new t(a,i,o,Number.parseInt(s),c)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.new_code_id,o=t.migrate_msg;return{type:"wasm/MigrateContractProposal",value:{title:n,description:r,contract:a,code_id:i.toFixed(),msg:(0,u.removeNull)(o)}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract,e.codeId.toNumber(),JSON.parse(a.from(e.msg).toString("utf-8")))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,i=t.contract,o=t.new_code_id,s=t.migrate_msg;return d.MigrateContractProposal.fromPartial({title:n,description:r,contract:i,codeId:l.fromNumber(o),msg:a.from(JSON.stringify(s),"utf-8")})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return f.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MigrateContractProposal",value:d.MigrateContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(d.MigrateContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e,a=r.title,i=r.description,o=r.contract,s=r.code_id,c=r.msg;return new t(a,i,o,Number.parseInt(s),c)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.new_code_id,o=t.migrate_msg;return{"@type":"/cosmwasm.wasm.v1.MigrateContractProposal",title:n,description:r,contract:a,code_id:i.toFixed(),msg:(0,u.removeNull)(o)}},t}(u.JSONSerializable);t.MigrateContractProposal=p},55508:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PinCodesProposal=void 0;var c=n(4789),u=n(81019),f=n(15679),d=s(n(12620)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.code_ids=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/PinCodesProposal",value:{title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.codeIds.map((function(e){return e.toNumber()})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.code_ids;return f.PinCodesProposal.fromPartial({title:n,description:r,codeIds:a.map((function(e){return d.fromNumber(e)}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return u.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.PinCodesProposal",value:f.PinCodesProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(f.PinCodesProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.PinCodesProposal",title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}},t}(c.JSONSerializable);t.PinCodesProposal=l},13072:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.StoreCodeProposal=void 0;var o=n(4789),s=n(81019),c=n(15679),u=n(95276),f=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.title=t,o.description=n,o.run_as=r,o.wasm_byte_code=a,o.instantiate_permission=i,o}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.run_as,s=r.wasm_byte_code,c=r.instantiate_permission;return new t(a,i,o,s,c?u.AccessConfig.fromAmino(c):void 0)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.run_as,i=t.wasm_byte_code,o=t.instantiate_permission;return{type:"wasm/StoreCodeProposal",value:{title:n,description:r,run_as:a,wasm_byte_code:i,instantiate_permission:null==o?void 0:o.toAmino()}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.title,a=e.description,i=e.run_as,o=e.wasm_byte_code,s=e.instantiate_permission;return new t(r,a,i,o,s?u.AccessConfig.fromData(s):void 0)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.run_as,i=t.wasm_byte_code,o=t.instantiate_permission;return{"@type":"/cosmwasm.wasm.v1.StoreCodeProposal",title:n,description:r,run_as:a,wasm_byte_code:i,instantiate_permission:null==o?void 0:o.toData()}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.runAs,a.from(e.wasmByteCode).toString("base64"),e.instantiatePermission?u.AccessConfig.fromProto(e.instantiatePermission):void 0)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,i=t.run_as,o=t.wasm_byte_code,s=t.instantiate_permission;return c.StoreCodeProposal.fromPartial({title:n,description:r,runAs:i,wasmByteCode:a.from(o,"base64"),instantiatePermission:null==s?void 0:s.toProto()})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return s.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.StoreCodeProposal",value:c.StoreCodeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(c.StoreCodeProposal.decode(e.value),n)},t}(o.JSONSerializable);t.StoreCodeProposal=f},4595:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SudoContractProposal=void 0;var o=n(4789),s=n(81019),c=n(15679),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.title=t,i.description=n,i.contract=r,i.msg=a,i}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.contract,r.msg)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.msg;return{type:"wasm/SudoContractProposal",value:{title:n,description:r,contract:a,msg:(0,o.removeNull)(i)}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract,JSON.parse(a.from(e.msg).toString("utf-8")))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,i=t.contract,o=t.msg;return c.SudoContractProposal.fromPartial({title:n,description:r,contract:i,msg:a.from(JSON.stringify(o),"utf-8")})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return s.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.SudoContractProposal",value:c.SudoContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(c.SudoContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.contract,r.msg)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.msg;return{"@type":"/cosmwasm.wasm.v1.SudoContractProposal",title:n,description:r,contract:a,msg:(0,o.removeNull)(i)}},t}(o.JSONSerializable);t.SudoContractProposal=u},80309:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.UnpinCodesProposal=void 0;var c=n(4789),u=n(81019),f=n(15679),d=s(n(12620)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.code_ids=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/UnpinCodesProposal",value:{title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.codeIds.map((function(e){return e.toNumber()})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.code_ids;return f.UnpinCodesProposal.fromPartial({title:n,description:r,codeIds:a.map((function(e){return d.fromNumber(e)}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return u.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.UnpinCodesProposal",value:f.UnpinCodesProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(f.UnpinCodesProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.UnpinCodesProposal",title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}},t}(c.JSONSerializable);t.UnpinCodesProposal=l},83635:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateAdminProposal=void 0;var i=n(4789),o=n(81019),s=n(15679),c=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.title=t,i.description=n,i.contract=r,i.new_admin=a,i}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.contract,r.new_admin)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/UpdateAdminProposal",value:{title:t.title,description:t.description,contract:t.contract,new_admin:t.new_admin}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract,e.newAdmin)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.new_admin;return s.UpdateAdminProposal.fromPartial({title:n,description:r,contract:a,newAdmin:i})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.UpdateAdminProposal",value:s.UpdateAdminProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.UpdateAdminProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.contract,r.new_admin)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.UpdateAdminProposal",title:t.title,description:t.description,contract:t.contract,new_admin:t.new_admin}},t}(i.JSONSerializable);t.UpdateAdminProposal=c},99534:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateInstantiateConfigProposal=void 0;var i=n(4789),o=n(81019),s=n(15679),c=n(58231),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.access_config_updates=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.access_config_updates.map((function(e){return c.AccessConfigUpdate.fromAmino(e)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/UpdateInstantiateConfigProposal",value:{title:t.title,description:t.description,access_config_updates:t.access_config_updates.map((function(e){return e.toAmino()}))}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.accessConfigUpdates.map((function(e){return c.AccessConfigUpdate.fromProto(e)})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.access_config_updates;return s.UpdateInstantiateConfigProposal.fromPartial({title:n,description:r,accessConfigUpdates:a.map((function(e){return e.toProto()}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal",value:s.UpdateInstantiateConfigProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.UpdateInstantiateConfigProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.access_config_updates.map((function(e){return c.AccessConfigUpdate.fromData(e)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal",title:t.title,description:t.description,access_config_updates:t.access_config_updates.map((function(e){return e.toData()}))}},t}(i.JSONSerializable);t.UpdateInstantiateConfigProposal=u},95430:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(49836),t),a(n(90995),t),a(n(18422),t),a(n(60801),t),a(n(55508),t),a(n(13072),t),a(n(4595),t),a(n(80309),t),a(n(83635),t),a(n(99534),t)},35613:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertAccessTypeFromJSON=void 0;var r=n(10763);t.convertAccessTypeFromJSON=function(e){var t=e;switch(e){case"Everybody":t="ACCESS_TYPE_EVERYBODY";break;case"Nobody":t="ACCESS_TYPE_NOBODY";break;case"OnlyAddress":t="ACCESS_TYPE_ONLY_ADDRESS";break;case"Unspecified":t="ACCESS_TYPE_UNSPECIFIED"}return(0,r.accessTypeFromJSON)(t)}},42748:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(24663),o=function(){},s=function(e){function t(t){var n=t.name,r=t.target,a=t.targetWindow,i=e.call(this,{objectMode:!0})||this;return i._name=n,i._target=r,i._targetWindow=a||window,i._origin=a?"*":location.origin,i._init=!1,i._haveSyn=!1,i._onMessage=i._onMessage.bind(i),window.addEventListener("message",i._onMessage,!1),i._write("SYN",null,o),i.cork(),i}return a(t,e),t.prototype._destroy=function(){window.removeEventListener("message",this._onMessage,!1)},t.prototype._onMessage=function(e){var t=e.data;if(("*"===this._origin||e.origin===this._origin)&&e.source===this._targetWindow&&"object"==typeof t&&t.target===this._name&&t.data)if(this._init)try{this.push(t.data)}catch(e){this.emit("error",e)}else"SYN"===t.data?(this._haveSyn=!0,this._write("ACK",null,o)):"ACK"===t.data&&(this._init=!0,this._haveSyn||this._write("ACK",null,o),this.uncork())},t.prototype._read=function(){},t.prototype._write=function(e,t,n){var r={target:this._target,data:e};this._targetWindow.postMessage(r,this._origin),n(null)},t}(i.Duplex);t.default=s},82720:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){l.headers[e]=a.merge(u)})),e.exports=l},93439:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},63003:function(e){e.exports={version:"0.27.2"}},78197:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},14965:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},35643:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},57150:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(48571);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":a.isDate(e)?e.toISOString():a.isArrayBuffer(e)||a.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return function e(r,o){if(a.isPlainObject(r)||a.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+o);n.push(r),a.forEach(r,(function(n,r){if(!a.isUndefined(n)){var s,c=o?o+"."+r:r;if(n&&!o&&"object"==typeof n)if(a.endsWith(r,"{}"))n=JSON.stringify(n);else if(a.endsWith(r,"[]")&&(s=a.toArray(n)))return void s.forEach((function(e){!a.isUndefined(e)&&t.append(c,i(e))}));e(n,c)}})),n.pop()}else t.append(o,i(r))}(e),t}},73454:function(e,t,n){"use strict";var r=n(63003).version,a=n(67865),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new a(i(r," has been removed"+(t?" in "+t:"")),a.ERR_DEPRECATED);return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new a("options must be an object",a.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var c=e[o],u=void 0===c||s(c,o,e);if(!0!==u)throw new a("option "+o+" must be "+u,a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new a("Unknown option "+o,a.ERR_BAD_OPTION)}},validators:i}},48571:function(e,t,n){"use strict";var r,a=n(78197),i=Object.prototype.toString,o=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function c(e){return Array.isArray(e)}function u(e){return void 0===e}var f=s("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function l(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),b=s("File"),h=s("Blob"),y=s("FileList");function m(e){return"[object Function]"===i.call(e)}var v=s("URLSearchParams");function g(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var n=0,r=e.length;n0;)o[i=r[a]]||(t[i]=e[i],o[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:y}},307:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompressedNonExistenceProof=t.CompressedExistenceProof=t.CompressedBatchEntry=t.CompressedBatchProof=t.BatchEntry=t.BatchProof=t.InnerSpec=t.ProofSpec=t.InnerOp=t.LeafOp=t.CommitmentProof=t.NonExistenceProof=t.ExistenceProof=t.lengthOpToJSON=t.lengthOpFromJSON=t.LengthOp=t.hashOpToJSON=t.hashOpFromJSON=t.HashOp=t.protobufPackage=void 0;var i,o,s=a(n(12620)),c=a(n(50904));function u(e){switch(e){case 0:case"NO_HASH":return i.NO_HASH;case 1:case"SHA256":return i.SHA256;case 2:case"SHA512":return i.SHA512;case 3:case"KECCAK":return i.KECCAK;case 4:case"RIPEMD160":return i.RIPEMD160;case 5:case"BITCOIN":return i.BITCOIN;default:return i.UNRECOGNIZED}}function f(e){switch(e){case i.NO_HASH:return"NO_HASH";case i.SHA256:return"SHA256";case i.SHA512:return"SHA512";case i.KECCAK:return"KECCAK";case i.RIPEMD160:return"RIPEMD160";case i.BITCOIN:return"BITCOIN";default:return"UNKNOWN"}}function d(e){switch(e){case 0:case"NO_PREFIX":return o.NO_PREFIX;case 1:case"VAR_PROTO":return o.VAR_PROTO;case 2:case"VAR_RLP":return o.VAR_RLP;case 3:case"FIXED32_BIG":return o.FIXED32_BIG;case 4:case"FIXED32_LITTLE":return o.FIXED32_LITTLE;case 5:case"FIXED64_BIG":return o.FIXED64_BIG;case 6:case"FIXED64_LITTLE":return o.FIXED64_LITTLE;case 7:case"REQUIRE_32_BYTES":return o.REQUIRE_32_BYTES;case 8:case"REQUIRE_64_BYTES":return o.REQUIRE_64_BYTES;default:return o.UNRECOGNIZED}}function l(e){switch(e){case o.NO_PREFIX:return"NO_PREFIX";case o.VAR_PROTO:return"VAR_PROTO";case o.VAR_RLP:return"VAR_RLP";case o.FIXED32_BIG:return"FIXED32_BIG";case o.FIXED32_LITTLE:return"FIXED32_LITTLE";case o.FIXED64_BIG:return"FIXED64_BIG";case o.FIXED64_LITTLE:return"FIXED64_LITTLE";case o.REQUIRE_32_BYTES:return"REQUIRE_32_BYTES";case o.REQUIRE_64_BYTES:return"REQUIRE_64_BYTES";default:return"UNKNOWN"}}t.protobufPackage="ics23",function(e){e[e.NO_HASH=0]="NO_HASH",e[e.SHA256=1]="SHA256",e[e.SHA512=2]="SHA512",e[e.KECCAK=3]="KECCAK",e[e.RIPEMD160=4]="RIPEMD160",e[e.BITCOIN=5]="BITCOIN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=t.HashOp||(t.HashOp={})),t.hashOpFromJSON=u,t.hashOpToJSON=f,function(e){e[e.NO_PREFIX=0]="NO_PREFIX",e[e.VAR_PROTO=1]="VAR_PROTO",e[e.VAR_RLP=2]="VAR_RLP",e[e.FIXED32_BIG=3]="FIXED32_BIG",e[e.FIXED32_LITTLE=4]="FIXED32_LITTLE",e[e.FIXED64_BIG=5]="FIXED64_BIG",e[e.FIXED64_LITTLE=6]="FIXED64_LITTLE",e[e.REQUIRE_32_BYTES=7]="REQUIRE_32_BYTES",e[e.REQUIRE_64_BYTES=8]="REQUIRE_64_BYTES",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=t.LengthOp||(t.LengthOp={})),t.lengthOpFromJSON=d,t.lengthOpToJSON=l;var p={};t.ExistenceProof={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();0!==e.key.length&&n.uint32(10).bytes(e.key),0!==e.value.length&&n.uint32(18).bytes(e.value),void 0!==e.leaf&&t.LeafOp.encode(e.leaf,n.uint32(26).fork()).ldelim();var a,i=r(e.path);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.InnerOp.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);for(i.path=[],i.key=new Uint8Array,i.value=new Uint8Array;r.pos>>3){case 1:i.key=r.bytes();break;case 2:i.value=r.bytes();break;case 3:i.leaf=t.LeafOp.decode(r,r.uint32());break;case 4:i.path.push(t.InnerOp.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},p);if(n.path=[],n.key=new Uint8Array,n.value=new Uint8Array,void 0!==e.key&&null!==e.key&&(n.key=C(e.key)),void 0!==e.value&&null!==e.value&&(n.value=C(e.value)),void 0!==e.leaf&&null!==e.leaf?n.leaf=t.LeafOp.fromJSON(e.leaf):n.leaf=void 0,void 0!==e.path&&null!==e.path){var a,i=r(e.path);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.path.push(t.InnerOp.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.key&&(n.key=O(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(n.value=O(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.leaf&&(n.leaf=e.leaf?t.LeafOp.toJSON(e.leaf):void 0),e.path?n.path=e.path.map((function(e){return e?t.InnerOp.toJSON(e):void 0})):n.path=[],n},fromPartial:function(e){var n=Object.assign({},p);if(n.path=[],void 0!==e.key&&null!==e.key?n.key=e.key:n.key=new Uint8Array,void 0!==e.value&&null!==e.value?n.value=e.value:n.value=new Uint8Array,void 0!==e.leaf&&null!==e.leaf?n.leaf=t.LeafOp.fromPartial(e.leaf):n.leaf=void 0,void 0!==e.path&&null!==e.path){var a,i=r(e.path);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.path.push(t.InnerOp.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var b={};t.NonExistenceProof={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.key.length&&n.uint32(10).bytes(e.key),void 0!==e.left&&t.ExistenceProof.encode(e.left,n.uint32(18).fork()).ldelim(),void 0!==e.right&&t.ExistenceProof.encode(e.right,n.uint32(26).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);for(i.key=new Uint8Array;r.pos>>3){case 1:i.key=r.bytes();break;case 2:i.left=t.ExistenceProof.decode(r,r.uint32());break;case 3:i.right=t.ExistenceProof.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},b);return n.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(n.key=C(e.key)),void 0!==e.left&&null!==e.left?n.left=t.ExistenceProof.fromJSON(e.left):n.left=void 0,void 0!==e.right&&null!==e.right?n.right=t.ExistenceProof.fromJSON(e.right):n.right=void 0,n},toJSON:function(e){var n={};return void 0!==e.key&&(n.key=O(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.left&&(n.left=e.left?t.ExistenceProof.toJSON(e.left):void 0),void 0!==e.right&&(n.right=e.right?t.ExistenceProof.toJSON(e.right):void 0),n},fromPartial:function(e){var n=Object.assign({},b);return void 0!==e.key&&null!==e.key?n.key=e.key:n.key=new Uint8Array,void 0!==e.left&&null!==e.left?n.left=t.ExistenceProof.fromPartial(e.left):n.left=void 0,void 0!==e.right&&null!==e.right?n.right=t.ExistenceProof.fromPartial(e.right):n.right=void 0,n}};var h={};t.CommitmentProof={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.exist&&t.ExistenceProof.encode(e.exist,n.uint32(10).fork()).ldelim(),void 0!==e.nonexist&&t.NonExistenceProof.encode(e.nonexist,n.uint32(18).fork()).ldelim(),void 0!==e.batch&&t.BatchProof.encode(e.batch,n.uint32(26).fork()).ldelim(),void 0!==e.compressed&&t.CompressedBatchProof.encode(e.compressed,n.uint32(34).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},h);r.pos>>3){case 1:i.exist=t.ExistenceProof.decode(r,r.uint32());break;case 2:i.nonexist=t.NonExistenceProof.decode(r,r.uint32());break;case 3:i.batch=t.BatchProof.decode(r,r.uint32());break;case 4:i.compressed=t.CompressedBatchProof.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},h);return void 0!==e.exist&&null!==e.exist?n.exist=t.ExistenceProof.fromJSON(e.exist):n.exist=void 0,void 0!==e.nonexist&&null!==e.nonexist?n.nonexist=t.NonExistenceProof.fromJSON(e.nonexist):n.nonexist=void 0,void 0!==e.batch&&null!==e.batch?n.batch=t.BatchProof.fromJSON(e.batch):n.batch=void 0,void 0!==e.compressed&&null!==e.compressed?n.compressed=t.CompressedBatchProof.fromJSON(e.compressed):n.compressed=void 0,n},toJSON:function(e){var n={};return void 0!==e.exist&&(n.exist=e.exist?t.ExistenceProof.toJSON(e.exist):void 0),void 0!==e.nonexist&&(n.nonexist=e.nonexist?t.NonExistenceProof.toJSON(e.nonexist):void 0),void 0!==e.batch&&(n.batch=e.batch?t.BatchProof.toJSON(e.batch):void 0),void 0!==e.compressed&&(n.compressed=e.compressed?t.CompressedBatchProof.toJSON(e.compressed):void 0),n},fromPartial:function(e){var n=Object.assign({},h);return void 0!==e.exist&&null!==e.exist?n.exist=t.ExistenceProof.fromPartial(e.exist):n.exist=void 0,void 0!==e.nonexist&&null!==e.nonexist?n.nonexist=t.NonExistenceProof.fromPartial(e.nonexist):n.nonexist=void 0,void 0!==e.batch&&null!==e.batch?n.batch=t.BatchProof.fromPartial(e.batch):n.batch=void 0,void 0!==e.compressed&&null!==e.compressed?n.compressed=t.CompressedBatchProof.fromPartial(e.compressed):n.compressed=void 0,n}};var y={hash:0,prehashKey:0,prehashValue:0,length:0};t.LeafOp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.hash&&t.uint32(8).int32(e.hash),0!==e.prehashKey&&t.uint32(16).int32(e.prehashKey),0!==e.prehashValue&&t.uint32(24).int32(e.prehashValue),0!==e.length&&t.uint32(32).int32(e.length),0!==e.prefix.length&&t.uint32(42).bytes(e.prefix),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.prefix=new Uint8Array;n.pos>>3){case 1:a.hash=n.int32();break;case 2:a.prehashKey=n.int32();break;case 3:a.prehashValue=n.int32();break;case 4:a.length=n.int32();break;case 5:a.prefix=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return t.prefix=new Uint8Array,void 0!==e.hash&&null!==e.hash?t.hash=u(e.hash):t.hash=0,void 0!==e.prehashKey&&null!==e.prehashKey?t.prehashKey=u(e.prehashKey):t.prehashKey=0,void 0!==e.prehashValue&&null!==e.prehashValue?t.prehashValue=u(e.prehashValue):t.prehashValue=0,void 0!==e.length&&null!==e.length?t.length=d(e.length):t.length=0,void 0!==e.prefix&&null!==e.prefix&&(t.prefix=C(e.prefix)),t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=f(e.hash)),void 0!==e.prehashKey&&(t.prehashKey=f(e.prehashKey)),void 0!==e.prehashValue&&(t.prehashValue=f(e.prehashValue)),void 0!==e.length&&(t.length=l(e.length)),void 0!==e.prefix&&(t.prefix=O(void 0!==e.prefix?e.prefix:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash=0,void 0!==e.prehashKey&&null!==e.prehashKey?t.prehashKey=e.prehashKey:t.prehashKey=0,void 0!==e.prehashValue&&null!==e.prehashValue?t.prehashValue=e.prehashValue:t.prehashValue=0,void 0!==e.length&&null!==e.length?t.length=e.length:t.length=0,void 0!==e.prefix&&null!==e.prefix?t.prefix=e.prefix:t.prefix=new Uint8Array,t}};var m={hash:0};t.InnerOp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.hash&&t.uint32(8).int32(e.hash),0!==e.prefix.length&&t.uint32(18).bytes(e.prefix),0!==e.suffix.length&&t.uint32(26).bytes(e.suffix),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.prefix=new Uint8Array,a.suffix=new Uint8Array;n.pos>>3){case 1:a.hash=n.int32();break;case 2:a.prefix=n.bytes();break;case 3:a.suffix=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return t.prefix=new Uint8Array,t.suffix=new Uint8Array,void 0!==e.hash&&null!==e.hash?t.hash=u(e.hash):t.hash=0,void 0!==e.prefix&&null!==e.prefix&&(t.prefix=C(e.prefix)),void 0!==e.suffix&&null!==e.suffix&&(t.suffix=C(e.suffix)),t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=f(e.hash)),void 0!==e.prefix&&(t.prefix=O(void 0!==e.prefix?e.prefix:new Uint8Array)),void 0!==e.suffix&&(t.suffix=O(void 0!==e.suffix?e.suffix:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash=0,void 0!==e.prefix&&null!==e.prefix?t.prefix=e.prefix:t.prefix=new Uint8Array,void 0!==e.suffix&&null!==e.suffix?t.suffix=e.suffix:t.suffix=new Uint8Array,t}};var v={maxDepth:0,minDepth:0};t.ProofSpec={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.leafSpec&&t.LeafOp.encode(e.leafSpec,n.uint32(10).fork()).ldelim(),void 0!==e.innerSpec&&t.InnerSpec.encode(e.innerSpec,n.uint32(18).fork()).ldelim(),0!==e.maxDepth&&n.uint32(24).int32(e.maxDepth),0!==e.minDepth&&n.uint32(32).int32(e.minDepth),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},v);r.pos>>3){case 1:i.leafSpec=t.LeafOp.decode(r,r.uint32());break;case 2:i.innerSpec=t.InnerSpec.decode(r,r.uint32());break;case 3:i.maxDepth=r.int32();break;case 4:i.minDepth=r.int32();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},v);return void 0!==e.leafSpec&&null!==e.leafSpec?n.leafSpec=t.LeafOp.fromJSON(e.leafSpec):n.leafSpec=void 0,void 0!==e.innerSpec&&null!==e.innerSpec?n.innerSpec=t.InnerSpec.fromJSON(e.innerSpec):n.innerSpec=void 0,void 0!==e.maxDepth&&null!==e.maxDepth?n.maxDepth=Number(e.maxDepth):n.maxDepth=0,void 0!==e.minDepth&&null!==e.minDepth?n.minDepth=Number(e.minDepth):n.minDepth=0,n},toJSON:function(e){var n={};return void 0!==e.leafSpec&&(n.leafSpec=e.leafSpec?t.LeafOp.toJSON(e.leafSpec):void 0),void 0!==e.innerSpec&&(n.innerSpec=e.innerSpec?t.InnerSpec.toJSON(e.innerSpec):void 0),void 0!==e.maxDepth&&(n.maxDepth=e.maxDepth),void 0!==e.minDepth&&(n.minDepth=e.minDepth),n},fromPartial:function(e){var n=Object.assign({},v);return void 0!==e.leafSpec&&null!==e.leafSpec?n.leafSpec=t.LeafOp.fromPartial(e.leafSpec):n.leafSpec=void 0,void 0!==e.innerSpec&&null!==e.innerSpec?n.innerSpec=t.InnerSpec.fromPartial(e.innerSpec):n.innerSpec=void 0,void 0!==e.maxDepth&&null!==e.maxDepth?n.maxDepth=e.maxDepth:n.maxDepth=0,void 0!==e.minDepth&&null!==e.minDepth?n.minDepth=e.minDepth:n.minDepth=0,n}};var g={childOrder:0,childSize:0,minPrefixLength:0,maxPrefixLength:0,hash:0};t.InnerSpec={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();t.uint32(10).fork();var n,a=r(e.childOrder);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.int32(i)}}catch(e){a.e(e)}finally{a.f()}return t.ldelim(),0!==e.childSize&&t.uint32(16).int32(e.childSize),0!==e.minPrefixLength&&t.uint32(24).int32(e.minPrefixLength),0!==e.maxPrefixLength&&t.uint32(32).int32(e.maxPrefixLength),0!==e.emptyChild.length&&t.uint32(42).bytes(e.emptyChild),0!==e.hash&&t.uint32(48).int32(e.hash),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);for(a.childOrder=[],a.emptyChild=new Uint8Array;n.pos>>3){case 1:if(2==(7&i))for(var o=n.uint32()+n.pos;n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create(),i=r(e.entries);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.BatchEntry.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},A);for(i.entries=[];r.pos>>3==1?i.entries.push(t.BatchEntry.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},A);if(n.entries=[],void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.BatchEntry.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.entries?n.entries=e.entries.map((function(e){return e?t.BatchEntry.toJSON(e):void 0})):n.entries=[],n},fromPartial:function(e){var n=Object.assign({},A);if(n.entries=[],void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.BatchEntry.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var w={};t.BatchEntry={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.exist&&t.ExistenceProof.encode(e.exist,n.uint32(10).fork()).ldelim(),void 0!==e.nonexist&&t.NonExistenceProof.encode(e.nonexist,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},w);r.pos>>3){case 1:i.exist=t.ExistenceProof.decode(r,r.uint32());break;case 2:i.nonexist=t.NonExistenceProof.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},w);return void 0!==e.exist&&null!==e.exist?n.exist=t.ExistenceProof.fromJSON(e.exist):n.exist=void 0,void 0!==e.nonexist&&null!==e.nonexist?n.nonexist=t.NonExistenceProof.fromJSON(e.nonexist):n.nonexist=void 0,n},toJSON:function(e){var n={};return void 0!==e.exist&&(n.exist=e.exist?t.ExistenceProof.toJSON(e.exist):void 0),void 0!==e.nonexist&&(n.nonexist=e.nonexist?t.NonExistenceProof.toJSON(e.nonexist):void 0),n},fromPartial:function(e){var n=Object.assign({},w);return void 0!==e.exist&&null!==e.exist?n.exist=t.ExistenceProof.fromPartial(e.exist):n.exist=void 0,void 0!==e.nonexist&&null!==e.nonexist?n.nonexist=t.NonExistenceProof.fromPartial(e.nonexist):n.nonexist=void 0,n}};var x={};t.CompressedBatchProof={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create(),i=r(e.entries);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.CompressedBatchEntry.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}var s,u=r(e.lookupInners);try{for(u.s();!(s=u.n()).done;){var f=s.value;t.InnerOp.encode(f,a.uint32(18).fork()).ldelim()}}catch(e){u.e(e)}finally{u.f()}return a},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},x);for(i.entries=[],i.lookupInners=[];r.pos>>3){case 1:i.entries.push(t.CompressedBatchEntry.decode(r,r.uint32()));break;case 2:i.lookupInners.push(t.InnerOp.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},x);if(n.entries=[],n.lookupInners=[],void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.CompressedBatchEntry.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}if(void 0!==e.lookupInners&&null!==e.lookupInners){var s,c=r(e.lookupInners);try{for(c.s();!(s=c.n()).done;){var u=s.value;n.lookupInners.push(t.InnerOp.fromJSON(u))}}catch(e){c.e(e)}finally{c.f()}}return n},toJSON:function(e){var n={};return e.entries?n.entries=e.entries.map((function(e){return e?t.CompressedBatchEntry.toJSON(e):void 0})):n.entries=[],e.lookupInners?n.lookupInners=e.lookupInners.map((function(e){return e?t.InnerOp.toJSON(e):void 0})):n.lookupInners=[],n},fromPartial:function(e){var n=Object.assign({},x);if(n.entries=[],n.lookupInners=[],void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.CompressedBatchEntry.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}if(void 0!==e.lookupInners&&null!==e.lookupInners){var s,c=r(e.lookupInners);try{for(c.s();!(s=c.n()).done;){var u=s.value;n.lookupInners.push(t.InnerOp.fromPartial(u))}}catch(e){c.e(e)}finally{c.f()}}return n}};var _={};t.CompressedBatchEntry={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.exist&&t.CompressedExistenceProof.encode(e.exist,n.uint32(10).fork()).ldelim(),void 0!==e.nonexist&&t.CompressedNonExistenceProof.encode(e.nonexist,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},_);r.pos>>3){case 1:i.exist=t.CompressedExistenceProof.decode(r,r.uint32());break;case 2:i.nonexist=t.CompressedNonExistenceProof.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},_);return void 0!==e.exist&&null!==e.exist?n.exist=t.CompressedExistenceProof.fromJSON(e.exist):n.exist=void 0,void 0!==e.nonexist&&null!==e.nonexist?n.nonexist=t.CompressedNonExistenceProof.fromJSON(e.nonexist):n.nonexist=void 0,n},toJSON:function(e){var n={};return void 0!==e.exist&&(n.exist=e.exist?t.CompressedExistenceProof.toJSON(e.exist):void 0),void 0!==e.nonexist&&(n.nonexist=e.nonexist?t.CompressedNonExistenceProof.toJSON(e.nonexist):void 0),n},fromPartial:function(e){var n=Object.assign({},_);return void 0!==e.exist&&null!==e.exist?n.exist=t.CompressedExistenceProof.fromPartial(e.exist):n.exist=void 0,void 0!==e.nonexist&&null!==e.nonexist?n.nonexist=t.CompressedNonExistenceProof.fromPartial(e.nonexist):n.nonexist=void 0,n}};var k={path:0};t.CompressedExistenceProof={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();0!==e.key.length&&n.uint32(10).bytes(e.key),0!==e.value.length&&n.uint32(18).bytes(e.value),void 0!==e.leaf&&t.LeafOp.encode(e.leaf,n.uint32(26).fork()).ldelim(),n.uint32(34).fork();var a,i=r(e.path);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.int32(o)}}catch(e){i.e(e)}finally{i.f()}return n.ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},k);for(i.path=[],i.key=new Uint8Array,i.value=new Uint8Array;r.pos>>3){case 1:i.key=r.bytes();break;case 2:i.value=r.bytes();break;case 3:i.leaf=t.LeafOp.decode(r,r.uint32());break;case 4:if(2==(7&o))for(var s=r.uint32()+r.pos;r.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.key.length&&n.uint32(10).bytes(e.key),void 0!==e.left&&t.CompressedExistenceProof.encode(e.left,n.uint32(18).fork()).ldelim(),void 0!==e.right&&t.CompressedExistenceProof.encode(e.right,n.uint32(26).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},S);for(i.key=new Uint8Array;r.pos>>3){case 1:i.key=r.bytes();break;case 2:i.left=t.CompressedExistenceProof.decode(r,r.uint32());break;case 3:i.right=t.CompressedExistenceProof.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},S);return n.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(n.key=C(e.key)),void 0!==e.left&&null!==e.left?n.left=t.CompressedExistenceProof.fromJSON(e.left):n.left=void 0,void 0!==e.right&&null!==e.right?n.right=t.CompressedExistenceProof.fromJSON(e.right):n.right=void 0,n},toJSON:function(e){var n={};return void 0!==e.key&&(n.key=O(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.left&&(n.left=e.left?t.CompressedExistenceProof.toJSON(e.left):void 0),void 0!==e.right&&(n.right=e.right?t.CompressedExistenceProof.toJSON(e.right):void 0),n},fromPartial:function(e){var n=Object.assign({},S);return void 0!==e.key&&null!==e.key?n.key=e.key:n.key=new Uint8Array,void 0!==e.left&&null!==e.left?n.left=t.CompressedExistenceProof.fromPartial(e.left):n.left=void 0,void 0!==e.right&&null!==e.right?n.right=t.CompressedExistenceProof.fromPartial(e.right):n.right=void 0,n}};var I=function(){if(void 0!==I)return I;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),E=I.atob||function(e){return I.Buffer.from(e,"base64").toString("binary")};function C(e){for(var t=E(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.address&&t.uint32(10).string(e.address),void 0!==e.pubKey&&s.Any.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.accountNumber.isZero()||t.uint32(24).uint64(e.accountNumber),e.sequence.isZero()||t.uint32(32).uint64(e.sequence),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.address=n.string();break;case 2:a.pubKey=s.Any.decode(n,n.uint32());break;case 3:a.accountNumber=n.uint64();break;case 4:a.sequence=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.Any.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=i.default.fromString(e.accountNumber):t.accountNumber=i.default.UZERO,void 0!==e.sequence&&null!==e.sequence?t.sequence=i.default.fromString(e.sequence):t.sequence=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.pubKey&&(t.pubKey=e.pubKey?s.Any.toJSON(e.pubKey):void 0),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||i.default.UZERO).toString()),void 0!==e.sequence&&(t.sequence=(e.sequence||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.Any.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=e.accountNumber:t.accountNumber=i.default.UZERO,void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence=i.default.UZERO,t}};var u={name:"",permissions:""};t.ModuleAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseAccount&&t.BaseAccount.encode(e.baseAccount,n.uint32(10).fork()).ldelim(),""!==e.name&&n.uint32(18).string(e.name);var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.uint32(26).string(s)}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},u);for(i.permissions=[];r.pos>>3){case 1:i.baseAccount=t.BaseAccount.decode(r,r.uint32());break;case 2:i.name=r.string();break;case 3:i.permissions.push(r.string());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},u);if(n.permissions=[],void 0!==e.baseAccount&&null!==e.baseAccount?n.baseAccount=t.BaseAccount.fromJSON(e.baseAccount):n.baseAccount=void 0,void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.permissions&&null!==e.permissions){var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.permissions.push(String(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.baseAccount&&(n.baseAccount=e.baseAccount?t.BaseAccount.toJSON(e.baseAccount):void 0),void 0!==e.name&&(n.name=e.name),e.permissions?n.permissions=e.permissions.map((function(e){return e})):n.permissions=[],n},fromPartial:function(e){var n=Object.assign({},u);if(n.permissions=[],void 0!==e.baseAccount&&null!==e.baseAccount?n.baseAccount=t.BaseAccount.fromPartial(e.baseAccount):n.baseAccount=void 0,void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.permissions&&null!==e.permissions){var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.permissions.push(o)}}catch(e){i.e(e)}finally{i.f()}}return n}};var f={maxMemoCharacters:i.default.UZERO,txSigLimit:i.default.UZERO,txSizeCostPerByte:i.default.UZERO,sigVerifyCostEd25519:i.default.UZERO,sigVerifyCostSecp256k1:i.default.UZERO};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.maxMemoCharacters.isZero()||t.uint32(8).uint64(e.maxMemoCharacters),e.txSigLimit.isZero()||t.uint32(16).uint64(e.txSigLimit),e.txSizeCostPerByte.isZero()||t.uint32(24).uint64(e.txSizeCostPerByte),e.sigVerifyCostEd25519.isZero()||t.uint32(32).uint64(e.sigVerifyCostEd25519),e.sigVerifyCostSecp256k1.isZero()||t.uint32(40).uint64(e.sigVerifyCostSecp256k1),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.maxMemoCharacters=n.uint64();break;case 2:a.txSigLimit=n.uint64();break;case 3:a.txSizeCostPerByte=n.uint64();break;case 4:a.sigVerifyCostEd25519=n.uint64();break;case 5:a.sigVerifyCostSecp256k1=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters?t.maxMemoCharacters=i.default.fromString(e.maxMemoCharacters):t.maxMemoCharacters=i.default.UZERO,void 0!==e.txSigLimit&&null!==e.txSigLimit?t.txSigLimit=i.default.fromString(e.txSigLimit):t.txSigLimit=i.default.UZERO,void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte?t.txSizeCostPerByte=i.default.fromString(e.txSizeCostPerByte):t.txSizeCostPerByte=i.default.UZERO,void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=i.default.fromString(e.sigVerifyCostEd25519):t.sigVerifyCostEd25519=i.default.UZERO,void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=i.default.fromString(e.sigVerifyCostSecp256k1):t.sigVerifyCostSecp256k1=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.maxMemoCharacters&&(t.maxMemoCharacters=(e.maxMemoCharacters||i.default.UZERO).toString()),void 0!==e.txSigLimit&&(t.txSigLimit=(e.txSigLimit||i.default.UZERO).toString()),void 0!==e.txSizeCostPerByte&&(t.txSizeCostPerByte=(e.txSizeCostPerByte||i.default.UZERO).toString()),void 0!==e.sigVerifyCostEd25519&&(t.sigVerifyCostEd25519=(e.sigVerifyCostEd25519||i.default.UZERO).toString()),void 0!==e.sigVerifyCostSecp256k1&&(t.sigVerifyCostSecp256k1=(e.sigVerifyCostSecp256k1||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters?t.maxMemoCharacters=e.maxMemoCharacters:t.maxMemoCharacters=i.default.UZERO,void 0!==e.txSigLimit&&null!==e.txSigLimit?t.txSigLimit=e.txSigLimit:t.txSigLimit=i.default.UZERO,void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte?t.txSizeCostPerByte=e.txSizeCostPerByte:t.txSizeCostPerByte=i.default.UZERO,void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=e.sigVerifyCostEd25519:t.sigVerifyCostEd25519=i.default.UZERO,void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=e.sigVerifyCostSecp256k1:t.sigVerifyCostSecp256k1=i.default.UZERO,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},26265:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrantAuthorization=t.Grant=t.GenericAuthorization=t.protobufPackage=void 0;var a=r(n(12620)),i=r(n(50904)),o=n(81019),s=n(55120);t.protobufPackage="cosmos.authz.v1beta1";var c={msg:""};t.GenericAuthorization={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.msg&&t.uint32(10).string(e.msg),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3==1?a.msg=n.string():n.skipType(7&o)}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.msg&&null!==e.msg?t.msg=String(e.msg):t.msg="",t},toJSON:function(e){var t={};return void 0!==e.msg&&(t.msg=e.msg),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg="",t}};var u={};t.Grant={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return void 0!==e.authorization&&o.Any.encode(e.authorization,t.uint32(10).fork()).ldelim(),void 0!==e.expiration&&s.Timestamp.encode(d(e.expiration),t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.authorization=o.Any.decode(n,n.uint32());break;case 2:a.expiration=l(s.Timestamp.decode(n,n.uint32()));break;default:n.skipType(7&c)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.authorization&&null!==e.authorization?t.authorization=o.Any.fromJSON(e.authorization):t.authorization=void 0,void 0!==e.expiration&&null!==e.expiration?t.expiration=p(e.expiration):t.expiration=void 0,t},toJSON:function(e){var t={};return void 0!==e.authorization&&(t.authorization=e.authorization?o.Any.toJSON(e.authorization):void 0),void 0!==e.expiration&&(t.expiration=e.expiration.toISOString()),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.authorization&&null!==e.authorization?t.authorization=o.Any.fromPartial(e.authorization):t.authorization=void 0,void 0!==e.expiration&&null!==e.expiration?t.expiration=e.expiration:t.expiration=void 0,t}};var f={granter:"",grantee:""};function d(e){var t;return{seconds:(t=e.getTime()/1e3,a.default.fromNumber(t)),nanos:e.getTime()%1e3*1e6}}function l(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}function p(e){return e instanceof Date?e:"string"==typeof e?new Date(e):l(s.Timestamp.fromJSON(e))}t.GrantAuthorization={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),void 0!==e.authorization&&o.Any.encode(e.authorization,t.uint32(26).fork()).ldelim(),void 0!==e.expiration&&s.Timestamp.encode(d(e.expiration),t.uint32(34).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.granter=n.string();break;case 2:a.grantee=n.string();break;case 3:a.authorization=o.Any.decode(n,n.uint32());break;case 4:a.expiration=l(s.Timestamp.decode(n,n.uint32()));break;default:n.skipType(7&c)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=String(e.grantee):t.grantee="",void 0!==e.authorization&&null!==e.authorization?t.authorization=o.Any.fromJSON(e.authorization):t.authorization=void 0,void 0!==e.expiration&&null!==e.expiration?t.expiration=p(e.expiration):t.expiration=void 0,t},toJSON:function(e){var t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.authorization&&(t.authorization=e.authorization?o.Any.toJSON(e.authorization):void 0),void 0!==e.expiration&&(t.expiration=e.expiration.toISOString()),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=e.grantee:t.grantee="",void 0!==e.authorization&&null!==e.authorization?t.authorization=o.Any.fromPartial(e.authorization):t.authorization=void 0,void 0!==e.expiration&&null!==e.expiration?t.expiration=e.expiration:t.expiration=void 0,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},18110:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(21146).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgRevokeDesc=t.MsgExecDesc=t.MsgGrantDesc=t.MsgDesc=t.MsgClientImpl=t.MsgRevokeResponse=t.MsgRevoke=t.MsgGrantResponse=t.MsgExec=t.MsgExecResponse=t.MsgGrant=t.protobufPackage=void 0;var s=o(n(12620)),c=n(94680),u=o(n(50904)),f=n(26265),d=n(84587),l=n(81019);t.protobufPackage="cosmos.authz.v1beta1";var p={granter:"",grantee:""};t.MsgGrant={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),void 0!==e.grant&&f.Grant.encode(e.grant,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.granter=n.string();break;case 2:a.grantee=n.string();break;case 3:a.grant=f.Grant.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=String(e.grantee):t.grantee="",void 0!==e.grant&&null!==e.grant?t.grant=f.Grant.fromJSON(e.grant):t.grant=void 0,t},toJSON:function(e){var t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.grant&&(t.grant=e.grant?f.Grant.toJSON(e.grant):void 0),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=e.grantee:t.grantee="",void 0!==e.grant&&null!==e.grant?t.grant=f.Grant.fromPartial(e.grant):t.grant=void 0,t}};var b={};t.MsgExecResponse={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create(),r=i(e.results);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).bytes(a)}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.results=[];n.pos>>3==1?a.results.push(n.bytes()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},b);if(t.results=[],void 0!==e.results&&null!==e.results){var n,r=i(e.results);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.results.push(_(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return e.results?t.results=e.results.map((function(e){return function(e){var t,n=[],r=i(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.push(String.fromCharCode(a))}}catch(e){r.e(e)}finally{r.f()}return k(n.join(""))}(void 0!==e?e:new Uint8Array)})):t.results=[],t},fromPartial:function(e){var t=Object.assign({},b);if(t.results=[],void 0!==e.results&&null!==e.results){var n,r=i(e.results);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.results.push(a)}}catch(e){r.e(e)}finally{r.f()}}return t}};var h={grantee:""};t.MsgExec={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.grantee&&t.uint32(10).string(e.grantee);var n,r=i(e.msgs);try{for(r.s();!(n=r.n()).done;){var a=n.value;l.Any.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.msgs=[];n.pos>>3){case 1:a.grantee=n.string();break;case 2:a.msgs.push(l.Any.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);if(t.msgs=[],void 0!==e.grantee&&null!==e.grantee?t.grantee=String(e.grantee):t.grantee="",void 0!==e.msgs&&null!==e.msgs){var n,r=i(e.msgs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.msgs.push(l.Any.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.grantee&&(t.grantee=e.grantee),e.msgs?t.msgs=e.msgs.map((function(e){return e?l.Any.toJSON(e):void 0})):t.msgs=[],t},fromPartial:function(e){var t=Object.assign({},h);if(t.msgs=[],void 0!==e.grantee&&null!==e.grantee?t.grantee=e.grantee:t.grantee="",void 0!==e.msgs&&null!==e.msgs){var n,r=i(e.msgs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.msgs.push(l.Any.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var y={};t.MsgGrantResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),""!==e.msgTypeUrl&&t.uint32(26).string(e.msgTypeUrl),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3){case 1:a.granter=n.string();break;case 2:a.grantee=n.string();break;case 3:a.msgTypeUrl=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=String(e.grantee):t.grantee="",void 0!==e.msgTypeUrl&&null!==e.msgTypeUrl?t.msgTypeUrl=String(e.msgTypeUrl):t.msgTypeUrl="",t},toJSON:function(e){var t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.msgTypeUrl&&(t.msgTypeUrl=e.msgTypeUrl),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=e.grantee:t.grantee="",void 0!==e.msgTypeUrl&&null!==e.msgTypeUrl?t.msgTypeUrl=e.msgTypeUrl:t.msgTypeUrl="",t}};var v={};t.MsgRevokeResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.spendLimit);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.spendLimit=[];n.pos>>3==1?a.spendLimit.push(s.Coin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},c);if(t.spendLimit=[],void 0!==e.spendLimit&&null!==e.spendLimit){var n,a=r(e.spendLimit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.spendLimit.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.spendLimit?t.spendLimit=e.spendLimit.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.spendLimit=[],t},fromPartial:function(e){var t=Object.assign({},c);if(t.spendLimit=[],void 0!==e.spendLimit&&null!==e.spendLimit){var n,a=r(e.spendLimit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.spendLimit.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},53174:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=t.DenomUnit=t.Supply=t.Output=t.Input=t.SendEnabled=t.Params=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(50904)),s=n(790);t.protobufPackage="cosmos.bank.v1beta1";var c={defaultSendEnabled:!1};t.Params={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.sendEnabled);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.SendEnabled.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return!0===e.defaultSendEnabled&&a.uint32(16).bool(e.defaultSendEnabled),a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);for(i.sendEnabled=[];r.pos>>3){case 1:i.sendEnabled.push(t.SendEnabled.decode(r,r.uint32()));break;case 2:i.defaultSendEnabled=r.bool();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);if(n.sendEnabled=[],void 0!==e.sendEnabled&&null!==e.sendEnabled){var a,i=r(e.sendEnabled);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.sendEnabled.push(t.SendEnabled.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.defaultSendEnabled&&null!==e.defaultSendEnabled?n.defaultSendEnabled=Boolean(e.defaultSendEnabled):n.defaultSendEnabled=!1,n},toJSON:function(e){var n={};return e.sendEnabled?n.sendEnabled=e.sendEnabled.map((function(e){return e?t.SendEnabled.toJSON(e):void 0})):n.sendEnabled=[],void 0!==e.defaultSendEnabled&&(n.defaultSendEnabled=e.defaultSendEnabled),n},fromPartial:function(e){var n=Object.assign({},c);if(n.sendEnabled=[],void 0!==e.sendEnabled&&null!==e.sendEnabled){var a,i=r(e.sendEnabled);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.sendEnabled.push(t.SendEnabled.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.defaultSendEnabled&&null!==e.defaultSendEnabled?n.defaultSendEnabled=e.defaultSendEnabled:n.defaultSendEnabled=!1,n}};var u={denom:"",enabled:!1};t.SendEnabled={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),!0===e.enabled&&t.uint32(16).bool(e.enabled),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.enabled=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.enabled&&null!==e.enabled?t.enabled=Boolean(e.enabled):t.enabled=!1,t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.enabled&&(t.enabled=e.enabled),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.enabled&&null!==e.enabled?t.enabled=e.enabled:t.enabled=!1,t}};var f={address:""};t.Input={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.address&&t.uint32(10).string(e.address);var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.coins=[];n.pos>>3){case 1:a.address=n.string();break;case 2:a.coins.push(s.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.coins&&null!==e.coins){var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.coins.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.coins=[],t},fromPartial:function(e){var t=Object.assign({},f);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.coins&&null!==e.coins){var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.coins.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var d={address:""};t.Output={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.address&&t.uint32(10).string(e.address);var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.coins=[];n.pos>>3){case 1:a.address=n.string();break;case 2:a.coins.push(s.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.coins&&null!==e.coins){var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.coins.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.coins=[],t},fromPartial:function(e){var t=Object.assign({},d);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.coins&&null!==e.coins){var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.coins.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var l={};t.Supply={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.total);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.total=[];n.pos>>3==1?a.total.push(s.Coin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.total=[],void 0!==e.total&&null!==e.total){var n,a=r(e.total);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.total.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.total?t.total=e.total.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.total=[],t},fromPartial:function(e){var t=Object.assign({},l);if(t.total=[],void 0!==e.total&&null!==e.total){var n,a=r(e.total);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.total.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var p={denom:"",exponent:0,aliases:""};t.DenomUnit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.denom&&t.uint32(10).string(e.denom),0!==e.exponent&&t.uint32(16).uint32(e.exponent);var n,a=r(e.aliases);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(26).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.aliases=[];n.pos>>3){case 1:a.denom=n.string();break;case 2:a.exponent=n.uint32();break;case 3:a.aliases.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);if(t.aliases=[],void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.exponent&&null!==e.exponent?t.exponent=Number(e.exponent):t.exponent=0,void 0!==e.aliases&&null!==e.aliases){var n,a=r(e.aliases);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.aliases.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.exponent&&(t.exponent=e.exponent),e.aliases?t.aliases=e.aliases.map((function(e){return e})):t.aliases=[],t},fromPartial:function(e){var t=Object.assign({},p);if(t.aliases=[],void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.exponent&&null!==e.exponent?t.exponent=e.exponent:t.exponent=0,void 0!==e.aliases&&null!==e.aliases){var n,a=r(e.aliases);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.aliases.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var b={description:"",base:"",display:"",name:"",symbol:""};t.Metadata={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.description&&n.uint32(10).string(e.description);var a,i=r(e.denomUnits);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.DenomUnit.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return""!==e.base&&n.uint32(26).string(e.base),""!==e.display&&n.uint32(34).string(e.display),""!==e.name&&n.uint32(42).string(e.name),""!==e.symbol&&n.uint32(50).string(e.symbol),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);for(i.denomUnits=[];r.pos>>3){case 1:i.description=r.string();break;case 2:i.denomUnits.push(t.DenomUnit.decode(r,r.uint32()));break;case 3:i.base=r.string();break;case 4:i.display=r.string();break;case 5:i.name=r.string();break;case 6:i.symbol=r.string();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},b);if(n.denomUnits=[],void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.denomUnits&&null!==e.denomUnits){var a,i=r(e.denomUnits);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.denomUnits.push(t.DenomUnit.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.base&&null!==e.base?n.base=String(e.base):n.base="",void 0!==e.display&&null!==e.display?n.display=String(e.display):n.display="",void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.symbol&&null!==e.symbol?n.symbol=String(e.symbol):n.symbol="",n},toJSON:function(e){var n={};return void 0!==e.description&&(n.description=e.description),e.denomUnits?n.denomUnits=e.denomUnits.map((function(e){return e?t.DenomUnit.toJSON(e):void 0})):n.denomUnits=[],void 0!==e.base&&(n.base=e.base),void 0!==e.display&&(n.display=e.display),void 0!==e.name&&(n.name=e.name),void 0!==e.symbol&&(n.symbol=e.symbol),n},fromPartial:function(e){var n=Object.assign({},b);if(n.denomUnits=[],void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.denomUnits&&null!==e.denomUnits){var a,i=r(e.denomUnits);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.denomUnits.push(t.DenomUnit.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.base&&null!==e.base?n.base=e.base:n.base="",void 0!==e.display&&null!==e.display?n.display=e.display:n.display="",void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.symbol&&null!==e.symbol?n.symbol=e.symbol:n.symbol="",n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},6301:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(21146).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgMultiSendDesc=t.MsgSendDesc=t.MsgDesc=t.MsgClientImpl=t.MsgMultiSendResponse=t.MsgMultiSend=t.MsgSendResponse=t.MsgSend=t.protobufPackage=void 0;var s=o(n(12620)),c=n(94680),u=o(n(50904)),f=n(84587),d=n(790),l=n(53174);t.protobufPackage="cosmos.bank.v1beta1";var p={fromAddress:"",toAddress:""};t.MsgSend={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress);var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;d.Coin.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.amount=[];n.pos>>3){case 1:a.fromAddress=n.string();break;case 2:a.toAddress=n.string();break;case 3:a.amount.push(d.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);if(t.amount=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=String(e.toAddress):t.toAddress="",void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(d.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map((function(e){return e?d.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t=Object.assign({},p);if(t.amount=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=e.toAddress:t.toAddress="",void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(d.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var b={};t.MsgSendResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create(),r=i(e.inputs);try{for(r.s();!(t=r.n()).done;){var a=t.value;l.Input.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var o,s=i(e.outputs);try{for(s.s();!(o=s.n()).done;){var c=o.value;l.Output.encode(c,n.uint32(18).fork()).ldelim()}}catch(e){s.e(e)}finally{s.f()}return n},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.inputs=[],a.outputs=[];n.pos>>3){case 1:a.inputs.push(l.Input.decode(n,n.uint32()));break;case 2:a.outputs.push(l.Output.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);if(t.inputs=[],t.outputs=[],void 0!==e.inputs&&null!==e.inputs){var n,r=i(e.inputs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.inputs.push(l.Input.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}if(void 0!==e.outputs&&null!==e.outputs){var o,s=i(e.outputs);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.outputs.push(l.Output.fromJSON(c))}}catch(e){s.e(e)}finally{s.f()}}return t},toJSON:function(e){var t={};return e.inputs?t.inputs=e.inputs.map((function(e){return e?l.Input.toJSON(e):void 0})):t.inputs=[],e.outputs?t.outputs=e.outputs.map((function(e){return e?l.Output.toJSON(e):void 0})):t.outputs=[],t},fromPartial:function(e){var t=Object.assign({},h);if(t.inputs=[],t.outputs=[],void 0!==e.inputs&&null!==e.inputs){var n,r=i(e.inputs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.inputs.push(l.Input.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}if(void 0!==e.outputs&&null!==e.outputs){var o,s=i(e.outputs);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.outputs.push(l.Output.fromPartial(c))}}catch(e){s.e(e)}finally{s.f()}}return t}};var y={};t.MsgMultiSendResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.height.isZero()||n.uint32(8).int64(e.height),""!==e.txhash&&n.uint32(18).string(e.txhash),""!==e.codespace&&n.uint32(26).string(e.codespace),0!==e.code&&n.uint32(32).uint32(e.code),""!==e.data&&n.uint32(42).string(e.data),""!==e.rawLog&&n.uint32(50).string(e.rawLog);var a,i=r(e.logs);try{for(i.s();!(a=i.n()).done;){var u=a.value;t.ABCIMessageLog.encode(u,n.uint32(58).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}""!==e.info&&n.uint32(66).string(e.info),e.gasWanted.isZero()||n.uint32(72).int64(e.gasWanted),e.gasUsed.isZero()||n.uint32(80).int64(e.gasUsed),void 0!==e.tx&&s.Any.encode(e.tx,n.uint32(90).fork()).ldelim(),""!==e.timestamp&&n.uint32(98).string(e.timestamp);var f,d=r(e.events);try{for(d.s();!(f=d.n()).done;){var l=f.value;c.Event.encode(l,n.uint32(106).fork()).ldelim()}}catch(e){d.e(e)}finally{d.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},u);for(i.logs=[],i.events=[];r.pos>>3){case 1:i.height=r.int64();break;case 2:i.txhash=r.string();break;case 3:i.codespace=r.string();break;case 4:i.code=r.uint32();break;case 5:i.data=r.string();break;case 6:i.rawLog=r.string();break;case 7:i.logs.push(t.ABCIMessageLog.decode(r,r.uint32()));break;case 8:i.info=r.string();break;case 9:i.gasWanted=r.int64();break;case 10:i.gasUsed=r.int64();break;case 11:i.tx=s.Any.decode(r,r.uint32());break;case 12:i.timestamp=r.string();break;case 13:i.events.push(c.Event.decode(r,r.uint32()));break;default:r.skipType(7&f)}}return i},fromJSON:function(e){var n=Object.assign({},u);if(n.logs=[],n.events=[],void 0!==e.height&&null!==e.height?n.height=i.default.fromString(e.height):n.height=i.default.ZERO,void 0!==e.txhash&&null!==e.txhash?n.txhash=String(e.txhash):n.txhash="",void 0!==e.codespace&&null!==e.codespace?n.codespace=String(e.codespace):n.codespace="",void 0!==e.code&&null!==e.code?n.code=Number(e.code):n.code=0,void 0!==e.data&&null!==e.data?n.data=String(e.data):n.data="",void 0!==e.rawLog&&null!==e.rawLog?n.rawLog=String(e.rawLog):n.rawLog="",void 0!==e.logs&&null!==e.logs){var a,o=r(e.logs);try{for(o.s();!(a=o.n()).done;){var f=a.value;n.logs.push(t.ABCIMessageLog.fromJSON(f))}}catch(e){o.e(e)}finally{o.f()}}if(void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=i.default.fromString(e.gasWanted):n.gasWanted=i.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=i.default.fromString(e.gasUsed):n.gasUsed=i.default.ZERO,void 0!==e.tx&&null!==e.tx?n.tx=s.Any.fromJSON(e.tx):n.tx=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=String(e.timestamp):n.timestamp="",void 0!==e.events&&null!==e.events){var d,l=r(e.events);try{for(l.s();!(d=l.n()).done;){var p=d.value;n.events.push(c.Event.fromJSON(p))}}catch(e){l.e(e)}finally{l.f()}}return n},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=(e.height||i.default.ZERO).toString()),void 0!==e.txhash&&(n.txhash=e.txhash),void 0!==e.codespace&&(n.codespace=e.codespace),void 0!==e.code&&(n.code=e.code),void 0!==e.data&&(n.data=e.data),void 0!==e.rawLog&&(n.rawLog=e.rawLog),e.logs?n.logs=e.logs.map((function(e){return e?t.ABCIMessageLog.toJSON(e):void 0})):n.logs=[],void 0!==e.info&&(n.info=e.info),void 0!==e.gasWanted&&(n.gasWanted=(e.gasWanted||i.default.ZERO).toString()),void 0!==e.gasUsed&&(n.gasUsed=(e.gasUsed||i.default.ZERO).toString()),void 0!==e.tx&&(n.tx=e.tx?s.Any.toJSON(e.tx):void 0),void 0!==e.timestamp&&(n.timestamp=e.timestamp),e.events?n.events=e.events.map((function(e){return e?c.Event.toJSON(e):void 0})):n.events=[],n},fromPartial:function(e){var n=Object.assign({},u);if(n.logs=[],n.events=[],void 0!==e.height&&null!==e.height?n.height=e.height:n.height=i.default.ZERO,void 0!==e.txhash&&null!==e.txhash?n.txhash=e.txhash:n.txhash="",void 0!==e.codespace&&null!==e.codespace?n.codespace=e.codespace:n.codespace="",void 0!==e.code&&null!==e.code?n.code=e.code:n.code=0,void 0!==e.data&&null!==e.data?n.data=e.data:n.data="",void 0!==e.rawLog&&null!==e.rawLog?n.rawLog=e.rawLog:n.rawLog="",void 0!==e.logs&&null!==e.logs){var a,o=r(e.logs);try{for(o.s();!(a=o.n()).done;){var f=a.value;n.logs.push(t.ABCIMessageLog.fromPartial(f))}}catch(e){o.e(e)}finally{o.f()}}if(void 0!==e.info&&null!==e.info?n.info=e.info:n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=e.gasWanted:n.gasWanted=i.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=e.gasUsed:n.gasUsed=i.default.ZERO,void 0!==e.tx&&null!==e.tx?n.tx=s.Any.fromPartial(e.tx):n.tx=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=e.timestamp:n.timestamp="",void 0!==e.events&&null!==e.events){var d,l=r(e.events);try{for(l.s();!(d=l.n()).done;){var p=d.value;n.events.push(c.Event.fromPartial(p))}}catch(e){l.e(e)}finally{l.f()}}return n}};var f={msgIndex:0,log:""};t.ABCIMessageLog={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();0!==e.msgIndex&&n.uint32(8).uint32(e.msgIndex),""!==e.log&&n.uint32(18).string(e.log);var a,i=r(e.events);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.StringEvent.encode(s,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);for(i.events=[];r.pos>>3){case 1:i.msgIndex=r.uint32();break;case 2:i.log=r.string();break;case 3:i.events.push(t.StringEvent.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},f);if(n.events=[],void 0!==e.msgIndex&&null!==e.msgIndex?n.msgIndex=Number(e.msgIndex):n.msgIndex=0,void 0!==e.log&&null!==e.log?n.log=String(e.log):n.log="",void 0!==e.events&&null!==e.events){var a,i=r(e.events);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.events.push(t.StringEvent.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.msgIndex&&(n.msgIndex=e.msgIndex),void 0!==e.log&&(n.log=e.log),e.events?n.events=e.events.map((function(e){return e?t.StringEvent.toJSON(e):void 0})):n.events=[],n},fromPartial:function(e){var n=Object.assign({},f);if(n.events=[],void 0!==e.msgIndex&&null!==e.msgIndex?n.msgIndex=e.msgIndex:n.msgIndex=0,void 0!==e.log&&null!==e.log?n.log=e.log:n.log="",void 0!==e.events&&null!==e.events){var a,i=r(e.events);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.events.push(t.StringEvent.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var d={type:""};t.StringEvent={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.type&&n.uint32(10).string(e.type);var a,i=r(e.attributes);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Attribute.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);for(i.attributes=[];r.pos>>3){case 1:i.type=r.string();break;case 2:i.attributes.push(t.Attribute.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},d);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=String(e.type):n.type="",void 0!==e.attributes&&null!==e.attributes){var a,i=r(e.attributes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.attributes.push(t.Attribute.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=e.type),e.attributes?n.attributes=e.attributes.map((function(e){return e?t.Attribute.toJSON(e):void 0})):n.attributes=[],n},fromPartial:function(e){var n=Object.assign({},d);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=e.type:n.type="",void 0!==e.attributes&&null!==e.attributes){var a,i=r(e.attributes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.attributes.push(t.Attribute.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var l={key:"",value:""};t.Attribute={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.key=n.string();break;case 2:a.value=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}};var p={gasWanted:i.default.UZERO,gasUsed:i.default.UZERO};t.GasInfo={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.gasWanted.isZero()||t.uint32(8).uint64(e.gasWanted),e.gasUsed.isZero()||t.uint32(16).uint64(e.gasUsed),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.gasWanted=n.uint64();break;case 2:a.gasUsed=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.gasWanted&&null!==e.gasWanted?t.gasWanted=i.default.fromString(e.gasWanted):t.gasWanted=i.default.UZERO,void 0!==e.gasUsed&&null!==e.gasUsed?t.gasUsed=i.default.fromString(e.gasUsed):t.gasUsed=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.gasWanted&&(t.gasWanted=(e.gasWanted||i.default.UZERO).toString()),void 0!==e.gasUsed&&(t.gasUsed=(e.gasUsed||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.gasWanted&&null!==e.gasWanted?t.gasWanted=e.gasWanted:t.gasWanted=i.default.UZERO,void 0!==e.gasUsed&&null!==e.gasUsed?t.gasUsed=e.gasUsed:t.gasUsed=i.default.UZERO,t}};var b={log:""};t.Result={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();0!==e.data.length&&t.uint32(10).bytes(e.data),""!==e.log&&t.uint32(18).string(e.log);var n,a=r(e.events);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Event.encode(i,t.uint32(26).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.events=[],a.data=new Uint8Array;n.pos>>3){case 1:a.data=n.bytes();break;case 2:a.log=n.string();break;case 3:a.events.push(c.Event.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);if(t.events=[],t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=w(e.data)),void 0!==e.log&&null!==e.log?t.log=String(e.log):t.log="",void 0!==e.events&&null!==e.events){var n,a=r(e.events);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.events.push(c.Event.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=_(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(t.log=e.log),e.events?t.events=e.events.map((function(e){return e?c.Event.toJSON(e):void 0})):t.events=[],t},fromPartial:function(e){var t=Object.assign({},b);if(t.events=[],void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.log&&null!==e.log?t.log=e.log:t.log="",void 0!==e.events&&null!==e.events){var n,a=r(e.events);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.events.push(c.Event.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var h={};t.SimulationResponse={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.gasInfo&&t.GasInfo.encode(e.gasInfo,n.uint32(10).fork()).ldelim(),void 0!==e.result&&t.Result.encode(e.result,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},h);r.pos>>3){case 1:i.gasInfo=t.GasInfo.decode(r,r.uint32());break;case 2:i.result=t.Result.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},h);return void 0!==e.gasInfo&&null!==e.gasInfo?n.gasInfo=t.GasInfo.fromJSON(e.gasInfo):n.gasInfo=void 0,void 0!==e.result&&null!==e.result?n.result=t.Result.fromJSON(e.result):n.result=void 0,n},toJSON:function(e){var n={};return void 0!==e.gasInfo&&(n.gasInfo=e.gasInfo?t.GasInfo.toJSON(e.gasInfo):void 0),void 0!==e.result&&(n.result=e.result?t.Result.toJSON(e.result):void 0),n},fromPartial:function(e){var n=Object.assign({},h);return void 0!==e.gasInfo&&null!==e.gasInfo?n.gasInfo=t.GasInfo.fromPartial(e.gasInfo):n.gasInfo=void 0,void 0!==e.result&&null!==e.result?n.result=t.Result.fromPartial(e.result):n.result=void 0,n}};var y={msgType:""};t.MsgData={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.msgType&&t.uint32(10).string(e.msgType),0!==e.data.length&&t.uint32(18).bytes(e.data),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.data=new Uint8Array;n.pos>>3){case 1:a.msgType=n.string();break;case 2:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return t.data=new Uint8Array,void 0!==e.msgType&&null!==e.msgType?t.msgType=String(e.msgType):t.msgType="",void 0!==e.data&&null!==e.data&&(t.data=w(e.data)),t},toJSON:function(e){var t={};return void 0!==e.msgType&&(t.msgType=e.msgType),void 0!==e.data&&(t.data=_(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.msgType&&null!==e.msgType?t.msgType=e.msgType:t.msgType="",void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var m={};t.TxMsgData={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.data);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.MsgData.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},m);for(i.data=[];r.pos>>3==1?i.data.push(t.MsgData.decode(r,r.uint32())):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},m);if(n.data=[],void 0!==e.data&&null!==e.data){var a,i=r(e.data);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.data.push(t.MsgData.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.data?n.data=e.data.map((function(e){return e?t.MsgData.toJSON(e):void 0})):n.data=[],n},fromPartial:function(e){var n=Object.assign({},m);if(n.data=[],void 0!==e.data&&null!==e.data){var a,i=r(e.data);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.data.push(t.MsgData.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var v={totalCount:i.default.UZERO,count:i.default.UZERO,pageNumber:i.default.UZERO,pageTotal:i.default.UZERO,limit:i.default.UZERO};t.SearchTxsResult={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.totalCount.isZero()||n.uint32(8).uint64(e.totalCount),e.count.isZero()||n.uint32(16).uint64(e.count),e.pageNumber.isZero()||n.uint32(24).uint64(e.pageNumber),e.pageTotal.isZero()||n.uint32(32).uint64(e.pageTotal),e.limit.isZero()||n.uint32(40).uint64(e.limit);var a,i=r(e.txs);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.TxResponse.encode(s,n.uint32(50).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},v);for(i.txs=[];r.pos>>3){case 1:i.totalCount=r.uint64();break;case 2:i.count=r.uint64();break;case 3:i.pageNumber=r.uint64();break;case 4:i.pageTotal=r.uint64();break;case 5:i.limit=r.uint64();break;case 6:i.txs.push(t.TxResponse.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},v);if(n.txs=[],void 0!==e.totalCount&&null!==e.totalCount?n.totalCount=i.default.fromString(e.totalCount):n.totalCount=i.default.UZERO,void 0!==e.count&&null!==e.count?n.count=i.default.fromString(e.count):n.count=i.default.UZERO,void 0!==e.pageNumber&&null!==e.pageNumber?n.pageNumber=i.default.fromString(e.pageNumber):n.pageNumber=i.default.UZERO,void 0!==e.pageTotal&&null!==e.pageTotal?n.pageTotal=i.default.fromString(e.pageTotal):n.pageTotal=i.default.UZERO,void 0!==e.limit&&null!==e.limit?n.limit=i.default.fromString(e.limit):n.limit=i.default.UZERO,void 0!==e.txs&&null!==e.txs){var a,o=r(e.txs);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.txs.push(t.TxResponse.fromJSON(s))}}catch(e){o.e(e)}finally{o.f()}}return n},toJSON:function(e){var n={};return void 0!==e.totalCount&&(n.totalCount=(e.totalCount||i.default.UZERO).toString()),void 0!==e.count&&(n.count=(e.count||i.default.UZERO).toString()),void 0!==e.pageNumber&&(n.pageNumber=(e.pageNumber||i.default.UZERO).toString()),void 0!==e.pageTotal&&(n.pageTotal=(e.pageTotal||i.default.UZERO).toString()),void 0!==e.limit&&(n.limit=(e.limit||i.default.UZERO).toString()),e.txs?n.txs=e.txs.map((function(e){return e?t.TxResponse.toJSON(e):void 0})):n.txs=[],n},fromPartial:function(e){var n=Object.assign({},v);if(n.txs=[],void 0!==e.totalCount&&null!==e.totalCount?n.totalCount=e.totalCount:n.totalCount=i.default.UZERO,void 0!==e.count&&null!==e.count?n.count=e.count:n.count=i.default.UZERO,void 0!==e.pageNumber&&null!==e.pageNumber?n.pageNumber=e.pageNumber:n.pageNumber=i.default.UZERO,void 0!==e.pageTotal&&null!==e.pageTotal?n.pageTotal=e.pageTotal:n.pageTotal=i.default.UZERO,void 0!==e.limit&&null!==e.limit?n.limit=e.limit:n.limit=i.default.UZERO,void 0!==e.txs&&null!==e.txs){var a,o=r(e.txs);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.txs.push(t.TxResponse.fromPartial(s))}}catch(e){o.e(e)}finally{o.f()}}return n}};var g=function(){if(void 0!==g)return g;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),A=g.atob||function(e){return g.Buffer.from(e,"base64").toString("binary")};function w(e){for(var t=A(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),e.offset.isZero()||t.uint32(16).uint64(e.offset),e.limit.isZero()||t.uint32(24).uint64(e.limit),!0===e.countTotal&&t.uint32(32).bool(e.countTotal),!0===e.reverse&&t.uint32(40).bool(e.reverse),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.key=new Uint8Array;n.pos>>3){case 1:a.key=n.bytes();break;case 2:a.offset=n.uint64();break;case 3:a.limit=n.uint64();break;case 4:a.countTotal=n.bool();break;case 5:a.reverse=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);return t.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=d(e.key)),void 0!==e.offset&&null!==e.offset?t.offset=i.default.fromString(e.offset):t.offset=i.default.UZERO,void 0!==e.limit&&null!==e.limit?t.limit=i.default.fromString(e.limit):t.limit=i.default.UZERO,void 0!==e.countTotal&&null!==e.countTotal?t.countTotal=Boolean(e.countTotal):t.countTotal=!1,void 0!==e.reverse&&null!==e.reverse?t.reverse=Boolean(e.reverse):t.reverse=!1,t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=p(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.offset&&(t.offset=(e.offset||i.default.UZERO).toString()),void 0!==e.limit&&(t.limit=(e.limit||i.default.UZERO).toString()),void 0!==e.countTotal&&(t.countTotal=e.countTotal),void 0!==e.reverse&&(t.reverse=e.reverse),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.offset&&null!==e.offset?t.offset=e.offset:t.offset=i.default.UZERO,void 0!==e.limit&&null!==e.limit?t.limit=e.limit:t.limit=i.default.UZERO,void 0!==e.countTotal&&null!==e.countTotal?t.countTotal=e.countTotal:t.countTotal=!1,void 0!==e.reverse&&null!==e.reverse?t.reverse=e.reverse:t.reverse=!1,t}};var c={total:i.default.UZERO};t.PageResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.nextKey.length&&t.uint32(10).bytes(e.nextKey),e.total.isZero()||t.uint32(16).uint64(e.total),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.nextKey=new Uint8Array;n.pos>>3){case 1:a.nextKey=n.bytes();break;case 2:a.total=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return t.nextKey=new Uint8Array,void 0!==e.nextKey&&null!==e.nextKey&&(t.nextKey=d(e.nextKey)),void 0!==e.total&&null!==e.total?t.total=i.default.fromString(e.total):t.total=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.nextKey&&(t.nextKey=p(void 0!==e.nextKey?e.nextKey:new Uint8Array)),void 0!==e.total&&(t.total=(e.total||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.nextKey&&null!==e.nextKey?t.nextKey=e.nextKey:t.nextKey=new Uint8Array,void 0!==e.total&&null!==e.total?t.total=e.total:t.total=i.default.UZERO,t}};var u=function(){if(void 0!==u)return u;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),f=u.atob||function(e){return u.Buffer.from(e,"base64").toString("binary")};function d(e){for(var t=f(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t}};var s={denom:"",amount:""};t.DecCoin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t}};var c={int:""};t.IntProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.int&&t.uint32(10).string(e.int),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3==1?a.int=n.string():n.skipType(7&o)}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.int&&null!==e.int?t.int=String(e.int):t.int="",t},toJSON:function(e){var t={};return void 0!==e.int&&(t.int=e.int),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.int&&null!==e.int?t.int=e.int:t.int="",t}};var u={dec:""};t.DecProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.dec&&t.uint32(10).string(e.dec),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3==1?a.dec=n.string():n.skipType(7&o)}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.dec&&null!==e.dec?t.dec=String(e.dec):t.dec="",t},toJSON:function(e){var t={};return void 0!==e.dec&&(t.dec=e.dec),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.dec&&null!==e.dec?t.dec=e.dec:t.dec="",t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},70670:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgVerifyInvariantDesc=t.MsgDesc=t.MsgClientImpl=t.MsgVerifyInvariantResponse=t.MsgVerifyInvariant=t.protobufPackage=void 0;var o=i(n(12620)),s=n(94680),c=i(n(50904)),u=n(84587);t.protobufPackage="cosmos.crisis.v1beta1";var f={sender:"",invariantModuleName:"",invariantRoute:""};t.MsgVerifyInvariant={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),""!==e.invariantModuleName&&t.uint32(18).string(e.invariantModuleName),""!==e.invariantRoute&&t.uint32(26).string(e.invariantRoute),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.sender=n.string();break;case 2:a.invariantModuleName=n.string();break;case 3:a.invariantRoute=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.invariantModuleName&&null!==e.invariantModuleName?t.invariantModuleName=String(e.invariantModuleName):t.invariantModuleName="",void 0!==e.invariantRoute&&null!==e.invariantRoute?t.invariantRoute=String(e.invariantRoute):t.invariantRoute="",t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.invariantModuleName&&(t.invariantModuleName=e.invariantModuleName),void 0!==e.invariantRoute&&(t.invariantRoute=e.invariantRoute),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.invariantModuleName&&null!==e.invariantModuleName?t.invariantModuleName=e.invariantModuleName:t.invariantModuleName="",void 0!==e.invariantRoute&&null!==e.invariantRoute?t.invariantRoute=e.invariantRoute:t.invariantRoute="",t}};var d={};t.MsgVerifyInvariantResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.key=new Uint8Array;n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},s);return t.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=d(e.key)),t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=p(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,t}};var c={};t.PrivKey={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.key=new Uint8Array;n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},c);return t.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=d(e.key)),t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=p(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,t}};var u=function(){if(void 0!==u)return u;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),f=u.atob||function(e){return u.Buffer.from(e,"base64").toString("binary")};function d(e){for(var t=f(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();0!==e.threshold&&t.uint32(8).uint32(e.threshold);var n,a=r(e.publicKeys);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.Any.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.publicKeys=[];n.pos>>3){case 1:a.threshold=n.uint32();break;case 2:a.publicKeys.push(s.Any.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);if(t.publicKeys=[],void 0!==e.threshold&&null!==e.threshold?t.threshold=Number(e.threshold):t.threshold=0,void 0!==e.publicKeys&&null!==e.publicKeys){var n,a=r(e.publicKeys);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.publicKeys.push(s.Any.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.threshold&&(t.threshold=e.threshold),e.publicKeys?t.publicKeys=e.publicKeys.map((function(e){return e?s.Any.toJSON(e):void 0})):t.publicKeys=[],t},fromPartial:function(e){var t=Object.assign({},c);if(t.publicKeys=[],void 0!==e.threshold&&null!==e.threshold?t.threshold=e.threshold:t.threshold=0,void 0!==e.publicKeys&&null!==e.publicKeys){var n,a=r(e.publicKeys);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.publicKeys.push(s.Any.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},81506:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompactBitArray=t.MultiSignature=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(50904));t.protobufPackage="cosmos.crypto.multisig.v1beta1";var s={};t.MultiSignature={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.signatures);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.signatures=[];n.pos>>3==1?a.signatures.push(n.bytes()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},s);if(t.signatures=[],void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(d(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.signatures?t.signatures=e.signatures.map((function(e){return p(void 0!==e?e:new Uint8Array)})):t.signatures=[],t},fromPartial:function(e){var t=Object.assign({},s);if(t.signatures=[],void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var c={extraBitsStored:0};t.CompactBitArray={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.extraBitsStored&&t.uint32(8).uint32(e.extraBitsStored),0!==e.elems.length&&t.uint32(18).bytes(e.elems),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.elems=new Uint8Array;n.pos>>3){case 1:a.extraBitsStored=n.uint32();break;case 2:a.elems=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return t.elems=new Uint8Array,void 0!==e.extraBitsStored&&null!==e.extraBitsStored?t.extraBitsStored=Number(e.extraBitsStored):t.extraBitsStored=0,void 0!==e.elems&&null!==e.elems&&(t.elems=d(e.elems)),t},toJSON:function(e){var t={};return void 0!==e.extraBitsStored&&(t.extraBitsStored=e.extraBitsStored),void 0!==e.elems&&(t.elems=p(void 0!==e.elems?e.elems:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.extraBitsStored&&null!==e.extraBitsStored?t.extraBitsStored=e.extraBitsStored:t.extraBitsStored=0,void 0!==e.elems&&null!==e.elems?t.elems=e.elems:t.elems=new Uint8Array,t}};var u=function(){if(void 0!==u)return u;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),f=u.atob||function(e){return u.Buffer.from(e,"base64").toString("binary")};function d(e){for(var t=f(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.key=new Uint8Array;n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},s);return t.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=d(e.key)),t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=p(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,t}};var c={};t.PrivKey={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.key=new Uint8Array;n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},c);return t.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=d(e.key)),t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=p(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,t}};var u=function(){if(void 0!==u)return u;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),f=u.atob||function(e){return u.Buffer.from(e,"base64").toString("binary")};function d(e){for(var t=f(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.communityTax&&t.uint32(10).string(e.communityTax),""!==e.baseProposerReward&&t.uint32(18).string(e.baseProposerReward),""!==e.bonusProposerReward&&t.uint32(26).string(e.bonusProposerReward),!0===e.withdrawAddrEnabled&&t.uint32(32).bool(e.withdrawAddrEnabled),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.communityTax=n.string();break;case 2:a.baseProposerReward=n.string();break;case 3:a.bonusProposerReward=n.string();break;case 4:a.withdrawAddrEnabled=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.communityTax&&null!==e.communityTax?t.communityTax=String(e.communityTax):t.communityTax="",void 0!==e.baseProposerReward&&null!==e.baseProposerReward?t.baseProposerReward=String(e.baseProposerReward):t.baseProposerReward="",void 0!==e.bonusProposerReward&&null!==e.bonusProposerReward?t.bonusProposerReward=String(e.bonusProposerReward):t.bonusProposerReward="",void 0!==e.withdrawAddrEnabled&&null!==e.withdrawAddrEnabled?t.withdrawAddrEnabled=Boolean(e.withdrawAddrEnabled):t.withdrawAddrEnabled=!1,t},toJSON:function(e){var t={};return void 0!==e.communityTax&&(t.communityTax=e.communityTax),void 0!==e.baseProposerReward&&(t.baseProposerReward=e.baseProposerReward),void 0!==e.bonusProposerReward&&(t.bonusProposerReward=e.bonusProposerReward),void 0!==e.withdrawAddrEnabled&&(t.withdrawAddrEnabled=e.withdrawAddrEnabled),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.communityTax&&null!==e.communityTax?t.communityTax=e.communityTax:t.communityTax="",void 0!==e.baseProposerReward&&null!==e.baseProposerReward?t.baseProposerReward=e.baseProposerReward:t.baseProposerReward="",void 0!==e.bonusProposerReward&&null!==e.bonusProposerReward?t.bonusProposerReward=e.bonusProposerReward:t.bonusProposerReward="",void 0!==e.withdrawAddrEnabled&&null!==e.withdrawAddrEnabled?t.withdrawAddrEnabled=e.withdrawAddrEnabled:t.withdrawAddrEnabled=!1,t}};var u={referenceCount:0};t.ValidatorHistoricalRewards={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.cumulativeRewardRatio);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.DecCoin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return 0!==e.referenceCount&&n.uint32(16).uint32(e.referenceCount),n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.cumulativeRewardRatio=[];n.pos>>3){case 1:a.cumulativeRewardRatio.push(s.DecCoin.decode(n,n.uint32()));break;case 2:a.referenceCount=n.uint32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);if(t.cumulativeRewardRatio=[],void 0!==e.cumulativeRewardRatio&&null!==e.cumulativeRewardRatio){var n,a=r(e.cumulativeRewardRatio);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.cumulativeRewardRatio.push(s.DecCoin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.referenceCount&&null!==e.referenceCount?t.referenceCount=Number(e.referenceCount):t.referenceCount=0,t},toJSON:function(e){var t={};return e.cumulativeRewardRatio?t.cumulativeRewardRatio=e.cumulativeRewardRatio.map((function(e){return e?s.DecCoin.toJSON(e):void 0})):t.cumulativeRewardRatio=[],void 0!==e.referenceCount&&(t.referenceCount=e.referenceCount),t},fromPartial:function(e){var t=Object.assign({},u);if(t.cumulativeRewardRatio=[],void 0!==e.cumulativeRewardRatio&&null!==e.cumulativeRewardRatio){var n,a=r(e.cumulativeRewardRatio);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.cumulativeRewardRatio.push(s.DecCoin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.referenceCount&&null!==e.referenceCount?t.referenceCount=e.referenceCount:t.referenceCount=0,t}};var f={period:i.default.UZERO};t.ValidatorCurrentRewards={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.rewards);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.DecCoin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return e.period.isZero()||n.uint32(16).uint64(e.period),n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.rewards=[];n.pos>>3){case 1:a.rewards.push(s.DecCoin.decode(n,n.uint32()));break;case 2:a.period=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);if(t.rewards=[],void 0!==e.rewards&&null!==e.rewards){var n,a=r(e.rewards);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.rewards.push(s.DecCoin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.period&&null!==e.period?t.period=i.default.fromString(e.period):t.period=i.default.UZERO,t},toJSON:function(e){var t={};return e.rewards?t.rewards=e.rewards.map((function(e){return e?s.DecCoin.toJSON(e):void 0})):t.rewards=[],void 0!==e.period&&(t.period=(e.period||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},f);if(t.rewards=[],void 0!==e.rewards&&null!==e.rewards){var n,a=r(e.rewards);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.rewards.push(s.DecCoin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.period&&null!==e.period?t.period=e.period:t.period=i.default.UZERO,t}};var d={};t.ValidatorAccumulatedCommission={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.commission);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.DecCoin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.commission=[];n.pos>>3==1?a.commission.push(s.DecCoin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},d);if(t.commission=[],void 0!==e.commission&&null!==e.commission){var n,a=r(e.commission);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.commission.push(s.DecCoin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.commission?t.commission=e.commission.map((function(e){return e?s.DecCoin.toJSON(e):void 0})):t.commission=[],t},fromPartial:function(e){var t=Object.assign({},d);if(t.commission=[],void 0!==e.commission&&null!==e.commission){var n,a=r(e.commission);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.commission.push(s.DecCoin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var l={};t.ValidatorOutstandingRewards={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.rewards);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.DecCoin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.rewards=[];n.pos>>3==1?a.rewards.push(s.DecCoin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.rewards=[],void 0!==e.rewards&&null!==e.rewards){var n,a=r(e.rewards);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.rewards.push(s.DecCoin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.rewards?t.rewards=e.rewards.map((function(e){return e?s.DecCoin.toJSON(e):void 0})):t.rewards=[],t},fromPartial:function(e){var t=Object.assign({},l);if(t.rewards=[],void 0!==e.rewards&&null!==e.rewards){var n,a=r(e.rewards);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.rewards.push(s.DecCoin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var p={validatorPeriod:i.default.UZERO,fraction:""};t.ValidatorSlashEvent={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.validatorPeriod.isZero()||t.uint32(8).uint64(e.validatorPeriod),""!==e.fraction&&t.uint32(18).string(e.fraction),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.validatorPeriod=n.uint64();break;case 2:a.fraction=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.validatorPeriod&&null!==e.validatorPeriod?t.validatorPeriod=i.default.fromString(e.validatorPeriod):t.validatorPeriod=i.default.UZERO,void 0!==e.fraction&&null!==e.fraction?t.fraction=String(e.fraction):t.fraction="",t},toJSON:function(e){var t={};return void 0!==e.validatorPeriod&&(t.validatorPeriod=(e.validatorPeriod||i.default.UZERO).toString()),void 0!==e.fraction&&(t.fraction=e.fraction),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.validatorPeriod&&null!==e.validatorPeriod?t.validatorPeriod=e.validatorPeriod:t.validatorPeriod=i.default.UZERO,void 0!==e.fraction&&null!==e.fraction?t.fraction=e.fraction:t.fraction="",t}};var b={};t.ValidatorSlashEvents={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.validatorSlashEvents);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.ValidatorSlashEvent.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);for(i.validatorSlashEvents=[];r.pos>>3==1?i.validatorSlashEvents.push(t.ValidatorSlashEvent.decode(r,r.uint32())):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},b);if(n.validatorSlashEvents=[],void 0!==e.validatorSlashEvents&&null!==e.validatorSlashEvents){var a,i=r(e.validatorSlashEvents);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.validatorSlashEvents.push(t.ValidatorSlashEvent.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.validatorSlashEvents?n.validatorSlashEvents=e.validatorSlashEvents.map((function(e){return e?t.ValidatorSlashEvent.toJSON(e):void 0})):n.validatorSlashEvents=[],n},fromPartial:function(e){var n=Object.assign({},b);if(n.validatorSlashEvents=[],void 0!==e.validatorSlashEvents&&null!==e.validatorSlashEvents){var a,i=r(e.validatorSlashEvents);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.validatorSlashEvents.push(t.ValidatorSlashEvent.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var h={};t.FeePool={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.communityPool);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.DecCoin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.communityPool=[];n.pos>>3==1?a.communityPool.push(s.DecCoin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},h);if(t.communityPool=[],void 0!==e.communityPool&&null!==e.communityPool){var n,a=r(e.communityPool);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.communityPool.push(s.DecCoin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.communityPool?t.communityPool=e.communityPool.map((function(e){return e?s.DecCoin.toJSON(e):void 0})):t.communityPool=[],t},fromPartial:function(e){var t=Object.assign({},h);if(t.communityPool=[],void 0!==e.communityPool&&null!==e.communityPool){var n,a=r(e.communityPool);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.communityPool.push(s.DecCoin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var y={title:"",description:"",recipient:""};t.CommunityPoolSpendProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.recipient&&t.uint32(26).string(e.recipient);var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.Coin.encode(i,t.uint32(34).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.amount=[];n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.recipient=n.string();break;case 4:a.amount.push(s.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);if(t.amount=[],void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.recipient&&null!==e.recipient?t.recipient=String(e.recipient):t.recipient="",void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.amount.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.recipient&&(t.recipient=e.recipient),e.amount?t.amount=e.amount.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t=Object.assign({},y);if(t.amount=[],void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.recipient&&null!==e.recipient?t.recipient=e.recipient:t.recipient="",void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.amount.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var m={previousPeriod:i.default.UZERO,stake:"",height:i.default.UZERO};t.DelegatorStartingInfo={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.previousPeriod.isZero()||t.uint32(8).uint64(e.previousPeriod),""!==e.stake&&t.uint32(18).string(e.stake),e.height.isZero()||t.uint32(24).uint64(e.height),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3){case 1:a.previousPeriod=n.uint64();break;case 2:a.stake=n.string();break;case 3:a.height=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.previousPeriod&&null!==e.previousPeriod?t.previousPeriod=i.default.fromString(e.previousPeriod):t.previousPeriod=i.default.UZERO,void 0!==e.stake&&null!==e.stake?t.stake=String(e.stake):t.stake="",void 0!==e.height&&null!==e.height?t.height=i.default.fromString(e.height):t.height=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.previousPeriod&&(t.previousPeriod=(e.previousPeriod||i.default.UZERO).toString()),void 0!==e.stake&&(t.stake=e.stake),void 0!==e.height&&(t.height=(e.height||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.previousPeriod&&null!==e.previousPeriod?t.previousPeriod=e.previousPeriod:t.previousPeriod=i.default.UZERO,void 0!==e.stake&&null!==e.stake?t.stake=e.stake:t.stake="",void 0!==e.height&&null!==e.height?t.height=e.height:t.height=i.default.UZERO,t}};var v={validatorAddress:""};t.DelegationDelegatorReward={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.validatorAddress&&t.uint32(10).string(e.validatorAddress);var n,a=r(e.reward);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.DecCoin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.reward=[];n.pos>>3){case 1:a.validatorAddress=n.string();break;case 2:a.reward.push(s.DecCoin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);if(t.reward=[],void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",void 0!==e.reward&&null!==e.reward){var n,a=r(e.reward);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.reward.push(s.DecCoin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),e.reward?t.reward=e.reward.map((function(e){return e?s.DecCoin.toJSON(e):void 0})):t.reward=[],t},fromPartial:function(e){var t=Object.assign({},v);if(t.reward=[],void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",void 0!==e.reward&&null!==e.reward){var n,a=r(e.reward);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.reward.push(s.DecCoin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var g={title:"",description:"",recipient:"",amount:"",deposit:""};t.CommunityPoolSpendProposalWithDeposit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.recipient&&t.uint32(26).string(e.recipient),""!==e.amount&&t.uint32(34).string(e.amount),""!==e.deposit&&t.uint32(42).string(e.deposit),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.recipient=n.string();break;case 4:a.amount=n.string();break;case 5:a.deposit=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},g);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.recipient&&null!==e.recipient?t.recipient=String(e.recipient):t.recipient="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",void 0!==e.deposit&&null!==e.deposit?t.deposit=String(e.deposit):t.deposit="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.recipient&&(t.recipient=e.recipient),void 0!==e.amount&&(t.amount=e.amount),void 0!==e.deposit&&(t.deposit=e.deposit),t},fromPartial:function(e){var t=Object.assign({},g);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.recipient&&null!==e.recipient?t.recipient=e.recipient:t.recipient="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",void 0!==e.deposit&&null!==e.deposit?t.deposit=e.deposit:t.deposit="",t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},76536:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(21146).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgFundCommunityPoolDesc=t.MsgWithdrawValidatorCommissionDesc=t.MsgWithdrawDelegatorRewardDesc=t.MsgSetWithdrawAddressDesc=t.MsgDesc=t.MsgClientImpl=t.MsgFundCommunityPoolResponse=t.MsgFundCommunityPool=t.MsgWithdrawValidatorCommissionResponse=t.MsgWithdrawValidatorCommission=t.MsgWithdrawDelegatorRewardResponse=t.MsgWithdrawDelegatorReward=t.MsgSetWithdrawAddressResponse=t.MsgSetWithdrawAddress=t.protobufPackage=void 0;var s=o(n(12620)),c=n(94680),u=o(n(50904)),f=n(84587),d=n(790);t.protobufPackage="cosmos.distribution.v1beta1";var l={delegatorAddress:"",withdrawAddress:""};t.MsgSetWithdrawAddress={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.withdrawAddress&&t.uint32(18).string(e.withdrawAddress),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.withdrawAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.withdrawAddress&&null!==e.withdrawAddress?t.withdrawAddress=String(e.withdrawAddress):t.withdrawAddress="",t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.withdrawAddress&&(t.withdrawAddress=e.withdrawAddress),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.withdrawAddress&&null!==e.withdrawAddress?t.withdrawAddress=e.withdrawAddress:t.withdrawAddress="",t}};var p={};t.MsgSetWithdrawAddressResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",t}};var h={};t.MsgWithdrawDelegatorRewardResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.validatorAddress&&t.uint32(10).string(e.validatorAddress),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos>>3==1?a.validatorAddress=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},y);return void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",t},toJSON:function(e){var t={};return void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",t}};var m={};t.MsgWithdrawValidatorCommissionResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create(),r=i(e.amount);try{for(r.s();!(t=r.n()).done;){var a=t.value;d.Coin.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return""!==e.depositor&&n.uint32(18).string(e.depositor),n},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.amount=[];n.pos>>3){case 1:a.amount.push(d.Coin.decode(n,n.uint32()));break;case 2:a.depositor=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(d.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.depositor&&null!==e.depositor?t.depositor=String(e.depositor):t.depositor="",t},toJSON:function(e){var t={};return e.amount?t.amount=e.amount.map((function(e){return e?d.Coin.toJSON(e):void 0})):t.amount=[],void 0!==e.depositor&&(t.depositor=e.depositor),t},fromPartial:function(e){var t=Object.assign({},v);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(d.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.depositor&&null!==e.depositor?t.depositor=e.depositor:t.depositor="",t}};var g={};t.MsgFundCommunityPoolResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.spendLimit);try{for(a.s();!(t=a.n()).done;){var i=t.value;f.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return void 0!==e.expiration&&u.Timestamp.encode(h(e.expiration),n.uint32(18).fork()).ldelim(),n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.spendLimit=[];n.pos>>3){case 1:a.spendLimit.push(f.Coin.decode(n,n.uint32()));break;case 2:a.expiration=y(u.Timestamp.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);if(t.spendLimit=[],void 0!==e.spendLimit&&null!==e.spendLimit){var n,a=r(e.spendLimit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.spendLimit.push(f.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.expiration&&null!==e.expiration?t.expiration=m(e.expiration):t.expiration=void 0,t},toJSON:function(e){var t={};return e.spendLimit?t.spendLimit=e.spendLimit.map((function(e){return e?f.Coin.toJSON(e):void 0})):t.spendLimit=[],void 0!==e.expiration&&(t.expiration=e.expiration.toISOString()),t},fromPartial:function(e){var t=Object.assign({},d);if(t.spendLimit=[],void 0!==e.spendLimit&&null!==e.spendLimit){var n,a=r(e.spendLimit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.spendLimit.push(f.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.expiration&&null!==e.expiration?t.expiration=e.expiration:t.expiration=void 0,t}};var l={};t.PeriodicAllowance={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.basic&&t.BasicAllowance.encode(e.basic,n.uint32(10).fork()).ldelim(),void 0!==e.period&&s.Duration.encode(e.period,n.uint32(18).fork()).ldelim();var a,i=r(e.periodSpendLimit);try{for(i.s();!(a=i.n()).done;){var c=a.value;f.Coin.encode(c,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}var d,l=r(e.periodCanSpend);try{for(l.s();!(d=l.n()).done;){var p=d.value;f.Coin.encode(p,n.uint32(34).fork()).ldelim()}}catch(e){l.e(e)}finally{l.f()}return void 0!==e.periodReset&&u.Timestamp.encode(h(e.periodReset),n.uint32(42).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},l);for(i.periodSpendLimit=[],i.periodCanSpend=[];r.pos>>3){case 1:i.basic=t.BasicAllowance.decode(r,r.uint32());break;case 2:i.period=s.Duration.decode(r,r.uint32());break;case 3:i.periodSpendLimit.push(f.Coin.decode(r,r.uint32()));break;case 4:i.periodCanSpend.push(f.Coin.decode(r,r.uint32()));break;case 5:i.periodReset=y(u.Timestamp.decode(r,r.uint32()));break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},l);if(n.periodSpendLimit=[],n.periodCanSpend=[],void 0!==e.basic&&null!==e.basic?n.basic=t.BasicAllowance.fromJSON(e.basic):n.basic=void 0,void 0!==e.period&&null!==e.period?n.period=s.Duration.fromJSON(e.period):n.period=void 0,void 0!==e.periodSpendLimit&&null!==e.periodSpendLimit){var a,i=r(e.periodSpendLimit);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.periodSpendLimit.push(f.Coin.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}if(void 0!==e.periodCanSpend&&null!==e.periodCanSpend){var c,u=r(e.periodCanSpend);try{for(u.s();!(c=u.n()).done;){var d=c.value;n.periodCanSpend.push(f.Coin.fromJSON(d))}}catch(e){u.e(e)}finally{u.f()}}return void 0!==e.periodReset&&null!==e.periodReset?n.periodReset=m(e.periodReset):n.periodReset=void 0,n},toJSON:function(e){var n={};return void 0!==e.basic&&(n.basic=e.basic?t.BasicAllowance.toJSON(e.basic):void 0),void 0!==e.period&&(n.period=e.period?s.Duration.toJSON(e.period):void 0),e.periodSpendLimit?n.periodSpendLimit=e.periodSpendLimit.map((function(e){return e?f.Coin.toJSON(e):void 0})):n.periodSpendLimit=[],e.periodCanSpend?n.periodCanSpend=e.periodCanSpend.map((function(e){return e?f.Coin.toJSON(e):void 0})):n.periodCanSpend=[],void 0!==e.periodReset&&(n.periodReset=e.periodReset.toISOString()),n},fromPartial:function(e){var n=Object.assign({},l);if(n.periodSpendLimit=[],n.periodCanSpend=[],void 0!==e.basic&&null!==e.basic?n.basic=t.BasicAllowance.fromPartial(e.basic):n.basic=void 0,void 0!==e.period&&null!==e.period?n.period=s.Duration.fromPartial(e.period):n.period=void 0,void 0!==e.periodSpendLimit&&null!==e.periodSpendLimit){var a,i=r(e.periodSpendLimit);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.periodSpendLimit.push(f.Coin.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}if(void 0!==e.periodCanSpend&&null!==e.periodCanSpend){var c,u=r(e.periodCanSpend);try{for(u.s();!(c=u.n()).done;){var d=c.value;n.periodCanSpend.push(f.Coin.fromPartial(d))}}catch(e){u.e(e)}finally{u.f()}}return void 0!==e.periodReset&&null!==e.periodReset?n.periodReset=e.periodReset:n.periodReset=void 0,n}};var p={allowedMessages:""};t.AllowedMsgAllowance={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.allowance&&c.Any.encode(e.allowance,t.uint32(10).fork()).ldelim();var n,a=r(e.allowedMessages);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(18).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.allowedMessages=[];n.pos>>3){case 1:a.allowance=c.Any.decode(n,n.uint32());break;case 2:a.allowedMessages.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);if(t.allowedMessages=[],void 0!==e.allowance&&null!==e.allowance?t.allowance=c.Any.fromJSON(e.allowance):t.allowance=void 0,void 0!==e.allowedMessages&&null!==e.allowedMessages){var n,a=r(e.allowedMessages);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.allowedMessages.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.allowance&&(t.allowance=e.allowance?c.Any.toJSON(e.allowance):void 0),e.allowedMessages?t.allowedMessages=e.allowedMessages.map((function(e){return e})):t.allowedMessages=[],t},fromPartial:function(e){var t=Object.assign({},p);if(t.allowedMessages=[],void 0!==e.allowance&&null!==e.allowance?t.allowance=c.Any.fromPartial(e.allowance):t.allowance=void 0,void 0!==e.allowedMessages&&null!==e.allowedMessages){var n,a=r(e.allowedMessages);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.allowedMessages.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var b={granter:"",grantee:""};function h(e){var t;return{seconds:(t=e.getTime()/1e3,i.default.fromNumber(t)),nanos:e.getTime()%1e3*1e6}}function y(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}function m(e){return e instanceof Date?e:"string"==typeof e?new Date(e):y(u.Timestamp.fromJSON(e))}t.Grant={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),void 0!==e.allowance&&c.Any.encode(e.allowance,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.granter=n.string();break;case 2:a.grantee=n.string();break;case 3:a.allowance=c.Any.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=String(e.grantee):t.grantee="",void 0!==e.allowance&&null!==e.allowance?t.allowance=c.Any.fromJSON(e.allowance):t.allowance=void 0,t},toJSON:function(e){var t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.allowance&&(t.allowance=e.allowance?c.Any.toJSON(e.allowance):void 0),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=e.grantee:t.grantee="",void 0!==e.allowance&&null!==e.allowance?t.allowance=c.Any.fromPartial(e.allowance):t.allowance=void 0,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},94740:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgRevokeAllowanceDesc=t.MsgGrantAllowanceDesc=t.MsgDesc=t.MsgClientImpl=t.MsgRevokeAllowanceResponse=t.MsgRevokeAllowance=t.MsgGrantAllowanceResponse=t.MsgGrantAllowance=t.protobufPackage=void 0;var o=i(n(12620)),s=n(94680),c=i(n(50904)),u=n(81019),f=n(84587);t.protobufPackage="cosmos.feegrant.v1beta1";var d={granter:"",grantee:""};t.MsgGrantAllowance={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),void 0!==e.allowance&&u.Any.encode(e.allowance,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.granter=n.string();break;case 2:a.grantee=n.string();break;case 3:a.allowance=u.Any.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=String(e.grantee):t.grantee="",void 0!==e.allowance&&null!==e.allowance?t.allowance=u.Any.fromJSON(e.allowance):t.allowance=void 0,t},toJSON:function(e){var t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.allowance&&(t.allowance=e.allowance?u.Any.toJSON(e.allowance):void 0),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=e.grantee:t.grantee="",void 0!==e.allowance&&null!==e.allowance?t.allowance=u.Any.fromPartial(e.allowance):t.allowance=void 0,t}};var l={};t.MsgGrantAllowanceResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.granter=n.string();break;case 2:a.grantee=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=String(e.grantee):t.grantee="",t},toJSON:function(e){var t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=e.grantee:t.grantee="",t}};var b={};t.MsgRevokeAllowanceResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.option&&t.uint32(8).int32(e.option),""!==e.weight&&t.uint32(18).string(e.weight),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3){case 1:a.option=n.int32();break;case 2:a.weight=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.option&&null!==e.option?t.option=p(e.option):t.option=0,void 0!==e.weight&&null!==e.weight?t.weight=String(e.weight):t.weight="",t},toJSON:function(e){var t={};return void 0!==e.option&&(t.option=b(e.option)),void 0!==e.weight&&(t.weight=e.weight),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.option&&null!==e.option?t.option=e.option:t.option=0,void 0!==e.weight&&null!==e.weight?t.weight=e.weight:t.weight="",t}};var v={title:"",description:""};t.TextProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",t}};var g={proposalId:s.default.UZERO,depositor:""};t.Deposit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.proposalId.isZero()||t.uint32(8).uint64(e.proposalId),""!==e.depositor&&t.uint32(18).string(e.depositor);var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;l.Coin.encode(i,t.uint32(26).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);for(a.amount=[];n.pos>>3){case 1:a.proposalId=n.uint64();break;case 2:a.depositor=n.string();break;case 3:a.amount.push(l.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},g);if(t.amount=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=s.default.fromString(e.proposalId):t.proposalId=s.default.UZERO,void 0!==e.depositor&&null!==e.depositor?t.depositor=String(e.depositor):t.depositor="",void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.amount.push(l.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.depositor&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map((function(e){return e?l.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t=Object.assign({},g);if(t.amount=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=e.proposalId:t.proposalId=s.default.UZERO,void 0!==e.depositor&&null!==e.depositor?t.depositor=e.depositor:t.depositor="",void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.amount.push(l.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var A={proposalId:s.default.UZERO,status:0};t.Proposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.proposalId.isZero()||n.uint32(8).uint64(e.proposalId),void 0!==e.content&&u.Any.encode(e.content,n.uint32(18).fork()).ldelim(),0!==e.status&&n.uint32(24).int32(e.status),void 0!==e.finalTallyResult&&t.TallyResult.encode(e.finalTallyResult,n.uint32(34).fork()).ldelim(),void 0!==e.submitTime&&d.Timestamp.encode(P(e.submitTime),n.uint32(42).fork()).ldelim(),void 0!==e.depositEndTime&&d.Timestamp.encode(P(e.depositEndTime),n.uint32(50).fork()).ldelim();var a,i=r(e.totalDeposit);try{for(i.s();!(a=i.n()).done;){var o=a.value;l.Coin.encode(o,n.uint32(58).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return void 0!==e.votingStartTime&&d.Timestamp.encode(P(e.votingStartTime),n.uint32(66).fork()).ldelim(),void 0!==e.votingEndTime&&d.Timestamp.encode(P(e.votingEndTime),n.uint32(74).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},A);for(i.totalDeposit=[];r.pos>>3){case 1:i.proposalId=r.uint64();break;case 2:i.content=u.Any.decode(r,r.uint32());break;case 3:i.status=r.int32();break;case 4:i.finalTallyResult=t.TallyResult.decode(r,r.uint32());break;case 5:i.submitTime=M(d.Timestamp.decode(r,r.uint32()));break;case 6:i.depositEndTime=M(d.Timestamp.decode(r,r.uint32()));break;case 7:i.totalDeposit.push(l.Coin.decode(r,r.uint32()));break;case 8:i.votingStartTime=M(d.Timestamp.decode(r,r.uint32()));break;case 9:i.votingEndTime=M(d.Timestamp.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},A);if(n.totalDeposit=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=s.default.fromString(e.proposalId):n.proposalId=s.default.UZERO,void 0!==e.content&&null!==e.content?n.content=u.Any.fromJSON(e.content):n.content=void 0,void 0!==e.status&&null!==e.status?n.status=h(e.status):n.status=0,void 0!==e.finalTallyResult&&null!==e.finalTallyResult?n.finalTallyResult=t.TallyResult.fromJSON(e.finalTallyResult):n.finalTallyResult=void 0,void 0!==e.submitTime&&null!==e.submitTime?n.submitTime=B(e.submitTime):n.submitTime=void 0,void 0!==e.depositEndTime&&null!==e.depositEndTime?n.depositEndTime=B(e.depositEndTime):n.depositEndTime=void 0,void 0!==e.totalDeposit&&null!==e.totalDeposit){var a,i=r(e.totalDeposit);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.totalDeposit.push(l.Coin.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.votingStartTime&&null!==e.votingStartTime?n.votingStartTime=B(e.votingStartTime):n.votingStartTime=void 0,void 0!==e.votingEndTime&&null!==e.votingEndTime?n.votingEndTime=B(e.votingEndTime):n.votingEndTime=void 0,n},toJSON:function(e){var n={};return void 0!==e.proposalId&&(n.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.content&&(n.content=e.content?u.Any.toJSON(e.content):void 0),void 0!==e.status&&(n.status=y(e.status)),void 0!==e.finalTallyResult&&(n.finalTallyResult=e.finalTallyResult?t.TallyResult.toJSON(e.finalTallyResult):void 0),void 0!==e.submitTime&&(n.submitTime=e.submitTime.toISOString()),void 0!==e.depositEndTime&&(n.depositEndTime=e.depositEndTime.toISOString()),e.totalDeposit?n.totalDeposit=e.totalDeposit.map((function(e){return e?l.Coin.toJSON(e):void 0})):n.totalDeposit=[],void 0!==e.votingStartTime&&(n.votingStartTime=e.votingStartTime.toISOString()),void 0!==e.votingEndTime&&(n.votingEndTime=e.votingEndTime.toISOString()),n},fromPartial:function(e){var n=Object.assign({},A);if(n.totalDeposit=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=e.proposalId:n.proposalId=s.default.UZERO,void 0!==e.content&&null!==e.content?n.content=u.Any.fromPartial(e.content):n.content=void 0,void 0!==e.status&&null!==e.status?n.status=e.status:n.status=0,void 0!==e.finalTallyResult&&null!==e.finalTallyResult?n.finalTallyResult=t.TallyResult.fromPartial(e.finalTallyResult):n.finalTallyResult=void 0,void 0!==e.submitTime&&null!==e.submitTime?n.submitTime=e.submitTime:n.submitTime=void 0,void 0!==e.depositEndTime&&null!==e.depositEndTime?n.depositEndTime=e.depositEndTime:n.depositEndTime=void 0,void 0!==e.totalDeposit&&null!==e.totalDeposit){var a,i=r(e.totalDeposit);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.totalDeposit.push(l.Coin.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.votingStartTime&&null!==e.votingStartTime?n.votingStartTime=e.votingStartTime:n.votingStartTime=void 0,void 0!==e.votingEndTime&&null!==e.votingEndTime?n.votingEndTime=e.votingEndTime:n.votingEndTime=void 0,n}};var w={yes:"",abstain:"",no:"",noWithVeto:""};t.TallyResult={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.yes&&t.uint32(10).string(e.yes),""!==e.abstain&&t.uint32(18).string(e.abstain),""!==e.no&&t.uint32(26).string(e.no),""!==e.noWithVeto&&t.uint32(34).string(e.noWithVeto),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos>>3){case 1:a.yes=n.string();break;case 2:a.abstain=n.string();break;case 3:a.no=n.string();break;case 4:a.noWithVeto=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},w);return void 0!==e.yes&&null!==e.yes?t.yes=String(e.yes):t.yes="",void 0!==e.abstain&&null!==e.abstain?t.abstain=String(e.abstain):t.abstain="",void 0!==e.no&&null!==e.no?t.no=String(e.no):t.no="",void 0!==e.noWithVeto&&null!==e.noWithVeto?t.noWithVeto=String(e.noWithVeto):t.noWithVeto="",t},toJSON:function(e){var t={};return void 0!==e.yes&&(t.yes=e.yes),void 0!==e.abstain&&(t.abstain=e.abstain),void 0!==e.no&&(t.no=e.no),void 0!==e.noWithVeto&&(t.noWithVeto=e.noWithVeto),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.yes&&null!==e.yes?t.yes=e.yes:t.yes="",void 0!==e.abstain&&null!==e.abstain?t.abstain=e.abstain:t.abstain="",void 0!==e.no&&null!==e.no?t.no=e.no:t.no="",void 0!==e.noWithVeto&&null!==e.noWithVeto?t.noWithVeto=e.noWithVeto:t.noWithVeto="",t}};var x={proposalId:s.default.UZERO,voter:"",option:0};t.Vote={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.proposalId.isZero()||n.uint32(8).uint64(e.proposalId),""!==e.voter&&n.uint32(18).string(e.voter),0!==e.option&&n.uint32(24).int32(e.option);var a,i=r(e.options);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.WeightedVoteOption.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},x);for(i.options=[];r.pos>>3){case 1:i.proposalId=r.uint64();break;case 2:i.voter=r.string();break;case 3:i.option=r.int32();break;case 4:i.options.push(t.WeightedVoteOption.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},x);if(n.options=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=s.default.fromString(e.proposalId):n.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?n.voter=String(e.voter):n.voter="",void 0!==e.option&&null!==e.option?n.option=p(e.option):n.option=0,void 0!==e.options&&null!==e.options){var a,i=r(e.options);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.options.push(t.WeightedVoteOption.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.proposalId&&(n.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.voter&&(n.voter=e.voter),void 0!==e.option&&(n.option=b(e.option)),e.options?n.options=e.options.map((function(e){return e?t.WeightedVoteOption.toJSON(e):void 0})):n.options=[],n},fromPartial:function(e){var n=Object.assign({},x);if(n.options=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=e.proposalId:n.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?n.voter=e.voter:n.voter="",void 0!==e.option&&null!==e.option?n.option=e.option:n.option=0,void 0!==e.options&&null!==e.options){var a,i=r(e.options);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.options.push(t.WeightedVoteOption.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var _={};t.DepositParams={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create(),a=r(e.minDeposit);try{for(a.s();!(t=a.n()).done;){var i=t.value;l.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return void 0!==e.maxDepositPeriod&&f.Duration.encode(e.maxDepositPeriod,n.uint32(18).fork()).ldelim(),n},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);for(a.minDeposit=[];n.pos>>3){case 1:a.minDeposit.push(l.Coin.decode(n,n.uint32()));break;case 2:a.maxDepositPeriod=f.Duration.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},_);if(t.minDeposit=[],void 0!==e.minDeposit&&null!==e.minDeposit){var n,a=r(e.minDeposit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.minDeposit.push(l.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.maxDepositPeriod&&null!==e.maxDepositPeriod?t.maxDepositPeriod=f.Duration.fromJSON(e.maxDepositPeriod):t.maxDepositPeriod=void 0,t},toJSON:function(e){var t={};return e.minDeposit?t.minDeposit=e.minDeposit.map((function(e){return e?l.Coin.toJSON(e):void 0})):t.minDeposit=[],void 0!==e.maxDepositPeriod&&(t.maxDepositPeriod=e.maxDepositPeriod?f.Duration.toJSON(e.maxDepositPeriod):void 0),t},fromPartial:function(e){var t=Object.assign({},_);if(t.minDeposit=[],void 0!==e.minDeposit&&null!==e.minDeposit){var n,a=r(e.minDeposit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.minDeposit.push(l.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.maxDepositPeriod&&null!==e.maxDepositPeriod?t.maxDepositPeriod=f.Duration.fromPartial(e.maxDepositPeriod):t.maxDepositPeriod=void 0,t}};var k={};t.VotingParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.votingPeriod&&f.Duration.encode(e.votingPeriod,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);n.pos>>3==1?a.votingPeriod=f.Duration.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},k);return void 0!==e.votingPeriod&&null!==e.votingPeriod?t.votingPeriod=f.Duration.fromJSON(e.votingPeriod):t.votingPeriod=void 0,t},toJSON:function(e){var t={};return void 0!==e.votingPeriod&&(t.votingPeriod=e.votingPeriod?f.Duration.toJSON(e.votingPeriod):void 0),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.votingPeriod&&null!==e.votingPeriod?t.votingPeriod=f.Duration.fromPartial(e.votingPeriod):t.votingPeriod=void 0,t}};var S={};t.TallyParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.quorum.length&&t.uint32(10).bytes(e.quorum),0!==e.threshold.length&&t.uint32(18).bytes(e.threshold),0!==e.vetoThreshold.length&&t.uint32(26).bytes(e.vetoThreshold),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},S);for(a.quorum=new Uint8Array,a.threshold=new Uint8Array,a.vetoThreshold=new Uint8Array;n.pos>>3){case 1:a.quorum=n.bytes();break;case 2:a.threshold=n.bytes();break;case 3:a.vetoThreshold=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},S);return t.quorum=new Uint8Array,t.threshold=new Uint8Array,t.vetoThreshold=new Uint8Array,void 0!==e.quorum&&null!==e.quorum&&(t.quorum=C(e.quorum)),void 0!==e.threshold&&null!==e.threshold&&(t.threshold=C(e.threshold)),void 0!==e.vetoThreshold&&null!==e.vetoThreshold&&(t.vetoThreshold=C(e.vetoThreshold)),t},toJSON:function(e){var t={};return void 0!==e.quorum&&(t.quorum=O(void 0!==e.quorum?e.quorum:new Uint8Array)),void 0!==e.threshold&&(t.threshold=O(void 0!==e.threshold?e.threshold:new Uint8Array)),void 0!==e.vetoThreshold&&(t.vetoThreshold=O(void 0!==e.vetoThreshold?e.vetoThreshold:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},S);return void 0!==e.quorum&&null!==e.quorum?t.quorum=e.quorum:t.quorum=new Uint8Array,void 0!==e.threshold&&null!==e.threshold?t.threshold=e.threshold:t.threshold=new Uint8Array,void 0!==e.vetoThreshold&&null!==e.vetoThreshold?t.vetoThreshold=e.vetoThreshold:t.vetoThreshold=new Uint8Array,t}};var I=function(){if(void 0!==I)return I;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),E=I.atob||function(e){return I.Buffer.from(e,"base64").toString("binary")};function C(e){for(var t=E(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();void 0!==e.content&&f.Any.encode(e.content,t.uint32(10).fork()).ldelim();var n,r=i(e.initialDeposit);try{for(r.s();!(n=r.n()).done;){var a=n.value;p.Coin.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return""!==e.proposer&&t.uint32(26).string(e.proposer),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.initialDeposit=[];n.pos>>3){case 1:a.content=f.Any.decode(n,n.uint32());break;case 2:a.initialDeposit.push(p.Coin.decode(n,n.uint32()));break;case 3:a.proposer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);if(t.initialDeposit=[],void 0!==e.content&&null!==e.content?t.content=f.Any.fromJSON(e.content):t.content=void 0,void 0!==e.initialDeposit&&null!==e.initialDeposit){var n,r=i(e.initialDeposit);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.initialDeposit.push(p.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.proposer&&null!==e.proposer?t.proposer=String(e.proposer):t.proposer="",t},toJSON:function(e){var t={};return void 0!==e.content&&(t.content=e.content?f.Any.toJSON(e.content):void 0),e.initialDeposit?t.initialDeposit=e.initialDeposit.map((function(e){return e?p.Coin.toJSON(e):void 0})):t.initialDeposit=[],void 0!==e.proposer&&(t.proposer=e.proposer),t},fromPartial:function(e){var t=Object.assign({},b);if(t.initialDeposit=[],void 0!==e.content&&null!==e.content?t.content=f.Any.fromPartial(e.content):t.content=void 0,void 0!==e.initialDeposit&&null!==e.initialDeposit){var n,r=i(e.initialDeposit);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.initialDeposit.push(p.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.proposer&&null!==e.proposer?t.proposer=e.proposer:t.proposer="",t}};var h={proposalId:s.default.UZERO};t.MsgSubmitProposalResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return e.proposalId.isZero()||t.uint32(8).uint64(e.proposalId),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos>>3==1?a.proposalId=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},h);return void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=s.default.fromString(e.proposalId):t.proposalId=s.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||s.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},h);return void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=e.proposalId:t.proposalId=s.default.UZERO,t}};var y={proposalId:s.default.UZERO,voter:"",option:0};t.MsgVote={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return e.proposalId.isZero()||t.uint32(8).uint64(e.proposalId),""!==e.voter&&t.uint32(18).string(e.voter),0!==e.option&&t.uint32(24).int32(e.option),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos>>3){case 1:a.proposalId=n.uint64();break;case 2:a.voter=n.string();break;case 3:a.option=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=s.default.fromString(e.proposalId):t.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?t.voter=String(e.voter):t.voter="",void 0!==e.option&&null!==e.option?t.option=d.voteOptionFromJSON(e.option):t.option=0,t},toJSON:function(e){var t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.voter&&(t.voter=e.voter),void 0!==e.option&&(t.option=d.voteOptionToJSON(e.option)),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=e.proposalId:t.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?t.voter=e.voter:t.voter="",void 0!==e.option&&null!==e.option?t.option=e.option:t.option=0,t}};var m={};t.MsgVoteResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();e.proposalId.isZero()||t.uint32(8).uint64(e.proposalId),""!==e.voter&&t.uint32(18).string(e.voter);var n,r=i(e.options);try{for(r.s();!(n=r.n()).done;){var a=n.value;d.WeightedVoteOption.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.options=[];n.pos>>3){case 1:a.proposalId=n.uint64();break;case 2:a.voter=n.string();break;case 3:a.options.push(d.WeightedVoteOption.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);if(t.options=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=s.default.fromString(e.proposalId):t.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?t.voter=String(e.voter):t.voter="",void 0!==e.options&&null!==e.options){var n,r=i(e.options);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.options.push(d.WeightedVoteOption.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.voter&&(t.voter=e.voter),e.options?t.options=e.options.map((function(e){return e?d.WeightedVoteOption.toJSON(e):void 0})):t.options=[],t},fromPartial:function(e){var t=Object.assign({},v);if(t.options=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=e.proposalId:t.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?t.voter=e.voter:t.voter="",void 0!==e.options&&null!==e.options){var n,r=i(e.options);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.options.push(d.WeightedVoteOption.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var g={};t.MsgVoteWeightedResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();e.proposalId.isZero()||t.uint32(8).uint64(e.proposalId),""!==e.depositor&&t.uint32(18).string(e.depositor);var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;p.Coin.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.amount=[];n.pos>>3){case 1:a.proposalId=n.uint64();break;case 2:a.depositor=n.string();break;case 3:a.amount.push(p.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);if(t.amount=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=s.default.fromString(e.proposalId):t.proposalId=s.default.UZERO,void 0!==e.depositor&&null!==e.depositor?t.depositor=String(e.depositor):t.depositor="",void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(p.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.depositor&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map((function(e){return e?p.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t=Object.assign({},A);if(t.amount=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=e.proposalId:t.proposalId=s.default.UZERO,void 0!==e.depositor&&null!==e.depositor?t.depositor=e.depositor:t.depositor="",void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(p.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var w={};t.MsgDepositResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&n.uint32(10).string(e.title),""!==e.description&&n.uint32(18).string(e.description);var a,i=r(e.changes);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.ParamChange.encode(s,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},s);for(i.changes=[];r.pos>>3){case 1:i.title=r.string();break;case 2:i.description=r.string();break;case 3:i.changes.push(t.ParamChange.decode(r,r.uint32()));break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},s);if(n.changes=[],void 0!==e.title&&null!==e.title?n.title=String(e.title):n.title="",void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.changes&&null!==e.changes){var a,i=r(e.changes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.changes.push(t.ParamChange.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.description&&(n.description=e.description),e.changes?n.changes=e.changes.map((function(e){return e?t.ParamChange.toJSON(e):void 0})):n.changes=[],n},fromPartial:function(e){var n=Object.assign({},s);if(n.changes=[],void 0!==e.title&&null!==e.title?n.title=e.title:n.title="",void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.changes&&null!==e.changes){var a,i=r(e.changes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.changes.push(t.ParamChange.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var c={subspace:"",key:"",value:""};t.ParamChange={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.subspace&&t.uint32(10).string(e.subspace),""!==e.key&&t.uint32(18).string(e.key),""!==e.value&&t.uint32(26).string(e.value),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.subspace=n.string();break;case 2:a.key=n.string();break;case 3:a.value=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.subspace&&null!==e.subspace?t.subspace=String(e.subspace):t.subspace="",void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON:function(e){var t={};return void 0!==e.subspace&&(t.subspace=e.subspace),void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.subspace&&null!==e.subspace?t.subspace=e.subspace:t.subspace="",void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},42144:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgUnjailDesc=t.MsgDesc=t.MsgClientImpl=t.MsgUnjailResponse=t.MsgUnjail=t.protobufPackage=void 0;var o=i(n(12620)),s=n(94680),c=i(n(50904)),u=n(84587);t.protobufPackage="cosmos.slashing.v1beta1";var f={validatorAddr:""};t.MsgUnjail={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.validatorAddr&&t.uint32(10).string(e.validatorAddr),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3==1?a.validatorAddr=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.validatorAddr&&null!==e.validatorAddr?t.validatorAddr=String(e.validatorAddr):t.validatorAddr="",t},toJSON:function(e){var t={};return void 0!==e.validatorAddr&&(t.validatorAddr=e.validatorAddr),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.validatorAddr&&null!==e.validatorAddr?t.validatorAddr=e.validatorAddr:t.validatorAddr="",t}};var d={};t.MsgUnjailResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.maxTokens&&c.Coin.encode(e.maxTokens,n.uint32(10).fork()).ldelim(),void 0!==e.allowList&&t.StakeAuthorization_Validators.encode(e.allowList,n.uint32(18).fork()).ldelim(),void 0!==e.denyList&&t.StakeAuthorization_Validators.encode(e.denyList,n.uint32(26).fork()).ldelim(),0!==e.authorizationType&&n.uint32(32).int32(e.authorizationType),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);r.pos>>3){case 1:i.maxTokens=c.Coin.decode(r,r.uint32());break;case 2:i.allowList=t.StakeAuthorization_Validators.decode(r,r.uint32());break;case 3:i.denyList=t.StakeAuthorization_Validators.decode(r,r.uint32());break;case 4:i.authorizationType=r.int32();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},d);return void 0!==e.maxTokens&&null!==e.maxTokens?n.maxTokens=c.Coin.fromJSON(e.maxTokens):n.maxTokens=void 0,void 0!==e.allowList&&null!==e.allowList?n.allowList=t.StakeAuthorization_Validators.fromJSON(e.allowList):n.allowList=void 0,void 0!==e.denyList&&null!==e.denyList?n.denyList=t.StakeAuthorization_Validators.fromJSON(e.denyList):n.denyList=void 0,void 0!==e.authorizationType&&null!==e.authorizationType?n.authorizationType=u(e.authorizationType):n.authorizationType=0,n},toJSON:function(e){var n={};return void 0!==e.maxTokens&&(n.maxTokens=e.maxTokens?c.Coin.toJSON(e.maxTokens):void 0),void 0!==e.allowList&&(n.allowList=e.allowList?t.StakeAuthorization_Validators.toJSON(e.allowList):void 0),void 0!==e.denyList&&(n.denyList=e.denyList?t.StakeAuthorization_Validators.toJSON(e.denyList):void 0),void 0!==e.authorizationType&&(n.authorizationType=f(e.authorizationType)),n},fromPartial:function(e){var n=Object.assign({},d);return void 0!==e.maxTokens&&null!==e.maxTokens?n.maxTokens=c.Coin.fromPartial(e.maxTokens):n.maxTokens=void 0,void 0!==e.allowList&&null!==e.allowList?n.allowList=t.StakeAuthorization_Validators.fromPartial(e.allowList):n.allowList=void 0,void 0!==e.denyList&&null!==e.denyList?n.denyList=t.StakeAuthorization_Validators.fromPartial(e.denyList):n.denyList=void 0,void 0!==e.authorizationType&&null!==e.authorizationType?n.authorizationType=e.authorizationType:n.authorizationType=0,n}};var l={address:""};t.StakeAuthorization_Validators={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create(),a=r(e.address);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.address=[];n.pos>>3==1?a.address.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.address=[],void 0!==e.address&&null!==e.address){var n,a=r(e.address);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.address.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.address?t.address=e.address.map((function(e){return e})):t.address=[],t},fromPartial:function(e){var t=Object.assign({},l);if(t.address=[],void 0!==e.address&&null!==e.address){var n,a=r(e.address);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.address.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}},s.default.util.Long!==o.default&&(s.default.util.Long=o.default,s.default.configure())},18672:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Pool=t.RedelegationResponse=t.RedelegationEntryResponse=t.DelegationResponse=t.Params=t.Redelegation=t.RedelegationEntry=t.UnbondingDelegationEntry=t.UnbondingDelegation=t.Delegation=t.DVVTriplets=t.DVVTriplet=t.DVPairs=t.DVPair=t.ValAddresses=t.Validator=t.Description=t.Commission=t.CommissionRates=t.HistoricalInfo=t.bondStatusToJSON=t.bondStatusFromJSON=t.BondStatus=t.protobufPackage=void 0;var i,o=a(n(12620)),s=a(n(50904)),c=n(73921),u=n(81019),f=n(82043),d=n(790),l=n(55120);function p(e){switch(e){case 0:case"BOND_STATUS_UNSPECIFIED":return i.BOND_STATUS_UNSPECIFIED;case 1:case"BOND_STATUS_UNBONDED":return i.BOND_STATUS_UNBONDED;case 2:case"BOND_STATUS_UNBONDING":return i.BOND_STATUS_UNBONDING;case 3:case"BOND_STATUS_BONDED":return i.BOND_STATUS_BONDED;default:return i.UNRECOGNIZED}}function b(e){switch(e){case i.BOND_STATUS_UNSPECIFIED:return"BOND_STATUS_UNSPECIFIED";case i.BOND_STATUS_UNBONDED:return"BOND_STATUS_UNBONDED";case i.BOND_STATUS_UNBONDING:return"BOND_STATUS_UNBONDING";case i.BOND_STATUS_BONDED:return"BOND_STATUS_BONDED";default:return"UNKNOWN"}}t.protobufPackage="cosmos.staking.v1beta1",function(e){e[e.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",e[e.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",e[e.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",e[e.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=t.BondStatus||(t.BondStatus={})),t.bondStatusFromJSON=p,t.bondStatusToJSON=b;var h={};t.HistoricalInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();void 0!==e.header&&c.Header.encode(e.header,n.uint32(10).fork()).ldelim();var a,i=r(e.valset);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.Validator.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},h);for(i.valset=[];r.pos>>3){case 1:i.header=c.Header.decode(r,r.uint32());break;case 2:i.valset.push(t.Validator.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},h);if(n.valset=[],void 0!==e.header&&null!==e.header?n.header=c.Header.fromJSON(e.header):n.header=void 0,void 0!==e.valset&&null!==e.valset){var a,i=r(e.valset);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.valset.push(t.Validator.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.header&&(n.header=e.header?c.Header.toJSON(e.header):void 0),e.valset?n.valset=e.valset.map((function(e){return e?t.Validator.toJSON(e):void 0})):n.valset=[],n},fromPartial:function(e){var n=Object.assign({},h);if(n.valset=[],void 0!==e.header&&null!==e.header?n.header=c.Header.fromPartial(e.header):n.header=void 0,void 0!==e.valset&&null!==e.valset){var a,i=r(e.valset);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.valset.push(t.Validator.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var y={rate:"",maxRate:"",maxChangeRate:""};t.CommissionRates={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.rate&&t.uint32(10).string(e.rate),""!==e.maxRate&&t.uint32(18).string(e.maxRate),""!==e.maxChangeRate&&t.uint32(26).string(e.maxChangeRate),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos>>3){case 1:a.rate=n.string();break;case 2:a.maxRate=n.string();break;case 3:a.maxChangeRate=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return void 0!==e.rate&&null!==e.rate?t.rate=String(e.rate):t.rate="",void 0!==e.maxRate&&null!==e.maxRate?t.maxRate=String(e.maxRate):t.maxRate="",void 0!==e.maxChangeRate&&null!==e.maxChangeRate?t.maxChangeRate=String(e.maxChangeRate):t.maxChangeRate="",t},toJSON:function(e){var t={};return void 0!==e.rate&&(t.rate=e.rate),void 0!==e.maxRate&&(t.maxRate=e.maxRate),void 0!==e.maxChangeRate&&(t.maxChangeRate=e.maxChangeRate),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.rate&&null!==e.rate?t.rate=e.rate:t.rate="",void 0!==e.maxRate&&null!==e.maxRate?t.maxRate=e.maxRate:t.maxRate="",void 0!==e.maxChangeRate&&null!==e.maxChangeRate?t.maxChangeRate=e.maxChangeRate:t.maxChangeRate="",t}};var m={};t.Commission={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.commissionRates&&t.CommissionRates.encode(e.commissionRates,n.uint32(10).fork()).ldelim(),void 0!==e.updateTime&&l.Timestamp.encode(N(e.updateTime),n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},m);r.pos>>3){case 1:i.commissionRates=t.CommissionRates.decode(r,r.uint32());break;case 2:i.updateTime=D(l.Timestamp.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},m);return void 0!==e.commissionRates&&null!==e.commissionRates?n.commissionRates=t.CommissionRates.fromJSON(e.commissionRates):n.commissionRates=void 0,void 0!==e.updateTime&&null!==e.updateTime?n.updateTime=j(e.updateTime):n.updateTime=void 0,n},toJSON:function(e){var n={};return void 0!==e.commissionRates&&(n.commissionRates=e.commissionRates?t.CommissionRates.toJSON(e.commissionRates):void 0),void 0!==e.updateTime&&(n.updateTime=e.updateTime.toISOString()),n},fromPartial:function(e){var n=Object.assign({},m);return void 0!==e.commissionRates&&null!==e.commissionRates?n.commissionRates=t.CommissionRates.fromPartial(e.commissionRates):n.commissionRates=void 0,void 0!==e.updateTime&&null!==e.updateTime?n.updateTime=e.updateTime:n.updateTime=void 0,n}};var v={moniker:"",identity:"",website:"",securityContact:"",details:""};t.Description={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.moniker&&t.uint32(10).string(e.moniker),""!==e.identity&&t.uint32(18).string(e.identity),""!==e.website&&t.uint32(26).string(e.website),""!==e.securityContact&&t.uint32(34).string(e.securityContact),""!==e.details&&t.uint32(42).string(e.details),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3){case 1:a.moniker=n.string();break;case 2:a.identity=n.string();break;case 3:a.website=n.string();break;case 4:a.securityContact=n.string();break;case 5:a.details=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.moniker&&null!==e.moniker?t.moniker=String(e.moniker):t.moniker="",void 0!==e.identity&&null!==e.identity?t.identity=String(e.identity):t.identity="",void 0!==e.website&&null!==e.website?t.website=String(e.website):t.website="",void 0!==e.securityContact&&null!==e.securityContact?t.securityContact=String(e.securityContact):t.securityContact="",void 0!==e.details&&null!==e.details?t.details=String(e.details):t.details="",t},toJSON:function(e){var t={};return void 0!==e.moniker&&(t.moniker=e.moniker),void 0!==e.identity&&(t.identity=e.identity),void 0!==e.website&&(t.website=e.website),void 0!==e.securityContact&&(t.securityContact=e.securityContact),void 0!==e.details&&(t.details=e.details),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.moniker&&null!==e.moniker?t.moniker=e.moniker:t.moniker="",void 0!==e.identity&&null!==e.identity?t.identity=e.identity:t.identity="",void 0!==e.website&&null!==e.website?t.website=e.website:t.website="",void 0!==e.securityContact&&null!==e.securityContact?t.securityContact=e.securityContact:t.securityContact="",void 0!==e.details&&null!==e.details?t.details=e.details:t.details="",t}};var g={operatorAddress:"",jailed:!1,status:0,tokens:"",delegatorShares:"",unbondingHeight:o.default.ZERO,minSelfDelegation:""};t.Validator={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.operatorAddress&&n.uint32(10).string(e.operatorAddress),void 0!==e.consensusPubkey&&u.Any.encode(e.consensusPubkey,n.uint32(18).fork()).ldelim(),!0===e.jailed&&n.uint32(24).bool(e.jailed),0!==e.status&&n.uint32(32).int32(e.status),""!==e.tokens&&n.uint32(42).string(e.tokens),""!==e.delegatorShares&&n.uint32(50).string(e.delegatorShares),void 0!==e.description&&t.Description.encode(e.description,n.uint32(58).fork()).ldelim(),e.unbondingHeight.isZero()||n.uint32(64).int64(e.unbondingHeight),void 0!==e.unbondingTime&&l.Timestamp.encode(N(e.unbondingTime),n.uint32(74).fork()).ldelim(),void 0!==e.commission&&t.Commission.encode(e.commission,n.uint32(82).fork()).ldelim(),""!==e.minSelfDelegation&&n.uint32(90).string(e.minSelfDelegation),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},g);r.pos>>3){case 1:i.operatorAddress=r.string();break;case 2:i.consensusPubkey=u.Any.decode(r,r.uint32());break;case 3:i.jailed=r.bool();break;case 4:i.status=r.int32();break;case 5:i.tokens=r.string();break;case 6:i.delegatorShares=r.string();break;case 7:i.description=t.Description.decode(r,r.uint32());break;case 8:i.unbondingHeight=r.int64();break;case 9:i.unbondingTime=D(l.Timestamp.decode(r,r.uint32()));break;case 10:i.commission=t.Commission.decode(r,r.uint32());break;case 11:i.minSelfDelegation=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},g);return void 0!==e.operatorAddress&&null!==e.operatorAddress?n.operatorAddress=String(e.operatorAddress):n.operatorAddress="",void 0!==e.consensusPubkey&&null!==e.consensusPubkey?n.consensusPubkey=u.Any.fromJSON(e.consensusPubkey):n.consensusPubkey=void 0,void 0!==e.jailed&&null!==e.jailed?n.jailed=Boolean(e.jailed):n.jailed=!1,void 0!==e.status&&null!==e.status?n.status=p(e.status):n.status=0,void 0!==e.tokens&&null!==e.tokens?n.tokens=String(e.tokens):n.tokens="",void 0!==e.delegatorShares&&null!==e.delegatorShares?n.delegatorShares=String(e.delegatorShares):n.delegatorShares="",void 0!==e.description&&null!==e.description?n.description=t.Description.fromJSON(e.description):n.description=void 0,void 0!==e.unbondingHeight&&null!==e.unbondingHeight?n.unbondingHeight=o.default.fromString(e.unbondingHeight):n.unbondingHeight=o.default.ZERO,void 0!==e.unbondingTime&&null!==e.unbondingTime?n.unbondingTime=j(e.unbondingTime):n.unbondingTime=void 0,void 0!==e.commission&&null!==e.commission?n.commission=t.Commission.fromJSON(e.commission):n.commission=void 0,void 0!==e.minSelfDelegation&&null!==e.minSelfDelegation?n.minSelfDelegation=String(e.minSelfDelegation):n.minSelfDelegation="",n},toJSON:function(e){var n={};return void 0!==e.operatorAddress&&(n.operatorAddress=e.operatorAddress),void 0!==e.consensusPubkey&&(n.consensusPubkey=e.consensusPubkey?u.Any.toJSON(e.consensusPubkey):void 0),void 0!==e.jailed&&(n.jailed=e.jailed),void 0!==e.status&&(n.status=b(e.status)),void 0!==e.tokens&&(n.tokens=e.tokens),void 0!==e.delegatorShares&&(n.delegatorShares=e.delegatorShares),void 0!==e.description&&(n.description=e.description?t.Description.toJSON(e.description):void 0),void 0!==e.unbondingHeight&&(n.unbondingHeight=(e.unbondingHeight||o.default.ZERO).toString()),void 0!==e.unbondingTime&&(n.unbondingTime=e.unbondingTime.toISOString()),void 0!==e.commission&&(n.commission=e.commission?t.Commission.toJSON(e.commission):void 0),void 0!==e.minSelfDelegation&&(n.minSelfDelegation=e.minSelfDelegation),n},fromPartial:function(e){var n=Object.assign({},g);return void 0!==e.operatorAddress&&null!==e.operatorAddress?n.operatorAddress=e.operatorAddress:n.operatorAddress="",void 0!==e.consensusPubkey&&null!==e.consensusPubkey?n.consensusPubkey=u.Any.fromPartial(e.consensusPubkey):n.consensusPubkey=void 0,void 0!==e.jailed&&null!==e.jailed?n.jailed=e.jailed:n.jailed=!1,void 0!==e.status&&null!==e.status?n.status=e.status:n.status=0,void 0!==e.tokens&&null!==e.tokens?n.tokens=e.tokens:n.tokens="",void 0!==e.delegatorShares&&null!==e.delegatorShares?n.delegatorShares=e.delegatorShares:n.delegatorShares="",void 0!==e.description&&null!==e.description?n.description=t.Description.fromPartial(e.description):n.description=void 0,void 0!==e.unbondingHeight&&null!==e.unbondingHeight?n.unbondingHeight=e.unbondingHeight:n.unbondingHeight=o.default.ZERO,void 0!==e.unbondingTime&&null!==e.unbondingTime?n.unbondingTime=e.unbondingTime:n.unbondingTime=void 0,void 0!==e.commission&&null!==e.commission?n.commission=t.Commission.fromPartial(e.commission):n.commission=void 0,void 0!==e.minSelfDelegation&&null!==e.minSelfDelegation?n.minSelfDelegation=e.minSelfDelegation:n.minSelfDelegation="",n}};var A={addresses:""};t.ValAddresses={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create(),a=r(e.addresses);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.addresses=[];n.pos>>3==1?a.addresses.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},A);if(t.addresses=[],void 0!==e.addresses&&null!==e.addresses){var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.addresses.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.addresses?t.addresses=e.addresses.map((function(e){return e})):t.addresses=[],t},fromPartial:function(e){var t=Object.assign({},A);if(t.addresses=[],void 0!==e.addresses&&null!==e.addresses){var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.addresses.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var w={delegatorAddress:"",validatorAddress:""};t.DVPair={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},w);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",t}};var x={};t.DVPairs={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create(),i=r(e.pairs);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.DVPair.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},x);for(i.pairs=[];r.pos>>3==1?i.pairs.push(t.DVPair.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},x);if(n.pairs=[],void 0!==e.pairs&&null!==e.pairs){var a,i=r(e.pairs);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.pairs.push(t.DVPair.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.pairs?n.pairs=e.pairs.map((function(e){return e?t.DVPair.toJSON(e):void 0})):n.pairs=[],n},fromPartial:function(e){var n=Object.assign({},x);if(n.pairs=[],void 0!==e.pairs&&null!==e.pairs){var a,i=r(e.pairs);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.pairs.push(t.DVPair.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var _={delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:""};t.DVVTriplet={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorSrcAddress&&t.uint32(18).string(e.validatorSrcAddress),""!==e.validatorDstAddress&&t.uint32(26).string(e.validatorDstAddress),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorSrcAddress=n.string();break;case 3:a.validatorDstAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},_);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorSrcAddress&&null!==e.validatorSrcAddress?t.validatorSrcAddress=String(e.validatorSrcAddress):t.validatorSrcAddress="",void 0!==e.validatorDstAddress&&null!==e.validatorDstAddress?t.validatorDstAddress=String(e.validatorDstAddress):t.validatorDstAddress="",t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorSrcAddress&&(t.validatorSrcAddress=e.validatorSrcAddress),void 0!==e.validatorDstAddress&&(t.validatorDstAddress=e.validatorDstAddress),t},fromPartial:function(e){var t=Object.assign({},_);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorSrcAddress&&null!==e.validatorSrcAddress?t.validatorSrcAddress=e.validatorSrcAddress:t.validatorSrcAddress="",void 0!==e.validatorDstAddress&&null!==e.validatorDstAddress?t.validatorDstAddress=e.validatorDstAddress:t.validatorDstAddress="",t}};var k={};t.DVVTriplets={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create(),i=r(e.triplets);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.DVVTriplet.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},k);for(i.triplets=[];r.pos>>3==1?i.triplets.push(t.DVVTriplet.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},k);if(n.triplets=[],void 0!==e.triplets&&null!==e.triplets){var a,i=r(e.triplets);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.triplets.push(t.DVVTriplet.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.triplets?n.triplets=e.triplets.map((function(e){return e?t.DVVTriplet.toJSON(e):void 0})):n.triplets=[],n},fromPartial:function(e){var n=Object.assign({},k);if(n.triplets=[],void 0!==e.triplets&&null!==e.triplets){var a,i=r(e.triplets);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.triplets.push(t.DVVTriplet.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var S={delegatorAddress:"",validatorAddress:"",shares:""};t.Delegation={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),""!==e.shares&&t.uint32(26).string(e.shares),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},S);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;case 3:a.shares=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},S);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",void 0!==e.shares&&null!==e.shares?t.shares=String(e.shares):t.shares="",t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.shares&&(t.shares=e.shares),t},fromPartial:function(e){var t=Object.assign({},S);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",void 0!==e.shares&&null!==e.shares?t.shares=e.shares:t.shares="",t}};var I={delegatorAddress:"",validatorAddress:""};t.UnbondingDelegation={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();""!==e.delegatorAddress&&n.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&n.uint32(18).string(e.validatorAddress);var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.UnbondingDelegationEntry.encode(o,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},I);for(i.entries=[];r.pos>>3){case 1:i.delegatorAddress=r.string();break;case 2:i.validatorAddress=r.string();break;case 3:i.entries.push(t.UnbondingDelegationEntry.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},I);if(n.entries=[],void 0!==e.delegatorAddress&&null!==e.delegatorAddress?n.delegatorAddress=String(e.delegatorAddress):n.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?n.validatorAddress=String(e.validatorAddress):n.validatorAddress="",void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.UnbondingDelegationEntry.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.delegatorAddress&&(n.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(n.validatorAddress=e.validatorAddress),e.entries?n.entries=e.entries.map((function(e){return e?t.UnbondingDelegationEntry.toJSON(e):void 0})):n.entries=[],n},fromPartial:function(e){var n=Object.assign({},I);if(n.entries=[],void 0!==e.delegatorAddress&&null!==e.delegatorAddress?n.delegatorAddress=e.delegatorAddress:n.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?n.validatorAddress=e.validatorAddress:n.validatorAddress="",void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.UnbondingDelegationEntry.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var E={creationHeight:o.default.ZERO,initialBalance:"",balance:""};t.UnbondingDelegationEntry={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return e.creationHeight.isZero()||t.uint32(8).int64(e.creationHeight),void 0!==e.completionTime&&l.Timestamp.encode(N(e.completionTime),t.uint32(18).fork()).ldelim(),""!==e.initialBalance&&t.uint32(26).string(e.initialBalance),""!==e.balance&&t.uint32(34).string(e.balance),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},E);n.pos>>3){case 1:a.creationHeight=n.int64();break;case 2:a.completionTime=D(l.Timestamp.decode(n,n.uint32()));break;case 3:a.initialBalance=n.string();break;case 4:a.balance=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},E);return void 0!==e.creationHeight&&null!==e.creationHeight?t.creationHeight=o.default.fromString(e.creationHeight):t.creationHeight=o.default.ZERO,void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=j(e.completionTime):t.completionTime=void 0,void 0!==e.initialBalance&&null!==e.initialBalance?t.initialBalance=String(e.initialBalance):t.initialBalance="",void 0!==e.balance&&null!==e.balance?t.balance=String(e.balance):t.balance="",t},toJSON:function(e){var t={};return void 0!==e.creationHeight&&(t.creationHeight=(e.creationHeight||o.default.ZERO).toString()),void 0!==e.completionTime&&(t.completionTime=e.completionTime.toISOString()),void 0!==e.initialBalance&&(t.initialBalance=e.initialBalance),void 0!==e.balance&&(t.balance=e.balance),t},fromPartial:function(e){var t=Object.assign({},E);return void 0!==e.creationHeight&&null!==e.creationHeight?t.creationHeight=e.creationHeight:t.creationHeight=o.default.ZERO,void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=e.completionTime:t.completionTime=void 0,void 0!==e.initialBalance&&null!==e.initialBalance?t.initialBalance=e.initialBalance:t.initialBalance="",void 0!==e.balance&&null!==e.balance?t.balance=e.balance:t.balance="",t}};var C={creationHeight:o.default.ZERO,initialBalance:"",sharesDst:""};t.RedelegationEntry={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return e.creationHeight.isZero()||t.uint32(8).int64(e.creationHeight),void 0!==e.completionTime&&l.Timestamp.encode(N(e.completionTime),t.uint32(18).fork()).ldelim(),""!==e.initialBalance&&t.uint32(26).string(e.initialBalance),""!==e.sharesDst&&t.uint32(34).string(e.sharesDst),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},C);n.pos>>3){case 1:a.creationHeight=n.int64();break;case 2:a.completionTime=D(l.Timestamp.decode(n,n.uint32()));break;case 3:a.initialBalance=n.string();break;case 4:a.sharesDst=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},C);return void 0!==e.creationHeight&&null!==e.creationHeight?t.creationHeight=o.default.fromString(e.creationHeight):t.creationHeight=o.default.ZERO,void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=j(e.completionTime):t.completionTime=void 0,void 0!==e.initialBalance&&null!==e.initialBalance?t.initialBalance=String(e.initialBalance):t.initialBalance="",void 0!==e.sharesDst&&null!==e.sharesDst?t.sharesDst=String(e.sharesDst):t.sharesDst="",t},toJSON:function(e){var t={};return void 0!==e.creationHeight&&(t.creationHeight=(e.creationHeight||o.default.ZERO).toString()),void 0!==e.completionTime&&(t.completionTime=e.completionTime.toISOString()),void 0!==e.initialBalance&&(t.initialBalance=e.initialBalance),void 0!==e.sharesDst&&(t.sharesDst=e.sharesDst),t},fromPartial:function(e){var t=Object.assign({},C);return void 0!==e.creationHeight&&null!==e.creationHeight?t.creationHeight=e.creationHeight:t.creationHeight=o.default.ZERO,void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=e.completionTime:t.completionTime=void 0,void 0!==e.initialBalance&&null!==e.initialBalance?t.initialBalance=e.initialBalance:t.initialBalance="",void 0!==e.sharesDst&&null!==e.sharesDst?t.sharesDst=e.sharesDst:t.sharesDst="",t}};var T={delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:""};t.Redelegation={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();""!==e.delegatorAddress&&n.uint32(10).string(e.delegatorAddress),""!==e.validatorSrcAddress&&n.uint32(18).string(e.validatorSrcAddress),""!==e.validatorDstAddress&&n.uint32(26).string(e.validatorDstAddress);var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.RedelegationEntry.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},T);for(i.entries=[];r.pos>>3){case 1:i.delegatorAddress=r.string();break;case 2:i.validatorSrcAddress=r.string();break;case 3:i.validatorDstAddress=r.string();break;case 4:i.entries.push(t.RedelegationEntry.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},T);if(n.entries=[],void 0!==e.delegatorAddress&&null!==e.delegatorAddress?n.delegatorAddress=String(e.delegatorAddress):n.delegatorAddress="",void 0!==e.validatorSrcAddress&&null!==e.validatorSrcAddress?n.validatorSrcAddress=String(e.validatorSrcAddress):n.validatorSrcAddress="",void 0!==e.validatorDstAddress&&null!==e.validatorDstAddress?n.validatorDstAddress=String(e.validatorDstAddress):n.validatorDstAddress="",void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.RedelegationEntry.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.delegatorAddress&&(n.delegatorAddress=e.delegatorAddress),void 0!==e.validatorSrcAddress&&(n.validatorSrcAddress=e.validatorSrcAddress),void 0!==e.validatorDstAddress&&(n.validatorDstAddress=e.validatorDstAddress),e.entries?n.entries=e.entries.map((function(e){return e?t.RedelegationEntry.toJSON(e):void 0})):n.entries=[],n},fromPartial:function(e){var n=Object.assign({},T);if(n.entries=[],void 0!==e.delegatorAddress&&null!==e.delegatorAddress?n.delegatorAddress=e.delegatorAddress:n.delegatorAddress="",void 0!==e.validatorSrcAddress&&null!==e.validatorSrcAddress?n.validatorSrcAddress=e.validatorSrcAddress:n.validatorSrcAddress="",void 0!==e.validatorDstAddress&&null!==e.validatorDstAddress?n.validatorDstAddress=e.validatorDstAddress:n.validatorDstAddress="",void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.RedelegationEntry.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var O={maxValidators:0,maxEntries:0,historicalEntries:0,bondDenom:""};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.unbondingTime&&f.Duration.encode(e.unbondingTime,t.uint32(10).fork()).ldelim(),0!==e.maxValidators&&t.uint32(16).uint32(e.maxValidators),0!==e.maxEntries&&t.uint32(24).uint32(e.maxEntries),0!==e.historicalEntries&&t.uint32(32).uint32(e.historicalEntries),""!==e.bondDenom&&t.uint32(42).string(e.bondDenom),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},O);n.pos>>3){case 1:a.unbondingTime=f.Duration.decode(n,n.uint32());break;case 2:a.maxValidators=n.uint32();break;case 3:a.maxEntries=n.uint32();break;case 4:a.historicalEntries=n.uint32();break;case 5:a.bondDenom=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},O);return void 0!==e.unbondingTime&&null!==e.unbondingTime?t.unbondingTime=f.Duration.fromJSON(e.unbondingTime):t.unbondingTime=void 0,void 0!==e.maxValidators&&null!==e.maxValidators?t.maxValidators=Number(e.maxValidators):t.maxValidators=0,void 0!==e.maxEntries&&null!==e.maxEntries?t.maxEntries=Number(e.maxEntries):t.maxEntries=0,void 0!==e.historicalEntries&&null!==e.historicalEntries?t.historicalEntries=Number(e.historicalEntries):t.historicalEntries=0,void 0!==e.bondDenom&&null!==e.bondDenom?t.bondDenom=String(e.bondDenom):t.bondDenom="",t},toJSON:function(e){var t={};return void 0!==e.unbondingTime&&(t.unbondingTime=e.unbondingTime?f.Duration.toJSON(e.unbondingTime):void 0),void 0!==e.maxValidators&&(t.maxValidators=e.maxValidators),void 0!==e.maxEntries&&(t.maxEntries=e.maxEntries),void 0!==e.historicalEntries&&(t.historicalEntries=e.historicalEntries),void 0!==e.bondDenom&&(t.bondDenom=e.bondDenom),t},fromPartial:function(e){var t=Object.assign({},O);return void 0!==e.unbondingTime&&null!==e.unbondingTime?t.unbondingTime=f.Duration.fromPartial(e.unbondingTime):t.unbondingTime=void 0,void 0!==e.maxValidators&&null!==e.maxValidators?t.maxValidators=e.maxValidators:t.maxValidators=0,void 0!==e.maxEntries&&null!==e.maxEntries?t.maxEntries=e.maxEntries:t.maxEntries=0,void 0!==e.historicalEntries&&null!==e.historicalEntries?t.historicalEntries=e.historicalEntries:t.historicalEntries=0,void 0!==e.bondDenom&&null!==e.bondDenom?t.bondDenom=e.bondDenom:t.bondDenom="",t}};var P={};t.DelegationResponse={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.delegation&&t.Delegation.encode(e.delegation,n.uint32(10).fork()).ldelim(),void 0!==e.balance&&d.Coin.encode(e.balance,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},P);r.pos>>3){case 1:i.delegation=t.Delegation.decode(r,r.uint32());break;case 2:i.balance=d.Coin.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},P);return void 0!==e.delegation&&null!==e.delegation?n.delegation=t.Delegation.fromJSON(e.delegation):n.delegation=void 0,void 0!==e.balance&&null!==e.balance?n.balance=d.Coin.fromJSON(e.balance):n.balance=void 0,n},toJSON:function(e){var n={};return void 0!==e.delegation&&(n.delegation=e.delegation?t.Delegation.toJSON(e.delegation):void 0),void 0!==e.balance&&(n.balance=e.balance?d.Coin.toJSON(e.balance):void 0),n},fromPartial:function(e){var n=Object.assign({},P);return void 0!==e.delegation&&null!==e.delegation?n.delegation=t.Delegation.fromPartial(e.delegation):n.delegation=void 0,void 0!==e.balance&&null!==e.balance?n.balance=d.Coin.fromPartial(e.balance):n.balance=void 0,n}};var M={balance:""};t.RedelegationEntryResponse={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.redelegationEntry&&t.RedelegationEntry.encode(e.redelegationEntry,n.uint32(10).fork()).ldelim(),""!==e.balance&&n.uint32(34).string(e.balance),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},M);r.pos>>3){case 1:i.redelegationEntry=t.RedelegationEntry.decode(r,r.uint32());break;case 4:i.balance=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},M);return void 0!==e.redelegationEntry&&null!==e.redelegationEntry?n.redelegationEntry=t.RedelegationEntry.fromJSON(e.redelegationEntry):n.redelegationEntry=void 0,void 0!==e.balance&&null!==e.balance?n.balance=String(e.balance):n.balance="",n},toJSON:function(e){var n={};return void 0!==e.redelegationEntry&&(n.redelegationEntry=e.redelegationEntry?t.RedelegationEntry.toJSON(e.redelegationEntry):void 0),void 0!==e.balance&&(n.balance=e.balance),n},fromPartial:function(e){var n=Object.assign({},M);return void 0!==e.redelegationEntry&&null!==e.redelegationEntry?n.redelegationEntry=t.RedelegationEntry.fromPartial(e.redelegationEntry):n.redelegationEntry=void 0,void 0!==e.balance&&null!==e.balance?n.balance=e.balance:n.balance="",n}};var B={};t.RedelegationResponse={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();void 0!==e.redelegation&&t.Redelegation.encode(e.redelegation,n.uint32(10).fork()).ldelim();var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.RedelegationEntryResponse.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},B);for(i.entries=[];r.pos>>3){case 1:i.redelegation=t.Redelegation.decode(r,r.uint32());break;case 2:i.entries.push(t.RedelegationEntryResponse.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},B);if(n.entries=[],void 0!==e.redelegation&&null!==e.redelegation?n.redelegation=t.Redelegation.fromJSON(e.redelegation):n.redelegation=void 0,void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.RedelegationEntryResponse.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.redelegation&&(n.redelegation=e.redelegation?t.Redelegation.toJSON(e.redelegation):void 0),e.entries?n.entries=e.entries.map((function(e){return e?t.RedelegationEntryResponse.toJSON(e):void 0})):n.entries=[],n},fromPartial:function(e){var n=Object.assign({},B);if(n.entries=[],void 0!==e.redelegation&&null!==e.redelegation?n.redelegation=t.Redelegation.fromPartial(e.redelegation):n.redelegation=void 0,void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.RedelegationEntryResponse.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var R={notBondedTokens:"",bondedTokens:""};function N(e){var t;return{seconds:(t=e.getTime()/1e3,o.default.fromNumber(t)),nanos:e.getTime()%1e3*1e6}}function D(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}function j(e){return e instanceof Date?e:"string"==typeof e?new Date(e):D(l.Timestamp.fromJSON(e))}t.Pool={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.notBondedTokens&&t.uint32(10).string(e.notBondedTokens),""!==e.bondedTokens&&t.uint32(18).string(e.bondedTokens),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},R);n.pos>>3){case 1:a.notBondedTokens=n.string();break;case 2:a.bondedTokens=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},R);return void 0!==e.notBondedTokens&&null!==e.notBondedTokens?t.notBondedTokens=String(e.notBondedTokens):t.notBondedTokens="",void 0!==e.bondedTokens&&null!==e.bondedTokens?t.bondedTokens=String(e.bondedTokens):t.bondedTokens="",t},toJSON:function(e){var t={};return void 0!==e.notBondedTokens&&(t.notBondedTokens=e.notBondedTokens),void 0!==e.bondedTokens&&(t.bondedTokens=e.bondedTokens),t},fromPartial:function(e){var t=Object.assign({},R);return void 0!==e.notBondedTokens&&null!==e.notBondedTokens?t.notBondedTokens=e.notBondedTokens:t.notBondedTokens="",void 0!==e.bondedTokens&&null!==e.bondedTokens?t.bondedTokens=e.bondedTokens:t.bondedTokens="",t}},s.default.util.Long!==o.default&&(s.default.util.Long=o.default,s.default.configure())},47111:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgUndelegateDesc=t.MsgBeginRedelegateDesc=t.MsgDelegateDesc=t.MsgEditValidatorDesc=t.MsgCreateValidatorDesc=t.MsgDesc=t.MsgClientImpl=t.MsgUndelegateResponse=t.MsgUndelegate=t.MsgBeginRedelegateResponse=t.MsgBeginRedelegate=t.MsgDelegateResponse=t.MsgDelegate=t.MsgEditValidatorResponse=t.MsgEditValidator=t.MsgCreateValidatorResponse=t.MsgCreateValidator=t.protobufPackage=void 0;var o=i(n(12620)),s=n(94680),c=i(n(50904)),u=n(18672),f=n(81019),d=n(790),l=n(84587),p=n(55120);t.protobufPackage="cosmos.staking.v1beta1";var b={minSelfDelegation:"",delegatorAddress:"",validatorAddress:""};t.MsgCreateValidator={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.description&&u.Description.encode(e.description,t.uint32(10).fork()).ldelim(),void 0!==e.commission&&u.CommissionRates.encode(e.commission,t.uint32(18).fork()).ldelim(),""!==e.minSelfDelegation&&t.uint32(26).string(e.minSelfDelegation),""!==e.delegatorAddress&&t.uint32(34).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(42).string(e.validatorAddress),void 0!==e.pubkey&&f.Any.encode(e.pubkey,t.uint32(50).fork()).ldelim(),void 0!==e.value&&d.Coin.encode(e.value,t.uint32(58).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.description=u.Description.decode(n,n.uint32());break;case 2:a.commission=u.CommissionRates.decode(n,n.uint32());break;case 3:a.minSelfDelegation=n.string();break;case 4:a.delegatorAddress=n.string();break;case 5:a.validatorAddress=n.string();break;case 6:a.pubkey=f.Any.decode(n,n.uint32());break;case 7:a.value=d.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.description&&null!==e.description?t.description=u.Description.fromJSON(e.description):t.description=void 0,void 0!==e.commission&&null!==e.commission?t.commission=u.CommissionRates.fromJSON(e.commission):t.commission=void 0,void 0!==e.minSelfDelegation&&null!==e.minSelfDelegation?t.minSelfDelegation=String(e.minSelfDelegation):t.minSelfDelegation="",void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",void 0!==e.pubkey&&null!==e.pubkey?t.pubkey=f.Any.fromJSON(e.pubkey):t.pubkey=void 0,void 0!==e.value&&null!==e.value?t.value=d.Coin.fromJSON(e.value):t.value=void 0,t},toJSON:function(e){var t={};return void 0!==e.description&&(t.description=e.description?u.Description.toJSON(e.description):void 0),void 0!==e.commission&&(t.commission=e.commission?u.CommissionRates.toJSON(e.commission):void 0),void 0!==e.minSelfDelegation&&(t.minSelfDelegation=e.minSelfDelegation),void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.pubkey&&(t.pubkey=e.pubkey?f.Any.toJSON(e.pubkey):void 0),void 0!==e.value&&(t.value=e.value?d.Coin.toJSON(e.value):void 0),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.description&&null!==e.description?t.description=u.Description.fromPartial(e.description):t.description=void 0,void 0!==e.commission&&null!==e.commission?t.commission=u.CommissionRates.fromPartial(e.commission):t.commission=void 0,void 0!==e.minSelfDelegation&&null!==e.minSelfDelegation?t.minSelfDelegation=e.minSelfDelegation:t.minSelfDelegation="",void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",void 0!==e.pubkey&&null!==e.pubkey?t.pubkey=f.Any.fromPartial(e.pubkey):t.pubkey=void 0,void 0!==e.value&&null!==e.value?t.value=d.Coin.fromPartial(e.value):t.value=void 0,t}};var h={};t.MsgCreateValidatorResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.description&&u.Description.encode(e.description,t.uint32(10).fork()).ldelim(),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),""!==e.commissionRate&&t.uint32(26).string(e.commissionRate),""!==e.minSelfDelegation&&t.uint32(34).string(e.minSelfDelegation),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos>>3){case 1:a.description=u.Description.decode(n,n.uint32());break;case 2:a.validatorAddress=n.string();break;case 3:a.commissionRate=n.string();break;case 4:a.minSelfDelegation=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return void 0!==e.description&&null!==e.description?t.description=u.Description.fromJSON(e.description):t.description=void 0,void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",void 0!==e.commissionRate&&null!==e.commissionRate?t.commissionRate=String(e.commissionRate):t.commissionRate="",void 0!==e.minSelfDelegation&&null!==e.minSelfDelegation?t.minSelfDelegation=String(e.minSelfDelegation):t.minSelfDelegation="",t},toJSON:function(e){var t={};return void 0!==e.description&&(t.description=e.description?u.Description.toJSON(e.description):void 0),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.commissionRate&&(t.commissionRate=e.commissionRate),void 0!==e.minSelfDelegation&&(t.minSelfDelegation=e.minSelfDelegation),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.description&&null!==e.description?t.description=u.Description.fromPartial(e.description):t.description=void 0,void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",void 0!==e.commissionRate&&null!==e.commissionRate?t.commissionRate=e.commissionRate:t.commissionRate="",void 0!==e.minSelfDelegation&&null!==e.minSelfDelegation?t.minSelfDelegation=e.minSelfDelegation:t.minSelfDelegation="",t}};var m={};t.MsgEditValidatorResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),void 0!==e.amount&&d.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;case 3:a.amount=d.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",void 0!==e.amount&&null!==e.amount?t.amount=d.Coin.fromJSON(e.amount):t.amount=void 0,t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.amount&&(t.amount=e.amount?d.Coin.toJSON(e.amount):void 0),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",void 0!==e.amount&&null!==e.amount?t.amount=d.Coin.fromPartial(e.amount):t.amount=void 0,t}};var g={};t.MsgDelegateResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorSrcAddress&&t.uint32(18).string(e.validatorSrcAddress),""!==e.validatorDstAddress&&t.uint32(26).string(e.validatorDstAddress),void 0!==e.amount&&d.Coin.encode(e.amount,t.uint32(34).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorSrcAddress=n.string();break;case 3:a.validatorDstAddress=n.string();break;case 4:a.amount=d.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorSrcAddress&&null!==e.validatorSrcAddress?t.validatorSrcAddress=String(e.validatorSrcAddress):t.validatorSrcAddress="",void 0!==e.validatorDstAddress&&null!==e.validatorDstAddress?t.validatorDstAddress=String(e.validatorDstAddress):t.validatorDstAddress="",void 0!==e.amount&&null!==e.amount?t.amount=d.Coin.fromJSON(e.amount):t.amount=void 0,t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorSrcAddress&&(t.validatorSrcAddress=e.validatorSrcAddress),void 0!==e.validatorDstAddress&&(t.validatorDstAddress=e.validatorDstAddress),void 0!==e.amount&&(t.amount=e.amount?d.Coin.toJSON(e.amount):void 0),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorSrcAddress&&null!==e.validatorSrcAddress?t.validatorSrcAddress=e.validatorSrcAddress:t.validatorSrcAddress="",void 0!==e.validatorDstAddress&&null!==e.validatorDstAddress?t.validatorDstAddress=e.validatorDstAddress:t.validatorDstAddress="",void 0!==e.amount&&null!==e.amount?t.amount=d.Coin.fromPartial(e.amount):t.amount=void 0,t}};var w={};t.MsgBeginRedelegateResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.completionTime&&p.Timestamp.encode(I(e.completionTime),t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos>>3==1?a.completionTime=E(p.Timestamp.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},w);return void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=C(e.completionTime):t.completionTime=void 0,t},toJSON:function(e){var t={};return void 0!==e.completionTime&&(t.completionTime=e.completionTime.toISOString()),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=e.completionTime:t.completionTime=void 0,t}};var x={delegatorAddress:"",validatorAddress:""};t.MsgUndelegate={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),void 0!==e.amount&&d.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},x);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;case 3:a.amount=d.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},x);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",void 0!==e.amount&&null!==e.amount?t.amount=d.Coin.fromJSON(e.amount):t.amount=void 0,t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.amount&&(t.amount=e.amount?d.Coin.toJSON(e.amount):void 0),t},fromPartial:function(e){var t=Object.assign({},x);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",void 0!==e.amount&&null!==e.amount?t.amount=d.Coin.fromPartial(e.amount):t.amount=void 0,t}};var _={};t.MsgUndelegateResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.completionTime&&p.Timestamp.encode(I(e.completionTime),t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);n.pos>>3==1?a.completionTime=E(p.Timestamp.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},_);return void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=C(e.completionTime):t.completionTime=void 0,t},toJSON:function(e){var t={};return void 0!==e.completionTime&&(t.completionTime=e.completionTime.toISOString()),t},fromPartial:function(e){var t=Object.assign({},_);return void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=e.completionTime:t.completionTime=void 0,t}};var k=function(){function e(t){r(this,e),this.rpc=t,this.CreateValidator=this.CreateValidator.bind(this),this.EditValidator=this.EditValidator.bind(this),this.Delegate=this.Delegate.bind(this),this.BeginRedelegate=this.BeginRedelegate.bind(this),this.Undelegate=this.Undelegate.bind(this)}return a(e,[{key:"CreateValidator",value:function(e,n){return this.rpc.unary(t.MsgCreateValidatorDesc,t.MsgCreateValidator.fromPartial(e),n)}},{key:"EditValidator",value:function(e,n){return this.rpc.unary(t.MsgEditValidatorDesc,t.MsgEditValidator.fromPartial(e),n)}},{key:"Delegate",value:function(e,n){return this.rpc.unary(t.MsgDelegateDesc,t.MsgDelegate.fromPartial(e),n)}},{key:"BeginRedelegate",value:function(e,n){return this.rpc.unary(t.MsgBeginRedelegateDesc,t.MsgBeginRedelegate.fromPartial(e),n)}},{key:"Undelegate",value:function(e,n){return this.rpc.unary(t.MsgUndelegateDesc,t.MsgUndelegate.fromPartial(e),n)}}]),e}();t.MsgClientImpl=k,t.MsgDesc={serviceName:"cosmos.staking.v1beta1.Msg"},t.MsgCreateValidatorDesc={methodName:"CreateValidator",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgCreateValidator.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgCreateValidatorResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgEditValidatorDesc={methodName:"EditValidator",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgEditValidator.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgEditValidatorResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgDelegateDesc={methodName:"Delegate",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgDelegate.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgDelegateResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgBeginRedelegateDesc={methodName:"BeginRedelegate",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgBeginRedelegate.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgBeginRedelegateResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgUndelegateDesc={methodName:"Undelegate",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgUndelegate.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgUndelegateResponse.decode(e)),{toObject:function(){return this}})}}};var S=function(){function e(t,n){r(this,e),this.host=t,this.options=n}return a(e,[{key:"unary",value:function(e,t,n){var r,a=this,i=Object.assign(Object.assign({},t),e.requestType),o=n&&this.options.metadata?new l.BrowserHeaders(Object.assign(Object.assign({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise((function(t,n){s.grpc.unary(e,{request:i,host:a.host,metadata:o,transport:a.options.transport,debug:a.options.debug,onEnd:function(e){if(e.status===s.grpc.Code.OK)t(e.message);else{var r=new Error(e.statusMessage);r.code=e.status,r.metadata=e.trailers,n(r)}}})}))}}]),e}();function I(e){var t;return{seconds:(t=e.getTime()/1e3,o.default.fromNumber(t)),nanos:e.getTime()%1e3*1e6}}function E(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}function C(e){return e instanceof Date?e:"string"==typeof e?new Date(e):E(p.Timestamp.fromJSON(e))}t.GrpcWebImpl=S,c.default.util.Long!==o.default&&(c.default.util.Long=o.default,c.default.configure())},73663:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureDescriptor_Data_Multi=t.SignatureDescriptor_Data_Single=t.SignatureDescriptor_Data=t.SignatureDescriptor=t.SignatureDescriptors=t.signModeToJSON=t.signModeFromJSON=t.SignMode=t.protobufPackage=void 0;var i,o=a(n(12620)),s=a(n(50904)),c=n(81019),u=n(81506);function f(e){switch(e){case 0:case"SIGN_MODE_UNSPECIFIED":return i.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return i.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return i.SIGN_MODE_TEXTUAL;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return i.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return i.SIGN_MODE_EIP_191;default:return i.UNRECOGNIZED}}function d(e){switch(e){case i.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case i.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case i.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case i.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case i.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";default:return"UNKNOWN"}}t.protobufPackage="cosmos.tx.signing.v1beta1",function(e){e[e.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",e[e.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",e[e.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",e[e.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",e[e.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=t.SignMode||(t.SignMode={})),t.signModeFromJSON=f,t.signModeToJSON=d;var l={};t.SignatureDescriptors={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create(),i=r(e.signatures);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.SignatureDescriptor.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},l);for(i.signatures=[];r.pos>>3==1?i.signatures.push(t.SignatureDescriptor.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},l);if(n.signatures=[],void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.signatures?n.signatures=e.signatures.map((function(e){return e?t.SignatureDescriptor.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},l);if(n.signatures=[],void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var p={sequence:o.default.UZERO};t.SignatureDescriptor={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.publicKey&&c.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),void 0!==e.data&&t.SignatureDescriptor_Data.encode(e.data,n.uint32(18).fork()).ldelim(),e.sequence.isZero()||n.uint32(24).uint64(e.sequence),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);r.pos>>3){case 1:i.publicKey=c.Any.decode(r,r.uint32());break;case 2:i.data=t.SignatureDescriptor_Data.decode(r,r.uint32());break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},p);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=c.Any.fromJSON(e.publicKey):n.publicKey=void 0,void 0!==e.data&&null!==e.data?n.data=t.SignatureDescriptor_Data.fromJSON(e.data):n.data=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=o.default.fromString(e.sequence):n.sequence=o.default.UZERO,n},toJSON:function(e){var n={};return void 0!==e.publicKey&&(n.publicKey=e.publicKey?c.Any.toJSON(e.publicKey):void 0),void 0!==e.data&&(n.data=e.data?t.SignatureDescriptor_Data.toJSON(e.data):void 0),void 0!==e.sequence&&(n.sequence=(e.sequence||o.default.UZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},p);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=c.Any.fromPartial(e.publicKey):n.publicKey=void 0,void 0!==e.data&&null!==e.data?n.data=t.SignatureDescriptor_Data.fromPartial(e.data):n.data=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=e.sequence:n.sequence=o.default.UZERO,n}};var b={};t.SignatureDescriptor_Data={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.single&&t.SignatureDescriptor_Data_Single.encode(e.single,n.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.SignatureDescriptor_Data_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);r.pos>>3){case 1:i.single=t.SignatureDescriptor_Data_Single.decode(r,r.uint32());break;case 2:i.multi=t.SignatureDescriptor_Data_Multi.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},b);return void 0!==e.single&&null!==e.single?n.single=t.SignatureDescriptor_Data_Single.fromJSON(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.SignatureDescriptor_Data_Multi.fromJSON(e.multi):n.multi=void 0,n},toJSON:function(e){var n={};return void 0!==e.single&&(n.single=e.single?t.SignatureDescriptor_Data_Single.toJSON(e.single):void 0),void 0!==e.multi&&(n.multi=e.multi?t.SignatureDescriptor_Data_Multi.toJSON(e.multi):void 0),n},fromPartial:function(e){var n=Object.assign({},b);return void 0!==e.single&&null!==e.single?n.single=t.SignatureDescriptor_Data_Single.fromPartial(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.SignatureDescriptor_Data_Multi.fromPartial(e.multi):n.multi=void 0,n}};var h={mode:0};t.SignatureDescriptor_Data_Single={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return 0!==e.mode&&t.uint32(8).int32(e.mode),0!==e.signature.length&&t.uint32(18).bytes(e.signature),t},decode:function(e,t){var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.signature=new Uint8Array;n.pos>>3){case 1:a.mode=n.int32();break;case 2:a.signature=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);return t.signature=new Uint8Array,void 0!==e.mode&&null!==e.mode?t.mode=f(e.mode):t.mode=0,void 0!==e.signature&&null!==e.signature&&(t.signature=function(e){for(var t=v(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();void 0!==e.bitarray&&u.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.SignatureDescriptor_Data.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},y);for(i.signatures=[];r.pos>>3){case 1:i.bitarray=u.CompactBitArray.decode(r,r.uint32());break;case 2:i.signatures.push(t.SignatureDescriptor_Data.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},y);if(n.signatures=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromJSON(e.bitarray):n.bitarray=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor_Data.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.bitarray&&(n.bitarray=e.bitarray?u.CompactBitArray.toJSON(e.bitarray):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return e?t.SignatureDescriptor_Data.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},y);if(n.signatures=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromPartial(e.bitarray):n.bitarray=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor_Data.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var m=function(){if(void 0!==m)return m;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),v=m.atob||function(e){return m.Buffer.from(e,"base64").toString("binary")},g=m.btoa||function(e){return m.Buffer.from(e,"binary").toString("base64")};s.default.util.Long!==o.default&&(s.default.util.Long=o.default,s.default.configure())},89964:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(21146).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.ServiceGetBlockWithTxsDesc=t.ServiceGetTxsEventDesc=t.ServiceBroadcastTxDesc=t.ServiceGetTxDesc=t.ServiceSimulateDesc=t.ServiceDesc=t.ServiceClientImpl=t.GetBlockWithTxsResponse=t.GetBlockWithTxsRequest=t.GetTxResponse=t.GetTxRequest=t.SimulateResponse=t.SimulateRequest=t.BroadcastTxResponse=t.BroadcastTxRequest=t.GetTxsEventResponse=t.GetTxsEventRequest=t.broadcastModeToJSON=t.broadcastModeFromJSON=t.BroadcastMode=t.orderByToJSON=t.orderByFromJSON=t.OrderBy=t.protobufPackage=void 0;var s,c,u=o(n(12620)),f=n(94680),d=o(n(50904)),l=n(72661),p=n(52908),b=n(62875),h=n(73921),y=n(33545),m=n(84587);function v(e){switch(e){case 0:case"ORDER_BY_UNSPECIFIED":return s.ORDER_BY_UNSPECIFIED;case 1:case"ORDER_BY_ASC":return s.ORDER_BY_ASC;case 2:case"ORDER_BY_DESC":return s.ORDER_BY_DESC;default:return s.UNRECOGNIZED}}function g(e){switch(e){case s.ORDER_BY_UNSPECIFIED:return"ORDER_BY_UNSPECIFIED";case s.ORDER_BY_ASC:return"ORDER_BY_ASC";case s.ORDER_BY_DESC:return"ORDER_BY_DESC";default:return"UNKNOWN"}}function A(e){switch(e){case 0:case"BROADCAST_MODE_UNSPECIFIED":return c.BROADCAST_MODE_UNSPECIFIED;case 1:case"BROADCAST_MODE_BLOCK":return c.BROADCAST_MODE_BLOCK;case 2:case"BROADCAST_MODE_SYNC":return c.BROADCAST_MODE_SYNC;case 3:case"BROADCAST_MODE_ASYNC":return c.BROADCAST_MODE_ASYNC;default:return c.UNRECOGNIZED}}function w(e){switch(e){case c.BROADCAST_MODE_UNSPECIFIED:return"BROADCAST_MODE_UNSPECIFIED";case c.BROADCAST_MODE_BLOCK:return"BROADCAST_MODE_BLOCK";case c.BROADCAST_MODE_SYNC:return"BROADCAST_MODE_SYNC";case c.BROADCAST_MODE_ASYNC:return"BROADCAST_MODE_ASYNC";default:return"UNKNOWN"}}t.protobufPackage="cosmos.tx.v1beta1",function(e){e[e.ORDER_BY_UNSPECIFIED=0]="ORDER_BY_UNSPECIFIED",e[e.ORDER_BY_ASC=1]="ORDER_BY_ASC",e[e.ORDER_BY_DESC=2]="ORDER_BY_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.OrderBy||(t.OrderBy={})),t.orderByFromJSON=v,t.orderByToJSON=g,function(e){e[e.BROADCAST_MODE_UNSPECIFIED=0]="BROADCAST_MODE_UNSPECIFIED",e[e.BROADCAST_MODE_BLOCK=1]="BROADCAST_MODE_BLOCK",e[e.BROADCAST_MODE_SYNC=2]="BROADCAST_MODE_SYNC",e[e.BROADCAST_MODE_ASYNC=3]="BROADCAST_MODE_ASYNC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.BroadcastMode||(t.BroadcastMode={})),t.broadcastModeFromJSON=A,t.broadcastModeToJSON=w;var x={events:"",orderBy:0};t.GetTxsEventRequest={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create(),r=i(e.events);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}return void 0!==e.pagination&&l.PageRequest.encode(e.pagination,n.uint32(18).fork()).ldelim(),0!==e.orderBy&&n.uint32(24).int32(e.orderBy),n},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},x);for(a.events=[];n.pos>>3){case 1:a.events.push(n.string());break;case 2:a.pagination=l.PageRequest.decode(n,n.uint32());break;case 3:a.orderBy=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},x);if(t.events=[],void 0!==e.events&&null!==e.events){var n,r=i(e.events);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.events.push(String(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageRequest.fromJSON(e.pagination):t.pagination=void 0,void 0!==e.orderBy&&null!==e.orderBy?t.orderBy=v(e.orderBy):t.orderBy=0,t},toJSON:function(e){var t={};return e.events?t.events=e.events.map((function(e){return e})):t.events=[],void 0!==e.pagination&&(t.pagination=e.pagination?l.PageRequest.toJSON(e.pagination):void 0),void 0!==e.orderBy&&(t.orderBy=g(e.orderBy)),t},fromPartial:function(e){var t=Object.assign({},x);if(t.events=[],void 0!==e.events&&null!==e.events){var n,r=i(e.events);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.events.push(a)}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageRequest.fromPartial(e.pagination):t.pagination=void 0,void 0!==e.orderBy&&null!==e.orderBy?t.orderBy=e.orderBy:t.orderBy=0,t}};var _={};t.GetTxsEventResponse={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create(),r=i(e.txs);try{for(r.s();!(t=r.n()).done;){var a=t.value;b.Tx.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var o,s=i(e.txResponses);try{for(s.s();!(o=s.n()).done;){var c=o.value;p.TxResponse.encode(c,n.uint32(18).fork()).ldelim()}}catch(e){s.e(e)}finally{s.f()}return void 0!==e.pagination&&l.PageResponse.encode(e.pagination,n.uint32(26).fork()).ldelim(),n},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);for(a.txs=[],a.txResponses=[];n.pos>>3){case 1:a.txs.push(b.Tx.decode(n,n.uint32()));break;case 2:a.txResponses.push(p.TxResponse.decode(n,n.uint32()));break;case 3:a.pagination=l.PageResponse.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},_);if(t.txs=[],t.txResponses=[],void 0!==e.txs&&null!==e.txs){var n,r=i(e.txs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.txs.push(b.Tx.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}if(void 0!==e.txResponses&&null!==e.txResponses){var o,s=i(e.txResponses);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.txResponses.push(p.TxResponse.fromJSON(c))}}catch(e){s.e(e)}finally{s.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageResponse.fromJSON(e.pagination):t.pagination=void 0,t},toJSON:function(e){var t={};return e.txs?t.txs=e.txs.map((function(e){return e?b.Tx.toJSON(e):void 0})):t.txs=[],e.txResponses?t.txResponses=e.txResponses.map((function(e){return e?p.TxResponse.toJSON(e):void 0})):t.txResponses=[],void 0!==e.pagination&&(t.pagination=e.pagination?l.PageResponse.toJSON(e.pagination):void 0),t},fromPartial:function(e){var t=Object.assign({},_);if(t.txs=[],t.txResponses=[],void 0!==e.txs&&null!==e.txs){var n,r=i(e.txs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.txs.push(b.Tx.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}if(void 0!==e.txResponses&&null!==e.txResponses){var o,s=i(e.txResponses);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.txResponses.push(p.TxResponse.fromPartial(c))}}catch(e){s.e(e)}finally{s.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageResponse.fromPartial(e.pagination):t.pagination=void 0,t}};var k={mode:0};t.BroadcastTxRequest={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return 0!==e.txBytes.length&&t.uint32(10).bytes(e.txBytes),0!==e.mode&&t.uint32(16).int32(e.mode),t},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);for(a.txBytes=new Uint8Array;n.pos>>3){case 1:a.txBytes=n.bytes();break;case 2:a.mode=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},k);return t.txBytes=new Uint8Array,void 0!==e.txBytes&&null!==e.txBytes&&(t.txBytes=D(e.txBytes)),void 0!==e.mode&&null!==e.mode?t.mode=A(e.mode):t.mode=0,t},toJSON:function(e){var t={};return void 0!==e.txBytes&&(t.txBytes=U(void 0!==e.txBytes?e.txBytes:new Uint8Array)),void 0!==e.mode&&(t.mode=w(e.mode)),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.txBytes&&null!==e.txBytes?t.txBytes=e.txBytes:t.txBytes=new Uint8Array,void 0!==e.mode&&null!==e.mode?t.mode=e.mode:t.mode=0,t}};var S={};t.BroadcastTxResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return void 0!==e.txResponse&&p.TxResponse.encode(e.txResponse,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},S);n.pos>>3==1?a.txResponse=p.TxResponse.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},S);return void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=p.TxResponse.fromJSON(e.txResponse):t.txResponse=void 0,t},toJSON:function(e){var t={};return void 0!==e.txResponse&&(t.txResponse=e.txResponse?p.TxResponse.toJSON(e.txResponse):void 0),t},fromPartial:function(e){var t=Object.assign({},S);return void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=p.TxResponse.fromPartial(e.txResponse):t.txResponse=void 0,t}};var I={};t.SimulateRequest={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return void 0!==e.tx&&b.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),0!==e.txBytes.length&&t.uint32(18).bytes(e.txBytes),t},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},I);for(a.txBytes=new Uint8Array;n.pos>>3){case 1:a.tx=b.Tx.decode(n,n.uint32());break;case 2:a.txBytes=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},I);return t.txBytes=new Uint8Array,void 0!==e.tx&&null!==e.tx?t.tx=b.Tx.fromJSON(e.tx):t.tx=void 0,void 0!==e.txBytes&&null!==e.txBytes&&(t.txBytes=D(e.txBytes)),t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=e.tx?b.Tx.toJSON(e.tx):void 0),void 0!==e.txBytes&&(t.txBytes=U(void 0!==e.txBytes?e.txBytes:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},I);return void 0!==e.tx&&null!==e.tx?t.tx=b.Tx.fromPartial(e.tx):t.tx=void 0,void 0!==e.txBytes&&null!==e.txBytes?t.txBytes=e.txBytes:t.txBytes=new Uint8Array,t}};var E={};t.SimulateResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return void 0!==e.gasInfo&&p.GasInfo.encode(e.gasInfo,t.uint32(10).fork()).ldelim(),void 0!==e.result&&p.Result.encode(e.result,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},E);n.pos>>3){case 1:a.gasInfo=p.GasInfo.decode(n,n.uint32());break;case 2:a.result=p.Result.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},E);return void 0!==e.gasInfo&&null!==e.gasInfo?t.gasInfo=p.GasInfo.fromJSON(e.gasInfo):t.gasInfo=void 0,void 0!==e.result&&null!==e.result?t.result=p.Result.fromJSON(e.result):t.result=void 0,t},toJSON:function(e){var t={};return void 0!==e.gasInfo&&(t.gasInfo=e.gasInfo?p.GasInfo.toJSON(e.gasInfo):void 0),void 0!==e.result&&(t.result=e.result?p.Result.toJSON(e.result):void 0),t},fromPartial:function(e){var t=Object.assign({},E);return void 0!==e.gasInfo&&null!==e.gasInfo?t.gasInfo=p.GasInfo.fromPartial(e.gasInfo):t.gasInfo=void 0,void 0!==e.result&&null!==e.result?t.result=p.Result.fromPartial(e.result):t.result=void 0,t}};var C={hash:""};t.GetTxRequest={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return""!==e.hash&&t.uint32(10).string(e.hash),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},C);n.pos>>3==1?a.hash=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},C);return void 0!==e.hash&&null!==e.hash?t.hash=String(e.hash):t.hash="",t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=e.hash),t},fromPartial:function(e){var t=Object.assign({},C);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash="",t}};var T={};t.GetTxResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return void 0!==e.tx&&b.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),void 0!==e.txResponse&&p.TxResponse.encode(e.txResponse,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},T);n.pos>>3){case 1:a.tx=b.Tx.decode(n,n.uint32());break;case 2:a.txResponse=p.TxResponse.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},T);return void 0!==e.tx&&null!==e.tx?t.tx=b.Tx.fromJSON(e.tx):t.tx=void 0,void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=p.TxResponse.fromJSON(e.txResponse):t.txResponse=void 0,t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=e.tx?b.Tx.toJSON(e.tx):void 0),void 0!==e.txResponse&&(t.txResponse=e.txResponse?p.TxResponse.toJSON(e.txResponse):void 0),t},fromPartial:function(e){var t=Object.assign({},T);return void 0!==e.tx&&null!==e.tx?t.tx=b.Tx.fromPartial(e.tx):t.tx=void 0,void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=p.TxResponse.fromPartial(e.txResponse):t.txResponse=void 0,t}};var O={height:u.default.ZERO};t.GetBlockWithTxsRequest={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return e.height.isZero()||t.uint32(8).int64(e.height),void 0!==e.pagination&&l.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},O);n.pos>>3){case 1:a.height=n.int64();break;case 2:a.pagination=l.PageRequest.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},O);return void 0!==e.height&&null!==e.height?t.height=u.default.fromString(e.height):t.height=u.default.ZERO,void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageRequest.fromJSON(e.pagination):t.pagination=void 0,t},toJSON:function(e){var t={};return void 0!==e.height&&(t.height=(e.height||u.default.ZERO).toString()),void 0!==e.pagination&&(t.pagination=e.pagination?l.PageRequest.toJSON(e.pagination):void 0),t},fromPartial:function(e){var t=Object.assign({},O);return void 0!==e.height&&null!==e.height?t.height=e.height:t.height=u.default.ZERO,void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageRequest.fromPartial(e.pagination):t.pagination=void 0,t}};var P={};t.GetBlockWithTxsResponse={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create(),r=i(e.txs);try{for(r.s();!(t=r.n()).done;){var a=t.value;b.Tx.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return void 0!==e.blockId&&h.BlockID.encode(e.blockId,n.uint32(18).fork()).ldelim(),void 0!==e.block&&y.Block.encode(e.block,n.uint32(26).fork()).ldelim(),void 0!==e.pagination&&l.PageResponse.encode(e.pagination,n.uint32(34).fork()).ldelim(),n},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},P);for(a.txs=[];n.pos>>3){case 1:a.txs.push(b.Tx.decode(n,n.uint32()));break;case 2:a.blockId=h.BlockID.decode(n,n.uint32());break;case 3:a.block=y.Block.decode(n,n.uint32());break;case 4:a.pagination=l.PageResponse.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},P);if(t.txs=[],void 0!==e.txs&&null!==e.txs){var n,r=i(e.txs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.txs.push(b.Tx.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.blockId&&null!==e.blockId?t.blockId=h.BlockID.fromJSON(e.blockId):t.blockId=void 0,void 0!==e.block&&null!==e.block?t.block=y.Block.fromJSON(e.block):t.block=void 0,void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageResponse.fromJSON(e.pagination):t.pagination=void 0,t},toJSON:function(e){var t={};return e.txs?t.txs=e.txs.map((function(e){return e?b.Tx.toJSON(e):void 0})):t.txs=[],void 0!==e.blockId&&(t.blockId=e.blockId?h.BlockID.toJSON(e.blockId):void 0),void 0!==e.block&&(t.block=e.block?y.Block.toJSON(e.block):void 0),void 0!==e.pagination&&(t.pagination=e.pagination?l.PageResponse.toJSON(e.pagination):void 0),t},fromPartial:function(e){var t=Object.assign({},P);if(t.txs=[],void 0!==e.txs&&null!==e.txs){var n,r=i(e.txs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.txs.push(b.Tx.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.blockId&&null!==e.blockId?t.blockId=h.BlockID.fromPartial(e.blockId):t.blockId=void 0,void 0!==e.block&&null!==e.block?t.block=y.Block.fromPartial(e.block):t.block=void 0,void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageResponse.fromPartial(e.pagination):t.pagination=void 0,t}};var M=function(){function e(t){r(this,e),this.rpc=t,this.Simulate=this.Simulate.bind(this),this.GetTx=this.GetTx.bind(this),this.BroadcastTx=this.BroadcastTx.bind(this),this.GetTxsEvent=this.GetTxsEvent.bind(this),this.GetBlockWithTxs=this.GetBlockWithTxs.bind(this)}return a(e,[{key:"Simulate",value:function(e,n){return this.rpc.unary(t.ServiceSimulateDesc,t.SimulateRequest.fromPartial(e),n)}},{key:"GetTx",value:function(e,n){return this.rpc.unary(t.ServiceGetTxDesc,t.GetTxRequest.fromPartial(e),n)}},{key:"BroadcastTx",value:function(e,n){return this.rpc.unary(t.ServiceBroadcastTxDesc,t.BroadcastTxRequest.fromPartial(e),n)}},{key:"GetTxsEvent",value:function(e,n){return this.rpc.unary(t.ServiceGetTxsEventDesc,t.GetTxsEventRequest.fromPartial(e),n)}},{key:"GetBlockWithTxs",value:function(e,n){return this.rpc.unary(t.ServiceGetBlockWithTxsDesc,t.GetBlockWithTxsRequest.fromPartial(e),n)}}]),e}();t.ServiceClientImpl=M,t.ServiceDesc={serviceName:"cosmos.tx.v1beta1.Service"},t.ServiceSimulateDesc={methodName:"Simulate",service:t.ServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.SimulateRequest.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.SimulateResponse.decode(e)),{toObject:function(){return this}})}}},t.ServiceGetTxDesc={methodName:"GetTx",service:t.ServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.GetTxRequest.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.GetTxResponse.decode(e)),{toObject:function(){return this}})}}},t.ServiceBroadcastTxDesc={methodName:"BroadcastTx",service:t.ServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.BroadcastTxRequest.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.BroadcastTxResponse.decode(e)),{toObject:function(){return this}})}}},t.ServiceGetTxsEventDesc={methodName:"GetTxsEvent",service:t.ServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.GetTxsEventRequest.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.GetTxsEventResponse.decode(e)),{toObject:function(){return this}})}}},t.ServiceGetBlockWithTxsDesc={methodName:"GetBlockWithTxs",service:t.ServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.GetBlockWithTxsRequest.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.GetBlockWithTxsResponse.decode(e)),{toObject:function(){return this}})}}};var B=function(){function e(t,n){r(this,e),this.host=t,this.options=n}return a(e,[{key:"unary",value:function(e,t,n){var r,a=this,i=Object.assign(Object.assign({},t),e.requestType),o=n&&this.options.metadata?new m.BrowserHeaders(Object.assign(Object.assign({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise((function(t,n){f.grpc.unary(e,{request:i,host:a.host,metadata:o,transport:a.options.transport,debug:a.options.debug,onEnd:function(e){if(e.status===f.grpc.Code.OK)t(e.message);else{var r=new Error(e.statusMessage);r.code=e.status,r.metadata=e.trailers,n(r)}}})}))}}]),e}();t.GrpcWebImpl=B;var R=function(){if(void 0!==R)return R;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),N=R.atob||function(e){return R.Buffer.from(e,"base64").toString("binary")};function D(e){for(var t=N(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.body&&t.TxBody.encode(e.body,n.uint32(10).fork()).ldelim(),void 0!==e.authInfo&&t.AuthInfo.encode(e.authInfo,n.uint32(18).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.uint32(26).bytes(s)}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);for(i.signatures=[];r.pos>>3){case 1:i.body=t.TxBody.decode(r,r.uint32());break;case 2:i.authInfo=t.AuthInfo.decode(r,r.uint32());break;case 3:i.signatures.push(r.bytes());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},d);if(n.signatures=[],void 0!==e.body&&null!==e.body?n.body=t.TxBody.fromJSON(e.body):n.body=void 0,void 0!==e.authInfo&&null!==e.authInfo?n.authInfo=t.AuthInfo.fromJSON(e.authInfo):n.authInfo=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(_(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.body&&(n.body=e.body?t.TxBody.toJSON(e.body):void 0),void 0!==e.authInfo&&(n.authInfo=e.authInfo?t.AuthInfo.toJSON(e.authInfo):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return S(void 0!==e?e:new Uint8Array)})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},d);if(n.signatures=[],void 0!==e.body&&null!==e.body?n.body=t.TxBody.fromPartial(e.body):n.body=void 0,void 0!==e.authInfo&&null!==e.authInfo?n.authInfo=t.AuthInfo.fromPartial(e.authInfo):n.authInfo=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(o)}}catch(e){i.e(e)}finally{i.f()}}return n}};var l={};t.TxRaw={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes);var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(26).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.signatures=[],a.bodyBytes=new Uint8Array,a.authInfoBytes=new Uint8Array;n.pos>>3){case 1:a.bodyBytes=n.bytes();break;case 2:a.authInfoBytes=n.bytes();break;case 3:a.signatures.push(n.bytes());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.signatures=[],t.bodyBytes=new Uint8Array,t.authInfoBytes=new Uint8Array,void 0!==e.bodyBytes&&null!==e.bodyBytes&&(t.bodyBytes=_(e.bodyBytes)),void 0!==e.authInfoBytes&&null!==e.authInfoBytes&&(t.authInfoBytes=_(e.authInfoBytes)),void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(_(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.bodyBytes&&(t.bodyBytes=S(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=S(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),e.signatures?t.signatures=e.signatures.map((function(e){return S(void 0!==e?e:new Uint8Array)})):t.signatures=[],t},fromPartial:function(e){var t=Object.assign({},l);if(t.signatures=[],void 0!==e.bodyBytes&&null!==e.bodyBytes?t.bodyBytes=e.bodyBytes:t.bodyBytes=new Uint8Array,void 0!==e.authInfoBytes&&null!==e.authInfoBytes?t.authInfoBytes=e.authInfoBytes:t.authInfoBytes=new Uint8Array,void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var p={chainId:"",accountNumber:i.default.UZERO};t.SignDoc={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes),""!==e.chainId&&t.uint32(26).string(e.chainId),e.accountNumber.isZero()||t.uint32(32).uint64(e.accountNumber),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.bodyBytes=new Uint8Array,a.authInfoBytes=new Uint8Array;n.pos>>3){case 1:a.bodyBytes=n.bytes();break;case 2:a.authInfoBytes=n.bytes();break;case 3:a.chainId=n.string();break;case 4:a.accountNumber=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return t.bodyBytes=new Uint8Array,t.authInfoBytes=new Uint8Array,void 0!==e.bodyBytes&&null!==e.bodyBytes&&(t.bodyBytes=_(e.bodyBytes)),void 0!==e.authInfoBytes&&null!==e.authInfoBytes&&(t.authInfoBytes=_(e.authInfoBytes)),void 0!==e.chainId&&null!==e.chainId?t.chainId=String(e.chainId):t.chainId="",void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=i.default.fromString(e.accountNumber):t.accountNumber=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.bodyBytes&&(t.bodyBytes=S(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=S(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.bodyBytes&&null!==e.bodyBytes?t.bodyBytes=e.bodyBytes:t.bodyBytes=new Uint8Array,void 0!==e.authInfoBytes&&null!==e.authInfoBytes?t.authInfoBytes=e.authInfoBytes:t.authInfoBytes=new Uint8Array,void 0!==e.chainId&&null!==e.chainId?t.chainId=e.chainId:t.chainId="",void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=e.accountNumber:t.accountNumber=i.default.UZERO,t}};var b={memo:"",timeoutHeight:i.default.UZERO};t.TxBody={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.messages);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Any.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}""!==e.memo&&n.uint32(18).string(e.memo),e.timeoutHeight.isZero()||n.uint32(24).uint64(e.timeoutHeight);var c,u=r(e.extensionOptions);try{for(u.s();!(c=u.n()).done;){var f=c.value;s.Any.encode(f,n.uint32(8186).fork()).ldelim()}}catch(e){u.e(e)}finally{u.f()}var d,l=r(e.nonCriticalExtensionOptions);try{for(l.s();!(d=l.n()).done;){var p=d.value;s.Any.encode(p,n.uint32(16378).fork()).ldelim()}}catch(e){l.e(e)}finally{l.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.messages=[],a.extensionOptions=[],a.nonCriticalExtensionOptions=[];n.pos>>3){case 1:a.messages.push(s.Any.decode(n,n.uint32()));break;case 2:a.memo=n.string();break;case 3:a.timeoutHeight=n.uint64();break;case 1023:a.extensionOptions.push(s.Any.decode(n,n.uint32()));break;case 2047:a.nonCriticalExtensionOptions.push(s.Any.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);if(t.messages=[],t.extensionOptions=[],t.nonCriticalExtensionOptions=[],void 0!==e.messages&&null!==e.messages){var n,a=r(e.messages);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.messages.push(s.Any.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.memo&&null!==e.memo?t.memo=String(e.memo):t.memo="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=i.default.fromString(e.timeoutHeight):t.timeoutHeight=i.default.UZERO,void 0!==e.extensionOptions&&null!==e.extensionOptions){var c,u=r(e.extensionOptions);try{for(u.s();!(c=u.n()).done;){var f=c.value;t.extensionOptions.push(s.Any.fromJSON(f))}}catch(e){u.e(e)}finally{u.f()}}if(void 0!==e.nonCriticalExtensionOptions&&null!==e.nonCriticalExtensionOptions){var d,l=r(e.nonCriticalExtensionOptions);try{for(l.s();!(d=l.n()).done;){var p=d.value;t.nonCriticalExtensionOptions.push(s.Any.fromJSON(p))}}catch(e){l.e(e)}finally{l.f()}}return t},toJSON:function(e){var t={};return e.messages?t.messages=e.messages.map((function(e){return e?s.Any.toJSON(e):void 0})):t.messages=[],void 0!==e.memo&&(t.memo=e.memo),void 0!==e.timeoutHeight&&(t.timeoutHeight=(e.timeoutHeight||i.default.UZERO).toString()),e.extensionOptions?t.extensionOptions=e.extensionOptions.map((function(e){return e?s.Any.toJSON(e):void 0})):t.extensionOptions=[],e.nonCriticalExtensionOptions?t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map((function(e){return e?s.Any.toJSON(e):void 0})):t.nonCriticalExtensionOptions=[],t},fromPartial:function(e){var t=Object.assign({},b);if(t.messages=[],t.extensionOptions=[],t.nonCriticalExtensionOptions=[],void 0!==e.messages&&null!==e.messages){var n,a=r(e.messages);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.messages.push(s.Any.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.memo&&null!==e.memo?t.memo=e.memo:t.memo="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=e.timeoutHeight:t.timeoutHeight=i.default.UZERO,void 0!==e.extensionOptions&&null!==e.extensionOptions){var c,u=r(e.extensionOptions);try{for(u.s();!(c=u.n()).done;){var f=c.value;t.extensionOptions.push(s.Any.fromPartial(f))}}catch(e){u.e(e)}finally{u.f()}}if(void 0!==e.nonCriticalExtensionOptions&&null!==e.nonCriticalExtensionOptions){var d,l=r(e.nonCriticalExtensionOptions);try{for(l.s();!(d=l.n()).done;){var p=d.value;t.nonCriticalExtensionOptions.push(s.Any.fromPartial(p))}}catch(e){l.e(e)}finally{l.f()}}return t}};var h={};t.AuthInfo={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.signerInfos);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.SignerInfo.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return void 0!==e.fee&&t.Fee.encode(e.fee,a.uint32(18).fork()).ldelim(),a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},h);for(i.signerInfos=[];r.pos>>3){case 1:i.signerInfos.push(t.SignerInfo.decode(r,r.uint32()));break;case 2:i.fee=t.Fee.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},h);if(n.signerInfos=[],void 0!==e.signerInfos&&null!==e.signerInfos){var a,i=r(e.signerInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signerInfos.push(t.SignerInfo.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.fee&&null!==e.fee?n.fee=t.Fee.fromJSON(e.fee):n.fee=void 0,n},toJSON:function(e){var n={};return e.signerInfos?n.signerInfos=e.signerInfos.map((function(e){return e?t.SignerInfo.toJSON(e):void 0})):n.signerInfos=[],void 0!==e.fee&&(n.fee=e.fee?t.Fee.toJSON(e.fee):void 0),n},fromPartial:function(e){var n=Object.assign({},h);if(n.signerInfos=[],void 0!==e.signerInfos&&null!==e.signerInfos){var a,i=r(e.signerInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signerInfos.push(t.SignerInfo.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.fee&&null!==e.fee?n.fee=t.Fee.fromPartial(e.fee):n.fee=void 0,n}};var y={sequence:i.default.UZERO};t.SignerInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.publicKey&&s.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),void 0!==e.modeInfo&&t.ModeInfo.encode(e.modeInfo,n.uint32(18).fork()).ldelim(),e.sequence.isZero()||n.uint32(24).uint64(e.sequence),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},y);r.pos>>3){case 1:i.publicKey=s.Any.decode(r,r.uint32());break;case 2:i.modeInfo=t.ModeInfo.decode(r,r.uint32());break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},y);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=s.Any.fromJSON(e.publicKey):n.publicKey=void 0,void 0!==e.modeInfo&&null!==e.modeInfo?n.modeInfo=t.ModeInfo.fromJSON(e.modeInfo):n.modeInfo=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=i.default.fromString(e.sequence):n.sequence=i.default.UZERO,n},toJSON:function(e){var n={};return void 0!==e.publicKey&&(n.publicKey=e.publicKey?s.Any.toJSON(e.publicKey):void 0),void 0!==e.modeInfo&&(n.modeInfo=e.modeInfo?t.ModeInfo.toJSON(e.modeInfo):void 0),void 0!==e.sequence&&(n.sequence=(e.sequence||i.default.UZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},y);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=s.Any.fromPartial(e.publicKey):n.publicKey=void 0,void 0!==e.modeInfo&&null!==e.modeInfo?n.modeInfo=t.ModeInfo.fromPartial(e.modeInfo):n.modeInfo=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=e.sequence:n.sequence=i.default.UZERO,n}};var m={};t.ModeInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.single&&t.ModeInfo_Single.encode(e.single,n.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.ModeInfo_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},m);r.pos>>3){case 1:i.single=t.ModeInfo_Single.decode(r,r.uint32());break;case 2:i.multi=t.ModeInfo_Multi.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},m);return void 0!==e.single&&null!==e.single?n.single=t.ModeInfo_Single.fromJSON(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.ModeInfo_Multi.fromJSON(e.multi):n.multi=void 0,n},toJSON:function(e){var n={};return void 0!==e.single&&(n.single=e.single?t.ModeInfo_Single.toJSON(e.single):void 0),void 0!==e.multi&&(n.multi=e.multi?t.ModeInfo_Multi.toJSON(e.multi):void 0),n},fromPartial:function(e){var n=Object.assign({},m);return void 0!==e.single&&null!==e.single?n.single=t.ModeInfo_Single.fromPartial(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.ModeInfo_Multi.fromPartial(e.multi):n.multi=void 0,n}};var v={mode:0};t.ModeInfo_Single={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.mode&&t.uint32(8).int32(e.mode),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3==1?a.mode=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.mode&&null!==e.mode?t.mode=c.signModeFromJSON(e.mode):t.mode=0,t},toJSON:function(e){var t={};return void 0!==e.mode&&(t.mode=c.signModeToJSON(e.mode)),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.mode&&null!==e.mode?t.mode=e.mode:t.mode=0,t}};var g={};t.ModeInfo_Multi={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.bitarray&&u.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();var a,i=r(e.modeInfos);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.ModeInfo.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},g);for(i.modeInfos=[];r.pos>>3){case 1:i.bitarray=u.CompactBitArray.decode(r,r.uint32());break;case 2:i.modeInfos.push(t.ModeInfo.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},g);if(n.modeInfos=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromJSON(e.bitarray):n.bitarray=void 0,void 0!==e.modeInfos&&null!==e.modeInfos){var a,i=r(e.modeInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.modeInfos.push(t.ModeInfo.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.bitarray&&(n.bitarray=e.bitarray?u.CompactBitArray.toJSON(e.bitarray):void 0),e.modeInfos?n.modeInfos=e.modeInfos.map((function(e){return e?t.ModeInfo.toJSON(e):void 0})):n.modeInfos=[],n},fromPartial:function(e){var n=Object.assign({},g);if(n.modeInfos=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromPartial(e.bitarray):n.bitarray=void 0,void 0!==e.modeInfos&&null!==e.modeInfos){var a,i=r(e.modeInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.modeInfos.push(t.ModeInfo.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var A={gasLimit:i.default.UZERO,payer:"",granter:""};t.Fee={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.amount);try{for(a.s();!(t=a.n()).done;){var i=t.value;f.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return e.gasLimit.isZero()||n.uint32(16).uint64(e.gasLimit),""!==e.payer&&n.uint32(26).string(e.payer),""!==e.granter&&n.uint32(34).string(e.granter),n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.amount=[];n.pos>>3){case 1:a.amount.push(f.Coin.decode(n,n.uint32()));break;case 2:a.gasLimit=n.uint64();break;case 3:a.payer=n.string();break;case 4:a.granter=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(f.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.gasLimit&&null!==e.gasLimit?t.gasLimit=i.default.fromString(e.gasLimit):t.gasLimit=i.default.UZERO,void 0!==e.payer&&null!==e.payer?t.payer=String(e.payer):t.payer="",void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",t},toJSON:function(e){var t={};return e.amount?t.amount=e.amount.map((function(e){return e?f.Coin.toJSON(e):void 0})):t.amount=[],void 0!==e.gasLimit&&(t.gasLimit=(e.gasLimit||i.default.UZERO).toString()),void 0!==e.payer&&(t.payer=e.payer),void 0!==e.granter&&(t.granter=e.granter),t},fromPartial:function(e){var t=Object.assign({},A);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(f.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.gasLimit&&null!==e.gasLimit?t.gasLimit=e.gasLimit:t.gasLimit=i.default.UZERO,void 0!==e.payer&&null!==e.payer?t.payer=e.payer:t.payer="",void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",t}};var w=function(){if(void 0!==w)return w;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),x=w.atob||function(e){return w.Buffer.from(e,"base64").toString("binary")};function _(e){for(var t=x(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.name&&u.uint32(10).string(e.name),void 0!==e.time&&s.Timestamp.encode((t=e.time,c=t.getTime()/1e3,n=a.default.fromNumber(c),r=t.getTime()%1e3*1e6,{seconds:n,nanos:r}),u.uint32(18).fork()).ldelim(),e.height.isZero()||u.uint32(24).int64(e.height),""!==e.info&&u.uint32(34).string(e.info),void 0!==e.upgradedClientState&&o.Any.encode(e.upgradedClientState,u.uint32(42).fork()).ldelim(),u},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.name=n.string();break;case 2:a.time=l(s.Timestamp.decode(n,n.uint32()));break;case 3:a.height=n.int64();break;case 4:a.info=n.string();break;case 5:a.upgradedClientState=o.Any.decode(n,n.uint32());break;default:n.skipType(7&u)}}return a},fromJSON:function(e){var t,n=Object.assign({},c);return void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.time&&null!==e.time?n.time=(t=e.time)instanceof Date?t:"string"==typeof t?new Date(t):l(s.Timestamp.fromJSON(t)):n.time=void 0,void 0!==e.height&&null!==e.height?n.height=a.default.fromString(e.height):n.height=a.default.ZERO,void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.upgradedClientState&&null!==e.upgradedClientState?n.upgradedClientState=o.Any.fromJSON(e.upgradedClientState):n.upgradedClientState=void 0,n},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.time&&(t.time=e.time.toISOString()),void 0!==e.height&&(t.height=(e.height||a.default.ZERO).toString()),void 0!==e.info&&(t.info=e.info),void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?o.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.time&&null!==e.time?t.time=e.time:t.time=void 0,void 0!==e.height&&null!==e.height?t.height=e.height:t.height=a.default.ZERO,void 0!==e.info&&null!==e.info?t.info=e.info:t.info="",void 0!==e.upgradedClientState&&null!==e.upgradedClientState?t.upgradedClientState=o.Any.fromPartial(e.upgradedClientState):t.upgradedClientState=void 0,t}};var u={title:"",description:""};t.SoftwareUpgradeProposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.title&&n.uint32(10).string(e.title),""!==e.description&&n.uint32(18).string(e.description),void 0!==e.plan&&t.Plan.encode(e.plan,n.uint32(26).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof i.default.Reader?e:new i.default.Reader(e),a=void 0===n?r.len:r.pos+n,o=Object.assign({},u);r.pos>>3){case 1:o.title=r.string();break;case 2:o.description=r.string();break;case 3:o.plan=t.Plan.decode(r,r.uint32());break;default:r.skipType(7&s)}}return o},fromJSON:function(e){var n=Object.assign({},u);return void 0!==e.title&&null!==e.title?n.title=String(e.title):n.title="",void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.plan&&null!==e.plan?n.plan=t.Plan.fromJSON(e.plan):n.plan=void 0,n},toJSON:function(e){var n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.description&&(n.description=e.description),void 0!==e.plan&&(n.plan=e.plan?t.Plan.toJSON(e.plan):void 0),n},fromPartial:function(e){var n=Object.assign({},u);return void 0!==e.title&&null!==e.title?n.title=e.title:n.title="",void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.plan&&null!==e.plan?n.plan=t.Plan.fromPartial(e.plan):n.plan=void 0,n}};var f={title:"",description:""};t.CancelSoftwareUpgradeProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",t}};var d={name:"",version:a.default.UZERO};function l(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}t.ModuleVersion={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.name&&t.uint32(10).string(e.name),e.version.isZero()||t.uint32(16).uint64(e.version),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.name=n.string();break;case 2:a.version=n.uint64();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.version&&null!==e.version?t.version=a.default.fromString(e.version):t.version=a.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.version&&(t.version=(e.version||a.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.version&&null!==e.version?t.version=e.version:t.version=a.default.UZERO,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},71967:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(21146).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgDonateAllVestingTokensDesc=t.MsgCreatePeriodicVestingAccountDesc=t.MsgCreateVestingAccountDesc=t.MsgDesc=t.MsgClientImpl=t.MsgDonateAllVestingTokensResponse=t.MsgDonateAllVestingTokens=t.MsgCreatePeriodicVestingAccountResponse=t.MsgCreatePeriodicVestingAccount=t.MsgCreateVestingAccountResponse=t.MsgCreateVestingAccount=t.protobufPackage=void 0;var s=o(n(12620)),c=n(94680),u=o(n(50904)),f=n(84587),d=n(790),l=n(25101);t.protobufPackage="cosmos.vesting.v1beta1";var p={fromAddress:"",toAddress:"",endTime:s.default.ZERO,delayed:!1};t.MsgCreateVestingAccount={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress);var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;d.Coin.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return e.endTime.isZero()||t.uint32(32).int64(e.endTime),!0===e.delayed&&t.uint32(40).bool(e.delayed),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.amount=[];n.pos>>3){case 1:a.fromAddress=n.string();break;case 2:a.toAddress=n.string();break;case 3:a.amount.push(d.Coin.decode(n,n.uint32()));break;case 4:a.endTime=n.int64();break;case 5:a.delayed=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);if(t.amount=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=String(e.toAddress):t.toAddress="",void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(d.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=s.default.fromString(e.endTime):t.endTime=s.default.ZERO,void 0!==e.delayed&&null!==e.delayed?t.delayed=Boolean(e.delayed):t.delayed=!1,t},toJSON:function(e){var t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map((function(e){return e?d.Coin.toJSON(e):void 0})):t.amount=[],void 0!==e.endTime&&(t.endTime=(e.endTime||s.default.ZERO).toString()),void 0!==e.delayed&&(t.delayed=e.delayed),t},fromPartial:function(e){var t=Object.assign({},p);if(t.amount=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=e.toAddress:t.toAddress="",void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(d.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=e.endTime:t.endTime=s.default.ZERO,void 0!==e.delayed&&null!==e.delayed?t.delayed=e.delayed:t.delayed=!1,t}};var b={};t.MsgCreateVestingAccountResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress),e.startTime.isZero()||t.uint32(24).int64(e.startTime);var n,r=i(e.vestingPeriods);try{for(r.s();!(n=r.n()).done;){var a=n.value;l.Period.encode(a,t.uint32(34).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.vestingPeriods=[];n.pos>>3){case 1:a.fromAddress=n.string();break;case 2:a.toAddress=n.string();break;case 3:a.startTime=n.int64();break;case 4:a.vestingPeriods.push(l.Period.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);if(t.vestingPeriods=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=String(e.toAddress):t.toAddress="",void 0!==e.startTime&&null!==e.startTime?t.startTime=s.default.fromString(e.startTime):t.startTime=s.default.ZERO,void 0!==e.vestingPeriods&&null!==e.vestingPeriods){var n,r=i(e.vestingPeriods);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.vestingPeriods.push(l.Period.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),void 0!==e.startTime&&(t.startTime=(e.startTime||s.default.ZERO).toString()),e.vestingPeriods?t.vestingPeriods=e.vestingPeriods.map((function(e){return e?l.Period.toJSON(e):void 0})):t.vestingPeriods=[],t},fromPartial:function(e){var t=Object.assign({},h);if(t.vestingPeriods=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=e.toAddress:t.toAddress="",void 0!==e.startTime&&null!==e.startTime?t.startTime=e.startTime:t.startTime=s.default.ZERO,void 0!==e.vestingPeriods&&null!==e.vestingPeriods){var n,r=i(e.vestingPeriods);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.vestingPeriods.push(l.Period.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var y={};t.MsgCreatePeriodicVestingAccountResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3==1?a.fromAddress=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",t},toJSON:function(e){var t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",t}};var v={};t.MsgDonateAllVestingTokensResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseAccount&&s.BaseAccount.encode(e.baseAccount,t.uint32(10).fork()).ldelim();var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}var u,f=r(e.delegatedFree);try{for(f.s();!(u=f.n()).done;){var d=u.value;c.Coin.encode(d,t.uint32(26).fork()).ldelim()}}catch(e){f.e(e)}finally{f.f()}var l,p=r(e.delegatedVesting);try{for(p.s();!(l=p.n()).done;){var b=l.value;c.Coin.encode(b,t.uint32(34).fork()).ldelim()}}catch(e){p.e(e)}finally{p.f()}return e.endTime.isZero()||t.uint32(40).int64(e.endTime),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.originalVesting=[],a.delegatedFree=[],a.delegatedVesting=[];n.pos>>3){case 1:a.baseAccount=s.BaseAccount.decode(n,n.uint32());break;case 2:a.originalVesting.push(c.Coin.decode(n,n.uint32()));break;case 3:a.delegatedFree.push(c.Coin.decode(n,n.uint32()));break;case 4:a.delegatedVesting.push(c.Coin.decode(n,n.uint32()));break;case 5:a.endTime=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);if(t.originalVesting=[],t.delegatedFree=[],t.delegatedVesting=[],void 0!==e.baseAccount&&null!==e.baseAccount?t.baseAccount=s.BaseAccount.fromJSON(e.baseAccount):t.baseAccount=void 0,void 0!==e.originalVesting&&null!==e.originalVesting){var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.originalVesting.push(c.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.delegatedFree&&null!==e.delegatedFree){var f,d=r(e.delegatedFree);try{for(d.s();!(f=d.n()).done;){var l=f.value;t.delegatedFree.push(c.Coin.fromJSON(l))}}catch(e){d.e(e)}finally{d.f()}}if(void 0!==e.delegatedVesting&&null!==e.delegatedVesting){var p,b=r(e.delegatedVesting);try{for(b.s();!(p=b.n()).done;){var h=p.value;t.delegatedVesting.push(c.Coin.fromJSON(h))}}catch(e){b.e(e)}finally{b.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=i.default.fromString(e.endTime):t.endTime=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.baseAccount&&(t.baseAccount=e.baseAccount?s.BaseAccount.toJSON(e.baseAccount):void 0),e.originalVesting?t.originalVesting=e.originalVesting.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.originalVesting=[],e.delegatedFree?t.delegatedFree=e.delegatedFree.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.delegatedFree=[],e.delegatedVesting?t.delegatedVesting=e.delegatedVesting.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.delegatedVesting=[],void 0!==e.endTime&&(t.endTime=(e.endTime||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},u);if(t.originalVesting=[],t.delegatedFree=[],t.delegatedVesting=[],void 0!==e.baseAccount&&null!==e.baseAccount?t.baseAccount=s.BaseAccount.fromPartial(e.baseAccount):t.baseAccount=void 0,void 0!==e.originalVesting&&null!==e.originalVesting){var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.originalVesting.push(c.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.delegatedFree&&null!==e.delegatedFree){var f,d=r(e.delegatedFree);try{for(d.s();!(f=d.n()).done;){var l=f.value;t.delegatedFree.push(c.Coin.fromPartial(l))}}catch(e){d.e(e)}finally{d.f()}}if(void 0!==e.delegatedVesting&&null!==e.delegatedVesting){var p,b=r(e.delegatedVesting);try{for(b.s();!(p=b.n()).done;){var h=p.value;t.delegatedVesting.push(c.Coin.fromPartial(h))}}catch(e){b.e(e)}finally{b.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=e.endTime:t.endTime=i.default.ZERO,t}};var f={startTime:i.default.ZERO};t.ContinuousVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),e.startTime.isZero()||n.uint32(16).int64(e.startTime),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);r.pos>>3){case 1:i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32());break;case 2:i.startTime=r.int64();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},f);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=i.default.fromString(e.startTime):n.startTime=i.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),void 0!==e.startTime&&(n.startTime=(e.startTime||i.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},f);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=e.startTime:n.startTime=i.default.ZERO,n}};var d={};t.DelayedVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);r.pos>>3==1?i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32()):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},d);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),n},fromPartial:function(e){var n=Object.assign({},d);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,n}};var l={length:i.default.ZERO};t.Period={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.length.isZero()||t.uint32(8).int64(e.length);var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.amount=[];n.pos>>3){case 1:a.length=n.int64();break;case 2:a.amount.push(c.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.amount=[],void 0!==e.length&&null!==e.length?t.length=i.default.fromString(e.length):t.length=i.default.ZERO,void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(c.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.length&&(t.length=(e.length||i.default.ZERO).toString()),e.amount?t.amount=e.amount.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t=Object.assign({},l);if(t.amount=[],void 0!==e.length&&null!==e.length?t.length=e.length:t.length=i.default.ZERO,void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(c.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return t}};var p={startTime:i.default.ZERO};t.PeriodicVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),e.startTime.isZero()||n.uint32(16).int64(e.startTime);var a,i=r(e.vestingPeriods);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Period.encode(s,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);for(i.vestingPeriods=[];r.pos>>3){case 1:i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32());break;case 2:i.startTime=r.int64();break;case 3:i.vestingPeriods.push(t.Period.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},p);if(n.vestingPeriods=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=i.default.fromString(e.startTime):n.startTime=i.default.ZERO,void 0!==e.vestingPeriods&&null!==e.vestingPeriods){var a,o=r(e.vestingPeriods);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.vestingPeriods.push(t.Period.fromJSON(s))}}catch(e){o.e(e)}finally{o.f()}}return n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),void 0!==e.startTime&&(n.startTime=(e.startTime||i.default.ZERO).toString()),e.vestingPeriods?n.vestingPeriods=e.vestingPeriods.map((function(e){return e?t.Period.toJSON(e):void 0})):n.vestingPeriods=[],n},fromPartial:function(e){var n=Object.assign({},p);if(n.vestingPeriods=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=e.startTime:n.startTime=i.default.ZERO,void 0!==e.vestingPeriods&&null!==e.vestingPeriods){var a,o=r(e.vestingPeriods);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.vestingPeriods.push(t.Period.fromPartial(s))}}catch(e){o.e(e)}finally{o.f()}}return n}};var b={};t.PermanentLockedAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);r.pos>>3==1?i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32()):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},b);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),n},fromPartial:function(e){var n=Object.assign({},b);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},15679:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateInstantiateConfigProposal=t.AccessConfigUpdate=t.UnpinCodesProposal=t.PinCodesProposal=t.ClearAdminProposal=t.UpdateAdminProposal=t.ExecuteContractProposal=t.SudoContractProposal=t.MigrateContractProposal=t.InstantiateContractProposal=t.StoreCodeProposal=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(50904)),s=n(10763),c=n(790);t.protobufPackage="cosmwasm.wasm.v1";var u={title:"",description:"",runAs:""};t.StoreCodeProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.runAs&&t.uint32(26).string(e.runAs),0!==e.wasmByteCode.length&&t.uint32(34).bytes(e.wasmByteCode),void 0!==e.instantiatePermission&&s.AccessConfig.encode(e.instantiatePermission,t.uint32(58).fork()).ldelim(),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.wasmByteCode=new Uint8Array;n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.runAs=n.string();break;case 4:a.wasmByteCode=n.bytes();break;case 7:a.instantiatePermission=s.AccessConfig.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return t.wasmByteCode=new Uint8Array,void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.runAs&&null!==e.runAs?t.runAs=String(e.runAs):t.runAs="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode&&(t.wasmByteCode=x(e.wasmByteCode)),void 0!==e.instantiatePermission&&null!==e.instantiatePermission?t.instantiatePermission=s.AccessConfig.fromJSON(e.instantiatePermission):t.instantiatePermission=void 0,t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.runAs&&(t.runAs=e.runAs),void 0!==e.wasmByteCode&&(t.wasmByteCode=k(void 0!==e.wasmByteCode?e.wasmByteCode:new Uint8Array)),void 0!==e.instantiatePermission&&(t.instantiatePermission=e.instantiatePermission?s.AccessConfig.toJSON(e.instantiatePermission):void 0),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.runAs&&null!==e.runAs?t.runAs=e.runAs:t.runAs="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode?t.wasmByteCode=e.wasmByteCode:t.wasmByteCode=new Uint8Array,void 0!==e.instantiatePermission&&null!==e.instantiatePermission?t.instantiatePermission=s.AccessConfig.fromPartial(e.instantiatePermission):t.instantiatePermission=void 0,t}};var f={title:"",description:"",runAs:"",admin:"",codeId:i.default.UZERO,label:""};t.InstantiateContractProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.runAs&&t.uint32(26).string(e.runAs),""!==e.admin&&t.uint32(34).string(e.admin),e.codeId.isZero()||t.uint32(40).uint64(e.codeId),""!==e.label&&t.uint32(50).string(e.label),0!==e.msg.length&&t.uint32(58).bytes(e.msg);var n,a=r(e.funds);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Coin.encode(i,t.uint32(66).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.funds=[],a.msg=new Uint8Array;n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.runAs=n.string();break;case 4:a.admin=n.string();break;case 5:a.codeId=n.uint64();break;case 6:a.label=n.string();break;case 7:a.msg=n.bytes();break;case 8:a.funds.push(c.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);if(t.funds=[],t.msg=new Uint8Array,void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.runAs&&null!==e.runAs?t.runAs=String(e.runAs):t.runAs="",void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=i.default.fromString(e.codeId):t.codeId=i.default.UZERO,void 0!==e.label&&null!==e.label?t.label=String(e.label):t.label="",void 0!==e.msg&&null!==e.msg&&(t.msg=x(e.msg)),void 0!==e.funds&&null!==e.funds){var n,a=r(e.funds);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.funds.push(c.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.runAs&&(t.runAs=e.runAs),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.codeId&&(t.codeId=(e.codeId||i.default.UZERO).toString()),void 0!==e.label&&(t.label=e.label),void 0!==e.msg&&(t.msg=k(void 0!==e.msg?e.msg:new Uint8Array)),e.funds?t.funds=e.funds.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.funds=[],t},fromPartial:function(e){var t=Object.assign({},f);if(t.funds=[],void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.runAs&&null!==e.runAs?t.runAs=e.runAs:t.runAs="",void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=i.default.UZERO,void 0!==e.label&&null!==e.label?t.label=e.label:t.label="",void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg=new Uint8Array,void 0!==e.funds&&null!==e.funds){var n,a=r(e.funds);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.funds.push(c.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return t}};var d={title:"",description:"",contract:"",codeId:i.default.UZERO};t.MigrateContractProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.contract&&t.uint32(34).string(e.contract),e.codeId.isZero()||t.uint32(40).uint64(e.codeId),0!==e.msg.length&&t.uint32(50).bytes(e.msg),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.msg=new Uint8Array;n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 4:a.contract=n.string();break;case 5:a.codeId=n.uint64();break;case 6:a.msg=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return t.msg=new Uint8Array,void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.codeId&&null!==e.codeId?t.codeId=i.default.fromString(e.codeId):t.codeId=i.default.UZERO,void 0!==e.msg&&null!==e.msg&&(t.msg=x(e.msg)),t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.codeId&&(t.codeId=(e.codeId||i.default.UZERO).toString()),void 0!==e.msg&&(t.msg=k(void 0!==e.msg?e.msg:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=i.default.UZERO,void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg=new Uint8Array,t}};var l={title:"",description:"",contract:""};t.SudoContractProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.contract&&t.uint32(26).string(e.contract),0!==e.msg.length&&t.uint32(34).bytes(e.msg),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.msg=new Uint8Array;n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.contract=n.string();break;case 4:a.msg=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return t.msg=new Uint8Array,void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.msg&&null!==e.msg&&(t.msg=x(e.msg)),t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.msg&&(t.msg=k(void 0!==e.msg?e.msg:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg=new Uint8Array,t}};var p={title:"",description:"",runAs:"",contract:""};t.ExecuteContractProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.runAs&&t.uint32(26).string(e.runAs),""!==e.contract&&t.uint32(34).string(e.contract),0!==e.msg.length&&t.uint32(42).bytes(e.msg);var n,a=r(e.funds);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Coin.encode(i,t.uint32(50).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.funds=[],a.msg=new Uint8Array;n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.runAs=n.string();break;case 4:a.contract=n.string();break;case 5:a.msg=n.bytes();break;case 6:a.funds.push(c.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);if(t.funds=[],t.msg=new Uint8Array,void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.runAs&&null!==e.runAs?t.runAs=String(e.runAs):t.runAs="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.msg&&null!==e.msg&&(t.msg=x(e.msg)),void 0!==e.funds&&null!==e.funds){var n,a=r(e.funds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.funds.push(c.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.runAs&&(t.runAs=e.runAs),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.msg&&(t.msg=k(void 0!==e.msg?e.msg:new Uint8Array)),e.funds?t.funds=e.funds.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.funds=[],t},fromPartial:function(e){var t=Object.assign({},p);if(t.funds=[],void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.runAs&&null!==e.runAs?t.runAs=e.runAs:t.runAs="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg=new Uint8Array,void 0!==e.funds&&null!==e.funds){var n,a=r(e.funds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.funds.push(c.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var b={title:"",description:"",newAdmin:"",contract:""};t.UpdateAdminProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.newAdmin&&t.uint32(26).string(e.newAdmin),""!==e.contract&&t.uint32(34).string(e.contract),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.newAdmin=n.string();break;case 4:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=String(e.newAdmin):t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.newAdmin&&(t.newAdmin=e.newAdmin),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=e.newAdmin:t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var h={title:"",description:"",contract:""};t.ClearAdminProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.contract&&t.uint32(26).string(e.contract),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},h);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var y={title:"",description:"",codeIds:i.default.UZERO};t.PinCodesProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t.uint32(26).fork();var n,a=r(e.codeIds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint64(i)}}catch(e){a.e(e)}finally{a.f()}return t.ldelim(),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.codeIds=[];n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:if(2==(7&i))for(var s=n.uint32()+n.pos;n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t.uint32(26).fork();var n,a=r(e.codeIds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint64(i)}}catch(e){a.e(e)}finally{a.f()}return t.ldelim(),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.codeIds=[];n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:if(2==(7&i))for(var s=n.uint32()+n.pos;n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.codeId.isZero()||t.uint32(8).uint64(e.codeId),void 0!==e.instantiatePermission&&s.AccessConfig.encode(e.instantiatePermission,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3){case 1:a.codeId=n.uint64();break;case 2:a.instantiatePermission=s.AccessConfig.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.codeId&&null!==e.codeId?t.codeId=i.default.fromString(e.codeId):t.codeId=i.default.UZERO,void 0!==e.instantiatePermission&&null!==e.instantiatePermission?t.instantiatePermission=s.AccessConfig.fromJSON(e.instantiatePermission):t.instantiatePermission=void 0,t},toJSON:function(e){var t={};return void 0!==e.codeId&&(t.codeId=(e.codeId||i.default.UZERO).toString()),void 0!==e.instantiatePermission&&(t.instantiatePermission=e.instantiatePermission?s.AccessConfig.toJSON(e.instantiatePermission):void 0),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=i.default.UZERO,void 0!==e.instantiatePermission&&null!==e.instantiatePermission?t.instantiatePermission=s.AccessConfig.fromPartial(e.instantiatePermission):t.instantiatePermission=void 0,t}};var g={title:"",description:""};t.UpdateInstantiateConfigProposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&n.uint32(10).string(e.title),""!==e.description&&n.uint32(18).string(e.description);var a,i=r(e.accessConfigUpdates);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.AccessConfigUpdate.encode(s,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},g);for(i.accessConfigUpdates=[];r.pos>>3){case 1:i.title=r.string();break;case 2:i.description=r.string();break;case 3:i.accessConfigUpdates.push(t.AccessConfigUpdate.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},g);if(n.accessConfigUpdates=[],void 0!==e.title&&null!==e.title?n.title=String(e.title):n.title="",void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.accessConfigUpdates&&null!==e.accessConfigUpdates){var a,i=r(e.accessConfigUpdates);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.accessConfigUpdates.push(t.AccessConfigUpdate.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.description&&(n.description=e.description),e.accessConfigUpdates?n.accessConfigUpdates=e.accessConfigUpdates.map((function(e){return e?t.AccessConfigUpdate.toJSON(e):void 0})):n.accessConfigUpdates=[],n},fromPartial:function(e){var n=Object.assign({},g);if(n.accessConfigUpdates=[],void 0!==e.title&&null!==e.title?n.title=e.title:n.title="",void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.accessConfigUpdates&&null!==e.accessConfigUpdates){var a,i=r(e.accessConfigUpdates);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.accessConfigUpdates.push(t.AccessConfigUpdate.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var A=function(){if(void 0!==A)return A;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),w=A.atob||function(e){return A.Buffer.from(e,"base64").toString("binary")};function x(e){for(var t=w(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),0!==e.wasmByteCode.length&&t.uint32(18).bytes(e.wasmByteCode),void 0!==e.instantiatePermission&&f.AccessConfig.encode(e.instantiatePermission,t.uint32(42).fork()).ldelim(),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.wasmByteCode=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.wasmByteCode=n.bytes();break;case 5:a.instantiatePermission=f.AccessConfig.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return t.wasmByteCode=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode&&(t.wasmByteCode=T(e.wasmByteCode)),void 0!==e.instantiatePermission&&null!==e.instantiatePermission?t.instantiatePermission=f.AccessConfig.fromJSON(e.instantiatePermission):t.instantiatePermission=void 0,t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.wasmByteCode&&(t.wasmByteCode=P(void 0!==e.wasmByteCode?e.wasmByteCode:new Uint8Array)),void 0!==e.instantiatePermission&&(t.instantiatePermission=e.instantiatePermission?f.AccessConfig.toJSON(e.instantiatePermission):void 0),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode?t.wasmByteCode=e.wasmByteCode:t.wasmByteCode=new Uint8Array,void 0!==e.instantiatePermission&&null!==e.instantiatePermission?t.instantiatePermission=f.AccessConfig.fromPartial(e.instantiatePermission):t.instantiatePermission=void 0,t}};var b={codeId:s.default.UZERO};t.MsgStoreCodeResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return e.codeId.isZero()||t.uint32(8).uint64(e.codeId),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3==1?a.codeId=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,t}};var h={sender:"",admin:"",codeId:s.default.UZERO,label:""};t.MsgInstantiateContract={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.sender&&t.uint32(10).string(e.sender),""!==e.admin&&t.uint32(18).string(e.admin),e.codeId.isZero()||t.uint32(24).uint64(e.codeId),""!==e.label&&t.uint32(34).string(e.label),0!==e.msg.length&&t.uint32(42).bytes(e.msg);var n,r=i(e.funds);try{for(r.s();!(n=r.n()).done;){var a=n.value;l.Coin.encode(a,t.uint32(50).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.funds=[],a.msg=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.admin=n.string();break;case 3:a.codeId=n.uint64();break;case 4:a.label=n.string();break;case 5:a.msg=n.bytes();break;case 6:a.funds.push(l.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);if(t.funds=[],t.msg=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,void 0!==e.label&&null!==e.label?t.label=String(e.label):t.label="",void 0!==e.msg&&null!==e.msg&&(t.msg=T(e.msg)),void 0!==e.funds&&null!==e.funds){var n,r=i(e.funds);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.funds.push(l.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.label&&(t.label=e.label),void 0!==e.msg&&(t.msg=P(void 0!==e.msg?e.msg:new Uint8Array)),e.funds?t.funds=e.funds.map((function(e){return e?l.Coin.toJSON(e):void 0})):t.funds=[],t},fromPartial:function(e){var t=Object.assign({},h);if(t.funds=[],void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,void 0!==e.label&&null!==e.label?t.label=e.label:t.label="",void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg=new Uint8Array,void 0!==e.funds&&null!==e.funds){var n,r=i(e.funds);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.funds.push(l.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var y={address:""};t.MsgInstantiateContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.address&&t.uint32(10).string(e.address),0!==e.data.length&&t.uint32(18).bytes(e.data),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.data=new Uint8Array;n.pos>>3){case 1:a.address=n.string();break;case 2:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return t.data=new Uint8Array,void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.data&&null!==e.data&&(t.data=T(e.data)),t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.data&&(t.data=P(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var m={sender:"",contract:""};t.MsgExecuteContract={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(18).string(e.contract),0!==e.msg.length&&t.uint32(26).bytes(e.msg);var n,r=i(e.funds);try{for(r.s();!(n=r.n()).done;){var a=n.value;l.Coin.encode(a,t.uint32(42).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.funds=[],a.msg=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.contract=n.string();break;case 3:a.msg=n.bytes();break;case 5:a.funds.push(l.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);if(t.funds=[],t.msg=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.msg&&null!==e.msg&&(t.msg=T(e.msg)),void 0!==e.funds&&null!==e.funds){var n,r=i(e.funds);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.funds.push(l.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.msg&&(t.msg=P(void 0!==e.msg?e.msg:new Uint8Array)),e.funds?t.funds=e.funds.map((function(e){return e?l.Coin.toJSON(e):void 0})):t.funds=[],t},fromPartial:function(e){var t=Object.assign({},m);if(t.funds=[],void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg=new Uint8Array,void 0!==e.funds&&null!==e.funds){var n,r=i(e.funds);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.funds.push(l.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var v={};t.MsgExecuteContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.data=new Uint8Array;n.pos>>3==1?a.data=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},v);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=T(e.data)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=P(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var g={sender:"",contract:"",codeId:s.default.UZERO};t.MsgMigrateContract={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(18).string(e.contract),e.codeId.isZero()||t.uint32(24).uint64(e.codeId),0!==e.msg.length&&t.uint32(34).bytes(e.msg),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);for(a.msg=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.contract=n.string();break;case 3:a.codeId=n.uint64();break;case 4:a.msg=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},g);return t.msg=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,void 0!==e.msg&&null!==e.msg&&(t.msg=T(e.msg)),t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.msg&&(t.msg=P(void 0!==e.msg?e.msg:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},g);return void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg=new Uint8Array,t}};var A={};t.MsgMigrateContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.data=new Uint8Array;n.pos>>3==1?a.data=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},A);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=T(e.data)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=P(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var w={sender:"",newAdmin:"",contract:""};t.MsgUpdateAdmin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),""!==e.newAdmin&&t.uint32(18).string(e.newAdmin),""!==e.contract&&t.uint32(26).string(e.contract),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos>>3){case 1:a.sender=n.string();break;case 2:a.newAdmin=n.string();break;case 3:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},w);return void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=String(e.newAdmin):t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.newAdmin&&(t.newAdmin=e.newAdmin),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=e.newAdmin:t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var x={};t.MsgUpdateAdminResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},x);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(26).string(e.contract),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);n.pos>>3){case 1:a.sender=n.string();break;case 3:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},_);return void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},_);return void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var k={};t.MsgClearAdminResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.value&&t.uint32(8).int32(e.value),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3==1?a.value=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.value&&null!==e.value?t.value=f(e.value):t.value=0,t},toJSON:function(e){var t={};return void 0!==e.value&&(t.value=d(e.value)),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.value&&null!==e.value?t.value=e.value:t.value=0,t}};var h={permission:0,address:""};t.AccessConfig={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.permission&&t.uint32(8).int32(e.permission),""!==e.address&&t.uint32(18).string(e.address),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos>>3){case 1:a.permission=n.int32();break;case 2:a.address=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);return void 0!==e.permission&&null!==e.permission?t.permission=f(e.permission):t.permission=0,void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",t},toJSON:function(e){var t={};return void 0!==e.permission&&(t.permission=d(e.permission)),void 0!==e.address&&(t.address=e.address),t},fromPartial:function(e){var t=Object.assign({},h);return void 0!==e.permission&&null!==e.permission?t.permission=e.permission:t.permission=0,void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",t}};var y={instantiateDefaultPermission:0};t.Params={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.codeUploadAccess&&t.AccessConfig.encode(e.codeUploadAccess,n.uint32(10).fork()).ldelim(),0!==e.instantiateDefaultPermission&&n.uint32(16).int32(e.instantiateDefaultPermission),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},y);r.pos>>3){case 1:i.codeUploadAccess=t.AccessConfig.decode(r,r.uint32());break;case 2:i.instantiateDefaultPermission=r.int32();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},y);return void 0!==e.codeUploadAccess&&null!==e.codeUploadAccess?n.codeUploadAccess=t.AccessConfig.fromJSON(e.codeUploadAccess):n.codeUploadAccess=void 0,void 0!==e.instantiateDefaultPermission&&null!==e.instantiateDefaultPermission?n.instantiateDefaultPermission=f(e.instantiateDefaultPermission):n.instantiateDefaultPermission=0,n},toJSON:function(e){var n={};return void 0!==e.codeUploadAccess&&(n.codeUploadAccess=e.codeUploadAccess?t.AccessConfig.toJSON(e.codeUploadAccess):void 0),void 0!==e.instantiateDefaultPermission&&(n.instantiateDefaultPermission=d(e.instantiateDefaultPermission)),n},fromPartial:function(e){var n=Object.assign({},y);return void 0!==e.codeUploadAccess&&null!==e.codeUploadAccess?n.codeUploadAccess=t.AccessConfig.fromPartial(e.codeUploadAccess):n.codeUploadAccess=void 0,void 0!==e.instantiateDefaultPermission&&null!==e.instantiateDefaultPermission?n.instantiateDefaultPermission=e.instantiateDefaultPermission:n.instantiateDefaultPermission=0,n}};var m={creator:""};t.CodeInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.codeHash.length&&n.uint32(10).bytes(e.codeHash),""!==e.creator&&n.uint32(18).string(e.creator),void 0!==e.instantiateConfig&&t.AccessConfig.encode(e.instantiateConfig,n.uint32(42).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},m);for(i.codeHash=new Uint8Array;r.pos>>3){case 1:i.codeHash=r.bytes();break;case 2:i.creator=r.string();break;case 5:i.instantiateConfig=t.AccessConfig.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},m);return n.codeHash=new Uint8Array,void 0!==e.codeHash&&null!==e.codeHash&&(n.codeHash=k(e.codeHash)),void 0!==e.creator&&null!==e.creator?n.creator=String(e.creator):n.creator="",void 0!==e.instantiateConfig&&null!==e.instantiateConfig?n.instantiateConfig=t.AccessConfig.fromJSON(e.instantiateConfig):n.instantiateConfig=void 0,n},toJSON:function(e){var n={};return void 0!==e.codeHash&&(n.codeHash=I(void 0!==e.codeHash?e.codeHash:new Uint8Array)),void 0!==e.creator&&(n.creator=e.creator),void 0!==e.instantiateConfig&&(n.instantiateConfig=e.instantiateConfig?t.AccessConfig.toJSON(e.instantiateConfig):void 0),n},fromPartial:function(e){var n=Object.assign({},m);return void 0!==e.codeHash&&null!==e.codeHash?n.codeHash=e.codeHash:n.codeHash=new Uint8Array,void 0!==e.creator&&null!==e.creator?n.creator=e.creator:n.creator="",void 0!==e.instantiateConfig&&null!==e.instantiateConfig?n.instantiateConfig=t.AccessConfig.fromPartial(e.instantiateConfig):n.instantiateConfig=void 0,n}};var v={codeId:s.default.UZERO,creator:"",admin:"",label:"",ibcPortId:""};t.ContractInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return e.codeId.isZero()||n.uint32(8).uint64(e.codeId),""!==e.creator&&n.uint32(18).string(e.creator),""!==e.admin&&n.uint32(26).string(e.admin),""!==e.label&&n.uint32(34).string(e.label),void 0!==e.created&&t.AbsoluteTxPosition.encode(e.created,n.uint32(42).fork()).ldelim(),""!==e.ibcPortId&&n.uint32(50).string(e.ibcPortId),void 0!==e.extension&&u.Any.encode(e.extension,n.uint32(58).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},v);r.pos>>3){case 1:i.codeId=r.uint64();break;case 2:i.creator=r.string();break;case 3:i.admin=r.string();break;case 4:i.label=r.string();break;case 5:i.created=t.AbsoluteTxPosition.decode(r,r.uint32());break;case 6:i.ibcPortId=r.string();break;case 7:i.extension=u.Any.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},v);return void 0!==e.codeId&&null!==e.codeId?n.codeId=s.default.fromString(e.codeId):n.codeId=s.default.UZERO,void 0!==e.creator&&null!==e.creator?n.creator=String(e.creator):n.creator="",void 0!==e.admin&&null!==e.admin?n.admin=String(e.admin):n.admin="",void 0!==e.label&&null!==e.label?n.label=String(e.label):n.label="",void 0!==e.created&&null!==e.created?n.created=t.AbsoluteTxPosition.fromJSON(e.created):n.created=void 0,void 0!==e.ibcPortId&&null!==e.ibcPortId?n.ibcPortId=String(e.ibcPortId):n.ibcPortId="",void 0!==e.extension&&null!==e.extension?n.extension=u.Any.fromJSON(e.extension):n.extension=void 0,n},toJSON:function(e){var n={};return void 0!==e.codeId&&(n.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.creator&&(n.creator=e.creator),void 0!==e.admin&&(n.admin=e.admin),void 0!==e.label&&(n.label=e.label),void 0!==e.created&&(n.created=e.created?t.AbsoluteTxPosition.toJSON(e.created):void 0),void 0!==e.ibcPortId&&(n.ibcPortId=e.ibcPortId),void 0!==e.extension&&(n.extension=e.extension?u.Any.toJSON(e.extension):void 0),n},fromPartial:function(e){var n=Object.assign({},v);return void 0!==e.codeId&&null!==e.codeId?n.codeId=e.codeId:n.codeId=s.default.UZERO,void 0!==e.creator&&null!==e.creator?n.creator=e.creator:n.creator="",void 0!==e.admin&&null!==e.admin?n.admin=e.admin:n.admin="",void 0!==e.label&&null!==e.label?n.label=e.label:n.label="",void 0!==e.created&&null!==e.created?n.created=t.AbsoluteTxPosition.fromPartial(e.created):n.created=void 0,void 0!==e.ibcPortId&&null!==e.ibcPortId?n.ibcPortId=e.ibcPortId:n.ibcPortId="",void 0!==e.extension&&null!==e.extension?n.extension=u.Any.fromPartial(e.extension):n.extension=void 0,n}};var g={operation:0,codeId:s.default.UZERO};t.ContractCodeHistoryEntry={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.operation&&n.uint32(8).int32(e.operation),e.codeId.isZero()||n.uint32(16).uint64(e.codeId),void 0!==e.updated&&t.AbsoluteTxPosition.encode(e.updated,n.uint32(26).fork()).ldelim(),0!==e.msg.length&&n.uint32(34).bytes(e.msg),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},g);for(i.msg=new Uint8Array;r.pos>>3){case 1:i.operation=r.int32();break;case 2:i.codeId=r.uint64();break;case 3:i.updated=t.AbsoluteTxPosition.decode(r,r.uint32());break;case 4:i.msg=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},g);return n.msg=new Uint8Array,void 0!==e.operation&&null!==e.operation?n.operation=l(e.operation):n.operation=0,void 0!==e.codeId&&null!==e.codeId?n.codeId=s.default.fromString(e.codeId):n.codeId=s.default.UZERO,void 0!==e.updated&&null!==e.updated?n.updated=t.AbsoluteTxPosition.fromJSON(e.updated):n.updated=void 0,void 0!==e.msg&&null!==e.msg&&(n.msg=k(e.msg)),n},toJSON:function(e){var n={};return void 0!==e.operation&&(n.operation=p(e.operation)),void 0!==e.codeId&&(n.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.updated&&(n.updated=e.updated?t.AbsoluteTxPosition.toJSON(e.updated):void 0),void 0!==e.msg&&(n.msg=I(void 0!==e.msg?e.msg:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},g);return void 0!==e.operation&&null!==e.operation?n.operation=e.operation:n.operation=0,void 0!==e.codeId&&null!==e.codeId?n.codeId=e.codeId:n.codeId=s.default.UZERO,void 0!==e.updated&&null!==e.updated?n.updated=t.AbsoluteTxPosition.fromPartial(e.updated):n.updated=void 0,void 0!==e.msg&&null!==e.msg?n.msg=e.msg:n.msg=new Uint8Array,n}};var A={blockHeight:s.default.UZERO,txIndex:s.default.UZERO};t.AbsoluteTxPosition={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return e.blockHeight.isZero()||t.uint32(8).uint64(e.blockHeight),e.txIndex.isZero()||t.uint32(16).uint64(e.txIndex),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);n.pos>>3){case 1:a.blockHeight=n.uint64();break;case 2:a.txIndex=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return void 0!==e.blockHeight&&null!==e.blockHeight?t.blockHeight=s.default.fromString(e.blockHeight):t.blockHeight=s.default.UZERO,void 0!==e.txIndex&&null!==e.txIndex?t.txIndex=s.default.fromString(e.txIndex):t.txIndex=s.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.blockHeight&&(t.blockHeight=(e.blockHeight||s.default.UZERO).toString()),void 0!==e.txIndex&&(t.txIndex=(e.txIndex||s.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.blockHeight&&null!==e.blockHeight?t.blockHeight=e.blockHeight:t.blockHeight=s.default.UZERO,void 0!==e.txIndex&&null!==e.txIndex?t.txIndex=e.txIndex:t.txIndex=s.default.UZERO,t}};var w={};t.Model={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),0!==e.value.length&&t.uint32(18).bytes(e.value),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);for(a.key=new Uint8Array,a.value=new Uint8Array;n.pos>>3){case 1:a.key=n.bytes();break;case 2:a.value=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},w);return t.key=new Uint8Array,t.value=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=k(e.key)),void 0!==e.value&&null!==e.value&&(t.value=k(e.value)),t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=I(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(t.value=I(void 0!==e.value?e.value:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.value&&null!==e.value?t.value=e.value:t.value=new Uint8Array,t}};var x=function(){if(void 0!==x)return x;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),_=x.atob||function(e){return x.Buffer.from(e,"base64").toString("binary")};function k(e){for(var t=_(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.value=new Uint8Array;n.pos>>3){case 1:a.typeUrl=n.string();break;case 2:a.value=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);return t.value=new Uint8Array,void 0!==e.typeUrl&&null!==e.typeUrl?t.typeUrl=String(e.typeUrl):t.typeUrl="",void 0!==e.value&&null!==e.value&&(t.value=function(e){for(var t=u(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.seconds.isZero()||t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.seconds=n.int64();break;case 2:a.nanos=n.int32();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=a.default.fromString(e.seconds):t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=Number(e.nanos):t.nanos=0,t},toJSON:function(e){var t={};return void 0!==e.seconds&&(t.seconds=(e.seconds||a.default.ZERO).toString()),void 0!==e.nanos&&(t.nanos=e.nanos),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=e.seconds:t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=e.nanos:t.nanos=0,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},55120:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.protobufPackage=void 0;var a=r(n(12620)),i=r(n(50904));t.protobufPackage="google.protobuf";var o={seconds:a.default.ZERO,nanos:0};t.Timestamp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.seconds.isZero()||t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.seconds=n.int64();break;case 2:a.nanos=n.int32();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=a.default.fromString(e.seconds):t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=Number(e.nanos):t.nanos=0,t},toJSON:function(e){var t={};return void 0!==e.seconds&&(t.seconds=(e.seconds||a.default.ZERO).toString()),void 0!==e.nanos&&(t.nanos=e.nanos),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=e.seconds:t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=e.nanos:t.nanos=0,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},73730:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(50904));t.protobufPackage="ibc.applications.interchain_accounts.host.v1";var s={hostEnabled:!1,allowMessages:""};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();!0===e.hostEnabled&&t.uint32(8).bool(e.hostEnabled);var n,a=r(e.allowMessages);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(18).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.allowMessages=[];n.pos>>3){case 1:a.hostEnabled=n.bool();break;case 2:a.allowMessages.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);if(t.allowMessages=[],void 0!==e.hostEnabled&&null!==e.hostEnabled?t.hostEnabled=Boolean(e.hostEnabled):t.hostEnabled=!1,void 0!==e.allowMessages&&null!==e.allowMessages){var n,a=r(e.allowMessages);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.allowMessages.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.hostEnabled&&(t.hostEnabled=e.hostEnabled),e.allowMessages?t.allowMessages=e.allowMessages.map((function(e){return e})):t.allowMessages=[],t},fromPartial:function(e){var t=Object.assign({},s);if(t.allowMessages=[],void 0!==e.hostEnabled&&null!==e.hostEnabled?t.hostEnabled=e.hostEnabled:t.hostEnabled=!1,void 0!==e.allowMessages&&null!==e.allowMessages){var n,a=r(e.allowMessages);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.allowMessages.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},29632:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.DenomTrace=t.protobufPackage=void 0;var a=r(n(12620)),i=r(n(50904));t.protobufPackage="ibc.applications.transfer.v1";var o={path:"",baseDenom:""};t.DenomTrace={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.path&&t.uint32(10).string(e.path),""!==e.baseDenom&&t.uint32(18).string(e.baseDenom),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.path=n.string();break;case 2:a.baseDenom=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.path&&null!==e.path?t.path=String(e.path):t.path="",void 0!==e.baseDenom&&null!==e.baseDenom?t.baseDenom=String(e.baseDenom):t.baseDenom="",t},toJSON:function(e){var t={};return void 0!==e.path&&(t.path=e.path),void 0!==e.baseDenom&&(t.baseDenom=e.baseDenom),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.path&&null!==e.path?t.path=e.path:t.path="",void 0!==e.baseDenom&&null!==e.baseDenom?t.baseDenom=e.baseDenom:t.baseDenom="",t}};var s={sendEnabled:!1,receiveEnabled:!1};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return!0===e.sendEnabled&&t.uint32(8).bool(e.sendEnabled),!0===e.receiveEnabled&&t.uint32(16).bool(e.receiveEnabled),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.sendEnabled=n.bool();break;case 2:a.receiveEnabled=n.bool();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.sendEnabled&&null!==e.sendEnabled?t.sendEnabled=Boolean(e.sendEnabled):t.sendEnabled=!1,void 0!==e.receiveEnabled&&null!==e.receiveEnabled?t.receiveEnabled=Boolean(e.receiveEnabled):t.receiveEnabled=!1,t},toJSON:function(e){var t={};return void 0!==e.sendEnabled&&(t.sendEnabled=e.sendEnabled),void 0!==e.receiveEnabled&&(t.receiveEnabled=e.receiveEnabled),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.sendEnabled&&null!==e.sendEnabled?t.sendEnabled=e.sendEnabled:t.sendEnabled=!1,void 0!==e.receiveEnabled&&null!==e.receiveEnabled?t.receiveEnabled=e.receiveEnabled:t.receiveEnabled=!1,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},75752:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgTransferDesc=t.MsgDesc=t.MsgClientImpl=t.MsgTransferResponse=t.MsgTransfer=t.protobufPackage=void 0;var o=i(n(12620)),s=n(94680),c=i(n(50904)),u=n(790),f=n(39163),d=n(84587);t.protobufPackage="ibc.applications.transfer.v1";var l={sourcePort:"",sourceChannel:"",sender:"",receiver:"",timeoutTimestamp:o.default.UZERO};t.MsgTransfer={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.sourcePort&&t.uint32(10).string(e.sourcePort),""!==e.sourceChannel&&t.uint32(18).string(e.sourceChannel),void 0!==e.token&&u.Coin.encode(e.token,t.uint32(26).fork()).ldelim(),""!==e.sender&&t.uint32(34).string(e.sender),""!==e.receiver&&t.uint32(42).string(e.receiver),void 0!==e.timeoutHeight&&f.Height.encode(e.timeoutHeight,t.uint32(50).fork()).ldelim(),e.timeoutTimestamp.isZero()||t.uint32(56).uint64(e.timeoutTimestamp),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.sourcePort=n.string();break;case 2:a.sourceChannel=n.string();break;case 3:a.token=u.Coin.decode(n,n.uint32());break;case 4:a.sender=n.string();break;case 5:a.receiver=n.string();break;case 6:a.timeoutHeight=f.Height.decode(n,n.uint32());break;case 7:a.timeoutTimestamp=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.sourcePort&&null!==e.sourcePort?t.sourcePort=String(e.sourcePort):t.sourcePort="",void 0!==e.sourceChannel&&null!==e.sourceChannel?t.sourceChannel=String(e.sourceChannel):t.sourceChannel="",void 0!==e.token&&null!==e.token?t.token=u.Coin.fromJSON(e.token):t.token=void 0,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.receiver&&null!==e.receiver?t.receiver=String(e.receiver):t.receiver="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=f.Height.fromJSON(e.timeoutHeight):t.timeoutHeight=void 0,void 0!==e.timeoutTimestamp&&null!==e.timeoutTimestamp?t.timeoutTimestamp=o.default.fromString(e.timeoutTimestamp):t.timeoutTimestamp=o.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.sourcePort&&(t.sourcePort=e.sourcePort),void 0!==e.sourceChannel&&(t.sourceChannel=e.sourceChannel),void 0!==e.token&&(t.token=e.token?u.Coin.toJSON(e.token):void 0),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.receiver&&(t.receiver=e.receiver),void 0!==e.timeoutHeight&&(t.timeoutHeight=e.timeoutHeight?f.Height.toJSON(e.timeoutHeight):void 0),void 0!==e.timeoutTimestamp&&(t.timeoutTimestamp=(e.timeoutTimestamp||o.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.sourcePort&&null!==e.sourcePort?t.sourcePort=e.sourcePort:t.sourcePort="",void 0!==e.sourceChannel&&null!==e.sourceChannel?t.sourceChannel=e.sourceChannel:t.sourceChannel="",void 0!==e.token&&null!==e.token?t.token=u.Coin.fromPartial(e.token):t.token=void 0,void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.receiver&&null!==e.receiver?t.receiver=e.receiver:t.receiver="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=f.Height.fromPartial(e.timeoutHeight):t.timeoutHeight=void 0,void 0!==e.timeoutTimestamp&&null!==e.timeoutTimestamp?t.timeoutTimestamp=e.timeoutTimestamp:t.timeoutTimestamp=o.default.UZERO,t}};var p={};t.MsgTransferResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),""!==e.sender&&t.uint32(26).string(e.sender),""!==e.receiver&&t.uint32(34).string(e.receiver),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;case 3:a.sender=n.string();break;case 4:a.receiver=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.receiver&&null!==e.receiver?t.receiver=String(e.receiver):t.receiver="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.receiver&&(t.receiver=e.receiver),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.receiver&&null!==e.receiver?t.receiver=e.receiver:t.receiver="",t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},79571:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Acknowledgement=t.PacketId=t.PacketState=t.Packet=t.Counterparty=t.IdentifiedChannel=t.Channel=t.orderToJSON=t.orderFromJSON=t.Order=t.stateToJSON=t.stateFromJSON=t.State=t.protobufPackage=void 0;var i,o,s=a(n(12620)),c=a(n(50904)),u=n(39163);function f(e){switch(e){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return i.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return i.STATE_INIT;case 2:case"STATE_TRYOPEN":return i.STATE_TRYOPEN;case 3:case"STATE_OPEN":return i.STATE_OPEN;case 4:case"STATE_CLOSED":return i.STATE_CLOSED;default:return i.UNRECOGNIZED}}function d(e){switch(e){case i.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case i.STATE_INIT:return"STATE_INIT";case i.STATE_TRYOPEN:return"STATE_TRYOPEN";case i.STATE_OPEN:return"STATE_OPEN";case i.STATE_CLOSED:return"STATE_CLOSED";default:return"UNKNOWN"}}function l(e){switch(e){case 0:case"ORDER_NONE_UNSPECIFIED":return o.ORDER_NONE_UNSPECIFIED;case 1:case"ORDER_UNORDERED":return o.ORDER_UNORDERED;case 2:case"ORDER_ORDERED":return o.ORDER_ORDERED;default:return o.UNRECOGNIZED}}function p(e){switch(e){case o.ORDER_NONE_UNSPECIFIED:return"ORDER_NONE_UNSPECIFIED";case o.ORDER_UNORDERED:return"ORDER_UNORDERED";case o.ORDER_ORDERED:return"ORDER_ORDERED";default:return"UNKNOWN"}}t.protobufPackage="ibc.core.channel.v1",function(e){e[e.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",e[e.STATE_INIT=1]="STATE_INIT",e[e.STATE_TRYOPEN=2]="STATE_TRYOPEN",e[e.STATE_OPEN=3]="STATE_OPEN",e[e.STATE_CLOSED=4]="STATE_CLOSED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=t.State||(t.State={})),t.stateFromJSON=f,t.stateToJSON=d,function(e){e[e.ORDER_NONE_UNSPECIFIED=0]="ORDER_NONE_UNSPECIFIED",e[e.ORDER_UNORDERED=1]="ORDER_UNORDERED",e[e.ORDER_ORDERED=2]="ORDER_ORDERED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=t.Order||(t.Order={})),t.orderFromJSON=l,t.orderToJSON=p;var b={state:0,ordering:0,connectionHops:"",version:""};t.Channel={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();0!==e.state&&n.uint32(8).int32(e.state),0!==e.ordering&&n.uint32(16).int32(e.ordering),void 0!==e.counterparty&&t.Counterparty.encode(e.counterparty,n.uint32(26).fork()).ldelim();var a,i=r(e.connectionHops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.uint32(34).string(o)}}catch(e){i.e(e)}finally{i.f()}return""!==e.version&&n.uint32(42).string(e.version),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);for(i.connectionHops=[];r.pos>>3){case 1:i.state=r.int32();break;case 2:i.ordering=r.int32();break;case 3:i.counterparty=t.Counterparty.decode(r,r.uint32());break;case 4:i.connectionHops.push(r.string());break;case 5:i.version=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},b);if(n.connectionHops=[],void 0!==e.state&&null!==e.state?n.state=f(e.state):n.state=0,void 0!==e.ordering&&null!==e.ordering?n.ordering=l(e.ordering):n.ordering=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromJSON(e.counterparty):n.counterparty=void 0,void 0!==e.connectionHops&&null!==e.connectionHops){var a,i=r(e.connectionHops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.connectionHops.push(String(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.version&&null!==e.version?n.version=String(e.version):n.version="",n},toJSON:function(e){var n={};return void 0!==e.state&&(n.state=d(e.state)),void 0!==e.ordering&&(n.ordering=p(e.ordering)),void 0!==e.counterparty&&(n.counterparty=e.counterparty?t.Counterparty.toJSON(e.counterparty):void 0),e.connectionHops?n.connectionHops=e.connectionHops.map((function(e){return e})):n.connectionHops=[],void 0!==e.version&&(n.version=e.version),n},fromPartial:function(e){var n=Object.assign({},b);if(n.connectionHops=[],void 0!==e.state&&null!==e.state?n.state=e.state:n.state=0,void 0!==e.ordering&&null!==e.ordering?n.ordering=e.ordering:n.ordering=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromPartial(e.counterparty):n.counterparty=void 0,void 0!==e.connectionHops&&null!==e.connectionHops){var a,i=r(e.connectionHops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.connectionHops.push(o)}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.version&&null!==e.version?n.version=e.version:n.version="",n}};var h={state:0,ordering:0,connectionHops:"",version:"",portId:"",channelId:""};t.IdentifiedChannel={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();0!==e.state&&n.uint32(8).int32(e.state),0!==e.ordering&&n.uint32(16).int32(e.ordering),void 0!==e.counterparty&&t.Counterparty.encode(e.counterparty,n.uint32(26).fork()).ldelim();var a,i=r(e.connectionHops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.uint32(34).string(o)}}catch(e){i.e(e)}finally{i.f()}return""!==e.version&&n.uint32(42).string(e.version),""!==e.portId&&n.uint32(50).string(e.portId),""!==e.channelId&&n.uint32(58).string(e.channelId),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},h);for(i.connectionHops=[];r.pos>>3){case 1:i.state=r.int32();break;case 2:i.ordering=r.int32();break;case 3:i.counterparty=t.Counterparty.decode(r,r.uint32());break;case 4:i.connectionHops.push(r.string());break;case 5:i.version=r.string();break;case 6:i.portId=r.string();break;case 7:i.channelId=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},h);if(n.connectionHops=[],void 0!==e.state&&null!==e.state?n.state=f(e.state):n.state=0,void 0!==e.ordering&&null!==e.ordering?n.ordering=l(e.ordering):n.ordering=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromJSON(e.counterparty):n.counterparty=void 0,void 0!==e.connectionHops&&null!==e.connectionHops){var a,i=r(e.connectionHops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.connectionHops.push(String(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.version&&null!==e.version?n.version=String(e.version):n.version="",void 0!==e.portId&&null!==e.portId?n.portId=String(e.portId):n.portId="",void 0!==e.channelId&&null!==e.channelId?n.channelId=String(e.channelId):n.channelId="",n},toJSON:function(e){var n={};return void 0!==e.state&&(n.state=d(e.state)),void 0!==e.ordering&&(n.ordering=p(e.ordering)),void 0!==e.counterparty&&(n.counterparty=e.counterparty?t.Counterparty.toJSON(e.counterparty):void 0),e.connectionHops?n.connectionHops=e.connectionHops.map((function(e){return e})):n.connectionHops=[],void 0!==e.version&&(n.version=e.version),void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),n},fromPartial:function(e){var n=Object.assign({},h);if(n.connectionHops=[],void 0!==e.state&&null!==e.state?n.state=e.state:n.state=0,void 0!==e.ordering&&null!==e.ordering?n.ordering=e.ordering:n.ordering=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromPartial(e.counterparty):n.counterparty=void 0,void 0!==e.connectionHops&&null!==e.connectionHops){var a,i=r(e.connectionHops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.connectionHops.push(o)}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.version&&null!==e.version?n.version=e.version:n.version="",void 0!==e.portId&&null!==e.portId?n.portId=e.portId:n.portId="",void 0!==e.channelId&&null!==e.channelId?n.channelId=e.channelId:n.channelId="",n}};var y={portId:"",channelId:""};t.Counterparty={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channelId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",t}};var m={sequence:s.default.UZERO,sourcePort:"",sourceChannel:"",destinationPort:"",destinationChannel:"",timeoutTimestamp:s.default.UZERO};t.Packet={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return e.sequence.isZero()||t.uint32(8).uint64(e.sequence),""!==e.sourcePort&&t.uint32(18).string(e.sourcePort),""!==e.sourceChannel&&t.uint32(26).string(e.sourceChannel),""!==e.destinationPort&&t.uint32(34).string(e.destinationPort),""!==e.destinationChannel&&t.uint32(42).string(e.destinationChannel),0!==e.data.length&&t.uint32(50).bytes(e.data),void 0!==e.timeoutHeight&&u.Height.encode(e.timeoutHeight,t.uint32(58).fork()).ldelim(),e.timeoutTimestamp.isZero()||t.uint32(64).uint64(e.timeoutTimestamp),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.data=new Uint8Array;n.pos>>3){case 1:a.sequence=n.uint64();break;case 2:a.sourcePort=n.string();break;case 3:a.sourceChannel=n.string();break;case 4:a.destinationPort=n.string();break;case 5:a.destinationChannel=n.string();break;case 6:a.data=n.bytes();break;case 7:a.timeoutHeight=u.Height.decode(n,n.uint32());break;case 8:a.timeoutTimestamp=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return t.data=new Uint8Array,void 0!==e.sequence&&null!==e.sequence?t.sequence=s.default.fromString(e.sequence):t.sequence=s.default.UZERO,void 0!==e.sourcePort&&null!==e.sourcePort?t.sourcePort=String(e.sourcePort):t.sourcePort="",void 0!==e.sourceChannel&&null!==e.sourceChannel?t.sourceChannel=String(e.sourceChannel):t.sourceChannel="",void 0!==e.destinationPort&&null!==e.destinationPort?t.destinationPort=String(e.destinationPort):t.destinationPort="",void 0!==e.destinationChannel&&null!==e.destinationChannel?t.destinationChannel=String(e.destinationChannel):t.destinationChannel="",void 0!==e.data&&null!==e.data&&(t.data=_(e.data)),void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=u.Height.fromJSON(e.timeoutHeight):t.timeoutHeight=void 0,void 0!==e.timeoutTimestamp&&null!==e.timeoutTimestamp?t.timeoutTimestamp=s.default.fromString(e.timeoutTimestamp):t.timeoutTimestamp=s.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.sequence&&(t.sequence=(e.sequence||s.default.UZERO).toString()),void 0!==e.sourcePort&&(t.sourcePort=e.sourcePort),void 0!==e.sourceChannel&&(t.sourceChannel=e.sourceChannel),void 0!==e.destinationPort&&(t.destinationPort=e.destinationPort),void 0!==e.destinationChannel&&(t.destinationChannel=e.destinationChannel),void 0!==e.data&&(t.data=S(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.timeoutHeight&&(t.timeoutHeight=e.timeoutHeight?u.Height.toJSON(e.timeoutHeight):void 0),void 0!==e.timeoutTimestamp&&(t.timeoutTimestamp=(e.timeoutTimestamp||s.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence=s.default.UZERO,void 0!==e.sourcePort&&null!==e.sourcePort?t.sourcePort=e.sourcePort:t.sourcePort="",void 0!==e.sourceChannel&&null!==e.sourceChannel?t.sourceChannel=e.sourceChannel:t.sourceChannel="",void 0!==e.destinationPort&&null!==e.destinationPort?t.destinationPort=e.destinationPort:t.destinationPort="",void 0!==e.destinationChannel&&null!==e.destinationChannel?t.destinationChannel=e.destinationChannel:t.destinationChannel="",void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=u.Height.fromPartial(e.timeoutHeight):t.timeoutHeight=void 0,void 0!==e.timeoutTimestamp&&null!==e.timeoutTimestamp?t.timeoutTimestamp=e.timeoutTimestamp:t.timeoutTimestamp=s.default.UZERO,t}};var v={portId:"",channelId:"",sequence:s.default.UZERO};t.PacketState={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),e.sequence.isZero()||t.uint32(24).uint64(e.sequence),0!==e.data.length&&t.uint32(34).bytes(e.data),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.data=new Uint8Array;n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channelId=n.string();break;case 3:a.sequence=n.uint64();break;case 4:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return t.data=new Uint8Array,void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",void 0!==e.sequence&&null!==e.sequence?t.sequence=s.default.fromString(e.sequence):t.sequence=s.default.UZERO,void 0!==e.data&&null!==e.data&&(t.data=_(e.data)),t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.sequence&&(t.sequence=(e.sequence||s.default.UZERO).toString()),void 0!==e.data&&(t.data=S(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence=s.default.UZERO,void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var g={portId:"",channelId:"",sequence:s.default.UZERO};t.PacketId={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),e.sequence.isZero()||t.uint32(24).uint64(e.sequence),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channelId=n.string();break;case 3:a.sequence=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},g);return void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",void 0!==e.sequence&&null!==e.sequence?t.sequence=s.default.fromString(e.sequence):t.sequence=s.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.sequence&&(t.sequence=(e.sequence||s.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},g);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence=s.default.UZERO,t}};var A={};t.Acknowledgement={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.result&&t.uint32(170).bytes(e.result),void 0!==e.error&&t.uint32(178).string(e.error),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);n.pos>>3){case 21:a.result=n.bytes();break;case 22:a.error=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return void 0!==e.result&&null!==e.result&&(t.result=_(e.result)),void 0!==e.error&&null!==e.error?t.error=String(e.error):t.error=void 0,t},toJSON:function(e){var t={};return void 0!==e.result&&(t.result=void 0!==e.result?S(e.result):void 0),void 0!==e.error&&(t.error=e.error),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.result&&null!==e.result?t.result=e.result:t.result=void 0,void 0!==e.error&&null!==e.error?t.error=e.error:t.error=void 0,t}};var w=function(){if(void 0!==w)return w;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),x=w.atob||function(e){return w.Buffer.from(e,"base64").toString("binary")};function _(e){for(var t=x(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),void 0!==e.channel&&d.Channel.encode(e.channel,t.uint32(18).fork()).ldelim(),""!==e.signer&&t.uint32(26).string(e.signer),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channel=d.Channel.decode(n,n.uint32());break;case 3:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channel&&null!==e.channel?t.channel=d.Channel.fromJSON(e.channel):t.channel=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channel&&(t.channel=e.channel?d.Channel.toJSON(e.channel):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channel&&null!==e.channel?t.channel=d.Channel.fromPartial(e.channel):t.channel=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var m={channelId:""};t.MsgChannelOpenInitResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return""!==e.channelId&&t.uint32(10).string(e.channelId),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3==1?a.channelId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",t},toJSON:function(e){var t={};return void 0!==e.channelId&&(t.channelId=e.channelId),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",t}};var v={portId:"",previousChannelId:"",counterpartyVersion:"",signer:""};t.MsgChannelOpenTry={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.previousChannelId&&t.uint32(18).string(e.previousChannelId),void 0!==e.channel&&d.Channel.encode(e.channel,t.uint32(26).fork()).ldelim(),""!==e.counterpartyVersion&&t.uint32(34).string(e.counterpartyVersion),0!==e.proofInit.length&&t.uint32(42).bytes(e.proofInit),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(50).fork()).ldelim(),""!==e.signer&&t.uint32(58).string(e.signer),t},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.proofInit=new Uint8Array;n.pos>>3){case 1:a.portId=n.string();break;case 2:a.previousChannelId=n.string();break;case 3:a.channel=d.Channel.decode(n,n.uint32());break;case 4:a.counterpartyVersion=n.string();break;case 5:a.proofInit=n.bytes();break;case 6:a.proofHeight=l.Height.decode(n,n.uint32());break;case 7:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return t.proofInit=new Uint8Array,void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.previousChannelId&&null!==e.previousChannelId?t.previousChannelId=String(e.previousChannelId):t.previousChannelId="",void 0!==e.channel&&null!==e.channel?t.channel=d.Channel.fromJSON(e.channel):t.channel=void 0,void 0!==e.counterpartyVersion&&null!==e.counterpartyVersion?t.counterpartyVersion=String(e.counterpartyVersion):t.counterpartyVersion="",void 0!==e.proofInit&&null!==e.proofInit&&(t.proofInit=Z(e.proofInit)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.previousChannelId&&(t.previousChannelId=e.previousChannelId),void 0!==e.channel&&(t.channel=e.channel?d.Channel.toJSON(e.channel):void 0),void 0!==e.counterpartyVersion&&(t.counterpartyVersion=e.counterpartyVersion),void 0!==e.proofInit&&(t.proofInit=H(void 0!==e.proofInit?e.proofInit:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.previousChannelId&&null!==e.previousChannelId?t.previousChannelId=e.previousChannelId:t.previousChannelId="",void 0!==e.channel&&null!==e.channel?t.channel=d.Channel.fromPartial(e.channel):t.channel=void 0,void 0!==e.counterpartyVersion&&null!==e.counterpartyVersion?t.counterpartyVersion=e.counterpartyVersion:t.counterpartyVersion="",void 0!==e.proofInit&&null!==e.proofInit?t.proofInit=e.proofInit:t.proofInit=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var g={};t.MsgChannelOpenTryResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create()},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),""!==e.counterpartyChannelId&&t.uint32(26).string(e.counterpartyChannelId),""!==e.counterpartyVersion&&t.uint32(34).string(e.counterpartyVersion),0!==e.proofTry.length&&t.uint32(42).bytes(e.proofTry),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(50).fork()).ldelim(),""!==e.signer&&t.uint32(58).string(e.signer),t},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.proofTry=new Uint8Array;n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channelId=n.string();break;case 3:a.counterpartyChannelId=n.string();break;case 4:a.counterpartyVersion=n.string();break;case 5:a.proofTry=n.bytes();break;case 6:a.proofHeight=l.Height.decode(n,n.uint32());break;case 7:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return t.proofTry=new Uint8Array,void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",void 0!==e.counterpartyChannelId&&null!==e.counterpartyChannelId?t.counterpartyChannelId=String(e.counterpartyChannelId):t.counterpartyChannelId="",void 0!==e.counterpartyVersion&&null!==e.counterpartyVersion?t.counterpartyVersion=String(e.counterpartyVersion):t.counterpartyVersion="",void 0!==e.proofTry&&null!==e.proofTry&&(t.proofTry=Z(e.proofTry)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.counterpartyChannelId&&(t.counterpartyChannelId=e.counterpartyChannelId),void 0!==e.counterpartyVersion&&(t.counterpartyVersion=e.counterpartyVersion),void 0!==e.proofTry&&(t.proofTry=H(void 0!==e.proofTry?e.proofTry:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",void 0!==e.counterpartyChannelId&&null!==e.counterpartyChannelId?t.counterpartyChannelId=e.counterpartyChannelId:t.counterpartyChannelId="",void 0!==e.counterpartyVersion&&null!==e.counterpartyVersion?t.counterpartyVersion=e.counterpartyVersion:t.counterpartyVersion="",void 0!==e.proofTry&&null!==e.proofTry?t.proofTry=e.proofTry:t.proofTry=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var w={};t.MsgChannelOpenAckResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create()},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),0!==e.proofAck.length&&t.uint32(26).bytes(e.proofAck),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),""!==e.signer&&t.uint32(42).string(e.signer),t},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},x);for(a.proofAck=new Uint8Array;n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channelId=n.string();break;case 3:a.proofAck=n.bytes();break;case 4:a.proofHeight=l.Height.decode(n,n.uint32());break;case 5:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},x);return t.proofAck=new Uint8Array,void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",void 0!==e.proofAck&&null!==e.proofAck&&(t.proofAck=Z(e.proofAck)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.proofAck&&(t.proofAck=H(void 0!==e.proofAck?e.proofAck:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},x);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",void 0!==e.proofAck&&null!==e.proofAck?t.proofAck=e.proofAck:t.proofAck=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var _={};t.MsgChannelOpenConfirmResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create()},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);n.pos1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),""!==e.signer&&t.uint32(26).string(e.signer),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channelId=n.string();break;case 3:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},k);return void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var S={};t.MsgChannelCloseInitResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create()},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},S);n.pos1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),0!==e.proofInit.length&&t.uint32(26).bytes(e.proofInit),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),""!==e.signer&&t.uint32(42).string(e.signer),t},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},I);for(a.proofInit=new Uint8Array;n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channelId=n.string();break;case 3:a.proofInit=n.bytes();break;case 4:a.proofHeight=l.Height.decode(n,n.uint32());break;case 5:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},I);return t.proofInit=new Uint8Array,void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",void 0!==e.proofInit&&null!==e.proofInit&&(t.proofInit=Z(e.proofInit)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.proofInit&&(t.proofInit=H(void 0!==e.proofInit?e.proofInit:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},I);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",void 0!==e.proofInit&&null!==e.proofInit?t.proofInit=e.proofInit:t.proofInit=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var E={};t.MsgChannelCloseConfirmResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create()},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},E);n.pos1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return void 0!==e.packet&&d.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),0!==e.proofCommitment.length&&t.uint32(18).bytes(e.proofCommitment),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),""!==e.signer&&t.uint32(34).string(e.signer),t},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},C);for(a.proofCommitment=new Uint8Array;n.pos>>3){case 1:a.packet=d.Packet.decode(n,n.uint32());break;case 2:a.proofCommitment=n.bytes();break;case 3:a.proofHeight=l.Height.decode(n,n.uint32());break;case 4:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},C);return t.proofCommitment=new Uint8Array,void 0!==e.packet&&null!==e.packet?t.packet=d.Packet.fromJSON(e.packet):t.packet=void 0,void 0!==e.proofCommitment&&null!==e.proofCommitment&&(t.proofCommitment=Z(e.proofCommitment)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.packet&&(t.packet=e.packet?d.Packet.toJSON(e.packet):void 0),void 0!==e.proofCommitment&&(t.proofCommitment=H(void 0!==e.proofCommitment?e.proofCommitment:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},C);return void 0!==e.packet&&null!==e.packet?t.packet=d.Packet.fromPartial(e.packet):t.packet=void 0,void 0!==e.proofCommitment&&null!==e.proofCommitment?t.proofCommitment=e.proofCommitment:t.proofCommitment=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var T={result:0};t.MsgRecvPacketResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return 0!==e.result&&t.uint32(8).int32(e.result),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},T);n.pos>>3==1?a.result=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},T);return void 0!==e.result&&null!==e.result?t.result=b(e.result):t.result=0,t},toJSON:function(e){var t={};return void 0!==e.result&&(t.result=h(e.result)),t},fromPartial:function(e){var t=Object.assign({},T);return void 0!==e.result&&null!==e.result?t.result=e.result:t.result=0,t}};var O={nextSequenceRecv:c.default.UZERO,signer:""};t.MsgTimeout={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return void 0!==e.packet&&d.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),0!==e.proofUnreceived.length&&t.uint32(18).bytes(e.proofUnreceived),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),e.nextSequenceRecv.isZero()||t.uint32(32).uint64(e.nextSequenceRecv),""!==e.signer&&t.uint32(42).string(e.signer),t},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},O);for(a.proofUnreceived=new Uint8Array;n.pos>>3){case 1:a.packet=d.Packet.decode(n,n.uint32());break;case 2:a.proofUnreceived=n.bytes();break;case 3:a.proofHeight=l.Height.decode(n,n.uint32());break;case 4:a.nextSequenceRecv=n.uint64();break;case 5:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},O);return t.proofUnreceived=new Uint8Array,void 0!==e.packet&&null!==e.packet?t.packet=d.Packet.fromJSON(e.packet):t.packet=void 0,void 0!==e.proofUnreceived&&null!==e.proofUnreceived&&(t.proofUnreceived=Z(e.proofUnreceived)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.nextSequenceRecv&&null!==e.nextSequenceRecv?t.nextSequenceRecv=c.default.fromString(e.nextSequenceRecv):t.nextSequenceRecv=c.default.UZERO,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.packet&&(t.packet=e.packet?d.Packet.toJSON(e.packet):void 0),void 0!==e.proofUnreceived&&(t.proofUnreceived=H(void 0!==e.proofUnreceived?e.proofUnreceived:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.nextSequenceRecv&&(t.nextSequenceRecv=(e.nextSequenceRecv||c.default.UZERO).toString()),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},O);return void 0!==e.packet&&null!==e.packet?t.packet=d.Packet.fromPartial(e.packet):t.packet=void 0,void 0!==e.proofUnreceived&&null!==e.proofUnreceived?t.proofUnreceived=e.proofUnreceived:t.proofUnreceived=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.nextSequenceRecv&&null!==e.nextSequenceRecv?t.nextSequenceRecv=e.nextSequenceRecv:t.nextSequenceRecv=c.default.UZERO,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var P={result:0};t.MsgTimeoutResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return 0!==e.result&&t.uint32(8).int32(e.result),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},P);n.pos>>3==1?a.result=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},P);return void 0!==e.result&&null!==e.result?t.result=b(e.result):t.result=0,t},toJSON:function(e){var t={};return void 0!==e.result&&(t.result=h(e.result)),t},fromPartial:function(e){var t=Object.assign({},P);return void 0!==e.result&&null!==e.result?t.result=e.result:t.result=0,t}};var M={nextSequenceRecv:c.default.UZERO,signer:""};t.MsgTimeoutOnClose={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return void 0!==e.packet&&d.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),0!==e.proofUnreceived.length&&t.uint32(18).bytes(e.proofUnreceived),0!==e.proofClose.length&&t.uint32(26).bytes(e.proofClose),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),e.nextSequenceRecv.isZero()||t.uint32(40).uint64(e.nextSequenceRecv),""!==e.signer&&t.uint32(50).string(e.signer),t},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},M);for(a.proofUnreceived=new Uint8Array,a.proofClose=new Uint8Array;n.pos>>3){case 1:a.packet=d.Packet.decode(n,n.uint32());break;case 2:a.proofUnreceived=n.bytes();break;case 3:a.proofClose=n.bytes();break;case 4:a.proofHeight=l.Height.decode(n,n.uint32());break;case 5:a.nextSequenceRecv=n.uint64();break;case 6:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},M);return t.proofUnreceived=new Uint8Array,t.proofClose=new Uint8Array,void 0!==e.packet&&null!==e.packet?t.packet=d.Packet.fromJSON(e.packet):t.packet=void 0,void 0!==e.proofUnreceived&&null!==e.proofUnreceived&&(t.proofUnreceived=Z(e.proofUnreceived)),void 0!==e.proofClose&&null!==e.proofClose&&(t.proofClose=Z(e.proofClose)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.nextSequenceRecv&&null!==e.nextSequenceRecv?t.nextSequenceRecv=c.default.fromString(e.nextSequenceRecv):t.nextSequenceRecv=c.default.UZERO,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.packet&&(t.packet=e.packet?d.Packet.toJSON(e.packet):void 0),void 0!==e.proofUnreceived&&(t.proofUnreceived=H(void 0!==e.proofUnreceived?e.proofUnreceived:new Uint8Array)),void 0!==e.proofClose&&(t.proofClose=H(void 0!==e.proofClose?e.proofClose:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.nextSequenceRecv&&(t.nextSequenceRecv=(e.nextSequenceRecv||c.default.UZERO).toString()),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},M);return void 0!==e.packet&&null!==e.packet?t.packet=d.Packet.fromPartial(e.packet):t.packet=void 0,void 0!==e.proofUnreceived&&null!==e.proofUnreceived?t.proofUnreceived=e.proofUnreceived:t.proofUnreceived=new Uint8Array,void 0!==e.proofClose&&null!==e.proofClose?t.proofClose=e.proofClose:t.proofClose=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.nextSequenceRecv&&null!==e.nextSequenceRecv?t.nextSequenceRecv=e.nextSequenceRecv:t.nextSequenceRecv=c.default.UZERO,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var B={result:0};t.MsgTimeoutOnCloseResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return 0!==e.result&&t.uint32(8).int32(e.result),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},B);n.pos>>3==1?a.result=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},B);return void 0!==e.result&&null!==e.result?t.result=b(e.result):t.result=0,t},toJSON:function(e){var t={};return void 0!==e.result&&(t.result=h(e.result)),t},fromPartial:function(e){var t=Object.assign({},B);return void 0!==e.result&&null!==e.result?t.result=e.result:t.result=0,t}};var R={signer:""};t.MsgAcknowledgement={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return void 0!==e.packet&&d.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),0!==e.acknowledgement.length&&t.uint32(18).bytes(e.acknowledgement),0!==e.proofAcked.length&&t.uint32(26).bytes(e.proofAcked),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),""!==e.signer&&t.uint32(42).string(e.signer),t},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},R);for(a.acknowledgement=new Uint8Array,a.proofAcked=new Uint8Array;n.pos>>3){case 1:a.packet=d.Packet.decode(n,n.uint32());break;case 2:a.acknowledgement=n.bytes();break;case 3:a.proofAcked=n.bytes();break;case 4:a.proofHeight=l.Height.decode(n,n.uint32());break;case 5:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},R);return t.acknowledgement=new Uint8Array,t.proofAcked=new Uint8Array,void 0!==e.packet&&null!==e.packet?t.packet=d.Packet.fromJSON(e.packet):t.packet=void 0,void 0!==e.acknowledgement&&null!==e.acknowledgement&&(t.acknowledgement=Z(e.acknowledgement)),void 0!==e.proofAcked&&null!==e.proofAcked&&(t.proofAcked=Z(e.proofAcked)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.packet&&(t.packet=e.packet?d.Packet.toJSON(e.packet):void 0),void 0!==e.acknowledgement&&(t.acknowledgement=H(void 0!==e.acknowledgement?e.acknowledgement:new Uint8Array)),void 0!==e.proofAcked&&(t.proofAcked=H(void 0!==e.proofAcked?e.proofAcked:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},R);return void 0!==e.packet&&null!==e.packet?t.packet=d.Packet.fromPartial(e.packet):t.packet=void 0,void 0!==e.acknowledgement&&null!==e.acknowledgement?t.acknowledgement=e.acknowledgement:t.acknowledgement=new Uint8Array,void 0!==e.proofAcked&&null!==e.proofAcked?t.proofAcked=e.proofAcked:t.proofAcked=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var N={result:0};t.MsgAcknowledgementResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return 0!==e.result&&t.uint32(8).int32(e.result),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},N);n.pos>>3==1?a.result=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},N);return void 0!==e.result&&null!==e.result?t.result=b(e.result):t.result=0,t},toJSON:function(e){var t={};return void 0!==e.result&&(t.result=h(e.result)),t},fromPartial:function(e){var t=Object.assign({},N);return void 0!==e.result&&null!==e.result?t.result=e.result:t.result=0,t}};var D=function(){function e(t){a(this,e),this.rpc=t,this.ChannelOpenInit=this.ChannelOpenInit.bind(this),this.ChannelOpenTry=this.ChannelOpenTry.bind(this),this.ChannelOpenAck=this.ChannelOpenAck.bind(this),this.ChannelOpenConfirm=this.ChannelOpenConfirm.bind(this),this.ChannelCloseInit=this.ChannelCloseInit.bind(this),this.ChannelCloseConfirm=this.ChannelCloseConfirm.bind(this),this.RecvPacket=this.RecvPacket.bind(this),this.Timeout=this.Timeout.bind(this),this.TimeoutOnClose=this.TimeoutOnClose.bind(this),this.Acknowledgement=this.Acknowledgement.bind(this)}return i(e,[{key:"ChannelOpenInit",value:function(e,n){return this.rpc.unary(t.MsgChannelOpenInitDesc,t.MsgChannelOpenInit.fromPartial(e),n)}},{key:"ChannelOpenTry",value:function(e,n){return this.rpc.unary(t.MsgChannelOpenTryDesc,t.MsgChannelOpenTry.fromPartial(e),n)}},{key:"ChannelOpenAck",value:function(e,n){return this.rpc.unary(t.MsgChannelOpenAckDesc,t.MsgChannelOpenAck.fromPartial(e),n)}},{key:"ChannelOpenConfirm",value:function(e,n){return this.rpc.unary(t.MsgChannelOpenConfirmDesc,t.MsgChannelOpenConfirm.fromPartial(e),n)}},{key:"ChannelCloseInit",value:function(e,n){return this.rpc.unary(t.MsgChannelCloseInitDesc,t.MsgChannelCloseInit.fromPartial(e),n)}},{key:"ChannelCloseConfirm",value:function(e,n){return this.rpc.unary(t.MsgChannelCloseConfirmDesc,t.MsgChannelCloseConfirm.fromPartial(e),n)}},{key:"RecvPacket",value:function(e,n){return this.rpc.unary(t.MsgRecvPacketDesc,t.MsgRecvPacket.fromPartial(e),n)}},{key:"Timeout",value:function(e,n){return this.rpc.unary(t.MsgTimeoutDesc,t.MsgTimeout.fromPartial(e),n)}},{key:"TimeoutOnClose",value:function(e,n){return this.rpc.unary(t.MsgTimeoutOnCloseDesc,t.MsgTimeoutOnClose.fromPartial(e),n)}},{key:"Acknowledgement",value:function(e,n){return this.rpc.unary(t.MsgAcknowledgementDesc,t.MsgAcknowledgement.fromPartial(e),n)}}]),e}();t.MsgClientImpl=D,t.MsgDesc={serviceName:"ibc.core.channel.v1.Msg"},t.MsgChannelOpenInitDesc={methodName:"ChannelOpenInit",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgChannelOpenInit.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgChannelOpenInitResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgChannelOpenTryDesc={methodName:"ChannelOpenTry",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgChannelOpenTry.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgChannelOpenTryResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgChannelOpenAckDesc={methodName:"ChannelOpenAck",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgChannelOpenAck.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgChannelOpenAckResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgChannelOpenConfirmDesc={methodName:"ChannelOpenConfirm",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgChannelOpenConfirm.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgChannelOpenConfirmResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgChannelCloseInitDesc={methodName:"ChannelCloseInit",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgChannelCloseInit.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgChannelCloseInitResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgChannelCloseConfirmDesc={methodName:"ChannelCloseConfirm",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgChannelCloseConfirm.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgChannelCloseConfirmResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgRecvPacketDesc={methodName:"RecvPacket",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgRecvPacket.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgRecvPacketResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgTimeoutDesc={methodName:"Timeout",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgTimeout.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgTimeoutResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgTimeoutOnCloseDesc={methodName:"TimeoutOnClose",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgTimeoutOnClose.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgTimeoutOnCloseResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgAcknowledgementDesc={methodName:"Acknowledgement",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgAcknowledgement.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgAcknowledgementResponse.decode(e)),{toObject:function(){return this}})}}};var j=function(){function e(t,n){a(this,e),this.host=t,this.options=n}return i(e,[{key:"unary",value:function(e,t,n){var r,a=this,i=Object.assign(Object.assign({},t),e.requestType),o=n&&this.options.metadata?new p.BrowserHeaders(Object.assign(Object.assign({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise((function(t,n){u.grpc.unary(e,{request:i,host:a.host,metadata:o,transport:a.options.transport,debug:a.options.debug,onEnd:function(e){if(e.status===u.grpc.Code.OK)t(e.message);else{var r=new Error(e.statusMessage);r.code=e.status,r.metadata=e.trailers,n(r)}}})}))}}]),e}();t.GrpcWebImpl=j;var U=function(){if(void 0!==U)return U;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),L=U.atob||function(e){return U.Buffer.from(e,"base64").toString("binary")};function Z(e){for(var t=L(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.clientState&&s.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.clientState=s.Any.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.clientState&&null!==e.clientState?t.clientState=s.Any.fromJSON(e.clientState):t.clientState=void 0,t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.clientState&&(t.clientState=e.clientState?s.Any.toJSON(e.clientState):void 0),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.clientState&&null!==e.clientState?t.clientState=s.Any.fromPartial(e.clientState):t.clientState=void 0,t}};var f={};t.ConsensusStateWithHeight={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.height&&t.Height.encode(e.height,n.uint32(10).fork()).ldelim(),void 0!==e.consensusState&&s.Any.encode(e.consensusState,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);r.pos>>3){case 1:i.height=t.Height.decode(r,r.uint32());break;case 2:i.consensusState=s.Any.decode(r,r.uint32());break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},f);return void 0!==e.height&&null!==e.height?n.height=t.Height.fromJSON(e.height):n.height=void 0,void 0!==e.consensusState&&null!==e.consensusState?n.consensusState=s.Any.fromJSON(e.consensusState):n.consensusState=void 0,n},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=e.height?t.Height.toJSON(e.height):void 0),void 0!==e.consensusState&&(n.consensusState=e.consensusState?s.Any.toJSON(e.consensusState):void 0),n},fromPartial:function(e){var n=Object.assign({},f);return void 0!==e.height&&null!==e.height?n.height=t.Height.fromPartial(e.height):n.height=void 0,void 0!==e.consensusState&&null!==e.consensusState?n.consensusState=s.Any.fromPartial(e.consensusState):n.consensusState=void 0,n}};var d={clientId:""};t.ClientConsensusStates={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.clientId&&n.uint32(10).string(e.clientId);var a,i=r(e.consensusStates);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.ConsensusStateWithHeight.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);for(i.consensusStates=[];r.pos>>3){case 1:i.clientId=r.string();break;case 2:i.consensusStates.push(t.ConsensusStateWithHeight.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},d);if(n.consensusStates=[],void 0!==e.clientId&&null!==e.clientId?n.clientId=String(e.clientId):n.clientId="",void 0!==e.consensusStates&&null!==e.consensusStates){var a,i=r(e.consensusStates);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.consensusStates.push(t.ConsensusStateWithHeight.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.clientId&&(n.clientId=e.clientId),e.consensusStates?n.consensusStates=e.consensusStates.map((function(e){return e?t.ConsensusStateWithHeight.toJSON(e):void 0})):n.consensusStates=[],n},fromPartial:function(e){var n=Object.assign({},d);if(n.consensusStates=[],void 0!==e.clientId&&null!==e.clientId?n.clientId=e.clientId:n.clientId="",void 0!==e.consensusStates&&null!==e.consensusStates){var a,i=r(e.consensusStates);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.consensusStates.push(t.ConsensusStateWithHeight.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var l={title:"",description:"",subjectClientId:"",substituteClientId:""};t.ClientUpdateProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.subjectClientId&&t.uint32(26).string(e.subjectClientId),""!==e.substituteClientId&&t.uint32(34).string(e.substituteClientId),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.subjectClientId=n.string();break;case 4:a.substituteClientId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.subjectClientId&&null!==e.subjectClientId?t.subjectClientId=String(e.subjectClientId):t.subjectClientId="",void 0!==e.substituteClientId&&null!==e.substituteClientId?t.substituteClientId=String(e.substituteClientId):t.substituteClientId="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.subjectClientId&&(t.subjectClientId=e.subjectClientId),void 0!==e.substituteClientId&&(t.substituteClientId=e.substituteClientId),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.subjectClientId&&null!==e.subjectClientId?t.subjectClientId=e.subjectClientId:t.subjectClientId="",void 0!==e.substituteClientId&&null!==e.substituteClientId?t.substituteClientId=e.substituteClientId:t.substituteClientId="",t}};var p={title:"",description:""};t.UpgradeProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),void 0!==e.plan&&c.Plan.encode(e.plan,t.uint32(26).fork()).ldelim(),void 0!==e.upgradedClientState&&s.Any.encode(e.upgradedClientState,t.uint32(34).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.plan=c.Plan.decode(n,n.uint32());break;case 4:a.upgradedClientState=s.Any.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.plan&&null!==e.plan?t.plan=c.Plan.fromJSON(e.plan):t.plan=void 0,void 0!==e.upgradedClientState&&null!==e.upgradedClientState?t.upgradedClientState=s.Any.fromJSON(e.upgradedClientState):t.upgradedClientState=void 0,t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.plan&&(t.plan=e.plan?c.Plan.toJSON(e.plan):void 0),void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?s.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.plan&&null!==e.plan?t.plan=c.Plan.fromPartial(e.plan):t.plan=void 0,void 0!==e.upgradedClientState&&null!==e.upgradedClientState?t.upgradedClientState=s.Any.fromPartial(e.upgradedClientState):t.upgradedClientState=void 0,t}};var b={revisionNumber:i.default.UZERO,revisionHeight:i.default.UZERO};t.Height={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.revisionNumber.isZero()||t.uint32(8).uint64(e.revisionNumber),e.revisionHeight.isZero()||t.uint32(16).uint64(e.revisionHeight),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.revisionNumber=n.uint64();break;case 2:a.revisionHeight=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.revisionNumber&&null!==e.revisionNumber?t.revisionNumber=i.default.fromString(e.revisionNumber):t.revisionNumber=i.default.UZERO,void 0!==e.revisionHeight&&null!==e.revisionHeight?t.revisionHeight=i.default.fromString(e.revisionHeight):t.revisionHeight=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.revisionNumber&&(t.revisionNumber=(e.revisionNumber||i.default.UZERO).toString()),void 0!==e.revisionHeight&&(t.revisionHeight=(e.revisionHeight||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.revisionNumber&&null!==e.revisionNumber?t.revisionNumber=e.revisionNumber:t.revisionNumber=i.default.UZERO,void 0!==e.revisionHeight&&null!==e.revisionHeight?t.revisionHeight=e.revisionHeight:t.revisionHeight=i.default.UZERO,t}};var h={allowedClients:""};t.Params={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.allowedClients);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.allowedClients=[];n.pos>>3==1?a.allowedClients.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},h);if(t.allowedClients=[],void 0!==e.allowedClients&&null!==e.allowedClients){var n,a=r(e.allowedClients);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.allowedClients.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.allowedClients?t.allowedClients=e.allowedClients.map((function(e){return e})):t.allowedClients=[],t},fromPartial:function(e){var t=Object.assign({},h);if(t.allowedClients=[],void 0!==e.allowedClients&&null!==e.allowedClients){var n,a=r(e.allowedClients);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.allowedClients.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},95994:function(e,t,n){"use strict";var r=n(21146).default,a=n(63298).default,i=n(51795).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgSubmitMisbehaviourDesc=t.MsgUpgradeClientDesc=t.MsgUpdateClientDesc=t.MsgCreateClientDesc=t.MsgDesc=t.MsgClientImpl=t.MsgSubmitMisbehaviourResponse=t.MsgSubmitMisbehaviour=t.MsgUpgradeClientResponse=t.MsgUpgradeClient=t.MsgUpdateClientResponse=t.MsgUpdateClient=t.MsgCreateClientResponse=t.MsgCreateClient=t.protobufPackage=void 0;var s=o(n(12620)),c=n(94680),u=o(n(50904)),f=n(81019),d=n(84587);t.protobufPackage="ibc.core.client.v1";var l={signer:""};t.MsgCreateClient={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return void 0!==e.clientState&&f.Any.encode(e.clientState,t.uint32(10).fork()).ldelim(),void 0!==e.consensusState&&f.Any.encode(e.consensusState,t.uint32(18).fork()).ldelim(),""!==e.signer&&t.uint32(26).string(e.signer),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.clientState=f.Any.decode(n,n.uint32());break;case 2:a.consensusState=f.Any.decode(n,n.uint32());break;case 3:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.clientState&&null!==e.clientState?t.clientState=f.Any.fromJSON(e.clientState):t.clientState=void 0,void 0!==e.consensusState&&null!==e.consensusState?t.consensusState=f.Any.fromJSON(e.consensusState):t.consensusState=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.clientState&&(t.clientState=e.clientState?f.Any.toJSON(e.clientState):void 0),void 0!==e.consensusState&&(t.consensusState=e.consensusState?f.Any.toJSON(e.consensusState):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.clientState&&null!==e.clientState?t.clientState=f.Any.fromPartial(e.clientState):t.clientState=void 0,void 0!==e.consensusState&&null!==e.consensusState?t.consensusState=f.Any.fromPartial(e.consensusState):t.consensusState=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var p={};t.MsgCreateClientResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.header&&f.Any.encode(e.header,t.uint32(18).fork()).ldelim(),""!==e.signer&&t.uint32(26).string(e.signer),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.header=f.Any.decode(n,n.uint32());break;case 3:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.header&&null!==e.header?t.header=f.Any.fromJSON(e.header):t.header=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.header&&(t.header=e.header?f.Any.toJSON(e.header):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.header&&null!==e.header?t.header=f.Any.fromPartial(e.header):t.header=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var h={};t.MsgUpdateClientResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.clientState&&f.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),void 0!==e.consensusState&&f.Any.encode(e.consensusState,t.uint32(26).fork()).ldelim(),0!==e.proofUpgradeClient.length&&t.uint32(34).bytes(e.proofUpgradeClient),0!==e.proofUpgradeConsensusState.length&&t.uint32(42).bytes(e.proofUpgradeConsensusState),""!==e.signer&&t.uint32(50).string(e.signer),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.proofUpgradeClient=new Uint8Array,a.proofUpgradeConsensusState=new Uint8Array;n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.clientState=f.Any.decode(n,n.uint32());break;case 3:a.consensusState=f.Any.decode(n,n.uint32());break;case 4:a.proofUpgradeClient=n.bytes();break;case 5:a.proofUpgradeConsensusState=n.bytes();break;case 6:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return t.proofUpgradeClient=new Uint8Array,t.proofUpgradeConsensusState=new Uint8Array,void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.clientState&&null!==e.clientState?t.clientState=f.Any.fromJSON(e.clientState):t.clientState=void 0,void 0!==e.consensusState&&null!==e.consensusState?t.consensusState=f.Any.fromJSON(e.consensusState):t.consensusState=void 0,void 0!==e.proofUpgradeClient&&null!==e.proofUpgradeClient&&(t.proofUpgradeClient=k(e.proofUpgradeClient)),void 0!==e.proofUpgradeConsensusState&&null!==e.proofUpgradeConsensusState&&(t.proofUpgradeConsensusState=k(e.proofUpgradeConsensusState)),void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.clientState&&(t.clientState=e.clientState?f.Any.toJSON(e.clientState):void 0),void 0!==e.consensusState&&(t.consensusState=e.consensusState?f.Any.toJSON(e.consensusState):void 0),void 0!==e.proofUpgradeClient&&(t.proofUpgradeClient=I(void 0!==e.proofUpgradeClient?e.proofUpgradeClient:new Uint8Array)),void 0!==e.proofUpgradeConsensusState&&(t.proofUpgradeConsensusState=I(void 0!==e.proofUpgradeConsensusState?e.proofUpgradeConsensusState:new Uint8Array)),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.clientState&&null!==e.clientState?t.clientState=f.Any.fromPartial(e.clientState):t.clientState=void 0,void 0!==e.consensusState&&null!==e.consensusState?t.consensusState=f.Any.fromPartial(e.consensusState):t.consensusState=void 0,void 0!==e.proofUpgradeClient&&null!==e.proofUpgradeClient?t.proofUpgradeClient=e.proofUpgradeClient:t.proofUpgradeClient=new Uint8Array,void 0!==e.proofUpgradeConsensusState&&null!==e.proofUpgradeConsensusState?t.proofUpgradeConsensusState=e.proofUpgradeConsensusState:t.proofUpgradeConsensusState=new Uint8Array,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var m={};t.MsgUpgradeClientResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.misbehaviour&&f.Any.encode(e.misbehaviour,t.uint32(18).fork()).ldelim(),""!==e.signer&&t.uint32(26).string(e.signer),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.misbehaviour=f.Any.decode(n,n.uint32());break;case 3:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.misbehaviour&&null!==e.misbehaviour?t.misbehaviour=f.Any.fromJSON(e.misbehaviour):t.misbehaviour=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.misbehaviour&&(t.misbehaviour=e.misbehaviour?f.Any.toJSON(e.misbehaviour):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.misbehaviour&&null!==e.misbehaviour?t.misbehaviour=f.Any.fromPartial(e.misbehaviour):t.misbehaviour=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var g={};t.MsgSubmitMisbehaviourResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.hash.length&&t.uint32(10).bytes(e.hash),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.hash=new Uint8Array;n.pos>>3==1?a.hash=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},c);return t.hash=new Uint8Array,void 0!==e.hash&&null!==e.hash&&(t.hash=b(e.hash)),t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=y(void 0!==e.hash?e.hash:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash=new Uint8Array,t}};var u={};t.MerklePrefix={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.keyPrefix.length&&t.uint32(10).bytes(e.keyPrefix),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.keyPrefix=new Uint8Array;n.pos>>3==1?a.keyPrefix=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},u);return t.keyPrefix=new Uint8Array,void 0!==e.keyPrefix&&null!==e.keyPrefix&&(t.keyPrefix=b(e.keyPrefix)),t},toJSON:function(e){var t={};return void 0!==e.keyPrefix&&(t.keyPrefix=y(void 0!==e.keyPrefix?e.keyPrefix:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.keyPrefix&&null!==e.keyPrefix?t.keyPrefix=e.keyPrefix:t.keyPrefix=new Uint8Array,t}};var f={keyPath:""};t.MerklePath={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.keyPath);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.keyPath=[];n.pos>>3==1?a.keyPath.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},f);if(t.keyPath=[],void 0!==e.keyPath&&null!==e.keyPath){var n,a=r(e.keyPath);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.keyPath.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.keyPath?t.keyPath=e.keyPath.map((function(e){return e})):t.keyPath=[],t},fromPartial:function(e){var t=Object.assign({},f);if(t.keyPath=[],void 0!==e.keyPath&&null!==e.keyPath){var n,a=r(e.keyPath);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.keyPath.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var d={};t.MerkleProof={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.proofs);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.CommitmentProof.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.proofs=[];n.pos>>3==1?a.proofs.push(s.CommitmentProof.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},d);if(t.proofs=[],void 0!==e.proofs&&null!==e.proofs){var n,a=r(e.proofs);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.proofs.push(s.CommitmentProof.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.proofs?t.proofs=e.proofs.map((function(e){return e?s.CommitmentProof.toJSON(e):void 0})):t.proofs=[],t},fromPartial:function(e){var t=Object.assign({},d);if(t.proofs=[],void 0!==e.proofs&&null!==e.proofs){var n,a=r(e.proofs);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.proofs.push(s.CommitmentProof.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var l=function(){if(void 0!==l)return l;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),p=l.atob||function(e){return l.Buffer.from(e,"base64").toString("binary")};function b(e){for(var t=p(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();""!==e.clientId&&n.uint32(10).string(e.clientId);var a,i=r(e.versions);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.Version.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return 0!==e.state&&n.uint32(24).int32(e.state),void 0!==e.counterparty&&t.Counterparty.encode(e.counterparty,n.uint32(34).fork()).ldelim(),e.delayPeriod.isZero()||n.uint32(40).uint64(e.delayPeriod),n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);for(i.versions=[];r.pos>>3){case 1:i.clientId=r.string();break;case 2:i.versions.push(t.Version.decode(r,r.uint32()));break;case 3:i.state=r.int32();break;case 4:i.counterparty=t.Counterparty.decode(r,r.uint32());break;case 5:i.delayPeriod=r.uint64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},d);if(n.versions=[],void 0!==e.clientId&&null!==e.clientId?n.clientId=String(e.clientId):n.clientId="",void 0!==e.versions&&null!==e.versions){var a,i=r(e.versions);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.versions.push(t.Version.fromJSON(s))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.state&&null!==e.state?n.state=u(e.state):n.state=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromJSON(e.counterparty):n.counterparty=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?n.delayPeriod=o.default.fromString(e.delayPeriod):n.delayPeriod=o.default.UZERO,n},toJSON:function(e){var n={};return void 0!==e.clientId&&(n.clientId=e.clientId),e.versions?n.versions=e.versions.map((function(e){return e?t.Version.toJSON(e):void 0})):n.versions=[],void 0!==e.state&&(n.state=f(e.state)),void 0!==e.counterparty&&(n.counterparty=e.counterparty?t.Counterparty.toJSON(e.counterparty):void 0),void 0!==e.delayPeriod&&(n.delayPeriod=(e.delayPeriod||o.default.UZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},d);if(n.versions=[],void 0!==e.clientId&&null!==e.clientId?n.clientId=e.clientId:n.clientId="",void 0!==e.versions&&null!==e.versions){var a,i=r(e.versions);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.versions.push(t.Version.fromPartial(s))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.state&&null!==e.state?n.state=e.state:n.state=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromPartial(e.counterparty):n.counterparty=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?n.delayPeriod=e.delayPeriod:n.delayPeriod=o.default.UZERO,n}};var l={id:"",clientId:"",state:0,delayPeriod:o.default.UZERO};t.IdentifiedConnection={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();""!==e.id&&n.uint32(10).string(e.id),""!==e.clientId&&n.uint32(18).string(e.clientId);var a,i=r(e.versions);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.Version.encode(o,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return 0!==e.state&&n.uint32(32).int32(e.state),void 0!==e.counterparty&&t.Counterparty.encode(e.counterparty,n.uint32(42).fork()).ldelim(),e.delayPeriod.isZero()||n.uint32(48).uint64(e.delayPeriod),n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},l);for(i.versions=[];r.pos>>3){case 1:i.id=r.string();break;case 2:i.clientId=r.string();break;case 3:i.versions.push(t.Version.decode(r,r.uint32()));break;case 4:i.state=r.int32();break;case 5:i.counterparty=t.Counterparty.decode(r,r.uint32());break;case 6:i.delayPeriod=r.uint64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},l);if(n.versions=[],void 0!==e.id&&null!==e.id?n.id=String(e.id):n.id="",void 0!==e.clientId&&null!==e.clientId?n.clientId=String(e.clientId):n.clientId="",void 0!==e.versions&&null!==e.versions){var a,i=r(e.versions);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.versions.push(t.Version.fromJSON(s))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.state&&null!==e.state?n.state=u(e.state):n.state=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromJSON(e.counterparty):n.counterparty=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?n.delayPeriod=o.default.fromString(e.delayPeriod):n.delayPeriod=o.default.UZERO,n},toJSON:function(e){var n={};return void 0!==e.id&&(n.id=e.id),void 0!==e.clientId&&(n.clientId=e.clientId),e.versions?n.versions=e.versions.map((function(e){return e?t.Version.toJSON(e):void 0})):n.versions=[],void 0!==e.state&&(n.state=f(e.state)),void 0!==e.counterparty&&(n.counterparty=e.counterparty?t.Counterparty.toJSON(e.counterparty):void 0),void 0!==e.delayPeriod&&(n.delayPeriod=(e.delayPeriod||o.default.UZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},l);if(n.versions=[],void 0!==e.id&&null!==e.id?n.id=e.id:n.id="",void 0!==e.clientId&&null!==e.clientId?n.clientId=e.clientId:n.clientId="",void 0!==e.versions&&null!==e.versions){var a,i=r(e.versions);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.versions.push(t.Version.fromPartial(s))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.state&&null!==e.state?n.state=e.state:n.state=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromPartial(e.counterparty):n.counterparty=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?n.delayPeriod=e.delayPeriod:n.delayPeriod=o.default.UZERO,n}};var p={clientId:"",connectionId:""};t.Counterparty={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.clientId&&t.uint32(10).string(e.clientId),""!==e.connectionId&&t.uint32(18).string(e.connectionId),void 0!==e.prefix&&c.MerklePrefix.encode(e.prefix,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.connectionId=n.string();break;case 3:a.prefix=c.MerklePrefix.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.connectionId&&null!==e.connectionId?t.connectionId=String(e.connectionId):t.connectionId="",void 0!==e.prefix&&null!==e.prefix?t.prefix=c.MerklePrefix.fromJSON(e.prefix):t.prefix=void 0,t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.connectionId&&(t.connectionId=e.connectionId),void 0!==e.prefix&&(t.prefix=e.prefix?c.MerklePrefix.toJSON(e.prefix):void 0),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.connectionId&&null!==e.connectionId?t.connectionId=e.connectionId:t.connectionId="",void 0!==e.prefix&&null!==e.prefix?t.prefix=c.MerklePrefix.fromPartial(e.prefix):t.prefix=void 0,t}};var b={paths:""};t.ClientPaths={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create(),a=r(e.paths);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.paths=[];n.pos>>3==1?a.paths.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},b);if(t.paths=[],void 0!==e.paths&&null!==e.paths){var n,a=r(e.paths);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.paths.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.paths?t.paths=e.paths.map((function(e){return e})):t.paths=[],t},fromPartial:function(e){var t=Object.assign({},b);if(t.paths=[],void 0!==e.paths&&null!==e.paths){var n,a=r(e.paths);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.paths.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var h={clientId:"",paths:""};t.ConnectionPaths={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();""!==e.clientId&&t.uint32(10).string(e.clientId);var n,a=r(e.paths);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(18).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.paths=[];n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.paths.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);if(t.paths=[],void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.paths&&null!==e.paths){var n,a=r(e.paths);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.paths.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),e.paths?t.paths=e.paths.map((function(e){return e})):t.paths=[],t},fromPartial:function(e){var t=Object.assign({},h);if(t.paths=[],void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.paths&&null!==e.paths){var n,a=r(e.paths);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.paths.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var y={identifier:"",features:""};t.Version={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();""!==e.identifier&&t.uint32(10).string(e.identifier);var n,a=r(e.features);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(18).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.features=[];n.pos>>3){case 1:a.identifier=n.string();break;case 2:a.features.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);if(t.features=[],void 0!==e.identifier&&null!==e.identifier?t.identifier=String(e.identifier):t.identifier="",void 0!==e.features&&null!==e.features){var n,a=r(e.features);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.features.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.identifier&&(t.identifier=e.identifier),e.features?t.features=e.features.map((function(e){return e})):t.features=[],t},fromPartial:function(e){var t=Object.assign({},y);if(t.features=[],void 0!==e.identifier&&null!==e.identifier?t.identifier=e.identifier:t.identifier="",void 0!==e.features&&null!==e.features){var n,a=r(e.features);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.features.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var m={maxExpectedTimePerBlock:o.default.UZERO};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return e.maxExpectedTimePerBlock.isZero()||t.uint32(8).uint64(e.maxExpectedTimePerBlock),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3==1?a.maxExpectedTimePerBlock=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.maxExpectedTimePerBlock&&null!==e.maxExpectedTimePerBlock?t.maxExpectedTimePerBlock=o.default.fromString(e.maxExpectedTimePerBlock):t.maxExpectedTimePerBlock=o.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.maxExpectedTimePerBlock&&(t.maxExpectedTimePerBlock=(e.maxExpectedTimePerBlock||o.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.maxExpectedTimePerBlock&&null!==e.maxExpectedTimePerBlock?t.maxExpectedTimePerBlock=e.maxExpectedTimePerBlock:t.maxExpectedTimePerBlock=o.default.UZERO,t}},s.default.util.Long!==o.default&&(s.default.util.Long=o.default,s.default.configure())},52888:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(21146).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgConnectionOpenConfirmDesc=t.MsgConnectionOpenAckDesc=t.MsgConnectionOpenTryDesc=t.MsgConnectionOpenInitDesc=t.MsgDesc=t.MsgClientImpl=t.MsgConnectionOpenConfirmResponse=t.MsgConnectionOpenConfirm=t.MsgConnectionOpenAckResponse=t.MsgConnectionOpenAck=t.MsgConnectionOpenTryResponse=t.MsgConnectionOpenTry=t.MsgConnectionOpenInitResponse=t.MsgConnectionOpenInit=t.protobufPackage=void 0;var s=o(n(12620)),c=n(94680),u=o(n(50904)),f=n(73956),d=n(81019),l=n(39163),p=n(84587);t.protobufPackage="ibc.core.connection.v1";var b={clientId:"",delayPeriod:s.default.UZERO,signer:""};t.MsgConnectionOpenInit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.counterparty&&f.Counterparty.encode(e.counterparty,t.uint32(18).fork()).ldelim(),void 0!==e.version&&f.Version.encode(e.version,t.uint32(26).fork()).ldelim(),e.delayPeriod.isZero()||t.uint32(32).uint64(e.delayPeriod),""!==e.signer&&t.uint32(42).string(e.signer),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.counterparty=f.Counterparty.decode(n,n.uint32());break;case 3:a.version=f.Version.decode(n,n.uint32());break;case 4:a.delayPeriod=n.uint64();break;case 5:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.counterparty&&null!==e.counterparty?t.counterparty=f.Counterparty.fromJSON(e.counterparty):t.counterparty=void 0,void 0!==e.version&&null!==e.version?t.version=f.Version.fromJSON(e.version):t.version=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?t.delayPeriod=s.default.fromString(e.delayPeriod):t.delayPeriod=s.default.UZERO,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.counterparty&&(t.counterparty=e.counterparty?f.Counterparty.toJSON(e.counterparty):void 0),void 0!==e.version&&(t.version=e.version?f.Version.toJSON(e.version):void 0),void 0!==e.delayPeriod&&(t.delayPeriod=(e.delayPeriod||s.default.UZERO).toString()),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.counterparty&&null!==e.counterparty?t.counterparty=f.Counterparty.fromPartial(e.counterparty):t.counterparty=void 0,void 0!==e.version&&null!==e.version?t.version=f.Version.fromPartial(e.version):t.version=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?t.delayPeriod=e.delayPeriod:t.delayPeriod=s.default.UZERO,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var h={};t.MsgConnectionOpenInitResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.clientId&&t.uint32(10).string(e.clientId),""!==e.previousConnectionId&&t.uint32(18).string(e.previousConnectionId),void 0!==e.clientState&&d.Any.encode(e.clientState,t.uint32(26).fork()).ldelim(),void 0!==e.counterparty&&f.Counterparty.encode(e.counterparty,t.uint32(34).fork()).ldelim(),e.delayPeriod.isZero()||t.uint32(40).uint64(e.delayPeriod);var n,r=i(e.counterpartyVersions);try{for(r.s();!(n=r.n()).done;){var a=n.value;f.Version.encode(a,t.uint32(50).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(58).fork()).ldelim(),0!==e.proofInit.length&&t.uint32(66).bytes(e.proofInit),0!==e.proofClient.length&&t.uint32(74).bytes(e.proofClient),0!==e.proofConsensus.length&&t.uint32(82).bytes(e.proofConsensus),void 0!==e.consensusHeight&&l.Height.encode(e.consensusHeight,t.uint32(90).fork()).ldelim(),""!==e.signer&&t.uint32(98).string(e.signer),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.counterpartyVersions=[],a.proofInit=new Uint8Array,a.proofClient=new Uint8Array,a.proofConsensus=new Uint8Array;n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.previousConnectionId=n.string();break;case 3:a.clientState=d.Any.decode(n,n.uint32());break;case 4:a.counterparty=f.Counterparty.decode(n,n.uint32());break;case 5:a.delayPeriod=n.uint64();break;case 6:a.counterpartyVersions.push(f.Version.decode(n,n.uint32()));break;case 7:a.proofHeight=l.Height.decode(n,n.uint32());break;case 8:a.proofInit=n.bytes();break;case 9:a.proofClient=n.bytes();break;case 10:a.proofConsensus=n.bytes();break;case 11:a.consensusHeight=l.Height.decode(n,n.uint32());break;case 12:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);if(t.counterpartyVersions=[],t.proofInit=new Uint8Array,t.proofClient=new Uint8Array,t.proofConsensus=new Uint8Array,void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.previousConnectionId&&null!==e.previousConnectionId?t.previousConnectionId=String(e.previousConnectionId):t.previousConnectionId="",void 0!==e.clientState&&null!==e.clientState?t.clientState=d.Any.fromJSON(e.clientState):t.clientState=void 0,void 0!==e.counterparty&&null!==e.counterparty?t.counterparty=f.Counterparty.fromJSON(e.counterparty):t.counterparty=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?t.delayPeriod=s.default.fromString(e.delayPeriod):t.delayPeriod=s.default.UZERO,void 0!==e.counterpartyVersions&&null!==e.counterpartyVersions){var n,r=i(e.counterpartyVersions);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.counterpartyVersions.push(f.Version.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.proofInit&&null!==e.proofInit&&(t.proofInit=I(e.proofInit)),void 0!==e.proofClient&&null!==e.proofClient&&(t.proofClient=I(e.proofClient)),void 0!==e.proofConsensus&&null!==e.proofConsensus&&(t.proofConsensus=I(e.proofConsensus)),void 0!==e.consensusHeight&&null!==e.consensusHeight?t.consensusHeight=l.Height.fromJSON(e.consensusHeight):t.consensusHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.previousConnectionId&&(t.previousConnectionId=e.previousConnectionId),void 0!==e.clientState&&(t.clientState=e.clientState?d.Any.toJSON(e.clientState):void 0),void 0!==e.counterparty&&(t.counterparty=e.counterparty?f.Counterparty.toJSON(e.counterparty):void 0),void 0!==e.delayPeriod&&(t.delayPeriod=(e.delayPeriod||s.default.UZERO).toString()),e.counterpartyVersions?t.counterpartyVersions=e.counterpartyVersions.map((function(e){return e?f.Version.toJSON(e):void 0})):t.counterpartyVersions=[],void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.proofInit&&(t.proofInit=C(void 0!==e.proofInit?e.proofInit:new Uint8Array)),void 0!==e.proofClient&&(t.proofClient=C(void 0!==e.proofClient?e.proofClient:new Uint8Array)),void 0!==e.proofConsensus&&(t.proofConsensus=C(void 0!==e.proofConsensus?e.proofConsensus:new Uint8Array)),void 0!==e.consensusHeight&&(t.consensusHeight=e.consensusHeight?l.Height.toJSON(e.consensusHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},y);if(t.counterpartyVersions=[],void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.previousConnectionId&&null!==e.previousConnectionId?t.previousConnectionId=e.previousConnectionId:t.previousConnectionId="",void 0!==e.clientState&&null!==e.clientState?t.clientState=d.Any.fromPartial(e.clientState):t.clientState=void 0,void 0!==e.counterparty&&null!==e.counterparty?t.counterparty=f.Counterparty.fromPartial(e.counterparty):t.counterparty=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?t.delayPeriod=e.delayPeriod:t.delayPeriod=s.default.UZERO,void 0!==e.counterpartyVersions&&null!==e.counterpartyVersions){var n,r=i(e.counterpartyVersions);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.counterpartyVersions.push(f.Version.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.proofInit&&null!==e.proofInit?t.proofInit=e.proofInit:t.proofInit=new Uint8Array,void 0!==e.proofClient&&null!==e.proofClient?t.proofClient=e.proofClient:t.proofClient=new Uint8Array,void 0!==e.proofConsensus&&null!==e.proofConsensus?t.proofConsensus=e.proofConsensus:t.proofConsensus=new Uint8Array,void 0!==e.consensusHeight&&null!==e.consensusHeight?t.consensusHeight=l.Height.fromPartial(e.consensusHeight):t.consensusHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var m={};t.MsgConnectionOpenTryResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.connectionId&&t.uint32(10).string(e.connectionId),""!==e.counterpartyConnectionId&&t.uint32(18).string(e.counterpartyConnectionId),void 0!==e.version&&f.Version.encode(e.version,t.uint32(26).fork()).ldelim(),void 0!==e.clientState&&d.Any.encode(e.clientState,t.uint32(34).fork()).ldelim(),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(42).fork()).ldelim(),0!==e.proofTry.length&&t.uint32(50).bytes(e.proofTry),0!==e.proofClient.length&&t.uint32(58).bytes(e.proofClient),0!==e.proofConsensus.length&&t.uint32(66).bytes(e.proofConsensus),void 0!==e.consensusHeight&&l.Height.encode(e.consensusHeight,t.uint32(74).fork()).ldelim(),""!==e.signer&&t.uint32(82).string(e.signer),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.proofTry=new Uint8Array,a.proofClient=new Uint8Array,a.proofConsensus=new Uint8Array;n.pos>>3){case 1:a.connectionId=n.string();break;case 2:a.counterpartyConnectionId=n.string();break;case 3:a.version=f.Version.decode(n,n.uint32());break;case 4:a.clientState=d.Any.decode(n,n.uint32());break;case 5:a.proofHeight=l.Height.decode(n,n.uint32());break;case 6:a.proofTry=n.bytes();break;case 7:a.proofClient=n.bytes();break;case 8:a.proofConsensus=n.bytes();break;case 9:a.consensusHeight=l.Height.decode(n,n.uint32());break;case 10:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return t.proofTry=new Uint8Array,t.proofClient=new Uint8Array,t.proofConsensus=new Uint8Array,void 0!==e.connectionId&&null!==e.connectionId?t.connectionId=String(e.connectionId):t.connectionId="",void 0!==e.counterpartyConnectionId&&null!==e.counterpartyConnectionId?t.counterpartyConnectionId=String(e.counterpartyConnectionId):t.counterpartyConnectionId="",void 0!==e.version&&null!==e.version?t.version=f.Version.fromJSON(e.version):t.version=void 0,void 0!==e.clientState&&null!==e.clientState?t.clientState=d.Any.fromJSON(e.clientState):t.clientState=void 0,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.proofTry&&null!==e.proofTry&&(t.proofTry=I(e.proofTry)),void 0!==e.proofClient&&null!==e.proofClient&&(t.proofClient=I(e.proofClient)),void 0!==e.proofConsensus&&null!==e.proofConsensus&&(t.proofConsensus=I(e.proofConsensus)),void 0!==e.consensusHeight&&null!==e.consensusHeight?t.consensusHeight=l.Height.fromJSON(e.consensusHeight):t.consensusHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.connectionId&&(t.connectionId=e.connectionId),void 0!==e.counterpartyConnectionId&&(t.counterpartyConnectionId=e.counterpartyConnectionId),void 0!==e.version&&(t.version=e.version?f.Version.toJSON(e.version):void 0),void 0!==e.clientState&&(t.clientState=e.clientState?d.Any.toJSON(e.clientState):void 0),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.proofTry&&(t.proofTry=C(void 0!==e.proofTry?e.proofTry:new Uint8Array)),void 0!==e.proofClient&&(t.proofClient=C(void 0!==e.proofClient?e.proofClient:new Uint8Array)),void 0!==e.proofConsensus&&(t.proofConsensus=C(void 0!==e.proofConsensus?e.proofConsensus:new Uint8Array)),void 0!==e.consensusHeight&&(t.consensusHeight=e.consensusHeight?l.Height.toJSON(e.consensusHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.connectionId&&null!==e.connectionId?t.connectionId=e.connectionId:t.connectionId="",void 0!==e.counterpartyConnectionId&&null!==e.counterpartyConnectionId?t.counterpartyConnectionId=e.counterpartyConnectionId:t.counterpartyConnectionId="",void 0!==e.version&&null!==e.version?t.version=f.Version.fromPartial(e.version):t.version=void 0,void 0!==e.clientState&&null!==e.clientState?t.clientState=d.Any.fromPartial(e.clientState):t.clientState=void 0,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.proofTry&&null!==e.proofTry?t.proofTry=e.proofTry:t.proofTry=new Uint8Array,void 0!==e.proofClient&&null!==e.proofClient?t.proofClient=e.proofClient:t.proofClient=new Uint8Array,void 0!==e.proofConsensus&&null!==e.proofConsensus?t.proofConsensus=e.proofConsensus:t.proofConsensus=new Uint8Array,void 0!==e.consensusHeight&&null!==e.consensusHeight?t.consensusHeight=l.Height.fromPartial(e.consensusHeight):t.consensusHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var g={};t.MsgConnectionOpenAckResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.connectionId&&t.uint32(10).string(e.connectionId),0!==e.proofAck.length&&t.uint32(18).bytes(e.proofAck),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),""!==e.signer&&t.uint32(34).string(e.signer),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.proofAck=new Uint8Array;n.pos>>3){case 1:a.connectionId=n.string();break;case 2:a.proofAck=n.bytes();break;case 3:a.proofHeight=l.Height.decode(n,n.uint32());break;case 4:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return t.proofAck=new Uint8Array,void 0!==e.connectionId&&null!==e.connectionId?t.connectionId=String(e.connectionId):t.connectionId="",void 0!==e.proofAck&&null!==e.proofAck&&(t.proofAck=I(e.proofAck)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.connectionId&&(t.connectionId=e.connectionId),void 0!==e.proofAck&&(t.proofAck=C(void 0!==e.proofAck?e.proofAck:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.connectionId&&null!==e.connectionId?t.connectionId=e.connectionId:t.connectionId="",void 0!==e.proofAck&&null!==e.proofAck?t.proofAck=e.proofAck:t.proofAck=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var w={};t.MsgConnectionOpenConfirmResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.chainId&&n.uint32(10).string(e.chainId),void 0!==e.trustLevel&&t.Fraction.encode(e.trustLevel,n.uint32(18).fork()).ldelim(),void 0!==e.trustingPeriod&&s.Duration.encode(e.trustingPeriod,n.uint32(26).fork()).ldelim(),void 0!==e.unbondingPeriod&&s.Duration.encode(e.unbondingPeriod,n.uint32(34).fork()).ldelim(),void 0!==e.maxClockDrift&&s.Duration.encode(e.maxClockDrift,n.uint32(42).fork()).ldelim(),void 0!==e.frozenHeight&&c.Height.encode(e.frozenHeight,n.uint32(50).fork()).ldelim(),void 0!==e.latestHeight&&c.Height.encode(e.latestHeight,n.uint32(58).fork()).ldelim();var a,i=r(e.proofSpecs);try{for(i.s();!(a=i.n()).done;){var u=a.value;p.ProofSpec.encode(u,n.uint32(66).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}var f,d=r(e.upgradePath);try{for(d.s();!(f=d.n()).done;){var l=f.value;n.uint32(74).string(l)}}catch(e){d.e(e)}finally{d.f()}return!0===e.allowUpdateAfterExpiry&&n.uint32(80).bool(e.allowUpdateAfterExpiry),!0===e.allowUpdateAfterMisbehaviour&&n.uint32(88).bool(e.allowUpdateAfterMisbehaviour),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);for(i.proofSpecs=[],i.upgradePath=[];r.pos>>3){case 1:i.chainId=r.string();break;case 2:i.trustLevel=t.Fraction.decode(r,r.uint32());break;case 3:i.trustingPeriod=s.Duration.decode(r,r.uint32());break;case 4:i.unbondingPeriod=s.Duration.decode(r,r.uint32());break;case 5:i.maxClockDrift=s.Duration.decode(r,r.uint32());break;case 6:i.frozenHeight=c.Height.decode(r,r.uint32());break;case 7:i.latestHeight=c.Height.decode(r,r.uint32());break;case 8:i.proofSpecs.push(p.ProofSpec.decode(r,r.uint32()));break;case 9:i.upgradePath.push(r.string());break;case 10:i.allowUpdateAfterExpiry=r.bool();break;case 11:i.allowUpdateAfterMisbehaviour=r.bool();break;default:r.skipType(7&u)}}return i},fromJSON:function(e){var n=Object.assign({},b);if(n.proofSpecs=[],n.upgradePath=[],void 0!==e.chainId&&null!==e.chainId?n.chainId=String(e.chainId):n.chainId="",void 0!==e.trustLevel&&null!==e.trustLevel?n.trustLevel=t.Fraction.fromJSON(e.trustLevel):n.trustLevel=void 0,void 0!==e.trustingPeriod&&null!==e.trustingPeriod?n.trustingPeriod=s.Duration.fromJSON(e.trustingPeriod):n.trustingPeriod=void 0,void 0!==e.unbondingPeriod&&null!==e.unbondingPeriod?n.unbondingPeriod=s.Duration.fromJSON(e.unbondingPeriod):n.unbondingPeriod=void 0,void 0!==e.maxClockDrift&&null!==e.maxClockDrift?n.maxClockDrift=s.Duration.fromJSON(e.maxClockDrift):n.maxClockDrift=void 0,void 0!==e.frozenHeight&&null!==e.frozenHeight?n.frozenHeight=c.Height.fromJSON(e.frozenHeight):n.frozenHeight=void 0,void 0!==e.latestHeight&&null!==e.latestHeight?n.latestHeight=c.Height.fromJSON(e.latestHeight):n.latestHeight=void 0,void 0!==e.proofSpecs&&null!==e.proofSpecs){var a,i=r(e.proofSpecs);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.proofSpecs.push(p.ProofSpec.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}if(void 0!==e.upgradePath&&null!==e.upgradePath){var u,f=r(e.upgradePath);try{for(f.s();!(u=f.n()).done;){var d=u.value;n.upgradePath.push(String(d))}}catch(e){f.e(e)}finally{f.f()}}return void 0!==e.allowUpdateAfterExpiry&&null!==e.allowUpdateAfterExpiry?n.allowUpdateAfterExpiry=Boolean(e.allowUpdateAfterExpiry):n.allowUpdateAfterExpiry=!1,void 0!==e.allowUpdateAfterMisbehaviour&&null!==e.allowUpdateAfterMisbehaviour?n.allowUpdateAfterMisbehaviour=Boolean(e.allowUpdateAfterMisbehaviour):n.allowUpdateAfterMisbehaviour=!1,n},toJSON:function(e){var n={};return void 0!==e.chainId&&(n.chainId=e.chainId),void 0!==e.trustLevel&&(n.trustLevel=e.trustLevel?t.Fraction.toJSON(e.trustLevel):void 0),void 0!==e.trustingPeriod&&(n.trustingPeriod=e.trustingPeriod?s.Duration.toJSON(e.trustingPeriod):void 0),void 0!==e.unbondingPeriod&&(n.unbondingPeriod=e.unbondingPeriod?s.Duration.toJSON(e.unbondingPeriod):void 0),void 0!==e.maxClockDrift&&(n.maxClockDrift=e.maxClockDrift?s.Duration.toJSON(e.maxClockDrift):void 0),void 0!==e.frozenHeight&&(n.frozenHeight=e.frozenHeight?c.Height.toJSON(e.frozenHeight):void 0),void 0!==e.latestHeight&&(n.latestHeight=e.latestHeight?c.Height.toJSON(e.latestHeight):void 0),e.proofSpecs?n.proofSpecs=e.proofSpecs.map((function(e){return e?p.ProofSpec.toJSON(e):void 0})):n.proofSpecs=[],e.upgradePath?n.upgradePath=e.upgradePath.map((function(e){return e})):n.upgradePath=[],void 0!==e.allowUpdateAfterExpiry&&(n.allowUpdateAfterExpiry=e.allowUpdateAfterExpiry),void 0!==e.allowUpdateAfterMisbehaviour&&(n.allowUpdateAfterMisbehaviour=e.allowUpdateAfterMisbehaviour),n},fromPartial:function(e){var n=Object.assign({},b);if(n.proofSpecs=[],n.upgradePath=[],void 0!==e.chainId&&null!==e.chainId?n.chainId=e.chainId:n.chainId="",void 0!==e.trustLevel&&null!==e.trustLevel?n.trustLevel=t.Fraction.fromPartial(e.trustLevel):n.trustLevel=void 0,void 0!==e.trustingPeriod&&null!==e.trustingPeriod?n.trustingPeriod=s.Duration.fromPartial(e.trustingPeriod):n.trustingPeriod=void 0,void 0!==e.unbondingPeriod&&null!==e.unbondingPeriod?n.unbondingPeriod=s.Duration.fromPartial(e.unbondingPeriod):n.unbondingPeriod=void 0,void 0!==e.maxClockDrift&&null!==e.maxClockDrift?n.maxClockDrift=s.Duration.fromPartial(e.maxClockDrift):n.maxClockDrift=void 0,void 0!==e.frozenHeight&&null!==e.frozenHeight?n.frozenHeight=c.Height.fromPartial(e.frozenHeight):n.frozenHeight=void 0,void 0!==e.latestHeight&&null!==e.latestHeight?n.latestHeight=c.Height.fromPartial(e.latestHeight):n.latestHeight=void 0,void 0!==e.proofSpecs&&null!==e.proofSpecs){var a,i=r(e.proofSpecs);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.proofSpecs.push(p.ProofSpec.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}if(void 0!==e.upgradePath&&null!==e.upgradePath){var u,f=r(e.upgradePath);try{for(f.s();!(u=f.n()).done;){var d=u.value;n.upgradePath.push(d)}}catch(e){f.e(e)}finally{f.f()}}return void 0!==e.allowUpdateAfterExpiry&&null!==e.allowUpdateAfterExpiry?n.allowUpdateAfterExpiry=e.allowUpdateAfterExpiry:n.allowUpdateAfterExpiry=!1,void 0!==e.allowUpdateAfterMisbehaviour&&null!==e.allowUpdateAfterMisbehaviour?n.allowUpdateAfterMisbehaviour=e.allowUpdateAfterMisbehaviour:n.allowUpdateAfterMisbehaviour=!1,n}};var h={};t.ConsensusState={encode:function(e){var t,n,r,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.timestamp&&l.Timestamp.encode((t=e.timestamp,a=t.getTime()/1e3,n=i.default.fromNumber(a),r=t.getTime()%1e3*1e6,{seconds:n,nanos:r}),s.uint32(10).fork()).ldelim(),void 0!==e.root&&u.MerkleRoot.encode(e.root,s.uint32(18).fork()).ldelim(),0!==e.nextValidatorsHash.length&&s.uint32(26).bytes(e.nextValidatorsHash),s},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.nextValidatorsHash=new Uint8Array;n.pos>>3){case 1:a.timestamp=x(l.Timestamp.decode(n,n.uint32()));break;case 2:a.root=u.MerkleRoot.decode(n,n.uint32());break;case 3:a.nextValidatorsHash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t,n=Object.assign({},h);return n.nextValidatorsHash=new Uint8Array,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=(t=e.timestamp)instanceof Date?t:"string"==typeof t?new Date(t):x(l.Timestamp.fromJSON(t)):n.timestamp=void 0,void 0!==e.root&&null!==e.root?n.root=u.MerkleRoot.fromJSON(e.root):n.root=void 0,void 0!==e.nextValidatorsHash&&null!==e.nextValidatorsHash&&(n.nextValidatorsHash=function(e){for(var t=A(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.clientId&&n.uint32(10).string(e.clientId),void 0!==e.header1&&t.Header.encode(e.header1,n.uint32(18).fork()).ldelim(),void 0!==e.header2&&t.Header.encode(e.header2,n.uint32(26).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},y);r.pos>>3){case 1:i.clientId=r.string();break;case 2:i.header1=t.Header.decode(r,r.uint32());break;case 3:i.header2=t.Header.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},y);return void 0!==e.clientId&&null!==e.clientId?n.clientId=String(e.clientId):n.clientId="",void 0!==e.header1&&null!==e.header1?n.header1=t.Header.fromJSON(e.header1):n.header1=void 0,void 0!==e.header2&&null!==e.header2?n.header2=t.Header.fromJSON(e.header2):n.header2=void 0,n},toJSON:function(e){var n={};return void 0!==e.clientId&&(n.clientId=e.clientId),void 0!==e.header1&&(n.header1=e.header1?t.Header.toJSON(e.header1):void 0),void 0!==e.header2&&(n.header2=e.header2?t.Header.toJSON(e.header2):void 0),n},fromPartial:function(e){var n=Object.assign({},y);return void 0!==e.clientId&&null!==e.clientId?n.clientId=e.clientId:n.clientId="",void 0!==e.header1&&null!==e.header1?n.header1=t.Header.fromPartial(e.header1):n.header1=void 0,void 0!==e.header2&&null!==e.header2?n.header2=t.Header.fromPartial(e.header2):n.header2=void 0,n}};var m={};t.Header={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.signedHeader&&f.SignedHeader.encode(e.signedHeader,t.uint32(10).fork()).ldelim(),void 0!==e.validatorSet&&d.ValidatorSet.encode(e.validatorSet,t.uint32(18).fork()).ldelim(),void 0!==e.trustedHeight&&c.Height.encode(e.trustedHeight,t.uint32(26).fork()).ldelim(),void 0!==e.trustedValidators&&d.ValidatorSet.encode(e.trustedValidators,t.uint32(34).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3){case 1:a.signedHeader=f.SignedHeader.decode(n,n.uint32());break;case 2:a.validatorSet=d.ValidatorSet.decode(n,n.uint32());break;case 3:a.trustedHeight=c.Height.decode(n,n.uint32());break;case 4:a.trustedValidators=d.ValidatorSet.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.signedHeader&&null!==e.signedHeader?t.signedHeader=f.SignedHeader.fromJSON(e.signedHeader):t.signedHeader=void 0,void 0!==e.validatorSet&&null!==e.validatorSet?t.validatorSet=d.ValidatorSet.fromJSON(e.validatorSet):t.validatorSet=void 0,void 0!==e.trustedHeight&&null!==e.trustedHeight?t.trustedHeight=c.Height.fromJSON(e.trustedHeight):t.trustedHeight=void 0,void 0!==e.trustedValidators&&null!==e.trustedValidators?t.trustedValidators=d.ValidatorSet.fromJSON(e.trustedValidators):t.trustedValidators=void 0,t},toJSON:function(e){var t={};return void 0!==e.signedHeader&&(t.signedHeader=e.signedHeader?f.SignedHeader.toJSON(e.signedHeader):void 0),void 0!==e.validatorSet&&(t.validatorSet=e.validatorSet?d.ValidatorSet.toJSON(e.validatorSet):void 0),void 0!==e.trustedHeight&&(t.trustedHeight=e.trustedHeight?c.Height.toJSON(e.trustedHeight):void 0),void 0!==e.trustedValidators&&(t.trustedValidators=e.trustedValidators?d.ValidatorSet.toJSON(e.trustedValidators):void 0),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.signedHeader&&null!==e.signedHeader?t.signedHeader=f.SignedHeader.fromPartial(e.signedHeader):t.signedHeader=void 0,void 0!==e.validatorSet&&null!==e.validatorSet?t.validatorSet=d.ValidatorSet.fromPartial(e.validatorSet):t.validatorSet=void 0,void 0!==e.trustedHeight&&null!==e.trustedHeight?t.trustedHeight=c.Height.fromPartial(e.trustedHeight):t.trustedHeight=void 0,void 0!==e.trustedValidators&&null!==e.trustedValidators?t.trustedValidators=d.ValidatorSet.fromPartial(e.trustedValidators):t.trustedValidators=void 0,t}};var v={numerator:i.default.UZERO,denominator:i.default.UZERO};t.Fraction={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.numerator.isZero()||t.uint32(8).uint64(e.numerator),e.denominator.isZero()||t.uint32(16).uint64(e.denominator),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3){case 1:a.numerator=n.uint64();break;case 2:a.denominator=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.numerator&&null!==e.numerator?t.numerator=i.default.fromString(e.numerator):t.numerator=i.default.UZERO,void 0!==e.denominator&&null!==e.denominator?t.denominator=i.default.fromString(e.denominator):t.denominator=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.numerator&&(t.numerator=(e.numerator||i.default.UZERO).toString()),void 0!==e.denominator&&(t.denominator=(e.denominator||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.numerator&&null!==e.numerator?t.numerator=e.numerator:t.numerator=i.default.UZERO,void 0!==e.denominator&&null!==e.denominator?t.denominator=e.denominator:t.denominator=i.default.UZERO,t}};var g=function(){if(void 0!==g)return g;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),A=g.atob||function(e){return g.Buffer.from(e,"base64").toString("binary")},w=g.btoa||function(e){return g.Buffer.from(e,"binary").toString("base64")};function x(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},94680:function(e){var t,n;e.exports=(t={418:function(e,t){!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={splitValues:!1});var n,a=this;this.headersMap={},e&&("undefined"!=typeof Headers&&e instanceof Headers?r.getHeaderKeys(e).forEach((function(n){r.getHeaderValues(e,n).forEach((function(e){t.splitValues?a.append(n,r.splitHeaderValue(e)):a.append(n,e)}))})):"object"==typeof(n=e)&&"object"==typeof n.headersMap&&"function"==typeof n.forEach?e.forEach((function(e,t){a.append(e,t)})):"undefined"!=typeof Map&&e instanceof Map?e.forEach((function(e,t){a.append(t,e)})):"string"==typeof e?this.appendFromString(e):"object"==typeof e&&Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];Array.isArray(n)?n.forEach((function(e){a.append(t,e)})):a.append(t,n)})))}return e.prototype.appendFromString=function(e){for(var t=e.split("\r\n"),n=0;n0){var i=r.substring(0,a).trim(),o=r.substring(a+1).trim();this.append(i,o)}}},e.prototype.delete=function(e,t){var n=r.normalizeName(e);if(void 0===t)delete this.headersMap[n];else{var a=this.headersMap[n];if(a){var i=a.indexOf(t);i>=0&&a.splice(i,1),0===a.length&&delete this.headersMap[n]}}},e.prototype.append=function(e,t){var n=this,a=r.normalizeName(e);Array.isArray(this.headersMap[a])||(this.headersMap[a]=[]),Array.isArray(t)?t.forEach((function(e){n.headersMap[a].push(r.normalizeValue(e))})):this.headersMap[a].push(r.normalizeValue(t))},e.prototype.set=function(e,t){var n=r.normalizeName(e);if(Array.isArray(t)){var a=[];t.forEach((function(e){a.push(r.normalizeValue(e))})),this.headersMap[n]=a}else this.headersMap[n]=[r.normalizeValue(t)]},e.prototype.has=function(e,t){var n=this.headersMap[r.normalizeName(e)];if(!Array.isArray(n))return!1;if(void 0!==t){var a=r.normalizeValue(t);return n.indexOf(a)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[r.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach((function(n){e(n,t.headersMap[n])}),this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach((function(t,n){n.forEach((function(n){e.append(t,n)}))})),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.BrowserHeaders=r.BrowserHeaders},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var n=e[Symbol.iterator](),r=n.next();!r.done;)t(r.value[0]),r=n.next()},t.iterateHeadersKeys=function(e,t){for(var n=e.keys(),r=n.next();!r.done;)t(r.value),r=n.next()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var n=e;if(n instanceof Headers&&n.getAll)return n.getAll(t);var r=n.get(t);return r&&"string"==typeof r?[r]:r},t.getHeaderKeys=function(e){var t=e,n={},a=[];return t.keys?r.iterateHeadersKeys(t,(function(e){n[e]||(n[e]=!0,a.push(e))})):t.forEach?t.forEach((function(e,t){n[t]||(n[t]=!0,a.push(t))})):r.iterateHeaders(t,(function(e){var t=e[0];n[t]||(n[t]=!0,a.push(t))})),a},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach((function(e){e.split(",").forEach((function(e){t.push(e)}))})),t}}]))},617:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkParser=t.ChunkType=t.encodeASCII=t.decodeASCII=void 0;var r,a=n(65);function i(e){return 9===(t=e)||10===t||13===t||e>=32&&e<=126;var t}function o(e){for(var t=0;t!==e.length;++t)if(!i(e[t]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(e))}function s(e){return 128==(128&e.getUint8(0))}function c(e){return e.getUint32(1,!1)}function u(e,t,n){return e.byteLength-t>=n}function f(e,t,n){if(e.slice)return e.slice(t,n);var r=e.length;void 0!==n&&(r=n);for(var a=new Uint8Array(r-t),i=0,o=t;o=0?n:i.httpStatusToCode(t);this.props.debug&&o.debug("onHeaders.code",r);var a=e.get("grpc-message")||[];if(this.props.debug&&o.debug("onHeaders.gRPCMessage",a),this.rawOnHeaders(e),r!==i.Code.OK){var s=this.decodeGRPCStatus(a[0]);this.rawOnError(r,s,e)}}},e.prototype.onTransportChunk=function(e){var t=this;if(this.closed)this.props.debug&&o.debug("grpc.onChunk received after request was closed - ignoring");else{var n=[];try{n=this.parser.parse(e)}catch(e){return this.props.debug&&o.debug("onChunk.parsing error",e,e.message),void this.rawOnError(i.Code.Internal,"parsing error: "+e.message)}n.forEach((function(e){if(e.chunkType===a.ChunkType.MESSAGE){var n=t.methodDefinition.responseType.deserializeBinary(e.data);t.rawOnMessage(n)}else e.chunkType===a.ChunkType.TRAILERS&&(t.responseHeaders?(t.responseTrailers=new r.Metadata(e.trailers),t.props.debug&&o.debug("onChunk.trailers",t.responseTrailers)):(t.responseHeaders=new r.Metadata(e.trailers),t.rawOnHeaders(t.responseHeaders)))}))}},e.prototype.onTransportEnd=function(){if(this.props.debug&&o.debug("grpc.onEnd"),this.closed)this.props.debug&&o.debug("grpc.onEnd received after request was closed - ignoring");else if(void 0!==this.responseTrailers){var e=f(this.responseTrailers);if(null!==e){var t=this.responseTrailers.get("grpc-message"),n=this.decodeGRPCStatus(t[0]);this.rawOnEnd(e,n,this.responseTrailers)}else this.rawOnError(i.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(void 0===this.responseHeaders)return void this.rawOnError(i.Code.Unknown,"Response closed without headers");var r=f(this.responseHeaders),a=this.responseHeaders.get("grpc-message");if(this.props.debug&&o.debug("grpc.headers only response ",r,a),null===r)return void this.rawOnEnd(i.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var s=this.decodeGRPCStatus(a[0]);this.rawOnEnd(r,s,this.responseHeaders)}},e.prototype.decodeGRPCStatus=function(e){if(!e)return"";try{return decodeURIComponent(e)}catch(t){return e}},e.prototype.rawOnEnd=function(e,t,n){var r=this;this.props.debug&&o.debug("rawOnEnd",e,t,n),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(a){if(!r.closed)try{a(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnHeaders=function(e){this.props.debug&&o.debug("rawOnHeaders",e),this.completed||this.onHeadersCallbacks.forEach((function(t){try{t(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.rawOnError=function(e,t,n){var a=this;void 0===n&&(n=new r.Metadata),this.props.debug&&o.debug("rawOnError",e,t),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(r){if(!a.closed)try{r(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnMessage=function(e){var t=this;this.props.debug&&o.debug("rawOnMessage",e.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach((function(n){if(!t.closed)try{n(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.onHeaders=function(e){this.onHeadersCallbacks.push(e)},e.prototype.onMessage=function(e){this.onMessageCallbacks.push(e)},e.prototype.onEnd=function(e){this.onEndCallbacks.push(e)},e.prototype.start=function(e){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var t=new r.Metadata(e||{});t.set("content-type","application/grpc-web+proto"),t.set("x-grpc-web","1"),this.transport.start(t)},e.prototype.send=function(e){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var t=c.frameRequest(e);this.transport.sendMessage(t)},e.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},e.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&o.debug("request.abort aborting request"),this.transport.cancel()},e}();function f(e){var t=e.get("grpc-status")||[];if(t.length>0)try{var n=t[0];return parseInt(n,10)}catch(e){return null}return null}},346:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debug=void 0,t.debug=function(){for(var e=[],t=0;t=55296&&n<=56319){var r=e.charCodeAt(t+1);r>=56320&&r<=57343&&(n=65536+(n-55296<<10)+(r-56320))}return n}function d(e){for(var t=new Uint8Array(e.length),n=0,r=0;r "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u,f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},d=function(){return a.Buffer?function(e){return(c.create=function(e){return a.Buffer.isBuffer(e)?new r(e):f(e)})(e)}:f};function l(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function p(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function b(){if(this.pos+8>this.len)throw s(this,8);return new i(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}c.create=d(),c.prototype._slice=a.Array.prototype.subarray||a.Array.prototype.slice,c.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return u}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return p(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|p(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=a.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=a.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return o.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){r=e,c.create=d(),r._configure();var t=a.Long?"toLong":"toNumber";a.merge(c.prototype,{int64:function(){return l.call(this)[t](!1)},uint64:function(){return l.call(this)[t](!0)},sint64:function(){return l.call(this).zzDecode()[t](!1)},fixed64:function(){return b.call(this)[t](!0)},sfixed64:function(){return b.call(this)[t](!1)}})}},18377:function(e,t,n){"use strict";e.exports=i;var r=n(64484);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(22525);function i(e){r.call(this,e)}i._configure=function(){a.Buffer&&(i.prototype._slice=a.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},91735:function(e){"use strict";e.exports={}},74365:function(e,t,n){"use strict";t.Service=n(2261)},2261:function(e,t,n){"use strict";e.exports=a;var r=n(22525);function a(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(a.prototype=Object.create(r.EventEmitter.prototype)).constructor=a,a.prototype.rpcCall=function e(t,n,a,i,o){if(!i)throw TypeError("request must be specified");var s=this;if(!o)return r.asPromise(e,s,t,n,a,i);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,n){if(e)return s.emit("error",e,t),o(e);if(null!==n){if(!(n instanceof a))try{n=a[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),o(e)}return s.emit("data",n,t),o(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){o(e)}),0)}else setTimeout((function(){o(Error("already ended"))}),0)},a.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},73130:function(e,t,n){"use strict";e.exports=a;var r=n(22525);function a(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=a.zero=new a(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var o=a.zeroHash="\0\0\0\0\0\0\0\0";a.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new a(n,r)},a.from=function(e){if("number"==typeof e)return a.fromNumber(e);if(r.isString(e)){if(!r.Long)return a.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new a(e.low>>>0,e.high>>>0):i},a.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},a.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;a.fromHash=function(e){return e===o?i:new a((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},a.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},a.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},a.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},a.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},22525:function(e,t,n){"use strict";var r=t;function a(e,t,n){for(var r=Object.keys(t),a=0;a0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=a,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function y(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}d.create=l(),d.alloc=function(e){return new a.Array(e)},a.Array!==Array&&(d.alloc=a.pool(d.alloc,a.Array.prototype.subarray)),d.prototype._push=function(e,t,n){return this.tail=this.tail.next=new c(e,t,n),this.len+=t,this},b.prototype=Object.create(c.prototype),b.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new b((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(h,10,i.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=i.from(e);return this._push(h,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(h,t.length(),t)},d.prototype.bool=function(e){return this._push(p,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(y,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=i.from(e);return this._push(y,4,t.lo)._push(y,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(a.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(a.float.writeDoubleLE,8,e)};var m=a.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(p,1,0);if(a.isString(e)){var n=d.alloc(t=o.length(e));o.decode(e,n,0),e=n}return this.uint32(t)._push(m,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(p,1,0)},d.prototype.fork=function(){return this.states=new f(this),this.head=this.tail=new c(u,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},d._configure=function(e){r=e,d.create=l(),r._configure()}},54086:function(e,t,n){"use strict";e.exports=i;var r=n(73227);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(22525);function i(){r.call(this)}function o(e,t,n){e.length<40?a.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i._configure=function(){i.alloc=a._Buffer_allocUnsafe,i.writeBytesBuffer=a.Buffer&&a.Buffer.prototype instanceof Uint8Array&&"set"===a.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=a.Buffer.byteLength(e);return this.uint32(t),t&&this._push(o,t,e),this},i._configure()},53112:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(21146).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.ABCIApplicationApplySnapshotChunkDesc=t.ABCIApplicationLoadSnapshotChunkDesc=t.ABCIApplicationOfferSnapshotDesc=t.ABCIApplicationListSnapshotsDesc=t.ABCIApplicationEndBlockDesc=t.ABCIApplicationBeginBlockDesc=t.ABCIApplicationInitChainDesc=t.ABCIApplicationCommitDesc=t.ABCIApplicationQueryDesc=t.ABCIApplicationCheckTxDesc=t.ABCIApplicationDeliverTxDesc=t.ABCIApplicationSetOptionDesc=t.ABCIApplicationInfoDesc=t.ABCIApplicationFlushDesc=t.ABCIApplicationEchoDesc=t.ABCIApplicationDesc=t.ABCIApplicationClientImpl=t.Snapshot=t.Evidence=t.VoteInfo=t.ValidatorUpdate=t.Validator=t.TxResult=t.EventAttribute=t.Event=t.LastCommitInfo=t.BlockParams=t.ConsensusParams=t.ResponseApplySnapshotChunk=t.ResponseLoadSnapshotChunk=t.ResponseOfferSnapshot=t.ResponseListSnapshots=t.ResponseCommit=t.ResponseEndBlock=t.ResponseDeliverTx=t.ResponseCheckTx=t.ResponseBeginBlock=t.ResponseQuery=t.ResponseInitChain=t.ResponseSetOption=t.ResponseInfo=t.ResponseFlush=t.ResponseEcho=t.ResponseException=t.Response=t.RequestApplySnapshotChunk=t.RequestLoadSnapshotChunk=t.RequestOfferSnapshot=t.RequestListSnapshots=t.RequestCommit=t.RequestEndBlock=t.RequestDeliverTx=t.RequestCheckTx=t.RequestBeginBlock=t.RequestQuery=t.RequestInitChain=t.RequestSetOption=t.RequestInfo=t.RequestFlush=t.RequestEcho=t.Request=t.responseApplySnapshotChunk_ResultToJSON=t.responseApplySnapshotChunk_ResultFromJSON=t.ResponseApplySnapshotChunk_Result=t.responseOfferSnapshot_ResultToJSON=t.responseOfferSnapshot_ResultFromJSON=t.ResponseOfferSnapshot_Result=t.evidenceTypeToJSON=t.evidenceTypeFromJSON=t.EvidenceType=t.checkTxTypeToJSON=t.checkTxTypeFromJSON=t.CheckTxType=t.protobufPackage=void 0;var s,c,u,f,d=o(n(12620)),l=n(94680),p=o(n(50904)),b=n(73921),h=n(4058),y=n(76826),m=n(14484),v=n(84587),g=n(55120);function A(e){switch(e){case 0:case"NEW":return s.NEW;case 1:case"RECHECK":return s.RECHECK;default:return s.UNRECOGNIZED}}function w(e){switch(e){case s.NEW:return"NEW";case s.RECHECK:return"RECHECK";default:return"UNKNOWN"}}function x(e){switch(e){case 0:case"UNKNOWN":return c.UNKNOWN;case 1:case"DUPLICATE_VOTE":return c.DUPLICATE_VOTE;case 2:case"LIGHT_CLIENT_ATTACK":return c.LIGHT_CLIENT_ATTACK;default:return c.UNRECOGNIZED}}function _(e){switch(e){case c.UNKNOWN:return"UNKNOWN";case c.DUPLICATE_VOTE:return"DUPLICATE_VOTE";case c.LIGHT_CLIENT_ATTACK:return"LIGHT_CLIENT_ATTACK";default:return"UNKNOWN"}}function k(e){switch(e){case 0:case"UNKNOWN":return u.UNKNOWN;case 1:case"ACCEPT":return u.ACCEPT;case 2:case"ABORT":return u.ABORT;case 3:case"REJECT":return u.REJECT;case 4:case"REJECT_FORMAT":return u.REJECT_FORMAT;case 5:case"REJECT_SENDER":return u.REJECT_SENDER;default:return u.UNRECOGNIZED}}function S(e){switch(e){case u.UNKNOWN:return"UNKNOWN";case u.ACCEPT:return"ACCEPT";case u.ABORT:return"ABORT";case u.REJECT:return"REJECT";case u.REJECT_FORMAT:return"REJECT_FORMAT";case u.REJECT_SENDER:return"REJECT_SENDER";default:return"UNKNOWN"}}function I(e){switch(e){case 0:case"UNKNOWN":return f.UNKNOWN;case 1:case"ACCEPT":return f.ACCEPT;case 2:case"ABORT":return f.ABORT;case 3:case"RETRY":return f.RETRY;case 4:case"RETRY_SNAPSHOT":return f.RETRY_SNAPSHOT;case 5:case"REJECT_SNAPSHOT":return f.REJECT_SNAPSHOT;default:return f.UNRECOGNIZED}}function E(e){switch(e){case f.UNKNOWN:return"UNKNOWN";case f.ACCEPT:return"ACCEPT";case f.ABORT:return"ABORT";case f.RETRY:return"RETRY";case f.RETRY_SNAPSHOT:return"RETRY_SNAPSHOT";case f.REJECT_SNAPSHOT:return"REJECT_SNAPSHOT";default:return"UNKNOWN"}}t.protobufPackage="tendermint.abci",function(e){e[e.NEW=0]="NEW",e[e.RECHECK=1]="RECHECK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.CheckTxType||(t.CheckTxType={})),t.checkTxTypeFromJSON=A,t.checkTxTypeToJSON=w,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",e[e.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.EvidenceType||(t.EvidenceType={})),t.evidenceTypeFromJSON=x,t.evidenceTypeToJSON=_,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.REJECT=3]="REJECT",e[e.REJECT_FORMAT=4]="REJECT_FORMAT",e[e.REJECT_SENDER=5]="REJECT_SENDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=t.ResponseOfferSnapshot_Result||(t.ResponseOfferSnapshot_Result={})),t.responseOfferSnapshot_ResultFromJSON=k,t.responseOfferSnapshot_ResultToJSON=S,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.RETRY=3]="RETRY",e[e.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",e[e.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(f=t.ResponseApplySnapshotChunk_Result||(t.ResponseApplySnapshotChunk_Result={})),t.responseApplySnapshotChunk_ResultFromJSON=I,t.responseApplySnapshotChunk_ResultToJSON=E;var C={};t.Request={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return void 0!==e.echo&&t.RequestEcho.encode(e.echo,n.uint32(10).fork()).ldelim(),void 0!==e.flush&&t.RequestFlush.encode(e.flush,n.uint32(18).fork()).ldelim(),void 0!==e.info&&t.RequestInfo.encode(e.info,n.uint32(26).fork()).ldelim(),void 0!==e.setOption&&t.RequestSetOption.encode(e.setOption,n.uint32(34).fork()).ldelim(),void 0!==e.initChain&&t.RequestInitChain.encode(e.initChain,n.uint32(42).fork()).ldelim(),void 0!==e.query&&t.RequestQuery.encode(e.query,n.uint32(50).fork()).ldelim(),void 0!==e.beginBlock&&t.RequestBeginBlock.encode(e.beginBlock,n.uint32(58).fork()).ldelim(),void 0!==e.checkTx&&t.RequestCheckTx.encode(e.checkTx,n.uint32(66).fork()).ldelim(),void 0!==e.deliverTx&&t.RequestDeliverTx.encode(e.deliverTx,n.uint32(74).fork()).ldelim(),void 0!==e.endBlock&&t.RequestEndBlock.encode(e.endBlock,n.uint32(82).fork()).ldelim(),void 0!==e.commit&&t.RequestCommit.encode(e.commit,n.uint32(90).fork()).ldelim(),void 0!==e.listSnapshots&&t.RequestListSnapshots.encode(e.listSnapshots,n.uint32(98).fork()).ldelim(),void 0!==e.offerSnapshot&&t.RequestOfferSnapshot.encode(e.offerSnapshot,n.uint32(106).fork()).ldelim(),void 0!==e.loadSnapshotChunk&&t.RequestLoadSnapshotChunk.encode(e.loadSnapshotChunk,n.uint32(114).fork()).ldelim(),void 0!==e.applySnapshotChunk&&t.RequestApplySnapshotChunk.encode(e.applySnapshotChunk,n.uint32(122).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},C);r.pos>>3){case 1:i.echo=t.RequestEcho.decode(r,r.uint32());break;case 2:i.flush=t.RequestFlush.decode(r,r.uint32());break;case 3:i.info=t.RequestInfo.decode(r,r.uint32());break;case 4:i.setOption=t.RequestSetOption.decode(r,r.uint32());break;case 5:i.initChain=t.RequestInitChain.decode(r,r.uint32());break;case 6:i.query=t.RequestQuery.decode(r,r.uint32());break;case 7:i.beginBlock=t.RequestBeginBlock.decode(r,r.uint32());break;case 8:i.checkTx=t.RequestCheckTx.decode(r,r.uint32());break;case 9:i.deliverTx=t.RequestDeliverTx.decode(r,r.uint32());break;case 10:i.endBlock=t.RequestEndBlock.decode(r,r.uint32());break;case 11:i.commit=t.RequestCommit.decode(r,r.uint32());break;case 12:i.listSnapshots=t.RequestListSnapshots.decode(r,r.uint32());break;case 13:i.offerSnapshot=t.RequestOfferSnapshot.decode(r,r.uint32());break;case 14:i.loadSnapshotChunk=t.RequestLoadSnapshotChunk.decode(r,r.uint32());break;case 15:i.applySnapshotChunk=t.RequestApplySnapshotChunk.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},C);return void 0!==e.echo&&null!==e.echo?n.echo=t.RequestEcho.fromJSON(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.RequestFlush.fromJSON(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.RequestInfo.fromJSON(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.RequestSetOption.fromJSON(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.RequestInitChain.fromJSON(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.RequestQuery.fromJSON(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.RequestBeginBlock.fromJSON(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.RequestCheckTx.fromJSON(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.RequestDeliverTx.fromJSON(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.RequestEndBlock.fromJSON(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.RequestCommit.fromJSON(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.RequestListSnapshots.fromJSON(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.RequestOfferSnapshot.fromJSON(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.RequestLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.RequestApplySnapshotChunk.fromJSON(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n},toJSON:function(e){var n={};return void 0!==e.echo&&(n.echo=e.echo?t.RequestEcho.toJSON(e.echo):void 0),void 0!==e.flush&&(n.flush=e.flush?t.RequestFlush.toJSON(e.flush):void 0),void 0!==e.info&&(n.info=e.info?t.RequestInfo.toJSON(e.info):void 0),void 0!==e.setOption&&(n.setOption=e.setOption?t.RequestSetOption.toJSON(e.setOption):void 0),void 0!==e.initChain&&(n.initChain=e.initChain?t.RequestInitChain.toJSON(e.initChain):void 0),void 0!==e.query&&(n.query=e.query?t.RequestQuery.toJSON(e.query):void 0),void 0!==e.beginBlock&&(n.beginBlock=e.beginBlock?t.RequestBeginBlock.toJSON(e.beginBlock):void 0),void 0!==e.checkTx&&(n.checkTx=e.checkTx?t.RequestCheckTx.toJSON(e.checkTx):void 0),void 0!==e.deliverTx&&(n.deliverTx=e.deliverTx?t.RequestDeliverTx.toJSON(e.deliverTx):void 0),void 0!==e.endBlock&&(n.endBlock=e.endBlock?t.RequestEndBlock.toJSON(e.endBlock):void 0),void 0!==e.commit&&(n.commit=e.commit?t.RequestCommit.toJSON(e.commit):void 0),void 0!==e.listSnapshots&&(n.listSnapshots=e.listSnapshots?t.RequestListSnapshots.toJSON(e.listSnapshots):void 0),void 0!==e.offerSnapshot&&(n.offerSnapshot=e.offerSnapshot?t.RequestOfferSnapshot.toJSON(e.offerSnapshot):void 0),void 0!==e.loadSnapshotChunk&&(n.loadSnapshotChunk=e.loadSnapshotChunk?t.RequestLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),void 0!==e.applySnapshotChunk&&(n.applySnapshotChunk=e.applySnapshotChunk?t.RequestApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),n},fromPartial:function(e){var n=Object.assign({},C);return void 0!==e.echo&&null!==e.echo?n.echo=t.RequestEcho.fromPartial(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.RequestFlush.fromPartial(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.RequestInfo.fromPartial(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.RequestSetOption.fromPartial(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.RequestInitChain.fromPartial(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.RequestQuery.fromPartial(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.RequestBeginBlock.fromPartial(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.RequestCheckTx.fromPartial(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.RequestDeliverTx.fromPartial(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.RequestEndBlock.fromPartial(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.RequestCommit.fromPartial(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.RequestListSnapshots.fromPartial(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.RequestOfferSnapshot.fromPartial(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.RequestLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.RequestApplySnapshotChunk.fromPartial(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n}};var T={message:""};t.RequestEcho={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return""!==e.message&&t.uint32(10).string(e.message),t},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},T);n.pos>>3==1?a.message=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},T);return void 0!==e.message&&null!==e.message?t.message=String(e.message):t.message="",t},toJSON:function(e){var t={};return void 0!==e.message&&(t.message=e.message),t},fromPartial:function(e){var t=Object.assign({},T);return void 0!==e.message&&null!==e.message?t.message=e.message:t.message="",t}};var O={};t.RequestFlush={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create()},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},O);n.pos1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return""!==e.version&&t.uint32(10).string(e.version),e.blockVersion.isZero()||t.uint32(16).uint64(e.blockVersion),e.p2pVersion.isZero()||t.uint32(24).uint64(e.p2pVersion),t},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},P);n.pos>>3){case 1:a.version=n.string();break;case 2:a.blockVersion=n.uint64();break;case 3:a.p2pVersion=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},P);return void 0!==e.version&&null!==e.version?t.version=String(e.version):t.version="",void 0!==e.blockVersion&&null!==e.blockVersion?t.blockVersion=d.default.fromString(e.blockVersion):t.blockVersion=d.default.UZERO,void 0!==e.p2pVersion&&null!==e.p2pVersion?t.p2pVersion=d.default.fromString(e.p2pVersion):t.p2pVersion=d.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.version&&(t.version=e.version),void 0!==e.blockVersion&&(t.blockVersion=(e.blockVersion||d.default.UZERO).toString()),void 0!==e.p2pVersion&&(t.p2pVersion=(e.p2pVersion||d.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},P);return void 0!==e.version&&null!==e.version?t.version=e.version:t.version="",void 0!==e.blockVersion&&null!==e.blockVersion?t.blockVersion=e.blockVersion:t.blockVersion=d.default.UZERO,void 0!==e.p2pVersion&&null!==e.p2pVersion?t.p2pVersion=e.p2pVersion:t.p2pVersion=d.default.UZERO,t}};var M={key:"",value:""};t.RequestSetOption={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},M);n.pos>>3){case 1:a.key=n.string();break;case 2:a.value=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},M);return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial:function(e){var t=Object.assign({},M);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}};var B={chainId:"",initialHeight:d.default.ZERO};t.RequestInitChain={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();void 0!==e.time&&g.Timestamp.encode(Se(e.time),n.uint32(10).fork()).ldelim(),""!==e.chainId&&n.uint32(18).string(e.chainId),void 0!==e.consensusParams&&t.ConsensusParams.encode(e.consensusParams,n.uint32(26).fork()).ldelim();var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.ValidatorUpdate.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return 0!==e.appStateBytes.length&&n.uint32(42).bytes(e.appStateBytes),e.initialHeight.isZero()||n.uint32(48).int64(e.initialHeight),n},decode:function(e,n){var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},B);for(i.validators=[],i.appStateBytes=new Uint8Array;r.pos>>3){case 1:i.time=Ie(g.Timestamp.decode(r,r.uint32()));break;case 2:i.chainId=r.string();break;case 3:i.consensusParams=t.ConsensusParams.decode(r,r.uint32());break;case 4:i.validators.push(t.ValidatorUpdate.decode(r,r.uint32()));break;case 5:i.appStateBytes=r.bytes();break;case 6:i.initialHeight=r.int64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},B);if(n.validators=[],n.appStateBytes=new Uint8Array,void 0!==e.time&&null!==e.time?n.time=Ee(e.time):n.time=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=String(e.chainId):n.chainId="",void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromJSON(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appStateBytes&&null!==e.appStateBytes&&(n.appStateBytes=xe(e.appStateBytes)),void 0!==e.initialHeight&&null!==e.initialHeight?n.initialHeight=d.default.fromString(e.initialHeight):n.initialHeight=d.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.time&&(n.time=e.time.toISOString()),void 0!==e.chainId&&(n.chainId=e.chainId),void 0!==e.consensusParams&&(n.consensusParams=e.consensusParams?t.ConsensusParams.toJSON(e.consensusParams):void 0),e.validators?n.validators=e.validators.map((function(e){return e?t.ValidatorUpdate.toJSON(e):void 0})):n.validators=[],void 0!==e.appStateBytes&&(n.appStateBytes=ke(void 0!==e.appStateBytes?e.appStateBytes:new Uint8Array)),void 0!==e.initialHeight&&(n.initialHeight=(e.initialHeight||d.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},B);if(n.validators=[],void 0!==e.time&&null!==e.time?n.time=e.time:n.time=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=e.chainId:n.chainId="",void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromPartial(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appStateBytes&&null!==e.appStateBytes?n.appStateBytes=e.appStateBytes:n.appStateBytes=new Uint8Array,void 0!==e.initialHeight&&null!==e.initialHeight?n.initialHeight=e.initialHeight:n.initialHeight=d.default.ZERO,n}};var R={path:"",height:d.default.ZERO,prove:!1};t.RequestQuery={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),""!==e.path&&t.uint32(18).string(e.path),e.height.isZero()||t.uint32(24).int64(e.height),!0===e.prove&&t.uint32(32).bool(e.prove),t},decode:function(e,t){var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},R);for(a.data=new Uint8Array;n.pos>>3){case 1:a.data=n.bytes();break;case 2:a.path=n.string();break;case 3:a.height=n.int64();break;case 4:a.prove=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},R);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=xe(e.data)),void 0!==e.path&&null!==e.path?t.path=String(e.path):t.path="",void 0!==e.height&&null!==e.height?t.height=d.default.fromString(e.height):t.height=d.default.ZERO,void 0!==e.prove&&null!==e.prove?t.prove=Boolean(e.prove):t.prove=!1,t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=ke(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.path&&(t.path=e.path),void 0!==e.height&&(t.height=(e.height||d.default.ZERO).toString()),void 0!==e.prove&&(t.prove=e.prove),t},fromPartial:function(e){var t=Object.assign({},R);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.path&&null!==e.path?t.path=e.path:t.path="",void 0!==e.height&&null!==e.height?t.height=e.height:t.height=d.default.ZERO,void 0!==e.prove&&null!==e.prove?t.prove=e.prove:t.prove=!1,t}};var N={};t.RequestBeginBlock={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();0!==e.hash.length&&n.uint32(10).bytes(e.hash),void 0!==e.header&&b.Header.encode(e.header,n.uint32(18).fork()).ldelim(),void 0!==e.lastCommitInfo&&t.LastCommitInfo.encode(e.lastCommitInfo,n.uint32(26).fork()).ldelim();var r,a=i(e.byzantineValidators);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.Evidence.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,n){var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},N);for(i.byzantineValidators=[],i.hash=new Uint8Array;r.pos>>3){case 1:i.hash=r.bytes();break;case 2:i.header=b.Header.decode(r,r.uint32());break;case 3:i.lastCommitInfo=t.LastCommitInfo.decode(r,r.uint32());break;case 4:i.byzantineValidators.push(t.Evidence.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},N);if(n.byzantineValidators=[],n.hash=new Uint8Array,void 0!==e.hash&&null!==e.hash&&(n.hash=xe(e.hash)),void 0!==e.header&&null!==e.header?n.header=b.Header.fromJSON(e.header):n.header=void 0,void 0!==e.lastCommitInfo&&null!==e.lastCommitInfo?n.lastCommitInfo=t.LastCommitInfo.fromJSON(e.lastCommitInfo):n.lastCommitInfo=void 0,void 0!==e.byzantineValidators&&null!==e.byzantineValidators){var r,a=i(e.byzantineValidators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.byzantineValidators.push(t.Evidence.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return void 0!==e.hash&&(n.hash=ke(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.header&&(n.header=e.header?b.Header.toJSON(e.header):void 0),void 0!==e.lastCommitInfo&&(n.lastCommitInfo=e.lastCommitInfo?t.LastCommitInfo.toJSON(e.lastCommitInfo):void 0),e.byzantineValidators?n.byzantineValidators=e.byzantineValidators.map((function(e){return e?t.Evidence.toJSON(e):void 0})):n.byzantineValidators=[],n},fromPartial:function(e){var n=Object.assign({},N);if(n.byzantineValidators=[],void 0!==e.hash&&null!==e.hash?n.hash=e.hash:n.hash=new Uint8Array,void 0!==e.header&&null!==e.header?n.header=b.Header.fromPartial(e.header):n.header=void 0,void 0!==e.lastCommitInfo&&null!==e.lastCommitInfo?n.lastCommitInfo=t.LastCommitInfo.fromPartial(e.lastCommitInfo):n.lastCommitInfo=void 0,void 0!==e.byzantineValidators&&null!==e.byzantineValidators){var r,a=i(e.byzantineValidators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.byzantineValidators.push(t.Evidence.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var D={type:0};t.RequestCheckTx={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return 0!==e.tx.length&&t.uint32(10).bytes(e.tx),0!==e.type&&t.uint32(16).int32(e.type),t},decode:function(e,t){var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},D);for(a.tx=new Uint8Array;n.pos>>3){case 1:a.tx=n.bytes();break;case 2:a.type=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},D);return t.tx=new Uint8Array,void 0!==e.tx&&null!==e.tx&&(t.tx=xe(e.tx)),void 0!==e.type&&null!==e.type?t.type=A(e.type):t.type=0,t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=ke(void 0!==e.tx?e.tx:new Uint8Array)),void 0!==e.type&&(t.type=w(e.type)),t},fromPartial:function(e){var t=Object.assign({},D);return void 0!==e.tx&&null!==e.tx?t.tx=e.tx:t.tx=new Uint8Array,void 0!==e.type&&null!==e.type?t.type=e.type:t.type=0,t}};var j={};t.RequestDeliverTx={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return 0!==e.tx.length&&t.uint32(10).bytes(e.tx),t},decode:function(e,t){var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},j);for(a.tx=new Uint8Array;n.pos>>3==1?a.tx=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},j);return t.tx=new Uint8Array,void 0!==e.tx&&null!==e.tx&&(t.tx=xe(e.tx)),t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=ke(void 0!==e.tx?e.tx:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},j);return void 0!==e.tx&&null!==e.tx?t.tx=e.tx:t.tx=new Uint8Array,t}};var U={height:d.default.ZERO};t.RequestEndBlock={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return e.height.isZero()||t.uint32(8).int64(e.height),t},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},U);n.pos>>3==1?a.height=n.int64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},U);return void 0!==e.height&&null!==e.height?t.height=d.default.fromString(e.height):t.height=d.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.height&&(t.height=(e.height||d.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},U);return void 0!==e.height&&null!==e.height?t.height=e.height:t.height=d.default.ZERO,t}};var L={};t.RequestCommit={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create()},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},L);n.pos1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create()},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},Z);n.pos1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return void 0!==e.snapshot&&t.Snapshot.encode(e.snapshot,n.uint32(10).fork()).ldelim(),0!==e.appHash.length&&n.uint32(18).bytes(e.appHash),n},decode:function(e,n){var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},F);for(i.appHash=new Uint8Array;r.pos>>3){case 1:i.snapshot=t.Snapshot.decode(r,r.uint32());break;case 2:i.appHash=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},F);return n.appHash=new Uint8Array,void 0!==e.snapshot&&null!==e.snapshot?n.snapshot=t.Snapshot.fromJSON(e.snapshot):n.snapshot=void 0,void 0!==e.appHash&&null!==e.appHash&&(n.appHash=xe(e.appHash)),n},toJSON:function(e){var n={};return void 0!==e.snapshot&&(n.snapshot=e.snapshot?t.Snapshot.toJSON(e.snapshot):void 0),void 0!==e.appHash&&(n.appHash=ke(void 0!==e.appHash?e.appHash:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},F);return void 0!==e.snapshot&&null!==e.snapshot?n.snapshot=t.Snapshot.fromPartial(e.snapshot):n.snapshot=void 0,void 0!==e.appHash&&null!==e.appHash?n.appHash=e.appHash:n.appHash=new Uint8Array,n}};var H={height:d.default.UZERO,format:0,chunk:0};t.RequestLoadSnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return e.height.isZero()||t.uint32(8).uint64(e.height),0!==e.format&&t.uint32(16).uint32(e.format),0!==e.chunk&&t.uint32(24).uint32(e.chunk),t},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},H);n.pos>>3){case 1:a.height=n.uint64();break;case 2:a.format=n.uint32();break;case 3:a.chunk=n.uint32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},H);return void 0!==e.height&&null!==e.height?t.height=d.default.fromString(e.height):t.height=d.default.UZERO,void 0!==e.format&&null!==e.format?t.format=Number(e.format):t.format=0,void 0!==e.chunk&&null!==e.chunk?t.chunk=Number(e.chunk):t.chunk=0,t},toJSON:function(e){var t={};return void 0!==e.height&&(t.height=(e.height||d.default.UZERO).toString()),void 0!==e.format&&(t.format=e.format),void 0!==e.chunk&&(t.chunk=e.chunk),t},fromPartial:function(e){var t=Object.assign({},H);return void 0!==e.height&&null!==e.height?t.height=e.height:t.height=d.default.UZERO,void 0!==e.format&&null!==e.format?t.format=e.format:t.format=0,void 0!==e.chunk&&null!==e.chunk?t.chunk=e.chunk:t.chunk=0,t}};var z={index:0,sender:""};t.RequestApplySnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return 0!==e.index&&t.uint32(8).uint32(e.index),0!==e.chunk.length&&t.uint32(18).bytes(e.chunk),""!==e.sender&&t.uint32(26).string(e.sender),t},decode:function(e,t){var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},z);for(a.chunk=new Uint8Array;n.pos>>3){case 1:a.index=n.uint32();break;case 2:a.chunk=n.bytes();break;case 3:a.sender=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},z);return t.chunk=new Uint8Array,void 0!==e.index&&null!==e.index?t.index=Number(e.index):t.index=0,void 0!==e.chunk&&null!==e.chunk&&(t.chunk=xe(e.chunk)),void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",t},toJSON:function(e){var t={};return void 0!==e.index&&(t.index=e.index),void 0!==e.chunk&&(t.chunk=ke(void 0!==e.chunk?e.chunk:new Uint8Array)),void 0!==e.sender&&(t.sender=e.sender),t},fromPartial:function(e){var t=Object.assign({},z);return void 0!==e.index&&null!==e.index?t.index=e.index:t.index=0,void 0!==e.chunk&&null!==e.chunk?t.chunk=e.chunk:t.chunk=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",t}};var q={};t.Response={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return void 0!==e.exception&&t.ResponseException.encode(e.exception,n.uint32(10).fork()).ldelim(),void 0!==e.echo&&t.ResponseEcho.encode(e.echo,n.uint32(18).fork()).ldelim(),void 0!==e.flush&&t.ResponseFlush.encode(e.flush,n.uint32(26).fork()).ldelim(),void 0!==e.info&&t.ResponseInfo.encode(e.info,n.uint32(34).fork()).ldelim(),void 0!==e.setOption&&t.ResponseSetOption.encode(e.setOption,n.uint32(42).fork()).ldelim(),void 0!==e.initChain&&t.ResponseInitChain.encode(e.initChain,n.uint32(50).fork()).ldelim(),void 0!==e.query&&t.ResponseQuery.encode(e.query,n.uint32(58).fork()).ldelim(),void 0!==e.beginBlock&&t.ResponseBeginBlock.encode(e.beginBlock,n.uint32(66).fork()).ldelim(),void 0!==e.checkTx&&t.ResponseCheckTx.encode(e.checkTx,n.uint32(74).fork()).ldelim(),void 0!==e.deliverTx&&t.ResponseDeliverTx.encode(e.deliverTx,n.uint32(82).fork()).ldelim(),void 0!==e.endBlock&&t.ResponseEndBlock.encode(e.endBlock,n.uint32(90).fork()).ldelim(),void 0!==e.commit&&t.ResponseCommit.encode(e.commit,n.uint32(98).fork()).ldelim(),void 0!==e.listSnapshots&&t.ResponseListSnapshots.encode(e.listSnapshots,n.uint32(106).fork()).ldelim(),void 0!==e.offerSnapshot&&t.ResponseOfferSnapshot.encode(e.offerSnapshot,n.uint32(114).fork()).ldelim(),void 0!==e.loadSnapshotChunk&&t.ResponseLoadSnapshotChunk.encode(e.loadSnapshotChunk,n.uint32(122).fork()).ldelim(),void 0!==e.applySnapshotChunk&&t.ResponseApplySnapshotChunk.encode(e.applySnapshotChunk,n.uint32(130).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},q);r.pos>>3){case 1:i.exception=t.ResponseException.decode(r,r.uint32());break;case 2:i.echo=t.ResponseEcho.decode(r,r.uint32());break;case 3:i.flush=t.ResponseFlush.decode(r,r.uint32());break;case 4:i.info=t.ResponseInfo.decode(r,r.uint32());break;case 5:i.setOption=t.ResponseSetOption.decode(r,r.uint32());break;case 6:i.initChain=t.ResponseInitChain.decode(r,r.uint32());break;case 7:i.query=t.ResponseQuery.decode(r,r.uint32());break;case 8:i.beginBlock=t.ResponseBeginBlock.decode(r,r.uint32());break;case 9:i.checkTx=t.ResponseCheckTx.decode(r,r.uint32());break;case 10:i.deliverTx=t.ResponseDeliverTx.decode(r,r.uint32());break;case 11:i.endBlock=t.ResponseEndBlock.decode(r,r.uint32());break;case 12:i.commit=t.ResponseCommit.decode(r,r.uint32());break;case 13:i.listSnapshots=t.ResponseListSnapshots.decode(r,r.uint32());break;case 14:i.offerSnapshot=t.ResponseOfferSnapshot.decode(r,r.uint32());break;case 15:i.loadSnapshotChunk=t.ResponseLoadSnapshotChunk.decode(r,r.uint32());break;case 16:i.applySnapshotChunk=t.ResponseApplySnapshotChunk.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},q);return void 0!==e.exception&&null!==e.exception?n.exception=t.ResponseException.fromJSON(e.exception):n.exception=void 0,void 0!==e.echo&&null!==e.echo?n.echo=t.ResponseEcho.fromJSON(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.ResponseFlush.fromJSON(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.ResponseInfo.fromJSON(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.ResponseSetOption.fromJSON(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.ResponseInitChain.fromJSON(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.ResponseQuery.fromJSON(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.ResponseBeginBlock.fromJSON(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.ResponseCheckTx.fromJSON(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.ResponseDeliverTx.fromJSON(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.ResponseEndBlock.fromJSON(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.ResponseCommit.fromJSON(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.ResponseListSnapshots.fromJSON(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.ResponseOfferSnapshot.fromJSON(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.ResponseLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.ResponseApplySnapshotChunk.fromJSON(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n},toJSON:function(e){var n={};return void 0!==e.exception&&(n.exception=e.exception?t.ResponseException.toJSON(e.exception):void 0),void 0!==e.echo&&(n.echo=e.echo?t.ResponseEcho.toJSON(e.echo):void 0),void 0!==e.flush&&(n.flush=e.flush?t.ResponseFlush.toJSON(e.flush):void 0),void 0!==e.info&&(n.info=e.info?t.ResponseInfo.toJSON(e.info):void 0),void 0!==e.setOption&&(n.setOption=e.setOption?t.ResponseSetOption.toJSON(e.setOption):void 0),void 0!==e.initChain&&(n.initChain=e.initChain?t.ResponseInitChain.toJSON(e.initChain):void 0),void 0!==e.query&&(n.query=e.query?t.ResponseQuery.toJSON(e.query):void 0),void 0!==e.beginBlock&&(n.beginBlock=e.beginBlock?t.ResponseBeginBlock.toJSON(e.beginBlock):void 0),void 0!==e.checkTx&&(n.checkTx=e.checkTx?t.ResponseCheckTx.toJSON(e.checkTx):void 0),void 0!==e.deliverTx&&(n.deliverTx=e.deliverTx?t.ResponseDeliverTx.toJSON(e.deliverTx):void 0),void 0!==e.endBlock&&(n.endBlock=e.endBlock?t.ResponseEndBlock.toJSON(e.endBlock):void 0),void 0!==e.commit&&(n.commit=e.commit?t.ResponseCommit.toJSON(e.commit):void 0),void 0!==e.listSnapshots&&(n.listSnapshots=e.listSnapshots?t.ResponseListSnapshots.toJSON(e.listSnapshots):void 0),void 0!==e.offerSnapshot&&(n.offerSnapshot=e.offerSnapshot?t.ResponseOfferSnapshot.toJSON(e.offerSnapshot):void 0),void 0!==e.loadSnapshotChunk&&(n.loadSnapshotChunk=e.loadSnapshotChunk?t.ResponseLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),void 0!==e.applySnapshotChunk&&(n.applySnapshotChunk=e.applySnapshotChunk?t.ResponseApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),n},fromPartial:function(e){var n=Object.assign({},q);return void 0!==e.exception&&null!==e.exception?n.exception=t.ResponseException.fromPartial(e.exception):n.exception=void 0,void 0!==e.echo&&null!==e.echo?n.echo=t.ResponseEcho.fromPartial(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.ResponseFlush.fromPartial(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.ResponseInfo.fromPartial(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.ResponseSetOption.fromPartial(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.ResponseInitChain.fromPartial(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.ResponseQuery.fromPartial(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.ResponseBeginBlock.fromPartial(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.ResponseCheckTx.fromPartial(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.ResponseDeliverTx.fromPartial(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.ResponseEndBlock.fromPartial(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.ResponseCommit.fromPartial(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.ResponseListSnapshots.fromPartial(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.ResponseOfferSnapshot.fromPartial(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.ResponseLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.ResponseApplySnapshotChunk.fromPartial(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n}};var Q={error:""};t.ResponseException={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return""!==e.error&&t.uint32(10).string(e.error),t},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},Q);n.pos>>3==1?a.error=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},Q);return void 0!==e.error&&null!==e.error?t.error=String(e.error):t.error="",t},toJSON:function(e){var t={};return void 0!==e.error&&(t.error=e.error),t},fromPartial:function(e){var t=Object.assign({},Q);return void 0!==e.error&&null!==e.error?t.error=e.error:t.error="",t}};var K={message:""};t.ResponseEcho={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return""!==e.message&&t.uint32(10).string(e.message),t},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},K);n.pos>>3==1?a.message=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},K);return void 0!==e.message&&null!==e.message?t.message=String(e.message):t.message="",t},toJSON:function(e){var t={};return void 0!==e.message&&(t.message=e.message),t},fromPartial:function(e){var t=Object.assign({},K);return void 0!==e.message&&null!==e.message?t.message=e.message:t.message="",t}};var V={};t.ResponseFlush={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create()},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},V);n.pos1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return""!==e.data&&t.uint32(10).string(e.data),""!==e.version&&t.uint32(18).string(e.version),e.appVersion.isZero()||t.uint32(24).uint64(e.appVersion),e.lastBlockHeight.isZero()||t.uint32(32).int64(e.lastBlockHeight),0!==e.lastBlockAppHash.length&&t.uint32(42).bytes(e.lastBlockAppHash),t},decode:function(e,t){var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},J);for(a.lastBlockAppHash=new Uint8Array;n.pos>>3){case 1:a.data=n.string();break;case 2:a.version=n.string();break;case 3:a.appVersion=n.uint64();break;case 4:a.lastBlockHeight=n.int64();break;case 5:a.lastBlockAppHash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},J);return t.lastBlockAppHash=new Uint8Array,void 0!==e.data&&null!==e.data?t.data=String(e.data):t.data="",void 0!==e.version&&null!==e.version?t.version=String(e.version):t.version="",void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=d.default.fromString(e.appVersion):t.appVersion=d.default.UZERO,void 0!==e.lastBlockHeight&&null!==e.lastBlockHeight?t.lastBlockHeight=d.default.fromString(e.lastBlockHeight):t.lastBlockHeight=d.default.ZERO,void 0!==e.lastBlockAppHash&&null!==e.lastBlockAppHash&&(t.lastBlockAppHash=xe(e.lastBlockAppHash)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=e.data),void 0!==e.version&&(t.version=e.version),void 0!==e.appVersion&&(t.appVersion=(e.appVersion||d.default.UZERO).toString()),void 0!==e.lastBlockHeight&&(t.lastBlockHeight=(e.lastBlockHeight||d.default.ZERO).toString()),void 0!==e.lastBlockAppHash&&(t.lastBlockAppHash=ke(void 0!==e.lastBlockAppHash?e.lastBlockAppHash:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},J);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data="",void 0!==e.version&&null!==e.version?t.version=e.version:t.version="",void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=e.appVersion:t.appVersion=d.default.UZERO,void 0!==e.lastBlockHeight&&null!==e.lastBlockHeight?t.lastBlockHeight=e.lastBlockHeight:t.lastBlockHeight=d.default.ZERO,void 0!==e.lastBlockAppHash&&null!==e.lastBlockAppHash?t.lastBlockAppHash=e.lastBlockAppHash:t.lastBlockAppHash=new Uint8Array,t}};var G={code:0,log:"",info:""};t.ResponseSetOption={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return 0!==e.code&&t.uint32(8).uint32(e.code),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),t},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},G);n.pos>>3){case 1:a.code=n.uint32();break;case 3:a.log=n.string();break;case 4:a.info=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},G);return void 0!==e.code&&null!==e.code?t.code=Number(e.code):t.code=0,void 0!==e.log&&null!==e.log?t.log=String(e.log):t.log="",void 0!==e.info&&null!==e.info?t.info=String(e.info):t.info="",t},toJSON:function(e){var t={};return void 0!==e.code&&(t.code=e.code),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),t},fromPartial:function(e){var t=Object.assign({},G);return void 0!==e.code&&null!==e.code?t.code=e.code:t.code=0,void 0!==e.log&&null!==e.log?t.log=e.log:t.log="",void 0!==e.info&&null!==e.info?t.info=e.info:t.info="",t}};var W={};t.ResponseInitChain={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();void 0!==e.consensusParams&&t.ConsensusParams.encode(e.consensusParams,n.uint32(10).fork()).ldelim();var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.ValidatorUpdate.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return 0!==e.appHash.length&&n.uint32(26).bytes(e.appHash),n},decode:function(e,n){var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},W);for(i.validators=[],i.appHash=new Uint8Array;r.pos>>3){case 1:i.consensusParams=t.ConsensusParams.decode(r,r.uint32());break;case 2:i.validators.push(t.ValidatorUpdate.decode(r,r.uint32()));break;case 3:i.appHash=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},W);if(n.validators=[],n.appHash=new Uint8Array,void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromJSON(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appHash&&null!==e.appHash&&(n.appHash=xe(e.appHash)),n},toJSON:function(e){var n={};return void 0!==e.consensusParams&&(n.consensusParams=e.consensusParams?t.ConsensusParams.toJSON(e.consensusParams):void 0),e.validators?n.validators=e.validators.map((function(e){return e?t.ValidatorUpdate.toJSON(e):void 0})):n.validators=[],void 0!==e.appHash&&(n.appHash=ke(void 0!==e.appHash?e.appHash:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},W);if(n.validators=[],void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromPartial(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appHash&&null!==e.appHash?n.appHash=e.appHash:n.appHash=new Uint8Array,n}};var Y={code:0,log:"",info:"",index:d.default.ZERO,height:d.default.ZERO,codespace:""};t.ResponseQuery={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return 0!==e.code&&t.uint32(8).uint32(e.code),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),e.index.isZero()||t.uint32(40).int64(e.index),0!==e.key.length&&t.uint32(50).bytes(e.key),0!==e.value.length&&t.uint32(58).bytes(e.value),void 0!==e.proofOps&&h.ProofOps.encode(e.proofOps,t.uint32(66).fork()).ldelim(),e.height.isZero()||t.uint32(72).int64(e.height),""!==e.codespace&&t.uint32(82).string(e.codespace),t},decode:function(e,t){var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},Y);for(a.key=new Uint8Array,a.value=new Uint8Array;n.pos>>3){case 1:a.code=n.uint32();break;case 3:a.log=n.string();break;case 4:a.info=n.string();break;case 5:a.index=n.int64();break;case 6:a.key=n.bytes();break;case 7:a.value=n.bytes();break;case 8:a.proofOps=h.ProofOps.decode(n,n.uint32());break;case 9:a.height=n.int64();break;case 10:a.codespace=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},Y);return t.key=new Uint8Array,t.value=new Uint8Array,void 0!==e.code&&null!==e.code?t.code=Number(e.code):t.code=0,void 0!==e.log&&null!==e.log?t.log=String(e.log):t.log="",void 0!==e.info&&null!==e.info?t.info=String(e.info):t.info="",void 0!==e.index&&null!==e.index?t.index=d.default.fromString(e.index):t.index=d.default.ZERO,void 0!==e.key&&null!==e.key&&(t.key=xe(e.key)),void 0!==e.value&&null!==e.value&&(t.value=xe(e.value)),void 0!==e.proofOps&&null!==e.proofOps?t.proofOps=h.ProofOps.fromJSON(e.proofOps):t.proofOps=void 0,void 0!==e.height&&null!==e.height?t.height=d.default.fromString(e.height):t.height=d.default.ZERO,void 0!==e.codespace&&null!==e.codespace?t.codespace=String(e.codespace):t.codespace="",t},toJSON:function(e){var t={};return void 0!==e.code&&(t.code=e.code),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),void 0!==e.index&&(t.index=(e.index||d.default.ZERO).toString()),void 0!==e.key&&(t.key=ke(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(t.value=ke(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.proofOps&&(t.proofOps=e.proofOps?h.ProofOps.toJSON(e.proofOps):void 0),void 0!==e.height&&(t.height=(e.height||d.default.ZERO).toString()),void 0!==e.codespace&&(t.codespace=e.codespace),t},fromPartial:function(e){var t=Object.assign({},Y);return void 0!==e.code&&null!==e.code?t.code=e.code:t.code=0,void 0!==e.log&&null!==e.log?t.log=e.log:t.log="",void 0!==e.info&&null!==e.info?t.info=e.info:t.info="",void 0!==e.index&&null!==e.index?t.index=e.index:t.index=d.default.ZERO,void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.value&&null!==e.value?t.value=e.value:t.value=new Uint8Array,void 0!==e.proofOps&&null!==e.proofOps?t.proofOps=h.ProofOps.fromPartial(e.proofOps):t.proofOps=void 0,void 0!==e.height&&null!==e.height?t.height=e.height:t.height=d.default.ZERO,void 0!==e.codespace&&null!==e.codespace?t.codespace=e.codespace:t.codespace="",t}};var X={};t.ResponseBeginBlock={encode:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create(),a=i(e.events);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.Event.encode(o,r.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return r},decode:function(e,n){var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},X);for(i.events=[];r.pos>>3==1?i.events.push(t.Event.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},X);if(n.events=[],void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],n},fromPartial:function(e){var n=Object.assign({},X);if(n.events=[],void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var $={code:0,log:"",info:"",gasWanted:d.default.ZERO,gasUsed:d.default.ZERO,codespace:""};t.ResponseCheckTx={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();0!==e.code&&n.uint32(8).uint32(e.code),0!==e.data.length&&n.uint32(18).bytes(e.data),""!==e.log&&n.uint32(26).string(e.log),""!==e.info&&n.uint32(34).string(e.info),e.gasWanted.isZero()||n.uint32(40).int64(e.gasWanted),e.gasUsed.isZero()||n.uint32(48).int64(e.gasUsed);var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.Event.encode(o,n.uint32(58).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return""!==e.codespace&&n.uint32(66).string(e.codespace),n},decode:function(e,n){var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},$);for(i.events=[],i.data=new Uint8Array;r.pos>>3){case 1:i.code=r.uint32();break;case 2:i.data=r.bytes();break;case 3:i.log=r.string();break;case 4:i.info=r.string();break;case 5:i.gasWanted=r.int64();break;case 6:i.gasUsed=r.int64();break;case 7:i.events.push(t.Event.decode(r,r.uint32()));break;case 8:i.codespace=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},$);if(n.events=[],n.data=new Uint8Array,void 0!==e.code&&null!==e.code?n.code=Number(e.code):n.code=0,void 0!==e.data&&null!==e.data&&(n.data=xe(e.data)),void 0!==e.log&&null!==e.log?n.log=String(e.log):n.log="",void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=d.default.fromString(e.gasWanted):n.gasWanted=d.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=d.default.fromString(e.gasUsed):n.gasUsed=d.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=String(e.codespace):n.codespace="",n},toJSON:function(e){var n={};return void 0!==e.code&&(n.code=e.code),void 0!==e.data&&(n.data=ke(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(n.log=e.log),void 0!==e.info&&(n.info=e.info),void 0!==e.gasWanted&&(n.gasWanted=(e.gasWanted||d.default.ZERO).toString()),void 0!==e.gasUsed&&(n.gasUsed=(e.gasUsed||d.default.ZERO).toString()),e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],void 0!==e.codespace&&(n.codespace=e.codespace),n},fromPartial:function(e){var n=Object.assign({},$);if(n.events=[],void 0!==e.code&&null!==e.code?n.code=e.code:n.code=0,void 0!==e.data&&null!==e.data?n.data=e.data:n.data=new Uint8Array,void 0!==e.log&&null!==e.log?n.log=e.log:n.log="",void 0!==e.info&&null!==e.info?n.info=e.info:n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=e.gasWanted:n.gasWanted=d.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=e.gasUsed:n.gasUsed=d.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=e.codespace:n.codespace="",n}};var ee={code:0,log:"",info:"",gasWanted:d.default.ZERO,gasUsed:d.default.ZERO,codespace:""};t.ResponseDeliverTx={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();0!==e.code&&n.uint32(8).uint32(e.code),0!==e.data.length&&n.uint32(18).bytes(e.data),""!==e.log&&n.uint32(26).string(e.log),""!==e.info&&n.uint32(34).string(e.info),e.gasWanted.isZero()||n.uint32(40).int64(e.gasWanted),e.gasUsed.isZero()||n.uint32(48).int64(e.gasUsed);var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.Event.encode(o,n.uint32(58).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return""!==e.codespace&&n.uint32(66).string(e.codespace),n},decode:function(e,n){var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},ee);for(i.events=[],i.data=new Uint8Array;r.pos>>3){case 1:i.code=r.uint32();break;case 2:i.data=r.bytes();break;case 3:i.log=r.string();break;case 4:i.info=r.string();break;case 5:i.gasWanted=r.int64();break;case 6:i.gasUsed=r.int64();break;case 7:i.events.push(t.Event.decode(r,r.uint32()));break;case 8:i.codespace=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},ee);if(n.events=[],n.data=new Uint8Array,void 0!==e.code&&null!==e.code?n.code=Number(e.code):n.code=0,void 0!==e.data&&null!==e.data&&(n.data=xe(e.data)),void 0!==e.log&&null!==e.log?n.log=String(e.log):n.log="",void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=d.default.fromString(e.gasWanted):n.gasWanted=d.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=d.default.fromString(e.gasUsed):n.gasUsed=d.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=String(e.codespace):n.codespace="",n},toJSON:function(e){var n={};return void 0!==e.code&&(n.code=e.code),void 0!==e.data&&(n.data=ke(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(n.log=e.log),void 0!==e.info&&(n.info=e.info),void 0!==e.gasWanted&&(n.gasWanted=(e.gasWanted||d.default.ZERO).toString()),void 0!==e.gasUsed&&(n.gasUsed=(e.gasUsed||d.default.ZERO).toString()),e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],void 0!==e.codespace&&(n.codespace=e.codespace),n},fromPartial:function(e){var n=Object.assign({},ee);if(n.events=[],void 0!==e.code&&null!==e.code?n.code=e.code:n.code=0,void 0!==e.data&&null!==e.data?n.data=e.data:n.data=new Uint8Array,void 0!==e.log&&null!==e.log?n.log=e.log:n.log="",void 0!==e.info&&null!==e.info?n.info=e.info:n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=e.gasWanted:n.gasWanted=d.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=e.gasUsed:n.gasUsed=d.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=e.codespace:n.codespace="",n}};var te={};t.ResponseEndBlock={encode:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create(),a=i(e.validatorUpdates);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.ValidatorUpdate.encode(o,r.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}void 0!==e.consensusParamUpdates&&t.ConsensusParams.encode(e.consensusParamUpdates,r.uint32(18).fork()).ldelim();var s,c=i(e.events);try{for(c.s();!(s=c.n()).done;){var u=s.value;t.Event.encode(u,r.uint32(26).fork()).ldelim()}}catch(e){c.e(e)}finally{c.f()}return r},decode:function(e,n){var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},te);for(i.validatorUpdates=[],i.events=[];r.pos>>3){case 1:i.validatorUpdates.push(t.ValidatorUpdate.decode(r,r.uint32()));break;case 2:i.consensusParamUpdates=t.ConsensusParams.decode(r,r.uint32());break;case 3:i.events.push(t.Event.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},te);if(n.validatorUpdates=[],n.events=[],void 0!==e.validatorUpdates&&null!==e.validatorUpdates){var r,a=i(e.validatorUpdates);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validatorUpdates.push(t.ValidatorUpdate.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.consensusParamUpdates&&null!==e.consensusParamUpdates?n.consensusParamUpdates=t.ConsensusParams.fromJSON(e.consensusParamUpdates):n.consensusParamUpdates=void 0,void 0!==e.events&&null!==e.events){var s,c=i(e.events);try{for(c.s();!(s=c.n()).done;){var u=s.value;n.events.push(t.Event.fromJSON(u))}}catch(e){c.e(e)}finally{c.f()}}return n},toJSON:function(e){var n={};return e.validatorUpdates?n.validatorUpdates=e.validatorUpdates.map((function(e){return e?t.ValidatorUpdate.toJSON(e):void 0})):n.validatorUpdates=[],void 0!==e.consensusParamUpdates&&(n.consensusParamUpdates=e.consensusParamUpdates?t.ConsensusParams.toJSON(e.consensusParamUpdates):void 0),e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],n},fromPartial:function(e){var n=Object.assign({},te);if(n.validatorUpdates=[],n.events=[],void 0!==e.validatorUpdates&&null!==e.validatorUpdates){var r,a=i(e.validatorUpdates);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validatorUpdates.push(t.ValidatorUpdate.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.consensusParamUpdates&&null!==e.consensusParamUpdates?n.consensusParamUpdates=t.ConsensusParams.fromPartial(e.consensusParamUpdates):n.consensusParamUpdates=void 0,void 0!==e.events&&null!==e.events){var s,c=i(e.events);try{for(c.s();!(s=c.n()).done;){var u=s.value;n.events.push(t.Event.fromPartial(u))}}catch(e){c.e(e)}finally{c.f()}}return n}};var ne={retainHeight:d.default.ZERO};t.ResponseCommit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return 0!==e.data.length&&t.uint32(18).bytes(e.data),e.retainHeight.isZero()||t.uint32(24).int64(e.retainHeight),t},decode:function(e,t){var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ne);for(a.data=new Uint8Array;n.pos>>3){case 2:a.data=n.bytes();break;case 3:a.retainHeight=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},ne);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=xe(e.data)),void 0!==e.retainHeight&&null!==e.retainHeight?t.retainHeight=d.default.fromString(e.retainHeight):t.retainHeight=d.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=ke(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.retainHeight&&(t.retainHeight=(e.retainHeight||d.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},ne);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.retainHeight&&null!==e.retainHeight?t.retainHeight=e.retainHeight:t.retainHeight=d.default.ZERO,t}};var re={};t.ResponseListSnapshots={encode:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create(),a=i(e.snapshots);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.Snapshot.encode(o,r.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return r},decode:function(e,n){var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},re);for(i.snapshots=[];r.pos>>3==1?i.snapshots.push(t.Snapshot.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},re);if(n.snapshots=[],void 0!==e.snapshots&&null!==e.snapshots){var r,a=i(e.snapshots);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.snapshots.push(t.Snapshot.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return e.snapshots?n.snapshots=e.snapshots.map((function(e){return e?t.Snapshot.toJSON(e):void 0})):n.snapshots=[],n},fromPartial:function(e){var n=Object.assign({},re);if(n.snapshots=[],void 0!==e.snapshots&&null!==e.snapshots){var r,a=i(e.snapshots);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.snapshots.push(t.Snapshot.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var ae={result:0};t.ResponseOfferSnapshot={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return 0!==e.result&&t.uint32(8).int32(e.result),t},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ae);n.pos>>3==1?a.result=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},ae);return void 0!==e.result&&null!==e.result?t.result=k(e.result):t.result=0,t},toJSON:function(e){var t={};return void 0!==e.result&&(t.result=S(e.result)),t},fromPartial:function(e){var t=Object.assign({},ae);return void 0!==e.result&&null!==e.result?t.result=e.result:t.result=0,t}};var ie={};t.ResponseLoadSnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return 0!==e.chunk.length&&t.uint32(10).bytes(e.chunk),t},decode:function(e,t){var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ie);for(a.chunk=new Uint8Array;n.pos>>3==1?a.chunk=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},ie);return t.chunk=new Uint8Array,void 0!==e.chunk&&null!==e.chunk&&(t.chunk=xe(e.chunk)),t},toJSON:function(e){var t={};return void 0!==e.chunk&&(t.chunk=ke(void 0!==e.chunk?e.chunk:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},ie);return void 0!==e.chunk&&null!==e.chunk?t.chunk=e.chunk:t.chunk=new Uint8Array,t}};var oe={result:0,refetchChunks:0,rejectSenders:""};t.ResponseApplySnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();0!==e.result&&t.uint32(8).int32(e.result),t.uint32(18).fork();var n,r=i(e.refetchChunks);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.uint32(a)}}catch(e){r.e(e)}finally{r.f()}t.ldelim();var o,s=i(e.rejectSenders);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.uint32(26).string(c)}}catch(e){s.e(e)}finally{s.f()}return t},decode:function(e,t){var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},oe);for(a.refetchChunks=[],a.rejectSenders=[];n.pos>>3){case 1:a.result=n.int32();break;case 2:if(2==(7&i))for(var o=n.uint32()+n.pos;n.pos1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return void 0!==e.block&&t.BlockParams.encode(e.block,n.uint32(10).fork()).ldelim(),void 0!==e.evidence&&y.EvidenceParams.encode(e.evidence,n.uint32(18).fork()).ldelim(),void 0!==e.validator&&y.ValidatorParams.encode(e.validator,n.uint32(26).fork()).ldelim(),void 0!==e.version&&y.VersionParams.encode(e.version,n.uint32(34).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},se);r.pos>>3){case 1:i.block=t.BlockParams.decode(r,r.uint32());break;case 2:i.evidence=y.EvidenceParams.decode(r,r.uint32());break;case 3:i.validator=y.ValidatorParams.decode(r,r.uint32());break;case 4:i.version=y.VersionParams.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},se);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromJSON(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=y.EvidenceParams.fromJSON(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=y.ValidatorParams.fromJSON(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=y.VersionParams.fromJSON(e.version):n.version=void 0,n},toJSON:function(e){var n={};return void 0!==e.block&&(n.block=e.block?t.BlockParams.toJSON(e.block):void 0),void 0!==e.evidence&&(n.evidence=e.evidence?y.EvidenceParams.toJSON(e.evidence):void 0),void 0!==e.validator&&(n.validator=e.validator?y.ValidatorParams.toJSON(e.validator):void 0),void 0!==e.version&&(n.version=e.version?y.VersionParams.toJSON(e.version):void 0),n},fromPartial:function(e){var n=Object.assign({},se);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromPartial(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=y.EvidenceParams.fromPartial(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=y.ValidatorParams.fromPartial(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=y.VersionParams.fromPartial(e.version):n.version=void 0,n}};var ce={maxBytes:d.default.ZERO,maxGas:d.default.ZERO};t.BlockParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return e.maxBytes.isZero()||t.uint32(8).int64(e.maxBytes),e.maxGas.isZero()||t.uint32(16).int64(e.maxGas),t},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ce);n.pos>>3){case 1:a.maxBytes=n.int64();break;case 2:a.maxGas=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},ce);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=d.default.fromString(e.maxBytes):t.maxBytes=d.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=d.default.fromString(e.maxGas):t.maxGas=d.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.maxBytes&&(t.maxBytes=(e.maxBytes||d.default.ZERO).toString()),void 0!==e.maxGas&&(t.maxGas=(e.maxGas||d.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},ce);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=e.maxBytes:t.maxBytes=d.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=e.maxGas:t.maxGas=d.default.ZERO,t}};var ue={round:0};t.LastCommitInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();0!==e.round&&n.uint32(8).int32(e.round);var r,a=i(e.votes);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.VoteInfo.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,n){var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},ue);for(i.votes=[];r.pos>>3){case 1:i.round=r.int32();break;case 2:i.votes.push(t.VoteInfo.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},ue);if(n.votes=[],void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.votes&&null!==e.votes){var r,a=i(e.votes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.votes.push(t.VoteInfo.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return void 0!==e.round&&(n.round=e.round),e.votes?n.votes=e.votes.map((function(e){return e?t.VoteInfo.toJSON(e):void 0})):n.votes=[],n},fromPartial:function(e){var n=Object.assign({},ue);if(n.votes=[],void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.votes&&null!==e.votes){var r,a=i(e.votes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.votes.push(t.VoteInfo.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var fe={type:""};t.Event={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();""!==e.type&&n.uint32(10).string(e.type);var r,a=i(e.attributes);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.EventAttribute.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,n){var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},fe);for(i.attributes=[];r.pos>>3){case 1:i.type=r.string();break;case 2:i.attributes.push(t.EventAttribute.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},fe);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=String(e.type):n.type="",void 0!==e.attributes&&null!==e.attributes){var r,a=i(e.attributes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.attributes.push(t.EventAttribute.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=e.type),e.attributes?n.attributes=e.attributes.map((function(e){return e?t.EventAttribute.toJSON(e):void 0})):n.attributes=[],n},fromPartial:function(e){var n=Object.assign({},fe);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=e.type:n.type="",void 0!==e.attributes&&null!==e.attributes){var r,a=i(e.attributes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.attributes.push(t.EventAttribute.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var de={index:!1};t.EventAttribute={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),0!==e.value.length&&t.uint32(18).bytes(e.value),!0===e.index&&t.uint32(24).bool(e.index),t},decode:function(e,t){var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},de);for(a.key=new Uint8Array,a.value=new Uint8Array;n.pos>>3){case 1:a.key=n.bytes();break;case 2:a.value=n.bytes();break;case 3:a.index=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},de);return t.key=new Uint8Array,t.value=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=xe(e.key)),void 0!==e.value&&null!==e.value&&(t.value=xe(e.value)),void 0!==e.index&&null!==e.index?t.index=Boolean(e.index):t.index=!1,t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=ke(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(t.value=ke(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.index&&(t.index=e.index),t},fromPartial:function(e){var t=Object.assign({},de);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.value&&null!==e.value?t.value=e.value:t.value=new Uint8Array,void 0!==e.index&&null!==e.index?t.index=e.index:t.index=!1,t}};var le={height:d.default.ZERO,index:0};t.TxResult={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return e.height.isZero()||n.uint32(8).int64(e.height),0!==e.index&&n.uint32(16).uint32(e.index),0!==e.tx.length&&n.uint32(26).bytes(e.tx),void 0!==e.result&&t.ResponseDeliverTx.encode(e.result,n.uint32(34).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},le);for(i.tx=new Uint8Array;r.pos>>3){case 1:i.height=r.int64();break;case 2:i.index=r.uint32();break;case 3:i.tx=r.bytes();break;case 4:i.result=t.ResponseDeliverTx.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},le);return n.tx=new Uint8Array,void 0!==e.height&&null!==e.height?n.height=d.default.fromString(e.height):n.height=d.default.ZERO,void 0!==e.index&&null!==e.index?n.index=Number(e.index):n.index=0,void 0!==e.tx&&null!==e.tx&&(n.tx=xe(e.tx)),void 0!==e.result&&null!==e.result?n.result=t.ResponseDeliverTx.fromJSON(e.result):n.result=void 0,n},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=(e.height||d.default.ZERO).toString()),void 0!==e.index&&(n.index=e.index),void 0!==e.tx&&(n.tx=ke(void 0!==e.tx?e.tx:new Uint8Array)),void 0!==e.result&&(n.result=e.result?t.ResponseDeliverTx.toJSON(e.result):void 0),n},fromPartial:function(e){var n=Object.assign({},le);return void 0!==e.height&&null!==e.height?n.height=e.height:n.height=d.default.ZERO,void 0!==e.index&&null!==e.index?n.index=e.index:n.index=0,void 0!==e.tx&&null!==e.tx?n.tx=e.tx:n.tx=new Uint8Array,void 0!==e.result&&null!==e.result?n.result=t.ResponseDeliverTx.fromPartial(e.result):n.result=void 0,n}};var pe={power:d.default.ZERO};t.Validator={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return 0!==e.address.length&&t.uint32(10).bytes(e.address),e.power.isZero()||t.uint32(24).int64(e.power),t},decode:function(e,t){var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},pe);for(a.address=new Uint8Array;n.pos>>3){case 1:a.address=n.bytes();break;case 3:a.power=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},pe);return t.address=new Uint8Array,void 0!==e.address&&null!==e.address&&(t.address=xe(e.address)),void 0!==e.power&&null!==e.power?t.power=d.default.fromString(e.power):t.power=d.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=ke(void 0!==e.address?e.address:new Uint8Array)),void 0!==e.power&&(t.power=(e.power||d.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},pe);return void 0!==e.address&&null!==e.address?t.address=e.address:t.address=new Uint8Array,void 0!==e.power&&null!==e.power?t.power=e.power:t.power=d.default.ZERO,t}};var be={power:d.default.ZERO};t.ValidatorUpdate={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return void 0!==e.pubKey&&m.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),e.power.isZero()||t.uint32(16).int64(e.power),t},decode:function(e,t){for(var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},be);n.pos>>3){case 1:a.pubKey=m.PublicKey.decode(n,n.uint32());break;case 2:a.power=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},be);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=m.PublicKey.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.power&&null!==e.power?t.power=d.default.fromString(e.power):t.power=d.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.pubKey&&(t.pubKey=e.pubKey?m.PublicKey.toJSON(e.pubKey):void 0),void 0!==e.power&&(t.power=(e.power||d.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},be);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=m.PublicKey.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.power&&null!==e.power?t.power=e.power:t.power=d.default.ZERO,t}};var he={signedLastBlock:!1};t.VoteInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return void 0!==e.validator&&t.Validator.encode(e.validator,n.uint32(10).fork()).ldelim(),!0===e.signedLastBlock&&n.uint32(16).bool(e.signedLastBlock),n},decode:function(e,n){for(var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},he);r.pos>>3){case 1:i.validator=t.Validator.decode(r,r.uint32());break;case 2:i.signedLastBlock=r.bool();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},he);return void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromJSON(e.validator):n.validator=void 0,void 0!==e.signedLastBlock&&null!==e.signedLastBlock?n.signedLastBlock=Boolean(e.signedLastBlock):n.signedLastBlock=!1,n},toJSON:function(e){var n={};return void 0!==e.validator&&(n.validator=e.validator?t.Validator.toJSON(e.validator):void 0),void 0!==e.signedLastBlock&&(n.signedLastBlock=e.signedLastBlock),n},fromPartial:function(e){var n=Object.assign({},he);return void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromPartial(e.validator):n.validator=void 0,void 0!==e.signedLastBlock&&null!==e.signedLastBlock?n.signedLastBlock=e.signedLastBlock:n.signedLastBlock=!1,n}};var ye={type:0,height:d.default.ZERO,totalVotingPower:d.default.ZERO};t.Evidence={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return 0!==e.type&&n.uint32(8).int32(e.type),void 0!==e.validator&&t.Validator.encode(e.validator,n.uint32(18).fork()).ldelim(),e.height.isZero()||n.uint32(24).int64(e.height),void 0!==e.time&&g.Timestamp.encode(Se(e.time),n.uint32(34).fork()).ldelim(),e.totalVotingPower.isZero()||n.uint32(40).int64(e.totalVotingPower),n},decode:function(e,n){for(var r=e instanceof p.default.Reader?e:new p.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},ye);r.pos>>3){case 1:i.type=r.int32();break;case 2:i.validator=t.Validator.decode(r,r.uint32());break;case 3:i.height=r.int64();break;case 4:i.time=Ie(g.Timestamp.decode(r,r.uint32()));break;case 5:i.totalVotingPower=r.int64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},ye);return void 0!==e.type&&null!==e.type?n.type=x(e.type):n.type=0,void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromJSON(e.validator):n.validator=void 0,void 0!==e.height&&null!==e.height?n.height=d.default.fromString(e.height):n.height=d.default.ZERO,void 0!==e.time&&null!==e.time?n.time=Ee(e.time):n.time=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=d.default.fromString(e.totalVotingPower):n.totalVotingPower=d.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=_(e.type)),void 0!==e.validator&&(n.validator=e.validator?t.Validator.toJSON(e.validator):void 0),void 0!==e.height&&(n.height=(e.height||d.default.ZERO).toString()),void 0!==e.time&&(n.time=e.time.toISOString()),void 0!==e.totalVotingPower&&(n.totalVotingPower=(e.totalVotingPower||d.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},ye);return void 0!==e.type&&null!==e.type?n.type=e.type:n.type=0,void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromPartial(e.validator):n.validator=void 0,void 0!==e.height&&null!==e.height?n.height=e.height:n.height=d.default.ZERO,void 0!==e.time&&null!==e.time?n.time=e.time:n.time=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=e.totalVotingPower:n.totalVotingPower=d.default.ZERO,n}};var me={height:d.default.UZERO,format:0,chunks:0};t.Snapshot={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.default.Writer.create();return e.height.isZero()||t.uint32(8).uint64(e.height),0!==e.format&&t.uint32(16).uint32(e.format),0!==e.chunks&&t.uint32(24).uint32(e.chunks),0!==e.hash.length&&t.uint32(34).bytes(e.hash),0!==e.metadata.length&&t.uint32(42).bytes(e.metadata),t},decode:function(e,t){var n=e instanceof p.default.Reader?e:new p.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},me);for(a.hash=new Uint8Array,a.metadata=new Uint8Array;n.pos>>3){case 1:a.height=n.uint64();break;case 2:a.format=n.uint32();break;case 3:a.chunks=n.uint32();break;case 4:a.hash=n.bytes();break;case 5:a.metadata=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},me);return t.hash=new Uint8Array,t.metadata=new Uint8Array,void 0!==e.height&&null!==e.height?t.height=d.default.fromString(e.height):t.height=d.default.UZERO,void 0!==e.format&&null!==e.format?t.format=Number(e.format):t.format=0,void 0!==e.chunks&&null!==e.chunks?t.chunks=Number(e.chunks):t.chunks=0,void 0!==e.hash&&null!==e.hash&&(t.hash=xe(e.hash)),void 0!==e.metadata&&null!==e.metadata&&(t.metadata=xe(e.metadata)),t},toJSON:function(e){var t={};return void 0!==e.height&&(t.height=(e.height||d.default.UZERO).toString()),void 0!==e.format&&(t.format=e.format),void 0!==e.chunks&&(t.chunks=e.chunks),void 0!==e.hash&&(t.hash=ke(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.metadata&&(t.metadata=ke(void 0!==e.metadata?e.metadata:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},me);return void 0!==e.height&&null!==e.height?t.height=e.height:t.height=d.default.UZERO,void 0!==e.format&&null!==e.format?t.format=e.format:t.format=0,void 0!==e.chunks&&null!==e.chunks?t.chunks=e.chunks:t.chunks=0,void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash=new Uint8Array,void 0!==e.metadata&&null!==e.metadata?t.metadata=e.metadata:t.metadata=new Uint8Array,t}};var ve=function(){function e(t){r(this,e),this.rpc=t,this.Echo=this.Echo.bind(this),this.Flush=this.Flush.bind(this),this.Info=this.Info.bind(this),this.SetOption=this.SetOption.bind(this),this.DeliverTx=this.DeliverTx.bind(this),this.CheckTx=this.CheckTx.bind(this),this.Query=this.Query.bind(this),this.Commit=this.Commit.bind(this),this.InitChain=this.InitChain.bind(this),this.BeginBlock=this.BeginBlock.bind(this),this.EndBlock=this.EndBlock.bind(this),this.ListSnapshots=this.ListSnapshots.bind(this),this.OfferSnapshot=this.OfferSnapshot.bind(this),this.LoadSnapshotChunk=this.LoadSnapshotChunk.bind(this),this.ApplySnapshotChunk=this.ApplySnapshotChunk.bind(this)}return a(e,[{key:"Echo",value:function(e,n){return this.rpc.unary(t.ABCIApplicationEchoDesc,t.RequestEcho.fromPartial(e),n)}},{key:"Flush",value:function(e,n){return this.rpc.unary(t.ABCIApplicationFlushDesc,t.RequestFlush.fromPartial(e),n)}},{key:"Info",value:function(e,n){return this.rpc.unary(t.ABCIApplicationInfoDesc,t.RequestInfo.fromPartial(e),n)}},{key:"SetOption",value:function(e,n){return this.rpc.unary(t.ABCIApplicationSetOptionDesc,t.RequestSetOption.fromPartial(e),n)}},{key:"DeliverTx",value:function(e,n){return this.rpc.unary(t.ABCIApplicationDeliverTxDesc,t.RequestDeliverTx.fromPartial(e),n)}},{key:"CheckTx",value:function(e,n){return this.rpc.unary(t.ABCIApplicationCheckTxDesc,t.RequestCheckTx.fromPartial(e),n)}},{key:"Query",value:function(e,n){return this.rpc.unary(t.ABCIApplicationQueryDesc,t.RequestQuery.fromPartial(e),n)}},{key:"Commit",value:function(e,n){return this.rpc.unary(t.ABCIApplicationCommitDesc,t.RequestCommit.fromPartial(e),n)}},{key:"InitChain",value:function(e,n){return this.rpc.unary(t.ABCIApplicationInitChainDesc,t.RequestInitChain.fromPartial(e),n)}},{key:"BeginBlock",value:function(e,n){return this.rpc.unary(t.ABCIApplicationBeginBlockDesc,t.RequestBeginBlock.fromPartial(e),n)}},{key:"EndBlock",value:function(e,n){return this.rpc.unary(t.ABCIApplicationEndBlockDesc,t.RequestEndBlock.fromPartial(e),n)}},{key:"ListSnapshots",value:function(e,n){return this.rpc.unary(t.ABCIApplicationListSnapshotsDesc,t.RequestListSnapshots.fromPartial(e),n)}},{key:"OfferSnapshot",value:function(e,n){return this.rpc.unary(t.ABCIApplicationOfferSnapshotDesc,t.RequestOfferSnapshot.fromPartial(e),n)}},{key:"LoadSnapshotChunk",value:function(e,n){return this.rpc.unary(t.ABCIApplicationLoadSnapshotChunkDesc,t.RequestLoadSnapshotChunk.fromPartial(e),n)}},{key:"ApplySnapshotChunk",value:function(e,n){return this.rpc.unary(t.ABCIApplicationApplySnapshotChunkDesc,t.RequestApplySnapshotChunk.fromPartial(e),n)}}]),e}();t.ABCIApplicationClientImpl=ve,t.ABCIApplicationDesc={serviceName:"tendermint.abci.ABCIApplication"},t.ABCIApplicationEchoDesc={methodName:"Echo",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestEcho.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseEcho.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationFlushDesc={methodName:"Flush",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestFlush.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseFlush.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationInfoDesc={methodName:"Info",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestInfo.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseInfo.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationSetOptionDesc={methodName:"SetOption",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestSetOption.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseSetOption.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationDeliverTxDesc={methodName:"DeliverTx",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestDeliverTx.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseDeliverTx.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationCheckTxDesc={methodName:"CheckTx",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestCheckTx.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseCheckTx.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationQueryDesc={methodName:"Query",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestQuery.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseQuery.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationCommitDesc={methodName:"Commit",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestCommit.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseCommit.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationInitChainDesc={methodName:"InitChain",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestInitChain.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseInitChain.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationBeginBlockDesc={methodName:"BeginBlock",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestBeginBlock.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseBeginBlock.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationEndBlockDesc={methodName:"EndBlock",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestEndBlock.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseEndBlock.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationListSnapshotsDesc={methodName:"ListSnapshots",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestListSnapshots.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseListSnapshots.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationOfferSnapshotDesc={methodName:"OfferSnapshot",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestOfferSnapshot.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseOfferSnapshot.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationLoadSnapshotChunkDesc={methodName:"LoadSnapshotChunk",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestLoadSnapshotChunk.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseLoadSnapshotChunk.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationApplySnapshotChunkDesc={methodName:"ApplySnapshotChunk",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestApplySnapshotChunk.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseApplySnapshotChunk.decode(e)),{toObject:function(){return this}})}}};var ge=function(){function e(t,n){r(this,e),this.host=t,this.options=n}return a(e,[{key:"unary",value:function(e,t,n){var r,a=this,i=Object.assign(Object.assign({},t),e.requestType),o=n&&this.options.metadata?new v.BrowserHeaders(Object.assign(Object.assign({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise((function(t,n){l.grpc.unary(e,{request:i,host:a.host,metadata:o,transport:a.options.transport,debug:a.options.debug,onEnd:function(e){if(e.status===l.grpc.Code.OK)t(e.message);else{var r=new Error(e.statusMessage);r.code=e.status,r.metadata=e.trailers,n(r)}}})}))}}]),e}();t.GrpcWebImpl=ge;var Ae=function(){if(void 0!==Ae)return Ae;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),we=Ae.atob||function(e){return Ae.Buffer.from(e,"base64").toString("binary")};function xe(e){for(var t=we(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.ed25519&&t.uint32(10).bytes(e.ed25519),void 0!==e.secp256k1&&t.uint32(18).bytes(e.secp256k1),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.ed25519=n.bytes();break;case 2:a.secp256k1=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.ed25519&&null!==e.ed25519&&(t.ed25519=f(e.ed25519)),void 0!==e.secp256k1&&null!==e.secp256k1&&(t.secp256k1=f(e.secp256k1)),t},toJSON:function(e){var t={};return void 0!==e.ed25519&&(t.ed25519=void 0!==e.ed25519?l(e.ed25519):void 0),void 0!==e.secp256k1&&(t.secp256k1=void 0!==e.secp256k1?l(e.secp256k1):void 0),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.ed25519&&null!==e.ed25519?t.ed25519=e.ed25519:t.ed25519=void 0,void 0!==e.secp256k1&&null!==e.secp256k1?t.secp256k1=e.secp256k1:t.secp256k1=void 0,t}};var c=function(){if(void 0!==c)return c;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),u=c.atob||function(e){return c.Buffer.from(e,"base64").toString("binary")};function f(e){for(var t=u(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.total.isZero()||t.uint32(8).int64(e.total),e.index.isZero()||t.uint32(16).int64(e.index),0!==e.leafHash.length&&t.uint32(26).bytes(e.leafHash);var n,a=r(e.aunts);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(34).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.aunts=[],a.leafHash=new Uint8Array;n.pos>>3){case 1:a.total=n.int64();break;case 2:a.index=n.int64();break;case 3:a.leafHash=n.bytes();break;case 4:a.aunts.push(n.bytes());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);if(t.aunts=[],t.leafHash=new Uint8Array,void 0!==e.total&&null!==e.total?t.total=i.default.fromString(e.total):t.total=i.default.ZERO,void 0!==e.index&&null!==e.index?t.index=i.default.fromString(e.index):t.index=i.default.ZERO,void 0!==e.leafHash&&null!==e.leafHash&&(t.leafHash=b(e.leafHash)),void 0!==e.aunts&&null!==e.aunts){var n,a=r(e.aunts);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.aunts.push(b(o))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.total&&(t.total=(e.total||i.default.ZERO).toString()),void 0!==e.index&&(t.index=(e.index||i.default.ZERO).toString()),void 0!==e.leafHash&&(t.leafHash=y(void 0!==e.leafHash?e.leafHash:new Uint8Array)),e.aunts?t.aunts=e.aunts.map((function(e){return y(void 0!==e?e:new Uint8Array)})):t.aunts=[],t},fromPartial:function(e){var t=Object.assign({},s);if(t.aunts=[],void 0!==e.total&&null!==e.total?t.total=e.total:t.total=i.default.ZERO,void 0!==e.index&&null!==e.index?t.index=e.index:t.index=i.default.ZERO,void 0!==e.leafHash&&null!==e.leafHash?t.leafHash=e.leafHash:t.leafHash=new Uint8Array,void 0!==e.aunts&&null!==e.aunts){var n,a=r(e.aunts);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.aunts.push(o)}}catch(e){a.e(e)}finally{a.f()}}return t}};var c={};t.ValueOp={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&n.uint32(10).bytes(e.key),void 0!==e.proof&&t.Proof.encode(e.proof,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);for(i.key=new Uint8Array;r.pos>>3){case 1:i.key=r.bytes();break;case 2:i.proof=t.Proof.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);return n.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(n.key=b(e.key)),void 0!==e.proof&&null!==e.proof?n.proof=t.Proof.fromJSON(e.proof):n.proof=void 0,n},toJSON:function(e){var n={};return void 0!==e.key&&(n.key=y(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.proof&&(n.proof=e.proof?t.Proof.toJSON(e.proof):void 0),n},fromPartial:function(e){var n=Object.assign({},c);return void 0!==e.key&&null!==e.key?n.key=e.key:n.key=new Uint8Array,void 0!==e.proof&&null!==e.proof?n.proof=t.Proof.fromPartial(e.proof):n.proof=void 0,n}};var u={key:"",input:"",output:""};t.DominoOp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.key&&t.uint32(10).string(e.key),""!==e.input&&t.uint32(18).string(e.input),""!==e.output&&t.uint32(26).string(e.output),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.key=n.string();break;case 2:a.input=n.string();break;case 3:a.output=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.input&&null!==e.input?t.input=String(e.input):t.input="",void 0!==e.output&&null!==e.output?t.output=String(e.output):t.output="",t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.input&&(t.input=e.input),void 0!==e.output&&(t.output=e.output),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.input&&null!==e.input?t.input=e.input:t.input="",void 0!==e.output&&null!==e.output?t.output=e.output:t.output="",t}};var f={type:""};t.ProofOp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.type&&t.uint32(10).string(e.type),0!==e.key.length&&t.uint32(18).bytes(e.key),0!==e.data.length&&t.uint32(26).bytes(e.data),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.key=new Uint8Array,a.data=new Uint8Array;n.pos>>3){case 1:a.type=n.string();break;case 2:a.key=n.bytes();break;case 3:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return t.key=new Uint8Array,t.data=new Uint8Array,void 0!==e.type&&null!==e.type?t.type=String(e.type):t.type="",void 0!==e.key&&null!==e.key&&(t.key=b(e.key)),void 0!==e.data&&null!==e.data&&(t.data=b(e.data)),t},toJSON:function(e){var t={};return void 0!==e.type&&(t.type=e.type),void 0!==e.key&&(t.key=y(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.data&&(t.data=y(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.type&&null!==e.type?t.type=e.type:t.type="",void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var d={};t.ProofOps={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.ops);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.ProofOp.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);for(i.ops=[];r.pos>>3==1?i.ops.push(t.ProofOp.decode(r,r.uint32())):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},d);if(n.ops=[],void 0!==e.ops&&null!==e.ops){var a,i=r(e.ops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.ops.push(t.ProofOp.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.ops?n.ops=e.ops.map((function(e){return e?t.ProofOp.toJSON(e):void 0})):n.ops=[],n},fromPartial:function(e){var n=Object.assign({},d);if(n.ops=[],void 0!==e.ops&&null!==e.ops){var a,i=r(e.ops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.ops.push(t.ProofOp.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var l=function(){if(void 0!==l)return l;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),p=l.atob||function(e){return l.Buffer.from(e,"base64").toString("binary")};function b(e){for(var t=p(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return void 0!==e.header&&o.Header.encode(e.header,t.uint32(10).fork()).ldelim(),void 0!==e.data&&o.Data.encode(e.data,t.uint32(18).fork()).ldelim(),void 0!==e.evidence&&s.EvidenceList.encode(e.evidence,t.uint32(26).fork()).ldelim(),void 0!==e.lastCommit&&o.Commit.encode(e.lastCommit,t.uint32(34).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.header=o.Header.decode(n,n.uint32());break;case 2:a.data=o.Data.decode(n,n.uint32());break;case 3:a.evidence=s.EvidenceList.decode(n,n.uint32());break;case 4:a.lastCommit=o.Commit.decode(n,n.uint32());break;default:n.skipType(7&u)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.header&&null!==e.header?t.header=o.Header.fromJSON(e.header):t.header=void 0,void 0!==e.data&&null!==e.data?t.data=o.Data.fromJSON(e.data):t.data=void 0,void 0!==e.evidence&&null!==e.evidence?t.evidence=s.EvidenceList.fromJSON(e.evidence):t.evidence=void 0,void 0!==e.lastCommit&&null!==e.lastCommit?t.lastCommit=o.Commit.fromJSON(e.lastCommit):t.lastCommit=void 0,t},toJSON:function(e){var t={};return void 0!==e.header&&(t.header=e.header?o.Header.toJSON(e.header):void 0),void 0!==e.data&&(t.data=e.data?o.Data.toJSON(e.data):void 0),void 0!==e.evidence&&(t.evidence=e.evidence?s.EvidenceList.toJSON(e.evidence):void 0),void 0!==e.lastCommit&&(t.lastCommit=e.lastCommit?o.Commit.toJSON(e.lastCommit):void 0),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.header&&null!==e.header?t.header=o.Header.fromPartial(e.header):t.header=void 0,void 0!==e.data&&null!==e.data?t.data=o.Data.fromPartial(e.data):t.data=void 0,void 0!==e.evidence&&null!==e.evidence?t.evidence=s.EvidenceList.fromPartial(e.evidence):t.evidence=void 0,void 0!==e.lastCommit&&null!==e.lastCommit?t.lastCommit=o.Commit.fromPartial(e.lastCommit):t.lastCommit=void 0,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},15194:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EvidenceList=t.LightClientAttackEvidence=t.DuplicateVoteEvidence=t.Evidence=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(50904)),s=n(73921),c=n(55120),u=n(16021);t.protobufPackage="tendermint.types";var f={};t.Evidence={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.duplicateVoteEvidence&&t.DuplicateVoteEvidence.encode(e.duplicateVoteEvidence,n.uint32(10).fork()).ldelim(),void 0!==e.lightClientAttackEvidence&&t.LightClientAttackEvidence.encode(e.lightClientAttackEvidence,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);r.pos>>3){case 1:i.duplicateVoteEvidence=t.DuplicateVoteEvidence.decode(r,r.uint32());break;case 2:i.lightClientAttackEvidence=t.LightClientAttackEvidence.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},f);return void 0!==e.duplicateVoteEvidence&&null!==e.duplicateVoteEvidence?n.duplicateVoteEvidence=t.DuplicateVoteEvidence.fromJSON(e.duplicateVoteEvidence):n.duplicateVoteEvidence=void 0,void 0!==e.lightClientAttackEvidence&&null!==e.lightClientAttackEvidence?n.lightClientAttackEvidence=t.LightClientAttackEvidence.fromJSON(e.lightClientAttackEvidence):n.lightClientAttackEvidence=void 0,n},toJSON:function(e){var n={};return void 0!==e.duplicateVoteEvidence&&(n.duplicateVoteEvidence=e.duplicateVoteEvidence?t.DuplicateVoteEvidence.toJSON(e.duplicateVoteEvidence):void 0),void 0!==e.lightClientAttackEvidence&&(n.lightClientAttackEvidence=e.lightClientAttackEvidence?t.LightClientAttackEvidence.toJSON(e.lightClientAttackEvidence):void 0),n},fromPartial:function(e){var n=Object.assign({},f);return void 0!==e.duplicateVoteEvidence&&null!==e.duplicateVoteEvidence?n.duplicateVoteEvidence=t.DuplicateVoteEvidence.fromPartial(e.duplicateVoteEvidence):n.duplicateVoteEvidence=void 0,void 0!==e.lightClientAttackEvidence&&null!==e.lightClientAttackEvidence?n.lightClientAttackEvidence=t.LightClientAttackEvidence.fromPartial(e.lightClientAttackEvidence):n.lightClientAttackEvidence=void 0,n}};var d={totalVotingPower:i.default.ZERO,validatorPower:i.default.ZERO};t.DuplicateVoteEvidence={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.voteA&&s.Vote.encode(e.voteA,t.uint32(10).fork()).ldelim(),void 0!==e.voteB&&s.Vote.encode(e.voteB,t.uint32(18).fork()).ldelim(),e.totalVotingPower.isZero()||t.uint32(24).int64(e.totalVotingPower),e.validatorPower.isZero()||t.uint32(32).int64(e.validatorPower),void 0!==e.timestamp&&c.Timestamp.encode(b(e.timestamp),t.uint32(42).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.voteA=s.Vote.decode(n,n.uint32());break;case 2:a.voteB=s.Vote.decode(n,n.uint32());break;case 3:a.totalVotingPower=n.int64();break;case 4:a.validatorPower=n.int64();break;case 5:a.timestamp=h(c.Timestamp.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.voteA&&null!==e.voteA?t.voteA=s.Vote.fromJSON(e.voteA):t.voteA=void 0,void 0!==e.voteB&&null!==e.voteB?t.voteB=s.Vote.fromJSON(e.voteB):t.voteB=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?t.totalVotingPower=i.default.fromString(e.totalVotingPower):t.totalVotingPower=i.default.ZERO,void 0!==e.validatorPower&&null!==e.validatorPower?t.validatorPower=i.default.fromString(e.validatorPower):t.validatorPower=i.default.ZERO,void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=y(e.timestamp):t.timestamp=void 0,t},toJSON:function(e){var t={};return void 0!==e.voteA&&(t.voteA=e.voteA?s.Vote.toJSON(e.voteA):void 0),void 0!==e.voteB&&(t.voteB=e.voteB?s.Vote.toJSON(e.voteB):void 0),void 0!==e.totalVotingPower&&(t.totalVotingPower=(e.totalVotingPower||i.default.ZERO).toString()),void 0!==e.validatorPower&&(t.validatorPower=(e.validatorPower||i.default.ZERO).toString()),void 0!==e.timestamp&&(t.timestamp=e.timestamp.toISOString()),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.voteA&&null!==e.voteA?t.voteA=s.Vote.fromPartial(e.voteA):t.voteA=void 0,void 0!==e.voteB&&null!==e.voteB?t.voteB=s.Vote.fromPartial(e.voteB):t.voteB=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?t.totalVotingPower=e.totalVotingPower:t.totalVotingPower=i.default.ZERO,void 0!==e.validatorPower&&null!==e.validatorPower?t.validatorPower=e.validatorPower:t.validatorPower=i.default.ZERO,void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=e.timestamp:t.timestamp=void 0,t}};var l={commonHeight:i.default.ZERO,totalVotingPower:i.default.ZERO};t.LightClientAttackEvidence={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.conflictingBlock&&s.LightBlock.encode(e.conflictingBlock,t.uint32(10).fork()).ldelim(),e.commonHeight.isZero()||t.uint32(16).int64(e.commonHeight);var n,a=r(e.byzantineValidators);try{for(a.s();!(n=a.n()).done;){var i=n.value;u.Validator.encode(i,t.uint32(26).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return e.totalVotingPower.isZero()||t.uint32(32).int64(e.totalVotingPower),void 0!==e.timestamp&&c.Timestamp.encode(b(e.timestamp),t.uint32(42).fork()).ldelim(),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.byzantineValidators=[];n.pos>>3){case 1:a.conflictingBlock=s.LightBlock.decode(n,n.uint32());break;case 2:a.commonHeight=n.int64();break;case 3:a.byzantineValidators.push(u.Validator.decode(n,n.uint32()));break;case 4:a.totalVotingPower=n.int64();break;case 5:a.timestamp=h(c.Timestamp.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.byzantineValidators=[],void 0!==e.conflictingBlock&&null!==e.conflictingBlock?t.conflictingBlock=s.LightBlock.fromJSON(e.conflictingBlock):t.conflictingBlock=void 0,void 0!==e.commonHeight&&null!==e.commonHeight?t.commonHeight=i.default.fromString(e.commonHeight):t.commonHeight=i.default.ZERO,void 0!==e.byzantineValidators&&null!==e.byzantineValidators){var n,a=r(e.byzantineValidators);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.byzantineValidators.push(u.Validator.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.totalVotingPower&&null!==e.totalVotingPower?t.totalVotingPower=i.default.fromString(e.totalVotingPower):t.totalVotingPower=i.default.ZERO,void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=y(e.timestamp):t.timestamp=void 0,t},toJSON:function(e){var t={};return void 0!==e.conflictingBlock&&(t.conflictingBlock=e.conflictingBlock?s.LightBlock.toJSON(e.conflictingBlock):void 0),void 0!==e.commonHeight&&(t.commonHeight=(e.commonHeight||i.default.ZERO).toString()),e.byzantineValidators?t.byzantineValidators=e.byzantineValidators.map((function(e){return e?u.Validator.toJSON(e):void 0})):t.byzantineValidators=[],void 0!==e.totalVotingPower&&(t.totalVotingPower=(e.totalVotingPower||i.default.ZERO).toString()),void 0!==e.timestamp&&(t.timestamp=e.timestamp.toISOString()),t},fromPartial:function(e){var t=Object.assign({},l);if(t.byzantineValidators=[],void 0!==e.conflictingBlock&&null!==e.conflictingBlock?t.conflictingBlock=s.LightBlock.fromPartial(e.conflictingBlock):t.conflictingBlock=void 0,void 0!==e.commonHeight&&null!==e.commonHeight?t.commonHeight=e.commonHeight:t.commonHeight=i.default.ZERO,void 0!==e.byzantineValidators&&null!==e.byzantineValidators){var n,a=r(e.byzantineValidators);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.byzantineValidators.push(u.Validator.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.totalVotingPower&&null!==e.totalVotingPower?t.totalVotingPower=e.totalVotingPower:t.totalVotingPower=i.default.ZERO,void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=e.timestamp:t.timestamp=void 0,t}};var p={};function b(e){var t;return{seconds:(t=e.getTime()/1e3,i.default.fromNumber(t)),nanos:e.getTime()%1e3*1e6}}function h(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}function y(e){return e instanceof Date?e:"string"==typeof e?new Date(e):h(c.Timestamp.fromJSON(e))}t.EvidenceList={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.evidence);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.Evidence.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);for(i.evidence=[];r.pos>>3==1?i.evidence.push(t.Evidence.decode(r,r.uint32())):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},p);if(n.evidence=[],void 0!==e.evidence&&null!==e.evidence){var a,i=r(e.evidence);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.evidence.push(t.Evidence.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.evidence?n.evidence=e.evidence.map((function(e){return e?t.Evidence.toJSON(e):void 0})):n.evidence=[],n},fromPartial:function(e){var n=Object.assign({},p);if(n.evidence=[],void 0!==e.evidence&&null!==e.evidence){var a,i=r(e.evidence);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.evidence.push(t.Evidence.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},76826:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HashedParams=t.VersionParams=t.ValidatorParams=t.EvidenceParams=t.BlockParams=t.ConsensusParams=t.protobufPackage=void 0;var i=a(n(12620)),o=a(n(50904)),s=n(82043);t.protobufPackage="tendermint.types";var c={};t.ConsensusParams={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.block&&t.BlockParams.encode(e.block,n.uint32(10).fork()).ldelim(),void 0!==e.evidence&&t.EvidenceParams.encode(e.evidence,n.uint32(18).fork()).ldelim(),void 0!==e.validator&&t.ValidatorParams.encode(e.validator,n.uint32(26).fork()).ldelim(),void 0!==e.version&&t.VersionParams.encode(e.version,n.uint32(34).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);r.pos>>3){case 1:i.block=t.BlockParams.decode(r,r.uint32());break;case 2:i.evidence=t.EvidenceParams.decode(r,r.uint32());break;case 3:i.validator=t.ValidatorParams.decode(r,r.uint32());break;case 4:i.version=t.VersionParams.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromJSON(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=t.EvidenceParams.fromJSON(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=t.ValidatorParams.fromJSON(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=t.VersionParams.fromJSON(e.version):n.version=void 0,n},toJSON:function(e){var n={};return void 0!==e.block&&(n.block=e.block?t.BlockParams.toJSON(e.block):void 0),void 0!==e.evidence&&(n.evidence=e.evidence?t.EvidenceParams.toJSON(e.evidence):void 0),void 0!==e.validator&&(n.validator=e.validator?t.ValidatorParams.toJSON(e.validator):void 0),void 0!==e.version&&(n.version=e.version?t.VersionParams.toJSON(e.version):void 0),n},fromPartial:function(e){var n=Object.assign({},c);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromPartial(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=t.EvidenceParams.fromPartial(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=t.ValidatorParams.fromPartial(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=t.VersionParams.fromPartial(e.version):n.version=void 0,n}};var u={maxBytes:i.default.ZERO,maxGas:i.default.ZERO,timeIotaMs:i.default.ZERO};t.BlockParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.maxBytes.isZero()||t.uint32(8).int64(e.maxBytes),e.maxGas.isZero()||t.uint32(16).int64(e.maxGas),e.timeIotaMs.isZero()||t.uint32(24).int64(e.timeIotaMs),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.maxBytes=n.int64();break;case 2:a.maxGas=n.int64();break;case 3:a.timeIotaMs=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=i.default.fromString(e.maxBytes):t.maxBytes=i.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=i.default.fromString(e.maxGas):t.maxGas=i.default.ZERO,void 0!==e.timeIotaMs&&null!==e.timeIotaMs?t.timeIotaMs=i.default.fromString(e.timeIotaMs):t.timeIotaMs=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.maxBytes&&(t.maxBytes=(e.maxBytes||i.default.ZERO).toString()),void 0!==e.maxGas&&(t.maxGas=(e.maxGas||i.default.ZERO).toString()),void 0!==e.timeIotaMs&&(t.timeIotaMs=(e.timeIotaMs||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=e.maxBytes:t.maxBytes=i.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=e.maxGas:t.maxGas=i.default.ZERO,void 0!==e.timeIotaMs&&null!==e.timeIotaMs?t.timeIotaMs=e.timeIotaMs:t.timeIotaMs=i.default.ZERO,t}};var f={maxAgeNumBlocks:i.default.ZERO,maxBytes:i.default.ZERO};t.EvidenceParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.maxAgeNumBlocks.isZero()||t.uint32(8).int64(e.maxAgeNumBlocks),void 0!==e.maxAgeDuration&&s.Duration.encode(e.maxAgeDuration,t.uint32(18).fork()).ldelim(),e.maxBytes.isZero()||t.uint32(24).int64(e.maxBytes),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.maxAgeNumBlocks=n.int64();break;case 2:a.maxAgeDuration=s.Duration.decode(n,n.uint32());break;case 3:a.maxBytes=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.maxAgeNumBlocks&&null!==e.maxAgeNumBlocks?t.maxAgeNumBlocks=i.default.fromString(e.maxAgeNumBlocks):t.maxAgeNumBlocks=i.default.ZERO,void 0!==e.maxAgeDuration&&null!==e.maxAgeDuration?t.maxAgeDuration=s.Duration.fromJSON(e.maxAgeDuration):t.maxAgeDuration=void 0,void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=i.default.fromString(e.maxBytes):t.maxBytes=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.maxAgeNumBlocks&&(t.maxAgeNumBlocks=(e.maxAgeNumBlocks||i.default.ZERO).toString()),void 0!==e.maxAgeDuration&&(t.maxAgeDuration=e.maxAgeDuration?s.Duration.toJSON(e.maxAgeDuration):void 0),void 0!==e.maxBytes&&(t.maxBytes=(e.maxBytes||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.maxAgeNumBlocks&&null!==e.maxAgeNumBlocks?t.maxAgeNumBlocks=e.maxAgeNumBlocks:t.maxAgeNumBlocks=i.default.ZERO,void 0!==e.maxAgeDuration&&null!==e.maxAgeDuration?t.maxAgeDuration=s.Duration.fromPartial(e.maxAgeDuration):t.maxAgeDuration=void 0,void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=e.maxBytes:t.maxBytes=i.default.ZERO,t}};var d={pubKeyTypes:""};t.ValidatorParams={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.pubKeyTypes);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.pubKeyTypes=[];n.pos>>3==1?a.pubKeyTypes.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},d);if(t.pubKeyTypes=[],void 0!==e.pubKeyTypes&&null!==e.pubKeyTypes){var n,a=r(e.pubKeyTypes);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.pubKeyTypes.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.pubKeyTypes?t.pubKeyTypes=e.pubKeyTypes.map((function(e){return e})):t.pubKeyTypes=[],t},fromPartial:function(e){var t=Object.assign({},d);if(t.pubKeyTypes=[],void 0!==e.pubKeyTypes&&null!==e.pubKeyTypes){var n,a=r(e.pubKeyTypes);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.pubKeyTypes.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var l={appVersion:i.default.UZERO};t.VersionParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.appVersion.isZero()||t.uint32(8).uint64(e.appVersion),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3==1?a.appVersion=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=i.default.fromString(e.appVersion):t.appVersion=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.appVersion&&(t.appVersion=(e.appVersion||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=e.appVersion:t.appVersion=i.default.UZERO,t}};var p={blockMaxBytes:i.default.ZERO,blockMaxGas:i.default.ZERO};t.HashedParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.blockMaxBytes.isZero()||t.uint32(8).int64(e.blockMaxBytes),e.blockMaxGas.isZero()||t.uint32(16).int64(e.blockMaxGas),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.blockMaxBytes=n.int64();break;case 2:a.blockMaxGas=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.blockMaxBytes&&null!==e.blockMaxBytes?t.blockMaxBytes=i.default.fromString(e.blockMaxBytes):t.blockMaxBytes=i.default.ZERO,void 0!==e.blockMaxGas&&null!==e.blockMaxGas?t.blockMaxGas=i.default.fromString(e.blockMaxGas):t.blockMaxGas=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.blockMaxBytes&&(t.blockMaxBytes=(e.blockMaxBytes||i.default.ZERO).toString()),void 0!==e.blockMaxGas&&(t.blockMaxGas=(e.blockMaxGas||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.blockMaxBytes&&null!==e.blockMaxBytes?t.blockMaxBytes=e.blockMaxBytes:t.blockMaxBytes=i.default.ZERO,void 0!==e.blockMaxGas&&null!==e.blockMaxGas?t.blockMaxGas=e.blockMaxGas:t.blockMaxGas=i.default.ZERO,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},73921:function(e,t,n){"use strict";var r=n(21146).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TxProof=t.BlockMeta=t.LightBlock=t.SignedHeader=t.Proposal=t.CommitSig=t.Commit=t.Vote=t.Data=t.Header=t.BlockID=t.Part=t.PartSetHeader=t.signedMsgTypeToJSON=t.signedMsgTypeFromJSON=t.SignedMsgType=t.blockIDFlagToJSON=t.blockIDFlagFromJSON=t.BlockIDFlag=t.protobufPackage=void 0;var i,o,s=a(n(12620)),c=a(n(50904)),u=n(4058),f=n(2673),d=n(16021),l=n(55120);function p(e){switch(e){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return i.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return i.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return i.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return i.BLOCK_ID_FLAG_NIL;default:return i.UNRECOGNIZED}}function b(e){switch(e){case i.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case i.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case i.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case i.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";default:return"UNKNOWN"}}function h(e){switch(e){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return o.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return o.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return o.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return o.SIGNED_MSG_TYPE_PROPOSAL;default:return o.UNRECOGNIZED}}function y(e){switch(e){case o.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case o.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case o.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case o.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";default:return"UNKNOWN"}}t.protobufPackage="tendermint.types",function(e){e[e.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",e[e.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",e[e.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",e[e.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=t.BlockIDFlag||(t.BlockIDFlag={})),t.blockIDFlagFromJSON=p,t.blockIDFlagToJSON=b,function(e){e[e.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",e[e.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",e[e.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",e[e.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=t.SignedMsgType||(t.SignedMsgType={})),t.signedMsgTypeFromJSON=h,t.signedMsgTypeToJSON=y;var m={total:0};t.PartSetHeader={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.total&&t.uint32(8).uint32(e.total),0!==e.hash.length&&t.uint32(18).bytes(e.hash),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.hash=new Uint8Array;n.pos>>3){case 1:a.total=n.uint32();break;case 2:a.hash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return t.hash=new Uint8Array,void 0!==e.total&&null!==e.total?t.total=Number(e.total):t.total=0,void 0!==e.hash&&null!==e.hash&&(t.hash=M(e.hash)),t},toJSON:function(e){var t={};return void 0!==e.total&&(t.total=e.total),void 0!==e.hash&&(t.hash=R(void 0!==e.hash?e.hash:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.total&&null!==e.total?t.total=e.total:t.total=0,void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash=new Uint8Array,t}};var v={index:0};t.Part={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.index&&t.uint32(8).uint32(e.index),0!==e.bytes.length&&t.uint32(18).bytes(e.bytes),void 0!==e.proof&&u.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.bytes=new Uint8Array;n.pos>>3){case 1:a.index=n.uint32();break;case 2:a.bytes=n.bytes();break;case 3:a.proof=u.Proof.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return t.bytes=new Uint8Array,void 0!==e.index&&null!==e.index?t.index=Number(e.index):t.index=0,void 0!==e.bytes&&null!==e.bytes&&(t.bytes=M(e.bytes)),void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromJSON(e.proof):t.proof=void 0,t},toJSON:function(e){var t={};return void 0!==e.index&&(t.index=e.index),void 0!==e.bytes&&(t.bytes=R(void 0!==e.bytes?e.bytes:new Uint8Array)),void 0!==e.proof&&(t.proof=e.proof?u.Proof.toJSON(e.proof):void 0),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.index&&null!==e.index?t.index=e.index:t.index=0,void 0!==e.bytes&&null!==e.bytes?t.bytes=e.bytes:t.bytes=new Uint8Array,void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromPartial(e.proof):t.proof=void 0,t}};var g={};t.BlockID={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.hash.length&&n.uint32(10).bytes(e.hash),void 0!==e.partSetHeader&&t.PartSetHeader.encode(e.partSetHeader,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},g);for(i.hash=new Uint8Array;r.pos>>3){case 1:i.hash=r.bytes();break;case 2:i.partSetHeader=t.PartSetHeader.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},g);return n.hash=new Uint8Array,void 0!==e.hash&&null!==e.hash&&(n.hash=M(e.hash)),void 0!==e.partSetHeader&&null!==e.partSetHeader?n.partSetHeader=t.PartSetHeader.fromJSON(e.partSetHeader):n.partSetHeader=void 0,n},toJSON:function(e){var n={};return void 0!==e.hash&&(n.hash=R(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.partSetHeader&&(n.partSetHeader=e.partSetHeader?t.PartSetHeader.toJSON(e.partSetHeader):void 0),n},fromPartial:function(e){var n=Object.assign({},g);return void 0!==e.hash&&null!==e.hash?n.hash=e.hash:n.hash=new Uint8Array,void 0!==e.partSetHeader&&null!==e.partSetHeader?n.partSetHeader=t.PartSetHeader.fromPartial(e.partSetHeader):n.partSetHeader=void 0,n}};var A={chainId:"",height:s.default.ZERO};t.Header={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.version&&f.Consensus.encode(e.version,n.uint32(10).fork()).ldelim(),""!==e.chainId&&n.uint32(18).string(e.chainId),e.height.isZero()||n.uint32(24).int64(e.height),void 0!==e.time&&l.Timestamp.encode(N(e.time),n.uint32(34).fork()).ldelim(),void 0!==e.lastBlockId&&t.BlockID.encode(e.lastBlockId,n.uint32(42).fork()).ldelim(),0!==e.lastCommitHash.length&&n.uint32(50).bytes(e.lastCommitHash),0!==e.dataHash.length&&n.uint32(58).bytes(e.dataHash),0!==e.validatorsHash.length&&n.uint32(66).bytes(e.validatorsHash),0!==e.nextValidatorsHash.length&&n.uint32(74).bytes(e.nextValidatorsHash),0!==e.consensusHash.length&&n.uint32(82).bytes(e.consensusHash),0!==e.appHash.length&&n.uint32(90).bytes(e.appHash),0!==e.lastResultsHash.length&&n.uint32(98).bytes(e.lastResultsHash),0!==e.evidenceHash.length&&n.uint32(106).bytes(e.evidenceHash),0!==e.proposerAddress.length&&n.uint32(114).bytes(e.proposerAddress),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},A);for(i.lastCommitHash=new Uint8Array,i.dataHash=new Uint8Array,i.validatorsHash=new Uint8Array,i.nextValidatorsHash=new Uint8Array,i.consensusHash=new Uint8Array,i.appHash=new Uint8Array,i.lastResultsHash=new Uint8Array,i.evidenceHash=new Uint8Array,i.proposerAddress=new Uint8Array;r.pos>>3){case 1:i.version=f.Consensus.decode(r,r.uint32());break;case 2:i.chainId=r.string();break;case 3:i.height=r.int64();break;case 4:i.time=D(l.Timestamp.decode(r,r.uint32()));break;case 5:i.lastBlockId=t.BlockID.decode(r,r.uint32());break;case 6:i.lastCommitHash=r.bytes();break;case 7:i.dataHash=r.bytes();break;case 8:i.validatorsHash=r.bytes();break;case 9:i.nextValidatorsHash=r.bytes();break;case 10:i.consensusHash=r.bytes();break;case 11:i.appHash=r.bytes();break;case 12:i.lastResultsHash=r.bytes();break;case 13:i.evidenceHash=r.bytes();break;case 14:i.proposerAddress=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},A);return n.lastCommitHash=new Uint8Array,n.dataHash=new Uint8Array,n.validatorsHash=new Uint8Array,n.nextValidatorsHash=new Uint8Array,n.consensusHash=new Uint8Array,n.appHash=new Uint8Array,n.lastResultsHash=new Uint8Array,n.evidenceHash=new Uint8Array,n.proposerAddress=new Uint8Array,void 0!==e.version&&null!==e.version?n.version=f.Consensus.fromJSON(e.version):n.version=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=String(e.chainId):n.chainId="",void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.time&&null!==e.time?n.time=j(e.time):n.time=void 0,void 0!==e.lastBlockId&&null!==e.lastBlockId?n.lastBlockId=t.BlockID.fromJSON(e.lastBlockId):n.lastBlockId=void 0,void 0!==e.lastCommitHash&&null!==e.lastCommitHash&&(n.lastCommitHash=M(e.lastCommitHash)),void 0!==e.dataHash&&null!==e.dataHash&&(n.dataHash=M(e.dataHash)),void 0!==e.validatorsHash&&null!==e.validatorsHash&&(n.validatorsHash=M(e.validatorsHash)),void 0!==e.nextValidatorsHash&&null!==e.nextValidatorsHash&&(n.nextValidatorsHash=M(e.nextValidatorsHash)),void 0!==e.consensusHash&&null!==e.consensusHash&&(n.consensusHash=M(e.consensusHash)),void 0!==e.appHash&&null!==e.appHash&&(n.appHash=M(e.appHash)),void 0!==e.lastResultsHash&&null!==e.lastResultsHash&&(n.lastResultsHash=M(e.lastResultsHash)),void 0!==e.evidenceHash&&null!==e.evidenceHash&&(n.evidenceHash=M(e.evidenceHash)),void 0!==e.proposerAddress&&null!==e.proposerAddress&&(n.proposerAddress=M(e.proposerAddress)),n},toJSON:function(e){var n={};return void 0!==e.version&&(n.version=e.version?f.Consensus.toJSON(e.version):void 0),void 0!==e.chainId&&(n.chainId=e.chainId),void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.time&&(n.time=e.time.toISOString()),void 0!==e.lastBlockId&&(n.lastBlockId=e.lastBlockId?t.BlockID.toJSON(e.lastBlockId):void 0),void 0!==e.lastCommitHash&&(n.lastCommitHash=R(void 0!==e.lastCommitHash?e.lastCommitHash:new Uint8Array)),void 0!==e.dataHash&&(n.dataHash=R(void 0!==e.dataHash?e.dataHash:new Uint8Array)),void 0!==e.validatorsHash&&(n.validatorsHash=R(void 0!==e.validatorsHash?e.validatorsHash:new Uint8Array)),void 0!==e.nextValidatorsHash&&(n.nextValidatorsHash=R(void 0!==e.nextValidatorsHash?e.nextValidatorsHash:new Uint8Array)),void 0!==e.consensusHash&&(n.consensusHash=R(void 0!==e.consensusHash?e.consensusHash:new Uint8Array)),void 0!==e.appHash&&(n.appHash=R(void 0!==e.appHash?e.appHash:new Uint8Array)),void 0!==e.lastResultsHash&&(n.lastResultsHash=R(void 0!==e.lastResultsHash?e.lastResultsHash:new Uint8Array)),void 0!==e.evidenceHash&&(n.evidenceHash=R(void 0!==e.evidenceHash?e.evidenceHash:new Uint8Array)),void 0!==e.proposerAddress&&(n.proposerAddress=R(void 0!==e.proposerAddress?e.proposerAddress:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},A);return void 0!==e.version&&null!==e.version?n.version=f.Consensus.fromPartial(e.version):n.version=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=e.chainId:n.chainId="",void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.time&&null!==e.time?n.time=e.time:n.time=void 0,void 0!==e.lastBlockId&&null!==e.lastBlockId?n.lastBlockId=t.BlockID.fromPartial(e.lastBlockId):n.lastBlockId=void 0,void 0!==e.lastCommitHash&&null!==e.lastCommitHash?n.lastCommitHash=e.lastCommitHash:n.lastCommitHash=new Uint8Array,void 0!==e.dataHash&&null!==e.dataHash?n.dataHash=e.dataHash:n.dataHash=new Uint8Array,void 0!==e.validatorsHash&&null!==e.validatorsHash?n.validatorsHash=e.validatorsHash:n.validatorsHash=new Uint8Array,void 0!==e.nextValidatorsHash&&null!==e.nextValidatorsHash?n.nextValidatorsHash=e.nextValidatorsHash:n.nextValidatorsHash=new Uint8Array,void 0!==e.consensusHash&&null!==e.consensusHash?n.consensusHash=e.consensusHash:n.consensusHash=new Uint8Array,void 0!==e.appHash&&null!==e.appHash?n.appHash=e.appHash:n.appHash=new Uint8Array,void 0!==e.lastResultsHash&&null!==e.lastResultsHash?n.lastResultsHash=e.lastResultsHash:n.lastResultsHash=new Uint8Array,void 0!==e.evidenceHash&&null!==e.evidenceHash?n.evidenceHash=e.evidenceHash:n.evidenceHash=new Uint8Array,void 0!==e.proposerAddress&&null!==e.proposerAddress?n.proposerAddress=e.proposerAddress:n.proposerAddress=new Uint8Array,n}};var w={};t.Data={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create(),a=r(e.txs);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);for(a.txs=[];n.pos>>3==1?a.txs.push(n.bytes()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},w);if(t.txs=[],void 0!==e.txs&&null!==e.txs){var n,a=r(e.txs);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.txs.push(M(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.txs?t.txs=e.txs.map((function(e){return R(void 0!==e?e:new Uint8Array)})):t.txs=[],t},fromPartial:function(e){var t=Object.assign({},w);if(t.txs=[],void 0!==e.txs&&null!==e.txs){var n,a=r(e.txs);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.txs.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var x={type:0,height:s.default.ZERO,round:0,validatorIndex:0};t.Vote={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.type&&n.uint32(8).int32(e.type),e.height.isZero()||n.uint32(16).int64(e.height),0!==e.round&&n.uint32(24).int32(e.round),void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(34).fork()).ldelim(),void 0!==e.timestamp&&l.Timestamp.encode(N(e.timestamp),n.uint32(42).fork()).ldelim(),0!==e.validatorAddress.length&&n.uint32(50).bytes(e.validatorAddress),0!==e.validatorIndex&&n.uint32(56).int32(e.validatorIndex),0!==e.signature.length&&n.uint32(66).bytes(e.signature),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},x);for(i.validatorAddress=new Uint8Array,i.signature=new Uint8Array;r.pos>>3){case 1:i.type=r.int32();break;case 2:i.height=r.int64();break;case 3:i.round=r.int32();break;case 4:i.blockId=t.BlockID.decode(r,r.uint32());break;case 5:i.timestamp=D(l.Timestamp.decode(r,r.uint32()));break;case 6:i.validatorAddress=r.bytes();break;case 7:i.validatorIndex=r.int32();break;case 8:i.signature=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},x);return n.validatorAddress=new Uint8Array,n.signature=new Uint8Array,void 0!==e.type&&null!==e.type?n.type=h(e.type):n.type=0,void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=j(e.timestamp):n.timestamp=void 0,void 0!==e.validatorAddress&&null!==e.validatorAddress&&(n.validatorAddress=M(e.validatorAddress)),void 0!==e.validatorIndex&&null!==e.validatorIndex?n.validatorIndex=Number(e.validatorIndex):n.validatorIndex=0,void 0!==e.signature&&null!==e.signature&&(n.signature=M(e.signature)),n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=y(e.type)),void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.round&&(n.round=e.round),void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.timestamp&&(n.timestamp=e.timestamp.toISOString()),void 0!==e.validatorAddress&&(n.validatorAddress=R(void 0!==e.validatorAddress?e.validatorAddress:new Uint8Array)),void 0!==e.validatorIndex&&(n.validatorIndex=e.validatorIndex),void 0!==e.signature&&(n.signature=R(void 0!==e.signature?e.signature:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},x);return void 0!==e.type&&null!==e.type?n.type=e.type:n.type=0,void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=e.timestamp:n.timestamp=void 0,void 0!==e.validatorAddress&&null!==e.validatorAddress?n.validatorAddress=e.validatorAddress:n.validatorAddress=new Uint8Array,void 0!==e.validatorIndex&&null!==e.validatorIndex?n.validatorIndex=e.validatorIndex:n.validatorIndex=0,void 0!==e.signature&&null!==e.signature?n.signature=e.signature:n.signature=new Uint8Array,n}};var _={height:s.default.ZERO,round:0};t.Commit={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.height.isZero()||n.uint32(8).int64(e.height),0!==e.round&&n.uint32(16).int32(e.round),void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(26).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.CommitSig.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},_);for(i.signatures=[];r.pos>>3){case 1:i.height=r.int64();break;case 2:i.round=r.int32();break;case 3:i.blockId=t.BlockID.decode(r,r.uint32());break;case 4:i.signatures.push(t.CommitSig.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},_);if(n.signatures=[],void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.CommitSig.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.round&&(n.round=e.round),void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return e?t.CommitSig.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},_);if(n.signatures=[],void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.CommitSig.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var k={blockIdFlag:0};t.CommitSig={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.blockIdFlag&&t.uint32(8).int32(e.blockIdFlag),0!==e.validatorAddress.length&&t.uint32(18).bytes(e.validatorAddress),void 0!==e.timestamp&&l.Timestamp.encode(N(e.timestamp),t.uint32(26).fork()).ldelim(),0!==e.signature.length&&t.uint32(34).bytes(e.signature),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);for(a.validatorAddress=new Uint8Array,a.signature=new Uint8Array;n.pos>>3){case 1:a.blockIdFlag=n.int32();break;case 2:a.validatorAddress=n.bytes();break;case 3:a.timestamp=D(l.Timestamp.decode(n,n.uint32()));break;case 4:a.signature=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},k);return t.validatorAddress=new Uint8Array,t.signature=new Uint8Array,void 0!==e.blockIdFlag&&null!==e.blockIdFlag?t.blockIdFlag=p(e.blockIdFlag):t.blockIdFlag=0,void 0!==e.validatorAddress&&null!==e.validatorAddress&&(t.validatorAddress=M(e.validatorAddress)),void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=j(e.timestamp):t.timestamp=void 0,void 0!==e.signature&&null!==e.signature&&(t.signature=M(e.signature)),t},toJSON:function(e){var t={};return void 0!==e.blockIdFlag&&(t.blockIdFlag=b(e.blockIdFlag)),void 0!==e.validatorAddress&&(t.validatorAddress=R(void 0!==e.validatorAddress?e.validatorAddress:new Uint8Array)),void 0!==e.timestamp&&(t.timestamp=e.timestamp.toISOString()),void 0!==e.signature&&(t.signature=R(void 0!==e.signature?e.signature:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.blockIdFlag&&null!==e.blockIdFlag?t.blockIdFlag=e.blockIdFlag:t.blockIdFlag=0,void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress=new Uint8Array,void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=e.timestamp:t.timestamp=void 0,void 0!==e.signature&&null!==e.signature?t.signature=e.signature:t.signature=new Uint8Array,t}};var S={type:0,height:s.default.ZERO,round:0,polRound:0};t.Proposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.type&&n.uint32(8).int32(e.type),e.height.isZero()||n.uint32(16).int64(e.height),0!==e.round&&n.uint32(24).int32(e.round),0!==e.polRound&&n.uint32(32).int32(e.polRound),void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(42).fork()).ldelim(),void 0!==e.timestamp&&l.Timestamp.encode(N(e.timestamp),n.uint32(50).fork()).ldelim(),0!==e.signature.length&&n.uint32(58).bytes(e.signature),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},S);for(i.signature=new Uint8Array;r.pos>>3){case 1:i.type=r.int32();break;case 2:i.height=r.int64();break;case 3:i.round=r.int32();break;case 4:i.polRound=r.int32();break;case 5:i.blockId=t.BlockID.decode(r,r.uint32());break;case 6:i.timestamp=D(l.Timestamp.decode(r,r.uint32()));break;case 7:i.signature=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},S);return n.signature=new Uint8Array,void 0!==e.type&&null!==e.type?n.type=h(e.type):n.type=0,void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.polRound&&null!==e.polRound?n.polRound=Number(e.polRound):n.polRound=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=j(e.timestamp):n.timestamp=void 0,void 0!==e.signature&&null!==e.signature&&(n.signature=M(e.signature)),n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=y(e.type)),void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.round&&(n.round=e.round),void 0!==e.polRound&&(n.polRound=e.polRound),void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.timestamp&&(n.timestamp=e.timestamp.toISOString()),void 0!==e.signature&&(n.signature=R(void 0!==e.signature?e.signature:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},S);return void 0!==e.type&&null!==e.type?n.type=e.type:n.type=0,void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.polRound&&null!==e.polRound?n.polRound=e.polRound:n.polRound=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=e.timestamp:n.timestamp=void 0,void 0!==e.signature&&null!==e.signature?n.signature=e.signature:n.signature=new Uint8Array,n}};var I={};t.SignedHeader={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.header&&t.Header.encode(e.header,n.uint32(10).fork()).ldelim(),void 0!==e.commit&&t.Commit.encode(e.commit,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},I);r.pos>>3){case 1:i.header=t.Header.decode(r,r.uint32());break;case 2:i.commit=t.Commit.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},I);return void 0!==e.header&&null!==e.header?n.header=t.Header.fromJSON(e.header):n.header=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.Commit.fromJSON(e.commit):n.commit=void 0,n},toJSON:function(e){var n={};return void 0!==e.header&&(n.header=e.header?t.Header.toJSON(e.header):void 0),void 0!==e.commit&&(n.commit=e.commit?t.Commit.toJSON(e.commit):void 0),n},fromPartial:function(e){var n=Object.assign({},I);return void 0!==e.header&&null!==e.header?n.header=t.Header.fromPartial(e.header):n.header=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.Commit.fromPartial(e.commit):n.commit=void 0,n}};var E={};t.LightBlock={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.signedHeader&&t.SignedHeader.encode(e.signedHeader,n.uint32(10).fork()).ldelim(),void 0!==e.validatorSet&&d.ValidatorSet.encode(e.validatorSet,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},E);r.pos>>3){case 1:i.signedHeader=t.SignedHeader.decode(r,r.uint32());break;case 2:i.validatorSet=d.ValidatorSet.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},E);return void 0!==e.signedHeader&&null!==e.signedHeader?n.signedHeader=t.SignedHeader.fromJSON(e.signedHeader):n.signedHeader=void 0,void 0!==e.validatorSet&&null!==e.validatorSet?n.validatorSet=d.ValidatorSet.fromJSON(e.validatorSet):n.validatorSet=void 0,n},toJSON:function(e){var n={};return void 0!==e.signedHeader&&(n.signedHeader=e.signedHeader?t.SignedHeader.toJSON(e.signedHeader):void 0),void 0!==e.validatorSet&&(n.validatorSet=e.validatorSet?d.ValidatorSet.toJSON(e.validatorSet):void 0),n},fromPartial:function(e){var n=Object.assign({},E);return void 0!==e.signedHeader&&null!==e.signedHeader?n.signedHeader=t.SignedHeader.fromPartial(e.signedHeader):n.signedHeader=void 0,void 0!==e.validatorSet&&null!==e.validatorSet?n.validatorSet=d.ValidatorSet.fromPartial(e.validatorSet):n.validatorSet=void 0,n}};var C={blockSize:s.default.ZERO,numTxs:s.default.ZERO};t.BlockMeta={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(10).fork()).ldelim(),e.blockSize.isZero()||n.uint32(16).int64(e.blockSize),void 0!==e.header&&t.Header.encode(e.header,n.uint32(26).fork()).ldelim(),e.numTxs.isZero()||n.uint32(32).int64(e.numTxs),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},C);r.pos>>3){case 1:i.blockId=t.BlockID.decode(r,r.uint32());break;case 2:i.blockSize=r.int64();break;case 3:i.header=t.Header.decode(r,r.uint32());break;case 4:i.numTxs=r.int64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},C);return void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.blockSize&&null!==e.blockSize?n.blockSize=s.default.fromString(e.blockSize):n.blockSize=s.default.ZERO,void 0!==e.header&&null!==e.header?n.header=t.Header.fromJSON(e.header):n.header=void 0,void 0!==e.numTxs&&null!==e.numTxs?n.numTxs=s.default.fromString(e.numTxs):n.numTxs=s.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.blockSize&&(n.blockSize=(e.blockSize||s.default.ZERO).toString()),void 0!==e.header&&(n.header=e.header?t.Header.toJSON(e.header):void 0),void 0!==e.numTxs&&(n.numTxs=(e.numTxs||s.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},C);return void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.blockSize&&null!==e.blockSize?n.blockSize=e.blockSize:n.blockSize=s.default.ZERO,void 0!==e.header&&null!==e.header?n.header=t.Header.fromPartial(e.header):n.header=void 0,void 0!==e.numTxs&&null!==e.numTxs?n.numTxs=e.numTxs:n.numTxs=s.default.ZERO,n}};var T={};t.TxProof={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.rootHash.length&&t.uint32(10).bytes(e.rootHash),0!==e.data.length&&t.uint32(18).bytes(e.data),void 0!==e.proof&&u.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},T);for(a.rootHash=new Uint8Array,a.data=new Uint8Array;n.pos>>3){case 1:a.rootHash=n.bytes();break;case 2:a.data=n.bytes();break;case 3:a.proof=u.Proof.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},T);return t.rootHash=new Uint8Array,t.data=new Uint8Array,void 0!==e.rootHash&&null!==e.rootHash&&(t.rootHash=M(e.rootHash)),void 0!==e.data&&null!==e.data&&(t.data=M(e.data)),void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromJSON(e.proof):t.proof=void 0,t},toJSON:function(e){var t={};return void 0!==e.rootHash&&(t.rootHash=R(void 0!==e.rootHash?e.rootHash:new Uint8Array)),void 0!==e.data&&(t.data=R(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.proof&&(t.proof=e.proof?u.Proof.toJSON(e.proof):void 0),t},fromPartial:function(e){var t=Object.assign({},T);return void 0!==e.rootHash&&null!==e.rootHash?t.rootHash=e.rootHash:t.rootHash=new Uint8Array,void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromPartial(e.proof):t.proof=void 0,t}};var O=function(){if(void 0!==O)return O;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),P=O.atob||function(e){return O.Buffer.from(e,"base64").toString("binary")};function M(e){for(var t=P(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.validators);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.Validator.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return void 0!==e.proposer&&t.Validator.encode(e.proposer,a.uint32(18).fork()).ldelim(),e.totalVotingPower.isZero()||a.uint32(24).int64(e.totalVotingPower),a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);for(i.validators=[];r.pos>>3){case 1:i.validators.push(t.Validator.decode(r,r.uint32()));break;case 2:i.proposer=t.Validator.decode(r,r.uint32());break;case 3:i.totalVotingPower=r.int64();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);if(n.validators=[],void 0!==e.validators&&null!==e.validators){var a,o=r(e.validators);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.validators.push(t.Validator.fromJSON(s))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.proposer&&null!==e.proposer?n.proposer=t.Validator.fromJSON(e.proposer):n.proposer=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=i.default.fromString(e.totalVotingPower):n.totalVotingPower=i.default.ZERO,n},toJSON:function(e){var n={};return e.validators?n.validators=e.validators.map((function(e){return e?t.Validator.toJSON(e):void 0})):n.validators=[],void 0!==e.proposer&&(n.proposer=e.proposer?t.Validator.toJSON(e.proposer):void 0),void 0!==e.totalVotingPower&&(n.totalVotingPower=(e.totalVotingPower||i.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},c);if(n.validators=[],void 0!==e.validators&&null!==e.validators){var a,o=r(e.validators);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.validators.push(t.Validator.fromPartial(s))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.proposer&&null!==e.proposer?n.proposer=t.Validator.fromPartial(e.proposer):n.proposer=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=e.totalVotingPower:n.totalVotingPower=i.default.ZERO,n}};var u={votingPower:i.default.ZERO,proposerPriority:i.default.ZERO};t.Validator={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.address.length&&t.uint32(10).bytes(e.address),void 0!==e.pubKey&&s.PublicKey.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.votingPower.isZero()||t.uint32(24).int64(e.votingPower),e.proposerPriority.isZero()||t.uint32(32).int64(e.proposerPriority),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.address=new Uint8Array;n.pos>>3){case 1:a.address=n.bytes();break;case 2:a.pubKey=s.PublicKey.decode(n,n.uint32());break;case 3:a.votingPower=n.int64();break;case 4:a.proposerPriority=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return t.address=new Uint8Array,void 0!==e.address&&null!==e.address&&(t.address=function(e){for(var t=l(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.pubKey&&s.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),e.votingPower.isZero()||t.uint32(16).int64(e.votingPower),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.pubKey=s.PublicKey.decode(n,n.uint32());break;case 2:a.votingPower=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.PublicKey.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.votingPower&&null!==e.votingPower?t.votingPower=i.default.fromString(e.votingPower):t.votingPower=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.pubKey&&(t.pubKey=e.pubKey?s.PublicKey.toJSON(e.pubKey):void 0),void 0!==e.votingPower&&(t.votingPower=(e.votingPower||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.PublicKey.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.votingPower&&null!==e.votingPower?t.votingPower=e.votingPower:t.votingPower=i.default.ZERO,t}};var d=function(){if(void 0!==d)return d;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),l=d.atob||function(e){return d.Buffer.from(e,"base64").toString("binary")},p=d.btoa||function(e){return d.Buffer.from(e,"binary").toString("base64")};o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},2673:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Consensus=t.App=t.protobufPackage=void 0;var a=r(n(12620)),i=r(n(50904));t.protobufPackage="tendermint.version";var o={protocol:a.default.UZERO,software:""};t.App={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.protocol.isZero()||t.uint32(8).uint64(e.protocol),""!==e.software&&t.uint32(18).string(e.software),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.protocol=n.uint64();break;case 2:a.software=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.protocol&&null!==e.protocol?t.protocol=a.default.fromString(e.protocol):t.protocol=a.default.UZERO,void 0!==e.software&&null!==e.software?t.software=String(e.software):t.software="",t},toJSON:function(e){var t={};return void 0!==e.protocol&&(t.protocol=(e.protocol||a.default.UZERO).toString()),void 0!==e.software&&(t.software=e.software),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.protocol&&null!==e.protocol?t.protocol=e.protocol:t.protocol=a.default.UZERO,void 0!==e.software&&null!==e.software?t.software=e.software:t.software="",t}};var s={block:a.default.UZERO,app:a.default.UZERO};t.Consensus={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.block.isZero()||t.uint32(8).uint64(e.block),e.app.isZero()||t.uint32(16).uint64(e.app),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.block=n.uint64();break;case 2:a.app=n.uint64();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.block&&null!==e.block?t.block=a.default.fromString(e.block):t.block=a.default.UZERO,void 0!==e.app&&null!==e.app?t.app=a.default.fromString(e.app):t.app=a.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.block&&(t.block=(e.block||a.default.UZERO).toString()),void 0!==e.app&&(t.app=(e.app||a.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.block&&null!==e.block?t.block=e.block:t.block=a.default.UZERO,void 0!==e.app&&null!==e.app?t.app=e.app:t.app=a.default.UZERO,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},12952:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.LocalXpla=void 0;var i=n(87875),o=n(82473),s=function(e){function t(t){var n=e.call(this,{URL:"http://localhost:1317",chainID:"localxpla",isClassic:t})||this;return n.wallets={validator:n.wallet(new o.MnemonicKey({mnemonic:"satisfy adjust timber high purchase tuition stool faith fine install that you unaware feed domain license impose boss human eager hat rent enjoy dawn"})),test1:n.wallet(new o.MnemonicKey({mnemonic:"notice oak worry limit wrap speak medal online prefer cluster roof addict wrist behave treat actual wasp year salad speed social layer crew genius"})),test2:n.wallet(new o.MnemonicKey({mnemonic:"quality vacuum heart guard buzz spike sight swarm shove special gym robust assume sudden deposit grid alcohol choice devote leader tilt noodle tide penalty"})),test3:n.wallet(new o.MnemonicKey({mnemonic:"symbol force gallery make bulk round subway violin worry mixture penalty kingdom boring survey tool fringe patrol sausage hard admit remember broken alien absorb"})),test4:n.wallet(new o.MnemonicKey({mnemonic:"bounce success option birth apple portion aunt rural episode solution hockey pencil lend session cause hedgehog slender journey system canvas decorate razor catch empty"})),test5:n.wallet(new o.MnemonicKey({mnemonic:"second render cat sing soup reward cluster island bench diet lumber grocery repeat balcony perfect diesel stumble piano distance caught occur example ozone loyal"})),test6:n.wallet(new o.MnemonicKey({mnemonic:"spatial forest elevator battle also spoon fun skirt flight initial nasty transfer glory palm drama gossip remove fan joke shove label dune debate quick"})),test7:n.wallet(new o.MnemonicKey({mnemonic:"noble width taxi input there patrol clown public spell aunt wish punch moment will misery eight excess arena pen turtle minimum grain vague inmate"})),test8:n.wallet(new o.MnemonicKey({mnemonic:"cream sport mango believe inhale text fish rely elegant below earth april wall rug ritual blossom cherry detail length blind digital proof identify ride"})),test9:n.wallet(new o.MnemonicKey({mnemonic:"index light average senior silent limit usual local involve delay update rack cause inmate wall render magnet common feature laundry exact casual resource hundred"})),test10:n.wallet(new o.MnemonicKey({mnemonic:"prefer forget visit mistake mixture feel eyebrow autumn shop pair address airport diesel street pass vague innocent poem method awful require hurry unhappy shoulder"}))},n}return a(t,e),t}(i.LCDClient);t.LocalXpla=s},85338:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0||-1===this._reconnectCount)?(-1!==this._reconnectCount&&this._reconnectCount--,this.reconnectTimeoutId&&clearTimeout(this.reconnectTimeoutId),this.reconnectTimeoutId=setTimeout((function(){e.emit("reconnect"),e.start()}),this.reconnectInterval)):this.emit("destroyed")},t.prototype.subscribe=function(e,t,n){this.queryParams=function(e){for(var t=[],n=0,r=Object.keys(e);n":case"<":case"<=":case">=":i="number"!=typeof o[1]?"".concat(a).concat(o[0]).concat(o[1].toISOString()):"".concat(a).concat(o[0]).concat(o[1]);break;case"CONTAINS":i="".concat(a," CONTAINS '").concat(f(o[1]),"'");break;case"EXISTS":i="".concat(a," EXISTS")}else switch(typeof o){case"number":i="".concat(a,"=").concat(o);break;case"string":i="".concat(a,"='").concat(f(o),"'");break;default:i="".concat(a,"=").concat(o.toISOString())}t.push(i)}return t.join(" AND ")}(i({"tm.event":e},t)),this.callback=n},t.prototype.subscribeTx=function(e,t){this.subscribe("Tx",e,(function(e){return e.value.TxResult.txhash=(0,u.hashToHex)(e.value.TxResult.tx),t(e)}))},t}(s.EventEmitter);t.WebSocketClient=d},281:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(87875),t),a(n(83068),t),a(n(5169),t),a(n(12952),t),a(n(85338),t)},67456:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&(o=c)),f=new u.TxBody(t.msgs,t.memo||""),d=new u.AuthInfo([],new u.Fee(0,new u.Coins)),(l=new u.Tx(f,d,[])).appendEmptySignatures(e),i&&"auto"!==i&&"0"!==i?[3,2]:[4,this.estimateGas(l,{gasAdjustment:r})];case 1:i=s.sent().toString(),s.label=2;case 2:return p=o?o.mul(i).toIntCeilCoins():this.lcd.config.isClassic?"0uusd":"0axpla",[2,new u.Fee(Number.parseInt(i),p,"","")]}}))}))},t.prototype.estimateGas=function(e,t){return o(this,void 0,void 0,(function(){var n,r,a,i;return s(this,(function(o){switch(o.label){case 0:if(n=(null==t?void 0:t.gasAdjustment)||this.lcd.config.gasAdjustment,r=e,e.signatures.length<=0){if(!(t&&t.signers&&t.signers.length>0))throw Error("cannot append signature");a=new u.AuthInfo([],new u.Fee(0,new u.Coins)),(r=new u.Tx(e.body,a,[])).appendEmptySignatures(t.signers)}return[4,this.c.post("/cosmos/tx/v1beta1/simulate",{tx_bytes:this.encode(r)}).then((function(e){return l.fromData(e)}))];case 1:return i=o.sent(),[2,new u.Dec(n).mul(i.gas_info.gas_used).toNumber()]}}))}))},t.prototype.computeTax=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){throw new Error("Tax was removed from network")}))}))},t.prototype.encode=function(e){return a.from(e.toBytes(this.lcd.config.isClassic)).toString("base64")},t.prototype.decode=function(e){return u.Tx.fromBuffer(a.from(e,"base64"),this.lcd.config.isClassic)},t.prototype.hash=function(e){return o(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,this.encode(e)];case 1:return t=n.sent(),[2,(0,f.hashToHex)(t)]}}))}))},t.prototype._broadcast=function(e,t){return o(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,this.c.post("/cosmos/tx/v1beta1/txs",{tx_bytes:this.encode(e),mode:t})];case 1:return[2,n.sent()]}}))}))},t.prototype.broadcast=function(e,t){return void 0===t&&(t=3e4),o(this,void 0,void 0,(function(){var n,r,a,i;return s(this,(function(o){switch(o.label){case 0:return n=500,[4,this._broadcast(e,"BROADCAST_MODE_SYNC")];case 1:if(null!=(r=o.sent().tx_response).code&&0!=r.code)return[2,{height:Number.parseInt(r.height),txhash:r.txhash,raw_log:r.raw_log,code:r.code,codespace:r.codespace,gas_used:0,gas_wanted:0,timestamp:"",logs:[]}];i=0,o.label=2;case 2:if(!(i<=t/n))return[3,9];o.label=3;case 3:return o.trys.push([3,5,,6]),[4,this.txInfo(r.txhash)];case 4:return a=o.sent(),[3,6];case 5:return o.sent(),[3,6];case 6:return a?[3,9]:[4,new Promise((function(e){return setTimeout(e,n)}))];case 7:o.sent(),o.label=8;case 8:return i++,[3,2];case 9:if(!a)throw new Error("Transaction was not included in a block before timeout of ".concat(t,"ms"));return[2,{txhash:a.txhash,raw_log:a.raw_log,gas_wanted:a.gas_wanted,gas_used:a.gas_used,height:+a.height,logs:(a.logs||[]).map((function(e){return d.TxLog.fromData(e)})),code:a.code,codespace:a.codespace,timestamp:a.timestamp}]}}))}))},t.prototype.broadcastBlock=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._broadcast(e,"BROADCAST_MODE_BLOCK").then((function(e){var t=e.tx_response;return{txhash:t.txhash,raw_log:t.raw_log,gas_wanted:Number.parseInt(t.gas_wanted),gas_used:Number.parseInt(t.gas_used),height:+t.height,logs:t.logs.map((function(e){return d.TxLog.fromData(e)})),code:t.code,codespace:t.codespace,data:t.data,info:t.info,timestamp:t.timestamp}}))]}))}))},t.prototype.broadcastSync=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._broadcast(e,"BROADCAST_MODE_SYNC").then((function(e){var t=e.tx_response,n={height:+t.height,txhash:t.txhash,raw_log:t.raw_log};return t.code&&(n.code=t.code),t.codespace&&(n.codespace=t.codespace),n}))]}))}))},t.prototype.broadcastAsync=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._broadcast(e,"BROADCAST_MODE_ASYNC").then((function(e){var t=e.tx_response;return{height:+t.height,txhash:t.txhash}}))]}))}))},t.prototype.search=function(e){var t;return o(this,void 0,void 0,(function(){var n,r=this;return s(this,(function(a){return n=new URLSearchParams,null===(t=e.events)||void 0===t||t.forEach((function(e){return n.append("events","tx.height"===e.key?"".concat(e.key,"=").concat(e.value):"".concat(e.key,"='").concat(e.value,"'"))})),delete e.events,Object.entries(e).forEach((function(e){n.append(e[0],e[1])})),[2,this.c.getRaw("cosmos/tx/v1beta1/txs",n).then((function(e){return{txs:e.tx_responses.map((function(e){return u.TxInfo.fromData(e,r.lcd.config.isClassic)})),pagination:e.pagination}}))]}))}))},t}(c.BaseAPI);t.TxAPI=p},35191:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]Math.pow(2,32)-1)throw new Error("CompactBitArray overflow");return new e(t%8,r.alloc(n))},e.prototype.count=function(){return 0==this.extra_bits_stored?8*this.elems.length:8*(this.elems.length-1)+this.extra_bits_stored},e.prototype.getIndex=function(e){return!(e<0||e>=this.count())&&(this.elems.readUInt8(e>>3)&1<<7-e%8)>0},e.prototype.setIndex=function(e,t){return!(e<0||e>=this.count()||(t?this.elems[e>>3]|=1<<7-e%8:this.elems[e>>3]&=~(1<<7-e%8),0))},e.prototype.numTrueBitsBefore=function(e){var t=function(e){return e.toString(2).split("0").join("").length},n=0,r=this.count();e>r&&(e=r);for(var a=0;;a++){if(8*a+7>=e)return n+t(this.elems[a]>>7-e%8+1);n+=t(this.elems[a])}},e.fromData=function(t){return new e(t.extra_bits_stored,r.from(t.elems,"base64"))},e.prototype.toData=function(){return{elems:this.elems.toString("base64"),extra_bits_stored:this.extra_bits_stored}},e.fromProto=function(t){return new e(t.extraBitsStored,r.from(t.elems))},e.prototype.toProto=function(){return a.CompactBitArray.fromPartial({elems:this.elems,extraBitsStored:this.extra_bits_stored})},e}();t.CompactBitArray=i},28159:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},13819:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Deposit=void 0;var c=n(35860),u=n(70353),f=n(91197),d=s(n(12620)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.proposal_id=t,a.depositor=n,a.amount=new c.Coins(r),a}return a(t,e),t.fromAmino=function(e){var n=e.proposal_id,r=e.depositor,a=e.amount;return new t(Number.parseInt(n),r,c.Coins.fromAmino(a))},t.prototype.toAmino=function(){var e=this,t=e.proposal_id,n=e.depositor,r=e.amount;return{proposal_id:t.toString(),depositor:n,amount:r.toAmino()}},t.fromData=function(e){var n=e.proposal_id,r=e.depositor,a=e.amount;return new t(Number.parseInt(n),r,c.Coins.fromData(a))},t.prototype.toData=function(){var e=this,t=e.proposal_id,n=e.depositor,r=e.amount;return{proposal_id:t.toString(),depositor:n,amount:r.toData()}},t.fromProto=function(e){return new t(e.proposalId.toNumber(),e.depositor,c.Coins.fromProto(e.amount))},t.prototype.toProto=function(){var e=this,t=e.proposal_id,n=e.depositor,r=e.amount;return f.Deposit.fromPartial({proposalId:d.fromNumber(t),depositor:n,amount:r.toProto()})},t}(u.JSONSerializable);t.Deposit=l},42555:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Fee=void 0;var c=n(70353),u=n(35860),f=n(46531),d=n(62875),l=s(n(12620)),p=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.gas_limit=t,i.payer=r,i.granter=a,i.amount=new u.Coins(n),i}return a(t,e),t.fromAmino=function(e){var n=e.gas,r=e.amount;return new t(Number.parseInt(n),u.Coins.fromAmino(r),"","")},t.prototype.toAmino=function(){return{gas:new f.Int(this.gas_limit).toString(),amount:this.amount.toAmino()}},t.fromData=function(e){return new t(Number.parseInt(e.gas_limit),u.Coins.fromData(e.amount),e.payer,e.granter)},t.prototype.toData=function(){var e=this,t=e.amount,n=e.gas_limit,r=e.payer,a=e.granter;return{amount:t.toData(),gas_limit:n.toFixed(),granter:null!=a?a:"",payer:null!=r?r:""}},t.fromProto=function(e){return new t(e.gasLimit.toNumber(),u.Coins.fromProto(e.amount),e.payer,e.granter)},t.prototype.toProto=function(){var e=this,t=e.amount,n=e.gas_limit,r=e.payer,a=e.granter;return d.Fee.fromPartial({amount:t.toProto(),gasLimit:l.fromNumber(n),granter:a,payer:r})},t.prototype.gasPrices=function(){return this.amount.toDecCoins().div(this.gas_limit)},t}(c.JSONSerializable);t.Fee=p},19065:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Msg=void 0;var r,a=n(91038),i=n(29665),o=n(10877),s=n(84894),c=n(18882),u=n(10808),f=n(67230),d=n(21492),l=n(20473),p=n(79189),b=n(39869),h=n(12550),y=n(366),m=n(93578),v=n(25258),g=n(34841);(r=t.Msg||(t.Msg={})).fromAmino=function(e,t){switch(e.type){case"bank/MsgSend":case"cosmos-sdk/MsgSend":return a.MsgSend.fromAmino(e,t);case"bank/MsgMultiSend":case"cosmos-sdk/MsgMultiSend":return a.MsgMultiSend.fromAmino(e,t);case"distribution/MsgModifyWithdrawAddress":case"cosmos-sdk/MsgModifyWithdrawAddress":return i.MsgSetWithdrawAddress.fromAmino(e,t);case"distribution/MsgWithdrawDelegationReward":case"cosmos-sdk/MsgWithdrawDelegationReward":return i.MsgWithdrawDelegatorReward.fromAmino(e,t);case"distribution/MsgWithdrawValidatorCommission":case"cosmos-sdk/MsgWithdrawValCommission":return i.MsgWithdrawValidatorCommission.fromAmino(e,t);case"distribution/MsgFundCommunityPool":case"cosmos-sdk/MsgFundCommunityPool":return i.MsgFundCommunityPool.fromAmino(e,t);case"feegrant/MsgGrantAllowance":case"cosmos-sdk/MsgGrantAllowance":return o.MsgGrantAllowance.fromAmino(e,t);case"feegrant/MsgRevokeAllowance":case"cosmos-sdk/MsgRevokeAllowance":return o.MsgRevokeAllowance.fromAmino(e,t);case"gov/MsgDeposit":case"cosmos-sdk/MsgDeposit":return s.MsgDeposit.fromAmino(e,t);case"gov/MsgSubmitProposal":case"cosmos-sdk/MsgSubmitProposal":return s.MsgSubmitProposal.fromAmino(e,t);case"gov/MsgVote":case"cosmos-sdk/MsgVote":return s.MsgVote.fromAmino(e,t);case"gov/MsgVoteWeighted":case"cosmos-sdk/MsgVoteWeighted":return s.MsgVoteWeighted.fromAmino(e,t);case"market/MsgSwap":return c.MsgSwap.fromAmino(e,t);case"market/MsgSwapSend":return c.MsgSwapSend.fromAmino(e,t);case"msgauth/MsgGrantAuthorization":case"cosmos-sdk/MsgGrant":return u.MsgGrantAuthorization.fromAmino(e,t);case"msgauth/MsgRevokeAuthorization":case"cosmos-sdk/MsgRevoke":return u.MsgRevokeAuthorization.fromAmino(e,t);case"msgauth/MsgExecAuthorized":case"cosmos-sdk/MsgExec":return u.MsgExecAuthorized.fromAmino(e,t);case"oracle/MsgDelegateFeedConsent":return f.MsgDelegateFeedConsent.fromAmino(e,t);case"oracle/MsgAggregateExchangeRatePrevote":return f.MsgAggregateExchangeRatePrevote.fromAmino(e,t);case"oracle/MsgAggregateExchangeRateVote":return f.MsgAggregateExchangeRateVote.fromAmino(e,t);case"slashing/MsgUnjail":case"cosmos-sdk/MsgUnjail":return d.MsgUnjail.fromAmino(e,t);case"staking/MsgDelegate":case"cosmos-sdk/MsgDelegate":return l.MsgDelegate.fromAmino(e,t);case"staking/MsgUndelegate":case"cosmos-sdk/MsgUndelegate":return l.MsgUndelegate.fromAmino(e,t);case"staking/MsgBeginRedelegate":case"cosmos-sdk/MsgBeginRedelegate":return l.MsgBeginRedelegate.fromAmino(e,t);case"staking/MsgCreateValidator":case"cosmos-sdk/MsgCreateValidator":return l.MsgCreateValidator.fromAmino(e,t);case"staking/MsgEditValidator":case"cosmos-sdk/MsgEditValidator":return l.MsgEditValidator.fromAmino(e,t);case"cosmos-sdk/MsgCreatePeriodicVestingAccount":return p.MsgCreatePeriodicVestingAccount.fromAmino(e,t);case"cosmos-sdk/MsgCreateVestingAccount":return p.MsgCreateVestingAccount.fromAmino(e,t);case"cosmos-sdk/MsgDonateAllVestingTokens":return p.MsgDonateAllVestingTokens.fromAmino(e,t);case"wasm/MsgStoreCode":return b.MsgStoreCode.fromAmino(e,t);case"wasm/MsgMigrateCode":return b.MsgMigrateCode.fromAmino(e,t);case"wasm/MsgInstantiateContract":return b.MsgInstantiateContract.fromAmino(e,t);case"wasm/MsgExecuteContract":return b.MsgExecuteContract.fromAmino(e,t);case"wasm/MsgMigrateContract":return b.MsgMigrateContract.fromAmino(e,t);case"wasm/MsgUpdateContractAdmin":case"wasm/MsgUpdateAdmin":return b.MsgUpdateContractAdmin.fromAmino(e,t);case"wasm/MsgClearContractAdmin":case"wasm/MsgClearAdmin":return b.MsgClearContractAdmin.fromAmino(e,t);case"cosmos-sdk/MsgTransfer":return h.MsgTransfer.fromAmino(e,t);case"crisis/MsgVerifyInvariant":case"cosmos-sdk/MsgVerifyInvariant":return g.MsgVerifyInvariant.fromAmino(e,t)}},r.fromData=function(e,t){switch(e["@type"]){case"/cosmos.bank.v1beta1.MsgSend":return a.MsgSend.fromData(e,t);case"/cosmos.bank.v1beta1.MsgMultiSend":return a.MsgMultiSend.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress":return i.MsgSetWithdrawAddress.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward":return i.MsgWithdrawDelegatorReward.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission":return i.MsgWithdrawValidatorCommission.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgFundCommunityPool":return i.MsgFundCommunityPool.fromData(e,t);case"/cosmos.feegrant.v1beta1.MsgGrantAllowance":return o.MsgGrantAllowance.fromData(e,t);case"/cosmos.feegrant.v1beta1.MsgRevokeAllowance":return o.MsgRevokeAllowance.fromData(e,t);case"/cosmos.gov.v1beta1.MsgDeposit":return s.MsgDeposit.fromData(e,t);case"/cosmos.gov.v1beta1.MsgSubmitProposal":return s.MsgSubmitProposal.fromData(e,t);case"/cosmos.gov.v1beta1.MsgVote":return s.MsgVote.fromData(e,t);case"/cosmos.gov.v1beta1.MsgVoteWeighted":return s.MsgVoteWeighted.fromData(e,t);case"/terra.market.v1beta1.MsgSwap":return c.MsgSwap.fromData(e,t);case"/terra.market.v1beta1.MsgSwapSend":return c.MsgSwapSend.fromData(e,t);case"/cosmos.authz.v1beta1.MsgGrant":return u.MsgGrantAuthorization.fromData(e,t);case"/cosmos.authz.v1beta1.MsgRevoke":return u.MsgRevokeAuthorization.fromData(e,t);case"/cosmos.authz.v1beta1.MsgExec":return u.MsgExecAuthorized.fromData(e,t);case"/terra.oracle.v1beta1.MsgDelegateFeedConsent":return f.MsgDelegateFeedConsent.fromData(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote":return f.MsgAggregateExchangeRatePrevote.fromData(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote":return f.MsgAggregateExchangeRateVote.fromData(e,t);case"/cosmos.slashing.v1beta1.MsgUnjail":return d.MsgUnjail.fromData(e,t);case"/cosmos.staking.v1beta1.MsgDelegate":return l.MsgDelegate.fromData(e,t);case"/cosmos.staking.v1beta1.MsgUndelegate":return l.MsgUndelegate.fromData(e,t);case"/cosmos.staking.v1beta1.MsgBeginRedelegate":return l.MsgBeginRedelegate.fromData(e,t);case"/cosmos.staking.v1beta1.MsgCreateValidator":return l.MsgCreateValidator.fromData(e,t);case"/cosmos.staking.v1beta1.MsgEditValidator":return l.MsgEditValidator.fromData(e,t);case"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount":return p.MsgCreatePeriodicVestingAccount.fromData(e,t);case"/cosmos.vesting.v1beta1.MsgCreateVestingAccount":return p.MsgCreateVestingAccount.fromData(e,t);case"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens":return p.MsgDonateAllVestingTokens.fromData(e,t);case"/terra.wasm.v1beta1.MsgStoreCode":case"/cosmwasm.wasm.v1.MsgStoreCode":return b.MsgStoreCode.fromData(e,t);case"/terra.wasm.v1beta1.MsgMigrateCode":return b.MsgMigrateCode.fromData(e,t);case"/terra.wasm.v1beta1.MsgInstantiateContract":case"/cosmwasm.wasm.v1.MsgInstantiateContract":return b.MsgInstantiateContract.fromData(e,t);case"/terra.wasm.v1beta1.MsgExecuteContract":case"/cosmwasm.wasm.v1.MsgExecuteContract":return b.MsgExecuteContract.fromData(e,t);case"/terra.wasm.v1beta1.MsgMigrateContract":case"/cosmwasm.wasm.v1.MsgMigrateContract":return b.MsgMigrateContract.fromData(e,t);case"/terra.wasm.v1beta1.MsgUpdateContractAdmin":case"/cosmwasm.wasm.v1.MsgUpdateAdmin":return b.MsgUpdateContractAdmin.fromData(e,t);case"/terra.wasm.v1beta1.MsgClearContractAdmin":case"/cosmwasm.wasm.v1.MsgClearAdmin":return b.MsgClearContractAdmin.fromData(e,t);case"/ibc.applications.transfer.v1.MsgTransfer":return h.MsgTransfer.fromData(e,t);case"/ibc.core.client.v1.MsgCreateClient":return y.MsgCreateClient.fromData(e,t);case"/ibc.core.client.v1.MsgUpdateClient":return y.MsgUpdateClient.fromData(e,t);case"/ibc.core.client.v1.MsgUpgradeClient":return y.MsgUpgradeClient.fromData(e,t);case"/ibc.core.client.v1.MsgSubmitMisbehaviour":return y.MsgSubmitMisbehaviour.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenInit":return m.MsgConnectionOpenInit.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenTry":return m.MsgConnectionOpenTry.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenConfirm":return m.MsgConnectionOpenConfirm.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenAck":return m.MsgConnectionOpenAck.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenInit":return v.MsgChannelOpenInit.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenTry":return v.MsgChannelOpenTry.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenConfirm":return v.MsgChannelOpenConfirm.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenAck":return v.MsgChannelOpenAck.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelCloseInit":return v.MsgChannelCloseInit.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelCloseConfirm":return v.MsgChannelCloseConfirm.fromData(e,t);case"/ibc.core.channel.v1.MsgRecvPacket":return v.MsgRecvPacket.fromData(e,t);case"/ibc.core.channel.v1.MsgAcknowledgement":return v.MsgAcknowledgement.fromData(e,t);case"/ibc.core.channel.v1.MsgTimeout":return v.MsgTimeout.fromData(e,t);case"/ibc.core.channel.v1.MsgTimeoutOnClose":return v.MsgTimeoutOnClose.fromData(e,t);case"/cosmos.crisis.v1beta1.MsgVerifyInvariant":return g.MsgVerifyInvariant.fromData(e,t);default:throw Error("not supported msg ".concat(e["@type"]))}},r.fromProto=function(e,t){switch(e.typeUrl){case"/cosmos.bank.v1beta1.MsgSend":return a.MsgSend.unpackAny(e,t);case"/cosmos.bank.v1beta1.MsgMultiSend":return a.MsgMultiSend.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress":return i.MsgSetWithdrawAddress.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward":return i.MsgWithdrawDelegatorReward.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission":return i.MsgWithdrawValidatorCommission.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgFundCommunityPool":return i.MsgFundCommunityPool.unpackAny(e,t);case"/cosmos.feegrant.v1beta1.MsgGrantAllowance":return o.MsgGrantAllowance.unpackAny(e,t);case"/cosmos.feegrant.v1beta1.MsgRevokeAllowance":return o.MsgRevokeAllowance.unpackAny(e,t);case"/cosmos.gov.v1beta1.MsgDeposit":return s.MsgDeposit.unpackAny(e,t);case"/cosmos.gov.v1beta1.MsgSubmitProposal":return s.MsgSubmitProposal.unpackAny(e,t);case"/cosmos.gov.v1beta1.MsgVote":return s.MsgVote.unpackAny(e,t);case"/terra.market.v1beta1.MsgSwap":return c.MsgSwap.unpackAny(e,t);case"/terra.market.v1beta1.MsgSwapSend":return c.MsgSwapSend.unpackAny(e,t);case"/cosmos.authz.v1beta1.MsgGrant":return u.MsgGrantAuthorization.unpackAny(e,t);case"/cosmos.authz.v1beta1.MsgRevoke":return u.MsgRevokeAuthorization.unpackAny(e,t);case"/cosmos.authz.v1beta1.MsgExec":return u.MsgExecAuthorized.unpackAny(e,t);case"/terra.oracle.v1beta1.MsgDelegateFeedConsent":return f.MsgDelegateFeedConsent.unpackAny(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote":return f.MsgAggregateExchangeRatePrevote.unpackAny(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote":return f.MsgAggregateExchangeRateVote.unpackAny(e,t);case"/cosmos.slashing.v1beta1.MsgUnjail":return d.MsgUnjail.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgDelegate":return l.MsgDelegate.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgUndelegate":return l.MsgUndelegate.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgBeginRedelegate":return l.MsgBeginRedelegate.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgCreateValidator":return l.MsgCreateValidator.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgEditValidator":return l.MsgEditValidator.unpackAny(e,t);case"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount":return p.MsgCreatePeriodicVestingAccount.unpackAny(e,t);case"/cosmos.vesting.v1beta1.MsgCreateVestingAccount":return p.MsgCreateVestingAccount.unpackAny(e,t);case"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens":return p.MsgDonateAllVestingTokens.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgStoreCode":case"/cosmwasm.wasm.v1.MsgStoreCode":return b.MsgStoreCode.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgMigrateCode":return b.MsgMigrateCode.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgInstantiateContract":case"/cosmwasm.wasm.v1.MsgInstantiateContract":return b.MsgInstantiateContract.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgExecuteContract":case"/cosmwasm.wasm.v1.MsgExecuteContract":return b.MsgExecuteContract.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgMigrateContract":case"/cosmwasm.wasm.v1beta1.MsgMigrateContract":return b.MsgMigrateContract.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgUpdateContractAdmin":case"/cosmwasm.wasm.v1beta1.MsgUpdateAdmin":return b.MsgUpdateContractAdmin.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgClearContractAdmin":case"/cosmwasm.wasm.v1.MsgClearAdmin":return b.MsgClearContractAdmin.unpackAny(e,t);case"/ibc.applications.transfer.v1.MsgTransfer":return h.MsgTransfer.unpackAny(e,t);case"/ibc.core.client.v1.MsgCreateClient":return y.MsgCreateClient.unpackAny(e,t);case"/ibc.core.client.v1.MsgUpdateClient":return y.MsgUpdateClient.unpackAny(e,t);case"/ibc.core.client.v1.MsgUpgradeClient":return y.MsgUpgradeClient.unpackAny(e,t);case"/ibc.core.client.v1.MsgSubmitMisbehaviour":return y.MsgSubmitMisbehaviour.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenInit":return m.MsgConnectionOpenInit.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenTry":return m.MsgConnectionOpenTry.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenConfirm":return m.MsgConnectionOpenConfirm.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenAck":return m.MsgConnectionOpenAck.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenInit":return v.MsgChannelOpenInit.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenTry":return v.MsgChannelOpenTry.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenConfirm":return v.MsgChannelOpenConfirm.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenAck":return v.MsgChannelOpenAck.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelCloseInit":return v.MsgChannelCloseInit.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelCloseConfirm":return v.MsgChannelCloseConfirm.unpackAny(e,t);case"/ibc.core.channel.v1.MsgRecvPacket":return v.MsgRecvPacket.unpackAny(e,t);case"/ibc.core.channel.v1.MsgAcknowledgement":return v.MsgAcknowledgement.unpackAny(e,t);case"/ibc.core.channel.v1.MsgTimeout":return v.MsgTimeout.unpackAny(e,t);case"/ibc.core.channel.v1.MsgTimeoutOnClose":return v.MsgTimeoutOnClose.unpackAny(e,t);case"/cosmos.crisis.v1beta1.MsgVerifyInvariant":return g.MsgVerifyInvariant.unpackAny(e,t);default:throw Error("not supported msg ".concat(e.typeUrl))}}},48200:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSignature=void 0;var r=n(92484),a=n(14957),i=n(1647),o=function(){function e(e){this.multisig_pubkey=e;var t=e.pubkeys.length;this.bitarray=a.CompactBitArray.fromBits(t),this.signatures=[]}return e.prototype.appendSignature=function(e,t){var n=this.bitarray.numTrueBitsBefore(t);this.bitarray.getIndex(t)?this.signatures[n]=e:(this.bitarray.setIndex(t,!0),n!=this.signatures.length?this.signatures.splice(n,0,e):this.signatures.push(e))},e.prototype.appendSignatureFromPubKey=function(e,t){var n=this.multisig_pubkey.pubkeys.findIndex((function(e){return e.key===t.key}));if(-1==n)throw new Error("provided key doesn't exist in public_keys");this.appendSignature(e,n)},e.prototype.appendSignatureV2s=function(e){for(var t=0,n=e;t127)throw new Error("Encoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.PutUvarint implementation from the Go standard library and write some tests.");return[t]};(o=t.PublicKey||(t.PublicKey={})).fromAmino=function(e){switch(e.type){case"tendermint/PubKeySecp256k1":return w.fromAmino(e);case"tendermint/PubKeyMultisigThreshold":return x.fromAmino(e);case"tendermint/PubKeyEd25519":return _.fromAmino(e)}},o.fromData=function(e){switch(e["@type"]){case"/ethermint.crypto.v1.ethsecp256k1.PubKey":return w.fromData(e);case"/cosmos.crypto.multisig.LegacyAminoPubKey":return x.fromData(e);case"/cosmos.crypto.ed25519.PubKey":return _.fromData(e)}},o.fromProto=function(e){var t=e.typeUrl;if("/ethermint.crypto.v1.ethsecp256k1.PubKey"===t)return w.unpackAny(e);if("/cosmos.crypto.multisig.LegacyAminoPubKey"===t)return x.unpackAny(e);if("/cosmos.crypto.ed25519.PubKey"===t)return _.unpackAny(e);throw new Error("Pubkey type ".concat(t," not recognized"))};var w=function(e){function t(t){var n=e.call(this)||this;return n.key=t,n}return i(t,e),t.fromAmino=function(e){return new t(e.value)},t.prototype.toAmino=function(){return{type:"tendermint/PubKeySecp256k1",value:this.key}},t.fromData=function(e){return new t(e.key)},t.prototype.toData=function(){return{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey",key:this.key}},t.fromProto=function(e){return new t(a.from(e.key).toString("base64"))},t.prototype.toProto=function(){return d.PubKey.fromPartial({key:a.from(this.key,"base64")})},t.prototype.packAny=function(){return f.Any.fromPartial({typeUrl:"/ethermint.crypto.v1.ethsecp256k1.PubKey",value:d.PubKey.encode(this.toProto()).finish()})},t.unpackAny=function(e){return t.fromProto(d.PubKey.decode(e.value))},t.prototype.encodeAminoPubkey=function(){return a.from(this.key,"base64")},t.prototype.rawAddress=function(){var e=a.from(this.key,"base64"),t="0x"+new b.ec("secp256k1").keyFromPublic(e).getPublic(!1,"hex"),n=(0,h.keccak256)((0,y.hexDataSlice)(t,1)),r=(0,y.hexDataSlice)(n,12);return a.from((0,m.stripHexPrefix)(r),"hex")},t.prototype.address=function(){return p.bech32.encode("xpla",p.bech32.toWords(this.rawAddress()))},t.prototype.pubkeyAddress=function(){return p.bech32.encode("xplapub",p.bech32.toWords(this.encodeAminoPubkey()))},t}(s.JSONSerializable);t.SimplePublicKey=w;var x=function(e){function t(t,n){var r=e.call(this)||this;return r.threshold=t,r.pubkeys=n,r}return i(t,e),t.prototype.encodeAminoPubkey=function(){var e=Array.from(g);e.push(8),e.push.apply(e,A(this.threshold));for(var t=0,n=this.pubkeys.map((function(e){return e.encodeAminoPubkey()}));t0?e.toFixed():void 0,revision_height:t>0?t.toFixed():void 0}},t.fromData=function(e){var n=e.revision_number,r=e.revision_height;return new t(Number.parseInt(n),Number.parseInt(r))},t.prototype.toData=function(){var e=this.revision_number,t=this.revision_height;return{revision_number:e.toFixed(),revision_height:t.toFixed()}},t.fromProto=function(e){return new t(e.revisionNumber.toNumber(),e.revisionHeight.toNumber())},t.prototype.toProto=function(){var e=this.revision_number,t=this.revision_height;return c.Height.fromPartial({revisionNumber:u.fromNumber(e),revisionHeight:u.fromNumber(t)})},t}(n(70353).JSONSerializable);t.Height=f},29217:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifiedClientState=void 0;var i=n(39163),o=function(e){function t(t,n){var r=e.call(this)||this;return r.client_id=t,r.client_state=n,r}return a(t,e),t.fromAmino=function(e){return new t(e.client_id,e.client_state)},t.prototype.toAmino=function(){return{client_id:this.client_id,client_state:this.client_state}},t.fromData=function(e){return new t(e.client_id,e.client_state)},t.prototype.toData=function(){return{client_id:this.client_id,client_state:this.client_state}},t.fromProto=function(e){return new t(e.clientId,e.clientState)},t.prototype.toProto=function(){var e=this.client_id,t=this.client_state;return i.IdentifiedClientState.fromPartial({clientId:e,clientState:t})},t}(n(70353).JSONSerializable);t.IdentifiedClientState=o},3494:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MerklePrefix=void 0;var o=n(14697),s=function(e){function t(t){var n=e.call(this)||this;return n.key_prefix=t,n}return i(t,e),t.fromAmino=function(e){return new t(e.key_prefix)},t.prototype.toAmino=function(){return{key_prefix:this.key_prefix}},t.fromData=function(e){return new t(e.key_prefix)},t.prototype.toData=function(){return{key_prefix:this.key_prefix}},t.fromProto=function(e){return new t(a.from(e.keyPrefix).toString("base64"))},t.prototype.toProto=function(){var e=this.key_prefix;return o.MerklePrefix.fromPartial({keyPrefix:a.from(e,"base64")})},t}(n(70353).JSONSerializable);t.MerklePrefix=s},74705:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Counterparty=void 0;var i=n(73956),o=n(70353),s=n(3494),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_id=t,a.connection_id=n,a.prefix=r,a}return a(t,e),t.fromAmino=function(e){var n=e.client_id,r=e.connection_id,a=e.prefix;return new t(n,r,a?s.MerklePrefix.fromAmino(a):void 0)},t.prototype.toAmino=function(){var e=this;return{client_id:e.client_id,connection_id:e.connection_id,prefix:e.prefix}},t.fromData=function(e){var n=e.client_id,r=e.connection_id,a=e.prefix;return new t(n,r,a?s.MerklePrefix.fromData(a):void 0)},t.prototype.toData=function(){var e=this,t=e.client_id,n=e.connection_id,r=e.prefix;return{client_id:t,connection_id:n,prefix:r?r.toData():void 0}},t.fromProto=function(e){return new t(e.clientId,e.connectionId,e.prefix?s.MerklePrefix.fromProto(e.prefix):void 0)},t.prototype.toProto=function(){var e=this,t=e.client_id,n=e.connection_id,r=e.prefix;return i.Counterparty.fromPartial({clientId:t,connectionId:n,prefix:r?r.toProto():void 0})},t}(o.JSONSerializable);t.Counterparty=c},97901:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifiedConnection=t.stateToJSON=t.stateFromJSON=t.State=void 0;var o=n(73956),s=n(70353),c=n(99119),u=n(73956);Object.defineProperty(t,"State",{enumerable:!0,get:function(){return u.State}}),Object.defineProperty(t,"stateFromJSON",{enumerable:!0,get:function(){return u.stateFromJSON}}),Object.defineProperty(t,"stateToJSON",{enumerable:!0,get:function(){return u.stateToJSON}});var f=n(74705),d=i(n(12620)),l=function(e){function t(t,n,r,a,i,o){var s=e.call(this)||this;return s.id=t,s.client_id=n,s.versions=r,s.state=a,s.counterparty=i,s.delay_period=o,s}return a(t,e),t.fromAmino=function(e){var n=e.id,r=e.client_id,a=e.versions,i=e.state,o=e.counterparty,s=e.delay_period;return new t(n,r,a.map(c.Version.fromAmino),(0,u.stateFromJSON)(i),o?f.Counterparty.fromAmino(o):void 0,Number.parseInt(s))},t.prototype.toAmino=function(){var e=this,t=e.id,n=e.client_id,r=e.versions,a=e.state,i=e.counterparty,o=e.delay_period;return{id:t,client_id:n,versions:r.map((function(e){return e.toAmino()})),state:(0,u.stateToJSON)(a),counterparty:null==i?void 0:i.toAmino(),delay_period:o.toFixed()}},t.fromData=function(e){var n=e.id,r=e.client_id,a=e.versions,i=e.state,o=e.counterparty,s=e.delay_period;return new t(n,r,a.map(c.Version.fromData),(0,u.stateFromJSON)(i),o?f.Counterparty.fromData(o):void 0,Number.parseInt(s))},t.prototype.toData=function(){var e=this,t=e.id,n=e.client_id,r=e.versions,a=e.state,i=e.counterparty,o=e.delay_period;return{id:t,client_id:n,versions:r.map((function(e){return e.toData()})),state:(0,u.stateToJSON)(a),counterparty:null==i?void 0:i.toData(),delay_period:o.toFixed()}},t.fromProto=function(e){return new t(e.id,e.clientId,e.versions.map(c.Version.fromProto),e.state,e.counterparty?f.Counterparty.fromProto(e.counterparty):void 0,e.delayPeriod.toNumber())},t.prototype.toProto=function(){var e=this,t=e.id,n=e.client_id,r=e.versions,a=e.state,i=e.counterparty,s=e.delay_period;return o.IdentifiedConnection.fromPartial({id:t,clientId:n,versions:r.map((function(e){return e.toProto()})),state:a,counterparty:null==i?void 0:i.toProto(),delayPeriod:d.default.fromNumber(s)})},t}(s.JSONSerializable);t.IdentifiedConnection=l},99119:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Version=void 0;var i=n(73956),o=function(e){function t(t,n){var r=e.call(this)||this;return r.identifier=t,r.features=n,r}return a(t,e),t.fromAmino=function(e){return new t(e.identifier,e.features)},t.prototype.toAmino=function(){return{identifier:this.identifier,features:this.features}},t.fromData=function(e){return new t(e.identifier,e.features)},t.prototype.toData=function(){return{identifier:this.identifier,features:this.features}},t.fromProto=function(e){return new t(e.identifier,e.features)},t.prototype.toProto=function(){var e=this.identifier,t=this.features;return i.Version.fromPartial({identifier:e,features:t})},t}(n(70353).JSONSerializable);t.Version=o},31251:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(74705),t),a(n(99119),t),a(n(97901),t)},37782:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Header=void 0;var i=n(70353),o=n(21047),s=n(4113),c=n(88590),u=n(81019),f=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.signedHeader=t,i.validatorSet=n,i.trustedHeight=r,i.trustedValidators=a,i}return a(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.signed_header,r=e.validator_set,a=e.trusted_height,i=e.trusted_validators;return new t(n?c.SignedHeader.fromData(n):void 0,r?c.ValidatorSet.fromData(r):void 0,a?s.Height.fromData(a):void 0,i?c.ValidatorSet.fromData(i):void 0)},t.prototype.toData=function(){var e=this,t=e.signedHeader,n=e.validatorSet,r=e.trustedHeight,a=e.trustedValidators;return{signed_header:(null==t?void 0:t.toData())||void 0,validator_set:(null==n?void 0:n.toData())||void 0,trusted_height:(null==r?void 0:r.toData())||void 0,trusted_validators:(null==a?void 0:a.toData())||void 0}},t.fromProto=function(e){var n=e.signedHeader,r=e.validatorSet,a=e.trustedHeight,i=e.trustedValidators;return new t(n?c.SignedHeader.fromProto(n):void 0,r?c.ValidatorSet.fromProto(r):void 0,a?s.Height.fromProto(a):void 0,i?c.ValidatorSet.fromProto(i):void 0)},t.prototype.toProto=function(){var e=this,t=e.signedHeader,n=e.validatorSet,r=e.trustedHeight,a=e.trustedValidators;return o.Header.fromPartial({signedHeader:(null==t?void 0:t.toProto())||void 0,validatorSet:(null==n?void 0:n.toProto())||void 0,trustedHeight:(null==r?void 0:r.toProto())||void 0,trustedValidators:(null==a?void 0:a.toProto())||void 0})},t.prototype.packAny=function(){return u.Any.fromPartial({typeUrl:"ibc.lightclients.tendermint.v1.Header",value:o.Header.encode(this.toProto()).finish()})},t.unpackAny=function(e){return t.fromProto(o.Header.decode(e.value))},t}(i.JSONSerializable);t.Header=f},49492:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelCloseConfirm=void 0;var o=n(70353),s=n(81019),c=n(4113),u=n(43316),f=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.port_id=t,o.channel_id=n,o.proof_init=r,o.proof_height=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel_id,i=e.proof_init,o=e.proof_height,s=e.signer;return new t(r,a,i,o?c.Height.fromData(o):void 0,s)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.proof_init,i=t.proof_height,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelCloseConfirm",port_id:n,channel_id:r,proof_init:a,proof_height:i?i.toData():void 0,signer:o}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,a.from(e.proofInit).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,i=t.proof_init,o=t.proof_height,s=t.signer;return u.MsgChannelCloseConfirm.fromPartial({portId:n,channelId:r,proofInit:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,signer:s})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelCloseConfirm",value:u.MsgChannelCloseConfirm.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgChannelCloseConfirm.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelCloseConfirm=f},79297:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelCloseInit=void 0;var i=n(70353),o=n(81019),s=n(43316),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.port_id=t,a.channel_id=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.port_id,e.channel_id,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.channel.v1.MsgChannelCloseInit",port_id:t.port_id,channel_id:t.channel_id,signer:t.signer}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.signer;return s.MsgChannelCloseInit.fromPartial({portId:n,channelId:r,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelCloseInit",value:s.MsgChannelCloseInit.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgChannelCloseInit.decode(e.value))},t}(i.JSONSerializable);t.MsgChannelCloseInit=c},75529:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenAck=void 0;var o=n(70353),s=n(81019),c=n(4113),u=n(43316),f=function(e){function t(t,n,r,a,i,o,s){var c=e.call(this)||this;return c.port_id=t,c.channel_id=n,c.counterparty_channel_id=r,c.counterparty_version=a,c.proof_try=i,c.proof_height=o,c.signer=s,c}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel_id,i=e.counterparty_channel_id,o=e.counterparty_version,s=e.proof_try,u=e.proof_height,f=e.signer;return new t(r,a,i,o,s,u?c.Height.fromData(u):void 0,f)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.counterparty_channel_id,i=t.counterparty_version,o=t.proof_try,s=t.proof_height,c=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenAck",port_id:n,channel_id:r,counterparty_channel_id:a,counterparty_version:i,proof_try:o,proof_height:s?s.toData():void 0,signer:c}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,e.counterpartyChannelId,e.counterpartyVersion,a.from(e.proofTry).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,i=t.counterparty_channel_id,o=t.counterparty_version,s=t.proof_try,c=t.proof_height,f=t.signer;return u.MsgChannelOpenAck.fromPartial({portId:n,channelId:r,counterpartyChannelId:i,counterpartyVersion:o,proofTry:a.from(s,"base64"),proofHeight:c?c.toProto():void 0,signer:f})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenAck",value:u.MsgChannelOpenAck.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgChannelOpenAck.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelOpenAck=f},1974:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenConfirm=void 0;var o=n(70353),s=n(81019),c=n(4113),u=n(43316),f=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.port_id=t,o.channel_id=n,o.proof_ack=r,o.proof_height=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel_id,i=e.proof_ack,o=e.proof_height,s=e.signer;return new t(r,a,i,o?c.Height.fromData(o):void 0,s)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.proof_ack,i=t.proof_height,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenConfirm",port_id:n,channel_id:r,proof_ack:a,proof_height:i?i.toData():void 0,signer:o}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,a.from(e.proofAck).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,i=t.proof_ack,o=t.proof_height,s=t.signer;return u.MsgChannelOpenConfirm.fromPartial({portId:n,channelId:r,proofAck:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,signer:s})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenConfirm",value:u.MsgChannelOpenConfirm.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgChannelOpenConfirm.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelOpenConfirm=f},66742:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenInit=void 0;var i=n(70353),o=n(81019),s=n(92896),c=n(43316),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.port_id=t,a.channel=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel,i=e.signer;return new t(r,a?s.Channel.fromData(a):void 0,i)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel,a=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenInit",port_id:n,channel:r?r.toData():void 0,signer:a}},t.fromProto=function(e,n){return new t(e.portId,e.channel?s.Channel.fromProto(e.channel):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel,a=t.signer;return c.MsgChannelOpenInit.fromPartial({portId:n,channel:r?r.toProto():void 0,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenInit",value:c.MsgChannelOpenInit.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgChannelOpenInit.decode(e.value))},t}(i.JSONSerializable);t.MsgChannelOpenInit=u},33552:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenTry=void 0;var o=n(70353),s=n(81019),c=n(92896),u=n(4113),f=n(43316),d=function(e){function t(t,n,r,a,i,o,s){var c=e.call(this)||this;return c.port_id=t,c.previous_channel_id=n,c.channel=r,c.counterparty_version=a,c.proof_init=i,c.proof_height=o,c.signer=s,c}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.previous_channel_id,i=e.channel,o=e.counterparty_version,s=e.proof_init,f=e.proof_height,d=e.signer;return new t(r,a,i?c.Channel.fromData(i):void 0,o,s,f?u.Height.fromData(f):void 0,d)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.previous_channel_id,a=t.channel,i=t.counterparty_version,o=t.proof_init,s=t.proof_height,c=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenTry",port_id:n,previous_channel_id:r,channel:a?a.toData():void 0,counterparty_version:i,proof_init:o,proof_height:s?s.toData():void 0,signer:c}},t.fromProto=function(e,n){return new t(e.portId,e.previousChannelId,e.channel?c.Channel.fromProto(e.channel):void 0,e.counterpartyVersion,a.from(e.proofInit).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.previous_channel_id,i=t.channel,o=t.counterparty_version,s=t.proof_init,c=t.proof_height,u=t.signer;return f.MsgChannelOpenTry.fromPartial({portId:n,previousChannelId:r,channel:i?i.toProto():void 0,counterpartyVersion:o,proofInit:a.from(s,"base64"),proofHeight:c?c.toProto():void 0,signer:u})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenTry",value:f.MsgChannelOpenTry.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgChannelOpenTry.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelOpenTry=d},93558:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgAcknowledgement=void 0;var o=n(70353),s=n(81019),c=n(4113),u=n(85036),f=n(43316),d=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.packet=t,o.acknowledgement=n,o.proof_acked=r,o.proof_height=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.acknowledgement,i=e.proof_acked,o=e.proof_height,s=e.signer;return new t(r?u.Packet.fromData(r):void 0,i,a,o?c.Height.fromData(o):void 0,s)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.acknowledgement,a=t.proof_acked,i=t.proof_height,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgAcknowledgement",packet:n?n.toData():void 0,acknowledgement:r,proof_acked:a,proof_height:i?i.toData():void 0,signer:o}},t.fromProto=function(e,n){return new t(e.packet?u.Packet.fromProto(e.packet):void 0,a.from(e.acknowledgement).toString("base64"),a.from(e.proofAcked).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.acknowledgement,i=t.proof_acked,o=t.proof_height,s=t.signer;return f.MsgAcknowledgement.fromPartial({packet:n?n.toProto():void 0,acknowledgement:a.from(r,"base64"),proofAcked:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,signer:s})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgAcknowledgement",value:f.MsgAcknowledgement.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgAcknowledgement.decode(e.value))},t}(o.JSONSerializable);t.MsgAcknowledgement=d},64597:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgRecvPacket=void 0;var o=n(70353),s=n(81019),c=n(4113),u=n(85036),f=n(43316),d=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.packet=t,i.proof_commitment=n,i.proof_height=r,i.signer=a,i}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.proof_commitment,i=e.proof_height,o=e.signer;return new t(r?u.Packet.fromData(r):void 0,a,i?c.Height.fromData(i):void 0,o)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.proof_commitment,a=t.proof_height,i=t.signer;return{"@type":"/ibc.core.channel.v1.MsgRecvPacket",packet:n?n.toData():void 0,proof_commitment:r,proof_height:a?a.toData():void 0,signer:i}},t.fromProto=function(e,n){return new t(e.packet?u.Packet.fromProto(e.packet):void 0,a.from(e.proofCommitment).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.proof_commitment,i=t.proof_height,o=t.signer;return f.MsgRecvPacket.fromPartial({packet:n?n.toProto():void 0,proofCommitment:a.from(r,"base64"),proofHeight:i?i.toProto():void 0,signer:o})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgRecvPacket",value:f.MsgRecvPacket.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgRecvPacket.decode(e.value))},t}(o.JSONSerializable);t.MsgRecvPacket=d},65573:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgTimeout=void 0;var s=n(70353),c=n(81019),u=n(4113),f=n(85036),d=n(43316),l=o(n(12620)),p=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.packet=t,o.proof_unreceived=n,o.proof_height=r,o.next_sequence_recv=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.proof_unreceived,i=e.proof_height,o=e.next_sequence_recv,s=e.signer;return new t(r?f.Packet.fromData(r):void 0,a,i?u.Height.fromData(i):void 0,Number.parseInt(o),s)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.proof_unreceived,a=t.proof_height,i=t.next_sequence_recv,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgTimeout",packet:n?n.toData():void 0,proof_unreceived:r,proof_height:a?a.toData():void 0,next_sequence_recv:i.toFixed(),signer:o}},t.fromProto=function(e,n){return new t(e.packet?f.Packet.fromProto(e.packet):void 0,a.from(e.proofUnreceived).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.nextSequenceRecv.toNumber(),e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.proof_unreceived,i=t.proof_height,o=t.next_sequence_recv,s=t.signer;return d.MsgTimeout.fromPartial({packet:n?n.toProto():void 0,proofUnreceived:a.from(r,"base64"),proofHeight:i?i.toProto():void 0,nextSequenceRecv:l.default.fromNumber(o),signer:s})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgTimeout",value:d.MsgTimeout.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgTimeout.decode(e.value))},t}(s.JSONSerializable);t.MsgTimeout=p},92108:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgTimeoutOnClose=void 0;var s=n(70353),c=n(81019),u=n(4113),f=n(85036),d=n(43316),l=o(n(12620)),p=function(e){function t(t,n,r,a,i,o){var s=e.call(this)||this;return s.packet=t,s.proof_unreceived=n,s.proof_close=r,s.proof_height=a,s.next_sequence_recv=i,s.signer=o,s}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.proof_unreceived,i=e.proof_close,o=e.proof_height,s=e.next_sequence_recv,c=e.signer;return new t(r?f.Packet.fromData(r):void 0,i,a,o?u.Height.fromData(o):void 0,Number.parseInt(s),c)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.proof_unreceived,a=t.proof_close,i=t.proof_height,o=t.next_sequence_recv,s=t.signer;return{"@type":"/ibc.core.channel.v1.MsgTimeoutOnClose",packet:n?n.toData():void 0,proof_unreceived:r,proof_close:a,proof_height:i?i.toData():void 0,next_sequence_recv:o.toFixed(),signer:s}},t.fromProto=function(e,n){return new t(e.packet?f.Packet.fromProto(e.packet):void 0,a.from(e.proofUnreceived).toString("base64"),a.from(e.proofClose).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.nextSequenceRecv.toNumber(),e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.proof_unreceived,i=t.proof_close,o=t.proof_height,s=t.next_sequence_recv,c=t.signer;return d.MsgTimeoutOnClose.fromPartial({packet:n?n.toProto():void 0,proofUnreceived:a.from(r,"base64"),proofClose:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,nextSequenceRecv:l.default.fromNumber(s),signer:c})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgTimeoutOnClose",value:d.MsgTimeoutOnClose.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgTimeoutOnClose.decode(e.value))},t}(s.JSONSerializable);t.MsgTimeoutOnClose=p},25258:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(66742),t),a(n(33552),t),a(n(1974),t),a(n(75529),t),a(n(79297),t),a(n(49492),t),a(n(64597),t),a(n(93558),t),a(n(65573),t),a(n(92108),t)},68823:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreateClient=void 0;var i=n(70353),o=n(81019),s=n(95994),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_state=t,a.consensus_state=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.client_state,e.consensus_state,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.MsgCreateClient",client_state:t.client_state,consensus_state:t.consensus_state,signer:t.signer}},t.fromProto=function(e,n){return new t(e.clientState,e.consensusState,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_state,r=t.consensus_state,a=t.signer;return s.MsgCreateClient.fromPartial({clientState:n,consensusState:r,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgCreateClient",value:s.MsgCreateClient.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgCreateClient.decode(e.value))},t}(i.JSONSerializable);t.MsgCreateClient=c},92844:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgSubmitMisbehaviour=void 0;var i=n(70353),o=n(81019),s=n(95994),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_id=t,a.misbehaviour=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.client_id,e.misbehaviour,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.MsgSubmitMisbehaviour",client_id:t.client_id,misbehaviour:t.misbehaviour,signer:t.signer}},t.fromProto=function(e,n){return new t(e.clientId,e.misbehaviour,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.misbehaviour,a=t.signer;return s.MsgSubmitMisbehaviour.fromPartial({clientId:n,misbehaviour:r,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgSubmitMisbehaviour",value:s.MsgSubmitMisbehaviour.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgSubmitMisbehaviour.decode(e.value))},t}(i.JSONSerializable);t.MsgSubmitMisbehaviour=c},2277:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUpdateClient=void 0;var i=n(70353),o=n(81019),s=n(95994),c=n(37782),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_id=t,a.header=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.client_id,a=e.header,i=e.signer;return new t(r,a?c.Header.fromData(a):void 0,i)},t.prototype.toData=function(e){var t=this,n=t.client_id,r=t.header,a=t.signer;return{"@type":"/ibc.core.client.v1.MsgUpdateClient",client_id:n,header:(null==r?void 0:r.toData())||void 0,signer:a}},t.fromProto=function(e,n){return new t(e.clientId,e.header?c.Header.unpackAny(e.header):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.header,a=t.signer;return s.MsgUpdateClient.fromPartial({clientId:n,header:(null==r?void 0:r.packAny())||void 0,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgUpdateClient",value:s.MsgUpdateClient.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgUpdateClient.decode(e.value))},t}(i.JSONSerializable);t.MsgUpdateClient=u},13653:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUpgradeClient=void 0;var o=n(70353),s=n(81019),c=n(95994),u=function(e){function t(t,n,r,a,i,o){var s=e.call(this)||this;return s.client_id=t,s.client_state=n,s.consensus_state=r,s.proof_upgrade_client=a,s.proof_upgrade_consensus_state=i,s.signer=o,s}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.client_id,e.client_state,e.consensus_state,e.proof_upgrade_client,e.proof_upgrade_consensus_state,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.MsgUpgradeClient",client_id:t.client_id,client_state:t.client_state,consensus_state:t.consensus_state,proof_upgrade_client:t.proof_upgrade_client,proof_upgrade_consensus_state:t.proof_upgrade_consensus_state,signer:t.signer}},t.fromProto=function(e,n){return new t(e.clientId,e.clientState,e.consensusState,a.from(e.proofUpgradeClient).toString("base64"),a.from(e.proofUpgradeConsensusState).toString("base64"),e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.client_state,i=t.consensus_state,o=t.proof_upgrade_client,s=t.proof_upgrade_consensus_state,u=t.signer;return c.MsgUpgradeClient.fromPartial({clientId:n,clientState:r,consensusState:i,proofUpgradeClient:a.from(o,"base64"),proofUpgradeConsensusState:a.from(s,"base64"),signer:u})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgUpgradeClient",value:c.MsgUpgradeClient.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgUpgradeClient.decode(e.value))},t}(o.JSONSerializable);t.MsgUpgradeClient=u},366:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(68823),t),a(n(2277),t),a(n(13653),t),a(n(92844),t)},34221:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PublicKey=t.Proof=void 0;var u=n(4058),f=n(14484),d=c(n(12620)),l=n(70353),p=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.total=t,i.index=n,i.leafHash=r,i.aunts=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.total,r=e.index,a=e.leaf_hash,i=e.aunts;return new t(Number.parseInt(n),Number.parseInt(r),a,i)},t.prototype.toData=function(){var e=this,t=e.total,n=e.index,r=e.leafHash,a=e.aunts;return{total:t.toFixed(),index:n.toFixed(),leaf_hash:r,aunts:a}},t.fromProto=function(e){return new t(e.total.toNumber(),e.index.toNumber(),a.from(e.leafHash).toString("base64"),e.aunts.map((function(e){return a.from(e).toString("base64")})))},t.prototype.toProto=function(){var e=this,t=e.total,n=e.index,r=e.leafHash,i=e.aunts;return u.Proof.fromPartial({total:d.fromNumber(t),index:d.fromNumber(n),leafHash:a.from(r,"base64"),aunts:i.map((function(e){return a.from(e,"base64")}))})},t}(l.JSONSerializable);t.Proof=p;var b=function(e){function t(t,n){var r=e.call(this)||this;return r.ed25519=t,r.secp256k1=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){return new t(e.ed25519,e.secp256k1)},t.prototype.toData=function(){return{ed25519:this.ed25519,secp256k1:this.secp256k1}},t.fromProto=function(e){var n=e.ed25519,r=e.secp256k1;return new t(n?a.from(n).toString("base64"):void 0,r?a.from(r).toString("base64"):void 0)},t.prototype.toProto=function(){var e=this.ed25519,t=this.secp256k1;return f.PublicKey.fromPartial({ed25519:e?a.from(e,"base64"):void 0,secp256k1:t?a.from(t,"base64"):void 0})},t}(l.JSONSerializable);t.PublicKey=b},88590:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Validator=t.ValidatorSet=t.CommitSig=t.Commit=t.PartSetHeader=t.BlockID=t.SignedHeader=t.Header=void 0;var u=n(73921),f=n(16021),d=c(n(12620)),l=n(70353),p=n(87781),b=n(34221),h=function(e){function t(t,n,r,a,i,o,s,c,u,f,d,l,p,b){var h=e.call(this)||this;return h.version=t,h.chainId=n,h.height=r,h.time=a,h.lastBlockId=i,h.lastCommitHash=o,h.dataHash=s,h.validatorsHash=c,h.nextValidatorsHash=u,h.consensusHash=f,h.appHash=d,h.lastResultsHash=l,h.evidenceHash=p,h.proposerAddress=b,h}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.version,r=e.chain_id,a=e.height,i=e.time,o=e.last_block_id,s=e.last_commit_hash,c=e.data_hash,u=e.validators_hash,f=e.next_validators_hash,d=e.consensus_hash,l=e.app_hash,b=e.last_results_hash,h=e.evidence_hash,y=e.proposer_address;return new t(n?p.Consensus.fromData(n):void 0,r,a,i?new Date(i):void 0,o?m.fromData(o):void 0,s,c,u,f,d,l,b,h,y)},t.prototype.toData=function(){var e=this,t=e.version,n=e.chainId,r=e.height,a=e.time,i=e.lastBlockId,o=e.lastCommitHash,s=e.dataHash,c=e.validatorsHash,u=e.nextValidatorsHash,f=e.consensusHash,d=e.appHash,l=e.lastResultsHash,p=e.evidenceHash,b=e.proposerAddress;return{version:null==t?void 0:t.toData(),chain_id:n,height:r,time:a?a.toISOString().replace(/\.000Z$/,"Z"):void 0,last_block_id:i?i.toData():void 0,last_commit_hash:o,data_hash:s,validators_hash:c,next_validators_hash:u,consensus_hash:f,app_hash:d,last_results_hash:l,evidence_hash:p,proposer_address:b}},t.fromProto=function(e){var n=e.version,r=e.chainId,i=e.height,o=e.time,s=e.lastBlockId,c=e.lastCommitHash,u=e.dataHash,f=e.validatorsHash,d=e.nextValidatorsHash,l=e.consensusHash,b=e.appHash,h=e.lastResultsHash,y=e.evidenceHash,v=e.proposerAddress;return new t(n?p.Consensus.fromProto(n):void 0,r,i.toString(),o,s?m.fromProto(s):void 0,a.from(c).toString("base64"),a.from(u).toString("base64"),a.from(f).toString("base64"),a.from(d).toString("base64"),a.from(l).toString("base64"),a.from(b).toString("base64"),a.from(h).toString("base64"),a.from(y).toString("base64"),v.toString())},t.prototype.toProto=function(){var e=this,t=e.version,n=e.chainId,r=e.height,i=e.time,o=e.lastBlockId,s=e.lastCommitHash,c=e.dataHash,f=e.validatorsHash,l=e.nextValidatorsHash,p=e.consensusHash,b=e.appHash,h=e.lastResultsHash,y=e.evidenceHash,m=e.proposerAddress;return u.Header.fromPartial({version:null==t?void 0:t.toProto(),chainId:n,height:d.fromString(r),time:i,lastBlockId:null==o?void 0:o.toProto(),lastCommitHash:a.from(s,"base64"),dataHash:a.from(c,"base64"),validatorsHash:a.from(f,"base64"),nextValidatorsHash:a.from(l,"base64"),consensusHash:a.from(p,"base64"),appHash:a.from(b,"base64"),lastResultsHash:a.from(h,"base64"),evidenceHash:a.from(y,"base64"),proposerAddress:a.from(m)})},t}(l.JSONSerializable);t.Header=h;var y=function(e){function t(t,n){var r=e.call(this)||this;return r.header=t,r.commit=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.header,r=e.commit;return new t(n?h.fromData(n):void 0,r?g.fromData(r):void 0)},t.prototype.toData=function(){var e=this.header,t=this.commit;return{header:null==e?void 0:e.toData(),commit:null==t?void 0:t.toData()}},t.fromProto=function(e){return new t(e.header?h.fromProto(e.header):void 0,e.commit?g.fromProto(e.commit):void 0)},t.prototype.toProto=function(){var e=this.header,t=this.commit;return u.SignedHeader.fromPartial({header:null==e?void 0:e.toProto(),commit:null==t?void 0:t.toProto()})},t}(l.JSONSerializable);t.SignedHeader=y;var m=function(e){function t(t,n){var r=e.call(this)||this;return r.hash=t,r.partSetHeader=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.hash,r=e.part_set_header;return new t(n,r?v.fromData(r):void 0)},t.prototype.toData=function(){var e=this.hash,t=this.partSetHeader;return{hash:e,part_set_header:null==t?void 0:t.toData()}},t.fromProto=function(e){return new t(a.from(e.hash).toString("base64"),e.partSetHeader?v.fromProto(e.partSetHeader):void 0)},t.prototype.toProto=function(){var e=this.hash,t=this.partSetHeader;return u.BlockID.fromPartial({hash:a.from(e,"base64"),partSetHeader:t?t.toProto():void 0})},t}(l.JSONSerializable);t.BlockID=m;var v=function(e){function t(t,n){var r=e.call(this)||this;return r.total=t,r.hash=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.total,r=e.hash;return new t(parseInt(n),r)},t.prototype.toData=function(){var e=this.total,t=this.hash;return{total:e.toFixed(),hash:t}},t.fromProto=function(e){return new t(e.total,a.from(e.hash).toString("base64"))},t.prototype.toProto=function(){var e=this.total,t=this.hash;return u.PartSetHeader.fromPartial({total:e,hash:a.from(t,"base64")})},t}(l.JSONSerializable);t.PartSetHeader=v;var g=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.height=t,i.round=n,i.blockId=r,i.signatures=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.height,r=e.round,a=e.block_id,i=e.signatures;return new t(d.fromString(n),Number.parseInt(r),a?m.fromData(a):void 0,i.map((function(e){return A.fromData(e)})))},t.prototype.toData=function(){var e=this,t=e.height,n=e.round,r=e.blockId,a=e.signatures;return{height:t.toString(),round:n.toFixed(),block_id:null==r?void 0:r.toData(),signatures:a.map((function(e){return e.toData()}))}},t.fromProto=function(e){var n=e.height,r=e.round,a=e.blockId,i=e.signatures;return new t(n,r,a?m.fromProto(a):void 0,i.map((function(e){return A.fromProto(e)})))},t.prototype.toProto=function(){var e=this,t=e.height,n=e.round,r=e.blockId,a=e.signatures;return u.Commit.fromPartial({height:t,round:n,blockId:null==r?void 0:r.toProto(),signatures:a.map((function(e){return e.toProto()}))})},t}(l.JSONSerializable);t.Commit=g;var A=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.blockIdFlag=t,i.validatorAddress=n,i.timestamp=r,i.signature=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.block_id_flag,r=e.validator_address,a=e.timestamp,i=e.signature;return new t((0,u.blockIDFlagFromJSON)(n),r,a?new Date(a):void 0,i)},t.prototype.toData=function(){var e=this,t=e.blockIdFlag,n=e.validatorAddress,r=e.timestamp,a=e.signature;return{block_id_flag:(0,u.blockIDFlagToJSON)(t),validator_address:n||"",timestamp:r?r.toISOString().replace(/\.000Z$/,"Z"):void 0,signature:a||""}},t.fromProto=function(e){var n=e.blockIdFlag,r=e.validatorAddress,i=e.timestamp,o=e.signature;return new t(n,a.from(r).toString("base64"),i,a.from(o).toString("base64"))},t.prototype.toProto=function(){var e=this,t=e.blockIdFlag,n=e.validatorAddress,r=e.timestamp,i=e.signature;return u.CommitSig.fromPartial({blockIdFlag:t,validatorAddress:n?a.from(n,"base64"):void 0,timestamp:r,signature:i?a.from(i,"base64"):void 0})},t}(l.JSONSerializable);t.CommitSig=A;var w=function(e){function t(t,n,r){var a=e.call(this)||this;return a.validators=t,a.proposer=n,a.totalVotingPower=r,a}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.validators,r=e.proposer,a=e.total_voting_power;return new t(n.map((function(e){return x.fromData(e)})),r?x.fromData(r):void 0,d.fromString(a))},t.prototype.toData=function(){var e=this,t=e.validators,n=e.proposer,r=e.totalVotingPower;return{validators:t.map((function(e){return e.toData()})),proposer:null==n?void 0:n.toData(),total_voting_power:r.toString()}},t.fromProto=function(e){var n=e.validators,r=e.proposer,a=e.totalVotingPower;return new t(n.map((function(e){return x.fromProto(e)})),r?x.fromProto(r):void 0,a)},t.prototype.toProto=function(){var e=this,t=e.validators,n=e.proposer,r=e.totalVotingPower;return f.ValidatorSet.fromPartial({validators:t.map((function(e){return e.toProto()})),proposer:(null==n?void 0:n.toProto())||void 0,totalVotingPower:r})},t}(l.JSONSerializable);t.ValidatorSet=w;var x=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.address=t,i.pubKey=n,i.votingPower=r,i.proposerPriority=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.address,r=e.pub_key,a=e.voting_power,i=e.proposer_priority;return new t(n,r?b.PublicKey.fromData(r):void 0,d.fromString(a),d.fromString(i))},t.prototype.toData=function(){var e=this,t=e.address,n=e.pubKey,r=e.votingPower,a=e.proposerPriority;return{address:t,pub_key:null==n?void 0:n.toData(),voting_power:r.toString(),proposer_priority:a.toString()}},t.fromProto=function(e){var n=e.address,r=e.pubKey,i=e.votingPower,o=e.proposerPriority;return new t(a.from(n).toString("base64"),r?b.PublicKey.fromProto(r):void 0,i,o)},t.prototype.toProto=function(){var e=this,t=e.address,n=e.pubKey,r=e.votingPower,i=e.proposerPriority;return f.Validator.fromPartial({address:a.from(t,"base64"),pubKey:(null==n?void 0:n.toProto())||void 0,votingPower:r,proposerPriority:i})},t}(l.JSONSerializable);t.Validator=x},87781:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.App=t.Consensus=void 0;var c=n(2673),u=n(2673),f=s(n(12620)),d=n(70353),l=function(e){function t(t,n){var r=e.call(this)||this;return r.block=t,r.app=n,r}return a(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.block,r=e.app;return new t(Number.parseInt(n),Number.parseInt(r))},t.prototype.toData=function(){var e=this.block,t=this.app;return{block:e.toFixed(),app:t.toFixed()}},t.fromProto=function(e){return new t(e.block.toNumber(),e.app.toNumber())},t.prototype.toProto=function(){var e=this.block,t=this.app;return c.Consensus.fromPartial({block:f.fromNumber(e),app:f.fromNumber(t)})},t}(d.JSONSerializable);t.Consensus=l;var p=function(e){function t(t,n){var r=e.call(this)||this;return r.protocol=t,r.software=n,r}return a(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.protocol,r=e.software;return new t(Number.parseInt(n),r)},t.prototype.toData=function(){var e=this.protocol,t=this.software;return{protocol:e.toFixed(),software:t}},t.fromProto=function(e){return new t(e.protocol.toNumber(),e.software)},t.prototype.toProto=function(){var e=this.protocol,t=this.software;return u.App.fromPartial({protocol:f.fromNumber(e),software:t})},t}(d.JSONSerializable);t.App=p},79071:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenAck=void 0;var o=n(70353),s=n(81019),c=n(99119),u=n(52888),f=n(4113),d=function(e){function t(t,n,r,a,i,o,s,c,u,f){var d=e.call(this)||this;return d.connection_id=t,d.counterparty_connection_id=n,d.version=r,d.client_state=a,d.proof_height=i,d.proof_try=o,d.proof_client=s,d.proof_consensus=c,d.consensus_height=u,d.signer=f,d}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.connection_id,a=e.counterparty_connection_id,i=e.version,o=e.client_state,s=e.proof_height,u=e.proof_try,d=e.proof_client,l=e.proof_consensus,p=e.consensus_height,b=e.signer;return new t(r,a,i?c.Version.fromData(i):void 0,o,s?f.Height.fromData(s):void 0,u,d,l,p?f.Height.fromData(p):void 0,b)},t.prototype.toData=function(e){var t=this,n=t.connection_id,r=t.counterparty_connection_id,a=t.version,i=t.client_state,o=t.proof_height,s=t.proof_try,c=t.proof_client,u=t.proof_consensus,f=t.consensus_height,d=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenAck",connection_id:n,counterparty_connection_id:r,version:a?a.toData():void 0,client_state:i,proof_height:o?o.toData():void 0,proof_try:s,proof_client:c,proof_consensus:u,consensus_height:f?f.toData():void 0,signer:d}},t.fromProto=function(e,n){return new t(e.connectionId,e.counterpartyConnectionId,e.version?c.Version.fromProto(e.version):void 0,e.clientState,e.proofHeight?f.Height.fromProto(e.proofHeight):void 0,a.from(e.proofTry).toString("base64"),a.from(e.proofClient).toString("base64"),a.from(e.proofConsensus).toString("base64"),e.consensusHeight?f.Height.fromProto(e.consensusHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.connection_id,r=t.counterparty_connection_id,i=t.version,o=t.client_state,s=t.proof_height,c=t.proof_try,f=t.proof_client,d=t.proof_consensus,l=t.consensus_height,p=t.signer;return u.MsgConnectionOpenAck.fromPartial({connectionId:n,counterpartyConnectionId:r,version:i?i.toProto():void 0,clientState:o,proofHeight:s?s.toProto():void 0,proofTry:a.from(c,"base64"),proofClient:a.from(f,"base64"),proofConsensus:a.from(d,"base64"),consensusHeight:l?l.toProto():void 0,signer:p})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenAck",value:u.MsgConnectionOpenAck.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgConnectionOpenAck.decode(e.value))},t}(o.JSONSerializable);t.MsgConnectionOpenAck=d},79470:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenConfirm=void 0;var o=n(70353),s=n(81019),c=n(52888),u=n(4113),f=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.connection_id=t,i.proof_ack=n,i.proof_height=r,i.signer=a,i}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.connection_id,a=e.proof_ack,i=e.proof_height,o=e.signer;return new t(r,a,i?u.Height.fromData(i):void 0,o)},t.prototype.toData=function(e){var t=this,n=t.connection_id,r=t.proof_ack,a=t.proof_height,i=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenConfirm",connection_id:n,proof_ack:r,proof_height:a?a.toData():void 0,signer:i}},t.fromProto=function(e,n){return new t(e.connectionId,a.from(e.proofAck).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.connection_id,r=t.proof_ack,i=t.proof_height,o=t.signer;return c.MsgConnectionOpenConfirm.fromPartial({connectionId:n,proofAck:a.from(r,"base64"),proofHeight:i?i.toProto():void 0,signer:o})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenConfirm",value:c.MsgConnectionOpenConfirm.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgConnectionOpenConfirm.decode(e.value))},t}(o.JSONSerializable);t.MsgConnectionOpenConfirm=f},11069:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenInit=void 0;var o=n(70353),s=n(81019),c=n(74705),u=n(99119),f=n(52888),d=i(n(12620)),l=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.client_id=t,o.delay_period=n,o.signer=r,o.counterparty=a,o.version=i,o}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.client_id,a=e.counterparty,i=e.version,o=e.delay_period,s=e.signer;return new t(r,Number.parseInt(o),s,a?c.Counterparty.fromData(a):void 0,i?u.Version.fromData(i):void 0)},t.prototype.toData=function(e){var t=this,n=t.client_id,r=t.counterparty,a=t.version,i=t.delay_period,o=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenInit",client_id:n,delay_period:i.toFixed(),signer:o,counterparty:r?r.toData():void 0,version:a?a.toData():void 0}},t.fromProto=function(e,n){return new t(e.clientId,e.delayPeriod.toNumber(),e.signer,e.counterparty?c.Counterparty.fromProto(e.counterparty):void 0,e.version?u.Version.fromProto(e.version):void 0)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.counterparty,a=t.version,i=t.delay_period,o=t.signer;return f.MsgConnectionOpenInit.fromPartial({clientId:n,delayPeriod:d.default.fromNumber(i),signer:o,counterparty:r?r.toProto():void 0,version:a?a.toProto():void 0})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenInit",value:f.MsgConnectionOpenInit.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgConnectionOpenInit.decode(e.value))},t}(o.JSONSerializable);t.MsgConnectionOpenInit=l},21680:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenTry=void 0;var s=n(70353),c=n(81019),u=n(74705),f=n(99119),d=n(52888),l=o(n(12620)),p=n(4113),b=function(e){function t(t,n,r,a,i,o,s,c,u,f,d,l){var p=e.call(this)||this;return p.client_id=t,p.previous_connection_id=n,p.client_state=r,p.counterparty=a,p.delay_period=i,p.counterparty_versions=o,p.proof_height=s,p.proof_init=c,p.proof_client=u,p.proof_consensus=f,p.consensus_height=d,p.signer=l,p}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.client_id,i=e.previous_connection_id,o=e.client_state,s=e.counterparty,c=e.delay_period,d=e.counterparty_versions,l=e.proof_height,b=e.proof_init,h=e.proof_client,y=e.proof_consensus,m=e.consensus_height,v=e.signer;return new t(r,i,o,s?u.Counterparty.fromData(s):void 0,Number.parseInt(c),d.length>0?d.map((function(e){return f.Version.fromData(e)})):[],l?p.Height.fromData(l):void 0,a.from(b).toString("base64"),a.from(h).toString("base64"),a.from(y).toString("base64"),m?p.Height.fromData(m):void 0,v)},t.prototype.toData=function(e){var t=this,n=t.client_id,r=t.previous_connection_id,a=t.client_state,i=t.counterparty,o=t.delay_period,s=t.counterparty_versions,c=t.proof_height,u=t.proof_init,f=t.proof_client,d=t.proof_consensus,l=t.consensus_height,p=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenTry",client_id:n,previous_connection_id:r,client_state:a,counterparty:i?i.toData():void 0,delay_period:o.toFixed(),counterparty_versions:s.length>0?s.map((function(e){return e.toData()})):[],proof_height:c?c.toData():void 0,proof_init:u,proof_client:f,proof_consensus:d,consensus_height:l?l.toData():void 0,signer:p}},t.fromProto=function(e,n){return new t(e.clientId,e.previousConnectionId,e.clientState,e.counterparty?u.Counterparty.fromProto(e.counterparty):void 0,e.delayPeriod.toNumber(),e.counterpartyVersions.length>0?e.counterpartyVersions.map((function(e){return f.Version.fromProto(e)})):[],e.proofHeight?p.Height.fromProto(e.proofHeight):void 0,a.from(e.proofInit).toString("base64"),a.from(e.proofClient).toString("base64"),a.from(e.proofConsensus).toString("base64"),e.consensusHeight?p.Height.fromProto(e.consensusHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.previous_connection_id,i=t.client_state,o=t.counterparty,s=t.delay_period,c=t.counterparty_versions,u=t.proof_height,f=t.proof_init,p=t.proof_client,b=t.proof_consensus,h=t.consensus_height,y=t.signer;return d.MsgConnectionOpenTry.fromPartial({clientId:n,previousConnectionId:r,clientState:i.toProto(),counterparty:o?o.toProto():void 0,delayPeriod:l.default.fromNumber(s),counterpartyVersions:c.length>0?c.map((function(e){return e.toProto()})):[],proofHeight:u?u.toProto():void 0,proofInit:a.from(f,"base64"),proofClient:a.from(p,"base64"),proofConsensus:a.from(b,"base64"),consensusHeight:h?h.toProto():void 0,signer:y})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenTry",value:d.MsgConnectionOpenTry.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgConnectionOpenTry.decode(e.value))},t}(s.JSONSerializable);t.MsgConnectionOpenTry=b},93578:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(11069),t),a(n(21680),t),a(n(79470),t),a(n(79071),t)},33433:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientUpdateProposal=void 0;var i=n(70353),o=n(81019),s=n(39163),c=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.title=t,i.description=n,i.subjectClientId=r,i.substituteClientId=a,i}return a(t,e),t.fromAmino=function(e,n){var r=e.value;return new t(r.title,r.description,r.subjectClientId,r.substituteClientId)},t.prototype.toAmino=function(e){var t=this;return{type:"ibc/ClientUpdateProposal",value:{title:t.title,description:t.description,subjectClientId:t.subjectClientId,substituteClientId:t.substituteClientId}}},t.fromData=function(e,n){return new t(e.title,e.description,e.subject_client_id,e.substitute_client_id)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.ClientUpdateProposal",title:t.title,description:t.description,subject_client_id:t.subjectClientId,substitute_client_id:t.substituteClientId}},t.fromProto=function(e,n){return new t(e.title,e.description,e.subjectClientId,e.substituteClientId)},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,a=t.subjectClientId,i=t.substituteClientId;return s.ClientUpdateProposal.fromPartial({subjectClientId:a,substituteClientId:i,description:r,title:n})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.ClientUpdateProposal",value:s.ClientUpdateProposal.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.ClientUpdateProposal.decode(e.value))},t}(i.JSONSerializable);t.ClientUpdateProposal=c},17222:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(33433),t)},2632:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(63790),t),a(n(90111),t),a(n(35860),t),a(n(28159),t),a(n(19065),t),a(n(46531),t),a(n(92484),t),a(n(42555),t),a(n(62542),t),a(n(75312),t),a(n(36910),t),a(n(80492),t),a(n(13819),t),a(n(1647),t),a(n(48200),t),a(n(85836),t),a(n(81801),t),a(n(88093),t),a(n(37319),t),a(n(42018),t),a(n(31433),t),a(n(33686),t),a(n(91038),t),a(n(29665),t),a(n(92027),t),a(n(10877),t),a(n(59711),t),a(n(84894),t),a(n(93468),t),a(n(72255),t),a(n(87287),t),a(n(18882),t),a(n(10808),t),a(n(8555),t),a(n(67230),t),a(n(92697),t),a(n(98649),t),a(n(9296),t),a(n(40456),t),a(n(21492),t),a(n(20473),t),a(n(30863),t),a(n(29518),t),a(n(20750),t),a(n(48606),t),a(n(72562),t),a(n(21853),t),a(n(97200),t),a(n(17328),t),a(n(39869),t),a(n(16424),t),a(n(25258),t),a(n(366),t),a(n(93578),t),a(n(12550),t),a(n(26531),t)},15421:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgSwap=void 0;var i=n(70353),o=n(90111),s=n(18526),c=n(30189),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.trader=t,a.offer_coin=n,a.ask_denom=r,a}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.trader,i=r.offer_coin,s=r.ask_denom;return new t(a,o.Coin.fromAmino(i),s)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.trader,r=t.offer_coin,a=t.ask_denom;return{type:"market/MsgSwap",value:{trader:n,offer_coin:r.toAmino(),ask_denom:a}}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.trader,o.Coin.fromProto(e.offerCoin),e.askDenom)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.trader,r=t.offer_coin,a=t.ask_denom;return s.MsgSwap.fromPartial({askDenom:a,offerCoin:r.toProto(),trader:n})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/terra.market.v1beta1.MsgSwap",value:s.MsgSwap.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.MsgSwap.decode(e.value),n)},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.trader,a=e.offer_coin,i=e.ask_denom;return new t(r,o.Coin.fromData(a),i)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.trader,r=t.offer_coin,a=t.ask_denom;return{"@type":"/terra.market.v1beta1.MsgSwap",trader:n,offer_coin:r.toData(),ask_denom:a}},t}(i.JSONSerializable);t.MsgSwap=u},68836:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgSwapSend=void 0;var i=n(70353),o=n(90111),s=n(30189),c=n(18526),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.from_address=t,i.to_address=n,i.offer_coin=r,i.ask_denom=a,i}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.from_address,i=r.to_address,s=r.offer_coin,c=r.ask_denom;return new t(a,i,o.Coin.fromAmino(s),c)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.offer_coin,i=t.ask_denom;return{type:"market/MsgSwapSend",value:{from_address:n,to_address:r,offer_coin:a.toAmino(),ask_denom:i}}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.fromAddress,e.toAddress,o.Coin.fromProto(e.offerCoin),e.askDenom)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.offer_coin,i=t.ask_denom;return c.MsgSwapSend.fromPartial({askDenom:i,fromAddress:n,offerCoin:a.toProto(),toAddress:r})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return s.Any.fromPartial({typeUrl:"/terra.market.v1beta1.MsgSwapSend",value:c.MsgSwapSend.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(c.MsgSwapSend.decode(e.value),n)},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.from_address,a=e.to_address,i=e.offer_coin,s=e.ask_denom;return new t(r,a,o.Coin.fromData(i),s)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.offer_coin,i=t.ask_denom;return{"@type":"/terra.market.v1beta1.MsgSwapSend",from_address:n,to_address:r,offer_coin:a.toData(),ask_denom:i}},t}(i.JSONSerializable);t.MsgSwapSend=u},18882:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(15421),t),a(n(68836),t)},46531:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.int=t.dec=t.Int=t.Dec=t.Numeric=t.DEC_PRECISION=void 0;var o,s=i(n(1194));t.DEC_PRECISION=18,s.default.set({precision:64,rounding:3}),function(e){e.parse=function(e){if(e instanceof c)return e;if("string"==typeof e)return e.includes(".")?new c(e):new u(e);var t=new s.default(e);return t.isInteger()?new u(t):new c(t.toString())}}(o=t.Numeric||(t.Numeric={}));var c=function(e){function n(t){return e.call(this,(null!=t?t:0).toString())||this}return a(n,e),n.prototype.toString=function(){return this.toFixed(t.DEC_PRECISION)},n.withPrec=function(e,t){return new n(new n(e).div(Math.pow(10,t)))},n.prototype.toInt=function(){return new u(this)},n.prototype.add=function(t){var r=new n(o.parse(t));return new n(e.prototype.add.call(this,r))},n.prototype.sub=function(t){var r=new n(o.parse(t));return new n(e.prototype.sub.call(this,r))},n.prototype.mul=function(t){var r=new n(o.parse(t));return new n(e.prototype.mul.call(this,r))},n.prototype.div=function(t){var r=new n(o.parse(t));return new n(e.prototype.div.call(this,r))},n.prototype.mod=function(t){var r=new n(o.parse(t));return new n(e.prototype.mod.call(this,r))},n}(s.default);t.Dec=c;var u=function(e){function t(t){var n=new s.default((null!=t?t:0).toString());return e.call(this,n.divToInt(1))||this}return a(t,e),t.prototype.toString=function(){return this.toFixed()},t.prototype.toDec=function(){return new c(this)},t.prototype.add=function(e){var n=o.parse(e);return n instanceof c?new c(this).add(n):new t(this.plus(n))},t.prototype.sub=function(e){var n=o.parse(e);return n instanceof c?new c(this).sub(n):new t(this.minus(n))},t.prototype.mul=function(e){var n=o.parse(e);return n instanceof c?new c(this).mul(n):new t(this.times(n))},t.prototype.div=function(n){var r=o.parse(n);return r instanceof c?new c(this).div(r):new t(e.prototype.div.call(this,r))},t.prototype.mod=function(n){var r=o.parse(n);return r instanceof c?new c(this).mod(r):new t(e.prototype.mod.call(this,r))},t}(s.default.clone());t.Int=u,t.dec=function(e){return new c(e[0])},t.int=function(e){return new u(e[0])}},92697:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AggregateExchangeRatePrevote=void 0;var c=n(70353),u=n(55334),f=s(n(12620)),d=function(e){function t(t,n,r){var a=e.call(this)||this;return a.hash=t,a.voter=n,a.submit_block=r,a}return a(t,e),t.fromAmino=function(e){var n=e.hash,r=e.voter,a=e.submit_block;return new t(n,r,Number.parseInt(a))},t.prototype.toAmino=function(){var e=this;return{hash:e.hash,voter:e.voter,submit_block:e.submit_block.toFixed()}},t.fromData=function(e){var n=e.hash,r=e.voter,a=e.submit_block;return new t(n,r,Number.parseInt(a))},t.prototype.toData=function(){var e=this;return{hash:e.hash,voter:e.voter,submit_block:e.submit_block.toFixed()}},t.fromProto=function(e){return new t(e.hash,e.voter,e.submitBlock.toNumber())},t.prototype.toProto=function(){var e=this,t=e.hash,n=e.voter,r=e.submit_block;return u.AggregateExchangeRatePrevote.fromPartial({hash:t,submitBlock:f.fromNumber(r),voter:n})},t}(c.JSONSerializable);t.AggregateExchangeRatePrevote=d},98649:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExchangeRateTuple=t.AggregateExchangeRateVote=void 0;var i=n(70353),o=n(55334),s=n(46531),c=function(e){function t(t,n){var r=e.call(this)||this;return r.exchange_rate_tuples=t,r.voter=n,r}return a(t,e),t.fromAmino=function(e){var n=e.exchange_rate_tuples,r=e.voter;return new t(n.map((function(e){return u.fromAmino(e)})),r)},t.prototype.toAmino=function(){var e=this.exchange_rate_tuples,t=this.voter;return{exchange_rate_tuples:e.map((function(e){return e.toAmino()})),voter:t}},t.fromData=function(e){var n=e.exchange_rate_tuples,r=e.voter;return new t(n.map((function(e){return u.fromData(e)})),r)},t.prototype.toData=function(){var e=this.exchange_rate_tuples,t=this.voter;return{exchange_rate_tuples:e.map((function(e){return e.toData()})),voter:t}},t.fromProto=function(e){return new t(e.exchangeRateTuples.map((function(e){return u.fromProto(e)})),e.voter)},t.prototype.toProto=function(){var e=this.exchange_rate_tuples,t=this.voter;return o.AggregateExchangeRateVote.fromPartial({exchangeRateTuples:e.map((function(e){return e.toProto()})),voter:t})},t}(i.JSONSerializable);t.AggregateExchangeRateVote=c;var u=function(e){function t(t,n){var r=e.call(this)||this;return r.denom=t,r.exchange_rate=new s.Dec(n),r}return a(t,e),t.fromAmino=function(e){return new t(e.denom,e.exchange_rate)},t.prototype.toAmino=function(){return{denom:this.denom,exchange_rate:this.exchange_rate.toString()}},t.fromData=function(e){return new t(e.denom,e.exchange_rate)},t.prototype.toData=function(){return{denom:this.denom,exchange_rate:this.exchange_rate.toString()}},t.fromProto=function(e){return new t(e.denom,e.exchangeRate)},t.prototype.toProto=function(){var e=this.denom,t=this.exchange_rate;return o.ExchangeRateTuple.fromPartial({denom:e,exchangeRate:t.toString()})},t}(i.JSONSerializable);t.ExchangeRateTuple=u},3210:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgAggregateExchangeRatePrevote=void 0;var i=n(70353),o=n(30189),s=n(24575),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.hash=t,a.feeder=n,a.validator=r,a}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value;return new t(r.hash,r.feeder,r.validator)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{type:"oracle/MsgAggregateExchangeRatePrevote",value:{hash:t.hash,feeder:t.feeder,validator:t.validator}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.hash,e.feeder,e.validator)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{"@type":"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote",hash:t.hash,feeder:t.feeder,validator:t.validator}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.hash,e.feeder,e.validator)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.hash,r=t.feeder,a=t.validator;return s.MsgAggregateExchangeRatePrevote.fromPartial({hash:n,feeder:r,validator:a})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote",value:s.MsgAggregateExchangeRatePrevote.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.MsgAggregateExchangeRatePrevote.decode(e.value),n)},t}(i.JSONSerializable);t.MsgAggregateExchangeRatePrevote=c},81943:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgAggregateExchangeRateVote=t.aggregateVoteHash=void 0;var i=n(77294),o=n(70353),s=n(3210),c=n(35860),u=n(30189),f=n(24575);function d(e,t,n){var r="".concat(t,":").concat(e.toDecCoins().toString(),":").concat(n);return i.SHA256.hash(r).toString().substring(0,40)}t.aggregateVoteHash=d;var l=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.salt=n,i.feeder=r,i.validator=a,i.exchange_rates=new c.Coins(t).toDecCoins(),i}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.exchange_rates,i=r.salt,o=r.feeder,s=r.validator;return new t(c.Coins.fromString(a),i,o,s)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.exchange_rates,r=t.salt,a=t.feeder,i=t.validator;return{type:"oracle/MsgAggregateExchangeRateVote",value:{exchange_rates:n.toDecCoins().toString(),salt:r,feeder:a,validator:i}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.exchange_rates,a=e.salt,i=e.feeder,o=e.validator;return new t(c.Coins.fromString(r),a,i,o)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.exchange_rates,r=t.salt,a=t.feeder,i=t.validator;return{"@type":"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote",exchange_rates:n.toDecCoins().toString(),salt:r,feeder:a,validator:i}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(c.Coins.fromString(e.exchangeRates),e.salt,e.feeder,e.validator)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.exchange_rates,r=t.salt,a=t.feeder,i=t.validator;return f.MsgAggregateExchangeRateVote.fromPartial({exchangeRates:n.toString(),feeder:a,salt:r,validator:i})},t.prototype.getAggregateVoteHash=function(){return d(this.exchange_rates,this.salt,this.validator)},t.prototype.getPrevote=function(){return new s.MsgAggregateExchangeRatePrevote(this.getAggregateVoteHash(),this.feeder,this.validator)},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return u.Any.fromPartial({typeUrl:"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote",value:f.MsgAggregateExchangeRateVote.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(f.MsgAggregateExchangeRateVote.decode(e.value),n)},t}(o.JSONSerializable);t.MsgAggregateExchangeRateVote=l},38543:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgDelegateFeedConsent=void 0;var i=n(70353),o=n(81019),s=n(24575),c=function(e){function t(t,n){var r=e.call(this)||this;return r.operator=t,r.delegate=n,r}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value;return new t(r.operator,r.delegate)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");return{type:"oracle/MsgDelegateFeedConsent",value:{operator:this.operator,delegate:this.delegate}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.operator,e.delegate)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");return{"@type":"/terra.oracle.v1beta1.MsgDelegateFeedConsent",operator:this.operator,delegate:this.delegate}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.operator,e.delegate)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this.operator,n=this.delegate;return s.MsgDelegateFeedConsent.fromPartial({delegate:n,operator:t})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/terra.oracle.v1beta1.MsgDelegateFeedConsent",value:s.MsgDelegateFeedConsent.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.MsgDelegateFeedConsent.decode(e.value),n)},t}(i.JSONSerializable);t.MsgDelegateFeedConsent=c},67230:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(38543),t),a(n(81943),t),a(n(3210),t)},40456:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ParamChange=t.ParamChanges=void 0;var i=n(70353),o=n(41182),s=function(e){function t(t){var n=e.call(this)||this;return n.paramChanges=t,n}return a(t,e),t.fromAmino=function(e){return new t((null!=e?e:[]).map(c.fromAmino))},t.prototype.toAmino=function(){return this.paramChanges.map((function(e){return e.toAmino()}))},t.fromData=function(e){return new t((null!=e?e:[]).map(c.fromData))},t.prototype.toData=function(){return this.paramChanges.map((function(e){return e.toData()}))},t.fromProto=function(e){return new t((null!=e?e:[]).map(c.fromProto))},t.prototype.toProto=function(){return this.paramChanges.map((function(e){return e.toProto()}))},t}(i.JSONSerializable);t.ParamChanges=s;var c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.subspace=t,a.key=n,a.value=r,a}return a(t,e),t.fromAmino=function(e){return new t(e.subspace,e.key,e.value)},t.prototype.toAmino=function(){var e=this;return{subspace:e.subspace,key:e.key,value:e.value}},t.fromData=function(e){return new t(e.subspace,e.key,e.value)},t.prototype.toData=function(){var e=this;return{subspace:e.subspace,key:e.key,value:e.value}},t.fromProto=function(e){return new t(e.subspace,e.key,e.value)},t.prototype.toProto=function(){var e=this,t=e.subspace,n=e.key,r=e.value;return o.ParamChange.fromPartial({key:n,subspace:t,value:r})},t}(i.JSONSerializable);t.ParamChange=c},59807:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ParameterChangeProposal=void 0;var i=n(70353),o=n(40456),s=n(81019),c=n(68378),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,Array.isArray(r)?a.changes=o.ParamChanges.fromData(r):a.changes=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.title,i=r.description,s=r.changes;return new t(a,i,o.ParamChanges.fromAmino(s))},t.prototype.toAmino=function(e){var t=this;return{type:e?"params/ParameterChangeProposal":"cosmos-sdk/ParameterChangeProposal",value:{title:t.title,description:t.description,changes:t.changes.toAmino()}}},t.fromData=function(e,n){var r=e.title,a=e.description,i=e.changes;return new t(r,a,o.ParamChanges.fromData(i))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.params.v1beta1.ParameterChangeProposal",title:t.title,description:t.description,changes:t.changes.toData()}},t.fromProto=function(e,n){return new t(e.title,e.description,o.ParamChanges.fromProto(e.changes))},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,a=t.changes;return c.ParameterChangeProposal.fromPartial({changes:a.toProto(),description:r,title:n})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.params.v1beta1.ParameterChangeProposal",value:c.ParameterChangeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.ParameterChangeProposal.decode(e.value),n)},t}(i.JSONSerializable);t.ParameterChangeProposal=u},9296:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(59807),t)},62367:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUnjail=void 0;var i=n(70353),o=n(81019),s=n(42144),c=function(e){function t(t){var n=e.call(this)||this;return n.address=t,n}return a(t,e),t.fromAmino=function(e,n){return new t(e.value.address)},t.prototype.toAmino=function(e){return{type:e?"slashing/MsgUnjail":"cosmos-sdk/MsgUnjail",value:{address:this.address}}},t.fromData=function(e,n){return new t(e.address)},t.prototype.toData=function(e){return{"@type":"/cosmos.slashing.v1beta1.MsgUnjail",address:this.address}},t.fromProto=function(e,n){return new t(e.validatorAddr)},t.prototype.toProto=function(e){var t=this.address;return s.MsgUnjail.fromPartial({validatorAddr:t})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/cosmos.slashing.v1beta1.MsgUnjail",value:s.MsgUnjail.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgUnjail.decode(e.value),n)},t}(i.JSONSerializable);t.MsgUnjail=c},21492:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(62367),t)},30863:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Delegation=void 0;var i=n(70353),o=n(46531),s=n(90111),c=n(18672),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.delegator_address=t,i.validator_address=n,i.shares=r,i.balance=a,i}return a(t,e),t.fromAmino=function(e){var n=e.delegation,r=n.delegator_address,a=n.validator_address,i=n.shares,c=e.balance;return new t(r,a,new o.Dec(i),s.Coin.fromAmino(c))},t.prototype.toAmino=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.shares,a=e.balance;return{delegation:{delegator_address:t,validator_address:n,shares:r.toString()},balance:a.toAmino()}},t.fromData=function(e){var n=e.delegation,r=n.delegator_address,a=n.validator_address,i=n.shares,c=e.balance;return new t(r,a,new o.Dec(i),s.Coin.fromData(c))},t.prototype.toData=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.shares,a=e.balance;return{delegation:{delegator_address:t,validator_address:n,shares:r.toString()},balance:a.toData()}},t.fromProto=function(e){var n=e.delegation;return new t(n.delegatorAddress,n.validatorAddress,new o.Dec(n.shares),s.Coin.fromProto(e.balance))},t.prototype.toProto=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.shares,a=e.balance;return c.DelegationResponse.fromPartial({delegation:c.Delegation.fromPartial({delegatorAddress:t,shares:r.toString(),validatorAddress:n}),balance:a.toProto()})},t}(i.JSONSerializable);t.Delegation=u},29518:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Redelegation=void 0;var c=n(70353),u=n(46531),f=n(18672),d=s(n(12620)),l=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.delegator_address=t,i.validator_src_address=n,i.validator_dst_address=r,i.entries=a,i}return a(t,e),t.fromAmino=function(e){var n=e.redelegation;return new t(n.delegator_address,n.validator_src_address,n.validator_dst_address,e.entries.map((function(e){return t.Entry.fromAmino(e)})))},t.prototype.toAmino=function(){var e=this;return{redelegation:{delegator_address:e.delegator_address,validator_src_address:e.validator_src_address,validator_dst_address:e.validator_dst_address},entries:e.entries.map((function(e){return e.toAmino()}))}},t.fromData=function(e){var n=e.redelegation;return new t(n.delegator_address,n.validator_src_address,n.validator_dst_address,e.entries.map((function(e){return t.Entry.fromData(e)})))},t.prototype.toData=function(){var e=this;return{redelegation:{delegator_address:e.delegator_address,validator_src_address:e.validator_src_address,validator_dst_address:e.validator_dst_address},entries:e.entries.map((function(e){return e.toData()}))}},t.fromProto=function(e){var n=e.redelegation;return new t(n.delegatorAddress,n.validatorDstAddress,n.validatorDstAddress,e.entries.map((function(e){return t.Entry.fromProto(e)})))},t.prototype.toProto=function(){var e=this,t=e.delegator_address,n=e.validator_src_address,r=e.validator_dst_address,a=e.entries;return f.RedelegationResponse.fromPartial({entries:a.map((function(e){return e.toProto()})),redelegation:f.Redelegation.fromPartial({delegatorAddress:t,entries:a.map((function(e){return e.toProto().redelegationEntry})),validatorDstAddress:r,validatorSrcAddress:n})})},t}(c.JSONSerializable);t.Redelegation=l,function(e){var t=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.initial_balance=t,o.balance=n,o.shares_dst=r,o.creation_height=a,o.completion_time=i,o}return a(t,e),t.prototype.toAmino=function(){return{redelegation_entry:{initial_balance:this.initial_balance.toString(),shares_dst:this.shares_dst.toString(),creation_height:this.creation_height,completion_time:this.completion_time.toISOString()},balance:this.balance.toString()}},t.fromAmino=function(e){var n=e.redelegation_entry,r=n.initial_balance,a=n.shares_dst,i=n.creation_height,o=n.completion_time,s=e.balance;return new t(new u.Int(r),new u.Int(s),new u.Dec(a),i,new Date(o))},t.prototype.toData=function(){return{redelegation_entry:{initial_balance:this.initial_balance.toString(),shares_dst:this.shares_dst.toString(),creation_height:this.creation_height,completion_time:this.completion_time.toISOString()},balance:this.balance.toString()}},t.fromData=function(e){var n=e.redelegation_entry,r=n.initial_balance,a=n.shares_dst,i=n.creation_height,o=n.completion_time,s=e.balance;return new t(new u.Int(r),new u.Int(s),new u.Dec(a),i,new Date(o))},t.prototype.toProto=function(){var e=this,t=e.initial_balance,n=e.balance,r=e.shares_dst,a=e.creation_height,i=e.completion_time;return f.RedelegationEntryResponse.fromPartial({balance:n.toString(),redelegationEntry:f.RedelegationEntry.fromPartial({completionTime:i,creationHeight:d.fromNumber(a),initialBalance:t.toString(),sharesDst:r.toString()})})},t.fromProto=function(e){var n=e.redelegationEntry;return new t(new u.Int(n.initialBalance),new u.Int(e.balance),new u.Dec(n.sharesDst),n.creationHeight.toNumber(),n.completionTime)},t}(c.JSONSerializable);e.Entry=t}(l=t.Redelegation||(t.Redelegation={})),t.Redelegation=l},20750:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.UnbondingDelegation=void 0;var c=n(70353),u=n(46531),f=n(18672),d=s(n(12620)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.delegator_address=t,a.validator_address=n,a.entries=r,a}return a(t,e),t.fromAmino=function(e){return new t(e.delegator_address,e.validator_address,e.entries.map((function(e){return t.Entry.fromAmino(e)})))},t.prototype.toAmino=function(){var e=this;return{delegator_address:e.delegator_address,validator_address:e.validator_address,entries:e.entries.map((function(e){return e.toAmino()}))}},t.fromData=function(e){return new t(e.delegator_address,e.validator_address,e.entries.map((function(e){return t.Entry.fromData(e)})))},t.prototype.toData=function(){var e=this;return{delegator_address:e.delegator_address,validator_address:e.validator_address,entries:e.entries.map((function(e){return e.toData()}))}},t.prototype.toProto=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.entries;return f.UnbondingDelegation.fromPartial({delegatorAddress:t,entries:r.map((function(e){return e.toProto()})),validatorAddress:n})},t.fromProto=function(e){return new t(e.delegatorAddress,e.validatorAddress,e.entries.map((function(e){return t.Entry.fromProto(e)})))},t}(c.JSONSerializable);t.UnbondingDelegation=l,function(e){var t=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.initial_balance=t,i.balance=n,i.creation_height=r,i.completion_time=a,i}return a(t,e),t.prototype.toAmino=function(){return{initial_balance:this.initial_balance.toString(),balance:this.balance.toString(),creation_height:this.creation_height.toFixed(),completion_time:this.completion_time.toISOString()}},t.fromAmino=function(e){var n=e.initial_balance,r=e.balance,a=e.creation_height,i=e.completion_time;return new t(new u.Int(n),new u.Int(r),Number.parseInt(a),new Date(i))},t.prototype.toData=function(){return{initial_balance:this.initial_balance.toString(),balance:this.balance.toString(),creation_height:this.creation_height.toFixed(),completion_time:this.completion_time.toISOString()}},t.fromData=function(e){var n=e.initial_balance,r=e.balance,a=e.creation_height,i=e.completion_time;return new t(new u.Int(n),new u.Int(r),Number.parseInt(a),new Date(i))},t.prototype.toProto=function(){var e=this,t=e.initial_balance,n=e.balance,r=e.creation_height,a=e.completion_time;return f.UnbondingDelegationEntry.fromPartial({balance:n.toString(),completionTime:a,creationHeight:d.fromNumber(r),initialBalance:t.toString()})},t.fromProto=function(e){return new t(new u.Int(e.initialBalance),new u.Int(e.balance),e.creationHeight.toNumber(),e.completionTime)},t}(c.JSONSerializable);e.Entry=t}(l=t.UnbondingDelegation||(t.UnbondingDelegation={})),t.UnbondingDelegation=l},48606:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Validator=void 0;var c=n(70353),u=n(46531),f=n(92484),d=n(18672),l=s(n(12620)),p=function(e){function t(t,n,r,a,i,o,s,c,u,f,d){var l=e.call(this)||this;return l.operator_address=t,l.consensus_pubkey=n,l.jailed=r,l.status=a,l.tokens=i,l.delegator_shares=o,l.description=s,l.unbonding_height=c,l.unbonding_time=u,l.commission=f,l.min_self_delegation=d,l}return a(t,e),t.prototype.toAmino=function(){return{operator_address:this.operator_address,consensus_pubkey:this.consensus_pubkey.toAmino(),jailed:this.jailed,status:this.status,tokens:this.tokens.toString(),delegator_shares:this.delegator_shares.toString(),description:this.description,unbonding_height:this.unbonding_height.toFixed(),unbonding_time:this.unbonding_time.toISOString(),commission:this.commission.toAmino(),min_self_delegation:this.min_self_delegation.toString()}},t.fromAmino=function(e){return new t(e.operator_address,f.ValConsPublicKey.fromAmino(e.consensus_pubkey),e.jailed||!1,e.status||0,new u.Int(e.tokens),new u.Dec(e.delegator_shares),t.Description.fromAmino(e.description),Number.parseInt(e.unbonding_height),new Date(e.unbonding_time),t.Commission.fromAmino(e.commission),new u.Int(e.min_self_delegation))},t.prototype.toData=function(){return{operator_address:this.operator_address,consensus_pubkey:this.consensus_pubkey.toData(),jailed:this.jailed,status:this.status,tokens:this.tokens.toString(),delegator_shares:this.delegator_shares.toString(),description:this.description,unbonding_height:this.unbonding_height.toFixed(),unbonding_time:this.unbonding_time.toISOString(),commission:this.commission.toData(),min_self_delegation:this.min_self_delegation.toString()}},t.fromData=function(e){return new t(e.operator_address,f.ValConsPublicKey.fromData(e.consensus_pubkey),e.jailed||!1,e.status||0,new u.Int(e.tokens),new u.Dec(e.delegator_shares),t.Description.fromData(e.description),Number.parseInt(e.unbonding_height),new Date(e.unbonding_time),t.Commission.fromData(e.commission),new u.Int(e.min_self_delegation))},t.prototype.toProto=function(){var e=this,t=e.operator_address,n=e.consensus_pubkey,r=e.jailed,a=e.status,i=e.tokens,o=e.delegator_shares,s=e.description,c=e.unbonding_height,u=e.unbonding_time,f=e.commission,p=e.min_self_delegation;return d.Validator.fromPartial({commission:f.toProto(),consensusPubkey:n.packAny(),delegatorShares:o.toString(),description:s.toProto(),jailed:r,minSelfDelegation:p.toString(),operatorAddress:t,status:a,tokens:i.toString(),unbondingHeight:l.fromNumber(c),unbondingTime:u})},t.fromProto=function(e){return new t(e.operatorAddress,f.ValConsPublicKey.unpackAny(e.consensusPubkey),e.jailed,e.status,new u.Int(e.tokens),new u.Dec(e.delegatorShares),t.Description.fromProto(e.description),e.unbondingHeight.toNumber(),e.unbondingTime,t.Commission.fromProto(e.commission),new u.Int(e.minSelfDelegation))},t}(c.JSONSerializable);t.Validator=p,function(e){e.Status=d.BondStatus;var t=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.moniker=t,o.identity=n,o.website=r,o.details=a,o.security_contact=i,o}return a(t,e),t.prototype.toAmino=function(){return{moniker:this.moniker,identity:this.identity,website:this.website,details:this.details,security_contact:this.security_contact}},t.fromAmino=function(e){return new t(e.moniker,e.identity||"",e.website||"",e.details||"",e.security_contact||"")},t.prototype.toData=function(){return{moniker:this.moniker,identity:this.identity,website:this.website,details:this.details,security_contact:this.security_contact}},t.fromData=function(e){return new t(e.moniker,e.identity||"",e.website||"",e.details||"",e.security_contact||"")},t.prototype.toProto=function(){var e=this,t=e.moniker,n=e.identity,r=e.website,a=e.details,i=e.security_contact;return d.Description.fromPartial({details:a,identity:n,moniker:t,securityContact:i,website:r})},t.fromProto=function(e){return new t(e.moniker,e.identity,e.website,e.details,e.securityContact)},t}(c.JSONSerializable);e.Description=t;var n=function(e){function t(t,n,r){var a=e.call(this)||this;return a.rate=t,a.max_rate=n,a.max_change_rate=r,a}return a(t,e),t.fromAmino=function(e){var n=e.rate,r=e.max_rate,a=e.max_change_rate;return new t(new u.Dec(n),new u.Dec(r),new u.Dec(a))},t.prototype.toAmino=function(){var e=this,t=e.rate,n=e.max_rate,r=e.max_change_rate;return{rate:t.toString(),max_rate:n.toString(),max_change_rate:r.toString()}},t.fromData=function(e){var n=e.rate,r=e.max_rate,a=e.max_change_rate;return new t(new u.Dec(n),new u.Dec(r),new u.Dec(a))},t.prototype.toData=function(){var e=this,t=e.rate,n=e.max_rate,r=e.max_change_rate;return{rate:t.toString(),max_rate:n.toString(),max_change_rate:r.toString()}},t.fromProto=function(e){return new t(new u.Dec(e.rate),new u.Dec(e.maxRate),new u.Dec(e.maxChangeRate))},t.prototype.toProto=function(){var e=this,t=e.rate,n=e.max_rate,r=e.max_change_rate;return d.CommissionRates.fromPartial({maxChangeRate:r.toString(),maxRate:n.toString(),rate:t.toString()})},t}(c.JSONSerializable);e.CommissionRates=n;var r=function(e){function t(t,n){var r=e.call(this)||this;return r.commission_rates=t,r.update_time=n,r}return a(t,e),t.prototype.toAmino=function(){return{commission_rates:this.commission_rates.toAmino(),update_time:this.update_time.toISOString()}},t.fromAmino=function(e){return new t(n.fromAmino(e.commission_rates),new Date(e.update_time))},t.prototype.toData=function(){return{commission_rates:this.commission_rates.toData(),update_time:this.update_time.toISOString()}},t.fromData=function(e){return new t(n.fromData(e.commission_rates),new Date(e.update_time))},t.prototype.toProto=function(){var e=this.commission_rates,t=this.update_time;return d.Commission.fromPartial({commissionRates:e.toProto(),updateTime:t})},t.fromProto=function(e){return new t(n.fromProto(e.commissionRates),e.updateTime)},t}(c.JSONSerializable);e.Commission=r}(p=t.Validator||(t.Validator={})),t.Validator=p},62619:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgBeginRedelegate=void 0;var i=n(70353),o=n(90111),s=n(81019),c=n(47111),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.delegator_address=t,i.validator_src_address=n,i.validator_dst_address=r,i.amount=a,i}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.delegator_address,i=r.validator_src_address,s=r.validator_dst_address,c=r.amount;return new t(a,i,s,o.Coin.fromAmino(c))},t.prototype.toAmino=function(e){var t=this;return{type:e?"staking/MsgBeginRedelegate":"cosmos-sdk/MsgBeginRedelegate",value:{delegator_address:t.delegator_address,validator_src_address:t.validator_src_address,validator_dst_address:t.validator_dst_address,amount:t.amount.toAmino()}}},t.fromData=function(e,n){var r=e.delegator_address,a=e.validator_src_address,i=e.validator_dst_address,s=e.amount;return new t(r,a,i,o.Coin.fromData(s))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.staking.v1beta1.MsgBeginRedelegate",delegator_address:t.delegator_address,validator_src_address:t.validator_src_address,validator_dst_address:t.validator_dst_address,amount:t.amount.toData()}},t.fromProto=function(e,n){return new t(e.delegatorAddress,e.validatorSrcAddress,e.validatorDstAddress,o.Coin.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this,n=t.delegator_address,r=t.validator_src_address,a=t.validator_dst_address,i=t.amount;return c.MsgBeginRedelegate.fromPartial({amount:i.toProto(),delegatorAddress:n,validatorDstAddress:a,validatorSrcAddress:r})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgBeginRedelegate",value:c.MsgBeginRedelegate.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgBeginRedelegate.decode(e.value),n)},t}(i.JSONSerializable);t.MsgBeginRedelegate=u},64187:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreateValidator=void 0;var i=n(70353),o=n(90111),s=n(46531),c=n(48606),u=n(81019),f=n(47111),d=n(92484),l=function(e){function t(t,n,r,a,i,o,s){var c=e.call(this)||this;return c.description=t,c.commission=n,c.min_self_delegation=r,c.delegator_address=a,c.validator_address=i,c.pubkey=o,c.value=s,c}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.description,i=r.commission,u=r.min_self_delegation,f=r.delegator_address,l=r.validator_address,p=r.pubkey,b=r.value;return new t(a,c.Validator.CommissionRates.fromAmino(i),new s.Int(u),f,l,d.ValConsPublicKey.fromAmino(p),o.Coin.fromAmino(b))},t.prototype.toAmino=function(e){var t=this,n=t.description,r=t.commission,a=t.min_self_delegation,i=t.delegator_address,o=t.validator_address,s=t.pubkey,c=t.value;return{type:e?"staking/MsgCreateValidator":"cosmos-sdk/MsgCreateValidator",value:{description:n,commission:r.toAmino(),min_self_delegation:a.toString(),delegator_address:i,validator_address:o,pubkey:s.toAmino(),value:c.toAmino()}}},t.fromData=function(e,n){var r=e.description,a=e.commission,i=e.min_self_delegation,u=e.delegator_address,f=e.validator_address,l=e.pubkey,p=e.value;return new t(r,c.Validator.CommissionRates.fromData(a),new s.Int(i),u,f,d.ValConsPublicKey.fromData(l),o.Coin.fromData(p))},t.prototype.toData=function(e){var t=this,n=t.description,r=t.commission,a=t.min_self_delegation,i=t.delegator_address,o=t.validator_address,s=t.pubkey,c=t.value;return{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator",description:n,commission:r.toData(),min_self_delegation:a.toString(),delegator_address:i,validator_address:o,pubkey:s.toData(),value:c.toData()}},t.fromProto=function(e,n){return new t(c.Validator.Description.fromProto(e.description),c.Validator.CommissionRates.fromProto(e.commission),new s.Int(e.minSelfDelegation),e.delegatorAddress,e.validatorAddress,d.PublicKey.fromProto(e.pubkey),o.Coin.fromProto(e.value))},t.prototype.toProto=function(e){var t=this,n=t.description,r=t.commission,a=t.min_self_delegation,i=t.delegator_address,o=t.validator_address,s=t.pubkey,c=t.value;return f.MsgCreateValidator.fromPartial({commission:r.toProto(),delegatorAddress:i,description:n.toProto(),minSelfDelegation:a.toString(),pubkey:s.packAny(),validatorAddress:o,value:c.toProto()})},t.prototype.packAny=function(e){return u.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgCreateValidator",value:f.MsgCreateValidator.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgCreateValidator.decode(e.value),n)},t}(i.JSONSerializable);t.MsgCreateValidator=l},72150:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgDelegate=void 0;var i=n(90111),o=n(70353),s=n(81019),c=n(47111),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.delegator_address=t,a.validator_address=n,a.amount=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.delegator_address,o=r.validator_address,s=r.amount;return new t(a,o,i.Coin.fromAmino(s))},t.prototype.toAmino=function(e){var t=this;return{type:e?"staking/MsgDelegate":"cosmos-sdk/MsgDelegate",value:{delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toAmino()}}},t.fromProto=function(e,n){return new t(e.delegatorAddress,e.validatorAddress,i.Coin.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this,n=t.delegator_address,r=t.validator_address,a=t.amount;return c.MsgDelegate.fromPartial({amount:a.toProto(),delegatorAddress:n,validatorAddress:r})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:c.MsgDelegate.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgDelegate.decode(e.value),n)},t.fromData=function(e,n){var r=e.delegator_address,a=e.validator_address,o=e.amount;return new t(r,a,i.Coin.fromData(o))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.staking.v1beta1.MsgDelegate",delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toData()}},t}(o.JSONSerializable);t.MsgDelegate=u},16960:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgEditValidator=void 0;var i=n(70353),o=n(46531),s=n(48606),c=n(81019),u=n(47111),f=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.description=t,i.validator_address=n,i.commission_rate=r,i.min_self_delegation=a,i}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.description,i=r.validator_address,c=r.commission_rate,u=r.min_self_delegation;return new t(s.Validator.Description.fromAmino(a),i,c?new o.Dec(c):void 0,u?new o.Int(u):void 0)},t.prototype.toAmino=function(e){var t=this,n=t.description,r=t.validator_address,a=t.commission_rate,i=t.min_self_delegation;return{type:e?"staking/MsgEditValidator":"cosmos-sdk/MsgEditValidator",value:{description:n,validator_address:r,commission_rate:a?a.toString():void 0,min_self_delegation:i?i.toString():void 0}}},t.fromProto=function(e,n){return new t(s.Validator.Description.fromProto(e.description),e.validatorAddress,""!==e.commissionRate?new o.Dec(e.commissionRate):void 0,""!==e.minSelfDelegation?new o.Int(e.minSelfDelegation):void 0)},t.prototype.toProto=function(e){var t=this,n=t.description,r=t.validator_address,a=t.commission_rate,i=t.min_self_delegation;return u.MsgEditValidator.fromPartial({description:n.toProto(),commissionRate:(null==a?void 0:a.toString())||"",minSelfDelegation:(null==i?void 0:i.toString())||"",validatorAddress:r})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgEditValidator",value:u.MsgEditValidator.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgEditValidator.decode(e.value),n)},t.fromData=function(e,n){var r=e.description,a=e.validator_address,i=e.commission_rate,c=e.min_self_delegation;return new t(s.Validator.Description.fromData(r),a,i?new o.Dec(i):void 0,c?new o.Int(c):void 0)},t.prototype.toData=function(e){var t=this,n=t.description,r=t.validator_address,a=t.commission_rate,i=t.min_self_delegation;return{"@type":"/cosmos.staking.v1beta1.MsgEditValidator",description:n,validator_address:r,commission_rate:a?a.toString():void 0,min_self_delegation:i?i.toString():void 0}},t}(i.JSONSerializable);t.MsgEditValidator=f,function(e){e.DESC_DO_NOT_MODIFY={moniker:"[do-not-modify]",website:"[do-not-modify]",identity:"[do-not-modify]",details:"[do-not-modify]",security_contact:"[do-not-modify]"}}(f=t.MsgEditValidator||(t.MsgEditValidator={})),t.MsgEditValidator=f},87924:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUndelegate=void 0;var i=n(90111),o=n(70353),s=n(81019),c=n(47111),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.delegator_address=t,a.validator_address=n,a.amount=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.delegator_address,o=r.validator_address,s=r.amount;return new t(a,o,i.Coin.fromAmino(s))},t.prototype.toAmino=function(e){var t=this;return{type:e?"staking/MsgUndelegate":"cosmos-sdk/MsgUndelegate",value:{delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toAmino()}}},t.fromProto=function(e,n){return new t(e.delegatorAddress,e.validatorAddress,i.Coin.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this,n=t.delegator_address,r=t.validator_address,a=t.amount;return c.MsgUndelegate.fromPartial({amount:a.toProto(),delegatorAddress:n,validatorAddress:r})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:c.MsgUndelegate.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgUndelegate.decode(e.value),n)},t.fromData=function(e,n){var r=e.delegator_address,a=e.validator_address,o=e.amount;return new t(r,a,i.Coin.fromData(o))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.staking.v1beta1.MsgUndelegate",delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toData()}},t}(o.JSONSerializable);t.MsgUndelegate=u},20473:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(72150),t),a(n(87924),t),a(n(62619),t),a(n(64187),t),a(n(16960),t)},72562:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PolicyConstraints=void 0;var i=n(70353),o=n(90111),s=n(46531),c=n(75511),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.cap=r,i.rate_min=new s.Dec(t),i.rate_max=new s.Dec(n),i.change_rate_max=new s.Dec(a),i}return a(t,e),t.fromAmino=function(e){var n=e.rate_min,r=e.rate_max,a=e.cap,i=e.change_rate_max;return new t(n,r,o.Coin.fromAmino(a),i)},t.prototype.toAmino=function(){var e=this,t=e.rate_min,n=e.rate_max,r=e.cap,a=e.change_rate_max;return{rate_min:t.toString(),rate_max:n.toString(),cap:r.toAmino(),change_rate_max:a.toString()}},t.fromData=function(e){var n=e.rate_min,r=e.rate_max,a=e.cap,i=e.change_rate_max;return new t(n,r,o.Coin.fromData(a),i)},t.prototype.toData=function(){var e=this,t=e.rate_min,n=e.rate_max,r=e.cap,a=e.change_rate_max;return{rate_min:t.toString(),rate_max:n.toString(),cap:r.toData(),change_rate_max:a.toString()}},t.fromProto=function(e){return new t(e.rateMax,e.rateMin,o.Coin.fromProto(e.cap),e.changeRateMax)},t.prototype.toProto=function(){var e=this,t=e.rate_min,n=e.rate_max,r=e.cap,a=e.change_rate_max;return c.PolicyConstraints.fromPartial({cap:r.toProto(),changeRateMax:a.toString(),rateMax:n.toString(),rateMin:t.toString()})},t.prototype.clamp=function(e,t){var n=new s.Dec(e),r=new s.Dec(t);r.lt(this.rate_min)?r=this.rate_min:r.gt(this.rate_max)&&(r=this.rate_max);var a=r.sub(n);return r.gt(n)?a.gt(this.change_rate_max)&&(r=n.add(this.change_rate_max)):a.abs().gt(this.change_rate_max)&&(r=n.sub(this.change_rate_max)),r},t}(i.JSONSerializable);t.PolicyConstraints=u},55320:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Plan=void 0;var o=n(70353),s=n(34962),c=i(n(12620)),u=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.name=t,o.time=n,o.height=r,o.info=a,o.upgraded_client_state=i,o}return a(t,e),t.fromAmino=function(e){var n=e.name,r=e.time,a=e.height,i=e.info,o=e.upgraded_client_state;return new t(n,r?new Date(r):void 0,a,i,o)},t.prototype.toAmino=function(){var e=this,t=e.name,n=e.time,r=e.height,a=e.info,i=e.upgraded_client_state;return{name:t,time:n?n.toISOString().replace(/\.000Z$/,"Z"):void 0,height:r,info:a,upgraded_client_state:i}},t.fromData=function(e){var n=e.name,r=e.time,a=e.height,i=e.info,o=e.upgraded_client_state;return new t(n,r?new Date(r):void 0,a,i,o)},t.prototype.toData=function(){var e=this,t=e.name,n=e.time,r=e.height,a=e.info,i=e.upgraded_client_state;return{name:t,time:n?n.toISOString().replace(/\.000Z$/,"Z"):void 0,height:r,info:a,upgraded_client_state:i}},t.fromProto=function(e){return new t(e.name,e.time,e.height.toString(),e.info,e.upgradedClientState)},t.prototype.toProto=function(){var e=this,t=e.name,n=e.time,r=e.height,a=e.info,i=e.upgraded_client_state;return s.Plan.fromPartial({name:t,time:n,height:c.default.fromString(r),info:a,upgradedClientState:i})},t}(o.JSONSerializable);t.Plan=u},97200:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(55320),t),a(n(43731),t)},65552:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CancelSoftwareUpgradeProposal=void 0;var i=n(70353),o=n(30189),s=n(52879),c=function(e){function t(t,n){var r=e.call(this)||this;return r.title=t,r.description=n,r}return a(t,e),t.fromAmino=function(e,n){var r=e.value;return new t(r.title,r.description)},t.prototype.toAmino=function(e){return{type:e?"upgrade/CancelSoftwareUpgradeProposal":"cosmos-sdk/CancelSoftwareUpgradeProposal",value:{title:this.title,description:this.description}}},t.fromData=function(e,n){return new t(e.title,e.description)},t.prototype.toData=function(e){return{"@type":"/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",title:this.title,description:this.description}},t.fromProto=function(e,n){return new t(e.title,e.description)},t.prototype.toProto=function(e){var t=this.title,n=this.description;return s.CancelSoftwareUpgradeProposal.fromPartial({title:t,description:n})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",value:s.CancelSoftwareUpgradeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.CancelSoftwareUpgradeProposal.decode(e.value),n)},t}(i.JSONSerializable);t.CancelSoftwareUpgradeProposal=c},7182:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SoftwareUpgradeProposal=void 0;var i=n(70353),o=n(30189),s=n(52879),c=n(55320),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.plan=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.title,i=r.description,o=r.plan;return new t(a,i,o?c.Plan.fromAmino(o):void 0)},t.prototype.toAmino=function(e){var t=this,n=t.title,r=t.description,a=t.plan;return{type:e?"upgrade/SoftwareUpgradeProposal":"cosmos-sdk/SoftwareUpgradeProposal",value:{title:n,description:r,plan:a?a.toAmino():void 0}}},t.fromData=function(e,n){var r=e.title,a=e.description,i=e.plan;return new t(r,a,i?c.Plan.fromData(i):void 0)},t.prototype.toData=function(e){var t=this,n=t.title,r=t.description,a=t.plan;return{"@type":"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",title:n,description:r,plan:a?a.toData():void 0}},t.fromProto=function(e,n){return new t(e.title,e.description,e.plan?c.Plan.fromProto(e.plan):void 0)},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,a=t.plan;return s.SoftwareUpgradeProposal.fromPartial({title:n,description:r,plan:a?a.toProto():void 0})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",value:s.SoftwareUpgradeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.SoftwareUpgradeProposal.decode(e.value),n)},t}(i.JSONSerializable);t.SoftwareUpgradeProposal=u},43731:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(7182),t),a(n(65552),t)},19013:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Period=void 0;var c=n(35860),u=n(25101),f=n(70353),d=s(n(12620)),l=function(e){function t(t,n){var r=e.call(this)||this;return r.length=t,r.amount=new c.Coins(n),r}return a(t,e),t.fromAmino=function(e,n){var r=e.length,a=e.amount;return new t(Number.parseInt(r),c.Coins.fromAmino(a))},t.prototype.toAmino=function(e){var t=this.length,n=this.amount;return{length:t.toFixed(),amount:n.toAmino()}},t.fromData=function(e,n){var r=e.length,a=e.amount;return new t(Number.parseInt(r),c.Coins.fromData(a))},t.prototype.toData=function(e){var t=this.length,n=this.amount;return{length:t.toFixed(),amount:n.toData()}},t.fromProto=function(e,n){return new t(e.length.toNumber(),c.Coins.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this.length,n=this.amount;return u.Period.fromPartial({length:d.fromNumber(t),amount:n.toProto()})},t}(f.JSONSerializable);t.Period=l},21853:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(19013),t),a(n(79189),t)},50448:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreatePeriodicVestingAccount=void 0;var o=n(19013),s=n(70353),c=n(81019),u=n(71967),f=i(n(12620)),d=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.from_address=t,i.to_address=n,i.start_time=r,i.vesting_periods=a,i}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.from_address,i=r.to_address,s=r.start_time,c=r.vesting_periods;return new t(a,i,Number.parseInt(s),c.map((function(e){return o.Period.fromAmino(e,n)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.start_time,i=t.vesting_periods;return{type:"cosmos-sdk/MsgCreatePeriodicVestingAccount",value:{from_address:n,to_address:r,start_time:a.toFixed(),vesting_periods:i.map((function(t){return t.toAmino(e)}))}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.from_address,a=e.to_address,i=e.start_time,s=e.vesting_periods;return new t(r,a,Number.parseInt(i),s.map((function(e){return o.Period.fromData(e,n)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.start_time,i=t.vesting_periods;return{"@type":"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",from_address:n,to_address:r,start_time:a.toFixed(),vesting_periods:i.map((function(t){return t.toData(e)}))}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.fromAddress,e.toAddress,e.startTime.toNumber(),e.vestingPeriods.map((function(e){return o.Period.fromProto(e,n)})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.start_time,i=t.vesting_periods;return u.MsgCreatePeriodicVestingAccount.fromPartial({fromAddress:n,toAddress:r,startTime:f.default.fromNumber(a),vestingPeriods:i.map((function(t){return t.toProto(e)}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",value:u.MsgCreatePeriodicVestingAccount.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(u.MsgCreatePeriodicVestingAccount.decode(e.value),n)},t}(s.JSONSerializable);t.MsgCreatePeriodicVestingAccount=d},27493:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreateVestingAccount=void 0;var o=n(35860),s=n(70353),c=n(81019),u=n(71967),f=i(n(12620)),d=function(e){function t(t,n,r,a,i){var s=e.call(this)||this;return s.from_address=t,s.to_address=n,s.end_time=a,s.delayed=i,s.amount=new o.Coins(r),s}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.from_address,i=r.to_address,s=r.amount,c=r.end_time,u=r.delayed;return new t(a,i,o.Coins.fromAmino(s),Number.parseInt(c),u)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.amount,i=t.end_time,o=t.delayed;return{type:"cosmos-sdk/MsgCreateVestingAccount",value:{from_address:n,to_address:r,amount:a.toAmino(),end_time:i.toFixed(),delayed:o}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.from_address,a=e.to_address,i=e.amount,s=e.end_time,c=e.delayed;return new t(r,a,o.Coins.fromData(i),Number.parseInt(s),c)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.amount,i=t.end_time,o=t.delayed;return{"@type":"/cosmos.vesting.v1beta1.MsgCreateVestingAccount",from_address:n,to_address:r,amount:a.toData(),end_time:i.toFixed(),delayed:o}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.fromAddress,e.toAddress,o.Coins.fromProto(e.amount),e.endTime.toNumber(),e.delayed)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.amount,i=t.end_time,o=t.delayed;return u.MsgCreateVestingAccount.fromPartial({fromAddress:n,toAddress:r,amount:a.toProto(),endTime:f.default.fromNumber(i),delayed:o})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/cosmos.vesting.v1beta1.MsgCreateVestingAccount",value:u.MsgCreateVestingAccount.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(u.MsgCreateVestingAccount.decode(e.value),n)},t}(s.JSONSerializable);t.MsgCreateVestingAccount=d},65637:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgDonateAllVestingTokens=void 0;var i=n(70353),o=n(81019),s=n(71967),c=function(e){function t(t){var n=e.call(this)||this;return n.from_address=t,n}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.value.from_address)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");return{type:"cosmos-sdk/MsgDonateAllVestingTokens",value:{from_address:this.from_address}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.from_address)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");return{"@type":"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens",from_address:this.from_address}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.fromAddress)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");return s.MsgDonateAllVestingTokens.fromPartial({fromAddress:this.from_address})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens",value:s.MsgDonateAllVestingTokens.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.MsgDonateAllVestingTokens.decode(e.value),n)},t}(i.JSONSerializable);t.MsgDonateAllVestingTokens=c},79189:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(50448),t),a(n(27493),t),a(n(65637),t)},64394:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AbsoluteTxPosition=void 0;var c=n(10763),u=n(70353),f=s(n(12620)),d=function(e){function t(t,n){var r=e.call(this)||this;return r.block_height=t,r.tx_index=n,r}return a(t,e),t.fromAmino=function(e){return new t(Number.parseInt(e.block_height),Number.parseInt(e.tx_index))},t.prototype.toAmino=function(){return{block_height:this.block_height.toFixed(),tx_index:this.tx_index.toFixed()}},t.fromData=function(e){return new t(Number.parseInt(e.block_height),Number.parseInt(e.tx_index))},t.prototype.toData=function(){return{block_height:this.block_height.toFixed(),tx_index:this.tx_index.toFixed()}},t.fromProto=function(e){return new t(e.blockHeight.toNumber(),e.txIndex.toNumber())},t.prototype.toProto=function(){return c.AbsoluteTxPosition.fromPartial({blockHeight:f.fromNumber(this.block_height),txIndex:f.fromNumber(this.tx_index)})},t}(u.JSONSerializable);t.AbsoluteTxPosition=d},1625:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessConfig=t.AccessType=void 0;var i=n(10763);Object.defineProperty(t,"AccessType",{enumerable:!0,get:function(){return i.AccessType}});var o=n(70353),s=n(50121),c=function(e){function t(t,n){var r=e.call(this)||this;return r.permission=t,r.address=n,r}return a(t,e),t.fromAmino=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.permission),e.address)},t.prototype.toAmino=function(){return{permission:(0,i.accessTypeToJSON)(this.permission),address:this.address}},t.fromData=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.permission),e.address)},t.prototype.toData=function(){return{permission:(0,i.accessTypeToJSON)(this.permission),address:this.address}},t.fromProto=function(e){return new t(e.permission,e.address)},t.prototype.toProto=function(){return i.AccessConfig.fromPartial({permission:this.permission,address:this.address})},t}(o.JSONSerializable);t.AccessConfig=c},91121:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AccessConfigUpdate=void 0;var c=n(15679),u=n(70353),f=n(1625),d=s(n(12620)),l=function(e){function t(t,n){var r=e.call(this)||this;return r.code_id=t,r.instantiate_permission=n,r}return a(t,e),t.fromAmino=function(e){return new t(Number.parseInt(e.code_id),e.instantiate_permission?f.AccessConfig.fromAmino(e.instantiate_permission):void 0)},t.prototype.toAmino=function(){var e;return{code_id:this.code_id.toFixed(),instantiate_permission:null===(e=this.instantiate_permission)||void 0===e?void 0:e.toAmino()}},t.fromData=function(e){return new t(Number.parseInt(e.code_id),e.instantiate_permission?f.AccessConfig.fromData(e.instantiate_permission):void 0)},t.prototype.toData=function(){var e;return{code_id:this.code_id.toFixed(),instantiate_permission:null===(e=this.instantiate_permission)||void 0===e?void 0:e.toData()}},t.fromProto=function(e){return new t(e.codeId.toNumber(),e.instantiatePermission?f.AccessConfig.fromProto(e.instantiatePermission):void 0)},t.prototype.toProto=function(){var e;return c.AccessConfigUpdate.fromPartial({codeId:d.fromNumber(this.code_id),instantiatePermission:null===(e=this.instantiate_permission)||void 0===e?void 0:e.toProto()})},t}(u.JSONSerializable);t.AccessConfigUpdate=l},89041:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessTypeParam=t.AccessType=void 0;var i=n(10763);Object.defineProperty(t,"AccessType",{enumerable:!0,get:function(){return i.AccessType}});var o=n(70353),s=n(50121),c=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return a(t,e),t.fromAmino=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.value))},t.prototype.toAmino=function(){return{value:(0,i.accessTypeToJSON)(this.value)}},t.fromData=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.value))},t.prototype.toData=function(){return{value:(0,i.accessTypeToJSON)(this.value)}},t.fromProto=function(e){return new t(e.value)},t.prototype.toProto=function(){return i.AccessTypeParam.fromPartial({value:this.value})},t}(o.JSONSerializable);t.AccessTypeParam=c},85139:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryEntry=void 0;var u=n(10763),f=n(70353),d=c(n(12620)),l=n(64394),p=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.operation=t,i.code_id=n,i.updated=r,i.msg=a,i}return i(t,e),t.fromAmino=function(e){return new t((0,u.contractCodeHistoryOperationTypeFromJSON)(e.operation),Number.parseInt(e.code_id),e.updated?l.AbsoluteTxPosition.fromAmino(e.updated):void 0,e.msg)},t.prototype.toAmino=function(){var e;return{operation:(0,u.contractCodeHistoryOperationTypeToJSON)(this.operation),code_id:this.code_id.toFixed(),updated:null===(e=this.updated)||void 0===e?void 0:e.toAmino(),msg:this.msg}},t.fromData=function(e){return new t((0,u.contractCodeHistoryOperationTypeFromJSON)(e.operation),Number.parseInt(e.code_id),e.updated?l.AbsoluteTxPosition.fromData(e.updated):void 0,e.msg)},t.prototype.toData=function(){var e;return{operation:(0,u.contractCodeHistoryOperationTypeToJSON)(this.operation),code_id:this.code_id.toFixed(),updated:null===(e=this.updated)||void 0===e?void 0:e.toData(),msg:this.msg}},t.fromProto=function(e){return new t(e.operation,e.codeId.toNumber(),e.updated?l.AbsoluteTxPosition.fromProto(e.updated):void 0,JSON.parse(a.from(e.msg).toString("utf-8")))},t.prototype.toProto=function(){var e;return u.ContractCodeHistoryEntry.fromPartial({operation:this.operation,codeId:d.fromNumber(this.code_id),updated:null===(e=this.updated)||void 0===e?void 0:e.toProto(),msg:a.from(JSON.stringify((0,f.removeNull)(this.msg)),"utf-8")})},t}(f.JSONSerializable);t.HistoryEntry=p},17328:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(89041),t),a(n(1625),t)},57977:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClearContractAdmin=void 0;var i=n(70353),o=n(81019),s=n(15398),c=n(2314),u=function(e){function t(t,n){var r=e.call(this)||this;return r.admin=t,r.contract=n,r}return a(t,e),t.fromAmino=function(e,n){if(n){var r=e.value;return new t(r.admin,r.contract)}var a=e.value;return new t(a.sender,a.contract)},t.prototype.toAmino=function(e){var t=this.admin,n=this.contract;return e?{type:"wasm/MsgClearContractAdmin",value:{admin:t,contract:n}}:{type:"wasm/MsgClearAdmin",value:{sender:t,contract:n}}},t.fromProto=function(e,n){if(n){var r=e;return new t(r.admin,r.contract)}var a=e;return new t(a.sender,a.contract)},t.prototype.toProto=function(e){return e?s.MsgClearContractAdmin.fromPartial({admin:this.admin,contract:this.contract}):c.MsgClearAdmin.fromPartial({sender:this.admin,contract:this.contract})},t.prototype.packAny=function(e){return e?o.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgClearContractAdmin",value:s.MsgClearContractAdmin.encode(this.toProto(e)).finish()}):o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgClearAdmin",value:c.MsgClearAdmin.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(s.MsgClearContractAdmin.decode(e.value),n):t.fromProto(c.MsgClearAdmin.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e;return new t(r.admin,r.contract)}var a=e;return new t(a.sender,a.contract)},t.prototype.toData=function(e){return e?{"@type":"/terra.wasm.v1beta1.MsgClearContractAdmin",admin:this.admin,contract:this.contract}:{"@type":"/cosmwasm.wasm.v1.MsgClearAdmin",sender:this.admin,contract:this.contract}},t}(i.JSONSerializable);t.MsgClearContractAdmin=u},93484:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgExecuteContract=void 0;var o=n(70353),s=n(35860),c=n(81019),u=n(15398),f=n(2314),d=function(e){function t(t,n,r,a){void 0===a&&(a={});var i=e.call(this)||this;return i.sender=t,i.contract=n,i.execute_msg=r,i.coins=new s.Coins(a),i}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value,a=r.sender,i=r.contract,o=r.execute_msg,c=r.coins;return new t(a,i,o,s.Coins.fromAmino(c))}var u=e.value,f=(a=u.sender,i=u.contract,u.msg),d=u.funds;return new t(a,i,f,s.Coins.fromAmino(d))},t.prototype.toAmino=function(e){var t=this,n=t.sender,r=t.contract,a=t.execute_msg,i=t.coins;return e?{type:"wasm/MsgExecuteContract",value:{sender:n,contract:r,execute_msg:(0,o.removeNull)(a),coins:i.toAmino()}}:{type:"wasm/MsgExecuteContract",value:{sender:n,contract:r,msg:(0,o.removeNull)(a),funds:i.toAmino()}}},t.fromProto=function(e,n){var r;return n?new t((r=e).sender,r.contract,JSON.parse(a.from(r.executeMsg).toString("utf-8")),s.Coins.fromProto(r.coins)):new t((r=e).sender,r.contract,JSON.parse(a.from(r.msg).toString("utf-8")),s.Coins.fromProto(r.funds))},t.prototype.toProto=function(e){var t=this,n=t.sender,r=t.contract,i=t.execute_msg,s=t.coins;return e?u.MsgExecuteContract.fromPartial({coins:s.toProto(),contract:r,sender:n,executeMsg:a.from(JSON.stringify((0,o.removeNull)(i)),"utf-8")}):f.MsgExecuteContract.fromPartial({funds:s.toProto(),contract:r,sender:n,msg:a.from(JSON.stringify((0,o.removeNull)(i)),"utf-8")})},t.prototype.packAny=function(e){return e?c.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgExecuteContract",value:u.MsgExecuteContract.encode(this.toProto(e)).finish()}):c.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgExecuteContract",value:f.MsgExecuteContract.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(n?u.MsgExecuteContract.decode(e.value):f.MsgExecuteContract.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e,a=r.sender,i=r.contract,o=r.execute_msg,c=r.coins;return new t(a,i,o,s.Coins.fromData(c))}var u=e,f=(a=u.sender,i=u.contract,u.msg),d=u.funds;return new t(a,i,f,s.Coins.fromData(d))},t.prototype.toData=function(e){var t=this,n=t.sender,r=t.contract,a=t.execute_msg,i=t.coins;return e?{"@type":"/terra.wasm.v1beta1.MsgExecuteContract",sender:n,contract:r,execute_msg:a,coins:i.toData()}:{"@type":"/cosmwasm.wasm.v1.MsgExecuteContract",sender:n,contract:r,msg:a,funds:i.toData()}},t}(o.JSONSerializable);t.MsgExecuteContract=d},58802:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgInstantiateContract=void 0;var u=n(70353),f=n(35860),d=n(81019),l=n(15398),p=n(2314),b=c(n(12620)),h=function(e){function t(t,n,r,a,i,o){void 0===i&&(i={});var s=e.call(this)||this;return s.sender=t,s.admin=n,s.code_id=r,s.init_msg=a,s.label=o,s.init_coins=new f.Coins(i),s}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value,a=r.sender,i=r.admin,o=r.code_id,s=r.init_msg,c=r.init_coins;return new t(a,i,Number.parseInt(o),s,f.Coins.fromAmino(c))}var u=e.value,d=(a=u.sender,i=u.admin,o=u.code_id,u.msg),l=u.funds,p=u.label;return new t(a,i,Number.parseInt(o),d,f.Coins.fromAmino(l),p)},t.prototype.toAmino=function(e){var t=this,n=t.sender,r=t.admin,a=t.code_id,i=t.init_msg,o=t.init_coins,s=t.label;return e?{type:"wasm/MsgInstantiateContract",value:{sender:n,admin:r,code_id:a.toFixed(),init_msg:(0,u.removeNull)(i),init_coins:o.toAmino()}}:{type:"wasm/MsgInstantiateContract",value:{sender:n,admin:r,code_id:a.toFixed(),label:s,msg:(0,u.removeNull)(i),funds:o.toAmino()}}},t.fromProto=function(e,n){var r;return n?new t((r=e).sender,""!==r.admin?r.admin:void 0,r.codeId.toNumber(),JSON.parse(a.from(r.initMsg).toString("utf-8")),f.Coins.fromProto(r.initCoins)):new t((r=e).sender,""!==r.admin?r.admin:void 0,r.codeId.toNumber(),JSON.parse(a.from(r.msg).toString("utf-8")),f.Coins.fromProto(r.funds),""!==r.label?r.label:void 0)},t.prototype.toProto=function(e){var t=this,n=t.sender,r=t.admin,i=t.code_id,o=t.init_msg,s=t.init_coins,c=t.label;return e?l.MsgInstantiateContract.fromPartial({admin:r,codeId:b.fromNumber(i),initCoins:s.toProto(),initMsg:a.from(JSON.stringify(o),"utf-8"),sender:n}):p.MsgInstantiateContract.fromPartial({admin:r,codeId:b.fromNumber(i),funds:s.toProto(),msg:a.from(JSON.stringify(o),"utf-8"),sender:n,label:c})},t.prototype.packAny=function(e){return e?d.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgInstantiateContract",value:l.MsgInstantiateContract.encode(this.toProto(e)).finish()}):d.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract",value:p.MsgInstantiateContract.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(l.MsgInstantiateContract.decode(e.value),n):t.fromProto(p.MsgInstantiateContract.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e,a=r.sender,i=r.admin,o=r.code_id,s=r.init_msg,c=r.init_coins;return new t(a,""!==i?i:void 0,Number.parseInt(o),s,f.Coins.fromData(c))}var u=e,d=(a=u.sender,i=u.admin,o=u.code_id,u.label),l=u.msg,p=u.funds;return new t(a,""!==i?i:void 0,Number.parseInt(o),l,f.Coins.fromData(p),d)},t.prototype.toData=function(e){var t=this,n=t.sender,r=t.admin,a=t.code_id,i=t.label,o=t.init_msg,s=t.init_coins;return e?{"@type":"/terra.wasm.v1beta1.MsgInstantiateContract",sender:n,admin:r||"",code_id:a.toFixed(),init_msg:(0,u.removeNull)(o),init_coins:s.toData()}:{"@type":"/cosmwasm.wasm.v1.MsgInstantiateContract",sender:n,admin:r||"",code_id:a.toFixed(),label:i,msg:(0,u.removeNull)(o),funds:s.toData()}},t}(u.JSONSerializable);t.MsgInstantiateContract=h},80818:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgMigrateCode=void 0;var u=n(70353),f=n(81019),d=n(15398),l=c(n(12620)),p=function(e){function t(t,n,r){var a=e.call(this)||this;return a.sender=t,a.code_id=n,a.wasm_byte_code=r,a}return i(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.sender,i=r.code_id,o=r.wasm_byte_code;return new t(a,Number.parseInt(i),o)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.sender,r=t.code_id,a=t.wasm_byte_code;return{type:"wasm/MsgMigrateCode",value:{sender:n,code_id:r.toFixed(),wasm_byte_code:a}}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.sender,e.codeId.toNumber(),a.from(e.wasmByteCode).toString("base64"))},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.sender,r=t.code_id,i=t.wasm_byte_code;return d.MsgMigrateCode.fromPartial({codeId:l.fromNumber(r),sender:n,wasmByteCode:a.from(i,"base64")})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return f.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgMigrateCode",value:d.MsgMigrateCode.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(d.MsgMigrateCode.decode(e.value),n)},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.sender,a=e.code_id,i=e.wasm_byte_code;return new t(r,Number.parseInt(a),i)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.sender,r=t.code_id,a=t.wasm_byte_code;return{"@type":"/terra.wasm.v1beta1.MsgMigrateCode",sender:n,code_id:r.toFixed(),wasm_byte_code:a}},t}(u.JSONSerializable);t.MsgMigrateCode=p},12178:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgMigrateContract=void 0;var u=n(70353),f=n(81019),d=n(15398),l=n(2314),p=c(n(12620)),b=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.admin=t,i.contract=n,i.new_code_id=r,i.migrate_msg=a,i}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value,a=r.admin,i=r.contract,o=r.new_code_id,s=r.migrate_msg;return new t(a,i,Number.parseInt(o),s)}var c=e.value,u=c.sender,f=(i=c.contract,c.code_id),d=c.msg;return new t(u,i,Number.parseInt(f),d)},t.prototype.toAmino=function(e){if(e){var t=this,n=t.admin,r=t.contract,a=t.new_code_id,i=t.migrate_msg;return{type:"wasm/MsgMigrateContract",value:{admin:n,contract:r,new_code_id:a.toFixed(),migrate_msg:(0,u.removeNull)(i)}}}var o=this;return n=o.admin,r=o.contract,a=o.new_code_id,i=o.migrate_msg,{type:"wasm/MsgMigrateContract",value:{sender:n,contract:r,code_id:a.toFixed(),msg:(0,u.removeNull)(i)}}},t.fromProto=function(e,n){var r;return n?new t((r=e).admin,r.contract,r.newCodeId.toNumber(),JSON.parse(a.from(r.migrateMsg).toString("utf-8"))):new t((r=e).sender,r.contract,r.codeId.toNumber(),JSON.parse(a.from(r.msg).toString("utf-8")))},t.prototype.toProto=function(e){var t=this,n=t.admin,r=t.contract,i=t.new_code_id,o=t.migrate_msg;return e?d.MsgMigrateContract.fromPartial({admin:n,contract:r,newCodeId:p.fromNumber(i),migrateMsg:a.from(JSON.stringify(o),"utf-8")}):l.MsgMigrateContract.fromPartial({sender:n,contract:r,codeId:p.fromNumber(i),msg:a.from(JSON.stringify(o),"utf-8")})},t.prototype.packAny=function(e){return e?f.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgMigrateContract",value:d.MsgMigrateContract.encode(this.toProto(e)).finish()}):f.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgMigrateContract",value:l.MsgMigrateContract.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(n?d.MsgMigrateContract.decode(e.value):l.MsgMigrateContract.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e,a=r.admin,i=r.contract,o=r.new_code_id,s=r.migrate_msg;return new t(a,i,Number.parseInt(o),s)}var c=e,u=c.sender,f=(i=c.contract,c.code_id),d=c.msg;return new t(u,i,Number.parseInt(f),d)},t.prototype.toData=function(e){var t=this,n=t.admin,r=t.contract,a=t.new_code_id,i=t.migrate_msg;return e?{"@type":"/terra.wasm.v1beta1.MsgMigrateContract",admin:n,contract:r,new_code_id:a.toFixed(),migrate_msg:(0,u.removeNull)(i)}:{"@type":"/cosmwasm.wasm.v1.MsgMigrateContract",sender:n,contract:r,code_id:a.toFixed(),msg:(0,u.removeNull)(i)}},t}(u.JSONSerializable);t.MsgMigrateContract=b},22174:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgStoreCode=void 0;var o=n(70353),s=n(81019),c=n(15398),u=n(2314),f=n(1625),d=function(e){function t(t,n,r){var a=e.call(this)||this;return a.sender=t,a.wasm_byte_code=n,a.instantiate_permission=r,a}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value;return new t(i=r.sender,o=r.wasm_byte_code)}var a=e.value,i=a.sender,o=a.wasm_byte_code,s=a.instantiate_permission;return new t(i,o,s?f.AccessConfig.fromAmino(s):void 0)},t.prototype.toAmino=function(e){var t=this,n=t.sender,r=t.wasm_byte_code,a=t.instantiate_permission;return e?{type:"wasm/MsgStoreCode",value:{sender:n,wasm_byte_code:r}}:{type:"wasm/MsgStoreCode",value:{sender:n,wasm_byte_code:r,instantiate_permission:null==a?void 0:a.toAmino()}}},t.fromProto=function(e,n){if(n)return new t(e.sender,a.from(e.wasmByteCode).toString("base64"));var r=e;return new t(r.sender,a.from(r.wasmByteCode).toString("base64"),r.instantiatePermission?f.AccessConfig.fromProto(r.instantiatePermission):void 0)},t.prototype.toProto=function(e){var t=this,n=t.sender,r=t.wasm_byte_code,i=t.instantiate_permission;return e?c.MsgStoreCode.fromPartial({sender:n,wasmByteCode:a.from(r,"base64")}):u.MsgStoreCode.fromPartial({sender:n,wasmByteCode:a.from(r,"base64"),instantiatePermission:null==i?void 0:i.toProto()})},t.prototype.packAny=function(e){var t;return t=e?"/terra.wasm.v1beta1.MsgStoreCode":"/cosmwasm.wasm.v1.MsgStoreCode",s.Any.fromPartial({typeUrl:t,value:e?c.MsgStoreCode.encode(this.toProto(e)).finish():u.MsgStoreCode.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(c.MsgStoreCode.decode(e.value),n):t.fromProto(u.MsgStoreCode.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e;return new t(i=r.sender,o=r.wasm_byte_code)}var a=e,i=a.sender,o=a.wasm_byte_code,s=a.instantiate_permission;return new t(i,o,s?f.AccessConfig.fromData(s):void 0)},t.prototype.toData=function(e){var t=this,n=t.sender,r=t.wasm_byte_code,a=t.instantiate_permission;return e?{"@type":"/terra.wasm.v1beta1.MsgStoreCode",sender:n,wasm_byte_code:r}:{"@type":"/cosmwasm.wasm.v1.MsgStoreCode",sender:n,wasm_byte_code:r,instantiate_permission:null==a?void 0:a.toData()}},t}(o.JSONSerializable);t.MsgStoreCode=d},74384:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUpdateContractAdmin=void 0;var i=n(70353),o=n(81019),s=n(15398),c=n(2314),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.admin=t,a.new_admin=n,a.contract=r,a}return a(t,e),t.fromAmino=function(e,n){if(n){var r=e.value;return new t(r.admin,r.new_admin,r.contract)}var a=e.value;return new t(a.sender,a.new_admin,a.contract)},t.prototype.toAmino=function(e){var t=this,n=t.admin,r=t.new_admin,a=t.contract;return e?{type:"wasm/MsgUpdateContractAdmin",value:{admin:n,new_admin:r,contract:a}}:{type:"wasm/MsgUpdateAdmin",value:{sender:n,new_admin:r,contract:a}}},t.fromProto=function(e,n){var r;return new t(n?(r=e).admin:(r=e).sender,r.newAdmin,r.contract)},t.prototype.toProto=function(e){var t=this,n=t.admin,r=t.new_admin,a=t.contract;return e?s.MsgUpdateContractAdmin.fromPartial({admin:n,contract:a,newAdmin:r}):c.MsgUpdateAdmin.fromPartial({sender:n,contract:a,newAdmin:r})},t.prototype.packAny=function(e){return e?o.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgUpdateContractAdmin",value:s.MsgUpdateContractAdmin.encode(this.toProto(e)).finish()}):o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgUpdateAdmin",value:c.MsgUpdateAdmin.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(s.MsgUpdateContractAdmin.decode(e.value),n):t.fromProto(c.MsgUpdateAdmin.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e;return new t(r.admin,r.new_admin,r.contract)}var a=e;return new t(a.sender,a.new_admin,a.contract)},t.prototype.toData=function(e){var t=this,n=t.admin,r=t.new_admin,a=t.contract;return e?{"@type":"/terra.wasm.v1beta1.MsgUpdateContractAdmin",admin:n,new_admin:r,contract:a}:{"@type":"/cosmwasm.wasm.v1.MsgUpdateAdmin",sender:n,new_admin:r,contract:a}},t}(i.JSONSerializable);t.MsgUpdateContractAdmin=u},39869:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(22174),t),a(n(80818),t),a(n(58802),t),a(n(93484),t),a(n(12178),t),a(n(74384),t),a(n(57977),t)},7581:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClearAdminProposal=void 0;var i=n(70353),o=n(81019),s=n(15679),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.contract=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.contract)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/ClearAdminProposal",value:{title:t.title,description:t.description,contract:t.contract}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract;return s.ClearAdminProposal.fromPartial({title:n,description:r,contract:a})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.ClearAdminProposal",value:s.ClearAdminProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.ClearAdminProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.contract)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.ClearAdminProposal",title:t.title,description:t.description,contract:t.contract}},t}(i.JSONSerializable);t.ClearAdminProposal=c},98953:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExecuteContractProposal=void 0;var o=n(70353),s=n(35860),c=n(81019),u=n(15679),f=function(e){function t(t,n,r,a,i,o){void 0===o&&(o={});var c=e.call(this)||this;return c.title=t,c.description=n,c.run_as=r,c.contract=a,c.execute_msg=i,c.coins=new s.Coins(o),c}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.run_as,c=r.contract,u=r.msg,f=r.funds;return new t(a,i,o,c,u,s.Coins.fromAmino(f))},t.prototype.toAmino=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.contract,s=t.execute_msg,c=t.coins;if(e)throw new Error("Not supported for the network");return{type:"wasm/ExecuteContractProposal",value:{title:n,description:r,run_as:a,contract:i,msg:(0,o.removeNull)(s),funds:c.toAmino()}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.runAs,e.contract,JSON.parse(a.from(e.msg).toString("utf-8")),s.Coins.fromProto(e.funds))},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,i=t.run_as,s=t.contract,c=t.execute_msg,f=t.coins;if(e)throw new Error("Not supported for the network");return u.ExecuteContractProposal.fromPartial({title:n,description:r,funds:f.toProto(),contract:s,runAs:i,msg:a.from(JSON.stringify((0,o.removeNull)(c)),"utf-8")})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.ExecuteContractProposal",value:u.ExecuteContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.ExecuteContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e,a=r.title,i=r.description,o=r.run_as,c=r.contract,u=r.msg,f=r.funds;return new t(a,i,o,c,u,s.Coins.fromData(f))},t.prototype.toData=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.contract,o=t.execute_msg,s=t.coins;if(e)throw new Error("Not supported for the network");return{"@type":"/cosmwasm.wasm.v1.ExecuteContractProposal",title:n,description:r,run_as:a,contract:i,msg:o,funds:s.toData()}},t}(o.JSONSerializable);t.ExecuteContractProposal=f},59948:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiateContractProposal=void 0;var u=n(70353),f=n(35860),d=n(81019),l=n(15679),p=c(n(12620)),b=function(e){function t(t,n,r,a,i,o,s,c){void 0===s&&(s={});var u=e.call(this)||this;return u.title=t,u.description=n,u.run_as=r,u.admin=a,u.code_id=i,u.init_msg=o,u.label=c,u.init_coins=new f.Coins(s),u}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.run_as,s=r.admin,c=r.code_id,u=r.msg,d=r.funds,l=r.label;return new t(a,i,o,s,Number.parseInt(c),u,f.Coins.fromAmino(d),l)},t.prototype.toAmino=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.admin,o=t.code_id,s=t.init_msg,c=t.init_coins,f=t.label;if(e)throw new Error("Not supported for the network");return{type:"wasm/InstantiateContractProposal",value:{title:n,description:r,run_as:a,admin:i,code_id:o.toFixed(),label:f,msg:(0,u.removeNull)(s),funds:c.toAmino()}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.runAs,""!==e.admin?e.admin:void 0,e.codeId.toNumber(),JSON.parse(a.from(e.msg).toString("utf-8")),f.Coins.fromProto(e.funds),e.label)},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,i=t.run_as,o=t.admin,s=t.code_id,c=t.init_msg,u=t.init_coins,f=t.label;if(e)throw new Error("Not supported for the network");return l.InstantiateContractProposal.fromPartial({title:n,description:r,runAs:i,admin:o,codeId:p.fromNumber(s),funds:u.toProto(),msg:a.from(JSON.stringify(c),"utf-8"),label:f})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return d.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.InstantiateContractProposal",value:l.InstantiateContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(l.InstantiateContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e,a=r.title,i=r.description,o=r.run_as,s=r.admin,c=r.code_id,u=r.label,d=r.msg,l=r.funds;return new t(a,i,o,""!==s?s:void 0,Number.parseInt(c),d,f.Coins.fromData(l),u)},t.prototype.toData=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.admin,o=t.code_id,s=t.label,c=t.init_msg,f=t.init_coins;if(e)throw new Error("Not supported for the network");return{"@type":"/cosmwasm.wasm.v1.InstantiateContractProposal",title:n,description:r,run_as:a,admin:i||"",code_id:o.toFixed(),label:s,msg:(0,u.removeNull)(c),funds:f.toData()}},t}(u.JSONSerializable);t.InstantiateContractProposal=b},63325:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateContractProposal=void 0;var u=n(70353),f=n(81019),d=n(15679),l=c(n(12620)),p=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.title=t,o.description=n,o.contract=r,o.new_code_id=a,o.migrate_msg=i,o}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.contract,s=r.code_id,c=r.msg;return new t(a,i,o,Number.parseInt(s),c)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.new_code_id,o=t.migrate_msg;return{type:"wasm/MigrateContractProposal",value:{title:n,description:r,contract:a,code_id:i.toFixed(),msg:(0,u.removeNull)(o)}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract,e.codeId.toNumber(),JSON.parse(a.from(e.msg).toString("utf-8")))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,i=t.contract,o=t.new_code_id,s=t.migrate_msg;return d.MigrateContractProposal.fromPartial({title:n,description:r,contract:i,codeId:l.fromNumber(o),msg:a.from(JSON.stringify(s),"utf-8")})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return f.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MigrateContractProposal",value:d.MigrateContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(d.MigrateContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e,a=r.title,i=r.description,o=r.contract,s=r.code_id,c=r.msg;return new t(a,i,o,Number.parseInt(s),c)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.new_code_id,o=t.migrate_msg;return{"@type":"/cosmwasm.wasm.v1.MigrateContractProposal",title:n,description:r,contract:a,code_id:i.toFixed(),msg:(0,u.removeNull)(o)}},t}(u.JSONSerializable);t.MigrateContractProposal=p},78577:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PinCodesProposal=void 0;var c=n(70353),u=n(81019),f=n(15679),d=s(n(12620)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.code_ids=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/PinCodesProposal",value:{title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.codeIds.map((function(e){return e.toNumber()})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.code_ids;return f.PinCodesProposal.fromPartial({title:n,description:r,codeIds:a.map((function(e){return d.fromNumber(e)}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return u.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.PinCodesProposal",value:f.PinCodesProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(f.PinCodesProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.PinCodesProposal",title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}},t}(c.JSONSerializable);t.PinCodesProposal=l},78840:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.StoreCodeProposal=void 0;var o=n(70353),s=n(30189),c=n(15679),u=n(1625),f=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.title=t,o.description=n,o.run_as=r,o.wasm_byte_code=a,o.instantiate_permission=i,o}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.run_as,s=r.wasm_byte_code,c=r.instantiate_permission;return new t(a,i,o,s,c?u.AccessConfig.fromAmino(c):void 0)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.run_as,i=t.wasm_byte_code,o=t.instantiate_permission;return{type:"wasm/StoreCodeProposal",value:{title:n,description:r,run_as:a,wasm_byte_code:i,instantiate_permission:null==o?void 0:o.toAmino()}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.title,a=e.description,i=e.run_as,o=e.wasm_byte_code,s=e.instantiate_permission;return new t(r,a,i,o,s?u.AccessConfig.fromData(s):void 0)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.run_as,i=t.wasm_byte_code,o=t.instantiate_permission;return{"@type":"/cosmwasm.wasm.v1.StoreCodeProposal",title:n,description:r,run_as:a,wasm_byte_code:i,instantiate_permission:null==o?void 0:o.toData()}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.runAs,a.from(e.wasmByteCode).toString("base64"),e.instantiatePermission?u.AccessConfig.fromProto(e.instantiatePermission):void 0)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,i=t.run_as,o=t.wasm_byte_code,s=t.instantiate_permission;return c.StoreCodeProposal.fromPartial({title:n,description:r,runAs:i,wasmByteCode:a.from(o,"base64"),instantiatePermission:null==s?void 0:s.toProto()})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return s.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.StoreCodeProposal",value:c.StoreCodeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(c.StoreCodeProposal.decode(e.value),n)},t}(o.JSONSerializable);t.StoreCodeProposal=f},95623:function(e,t,n){"use strict";var r,a=n(62332).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SudoContractProposal=void 0;var o=n(70353),s=n(81019),c=n(15679),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.title=t,i.description=n,i.contract=r,i.msg=a,i}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.contract,r.msg)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.msg;return{type:"wasm/SudoContractProposal",value:{title:n,description:r,contract:a,msg:(0,o.removeNull)(i)}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract,JSON.parse(a.from(e.msg).toString("utf-8")))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,i=t.contract,o=t.msg;return c.SudoContractProposal.fromPartial({title:n,description:r,contract:i,msg:a.from(JSON.stringify(o),"utf-8")})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return s.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.SudoContractProposal",value:c.SudoContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(c.SudoContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.contract,r.msg)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.msg;return{"@type":"/cosmwasm.wasm.v1.SudoContractProposal",title:n,description:r,contract:a,msg:(0,o.removeNull)(i)}},t}(o.JSONSerializable);t.SudoContractProposal=u},10309:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.UnpinCodesProposal=void 0;var c=n(70353),u=n(81019),f=n(15679),d=s(n(12620)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.code_ids=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/UnpinCodesProposal",value:{title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.codeIds.map((function(e){return e.toNumber()})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.code_ids;return f.UnpinCodesProposal.fromPartial({title:n,description:r,codeIds:a.map((function(e){return d.fromNumber(e)}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return u.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.UnpinCodesProposal",value:f.UnpinCodesProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(f.UnpinCodesProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.UnpinCodesProposal",title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}},t}(c.JSONSerializable);t.UnpinCodesProposal=l},77283:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateAdminProposal=void 0;var i=n(70353),o=n(81019),s=n(15679),c=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.title=t,i.description=n,i.contract=r,i.new_admin=a,i}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.contract,r.new_admin)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/UpdateAdminProposal",value:{title:t.title,description:t.description,contract:t.contract,new_admin:t.new_admin}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract,e.newAdmin)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.new_admin;return s.UpdateAdminProposal.fromPartial({title:n,description:r,contract:a,newAdmin:i})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.UpdateAdminProposal",value:s.UpdateAdminProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.UpdateAdminProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.contract,r.new_admin)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.UpdateAdminProposal",title:t.title,description:t.description,contract:t.contract,new_admin:t.new_admin}},t}(i.JSONSerializable);t.UpdateAdminProposal=c},88372:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateInstantiateConfigProposal=void 0;var i=n(70353),o=n(81019),s=n(15679),c=n(91121),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.access_config_updates=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.access_config_updates.map((function(e){return c.AccessConfigUpdate.fromAmino(e)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/UpdateInstantiateConfigProposal",value:{title:t.title,description:t.description,access_config_updates:t.access_config_updates.map((function(e){return e.toAmino()}))}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.accessConfigUpdates.map((function(e){return c.AccessConfigUpdate.fromProto(e)})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.access_config_updates;return s.UpdateInstantiateConfigProposal.fromPartial({title:n,description:r,accessConfigUpdates:a.map((function(e){return e.toProto()}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal",value:s.UpdateInstantiateConfigProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.UpdateInstantiateConfigProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.access_config_updates.map((function(e){return c.AccessConfigUpdate.fromData(e)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal",title:t.title,description:t.description,access_config_updates:t.access_config_updates.map((function(e){return e.toData()}))}},t}(i.JSONSerializable);t.UpdateInstantiateConfigProposal=u},16424:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(7581),t),a(n(98953),t),a(n(59948),t),a(n(63325),t),a(n(78577),t),a(n(78840),t),a(n(95623),t),a(n(10309),t),a(n(77283),t),a(n(88372),t)},50121:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertAccessTypeFromJSON=void 0;var r=n(10763);t.convertAccessTypeFromJSON=function(e){var t=e;switch(e){case"Everybody":t="ACCESS_TYPE_EVERYBODY";break;case"Nobody":t="ACCESS_TYPE_NOBODY";break;case"OnlyAddress":t="ACCESS_TYPE_ONLY_ADDRESS";break;case"Unspecified":t="ACCESS_TYPE_UNSPECIFIED"}return(0,r.accessTypeFromJSON)(t)}},22419:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(24663),o=function(){},s=function(e){function t(t){var n=t.name,r=t.target,a=t.targetWindow,i=e.call(this,{objectMode:!0})||this;return i._name=n,i._target=r,i._targetWindow=a||window,i._origin=a?"*":location.origin,i._init=!1,i._haveSyn=!1,i._onMessage=i._onMessage.bind(i),window.addEventListener("message",i._onMessage,!1),i._write("SYN",null,o),i.cork(),i}return a(t,e),t.prototype._destroy=function(){window.removeEventListener("message",this._onMessage,!1)},t.prototype._onMessage=function(e){var t=e.data;if(("*"===this._origin||e.origin===this._origin)&&e.source===this._targetWindow&&"object"==typeof t&&t.target===this._name&&t.data)if(this._init)try{this.push(t.data)}catch(e){this.emit("error",e)}else"SYN"===t.data?(this._haveSyn=!0,this._write("ACK",null,o)):"ACK"===t.data&&(this._init=!0,this._haveSyn||this._write("ACK",null,o),this.uncork())},t.prototype._read=function(){},t.prototype._write=function(e,t,n){var r={target:this._target,data:e};this._targetWindow.postMessage(r,this._origin),n(null)},t}(i.Duplex);t.default=s},40699:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){d.headers[e]=a.merge(c)})),e.exports=d},86798:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},23788:function(e){e.exports={version:"0.26.1"}},21929:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},14202:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},46815:function(e,t,n){"use strict";var r=n(23788).version,a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new Error(a(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),a=r.length;a-- >0;){var i=r[a],o=t[i];if(o){var s=e[i],c=void 0===s||o(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:a}},69357:function(e,t,n){"use strict";var r=n(21929),a=Object.prototype.toString;function i(e){return Array.isArray(e)}function o(e){return void 0===e}function s(e){return"[object ArrayBuffer]"===a.call(e)}function c(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function f(e){return"[object Function]"===a.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n255)return!1;return!0}function a(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(n(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function i(e){return new Uint8Array(e)}function o(e,t,n,r,a){null==r&&null==a||(e=e.slice?e.slice(r,a):Array.prototype.slice.call(e,r,a)),t.set(e,n)}var s,c={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},u=(s="0123456789abcdef",{toBytes:function(e){for(var t=[],n=0;n>4]+s[15&r])}return t.join("")}}),f={16:10,24:12,32:14},d=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],p=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],b=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],h=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],v=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],g=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],A=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],x=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],_=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],k=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],S=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function I(e){for(var t=[],n=0;n>2,this._Ke[n][t%4]=i[t],this._Kd[e-n][t%4]=i[t];for(var o,s=0,c=a;c>16&255]<<24^l[o>>8&255]<<16^l[255&o]<<8^l[o>>24&255]^d[s]<<24,s+=1,8!=a)for(t=1;t>8&255]<<8^l[o>>16&255]<<16^l[o>>24&255]<<24,t=a/2+1;t>2,p=c%4,this._Ke[u][p]=i[t],this._Kd[e-u][p]=i[t++],c++}for(var u=1;u>24&255]^_[o>>16&255]^k[o>>8&255]^S[255&o]},E.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=I(e),a=0;a<4;a++)r[a]^=this._Ke[0][a];for(var o=1;o>24&255]^h[r[(a+1)%4]>>16&255]^y[r[(a+2)%4]>>8&255]^m[255&r[(a+3)%4]]^this._Ke[o][a];r=n.slice()}var s,c=i(16);for(a=0;a<4;a++)s=this._Ke[t][a],c[4*a]=255&(l[r[a]>>24&255]^s>>24),c[4*a+1]=255&(l[r[(a+1)%4]>>16&255]^s>>16),c[4*a+2]=255&(l[r[(a+2)%4]>>8&255]^s>>8),c[4*a+3]=255&(l[255&r[(a+3)%4]]^s);return c},E.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=I(e),a=0;a<4;a++)r[a]^=this._Kd[0][a];for(var o=1;o>24&255]^g[r[(a+3)%4]>>16&255]^A[r[(a+2)%4]>>8&255]^w[255&r[(a+1)%4]]^this._Kd[o][a];r=n.slice()}var s,c=i(16);for(a=0;a<4;a++)s=this._Kd[t][a],c[4*a]=255&(p[r[a]>>24&255]^s>>24),c[4*a+1]=255&(p[r[(a+3)%4]>>16&255]^s>>16),c[4*a+2]=255&(p[r[(a+2)%4]>>8&255]^s>>8),c[4*a+3]=255&(p[255&r[(a+1)%4]]^s);return c};var C=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new E(t)};C.prototype.encrypt=function(e){if((e=a(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),n=i(16),r=0;r=0;--t)this._counter[t]=e%256,e>>=8},M.prototype.setBytes=function(e){if(16!=(e=a(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},M.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var B=function e(t,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",n instanceof M||(n=new M(n)),this._counter=n,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new E(t)};B.prototype.encrypt=function(e){for(var t=a(e,!0),n=0;n16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;r0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},i=function(){for(var e=[],t=0;t=55296&&a<=56319&&r65535&&(d-=65536,o.push(d>>>10&1023|55296),d=56320|1023&d),o.push(d)}else o.push(c);o.length>=4096&&(s+=String.fromCharCode.apply(String,i(o)),o.length=0)}return o.length>0&&(s+=String.fromCharCode.apply(String,i(o))),s}var l=o?new TextDecoder:null,p=void 0!==r?200:0,b=function(e,t){this.type=e,this.data=t};function h(e,t,n){var r=Math.floor(n/4294967296),a=n;e.setUint32(t,r),e.setUint32(t+4,a)}function y(e,t){var n=e.getInt32(t),r=e.getUint32(t+4),a=nMath.floor(Number.MAX_SAFE_INTEGER/4294967296);return a||i?BigInt(n)*BigInt(4294967296)+BigInt(r):4294967296*n+r}var m=-1;function v(e){var t,n=e.sec,r=e.nsec;if(n>=0&&r>=0&&n<=17179869183){if(0===r&&n<=4294967295){var a=new Uint8Array(4);return(t=new DataView(a.buffer)).setUint32(0,n),a}var i=n/4294967296,o=4294967295&n;return a=new Uint8Array(8),(t=new DataView(a.buffer)).setUint32(0,r<<2|3&i),t.setUint32(4,o),a}return a=new Uint8Array(12),(t=new DataView(a.buffer)).setUint32(0,r),h(t,4,n),a}function g(e){var t=e.getTime(),n=Math.floor(t/1e3),r=1e6*(t-1e3*n),a=Math.floor(r/1e9);return{sec:n+a,nsec:r-1e9*a}}function A(e){return e instanceof Date?v(g(e)):null}function w(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:return{sec:t.getUint32(0),nsec:0};case 8:var n=t.getUint32(0);return{sec:4294967296*(3&n)+t.getUint32(4),nsec:n>>>2};case 12:return{sec:y(t,4),nsec:t.getUint32(0)};default:throw new Error("Unrecognized data size for timestamp: "+e.length)}}function x(e){var t=w(e);return new Date(1e3*t.sec+t.nsec/1e6)}var _={type:m,encode:A,decode:x},k=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(_)}return e.prototype.register=function(e){var t=e.type,n=e.encode,r=e.decode;if(t>=0)this.encoders[t]=n,this.decoders[t]=r;else{var a=1+t;this.builtInEncoders[a]=n,this.builtInDecoders[a]=r}},e.prototype.tryToEncode=function(e,t){for(var n=0;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},E=function(){function e(e,t,n,r,a,i,o,s){void 0===e&&(e=k.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=100),void 0===r&&(r=2048),void 0===a&&(a=!1),void 0===i&&(i=!1),void 0===o&&(o=!1),void 0===s&&(s=!1),this.extensionCodec=e,this.context=t,this.maxDepth=n,this.initialBufferSize=r,this.sortKeys=a,this.forceFloat32=i,this.ignoreUndefined=o,this.forceIntegerToFloat=s,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.getUint8Array=function(){return this.bytes.subarray(0,this.pos)},e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encode=function(e){return this.reinitializeState(),this.doEncode(e,1),this.getUint8Array()},e.prototype.doEncode=function(e,t){if(t>this.maxDepth)throw new Error("Too deep objects in depth "+t);null==e?this.encodeNil():"boolean"==typeof e?this.encodeBoolean(e):"number"==typeof e?this.encodeNumber(e):"string"==typeof e?this.encodeString(e):"bigint"==typeof e?this.encodebigint(e):this.encodeObject(e,t)},e.prototype.ensureBufferSizeToWrite=function(e){var t=this.pos+e;this.view.byteLength=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},e.prototype.encodebigint=function(e){e>=BigInt(0)?e=BigInt(-32)?this.writeU8(224|Number(e)+32):e>=BigInt(-128)?(this.writeU8(208),this.writeI8(Number(e))):e>=BigInt(-32768)?(this.writeU8(209),this.writeI16(Number(e))):e>=BigInt(-2147483648)?(this.writeU8(210),this.writeI32(Number(e))):(this.writeU8(211),this.writeBig64(e))},e.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else{if(!(e<4294967296))throw new Error("Too long string: "+e+" bytes in UTF-8");this.writeU8(219),this.writeU32(e)}},e.prototype.encodeString=function(e){var t=e.length;if(o&&t>u){var n=s(e);this.ensureBufferSizeToWrite(5+n),this.writeStringHeader(n),f(e,this.bytes,this.pos),this.pos+=n}else n=s(e),this.ensureBufferSizeToWrite(5+n),this.writeStringHeader(n),function(e,t,n){for(var r=e.length,a=n,i=0;i>6&31|192;else{if(o>=55296&&o<=56319&&i>12&15|224,t[a++]=o>>6&63|128):(t[a++]=o>>18&7|240,t[a++]=o>>12&63|128,t[a++]=o>>6&63|128)}t[a++]=63&o|128}else t[a++]=o}}(e,this.bytes,this.pos),this.pos+=n},e.prototype.encodeObject=function(e,t){var n=this.extensionCodec.tryToEncode(e,this.context);if(null!=n)this.encodeExtension(n);else if(Array.isArray(e))this.encodeArray(e,t);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else{if("object"!=typeof e)throw new Error("Unrecognized object: "+Object.prototype.toString.apply(e));this.encodeMap(e,t)}},e.prototype.encodeBinary=function(e){var t=e.byteLength;if(t<256)this.writeU8(196),this.writeU8(t);else if(t<65536)this.writeU8(197),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large binary: "+t);this.writeU8(198),this.writeU32(t)}var n=S(e);this.writeU8a(n)},e.prototype.encodeArray=function(e,t){var n,r,a=e.length;if(a<16)this.writeU8(144+a);else if(a<65536)this.writeU8(220),this.writeU16(a);else{if(!(a<4294967296))throw new Error("Too large array: "+a);this.writeU8(221),this.writeU32(a)}try{for(var i=I(e),o=i.next();!o.done;o=i.next()){var s=o.value;this.doEncode(s,t+1)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.countWithoutUndefined=function(e,t){var n,r,a=0;try{for(var i=I(t),o=i.next();!o.done;o=i.next())void 0!==e[o.value]&&a++}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},e.prototype.encodeMap=function(e,t){var n,r,a=Object.keys(e);this.sortKeys&&a.sort();var i=this.ignoreUndefined?this.countWithoutUndefined(e,a):a.length;if(i<16)this.writeU8(128+i);else if(i<65536)this.writeU8(222),this.writeU16(i);else{if(!(i<4294967296))throw new Error("Too large map object: "+i);this.writeU8(223),this.writeU32(i)}try{for(var o=I(a),s=o.next();!s.done;s=o.next()){var c=s.value,u=e[c];this.ignoreUndefined&&void 0===u||(this.encodeString(c),this.doEncode(u,t+1))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.encodeExtension=function(e){var t=e.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(t<256)this.writeU8(199),this.writeU8(t);else if(t<65536)this.writeU8(200),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large extension object: "+t);this.writeU8(201),this.writeU32(t)}this.writeI8(e.type),this.writeU8a(e.data)},e.prototype.writeU8=function(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++},e.prototype.writeU8a=function(e){var t=e.length;this.ensureBufferSizeToWrite(t),this.bytes.set(e,this.pos),this.pos+=t},e.prototype.writeI8=function(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++},e.prototype.writeU16=function(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2},e.prototype.writeI16=function(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2},e.prototype.writeU32=function(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4},e.prototype.writeI32=function(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4},e.prototype.writeF32=function(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4},e.prototype.writeF64=function(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8},e.prototype.writeU64=function(e){this.ensureBufferSizeToWrite(8),function(e,t,n){var r=n/4294967296,a=n;e.setUint32(t,r),e.setUint32(t+4,a)}(this.view,this.pos,e),this.pos+=8},e.prototype.writeI64=function(e){this.ensureBufferSizeToWrite(8),h(this.view,this.pos,e),this.pos+=8},e.prototype.writeBig64=function(e){this.ensureBufferSizeToWrite(8),function(e,t,n){var r=Number(n/BigInt(4294967296)),a=Number(n%BigInt(4294967296));r<0&&0!==a&&(r-=1),e.setUint32(t,r),e.setUint32(t+4,a)}(this.view,this.pos,e),this.pos+=8},e}(),C={};function T(e,t){return void 0===t&&(t=C),new E(t.extensionCodec,t.context,t.maxDepth,t.initialBufferSize,t.sortKeys,t.forceFloat32,t.ignoreUndefined,t.forceIntegerToFloat).encode(e)}function O(e){return(e<0?"-":"")+"0x"+Math.abs(e).toString(16).padStart(2,"0")}var P=function(){function e(e,t){void 0===e&&(e=16),void 0===t&&(t=16),this.maxKeyLength=e,this.maxLengthPerKey=t,this.hit=0,this.miss=0,this.caches=[];for(var n=0;n0&&e<=this.maxKeyLength},e.prototype.get=function(e,t,n){var r=this.caches[n-1],a=r.length;e:for(var i=0;i=this.maxLengthPerKey?n[Math.random()*n.length|0]=r:n.push(r)},e.prototype.decode=function(e,t,n){var r=this.get(e,t,n);if(null!=r)return this.hit++,r;this.miss++;var a=d(e,t,n),i=Uint8Array.prototype.slice.call(e,t,t+n);return this.store(i,a),a},e}(),M=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e},e.prototype.createNoExtraBytesError=function(e){var t=this.view,n=this.pos;return new RangeError("Extra "+(t.byteLength-n)+" of "+t.byteLength+" byte(s) found at buffer["+e+"]")},e.prototype.decode=function(e){return this.reinitializeState(),this.setBuffer(e),this.doDecodeSingleSync()},e.prototype.doDecodeSingleSync=function(){var e=this.doDecodeSync();if(this.hasRemaining())throw this.createNoExtraBytesError(this.pos);return e},e.prototype.decodeAsync=function(e){var t,n,r,a;return function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var i,o,s,c,u,f,d,l;return M(this,(function(p){switch(p.label){case 0:i=!1,p.label=1;case 1:p.trys.push([1,6,7,12]),t=B(e),p.label=2;case 2:return[4,t.next()];case 3:if((n=p.sent()).done)return[3,5];if(s=n.value,i)throw this.createNoExtraBytesError(this.totalPos);this.appendBuffer(s);try{o=this.doDecodeSync(),i=!0}catch(e){if(!(e instanceof j))throw e}this.totalPos+=this.pos,p.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return c=p.sent(),r={error:c},[3,12];case 7:return p.trys.push([7,,10,11]),n&&!n.done&&(a=t.return)?[4,a.call(t)]:[3,9];case 8:p.sent(),p.label=9;case 9:return[3,11];case 10:if(r)throw r.error;return[7];case 11:return[7];case 12:if(i){if(this.hasRemaining())throw this.createNoExtraBytesError(this.totalPos);return[2,o]}throw f=(u=this).headByte,d=u.pos,l=u.totalPos,new RangeError("Insufficient data in parcing "+O(f)+" at "+l+" ("+d+" in the current buffer)")}}))}))},e.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},e.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},e.prototype.decodeMultiAsync=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,a=n.apply(e,t||[]),i=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){a[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof R?Promise.resolve(n.value.v).then(c,u):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function f(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,a,i,o,s,c,u,f;return M(this,(function(d){switch(d.label){case 0:n=t,r=-1,d.label=1;case 1:d.trys.push([1,13,14,19]),a=B(e),d.label=2;case 2:return[4,R(a.next())];case 3:if((i=d.sent()).done)return[3,12];if(o=i.value,t&&0===r)throw this.createNoExtraBytesError(this.totalPos);this.appendBuffer(o),n&&(r=this.readArraySize(),n=!1,this.complete()),d.label=4;case 4:d.trys.push([4,9,,10]),d.label=5;case 5:return[4,R(this.doDecodeSync())];case 6:return[4,d.sent()];case 7:return d.sent(),0==--r?[3,8]:[3,5];case 8:return[3,10];case 9:if(!((s=d.sent())instanceof j))throw s;return[3,10];case 10:this.totalPos+=this.pos,d.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return c=d.sent(),u={error:c},[3,19];case 14:return d.trys.push([14,,17,18]),i&&!i.done&&(f=a.return)?[4,R(f.call(a))]:[3,16];case 15:d.sent(),d.label=16;case 16:return[3,18];case 17:if(u)throw u.error;return[7];case 18:return[7];case 19:return[2]}}))}))},e.prototype.doDecodeSync=function(){e:for(;;){var e=this.readHeadByte(),t=void 0;if(e>=224)t=e-256;else if(e<192)if(e<128)t=e;else if(e<144){if(0!=(r=e-128)){this.pushMapState(r),this.complete();continue e}t={}}else if(e<160){if(0!=(r=e-144)){this.pushArrayState(r),this.complete();continue e}t=[]}else{var n=e-160;t=this.decodeUtf8String(n,0)}else if(192===e)t=null;else if(194===e)t=!1;else if(195===e)t=!0;else if(202===e)t=this.readF32();else if(203===e)t=this.readF64();else if(204===e)t=this.readU8();else if(205===e)t=this.readU16();else if(206===e)t=this.readU32();else if(207===e)t=this.readU64();else if(208===e)t=this.readI8();else if(209===e)t=this.readI16();else if(210===e)t=this.readI32();else if(211===e)t=this.readI64();else if(217===e)n=this.lookU8(),t=this.decodeUtf8String(n,1);else if(218===e)n=this.lookU16(),t=this.decodeUtf8String(n,2);else if(219===e)n=this.lookU32(),t=this.decodeUtf8String(n,4);else if(220===e){if(0!==(r=this.readU16())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(221===e){if(0!==(r=this.readU32())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(222===e){if(0!==(r=this.readU16())){this.pushMapState(r),this.complete();continue e}t={}}else if(223===e){if(0!==(r=this.readU32())){this.pushMapState(r),this.complete();continue e}t={}}else if(196===e){var r=this.lookU8();t=this.decodeBinary(r,1)}else if(197===e)r=this.lookU16(),t=this.decodeBinary(r,2);else if(198===e)r=this.lookU32(),t=this.decodeBinary(r,4);else if(212===e)t=this.decodeExtension(1,0);else if(213===e)t=this.decodeExtension(2,0);else if(214===e)t=this.decodeExtension(4,0);else if(215===e)t=this.decodeExtension(8,0);else if(216===e)t=this.decodeExtension(16,0);else if(199===e)r=this.lookU8(),t=this.decodeExtension(r,1);else if(200===e)r=this.lookU16(),t=this.decodeExtension(r,2);else{if(201!==e)throw new Error("Unrecognized type byte: "+O(e));r=this.lookU32(),t=this.decodeExtension(r,4)}this.complete();for(var a=this.stack;a.length>0;){var i=a[a.length-1];if(0===i.type){if(i.array[i.position]=t,i.position++,i.position!==i.size)continue e;a.pop(),t=i.array}else{if(1===i.type){if(void 0,"string"!=(o=typeof t)&&"number"!==o)throw new Error("The type of key must be string or number but "+typeof t);i.key=t,i.type=2;continue e}if(i.map[i.key]=t,i.readCount++,i.readCount!==i.size){i.key=null,i.type=1;continue e}a.pop(),t=i.map}}return t}var o},e.prototype.readHeadByte=function(){return-1===this.headByte&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=-1},e.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(e<160)return e-144;throw new Error("Unrecognized array type byte: "+O(e))}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new Error("Max length exceeded: map length ("+e+") > maxMapLengthLength ("+this.maxMapLength+")");this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new Error("Max length exceeded: array length ("+e+") > maxArrayLength ("+this.maxArrayLength+")");this.stack.push({type:0,size:e,array:new Array(e),position:0})},e.prototype.decodeUtf8String=function(e,t){var n;if(e>this.maxStrLength)throw new Error("Max length exceeded: UTF-8 byte length ("+e+") > maxStrLength ("+this.maxStrLength+")");if(this.bytes.byteLengthp?function(e,t,n){var r=e.subarray(t,t+n);return l.decode(r)}(this.bytes,a,e):d(this.bytes,a,e),this.pos+=t+e,r},e.prototype.stateIsMapKey=function(){return this.stack.length>0&&1===this.stack[this.stack.length-1].type},e.prototype.decodeBinary=function(e,t){if(e>this.maxBinLength)throw new Error("Max length exceeded: bin length ("+e+") > maxBinLength ("+this.maxBinLength+")");if(!this.hasRemaining(e+t))throw U;var n=this.pos+t,r=this.bytes.subarray(n,n+e);return this.pos+=t+e,r},e.prototype.decodeExtension=function(e,t){if(e>this.maxExtLength)throw new Error("Max length exceeded: ext length ("+e+") > maxExtLength ("+this.maxExtLength+")");var n=this.view.getInt8(this.pos+t),r=this.decodeBinary(e,t+1);return this.extensionCodec.decode(r,n,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},e.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},e.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},e.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},e.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},e.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},e.prototype.readU64=function(){var e,t,n,r,a=(e=this.view,t=this.pos,n=e.getUint32(t),r=e.getUint32(t+4),n>Math.floor(Number.MAX_SAFE_INTEGER/4294967296)?BigInt(n)*BigInt(4294967296)+BigInt(r):4294967296*n+r);return this.pos+=8,a},e.prototype.readI64=function(){var e=y(this.view,this.pos);return this.pos+=8,e},e.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},e.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},e}(),F={};function H(e,t){return void 0===t&&(t=F),new Z(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decode(e)}var z=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof q?Promise.resolve(n.value.v).then(c,u):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function f(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}};function K(e){return null!=e[Symbol.asyncIterator]?e:function(e){return Q(this,arguments,(function(){var t,n,r,a;return z(this,(function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,q(t.read())];case 3:return n=i.sent(),r=n.done,a=n.value,r?[4,q(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return function(e){if(null==e)throw new Error("Assertion Failure: value must not be null nor undefined")}(a),[4,q(a)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}(e)}var V=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},J=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&void 0!==arguments[0]?arguments[0]:"";"string"==typeof t&&(t={"X-Algo-API-Token":t});var n=new s(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://r2.algorand.network",arguments.length>2&&void 0!==arguments[2]?arguments[2]:4180,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{});function u(e){return void 0!==e.noteb64&&null!==e.noteb64&&(e.note=r.from(e.noteb64,"base64")),e}this.status=o(i().mark((function e(){var t,r,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,n.get("/v1/status",{},t);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e)}))),this.healthCheck=o(i().mark((function e(){var t,r,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,n.get("/health",{},t);case 3:if((r=e.sent).ok){e.next=6;break}throw new Error("Health response: ".concat(r.status));case 6:return e.abrupt("return",{});case 7:case"end":return e.stop()}}),e)}))),this.statusAfterBlock=function(){var e=o(i().mark((function e(t){var r,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=o.length>1&&void 0!==o[1]?o[1]:{},Number.isInteger(t)){e.next=3;break}throw Error("roundNumber should be an integer");case 3:return e.next=5,n.get("/v1/status/wait-for-block-after/".concat(t),{},r);case 5:return a=e.sent,e.abrupt("return",a.body);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.pendingTransactions=function(){var e=o(i().mark((function e(t){var r,a,o,s=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:{},Number.isInteger(t)){e.next=3;break}throw Error("maxTxns should be an integer");case 3:return e.next=5,n.get("/v1/transactions/pending",{max:t},r);case 5:if(200===(a=e.sent).statusCode&&void 0!==a.body.truncatedTxns.transactions)for(o=0;o0&&void 0!==a[0]?a[0]:{},e.next=3,n.get("/versions",{},t);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e)}))),this.ledgerSupply=o(i().mark((function e(){var t,r,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,n.get("/v1/ledger/supply",{},t);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e)}))),this.transactionByAddress=function(){var e=o(i().mark((function e(t){var r,a,o,s,c,f,d=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=d.length>2&&void 0!==d[2]?d[2]:null,o=d.length>3&&void 0!==d[3]?d[3]:null,s=d.length>4&&void 0!==d[4]?d[4]:{},null===(r=d.length>1&&void 0!==d[1]?d[1]:null)||Number.isInteger(r)){e.next=6;break}throw Error("first round should be an integer");case 6:if(null===a||Number.isInteger(a)){e.next=8;break}throw Error("last round should be an integer");case 8:return e.next=10,n.get("/v1/account/".concat(t,"/transactions"),{firstRound:r,lastRound:a,max:o},s);case 10:if(200===(c=e.sent).statusCode&&void 0!==c.body.transactions)for(f=0;f3&&void 0!==d[3]?d[3]:null,s=d.length>4&&void 0!==d[4]?d[4]:{},e.next=4,n.get("/v1/account/".concat(t,"/transactions"),{fromDate:r,toDate:a,max:o},s);case 4:if(200===(c=e.sent).statusCode&&void 0!==c.body.transactions)for(f=0;f1&&void 0!==o[1]?o[1]:{},e.next=3,n.get("/v1/transaction/".concat(t),{},r);case 3:return 200===(a=e.sent).statusCode&&(a.body=u(a.body)),e.abrupt("return",a.body);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.transactionInformation=function(){var e=o(i().mark((function e(t,r){var a,o,s=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>2&&void 0!==s[2]?s[2]:{},e.next=3,n.get("/v1/account/".concat(t,"/transaction/").concat(r),{},a);case 3:return 200===(o=e.sent).statusCode&&(o.body=u(o.body)),e.abrupt("return",o.body);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.pendingTransactionInformation=function(){var e=o(i().mark((function e(t){var r,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,n.get("/v1/transactions/pending/".concat(t),{},r);case 3:return 200===(a=e.sent).statusCode&&(a.body=u(a.body)),e.abrupt("return",a.body);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.accountInformation=function(){var e=o(i().mark((function e(t){var r,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,n.get("/v1/account/".concat(t),{},r);case 3:return a=e.sent,e.abrupt("return",a.body);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.assetInformation=function(){var e=o(i().mark((function e(t){var r,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,n.get("/v1/asset/".concat(t),{},r);case 3:return a=e.sent,e.abrupt("return",a.body);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.suggestedFee=o(i().mark((function e(){var t,r,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,n.get("/v1/transactions/fee",{},t);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e)}))),this.sendRawTransaction=function(){var e=o(i().mark((function e(t){var a,o,s=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=c(s.length>1&&void 0!==s[1]?s[1]:{}),e.next=4,n.post("/v1/transactions",r.from(t),a);case 4:return o=e.sent,e.abrupt("return",o.body);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.sendRawTransactions=function(){var e=o(i().mark((function e(t){var o,s,u,f,d=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=c(d.length>1&&void 0!==d[1]?d[1]:{}),u=(o=Array.prototype).concat.apply(o,a(t.map((function(e){return Array.from(e)})))),e.next=5,n.post("/v1/transactions",r.from(u),s);case 5:return f=e.sent,e.abrupt("return",f.body);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getTransactionParams=o(i().mark((function e(){var t,r,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,n.get("/v1/transactions/params",{},t);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e)}))),this.suggestParams=o(i().mark((function t(){var n,r,a=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:{},t.next=3,e.getTransactionParams(n);case 3:return r=t.sent,t.abrupt("return",{flatFee:!1,fee:r.fee,firstRound:r.lastRound,lastRound:r.lastRound+1e3,genesisID:r.genesisID,genesisHash:r.genesishashb64});case 5:case"end":return t.stop()}}),t)}))),this.block=function(){var e=o(i().mark((function e(t){var r,a,o,s=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:{},Number.isInteger(t)){e.next=3;break}throw Error("roundNumber should be an integer");case 3:return e.next=5,n.get("/v1/block/".concat(t),{},r);case 5:if(200===(a=e.sent).statusCode&&void 0!==a.body.txns.transactions)for(o=0;o3&&void 0!==arguments[3]?arguments[3]:{};(0,o.Z)(this,e),this.defaultHeaders=a;var i=n.endsWith("/")?n:"".concat(n,"/"),s=new URL(i);if(void 0!==r&&(s.port=r.toString()),0===s.protocol.length)throw new Error("Invalid base server URL, protocol must be defined.");this.baseURL=s,this.tokenHeader=t}var t,n,c,f,d;return(0,s.Z)(e,[{key:"getURL",value:function(e,t){var n;n=e.startsWith("./")?e:e.startsWith("/")?".".concat(e):"./".concat(e);var r=new URL(n,this.baseURL);if(t)for(var a=0,i=Object.entries(t);a2&&void 0!==u[2]?u[2]:{},s=(0,a.Z)((0,a.Z)((0,a.Z)({},this.tokenHeader),this.defaultHeaders),o),t.next=4,(0,p.fetch)(this.getURL(n,i),{mode:"cors",headers:s});case 4:return c=t.sent,t.abrupt("return",e.formatFetchResponse(c));case 6:case"end":return t.stop()}}),t,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"post",value:(f=(0,i.Z)((0,r.Z)().mark((function t(n,i,o){var s,c,u,f=arguments;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=f.length>3&&void 0!==f[3]?f[3]:{},c=(0,a.Z)((0,a.Z)((0,a.Z)({},this.tokenHeader),this.defaultHeaders),s),t.next=4,(0,p.fetch)(this.getURL(n,o),{method:"POST",mode:"cors",body:i,headers:c});case 4:return u=t.sent,t.abrupt("return",e.formatFetchResponse(u));case 6:case"end":return t.stop()}}),t,this)}))),function(e,t,n){return f.apply(this,arguments)})},{key:"delete",value:(c=(0,i.Z)((0,r.Z)().mark((function t(n,i,o){var s,c,u,f=arguments;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=f.length>3&&void 0!==f[3]?f[3]:{},c=(0,a.Z)((0,a.Z)((0,a.Z)({},this.tokenHeader),this.defaultHeaders),s),t.next=4,(0,p.fetch)(this.getURL(n,o),{method:"DELETE",mode:"cors",body:i,headers:c});case 4:return u=t.sent,t.abrupt("return",e.formatFetchResponse(u));case 6:case"end":return t.stop()}}),t,this)}))),function(e,t,n){return c.apply(this,arguments)})}],[{key:"formatFetchResponseHeaders",value:function(e){var t={};return e.forEach((function(e,n){t[e]=n})),t}},{key:"checkHttpError",value:(n=(0,i.Z)((0,r.Z)().mark((function t(n){var a,i,o,s;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.ok){t.next=2;break}return t.abrupt("return");case 2:return a=null,i=null,t.prev=4,t.t0=Uint8Array,t.next=8,n.arrayBuffer();case 8:t.t1=t.sent,a=new t.t0(t.t1),(o=JSON.parse(b.from(a).toString())).message&&(i=o.message),t.next=16;break;case 14:t.prev=14,t.t2=t.catch(4);case 16:throw s="Network request error. Received status ".concat(n.status," (").concat(n.statusText,")"),i&&(s+=": ".concat(i)),new h(s,{body:a,status:n.status,headers:e.formatFetchResponseHeaders(n.headers)});case 19:case"end":return t.stop()}}),t,null,[[4,14]])}))),function(e){return n.apply(this,arguments)})},{key:"formatFetchResponse",value:(t=(0,i.Z)((0,r.Z)().mark((function t(n){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.checkHttpError(n);case 2:return t.t0=Uint8Array,t.next=5,n.arrayBuffer();case 5:return t.t1=t.sent,t.t2=new t.t0(t.t1),t.t3=n.status,t.t4=e.formatFetchResponseHeaders(n.headers),t.abrupt("return",{body:t.t2,status:t.t3,headers:t.t4});case 10:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),m=n(62332).Buffer;function v(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t]&&0!==e[t].length||delete e[t]);return e}function g(e){return Object.keys(e).reduce((function(t,n){return t[n.toLowerCase()]=e[n],t}),{})}function A(e){return void 0!==e&&Object.prototype.hasOwnProperty.call(e,"format")&&"msgpack"===e.format?"application/msgpack":"application/json"}var w=function(){function e(t,n,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,o.Z)(this,e),this.bc=void 0!==n?new y(t,n,r,a):t}var t,n,u;return(0,s.Z)(e,[{key:"get",value:(u=(0,i.Z)((0,r.Z)().mark((function t(n,i){var o,s,c,u,f,d,l=arguments;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=l.length>2&&void 0!==l[2]?l[2]:{},s=l.length>3&&void 0!==l[3]?l[3]:{},c=!(l.length>4&&void 0!==l[4])||l[4],u=A(i),f=(0,a.Z)((0,a.Z)({},o),{},{accept:u}),t.prev=5,t.next=8,this.bc.get(n,v(i),f);case 8:return d=t.sent,t.abrupt("return",e.prepareResponse(d,u,c,s));case 12:throw t.prev=12,t.t0=t.catch(5),e.prepareResponseError(t.t0);case 15:case"end":return t.stop()}}),t,this,[[5,12]])}))),function(e,t){return u.apply(this,arguments)})},{key:"post",value:(n=(0,i.Z)((0,r.Z)().mark((function t(n,i){var o,s,c,u,f,d=arguments;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=d.length>2&&void 0!==d[2]?d[2]:{},s=d.length>3?d[3]:void 0,c=!(d.length>4&&void 0!==d[4])||d[4],u=(0,a.Z)({"content-type":"application/json"},g(o)),t.prev=4,t.next=7,this.bc.post(n,e.serializeData(i,u),s,u);case 7:return f=t.sent,t.abrupt("return",e.prepareResponse(f,"application/json",c));case 11:throw t.prev=11,t.t0=t.catch(4),e.prepareResponseError(t.t0);case 14:case"end":return t.stop()}}),t,this,[[4,11]])}))),function(e,t){return n.apply(this,arguments)})},{key:"delete",value:(t=(0,i.Z)((0,r.Z)().mark((function t(n,i){var o,s,c,u,f=arguments;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=f.length>2&&void 0!==f[2]?f[2]:{},s=!(f.length>3&&void 0!==f[3])||f[3],c=(0,a.Z)({"content-type":"application/json"},g(o)),t.next=5,this.bc.delete(n,e.serializeData(i,c),void 0,c);case 5:return u=t.sent,t.abrupt("return",e.prepareResponse(u,"application/json",s));case 7:case"end":return t.stop()}}),t,this)}))),function(e,n){return t.apply(this,arguments)})}],[{key:"parseJSON",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return 0===Object.keys(n).length?e&&JSON.parse(e):e&&c.parseJSON(e,n)}catch(n){var r=n;throw r.rawResponse=e||null,r.statusCode=t,r}}},{key:"serializeData",value:function(e,t){if(!e)return new Uint8Array(0);if("application/json"===t["content-type"])return new Uint8Array(m.from(JSON.stringify(e)));if("string"==typeof e)return new Uint8Array(m.from(e));if(e instanceof Uint8Array)return e;throw new Error("provided data is neither a string nor a Uint8Array and content-type is not application/json")}},{key:"prepareResponse",value:function(t,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=t.body;return"application/msgpack"!==n&&(i=s&&m.from(s).toString()||""),r&&"application/json"===n&&(s=e.parseJSON(i,t.status,o)),(0,a.Z)((0,a.Z)({},t),{},{body:s,text:i,ok:2===Math.trunc(t.status/100)})}},{key:"prepareResponseError",value:function(t){return t.response&&(t.response=e.prepareResponse(t.response,"application/json",!0),t.status=t.response.status),t}}]),e}()},45736:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y},setSendTransactionHeaders:function(){return b}});var r=n(24611),a=n(53755),i=n(19961),o=n(47061),s=n(59900),c=n(24269),u=n(38114),f=n(19677),d=n(56949),l=n(24162),p=n(62332).Buffer;function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;return Object.keys(t).every((function(e){return"content-type"!==e.toLowerCase()}))&&((t=(0,f.Z)({},e))["Content-Type"]="application/x-binary"),t}function h(e){return e&&void 0!==e.byteLength}var y=function(e){(0,c.Z)(f,e);var t,n=(0,u.Z)(f);function f(e,t){var r;(0,o.Z)(this,f),r=n.call(this,e);var a=t;if(Array.isArray(t)){if(!t.every(h))throw new TypeError("Array elements must be byte arrays");a=l.concatArrays.apply(void 0,(0,i.Z)(t))}else if(!h(a))throw new TypeError("Argument must be byte array");return r.txnBytesToPost=a,r}return(0,s.Z)(f,[{key:"path",value:function(){return"/v2/transactions"}},{key:"do",value:(t=(0,a.Z)((0,r.Z)().mark((function e(){var t,n,a=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=b(a.length>0&&void 0!==a[0]?a[0]:{}),e.next=4,this.c.post(this.path(),p.from(this.txnBytesToPost),t);case 4:return n=e.sent,e.abrupt("return",n.body);case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),f}(d.Z)},56949:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(24611),a=n(53755),i=n(47061),o=n(59900),s=n(76686),c=function(){function e(t,n){(0,i.Z)(this,e),this.c=t,this.query={},this.intDecoding=n||s.Z.DEFAULT}var t,n;return(0,o.Z)(e,[{key:"prepare",value:function(e){return e}},{key:"do",value:(n=(0,a.Z)((0,r.Z)().mark((function e(){var t,n,a,i=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},n={},"default"!==this.intDecoding&&(n.intDecoding=this.intDecoding),e.next=5,this.c.get(this.path(),this.query,t,n);case 5:return a=e.sent,e.abrupt("return",this.prepare(a.body));case 7:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"doRaw",value:(t=(0,a.Z)((0,r.Z)().mark((function e(){var t,n,a=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,this.c.get(this.path(),this.query,t,{},!1);case 3:return n=e.sent,e.abrupt("return",n.body);case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"setIntDecoding",value:function(e){if("default"!==e&&"safe"!==e&&"mixed"!==e&&"bigint"!==e)throw new Error("Invalid method for int decoding: ".concat(e));return this.intDecoding=e,this}}]),e}()},40267:function(e,t,n){"use strict";n.r(t),n.d(t,{ALGORAND_ZERO_ADDRESS_STRING:function(){return l},CHECKSUM_ADDRESS_ERROR_MSG:function(){return y},INVALID_MSIG_PK_ERROR_MSG:function(){return g},INVALID_MSIG_THRESHOLD_ERROR_MSG:function(){return v},INVALID_MSIG_VERSION_ERROR_MSG:function(){return m},MALFORMED_ADDRESS_ERROR_MSG:function(){return h},UNEXPECTED_PK_LEN_ERROR_MSG:function(){return A},decodeAddress:function(){return w},encodeAddress:function(){return _},fromMultisigPreImg:function(){return k},fromMultisigPreImgAddrs:function(){return S},getApplicationAddress:function(){return I},isValidAddress:function(){return x}});var r=n(84125),a=n.n(r),i=n(52103),o=n(24162),s=n(5739),c=n(62332).Buffer,u=36,f=4,d=58,l="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ",p=new Uint8Array([77,117,108,116,105,115,105,103,65,100,100,114]),b=c.from("appID"),h="address seems to be malformed",y="wrong checksum for address",m="invalid multisig version",v="bad multisig threshold",g="bad multisig public key - wrong length",A="nacl public key length is not 32 bytes";function w(e){if("string"!=typeof e||e.length!==d)throw new Error(h);var t=a().decode.asBytes(e.toString());if(t.length!==u)throw new Error(h);var n=new Uint8Array(t.slice(0,u-f)),r=new Uint8Array(t.slice(i.PUBLIC_KEY_LENGTH,u)),s=i.genericHash(n).slice(i.HASH_BYTES_LENGTH-f,i.HASH_BYTES_LENGTH);if(!o.arrayEqual(s,r))throw new Error(y);return{publicKey:n,checksum:r}}function x(e){try{w(e)}catch(e){return!1}return!0}function _(e){var t=i.genericHash(e).slice(i.PUBLIC_KEY_LENGTH-f,i.PUBLIC_KEY_LENGTH);return a().encode(o.concatArrays(e,t)).toString().slice(0,d)}function k(e){var t=e.version,n=e.threshold,r=e.pks;if(1!==t||t>255||t<0)throw new Error(m);if(0===n||0===r.length||n>r.length||n>255)throw new Error(v);var a=u-f;if(a!==i.PUBLIC_KEY_LENGTH)throw new Error(A);var o=new Uint8Array(p.length+2+a*r.length);o.set(p,0),o.set([t],p.length),o.set([n],p.length+1);for(var s=0;sBigInt("0xffffffffffffffff"))throw new Error("Input is not a 64-bit unsigned integer");var t=r.allocUnsafe(8);return t.writeBigUInt64BE(BigInt(e)),new Uint8Array(t)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"safe";if("safe"!==t&&"mixed"!==t&&"bigint"!==t)throw new Error("Unknown decodingMode option: ".concat(t));if(0===e.byteLength||e.byteLength>8)throw new Error("Data has unacceptable length. Expected length is between 1 and 8, got ".concat(e.byteLength));var n=r.allocUnsafe(8-e.byteLength);n.fill(0);var a=r.concat([n,r.from(e)]).readBigUInt64BE(),i=a>Number.MAX_SAFE_INTEGER;if("safe"===t){if(i)throw new Error("Integer exceeds maximum safe integer: ".concat(a.toString(),'. Try decoding with "mixed" or "safe" decodingMode.'));return Number(a)}return"mixed"!==t||i?a:Number(a)}},5532:function(e,t,n){"use strict";n.r(t),n.d(t,{TxGroup:function(){return l},assignGroupID:function(){return b},computeGroupID:function(){return p}});var r=n(745),a=n(47061),i=n(59900),o=n(824),s=n(52103),c=n(7018),u=n(40267),f=n(24162),d=n(62332).Buffer,l=function(){function e(t){if((0,a.Z)(this,e),this.name="Transaction group",this.tag=d.from("TG"),t.length>16){var n="".concat(t.length.toString()," transactions grouped together but max group size is ").concat(16..toString());throw Error(n)}this.txGroupHashes=t}return(0,i.Z)(e,[{key:"get_obj_for_encoding",value:function(){return{txlist:this.txGroupHashes}}},{key:"toByte",value:function(){return c.encode(this.get_obj_for_encoding())}}],[{key:"from_obj_for_encoding",value:function(e){var t=Object.create(this.prototype);t.name="Transaction group",t.tag=d.from("TG"),t.txGroupHashes=[];var n,a=(0,r.Z)(e.txlist);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.txGroupHashes.push(d.from(i))}}catch(e){a.e(e)}finally{a.f()}return t}}]),e}();function p(e){var t,n=[],a=(0,r.Z)(e);try{for(a.s();!(t=a.n()).done;){var i=t.value,c=o.instantiateTxnIfNeeded(i);n.push(c.rawTxID())}}catch(e){a.e(e)}finally{a.f()}var u=new l(n),p=u.toByte(),b=d.from(f.concatArrays(u.tag,p)),h=s.genericHash(b);return d.from(h)}function b(e,t){var n,a=p(e),i=[],s=(0,r.Z)(e);try{for(s.s();!(n=s.n()).done;){var c=n.value,f=o.instantiateTxnIfNeeded(c);t&&u.encodeAddress(f.from.publicKey)!==t||(f.group=a,i.push(f))}}catch(e){s.e(e)}finally{s.f()}return i}t.default=l},56599:function(e,t,n){"use strict";n.r(t),n.d(t,{checkByteConstBlock:function(){return m},checkIntConstBlock:function(){return y},checkProgram:function(){return h},checkPushByteOp:function(){return g},checkPushIntOp:function(){return v},langspecEvalMaxVersion:function(){return A},langspecLogicSigVersion:function(){return w},parseUvarint:function(){return u},readProgram:function(){return b}});var r,a=n(745),i=n(23680),o=JSON.parse('{"z_":6,"BV":5,"AP":[{"Opcode":0,"Name":"err","Cost":1,"Size":1,"Doc":"Fail immediately.","Groups":["Flow Control"]},{"Opcode":1,"Name":"sha256","Args":"B","Returns":"B","Cost":35,"Size":1,"Doc":"SHA256 hash of value A, yields [32]byte","Groups":["Arithmetic"]},{"Opcode":2,"Name":"keccak256","Args":"B","Returns":"B","Cost":130,"Size":1,"Doc":"Keccak256 hash of value A, yields [32]byte","Groups":["Arithmetic"]},{"Opcode":3,"Name":"sha512_256","Args":"B","Returns":"B","Cost":45,"Size":1,"Doc":"SHA512_256 hash of value A, yields [32]byte","Groups":["Arithmetic"]},{"Opcode":4,"Name":"ed25519verify","Args":"BBB","Returns":"U","Cost":1900,"Size":1,"Doc":"for (data A, signature B, pubkey C) verify the signature of (\\"ProgData\\" || program_hash || data) against the pubkey => {0 or 1}","DocExtra":"The 32 byte public key is the last element on the stack, preceded by the 64 byte signature at the second-to-last element on the stack, preceded by the data which was signed at the third-to-last element on the stack.","Groups":["Arithmetic"]},{"Opcode":5,"Name":"ecdsa_verify","Args":"BBBBB","Returns":"U","Cost":1700,"Size":2,"Doc":"for (data A, signature B, C and pubkey D, E) verify the signature of the data against the pubkey => {0 or 1}","DocExtra":"The 32 byte Y-component of a public key is the last element on the stack, preceded by X-component of a pubkey, preceded by S and R components of a signature, preceded by the data that is fifth element on the stack. All values are big-endian encoded. The signed data must be 32 bytes long, and signatures in lower-S form are only accepted.","ImmediateNote":"{uint8 curve index}","Groups":["Arithmetic"]},{"Opcode":6,"Name":"ecdsa_pk_decompress","Args":"B","Returns":"BB","Cost":650,"Size":2,"Doc":"decompress pubkey A into components X, Y","DocExtra":"The 33 byte public key in a compressed form to be decompressed into X and Y (top) components. All values are big-endian encoded.","ImmediateNote":"{uint8 curve index}","Groups":["Arithmetic"]},{"Opcode":7,"Name":"ecdsa_pk_recover","Args":"BUBB","Returns":"BB","Cost":2000,"Size":2,"Doc":"for (data A, recovery id B, signature C, D) recover a public key","DocExtra":"S (top) and R elements of a signature, recovery id and data (bottom) are expected on the stack and used to deriver a public key. All values are big-endian encoded. The signed data must be 32 bytes long.","ImmediateNote":"{uint8 curve index}","Groups":["Arithmetic"]},{"Opcode":8,"Name":"+","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A plus B. Fail on overflow.","DocExtra":"Overflow is an error condition which halts execution and fails the transaction. Full precision is available from `addw`.","Groups":["Arithmetic"]},{"Opcode":9,"Name":"-","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A minus B. Fail if B > A.","Groups":["Arithmetic"]},{"Opcode":10,"Name":"/","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A divided by B (truncated division). Fail if B == 0.","DocExtra":"`divmodw` is available to divide the two-element values produced by `mulw` and `addw`.","Groups":["Arithmetic"]},{"Opcode":11,"Name":"*","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A times B. Fail on overflow.","DocExtra":"Overflow is an error condition which halts execution and fails the transaction. Full precision is available from `mulw`.","Groups":["Arithmetic"]},{"Opcode":12,"Name":"<","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A less than B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":13,"Name":">","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A greater than B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":14,"Name":"<=","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A less than or equal to B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":15,"Name":">=","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A greater than or equal to B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":16,"Name":"&&","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A is not zero and B is not zero => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":17,"Name":"||","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A is not zero or B is not zero => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":18,"Name":"==","Args":"..","Returns":"U","Cost":1,"Size":1,"Doc":"A is equal to B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":19,"Name":"!=","Args":"..","Returns":"U","Cost":1,"Size":1,"Doc":"A is not equal to B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":20,"Name":"!","Args":"U","Returns":"U","Cost":1,"Size":1,"Doc":"A == 0 yields 1; else 0","Groups":["Arithmetic"]},{"Opcode":21,"Name":"len","Args":"B","Returns":"U","Cost":1,"Size":1,"Doc":"yields length of byte value A","Groups":["Arithmetic"]},{"Opcode":22,"Name":"itob","Args":"U","Returns":"B","Cost":1,"Size":1,"Doc":"converts uint64 A to big endian bytes","Groups":["Arithmetic"]},{"Opcode":23,"Name":"btoi","Args":"B","Returns":"U","Cost":1,"Size":1,"Doc":"converts bytes A as big endian to uint64","DocExtra":"`btoi` fails if the input is longer than 8 bytes.","Groups":["Arithmetic"]},{"Opcode":24,"Name":"%","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A modulo B. Fail if B == 0.","Groups":["Arithmetic"]},{"Opcode":25,"Name":"|","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A bitwise-or B","Groups":["Arithmetic"]},{"Opcode":26,"Name":"&","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A bitwise-and B","Groups":["Arithmetic"]},{"Opcode":27,"Name":"^","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A bitwise-xor B","Groups":["Arithmetic"]},{"Opcode":28,"Name":"~","Args":"U","Returns":"U","Cost":1,"Size":1,"Doc":"bitwise invert value A","Groups":["Arithmetic"]},{"Opcode":29,"Name":"mulw","Args":"UU","Returns":"UU","Cost":1,"Size":1,"Doc":"A times B as a 128-bit result in two uint64s. X is the high 64 bits, Y is the low","Groups":["Arithmetic"]},{"Opcode":30,"Name":"addw","Args":"UU","Returns":"UU","Cost":1,"Size":1,"Doc":"A plus B as a 128-bit result. X is the carry-bit, Y is the low-order 64 bits.","Groups":["Arithmetic"]},{"Opcode":31,"Name":"divmodw","Args":"UUUU","Returns":"UUUU","Cost":20,"Size":1,"Doc":"W,X = (A,B / C,D); Y,Z = (A,B modulo C,D)","DocExtra":"The notation J,K indicates that two uint64 values J and K are interpreted as a uint128 value, with J as the high uint64 and K the low.","Groups":["Arithmetic"]},{"Opcode":32,"Name":"intcblock","Cost":1,"Size":0,"Doc":"prepare block of uint64 constants for use by intc","DocExtra":"`intcblock` loads following program bytes into an array of integer constants in the evaluator. These integer constants can be referred to by `intc` and `intc_*` which will push the value onto the stack. Subsequent calls to `intcblock` reset and replace the integer constants available to the script.","ImmediateNote":"{varuint length} [{varuint value}, ...]","Groups":["Loading Values"]},{"Opcode":33,"Name":"intc","Returns":"U","Cost":1,"Size":2,"Doc":"Ith constant from intcblock","ImmediateNote":"{uint8 int constant index}","Groups":["Loading Values"]},{"Opcode":34,"Name":"intc_0","Returns":"U","Cost":1,"Size":1,"Doc":"constant 0 from intcblock","Groups":["Loading Values"]},{"Opcode":35,"Name":"intc_1","Returns":"U","Cost":1,"Size":1,"Doc":"constant 1 from intcblock","Groups":["Loading Values"]},{"Opcode":36,"Name":"intc_2","Returns":"U","Cost":1,"Size":1,"Doc":"constant 2 from intcblock","Groups":["Loading Values"]},{"Opcode":37,"Name":"intc_3","Returns":"U","Cost":1,"Size":1,"Doc":"constant 3 from intcblock","Groups":["Loading Values"]},{"Opcode":38,"Name":"bytecblock","Cost":1,"Size":0,"Doc":"prepare block of byte-array constants for use by bytec","DocExtra":"`bytecblock` loads the following program bytes into an array of byte-array constants in the evaluator. These constants can be referred to by `bytec` and `bytec_*` which will push the value onto the stack. Subsequent calls to `bytecblock` reset and replace the bytes constants available to the script.","ImmediateNote":"{varuint length} [({varuint value length} bytes), ...]","Groups":["Loading Values"]},{"Opcode":39,"Name":"bytec","Returns":"B","Cost":1,"Size":2,"Doc":"Ith constant from bytecblock","ImmediateNote":"{uint8 byte constant index}","Groups":["Loading Values"]},{"Opcode":40,"Name":"bytec_0","Returns":"B","Cost":1,"Size":1,"Doc":"constant 0 from bytecblock","Groups":["Loading Values"]},{"Opcode":41,"Name":"bytec_1","Returns":"B","Cost":1,"Size":1,"Doc":"constant 1 from bytecblock","Groups":["Loading Values"]},{"Opcode":42,"Name":"bytec_2","Returns":"B","Cost":1,"Size":1,"Doc":"constant 2 from bytecblock","Groups":["Loading Values"]},{"Opcode":43,"Name":"bytec_3","Returns":"B","Cost":1,"Size":1,"Doc":"constant 3 from bytecblock","Groups":["Loading Values"]},{"Opcode":44,"Name":"arg","Returns":"B","Cost":1,"Size":2,"Doc":"Nth LogicSig argument","ImmediateNote":"{uint8 arg index N}","Groups":["Loading Values"]},{"Opcode":45,"Name":"arg_0","Returns":"B","Cost":1,"Size":1,"Doc":"LogicSig argument 0","Groups":["Loading Values"]},{"Opcode":46,"Name":"arg_1","Returns":"B","Cost":1,"Size":1,"Doc":"LogicSig argument 1","Groups":["Loading Values"]},{"Opcode":47,"Name":"arg_2","Returns":"B","Cost":1,"Size":1,"Doc":"LogicSig argument 2","Groups":["Loading Values"]},{"Opcode":48,"Name":"arg_3","Returns":"B","Cost":1,"Size":1,"Doc":"LogicSig argument 3","Groups":["Loading Values"]},{"Opcode":49,"Name":"txn","Returns":".","Cost":1,"Size":2,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of current transaction","DocExtra":"FirstValidTime causes the program to fail. The field is reserved for future use.","ImmediateNote":"{uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":50,"Name":"global","Returns":".","Cost":1,"Size":2,"Doc":"global field F","ImmediateNote":"{uint8 global field index}","Groups":["Loading Values"]},{"Opcode":51,"Name":"gtxn","Returns":".","Cost":1,"Size":3,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of the Tth transaction in the current group","DocExtra":"for notes on transaction fields available, see `txn`. If this transaction is _i_ in the group, `gtxn i field` is equivalent to `txn field`.","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":52,"Name":"load","Returns":".","Cost":1,"Size":2,"Doc":"Ith scratch space value. All scratch spaces are 0 at program start.","ImmediateNote":"{uint8 position in scratch space to load from}","Groups":["Loading Values"]},{"Opcode":53,"Name":"store","Args":".","Cost":1,"Size":2,"Doc":"store A to the Ith scratch space","ImmediateNote":"{uint8 position in scratch space to store to}","Groups":["Loading Values"]},{"Opcode":54,"Name":"txna","Returns":".","Cost":1,"Size":3,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F of the current transaction","ImmediateNote":"{uint8 transaction field index} {uint8 transaction field array index}","Groups":["Loading Values"]},{"Opcode":55,"Name":"gtxna","Returns":".","Cost":1,"Size":4,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F from the Tth transaction in the current group","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index} {uint8 transaction field array index}","Groups":["Loading Values"]},{"Opcode":56,"Name":"gtxns","Args":"U","Returns":".","Cost":1,"Size":2,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of the Ath transaction in the current group","DocExtra":"for notes on transaction fields available, see `txn`. If top of stack is _i_, `gtxns field` is equivalent to `gtxn _i_ field`. gtxns exists so that _i_ can be calculated, often based on the index of the current transaction.","ImmediateNote":"{uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":57,"Name":"gtxnsa","Args":"U","Returns":".","Cost":1,"Size":3,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F from the Ath transaction in the current group","ImmediateNote":"{uint8 transaction field index} {uint8 transaction field array index}","Groups":["Loading Values"]},{"Opcode":58,"Name":"gload","Returns":".","Cost":1,"Size":3,"Doc":"Ith scratch space value of the Tth transaction in the current group","DocExtra":"`gload` fails unless the requested transaction is an ApplicationCall and T < GroupIndex.","ImmediateNote":"{uint8 transaction group index} {uint8 position in scratch space to load from}","Groups":["Loading Values"]},{"Opcode":59,"Name":"gloads","Args":"U","Returns":".","Cost":1,"Size":2,"Doc":"Ith scratch space value of the Ath transaction in the current group","DocExtra":"`gloads` fails unless the requested transaction is an ApplicationCall and A < GroupIndex.","ImmediateNote":"{uint8 position in scratch space to load from}","Groups":["Loading Values"]},{"Opcode":60,"Name":"gaid","Returns":"U","Cost":1,"Size":2,"Doc":"ID of the asset or application created in the Tth transaction of the current group","DocExtra":"`gaid` fails unless the requested transaction created an asset or application and T < GroupIndex.","ImmediateNote":"{uint8 transaction group index}","Groups":["Loading Values"]},{"Opcode":61,"Name":"gaids","Args":"U","Returns":"U","Cost":1,"Size":1,"Doc":"ID of the asset or application created in the Ath transaction of the current group","DocExtra":"`gaids` fails unless the requested transaction created an asset or application and A < GroupIndex.","Groups":["Loading Values"]},{"Opcode":62,"Name":"loads","Args":"U","Returns":".","Cost":1,"Size":1,"Doc":"Ath scratch space value. All scratch spaces are 0 at program start.","Groups":["Loading Values"]},{"Opcode":63,"Name":"stores","Args":"U.","Cost":1,"Size":1,"Doc":"store B to the Ath scratch space","Groups":["Loading Values"]},{"Opcode":64,"Name":"bnz","Args":"U","Cost":1,"Size":3,"Doc":"branch to TARGET if value A is not zero","DocExtra":"The `bnz` instruction opcode 0x40 is followed by two immediate data bytes which are a high byte first and low byte second which together form a 16 bit offset which the instruction may branch to. For a bnz instruction at `pc`, if the last element of the stack is not zero then branch to instruction at `pc + 3 + N`, else proceed to next instruction at `pc + 3`. Branch targets must be aligned instructions. (e.g. Branching to the second byte of a 2 byte op will be rejected.) Starting at v4, the offset is treated as a signed 16 bit integer allowing for backward branches and looping. In prior version (v1 to v3), branch offsets are limited to forward branches only, 0-0x7fff.\\n\\nAt v2 it became allowed to branch to the end of the program exactly after the last instruction: bnz to byte N (with 0-indexing) was illegal for a TEAL program with N bytes before v2, and is legal after it. This change eliminates the need for a last instruction of no-op as a branch target at the end. (Branching beyond the end--in other words, to a byte larger than N--is still illegal and will cause the program to fail.)","ImmediateNote":"{int16 branch offset, big endian}","Groups":["Flow Control"]},{"Opcode":65,"Name":"bz","Args":"U","Cost":1,"Size":3,"Doc":"branch to TARGET if value A is zero","DocExtra":"See `bnz` for details on how branches work. `bz` inverts the behavior of `bnz`.","ImmediateNote":"{int16 branch offset, big endian}","Groups":["Flow Control"]},{"Opcode":66,"Name":"b","Cost":1,"Size":3,"Doc":"branch unconditionally to TARGET","DocExtra":"See `bnz` for details on how branches work. `b` always jumps to the offset.","ImmediateNote":"{int16 branch offset, big endian}","Groups":["Flow Control"]},{"Opcode":67,"Name":"return","Args":"U","Cost":1,"Size":1,"Doc":"use A as success value; end","Groups":["Flow Control"]},{"Opcode":68,"Name":"assert","Args":"U","Cost":1,"Size":1,"Doc":"immediately fail unless A is a non-zero number","Groups":["Flow Control"]},{"Opcode":72,"Name":"pop","Args":".","Cost":1,"Size":1,"Doc":"discard A","Groups":["Flow Control"]},{"Opcode":73,"Name":"dup","Args":".","Returns":"..","Cost":1,"Size":1,"Doc":"duplicate A","Groups":["Flow Control"]},{"Opcode":74,"Name":"dup2","Args":"..","Returns":"....","Cost":1,"Size":1,"Doc":"duplicate A and B","Groups":["Flow Control"]},{"Opcode":75,"Name":"dig","Args":".","Returns":"..","Cost":1,"Size":2,"Doc":"Nth value from the top of the stack. dig 0 is equivalent to dup","ImmediateNote":"{uint8 depth}","Groups":["Flow Control"]},{"Opcode":76,"Name":"swap","Args":"..","Returns":"..","Cost":1,"Size":1,"Doc":"swaps A and B on stack","Groups":["Flow Control"]},{"Opcode":77,"Name":"select","Args":"..U","Returns":".","Cost":1,"Size":1,"Doc":"selects one of two values based on top-of-stack: B if C != 0, else A","Groups":["Flow Control"]},{"Opcode":78,"Name":"cover","Args":".","Returns":".","Cost":1,"Size":2,"Doc":"remove top of stack, and place it deeper in the stack such that N elements are above it. Fails if stack depth <= N.","ImmediateNote":"{uint8 depth}","Groups":["Flow Control"]},{"Opcode":79,"Name":"uncover","Args":".","Returns":".","Cost":1,"Size":2,"Doc":"remove the value at depth N in the stack and shift above items down so the Nth deep value is on top of the stack. Fails if stack depth <= N.","ImmediateNote":"{uint8 depth}","Groups":["Flow Control"]},{"Opcode":80,"Name":"concat","Args":"BB","Returns":"B","Cost":1,"Size":1,"Doc":"join A and B","DocExtra":"`concat` fails if the result would be greater than 4096 bytes.","Groups":["Arithmetic"]},{"Opcode":81,"Name":"substring","Args":"B","Returns":"B","Cost":1,"Size":3,"Doc":"A range of bytes from A starting at S up to but not including E. If E < S, or either is larger than the array length, the program fails","ImmediateNote":"{uint8 start position} {uint8 end position}","Groups":["Byte Array Manipulation"]},{"Opcode":82,"Name":"substring3","Args":"BUU","Returns":"B","Cost":1,"Size":1,"Doc":"A range of bytes from A starting at B up to but not including C. If C < B, or either is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":83,"Name":"getbit","Args":".U","Returns":"U","Cost":1,"Size":1,"Doc":"Bth bit of (byte-array or integer) A.","DocExtra":"see explanation of bit ordering in setbit","Groups":["Arithmetic"]},{"Opcode":84,"Name":"setbit","Args":".UU","Returns":".","Cost":1,"Size":1,"Doc":"Copy of (byte-array or integer) A, with the Bth bit set to (0 or 1) C","DocExtra":"When A is a uint64, index 0 is the least significant bit. Setting bit 3 to 1 on the integer 0 yields 8, or 2^3. When A is a byte array, index 0 is the leftmost bit of the leftmost byte. Setting bits 0 through 11 to 1 in a 4-byte-array of 0s yields the byte array 0xfff00000. Setting bit 3 to 1 on the 1-byte-array 0x00 yields the byte array 0x10.","Groups":["Arithmetic"]},{"Opcode":85,"Name":"getbyte","Args":"BU","Returns":"U","Cost":1,"Size":1,"Doc":"Bth byte of A, as an integer","Groups":["Arithmetic"]},{"Opcode":86,"Name":"setbyte","Args":"BUU","Returns":"B","Cost":1,"Size":1,"Doc":"Copy of A with the Bth byte set to small integer (between 0..255) C","Groups":["Arithmetic"]},{"Opcode":87,"Name":"extract","Args":"B","Returns":"B","Cost":1,"Size":3,"Doc":"A range of bytes from A starting at S up to but not including S+L. If L is 0, then extract to the end of the string. If S or S+L is larger than the array length, the program fails","ImmediateNote":"{uint8 start position} {uint8 length}","Groups":["Byte Array Manipulation"]},{"Opcode":88,"Name":"extract3","Args":"BUU","Returns":"B","Cost":1,"Size":1,"Doc":"A range of bytes from A starting at B up to but not including B+C. If B+C is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":89,"Name":"extract_uint16","Args":"BU","Returns":"U","Cost":1,"Size":1,"Doc":"A uint16 formed from a range of big-endian bytes from A starting at B up to but not including B+2. If B+2 is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":90,"Name":"extract_uint32","Args":"BU","Returns":"U","Cost":1,"Size":1,"Doc":"A uint32 formed from a range of big-endian bytes from A starting at B up to but not including B+4. If B+4 is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":91,"Name":"extract_uint64","Args":"BU","Returns":"U","Cost":1,"Size":1,"Doc":"A uint64 formed from a range of big-endian bytes from A starting at B up to but not including B+8. If B+8 is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":96,"Name":"balance","Args":".","Returns":"U","Cost":1,"Size":1,"Doc":"get balance for account A, in microalgos. The balance is observed after the effects of previous transactions in the group, and after the fee for the current transaction is deducted.","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), _available_ application id (or, since v4, a Txn.ForeignApps offset). Return: value.","Groups":["State Access"]},{"Opcode":97,"Name":"app_opted_in","Args":".U","Returns":"U","Cost":1,"Size":1,"Doc":"1 if account A is opted in to application B, else 0","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), _available_ application id (or, since v4, a Txn.ForeignApps offset). Return: 1 if opted in and 0 otherwise.","Groups":["State Access"]},{"Opcode":98,"Name":"app_local_get","Args":".B","Returns":".","Cost":1,"Size":1,"Doc":"local state of the key B in the current application in account A","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), state key. Return: value. The value is zero (of type uint64) if the key does not exist.","Groups":["State Access"]},{"Opcode":99,"Name":"app_local_get_ex","Args":".UB","Returns":".U","Cost":1,"Size":1,"Doc":"X is the local state of application B, key C in account A. Y is 1 if key existed, else 0","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), _available_ application id (or, since v4, a Txn.ForeignApps offset), state key. Return: did_exist flag (top of the stack, 1 if the application and key existed and 0 otherwise), value. The value is zero (of type uint64) if the key does not exist.","Groups":["State Access"]},{"Opcode":100,"Name":"app_global_get","Args":"B","Returns":".","Cost":1,"Size":1,"Doc":"global state of the key A in the current application","DocExtra":"params: state key. Return: value. The value is zero (of type uint64) if the key does not exist.","Groups":["State Access"]},{"Opcode":101,"Name":"app_global_get_ex","Args":"UB","Returns":".U","Cost":1,"Size":1,"Doc":"X is the global state of application A, key B. Y is 1 if key existed, else 0","DocExtra":"params: Txn.ForeignApps offset (or, since v4, an _available_ application id), state key. Return: did_exist flag (top of the stack, 1 if the application and key existed and 0 otherwise), value. The value is zero (of type uint64) if the key does not exist.","Groups":["State Access"]},{"Opcode":102,"Name":"app_local_put","Args":".B.","Cost":1,"Size":1,"Doc":"write C to key B in account A\'s local state of the current application","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), state key, value.","Groups":["State Access"]},{"Opcode":103,"Name":"app_global_put","Args":"B.","Cost":1,"Size":1,"Doc":"write B to key A in the global state of the current application","Groups":["State Access"]},{"Opcode":104,"Name":"app_local_del","Args":".B","Cost":1,"Size":1,"Doc":"delete key B from account A\'s local state of the current application","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), state key.\\n\\nDeleting a key which is already absent has no effect on the application local state. (In particular, it does _not_ cause the program to fail.)","Groups":["State Access"]},{"Opcode":105,"Name":"app_global_del","Args":"B","Cost":1,"Size":1,"Doc":"delete key A from the global state of the current application","DocExtra":"params: state key.\\n\\nDeleting a key which is already absent has no effect on the application global state. (In particular, it does _not_ cause the program to fail.)","Groups":["State Access"]},{"Opcode":112,"Name":"asset_holding_get","Args":".U","Returns":".U","Cost":1,"Size":2,"ArgEnum":["AssetBalance","AssetFrozen"],"ArgEnumTypes":"UU","Doc":"X is field F from account A\'s holding of asset B. Y is 1 if A is opted into B, else 0","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ address), asset id (or, since v4, a Txn.ForeignAssets offset). Return: did_exist flag (1 if the asset existed and 0 otherwise), value.","ImmediateNote":"{uint8 asset holding field index}","Groups":["State Access"]},{"Opcode":113,"Name":"asset_params_get","Args":"U","Returns":".U","Cost":1,"Size":2,"ArgEnum":["AssetTotal","AssetDecimals","AssetDefaultFrozen","AssetUnitName","AssetName","AssetURL","AssetMetadataHash","AssetManager","AssetReserve","AssetFreeze","AssetClawback","AssetCreator"],"ArgEnumTypes":"UUUBBBBBBBBB","Doc":"X is field F from asset A. Y is 1 if A exists, else 0","DocExtra":"params: Txn.ForeignAssets offset (or, since v4, an _available_ asset id. Return: did_exist flag (1 if the asset existed and 0 otherwise), value.","ImmediateNote":"{uint8 asset params field index}","Groups":["State Access"]},{"Opcode":114,"Name":"app_params_get","Args":"U","Returns":".U","Cost":1,"Size":2,"ArgEnum":["AppApprovalProgram","AppClearStateProgram","AppGlobalNumUint","AppGlobalNumByteSlice","AppLocalNumUint","AppLocalNumByteSlice","AppExtraProgramPages","AppCreator","AppAddress"],"ArgEnumTypes":"BBUUUUUBB","Doc":"X is field F from app A. Y is 1 if A exists, else 0","DocExtra":"params: Txn.ForeignApps offset or an _available_ app id. Return: did_exist flag (1 if the application existed and 0 otherwise), value.","ImmediateNote":"{uint8 app params field index}","Groups":["State Access"]},{"Opcode":115,"Name":"acct_params_get","Args":".","Returns":".U","Cost":1,"Size":2,"Doc":"X is field F from account A. Y is 1 if A owns positive algos, else 0","ImmediateNote":"{uint8 account params field index}","Groups":["State Access"]},{"Opcode":120,"Name":"min_balance","Args":".","Returns":"U","Cost":1,"Size":1,"Doc":"get minimum required balance for account A, in microalgos. Required balance is affected by [ASA](https://developer.algorand.org/docs/features/asa/#assets-overview) and [App](https://developer.algorand.org/docs/features/asc1/stateful/#minimum-balance-requirement-for-a-smart-contract) usage. When creating or opting into an app, the minimum balance grows before the app code runs, therefore the increase is visible there. When deleting or closing out, the minimum balance decreases after the app executes.","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), _available_ application id (or, since v4, a Txn.ForeignApps offset). Return: value.","Groups":["State Access"]},{"Opcode":128,"Name":"pushbytes","Returns":"B","Cost":1,"Size":0,"Doc":"immediate BYTES","DocExtra":"pushbytes args are not added to the bytecblock during assembly processes","ImmediateNote":"{varuint length} {bytes}","Groups":["Loading Values"]},{"Opcode":129,"Name":"pushint","Returns":"U","Cost":1,"Size":0,"Doc":"immediate UINT","DocExtra":"pushint args are not added to the intcblock during assembly processes","ImmediateNote":"{varuint int}","Groups":["Loading Values"]},{"Opcode":136,"Name":"callsub","Cost":1,"Size":3,"Doc":"branch unconditionally to TARGET, saving the next instruction on the call stack","DocExtra":"The call stack is separate from the data stack. Only `callsub` and `retsub` manipulate it.","ImmediateNote":"{int16 branch offset, big endian}","Groups":["Flow Control"]},{"Opcode":137,"Name":"retsub","Cost":1,"Size":1,"Doc":"pop the top instruction from the call stack and branch to it","DocExtra":"The call stack is separate from the data stack. Only `callsub` and `retsub` manipulate it.","Groups":["Flow Control"]},{"Opcode":144,"Name":"shl","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A times 2^B, modulo 2^64","Groups":["Arithmetic"]},{"Opcode":145,"Name":"shr","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A divided by 2^B","Groups":["Arithmetic"]},{"Opcode":146,"Name":"sqrt","Args":"U","Returns":"U","Cost":4,"Size":1,"Doc":"The largest integer I such that I^2 <= A","Groups":["Arithmetic"]},{"Opcode":147,"Name":"bitlen","Args":".","Returns":"U","Cost":1,"Size":1,"Doc":"The highest set bit in A. If A is a byte-array, it is interpreted as a big-endian unsigned integer. bitlen of 0 is 0, bitlen of 8 is 4","DocExtra":"bitlen interprets arrays as big-endian integers, unlike setbit/getbit","Groups":["Arithmetic"]},{"Opcode":148,"Name":"exp","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A raised to the Bth power. Fail if A == B == 0 and on overflow","Groups":["Arithmetic"]},{"Opcode":149,"Name":"expw","Args":"UU","Returns":"UU","Cost":10,"Size":1,"Doc":"A raised to the Bth power as a 128-bit result in two uint64s. X is the high 64 bits, Y is the low. Fail if A == B == 0 or if the results exceeds 2^128-1","Groups":["Arithmetic"]},{"Opcode":150,"Name":"bsqrt","Args":"B","Returns":"B","Cost":40,"Size":1,"Doc":"The largest integer I such that I^2 <= A. A and I are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":151,"Name":"divw","Args":"UUU","Returns":"U","Cost":1,"Size":1,"Doc":"A,B / C. Fail if C == 0 or if result overflows.","DocExtra":"The notation A,B indicates that A and B are interpreted as a uint128 value, with A as the high uint64 and B the low.","Groups":["Arithmetic"]},{"Opcode":160,"Name":"b+","Args":"BB","Returns":"B","Cost":10,"Size":1,"Doc":"A plus B. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":161,"Name":"b-","Args":"BB","Returns":"B","Cost":10,"Size":1,"Doc":"A minus B. A and B are interpreted as big-endian unsigned integers. Fail on underflow.","Groups":["Byte Array Arithmetic"]},{"Opcode":162,"Name":"b/","Args":"BB","Returns":"B","Cost":20,"Size":1,"Doc":"A divided by B (truncated division). A and B are interpreted as big-endian unsigned integers. Fail if B is zero.","Groups":["Byte Array Arithmetic"]},{"Opcode":163,"Name":"b*","Args":"BB","Returns":"B","Cost":20,"Size":1,"Doc":"A times B. A and B are interpreted as big-endian unsigned integers.","Groups":["Byte Array Arithmetic"]},{"Opcode":164,"Name":"b<","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is less than B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":165,"Name":"b>","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is greater than B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":166,"Name":"b<=","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is less than or equal to B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":167,"Name":"b>=","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is greater than or equal to B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":168,"Name":"b==","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is equal to B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":169,"Name":"b!=","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"0 if A is equal to B, else 1. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":170,"Name":"b%","Args":"BB","Returns":"B","Cost":20,"Size":1,"Doc":"A modulo B. A and B are interpreted as big-endian unsigned integers. Fail if B is zero.","Groups":["Byte Array Arithmetic"]},{"Opcode":171,"Name":"b|","Args":"BB","Returns":"B","Cost":6,"Size":1,"Doc":"A bitwise-or B. A and B are zero-left extended to the greater of their lengths","Groups":["Byte Array Logic"]},{"Opcode":172,"Name":"b&","Args":"BB","Returns":"B","Cost":6,"Size":1,"Doc":"A bitwise-and B. A and B are zero-left extended to the greater of their lengths","Groups":["Byte Array Logic"]},{"Opcode":173,"Name":"b^","Args":"BB","Returns":"B","Cost":6,"Size":1,"Doc":"A bitwise-xor B. A and B are zero-left extended to the greater of their lengths","Groups":["Byte Array Logic"]},{"Opcode":174,"Name":"b~","Args":"B","Returns":"B","Cost":4,"Size":1,"Doc":"A with all bits inverted","Groups":["Byte Array Logic"]},{"Opcode":175,"Name":"bzero","Args":"U","Returns":"B","Cost":1,"Size":1,"Doc":"zero filled byte-array of length A","Groups":["Loading Values"]},{"Opcode":176,"Name":"log","Args":"B","Cost":1,"Size":1,"Doc":"write A to log state of the current application","DocExtra":"`log` fails if called more than MaxLogCalls times in a program, or if the sum of logged bytes exceeds 1024 bytes.","Groups":["State Access"]},{"Opcode":177,"Name":"itxn_begin","Cost":1,"Size":1,"Doc":"begin preparation of a new inner transaction in a new transaction group","DocExtra":"`itxn_begin` initializes Sender to the application address; Fee to the minimum allowable, taking into account MinTxnFee and credit from overpaying in earlier transactions; FirstValid/LastValid to the values in the invoking transaction, and all other fields to zero or empty values.","Groups":["Inner Transactions"]},{"Opcode":178,"Name":"itxn_field","Args":".","Cost":1,"Size":2,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"set field F of the current inner transaction to A","DocExtra":"`itxn_field` fails if A is of the wrong type for F, including a byte array of the wrong size for use as an address when F is an address field. `itxn_field` also fails if A is an account, asset, or app that is not _available_, or an attempt is made extend an array field beyond the limit imposed by consensus parameters. (Addresses set into asset params of acfg transactions need not be _available_.)","ImmediateNote":"{uint8 transaction field index}","Groups":["Inner Transactions"]},{"Opcode":179,"Name":"itxn_submit","Cost":1,"Size":1,"Doc":"execute the current inner transaction group. Fail if executing this group would exceed the inner transaction limit, or if any transaction in the group fails.","DocExtra":"`itxn_submit` resets the current transaction so that it can not be resubmitted. A new `itxn_begin` is required to prepare another inner transaction.","Groups":["Inner Transactions"]},{"Opcode":180,"Name":"itxn","Returns":".","Cost":1,"Size":2,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of the last inner transaction","ImmediateNote":"{uint8 transaction field index}","Groups":["Inner Transactions"]},{"Opcode":181,"Name":"itxna","Returns":".","Cost":1,"Size":3,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F of the last inner transaction","ImmediateNote":"{uint8 transaction field index} {uint8 transaction field array index}","Groups":["Inner Transactions"]},{"Opcode":182,"Name":"itxn_next","Cost":1,"Size":1,"Doc":"begin preparation of a new inner transaction in the same transaction group","DocExtra":"`itxn_next` initializes the transaction exactly as `itxn_begin` does","Groups":["Inner Transactions"]},{"Opcode":183,"Name":"gitxn","Returns":".","Cost":1,"Size":3,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of the Tth transaction in the last inner group submitted","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index}","Groups":["Inner Transactions"]},{"Opcode":184,"Name":"gitxna","Returns":".","Cost":1,"Size":4,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F from the Tth transaction in the last inner group submitted","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index} {uint8 transaction field array index}","Groups":["Inner Transactions"]},{"Opcode":192,"Name":"txnas","Args":"U","Returns":".","Cost":1,"Size":2,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ath value of the array field F of the current transaction","ImmediateNote":"{uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":193,"Name":"gtxnas","Args":"U","Returns":".","Cost":1,"Size":3,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ath value of the array field F from the Tth transaction in the current group","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":194,"Name":"gtxnsas","Args":"UU","Returns":".","Cost":1,"Size":2,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Bth value of the array field F from the Ath transaction in the current group","ImmediateNote":"{uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":195,"Name":"args","Args":"U","Returns":"B","Cost":1,"Size":1,"Doc":"Ath LogicSig argument","Groups":["Loading Values"]},{"Opcode":196,"Name":"gloadss","Args":"UU","Returns":".","Cost":1,"Size":1,"Doc":"Bth scratch space value of the Ath transaction in the current group","Groups":["Loading Values"]},{"Opcode":197,"Name":"itxnas","Args":"U","Returns":".","Cost":1,"Size":2,"Doc":"Ath value of the array field F of the last inner transaction","ImmediateNote":"{uint8 transaction field index}","Groups":["Inner Transactions"]},{"Opcode":198,"Name":"gitxnas","Args":"U","Returns":".","Cost":1,"Size":3,"Doc":"Ath value of the array field F from the Tth transaction in the last inner group submitted","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index}","Groups":["Inner Transactions"]}]}'),s=2e4,c=1e3;function u(e){for(var t=0,n=0,r=0;r9||9===r&&a>1?[0,-(r+1)]:[t|a<o.z_)throw new Error("unsupported version");var m,v=0,g=e.length,A=(0,a.Z)(t);try{for(A.s();!(m=A.n()).done;)g+=m.value.length}catch(e){A.e(e)}finally{A.f()}if(g>c)throw new Error("program too long");if(!r){r={};var w,x=(0,a.Z)(o.AP);try{for(x.s();!(w=x.n()).done;){var _=w.value;r[_.Opcode]=_}}catch(e){x.e(e)}finally{x.f()}}for(var k=y,S=[],I=[];ks)throw new Error("program too costly for version < 4. consider using v4.");return[S,I,!0]}function h(e,t){var n=b(e,t);return(0,i.Z)(n,3)[2]}function y(e,t){var n=f(e,t);return(0,i.Z)(n,1)[0]}function m(e,t){var n=d(e,t);return(0,i.Z)(n,1)[0]}function v(e,t){var n=l(e,t);return(0,i.Z)(n,1)[0]}function g(e,t){var n=p(e,t);return(0,i.Z)(n,1)[0]}var A=o.z_,w=o.BV},16771:function(e,t,n){var r=n(62332).Buffer,a=n(63298).default,i=n(51795).default,o=n(40267),s=n(7018),c=n(5532),u=n(56599),f=n(18024),d=n(52103),l=n(99140),p=n(824),b=function(){"use strict";function e(t,n,i,s,c,u){if(a(this,e),!Number.isSafeInteger(n)||n<0)throw Error("amount must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(i)||i<0)throw Error("firstValid must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(s)||s<0)throw Error("lastValid must be a positive number and smaller than 2^53-1");if(void 0===c&&(c=o.ALGORAND_ZERO_ADDRESS_STRING),void 0===u){var p=d.randomBytes(32);u=r.from(p).toString("base64")}var b=r.from("ASAFAgEHBgUmAyD+vKC7FEpaTqe0OKRoGsgObKEFvLYH/FZTJclWlfaiEyDmmpYeby1feshmB5JlUr6YI17TM2PKiJGLuck4qRW2+SB/g7Flf/H8U7ktwYFIodZd/C1LH6PWdyhK3dIAEm2QaTIEIhIzABAjEhAzAAcxABIQMwAIMQESEDEWIxIQMRAjEhAxBygSEDEJKRIQMQgkEhAxAiUSEDEEIQQSEDEGKhIQ","base64"),h=[n,i,s,t,c,u],y=[l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.ADDRESS,l.valTypes.ADDRESS,l.valTypes.BASE64],m=l.inject(b,[5,6,7,11,44,76],h,y);this.programBytes=m;var v=new f.LogicSig(m,void 0);this.address=v.address()}return i(e,[{key:"getProgram",value:function(){return this.programBytes}},{key:"getAddress",value:function(){return this.address}}]),e}();e.exports={DynamicFee:b,getDynamicFeeTransactions:function(e,t,n,r){if(!t.verify(o.decodeAddress(e.from).publicKey))throw new Error("invalid signature");e.fee=r,e.feev)throw new Error("final fee of payment transaction".concat(g.fee.toString(),"greater than transaction max fee").concat(v.toString()));return u.signLogicSigTransaction(t,m)}}},92335:function(e,t,n){var r=n(16771),a=n(66871),i=n(82908),o=n(83983),s=n(18995);e.exports={DynamicFee:r.DynamicFee,getDynamicFeeTransactions:r.getDynamicFeeTransactions,signDynamicFee:r.signDynamicFee,HTLC:a.HTLC,signTransactionWithHTLCUnlock:a.signTransactionWithHTLCUnlock,LimitOrder:i.LimitOrder,getSwapAssetsTransaction:i.getSwapAssetsTransaction,Split:o.Split,getSplitFundsTransaction:o.getSplitFundsTransaction,PeriodicPayment:s.PeriodicPayment,getPeriodicPaymentWithdrawalTransaction:s.getPeriodicPaymentWithdrawalTransaction}},82908:function(e,t,n){var r=n(62332).Buffer,a=n(63298).default,i=n(51795).default,o=n(40267),s=n(50598),c=n(5532),u=n(56599),f=n(18024),d=n(52103),l=n(99140),p=n(24162),b=function(){"use strict";function e(t,n,i,o,s,c,u){if(a(this,e),!Number.isSafeInteger(n)||n<0)throw Error("assetid must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(i)||i<0)throw Error("ratn must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(o)||o<0)throw Error("ratd must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(s)||s<0)throw Error("expiryRound must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(c)||c<0)throw Error("minTrade must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(u)||u<0)throw Error("maxFee must be a positive number and smaller than 2^53-1");var d=r.from("ASAKAAEFAgYEBwgJCiYBIP68oLsUSlpOp7Q4pGgayA5soQW8tgf8VlMlyVaV9qITMRYiEjEQIxIQMQEkDhAyBCMSQABVMgQlEjEIIQQNEDEJMgMSEDMBECEFEhAzAREhBhIQMwEUKBIQMwETMgMSEDMBEiEHHTUCNQExCCEIHTUENQM0ATQDDUAAJDQBNAMSNAI0BA8QQAAWADEJKBIxAiEJDRAxBzIDEhAxCCISEBA=","base64"),p=[u,c,n,o,i,s,t],b=[l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.ADDRESS],h=l.inject(d,[5,7,9,10,11,12,16],p,b);this.programBytes=h;var y=new f.LogicSig(h,void 0);this.address=y.address(),this.owner=t,this.assetid=n}return i(e,[{key:"getProgram",value:function(){return this.programBytes}},{key:"getAddress",value:function(){return this.address}}]),e}();e.exports={LimitOrder:b,getSwapAssetsTransaction:function(e,t,n,r,a,i,l,b){var h,y=d.keyPairFromSecretKey(r),m=o.encodeAddress(y.publicKey),v=u.readProgram(e,void 0),g=v[0],A=v[1],w=g[6],x=o.encodeAddress(A[0]),_=f.makeLogicSig(e,void 0),k=_.address(),S=[s.makePaymentTxn(k,m,a,n,h,i,l,void 0,b,void 0),s.makeAssetTransferTxn(m,x,h,void 0,a,t,i,l,void 0,b,void 0,w)],I=c.assignGroupID(S),E=g[7],C=g[8];if(t*E= ").concat(n.toString(),"*").concat(C.toString()));var T=g[4];if(nO)throw new Error("final fee of payment transaction ".concat(I[0].fee.toString()," greater than transaction max fee ").concat(O.toString()));if(I[1].fee>O)throw new Error("final fee of asset transaction ".concat(I[1].fee.toString()," greater than transaction max fee ").concat(O.toString()));var P=f.signLogicSigTransactionObject(I[0],_),M=I[1].signTxn(r);return p.concatArrays(P.blob,M)}}},18995:function(e,t,n){var r=n(62332).Buffer,a=n(63298).default,i=n(51795).default,o=n(40267),s=n(50598),c=n(56599),u=n(18024),f=n(52103),d=n(99140),l=function(){"use strict";function e(t,n,i,o,s,c,d){if(a(this,e),this.receiver=t,!Number.isSafeInteger(n)||n<0)throw Error("amount must be a positive number and smaller than 2^53-1");if(this.amount=n,!Number.isSafeInteger(i)||i<0)throw Error("withdrawalWindow must be a positive number and smaller than 2^53-1");if(this.withdrawalWindow=i,!Number.isSafeInteger(o)||o<0)throw Error("period must be a positive number and smaller than 2^53-1");if(this.period=o,!Number.isSafeInteger(s)||s<0)throw Error("expiryRound must be a positive number and smaller than 2^53-1");if(this.expiryRound=s,!Number.isSafeInteger(c)||c<0)throw Error("maxFee must be a positive number and smaller than 2^53-1");if(this.maxFee=c,void 0===d){var l=f.randomBytes(32);this.lease=r.from(l).toString("base64")}else this.lease=d;this.programBytes=this.getProgram();var p=new u.LogicSig(this.programBytes,void 0);this.address=p.address()}return i(e,[{key:"getProgram",value:function(){var e=r.from("ASAHAQYFAAQDByYCIAECAwQFBgcIAQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIIJKvkYTkEzwJf2arzJOxERsSogG9nQzKPkpIoc4TzPTFMRAiEjEBIw4QMQIkGCUSEDEEIQQxAggSEDEGKBIQMQkyAxIxBykSEDEIIQUSEDEJKRIxBzIDEhAxAiEGDRAxCCUSEBEQ","base64"),t=[this.maxFee,this.period,this.withdrawalWindow,this.amount,this.expiryRound,this.lease,this.receiver],n=[d.valTypes.INT,d.valTypes.INT,d.valTypes.INT,d.valTypes.INT,d.valTypes.INT,d.valTypes.BASE64,d.valTypes.ADDRESS];return d.inject(e,[4,5,7,8,9,12,46],t,n)}},{key:"getAddress",value:function(){return this.address}}]),e}();e.exports={PeriodicPayment:l,getPeriodicPaymentWithdrawalTransaction:function(e,t,n,r){var a=c.readProgram(e,void 0),i=a[0],f=a[1],d=i[2],l=i[4],p=i[5];if(n%d!=0)throw new Error("firstValid round ".concat(n.toString()," was not a multiple of contract period ").concat(d.toString()));var b,h,y=f[1],m=o.encodeAddress(y),v=f[0],g=new Uint8Array(v),A=n+l,w=m,x=u.makeLogicSig(e,void 0),_=x.address(),k={from:_,to:w,fee:t,amount:p,closeRemainderTo:b,firstRound:n,lastRound:A,note:h,genesisHash:r,genesisID:"",type:"pay",lease:g},S=s.makePaymentTxn(_,w,t,p,b,n,A,h,r,"");if(S.fee>i[1])throw new Error("final fee of payment transaction".concat(S.fee.toString(),"greater than transaction max fee").concat(i[1].toString()));return u.signLogicSigTransaction(k,x)}}},83983:function(e,t,n){var r=n(62332).Buffer,a=n(63298).default,i=n(51795).default,o=n(40267),s=n(50598),c=n(5532),u=n(18024),f=n(56599),d=n(99140),l=n(24162),p=function(){"use strict";function e(t,n,i,o,s,c,f,l){if(a(this,e),!Number.isSafeInteger(s)||s<0)throw Error("rat2 must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(o)||o<0)throw Error("rat1 must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(c)||c<0)throw Error("expiryRound must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(f)||f<0)throw Error("minPay must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(l)||l<0)throw Error("maxFee must be a positive number and smaller than 2^53-1");var p=r.from("ASAIAQUCAAYHCAkmAyCztwQn0+DycN+vsk+vJWcsoz/b7NDS6i33HOkvTpf+YiC3qUpIgHGWE8/1LPh9SGCalSN7IaITeeWSXbfsS5wsXyC4kBQ38Z8zcwWVAym4S8vpFB/c0XC6R4mnPi9EBADsPDEQIhIxASMMEDIEJBJAABkxCSgSMQcyAxIQMQglEhAxAiEEDRAiQAAuMwAAMwEAEjEJMgMSEDMABykSEDMBByoSEDMACCEFCzMBCCEGCxIQMwAIIQcPEBA=","base64"),b=[l,c,s,o,f,t,n,i],h=[d.valTypes.INT,d.valTypes.INT,d.valTypes.INT,d.valTypes.INT,d.valTypes.INT,d.valTypes.ADDRESS,d.valTypes.ADDRESS,d.valTypes.ADDRESS],y=d.inject(p,[4,7,8,9,10,14,47,80],b,h);this.programBytes=y;var m=u.makeLogicSig(y,void 0);this.address=m.address()}return i(e,[{key:"getProgram",value:function(){return this.programBytes}},{key:"getAddress",value:function(){return this.address}}]),e}();e.exports={Split:p,getSplitFundsTransaction:function(e,t,n,r,a,i){var d,p=f.readProgram(e,void 0),b=p[0],h=p[1],y=b[6],m=b[5],v=function e(t,n){if("number"!=typeof t||"number"!=typeof n)throw new Error("gcd operates only on positive integers");return n?e(n,t%n):t}(y,m);y=Math.floor(y/v);var g=(m=Math.floor(m/v))/y,A=t-(d=Math.round(t/(1+g)));if(m*d!=y*A)throw Error("could not split funds in a way that satisfied the contract ratio");var w=u.makeLogicSig(e,void 0).address(),x=o.encodeAddress(h[1]),_=o.encodeAddress(h[2]),k=[s.makePaymentTxn(w,x,a,d,void 0,n,r,void 0,i),s.makePaymentTxn(w,_,a,A,void 0,n,r,void 0,i)],S=c.assignGroupID(k).map((function(e){return u.signLogicSigTransactionObject(e,u).blob}));return l.concatArrays(S[0],S[1])}}},99140:function(e,t,n){var r=n(62332).Buffer,a=n(40267);function i(e,t){for(var n=0;t>128;)e.push(255&t|128),t>>=7,n+=1;return e.push(255&t),n+1}var o={INT:1,ADDRESS:2,BASE64:3};e.exports={inject:function(e,t,n,s){if(t.length!==n.length||t.length!==s.length)throw new Error("Lengths do not match");var c=e;function u(e,t,n,a){var i=e.slice(0,n),o=e.slice(n+a,e.length),s=[i,r.from(t),o];return r.concat(s)}for(var f=0;f9&&void 0!==arguments[9]&&arguments[9],l=arguments.length>10&&void 0!==arguments[10]?arguments[10]:void 0,p={from:e,note:t,voteKey:n,selectionKey:a,voteFirst:o,voteLast:s,voteKeyDilution:c,suggestedParams:u,type:i.i.keyreg,reKeyTo:f,nonParticipation:d,stateProofKey:l};return new r.Transaction(p)}function f(e,t,n,r,a,i,o,s,c,f,d,l,p){return u(e,a,s,c,f,d,l,{genesisHash:i,genesisID:o,firstRound:n,lastRound:r,fee:t},p,arguments.length>13&&void 0!==arguments[13]&&arguments[13],arguments.length>14&&void 0!==arguments[14]?arguments[14]:void 0)}function d(e){return u(e.from,e.note,e.voteKey,e.selectionKey,e.voteFirst,e.voteLast,e.voteKeyDilution,e.suggestedParams,e.rekeyTo,e.nonParticipation,e.stateProofKey)}function l(e,t,n,a,o,s,c,u,f,d,l,p,b,h,y){var m={from:e,note:t,suggestedParams:h,assetTotal:n,assetDecimals:a,assetDefaultFrozen:o,assetUnitName:d,assetName:l,assetURL:p,assetMetadataHash:b,assetManager:s,assetReserve:c,assetFreeze:u,assetClawback:f,type:i.i.acfg,reKeyTo:y};return new r.Transaction(m)}function p(e,t,n,r,a,i,o,s,c,u,f,d,p,b,h,y,m,v,g){return l(e,a,s,c,u,f,d,p,b,h,y,m,v,{genesisHash:i,genesisID:o,firstRound:n,lastRound:r,fee:t},g)}function b(e){return l(e.from,e.note,e.total,e.decimals,e.defaultFrozen,e.manager,e.reserve,e.freeze,e.clawback,e.unitName,e.assetName,e.assetURL,e.assetMetadataHash,e.suggestedParams,e.rekeyTo)}function h(e,t,n,a,o,s,c,u){var f=arguments.length>9?arguments[9]:void 0;if((!(arguments.length>8&&void 0!==arguments[8])||arguments[8])&&(void 0===a||void 0===o||void 0===s||void 0===c))throw Error("strict empty address checking was turned on, but at least one empty address was provided");var d={from:e,suggestedParams:u,assetIndex:n,assetManager:a,assetReserve:o,assetFreeze:s,assetClawback:c,type:i.i.acfg,note:t,reKeyTo:f};return new r.Transaction(d)}function y(e,t,n,r,a,i,o,s,c,u,f,d){return h(e,a,s,c,u,f,d,{genesisHash:i,genesisID:o,firstRound:n,lastRound:r,fee:t},!(arguments.length>12&&void 0!==arguments[12])||arguments[12],arguments.length>13?arguments[13]:void 0)}function m(e){return h(e.from,e.note,e.assetIndex,e.manager,e.reserve,e.freeze,e.clawback,e.suggestedParams,e.strictEmptyAddressChecking,e.rekeyTo)}function v(e,t,n,a,o){var s={from:e,suggestedParams:a,assetIndex:n,type:i.i.acfg,note:t,reKeyTo:o};return new r.Transaction(s)}function g(e,t,n,r,a,i,o,s,c){return v(e,a,s,{genesisHash:i,genesisID:o,firstRound:n,lastRound:r,fee:t},c)}function A(e){return v(e.from,e.note,e.assetIndex,e.suggestedParams,e.rekeyTo)}function w(e,t,n,a,o,s,c){var u={from:e,type:i.i.afrz,freezeAccount:a,assetIndex:n,freezeState:o,note:t,suggestedParams:s,reKeyTo:c};return new r.Transaction(u)}function x(e,t,n,r,a,i,o,s,c,u,f){return w(e,a,s,c,u,{genesisHash:i,genesisID:o,firstRound:n,lastRound:r,fee:t},f)}function _(e){return w(e.from,e.note,e.assetIndex,e.freezeTarget,e.freezeState,e.suggestedParams,e.rekeyTo)}function k(e,t,n,a,o,s,c,u,f){var d={type:i.i.axfer,from:e,to:t,amount:o,suggestedParams:u,assetIndex:c,note:s,assetRevocationTarget:a,closeRemainderTo:n,reKeyTo:f};return new r.Transaction(d)}function S(e,t,n,r,a,i,o,s,c,u,f,d,l){return k(e,t,n,r,i,c,d,{genesisHash:u,genesisID:f,firstRound:o,lastRound:s,fee:a},l)}function I(e){return k(e.from,e.to,e.closeRemainderTo,e.revocationTarget,e.amount,e.note,e.assetIndex,e.suggestedParams,e.rekeyTo)}function E(e,t,n,a,o,s,c,u,f,d,l,p,b,h,y,m,v,g){var A={type:i.i.appl,from:e,suggestedParams:t,appIndex:0,appOnComplete:n,appLocalInts:s,appLocalByteSlices:c,appGlobalInts:u,appGlobalByteSlices:f,appApprovalProgram:a,appClearProgram:o,appArgs:d,appAccounts:l,appForeignApps:p,appForeignAssets:b,boxes:g,note:h,lease:y,reKeyTo:m,extraPages:v};return new r.Transaction(A)}function C(e){return E(e.from,e.suggestedParams,e.onComplete,e.approvalProgram,e.clearProgram,e.numLocalInts,e.numLocalByteSlices,e.numGlobalInts,e.numGlobalByteSlices,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.extraPages,e.boxes)}function T(e,t,n,o,s,c,u,f,d,l,p,b,h){var y={type:i.i.appl,from:e,suggestedParams:t,appIndex:n,appApprovalProgram:o,appOnComplete:a.hq.UpdateApplicationOC,appClearProgram:s,appArgs:c,appAccounts:u,appForeignApps:f,appForeignAssets:d,boxes:h,note:l,lease:p,reKeyTo:b};return new r.Transaction(y)}function O(e){return T(e.from,e.suggestedParams,e.appIndex,e.approvalProgram,e.clearProgram,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function P(e,t,n,o,s,c,u,f,d,l,p){var b={type:i.i.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:a.hq.DeleteApplicationOC,appArgs:o,appAccounts:s,appForeignApps:c,appForeignAssets:u,boxes:p,note:f,lease:d,reKeyTo:l};return new r.Transaction(b)}function M(e){return P(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function B(e,t,n,o,s,c,u,f,d,l,p){var b={type:i.i.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:a.hq.OptInOC,appArgs:o,appAccounts:s,appForeignApps:c,appForeignAssets:u,boxes:p,note:f,lease:d,reKeyTo:l};return new r.Transaction(b)}function R(e){return B(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function N(e,t,n,o,s,c,u,f,d,l,p){var b={type:i.i.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:a.hq.CloseOutOC,appArgs:o,appAccounts:s,appForeignApps:c,appForeignAssets:u,boxes:p,note:f,lease:d,reKeyTo:l};return new r.Transaction(b)}function D(e){return N(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function j(e,t,n,o,s,c,u,f,d,l,p){var b={type:i.i.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:a.hq.ClearStateOC,appArgs:o,appAccounts:s,appForeignApps:c,appForeignAssets:u,boxes:p,note:f,lease:d,reKeyTo:l};return new r.Transaction(b)}function U(e){return j(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function L(e,t,n,o,s,c,u,f,d,l,p){var b={type:i.i.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:a.hq.NoOpOC,appArgs:o,appAccounts:s,appForeignApps:c,appForeignAssets:u,boxes:p,note:f,lease:d,reKeyTo:l};return new r.Transaction(b)}function Z(e){return L(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function F(e){var t={type:i.i.appl,from:e.from,suggestedParams:e.suggestedParams,appIndex:e.appIndex,appOnComplete:e.onComplete,appLocalInts:e.numLocalInts,appLocalByteSlices:e.numLocalByteSlices,appGlobalInts:e.numGlobalInts,appGlobalByteSlices:e.numGlobalByteSlices,appApprovalProgram:e.approvalProgram,appClearProgram:e.clearProgram,appArgs:e.appArgs,appAccounts:e.accounts,appForeignApps:e.foreignApps,appForeignAssets:e.foreignAssets,boxes:e.boxes,note:e.note,lease:e.lease,reKeyTo:e.rekeyTo,extraPages:e.extraPages};return new r.Transaction(t)}},93292:function(e,t,n){"use strict";n.d(t,{F2:function(){return E},J6:function(){return I},PO:function(){return T},PU:function(){return C},f7:function(){return O},gJ:function(){return _},vH:function(){return P}});var r=n(745),a=n(19677),i=n(47061),o=n(59900),s=n(78283),c=n(70886),u=n(24269),f=n(38114),d=n(52103),l=n(40267),p=n(7018),b=n(824),h=n(24162),y=n(62332).Buffer,m="Not enough multisig transactions to merge. Need at least two",v="Cannot merge txs. txIDs differ",g="Cannot merge txs. Auth addrs differ",A="Cannot merge txs. Multisig preimages differ",w="Cannot merge txs. subsigs are mismatched.",x="Cannot mutate a multisig field as it would invalidate all existing signatures.";function _(e,t){var n=t.version,r=t.threshold,a=t.addrs.map((function(e){return l.decodeAddress(e).publicKey})),i={v:n,thr:r,subsig:a.map((function(e){return{pk:y.from(e)}}))},o=e.get_obj_for_encoding(),s={msig:i,txn:o},c=l.fromMultisigPreImg({version:n,threshold:r,pks:a});return l.encodeAddress(o.snd)!==l.encodeAddress(c)&&(s.sgnr=y.from(c)),new Uint8Array(p.encode(s))}function k(e,t,n){var r=t.rawSig,a=t.myPk,i=n.version,o=n.threshold,s=n.pks,c=_(e,{version:i,threshold:o,addrs:s.map((function(e){return l.encodeAddress(e)}))}),u=p.decode(c),f=!1;if(u.msig.subsig.forEach((function(e,t){d.bytesEqual(e.pk,a)&&(f=!0,u.msig.subsig[t].s=r)})),!1===f)throw new Error("Key does not exist");var b=l.fromMultisigPreImg({version:i,threshold:o,pks:s});return l.encodeAddress(u.txn.snd)!==l.encodeAddress(b)&&(u.sgnr=y.from(b)),new Uint8Array(p.encode(u))}var S=function(e){(0,u.Z)(n,e);var t=(0,f.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"addLease",value:function(){throw new Error(x)}},{key:"addRekey",value:function(){throw new Error(x)}},{key:"signTxn",value:function(e){throw new Error("Cannot sign a multisig transaction using `signTxn`. Use `partialSignTxn` instead.")}},{key:"partialSignTxn",value:function(e,t){var n=e.version,r=e.threshold,a=e.pks,i=d.keyPairFromSecretKey(t).publicKey;return k(this,{rawSig:this.rawSignTxn(t),myPk:i},{version:n,threshold:r,pks:a})}},{key:"partialSignWithMultisigSignature",value:function(e,t,n){if(!d.isValidSignatureLength(n.length))throw new Error("Cannot add multisig signature. Signature is not of the correct length.");return k(this,{rawSig:n,myPk:l.decodeAddress(t).publicKey},e)}}],[{key:"from_obj_for_encoding",value:function(e){return(0,s.Z)((0,c.Z)(n),"from_obj_for_encoding",this).call(this,e)}}]),n}(b.Transaction);function I(e){if(e.length<2)throw new Error(m);for(var t=p.decode(e[0]),n=S.from_obj_for_encoding(t.txn).txID(),r=t.sgnr?l.encodeAddress(t.sgnr):void 0,i={version:t.msig.v,threshold:t.msig.thr,pks:t.msig.subsig.map((function(e){return e.pk}))},o=l.encodeAddress(l.fromMultisigPreImg(i)),s=t.msig.subsig.map((function(e){return(0,a.Z)({},e)})),c=1;c3))throw Error("extraPages must be an Integer between and including 0 to 3");if(void 0!==o.assetTotal&&(!(Number.isSafeInteger(o.assetTotal)||"bigint"==typeof o.assetTotal&&o.assetTotal<=BigInt("0xffffffffffffffff"))||o.assetTotal<0))throw Error("Total asset issuance must be a positive number and smaller than 2^64-1. If the number is larger than 2^53-1, use bigint.");if(void 0!==o.assetDecimals&&(!Number.isSafeInteger(o.assetDecimals)||o.assetDecimals<0||o.assetDecimals>19))throw Error("assetDecimals must be a positive number and smaller than ".concat(19..toString()));if(void 0!==o.assetIndex&&(!Number.isSafeInteger(o.assetIndex)||o.assetIndex<0))throw Error("Asset index must be a positive number and smaller than 2^53-1");if(void 0!==o.appIndex&&(!Number.isSafeInteger(o.appIndex)||o.appIndex<0))throw Error("Application index must be a positive number and smaller than 2^53-1");if(void 0!==o.appLocalInts&&(!Number.isSafeInteger(o.appLocalInts)||o.appLocalInts<0))throw Error("Application local ints count must be a positive number and smaller than 2^53-1");if(void 0!==o.appLocalByteSlices&&(!Number.isSafeInteger(o.appLocalByteSlices)||o.appLocalByteSlices<0))throw Error("Application local byte slices count must be a positive number and smaller than 2^53-1");if(void 0!==o.appGlobalInts&&(!Number.isSafeInteger(o.appGlobalInts)||o.appGlobalInts<0))throw Error("Application global ints count must be a positive number and smaller than 2^53-1");if(void 0!==o.appGlobalByteSlices&&(!Number.isSafeInteger(o.appGlobalByteSlices)||o.appGlobalByteSlices<0))throw Error("Application global byte slices count must be a positive number and smaller than 2^53-1");if(void 0!==o.appApprovalProgram&&o.appApprovalProgram.constructor!==Uint8Array)throw Error("appApprovalProgram must be a Uint8Array.");if(void 0!==o.appClearProgram&&o.appClearProgram.constructor!==Uint8Array)throw Error("appClearProgram must be a Uint8Array.");if(void 0!==o.appArgs){if(!Array.isArray(o.appArgs))throw Error("appArgs must be an Array of Uint8Array.");o.appArgs=o.appArgs.slice(),o.appArgs.forEach((function(e){if(e.constructor!==Uint8Array)throw Error("each element of AppArgs must be a Uint8Array.")}))}else o.appArgs=[];if(void 0!==o.appAccounts){if(!Array.isArray(o.appAccounts))throw Error("appAccounts must be an Array of addresses.");o.appAccounts=o.appAccounts.map((function(e){return u.decodeAddress(e)}))}if(void 0!==o.appForeignApps){if(!Array.isArray(o.appForeignApps))throw Error("appForeignApps must be an Array of integers.");o.appForeignApps=o.appForeignApps.slice(),o.appForeignApps.forEach((function(e){if(!Number.isSafeInteger(e)||e<0)throw Error("each foreign application index must be a positive number and smaller than 2^53-1")}))}if(void 0!==o.appForeignAssets){if(!Array.isArray(o.appForeignAssets))throw Error("appForeignAssets must be an Array of integers.");o.appForeignAssets=o.appForeignAssets.slice(),o.appForeignAssets.forEach((function(e){if(!Number.isSafeInteger(e)||e<0)throw Error("each foreign asset index must be a positive number and smaller than 2^53-1")}))}if(void 0!==o.boxes){if(!Array.isArray(o.boxes))throw Error("boxes must be an Array of BoxReference.");o.boxes=o.boxes.slice(),o.boxes.forEach((function(e){if(!Number.isSafeInteger(e.appIndex)||e.name.constructor!==Uint8Array)throw Error("box app index must be a number and name must be an Uint8Array.")}))}if(void 0!==o.assetMetadataHash&&0!==o.assetMetadataHash.length){if("string"==typeof o.assetMetadataHash&&(o.assetMetadataHash=new Uint8Array(b.from(o.assetMetadataHash))),o.assetMetadataHash.constructor!==Uint8Array||32!==o.assetMetadataHash.byteLength)throw Error("assetMetadataHash must be a ".concat(32," byte Uint8Array or string."));o.assetMetadataHash.every((function(e){return 0===e}))&&(o.assetMetadataHash=void 0)}else o.assetMetadataHash=void 0;if(void 0!==o.note){if(o.note.constructor!==Uint8Array)throw Error("note must be a Uint8Array.")}else o.note=new Uint8Array(0);if(void 0!==o.lease){if(o.lease.constructor!==Uint8Array)throw Error("lease must be a Uint8Array.");if(32!==o.lease.length)throw Error("lease must be of length ".concat(32..toString(),"."));o.lease.every((function(e){return 0===e}))&&(o.lease=new Uint8Array(0))}else o.lease=new Uint8Array(0);if(o.voteKey=y(o.voteKey,"voteKey",32),o.selectionKey=y(o.selectionKey,"selectionKey",32),o.stateProofKey=y(o.stateProofKey,"stateProofKey",64),o.nonParticipation&&(o.voteKey||o.selectionKey||o.voteFirst||o.stateProofKey||o.voteLast||o.voteKeyDilution))throw new Error("nonParticipation is true but participation params are present.");if(!o.nonParticipation&&(o.voteKey||o.selectionKey||o.stateProofKey||o.voteFirst||o.voteLast||o.voteKeyDilution)&&!(o.voteKey&&o.selectionKey&&o.voteFirst&&o.voteLast&&o.voteKeyDilution))throw new Error("online key registration missing at least one of the following fields: voteKey, selectionKey, voteFirst, voteLast, voteKeyDilution");if(delete o.suggestedParams,Object.assign(this,l.removeUndefinedProperties(o)),o.flatFee||(this.fee*=this.estimateSize(),this.fee1&&void 0!==arguments[1]?arguments[1]:0;if(void 0!==e){if(e.constructor!==Uint8Array)throw Error("lease must be a Uint8Array.");if(32!==e.length)throw Error("lease must be of length ".concat(32..toString(),"."));t=new Uint8Array(e)}else t=new Uint8Array(0);this.lease=t,0!==n&&(this.fee+=37*n)}},{key:"addRekey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;void 0!==e&&(this.reKeyTo=u.decodeAddress(e)),0!==t&&(this.fee+=37*t)}},{key:"_getDictForDisplay",value:function(){var e=(0,r.Z)({},this);return e.tag=e.tag.toString(),e.from=u.encodeAddress(e.from.publicKey),void 0!==e.to&&(e.to=u.encodeAddress(e.to.publicKey)),void 0!==e.freezeAccount&&(e.freezeAccount=u.encodeAddress(e.freezeAccount.publicKey)),void 0!==e.closeRemainderTo&&(e.closeRemainderTo=u.encodeAddress(e.closeRemainderTo.publicKey)),void 0!==e.assetManager&&(e.assetManager=u.encodeAddress(e.assetManager.publicKey)),void 0!==e.assetReserve&&(e.assetReserve=u.encodeAddress(e.assetReserve.publicKey)),void 0!==e.assetFreeze&&(e.assetFreeze=u.encodeAddress(e.assetFreeze.publicKey)),void 0!==e.assetClawback&&(e.assetClawback=u.encodeAddress(e.assetClawback.publicKey)),void 0!==e.assetRevocationTarget&&(e.assetRevocationTarget=u.encodeAddress(e.assetRevocationTarget.publicKey)),void 0!==e.reKeyTo&&(e.reKeyTo=u.encodeAddress(e.reKeyTo.publicKey)),e.genesisHash=e.genesisHash.toString("base64"),e}},{key:"prettyPrint",value:function(){console.log(this._getDictForDisplay())}},{key:"toString",value:function(){return JSON.stringify(this._getDictForDisplay())}}],[{key:"from_obj_for_encoding",value:function(e){var t=Object.create(this.prototype);if(t.name="Transaction",t.tag=b.from("TX"),t.genesisID=e.gen,t.genesisHash=b.from(e.gh),!(0,p.v8)(e.type))throw new Error("Unrecognized transaction type: ".concat(e.type));return t.type=e.type,t.fee=e.fee,t.firstRound=e.fv,t.lastRound=e.lv,t.note=new Uint8Array(e.note),t.lease=new Uint8Array(e.lx),t.from=u.decodeAddress(u.encodeAddress(new Uint8Array(e.snd))),void 0!==e.grp&&(t.group=b.from(e.grp)),void 0!==e.rekey&&(t.reKeyTo=u.decodeAddress(u.encodeAddress(new Uint8Array(e.rekey)))),"pay"===e.type?(t.amount=e.amt,t.to=u.decodeAddress(u.encodeAddress(new Uint8Array(e.rcv))),void 0!==e.close&&(t.closeRemainderTo=u.decodeAddress(u.encodeAddress(e.close)))):"keyreg"===e.type?(void 0!==e.votekey&&(t.voteKey=b.from(e.votekey)),void 0!==e.selkey&&(t.selectionKey=b.from(e.selkey)),void 0!==e.sprfkey&&(t.stateProofKey=b.from(e.sprfkey)),void 0!==e.votekd&&(t.voteKeyDilution=e.votekd),void 0!==e.votefst&&(t.voteFirst=e.votefst),void 0!==e.votelst&&(t.voteLast=e.votelst),void 0!==e.nonpart&&(t.nonParticipation=e.nonpart)):"acfg"===e.type?(void 0!==e.caid&&(t.assetIndex=e.caid),void 0!==e.apar&&(t.assetTotal=e.apar.t,t.assetDefaultFrozen=e.apar.df,void 0!==e.apar.dc&&(t.assetDecimals=e.apar.dc),void 0!==e.apar.m&&(t.assetManager=u.decodeAddress(u.encodeAddress(new Uint8Array(e.apar.m)))),void 0!==e.apar.r&&(t.assetReserve=u.decodeAddress(u.encodeAddress(new Uint8Array(e.apar.r)))),void 0!==e.apar.f&&(t.assetFreeze=u.decodeAddress(u.encodeAddress(new Uint8Array(e.apar.f)))),void 0!==e.apar.c&&(t.assetClawback=u.decodeAddress(u.encodeAddress(new Uint8Array(e.apar.c)))),void 0!==e.apar.un&&(t.assetUnitName=e.apar.un),void 0!==e.apar.an&&(t.assetName=e.apar.an),void 0!==e.apar.au&&(t.assetURL=e.apar.au),void 0!==e.apar.am&&(t.assetMetadataHash=e.apar.am))):"axfer"===e.type?(void 0!==e.xaid&&(t.assetIndex=e.xaid),void 0!==e.aamt&&(t.amount=e.aamt),void 0!==e.aclose&&(t.closeRemainderTo=u.decodeAddress(u.encodeAddress(new Uint8Array(e.aclose)))),void 0!==e.asnd&&(t.assetRevocationTarget=u.decodeAddress(u.encodeAddress(new Uint8Array(e.asnd)))),t.to=u.decodeAddress(u.encodeAddress(new Uint8Array(e.arcv)))):"afrz"===e.type?(void 0!==e.afrz&&(t.freezeState=e.afrz),void 0!==e.faid&&(t.assetIndex=e.faid),t.freezeAccount=u.decodeAddress(u.encodeAddress(new Uint8Array(e.fadd)))):"appl"===e.type?(void 0!==e.apid&&(t.appIndex=e.apid),void 0!==e.apan&&(t.appOnComplete=e.apan),void 0!==e.apls&&(void 0!==e.apls.nui&&(t.appLocalInts=e.apls.nui),void 0!==e.apls.nbs&&(t.appLocalByteSlices=e.apls.nbs)),void 0!==e.apgs&&(void 0!==e.apgs.nui&&(t.appGlobalInts=e.apgs.nui),void 0!==e.apgs.nbs&&(t.appGlobalByteSlices=e.apgs.nbs)),void 0!==e.apep&&(t.extraPages=e.apep),void 0!==e.apap&&(t.appApprovalProgram=new Uint8Array(e.apap)),void 0!==e.apsu&&(t.appClearProgram=new Uint8Array(e.apsu)),void 0!==e.apaa&&(t.appArgs=e.apaa.map((function(e){return new Uint8Array(e)}))),void 0!==e.apat&&(t.appAccounts=e.apat.map((function(e){return u.decodeAddress(u.encodeAddress(new Uint8Array(e)))}))),void 0!==e.apfa&&(t.appForeignApps=e.apfa),void 0!==e.apas&&(t.appForeignAssets=e.apas),void 0!==e.apbx&&(t.boxes=e.apbx.map((function(e){return{appIndex:e.i?t.appForeignApps[e.i-1]:0,name:e.n}})))):"stpf"===e.type&&(void 0!==e.sptype&&(t.stateProofType=e.sptype),void 0!==e.sp&&(t.stateProof=e.sp),void 0!==e.spmsg&&(t.stateProofMessage=e.spmsg)),t}}]),e}();function v(e){var t=e.get_obj_for_encoding();return f.encode(t)}function g(e){var t=f.decode(e);return m.from_obj_for_encoding(t)}function A(e){var t=f.decode(e);return(0,r.Z)((0,r.Z)({},t),{},{txn:m.from_obj_for_encoding(t.txn)})}function w(e){return e instanceof m?e:new m(e)}var x=m},76686:function(e,t){"use strict";var n;!function(e){e.DEFAULT="default",e.SAFE="safe",e.MIXED="mixed",e.BIGINT="bigint"}(n||(n={})),t.Z=n},15922:function(e,t,n){"use strict";var r,a;function i(e){return e===r.pay||e===r.keyreg||e===r.acfg||e===r.axfer||e===r.afrz||e===r.appl||e===r.stpf}n.d(t,{hq:function(){return a},iU:function(){return r},v8:function(){return i}}),function(e){e.pay="pay",e.keyreg="keyreg",e.acfg="acfg",e.axfer="axfer",e.afrz="afrz",e.appl="appl",e.stpf="stpf"}(r||(r={})),function(e){e[e.NoOpOC=0]="NoOpOC",e[e.OptInOC=1]="OptInOC",e[e.CloseOutOC=2]="CloseOutOC",e[e.ClearStateOC=3]="ClearStateOC",e[e.UpdateApplicationOC=4]="UpdateApplicationOC",e[e.DeleteApplicationOC=5]="DeleteApplicationOC"}(a||(a={}))},95775:function(e,t,n){"use strict";n.d(t,{i:function(){return r.iU}});var r=n(15922)},24162:function(e,t,n){"use strict";n.r(t),n.d(t,{arrayEqual:function(){return f},concatArrays:function(){return d},isNode:function(){return p},parseJSON:function(){return u},removeUndefinedProperties:function(){return l}});var r=n(19677),a=n(7768),i=n.n(a),o=n(76686),s=n(43800),c=i()({useNativeBigInt:!0,strict:!0});function u(e,t){var n=t&&t.intDecoding?t.intDecoding:o.Z.DEFAULT;return c.parse(e,(function(e,t){if(null!=t&&"object"==typeof t&&null==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,Object.prototype),"bigint"==typeof t){if("safe"===n&&t>Number.MAX_SAFE_INTEGER)throw new Error("Integer exceeds maximum safe integer: ".concat(t.toString(),". Try parsing with a different intDecoding option."));return"bigint"===n||"mixed"===n&&t>Number.MAX_SAFE_INTEGER?t:Number(t)}return"number"==typeof t&&"bigint"===n&&Number.isInteger(t)?BigInt(t):t}))}function f(e,t){return e.length===t.length&&Array.from(e).every((function(e,n){return e===t[n]}))}function d(){for(var e=arguments.length,t=new Array(e),n=0;n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){f.headers[e]=a.merge(s)})),e.exports=f},50809:function(e){e.exports={version:"0.24.0"}},13011:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},58283:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},88515:function(e,t,n){"use strict";var r=n(50809).version,a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new Error(a(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),a=r.length;a-- >0;){var i=r[a],o=t[i];if(o){var s=e[i],c=void 0===s||o(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:a}},37683:function(e,t,n){"use strict";var r=n(13011),a=Object.prototype.toString;function i(e){return"[object Array]"===a.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===a.call(e)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,f=new Uint8Array(o);e[n];){var d=t[e.charCodeAt(n)];if(255===d)return;for(var l=0,p=o-1;(0!==d||l>>0,f[p]=d%256>>>0,d=d/256>>>0;if(0!==d)throw new Error("Non-zero carry");i=l,n++}for(var b=o-i;b!==o&&0===f[b];)b++;var h=r.allocUnsafe(a+(o-b));h.fill(0,0,a);for(var y=a;b!==o;)h[y++]=f[b++];return h}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,a=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var u=(o-i)*f+1>>>0,d=new Uint8Array(u);i!==o;){for(var l=t[i],p=0,b=u-1;(0!==l||p>>0,d[b]=l%s>>>0,l=l/s>>>0;if(0!==l)throw new Error("Non-zero carry");a=p,i++}for(var h=u-a;h!==u&&0===d[h];)h++;for(var y=c.repeat(n);h0?o-4:o;for(n=0;n>16&255,u[f++]=t>>8&255,u[f++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[f++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[f++]=t>>8&255,u[f++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,s=0,c=r-a;sc?c:s+o));return 1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=i.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var a,i,o=[],s=t;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},56578:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bech32m=t.bech32=void 0;for(var n="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},a=0;a>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function s(e){for(var t=1,n=0;n126)return"Invalid prefix ("+e+")";t=o(t)^r>>5}t=o(t);for(var a=0;a=n;)i-=n,s.push(a>>i&o);if(r)i>0&&s.push(a<=t)return"Excess padding";if(a<n)return"Exceeds length limit";var a=e.toLowerCase(),i=e.toUpperCase();if(e!==a&&e!==i)return"Mixed-case string "+e;var c=(e=a).lastIndexOf("1");if(-1===c)return"No separator character for "+e;if(0===c)return"Missing prefix for "+e;var u=e.slice(0,c),f=e.slice(c+1);if(f.length<6)return"Data too short";var d=s(u);if("string"==typeof d)return d;for(var l=[],p=0;p=f.length||l.push(h)}return d!==t?"Invalid checksum for "+e:{prefix:u,words:l}}return t="bech32"===e?1:734539939,{decodeUnsafe:function(e,t){var n=a(e,t);if("object"==typeof n)return n},decode:function(e,t){var n=a(e,t);if("object"==typeof n)return n;throw new Error(n)},encode:function(e,r,a){if(a=a||90,e.length+7+r.length>a)throw new TypeError("Exceeds length limit");var i=s(e=e.toLowerCase());if("string"==typeof i)throw new Error(i);for(var c=e+"1",u=0;u>5!=0)throw new Error("Non 5-bit word");i=o(i)^f,c+=n.charAt(f)}for(var d=0;d<6;++d)i=o(i);i^=t;for(var l=0;l<6;++l)c+=n.charAt(i>>5*(5-l)&31);return c},toWords:u,fromWordsUnsafe:f,fromWords:d}}t.bech32=l("bech32"),t.bech32m=l("bech32m")},23935:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.toBigIntLE=function(e){var t=r.from(e);t.reverse();var n=t.toString("hex");return 0===n.length?BigInt(0):BigInt("0x".concat(n))},t.toBigIntBE=function(e){var t=e.toString("hex");return 0===t.length?BigInt(0):BigInt("0x".concat(t))},t.toBufferLE=function(e,t){var n=e.toString(16),a=r.from(n.padStart(2*t,"0").slice(0,2*t),"hex");return a.reverse(),a},t.toBufferBE=function(e,t){var n=e.toString(16);return r.from(n.padStart(2*t,"0").slice(0,2*t),"hex")}},4502:function(e,t,n){var r;!function(a){"use strict";var i,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,c=Math.floor,u="[BigNumber Error] ",f=u+"Number primitive has more than 15 significant digits: ",d=1e14,l=14,p=9007199254740991,b=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,y=1e9;function m(e){var t=0|e;return e>0||e===t?t:t-1}function v(e){for(var t,n,r=1,a=e.length,i=e[0]+"";ru^n?1:-1;for(s=(c=a.length)<(u=i.length)?c:u,o=0;oi[o]^n?1:-1;return c==u?0:c>u^n?1:-1}function A(e,t,n,r){if(en||e!==c(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function w(e){var t=e.c.length-1;return m(e.e/l)==t&&e.c[t]%2!=0}function x(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function _(e,t,n){var r,a;if(t<0){for(a=n+".";++t;a+=n);e=a+e}else if(++t>(r=e.length)){for(a=n,t-=r;--t;a+=n);e+=a}else tj?m.c=m.e=null:e.e=10;d/=10,u++);return void(u>j?m.c=m.e=null:(m.e=u,m.c=[e]))}y=String(e)}else{if(!o.test(y=String(e)))return a(m,y,b);m.s=45==y.charCodeAt(0)?(y=y.slice(1),-1):1}(u=y.indexOf("."))>-1&&(y=y.replace(".","")),(d=y.search(/e/i))>0?(u<0&&(u=d),u+=+y.slice(d+1),y=y.substring(0,d)):u<0&&(u=y.length)}else{if(A(t,2,H.length,"Base"),10==t&&z)return J(m=new q(e),M+m.e+1,B);if(y=String(e),b="number"==typeof e){if(0*e!=0)return a(m,y,b,t);if(m.s=1/e<0?(y=y.slice(1),-1):1,q.DEBUG&&y.replace(/^0\.0*|\./,"").length>15)throw Error(f+e)}else m.s=45===y.charCodeAt(0)?(y=y.slice(1),-1):1;for(n=H.slice(0,t),u=d=0,h=y.length;du){u=h;continue}}else if(!s&&(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase()))){s=!0,d=-1,u=0;continue}return a(m,String(e),b,t)}b=!1,(u=(y=r(y,t,10,m.s)).indexOf("."))>-1?y=y.replace(".",""):u=y.length}for(d=0;48===y.charCodeAt(d);d++);for(h=y.length;48===y.charCodeAt(--h););if(y=y.slice(d,++h)){if(h-=d,b&&q.DEBUG&&h>15&&(e>p||e!==c(e)))throw Error(f+m.s*e);if((u=u-d-1)>j)m.c=m.e=null;else if(u=N)?x(c,o):_(c,o,"0");else if(i=(e=J(new q(e),t,n)).e,s=(c=v(e.c)).length,1==r||2==r&&(t<=i||i<=R)){for(;ss){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=i-s)>0)for(i+1==s&&(c+=".");t--;c+="0");return e.s<0&&a?"-"+c:c}function K(e,t){for(var n,r=1,a=new q(e[0]);r=10;a/=10,r++);return(n=r+n*l-1)>j?e.c=e.e=null:n=10;u/=10,a++);if((i=t-a)<0)i+=l,o=t,h=(f=y[p=0])/m[a-o-1]%10|0;else if((p=s((i+1)/l))>=y.length){if(!r)break e;for(;y.length<=p;y.push(0));f=h=0,a=1,o=(i%=l)-l+1}else{for(f=u=y[p],a=1;u>=10;u/=10,a++);h=(o=(i%=l)-l+a)<0?0:f/m[a-o-1]%10|0}if(r=r||t<0||null!=y[p+1]||(o<0?f:f%m[a-o-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(i>0?o>0?f/m[a-o]:0:y[p-1])%10&1||n==(e.s<0?8:7)),t<1||!y[0])return y.length=0,r?(t-=e.e+1,y[0]=m[(l-t%l)%l],e.e=-t||0):y[0]=e.e=0,e;if(0==i?(y.length=p,u=1,p--):(y.length=p+1,u=m[l-i],y[p]=o>0?c(f/m[a-o]%m[o])*u:0),r)for(;;){if(0==p){for(i=1,o=y[0];o>=10;o/=10,i++);for(o=y[0]+=u,u=1;o>=10;o/=10,u++);i!=u&&(e.e++,y[0]==d&&(y[0]=1));break}if(y[p]+=u,y[p]!=d)break;y[p--]=0,u=1}for(i=y.length;0===y[--i];y.pop());}e.e>j?e.c=e.e=null:e.e=N?x(t,n):_(t,n,"0"),e.s<0?"-"+t:t)}return q.clone=e,q.ROUND_UP=0,q.ROUND_DOWN=1,q.ROUND_CEIL=2,q.ROUND_FLOOR=3,q.ROUND_HALF_UP=4,q.ROUND_HALF_DOWN=5,q.ROUND_HALF_EVEN=6,q.ROUND_HALF_CEIL=7,q.ROUND_HALF_FLOOR=8,q.EUCLID=9,q.config=q.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(u+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(A(n=e[t],0,y,t),M=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(A(n=e[t],0,8,t),B=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(A(n[0],-y,0,t),A(n[1],0,y,t),R=n[0],N=n[1]):(A(n,-y,y,t),R=-(N=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)A(n[0],-y,-1,t),A(n[1],1,y,t),D=n[0],j=n[1];else{if(A(n,-y,y,t),!n)throw Error(u+t+" cannot be zero: "+n);D=-(j=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(u+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw U=!n,Error(u+"crypto unavailable");U=n}else U=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(A(n=e[t],0,9,t),L=n),e.hasOwnProperty(t="POW_PRECISION")&&(A(n=e[t],0,y,t),Z=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(u+t+" not an object: "+n);F=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);z="0123456789"==n.slice(0,10),H=n}}return{DECIMAL_PLACES:M,ROUNDING_MODE:B,EXPONENTIAL_AT:[R,N],RANGE:[D,j],CRYPTO:U,MODULO_MODE:L,POW_PRECISION:Z,FORMAT:F,ALPHABET:H}},q.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!q.DEBUG)return!0;var t,n,r=e.c,a=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===i||-1===i)&&a>=-y&&a<=y&&a===c(a)){if(0===r[0]){if(0===a&&1===r.length)return!0;break e}if((t=(a+1)%l)<1&&(t+=l),String(r[0]).length==t){for(t=0;t=d||n!==c(n))break e;if(0!==n)return!0}}}else if(null===r&&null===a&&(null===i||1===i||-1===i))return!0;throw Error(u+"Invalid BigNumber: "+e)},q.maximum=q.max=function(){return K(arguments,O.lt)},q.minimum=q.min=function(){return K(arguments,O.gt)},q.random=(i=9007199254740992,k=Math.random()*i&2097151?function(){return c(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,a,i,o=0,f=[],d=new q(P);if(null==e?e=M:A(e,0,y),a=s(e/l),U)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));o>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[o]=n[0],t[o+1]=n[1]):(f.push(i%1e14),o+=2);o=a/2}else{if(!crypto.randomBytes)throw U=!1,Error(u+"crypto unavailable");for(t=crypto.randomBytes(a*=7);o=9e15?crypto.randomBytes(7).copy(t,o):(f.push(i%1e14),o+=7);o=a/7}if(!U)for(;o=10;i/=10,o++);on-1&&(null==o[a+1]&&(o[a+1]=0),o[a+1]+=o[a]/n|0,o[a]%=n)}return o.reverse()}return function(r,a,i,o,s){var c,u,f,d,l,p,b,h,y=r.indexOf("."),m=M,g=B;for(y>=0&&(d=Z,Z=0,r=r.replace(".",""),p=(h=new q(a)).pow(r.length-y),Z=d,h.c=t(_(v(p.c),p.e,"0"),10,i,e),h.e=h.c.length),f=d=(b=t(r,a,i,s?(c=H,e):(c=e,H))).length;0==b[--d];b.pop());if(!b[0])return c.charAt(0);if(y<0?--f:(p.c=b,p.e=f,p.s=o,b=(p=n(p,h,m,g,i)).c,l=p.r,f=p.e),y=b[u=f+m+1],d=i/2,l=l||u<0||null!=b[u+1],l=g<4?(null!=y||l)&&(0==g||g==(p.s<0?3:2)):y>d||y==d&&(4==g||l||6==g&&1&b[u-1]||g==(p.s<0?8:7)),u<1||!b[0])r=l?_(c.charAt(1),-m,c.charAt(0)):c.charAt(0);else{if(b.length=u,l)for(--i;++b[--u]>i;)b[u]=0,u||(++f,b=[1].concat(b));for(d=b.length;!b[--d];);for(y=0,r="";y<=d;r+=c.charAt(b[y++]));r=_(r,f,c.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,a,i,o,s=0,c=e.length,u=t%h,f=t/h|0;for(e=e.slice();c--;)s=((a=u*(i=e[c]%h)+(r=f*i+(o=e[c]/h|0)*u)%h*h+s)/n|0)+(r/h|0)+f*o,e[c]=a%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var a,i;if(n!=r)i=n>r?1:-1;else for(a=i=0;at[a]?1:-1;break}return i}function n(e,t,n,r){for(var a=0;n--;)e[n]-=a,a=e[n]1;e.splice(0,1));}return function(r,a,i,o,s){var u,f,p,b,h,y,v,g,A,w,x,_,k,S,I,E,C,T=r.s==a.s?1:-1,O=r.c,P=a.c;if(!(O&&O[0]&&P&&P[0]))return new q(r.s&&a.s&&(O?!P||O[0]!=P[0]:P)?O&&0==O[0]||!P?0*T:T/0:NaN);for(A=(g=new q(T)).c=[],T=i+(f=r.e-a.e)+1,s||(s=d,f=m(r.e/l)-m(a.e/l),T=T/l|0),p=0;P[p]==(O[p]||0);p++);if(P[p]>(O[p]||0)&&f--,T<0)A.push(1),b=!0;else{for(S=O.length,E=P.length,p=0,T+=2,(h=c(s/(P[0]+1)))>1&&(P=e(P,h,s),O=e(O,h,s),E=P.length,S=O.length),k=E,x=(w=O.slice(0,E)).length;x=s/2&&I++;do{if(h=0,(u=t(P,w,E,x))<0){if(_=w[0],E!=x&&(_=_*s+(w[1]||0)),(h=c(_/I))>1)for(h>=s&&(h=s-1),v=(y=e(P,h,s)).length,x=w.length;1==t(y,w,v,x);)h--,n(y,E=10;T/=10,p++);J(g,i+(g.e=p+f*l-1)+1,o,b)}else g.e=f,g.r=+b;return g}}(),S=/^(-?)0([xbo])(?=\w[\w.]*$)/i,I=/^([^.]+)\.$/,E=/^\.([^.]+)$/,C=/^-?(Infinity|NaN)$/,T=/^\s*\+(?=[\w.])|^\s+|\s+$/g,a=function(e,t,n,r){var a,i=n?t:t.replace(T,"");if(C.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!n&&(i=i.replace(S,(function(e,t,n){return a="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=a?e:t})),r&&(a=r,i=i.replace(I,"$1").replace(E,"0.$1")),t!=i))return new q(i,a);if(q.DEBUG)throw Error(u+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},O.absoluteValue=O.abs=function(){var e=new q(this);return e.s<0&&(e.s=1),e},O.comparedTo=function(e,t){return g(this,new q(e,t))},O.decimalPlaces=O.dp=function(e,t){var n,r,a,i=this;if(null!=e)return A(e,0,y),null==t?t=B:A(t,0,8),J(new q(i),e+i.e+1,t);if(!(n=i.c))return null;if(r=((a=n.length-1)-m(this.e/l))*l,a=n[a])for(;a%10==0;a/=10,r--);return r<0&&(r=0),r},O.dividedBy=O.div=function(e,t){return n(this,new q(e,t),M,B)},O.dividedToIntegerBy=O.idiv=function(e,t){return n(this,new q(e,t),0,1)},O.exponentiatedBy=O.pow=function(e,t){var n,r,a,i,o,f,d,p,b=this;if((e=new q(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+G(e));if(null!=t&&(t=new q(t)),o=e.e>14,!b.c||!b.c[0]||1==b.c[0]&&!b.e&&1==b.c.length||!e.c||!e.c[0])return p=new q(Math.pow(+G(b),o?e.s*(2-w(e)):+G(e))),t?p.mod(t):p;if(f=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new q(NaN);(r=!f&&b.isInteger()&&t.isInteger())&&(b=b.mod(t))}else{if(e.e>9&&(b.e>0||b.e<-1||(0==b.e?b.c[0]>1||o&&b.c[1]>=24e7:b.c[0]<8e13||o&&b.c[0]<=9999975e7)))return i=b.s<0&&w(e)?-0:0,b.e>-1&&(i=1/i),new q(f?1/i:i);Z&&(i=s(Z/l+2))}for(o?(n=new q(.5),f&&(e.s=1),d=w(e)):d=(a=Math.abs(+G(e)))%2,p=new q(P);;){if(d){if(!(p=p.times(b)).c)break;i?p.c.length>i&&(p.c.length=i):r&&(p=p.mod(t))}if(a){if(0===(a=c(a/2)))break;d=a%2}else if(J(e=e.times(n),e.e+1,1),e.e>14)d=w(e);else{if(0==(a=+G(e)))break;d=a%2}b=b.times(b),i?b.c&&b.c.length>i&&(b.c.length=i):r&&(b=b.mod(t))}return r?p:(f&&(p=P.div(p)),t?p.mod(t):i?J(p,Z,B,void 0):p)},O.integerValue=function(e){var t=new q(this);return null==e?e=B:A(e,0,8),J(t,t.e+1,e)},O.isEqualTo=O.eq=function(e,t){return 0===g(this,new q(e,t))},O.isFinite=function(){return!!this.c},O.isGreaterThan=O.gt=function(e,t){return g(this,new q(e,t))>0},O.isGreaterThanOrEqualTo=O.gte=function(e,t){return 1===(t=g(this,new q(e,t)))||0===t},O.isInteger=function(){return!!this.c&&m(this.e/l)>this.c.length-2},O.isLessThan=O.lt=function(e,t){return g(this,new q(e,t))<0},O.isLessThanOrEqualTo=O.lte=function(e,t){return-1===(t=g(this,new q(e,t)))||0===t},O.isNaN=function(){return!this.s},O.isNegative=function(){return this.s<0},O.isPositive=function(){return this.s>0},O.isZero=function(){return!!this.c&&0==this.c[0]},O.minus=function(e,t){var n,r,a,i,o=this,s=o.s;if(t=(e=new q(e,t)).s,!s||!t)return new q(NaN);if(s!=t)return e.s=-t,o.plus(e);var c=o.e/l,u=e.e/l,f=o.c,p=e.c;if(!c||!u){if(!f||!p)return f?(e.s=-t,e):new q(p?o:NaN);if(!f[0]||!p[0])return p[0]?(e.s=-t,e):new q(f[0]?o:3==B?-0:0)}if(c=m(c),u=m(u),f=f.slice(),s=c-u){for((i=s<0)?(s=-s,a=f):(u=c,a=p),a.reverse(),t=s;t--;a.push(0));a.reverse()}else for(r=(i=(s=f.length)<(t=p.length))?s:t,s=t=0;t0)for(;t--;f[n++]=0);for(t=d-1;r>s;){if(f[--r]=0;){for(n=0,b=_[a]%A,y=_[a]/A|0,i=a+(o=c);i>a;)n=((u=b*(u=x[--o]%A)+(s=y*u+(f=x[o]/A|0)*b)%A*A+v[i]+n)/g|0)+(s/A|0)+y*f,v[i--]=u%g;v[i]=n}return n?++r:v.splice(0,1),V(e,v,r)},O.negated=function(){var e=new q(this);return e.s=-e.s||null,e},O.plus=function(e,t){var n,r=this,a=r.s;if(t=(e=new q(e,t)).s,!a||!t)return new q(NaN);if(a!=t)return e.s=-t,r.minus(e);var i=r.e/l,o=e.e/l,s=r.c,c=e.c;if(!i||!o){if(!s||!c)return new q(a/0);if(!s[0]||!c[0])return c[0]?e:new q(s[0]?r:0*a)}if(i=m(i),o=m(o),s=s.slice(),a=i-o){for(a>0?(o=i,n=c):(a=-a,n=s),n.reverse();a--;n.push(0));n.reverse()}for((a=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=a),a=0;t;)a=(s[--t]=s[t]+c[t]+a)/d|0,s[t]=d===s[t]?0:s[t]%d;return a&&(s=[a].concat(s),++o),V(e,s,o)},O.precision=O.sd=function(e,t){var n,r,a,i=this;if(null!=e&&e!==!!e)return A(e,1,y),null==t?t=B:A(t,0,8),J(new q(i),e,t);if(!(n=i.c))return null;if(r=(a=n.length-1)*l+1,a=n[a]){for(;a%10==0;a/=10,r--);for(a=n[0];a>=10;a/=10,r++);}return e&&i.e+1>r&&(r=i.e+1),r},O.shiftedBy=function(e){return A(e,-9007199254740991,p),this.times("1e"+e)},O.squareRoot=O.sqrt=function(){var e,t,r,a,i,o=this,s=o.c,c=o.s,u=o.e,f=M+4,d=new q("0.5");if(1!==c||!s||!s[0])return new q(!c||c<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(c=Math.sqrt(+G(o)))||c==1/0?(((t=v(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(+t),u=m((u+1)/2)-(u<0||u%2),r=new q(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new q(c+""),r.c[0])for((c=(u=r.e)+f)<3&&(c=0);;)if(i=r,r=d.times(i.plus(n(o,i,f,1))),v(i.c).slice(0,c)===(t=v(r.c)).slice(0,c)){if(r.e0&&h>0){for(i=h%s||s,d=b.substr(0,i);i0&&(d+=f+b.slice(i)),p&&(d="-"+d)}r=l?d+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?l.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):l):d}return(n.prefix||"")+r+(n.suffix||"")},O.toFraction=function(e){var t,r,a,i,o,s,c,f,d,p,h,y,m=this,g=m.c;if(null!=e&&(!(c=new q(e)).isInteger()&&(c.c||1!==c.s)||c.lt(P)))throw Error(u+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+G(c));if(!g)return new q(m);for(t=new q(P),d=r=new q(P),a=f=new q(P),y=v(g),o=t.e=y.length-m.e-1,t.c[0]=b[(s=o%l)<0?l+s:s],e=!e||c.comparedTo(t)>0?o>0?t:d:c,s=j,j=1/0,c=new q(y),f.c[0]=0;p=n(c,t,0,1),1!=(i=r.plus(p.times(a))).comparedTo(e);)r=a,a=i,d=f.plus(p.times(i=d)),f=i,t=c.minus(p.times(i=t)),c=i;return i=n(e.minus(r),a,0,1),f=f.plus(i.times(d)),r=r.plus(i.times(a)),f.s=d.s=m.s,h=n(d,a,o*=2,B).minus(m).abs().comparedTo(n(f,r,o,B).minus(m).abs())<1?[d,a]:[f,r],j=s,h},O.toNumber=function(){return+G(this)},O.toPrecision=function(e,t){return null!=e&&A(e,1,y),Q(this,e,t,2)},O.toString=function(e){var t,n=this,a=n.s,i=n.e;return null===i?a?(t="Infinity",a<0&&(t="-"+t)):t="NaN":(null==e?t=i<=R||i>=N?x(v(n.c),i):_(v(n.c),i,"0"):10===e&&z?t=_(v((n=J(new q(n),M+i+1,B)).c),n.e,"0"):(A(e,2,H.length,"Base"),t=r(_(v(n.c),i,"0"),10,e,a,!0)),a<0&&n.c[0]&&(t="-"+t)),t},O.valueOf=O.toJSON=function(){return G(this)},O._isBigNumber=!0,null!=t&&q.set(t),q}(),i.default=i.BigNumber=i,void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},90004:function(e,t,n){"use strict";var r=n(10202).default,a=n(48648).default,i=n(63298).default,o=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var s=function(){function e(t,n){i(this,e),this.code="",this.scopes=[["vars"]],this.bitFields=[],this.tmpVariableCount=0,this.references=new Map,this.imports=[],this.reverseImports=new Map,this.useContextVariables=!1,this.importPath=t,this.useContextVariables=n}return o(e,[{key:"generateVariable",value:function(e){var t=a(this.scopes[this.scopes.length-1]);return e&&t.push(e),t.join(".")}},{key:"generateOption",value:function(e){switch(typeof e){case"number":return e.toString();case"string":return this.generateVariable(e);case"function":return"".concat(this.addImport(e),".call(").concat(this.generateVariable(),", vars)")}}},{key:"generateError",value:function(e){this.pushCode("throw new Error(".concat(e,");"))}},{key:"generateTmpVariable",value:function(){return"$tmp"+this.tmpVariableCount++}},{key:"pushCode",value:function(e){this.code+=e+"\n"}},{key:"pushPath",value:function(e){e&&this.scopes[this.scopes.length-1].push(e)}},{key:"popPath",value:function(e){e&&this.scopes[this.scopes.length-1].pop()}},{key:"pushScope",value:function(e){this.scopes.push([e])}},{key:"popScope",value:function(){this.scopes.pop()}},{key:"addImport",value:function(e){if(!this.importPath)return"(".concat(e,")");var t=this.reverseImports.get(e);return t||(t=this.imports.push(e)-1,this.reverseImports.set(e,t)),"".concat(this.importPath,"[").concat(t,"]")}},{key:"addReference",value:function(e){this.references.has(e)||this.references.set(e,{resolved:!1,requested:!1})}},{key:"markResolved",value:function(e){var t=this.references.get(e);t&&(t.resolved=!0)}},{key:"markRequested",value:function(e){var t=this;e.forEach((function(e){var n=t.references.get(e);n&&(n.requested=!0)}))}},{key:"getUnresolvedReferences",value:function(){return Array.from(this.references).filter((function(e){var t=r(e,2),n=(t[0],t[1]);return!n.resolved&&!n.requested})).map((function(e){var t=r(e,2),n=t[0];return t[1],n}))}}]),e}(),c=new Map,u="___parser_",f={uint8:1,uint16le:2,uint16be:2,uint32le:4,uint32be:4,int8:1,int16le:2,int16be:2,int32le:4,int32be:4,int64be:8,int64le:8,uint64be:8,uint64le:8,floatle:4,floatbe:4,doublele:8,doublebe:8},d={uint8:"Uint8",uint16le:"Uint16",uint16be:"Uint16",uint32le:"Uint32",uint32be:"Uint32",int8:"Int8",int16le:"Int16",int16be:"Int16",int32le:"Int32",int32be:"Int32",int64be:"BigInt64",int64le:"BigInt64",uint64be:"BigUint64",uint64le:"BigUint64",floatle:"Float32",floatbe:"Float32",doublele:"Float64",doublebe:"Float64"},l={uint8:!1,uint16le:!0,uint16be:!1,uint32le:!0,uint32be:!1,int8:!1,int16le:!0,int16be:!1,int32le:!0,int32be:!1,int64be:!1,int64le:!0,uint64be:!1,uint64le:!0,floatle:!0,floatbe:!1,doublele:!0,doublebe:!1},p=function(){function e(){i(this,e),this.varName="",this.type="",this.options={},this.endian="be",this.useContextVariables=!1}return o(e,[{key:"primitiveGenerateN",value:function(e,t){var n=d[e],r=l[e];t.pushCode("".concat(t.generateVariable(this.varName)," = dataView.get").concat(n,"(offset, ").concat(r,");")),t.pushCode("offset += ".concat(f[e],";"))}},{key:"primitiveN",value:function(e,t,n){return this.setNextParser(e,t,n)}},{key:"useThisEndian",value:function(e){return e+this.endian.toLowerCase()}},{key:"uint8",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint8",e,t)}},{key:"uint16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("uint16"),e,t)}},{key:"uint16le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint16le",e,t)}},{key:"uint16be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint16be",e,t)}},{key:"uint32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("uint32"),e,t)}},{key:"uint32le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint32le",e,t)}},{key:"uint32be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint32be",e,t)}},{key:"int8",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int8",e,t)}},{key:"int16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("int16"),e,t)}},{key:"int16le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int16le",e,t)}},{key:"int16be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int16be",e,t)}},{key:"int32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("int32"),e,t)}},{key:"int32le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int32le",e,t)}},{key:"int32be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int32be",e,t)}},{key:"bigIntVersionCheck",value:function(){if(!DataView.prototype.getBigInt64)throw new Error("BigInt64 is unsupported on this runtime")}},{key:"int64",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN(this.useThisEndian("int64"),e,t)}},{key:"int64be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("int64be",e,t)}},{key:"int64le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("int64le",e,t)}},{key:"uint64",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN(this.useThisEndian("uint64"),e,t)}},{key:"uint64be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("uint64be",e,t)}},{key:"uint64le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("uint64le",e,t)}},{key:"floatle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("floatle",e,t)}},{key:"floatbe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("floatbe",e,t)}},{key:"doublele",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("doublele",e,t)}},{key:"doublebe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("doublebe",e,t)}},{key:"bitN",value:function(e,t,n){return n.length=e,this.setNextParser("bit",t,n)}},{key:"bit1",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(1,e,t)}},{key:"bit2",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(2,e,t)}},{key:"bit3",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(3,e,t)}},{key:"bit4",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(4,e,t)}},{key:"bit5",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(5,e,t)}},{key:"bit6",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(6,e,t)}},{key:"bit7",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(7,e,t)}},{key:"bit8",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(8,e,t)}},{key:"bit9",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(9,e,t)}},{key:"bit10",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(10,e,t)}},{key:"bit11",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(11,e,t)}},{key:"bit12",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(12,e,t)}},{key:"bit13",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(13,e,t)}},{key:"bit14",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(14,e,t)}},{key:"bit15",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(15,e,t)}},{key:"bit16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(16,e,t)}},{key:"bit17",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(17,e,t)}},{key:"bit18",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(18,e,t)}},{key:"bit19",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(19,e,t)}},{key:"bit20",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(20,e,t)}},{key:"bit21",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(21,e,t)}},{key:"bit22",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(22,e,t)}},{key:"bit23",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(23,e,t)}},{key:"bit24",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(24,e,t)}},{key:"bit25",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(25,e,t)}},{key:"bit26",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(26,e,t)}},{key:"bit27",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(27,e,t)}},{key:"bit28",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(28,e,t)}},{key:"bit29",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(29,e,t)}},{key:"bit30",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(30,e,t)}},{key:"bit31",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(31,e,t)}},{key:"bit32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(32,e,t)}},{key:"namely",value:function(e){return c.set(e,this),this.alias=e,this}},{key:"skip",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.seek(e,t)}},{key:"seek",value:function(e){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).assert)throw new Error("assert option on seek is not allowed.");return this.setNextParser("seek","",{length:e})}},{key:"string",value:function(e,t){if(!t.zeroTerminated&&!t.length&&!t.greedy)throw new Error("One of length, zeroTerminated, or greedy must be defined for string.");if((t.zeroTerminated||t.length)&&t.greedy)throw new Error("greedy is mutually exclusive with length and zeroTerminated for string.");if(t.stripNull&&!t.length&&!t.greedy)throw new Error("length or greedy must be defined if stripNull is enabled.");return t.encoding=t.encoding||"utf8",this.setNextParser("string",e,t)}},{key:"buffer",value:function(e,t){if(!t.length&&!t.readUntil)throw new Error("length or readUntil must be defined for buffer.");return this.setNextParser("buffer",e,t)}},{key:"wrapped",value:function(e,t){if("object"!=typeof t&&"object"==typeof e&&(t=e,e=""),!t||!t.wrapper||!t.type)throw new Error("Both wrapper and type must be defined for wrapped.");if(!t.length&&!t.readUntil)throw new Error("length or readUntil must be defined for wrapped.");return this.setNextParser("wrapper",e,t)}},{key:"array",value:function(e,t){if(!t.readUntil&&!t.length&&!t.lengthInBytes)throw new Error("One of readUntil, length and lengthInBytes must be defined for array.");if(!t.type)throw new Error("type is required for array.");if("string"==typeof t.type&&!c.has(t.type)&&!(t.type in f))throw new Error('Array element type "'.concat(t.type,'" is unkown.'));return this.setNextParser("array",e,t)}},{key:"choice",value:function(e,t){if("object"!=typeof t&&"object"==typeof e&&(t=e,e=""),!t)throw new Error("tag and choices are are required for choice.");if(!t.tag)throw new Error("tag is requird for choice.");if(!t.choices)throw new Error("choices is required for choice.");for(var n in t.choices){var r=parseInt(n,10),a=t.choices[r];if(isNaN(r))throw new Error('Choice key "'.concat(n,'" is not a number.'));if("string"==typeof a&&!c.has(a)&&!(a in f))throw new Error('Choice type "'.concat(a,'" is unkown.'))}return this.setNextParser("choice",e,t)}},{key:"nest",value:function(t,n){if("object"!=typeof n&&"object"==typeof t&&(n=t,t=""),!n||!n.type)throw new Error("type is required for nest.");if(!(n.type instanceof e||c.has(n.type)))throw new Error("type must be a known parser name or a Parser object.");if(!(n.type instanceof e||t))throw new Error("type must be a Parser object if the variable name is omitted.");return this.setNextParser("nest",t,n)}},{key:"pointer",value:function(e,t){if(!t.offset)throw new Error("offset is required for pointer.");if(!t.type)throw new Error("type is required for pointer.");if("string"==typeof t.type&&!(t.type in f)&&!c.has(t.type))throw new Error('Pointer type "'.concat(t.type,'" is unkown.'));return this.setNextParser("pointer",e,t)}},{key:"saveOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setNextParser("saveOffset",e,t)}},{key:"endianness",value:function(e){switch(e.toLowerCase()){case"little":this.endian="le";break;case"big":this.endian="be";break;default:throw new Error('endianness must be one of "little" or "big"')}return this}},{key:"endianess",value:function(e){return this.endianness(e)}},{key:"useContextVars",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.useContextVariables=e,this}},{key:"create",value:function(e){if(!(e instanceof Function))throw new Error("Constructor must be a Function object.");return this.constructorFn=e,this}},{key:"getContext",value:function(e){var t=new s(e,this.useContextVariables);return t.pushCode("var dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.length);"),this.alias?(this.addAliasedCode(t),t.pushCode("return ".concat(u+this.alias,"(0).result;"))):this.addRawCode(t),t}},{key:"getCode",value:function(){return this.getContext("imports").code}},{key:"addRawCode",value:function(e){e.pushCode("var offset = 0;"),e.pushCode("var vars = ".concat(this.constructorFn?"new constructorFn()":"{}",";")),e.pushCode("vars.$parent = null;"),e.pushCode("vars.$root = vars;"),this.generate(e),this.resolveReferences(e),e.pushCode("delete vars.$parent;"),e.pushCode("delete vars.$root;"),e.pushCode("return vars;")}},{key:"addAliasedCode",value:function(e){return e.pushCode("function ".concat(u+this.alias,"(offset, context) {")),e.pushCode("var vars = ".concat(this.constructorFn?"new constructorFn()":"{}",";")),e.pushCode("var ctx = Object.assign({$parent: null, $root: vars}, context || {});"),e.pushCode("vars = Object.assign(vars, ctx);"),this.generate(e),e.markResolved(this.alias),this.resolveReferences(e),e.pushCode("Object.keys(ctx).forEach(function (item) { delete vars[item]; });"),e.pushCode("return { offset: offset, result: vars };"),e.pushCode("}"),e}},{key:"resolveReferences",value:function(e){var t=e.getUnresolvedReferences();e.markRequested(t),t.forEach((function(t){var n;null===(n=c.get(t))||void 0===n||n.addAliasedCode(e)}))}},{key:"compile",value:function(){var e="imports",t=this.getContext(e);this.compiled=new Function(e,"TextDecoder","return function (buffer, constructorFn) { ".concat(t.code," };"))(t.imports,TextDecoder)}},{key:"sizeOf",value:function(){var t=NaN;if(Object.keys(f).indexOf(this.type)>=0)t=f[this.type];else if("string"===this.type&&"number"==typeof this.options.length)t=this.options.length;else if("buffer"===this.type&&"number"==typeof this.options.length)t=this.options.length;else if("array"===this.type&&"number"==typeof this.options.length){var n=NaN;"string"==typeof this.options.type?n=f[this.options.type]:this.options.type instanceof e&&(n=this.options.type.sizeOf()),t=this.options.length*n}else"seek"===this.type?t=this.options.length:"nest"===this.type?t=this.options.type.sizeOf():this.type||(t=0);return this.next&&(t+=this.next.sizeOf()),t}},{key:"parse",value:function(e){return this.compiled||this.compile(),this.compiled(e,this.constructorFn)}},{key:"setNextParser",value:function(t,n,r){var a=new e;return a.type=t,a.varName=n,a.options=r,a.endian=this.endian,this.head?this.head.next=a:this.next=a,this.head=a,this}},{key:"generate",value:function(e){if(this.type){switch(this.type){case"uint8":case"uint16le":case"uint16be":case"uint32le":case"uint32be":case"int8":case"int16le":case"int16be":case"int32le":case"int32be":case"int64be":case"int64le":case"uint64be":case"uint64le":case"floatle":case"floatbe":case"doublele":case"doublebe":this.primitiveGenerateN(this.type,e);break;case"bit":this.generateBit(e);break;case"string":this.generateString(e);break;case"buffer":this.generateBuffer(e);break;case"seek":this.generateSeek(e);break;case"nest":this.generateNest(e);break;case"array":this.generateArray(e);break;case"choice":this.generateChoice(e);break;case"pointer":this.generatePointer(e);break;case"saveOffset":this.generateSaveOffset(e);break;case"wrapper":this.generateWrapper(e)}"bit"!==this.type&&this.generateAssert(e)}var t=e.generateVariable(this.varName);return this.options.formatter&&"bit"!==this.type&&this.generateFormatter(e,t,this.options.formatter),this.generateNext(e)}},{key:"generateAssert",value:function(e){if(this.options.assert){var t=e.generateVariable(this.varName);switch(typeof this.options.assert){case"function":var n=e.addImport(this.options.assert);e.pushCode("if (!".concat(n,".call(vars, ").concat(t,")) {"));break;case"number":e.pushCode("if (".concat(this.options.assert," !== ").concat(t,") {"));break;case"string":e.pushCode("if (".concat(JSON.stringify(this.options.assert)," !== ").concat(t,") {"));break;default:throw new Error("assert option must be a string, number or a function.")}e.generateError('"Assertion error: '.concat(t,' is " + ').concat(JSON.stringify(this.options.assert.toString()))),e.pushCode("}")}}},{key:"generateNext",value:function(e){return this.next&&(e=this.next.generate(e)),e}},{key:"generateBit",value:function(e){var t=JSON.parse(JSON.stringify(this));if(t.options=this.options,t.generateAssert=this.generateAssert.bind(this),t.generateFormatter=this.generateFormatter.bind(this),t.varName=e.generateVariable(t.varName),e.bitFields.push(t),!this.next||this.next&&["bit","nest"].indexOf(this.next.type)<0){var n=e.generateTmpVariable();e.pushCode("var ".concat(n," = 0;"));var r=0,a="be"===this.endian,i=0,o=0;e.bitFields.forEach((function(t,s){var c=t.options.length;if(c>o){if(o){var u=-1>>>32-o;e.pushCode("".concat(t.varName," = (").concat(n," & 0x").concat(u.toString(16),") << ").concat(c-o,";")),c-=o}r=0,o=i=function(t){return t<=8?(e.pushCode("".concat(n," = dataView.getUint8(offset);")),t=8):t<=16?(e.pushCode("".concat(n," = dataView.getUint16(offset);")),t=16):t<=24?(e.pushCode("".concat(n," = (dataView.getUint16(offset) << 8) | dataView.getUint8(offset + 2);")),t=24):(e.pushCode("".concat(n," = dataView.getUint32(offset);")),t=32),e.pushCode("offset += ".concat(t/8,";")),t}(function(){for(var t=0,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;n32)break;t+=r}return t}(s)-o)}var f=a?i-r-c:r,d=-1>>>32-c;e.pushCode("".concat(t.varName," ").concat(c> ").concat(f," & 0x").concat(d.toString(16),";")),32===t.options.length&&e.pushCode("".concat(t.varName," >>>= 0")),t.options.assert&&t.generateAssert(e),t.options.formatter&&t.generateFormatter(e,t.varName,t.options.formatter),r+=c,o-=c})),e.bitFields=[]}}},{key:"generateSeek",value:function(e){var t=e.generateOption(this.options.length);e.pushCode("offset += ".concat(t,";"))}},{key:"generateString",value:function(e){var t=e.generateVariable(this.varName),n=e.generateTmpVariable(),r=this.options.encoding,a="hex"===r.toLowerCase(),i='b => b.toString(16).padStart(2, "0")';if(this.options.length&&this.options.zeroTerminated){var o=this.options.length;e.pushCode("var ".concat(n," = offset;")),e.pushCode("while(dataView.getUint8(offset++) !== 0 && offset - ".concat(n," < ").concat(o,");"));var s="offset - ".concat(n," < ").concat(o," ? offset - 1 : offset");e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(").concat(n,", ").concat(s,"), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(").concat(n,", ").concat(s,"));"))}else if(this.options.length){var c=e.generateOption(this.options.length);e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(offset, offset + ").concat(c,"), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(offset, offset + ").concat(c,"));")),e.pushCode("offset += ".concat(c,";"))}else this.options.zeroTerminated?(e.pushCode("var ".concat(n," = offset;")),e.pushCode("while(dataView.getUint8(offset++) !== 0);"),e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(").concat(n,", offset - 1), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(").concat(n,", offset - 1));"))):this.options.greedy&&(e.pushCode("var ".concat(n," = offset;")),e.pushCode("while(buffer.length > offset++);"),e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(").concat(n,", offset), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(").concat(n,", offset));")));this.options.stripNull&&e.pushCode("".concat(t," = ").concat(t,".replace(/\\x00+$/g, '')"))}},{key:"generateBuffer",value:function(e){var t=e.generateVariable(this.varName);if("function"==typeof this.options.readUntil){var n=this.options.readUntil,r=e.generateTmpVariable(),a=e.generateTmpVariable();e.pushCode("var ".concat(r," = offset;")),e.pushCode("var ".concat(a," = 0;")),e.pushCode("while (offset < buffer.length) {"),e.pushCode("".concat(a," = dataView.getUint8(offset);"));var i=e.addImport(n);e.pushCode("if (".concat(i,".call(").concat(e.generateVariable(),", ").concat(a,", buffer.subarray(offset))) break;")),e.pushCode("offset += 1;"),e.pushCode("}"),e.pushCode("".concat(t," = buffer.subarray(").concat(r,", offset);"))}else if("eof"===this.options.readUntil)e.pushCode("".concat(t," = buffer.subarray(offset);"));else{var o=e.generateOption(this.options.length);e.pushCode("".concat(t," = buffer.subarray(offset, offset + ").concat(o,");")),e.pushCode("offset += ".concat(o,";"))}this.options.clone&&e.pushCode("".concat(t," = buffer.constructor.from(").concat(t,");"))}},{key:"generateArray",value:function(t){var n=t.generateOption(this.options.length),r=t.generateOption(this.options.lengthInBytes),a=this.options.type,i=t.generateTmpVariable(),o=t.generateVariable(this.varName),s=t.generateTmpVariable(),p=this.options.key,b="string"==typeof p;if(b?t.pushCode("".concat(o," = {};")):t.pushCode("".concat(o," = [];")),"function"==typeof this.options.readUntil?t.pushCode("do {"):"eof"===this.options.readUntil?t.pushCode("for (var ".concat(i," = 0; offset < buffer.length; ").concat(i,"++) {")):void 0!==r?t.pushCode("for (var ".concat(i," = offset + ").concat(r,"; offset < ").concat(i,"; ) {")):t.pushCode("for (var ".concat(i," = ").concat(n,"; ").concat(i," > 0; ").concat(i,"--) {")),"string"==typeof a)if(c.get(a)){var h=t.generateTmpVariable();if(t.pushCode("var ".concat(h," = ").concat(u+a,"(offset, {")),t.useContextVariables){var y=t.generateVariable();t.pushCode("$parent: ".concat(y,",")),t.pushCode("$root: ".concat(y,".$root,")),this.options.readUntil||void 0!==r||t.pushCode("$index: ".concat(n," - ").concat(i,","))}t.pushCode("});"),t.pushCode("var ".concat(s," = ").concat(h,".result; offset = ").concat(h,".offset;")),a!==this.alias&&t.addReference(a)}else{var m=d[a],v=l[a];t.pushCode("var ".concat(s," = dataView.get").concat(m,"(offset, ").concat(v,");")),t.pushCode("offset += ".concat(f[a],";"))}else if(a instanceof e){t.pushCode("var ".concat(s," = {};"));var g=t.generateVariable();t.pushScope(s),t.useContextVariables&&(t.pushCode("".concat(s,".$parent = ").concat(g,";")),t.pushCode("".concat(s,".$root = ").concat(g,".$root;")),this.options.readUntil||void 0!==r||t.pushCode("".concat(s,".$index = ").concat(n," - ").concat(i,";"))),a.generate(t),t.useContextVariables&&(t.pushCode("delete ".concat(s,".$parent;")),t.pushCode("delete ".concat(s,".$root;")),t.pushCode("delete ".concat(s,".$index;"))),t.popScope()}if(b?t.pushCode("".concat(o,"[").concat(s,".").concat(p,"] = ").concat(s,";")):t.pushCode("".concat(o,".push(").concat(s,");")),t.pushCode("}"),"function"==typeof this.options.readUntil){var A=this.options.readUntil,w=t.addImport(A);t.pushCode("while (!".concat(w,".call(").concat(t.generateVariable(),", ").concat(s,", buffer.subarray(offset)));"))}}},{key:"generateChoiceCase",value:function(t,n,r){if("string"==typeof r){var a=t.generateVariable(this.varName);if(c.has(r)){var i=t.generateTmpVariable();t.pushCode("var ".concat(i," = ").concat(u+r,"(offset, {")),t.useContextVariables&&(t.pushCode("$parent: ".concat(a,".$parent,")),t.pushCode("$root: ".concat(a,".$root,"))),t.pushCode("});"),t.pushCode("".concat(a," = ").concat(i,".result; offset = ").concat(i,".offset;")),r!==this.alias&&t.addReference(r)}else{var o=d[r],s=l[r];t.pushCode("".concat(a," = dataView.get").concat(o,"(offset, ").concat(s,");")),t.pushCode("offset += ".concat(f[r]))}}else r instanceof e&&(t.pushPath(n),r.generate(t),t.popPath(n))}},{key:"generateChoice",value:function(e){var t=e.generateOption(this.options.tag),n=e.generateVariable(this.varName);if(this.varName&&(e.pushCode("".concat(n," = {};")),e.useContextVariables)){var r=e.generateVariable();e.pushCode("".concat(n,".$parent = ").concat(r,";")),e.pushCode("".concat(n,".$root = ").concat(r,".$root;"))}for(var a in e.pushCode("switch(".concat(t,") {")),this.options.choices){var i=parseInt(a,10),o=this.options.choices[i];e.pushCode("case ".concat(i,":")),this.generateChoiceCase(e,this.varName,o),e.pushCode("break;")}e.pushCode("default:"),this.options.defaultChoice?this.generateChoiceCase(e,this.varName,this.options.defaultChoice):e.generateError('"Met undefined tag value " + '.concat(t,' + " at choice"')),e.pushCode("}"),this.varName&&e.useContextVariables&&(e.pushCode("delete ".concat(n,".$parent;")),e.pushCode("delete ".concat(n,".$root;")))}},{key:"generateNest",value:function(t){var n=t.generateVariable(this.varName);if(this.options.type instanceof e){if(this.varName&&(t.pushCode("".concat(n," = {};")),t.useContextVariables)){var r=t.generateVariable();t.pushCode("".concat(n,".$parent = ").concat(r,";")),t.pushCode("".concat(n,".$root = ").concat(r,".$root;"))}t.pushPath(this.varName),this.options.type.generate(t),t.popPath(this.varName),this.varName&&t.useContextVariables&&t.useContextVariables&&(t.pushCode("delete ".concat(n,".$parent;")),t.pushCode("delete ".concat(n,".$root;")))}else if(c.has(this.options.type)){var a=t.generateTmpVariable();if(t.pushCode("var ".concat(a," = ").concat(u+this.options.type,"(offset, {")),t.useContextVariables){var i=t.generateVariable();t.pushCode("$parent: ".concat(i,",")),t.pushCode("$root: ".concat(i,".$root,"))}t.pushCode("});"),t.pushCode("".concat(n," = ").concat(a,".result; offset = ").concat(a,".offset;")),this.options.type!==this.alias&&t.addReference(this.options.type)}}},{key:"generateWrapper",value:function(t){var n=t.generateVariable(this.varName),r=t.generateTmpVariable();if("function"==typeof this.options.readUntil){var a=this.options.readUntil,i=t.generateTmpVariable(),o=t.generateTmpVariable();t.pushCode("var ".concat(i," = offset;")),t.pushCode("var ".concat(o," = 0;")),t.pushCode("while (offset < buffer.length) {"),t.pushCode("".concat(o," = dataView.getUint8(offset);"));var s=t.addImport(a);t.pushCode("if (".concat(s,".call(").concat(t.generateVariable(),", ").concat(o,", buffer.subarray(offset))) break;")),t.pushCode("offset += 1;"),t.pushCode("}"),t.pushCode("".concat(r," = buffer.subarray(").concat(i,", offset);"))}else if("eof"===this.options.readUntil)t.pushCode("".concat(r," = buffer.subarray(offset);"));else{var f=t.generateOption(this.options.length);t.pushCode("".concat(r," = buffer.subarray(offset, offset + ").concat(f,");")),t.pushCode("offset += ".concat(f,";"))}this.options.clone&&t.pushCode("".concat(r," = buffer.constructor.from(").concat(r,");"));var d=t.generateTmpVariable(),l=t.generateTmpVariable(),p=t.generateTmpVariable(),b=t.addImport(this.options.wrapper);if(t.pushCode("".concat(r," = ").concat(b,".call(this, ").concat(r,").subarray(0);")),t.pushCode("var ".concat(d," = buffer;")),t.pushCode("var ".concat(l," = offset;")),t.pushCode("var ".concat(p," = dataView;")),t.pushCode("buffer = ".concat(r,";")),t.pushCode("offset = 0;"),t.pushCode("dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.length);"),this.options.type instanceof e)this.varName&&t.pushCode("".concat(n," = {};")),t.pushPath(this.varName),this.options.type.generate(t),t.popPath(this.varName);else if(c.has(this.options.type)){var h=t.generateTmpVariable();t.pushCode("var ".concat(h," = ").concat(u+this.options.type,"(0);")),t.pushCode("".concat(n," = ").concat(h,".result;")),this.options.type!==this.alias&&t.addReference(this.options.type)}t.pushCode("buffer = ".concat(d,";")),t.pushCode("dataView = ".concat(p,";")),t.pushCode("offset = ".concat(l,";"))}},{key:"generateFormatter",value:function(e,t,n){if("function"==typeof n){var r=e.addImport(n);e.pushCode("".concat(t," = ").concat(r,".call(").concat(e.generateVariable(),", ").concat(t,");"))}}},{key:"generatePointer",value:function(t){var n=this.options.type,r=t.generateOption(this.options.offset),a=t.generateTmpVariable(),i=t.generateVariable(this.varName);if(t.pushCode("var ".concat(a," = offset;")),t.pushCode("offset = ".concat(r,";")),this.options.type instanceof e){if(t.pushCode("".concat(i," = {};")),t.useContextVariables){var o=t.generateVariable();t.pushCode("".concat(i,".$parent = ").concat(o,";")),t.pushCode("".concat(i,".$root = ").concat(o,".$root;"))}t.pushPath(this.varName),this.options.type.generate(t),t.popPath(this.varName),t.useContextVariables&&(t.pushCode("delete ".concat(i,".$parent;")),t.pushCode("delete ".concat(i,".$root;")))}else if(c.has(this.options.type)){var s=t.generateTmpVariable();if(t.pushCode("var ".concat(s," = ").concat(u+this.options.type,"(offset, {")),t.useContextVariables){var p=t.generateVariable();t.pushCode("$parent: ".concat(p,",")),t.pushCode("$root: ".concat(p,".$root,"))}t.pushCode("});"),t.pushCode("".concat(i," = ").concat(s,".result; offset = ").concat(s,".offset;")),this.options.type!==this.alias&&t.addReference(this.options.type)}else if(Object.keys(f).indexOf(this.options.type)>=0){var b=d[n],h=l[n];t.pushCode("".concat(i," = dataView.get").concat(b,"(offset, ").concat(h,");")),t.pushCode("offset += ".concat(f[n],";"))}t.pushCode("offset = ".concat(a,";"))}},{key:"generateSaveOffset",value:function(e){var t=e.generateVariable(this.varName);e.pushCode("".concat(t," = offset"))}}],[{key:"start",value:function(){return new e}}]),e}();t.Parser=p},63435:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(63298).default,i=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0});var o=n(68163),s=n(30248),c=n(31221),u=n(87853),f=n(46425),d=u.BufferN(32),l=u.compile({wif:u.UInt8,bip32:{public:u.UInt32,private:u.UInt32}}),p={messagePrefix:"Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},b=2147483648,h=Math.pow(2,31)-1;function y(e){return u.String(e)&&null!==e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}function m(e){return u.UInt32(e)&&e<=h}var v=function(){function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;a(this,e),this.__D=t,this.__Q=n,this.chainCode=r,this.network=i,this.__DEPTH=o,this.__INDEX=s,this.__PARENT_FINGERPRINT=c,u(l,i),this.lowR=!1}return i(e,[{key:"depth",get:function(){return this.__DEPTH}},{key:"index",get:function(){return this.__INDEX}},{key:"parentFingerprint",get:function(){return this.__PARENT_FINGERPRINT}},{key:"publicKey",get:function(){return void 0===this.__Q&&(this.__Q=c.pointFromScalar(this.__D,!0)),this.__Q}},{key:"privateKey",get:function(){return this.__D}},{key:"identifier",get:function(){return o.hash160(this.publicKey)}},{key:"fingerprint",get:function(){return this.identifier.slice(0,4)}},{key:"compressed",get:function(){return!0}},{key:"isNeutered",value:function(){return void 0===this.__D}},{key:"neutered",value:function(){return w(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}},{key:"toBase58",value:function(){var e=this.network,t=this.isNeutered()?e.bip32.public:e.bip32.private,n=r.allocUnsafe(78);return n.writeUInt32BE(t,0),n.writeUInt8(this.depth,4),n.writeUInt32BE(this.parentFingerprint,5),n.writeUInt32BE(this.index,9),this.chainCode.copy(n,13),this.isNeutered()?this.publicKey.copy(n,45):(n.writeUInt8(0,45),this.privateKey.copy(n,46)),s.encode(n)}},{key:"toWIF",value:function(){if(!this.privateKey)throw new TypeError("Missing private key");return f.encode(this.network.wif,this.privateKey,!0)}},{key:"derive",value:function(e){u(u.UInt32,e);var t=e>=b,n=r.allocUnsafe(37);if(t){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");n[0]=0,this.privateKey.copy(n,1),n.writeUInt32BE(e,33)}else this.publicKey.copy(n,0),n.writeUInt32BE(e,33);var a,i=o.hmacSHA512(this.chainCode,n),s=i.slice(0,32),f=i.slice(32);if(!c.isPrivate(s))return this.derive(e+1);if(this.isNeutered()){var d=c.pointAddScalar(this.publicKey,s,!0);if(null===d)return this.derive(e+1);a=w(d,f,this.network,this.depth+1,e,this.fingerprint.readUInt32BE(0))}else{var l=c.privateAdd(this.privateKey,s);if(null==l)return this.derive(e+1);a=A(l,f,this.network,this.depth+1,e,this.fingerprint.readUInt32BE(0))}return a}},{key:"deriveHardened",value:function(e){return u(m,e),this.derive(e+b)}},{key:"derivePath",value:function(e){u(y,e);var t=e.split("/");if("m"===t[0]){if(this.parentFingerprint)throw new TypeError("Expected master, got child");t=t.slice(1)}return t.reduce((function(e,t){var n;return"'"===t.slice(-1)?(n=parseInt(t.slice(0,-1),10),e.deriveHardened(n)):(n=parseInt(t,10),e.derive(n))}),this)}},{key:"sign",value:function(e,t){if(!this.privateKey)throw new Error("Missing private key");if(void 0===t&&(t=this.lowR),!1===t)return c.sign(e,this.privateKey);for(var n=c.sign(e,this.privateKey),a=r.alloc(32,0),i=0;n[0]>127;)i++,a.writeUIntLE(i,0,6),n=c.signWithEntropy(e,this.privateKey,a);return n}},{key:"verify",value:function(e,t){return c.verify(e,this.publicKey,t)}}]),e}();function g(e,t,n){return A(e,t,n)}function A(e,t,n,r,a,i){if(u({privateKey:d,chainCode:d},{privateKey:e,chainCode:t}),n=n||p,!c.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return new v(e,void 0,t,n,r,a,i)}function w(e,t,n,r,a,i){if(u({publicKey:u.BufferN(33),chainCode:d},{publicKey:e,chainCode:t}),n=n||p,!c.isPoint(e))throw new TypeError("Point is not on the curve");return new v(void 0,e,t,n,r,a,i)}t.fromBase58=function(e,t){var n=s.decode(e);if(78!==n.length)throw new TypeError("Invalid buffer length");t=t||p;var r=n.readUInt32BE(0);if(r!==t.bip32.private&&r!==t.bip32.public)throw new TypeError("Invalid network version");var a=n[4],i=n.readUInt32BE(5);if(0===a&&0!==i)throw new TypeError("Invalid parent fingerprint");var o=n.readUInt32BE(9);if(0===a&&0!==o)throw new TypeError("Invalid index");var c,u=n.slice(13,45);if(r===t.bip32.private){if(0!==n.readUInt8(45))throw new TypeError("Invalid private key");c=A(n.slice(46,78),u,t,a,o,i)}else c=w(n.slice(45,78),u,t,a,o,i);return c},t.fromPrivateKey=g,t.fromPublicKey=function(e,t,n){return w(e,t,n)},t.fromSeed=function(e,t){if(u(u.Buffer,e),e.length<16)throw new TypeError("Seed should be at least 128 bits");if(e.length>64)throw new TypeError("Seed should be at most 512 bits");t=t||p;var n=o.hmacSHA512(r.from("Bitcoin seed","utf8"),e);return g(n.slice(0,32),n.slice(32),t)}},68163:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(94673),a=n(29817);t.hash160=function(e){var t=r("sha256").update(e).digest();try{return r("rmd160").update(t).digest()}catch(e){return r("ripemd160").update(t).digest()}},t.hmacSHA512=function(e,t){return a("sha512",e).update(t).digest()}},27371:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(63435);t.fromSeed=r.fromSeed,t.fromBase58=r.fromBase58,t.fromPublicKey=r.fromPublicKey,t.fromPrivateKey=r.fromPrivateKey},24892:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a={};t.wordlists=a,t._default=r;try{t._default=r=n(55481),a.czech=r}catch(e){}try{t._default=r=n(94880),a.chinese_simplified=r}catch(e){}try{t._default=r=n(63178),a.chinese_traditional=r}catch(e){}try{t._default=r=n(5391),a.korean=r}catch(e){}try{t._default=r=n(437),a.french=r}catch(e){}try{t._default=r=n(39024),a.italian=r}catch(e){}try{t._default=r=n(98189),a.spanish=r}catch(e){}try{t._default=r=n(72149),a.japanese=r,a.JA=r}catch(e){}try{t._default=r=n(78072),a.portuguese=r}catch(e){}try{t._default=r=n(6651),a.english=r,a.EN=r}catch(e){}},3657:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var a=n(50913),i=n(47319),o=n(56217),s=n(36771),c=n(24892),u=c._default,f="Invalid mnemonic",d="Invalid entropy",l="A wordlist is required but a default could not be found.\nPlease pass a 2048 word array explicitly.";function p(e){return(e||"").normalize("NFKD")}function b(e,t,n){for(;e.length32)throw new Error(d);if(c.length%4!=0)throw new Error(d);var y=r.from(c);if(m(y)!==s)throw new Error("Invalid mnemonic checksum");return y.toString("hex")}function A(e,t){if(r.isBuffer(e)||(e=r.from(e,"hex")),!(t=t||u))throw new Error(l);if(e.length<16)throw new TypeError(d);if(e.length>32)throw new TypeError(d);if(e.length%4!=0)throw new TypeError(d);var n=(y(Array.from(e))+m(e)).match(/(.{1,11})/g).map((function(e){var n=h(e);return t[n]}));return"あいこくしん"===t[0]?n.join(" "):n.join(" ")}t.mnemonicToSeedSync=function(e,t){var n=Uint8Array.from(r.from(p(e),"utf8")),a=Uint8Array.from(r.from(v(p(t)),"utf8")),s=o.pbkdf2(i.sha512,n,a,{c:2048,dkLen:64});return r.from(s)},t.mnemonicToSeed=function(e,t){var n=Uint8Array.from(r.from(p(e),"utf8")),a=Uint8Array.from(r.from(v(p(t)),"utf8"));return o.pbkdf2Async(i.sha512,n,a,{c:2048,dkLen:64}).then((function(e){return r.from(e)}))},t.mnemonicToEntropy=g,t.entropyToMnemonic=A,t.generateMnemonic=function(e,t,n){if((e=e||128)%32!=0)throw new TypeError(d);return A((t=t||function(e){return r.from(s.randomBytes(e))})(e/8),n)},t.validateMnemonic=function(e,t){try{g(e,t)}catch(e){return!1}return!0},t.setDefaultWordlist=function(e){var t=c.wordlists[e];if(!t)throw new Error('Could not find wordlist for language "'+e+'"');u=t},t.getDefaultWordlist=function(){if(!u)throw new Error("No Default Wordlist set");return Object.keys(c.wordlists).filter((function(e){return"JA"!==e&&"EN"!==e&&c.wordlists[e].every((function(e,t){return e===u[t]}))}))[0]};var w=n(24892);t.wordlists=w.wordlists},7134:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(53520).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,a){for(var i=0,o=0,s=Math.min(e.length,n),c=t;c=49?u-49+10:u>=17?u-17+10:u,r(u>=0&&o0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(e){i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?""}var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var b=u-p|0;f+=(o=(a=0|e.words[b])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n._strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215,(a+=2)>=26&&(a-=26,o--),n=0!==i||o!==this.length-1?l[6-c.length]+c+n:c+n}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=p[e],f=b[e];n="";var d=this.clone();for(d.negative=0;!d.isZero();){var h=d.modrn(f).toString(e);n=(d=d.idivn(f)).isZero()?h+n:l[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){this._strip();var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,a),o},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,a=0,i=0;a>8&255),n>16&255),6===i?(n>24&255),r=0,i=0):(r=o>>>24,i+=2)}if(n=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),6===i?(n>=0&&(e[n--]=o>>24&255),r=0,i=0):(r=o>>>24,i+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,p=0|o[1],b=8191&p,h=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,S=0|o[5],I=8191&S,E=S>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,R=0|o[8],N=8191&R,D=R>>>13,j=0|o[9],U=8191&j,L=j>>>13,Z=0|s[0],F=8191&Z,H=Z>>>13,z=0|s[1],q=8191&z,Q=z>>>13,K=0|s[2],V=8191&K,J=K>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],be=8191&pe,he=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,F))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,F)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,F),a=(a=Math.imul(b,H))+Math.imul(h,F)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,Q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,F),a=(a=Math.imul(m,H))+Math.imul(v,F)|0,i=Math.imul(v,H),r=r+Math.imul(b,q)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(h,q)|0,i=i+Math.imul(h,Q)|0;var ve=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(a=(a=a+Math.imul(d,J)|0)+Math.imul(l,V)|0))<<13)|0;u=((i=i+Math.imul(l,J)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,F),a=(a=Math.imul(A,H))+Math.imul(w,F)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,Q)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,Q)|0,r=r+Math.imul(b,V)|0,a=(a=a+Math.imul(b,J)|0)+Math.imul(h,V)|0,i=i+Math.imul(h,J)|0;var ge=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(a=(a=a+Math.imul(d,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,F),a=(a=Math.imul(_,H))+Math.imul(k,F)|0,i=Math.imul(k,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,Q)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,Q)|0,r=r+Math.imul(m,V)|0,a=(a=a+Math.imul(m,J)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,J)|0,r=r+Math.imul(b,W)|0,a=(a=a+Math.imul(b,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(I,F),a=(a=Math.imul(I,H))+Math.imul(E,F)|0,i=Math.imul(E,H),r=r+Math.imul(_,q)|0,a=(a=a+Math.imul(_,Q)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,Q)|0,r=r+Math.imul(A,V)|0,a=(a=a+Math.imul(A,J)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,J)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(b,$)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,F),a=(a=Math.imul(T,H))+Math.imul(O,F)|0,i=Math.imul(O,H),r=r+Math.imul(I,q)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,Q)|0,r=r+Math.imul(_,V)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(b,ne)|0,a=(a=a+Math.imul(b,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,F),a=(a=Math.imul(M,H))+Math.imul(B,F)|0,i=Math.imul(B,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,Q)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,Q)|0,r=r+Math.imul(I,V)|0,a=(a=a+Math.imul(I,J)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,J)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(b,ie)|0,a=(a=a+Math.imul(b,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(N,F),a=(a=Math.imul(N,H))+Math.imul(D,F)|0,i=Math.imul(D,H),r=r+Math.imul(M,q)|0,a=(a=a+Math.imul(M,Q)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,Q)|0,r=r+Math.imul(T,V)|0,a=(a=a+Math.imul(T,J)|0)+Math.imul(O,V)|0,i=i+Math.imul(O,J)|0,r=r+Math.imul(I,W)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(b,ce)|0,a=(a=a+Math.imul(b,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,F),a=(a=Math.imul(U,H))+Math.imul(L,F)|0,i=Math.imul(L,H),r=r+Math.imul(N,q)|0,a=(a=a+Math.imul(N,Q)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,Q)|0,r=r+Math.imul(M,V)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,J)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(I,$)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(b,de)|0,a=(a=a+Math.imul(b,le)|0)+Math.imul(h,de)|0,i=i+Math.imul(h,le)|0;var Se=(u+(r=r+Math.imul(d,be)|0)|0)+((8191&(a=(a=a+Math.imul(d,he)|0)+Math.imul(l,be)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,q),a=(a=Math.imul(U,Q))+Math.imul(L,q)|0,i=Math.imul(L,Q),r=r+Math.imul(N,V)|0,a=(a=a+Math.imul(N,J)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,J)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(I,ne)|0,a=(a=a+Math.imul(I,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Ie=(u+(r=r+Math.imul(b,be)|0)|0)+((8191&(a=(a=a+Math.imul(b,he)|0)+Math.imul(h,be)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,V),a=(a=Math.imul(U,J))+Math.imul(L,V)|0,i=Math.imul(L,J),r=r+Math.imul(N,W)|0,a=(a=a+Math.imul(N,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,be)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,be)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(N,$)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(I,ce)|0,a=(a=a+Math.imul(I,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,de)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,be)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,be)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(N,ne)|0,a=(a=a+Math.imul(N,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(I,de)|0,a=(a=a+Math.imul(I,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,be)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,be)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(N,ie)|0,a=(a=a+Math.imul(N,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(I,be)|0)|0)+((8191&(a=(a=a+Math.imul(I,he)|0)+Math.imul(E,be)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,de)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,de)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,be)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,be)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(N,de)|0,a=(a=a+Math.imul(N,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,be)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,be)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,de),a=(a=Math.imul(U,le))+Math.imul(L,de)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(N,be)|0)|0)+((8191&(a=(a=a+Math.imul(N,he)|0)+Math.imul(D,be)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Re=(u+(r=Math.imul(U,be))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,be)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Se,c[10]=Ie,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Re,0!==u&&(c[19]=u,n.length++),n};function m(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n._strip()}function v(e,t,n){return m(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(y=h),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?h(this,e,t):n<1024?m(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,n+=i/67108864|0,n+=o>>>26,this.words[a]=67108863&o}return 0!==n&&(this.words[a]=n,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this._strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,a=0,i=this.length-1;i>=0;i--)a=(n*a+(0|this.words[i]))%e;return t?-a:a},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,a=this.length-1;a>=0;a--){var i=(0|this.words[a])+67108864*n;this.words[a]=i/e|0,n=i%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0==(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var b=0,h=1;0==(n.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(n.iushrn(b);b-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0==(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new I(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var A={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},a(x,w),x.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(A[e])return A[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new _;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return A[e]=t,t},I.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},I.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),b=o;0!==p.cmp(s);){for(var h=p,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4==++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},a(E,I),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},95208:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(90366).default,i=n(10202).default,o=n(21146).default,s=n(63298).default,c=n(51795).default,u=n(17964).default,f=n(54790).default,d=n(51555).default,l=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),p=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),b=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},h=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&l(t,e,n);return p(t,e),t},y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeUnchecked=t.deserialize=t.serialize=t.BinaryReader=t.BinaryWriter=t.BorshError=t.baseDecode=t.baseEncode=void 0;var m=y(n(7134)),v=y(n(6506)),g=h(n(7620)),A=new("function"!=typeof TextDecoder?g.TextDecoder:TextDecoder)("utf-8",{fatal:!0});t.baseEncode=function(e){return"string"==typeof e&&(e=r.from(e,"utf8")),v.default.encode(r.from(e))},t.baseDecode=function(e){return r.from(v.default.decode(e))};var w=1024,x=function(e){u(n,e);var t=f(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).fieldPath=[],r.originalMessage=e,r}return c(n,[{key:"addToFieldPath",value:function(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}]),n}(d(Error));t.BorshError=x;var _=function(){function e(){s(this,e),this.buf=r.alloc(w),this.length=0}return c(e,[{key:"maybeResize",value:function(){this.buf.length<16+this.length&&(this.buf=r.concat([this.buf,r.alloc(w)]))}},{key:"writeU8",value:function(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}},{key:"writeU16",value:function(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}},{key:"writeU32",value:function(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}},{key:"writeU64",value:function(e){this.maybeResize(),this.writeBuffer(r.from(new m.default(e).toArray("le",8)))}},{key:"writeU128",value:function(e){this.maybeResize(),this.writeBuffer(r.from(new m.default(e).toArray("le",16)))}},{key:"writeU256",value:function(e){this.maybeResize(),this.writeBuffer(r.from(new m.default(e).toArray("le",32)))}},{key:"writeU512",value:function(e){this.maybeResize(),this.writeBuffer(r.from(new m.default(e).toArray("le",64)))}},{key:"writeBuffer",value:function(e){this.buf=r.concat([r.from(this.buf.subarray(0,this.length)),e,r.alloc(w)]),this.length+=e.length}},{key:"writeString",value:function(e){this.maybeResize();var t=r.from(e,"utf8");this.writeU32(t.length),this.writeBuffer(t)}},{key:"writeFixedArray",value:function(e){this.writeBuffer(r.from(e))}},{key:"writeArray",value:function(e,t){this.maybeResize(),this.writeU32(e.length);var n,r=o(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;this.maybeResize(),t(a)}}catch(e){r.e(e)}finally{r.f()}}},{key:"toArray",value:function(){return this.buf.subarray(0,this.length)}}]),e}();function k(e,t,n){var r=n.value;n.value=function(){try{for(var e=arguments.length,t=new Array(e),n=0;n=0)throw new x("Reached the end of buffer when deserializing")}throw e}}}t.BinaryWriter=_;var S=function(){function e(t){s(this,e),this.buf=t,this.offset=0}return c(e,[{key:"readU8",value:function(){var e=this.buf.readUInt8(this.offset);return this.offset+=1,e}},{key:"readU16",value:function(){var e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}},{key:"readU32",value:function(){var e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}},{key:"readU64",value:function(){var e=this.readBuffer(8);return new m.default(e,"le")}},{key:"readU128",value:function(){var e=this.readBuffer(16);return new m.default(e,"le")}},{key:"readU256",value:function(){var e=this.readBuffer(32);return new m.default(e,"le")}},{key:"readU512",value:function(){var e=this.readBuffer(64);return new m.default(e,"le")}},{key:"readBuffer",value:function(e){if(this.offset+e>this.buf.length)throw new x("Expected buffer length ".concat(e," isn't within bounds"));var t=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,t}},{key:"readString",value:function(){var e=this.readU32(),t=this.readBuffer(e);try{return A.decode(t)}catch(e){throw new x("Error decoding UTF-8 string: ".concat(e))}}},{key:"readFixedArray",value:function(e){return new Uint8Array(this.readBuffer(e))}},{key:"readArray",value:function(e){for(var t=this.readU32(),n=Array(),r=0;r=r.values.length)throw new x("Enum index: ".concat(p," is out of range"));var b=i(r.values[p],2),h=b[0],y=T(e,h,b[1],n);return new t(a({},h,y))}throw new x("Unexpected schema kind: ".concat(r.kind," for ").concat(t.constructor.name))}b([k],S.prototype,"readU8",null),b([k],S.prototype,"readU16",null),b([k],S.prototype,"readU32",null),b([k],S.prototype,"readU64",null),b([k],S.prototype,"readU128",null),b([k],S.prototype,"readU256",null),b([k],S.prototype,"readU512",null),b([k],S.prototype,"readString",null),b([k],S.prototype,"readFixedArray",null),b([k],S.prototype,"readArray",null),t.BinaryReader=S,t.serialize=function(e,t){var n=new(arguments.length>2&&void 0!==arguments[2]?arguments[2]:_);return C(e,t,n),n.toArray()},t.deserialize=function(e,t,n){var r=new(arguments.length>3&&void 0!==arguments[3]?arguments[3]:S)(n),a=O(e,t,r);if(r.offset3&&void 0!==arguments[3]?arguments[3]:S)(n))}},96979:function(e,t,n){var r;function a(e){this.rand=e}if(e.exports=function(e){return r||(r=new a(null)),r.generate(e)},e.exports.Rand=a,a.prototype.generate=function(e){return this._rand(e)},a.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n0){var i=r.substring(0,a).trim(),o=r.substring(a+1).trim();this.append(i,o)}}},e.prototype.delete=function(e,t){var n=r.normalizeName(e);if(void 0===t)delete this.headersMap[n];else{var a=this.headersMap[n];if(a){var i=a.indexOf(t);i>=0&&a.splice(i,1),0===a.length&&delete this.headersMap[n]}}},e.prototype.append=function(e,t){var n=this,a=r.normalizeName(e);Array.isArray(this.headersMap[a])||(this.headersMap[a]=[]),Array.isArray(t)?t.forEach((function(e){n.headersMap[a].push(r.normalizeValue(e))})):this.headersMap[a].push(r.normalizeValue(t))},e.prototype.set=function(e,t){var n=r.normalizeName(e);if(Array.isArray(t)){var a=[];t.forEach((function(e){a.push(r.normalizeValue(e))})),this.headersMap[n]=a}else this.headersMap[n]=[r.normalizeValue(t)]},e.prototype.has=function(e,t){var n=this.headersMap[r.normalizeName(e)];if(!Array.isArray(n))return!1;if(void 0!==t){var a=r.normalizeValue(t);return n.indexOf(a)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[r.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach((function(n){e(n,t.headersMap[n])}),this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach((function(t,n){n.forEach((function(n){e.append(t,n)}))})),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.BrowserHeaders=r.BrowserHeaders},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var n=e[Symbol.iterator](),r=n.next();!r.done;)t(r.value[0]),r=n.next()},t.iterateHeadersKeys=function(e,t){for(var n=e.keys(),r=n.next();!r.done;)t(r.value),r=n.next()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var n=e;if(n instanceof Headers&&n.getAll)return n.getAll(t);var r=n.get(t);return r&&"string"==typeof r?[r]:r},t.getHeaderKeys=function(e){var t=e,n={},a=[];return t.keys?r.iterateHeadersKeys(t,(function(e){n[e]||(n[e]=!0,a.push(e))})):t.forEach?t.forEach((function(e,t){n[t]||(n[t]=!0,a.push(t))})):r.iterateHeaders(t,(function(e){var t=e[0];n[t]||(n[t]=!0,a.push(t))})),a},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach((function(e){e.split(",").forEach((function(e){t.push(e)}))})),t}}])},e.exports=t()},6506:function(e,t,n){var r=n(63538);e.exports=r("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},41278:function(e,t,n){"use strict";var r=n(6506),a=n(96912).Buffer;e.exports=function(e){function t(t){var n=t.slice(0,-4),r=t.slice(-4),a=e(n);if(!(r[0]^a[0]|r[1]^a[1]|r[2]^a[2]|r[3]^a[3]))return n}return{encode:function(t){var n=e(t);return r.encode(a.concat([t,n],t.length+4))},decode:function(e){var n=t(r.decode(e));if(!n)throw new Error("Invalid checksum");return n},decodeUnsafe:function(e){var n=r.decodeUnsafe(e);if(n)return t(n)}}}},30248:function(e,t,n){"use strict";var r=n(94673),a=n(41278);e.exports=a((function(e){var t=r("sha256").update(e).digest();return r("sha256").update(t).digest()}))},33211:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(1185).default,i=n(21146).default,o=n(17964).default,s=n(54790).default,c=n(63298).default,u=n(51795).default,f=function(){function e(t,n){if(c(this,e),!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=n}return u(e,[{key:"makeDestinationObject",value:function(){return{}}},{key:"decode",value:function(e,t){throw new Error("Layout is abstract")}},{key:"encode",value:function(e,t,n){throw new Error("Layout is abstract")}},{key:"getSpan",value:function(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(e){var t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}},{key:"fromArray",value:function(e){}}]),e}();function d(e,t){return t.property?e+"["+t.property+"]":e}t.Layout=f,t.nameWithProperty=d,t.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(e.hasOwnProperty("layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof f))throw new TypeError("layout must be a Layout");if(t.hasOwnProperty("boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=function(){return new e},Object.defineProperty(e.prototype,"encode",{value:function(e,n){return t.encode(this,e,n)},writable:!0}),Object.defineProperty(e,"decode",{value:function(e,n){return t.decode(e,n)},writable:!0})};var l=function(e){o(n,e);var t=s(n);function n(){return c(this,n),t.apply(this,arguments)}return u(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}(f),p=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),void 0===e&&(e=1),!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");return(a=t.call(this,-1,r)).elementSpan=e,a}return u(n,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.length-t;return Math.floor(n/this.elementSpan)}},{key:"encode",value:function(e,t,n){return 0}}]),n}(l),b=function(e){o(n,e);var t=s(n);function n(e,r,a){var i;if(c(this,n),!(e instanceof f))throw new TypeError("layout must be a Layout");if(void 0===r)r=0;else if(!Number.isInteger(r))throw new TypeError("offset must be integer or undefined");return(i=t.call(this,e.span,a||e.property)).layout=e,i.offset=r,i}return u(n,[{key:"isCount",value:function(){return this.layout instanceof h||this.layout instanceof y}},{key:"decode",value:function(e,t){return void 0===t&&(t=0),this.layout.decode(e,t+this.offset)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),this.layout.encode(e,t,n+this.offset)}}]),n}(l),h=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readUIntLE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeUIntLE(e,n,this.span),this.span}}]),n}(f),y=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readUIntBE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeUIntBE(e,n,this.span),this.span}}]),n}(f),m=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readIntLE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeIntLE(e,n,this.span),this.span}}]),n}(f),v=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readIntBE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeIntBE(e,n,this.span),this.span}}]),n}(f),g=Math.pow(2,32);function A(e){var t=Math.floor(e/g);return{hi32:t,lo32:e-t*g}}function w(e,t){return e*g+t}var x=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.readUInt32LE(t);return w(e.readUInt32LE(t+4),n)}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=A(e);return t.writeUInt32LE(r.lo32,n),t.writeUInt32LE(r.hi32,n+4),8}}]),n}(f),_=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),w(e.readUInt32BE(t),e.readUInt32BE(t+4))}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=A(e);return t.writeUInt32BE(r.hi32,n),t.writeUInt32BE(r.lo32,n+4),8}}]),n}(f),k=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.readUInt32LE(t);return w(e.readInt32LE(t+4),n)}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=A(e);return t.writeUInt32LE(r.lo32,n),t.writeInt32LE(r.hi32,n+4),8}}]),n}(f),S=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),w(e.readInt32BE(t),e.readUInt32BE(t+4))}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=A(e);return t.writeInt32BE(r.hi32,n),t.writeUInt32BE(r.lo32,n+4),8}}]),n}(f),I=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,4,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readFloatLE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeFloatLE(e,n),4}}]),n}(f),E=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,4,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readFloatBE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeFloatBE(e,n),4}}]),n}(f),C=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readDoubleLE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeDoubleLE(e,n),8}}]),n}(f),T=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readDoubleBE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeDoubleBE(e,n),8}}]),n}(f),O=function(e){o(n,e);var t=s(n);function n(e,r,a){var i;if(c(this,n),!(e instanceof f))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof l&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var o=-1;return!(r instanceof l)&&0d.span&&void 0===d.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(e){u.e(e)}finally{u.f()}var l=-1;try{l=e.reduce((function(e,t){return e+t.getSpan()}),0)}catch(e){}return(o=t.call(this,l,r)).fields=e,o.decodePrefixes=!!a,o}return u(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=0;try{n=this.fields.reduce((function(n,r){var a=r.getSpan(e,t);return t+=a,n+a}),0)}catch(e){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n,r=this.makeDestinationObject(),a=i(this.fields);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(void 0!==o.property&&(r[o.property]=o.decode(e,t)),t+=o.getSpan(e,t),this.decodePrefixes&&e.length===t)break}}catch(e){a.e(e)}finally{a.f()}return r}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r,a=n,o=0,s=0,c=i(this.fields);try{for(c.s();!(r=c.n()).done;){var u=r.value,f=u.span;if(s=0f&&(f=u.getSpan(t,n)))}o=n,n+=f}}catch(e){c.e(e)}finally{c.f()}return o+s-a}},{key:"fromArray",value:function(e){var t,n=this.makeDestinationObject(),r=i(this.fields);try{for(r.s();!(t=r.n()).done;){var a=t.value;void 0!==a.property&&0a.span?n=-1:0<=n&&(n+=a.span)}}catch(e){r.e(e)}finally{r.f()}}}]),n}(f),M=function(){function e(t){c(this,e),this.property=t}return u(e,[{key:"decode",value:function(){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(){throw new Error("UnionDiscriminator is abstract")}}]),e}(),B=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),!(e instanceof l&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(a=t.call(this,r||e.property||"variant")).layout=e,a}return u(n,[{key:"decode",value:function(e,t){return this.layout.decode(e,t)}},{key:"encode",value:function(e,t,n){return this.layout.encode(e,t,n)}}]),n}(M),R=function(e){o(n,e);var t=s(n);function n(e,r,i){var o;c(this,n);var s=e instanceof h||e instanceof y;if(s)e=new B(new b(e));else if(e instanceof l&&e.isCount())e=new B(e);else if(!(e instanceof M))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===r&&(r=null),!(null===r||r instanceof f))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var u=-1;r&&0<=(u=r.span)&&s&&(u+=e.layout.span),(o=t.call(this,u,i)).discriminator=e,o.usesPrefixDiscriminator=s,o.defaultLayout=r,o.registry={};var d=o.defaultGetSourceVariant.bind(a(o));return o.getSourceVariant=function(e){return d(e)},o.configGetSourceVariant=function(e){d=e.bind(this)},o}return u(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}},{key:"defaultGetSourceVariant",value:function(e){if(e.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&e.hasOwnProperty(this.defaultLayout.property))return;var t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||e.hasOwnProperty(t.property)))return t}else for(var n in this.registry){var r=this.registry[n];if(e.hasOwnProperty(r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(e,t){var n;void 0===t&&(t=0);var r=this.discriminator,a=r.decode(e,t),i=this.registry[a];if(void 0===i){var o=0;i=this.defaultLayout,this.usesPrefixDiscriminator&&(o=r.layout.span),(n=this.makeDestinationObject())[r.property]=a,n[i.property]=this.defaultLayout.decode(e,t+o)}else n=i.decode(e,t);return n}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=this.getSourceVariant(e);if(void 0===r){var a=this.discriminator,i=this.defaultLayout,o=0;return this.usesPrefixDiscriminator&&(o=a.layout.span),a.encode(e[a.property],t,n),o+i.encode(e[i.property],t,n+o)}return r.encode(e,t,n)}},{key:"addVariant",value:function(e,t,n){var r=new N(this,e,t,n);return this.registry[e]=r,r}},{key:"getVariant",value:function(e,t){var n=e;return r.isBuffer(e)&&(void 0===t&&(t=0),n=this.discriminator.decode(e,t)),this.registry[n]}}]),n}(f),N=function(e){o(n,e);var t=s(n);function n(e,r,a,i){var o;if(c(this,n),!(e instanceof R))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof a&&void 0===i&&(i=a,a=null),a){if(!(a instanceof f))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=a.span&&a.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof i)throw new TypeError("variant must have a String property")}var s=e.span;return 0>e.span&&0<=(s=a?a.span:0)&&e.usesPrefixDiscriminator&&(s+=e.discriminator.layout.span),(o=t.call(this,s,i)).union=e,o.variant=r,o.layout=a||null,o}return u(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),n+this.layout.getSpan(e,t+n)}},{key:"decode",value:function(e,t){var n=this.makeDestinationObject();if(void 0===t&&(t=0),this!==this.union.getVariant(e,t))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!e.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);var a=r;if(this.layout&&(this.layout.encode(e[this.property],t,n+r),a+=this.layout.getSpan(t,n+r),0<=this.union.span&&a>this.union.span))throw new Error("encoded variant overruns containing union");return a}},{key:"fromArray",value:function(e){if(this.layout)return this.layout.fromArray(e)}}]),n}(f);function D(e){return 0>e&&(e+=4294967296),e}var j=function(e){o(n,e);var t=s(n);function n(e,r,a){var i;if(c(this,n),!(e instanceof h||e instanceof y))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof r&&void 0===a&&(a=r,r=void 0),4=n)throw new TypeError("bits must be positive integer");var a=8*t.span,i=t.fields.reduce((function(e,t){return e+t.bits}),0);if(n+i>a)throw new Error("bits too long for span remainder ("+(a-i)+" of "+a+" remain)");this.container=t,this.bits=n,this.valueMask=(1<>>this.start}},{key:"encode",value:function(e){if(!Number.isInteger(e)||e!==D(e&this.valueMask))throw new TypeError(d("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var t=this.container._packedGetValue(),n=D(e<n&&(n=this.length.decode(e,t)),n}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=this.span;return 0>n&&(n=this.length.decode(e,t)),e.slice(t,t+n)}},{key:"encode",value:function(e,t,n){var a=this.length;if(this.length instanceof l&&(a=e.length),!r.isBuffer(e)||a!==e.length)throw new TypeError(d("Blob.encode",this)+" requires (length "+a+") Buffer as src");if(n+a>t.length)throw new RangeError("encoding overruns Buffer");return t.write(e.toString("hex"),n,a,"hex"),this.length instanceof l&&this.length.encode(a,t,n),a}}]),n}(f),F=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,-1,e)}return u(n,[{key:"getSpan",value:function(e,t){if(!r.isBuffer(e))throw new TypeError("b must be a Buffer");void 0===t&&(t=0);for(var n=t;nt.length)throw new RangeError("encoding overruns Buffer");return a.copy(t,n),t[n+i]=0,i+1}}]),n}(f),H=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),"string"==typeof e&&void 0===r&&(r=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");return(a=t.call(this,-1,r)).maxSpan=e,a}return u(n,[{key:"getSpan",value:function(e,t){if(!r.isBuffer(e))throw new TypeError("b must be a Buffer");return void 0===t&&(t=0),e.length-t}},{key:"decode",value:function(e,t,n){void 0===t&&(t=0);var r=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpant.length)throw new RangeError("encoding overruns Buffer");return a.copy(t,n),i}}]),n}(f),z=function(e){o(n,e);var t=s(n);function n(e,r){var a;return c(this,n),(a=t.call(this,0,r)).value=e,a}return u(n,[{key:"decode",value:function(e,t,n){return this.value}},{key:"encode",value:function(e,t,n){return 0}}]),n}(f);t.ExternalLayout=l,t.GreedyCount=p,t.OffsetLayout=b,t.UInt=h,t.UIntBE=y,t.Int=m,t.IntBE=v,t.Float=I,t.FloatBE=E,t.Double=C,t.DoubleBE=T,t.Sequence=O,t.Structure=P,t.UnionDiscriminator=M,t.UnionLayoutDiscriminator=B,t.Union=R,t.VariantLayout=N,t.BitStructure=j,t.BitField=U,t.Boolean=L,t.Blob=Z,t.CString=F,t.UTF8=H,t.Constant=z,t.greedy=function(e,t){return new p(e,t)},t.offset=function(e,t,n){return new b(e,t,n)},t.u8=function(e){return new h(1,e)},t.u16=function(e){return new h(2,e)},t.u24=function(e){return new h(3,e)},t.u32=function(e){return new h(4,e)},t.u40=function(e){return new h(5,e)},t.u48=function(e){return new h(6,e)},t.nu64=function(e){return new x(e)},t.u16be=function(e){return new y(2,e)},t.u24be=function(e){return new y(3,e)},t.u32be=function(e){return new y(4,e)},t.u40be=function(e){return new y(5,e)},t.u48be=function(e){return new y(6,e)},t.nu64be=function(e){return new _(e)},t.s8=function(e){return new m(1,e)},t.s16=function(e){return new m(2,e)},t.s24=function(e){return new m(3,e)},t.s32=function(e){return new m(4,e)},t.s40=function(e){return new m(5,e)},t.s48=function(e){return new m(6,e)},t.ns64=function(e){return new k(e)},t.s16be=function(e){return new v(2,e)},t.s24be=function(e){return new v(3,e)},t.s32be=function(e){return new v(4,e)},t.s40be=function(e){return new v(5,e)},t.s48be=function(e){return new v(6,e)},t.ns64be=function(e){return new S(e)},t.f32=function(e){return new I(e)},t.f32be=function(e){return new E(e)},t.f64=function(e){return new C(e)},t.f64be=function(e){return new T(e)},t.struct=function(e,t,n){return new P(e,t,n)},t.bits=function(e,t,n){return new j(e,t,n)},t.seq=function(e,t,n){return new O(e,t,n)},t.union=function(e,t,n){return new R(e,t,n)},t.unionLayoutDiscriminator=function(e,t){return new B(e,t)},t.blob=function(e,t){return new Z(e,t)},t.cstr=function(e){return new F(e)},t.utf8=function(e,t){return new H(e,t)},t.const=function(e,t){return new z(e,t)}},62332:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(1185).default,o=n(17964).default,s=n(54790).default,c=n(44473),u=n(81371),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=p,t.SlowBuffer=function(e){return+e!=e&&(e=0),p.alloc(+e)},t.INSPECT_MAX_BYTES=50;var d=2147483647;function l(e){if(e>d)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,p.prototype),t}function p(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return y(e)}return b(e,t,n)}function b(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!p.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|A(e,t),r=l(n),a=r.write(e,t);return a!==n&&(r=r.slice(0,a)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ee(e,Uint8Array)){var t=new Uint8Array(e);return v(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ee(e,ArrayBuffer)||e&&ee(e.buffer,ArrayBuffer))return v(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(ee(e,SharedArrayBuffer)||e&&ee(e.buffer,SharedArrayBuffer)))return v(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return p.from(r,t,n);var a=function(e){if(p.isBuffer(e)){var t=0|g(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||te(e.length)?l(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return p.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function y(e){return h(e),l(e<0?0:0|g(e))}function m(e){for(var t=e.length<0?0:0|g(e.length),n=l(t),r=0;r=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|e}function A(e,t){if(p.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ee(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(a)return r?-1:Y(e).length;t=(""+t).toLowerCase(),a=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),te(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=p.from(t,r)),p.isBuffer(t))return 0===t.length?-1:k(e,t,n,r,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,r,a){var i,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var f=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){for(var d=!0,l=0;la&&(r=a):r=a;var i,o=t.length;for(r>o/2&&(r=o/2),i=0;i>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?c.fromByteArray(e):c.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a239?4:i>223?3:i>191?2:1;if(a+s<=n){var c=void 0,u=void 0,f=void 0,d=void 0;switch(s){case 1:i<128&&(o=i);break;case 2:128==(192&(c=e[a+1]))&&(d=(31&i)<<6|63&c)>127&&(o=d);break;case 3:c=e[a+1],u=e[a+2],128==(192&c)&&128==(192&u)&&(d=(15&i)<<12|(63&c)<<6|63&u)>2047&&(d<55296||d>57343)&&(o=d);break;case 4:c=e[a+1],u=e[a+2],f=e[a+3],128==(192&c)&&128==(192&u)&&128==(192&f)&&(d=(15&i)<<18|(63&c)<<12|(63&u)<<6|63&f)>65535&&d<1114112&&(o=d)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),a+=s}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr.length?(p.isBuffer(i)||(i=p.from(i)),i.copy(r,a)):Uint8Array.prototype.set.call(r,i,a);else{if(!p.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a)}a+=i.length}return r},p.byteLength=A,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},f&&(p.prototype[f]=p.prototype.inspect),p.prototype.compare=function(e,t,n,r,a){if(ee(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),!p.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(i,o),c=this.slice(r,a),u=e.slice(t,n),f=0;f>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return I(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function B(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;ar)&&(n=r);for(var a="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function U(e,t,n,r,a,i){if(!p.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function L(e,t,n,r,a){V(t,r,a,e,n,7);var i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function Z(e,t,n,r,a){V(t,r,a,e,n,7);var i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function F(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,a){return t=+t,n>>>=0,a||F(e,0,n,4),u.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,a){return t=+t,n>>>=0,a||F(e,0,n,8),u.write(e,t,n,r,52,8),n+8}p.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e],a=1,i=0;++i>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},p.prototype.readUint8=p.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},p.prototype.readBigUInt64LE=re((function(e){J(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),a=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+n*Math.pow(2,24);return BigInt(r)+(BigInt(a)<>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],a=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n;return(BigInt(r)<>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e],a=1,i=0;++i=(a*=128)&&(r-=Math.pow(2,8*t)),r},p.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},p.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},p.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},p.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},p.prototype.readBigInt64LE=re((function(e){J(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(n<<24);return(BigInt(r)<>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(r)<>>=0,t||j(e,4,this.length),u.read(this,e,!0,23,4)},p.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),u.read(this,e,!1,23,4)},p.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),u.read(this,e,!0,52,8)},p.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),u.read(this,e,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},p.prototype.writeUint8=p.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,255,0),this[t]=255&e,t+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigUInt64LE=re((function(e){return L(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeBigUInt64BE=re((function(e){return Z(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);U(this,e,t,n,a-1,-a)}var i=0,o=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},p.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);U(this,e,t,n,a-1,-a)}var i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},p.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},p.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},p.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigInt64LE=re((function(e){return L(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeBigInt64BE=re((function(e){return Z(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},p.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},p.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},p.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},p.prototype.copy=function(e,t,n,r){if(!p.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function V(e,t,n,r,a,i){if(e>n||e3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(i+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(i+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(i+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(n).concat(s),new q.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){J(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||G(t,e.length-(n+1))}(r,a,i)}function J(e,t){if("number"!=typeof e)throw new q.ERR_INVALID_ARG_TYPE(t,"number",e)}function G(e,t,n){if(Math.floor(e)!==e)throw J(e,n),new q.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}Q("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),Q("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),Q("ERR_OUT_OF_RANGE",(function(e,t,n){var r='The value of "'.concat(e,'" is out of range.'),a=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?a=K(String(n)):"bigint"==typeof n&&(a=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(a=K(a)),a+="n"),r+" It must be ".concat(t,". Received ").concat(a)}),RangeError);var W=/[^+/0-9A-Za-z-_]/g;function Y(e,t){var n;t=t||1/0;for(var r=e.length,a=null,i=[],o=0;o55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function X(e){return c.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){var a;for(a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function ee(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function te(e){return e!=e}var ne=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,a=0;a<16;++a)t[r+a]=e[n]+e[a];return t}();function re(e){return"undefined"==typeof BigInt?ae:e}function ae(){throw new Error("BigInt not supported")}},7720:function(e){"use strict";var t=function(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");var n;return t=Object.assign({pascalCase:!1},t),e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join("-"):e.trim(),0===e.length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=function(e){for(var t=!1,n=!1,r=!1,a=0;a>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),n=function(e){var t=0,n=0,r=0,a="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)a[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=a[t]=n>>>8^e[255&n];var i=[];for(r=1;16!=r;++r)i[r-1]="undefined"!=typeof Int32Array?a.subarray(256*r,256*r+256):a.slice(256*r,256*r+256);return i}(t),r=n[0],a=n[1],i=n[2],o=n[3],s=n[4],c=n[5],u=n[6],f=n[7],d=n[8],l=n[9],p=n[10],b=n[11],h=n[12],y=n[13],m=n[14];e.table=t,e.bstr=function(e,n){for(var r=-1^n,a=0,i=e.length;a>>8^t[255&(r^e.charCodeAt(a++))];return~r},e.buf=function(e,n){for(var v=-1^n,g=e.length-15,A=0;A>8&255]^h[e[A++]^v>>16&255]^b[e[A++]^v>>>24]^p[e[A++]]^l[e[A++]]^d[e[A++]]^f[e[A++]]^u[e[A++]]^c[e[A++]]^s[e[A++]]^o[e[A++]]^i[e[A++]]^a[e[A++]]^r[e[A++]]^t[e[A++]];for(g+=15;A>>8^t[255&(v^e[A++])];return~v},e.str=function(e,n){for(var r=-1^n,a=0,i=e.length,o=0,s=0;a>>8^t[255&(r^o)]:o<2048?r=(r=r>>>8^t[255&(r^(192|o>>6&31))])>>>8^t[255&(r^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),s=1023&e.charCodeAt(a++),r=(r=(r=(r=r>>>8^t[255&(r^(240|o>>8&7))])>>>8^t[255&(r^(128|o>>2&63))])>>>8^t[255&(r^(128|s>>6&15|(3&o)<<4))])>>>8^t[255&(r^(128|63&s))]):r=(r=(r=r>>>8^t[255&(r^(224|o>>12&15))])>>>8^t[255&(r^(128|o>>6&63))])>>>8^t[255&(r^(128|63&o))];return~r}},"undefined"==typeof DO_NOT_EXPORT_CRC?n(t):n({})},94673:function(e,t,n){"use strict";var r=n(13786),a=n(62033),i=n(42835),o=n(20563),s=n(86536);function c(e){s.call(this,"digest"),this._hash=e}r(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new a:"rmd160"===e||"ripemd160"===e?new i:new c(o(e))}},55476:function(e,t,n){var r=n(62033);e.exports=function(e){return(new r).update(e).digest()}},29817:function(e,t,n){"use strict";var r=n(13786),a=n(38404),i=n(86536),o=n(96912).Buffer,s=n(55476),c=n(42835),u=n(20563),f=o.alloc(128);function d(e,t){i.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var n="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>n?t=("rmd160"===e?new c:u(e)).update(t).digest():t.lengths?t=e(t):t.length-1};function i(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function o(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function u(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function l(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:n.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:n.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=l(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=l(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,n,r=u(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=f(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function y(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}})),t}function m(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}h.prototype.clone=function(){return new h(this,{body:this._bodyInit})},p.call(h.prototype),p.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];m.redirect=function(e,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function g(e,r){return new Promise((function(a,i){var o=new h(e,r);if(o.signal&&o.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;a(new m(r,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&n.blob&&(s.responseType="blob"),o.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",u)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}g.polyfill=!0,e.fetch||(e.fetch=g,e.Headers=c,e.Request=h,e.Response=m),t.Headers=c,t.Request=h,t.Response=m,t.fetch=g,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=r;(t=a.fetch).default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t},1194:function(e,t,n){var r;!function(a){"use strict";var i,o,s,c=9e15,u=1e9,f="0123456789abcdef",d="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",l="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",p={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-c,maxE:c,crypto:!1},b=!0,h="[DecimalError] ",y=h+"Invalid argument: ",m=h+"Precision limit exceeded",v=h+"crypto unavailable",g="[object Decimal]",A=Math.floor,w=Math.pow,x=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,_=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,k=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,S=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,I=1e7,E=7,C=d.length-1,T=l.length-1,O={toStringTag:g};function P(e){var t,n,r,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;tn)throw Error(y+e)}function B(e,t,n,r){var a,i,o,s;for(i=e[0];i>=10;i/=10)--t;return--t<0?(t+=E,a=0):(a=Math.ceil((t+1)/E),t%=E),i=w(10,E-t),s=e[a]%i|0,null==r?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),o=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):o=(n<4&&s+1==i||n>3&&s+1==i/2)&&(e[a+1]/i/100|0)==w(10,t-2)-1||(s==i/2||0==s)&&0==(e[a+1]/i/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),o=(r||n<4)&&9999==s||!r&&n>3&&4999==s):o=((r||n<4)&&s+1==i||!r&&n>3&&s+1==i/2)&&(e[a+1]/i/1e3|0)==w(10,t-3)-1,o}function R(e,t,n){for(var r,a,i=[0],o=0,s=e.length;on-1&&(void 0===i[r+1]&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}O.absoluteValue=O.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),D(e)},O.ceil=function(){return D(new this.constructor(this),this.e+1,2)},O.clampedTo=O.clamp=function(e,t){var n=this,r=n.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(y+t);return n.cmp(e)<0?e:n.cmp(t)>0?t:new r(n)},O.comparedTo=O.cmp=function(e){var t,n,r,a,i=this,o=i.d,s=(e=new i.constructor(e)).d,c=i.s,u=e.s;if(!o||!s)return c&&u?c!==u?c:o===s?0:!o^c<0?1:-1:NaN;if(!o[0]||!s[0])return o[0]?c:s[0]?-u:0;if(c!==u)return c;if(i.e!==e.e)return i.e>e.e^c<0?1:-1;for(t=0,n=(r=o.length)<(a=s.length)?r:a;ts[t]^c<0?1:-1;return r===a?0:r>a^c<0?1:-1},O.cosine=O.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+E,r.rounding=1,n=function(e,t){var n,r,a;if(t.isZero())return t;(r=t.d.length)<32?a=(1/X(4,n=Math.ceil(r/3))).toString():(n=16,a="2.3283064365386962890625e-10"),e.precision+=n,t=Y(e,1,t.times(a),new e(1));for(var i=n;i--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=n,t}(r,$(r,n)),r.precision=e,r.rounding=t,D(2==s||3==s?n.neg():n,e,t,!0)):new r(1):new r(NaN)},O.cubeRoot=O.cbrt=function(){var e,t,n,r,a,i,o,s,c,u,f=this,d=f.constructor;if(!f.isFinite()||f.isZero())return new d(f);for(b=!1,(i=f.s*w(f.s*f,1/3))&&Math.abs(i)!=1/0?r=new d(i.toString()):(n=P(f.d),(i=((e=f.e)-n.length+1)%3)&&(n+=1==i||-2==i?"0":"00"),i=w(n,1/3),e=A((e+1)/3)-(e%3==(e<0?-1:2)),(r=new d(n=i==1/0?"5e"+e:(n=i.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=f.s),o=(e=d.precision)+3;;)if(u=(c=(s=r).times(s).times(s)).plus(f),r=N(u.plus(f).times(s),u.plus(c),o+2,1),P(s.d).slice(0,o)===(n=P(r.d)).slice(0,o)){if("9999"!=(n=n.slice(o-3,o+1))&&(a||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(D(r,e+1,1),t=!r.times(r).times(r).eq(f));break}if(!a&&(D(s,e+1,0),s.times(s).times(s).eq(f))){r=s;break}o+=4,a=1}return b=!0,D(r,e,d.rounding,t)},O.decimalPlaces=O.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-A(this.e/E))*E,e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},O.dividedBy=O.div=function(e){return N(this,new this.constructor(e))},O.dividedToIntegerBy=O.divToInt=function(e){var t=this.constructor;return D(N(this,new t(e),0,1,1),t.precision,t.rounding)},O.equals=O.eq=function(e){return 0===this.cmp(e)},O.floor=function(){return D(new this.constructor(this),this.e+1,3)},O.greaterThan=O.gt=function(e){return this.cmp(e)>0},O.greaterThanOrEqualTo=O.gte=function(e){var t=this.cmp(e);return 1==t||0===t},O.hyperbolicCosine=O.cosh=function(){var e,t,n,r,a,i=this,o=i.constructor,s=new o(1);if(!i.isFinite())return new o(i.s?1/0:NaN);if(i.isZero())return s;n=o.precision,r=o.rounding,o.precision=n+Math.max(i.e,i.sd())+4,o.rounding=1,(a=i.d.length)<32?t=(1/X(4,e=Math.ceil(a/3))).toString():(e=16,t="2.3283064365386962890625e-10"),i=Y(o,1,i.times(t),new o(1),!0);for(var c,u=e,f=new o(8);u--;)c=i.times(i),i=s.minus(c.times(f.minus(c.times(f))));return D(i,o.precision=n,o.rounding=r,!0)},O.hyperbolicSine=O.sinh=function(){var e,t,n,r,a=this,i=a.constructor;if(!a.isFinite()||a.isZero())return new i(a);if(t=i.precision,n=i.rounding,i.precision=t+Math.max(a.e,a.sd())+4,i.rounding=1,(r=a.d.length)<3)a=Y(i,2,a,a,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,a=Y(i,2,a=a.times(1/X(5,e)),a,!0);for(var o,s=new i(5),c=new i(16),u=new i(20);e--;)o=a.times(a),a=a.times(s.plus(o.times(c.times(o).plus(u))))}return i.precision=t,i.rounding=n,D(a,t,n,!0)},O.hyperbolicTangent=O.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,N(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},O.inverseCosine=O.acos=function(){var e,t=this,n=t.constructor,r=t.abs().cmp(1),a=n.precision,i=n.rounding;return-1!==r?0===r?t.isNeg()?Z(n,a,i):new n(0):new n(NaN):t.isZero()?Z(n,a+4,i).times(.5):(n.precision=a+6,n.rounding=1,t=t.asin(),e=Z(n,a+4,i).times(.5),n.precision=a,n.rounding=i,e.minus(t))},O.inverseHyperbolicCosine=O.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,b=!1,n=n.times(n).minus(1).sqrt().plus(n),b=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},O.inverseHyperbolicSine=O.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,b=!1,n=n.times(n).plus(1).sqrt().plus(n),b=!0,r.precision=e,r.rounding=t,n.ln())},O.inverseHyperbolicTangent=O.atanh=function(){var e,t,n,r,a=this,i=a.constructor;return a.isFinite()?a.e>=0?new i(a.abs().eq(1)?a.s/0:a.isZero()?a:NaN):(e=i.precision,t=i.rounding,r=a.sd(),Math.max(r,e)<2*-a.e-1?D(new i(a),e,t,!0):(i.precision=n=r-a.e,a=N(a.plus(1),new i(1).minus(a),n+e,1),i.precision=e+4,i.rounding=1,a=a.ln(),i.precision=e,i.rounding=t,a.times(.5))):new i(NaN)},O.inverseSine=O.asin=function(){var e,t,n,r,a=this,i=a.constructor;return a.isZero()?new i(a):(t=a.abs().cmp(1),n=i.precision,r=i.rounding,-1!==t?0===t?((e=Z(i,n+4,r).times(.5)).s=a.s,e):new i(NaN):(i.precision=n+6,i.rounding=1,a=a.div(new i(1).minus(a.times(a)).sqrt().plus(1)).atan(),i.precision=n,i.rounding=r,a.times(2)))},O.inverseTangent=O.atan=function(){var e,t,n,r,a,i,o,s,c,u=this,f=u.constructor,d=f.precision,l=f.rounding;if(u.isFinite()){if(u.isZero())return new f(u);if(u.abs().eq(1)&&d+4<=T)return(o=Z(f,d+4,l).times(.25)).s=u.s,o}else{if(!u.s)return new f(NaN);if(d+4<=T)return(o=Z(f,d+4,l).times(.5)).s=u.s,o}for(f.precision=s=d+10,f.rounding=1,e=n=Math.min(28,s/E+2|0);e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(b=!1,t=Math.ceil(s/E),r=1,c=u.times(u),o=new f(u),a=u;-1!==e;)if(a=a.times(c),i=o.minus(a.div(r+=2)),a=a.times(c),void 0!==(o=i.plus(a.div(r+=2))).d[t])for(e=t;o.d[e]===i.d[e]&&e--;);return n&&(o=o.times(2<this.d.length-2},O.isNaN=function(){return!this.s},O.isNegative=O.isNeg=function(){return this.s<0},O.isPositive=O.isPos=function(){return this.s>0},O.isZero=function(){return!!this.d&&0===this.d[0]},O.lessThan=O.lt=function(e){return this.cmp(e)<0},O.lessThanOrEqualTo=O.lte=function(e){return this.cmp(e)<1},O.logarithm=O.log=function(e){var t,n,r,a,i,o,s,c,u=this,f=u.constructor,d=f.precision,l=f.rounding;if(null==e)e=new f(10),t=!0;else{if(n=(e=new f(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new f(NaN);t=e.eq(10)}if(n=u.d,u.s<0||!n||!n[0]||u.eq(1))return new f(n&&!n[0]?-1/0:1!=u.s?NaN:n?0:1/0);if(t)if(n.length>1)i=!0;else{for(a=n[0];a%10==0;)a/=10;i=1!==a}if(b=!1,o=V(u,s=d+5),r=t?L(f,s+10):V(e,s),B((c=N(o,r,s,1)).d,a=d,l))do{if(o=V(u,s+=10),r=t?L(f,s+10):V(e,s),c=N(o,r,s,1),!i){+P(c.d).slice(a+1,a+15)+1==1e14&&(c=D(c,d+1,0));break}}while(B(c.d,a+=10,l));return b=!0,D(c,d,l)},O.minus=O.sub=function(e){var t,n,r,a,i,o,s,c,u,f,d,l,p=this,h=p.constructor;if(e=new h(e),!p.d||!e.d)return p.s&&e.s?p.d?e.s=-e.s:e=new h(e.d||p.s!==e.s?p:NaN):e=new h(NaN),e;if(p.s!=e.s)return e.s=-e.s,p.plus(e);if(u=p.d,l=e.d,s=h.precision,c=h.rounding,!u[0]||!l[0]){if(l[0])e.s=-e.s;else{if(!u[0])return new h(3===c?-0:0);e=new h(p)}return b?D(e,s,c):e}if(n=A(e.e/E),f=A(p.e/E),u=u.slice(),i=f-n){for((d=i<0)?(t=u,i=-i,o=l.length):(t=l,n=f,o=u.length),i>(r=Math.max(Math.ceil(s/E),o)+2)&&(i=r,t.length=1),t.reverse(),r=i;r--;)t.push(0);t.reverse()}else{for((d=(r=u.length)<(o=l.length))&&(o=r),r=0;r0;--r)u[o++]=0;for(r=l.length;r>i;){if(u[--r](o=(i=Math.ceil(s/E))>o?i+1:o+1)&&(a=o,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for((o=u.length)-(a=f.length)<0&&(a=o,n=f,f=u,u=n),t=0;a;)t=(u[--a]=u[a]+f[a]+t)/I|0,u[a]%=I;for(t&&(u.unshift(t),++r),o=u.length;0==u[--o];)u.pop();return e.d=u,e.e=U(u,r),b?D(e,s,c):e},O.precision=O.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(y+e);return n.d?(t=F(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},O.round=function(){var e=this,t=e.constructor;return D(new t(e),e.e+1,t.rounding)},O.sine=O.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+E,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:Y(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=Y(e,2,t=t.times(1/X(5,n)),t);for(var a,i=new e(5),o=new e(16),s=new e(20);n--;)a=t.times(t),t=t.times(i.plus(a.times(o.times(a).minus(s))));return t}(r,$(r,n)),r.precision=e,r.rounding=t,D(s>2?n.neg():n,e,t,!0)):new r(NaN)},O.squareRoot=O.sqrt=function(){var e,t,n,r,a,i,o=this,s=o.d,c=o.e,u=o.s,f=o.constructor;if(1!==u||!s||!s[0])return new f(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);for(b=!1,0==(u=Math.sqrt(+o))||u==1/0?(((t=P(s)).length+c)%2==0&&(t+="0"),u=Math.sqrt(t),c=A((c+1)/2)-(c<0||c%2),r=new f(t=u==1/0?"5e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):r=new f(u.toString()),n=(c=f.precision)+3;;)if(r=(i=r).plus(N(o,i,n+2,1)).times(.5),P(i.d).slice(0,n)===(t=P(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(a||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(D(r,c+1,1),e=!r.times(r).eq(o));break}if(!a&&(D(i,c+1,0),i.times(i).eq(o))){r=i;break}n+=4,a=1}return b=!0,D(r,c,f.rounding,e)},O.tangent=O.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=N(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,D(2==s||4==s?n.neg():n,e,t,!0)):new r(NaN)},O.times=O.mul=function(e){var t,n,r,a,i,o,s,c,u,f=this,d=f.constructor,l=f.d,p=(e=new d(e)).d;if(e.s*=f.s,!(l&&l[0]&&p&&p[0]))return new d(!e.s||l&&!l[0]&&!p||p&&!p[0]&&!l?NaN:l&&p?0*e.s:e.s/0);for(n=A(f.e/E)+A(e.e/E),(c=l.length)<(u=p.length)&&(i=l,l=p,p=i,o=c,c=u,u=o),i=[],r=o=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,a=c+r;a>r;)s=i[a]+p[r]*l[a-r-1]+t,i[a--]=s%I|0,t=s/I|0;i[a]=(i[a]+t)%I|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=U(i,n),b?D(e,d.precision,d.rounding):e},O.toBinary=function(e,t){return ee(this,2,e,t)},O.toDecimalPlaces=O.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(M(e,0,u),void 0===t?t=r.rounding:M(t,0,8),D(n,e+n.e+1,t))},O.toExponential=function(e,t){var n,r=this,a=r.constructor;return void 0===e?n=j(r,!0):(M(e,0,u),void 0===t?t=a.rounding:M(t,0,8),n=j(r=D(new a(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},O.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return void 0===e?n=j(a):(M(e,0,u),void 0===t?t=i.rounding:M(t,0,8),n=j(r=D(new i(a),e+a.e+1,t),!1,e+r.e+1)),a.isNeg()&&!a.isZero()?"-"+n:n},O.toFraction=function(e){var t,n,r,a,i,o,s,c,u,f,d,l,p=this,h=p.d,m=p.constructor;if(!h)return new m(p);if(u=n=new m(1),r=c=new m(0),o=(i=(t=new m(r)).e=F(h)-p.e-1)%E,t.d[0]=w(10,o<0?E+o:o),null==e)e=i>0?t:u;else{if(!(s=new m(e)).isInt()||s.lt(u))throw Error(y+s);e=s.gt(t)?i>0?t:u:s}for(b=!1,s=new m(P(h)),f=m.precision,m.precision=i=h.length*E*2;d=N(s,t,0,1,1),1!=(a=n.plus(d.times(r))).cmp(e);)n=r,r=a,a=u,u=c.plus(d.times(a)),c=a,a=t,t=s.minus(d.times(a)),s=a;return a=N(e.minus(n),r,0,1,1),c=c.plus(a.times(u)),n=n.plus(a.times(r)),c.s=u.s=p.s,l=N(u,r,i,1).minus(p).abs().cmp(N(c,n,i,1).minus(p).abs())<1?[u,r]:[c,n],m.precision=f,b=!0,l},O.toHexadecimal=O.toHex=function(e,t){return ee(this,16,e,t)},O.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:M(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(b=!1,n=N(n,e,0,t,1).times(e),b=!0,D(n)):(e.s=n.s,n=e),n},O.toNumber=function(){return+this},O.toOctal=function(e,t){return ee(this,8,e,t)},O.toPower=O.pow=function(e){var t,n,r,a,i,o,s=this,c=s.constructor,u=+(e=new c(e));if(!(s.d&&e.d&&s.d[0]&&e.d[0]))return new c(w(+s,u));if((s=new c(s)).eq(1))return s;if(r=c.precision,i=c.rounding,e.eq(1))return D(s,r,i);if((t=A(e.e/E))>=e.d.length-1&&(n=u<0?-u:u)<=9007199254740991)return a=z(c,s,n,r),e.s<0?new c(1).div(a):D(a,r,i);if((o=s.s)<0){if(tc.maxE+1||t0?o/0:0):(b=!1,c.rounding=s.s=1,n=Math.min(12,(t+"").length),(a=K(e.times(V(s,r+n)),r)).d&&B((a=D(a,r+5,1)).d,r,i)&&(t=r+10,+P((a=D(K(e.times(V(s,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(a=D(a,r+1,0))),a.s=o,b=!0,c.rounding=i,D(a,r,i))},O.toPrecision=function(e,t){var n,r=this,a=r.constructor;return void 0===e?n=j(r,r.e<=a.toExpNeg||r.e>=a.toExpPos):(M(e,1,u),void 0===t?t=a.rounding:M(t,0,8),n=j(r=D(new a(r),e,t),e<=r.e||r.e<=a.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},O.toSignificantDigits=O.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(M(e,1,u),void 0===t?t=n.rounding:M(t,0,8)),D(new n(this),e,t)},O.toString=function(){var e=this,t=e.constructor,n=j(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},O.truncated=O.trunc=function(){return D(new this.constructor(this),this.e+1,1)},O.valueOf=O.toJSON=function(){var e=this,t=e.constructor,n=j(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var N=function(){function e(e,t,n){var r,a=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+a,e[i]=r%n|0,a=r/n|0;return a&&e.unshift(a),e}function t(e,t,n,r){var a,i;if(n!=r)i=n>r?1:-1;else for(a=i=0;at[a]?1:-1;break}return i}function n(e,t,n,r){for(var a=0;n--;)e[n]-=a,a=e[n]1;)e.shift()}return function(r,a,i,s,c,u){var f,d,l,p,b,h,y,m,v,g,w,x,_,k,S,C,T,O,P,M,B=r.constructor,R=r.s==a.s?1:-1,N=r.d,j=a.d;if(!(N&&N[0]&&j&&j[0]))return new B(r.s&&a.s&&(N?!j||N[0]!=j[0]:j)?N&&0==N[0]||!j?0*R:R/0:NaN);for(u?(b=1,d=r.e-a.e):(u=I,b=E,d=A(r.e/b)-A(a.e/b)),P=j.length,T=N.length,g=(v=new B(R)).d=[],l=0;j[l]==(N[l]||0);l++);if(j[l]>(N[l]||0)&&d--,null==i?(k=i=B.precision,s=B.rounding):k=c?i+(r.e-a.e)+1:i,k<0)g.push(1),h=!0;else{if(k=k/b+2|0,l=0,1==P){for(p=0,j=j[0],k++;(l1&&(j=e(j,p,u),N=e(N,p,u),P=j.length,T=N.length),C=P,x=(w=N.slice(0,P)).length;x=u/2&&++O;do{p=0,(f=t(j,w,P,x))<0?(_=w[0],P!=x&&(_=_*u+(w[1]||0)),(p=_/O|0)>1?(p>=u&&(p=u-1),1==(f=t(y=e(j,p,u),w,m=y.length,x=w.length))&&(p--,n(y,P=10;p/=10)l++;v.e=l+d*b-1,D(v,c?i+v.e+1:i,s,h)}return v}}();function D(e,t,n,r){var a,i,o,s,c,u,f,d,l,p=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(a=1,s=d[0];s>=10;s/=10)a++;if((i=t-a)<0)i+=E,o=t,c=(f=d[l=0])/w(10,a-o-1)%10|0;else if((l=Math.ceil((i+1)/E))>=(s=d.length)){if(!r)break e;for(;s++<=l;)d.push(0);f=c=0,a=1,o=(i%=E)-E+1}else{for(f=s=d[l],a=1;s>=10;s/=10)a++;c=(o=(i%=E)-E+a)<0?0:f/w(10,a-o-1)%10|0}if(r=r||t<0||void 0!==d[l+1]||(o<0?f:f%w(10,a-o-1)),u=n<4?(c||r)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||r||6==n&&(i>0?o>0?f/w(10,a-o):0:d[l-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,u?(t-=e.e+1,d[0]=w(10,(E-t%E)%E),e.e=-t||0):d[0]=e.e=0,e;if(0==i?(d.length=l,s=1,l--):(d.length=l+1,s=w(10,E-i),d[l]=o>0?(f/w(10,a-o)%w(10,o)|0)*s:0),u)for(;;){if(0==l){for(i=1,o=d[0];o>=10;o/=10)i++;for(o=d[0]+=s,s=1;o>=10;o/=10)s++;i!=s&&(e.e++,d[0]==I&&(d[0]=1));break}if(d[l]+=s,d[l]!=I)break;d[l--]=0,s=1}for(i=d.length;0===d[--i];)d.pop()}return b&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e0?i=i.charAt(0)+"."+i.slice(1)+H(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(e.e<0?"e":"e+")+e.e):a<0?(i="0."+H(-a-1)+i,n&&(r=n-o)>0&&(i+=H(r))):a>=o?(i+=H(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+H(r))):((r=a+1)0&&(a+1===o&&(i+="."),i+=H(r))),i}function U(e,t){var n=e[0];for(t*=E;n>=10;n/=10)t++;return t}function L(e,t,n){if(t>C)throw b=!0,n&&(e.precision=n),Error(m);return D(new e(d),t,1,!0)}function Z(e,t,n){if(t>T)throw Error(m);return D(new e(l),t,n,!0)}function F(e){var t=e.length-1,n=t*E+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function H(e){for(var t="";e--;)t+="0";return t}function z(e,t,n,r){var a,i=new e(1),o=Math.ceil(r/E+4);for(b=!1;;){if(n%2&&te((i=i.times(t)).d,o)&&(a=!0),0===(n=A(n/2))){n=i.d.length-1,a&&0===i.d[n]&&++i.d[n];break}te((t=t.times(t)).d,o)}return b=!0,i}function q(e){return 1&e.d[e.d.length-1]}function Q(e,t,n){for(var r,a=new e(t[0]),i=0;++i17)return new l(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(b=!1,c=h):c=t,s=new l(.03125);e.e>-2;)e=e.times(s),d+=5;for(c+=r=Math.log(w(2,d))/Math.LN10*2+5|0,n=i=o=new l(1),l.precision=c;;){if(i=D(i.times(e),c,1),n=n.times(++f),P((s=o.plus(N(i,n,c,1))).d).slice(0,c)===P(o.d).slice(0,c)){for(a=d;a--;)o=D(o.times(o),c,1);if(null!=t)return l.precision=h,o;if(!(u<3&&B(o.d,c-r,p,u)))return D(o,l.precision=h,p,b=!0);l.precision=c+=10,n=i=s=new l(1),f=0,u++}o=s}}function V(e,t){var n,r,a,i,o,s,c,u,f,d,l,p=1,h=e,y=h.d,m=h.constructor,v=m.rounding,g=m.precision;if(h.s<0||!y||!y[0]||!h.e&&1==y[0]&&1==y.length)return new m(y&&!y[0]?-1/0:1!=h.s?NaN:y?0:h);if(null==t?(b=!1,f=g):f=t,m.precision=f+=10,r=(n=P(y)).charAt(0),!(Math.abs(i=h.e)<15e14))return u=L(m,f+2,g).times(i+""),h=V(new m(r+"."+n.slice(1)),f-10).plus(u),m.precision=g,null==t?D(h,g,v,b=!0):h;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=P((h=h.times(e)).d)).charAt(0),p++;for(i=h.e,r>1?(h=new m("0."+n),i++):h=new m(r+"."+n.slice(1)),d=h,c=o=h=N(h.minus(1),h.plus(1),f,1),l=D(h.times(h),f,1),a=3;;){if(o=D(o.times(l),f,1),P((u=c.plus(N(o,new m(a),f,1))).d).slice(0,f)===P(c.d).slice(0,f)){if(c=c.times(2),0!==i&&(c=c.plus(L(m,f+2,g).times(i+""))),c=N(c,new m(p),f,1),null!=t)return m.precision=g,c;if(!B(c.d,f-10,v,s))return D(c,m.precision=g,v,b=!0);m.precision=f+=10,u=o=h=N(d.minus(1),d.plus(1),f,1),l=D(h.times(h),f,1),a=s=1}c=u,a+=2}}function J(e){return String(e.s*e.s/0)}function G(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(a=t.length;48===t.charCodeAt(a-1);--a);if(t=t.slice(r,a)){if(a-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%E,n<0&&(r+=E),re.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),S.test(t))return G(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(_.test(t))n=16,t=t.toLowerCase();else if(x.test(t))n=2;else{if(!k.test(t))throw Error(y+t);n=8}for((o=t.search(/p/i))>0?(u=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),s=(o=t.indexOf("."))>=0,r=e.constructor,s&&(o=(c=(t=t.replace(".","")).length)-o,a=z(r,new r(n),o,2*o)),o=d=(f=R(t,n,I)).length-1;0===f[o];--o)f.pop();return o<0?new r(0*e.s):(e.e=U(f,d),e.d=f,b=!1,s&&(e=N(e,a,4*c)),u&&(e=e.times(Math.abs(u)<54?w(2,u):i.pow(2,u))),b=!0,e)}function Y(e,t,n,r,a){var i,o,s,c,u=e.precision,f=Math.ceil(u/E);for(b=!1,c=n.times(n),s=new e(r);;){if(o=N(s.times(c),new e(t++*t++),u,1),s=a?r.plus(o):r.minus(o),r=N(o.times(c),new e(t++*t++),u,1),void 0!==(o=s.plus(r)).d[f]){for(i=f;o.d[i]===s.d[i]&&i--;);if(-1==i)break}i=s,s=r,r=o,o=i}return b=!0,o.d.length=f+1,o}function X(e,t){for(var n=e;--t;)n*=e;return n}function $(e,t){var n,r=t.s<0,a=Z(e,e.precision,1),i=a.times(.5);if((t=t.abs()).lte(i))return s=r?4:1,t;if((n=t.divToInt(a)).isZero())s=r?3:2;else{if((t=t.minus(n.times(a))).lte(i))return s=q(n)?r?2:3:r?4:1,t;s=q(n)?r?1:4:r?3:2}return t.minus(a).abs()}function ee(e,t,n,r){var a,i,s,c,d,l,p,b,h,y=e.constructor,m=void 0!==n;if(m?(M(n,1,u),void 0===r?r=y.rounding:M(r,0,8)):(n=y.precision,r=y.rounding),e.isFinite()){for(m?(a=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):a=t,(s=(p=j(e)).indexOf("."))>=0&&(p=p.replace(".",""),(h=new y(1)).e=p.length-s,h.d=R(j(h),10,a),h.e=h.d.length),i=d=(b=R(p,10,a)).length;0==b[--d];)b.pop();if(b[0]){if(s<0?i--:((e=new y(e)).d=b,e.e=i,b=(e=N(e,h,n,r,0,a)).d,i=e.e,l=o),s=b[n],c=a/2,l=l||void 0!==b[n+1],l=r<4?(void 0!==s||l)&&(0===r||r===(e.s<0?3:2)):s>c||s===c&&(4===r||l||6===r&&1&b[n-1]||r===(e.s<0?8:7)),b.length=n,l)for(;++b[--n]>a-1;)b[n]=0,n||(++i,b.unshift(1));for(d=b.length;!b[d-1];--d);for(s=0,p="";s1)if(16==t||8==t){for(s=16==t?4:3,--d;d%s;d++)p+="0";for(d=(b=R(p,a,t)).length;!b[d-1];--d);for(s=1,p="1.";sd)for(i-=d;i--;)p+="0";else it)return e.length=t,!0}function ne(e){return new this(e).abs()}function re(e){return new this(e).acos()}function ae(e){return new this(e).acosh()}function ie(e,t){return new this(e).plus(t)}function oe(e){return new this(e).asin()}function se(e){return new this(e).asinh()}function ce(e){return new this(e).atan()}function ue(e){return new this(e).atanh()}function fe(e,t){e=new this(e),t=new this(t);var n,r=this.precision,a=this.rounding,i=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?Z(this,r,a):new this(0)).s=e.s:!e.d||t.isZero()?(n=Z(this,i,1).times(.5)).s=e.s:t.s<0?(this.precision=i,this.rounding=1,n=this.atan(N(e,t,i,1)),t=Z(this,i,1),this.precision=r,this.rounding=a,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(N(e,t,i,1)):(n=Z(this,i,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function de(e){return new this(e).cbrt()}function le(e){return D(e=new this(e),e.e+1,2)}function pe(e,t,n){return new this(e).clamp(t,n)}function be(e){if(!e||"object"!=typeof e)throw Error(h+"Object expected");var t,n,r,a=!0===e.defaults,i=["precision",1,u,"rounding",0,8,"toExpNeg",-c,0,"toExpPos",0,c,"maxE",0,c,"minE",-c,0,"modulo",0,9];for(t=0;t=i[t+1]&&r<=i[t+2]))throw Error(y+n+": "+r);this[n]=r}if(n="crypto",a&&(this[n]=p[n]),void 0!==(r=e[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(y+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(v);this[n]=!0}else this[n]=!1}return this}function he(e){return new this(e).cos()}function ye(e){return new this(e).cosh()}function me(e,t){return new this(e).div(t)}function ve(e){return new this(e).exp()}function ge(e){return D(e=new this(e),e.e+1,3)}function Ae(){var e,t,n=new this(0);for(b=!1,e=0;e=429e7?t[i]=crypto.getRandomValues(new Uint32Array(1))[0]:s[i++]=a%1e7;else{if(!crypto.randomBytes)throw Error(v);for(t=crypto.randomBytes(r*=4);i=214e7?crypto.randomBytes(4).copy(t,i):(s.push(a%1e7),i+=4);i=r/4}else for(;i=10;a/=10)r++;ri.maxE?(a.e=NaN,a.d=null):e.e=10;n/=10)t++;return void(b?t>i.maxE?(a.e=NaN,a.d=null):t0&&e.compare(c)<0;var t}function l(e){var t=new Uint8Array(e);return void 0===i.getRandomValues?r.from(s.randomBytes(e)):(i.getRandomValues(t),r.from(t))}function p(e){return new Promise((function(t){var n=s.createHash("sha512").update(e).digest();t(new Uint8Array(n))}))}function b(e){return function(t,n,a){return new Promise((function(i){if(o)return o.importKey("raw",n,{name:"AES-CBC"},!1,[e]).then((function(n){var r={name:"AES-CBC",iv:t};return o[e](r,n,a)})).then((function(e){i(r.from(new Uint8Array(e)))}));if("encrypt"===e){var c=s.createCipheriv("aes-256-cbc",n,t),u=c.update(a),f=c.final();i(r.concat([u,f]))}else if("decrypt"===e){var d=s.createDecipheriv("aes-256-cbc",n,t),l=d.update(a),p=d.final();i(r.concat([l,p]))}}))}}var h=b("encrypt"),y=b("decrypt"),m=function(e,t){return new Promise((function(n){f(r.isBuffer(e),"Bad private key"),f(r.isBuffer(t),"Bad public key"),f(32===e.length,"Bad private key"),f(d(e),"Bad private key"),f(65===t.length||33===t.length,"Bad public key"),65===t.length&&f(4===t[0],"Bad public key"),33===t.length&&f(2===t[0]||3===t[0],"Bad public key");var i=a.keyFromPrivate(e),o=a.keyFromPublic(t),s=i.derive(o.getPublic());n(r.from(s.toArray()))}))};t.HI=function(e,t,n){var i,o,c,u;return n=n||{},new Promise((function(t){for(var i=n.ephemPrivateKey||l(32);!d(i);)i=n.ephemPrivateKey||l(32);var s;f(32===(s=i).length,"Bad private key"),f(d(s),"Bad private key"),o=r.from(a.keyFromPrivate(s).getPublic("arr")),t(m(i,e))})).then((function(e){return p(e)})).then((function(e){i=n.iv||l(16);var r=e.slice(0,32);return u=e.slice(32),h(i,r,t)})).then((function(e){c=e;var t=r.concat([i,o,c]);return function(e,t){return new Promise((function(n){var a=s.createHmac("sha256",r.from(e));a.update(t),n(a.digest())}))}(u,t)})).then((function(e){return{iv:i,ephemPublicKey:o,ciphertext:c,mac:e}}))},t.pe=function(e,t){var n;return m(e,t.ephemPublicKey).then((function(e){return p(e)})).then((function(e){n=e.slice(0,32);var a,i,o,c=e.slice(32),u=r.concat([t.iv,t.ephemPublicKey,t.ciphertext]);return a=c,i=u,o=t.mac,new Promise((function(e){var t=s.createHmac("sha256",r.from(a));t.update(i),e(function(e,t){if(e.length!==t.length)return!1;for(var n=0,r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=i(t,1,this._bitLength),a=(1<=o;f--)c=(c<<1)+r[f];u.push(c)}for(var d=this.jpoint(null,null,null),l=this.jpoint(null,null,null),p=a;p>0;p--){for(o=0;o=0;u--){for(var f=0;u>=0&&0===o[u];u--)f++;if(u>=0&&f++,c=c.dblp(f),u<0)break;var d=o[u];s(0!==d),c="affine"===e.type?d>0?c.mixedAdd(a[d-1>>1]):c.mixedAdd(a[-d-1>>1].neg()):d>0?c.add(a[d-1>>1]):c.add(a[-d-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,a){var s,c,u,f=this._wnafT1,d=this._wnafT2,l=this._wnafT3,p=0;for(s=0;s=1;s-=2){var h=s-1,y=s;if(1===f[h]&&1===f[y]){var m=[t[h],null,null,t[y]];0===t[h].y.cmp(t[y].y)?(m[1]=t[h].add(t[y]),m[2]=t[h].toJ().mixedAdd(t[y].neg())):0===t[h].y.cmp(t[y].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[y]),m[2]=t[h].add(t[y].neg())):(m[1]=t[h].toJ().mixedAdd(t[y]),m[2]=t[h].toJ().mixedAdd(t[y].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=o(n[h],n[y]);for(p=Math.max(g[0].length,p),l[h]=new Array(p),l[y]=new Array(p),c=0;c=0;s--){for(var k=0;s>=0;){var S=!0;for(c=0;c=0&&k++,x=x.dblp(k),s<0)break;for(c=0;c0?u=d[c][I-1>>1]:I<0&&(u=d[c][-I-1>>1].neg()),x="affine"===u.type?x.mixedAdd(u):x.add(u))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,a=0;a":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=r.redAdd(t),o=i.redSub(n),s=r.redSub(t),c=a.redMul(o),u=i.redMul(s),f=a.redMul(s),d=o.redMul(i);return this.curve.point(c,u,d,f)},u.prototype._projDbl=function(){var e,t,n,r,a,i,o=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var u=(r=this.curve._mulA(s)).redAdd(c);this.zOne?(e=o.redSub(s).redSub(c).redMul(u.redSub(this.curve.two)),t=u.redMul(r.redSub(c)),n=u.redSqr().redSub(u).redSub(u)):(a=this.z.redSqr(),i=u.redSub(a).redISub(a),e=o.redSub(s).redISub(c).redMul(i),t=u.redMul(r.redSub(c)),n=u.redMul(i))}else r=s.redAdd(c),a=this.curve._mulC(this.z).redSqr(),i=r.redSub(a).redSub(a),e=this.curve._mulC(o.redISub(r)).redMul(i),t=this.curve._mulC(r).redMul(s.redISub(c)),n=r.redMul(i);return this.curve.point(e,t,n)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),i=n.redSub(t),o=a.redSub(r),s=a.redAdd(r),c=n.redAdd(t),u=i.redMul(o),f=s.redMul(c),d=i.redMul(c),l=o.redMul(s);return this.curve.point(u,f,l,d)},u.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),a=r.redSqr(),i=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(i).redMul(o),c=a.redSub(s),u=a.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(o),d=r.redMul(c).redMul(f);return this.curve.twisted?(t=r.redMul(u).redMul(o.redSub(this.curve._mulA(i))),n=c.redMul(u)):(t=r.redMul(u).redMul(o.redSub(i)),n=this.curve._mulC(c).redMul(u)),this.curve.point(d,t,n)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},u.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},28895:function(e,t,n){"use strict";var r=t;r.base=n(66640),r.short=n(59932),r.mont=n(89067),r.edwards=n(89479)},89067:function(e,t,n){"use strict";var r=n(73896),a=n(13786),i=n(66640),o=n(93045);function s(e){i.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,n){i.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(s,i),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},a(c,i.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),a=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,a)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),a=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(n),o=a.redMul(r),s=t.z.redMul(i.redAdd(o).redSqr()),c=t.x.redMul(i.redISub(o).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),a=[];0!==t.cmpn(0);t.iushrn(1))a.push(t.andln(1));for(var i=a.length-1;i>=0;i--)0===a[i]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},59932:function(e,t,n){"use strict";var r=n(93045),a=n(73896),i=n(13786),o=n(66640),s=r.assert;function c(e){o.call(this,"short",e),this.a=new a(e.a,16).toRed(this.red),this.b=new a(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,n,r){o.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new a(t,16),this.y=new a(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(e,t,n,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0)):(this.x=new a(t,16),this.y=new a(n,16),this.z=new a(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}i(c,o),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new a(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new a(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?n=i[0]:(n=i[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new a(e.a,16),b:new a(e.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:a.mont(e),n=new a(2).toRed(t).redInvm(),r=n.redNeg(),i=new a(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,n,r,i,o,s,c,u,f,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,p=this.n.clone(),b=new a(1),h=new a(0),y=new a(0),m=new a(1),v=0;0!==l.cmpn(0);){var g=p.div(l);u=p.sub(g.mul(l)),f=y.sub(g.mul(b));var A=m.sub(g.mul(h));if(!r&&u.cmp(d)<0)t=c.neg(),n=b,r=u.neg(),i=f;else if(r&&2==++v)break;c=u,p=l,l=u,y=b,b=f,m=h,h=A}o=u.neg(),s=f;var w=r.sqr().add(i.sqr());return o.sqr().add(s.sqr()).cmp(w)>=0&&(o=t,s=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:i},{a:o,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],a=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),o=a.mul(n.a),s=i.mul(r.a),c=a.mul(n.b),u=i.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(u).neg()}},c.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(a).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,a=this._endoWnafT2,i=0;i":""},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),a=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a):this.curve._wnafMulAdd(1,r,a,2)},u.prototype.jmulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a,!0):this.curve._wnafMulAdd(1,r,a,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(f,o.BasePoint),c.prototype.jpoint=function(e,t,n){return new f(this,e,t,n)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),a=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(a),c=i.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),f=u.redMul(s),d=r.redMul(u),l=c.redSqr().redIAdd(f).redISub(d).redISub(d),p=c.redMul(d.redISub(l)).redISub(i.redMul(f)),b=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(l,p,b)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),a=this.y,i=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=a.redSub(i);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),f=n.redMul(c),d=s.redSqr().redIAdd(u).redISub(f).redISub(f),l=s.redMul(f.redISub(d)).redISub(a.redMul(u)),p=this.z.redMul(o);return this.curve.jpoint(d,l,p)},f.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(a),0===this.x.cmp(n))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},81796:function(e,t,n){"use strict";var r,a=t,i=n(9597),o=n(28895),s=n(93045).assert;function c(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(a,e,{configurable:!0,enumerable:!0,get:function(){var n=new c(t);return Object.defineProperty(a,e,{configurable:!0,enumerable:!0,value:n}),n}})}a.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(13646)}catch(e){r=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},83956:function(e,t,n){"use strict";var r=n(73896),a=n(56604),i=n(93045),o=n(81796),s=n(96979),c=i.assert,u=n(64050),f=n(27119);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new u(this,e)},d.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new a({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new r(2));;){var o=new r(t.generate(n));if(!(o.cmp(i)>0))return o.iaddn(1),this.keyFromPrivate(o)}},d.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,n,i){"object"==typeof n&&(i=n,n=null),i||(i={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),c=e.toArray("be",o),u=new a({hash:this.hash,entropy:s,nonce:c,pers:i.pers,persEnc:i.persEnc||"utf8"}),d=this.n.sub(new r(1)),l=0;;l++){var p=i.k?i.k(l):new r(u.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(d)>=0)){var b=this.g.mul(p);if(!b.isInfinity()){var h=b.getX(),y=h.umod(this.n);if(0!==y.cmpn(0)){var m=p.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(b.getY().isOdd()?1:0)|(0!==h.cmp(y)?2:0);return i.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new f({r:y,s:m,recoveryParam:v})}}}}}},d.prototype.verify=function(e,t,n,a){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,a);var i=(t=new f(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,c=o.invm(this.n),u=c.mul(e).umod(this.n),d=c.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,n.getPublic(),d)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(u,n.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},d.prototype.recoverPubKey=function(e,t,n,a){c((3&n)===n,"The recovery param is more than two bits"),t=new f(t,a);var i=this.n,o=new r(e),s=t.r,u=t.s,d=1&n,l=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var p=t.r.invm(i),b=i.sub(o).mul(p).umod(i),h=u.mul(p).umod(i);return this.g.mulAdd(b,s,h)},d.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new f(t,r)).recoveryParam)return t.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(n))return a}throw new Error("Unable to find valid recovery factor")}},64050:function(e,t,n){"use strict";var r=n(73896),a=n(93045).assert;function i(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=i,i.fromPublic=function(e,t,n){return t instanceof i?t:new i(e,{pub:t,pubEnc:n})},i.fromPrivate=function(e,t,n){return t instanceof i?t:new i(e,{priv:t,privEnc:n})},i.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},i.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?a(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||a(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},i.prototype.derive=function(e){return e.validate()||a(e.validate(),"public point not validated"),e.mul(this.priv).getX()},i.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},i.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},i.prototype.inspect=function(){return""}},27119:function(e,t,n){"use strict";var r=n(73896),a=n(93045),i=a.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var a=0,i=0,o=t.place;i>>=0;return!(a<=127)&&(t.place=o,a)}function u(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=o,o.prototype._importDER=function(e,t){e=a.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;var i=c(e,n);if(!1===i)return!1;if(i+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var o=c(e,n);if(!1===o)return!1;var u=e.slice(n.place,o+n.place);if(n.place+=o,2!==e[n.place++])return!1;var f=c(e,n);if(!1===f)return!1;if(e.length!==f+n.place)return!1;var d=e.slice(n.place,f+n.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new r(u),this.s=new r(d),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=u(t),n=u(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];f(r,t.length),(r=r.concat(t)).push(2),f(r,n.length);var i=r.concat(n),o=[48];return f(o,i.length),o=o.concat(i),a.encode(o,e)}},29816:function(e,t,n){"use strict";var r=n(9597),a=n(81796),i=n(93045),o=i.assert,s=i.parseBytes,c=n(76795),u=n(86371);function f(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=a[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=f,f.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),a=this.g.mul(r),i=this.encodePoint(a),o=this.hashInt(i,n.pubBytes(),e).mul(n.priv()),c=r.add(o).umod(this.curve.n);return this.makeSignature({R:a,S:c,Rencoded:i})},f.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),a=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(r.pub().mul(a)).eq(i)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t(a>>1)-1?(a>>1)-c:c,i.isubn(s)):s=0,r[o]=s,i.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,a=0,i=0;e.cmpn(-a)>0||t.cmpn(-i)>0;){var o,s,c=e.andln(3)+a&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),o=0==(1&c)?0:3!=(r=e.andln(7)+a&7)&&5!==r||2!==u?c:-c,n[0].push(o),s=0==(1&u)?0:3!=(r=t.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[1].push(s),2*a===o+1&&(a=1-a),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new a(e,"hex","le")}},73896:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(5861).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var b=u-p|0;f+=(o=(a=0|e.words[b])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?f[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],p=l[e];n="";var b=this.clone();for(b.negative=0;!b.isZero();){var h=b.modn(p).toString(e);n=(b=b.idivn(p)).isZero()?h+n:f[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),f=this.clone();if(c){for(s=0;!f.isZero();s++)o=f.andln(255),f.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,p=0|o[1],b=8191&p,h=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,S=0|o[5],I=8191&S,E=S>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,R=0|o[8],N=8191&R,D=R>>>13,j=0|o[9],U=8191&j,L=j>>>13,Z=0|s[0],F=8191&Z,H=Z>>>13,z=0|s[1],q=8191&z,Q=z>>>13,K=0|s[2],V=8191&K,J=K>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],be=8191&pe,he=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,F))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,F)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,F),a=(a=Math.imul(b,H))+Math.imul(h,F)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,Q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,F),a=(a=Math.imul(m,H))+Math.imul(v,F)|0,i=Math.imul(v,H),r=r+Math.imul(b,q)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(h,q)|0,i=i+Math.imul(h,Q)|0;var ve=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(a=(a=a+Math.imul(d,J)|0)+Math.imul(l,V)|0))<<13)|0;u=((i=i+Math.imul(l,J)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,F),a=(a=Math.imul(A,H))+Math.imul(w,F)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,Q)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,Q)|0,r=r+Math.imul(b,V)|0,a=(a=a+Math.imul(b,J)|0)+Math.imul(h,V)|0,i=i+Math.imul(h,J)|0;var ge=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(a=(a=a+Math.imul(d,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,F),a=(a=Math.imul(_,H))+Math.imul(k,F)|0,i=Math.imul(k,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,Q)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,Q)|0,r=r+Math.imul(m,V)|0,a=(a=a+Math.imul(m,J)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,J)|0,r=r+Math.imul(b,W)|0,a=(a=a+Math.imul(b,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(I,F),a=(a=Math.imul(I,H))+Math.imul(E,F)|0,i=Math.imul(E,H),r=r+Math.imul(_,q)|0,a=(a=a+Math.imul(_,Q)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,Q)|0,r=r+Math.imul(A,V)|0,a=(a=a+Math.imul(A,J)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,J)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(b,$)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,F),a=(a=Math.imul(T,H))+Math.imul(O,F)|0,i=Math.imul(O,H),r=r+Math.imul(I,q)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,Q)|0,r=r+Math.imul(_,V)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(b,ne)|0,a=(a=a+Math.imul(b,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,F),a=(a=Math.imul(M,H))+Math.imul(B,F)|0,i=Math.imul(B,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,Q)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,Q)|0,r=r+Math.imul(I,V)|0,a=(a=a+Math.imul(I,J)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,J)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(b,ie)|0,a=(a=a+Math.imul(b,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(N,F),a=(a=Math.imul(N,H))+Math.imul(D,F)|0,i=Math.imul(D,H),r=r+Math.imul(M,q)|0,a=(a=a+Math.imul(M,Q)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,Q)|0,r=r+Math.imul(T,V)|0,a=(a=a+Math.imul(T,J)|0)+Math.imul(O,V)|0,i=i+Math.imul(O,J)|0,r=r+Math.imul(I,W)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(b,ce)|0,a=(a=a+Math.imul(b,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,F),a=(a=Math.imul(U,H))+Math.imul(L,F)|0,i=Math.imul(L,H),r=r+Math.imul(N,q)|0,a=(a=a+Math.imul(N,Q)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,Q)|0,r=r+Math.imul(M,V)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,J)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(I,$)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(b,de)|0,a=(a=a+Math.imul(b,le)|0)+Math.imul(h,de)|0,i=i+Math.imul(h,le)|0;var Se=(u+(r=r+Math.imul(d,be)|0)|0)+((8191&(a=(a=a+Math.imul(d,he)|0)+Math.imul(l,be)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,q),a=(a=Math.imul(U,Q))+Math.imul(L,q)|0,i=Math.imul(L,Q),r=r+Math.imul(N,V)|0,a=(a=a+Math.imul(N,J)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,J)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(I,ne)|0,a=(a=a+Math.imul(I,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Ie=(u+(r=r+Math.imul(b,be)|0)|0)+((8191&(a=(a=a+Math.imul(b,he)|0)+Math.imul(h,be)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,V),a=(a=Math.imul(U,J))+Math.imul(L,V)|0,i=Math.imul(L,J),r=r+Math.imul(N,W)|0,a=(a=a+Math.imul(N,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,be)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,be)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(N,$)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(I,ce)|0,a=(a=a+Math.imul(I,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,de)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,be)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,be)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(N,ne)|0,a=(a=a+Math.imul(N,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(I,de)|0,a=(a=a+Math.imul(I,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,be)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,be)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(N,ie)|0,a=(a=a+Math.imul(N,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(I,be)|0)|0)+((8191&(a=(a=a+Math.imul(I,he)|0)+Math.imul(E,be)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,de)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,de)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,be)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,be)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(N,de)|0,a=(a=a+Math.imul(N,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,be)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,be)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,de),a=(a=Math.imul(U,le))+Math.imul(L,de)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(N,be)|0)|0)+((8191&(a=(a=a+Math.imul(N,he)|0)+Math.imul(D,be)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Re=(u+(r=Math.imul(U,be))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,be)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Se,c[10]=Ie,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Re,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(b=p),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?b(this,e,t):r<63?p(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0==(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var b=0,h=1;0==(n.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(n.iushrn(b);b-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0==(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),b=o;0!==p.cmp(s);){for(var h=p,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4==++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},80675:function(e,t,n){e.exports=n(18772)},18772:function(e,t,n){n(78757);var r,a=n(33531);r=a("Error.captureStackTrace")?n(75483):a("Error.prototype.stack")?n(70317):n(14932),e.exports=r()},70291:function(e,t,n){var r=n(79831).Class,a=n(79831).abstractMethod,i=r(Object,{prototype:{init:r.prototype.merge,frameString:void 0,toString:function(){return this.frameString},functionValue:void 0,getThis:a,getTypeName:a,getFunction:function(){return this.functionValue},getFunctionName:a,getMethodName:a,getFileName:a,getLineNumber:a,getColumnNumber:a,getEvalOrigin:a,isTopLevel:a,isEval:a,isNative:a,isConstructor:a}});e.exports=i},7178:function(e,t,n){var r=n(79831).Class,a=n(70291),i=n(41).cache,o=r(Object,{prototype:{stackParser:null,frameParser:null,locationParsers:null,constructor:function(e){r.prototype.merge.call(this,e)},getFrames:function(e,t){for(var n=[],r=0,a=e.length;r=0)return null;var o=(n=n.toRed(a.red)).redSqr().redIMul(n).redIAdd(a.b).redSqrt();return 3===e!==o.isOdd()&&(o=o.redNeg()),r.keyPair({pub:{x:n,y:o}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,n){var o=new i(t),s=new i(n);if(o.cmp(a.p)>=0||s.cmp(a.p)>=0)return null;if(o=o.toRed(a.red),s=s.toRed(a.red),(6===e||7===e)&&s.isOdd()!==(7===e))return null;var c=o.redSqr().redIMul(o);return s.redSqr().redISub(c.redIAdd(a.b)).isZero()?r.keyPair({pub:{x:o,y:s}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function s(e,t){for(var n=t.encode(null,33===e.length),r=0;r=0)return 1;if(n.iadd(new i(e)),n.cmp(a.n)>=0&&n.isub(a.n),n.isZero())return 1;var r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakMul:function(e,t){var n=new i(t);if(n.cmp(a.n)>=0||n.isZero())return 1;n.imul(new i(e)),n.cmp(a.n)>=0&&(n=n.umod(a.n));var r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},publicKeyVerify:function(e){return null===o(e)?1:0},publicKeyCreate:function(e,t){var n=new i(t);return n.cmp(a.n)>=0||n.isZero()?1:(s(e,r.keyFromPrivate(t).getPublic()),0)},publicKeyConvert:function(e,t){var n=o(t);return null===n?1:(s(e,n.getPublic()),0)},publicKeyNegate:function(e,t){var n=o(t);if(null===n)return 1;var r=n.getPublic();return r.y=r.y.redNeg(),s(e,r),0},publicKeyCombine:function(e,t){for(var n=new Array(t.length),r=0;r=0)return 2;var c=r.getPublic().add(a.g.mul(n));return c.isInfinity()?2:(s(e,c),0)},publicKeyTweakMul:function(e,t,n){var r=o(t);return null===r?1:(n=new i(n)).cmp(a.n)>=0||n.isZero()?2:(s(e,r.getPublic().mul(n)),0)},signatureNormalize:function(e){var t=new i(e.subarray(0,32)),n=new i(e.subarray(32,64));return t.cmp(a.n)>=0||n.cmp(a.n)>=0?1:(1===n.cmp(r.nh)&&e.set(a.n.sub(n).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport:function(e,t){var n=t.subarray(0,32),r=t.subarray(32,64);if(new i(n).cmp(a.n)>=0)return 1;if(new i(r).cmp(a.n)>=0)return 1;var o=e.output,s=o.subarray(4,37);s[0]=0,s.set(n,1);for(var c=33,u=0;c>1&&0===s[u]&&!(128&s[u+1]);--c,++u);if(128&(s=s.subarray(u))[0])return 1;if(c>1&&0===s[0]&&!(128&s[1]))return 1;var f=o.subarray(39,72);f[0]=0,f.set(r,1);for(var d=33,l=0;d>1&&0===f[l]&&!(128&f[l+1]);--d,++l);return 128&(f=f.subarray(l))[0]||d>1&&0===f[0]&&!(128&f[1])?1:(e.outputlen=6+c+d,o[0]=48,o[1]=e.outputlen-2,o[2]=2,o[3]=s.length,o.set(s,4),o[4+c]=2,o[5+c]=f.length,o.set(f,6+c),0)},signatureImport:function(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;var n=t[3];if(0===n)return 1;if(5+n>=t.length)return 1;if(2!==t[4+n])return 1;var r=t[5+n];if(0===r)return 1;if(6+n+r!==t.length)return 1;if(128&t[4])return 1;if(n>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[n+6])return 1;if(r>1&&0===t[n+6]&&!(128&t[n+7]))return 1;var o=t.subarray(4,4+n);if(33===o.length&&0===o[0]&&(o=o.subarray(1)),o.length>32)return 1;var s=t.subarray(6+n);if(33===s.length&&0===s[0]&&(s=s.slice(1)),s.length>32)throw new Error("S length is too long");var c=new i(o);c.cmp(a.n)>=0&&(c=new i(0));var u=new i(t.subarray(6+n));return u.cmp(a.n)>=0&&(u=new i(0)),e.set(c.toArrayLike(Uint8Array,"be",32),0),e.set(u.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign:function(e,t,n,o,s){if(s){var c=s;s=function(e){var r=c(t,n,null,o,e);if(!(r instanceof Uint8Array&&32===r.length))throw new Error("This is the way");return new i(r)}}var u,f=new i(n);if(f.cmp(a.n)>=0||f.isZero())return 1;try{u=r.sign(t,n,{canonical:!0,k:s,pers:o})}catch(e){return 1}return e.signature.set(u.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(u.s.toArrayLike(Uint8Array,"be",32),32),e.recid=u.recoveryParam,0},ecdsaVerify:function(e,t,n){var s={r:e.subarray(0,32),s:e.subarray(32,64)},c=new i(s.r),u=new i(s.s);if(c.cmp(a.n)>=0||u.cmp(a.n)>=0)return 1;if(1===u.cmp(r.nh)||c.isZero()||u.isZero())return 3;var f=o(n);if(null===f)return 2;var d=f.getPublic();return r.verify(t,s,d)?0:3},ecdsaRecover:function(e,t,n,o){var c,u={r:t.slice(0,32),s:t.slice(32,64)},f=new i(u.r),d=new i(u.s);if(f.cmp(a.n)>=0||d.cmp(a.n)>=0)return 1;if(f.isZero()||d.isZero())return 2;try{c=r.recoverPubKey(o,u,n)}catch(e){return 2}return s(e,c),0},ecdh:function(e,t,n,s,c,u,f){var d=o(t);if(null===d)return 1;var l=new i(n);if(l.cmp(a.n)>=0||l.isZero())return 2;var p=d.getPublic().mul(l);if(void 0===c)for(var b=p.encode(null,!0),h=r.hash().update(b).digest(),y=0;y<32;++y)e[y]=h[y];else{u||(u=new Uint8Array(32));for(var m=p.getX().toArray("be",32),v=0;v<32;++v)u[v]=m[v];f||(f=new Uint8Array(32));for(var g=p.getY().toArray("be",32),A=0;A<32;++A)f[A]=g[A];var w=c(u,f,s);if(!(w instanceof Uint8Array&&w.length===e.length))return 2;e.set(w)}return 0}}},95394:function(e,t,n){var r=n(21146).default,a="Impossible case. Please create issue.",i="The tweak was out of range or the resulted private key is invalid",o="The tweak was out of range or equal to zero",s="Public Key could not be parsed",c="Public Key serialization error",u="Signature could not be parsed";function f(e,t){if(!e)throw new Error(t)}function d(e,t,n){if(f(t instanceof Uint8Array,"Expected ".concat(e," to be an Uint8Array")),void 0!==n)if(Array.isArray(n)){var r=n.join(", "),a="Expected ".concat(e," to be an Uint8Array with length [").concat(r,"]");f(n.includes(t.length),a)}else{var i="Expected ".concat(e," to be an Uint8Array with length ").concat(n);f(t.length===n,i)}}function l(e){f("Boolean"===b(e),"Expected compressed to be a Boolean")}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return new Uint8Array(e)},t=arguments.length>1?arguments[1]:void 0;return"function"==typeof e&&(e=e(t)),d("output",e,t),e}function b(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=function(e){return{contextRandomize:function(t){if(f(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&d("seed",t,32),1===e.contextRandomize(t))throw new Error("Unknow error on context randomization")},privateKeyVerify:function(t){return d("private key",t,32),0===e.privateKeyVerify(t)},privateKeyNegate:function(t){switch(d("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(a)}},privateKeyTweakAdd:function(t,n){switch(d("private key",t,32),d("tweak",n,32),e.privateKeyTweakAdd(t,n)){case 0:return t;case 1:throw new Error(i)}},privateKeyTweakMul:function(t,n){switch(d("private key",t,32),d("tweak",n,32),e.privateKeyTweakMul(t,n)){case 0:return t;case 1:throw new Error(o)}},publicKeyVerify:function(t){return d("public key",t,[33,65]),0===e.publicKeyVerify(t)},publicKeyCreate:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0;switch(d("private key",t,32),l(n),r=p(r,n?33:65),e.publicKeyCreate(r,t)){case 0:return r;case 1:throw new Error("Private Key is invalid");case 2:throw new Error(c)}},publicKeyConvert:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0;switch(d("public key",t,[33,65]),l(n),r=p(r,n?33:65),e.publicKeyConvert(r,t)){case 0:return r;case 1:throw new Error(s);case 2:throw new Error(c)}},publicKeyNegate:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0;switch(d("public key",t,[33,65]),l(n),r=p(r,n?33:65),e.publicKeyNegate(r,t)){case 0:return r;case 1:throw new Error(s);case 2:throw new Error(a);case 3:throw new Error(c)}},publicKeyCombine:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0;f(Array.isArray(t),"Expected public keys to be an Array"),f(t.length>0,"Expected public keys array will have more than zero items");var i,o=r(t);try{for(o.s();!(i=o.n()).done;)d("public key",i.value,[33,65])}catch(e){o.e(e)}finally{o.f()}switch(l(n),a=p(a,n?33:65),e.publicKeyCombine(a,t)){case 0:return a;case 1:throw new Error(s);case 2:throw new Error("The sum of the public keys is not valid");case 3:throw new Error(c)}},publicKeyTweakAdd:function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0;switch(d("public key",t,[33,65]),d("tweak",n,32),l(r),a=p(a,r?33:65),e.publicKeyTweakAdd(a,t,n)){case 0:return a;case 1:throw new Error(s);case 2:throw new Error(i)}},publicKeyTweakMul:function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0;switch(d("public key",t,[33,65]),d("tweak",n,32),l(r),a=p(a,r?33:65),e.publicKeyTweakMul(a,t,n)){case 0:return a;case 1:throw new Error(s);case 2:throw new Error(o)}},signatureNormalize:function(t){switch(d("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(u)}},signatureExport:function(t,n){d("signature",t,64);var r={output:n=p(n,72),outputlen:72};switch(e.signatureExport(r,t)){case 0:return n.slice(0,r.outputlen);case 1:throw new Error(u);case 2:throw new Error(a)}},signatureImport:function(t,n){switch(d("signature",t),n=p(n,64),e.signatureImport(n,t)){case 0:return n;case 1:throw new Error(u);case 2:throw new Error(a)}},ecdsaSign:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;d("message",t,32),d("private key",n,32),f("Object"===b(r),"Expected options to be an Object"),void 0!==r.data&&d("options.data",r.data),void 0!==r.noncefn&&f("Function"===b(r.noncefn),"Expected options.noncefn to be a Function");var o={signature:i=p(i,64),recid:null};switch(e.ecdsaSign(o,t,n,r.data,r.noncefn)){case 0:return o;case 1:throw new Error("The nonce generation function failed, or the private key was invalid");case 2:throw new Error(a)}},ecdsaVerify:function(t,n,r){switch(d("signature",t,64),d("message",n,32),d("public key",r,[33,65]),e.ecdsaVerify(t,n,r)){case 0:return!0;case 3:return!1;case 1:throw new Error(u);case 2:throw new Error(s)}},ecdsaRecover:function(t,n,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4?arguments[4]:void 0;switch(d("signature",t,64),f("Number"===b(n)&&n>=0&&n<=3,"Expected recovery id to be a Number within interval [0, 3]"),d("message",r,32),l(i),o=p(o,i?33:65),e.ecdsaRecover(o,t,n,r)){case 0:return o;case 1:throw new Error(u);case 2:throw new Error("Public key could not be recover");case 3:throw new Error(a)}},ecdh:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;switch(d("public key",t,[33,65]),d("private key",n,32),f("Object"===b(r),"Expected options to be an Object"),void 0!==r.data&&d("options.data",r.data),void 0!==r.hashfn?(f("Function"===b(r.hashfn),"Expected options.hashfn to be a Function"),void 0!==r.xbuf&&d("options.xbuf",r.xbuf,32),void 0!==r.ybuf&&d("options.ybuf",r.ybuf,32),d("output",a)):a=p(a,32),e.ecdh(a,t,n,r.data,r.hashfn,r.xbuf,r.ybuf)){case 0:return a;case 1:throw new Error(s);case 2:throw new Error("Scalar was invalid (zero or overflow)")}}}}},65227:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.createHashFunction=function(e){return function(t){var n=e();return n.update(t),r.from(n.digest())}}},4297:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(65227),a=n(36500);t.keccak224=r.createHashFunction((function(){return a("keccak224")})),t.keccak256=r.createHashFunction((function(){return a("keccak256")})),t.keccak384=r.createHashFunction((function(){return a("keccak384")})),t.keccak512=r.createHashFunction((function(){return a("keccak512")}))},62257:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12711);t.getRandomBytes=function(e){return new Promise((function(t,n){r(e,(function(e,r){e?n(e):t(r)}))}))},t.getRandomBytesSync=function(e){return r(e)}},86939:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]n)throw new Error("Elements exceed array size: "+n);for(l in s=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)s.push(p(e,t[l]));if("dynamic"===n){var b=p("uint256",t.length);s.unshift(b)}return r.concat(s)}if("bytes"===e)return t=r.from(t),s=r.concat([p("uint256",t.length),t]),t.length%32!=0&&(s=r.concat([s,a.zeros(32-t.length%32)])),s;if(e.startsWith("bytes")){if((n=c(e))<1||n>32)throw new Error("Invalid bytes width: "+n);return a.setLengthRight(t,32)}if(e.startsWith("uint")){if((n=c(e))%8||n<8||n>256)throw new Error("Invalid uint width: "+n);if((o=d(t)).bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+o.bitLength());if(o<0)throw new Error("Supplied uint is negative");return o.toArrayLike(r,"be",32)}if(e.startsWith("int")){if((n=c(e))%8||n<8||n>256)throw new Error("Invalid int width: "+n);if((o=d(t)).bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+o.bitLength());return o.toTwos(256).toArrayLike(r,"be",32)}if(e.startsWith("ufixed")){if(n=u(e),(o=d(t))<0)throw new Error("Supplied ufixed is negative");return p("uint256",o.mul(new i(2).pow(new i(n[1]))))}if(e.startsWith("fixed"))return n=u(e),p("int256",d(t).mul(new i(2).pow(new i(n[1]))));throw new Error("Unsupported or invalid type: "+e)}function b(e,t,n){var a,o,s,c;if("string"==typeof e&&(e=h(e)),"address"===e.name)return b(e.rawType,t,n).toArrayLike(r,"be",20).toString("hex");if("bool"===e.name)return b(e.rawType,t,n).toString()===new i(1).toString();if("string"===e.name){var u=b(e.rawType,t,n);return r.from(u,"utf8").toString()}if(e.isArray){for(s=[],a=e.size,"dynamic"===e.size&&(n=b("uint256",t,n).toNumber(),a=b("uint256",t,n).toNumber(),n+=32),c=0;ce.size)throw new Error("Decoded int exceeds width: "+e.size+" vs "+o.bitLength());return o}if(e.name.startsWith("int")){if((o=new i(t.slice(n,n+32),16,"be").fromTwos(256)).bitLength()>e.size)throw new Error("Decoded uint exceeds width: "+e.size+" vs "+o.bitLength());return o}if(e.name.startsWith("ufixed")){if(a=new i(2).pow(new i(e.size[1])),!(o=b("uint256",t,n)).mod(a).isZero())throw new Error("Decimals not supported yet");return o.div(a)}if(e.name.startsWith("fixed")){if(a=new i(2).pow(new i(e.size[1])),!(o=b("int256",t,n)).mod(a).isZero())throw new Error("Decimals not supported yet");return o.div(a)}throw new Error("Unsupported or invalid type: "+e.name)}function h(e){var t,n,r;if(m(e)){t=f(e);var a=e.slice(0,e.lastIndexOf("["));return a=h(a),{isArray:!0,name:e,size:t,memoryUsage:"dynamic"===t?32:a.memoryUsage*t,subArray:a}}switch(e){case"address":r="uint160";break;case"bool":r="uint8";break;case"string":r="bytes"}if(n={rawType:r,name:e,memoryUsage:32},e.startsWith("bytes")&&"bytes"!==e||e.startsWith("uint")||e.startsWith("int")?n.size=c(e):(e.startsWith("ufixed")||e.startsWith("fixed"))&&(n.size=u(e)),e.startsWith("bytes")&&"bytes"!==e&&(n.size<1||n.size>32))throw new Error("Invalid bytes width: "+n.size);if((e.startsWith("uint")||e.startsWith("int"))&&(n.size%8||n.size<8||n.size>256))throw new Error("Invalid int/uint width: "+n.size);return n}function y(e){return"string"===e||"bytes"===e||"dynamic"===f(e)}function m(e){return e.lastIndexOf("]")===e.length-1}function v(e,t){return e.startsWith("address")||e.startsWith("bytes")?"0x"+t.toString("hex"):t.toString()}o.eventID=function(e,t){var n=e+"("+t.map(s).join(",")+")";return a.keccak256(r.from(n))},o.methodID=function(e,t){return o.eventID(e,t).slice(0,4)},o.rawEncode=function(e,t){var n=[],a=[],i=0;e.forEach((function(e){if(m(e)){var t=f(e);i+="dynamic"!==t?32*t:32}else i+=32}));for(var o=0;ol)throw new Error("Elements exceed array size: "+l)}var p=t.map((function(e){return o.solidityHexValue(u,e,256)}));return r.concat(p)}if("bytes"===e)return t;if("string"===e)return r.from(t,"utf8");if("bool"===e){n=n||8;var b=Array(n/4).join("0");return r.from(t?b+"1":b+"0","hex")}if("address"===e){var h=20;return n&&(h=n/8),a.setLengthLeft(t,h)}if(e.startsWith("bytes")){if((i=c(e))<1||i>32)throw new Error("Invalid bytes width: "+i);return a.setLengthRight(t,i)}if(e.startsWith("uint")){if((i=c(e))%8||i<8||i>256)throw new Error("Invalid uint width: "+i);if((s=d(t)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+s.bitLength());return n=n||i,s.toArrayLike(r,"be",n/8)}if(e.startsWith("int")){if((i=c(e))%8||i<8||i>256)throw new Error("Invalid int width: "+i);if((s=d(t)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+s.bitLength());return n=n||i,s.toTwos(i).toArrayLike(r,"be",n/8)}throw new Error("Unsupported or invalid type: "+e)},o.solidityPack=function(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var n=[],a=0;a="0"&&t<="9";)i+=e[o]-"0",o++;r=o-1,n.push(i)}else if("i"===a)n.push("int256");else{if("a"!==a)throw new Error("Unsupported or invalid type: "+a);n.push("int256[]")}}return n},o.toSerpent=function(e){for(var t=[],n=0;n=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var b=u-p|0;f+=(o=(a=0|e.words[b])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?f[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],p=l[e];n="";var b=this.clone();for(b.negative=0;!b.isZero();){var h=b.modn(p).toString(e);n=(b=b.idivn(p)).isZero()?h+n:f[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),f=this.clone();if(c){for(s=0;!f.isZero();s++)o=f.andln(255),f.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,p=0|o[1],b=8191&p,h=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,S=0|o[5],I=8191&S,E=S>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,R=0|o[8],N=8191&R,D=R>>>13,j=0|o[9],U=8191&j,L=j>>>13,Z=0|s[0],F=8191&Z,H=Z>>>13,z=0|s[1],q=8191&z,Q=z>>>13,K=0|s[2],V=8191&K,J=K>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],be=8191&pe,he=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,F))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,F)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,F),a=(a=Math.imul(b,H))+Math.imul(h,F)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,Q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,F),a=(a=Math.imul(m,H))+Math.imul(v,F)|0,i=Math.imul(v,H),r=r+Math.imul(b,q)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(h,q)|0,i=i+Math.imul(h,Q)|0;var ve=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(a=(a=a+Math.imul(d,J)|0)+Math.imul(l,V)|0))<<13)|0;u=((i=i+Math.imul(l,J)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,F),a=(a=Math.imul(A,H))+Math.imul(w,F)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,Q)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,Q)|0,r=r+Math.imul(b,V)|0,a=(a=a+Math.imul(b,J)|0)+Math.imul(h,V)|0,i=i+Math.imul(h,J)|0;var ge=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(a=(a=a+Math.imul(d,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,F),a=(a=Math.imul(_,H))+Math.imul(k,F)|0,i=Math.imul(k,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,Q)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,Q)|0,r=r+Math.imul(m,V)|0,a=(a=a+Math.imul(m,J)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,J)|0,r=r+Math.imul(b,W)|0,a=(a=a+Math.imul(b,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(I,F),a=(a=Math.imul(I,H))+Math.imul(E,F)|0,i=Math.imul(E,H),r=r+Math.imul(_,q)|0,a=(a=a+Math.imul(_,Q)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,Q)|0,r=r+Math.imul(A,V)|0,a=(a=a+Math.imul(A,J)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,J)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(b,$)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,F),a=(a=Math.imul(T,H))+Math.imul(O,F)|0,i=Math.imul(O,H),r=r+Math.imul(I,q)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,Q)|0,r=r+Math.imul(_,V)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(b,ne)|0,a=(a=a+Math.imul(b,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,F),a=(a=Math.imul(M,H))+Math.imul(B,F)|0,i=Math.imul(B,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,Q)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,Q)|0,r=r+Math.imul(I,V)|0,a=(a=a+Math.imul(I,J)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,J)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(b,ie)|0,a=(a=a+Math.imul(b,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(N,F),a=(a=Math.imul(N,H))+Math.imul(D,F)|0,i=Math.imul(D,H),r=r+Math.imul(M,q)|0,a=(a=a+Math.imul(M,Q)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,Q)|0,r=r+Math.imul(T,V)|0,a=(a=a+Math.imul(T,J)|0)+Math.imul(O,V)|0,i=i+Math.imul(O,J)|0,r=r+Math.imul(I,W)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(b,ce)|0,a=(a=a+Math.imul(b,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,F),a=(a=Math.imul(U,H))+Math.imul(L,F)|0,i=Math.imul(L,H),r=r+Math.imul(N,q)|0,a=(a=a+Math.imul(N,Q)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,Q)|0,r=r+Math.imul(M,V)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,J)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(I,$)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(b,de)|0,a=(a=a+Math.imul(b,le)|0)+Math.imul(h,de)|0,i=i+Math.imul(h,le)|0;var Se=(u+(r=r+Math.imul(d,be)|0)|0)+((8191&(a=(a=a+Math.imul(d,he)|0)+Math.imul(l,be)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,q),a=(a=Math.imul(U,Q))+Math.imul(L,q)|0,i=Math.imul(L,Q),r=r+Math.imul(N,V)|0,a=(a=a+Math.imul(N,J)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,J)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(I,ne)|0,a=(a=a+Math.imul(I,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Ie=(u+(r=r+Math.imul(b,be)|0)|0)+((8191&(a=(a=a+Math.imul(b,he)|0)+Math.imul(h,be)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,V),a=(a=Math.imul(U,J))+Math.imul(L,V)|0,i=Math.imul(L,J),r=r+Math.imul(N,W)|0,a=(a=a+Math.imul(N,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,be)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,be)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(N,$)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(I,ce)|0,a=(a=a+Math.imul(I,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,de)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,be)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,be)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(N,ne)|0,a=(a=a+Math.imul(N,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(I,de)|0,a=(a=a+Math.imul(I,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,be)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,be)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(N,ie)|0,a=(a=a+Math.imul(N,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(I,be)|0)|0)+((8191&(a=(a=a+Math.imul(I,he)|0)+Math.imul(E,be)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,de)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,de)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,be)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,be)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(N,de)|0,a=(a=a+Math.imul(N,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,be)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,be)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,de),a=(a=Math.imul(U,le))+Math.imul(L,de)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(N,be)|0)|0)+((8191&(a=(a=a+Math.imul(N,he)|0)+Math.imul(D,be)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Re=(u+(r=Math.imul(U,be))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,be)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Se,c[10]=Ie,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Re,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(b=p),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?b(this,e,t):r<63?p(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0==(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var b=0,h=1;0==(n.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(n.iushrn(b);b-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0==(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),b=o;0!==p.cmp(s);){for(var h=p,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4==++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},53863:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.importPublic=t.privateToPublic=t.privateToAddress=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.isPrecompiled=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isZeroAddress=t.isValidAddress=t.zeroAddress=void 0;var a=n(60285),i=n(16358),o=n(30913),s=n(3111),c=n(94178),u=n(83286);t.zeroAddress=function(){var e=c.zeros(20);return c.bufferToHex(e)},t.isValidAddress=function(e){return/^0x[0-9a-fA-F]{40}$/.test(e)},t.isZeroAddress=function(e){return t.zeroAddress()===c.addHexPrefix(e)},t.toChecksumAddress=function(e,t){e=i.stripHexPrefix(e).toLowerCase();for(var n=void 0!==t?t.toString()+"0x":"",r=u.keccak(n+e).toString("hex"),a="0x",o=0;o=8?a+=e[o].toUpperCase():a+=e[o];return a},t.isValidChecksumAddress=function(e,n){return t.isValidAddress(e)&&t.toChecksumAddress(e,n)===e},t.generateAddress=function(e,t){e=c.toBuffer(e);var n=new s(t);return n.isZero()?u.rlphash([e,null]).slice(-20):u.rlphash([e,r.from(n.toArray())]).slice(-20)},t.generateAddress2=function(e,t,n){var i=c.toBuffer(e),o=c.toBuffer(t),s=c.toBuffer(n);return a(20===i.length),a(32===o.length),u.keccak256(r.concat([r.from("ff","hex"),i,o,u.keccak256(s)])).slice(-20)},t.isPrecompiled=function(e){var t=c.unpad(e);return 1===t.length&&t[0]>=1&&t[0]<=8},t.isValidPrivate=function(e){return o.privateKeyVerify(e)},t.isValidPublic=function(e,t){return void 0===t&&(t=!1),64===e.length?o.publicKeyVerify(r.concat([r.from([4]),e])):!!t&&o.publicKeyVerify(e)},t.pubToAddress=function(e,t){return void 0===t&&(t=!1),e=c.toBuffer(e),t&&64!==e.length&&(e=o.publicKeyConvert(e,!1).slice(1)),a(64===e.length),u.keccak(e).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToAddress=function(e){return t.publicToAddress(t.privateToPublic(e))},t.privateToPublic=function(e){return e=c.toBuffer(e),o.publicKeyCreate(e,!1).slice(1)},t.importPublic=function(e){return 64!==(e=c.toBuffer(e)).length&&(e=o.publicKeyConvert(e,!1).slice(1)),e}},94178:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.baToJSON=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.stripZeros=t.unpad=t.setLengthRight=t.setLength=t.setLengthLeft=t.zeros=void 0;var a=n(16358),i=n(3111);t.zeros=function(e){return r.allocUnsafe(e).fill(0)},t.setLengthLeft=function(e,n,r){void 0===r&&(r=!1);var a=t.zeros(n);return e=t.toBuffer(e),r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},t.stripZeros=t.unpad,t.toBuffer=function(e){if(!r.isBuffer(e))if(Array.isArray(e))e=r.from(e);else if("string"==typeof e){if(!a.isHexString(e))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+e);e=r.from(a.padToEven(a.stripHexPrefix(e)),"hex")}else if("number"==typeof e)e=a.intToBuffer(e);else if(null==e)e=r.allocUnsafe(0);else if(i.isBN(e))e=e.toArrayLike(r);else{if(!e.toArray)throw new Error("invalid type");e=r.from(e.toArray())}return e},t.bufferToInt=function(e){return new i(t.toBuffer(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=t.toBuffer(e)).toString("hex")},t.fromSigned=function(e){return new i(e).fromTwos(256)},t.toUnsigned=function(e){return r.from(e.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||a.isHexPrefixed(e)?e:"0x"+e},t.baToJSON=function(e){if(r.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var n=[],a=0;a=i.length,"The field "+t.name+" must not have more "+t.length+" bytes")):t.allowZero&&0===i.length||!t.length||a(t.length===i.length,"The field "+t.name+" must have byte length of "+t.length),e.raw[n]=i}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:i,set:o}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:o,get:i})})),n)if("string"==typeof n&&(n=r.from(i.stripHexPrefix(n),"hex")),r.isBuffer(n)&&(n=o.decode(n)),Array.isArray(n)){if(n.length>e._fields.length)throw new Error("wrong number of fields in data");n.forEach((function(t,n){e[e._fields[n]]=s.toBuffer(t)}))}else{if("object"!=typeof n)throw new Error("invalid data");var c=Object.keys(n);t.forEach((function(t){-1!==c.indexOf(t.name)&&(e[t.name]=n[t.name]),-1!==c.indexOf(t.alias)&&(e[t.alias]=n[t.alias])}))}}},30913:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhUnsafe=t.ecdh=t.recover=t.verify=t.sign=t.signatureImportLax=t.signatureImport=t.signatureExport=t.signatureNormalize=t.publicKeyCombine=t.publicKeyTweakMul=t.publicKeyTweakAdd=t.publicKeyVerify=t.publicKeyConvert=t.publicKeyCreate=t.privateKeyTweakMul=t.privateKeyTweakAdd=t.privateKeyModInverse=t.privateKeyNegate=t.privateKeyImport=t.privateKeyExport=t.privateKeyVerify=void 0;var a=n(86939),i=n(86918),o=n(80997);t.privateKeyVerify=function(e){return 32===e.length&&a.privateKeyVerify(Uint8Array.from(e))},t.privateKeyExport=function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var n=i.privateKeyExport(e,t);return o.privateKeyExport(e,n,t)},t.privateKeyImport=function(e){if(null!==(e=o.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error("couldn't import from DER format")},t.privateKeyNegate=function(e){return r.from(a.privateKeyNegate(Uint8Array.from(e)))},t.privateKeyModInverse=function(e){if(32!==e.length)throw new Error("private key length is invalid");return r.from(i.privateKeyModInverse(Uint8Array.from(e)))},t.privateKeyTweakAdd=function(e,t){return r.from(a.privateKeyTweakAdd(Uint8Array.from(e),t))},t.privateKeyTweakMul=function(e,t){return r.from(a.privateKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t)))},t.publicKeyCreate=function(e,t){return r.from(a.publicKeyCreate(Uint8Array.from(e),t))},t.publicKeyConvert=function(e,t){return r.from(a.publicKeyConvert(Uint8Array.from(e),t))},t.publicKeyVerify=function(e){return(33===e.length||65===e.length)&&a.publicKeyVerify(Uint8Array.from(e))},t.publicKeyTweakAdd=function(e,t,n){return r.from(a.publicKeyTweakAdd(Uint8Array.from(e),Uint8Array.from(t),n))},t.publicKeyTweakMul=function(e,t,n){return r.from(a.publicKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t),n))},t.publicKeyCombine=function(e,t){var n=[];return e.forEach((function(e){n.push(Uint8Array.from(e))})),r.from(a.publicKeyCombine(n,t))},t.signatureNormalize=function(e){return r.from(a.signatureNormalize(Uint8Array.from(e)))},t.signatureExport=function(e){return r.from(a.signatureExport(Uint8Array.from(e)))},t.signatureImport=function(e){return r.from(a.signatureImport(Uint8Array.from(e)))},t.signatureImportLax=function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=o.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return i.signatureImport(t)},t.sign=function(e,t,n){if(null===n)throw new TypeError("options should be an Object");var i=void 0;if(n){if(i={},null===n.data)throw new TypeError("options.data should be a Buffer");if(n.data){if(32!=n.data.length)throw new RangeError("options.data length is invalid");i.data=new Uint8Array(n.data)}if(null===n.noncefn)throw new TypeError("options.noncefn should be a Function");n.noncefn&&(i.noncefn=function(e,t,a,i,o){var s=null!=a?r.from(a):null,c=null!=i?r.from(i):null,u=r.from("");return n.noncefn&&(u=n.noncefn(r.from(e),r.from(t),s,c,o)),new Uint8Array(u)})}var o=a.ecdsaSign(Uint8Array.from(e),Uint8Array.from(t),i);return{signature:r.from(o.signature),recovery:o.recid}},t.verify=function(e,t,n){return a.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),n)},t.recover=function(e,t,n,i){return r.from(a.ecdsaRecover(Uint8Array.from(t),n,Uint8Array.from(e),i))},t.ecdh=function(e,t){return r.from(a.ecdh(Uint8Array.from(e),Uint8Array.from(t),{}))},t.ecdhUnsafe=function(e,t,n){if(33!==e.length&&65!==e.length)throw new RangeError("public key length is invalid");if(32!==t.length)throw new RangeError("private key length is invalid");return r.from(i.ecdhUnsafe(Uint8Array.from(e),Uint8Array.from(t),n))}},80997:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var a=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),i=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(e,t,n){void 0===n&&(n=!0);var o=r.from(n?a:i);return e.copy(o,n?8:9),t.copy(o,n?181:214),o},t.privateKeyImport=function(e){var t=e.length,n=0;if(t2)return null;if(t<(n+=1)+r)return null;var a=e[n+r-1]|(r>1?e[n+r-2]<<8:0);return t<(n+=r)+a||t32||ta)return null;if(2!==e[i++])return null;var s=e[i++];if(128&s){if(i+(o=s-128)>a)return null;for(;o>0&&0===e[i];i+=1,o-=1);for(s=0;o>0;i+=1,o-=1)s=(s<<8)+e[i]}if(s>a-i)return null;var c=i;if(i+=s,2!==e[i++])return null;var u=e[i++];if(128&u){if(i+(o=u-128)>a)return null;for(;o>0&&0===e[i];i+=1,o-=1);for(u=0;o>0;i+=1,o-=1)u=(u<<8)+e[i]}if(u>a-i)return null;var f=i;for(i+=u;s>0&&0===e[c];s-=1,c+=1);if(s>32)return null;var d=e.slice(c,c+s);for(d.copy(t,32-d.length);u>0&&0===e[f];u-=1,f+=1);if(u>32)return null;var l=e.slice(f,f+u);return l.copy(n,32-l.length),{r:t,s:n}}},86918:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var a=n(3111),i=new(0,n(35730).ec)("secp256k1"),o=i.curve;t.privateKeyExport=function(e,t){void 0===t&&(t=!0);var n=new a(e);if(n.ucmp(o.n)>=0)throw new Error("couldn't export to DER format");var r=i.g.mul(n);return s(r.getX(),r.getY(),t)},t.privateKeyModInverse=function(e){var t=new a(e);if(t.ucmp(o.n)>=0||t.isZero())throw new Error("private key range is invalid");return t.invm(o.n).toArrayLike(r,"be",32)},t.signatureImport=function(e){var t=new a(e.r);t.ucmp(o.n)>=0&&(t=new a(0));var n=new a(e.s);return n.ucmp(o.n)>=0&&(n=new a(0)),r.concat([t.toArrayLike(r,"be",32),n.toArrayLike(r,"be",32)])},t.ecdhUnsafe=function(e,t,n){void 0===n&&(n=!0);var r=i.keyFromPublic(e),c=new a(t);if(c.ucmp(o.n)>=0||c.isZero())throw new Error("scalar was invalid (zero or overflow)");var u=r.pub.mul(c);return s(u.getX(),u.getY(),n)};var s=function(e,t,n){var a;return n?((a=r.alloc(33))[0]=t.isOdd()?3:2,e.toArrayLike(r,"be",32).copy(a,1)):((a=r.alloc(65))[0]=4,e.toArrayLike(r,"be",32).copy(a,1),t.toArrayLike(r,"be",32).copy(a,33)),a}},4577:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var a=n(30913),i=n(3111),o=n(94178),s=n(83286);function c(e,t){return t?e-(2*t+35):e-27}function u(e){return 0===e||1===e}t.ecsign=function(e,t,n){var r=a.sign(e,t),i=r.recovery;return{r:r.signature.slice(0,32),s:r.signature.slice(32,64),v:n?i+(2*n+35):i+27}},t.ecrecover=function(e,t,n,i,s){var f=r.concat([o.setLength(n,32),o.setLength(i,32)],64),d=c(t,s);if(!u(d))throw new Error("Invalid signature v value");var l=a.recover(e,f,d);return a.publicKeyConvert(l,!1).slice(1)},t.toRpcSig=function(e,t,n,a){if(!u(c(e,a)))throw new Error("Invalid signature v value");return o.bufferToHex(r.concat([o.setLengthLeft(t,32),o.setLengthLeft(n,32),o.toBuffer(e)]))},t.fromRpcSig=function(e){var t=o.toBuffer(e);if(65!==t.length)throw new Error("Invalid signature length");var n=t[64];return n<27&&(n+=27),{v:n,r:t.slice(0,32),s:t.slice(32,64)}},t.isValidSignature=function(e,t,n,r,a){void 0===r&&(r=!0);var o=new i("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new i("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==n.length)return!1;if(!u(c(e,a)))return!1;var f=new i(t),d=new i(n);return!(f.isZero()||f.gt(s)||d.isZero()||d.gt(s)||r&&1===d.cmp(o))},t.hashPersonalMessage=function(e){var t=r.from("Ethereum Signed Message:\n"+e.length.toString(),"utf-8");return s.keccak(r.concat([t,e]))}},70510:function(e,t,n){"use strict";var r=n(62332).Buffer,a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var o=i(n(60285)),s=n(18317),c=n(86939),u=n(43105),f=n(93e3),d=n(76511),l=n(76888),p=n(9741),b=n(70920),h=function(){function e(e,t,n,r){void 0===e&&(e=new s.BN(0)),void 0===t&&(t=new s.BN(0)),void 0===n&&(n=f.KECCAK256_RLP),void 0===r&&(r=f.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=n,this.codeHash=r,this._validate()}return e.fromAccountData=function(t){var n=t.nonce,r=t.balance,a=t.stateRoot,i=t.codeHash;return new e(n?new s.BN((0,d.toBuffer)(n)):void 0,r?new s.BN((0,d.toBuffer)(r)):void 0,a?(0,d.toBuffer)(a):void 0,i?(0,d.toBuffer)(i):void 0)},e.fromRlpSerializedAccount=function(e){var t=s.rlp.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var n=a(t,4),r=n[0],i=n[1],o=n[2],c=n[3];return new e(new s.BN(r),new s.BN(i),o,c)},e.prototype._validate=function(){if(this.nonce.lt(new s.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new s.BN(0)))throw new Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,b.bnToUnpaddedBuffer)(this.nonce),(0,b.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return s.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(f.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(f.KECCAK256_NULL)},e}();t.Account=h,t.isValidAddress=function(e){try{(0,p.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)},t.toChecksumAddress=function(e,t){(0,p.assertIsHexString)(e);var n=(0,u.stripHexPrefix)(e).toLowerCase(),r="";t&&(r=(0,b.toType)(t,b.TypeOutput.BN).toString()+"0x");for(var a=(0,l.keccakFromString)(r+n).toString("hex"),i="0x",o=0;o=8?i+=n[o].toUpperCase():i+=n[o];return i},t.isValidChecksumAddress=function(e,n){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,n)===e},t.generateAddress=function(e,t){(0,p.assertIsBuffer)(e),(0,p.assertIsBuffer)(t);var n=new s.BN(t);return n.isZero()?(0,l.rlphash)([e,null]).slice(-20):(0,l.rlphash)([e,r.from(n.toArray())]).slice(-20)},t.generateAddress2=function(e,t,n){return(0,p.assertIsBuffer)(e),(0,p.assertIsBuffer)(t),(0,p.assertIsBuffer)(n),(0,o.default)(20===e.length),(0,o.default)(32===t.length),(0,l.keccak256)(r.concat([r.from("ff","hex"),e,t,(0,l.keccak256)(n)])).slice(-20)},t.isValidPrivate=function(e){return(0,c.privateKeyVerify)(e)},t.isValidPublic=function(e,t){return void 0===t&&(t=!1),(0,p.assertIsBuffer)(e),64===e.length?(0,c.publicKeyVerify)(r.concat([r.from([4]),e])):!!t&&(0,c.publicKeyVerify)(e)},t.pubToAddress=function(e,t){return void 0===t&&(t=!1),(0,p.assertIsBuffer)(e),t&&64!==e.length&&(e=r.from((0,c.publicKeyConvert)(e,!1).slice(1))),(0,o.default)(64===e.length),(0,l.keccak)(e).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToPublic=function(e){return(0,p.assertIsBuffer)(e),r.from((0,c.publicKeyCreate)(e,!1)).slice(1)},t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))},t.importPublic=function(e){return(0,p.assertIsBuffer)(e),64!==e.length&&(e=r.from((0,c.publicKeyConvert)(e,!1).slice(1))),e},t.zeroAddress=function(){var e=(0,d.zeros)(20);return(0,d.bufferToHex)(e)},t.isZeroAddress=function(e){try{(0,p.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e}},67152:function(e,t,n){"use strict";var r=n(62332).Buffer,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Address=void 0;var i=a(n(60285)),o=n(18317),s=n(76511),c=n(70510),u=function(){function e(e){(0,i.default)(20===e.length,"Invalid address length"),this.buf=e}return e.zero=function(){return new e((0,s.zeros)(20))},e.fromString=function(t){return(0,i.default)((0,c.isValidAddress)(t),"Invalid address"),new e((0,s.toBuffer)(t))},e.fromPublicKey=function(t){return(0,i.default)(r.isBuffer(t),"Public key should be Buffer"),new e((0,c.pubToAddress)(t))},e.fromPrivateKey=function(t){return(0,i.default)(r.isBuffer(t),"Private key should be Buffer"),new e((0,c.privateToAddress)(t))},e.generate=function(t,n){return(0,i.default)(o.BN.isBN(n)),new e((0,c.generateAddress)(t.buf,n.toArrayLike(r)))},e.generate2=function(t,n,a){return(0,i.default)(r.isBuffer(n)),(0,i.default)(r.isBuffer(a)),new e((0,c.generateAddress2)(t.buf,n,a))},e.prototype.equals=function(e){return this.buf.equals(e.buf)},e.prototype.isZero=function(){return this.equals(e.zero())},e.prototype.isPrecompileOrSystemAddress=function(){var e=new o.BN(this.buf),t=new o.BN(0),n=new o.BN("ffff","hex");return e.gte(t)&&e.lte(n)},e.prototype.toString=function(){return"0x"+this.buf.toString("hex")},e.prototype.toBuffer=function(){return r.from(this.buf)},e}();t.Address=u},76511:function(e,t,n){"use strict";var r=n(62332).Buffer,a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var o=n(18317),s=n(43105),c=n(9741);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: ".concat(e));return"0x".concat(e.toString(16))},t.intToBuffer=function(e){var n=(0,t.intToHex)(e);return r.from((0,s.padToEven)(n.slice(2)),"hex")},t.zeros=function(e){return r.allocUnsafe(e).fill(0)};var u=function(e,n,r){var a=(0,t.zeros)(n);return r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,c.assertIsBuffer)(e),f(e)},t.unpadArray=function(e){return(0,c.assertIsArray)(e),f(e)},t.unpadHexString=function(e){return(0,c.assertIsHexString)(e),e=(0,s.stripHexPrefix)(e),f(e)},t.toBuffer=function(e){if(null==e)return r.allocUnsafe(0);if(r.isBuffer(e))return r.from(e);if(Array.isArray(e)||e instanceof Uint8Array)return r.from(e);if("string"==typeof e){if(!(0,s.isHexString)(e))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(e));return r.from((0,s.padToEven)((0,s.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,t.intToBuffer)(e);if(o.BN.isBN(e)){if(e.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(e));return e.toArrayLike(r)}if(e.toArray)return r.from(e.toArray());if(e.toBuffer)return r.from(e.toBuffer());throw new Error("invalid type")},t.bufferToInt=function(e){return new o.BN((0,t.toBuffer)(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")},t.fromSigned=function(e){return new o.BN(e).fromTwos(256)},t.toUnsigned=function(e){return r.from(e.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||(0,s.isHexPrefixed)(e)?e:"0x"+e},t.toUtf8=function(e){if((e=(0,s.stripHexPrefix)(e)).length%2!=0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return r.from(e.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")},t.baToJSON=function(e){if(r.isBuffer(e))return"0x".concat(e.toString("hex"));if(e instanceof Array){for(var n=[],a=0;a0&&0===u[0])throw new Error("".concat(c," cannot have leading zeroes, received: ").concat(u.toString("hex")))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},t.arrToBufArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):r.from(t)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):Uint8Array.from(null!=t?t:[])}},93e3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=t.MAX_UINT64=void 0;var r=n(62332),a=n(18317);t.MAX_UINT64=new a.BN("ffffffffffffffff",16),t.MAX_INTEGER=new a.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new a.BN("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=r.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=r.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=r.Buffer.from(t.KECCAK256_RLP_S,"hex")},18317:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rlp=t.BN=void 0;var s=o(n(7134));t.BN=s.default;var c=i(n(42973));t.rlp=c},76888:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var a=n(4297),i=n(94673),o=n(18317),s=n(76511),c=n(9741);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,c.assertIsBuffer)(e),t){case 224:return(0,a.keccak224)(e);case 256:return(0,a.keccak256)(e);case 384:return(0,a.keccak384)(e);case 512:return(0,a.keccak512)(e);default:throw new Error("Invald algorithm: keccak".concat(t))}},t.keccak256=function(e){return(0,t.keccak)(e)},t.keccakFromString=function(e,n){void 0===n&&(n=256),(0,c.assertIsString)(e);var a=r.from(e,"utf8");return(0,t.keccak)(a,n)},t.keccakFromHexString=function(e,n){return void 0===n&&(n=256),(0,c.assertIsHexString)(e),(0,t.keccak)((0,s.toBuffer)(e),n)},t.keccakFromArray=function(e,n){return void 0===n&&(n=256),(0,c.assertIsArray)(e),(0,t.keccak)((0,s.toBuffer)(e),n)};var u=function(e){return e=(0,s.toBuffer)(e),i("sha256").update(e).digest()};t.sha256=function(e){return(0,c.assertIsBuffer)(e),u(e)},t.sha256FromString=function(e){return(0,c.assertIsString)(e),u(e)},t.sha256FromArray=function(e){return(0,c.assertIsArray)(e),u(e)};var f=function(e,t){e=(0,s.toBuffer)(e);var n=i("rmd160").update(e).digest();return!0===t?(0,s.setLengthLeft)(n,32):n};t.ripemd160=function(e,t){return(0,c.assertIsBuffer)(e),f(e,t)},t.ripemd160FromString=function(e,t){return(0,c.assertIsString)(e),f(e,t)},t.ripemd160FromArray=function(e,t){return(0,c.assertIsArray)(e),f(e,t)},t.rlphash=function(e){return(0,t.keccak)(o.rlp.encode(e))}},9741:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var a=n(43105);t.assertIsHexString=function(e){if(!(0,a.isHexString)(e)){var t="This method only supports 0x-prefixed hex strings but input was: ".concat(e);throw new Error(t)}},t.assertIsBuffer=function(e){if(!r.isBuffer(e)){var t="This method only supports Buffer but input was: ".concat(e);throw new Error(t)}},t.assertIsArray=function(e){if(!Array.isArray(e)){var t="This method only supports number arrays but input was: ".concat(e);throw new Error(t)}},t.assertIsString=function(e){if("string"!=typeof e){var t="This method only supports strings but input was: ".concat(e);throw new Error(t)}}},63544:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,a(n(93e3),t),a(n(70510),t),a(n(67152),t),a(n(76888),t),a(n(86278),t),a(n(76511),t),a(n(68639),t),a(n(18317),t),a(n(70920),t);var i=n(43105);Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return i.isHexPrefixed}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return i.stripHexPrefix}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return i.padToEven}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return i.getBinarySize}}),Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return i.arrayContainsArray}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return i.toAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return i.fromUtf8}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return i.fromAscii}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return i.getKeys}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return i.isHexString}})},43105:function(e,t,n){"use strict";var r=n(62332).Buffer;function a(e){if("string"!=typeof e)throw new Error("[isHexPrefixed] input must be type 'string', received type ".concat(typeof e));return"0"===e[0]&&"x"===e[1]}function i(e){var t=e;if("string"!=typeof t)throw new Error("[padToEven] value must be type 'string', received ".concat(typeof t));return t.length%2&&(t="0".concat(t)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,t.isHexPrefixed=a,t.stripHexPrefix=function(e){if("string"!=typeof e)throw new Error("[stripHexPrefix] input must be type 'string', received ".concat(typeof e));return a(e)?e.slice(2):e},t.padToEven=i,t.getBinarySize=function(e){if("string"!=typeof e)throw new Error("[getBinarySize] method requires input type 'string', recieved ".concat(typeof e));return r.byteLength(e,"utf8")},t.arrayContainsArray=function(e,t,n){if(!0!==Array.isArray(e))throw new Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat(typeof e,"'"));if(!0!==Array.isArray(t))throw new Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat(typeof t,"'"));return t[n?"some":"every"]((function(t){return e.indexOf(t)>=0}))},t.toAscii=function(e){var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n=a.length,"The field ".concat(t.name," must not have more ").concat(t.length," bytes"))):t.allowZero&&0===a.length||!t.length||(0,i.default)(t.length===a.length,"The field ".concat(t.name," must have byte length of ").concat(t.length)),e.raw[n]=a}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:a,set:o}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:o,get:a})})),n)if("string"==typeof n&&(n=r.from((0,o.stripHexPrefix)(n),"hex")),r.isBuffer(n)&&(n=s.rlp.decode(n)),Array.isArray(n)){if(n.length>e._fields.length)throw new Error("wrong number of fields in data");n.forEach((function(t,n){e[e._fields[n]]=(0,c.toBuffer)(t)}))}else{if("object"!=typeof n)throw new Error("invalid data");var a=Object.keys(n);t.forEach((function(t){-1!==a.indexOf(t.name)&&(e[t.name]=n[t.name]),-1!==a.indexOf(t.alias)&&(e[t.alias]=n[t.alias])}))}}},86278:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toCompactSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var a=n(86939),i=n(18317),o=n(76511),s=n(76888),c=n(9741),u=n(70920);function f(e,t){var n=(0,u.toType)(e,u.TypeOutput.BN);if(n.eqn(0)||n.eqn(1))return(0,u.toType)(e,u.TypeOutput.BN);if(!t)return n.subn(27);var r=(0,u.toType)(t,u.TypeOutput.BN);return n.sub(r.muln(2).addn(35))}function d(e){var t=new i.BN(e);return t.eqn(0)||t.eqn(1)}t.ecsign=function(e,t,n){var i=(0,a.ecdsaSign)(e,t),o=i.signature,s=i.recid,c=r.from(o.slice(0,32)),f=r.from(o.slice(32,64));if(!n||"number"==typeof n){if(n&&!Number.isSafeInteger(n))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");return{r:c,s:f,v:n?s+(2*n+35):s+27}}return{r:c,s:f,v:(0,u.toType)(n,u.TypeOutput.BN).muln(2).addn(35).addn(s).toArrayLike(r)}},t.ecrecover=function(e,t,n,i,s){var c=r.concat([(0,o.setLengthLeft)(n,32),(0,o.setLengthLeft)(i,32)],64),u=f(t,s);if(!d(u))throw new Error("Invalid signature v value");var l=(0,a.ecdsaRecover)(c,u.toNumber(),e);return r.from((0,a.publicKeyConvert)(l,!1).slice(1))},t.toRpcSig=function(e,t,n,a){if(!d(f(e,a)))throw new Error("Invalid signature v value");return(0,o.bufferToHex)(r.concat([(0,o.setLengthLeft)(t,32),(0,o.setLengthLeft)(n,32),(0,o.toBuffer)(e)]))},t.toCompactSig=function(e,t,n,a){if(!d(f(e,a)))throw new Error("Invalid signature v value");var i=(0,u.toType)(e,u.TypeOutput.Number),s=n;return(i>28&&i%2==1||1===i||28===i)&&((s=r.from(n))[0]|=128),(0,o.bufferToHex)(r.concat([(0,o.setLengthLeft)(t,32),(0,o.setLengthLeft)(s,32)]))},t.fromRpcSig=function(e){var t,n,r,a=(0,o.toBuffer)(e);if(a.length>=65)t=a.slice(0,32),n=a.slice(32,64),r=(0,o.bufferToInt)(a.slice(64));else{if(64!==a.length)throw new Error("Invalid signature length");t=a.slice(0,32),n=a.slice(32,64),r=(0,o.bufferToInt)(a.slice(32,33))>>7,n[0]&=127}return r<27&&(r+=27),{v:r,r:t,s:n}},t.isValidSignature=function(e,t,n,r,a){void 0===r&&(r=!0);var o=new i.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new i.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==n.length)return!1;if(!d(f(e,a)))return!1;var c=new i.BN(t),u=new i.BN(n);return!(c.isZero()||c.gt(s)||u.isZero()||u.gt(s)||r&&1===u.cmp(o))},t.hashPersonalMessage=function(e){(0,c.assertIsBuffer)(e);var t=r.from("Ethereum Signed Message:\n".concat(e.length),"utf-8");return(0,s.keccak)(r.concat([t,e]))}},70920:function(e,t,n){"use strict";var r=n(62332).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var a,i=n(18317),o=n(43105),s=n(76511);function c(e){return(0,s.unpadBuffer)(e.toArrayLike(r))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=c,t.bnToRlp=function(e){return c(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(a=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"==typeof e&&!(0,o.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e));if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var n=(0,s.toBuffer)(e);if(t===a.Buffer)return n;if(t===a.BN)return new i.BN(n);if(t===a.Number){var r=new i.BN(n),c=new i.BN(Number.MAX_SAFE_INTEGER.toString());if(r.gt(c))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return r.toNumber()}return"0x".concat(n.toString("hex"))}}},71283:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseContract:function(){return s.VZ},BigNumber:function(){return c.O$},Contract:function(){return s.CH},ContractFactory:function(){return s.lV},FixedNumber:function(){return u.xs},Signer:function(){return f.E},VoidSigner:function(){return f.b},Wallet:function(){return d.Wallet},Wordlist:function(){return Qt.D},constants:function(){return r},errors:function(){return m.ErrorCode},ethers:function(){return o},getDefaultProvider:function(){return zt},logger:function(){return ln},providers:function(){return a},utils:function(){return i},version:function(){return dn},wordlists:function(){return qt.E}});var r={};n.r(r),n.d(r,{AddressZero:function(){return l},EtherSymbol:function(){return h},HashZero:function(){return b.R},MaxInt256:function(){return p.PS},MaxUint256:function(){return p.Bz},MinInt256:function(){return p.$B},NegativeOne:function(){return p.tL},One:function(){return p.fh},Two:function(){return p.Py},WeiPerEther:function(){return p.Ce},Zero:function(){return p._Y}});var a={};n.r(a),n.d(a,{AlchemyProvider:function(){return We},AlchemyWebSocketProvider:function(){return Ge},AnkrProvider:function(){return et},BaseProvider:function(){return Ae},CloudflareProvider:function(){return nt},EtherscanProvider:function(){return ft},FallbackProvider:function(){return It},Formatter:function(){return K},InfuraProvider:function(){return Pt},InfuraWebSocketProvider:function(){return Ot},IpcProvider:function(){return Et},JsonRpcBatchProvider:function(){return Mt},JsonRpcProvider:function(){return je},JsonRpcSigner:function(){return Re},NodesmithProvider:function(){return Rt},PocketProvider:function(){return jt},Provider:function(){return y.zt},Resolver:function(){return me},StaticJsonRpcProvider:function(){return Qe},UrlJsonRpcProvider:function(){return Ke},Web3Provider:function(){return Ft},WebSocketProvider:function(){return ze},getDefaultProvider:function(){return zt},getNetwork:function(){return S},isCommunityResourcable:function(){return V},isCommunityResource:function(){return J},showThrottleMessage:function(){return W}});var i={};n.r(i),n.d(i,{AbiCoder:function(){return Kt.R},ConstructorFragment:function(){return Vt.Xg},ErrorFragment:function(){return Vt.IC},EventFragment:function(){return Vt.QV},FormatTypes:function(){return Vt.pc},Fragment:function(){return Vt.HY},FunctionFragment:function(){return Vt.YW},HDNode:function(){return $t.HDNode},Indexed:function(){return Gt.Hk},Interface:function(){return Gt.vU},LogDescription:function(){return Gt.CC},Logger:function(){return m.Logger},ParamType:function(){return Vt._R},RLP:function(){return an},SigningKey:function(){return on.SigningKey},SupportedAlgorithm:function(){return fn.p},TransactionDescription:function(){return Gt.vk},TransactionTypes:function(){return q.TransactionTypes},UnicodeNormalizationForm:function(){return U.Uj},Utf8ErrorFuncs:function(){return U.te},Utf8ErrorReason:function(){return U.Uw},_TypedDataEncoder:function(){return ke.E},_fetchData:function(){return L._fetchData},_toEscapedUtf8String:function(){return U.U$},accessListify:function(){return q.accessListify},arrayify:function(){return R.arrayify},base58:function(){return B.Base58},base64:function(){return Wt},checkProperties:function(){return D.checkProperties},checkResultErrors:function(){return Jt.BR},commify:function(){return un.commify},computeAddress:function(){return q.computeAddress},computeHmac:function(){return j.Gy},computePublicKey:function(){return on.computePublicKey},concat:function(){return R.concat},deepCopy:function(){return D.deepCopy},defaultAbiCoder:function(){return Kt.$},defaultPath:function(){return $t.defaultPath},defineReadOnly:function(){return D.defineReadOnly},dnsEncode:function(){return N.Kn},entropyToMnemonic:function(){return $t.entropyToMnemonic},fetchJson:function(){return L.fetchJson},formatBytes32String:function(){return cn.s},formatEther:function(){return un.formatEther},formatUnits:function(){return un.formatUnits},getAccountPath:function(){return $t.getAccountPath},getAddress:function(){return z.getAddress},getContractAddress:function(){return z.getContractAddress},getCreate2Address:function(){return z.getCreate2Address},getIcapAddress:function(){return z.getIcapAddress},getJsonWalletAddress:function(){return en.Rb},getStatic:function(){return D.getStatic},hashMessage:function(){return Yt.r},hexConcat:function(){return R.hexConcat},hexDataLength:function(){return R.hexDataLength},hexDataSlice:function(){return R.hexDataSlice},hexStripZeros:function(){return R.hexStripZeros},hexValue:function(){return R.hexValue},hexZeroPad:function(){return R.hexZeroPad},hexlify:function(){return R.hexlify},id:function(){return Xt.id},isAddress:function(){return z.isAddress},isBytes:function(){return R.isBytes},isBytesLike:function(){return R.isBytesLike},isHexString:function(){return R.isHexString},isValidMnemonic:function(){return $t.isValidMnemonic},isValidName:function(){return N.r1},joinSignature:function(){return R.joinSignature},keccak256:function(){return tn.keccak256},mnemonicToEntropy:function(){return $t.mnemonicToEntropy},mnemonicToSeed:function(){return $t.mnemonicToSeed},namehash:function(){return N.VM},nameprep:function(){return sn.Ll},parseBytes32String:function(){return cn.F},parseEther:function(){return un.parseEther},parseTransaction:function(){return q.parse},parseUnits:function(){return un.parseUnits},poll:function(){return L.poll},randomBytes:function(){return rn.O},recoverAddress:function(){return q.recoverAddress},recoverPublicKey:function(){return on.recoverPublicKey},resolveProperties:function(){return D.resolveProperties},ripemd160:function(){return j.bP},serializeTransaction:function(){return q.serialize},sha256:function(){return j.JQ},sha512:function(){return j.o},shallowCopy:function(){return D.shallowCopy},shuffled:function(){return dt.y},solidityKeccak256:function(){return nn.keccak256},solidityPack:function(){return nn.pack},soliditySha256:function(){return nn.sha256},splitSignature:function(){return R.splitSignature},stripZeros:function(){return R.stripZeros},toUtf8Bytes:function(){return U.Y0},toUtf8CodePoints:function(){return U.XL},toUtf8String:function(){return U.ZN},verifyMessage:function(){return d.verifyMessage},verifyTypedData:function(){return d.verifyTypedData},zeroPad:function(){return R.zeroPad}});var o={};n.r(o),n.d(o,{BaseContract:function(){return s.VZ},BigNumber:function(){return c.O$},Contract:function(){return s.CH},ContractFactory:function(){return s.lV},FixedNumber:function(){return u.xs},Signer:function(){return f.E},VoidSigner:function(){return f.b},Wallet:function(){return d.Wallet},Wordlist:function(){return Qt.D},constants:function(){return r},errors:function(){return m.ErrorCode},getDefaultProvider:function(){return zt},logger:function(){return ln},providers:function(){return a},utils:function(){return i},version:function(){return dn},wordlists:function(){return qt.E}});var s=n(25859),c=n(63978),u=n(91757),f=n(28110),d=n(64839),l="0x0000000000000000000000000000000000000000",p=n(79248),b=n(19709),h="Ξ",y=n(4951),m=n(17163),v=new m.Logger("networks/5.7.1");function g(e){var t=function(t,n){null==n&&(n={});var r=[];if(t.InfuraProvider&&"-"!==n.infura)try{r.push(new t.InfuraProvider(e,n.infura))}catch(e){}if(t.EtherscanProvider&&"-"!==n.etherscan)try{r.push(new t.EtherscanProvider(e,n.etherscan))}catch(e){}if(t.AlchemyProvider&&"-"!==n.alchemy)try{r.push(new t.AlchemyProvider(e,n.alchemy))}catch(e){}if(t.PocketProvider&&"-"!==n.pocket)try{var a=new t.PocketProvider(e,n.pocket);a.network&&-1===["goerli","ropsten","rinkeby","sepolia"].indexOf(a.network.name)&&r.push(a)}catch(e){}if(t.CloudflareProvider&&"-"!==n.cloudflare)try{r.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&"-"!==n.ankr)try{var i=new t.AnkrProvider(e,n.ankr);i.network&&-1===["ropsten"].indexOf(i.network.name)&&r.push(i)}catch(e){}if(0===r.length)return null;if(t.FallbackProvider){var o=1;return null!=n.quorum?o=n.quorum:"homestead"===e&&(o=2),new t.FallbackProvider(r,o)}return r[0]};return t.renetwork=function(e){return g(e)},t}function A(e,t){var n=function(n,r){return n.JsonRpcProvider?new n.JsonRpcProvider(e,t):null};return n.renetwork=function(t){return A(e,t)},n}var w={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:g("homestead")},x={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:g("ropsten")},_={chainId:63,name:"classicMordor",_defaultProvider:A("https://www.ethercluster.com/mordor","classicMordor")},k={unspecified:{chainId:0,name:"unspecified"},homestead:w,mainnet:w,morden:{chainId:2,name:"morden"},ropsten:x,testnet:x,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:g("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:g("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:g("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:g("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:A("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:_,classicTestnet:_,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:A("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:g("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:g("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function S(e){if(null==e)return null;if("number"==typeof e){for(var t in k){var n=k[t];if(n.chainId===e)return{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress||null,_defaultProvider:n._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){var r=k[e];return null==r?null:{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress,_defaultProvider:r._defaultProvider||null}}var a=k[e.name];if(!a)return"number"!=typeof e.chainId&&v.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==a.chainId&&v.throwArgumentError("network chainId mismatch","network",e);var i,o=e._defaultProvider||null;return null==o&&a._defaultProvider&&(o=(i=a._defaultProvider)&&"function"==typeof i.renetwork?a._defaultProvider.renetwork(e):a._defaultProvider),{name:e.name,chainId:a.chainId,ensAddress:e.ensAddress||a.ensAddress||null,_defaultProvider:o}}var I=n(14771),E=n(24269),C=n(38114),T=n(24611),O=n(47061),P=n(59900),M=n(45127),B=n(93681),R=n(25289),N=n(48248),D=n(36584),j=n(40552),U=n(18145),L=n(46344),Z=n(1214),F=n.n(Z),H="providers/5.7.2",z=n(73772),q=n(99849),Q=new m.Logger(H),K=function(){function e(){(0,O.Z)(this,e),this.formats=this.getDefaultFormats()}return(0,P.Z)(e,[{key:"getDefaultFormats",value:function(){var t=this,n={},r=this.address.bind(this),a=this.bigNumber.bind(this),i=this.blockTag.bind(this),o=this.data.bind(this),s=this.hash.bind(this),c=this.hex.bind(this),u=this.number.bind(this),f=this.type.bind(this);return n.transaction={hash:s,type:f,accessList:e.allowNull(this.accessList.bind(this),null),blockHash:e.allowNull(s,null),blockNumber:e.allowNull(u,null),transactionIndex:e.allowNull(u,null),confirmations:e.allowNull(u,null),from:r,gasPrice:e.allowNull(a),maxPriorityFeePerGas:e.allowNull(a),maxFeePerGas:e.allowNull(a),gasLimit:a,to:e.allowNull(r,null),value:a,nonce:u,data:o,r:e.allowNull(this.uint256),s:e.allowNull(this.uint256),v:e.allowNull(u),creates:e.allowNull(r,null),raw:e.allowNull(o)},n.transactionRequest={from:e.allowNull(r),nonce:e.allowNull(u),gasLimit:e.allowNull(a),gasPrice:e.allowNull(a),maxPriorityFeePerGas:e.allowNull(a),maxFeePerGas:e.allowNull(a),to:e.allowNull(r),value:e.allowNull(a),data:e.allowNull((function(e){return t.data(e,!0)})),type:e.allowNull(u),accessList:e.allowNull(this.accessList.bind(this),null)},n.receiptLog={transactionIndex:u,blockNumber:u,transactionHash:s,address:r,topics:e.arrayOf(s),data:o,logIndex:u,blockHash:s},n.receipt={to:e.allowNull(this.address,null),from:e.allowNull(this.address,null),contractAddress:e.allowNull(r,null),transactionIndex:u,root:e.allowNull(c),gasUsed:a,logsBloom:e.allowNull(o),blockHash:s,transactionHash:s,logs:e.arrayOf(this.receiptLog.bind(this)),blockNumber:u,confirmations:e.allowNull(u,null),cumulativeGasUsed:a,effectiveGasPrice:e.allowNull(a),status:e.allowNull(u),type:f},n.block={hash:e.allowNull(s),parentHash:s,number:u,timestamp:u,nonce:e.allowNull(c),difficulty:this.difficulty.bind(this),gasLimit:a,gasUsed:a,miner:e.allowNull(r),extraData:o,transactions:e.allowNull(e.arrayOf(s)),baseFeePerGas:e.allowNull(a)},n.blockWithTransactions=(0,D.shallowCopy)(n.block),n.blockWithTransactions.transactions=e.allowNull(e.arrayOf(this.transactionResponse.bind(this))),n.filter={fromBlock:e.allowNull(i,void 0),toBlock:e.allowNull(i,void 0),blockHash:e.allowNull(s,void 0),address:e.allowNull(r,void 0),topics:e.allowNull(this.topics.bind(this),void 0)},n.filterLog={blockNumber:e.allowNull(u),blockHash:e.allowNull(s),transactionIndex:u,removed:e.allowNull(this.boolean.bind(this)),address:r,data:e.allowFalsish(o,"0x"),topics:e.arrayOf(s),transactionHash:s,logIndex:u},n}},{key:"accessList",value:function(e){return(0,q.accessListify)(e||[])}},{key:"number",value:function(e){return"0x"===e?0:c.O$.from(e).toNumber()}},{key:"type",value:function(e){return"0x"===e||null==e?0:c.O$.from(e).toNumber()}},{key:"bigNumber",value:function(e){return c.O$.from(e)}},{key:"boolean",value:function(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}},{key:"hex",value:function(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,R.isHexString)(e))?e.toLowerCase():Q.throwArgumentError("invalid hash","value",e)}},{key:"data",value:function(e,t){var n=this.hex(e,t);if(n.length%2!=0)throw new Error("invalid data; odd-length - "+e);return n}},{key:"address",value:function(e){return(0,z.getAddress)(e)}},{key:"callAddress",value:function(e){if(!(0,R.isHexString)(e,32))return null;var t=(0,z.getAddress)((0,R.hexDataSlice)(e,12));return t===l?null:t}},{key:"contractAddress",value:function(e){return(0,z.getContractAddress)(e)}},{key:"blockTag",value:function(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||(0,R.isHexString)(e))return(0,R.hexValue)(e);throw new Error("invalid blockTag")}},{key:"hash",value:function(e,t){var n=this.hex(e,t);return 32!==(0,R.hexDataLength)(n)?Q.throwArgumentError("invalid hash","value",e):n}},{key:"difficulty",value:function(e){if(null==e)return null;var t=c.O$.from(e);try{return t.toNumber()}catch(e){}return null}},{key:"uint256",value:function(e){if(!(0,R.isHexString)(e))throw new Error("invalid uint256");return(0,R.hexZeroPad)(e,32)}},{key:"_block",value:function(t,n){null!=t.author&&null==t.miner&&(t.miner=t.author);var r=null!=t._difficulty?t._difficulty:t.difficulty,a=e.check(n,t);return a._difficulty=null==r?null:c.O$.from(r),a}},{key:"block",value:function(e){return this._block(e,this.formats.block)}},{key:"blockWithTransactions",value:function(e){return this._block(e,this.formats.blockWithTransactions)}},{key:"transactionRequest",value:function(t){return e.check(this.formats.transactionRequest,t)}},{key:"transactionResponse",value:function(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&c.O$.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),1!==t.type&&2!==t.type||null!=t.accessList||(t.accessList=[]);var n=e.check(this.formats.transaction,t);if(null!=t.chainId){var r=t.chainId;(0,R.isHexString)(r)&&(r=c.O$.from(r).toNumber()),n.chainId=r}else{var a=t.networkId;null==a&&null==n.v&&(a=t.chainId),(0,R.isHexString)(a)&&(a=c.O$.from(a).toNumber()),"number"!=typeof a&&null!=n.v&&((a=(n.v-35)/2)<0&&(a=0),a=parseInt(a)),"number"!=typeof a&&(a=0),n.chainId=a}return n.blockHash&&"x"===n.blockHash.replace(/0/g,"")&&(n.blockHash=null),n}},{key:"transaction",value:function(e){return(0,q.parse)(e)}},{key:"receiptLog",value:function(t){return e.check(this.formats.receiptLog,t)}},{key:"receipt",value:function(t){var n=e.check(this.formats.receipt,t);if(null!=n.root)if(n.root.length<=4){var r=c.O$.from(n.root).toNumber();0===r||1===r?(null!=n.status&&n.status!==r&&Q.throwArgumentError("alt-root-status/status mismatch","value",{root:n.root,status:n.status}),n.status=r,delete n.root):Q.throwArgumentError("invalid alt-root-status","value.root",n.root)}else 66!==n.root.length&&Q.throwArgumentError("invalid root hash","value.root",n.root);return null!=n.status&&(n.byzantium=!0),n}},{key:"topics",value:function(e){var t=this;return Array.isArray(e)?e.map((function(e){return t.topics(e)})):null!=e?this.hash(e,!0):null}},{key:"filter",value:function(t){return e.check(this.formats.filter,t)}},{key:"filterLog",value:function(t){return e.check(this.formats.filterLog,t)}}],[{key:"check",value:function(e,t){var n={};for(var r in e)try{var a=e[r](t[r]);void 0!==a&&(n[r]=a)}catch(e){throw e.checkKey=r,e.checkValue=t[r],e}return n}},{key:"allowNull",value:function(e,t){return function(n){return null==n?t:e(n)}}},{key:"allowFalsish",value:function(e,t){return function(n){return n?e(n):t}}},{key:"arrayOf",value:function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var n=[];return t.forEach((function(t){n.push(e(t))})),n}}}]),e}();function V(e){return e&&"function"==typeof e.isCommunityResource}function J(e){return V(e)&&e.isCommunityResource()}var G=!1;function W(){G||(G=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var Y=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},X=new m.Logger(H);function $(e){return null==e?"null":(32!==(0,R.hexDataLength)(e)&&X.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function ee(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((function(e){if(Array.isArray(e)){var t={};e.forEach((function(e){t[$(e)]=!0}));var n=Object.keys(t);return n.sort(),n.join("|")}return $(e)})).join("&")}function te(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,R.hexDataLength)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+ee(e);if(y.Sg.isForkEvent(e))throw X.warn("not implemented"),new Error("not implemented");if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+ee(e.topics||[])}throw new Error("invalid event - "+e)}function ne(){return(new Date).getTime()}function re(e){return new Promise((function(t){setTimeout(t,e)}))}var ae=["block","network","pending","poll"],ie=function(){function e(t,n,r){(0,O.Z)(this,e),(0,D.defineReadOnly)(this,"tag",t),(0,D.defineReadOnly)(this,"listener",n),(0,D.defineReadOnly)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}return(0,P.Z)(e,[{key:"event",get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}},{key:"type",get:function(){return this.tag.split(":")[0]}},{key:"hash",get:function(){var e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}},{key:"filter",get:function(){var e=this.tag.split(":");if("filter"!==e[0])return null;var t,n=e[1],r=""===(t=e[2])?[]:t.split(/&/g).map((function(e){if(""===e)return[];var t=e.split("|").map((function(e){return"null"===e?null:e}));return 1===t.length?t[0]:t})),a={};return r.length>0&&(a.topics=r),n&&"*"!==n&&(a.address=n),a}},{key:"pollable",value:function(){return this.tag.indexOf(":")>=0||ae.indexOf(this.tag)>=0}}]),e}(),oe={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function se(e){return(0,R.hexZeroPad)(c.O$.from(e).toHexString(),32)}function ce(e){return B.Base58.encode((0,R.concat)([e,(0,R.hexDataSlice)((0,j.JQ)((0,j.JQ)(e)),0,4)]))}var ue=new RegExp("^(ipfs)://(.*)$","i"),fe=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),ue,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function de(e,t){try{return(0,U.ZN)(le(e,t))}catch(e){}return null}function le(e,t){if("0x"===e)return null;var n=c.O$.from((0,R.hexDataSlice)(e,t,t+32)).toNumber(),r=c.O$.from((0,R.hexDataSlice)(e,n,n+32)).toNumber();return(0,R.hexDataSlice)(e,n+32,n+32+r)}function pe(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):X.throwArgumentError("unsupported IPFS format","link",e),"https://gateway.ipfs.io/ipfs/".concat(e)}function be(e){var t=(0,R.arrayify)(e);if(t.length>32)throw new Error("internal; should not happen");var n=new Uint8Array(32);return n.set(t,32-t.length),n}function he(e){if(e.length%32==0)return e;var t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function ye(e){for(var t=[],n=0,r=0;r=1&&i<=75)return ce((0,R.concat)([[n.p2pkh],"0x"+a[2]]))}}if(null!=n.p2sh){var o=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(o){var s=parseInt(o[1],16);if(o[2].length===2*s&&s>=1&&s<=75)return ce((0,R.concat)([[n.p2sh],"0x"+o[2]]))}}if(null!=n.prefix){var c=r[1],u=r[0];if(0===u?20!==c&&32!==c&&(u=-1):u=-1,u>=0&&r.length===2+c&&c>=1&&c<=75){var f=F().toWords(r.slice(2));return f.unshift(u),F().encode(n.prefix,f)}}return null}},{key:"getAddress",value:function(e){return Y(this,void 0,void 0,(0,T.Z)().mark((function t(){var n,r,a;return(0,T.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==e&&(e=60),60!==e){t.next=16;break}return t.prev=2,t.next=5,this._fetch("0x3b3b57de");case 5:if("0x"!==(n=t.sent)&&n!==b.R){t.next=8;break}return t.abrupt("return",null);case 8:return t.abrupt("return",this.provider.formatter.callAddress(n));case 11:if(t.prev=11,t.t0=t.catch(2),t.t0.code!==m.Logger.errors.CALL_EXCEPTION){t.next=15;break}return t.abrupt("return",null);case 15:throw t.t0;case 16:return t.next=18,this._fetchBytes("0xf1cb7e06",se(e));case 18:if(null!=(r=t.sent)&&"0x"!==r){t.next=21;break}return t.abrupt("return",null);case 21:return null==(a=this._getAddress(e,r))&&X.throwError("invalid or unsupported coin data",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")"),coinType:e,data:r}),t.abrupt("return",a);case 24:case"end":return t.stop()}}),t,this,[[2,11]])})))}},{key:"getAvatar",value:function(){return Y(this,void 0,void 0,(0,T.Z)().mark((function e(){var t,n,r,a,i,o,s,u,f,d,l,p,b,h,y,m;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[{type:"name",content:this.name}],e.prev=1,e.next=4,this.getText("avatar");case 4:if(null!=(n=e.sent)){e.next=7;break}return e.abrupt("return",null);case 7:r=0;case 8:if(!(r=0?null:JSON.stringify({data:i,sender:a}),r.next=12,(0,L.fetchJson)({url:u,errorPassThrough:!0},f,(function(e,t){return e.status=t.statusCode,e}));case 12:if(!(d=r.sent).data){r.next=15;break}return r.abrupt("return",d.data);case 15:if(l=d.message||"unknown error",!(d.status>=400&&d.status<500)){r.next=18;break}return r.abrupt("return",X.throwError("response not found during CCIP fetch: ".concat(l),m.Logger.errors.SERVER_ERROR,{url:c,errorMessage:l}));case 18:o.push(l);case 19:s++,r.next=6;break;case 22:return r.abrupt("return",X.throwError("error encountered during CCIP fetch: ".concat(o.map((function(e){return JSON.stringify(e)})).join(", ")),m.Logger.errors.SERVER_ERROR,{urls:n,errorMessages:o}));case 23:case"end":return r.stop()}}),r,this)})))}},{key:"_getInternalBlockNumber",value:function(e){return Y(this,void 0,void 0,(0,T.Z)().mark((function t(){var n,r,a,i,o=this;return(0,T.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready();case 2:if(!(e>0)){t.next=20;break}case 3:if(!this._internalBlockNumber){t.next=20;break}return n=this._internalBlockNumber,t.prev=5,t.next=8,n;case 8:if(r=t.sent,!(ne()-r.respTime<=e)){t.next=11;break}return t.abrupt("return",r.blockNumber);case 11:return t.abrupt("break",20);case 14:if(t.prev=14,t.t0=t.catch(5),this._internalBlockNumber!==n){t.next=18;break}return t.abrupt("break",20);case 18:t.next=3;break;case 20:return a=ne(),i=(0,D.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(e){return null}),(function(e){return e}))}).then((function(e){var t=e.blockNumber,n=e.networkError;if(n)throw o._internalBlockNumber===i&&(o._internalBlockNumber=null),n;var r=ne();return(t=c.O$.from(t).toNumber())1e3)X.warn("network block skew detected; skipping block events (emitted=".concat(this._emitted.block," blockNumber").concat(r,")")),this.emit("error",X.makeError("network block skew detected",m.Logger.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(a=this._emitted.block+1;a<=r;a++)this.emit("block",a);return this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((function(e){if("block"!==e){var t=i._emitted[e];"pending"!==t&&r-t>12&&delete i._emitted[e]}}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((function(e){switch(e.type){case"tx":var t=e.hash,a=i.getTransactionReceipt(t).then((function(e){return e&&null!=e.blockNumber?(i._emitted["t:"+t]=e.blockNumber,i.emit(t,e),null):null})).catch((function(e){i.emit("error",e)}));n.push(a);break;case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);var o=e.filter;o.fromBlock=e._lastBlockNumber+1,o.toBlock=r;var s=o.toBlock-i._maxFilterBlockRange;s>o.fromBlock&&(o.fromBlock=s),o.fromBlock<0&&(o.fromBlock=0);var c=i.getLogs(o).then((function(t){e._inflight=!1,0!==t.length&&t.forEach((function(t){t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),i._emitted["b:"+t.blockHash]=t.blockNumber,i._emitted["t:"+t.transactionHash]=t.blockNumber,i.emit(o,t)}))})).catch((function(t){i.emit("error",t),e._inflight=!1}));n.push(c)}}})),this._lastBlockNumber=r,Promise.all(n).then((function(){i.emit("didPoll",t)})).catch((function(e){i.emit("error",e)})),e.abrupt("return");case 26:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"resetEventsBlock",value:function(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}},{key:"network",get:function(){return this._network}},{key:"detectNetwork",value:function(){return Y(this,void 0,void 0,(0,T.Z)().mark((function e(){return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",X.throwError("provider does not support network detection",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"}));case 1:case"end":return e.stop()}}),e)})))}},{key:"getNetwork",value:function(){return Y(this,void 0,void 0,(0,T.Z)().mark((function e(){var t,n,r;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready();case 2:return t=e.sent,e.next=5,this.detectNetwork();case 5:if(n=e.sent,t.chainId===n.chainId){e.next=23;break}if(!this.anyNetwork){e.next=20;break}return this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,t),e.next=19,re(0);case 19:return e.abrupt("return",this._network);case 20:throw r=X.makeError("underlying network changed",m.Logger.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:n}),this.emit("error",r),r;case 23:return e.abrupt("return",t);case 24:case"end":return e.stop()}}),e,this)})))}},{key:"blockNumber",get:function(){var e=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(t){e._setFastBlockNumber(t)}),(function(e){})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}},{key:"polling",get:function(){return null!=this._poller},set:function(e){var t=this;e&&!this._poller?(this._poller=setInterval((function(){t.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((function(){t.poll(),t._bootstrapPoll=setTimeout((function(){t._poller||t.poll(),t._bootstrapPoll=null}),t.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(e){var t=this;if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){t.poll()}),this._pollingInterval))}},{key:"_getFastBlockNumber",value:function(){var e=this,t=ne();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((function(t){return(null==e._fastBlockNumber||t>e._fastBlockNumber)&&(e._fastBlockNumber=t),e._fastBlockNumber}))),this._fastBlockNumberPromise}},{key:"_setFastBlockNumber",value:function(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}},{key:"waitForTransaction",value:function(e,t,n){return Y(this,void 0,void 0,(0,T.Z)().mark((function r(){return(0,T.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this._waitForTransaction(e,null==t?1:t,n||0,null));case 1:case"end":return r.stop()}}),r,this)})))}},{key:"_waitForTransaction",value:function(e,t,n,r){return Y(this,void 0,void 0,(0,T.Z)().mark((function a(){var i,o=this;return(0,T.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.getTransactionReceipt(e);case 2:if(!(((i=a.sent)?i.confirmations:0)>=t)){a.next=5;break}return a.abrupt("return",i);case 5:return a.abrupt("return",new Promise((function(a,i){var s=[],c=!1,u=function(){return!!c||(c=!0,s.forEach((function(e){e()})),!1)},f=function(e){e.confirmations0){var b=setTimeout((function(){u()||i(X.makeError("timeout exceeded",m.Logger.errors.TIMEOUT,{timeout:n}))}),n);b.unref&&b.unref(),s.push((function(){clearTimeout(b)}))}})));case 6:case"end":return a.stop()}}),a,this)})))}},{key:"getBlockNumber",value:function(){return Y(this,void 0,void 0,(0,T.Z)().mark((function e(){return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getInternalBlockNumber(0));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return Y(this,void 0,void 0,(0,T.Z)().mark((function e(){var t;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.next=4,this.perform("getGasPrice",{});case 4:return t=e.sent,e.prev=5,e.abrupt("return",c.O$.from(t));case 9:return e.prev=9,e.t0=e.catch(5),e.abrupt("return",X.throwError("bad result from backend",m.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e.t0}));case 12:case"end":return e.stop()}}),e,this,[[5,9]])})))}},{key:"getBalance",value:function(e,t){return Y(this,void 0,void 0,(0,T.Z)().mark((function n(){var r,a;return(0,T.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,(0,D.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getBalance",r);case 7:return a=n.sent,n.prev=8,n.abrupt("return",c.O$.from(a));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",X.throwError("bad result from backend",m.Logger.errors.SERVER_ERROR,{method:"getBalance",params:r,result:a,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getTransactionCount",value:function(e,t){return Y(this,void 0,void 0,(0,T.Z)().mark((function n(){var r,a;return(0,T.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,(0,D.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getTransactionCount",r);case 7:return a=n.sent,n.prev=8,n.abrupt("return",c.O$.from(a).toNumber());case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",X.throwError("bad result from backend",m.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:a,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getCode",value:function(e,t){return Y(this,void 0,void 0,(0,T.Z)().mark((function n(){var r,a;return(0,T.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,(0,D.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getCode",r);case 7:return a=n.sent,n.prev=8,n.abrupt("return",(0,R.hexlify)(a));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",X.throwError("bad result from backend",m.Logger.errors.SERVER_ERROR,{method:"getCode",params:r,result:a,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getStorageAt",value:function(e,t,n){return Y(this,void 0,void 0,(0,T.Z)().mark((function r(){var a,i;return(0,T.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,(0,D.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(t).then((function(e){return(0,R.hexValue)(e)}))});case 4:return a=r.sent,r.next=7,this.perform("getStorageAt",a);case 7:return i=r.sent,r.prev=8,r.abrupt("return",(0,R.hexlify)(i));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",X.throwError("bad result from backend",m.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:a,result:i,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"_wrapTransaction",value:function(e,t,n){var r=this;if(null!=t&&32!==(0,R.hexDataLength)(t))throw new Error("invalid response - sendTransaction");var a=e;return null!=t&&e.hash!==t&&X.throwError("Transaction hash mismatch from Provider.sendTransaction.",m.Logger.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),a.wait=function(t,a){return Y(r,void 0,void 0,(0,T.Z)().mark((function r(){var i,o;return(0,T.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==t&&(t=1),null==a&&(a=0),i=void 0,0!==t&&null!=n&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n}),r.next=6,this._waitForTransaction(e.hash,t,a,i);case 6:if(null!=(o=r.sent)||0!==t){r.next=9;break}return r.abrupt("return",null);case 9:return this._emitted["t:"+e.hash]=o.blockNumber,0===o.status&&X.throwError("transaction failed",m.Logger.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:o}),r.abrupt("return",o);case 12:case"end":return r.stop()}}),r,this)})))},a}},{key:"sendTransaction",value:function(e){return Y(this,void 0,void 0,(0,T.Z)().mark((function t(){var n,r,a,i;return(0,T.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,Promise.resolve(e).then((function(e){return(0,R.hexlify)(e)}));case 4:return n=t.sent,null==(r=this.formatter.transaction(e)).confirmations&&(r.confirmations=0),t.next=9,this._getInternalBlockNumber(100+2*this.pollingInterval);case 9:return a=t.sent,t.prev=10,t.next=13,this.perform("sendTransaction",{signedTransaction:n});case 13:return i=t.sent,t.abrupt("return",this._wrapTransaction(r,i,a));case 17:throw t.prev=17,t.t0=t.catch(10),t.t0.transaction=r,t.t0.transactionHash=r.hash,t.t0;case 22:case"end":return t.stop()}}),t,this,[[10,17]])})))}},{key:"_getTransactionRequest",value:function(e){return Y(this,void 0,void 0,(0,T.Z)().mark((function t(){var n,r,a=this;return(0,T.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return n=t.sent,r={},["from","to"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?a._getAddress(e):null})))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?c.O$.from(e):null})))})),["type"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return null!=e?e:null})))})),n.accessList&&(r.accessList=this.formatter.accessList(n.accessList)),["data"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?(0,R.hexlify)(e):null})))})),t.t0=this.formatter,t.next=12,(0,D.resolveProperties)(r);case 12:return t.t1=t.sent,t.abrupt("return",t.t0.transactionRequest.call(t.t0,t.t1));case 14:case"end":return t.stop()}}),t,this)})))}},{key:"_getFilter",value:function(e){return Y(this,void 0,void 0,(0,T.Z)().mark((function t(){var n,r=this;return(0,T.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,n={},null!=e.address&&(n.address=this._getAddress(e.address)),["blockHash","topics"].forEach((function(t){null!=e[t]&&(n[t]=e[t])})),["fromBlock","toBlock"].forEach((function(t){null!=e[t]&&(n[t]=r._getBlockTag(e[t]))})),t.t0=this.formatter,t.next=10,(0,D.resolveProperties)(n);case 10:return t.t1=t.sent,t.abrupt("return",t.t0.filter.call(t.t0,t.t1));case 12:case"end":return t.stop()}}),t,this)})))}},{key:"_call",value:function(e,t,n){return Y(this,void 0,void 0,(0,T.Z)().mark((function r(){var a,i,o,s,u,f,d,l,p,b,h,y,v,g,A;return(0,T.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n>=10&&X.throwError("CCIP read exceeded maximum redirections",m.Logger.errors.SERVER_ERROR,{redirects:n,transaction:e}),a=e.to,r.next=4,this.perform("call",{transaction:e,blockTag:t});case 4:if(i=r.sent,!(n>=0&&"latest"===t&&null!=a&&"0x556f1830"===i.substring(0,10)&&(0,R.hexDataLength)(i)%32==4)){r.next=31;break}for(r.prev=6,o=(0,R.hexDataSlice)(i,4),s=(0,R.hexDataSlice)(o,0,32),c.O$.from(s).eq(a)||X.throwError("CCIP Read sender did not match",m.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i}),u=[],f=c.O$.from((0,R.hexDataSlice)(o,32,64)).toNumber(),d=c.O$.from((0,R.hexDataSlice)(o,f,f+32)).toNumber(),l=(0,R.hexDataSlice)(o,f+32),p=0;pthis._emitted.block)){e.next=10;break}return e.abrupt("return",null);case 10:return e.abrupt("return",void 0);case 11:if(!t){e.next=34;break}i=null,o=0;case 14:if(!(o0}},{key:"_stopEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_addEventListener",value:function(e,t,n){var r=new ie(te(e),t,n);return this._events.push(r),this._startEvent(r),this}},{key:"on",value:function(e,t){return this._addEventListener(e,t,!1)}},{key:"once",value:function(e,t){return this._addEventListener(e,t,!0)}},{key:"emit",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a=0&&o.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Ie.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",m.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}function Oe(e){return new Promise((function(t){setTimeout(t,e)}))}function Pe(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function Me(e){return e?e.toLowerCase():e}var Be={},Re=function(e){(0,E.Z)(n,e);var t=(0,C.Z)(n);function n(e,r,a){var i;if((0,O.Z)(this,n),i=t.call(this),e!==Be)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return(0,D.defineReadOnly)((0,I.Z)(i),"provider",r),null==a&&(a=0),"string"==typeof a?((0,D.defineReadOnly)((0,I.Z)(i),"_address",i.provider.formatter.address(a)),(0,D.defineReadOnly)((0,I.Z)(i),"_index",null)):"number"==typeof a?((0,D.defineReadOnly)((0,I.Z)(i),"_index",a),(0,D.defineReadOnly)((0,I.Z)(i),"_address",null)):Ie.throwArgumentError("invalid address or index","addressOrIndex",a),i}return(0,P.Z)(n,[{key:"connect",value:function(e){return Ie.throwError("cannot alter JSON-RPC Signer connection",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}},{key:"connectUnchecked",value:function(){return new Ne(Be,this.provider,this._address||this._index)}},{key:"getAddress",value:function(){var e=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(t){return t.length<=e._index&&Ie.throwError("unknown account #"+e._index,m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e.provider.formatter.address(t[e._index])}))}},{key:"sendUncheckedTransaction",value:function(e){var t=this;e=(0,D.shallowCopy)(e);var n=this.getAddress().then((function(e){return e&&(e=e.toLowerCase()),e}));if(null==e.gasLimit){var r=(0,D.shallowCopy)(e);r.from=n,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((function(e){return Se(t,void 0,void 0,(0,T.Z)().mark((function t(){var n;return(0,T.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this.provider.resolveName(e);case 4:return null==(n=t.sent)&&Ie.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})))}))),(0,D.resolveProperties)({tx:(0,D.resolveProperties)(e),sender:n}).then((function(n){var r=n.tx,a=n.sender;null!=r.from?r.from.toLowerCase()!==a&&Ie.throwArgumentError("from address mismatch","transaction",e):r.from=a;var i=t.provider.constructor.hexlifyTransaction(r,{from:!0});return t.provider.send("eth_sendTransaction",[i]).then((function(e){return e}),(function(e){return"string"==typeof e.message&&e.message.match(/user denied/i)&&Ie.throwError("user rejected transaction",m.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:r}),Te("sendTransaction",e,i)}))}))}},{key:"signTransaction",value:function(e){return Ie.throwError("signing transactions is unsupported",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}},{key:"sendTransaction",value:function(e){return Se(this,void 0,void 0,(0,T.Z)().mark((function t(){var n,r,a=this;return(0,T.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval);case 2:return n=t.sent,t.next=5,this.sendUncheckedTransaction(e);case 5:return r=t.sent,t.prev=6,t.next=9,(0,L.poll)((function(){return Se(a,void 0,void 0,(0,T.Z)().mark((function e(){var t;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.provider.getTransaction(r);case 2:if(null!==(t=e.sent)){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",this.provider._wrapTransaction(t,r,n));case 6:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this.provider});case 9:return t.abrupt("return",t.sent);case 12:throw t.prev=12,t.t0=t.catch(6),t.t0.transactionHash=r,t.t0;case 16:case"end":return t.stop()}}),t,this,[[6,12]])})))}},{key:"signMessage",value:function(e){return Se(this,void 0,void 0,(0,T.Z)().mark((function t(){var n,r;return(0,T.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="string"==typeof e?(0,U.Y0)(e):e,t.next=3,this.getAddress();case 3:return r=t.sent,t.prev=4,t.next=7,this.provider.send("personal_sign",[(0,R.hexlify)(n),r.toLowerCase()]);case 7:return t.abrupt("return",t.sent);case 10:throw t.prev=10,t.t0=t.catch(4),"string"==typeof t.t0.message&&t.t0.message.match(/user denied/i)&&Ie.throwError("user rejected signing",m.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),t.t0;case 14:case"end":return t.stop()}}),t,this,[[4,10]])})))}},{key:"_legacySignMessage",value:function(e){return Se(this,void 0,void 0,(0,T.Z)().mark((function t(){var n,r;return(0,T.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="string"==typeof e?(0,U.Y0)(e):e,t.next=3,this.getAddress();case 3:return r=t.sent,t.prev=4,t.next=7,this.provider.send("eth_sign",[r.toLowerCase(),(0,R.hexlify)(n)]);case 7:return t.abrupt("return",t.sent);case 10:throw t.prev=10,t.t0=t.catch(4),"string"==typeof t.t0.message&&t.t0.message.match(/user denied/i)&&Ie.throwError("user rejected signing",m.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),t.t0;case 14:case"end":return t.stop()}}),t,this,[[4,10]])})))}},{key:"_signTypedData",value:function(e,t,n){return Se(this,void 0,void 0,(0,T.Z)().mark((function r(){var a,i,o=this;return(0,T.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,ke.E.resolveNames(e,t,n,(function(e){return o.provider.resolveName(e)}));case 2:return a=r.sent,r.next=5,this.getAddress();case 5:return i=r.sent,r.prev=6,r.next=9,this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(ke.E.getPayload(a.domain,t,a.value))]);case 9:return r.abrupt("return",r.sent);case 12:throw r.prev=12,r.t0=r.catch(6),"string"==typeof r.t0.message&&r.t0.message.match(/user denied/i)&&Ie.throwError("user rejected signing",m.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:a.domain,types:t,value:a.value}}),r.t0;case 16:case"end":return r.stop()}}),r,this,[[6,12]])})))}},{key:"unlock",value:function(e){return Se(this,void 0,void 0,(0,T.Z)().mark((function t(){var n,r;return(0,T.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.provider,t.next=3,this.getAddress();case 3:return r=t.sent,t.abrupt("return",n.send("personal_unlockAccount",[r.toLowerCase(),e,null]));case 5:case"end":return t.stop()}}),t,this)})))}}]),n}(f.E),Ne=function(e){(0,E.Z)(n,e);var t=(0,C.Z)(n);function n(){return(0,O.Z)(this,n),t.apply(this,arguments)}return(0,P.Z)(n,[{key:"sendTransaction",value:function(e){var t=this;return this.sendUncheckedTransaction(e).then((function(e){return{hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(n){return t.provider.waitForTransaction(e,n)}}}))}}]),n}(Re),De={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},je=function(e){(0,E.Z)(n,e);var t=(0,C.Z)(n);function n(e,r){var a;(0,O.Z)(this,n);var i=r;return null==i&&(i=new Promise((function(e,t){setTimeout((function(){a.detectNetwork().then((function(t){e(t)}),(function(e){t(e)}))}),0)}))),a=t.call(this,i),e||(e=(0,D.getStatic)(a.constructor,"defaultUrl")()),"string"==typeof e?(0,D.defineReadOnly)((0,I.Z)(a),"connection",Object.freeze({url:e})):(0,D.defineReadOnly)((0,I.Z)(a),"connection",Object.freeze((0,D.shallowCopy)(e))),a._nextId=42,a}return(0,P.Z)(n,[{key:"_cache",get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}},{key:"detectNetwork",value:function(){var e=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((function(){e._cache.detectNetwork=null}),0)),this._cache.detectNetwork}},{key:"_uncachedDetectNetwork",value:function(){return Se(this,void 0,void 0,(0,T.Z)().mark((function e(){var t,n;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Oe(0);case 2:return t=null,e.prev=3,e.next=6,this.send("eth_chainId",[]);case 6:t=e.sent,e.next=19;break;case 9:return e.prev=9,e.t0=e.catch(3),e.prev=11,e.next=14,this.send("net_version",[]);case 14:t=e.sent,e.next=19;break;case 17:e.prev=17,e.t1=e.catch(11);case 19:if(null==t){e.next=28;break}return n=(0,D.getStatic)(this.constructor,"getNetwork"),e.prev=21,e.abrupt("return",n(c.O$.from(t).toNumber()));case 25:return e.prev=25,e.t2=e.catch(21),e.abrupt("return",Ie.throwError("could not detect network",m.Logger.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e.t2}));case 28:return e.abrupt("return",Ie.throwError("could not detect network",m.Logger.errors.NETWORK_ERROR,{event:"noNetwork"}));case 29:case"end":return e.stop()}}),e,this,[[3,9],[11,17],[21,25]])})))}},{key:"getSigner",value:function(e){return new Re(Be,this,e)}},{key:"getUncheckedSigner",value:function(e){return this.getSigner(e).connectUnchecked()}},{key:"listAccounts",value:function(){var e=this;return this.send("eth_accounts",[]).then((function(t){return t.map((function(t){return e.formatter.address(t)}))}))}},{key:"send",value:function(e,t){var n=this,r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,D.deepCopy)(r),provider:this});var a=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(a&&this._cache[e])return this._cache[e];var i=(0,L.fetchJson)(this.connection,JSON.stringify(r),Pe).then((function(e){return n.emit("debug",{action:"response",request:r,response:e,provider:n}),e}),(function(e){throw n.emit("debug",{action:"response",error:e,request:r,provider:n}),e}));return a&&(this._cache[e]=i,setTimeout((function(){n._cache[e]=null}),0)),i}},{key:"prepareRequest",value:function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[Me(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[Me(t.address),t.blockTag]];case"getCode":return["eth_getCode",[Me(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[Me(t.address),(0,R.hexZeroPad)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[(0,D.getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,D.getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=Me(t.filter.address)),["eth_getLogs",[t.filter]]}return null}},{key:"perform",value:function(e,t){return Se(this,void 0,void 0,(0,T.Z)().mark((function n(){var r,a,i;return(0,T.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("call"!==e&&"estimateGas"!==e){n.next=8;break}if(!(r=t.transaction)||null==r.type||!c.O$.from(r.type).isZero()){n.next=8;break}if(null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas){n.next=8;break}return n.next=6,this.getFeeData();case 6:null==(a=n.sent).maxFeePerGas&&null==a.maxPriorityFeePerGas&&((t=(0,D.shallowCopy)(t)).transaction=(0,D.shallowCopy)(r),delete t.transaction.type);case 8:return null==(i=this.prepareRequest(e,t))&&Ie.throwError(e+" not implemented",m.Logger.errors.NOT_IMPLEMENTED,{operation:e}),n.prev=10,n.next=13,this.send(i[0],i[1]);case 13:return n.abrupt("return",n.sent);case 16:return n.prev=16,n.t0=n.catch(10),n.abrupt("return",Te(e,n.t0,t));case 19:case"end":return n.stop()}}),n,this,[[10,16]])})))}},{key:"_startEvent",value:function(e){"pending"===e.tag&&this._startPending(),(0,xe.Z)((0,_e.Z)(n.prototype),"_startEvent",this).call(this,e)}},{key:"_startPending",value:function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(n){return function r(){e.send("eth_getFilterChanges",[n]).then((function(n){if(e._pendingFilter!=t)return null;var r=Promise.resolve();return n.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",r=r.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),r.then((function(){return Oe(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){r()}),0),null;e.send("eth_uninstallFilter",[n])})).catch((function(e){}))}(),n})).catch((function(e){}))}}},{key:"_stopEvent",value:function(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),(0,xe.Z)((0,_e.Z)(n.prototype),"_stopEvent",this).call(this,e)}}],[{key:"defaultUrl",value:function(){return"http://localhost:8545"}},{key:"hexlifyTransaction",value:function(e,t){var n=(0,D.shallowCopy)(De);if(t)for(var r in t)t[r]&&(n[r]=!0);(0,D.checkProperties)(e,n);var a={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null!=e[t]){var n=(0,R.hexValue)(c.O$.from(e[t]));"gasLimit"===t&&(t="gas"),a[t]=n}})),["from","to","data"].forEach((function(t){null!=e[t]&&(a[t]=(0,R.hexlify)(e[t]))})),e.accessList&&(a.accessList=(0,q.accessListify)(e.accessList)),a}}]),n}(Ae),Ue=null;try{if(null==(Ue=WebSocket))throw new Error("inject please")}catch(e){var Le=new m.Logger(H);Ue=function(){Le.throwError("WebSockets not supported in this environment",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var Ze=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Fe=new m.Logger(H),He=1,ze=function(e){(0,E.Z)(n,e);var t=(0,C.Z)(n);function n(e,r){var a,i;(0,O.Z)(this,n),"any"===r&&Fe.throwError("WebSocketProvider does not support 'any' network yet",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),(i="string"==typeof e?t.call(this,e,r):t.call(this,"_websocket",r))._pollingInterval=-1,i._wsReady=!1,"string"==typeof e?(0,D.defineReadOnly)((0,I.Z)(i),"_websocket",new Ue(i.connection.url)):(0,D.defineReadOnly)((0,I.Z)(i),"_websocket",e),(0,D.defineReadOnly)((0,I.Z)(i),"_requests",{}),(0,D.defineReadOnly)((0,I.Z)(i),"_subs",{}),(0,D.defineReadOnly)((0,I.Z)(i),"_subIds",{}),(0,D.defineReadOnly)((0,I.Z)(i),"_detectNetwork",(0,xe.Z)((a=(0,I.Z)(i),(0,_e.Z)(n.prototype)),"detectNetwork",a).call(a)),i.websocket.onopen=function(){i._wsReady=!0,Object.keys(i._requests).forEach((function(e){i.websocket.send(i._requests[e].payload)}))},i.websocket.onmessage=function(e){var t=e.data,n=JSON.parse(t);if(null!=n.id){var r=String(n.id),a=i._requests[r];if(delete i._requests[r],void 0!==n.result)a.callback(null,n.result),i.emit("debug",{action:"response",request:JSON.parse(a.payload),response:n.result,provider:(0,I.Z)(i)});else{var o=null;n.error?(o=new Error(n.error.message||"unknown error"),(0,D.defineReadOnly)(o,"code",n.error.code||null),(0,D.defineReadOnly)(o,"response",t)):o=new Error("unknown error"),a.callback(o,void 0),i.emit("debug",{action:"response",error:o,request:JSON.parse(a.payload),provider:(0,I.Z)(i)})}}else if("eth_subscription"===n.method){var s=i._subs[n.params.subscription];s&&s.processFunc(n.params.result)}else console.warn("this should not happen")};var o=setInterval((function(){i.emit("poll")}),1e3);return o.unref&&o.unref(),(0,we.Z)(i)}return(0,P.Z)(n,[{key:"websocket",get:function(){return this._websocket}},{key:"detectNetwork",value:function(){return this._detectNetwork}},{key:"pollingInterval",get:function(){return 0},set:function(e){Fe.throwError("cannot set polling interval on WebSocketProvider",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}},{key:"resetEventsBlock",value:function(e){Fe.throwError("cannot reset events block on WebSocketProvider",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}},{key:"poll",value:function(){return Ze(this,void 0,void 0,(0,T.Z)().mark((function e(){return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)})))}},{key:"polling",set:function(e){e&&Fe.throwError("cannot set polling on WebSocketProvider",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}},{key:"send",value:function(e,t){var n=this,r=He++;return new Promise((function(a,i){var o=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});n.emit("debug",{action:"request",request:JSON.parse(o),provider:n}),n._requests[String(r)]={callback:function(e,t){return e?i(e):a(t)},payload:o},n._wsReady&&n.websocket.send(o)}))}},{key:"_subscribe",value:function(e,t,n){return Ze(this,void 0,void 0,(0,T.Z)().mark((function r(){var a,i,o=this;return(0,T.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==(a=this._subIds[e])&&(a=Promise.all(t).then((function(e){return o.send("eth_subscribe",e)})),this._subIds[e]=a),r.next=4,a;case 4:i=r.sent,this._subs[i]={tag:e,processFunc:n};case 6:case"end":return r.stop()}}),r,this)})))}},{key:"_startEvent",value:function(e){var t=this;switch(e.type){case"block":this._subscribe("block",["newHeads"],(function(e){var n=c.O$.from(e.number).toNumber();t._emitted.block=n,t.emit("block",n)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(function(e){t.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(function(n){null==n.removed&&(n.removed=!1),t.emit(e.filter,t.formatter.filterLog(n))}));break;case"tx":var n=function(e){var n=e.hash;t.getTransactionReceipt(n).then((function(e){e&&t.emit(n,e)}))};n(e),this._subscribe("tx",["newHeads"],(function(e){t._events.filter((function(e){return"tx"===e.type})).forEach(n)}));break;case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}},{key:"_stopEvent",value:function(e){var t=this,n=e.tag;if("tx"===e.type){if(this._events.filter((function(e){return"tx"===e.type})).length)return;n="tx"}else if(this.listenerCount(e.event))return;var r=this._subIds[n];r&&(delete this._subIds[n],r.then((function(e){t._subs[e]&&(delete t._subs[e],t.send("eth_unsubscribe",[e]))})))}},{key:"destroy",value:function(){return Ze(this,void 0,void 0,(0,T.Z)().mark((function e(){var t=this;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.websocket.readyState!==Ue.CONNECTING){e.next=3;break}return e.next=3,new Promise((function(e){t.websocket.onopen=function(){e(!0)},t.websocket.onerror=function(){e(!1)}}));case 3:this.websocket.close(1e3);case 4:case"end":return e.stop()}}),e,this)})))}}],[{key:"defaultUrl",value:function(){return"ws://localhost:8546"}}]),n}(je),qe=new m.Logger(H),Qe=function(e){(0,E.Z)(n,e);var t=(0,C.Z)(n);function n(){return(0,O.Z)(this,n),t.apply(this,arguments)}return(0,P.Z)(n,[{key:"detectNetwork",value:function(){var e,t,r,a,i=this,o=Object.create(null,{detectNetwork:{get:function(){return(0,xe.Z)((0,_e.Z)(n.prototype),"detectNetwork",i)}}});return e=this,t=void 0,r=void 0,a=(0,T.Z)().mark((function e(){var t;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(t=this.network)){e.next=7;break}return e.next=4,o.detectNetwork.call(this);case 4:(t=e.sent)||qe.throwError("no network detected",m.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,D.defineReadOnly)(this,"_network",t),this.emit("network",t,null));case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e,this)})),new(r||(r=Promise))((function(n,i){function o(e){try{c(a.next(e))}catch(e){i(e)}}function s(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((a=a.apply(e,t||[])).next())}))}}]),n}(je),Ke=function(e){(0,E.Z)(n,e);var t=(0,C.Z)(n);function n(e,r){var a;(0,O.Z)(this,n),qe.checkAbstract(this instanceof n?this.constructor:void 0,n),e=(0,D.getStatic)(this instanceof n?this.constructor:void 0,"getNetwork")(e),r=(0,D.getStatic)(this instanceof n?this.constructor:void 0,"getApiKey")(r);var i=(0,D.getStatic)(this instanceof n?this.constructor:void 0,"getUrl")(e,r);return a=t.call(this,i,e),"string"==typeof r?(0,D.defineReadOnly)((0,I.Z)(a),"apiKey",r):null!=r&&Object.keys(r).forEach((function(e){(0,D.defineReadOnly)((0,I.Z)(a),e,r[e])})),a}return(0,P.Z)(n,[{key:"_startPending",value:function(){qe.warn("WARNING: API provider does not support pending filters")}},{key:"isCommunityResource",value:function(){return!1}},{key:"getSigner",value:function(e){return qe.throwError("API provider does not support signing",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}},{key:"listAccounts",value:function(){return Promise.resolve([])}}],[{key:"getApiKey",value:function(e){return e}},{key:"getUrl",value:function(e,t){return qe.throwError("not implemented; sub-classes must override getUrl",m.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}]),n}(Qe),Ve=new m.Logger(H),Je="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",Ge=function(e){(0,E.Z)(n,e);var t=(0,C.Z)(n);function n(e,r){var a;(0,O.Z)(this,n);var i=new We(e,r),o=i.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");return a=t.call(this,o,i.network),(0,D.defineReadOnly)((0,I.Z)(a),"apiKey",i.apiKey),a}return(0,P.Z)(n,[{key:"isCommunityResource",value:function(){return this.apiKey===Je}}]),n}(ze),We=function(e){(0,E.Z)(n,e);var t=(0,C.Z)(n);function n(){return(0,O.Z)(this,n),t.apply(this,arguments)}return(0,P.Z)(n,[{key:"isCommunityResource",value:function(){return this.apiKey===Je}}],[{key:"getWebSocketProvider",value:function(e,t){return new Ge(e,t)}},{key:"getApiKey",value:function(e){return null==e?Je:(e&&"string"!=typeof e&&Ve.throwArgumentError("invalid apiKey","apiKey",e),e)}},{key:"getUrl",value:function(e,t){var n=null;switch(e.name){case"homestead":n="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":n="eth-goerli.g.alchemy.com/v2/";break;case"matic":n="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":n="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":n="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":n="arb-goerli.g.alchemy.com/v2/";break;case"optimism":n="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":n="opt-goerli.g.alchemy.com/v2/";break;default:Ve.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+n+t,throttleCallback:function(e,n){return t===Je&&W(),Promise.resolve(!0)}}}}]),n}(Ke),Ye=new m.Logger(H),Xe="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function $e(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return Ye.throwArgumentError("unsupported network","name",e)}var et=function(e){(0,E.Z)(n,e);var t=(0,C.Z)(n);function n(){return(0,O.Z)(this,n),t.apply(this,arguments)}return(0,P.Z)(n,[{key:"isCommunityResource",value:function(){return this.apiKey===Xe}}],[{key:"getApiKey",value:function(e){return null==e?Xe:e}},{key:"getUrl",value:function(e,t){null==t&&(t=Xe);var n={allowGzip:!0,url:"https://"+$e(e.name)+t,throttleCallback:function(e,n){return t.apiKey===Xe&&W(),Promise.resolve(!0)}};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}}]),n}(Ke),tt=new m.Logger(H),nt=function(e){(0,E.Z)(n,e);var t=(0,C.Z)(n);function n(){return(0,O.Z)(this,n),t.apply(this,arguments)}return(0,P.Z)(n,[{key:"perform",value:function(e,t){var r,a,i,o,s=this,c=Object.create(null,{perform:{get:function(){return(0,xe.Z)((0,_e.Z)(n.prototype),"perform",s)}}});return r=this,a=void 0,i=void 0,o=(0,T.Z)().mark((function n(){var r;return(0,T.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("getBlockNumber"!==e){n.next=5;break}return n.next=3,c.perform.call(this,"getBlock",{blockTag:"latest"});case 3:return r=n.sent,n.abrupt("return",r.number);case 5:return n.abrupt("return",c.perform.call(this,e,t));case 6:case"end":return n.stop()}}),n,this)})),new(i||(i=Promise))((function(e,t){function n(e){try{c(o.next(e))}catch(e){t(e)}}function s(e){try{c(o.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,s)}c((o=o.apply(r,a||[])).next())}))}}],[{key:"getApiKey",value:function(e){return null!=e&&tt.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}},{key:"getUrl",value:function(e,t){var n=null;return"homestead"===e.name?n="https://cloudflare-eth.com/":tt.throwArgumentError("unsupported network","network",arguments[0]),n}}]),n}(Ke),rt=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},at=new m.Logger(H);function it(e){var t={};for(var n in e)if(null!=e[n]){var r=e[n];"type"===n&&0===r||(r={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[n]?(0,R.hexValue)((0,R.hexlify)(r)):"accessList"===n?"["+(0,q.accessListify)(r).map((function(e){return'{address:"'.concat(e.address,'",storageKeys:["').concat(e.storageKeys.join('","'),'"]}')})).join(",")+"]":(0,R.hexlify)(r),t[n]=r)}return t}function ot(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!=typeof e.message||!e.message.match(/^OK/)){var t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function st(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){var t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){var n=new Error("invalid response");throw n.result=JSON.stringify(e),n}if(e.error){var r=new Error(e.error.message||"unknown error");throw e.error.code&&(r.code=e.error.code),e.error.data&&(r.data=e.error.data),r}return e.result}function ct(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function ut(e,t,n){if("call"===e&&t.code===m.Logger.errors.SERVER_ERROR){var r=t.error;if(r&&(r.message.match(/reverted/i)||r.message.match(/VM execution error/i))){var a=r.data;if(a&&(a="0x"+a.replace(/^.*0x/i,"")),(0,R.isHexString)(a))return a;at.throwError("missing revert data in call exception",m.Logger.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}var i=t.message;throw t.code===m.Logger.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText)),(i=(i||"").toLowerCase()).match(/insufficient funds/)&&at.throwError("insufficient funds for intrinsic transaction cost",m.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&at.throwError("nonce has already been used",m.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/another transaction with same nonce/)&&at.throwError("replacement fee too low",m.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/execution failed due to an exception|execution reverted/)&&at.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",m.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}var ft=function(e){(0,E.Z)(n,e);var t=(0,C.Z)(n);function n(e,r){var a;return(0,O.Z)(this,n),a=t.call(this,e),(0,D.defineReadOnly)((0,I.Z)(a),"baseUrl",a.getBaseUrl()),(0,D.defineReadOnly)((0,I.Z)(a),"apiKey",r||null),a}return(0,P.Z)(n,[{key:"getBaseUrl",value:function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return at.throwArgumentError("unsupported network","network",this.network.name)}},{key:"getUrl",value:function(e,t){var n=Object.keys(t).reduce((function(e,n){var r=t[n];return null!=r&&(e+="&".concat(n,"=").concat(r)),e}),""),r=this.apiKey?"&apikey=".concat(this.apiKey):"";return"".concat(this.baseUrl,"/api?module=").concat(e).concat(n).concat(r)}},{key:"getPostUrl",value:function(){return"".concat(this.baseUrl,"/api")}},{key:"getPostData",value:function(e,t){return t.module=e,t.apikey=this.apiKey,t}},{key:"fetch",value:function(e,t,n){return rt(this,void 0,void 0,(0,T.Z)().mark((function r(){var a,i,o,s,c,u,f=this;return(0,T.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=n?this.getPostUrl():this.getUrl(e,t),i=n?this.getPostData(e,t):null,o="proxy"===e?st:ot,this.emit("debug",{action:"request",request:a,provider:this}),s={url:a,throttleSlotInterval:1e3,throttleCallback:function(e,t){return f.isCommunityResource()&&W(),Promise.resolve(!0)}},c=null,i&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},c=Object.keys(i).map((function(e){return"".concat(e,"=").concat(i[e])})).join("&")),r.next=9,(0,L.fetchJson)(s,c,o||st);case 9:return u=r.sent,this.emit("debug",{action:"response",request:a,response:(0,D.deepCopy)(u),provider:this}),r.abrupt("return",u);case 12:case"end":return r.stop()}}),r,this)})))}},{key:"detectNetwork",value:function(){return rt(this,void 0,void 0,(0,T.Z)().mark((function e(){return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.network);case 1:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){var r=this,a=Object.create(null,{perform:{get:function(){return(0,xe.Z)((0,_e.Z)(n.prototype),"perform",r)}}});return rt(this,void 0,void 0,(0,T.Z)().mark((function n(){var r,i,o,s,c,u,f,d,l;return(0,T.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=e,n.next="getBlockNumber"===n.t0?3:"getGasPrice"===n.t0?4:"getBalance"===n.t0?5:"getTransactionCount"===n.t0?6:"getCode"===n.t0?7:"getStorageAt"===n.t0?8:"sendTransaction"===n.t0?9:"getBlock"===n.t0?10:"getTransaction"===n.t0?13:"getTransactionReceipt"===n.t0?14:"call"===n.t0?15:"estimateGas"===n.t0?29:"getLogs"===n.t0?41:"getEtherPrice"===n.t0?65:72;break;case 3:return n.abrupt("return",this.fetch("proxy",{action:"eth_blockNumber"}));case 4:return n.abrupt("return",this.fetch("proxy",{action:"eth_gasPrice"}));case 5:return n.abrupt("return",this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag}));case 6:return n.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag}));case 7:return n.abrupt("return",this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag}));case 8:return n.abrupt("return",this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag}));case 9:return n.abrupt("return",this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((function(e){return ut("sendTransaction",e,t.signedTransaction)})));case 10:if(!t.blockTag){n.next=12;break}return n.abrupt("return",this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"}));case 12:throw new Error("getBlock by blockHash not implemented");case 13:return n.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash}));case 14:return n.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash}));case 15:if("latest"===t.blockTag){n.next=17;break}throw new Error("EtherscanProvider does not support blockTag for call");case 17:return(r=it(t.transaction)).module="proxy",r.action="eth_call",n.prev=20,n.next=23,this.fetch("proxy",r,!0);case 23:return n.abrupt("return",n.sent);case 26:return n.prev=26,n.t1=n.catch(20),n.abrupt("return",ut("call",n.t1,t.transaction));case 29:return(i=it(t.transaction)).module="proxy",i.action="eth_estimateGas",n.prev=32,n.next=35,this.fetch("proxy",i,!0);case 35:return n.abrupt("return",n.sent);case 38:return n.prev=38,n.t2=n.catch(32),n.abrupt("return",ut("estimateGas",n.t2,t.transaction));case 41:return o={action:"getLogs"},t.filter.fromBlock&&(o.fromBlock=ct(t.filter.fromBlock)),t.filter.toBlock&&(o.toBlock=ct(t.filter.toBlock)),t.filter.address&&(o.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&at.throwError("unsupported topic count",m.Logger.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length&&("string"==typeof(s=t.filter.topics[0])&&66===s.length||at.throwError("unsupported topic format",m.Logger.errors.UNSUPPORTED_OPERATION,{topic0:s}),o.topic0=s)),n.next=48,this.fetch("logs",o);case 48:c=n.sent,u={},f=0;case 51:if(!(ft?null:(r+a)/2}function mt(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(c.O$.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((function(e){return mt(e)})));if("object"==typeof e){var t=Object.keys(e);return t.sort(),"{"+t.map((function(t){var n=e[t];return n="function"==typeof n?"[function]":mt(n),JSON.stringify(t)+":"+n})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}var vt=1;function gt(e){var t=null,n=null,r=new Promise((function(r){t=function(){n&&(clearTimeout(n),n=null),r()},n=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return r},wait:function(e){return r=r.then(e)}}}var At=[m.Logger.errors.CALL_EXCEPTION,m.Logger.errors.INSUFFICIENT_FUNDS,m.Logger.errors.NONCE_EXPIRED,m.Logger.errors.REPLACEMENT_UNDERPRICED,m.Logger.errors.UNPREDICTABLE_GAS_LIMIT],wt=["address","args","errorArgs","errorSignature","method","transaction"];function xt(e,t){var n={weight:e.weight};return Object.defineProperty(n,"provider",{get:function(){return e.provider}}),e.start&&(n.start=e.start),t&&(n.duration=t-e.start),e.done&&(e.error?n.error=e.error:n.result=e.result||null),n}function _t(e,t,n){var r=mt;switch(t){case"getBlockNumber":return function(t){var n=t.map((function(e){return e.result})),r=yt(t.map((function(e){return e.result})),2);if(null!=r)return r=Math.ceil(r),n.indexOf(r+1)>=0&&r++,r>=e._highestBlockNumber&&(e._highestBlockNumber=r),e._highestBlockNumber};case"getGasPrice":return function(e){var t=e.map((function(e){return e.result}));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return yt(e.map((function(e){return e.result})))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":r=function(e){return null==e?null:((e=(0,D.shallowCopy)(e)).confirmations=-1,mt(e))};break;case"getBlock":r=n.includeTransactions?function(e){return null==e?null:((e=(0,D.shallowCopy)(e)).transactions=e.transactions.map((function(e){return(e=(0,D.shallowCopy)(e)).confirmations=-1,e})),mt(e))}:function(e){return null==e?null:mt(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(n){var r={};n.forEach((function(t){var n=e(t.result);r[n]||(r[n]={count:0,result:t.result}),r[n].count++}));for(var a=Object.keys(r),i=0;i=t)return o.result}}}(r,e.quorum)}function kt(e,t){return lt(this,void 0,void 0,(0,T.Z)().mark((function n(){var r;return(0,T.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null!=(r=e.provider).blockNumber&&r.blockNumber>=t||-1===t)){n.next=3;break}return n.abrupt("return",r);case 3:return n.abrupt("return",(0,L.poll)((function(){return new Promise((function(n,a){setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)}),0)}))}),{oncePoll:r}));case 4:case"end":return n.stop()}}),n)})))}function St(e,t,n,r){return lt(this,void 0,void 0,(0,T.Z)().mark((function a(){var i,o;return(0,T.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:i=e.provider,a.t0=n,a.next="getBlockNumber"===a.t0||"getGasPrice"===a.t0?4:"getEtherPrice"===a.t0?5:"getBalance"===a.t0||"getTransactionCount"===a.t0||"getCode"===a.t0?8:"getStorageAt"===a.t0?13:"getBlock"===a.t0?18:"call"===a.t0||"estimateGas"===a.t0?23:"getTransaction"===a.t0||"getTransactionReceipt"===a.t0?30:"getLogs"===a.t0?31:37;break;case 4:return a.abrupt("return",i[n]());case 5:if(!i.getEtherPrice){a.next=7;break}return a.abrupt("return",i.getEtherPrice());case 7:return a.abrupt("break",37);case 8:if(!r.blockTag||!(0,R.isHexString)(r.blockTag)){a.next=12;break}return a.next=11,kt(e,t);case 11:i=a.sent;case 12:return a.abrupt("return",i[n](r.address,r.blockTag||"latest"));case 13:if(!r.blockTag||!(0,R.isHexString)(r.blockTag)){a.next=17;break}return a.next=16,kt(e,t);case 16:i=a.sent;case 17:return a.abrupt("return",i.getStorageAt(r.address,r.position,r.blockTag||"latest"));case 18:if(!r.blockTag||!(0,R.isHexString)(r.blockTag)){a.next=22;break}return a.next=21,kt(e,t);case 21:i=a.sent;case 22:return a.abrupt("return",i[r.includeTransactions?"getBlockWithTransactions":"getBlock"](r.blockTag||r.blockHash));case 23:if(!r.blockTag||!(0,R.isHexString)(r.blockTag)){a.next=27;break}return a.next=26,kt(e,t);case 26:i=a.sent;case 27:if("call"!==n||!r.blockTag){a.next=29;break}return a.abrupt("return",i[n](r.transaction,r.blockTag));case 29:return a.abrupt("return",i[n](r.transaction));case 30:return a.abrupt("return",i[n](r.transactionHash));case 31:if(!((o=r.filter).fromBlock&&(0,R.isHexString)(o.fromBlock)||o.toBlock&&(0,R.isHexString)(o.toBlock))){a.next=36;break}return a.next=35,kt(e,t);case 35:i=a.sent;case 36:return a.abrupt("return",i.getLogs(o));case 37:return a.abrupt("return",pt.throwError("unknown method error",m.Logger.errors.UNKNOWN_ERROR,{method:n,params:r}));case 38:case"end":return a.stop()}}),a)})))}var It=function(e){(0,E.Z)(n,e);var t=(0,C.Z)(n);function n(e,r){var a;(0,O.Z)(this,n),0===e.length&&pt.throwArgumentError("missing providers","providers",e);var i=e.map((function(e,t){if(y.zt.isProvider(e)){var n=J(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:n,priority:1})}var r=(0,D.shallowCopy)(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=J(e)?2e3:750),null==r.weight&&(r.weight=1);var a=r.weight;return(a%1||a>512||a<1)&&pt.throwArgumentError("invalid weight; must be integer in [1, 512]","providers[".concat(t,"].weight"),a),Object.freeze(r)})),o=i.reduce((function(e,t){return e+t.weight}),0);null==r?r=o/2:r>o&&pt.throwArgumentError("quorum will always fail; larger than total weight","quorum",r);var s=ht(i.map((function(e){return e.provider.network})));return null==s&&(s=new Promise((function(e,t){setTimeout((function(){a.detectNetwork().then(e,t)}),0)}))),a=t.call(this,s),(0,D.defineReadOnly)((0,I.Z)(a),"providerConfigs",Object.freeze(i)),(0,D.defineReadOnly)((0,I.Z)(a),"quorum",r),a._highestBlockNumber=-1,a}return(0,P.Z)(n,[{key:"detectNetwork",value:function(){return lt(this,void 0,void 0,(0,T.Z)().mark((function e(){var t;return(0,T.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.providerConfigs.map((function(e){return e.provider.getNetwork()})));case 2:return t=e.sent,e.abrupt("return",ht(t));case 4:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){return lt(this,void 0,void 0,(0,T.Z)().mark((function n(){var r,a,i,o,s,c,u,f,d,l,p=this;return(0,T.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("sendTransaction"!==e){n.next=13;break}return n.next=3,Promise.all(this.providerConfigs.map((function(e){return e.provider.sendTransaction(t.signedTransaction).then((function(e){return e.hash}),(function(e){return e}))})));case 3:r=n.sent,a=0;case 5:if(!(a=p.quorum)){n.next=22;break}if(void 0===(b=o(l))){n.next=18;break}return s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),n.abrupt("return",{v:b});case 18:if(f){n.next=21;break}return n.next=21,gt(100).getPromise();case 21:f=!1;case 22:if(h=s.reduce((function(e,t){if(!t.done||null==t.error)return e;var n=t.error.code;return At.indexOf(n)>=0&&(e[n]||(e[n]={error:t.error,weight:0}),e[n].weight+=t.weight),e}),{}),Object.keys(h).forEach((function(e){var t=h[e];if(!(t.weight=0}))},intToBuffer:function(e){var t=s(e);return new r(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:a,stripHexPrefix:i,padToEven:o,intToHex:s,fromAscii:function(e){for(var t="",n=0;n=this._blockSize;){for(var i=this._blockOffset;i0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},9597:function(e,t,n){var r=t;r.utils=n(21644),r.common=n(83655),r.sha=n(17737),r.ripemd=n(32033),r.hmac=n(68362),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},83655:function(e,t,n){"use strict";var r=n(21644),a=n(73350);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,r[a++]=e>>>16&255,r[a++]=e>>>8&255,r[a++]=255&e}else for(r[a++]=255&e,r[a++]=e>>>8&255,r[a++]=e>>>16&255,r[a++]=e>>>24&255,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,i=8;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},21644:function(e,t,n){"use strict";var r=n(73350),a=n(13786);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=a,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a>6|192,n[r++]=63&o|128):i(e,a)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(a=0;a>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,a=0;r>>24,n[a+1]=i>>>16&255,n[a+2]=i>>>8&255,n[a+3]=255&i):(n[a+3]=i>>>24,n[a+2]=i>>>16&255,n[a+1]=i>>>8&255,n[a]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,a){return e+t+n+r+a>>>0},t.sum64=function(e,t,n,r){var a=e[t],i=r+e[t+1]>>>0,o=(i>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,a,i,o,s){var c=0,u=t;return c+=(u=u+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,a,i,o,s){return t+r+i+s>>>0},t.sum64_5_hi=function(e,t,n,r,a,i,o,s,c,u){var f=0,d=t;return f+=(d=d+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,a,i,o,s,c,u){return t+r+i+s+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},84125:function(e,t,n){var r,a=n(43800);!function(){"use strict";var t="object"==typeof window?window:{};!t.HI_BASE32_NO_NODE_JS&&"object"==typeof a&&a.versions&&a.versions.node&&(t=n.g);var i=!t.HI_BASE32_NO_COMMON_JS&&e.exports,o=n.amdO,s="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),c={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},u=[0,0,0,0,0,0,0,0],f=function(e,t){t.length>10&&(t="..."+t.substr(-10));var n=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+e+" bytes: "+t+" <-");throw n.position=e,n},d=function(e){if(""===e)return[];if(!/^[A-Z2-7=]+$/.test(e))throw new Error("Invalid base32 characters");for(var t,n,r,a,i,o,s,u,f=[],d=0,l=(e=e.replace(/=/g,"")).length,p=0,b=l>>3<<3;p>>2),f[d++]=255&(n<<6|r<<1|a>>>4),f[d++]=255&(a<<4|i>>>1),f[d++]=255&(i<<7|o<<2|s>>>3),f[d++]=255&(s<<5|u);var h=l-b;return 2===h?(t=c[e.charAt(p++)],n=c[e.charAt(p++)],f[d++]=255&(t<<3|n>>>2)):4===h?(t=c[e.charAt(p++)],n=c[e.charAt(p++)],r=c[e.charAt(p++)],a=c[e.charAt(p++)],f[d++]=255&(t<<3|n>>>2),f[d++]=255&(n<<6|r<<1|a>>>4)):5===h?(t=c[e.charAt(p++)],n=c[e.charAt(p++)],r=c[e.charAt(p++)],a=c[e.charAt(p++)],i=c[e.charAt(p++)],f[d++]=255&(t<<3|n>>>2),f[d++]=255&(n<<6|r<<1|a>>>4),f[d++]=255&(a<<4|i>>>1)):7===h&&(t=c[e.charAt(p++)],n=c[e.charAt(p++)],r=c[e.charAt(p++)],a=c[e.charAt(p++)],i=c[e.charAt(p++)],o=c[e.charAt(p++)],s=c[e.charAt(p++)],f[d++]=255&(t<<3|n>>>2),f[d++]=255&(n<<6|r<<1|a>>>4),f[d++]=255&(a<<4|i>>>1),f[d++]=255&(i<<7|o<<2|s>>>3)),f},l=function(e,t){if(!t)return function(e){for(var t,n,r="",a=e.length,i=0,o=0;i191&&t<=223?(n=31&t,o=1):t<=239?(n=15&t,o=2):t<=247?(n=7&t,o=3):f(i,r);for(var s=0;s191)&&f(i,r),n<<=6,n+=63&t;n>=55296&&n<=57343&&f(i,r),n>1114111&&f(i,r),n<=65535?r+=String.fromCharCode(n):(n-=65536,r+=String.fromCharCode(55296+(n>>10)),r+=String.fromCharCode(56320+(1023&n)))}return r}(d(e));if(""===e)return"";if(!/^[A-Z2-7=]+$/.test(e))throw new Error("Invalid base32 characters");var n,r,a,i,o,s,u,l,p="",b=e.indexOf("=");-1===b&&(b=e.length);for(var h=0,y=b>>3<<3;h>>2))+String.fromCharCode(255&(r<<6|a<<1|i>>>4))+String.fromCharCode(255&(i<<4|o>>>1))+String.fromCharCode(255&(o<<7|s<<2|u>>>3))+String.fromCharCode(255&(u<<5|l));var m=b-y;return 2===m?(n=c[e.charAt(h++)],r=c[e.charAt(h++)],p+=String.fromCharCode(255&(n<<3|r>>>2))):4===m?(n=c[e.charAt(h++)],r=c[e.charAt(h++)],a=c[e.charAt(h++)],i=c[e.charAt(h++)],p+=String.fromCharCode(255&(n<<3|r>>>2))+String.fromCharCode(255&(r<<6|a<<1|i>>>4))):5===m?(n=c[e.charAt(h++)],r=c[e.charAt(h++)],a=c[e.charAt(h++)],i=c[e.charAt(h++)],o=c[e.charAt(h++)],p+=String.fromCharCode(255&(n<<3|r>>>2))+String.fromCharCode(255&(r<<6|a<<1|i>>>4))+String.fromCharCode(255&(i<<4|o>>>1))):7===m&&(n=c[e.charAt(h++)],r=c[e.charAt(h++)],a=c[e.charAt(h++)],i=c[e.charAt(h++)],o=c[e.charAt(h++)],s=c[e.charAt(h++)],u=c[e.charAt(h++)],p+=String.fromCharCode(255&(n<<3|r>>>2))+String.fromCharCode(255&(r<<6|a<<1|i>>>4))+String.fromCharCode(255&(i<<4|o>>>1))+String.fromCharCode(255&(o<<7|s<<2|u>>>3))),p},p={encode:function(e,t){var n="string"!=typeof e;return n&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),n?function(e){for(var t,n,r,a,i,o="",c=e.length,u=0,f=5*parseInt(c/5);u>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[31&(r<<1|a>>>7)]+s[a>>>2&31]+s[31&(a<<3|i>>>5)]+s[31&i];var d=c-f;return 1===d?(t=e[u],o+=s[t>>>3]+s[t<<2&31]+"======"):2===d?(t=e[u++],n=e[u],o+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[n<<4&31]+"===="):3===d?(t=e[u++],n=e[u++],r=e[u],o+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[r<<1&31]+"==="):4===d&&(t=e[u++],n=e[u++],r=e[u++],a=e[u],o+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[31&(r<<1|a>>>7)]+s[a>>>2&31]+s[a<<3&31]+"="),o}(e):t?function(e){for(var t,n,r,a,i,o="",c=e.length,u=0,f=5*parseInt(c/5);u>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[31&(r<<1|a>>>7)]+s[a>>>2&31]+s[31&(a<<3|i>>>5)]+s[31&i];var d=c-f;return 1===d?(t=e.charCodeAt(u),o+=s[t>>>3]+s[t<<2&31]+"======"):2===d?(t=e.charCodeAt(u++),n=e.charCodeAt(u),o+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[n<<4&31]+"===="):3===d?(t=e.charCodeAt(u++),n=e.charCodeAt(u++),r=e.charCodeAt(u),o+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[r<<1&31]+"==="):4===d&&(t=e.charCodeAt(u++),n=e.charCodeAt(u++),r=e.charCodeAt(u++),a=e.charCodeAt(u),o+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[31&(r<<1|a>>>7)]+s[a>>>2&31]+s[a<<3&31]+"="),o}(e):function(e){var t,n,r,a,i,o,c,f=!1,d="",l=0,p=0,b=e.length;if(""===e)return d;do{for(u[0]=u[5],u[1]=u[6],u[2]=u[7],c=p;l>6,u[c++]=128|63&o):o<55296||o>=57344?(u[c++]=224|o>>12,u[c++]=128|o>>6&63,u[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++l)),u[c++]=240|o>>18,u[c++]=128|o>>12&63,u[c++]=128|o>>6&63,u[c++]=128|63&o);p=c-5,l===b&&++l,l>b&&c<6&&(f=!0),t=u[0],c>4?(n=u[1],r=u[2],a=u[3],i=u[4],d+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[31&(r<<1|a>>>7)]+s[a>>>2&31]+s[31&(a<<3|i>>>5)]+s[31&i]):1===c?d+=s[t>>>3]+s[t<<2&31]+"======":2===c?(n=u[1],d+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[n<<4&31]+"===="):3===c?(n=u[1],r=u[2],d+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[r<<1&31]+"==="):(n=u[1],r=u[2],a=u[3],d+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[31&(r<<1|a>>>7)]+s[a>>>2&31]+s[a<<3&31]+"=")}while(!f);return d}(e)},decode:l};l.asBytes=d,i?e.exports=p:(t.base32=p,o&&(void 0===(r=function(){return p}.call(p,n,p,e))||(e.exports=r)))}()},56604:function(e,t,n){"use strict";var r=n(9597),a=n(81432),i=n(73350);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=a.toArray(e.entropy,e.entropyEnc||"hex"),n=a.toArray(e.nonce,e.nonceEnc||"hex"),r=a.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=o,o.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},o.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=a.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length=600)&&a("non-error status code; use only 4xx or 5xx status codes"),("number"!=typeof r||!o[r]&&(r<400||r>=600))&&(r=500);var f=e[r]||e[u(r)];for(var d in t||(t=f?new f(n):new Error(n||o[r]),Error.captureStackTrace(t,e)),f&&t instanceof f&&t.status===r||(t.expose=r<500,t.status=t.statusCode=r),i)"status"!==d&&"statusCode"!==d&&(t[d]=i[d]);return t},e.exports.HttpError=function(){function e(){throw new TypeError("cannot construct abstract class")}return s(e,Error),e}(),e.exports.isHttpError=(r=e.exports.HttpError,function(e){return!(!e||"object"!=typeof e)&&(e instanceof r||e instanceof Error&&"boolean"==typeof e.expose&&"number"==typeof e.statusCode&&e.status===e.statusCode)}),function(e,t,n){t.forEach((function(t){var r,a=c(o[t]);switch(u(t)){case 400:r=function(e,t,n){var r=d(t);function a(e){var t=null!=e?e:o[n],s=new Error(t);return Error.captureStackTrace(s,a),i(s,a.prototype),Object.defineProperty(s,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(s,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),s}return s(a,e),f(a,r),a.prototype.status=n,a.prototype.statusCode=n,a.prototype.expose=!0,a}(n,a,t);break;case 500:r=function(e,t,n){var r=d(t);function a(e){var t=null!=e?e:o[n],s=new Error(t);return Error.captureStackTrace(s,a),i(s,a.prototype),Object.defineProperty(s,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(s,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),s}return s(a,e),f(a,r),a.prototype.status=n,a.prototype.statusCode=n,a.prototype.expose=!1,a}(n,a,t)}r&&(e[t]=r,e[a]=r)})),e["I'mateapot"]=a.function(e.ImATeapot,'"I\'mateapot"; use "ImATeapot" instead')}(e.exports,o.codes,e.exports.HttpError)},43192:function(e){"use strict";function t(e,t){if("function"!=typeof e)throw new TypeError("argument fn must be a function");return e}function n(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("argument obj must be object");var r=Object.getOwnPropertyDescriptor(e,t);if(!r)throw new TypeError("must call property on owner object");if(!r.configurable)throw new TypeError("property must be configurable")}e.exports=function(e){if(!e)throw new TypeError("argument namespace is required");function r(e){}return r._file=void 0,r._ignored=!0,r._namespace=e,r._traced=!1,r._warned=Object.create(null),r.function=t,r.property=n,r}},81371:function(e,t){t.read=function(e,t,n,r,a){var i,o,s=8*a-r-1,c=(1<>1,f=-7,d=n?a-1:0,l=n?-1:1,p=e[t+d];for(d+=l,i=p&(1<<-f)-1,p>>=-f,f+=s;f>0;i=256*i+e[t+d],d+=l,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=r;f>0;o=256*o+e[t+d],d+=l,f-=8);if(0===i)i=1-u;else{if(i===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),i-=u}return(p?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,s,c,u=8*i-a-1,f=(1<>1,l=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,b=r?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?l/c:l*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=f?(s=0,o=f):o+d>=1?(s=(t*c-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+p]=255&s,p+=b,s/=256,a-=8);for(o=o<0;e[n+p]=255&o,p+=b,o/=256,u-=8);e[n+p-b]|=128*h}},13786:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},11290:function(e){e.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},35504:function(e,t,n){"use strict";var r=n(59251).v4,a=n(69933),i=function e(t,n){if(!(this instanceof e))return new e(t,n);n||(n={}),this.options={reviver:void 0!==n.reviver?n.reviver:null,replacer:void 0!==n.replacer?n.replacer:null,generator:void 0!==n.generator?n.generator:function(){return r()},version:void 0!==n.version?n.version:2,notificationIdNull:"boolean"==typeof n.notificationIdNull&&n.notificationIdNull},this.callServer=t};e.exports=i,i.prototype.request=function(e,t,n,r){var i,o=this,s=null,c=Array.isArray(e)&&"function"==typeof t;if(1===this.options.version&&c)throw new TypeError("JSON-RPC 1.0 does not support batching");if(c||!c&&e&&"object"==typeof e&&"function"==typeof t)r=t,s=e;else{"function"==typeof n&&(r=n,n=void 0);var u="function"==typeof r;try{s=a(e,t,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(e){if(u)return r(e);throw e}if(!u)return s}try{i=JSON.stringify(s,this.options.replacer)}catch(e){return r(e)}return this.callServer(i,(function(e,t){o._parseResponse(e,t,r)})),s},i.prototype._parseResponse=function(e,t,n){if(e)n(e);else{if(!t)return n();var r;try{r=JSON.parse(t,this.options.reviver)}catch(e){return n(e)}if(3===n.length){if(Array.isArray(r)){var a=function(e){return void 0!==e.error};return n(null,r.filter(a),r.filter((function(e){return!a(e)})))}return n(null,r.error,r.result)}n(null,r)}}},69933:function(e,t,n){"use strict";var r=n(59251).v4;e.exports=function(e,t,n,a){if("string"!=typeof e)throw new TypeError(e+" must be a string");var i="number"==typeof(a=a||{}).version?a.version:2;if(1!==i&&2!==i)throw new TypeError(i+" must be 1 or 2");var o={method:e};if(2===i&&(o.jsonrpc="2.0"),t){if("object"!=typeof t&&!Array.isArray(t))throw new TypeError(t+" must be an object, array or omitted");o.params=t}if(void 0===n){var s="function"==typeof a.generator?a.generator:function(){return r()};o.id=s(o,a)}else 2===i&&null===n?a.notificationIdNull&&(o.id=null):o.id=n;return o}},25748:function(module,exports,__webpack_require__){var process=__webpack_require__(43800),__WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n>6,o[c++]=128|63&i):i<55296||i>=57344?(o[c++]=224|i>>12,o[c++]=128|i>>6&63,o[c++]=128|63&i):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++r)),o[c++]=240|i>>18,o[c++]=128|i>>12&63,o[c++]=128|i>>6&63,o[c++]=128|63&i);e=o}else{if("object"!==a)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var u=[],f=[];for(r=0;r<64;++r){var d=e[r]||0;u[r]=92^d,f[r]=54^d}Sha256.call(this,t,n),this.update(f),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var r,a,i=0,o=e.length,s=this.blocks;i>2]|=e[i]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(s[a>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=64?(this.block=s[16],this.start=a-64,this.hash(),this.hashed=!0):this.start=a}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,r,a,i,o,s,c,u=this.h0,f=this.h1,d=this.h2,l=this.h3,p=this.h4,b=this.h5,h=this.h6,y=this.h7,m=this.blocks;for(e=16;e<64;++e)t=((a=m[e-15])>>>7|a<<25)^(a>>>18|a<<14)^a>>>3,n=((a=m[e-2])>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,m[e]=m[e-16]+t+m[e-7]+n<<0;for(c=f&d,e=0;e<64;e+=4)this.first?(this.is224?(i=300032,y=(a=m[0]-1413257819)-150054599<<0,l=a+24177077<<0):(i=704751109,y=(a=m[0]-210244248)-1521486534<<0,l=a+143694565<<0),this.first=!1):(t=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(i=u&f)^u&d^c,y=l+(a=y+(n=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&b^~p&h)+K[e]+m[e])<<0,l=a+(t+r)<<0),t=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),r=(o=l&u)^l&f^i,h=d+(a=h+(n=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&p^~y&b)+K[e+1]+m[e+1])<<0,t=((d=a+(t+r)<<0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(s=d&l)^d&u^o,b=f+(a=b+(n=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&y^~h&p)+K[e+2]+m[e+2])<<0,t=((f=a+(t+r)<<0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(c=f&d)^f&l^s,p=u+(a=p+(n=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&h^~b&y)+K[e+3]+m[e+3])<<0,u=a+(t+r)<<0;this.h0=this.h0+u<<0,this.h1=this.h1+f<<0,this.h2=this.h2+d<<0,this.h3=this.h3+l<<0,this.h4=this.h4+p<<0,this.h5=this.h5+b<<0,this.h6=this.h6+h<<0,this.h7=this.h7+y<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,c=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o];return this.is224||(c+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,c=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,a>>24&255,a>>16&255,a>>8&255,255&a,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o];return this.is224||c.push(s>>24&255,s>>16&255,s>>8&255,255&s),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},26891:function(e,t,n){var r,a=n(43800);!function(){"use strict";var i="input is invalid type",o="object"==typeof window,s=o?window:{};s.JS_SHA3_NO_WINDOW&&(o=!1);var c=!o&&"object"==typeof self;!s.JS_SHA3_NO_NODE_JS&&"object"==typeof a&&a.versions&&a.versions.node?s=n.g:c&&(s=self);var u=!s.JS_SHA3_NO_COMMON_JS&&e.exports,f=n.amdO,d=!s.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,l="0123456789abcdef".split(""),p=[4,1024,262144,67108864],b=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],y=[224,256,384,512],m=[128,256],v=["hex","buffer","arrayBuffer","array","digest"],g={128:168,256:136};!s.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!d||!s.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var A=function(e,t,n){return function(r){return new N(e,t,e).update(r)[n]()}},w=function(e,t,n){return function(r,a){return new N(e,t,a).update(r)[n]()}},x=function(e,t,n){return function(t,r,a,i){return E["cshake"+e].update(t,r,a,i)[n]()}},_=function(e,t,n){return function(t,r,a,i){return E["kmac"+e].update(t,r,a,i)[n]()}},k=function(e,t,n,r){for(var a=0;a>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function D(e,t,n){N.call(this,e,t,n)}N.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(i);if(null===e)throw new Error(i);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(i);t=!0}for(var r,a,o=this.blocks,s=this.byteCount,c=e.length,u=this.blockCount,f=0,l=this.s;f>2]|=e[f]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|63&a)<=57344?(o[r>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<=s){for(this.start=r-s,this.block=o[u],r=0;r>=8);n>0;)a.unshift(n),n=255&(e>>=8),++r;return t?a.push(r):a.unshift(r),this.update(a),a.length},N.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(i);if(null===e)throw new Error(i);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(i);t=!0}var r=0,a=e.length;if(t)r=a;else for(var o=0;o=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),r+=4)}return r+=this.encode(8*r),this.update(e),r},N.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+l[15&e]+l[e>>12&15]+l[e>>8&15]+l[e>>20&15]+l[e>>16&15]+l[e>>28&15]+l[e>>24&15];o%t==0&&(j(n),i=0)}return a&&(e=n[i],s+=l[e>>4&15]+l[15&e],a>1&&(s+=l[e>>12&15]+l[e>>8&15]),a>2&&(s+=l[e>>20&15]+l[e>>16&15])),s},N.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,a=this.extraBytes,i=0,o=0,s=this.outputBits>>3;e=a?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);o>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%n==0&&j(r)}return i&&(e=s<<2,t=r[o],c[e]=255&t,i>1&&(c[e+1]=t>>8&255),i>2&&(c[e+2]=t>>16&255)),c},D.prototype=new N,D.prototype.finalize=function(){return this.encode(this.outputBits,!0),N.prototype.finalize.call(this)};var j=function(e){var t,n,r,a,i,o,s,c,u,f,d,l,p,b,y,m,v,g,A,w,x,_,k,S,I,E,C,T,O,P,M,B,R,N,D,j,U,L,Z,F,H,z,q,Q,K,V,J,G,W,Y,X,$,ee,te,ne,re,ae,ie,oe,se,ce,ue,fe;for(r=0;r<48;r+=2)a=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(l=e[8]^e[18]^e[28]^e[38]^e[48])^(o<<1|s>>>31),n=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|o>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=a^(c<<1|u>>>31),n=i^(u<<1|c>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=o^(f<<1|d>>>31),n=s^(d<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=c^(l<<1|p>>>31),n=u^(p<<1|l>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(a<<1|i>>>31),n=d^(i<<1|a>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,b=e[0],y=e[1],V=e[11]<<4|e[10]>>>28,J=e[10]<<4|e[11]>>>28,T=e[20]<<3|e[21]>>>29,O=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,N=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,G=e[22]<<10|e[23]>>>22,W=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,M=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,fe=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,j=e[14]<<6|e[15]>>>26,U=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,A=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,B=e[45]<<29|e[44]>>>3,R=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,I=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ae=e[16]<<23|e[17]>>>9,L=e[26]<<25|e[27]>>>7,Z=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,Q=e[8]<<27|e[9]>>>5,K=e[9]<<27|e[8]>>>5,E=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,F=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,_=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=b^~m&g,e[1]=y^~v&A,e[10]=S^~E&T,e[11]=I^~C&O,e[20]=N^~j&L,e[21]=D^~U&Z,e[30]=Q^~V&G,e[31]=K^~J&W,e[40]=te^~re&ie,e[41]=ne^~ae&oe,e[2]=m^~g&w,e[3]=v^~A&x,e[12]=E^~T&P,e[13]=C^~O&M,e[22]=j^~L&F,e[23]=U^~Z&H,e[32]=V^~G&Y,e[33]=J^~W&X,e[42]=re^~ie&se,e[43]=ae^~oe&ce,e[4]=g^~w&_,e[5]=A^~x&k,e[14]=T^~P&B,e[15]=O^~M&R,e[24]=L^~F&z,e[25]=Z^~H&q,e[34]=G^~Y&$,e[35]=W^~X&ee,e[44]=ie^~se&ue,e[45]=oe^~ce&fe,e[6]=w^~_&b,e[7]=x^~k&y,e[16]=P^~B&S,e[17]=M^~R&I,e[26]=F^~z&N,e[27]=H^~q&D,e[36]=Y^~$&Q,e[37]=X^~ee&K,e[46]=se^~ue&te,e[47]=ce^~fe&ne,e[8]=_^~b&m,e[9]=k^~y&v,e[18]=B^~S&E,e[19]=R^~I&C,e[28]=z^~N&j,e[29]=q^~D&U,e[38]=$^~Q&V,e[39]=ee^~K&J,e[48]=ue^~te&re,e[49]=fe^~ne&ae,e[0]^=h[r],e[1]^=h[r+1]};if(u)e.exports=E;else{for(T=0;T>6,c[u++]=128|63&s):s<55296||s>=57344?(c[u++]=224|s>>12,c[u++]=128|s>>6&63,c[u++]=128|63&s):(s=65536+((1023&s)<<10|1023&e.charCodeAt(++d)),c[u++]=240|s>>18,c[u++]=128|s>>12&63,c[u++]=128|s>>6&63,c[u++]=128|63&s);e=c}e.length>128&&(e=new w(n,!0).update(e).array());var l=[],p=[];for(d=0;d<128;++d){var b=e[d]||0;l[d]=92^b,p[d]=54^b}w.call(this,n,r),this.update(p),this.oKeyPad=l,this.inner=!0,this.sharedMemory=r}w.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var n,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(t);if(null===e)throw new Error(t);if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||f&&ArrayBuffer.isView(e)))throw new Error(t);n=!0}for(var a,i,o=0,s=e.length,c=this.blocks;o>2]|=e[o]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|63&a)<=57344?(c[i>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<=128?(this.block=c[32],this.start=i-128,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},w.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[32]=this.block,e[t>>2]|=l[3&t],this.block=e[32],t>=112&&(this.hashed||this.hash(),e[0]=this.block,e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=e[16]=e[17]=e[18]=e[19]=e[20]=e[21]=e[22]=e[23]=e[24]=e[25]=e[26]=e[27]=e[28]=e[29]=e[30]=e[31]=e[32]=0),e[30]=this.hBytes<<3|this.bytes>>>29,e[31]=this.bytes<<3,this.hash()}},w.prototype.hash=function(){var e,t,n,r,a,i,o,s,c,u,f,d,l,p,h,y,m,v,g,A,w,x,_,k,S,I=this.h0h,E=this.h0l,C=this.h1h,T=this.h1l,O=this.h2h,P=this.h2l,M=this.h3h,B=this.h3l,R=this.h4h,N=this.h4l,D=this.h5h,j=this.h5l,U=this.h6h,L=this.h6l,Z=this.h7h,F=this.h7l,H=this.blocks;for(e=32;e<160;e+=2)t=((A=H[e-30])>>>1|(w=H[e-29])<<31)^(A>>>8|w<<24)^A>>>7,n=(w>>>1|A<<31)^(w>>>8|A<<24)^(w>>>7|A<<25),r=((A=H[e-4])>>>19|(w=H[e-3])<<13)^(w>>>29|A<<3)^A>>>6,a=(w>>>19|A<<13)^(A>>>29|w<<3)^(w>>>6|A<<26),A=H[e-32],w=H[e-31],c=((x=H[e-14])>>>16)+(A>>>16)+(t>>>16)+(r>>>16)+((s=(65535&x)+(65535&A)+(65535&t)+(65535&r)+((o=((_=H[e-13])>>>16)+(w>>>16)+(n>>>16)+(a>>>16)+((i=(65535&_)+(65535&w)+(65535&n)+(65535&a))>>>16))>>>16))>>>16),H[e]=c<<16|65535&s,H[e+1]=o<<16|65535&i;var z=I,q=E,Q=C,K=T,V=O,J=P,G=M,W=B,Y=R,X=N,$=D,ee=j,te=U,ne=L,re=Z,ae=F;for(y=Q&V,m=K&J,e=0;e<160;e+=8)t=(z>>>28|q<<4)^(q>>>2|z<<30)^(q>>>7|z<<25),n=(q>>>28|z<<4)^(z>>>2|q<<30)^(z>>>7|q<<25),r=(Y>>>14|X<<18)^(Y>>>18|X<<14)^(X>>>9|Y<<23),a=(X>>>14|Y<<18)^(X>>>18|Y<<14)^(Y>>>9|X<<23),v=(u=z&Q)^z&V^y,g=(f=q&K)^q&J^m,k=Y&$^~Y&te,S=X&ee^~X&ne,A=H[e],w=H[e+1],A=(c=((x=b[e])>>>16)+(A>>>16)+(k>>>16)+(r>>>16)+(re>>>16)+((s=(65535&x)+(65535&A)+(65535&k)+(65535&r)+(65535&re)+((o=((_=b[e+1])>>>16)+(w>>>16)+(S>>>16)+(a>>>16)+(ae>>>16)+((i=(65535&_)+(65535&w)+(65535&S)+(65535&a)+(65535&ae))>>>16))>>>16))>>>16))<<16|65535&s,w=o<<16|65535&i,x=(c=(v>>>16)+(t>>>16)+((s=(65535&v)+(65535&t)+((o=(g>>>16)+(n>>>16)+((i=(65535&g)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,_=o<<16|65535&i,re=(c=(G>>>16)+(A>>>16)+((s=(65535&G)+(65535&A)+((o=(W>>>16)+(w>>>16)+((i=(65535&W)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s,ae=o<<16|65535&i,t=((G=(c=(x>>>16)+(A>>>16)+((s=(65535&x)+(65535&A)+((o=(_>>>16)+(w>>>16)+((i=(65535&_)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(W=o<<16|65535&i)<<4)^(W>>>2|G<<30)^(W>>>7|G<<25),n=(W>>>28|G<<4)^(G>>>2|W<<30)^(G>>>7|W<<25),r=(re>>>14|ae<<18)^(re>>>18|ae<<14)^(ae>>>9|re<<23),a=(ae>>>14|re<<18)^(ae>>>18|re<<14)^(re>>>9|ae<<23),v=(d=G&z)^G&Q^u,g=(l=W&q)^W&K^f,k=re&Y^~re&$,S=ae&X^~ae&ee,A=H[e+2],w=H[e+3],A=(c=((x=b[e+2])>>>16)+(A>>>16)+(k>>>16)+(r>>>16)+(te>>>16)+((s=(65535&x)+(65535&A)+(65535&k)+(65535&r)+(65535&te)+((o=((_=b[e+3])>>>16)+(w>>>16)+(S>>>16)+(a>>>16)+(ne>>>16)+((i=(65535&_)+(65535&w)+(65535&S)+(65535&a)+(65535&ne))>>>16))>>>16))>>>16))<<16|65535&s,w=o<<16|65535&i,x=(c=(v>>>16)+(t>>>16)+((s=(65535&v)+(65535&t)+((o=(g>>>16)+(n>>>16)+((i=(65535&g)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,_=o<<16|65535&i,te=(c=(V>>>16)+(A>>>16)+((s=(65535&V)+(65535&A)+((o=(J>>>16)+(w>>>16)+((i=(65535&J)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s,ne=o<<16|65535&i,t=((V=(c=(x>>>16)+(A>>>16)+((s=(65535&x)+(65535&A)+((o=(_>>>16)+(w>>>16)+((i=(65535&_)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(J=o<<16|65535&i)<<4)^(J>>>2|V<<30)^(J>>>7|V<<25),n=(J>>>28|V<<4)^(V>>>2|J<<30)^(V>>>7|J<<25),r=(te>>>14|ne<<18)^(te>>>18|ne<<14)^(ne>>>9|te<<23),a=(ne>>>14|te<<18)^(ne>>>18|te<<14)^(te>>>9|ne<<23),v=(p=V&G)^V&z^d,g=(h=J&W)^J&q^l,k=te&re^~te&Y,S=ne&ae^~ne&X,A=H[e+4],w=H[e+5],A=(c=((x=b[e+4])>>>16)+(A>>>16)+(k>>>16)+(r>>>16)+($>>>16)+((s=(65535&x)+(65535&A)+(65535&k)+(65535&r)+(65535&$)+((o=((_=b[e+5])>>>16)+(w>>>16)+(S>>>16)+(a>>>16)+(ee>>>16)+((i=(65535&_)+(65535&w)+(65535&S)+(65535&a)+(65535&ee))>>>16))>>>16))>>>16))<<16|65535&s,w=o<<16|65535&i,x=(c=(v>>>16)+(t>>>16)+((s=(65535&v)+(65535&t)+((o=(g>>>16)+(n>>>16)+((i=(65535&g)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,_=o<<16|65535&i,$=(c=(Q>>>16)+(A>>>16)+((s=(65535&Q)+(65535&A)+((o=(K>>>16)+(w>>>16)+((i=(65535&K)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s,ee=o<<16|65535&i,t=((Q=(c=(x>>>16)+(A>>>16)+((s=(65535&x)+(65535&A)+((o=(_>>>16)+(w>>>16)+((i=(65535&_)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(K=o<<16|65535&i)<<4)^(K>>>2|Q<<30)^(K>>>7|Q<<25),n=(K>>>28|Q<<4)^(Q>>>2|K<<30)^(Q>>>7|K<<25),r=($>>>14|ee<<18)^($>>>18|ee<<14)^(ee>>>9|$<<23),a=(ee>>>14|$<<18)^(ee>>>18|$<<14)^($>>>9|ee<<23),v=(y=Q&V)^Q&G^p,g=(m=K&J)^K&W^h,k=$&te^~$&re,S=ee&ne^~ee&ae,A=H[e+6],w=H[e+7],A=(c=((x=b[e+6])>>>16)+(A>>>16)+(k>>>16)+(r>>>16)+(Y>>>16)+((s=(65535&x)+(65535&A)+(65535&k)+(65535&r)+(65535&Y)+((o=((_=b[e+7])>>>16)+(w>>>16)+(S>>>16)+(a>>>16)+(X>>>16)+((i=(65535&_)+(65535&w)+(65535&S)+(65535&a)+(65535&X))>>>16))>>>16))>>>16))<<16|65535&s,w=o<<16|65535&i,x=(c=(v>>>16)+(t>>>16)+((s=(65535&v)+(65535&t)+((o=(g>>>16)+(n>>>16)+((i=(65535&g)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,_=o<<16|65535&i,Y=(c=(z>>>16)+(A>>>16)+((s=(65535&z)+(65535&A)+((o=(q>>>16)+(w>>>16)+((i=(65535&q)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s,X=o<<16|65535&i,z=(c=(x>>>16)+(A>>>16)+((s=(65535&x)+(65535&A)+((o=(_>>>16)+(w>>>16)+((i=(65535&_)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s,q=o<<16|65535&i;c=(I>>>16)+(z>>>16)+((s=(65535&I)+(65535&z)+((o=(E>>>16)+(q>>>16)+((i=(65535&E)+(65535&q))>>>16))>>>16))>>>16),this.h0h=c<<16|65535&s,this.h0l=o<<16|65535&i,c=(C>>>16)+(Q>>>16)+((s=(65535&C)+(65535&Q)+((o=(T>>>16)+(K>>>16)+((i=(65535&T)+(65535&K))>>>16))>>>16))>>>16),this.h1h=c<<16|65535&s,this.h1l=o<<16|65535&i,c=(O>>>16)+(V>>>16)+((s=(65535&O)+(65535&V)+((o=(P>>>16)+(J>>>16)+((i=(65535&P)+(65535&J))>>>16))>>>16))>>>16),this.h2h=c<<16|65535&s,this.h2l=o<<16|65535&i,c=(M>>>16)+(G>>>16)+((s=(65535&M)+(65535&G)+((o=(B>>>16)+(W>>>16)+((i=(65535&B)+(65535&W))>>>16))>>>16))>>>16),this.h3h=c<<16|65535&s,this.h3l=o<<16|65535&i,c=(R>>>16)+(Y>>>16)+((s=(65535&R)+(65535&Y)+((o=(N>>>16)+(X>>>16)+((i=(65535&N)+(65535&X))>>>16))>>>16))>>>16),this.h4h=c<<16|65535&s,this.h4l=o<<16|65535&i,c=(D>>>16)+($>>>16)+((s=(65535&D)+(65535&$)+((o=(j>>>16)+(ee>>>16)+((i=(65535&j)+(65535&ee))>>>16))>>>16))>>>16),this.h5h=c<<16|65535&s,this.h5l=o<<16|65535&i,c=(U>>>16)+(te>>>16)+((s=(65535&U)+(65535&te)+((o=(L>>>16)+(ne>>>16)+((i=(65535&L)+(65535&ne))>>>16))>>>16))>>>16),this.h6h=c<<16|65535&s,this.h6l=o<<16|65535&i,c=(Z>>>16)+(re>>>16)+((s=(65535&Z)+(65535&re)+((o=(F>>>16)+(ae>>>16)+((i=(65535&F)+(65535&ae))>>>16))>>>16))>>>16),this.h7h=c<<16|65535&s,this.h7l=o<<16|65535&i},w.prototype.hex=function(){this.finalize();var e=this.h0h,t=this.h0l,n=this.h1h,r=this.h1l,a=this.h2h,i=this.h2l,o=this.h3h,s=this.h3l,c=this.h4h,u=this.h4l,f=this.h5h,l=this.h5l,p=this.h6h,b=this.h6l,h=this.h7h,y=this.h7l,m=this.bits,v=d[e>>28&15]+d[e>>24&15]+d[e>>20&15]+d[e>>16&15]+d[e>>12&15]+d[e>>8&15]+d[e>>4&15]+d[15&e]+d[t>>28&15]+d[t>>24&15]+d[t>>20&15]+d[t>>16&15]+d[t>>12&15]+d[t>>8&15]+d[t>>4&15]+d[15&t]+d[n>>28&15]+d[n>>24&15]+d[n>>20&15]+d[n>>16&15]+d[n>>12&15]+d[n>>8&15]+d[n>>4&15]+d[15&n]+d[r>>28&15]+d[r>>24&15]+d[r>>20&15]+d[r>>16&15]+d[r>>12&15]+d[r>>8&15]+d[r>>4&15]+d[15&r]+d[a>>28&15]+d[a>>24&15]+d[a>>20&15]+d[a>>16&15]+d[a>>12&15]+d[a>>8&15]+d[a>>4&15]+d[15&a]+d[i>>28&15]+d[i>>24&15]+d[i>>20&15]+d[i>>16&15]+d[i>>12&15]+d[i>>8&15]+d[i>>4&15]+d[15&i]+d[o>>28&15]+d[o>>24&15]+d[o>>20&15]+d[o>>16&15]+d[o>>12&15]+d[o>>8&15]+d[o>>4&15]+d[15&o];return m>=256&&(v+=d[s>>28&15]+d[s>>24&15]+d[s>>20&15]+d[s>>16&15]+d[s>>12&15]+d[s>>8&15]+d[s>>4&15]+d[15&s]),m>=384&&(v+=d[c>>28&15]+d[c>>24&15]+d[c>>20&15]+d[c>>16&15]+d[c>>12&15]+d[c>>8&15]+d[c>>4&15]+d[15&c]+d[u>>28&15]+d[u>>24&15]+d[u>>20&15]+d[u>>16&15]+d[u>>12&15]+d[u>>8&15]+d[u>>4&15]+d[15&u]+d[f>>28&15]+d[f>>24&15]+d[f>>20&15]+d[f>>16&15]+d[f>>12&15]+d[f>>8&15]+d[f>>4&15]+d[15&f]+d[l>>28&15]+d[l>>24&15]+d[l>>20&15]+d[l>>16&15]+d[l>>12&15]+d[l>>8&15]+d[l>>4&15]+d[15&l]),512==m&&(v+=d[p>>28&15]+d[p>>24&15]+d[p>>20&15]+d[p>>16&15]+d[p>>12&15]+d[p>>8&15]+d[p>>4&15]+d[15&p]+d[b>>28&15]+d[b>>24&15]+d[b>>20&15]+d[b>>16&15]+d[b>>12&15]+d[b>>8&15]+d[b>>4&15]+d[15&b]+d[h>>28&15]+d[h>>24&15]+d[h>>20&15]+d[h>>16&15]+d[h>>12&15]+d[h>>8&15]+d[h>>4&15]+d[15&h]+d[y>>28&15]+d[y>>24&15]+d[y>>20&15]+d[y>>16&15]+d[y>>12&15]+d[y>>8&15]+d[y>>4&15]+d[15&y]),v},w.prototype.toString=w.prototype.hex,w.prototype.digest=function(){this.finalize();var e=this.h0h,t=this.h0l,n=this.h1h,r=this.h1l,a=this.h2h,i=this.h2l,o=this.h3h,s=this.h3l,c=this.h4h,u=this.h4l,f=this.h5h,d=this.h5l,l=this.h6h,p=this.h6l,b=this.h7h,h=this.h7l,y=this.bits,m=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,a>>24&255,a>>16&255,a>>8&255,255&a,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o];return y>=256&&m.push(s>>24&255,s>>16&255,s>>8&255,255&s),y>=384&&m.push(c>>24&255,c>>16&255,c>>8&255,255&c,u>>24&255,u>>16&255,u>>8&255,255&u,f>>24&255,f>>16&255,f>>8&255,255&f,d>>24&255,d>>16&255,d>>8&255,255&d),512==y&&m.push(l>>24&255,l>>16&255,l>>8&255,255&l,p>>24&255,p>>16&255,p>>8&255,255&p,b>>24&255,b>>16&255,b>>8&255,255&b,h>>24&255,h>>16&255,h>>8&255,255&h),m},w.prototype.array=w.prototype.digest,w.prototype.arrayBuffer=function(){this.finalize();var e=this.bits,t=new ArrayBuffer(e/8),n=new DataView(t);return n.setUint32(0,this.h0h),n.setUint32(4,this.h0l),n.setUint32(8,this.h1h),n.setUint32(12,this.h1l),n.setUint32(16,this.h2h),n.setUint32(20,this.h2l),n.setUint32(24,this.h3h),e>=256&&n.setUint32(28,this.h3l),e>=384&&(n.setUint32(32,this.h4h),n.setUint32(36,this.h4l),n.setUint32(40,this.h5h),n.setUint32(44,this.h5l)),512==e&&(n.setUint32(48,this.h6h),n.setUint32(52,this.h6l),n.setUint32(56,this.h7h),n.setUint32(60,this.h7l)),t},w.prototype.clone=function(){var e=new w(this.bits,!1);return this.copyTo(e),e},w.prototype.copyTo=function(e){var t=0,n=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(t=0;t>>2]|=r[o]<<24-o%4*8;this.i=i,this.u=a}return Object.defineProperty(e.prototype,"nSigBytes",{get:function(){return this.u},set:function(e){this.u=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"words",{get:function(){return this.i},enumerable:!1,configurable:!0}),e.prototype.toString=function(e){return e?e.stringify(this):function(e){for(var t=e.nSigBytes,n=e.words,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")}(this)},e.prototype.toUint8Array=function(){for(var e=this.i,t=this.u,n=new Uint8Array(t),r=0;r>>2]>>>24-r%4*8&255;return n},e.prototype.concat=function(e){var t=e.words.slice(),n=e.nSigBytes;if(this.clamp(),this.u%4)for(var r=0;r>>2]>>>24-r%4*8&255;this.i[this.u+r>>>2]|=a<<24-(this.u+r)%4*8}else for(r=0;r>>2]=t[r>>>2];return this.u+=n,this},e.prototype.clamp=function(){var e=this.u;this.i[e>>>2]&=4294967295<<32-e%4*8,this.i.length=Math.ceil(e/4)},e.prototype.clone=function(){return new e(this.i.slice(),this.u)},e.random=function(t){for(var n=[],r=0;r>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,o=0;o<4&&a+.75*o>>6*(3-o)&63));var s=c.charAt(64);if(s)for(;r.length%4;)r.push(s);return r.join("")},parse:function(e){var t=e.length,n=c.charAt(64);if(n){var r=e.indexOf(n);-1!==r&&(t=r)}for(var a=[],i=0,o=0;o>>6-o%4*2;a[i>>>2]|=f<<24-i%4*8,i++}return new s(a,i)}};return t}()},95345:function(e,t,n){e.exports=function(){"use strict";var e={3354:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(5720),a=n(9054),i=function(){function e(t,n){if(Array.isArray(t)||!t)return this.t=Array.isArray(t)?t:[],void(this.i="number"==typeof n?n:4*this.t.length);if(t instanceof e)return this.t=t.words.slice(),void(this.i=t.nSigBytes);var r;try{t instanceof ArrayBuffer?r=new Uint8Array(t):(t instanceof Uint8Array||t instanceof Int8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}catch(e){throw new Error("Invalid argument")}if(!r)throw new Error("Invalid argument");for(var a=r.byteLength,i=[],o=0;o>>2]|=r[o]<<24-o%4*8;this.t=i,this.i=a}return Object.defineProperty(e.prototype,"nSigBytes",{get:function(){return this.i},set:function(e){this.i=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"words",{get:function(){return this.t},enumerable:!1,configurable:!0}),e.prototype.toString=function(e){return e?e.stringify(this):r.p.stringify(this)},e.prototype.toUint8Array=function(){for(var e=this.t,t=this.i,n=new Uint8Array(t),r=0;r>>2]>>>24-r%4*8&255;return n},e.prototype.concat=function(e){var t=e.words.slice(),n=e.nSigBytes;if(this.clamp(),this.i%4)for(var r=0;r>>2]>>>24-r%4*8&255;this.t[this.i+r>>>2]|=a<<24-(this.i+r)%4*8}else for(r=0;r>>2]=t[r>>>2];return this.i+=n,this},e.prototype.clamp=function(){var e=this.i;this.t[e>>>2]&=4294967295<<32-e%4*8,this.t.length=Math.ceil(e/4)},e.prototype.clone=function(){return new e(this.t.slice(),this.i)},e.random=function(t){for(var n=[],r=0;r"===e?i>t:">="===e?i>=t:i===t))}},5720:function(e,t,n){n.d(t,{p:function(){return a}});var r=n(3354),a={stringify:function(e){for(var t=e.nSigBytes,n=e.words,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){var t=e.length;if(t%2!=0)throw new Error("Hex string count must be even");if(!/^[a-fA-F0-9]+$/.test(e))throw new Error("Invalid Hex string: "+e);for(var n=[],a=0;a>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new r.e(n,t/2)}}},8702:function(e,t,n){n.d(t,{m:function(){return a}});var r=n(3354),a={stringify:function(e){for(var t=e.nSigBytes,n=e.words,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new r.e(n,t)}}},4768:function(e,t,n){n.d(t,{d:function(){return a}});var r=n(8702),a={stringify:function(e){try{return decodeURIComponent(escape(r.m.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return r.m.parse(unescape(encodeURIComponent(e)))}}},9054:function(e,t,r){r.d(t,{M:function(){return i}});var a=r(1756),i=function(){if("undefined"!=typeof window){var e=window.crypto||window.msCrypto;if(!e){if((0,a.w)("<",11))return console.warn("IE <= 10 uses insecure random generator. Please consider to use IE11 or another modern browser"),function(){return Math.floor(512*Math.random())%256};throw new Error("Crypto module not found")}return function(){return e.getRandomValues(new Uint32Array(1))[0]}}return void 0!==r.g&&r.g.crypto?function(){return r.g.crypto.randomBytes(4).readInt32LE()}:function(){return n(54534).randomBytes(4).readInt32LE()}}()}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"S",{value:!0})};var a={};return function(){r.r(a),r.d(a,{RIPEMD160:function(){return v}});var e,t=r(1868),n=r(3354),i=(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)},function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),o=new n.e([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=new n.e([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=new n.e([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=new n.e([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=new n.e([0,1518500249,1859775393,2400959708,2840853838]),d=new n.e([1352829926,1548603684,1836072691,2053994217,0]);function l(e,t,n){return e^t^n}function p(e,t,n){return e&t|~e&n}function b(e,t,n){return(e|~t)^n}function h(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function m(e,t){return e<>>32-t}var v=function(e){function t(t){var r=e.call(this,t)||this;return r.N=new n.e([1732584193,4023233417,2562383102,271733878,3285377520]),r.v=t,t&&void 0!==t.hash&&(r.N=t.hash.clone()),r}return i(t,e),t.prototype.U=function(){this.N=new n.e([1732584193,4023233417,2562383102,271733878,3285377520])},t.prototype.O=function(e,t){for(var n=0;n<16;n++){var r=t+n,a=e[r];e[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var i,v,g,A,w,x,_,k,S,I,E,C=this.N.words,T=f.words,O=d.words,P=o.words,M=s.words,B=c.words,R=u.words;for(x=i=C[0],_=v=C[1],k=g=C[2],S=A=C[3],I=w=C[4],n=0;n<80;n+=1)E=i+e[t+P[n]]|0,E+=n<16?l(v,g,A)+T[0]:n<32?p(v,g,A)+T[1]:n<48?b(v,g,A)+T[2]:n<64?h(v,g,A)+T[3]:y(v,g,A)+T[4],E=(E=m(E|=0,B[n]))+w|0,i=w,w=A,A=m(g,10),g=v,v=E,E=x+e[t+M[n]]|0,E+=n<16?y(_,k,S)+O[0]:n<32?h(_,k,S)+O[1]:n<48?b(_,k,S)+O[2]:n<64?p(_,k,S)+O[3]:l(_,k,S)+O[4],E=(E=m(E|=0,R[n]))+I|0,x=I,I=S,S=m(k,10),k=_,_=E;E=C[1]+g+S|0,C[1]=C[2]+A+I|0,C[2]=C[3]+w+x|0,C[3]=C[4]+i+_|0,C[4]=C[0]+v+k|0,C[0]=E},t.prototype._=function(){var e=this.l,t=e.words,n=8*this.j,r=8*e.nSigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.nSigBytes=4*(t.length+1),this.I();for(var a=this.N,i=a.words,o=0;o<5;o++){var s=i[o];i[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return a},t.prototype.clone=function(){return new t({hash:this.N,blockSize:this.h,data:this.l,nBytes:this.j})},t.hash=function(e,n){return new t(n).finalize(e)},t}(t.P)}(),a}()},77294:function(e,t,n){e.exports=function(){"use strict";var e={3354:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(5720),a=n(9054),i=function(){function e(t,n){if(Array.isArray(t)||!t)return this.t=Array.isArray(t)?t:[],void(this.i="number"==typeof n?n:4*this.t.length);if(t instanceof e)return this.t=t.words.slice(),void(this.i=t.nSigBytes);var r;try{t instanceof ArrayBuffer?r=new Uint8Array(t):(t instanceof Uint8Array||t instanceof Int8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}catch(e){throw new Error("Invalid argument")}if(!r)throw new Error("Invalid argument");for(var a=r.byteLength,i=[],o=0;o>>2]|=r[o]<<24-o%4*8;this.t=i,this.i=a}return Object.defineProperty(e.prototype,"nSigBytes",{get:function(){return this.i},set:function(e){this.i=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"words",{get:function(){return this.t},enumerable:!1,configurable:!0}),e.prototype.toString=function(e){return e?e.stringify(this):r.p.stringify(this)},e.prototype.toUint8Array=function(){for(var e=this.t,t=this.i,n=new Uint8Array(t),r=0;r>>2]>>>24-r%4*8&255;return n},e.prototype.concat=function(e){var t=e.words.slice(),n=e.nSigBytes;if(this.clamp(),this.i%4)for(var r=0;r>>2]>>>24-r%4*8&255;this.t[this.i+r>>>2]|=a<<24-(this.i+r)%4*8}else for(r=0;r>>2]=t[r>>>2];return this.i+=n,this},e.prototype.clamp=function(){var e=this.i;this.t[e>>>2]&=4294967295<<32-e%4*8,this.t.length=Math.ceil(e/4)},e.prototype.clone=function(){return new e(this.t.slice(),this.i)},e.random=function(t){for(var n=[],r=0;r"===e?i>t:">="===e?i>=t:i===t))}},5720:function(e,t,n){n.d(t,{p:function(){return a}});var r=n(3354),a={stringify:function(e){for(var t=e.nSigBytes,n=e.words,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){var t=e.length;if(t%2!=0)throw new Error("Hex string count must be even");if(!/^[a-fA-F0-9]+$/.test(e))throw new Error("Invalid Hex string: "+e);for(var n=[],a=0;a>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new r.e(n,t/2)}}},8702:function(e,t,n){n.d(t,{m:function(){return a}});var r=n(3354),a={stringify:function(e){for(var t=e.nSigBytes,n=e.words,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new r.e(n,t)}}},4768:function(e,t,n){n.d(t,{d:function(){return a}});var r=n(8702),a={stringify:function(e){try{return decodeURIComponent(escape(r.m.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return r.m.parse(unescape(encodeURIComponent(e)))}}},9054:function(e,t,r){r.d(t,{M:function(){return i}});var a=r(1756),i=function(){if("undefined"!=typeof window){var e=window.crypto||window.msCrypto;if(!e){if((0,a.w)("<",11))return console.warn("IE <= 10 uses insecure random generator. Please consider to use IE11 or another modern browser"),function(){return Math.floor(512*Math.random())%256};throw new Error("Crypto module not found")}return function(){return e.getRandomValues(new Uint32Array(1))[0]}}return void 0!==r.g&&r.g.crypto?function(){return r.g.crypto.randomBytes(4).readInt32LE()}:function(){return n(54534).randomBytes(4).readInt32LE()}}()}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"S",{value:!0})};var a={};return function(){r.r(a),r.d(a,{SHA256:function(){return d}});var e,t=r(1868),n=r(3354),i=(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)},function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),o=[],s=[];function c(e){for(var t=Math.sqrt(e),n=2;n<=t;n++)if(!(e%n))return!1;return!0}function u(e){return 4294967296*(e-(0|e))|0}!function(){for(var e=2,t=0;t<64;)c(e)&&(t<8&&(o[t]=u(Math.pow(e,.5))),s[t]=u(Math.pow(e,1/3)),t++),e++}();var f=[],d=function(e){function t(t){var r=e.call(this,t)||this;return r.N=new n.e(o.slice(0)),r.v=t,t&&void 0!==t.hash&&(r.N=t.hash.clone()),r}return i(t,e),t.prototype.U=function(){this.N=new n.e(o.slice(0))},t.prototype.I=function(e,t){for(var n=this.N.words,r=n[0],a=n[1],i=n[2],o=n[3],c=n[4],u=n[5],d=n[6],l=n[7],p=0;p<64;p++){if(p<16)f[p]=0|e[t+p];else{var b=f[p-15],h=(b<<25|b>>>7)^(b<<14|b>>>18)^b>>>3,y=f[p-2],m=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;f[p]=h+f[p-7]+m+f[p-16]}var v=r&a^r&i^a&i,g=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),A=l+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&d)+s[p]+f[p];l=d,d=u,u=c,c=o+A|0,o=i,i=a,a=r,r=A+(g+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+i|0,n[3]=n[3]+o|0,n[4]=n[4]+c|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+l|0},t.prototype._=function(){var e=this.l.words,t=8*this.A,n=8*this.l.nSigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(t/4294967296),e[15+(n+64>>>9<<4)]=t,this.l.nSigBytes=4*e.length,this.O(),this.N},t.prototype.clone=function(){return new t({hash:this.N,blockSize:this.h,data:this.l,nBytes:this.A})},t.hash=function(e,n){return new t(n).finalize(e)},t}(t.P)}(),a}()},74263:function(e,t,n){e.exports=function(){"use strict";var e={9691:function(e,t,n){n.d(t,{AES:function(){return w}});var r,a=n(9456),i=n(787),o=n(5693),s=n(9109),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n>>8^255&a^99,f[n]=a,d[a]=n;var i=e[n],o=e[i],s=e[o],c=257*e[a]^16843008*a;l[n]=c<<24|c>>>8,p[n]=c<<16|c>>>16,b[n]=c<<8|c>>>24,h[n]=c,c=16843009*s^65537*o^257*i^16843008*n,y[a]=c<<24|c>>>8,m[a]=c<<16|c>>>16,v[a]=c<<8|c>>>24,g[a]=c,n?(n=i^e[e[e[s^i]]],r^=e[e[r]]):n=r=1}}();var A=[0,1,2,4,8,16,32,64,128,27,54],w=function(e){function t(t){var n=e.call(this,t)||this;return n.u=0,n.h=[],n.v=[],n.O=t,n.A(),n}return c(t,e),t.prototype.A=function(){var e;if(!this.u||this.k!==this.H){for(var t=this.k=this.H,n=t.words,r=t.nSigBytes/4,a=4*((this.u=r+6)+1),i=this.h=[],o=0;o6&&o%r==4&&(e=f[e>>>24]<<24|f[e>>>16&255]<<16|f[e>>>8&255]<<8|f[255&e]):(e=f[(e=e<<8|e>>>24)>>>24]<<24|f[e>>>16&255]<<16|f[e>>>8&255]<<8|f[255&e],e^=A[o/r|0]<<24),i[o]=i[o-r]^e);this.v=[];for(var s=0;s>>24]]^m[f[e>>>16&255]]^v[f[e>>>8&255]]^g[f[255&e]]}},t.prototype.encryptBlock=function(e,t){this.B(e,t,this.h,l,p,b,h,f)},t.prototype.decryptBlock=function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this.B(e,t,this.v,y,m,v,g,d),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},t.prototype.B=function(e,t,n,r,a,i,o,s){for(var c=this.u,u=e[t]^n[0],f=e[t+1]^n[1],d=e[t+2]^n[2],l=e[t+3]^n[3],p=4,b=1;b>>24]^a[f>>>16&255]^i[d>>>8&255]^o[255&l]^n[p++],y=r[f>>>24]^a[d>>>16&255]^i[l>>>8&255]^o[255&u]^n[p++],m=r[d>>>24]^a[l>>>16&255]^i[u>>>8&255]^o[255&f]^n[p++],v=r[l>>>24]^a[u>>>16&255]^i[f>>>8&255]^o[255&d]^n[p++];u=h,f=y,d=m,l=v}var g=(s[u>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&l])^n[p++],A=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^n[p++],w=(s[d>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&f])^n[p++],x=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^n[p++];e[t]=g,e[t+1]=A,e[t+2]=w,e[t+3]=x},t.createEncryptor=function(e,n){return new t(u(u({},n=void 0===n?{}:n),{key:e,transformMode:a.t.ENC_TRANSFORM_MODE}))},t.createDecryptor=function(e,n){return new t(u(u({},n=void 0===n?{}:n),{key:e,transformMode:a.t.DEC_TRANSFORM_MODE}))},t.encrypt=function(e,n,r){if("string"==typeof n)return o.E.encrypt(t,e,n,r);if(n.nSigBytes%4!=0)throw new Error("Key size must be multiple of 32bit/4byte/1word");return s.D.encrypt(t,e,n,r)},t.decrypt=function(e,n,r){if("string"==typeof n)return o.E.decrypt(t,e,n,r);if(n.nSigBytes%4!=0)throw new Error("Key size must be multiple of 32bit/4byte/1word");return s.D.decrypt(t,e,n,r)},t.keySize=8,t}(i.G)},3967:function(e,t,n){n.d(t,{CBCMAC:function(){return s}});var r=n(4768),a=n(3354),i=n(9691),o=n(3664);function s(e,t,n,s,c,u){var f=u&&u.Cipher?u.Cipher:i.AES,d="string"==typeof n?r.d.parse(n):n,l=s||new a.e([0,0]),p="string"==typeof t?r.d.parse(t):t,b="string"==typeof e?r.d.parse(e):e,h=c||16;return o.K.mac(f,d,l,p,b,h)}},9910:function(e,t,n){n.d(t,{DES:function(){return h}});var r,a=n(787),i=n(9456),o=n(5693),s=n(9109),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n>>5]>>>31-r%32&1}for(var a=this.I=[],i=0;i<16;i++){var o=a[i]=[],s=l[i];for(n=0;n<24;n++)o[n/6|0]|=t[(d[n]-1+s)%28]<<31-n%6,o[4+(n/6|0)]|=t[28+(d[n+24]-1+s)%28]<<31-n%6;for(o[0]=o[0]<<1|o[0]>>>31,n=1;n<7;n++)o[n]=o[n]>>>4*(n-1)+3;o[7]=o[7]<<5|o[7]>>>27}for(this.U=[],n=0;n<16;n++)this.U[n]=a[15-n]},t.prototype.encryptBlock=function(e,t){this.R(e,t,this.I)},t.prototype.decryptBlock=function(e,t){this.R(e,t,this.U)},t.prototype.R=function(e,t,n){this.L=e[t],this.F=e[t+1],this.X(4,252645135),this.X(16,65535),this.Z(2,858993459),this.Z(8,16711935),this.X(1,1431655765);for(var r=0;r<16;r++){for(var a=n[r],i=this.L,o=this.F,s=0,c=0;c<8;c++){var u=(o^a[c])&b[c];s|=p[c][u>>>0]}this.L=o,this.F=i^s}var f=this.L;this.L=this.F,this.F=f,this.X(1,1431655765),this.Z(8,16711935),this.Z(2,858993459),this.X(16,65535),this.X(4,252645135),e[t]=this.L,e[t+1]=this.F},t.prototype.X=function(e,t){var n=(this.L>>>e^this.F)&t;this.F^=n,this.L^=n<>>e^this.L)&t;this.L^=n,this.F^=n<192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),r=e.length<6?e.slice(0,2):e.slice(4,6);return[s.DES.createEncryptor(new c.e(t)),s.DES.createEncryptor(new c.e(n)),s.DES.createEncryptor(new c.e(r))]},t.prototype.A=function(){var e=this.J();this.Y=e[0],this.$=e[1],this.nn=e[2]},t.prototype.encryptBlock=function(e,t){this.Y.encryptBlock(e,t),this.$.decryptBlock(e,t),this.nn.encryptBlock(e,t)},t.prototype.decryptBlock=function(e,t){this.nn.decryptBlock(e,t),this.$.encryptBlock(e,t),this.Y.decryptBlock(e,t)},t.createEncryptor=function(e,n){return new t(d(d({},n=void 0===n?{}:n),{key:e,transformMode:o.t.ENC_TRANSFORM_MODE}))},t.createDecryptor=function(e,n){return new t(d(d({},n=void 0===n?{}:n),{key:e,transformMode:o.t.DEC_TRANSFORM_MODE}))},t.encrypt=function(e,n,r){return"string"==typeof n?u.E.encrypt(t,e,n,r):a.D.encrypt(t,e,n,r)},t.decrypt=function(e,n,r){return"string"==typeof n?u.E.decrypt(t,e,n,r):a.D.decrypt(t,e,n,r)},t.keySize=6,t.ivSize=2,t}(i.G)},7753:function(e,t,n){n.d(t,{GMAC:function(){return s}});var r=n(4768),a=n(3354),i=n(9691),o=n(5607);function s(e,t,n,s,c){var u="string"==typeof e?r.d.parse(e):e,f=n||new a.e([0,0,0,0]),d=c&&c.Cipher?c.Cipher:i.AES,l="string"==typeof t?r.d.parse(t):t,p=s||16;return o.V.mac(d,l,f,u,void 0,p)}},6367:function(e,t,n){n.d(t,{Hmac:function(){return a}});var r=n(4768),a=function(){function e(e,t){this.tn=e,"string"==typeof t&&(t=r.d.parse(t));var n=e.blockSize,a=4*n;t.nSigBytes>a&&(t=e.finalize(t)),t.clamp();for(var i=this.rn=t.clone(),o=this.en=t.clone(),s=i.words,c=o.words,u=0;u>>32-i)+t}function u(e,t,n,r,a,i,o){var s=e+(t&r|n&~r)+a+o;return(s<>>32-i)+t}function f(e,t,n,r,a,i,o){var s=e+(t^n^r)+a+o;return(s<>>32-i)+t}function d(e,t,n,r,a,i,o){var s=e+(n^(t|~r))+a+o;return(s<>>32-i)+t}!function(){for(var e=0;e<64;e++)s[e]=4294967296*Math.abs(Math.sin(e+1))|0}();var l=function(e){function t(t){var n=e.call(this,t)||this;return n.on=new a.e([1732584193,4023233417,2562383102,271733878]),t&&void 0!==t.hash&&(n.on=t.hash.clone()),n}return o(t,e),t.prototype.A=function(){this.on=new a.e([1732584193,4023233417,2562383102,271733878])},t.prototype.un=function(e,t){for(var n=0;n<16;n++){var r=t+n,a=e[r];e[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var i=this.on.words,o=e[t],l=e[t+1],p=e[t+2],b=e[t+3],h=e[t+4],y=e[t+5],m=e[t+6],v=e[t+7],g=e[t+8],A=e[t+9],w=e[t+10],x=e[t+11],_=e[t+12],k=e[t+13],S=e[t+14],I=e[t+15],E=i[0],C=i[1],T=i[2],O=i[3];E=c(E,C,T,O,o,7,s[0]),O=c(O,E,C,T,l,12,s[1]),T=c(T,O,E,C,p,17,s[2]),C=c(C,T,O,E,b,22,s[3]),E=c(E,C,T,O,h,7,s[4]),O=c(O,E,C,T,y,12,s[5]),T=c(T,O,E,C,m,17,s[6]),C=c(C,T,O,E,v,22,s[7]),E=c(E,C,T,O,g,7,s[8]),O=c(O,E,C,T,A,12,s[9]),T=c(T,O,E,C,w,17,s[10]),C=c(C,T,O,E,x,22,s[11]),E=c(E,C,T,O,_,7,s[12]),O=c(O,E,C,T,k,12,s[13]),T=c(T,O,E,C,S,17,s[14]),E=u(E,C=c(C,T,O,E,I,22,s[15]),T,O,l,5,s[16]),O=u(O,E,C,T,m,9,s[17]),T=u(T,O,E,C,x,14,s[18]),C=u(C,T,O,E,o,20,s[19]),E=u(E,C,T,O,y,5,s[20]),O=u(O,E,C,T,w,9,s[21]),T=u(T,O,E,C,I,14,s[22]),C=u(C,T,O,E,h,20,s[23]),E=u(E,C,T,O,A,5,s[24]),O=u(O,E,C,T,S,9,s[25]),T=u(T,O,E,C,b,14,s[26]),C=u(C,T,O,E,g,20,s[27]),E=u(E,C,T,O,k,5,s[28]),O=u(O,E,C,T,p,9,s[29]),T=u(T,O,E,C,v,14,s[30]),E=f(E,C=u(C,T,O,E,_,20,s[31]),T,O,y,4,s[32]),O=f(O,E,C,T,g,11,s[33]),T=f(T,O,E,C,x,16,s[34]),C=f(C,T,O,E,S,23,s[35]),E=f(E,C,T,O,l,4,s[36]),O=f(O,E,C,T,h,11,s[37]),T=f(T,O,E,C,v,16,s[38]),C=f(C,T,O,E,w,23,s[39]),E=f(E,C,T,O,k,4,s[40]),O=f(O,E,C,T,o,11,s[41]),T=f(T,O,E,C,b,16,s[42]),C=f(C,T,O,E,m,23,s[43]),E=f(E,C,T,O,A,4,s[44]),O=f(O,E,C,T,_,11,s[45]),T=f(T,O,E,C,I,16,s[46]),E=d(E,C=f(C,T,O,E,p,23,s[47]),T,O,o,6,s[48]),O=d(O,E,C,T,v,10,s[49]),T=d(T,O,E,C,S,15,s[50]),C=d(C,T,O,E,y,21,s[51]),E=d(E,C,T,O,_,6,s[52]),O=d(O,E,C,T,b,10,s[53]),T=d(T,O,E,C,w,15,s[54]),C=d(C,T,O,E,l,21,s[55]),E=d(E,C,T,O,g,6,s[56]),O=d(O,E,C,T,I,10,s[57]),T=d(T,O,E,C,m,15,s[58]),C=d(C,T,O,E,k,21,s[59]),E=d(E,C,T,O,h,6,s[60]),O=d(O,E,C,T,x,10,s[61]),T=d(T,O,E,C,p,15,s[62]),C=d(C,T,O,E,A,21,s[63]),i[0]=i[0]+E|0,i[1]=i[1]+C|0,i[2]=i[2]+T|0,i[3]=i[3]+O|0},t.prototype.fn=function(){var e=this.cn,t=e.words,n=8*this.sn,r=8*e.nSigBytes;t[r>>>5]|=128<<24-r%32;var a=Math.floor(n/4294967296),i=n;t[15+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t[14+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.nSigBytes=4*(t.length+1),this.an();for(var o=this.on,s=o.words,c=0;c<4;c++){var u=s[c];s[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return o},t.prototype.clone=function(){return new t({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e){return(new t).finalize(e)},t}(i.P)},4615:function(e,t,n){n.d(t,{RC4:function(){return u}});var r,a=n(30),i=n(5693),o=n(9109),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n>>2]>>>24-i%4*8&255;a=(a+this.S[r]+o)%256;var s=this.S[r];this.S[r]=this.S[a],this.S[a]=s}this.i=this.j=0},t.prototype.un=function(e,t){e[t]^=this.generateKeyStreamWord()},t.prototype.generateKeyStreamWord=function(){for(var e=this.S,t=this.i,n=this.j,r=0,a=0;a<4;a++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*a}return this.i=t,this.j=n,r},t.createEncryptor=function(e,n){return new t(c(c({},n=void 0===n?{}:n),{key:e}))},t.createDecryptor=function(e,n){return new t(c(c({},n=void 0===n?{}:n),{key:e}))},t.encrypt=function(e,n,r){return"string"==typeof n?i.E.encrypt(t,e,n,r):o.D.encrypt(t,e,n,r)},t.decrypt=function(e,n,r){return"string"==typeof n?i.E.decrypt(t,e,n,r):o.D.decrypt(t,e,n,r)},t.ivSize=0,t.keySize=8,t}(a.q)},9639:function(e,t,n){n.d(t,{RC4Drop:function(){return u}});var r,a=n(5693),i=n(9109),o=n(4615),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0;t--)this.generateKeyStreamWord()},t.createEncryptor=function(e,n){return new t(c(c({},n=void 0===n?{}:n),{key:e}))},t.createDecryptor=function(e,n){return new t(c(c({},n=void 0===n?{}:n),{key:e}))},t.encrypt=function(e,n,r){return"string"==typeof n?a.E.encrypt(t,e,n,r):i.D.encrypt(t,e,n,r)},t.decrypt=function(e,n,r){return"string"==typeof n?a.E.decrypt(t,e,n,r):i.D.decrypt(t,e,n,r)},t}(o.RC4)},7104:function(e,t,n){n.d(t,{RIPEMD160:function(){return g}});var r,a=n(1868),i=n(3354),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=new i.e([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=new i.e([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=new i.e([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),f=new i.e([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=new i.e([0,1518500249,1859775393,2400959708,2840853838]),l=new i.e([1352829926,1548603684,1836072691,2053994217,0]);function p(e,t,n){return e^t^n}function b(e,t,n){return e&t|~e&n}function h(e,t,n){return(e|~t)^n}function y(e,t,n){return e&n|t&~n}function m(e,t,n){return e^(t|~n)}function v(e,t){return e<>>32-t}var g=function(e){function t(t){var n=e.call(this,t)||this;return n.on=new i.e([1732584193,4023233417,2562383102,271733878,3285377520]),n.O=t,t&&void 0!==t.hash&&(n.on=t.hash.clone()),n}return o(t,e),t.prototype.A=function(){this.on=new i.e([1732584193,4023233417,2562383102,271733878,3285377520])},t.prototype.un=function(e,t){for(var n=0;n<16;n++){var r=t+n,a=e[r];e[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var i,o,g,A,w,x,_,k,S,I,E,C=this.on.words,T=d.words,O=l.words,P=s.words,M=c.words,B=u.words,R=f.words;for(x=i=C[0],_=o=C[1],k=g=C[2],S=A=C[3],I=w=C[4],n=0;n<80;n+=1)E=i+e[t+P[n]]|0,E+=n<16?p(o,g,A)+T[0]:n<32?b(o,g,A)+T[1]:n<48?h(o,g,A)+T[2]:n<64?y(o,g,A)+T[3]:m(o,g,A)+T[4],E=(E=v(E|=0,B[n]))+w|0,i=w,w=A,A=v(g,10),g=o,o=E,E=x+e[t+M[n]]|0,E+=n<16?m(_,k,S)+O[0]:n<32?y(_,k,S)+O[1]:n<48?h(_,k,S)+O[2]:n<64?b(_,k,S)+O[3]:p(_,k,S)+O[4],E=(E=v(E|=0,R[n]))+I|0,x=I,I=S,S=v(k,10),k=_,_=E;E=C[1]+g+S|0,C[1]=C[2]+A+I|0,C[2]=C[3]+w+x|0,C[3]=C[4]+i+_|0,C[4]=C[0]+o+k|0,C[0]=E},t.prototype.fn=function(){var e=this.cn,t=e.words,n=8*this.sn,r=8*e.nSigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.nSigBytes=4*(t.length+1),this.an();for(var a=this.on,i=a.words,o=0;o<5;o++){var s=i[o];i[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return a},t.prototype.clone=function(){return new t({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e,n){return new t(n).finalize(e)},t}(a.P)},5187:function(e,t,n){n.d(t,{Rabbit:function(){return u}});var r,a=n(30),i=n(5693),o=n(9109),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this.hn=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this.vn=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this.wn=0,n=0;n<4;n++)this.nextState();for(n=0;n<8;n++)a[n]^=r[n+4&7];if(t){var i=t.words,o=i[0],s=i[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=c>>>16|4294901760&u,d=u<<16|65535&c;for(a[0]^=c,a[1]^=f,a[2]^=u,a[3]^=d,a[4]^=c,a[5]^=f,a[6]^=u,a[7]^=d,n=0;n<4;n++)this.nextState()}},t.prototype.un=function(e,t){var n=this.hn;this.nextState(),this.S[0]=n[0]^n[5]>>>16^n[3]<<16,this.S[1]=n[2]^n[7]>>>16^n[5]<<16,this.S[2]=n[4]^n[1]>>>16^n[7]<<16,this.S[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)this.S[r]=16711935&(this.S[r]<<8|this.S[r]>>>24)|4278255360&(this.S[r]<<24|this.S[r]>>>8),e[t+r]^=this.S[r]},t.prototype.nextState=function(){for(var e=this.hn,t=this.vn,n=0;n<8;n++)this.C[n]=t[n];for(t[0]=t[0]+1295307597+this.wn|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this.wn=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],a=65535&r,i=r>>>16,o=((a*a>>>17)+a*i>>>15)+i*i,s=((4294901760&r)*r|0)+((65535&r)*r|0);this.G[n]=o^s}var c=this.G;e[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,e[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,e[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,e[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,e[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,e[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,e[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,e[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0},t.createEncryptor=function(e,n){return new t(c(c({},n=void 0===n?{}:n),{key:e}))},t.createDecryptor=function(e,n){return new t(c(c({},n=void 0===n?{}:n),{key:e}))},t.encrypt=function(e,n,r){return"string"==typeof n?i.E.encrypt(t,e,n,r):o.D.encrypt(t,e,n,r)},t.decrypt=function(e,n,r){return"string"==typeof n?i.E.decrypt(t,e,n,r):o.D.decrypt(t,e,n,r)},t.ivSize=4,t}(a.q)},3173:function(e,t,n){n.d(t,{SHA1:function(){return c}});var r,a=n(1868),i=n(3354),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=[],c=function(e){function t(t){var n=e.call(this,t)||this;return n.on=new i.e([1732584193,4023233417,2562383102,271733878,3285377520]),n.O=t,t&&void 0!==t.hash&&(n.on=t.hash.clone()),n}return o(t,e),t.prototype.A=function(){this.on=new i.e([1732584193,4023233417,2562383102,271733878,3285377520])},t.prototype.un=function(e,t){for(var n=this.on.words,r=n[0],a=n[1],i=n[2],o=n[3],c=n[4],u=0;u<80;u++){if(u<16)s[u]=0|e[t+u];else{var f=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=f<<1|f>>>31}var d=(r<<5|r>>>27)+c+s[u];d+=u<20?1518500249+(a&i|~a&o):u<40?1859775393+(a^i^o):u<60?(a&i|a&o|i&o)-1894007588:(a^i^o)-899497514,c=o,o=i,i=a<<30|a>>>2,a=r,r=d}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+i|0,n[3]=n[3]+o|0,n[4]=n[4]+c|0},t.prototype.fn=function(){var e=this.cn.words,t=8*this.sn,n=8*this.cn.nSigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(t/4294967296),e[15+(n+64>>>9<<4)]=t,this.cn.nSigBytes=4*e.length,this.an(),this.on},t.prototype.clone=function(){return new t({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e,n){return new t(n).finalize(e)},t}(a.P)},766:function(e,t,n){n.d(t,{SHA224:function(){return s}});var r,a=n(3354),i=n(5561),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=e.call(this,t)||this;return n.on=new a.e([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),n.O=t,t&&void 0!==t.hash&&(n.on=t.hash.clone()),n}return o(t,e),t.prototype.A=function(){this.on=new a.e([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},t.prototype.fn=function(){var t=e.prototype.fn.call(this);return t.nSigBytes-=4,t},t.prototype.clone=function(){return new t({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e,n){return new t(n).finalize(e)},t}(i.SHA256)},5561:function(e,t,n){n.d(t,{SHA256:function(){return l}});var r,a=n(1868),i=n(3354),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=[],c=[];function u(e){for(var t=Math.sqrt(e),n=2;n<=t;n++)if(!(e%n))return!1;return!0}function f(e){return 4294967296*(e-(0|e))|0}!function(){for(var e=2,t=0;t<64;)u(e)&&(t<8&&(s[t]=f(Math.pow(e,.5))),c[t]=f(Math.pow(e,1/3)),t++),e++}();var d=[],l=function(e){function t(t){var n=e.call(this,t)||this;return n.on=new i.e(s.slice(0)),n.O=t,t&&void 0!==t.hash&&(n.on=t.hash.clone()),n}return o(t,e),t.prototype.A=function(){this.on=new i.e(s.slice(0))},t.prototype.un=function(e,t){for(var n=this.on.words,r=n[0],a=n[1],i=n[2],o=n[3],s=n[4],u=n[5],f=n[6],l=n[7],p=0;p<64;p++){if(p<16)d[p]=0|e[t+p];else{var b=d[p-15],h=(b<<25|b>>>7)^(b<<14|b>>>18)^b>>>3,y=d[p-2],m=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;d[p]=h+d[p-7]+m+d[p-16]}var v=r&a^r&i^a&i,g=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),A=l+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&f)+c[p]+d[p];l=f,f=u,u=s,s=o+A|0,o=i,i=a,a=r,r=A+(g+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+i|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+f|0,n[7]=n[7]+l|0},t.prototype.fn=function(){var e=this.cn.words,t=8*this.sn,n=8*this.cn.nSigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(t/4294967296),e[15+(n+64>>>9<<4)]=t,this.cn.nSigBytes=4*e.length,this.an(),this.on},t.prototype.clone=function(){return new t({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e,n){return new t(n).finalize(e)},t}(a.P)},3408:function(e,t,n){n.d(t,{SHA3:function(){return l}});var r,a=n(6957),i=n(1868),o=n(3354),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=[],u=[],f=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(var i=0;i<5;i++)for(var o=0;o<5;o++)u[i+5*o]=o+(2*i+3*o)%5*5;for(var s=1,d=0;d<24;d++){for(var l=0,p=0,b=0;b<7;b++){if(1&s){var h=(1<>>24)|4278255360&(i<<24|i>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[a].high^=o,n[a].low^=i}for(var s=0;s<24;s++){for(var l=0;l<5;l++){for(var p=0,b=0,h=0;h<5;h++)p^=(C=n[l+5*h]).high,b^=C.low;var y=d[l];y.high=p,y.low=b}for(l=0;l<5;l++){var m=d[(l+4)%5],v=d[(l+1)%5],g=v.high,A=v.low;for(p=m.high^(g<<1|A>>>31),b=m.low^(A<<1|g>>>31),h=0;h<5;h++)(C=n[l+5*h]).high^=p,C.low^=b}for(var w=1;w<25;w++){p=void 0,b=void 0;var x=n[w].high,_=n[w].low,k=c[w];k<32?(p=x<>>32-k,b=_<>>32-k):(p=_<>>64-k,b=x<>>64-k);var S=d[u[w]];S.high=p,S.low=b}var I=d[0],E=n[0];for(I.high=E.high,I.low=E.low,l=0;l<5;l++)for(h=0;h<5;h++){var C=n[w=l+5*h],T=d[w],O=d[(l+1)%5+5*h],P=d[(l+2)%5+5*h];C.high=T.high^~O.high&P.high,C.low=T.low^~O.low&P.low}var M=n[0],B=f[s];M.high^=B.high,M.low^=B.low}},t.prototype.fn=function(){var e=this.cn,t=e.words,n=8*e.nSigBytes,r=32*this.blockSize;t[n>>>5]|=1<<24-n%32,t[(Math.ceil((n+1)/r)*r>>>5)-1]|=128,e.nSigBytes=4*t.length,this.an();for(var a=this.bn,i=this.dn/8,s=i/8,c=[],u=0;u>>24)|4278255360&(d<<24|d>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),c.push(l),c.push(d)}return new o.e(c,i)},t.prototype.clone=function(){return new t({outputLength:this.dn,state:this.bn,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e,n){return new t(n).finalize(e)},t}(i.P)},6324:function(e,t,n){n.d(t,{SHA384:function(){return s}});var r,a=n(6957),i=n(7491),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=e.call(this,t)||this;return n.on=new a.m([new a.r(3418070365,3238371032),new a.r(1654270250,914150663),new a.r(2438529370,812702999),new a.r(355462360,4144912697),new a.r(1731405415,4290775857),new a.r(2394180231,1750603025),new a.r(3675008525,1694076839),new a.r(1203062813,3204075428)]),n.O=t,t&&void 0!==t.hash&&(n.on=t.hash.clone()),n}return o(t,e),t.prototype.A=function(){this.on=new a.m([new a.r(3418070365,3238371032),new a.r(1654270250,914150663),new a.r(2438529370,812702999),new a.r(355462360,4144912697),new a.r(1731405415,4290775857),new a.r(2394180231,1750603025),new a.r(3675008525,1694076839),new a.r(1203062813,3204075428)])},t.prototype.fn=function(){var t=e.prototype.fn.call(this);return t.nSigBytes-=16,t},t.prototype.clone=function(){return new t({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e,n){return new t(n).finalize(e)},t}(i.SHA512)},7491:function(e,t,n){n.d(t,{SHA512:function(){return u}});var r,a=n(1868),i=n(6957),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=[new i.r(1116352408,3609767458),new i.r(1899447441,602891725),new i.r(3049323471,3964484399),new i.r(3921009573,2173295548),new i.r(961987163,4081628472),new i.r(1508970993,3053834265),new i.r(2453635748,2937671579),new i.r(2870763221,3664609560),new i.r(3624381080,2734883394),new i.r(310598401,1164996542),new i.r(607225278,1323610764),new i.r(1426881987,3590304994),new i.r(1925078388,4068182383),new i.r(2162078206,991336113),new i.r(2614888103,633803317),new i.r(3248222580,3479774868),new i.r(3835390401,2666613458),new i.r(4022224774,944711139),new i.r(264347078,2341262773),new i.r(604807628,2007800933),new i.r(770255983,1495990901),new i.r(1249150122,1856431235),new i.r(1555081692,3175218132),new i.r(1996064986,2198950837),new i.r(2554220882,3999719339),new i.r(2821834349,766784016),new i.r(2952996808,2566594879),new i.r(3210313671,3203337956),new i.r(3336571891,1034457026),new i.r(3584528711,2466948901),new i.r(113926993,3758326383),new i.r(338241895,168717936),new i.r(666307205,1188179964),new i.r(773529912,1546045734),new i.r(1294757372,1522805485),new i.r(1396182291,2643833823),new i.r(1695183700,2343527390),new i.r(1986661051,1014477480),new i.r(2177026350,1206759142),new i.r(2456956037,344077627),new i.r(2730485921,1290863460),new i.r(2820302411,3158454273),new i.r(3259730800,3505952657),new i.r(3345764771,106217008),new i.r(3516065817,3606008344),new i.r(3600352804,1432725776),new i.r(4094571909,1467031594),new i.r(275423344,851169720),new i.r(430227734,3100823752),new i.r(506948616,1363258195),new i.r(659060556,3750685593),new i.r(883997877,3785050280),new i.r(958139571,3318307427),new i.r(1322822218,3812723403),new i.r(1537002063,2003034995),new i.r(1747873779,3602036899),new i.r(1955562222,1575990012),new i.r(2024104815,1125592928),new i.r(2227730452,2716904306),new i.r(2361852424,442776044),new i.r(2428436474,593698344),new i.r(2756734187,3733110249),new i.r(3204031479,2999351573),new i.r(3329325298,3815920427),new i.r(3391569614,3928383900),new i.r(3515267271,566280711),new i.r(3940187606,3454069534),new i.r(4118630271,4000239992),new i.r(116418474,1914138554),new i.r(174292421,2731055270),new i.r(289380356,3203993006),new i.r(460393269,320620315),new i.r(685471733,587496836),new i.r(852142971,1086792851),new i.r(1017036298,365543100),new i.r(1126000580,2618297676),new i.r(1288033470,3409855158),new i.r(1501505948,4234509866),new i.r(1607167915,987167468),new i.r(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=new i.r(0,0)}();var u=function(e){function t(t){var n=e.call(this,t)||this;return n.N=32,n.on=new i.m([new i.r(1779033703,4089235720),new i.r(3144134277,2227873595),new i.r(1013904242,4271175723),new i.r(2773480762,1595750129),new i.r(1359893119,2917565137),new i.r(2600822924,725511199),new i.r(528734635,4215389547),new i.r(1541459225,327033209)]),n.O=t,t&&void 0!==t.hash&&(n.on=t.hash.clone()),n}return o(t,e),t.prototype.A=function(){this.on=new i.m([new i.r(1779033703,4089235720),new i.r(3144134277,2227873595),new i.r(1013904242,4271175723),new i.r(2773480762,1595750129),new i.r(1359893119,2917565137),new i.r(2600822924,725511199),new i.r(528734635,4215389547),new i.r(1541459225,327033209)])},t.prototype.un=function(e,t){for(var n=this.on.words,r=n[0],a=n[1],i=n[2],o=n[3],u=n[4],f=n[5],d=n[6],l=n[7],p=r.high,b=r.low,h=a.high,y=a.low,m=i.high,v=i.low,g=o.high,A=o.low,w=u.high,x=u.low,_=f.high,k=f.low,S=d.high,I=d.low,E=l.high,C=l.low,T=p,O=b,P=h,M=y,B=m,R=v,N=g,D=A,j=w,U=x,L=_,Z=k,F=S,H=I,z=E,q=C,Q=0;Q<80;Q++){var K=void 0,V=void 0,J=c[Q];if(Q<16)V=J.high=0|e[t+2*Q],K=J.low=0|e[t+2*Q+1];else{var G=c[Q-15],W=G.high,Y=G.low,X=(W>>>1|Y<<31)^(W>>>8|Y<<24)^W>>>7,$=(Y>>>1|W<<31)^(Y>>>8|W<<24)^(Y>>>7|W<<25),ee=c[Q-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ae=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=c[Q-7],oe=ie.high,se=ie.low,ce=c[Q-16],ue=ce.high,fe=ce.low;V=(V=(V=X+oe+((K=$+se)>>>0<$>>>0?1:0))+re+((K+=ae)>>>0>>0?1:0))+ue+((K+=fe)>>>0>>0?1:0),J.high=V,J.low=K}var de=j&L^~j&F,le=U&Z^~U&H,pe=T&P^T&B^P&B,be=O&M^O&R^M&R,he=(T>>>28|O<<4)^(T<<30|O>>>2)^(T<<25|O>>>7),ye=(O>>>28|T<<4)^(O<<30|T>>>2)^(O<<25|T>>>7),me=(j>>>14|U<<18)^(j>>>18|U<<14)^(j<<23|U>>>9),ve=(U>>>14|j<<18)^(U>>>18|j<<14)^(U<<23|j>>>9),ge=s[Q],Ae=ge.high,we=ge.low,xe=q+ve,_e=z+me+(xe>>>0>>0?1:0),ke=ye+be;z=F,q=H,F=L,H=Z,L=j,Z=U,j=N+(_e=(_e=(_e=_e+de+((xe+=le)>>>0>>0?1:0))+Ae+((xe+=we)>>>0>>0?1:0))+V+((xe+=K)>>>0>>0?1:0))+((U=D+xe|0)>>>0>>0?1:0)|0,N=B,D=R,B=P,R=M,P=T,M=O,T=_e+(he+pe+(ke>>>0>>0?1:0))+((O=xe+ke|0)>>>0>>0?1:0)|0}b=r.low=b+O,r.high=p+T+(b>>>0>>0?1:0),y=a.low=y+M,a.high=h+P+(y>>>0>>0?1:0),v=i.low=v+R,i.high=m+B+(v>>>0>>0?1:0),A=o.low=A+D,o.high=g+N+(A>>>0>>0?1:0),x=u.low=x+U,u.high=w+j+(x>>>0>>0?1:0),k=f.low=k+Z,f.high=_+L+(k>>>0>>0?1:0),I=d.low=I+H,d.high=S+F+(I>>>0>>0?1:0),C=l.low=C+q,l.high=E+z+(C>>>0>>0?1:0)},t.prototype.fn=function(){var e=this.cn,t=e.words,n=8*this.sn,r=8*e.nSigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.nSigBytes=4*t.length,this.an(),this.on.to32()},t.prototype.clone=function(){return new t({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e,n){return new t(n).finalize(e)},t}(a.P)},3354:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(5720),a=n(9054),i=function(){function e(t,n){if(Array.isArray(t)||!t)return this.yn=Array.isArray(t)?t:[],void(this.pn="number"==typeof n?n:4*this.yn.length);if(t instanceof e)return this.yn=t.words.slice(),void(this.pn=t.nSigBytes);var r;try{t instanceof ArrayBuffer?r=new Uint8Array(t):(t instanceof Uint8Array||t instanceof Int8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}catch(e){throw new Error("Invalid argument")}if(!r)throw new Error("Invalid argument");for(var a=r.byteLength,i=[],o=0;o>>2]|=r[o]<<24-o%4*8;this.yn=i,this.pn=a}return Object.defineProperty(e.prototype,"nSigBytes",{get:function(){return this.pn},set:function(e){this.pn=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"words",{get:function(){return this.yn},enumerable:!1,configurable:!0}),e.prototype.toString=function(e){return e?e.stringify(this):r.p.stringify(this)},e.prototype.toUint8Array=function(){for(var e=this.yn,t=this.pn,n=new Uint8Array(t),r=0;r>>2]>>>24-r%4*8&255;return n},e.prototype.concat=function(e){var t=e.words.slice(),n=e.nSigBytes;if(this.clamp(),this.pn%4)for(var r=0;r>>2]>>>24-r%4*8&255;this.yn[this.pn+r>>>2]|=a<<24-(this.pn+r)%4*8}else for(r=0;r>>2]=t[r>>>2];return this.pn+=n,this},e.prototype.clamp=function(){var e=this.pn;this.yn[e>>>2]&=4294967295<<32-e%4*8,this.yn.length=Math.ceil(e/4)},e.prototype.clone=function(){return new e(this.yn.slice(),this.pn)},e.random=function(t){for(var n=[],r=0;r0&&a.push(0),e.concat(new r.e(a,n))}}function i(e,t){return new r.e(e.words.slice(),t)}function o(e,t){for(var n=e.nSigBytes-t,a=[],i=0;i>>2,s=n+i,c=s>>>2,u=e.words[c]>>>24-s%4*8&255;a[o]=0|a[o]|u<<24-i%4*8}var f=new r.e(a,t);return f.clamp(),f}},7919:function(e,t,n){n.d(t,{l:function(){return a}});var r=n(3354),a={pad:function(e,t){for(var n=4*t,a=n-e.nSigBytes%n,i=a<<24|a<<16|a<<8|a,o=[],s=0;s>>2];e.nSigBytes-=t}}},1756:function(e,t,n){n.d(t,{w:function(){return o}});var r,a="undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():"",i=(r=parseInt((/msie (\d+)/.exec(a)||[])[1],10),isNaN(r)?(r=parseInt((/trident\/.*; rv:(\d+)/.exec(a)||[])[1],10),!isNaN(r)&&r):r);function o(e,t){return!1!==i&&(!t||("<"===e?i"===e?i>t:">="===e?i>=t:i===t))}},1773:function(e,t,n){n.d(t,{D:function(){return s}});for(var r=n(3354),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i=[],o=0;o>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s>>6*(3-s)&63));var c=a.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(e){var t=e.length,n=a.charAt(64);if(n){var o=e.indexOf(n);-1!==o&&(t=o)}for(var s=[],c=0,u=0;u>>6-u%4*2;s[c>>>2]|=f<<24-c%4*8,c++}return new r.e(s,c)}}},5720:function(e,t,n){n.d(t,{p:function(){return a}});var r=n(3354),a={stringify:function(e){for(var t=e.nSigBytes,n=e.words,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){var t=e.length;if(t%2!=0)throw new Error("Hex string count must be even");if(!/^[a-fA-F0-9]+$/.test(e))throw new Error("Invalid Hex string: "+e);for(var n=[],a=0;a>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new r.e(n,t/2)}}},8702:function(e,t,n){n.d(t,{m:function(){return a}});var r=n(3354),a={stringify:function(e){for(var t=e.nSigBytes,n=e.words,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new r.e(n,t)}}},4768:function(e,t,n){n.d(t,{d:function(){return a}});var r=n(8702),a={stringify:function(e){try{return decodeURIComponent(escape(r.m.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return r.m.parse(unescape(encodeURIComponent(e)))}}},2688:function(e,t,n){n.d(t,{Base64:function(){return i.D},EvpKDF:function(){return g},Hex:function(){return c.p},Latin1:function(){return s.m},OpenSSLKDF:function(){return b.s},PBKDF2:function(){return h.E},Utf16:function(){return p},Utf16BE:function(){return u},Utf16LE:function(){return l},Utf8:function(){return o.d},Word32Array:function(){return r.e},Word64:function(){return a.r},Word64Array:function(){return a.m}}),n(9054);var r=n(3354),a=n(6957),i=(n(1756),n(1773)),o=n(4768),s=n(8702),c=n(5720),u={stringify:function(e){for(var t=e.words,n=e.nSigBytes,r=[],a=0;a>>2]>>>16-a%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a>>1]|=e.charCodeAt(a)<<16-a%2*16;return new r.e(n,2*t)}};function f(e){return e<<8&4278255360|e>>>8&16711935}var d,l={stringify:function(e){for(var t=e.words,n=e.nSigBytes,r=[],a=0;a>>2]>>>16-a%4*8&65535);r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a>>1]|=f(e.charCodeAt(a)<<16-a%2*16);return new r.e(n,2*t)}},p=u,b=n(2214),h=n(7008),y=n(670),m=n(9541),v=(d=function(e,t){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e){function t(t){var n=e.call(this,t)||this;return n.Sn=4,n.Mn=y.MD5,n.kn=1,t&&(n.Sn=void 0!==t.keySize?t.keySize:n.Sn,n.Mn=void 0!==t.Hasher?t.Hasher:n.Mn,n.kn=void 0!==t.iterations?t.iterations:n.kn),n}return v(t,e),t.prototype.compute=function(e,t){for(var n,a=new this.Mn,i=new r.e,o=i.words,s=this.Sn,c=this.kn;o.length13||a.nSigBytes<7))throw new Error("Byte size of iv must be between 7 and 13");return n.Nn=a||new i.e([0,0],8),n.In=15-n.Nn.nSigBytes,n}return s(t,e),t.getB0=function(e,t,n,r){if(n.nSigBytes+r.nSigBytes!==15)throw new Error("LEN(Q)+LEN(N) must be 15");var a=255&(0|(e?1:0)<<6|(t-2)/2<<3|n.nSigBytes-1),o=r.clone().concat(n);return new i.e([a<<24],1).concat(o)},t.formatAssociatedDataAndPayload=function(e,t){var n,r=e.nSigBytes;if(0===r)n=new i.e([0],0);else if(r4?(a.concat(new i.e([0],e%4)),a.concat(new i.e([n],4))):a.concat(new i.e([n<<32-8*e],e)):a.concat(new i.e([n],4)),r.concat(t).concat(a)},t.mac=function(e,n,r,a,s,c){var u=new e({key:n,iv:r});if(4!==u.blockSize)throw new Error("In CCM, cipher block size must be 128bit");if(r&&(r.nSigBytes>13||r.nSigBytes<7))throw new Error("Byte size of iv must be between 7 and 13");var f=r||new i.e([0,0],8),d=(null==a?void 0:a.clone())||new i.e,l=d.nSigBytes,p=(null==s?void 0:s.clone())||new i.e,b=p.nSigBytes;if(b>>>0>4294967295)throw new Error("Byte length of Payload(plainText) larger than 2^32-1 (4,294,967,295byte) is not supported at this time.");var h=15-f.nSigBytes,y=(0,o.ur)(new i.e([0,b],8),h),m=c||16,v=t.getB0(Boolean(l),m,y,f),g=t.formatAssociatedDataAndPayload(d,p),A=v.words.slice();u.encryptBlock(A,0);for(var w=g.nSigBytes/16,x=g.words,_=A,k=0;k0?4-n.length%4:0,i=n.slice(),o=0;o>>0,r=n+1>>>0>>0,i=a+1>>>0>>5]>>>31-i%32&1)>0&&(r[0]=r[0]^a[0],r[1]=r[1]^a[1],r[2]=r[2]^a[2],r[3]=r[3]^a[3]);var o=(1&a[3])>>>0,s=(1&a[0])>>>0,c=(1&a[1])>>>0,u=(1&a[2])>>>0;a[0]=a[0]>>>1,a[1]=a[1]>>>1|(s?2147483648:0),a[2]=a[2]>>>1|(c?2147483648:0),a[3]=a[3]>>>1|(u?2147483648:0),o>0&&(a[0]^=n[0],a[1]^=n[1],a[2]^=n[2],a[3]^=n[3])}return r},t.GHASH=function(e,n){if(e.length%4!=0)throw new Error("Length of 32bit word array 'H' must be multiple of 4(128bit)");if(n.length%4!=0)throw new Error("Length of 32bit word array 'X' must be multiple of 4(128bit)");for(var r=n.length,a=[0,0,0,0],i=0;i0){var _=a[4*c+g]<<32-8*x^s[c][g];m.push(_),v+=x}var k=new i.e(m,v);f.concat(k)}}return f.nSigBytes=r.nSigBytes,f.clamp(),f},t.mac=function(e,n,r,a,s,c){var u=new e({key:n,iv:r}),f=[0,0,0,0];u.encryptBlock(f,0);var d=t.getJ0(f,r.words),l=(null==a?void 0:a.clone())||new i.e,p=[0,8*l.nSigBytes],b=(null==s?void 0:s.clone())||new i.e,h=[0,8*b.nSigBytes],y=c||16;(0,o.I4)(l),(0,o.I4)(b);var m=l.words.concat(b.words).concat(p).concat(h),v=t.GHASH(f,m),g=t.GCTR(u,d,new i.e(v));return(0,o.z6)(g,y)},t.createEncryptor=function(e){return new t.Encryptor(e)},t.createDecryptor=function(e){return new t.Decryptor(e)},t.Encryptor=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return s(n,e),n.prototype.processBlock=function(e,n){var r=this.Hn.blockSize;this.Un=t.inc32(this.Un);for(var a=new i.e(e.slice(n,n+r)),o=t.GCTR(this.Hn,this.Un,a),s=0;s>>2];e.nSigBytes-=t}},V={pad:function(e,t){var n=4*t;e.clamp(),e.nSigBytes+=n-(e.nSigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.nSigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.nSigBytes=n+1;break}}},J={pad:function(e,t){e.concat(new Q.e([2147483648],1)),V.pad(e,t)},unpad:function(e){V.unpad(e),e.nSigBytes-=1}},G=r(7919),W=r(1232),Y={CBC:B.n,CFB:D,CTR:U,ECB:Z,OFB:H,GCM:z.V,CCM:q.K},X={AnsiX923:{pad:function(e,t){var n=e.nSigBytes,r=4*t,a=r-n%r,i=n+a-1;e.clamp(),e.words[i>>>2]|=a<<24-i%4*8,e.nSigBytes+=a},unpad:function(e){var t=255&e.words[e.nSigBytes-1>>>2];e.nSigBytes-=t}},ISO10126:K,ISO97971:J,Pkcs7:G.l,NoPadding:{pad:function(e,t){},unpad:function(e){}},Zero:V},$={OpenSSLFormatter:W.w}}(),a}()},7768:function(e,t,n){var r=n(82467).stringify,a=n(54690);e.exports=function(e){return{parse:a(e),stringify:r}},e.exports.parse=a(),e.exports.stringify=r},54690:function(e,t,n){var r=null,a=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,i=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;e.exports=function(e){"use strict";var t={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(null!=e){if(!0===e.strict&&(t.strict=!0),!0===e.storeAsString&&(t.storeAsString=!0),t.alwaysParseAsBig=!0===e.alwaysParseAsBig&&e.alwaysParseAsBig,t.useNativeBigInt=!0===e.useNativeBigInt&&e.useNativeBigInt,void 0!==e.constructorAction){if("error"!==e.constructorAction&&"ignore"!==e.constructorAction&&"preserve"!==e.constructorAction)throw new Error('Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed '.concat(e.constructorAction));t.constructorAction=e.constructorAction}if(void 0!==e.protoAction){if("error"!==e.protoAction&&"ignore"!==e.protoAction&&"preserve"!==e.protoAction)throw new Error('Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed '.concat(e.protoAction));t.protoAction=e.protoAction}}var o,s,c,u,f={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},d=function(e){throw{name:"SyntaxError",message:e,at:o,text:c}},l=function(e){return e&&e!==s&&d("Expected '"+e+"' instead of '"+s+"'"),s=c.charAt(o),o+=1,s},p=function(){var e,a="";for("-"===s&&(a="-",l("-"));s>="0"&&s<="9";)a+=s,l();if("."===s)for(a+=".";l()&&s>="0"&&s<="9";)a+=s;if("e"===s||"E"===s)for(a+=s,l(),"-"!==s&&"+"!==s||(a+=s,l());s>="0"&&s<="9";)a+=s,l();if(e=+a,isFinite(e))return null==r&&(r=n(4502)),a.length>15?t.storeAsString?a:t.useNativeBigInt?BigInt(a):new r(a):t.alwaysParseAsBig?t.useNativeBigInt?BigInt(e):new r(e):e;d("Bad number")},b=function(){var e,t,n,r="";if('"'===s)for(var a=o;l();){if('"'===s)return o-1>a&&(r+=c.substring(a,o-1)),l(),r;if("\\"===s){if(o-1>a&&(r+=c.substring(a,o-1)),l(),"u"===s){for(n=0,t=0;t<4&&(e=parseInt(l(),16),isFinite(e));t+=1)n=16*n+e;r+=String.fromCharCode(n)}else{if("string"!=typeof f[s])break;r+=f[s]}a=o}}d("Bad string")},h=function(){for(;s&&s<=" ";)l()};return u=function(){switch(h(),s){case"{":return function(){var e,n=Object.create(null);if("{"===s){if(l("{"),h(),"}"===s)return l("}"),n;for(;s;){if(e=b(),h(),l(":"),!0===t.strict&&Object.hasOwnProperty.call(n,e)&&d('Duplicate key "'+e+'"'),!0===a.test(e)?"error"===t.protoAction?d("Object contains forbidden prototype property"):"ignore"===t.protoAction?u():n[e]=u():!0===i.test(e)?"error"===t.constructorAction?d("Object contains forbidden constructor property"):"ignore"===t.constructorAction?u():n[e]=u():n[e]=u(),h(),"}"===s)return l("}"),n;l(","),h()}}d("Bad object")}();case"[":return function(){var e=[];if("["===s){if(l("["),h(),"]"===s)return l("]"),e;for(;s;){if(e.push(u()),h(),"]"===s)return l("]"),e;l(","),h()}}d("Bad array")}();case'"':return b();case"-":return p();default:return s>="0"&&s<="9"?p():function(){switch(s){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}d("Unexpected '"+s+"'")}()}},function(e,t){var n;return c=e+"",o=0,s=" ",n=u(),h(),s&&d("Syntax error"),"function"==typeof t?function e(n,r){var a,i=n[r];return i&&"object"==typeof i&&Object.keys(i).forEach((function(t){void 0!==(a=e(i,t))?i[t]=a:delete i[t]})),t.call(n,r,i)}({"":n},""):n}}},82467:function(e,t,n){var r=n(4502),a=e.exports;!function(){"use strict";var e,t,n,i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){return i.lastIndex=0,i.test(e)?'"'+e.replace(i,(function(e){var t=o[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function c(a,i){var o,u,f,d,l,p=e,b=i[a],h=null!=b&&(b instanceof r||r.isBigNumber(b));switch(b&&"object"==typeof b&&"function"==typeof b.toJSON&&(b=b.toJSON(a)),"function"==typeof n&&(b=n.call(i,a,b)),typeof b){case"string":return h?b:s(b);case"number":return isFinite(b)?String(b):"null";case"boolean":case"null":case"bigint":return String(b);case"object":if(!b)return"null";if(e+=t,l=[],"[object Array]"===Object.prototype.toString.apply(b)){for(d=b.length,o=0;o>>31),b=l^(o<<1|i>>>31),h=e[0]^p,y=e[1]^b,m=e[10]^p,v=e[11]^b,g=e[20]^p,A=e[21]^b,w=e[30]^p,x=e[31]^b,_=e[40]^p,k=e[41]^b;p=r^(s<<1|c>>>31),b=a^(c<<1|s>>>31);var S=e[2]^p,I=e[3]^b,E=e[12]^p,C=e[13]^b,T=e[22]^p,O=e[23]^b,P=e[32]^p,M=e[33]^b,B=e[42]^p,R=e[43]^b;p=i^(u<<1|f>>>31),b=o^(f<<1|u>>>31);var N=e[4]^p,D=e[5]^b,j=e[14]^p,U=e[15]^b,L=e[24]^p,Z=e[25]^b,F=e[34]^p,H=e[35]^b,z=e[44]^p,q=e[45]^b;p=s^(d<<1|l>>>31),b=c^(l<<1|d>>>31);var Q=e[6]^p,K=e[7]^b,V=e[16]^p,J=e[17]^b,G=e[26]^p,W=e[27]^b,Y=e[36]^p,X=e[37]^b,$=e[46]^p,ee=e[47]^b;p=u^(r<<1|a>>>31),b=f^(a<<1|r>>>31);var te=e[8]^p,ne=e[9]^b,re=e[18]^p,ae=e[19]^b,ie=e[28]^p,oe=e[29]^b,se=e[38]^p,ce=e[39]^b,ue=e[48]^p,fe=e[49]^b,de=h,le=y,pe=v<<4|m>>>28,be=m<<4|v>>>28,he=g<<3|A>>>29,ye=A<<3|g>>>29,me=x<<9|w>>>23,ve=w<<9|x>>>23,ge=_<<18|k>>>14,Ae=k<<18|_>>>14,we=S<<1|I>>>31,xe=I<<1|S>>>31,_e=C<<12|E>>>20,ke=E<<12|C>>>20,Se=T<<10|O>>>22,Ie=O<<10|T>>>22,Ee=M<<13|P>>>19,Ce=P<<13|M>>>19,Te=B<<2|R>>>30,Oe=R<<2|B>>>30,Pe=D<<30|N>>>2,Me=N<<30|D>>>2,Be=j<<6|U>>>26,Re=U<<6|j>>>26,Ne=Z<<11|L>>>21,De=L<<11|Z>>>21,je=F<<15|H>>>17,Ue=H<<15|F>>>17,Le=q<<29|z>>>3,Ze=z<<29|q>>>3,Fe=Q<<28|K>>>4,He=K<<28|Q>>>4,ze=J<<23|V>>>9,qe=V<<23|J>>>9,Qe=G<<25|W>>>7,Ke=W<<25|G>>>7,Ve=Y<<21|X>>>11,Je=X<<21|Y>>>11,Ge=ee<<24|$>>>8,We=$<<24|ee>>>8,Ye=te<<27|ne>>>5,Xe=ne<<27|te>>>5,$e=re<<20|ae>>>12,et=ae<<20|re>>>12,tt=oe<<7|ie>>>25,nt=ie<<7|oe>>>25,rt=se<<8|ce>>>24,at=ce<<8|se>>>24,it=ue<<14|fe>>>18,ot=fe<<14|ue>>>18;e[0]=de^~_e&Ne,e[1]=le^~ke&De,e[10]=Fe^~$e&he,e[11]=He^~et&ye,e[20]=we^~Be&Qe,e[21]=xe^~Re&Ke,e[30]=Ye^~pe&Se,e[31]=Xe^~be&Ie,e[40]=Pe^~ze&tt,e[41]=Me^~qe&nt,e[2]=_e^~Ne&Ve,e[3]=ke^~De&Je,e[12]=$e^~he&Ee,e[13]=et^~ye&Ce,e[22]=Be^~Qe&rt,e[23]=Re^~Ke&at,e[32]=pe^~Se&je,e[33]=be^~Ie&Ue,e[42]=ze^~tt&me,e[43]=qe^~nt&ve,e[4]=Ne^~Ve&it,e[5]=De^~Je&ot,e[14]=he^~Ee&Le,e[15]=ye^~Ce&Ze,e[24]=Qe^~rt&ge,e[25]=Ke^~at&Ae,e[34]=Se^~je&Ge,e[35]=Ie^~Ue&We,e[44]=tt^~me&Te,e[45]=nt^~ve&Oe,e[6]=Ve^~it&de,e[7]=Je^~ot&le,e[16]=Ee^~Le&Fe,e[17]=Ce^~Ze&He,e[26]=rt^~ge&we,e[27]=at^~Ae&xe,e[36]=je^~Ge&Ye,e[37]=Ue^~We&Xe,e[46]=me^~Te&Pe,e[47]=ve^~Oe&Me,e[8]=it^~de&_e,e[9]=ot^~le&ke,e[18]=Le^~Fe&$e,e[19]=Ze^~He&et,e[28]=ge^~we&Be,e[29]=Ae^~xe&Re,e[38]=Ge^~Ye&pe,e[39]=We^~Xe&be,e[48]=Te^~Pe&ze,e[49]=Oe^~Me&qe,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},24885:function(e,t,n){var r=n(62332).Buffer,a=n(90698);function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(e,t){for(var n=0;n<50;++n)this.state[n]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(e){for(var t=0;t>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(a.p1600(this.state),this.count=0);return t},i.prototype.copy=function(e){for(var t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=i},53372:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=r(n(7134)),i=r(n(62332)),o=r(n(36500)),s=i.default.Buffer;function c(e){return e=function(e){if(!s.isBuffer(e))if(Array.isArray(e))e=s.from(e);else if("string"==typeof e)e=function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))}(e)?s.from(u(function(e){return"string"!=typeof e?e:function(e){if("string"!=typeof e)throw new Error("value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}(e)?e.slice(2):e}(e)),"hex"):s.from(e);else if("number"==typeof e)t=function(e){var t=e.toString(16);return"0x".concat(t)}(e),e=s.from(u(t.slice(2)),"hex");else if(null==e)e=s.allocUnsafe(0);else if(a.default.isBN(e))e=e.toArrayLike(s);else{if(!e.toArray)throw new Error("invalid type");e=s.from(e.toArray())}var t;return e}(e),(0,o.default)("keccak256").update(e).digest()}function u(e){if("string"!=typeof e)throw new Error("while padding to even, value must be string, is currently ".concat(typeof e,", while padToEven."));return e.length%2&&(e="0".concat(e)),e}"undefined"!=typeof window&&(window.keccak256=c),e.exports=c},65496:function(e,t,n){var r,a,i,o,s;s="object"==typeof(o=this).sodium&&"function"==typeof o.sodium.onload?o.sodium.onload:null,a=[t,n(42990)],r=function(e,t){"use strict";var n,r="uint8array",a=t.ready.then((function(){function r(){if(0!==n._sodium_init())throw new Error("libsodium was not correctly initialized.");for(var t=["crypto_aead_chacha20poly1305_decrypt","crypto_aead_chacha20poly1305_decrypt_detached","crypto_aead_chacha20poly1305_encrypt","crypto_aead_chacha20poly1305_encrypt_detached","crypto_aead_chacha20poly1305_ietf_decrypt","crypto_aead_chacha20poly1305_ietf_decrypt_detached","crypto_aead_chacha20poly1305_ietf_encrypt","crypto_aead_chacha20poly1305_ietf_encrypt_detached","crypto_aead_chacha20poly1305_ietf_keygen","crypto_aead_chacha20poly1305_keygen","crypto_aead_xchacha20poly1305_ietf_decrypt","crypto_aead_xchacha20poly1305_ietf_decrypt_detached","crypto_aead_xchacha20poly1305_ietf_encrypt","crypto_aead_xchacha20poly1305_ietf_encrypt_detached","crypto_aead_xchacha20poly1305_ietf_keygen","crypto_auth","crypto_auth_hmacsha256","crypto_auth_hmacsha256_final","crypto_auth_hmacsha256_init","crypto_auth_hmacsha256_keygen","crypto_auth_hmacsha256_update","crypto_auth_hmacsha256_verify","crypto_auth_hmacsha512","crypto_auth_hmacsha512_final","crypto_auth_hmacsha512_init","crypto_auth_hmacsha512_keygen","crypto_auth_hmacsha512_update","crypto_auth_hmacsha512_verify","crypto_auth_keygen","crypto_auth_verify","crypto_box_beforenm","crypto_box_curve25519xchacha20poly1305_keypair","crypto_box_curve25519xchacha20poly1305_seal","crypto_box_curve25519xchacha20poly1305_seal_open","crypto_box_detached","crypto_box_easy","crypto_box_easy_afternm","crypto_box_keypair","crypto_box_open_detached","crypto_box_open_easy","crypto_box_open_easy_afternm","crypto_box_seal","crypto_box_seal_open","crypto_box_seed_keypair","crypto_core_ed25519_add","crypto_core_ed25519_from_hash","crypto_core_ed25519_from_uniform","crypto_core_ed25519_is_valid_point","crypto_core_ed25519_random","crypto_core_ed25519_scalar_add","crypto_core_ed25519_scalar_complement","crypto_core_ed25519_scalar_invert","crypto_core_ed25519_scalar_mul","crypto_core_ed25519_scalar_negate","crypto_core_ed25519_scalar_random","crypto_core_ed25519_scalar_reduce","crypto_core_ed25519_scalar_sub","crypto_core_ed25519_sub","crypto_core_hchacha20","crypto_core_hsalsa20","crypto_core_ristretto255_add","crypto_core_ristretto255_from_hash","crypto_core_ristretto255_is_valid_point","crypto_core_ristretto255_random","crypto_core_ristretto255_scalar_add","crypto_core_ristretto255_scalar_complement","crypto_core_ristretto255_scalar_invert","crypto_core_ristretto255_scalar_mul","crypto_core_ristretto255_scalar_negate","crypto_core_ristretto255_scalar_random","crypto_core_ristretto255_scalar_reduce","crypto_core_ristretto255_scalar_sub","crypto_core_ristretto255_sub","crypto_generichash","crypto_generichash_blake2b_salt_personal","crypto_generichash_final","crypto_generichash_init","crypto_generichash_keygen","crypto_generichash_update","crypto_hash","crypto_hash_sha256","crypto_hash_sha256_final","crypto_hash_sha256_init","crypto_hash_sha256_update","crypto_hash_sha512","crypto_hash_sha512_final","crypto_hash_sha512_init","crypto_hash_sha512_update","crypto_kdf_derive_from_key","crypto_kdf_keygen","crypto_kx_client_session_keys","crypto_kx_keypair","crypto_kx_seed_keypair","crypto_kx_server_session_keys","crypto_onetimeauth","crypto_onetimeauth_final","crypto_onetimeauth_init","crypto_onetimeauth_keygen","crypto_onetimeauth_update","crypto_onetimeauth_verify","crypto_pwhash","crypto_pwhash_scryptsalsa208sha256","crypto_pwhash_scryptsalsa208sha256_ll","crypto_pwhash_scryptsalsa208sha256_str","crypto_pwhash_scryptsalsa208sha256_str_verify","crypto_pwhash_str","crypto_pwhash_str_needs_rehash","crypto_pwhash_str_verify","crypto_scalarmult","crypto_scalarmult_base","crypto_scalarmult_ed25519","crypto_scalarmult_ed25519_base","crypto_scalarmult_ed25519_base_noclamp","crypto_scalarmult_ed25519_noclamp","crypto_scalarmult_ristretto255","crypto_scalarmult_ristretto255_base","crypto_secretbox_detached","crypto_secretbox_easy","crypto_secretbox_keygen","crypto_secretbox_open_detached","crypto_secretbox_open_easy","crypto_secretstream_xchacha20poly1305_init_pull","crypto_secretstream_xchacha20poly1305_init_push","crypto_secretstream_xchacha20poly1305_keygen","crypto_secretstream_xchacha20poly1305_pull","crypto_secretstream_xchacha20poly1305_push","crypto_secretstream_xchacha20poly1305_rekey","crypto_shorthash","crypto_shorthash_keygen","crypto_shorthash_siphashx24","crypto_sign","crypto_sign_detached","crypto_sign_ed25519_pk_to_curve25519","crypto_sign_ed25519_sk_to_curve25519","crypto_sign_ed25519_sk_to_pk","crypto_sign_ed25519_sk_to_seed","crypto_sign_final_create","crypto_sign_final_verify","crypto_sign_init","crypto_sign_keypair","crypto_sign_open","crypto_sign_seed_keypair","crypto_sign_update","crypto_sign_verify_detached","crypto_stream_chacha20","crypto_stream_chacha20_ietf_xor","crypto_stream_chacha20_ietf_xor_ic","crypto_stream_chacha20_keygen","crypto_stream_chacha20_xor","crypto_stream_chacha20_xor_ic","crypto_stream_keygen","crypto_stream_xchacha20_keygen","crypto_stream_xchacha20_xor","crypto_stream_xchacha20_xor_ic","randombytes_buf","randombytes_buf_deterministic","randombytes_close","randombytes_random","randombytes_set_implementation","randombytes_stir","randombytes_uniform","sodium_version_string"],r=[x,_,k,S,I,E,C,T,O,P,M,B,R,N,D,j,U,L,Z,F,H,z,q,Q,K,V,J,G,W,Y,X,$,ee,te,ne,re,ae,ie,oe,se,ce,ue,fe,de,le,pe,be,he,ye,me,ve,ge,Ae,we,xe,_e,ke,Se,Ie,Ee,Ce,Te,Oe,Pe,Me,Be,Re,Ne,De,je,Ue,Le,Ze,Fe,He,ze,qe,Qe,Ke,Ve,Je,Ge,We,Ye,Xe,$e,et,tt,nt,rt,at,it,ot,st,ct,ut,ft,dt,lt,pt,bt,ht,yt,mt,vt,gt,At,wt,xt,_t,kt,St,It,Et,Ct,Tt,Ot,Pt,Mt,Bt,Rt,Nt,Dt,jt,Ut,Lt,Zt,Ft,Ht,zt,qt,Qt,Kt,Vt,Jt,Gt,Wt,Yt,Xt,$t,en,tn,nn,rn,an,on,sn,cn,un,fn,dn,ln,pn,bn,hn,yn,mn,vn,gn,An,wn,xn],a=0;a=240?(f=4,c=!0):d>=224?(f=3,c=!0):d>=192?(f=2,c=!0):d<128&&(f=1,c=!0)}while(!c);for(var l=f-(s.length-u),p=0;p>8&-39)<<8|87+(t=e[i]>>>4)+(t-10>>8&-39),a+=String.fromCharCode(255&r)+String.fromCharCode(r>>>8);return a}var c={ORIGINAL:1,ORIGINAL_NO_PADDING:3,URLSAFE:5,URLSAFE_NO_PADDING:7};function u(e){if(null==e)return c.URLSAFE_NO_PADDING;if(e!==c.ORIGINAL&&e!==c.ORIGINAL_NO_PADDING&&e!==c.URLSAFE&&e!=c.URLSAFE_NO_PADDING)throw new Error("unsupported base64 variant");return e}function f(e,t){t=u(t),e=w(a,e,"input");var r,a=[],i=0|Math.floor(e.length/3),s=e.length-3*i,c=4*i+(0!==s?0==(2&t)?4:2+(s>>>1):0),f=new b(c+1),d=h(e);return a.push(d),a.push(f.address),0===n._sodium_bin2base64(f.address,f.length,d,e.length,t)&&v(a,"conversion failed"),f.length=c,r=o(f.to_Uint8Array()),m(a),r}function d(e,t){var n=t||r;if(!l(n))throw new Error(n+" output format is not available");if(e instanceof b){if("uint8array"===n)return e.to_Uint8Array();if("text"===n)return o(e.to_Uint8Array());if("hex"===n)return s(e.to_Uint8Array());if("base64"===n)return f(e.to_Uint8Array(),c.URLSAFE_NO_PADDING);throw new Error('What is output format "'+n+'"?')}if("object"==typeof e){for(var a=Object.keys(e),i={},u=0;u>>24>>>8,c,f);var x=d(y,o);return m(s),x}function rt(e){var t=[];p(e);var r=new b(0|n._crypto_kdf_keybytes()),a=r.address;t.push(a),n._crypto_kdf_keygen(a);var i=d(r,e);return m(t),i}function at(e,t,r,a){var i=[];p(a),e=w(i,e,"clientPublicKey");var o,s=0|n._crypto_kx_publickeybytes();e.length!==s&&g(i,"invalid clientPublicKey length"),o=h(e),i.push(o),t=w(i,t,"clientSecretKey");var c,u=0|n._crypto_kx_secretkeybytes();t.length!==u&&g(i,"invalid clientSecretKey length"),c=h(t),i.push(c),r=w(i,r,"serverPublicKey");var f,l=0|n._crypto_kx_publickeybytes();r.length!==l&&g(i,"invalid serverPublicKey length"),f=h(r),i.push(f);var y=new b(0|n._crypto_kx_sessionkeybytes()),A=y.address;i.push(A);var x=new b(0|n._crypto_kx_sessionkeybytes()),_=x.address;if(i.push(_),0==(0|n._crypto_kx_client_session_keys(A,_,o,c,f))){var k=d({sharedRx:y,sharedTx:x},a);return m(i),k}v(i,"invalid usage")}function it(e){var t=[];p(e);var r=new b(0|n._crypto_kx_publickeybytes()),a=r.address;t.push(a);var i=new b(0|n._crypto_kx_secretkeybytes()),o=i.address;if(t.push(o),0==(0|n._crypto_kx_keypair(a,o))){var s={publicKey:d(r,e),privateKey:d(i,e),keyType:"x25519"};return m(t),s}v(t,"internal error")}function ot(e,t){var r=[];p(t),e=w(r,e,"seed");var a,i=0|n._crypto_kx_seedbytes();e.length!==i&&g(r,"invalid seed length"),a=h(e),r.push(a);var o=new b(0|n._crypto_kx_publickeybytes()),s=o.address;r.push(s);var c=new b(0|n._crypto_kx_secretkeybytes()),u=c.address;if(r.push(u),0==(0|n._crypto_kx_seed_keypair(s,u,a))){var f={publicKey:d(o,t),privateKey:d(c,t),keyType:"x25519"};return m(r),f}v(r,"internal error")}function st(e,t,r,a){var i=[];p(a),e=w(i,e,"serverPublicKey");var o,s=0|n._crypto_kx_publickeybytes();e.length!==s&&g(i,"invalid serverPublicKey length"),o=h(e),i.push(o),t=w(i,t,"serverSecretKey");var c,u=0|n._crypto_kx_secretkeybytes();t.length!==u&&g(i,"invalid serverSecretKey length"),c=h(t),i.push(c),r=w(i,r,"clientPublicKey");var f,l=0|n._crypto_kx_publickeybytes();r.length!==l&&g(i,"invalid clientPublicKey length"),f=h(r),i.push(f);var y=new b(0|n._crypto_kx_sessionkeybytes()),A=y.address;i.push(A);var x=new b(0|n._crypto_kx_sessionkeybytes()),_=x.address;if(i.push(_),0==(0|n._crypto_kx_server_session_keys(A,_,o,c,f))){var k=d({sharedRx:y,sharedTx:x},a);return m(i),k}v(i,"invalid usage")}function ct(e,t,r){var a=[];p(r);var i=h(e=w(a,e,"message")),o=e.length;a.push(i),t=w(a,t,"key");var s,c=0|n._crypto_onetimeauth_keybytes();t.length!==c&&g(a,"invalid key length"),s=h(t),a.push(s);var u=new b(0|n._crypto_onetimeauth_bytes()),f=u.address;if(a.push(f),0==(0|n._crypto_onetimeauth(f,i,o,0,s))){var l=d(u,r);return m(a),l}v(a,"invalid usage")}function ut(e,t){var r=[];p(t),A(r,e,"state_address");var a=new b(0|n._crypto_onetimeauth_bytes()),i=a.address;if(r.push(i),0==(0|n._crypto_onetimeauth_final(e,i))){var o=(n._free(e),d(a,t));return m(r),o}v(r,"invalid usage")}function ft(e,t){var r=[];p(t);var a=null;null!=e&&(a=h(e=w(r,e,"key")),e.length,r.push(a));var i=new b(144).address;if(0==(0|n._crypto_onetimeauth_init(i,a))){var o=i;return m(r),o}v(r,"invalid usage")}function dt(e){var t=[];p(e);var r=new b(0|n._crypto_onetimeauth_keybytes()),a=r.address;t.push(a),n._crypto_onetimeauth_keygen(a);var i=d(r,e);return m(t),i}function lt(e,t,r){var a=[];p(r),A(a,e,"state_address");var i=h(t=w(a,t,"message_chunk")),o=t.length;a.push(i),0!=(0|n._crypto_onetimeauth_update(e,i,o))&&v(a,"invalid usage"),m(a)}function pt(e,t,r){var a=[];e=w(a,e,"hash");var i,o=0|n._crypto_onetimeauth_bytes();e.length!==o&&g(a,"invalid hash length"),i=h(e),a.push(i);var s=h(t=w(a,t,"message")),c=t.length;a.push(s),r=w(a,r,"key");var u,f=0|n._crypto_onetimeauth_keybytes();r.length!==f&&g(a,"invalid key length"),u=h(r),a.push(u);var d=0==(0|n._crypto_onetimeauth_verify(i,s,c,0,u));return m(a),d}function bt(e,t,r,a,i,o,s){var c=[];p(s),A(c,e,"keyLength"),("number"!=typeof e||(0|e)!==e||e<0)&&g(c,"keyLength must be an unsigned integer");var u=h(t=w(c,t,"password")),f=t.length;c.push(u),r=w(c,r,"salt");var l,y=0|n._crypto_pwhash_saltbytes();r.length!==y&&g(c,"invalid salt length"),l=h(r),c.push(l),A(c,a,"opsLimit"),("number"!=typeof a||(0|a)!==a||a<0)&&g(c,"opsLimit must be an unsigned integer"),A(c,i,"memLimit"),("number"!=typeof i||(0|i)!==i||i<0)&&g(c,"memLimit must be an unsigned integer"),A(c,o,"algorithm"),("number"!=typeof o||(0|o)!==o||o<0)&&g(c,"algorithm must be an unsigned integer");var x=new b(0|e),_=x.address;if(c.push(_),0==(0|n._crypto_pwhash(_,e,0,u,f,0,l,a,0,i,o))){var k=d(x,s);return m(c),k}v(c,"invalid usage")}function ht(e,t,r,a,i,o){var s=[];p(o),A(s,e,"keyLength"),("number"!=typeof e||(0|e)!==e||e<0)&&g(s,"keyLength must be an unsigned integer");var c=h(t=w(s,t,"password")),u=t.length;s.push(c),r=w(s,r,"salt");var f,l=0|n._crypto_pwhash_scryptsalsa208sha256_saltbytes();r.length!==l&&g(s,"invalid salt length"),f=h(r),s.push(f),A(s,a,"opsLimit"),("number"!=typeof a||(0|a)!==a||a<0)&&g(s,"opsLimit must be an unsigned integer"),A(s,i,"memLimit"),("number"!=typeof i||(0|i)!==i||i<0)&&g(s,"memLimit must be an unsigned integer");var y=new b(0|e),x=y.address;if(s.push(x),0==(0|n._crypto_pwhash_scryptsalsa208sha256(x,e,0,c,u,0,f,a,0,i))){var _=d(y,o);return m(s),_}v(s,"invalid usage")}function yt(e,t,r,a,i,o,s){var c=[];p(s);var u=h(e=w(c,e,"password")),f=e.length;c.push(u);var l=h(t=w(c,t,"salt")),y=t.length;c.push(l),A(c,r,"opsLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&g(c,"opsLimit must be an unsigned integer"),A(c,a,"r"),("number"!=typeof a||(0|a)!==a||a<0)&&g(c,"r must be an unsigned integer"),A(c,i,"p"),("number"!=typeof i||(0|i)!==i||i<0)&&g(c,"p must be an unsigned integer"),A(c,o,"keyLength"),("number"!=typeof o||(0|o)!==o||o<0)&&g(c,"keyLength must be an unsigned integer");var x=new b(0|o),_=x.address;if(c.push(_),0==(0|n._crypto_pwhash_scryptsalsa208sha256_ll(u,f,l,y,r,0,a,i,_,o))){var k=d(x,s);return m(c),k}v(c,"invalid usage")}function mt(e,t,r,a){var i=[];p(a);var o=h(e=w(i,e,"password")),s=e.length;i.push(o),A(i,t,"opsLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&g(i,"opsLimit must be an unsigned integer"),A(i,r,"memLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&g(i,"memLimit must be an unsigned integer");var c=new b(0|n._crypto_pwhash_scryptsalsa208sha256_strbytes()).address;if(i.push(c),0==(0|n._crypto_pwhash_scryptsalsa208sha256_str(c,o,s,0,t,0,r))){var u=n.UTF8ToString(c);return m(i),u}v(i,"invalid usage")}function vt(e,t,r){var a=[];p(r),"string"!=typeof e&&g(a,"hashed_password must be a string"),e=i(e+"\0"),null!=s&&e.length-1!==s&&g(a,"invalid hashed_password length");var o=h(e),s=e.length-1;a.push(o);var c=h(t=w(a,t,"password")),u=t.length;a.push(c);var f=0==(0|n._crypto_pwhash_scryptsalsa208sha256_str_verify(o,c,u,0));return m(a),f}function gt(e,t,r,a){var i=[];p(a);var o=h(e=w(i,e,"password")),s=e.length;i.push(o),A(i,t,"opsLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&g(i,"opsLimit must be an unsigned integer"),A(i,r,"memLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&g(i,"memLimit must be an unsigned integer");var c=new b(0|n._crypto_pwhash_strbytes()).address;if(i.push(c),0==(0|n._crypto_pwhash_str(c,o,s,0,t,0,r))){var u=n.UTF8ToString(c);return m(i),u}v(i,"invalid usage")}function At(e,t,r,a){var o=[];p(a),"string"!=typeof e&&g(o,"hashed_password must be a string"),e=i(e+"\0"),null!=c&&e.length-1!==c&&g(o,"invalid hashed_password length");var s=h(e),c=e.length-1;o.push(s),A(o,t,"opsLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&g(o,"opsLimit must be an unsigned integer"),A(o,r,"memLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&g(o,"memLimit must be an unsigned integer");var u=0!=(0|n._crypto_pwhash_str_needs_rehash(s,t,0,r));return m(o),u}function wt(e,t,r){var a=[];p(r),"string"!=typeof e&&g(a,"hashed_password must be a string"),e=i(e+"\0"),null!=s&&e.length-1!==s&&g(a,"invalid hashed_password length");var o=h(e),s=e.length-1;a.push(o);var c=h(t=w(a,t,"password")),u=t.length;a.push(c);var f=0==(0|n._crypto_pwhash_str_verify(o,c,u,0));return m(a),f}function xt(e,t,r){var a=[];p(r),e=w(a,e,"privateKey");var i,o=0|n._crypto_scalarmult_scalarbytes();e.length!==o&&g(a,"invalid privateKey length"),i=h(e),a.push(i),t=w(a,t,"publicKey");var s,c=0|n._crypto_scalarmult_bytes();t.length!==c&&g(a,"invalid publicKey length"),s=h(t),a.push(s);var u=new b(0|n._crypto_scalarmult_bytes()),f=u.address;if(a.push(f),0==(0|n._crypto_scalarmult(f,i,s))){var l=d(u,r);return m(a),l}v(a,"weak public key")}function _t(e,t){var r=[];p(t),e=w(r,e,"privateKey");var a,i=0|n._crypto_scalarmult_scalarbytes();e.length!==i&&g(r,"invalid privateKey length"),a=h(e),r.push(a);var o=new b(0|n._crypto_scalarmult_bytes()),s=o.address;if(r.push(s),0==(0|n._crypto_scalarmult_base(s,a))){var c=d(o,t);return m(r),c}v(r,"unknown error")}function kt(e,t,r){var a=[];p(r),e=w(a,e,"n");var i,o=0|n._crypto_scalarmult_ed25519_scalarbytes();e.length!==o&&g(a,"invalid n length"),i=h(e),a.push(i),t=w(a,t,"p");var s,c=0|n._crypto_scalarmult_ed25519_bytes();t.length!==c&&g(a,"invalid p length"),s=h(t),a.push(s);var u=new b(0|n._crypto_scalarmult_ed25519_bytes()),f=u.address;if(a.push(f),0==(0|n._crypto_scalarmult_ed25519(f,i,s))){var l=d(u,r);return m(a),l}v(a,"invalid point or scalar is 0")}function St(e,t){var r=[];p(t),e=w(r,e,"scalar");var a,i=0|n._crypto_scalarmult_ed25519_scalarbytes();e.length!==i&&g(r,"invalid scalar length"),a=h(e),r.push(a);var o=new b(0|n._crypto_scalarmult_ed25519_bytes()),s=o.address;if(r.push(s),0==(0|n._crypto_scalarmult_ed25519_base(s,a))){var c=d(o,t);return m(r),c}v(r,"scalar is 0")}function It(e,t){var r=[];p(t),e=w(r,e,"scalar");var a,i=0|n._crypto_scalarmult_ed25519_scalarbytes();e.length!==i&&g(r,"invalid scalar length"),a=h(e),r.push(a);var o=new b(0|n._crypto_scalarmult_ed25519_bytes()),s=o.address;if(r.push(s),0==(0|n._crypto_scalarmult_ed25519_base_noclamp(s,a))){var c=d(o,t);return m(r),c}v(r,"scalar is 0")}function Et(e,t,r){var a=[];p(r),e=w(a,e,"n");var i,o=0|n._crypto_scalarmult_ed25519_scalarbytes();e.length!==o&&g(a,"invalid n length"),i=h(e),a.push(i),t=w(a,t,"p");var s,c=0|n._crypto_scalarmult_ed25519_bytes();t.length!==c&&g(a,"invalid p length"),s=h(t),a.push(s);var u=new b(0|n._crypto_scalarmult_ed25519_bytes()),f=u.address;if(a.push(f),0==(0|n._crypto_scalarmult_ed25519_noclamp(f,i,s))){var l=d(u,r);return m(a),l}v(a,"invalid point or scalar is 0")}function Ct(e,t,r){var a=[];p(r),e=w(a,e,"scalar");var i,o=0|n._crypto_scalarmult_ristretto255_scalarbytes();e.length!==o&&g(a,"invalid scalar length"),i=h(e),a.push(i),t=w(a,t,"element");var s,c=0|n._crypto_scalarmult_ristretto255_bytes();t.length!==c&&g(a,"invalid element length"),s=h(t),a.push(s);var u=new b(0|n._crypto_scalarmult_ristretto255_bytes()),f=u.address;if(a.push(f),0==(0|n._crypto_scalarmult_ristretto255(f,i,s))){var l=d(u,r);return m(a),l}v(a,"result is identity element")}function Tt(e,t){var r=[];p(t),e=w(r,e,"scalar");var a,i=0|n._crypto_core_ristretto255_scalarbytes();e.length!==i&&g(r,"invalid scalar length"),a=h(e),r.push(a);var o=new b(0|n._crypto_core_ristretto255_bytes()),s=o.address;if(r.push(s),0==(0|n._crypto_scalarmult_ristretto255_base(s,a))){var c=d(o,t);return m(r),c}v(r,"scalar is 0")}function Ot(e,t,r,a){var i=[];p(a);var o=h(e=w(i,e,"message")),s=e.length;i.push(o),t=w(i,t,"nonce");var c,u=0|n._crypto_secretbox_noncebytes();t.length!==u&&g(i,"invalid nonce length"),c=h(t),i.push(c),r=w(i,r,"key");var f,l=0|n._crypto_secretbox_keybytes();r.length!==l&&g(i,"invalid key length"),f=h(r),i.push(f);var y=new b(0|s),A=y.address;i.push(A);var x=new b(0|n._crypto_secretbox_macbytes()),_=x.address;if(i.push(_),0==(0|n._crypto_secretbox_detached(A,_,o,s,0,c,f))){var k=d({mac:x,cipher:y},a);return m(i),k}v(i,"invalid usage")}function Pt(e,t,r,a){var i=[];p(a);var o=h(e=w(i,e,"message")),s=e.length;i.push(o),t=w(i,t,"nonce");var c,u=0|n._crypto_secretbox_noncebytes();t.length!==u&&g(i,"invalid nonce length"),c=h(t),i.push(c),r=w(i,r,"key");var f,l=0|n._crypto_secretbox_keybytes();r.length!==l&&g(i,"invalid key length"),f=h(r),i.push(f);var y=new b(s+n._crypto_secretbox_macbytes()|0),A=y.address;if(i.push(A),0==(0|n._crypto_secretbox_easy(A,o,s,0,c,f))){var x=d(y,a);return m(i),x}v(i,"invalid usage")}function Mt(e){var t=[];p(e);var r=new b(0|n._crypto_secretbox_keybytes()),a=r.address;t.push(a),n._crypto_secretbox_keygen(a);var i=d(r,e);return m(t),i}function Bt(e,t,r,a,i){var o=[];p(i);var s=h(e=w(o,e,"ciphertext")),c=e.length;o.push(s),t=w(o,t,"mac");var u,f=0|n._crypto_secretbox_macbytes();t.length!==f&&g(o,"invalid mac length"),u=h(t),o.push(u),r=w(o,r,"nonce");var l,y=0|n._crypto_secretbox_noncebytes();r.length!==y&&g(o,"invalid nonce length"),l=h(r),o.push(l),a=w(o,a,"key");var A,x=0|n._crypto_secretbox_keybytes();a.length!==x&&g(o,"invalid key length"),A=h(a),o.push(A);var _=new b(0|c),k=_.address;if(o.push(k),0==(0|n._crypto_secretbox_open_detached(k,s,u,c,0,l,A))){var S=d(_,i);return m(o),S}v(o,"wrong secret key for the given ciphertext")}function Rt(e,t,r,a){var i=[];p(a),e=w(i,e,"ciphertext");var o,s=n._crypto_secretbox_macbytes(),c=e.length;c>>0;return m([]),t}function gn(e,t){var r=[];p(t);for(var a=n._malloc(24),i=0;i<6;i++)n.setValue(a+4*i,n.Runtime.addFunction(e[["implementation_name","random","stir","uniform","buf","close"][i]]),"i32");0!=(0|n._randombytes_set_implementation(a))&&v(r,"unsupported implementation"),m(r)}function An(e){p(e),n._randombytes_stir()}function wn(e,t){var r=[];p(t),A(r,e,"upper_bound"),("number"!=typeof e||(0|e)!==e||e<0)&&g(r,"upper_bound must be an unsigned integer");var a=n._randombytes_uniform(e)>>>0;return m(r),a}function xn(){var e=n._sodium_version_string(),t=n.UTF8ToString(e);return m([]),t}return b.prototype.to_Uint8Array=function(){var e=new Uint8Array(this.length);return e.set(n.HEAPU8.subarray(this.address,this.address+this.length)),e},e.add=function(e,t){if(!(e instanceof Uint8Array&&t instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can added");var n=e.length,r=0,a=0;if(t.length!=e.length)throw new TypeError("Arguments must have the same length");for(a=0;a>=8,r+=e[a]+t[a],e[a]=255&r},e.base64_variants=c,e.compare=function(e,t){if(!(e instanceof Uint8Array&&t instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be compared");if(e.length!==t.length)throw new TypeError("Only instances of identical length can be compared");for(var n=0,r=1,a=e.length;a-- >0;)n|=t[a]-e[a]>>8&r,r&=(t[a]^e[a])-1>>8;return n+n+r-1},e.from_base64=function(e,t){t=u(t);var r,a=[],i=new b(3*(e=w(a,e,"input")).length/4),o=h(e),s=y(4),c=y(4);return a.push(o),a.push(i.address),a.push(i.result_bin_len_p),a.push(i.b64_end_p),0!==n._sodium_base642bin(i.address,i.length,o,e.length,0,s,c,t)&&v(a,"invalid input"),n.getValue(c,"i32")-o!==e.length&&v(a,"incomplete input"),i.length=n.getValue(s,"i32"),r=i.to_Uint8Array(),m(a),r},e.from_hex=function(e){var t,r=[],a=new b((e=w(r,e,"input")).length/2),i=h(e),o=y(4);return r.push(i),r.push(a.address),r.push(a.hex_end_p),0!==n._sodium_hex2bin(a.address,a.length,i,e.length,0,0,o)&&v(r,"invalid input"),n.getValue(o,"i32")-i!==e.length&&v(r,"incomplete input"),t=a.to_Uint8Array(),m(r),t},e.from_string=i,e.increment=function(e){if(!(e instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be incremented");for(var t=256,n=0,r=e.length;n>=8,t+=e[n],e[n]=255&t},e.is_zero=function(e){if(!(e instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be checked");for(var t=0,n=0,r=e.length;n 0");var r,a=[],i=y(4),o=1,s=0,c=0|e.length,u=new b(c+t);a.push(i),a.push(u.address);for(var f=u.address,d=u.address+c+t;f>>48|c>>>32|c>>>16|c))-1>>16);return 0!==n._sodium_pad(i,u.address,e.length,t,u.length)&&v(a,"internal error"),u.length=n.getValue(i,"i32"),r=u.to_Uint8Array(),m(a),r},e.unpad=function(e,t){if(!(e instanceof Uint8Array))throw new TypeError("buffer must be a Uint8Array");if((t|=0)<=0)throw new Error("block size must be > 0");var r=[],a=h(e),i=y(4);return r.push(a),r.push(i),0!==n._sodium_unpad(i,a,e.length,t)&&v(r,"unsupported/invalid padding"),e=(e=new Uint8Array(e)).subarray(0,n.getValue(i,"i32")),m(r),e},e.ready=a,e.symbols=function(){return Object.keys(e).sort()},e.to_base64=f,e.to_hex=s,e.to_string=o,e},void 0!==(i=r.apply(t,a))&&(e.exports=i),s&&o.sodium.ready.then((function(){s(o.sodium)}))},42990:function(e,t,n){var r,a,i=n(43800),o=n(62332).Buffer;r=function(t){"use strict";var r;void 0===(r=t)&&(r={});var a=r;"object"!=typeof a.sodium&&("object"==typeof n.g?a=n.g:"object"==typeof window&&(a=window));var s=r;return r.ready=new Promise((function(t,r){(f=s).onAbort=r,f.print=function(e){},f.printErr=function(e){},f.onRuntimeInitialized=function(){try{f._crypto_secretbox_keybytes(),t()}catch(e){r(e)}},f.useBackupModule=function(){return new Promise((function(t,r){(f={}).onAbort=r,f.onRuntimeInitialized=function(){Object.keys(s).forEach((function(e){"getRandomValue"!==e&&delete s[e]})),Object.keys(f).forEach((function(e){s[e]=f[e]})),t()};var a,c,u,f=void 0!==f?f:{},d=Object.assign({},f),l="object"==typeof window,p="function"==typeof importScripts,b="object"==typeof i&&"object"==typeof i.versions&&"string"==typeof i.versions.node,h="";if(b){var y=n(37727),m=n(41163);h=p?m.dirname(h)+"/":"//",a=function(e,t){var n=ee(e);return n?t?n:n.toString():(e=V(e)?new URL(e):m.normalize(e),y.readFileSync(e,t?void 0:"utf8"))},u=function(e){var t=a(e,!0);return t.buffer||(t=new Uint8Array(t)),t},c=function(e,t,n){var r=ee(e);r&&t(r),e=V(e)?new URL(e):m.normalize(e),y.readFile(e,(function(e,r){e?n(e):t(r.buffer)}))},i.argv.length>1&&i.argv[1].replace(/\\/g,"/"),i.argv.slice(2),e.exports=f,f.inspect=function(){return"[Emscripten Module object]"}}else(l||p)&&(p?h=self.location.href:"undefined"!=typeof document&&document.currentScript&&(h=document.currentScript.src),h=0!==h.indexOf("blob:")?h.substr(0,h.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText}catch(t){var n=ee(e);if(n)return function(e){for(var t=[],n=0;n255&&(r&=255),t.push(String.fromCharCode(r))}return t.join("")}(n);throw t}},p&&(u=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}catch(t){var n=ee(e);if(n)return n;throw t}}),c=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){if(200==r.status||0==r.status&&r.response)t(r.response);else{var a=ee(e);a?t(a.buffer):n()}},r.onerror=n,r.send(null)});f.print;var v,g=f.printErr||void 0;Object.assign(f,d),d=null,f.arguments&&f.arguments,f.thisProgram&&f.thisProgram,f.quit&&f.quit,f.wasmBinary&&(v=f.wasmBinary),f.noExitRuntime;var A,w={Memory:function(e){this.buffer=new ArrayBuffer(65536*e.initial)},Module:function(e){},Instance:function(e,t){this.exports=function(e){for(var t,n=new Uint8Array(123),r=25;r>=0;--r)n[48+r]=52+r,n[65+r]=r,n[97+r]=26+r;function a(e,t,r){for(var a,i,o=0,s=t,c=r.length,u=t+(3*c>>2)-("="==r[c-2])-("="==r[c-1]);o>4,s>2),s>>0>z>>>0?c+1|0:c)|0,c=(ie=(f=z)>>>0>(z=z+ie|0)>>>0?c+1|0:c)+ye|0,oe=he=z+be|0,he=c=he>>>0>>0?c+1|0:c,z=fe(z^(u[e+80|0]|u[e+81|0]<<8|u[e+82|0]<<16|u[e+83|0]<<24)^-79577749,ie^(u[e+84|0]|u[e+85|0]<<8|u[e+86|0]<<16|u[e+87|0]<<24)^528734635,32),ke=c=v,c=c+1013904242|0,ie=z,W=c=(z=z-23791573|0)>>>0<4271175723?c+1|0:c,de=fe(z^ue,c^de,40),c=(c=he)+(he=v)|0,ue=fe(ie^(m=ue=de+oe|0),ke^(g=m>>>0>>0?c+1|0:c),48),c=W+(F=v)|0,_=c=(ue=z+(A=ue)|0)>>>0>>0?c+1|0:c,ue=c=fe(de^(x=ue),he^c,1),W=z=v,he=u[t+24|0]|u[t+25|0]<<8|u[t+26|0]<<16|u[t+27|0]<<24,ke=c=u[t+28|0]|u[t+29|0]<<8|u[t+30|0]<<16|u[t+31|0]<<24,pe=u[e+8|0]|u[e+9|0]<<8|u[e+10|0]<<16|u[e+11|0]<<24,z=(de=u[t+16|0]|u[t+17|0]<<8|u[t+18|0]<<16|u[t+19|0]<<24)+(ie=u[e+40|0]|u[e+41|0]<<8|u[e+42|0]<<16|u[e+43|0]<<24)|0,c=(Ce=u[t+20|0]|u[t+21|0]<<8|u[t+22|0]<<16|u[t+23|0]<<24)+(Oe=u[e+44|0]|u[e+45|0]<<8|u[e+46|0]<<16|u[e+47|0]<<24)|0,c=(u[e+12|0]|u[e+13|0]<<8|u[e+14|0]<<16|u[e+15|0]<<24)+(z>>>0>>0?c+1|0:c)|0,c=ke+(oe=(f=z)>>>0>(z=z+pe|0)>>>0?c+1|0:c)|0,c=(pe=z+he|0)>>>0>>0?c+1|0:c,f=fe(z^(u[e+72|0]|u[e+73|0]<<8|u[e+74|0]<<16|u[e+75|0]<<24)^725511199,oe^(u[e+76|0]|u[e+77|0]<<8|u[e+78|0]<<16|u[e+79|0]<<24)^-1694144372,32),b=fe(ie^(d=f-2067093701|0),Oe^(L=(R=z=v)-((f>>>0<2067093701)+1150833018|0)|0),40),c=(H=v)+c|0,c=(B=(k=z=b+pe|0)>>>0>>0?c+1|0:c)+W|0,c=(k>>>0>(z=k+ue|0)>>>0?c+1|0:c)+V|0,c=(ie=(l=z)>>>0>(z=z+se|0)>>>0?c+1|0:c)+Q|0,j=Q=z+n|0,y=c=Q>>>0>>0?c+1|0:c,w=ue,xe=W,W=z,oe=ie,ue=u[t+8|0]|u[t+9|0]<<8|u[t+10|0]<<16|u[t+11|0]<<24,z=c=u[t+12|0]|u[t+13|0]<<8|u[t+14|0]<<16|u[t+15|0]<<24,Oe=c=u[0|e]|u[e+1|0]<<8|u[e+2|0]<<16|u[e+3|0]<<24,i=ie=u[e+4|0]|u[e+5|0]<<8|u[e+6|0]<<16|u[e+7|0]<<24,V=c,c=(Se=u[t+4|0]|u[t+5|0]<<8|u[t+6|0]<<16|u[t+7|0]<<24)+(p=u[e+36|0]|u[e+37|0]<<8|u[e+38|0]<<16|u[e+39|0]<<24)|0,c=i+((Q=u[e+32|0]|u[e+33|0]<<8|u[e+34|0]<<16|u[e+35|0]<<24)>>>0>(l=Q+(ie=u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24)|0)>>>0?c+1|0:c)|0,c=(pe=(V=l+V|0)>>>0>>0?c+1|0:c)+z|0,Ae=l=V+ue|0,l=c=l>>>0>>0?c+1|0:c,h=Q,Q=fe(V^(u[0|(c=e- -64|0)]|u[c+1|0]<<8|u[c+2|0]<<16|u[c+3|0]<<24)^-1377402159,pe^(u[c+4|0]|u[c+5|0]<<8|u[c+6|0]<<16|u[c+7|0]<<24)^1359893119,32),pe=c=v,c=c+1779033703|0,V=Q,O=c=(Q=Q-205731576|0)>>>0<4089235720?c+1|0:c,p=fe(h^(S=Q),c^p,40),c=(D=v)+l|0,h=fe(V^(l=Q=p+Ae|0),pe^(E=p>>>0>l>>>0?c+1|0:c),48),c=fe(h^W,(X=v)^oe,32),G=Q=v,U=c,r=c=u[t+60|0]|u[t+61|0]<<8|u[t+62|0]<<16|u[t+63|0]<<24,pe=Ae=u[t+56|0]|u[t+57|0]<<8|u[t+58|0]<<16|u[t+59|0]<<24,T=u[e+24|0]|u[e+25|0]<<8|u[e+26|0]<<16|u[e+27|0]<<24,Q=(oe=u[t+48|0]|u[t+49|0]<<8|u[t+50|0]<<16|u[t+51|0]<<24)+(V=u[e+56|0]|u[e+57|0]<<8|u[e+58|0]<<16|u[e+59|0]<<24)|0,c=(Ie=u[t+52|0]|u[t+53|0]<<8|u[t+54|0]<<16|u[t+55|0]<<24)+(N=u[e+60|0]|u[e+61|0]<<8|u[e+62|0]<<16|u[e+63|0]<<24)|0,c=(u[e+28|0]|u[e+29|0]<<8|u[e+30|0]<<16|u[e+31|0]<<24)+(Q>>>0>>0?c+1|0:c)|0,c=r+(W=(C=Q)>>>0>(Q=T+Q|0)>>>0?c+1|0:c)|0,c=(T=Q+pe|0)>>>0>>0?c+1|0:c,W=fe(Q^(u[e+88|0]|u[e+89|0]<<8|u[e+90|0]<<16|u[e+91|0]<<24)^327033209,W^(u[e+92|0]|u[e+93|0]<<8|u[e+94|0]<<16|u[e+95|0]<<24)^1541459225,32),V=fe(V^(pe=W+1595750129|0),(C=N)^(N=(P=Q=v)-((W>>>0<2699217167)+1521486533|0)|0),40),c=(te=v)+c|0,Q=fe((T=Q=V+T|0)^W,P^(C=T>>>0>>0?c+1|0:c),48),c=N+($=v)|0,M=c=(Q=pe+(N=Q)|0)>>>0>>0?c+1|0:c,c=G+c|0,J=w^(W=U+(P=Q)|0),w=c=W>>>0

>>0?c+1|0:c,pe=fe(J,c^xe,40),c=(xe=v)+y|0,Q=fe(j=U^(y=Q=pe+j|0),G^(U=y>>>0>>0?c+1|0:c),48),c=w+(re=v)|0,G=c=(w=W+(j=Q)|0)>>>0>>0?c+1|0:c,Q=(Z=fe(w^pe,xe^c,1))+(W=u[t+72|0]|u[t+73|0]<<8|u[t+74|0]<<16|u[t+75|0]<<24)|0,c=(ve=v)+(xe=u[t+76|0]|u[t+77|0]<<8|u[t+78|0]<<16|u[t+79|0]<<24)|0,_e=Q,q=Q>>>0>>0?c+1|0:c,Y=me,Q=u[t+96|0]|u[t+97|0]<<8|u[t+98|0]<<16|u[t+99|0]<<24,pe=c=u[t+100|0]|u[t+101|0]<<8|u[t+102|0]<<16|u[t+103|0]<<24,V=(c=m)+(m=fe(P^V,M^te,1))|0,c=(P=v)+g|0,c=(m>>>0>V>>>0?c+1|0:c)+pe|0,c=(g=(g=V)>>>0>(V=Q+V|0)>>>0?c+1|0:c)+Y|0,J=M=V+ne|0,M=c=M>>>0>>0?c+1|0:c,k=fe(f^k,B^R,48),B=c=fe(k^V,(R=v)^g,32),c=O+X|0,c=(te=V=v)+(S=(V=h+S|0)>>>0>>0?c+1|0:c)|0,O=c=(g=V)>>>0>(h=g+B|0)>>>0?c+1|0:c,m=fe(h^m,P^c,40),c=(X=v)+M|0,c=(P=m>>>0>(M=V=m+J|0)>>>0?c+1|0:c)+q|0,c=(f=M>>>0>(V=M+_e|0)>>>0?c+1|0:c)+we|0,_e=q=V+ce|0,q=c=q>>>0>>0?c+1|0:c,J=V,Y=f,V=u[t+116|0]|u[t+117|0]<<8|u[t+118|0]<<16|u[t+119|0]<<24,t=u[t+112|0]|u[t+113|0]<<8|u[t+114|0]<<16|u[t+115|0]<<24,p=fe(p^g,S^D,1),c=(D=v)+C|0,c=((f=p+T|0)>>>0

>>0?c+1|0:c)+V|0,c=(g=(S=f)>>>0>(f=t+f|0)>>>0?c+1|0:c)+we|0,Te=S=f+ce|0,S=c=S>>>0>>0?c+1|0:c,c=fe(f^A,g^F,32),ee=f=v,A=c,g=f,c=R+L|0,k=f=d+k|0,T=c=f>>>0>>0?c+1|0:c,c=c+g|0,C=f=f+A|0,F=c=k>>>0>f>>>0?c+1|0:c,g=fe(f^p,D^c,40),c=(D=v)+S|0,A=fe((f=g+Te|0)^A,ee^(d=f>>>0>>0?c+1|0:c),48),c=fe(A^J,(Te=v)^Y,32),ee=p=v,S=c,J=p,b=fe(b^k,T^H,1),c=E+(k=v)|0,c=((p=l)>>>0>(l=l+b|0)>>>0?c+1|0:c)+ae|0,c=(l=(p=l+K|0)>>>0>>0?c+1|0:c)+xe|0,Y=E=p+W|0,E=c=E>>>0

>>0?c+1|0:c,T=b,p=fe(p^N,l^$,32),c=(N=v)+_|0,x=fe(T^(l=b=p+x|0),(_=p>>>0>l>>>0?c+1|0:c)^k,40),c=($=v)+E|0,k=b=x+Y|0,b=fe(p^b,N^(E=b>>>0>>0?c+1|0:c),48),c=_+(o=v)|0,_=b,N=c=(b=l+b|0)>>>0>>0?c+1|0:c,c=c+J|0,c=(T=b)>>>0>(b=b+S|0)>>>0?c+1|0:c,J=b,b^=Z,Z=c,p=fe(b,ve^c,40),c=(ve=v)+q|0,q=b=p+_e|0,c=a+(Y=p>>>0>b>>>0?c+1|0:c)|0,_e=b=b+n|0,R=c=b>>>0>>0?c+1|0:c,b=f,L=ne,H=me,f=fe(B^M,P^te,48),c=O+(te=v)|0,B=f,O=c=(l=h+f|0)>>>0>>0?c+1|0:c,f=fe(l^m,X^c,1),c=(h=v)+H|0,c=((m=f+L|0)>>>0>>0?c+1|0:c)+d|0,c=Ie+(b=(d=b+m|0)>>>0>>0?c+1|0:c)|0,M=m=d+oe|0,m=c=m>>>0>>0?c+1|0:c,d=fe(d^_,b^o,32),c=G+(P=v)|0,_=d,w=c=(d=w+d|0)>>>0>>0?c+1|0:c,b=fe(f^d,c^h,40),c=(c=m)+(m=v)|0,h=f=b+M|0,f=fe(f^_,P^(M=f>>>0>>0?c+1|0:c),48),c=w+(X=v)|0,P=f,G=c=(w=d+f|0)>>>0>>0?c+1|0:c,f=fe(b^w,m^c,1),c=(m=v)+R|0,c=r+(b=(d=f+_e|0)>>>0>>0?c+1|0:c)|0,_e=_=d+Ae|0,_=c=_>>>0>>0?c+1|0:c,R=f,L=m,c=F+Te|0,c=(f=A+C|0)>>>0>>0?c+1|0:c,A=f,C=c,c=fe(f^g,D^c,1),g=m=v,f=c,c=E+V|0,c=((k=t+k|0)>>>0>>0?c+1|0:c)+m|0,c=ge+(k=(m=f+k|0)>>>0>>0?c+1|0:c)|0,F=E=m+se|0,E=c=E>>>0>>0?c+1|0:c,m=fe(m^j,k^re,32),c=O+(j=v)|0,k=m,O=c=(O=l)>>>0>(l=l+m|0)>>>0?c+1|0:c,m=fe(f^l,c^g,40),c=(D=v)+E|0,g=f=m+F|0,f=fe(E=f^k,j^(k=f>>>0>>0?c+1|0:c),48),c=O+(re=v)|0,O=f,E=f=l+f|0,j=c=f>>>0>>0?c+1|0:c,F=d,H=b,f=fe(x^T,N^$,1),c=(l=v)+I|0,c=U+((d=f+le|0)>>>0>>0?c+1|0:c)|0,c=ae+(b=(d=d+y|0)>>>0>>0?c+1|0:c)|0,U=y=d+K|0,y=c=y>>>0>>0?c+1|0:c,x=f,f=(d=fe(d^B,b^te,32))+A|0,c=(A=v)+C|0,b=f,l=fe(f^x,(B=f>>>0>>0?c+1|0:c)^l,40),c=(te=v)+y|0,y=f=l+U|0,T=fe(f^d,A^(U=f>>>0>>0?c+1|0:c),48),d=fe(T^F,(c=H)^(H=v),32),c=(F=v)+j|0,A=f=d+E|0,x=fe(f^R,(C=f>>>0>>0?c+1|0:c)^L,40),c=(R=v)+_|0,_=f=x+_e|0,f=fe(f^d,F^(N=f>>>0>>0?c+1|0:c),48),c=C+($=v)|0,C=f,F=c=(d=A)>>>0>(A=A+f|0)>>>0?c+1|0:c,f=fe(A^x,R^c,1),c=we+(_e=v)|0,R=f,Te=f=ce+f|0,x=c=f>>>0>>0?c+1|0:c,d=be,f=fe(m^E,D^j,1),c=M+(m=v)|0,c=((E=h)>>>0>(h=f+h|0)>>>0?c+1|0:c)+ye|0,c=(E=(d=d+h|0)>>>0>>0?c+1|0:c)+ke|0,L=h=d+he|0,M=c=h>>>0>>0?c+1|0:c,j=f,h=fe(S^q,Y^ee,48),c=fe(h^d,(D=v)^E,32),ee=f=v,S=c,d=f,c=B+H|0,c=(f=b+T|0)>>>0>>0?c+1|0:c,b=f,B=c,c=c+d|0,E=f=f+S|0,T=c=b>>>0>f>>>0?c+1|0:c,d=fe(f^j,c^m,40),c=(c=M)+(M=v)|0,j=f=d+L|0,q=c=f>>>0>>0?c+1|0:c,c=c+x|0,Y=c=(m=f+Te|0)>>>0>>0?c+1|0:c,x=c,f=fe(l^b,B^te,1),c=z+(l=v)|0,c=k+((b=f+ue|0)>>>0>>0?c+1|0:c)|0,c=pe+(g=(b=b+g|0)>>>0>>0?c+1|0:c)|0,L=k=b+Q|0,k=c=k>>>0>>0?c+1|0:c,B=f,c=fe(b^P,g^X,32),H=f=v,b=c,g=f,c=D+Z|0,P=f=h+J|0,Z=c=f>>>0>>0?c+1|0:c,c=c+g|0,c=(h=f+b|0)>>>0>>0?c+1|0:c,f=h^B,B=c,g=fe(f,c^l,40),c=(X=v)+k|0,l=f=g+L|0,J=fe(f^b,H^(k=f>>>0>>0?c+1|0:c),48),c=fe(J^m,(te=v)^x,32),Te=f=v,L=c,x=f,f=fe(p^P,Z^ve,1),c=U+(p=v)|0,c=Se+((b=f+y|0)>>>0>>0?c+1|0:c)|0,c=(y=(b=b+ie|0)>>>0>>0?c+1|0:c)+Ce|0,P=U=b+de|0,U=c=U>>>0>>0?c+1|0:c,b=fe(b^O,y^re,32),c=G+(Z=v)|0,O=b,y=p,p=c=(b=w+b|0)>>>0>>0?c+1|0:c,y=fe(f^b,y^c,40),c=(re=v)+U|0,w=f=y+P|0,f=fe(P=f^O,Z^(O=f>>>0>>0?c+1|0:c),48),c=p+(D=v)|0,p=f,U=f=b+f|0,P=c=f>>>0>>0?c+1|0:c,c=c+x|0,G=c=(x=f+L|0)>>>0>>0?c+1|0:c,b=fe(x^R,_e^c,40),c=Y+(Z=v)|0,c=((f=b+m|0)>>>0>>0?c+1|0:c)+me|0,m=f,Y=f=f+ne|0,R=c=m>>>0>f>>>0?c+1|0:c,H=ae,m=fe(S^j,q^ee,48),c=(ve=v)+T|0,S=f=m+E|0,c=fe(f^d,(E=f>>>0>>0?c+1|0:c)^M,1),M=d=v,f=c,c=k+a|0,c=((l=l+n|0)>>>0>>0?c+1|0:c)+d|0,c=(l=(d=f+l|0)>>>0>>0?c+1|0:c)+H|0,T=k=d+K|0,k=c=k>>>0>>0?c+1|0:c,d=fe(d^p,l^D,32),c=F+(j=v)|0,A=c=(p=d+A|0)>>>0>>0?c+1|0:c,l=fe(f^p,c^M,40),c=(q=v)+k|0,k=f=l+T|0,d=fe(f^d,j^(M=f>>>0>>0?c+1|0:c),48),c=A+(T=v)|0,j=c=(A=d+p|0)>>>0

>>0?c+1|0:c,f=fe(l^A,q^c,1),c=(q=v)+R|0,c=xe+((p=f+Y|0)>>>0>>0?c+1|0:c)|0,c=(l=(p=p+W|0)>>>0>>0?c+1|0:c)+I|0,_e=I=p+le|0,I=c=I>>>0

>>0?c+1|0:c,F=f,H=p,D=l,p=be,f=fe(y^U,P^re,1),c=N+(y=v)|0,c=((l=_)>>>0>(_=f+_|0)>>>0?c+1|0:c)+ye|0,c=Ce+(l=(p=p+_|0)>>>0<_>>>0?c+1|0:c)|0,N=_=p+de|0,U=c=_>>>0>>0?c+1|0:c,_=f,l=c=fe(p^m,l^ve,32),c=B+te|0,c=(P=f=v)+(h=(f=h+J|0)>>>0>>0?c+1|0:c)|0,B=c=(m=f+l|0)>>>0>>0?c+1|0:c,_=fe(m^_,c^y,40),c=(te=v)+U|0,U=fe(N=(p=_+N|0)^l,P^(l=p>>>0<_>>>0?c+1|0:c),48),c=fe(U^H,(re=v)^D,32),ve=y=v,N=c,P=y,f=fe(f^g,h^X,1),c=pe+(y=v)|0,c=O+((h=f+Q|0)>>>0>>0?c+1|0:c)|0,c=Se+(w=(h=h+w|0)>>>0>>0?c+1|0:c)|0,H=g=h+ie|0,g=c=g>>>0>>0?c+1|0:c,O=f,J=y,h=fe(h^C,w^$,32),c=(C=v)+E|0,y=f=h+S|0,w=fe(f^O,(S=f>>>0>>0?c+1|0:c)^J,40),c=(X=v)+g|0,O=f=w+H|0,f=fe(f^h,C^(E=f>>>0>>0?c+1|0:c),48),c=S+(H=v)|0,g=f,S=f=y+f|0,C=c=f>>>0>>0?c+1|0:c,c=c+P|0,P=f=f+N|0,h=q,q=c=S>>>0>f>>>0?c+1|0:c,h=fe(f^F,h^c,40),c=(c=I)+(I=v)|0,J=f=h+_e|0,F=c=f>>>0>>0?c+1|0:c,y=l,f=fe(L^Y,R^Te,48),c=G+($=v)|0,G=f,l=(f=x+f|0)^b,b=c=f>>>0>>0?c+1|0:c,l=fe(l,c^Z,1),c=(Z=v)+y|0,c=r+((p=l+p|0)>>>0>>0?c+1|0:c)|0,c=(y=(p=p+Ae|0)>>>0>>0?c+1|0:c)+z|0,Y=x=p+ue|0,x=c=x>>>0

>>0?c+1|0:c,p=fe(p^g,y^H,32),c=j+(R=v)|0,j=p,A=c=(y=A+p|0)>>>0>>0?c+1|0:c,l=fe(l^y,Z^c,40),c=(c=x)+(x=v)|0,g=p=l+Y|0,p=fe(L=p^j,R^(j=p>>>0>>0?c+1|0:c),48),c=A+(_e=v)|0,Z=p,Y=c=(A=y+p|0)>>>0>>0?c+1|0:c,p=fe(l^A,x^c,1),c=(x=v)+F|0,c=a+((l=p+J|0)>>>0

>>0?c+1|0:c)|0,c=V+(y=(l=l+n|0)>>>0>>0?c+1|0:c)|0,Te=R=t+l|0,R=c=R>>>0>>0?c+1|0:c,L=p,H=x,x=l,D=y,p=fe(w^S,C^X,1),c=(y=v)+M|0,c=ge+((l=p+k|0)>>>0

>>0?c+1|0:c)|0,c=(w=(l=l+se|0)>>>0>>0?c+1|0:c)+V|0,M=k=t+l|0,k=c=k>>>0>>0?c+1|0:c,S=p,l=c=fe(l^G,w^$,32),w=p=v,c=B+re|0,B=c=(p=m+U|0)>>>0>>0?c+1|0:c,c=c+w|0,c=(m=p)>>>0>(p=p+l|0)>>>0?c+1|0:c,U=p,p^=S,S=c,y=fe(p,c^y,40),c=(X=v)+k|0,w=fe(k=(p=y+M|0)^l,w^(l=p>>>0>>0?c+1|0:c),48),c=fe(w^x,(c=D)^(D=v),32),$=x=v,k=c,M=b,b=d,c=fe(m^_,B^te,1),C=d=v,m=c,c=E+ke|0,c=((_=O+he|0)>>>0>>0?c+1|0:c)+d|0,_=c=(d=m+_|0)>>>0<_>>>0?c+1|0:c,b=fe(d^b,c^T,32),c=(c=M)+(M=v)|0,m=fe((f=b+f|0)^m,C^(B=f>>>0>>0?c+1|0:c),40),c=_+(te=v)|0,O=m,c=Ie+((E=d)>>>0>(d=d+m|0)>>>0?c+1|0:c)|0,E=c=(m=d+oe|0)>>>0>>0?c+1|0:c,d=fe(b^m,M^c,48),c=B+(re=v)|0,T=f,b=d,B=f=f+d|0,M=c=T>>>0>f>>>0?c+1|0:c,c=c+x|0,T=c=(x=f+k|0)>>>0>>0?c+1|0:c,f=(_=fe(x^L,c^H,40))+Te|0,c=(Te=v)+R|0,C=f,G=f>>>0<_>>>0?c+1|0:c,f=fe(N^J,F^ve,48),c=(N=v)+q|0,P=d=f+P|0,L=I,I=c=d>>>0>>0?c+1|0:c,c=fe(d^h,L^c,1),J=d=v,h=c,c=l+r|0,c=((p=p+Ae|0)>>>0>>0?c+1|0:c)+d|0,c=xe+(p=(d=p+h|0)>>>0

>>0?c+1|0:c)|0,F=l=d+W|0,l=c=l>>>0>>0?c+1|0:c,d=fe(d^b,p^re,32),c=Y+(R=v)|0,q=d,d=(b=A+d|0)^h,h=c=b>>>0>>0?c+1|0:c,p=fe(d,J^c,40),c=(c=l)+(l=v)|0,J=d=p+F|0,d=fe(A=d^q,R^(q=d>>>0

>>0?c+1|0:c),48),c=h+(re=v)|0,Y=d,b=c=(d=b+d|0)>>>0>>0?c+1|0:c,p=fe(d^p,l^c,1),c=(A=v)+G|0,c=we+((l=p+C|0)>>>0

>>0?c+1|0:c)|0,c=(h=(l=l+ce|0)>>>0>>0?c+1|0:c)+ae|0,ee=F=l+K|0,F=c=F>>>0>>0?c+1|0:c,R=p,L=l,H=h,p=fe(O^B,M^te,1),c=(M=v)+me|0,c=j+(p>>>0>(l=p+ne|0)>>>0?c+1|0:c)|0,h=c=(l=l+g|0)>>>0>>0?c+1|0:c,c=fe(f^l,c^N,32),N=f=v,g=c,c=S+D|0,c=(f=w+U|0)>>>0>>0?c+1|0:c,w=f,B=c,c=N+c|0,S=f=f+g|0,O=c=w>>>0>f>>>0?c+1|0:c,f=fe(f^p,M^c,40),c=h+(D=v)|0,U=f,c=pe+((f=l+f|0)>>>0>>0?c+1|0:c)|0,c=(f=f+Q|0)>>>0>>0?c+1|0:c,M=f,f^=g,g=c,h=fe(f,N^c,48),c=fe(h^L,(c=H)^(H=v),32),te=f=v,N=c,j=f,f=fe(y^w,B^X,1),c=ke+(l=v)|0,c=E+((p=f+he|0)>>>0>>0?c+1|0:c)|0,c=(y=(p=p+m|0)>>>0>>0?c+1|0:c)+z|0,E=w=p+ue|0,w=c=w>>>0

>>0?c+1|0:c,m=f,B=l,f=(p=fe(p^Z,y^_e,32))+P|0,c=(P=v)+I|0,l=f,y=fe(y=f^m,(m=f>>>0

>>0?c+1|0:c)^B,40),c=(X=v)+w|0,w=f=y+E|0,p=fe(f^p,P^(I=f>>>0>>0?c+1|0:c),48),c=m+(B=v)|0,E=f=p+l|0,P=c=f>>>0>>0?c+1|0:c,c=c+j|0,j=c=(m=f+N|0)>>>0>>0?c+1|0:c,l=fe(m^R,c^A,40),c=(Z=v)+F|0,F=f=l+ee|0,R=c=f>>>0>>0?c+1|0:c,f=d,A=b,b=p,d=fe(k^C,G^$,48),c=T+(ee=v)|0,k=d,x=c=(p=x+d|0)>>>0>>0?c+1|0:c,c=fe(p^_,Te^c,1),T=d=v,_=c,c=g+Ee|0,c=((g=M+le|0)>>>0>>0?c+1|0:c)+d|0,g=c=(d=g+_|0)>>>0>>0?c+1|0:c,b=fe(d^b,c^B,32),c=(M=v)+A|0,_=fe((f=b+f|0)^_,T^(A=f>>>0>>0?c+1|0:c),40),c=g+(C=v)|0,c=Se+((g=d)>>>0>(d=d+_|0)>>>0?c+1|0:c)|0,B=c=(g=d+ie|0)>>>0>>0?c+1|0:c,d=fe(b^g,M^c,48),c=A+($=v)|0,M=d,T=c=(A=f+d|0)>>>0>>0?c+1|0:c,f=fe(A^_,C^c,1),c=(_=v)+R|0,c=ge+((d=f+F|0)>>>0>>0?c+1|0:c)|0,c=we+(b=(d=d+se|0)>>>0>>0?c+1|0:c)|0,ve=C=d+ce|0,C=c=C>>>0>>0?c+1|0:c,G=f,L=d,f=fe(y^E,P^X,1),c=(y=v)+q|0,c=Ce+((d=f+J|0)>>>0>>0?c+1|0:c)|0,c=Ie+(E=(d=d+de|0)>>>0>>0?c+1|0:c)|0,J=P=d+oe|0,P=c=P>>>0>>0?c+1|0:c,q=f,c=fe(d^k,E^ee,32),ee=f=v,d=c,c=O+H|0,S=f=h+S|0,k=c=f>>>0>>0?c+1|0:c,c=ee+c|0,O=c=(h=f+d|0)>>>0>>0?c+1|0:c,y=fe(h^q,c^y,40),c=(H=v)+P|0,E=f=y+J|0,q=fe(f^d,ee^(P=f>>>0>>0?c+1|0:c),48),c=fe(q^L,(ee=v)^b,32),X=f=v,J=c,b=f,d=be,f=fe(S^U,k^D,1),c=I+(k=v)|0,c=((S=w)>>>0>(w=f+w|0)>>>0?c+1|0:c)+ye|0,c=ge+(w=(d=d+w|0)>>>0>>0?c+1|0:c)|0,S=I=d+se|0,I=c=I>>>0>>0?c+1|0:c,d=fe(d^Y,w^re,32),c=x+(U=v)|0,x=d,c=(d=p+d|0)>>>0

>>0?c+1|0:c,p=k,k=c,p=fe(f^d,p^c,40),c=(D=v)+I|0,w=f=p+S|0,f=fe(f^x,U^(I=f>>>0

>>0?c+1|0:c),48),c=k+(L=v)|0,k=f,S=f=d+f|0,U=c=f>>>0>>0?c+1|0:c,c=c+b|0,c=(x=f+J|0)>>>0>>0?c+1|0:c,f=x^G,G=c,_=fe(f,c^_,40),c=(re=v)+C|0,C=f=_+ve|0,Y=f>>>0<_>>>0?c+1|0:c,f=fe(N^F,R^te,48),c=j+(te=v)|0,N=f,c=(f=m+f|0)>>>0>>0?c+1|0:c,m=f,j=c,c=fe(f^l,c^Z,1),Z=f=v,b=c,c=P+xe|0,c=((d=E+W|0)>>>0>>0?c+1|0:c)+f|0,c=Se+(d=(f=d+b|0)>>>0>>0?c+1|0:c)|0,E=l=f+ie|0,l=c=l>>>0>>0?c+1|0:c,f=fe(f^k,d^L,32),c=T+(P=v)|0,k=f,A=c=(d=A+f|0)>>>0>>0?c+1|0:c,b=fe(d^b,Z^c,40),c=(Z=v)+l|0,E=f=b+E|0,f=fe(l=f^k,P^(k=f>>>0>>0?c+1|0:c),48),c=A+(ve=v)|0,A=f,T=c=(l=d+f|0)>>>0>>0?c+1|0:c,f=fe(l^b,Z^c,1),c=(P=v)+Y|0,c=ke+((d=f+C|0)>>>0>>0?c+1|0:c)|0,c=(b=(d=d+he|0)>>>0>>0?c+1|0:c)+me|0,_e=Z=d+ne|0,Z=c=Z>>>0>>0?c+1|0:c,F=f,R=d,L=b,f=fe(p^S,D^U,1),c=Ce+(b=v)|0,c=B+((d=f+de|0)>>>0>>0?c+1|0:c)|0,c=Ee+(p=(d=d+g|0)>>>0>>0?c+1|0:c)|0,U=g=d+le|0,g=c=g>>>0>>0?c+1|0:c,B=f,S=b,c=fe(d^N,p^te,32),N=f=v,p=c,d=f,c=O+ee|0,c=(f=h+q|0)>>>0>>0?c+1|0:c,h=f,O=c,c=c+d|0,c=(b=f+p|0)>>>0>>0?c+1|0:c,f=b^B,B=c,f=fe(f,c^S,40),c=(c=g)+(g=v)|0,S=d=f+U|0,U=c=d>>>0>>0?c+1|0:c,N=fe(d^p,N^c,48),c=fe(N^R,(c=L)^(L=v),32),D=d=v,q=c,d=fe(h^y,O^H,1),c=(h=v)+ye|0,c=I+((p=d+be|0)>>>0>>0?c+1|0:c)|0,c=r+(y=(p=p+w|0)>>>0>>0?c+1|0:c)|0,H=w=p+Ae|0,w=c=w>>>0>>0?c+1|0:c,I=d,O=h,p=fe(p^M,y^$,32),c=(M=v)+j|0,h=d=p+m|0,d=(y=fe(d^I,(m=d>>>0

>>0?c+1|0:c)^O,40))+H|0,c=(H=v)+w|0,I=d,d=fe(d^p,M^(O=d>>>0>>0?c+1|0:c),48),c=m+(ee=v)|0,M=d,j=d=h+d|0,R=c=d>>>0>>0?c+1|0:c,c=D+c|0,c=(p=d+q|0)>>>0>>0?c+1|0:c,d=P,P=c,h=fe(p^F,d^c,40),c=(te=v)+Z|0,w=d=h+_e|0,c=fe(d^q,D^(Z=d>>>0>>0?c+1|0:c),48),D=d=v,q=c,d=f,c=B+L|0,B=f=b+N|0,N=c=f>>>0>>0?c+1|0:c,c=fe(f^d,c^g,1),b=d=v,f=c,c=O+a|0,c=((m=I+n|0)>>>0>>0?c+1|0:c)+d|0,c=pe+(m=(d=f+m|0)>>>0>>0?c+1|0:c)|0,L=g=d+Q|0,g=c=g>>>0>>0?c+1|0:c,I=f,O=b,f=fe(C^J,Y^X,48),c=G+(X=v)|0,C=f,c=(f=x+f|0)>>>0>>0?c+1|0:c,x=f,d=fe(d^A,m^ve,32),G=c,c=c+(J=v)|0,b=f=d+f|0,m=fe(f^I,(A=f>>>0>>0?c+1|0:c)^O,40),c=(Y=v)+g|0,g=f=m+L|0,f=fe(f^d,J^(I=f>>>0>>0?c+1|0:c),48),c=A+($=v)|0,O=f,J=c=(A=b+f|0)>>>0>>0?c+1|0:c,f=fe(m^A,Y^c,1),c=Se+(L=v)|0,Y=f,ve=f=ie+f|0,b=c=f>>>0>>0?c+1|0:c,f=fe(_^x,G^re,1),c=(m=v)+U|0,c=Ie+((d=f+S|0)>>>0>>0?c+1|0:c)|0,c=ae+(x=(d=d+oe|0)>>>0>>0?c+1|0:c)|0,G=_=d+K|0,_=c=_>>>0>>0?c+1|0:c,S=m,d=fe(d^M,x^ee,32),c=T+(ee=v)|0,U=d,c=(m=l+d|0)>>>0>>0?c+1|0:c,l=S,S=c,x=fe(f^m,l^c,40),c=(re=v)+_|0,M=f=x+G|0,c=(T=f>>>0>>0?c+1|0:c)+b|0,_=c=(b=f+ve|0)>>>0>>0?c+1|0:c,G=c=fe(b^q,c^D,32),F=f=v,f=fe(y^j,R^H,1),c=(l=v)+k|0,c=V+((d=f+E|0)>>>0>>0?c+1|0:c)|0,c=(y=(d=t+d|0)>>>0>>0?c+1|0:c)+z|0,R=k=d+ue|0,k=c=k>>>0>>0?c+1|0:c,E=f,j=l,d=fe(d^C,y^X,32),c=(C=v)+N|0,l=f=d+B|0,f=(y=fe(f^E,(B=f>>>0>>0?c+1|0:c)^j,40))+R|0,c=(R=v)+k|0,k=f,f=fe(f^d,C^(E=f>>>0>>0?c+1|0:c),48),c=B+(X=v)|0,B=f,C=c=(f=l+f|0)>>>0>>0?c+1|0:c,c=c+F|0,N=c=(l=f)>>>0>(f=f+G|0)>>>0?c+1|0:c,d=fe(f^Y,L^c,40),c=_+(L=v)|0,j=d,c=a+((d=b+d|0)>>>0>>0?c+1|0:c)|0,Y=d=d+n|0,b=d^G,G=c=d>>>0>>0?c+1|0:c,d=fe(b,F^c,48),c=N+(F=v)|0,N=c=(_=f+d|0)>>>0>>0?c+1|0:c,f=c=fe(_^j,L^c,1),j=b=v,b=fe(l^y,C^R,1),c=I+(y=v)|0,c=Ie+((l=b+g|0)>>>0>>0?c+1|0:c)|0,c=ge+(g=(l=l+oe|0)>>>0>>0?c+1|0:c)|0,L=I=l+se|0,I=c=I>>>0>>0?c+1|0:c,C=b,R=y,c=P+D|0,c=(b=p+q|0)>>>0

>>0?c+1|0:c,P=b,U=fe(M^U,T^ee,48),y=fe(l^U,g^(ee=v),32),M=c,c=c+(ve=v)|0,g=b=y+b|0,b=fe(b^C,(T=b>>>0>>0?c+1|0:c)^R,40),c=(C=v)+I|0,R=c=(p=b+L|0)>>>0>>0?c+1|0:c,c=c+j|0,c=r+((q=p)>>>0>(p=f+p|0)>>>0?c+1|0:c)|0,c=(l=(p=p+Ae|0)>>>0>>0?c+1|0:c)+ye|0,_e=I=p+be|0,L=c=I>>>0

>>0?c+1|0:c,H=f,D=p,c=fe(h^P,M^te,1),h=p=v,f=c,c=E+Ce|0,c=((I=k+de|0)>>>0>>0?c+1|0:c)+p|0,c=pe+(I=(p=f+I|0)>>>0>>0?c+1|0:c)|0,M=k=p+Q|0,k=c=k>>>0>>0?c+1|0:c,E=f,c=fe(p^O,I^$,32),P=f=v,p=c,I=f,c=S+ee|0,S=f=m+U|0,O=c=f>>>0>>0?c+1|0:c,c=c+I|0,c=(m=f+p|0)>>>0>>0?c+1|0:c;f=m^E,E=c,I=fe(f,c^h,40),c=(ee=v)+k|0,U=fe(k=(f=I+M|0)^p,P^(p=f>>>0>>0?c+1|0:c),48),c=fe(c=U^D,(D=v)^l,32),te=l=v,M=c,k=l,l=fe(x^S,O^re,1),c=ae+(x=v)|0,c=Z+((h=l+K|0)>>>0>>0?c+1|0:c)|0,c=ke+(w=(h=h+w|0)>>>0>>0?c+1|0:c)|0,O=S=h+he|0,S=c=S>>>0>>0?c+1|0:c,h=fe(h^B,w^X,32),c=J+(P=v)|0,B=h,A=c=(h=A+h|0)>>>0>>0?c+1|0:c,w=fe(l^h,c^x,40),c=(X=v)+S|0,x=l=w+O|0,l=fe(S=l^B,P^(B=l>>>0>>0?c+1|0:c),48),c=A+($=v)|0,S=l,O=l=h+l|0,P=c=l>>>0>>0?c+1|0:c,c=c+k|0,c=(h=l+M|0)>>>0>>0?c+1|0:c,l=j,j=c,A=fe(h^H,l^c,40),c=(Z=v)+L|0,k=l=A+_e|0,l=fe(L=l^M,te^(M=l>>>0>>0?c+1|0:c),48),c=j+(te=v)|0,j=l,h=c=(l=h+l|0)>>>0>>0?c+1|0:c,Z=c=fe(l^A,Z^c,1),re=c,J=A=v,A=p,p=b,b=fe(y^q,R^ve,48),c=T+(ve=v)|0,T=b,c=(b=g+b|0)>>>0>>0?c+1|0:c,g=f,f=p^b,p=c,f=fe(f,c^C,1),c=(C=v)+A|0,c=Ee+(f>>>0>(y=g+f|0)>>>0?c+1|0:c)|0,c=me+(g=(y=y+le|0)>>>0>>0?c+1|0:c)|0,q=A=y+ne|0,A=c=A>>>0>>0?c+1|0:c,y=fe(y^S,g^$,32),c=N+(R=v)|0,S=c=(g=y+_|0)>>>0<_>>>0?c+1|0:c,_=fe(f^g,C^c,40),c=($=v)+A|0,C=f=_+q|0,y=fe(f^y,R^(N=f>>>0<_>>>0?c+1|0:c),48),c=S+(q=v)|0,R=f=y+g|0,S=f,L=c=f>>>0>>0?c+1|0:c,g=b,A=p,c=E+D|0,c=(f=m+U|0)>>>0>>0?c+1|0:c,m=f,f^=I,I=c,c=fe(f,ee^c,1),H=f=v,E=c,p=c,c=B+z|0,c=((b=x+ue|0)>>>0>>0?c+1|0:c)+f|0,x=c=(f=b)>>>0>(b=p+b|0)>>>0?c+1|0:c,p=fe(d^b,c^F,32),c=(c=A)+(A=v)|0,U=f=p+g|0,d=fe(d=f^E,H^(E=f>>>0

>>0?c+1|0:c),40),c=x+(F=v)|0,c=xe+((f=d+b|0)>>>0>>0?c+1|0:c)|0,H=c=(g=f+W|0)>>>0>>0?c+1|0:c,A=fe(p^g,A^c,48),_e=c=v,f=fe(w^O,P^X,1),c=(p=v)+G|0,c=we+((b=f+Y|0)>>>0>>0?c+1|0:c)|0,c=V+(w=(b=b+ce|0)>>>0>>0?c+1|0:c)|0,G=x=t+b|0,O=c=x>>>0>>0?c+1|0:c,P=f,x=fe(b^T,w^ve,32),c=(X=v)+I|0,I=f=x+m|0,b=fe(f^P,(T=f>>>0>>0?c+1|0:c)^p,40),c=(c=O)+(O=v)|0,P=f=b+G|0,G=c=f>>>0>>0?c+1|0:c,p=c,c=V+J|0,c=((w=t+Z|0)>>>0>>0?c+1|0:c)+p|0,B=c=(p=f+w|0)>>>0>>0?c+1|0:c,f=fe(p^A,_e^c,32),c=(Z=v)+L|0,m=fe((w=f+S|0)^re,(c=w>>>0>>0?c+1|0:c)^J,40),J=c,c=me+(S=v)|0,c=B+((Y=m+ne|0)>>>0>>0?c+1|0:c)|0,c=(B=p+Y|0)>>>0

>>0?c+1|0:c,p=Z,Z=c,p=fe(f^B,p^c,48),c=(c=J)+(J=v)|0,f=m^(w=p+w|0),m=c=w>>>0

>>0?c+1|0:c,Y=c=fe(f,c^S,1),re=c,D=f=v,S=l,ee=h,l=b,b=fe(x^P,G^X,48),c=T+(P=v)|0,x=f=b+I|0,I=c=f>>>0>>0?c+1|0:c,l=fe(f^l,c^O,1),c=(G=v)+Ee|0,c=H+((f=l+le|0)>>>0>>0?c+1|0:c)|0,g=c=(h=f+g|0)>>>0>>0?c+1|0:c,f=fe(h^y,c^q,32),c=(O=v)+ee|0,S=y=f+S|0,T=c=y>>>0>>0?c+1|0:c,l=fe(l^y,c^G,40),c=ge+(ve=v)|0,G=l,c=g+((l=se+l|0)>>>0>>0?c+1|0:c)|0,h=c=(l=l+h|0)>>>0>>0?c+1|0:c,y=fe(f^l,c^O,48),c=(c=T)+(T=v)|0,q=f=y+S|0,O=f,H=c=f>>>0>>0?c+1|0:c,c=E+_e|0,S=(f=A+U|0)^d,d=c=f>>>0>>0?c+1|0:c,c=fe(S,c^F,1),F=g=v,S=c,c=N+pe|0,c=((A=C+Q|0)>>>0>>0?c+1|0:c)+g|0,E=c=(E=A)>>>0>(A=A+S|0)>>>0?c+1|0:c,U=g=fe(A^j,te^c,32),C=c=v,c=c+I|0,N=g=g+x|0,j=c=U>>>0>g>>>0?c+1|0:c,g=fe(g^S,F^c,40),c=ye+(F=v)|0,c=E+((x=g+be|0)>>>0>>0?c+1|0:c)|0,x=c=(S=A)>>>0>(A=A+x|0)>>>0?c+1|0:c,S=fe(A^U,c^C,48),te=c=v,I=c,_=fe(_^R,L^$,1),E=c=v,U=b,c=c+z|0,c=M+((b=_+ue|0)>>>0>>0?c+1|0:c)|0,c=(b=b+k|0)>>>0>>0?c+1|0:c,k=b^U,U=c,k=fe(k,c^P,32),c=($=v)+d|0,M=f=k+f|0,d=fe(f^_,(d=E)^(E=f>>>0>>0?c+1|0:c),40),c=we+(C=v)|0,c=U+((f=d+ce|0)>>>0>>0?c+1|0:c)|0,U=f=f+b|0,P=c=f>>>0>>0?c+1|0:c,b=c,c=D+Ie|0,c=((_=Y+oe|0)>>>0>>0?c+1|0:c)+b|0,Y=c=(b=f+_|0)>>>0<_>>>0?c+1|0:c,f=fe(b^S,c^I,32),c=(R=v)+H|0,I=fe((_=f+O|0)^re,(c=_>>>0>>0?c+1|0:c)^D,40),L=O=v,D=c,c=O+ke|0,c=Y+((O=I+he|0)>>>0>>0?c+1|0:c)|0,Y=c=(O=b+O|0)>>>0>>0?c+1|0:c,b=fe(f^O,c^R,48),c=(R=v)+D|0,f=(_=b+_|0)^I,I=c=_>>>0>>0?c+1|0:c,L=c=fe(f,c^L,1),D=f=v,ee=w,X=y,y=d,d=fe(k^U,P^$,48),c=(k=v)+E|0,E=f=d+M|0,U=c=f>>>0>>0?c+1|0:c,y=fe(f^y,c^C,1),c=(C=v)+Se|0,c=((f=y+ie|0)>>>0>>0?c+1|0:c)+x|0,A=c=(w=f+A|0)>>>0>>0?c+1|0:c,f=fe(w^X,c^T,32),c=(x=v)+m|0,M=m=f+ee|0,T=c=m>>>0>>0?c+1|0:c,y=fe(y^m,c^C,40),c=r+(X=v)|0,C=y,c=A+((y=Ae+y|0)>>>0>>0?c+1|0:c)|0,P=c=(m=y+w|0)>>>0>>0?c+1|0:c,y=fe(f^m,c^x,48),c=(c=T)+(T=v)|0,M=f=y+M|0,ee=c=f>>>0>>0?c+1|0:c,A=p,w=l,c=j+te|0,p=c=(f=S+N|0)>>>0>>0?c+1|0:c,l=fe(f^g,c^F,1),c=(g=v)+ae|0,c=((x=l+K|0)>>>0>>0?c+1|0:c)+h|0,h=fe(A^(w=w+x|0),(c=w>>>0>>0?c+1|0:c)^J,32),x=c,S=l,c=(A=v)+U|0,c=(l=h+E|0)>>>0>>0?c+1|0:c,E=l,l^=S,S=c,l=fe(l,c^g,40),c=a+(U=v)|0,c=((g=l+n|0)>>>0>>0?c+1|0:c)+x|0,N=c=(x=g)>>>0>(g=g+w|0)>>>0?c+1|0:c,A=fe(h^g,c^A,48),te=c=v,w=c,h=fe(q^G,H^ve,1),j=c=v,G=p,c=c+xe|0,c=Z+((p=h+W|0)>>>0>>0?c+1|0:c)|0,x=k,k=c=(p=p+B|0)>>>0>>0?c+1|0:c,x=fe(d^p,x^c,32),c=($=v)+G|0,B=f=x+f|0,d=fe(f^h,(d=j)^(j=f>>>0>>0?c+1|0:c),40),c=Ce+(G=v)|0,c=k+((f=d+de|0)>>>0>>0?c+1|0:c)|0,Z=f=f+p|0,q=c=f>>>0

>>0?c+1|0:c,p=c,c=D+pe|0,c=((h=Q+L|0)>>>0>>0?c+1|0:c)+p|0,k=c=(p=f+h|0)>>>0>>0?c+1|0:c,f=fe(p^A,c^w,32),c=(J=v)+ee|0,w=fe((h=f+M|0)^L,(c=h>>>0>>0?c+1|0:c)^D,40),L=c,c=z+(F=v)|0,c=k+((H=w+ue|0)>>>0>>0?c+1|0:c)|0,c=(k=p+H|0)>>>0

>>0?c+1|0:c,p=J,J=c,p=fe(f^k,p^c,48),c=(c=L)+(L=v)|0,f=(h=p+h|0)^w,w=c=h>>>0

>>0?c+1|0:c,F=c=fe(f,c^F,1),H=f=v,D=y,y=d,d=fe(x^Z,q^$,48),c=(c=j)+(j=v)|0,B=f=d+B|0,x=G,G=c=f>>>0>>0?c+1|0:c,y=fe(f^y,x^c,1),c=(Z=v)+ke|0,c=N+((f=y+he|0)>>>0>>0?c+1|0:c)|0,x=g,g=f+g|0,f=T,T=c=x>>>0>g>>>0?c+1|0:c,f=fe(g^D,f^c,32),c=(c=I)+(I=v)|0,N=c=(x=f+_|0)>>>0>>0?c+1|0:c,_=x,y=fe(y^x,c^Z,40),c=xe+($=v)|0,Z=y,c=T+((y=W+y|0)>>>0>>0?c+1|0:c)|0,T=c=(x=y+g|0)>>>0>>0?c+1|0:c,y=fe(f^x,c^I,48),c=(c=N)+(N=v)|0,q=f=y+_|0,D=c=f>>>0>>0?c+1|0:c,_=b,c=S+te|0,b=c=(f=A+E|0)>>>0>>0?c+1|0:c,l=fe(f^l,c^U,1),c=me+(A=v)|0,c=P+((g=l+ne|0)>>>0>>0?c+1|0:c)|0,S=(g=m+g|0)^_,_=c=g>>>0>>0?c+1|0:c,m=fe(S,c^R,32),I=c=v,S=l,c=c+G|0,c=(l=m+B|0)>>>0>>0?c+1|0:c,E=l,l^=S,S=c,l=fe(l,c^A,40),c=a+(U=v)|0,c=_+((A=l+n|0)>>>0>>0?c+1|0:c)|0,P=c=(A=g+A|0)>>>0>>0?c+1|0:c,_=fe(m^A,c^I,48),te=c=v,g=c,m=fe(C^M,X^ee,1),B=c=v,M=b,c=c+r|0,c=Y+((b=m+Ae|0)>>>0>>0?c+1|0:c)|0,O=c=(b=b+O|0)>>>0>>0?c+1|0:c,I=fe(d^b,c^j,32),c=(re=v)+M|0,M=f=I+f|0,d=fe(f^m,(C=f>>>0>>0?c+1|0:c)^B,40),c=V+(j=v)|0,c=O+((f=t+d|0)>>>0>>0?c+1|0:c)|0,O=f=f+b|0,G=c=f>>>0>>0?c+1|0:c,b=c,c=H+we|0,c=((m=F+ce|0)>>>0>>0?c+1|0:c)+b|0,B=c=(b=f+m|0)>>>0>>0?c+1|0:c,f=fe(b^_,c^g,32),c=(Y=v)+D|0,g=fe((m=f+q|0)^F,(c=m>>>0>>0?c+1|0:c)^H,40),R=c,c=Ee+(F=v)|0,c=B+((H=g+le|0)>>>0>>0?c+1|0:c)|0,c=(B=b+H|0)>>>0>>0?c+1|0:c,b=Y,Y=c,b=fe(f^B,b^c,48),c=(c=R)+(R=v)|0,f=(m=b+m|0)^g,g=c=m>>>0>>0?c+1|0:c,F=c=fe(f,c^F,1),ve=c,H=f=v,ee=h,X=y,h=d,d=fe(I^O,G^re,48),c=(I=v)+C|0,O=f=d+M|0,M=c=f>>>0>>0?c+1|0:c,h=fe(f^h,c^j,1),c=(j=v)+ye|0,c=P+((f=h+be|0)>>>0>>0?c+1|0:c)|0,A=c=(y=f+A|0)>>>0>>0?c+1|0:c,f=fe(y^X,c^N,32),c=(C=v)+w|0,N=c=(w=f+ee|0)>>>0>>0?c+1|0:c,h=fe(h^w,c^j,40),c=Se+(re=v)|0,P=h,c=A+((h=ie+h|0)>>>0>>0?c+1|0:c)|0,A=h+y|0,h=C,C=c=A>>>0>>0?c+1|0:c,h=fe(f^A,h^c,48),c=(c=N)+(N=v)|0,j=f=h+w|0,G=c=f>>>0>>0?c+1|0:c,y=p,c=S+te|0,p=c=(f=_+E|0)>>>0<_>>>0?c+1|0:c,l=fe(f^l,c^U,1),c=(_=v)+Ce|0,c=T+((w=l+de|0)>>>0>>0?c+1|0:c)|0,y=fe(y^(w=w+x|0),(c=w>>>0>>0?c+1|0:c)^L,32),S=x=v,x=c,E=l,c=S+M|0,c=(l=y+O|0)>>>0>>0?c+1|0:c,O=l,l^=E,E=c,l=fe(l,c^_,40),c=ge+(U=v)|0,c=((_=l+se|0)>>>0>>0?c+1|0:c)+x|0,T=S,S=c=(x=w+_|0)>>>0<_>>>0?c+1|0:c,_=fe(y^x,T^c,48),te=c=v,w=c,y=fe(q^Z,D^$,1),M=c=v,T=p,c=c+ae|0,c=J+((p=y+K|0)>>>0>>0?c+1|0:c)|0,k=c=(p=p+k|0)>>>0>>0?c+1|0:c,I=fe(d^p,c^I,32),c=($=v)+T|0,T=f=I+f|0,d=fe(f^y,(d=M)^(M=f>>>0>>0?c+1|0:c),40),c=Ie+(Z=v)|0,c=k+((f=d+oe|0)>>>0>>0?c+1|0:c)|0,q=f=f+p|0,J=c=f>>>0

>>0?c+1|0:c,p=c,c=H+a|0,c=((y=F+n|0)>>>0>>0?c+1|0:c)+p|0,k=c=(p=f+y|0)>>>0>>0?c+1|0:c,f=fe(p^_,c^w,32),c=(F=v)+G|0,w=fe((y=f+j|0)^ve,(c=y>>>0>>0?c+1|0:c)^H,40),H=c,c=ke+(L=v)|0,c=k+((D=w+he|0)>>>0>>0?c+1|0:c)|0,c=(k=p+D|0)>>>0

>>0?c+1|0:c,p=F,F=c,p=fe(f^k,p^c,48),c=(c=H)+(H=v)|0,f=(y=p+y|0)^w,w=c=y>>>0

>>0?c+1|0:c,L=c=fe(f,c^L,1),D=f=v,ee=m,X=h,h=d,d=fe(I^q,J^$,48),c=(I=v)+M|0,M=f=d+T|0,T=c=f>>>0>>0?c+1|0:c,h=fe(f^h,c^Z,1),c=(Z=v)+Se|0,c=S+((f=h+ie|0)>>>0>>0?c+1|0:c)|0,x=c=(m=f+x|0)>>>0>>0?c+1|0:c,f=fe(m^X,c^N,32),c=(S=v)+g|0,N=c=(g=f+ee|0)>>>0>>0?c+1|0:c,h=fe(h^g,c^Z,40),c=ae+($=v)|0,Z=h,c=x+((h=K+h|0)>>>0>>0?c+1|0:c)|0,x=h+m|0,h=S,S=c=x>>>0>>0?c+1|0:c,h=fe(f^x,h^c,48),c=(c=N)+(N=v)|0,q=f=h+g|0,J=c=f>>>0>>0?c+1|0:c,m=b,c=E+te|0,b=c=(f=_+O|0)>>>0<_>>>0?c+1|0:c,l=fe(f^l,c^U,1),c=Ie+(_=v)|0,c=C+((g=l+oe|0)>>>0>>0?c+1|0:c)|0,A=c=(g=g+A|0)>>>0>>0?c+1|0:c,m=fe(m^g,c^R,32),O=c=v,E=l,c=c+T|0,c=(l=m+M|0)>>>0>>0?c+1|0:c,U=l,l^=E,E=c,l=fe(l,c^_,40),c=we+(M=v)|0,c=A+((_=l+ce|0)>>>0>>0?c+1|0:c)|0,c=(A=g+_|0)>>>0>>0?c+1|0:c,g=O,O=c,_=fe(m^A,g^c,48),te=c=v,g=c,m=fe(P^j,G^re,1),T=c=v,C=b,c=c+V|0,c=Y+((b=t+m|0)>>>0>>0?c+1|0:c)|0,B=c=(b=b+B|0)>>>0>>0?c+1|0:c,I=fe(d^b,c^I,32),c=(re=v)+C|0,C=f=I+f|0,d=fe(f^m,(d=T)^(T=f>>>0>>0?c+1|0:c),40),c=xe+(P=v)|0,c=B+((f=d+W|0)>>>0>>0?c+1|0:c)|0,j=f=f+b|0,G=c=f>>>0>>0?c+1|0:c,b=c,c=D+me|0,c=((m=L+ne|0)>>>0>>0?c+1|0:c)+b|0,B=c=(b=f+m|0)>>>0>>0?c+1|0:c,f=fe(b^_,c^g,32),c=(Y=v)+J|0,g=fe((m=f+q|0)^L,(c=m>>>0>>0?c+1|0:c)^D,40),L=c,c=r+(R=v)|0,c=B+((D=g+Ae|0)>>>0>>0?c+1|0:c)|0,c=(B=b+D|0)>>>0>>0?c+1|0:c,b=Y,Y=c,b=fe(f^B,b^c,48),c=(c=L)+(L=v)|0,f=(m=b+m|0)^g,g=c=m>>>0>>0?c+1|0:c,R=c=fe(f,c^R,1),D=f=v,ee=y,X=h,h=d,d=fe(I^j,G^re,48),c=(I=v)+T|0,T=f=d+C|0,C=c=f>>>0>>0?c+1|0:c,h=fe(f^h,c^P,1),c=(P=v)+pe|0,c=O+((f=h+Q|0)>>>0>>0?c+1|0:c)|0,A=c=(y=f+A|0)>>>0>>0?c+1|0:c,f=fe(y^X,c^N,32),c=(O=v)+w|0,N=c=(w=f+ee|0)>>>0>>0?c+1|0:c,h=fe(h^w,c^P,40),c=Ce+(re=v)|0,P=h,c=A+((h=de+h|0)>>>0>>0?c+1|0:c)|0,A=h+y|0,h=O,O=c=A>>>0>>0?c+1|0:c,h=fe(f^A,h^c,48),c=(c=N)+(N=v)|0,j=f=h+w|0,G=c=f>>>0>>0?c+1|0:c,y=p,c=E+te|0,p=c=(f=_+U|0)>>>0<_>>>0?c+1|0:c,l=fe(f^l,c^M,1),c=(_=v)+ge|0,c=S+((w=l+se|0)>>>0>>0?c+1|0:c)|0,x=c=(w=w+x|0)>>>0>>0?c+1|0:c,y=fe(y^w,c^H,32),S=c=v,E=l,c=c+C|0,c=(l=y+T|0)>>>0>>0?c+1|0:c,U=l,l^=E,E=c,l=fe(l,c^_,40),c=ye+(M=v)|0,c=x+((_=l+be|0)>>>0>>0?c+1|0:c)|0,T=S,S=c=(x=w+_|0)>>>0>>0?c+1|0:c,_=fe(y^x,T^c,48),te=c=v,w=c,y=fe(q^Z,J^$,1),T=c=v,C=p,c=c+z|0,c=F+((p=y+ue|0)>>>0>>0?c+1|0:c)|0,k=c=(p=p+k|0)>>>0>>0?c+1|0:c,I=fe(d^p,c^I,32),c=($=v)+C|0,C=f=I+f|0,d=fe(f^y,(d=T)^(T=f>>>0>>0?c+1|0:c),40),c=Ee+(Z=v)|0,c=k+((f=d+le|0)>>>0>>0?c+1|0:c)|0,q=f=f+p|0,J=c=f>>>0

>>0?c+1|0:c,p=c,c=D+r|0,c=((y=R+Ae|0)>>>0>>0?c+1|0:c)+p|0,k=c=(p=f+y|0)>>>0>>0?c+1|0:c,f=fe(p^_,c^w,32),c=(F=v)+G|0,w=fe((y=f+j|0)^R,(c=y>>>0>>0?c+1|0:c)^D,40),H=c,c=Ie+(R=v)|0,c=k+((D=w+oe|0)>>>0>>0?c+1|0:c)|0,c=(k=p+D|0)>>>0

>>0?c+1|0:c,p=F,F=c,p=fe(f^k,p^c,48),c=(c=H)+(H=v)|0,f=(y=p+y|0)^w,w=c=y>>>0

>>0?c+1|0:c,R=c=fe(f,c^R,1),D=f=v,ee=m,X=h,h=d,d=fe(I^q,J^$,48),c=(I=v)+T|0,T=f=d+C|0,C=c=f>>>0>>0?c+1|0:c,h=fe(f^h,c^Z,1),c=(Z=v)+z|0,c=S+((f=h+ue|0)>>>0>>0?c+1|0:c)|0,x=c=(m=f+x|0)>>>0>>0?c+1|0:c,f=fe(m^X,c^N,32),c=(S=v)+g|0,N=c=(g=f+ee|0)>>>0>>0?c+1|0:c,h=fe(h^g,c^Z,40),c=ye+($=v)|0,Z=h,c=x+((h=be+h|0)>>>0>>0?c+1|0:c)|0,x=h+m|0,h=S,S=c=x>>>0>>0?c+1|0:c,h=fe(f^x,h^c,48),c=(c=N)+(N=v)|0,q=f=h+g|0,J=c=f>>>0>>0?c+1|0:c,m=b,c=E+te|0,b=c=(f=_+U|0)>>>0<_>>>0?c+1|0:c,l=fe(f^l,c^M,1),c=ge+(_=v)|0,c=O+((g=l+se|0)>>>0>>0?c+1|0:c)|0,A=c=(g=g+A|0)>>>0>>0?c+1|0:c,m=fe(m^g,c^L,32),O=c=v,E=l,c=c+C|0,c=(l=m+T|0)>>>0>>0?c+1|0:c,U=l,l^=E,E=c,l=fe(l,c^_,40),c=Ce+(M=v)|0,c=A+((_=l+de|0)>>>0>>0?c+1|0:c)|0,c=(A=g+_|0)>>>0>>0?c+1|0:c,g=O,O=c,_=fe(m^A,g^c,48),te=c=v,g=c,m=fe(P^j,G^re,1),T=c=v,C=b,c=c+ae|0,c=Y+((b=m+K|0)>>>0>>0?c+1|0:c)|0,B=c=(b=b+B|0)>>>0>>0?c+1|0:c,I=fe(d^b,c^I,32),c=(re=v)+C|0,C=f=I+f|0,d=fe(f^m,(d=T)^(T=f>>>0>>0?c+1|0:c),40),c=Ee+(P=v)|0,c=B+((f=d+le|0)>>>0>>0?c+1|0:c)|0,j=f=f+b|0,G=c=f>>>0>>0?c+1|0:c,b=c,c=D+xe|0,c=((m=R+W|0)>>>0>>0?c+1|0:c)+b|0,B=c=(b=f+m|0)>>>0>>0?c+1|0:c,f=fe(b^_,c^g,32),c=(Y=v)+J|0,g=fe((m=f+q|0)^R,(c=m>>>0>>0?c+1|0:c)^D,40),L=c,c=V+(R=v)|0,c=B+((D=t+g|0)>>>0>>0?c+1|0:c)|0,c=(B=b+D|0)>>>0>>0?c+1|0:c,b=Y,Y=c,b=fe(f^B,b^c,48),c=(c=L)+(L=v)|0,f=(m=b+m|0)^g,g=c=m>>>0>>0?c+1|0:c,R=c=fe(f,c^R,1),D=f=v,ee=y,X=h,h=d,d=fe(I^j,G^re,48),c=(I=v)+T|0,T=f=d+C|0,C=c=f>>>0>>0?c+1|0:c,h=fe(f^h,c^P,1),c=(P=v)+we|0,c=O+((f=h+ce|0)>>>0>>0?c+1|0:c)|0,A=c=(y=f+A|0)>>>0>>0?c+1|0:c,f=fe(y^X,c^N,32),c=(O=v)+w|0,N=c=(w=f+ee|0)>>>0>>0?c+1|0:c,h=fe(h^w,c^P,40),c=a+(re=v)|0,P=h,c=A+((h=n+h|0)>>>0>>0?c+1|0:c)|0,A=h+y|0,h=O,O=c=A>>>0>>0?c+1|0:c,h=fe(f^A,h^c,48),c=(c=N)+(N=v)|0,j=f=h+w|0,G=c=f>>>0>>0?c+1|0:c,y=p,c=E+te|0,p=c=(f=_+U|0)>>>0<_>>>0?c+1|0:c,l=fe(f^l,c^M,1),c=(_=v)+me|0,c=S+((w=l+ne|0)>>>0>>0?c+1|0:c)|0,x=c=(w=w+x|0)>>>0>>0?c+1|0:c,y=fe(y^w,c^H,32),S=c=v,E=l,c=c+C|0,c=(l=y+T|0)>>>0>>0?c+1|0:c,U=l,l^=E,E=c,l=fe(l,c^_,40),c=Se+(M=v)|0,c=x+((_=l+ie|0)>>>0>>0?c+1|0:c)|0,T=S,S=c=(x=w+_|0)>>>0>>0?c+1|0:c,_=fe(y^x,T^c,48),te=c=v,w=c,y=fe(q^Z,J^$,1),T=c=v,C=p,c=c+ke|0,c=F+((p=y+he|0)>>>0>>0?c+1|0:c)|0,k=c=(p=p+k|0)>>>0>>0?c+1|0:c,I=fe(d^p,c^I,32),c=($=v)+C|0,C=f=I+f|0,d=fe(f^y,(d=T)^(T=f>>>0>>0?c+1|0:c),40),c=pe+(Z=v)|0,c=k+((f=d+Q|0)>>>0>>0?c+1|0:c)|0,q=f=f+p|0,J=c=f>>>0

>>0?c+1|0:c,p=c,c=D+Ee|0,c=((y=R+le|0)>>>0>>0?c+1|0:c)+p|0,k=c=(p=f+y|0)>>>0>>0?c+1|0:c,f=fe(p^_,c^w,32),c=(F=v)+G|0,w=fe((y=f+j|0)^R,(c=y>>>0>>0?c+1|0:c)^D,40),H=c,c=ye+(R=v)|0,c=k+((D=w+be|0)>>>0>>0?c+1|0:c)|0,c=(k=p+D|0)>>>0

>>0?c+1|0:c,p=F,F=c,p=fe(f^k,p^c,48),c=(c=H)+(H=v)|0,f=(y=p+y|0)^w,w=c=y>>>0

>>0?c+1|0:c,R=c=fe(f,c^R,1),D=f=v,ee=m,X=h,h=d,d=fe(I^q,J^$,48),c=(I=v)+T|0,T=f=d+C|0,C=c=f>>>0>>0?c+1|0:c,h=fe(f^h,c^Z,1),c=(Z=v)+Ie|0,c=S+((f=h+oe|0)>>>0>>0?c+1|0:c)|0,x=c=(m=f+x|0)>>>0>>0?c+1|0:c,f=fe(m^X,c^N,32),c=(S=v)+g|0,N=c=(g=f+ee|0)>>>0>>0?c+1|0:c,h=fe(h^g,c^Z,40),c=r+($=v)|0,Z=h,c=x+((h=Ae+h|0)>>>0>>0?c+1|0:c)|0,x=h+m|0,h=S,S=c=x>>>0>>0?c+1|0:c,h=fe(f^x,h^c,48),c=(c=N)+(N=v)|0,q=f=h+g|0,J=c=f>>>0>>0?c+1|0:c,m=b,c=E+te|0,b=c=(f=_+U|0)>>>0<_>>>0?c+1|0:c,l=fe(f^l,c^M,1),c=Se+(_=v)|0,c=O+((g=l+ie|0)>>>0>>0?c+1|0:c)|0,A=c=(g=g+A|0)>>>0>>0?c+1|0:c,m=fe(m^g,c^L,32),O=c=v,E=l,c=c+C|0,c=(l=m+T|0)>>>0>>0?c+1|0:c,U=l,l^=E,E=c,l=fe(l,c^_,40),c=z+(M=v)|0,c=A+((_=l+ue|0)>>>0>>0?c+1|0:c)|0,c=(A=g+_|0)>>>0>>0?c+1|0:c,g=O,O=c,_=fe(m^A,g^c,48),te=c=v,g=c,m=fe(P^j,G^re,1),T=c=v,C=b,c=c+Ce|0,c=Y+((b=m+de|0)>>>0>>0?c+1|0:c)|0,B=c=(b=b+B|0)>>>0>>0?c+1|0:c,I=fe(d^b,c^I,32),c=(re=v)+C|0,C=f=I+f|0,d=fe(f^m,(d=T)^(T=f>>>0>>0?c+1|0:c),40),c=ke+(P=v)|0,c=B+((f=d+he|0)>>>0>>0?c+1|0:c)|0,j=f=f+b|0,G=c=f>>>0>>0?c+1|0:c,b=c,c=D+ge|0,c=((m=R+se|0)>>>0>>0?c+1|0:c)+b|0,B=c=(b=f+m|0)>>>0>>0?c+1|0:c,f=fe(b^_,c^g,32),c=(Y=v)+J|0,g=fe((m=f+q|0)^R,(c=m>>>0>>0?c+1|0:c)^D,40),L=c,c=a+(R=v)|0,c=B+((D=g+n|0)>>>0>>0?c+1|0:c)|0,c=(B=b+D|0)>>>0>>0?c+1|0:c,b=Y,Y=c,b=fe(f^B,b^c,48),c=(c=L)+(L=v)|0,f=(m=b+m|0)^g,g=c=m>>>0>>0?c+1|0:c,R=c=fe(f,c^R,1),D=f=v,ee=y,X=h,h=d,d=fe(I^j,G^re,48),c=(I=v)+T|0,T=f=d+C|0,C=c=f>>>0>>0?c+1|0:c,h=fe(f^h,c^P,1),c=(j=v)+ae|0,c=O+((f=h+K|0)>>>0>>0?c+1|0:c)|0,A=c=(y=f+A|0)>>>0>>0?c+1|0:c,f=fe(y^X,c^N,32),c=(O=v)+w|0,N=w=f+ee|0,P=c=w>>>0>>0?c+1|0:c,h=fe(h^w,c^j,40),c=xe+(ee=v)|0,j=h,c=A+((h=W+h|0)>>>0>>0?c+1|0:c)|0,w=h+y|0,h=O,O=c=w>>>0>>0?c+1|0:c,h=fe(f^w,h^c,48),c=(c=P)+(P=v)|0,N=f=h+N|0,G=c=f>>>0>>0?c+1|0:c,y=p,c=E+te|0,p=c=(f=_+U|0)>>>0<_>>>0?c+1|0:c,l=fe(f^l,c^M,1),c=(_=v)+V|0,c=S+((A=t+l|0)>>>0>>0?c+1|0:c)|0,x=c=(A=A+x|0)>>>0>>0?c+1|0:c,S=y=fe(y^A,c^H,32),E=c=v,U=l,c=c+C|0,c=(l=y+T|0)>>>0>>0?c+1|0:c,M=l,l^=U,U=c,l=fe(l,c^_,40),c=we+(T=v)|0,c=x+((y=l+ce|0)>>>0>>0?c+1|0:c)|0,C=(y=y+A|0)^S,S=c=y>>>0>>0?c+1|0:c,A=fe(C,c^E,48),H=c=v,_=c,E=x=fe(q^Z,J^$,1),C=c=v,Z=p,c=c+pe|0,c=F+((p=x+Q|0)>>>0>>0?c+1|0:c)|0,c=(p=p+k|0)>>>0>>0?c+1|0:c,k=I,I=c,x=fe(d^p,k^c,32),c=(X=v)+Z|0,k=f=x+f|0,d=fe(d=f^E,(E=f>>>0>>0?c+1|0:c)^C,40),c=me+(C=v)|0,c=I+((f=d+ne|0)>>>0>>0?c+1|0:c)|0,I=f=f+p|0,Z=c=f>>>0

>>0?c+1|0:c,p=c,c=D+xe|0,c=((F=W)>>>0>(W=R+W|0)>>>0?c+1|0:c)+p|0,xe=c=(f=f+W|0)>>>0>>0?c+1|0:c,W=fe(f^A,c^_,32),c=(q=v)+G|0,_=fe((p=N+W|0)^R,(c=p>>>0>>0?c+1|0:c)^D,40),F=c,c=we+(J=v)|0,c=xe+((R=ce)>>>0>(ce=_+ce|0)>>>0?c+1|0:c)|0,c=(ce=f+ce|0)>>>0>>0?c+1|0:c,f=W^ce,W=c;we=fe(f,c^q,48),c=(xe=v)+F|0,p=c=(f=p+we|0)>>>0>>0?c+1|0:c,c=fe(f^_,c^J,1),_=v,q=c,J=m,m=ne,F=me,me=fe(x^I,Z^X,48),c=(x=v)+E|0,E=m,k=c=(ne=k+me|0)>>>0>>0?c+1|0:c,m=fe(d^(I=ne),c^C,1),c=(C=v)+F|0,c=S+(m>>>0>(ne=E+m|0)>>>0?c+1|0:c)|0,d=c=(ne=y+ne|0)>>>0>>0?c+1|0:c,h=fe(h^ne,c^P,32),c=(c=g)+(g=v)|0,S=y=h+J|0,E=c=y>>>0>>0?c+1|0:c,y=fe(y^m,c^C,40),c=(C=v)+Ie|0,c=(y>>>0>(oe=y+oe|0)>>>0?c+1|0:c)+d|0,d=c=(d=oe)>>>0>(oe=ne+oe|0)>>>0?c+1|0:c,h=fe(h^oe,c^g,48),c=(m=v)+E|0,g=ne=h+S|0,Ie=c=ne>>>0>>0?c+1|0:c,S=t,E=V,c=U+H|0,ne=c=(t=A+M|0)>>>0>>0?c+1|0:c,V=fe(t^l,c^T,1),c=(A=v)+E|0,c=O+((l=S+V|0)>>>0>>0?c+1|0:c)|0,b=fe((l=l+w|0)^b,(c=l>>>0>>0?c+1|0:c)^L,32),S=c,O=se,se=V,c=(w=v)+k|0,k=A,A=c=(V=b+I|0)>>>0>>0?c+1|0:c,se=fe(V^se,k^c,40),c=(I=v)+ge|0,c=((ge=O+se|0)>>>0>>0?c+1|0:c)+S|0,S=ge,l=b^(ge=l+ge|0),b=c=S>>>0>ge>>>0?c+1|0:c,c=fe(l,c^w,48),U=l=v,w=c,k=K,S=ae,K=fe(N^j,G^ee,1),E=c=v,c=c+Ee|0,c=Y+((K=(O=K)+le|0)>>>0>>0?c+1|0:c)|0,le=c=(K=B+K|0)>>>0>>0?c+1|0:c,ae=fe(K^me,c^x,32),c=(B=v)+ne|0,ne=t=ae+t|0,me=fe(t^O,(x=t>>>0>>0?c+1|0:c)^E,40),c=(c=S)+(S=v)|0,c=le+((t=me+k|0)>>>0>>0?c+1|0:c)|0,le=t=t+K|0,Ee=c=t>>>0>>0?c+1|0:c,K=c,c=_+Se|0,c=((O=ie)>>>0>(ie=q+ie|0)>>>0?c+1|0:c)+K|0,Se=c=(K=t+ie|0)>>>0>>0?c+1|0:c,ie=fe(w^K,c^l,32),c=(O=v)+Ie|0,l=t=ie+g|0,t=fe(t^q,(k=_)^(_=t>>>0>>0?c+1|0:c),40),c=Ce+(E=v)|0,Ce=t,c=Se+((t=de+t|0)>>>0>>0?c+1|0:c)|0,c=(t=t+K|0)>>>0>>0?c+1|0:c,Se=t,M=(u[e+8|0]|u[e+9|0]<<8|u[e+10|0]<<16|u[e+11|0]<<24)^t,k=c,T=c^(u[e+12|0]|u[e+13|0]<<8|u[e+14|0]<<16|u[e+15|0]<<24),K=fe(ae^le,B^Ee,48),c=(le=v)+x|0,x=t=K+ne|0,Ee=c=t>>>0>>0?c+1|0:c,ae=be,c=A+U|0,be=c=(t=w+V|0)>>>0>>0?c+1|0:c,se=fe(t^se,c^I,1),c=(w=v)+ye|0,c=((ae=se+ae|0)>>>0>>0?c+1|0:c)+d|0,ae=c=(ye=ae+oe|0)>>>0>>0?c+1|0:c,ne=fe(ye^we,c^xe,32),c=(V=v)+Ee|0,oe=c=(de=ne+x|0)>>>0>>0?c+1|0:c,we=ne,ne=fe(se^de,c^w,40),c=(d=v)+ke|0,c=(ne>>>0>(se=ne+he|0)>>>0?c+1|0:c)+ae|0,A=V,V=c=(ye=se+ye|0)>>>0>>0?c+1|0:c,se=fe(we^(he=ye),A^c,48),c=(w=v)+oe|0,c=(ae=se+de|0)>>>0>>0?c+1|0:c,de=ae,ae^=M,s[e+8|0]=ae,s[e+9|0]=ae>>>8,s[e+10|0]=ae>>>16,s[e+11|0]=ae>>>24,oe=c,c^=T,s[e+12|0]=c,s[e+13|0]=c>>>8,s[e+14|0]=c>>>16,s[e+15|0]=c>>>24,ye=t,ae=be,t=K,K=fe(y^g,C^Ie,1),c=(ke=v)+a|0,c=(K>>>0>(be=K+n|0)>>>0?c+1|0:c)+W|0,ce=c=(g=be)>>>0>(be=ce+be|0)>>>0?c+1|0:c,t=fe(t^be,c^le,32),c=(c=ae)+(ae=v)|0,le=c=(ye=t+ye|0)>>>0>>0?c+1|0:c,we=t,ye=fe(K^(W=ye),c^ke,40),c=(y=v)+r|0,c=ce+((t=ye+Ae|0)>>>0>>0?c+1|0:c)|0,c=(t=t+be|0)>>>0>>0?c+1|0:c,ce=t,t^=we,we=c,be=fe(t,c^ae,48),c=(g=v)+le|0,W=t=be+W|0,le=t>>>0>>0?c+1|0:c,me=t=fe(x^me,S^Ee,1),ke=c=v,c=c+z|0,c=b+((t=t+ue|0)>>>0>>0?c+1|0:c)|0,z=c=(K=t+ge|0)>>>0>>0?c+1|0:c,t=(ae=fe(h^K,c^m,32))+f|0,c=(f=v)+p|0,ge=t,t=(ue=fe(b=t^me,(me=t>>>0>>0?c+1|0:c)^ke,40))+Q|0,c=(Q=v)+pe|0,c=z+(t>>>0>>0?c+1|0:c)|0,c=(z=t+K|0)>>>0>>0?c+1|0:c,K=z^Oe^W,s[0|(t=e)]=K,s[t+1|0]=K>>>8,s[t+2|0]=K>>>16,s[t+3|0]=K>>>24,K=c^i^le,s[t+4|0]=K,s[t+5|0]=K>>>8,s[t+6|0]=K>>>16,s[t+7|0]=K>>>24,K=(ae=fe(z^ae,c^f,48))+ge|0,c=(ge=v)+me|0,c=(me=K>>>0>>0?c+1|0:c)^(u[t+20|0]|u[t+21|0]<<8|u[t+22|0]<<16|u[t+23|0]<<24)^we,z=(u[t+16|0]|u[t+17|0]<<8|u[t+18|0]<<16|u[t+19|0]<<24)^ce^K,s[t+16|0]=z,s[t+17|0]=z>>>8,s[t+18|0]=z>>>16,s[t+19|0]=z>>>24,s[t+20|0]=c,s[t+21|0]=c>>>8,s[t+22|0]=c>>>16,s[t+23|0]=c>>>24,t=fe(ie^Se,k^O,48),z=v,ce=u[e+36|0]|u[e+37|0]<<8|u[e+38|0]<<16|u[e+39|0]<<24,c=(u[e+32|0]|u[e+33|0]<<8|u[e+34|0]<<16|u[e+35|0]<<24)^fe(ne^de,d^oe,1)^t,s[e+32|0]=c,s[e+33|0]=c>>>8,s[e+34|0]=c>>>16,s[e+35|0]=c>>>24,c=v^ce^z,s[e+36|0]=c,s[e+37|0]=c>>>8,s[e+38|0]=c>>>16,s[e+39|0]=c>>>24,c=_+z|0,c=(ce=t+l|0)>>>0>>0?c+1|0:c,ne=(u[(t=e)+28|0]|u[t+29|0]<<8|u[t+30|0]<<16|u[t+31|0]<<24)^V^c,z=(u[t+24|0]|u[t+25|0]<<8|u[t+26|0]<<16|u[t+27|0]<<24)^he^ce,s[t+24|0]=z,s[t+25|0]=z>>>8,s[t+26|0]=z>>>16,s[t+27|0]=z>>>24,s[t+28|0]=ne,s[t+29|0]=ne>>>8,s[t+30|0]=ne>>>16,s[t+31|0]=ne>>>24,ne=u[t+44|0]|u[t+45|0]<<8|u[t+46|0]<<16|u[t+47|0]<<24,t=be^(u[t+40|0]|u[t+41|0]<<8|u[t+42|0]<<16|u[t+43|0]<<24)^fe(K^ue,Q^me,1),s[e+40|0]=t,s[e+41|0]=t>>>8,s[e+42|0]=t>>>16,s[e+43|0]=t>>>24,t=g^v^ne,s[e+44|0]=t,s[e+45|0]=t>>>8,s[e+46|0]=t>>>16,s[e+47|0]=t>>>24,K=u[e+60|0]|u[e+61|0]<<8|u[e+62|0]<<16|u[e+63|0]<<24,t=ae^(u[e+56|0]|u[e+57|0]<<8|u[e+58|0]<<16|u[e+59|0]<<24)^fe(W^ye,y^le,1),s[e+56|0]=t,s[e+57|0]=t>>>8,s[e+58|0]=t>>>16,s[e+59|0]=t>>>24,t=ge^v^K,s[e+60|0]=t,s[e+61|0]=t>>>8,s[e+62|0]=t>>>16,s[e+63|0]=t>>>24,K=u[e+52|0]|u[e+53|0]<<8|u[e+54|0]<<16|u[e+55|0]<<24,t=se^(u[e+48|0]|u[e+49|0]<<8|u[e+50|0]<<16|u[e+51|0]<<24)^fe(ce^Ce,c^E,1),s[e+48|0]=t,s[e+49|0]=t>>>8,s[e+50|0]=t>>>16,s[e+51|0]=t>>>24,t=w^v^K,s[e+52|0]=t,s[e+53|0]=t>>>8,s[e+54|0]=t>>>16,s[e+55|0]=t>>>24}function A(e,t,n,r,a,i,o){var f,d,l,p,b,h,y,g,A,w,_,k,S,I,E,T,O,P,M,B,R,N,D,j,Z,F,H,z,q,Q,K,V,J,G,W,Y,X,$,ee,te,ne,re,ae,oe,ce,ue,fe,de,le=0,pe=0,be=0,he=0,ye=0,ve=0,ge=0,Ae=0,we=0,_e=0,ke=0,Se=0,Ie=0,Ee=0,Ce=0,Te=0,Oe=0,Pe=0,Me=0,Be=0,Re=0,Ne=0,De=0,je=0,Ue=0,Le=0,Ze=0,Fe=0,He=0,ze=0,qe=0,Qe=0,Ke=0,Ve=0,Je=0,Ge=0,We=0,Ye=0,Xe=0,et=0,tt=0,nt=0,rt=0,at=0,it=0,ot=0;return m=l=m-560|0,se(l+352|0),o&&L(l+352|0,34768,34,0),ie(l+288|0,i,32,0),L(ve=l+352|0,l+320|0,32,0),L(ve,n,r,a),C(ve,Ae=l+224|0),we=u[(pe=i)+32|0]|u[pe+33|0]<<8|u[pe+34|0]<<16|u[pe+35|0]<<24,ke=u[pe+36|0]|u[pe+37|0]<<8|u[pe+38|0]<<16|u[pe+39|0]<<24,he=u[pe+40|0]|u[pe+41|0]<<8|u[pe+42|0]<<16|u[pe+43|0]<<24,le=u[pe+44|0]|u[pe+45|0]<<8|u[pe+46|0]<<16|u[pe+47|0]<<24,be=u[pe+48|0]|u[pe+49|0]<<8|u[pe+50|0]<<16|u[pe+51|0]<<24,i=u[pe+52|0]|u[pe+53|0]<<8|u[pe+54|0]<<16|u[pe+55|0]<<24,ye=u[pe+60|0]|u[pe+61|0]<<8|u[pe+62|0]<<16|u[pe+63|0]<<24,pe=u[pe+56|0]|u[pe+57|0]<<8|u[pe+58|0]<<16|u[pe+59|0]<<24,s[e+56|0]=pe,s[e+57|0]=pe>>>8,s[e+58|0]=pe>>>16,s[e+59|0]=pe>>>24,s[e+60|0]=ye,s[e+61|0]=ye>>>8,s[e+62|0]=ye>>>16,s[e+63|0]=ye>>>24,s[e+48|0]=be,s[e+49|0]=be>>>8,s[e+50|0]=be>>>16,s[e+51|0]=be>>>24,s[e+52|0]=i,s[e+53|0]=i>>>8,s[e+54|0]=i>>>16,s[e+55|0]=i>>>24,s[e+40|0]=he,s[e+41|0]=he>>>8,s[e+42|0]=he>>>16,s[e+43|0]=he>>>24,s[e+44|0]=le,s[e+45|0]=le>>>8,s[e+46|0]=le>>>16,s[e+47|0]=le>>>24,s[0|(i=e+32|0)]=we,s[i+1|0]=we>>>8,s[i+2|0]=we>>>16,s[i+3|0]=we>>>24,s[i+4|0]=ke,s[i+5|0]=ke>>>8,s[i+6|0]=ke>>>16,s[i+7|0]=ke>>>24,x(Ae),U(l,Ae),xe(e,l),se(ve),o&&L(l+352|0,34768,34,0),L(o=l+352|0,e,64,0),L(o,n,r,a),C(o,ge=l+160|0),x(ge),s[l+288|0]=248&u[l+288|0],s[l+319|0]=63&u[l+319|0]|64,n=u[23+(e=d=l+288|0)|0],he=me(p=u[e+21|0]|u[e+22|0]<<8|n<<16&2031616,0,b=(u[ge+28|0]|u[ge+29|0]<<8|u[ge+30|0]<<16|u[ge+31|0]<<24)>>>7|0,0),be=v,n=(e=u[ge+27|0])>>>24|0,a=e<<8|(le=u[ge+23|0]|u[ge+24|0]<<8|u[ge+25|0]<<16|u[ge+26|0]<<24)>>>24,e=me(h=2097151&((3&(ke=(e=(r=u[ge+28|0])>>>16|0)|n))<<30|(n=(r<<=16)|a)>>>2),0,y=(o=u[d+23|0]|u[d+24|0]<<8|u[d+25|0]<<16|u[d+26|0]<<24)>>>5&2097151,0),n=v+be|0,r=e>>>0>(a=e+he|0)>>>0?n+1|0:n,e=me(g=(n=u[ge+23|0])<<16&2031616|u[ge+21|0]|u[ge+22|0]<<8,0,A=(u[d+28|0]|u[d+29|0]<<8|u[d+30|0]<<16|u[d+31|0]<<24)>>>7|0,0),r=v+r|0,be=n=e+a|0,a=e>>>0>n>>>0?r+1|0:r,r=(e=u[d+27|0])>>>24|0,o=e<<8|o>>>24,e=me(w=2097151&((3&(r|=n=(e=u[d+28|0])>>>16|0))<<30|(n=(e<<=16)|o)>>>2),0,_=le>>>5&2097151,0),n=v+a|0,pe=r=e+be|0,a=e>>>0>r>>>0?n+1|0:n,le=me(y,0,_,0),be=v,n=(e=u[d+19|0])>>>24|0,o=e<<8|(Oe=u[d+15|0]|u[d+16|0]<<8|u[d+17|0]<<16|u[d+18|0]<<24)>>>24,r=n,n=me(k=(7&(r|=n=(e=u[d+20|0])>>>16|0))<<29|(n=(e<<=16)|o)>>>3,ke=r>>>3|0,b,0),e=v+be|0,e=n>>>0>(r=n+le|0)>>>0?e+1|0:e,o=(n=me(p,0,h,0))+r|0,r=v+e|0,n=n>>>0>(le=o)>>>0?r+1|0:r,r=(e=u[ge+19|0])>>>24|0,be=e<<8|(Te=u[ge+15|0]|u[ge+16|0]<<8|u[ge+17|0]<<16|u[ge+18|0]<<24)>>>24,e=me(S=(7&(he=(e=(o=u[ge+20|0])>>>16|0)|r))<<29|(r=(o<<=16)|be)>>>3,I=he>>>3|0,A,0),n=v+n|0,n=e>>>0>(r=e+le|0)>>>0?n+1|0:n,e=me(g,0,w,0),n=v+n|0,we=n=e>>>0>(Ae=e+r|0)>>>0?n+1|0:n,Se=e=n-((Ae>>>0<4293918720)-1|0)|0,r=(n=e>>>21|0)+a|0,le=r=(e=(2097151&e)<<11|(he=Ae- -1048576|0)>>>21)>>>0>(pe=e+pe|0)>>>0?r+1|0:r,Ee=e=r-((pe>>>0<4293918720)-1|0)|0,ve=(2097151&e)<<11|(be=pe- -1048576|0)>>>21,o=e>>>21|0,e=me(A,0,_,0),n=v,r=e,e=me(b,0,y,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,Ie=(e=r)+(r=me(h,0,w,0))|0,e=v+n|0,e=r>>>0>Ie>>>0?e+1|0:e,ye=Ie-(n=-2097152&(r=Ie- -1048576|0))|0,n=(e-((131071&(a=e-((Ie>>>0<4293918720)-1|0)|0))+(n>>>0>Ie>>>0)|0)|0)+o|0,q=n=(e=ye+ve|0)>>>0>>0?n+1|0:n,Q=e,ye=me(e,n,470296,0),ve=v,n=me(b,0,w,0),e=v,o=n,n=me(h,0,A,0),e=v+e|0,n=n>>>0>(o=o+n|0)>>>0?e+1|0:e,e=a>>>21|0,a=(2097151&a)<<11|r>>>21,r=e+n|0,Ne=a=(r=a>>>0>(o=a+o|0)>>>0?r+1|0:r)-((o>>>0<4293918720)-1|0)|0,e=o-(n=-2097152&(Re=o- -1048576|0))|0,K=o=r-((131071&a)+(n>>>0>o>>>0)|0)|0,V=n=pe-(r=-2097152&be)|0,J=a=le-((r>>>0>pe>>>0)+Ee|0)|0,G=e,r=me(e,o,666643,0),e=v+ve|0,e=r>>>0>(o=r+ye|0)>>>0?e+1|0:e,r=me(n,a,654183,0),n=v+e|0,_e=a=r+o|0,be=r>>>0>a>>>0?n+1|0:n,Ie=Ae-(e=-2097152&he)|0,Se=we-((e>>>0>Ae>>>0)+Se|0)|0,n=me(h,0,k,ke),r=v,a=(e=n)+(n=me(E=Oe>>>6&2097151,0,b,0))|0,e=v+r|0,e=n>>>0>a>>>0?e+1|0:e,n=me(y,0,g,0),r=v+e|0,r=n>>>0>(a=n+a|0)>>>0?r+1|0:r,e=me(p,0,_,0),n=v+r|0,n=e>>>0>(a=e+a|0)>>>0?n+1|0:n,r=me(A,0,T=Te>>>6&2097151,0),e=v+n|0,e=r>>>0>(a=r+a|0)>>>0?e+1|0:e,r=me(w,0,S,I),n=v+e|0,Ae=a=r+a|0,o=r>>>0>a>>>0?n+1|0:n,n=(e=u[d+14|0])>>>24|0,a=e<<8|(we=u[d+10|0]|u[d+11|0]<<8|u[d+12|0]<<16|u[d+13|0]<<24)>>>24,n=me(O=2097151&((1&(n|=e=(r=u[d+15|0])>>>16|0))<<31|(e=(r<<=16)|a)>>>1),0,b,0),e=v,r=n,n=me(h,0,E,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,a=(n=me(_,0,k,ke))+r|0,r=v+e|0,r=n>>>0>a>>>0?r+1|0:r,e=me(y,0,S,I),n=v+r|0,n=e>>>0>(a=e+a|0)>>>0?n+1|0:n,e=me(p,0,g,0),n=v+n|0,he=r=e+a|0,a=e>>>0>r>>>0?n+1|0:n,n=(e=u[ge+14|0])>>>24|0,le=e<<8|(pe=u[ge+10|0]|u[ge+11|0]<<8|u[ge+12|0]<<16|u[ge+13|0]<<24)>>>24,r=n,n=(e=u[ge+15|0])>>>16|0,n=me(P=2097151&((1&(n|=r))<<31|(e=e<<16|le)>>>1),0,A,0),e=v+a|0,e=n>>>0>(r=n+he|0)>>>0?e+1|0:e,n=me(w,0,T,0),e=v+e|0,le=e=n>>>0>(he=n+r|0)>>>0?e+1|0:e,De=n=e-((he>>>0<4293918720)-1|0)|0,r=(e=n>>>21|0)+o|0,ve=r=(n=(2097151&n)<<11|(ye=he- -1048576|0)>>>21)>>>0>(Ee=n+Ae|0)>>>0?r+1|0:r,Me=n=r-((Ee>>>0<4293918720)-1|0)|0,e=(e=n>>>21|0)+Se|0,W=e=(n=(r=(2097151&n)<<11|(Ae=Ee- -1048576|0)>>>21)+Ie|0)>>>0>>0?e+1|0:e,Y=n,e=me(n,e,-997805,-1),n=v+be|0,_e=r=e+_e|0,be=e>>>0>r>>>0?n+1|0:n,Ie=(Le=u[23+(f=l+224|0)|0]|u[f+24|0]<<8|u[f+25|0]<<16|u[f+26|0]<<24)>>>5&2097151,r=me(M=(e=u[d+2|0])<<16&2031616|u[0|d]|u[d+1|0]<<8,0,_,0),n=v,a=(e=me(g,0,B=(o=u[d+2|0]|u[d+3|0]<<8|u[d+4|0]<<16|u[d+5|0]<<24)>>>5&2097151,0))+r|0,r=v+n|0,r=e>>>0>a>>>0?r+1|0:r,e=me(R=(u[d+7|0]|u[d+8|0]<<8|u[d+9|0]<<16|u[d+10|0]<<24)>>>7&2097151,0,T,0),n=v+r|0,n=e>>>0>(a=e+a|0)>>>0?n+1|0:n,r=me(P,0,N=we>>>4&2097151,0),e=v+n|0,we=a=r+a|0,a=r>>>0>a>>>0?e+1|0:e,o=(n=u[d+6|0])<<8|o>>>24,r=e=n>>>24|0,n=(e=u[d+7|0])>>>16|0,n=me(D=2097151&((3&(n|=r))<<30|(e=e<<16|o)>>>2),0,S,I),e=v+a|0,e=n>>>0>(r=n+we|0)>>>0?e+1|0:e,a=(n=me(E,0,j=(u[ge+7|0]|u[ge+8|0]<<8|u[ge+9|0]<<16|u[ge+10|0]<<24)>>>7&2097151,0))+r|0,r=v+e|0,r=n>>>0>a>>>0?r+1|0:r,n=me(O,0,Be=pe>>>4&2097151,0),e=v+r|0,o=n>>>0>(a=n+a|0)>>>0?e+1|0:e,e=(n=u[ge+6|0])>>>24|0,we=n<<8|(pe=u[ge+2|0]|u[ge+3|0]<<8|u[ge+4|0]<<16|u[ge+5|0]<<24)>>>24,n=e,e=me(k,ke,Z=2097151&((3&(n|=r=(e=u[ge+7|0])>>>16|0))<<30|(e=e<<16|we)>>>2),0),n=v+o|0,n=e>>>0>(r=e+a|0)>>>0?n+1|0:n,a=r,r=me(F=(e=u[ge+2|0])<<16&2031616|u[0|ge]|u[ge+1|0]<<8,0,y,0),e=v+n|0,e=r>>>0>(a=a+r|0)>>>0?e+1|0:e,n=me(p,0,H=pe>>>5&2097151,0),e=v+e|0,n=n>>>0>(r=n+a|0)>>>0?e+1|0:e,we=e=r+Ie|0,o=n=e>>>0>>0?n+1|0:n,a=u[f+21|0]|u[f+22|0]<<8,e=me(g,0,M,0),n=v,pe=(r=e)+(e=me(S,I,B,0))|0,r=v+n|0,r=e>>>0>pe>>>0?r+1|0:r,e=me(P,0,R,0),n=v+r|0,n=e>>>0>(pe=e+pe|0)>>>0?n+1|0:n,e=me(N,0,Be,0),n=v+n|0,n=e>>>0>(r=e+pe|0)>>>0?n+1|0:n,pe=(e=r)+(r=me(T,0,D,0))|0,e=v+n|0,e=r>>>0>pe>>>0?e+1|0:e,n=me(E,0,Z,0),e=v+e|0,e=n>>>0>(r=n+pe|0)>>>0?e+1|0:e,pe=(n=me(O,0,j,0))+r|0,r=v+e|0,r=n>>>0>pe>>>0?r+1|0:r,e=me(k,ke,H,0),n=v+r|0,n=e>>>0>(pe=e+pe|0)>>>0?n+1|0:n,e=me(p,0,F,0),n=v+n|0,e=e>>>0>(r=e+pe|0)>>>0?n+1|0:n,n=(n=r)>>>0>(r=r+a|0)>>>0?e+1|0:e,a=r,r=(e=u[f+23|0])<<16&2031616,e=n,r=e=r>>>0>(a=a+r|0)>>>0?e+1|0:e,ge=e=e-((a>>>0<4293918720)-1|0)|0,n=(n=e>>>21|0)+o|0,e=(n=(o=we=(e=(2097151&e)<<11|(pe=a- -1048576|0)>>>21)+we|0)>>>0>>0?n+1|0:n)+be|0,e=(be=o+_e|0)>>>0>>0?e+1|0:e,Oe=o- -1048576|0,Ce=o=n-((o>>>0<4293918720)-1|0)|0,Pe=be-(n=-2097152&Oe)|0,je=e-((n>>>0>be>>>0)+o|0)|0,we=a,be=r,e=me(V,J,470296,0),n=v,r=e,e=me(Q,q,666643,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,a=(e=r)+(r=me(Y,W,654183,0))|0,e=v+n|0,Te=a,o=r>>>0>a>>>0?e+1|0:e,n=me(S,I,M,0),e=v,r=n,n=me(T,0,B,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,a=(n=r)+(r=me(R,0,Be,0))|0,n=v+e|0,n=r>>>0>a>>>0?n+1|0:n,e=me(N,0,j,0),r=v+n|0,r=e>>>0>(a=e+a|0)>>>0?r+1|0:r,e=me(P,0,D,0),n=v+r|0,n=e>>>0>(a=e+a|0)>>>0?n+1|0:n,r=me(E,0,H,0),e=v+n|0,e=r>>>0>(a=r+a|0)>>>0?e+1|0:e,n=me(O,0,Z,0),e=v+e|0,e=n>>>0>(r=n+a|0)>>>0?e+1|0:e,a=(n=r)+(r=me(k,ke,F,0))|0,n=v+e|0,Ie=a,r=r>>>0>a>>>0?n+1|0:n,n=(e=u[f+19|0])>>>24|0,Se=e<<8|(_e=u[f+15|0]|u[f+16|0]<<8|u[f+17|0]<<16|u[f+18|0]<<24)>>>24,r=((Ue=(e=(a=u[f+20|0])>>>16|0)|n)>>>3|0)+r|0,Ie=a=(n=(7&Ue)<<29|(n=(a<<=16)|Se)>>>3)+Ie|0,a=n>>>0>a>>>0?r+1|0:r,Se=_e>>>6&2097151,e=me(T,0,M,0),n=v,r=e,e=me(P,0,B,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,_e=(e=r)+(r=me(R,0,j,0))|0,e=v+n|0,e=r>>>0>_e>>>0?e+1|0:e,r=me(N,0,Z,0),n=v+e|0,n=r>>>0>(_e=r+_e|0)>>>0?n+1|0:n,r=me(D,0,Be,0),e=v+n|0,e=r>>>0>(_e=r+_e|0)>>>0?e+1|0:e,n=me(E,0,F,0),r=v+e|0,r=n>>>0>(_e=n+_e|0)>>>0?r+1|0:r,e=me(O,0,H,0),n=v+r|0,e=e>>>0>(_e=e+_e|0)>>>0?n+1|0:n,Je=e=(Fe=_e+Se|0)>>>0<_e>>>0?e+1|0:e,nt=e=e-((Fe>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(Ke=Fe- -1048576|0)>>>21,e=(e>>>21|0)+a|0,We=e=r>>>0>(Ge=r+Ie|0)>>>0?e+1|0:e,rt=e=e-((Ge>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(ze=Ge- -1048576|0)>>>21,e=(e>>>21|0)+o|0,n=(r>>>0>(a=r+Te|0)>>>0?e+1|0:e)+be|0,be=(r=a+we|0)-(e=-2097152&pe)|0,ge=e=(n=r>>>0>>0?n+1|0:n)-((e>>>0>r>>>0)+ge|0)|0,at=e=e-((be>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(qe=be- -1048576|0)>>>21,e=(e>>21)+je|0,a=e=r>>>0>(o=r+Pe|0)>>>0?e+1|0:e,tt=e=e-((o>>>0<4293918720)-1|0)|0,Qe=(2097151&e)<<11|(Te=o- -1048576|0)>>>21,we=e>>21,Ue=Ee-(e=-2097152&Ae)|0,Me=ve-((e>>>0>Ee>>>0)+Me|0)|0,e=me(b,0,A,0),Ve=n=v,Pe=e,_e=e- -1048576|0,He=n=n-((e>>>0<4293918720)-1|0)|0,X=e=n>>>21|0,e=me(z=(2097151&n)<<11|_e>>>21,e,-683901,-1),n=v+le|0,n=e>>>0>(r=e+he|0)>>>0?n+1|0:n,Ae=r-(e=-2097152&ye)|0,pe=n-((e>>>0>r>>>0)+De|0)|0,n=me(_,0,E,0),e=v,r=n,n=me(b,0,N,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,n=me(h,0,O,0),e=v+e|0,e=n>>>0>(r=n+r|0)>>>0?e+1|0:e,le=(n=r)+(r=me(g,0,k,ke))|0,n=v+e|0,n=r>>>0>le>>>0?n+1|0:n,e=me(y,0,T,0),r=v+n|0,r=e>>>0>(le=e+le|0)>>>0?r+1|0:r,e=me(p,0,S,I),n=v+r|0,n=e>>>0>(le=e+le|0)>>>0?n+1|0:n,r=me(A,0,Be,0),e=v+n|0,e=r>>>0>(le=r+le|0)>>>0?e+1|0:e,n=me(w,0,P,0),e=v+e|0,he=r=n+le|0,le=n>>>0>r>>>0?e+1|0:e,e=me(h,0,N,0),n=v,r=e,e=me(b,0,R,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,ve=(e=me(g,0,E,0))+r|0,r=v+n|0,r=e>>>0>ve>>>0?r+1|0:r,e=me(_,0,O,0),n=v+r|0,n=e>>>0>(ve=e+ve|0)>>>0?n+1|0:n,r=me(k,ke,S,I),e=v+n|0,e=r>>>0>(ve=r+ve|0)>>>0?e+1|0:e,n=me(y,0,P,0),e=v+e|0,e=n>>>0>(r=n+ve|0)>>>0?e+1|0:e,ve=(n=r)+(r=me(p,0,T,0))|0,n=v+e|0,n=r>>>0>ve>>>0?n+1|0:n,e=me(A,0,j,0),r=v+n|0,r=e>>>0>(ve=e+ve|0)>>>0?r+1|0:r,e=me(w,0,Be,0),n=v+r|0,Se=n=e>>>0>(Ie=e+ve|0)>>>0?n+1|0:n,Xe=e=n-((Ie>>>0<4293918720)-1|0)|0,n=(2097151&e)<<11|(Ee=Ie- -1048576|0)>>>21,e=(e>>>21|0)+le|0,ye=e=n>>>0>(De=n+he|0)>>>0?e+1|0:e,Ze=e=e-((De>>>0<4293918720)-1|0)|0,n=(r=e>>>21|0)+pe|0,Ae=n=(e=(2097151&e)<<11|(ve=De- -1048576|0)>>>21)>>>0>(je=e+Ae|0)>>>0?n+1|0:n,Ye=e=n-((je>>>0<4293918720)-1|0)|0,le=(2097151&e)<<11|(pe=je- -1048576|0)>>>21,e=(e>>21)+Me|0,$=e=(n=le+Ue|0)>>>0>>0?e+1|0:e,ee=n,e=me(n,e,-683901,-1),n=v+we|0,Qe=r=e+Qe|0,we=e>>>0>r>>>0?n+1|0:n,e=me(h,0,M,0),n=v,r=e,e=me(_,0,B,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,le=(e=r)+(r=me(S,I,R,0))|0,e=v+n|0,e=r>>>0>le>>>0?e+1|0:e,n=me(T,0,N,0),r=v+e|0,r=n>>>0>(le=n+le|0)>>>0?r+1|0:r,n=me(g,0,D,0),e=v+r|0,e=n>>>0>(le=n+le|0)>>>0?e+1|0:e,r=me(E,0,Be,0),n=v+e|0,n=r>>>0>(le=r+le|0)>>>0?n+1|0:n,e=me(O,0,P,0),n=v+n|0,n=e>>>0>(r=e+le|0)>>>0?n+1|0:n,le=(e=r)+(r=me(k,ke,j,0))|0,e=v+n|0,e=r>>>0>le>>>0?e+1|0:e,n=me(y,0,H,0),r=v+e|0,r=n>>>0>(le=n+le|0)>>>0?r+1|0:r,n=me(p,0,Z,0),e=v+r|0,e=n>>>0>(le=n+le|0)>>>0?e+1|0:e,r=me(w,0,F,0),n=v+e|0,Me=le=r+le|0,r=r>>>0>le>>>0?n+1|0:n,n=(e=u[f+27|0])>>>24|0,he=e<<8|Le>>>24,le=2097151&((3&(n|=e=(le=u[f+28|0])>>>16|0))<<30|(e=(le<<=16)|he)>>>2),n=r,he=e=le+Me|0,le=e>>>0>>0?n+1|0:n,Ue=me(G,K,470296,0),Me=v,e=(r=(2097151&Ne)<<11|Re>>>21)+(Pe-(n=-2097152&_e)|0)|0,n=Ve-((524287&He)+(n>>>0>Pe>>>0)|0)+(Ne>>>21)|0,te=n=e>>>0>>0?n+1|0:n,ne=e,n=me(e,n,666643,0),e=v+Me|0,e=n>>>0>(r=n+Ue|0)>>>0?e+1|0:e,_e=(n=me(Q,q,654183,0))+r|0,r=v+e|0,r=n>>>0>_e>>>0?r+1|0:r,n=me(V,J,-997805,-1),e=v+r|0,e=n>>>0>(_e=n+_e|0)>>>0?e+1|0:e,r=me(Y,W,136657,0),n=v+e|0,Oe=(e=(2097151&Ce)<<11|Oe>>>21)+(_e=r+_e|0)|0,n=(Ce>>>21|0)+(r>>>0>_e>>>0?n+1|0:n)|0,He=_e=le-((he>>>0<4293918720)-1|0)|0,e=(e>>>0>Oe>>>0?n+1|0:n)+le|0,n=(le=he+Oe|0)-(r=-2097152&(Ve=he- -1048576|0))|0,r=(e=(e=le>>>0>>0?e+1|0:e)-((r>>>0>le>>>0)+_e|0)|0)+we|0,Ue=le=e-((n>>>0<4293918720)-1|0)|0,Pe=(r=(he=n+Qe|0)>>>0>>0?r+1|0:r)-(((n=-2097152&(Me=n- -1048576|0))>>>0>he>>>0)+le|0)|0,Le=e=he-n|0,le=o,o=a,et=je-(e=-2097152&pe)|0,_e=Ae-((e>>>0>je>>>0)+Ye|0)|0,e=me(ne,te,-683901,-1),n=v,a=(r=e)+(e=me(z,X,136657,0))|0,r=v+n|0,n=ye+(e>>>0>a>>>0?r+1|0:r)|0,ve=(r=a+De|0)-(e=-2097152&ve)|0,Ae=(n=r>>>0>>0?n+1|0:n)-((e>>>0>r>>>0)+Ze|0)|0,n=me(z,X,-997805,-1),e=v+Se|0,e=n>>>0>(r=n+Ie|0)>>>0?e+1|0:e,a=(n=me(ne,te,136657,0))+r|0,r=v+e|0,r=n>>>0>a>>>0?r+1|0:r,e=me(G,K,-683901,-1),n=v+r|0,n=e>>>0>(a=e+a|0)>>>0?n+1|0:n,pe=a-(e=-2097152&Ee)|0,we=n-((e>>>0>a>>>0)+Xe|0)|0,n=me(_,0,N,0),e=v,r=n,n=me(h,0,R,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,a=(n=me(b,0,D,0))+r|0,r=v+e|0,r=n>>>0>a>>>0?r+1|0:r,e=me(S,I,E,0),n=v+r|0,n=e>>>0>(a=e+a|0)>>>0?n+1|0:n,r=me(g,0,O,0),e=v+n|0,e=r>>>0>(a=r+a|0)>>>0?e+1|0:e,r=me(k,ke,T,0),n=v+e|0,n=r>>>0>(a=r+a|0)>>>0?n+1|0:n,r=me(y,0,Be,0),e=v+n|0,e=r>>>0>(a=r+a|0)>>>0?e+1|0:e,n=me(p,0,P,0),r=v+e|0,r=n>>>0>(a=n+a|0)>>>0?r+1|0:r,e=me(A,0,Z,0),n=v+r|0,n=e>>>0>(a=e+a|0)>>>0?n+1|0:n,r=me(w,0,j,0),e=v+n|0,he=a=r+a|0,a=r>>>0>a>>>0?e+1|0:e,e=me(_,0,R,0),n=v,r=e,e=me(b,0,B,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,ye=(e=r)+(r=me(g,0,N,0))|0,e=v+n|0,e=r>>>0>ye>>>0?e+1|0:e,n=me(h,0,D,0),r=v+e|0,r=n>>>0>(ye=n+ye|0)>>>0?r+1|0:r,e=me(E,0,T,0),n=v+r|0,n=e>>>0>(ye=e+ye|0)>>>0?n+1|0:n,r=me(S,I,O,0),e=v+n|0,e=r>>>0>(ye=r+ye|0)>>>0?e+1|0:e,r=me(k,ke,P,0),n=v+e|0,n=r>>>0>(ye=r+ye|0)>>>0?n+1|0:n,r=me(y,0,j,0),e=v+n|0,e=r>>>0>(ye=r+ye|0)>>>0?e+1|0:e,n=me(p,0,Be,0),r=v+e|0,r=n>>>0>(ye=n+ye|0)>>>0?r+1|0:r,ye=(e=me(A,0,H,0))+ye|0,n=v+r|0,r=me(w,0,Z,0),e=v+(e>>>0>ye>>>0?n+1|0:n)|0,je=e=r>>>0>(Ye=r+ye|0)>>>0?e+1|0:e,ae=e=e-((Ye>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(Ne=Ye- -1048576|0)>>>21,e=(e>>>21|0)+a|0,Re=e=r>>>0>(Qe=r+he|0)>>>0?e+1|0:e,oe=e=e-((Qe>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(Ce=Qe- -1048576|0)>>>21,e=(e>>>21|0)+we|0,Oe=e=r>>>0>(De=r+pe|0)>>>0?e+1|0:e,ce=e=e-((De>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(Se=De- -1048576|0)>>>21,e=(e>>21)+Ae|0,a=e=r>>>0>(pe=r+ve|0)>>>0?e+1|0:e,Ae=e=e-((pe>>>0<4293918720)-1|0)|0,we=(2097151&e)<<11|(r=pe- -1048576|0)>>>21,e=(e>>21)+_e|0,Xe=e=(he=we+et|0)>>>0>>0?e+1|0:e,Ze=he,e=me(he,e,-683901,-1),n=v,he=e,e=me(ee,$,136657,0),n=v+n|0,e=(e>>>0>(he=he+e|0)>>>0?n+1|0:n)+o|0,it=(o=le+he|0)-(n=-2097152&Te)|0,ot=(e=o>>>0>>0?e+1|0:e)-((n>>>0>o>>>0)+tt|0)|0,we=be,he=ge,be=me(Ze,Xe,136657,0),o=v,et=e=pe-(n=-2097152&r)|0,re=a=a-((n>>>0>pe>>>0)+Ae|0)|0,r=me(ee,$,-997805,-1),n=v+o|0,n=r>>>0>(be=r+be|0)>>>0?n+1|0:n,r=me(e,a,-683901,-1),e=v+n|0,tt=a=r+be|0,le=r>>>0>a>>>0?e+1|0:e,e=me(Y,W,470296,0),n=v,a=(r=e)+(e=me(V,J,666643,0))|0,r=v+n|0,n=We+(e>>>0>a>>>0?r+1|0:r)|0,_e=e=a+Ge|0,o=n=e>>>0>>0?n+1|0:n,n=me(Y,W,666643,0),e=v+Je|0,e=n>>>0>(r=n+Fe|0)>>>0?e+1|0:e,ve=r-(n=-2097152&Ke)|0,Ie=e-((n>>>0>r>>>0)+nt|0)|0,n=me(P,0,M,0),e=v,r=n,n=me(B,0,Be,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,a=(n=r)+(r=me(R,0,Z,0))|0,n=v+e|0,n=r>>>0>a>>>0?n+1|0:n,r=me(N,0,H,0),e=v+n|0,e=r>>>0>(a=r+a|0)>>>0?e+1|0:e,n=me(D,0,j,0),r=v+e|0,r=n>>>0>(a=n+a|0)>>>0?r+1|0:r,e=me(O,0,F,0),n=v+r|0,pe=a=e+a|0,a=e>>>0>a>>>0?n+1|0:n,n=(e=u[f+14|0])>>>24|0,be=e<<8|(Ae=u[f+10|0]|u[f+11|0]<<8|u[f+12|0]<<16|u[f+13|0]<<24)>>>24,n=2097151&((1&(n|=r=(e=u[f+15|0])>>>16|0))<<31|(e=be|e<<16)>>>1),e=a,pe=r=n+pe|0,a=n>>>0>r>>>0?e+1|0:e,be=Ae>>>4&2097151,e=me(M,0,Be,0),n=v,r=e,e=me(B,0,j,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,e=me(R,0,H,0),n=v+n|0,n=e>>>0>(r=e+r|0)>>>0?n+1|0:n,Ae=(e=r)+(r=me(N,0,F,0))|0,e=v+n|0,e=r>>>0>Ae>>>0?e+1|0:e,n=me(D,0,Z,0),r=v+e|0,e=n>>>0>(Ae=n+Ae|0)>>>0?r+1|0:r,ge=e=(Ke=be+Ae|0)>>>0>>0?e+1|0:e,ue=e=e-((Ke>>>0<4293918720)-1|0)|0,n=(r=e>>>21|0)+a|0,Ee=n=(e=(2097151&e)<<11|(Te=Ke- -1048576|0)>>>21)>>>0>(We=e+pe|0)>>>0?n+1|0:n,fe=e=n-((We>>>0<4293918720)-1|0)|0,n=(2097151&e)<<11|(ye=We- -1048576|0)>>>21,e=(e>>>21|0)+Ie|0,Ae=e=n>>>0>(ve=n+ve|0)>>>0?e+1|0:e,de=e=e-((ve>>>0<4293918720)-1|0)|0,n=(r=e>>21)+o|0,nt=n=(n=(e=(2097151&e)<<11|(pe=ve- -1048576|0)>>>21)>>>0>(a=e+_e|0)>>>0?n+1|0:n)-(((r=-2097152&ze)>>>0>a>>>0)+rt|0)|0,ze=e=a-r|0,be=e- -1048576|0,rt=e=n-((e>>>0<4293918720)-1|0)|0,r=(n=e>>21)+le|0,n=((e=(2097151&e)<<11|be>>>21)>>>0>(a=e+tt|0)>>>0?r+1|0:r)+he|0,Fe=n=(n=(e=a)>>>0>(a=a+we|0)>>>0?n+1|0:n)-(((r=-2097152&qe)>>>0>a>>>0)+at|0)|0,he=e=a-r|0,o=e- -1048576|0,Je=e=n-((e>>>0<4293918720)-1|0)|0,r=(n=e>>21)+ot|0,qe=e=(r=(e=(2097151&e)<<11|o>>>21)>>>0>(le=e+it|0)>>>0?r+1|0:r)-((le>>>0<4293918720)-1|0)|0,_e=Le- -1048576|0,Ie=Pe-((Le>>>0<4293918720)-1|0)|0,we=(2097151&e)<<11|(a=le- -1048576|0)>>>21,e=(e>>21)+Pe|0,at=(Le=we+Le|0)-(n=-2097152&_e)|0,it=(we>>>0>Le>>>0?e+1|0:e)-((n>>>0>Le>>>0)+Ie|0)|0,ot=le-(e=-2097152&a)|0,tt=r-((e>>>0>le>>>0)+qe|0)|0,Ge=he-(e=-2097152&o)|0,Le=Fe-((e>>>0>he>>>0)+Je|0)|0,e=me(Ze,Xe,-997805,-1),n=v,r=e,e=me(ee,$,654183,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,a=(e=r)+(r=me(et,re,136657,0))|0,e=v+n|0,n=nt+(r>>>0>a>>>0?e+1|0:e)|0,Fe=(r=a+ze|0)-(e=-2097152&be)|0,Je=(n=r>>>0>>0?n+1|0:n)-((e>>>0>r>>>0)+rt|0)|0,ze=De-(e=-2097152&Se)|0,Pe=Oe-((e>>>0>De>>>0)+ce|0)|0,n=me(ne,te,-997805,-1),e=v,r=n,n=me(z,X,654183,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,a=(n=r)+(r=me(G,K,136657,0))|0,n=v+e|0,n=r>>>0>a>>>0?n+1|0:n,e=me(Q,q,-683901,-1),r=v+n|0,n=Re+(e>>>0>(a=e+a|0)>>>0?r+1|0:r)|0,Se=(r=a+Qe|0)-(e=-2097152&Ce)|0,Oe=(n=r>>>0>>0?n+1|0:n)-((e>>>0>r>>>0)+oe|0)|0,n=me(ne,te,654183,0),e=v,r=n,n=me(z,X,470296,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,a=(n=me(G,K,-997805,-1))+r|0,r=v+e|0,n=je+(n>>>0>a>>>0?r+1|0:r)|0,n=(e=a+Ye|0)>>>0>>0?n+1|0:n,r=e,e=me(Q,q,136657,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,a=(e=r)+(r=me(V,J,-683901,-1))|0,e=v+n|0,be=a-(n=-2097152&Ne)|0,o=(r>>>0>a>>>0?e+1|0:e)-((n>>>0>a>>>0)+ae|0)|0,a=(u[f+28|0]|u[f+29|0]<<8|u[f+30|0]<<16|u[f+31|0]<<24)>>>7|0,e=me(b,0,M,0),n=v,le=(r=e)+(e=me(h,0,B,0))|0,r=v+n|0,r=e>>>0>le>>>0?r+1|0:r,e=me(g,0,R,0),n=v+r|0,n=e>>>0>(le=e+le|0)>>>0?n+1|0:n,r=me(S,I,N,0),e=v+n|0,e=r>>>0>(le=r+le|0)>>>0?e+1|0:e,r=me(_,0,D,0),n=v+e|0,n=r>>>0>(le=r+le|0)>>>0?n+1|0:n,r=me(E,0,P,0),e=v+n|0,e=r>>>0>(le=r+le|0)>>>0?e+1|0:e,n=me(T,0,O,0),r=v+e|0,r=n>>>0>(le=n+le|0)>>>0?r+1|0:r,e=me(k,ke,Be,0),n=v+r|0,n=e>>>0>(le=e+le|0)>>>0?n+1|0:n,r=me(y,0,Z,0),e=v+n|0,e=r>>>0>(le=r+le|0)>>>0?e+1|0:e,r=me(p,0,j,0),n=v+e|0,n=r>>>0>(le=r+le|0)>>>0?n+1|0:n,r=me(A,0,F,0),e=v+n|0,e=r>>>0>(le=r+le|0)>>>0?e+1|0:e,n=me(w,0,H,0),r=v+e|0,n=n>>>0>(le=n+le|0)>>>0?r+1|0:r,Re=(r=(2097151&He)<<11|Ve>>>21)+(e=a+le|0)|0,e=(He>>>21|0)+(n=e>>>0>>0?n+1|0:n)|0,we=e=r>>>0>Re>>>0?e+1|0:e,qe=n=e-((Re>>>0<4293918720)-1|0)|0,r=(e=n>>>21|0)+o|0,he=r=(n=(2097151&n)<<11|(ke=Re- -1048576|0)>>>21)>>>0>(Ce=n+be|0)>>>0?r+1|0:r,Ve=n=r-((Ce>>>0<4293918720)-1|0)|0,e=(e=n>>21)+Oe|0,be=e=(n=(2097151&n)<<11|(le=Ce- -1048576|0)>>>21)>>>0>(Se=n+Se|0)>>>0?e+1|0:e,Ne=n=e-((Se>>>0<4293918720)-1|0)|0,r=(e=n>>21)+Pe|0,He=r=(n=(a=(2097151&n)<<11|(o=Se- -1048576|0)>>>21)+ze|0)>>>0>>0?r+1|0:r,Pe=n,e=me(n,r,-683901,-1),n=v+Je|0,Oe=r=e+Fe|0,a=e>>>0>r>>>0?n+1|0:n,n=me(ee,$,470296,0),e=v+Ae|0,e=n>>>0>(ve=n+ve|0)>>>0?e+1|0:e,n=me(Ze,Xe,654183,0),e=v+(e-(((r=-2097152&pe)>>>0>ve>>>0)+de|0)|0)|0,e=n>>>0>(pe=n+(ve-r|0)|0)>>>0?e+1|0:e,r=me(et,re,-997805,-1),n=v+e|0,n=r>>>0>(pe=r+pe|0)>>>0?n+1|0:n,je=r=Se-(e=-2097152&o)|0,Be=be=be-((e>>>0>Se>>>0)+Ne|0)|0,pe=(o=me(Pe,He,136657,0))+pe|0,e=v+n|0,r=me(r,be,-683901,-1),n=v+(o>>>0>pe>>>0?e+1|0:e)|0,be=n=r>>>0>(Ae=r+pe|0)>>>0?n+1|0:n,Ne=e=n-((Ae>>>0<4293918720)-1|0)|0,n=(2097151&e)<<11|(o=Ae- -1048576|0)>>>21,e=(e>>21)+a|0,Se=n=(e=n>>>0>(pe=n+Oe|0)>>>0?e+1|0:e)-((pe>>>0<4293918720)-1|0)|0,ve=(2097151&n)<<11|(a=pe- -1048576|0)>>>21,n=(n>>21)+Le|0,Ge=Oe=ve+Ge|0,Oe=ve>>>0>Oe>>>0?n+1|0:n,Le=pe-(n=-2097152&a)|0,Ye=e-((n>>>0>pe>>>0)+Se|0)|0,Fe=Ae-(e=-2097152&o)|0,Je=be-((e>>>0>Ae>>>0)+Ne|0)|0,e=me(ee,$,666643,0),r=Ee+v|0,r=(o=e+We|0)>>>0>>0?r+1|0:r,a=(e=me(Ze,Xe,470296,0))+(o-(n=-2097152&ye)|0)|0,n=v+(r-((n>>>0>o>>>0)+fe|0)|0)|0,n=e>>>0>a>>>0?n+1|0:n,r=me(et,re,654183,0),e=v+n|0,pe=a=r+a|0,a=r>>>0>a>>>0?e+1|0:e,o=Ce-(e=-2097152&le)|0,be=he-((e>>>0>Ce>>>0)+Ve|0)|0,e=me(ne,te,470296,0),n=v,r=e,e=me(z,X,666643,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,e=me(G,K,654183,0),n=v+n|0,n=e>>>0>(r=e+r|0)>>>0?n+1|0:n,le=(e=r)+(r=me(Q,q,-997805,-1))|0,e=v+n|0,e=r>>>0>le>>>0?e+1|0:e,n=me(V,J,136657,0),e=v+e|0,e=n>>>0>(r=n+le|0)>>>0?e+1|0:e,le=(n=me(Y,W,-683901,-1))+r|0,r=v+e|0,n=we+(n>>>0>le>>>0?r+1|0:r)|0,Ce=(r=(2097151&Ue)<<11|Me>>>21)+((le=le+Re|0)-(e=-2097152&ke)|0)|0,e=((n=le>>>0>>0?n+1|0:n)-((e>>>0>le>>>0)+qe|0)|0)+(Ue>>21)|0,Se=e=r>>>0>Ce>>>0?e+1|0:e,ze=e=e-((Ce>>>0<4293918720)-1|0)|0,n=o,o=(2097151&e)<<11|(ye=Ce- -1048576|0)>>>21,e=(e>>21)+be|0,Ne=e=(r=n+o|0)>>>0>>0?e+1|0:e,Re=r,e=me(r,e,-683901,-1),n=v+a|0,n=e>>>0>(r=e+pe|0)>>>0?n+1|0:n,a=(e=r)+(r=me(Pe,He,-997805,-1))|0,e=v+n|0,e=r>>>0>a>>>0?e+1|0:e,n=me(je,Be,136657,0),r=v+e|0,Me=a=n+a|0,he=n>>>0>a>>>0?r+1|0:r,pe=Ke-(e=-2097152&Te)|0,we=ge-((e>>>0>Ke>>>0)+ue|0)|0,n=me(M,0,j,0),e=v,r=n,n=me(B,0,Z,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,n=me(R,0,F,0),e=v+e|0,e=n>>>0>(r=n+r|0)>>>0?e+1|0:e,a=(n=me(D,0,H,0))+r|0,r=v+e|0,n=n>>>0>a>>>0?r+1|0:r,ke=r=(e=(u[f+7|0]|u[f+8|0]<<8|u[f+9|0]<<16|u[f+10|0]<<24)>>>7&2097151)+a|0,le=e>>>0>r>>>0?n+1|0:n,e=me(M,0,Z,0),n=v,r=e,e=me(B,0,H,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,a=(e=r)+(r=me(D,0,F,0))|0,e=v+n|0,be=a,a=r>>>0>a>>>0?e+1|0:e,e=(n=u[f+6|0])>>>24|0,o=n<<8|(qe=u[f+2|0]|u[f+3|0]<<8|u[f+4|0]<<16|u[f+5|0]<<24)>>>24,r=e,n=(e=u[f+7|0])>>>16|0,n|=r,r=a,o=r=(e=2097151&((3&n)<<30|(e=e<<16|o)>>>2))>>>0>(be=e+be|0)>>>0?r+1|0:r,Qe=e=r-((be>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(Ee=be- -1048576|0)>>>21,e=(e>>>21|0)+le|0,ve=e=r>>>0>(ge=r+ke|0)>>>0?e+1|0:e,Ve=e=e-((ge>>>0<4293918720)-1|0)|0,r=(n=e>>>21|0)+we|0,r=(e=(2097151&e)<<11|(Ae=ge- -1048576|0)>>>21)>>>0>(a=e+pe|0)>>>0?r+1|0:r,n=me(Ze,Xe,666643,0),e=v+r|0,e=n>>>0>(a=n+a|0)>>>0?e+1|0:e,n=me(et,re,470296,0),e=v+e|0,e=n>>>0>(r=n+a|0)>>>0?e+1|0:e,a=(n=r)+(r=me(Re,Ne,136657,0))|0,n=v+e|0,n=r>>>0>a>>>0?n+1|0:n,e=me(Pe,He,654183,0),n=v+n|0,n=e>>>0>(r=e+a|0)>>>0?n+1|0:n,pe=(e=me(je,Be,-997805,-1))+r|0,r=v+n|0,we=r=e>>>0>pe>>>0?r+1|0:r,Ue=e=r-((pe>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(ke=pe- -1048576|0)>>>21,e=(e>>21)+he|0,Me=r=(e=r>>>0>(a=r+Me|0)>>>0?e+1|0:e)-((a>>>0<4293918720)-1|0)|0,le=(2097151&r)<<11|(he=a- -1048576|0)>>>21,r=(r>>21)+Je|0,De=Te=le+Fe|0,Te=le>>>0>Te>>>0?r+1|0:r,le=a,n=e,a=(Ce-(e=-2097152&ye)|0)+(ye=(2097151&Ie)<<11|_e>>>21)|0,e=(Se-((e>>>0>Ce>>>0)+ze|0)|0)+(Ie>>21)|0,_e=e=a>>>0>>0?e+1|0:e,Fe=e=e-((a>>>0<4293918720)-1|0)|0,Ce=r=e>>21,e=me(Ze=(2097151&e)<<11|(Ie=a- -1048576|0)>>>21,r,-683901,-1),n=v+n|0,n=e>>>0>(r=e+le|0)>>>0?n+1|0:n,Je=r-(e=-2097152&he)|0,Ke=n-((e>>>0>r>>>0)+Me|0)|0,n=me(Ze,Ce,136657,0),e=v+we|0,e=n>>>0>(r=n+pe|0)>>>0?e+1|0:e,We=r-(n=-2097152&ke)|0,Ue=e-((n>>>0>r>>>0)+Ue|0)|0,n=me(et,re,666643,0),e=v+(ve-(((r=-2097152&Ae)>>>0>ge>>>0)+Ve|0)|0)|0,e=n>>>0>(le=n+(ge-r|0)|0)>>>0?e+1|0:e,r=me(Re,Ne,-997805,-1),n=v+e|0,n=r>>>0>(le=r+le|0)>>>0?n+1|0:n,e=me(Pe,He,470296,0),r=v+n|0,r=e>>>0>(le=e+le|0)>>>0?r+1|0:r,n=me(je,Be,654183,0),e=v+r|0,Me=le=n+le|0,we=n>>>0>le>>>0?e+1|0:e,r=qe>>>5&2097151,e=me(M,0,H,0),n=v,he=e,e=me(B,0,F,0),n=v+n|0,e=e>>>0>(le=he+e|0)>>>0?n+1|0:n,he=n=r+le|0,r=e=n>>>0>>0?e+1|0:e,ge=(n=me(M,0,F,0))+(e=(e=u[f+2|0])<<16&2031616|u[0|f]|u[f+1|0]<<8)|0,n=v,ye=n=e>>>0>ge>>>0?n+1|0:n,ze=n=n-((ge>>>0<4293918720)-1|0)|0,e=(e=n>>>21|0)+r|0,Ae=e=(n=(2097151&n)<<11|(ve=ge- -1048576|0)>>>21)>>>0>(Se=n+he|0)>>>0?e+1|0:e,qe=n=e-((Se>>>0<4293918720)-1|0)|0,r=(2097151&n)<<11|(pe=Se- -1048576|0)>>>21,n=(n>>>21|0)+o|0,n=r>>>0>(le=r+be|0)>>>0?n+1|0:n,r=me(Re,Ne,654183,0),e=v+(n-(((o=-2097152&Ee)>>>0>le>>>0)+Qe|0)|0)|0,e=r>>>0>(be=r+(le-o|0)|0)>>>0?e+1|0:e,n=me(Pe,He,666643,0),e=v+e|0,e=n>>>0>(r=n+be|0)>>>0?e+1|0:e,ke=(n=r)+(r=me(je,Be,470296,0))|0,n=v+e|0,he=n=r>>>0>ke>>>0?n+1|0:n,Ve=n=n-((ke>>>0<4293918720)-1|0)|0,r=(e=n>>21)+we|0,Ee=n=(r=(n=(2097151&n)<<11|(le=ke- -1048576|0)>>>21)>>>0>(be=n+Me|0)>>>0?r+1|0:r)-((be>>>0<4293918720)-1|0)|0,we=(2097151&n)<<11|(o=be- -1048576|0)>>>21,n=(n>>21)+Ue|0,He=Pe=we+We|0,we=we>>>0>Pe>>>0?n+1|0:n,e=me(Ze,Ce,-997805,-1),n=v+r|0,n=e>>>0>(be=e+be|0)>>>0?n+1|0:n,Ue=be-(e=-2097152&o)|0,Me=n-((e>>>0>be>>>0)+Ee|0)|0,n=me(Ze,Ce,654183,0),e=v+he|0,e=n>>>0>(r=n+ke|0)>>>0?e+1|0:e,Pe=r-(n=-2097152&le)|0,Ee=e-((n>>>0>r>>>0)+Ve|0)|0,e=me(Re,Ne,470296,0),r=v+(Ae-(((n=-2097152&pe)>>>0>Se>>>0)+qe|0)|0)|0,r=e>>>0>(o=e+(Se-n|0)|0)>>>0?r+1|0:r,n=me(je,Be,666643,0),e=v+r|0,be=o=n+o|0,r=n>>>0>o>>>0?e+1|0:e,n=me(Re,Ne,666643,0),e=v+(ye-((4095&ze)+((o=-2097152&ve)>>>0>ge>>>0)|0)|0)|0,ke=e=n>>>0>(pe=n+(ge-o|0)|0)>>>0?e+1|0:e,ye=e=e-((pe>>>0<4293918720)-1|0)|0,o=(2097151&e)<<11|(he=pe- -1048576|0)>>>21,e=(e>>21)+r|0,r=e=o>>>0>(le=o+be|0)>>>0?e+1|0:e,ve=e=e-((le>>>0<4293918720)-1|0)|0,o=(2097151&e)<<11|(be=le- -1048576|0)>>>21,e=(e>>21)+Ee|0,o=o>>>0>(Ae=o+Pe|0)>>>0?e+1|0:e,e=me(Ze,Ce,470296,0),r=v+r|0,r=e>>>0>(n=e+le|0)>>>0?r+1|0:r,le=n-(e=-2097152&be)|0,be=r-((e>>>0>n>>>0)+ve|0)|0,n=me(Ze,Ce,666643,0),e=v+(ke-(((r=-2097152&he)>>>0>pe>>>0)+ye|0)|0)|0,n=(r=(e=n>>>0>(Se=n+(pe-r|0)|0)>>>0?e+1|0:e)>>21)+be|0,e=(e=(n=(e=(2097151&e)<<11|Se>>>21)>>>0>(Ee=e+le|0)>>>0?n+1|0:n)>>21)+o|0,n=(n=(e=(n=(2097151&n)<<11|Ee>>>21)>>>0>(ye=n+Ae|0)>>>0?e+1|0:e)>>21)+Me|0,r=(e=(n=(e=(2097151&e)<<11|ye>>>21)>>>0>(o=e+Ue|0)>>>0?n+1|0:n)>>21)+we|0,e=(n=(r=(n=(2097151&n)<<11|o>>>21)>>>0>(ve=n+He|0)>>>0?r+1|0:r)>>21)+Ke|0,n=(r=(e=(r=(2097151&r)<<11|ve>>>21)>>>0>(Ae=r+Je|0)>>>0?e+1|0:e)>>21)+Te|0,e=(e=(n=(e=(2097151&e)<<11|Ae>>>21)>>>0>(pe=e+De|0)>>>0?n+1|0:n)>>21)+Ye|0,n=(n=(e=(n=(2097151&n)<<11|pe>>>21)>>>0>(we=n+Le|0)>>>0?e+1|0:e)>>21)+Oe|0,r=(e=(n=(e=(2097151&e)<<11|we>>>21)>>>0>(ke=e+Ge|0)>>>0?n+1|0:n)>>21)+tt|0,e=(n=(r=(n=(2097151&n)<<11|ke>>>21)>>>0>(he=n+ot|0)>>>0?r+1|0:r)>>21)+it|0,be=(Ie=a-(n=-2097152&Ie)|0)+((2097151&(e=(r=(2097151&r)<<11|he>>>21)>>>0>(le=r+at|0)>>>0?e+1|0:e))<<11|le>>>21)|0,e=(_e-((n>>>0>a>>>0)+Fe|0)|0)+(e>>21)|0,Ie=n=(e=be>>>0>>0?e+1|0:e)>>21,Se=(e=me(Te=(2097151&e)<<11|be>>>21,n,666643,0))+(n=2097151&Se)|0,e=v,a=e=n>>>0>Se>>>0?e+1|0:e,s[0|i]=Se,s[i+1|0]=(255&e)<<24|Se>>>8,e=2097151&Ee,n=me(Te,Ie,470296,0)+e|0,r=v,e=(a>>21)+(e>>>0>n>>>0?r+1|0:r)|0,e=(_e=(2097151&a)<<11|Se>>>21)>>>0>(Ee=_e+n|0)>>>0?e+1|0:e,s[i+4|0]=(2047&e)<<21|Ee>>>11,n=e,r=Ee,s[i+3|0]=(7&e)<<29|r>>>3,s[i+2|0]=31&((65535&a)<<16|Se>>>16)|r<<5,a=2097151&ye,ye=me(Te,Ie,654183,0)+a|0,e=v,Ee=(2097151&n)<<11|r>>>21,n=(n>>21)+(a=a>>>0>ye>>>0?e+1|0:e)|0,e=n=(ye=Ee+ye|0)>>>0>>0?n+1|0:n,s[i+6|0]=(63&e)<<26|ye>>>6,a=ye,ye=0,s[i+5|0]=ye<<13|(1572864&r)>>>19|a<<2,r=2097151&o,o=me(Te,Ie,-997805,-1)+r|0,n=v,n=r>>>0>o>>>0?n+1|0:n,ye=(2097151&(r=e))<<11|a>>>21,r=(e>>=21)+n|0,r=(o=ye+o|0)>>>0>>0?r+1|0:r,s[i+9|0]=(511&r)<<23|o>>>9,s[i+8|0]=(1&r)<<31|o>>>1,n=0,s[i+7|0]=n<<18|(2080768&a)>>>14|o<<7,n=2097151&ve,a=me(Te,Ie,136657,0)+n|0,e=v,e=n>>>0>a>>>0?e+1|0:e,ve=(2097151&(n=r))<<11|o>>>21,n=e+(r=n>>21)|0,n=(a=ve+a|0)>>>0>>0?n+1|0:n,s[i+12|0]=(4095&n)<<20|a>>>12,r=a,s[i+11|0]=(15&n)<<28|r>>>4,a=0,s[i+10|0]=a<<15|(1966080&o)>>>17|r<<4,a=2097151&Ae,o=me(Te,Ie,-683901,-1)+a|0,e=v,e=a>>>0>o>>>0?e+1|0:e,a=n,n=e+(n>>=21)|0,n=(a=(Ae=o)+(o=(2097151&a)<<11|r>>>21)|0)>>>0>>0?n+1|0:n,s[i+14|0]=(127&n)<<25|a>>>7,o=0,s[i+13|0]=o<<12|(1048576&r)>>>20|a<<1,e=n>>21,r=(n=(2097151&n)<<11|a>>>21)>>>0>(o=n+(2097151&pe)|0)>>>0?e+1|0:e,s[i+17|0]=(1023&r)<<22|o>>>10,s[i+16|0]=(3&r)<<30|o>>>2,n=0,s[i+15|0]=n<<17|(2064384&a)>>>15|o<<6,e=r>>21,e=(n=(2097151&r)<<11|o>>>21)>>>0>(r=n+(2097151&we)|0)>>>0?e+1|0:e,s[i+20|0]=(8191&e)<<19|r>>>13,s[i+19|0]=(31&e)<<27|r>>>5,a=(n=2097151&ke)+(ke=(2097151&e)<<11|r>>>21)|0,n=e>>21,n=a>>>0>>0?n+1|0:n,ke=a,s[i+21|0]=a,we=0,s[i+18|0]=we<<14|(1835008&o)>>>18|r<<3,s[i+22|0]=(255&n)<<24|a>>>8,r=n>>21,r=(a=(o=(2097151&n)<<11|a>>>21)+(2097151&he)|0)>>>0>>0?r+1|0:r,s[i+25|0]=(2047&r)<<21|a>>>11,s[i+24|0]=(7&r)<<29|a>>>3,s[i+23|0]=31&((65535&n)<<16|ke>>>16)|a<<5,e=r>>21,e=(n=(2097151&r)<<11|a>>>21)>>>0>(r=n+(2097151&le)|0)>>>0?e+1|0:e,s[i+27|0]=(63&e)<<26|r>>>6,o=0,s[i+26|0]=o<<13|(1572864&a)>>>19|r<<2,n=e>>21,n=(e=(a=(2097151&e)<<11|r>>>21)+(2097151&be)|0)>>>0>>0?n+1|0:n,s[i+31|0]=(131071&n)<<15|e>>>17,s[i+30|0]=(511&n)<<23|e>>>9,s[i+29|0]=(1&n)<<31|e>>>1,a=0,s[i+28|0]=a<<18|(2080768&r)>>>14|e<<7,$e(d,64),$e(f,64),t&&(c[t>>2]=64,c[t+4>>2]=0),m=l+560|0,0}function w(e,t,n,r){for(var a=0,i=0,o=0,s=0,f=0,d=0,l=0,p=0,b=0,h=0,y=0,m=0,g=0,A=0,w=0,x=0,_=0,k=0,S=0,I=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,R=0,N=0,D=0,j=0,U=0,L=0,Z=0,F=0,H=0,z=0;o=(a=l<<3)+n|0,i=u[0|(a=t+a|0)]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,E=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,f=i<<24|(65280&i)<<8,b=(d=16711680&i)<<24,d=d>>>8|0,a=(p=-16777216&i)>>>24|0,c[o>>2]=b|p<<8|-16777216&((255&E)<<24|i>>>8)|16711680&((16777215&E)<<8|i>>>24)|E>>>8&65280|E>>>24,i=a|d|f,a=0,c[o+4>>2]=i|a|a,16!=(0|(l=l+1|0)););for(t=c[e+4>>2],c[r>>2]=c[e>>2],c[r+4>>2]=t,t=c[e+60>>2],c[r+56>>2]=c[e+56>>2],c[r+60>>2]=t,t=c[e+52>>2],c[r+48>>2]=c[e+48>>2],c[r+52>>2]=t,t=c[e+44>>2],c[r+40>>2]=c[e+40>>2],c[r+44>>2]=t,t=c[e+36>>2],c[r+32>>2]=c[e+32>>2],c[r+36>>2]=t,t=c[e+28>>2],c[r+24>>2]=c[e+24>>2],c[r+28>>2]=t,t=c[e+20>>2],c[r+16>>2]=c[e+16>>2],c[r+20>>2]=t,t=c[e+12>>2],c[r+8>>2]=c[e+8>>2],c[r+12>>2]=t;p=c[r+56>>2],f=c[r+60>>2],a=c[(t=E=(C=z<<3)+n|0)>>2],t=c[t+4>>2],_=i=c[r+36>>2],i=fe(l=c[r+32>>2],i,50),o=v,i=fe(l,_,46)^i,o^=v,i=fe(l,_,23)^i,t=(v^o)+t|0,t=(a=i+a|0)>>>0>>0?t+1|0:t,a=(o=c[(i=C+34e3|0)>>2])+a|0,t=c[i+4>>2]+t|0,t=a>>>0>>0?t+1|0:t,i=(b=((o=c[r+48>>2])^(d=c[r+40>>2]))&l^o)+a|0,a=(((x=c[r+52>>2])^(h=c[r+44>>2]))&_^x)+t|0,t=(i>>>0>>0?a+1|0:a)+f|0,t=(a=i)>>>0>(i=i+p|0)>>>0?t+1|0:t,p=(f=c[r+24>>2])+i|0,a=c[r+28>>2]+t|0,y=a=f>>>0>p>>>0?a+1|0:a,c[r+24>>2]=p,c[r+28>>2]=a,S=a=c[r+4>>2],a=fe(g=c[r>>2],a,36),f=v,a=fe(g,S,30)^a,b=v^f,f=i+(fe(g,S,25)^a)|0,a=t+(v^b)|0,a=i>>>0>f>>>0?a+1|0:a,b=(t=f)+(f=g&((i=c[r+16>>2])|(A=c[r+8>>2]))|i&A)|0,t=(t=a)+(S&((a=c[r+20>>2])|(k=c[r+12>>2]))|a&k)|0,f=t=f>>>0>b>>>0?t+1|0:t,c[r+56>>2]=b,c[r+60>>2]=t,s=i,m=a,I=c[(t=j=(w=8|C)+n|0)>>2],D=c[t+4>>2],a=((h^_)&y^h)+x|0,a=(t=(i=(d^l)&p^d)+o|0)>>>0>>0?a+1|0:a,i=fe(p,y,50),o=v,i=fe(p,y,46)^i,o^=v,i=(x=fe(p,y,23)^i)+t|0,t=(v^o)+a|0,t=(i>>>0>>0?t+1|0:t)+D|0,t=(a=i+I|0)>>>0>>0?t+1|0:t,i=(i=a)+(o=c[(a=w+34e3|0)>>2])|0,a=c[a+4>>2]+t|0,a=(t=i>>>0>>0?a+1|0:a)+m|0,w=a=(s=i+s|0)>>>0>>0?a+1|0:a,c[r+16>>2]=s,c[r+20>>2]=a,t=t+((k|S)&f|k&S)|0,t=(a=i+((g|A)&b|g&A)|0)>>>0>>0?t+1|0:t,i=fe(b,f,36),o=v,i=fe(b,f,30)^i,m=v^o,o=a,a=fe(b,f,25)^i,t=(v^m)+t|0,m=t=a>>>0>(o=o+a|0)>>>0?t+1|0:t,c[r+48>>2]=o,c[r+52>>2]=t,t=(t=d)+(d=c[(a=D=(i=16|C)+n|0)>>2])|0,a=c[a+4>>2]+h|0,a=t>>>0>>0?a+1|0:a,i=(h=t)+(d=c[(t=i+34e3|0)>>2])|0,t=c[t+4>>2]+a|0,t=((y^_)&w^_)+(t=i>>>0>>0?t+1|0:t)|0,t=(a=(a=i)+(i=(p^l)&s^l)|0)>>>0>>0?t+1|0:t,i=fe(s,w,50),d=v,i=fe(s,w,46)^i,d^=v,i=(h=fe(s,w,23)^i)+a|0,a=(v^d)+t|0,x=a=i>>>0>>0?a+1|0:a,t=a,a=fe(o,m,36),d=v,a=fe(o,m,30)^a,h=v^d,I=fe(o,m,25)^a,a=((f|S)&m|f&S)+(v^h)|0,t=((d=I+((b|g)&o|b&g)|0)>>>0>>0?a+1|0:a)+t|0,h=t=(a=d)>>>0>(d=i+d|0)>>>0?t+1|0:t,c[r+40>>2]=d,c[r+44>>2]=t,a=x+k|0,k=a=(A=i+A|0)>>>0>>0?a+1|0:a,c[r+8>>2]=A,c[r+12>>2]=a,a=(a=l)+(l=c[(t=M=(i=24|C)+n|0)>>2])|0,t=c[t+4>>2]+_|0,t=a>>>0>>0?t+1|0:t,i=(_=a)+(l=c[(a=i+34e3|0)>>2])|0,a=c[a+4>>2]+t|0,a=(y^(y^w)&k)+(a=i>>>0>>0?a+1|0:a)|0,a=(t=(t=i)+(i=p^(p^s)&A)|0)>>>0>>0?a+1|0:a,i=fe(A,k,50),l=v,i=fe(A,k,46)^i,l^=v,i=(x=fe(A,k,23)^i)+t|0,t=(v^l)+a|0,t=i>>>0>>0?t+1|0:t,a=fe(d,h,36),l=v,a=fe(d,h,30)^a,x=v^l,_=fe(d,h,25)^a,a=((f|m)&h|f&m)+(v^x)|0,a=((l=_+((o|b)&d|o&b)|0)>>>0<_>>>0?a+1|0:a)+t|0,x=a=(_=l)>>>0>(l=i+l|0)>>>0?a+1|0:a,c[r+32>>2]=l,c[r+36>>2]=a,t=t+S|0,S=t=(g=i+g|0)>>>0>>0?t+1|0:t,c[r>>2]=g,c[r+4>>2]=t,i=c[(a=U=(t=32|C)+n|0)>>2],a=y+c[a+4>>2]|0,a=(i=i+p|0)>>>0

>>0?a+1|0:a,i=(p=c[(t=t+34e3|0)>>2])+i|0,t=c[t+4>>2]+a|0,t=(w^(w^k)&S)+(t=i>>>0

>>0?t+1|0:t)|0,t=(a=(a=i)+(i=s^(s^A)&g)|0)>>>0>>0?t+1|0:t,i=fe(g,S,50),p=v,i=fe(g,S,46)^i,p^=v,i=(y=fe(g,S,23)^i)+a|0,a=(v^p)+t|0,_=a=i>>>0>>0?a+1|0:a,t=a,a=fe(l,x,36),p=v,a=fe(l,x,30)^a,y=v^p,I=fe(l,x,25)^a,a=((h|m)&x|h&m)+(v^y)|0,t=((p=I+((o|d)&l|o&d)|0)>>>0>>0?a+1|0:a)+t|0,p=t=(y=i+p|0)>>>0

>>0?t+1|0:t,c[r+24>>2]=y,c[r+28>>2]=t,a=f+_|0,_=a=(f=i+b|0)>>>0>>0?a+1|0:a,c[r+56>>2]=f,c[r+60>>2]=a,i=c[(t=R=(a=40|C)+n|0)>>2],t=w+c[t+4>>2]|0,t=(i=i+s|0)>>>0>>0?t+1|0:t,i=(b=c[(a=a+34e3|0)>>2])+i|0,a=c[a+4>>2]+t|0,a=(k^(k^S)&_)+(a=i>>>0>>0?a+1|0:a)|0,a=(t=(t=i)+(i=A^(g^A)&f)|0)>>>0>>0?a+1|0:a,i=fe(f,_,50),b=v,i=fe(f,_,46)^i,b^=v,i=(s=fe(f,_,23)^i)+t|0,t=(v^b)+a|0,t=i>>>0>>0?t+1|0:t,a=fe(y,p,36),b=v,a=fe(y,p,30)^a,s=v^b,w=fe(y,p,25)^a,a=((h|x)&p|h&x)+(v^s)|0,a=((b=w+((d|l)&y|d&l)|0)>>>0>>0?a+1|0:a)+t|0,b=a=(s=i+b|0)>>>0>>0?a+1|0:a,c[r+16>>2]=s,c[r+20>>2]=a,t=t+m|0,w=t=(m=i+o|0)>>>0>>0?t+1|0:t,c[r+48>>2]=m,c[r+52>>2]=t,i=c[(a=N=(t=48|C)+n|0)>>2],a=k+c[a+4>>2]|0,a=(i=i+A|0)>>>0>>0?a+1|0:a,i=(o=c[(t=t+34e3|0)>>2])+i|0,t=c[t+4>>2]+a|0,t=(S^(_^S)&w)+(t=i>>>0>>0?t+1|0:t)|0,t=(a=(a=i)+(i=g^(f^g)&m)|0)>>>0>>0?t+1|0:t,i=fe(m,w,50),o=v,i=fe(m,w,46)^i,o^=v,i=(A=fe(m,w,23)^i)+a|0,a=(v^o)+t|0,k=a=i>>>0>>0?a+1|0:a,t=a,a=fe(s,b,36),o=v,a=fe(s,b,30)^a,A=v^o,I=fe(s,b,25)^a,a=((p|x)&b|p&x)+(v^A)|0,t=((o=I+((l|y)&s|l&y)|0)>>>0>>0?a+1|0:a)+t|0,A=t=(a=o)>>>0>(o=i+o|0)>>>0?t+1|0:t,c[r+8>>2]=o,c[r+12>>2]=t,a=h+k|0,k=a=(I=i+d|0)>>>0>>0?a+1|0:a,c[r+40>>2]=I,c[r+44>>2]=a,i=c[(t=B=(a=56|C)+n|0)>>2],t=S+c[t+4>>2]|0,t=(i=i+g|0)>>>0>>0?t+1|0:t,i=(d=c[(a=a+34e3|0)>>2])+i|0,a=c[a+4>>2]+t|0,a=(_^(w^_)&k)+(a=i>>>0>>0?a+1|0:a)|0,a=(t=(t=i)+(i=f^(f^m)&I)|0)>>>0>>0?a+1|0:a,i=fe(I,k,50),d=v,i=fe(I,k,46)^i,d^=v,i=(h=fe(I,k,23)^i)+t|0,t=(v^d)+a|0,t=i>>>0>>0?t+1|0:t,a=fe(o,A,36),d=v,a=fe(o,A,30)^a,h=v^d,g=fe(o,A,25)^a,a=((p|b)&A|p&b)+(v^h)|0,a=((d=g+((s|y)&o|s&y)|0)>>>0>>0?a+1|0:a)+t|0,h=a=(h=d)>>>0>(d=i+d|0)>>>0?a+1|0:a,c[r>>2]=d,c[r+4>>2]=a,t=t+x|0,S=t=(a=l)>>>0>(l=i+l|0)>>>0?t+1|0:t,c[r+32>>2]=l,c[r+36>>2]=t,i=c[(a=L=(t=64|C)+n|0)>>2],a=_+c[a+4>>2]|0,a=(i=i+f|0)>>>0>>0?a+1|0:a,i=(f=c[(t=t+34e3|0)>>2])+i|0,t=c[t+4>>2]+a|0,t=(w^(w^k)&S)+(t=i>>>0>>0?t+1|0:t)|0,t=(a=(a=i)+(i=m^(m^I)&l)|0)>>>0>>0?t+1|0:t,i=fe(l,S,50),f=v,i=fe(l,S,46)^i,f^=v,i=(x=fe(l,S,23)^i)+a|0,a=(v^f)+t|0,g=a=i>>>0>>0?a+1|0:a,t=a,a=fe(d,h,36),f=v,a=fe(d,h,30)^a,x=v^f,_=fe(d,h,25)^a,a=((b|A)&h|b&A)+(v^x)|0,t=((f=_+((o|s)&d|o&s)|0)>>>0<_>>>0?a+1|0:a)+t|0,f=t=(x=i+f|0)>>>0>>0?t+1|0:t,c[r+56>>2]=x,c[r+60>>2]=t,a=p+g|0,_=a=(p=i+y|0)>>>0>>0?a+1|0:a,c[r+24>>2]=p,c[r+28>>2]=a,i=c[(t=T=(a=72|C)+n|0)>>2],t=w+c[t+4>>2]|0,t=(i=i+m|0)>>>0>>0?t+1|0:t,i=(m=c[(a=a+34e3|0)>>2])+i|0,a=c[a+4>>2]+t|0,a=(k^(k^S)&_)+(a=i>>>0>>0?a+1|0:a)|0,a=(t=(t=i)+(i=I^(l^I)&p)|0)>>>0>>0?a+1|0:a,i=fe(p,_,50),m=v,i=fe(p,_,46)^i,m^=v,i=(g=fe(p,_,23)^i)+t|0,t=(v^m)+a|0,t=i>>>0>>0?t+1|0:t,a=fe(x,f,36),m=v,a=fe(x,f,30)^a,g=v^m,y=fe(x,f,25)^a,a=((h|A)&f|h&A)+(v^g)|0,a=((m=y+((o|d)&x|o&d)|0)>>>0>>0?a+1|0:a)+t|0,m=a=(g=i+m|0)>>>0>>0?a+1|0:a,c[r+48>>2]=g,c[r+52>>2]=a,t=t+b|0,w=t=(b=i+s|0)>>>0>>0?t+1|0:t,c[r+16>>2]=b,c[r+20>>2]=t,t=(s=c[(a=P=(i=80|C)+n|0)>>2])+I|0,a=c[a+4>>2]+k|0,a=t>>>0>>0?a+1|0:a,i=(y=t)+(s=c[(t=i+34e3|0)>>2])|0,t=c[t+4>>2]+a|0,t=(S^(_^S)&w)+(t=i>>>0>>0?t+1|0:t)|0,t=(a=(a=i)+(i=l^(p^l)&b)|0)>>>0>>0?t+1|0:t,i=fe(b,w,50),s=v,i=fe(b,w,46)^i,s^=v,i=(y=fe(b,w,23)^i)+a|0,a=(v^s)+t|0,k=a=i>>>0>>0?a+1|0:a,t=a,a=fe(g,m,36),s=v,a=fe(g,m,30)^a,y=v^s,I=fe(g,m,25)^a,a=((f|h)&m|f&h)+(v^y)|0,t=((s=I+((d|x)&g|d&x)|0)>>>0>>0?a+1|0:a)+t|0,s=t=(y=i+s|0)>>>0>>0?t+1|0:t,c[r+40>>2]=y,c[r+44>>2]=t,a=A+k|0,k=a=(A=i+o|0)>>>0>>0?a+1|0:a,c[r+8>>2]=A,c[r+12>>2]=a,a=34e3+(t=88|C)|0,o=c[(t=O=t+n|0)>>2],i=c[a>>2]+o|0,t=c[a+4>>2]+c[t+4>>2]|0,a=S+(i>>>0>>0?t+1|0:t)|0,a=(_^(w^_)&k)+(a=(t=i+l|0)>>>0>>0?a+1|0:a)|0,a=(t=(i=p^(p^b)&A)+t|0)>>>0>>0?a+1|0:a,i=fe(A,k,50),o=v,i=fe(A,k,46)^i,o^=v,i=(l=fe(A,k,23)^i)+t|0,t=(v^o)+a|0,t=i>>>0>>0?t+1|0:t,a=fe(y,s,36),o=v,a=fe(y,s,30)^a,l=v^o,S=fe(y,s,25)^a,a=((f|m)&s|f&m)+(v^l)|0,a=((o=S+((g|x)&y|g&x)|0)>>>0>>0?a+1|0:a)+t|0,l=a=(l=o)>>>0>(o=i+o|0)>>>0?a+1|0:a,c[r+32>>2]=o,c[r+36>>2]=a,t=t+h|0,h=t=(a=d)>>>0>(d=i+d|0)>>>0?t+1|0:t,c[r>>2]=d,c[r+4>>2]=t,a=34e3+(t=96|C)|0,S=c[(t=Z=t+n|0)>>2],i=c[a>>2]+S|0,a=c[a+4>>2]+c[t+4>>2]|0,t=_+(i>>>0>>0?a+1|0:a)|0,t=(a=i+p|0)>>>0

>>0?t+1|0:t,i=(p=b^(b^A)&d)+a|0,a=(w^(w^k)&h)+t|0,a=i>>>0

>>0?a+1|0:a,t=fe(d,h,50),p=v,t=fe(d,h,46)^t,p^=v,_=i,i=fe(d,h,23)^t,a=(v^p)+a|0,_=a=(t=_+i|0)>>>0>>0?a+1|0:a,i=t,t=fe(o,l,36),p=v,t=fe(o,l,30)^t,S=v^p,I=fe(o,l,25)^t,t=((s|m)&l|s&m)+(v^S)|0,a=((p=I+((g|y)&o|g&y)|0)>>>0>>0?t+1|0:t)+a|0,p=a=(S=i+p|0)>>>0

>>0?a+1|0:a,c[r+24>>2]=S,c[r+28>>2]=a,a=f+_|0,f=a=(x=i+x|0)>>>0>>0?a+1|0:a,c[r+56>>2]=x,c[r+60>>2]=a,a=34e3+(t=104|C)|0,_=c[(t=H=t+n|0)>>2],i=c[a>>2]+_|0,t=c[a+4>>2]+c[t+4>>2]|0,a=w+(i>>>0<_>>>0?t+1|0:t)|0,a=(t=i+b|0)>>>0>>0?a+1|0:a,i=(b=A^(d^A)&x)+t|0,t=(k^(h^k)&f)+a|0,t=i>>>0>>0?t+1|0:t,a=fe(x,f,50),b=v,a=fe(x,f,46)^a,b^=v,w=fe(x,f,23)^a,a=(v^b)+t|0,_=a=(i=w+i|0)>>>0>>0?a+1|0:a,t=a,a=fe(S,p,36),b=v,a=fe(S,p,30)^a,w=v^b,I=fe(S,p,25)^a,a=((s|l)&p|s&l)+(v^w)|0,t=((b=I+((o|y)&S|o&y)|0)>>>0>>0?a+1|0:a)+t|0,b=t=(w=i+b|0)>>>0>>0?t+1|0:t,c[r+16>>2]=w,c[r+20>>2]=t,t=m+_|0,m=t=(g=i+g|0)>>>0>>0?t+1|0:t,c[r+48>>2]=g,c[r+52>>2]=t,a=34e3+(t=112|C)|0,_=c[(i=I=t+n|0)>>2],t=c[a>>2]+_|0,a=c[a+4>>2]+c[i+4>>2]|0,a=k+(t>>>0<_>>>0?a+1|0:a)|0,a=(h^(f^h)&m)+(a=(t=t+A|0)>>>0>>0?a+1|0:a)|0,a=(t=(i=d^(d^x)&g)+t|0)>>>0>>0?a+1|0:a,i=fe(g,m,50),A=v,i=fe(g,m,46)^i,A^=v,i=(k=fe(g,m,23)^i)+t|0,t=(v^A)+a|0,_=t=i>>>0>>0?t+1|0:t,a=t,t=fe(w,b,36),A=v,t=fe(w,b,30)^t,k=v^A,F=fe(w,b,25)^t,t=((p|l)&b|p&l)+(v^k)|0,a=((A=F+((o|S)&w|o&S)|0)>>>0>>0?t+1|0:t)+a|0,A=a=(k=i+A|0)>>>0>>0?a+1|0:a,c[r+8>>2]=k,c[r+12>>2]=a,a=s+_|0,i=a=(s=i+y|0)>>>0>>0?a+1|0:a,c[r+40>>2]=s,c[r+44>>2]=a,a=34e3+(t=120|C)|0,C=c[(t=y=t+n|0)>>2],_=c[a>>2]+C|0,a=c[a+4>>2]+c[t+4>>2]|0,t=h+(_>>>0>>0?a+1|0:a)|0,t=(f^(f^m)&i)+(t=(a=d+_|0)>>>0>>0?t+1|0:t)|0,t=(a=(d=x^(g^x)&s)+a|0)>>>0>>0?t+1|0:t,d=fe(s,i,50),f=v,d=fe(s,i,46)^d,f^=v,i=(d=fe(s,i,23)^d)+a|0,a=(v^f)+t|0,a=i>>>0>>0?a+1|0:a,d=i,f=a,t=a,a=fe(k,A,36),s=v,a=fe(k,A,30)^a,m=v^s,h=fe(k,A,25)^a,a=((p|b)&A|p&b)+(v^m)|0,t=((s=h+((w|S)&k|w&S)|0)>>>0>>0?a+1|0:a)+t|0,t=(i=i+s|0)>>>0>>0?t+1|0:t,c[r>>2]=i,c[r+4>>2]=t,a=f+l|0,a=(l=o)>>>0>(o=o+d|0)>>>0?a+1|0:a,c[r+32>>2]=o,c[r+36>>2]=a,64!=(0|z);)f=((z=z+16|0)<<3)+n|0,d=c[E>>2],l=c[E+4>>2],F=c[T>>2],p=t=c[T+4>>2],a=t,i=t=c[I+4>>2],t=fe(k=c[I>>2],t,45),o=v,s=((63&i)<<26|k>>>6)^(t=fe(k,i,3)^t),t=(i>>>6^(b=v^o))+a|0,a=((o=s+F|0)>>>0>>0?t+1|0:t)+l|0,a=(t=o+d|0)>>>0>>0?a+1|0:a,d=o=c[j+4>>2],o=fe(l=c[j>>2],o,63),b=v,o=((127&d)<<25|l>>>7)^fe(l,d,56)^o,a=(v^b^d>>>7)+a|0,o=a=o>>>0>(S=o+t|0)>>>0?a+1|0:a,c[f>>2]=S,c[f+4>>2]=a,l=(I=c[P>>2])+l|0,t=(f=c[P+4>>2])+d|0,a=l>>>0>>0?t+1|0:t,d=t=c[y+4>>2],t=fe(_=c[y>>2],t,45),b=v,s=l,l=((63&d)<<26|_>>>6)^fe(_,d,3)^t,a=(v^b^d>>>6)+a|0,l=(s=s+l|0)>>>0>>0?a+1|0:a,a=fe(b=c[D>>2],t=c[D+4>>2],63),m=v,y=s,s=((127&t)<<25|b>>>7)^fe(b,t,56)^a,a=(v^m^t>>>7)+l|0,l=a=s>>>0>(w=y+s|0)>>>0?a+1|0:a,c[E+136>>2]=w,c[E+140>>2]=a,a=(C=c[O>>2])+b|0,t=(b=c[O+4>>2])+t|0,s=fe(S,o,45),m=v,s=(h=((63&o)<<26|S>>>6)^fe(S,o,3)^s)+a|0,a=(v^m^o>>>6)+(a>>>0>>0?t+1|0:t)|0,a=s>>>0>>0?a+1|0:a,m=t=c[M+4>>2],t=fe(h=c[M>>2],t,63),A=v,y=s,s=((127&m)<<25|h>>>7)^fe(h,m,56)^t,a=(v^A^m>>>7)+a|0,s=a=s>>>0>(j=y+s|0)>>>0?a+1|0:a,c[E+144>>2]=j,c[E+148>>2]=a,h=(D=c[Z>>2])+h|0,t=(t=m)+(m=c[Z+4>>2])|0,a=h>>>0>>0?t+1|0:t,t=fe(w,l,45),A=v,x=((63&l)<<26|w>>>6)^fe(w,l,3)^t,a=(v^A^l>>>6)+a|0,a=(h=x+h|0)>>>0>>0?a+1|0:a,A=t=c[U+4>>2],t=fe(x=c[U>>2],t,63),g=v,y=h,h=((127&A)<<25|x>>>7)^fe(x,A,56)^t,a=(v^g^A>>>7)+a|0,h=a=h>>>0>(M=y+h|0)>>>0?a+1|0:a,c[E+152>>2]=M,c[E+156>>2]=a,t=(U=c[H>>2])+x|0,a=(a=A)+(A=c[H+4>>2])|0,x=fe(j,s,45),g=v,x=((63&s)<<26|j>>>6)^fe(j,s,3)^x,a=(v^g^s>>>6)+(t>>>0>>0?a+1|0:a)|0,x=(y=x+t|0)>>>0>>0?a+1|0:a,a=fe(g=c[R>>2],t=c[R+4>>2],63),R=v,O=y,y=((127&t)<<25|g>>>7)^(a=fe(g,t,56)^a),a=(t>>>7^(T=v^R))+x|0,x=a=y>>>0>(R=O+y|0)>>>0?a+1|0:a,c[E+160>>2]=R,c[E+164>>2]=a,t=t+i|0,t=(a=g+k|0)>>>0>>0?t+1|0:t,g=fe(M,h,45),y=v,g=(T=((63&h)<<26|M>>>6)^fe(M,h,3)^g)+a|0,a=(v^y^h>>>6)+t|0,a=g>>>0>>0?a+1|0:a,T=t=c[N+4>>2],t=fe(y=c[N>>2],t,63),N=v,t=fe(y,T,56)^t,O=g,a=(T>>>7^(P=v^N))+a|0,g=a=(g=((127&T)<<25|y>>>7)^t)>>>0>(N=O+g|0)>>>0?a+1|0:a,c[E+168>>2]=N,c[E+172>>2]=a,t=d+T|0,t=(a=y+_|0)>>>0>>0?t+1|0:t,O=y=c[B+4>>2],y=fe(P=c[B>>2],y,63),T=v,y=(B=((127&O)<<25|P>>>7)^fe(P,O,56)^y)+a|0,a=(v^T^O>>>7)+t|0,t=y>>>0>>0?a+1|0:a,a=fe(R,x,45),T=v,a=fe(R,x,3)^a,B=v^T,T=y,t=(x>>>6^B)+t|0,y=t=(y=((63&x)<<26|R>>>6)^a)>>>0>(T=T+y|0)>>>0?t+1|0:t,c[E+176>>2]=T,c[E+180>>2]=t,Z=c[L>>2],L=t=c[L+4>>2],B=t,t=fe(F,p,63),a=v,H=((127&p)<<25|F>>>7)^fe(F,p,56)^t,t=(v^a^p>>>7)+l|0,a=((w=H+w|0)>>>0>>0?t+1|0:t)+B|0,a=(t=w+Z|0)>>>0>>0?a+1|0:a,l=fe(T,y,45),w=v,B=(l=((63&y)<<26|T>>>6)^fe(T,y,3)^l)+t|0,t=(v^w^y>>>6)+a|0,l=t=l>>>0>B>>>0?t+1|0:t,c[E+192>>2]=B,c[E+196>>2]=t,a=o+O|0,a=(t=S+P|0)>>>0

>>0?a+1|0:a,w=fe(Z,L,63),P=v,O=((127&L)<<25|Z>>>7)^fe(Z,L,56)^w,a=(v^P^L>>>7)+a|0,t=(w=O+t|0)>>>0>>0?a+1|0:a,a=fe(N,g,45),P=v,a=fe(N,g,3)^a,L=w,t=(g>>>6^(O=v^P))+t|0,w=t=(w=((63&g)<<26|N>>>6)^a)>>>0>(P=L+w|0)>>>0?t+1|0:t,c[E+184>>2]=P,c[E+188>>2]=t,t=fe(C,b,63),a=v,t=((127&b)<<25|C>>>7)^fe(C,b,56)^t,a=(v^a^b>>>7)+f|0,t=h+(t>>>0>(O=t+I|0)>>>0?a+1|0:a)|0,t=(a=M+O|0)>>>0>>0?t+1|0:t,h=fe(B,l,45),M=v,h=fe(B,l,3)^h,O=v^M,M=(h^=(63&l)<<26|B>>>6)+a|0,a=(l>>>6^O)+t|0,h=a=h>>>0>M>>>0?a+1|0:a,c[E+208>>2]=M,c[E+212>>2]=a,t=fe(I,f,63),a=v,O=fe(I,f,56)^t,a=((t=f>>>7|0)^v^a)+p|0,t=s+((f=(I=O^((127&f)<<25|I>>>7))+F|0)>>>0>>0?a+1|0:a)|0,t=(a=f+j|0)>>>0>>0?t+1|0:t,p=fe(P,w,45),f=v,s=(p=((63&w)<<26|P>>>6)^fe(P,w,3)^p)+a|0,a=(v^f^w>>>6)+t|0,p=a=p>>>0>s>>>0?a+1|0:a,c[E+200>>2]=s,c[E+204>>2]=a,t=fe(U,A,63),a=v,I=((127&A)<<25|U>>>7)^fe(U,A,56)^t,t=(v^a^A>>>7)+m|0,a=g+((f=I+D|0)>>>0>>0?t+1|0:t)|0,a=(t=f+N|0)>>>0>>0?a+1|0:a,f=fe(M,h,45),g=v,O=t,t=h>>>6|0,f=((63&h)<<26|M>>>6)^fe(M,h,3)^f,a=(t^v^g)+a|0,f=a=f>>>0>(h=O+f|0)>>>0?a+1|0:a,c[E+224>>2]=h,c[E+228>>2]=a,t=fe(D,m,63),a=v,t=fe(D,m,56)^t,g=v^a,I=((127&m)<<25|D>>>7)^t,t=((a=m>>>7|0)^g)+b|0,a=x+((m=I+C|0)>>>0>>0?t+1|0:t)|0,a=(t=m+R|0)>>>0>>0?a+1|0:a,b=fe(s,p,45),m=v,g=t,t=p>>>6|0,p=((63&p)<<26|s>>>6)^fe(s,p,3)^b,t=(t^v^m)+a|0,p=t=p>>>0>(b=g+p|0)>>>0?t+1|0:t,c[E+216>>2]=b,c[E+220>>2]=t,t=fe(_,d,63),a=v,m=((127&d)<<25|_>>>7)^fe(_,d,56)^t,a=(v^a^d>>>7)+i|0,a=w+((t=m+k|0)>>>0>>0?a+1|0:a)|0,t=(s=t+P|0)>>>0

>>0?a+1|0:a,a=fe(h,f,45),m=v,w=s,s=fe(h,f,3)^a,a=f>>>6|0,f=w+(s^=(63&f)<<26|h>>>6)|0,t=(a^v^m)+t|0,c[E+240>>2]=f,c[E+244>>2]=f>>>0>>0?t+1|0:t,t=fe(k,i,63),a=v,t=fe(k,i,56)^t,f=v^a,a=((a=i>>>7|0)^f)+A|0,t=y+((t^=(127&i)<<25|k>>>7)>>>0>(i=t+U|0)>>>0?a+1|0:a)|0,t=(a=i+T|0)>>>0>>0?t+1|0:t,i=fe(b,p,45),f=v,s=a,a=p>>>6|0,i=((63&p)<<26|b>>>6)^fe(b,p,3)^i,a=(a^v^f)+t|0,i=a=i>>>0>(p=s+i|0)>>>0?a+1|0:a,c[E+232>>2]=p,c[E+236>>2]=a,t=fe(S,o,63),a=v,s=fe(S,o,56)^t,a=((t=o>>>7|0)^v^a)+d|0,t=l+((o=(f=s^((127&o)<<25|S>>>7))+_|0)>>>0>>0?a+1|0:a)|0,t=(a=o+B|0)>>>0>>0?t+1|0:t,o=fe(p,i,45),d=v,l=a,a=i>>>6|0,i=l+(o=((63&i)<<26|p>>>6)^fe(p,i,3)^o)|0,a=(a^v^d)+t|0,c[E+248>>2]=i,c[E+252>>2]=i>>>0>>0?a+1|0:a;t=t+c[e+4>>2]|0,t=(n=i+c[e>>2]|0)>>>0>>0?t+1|0:t,c[e>>2]=n,c[e+4>>2]=t,a=c[e+12>>2]+c[r+12>>2]|0,t=(n=c[r+8>>2])+c[e+8>>2]|0,c[e+8>>2]=t,c[e+12>>2]=t>>>0>>0?a+1|0:a,a=c[e+20>>2]+c[r+20>>2]|0,t=(n=c[r+16>>2])+c[e+16>>2]|0,c[e+16>>2]=t,c[e+20>>2]=t>>>0>>0?a+1|0:a,t=c[e+28>>2]+c[r+28>>2]|0,n=(a=c[r+24>>2])+c[e+24>>2]|0,c[e+24>>2]=n,c[e+28>>2]=n>>>0>>0?t+1|0:t,a=c[e+36>>2]+c[r+36>>2]|0,t=(n=c[r+32>>2])+c[e+32>>2]|0,c[e+32>>2]=t,c[e+36>>2]=t>>>0>>0?a+1|0:a,t=c[e+44>>2]+c[r+44>>2]|0,n=(a=c[r+40>>2])+c[e+40>>2]|0,c[e+40>>2]=n,c[e+44>>2]=n>>>0>>0?t+1|0:t,a=c[e+52>>2]+c[r+52>>2]|0,t=(n=c[r+48>>2])+c[e+48>>2]|0,c[e+48>>2]=t,c[e+52>>2]=t>>>0>>0?a+1|0:a,a=c[e+60>>2]+c[r+60>>2]|0,t=(n=c[r+56>>2])+c[e+56>>2]|0,c[e+56>>2]=t,c[e+60>>2]=t>>>0>>0?a+1|0:a}function x(e){var t,n,r,a,i,o,c,f,d,l,p=0,b=0,h=0,y=0,m=0,g=0,A=0,w=0,x=0,_=0,k=0,S=0,I=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,R=0,N=0,D=0,j=0,U=0,L=0,Z=0,F=0,H=0,z=0,q=0,Q=0,K=0,V=0,J=0,G=0,W=0,Y=0;y=(S=u[e+44|0]|u[e+45|0]<<8|u[e+46|0]<<16|u[e+47|0]<<24)>>>5&2097151,h=me(N=(u[e+60|0]|u[e+61|0]<<8|u[e+62|0]<<16|u[e+63|0]<<24)>>>3|0,0,-683901,-1),b=(p=u[e+44|0])<<16&2031616|u[e+42|0]|u[e+43|0]<<8,p=v,w=p=b>>>0>(x=h+b|0)>>>0?p+1|0:p,T=p=p-((x>>>0<4293918720)-1|0)|0,h=p>>21,p=(b=y)+(y=(2097151&p)<<11|(g=x- -1048576|0)>>>21)|0,b=h,z=b=p>>>0>>0?b+1|0:b,q=p,M=me(p,b,-683901,-1),_=v,A=me(t=(u[e+49|0]|u[e+50|0]<<8|u[e+51|0]<<16|u[e+52|0]<<24)>>>7&2097151,0,-997805,-1),h=(p=u[e+27|0])>>>24|0,y=p<<8|(I=u[e+23|0]|u[e+24|0]<<8|u[e+25|0]<<16|u[e+26|0]<<24)>>>24,b=(p=u[e+28|0])>>>16|0,b=2097151&((3&(b|=h))<<30|(p=y|p<<16)>>>2),p=v,p=b>>>0>(h=b+A|0)>>>0?p+1|0:p,b=me(Z=(E=u[e+52|0]|u[e+53|0]<<8|u[e+54|0]<<16|u[e+55|0]<<24)>>>4&2097151,0,654183,0),p=v+p|0,A=h=b+h|0,h=b>>>0>h>>>0?p+1|0:p,m=(b=u[e+48|0])<<8|S>>>24,b=p=b>>>24|0,p=me(n=2097151&((3&(S=(p=(y=u[e+49|0])>>>16|0)|b))<<30|(b=(y<<=16)|m)>>>2),0,136657,0),h=v+h|0,h=p>>>0>(b=p+A|0)>>>0?h+1|0:h,y=(p=me(r=(u[e+57|0]|u[e+58|0]<<8|u[e+59|0]<<16|u[e+60|0]<<24)>>>6&2097151,0,666643,0))+b|0,b=v+h|0,A=y,h=p>>>0>y>>>0?b+1|0:b,b=(p=u[e+56|0])>>>24|0,m=p<<8|E>>>24,b=me(a=2097151&((1&(E=(p=(y=u[e+57|0])>>>16|0)|b))<<31|(b=(y<<=16)|m)>>>1),0,470296,0),p=v+h|0,b=(p=(h=y=b+A|0)>>>0>>0?p+1|0:p)+_|0,b=h>>>0>(y=h+M|0)>>>0?b+1|0:b,O=h- -1048576|0,P=h=p-((h>>>0<4293918720)-1|0)|0,_=y-(p=-2097152&O)|0,M=b-((p>>>0>y>>>0)+h|0)|0,b=me(t,0,654183,0),p=v,p=b>>>0>(h=b+(I>>>5&2097151)|0)>>>0?p+1|0:p,y=(b=h)+(h=me(Z,0,470296,0))|0,b=v+p|0,b=h>>>0>y>>>0?b+1|0:b,p=me(n,K,-997805,-1),b=v+b|0,b=p>>>0>(h=p+y|0)>>>0?b+1|0:b,y=(p=h)+(h=me(a,V,666643,0))|0,p=v+b|0,m=y,y=h>>>0>y>>>0?p+1|0:p,A=(h=me(t,0,470296,0))+(p=(p=u[e+23|0])<<16&2031616|u[e+21|0]|u[e+22|0]<<8)|0,h=v,h=p>>>0>A>>>0?h+1|0:h,A=(b=me(Z,0,666643,0))+A|0,p=v+h|0,h=me(n,K,654183,0),b=v+(b>>>0>A>>>0?p+1|0:p)|0,E=b=h>>>0>(I=h+A|0)>>>0?b+1|0:b,L=b=b-((I>>>0<4293918720)-1|0)|0,p=(p=b>>>21|0)+y|0,h=p=(b=(2097151&b)<<11|(A=I- -1048576|0)>>>21)>>>0>(m=b+m|0)>>>0?p+1|0:p,k=b=p-((m>>>0<4293918720)-1|0)|0,p=_,_=(2097151&b)<<11|(y=m- -1048576|0)>>>21,b=(b>>21)+M|0,S=_=(b=_>>>0>(C=p+_|0)>>>0?b+1|0:b)-((C>>>0<4293918720)-1|0)|0,F=C-(p=-2097152&(M=C- -1048576|0))|0,J=b-((p>>>0>C>>>0)+_|0)|0,p=me(q,z,136657,0),h=v+h|0,h=p>>>0>(b=p+m|0)>>>0?h+1|0:h,R=b-(p=-2097152&y)|0,H=h-((p>>>0>b>>>0)+k|0)|0,C=x-(p=-2097152&g)|0,T=w-((p>>>0>x>>>0)+T|0)|0,w=me(N,0,136657,0),b=(p=u[e+40|0])>>>24|0,y=p<<8|(g=u[e+36|0]|u[e+37|0]<<8|u[e+38|0]<<16|u[e+39|0]<<24)>>>24,h=(p=u[e+41|0])>>>16|0,b=(h|=b)>>>3|0,h=(7&h)<<29|(p=y|p<<16)>>>3,p=b+v|0,p=h>>>0>(y=h+w|0)>>>0?p+1|0:p,b=me(r,0,-683901,-1),p=v+p|0,p=b>>>0>(h=b+y|0)>>>0?p+1|0:p,m=h,b=me(N,0,-997805,-1),h=v,h=b>>>0>(y=b+(g>>>6&2097151)|0)>>>0?h+1|0:h,g=(b=y)+(y=me(r,0,136657,0))|0,b=v+h|0,h=me(a,V,-683901,-1),b=v+(y>>>0>g>>>0?b+1|0:b)|0,_=b=h>>>0>(D=h+g|0)>>>0?b+1|0:b,G=h=b-((D>>>0<4293918720)-1|0)|0,p=p+(b=h>>21)|0,g=p=(h=(2097151&h)<<11|(x=D- -1048576|0)>>>21)>>>0>(k=h+m|0)>>>0?p+1|0:p,j=p=p-((k>>>0<4293918720)-1|0)|0,b=(b=p>>21)+T|0,Q=b=(p=(h=(2097151&p)<<11|(m=k- -1048576|0)>>>21)+C|0)>>>0>>0?b+1|0:b,U=p,b=me(p,b,-683901,-1),p=v+H|0,B=h=b+R|0,y=b>>>0>h>>>0?p+1|0:p,H=I-(p=-2097152&A)|0,T=E-((4095&L)+(p>>>0>I>>>0)|0)|0,I=me(t,0,666643,0),p=(b=u[e+19|0])>>>24|0,A=b<<8|(E=u[e+15|0]|u[e+16|0]<<8|u[e+17|0]<<16|u[e+18|0]<<24)>>>24,h=p,b=(7&(h|=b=(p=u[e+20|0])>>>16|0))<<29|(b=(p<<=16)|A)>>>3,h=v+(h>>>3|0)|0,h=b>>>0>(A=b+I|0)>>>0?h+1|0:h,p=me(n,K,470296,0),b=v+h|0,p=p>>>0>(A=p+A|0)>>>0?b+1|0:b,h=me(n,K,666643,0),b=v,I=b=h>>>0>(R=h+(E>>>6&2097151)|0)>>>0?b+1|0:b,W=h=b-((R>>>0<4293918720)-1|0)|0,p=p+(b=h>>>21|0)|0,E=p=(h=(2097151&h)<<11|(w=R- -1048576|0)>>>21)>>>0>(C=h+A|0)>>>0?p+1|0:p,Y=p=p-((C>>>0<4293918720)-1|0)|0,b=(b=p>>>21|0)+T|0,b=(p=(2097151&p)<<11|(A=C- -1048576|0)>>>21)>>>0>(h=p+H|0)>>>0?b+1|0:b,T=(p=h)+(h=me(q,z,-997805,-1))|0,p=v+b|0,p=h>>>0>T>>>0?p+1|0:p,L=b=k-(h=-2097152&m)|0,i=m=g-((h>>>0>k>>>0)+j|0)|0,h=me(U,Q,136657,0),p=v+p|0,p=h>>>0>(g=h+T|0)>>>0?p+1|0:p,h=me(b,m,-683901,-1),b=v+p|0,g=b=h>>>0>(T=h+g|0)>>>0?b+1|0:b,j=p=b-((T>>>0<4293918720)-1|0)|0,b=(2097151&p)<<11|(m=T- -1048576|0)>>>21,p=(p>>21)+y|0,B=b=(p=b>>>0>(k=b+B|0)>>>0?p+1|0:p)-((k>>>0<4293918720)-1|0)|0,H=(2097151&b)<<11|(y=k- -1048576|0)>>>21,b=(b>>21)+J|0,c=F=H+F|0,H=F>>>0>>0?b+1|0:b,f=k-(b=-2097152&y)|0,d=p-((b>>>0>k>>>0)+B|0)|0,F=T-(p=-2097152&m)|0,J=g-((p>>>0>T>>>0)+j|0)|0,h=(p=me(q,z,654183,0))+(C-(b=-2097152&A)|0)|0,b=v+(E-((b>>>0>C>>>0)+Y|0)|0)|0,b=p>>>0>h>>>0?b+1|0:b,p=me(U,Q,-997805,-1),b=v+b|0,b=p>>>0>(h=p+h|0)>>>0?b+1|0:b,y=(p=h)+(h=me(L,i,136657,0))|0,p=v+b|0,B=y,g=h>>>0>y>>>0?p+1|0:p,C=D-(p=-2097152&x)|0,k=_-((p>>>0>D>>>0)+G|0)|0,E=me(Z,0,-683901,-1),p=(b=u[e+35|0])>>>24|0,y=b<<8|(A=u[e+31|0]|u[e+32|0]<<8|u[e+33|0]<<16|u[e+34|0]<<24)>>>24,h=p,b=(p=u[e+36|0])>>>16|0,b|=h,h=v,h=(p=2097151&((1&b)<<31|(p=p<<16|y)>>>1))>>>0>(b=p+E|0)>>>0?h+1|0:h,y=(p=me(N,0,654183,0))+b|0,b=v+h|0,b=p>>>0>y>>>0?b+1|0:b,h=me(r,0,-997805,-1),p=v+b|0,p=h>>>0>(y=h+y|0)>>>0?p+1|0:p,b=me(a,V,136657,0),p=v+p|0,m=h=b+y|0,y=b>>>0>h>>>0?p+1|0:p,p=me(t,0,-683901,-1),b=v,b=p>>>0>(h=p+(A>>>4&2097151)|0)>>>0?b+1|0:b,A=(p=me(Z,0,136657,0))+h|0,h=v+b|0,h=p>>>0>A>>>0?h+1|0:h,p=me(N,0,470296,0),b=v+h|0,b=p>>>0>(A=p+A|0)>>>0?b+1|0:b,A=(h=me(r,0,654183,0))+A|0,p=v+b|0,b=me(a,V,-997805,-1),p=v+(h>>>0>A>>>0?p+1|0:p)|0,E=p=b>>>0>(_=b+A|0)>>>0?p+1|0:p,l=b=p-((_>>>0<4293918720)-1|0)|0,h=(p=b>>21)+y|0,T=b=(h=(b=(2097151&b)<<11|(A=_- -1048576|0)>>>21)>>>0>(x=b+m|0)>>>0?h+1|0:h)-((x>>>0<4293918720)-1|0)|0,p=(p=b>>21)+k|0,j=p=(b=(y=(2097151&b)<<11|(m=x- -1048576|0)>>>21)+C|0)>>>0>>0?p+1|0:p,y=B,B=b,p=me(b,p,-683901,-1),b=v+g|0,k=y=y+p|0,y=p>>>0>y>>>0?b+1|0:b,g=(p=me(q,z,470296,0))+(R-(b=-2097152&w)|0)|0,b=v+(I-((2047&W)+(b>>>0>R>>>0)|0)|0)|0,b=p>>>0>g>>>0?b+1|0:b,w=(p=g)+(g=me(U,Q,654183,0))|0,p=v+b|0,p=g>>>0>w>>>0?p+1|0:p,g=me(L,i,-997805,-1),b=v+p|0,b=g>>>0>(w=g+w|0)>>>0?b+1|0:b,D=m=x-(p=-2097152&m)|0,o=g=h-((p>>>0>x>>>0)+T|0)|0,h=me(B,j,136657,0),p=v+b|0,p=h>>>0>(w=h+w|0)>>>0?p+1|0:p,h=me(m,g,-683901,-1),b=v+p|0,g=b=h>>>0>(I=h+w|0)>>>0?b+1|0:b,T=p=b-((I>>>0<4293918720)-1|0)|0,b=(2097151&p)<<11|(m=I- -1048576|0)>>>21,p=(p>>21)+y|0,k=b=(p=b>>>0>(w=b+k|0)>>>0?p+1|0:p)-((w>>>0<4293918720)-1|0)|0,x=(2097151&b)<<11|(y=w- -1048576|0)>>>21,b=(b>>21)+J|0,G=C=x+F|0,C=x>>>0>C>>>0?b+1|0:b,W=w-(b=-2097152&y)|0,Y=p-((b>>>0>w>>>0)+k|0)|0,F=I-(p=-2097152&m)|0,J=g-((p>>>0>I>>>0)+T|0)|0,g=me(q,z,666643,0),p=(b=u[e+14|0])>>>24|0,y=b<<8|(T=u[e+10|0]|u[e+11|0]<<8|u[e+12|0]<<16|u[e+13|0]<<24)>>>24,h=p,b=(p=u[e+15|0])>>>16|0,b|=h,h=v,h=(p=2097151&((1&b)<<31|(p=p<<16|y)>>>1))>>>0>(b=p+g|0)>>>0?h+1|0:h,y=(p=b)+(b=me(U,Q,470296,0))|0,p=v+h|0,p=b>>>0>y>>>0?p+1|0:p,b=me(L,i,654183,0),p=v+p|0,p=b>>>0>(h=b+y|0)>>>0?p+1|0:p,y=(b=h)+(h=me(B,j,-997805,-1))|0,b=v+p|0,b=h>>>0>y>>>0?b+1|0:b,p=me(D,o,136657,0),b=v+b|0,I=h=p+y|0,y=p>>>0>h>>>0?b+1|0:b,A=_-(p=-2097152&A)|0,g=E-((p>>>0>_>>>0)+l|0)|0,h=me(t,0,136657,0),p=v,p=(b=(u[e+28|0]|u[e+29|0]<<8|u[e+30|0]<<16|u[e+31|0]<<24)>>>7&2097151)>>>0>(h=b+h|0)>>>0?p+1|0:p,m=(b=h)+(h=me(Z,0,-997805,-1))|0,b=v+p|0,b=h>>>0>m>>>0?b+1|0:b,p=me(n,K,-683901,-1),b=v+b|0,b=p>>>0>(h=p+m|0)>>>0?b+1|0:b,m=(p=me(N,0,666643,0))+h|0,h=v+b|0,h=p>>>0>m>>>0?h+1|0:h,b=me(r,0,470296,0),p=v+h|0,p=b>>>0>(m=b+m|0)>>>0?p+1|0:p,b=me(a,V,654183,0),p=v+p|0,b=(P>>21)+(b>>>0>(h=b+m|0)>>>0?p+1|0:p)|0,x=b=(m=(2097151&P)<<11|O>>>21)>>>0>(O=m+h|0)>>>0?b+1|0:b,k=p=b-((O>>>0<4293918720)-1|0)|0,m=(2097151&p)<<11|(w=O- -1048576|0)>>>21,p=(p>>21)+g|0,R=p=(b=m+A|0)>>>0>>0?p+1|0:p,P=b,b=me(b,p,-683901,-1),p=v+y|0,m=h=b+I|0,y=b>>>0>h>>>0?p+1|0:p,p=me(U,Q,666643,0),b=v,b=p>>>0>(h=p+(T>>>4&2097151)|0)>>>0?b+1|0:b,p=me(L,i,470296,0),b=v+b|0,b=p>>>0>(h=p+h|0)>>>0?b+1|0:b,g=(p=me(B,j,654183,0))+h|0,h=v+b|0,h=p>>>0>g>>>0?h+1|0:h,b=me(D,o,-997805,-1),p=v+h|0,p=b>>>0>(g=b+g|0)>>>0?p+1|0:p,b=me(P,R,136657,0),p=v+p|0,E=p=b>>>0>(_=b+g|0)>>>0?p+1|0:p,z=b=p-((_>>>0<4293918720)-1|0)|0,p=m,m=(2097151&b)<<11|(A=_- -1048576|0)>>>21,b=(b>>21)+y|0,U=y=(b=(h=p+m|0)>>>0>>0?b+1|0:b)-((h>>>0<4293918720)-1|0)|0,p=(p=y>>21)+J|0,q=m=(y=(2097151&y)<<11|(g=h- -1048576|0)>>>21)+F|0,I=y>>>0>m>>>0?p+1|0:p,m=h,h=b,y=(O-(b=-2097152&w)|0)+(w=(2097151&S)<<11|M>>>21)|0,b=(x-((b>>>0>O>>>0)+k|0)|0)+(S>>21)|0,T=b=y>>>0>>0?b+1|0:b,Z=b=b-((y>>>0<4293918720)-1|0)|0,M=p=b>>21,p=me(N=(2097151&b)<<11|(k=y- -1048576|0)>>>21,p,-683901,-1),h=v+h|0,h=p>>>0>(b=p+m|0)>>>0?h+1|0:h,K=b-(p=-2097152&g)|0,V=h-((p>>>0>b>>>0)+U|0)|0,p=me(N,M,136657,0),b=E+v|0,Q=(h=p+_|0)-(p=-2097152&A)|0,U=(b=h>>>0<_>>>0?b+1|0:b)-((p>>>0>h>>>0)+z|0)|0,b=me(L,i,666643,0),h=v,h=(p=(u[e+7|0]|u[e+8|0]<<8|u[e+9|0]<<16|u[e+10|0]<<24)>>>7&2097151)>>>0>(b=p+b|0)>>>0?h+1|0:h,m=(p=me(B,j,470296,0))+b|0,b=v+h|0,b=p>>>0>m>>>0?b+1|0:b,p=me(D,o,654183,0),b=v+b|0,b=p>>>0>(h=p+m|0)>>>0?b+1|0:b,m=(p=h)+(h=me(P,R,-997805,-1))|0,p=v+b|0,w=m,m=h>>>0>m>>>0?p+1|0:p,E=me(B,j,666643,0),p=(b=u[e+6|0])>>>24|0,g=b<<8|(O=u[e+2|0]|u[e+3|0]<<8|u[e+4|0]<<16|u[e+5|0]<<24)>>>24,h=p,b=(p=u[e+7|0])>>>16|0,b=2097151&((3&(b|=h))<<30|(p=p<<16|g)>>>2),p=v,p=b>>>0>(h=b+E|0)>>>0?p+1|0:p,g=(b=me(D,o,470296,0))+h|0,h=v+p|0,h=b>>>0>g>>>0?h+1|0:h,b=me(P,R,654183,0),p=v+h|0,E=p=b>>>0>(x=b+g|0)>>>0?p+1|0:p,S=p=p-((x>>>0<4293918720)-1|0)|0,b=(h=p>>21)+m|0,_=p=(b=(p=(2097151&p)<<11|(A=x- -1048576|0)>>>21)>>>0>(g=p+w|0)>>>0?b+1|0:b)-((g>>>0<4293918720)-1|0)|0,w=(2097151&p)<<11|(m=g- -1048576|0)>>>21,p=(p>>21)+U|0,U=B=w+Q|0,w=w>>>0>B>>>0?p+1|0:p,p=me(N,M,-997805,-1),b=v+b|0,b=p>>>0>(h=p+g|0)>>>0?b+1|0:b,L=h-(p=-2097152&m)|0,j=b-((p>>>0>h>>>0)+_|0)|0,b=me(N,M,654183,0),p=E+v|0,B=(h=b+x|0)-(b=-2097152&A)|0,S=(p=h>>>0>>0?p+1|0:p)-((b>>>0>h>>>0)+S|0)|0,p=me(D,o,666643,0),b=v,b=p>>>0>(h=p+(O>>>5&2097151)|0)>>>0?b+1|0:b,p=me(P,R,470296,0),b=v+b|0,g=h=p+h|0,h=p>>>0>h>>>0?b+1|0:b,m=me(P,R,666643,0),b=(p=u[e+2|0])<<16&2031616|u[0|e]|u[e+1|0]<<8,p=v,E=p=b>>>0>(_=m+b|0)>>>0?p+1|0:p,R=p=p-((_>>>0<4293918720)-1|0)|0,m=(2097151&p)<<11|(A=_- -1048576|0)>>>21,p=(p>>21)+h|0,h=p=m>>>0>(x=m+g|0)>>>0?p+1|0:p,O=p=p-((x>>>0<4293918720)-1|0)|0,m=(2097151&p)<<11|(g=x- -1048576|0)>>>21,p=(p>>21)+S|0,m=m>>>0>(S=P=m+B|0)>>>0?p+1|0:p,p=me(N,M,470296,0),h=h+v|0,h=(b=p+x|0)>>>0>>0?h+1|0:h,x=b-(p=-2097152&g)|0,g=h-((p>>>0>b>>>0)+O|0)|0,b=me(N,M,666643,0),p=v+(E-(((h=-2097152&A)>>>0>_>>>0)+R|0)|0)|0,b=(h=(p=b>>>0>(P=b+(_-h|0)|0)>>>0?p+1|0:p)>>21)+g|0,p=(p=(b=(p=(2097151&p)<<11|P>>>21)>>>0>(O=p+x|0)>>>0?b+1|0:b)>>21)+m|0,b=(b=(p=(b=(2097151&b)<<11|O>>>21)>>>0>(S=b+S|0)>>>0?p+1|0:p)>>21)+j|0,h=(p=(b=(p=(2097151&p)<<11|S>>>21)>>>0>(m=p+L|0)>>>0?b+1|0:b)>>21)+w|0,p=(b=(h=(b=(2097151&b)<<11|m>>>21)>>>0>(M=b+U|0)>>>0?h+1|0:h)>>21)+V|0,b=(h=(p=(h=(2097151&h)<<11|M>>>21)>>>0>(_=h+K|0)>>>0?p+1|0:p)>>21)+I|0,p=(p=(b=(p=(2097151&p)<<11|_>>>21)>>>0>(x=p+q|0)>>>0?b+1|0:b)>>21)+Y|0,b=(b=(p=(b=(2097151&b)<<11|x>>>21)>>>0>(I=b+W|0)>>>0?p+1|0:p)>>21)+C|0,h=(p=(b=(p=(2097151&p)<<11|I>>>21)>>>0>(w=p+G|0)>>>0?b+1|0:b)>>21)+d|0,p=(b=(h=(b=(2097151&b)<<11|w>>>21)>>>0>(E=b+f|0)>>>0?h+1|0:h)>>21)+H|0,g=(k=y-(b=-2097152&k)|0)+((2097151&(p=(h=(2097151&h)<<11|E>>>21)>>>0>(A=h+c|0)>>>0?p+1|0:p))<<11|A>>>21)|0,p=(T-((b>>>0>y>>>0)+Z|0)|0)+(p>>21)|0,k=b=(p=g>>>0>>0?p+1|0:p)>>21,P=(p=me(C=(2097151&p)<<11|g>>>21,b,666643,0))+(b=2097151&P)|0,p=v,y=p=b>>>0>P>>>0?p+1|0:p,s[0|e]=P,s[e+1|0]=(255&p)<<24|P>>>8,p=2097151&O,b=me(C,k,470296,0)+p|0,h=v,p=(y>>21)+(p>>>0>b>>>0?h+1|0:h)|0,p=(T=(2097151&y)<<11|P>>>21)>>>0>(O=T+b|0)>>>0?p+1|0:p,s[e+4|0]=(2047&p)<<21|O>>>11,b=p,h=O,s[e+3|0]=(7&p)<<29|h>>>3,s[e+2|0]=31&((65535&y)<<16|P>>>16)|h<<5,y=2097151&S,S=me(C,k,654183,0)+y|0,p=v,O=(2097151&b)<<11|h>>>21,b=(b>>21)+(y=y>>>0>S>>>0?p+1|0:p)|0,p=b=(S=O+S|0)>>>0>>0?b+1|0:b,s[e+6|0]=(63&p)<<26|S>>>6,y=S,S=0,s[e+5|0]=S<<13|(1572864&h)>>>19|y<<2,h=2097151&m,m=me(C,k,-997805,-1)+h|0,b=v,b=h>>>0>m>>>0?b+1|0:b,S=(2097151&(h=p))<<11|y>>>21,h=(p>>=21)+b|0,h=(m=S+m|0)>>>0>>0?h+1|0:h,s[e+9|0]=(511&h)<<23|m>>>9,s[e+8|0]=(1&h)<<31|m>>>1,b=0,s[e+7|0]=b<<18|(2080768&y)>>>14|m<<7,b=2097151&M,y=me(C,k,136657,0)+b|0,p=v,p=b>>>0>y>>>0?p+1|0:p,M=(2097151&(b=h))<<11|m>>>21,b=p+(h=b>>21)|0,b=(y=M+y|0)>>>0>>0?b+1|0:b,s[e+12|0]=(4095&b)<<20|y>>>12,h=y,s[e+11|0]=(15&b)<<28|h>>>4,y=0,s[e+10|0]=y<<15|(1966080&m)>>>17|h<<4,y=2097151&_,m=me(C,k,-683901,-1)+y|0,p=v,p=y>>>0>m>>>0?p+1|0:p,y=b,b=p+(b>>=21)|0,b=(y=(B=m)+(m=(2097151&y)<<11|h>>>21)|0)>>>0>>0?b+1|0:b,s[e+14|0]=(127&b)<<25|y>>>7,m=0,s[e+13|0]=m<<12|(1048576&h)>>>20|y<<1,p=b>>21,h=(b=(2097151&b)<<11|y>>>21)>>>0>(m=b+(2097151&x)|0)>>>0?p+1|0:p,s[e+17|0]=(1023&h)<<22|m>>>10,s[e+16|0]=(3&h)<<30|m>>>2,b=0,s[e+15|0]=b<<17|(2064384&y)>>>15|m<<6,p=h>>21,p=(b=(2097151&h)<<11|m>>>21)>>>0>(h=b+(2097151&I)|0)>>>0?p+1|0:p,s[e+20|0]=(8191&p)<<19|h>>>13,s[e+19|0]=(31&p)<<27|h>>>5,y=(b=2097151&w)+(w=(2097151&p)<<11|h>>>21)|0,b=p>>21,b=y>>>0>>0?b+1|0:b,w=y,s[e+21|0]=y,I=0,s[e+18|0]=I<<14|(1835008&m)>>>18|h<<3,s[e+22|0]=(255&b)<<24|y>>>8,h=b>>21,h=(y=(m=(2097151&b)<<11|y>>>21)+(2097151&E)|0)>>>0>>0?h+1|0:h,s[e+25|0]=(2047&h)<<21|y>>>11,s[e+24|0]=(7&h)<<29|y>>>3,s[e+23|0]=31&((65535&b)<<16|w>>>16)|y<<5,p=h>>21,p=(b=(2097151&h)<<11|y>>>21)>>>0>(h=b+(2097151&A)|0)>>>0?p+1|0:p,s[e+27|0]=(63&p)<<26|h>>>6,m=0,s[e+26|0]=m<<13|(1572864&y)>>>19|h<<2,b=p>>21,b=(p=(y=(2097151&p)<<11|h>>>21)+(2097151&g)|0)>>>0>>0?b+1|0:b,s[e+31|0]=(131071&b)<<15|p>>>17,s[e+30|0]=(511&b)<<23|p>>>9,s[e+29|0]=(1&b)<<31|p>>>1,y=0,s[e+28|0]=y<<18|(2080768&h)>>>14|p<<7}function _(e,t,n,r,a,i){var o,f=0,l=0,p=0,b=0,h=0,y=0,v=0,g=0,A=0,w=0,_=0,I=0,E=0,T=0,P=0,M=0,B=0,j=0,U=0,Z=0,F=0,H=0,z=0,q=0,Q=0,K=0,V=0,G=0,W=0,Y=0,X=0,$=0,ee=0,te=0,ne=0,re=0,ae=0,ie=0;for(m=o=m-592|0,I=-1,E=e+32|0,_=32,T=1;w=u[2672+(l=_-1|0)|0],p=(l=((b=u[l+E|0])^w)-1>>8&T)&(y=u[E+(_=_-2|0)|0])-(h=u[_+2672|0])>>8|255&(b-w>>>8&T|p),T=l&(h^y)-1>>8,_;);if(255&p&&!(ue(e)|!(((127&(-1^u[a+31|0])|u[a+1|0]&u[a+2|0]&u[a+3|0]&u[a+4|0]&u[a+5|0]&u[a+6|0]&u[a+7|0]&u[a+8|0]&u[a+9|0]&u[a+10|0]&u[a+11|0]&u[a+12|0]&u[a+13|0]&u[a+14|0]&u[a+15|0]&u[a+16|0]&u[a+17|0]&u[a+18|0]&u[a+19|0]&u[a+20|0]&u[a+21|0]&u[a+22|0]&u[a+23|0]&u[a+24|0]&u[a+25|0]&u[a+26|0]&u[a+27|0]&u[a+28|0]&u[a+30|0]&u[a+29|0]^255)-1&236-u[0|a]^-1)>>>8&1)||ue(a)||O(o+128|0,a))){for(se(l=o+384|0),i&&L(l,34768,34,0),L(l,e,32,0),L(l,a,32,0),L(l,t,n,r),C(l,n=o+320|0),x(n),i=o+8|0,r=o+128|0,a=0,t=0,m=f=m-2272|0;b=n+(a>>>3|0)|0,s[(l=f+2016|0)+a|0]=u[0|b]>>>(6&a)&1,s[(p=l)+(l=1|a)|0]=u[0|b]>>>(7&l)&1,256!=(0|(a=a+2|0)););for(;;){t=(n=t)+1|0;e:if(!(!u[0|(p=n+(f+2016|0)|0)]|n>>>0>254)){t:if(a=s[0|(h=(f+2016|0)+t|0)])if((0|(a=(b=a<<1)+(l=s[0|p])|0))<=15)s[0|p]=a,s[0|h]=0;else{if((0|(a=l-b|0))<-15)break e;for(s[0|p]=a,a=t;;){if(!u[0|(l=(f+2016|0)+a|0)]){s[0|l]=1;break t}if(s[0|l]=0,l=a>>>0<255,a=a+1|0,!l)break}}if(!(n>>>0>253)){t:if(l=s[0|(y=(a=n+2|0)+(f+2016|0)|0)])if((0|(l=(h=l<<2)+(b=s[0|p])|0))>=16){if((0|(l=b-h|0))<-15)break e;for(s[0|p]=l;;){if(u[0|(l=(f+2016|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|p]=l,s[0|y]=0;if(!(n>>>0>252)){t:if(l=s[0|(y=(a=n+3|0)+(f+2016|0)|0)])if((0|(l=(h=l<<3)+(b=s[0|p])|0))>=16){if((0|(l=b-h|0))<-15)break e;for(s[0|p]=l;;){if(u[0|(l=(f+2016|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|p]=l,s[0|y]=0;if(!(n>>>0>251)){t:if(l=s[0|(y=(a=n+4|0)+(f+2016|0)|0)])if((0|(l=(h=l<<4)+(b=s[0|p])|0))>=16){if((0|(l=b-h|0))<-15)break e;for(s[0|p]=l;;){if(u[0|(l=(f+2016|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|p]=l,s[0|y]=0;if(!(n>>>0>250)){t:if(l=s[0|(y=(a=n+5|0)+(f+2016|0)|0)])if((0|(l=(h=l<<5)+(b=s[0|p])|0))>=16){if((0|(l=b-h|0))<-15)break e;for(s[0|p]=l;;){if(u[0|(l=(f+2016|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|p]=l,s[0|y]=0;if(!(n>>>0>249)&&(n=s[0|(h=(a=n+6|0)+(f+2016|0)|0)]))if((0|(n=(b=n<<6)+(l=s[0|p])|0))>=16){if((0|(n=l-b|0))<-15)break e;for(s[0|p]=n;;){if(u[0|(n=(f+2016|0)+a|0)]){if(s[0|n]=0,n=a>>>0<255,a=a+1|0,n)continue;break e}break}s[0|n]=1}else s[0|p]=n,s[0|h]=0}}}}}if(256==(0|t))break}for(a=0;n=E+(a>>>3|0)|0,s[(t=f+1760|0)+a|0]=u[0|n]>>>(6&a)&1,s[(l=t)+(t=1|a)|0]=u[0|n]>>>(7&t)&1,256!=(0|(a=a+2|0)););for(t=0;;){t=(n=t)+1|0;e:if(!(!u[0|(p=n+(f+1760|0)|0)]|n>>>0>254)){t:if(a=s[0|(h=(f+1760|0)+t|0)])if((0|(a=(b=a<<1)+(l=s[0|p])|0))<=15)s[0|p]=a,s[0|h]=0;else{if((0|(a=l-b|0))<-15)break e;for(s[0|p]=a,a=t;;){if(!u[0|(l=(f+1760|0)+a|0)]){s[0|l]=1;break t}if(s[0|l]=0,l=a>>>0<255,a=a+1|0,!l)break}}if(!(n>>>0>253)){t:if(l=s[0|(y=(a=n+2|0)+(f+1760|0)|0)])if((0|(l=(h=l<<2)+(b=s[0|p])|0))>=16){if((0|(l=b-h|0))<-15)break e;for(s[0|p]=l;;){if(u[0|(l=(f+1760|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|p]=l,s[0|y]=0;if(!(n>>>0>252)){t:if(l=s[0|(y=(a=n+3|0)+(f+1760|0)|0)])if((0|(l=(h=l<<3)+(b=s[0|p])|0))>=16){if((0|(l=b-h|0))<-15)break e;for(s[0|p]=l;;){if(u[0|(l=(f+1760|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|p]=l,s[0|y]=0;if(!(n>>>0>251)){t:if(l=s[0|(y=(a=n+4|0)+(f+1760|0)|0)])if((0|(l=(h=l<<4)+(b=s[0|p])|0))>=16){if((0|(l=b-h|0))<-15)break e;for(s[0|p]=l;;){if(u[0|(l=(f+1760|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|p]=l,s[0|y]=0;if(!(n>>>0>250)){t:if(l=s[0|(y=(a=n+5|0)+(f+1760|0)|0)])if((0|(l=(h=l<<5)+(b=s[0|p])|0))>=16){if((0|(l=b-h|0))<-15)break e;for(s[0|p]=l;;){if(u[0|(l=(f+1760|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|p]=l,s[0|y]=0;if(!(n>>>0>249)&&(n=s[0|(h=(a=n+6|0)+(f+1760|0)|0)]))if((0|(n=(b=n<<6)+(l=s[0|p])|0))>=16){if((0|(n=l-b|0))<-15)break e;for(s[0|p]=n;;){if(u[0|(n=(f+1760|0)+a|0)]){if(s[0|n]=0,n=a>>>0<255,a=a+1|0,n)continue;break e}break}s[0|n]=1}else s[0|p]=n,s[0|h]=0}}}}}if(256==(0|t))break}for(J(I=f+480|0,r),w=c[r+8>>2],p=c[r+12>>2],y=c[r+16>>2],h=c[r+20>>2],b=c[r+24>>2],l=c[r+28>>2],a=c[r>>2],n=c[r+4>>2],t=c[r+36>>2],c[f+192>>2]=c[r+32>>2],c[f+196>>2]=t,c[f+184>>2]=b,c[f+188>>2]=l,c[f+176>>2]=y,c[f+180>>2]=h,c[f+168>>2]=w,c[f+172>>2]=p,c[f+160>>2]=a,c[f+164>>2]=n,w=c[r+40>>2],p=c[r+44>>2],y=c[r+48>>2],h=c[r+52>>2],b=c[r+56>>2],l=c[r+60>>2],a=c[(t=r- -64|0)>>2],n=c[t+4>>2],t=c[r+76>>2],c[f+232>>2]=c[r+72>>2],c[f+236>>2]=t,c[f+224>>2]=a,c[f+228>>2]=n,c[f+216>>2]=b,c[f+220>>2]=l,c[f+208>>2]=y,c[f+212>>2]=h,c[f+200>>2]=w,c[f+204>>2]=p,w=c[r+80>>2],p=c[r+84>>2],y=c[r+88>>2],h=c[r+92>>2],b=c[r+96>>2],l=c[r+100>>2],a=c[r+104>>2],n=c[r+108>>2],t=c[r+116>>2],c[f+272>>2]=c[r+112>>2],c[f+276>>2]=t,c[f+264>>2]=a,c[f+268>>2]=n,c[f+256>>2]=b,c[f+260>>2]=l,c[f+248>>2]=y,c[f+252>>2]=h,c[f+240>>2]=w,c[f+244>>2]=p,S(r=f+320|0,n=f+160|0),k(f,r,v=f+440|0),k(f+40|0,g=f+360|0,A=f+400|0),k(f+80|0,A,v),k(f+120|0,r,g),N(r,f,I),k(n,r,v),k(M=f+200|0,g,A),k(B=f+240|0,A,v),k(P=f+280|0,r,g),J(t=f+640|0,n),N(r,f,t),k(n,r,v),k(M,g,A),k(B,A,v),k(P,r,g),J(t=f+800|0,n),N(r,f,t),k(n,r,v),k(M,g,A),k(B,A,v),k(P,r,g),J(t=f+960|0,n),N(r,f,t),k(n,r,v),k(M,g,A),k(B,A,v),k(P,r,g),J(t=f+1120|0,n),N(r,f,t),k(n,r,v),k(M,g,A),k(B,A,v),k(P,r,g),J(t=f+1280|0,n),N(r,f,t),k(n,r,v),k(M,g,A),k(B,A,v),k(P,r,g),J(t=f+1440|0,n),N(r,f,t),k(n,r,v),k(M,g,A),k(B,A,v),k(P,r,g),J(f+1600|0,n),c[i+32>>2]=0,c[i+36>>2]=0,c[i+24>>2]=0,c[i+28>>2]=0,c[i+16>>2]=0,c[i+20>>2]=0,c[i+8>>2]=0,c[i+12>>2]=0,c[i>>2]=0,c[i+4>>2]=0,c[i+44>>2]=0,c[i+48>>2]=0,c[(V=i+40|0)>>2]=1,c[i+52>>2]=0,c[i+56>>2]=0,c[i+60>>2]=0,c[i+64>>2]=0,c[i+68>>2]=0,c[i+72>>2]=0,c[i+84>>2]=0,c[i+88>>2]=0,c[i+76>>2]=0,c[i+80>>2]=1,c[i+92>>2]=0,c[i+96>>2]=0,c[i+100>>2]=0,c[i+104>>2]=0,c[i+108>>2]=0,c[i+112>>2]=0,c[i+116>>2]=0,te=i+80|0,t=255;;){e:{t:{if(!(u[(f+2016|0)+t|0]|u[(f+1760|0)+t|0])){if(!(u[(n=t-1|0)+(f+2016|0)|0]|u[n+(f+1760|0)|0]))break t;t=n}if((0|t)<0)break e;for(;S(f+320|0,i),(0|(a=s[(n=t)+(f+2016|0)|0]))>0?(k(t=f+160|0,r=f+320|0,v),k(M,g,A),k(B,A,v),k(P,r,g),N(r,t,(f+480|0)+d((254&a)>>>1|0,160)|0)):(0|a)>=0||(k(t=f+160|0,r=f+320|0,v),k(M,g,A),k(B,A,v),k(P,r,g),R(r,t,(f+480|0)+d((0-a&254)>>>1|0,160)|0)),(0|(Q=s[n+(f+1760|0)|0]))>0?(k(t=f+160|0,r=f+320|0,v),k(M,g,A),k(B,A,v),k(P,r,g),D(r,t,d((254&Q)>>>1|0,120)+1488|0)):(0|Q)>=0||(k(f+160|0,K=f+320|0,v),k(M,g,A),k(B,A,v),k(P,K,g),j=c[f+160>>2],U=c[f+200>>2],Z=c[f+164>>2],F=c[f+204>>2],H=c[f+168>>2],z=c[f+208>>2],q=c[f+172>>2],_=c[f+212>>2],E=c[f+176>>2],T=c[f+216>>2],I=c[f+180>>2],w=c[f+220>>2],p=c[f+184>>2],y=c[f+224>>2],h=c[f+188>>2],b=c[f+228>>2],l=c[f+192>>2],a=c[f+232>>2],r=c[f+236>>2],t=c[f+196>>2],c[f+396>>2]=r-t,c[f+392>>2]=a-l,c[f+388>>2]=b-h,c[f+384>>2]=y-p,c[f+380>>2]=w-I,c[f+376>>2]=T-E,c[f+372>>2]=_-q,c[f+368>>2]=z-H,c[f+364>>2]=F-Z,c[f+360>>2]=U-j,c[f+356>>2]=t+r,c[f+352>>2]=a+l,c[f+348>>2]=b+h,c[f+344>>2]=p+y,c[f+340>>2]=w+I,c[f+336>>2]=E+T,c[f+332>>2]=_+q,c[f+328>>2]=H+z,c[f+324>>2]=Z+F,c[f+320>>2]=j+U,k(A,K,40+(t=d((0-Q&254)>>>1|0,120)+1488|0)|0),k(g,g,t),k(v,t+80|0,P),ne=c[f+276>>2],re=c[f+272>>2],Q=c[f+268>>2],K=c[f+264>>2],p=c[f+260>>2],y=c[f+256>>2],h=c[f+252>>2],b=c[f+248>>2],l=c[f+244>>2],a=c[f+240>>2],G=c[f+360>>2],W=c[f+400>>2],Y=c[f+364>>2],X=c[f+404>>2],$=c[f+368>>2],ee=c[f+408>>2],j=c[f+372>>2],U=c[f+412>>2],Z=c[f+376>>2],F=c[f+416>>2],H=c[f+380>>2],z=c[f+420>>2],q=c[f+384>>2],_=c[f+424>>2],E=c[f+388>>2],T=c[f+428>>2],I=c[f+392>>2],w=c[f+432>>2],r=c[f+396>>2],t=c[f+436>>2],c[f+396>>2]=r+t,c[f+392>>2]=w+I,c[f+388>>2]=E+T,c[f+384>>2]=_+q,c[f+380>>2]=H+z,c[f+376>>2]=Z+F,c[f+372>>2]=j+U,c[f+368>>2]=$+ee,c[f+364>>2]=Y+X,c[f+360>>2]=G+W,c[f+356>>2]=t-r,c[f+352>>2]=w-I,c[f+348>>2]=T-E,c[f+344>>2]=_-q,c[f+340>>2]=z-H,c[f+336>>2]=F-Z,c[f+332>>2]=U-j,c[f+328>>2]=ee-$,c[f+324>>2]=X-Y,c[f+320>>2]=W-G,j=a<<1,U=c[f+440>>2],c[f+400>>2]=j-U,Z=l<<1,F=c[f+444>>2],c[f+404>>2]=Z-F,H=b<<1,z=c[f+448>>2],c[f+408>>2]=H-z,q=h<<1,_=c[f+452>>2],c[f+412>>2]=q-_,E=y<<1,T=c[f+456>>2],c[f+416>>2]=E-T,I=p<<1,w=c[f+460>>2],c[f+420>>2]=I-w,p=K<<1,y=c[f+464>>2],c[f+424>>2]=p-y,h=Q<<1,b=c[f+468>>2],c[f+428>>2]=h-b,l=re<<1,a=c[f+472>>2],c[f+432>>2]=l-a,r=ne<<1,t=c[f+476>>2],c[f+436>>2]=r-t,c[f+440>>2]=j+U,c[f+444>>2]=Z+F,c[f+448>>2]=H+z,c[f+452>>2]=_+q,c[f+456>>2]=E+T,c[f+460>>2]=w+I,c[f+464>>2]=p+y,c[f+468>>2]=b+h,c[f+472>>2]=a+l,c[f+476>>2]=t+r),k(i,f+320|0,v),k(V,g,A),k(te,A,v),t=n-1|0,(0|n)>0;);break e}if(t=t-2|0,n)continue}break}m=f+2272|0,xe(t=o+288|0,i),ae=-1,ie=he(t,e),I=((0|e)==(0|t)?ae:ie)|ce(e,t,32)}return m=o+592|0,I}function k(e,t,n){var r,a,i,o,s,u,f,l,p,b,h,y,m,g,A,w,x,_,k,S,I,E,C,T,O,P,M,B,R,N,D,j,U,L,Z,F,H,z,q,Q,K,V,J,G,W,Y,X,$,ee,te,ne,re,ae,ie,oe=0,se=0,ce=0,ue=0,fe=0,de=0,le=0,pe=0,be=0,he=0,ye=0,ve=0,ge=0,Ae=0,we=0,xe=0,_e=0,ke=0,Se=0,Ie=0,Ee=0,Ce=0,Te=0,Oe=0;oe=me(r=c[n+4>>2],b=r>>31,_e=(w=c[t+20>>2])<<1,D=_e>>31),ce=v,se=(ge=me(we=c[n>>2],i=we>>31,a=c[t+24>>2],o=a>>31))+oe|0,oe=v+ce|0,oe=se>>>0>>0?oe+1|0:oe,be=me(s=c[n+8>>2],m=s>>31,ge=c[t+16>>2],u=ge>>31),ce=v+oe|0,ce=(se=be+se|0)>>>0>>0?ce+1|0:ce,oe=(be=me(h=c[n+12>>2],x=h>>31,T=(_=c[t+12>>2])<<1,j=T>>31))+se|0,se=v+ce|0,se=oe>>>0>>0?se+1|0:se,ce=(Ae=me(g=c[n+16>>2],O=g>>31,be=c[t+8>>2],f=be>>31))+oe|0,oe=v+se|0,oe=ce>>>0>>0?oe+1|0:oe,se=ce,ce=me(k=c[n+20>>2],U=k>>31,P=(S=c[t+4>>2])<<1,L=P>>31),oe=v+oe|0,oe=(se=se+ce|0)>>>0>>0?oe+1|0:oe,Y=pe=c[n+24>>2],ce=(he=me(pe,G=pe>>31,Ae=c[t>>2],l=Ae>>31))+se|0,se=v+oe|0,se=ce>>>0>>0?se+1|0:se,Z=c[n+28>>2],oe=(he=me(ve=d(Z,19),I=ve>>31,M=(E=c[t+36>>2])<<1,F=M>>31))+ce|0,ce=v+se|0,ce=oe>>>0>>0?ce+1|0:ce,$=c[n+32>>2],se=(le=me(ue=d($,19),A=ue>>31,he=c[t+32>>2],p=he>>31))+oe|0,oe=v+ce|0,oe=se>>>0>>0?oe+1|0:oe,X=c[n+36>>2],n=me(le=d(X,19),y=le>>31,B=(C=c[t+28>>2])<<1,H=B>>31),oe=v+oe|0,fe=t=n+se|0,n=t>>>0>>0?oe+1|0:oe,t=me(ge,u,r,b),oe=v,se=me(we,i,w,z=w>>31),ce=v+oe|0,ce=(t=se+t|0)>>>0>>0?ce+1|0:ce,oe=me(s,m,_,q=_>>31),se=v+ce|0,se=(t=oe+t|0)>>>0>>0?se+1|0:se,ce=me(be,f,h,x),oe=v+se|0,oe=(t=ce+t|0)>>>0>>0?oe+1|0:oe,se=me(g,O,S,Q=S>>31),oe=v+oe|0,oe=(t=se+t|0)>>>0>>0?oe+1|0:oe,se=me(Ae,l,k,U),oe=v+oe|0,oe=(t=se+t|0)>>>0>>0?oe+1|0:oe,se=me(pe=d(pe,19),R=pe>>31,E,K=E>>31),ce=v+oe|0,ce=(t=se+t|0)>>>0>>0?ce+1|0:ce,oe=me(he,p,ve,I),se=v+ce|0,se=(t=oe+t|0)>>>0>>0?se+1|0:se,ce=me(ue,A,C,V=C>>31),oe=v+se|0,oe=(t=ce+t|0)>>>0>>0?oe+1|0:oe,se=me(le,y,a,o),oe=v+oe|0,Ce=t=se+t|0,Se=t>>>0>>0?oe+1|0:oe,t=me(r,b,T,j),oe=v,se=me(we,i,ge,u),oe=v+oe|0,oe=(t=se+t|0)>>>0>>0?oe+1|0:oe,se=me(be,f,s,m),ce=v+oe|0,ce=(t=se+t|0)>>>0>>0?ce+1|0:ce,oe=me(h,x,P,L),se=v+ce|0,se=(t=oe+t|0)>>>0>>0?se+1|0:se,ce=me(Ae,l,g,O),oe=v+se|0,oe=(t=ce+t|0)>>>0>>0?oe+1|0:oe,se=me(N=d(k,19),J=N>>31,M,F),oe=v+oe|0,oe=(t=se+t|0)>>>0>>0?oe+1|0:oe,se=me(he,p,pe,R),oe=v+oe|0,oe=(t=se+t|0)>>>0>>0?oe+1|0:oe,se=me(ve,I,B,H),ce=v+oe|0,ce=(t=se+t|0)>>>0>>0?ce+1|0:ce,oe=me(ue,A,a,o),se=v+ce|0,se=(t=oe+t|0)>>>0>>0?se+1|0:se,ce=me(le,y,_e,D),oe=v+se|0,ee=t=ce+t|0,te=oe=t>>>0>>0?oe+1|0:oe,ne=t=t+33554432|0,re=oe=t>>>0<33554432?oe+1|0:oe,ce=(67108863&oe)<<6|t>>>26,oe=(oe>>26)+Se|0,Ce=t=ce+Ce|0,oe=t>>>0>>0?oe+1|0:oe,ae=t=t+16777216|0,oe=n+(se=(ce=t>>>0<16777216?oe+1|0:oe)>>25)|0,oe=(t=(ce=(33554431&ce)<<7|t>>>25)+fe|0)>>>0>>0?oe+1|0:oe,ke=n=(se=t)+33554432|0,t=oe=n>>>0<33554432?oe+1|0:oe,c[e+24>>2]=se-(-67108864&n),n=me(r,b,P,L),oe=v,se=me(we,i,be,f),ce=v+oe|0,ce=(n=se+n|0)>>>0>>0?ce+1|0:ce,se=(oe=n)+(n=me(Ae,l,s,m))|0,oe=v+ce|0,oe=n>>>0>se>>>0?oe+1|0:oe,ce=me(n=d(h,19),Ie=n>>31,M,F),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,ce=(fe=me(he,p,Se=d(g,19),W=Se>>31))+se|0,se=v+oe|0,se=ce>>>0>>0?se+1|0:se,fe=me(B,H,N,J),oe=v+se|0,oe=(ce=fe+ce|0)>>>0>>0?oe+1|0:oe,se=(fe=me(a,o,pe,R))+ce|0,ce=v+oe|0,ce=se>>>0>>0?ce+1|0:ce,fe=me(ve,I,_e,D),oe=v+ce|0,oe=(se=fe+se|0)>>>0>>0?oe+1|0:oe,ce=me(ue,A,ge,u),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,ce=(fe=me(le,y,T,j))+se|0,se=v+oe|0,ye=ce,Te=ce>>>0>>0?se+1|0:se,oe=me(Ae,l,r,b),se=v,ce=(fe=me(we,i,S,Q))+oe|0,oe=v+se|0,oe=ce>>>0>>0?oe+1|0:oe,fe=se=d(s,19),se=(de=me(se,Ee=se>>31,E,K))+ce|0,ce=v+oe|0,ce=se>>>0>>0?ce+1|0:ce,de=me(he,p,n,Ie),oe=v+ce|0,oe=(se=de+se|0)>>>0>>0?oe+1|0:oe,ce=me(Se,W,C,V),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,ce=(de=me(a,o,N,J))+se|0,se=v+oe|0,se=ce>>>0>>0?se+1|0:se,de=me(pe,R,w,z),oe=v+se|0,oe=(ce=de+ce|0)>>>0>>0?oe+1|0:oe,se=(de=me(ge,u,ve,I))+ce|0,ce=v+oe|0,ce=se>>>0>>0?ce+1|0:ce,de=me(ue,A,_,q),oe=v+ce|0,oe=(se=de+se|0)>>>0>>0?oe+1|0:oe,ce=me(le,y,be,f),oe=v+oe|0,Oe=se=ce+se|0,de=se>>>0>>0?oe+1|0:oe,oe=me(oe=d(r,19),oe>>31,M,F),se=v,ce=me(we,i,Ae,l),se=v+se|0,se=(oe=ce+oe|0)>>>0>>0?se+1|0:se,ce=(fe=me(he,p,fe,Ee))+oe|0,oe=v+se|0,n=(se=me(n,Ie,B,H))+ce|0,ce=v+(ce>>>0>>0?oe+1|0:oe)|0,ce=n>>>0>>0?ce+1|0:ce,se=me(a,o,Se,W),oe=v+ce|0,oe=(n=se+n|0)>>>0>>0?oe+1|0:oe,se=me(_e,D,N,J),oe=v+oe|0,oe=(n=se+n|0)>>>0>>0?oe+1|0:oe,ce=me(ge,u,pe,R),se=v+oe|0,se=(n=ce+n|0)>>>0>>0?se+1|0:se,ce=me(ve,I,T,j),oe=v+se|0,oe=(n=ce+n|0)>>>0>>0?oe+1|0:oe,se=me(ue,A,be,f),ce=v+oe|0,ce=(n=se+n|0)>>>0>>0?ce+1|0:ce,se=me(le,y,P,L),oe=v+ce|0,fe=n=se+n|0,Ie=oe=n>>>0>>0?oe+1|0:oe,Ee=n=n+33554432|0,ie=oe=n>>>0<33554432?oe+1|0:oe,se=(ce=oe>>26)+de|0,de=n=(oe=(67108863&oe)<<6|n>>>26)+Oe|0,oe=se=n>>>0>>0?se+1|0:se,Oe=n=n+16777216|0,se=(33554431&(oe=n>>>0<16777216?oe+1|0:oe))<<7|n>>>25,oe=(oe>>25)+Te|0,oe=(n=se+ye|0)>>>0>>0?oe+1|0:oe,Te=se=(ce=n)+33554432|0,n=oe=se>>>0<33554432?oe+1|0:oe,c[e+8>>2]=ce-(-67108864&se),oe=me(a,o,r,b),ce=v,se=(ye=me(we,i,C,V))+oe|0,oe=v+ce|0,oe=se>>>0>>0?oe+1|0:oe,ce=me(s,m,w,z),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,ce=me(ge,u,h,x),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,ye=me(g,O,_,q),ce=v+oe|0,ce=(se=ye+se|0)>>>0>>0?ce+1|0:ce,oe=(ye=me(be,f,k,U))+se|0,se=v+ce|0,se=oe>>>0>>0?se+1|0:se,ce=(ye=me(S,Q,Y,G))+oe|0,oe=v+se|0,oe=ce>>>0>>0?oe+1|0:oe,se=ce,ce=me(Ae,l,Z,ye=Z>>31),oe=v+oe|0,oe=(se=se+ce|0)>>>0>>0?oe+1|0:oe,ce=me(ue,A,E,K),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,xe=me(le,y,he,p),ce=v+oe|0,oe=t>>26,t=(ke=(67108863&t)<<6|ke>>>26)+(se=xe+se|0)|0,se=oe+(se>>>0>>0?ce+1|0:ce)|0,oe=(ce=t)>>>0>>0?se+1|0:se,ke=se=ce+16777216|0,t=oe=se>>>0<16777216?oe+1|0:oe,c[e+28>>2]=ce-(-33554432&se),oe=me(be,f,r,b),se=v,xe=me(we,i,_,q),ce=v+se|0,ce=(oe=xe+oe|0)>>>0>>0?ce+1|0:ce,xe=me(s,m,S,Q),se=v+ce|0,se=(oe=xe+oe|0)>>>0>>0?se+1|0:se,ce=(xe=me(Ae,l,h,x))+oe|0,oe=v+se|0,oe=ce>>>0>>0?oe+1|0:oe,se=ce,ce=me(Se,W,E,K),oe=v+oe|0,oe=(se=se+ce|0)>>>0>>0?oe+1|0:oe,ce=me(he,p,N,J),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,se=(pe=me(pe,R,C,V))+se|0,ce=v+oe|0,oe=(ve=me(a,o,ve,I))+se|0,se=v+(se>>>0>>0?ce+1|0:ce)|0,ce=(ue=me(ue,A,w,z))+oe|0,oe=v+(oe>>>0>>0?se+1|0:se)|0,oe=ce>>>0>>0?oe+1|0:oe,se=ce,ce=me(le,y,ge,u),oe=v+oe|0,ue=se=se+ce|0,oe=(oe=se>>>0>>0?oe+1|0:oe)+(se=n>>26)|0,ce=(se=n=ue+(ce=(67108863&n)<<6|Te>>>26)|0)>>>0>>0?oe+1|0:oe,ve=oe=se+16777216|0,n=ce=oe>>>0<16777216?ce+1|0:ce,c[e+12>>2]=se-(-33554432&oe),oe=me(r,b,B,H),ce=v,se=(ue=me(we,i,he,p))+oe|0,oe=v+ce|0,oe=se>>>0>>0?oe+1|0:oe,ce=me(a,o,s,m),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,ue=me(h,x,_e,D),ce=v+oe|0,ce=(se=ue+se|0)>>>0>>0?ce+1|0:ce,oe=(ue=me(ge,u,g,O))+se|0,se=v+ce|0,se=oe>>>0>>0?se+1|0:se,ce=(ue=me(T,j,k,U))+oe|0,oe=v+se|0,oe=ce>>>0>>0?oe+1|0:oe,se=ce,ce=me(be,f,Y,G),oe=v+oe|0,oe=(se=se+ce|0)>>>0>>0?oe+1|0:oe,ce=me(Z,ye,P,L),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,se=(_e=me(Ae,l,ue=$,pe=ue>>31))+se|0,ce=v+oe|0,oe=(le=me(le,y,M,F))+se|0,se=v+(se>>>0<_e>>>0?ce+1|0:ce)|0,se=oe>>>0>>0?se+1|0:se,le=oe,oe=(oe=t>>25)+se|0,oe=(t=le+(ce=(33554431&t)<<7|ke>>>25)|0)>>>0>>0?oe+1|0:oe,le=se=(ce=t)+33554432|0,t=oe=se>>>0<33554432?oe+1|0:oe,c[e+32>>2]=ce-(-67108864&se),se=n>>25,n=(ve=(33554431&n)<<7|ve>>>25)+(ee-(oe=-67108864&ne)|0)|0,oe=se+(te-((oe>>>0>ee>>>0)+re|0)|0)|0,oe=n>>>0>>0?oe+1|0:oe,ke=oe=(67108863&(oe=(n=(se=n)+33554432|0)>>>0<33554432?oe+1|0:oe))<<6|n>>>26,oe=oe+(ce=Ce-(-33554432&ae)|0)|0,c[e+20>>2]=oe,c[e+16>>2]=se-(-67108864&n),n=me(he,p,r,b),oe=v,se=me(we,i,E,K),oe=v+oe|0,oe=(n=se+n|0)>>>0>>0?oe+1|0:oe,ce=me(s,m,C,V),se=v+oe|0,se=(n=ce+n|0)>>>0>>0?se+1|0:se,oe=me(a,o,h,x),ce=v+se|0,ce=(n=oe+n|0)>>>0>>0?ce+1|0:ce,se=me(g,O,w,z),oe=v+ce|0,oe=(n=se+n|0)>>>0>>0?oe+1|0:oe,se=me(ge,u,k,U),oe=v+oe|0,oe=(n=se+n|0)>>>0>>0?oe+1|0:oe,se=me(_,q,Y,G),oe=v+oe|0,oe=(n=se+n|0)>>>0>>0?oe+1|0:oe,ce=me(be,f,Z,ye),se=v+oe|0,se=(n=ce+n|0)>>>0>>0?se+1|0:se,oe=me(ue,pe,S,Q),ce=v+se|0,ce=(n=oe+n|0)>>>0>>0?ce+1|0:ce,se=me(Ae,l,X,X>>31),oe=v+ce|0,oe=(oe=(n=se+n|0)>>>0>>0?oe+1|0:oe)+(se=t>>26)|0,oe=(t=(ce=n)+(n=(67108863&t)<<6|le>>>26)|0)>>>0>>0?oe+1|0:oe,oe=(t=(n=t)+16777216|0)>>>0<16777216?oe+1|0:oe,c[e+36>>2]=n-(-33554432&t),ce=de-(-33554432&Oe)|0,se=fe-(n=-67108864&Ee)|0,we=Ie-((n>>>0>fe>>>0)+ie|0)|0,t=(n=me((33554431&(n=oe))<<7|t>>>25,oe>>=25,19,0))+se|0,se=v+we|0,oe=t>>>0>>0?se+1|0:se,se=oe=(67108863&(oe=(t=(n=t)+33554432|0)>>>0<33554432?oe+1|0:oe))<<6|t>>>26,oe=oe+ce|0,c[e+4>>2]=oe,c[e>>2]=n-(-67108864&t)}function S(e,t){var n,r,a,i,o,s,u,f,l,p,b,h,y,g,A,w,x,_,k,S,E,C,T,O,P=0,M=0,B=0,R=0,N=0,D=0,j=0,U=0,L=0,Z=0,F=0,H=0,z=0,q=0,Q=0,K=0,V=0,J=0,G=0,W=0,Y=0,X=0,$=0,ee=0,te=0,ne=0,re=0,ae=0,ie=0,oe=0,se=0,ce=0,ue=0,fe=0,de=0;m=n=m-48|0,I(e,t),I(e+80|0,t+40|0),P=me(z=(Y=c[t+92>>2])<<1,o=z>>31,H=(R=c[t+84>>2])<<1,r=H>>31),B=v,ae=q=c[t+88>>2],M=(F=me(q,K=q>>31,q,K))+P|0,P=v+B|0,P=M>>>0>>0?P+1|0:P,B=(L=me(j=c[t+96>>2],s=j>>31,F=(N=c[t+80>>2])<<1,a=F>>31))+M|0,M=v+P|0,M=B>>>0>>0?M+1|0:M,te=c[t+108>>2],L=me(Z=d(te,38),b=Z>>31,te,g=te>>31),P=v+M|0,P=(B=L+B|0)>>>0>>0?P+1|0:P,U=B,X=c[t+112>>2],B=me(D=d(X,19),u=D>>31,M=(V=c[t+104>>2])<<1,M>>31),P=v+P|0,P=(M=U+B|0)>>>0>>0?P+1|0:P,oe=c[t+116>>2],B=($=me(L=d(oe,38),i=L>>31,Q=(J=c[t+100>>2])<<1,l=Q>>31))+M|0,M=v+P|0,se=P=(B>>>0<$>>>0?M+1|0:M)<<1|B>>>31,ce=B=33554432+(A=B<<1)|0,ue=P=B>>>0<33554432?P+1|0:P,ne=(67108863&P)<<6|B>>>26,G=P>>26,P=me(H,r,j,s),M=v,B=me(q<<=1,p=q>>31,Y,w=Y>>31),M=v+M|0,M=(P=B+P|0)>>>0>>0?M+1|0:M,B=($=me(J,h=J>>31,F,a))+P|0,P=v+M|0,P=B>>>0<$>>>0?P+1|0:P,M=B,B=me(D,u,$=te<<1,x=$>>31),P=v+P|0,P=(M=M+B|0)>>>0>>0?P+1|0:P,B=me(L,i,V,f=V>>31),P=v+P|0,P=(M=B+M|0)>>>0>>0?P+1|0:P,B=ne,ne=M<<1,M=(P<<1|M>>>31)+G|0,M=(B=B+ne|0)>>>0>>0?M+1|0:M,ne=B,fe=B=B+16777216|0,U=(33554431&(M=B>>>0<16777216?M+1|0:M))<<7|B>>>25,G=M>>25,P=me(z,o,Y,w),B=v,M=(W=me(j,s,q,p))+P|0,P=v+B|0,P=M>>>0>>0?P+1|0:P,B=me(H,r,Q,l),P=v+P|0,P=(M=B+M|0)>>>0>>0?P+1|0:P,B=(W=me(F,a,V,f))+M|0,M=v+P|0,M=B>>>0>>0?M+1|0:M,P=B,B=me(D,u,X,y=X>>31),M=v+M|0,M=(P=P+B|0)>>>0>>0?M+1|0:M,B=(W=me(L,i,$,x))+P|0,P=v+M|0,M=(B>>>0>>0?P+1|0:P)<<1|B>>>31,B=(P=U)+(U=B<<1)|0,P=M+G|0,P=B>>>0>>0?P+1|0:P,G=B,W=M=B+33554432|0,B=P=M>>>0<33554432?P+1|0:P,c[e+144>>2]=G-(-67108864&M),G=me(P=d(J,38),P>>31,J,h),U=v,N=me(P=N,M=P>>31,P,M),P=v+U|0,P=(M=N+G|0)>>>0>>0?P+1|0:P,U=me(N=d(V,19),_=N>>31,G=j<<1,k=G>>31),P=v+P|0,P=(M=U+M|0)>>>0>>0?P+1|0:P,U=me(z,o,Z,b),P=v+P|0,P=(M=U+M|0)>>>0>>0?P+1|0:P,U=(de=me(D,u,q,p))+M|0,M=v+P|0,M=U>>>0>>0?M+1|0:M,P=U,U=me(H,r,L,i),M=v+M|0,M=((P=P+U|0)>>>0>>0?M+1|0:M)<<1,U=P,de=P=M|P>>>31,C=U=33554432+(S=U<<1)|0,T=P=U>>>0<33554432?P+1|0:P,ee=(67108863&P)<<6|U>>>26,U=P>>26,P=me(N,_,Q,l),re=v,ie=R,M=(R=me(F,a,R,E=R>>31))+P|0,P=v+re|0,P=M>>>0>>0?P+1|0:P,R=(re=me(j,s,Z,b))+M|0,M=v+P|0,M=R>>>0>>0?M+1|0:M,re=me(D,u,z,o),P=v+M|0,P=(R=re+R|0)>>>0>>0?P+1|0:P,M=R,R=me(L,i,ae,K),P=v+P|0,P=((M=M+R|0)>>>0>>0?P+1|0:P)<<1,R=M,M=(M=P|M>>>31)+U|0,U=R=(P=R<<1)+ee|0,P=M=P>>>0>R>>>0?M+1|0:M,re=R=R+16777216|0,O=(33554431&(P=R>>>0<16777216?P+1|0:P))<<7|R>>>25,ee=P>>25,P=me(F,a,ae,K),R=v,M=(ie=me(H,r,ie,E))+P|0,P=v+R|0,P=M>>>0>>0?P+1|0:P,R=me(N,_,V,f),P=v+P|0,P=(M=R+M|0)>>>0>>0?P+1|0:P,R=(N=me(Q,l,Z,b))+M|0,M=v+P|0,M=R>>>0>>0?M+1|0:M,N=me(D,u,G,k),P=v+M|0,P=(R=N+R|0)>>>0>>0?P+1|0:P,N=me(L,i,z,o),M=v+P|0,P=(M=((R=N+R|0)>>>0>>0?M+1|0:M)<<1|R>>>31)+ee|0,P=(R=(N=R<<1)+O|0)>>>0>>0?P+1|0:P,N=R,ie=M=R+33554432|0,R=P=M>>>0<33554432?P+1|0:P,c[e+128>>2]=N-(-67108864&M),P=me(q,p,J,h),M=v,N=me(j,s,z,o),M=v+M|0,M=(P=N+P|0)>>>0>>0?M+1|0:M,N=(ee=me(H,r,V,f))+P|0,P=v+M|0,P=N>>>0>>0?P+1|0:P,M=N,N=me(F,a,te,g),P=v+P|0,P=(M=M+N|0)>>>0>>0?P+1|0:P,N=(ee=me(L,i,X,y))+M|0,M=v+P|0,M=P=(N>>>0>>0?M+1|0:M)<<1|N>>>31,P=(P=B>>26)+M|0,P=(B=(ee=N<<=1)+(N=(67108863&B)<<6|W>>>26)|0)>>>0>>0?P+1|0:P,N=B,M=P,W=P=B+16777216|0,B=M=P>>>0<16777216?M+1|0:M,c[e+148>>2]=N-(-33554432&P),P=me(F,a,Y,w),Y=v,M=(K=me(H,r,ae,K))+P|0,P=v+Y|0,P=M>>>0>>0?P+1|0:P,Z=me(V,f,Z,b),P=v+P|0,P=(M=Z+M|0)>>>0>>0?P+1|0:P,D=(Z=me(D,u,Q,l))+M|0,M=v+P|0,M=D>>>0>>0?M+1|0:M,Z=me(L,i,j,s),P=v+M|0,M=(P=((D=Z+D|0)>>>0>>0?P+1|0:P)<<1|D>>>31)+(M=R>>26)|0,M=(R=(N=D<<1)+(D=(67108863&R)<<6|ie>>>26)|0)>>>0>>0?M+1|0:M,D=R,P=M,Z=M=R+16777216|0,R=P=M>>>0<16777216?P+1|0:P,c[e+132>>2]=D-(-33554432&M),P=me(V,f,q,p),D=v,M=(j=me(j,s,j,s))+P|0,P=v+D|0,P=M>>>0>>0?P+1|0:P,j=(D=me(z,o,Q,l))+M|0,M=v+P|0,M=j>>>0>>0?M+1|0:M,D=me(H,r,$,x),P=v+M|0,P=(j=D+j|0)>>>0>>0?P+1|0:P,D=me(F,a,X,y),M=v+P|0,M=(j=D+j|0)>>>0>>0?M+1|0:M,D=me(P=L,i,L=oe,Q=L>>31),P=v+M|0,P=(P=((j=D+j|0)>>>0>>0?P+1|0:P)<<1|j>>>31)+(M=B>>25)|0,P=(B=(N=j<<1)+(j=(33554431&B)<<7|W>>>25)|0)>>>0>>0?P+1|0:P,j=B,M=P,D=P=B+33554432|0,B=M=P>>>0<33554432?M+1|0:M,c[e+152>>2]=j-(-67108864&P),M=A-(P=-67108864&ce)|0,K=se-((P>>>0>A>>>0)+ue|0)|0,P=R>>25,R=(Z=(33554431&R)<<7|Z>>>25)+M|0,M=P+K|0,M=R>>>0>>0?M+1|0:M,N=M=(67108863&(M=(P=R+33554432|0)>>>0<33554432?M+1|0:M))<<6|P>>>26,M=M+(j=ne-(-33554432&fe)|0)|0,c[e+140>>2]=M,c[e+136>>2]=R-(-67108864&P),P=me(z,o,V,f),M=v,R=me(J,h,G,k),M=v+M|0,M=(P=R+P|0)>>>0>>0?M+1|0:M,R=(z=me(q,p,te,g))+P|0,P=v+M|0,P=R>>>0>>0?P+1|0:P,M=R,R=me(H,r,X,y),P=v+P|0,P=(M=M+R|0)>>>0>>0?P+1|0:P,R=(H=me(F,a,L,Q))+M|0,M=v+P|0,M=P=(R>>>0>>0?M+1|0:M)<<1|R>>>31,P=(P=B>>26)+M|0,M=(B=(N=R<<=1)+(R=(67108863&B)<<6|D>>>26)|0)>>>0>>0?P+1|0:P,M=(P=B+16777216|0)>>>0<16777216?M+1|0:M,c[e+156>>2]=B-(-33554432&P),R=U-(-33554432&re)|0,H=S-(B=-67108864&C)|0,F=de-((B>>>0>S>>>0)+T|0)|0,M=me((33554431&M)<<7|P>>>25,M>>25,19,0),P=v+F|0,M=M>>>0>(B=M+H|0)>>>0?P+1|0:P,N=M=(67108863&(M=(P=B+33554432|0)>>>0<33554432?M+1|0:M))<<6|P>>>26,M=M+R|0,c[e+124>>2]=M,c[e+120>>2]=B-(-67108864&P),P=c[t+40>>2],M=c[t+44>>2],B=c[t+4>>2],R=c[t+48>>2],H=c[t+8>>2],F=c[t+52>>2],L=c[t+12>>2],z=c[t+56>>2],j=c[t+16>>2],D=c[t+60>>2],V=c[t+20>>2],Q=c[t- -64>>2],q=c[t+24>>2],Z=c[t+68>>2],K=c[t+28>>2],J=c[t+72>>2],X=c[t+32>>2],ae=c[t>>2],c[e+76>>2]=c[t+76>>2]+c[t+36>>2],c[e+72>>2]=J+X,c[e+68>>2]=Z+K,c[(te=e- -64|0)>>2]=q+Q,c[e+60>>2]=D+V,c[e+56>>2]=j+z,c[e+52>>2]=L+F,c[e+48>>2]=R+H,c[e+44>>2]=M+B,c[(t=e+40|0)>>2]=P+ae,I(n,t),P=c[e+80>>2],M=c[e+4>>2],B=c[e+84>>2],R=c[e+8>>2],H=c[e+88>>2],F=c[e+12>>2],L=c[e+92>>2],z=c[e+16>>2],j=c[e+96>>2],D=c[e+20>>2],V=c[e+100>>2],Q=c[e+24>>2],q=c[e+104>>2],Z=c[e+28>>2],K=c[e+108>>2],J=c[e+32>>2],X=c[e+112>>2],ae=c[e>>2],N=(Y=c[e+116>>2])-($=c[e+36>>2])|0,c[e+116>>2]=N,G=X-J|0,c[e+112>>2]=G,ne=K-Z|0,c[e+108>>2]=ne,U=q-Q|0,c[e+104>>2]=U,oe=V-D|0,c[e+100>>2]=oe,se=j-z|0,c[e+96>>2]=se,ce=L-F|0,c[e+92>>2]=ce,ue=H-R|0,c[e+88>>2]=ue,W=B-M|0,c[e+84>>2]=W,fe=P-ae|0,c[e+80>>2]=fe,Y=Y+$|0,c[e+76>>2]=Y,J=J+X|0,c[e+72>>2]=J,Z=Z+K|0,c[e+68>>2]=Z,Q=q+Q|0,c[te>>2]=Q,D=D+V|0,c[e+60>>2]=D,z=j+z|0,c[e+56>>2]=z,F=L+F|0,c[e+52>>2]=F,R=R+H|0,c[e+48>>2]=R,M=M+B|0,c[e+44>>2]=M,B=t,t=P+ae|0,c[B>>2]=t,P=c[n>>2],B=c[n+4>>2],H=c[n+8>>2],L=c[n+12>>2],j=c[n+16>>2],V=c[n+20>>2],q=c[n+24>>2],K=c[n+28>>2],X=c[n+32>>2],c[e+36>>2]=c[n+36>>2]-Y,c[e+32>>2]=X-J,c[e+28>>2]=K-Z,c[e+24>>2]=q-Q,c[e+20>>2]=V-D,c[e+16>>2]=j-z,c[e+12>>2]=L-F,c[e+8>>2]=H-R,c[e+4>>2]=B-M,c[e>>2]=P-t,t=c[e+120>>2],P=c[e+124>>2],M=c[e+128>>2],B=c[e+132>>2],R=c[e+136>>2],H=c[e+140>>2],F=c[e+144>>2],L=c[e+148>>2],z=c[e+152>>2],c[e+156>>2]=c[e+156>>2]-N,c[e+152>>2]=z-G,c[e+148>>2]=L-ne,c[e+144>>2]=F-U,c[e+140>>2]=H-oe,c[e+136>>2]=R-se,c[e+132>>2]=B-ce,c[e+128>>2]=M-ue,c[e+124>>2]=P-W,c[e+120>>2]=t-fe,m=n+48|0}function I(e,t){var n,r,a,i,o,s,u,f,l,p,b,h,y,m,g,A,w,x,_,k,S,I,E,C,T,O,P,M,B,R,N,D,j,U=0,L=0,Z=0,F=0,H=0,z=0,q=0,Q=0,K=0,V=0,J=0,G=0,W=0,Y=0,X=0,$=0,ee=0,te=0,ne=0,re=0,ae=0,ie=0;U=me(r=(A=c[t+12>>2])<<1,s=r>>31,A,S=A>>31),Z=v,L=(K=me(H=c[t+16>>2],u=H>>31,f=(F=c[t+8>>2])<<1,h=f>>31))+U|0,U=v+Z|0,U=L>>>0>>0?U+1|0:U,Z=(V=me(W=(l=c[t+20>>2])<<1,y=W>>31,K=(z=c[t+4>>2])<<1,a=K>>31))+L|0,L=v+U|0,L=Z>>>0>>0?L+1|0:L,q=me(n=c[t+24>>2],p=n>>31,V=($=c[t>>2])<<1,i=V>>31),U=v+L|0,U=(Z=q+Z|0)>>>0>>0?U+1|0:U,L=Z,m=c[t+32>>2],Z=me(J=d(m,19),b=J>>31,m,x=m>>31),U=v+U|0,U=(L=L+Z|0)>>>0>>0?U+1|0:U,O=c[t+36>>2],Z=me(q=d(O,38),o=q>>31,_=(g=c[t+28>>2])<<1,I=_>>31),t=v+U|0,X=L=Z+L|0,Z=L>>>0>>0?t+1|0:t,t=me(K,a,H,u),U=v,L=me(f,h,A,S),U=v+U|0,U=(t=L+t|0)>>>0>>0?U+1|0:U,Q=me(l,k=l>>31,V,i),L=v+U|0,L=(t=Q+t|0)>>>0>>0?L+1|0:L,Q=me(J,b,_,I),U=v+L|0,U=(t=Q+t|0)>>>0>>0?U+1|0:U,L=me(q,o,n,p),U=v+U|0,ae=t=L+t|0,G=t>>>0>>0?U+1|0:U,U=me(K,a,r,s),L=v,E=t=F,F=me(t,Y=t>>31,t,Y),t=v+L|0,t=(U=F+U|0)>>>0>>0?t+1|0:t,L=(F=me(V,i,H,u))+U|0,U=v+t|0,U=L>>>0>>0?U+1|0:U,t=(F=me(Q=d(g,38),w=Q>>31,g,C=g>>31))+L|0,L=v+U|0,L=t>>>0>>0?L+1|0:L,t=(U=t)+(F=me(J,b,t=n<<1,t>>31))|0,U=v+L|0,U=t>>>0>>0?U+1|0:U,L=t,t=me(q,o,W,y),U=v+U|0,P=L=L+t|0,M=U=t>>>0>L>>>0?U+1|0:U,t=U,B=L=L+33554432|0,R=t=L>>>0<33554432?t+1|0:t,U=(U=t>>26)+G|0,ae=t=(L=(67108863&t)<<6|L>>>26)+ae|0,U=t>>>0>>0?U+1|0:U,N=t=t+16777216|0,U=(U=(L=t>>>0<16777216?U+1|0:U)>>25)+Z|0,t=(t=(33554431&L)<<7|t>>>25)>>>0>(L=t+X|0)>>>0?U+1|0:U,X=U=L+33554432|0,F=t=U>>>0<33554432?t+1|0:t,c[e+24>>2]=L-(-67108864&U),t=me(V,i,E,Y),U=v,Z=me(K,a,z,re=z>>31),L=v+U|0,L=(t=Z+t|0)>>>0>>0?L+1|0:L,G=me(Z=d(n,19),ne=Z>>31,n,p),U=v+L|0,U=(t=G+t|0)>>>0>>0?U+1|0:U,L=(G=me(W,y,Q,w))+t|0,t=v+U|0,t=L>>>0>>0?t+1|0:t,ee=me(J,b,G=H<<1,T=G>>31),U=v+t|0,U=(L=ee+L|0)>>>0>>0?U+1|0:U,t=L,L=me(q,o,r,s),U=v+U|0,te=t=t+L|0,ee=t>>>0>>0?U+1|0:U,t=me(W,y,Z,ne),U=v,z=me(V,i,z,re),L=v+U|0,L=(t=z+t|0)>>>0>>0?L+1|0:L,z=me(H,u,Q,w),U=v+L|0,U=(t=z+t|0)>>>0>>0?U+1|0:U,L=(z=me(J,b,r,s))+t|0,t=v+U|0,t=L>>>0>>0?t+1|0:t,z=me(q,o,E,Y),U=v+t|0,ie=L=z+L|0,re=L>>>0>>0?U+1|0:U,L=me(t=d(l,38),t>>31,l,k),z=v,t=$,$=L,L=me(t,U=t>>31,t,U),U=v+z|0,U=(t=$+L|0)>>>0>>0?U+1|0:U,Z=me(Z,ne,G,T),L=v+U|0,L=(t=Z+t|0)>>>0>>0?L+1|0:L,Z=me(r,s,Q,w),U=v+L|0,U=(t=Z+t|0)>>>0>>0?U+1|0:U,L=(Z=me(J,b,f,h))+t|0,t=v+U|0,t=L>>>0>>0?t+1|0:t,Z=me(K,a,q,o),U=v+t|0,z=L=Z+L|0,ne=U=L>>>0>>0?U+1|0:U,D=L=L+33554432|0,j=U=L>>>0<33554432?U+1|0:U,t=U>>26,U=(67108863&U)<<6|L>>>26,L=t+re|0,$=Z=U+ie|0,U=L=U>>>0>Z>>>0?L+1|0:L,ie=L=Z+16777216|0,Z=(33554431&(U=L>>>0<16777216?U+1|0:U))<<7|L>>>25,U=(U>>25)+ee|0,U=(L=Z+te|0)>>>0>>0?U+1|0:U,ee=t=L+33554432|0,Z=U=t>>>0<33554432?U+1|0:U,c[e+8>>2]=L-(-67108864&t),t=me(f,h,l,k),U=v,L=me(H,u,r,s),U=v+U|0,U=(t=L+t|0)>>>0>>0?U+1|0:U,L=me(K,a,n,p),U=v+U|0,U=(t=L+t|0)>>>0>>0?U+1|0:U,L=me(V,i,g,C),U=v+U|0,U=(t=L+t|0)>>>0>>0?U+1|0:U,te=(L=me(q,o,m,x))+t|0,t=v+U|0,L=(U=F>>26)+(L=L>>>0>te>>>0?t+1|0:t)|0,X=t=(F=(67108863&F)<<6|X>>>26)+te|0,U=t>>>0>>0?L+1|0:L,te=t=t+16777216|0,F=U=t>>>0<16777216?U+1|0:U,c[e+28>>2]=X-(-33554432&t),t=me(V,i,A,S),L=v,U=(Y=me(K,a,E,Y))+t|0,t=v+L|0,t=U>>>0>>0?t+1|0:t,U=(Q=me(n,p,Q,w))+U|0,L=v+t|0,t=(J=me(J,b,W,y))+U|0,U=v+(U>>>0>>0?L+1|0:L)|0,U=t>>>0>>0?U+1|0:U,L=me(q,o,H,u),U=v+U|0,U=(U=(t=L+t|0)>>>0>>0?U+1|0:U)+(L=Z>>26)|0,t=(L=Z=(X=t)+(t=(67108863&Z)<<6|ee>>>26)|0)>>>0>>0?U+1|0:U,J=U=L+16777216|0,Z=t=U>>>0<16777216?t+1|0:t,c[e+12>>2]=L-(-33554432&U),t=me(n,p,f,h),U=v,L=me(H,u,H,u),U=v+U|0,U=(t=L+t|0)>>>0>>0?U+1|0:U,L=me(r,s,W,y),U=v+U|0,U=(t=L+t|0)>>>0>>0?U+1|0:U,L=(H=me(K,a,_,I))+t|0,t=v+U|0,t=L>>>0>>0?t+1|0:t,U=(H=me(V,i,m,x))+L|0,L=v+t|0,L=U>>>0>>0?L+1|0:L,t=(H=me(t=q,o,q=O,W=q>>31))+U|0,U=v+L|0,U=t>>>0>>0?U+1|0:U,L=t,U=(t=F>>25)+U|0,U=(L=L+(F=(33554431&F)<<7|te>>>25)|0)>>>0>>0?U+1|0:U,H=t=L+33554432|0,F=U=t>>>0<33554432?U+1|0:U,c[e+32>>2]=L-(-67108864&t),U=Z>>25,L=(Z=(33554431&Z)<<7|J>>>25)+(P-(t=-67108864&B)|0)|0,t=U+(M-((t>>>0>P>>>0)+R|0)|0)|0,U=L>>>0>>0?t+1|0:t,Z=U=(67108863&(U=(t=L+33554432|0)>>>0<33554432?U+1|0:U))<<6|t>>>26,U=U+(Q=ae-(-33554432&N)|0)|0,c[e+20>>2]=U,c[e+16>>2]=L-(-67108864&t),t=me(r,s,n,p),L=v,U=(Z=me(l,k,G,T))+t|0,t=v+L|0,t=U>>>0>>0?t+1|0:t,L=(Z=me(f,h,g,C))+U|0,U=v+t|0,U=L>>>0>>0?U+1|0:U,t=(Z=me(K,a,m,x))+L|0,L=v+U|0,L=t>>>0>>0?L+1|0:L,Z=(U=t)+(t=me(V,i,q,W))|0,U=v+L|0,U=(t=t>>>0>Z>>>0?U+1|0:U)+(U=F>>26)|0,t=(L=(F=(67108863&F)<<6|H>>>26)+Z|0)>>>0>>0?U+1|0:U,t=(U=L+16777216|0)>>>0<16777216?t+1|0:t,c[e+36>>2]=L-(-33554432&U),F=$-(-33554432&ie)|0,Z=z-(L=-67108864&D)|0,K=ne-((L>>>0>z>>>0)+j|0)|0,t=me((33554431&t)<<7|U>>>25,t>>25,19,0),U=v+K|0,t=t>>>0>(L=t+Z|0)>>>0?U+1|0:U,Z=t=(67108863&(t=(U=L+33554432|0)>>>0<33554432?t+1|0:t))<<6|U>>>26,t=t+F|0,c[e+4>>2]=t,c[e>>2]=L-(-67108864&U)}function E(e,t,n,r,a){var i,o,f,d,l,p,b,h,y,v,g,A,w,x,_,k=0,S=0,I=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,R=0,N=0,D=0,j=0,U=0,L=0,Z=0,F=0,H=0,z=0,q=0,Q=0,K=0,V=0,J=0,G=0,W=0,Y=0,X=0,$=0,ee=0,te=0,ne=0,re=0;for(i=m+-64|0,o=c[e+60>>2],f=c[e+56>>2],z=c[e+52>>2],H=c[e+48>>2],d=c[e+44>>2],l=c[e+40>>2],p=c[e+36>>2],b=c[e+32>>2],h=c[e+28>>2],y=c[e+24>>2],v=c[e+20>>2],g=c[e+16>>2],A=c[e+12>>2],w=c[e+8>>2],x=c[e+4>>2],_=c[e>>2];;){if(!a&r>>>0>63|a)k=n;else{if(c[i+56>>2]=0,c[i+60>>2]=0,c[i+48>>2]=0,c[i+52>>2]=0,c[i+40>>2]=0,c[i+44>>2]=0,c[i+32>>2]=0,c[i+36>>2]=0,c[i+24>>2]=0,c[i+28>>2]=0,c[i+16>>2]=0,c[i+20>>2]=0,c[i+8>>2]=0,c[i+12>>2]=0,c[i>>2]=0,c[i+4>>2]=0,I=0,r|a)for(;s[I+i|0]=u[t+I|0],!a&(I=I+1|0)>>>0>>0|a;);t=k=i,J=n}for(q=20,S=_,B=x,R=w,j=A,I=g,n=v,C=y,T=h,O=b,L=p,N=l,E=o,Z=f,U=z,D=H,P=d;M=I,S=Be((I=S+I|0)^D,16),M=D=Be(M^(O=S+O|0),12),D=Be((F=I+D|0)^S,8),I=Be(M^(O=D+O|0),7),E=Be((S=T+j|0)^E,16),T=Be((P=E+P|0)^T,12),j=Be((R=C+R|0)^Z,16),C=Be((N=j+N|0)^C,12),Z=(Q=S+T|0)+I|0,K=Be((R=C+R|0)^j,8),S=Be(Z^K,16),j=Be((B=n+B|0)^U,16),n=Be((L=j+L|0)^n,12),M=I,U=Be((B=n+B|0)^j,8),M=Be(M^(I=(V=U+L|0)+S|0),12),Z=Be(S^(j=M+Z|0),8),I=Be((L=Z+I|0)^M,7),M=O,O=R,S=Be(E^Q,8),R=Be((E=S+P|0)^T,7),U=Be((O=O+R|0)^U,16),P=Be((T=M+U|0)^R,12),U=Be(U^(R=P+O|0),8),T=Be((O=T+U|0)^P,7),P=E,E=B,B=Be((N=N+K|0)^C,7),C=P+(D=Be((E=E+B|0)^D,16))|0,P=E,E=Be(C^B,12),D=Be(D^(B=P+E|0),8),C=Be((P=C+D|0)^E,7),M=N,E=S,S=Be(n^V,7),E=Be(E^(N=S+F|0),16),F=Be((n=M+E|0)^S,12),E=Be(E^(S=F+N|0),8),n=Be((N=n+E|0)^F,7),q=q-2|0;);if(q=u[t+4|0]|u[t+5|0]<<8|u[t+6|0]<<16|u[t+7|0]<<24,F=u[t+8|0]|u[t+9|0]<<8|u[t+10|0]<<16|u[t+11|0]<<24,Q=u[t+12|0]|u[t+13|0]<<8|u[t+14|0]<<16|u[t+15|0]<<24,K=u[t+16|0]|u[t+17|0]<<8|u[t+18|0]<<16|u[t+19|0]<<24,V=u[t+20|0]|u[t+21|0]<<8|u[t+22|0]<<16|u[t+23|0]<<24,M=u[t+24|0]|u[t+25|0]<<8|u[t+26|0]<<16|u[t+27|0]<<24,G=u[t+28|0]|u[t+29|0]<<8|u[t+30|0]<<16|u[t+31|0]<<24,W=u[t+32|0]|u[t+33|0]<<8|u[t+34|0]<<16|u[t+35|0]<<24,Y=u[t+36|0]|u[t+37|0]<<8|u[t+38|0]<<16|u[t+39|0]<<24,X=u[t+40|0]|u[t+41|0]<<8|u[t+42|0]<<16|u[t+43|0]<<24,$=u[t+44|0]|u[t+45|0]<<8|u[t+46|0]<<16|u[t+47|0]<<24,ee=u[t+48|0]|u[t+49|0]<<8|u[t+50|0]<<16|u[t+51|0]<<24,te=u[t+52|0]|u[t+53|0]<<8|u[t+54|0]<<16|u[t+55|0]<<24,ne=u[t+56|0]|u[t+57|0]<<8|u[t+58|0]<<16|u[t+59|0]<<24,re=u[t+60|0]|u[t+61|0]<<8|u[t+62|0]<<16|u[t+63|0]<<24,S=S+_^(u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24),s[0|k]=S,s[k+1|0]=S>>>8,s[k+2|0]=S>>>16,s[k+3|0]=S>>>24,S=E+o^re,s[k+60|0]=S,s[k+61|0]=S>>>8,s[k+62|0]=S>>>16,s[k+63|0]=S>>>24,S=Z+f^ne,s[k+56|0]=S,s[k+57|0]=S>>>8,s[k+58|0]=S>>>16,s[k+59|0]=S>>>24,S=U+z^te,s[k+52|0]=S,s[k+53|0]=S>>>8,s[k+54|0]=S>>>16,s[k+55|0]=S>>>24,S=D+H^ee,s[k+48|0]=S,s[k+49|0]=S>>>8,s[k+50|0]=S>>>16,s[k+51|0]=S>>>24,S=P+d^$,s[k+44|0]=S,s[k+45|0]=S>>>8,s[k+46|0]=S>>>16,s[k+47|0]=S>>>24,S=N+l^X,s[k+40|0]=S,s[k+41|0]=S>>>8,s[k+42|0]=S>>>16,s[k+43|0]=S>>>24,S=L+p^Y,s[k+36|0]=S,s[k+37|0]=S>>>8,s[k+38|0]=S>>>16,s[k+39|0]=S>>>24,S=O+b^W,s[k+32|0]=S,s[k+33|0]=S>>>8,s[k+34|0]=S>>>16,s[k+35|0]=S>>>24,T=T+h^G,s[k+28|0]=T,s[k+29|0]=T>>>8,s[k+30|0]=T>>>16,s[k+31|0]=T>>>24,C=M^C+y,s[k+24|0]=C,s[k+25|0]=C>>>8,s[k+26|0]=C>>>16,s[k+27|0]=C>>>24,n=V^n+v,s[k+20|0]=n,s[k+21|0]=n>>>8,s[k+22|0]=n>>>16,s[k+23|0]=n>>>24,n=K^I+g,s[k+16|0]=n,s[k+17|0]=n>>>8,s[k+18|0]=n>>>16,s[k+19|0]=n>>>24,n=Q^j+A,s[k+12|0]=n,s[k+13|0]=n>>>8,s[k+14|0]=n>>>16,s[k+15|0]=n>>>24,n=F^R+w,s[k+8|0]=n,s[k+9|0]=n>>>8,s[k+10|0]=n>>>16,s[k+11|0]=n>>>24,n=q^B+x,s[k+4|0]=n,s[k+5|0]=n>>>8,s[k+6|0]=n>>>16,s[k+7|0]=n>>>24,z=!(H=H+1|0)+z|0,!a&r>>>0<=64){if(!(!r|!a&r>>>0>63|0!=(0|a)))for(I=0;s[I+J|0]=u[k+I|0],r>>>0>(I=I+1|0)>>>0;);c[e+52>>2]=z,c[e+48>>2]=H;break}t=t- -64|0,n=k- -64|0,a=a-1|0,a=(r=r+-64|0)>>>0<4294967232?a+1|0:a}}function C(e,t){var n,r=0,a=0,i=0,o=0,u=0,f=0,d=0;m=n=m-704|0,r=80+((a=c[e+72>>2]>>>3&127)+e|0)|0,a>>>0<=111?Ee(r,34640,112-a|0):(Ee(r,34640,128-a|0),w(e,a=e+80|0,n,n+640|0),Ce(a,0,112)),f=(i=c[e+64>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,d=o<<24,o=(u=-16777216&i)>>>24|0,r=d|u<<8|-16777216&((255&(r=c[e+68>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[e+192|0]=r,s[e+193|0]=r>>>8,s[e+194|0]=r>>>16,s[e+195|0]=r>>>24,a=(r=a|o|f)|(a=0)|a|0,s[e+196|0]=a,s[e+197|0]=a>>>8,s[e+198|0]=a>>>16,s[e+199|0]=a>>>24,f=(i=c[e+72>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,d=o<<24,o=(u=-16777216&i)>>>24|0,r=d|u<<8|-16777216&((255&(r=c[e+76>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[e+200|0]=r,s[e+201|0]=r>>>8,s[e+202|0]=r>>>16,s[e+203|0]=r>>>24,a=(r=a|o|f)|(a=0)|a|0,s[e+204|0]=a,s[e+205|0]=a>>>8,s[e+206|0]=a>>>16,s[e+207|0]=a>>>24,w(e,e+80|0,n,n+640|0),f=(i=c[e>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,d=o<<24,o=(u=-16777216&i)>>>24|0,r=d|u<<8|-16777216&((255&(r=c[e+4>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[0|t]=r,s[t+1|0]=r>>>8,s[t+2|0]=r>>>16,s[t+3|0]=r>>>24,a=(r=a|o|f)|(a=0)|a|0,s[t+4|0]=a,s[t+5|0]=a>>>8,s[t+6|0]=a>>>16,s[t+7|0]=a>>>24,f=(i=c[e+8>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,d=o<<24,o=(u=-16777216&i)>>>24|0,r=d|u<<8|-16777216&((255&(r=c[e+12>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[t+8|0]=r,s[t+9|0]=r>>>8,s[t+10|0]=r>>>16,s[t+11|0]=r>>>24,a=(r=a|o|f)|(a=0)|a|0,s[t+12|0]=a,s[t+13|0]=a>>>8,s[t+14|0]=a>>>16,s[t+15|0]=a>>>24,f=(i=c[e+16>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,d=o<<24,o=(u=-16777216&i)>>>24|0,r=d|u<<8|-16777216&((255&(r=c[e+20>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[t+16|0]=r,s[t+17|0]=r>>>8,s[t+18|0]=r>>>16,s[t+19|0]=r>>>24,a=(r=a|o|f)|(a=0)|a|0,s[t+20|0]=a,s[t+21|0]=a>>>8,s[t+22|0]=a>>>16,s[t+23|0]=a>>>24,f=(i=c[e+24>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,d=o<<24,o=(u=-16777216&i)>>>24|0,r=d|u<<8|-16777216&((255&(r=c[e+28>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[t+24|0]=r,s[t+25|0]=r>>>8,s[t+26|0]=r>>>16,s[t+27|0]=r>>>24,a=(r=a|o|f)|(a=0)|a|0,s[t+28|0]=a,s[t+29|0]=a>>>8,s[t+30|0]=a>>>16,s[t+31|0]=a>>>24,f=(i=c[e+32>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,d=o<<24,o=(u=-16777216&i)>>>24|0,r=d|u<<8|-16777216&((255&(r=c[e+36>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[t+32|0]=r,s[t+33|0]=r>>>8,s[t+34|0]=r>>>16,s[t+35|0]=r>>>24,a=(r=a|o|f)|(a=0)|a|0,s[t+36|0]=a,s[t+37|0]=a>>>8,s[t+38|0]=a>>>16,s[t+39|0]=a>>>24,f=(i=c[e+40>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,d=o<<24,o=(u=-16777216&i)>>>24|0,r=d|u<<8|-16777216&((255&(r=c[e+44>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[t+40|0]=r,s[t+41|0]=r>>>8,s[t+42|0]=r>>>16,s[t+43|0]=r>>>24,a=(r=a|o|f)|(a=0)|a|0,s[t+44|0]=a,s[t+45|0]=a>>>8,s[t+46|0]=a>>>16,s[t+47|0]=a>>>24,f=(i=c[e+48>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,d=o<<24,o=(u=-16777216&i)>>>24|0,r=d|u<<8|-16777216&((255&(r=c[e+52>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[t+48|0]=r,s[t+49|0]=r>>>8,s[t+50|0]=r>>>16,s[t+51|0]=r>>>24,a=(r=a|o|f)|(a=0)|a|0,s[t+52|0]=a,s[t+53|0]=a>>>8,s[t+54|0]=a>>>16,s[t+55|0]=a>>>24,f=(i=c[e+56>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,r=t,d=o<<24,o=(u=-16777216&i)>>>24|0,t=d|u<<8|-16777216&((255&(t=c[e+60>>2]))<<24|i>>>8)|16711680&((16777215&t)<<8|i>>>24)|t>>>8&65280|t>>>24,s[r+56|0]=t,s[r+57|0]=t>>>8,s[r+58|0]=t>>>16,s[r+59|0]=t>>>24,t=(t=a|o|f)|(a=0)|a|0,s[r+60|0]=t,s[r+61|0]=t>>>8,s[r+62|0]=t>>>16,s[r+63|0]=t>>>24,$e(n,704),$e(e,208),m=n+704|0}function T(e,t,n){var r,a=0,o=0,f=0,d=0,l=0,p=0;m=r=m+-64|0;e:{if((n-65&255)>>>0>191){if(a=-1,!(u[e+80|0]|u[e+81|0]<<8|u[e+82|0]<<16|u[e+83|0]<<24|u[e+84|0]|u[e+85|0]<<8|u[e+86|0]<<16|u[e+87|0]<<24)){if((d=u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24)>>>0>=129){if(f=u[0|(a=e- -64|0)]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,l=o=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,o=(d=f+128|0)>>>0<128?o+1|0:o,s[0|a]=d,s[a+1|0]=d>>>8,s[a+2|0]=d>>>16,s[a+3|0]=d>>>24,s[a+4|0]=o,s[a+5|0]=o>>>8,s[a+6|0]=o>>>16,s[a+7|0]=o>>>24,o=u[e+76|0]|u[e+77|0]<<8|u[e+78|0]<<16|u[e+79|0]<<24,o=(a=-1==(0|l)&f>>>0>4294967167)>>>0>(f=a+(u[e+72|0]|u[e+73|0]<<8|u[e+74|0]<<16|u[e+75|0]<<24)|0)>>>0?o+1|0:o,s[e+72|0]=f,s[e+73|0]=f>>>8,s[e+74|0]=f>>>16,s[e+75|0]=f>>>24,s[e+76|0]=o,s[e+77|0]=o>>>8,s[e+78|0]=o>>>16,s[e+79|0]=o>>>24,g(e,o=e+96|0),a=(u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24)-128|0,s[e+352|0]=a,s[e+353|0]=a>>>8,s[e+354|0]=a>>>16,s[e+355|0]=a>>>24,a>>>0>=129)break e;Ee(o,e+224|0,a),d=u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24}o=u[0|(a=e- -64|0)]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,f=p=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,f=(l=o+d|0)>>>0>>0?f+1|0:f,s[0|a]=l,s[a+1|0]=l>>>8,s[a+2|0]=l>>>16,s[a+3|0]=l>>>24,s[a+4|0]=f,s[a+5|0]=f>>>8,s[a+6|0]=f>>>16,s[a+7|0]=f>>>24,a=(0|f)==(0|p)&o>>>0>l>>>0|f>>>0

>>0,o=u[e+76|0]|u[e+77|0]<<8|u[e+78|0]<<16|u[e+79|0]<<24,o=(f=a+(u[e+72|0]|u[e+73|0]<<8|u[e+74|0]<<16|u[e+75|0]<<24)|0)>>>0>>0?o+1|0:o,s[e+72|0]=f,s[e+73|0]=f>>>8,s[e+74|0]=f>>>16,s[e+75|0]=f>>>24,s[e+76|0]=o,s[e+77|0]=o>>>8,s[e+78|0]=o>>>16,s[e+79|0]=o>>>24,u[e+356|0]&&(s[e+88|0]=255,s[e+89|0]=255,s[e+90|0]=255,s[e+91|0]=255,s[e+92|0]=255,s[e+93|0]=255,s[e+94|0]=255,s[e+95|0]=255),s[e+80|0]=255,s[e+81|0]=255,s[e+82|0]=255,s[e+83|0]=255,s[e+84|0]=255,s[e+85|0]=255,s[e+86|0]=255,s[e+87|0]=255,Ce((a=e+96|0)+d|0,0,256-d|0),g(e,a),o=u[e+4|0]|u[e+5|0]<<8|u[e+6|0]<<16|u[e+7|0]<<24,c[r>>2]=u[0|e]|u[e+1|0]<<8|u[e+2|0]<<16|u[e+3|0]<<24,c[r+4>>2]=o,o=u[e+12|0]|u[e+13|0]<<8|u[e+14|0]<<16|u[e+15|0]<<24,c[r+8>>2]=u[e+8|0]|u[e+9|0]<<8|u[e+10|0]<<16|u[e+11|0]<<24,c[r+12>>2]=o,o=u[e+20|0]|u[e+21|0]<<8|u[e+22|0]<<16|u[e+23|0]<<24,c[r+16>>2]=u[e+16|0]|u[e+17|0]<<8|u[e+18|0]<<16|u[e+19|0]<<24,c[r+20>>2]=o,o=u[e+28|0]|u[e+29|0]<<8|u[e+30|0]<<16|u[e+31|0]<<24,c[r+24>>2]=u[e+24|0]|u[e+25|0]<<8|u[e+26|0]<<16|u[e+27|0]<<24,c[r+28>>2]=o,o=u[e+36|0]|u[e+37|0]<<8|u[e+38|0]<<16|u[e+39|0]<<24,c[r+32>>2]=u[e+32|0]|u[e+33|0]<<8|u[e+34|0]<<16|u[e+35|0]<<24,c[r+36>>2]=o,o=u[e+44|0]|u[e+45|0]<<8|u[e+46|0]<<16|u[e+47|0]<<24,c[r+40>>2]=u[e+40|0]|u[e+41|0]<<8|u[e+42|0]<<16|u[e+43|0]<<24,c[r+44>>2]=o,o=u[e+52|0]|u[e+53|0]<<8|u[e+54|0]<<16|u[e+55|0]<<24,c[r+48>>2]=u[e+48|0]|u[e+49|0]<<8|u[e+50|0]<<16|u[e+51|0]<<24,c[r+52>>2]=o,o=u[e+60|0]|u[e+61|0]<<8|u[e+62|0]<<16|u[e+63|0]<<24,c[r+56>>2]=u[e+56|0]|u[e+57|0]<<8|u[e+58|0]<<16|u[e+59|0]<<24,c[r+60>>2]=o,Ee(t,r,n),$e(e,64),$e(a,256),a=0}return m=r- -64|0,a}Le(),i()}b(1280,1142,306,1086),i()}function O(e,t){var n,r,a,i,o,f,d,l,p,b,h,y,v,g,A,w,x=0,_=0,S=0,E=0,C=0,T=0,O=0;for(m=n=m-320|0,j(r=e+40|0,t),c[e+84>>2]=0,c[e+88>>2]=0,c[e+80>>2]=1,c[e+92>>2]=0,c[e+96>>2]=0,c[e+100>>2]=0,c[e+104>>2]=0,c[e+108>>2]=0,c[e+112>>2]=0,c[e+116>>2]=0,I(T=n+240|0,r),k(E=n+192|0,T,1344),O=-1,a=c[n+240>>2]-1|0,c[n+240>>2]=a,c[n+192>>2]=c[n+192>>2]+1,i=c[n+244>>2],o=c[n+248>>2],f=c[n+252>>2],d=c[n+256>>2],l=c[n+260>>2],p=c[n+264>>2],b=c[n+268>>2],h=c[n+272>>2],y=c[n+276>>2],I(C=n+144|0,E),k(C,C,E),I(e,C),k(e,e,E),k(e,e,T),m=_=m-144|0,I(S=_+96|0,e),I(x=_+48|0,S),I(x,x),k(x,e,x),k(S,S,x),I(S,S),k(S,x,S),I(x,S),I(x,x),I(x,x),I(x,x),I(x,x),k(S,x,S),I(x,S),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),k(x,x,S),I(_,x),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),I(_,_),k(x,_,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),k(S,x,S),I(x,S),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),k(x,x,S),I(_,x),x=1;I(_,_),100!=(0|(x=x+1|0)););k(x=_+48|0,_,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),I(x,x),k(S=_+96|0,x,S),I(S,S),I(S,S),k(e,S,e),m=_+144|0,k(e,e,C),k(e,e,T),I(x=n+96|0,e),k(x,x,E),x=c[n+132>>2],c[n+84>>2]=x-y,_=c[n+128>>2],c[n+80>>2]=_-h,S=c[n+124>>2],c[n+76>>2]=S-b,E=c[n+120>>2],c[n+72>>2]=E-p,C=c[n+116>>2],c[n+68>>2]=C-l,T=c[n+112>>2],c[n+64>>2]=T-d,v=c[n+108>>2],c[n+60>>2]=v-f,g=c[n+104>>2],c[n+56>>2]=g-o,A=c[n+100>>2],c[n+52>>2]=A-i,w=c[n+96>>2],c[n+48>>2]=w-a,Y(n,n+48|0);e:{if(!oe(n,32)){if(c[n+36>>2]=x+y,c[n+32>>2]=_+h,c[n+28>>2]=S+b,c[n+24>>2]=E+p,c[n+20>>2]=C+l,c[n+16>>2]=T+d,c[n+12>>2]=f+v,c[n+8>>2]=o+g,c[n+4>>2]=i+A,c[n>>2]=a+w,Y(x=n+288|0,n),!oe(x,32))break e;k(e,e,1392)}Y(n+288|0,e),(1&s[n+288|0])==(u[t+31|0]>>>7|0)&&(c[e>>2]=0-c[e>>2],c[e+36>>2]=0-c[e+36>>2],c[e+32>>2]=0-c[e+32>>2],c[e+28>>2]=0-c[e+28>>2],c[e+24>>2]=0-c[e+24>>2],c[e+20>>2]=0-c[e+20>>2],c[e+16>>2]=0-c[e+16>>2],c[e+12>>2]=0-c[e+12>>2],c[e+8>>2]=0-c[e+8>>2],c[e+4>>2]=0-c[e+4>>2]),k(e+120|0,e,r),O=0}return m=n+320|0,O}function P(e,t,n){var r,a,i,o,c,f,d,l,p,b,h,y,m=0,v=0,g=0,A=0,w=0,x=0,_=0,k=0,S=0,I=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,R=0,N=0,D=0;for(w=1634760805,v=r=u[0|n]|u[n+1|0]<<8|u[n+2|0]<<16|u[n+3|0]<<24,x=a=u[n+4|0]|u[n+5|0]<<8|u[n+6|0]<<16|u[n+7|0]<<24,_=i=u[n+8|0]|u[n+9|0]<<8|u[n+10|0]<<16|u[n+11|0]<<24,k=o=u[n+12|0]|u[n+13|0]<<8|u[n+14|0]<<16|u[n+15|0]<<24,C=857760878,S=c=u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24,g=f=u[t+4|0]|u[t+5|0]<<8|u[t+6|0]<<16|u[t+7|0]<<24,E=d=u[t+8|0]|u[t+9|0]<<8|u[t+10|0]<<16|u[t+11|0]<<24,O=l=u[t+12|0]|u[t+13|0]<<8|u[t+14|0]<<16|u[t+15|0]<<24,t=2036477234,A=p=u[n+16|0]|u[n+17|0]<<8|u[n+18|0]<<16|u[n+19|0]<<24,m=1797285236,P=b=u[n+28|0]|u[n+29|0]<<8|u[n+30|0]<<16|u[n+31|0]<<24,T=h=u[n+24|0]|u[n+25|0]<<8|u[n+26|0]<<16|u[n+27|0]<<24,n=y=u[n+20|0]|u[n+21|0]<<8|u[n+22|0]<<16|u[n+23|0]<<24;I=Be(v+C|0,7)^O,M=Be(I+C|0,9)^T,k=Be(n+w|0,7)^k,B=Be(k+w|0,9)^E,N=Be(B+k|0,13)^n,_=Be(m+A|0,7)^_,R=Be(_+m|0,9)^g,E=Be(_+R|0,13)^A,A=Be(R+E|0,18)^m,g=Be(t+S|0,7)^P,n=N^Be(A+g|0,7),T=M^Be(n+A|0,9),P=Be(n+T|0,13)^g,m=Be(T+P|0,18)^A,x=Be(t+g|0,9)^x,S=Be(x+g|0,13)^S,t=Be(S+x|0,18)^t,A=Be(t+I|0,7)^E,E=Be(A+t|0,9)^B,O=Be(A+E|0,13)^I,t=Be(E+O|0,18)^t,I=Be(I+M|0,13)^v,v=Be(I+M|0,18)^C,S=Be(v+k|0,7)^S,g=Be(S+v|0,9)^R,k=Be(g+S|0,13)^k,C=Be(g+k|0,18)^v,w=Be(B+N|0,18)^w,v=Be(w+_|0,7)^I,x=Be(v+w|0,9)^x,_=Be(v+x|0,13)^_,w=Be(x+_|0,18)^w,I=D>>>0<18,D=D+2|0,I;);m=m+1797285236|0,s[e+60|0]=m,s[e+61|0]=m>>>8,s[e+62|0]=m>>>16,s[e+63|0]=m>>>24,m=P+b|0,s[e+56|0]=m,s[e+57|0]=m>>>8,s[e+58|0]=m>>>16,s[e+59|0]=m>>>24,m=T+h|0,s[e+52|0]=m,s[e+53|0]=m>>>8,s[e+54|0]=m>>>16,s[e+55|0]=m>>>24,n=n+y|0,s[e+48|0]=n,s[e+49|0]=n>>>8,s[e+50|0]=n>>>16,s[e+51|0]=n>>>24,n=A+p|0,s[e+44|0]=n,s[e+45|0]=n>>>8,s[e+46|0]=n>>>16,s[e+47|0]=n>>>24,t=t+2036477234|0,s[e+40|0]=t,s[e+41|0]=t>>>8,s[e+42|0]=t>>>16,s[e+43|0]=t>>>24,t=O+l|0,s[e+36|0]=t,s[e+37|0]=t>>>8,s[e+38|0]=t>>>16,s[e+39|0]=t>>>24,t=E+d|0,s[e+32|0]=t,s[e+33|0]=t>>>8,s[e+34|0]=t>>>16,s[e+35|0]=t>>>24,t=g+f|0,s[e+28|0]=t,s[e+29|0]=t>>>8,s[e+30|0]=t>>>16,s[e+31|0]=t>>>24,t=S+c|0,s[e+24|0]=t,s[e+25|0]=t>>>8,s[e+26|0]=t>>>16,s[e+27|0]=t>>>24,t=C+857760878|0,s[e+20|0]=t,s[e+21|0]=t>>>8,s[e+22|0]=t>>>16,s[e+23|0]=t>>>24,t=k+o|0,s[e+16|0]=t,s[e+17|0]=t>>>8,s[e+18|0]=t>>>16,s[e+19|0]=t>>>24,t=_+i|0,s[e+12|0]=t,s[e+13|0]=t>>>8,s[e+14|0]=t>>>16,s[e+15|0]=t>>>24,t=x+a|0,s[e+8|0]=t,s[e+9|0]=t>>>8,s[e+10|0]=t>>>16,s[e+11|0]=t>>>24,t=v+r|0,s[e+4|0]=t,s[e+5|0]=t>>>8,s[e+6|0]=t>>>16,s[e+7|0]=t>>>24,t=w+1634760805|0,s[0|e]=t,s[e+1|0]=t>>>8,s[e+2|0]=t>>>16,s[e+3|0]=t>>>24}function M(e,t,n,r){var a=0,i=0,o=0,s=0,f=0,l=0,p=0,b=0,h=0,y=0,m=0,g=0,A=0,w=0,x=0,_=0,k=0,S=0,I=0,E=0,C=0,T=0,O=0,P=0,M=0;if(m=c[e+36>>2],h=c[e+32>>2],y=c[e+28>>2],p=c[e+24>>2],b=c[e+20>>2],!r&n>>>0>=16|r)for(C=!u[e+80|0]<<24,A=c[e+4>>2],T=d(A,5),x=c[e+8>>2],I=d(x,5),k=c[e+12>>2],S=d(k,5),E=c[e+16>>2],_=d(E,5),w=c[e>>2];a=me(o=((u[t+3|0]|u[t+4|0]<<8|u[t+5|0]<<16|u[t+6|0]<<24)>>>2&67108863)+p|0,0,k,0),f=v,b=(s=me(p=(67108863&(u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24))+b|0,0,E,0))+a|0,a=v+f|0,a=s>>>0>b>>>0?a+1|0:a,f=me(y=((u[t+6|0]|u[t+7|0]<<8|u[t+8|0]<<16|u[t+9|0]<<24)>>>4&67108863)+y|0,0,x,0),a=v+a|0,a=f>>>0>(b=f+b|0)>>>0?a+1|0:a,f=me(h=((u[t+9|0]|u[t+10|0]<<8|u[t+11|0]<<16|u[t+12|0]<<24)>>>6|0)+h|0,0,A,0),a=v+a|0,a=f>>>0>(b=f+b|0)>>>0?a+1|0:a,f=me(m=m+C+((u[t+12|0]|u[t+13|0]<<8|u[t+14|0]<<16|u[t+15|0]<<24)>>>8)|0,0,w,0),a=v+a|0,O=b=f+b|0,b=f>>>0>b>>>0?a+1|0:a,a=me(o,0,x,0),f=v,s=me(p,0,k,0),i=v+f|0,i=(a=s+a|0)>>>0>>0?i+1|0:i,f=(s=me(y,0,A,0))+a|0,a=v+i|0,a=s>>>0>f>>>0?a+1|0:a,s=me(h,0,w,0),a=v+a|0,a=s>>>0>(f=s+f|0)>>>0?a+1|0:a,s=me(m,0,_,0),a=v+a|0,P=f=s+f|0,f=s>>>0>f>>>0?a+1|0:a,a=me(o,0,A,0),l=v,s=(i=me(p,0,x,0))+a|0,a=v+l|0,a=i>>>0>s>>>0?a+1|0:a,l=me(y,0,w,0),i=v+a|0,i=(s=l+s|0)>>>0>>0?i+1|0:i,l=me(h,0,_,0),a=v+i|0,a=(s=l+s|0)>>>0>>0?a+1|0:a,l=me(m,0,S,0),a=v+a|0,M=s=l+s|0,s=s>>>0>>0?a+1|0:a,a=me(o,0,w,0),i=v,l=(g=me(p,0,A,0))+a|0,a=v+i|0,a=l>>>0>>0?a+1|0:a,i=me(y,0,_,0),a=v+a|0,a=i>>>0>(l=i+l|0)>>>0?a+1|0:a,g=me(h,0,S,0),i=v+a|0,i=(l=g+l|0)>>>0>>0?i+1|0:i,g=me(m,0,I,0),a=v+i|0,a=(l=g+l|0)>>>0>>0?a+1|0:a,g=l,l=a,a=me(o,0,_,0),i=v,o=(p=me(p,0,w,0))+a|0,a=v+i|0,a=o>>>0

>>0?a+1|0:a,p=me(y,0,S,0),a=v+a|0,a=(o=p+o|0)>>>0

>>0?a+1|0:a,p=me(h,0,I,0),a=v+a|0,a=(o=p+o|0)>>>0

>>0?a+1|0:a,p=me(m,0,T,0),i=v+a|0,i=(o=p+o|0)>>>0

>>0?i+1|0:i,p=o,a=l,a=(o=(y=(67108863&i)<<6|o>>>26)+g|0)>>>0>>0?a+1|0:a,y=o,h=(67108863&a)<<6|o>>>26,a=s,a=(o=h+M|0)>>>0>>0?a+1|0:a,h=o,i=f,m=a=(o=(67108863&a)<<6|o>>>26)+P|0,f=(67108863&(i=a>>>0>>0?i+1|0:i))<<6|a>>>26,a=b,p=(67108863&y)+((a=d((67108863&((o=f+O|0)>>>0>>0?a+1|0:a))<<6|o>>>26,5)+(67108863&p)|0)>>>26|0)|0,y=67108863&h,h=67108863&m,m=67108863&o,b=67108863&a,t=t+16|0,!(r=r-(n>>>0<16)|0)&(n=n-16|0)>>>0>15|r;);c[e+20>>2]=b,c[e+36>>2]=m,c[e+32>>2]=h,c[e+28>>2]=y,c[e+24>>2]=p}function B(e,t,n,r){e|=0,t|=0;var a=0;return a=-1,(r|=0)-65>>>0<4294967232|(n|=0)>>>0>64||(n&&t?(m=a=m-128|0,!t|((r&=255)-65&255)>>>0<=191|((n&=255)-65&255)>>>0<=191?(Le(),i()):(Ce(e- -64|0,0,293),s[e+56|0]=121,s[e+57|0]=33,s[e+58|0]=126,s[e+59|0]=19,s[e+60|0]=25,s[e+61|0]=205,s[e+62|0]=224,s[e+63|0]=91,s[e+48|0]=107,s[e+49|0]=189,s[e+50|0]=65,s[e+51|0]=251,s[e+52|0]=171,s[e+53|0]=217,s[e+54|0]=131,s[e+55|0]=31,s[e+40|0]=31,s[e+41|0]=108,s[e+42|0]=62,s[e+43|0]=43,s[e+44|0]=140,s[e+45|0]=104,s[e+46|0]=5,s[e+47|0]=155,s[e+32|0]=209,s[e+33|0]=130,s[e+34|0]=230,s[e+35|0]=173,s[e+36|0]=127,s[e+37|0]=82,s[e+38|0]=14,s[e+39|0]=81,s[e+24|0]=241,s[e+25|0]=54,s[e+26|0]=29,s[e+27|0]=95,s[e+28|0]=58,s[e+29|0]=245,s[e+30|0]=79,s[e+31|0]=165,s[e+16|0]=43,s[e+17|0]=248,s[e+18|0]=148,s[e+19|0]=254,s[e+20|0]=114,s[e+21|0]=243,s[e+22|0]=110,s[e+23|0]=60,s[e+8|0]=59,s[e+9|0]=167,s[e+10|0]=202,s[e+11|0]=132,s[e+12|0]=133,s[e+13|0]=174,s[e+14|0]=103,s[e+15|0]=187,r=-222443256^(n<<8|r),s[0|e]=r,s[e+1|0]=r>>>8,s[e+2|0]=r>>>16,s[e+3|0]=r>>>24,r=n>>>24^1779033703,s[e+4|0]=r,s[e+5|0]=r>>>8,s[e+6|0]=r>>>16,s[e+7|0]=r>>>24,Ce(n+a|0,0,n<<24>>24>=0?128-n|0:0),n=Ee(a,t,n),Ee(e+96|0,n,128),t=128+(u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24)|0,s[e+352|0]=t,s[e+353|0]=t>>>8,s[e+354|0]=t>>>16,s[e+355|0]=t>>>24,$e(n,128),m=n+128|0)):(((t=255&r)-65&255)>>>0<=191&&(Le(),i()),Ce(e- -64|0,0,293),s[e+56|0]=121,s[e+57|0]=33,s[e+58|0]=126,s[e+59|0]=19,s[e+60|0]=25,s[e+61|0]=205,s[e+62|0]=224,s[e+63|0]=91,s[e+48|0]=107,s[e+49|0]=189,s[e+50|0]=65,s[e+51|0]=251,s[e+52|0]=171,s[e+53|0]=217,s[e+54|0]=131,s[e+55|0]=31,s[e+40|0]=31,s[e+41|0]=108,s[e+42|0]=62,s[e+43|0]=43,s[e+44|0]=140,s[e+45|0]=104,s[e+46|0]=5,s[e+47|0]=155,s[e+32|0]=209,s[e+33|0]=130,s[e+34|0]=230,s[e+35|0]=173,s[e+36|0]=127,s[e+37|0]=82,s[e+38|0]=14,s[e+39|0]=81,s[e+24|0]=241,s[e+25|0]=54,s[e+26|0]=29,s[e+27|0]=95,s[e+28|0]=58,s[e+29|0]=245,s[e+30|0]=79,s[e+31|0]=165,s[e+16|0]=43,s[e+17|0]=248,s[e+18|0]=148,s[e+19|0]=254,s[e+20|0]=114,s[e+21|0]=243,s[e+22|0]=110,s[e+23|0]=60,s[e+8|0]=59,s[e+9|0]=167,s[e+10|0]=202,s[e+11|0]=132,s[e+12|0]=133,s[e+13|0]=174,s[e+14|0]=103,s[e+15|0]=187,t^=-222443256,s[0|e]=t,s[e+1|0]=t>>>8,s[e+2|0]=t>>>16,s[e+3|0]=t>>>24,s[e+4|0]=103,s[e+5|0]=230,s[e+6|0]=9,s[e+7|0]=106),a=0),0|a}function R(e,t,n){var r,a,i,o,s,u,f,d,l,p,b,h=0,y=0,m=0,v=0,g=0,A=0,w=0,x=0,_=0,S=0,I=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,R=0;h=c[t+40>>2],y=c[t+4>>2],v=c[t+44>>2],g=c[t+8>>2],A=c[t+48>>2],w=c[t+12>>2],x=c[t+52>>2],_=c[t+16>>2],S=c[t+56>>2],I=c[t+20>>2],E=c[t+60>>2],C=c[t+24>>2],T=c[(m=t- -64|0)>>2],O=c[t+28>>2],P=c[t+68>>2],M=c[t+32>>2],B=c[t+72>>2],R=c[t>>2],c[e+36>>2]=c[t+36>>2]+c[t+76>>2],c[e+32>>2]=M+B,c[e+28>>2]=O+P,c[e+24>>2]=C+T,c[e+20>>2]=I+E,c[e+16>>2]=_+S,c[e+12>>2]=w+x,c[e+8>>2]=g+A,c[e+4>>2]=y+v,c[e>>2]=h+R,v=c[t+40>>2],h=c[t+4>>2],g=c[t+44>>2],A=c[t+8>>2],w=c[t+48>>2],x=c[t+12>>2],_=c[t+52>>2],S=c[t+16>>2],I=c[t+56>>2],E=c[t+20>>2],C=c[t+60>>2],T=c[t+24>>2],m=c[m>>2],y=c[t+28>>2],O=c[t+68>>2],P=c[t+32>>2],M=c[t+72>>2],B=c[t>>2],c[e+76>>2]=c[t+76>>2]-c[t+36>>2],c[e+72>>2]=M-P,c[e+68>>2]=O-y,c[(y=e- -64|0)>>2]=m-T,c[e+60>>2]=C-E,c[e+56>>2]=I-S,c[e+52>>2]=_-x,c[e+48>>2]=w-A,c[e+44>>2]=g-h,c[(h=e+40|0)>>2]=v-B,k(e+80|0,e,n+40|0),k(h,h,n),k(e+120|0,n+120|0,t+120|0),k(e,t+80|0,n+80|0),R=c[e+4>>2],i=c[e+8>>2],o=c[e+12>>2],s=c[e+16>>2],u=c[e+20>>2],f=c[e+24>>2],d=c[e+28>>2],l=c[e+32>>2],p=c[e+36>>2],t=c[h>>2],n=c[e+80>>2],v=c[e+44>>2],g=c[e+84>>2],A=c[e+48>>2],w=c[e+88>>2],x=c[e+52>>2],_=c[e+92>>2],S=c[e+56>>2],I=c[e+96>>2],E=c[e+60>>2],C=c[e+100>>2],m=c[y>>2],T=c[e+104>>2],O=c[e+68>>2],P=c[e+108>>2],M=c[e+72>>2],B=c[e+112>>2],b=c[e>>2],r=c[e+76>>2],a=c[e+116>>2],c[e+76>>2]=r+a,c[e+72>>2]=M+B,c[e+68>>2]=O+P,c[y>>2]=m+T,c[e+60>>2]=E+C,c[e+56>>2]=S+I,c[e+52>>2]=x+_,c[e+48>>2]=A+w,c[e+44>>2]=v+g,c[h>>2]=t+n,c[e+36>>2]=a-r,c[e+32>>2]=B-M,c[e+28>>2]=P-O,c[e+24>>2]=T-m,c[e+20>>2]=C-E,c[e+16>>2]=I-S,c[e+12>>2]=_-x,c[e+8>>2]=w-A,c[e+4>>2]=g-v,c[e>>2]=n-t,t=c[e+156>>2],n=p<<1,c[e+156>>2]=t+n,h=c[e+152>>2],y=l<<1,c[e+152>>2]=h+y,v=c[e+148>>2],g=d<<1,c[e+148>>2]=v+g,A=c[e+144>>2],w=f<<1,c[e+144>>2]=A+w,x=c[e+140>>2],_=u<<1,c[e+140>>2]=x+_,S=c[e+136>>2],I=s<<1,c[e+136>>2]=S+I,E=c[e+132>>2],C=o<<1,c[e+132>>2]=E+C,m=c[e+128>>2],T=i<<1,c[e+128>>2]=m+T,O=c[e+124>>2],P=R<<1,c[e+124>>2]=O+P,M=c[e+120>>2],B=b<<1,c[e+120>>2]=M+B,c[e+112>>2]=y-h,c[e+108>>2]=g-v,c[e+104>>2]=w-A,c[e+100>>2]=_-x,c[e+96>>2]=I-S,c[e+92>>2]=C-E,c[e+88>>2]=T-m,c[e+84>>2]=P-O,c[e+80>>2]=B-M,c[e+116>>2]=n-t}function N(e,t,n){var r,a,i,o,s,u,f,d,l,p,b,h=0,y=0,m=0,v=0,g=0,A=0,w=0,x=0,_=0,S=0,I=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,R=0;h=c[t+40>>2],y=c[t+4>>2],v=c[t+44>>2],g=c[t+8>>2],A=c[t+48>>2],w=c[t+12>>2],x=c[t+52>>2],_=c[t+16>>2],S=c[t+56>>2],I=c[t+20>>2],E=c[t+60>>2],C=c[t+24>>2],T=c[(m=t- -64|0)>>2],O=c[t+28>>2],P=c[t+68>>2],M=c[t+32>>2],B=c[t+72>>2],R=c[t>>2],c[e+36>>2]=c[t+36>>2]+c[t+76>>2],c[e+32>>2]=M+B,c[e+28>>2]=O+P,c[e+24>>2]=C+T,c[e+20>>2]=I+E,c[e+16>>2]=_+S,c[e+12>>2]=w+x,c[e+8>>2]=g+A,c[e+4>>2]=y+v,c[e>>2]=h+R,v=c[t+40>>2],h=c[t+4>>2],g=c[t+44>>2],A=c[t+8>>2],w=c[t+48>>2],x=c[t+12>>2],_=c[t+52>>2],S=c[t+16>>2],I=c[t+56>>2],E=c[t+20>>2],C=c[t+60>>2],T=c[t+24>>2],m=c[m>>2],y=c[t+28>>2],O=c[t+68>>2],P=c[t+32>>2],M=c[t+72>>2],B=c[t>>2],c[e+76>>2]=c[t+76>>2]-c[t+36>>2],c[e+72>>2]=M-P,c[e+68>>2]=O-y,c[(y=e- -64|0)>>2]=m-T,c[e+60>>2]=C-E,c[e+56>>2]=I-S,c[e+52>>2]=_-x,c[e+48>>2]=w-A,c[e+44>>2]=g-h,c[(h=e+40|0)>>2]=v-B,k(e+80|0,e,n),k(h,h,n+40|0),k(e+120|0,n+120|0,t+120|0),k(e,t+80|0,n+80|0),R=c[e+4>>2],i=c[e+8>>2],o=c[e+12>>2],s=c[e+16>>2],u=c[e+20>>2],f=c[e+24>>2],d=c[e+28>>2],l=c[e+32>>2],p=c[e+36>>2],t=c[h>>2],n=c[e+80>>2],v=c[e+44>>2],g=c[e+84>>2],A=c[e+48>>2],w=c[e+88>>2],x=c[e+52>>2],_=c[e+92>>2],S=c[e+56>>2],I=c[e+96>>2],E=c[e+60>>2],C=c[e+100>>2],m=c[y>>2],T=c[e+104>>2],O=c[e+68>>2],P=c[e+108>>2],M=c[e+72>>2],B=c[e+112>>2],b=c[e>>2],r=c[e+76>>2],a=c[e+116>>2],c[e+76>>2]=r+a,c[e+72>>2]=M+B,c[e+68>>2]=O+P,c[y>>2]=m+T,c[e+60>>2]=E+C,c[e+56>>2]=S+I,c[e+52>>2]=x+_,c[e+48>>2]=A+w,c[e+44>>2]=v+g,c[h>>2]=t+n,c[e+36>>2]=a-r,c[e+32>>2]=B-M,c[e+28>>2]=P-O,c[e+24>>2]=T-m,c[e+20>>2]=C-E,c[e+16>>2]=I-S,c[e+12>>2]=_-x,c[e+8>>2]=w-A,c[e+4>>2]=g-v,c[e>>2]=n-t,t=p<<1,n=c[e+156>>2],c[e+156>>2]=t-n,h=l<<1,y=c[e+152>>2],c[e+152>>2]=h-y,v=d<<1,g=c[e+148>>2],c[e+148>>2]=v-g,A=f<<1,w=c[e+144>>2],c[e+144>>2]=A-w,x=u<<1,_=c[e+140>>2],c[e+140>>2]=x-_,S=s<<1,I=c[e+136>>2],c[e+136>>2]=S-I,E=o<<1,C=c[e+132>>2],c[e+132>>2]=E-C,m=i<<1,T=c[e+128>>2],c[e+128>>2]=m-T,O=R<<1,P=c[e+124>>2],c[e+124>>2]=O-P,M=b<<1,B=c[e+120>>2],c[e+120>>2]=M-B,c[e+112>>2]=h+y,c[e+108>>2]=v+g,c[e+104>>2]=A+w,c[e+100>>2]=x+_,c[e+96>>2]=S+I,c[e+92>>2]=E+C,c[e+88>>2]=m+T,c[e+84>>2]=O+P,c[e+80>>2]=M+B,c[e+116>>2]=t+n}function D(e,t,n){var r,a,i,o,s,u,f,d,l,p,b,h=0,y=0,m=0,v=0,g=0,A=0,w=0,x=0,_=0,S=0,I=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,R=0;h=c[t+40>>2],y=c[t+4>>2],v=c[t+44>>2],g=c[t+8>>2],A=c[t+48>>2],w=c[t+12>>2],x=c[t+52>>2],_=c[t+16>>2],S=c[t+56>>2],I=c[t+20>>2],E=c[t+60>>2],C=c[t+24>>2],T=c[(m=t- -64|0)>>2],O=c[t+28>>2],P=c[t+68>>2],M=c[t+32>>2],B=c[t+72>>2],R=c[t>>2],c[e+36>>2]=c[t+36>>2]+c[t+76>>2],c[e+32>>2]=M+B,c[e+28>>2]=O+P,c[e+24>>2]=C+T,c[e+20>>2]=I+E,c[e+16>>2]=_+S,c[e+12>>2]=w+x,c[e+8>>2]=g+A,c[e+4>>2]=y+v,c[e>>2]=h+R,v=c[t+40>>2],h=c[t+4>>2],g=c[t+44>>2],A=c[t+8>>2],w=c[t+48>>2],x=c[t+12>>2],_=c[t+52>>2],S=c[t+16>>2],I=c[t+56>>2],E=c[t+20>>2],C=c[t+60>>2],T=c[t+24>>2],m=c[m>>2],y=c[t+28>>2],O=c[t+68>>2],P=c[t+32>>2],M=c[t+72>>2],B=c[t>>2],c[e+76>>2]=c[t+76>>2]-c[t+36>>2],c[e+72>>2]=M-P,c[e+68>>2]=O-y,c[(y=e- -64|0)>>2]=m-T,c[e+60>>2]=C-E,c[e+56>>2]=I-S,c[e+52>>2]=_-x,c[e+48>>2]=w-A,c[e+44>>2]=g-h,c[(h=e+40|0)>>2]=v-B,k(e+80|0,e,n),k(h,h,n+40|0),k(e+120|0,n+80|0,t+120|0),R=c[t+80>>2],i=c[t+84>>2],o=c[t+88>>2],s=c[t+92>>2],u=c[t+96>>2],f=c[t+100>>2],d=c[t+104>>2],l=c[t+108>>2],p=c[t+112>>2],b=c[t+116>>2],t=c[h>>2],n=c[e+80>>2],v=c[e+44>>2],g=c[e+84>>2],A=c[e+48>>2],w=c[e+88>>2],x=c[e+52>>2],_=c[e+92>>2],S=c[e+56>>2],I=c[e+96>>2],E=c[e+60>>2],C=c[e+100>>2],m=c[y>>2],T=c[e+104>>2],O=c[e+68>>2],P=c[e+108>>2],M=c[e+72>>2],B=c[e+112>>2],r=c[e+76>>2],a=c[e+116>>2],c[e+76>>2]=r+a,c[e+72>>2]=M+B,c[e+68>>2]=O+P,c[y>>2]=m+T,c[e+60>>2]=E+C,c[e+56>>2]=S+I,c[e+52>>2]=x+_,c[e+48>>2]=A+w,c[e+44>>2]=v+g,c[h>>2]=t+n,c[e+36>>2]=a-r,c[e+32>>2]=B-M,c[e+28>>2]=P-O,c[e+24>>2]=T-m,c[e+20>>2]=C-E,c[e+16>>2]=I-S,c[e+12>>2]=_-x,c[e+8>>2]=w-A,c[e+4>>2]=g-v,c[e>>2]=n-t,t=b<<1,n=c[e+156>>2],c[e+156>>2]=t-n,h=p<<1,y=c[e+152>>2],c[e+152>>2]=h-y,v=l<<1,g=c[e+148>>2],c[e+148>>2]=v-g,A=d<<1,w=c[e+144>>2],c[e+144>>2]=A-w,x=f<<1,_=c[e+140>>2],c[e+140>>2]=x-_,S=u<<1,I=c[e+136>>2],c[e+136>>2]=S-I,E=s<<1,C=c[e+132>>2],c[e+132>>2]=E-C,m=o<<1,T=c[e+128>>2],c[e+128>>2]=m-T,O=i<<1,P=c[e+124>>2],c[e+124>>2]=O-P,M=R<<1,B=c[e+120>>2],c[e+120>>2]=M-B,c[e+112>>2]=h+y,c[e+108>>2]=v+g,c[e+104>>2]=A+w,c[e+100>>2]=x+_,c[e+96>>2]=S+I,c[e+92>>2]=E+C,c[e+88>>2]=m+T,c[e+84>>2]=O+P,c[e+80>>2]=M+B,c[e+116>>2]=t+n}function j(e,t){var n,r,a,i,o,s,f,d,l,p,b,h,y,m=0,g=0,A=0,w=0,x=0,_=0,k=0,S=0,I=0,E=0,C=0,T=0,O=0,P=0;h=u[t+31|0],n=u[t+30|0],r=u[t+29|0],a=u[t+6|0],i=u[t+5|0],o=u[t+4|0],s=u[t+9|0],f=u[t+8|0],d=u[t+7|0],E=u[t+12|0],C=u[t+11|0],l=u[t+10|0],p=u[t+15|0],T=u[t+14|0],b=u[t+13|0],k=u[t+28|0],I=u[t+27|0],S=u[t+26|0],_=u[t+25|0],w=u[t+24|0],A=u[t+23|0],y=u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24,x=(m=u[t+21|0])<<15,m=g=m>>>17|0,P=x,g=(x=u[t+20|0])>>>25|0,x=P|x<<7,O=m|g,m=(g=u[t+22|0])>>>9|0,x|=g<<23,m|=O,g=u[t+16|0]|u[t+17|0]<<8|u[t+18|0]<<16|u[t+19|0]<<24,t=0,P=g,g=(33554431&(t=(O=g+16777216|0)>>>0<16777216?1:t))<<7|O>>>25,t=(t>>>25|0)+m|0,g=(m=x=g+x|0)>>>0>>0?t+1|0:t,t=(x=m+33554432|0)>>>0<33554432?g+1|0:g,c[e+24>>2]=m-(-67108864&x),g=(m=A>>>27|0)|w>>>19|_>>>11,m=A=(w=_<<21|(A=w<<13|A<<5))+(m=(67108863&(m=t))<<6|x>>>26)|0,t=g,g=(A=w+16777216|0)>>>0<16777216?t+1|0:t,c[e+28>>2]=m-(1040187392&A),m=(m=I>>>20|S>>>28|k>>>12)+(g=(t=g)>>>25|0)|0,t=(g=A=(t=(33554431&t)<<7|A>>>25)+(I<<12|S<<4|k<<20)|0)>>>0>>0?m+1|0:m,A=(k=g+33554432|0)>>>0<33554432?t+1|0:t,c[e+32>>2]=g-(-67108864&k),m=(t=E>>>13|0)|(g=C>>>21|l>>>29),t=(m=(I=16777216+(E=C<<11|l<<3|E<<19)|0)>>>0<16777216?m+1|0:m)>>>25|0,m=(g=w=T<<10|b<<2|p<<18)+(w=(33554431&m)<<7|I>>>25)|0,g=t+(_=T>>>22|b>>>30|p>>>14)|0,t=m>>>0>>0?g+1|0:g,w=t=(67108863&(t=(g=m+33554432|0)>>>0<33554432?t+1|0:t))<<6|g>>>26,t=t+(S=P-(-33554432&O)|0)|0,c[e+20>>2]=t,c[e+16>>2]=m-(-67108864&g),g=i>>>18|o>>>26|a>>>10,m=(g=(S=16777216+(C=i<<14|o<<6|a<<22)|0)>>>0<16777216?g+1|0:g)>>>25|0,g=(t=w=f<<13|d<<5|s<<21)+(w=(33554431&g)<<7|S>>>25)|0,t=m+(_=f>>>19|d>>>27|s>>>11)|0,t=g>>>0>>0?t+1|0:t,m=(_=g+33554432|0)>>>0<33554432?t+1|0:t,c[e+8>>2]=g-(-67108864&_),k=(A=(67108863&A)<<6|k>>>26)+(T=h<<18&33292288|n<<10|r<<2)|0,t=g=n>>>22|r>>>30,g=(A=T+16777216|0)>>>0<16777216?t+1|0:t,c[e+36>>2]=k-(33554432&A),m=E+((67108863&m)<<6|_>>>26)|0,c[e+12>>2]=m-(234881024&I),w=C-(2113929216&S)|0,m=me((33554431&(t=g))<<7|A>>>25,g=t>>>25|0,19,0),t=v,m=m>>>0>(g=m+y|0)>>>0?t+1|0:t,A=m=(67108863&(m=(t=g+33554432|0)>>>0<33554432?m+1|0:m))<<6|t>>>26,m=m+w|0,c[e+4>>2]=m,c[e>>2]=g-(-67108864&t)}function U(e,t){var n,r,a,i=0,o=0,f=0,d=0,l=0,p=0,b=0,h=0,y=0,v=0,g=0,A=0;for(m=n=m-480|0;o=(f=n+288|0)+(i<<1)|0,h=u[t+i|0],s[o+1|0]=h>>>4,s[0|o]=15&h,f=f+((o=1|i)<<1)|0,o=u[t+o|0],s[f+1|0]=o>>>4,s[0|f]=15&o,32!=(0|(i=i+2|0)););for(t=0;i=8+(f=(i=t)+u[0|(t=(n+288|0)+d|0)]|0)|0,s[0|t]=f-(240&i),i=8+(f=u[t+1|0]+(i<<24>>24>>4)|0)|0,s[t+1|0]=f-(240&i),i=8+(f=u[t+2|0]+(i<<24>>24>>4)|0)|0,s[t+2|0]=f-(240&i),t=i<<24>>24>>4,63!=(0|(d=d+3|0)););for(s[n+351|0]=u[n+351|0]+t,c[e+32>>2]=0,c[e+36>>2]=0,c[e+24>>2]=0,c[e+28>>2]=0,c[e+16>>2]=0,c[e+20>>2]=0,c[e+8>>2]=0,c[e+12>>2]=0,c[e>>2]=0,c[e+4>>2]=0,c[e+44>>2]=0,c[e+48>>2]=0,c[(h=e+40|0)>>2]=1,c[e+52>>2]=0,c[e+56>>2]=0,c[e+60>>2]=0,c[e+64>>2]=0,c[e+68>>2]=0,c[e+72>>2]=0,c[e+76>>2]=0,c[e+80>>2]=1,Ce(e+84|0,0,76),r=e+120|0,a=e+80|0,t=n+208|0,f=n+168|0,d=n+248|0,i=1;K(l=n+8|0,i>>>1|0,s[(n+288|0)+i|0]),D(o=n+128|0,e,l),k(e,o,d),k(h,f,t),k(a,t,d),k(r,o,f),o=i>>>0<62,i=i+2|0,o;);for(i=c[e+8>>2],o=c[e+12>>2],l=c[e+16>>2],p=c[e+20>>2],y=c[e+24>>2],v=c[e+28>>2],b=c[e>>2],g=c[e+4>>2],A=c[e+36>>2],c[n+392>>2]=c[e+32>>2],c[n+396>>2]=A,c[n+384>>2]=y,c[n+388>>2]=v,c[n+376>>2]=l,c[n+380>>2]=p,c[n+368>>2]=i,c[n+372>>2]=o,c[n+360>>2]=b,c[n+364>>2]=g,i=c[e+40>>2],o=c[e+44>>2],l=c[e+48>>2],p=c[e+52>>2],y=c[e+56>>2],v=c[e+60>>2],g=c[(b=e- -64|0)>>2],b=c[b+4>>2],A=c[e+76>>2],c[n+432>>2]=c[e+72>>2],c[n+436>>2]=A,c[n+424>>2]=g,c[n+428>>2]=b,c[n+416>>2]=y,c[n+420>>2]=v,c[n+408>>2]=l,c[n+412>>2]=p,c[n+400>>2]=i,c[n+404>>2]=o,i=c[e+80>>2],o=c[e+84>>2],l=c[e+88>>2],p=c[e+92>>2],y=c[e+96>>2],v=c[e+100>>2],b=c[e+104>>2],g=c[e+108>>2],A=c[e+116>>2],c[n+472>>2]=c[e+112>>2],c[n+476>>2]=A,c[n+464>>2]=b,c[n+468>>2]=g,c[n+456>>2]=y,c[n+460>>2]=v,c[n+448>>2]=l,c[n+452>>2]=p,c[n+440>>2]=i,c[n+444>>2]=o,S(i=n+128|0,o=n+360|0),k(o,i,d),k(l=n+400|0,f,t),k(p=n+440|0,t,d),S(i,o),k(o,i,d),k(l,f,t),k(p,t,d),S(i,o),k(o,i,d),k(l,f,t),k(p,t,d),S(i,o),k(e,i,d),k(h,f,t),k(a,t,d),k(r,i,f),i=0;K(l=n+8|0,i>>>1|0,s[(n+288|0)+i|0]),D(o=n+128|0,e,l),k(e,o,d),k(h,f,t),k(a,t,d),k(r,o,f),o=i>>>0<62,i=i+2|0,o;);m=n+480|0}function L(e,t,n,r){var a,i=0,o=0,f=0,d=0,l=0,p=0,b=0,h=0,y=0,v=0,g=0,A=0;if(m=a=m-704|0,n|r)if(i=(r<<3|n>>>29)+(o=f=c[e+76>>2])|0,l=(p=c[e+72>>2])+(d=n<<3)|0,c[e+72>>2]=l,i=d>>>0>l>>>0?i+1|0:i,c[e+76>>2]=i,f=c[4+(d=e- -64|0)>>2],f=(b=i=(0|i)==(0|o)&l>>>0

>>0|i>>>0>>0)>>>0>(i=i+c[d>>2]|0)>>>0?f+1|0:f,l=(b=r>>>29|0)+i|0,i=f,c[d>>2]=l,c[d+4>>2]=l>>>0>>0?i+1|0:i,(0|(f=b=0-((i=0)+((d=127&((7&o)<<29|p>>>3))>>>0>128)|0)|0))==(0|r)&n>>>0>=(l=128-d|0)>>>0|r>>>0>f>>>0){if(o=0,f=0,!i&(127^d)>>>0>=3|i)for(A=252&l,p=e+80|0;s[(i=o+d|0)+p|0]=u[t+o|0],s[p+(d+(i=1|o)|0)|0]=u[t+i|0],s[p+(d+(i=2|o)|0)|0]=u[t+i|0],s[p+(d+(i=3|o)|0)|0]=u[t+i|0],i=f,f=(o=o+4|0)>>>0<4?i+1|0:i,i=y,y=i=(v=v+4|0)>>>0<4?i+1|0:i,(0|v)!=(0|A)|(0|g)!=(0|i););if(p=i=0,i|(y=3&l))for(;s[80+(e+(i=o+d|0)|0)|0]=u[t+o|0],i=f,f=(o=o+1|0)?i:i+1|0,i=g,g=i=(h=h+1|0)?i:i+1|0,(0|y)!=(0|h)|(0|p)!=(0|i););if(w(e,e+80|0,a,o=a+640|0),t=t+l|0,!(r=r-((n>>>0>>0)+b|0)|0)&(n=n-l|0)>>>0>127|r)for(;w(e,t,a,o),t=t+128|0,!(r=r-(n>>>0<128)|0)&(n=n-128|0)>>>0>127|r;);if(n|r){if(v=3&n,l=0,h=0,g=0,o=0,f=0,!r&n>>>0>=4|r)for(d=-4&n,p=r,y=e+80|0,n=0,r=0;s[o+y|0]=u[t+o|0],s[(i=1|o)+y|0]=u[t+i|0],s[(i=2|o)+y|0]=u[t+i|0],s[(i=3|o)+y|0]=u[t+i|0],i=f,f=(o=o+4|0)>>>0<4?i+1|0:i,i=r,r=i=(n=n+4|0)>>>0<4?i+1|0:i,(0|n)!=(0|d)|(0|p)!=(0|i););if(l|v)for(;s[80+(e+o|0)|0]=u[t+o|0],f=(o=o+1|0)?f:f+1|0,i=g,g=i=(h=h+1|0)?i:i+1|0,(0|h)!=(0|v)|(0|l)!=(0|i););}$e(a,704)}else{if(o=0,f=0,!r&n>>>0>=4|r)for(l=-4&n,p=r,r=e+80|0;s[r+(i=o+d|0)|0]=u[t+o|0],s[r+(b=d+(i=1|o)|0)|0]=u[t+i|0],s[r+(b=d+(i=2|o)|0)|0]=u[t+i|0],s[r+(b=d+(i=3|o)|0)|0]=u[t+i|0],i=f,f=(o=o+4|0)>>>0<4?i+1|0:i,i=y,y=i=(v=v+4|0)>>>0<4?i+1|0:i,(0|l)!=(0|v)|(0|p)!=(0|i););if((n&=3)|(r=0))for(;s[80+(e+(i=o+d|0)|0)|0]=u[t+o|0],f=(o=o+1|0)?f:f+1|0,i=g,g=i=(h=h+1|0)?i:i+1|0,(0|n)!=(0|h)|(0|r)!=(0|i););}return m=a+704|0,0}function Z(e,t,n){var r=0,a=0,i=0,o=0,c=0,f=0,d=0,l=0,p=0,b=0,h=0,y=0,m=0,v=0,g=0,A=0,w=0,x=0,_=0,k=0;for(a=2036477234,o=857760878,r=1634760805,f=1797285236,i=u[t+12|0]|u[t+13|0]<<8|u[t+14|0]<<16|u[t+15|0]<<24,p=u[t+8|0]|u[t+9|0]<<8|u[t+10|0]<<16|u[t+11|0]<<24,c=u[t+4|0]|u[t+5|0]<<8|u[t+6|0]<<16|u[t+7|0]<<24,b=u[n+28|0]|u[n+29|0]<<8|u[n+30|0]<<16|u[n+31|0]<<24,d=u[n+24|0]|u[n+25|0]<<8|u[n+26|0]<<16|u[n+27|0]<<24,w=u[n+20|0]|u[n+21|0]<<8|u[n+22|0]<<16|u[n+23|0]<<24,h=u[n+16|0]|u[n+17|0]<<8|u[n+18|0]<<16|u[n+19|0]<<24,y=u[n+12|0]|u[n+13|0]<<8|u[n+14|0]<<16|u[n+15|0]<<24,m=u[n+8|0]|u[n+9|0]<<8|u[n+10|0]<<16|u[n+11|0]<<24,v=u[n+4|0]|u[n+5|0]<<8|u[n+6|0]<<16|u[n+7|0]<<24,t=u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24,n=u[0|n]|u[n+1|0]<<8|u[n+2|0]<<16|u[n+3|0]<<24;l=n,n=Be((g=t)^(t=n+r|0),16),l=h=Be(l^(r=n+h|0),12),x=Be((g=t+h|0)^n,8),t=Be(l^(h=x+r|0),7),r=y,y=Be((n=f+y|0)^i,16),r=Be(r^(b=y+b|0),12),i=m,f=Be((a=a+m|0)^p,16),i=Be(i^(m=f+d|0),12),d=Be((a=i+a|0)^f,8),n=Be(d^(f=t+(A=n+r|0)|0),16),p=Be((o=o+v|0)^c,16),v=Be((c=p+w|0)^v,12),l=t,t=Be((o=o+v|0)^p,8),l=Be(l^(c=n+(_=t+c|0)|0),12),p=Be(n^(f=l+f|0),8),n=Be((w=p+c|0)^l,7),l=a,a=r,A=Be(y^A,8),a=Be(a^(r=A+b|0),7),y=Be((c=l+a|0)^t,16),b=Be((t=y+h|0)^a,12),c=Be(y^(a=b+c|0),8),y=Be((h=t+c|0)^b,7),t=Be((t=i)^(i=d+m|0),7),m=Be((o=t+o|0)^x,16),d=Be(t^(r=m+r|0),12),t=Be(m^(o=d+o|0),8),m=Be((b=r+t|0)^d,7),l=i,r=Be(v^_,7),d=Be((i=r+g|0)^A,16),g=Be(r^(v=l+d|0),12),i=Be(d^(r=g+i|0),8),v=Be((d=v+i|0)^g,7),10!=(0|(k=k+1|0)););s[0|e]=r,s[e+1|0]=r>>>8,s[e+2|0]=r>>>16,s[e+3|0]=r>>>24,s[e+28|0]=i,s[e+29|0]=i>>>8,s[e+30|0]=i>>>16,s[e+31|0]=i>>>24,s[e+24|0]=p,s[e+25|0]=p>>>8,s[e+26|0]=p>>>16,s[e+27|0]=p>>>24,s[e+20|0]=c,s[e+21|0]=c>>>8,s[e+22|0]=c>>>16,s[e+23|0]=c>>>24,s[e+16|0]=t,s[e+17|0]=t>>>8,s[e+18|0]=t>>>16,s[e+19|0]=t>>>24,s[e+12|0]=f,s[e+13|0]=f>>>8,s[e+14|0]=f>>>16,s[e+15|0]=f>>>24,s[e+8|0]=a,s[e+9|0]=a>>>8,s[e+10|0]=a>>>16,s[e+11|0]=a>>>24,s[e+4|0]=o,s[e+5|0]=o>>>8,s[e+6|0]=o>>>16,s[e+7|0]=o>>>24}function F(e,t,n){var r=0,a=0,i=0,o=0,c=0,f=0,d=0,l=0,p=0,b=0,h=0,y=0,m=0,v=0,g=0,A=0,w=0,x=0,_=0,k=0;for(r=1797285236,d=2036477234,l=857760878,a=1634760805,i=u[t+12|0]|u[t+13|0]<<8|u[t+14|0]<<16|u[t+15|0]<<24,c=u[t+8|0]|u[t+9|0]<<8|u[t+10|0]<<16|u[t+11|0]<<24,o=u[t+4|0]|u[t+5|0]<<8|u[t+6|0]<<16|u[t+7|0]<<24,g=u[n+28|0]|u[n+29|0]<<8|u[n+30|0]<<16|u[n+31|0]<<24,v=u[n+24|0]|u[n+25|0]<<8|u[n+26|0]<<16|u[n+27|0]<<24,A=20,y=u[n+20|0]|u[n+21|0]<<8|u[n+22|0]<<16|u[n+23|0]<<24,m=u[n+16|0]|u[n+17|0]<<8|u[n+18|0]<<16|u[n+19|0]<<24,p=u[n+12|0]|u[n+13|0]<<8|u[n+14|0]<<16|u[n+15|0]<<24,b=u[n+8|0]|u[n+9|0]<<8|u[n+10|0]<<16|u[n+11|0]<<24,h=u[n+4|0]|u[n+5|0]<<8|u[n+6|0]<<16|u[n+7|0]<<24,t=u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24,n=u[0|n]|u[n+1|0]<<8|u[n+2|0]<<16|u[n+3|0]<<24;f=Be(n+l|0,7)^i,w=Be(f+l|0,9)^v,p=Be(a+y|0,7)^p,x=Be(p+a|0,9)^c,_=Be(x+p|0,13)^y,b=Be(r+m|0,7)^b,o=Be(b+r|0,9)^o,c=Be(o+b|0,13)^m,r=Be(o+c|0,18)^r,i=Be(t+d|0,7)^g,y=_^Be(r+i|0,7),v=w^Be(y+r|0,9),g=Be(y+v|0,13)^i,r=Be(v+g|0,18)^r,h=Be(i+d|0,9)^h,k=Be(h+i|0,13)^t,t=Be(k+h|0,18)^d,m=Be(t+f|0,7)^c,c=Be(m+t|0,9)^x,i=Be(c+m|0,13)^f,d=Be(i+c|0,18)^t,f=Be(f+w|0,13)^n,n=Be(f+w|0,18)^l,t=Be(n+p|0,7)^k,o=Be(t+n|0,9)^o,p=Be(t+o|0,13)^p,l=Be(o+p|0,18)^n,a=Be(x+_|0,18)^a,n=Be(a+b|0,7)^f,h=Be(n+a|0,9)^h,b=Be(n+h|0,13)^b,a=Be(h+b|0,18)^a,f=A>>>0>2,A=A-2|0,f;);return s[0|e]=a,s[e+1|0]=a>>>8,s[e+2|0]=a>>>16,s[e+3|0]=a>>>24,s[e+28|0]=i,s[e+29|0]=i>>>8,s[e+30|0]=i>>>16,s[e+31|0]=i>>>24,s[e+24|0]=c,s[e+25|0]=c>>>8,s[e+26|0]=c>>>16,s[e+27|0]=c>>>24,s[e+20|0]=o,s[e+21|0]=o>>>8,s[e+22|0]=o>>>16,s[e+23|0]=o>>>24,s[e+16|0]=t,s[e+17|0]=t>>>8,s[e+18|0]=t>>>16,s[e+19|0]=t>>>24,s[e+12|0]=r,s[e+13|0]=r>>>8,s[e+14|0]=r>>>16,s[e+15|0]=r>>>24,s[e+8|0]=d,s[e+9|0]=d>>>8,s[e+10|0]=d>>>16,s[e+11|0]=d>>>24,s[e+4|0]=l,s[e+5|0]=l>>>8,s[e+6|0]=l>>>16,s[e+7|0]=l>>>24,0}function H(e,t,n,r,a,o,s){var u=0,f=0,d=0,l=0,p=0,b=0,h=0;if(t-65>>>0<4294967232|s>>>0>64)e=-1;else{b=u=m,m=u=u-512&-64;e:{t:if(!(!(!(r|a)|n)|!e|((f=255&t)-65&255)>>>0<=191|!(!(t=255&s)||o)|t>>>0>=65)){if(t){if(!o)break t;Ce(u- -64|0,0,293),c[u+56>>2]=327033209,c[u+60>>2]=1541459225,c[u+48>>2]=-79577749,c[u+52>>2]=528734635,c[u+40>>2]=725511199,c[u+44>>2]=-1694144372,c[u+32>>2]=-1377402159,c[u+36>>2]=1359893119,c[u+24>>2]=1595750129,c[u+28>>2]=-1521486534,c[u+16>>2]=-23791573,c[u+20>>2]=1013904242,c[u+8>>2]=-2067093701,c[u+12>>2]=-1150833019,c[u>>2]=-222443256^(t<<8|f),c[u+4>>2]=t>>>24^1779033703,Ce((s=u+384|0)+t|0,0,128-t|0),Ee(s,o,t),Ee(u+96|0,s,128),c[u+352>>2]=128,$e(s,128),t=128}else Ce(u- -64|0,0,293),c[u+56>>2]=327033209,c[u+60>>2]=1541459225,c[u+48>>2]=-79577749,c[u+52>>2]=528734635,c[u+40>>2]=725511199,c[u+44>>2]=-1694144372,c[u+32>>2]=-1377402159,c[u+36>>2]=1359893119,c[u+24>>2]=1595750129,c[u+28>>2]=-1521486534,c[u+16>>2]=-23791573,c[u+20>>2]=1013904242,c[u+8>>2]=-2067093701,c[u+12>>2]=-1150833019,c[u>>2]=-222443256^f,c[u+4>>2]=1779033703,t=0;n:if(r|a)for(h=u+224|0,d=u+96|0;;){if(s=t+d|0,!a&r>>>0<=(o=256-t|0)>>>0){Ee(s,n,r),c[u+352>>2]=r+c[u+352>>2];break n}if(Ee(s,n,o),c[u+352>>2]=o+c[u+352>>2],l=t=c[u+68>>2],t=(p=(s=c[u+64>>2])+128|0)>>>0<128?t+1|0:t,c[u+64>>2]=p,c[u+68>>2]=t,t=c[u+76>>2],t=(l=s=-1==(0|l)&s>>>0>4294967167)>>>0>(s=s+c[u+72>>2]|0)>>>0?t+1|0:t,c[u+72>>2]=s,c[u+76>>2]=t,g(u,d),Ee(d,h,128),t=c[u+352>>2]-128|0,c[u+352>>2]=t,n=n+o|0,!((a=a-(r>>>0>>0)|0)|(r=r-o|0)))break}T(u,e,f),m=b;break e}Le(),i()}e=0}return e}function z(e,t,n,r){var a=0,i=0,o=0,f=0,d=0,l=0,p=0,b=0,h=0,y=0,m=0,v=0;e:{if((o=c[e+56>>2])|(a=c[e+60>>2])){if(h=i=16-o|0,d=(i=(0|(f=0-((o>>>0>16)+a|0)|0))==(0|r)&n>>>0>i>>>0|r>>>0>f>>>0)?h:n,h=i=i?f:r,i|d){if(i=0,o=0,!h&d>>>0>=4|h)for(l=-4&d,f=e- -64|0;a=i+c[e+56>>2]|0,s[a+f|0]=u[t+i|0],a=(y=1|i)+c[e+56>>2]|0,s[a+f|0]=u[t+y|0],a=(y=2|i)+c[e+56>>2]|0,s[a+f|0]=u[t+y|0],a=(y=3|i)+c[e+56>>2]|0,s[a+f|0]=u[t+y|0],a=o,o=(i=i+4|0)>>>0<4?a+1|0:a,a=p,p=a=(b=b+4|0)>>>0<4?a+1|0:a,(0|b)!=(0|l)|(0|h)!=(0|a););if(f=a=0,a|(p=3&d))for(;b=i+c[e+56>>2]|0,s[(e+b|0)- -64|0]=u[t+i|0],o=(i=i+1|0)?o:o+1|0,a=v,v=a=(m=m+1|0)?a:a+1|0,(0|p)!=(0|m)|(0|f)!=(0|a););o=c[e+56>>2],a=c[e+60>>2]}if(a=a+h|0,a=(o=o+d|0)>>>0>>0?a+1|0:a,c[e+56>>2]=o,c[e+60>>2]=a,!a&o>>>0<16)break e;M(e,e- -64|0,16,0),c[e+56>>2]=0,c[e+60>>2]=0,n=(o=n)-d|0,r=r-((o>>>0>>0)+h|0)|0,t=t+d|0}if(!r&n>>>0>=16|r&&(M(e,t,o=-16&n,r),n&=15,r=0,t=t+o|0),n|r){if(m=0,v=0,i=0,o=0,!r&n>>>0>=4|r)for(d=12&n,h=0,f=e- -64|0,b=0,p=0;a=i+c[e+56>>2]|0,s[a+f|0]=u[t+i|0],a=(l=1|i)+c[e+56>>2]|0,s[a+f|0]=u[t+l|0],a=(l=2|i)+c[e+56>>2]|0,s[a+f|0]=u[t+l|0],a=(l=3|i)+c[e+56>>2]|0,s[a+f|0]=u[t+l|0],o=(i=i+4|0)>>>0<4?o+1|0:o,a=p,p=a=(b=b+4|0)>>>0<4?a+1|0:a,(0|d)!=(0|b)|(0|h)!=(0|a););if(f=a=0,a|(p=3&n))for(;a=i+c[e+56>>2]|0,s[(e+a|0)- -64|0]=u[t+i|0],o=(i=i+1|0)?o:o+1|0,a=v,v=a=(m=m+1|0)?a:a+1|0,(0|p)!=(0|m)|(0|f)!=(0|a););o=r+c[e+60>>2]|0,o=(t=n+c[e+56>>2]|0)>>>0>>0?o+1|0:o,c[e+56>>2]=t,c[e+60>>2]=o}}}function q(e,t,n){var r,a=0,i=0,o=0,s=0,u=0,f=0,d=0,l=0,p=0,b=0,h=0,y=0,m=0,v=0,g=0,A=0,w=0,x=0,_=0;y=c[t+4>>2],a=c[e+4>>2],m=c[t+8>>2],i=c[e+8>>2],v=c[t+12>>2],o=c[e+12>>2],g=c[t+16>>2],s=c[e+16>>2],A=c[t+20>>2],u=c[e+20>>2],w=c[t+24>>2],f=c[e+24>>2],b=c[t+28>>2],d=c[e+28>>2],x=c[t+32>>2],l=c[e+32>>2],_=c[t+36>>2],p=c[e+36>>2],n=0-n|0,h=c[e>>2],c[e>>2]=n&(h^c[t>>2])^h,c[e+36>>2]=p^n&(p^_),c[e+32>>2]=l^n&(l^x),c[e+28>>2]=d^n&(d^b),c[e+24>>2]=f^n&(f^w),c[e+20>>2]=u^n&(u^A),c[e+16>>2]=s^n&(s^g),c[e+12>>2]=o^n&(o^v),c[e+8>>2]=i^n&(i^m),c[e+4>>2]=a^n&(a^y),a=c[e+40>>2],y=c[t+40>>2],i=c[e+44>>2],m=c[t+44>>2],o=c[e+48>>2],v=c[t+48>>2],s=c[e+52>>2],g=c[t+52>>2],u=c[e+56>>2],A=c[t+56>>2],f=c[e+60>>2],w=c[t+60>>2],d=c[(b=e- -64|0)>>2],x=c[t- -64>>2],l=c[e+68>>2],_=c[t+68>>2],p=c[e+72>>2],h=c[t+72>>2],r=c[e+76>>2],c[e+76>>2]=r^n&(c[t+76>>2]^r),c[e+72>>2]=p^n&(p^h),c[e+68>>2]=l^n&(l^_),c[b>>2]=d^n&(d^x),c[e+60>>2]=f^n&(f^w),c[e+56>>2]=u^n&(u^A),c[e+52>>2]=s^n&(s^g),c[e+48>>2]=o^n&(o^v),c[e+44>>2]=i^n&(i^m),c[e+40>>2]=a^n&(a^y),a=c[e+80>>2],y=c[t+80>>2],i=c[e+84>>2],m=c[t+84>>2],o=c[e+88>>2],v=c[t+88>>2],s=c[e+92>>2],g=c[t+92>>2],u=c[e+96>>2],A=c[t+96>>2],f=c[e+100>>2],w=c[t+100>>2],d=c[e+104>>2],b=c[t+104>>2],l=c[e+108>>2],x=c[t+108>>2],p=c[e+112>>2],_=c[t+112>>2],h=c[t+116>>2],t=c[e+116>>2],c[e+116>>2]=n&(h^t)^t,c[e+112>>2]=p^n&(p^_),c[e+108>>2]=l^n&(l^x),c[e+104>>2]=d^n&(d^b),c[e+100>>2]=f^n&(f^w),c[e+96>>2]=u^n&(u^A),c[e+92>>2]=s^n&(s^g),c[e+88>>2]=o^n&(o^v),c[e+84>>2]=i^n&(i^m),c[e+80>>2]=a^n&(a^y)}function Q(e,t){var n,r,a=0;for(m=n=m-192|0,I(r=n+144|0,t),I(a=n+96|0,r),I(a,a),k(a,t,a),k(r,r,a),I(t=n+48|0,r),k(a,a,t),I(t,a),I(t,t),I(t,t),I(t,t),I(t,t),k(a,t,a),I(t,a),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),k(t,t,a),I(n,t),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),I(n,n),k(t,n,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),k(a,t,a),I(t,a),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),k(t,t,a),I(n,t),t=1;I(n,n),100!=(0|(t=t+1|0)););k(t=n+48|0,n,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),I(t,t),k(a=n+96|0,t,a),I(a,a),I(a,a),I(a,a),I(a,a),I(a,a),k(e,a,n+144|0),m=n+192|0}function K(e,t,n){var r,a=0,i=0,o=0,s=0,u=0,f=0,l=0,p=0;m=r=m-128|0,c[e>>2]=1,c[e+4>>2]=0,c[e+8>>2]=0,c[e+12>>2]=0,c[e+16>>2]=0,c[e+20>>2]=0,c[e+24>>2]=0,c[e+28>>2]=0,c[e+32>>2]=0,c[e+36>>2]=0,c[e+40>>2]=1,Ce(e+44|0,0,76),q(e,a=d(t,960)+2704|0,(255&(1^(t=n-((n>>31&n)<<1)|0)))-1>>>31|0),q(e,a+120|0,(255&(2^t))-1>>>31|0),q(e,a+240|0,(255&(3^t))-1>>>31|0),q(e,a+360|0,(255&(4^t))-1>>>31|0),q(e,a+480|0,(255&(5^t))-1>>>31|0),q(e,a+600|0,(255&(6^t))-1>>>31|0),q(e,a+720|0,(255&(7^t))-1>>>31|0),q(e,a+840|0,(255&(8^t))-1>>>31|0),i=c[e+40>>2],o=c[e+44>>2],s=c[e+48>>2],u=c[e+52>>2],f=c[e+56>>2],l=c[e+60>>2],p=c[(t=e- -64|0)>>2],a=c[t+4>>2],t=c[e+76>>2],c[r+40>>2]=c[e+72>>2],c[r+44>>2]=t,c[r+32>>2]=p,c[r+36>>2]=a,c[r+24>>2]=f,c[r+28>>2]=l,c[r+16>>2]=s,c[r+20>>2]=u,c[r+8>>2]=i,c[r+12>>2]=o,i=c[e+8>>2],o=c[e+12>>2],s=c[e+16>>2],u=c[e+20>>2],f=c[e+24>>2],l=c[e+28>>2],p=c[e>>2],a=c[e+4>>2],t=c[e+36>>2],c[r+80>>2]=c[e+32>>2],c[r+84>>2]=t,c[r+72>>2]=f,c[r+76>>2]=l,c[(t=r- -64|0)>>2]=s,c[t+4>>2]=u,c[r+56>>2]=i,c[r+60>>2]=o,c[r+48>>2]=p,c[r+52>>2]=a,i=c[e+80>>2],o=c[e+84>>2],s=c[e+88>>2],u=c[e+92>>2],f=c[e+96>>2],l=c[e+100>>2],p=c[e+104>>2],a=c[e+108>>2],t=c[e+112>>2],c[r+124>>2]=0-c[e+116>>2],c[r+120>>2]=0-t,c[r+116>>2]=0-a,c[r+112>>2]=0-p,c[r+108>>2]=0-l,c[r+104>>2]=0-f,c[r+100>>2]=0-u,c[r+96>>2]=0-s,c[r+92>>2]=0-o,c[r+88>>2]=0-i,q(e,r+8|0,(128&n)>>>7|0),m=r+128|0}function V(e,t,n,r){var a=0,i=0,o=0,c=0,f=0,d=0,l=0;if(n|r)e:for(l=e+224|0,f=e+96|0,i=u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24;;){if(a=i+f|0,!r&n>>>0<=(o=256-i|0)>>>0){Ee(a,t,n),t=(u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24)+n|0,s[e+352|0]=t,s[e+353|0]=t>>>8,s[e+354|0]=t>>>16,s[e+355|0]=t>>>24;break e}if(Ee(a,t,o),a=(u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24)+o|0,s[e+352|0]=a,s[e+353|0]=a>>>8,s[e+354|0]=a>>>16,s[e+355|0]=a>>>24,d=i=u[e+68|0]|u[e+69|0]<<8|u[e+70|0]<<16|u[e+71|0]<<24,i=(c=128+(a=u[e+64|0]|u[e+65|0]<<8|u[e+66|0]<<16|u[e+67|0]<<24)|0)>>>0<128?i+1|0:i,s[e+64|0]=c,s[e+65|0]=c>>>8,s[e+66|0]=c>>>16,s[e+67|0]=c>>>24,s[e+68|0]=i,s[e+69|0]=i>>>8,s[e+70|0]=i>>>16,s[e+71|0]=i>>>24,i=u[e+76|0]|u[e+77|0]<<8|u[e+78|0]<<16|u[e+79|0]<<24,i=(d=a=-1==(0|d)&a>>>0>4294967167)>>>0>(a=a+(u[e+72|0]|u[e+73|0]<<8|u[e+74|0]<<16|u[e+75|0]<<24)|0)>>>0?i+1|0:i,s[e+72|0]=a,s[e+73|0]=a>>>8,s[e+74|0]=a>>>16,s[e+75|0]=a>>>24,s[e+76|0]=i,s[e+77|0]=i>>>8,s[e+78|0]=i>>>16,s[e+79|0]=i>>>24,g(e,f),Ee(f,l,128),a=i=(u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24)-128|0,s[e+352|0]=a,s[e+353|0]=a>>>8,s[e+354|0]=a>>>16,s[e+355|0]=a>>>24,t=t+o|0,!((r=r-(n>>>0>>0)|0)|(n=n-o|0)))break}return 0}function J(e,t){var n,r=0,a=0,i=0,o=0,s=0,u=0,f=0,d=0,l=0,p=0,b=0,h=0,y=0,m=0,v=0,g=0,A=0,w=0;r=c[t+40>>2],a=c[t+4>>2],i=c[t+44>>2],o=c[t+8>>2],s=c[t+48>>2],u=c[t+12>>2],f=c[t+52>>2],d=c[t+16>>2],l=c[t+56>>2],b=c[t+20>>2],h=c[t+60>>2],y=c[t+24>>2],m=c[(p=t- -64|0)>>2],v=c[t+28>>2],g=c[t+68>>2],A=c[t+32>>2],w=c[t+72>>2],n=c[t>>2],c[e+36>>2]=c[t+36>>2]+c[t+76>>2],c[e+32>>2]=A+w,c[e+28>>2]=v+g,c[e+24>>2]=y+m,c[e+20>>2]=b+h,c[e+16>>2]=d+l,c[e+12>>2]=u+f,c[e+8>>2]=o+s,c[e+4>>2]=a+i,c[e>>2]=r+n,r=c[t+40>>2],a=c[t+4>>2],i=c[t+44>>2],o=c[t+8>>2],s=c[t+48>>2],u=c[t+12>>2],f=c[t+52>>2],d=c[t+16>>2],l=c[t+56>>2],b=c[t+20>>2],h=c[t+60>>2],y=c[t+24>>2],p=c[p>>2],m=c[t+28>>2],v=c[t+68>>2],g=c[t+32>>2],A=c[t+72>>2],w=c[t>>2],c[e+76>>2]=c[t+76>>2]-c[t+36>>2],c[e+72>>2]=A-g,c[e+68>>2]=v-m,c[e- -64>>2]=p-y,c[e+60>>2]=h-b,c[e+56>>2]=l-d,c[e+52>>2]=f-u,c[e+48>>2]=s-o,c[e+44>>2]=i-a,c[e+40>>2]=r-w,r=c[t+80>>2],a=c[t+84>>2],i=c[t+88>>2],o=c[t+92>>2],s=c[t+96>>2],u=c[t+100>>2],f=c[t+104>>2],d=c[t+108>>2],l=c[t+116>>2],c[e+112>>2]=c[t+112>>2],c[e+116>>2]=l,c[e+104>>2]=f,c[e+108>>2]=d,c[e+96>>2]=s,c[e+100>>2]=u,c[e+88>>2]=i,c[e+92>>2]=o,c[e+80>>2]=r,c[e+84>>2]=a,k(e+120|0,t+120|0,1440)}function G(e,t){var n,r,a,i,o,u=0,f=0,l=0,p=0,b=0,h=0,y=0,m=0,v=0,g=0;(l=c[e+56>>2])|(u=c[e+60>>2])&&(s[l+(f=e- -64|0)|0]=1,!((g=l+1|0)?u:u+1|0)&g>>>0<=15&&Ce(65+(e+l|0)|0,0,15-l|0),s[e+80|0]=1,M(e,f,16,0)),g=c[e+52>>2],m=c[e+48>>2],f=c[e+44>>2],l=c[e+24>>2],b=c[e+28>>2]+(l>>>26|0)|0,p=c[e+32>>2]+(b>>>26|0)|0,n=c[e+36>>2]+(p>>>26|0)|0,u=(y=(l=(l=(67108863&l)+((h=c[e+20>>2]+d(n>>>26|0,5)|0)>>>26|0)|0)&(b=(p=(o=(67108863&n)+((i=(r=67108863&p)+((a=(v=67108863&b)+((h=l+((u=5+(y=67108863&h)|0)>>>26|0)|0)>>>26|0)|0)>>>26|0)|0)>>>26|0)|0)-67108864|0)>>31)|h&(p=67108863&(h=(p>>>31|0)-1|0)))<<26|u&p|b&y)+c[e+40>>2]|0,s[0|t]=u,s[t+1|0]=u>>>8,s[t+2|0]=u>>>16,s[t+3|0]=u>>>24,y=u>>>0>>0,u=(v=b&v|p&a)<<20|l>>>6,l=0,u=(f=u+f|0)>>>0>>0?1:l,u=(l=f+y|0)>>>0>>0?u+1|0:u,s[(f=t)+4|0]=l,s[f+5|0]=l>>>8,s[f+6|0]=l>>>16,s[f+7|0]=l>>>24,l=0,f=(f=(p=b&r|p&i)<<14|v>>>12)>>>0>(m=f+m|0)>>>0?1:l,l=m,m=u,l=(u=l+u|0)>>>0>>0?f+1|0:f,s[(f=t)+8|0]=u,s[f+9|0]=u>>>8,s[f+10|0]=u>>>16,s[f+11|0]=u>>>24,u=f=(h&o|b&n)<<8|p>>>18,u=(u=l)+(f=f+g|0)|0,s[t+12|0]=u,s[t+13|0]=u>>>8,s[t+14|0]=u>>>16,s[t+15|0]=u>>>24,$e(e,88)}function W(e,t,n){var r,a=0;return m=r=m-16|0,s[r+15|0]=0,a=-1,0|ft[c[8722]](e,t,n)||(s[r+15|0]=u[0|e]|u[r+15|0],s[r+15|0]=u[e+1|0]|u[r+15|0],s[r+15|0]=u[e+2|0]|u[r+15|0],s[r+15|0]=u[e+3|0]|u[r+15|0],s[r+15|0]=u[e+4|0]|u[r+15|0],s[r+15|0]=u[e+5|0]|u[r+15|0],s[r+15|0]=u[e+6|0]|u[r+15|0],s[r+15|0]=u[e+7|0]|u[r+15|0],s[r+15|0]=u[e+8|0]|u[r+15|0],s[r+15|0]=u[e+9|0]|u[r+15|0],s[r+15|0]=u[e+10|0]|u[r+15|0],s[r+15|0]=u[e+11|0]|u[r+15|0],s[r+15|0]=u[e+12|0]|u[r+15|0],s[r+15|0]=u[e+13|0]|u[r+15|0],s[r+15|0]=u[e+14|0]|u[r+15|0],s[r+15|0]=u[e+15|0]|u[r+15|0],s[r+15|0]=u[e+16|0]|u[r+15|0],s[r+15|0]=u[e+17|0]|u[r+15|0],s[r+15|0]=u[e+18|0]|u[r+15|0],s[r+15|0]=u[e+19|0]|u[r+15|0],s[r+15|0]=u[e+20|0]|u[r+15|0],s[r+15|0]=u[e+21|0]|u[r+15|0],s[r+15|0]=u[e+22|0]|u[r+15|0],s[r+15|0]=u[e+23|0]|u[r+15|0],s[r+15|0]=u[e+24|0]|u[r+15|0],s[r+15|0]=u[e+25|0]|u[r+15|0],s[r+15|0]=u[e+26|0]|u[r+15|0],s[r+15|0]=u[e+27|0]|u[r+15|0],s[r+15|0]=u[e+28|0]|u[r+15|0],s[r+15|0]=u[e+29|0]|u[r+15|0],s[r+15|0]=u[e+30|0]|u[r+15|0],s[r+15|0]=u[e+31|0]|u[r+15|0],a=(u[r+15|0]<<23)-8388608>>31),m=r+16|0,a}function Y(e,t){var n,r,a,i,o,u,f,l=0,p=0;r=c[t+32>>2],a=c[t+28>>2],i=c[t+24>>2],o=c[t+20>>2],u=c[t+16>>2],f=c[t+12>>2],l=c[t+4>>2],p=c[t>>2],n=c[t+36>>2],t=c[t+8>>2],p=d((r+(a+(i+(o+(u+(f+((l+(p+(d(n,19)+16777216>>>25|0)>>26)>>25)+t>>26)>>25)>>26)>>25)>>26)>>25)>>26)+n>>25,19)+p|0,s[0|e]=p,s[e+2|0]=p>>>16,s[e+1|0]=p>>>8,l=l+(p>>26)|0,s[e+5|0]=l>>>14,s[e+4|0]=l>>>6,s[e+3|0]=p>>>24&3|l<<2,t=t+(l>>25)|0,s[e+8|0]=t>>>13,s[e+7|0]=t>>>5,s[e+6|0]=t<<3|(29360128&l)>>>22,p=(t>>26)+f|0,s[e+11|0]=p>>>11,s[e+10|0]=p>>>3,s[e+9|0]=p<<5|(65011712&t)>>>21,l=(p>>25)+u|0,s[e+15|0]=l>>>18,s[e+14|0]=l>>>10,s[e+13|0]=l>>>2,t=(l>>26)+o|0,s[e+16|0]=t,s[e+12|0]=l<<6|(33030144&p)>>>19,s[e+18|0]=t>>>16,s[e+17|0]=t>>>8,l=(t>>25)+i|0,s[e+21|0]=l>>>15,s[e+20|0]=l>>>7,s[e+19|0]=t>>>24&1|l<<1,t=(l>>26)+a|0,s[e+24|0]=t>>>13,s[e+23|0]=t>>>5,s[e+22|0]=t<<3|(58720256&l)>>>23,l=(t>>25)+r|0,s[e+27|0]=l>>>12,s[e+26|0]=l>>>4,s[e+25|0]=l<<4|(31457280&t)>>>21,t=n+(l>>26)|0,s[e+30|0]=t>>>10,s[e+29|0]=t>>>2,s[e+31|0]=(33292288&t)>>>18,s[e+28|0]=t<<6|(66060288&l)>>>20}function X(e,t){var n;return c[12+(n=m-16|0)>>2]=e,c[n+8>>2]=t,c[n+4>>2]=0,c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]]^u[c[n+8>>2]],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+1|0]^u[c[n+8>>2]+1|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+2|0]^u[c[n+8>>2]+2|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+3|0]^u[c[n+8>>2]+3|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+4|0]^u[c[n+8>>2]+4|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+5|0]^u[c[n+8>>2]+5|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+6|0]^u[c[n+8>>2]+6|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+7|0]^u[c[n+8>>2]+7|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+8|0]^u[c[n+8>>2]+8|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+9|0]^u[c[n+8>>2]+9|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+10|0]^u[c[n+8>>2]+10|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+11|0]^u[c[n+8>>2]+11|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+12|0]^u[c[n+8>>2]+12|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+13|0]^u[c[n+8>>2]+13|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+14|0]^u[c[n+8>>2]+14|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+15|0]^u[c[n+8>>2]+15|0],(c[n+4>>2]-1>>>8&1)-1|0}function $(e,t){var n,r=0,a=0;n=t;e:if(r=255&t){if(3&e)for(;;){if(!(t=u[0|e])|(0|t)==(255&n))break e;if(!(3&(e=e+1|0)))break}t:if(!((-1^(t=c[e>>2]))&t-16843009&-2139062144))for(r=d(r,16843009);;){if((-1^(t^=r))&t-16843009&-2139062144)break t;if(t=c[e+4>>2],e=e+4|0,t-16843009&(-1^t)&-2139062144)break}for(;t=e,(r=u[0|e])&&(e=t+1|0,(0|r)!=(255&n)););e=t}else{r=e;t:{if(3&e)for(;;){if(!u[0|e])break t;if(!(3&(e=e+1|0)))break}for(;t=e,e=e+4|0,!((-1^(a=c[t>>2]))&a-16843009&-2139062144););for(;t=(e=t)+1|0,u[0|e];);}e=r+(e-r|0)|0}return u[0|e]==(255&n)?e:0}function ee(e,t){var n,r=0,a=0,i=0,o=0,c=0;for(m=n=m-192|0,se(e),Ce(n- -64|0,54,128);s[0|(r=(o=n- -64|0)+a|0)]=u[0|r]^u[t+a|0],s[0|(i=(r=1|a)+o|0)]=u[0|i]^u[t+r|0],s[0|(i=(r=2|a)+o|0)]=u[0|i]^u[t+r|0],s[0|(r=(r=o)+(o=3|a)|0)]=u[0|r]^u[t+o|0],a=a+4|0,32!=(0|(c=c+4|0)););for(L(e,a=n- -64|0,128,0),se(o=e+208|0),Ce(a,92,128),a=0,c=0;s[0|(r=(e=n- -64|0)+a|0)]=u[0|r]^u[t+a|0],s[0|(i=(r=1|a)+e|0)]=u[0|i]^u[t+r|0],s[0|(i=(r=2|a)+e|0)]=u[0|i]^u[t+r|0],s[0|(r=(r=e)+(e=3|a)|0)]=u[0|r]^u[e+t|0],a=a+4|0,32!=(0|(c=c+4|0)););L(o,e=n- -64|0,128,0),$e(e,128),$e(n,64),m=n+192|0}function te(e,t,n,r,a,i,o){var s,u,f,d,l,p=0;return m=s=m-352|0,F(s,i,o),!((!a&r>>>0>e-n>>>0|0!=(0|a))&e>>>0>n>>>0)&(!a&r>>>0<=n-e>>>0|e>>>0>=n>>>0)||(n=_e(e,n,r)),c[s+56>>2]=0,c[s+60>>2]=0,c[s+48>>2]=0,c[s+52>>2]=0,c[s+40>>2]=0,c[s+44>>2]=0,c[s+32>>2]=0,c[s+36>>2]=0,o=(p=!a&r>>>0>=32|0!=(0|a))?32:r,l=p=p?0:a,(f=!(o|p))||Ee(s- -64|0,n,o),Fe(u=s+32|0,u,d=o+32|0,p=d>>>0<32?p+1|0:p,i=i+16|0,s),Ge(s+96|0,u),f||Ee(e,s- -64|0,o),$e(s+32|0,64),!a&r>>>0>=33|a&&Ue(e+o|0,n+o|0,r-o|0,a-(l+(r>>>0>>0)|0)|0,i,s),$e(s,32),Ve(n=s+96|0,e,r,a),We(n,t),$e(n,256),m=s+352|0,0}function ne(e,t,n,r,a,i,o){var s,u,f=0,d=0;m=s=m-96|0,F(s,i,o),o=s+32|0,u=i+16|0,ft[c[8724]](o,32,0,u,s),i=-1;e:{if(!(0|ft[c[8718]](n,t,r,a,o))){if(i=0,!e)break e;!((!a&r>>>0>t-e>>>0|0!=(0|a))&e>>>0>>0)&(!a&r>>>0<=e-t>>>0|e>>>0<=t>>>0)||(t=_e(e,t,r)),(o=(n=!a&r>>>0>=32|0!=(0|a))?32:r)|(n=n?0:a)?(d=Ee(s- -64|0,t,o),Fe(i=s+32|0,i,f=o+32|0,f>>>0<32?n+1|0:n,u,s),Ee(e,d,o)):Fe(i=s+32|0,i,f=o+32|0,f>>>0<32?n+1|0:n,u,s),$e(s+32|0,64),i=0,!a&r>>>0<33||Ue(e+o|0,t+o|0,r-o|0,a-(n+(r>>>0>>0)|0)|0,u,s)}$e(s,32)}return m=s+96|0,i}function re(e,t,n,r,a,i,o,s,f,d){var l,p;return m=l=m-400|0,c[l+4>>2]=0,Z(p=l+16|0,f,d),d=u[f+20|0]|u[f+21|0]<<8|u[f+22|0]<<16|u[f+23|0]<<24,c[l+8>>2]=u[f+16|0]|u[f+17|0]<<8|u[f+18|0]<<16|u[f+19|0]<<24,c[l+12>>2]=d,Qe(d=l+80|0,64,l+4|0,p),Ge(f=l+144|0,d),$e(d,64),Ve(f,i,o,s),Ve(f,34816,0-o&15,0),Ve(f,t,n,r),Ve(f,34816,0-n&15,0),c[l+72>>2]=o,c[l+76>>2]=s,Ve(f,i=l+72|0,8,0),c[l+72>>2]=n,c[l+76>>2]=r,Ve(f,i,8,0),We(f,i=l+48|0),$e(f,256),f=X(i,a),$e(i,16),e&&(f?(Ce(e,0,n),f=-1):(Ne(e,t,n,r,l+4|0,l+16|0),f=0)),$e(l+16|0,32),m=l+400|0,f}function ae(e,t,n,r,a,i,o,s,f,d,l){var p,b,h;return m=p=m-384|0,c[p+4>>2]=0,Z(b=p+16|0,d,l),l=u[d+20|0]|u[d+21|0]<<8|u[d+22|0]<<16|u[d+23|0]<<24,c[p+8>>2]=u[d+16|0]|u[d+17|0]<<8|u[d+18|0]<<16|u[d+19|0]<<24,c[p+12>>2]=l,Qe(l=p- -64|0,64,h=p+4|0,b),Ge(d=p+128|0,l),$e(l,64),Ve(d,o,s,f),Ve(d,34816,0-s&15,0),Ne(e,r,a,i,h,b),Ve(d,e,a,i),Ve(d,34816,0-a&15,0),c[p+56>>2]=s,c[p+60>>2]=f,Ve(d,e=p+56|0,8,0),c[p+56>>2]=a,c[p+60>>2]=i,Ve(d,e,8,0),We(d,t),$e(d,256),n&&(c[n>>2]=16,c[n+4>>2]=0),$e(p+16|0,32),m=p+384|0,0}function ie(e,t,n,r){var a,i=0;return m=a=m-208|0,c[a+72>>2]=0,c[a+76>>2]=0,i=c[8487],c[a+8>>2]=c[8486],c[a+12>>2]=i,i=c[8489],c[a+16>>2]=c[8488],c[a+20>>2]=i,i=c[8491],c[a+24>>2]=c[8490],c[a+28>>2]=i,i=c[8493],c[a+32>>2]=c[8492],c[a+36>>2]=i,i=c[8495],c[a+40>>2]=c[8494],c[a+44>>2]=i,i=c[8497],c[a+48>>2]=c[8496],c[a+52>>2]=i,i=c[8499],c[a+56>>2]=c[8498],c[a+60>>2]=i,c[a+64>>2]=0,c[a+68>>2]=0,i=c[8485],c[a>>2]=c[8484],c[a+4>>2]=i,L(a,t,n,r),C(a,e),m=a+208|0,0}function oe(e,t){var n,r=0,a=0,i=0;if(s[15+(n=m-16|0)|0]=0,t){if(a=3&t,t>>>0>=4)for(i=-4&t,t=0;s[n+15|0]=u[e+r|0]|u[n+15|0],s[n+15|0]=u[(1|r)+e|0]|u[n+15|0],s[n+15|0]=u[(2|r)+e|0]|u[n+15|0],s[n+15|0]=u[(3|r)+e|0]|u[n+15|0],r=r+4|0,(0|i)!=(0|(t=t+4|0)););if(a)for(t=0;s[n+15|0]=u[e+r|0]|u[n+15|0],r=r+1|0,(0|a)!=(0|(t=t+1|0)););}return u[n+15|0]-1>>>8&1}function se(e){var t=0;c[e+64>>2]=0,c[e+68>>2]=0,c[e+72>>2]=0,c[e+76>>2]=0,t=c[8485],c[e>>2]=c[8484],c[e+4>>2]=t,t=c[8487],c[e+8>>2]=c[8486],c[e+12>>2]=t,t=c[8489],c[e+16>>2]=c[8488],c[e+20>>2]=t,t=c[8491],c[e+24>>2]=c[8490],c[e+28>>2]=t,t=c[8493],c[e+32>>2]=c[8492],c[e+36>>2]=t,t=c[8495],c[e+40>>2]=c[8494],c[e+44>>2]=t,t=c[8497],c[e+48>>2]=c[8496],c[e+52>>2]=t,t=c[8499],c[e+56>>2]=c[8498],c[e+60>>2]=t}function ce(e,t,n){var r,a=0,i=0;if(c[12+(r=m-16|0)>>2]=e,c[r+8>>2]=t,e=0,s[r+7|0]=0,n){if(t=1&n,1!=(0|n))for(i=-2&n,n=0;s[r+7|0]=u[r+7|0]|u[c[r+12>>2]+e|0]^u[c[r+8>>2]+e|0],a=1|e,s[r+7|0]=u[r+7|0]|u[a+c[r+12>>2]|0]^u[c[r+8>>2]+a|0],e=e+2|0,(0|i)!=(0|(n=n+2|0)););t&&(s[r+7|0]=u[r+7|0]|u[c[r+12>>2]+e|0]^u[c[r+8>>2]+e|0])}return(u[r+7|0]-1>>>8&1)-1|0}function ue(e){for(var t=0,n=0,r=0,a=0,i=0,o=0,s=0,c=0,f=0,d=0;a=(n=u[e+r|0])^u[0|(t=r+2448|0)]|a,i=n^u[t+192|0]|i,o=n^u[t+160|0]|o,s=n^u[t+128|0]|s,c=n^u[t+96|0]|c,f=n^u[t- -64|0]|f,d=n^u[t+32|0]|d,31!=(0|(r=r+1|0)););return((255&((t=127^(e=127&u[e+31|0]))|i))-1|(255&(t|o))-1|(255&(t|s))-1|(255&(122^e|c))-1|(255&(5^e|f))-1|(255&(e|d))-1|(255&(e|a))-1)>>>8&1}function fe(e,t,n){var r=0,a=0,i=0,o=0;return a=31&(i=o=63&n),i=i>>>0>=32?-1>>>a|0:(r=-1>>>a|0)|(1<>>0>=32?(r=i<>>32-a|r<>>0>=32?(r=-1<>>32-r,e&=n,t&=r,r=31&a,a>>>0>=32?(n=0,e=t>>>r|0):(n=t>>>r|0,e=((1<>>r),v=n|i,e|o}function de(e,t,n,r,a,i,o,s,u,f){var d,l,p;return m=d=m-352|0,Qe(p=d+32|0,64,u,f),Ge(l=d+96|0,p),$e(p,64),Ve(l,i,o,s),Ve(l,33920,0-o&15,0),Ve(l,t,n,r),Ve(l,33920,0-n&15,0),c[d+24>>2]=o,c[d+28>>2]=s,Ve(l,i=d+24|0,8,0),c[d+24>>2]=n,c[d+28>>2]=r,Ve(l,i,8,0),We(l,d),$e(l,256),i=X(d,a),$e(d,16),e&&(i?(Ce(e,0,n),i=-1):(ve(e,t,n,r,u,1,f),i=0)),m=d+352|0,i}function le(e,t,n,r,a,i,o,s,u,f,d){var l,p,b;return m=l=m-336|0,Qe(b=l+16|0,64,f,d),Ge(p=l+80|0,b),$e(b,64),Ve(p,o,s,u),Ve(p,33920,0-s&15,0),ve(e,r,a,i,f,1,d),Ve(p,e,a,i),Ve(p,33920,0-a&15,0),c[l+8>>2]=s,c[l+12>>2]=u,Ve(p,e=l+8|0,8,0),c[l+8>>2]=a,c[l+12>>2]=i,Ve(p,e,8,0),We(p,t),$e(p,256),n&&(c[n>>2]=16,c[n+4>>2]=0),m=l+336|0,0}function pe(e,t,n,r,a,i,o,s,u,f){var d,l,p;return m=d=m-352|0,Ke(p=d+32|0,u,f),Ge(l=d+96|0,p),$e(p,64),Ve(l,i,o,s),c[d+24>>2]=o,c[d+28>>2]=s,Ve(l,i=d+24|0,8,0),Ve(l,t,n,r),c[d+24>>2]=n,c[d+28>>2]=r,Ve(l,i,8,0),We(l,d),$e(l,256),i=X(d,a),$e(d,16),e&&(i?(Ce(e,0,n),i=-1):(Re(e,t,n,r,u,f),i=0)),m=d+352|0,i}function be(e,t,n,r,a,i,o,s,u,f,d){var l,p,b;return m=l=m-336|0,Ke(b=l+16|0,f,d),Ge(p=l+80|0,b),$e(b,64),Ve(p,o,s,u),c[l+8>>2]=s,c[l+12>>2]=u,Ve(p,o=l+8|0,8,0),Re(e,r,a,i,f,d),Ve(p,e,a,i),c[l+8>>2]=a,c[l+12>>2]=i,Ve(p,o,8,0),We(p,t),$e(p,256),n&&(c[n>>2]=16,c[n+4>>2]=0),m=l+336|0,0}function he(e,t){var n;for(c[12+(n=m-16|0)>>2]=e,c[n+8>>2]=t,e=0,c[n+4>>2]=0;c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+e|0]^u[c[n+8>>2]+e|0],t=1|e,c[n+4>>2]=c[n+4>>2]|u[t+c[n+12>>2]|0]^u[t+c[n+8>>2]|0],32!=(0|(e=e+2|0)););return(c[n+4>>2]-1>>>8&1)-1|0}function ye(e){var t=0,n=0,r=0,a=0;for(t=1;t=u[0|(n=e+r|0)]+t|0,s[0|n]=t,t=u[0|(n=(1|r)+e|0)]+(t>>>8|0)|0,s[0|n]=t,t=u[0|(n=(2|r)+e|0)]+(t>>>8|0)|0,s[0|n]=t,t=u[0|(n=(3|r)+e|0)]+(t>>>8|0)|0,s[0|n]=t,t=t>>>8|0,r=r+4|0,4!=(0|(a=a+4|0)););}function me(e,t,n,r){var a,i,o,s,c=0,u=0;return s=d(c=n>>>16|0,u=e>>>16|0),c=(65535&(u=((o=d(a=65535&n,i=65535&e))>>>16|0)+d(u,a)|0))+d(c,i)|0,v=(d(t,n)+s|0)+d(e,r)+(u>>>16)+(c>>>16)|0,65535&o|c<<16}function ve(e,t,n,r,a,o,s){var u=0,f=0;u=r,1==(((u=(f=n+63|0)>>>0<63?u+1|0:u)>>>6|0)+(0!=(0|(u=(63&u)<<26|f>>>6)))|0)&o>>>0>(f=0-u|0)>>>0|1==(0|r)|r>>>0>1?(Le(),i()):ft[c[8716]](e,t,n,r,a,o,s)}function ge(e,t){e|=0;var n,r=0,a=0,i=0;if(m=n=m-16|0,t|=0)for(;s[n+15|0]=0,a=e+r|0,i=0|p(34904,n+15|0,0),s[0|a]=i,(0|(r=r+1|0))!=(0|t););m=n+16|0}function Ae(e,t,n,r,a,i,o){var s,c=0;return m=s=m-32|0,c=-1,!r&n>>>0<16||Ie(s,i,o)||(c=ne(e,t+16|0,t,n-16|0,r-(n>>>0<16)|0,a,s),$e(s,32)),m=s+32|0,c}function we(e){var t,n;return(e=(t=c[8712])+(n=e+7&-8)|0)>>>0<=t>>>0&&n||e>>>0>dt()<<16>>>0&&!(0|y(0|e))?(c[8916]=48,-1):(c[8712]=e,t)}function xe(e,t){var n,r,a;m=n=m-176|0,Q(r=n+96|0,t+80|0),k(a=n+48|0,t,r),k(n,t+40|0,r),Y(e,n),Y(n+144|0,a),s[e+31|0]=u[e+31|0]^u[n+144|0]<<7,m=n+176|0}function _e(e,t,n){var r=0;if(e>>>0>>0)return Ee(e,t,n);if(n)for(r=e+n|0,t=t+n|0;t=t-1|0,s[0|(r=r-1|0)]=u[0|t],n=n-1|0;);return e}function ke(e,t,n,r,a,o,s){var c,u=0;if(m=c=m-32|0,!r&n>>>0<4294967280)return u=-1,Ie(c,o,s)||(u=te(e+16|0,e,t,n,r,a,c),$e(c,32)),m=c+32|0,u;Le(),i()}function Se(e,t,n,r,a,i){return t|=0,0|(!(r|=0)&(n|=0)>>>0>=16|r?ne(e|=0,t+16|0,t,n-16|0,r-(n>>>0<16)|0,a|=0,i|=0):-1)}function Ie(e,t,n){e|=0;var r,a=0;return m=r=m-32|0,a=-1,W(r,n|=0,t|=0)||(a=F(e,34832,r)),m=r+32|0,0|a}function Ee(e,t,n){var r=0;if(n)for(r=e;s[0|r]=u[0|t],r=r+1|0,t=t+1|0,n=n-1|0;);return e}function Ce(e,t,n){var r=0;if(n)for(r=e;s[0|r]=t,r=r+1|0,n=n-1|0;);return e}function Te(e,t,n){return e|=0,t|=0,(n|=0)>>>0>=256&&(b(1260,1187,107,1067),i()),0|T(e,t,255&n)}function Oe(e,t){var n;m=n=m+-64|0,C(e,n),L(e=e+208|0,n,64,0),C(e,t),$e(n,64),m=n- -64|0}function Pe(e,t,n,r,a,i,o){return 0|te(e|=0,t|=0,n|=0,r|=0,a|=0,i|=0,o|=0)}function Me(e,t,n,r,a,i,o){return 0|ne(e|=0,t|=0,n|=0,r|=0,a|=0,i|=0,o|=0)}function Be(e,t){var n=0;return(-1>>>(n=31&t)&e)<>>e}function Re(e,t,n,r,a,o){1==(0|r)|r>>>0>1&&(Le(),i()),ft[c[8715]](e,t,n,r,a,1,0,o)}function Ne(e,t,n,r,a,o){1==(0|r)|r>>>0>1&&(Le(),i()),ft[c[8716]](e,t,n,r,a,1,o)}function De(){var e;m=e=m-16|0,s[e+15|0]=0,p(34940,e+15|0,0),m=e+16|0}function je(e,t,n){return 0|W(e|=0,t|=0,n|=0)}function Ue(e,t,n,r,a,i){ft[c[8725]](e,t,n,r,a,1,0,i)}function Le(){var e;(e=c[9050])&&ft[0|e](),h(),i()}function Ze(e,t){return e|=0,ge(t|=0,32),0|Je(e,t)}function Fe(e,t,n,r,a,i){ft[c[8725]](e,t,n,r,a,0,0,i)}function He(e){return e?31-l(e-1^e)|0:32}function ze(e,t,n,r){ft[c[8716]](e,t,40,0,n,0,r)}function qe(e,t){return 0|Je(e|=0,t|=0)}function Qe(e,t,n,r){ft[c[8714]](e,t,0,n,r)}function Ke(e,t,n){ft[c[8713]](e,64,0,t,n)}function Ve(e,t,n,r){ft[c[8720]](e,t,n,r)}function Je(e,t){return 0|ft[c[8723]](e,t)}function Ge(e,t){ft[c[8719]](e,t)}function We(e,t){ft[c[8721]](e,t)}function Ye(e,t,n,r){L(e,t,n,r)}function Xe(e){ge(e|=0,32)}function $e(e,t){Ce(e,0,t)}function et(){return 16}function tt(){return 32}function nt(){return 24}function rt(){return-17}function at(){return 64}function it(){return 1}function ot(){return 3}function st(){return 8}function ct(){return 0}a(t=u,1024,"TGlic29kaXVtRFJHcmFuZG9tYnl0ZXMAYjY0X3BvcyA8PSBiNjRfbGVuAGNyeXB0b19nZW5lcmljaGFzaF9ibGFrZTJiX2ZpbmFsAHJhbmRvbWJ5dGVzL3JhbmRvbWJ5dGVzLmMAc29kaXVtL2NvZGVjcy5jAGNyeXB0b19nZW5lcmljaGFzaC9ibGFrZTJiL3JlZi9ibGFrZTJiLXJlZi5jAGNyeXB0b19nZW5lcmljaGFzaC9ibGFrZTJiL3JlZi9nZW5lcmljaGFzaF9ibGFrZTJiLmMAYnVmX2xlbiA8PSBTSVpFX01BWABvdXRsZW4gPD0gVUlOVDhfTUFYAFMtPmJ1ZmxlbiA8PSBCTEFLRTJCX0JMT0NLQllURVMAMS4wLjE4AHNvZGl1bV9iaW4yYmFzZTY0AAAAAAAAAAC2eFn/hXLTAL1uFf8PCmoAKcABAJjoef+8PKD/mXHO/wC34v60DUj/AAAAAAAAAACwoA7+08mG/54YjwB/aTUAYAy9AKfX+/+fTID+amXh/x78BACSDK4="),a(t,1440,"WfGy/grlpv973Sr+HhTUAFKAAwAw0fMAd3lA/zLjnP8AbsUBZxuQ"),a(t,1488,"hTuMAb3xJP/4JcMBYNw3ALdMPv/DQj0AMkykAeGkTP9MPaP/dT4fAFGRQP92QQ4AonPW/waKLgB85vT/CoqPADQawgC49EwAgY8pAb70E/97qnr/YoFEAHnVkwBWZR7/oWebAIxZQ//v5b4BQwu1AMbwif7uRbz/Q5fuABMqbP/lVXEBMkSH/xFqCQAyZwH/UAGoASOYHv8QqLkBOFno/2XS/AAp+kcAzKpP/w4u7/9QTe8AvdZL/xGN+QAmUEz/vlV1AFbkqgCc2NABw8+k/5ZCTP+v4RD/jVBiAUzb8gDGonIALtqYAJsr8f6boGj/M7ulAAIRrwBCVKAB9zoeACNBNf5F7L8ALYb1AaN73QAgbhT/NBelALrWRwDpsGAA8u82ATlZigBTAFT/iKBkAFyOeP5ofL4AtbE+//opVQCYgioBYPz2AJeXP/7vhT4AIDicAC2nvf+OhbMBg1bTALuzlv76qg7/0qNOACU0lwBjTRoA7pzV/9XA0QFJLlQAFEEpATbOTwDJg5L+qm8Y/7EhMv6rJsv/Tvd0ANHdmQCFgLIBOiwZAMknOwG9E/wAMeXSAXW7dQC1s7gBAHLbADBekwD1KTgAfQ3M/vStdwAs3SD+VOoUAPmgxgHsfur/L2Oo/qrimf9ms9gA4o16/3pCmf629YYA4+QZAdY56//YrTj/tefSAHeAnf+BX4j/bn4zAAKpt/8HgmL+RbBe/3QE4wHZ8pH/yq0fAWkBJ/8ur0UA5C86/9fgRf7POEX/EP6L/xfP1P/KFH7/X9Vg/wmwIQDIBc//8SqA/iMhwP/45cQBgRF4APtnl/8HNHD/jDhC/yji9f/ZRiX+rNYJ/0hDhgGSwNb/LCZwAES4S//OWvsAleuNALWqOgB09O8AXJ0CAGatYgDpiWABfzHLAAWblAAXlAn/03oMACKGGv/bzIgAhggp/+BTK/5VGfcAbX8A/qmIMADud9v/563VAM4S/v4Iugf/fgkHAW8qSABvNOz+YD+NAJO/f/7NTsD/DmrtAbvbTACv87v+aVmtAFUZWQGi85QAAnbR/iGeCQCLoy7/XUYoAGwqjv5v/I7/m9+QADPlp/9J/Jv/XnQM/5ig2v+c7iX/s+rP/8UAs/+apI0A4cRoAAojGf7R1PL/Yf3e/rhl5QDeEn8BpIiH/x7PjP6SYfMAgcAa/slUIf9vCk7/k1Gy/wQEGACh7tf/Bo0hADXXDv8ptdD/54udALPL3f//uXEAveKs/3FC1v/KPi3/ZkAI/06uEP6FdUT/"),a(t,2480,"AQ=="),a(t,2512,"JuiVj8KyJ7BFw/SJ8u+Y8NXfrAXTxjM5sTgCiG1T/AXHF2pwPU3YT7o8C3YNEGcPKiBT+iw5zMZOx/13kqwDeuz///////////////////////////////////////9/7f///////////////////////////////////////3/u////////////////////////////////////////f+3T9VwaYxJY1pz3ot753hQ="),a(t,2703,"EIU7jAG98ST/+CXDAWDcNwC3TD7/w0I9ADJMpAHhpEz/TD2j/3U+HwBRkUD/dkEOAKJz1v8Gii4AfOb0/wqKjwA0GsIAuPRMAIGPKQG+9BP/e6p6/2KBRAB51ZMAVmUe/6FnmwCMWUP/7+W+AUMLtQDG8In+7kW8/+pxPP8l/zn/RbK2/oDQswB2Gn3+AwfW//EyTf9Vy8X/04f6/xkwZP+71bT+EVhpAFPRngEFc2IABK48/qs3bv/ZtRH/FLyqAJKcZv5X1q7/cnqbAeksqgB/CO8B1uzqAK8F2wAxaj3/BkLQ/wJqbv9R6hP/12vA/0OX7gATKmz/5VVxATJEh/8RagkAMmcB/1ABqAEjmB7/EKi5AThZ6P9l0vwAKfpHAMyqT/8OLu//UE3vAL3WS/8RjfkAJlBM/75VdQBW5KoAnNjQAcPPpP+WQkz/r+EQ/41QYgFM2/IAxqJyAC7amACbK/H+m6Bo/7IJ/P5kbtQADgWnAOnvo/8cl50BZZIK//6eRv5H+eQAWB4yAEQ6oP+/GGgBgUKB/8AyVf8Is4r/JvrJAHNQoACD5nEAfViTAFpExwD9TJ4AHP92AHH6/gBCSy4A5torAOV4ugGURCsAiHzuAbtrxf9UNfb/M3T+/zO7pQACEa8AQlSgAfc6HgAjQTX+Rey/AC2G9QGje90AIG4U/zQXpQC61kcA6bBgAPLvNgE5WYoAUwBU/4igZABcjnj+aHy+ALWxPv/6KVUAmIIqAWD89gCXlz/+74U+ACA4nAAtp73/joWzAYNW0wC7s5b++qoO/0RxFf/eujv/QgfxAUUGSABWnGz+N6dZAG002/4NsBf/xCxq/++VR/+kjH3/n60BADMp5wCRPiEAim9dAblTRQCQcy4AYZcQ/xjkGgAx2eIAcUvq/sGZDP+2MGD/Dg0aAIDD+f5FwTsAhCVR/n1qPADW8KkBpONCANKjTgAlNJcAY00aAO6c1f/VwNEBSS5UABRBKQE2zk8AyYOS/qpvGP+xITL+qybL/073dADR3ZkAhYCyATosGQDJJzsBvRP8ADHl0gF1u3UAtbO4AQBy2wAwXpMA9Sk4AH0NzP70rXcALN0g/lTqFAD5oMYB7H7q/48+3QCBWdb/N4sF/kQUv/8OzLIBI8PZAC8zzgEm9qUAzhsG/p5XJADZNJL/fXvX/1U8H/+rDQcA2vVY/vwjPAA31qD/hWU4AOAgE/6TQOoAGpGiAXJ2fQD4/PoAZV7E/8aN4v4zKrYAhwwJ/m2s0v/F7MIB8UGaADCcL/+ZQzf/2qUi/kq0swDaQkcBWHpjANS12/9cKuf/7wCaAPVNt/9eUaoBEtXYAKtdRwA0XvgAEpeh/sXRQv+u9A/+ojC3ADE98P62XcMAx+QGAcgFEf+JLe3/bJQEAFpP7f8nP03/NVLPAY4Wdv9l6BIBXBpDAAXIWP8hqIr/leFIAALRG/8s9agB3O0R/x7Taf6N7t0AgFD1/m/+DgDeX74B3wnxAJJM1P9szWj/P3WZAJBFMAAj5G8AwCHB/3DWvv5zmJcAF2ZYADNK+ADix4/+zKJl/9BhvQH1aBIA5vYe/xeURQBuWDT+4rVZ/9AvWv5yoVD/IXT4ALOYV/9FkLEBWO4a/zogcQEBTUUAO3k0/5juUwA0CMEA5yfp/8ciigDeRK0AWzny/tzSf//AB/b+lyO7AMPspQBvXc4A1PeFAZqF0f+b5woAQE4mAHr5ZAEeE2H/Plv5AfiFTQDFP6j+dApSALjscf7Uy8L/PWT8/iQFyv93W5n/gU8dAGdnq/7t12//2DVFAO/wFwDCld3/JuHeAOj/tP52UoX/OdGxAYvohQCesC7+wnMuAFj35QEcZ78A3d6v/pXrLACX5Bn+2mlnAI5V0gCVgb7/1UFe/nWG4P9SxnUAnd3cAKNlJADFciUAaKym/gu2AABRSLz/YbwQ/0UGCgDHk5H/CAlzAUHWr//ZrdEAUH+mAPflBP6nt3z/WhzM/q878P8LKfgBbCgz/5Cxw/6W+n4AiltBAXg83v/1we8AHda9/4ACGQBQmqIATdxrAerNSv82pmf/dEgJAOReL/8eyBn/I9ZZ/z2wjP9T4qP/S4KsAIAmEQBfiZj/13yfAU9dAACUUp3+w4L7/yjKTP/7fuAAnWM+/s8H4f9gRMMAjLqd/4MT5/8qgP4ANNs9/mbLSACNBwv/uqTVAB96dwCF8pEA0Pzo/1vVtv+PBPr++ddKAKUebwGrCd8A5XsiAVyCGv9Nmy0Bw4sc/zvgTgCIEfcAbHkgAE/6vf9g4/z+JvE+AD6uff+bb13/CubOAWHFKP8AMTn+QfoNABL7lv/cbdL/Ba6m/iyBvQDrI5P/JfeN/0iNBP9na/8A91oEADUsKgACHvAABDs/AFhOJABxp7QAvkfB/8eepP86CKwATSEMAEE/AwCZTSH/rP5mAeTdBP9XHv4BkilW/4rM7/5sjRH/u/KHANLQfwBELQ7+SWA+AFE8GP+qBiT/A/kaACPVbQAWgTb/FSPh/+o9OP862QYAj3xYAOx+QgDRJrf/Iu4G/66RZgBfFtMAxA+Z/i5U6P91IpIB5/pK/xuGZAFcu8P/qsZwAHgcKgDRRkMAHVEfAB2oZAGpraAAayN1AD5gO/9RDEUBh+++/9z8EgCj3Dr/iYm8/1NmbQBgBkwA6t7S/7muzQE8ntX/DfHWAKyBjABdaPIAwJz7ACt1HgDhUZ4Af+jaAOIcywDpG5f/dSsF//IOL/8hFAYAifss/hsf9f+31n3+KHmVALqe1f9ZCOMARVgA/suH4QDJrssAk0e4ABJ5Kf5eBU4A4Nbw/iQFtAD7h+cBo4rUANL5dP5YgbsAEwgx/j4OkP+fTNMA1jNSAG115P5n38v/S/wPAZpH3P8XDVsBjahg/7W2hQD6MzcA6urU/q8/ngAn8DQBnr0k/9UoVQEgtPf/E2YaAVQYYf9FFd4AlIt6/9zV6wHoy/8AeTmTAOMHmgA1FpMBSAHhAFKGMP5TPJ3/kUipACJn7wDG6S8AdBME/7hqCf+3gVMAJLDmASJnSADbooYA9SqeACCVYP6lLJAAyu9I/teWBQAqQiQBhNevAFauVv8axZz/MeiH/me2UgD9gLABmbJ6APX6CgDsGLIAiWqEACgdKQAyHpj/fGkmAOa/SwCPK6oALIMU/ywNF//t/5sBn21k/3C1GP9o3GwAN9ODAGMM1f+Yl5H/7gWfAGGbCAAhbFEAAQNnAD5tIv/6m7QAIEfD/yZGkQGfX/UAReVlAYgc8ABP4BkATm55//iofAC7gPcAApPr/k8LhABGOgwBtQij/0+Jhf8lqgv/jfNV/7Dn1//MlqT/79cn/y5XnP4Io1j/rCLoAEIsZv8bNin+7GNX/yl7qQE0cisAdYYoAJuGGgDnz1v+I4Qm/xNmff4k44X/dgNx/x0NfACYYEoBWJLO/6e/3P6iElj/tmQXAB91NABRLmoBDAIHAEVQyQHR9qwADDCNAeDTWAB04p8AemKCAEHs6gHh4gn/z+J7AVnWOwBwh1gBWvTL/zELJgGBbLoAWXAPAWUuzP9/zC3+T//d/zNJEv9/KmX/8RXKAKDjBwBpMuwATzTF/2jK0AG0DxAAZcVO/2JNywApufEBI8F8ACObF//PNcAAC32jAfmeuf8EgzAAFV1v/z155wFFyCT/uTC5/2/uFf8nMhn/Y9ej/1fUHv+kkwX/gAYjAWzfbv/CTLIASmW0APMvMACuGSv/Uq39ATZywP8oN1sA12yw/ws4BwDg6UwA0WLK/vIZfQAswV3+ywixAIewEwBwR9X/zjuwAQRDGgAOj9X+KjfQ/zxDeADBFaMAY6RzAAoUdgCc1N7+oAfZ/3L1TAF1O3sAsMJW/tUPsABOzs/+1YE7AOn7FgFgN5j/7P8P/8VZVP9dlYUArqBxAOpjqf+YdFgAkKRT/18dxv8iLw//Y3iG/wXswQD5937/k7seADLmdf9s2dv/o1Gm/0gZqf6beU//HJtZ/gd+EQCTQSEBL+r9ABozEgBpU8f/o8TmAHH4pADi/toAvdHL/6T33v7/I6UABLzzAX+zRwAl7f7/ZLrwAAU5R/5nSEn/9BJR/uXShP/uBrT/C+Wu/+PdwAERMRwAo9fE/gl2BP8z8EcAcYFt/0zw5wC8sX8AfUcsARqv8wBeqRn+G+YdAA+LdwGoqrr/rMVM//xLvACJfMQASBZg/y2X+QHckWQAQMCf/3jv4gCBspIAAMB9AOuK6gC3nZIAU8fA/7isSP9J4YAATQb6/7pBQwBo9s8AvCCK/9oY8gBDilH+7YF5/xTPlgEpxxD/BhSAAJ92BQC1EI//3CYPABdAk/5JGg0AV+Q5Acx8gAArGN8A22PHABZLFP8TG34AnT7XAG4d5gCzp/8BNvy+AN3Mtv6znkH/UZ0DAMLanwCq3wAA4Asg/ybFYgCopCUAF1gHAaS6bgBgJIYA6vLlAPp5EwDy/nD/Ay9eAQnvBv9Rhpn+1v2o/0N84AD1X0oAHB4s/gFt3P+yWVkA/CRMABjGLv9MTW8AhuqI/ydeHQC5SOr/RkSH/+dmB/5N54wApy86AZRhdv8QG+EBps6P/26y1v+0g6IAj43hAQ3aTv9ymSEBYmjMAK9ydQGnzksAysRTATpAQwCKL28BxPeA/4ng4P6ecM8AmmT/AYYlawDGgE//f9Gb/6P+uf48DvMAH9tw/h3ZQQDIDXT+ezzE/+A7uP7yWcQAexBL/pUQzgBF/jAB53Tf/9GgQQHIUGIAJcK4/pQ/IgCL8EH/2ZCE/zgmLf7HeNIAbLGm/6DeBADcfnf+pWug/1Lc+AHxr4gAkI0X/6mKVACgiU7/4nZQ/zQbhP8/YIv/mPonALybDwDoM5b+KA/o//DlCf+Jrxv/S0lhAdrUCwCHBaIBa7nVAAL5a/8o8kYA28gZABmdDQBDUlD/xPkX/5EUlQAySJIAXkyUARj7QQAfwBcAuNTJ/3vpogH3rUgAolfb/n6GWQCfCwz+pmkdAEkb5AFxeLf/QqNtAdSPC/+f56gB/4BaADkOOv5ZNAr//QijAQCR0v8KgVUBLrUbAGeIoP5+vNH/IiNvANfbGP/UC9b+ZQV2AOjFhf/fp23/7VBW/0aLXgCewb8Bmw8z/w++cwBOh8//+QobAbV96QBfrA3+qtWh/yfsiv9fXVf/voBfAH0PzgCmlp8A4w+e/86eeP8qjYAAZbJ4AZxtgwDaDiz+96jO/9RwHABwEeT/WhAlAcXebAD+z1P/CVrz//P0rAAaWHP/zXR6AL/mwQC0ZAsB2SVg/5pOnADr6h//zrKy/5XA+wC2+ocA9hZpAHzBbf8C0pX/qRGqAABgbv91CQgBMnso/8G9YwAi46AAMFBG/tMz7AAtevX+LK4IAK0l6f+eQasAekXX/1pQAv+DamD+43KHAM0xd/6wPkD/UjMR//EU8/+CDQj+gNnz/6IbAf5advEA9sb2/zcQdv/In50AoxEBAIxreQBVoXb/JgCVAJwv7gAJpqYBS2K1/zJKGQBCDy8Ai+GfAEwDjv8O7rgAC881/7fAugGrIK7/v0zdAfeq2wAZrDL+2QnpAMt+RP+3XDAAf6e3AUEx/gAQP38B/hWq/zvgf/4WMD//G06C/ijDHQD6hHD+I8uQAGipqADP/R7/aCgm/l7kWADOEID/1Dd6/98W6gDfxX8A/bW1AZFmdgDsmST/1NlI/xQmGP6KPj4AmIwEAObcY/8BFdT/lMnnAPR7Cf4Aq9IAMzol/wH/Dv/0t5H+APKmABZKhAB52CkAX8Ny/oUYl/+c4uf/9wVN//aUc/7hXFH/3lD2/qp7Wf9Kx40AHRQI/4qIRv9dS1wA3ZMx/jR+4gDlfBcALgm1AM1ANAGD/hwAl57UAINATgDOGasAAOaLAL/9bv5n96cAQCgoASql8f87S+T+fPO9/8Rcsv+CjFb/jVk4AZPGBf/L+J7+kKKNAAus4gCCKhX/AaeP/5AkJP8wWKT+qKrcAGJH1gBb0E8An0zJAaYq1v9F/wD/BoB9/74BjACSU9r/1+5IAXp/NQC9dKX/VAhC/9YD0P/VboUAw6gsAZ7nRQCiQMj+WzpoALY6u/755IgAy4ZM/mPd6QBL/tb+UEWaAECY+P7siMr/nWmZ/pWvFAAWIxP/fHnpALr6xv6E5YsAiVCu/6V9RACQypT+6+/4AIe4dgBlXhH/ekhG/kWCkgB/3vgBRX92/x5S1/68ShP/5afC/nUZQv9B6jj+1RacAJc7Xf4tHBv/un6k/yAG7wB/cmMB2zQC/2Ngpv4+vn7/bN6oAUvirgDm4scAPHXa//z4FAHWvMwAH8KG/ntFwP+prST+N2JbAN8qZv6JAWYAnVoZAO96QP/8BukABzYU/1J0rgCHJTb/D7p9AONwr/9ktOH/Ku30//St4v74EiEAq2OW/0rrMv91UiD+aqjtAM9t0AHkCboAhzyp/rNcjwD0qmj/6y18/0ZjugB1ibcA4B/XACgJZAAaEF8BRNlXAAiXFP8aZDr/sKXLATR2RgAHIP7+9P71/6eQwv99cRf/sHm1AIhU0QCKBh7/WTAcACGbDv8Z8JoAjc1tAUZzPv8UKGv+iprH/17f4v+dqyYAo7EZ/i12A/8O3hcB0b5R/3Z76AEN1WX/ezd7/hv2pQAyY0z/jNYg/2FBQ/8YDBwArlZOAUD3YACgh0MAQjfz/5PMYP8aBiH/YjNTAZnV0P8CuDb/GdoLADFD9v4SlUj/DRlIACpP1gAqBCYBG4uQ/5W7FwASpIQA9VS4/njGaP9+2mAAOHXq/w0d1v5ELwr/p5qE/pgmxgBCsln/yC6r/w1jU//Su/3/qi0qAYrRfADWoo0ADOacAGYkcP4Dk0MANNd7/+mrNv9iiT4A99on/+fa7AD3v38Aw5JUAKWwXP8T1F7/EUrjAFgomQHGkwH/zkP1/vAD2v89jdX/YbdqAMPo6/5fVpoA0TDN/nbR8f/weN8B1R2fAKN/k/8N2l0AVRhE/kYUUP+9BYwBUmH+/2Njv/+EVIX/a9p0/3B6LgBpESAAwqA//0TeJwHY/VwAsWnN/5XJwwAq4Qv/KKJzAAkHUQCl2tsAtBYA/h2S/P+Sz+EBtIdgAB+jcACxC9v/hQzB/itOMgBBcXkBO9kG/25eGAFwrG8ABw9gACRVewBHlhX/0Em8AMALpwHV9SIACeZcAKKOJ//XWhsAYmFZAF5P0wBanfAAX9x+AWaw4gAkHuD+Ix9/AOfocwFVU4IA0kn1/y+Pcv9EQcUAO0g+/7eFrf5deXb/O7FR/+pFrf/NgLEA3PQzABr00QFJ3k3/owhg/paV0wCe/ssBNn+LAKHgOwAEbRb/3iot/9CSZv/sjrsAMs31/wpKWf4wT44A3kyC/x6mPwDsDA3/Mbj0ALtxZgDaZf0AmTm2/iCWKgAZxpIB7fE4AIxEBQBbpKz/TpG6/kM0zQDbz4EBbXMRADaPOgEV+Hj/s/8eAMHsQv8B/wf//cAw/xNF2QED1gD/QGWSAd99I//rSbP/+afiAOGvCgFhojoAanCrAVSsBf+FjLL/hvWOAGFaff+6y7n/300X/8BcagAPxnP/2Zj4AKuyeP/khjUAsDbBAfr7NQDVCmQBIsdqAJcf9P6s4Ff/Du0X//1VGv9/J3T/rGhkAPsORv/U0Ir//dP6ALAxpQAPTHv/Jdqg/1yHEAEKfnL/RgXg//f5jQBEFDwB8dK9/8PZuwGXA3EAl1yuAOc+sv/bt+EAFxch/821UAA5uPj/Q7QB/1p7Xf8nAKL/YPg0/1RCjAAif+T/wooHAaZuvAAVEZsBmr7G/9ZQO/8SB48ASB3iAcfZ+QDooUcBlb7JANmvX/5xk0P/io/H/3/MAQAdtlMBzuab/7rMPAAKfVX/6GAZ//9Z9//V/q8B6MFRABwrnP4MRQgAkxj4ABLGMQCGPCMAdvYS/zFY/v7kFbr/tkFwAdsWAf8WfjT/vTUx/3AZjwAmfzf/4mWj/tCFPf+JRa4BvnaR/zxi2//ZDfX/+ogKAFT+4gDJH30B8DP7/x+Dgv8CijL/19exAd8M7v/8lTj/fFtE/0h+qv53/2QAgofo/w5PsgD6g8UAisbQAHnYi/53EiT/HcF6ABAqLf/V8OsB5r6p/8Yj5P5urUgA1t3x/ziUhwDAdU7+jV3P/49BlQAVEmL/Xyz0AWq/TQD+VQj+1m6w/0mtE/6gxMf/7VqQAMGscf/Im4j+5FrdAIkxSgGk3df/0b0F/2nsN/8qH4EBwf/sAC7ZPACKWLv/4lLs/1FFl/+OvhABDYYIAH96MP9RQJwAq/OLAO0j9gB6j8H+1HqSAF8p/wFXhE0ABNQfABEfTgAnLa3+GI7Z/18JBv/jUwYAYjuC/j4eIQAIc9MBomGA/we4F/50HKj/+IqX/2L08AC6doIAcvjr/2mtyAGgfEf/XiSkAa9Bkv/u8ar+ysbFAORHiv4t9m3/wjSeAIW7sABT/Jr+Wb3d/6pJ/ACUOn0AJEQz/ipFsf+oTFb/JmTM/yY1IwCvE2EA4e79/1FRhwDSG//+60lrAAjPcwBSf4gAVGMV/s8TiABkpGUAUNBN/4TP7f8PAw//IaZuAJxfVf8luW8Blmoj/6aXTAByV4f/n8JAAAx6H//oB2X+rXdiAJpH3P6/OTX/qOig/+AgY//anKUAl5mjANkNlAHFcVkAlRyh/s8XHgBphOP/NuZe/4WtzP9ct53/WJD8/mYhWgCfYQMAtdqb//BydwBq1jX/pb5zAZhb4f9Yaiz/0D1xAJc0fAC/G5z/bjbsAQ4epv8nf88B5cccALzkvP5knesA9tq3AWsWwf/OoF8ATO+TAM+hdQAzpgL/NHUK/kk44/+YweEAhF6I/2W/0QAga+X/xiu0AWTSdgByQ5n/F1ga/1maXAHceIz/kHLP//xz+v8izkgAioV//wiyfAFXS2EAD+Vc/vBDg/92e+P+knho/5HV/wGBu0b/23c2AAETrQAtlpQB+FNIAMvpqQGOazgA9/kmAS3yUP8e6WcAYFJGABfJbwBRJx7/obdO/8LqIf9E44z+2M50AEYb6/9okE8ApOZd/taHnACau/L+vBSD/yRtrgCfcPEABW6VASSl2gCmHRMBsi5JAF0rIP74ve0AZpuNAMldw//xi/3/D29i/2xBo/6bT77/Sa7B/vYoMP9rWAv+ymFV//3MEv9x8kIAbqDC/tASugBRFTwAvGin/3ymYf7ShY4AOPKJ/ilvggBvlzoBb9WN/7es8f8mBsT/uQd7/y4L9gD1aXcBDwKh/wjOLf8Sykr/U3xzAdSNnQBTCNH+iw/o/6w2rf4y94QA1r3VAJC4aQDf/vgA/5Pw/xe8SAAHMzYAvBm0/ty0AP9ToBQAo73z/zrRwv9XSTwAahgxAPX53AAWracAdgvD/xN+7QBunyX/O1IvALS7VgC8lNABZCWF/wdwwQCBvJz/VGqB/4XhygAO7G//KBRlAKysMf4zNkr/+7m4/12b4P+0+eAB5rKSAEg5Nv6yPrgAd81IALnv/f89D9oAxEM4/+ogqwEu2+QA0Gzq/xQ/6P+lNccBheQF/zTNawBK7oz/lpzb/u+ssv/7vd/+II7T/9oPigHxxFAAHCRi/hbqxwA97dz/9jklAI4Rjv+dPhoAK+5f/gPZBv/VGfABJ9yu/5rNMP4TDcD/9CI2/owQmwDwtQX+m8E8AKaABP8kkTj/lvDbAHgzkQBSmSoBjOySAGtc+AG9CgMAP4jyANMnGAATyqEBrRu6/9LM7/4p0aL/tv6f/6x0NADDZ97+zUU7ADUWKQHaMMIAUNLyANK8zwC7oaH+2BEBAIjhcQD6uD8A3x5i/k2oogA7Na8AE8kK/4vgwgCTwZr/1L0M/gHIrv8yhXEBXrNaAK22hwBesXEAK1nX/4j8av97hlP+BfVC/1IxJwHcAuAAYYGxAE07WQA9HZsBy6vc/1xOiwCRIbX/qRiNATeWswCLPFD/2idhAAKTa/88+EgAreYvAQZTtv8QaaL+idRR/7S4hgEn3qT/3Wn7Ae9wfQA/B2EAP2jj/5Q6DABaPOD/VNT8AE/XqAD43ccBc3kBACSseAAgorv/OWsx/5MqFQBqxisBOUpXAH7LUf+Bh8MAjB+xAN2LwgAD3tcAg0TnALFWsv58l7QAuHwmAUajEQD5+7UBKjfjAOKhLAAX7G4AM5WOAV0F7ADat2r+QxhNACj10f/eeZkApTkeAFN9PABGJlIB5Qa8AG3enf83dj//zZe6AOMhlf/+sPYB47HjACJqo/6wK08Aal9OAbnxev+5Dj0AJAHKAA2yov/3C4QAoeZcAUEBuf/UMqUBjZJA/57y2gAVpH0A1Yt6AUNHVwDLnrIBl1wrAJhvBf8nA+//2f/6/7A/R/9K9U0B+q4S/yIx4//2Lvv/miMwAX2dPf9qJE7/YeyZAIi7eP9xhqv/E9XZ/the0f/8BT0AXgPKAAMat/9Avyv/HhcVAIGNTf9meAcBwkyMALyvNP8RUZQA6FY3AeEwrACGKir/7jIvAKkS/gAUk1f/DsPv/0X3FwDu5YD/sTFwAKhi+/95R/gA8wiR/vbjmf/bqbH++4ul/wyjuf+kKKv/mZ8b/vNtW//eGHABEtbnAGudtf7DkwD/wmNo/1mMvv+xQn7+arlCADHaHwD8rp4AvE/mAe4p4ADU6ggBiAu1AKZ1U/9Ew14ALoTJAPCYWACkOUX+oOAq/zvXQ/93w43/JLR5/s8vCP+u0t8AZcVE//9SjQH6iekAYVaFARBQRQCEg58AdF1kAC2NiwCYrJ3/WitbAEeZLgAnEHD/2Yhh/9zGGf6xNTEA3liG/4APPADPwKn/wHTR/2pO0wHI1bf/Bwx6/t7LPP8hbsf++2p1AOThBAF4Ogf/3cFU/nCFGwC9yMn/i4eWAOo3sP89MkEAmGyp/9xVAf9wh+MAohq6AM9guf70iGsAXZkyAcZhlwBuC1b/j3Wu/3PUyAAFyrcA7aQK/rnvPgDseBL+Yntj/6jJwv4u6tYAv4Ux/2OpdwC+uyMBcxUt//mDSABwBnv/1jG1/qbpIgBcxWb+/eTN/wM7yQEqYi4A2yUj/6nDJgBefMEBnCvfAF9Ihf54zr8AesXv/7G7T//+LgIB+qe+AFSBEwDLcab/+R+9/kidyv/QR0n/zxhIAAoQEgHSUUz/WNDA/37za//ujXj/x3nq/4kMO/8k3Hv/lLM8/vAMHQBCAGEBJB4m/3MBXf9gZ+f/xZ47AcCk8ADKyjn/GK4wAFlNmwEqTNcA9JfpABcwUQDvfzT+44Il//h0XQF8hHYArf7AAQbrU/9ur+cB+xy2AIH5Xf5UuIAATLU+AK+AugBkNYj+bR3iAN3pOgEUY0oAABagAIYNFQAJNDf/EVmMAK8iOwBUpXf/4OLq/wdIpv97c/8BEtb2APoHRwHZ3LkA1CNM/yZ9rwC9YdIAcu4s/ym8qf4tupoAUVwWAISgwQB50GL/DVEs/8ucUgBHOhX/0HK//jImkwCa2MMAZRkSADz61//phOv/Z6+OARAOXACNH27+7vEt/5nZ7wFhqC//+VUQARyvPv85/jYA3ud+AKYtdf4SvWD/5EwyAMj0XgDGmHgBRCJF/wxBoP5lE1oAp8V4/0Q2uf8p2rwAcagwAFhpvQEaUiD/uV2kAeTw7f9CtjUAq8Vc/2sJ6QHHeJD/TjEK/22qaf9aBB//HPRx/0o6CwA+3Pb/eZrI/pDSsv9+OYEBK/oO/2VvHAEvVvH/PUaW/zVJBf8eGp4A0RpWAIrtSgCkX7wAjjwd/qJ0+P+7r6AAlxIQANFvQf7Lhif/WGwx/4MaR//dG9f+aGld/x/sH/6HANP/j39uAdRJ5QDpQ6f+wwHQ/4QR3f8z2VoAQ+sy/9/SjwCzNYIB6WrGANmt3P9w5Rj/r5pd/kfL9v8wQoX/A4jm/xfdcf7rb9UAqnhf/vvdAgAtgp7+aV7Z//I0tP7VRC3/aCYcAPSeTAChyGD/zzUN/7tDlACqNvgAd6Ky/1MUCwAqKsABkp+j/7fobwBN5RX/RzWPABtMIgD2iC//2ye2/1zgyQETjg7/Rbbx/6N29QAJbWoBqrX3/04v7v9U0rD/1WuLACcmCwBIFZYASIJFAM1Nm/6OhRUAR2+s/uIqO/+zANcBIYDxAOr8DQG4TwgAbh5J//aNvQCqz9oBSppF/4r2Mf+bIGQAfUpp/1pVPf8j5bH/Pn3B/5lWvAFJeNQA0Xv2/ofRJv+XOiwBXEXW/w4MWP/8mab//c9w/zxOU//jfG4AtGD8/zV1If6k3FL/KQEb/yakpv+kY6n+PZBG/8CmEgBr+kIAxUEyAAGzEv//aAH/K5kj/1BvqABur6gAKWkt/9sOzf+k6Yz+KwF2AOlDwwCyUp//ild6/9TuWv+QI3z+GYykAPvXLP6FRmv/ZeNQ/lypNwDXKjEAcrRV/yHoGwGs1RkAPrB7/iCFGP/hvz4AXUaZALUqaAEWv+D/yMiM//nqJQCVOY0AwzjQ//6CRv8grfD/HdzHAG5kc/+E5fkA5Onf/yXY0f6ysdH/ty2l/uBhcgCJYaj/4d6sAKUNMQHS68z//AQc/kaglwDovjT+U/hd/z7XTQGvr7P/oDJCAHkw0AA/qdH/ANLIAOC7LAFJolIACbCP/xNMwf8dO6cBGCuaABy+vgCNvIEA6OvL/+oAbf82QZ8APFjo/3n9lv786YP/xm4pAVNNR//IFjv+av3y/xUMz//tQr0AWsbKAeGsfwA1FsoAOOaEAAFWtwBtvioA80SuAW3kmgDIsXoBI6C3/7EwVf9a2qn/+JhOAMr+bgAGNCsAjmJB/z+RFgBGal0A6IprAW6zPf/TgdoB8tFcACNa2QG2j2r/dGXZ/3L63f+tzAYAPJajAEmsLP/vblD/7UyZ/qGM+QCV6OUAhR8o/66kdwBxM9YAgeQC/kAi8wBr4/T/rmrI/1SZRgEyIxAA+krY/uy9Qv+Z+Q0A5rIE/90p7gB243n/XleM/v53XABJ7/b+dVeAABPTkf+xLvwA5Vv2AUWA9//KTTYBCAsJ/5lgpgDZ1q3/hsACAQDPAAC9rmsBjIZkAJ7B8wG2ZqsA65ozAI4Fe/88qFkB2Q5c/xPWBQHTp/4ALAbK/ngS7P8Pcbj/uN+LACixd/62e1r/sKWwAPdNwgAb6ngA5wDW/zsnHgB9Y5H/lkREAY3e+ACZe9L/bn+Y/+Uh1gGH3cUAiWECAAyPzP9RKbwAc0+C/14DhACYr7v/fI0K/37As/8LZ8YAlQYtANtVuwHmErL/SLaYAAPGuP+AcOABYaHmAP5jJv86n8UAl0LbADtFj/+5cPkAd4gv/3uChACoR1//cbAoAei5rQDPXXUBRJ1s/2YFk/4xYSEAWUFv/vceo/982d0BZvrYAMauS/45NxIA4wXsAeXVrQDJbdoBMenvAB43ngEZsmoAm2+8AV5+jADXH+4BTfAQANXyGQEmR6gAzbpd/jHTjP/bALT/hnalAKCThv9uuiP/xvMqAPOSdwCG66MBBPGH/8Euwf5ntE//4QS4/vJ2ggCSh7AB6m8eAEVC1f4pYHsAeV4q/7K/w/8ugioAdVQI/+kx1v7uem0ABkdZAezTewD0DTD+d5QOAHIcVv9L7Rn/keUQ/oFkNf+Glnj+qJ0yABdIaP/gMQ4A/3sW/5e5l/+qULgBhrYUAClkZQGZIRAATJpvAVbO6v/AoKT+pXtd/wHYpP5DEa//qQs7/54pPf9JvA7/wwaJ/xaTHf8UZwP/9oLj/3oogADiLxj+IyQgAJi6t/9FyhQAw4XDAN4z9wCpq14BtwCg/0DNEgGcUw//xTr5/vtZbv8yClj+MyvYAGLyxgH1l3EAq+zCAcUfx//lUSYBKTsUAP1o5gCYXQ7/9vKS/tap8P/wZmz+oKfsAJravACW6cr/GxP6AQJHhf+vDD8BkbfGAGh4c/+C+/cAEdSn/z57hP/3ZL0Am9+YAI/FIQCbOyz/ll3wAX8DV/9fR88Bp1UB/7yYdP8KFxcAicNdATZiYQDwAKj/lLx/AIZrlwBM/asAWoTAAJIWNgDgQjb+5rrl/ye2xACU+4L/QYNs/oABoACpMaf+x/6U//sGgwC7/oH/VVI+ALIXOv/+hAUApNUnAIb8kv4lNVH/m4ZSAM2n7v9eLbT/hCihAP5vcAE2S9kAs+bdAetev/8X8zABypHL/yd2Kv91jf0A/gDeACv7MgA2qeoBUETQAJTL8/6RB4cABv4AAPy5fwBiCIH/JiNI/9Mk3AEoGlkAqEDF/gPe7/8CU9f+tJ9pADpzwgC6dGr/5ffb/4F2wQDKrrcBpqFIAMlrk/7tiEoA6eZqAWlvqABA4B4BAeUDAGaXr//C7uT//vrUALvteQBD+2ABxR4LALdfzADNWYoAQN0lAf/fHv+yMNP/8cha/6fRYP85gt0ALnLI/z24QgA3thj+brYhAKu+6P9yXh8AEt0IAC/n/gD/cFMAdg/X/60ZKP7AwR//7hWS/6vBdv9l6jX+g9RwAFnAawEI0BsAtdkP/+eV6ACM7H4AkAnH/wxPtf6Ttsr/E222/zHU4QBKo8sAr+mUABpwMwDBwQn/D4f5AJbjggDMANsBGPLNAO7Qdf8W9HAAGuUiACVQvP8mLc7+8Frh/x0DL/8q4EwAuvOnACCED/8FM30Ai4cYAAbx2wCs5YX/9tYyAOcLz/+/flMBtKOq//U4GAGypNP/AxDKAWI5dv+Ng1n+ITMYAPOVW//9NA4AI6lD/jEeWP+zGyT/pYy3ADq9lwBYHwAAS6lCAEJlx/8Y2McBecQa/w5Py/7w4lH/XhwK/1PB8P/MwYP/Xg9WANoonQAzwdEAAPKxAGa59wCebXQAJodbAN+vlQDcQgH/VjzoABlgJf/heqIB17uo/56dLgA4q6IA6PBlAXoWCQAzCRX/NRnu/9ke6P59qZQADehmAJQJJQClYY0B5IMpAN4P8//+EhEABjztAWoDcQA7hL0AXHAeAGnQ1QAwVLP/u3nn/hvYbf+i3Wv+Se/D//ofOf+Vh1n/uRdzAQOjnf8ScPoAGTm7/6FgpAAvEPMADI37/kPquP8pEqEArwZg/6CsNP4YsLf/xsFVAXx5if+XMnL/3Ms8/8/vBQEAJmv/N+5e/kaYXgDV3E0BeBFF/1Wkvv/L6lEAJjEl/j2QfACJTjH+qPcwAF+k/ABpqYcA/eSGAECmSwBRSRT/z9IKAOpqlv9eIlr//p85/tyFYwCLk7T+GBe5ACk5Hv+9YUwAQbvf/+CsJf8iPl8B55DwAE1qfv5AmFsAHWKbAOL7Nf/q0wX/kMve/6Sw3f4F5xgAs3rNACQBhv99Rpf+YeT8AKyBF/4wWtH/luBSAVSGHgDxxC4AZ3Hq/y5lef4ofPr/hy3y/gn5qP+MbIP/j6OrADKtx/9Y3o7/yF+eAI7Ao/8HdYcAb3wWAOwMQf5EJkH/467+APT1JgDwMtD/oT/6ADzR7wB6IxMADiHm/gKfcQBqFH//5M1gAInSrv601JD/WWKaASJYiwCnonABQW7FAPElqQBCOIP/CslT/oX9u/+xcC3+xPsAAMT6l//u6Nb/ltHNABzwdgBHTFMB7GNbACr6gwFgEkD/dt4jAHHWy/96d7j/QhMkAMxA+QCSWYsAhj6HAWjpZQC8VBoAMfmBANDWS//Pgk3/c6/rAKsCif+vkboBN/WH/5pWtQFkOvb/bcc8/1LMhv/XMeYBjOXA/97B+/9RiA//s5Wi/xcnHf8HX0v+v1HeAPFRWv9rMcn/9NOdAN6Mlf9B2zj+vfZa/7I7nQEw2zQAYiLXABwRu/+vqRgAXE+h/+zIwgGTj+oA5eEHAcWoDgDrMzUB/XiuAMUGqP/KdasAoxXOAHJVWv8PKQr/whNjAEE32P6iknQAMs7U/0CSHf+enoMBZKWC/6wXgf99NQn/D8ESARoxC/+1rskBh8kO/2QTlQDbYk8AKmOP/mAAMP/F+VP+aJVP/+tuiP5SgCz/QSkk/ljTCgC7ebsAYobHAKu8s/7SC+7/QnuC/jTqPQAwcRf+BlZ4/3ey9QBXgckA8o3RAMpyVQCUFqEAZ8MwABkxq/+KQ4IAtkl6/pQYggDT5ZoAIJueAFRpPQCxwgn/pllWATZTuwD5KHX/bQPX/zWSLAE/L7MAwtgD/g5UiACIsQ3/SPO6/3URff/TOtP/XU/fAFpY9f+L0W//Rt4vAAr2T//G2bIA4+ELAU5+s/8+K34AZ5QjAIEIpf718JQAPTOOAFHQhgAPiXP/03fs/5/1+P8Choj/5os6AaCk/gByVY3/Maa2/5BGVAFVtgcALjVdAAmmof83orL/Lbi8AJIcLP6pWjEAeLLxAQ57f/8H8ccBvUIy/8aPZf6984f/jRgY/kthVwB2+5oB7TacAKuSz/+DxPb/iEBxAZfoOQDw2nMAMT0b/0CBSQH8qRv/KIQKAVrJwf/8efABus4pACvGYQCRZLcAzNhQ/qyWQQD55cT+aHtJ/01oYP6CtAgAaHs5ANzK5f9m+dMAVg7o/7ZO0QDv4aQAag0g/3hJEf+GQ+kAU/61ALfscAEwQIP/8djz/0HB4gDO8WT+ZIam/+3KxQA3DVEAIHxm/yjksQB2tR8B56CG/3e7ygAAjjz/gCa9/6bJlgDPeBoBNrisAAzyzP6FQuYAIiYfAbhwUAAgM6X+v/M3ADpJkv6bp83/ZGiY/8X+z/+tE/cA7grKAO+X8gBeOyf/8B1m/wpcmv/lVNv/oYFQANBazAHw267/nmaRATWyTP80bKgBU95rANMkbQB2OjgACB0WAO2gxwCq0Z0AiUcvAI9WIADG8gIA1DCIAVysugDml2kBYL/lAIpQv/7w2IL/YisG/qjEMQD9ElsBkEl5AD2SJwE/aBj/uKVw/n7rYgBQ1WL/ezxX/1KM9QHfeK3/D8aGAc487wDn6lz/Ie4T/6VxjgGwdyYAoCum/u9baQBrPcIBGQREAA+LMwCkhGr/InQu/qhfxQCJ1BcASJw6AIlwRf6WaZr/7MmdABfUmv+IUuP+4jvd/1+VwABRdjT/ISvXAQ6TS/9ZnHn+DhJPAJPQiwGX2j7/nFgIAdK4Yv8Ur3v/ZlPlANxBdAGW+gT/XI7c/yL3Qv/M4bP+l1GXAEco7P+KPz4ABk/w/7e5tQB2MhsAP+PAAHtjOgEy4Jv/EeHf/tzgTf8OLHsBjYCvAPjUyACWO7f/k2EdAJbMtQD9JUcAkVV3AJrIugACgPn/Uxh8AA5XjwCoM/UBfJfn/9DwxQF8vrkAMDr2ABTp6AB9EmL/Df4f//Wxgv9sjiMAq33y/owMIv+loaIAzs1lAPcZIgFkkTkAJ0Y5AHbMy//yAKIApfQeAMZ04gCAb5n/jDa2ATx6D/+bOjkBNjLGAKvTHf9riqf/rWvH/22hwQBZSPL/znNZ//r+jv6xyl7/UVkyAAdpQv8Z/v/+y0AX/0/ebP8n+UsA8XwyAO+YhQDd8WkAk5diANWhef7yMYkA6SX5/iq3GwC4d+b/2SCj/9D75AGJPoP/T0AJ/l4wcQARijL+wf8WAPcSxQFDN2gAEM1f/zAlQgA3nD8BQFJK/8g1R/7vQ30AGuDeAN+JXf8e4Mr/CdyEAMYm6wFmjVYAPCtRAYgcGgDpJAj+z/KUAKSiPwAzLuD/cjBP/wmv4gDeA8H/L6Do//9daf4OKuYAGopSAdAr9AAbJyb/YtB//0CVtv8F+tEAuzwc/jEZ2v+pdM3/dxJ4AJx0k/+ENW3/DQrKAG5TpwCd24n/BgOC/zKnHv88ny//gYCd/l4DvQADpkQAU9/XAJZawgEPqEEA41Mz/82rQv82uzwBmGYt/3ea4QDw94gAZMWy/4tH3//MUhABKc4q/5zA3f/Ye/T/2tq5/7u67//8rKD/wzQWAJCutf67ZHP/006w/xsHwQCT1Wj/WskK/1B7QgEWIboAAQdj/h7OCgDl6gUANR7SAIoI3P5HN6cASOFWAXa+vAD+wWUBq/ms/16et/5dAmz/sF1M/0ljT/9KQIH+9i5BAGPxf/72l2b/LDXQ/jtm6gCar6T/WPIgAG8mAQD/tr7/c7AP/qk8gQB67fEAWkw/AD5KeP96w24AdwSyAN7y0gCCIS7+nCgpAKeScAExo2//ebDrAEzPDv8DGcYBKevVAFUk1gExXG3/yBge/qjswwCRJ3wB7MOVAFokuP9DVar/JiMa/oN8RP/vmyP/NsmkAMQWdf8xD80AGOAdAX5xkAB1FbYAy5+NAN+HTQCw5rD/vuXX/2Mltf8zFYr/Gb1Z/zEwpf6YLfcAqmzeAFDKBQAbRWf+zBaB/7T8Pv7SAVv/km7+/9uiHADf/NUBOwghAM4Q9ACB0zAAa6DQAHA70QBtTdj+IhW5//ZjOP+zixP/uR0y/1RZEwBK+mL/4SrI/8DZzf/SEKcAY4RfASvmOQD+C8v/Y7w//3fB+/5QaTYA6LW9AbdFcP/Qq6X/L220/3tTpQCSojT/mgsE/5fjWv+SiWH+Pekp/14qN/9spOwAmET+AAqMg/8Kak/+856JAEOyQv6xe8b/Dz4iAMVYKv+VX7H/mADG/5X+cf/hWqP/fdn3ABIR4ACAQnj+wBkJ/zLdzQAx1EYA6f+kAALRCQDdNNv+rOD0/144zgHyswL/H1ukAeYuiv+95twAOS89/28LnQCxW5gAHOZiAGFXfgDGWZH/p09rAPlNoAEd6eb/lhVW/jwLwQCXJST+uZbz/+TUUwGsl7QAyambAPQ86gCO6wQBQ9o8AMBxSwF088//QaybAFEenP9QSCH+Eudt/45rFf59GoT/sBA7/5bJOgDOqckA0HniACisDv+WPV7/ODmc/408kf8tbJX/7pGb/9FVH/7ADNIAY2Jd/pgQlwDhudwAjess/6CsFf5HGh//DUBd/hw4xgCxPvgBtgjxAKZllP9OUYX/gd7XAbypgf/oB2EAMXA8/9nl+wB3bIoAJxN7/oMx6wCEVJEAguaU/xlKuwAF9Tb/udvxARLC5P/xymYAaXHKAJvrTwAVCbL/nAHvAMiUPQBz99L/Md2HADq9CAEjLgkAUUEF/zSeuf99dC7/SowN/9JcrP6TF0cA2eD9/nNstP+ROjD+27EY/5z/PAGak/IA/YZXADVL5QAww97/H68y/5zSeP/QI97/EvizAQIKZf+dwvj/nsxl/2j+xf9PPgQAsqxlAWCS+/9BCpwAAoml/3QE5wDy1wEAEyMd/yuhTwA7lfYB+0KwAMghA/9Qbo7/w6ERAeQ4Qv97L5H+hASkAEOurAAZ/XIAV2FXAfrcVABgW8j/JX07ABNBdgChNPH/7awG/7C///8BQYL+377mAGX95/+SI20A+h1NATEAEwB7WpsBFlYg/9rVQQBvXX8APF2p/wh/tgARug7+/Yn2/9UZMP5M7gD/+FxG/2PgiwC4Cf8BB6TQAM2DxgFX1scAgtZfAN2V3gAXJqv+xW7VACtzjP7XsXYAYDRCAXWe7QAOQLb/Lj+u/55fvv/hzbH/KwWO/6xj1P/0u5MAHTOZ/+R0GP4eZc8AE/aW/4bnBQB9huIBTUFiAOyCIf8Fbj4ARWx//wdxFgCRFFP+wqHn/4O1PADZ0bH/5ZTU/gODuAB1sbsBHA4f/7BmUAAyVJf/fR82/xWdhf8Ts4sB4OgaACJ1qv+n/Kv/SY3O/oH6IwBIT+wB3OUU/ynKrf9jTO7/xhbg/2zGw/8kjWAB7J47/2pkVwBu4gIA4+reAJpdd/9KcKT/Q1sC/xWRIf9m1on/r+Zn/qP2pgBd93T+p+Ac/9wCOQGrzlQAe+QR/xt4dwB3C5MBtC/h/2jIuf6lAnIATU7UAC2asf8YxHn+Up22AFoQvgEMk8UAX++Y/wvrRwBWknf/rIbWADyDxACh4YEAH4J4/l/IMwBp59L/OgmU/yuo3f987Y4AxtMy/i71ZwCk+FQAmEbQ/7R1sQBGT7kA80ogAJWczwDFxKEB9TXvAA9d9v6L8DH/xFgk/6ImewCAyJ0Brkxn/62pIv7YAav/cjMRAIjkwgBuljj+avafABO4T/+WTfD/m1CiAAA1qf8dl1YARF4QAFwHbv5idZX/+U3m//0KjADWfFz+I3brAFkwOQEWNaYAuJA9/7P/wgDW+D3+O272AHkVUf6mA+QAakAa/0Xohv/y3DX+LtxVAHGV9/9hs2f/vn8LAIfRtgBfNIEBqpDO/3rIzP+oZJIAPJCV/kY8KAB6NLH/9tNl/67tCAAHM3gAEx+tAH7vnP+PvcsAxIBY/+mF4v8efa3/yWwyAHtkO//+owMB3ZS1/9aIOf7etIn/z1g2/xwh+/9D1jQB0tBkAFGqXgCRKDUA4G/n/iMc9P/ix8P+7hHmANnZpP6pnd0A2i6iAcfPo/9sc6IBDmC7/3Y8TAC4n5gA0edH/iqkuv+6mTP+3au2/6KOrQDrL8EAB4sQAV+kQP8Q3aYA28UQAIQdLP9kRXX/POtY/ihRrQBHvj3/u1idAOcLFwDtdaQA4ajf/5pydP+jmPIBGCCqAH1icf6oE0wAEZ3c/ps0BQATb6H/R1r8/61u8AAKxnn//f/w/0J70gDdwtf+eaMR/+EHYwC+MbYAcwmFAegaiv/VRIQALHd6/7NiMwCVWmoARzLm/wqZdv+xRhkApVfNADeK6gDuHmEAcZvPAGKZfwAia9v+dXKs/0y0//7yObP/3SKs/jiiMf9TA///cd29/7wZ5P4QWFn/RxzG/hYRlf/zef7/a8pj/wnODgHcL5kAa4knAWExwv+VM8X+ujoL/2sr6AHIBg7/tYVB/t3kq/97PucB4+qz/yK91P70u/kAvg1QAYJZAQDfha0ACd7G/0J/SgCn2F3/m6jGAUKRAABEZi4BrFqaANiAS/+gKDMAnhEbAXzwMQDsyrD/l3zA/ybBvgBftj0Ao5N8//+lM/8cKBH+12BOAFaR2v4fJMr/VgkFAG8pyP/tbGEAOT4sAHW4DwEt8XQAmAHc/52lvAD6D4MBPCx9/0Hc+/9LMrgANVqA/+dQwv+IgX8BFRK7/y06of9HkyIArvkL/iONHQDvRLH/c246AO6+sQFX9ab/vjH3/5JTuP+tDif/ktdoAI7feACVyJv/1M+RARC12QCtIFf//yO1AHffoQHI317/Rga6/8BDVf8yqZgAkBp7/zjzs/4URIgAJ4y8/v3QBf/Ic4cBK6zl/5xouwCX+6cANIcXAJeZSACTxWv+lJ4F/+6PzgB+mYn/WJjF/gdEpwD8n6X/7042/xg/N/8m3l4A7bcM/87M0gATJ/b+HkrnAIdsHQGzcwAAdXZ0AYQG/P+RgaEBaUONAFIl4v/u4uT/zNaB/qJ7ZP+5eeoALWznAEIIOP+EiIAArOBC/q+dvADm3+L+8ttFALgOdwFSojgAcnsUAKJnVf8x72P+nIfXAG//p/4nxNYAkCZPAfmofQCbYZz/FzTb/5YWkAAslaX/KH+3AMRN6f92gdL/qofm/9Z3xgDp8CMA/TQH/3VmMP8VzJr/s4ix/xcCAwGVgln//BGfAUY8GgCQaxEAtL48/zi2O/9uRzb/xhKB/5XgV//fFZj/iha2//qczQDsLdD/T5TyAWVG0QBnTq4AZZCs/5iI7QG/wogAcVB9AZgEjQCbljX/xHT1AO9ySf4TUhH/fH3q/yg0vwAq0p7/m4SlALIFKgFAXCj/JFVN/7LkdgCJQmD+c+JCAG7wRf6Xb1AAp67s/+Nsa/+88kH/t1H/ADnOtf8vIrX/1fCeAUdLXwCcKBj/ZtJRAKvH5P+aIikA469LABXvwwCK5V8BTMAxAHV7VwHj4YIAfT4//wLGqwD+JA3+kbrOAJT/9P8jAKYAHpbbAVzk1ABcxjz+PoXI/8kpOwB97m3/tKPuAYx6UgAJFlj/xZ0v/5leOQBYHrYAVKFVALKSfACmpgf/FdDfAJy28gCbebkAU5yu/poQdv+6U+gB3zp5/x0XWAAjfX//qgWV/qQMgv+bxB0AoWCIAAcjHQGiJfsAAy7y/wDZvAA5ruIBzukCADm7iP57vQn/yXV//7okzADnGdgAUE5pABOGgf+Uy0QAjVF9/vilyP/WkIcAlzem/ybrWwAVLpoA3/6W/yOZtP99sB0BK2Ie/9h65v/poAwAObkM/vBxB/8FCRD+GltsAG3GywAIkygAgYbk/3y6KP9yYoT+poQXAGNFLAAJ8u7/uDU7AISBZv80IPP+k9/I/3tTs/6HkMn/jSU4AZc84/9aSZwBy6y7AFCXL/9eief/JL87/+HRtf9K19X+Bnaz/5k2wQEyAOcAaJ1IAYzjmv+24hD+YOFc/3MUqv4G+k4A+Eut/zVZBv8AtHYASK0BAEAIzgGuhd8AuT6F/9YLYgDFH9AAq6f0/xbntQGW2rkA96lhAaWL9/8veJUBZ/gzADxFHP4Zs8QAfAfa/jprUQC46Zz//EokAHa8QwCNXzX/3l6l/i49NQDOO3P/L+z6/0oFIAGBmu7/aiDiAHm7Pf8DpvH+Q6qs/x3Ysv8XyfwA/W7zAMh9OQBtwGD/NHPuACZ58//JOCEAwnaCAEtgGf+qHub+Jz/9ACQt+v/7Ae8AoNRcAS3R7QDzIVf+7VTJ/9QSnf7UY3//2WIQ/ous7wCoyYL/j8Gp/+6XwQHXaCkA7z2l/gID8gAWy7H+scwWAJWB1f4fCyn/AJ95/qAZcv+iUMgAnZcLAJqGTgHYNvwAMGeFAGncxQD9qE3+NbMXABh58AH/LmD/azyH/mLN+f8/+Xf/eDvT/3K0N/5bVe0AldRNAThJMQBWxpYAXdGgAEXNtv/0WisAFCSwAHp03QAzpycB5wE//w3FhgAD0SL/hzvKAKdkTgAv30wAuTw+ALKmewGEDKH/Pa4rAMNFkAB/L78BIixOADnqNAH/Fij/9l6SAFPkgAA8TuD/AGDS/5mv7ACfFUkAtHPE/oPhagD/p4YAnwhw/3hEwv+wxMb/djCo/12pAQBwyGYBShj+ABONBP6OPj8Ag7O7/02cm/93VqQAqtCS/9CFmv+Umzr/onjo/vzVmwDxDSoAXjKDALOqcACMU5f/N3dUAYwj7/+ZLUMB7K8nADaXZ/+eKkH/xO+H/lY1ywCVYS/+2CMR/0YDRgFnJFr/KBqtALgwDQCj29n/UQYB/92qbP7p0F0AZMn5/lYkI//Rmh4B48n7/wK9p/5kOQMADYApAMVkSwCWzOv/ka47AHj4lf9VN+EActI1/sfMdwAO90oBP/uBAENolwGHglAAT1k3/3Xmnf8ZYI8A1ZEFAEXxeAGV81//cioUAINIAgCaNRT/ST5tAMRmmAApDMz/eiYLAfoKkQDPfZQA9vTe/ykgVQFw1X4AovlWAUfGf/9RCRUBYicE/8xHLQFLb4kA6jvnACAwX//MH3IBHcS1/zPxp/5dbY4AaJAtAOsMtf80cKQATP7K/64OogA965P/K0C5/ul92QDzWKf+SjEIAJzMQgB81nsAJt12AZJw7AByYrEAl1nHAFfFcAC5laEALGClAPizFP+829j+KD4NAPOOjQDl487/rMoj/3Ww4f9SbiYBKvUO/xRTYQAxqwoA8nd4ABnoPQDU8JP/BHM4/5ER7/7KEfv/+RL1/2N17wC4BLP/9u0z/yXvif+mcKb/Ubwh/7n6jv82u60A0HDJAPYr5AFouFj/1DTE/zN1bP/+dZsALlsP/1cOkP9X48wAUxpTAZ9M4wCfG9UBGJdsAHWQs/6J0VIAJp8KAHOFyQDftpwBbsRd/zk86QAFp2n/msWkAGAiuv+ThSUB3GO+AAGnVP8UkasAwsX7/l9Ohf/8+PP/4V2D/7uGxP/YmaoAFHae/owBdgBWng8BLdMp/5MBZP5xdEz/039sAWcPMADBEGYBRTNf/2uAnQCJq+kAWnyQAWqhtgCvTOwByI2s/6M6aADptDT/8P0O/6Jx/v8m74r+NC6mAPFlIf6DupwAb9A+/3xeoP8frP4AcK44/7xjG/9DivsAfTqAAZyYrv+yDPf//FSeAFLFDv6syFP/JScuAWrPpwAYvSIAg7KQAM7VBACh4tIASDNp/2Etu/9OuN//sB37AE+gVv90JbIAUk3VAVJUjf/iZdQBr1jH//Ve9wGsdm3/prm+AIO1eABX/l3/hvBJ/yD1j/+Lomf/s2IS/tnMcACT33j/NQrzAKaMlgB9UMj/Dm3b/1vaAf/8/C/+bZx0/3MxfwHMV9P/lMrZ/xpV+f8O9YYBTFmp//It5gA7Yqz/ckmE/k6bMf+eflQAMa8r/xC2VP+dZyMAaMFt/0PdmgDJrAH+CKJYAKUBHf99m+X/HprcAWfvXADcAW3/ysYBAF4CjgEkNiwA6+Ke/6r71v+5TQkAYUryANujlf/wI3b/33JY/sDHAwBqJRj/yaF2/2FZYwHgOmf/ZceT/t48YwDqGTsBNIcbAGYDW/6o2OsA5eiIAGg8gQAuqO4AJ79DAEujLwCPYWL/ONioAajp/P8jbxb/XFQrABrIVwFb/ZgAyjhGAI4ITQBQCq8B/MdMABZuUv+BAcIAC4A9AVcOkf/93r4BD0iuAFWjVv46Yyz/LRi8/hrNDwAT5dL++EPDAGNHuACaxyX/l/N5/yYzS//JVYL+LEH6ADmT8/6SKzv/WRw1ACFUGP+zMxL+vUZTAAucswFihncAnm9vAHeaSf/IP4z+LQ0N/5rAAv5RSCoALqC5/ixwBgCS15UBGrBoAEQcVwHsMpn/s4D6/s7Bv/+mXIn+NSjvANIBzP6orSMAjfMtASQybf8P8sL/4596/7Cvyv5GOUgAKN84ANCiOv+3Yl0AD28MAB4ITP+Ef/b/LfJnAEW1D/8K0R4AA7N5APHo2gF7x1j/AtLKAbyCUf9eZdABZyQtAEzBGAFfGvH/paK7ACRyjADKQgX/JTiTAJgL8wF/Vej/+ofUAbmxcQBa3Ev/RfiSADJvMgBcFlAA9CRz/qNkUv8ZwQYBfz0kAP1DHv5B7Kr/oRHX/j+vjAA3fwQAT3DpAG2gKACPUwf/QRru/9mpjP9OXr3/AJO+/5NHuv5qTX//6Z3pAYdX7f/QDewBm20k/7Rk2gC0oxIAvm4JARE/e/+ziLT/pXt7/5C8Uf5H8Gz/GXAL/+PaM/+nMur/ck9s/x8Tc/+38GMA41eP/0jZ+P9mqV8BgZWVAO6FDAHjzCMA0HMaAWYI6gBwWI8BkPkOAPCerP5kcHcAwo2Z/ig4U/95sC4AKjVM/56/mgBb0VwArQ0QAQVI4v/M/pUAULjPAGQJev52Zav//MsA/qDPNgA4SPkBOIwN/wpAa/5bZTT/4bX4AYv/hADmkREA6TgXAHcB8f/VqZf/Y2MJ/rkPv/+tZ20Brg37/7JYB/4bO0T/CiEC//hhOwAaHpIBsJMKAF95zwG8WBgAuV7+/nM3yQAYMkYAeDUGAI5CkgDk4vn/aMDeAa1E2wCiuCT/j2aJ/50LFwB9LWIA613h/jhwoP9GdPMBmfk3/4EnEQHxUPQAV0UVAV7kSf9OQkH/wuPnAD2SV/+tmxf/cHTb/tgmC/+DuoUAXtS7AGQvWwDM/q//3hLX/q1EbP/j5E//Jt3VAKPjlv4fvhIAoLMLAQpaXv/crlgAo9Pl/8eINACCX93/jLzn/otxgP91q+z+MdwU/zsUq//kbbwAFOEg/sMQrgDj/ogBhydpAJZNzv/S7uIAN9SE/u85fACqwl3/+RD3/xiXPv8KlwoAT4uy/3jyygAa29UAPn0j/5ACbP/mIVP/US3YAeA+EQDW2X0AYpmZ/7Owav6DXYr/bT4k/7J5IP94/EYA3PglAMxYZwGA3Pv/7OMHAWoxxv88OGsAY3LuANzMXgFJuwEAWZoiAE7Zpf8Ow/n/Ceb9/82H9QAa/Af/VM0bAYYCcAAlniAA51vt/7+qzP+YB94AbcAxAMGmkv/oE7X/aY40/2cQGwH9yKUAw9kE/zS9kP97m6D+V4I2/054Pf8OOCkAGSl9/1eo9QDWpUYA1KkG/9vTwv5IXaT/xSFn/yuOjQCD4awA9GkcAERE4QCIVA3/gjko/otNOABUljUANl+dAJANsf5fc7oAdRd2//Sm8f8LuocAsmrL/2HaXQAr/S0ApJgEAIt27wBgARj+65nT/6huFP8y77AAcinoAMH6NQD+oG/+iHop/2FsQwDXmBf/jNHUACq9owDKKjL/amq9/75E2f/pOnUA5dzzAcUDBAAleDb+BJyG/yQ9q/6liGT/1OgOAFquCgDYxkH/DANAAHRxc//4ZwgA530S/6AcxQAeuCMB30n5/3sULv6HOCX/rQ3lAXehIv/1PUkAzX1wAIlohgDZ9h7/7Y6PAEGfZv9spL4A23Wt/yIleP7IRVAAH3za/koboP+6msf/R8f8AGhRnwERyCcA0z3AARruWwCU2QwAO1vV/wtRt/+B5nr/csuRAXe0Qv9IirQA4JVqAHdSaP/QjCsAYgm2/81lhv8SZSYAX8Wm/8vxkwA+0JH/hfb7AAKpDgAN97gAjgf+ACTIF/9Yzd8AW4E0/xW6HgCP5NIB9+r4/+ZFH/6wuof/7s00AYtPKwARsNn+IPNDAPJv6QAsIwn/43JRAQRHDP8mab8AB3Uy/1FPEAA/REH/nSRu/03xA//iLfsBjhnOAHh70QEc/u7/BYB+/1ve1/+iD78AVvBJAIe5Uf4s8aMA1NvS/3CimwDPZXYAqEg4/8QFNABIrPL/fhad/5JgO/+ieZj+jBBfAMP+yP5SlqIAdyuR/sysTv+m4J8AaBPt//V+0P/iO9UAddnFAJhI7QDcHxf+Dlrn/7zUQAE8Zfb/VRhWAAGxbQCSUyABS7bAAHfx4AC57Rv/uGVSAeslTf/9hhMA6PZ6ADxqswDDCwwAbULrAX1xOwA9KKQAr2jwAAIvu/8yDI0Awou1/4f6aABhXN7/2ZXJ/8vxdv9Pl0MAeo7a/5X17wCKKsj+UCVh/3xwp/8kilf/gh2T//FXTv/MYRMBsdEW//fjf/5jd1P/1BnGARCzswCRTaz+WZkO/9q9pwBr6Tv/IyHz/ixwcP+hf08BzK8KACgViv5odOQAx1+J/4W+qP+SpeoBt2MnALfcNv7/3oUAott5/j/vBgDhZjb/+xL2AAQigQGHJIMAzjI7AQ9htwCr2If/ZZgr/5b7WwAmkV8AIswm/rKMU/8ZgfP/TJAlAGokGv52kKz/RLrl/2uh1f8uo0T/lar9ALsRDwDaoKX/qyP2AWANEwCly3UA1mvA//R7sQFkA2gAsvJh//tMgv/TTSoB+k9G/z/0UAFpZfYAPYg6Ae5b1QAOO2L/p1RNABGELv45r8X/uT64AExAzwCsr9D+r0olAIob0/6UfcIACllRAKjLZf8r1dEB6/U2AB4j4v8JfkYA4n1e/px1FP85+HAB5jBA/6RcpgHg1ub/JHiPADcIK//7AfUBamKlAEprav41BDb/WrKWAQN4e//0BVkBcvo9//6ZUgFNDxEAOe5aAV/f5gDsNC/+Z5Sk/3nPJAESELn/SxRKALsLZQAuMIH/Fu/S/03sgf9vTcz/PUhh/8fZ+/8q18wAhZHJ/znmkgHrZMYAkkkj/mzGFP+2T9L/UmeIAPZssAAiETz/E0py/qiqTv+d7xT/lSmoADp5HABPs4b/53mH/67RYv/zer4Aq6bNANR0MAAdbEL/ot62AQ53FQDVJ/n//t/k/7elxgCFvjAAfNBt/3evVf8J0XkBMKu9/8NHhgGI2zP/tluN/jGfSAAjdvX/cLrj/zuJHwCJLKMAcmc8/gjVlgCiCnH/wmhIANyDdP+yT1wAy/rV/l3Bvf+C/yL+1LyXAIgRFP8UZVP/1M6mAOXuSf+XSgP/qFfXAJu8hf+mgUkA8E+F/7LTUf/LSKP+wailAA6kx/4e/8wAQUhbAaZKZv/IKgD/wnHj/0IX0ADl2GT/GO8aAArpPv97CrIBGiSu/3fbxwEto74AEKgqAKY5xv8cGhoAfqXnAPtsZP895Xn/OnaKAEzPEQANInD+WRCoACXQaf8jydf/KGpl/gbvcgAoZ+L+9n9u/z+nOgCE8I4ABZ5Y/4FJnv9eWZIA5jaSAAgtrQBPqQEAc7r3AFRAgwBD4P3/z71AAJocUQEtuDb/V9Tg/wBgSf+BIesBNEJQ//uum/8EsyUA6qRd/l2v/QDGRVf/4GouAGMd0gA+vHL/LOoIAKmv9/8XbYn/5bYnAMClXv71ZdkAv1hgAMReY/9q7gv+NX7zAF4BZf8ukwIAyXx8/40M2gANpp0BMPvt/5v6fP9qlJL/tg3KABw9pwDZmAj+3IIt/8jm/wE3QVf/Xb9h/nL7DgAgaVwBGs+NABjPDf4VMjD/upR0/9Mr4QAlIqL+pNIq/0QXYP+21gj/9XWJ/0LDMgBLDFP+UIykAAmlJAHkbuMA8RFaARk01AAG3wz/i/M5AAxxSwH2t7//1b9F/+YPjgABw8T/iqsv/0A/agEQqdb/z644AVhJhf+2hYwAsQ4Z/5O4Nf8K46H/eNj0/0lN6QCd7osBO0HpAEb72AEpuJn/IMtwAJKT/QBXZW0BLFKF//SWNf9emOj/O10n/1iT3P9OUQ0BIC/8/6ATcv9dayf/dhDTAbl30f/j23/+WGns/6JuF/8kpm7/W+zd/0LqdABvE/T+CukaACC3Bv4Cv/IA2pw1/ik8Rv+o7G8Aebl+/+6Oz/83fjQA3IHQ/lDMpP9DF5D+2ihs/3/KpADLIQP/Ap4AACVgvP/AMUoAbQQAAG+nCv5b2of/y0Kt/5bC4gDJ/Qb/rmZ5AM2/bgA1wgQAUSgt/iNmj/8MbMb/EBvo//xHugGwbnIAjgN1AXFNjgATnMUBXC/8ADXoFgE2EusALiO9/+zUgQACYND+yO7H/zuvpP+SK+cAwtk0/wPfDACKNrL+VevPAOjPIgAxNDL/pnFZ/wot2P8+rRwAb6X2AHZzW/+AVDwAp5DLAFcN8wAWHuQBsXGS/4Gq5v78mYH/keErAEbnBf96aX7+VvaU/24lmv7RA1sARJE+AOQQpf833fn+stJbAFOS4v5FkroAXdJo/hAZrQDnuiYAvXqM//sNcP9pbl0A+0iqAMAX3/8YA8oB4V3kAJmTx/5tqhYA+GX2/7J8DP+y/mb+NwRBAH3WtAC3YJMALXUX/oS/+QCPsMv+iLc2/5LqsQCSZVb/LHuPASHRmADAWin+Uw99/9WsUgDXqZAAEA0iACDRZP9UEvkBxRHs/9m65gAxoLD/b3Zh/+1o6wBPO1z+RfkL/yOsSgETdkQA3nyl/7RCI/9WrvYAK0pv/36QVv/k6lsA8tUY/kUs6//ctCMACPgH/2YvXP/wzWb/cearAR+5yf/C9kb/ehG7AIZGx/+VA5b/dT9nAEFoe//UNhMBBo1YAFOG8/+INWcAqRu0ALExGABvNqcAwz3X/x8BbAE8KkYAuQOi/8KVKP/2fyb+vncm/z13CAFgodv/KsvdAbHypP/1nwoAdMQAAAVdzf6Af7MAfe32/5Wi2f9XJRT+jO7AAAkJwQBhAeIAHSYKAACIP//lSNL+JoZc/07a0AFoJFT/DAXB//KvPf+/qS4Bs5OT/3G+i/59rB8AA0v8/tckDwDBGxgB/0WV/26BdgDLXfkAiolA/iZGBgCZdN4AoUp7AMFjT/92O17/PQwrAZKxnQAuk78AEP8mAAszHwE8OmL/b8JNAZpb9ACMKJABrQr7AMvRMv5sgk4A5LRaAK4H+gAfrjwAKaseAHRjUv92wYv/u63G/tpvOAC5e9gA+Z40ADS0Xf/JCVv/OC2m/oSby/866G4ANNNZ//0AogEJV7cAkYgsAV569QBVvKsBk1zGAAAIaAAeX64A3eY0Aff36/+JrjX/IxXM/0fj1gHoUsIACzDj/6pJuP/G+/z+LHAiAINlg/9IqLsAhId9/4poYf/uuKj/82hU/4fY4v+LkO0AvImWAVA4jP9Wqaf/wk4Z/9wRtP8RDcEAdYnU/43glwAx9K8AwWOv/xNjmgH/QT7/nNI3//L0A//6DpUAnljZ/53Phv776BwALpz7/6s4uP/vM+oAjoqD/xn+8wEKycIAP2FLANLvogDAyB8BddbzABhH3v42KOj/TLdv/pAOV//WT4j/2MTUAIQbjP6DBf0AfGwT/xzXSwBM3jf+6bY/AESrv/40b97/CmlN/1Cq6wCPGFj/Led5AJSB4AE99lQA/S7b/+9MIQAxlBL+5iVFAEOGFv6Om14AH53T/tUqHv8E5Pf+/LAN/ycAH/7x9P//qi0K/v3e+QDecoQA/y8G/7SjswFUXpf/WdFS/uU0qf/V7AAB1jjk/4d3l/9wycEAU6A1/gaXQgASohEA6WFbAIMFTgG1eDX/dV8//+11uQC/foj/kHfpALc5YQEvybv/p6V3AS1kfgAVYgb+kZZf/3g2mADRYmgAj28e/riU+QDr2C4A+MqU/zlfFgDy4aMA6ffo/0erE/9n9DH/VGdd/0R59AFS4A0AKU8r//nOp//XNBX+wCAW//dvPABlSib/FltU/h0cDf/G59f+9JrIAN+J7QDThA4AX0DO/xE+9//pg3kBXRdNAM3MNP5RvYgAtNuKAY8SXgDMK4z+vK/bAG9ij/+XP6L/0zJH/hOSNQCSLVP+slLu/xCFVP/ixl3/yWEU/3h2I/9yMuf/ouWc/9MaDAByJ3P/ztSGAMXZoP90gV7+x9fb/0vf+QH9dLX/6Ndo/+SC9v+5dVYADgUIAO8dPQHtV4X/fZKJ/syo3wAuqPUAmmkWANzUof9rRRj/idq1//FUxv+CetP/jQiZ/76xdgBgWbIA/xAw/npgaf91Nuj/In5p/8xDpgDoNIr/05MMABk2BwAsD9f+M+wtAL5EgQFqk+EAHF0t/uyND/8RPaEA3HPAAOyRGP5vqKkA4Do//3+kvABS6ksB4J6GANFEbgHZptkARuGmAbvBj/8QB1j/Cs2MAHXAnAEROCYAG3xsAavXN/9f/dQAm4eo//aymf6aREoA6D1g/mmEOwAhTMcBvbCC/wloGf5Lxmb/6QFwAGzcFP9y5kYAjMKF/zmepP6SBlD/qcRhAVW3ggBGnt4BO+3q/2AZGv/or2H/C3n4/lgjwgDbtPz+SgjjAMPjSQG4bqH/MemkAYA1LwBSDnn/wb46ADCudf+EFyAAKAqGARYzGf/wC7D/bjmSAHWP7wGdZXb/NlRMAM24Ev8vBEj/TnBV/8EyQgFdEDT/CGmGAAxtSP86nPsAkCPMACygdf4ya8IAAUSl/29uogCeUyj+TNbqADrYzf+rYJP/KONyAbDj8QBG+bcBiFSL/zx69/6PCXX/sa6J/kn3jwDsuX7/Phn3/y1AOP+h9AYAIjk4AWnKUwCAk9AABmcK/0qKQf9hUGT/1q4h/zKGSv9ul4L+b1SsAFTHS/74O3D/CNiyAQm3XwDuGwj+qs3cAMPlhwBiTO3/4lsaAVLbJ//hvscB2ch5/1GzCP+MQc4Ass9X/vr8Lv9oWW4B/b2e/5DWnv+g9Tb/NbdcARXIwv+SIXEB0QH/AOtqK/+nNOgAneXdADMeGQD63RsBQZNX/097xABBxN//TCwRAVXxRADKt/n/QdTU/wkhmgFHO1AAr8I7/41ICQBkoPQA5tA4ADsZS/5QwsIAEgPI/qCfcwCEj/cBb105/zrtCwGG3of/eqNsAXsrvv/7vc7+ULZI/9D24AERPAkAoc8mAI1tWwDYD9P/iE5uAGKjaP8VUHn/rbK3AX+PBABoPFL+1hAN/2DuIQGelOb/f4E+/zP/0v8+jez+nTfg/3In9ADAvPr/5Ew1AGJUUf+tyz3+kzI3/8zrvwA0xfQAWCvT/hu/dwC855oAQlGhAFzBoAH643gAezfiALgRSACFqAr+Foec/ykZZ/8wyjoAupVR/7yG7wDrtb3+2Yu8/0owUgAu2uUAvf37ADLlDP/Tjb8BgPQZ/6nnev5WL73/hLcX/yWylv8zif0AyE4fABZpMgCCPAAAhKNb/hfnuwDAT+8AnWak/8BSFAEYtWf/8AnqAAF7pP+F6QD/yvLyADy69QDxEMf/4HSe/r99W//gVs8AeSXn/+MJxv8Pme//eejZ/ktwUgBfDDn+M9Zp/5TcYQHHYiQAnNEM/grUNADZtDf+1Kro/9gUVP+d+ocAnWN//gHOKQCVJEYBNsTJ/1d0AP7rq5YAG6PqAMqHtADQXwD+e5xdALc+SwCJ67YAzOH//9aL0v8Ccwj/HQxvADScAQD9Ffv/JaUf/gyC0wBqEjX+KmOaAA7ZPf7YC1z/yMVw/pMmxwAk/Hj+a6lNAAF7n//PS2YAo6/EACwB8AB4urD+DWJM/+188f/okrz/yGDgAMwfKQDQyA0AFeFg/6+cxAD30H4APrj0/gKrUQBVc54ANkAt/xOKcgCHR80A4y+TAdrnQgD90RwA9A+t/wYPdv4QltD/uRYy/1Zwz/9LcdcBP5Ir/wThE/7jFz7/Dv/W/i0Izf9XxZf+0lLX//X49/+A+EYA4fdXAFp4RgDV9VwADYXiAC+1BQFco2n/Bh6F/uiyPf/mlRj/EjGeAORkPf508/v/TUtcAVHbk/9Mo/7+jdX2AOglmP5hLGQAySUyAdT0OQCuq7f/+UpwAKacHgDe3WH/811J/vtlZP/Y2V3//oq7/46+NP87y7H/yF40AHNynv+lmGgBfmPi/3ad9AFryBAAwVrlAHkGWACcIF3+ffHT/w7tnf+lmhX/uOAW//oYmP9xTR8A96sX/+2xzP80iZH/wrZyAODqlQAKb2cByYEEAO6OTgA0Bij/btWl/jzP/QA+10UAYGEA/zEtygB4eRb/64swAcYtIv+2MhsBg9Jb/y42gACve2n/xo1O/kP07//1Nmf+Tiby/wJc+f77rlf/iz+QABhsG/8iZhIBIhaYAELldv4yj2MAkKmVAXYemACyCHkBCJ8SAFpl5v+BHXcARCQLAei3NwAX/2D/oSnB/z+L3gAPs/MA/2QP/1I1hwCJOZUBY/Cq/xbm5P4xtFL/PVIrAG712QDHfT0ALv00AI3F2wDTn8EAN3lp/rcUgQCpd6r/y7KL/4cotv+sDcr/QbKUAAjPKwB6NX8BSqEwAOPWgP5WC/P/ZFYHAfVEhv89KxUBmFRe/748+v7vduj/1oglAXFMa/9daGQBkM4X/26WmgHkZ7kA2jEy/odNi/+5AU4AAKGU/2Ed6f/PlJX/oKgAAFuAq/8GHBP+C2/3ACe7lv+K6JUAdT5E/z/YvP/r6iD+HTmg/xkM8QGpPL8AIION/+2fe/9exV7+dP4D/1yzYf55YVz/qnAOABWV+AD44wMAUGBtAEvASgEMWuL/oWpEAdByf/9yKv/+ShpK//ezlv55jDwAk0bI/9Yoof+hvMn/jUGH//Jz/AA+L8oAtJX//oI37QClEbr/CqnCAJxt2v9wjHv/aIDf/rGObP95Jdv/gE0S/29sFwFbwEsArvUW/wTsPv8rQJkB463+AO16hAF/Wbr/jlKA/vxUrgBas7EB89ZX/2c8ov/Qgg7/C4KLAM6B2/9e2Z3/7+bm/3Rzn/6ka18AM9oCAdh9xv+MyoD+C19E/zcJXf6umQb/zKxgAEWgbgDVJjH+G1DVAHZ9cgBGRkP/D45J/4N6uf/zFDL+gu0oANKfjAHFl0H/VJlCAMN+WgAQ7uwBdrtm/wMYhf+7ReYAOMVcAdVFXv9QiuUBzgfmAN5v5gFb6Xf/CVkHAQJiAQCUSoX/M/a0/+SxcAE6vWz/wsvt/hXRwwCTCiMBVp3iAB+ji/44B0v/Plp0ALU8qQCKotT+UacfAM1acP8hcOMAU5d1AbHgSf+ukNn/5sxP/xZN6P9yTuoA4Dl+/gkxjQDyk6UBaLaM/6eEDAF7RH8A4VcnAftsCADGwY8BeYfP/6wWRgAyRHT/Za8o//hp6QCmywcAbsXaANf+Gv6o4v0AH49gAAtnKQC3gcv+ZPdK/9V+hADSkywAx+obAZQvtQCbW54BNmmv/wJOkf5mml8AgM9//jR87P+CVEcA3fPTAJiqzwDeascAt1Re/lzIOP+KtnMBjmCSAIWI5ABhEpYAN/tCAIxmBADKZ5cAHhP4/zO4zwDKxlkAN8Xh/qlf+f9CQUT/vOp+AKbfZAFw7/QAkBfCADontgD0LBj+r0Sz/5h2mgGwooIA2XLM/q1+Tv8h3h7/JAJb/wKP8wAJ69cAA6uXARjX9f+oL6T+8ZLPAEWBtABE83EAkDVI/vstDgAXbqgARERP/25GX/6uW5D/Ic5f/4kpB/8Tu5n+I/9w/wmRuf4ynSUAC3AxAWYIvv/q86kBPFUXAEonvQB0Me8ArdXSAC6hbP+fliUAxHi5/yJiBv+Zwz7/YeZH/2Y9TAAa1Oz/pGEQAMY7kgCjF8QAOBg9ALViwQD7k+X/Yr0Y/y42zv/qUvYAt2cmAW0+zAAK8OAAkhZ1/46aeABF1CMA0GN2AXn/A/9IBsIAdRHF/30PFwCaT5kA1l7F/7k3k/8+/k7+f1KZAG5mP/9sUqH/abvUAVCKJwA8/13/SAy6ANL7HwG+p5D/5CwT/oBD6ADW+Wv+iJFW/4QusAC9u+P/0BaMANnTdAAyUbr+i/ofAB5AxgGHm2QAoM4X/rui0/8QvD8A/tAxAFVUvwDxwPL/mX6RAeqiov/mYdgBQId+AL6U3wE0ACv/HCe9AUCI7gCvxLkAYuLV/3+f9AHirzwAoOmOAbTzz/9FmFkBH2UVAJAZpP6Lv9EAWxl5ACCTBQAnunv/P3Pm/12nxv+P1dz/s5wT/xlCegDWoNn/Ai0+/2pPkv4ziWP/V2Tn/6+R6P9luAH/rgl9AFIloQEkco3/MN6O//W6mgAFrt3+P3Kb/4c3oAFQH4cAfvqzAezaLQAUHJEBEJNJAPm9hAERvcD/347G/0gUD//6Ne3+DwsSABvTcf7Vazj/rpOS/2B+MAAXwW0BJaJeAMed+f4YgLv/zTGy/l2kKv8rd+sBWLft/9rSAf9r/ioA5gpj/6IA4gDb7VsAgbLLANAyX/7O0F//979Z/m7qT/+lPfMAFHpw//b2uf5nBHsA6WPmAdtb/P/H3hb/s/Xp/9Px6gBv+sD/VVSIAGU6Mv+DrZz+dy0z/3bpEP7yWtYAXp/bAQMD6v9iTFz+UDbmAAXk5/41GN//cTh2ARSEAf+r0uwAOPGe/7pzE/8I5a4AMCwAAXJypv8GSeL/zVn0AInjSwH4rTgASnj2/ncDC/9ReMb/iHpi/5Lx3QFtwk7/3/FGAdbIqf9hvi//L2eu/2NcSP526bT/wSPp/hrlIP/e/MYAzCtH/8dUrACGZr4Ab+5h/uYo5gDjzUD+yAzhAKYZ3gBxRTP/j58YAKe4SgAd4HT+ntDpAMF0fv/UC4X/FjqMAcwkM//oHisA60a1/0A4kv6pElT/4gEN/8gysP801fX+qNFhAL9HNwAiTpwA6JA6AblKvQC6jpX+QEV//6HLk/+wl78AiOfL/qO2iQChfvv+6SBCAETPQgAeHCUAXXJgAf5c9/8sq0UAyncL/7x2MgH/U4j/R1IaAEbjAgAg63kBtSmaAEeG5f7K/yQAKZgFAJo/Sf8itnwAed2W/xrM1QEprFcAWp2S/22CFABHa8j/82a9AAHDkf4uWHUACM7jAL9u/f9tgBT+hlUz/4mxcAHYIhb/gxDQ/3mVqgByExcBplAf/3HwegDos/oARG60/tKqdwDfbKT/z0/p/xvl4v7RYlH/T0QHAIO5ZACqHaL/EaJr/zkVCwFkyLX/f0GmAaWGzABop6gAAaRPAJKHOwFGMoD/ZncN/uMGhwCijrP/oGTeABvg2wGeXcP/6o2JABAYff/uzi//YRFi/3RuDP9gc00AW+Po//j+T/9c5Qb+WMaLAM5LgQD6Tc7/jfR7AYpF3AAglwYBg6cW/+1Ep/7HvZYAo6uK/zO8Bv9fHYn+lOKzALVr0P+GH1L/l2Ut/4HK4QDgSJMAMIqX/8NAzv7t2p4Aah2J/v296f9nDxH/wmH/ALItqf7G4ZsAJzB1/4dqcwBhJrUAli9B/1OC5f72JoEAXO+a/ltjfwChbyH/7tny/4O5w//Vv57/KZbaAISpgwBZVPwBq0aA/6P4y/4BMrT/fExVAftvUABjQu//mu22/91+hf5KzGP/QZN3/2M4p/9P+JX/dJvk/+0rDv5FiQv/FvrxAVt6j//N+fMA1Bo8/zC2sAEwF7//y3mY/i1K1f8+WhL+9aPm/7lqdP9TI58ADCEC/1AiPgAQV67/rWVVAMokUf6gRcz/QOG7ADrOXgBWkC8A5Vb1AD+RvgElBScAbfsaAImT6gCieZH/kHTO/8Xouf+3voz/SQz+/4sU8v+qWu//YUK7//W1h/7eiDQA9QUz/ssvTgCYZdgASRd9AP5gIQHr0kn/K9FYAQeBbQB6aOT+qvLLAPLMh//KHOn/QQZ/AJ+QRwBkjF8ATpYNAPtrdgG2On3/ASZs/4290f8Im30BcaNb/3lPvv+G72z/TC/4AKPk7wARbwoAWJVL/9fr7wCnnxj/L5ds/2vRvADp52P+HMqU/64jiv9uGET/AkW1AGtmUgBm7QcAXCTt/92iUwE3ygb/h+qH/xj63gBBXqj+9fjS/6dsyf7/oW8AzQj+AIgNdABksIT/K9d+/7GFgv+eT5QAQ+AlAQzOFf8+Im4B7Wiv/1CEb/+OrkgAVOW0/mmzjABA+A//6YoQAPVDe/7aedT/P1/aAdWFif+PtlL/MBwLAPRyjQHRr0z/nbWW/7rlA/+knW8B572LAHfKvv/aakD/ROs//mAarP+7LwsB1xL7/1FUWQBEOoAAXnEFAVyB0P9hD1P+CRy8AO8JpAA8zZgAwKNi/7gSPADZtosAbTt4/wTA+wCp0vD/Jaxc/pTT9f+zQTQA/Q1zALmuzgFyvJX/7VqtACvHwP9YbHEANCNMAEIZlP/dBAf/l/Fy/77R6ABiMscAl5bV/xJKJAE1KAcAE4dB/xqsRQCu7VUAY18pAAM4EAAnoLH/yGra/rlEVP9buj3+Q4+N/w30pv9jcsYAx26j/8ESugB87/YBbkQWAALrLgHUPGsAaSppAQ7mmAAHBYMAjWia/9UDBgCD5KL/s2QcAed7Vf/ODt8B/WDmACaYlQFiiXoA1s0D/+KYs/8GhYkAnkWM/3Gimv+086z/G71z/48u3P/VhuH/fh1FALwriQHyRgkAWsz//+eqkwAXOBP+OH2d/zCz2v9Ptv3/JtS/ASnrfABglxwAh5S+AM35J/40YIj/1CyI/0PRg//8ghf/24AU/8aBdgBsZQsAsgWSAT4HZP+17F7+HBqkAEwWcP94Zk8AysDlAciw1wApQPT/zrhOAKctPwGgIwD/OwyO/8wJkP/bXuUBehtwAL1pbf9A0Er/+383AQLixgAsTNEAl5hN/9IXLgHJq0X/LNPnAL4l4P/1xD7/qbXe/yLTEQB38cX/5SOYARVFKP+y4qEAlLPBANvC/gEozjP/51z6AUOZqgAVlPEAqkVS/3kS5/9ccgMAuD7mAOHJV/+SYKL/tfLcAK273QHiPqr/OH7ZAXUN4/+zLO8AnY2b/5DdUwDr0dAAKhGlAftRhQB89cn+YdMY/1PWpgCaJAn/+C9/AFrbjP+h2Sb+1JM//0JUlAHPAwEA5oZZAX9Oev/gmwH/UohKALKc0P+6GTH/3gPSAeWWvv9VojT/KVSN/0l7VP5dEZYAdxMcASAW1/8cF8z/jvE0/+Q0fQAdTM8A16f6/q+k5gA3z2kBbbv1/6Es3AEpZYD/pxBeAF3Wa/92SAD+UD3q/3mvfQCLqfsAYSeT/vrEMf+ls27+30a7/xaOfQGas4r/drAqAQqumQCcXGYAqA2h/48QIAD6xbT/y6MsAVcgJAChmRT/e/wPABnjUAA8WI4AERbJAZrNTf8nPy8ACHqNAIAXtv7MJxP/BHAd/xckjP/S6nT+NTI//3mraP+g214AV1IO/ucqBQCli3/+Vk4mAII8Qv7LHi3/LsR6Afk1ov+Ij2f+19JyAOcHoP6pmCr/by32AI6Dh/+DR8z/JOILAAAc8v/hitX/9y7Y/vUDtwBs/EoBzhow/8029v/TxiT/eSMyADTYyv8mi4H+8kmUAEPnjf8qL8wATnQZAQThv/8Gk+QAOlixAHql5f/8U8n/4KdgAbG4nv/yabMB+MbwAIVCywH+JC8ALRhz/3c+/gDE4br+e42sABpVKf/ib7cA1eeXAAQ7B//uipQAQpMh/x/2jf/RjXT/aHAfAFihrABT1+b+L2+XAC0mNAGELcwAioBt/ul1hv/zvq3+8ezwAFJ/7P4o36H/brbh/3uu7wCH8pEBM9GaAJYDc/7ZpPz/N5xFAVRe///oSS0BFBPU/2DFO/5g+yEAJsdJAUCs9/91dDj/5BESAD6KZwH25aT/9HbJ/lYgn/9tIokBVdO6AArBwf56wrEAeu5m/6LaqwBs2aEBnqoiALAvmwG15Av/CJwAABBLXQDOYv8BOpojAAzzuP5DdUL/5uV7AMkqbgCG5LL+umx2/zoTmv9SqT7/co9zAe/EMv+tMMH/kwJU/5aGk/5f6EkAbeM0/r+JCgAozB7+TDRh/6TrfgD+fLwASrYVAXkdI//xHgf+VdrW/wdUlv5RG3X/oJ+Y/kIY3f/jCjwBjYdmANC9lgF1s1wAhBaI/3jHHAAVgU/+tglBANqjqQD2k8b/ayaQAU6vzf/WBfr+L1gd/6QvzP8rNwb/g4bP/nRk1gBgjEsBatyQAMMgHAGsUQX/x7M0/yVUywCqcK4ACwRbAEX0GwF1g1wAIZiv/4yZa//7hyv+V4oE/8bqk/55mFT/zWWbAZ0JGQBIahH+bJkA/73lugDBCLD/rpXRAO6CHQDp1n4BPeJmADmjBAHGbzP/LU9OAXPSCv/aCRn/novG/9NSu/5QhVMAnYHmAfOFhv8oiBAATWtP/7dVXAGxzMoAo0eT/5hFvgCsM7wB+tKs/9PycQFZWRr/QEJv/nSYKgChJxv/NlD+AGrRcwFnfGEA3eZi/x/nBgCywHj+D9nL/3yeTwBwkfcAXPowAaO1wf8lL47+kL2l/y6S8AAGS4AAKZ3I/ld51QABcewABS36AJAMUgAfbOcA4e93/6cHvf+75IT/br0iAF4szAGiNMUATrzx/jkUjQD0ki8BzmQzAH1rlP4bw00AmP1aAQePkP8zJR8AIncm/wfFdgCZvNMAlxR0/vVBNP+0/W4BL7HRAKFjEf923soAfbP8AXs2fv+ROb8AN7p5AArzigDN0+X/fZzx/pScuf/jE7z/fCkg/x8izv4ROVMAzBYl/ypgYgB3ZrgBA74cAG5S2v/IzMD/yZF2AHXMkgCEIGIBwMJ5AGqh+AHtWHwAF9QaAM2rWv/4MNgBjSXm/3zLAP6eqB7/1vgVAHC7B/9Lhe//SuPz//qTRgDWeKIApwmz/xaeEgDaTdEBYW1R//Qhs/85NDn/QazS//lH0f+Oqe4Anr2Z/67+Z/5iIQ4AjUzm/3GLNP8POtQAqNfJ//jM1wHfRKD/OZq3/i/neQBqpokAUYiKAKUrMwDniz0AOV87/nZiGf+XP+wBXr76/6m5cgEF+jr/S2lhAdffhgBxY6MBgD5wAGNqkwCjwwoAIc22ANYOrv+BJuf/NbbfAGIqn//3DSgAvNKxAQYVAP//PZT+iS2B/1kadP5+JnIA+zLy/nmGgP/M+af+pevXAMqx8wCFjT4A8IK+AW6v/wAAFJIBJdJ5/wcnggCO+lT/jcjPAAlfaP8L9K4Ahuh+AKcBe/4QwZX/6OnvAdVGcP/8dKD+8t7c/81V4wAHuToAdvc/AXRNsf8+9cj+PxIl/2s16P4y3dMAotsH/gJeKwC2Prb+oE7I/4eMqgDruOQArzWK/lA6Tf+YyQIBP8QiAAUeuACrsJoAeTvOACZjJwCsUE3+AIaXALoh8f5e/d//LHL8AGx+Of/JKA3/J+Ub/yfvFwGXeTP/mZb4AArqrv929gT+yPUmAEWh8gEQspYAcTiCAKsfaQAaWGz/MSpqAPupQgBFXZUAFDn+AKQZbwBavFr/zATFACjVMgHUYIT/WIq0/uSSfP+49vcAQXVW//1m0v7+eSQAiXMD/zwY2ACGEh0AO+JhALCORwAH0aEAvVQz/pv6SADVVOv/Ld7gAO6Uj/+qKjX/Tqd1ALoAKP99sWf/ReFCAOMHWAFLrAYAqS3jARAkRv8yAgn/i8EWAI+35/7aRTIA7DihAdWDKgCKkSz+iOUo/zE/I/89kfX/ZcAC/uincQCYaCYBebnaAHmL0/538CMAQb3Z/ruzov+gu+YAPvgO/zxOYQD/96P/4Ttb/2tHOv/xLyEBMnXsANuxP/70WrMAI8LX/71DMv8Xh4EAaL0l/7k5wgAjPuf/3PhsAAznsgCPUFsBg11l/5AnAgH/+rIABRHs/osgLgDMvCb+9XM0/79xSf6/bEX/FkX1ARfLsgCqY6oAQfhvACVsmf9AJUUAAFg+/lmUkP+/ROAB8Sc1ACnL7f+RfsL/3Sr9/xljlwBh/d8BSnMx/wavSP87sMsAfLf5AeTkYwCBDM/+qMDD/8ywEP6Y6qsATSVV/yF4h/+OwuMBH9Y6ANW7ff/oLjz/vnQq/peyE/8zPu3+zOzBAMLoPACsIp3/vRC4/mcDX/+N6ST+KRkL/xXDpgB29S0AQ9WV/58MEv+7pOMBoBkFAAxOwwErxeEAMI4p/sSbPP/fxxIBkYicAPx1qf6R4u4A7xdrAG21vP/mcDH+Sart/+e34/9Q3BQAwmt/AX/NZQAuNMUB0qsk/1gDWv84l40AYLv//ypOyAD+RkYB9H2oAMxEigF810YAZkLI/hE05AB13I/+y/h7ADgSrv+6l6T/M+jQAaDkK//5HRkBRL4/AA0AAAAA/wAAAAD1AAAAAAAA+wAAAAAAAP0AAAAA8wAAAAAHAAAAAAADAAAAAPMAAAAABQAAAAAAAAAACwAAAAAACwAAAADzAAAAAAAA/QAAAAAA/wAAAAADAAAAAPUAAAAAAAAADwAAAAAA/wAAAAD/AAAAAAcAAAAABQ=="),a(t,33676,"AQ=="),a(t,33712,"AQ=="),a(t,33744,"4Ot6fDtBuK4WVuP68Z/EatoJjeucMrH9hmIFFl9JuABfnJW8o1CMJLHQsVWcg+9bBERcxFgcjobYIk7d0J8RV+z///////////////////////////////////////9/7f///////////////////////////////////////3/u////////////////////////////////////////fw=="),a(t,33936,"CMm882fmCWo7p8qEha5nuyv4lP5y82488TYdXzr1T6XRguatf1IOUR9sPiuMaAWba71B+6vZgx95IX4TGc3gWyKuKNeYL4pCzWXvI5FEN3EvO03sz/vAtbzbiYGl27XpOLVI81vCVjkZ0AW28RHxWZtPGa+kgj+SGIFt2tVeHKtCAgOjmKoH2L5vcEUBW4MSjLLkTr6FMSTitP/Vw30MVW+Je/J0Xb5ysZYWO/6x3oA1Esclpwbcm5Qmac908ZvB0krxnsFpm+TjJU84hke+77XVjIvGncEPZZysd8yhDCR1AitZbyzpLYPkpm6qhHRK1PtBvdypsFy1UxGD2oj5dqvfZu5SUT6YEDK0LW3GMag/IfuYyCcDsOQO777Hf1m/wo+oPfML4MYlpwqTR5Gn1W+CA+BRY8oGcG4OCmcpKRT8L9JGhQq3JybJJlw4IRsu7SrEWvxtLE3fs5WdEw04U95jr4tUcwplqLJ3PLsKanbmru1HLsnCgTs1ghSFLHKSZAPxTKHov6IBMEK8S2YaqJGX+NBwi0vCML5UBqNRbMcYUu/WGeiS0RCpZVUkBpnWKiBxV4U1DvS40bsycKBqEMjQ0rgWwaQZU6tBUQhsNx6Z647fTHdIJ6hIm+G1vLA0Y1rJxbMMHDnLikHjSqrYTnPjY3dPypxbo7iy1vNvLmj8su9d7oKPdGAvF0NvY6V4cqvwoRR4yITsOWQaCALHjCgeYyP6/76Q6b2C3utsUKQVecay96P5vitTcuPyeHHGnGEm6s4+J8oHwsAhx7iG0R7r4M3WfdrqeNFu7n9PffW6bxdyqmfwBqaYyKLFfWMKrg35vgSYPxEbRxwTNQtxG4R9BCP1d9sokyTHQHuryjK8vskVCr6ePEwNEJzEZx1DtkI+y77UxUwqfmX8nCl/Wez61jqrb8tfF1hHSowZRGyA"),a(t,34768,"U2lnRWQyNTUxOSBubyBFZDI1NTE5IGNvbGxpc2lvbnMB"),a(t,34848,"cI0BAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0=");var ut,ft=(ut=[null,function(e,t,n,r,a){var i;return e|=0,r|=0,a|=0,m=i=m+-64|0,(t|=0)|(n|=0)&&(c[i+8>>2]=2036477234,c[i+12>>2]=1797285236,c[i>>2]=1634760805,c[i+4>>2]=857760878,c[i+16>>2]=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,c[i+20>>2]=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,c[i+24>>2]=u[a+8|0]|u[a+9|0]<<8|u[a+10|0]<<16|u[a+11|0]<<24,c[i+28>>2]=u[a+12|0]|u[a+13|0]<<8|u[a+14|0]<<16|u[a+15|0]<<24,c[i+32>>2]=u[a+16|0]|u[a+17|0]<<8|u[a+18|0]<<16|u[a+19|0]<<24,c[i+36>>2]=u[a+20|0]|u[a+21|0]<<8|u[a+22|0]<<16|u[a+23|0]<<24,c[i+40>>2]=u[a+24|0]|u[a+25|0]<<8|u[a+26|0]<<16|u[a+27|0]<<24,a=u[a+28|0]|u[a+29|0]<<8|u[a+30|0]<<16|u[a+31|0]<<24,c[i+48>>2]=0,c[i+52>>2]=0,c[i+44>>2]=a,c[i+56>>2]=u[0|r]|u[r+1|0]<<8|u[r+2|0]<<16|u[r+3|0]<<24,c[i+60>>2]=u[r+4|0]|u[r+5|0]<<8|u[r+6|0]<<16|u[r+7|0]<<24,E(i,e=Ce(e,0,t),e,t,n),$e(i,64)),m=i- -64|0,0},function(e,t,n,r,a){var i;return e|=0,r|=0,a|=0,m=i=m+-64|0,(t|=0)|(n|=0)&&(c[i+8>>2]=2036477234,c[i+12>>2]=1797285236,c[i>>2]=1634760805,c[i+4>>2]=857760878,c[i+16>>2]=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,c[i+20>>2]=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,c[i+24>>2]=u[a+8|0]|u[a+9|0]<<8|u[a+10|0]<<16|u[a+11|0]<<24,c[i+28>>2]=u[a+12|0]|u[a+13|0]<<8|u[a+14|0]<<16|u[a+15|0]<<24,c[i+32>>2]=u[a+16|0]|u[a+17|0]<<8|u[a+18|0]<<16|u[a+19|0]<<24,c[i+36>>2]=u[a+20|0]|u[a+21|0]<<8|u[a+22|0]<<16|u[a+23|0]<<24,c[i+40>>2]=u[a+24|0]|u[a+25|0]<<8|u[a+26|0]<<16|u[a+27|0]<<24,a=u[a+28|0]|u[a+29|0]<<8|u[a+30|0]<<16|u[a+31|0]<<24,c[i+48>>2]=0,c[i+44>>2]=a,c[i+52>>2]=u[0|r]|u[r+1|0]<<8|u[r+2|0]<<16|u[r+3|0]<<24,c[i+56>>2]=u[r+4|0]|u[r+5|0]<<8|u[r+6|0]<<16|u[r+7|0]<<24,c[i+60>>2]=u[r+8|0]|u[r+9|0]<<8|u[r+10|0]<<16|u[r+11|0]<<24,E(i,e=Ce(e,0,t),e,t,n),$e(i,64)),m=i- -64|0,0},function(e,t,n,r,a,i,o,s){var f;return e|=0,t|=0,a|=0,i|=0,o|=0,s|=0,m=f=m+-64|0,(n|=0)|(r|=0)&&(c[f+8>>2]=2036477234,c[f+12>>2]=1797285236,c[f>>2]=1634760805,c[f+4>>2]=857760878,c[f+16>>2]=u[0|s]|u[s+1|0]<<8|u[s+2|0]<<16|u[s+3|0]<<24,c[f+20>>2]=u[s+4|0]|u[s+5|0]<<8|u[s+6|0]<<16|u[s+7|0]<<24,c[f+24>>2]=u[s+8|0]|u[s+9|0]<<8|u[s+10|0]<<16|u[s+11|0]<<24,c[f+28>>2]=u[s+12|0]|u[s+13|0]<<8|u[s+14|0]<<16|u[s+15|0]<<24,c[f+32>>2]=u[s+16|0]|u[s+17|0]<<8|u[s+18|0]<<16|u[s+19|0]<<24,c[f+36>>2]=u[s+20|0]|u[s+21|0]<<8|u[s+22|0]<<16|u[s+23|0]<<24,c[f+40>>2]=u[s+24|0]|u[s+25|0]<<8|u[s+26|0]<<16|u[s+27|0]<<24,c[f+44>>2]=u[s+28|0]|u[s+29|0]<<8|u[s+30|0]<<16|u[s+31|0]<<24,c[f+48>>2]=i,c[f+52>>2]=o,c[f+56>>2]=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,c[f+60>>2]=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,E(f,t,e,n,r),$e(f,64)),m=f- -64|0,0},function(e,t,n,r,a,i,o){var s;return e|=0,t|=0,a|=0,i|=0,o|=0,m=s=m+-64|0,(n|=0)|(r|=0)&&(c[s+8>>2]=2036477234,c[s+12>>2]=1797285236,c[s>>2]=1634760805,c[s+4>>2]=857760878,c[s+16>>2]=u[0|o]|u[o+1|0]<<8|u[o+2|0]<<16|u[o+3|0]<<24,c[s+20>>2]=u[o+4|0]|u[o+5|0]<<8|u[o+6|0]<<16|u[o+7|0]<<24,c[s+24>>2]=u[o+8|0]|u[o+9|0]<<8|u[o+10|0]<<16|u[o+11|0]<<24,c[s+28>>2]=u[o+12|0]|u[o+13|0]<<8|u[o+14|0]<<16|u[o+15|0]<<24,c[s+32>>2]=u[o+16|0]|u[o+17|0]<<8|u[o+18|0]<<16|u[o+19|0]<<24,c[s+36>>2]=u[o+20|0]|u[o+21|0]<<8|u[o+22|0]<<16|u[o+23|0]<<24,c[s+40>>2]=u[o+24|0]|u[o+25|0]<<8|u[o+26|0]<<16|u[o+27|0]<<24,o=u[o+28|0]|u[o+29|0]<<8|u[o+30|0]<<16|u[o+31|0]<<24,c[s+48>>2]=i,c[s+44>>2]=o,c[s+52>>2]=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,c[s+56>>2]=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,c[s+60>>2]=u[a+8|0]|u[a+9|0]<<8|u[a+10|0]<<16|u[a+11|0]<<24,E(s,t,e,n,r),$e(s,64)),m=s- -64|0,0},function(e,t,n,r,a){var i,o,f;return e|=0,t|=0,n|=0,r|=0,a|=0,m=i=(o=m)-128&-64,c[i>>2]=67108863&(u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24),c[i+4>>2]=(u[a+3|0]|u[a+4|0]<<8|u[a+5|0]<<16|u[a+6|0]<<24)>>>2&67108611,c[i+8>>2]=(u[a+6|0]|u[a+7|0]<<8|u[a+8|0]<<16|u[a+9|0]<<24)>>>4&67092735,c[i+12>>2]=(u[a+9|0]|u[a+10|0]<<8|u[a+11|0]<<16|u[a+12|0]<<24)>>>6&66076671,f=u[a+12|0]|u[a+13|0]<<8|u[a+14|0]<<16|u[a+15|0]<<24,c[i+20>>2]=0,c[i+24>>2]=0,c[i+28>>2]=0,c[i+32>>2]=0,c[i+36>>2]=0,c[i+16>>2]=f>>>8&1048575,c[i+40>>2]=u[a+16|0]|u[a+17|0]<<8|u[a+18|0]<<16|u[a+19|0]<<24,c[i+44>>2]=u[a+20|0]|u[a+21|0]<<8|u[a+22|0]<<16|u[a+23|0]<<24,c[i+48>>2]=u[a+24|0]|u[a+25|0]<<8|u[a+26|0]<<16|u[a+27|0]<<24,a=u[a+28|0]|u[a+29|0]<<8|u[a+30|0]<<16|u[a+31|0]<<24,s[i+80|0]=0,c[i+56>>2]=0,c[i+60>>2]=0,c[i+52>>2]=a,z(i,t,n,r),G(i,e),m=o,0},function(e,t,n,r,a){var i,o,f;return e|=0,t|=0,n|=0,r|=0,a|=0,m=i=(o=m)-192&-64,c[i+64>>2]=67108863&(u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24),c[i+68>>2]=(u[a+3|0]|u[a+4|0]<<8|u[a+5|0]<<16|u[a+6|0]<<24)>>>2&67108611,c[i+72>>2]=(u[a+6|0]|u[a+7|0]<<8|u[a+8|0]<<16|u[a+9|0]<<24)>>>4&67092735,c[i+76>>2]=(u[a+9|0]|u[a+10|0]<<8|u[a+11|0]<<16|u[a+12|0]<<24)>>>6&66076671,f=u[a+12|0]|u[a+13|0]<<8|u[a+14|0]<<16|u[a+15|0]<<24,c[i+84>>2]=0,c[i+88>>2]=0,c[i+92>>2]=0,c[i+96>>2]=0,c[i+100>>2]=0,c[i+80>>2]=f>>>8&1048575,c[i+104>>2]=u[a+16|0]|u[a+17|0]<<8|u[a+18|0]<<16|u[a+19|0]<<24,c[i+108>>2]=u[a+20|0]|u[a+21|0]<<8|u[a+22|0]<<16|u[a+23|0]<<24,c[i+112>>2]=u[a+24|0]|u[a+25|0]<<8|u[a+26|0]<<16|u[a+27|0]<<24,a=u[a+28|0]|u[a+29|0]<<8|u[a+30|0]<<16|u[a+31|0]<<24,s[i+144|0]=0,c[i+120>>2]=0,c[i+124>>2]=0,c[i+116>>2]=a,z(a=i- -64|0,t,n,r),G(a,t=i+48|0),e=X(e,t),m=o,0|e},function(e,t){var n;return t|=0,c[(e|=0)>>2]=67108863&(u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24),c[e+4>>2]=(u[t+3|0]|u[t+4|0]<<8|u[t+5|0]<<16|u[t+6|0]<<24)>>>2&67108611,c[e+8>>2]=(u[t+6|0]|u[t+7|0]<<8|u[t+8|0]<<16|u[t+9|0]<<24)>>>4&67092735,c[e+12>>2]=(u[t+9|0]|u[t+10|0]<<8|u[t+11|0]<<16|u[t+12|0]<<24)>>>6&66076671,n=u[t+12|0]|u[t+13|0]<<8|u[t+14|0]<<16|u[t+15|0]<<24,c[e+20>>2]=0,c[e+24>>2]=0,c[e+28>>2]=0,c[e+32>>2]=0,c[e+36>>2]=0,c[e+16>>2]=n>>>8&1048575,c[e+40>>2]=u[t+16|0]|u[t+17|0]<<8|u[t+18|0]<<16|u[t+19|0]<<24,c[e+44>>2]=u[t+20|0]|u[t+21|0]<<8|u[t+22|0]<<16|u[t+23|0]<<24,c[e+48>>2]=u[t+24|0]|u[t+25|0]<<8|u[t+26|0]<<16|u[t+27|0]<<24,t=u[t+28|0]|u[t+29|0]<<8|u[t+30|0]<<16|u[t+31|0]<<24,s[e+80|0]=0,c[e+56>>2]=0,c[e+60>>2]=0,c[e+52>>2]=t,0},function(e,t,n,r){return z(e|=0,t|=0,n|=0,r|=0),0},function(e,t){return G(e|=0,t|=0),0},function(e,t,n){e|=0,t|=0,n|=0;var r,a=0,i=0,o=0,f=0,d=0,l=0,p=0,b=0,h=0,y=0,g=0,A=0,w=0,x=0,_=0,S=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,R=0,N=0,D=0,U=0,L=0,Z=0,F=0,H=0,z=0,q=0,K=0,V=0,J=0,G=0,W=0,X=0,$=0,ee=0,te=0,ne=0,re=0,ae=0,ie=0,oe=0,se=0,ce=0,ue=0,fe=0,de=0,le=0,pe=0,be=0,he=0,ye=0,ve=0,ge=0,Ae=0,we=0,xe=0,_e=0,ke=0,Se=0;for(m=r=m-368|0;g=(o=u[n+a|0])^u[0|(d=a+33680|0)]|g,h=o^u[d+192|0]|h,y=o^u[d+160|0]|y,b=o^u[d+128|0]|b,f=o^u[d+96|0]|f,l=o^u[d- -64|0]|l,i=o^u[d+32|0]|i,31!=(0|(a=a+1|0)););if(a=-1,!(256&((255&((o=127^(d=127&u[n+31|0]))|h))-1|(255&(o|y))-1|(255&(o|b))-1|(255&(87^d|f))-1|(255&(l|d))-1|(255&(i|d))-1|(255&(d|g))-1))){for(a=t,t=u[t+28|0]|u[t+29|0]<<8|u[t+30|0]<<16|u[t+31|0]<<24,c[r+360>>2]=u[a+24|0]|u[a+25|0]<<8|u[a+26|0]<<16|u[a+27|0]<<24,c[r+364>>2]=t,t=u[a+20|0]|u[a+21|0]<<8|u[a+22|0]<<16|u[a+23|0]<<24,c[r+352>>2]=u[a+16|0]|u[a+17|0]<<8|u[a+18|0]<<16|u[a+19|0]<<24,c[r+356>>2]=t,i=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,t=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,c[r+336>>2]=t,c[r+340>>2]=i,i=u[a+12|0]|u[a+13|0]<<8|u[a+14|0]<<16|u[a+15|0]<<24,c[r+344>>2]=u[a+8|0]|u[a+9|0]<<8|u[a+10|0]<<16|u[a+11|0]<<24,c[r+348>>2]=i,s[r+336|0]=248&t,s[r+367|0]=63&u[r+367|0]|64,j(r+288|0,n),c[r+260>>2]=0,c[r+264>>2]=0,c[r+268>>2]=0,c[r+272>>2]=0,c[r+276>>2]=0,c[r+208>>2]=0,c[r+212>>2]=0,c[r+216>>2]=0,c[r+220>>2]=0,c[r+224>>2]=0,c[r+228>>2]=0,c[r+244>>2]=0,c[r+248>>2]=0,c[r+240>>2]=1,c[r+252>>2]=0,c[r+256>>2]=0,c[r+192>>2]=0,c[r+196>>2]=0,c[r+200>>2]=0,c[r+204>>2]=0,t=c[r+316>>2],c[r+168>>2]=c[r+312>>2],c[r+172>>2]=t,t=c[r+308>>2],c[r+160>>2]=c[r+304>>2],c[r+164>>2]=t,t=c[r+300>>2],c[r+152>>2]=c[r+296>>2],c[r+156>>2]=t,t=c[r+292>>2],c[r+144>>2]=c[r+288>>2],c[r+148>>2]=t,t=c[r+324>>2],c[r+176>>2]=c[r+320>>2],c[r+180>>2]=t,c[r+116>>2]=0,c[r+120>>2]=0,c[r+124>>2]=0,c[r+128>>2]=0,c[r+132>>2]=0,c[r+100>>2]=0,c[r+104>>2]=0,c[r+96>>2]=1,c[r+108>>2]=0,c[r+112>>2]=0,n=254;X=c[r+276>>2],o=c[r+180>>2],$=c[r+96>>2],ee=c[r+192>>2],te=c[r+144>>2],ne=c[r+240>>2],re=c[r+100>>2],ae=c[r+196>>2],ie=c[r+148>>2],oe=c[r+244>>2],P=c[r+104>>2],se=c[r+200>>2],M=c[r+152>>2],ce=c[r+248>>2],D=c[r+108>>2],ue=c[r+204>>2],B=c[r+156>>2],fe=c[r+252>>2],R=c[r+112>>2],de=c[r+208>>2],T=c[r+160>>2],le=c[r+256>>2],g=c[r+116>>2],pe=c[r+212>>2],p=c[r+164>>2],be=c[r+260>>2],h=c[r+120>>2],he=c[r+216>>2],y=c[r+168>>2],ye=c[r+264>>2],b=c[r+124>>2],ve=c[r+220>>2],f=c[r+172>>2],ge=c[r+268>>2],l=c[r+128>>2],Ae=c[r+224>>2],i=c[r+176>>2],we=c[r+272>>2],xe=n,O=(E=(t=0-((t=W)^(W=u[r+336+(n>>>3)|0]>>>(7&n)&1))|0)&((a=c[r+132>>2])^(K=c[r+228>>2])))^a,c[r+132>>2]=O,V=o^(w=t&(o^X)),c[r+84>>2]=V-O,N=l^(x=t&(l^Ae)),c[r+128>>2]=N,J=(C=t&(i^we))^i,c[r+80>>2]=J-N,L=b^(_=t&(b^ve)),c[r+124>>2]=L,_e=f^(S=t&(f^ge)),c[r+76>>2]=_e-L,Z=h^(A=t&(h^he)),c[r+120>>2]=Z,ke=y^(d=t&(y^ye)),c[r+72>>2]=ke-Z,F=g^(o=t&(g^pe)),c[r+116>>2]=F,Se=p^(g=t&(p^be)),c[r+68>>2]=Se-F,H=R^(h=t&(R^de)),c[r+112>>2]=H,U=T^(y=t&(T^le)),c[r+64>>2]=U-H,z=D^(b=t&(D^ue)),c[r+108>>2]=z,G=B^(f=t&(B^fe)),c[r+60>>2]=G-z,q=P^(l=t&(P^se)),c[r+104>>2]=q,D=M^(i=t&(M^ce)),c[r+56>>2]=D-q,P=re^(a=t&(re^ae)),c[r+100>>2]=P,B=ie^(n=t&(ie^oe)),c[r+52>>2]=B-P,M=$^(R=t&($^ee)),c[r+96>>2]=M,T=(t&=te^ne)^te,c[r+48>>2]=T-M,p=w^X,E^=K,c[r+36>>2]=p-E,w=C^we,x^=Ae,c[r+32>>2]=w-x,C=S^ge,_^=ve,c[r+28>>2]=C-_,S=d^ye,A^=he,c[r+24>>2]=S-A,d=g^be,o^=pe,c[r+20>>2]=d-o,g=y^le,h^=de,c[r+16>>2]=g-h,y=f^fe,b^=ue,c[r+12>>2]=y-b,f=i^ce,l^=se,c[r+8>>2]=f-l,i=n^oe,a^=ae,c[r+4>>2]=i-a,n=t^ne,t=R^ee,c[r>>2]=n-t,c[r+276>>2]=p+E,c[r+272>>2]=w+x,c[r+268>>2]=_+C,c[r+264>>2]=A+S,c[r+260>>2]=o+d,c[r+256>>2]=h+g,c[r+248>>2]=f+l,c[r+244>>2]=a+i,c[r+240>>2]=t+n,c[r+252>>2]=b+y,c[r+228>>2]=O+V,c[r+224>>2]=N+J,c[r+220>>2]=L+_e,c[r+216>>2]=Z+ke,c[r+212>>2]=F+Se,c[r+208>>2]=U+H,c[r+204>>2]=z+G,c[r+200>>2]=D+q,c[r+196>>2]=P+B,c[r+192>>2]=T+M,k(V=r+96|0,N=r+48|0,T=r+240|0),k(O=r+192|0,O,r),I(N,r),I(r,T),p=c[r+192>>2],E=c[r+96>>2],w=c[r+196>>2],x=c[r+100>>2],C=c[r+200>>2],_=c[r+104>>2],S=c[r+204>>2],A=c[r+108>>2],d=c[r+208>>2],o=c[r+112>>2],g=c[r+212>>2],h=c[r+116>>2],y=c[r+216>>2],b=c[r+120>>2],f=c[r+220>>2],l=c[r+124>>2],i=c[r+224>>2],a=c[r+128>>2],n=c[r+228>>2],t=c[r+132>>2],c[r+180>>2]=n+t,c[r+176>>2]=a+i,c[r+172>>2]=f+l,c[r+168>>2]=b+y,c[r+164>>2]=h+g,c[r+160>>2]=o+d,c[r+156>>2]=A+S,c[r+152>>2]=_+C,c[r+148>>2]=w+x,c[r+144>>2]=p+E,c[r+228>>2]=t-n,c[r+224>>2]=a-i,c[r+220>>2]=l-f,c[r+216>>2]=b-y,c[r+212>>2]=h-g,c[r+208>>2]=o-d,c[r+204>>2]=A-S,c[r+200>>2]=_-C,c[r+196>>2]=x-w,c[r+192>>2]=E-p,k(T,r,N),L=c[r+52>>2],A=c[r+4>>2],Z=c[r+56>>2],d=c[r+8>>2],F=c[r+64>>2],o=c[r+16>>2],H=c[r+60>>2],b=c[r+12>>2],z=c[r+72>>2],f=c[r+24>>2],q=c[r+68>>2],l=c[r+20>>2],P=c[r+80>>2],a=c[r+32>>2],M=c[r+76>>2],n=c[r+28>>2],K=c[r+84>>2],t=c[r+36>>2],J=c[r+48>>2],i=c[r>>2]-J|0,c[r>>2]=i,t=t-K|0,c[r+36>>2]=t,R=n-M|0,c[r+28>>2]=R,T=a-P|0,c[r+32>>2]=T,g=l-q|0,c[r+20>>2]=g,h=f-z|0,c[r+24>>2]=h,y=b-H|0,c[r+12>>2]=y,b=o-F|0,c[r+16>>2]=b,f=d-Z|0,c[r+8>>2]=f,a=A-L|0,c[r+4>>2]=a,I(O,O),t=me(t,t>>31,121666,0),n=v,G=t,t=me((33554431&(n=(p=t+16777216|0)>>>0<16777216?n+1|0:n))<<7|p>>>25,n>>25,19,0),l=v,n=t,t=me(i,i>>31,121666,0),U=v+l|0,t=t>>>0>(n=n+t|0)>>>0?U+1|0:U,t=(l=n+33554432|0)>>>0<33554432?t+1|0:t,E=n-(-67108864&l)|0,c[r+96>>2]=E,i=me(a,a>>31,121666,0),n=v,n=(a=i+16777216|0)>>>0<16777216?n+1|0:n,w=(t=(67108863&t)<<6|l>>>26)+(i-(-33554432&a)|0)|0,c[r+100>>2]=w,U=n>>25,a=(33554431&n)<<7|a>>>25,n=me(f,f>>31,121666,0)+a|0,t=U+v|0,t=n>>>0>>0?t+1|0:t,l=(x=n+33554432|0)>>>0<33554432?t+1|0:t,C=n-(-67108864&x)|0,c[r+104>>2]=C,a=me(b,b>>31,121666,0),i=v,n=me(y,y>>31,121666,0),t=v,B=a,D=n,a=(33554431&(t=(_=n+16777216|0)>>>0<16777216?t+1|0:t))<<7|_>>>25,t=(t>>25)+i|0,t=(n=B+a|0)>>>0>>0?t+1|0:t,i=(S=n+33554432|0)>>>0<33554432?t+1|0:t,A=n-(-67108864&S)|0,c[r+112>>2]=A,a=me(h,h>>31,121666,0),f=v,n=me(g,g>>31,121666,0),t=v,B=n,n=(33554431&(t=(d=n+16777216|0)>>>0<16777216?t+1|0:t))<<7|d>>>25,t=(t>>25)+f|0,t=n>>>0>(a=n+a|0)>>>0?t+1|0:t,n=(o=a+33554432|0)>>>0<33554432?t+1|0:t,g=a-(-67108864&o)|0,c[r+120>>2]=g,f=me(T,T>>31,121666,0),b=v,a=me(R,R>>31,121666,0),t=v,T=a,a=(33554431&(t=(h=a+16777216|0)>>>0<16777216?t+1|0:t))<<7|h>>>25,t=(t>>25)+b|0,t=a>>>0>(f=a+f|0)>>>0?t+1|0:t,a=(y=f+33554432|0)>>>0<33554432?t+1|0:t,b=f-(-67108864&y)|0,c[r+128>>2]=b,f=(l=D+((67108863&l)<<6|x>>>26)|0)-(-33554432&_)|0,c[r+108>>2]=f,l=(i=B+((67108863&i)<<6|S>>>26)|0)-(-33554432&d)|0,c[r+116>>2]=l,i=(t=T+((67108863&n)<<6|o>>>26)|0)-(-33554432&h)|0,c[r+124>>2]=i,n=(a=G+((67108863&a)<<6|y>>>26)|0)-(-33554432&p)|0,c[r+132>>2]=n,I(t=r+144|0,t),c[r+84>>2]=n+K,c[r+80>>2]=b+P,c[r+76>>2]=i+M,c[r+72>>2]=g+z,c[r+68>>2]=l+q,c[r+64>>2]=A+F,c[r+60>>2]=f+H,c[r+56>>2]=C+Z,c[r+52>>2]=w+L,c[r+48>>2]=E+J,n=xe-1|0,k(V,r+288|0,O),k(O,r,N),xe;);g=c[r+144>>2],E=c[r+240>>2],h=c[r+148>>2],w=c[r+244>>2],y=c[r+152>>2],x=c[r+248>>2],b=c[r+156>>2],C=c[r+252>>2],f=c[r+160>>2],_=c[r+256>>2],l=c[r+164>>2],S=c[r+260>>2],i=c[r+168>>2],A=c[r+264>>2],a=c[r+172>>2],d=c[r+268>>2],n=c[r+176>>2],o=c[r+272>>2],p=0-W|0,t=c[r+276>>2],c[r+276>>2]=p&(t^c[r+180>>2])^t,c[r+272>>2]=o^p&(n^o),c[r+268>>2]=d^p&(a^d),c[r+264>>2]=A^p&(i^A),c[r+260>>2]=S^p&(l^S),c[r+256>>2]=_^p&(f^_),c[r+252>>2]=C^p&(b^C),c[r+248>>2]=x^p&(y^x),c[r+244>>2]=w^p&(h^w),c[r+240>>2]=E^p&(g^E),E=c[r+192>>2],g=c[r+96>>2],w=c[r+196>>2],h=c[r+100>>2],x=c[r+200>>2],y=c[r+104>>2],C=c[r+204>>2],b=c[r+108>>2],_=c[r+208>>2],f=c[r+112>>2],S=c[r+212>>2],l=c[r+116>>2],A=c[r+216>>2],i=c[r+120>>2],d=c[r+220>>2],a=c[r+124>>2],o=c[r+224>>2],n=c[r+128>>2],t=c[r+228>>2],c[r+228>>2]=p&(t^c[r+132>>2])^t,c[r+224>>2]=o^p&(n^o),c[r+220>>2]=d^p&(a^d),c[r+216>>2]=A^p&(i^A),c[r+212>>2]=S^p&(l^S),c[r+208>>2]=_^p&(f^_),c[r+204>>2]=C^p&(b^C),c[r+200>>2]=x^p&(y^x),c[r+196>>2]=w^p&(h^w),c[r+192>>2]=E^p&(g^E),Q(n=r+192|0,n),k(t=r+240|0,t,n),Y(e,t),$e(r+336|0,32),a=0}return m=r+368|0,0|a},function(e,t){var n,r,a,i,o,f,d,l,p,b,h,y,v,g,A,w,x,_,S,I;return t|=0,m=n=m-304|0,s[0|(e|=0)]=u[0|t],s[e+1|0]=u[t+1|0],s[e+2|0]=u[t+2|0],s[e+3|0]=u[t+3|0],s[e+4|0]=u[t+4|0],s[e+5|0]=u[t+5|0],s[e+6|0]=u[t+6|0],s[e+7|0]=u[t+7|0],s[e+8|0]=u[t+8|0],s[e+9|0]=u[t+9|0],s[e+10|0]=u[t+10|0],s[e+11|0]=u[t+11|0],s[e+12|0]=u[t+12|0],s[e+13|0]=u[t+13|0],s[e+14|0]=u[t+14|0],s[e+15|0]=u[t+15|0],s[e+16|0]=u[t+16|0],s[e+17|0]=u[t+17|0],s[e+18|0]=u[t+18|0],s[e+19|0]=u[t+19|0],s[e+20|0]=u[t+20|0],s[e+21|0]=u[t+21|0],s[e+22|0]=u[t+22|0],s[e+23|0]=u[t+23|0],s[e+24|0]=u[t+24|0],s[e+25|0]=u[t+25|0],s[e+26|0]=u[t+26|0],s[e+27|0]=u[t+27|0],s[e+28|0]=u[t+28|0],s[e+29|0]=u[t+29|0],s[e+30|0]=u[t+30|0],t=u[t+31|0],s[0|e]=248&u[0|e],s[e+31|0]=63&t|64,U(n+48|0,e),t=c[n+132>>2],r=c[n+92>>2],a=c[n+136>>2],i=c[n+96>>2],o=c[n+140>>2],f=c[n+100>>2],d=c[n+144>>2],l=c[n+104>>2],p=c[n+148>>2],b=c[n+108>>2],h=c[n+152>>2],y=c[n+112>>2],v=c[n+156>>2],g=c[n+116>>2],A=c[n+160>>2],w=c[n+120>>2],x=c[n+128>>2],_=c[n+88>>2],S=c[n+124>>2],I=c[n+164>>2],c[n+292>>2]=S+I,c[n+288>>2]=A+w,c[n+284>>2]=v+g,c[n+280>>2]=h+y,c[n+276>>2]=p+b,c[n+272>>2]=d+l,c[n+268>>2]=o+f,c[n+264>>2]=a+i,c[n+260>>2]=t+r,c[n+256>>2]=x+_,c[n+244>>2]=I-S,c[n+240>>2]=A-w,c[n+236>>2]=v-g,c[n+232>>2]=h-y,c[n+228>>2]=p-b,c[n+224>>2]=d-l,c[n+220>>2]=o-f,c[n+216>>2]=a-i,c[n+212>>2]=t-r,c[n+208>>2]=x-_,Q(t=n+208|0,t),k(n,n+256|0,t),Y(e,n),m=n+304|0,0},function(e,t,n,r,a){e|=0,r|=0,a|=0;var i,o=0,f=0,d=0,l=0;if(m=i=m-112|0,(t|=0)|(n|=0)){o=u[a+28|0]|u[a+29|0]<<8|u[a+30|0]<<16|u[a+31|0]<<24,c[i+24>>2]=u[a+24|0]|u[a+25|0]<<8|u[a+26|0]<<16|u[a+27|0]<<24,c[i+28>>2]=o,o=u[a+20|0]|u[a+21|0]<<8|u[a+22|0]<<16|u[a+23|0]<<24,c[i+16>>2]=u[a+16|0]|u[a+17|0]<<8|u[a+18|0]<<16|u[a+19|0]<<24,c[i+20>>2]=o,o=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,c[i>>2]=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,c[i+4>>2]=o,o=u[a+12|0]|u[a+13|0]<<8|u[a+14|0]<<16|u[a+15|0]<<24,c[i+8>>2]=u[a+8|0]|u[a+9|0]<<8|u[a+10|0]<<16|u[a+11|0]<<24,c[i+12>>2]=o,a=u[0|r]|u[r+1|0]<<8|u[r+2|0]<<16|u[r+3|0]<<24,r=u[r+4|0]|u[r+5|0]<<8|u[r+6|0]<<16|u[r+7|0]<<24,c[i+104>>2]=0,c[i+108>>2]=0,c[i+96>>2]=a,c[i+100>>2]=r;e:{if(!n&t>>>0>=64|n){for(;P(e,i+96|0,i),r=u[i+104|0]+1|0,s[i+104|0]=r,r=u[i+105|0]+(r>>>8|0)|0,s[i+105|0]=r,r=u[i+106|0]+(r>>>8|0)|0,s[i+106|0]=r,r=u[i+107|0]+(r>>>8|0)|0,s[i+107|0]=r,r=u[i+108|0]+(r>>>8|0)|0,s[i+108|0]=r,r=u[i+109|0]+(r>>>8|0)|0,s[i+109|0]=r,r=u[i+110|0]+(r>>>8|0)|0,s[i+110|0]=r,s[i+111|0]=u[i+111|0]+(r>>>8|0),e=e- -64|0,n=n-1|0,!(n=(t=t+-64|0)>>>0<4294967232?n+1|0:n)&t>>>0>63|n;);if(!(t|n))break e}if(r=0,P(i+32|0,i+96|0,i),n=3&t,a=0,t-1>>>0>=3)for(o=-4&t,t=0;f=d=i+32|0,s[e+a|0]=u[f+a|0],s[(l=1|a)+e|0]=u[f+l|0],s[(f=2|a)+e|0]=u[f+d|0],s[(f=3|a)+e|0]=u[f+(i+32|0)|0],a=a+4|0,(0|o)!=(0|(t=t+4|0)););if(n)for(;s[e+a|0]=u[(i+32|0)+a|0],a=a+1|0,(0|n)!=(0|(r=r+1|0)););}$e(i+32|0,64),$e(i,32)}return m=i+112|0,0},function(e,t,n,r,a,i,o,f){e|=0,t|=0,a|=0,i|=0,o|=0,f|=0;var d,l=0;if(m=d=m-112|0,(n|=0)|(r|=0)){l=u[f+28|0]|u[f+29|0]<<8|u[f+30|0]<<16|u[f+31|0]<<24,c[d+24>>2]=u[f+24|0]|u[f+25|0]<<8|u[f+26|0]<<16|u[f+27|0]<<24,c[d+28>>2]=l,l=u[f+20|0]|u[f+21|0]<<8|u[f+22|0]<<16|u[f+23|0]<<24,c[d+16>>2]=u[f+16|0]|u[f+17|0]<<8|u[f+18|0]<<16|u[f+19|0]<<24,c[d+20>>2]=l,l=u[f+4|0]|u[f+5|0]<<8|u[f+6|0]<<16|u[f+7|0]<<24,c[d>>2]=u[0|f]|u[f+1|0]<<8|u[f+2|0]<<16|u[f+3|0]<<24,c[d+4>>2]=l,l=u[f+12|0]|u[f+13|0]<<8|u[f+14|0]<<16|u[f+15|0]<<24,c[d+8>>2]=u[f+8|0]|u[f+9|0]<<8|u[f+10|0]<<16|u[f+11|0]<<24,c[d+12>>2]=l,f=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,c[d+96>>2]=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,c[d+100>>2]=f,s[d+104|0]=i,s[d+111|0]=o>>>24,s[d+110|0]=o>>>16,s[d+109|0]=o>>>8,s[d+108|0]=o,s[d+107|0]=(16777215&o)<<8|i>>>24,s[d+106|0]=(65535&o)<<16|i>>>16,s[d+105|0]=(255&o)<<24|i>>>8;e:{if(!r&n>>>0>=64|r){for(;;){for(f=0,P(d+32|0,d+96|0,d);i=d+32|0,s[e+f|0]=u[i+f|0]^u[t+f|0],s[(a=1|f)+e|0]=u[a+i|0]^u[t+a|0],64!=(0|(f=f+2|0)););if(a=u[d+104|0]+1|0,s[d+104|0]=a,a=u[d+105|0]+(a>>>8|0)|0,s[d+105|0]=a,a=u[d+106|0]+(a>>>8|0)|0,s[d+106|0]=a,a=u[d+107|0]+(a>>>8|0)|0,s[d+107|0]=a,a=u[d+108|0]+(a>>>8|0)|0,s[d+108|0]=a,a=u[d+109|0]+(a>>>8|0)|0,s[d+109|0]=a,a=u[d+110|0]+(a>>>8|0)|0,s[d+110|0]=a,s[d+111|0]=u[d+111|0]+(a>>>8|0),t=t- -64|0,e=e- -64|0,r=r-1|0,!(!(r=(n=n+-64|0)>>>0<4294967232?r+1|0:r)&n>>>0>63|r))break}if(!(n|r))break e}if(f=0,P(d+32|0,d+96|0,d),r=1&n,1!=(0|n))for(i=-2&n,a=0;o=d+32|0,s[e+f|0]=u[o+f|0]^u[t+f|0],s[(n=1|f)+e|0]=u[n+o|0]^u[t+n|0],f=f+2|0,(0|i)!=(0|(a=a+2|0)););r&&(s[e+f|0]=u[(d+32|0)+f|0]^u[t+f|0])}$e(d+32|0,64),$e(d,32)}return m=d+112|0,0}],ut.grow=function(e){var t=this.length;return this.length=this.length+e,t},ut.set=function(e,t){this[e]=t},ut.get=function(e){return this[e]},ut);function dt(){return o.byteLength/65536|0}return{f:function(){},g:function(e,t,n,r,a,i,o,s,c,u,f,d){return 0|be(e|=0,t|=0,n|=0,r|=0,(e=0)|(a|=0),i|=0,o|=0,e|(s|=0),c|=0,f|=0,d|=0)},h:function(e,t,n,r,a,o,s,u,f,d,l){return e|=0,t|=0,f|=0,f=r|=0,!(r=a|=0)&(a=0|f)>>>0<4294967280?(be(e,e+a|0,0,n|=0,a,r,o|=0,s|=0,u|=0,d|=0,l|=0),t&&(r=(e=a+16|0)>>>0<16?r+1|0:r,c[t>>2]=e,c[t+4>>2]=r)):(Le(),i()),0},i:function(e,t,n,r,a,i,o,s,c,u,f,d){return 0|le(e|=0,t|=0,n|=0,r|=0,(e=0)|(a|=0),i|=0,o|=0,e|(s|=0),c|=0,f|=0,d|=0)},j:function(e,t,n,r,a,o,s,u,f,d,l){return e|=0,t|=0,f|=0,f=r|=0,!(r=a|=0)&(a=0|f)>>>0<4294967280?(le(e,e+a|0,0,n|=0,a,r,o|=0,s|=0,u|=0,d|=0,l|=0),t&&(r=(e=a+16|0)>>>0<16?r+1|0:r,c[t>>2]=e,c[t+4>>2]=r)):(Le(),i()),0},k:function(e,t,n,r,a,i,o,s,c,u,f){return 0|pe(e|=0,n|=0,(e=0)|(r|=0),a|=0,i|=0,o|=0,e|(s|=0),c|=0,u|=0,f|=0)},l:function(e,t,n,r,a,i,o,s,u,f,d){return t|=0,n|=0,r|=0,a|=0,s|=0,s|=0,n=-1,!(i|=0)&(a|=0)>>>0>=16|i&&(n=pe(e|=0,r,a-16|0,i-(a>>>0<16)|0,(r+a|0)-16|0,o|=0,s,u|=0,f|=0,d|=0)),t&&(c[t>>2]=n?0:a-16|0,c[t+4>>2]=n?0:i-(a>>>0<16)|0),0|n},m:function(e,t,n,r,a,i,o,s,c,u,f){return 0|de(e|=0,n|=0,(e=0)|(r|=0),a|=0,i|=0,o|=0,e|(s|=0),c|=0,u|=0,f|=0)},n:function(e,t,n,r,a,i,o,s,u,f,d){return t|=0,n|=0,r|=0,a|=0,s|=0,s|=0,n=-1,!(i|=0)&(a|=0)>>>0>=16|i&&(n=de(e|=0,r,a-16|0,i-(a>>>0<16)|0,(r+a|0)-16|0,o|=0,s,u|=0,f|=0,d|=0)),t&&(c[t>>2]=n?0:a-16|0,c[t+4>>2]=n?0:i-(a>>>0<16)|0),0|n},o:tt,p:function(){return 12},q:ct,r:et,s:rt,t:Xe,u:tt,v:st,w:ct,x:et,y:rt,z:Xe,A:function(e,t,n,r,a,i,o,s,c,u,f,d){return 0|ae(e|=0,t|=0,n|=0,r|=0,(e=0)|(a|=0),i|=0,o|=0,e|(s|=0),c|=0,f|=0,d|=0)},B:function(e,t,n,r,a,o,s,u,f,d,l){return e|=0,t|=0,f|=0,f=r|=0,!(r=a|=0)&(a=0|f)>>>0<4294967280?(ae(e,e+a|0,0,n|=0,a,r,o|=0,s|=0,u|=0,d|=0,l|=0),t&&(r=(e=a+16|0)>>>0<16?r+1|0:r,c[t>>2]=e,c[t+4>>2]=r)):(Le(),i()),0},C:function(e,t,n,r,a,i,o,s,c,u,f){return 0|re(e|=0,n|=0,(e=0)|(r|=0),a|=0,i|=0,o|=0,e|(s|=0),c|=0,u|=0,f|=0)},D:function(e,t,n,r,a,i,o,s,u,f,d){return t|=0,n|=0,r|=0,a|=0,s|=0,s|=0,n=-1,!(i|=0)&(a|=0)>>>0>=16|i&&(n=re(e|=0,r,a-16|0,i-(a>>>0<16)|0,(r+a|0)-16|0,o|=0,s,u|=0,f|=0,d|=0)),t&&(c[t>>2]=n?0:a-16|0,c[t+4>>2]=n?0:i-(a>>>0<16)|0),0|n},E:tt,F:nt,G:ct,H:et,I:rt,J:Xe,K:tt,L:tt,M:function(e,t,n,r,a){var i;return e|=0,t|=0,n|=0,r|=0,m=i=m-480|0,ee(i,a|=0),Ye(i,t,n,r),Oe(i,i+416|0),t=c[i+444>>2],n=c[i+440>>2],s[e+24|0]=n,s[e+25|0]=n>>>8,s[e+26|0]=n>>>16,s[e+27|0]=n>>>24,s[e+28|0]=t,s[e+29|0]=t>>>8,s[e+30|0]=t>>>16,s[e+31|0]=t>>>24,t=c[i+436>>2],n=c[i+432>>2],s[e+16|0]=n,s[e+17|0]=n>>>8,s[e+18|0]=n>>>16,s[e+19|0]=n>>>24,s[e+20|0]=t,s[e+21|0]=t>>>8,s[e+22|0]=t>>>16,s[e+23|0]=t>>>24,t=c[i+428>>2],n=c[i+424>>2],s[e+8|0]=n,s[e+9|0]=n>>>8,s[e+10|0]=n>>>16,s[e+11|0]=n>>>24,s[e+12|0]=t,s[e+13|0]=t>>>8,s[e+14|0]=t>>>16,s[e+15|0]=t>>>24,t=c[i+420>>2],n=c[i+416>>2],s[0|e]=n,s[e+1|0]=n>>>8,s[e+2|0]=n>>>16,s[e+3|0]=n>>>24,s[e+4|0]=t,s[e+5|0]=t>>>8,s[e+6|0]=t>>>16,s[e+7|0]=t>>>24,m=i+480|0,0},N:function(e,t,n,r,a){var i,o;return e|=0,t|=0,n|=0,r|=0,m=i=m-512|0,ee(o=i+32|0,a|=0),Ye(o,t,n,r),Oe(o,i+448|0),t=c[i+476>>2],c[i+24>>2]=c[i+472>>2],c[i+28>>2]=t,t=c[i+468>>2],c[i+16>>2]=c[i+464>>2],c[i+20>>2]=t,t=c[i+460>>2],c[i+8>>2]=c[i+456>>2],c[i+12>>2]=t,t=c[i+452>>2],c[i>>2]=c[i+448>>2],c[i+4>>2]=t,t=he(e,i),n=ce(i,e,32),m=i+512|0,n|((0|e)==(0|i)?-1:t)},O:Xe,P:tt,Q:tt,R:tt,S:tt,T:nt,U:et,V:rt,W:function(e,t,n){e|=0,t|=0;var r,a=0;return m=r=m+-64|0,ie(r,n|=0,32,0),n=c[r+28>>2],a=c[r+24>>2],s[t+24|0]=a,s[t+25|0]=a>>>8,s[t+26|0]=a>>>16,s[t+27|0]=a>>>24,s[t+28|0]=n,s[t+29|0]=n>>>8,s[t+30|0]=n>>>16,s[t+31|0]=n>>>24,n=c[r+20>>2],a=c[r+16>>2],s[t+16|0]=a,s[t+17|0]=a>>>8,s[t+18|0]=a>>>16,s[t+19|0]=a>>>24,s[t+20|0]=n,s[t+21|0]=n>>>8,s[t+22|0]=n>>>16,s[t+23|0]=n>>>24,n=c[r+12>>2],a=c[r+8>>2],s[t+8|0]=a,s[t+9|0]=a>>>8,s[t+10|0]=a>>>16,s[t+11|0]=a>>>24,s[t+12|0]=n,s[t+13|0]=n>>>8,s[t+14|0]=n>>>16,s[t+15|0]=n>>>24,n=c[r+4>>2],a=c[r>>2],s[0|t]=a,s[t+1|0]=a>>>8,s[t+2|0]=a>>>16,s[t+3|0]=a>>>24,s[t+4|0]=n,s[t+5|0]=n>>>8,s[t+6|0]=n>>>16,s[t+7|0]=n>>>24,$e(r,64),e=Je(e,t),m=r- -64|0,0|e},X:Ze,Y:Ie,Z:Pe,_:function(e,t,n,r,a,i,o,s){var c,u;return e|=0,t|=0,n|=0,i|=0,u=r|=0,r=a|=0,m=c=m-32|0,a=-1,Ie(c,o|=0,s|=0)||(a=te(e,t,n,u,r,i,c),$e(c,32)),m=c+32|0,0|a},$:function(e,t,n,r,a,o){return e|=0,t|=0,a|=0,o|=0,!(r|=0)&(n|=0)>>>0>=4294967280|r&&(Le(),i()),0|te(e+16|0,e,t,n,r,a,o)},aa:function(e,t,n,r,a,i,o){return 0|ke(e|=0,t|=0,n|=0,r|=0,a|=0,i|=0,o|=0)},ba:Me,ca:function(e,t,n,r,a,i,o,s){var c,u;return e|=0,t|=0,n|=0,i|=0,u=r|=0,r=a|=0,m=c=m-32|0,a=-1,Ie(c,o|=0,s|=0)||(a=ne(e,t,n,u,r,i,c),$e(c,32)),m=c+32|0,0|a},da:Se,ea:function(e,t,n,r,a,i,o){return 0|Ae(e|=0,t|=0,n|=0,r|=0,a|=0,i|=0,o|=0)},fa:function(e,t,n,r,a){e|=0,t|=0,a|=0;var i,o,u,f=0,d=0;return o=n|=0,n=r|=0,u=r=m,m=i=r-512&-64,r=-1,Ze(i- -64|0,i+32|0)||(B(r=i+128|0,0,0,24),V(r,d=i- -64|0,32,0),V(r,a,32,0),Te(r,f=i+96|0,24),r=ke(e+32|0,t,o,n,f,r=a,a=i+32|0),t=c[i+92>>2],n=c[i+88>>2],s[e+24|0]=n,s[e+25|0]=n>>>8,s[e+26|0]=n>>>16,s[e+27|0]=n>>>24,s[e+28|0]=t,s[e+29|0]=t>>>8,s[e+30|0]=t>>>16,s[e+31|0]=t>>>24,t=c[i+84>>2],n=c[i+80>>2],s[e+16|0]=n,s[e+17|0]=n>>>8,s[e+18|0]=n>>>16,s[e+19|0]=n>>>24,s[e+20|0]=t,s[e+21|0]=t>>>8,s[e+22|0]=t>>>16,s[e+23|0]=t>>>24,t=c[i+76>>2],n=c[i+72>>2],s[e+8|0]=n,s[e+9|0]=n>>>8,s[e+10|0]=n>>>16,s[e+11|0]=n>>>24,s[e+12|0]=t,s[e+13|0]=t>>>8,s[e+14|0]=t>>>16,s[e+15|0]=t>>>24,t=c[i+68>>2],n=c[i+64>>2],s[0|e]=n,s[e+1|0]=n>>>8,s[e+2|0]=n>>>16,s[e+3|0]=n>>>24,s[e+4|0]=t,s[e+5|0]=t>>>8,s[e+6|0]=t>>>16,s[e+7|0]=t>>>24,$e(a,32),$e(d,32),$e(f,24)),m=u,0|r},ga:function(e,t,n,r,a,i){e|=0,t|=0,a|=0,i|=0;var o,s,c=0,u=0;return o=c=m,m=c=c-448&-64,u=-1,s=r|=0,!r&(n|=0)>>>0>=48|r&&(B(r=c- -64|0,0,0,24),V(r,t,32,0),V(r,a,32,0),Te(a=r,r=c+32|0,24),u=Ae(e,t+32|0,n-32|0,s-(n>>>0<32)|0,r,t,i)),m=o,0|u},ha:function(){return 48},ia:et,ja:at,ka:tt,la:et,ma:at,na:tt,oa:function(){return 384},pa:function(e,t,n,r,a,i,o){return 0|H(e|=0,t|=0,n|=0,r|=0,a|=0,i|=0,o|=0)},qa:B,ra:function(e,t,n,r){return 0|V(e|=0,t|=0,n|=0,r|=0)},sa:Te,ta:Xe,ua:at,va:function(e,t,n,r){return 0|ie(e|=0,t|=0,n|=0,r|=0)},wa:et,xa:at,ya:st,za:tt,Aa:function(e,t,n,r,a,o){e|=0,t|=0,n|=0,r|=0,o|=0;var s,f=0,d=0,l=0,p=0,b=0,h=0,y=0;return m=s=m-32|0,f=u[0|(a|=0)]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,a=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,c[s+24>>2]=0,c[s+28>>2]=0,c[s+16>>2]=f,c[s+20>>2]=a,c[s+8>>2]=0,c[s+12>>2]=0,c[(a=s)>>2]=n,c[a+4>>2]=r,t-65>>>0<=4294967246?(c[8916]=28,e=-1):t-65>>>0<4294967232?e=-1:(m=a=(l=m)-512&-64,!o|!e|((d=255&t)-65&255)>>>0<=191?(Le(),i()):(r=s+16|0,s?(p=725511199^(u[s+8|0]|u[s+9|0]<<8|u[s+10|0]<<16|u[s+11|0]<<24),b=-1694144372^(u[s+12|0]|u[s+13|0]<<8|u[s+14|0]<<16|u[s+15|0]<<24),n=-1377402159^(u[0|s]|u[s+1|0]<<8|u[s+2|0]<<16|u[s+3|0]<<24),t=1359893119^(u[s+4|0]|u[s+5|0]<<8|u[s+6|0]<<16|u[s+7|0]<<24)):(p=725511199,b=-1694144372,n=-1377402159,t=1359893119),r?(h=327033209^(u[r+8|0]|u[r+9|0]<<8|u[r+10|0]<<16|u[r+11|0]<<24),y=1541459225^(u[r+12|0]|u[r+13|0]<<8|u[r+14|0]<<16|u[r+15|0]<<24),f=-79577749^(u[0|r]|u[r+1|0]<<8|u[r+2|0]<<16|u[r+3|0]<<24),r=528734635^(u[r+4|0]|u[r+5|0]<<8|u[r+6|0]<<16|u[r+7|0]<<24)):(h=327033209,y=1541459225,f=-79577749,r=528734635),Ce(a- -64|0,0,293),c[a+56>>2]=h,c[a+60>>2]=y,c[a+48>>2]=f,c[a+52>>2]=r,c[a+40>>2]=p,c[a+44>>2]=b,c[a+32>>2]=n,c[a+36>>2]=t,c[a+24>>2]=1595750129,c[a+28>>2]=-1521486534,c[a+16>>2]=-23791573,c[a+20>>2]=1013904242,c[a+8>>2]=-2067093701,c[a+12>>2]=-1150833019,c[a>>2]=-222443256^(8192|d),c[a+4>>2]=1779033703,Ce(32+(t=a+384|0)|0,0,96),Ee(t,o,32),Ee(a+96|0,t,128),c[a+352>>2]=128,$e(t,128),T(a,e,d),m=l),e=0),m=s+32|0,0|e},Ba:Xe,Ca:function(e,t,n){return e|=0,H(t|=0,32,n|=0,32,0,0,0),0|qe(e,t)},Da:function(e,t){return e|=0,ge(t|=0,32),0|qe(e,t)},Ea:function(e,t,n,r,a){t|=0,n|=0,r|=0,a|=0;var o,c,f=0,d=0;if(c=f=m,m=f=f-512&-64,o=(e|=0)||t){if(d=-1,!je(f+96|0,r,a)){for(r=t||e,e=0,B(t=f+128|0,0,0,64),V(t,d=f+96|0,32,0),$e(d,32),V(t,n,32,0),V(t,a,32,0),Te(t,f+32|0,64),$e(t,384);t=(a=f+32|0)+e|0,s[e+o|0]=u[0|t],s[e+r|0]=u[t+32|0],s[(n=1|e)+o|0]=u[n+a|0],s[n+r|0]=u[t+33|0],32!=(0|(e=e+2|0)););$e(f+32|0,64),d=0}return m=c,0|d}Le(),i()},Fa:function(e,t,n,r,a){t|=0,n|=0,r|=0,a|=0;var o,c,f=0,d=0;if(c=f=m,m=f=f-512&-64,o=(e|=0)||t){if(d=-1,!je(f+96|0,r,a)){for(r=t||e,e=0,B(t=f+128|0,0,0,64),V(t,d=f+96|0,32,0),$e(d,32),V(t,a,32,0),V(t,n,32,0),Te(t,f+32|0,64),$e(t,384);t=(a=f+32|0)+e|0,s[e+r|0]=u[0|t],s[e+o|0]=u[t+32|0],s[(n=1|e)+r|0]=u[n+a|0],s[n+o|0]=u[t+33|0],32!=(0|(e=e+2|0)););$e(f+32|0,64),d=0}return m=c,0|d}Le(),i()},Ga:tt,Ha:tt,Ia:tt,Ja:tt,Ka:qe,La:je,Ma:tt,Na:tt,Oa:tt,Pa:nt,Qa:et,Ra:rt,Sa:Xe,Ta:Pe,Ua:function(e,t,n,r,a,o){return e|=0,t|=0,a|=0,o|=0,!(r|=0)&(n|=0)>>>0>=4294967280|r&&(Le(),i()),te(e+16|0,e,t,n,r,a,o),0},Va:Me,Wa:Se,Xa:Xe,Ya:function(e,t,n){return e|=0,n|=0,ge(t|=0,24),Z(e,t,n),s[e+32|0]=1,s[e+33|0]=0,s[e+34|0]=0,s[e+35|0]=0,n=u[t+16|0]|u[t+17|0]<<8|u[t+18|0]<<16|u[t+19|0]<<24,t=u[t+20|0]|u[t+21|0]<<8|u[t+22|0]<<16|u[t+23|0]<<24,s[e+44|0]=0,s[e+45|0]=0,s[e+46|0]=0,s[e+47|0]=0,s[e+48|0]=0,s[e+49|0]=0,s[e+50|0]=0,s[e+51|0]=0,s[e+36|0]=n,s[e+37|0]=n>>>8,s[e+38|0]=n>>>16,s[e+39|0]=n>>>24,s[e+40|0]=t,s[e+41|0]=t>>>8,s[e+42|0]=t>>>16,s[e+43|0]=t>>>24,0},Za:function(e,t,n){return Z(e|=0,t|=0,n|=0),s[e+32|0]=1,s[e+33|0]=0,s[e+34|0]=0,s[e+35|0]=0,n=u[t+16|0]|u[t+17|0]<<8|u[t+18|0]<<16|u[t+19|0]<<24,t=u[t+20|0]|u[t+21|0]<<8|u[t+22|0]<<16|u[t+23|0]<<24,s[e+44|0]=0,s[e+45|0]=0,s[e+46|0]=0,s[e+47|0]=0,s[e+48|0]=0,s[e+49|0]=0,s[e+50|0]=0,s[e+51|0]=0,s[e+36|0]=n,s[e+37|0]=n>>>8,s[e+38|0]=n>>>16,s[e+39|0]=n>>>24,s[e+40|0]=t,s[e+41|0]=t>>>8,s[e+42|0]=t>>>16,s[e+43|0]=t>>>24,0},_a:function(e){var t,n=0,r=0;m=t=m-48|0,n=u[28+(e|=0)|0]|u[e+29|0]<<8|u[e+30|0]<<16|u[e+31|0]<<24,c[t+24>>2]=u[e+24|0]|u[e+25|0]<<8|u[e+26|0]<<16|u[e+27|0]<<24,c[t+28>>2]=n,n=u[e+20|0]|u[e+21|0]<<8|u[e+22|0]<<16|u[e+23|0]<<24,c[t+16>>2]=u[e+16|0]|u[e+17|0]<<8|u[e+18|0]<<16|u[e+19|0]<<24,c[t+20>>2]=n,n=u[e+4|0]|u[e+5|0]<<8|u[e+6|0]<<16|u[e+7|0]<<24,c[t>>2]=u[0|e]|u[e+1|0]<<8|u[e+2|0]<<16|u[e+3|0]<<24,c[t+4>>2]=n,n=u[e+12|0]|u[e+13|0]<<8|u[e+14|0]<<16|u[e+15|0]<<24,c[t+8>>2]=u[e+8|0]|u[e+9|0]<<8|u[e+10|0]<<16|u[e+11|0]<<24,c[t+12>>2]=n,n=u[e+40|0]|u[e+41|0]<<8|u[e+42|0]<<16|u[e+43|0]<<24,c[t+32>>2]=u[e+36|0]|u[e+37|0]<<8|u[e+38|0]<<16|u[e+39|0]<<24,c[t+36>>2]=n,ze(t,t,e+32|0,e),n=c[t+28>>2],r=c[t+24>>2],s[e+24|0]=r,s[e+25|0]=r>>>8,s[e+26|0]=r>>>16,s[e+27|0]=r>>>24,s[e+28|0]=n,s[e+29|0]=n>>>8,s[e+30|0]=n>>>16,s[e+31|0]=n>>>24,n=c[t+20>>2],r=c[t+16>>2],s[e+16|0]=r,s[e+17|0]=r>>>8,s[e+18|0]=r>>>16,s[e+19|0]=r>>>24,s[e+20|0]=n,s[e+21|0]=n>>>8,s[e+22|0]=n>>>16,s[e+23|0]=n>>>24,n=c[t+12>>2],r=c[t+8>>2],s[e+8|0]=r,s[e+9|0]=r>>>8,s[e+10|0]=r>>>16,s[e+11|0]=r>>>24,s[e+12|0]=n,s[e+13|0]=n>>>8,s[e+14|0]=n>>>16,s[e+15|0]=n>>>24,n=c[t+4>>2],r=c[t>>2],s[0|e]=r,s[e+1|0]=r>>>8,s[e+2|0]=r>>>16,s[e+3|0]=r>>>24,s[e+4|0]=n,s[e+5|0]=n>>>8,s[e+6|0]=n>>>16,s[e+7|0]=n>>>24,r=c[t+36>>2],n=c[t+32>>2],s[e+32|0]=1,s[e+33|0]=0,s[e+34|0]=0,s[e+35|0]=0,s[e+36|0]=n,s[e+37|0]=n>>>8,s[e+38|0]=n>>>16,s[e+39|0]=n>>>24,s[e+40|0]=r,s[e+41|0]=r>>>8,s[e+42|0]=r>>>16,s[e+43|0]=r>>>24,m=t+48|0},$a:function(e,t,n,r,a,o,f,d,l,p){e|=0,t|=0,r|=0,f|=0,l|=0,p|=0;var b,h=0,y=0,v=0;return h=a|=0,a=o|=0,h|=o=0,b=o|(d|=0),m=o=m-384|0,(n|=0)&&(c[n>>2]=0,c[n+4>>2]=0),!a&h>>>0<4294967279?(Qe(y=o+16|0,64,v=e+32|0,e),Ge(d=o+80|0,y),$e(y,64),Ve(d,f,b,l),Ve(d,33904,0-b&15,0),c[o+72>>2]=0,c[o+76>>2]=0,c[(f=o- -64|0)>>2]=0,c[f+4>>2]=0,c[o+56>>2]=0,c[o+60>>2]=0,c[o+48>>2]=0,c[o+52>>2]=0,c[o+40>>2]=0,c[o+44>>2]=0,c[o+32>>2]=0,c[o+36>>2]=0,c[o+16>>2]=0,c[o+20>>2]=0,c[o+24>>2]=0,c[o+28>>2]=0,s[o+16|0]=p,ve(y,y,64,0,v,1,e),Ve(d,y,64,0),s[0|t]=u[o+16|0],ve(t=t+1|0,r,h,a,v,2,e),Ve(d,t,h,a),Ve(d,33904,15&h,0),c[o+8>>2]=b,c[o+12>>2]=l,Ve(d,r=o+8|0,8,0),c[o+8>>2]=h- -64,c[o+12>>2]=a-((h>>>0<4294967232)-1|0),Ve(d,r,8,0),We(d,t=t+h|0),$e(d,256),s[e+36|0]=u[e+36|0]^u[0|t],s[e+37|0]=u[e+37|0]^u[t+1|0],s[e+38|0]=u[e+38|0]^u[t+2|0],s[e+39|0]=u[e+39|0]^u[t+3|0],s[e+40|0]=u[e+40|0]^u[t+4|0],s[e+41|0]=u[e+41|0]^u[t+5|0],s[e+42|0]=u[e+42|0]^u[t+6|0],s[e+43|0]=u[e+43|0]^u[t+7|0],ye(v),(2&p||oe(v,4))&&(t=u[e+28|0]|u[e+29|0]<<8|u[e+30|0]<<16|u[e+31|0]<<24,c[o+360>>2]=u[e+24|0]|u[e+25|0]<<8|u[e+26|0]<<16|u[e+27|0]<<24,c[o+364>>2]=t,t=u[e+20|0]|u[e+21|0]<<8|u[e+22|0]<<16|u[e+23|0]<<24,c[o+352>>2]=u[e+16|0]|u[e+17|0]<<8|u[e+18|0]<<16|u[e+19|0]<<24,c[o+356>>2]=t,t=u[e+4|0]|u[e+5|0]<<8|u[e+6|0]<<16|u[e+7|0]<<24,c[o+336>>2]=u[0|e]|u[e+1|0]<<8|u[e+2|0]<<16|u[e+3|0]<<24,c[o+340>>2]=t,t=u[e+12|0]|u[e+13|0]<<8|u[e+14|0]<<16|u[e+15|0]<<24,c[o+344>>2]=u[e+8|0]|u[e+9|0]<<8|u[e+10|0]<<16|u[e+11|0]<<24,c[o+348>>2]=t,t=u[e+40|0]|u[e+41|0]<<8|u[e+42|0]<<16|u[e+43|0]<<24,c[o+368>>2]=u[e+36|0]|u[e+37|0]<<8|u[e+38|0]<<16|u[e+39|0]<<24,c[o+372>>2]=t,ze(t=o+336|0,t,v,e),t=c[o+364>>2],r=c[o+360>>2],s[e+24|0]=r,s[e+25|0]=r>>>8,s[e+26|0]=r>>>16,s[e+27|0]=r>>>24,s[e+28|0]=t,s[e+29|0]=t>>>8,s[e+30|0]=t>>>16,s[e+31|0]=t>>>24,t=c[o+356>>2],r=c[o+352>>2],s[e+16|0]=r,s[e+17|0]=r>>>8,s[e+18|0]=r>>>16,s[e+19|0]=r>>>24,s[e+20|0]=t,s[e+21|0]=t>>>8,s[e+22|0]=t>>>16,s[e+23|0]=t>>>24,t=c[o+348>>2],r=c[o+344>>2],s[e+8|0]=r,s[e+9|0]=r>>>8,s[e+10|0]=r>>>16,s[e+11|0]=r>>>24,s[e+12|0]=t,s[e+13|0]=t>>>8,s[e+14|0]=t>>>16,s[e+15|0]=t>>>24,t=c[o+340>>2],r=c[o+336>>2],s[0|e]=r,s[e+1|0]=r>>>8,s[e+2|0]=r>>>16,s[e+3|0]=r>>>24,s[e+4|0]=t,s[e+5|0]=t>>>8,s[e+6|0]=t>>>16,s[e+7|0]=t>>>24,t=c[o+368>>2],r=c[o+372>>2],s[e+32|0]=1,s[e+33|0]=0,s[e+34|0]=0,s[e+35|0]=0,s[e+36|0]=t,s[e+37|0]=t>>>8,s[e+38|0]=t>>>16,s[e+39|0]=t>>>24,s[e+40|0]=r,s[e+41|0]=r>>>8,s[e+42|0]=r>>>16,s[e+43|0]=r>>>24),n&&(a=(e=h+17|0)>>>0<17?a+1|0:a,c[n>>2]=e,c[n+4>>2]=a),m=o+384|0):(Le(),i()),0},ab:function(e,t,n,r,a,o,f,d,l,p){e|=0,t|=0,r|=0,a|=0,d|=0,p|=0;var b,h=0,y=0,v=0,g=0,A=0,w=0;h=o|=0,o=f|=0,y=0|h,b=l|=0,m=f=m-400|0,(n|=0)&&(c[n>>2]=0,c[n+4>>2]=0),r&&(s[0|r]=255),w=-1;e:{t:{if(!(!o&y>>>0<17)){if(A=h=o-(y>>>0<17)|0,!h&(l=y-17|0)>>>0>=4294967279|h)break t;Qe(v=f+32|0,64,g=e+32|0,e),Ge(h=f+96|0,v),$e(v,64),Ve(h,d,b,p),Ve(h,33904,0-b&15,0),c[f+88>>2]=0,c[f+92>>2]=0,c[f+80>>2]=0,c[f+84>>2]=0,c[f+72>>2]=0,c[f+76>>2]=0,c[(d=f- -64|0)>>2]=0,c[d+4>>2]=0,c[f+56>>2]=0,c[f+60>>2]=0,c[f+48>>2]=0,c[f+52>>2]=0,c[f+40>>2]=0,c[f+44>>2]=0,c[f+32>>2]=0,c[f+36>>2]=0,s[f+32|0]=u[0|a],ve(v,v,64,0,g,1,e),d=u[f+32|0],s[f+32|0]=u[0|a],Ve(h,v,64,0),Ve(h,a=a+1|0,l,A),Ve(h,33904,y-1&15,0),c[f+24>>2]=b,c[f+28>>2]=p,Ve(h,p=f+24|0,8,0),o=(y=y+47|0)>>>0<47?o+1|0:o,c[f+24>>2]=y,c[f+28>>2]=o,Ve(h,p,8,0),We(h,f),$e(h,256),ce(f,a+l|0,16)?$e(f,16):(ve(t,a,l,A,g,2,e),s[e+36|0]=u[e+36|0]^u[0|f],s[e+37|0]=u[e+37|0]^u[f+1|0],s[e+38|0]=u[e+38|0]^u[f+2|0],s[e+39|0]=u[e+39|0]^u[f+3|0],s[e+40|0]=u[e+40|0]^u[f+4|0],s[e+41|0]=u[e+41|0]^u[f+5|0],s[e+42|0]=u[e+42|0]^u[f+6|0],s[e+43|0]=u[e+43|0]^u[f+7|0],ye(g),(2&d||oe(g,4))&&(t=u[e+28|0]|u[e+29|0]<<8|u[e+30|0]<<16|u[e+31|0]<<24,c[f+376>>2]=u[e+24|0]|u[e+25|0]<<8|u[e+26|0]<<16|u[e+27|0]<<24,c[f+380>>2]=t,t=u[e+20|0]|u[e+21|0]<<8|u[e+22|0]<<16|u[e+23|0]<<24,c[f+368>>2]=u[e+16|0]|u[e+17|0]<<8|u[e+18|0]<<16|u[e+19|0]<<24,c[f+372>>2]=t,t=u[e+4|0]|u[e+5|0]<<8|u[e+6|0]<<16|u[e+7|0]<<24,c[f+352>>2]=u[0|e]|u[e+1|0]<<8|u[e+2|0]<<16|u[e+3|0]<<24,c[f+356>>2]=t,t=u[e+12|0]|u[e+13|0]<<8|u[e+14|0]<<16|u[e+15|0]<<24,c[f+360>>2]=u[e+8|0]|u[e+9|0]<<8|u[e+10|0]<<16|u[e+11|0]<<24,c[f+364>>2]=t,t=u[e+40|0]|u[e+41|0]<<8|u[e+42|0]<<16|u[e+43|0]<<24,c[f+384>>2]=u[e+36|0]|u[e+37|0]<<8|u[e+38|0]<<16|u[e+39|0]<<24,c[f+388>>2]=t,ze(t=f+352|0,t,g,e),t=c[f+380>>2],a=c[f+376>>2],s[e+24|0]=a,s[e+25|0]=a>>>8,s[e+26|0]=a>>>16,s[e+27|0]=a>>>24,s[e+28|0]=t,s[e+29|0]=t>>>8,s[e+30|0]=t>>>16,s[e+31|0]=t>>>24,t=c[f+372>>2],a=c[f+368>>2],s[e+16|0]=a,s[e+17|0]=a>>>8,s[e+18|0]=a>>>16,s[e+19|0]=a>>>24,s[e+20|0]=t,s[e+21|0]=t>>>8,s[e+22|0]=t>>>16,s[e+23|0]=t>>>24,t=c[f+364>>2],a=c[f+360>>2],s[e+8|0]=a,s[e+9|0]=a>>>8,s[e+10|0]=a>>>16,s[e+11|0]=a>>>24,s[e+12|0]=t,s[e+13|0]=t>>>8,s[e+14|0]=t>>>16,s[e+15|0]=t>>>24,t=c[f+356>>2],a=c[f+352>>2],s[0|e]=a,s[e+1|0]=a>>>8,s[e+2|0]=a>>>16,s[e+3|0]=a>>>24,s[e+4|0]=t,s[e+5|0]=t>>>8,s[e+6|0]=t>>>16,s[e+7|0]=t>>>24,t=c[f+384>>2],a=c[f+388>>2],s[e+32|0]=1,s[e+33|0]=0,s[e+34|0]=0,s[e+35|0]=0,s[e+36|0]=t,s[e+37|0]=t>>>8,s[e+38|0]=t>>>16,s[e+39|0]=t>>>24,s[e+40|0]=a,s[e+41|0]=a>>>8,s[e+42|0]=a>>>16,s[e+43|0]=a>>>24),n&&(c[n>>2]=l,c[n+4>>2]=A),w=0,r&&(s[0|r]=d))}m=f+400|0;break e}Le(),i()}return 0|w},bb:function(){return 52},cb:function(){return 17},db:nt,eb:tt,fb:function(){return-18},gb:ct,hb:it,ib:function(){return 2},jb:ot,kb:st,lb:et,mb:function(e,t,n,r,a){e|=0,t|=0,n|=0,r|=0;var i,o=0,c=0,f=0,d=0,l=0,p=0,b=0,h=0,y=0,m=0,g=0,A=0,w=0,x=0,_=0,k=0;if(w=1886610805^(a=u[0|(o=a|=0)]|u[o+1|0]<<8|u[o+2|0]<<16|u[o+3|0]<<24),x=1936682341^(c=u[o+4|0]|u[o+5|0]<<8|u[o+6|0]<<16|u[o+7|0]<<24),a^=1852142177,f=1819895653^c,_=1852075885^(c=u[o+8|0]|u[o+9|0]<<8|u[o+10|0]<<16|u[o+11|0]<<24),k=1685025377^(o=u[o+12|0]|u[o+13|0]<<8|u[o+14|0]<<16|u[o+15|0]<<24),d=2037671283^c,c=1952801890^o,m=n,(0|(h=(t+n|0)-(i=7&n)|0))!=(0|t)){for(;n=(g=c^(A=u[t+4|0]|u[t+5|0]<<8|u[t+6|0]<<16|u[t+7|0]<<24))+f|0,d=a=(o=r=d^(y=u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24))+a|0,b=n=a>>>0>>0?n+1|0:n,n=x+k|0,n=(f=w+_|0)>>>0<_>>>0?n+1|0:n,o=fe(_,k,13)^f,c=n,n=b+(a=n^v)|0,n=o>>>0>(l=d+o|0)>>>0?n+1|0:n,o=fe(o,a,17)^l,p=n,w=fe(o,a=n^v,13),x=v,n=fe(r,g,16),r=b^v,g=n^d,c=fe(f,c,32),n=v+r|0,n=(c=(f=g+c|0)>>>0>>0?n+1|0:n)+a|0,b=n=(d=o+f|0)>>>0>>0?n+1|0:n,w=fe(o=d^w,a=n^x,17),x=v,n=fe(g,r,21),r=c^v,g=n^f,c=fe(l,p,32),n=v+r|0,n=(c=(f=g+c|0)>>>0>>0?n+1|0:n)+a|0,_=(o=o+f|0)^w,a=n=o>>>0>>0?n+1|0:n,k=n^x,n=fe(g,r,16),l=c^=v,p=fe(n^=f,c,21),f=v,b=(c=fe(d,b,32))+n|0,n=v+l|0,d=p^b,c=(n=c>>>0>b>>>0?n+1|0:n)^f,a=fe(o,a,32),f=v,w=b^y,x=n^A,(0|h)!=(0|(t=t+8|0)););t=h}switch(A=0,p=m<<24,i-1|0){case 6:p|=u[t+6|0]<<16;case 5:p|=u[t+5|0]<<8;case 4:p|=u[t+4|0];case 3:A|=(r=u[t+3|0])<<24,p|=n=r>>>8|0;case 2:A|=(r=u[t+2|0])<<16,p|=n=r>>>16|0;case 1:A|=(r=u[t+1|0])<<8,p|=n=r>>>24|0;case 0:A=u[0|t]|A}return t=e,r=fe(o=d^A,e=c^p,16),e=e+f|0,b=e=(d=a+o|0)>>>0>>0?e+1|0:e,l=fe(a=r^d,e^=n=v,21),c=v,n=x+k|0,r=n=(o=w+_|0)>>>0<_>>>0?n+1|0:n,h=a,a=fe(o,n,32),n=v+e|0,e=c,c=n=a>>>0>(f=h+a|0)>>>0?n+1|0:n,m=fe(a=f^l,e^=n,16),y=v,o=(n=d)+(d=h=fe(_,k,13)^o)|0,n=(l=v^r)+b|0,r=o,b=a,a=fe(o,n=o>>>0>>0?n+1|0:n,32),e=v+e|0,g=fe(o=(d=b+a|0)^m,a=(b=a>>>0>d>>>0?e+1|0:e)^y,21),y=v,h=fe(h,l,17)^r,n=(l=v^n)+c|0,e=n=(e=h)>>>0>(r=e+f|0)>>>0?n+1|0:n,c=o,o=fe(r,n,32),n=v+a|0,m=n=(c=o>>>0>(f=c+o|0)>>>0?n+1|0:n)^y,y=fe(g^=f,n,16),o=v,h=fe(h,l,13)^r,e=(l=e^v)+b|0,r=e=(n=h)>>>0>(a=n+d|0)>>>0?e+1|0:e,e=fe(a,e,32),n=m+v|0,m=n=(d=o)^(o=(e=g+(255^e)|0)>>>0>>0?n+1|0:n),d=e,y=fe(g=y^e,n,21),b=v,h=fe(h,l,17)^a,n=(l=r^v)+(c^p)|0,r=n=(e=f^A)>>>0>(a=h+e|0)>>>0?n+1|0:n,e=fe(a,n,32),n=m+v|0,n=(c=(e=e+g|0)>>>0>>0?n+1|0:n)^b,b=e,y=fe(m=y^e,n,16),f=v,l=fe(h,l,13)^a,e=o+(p=v^r)|0,r=e=(a=d+l|0)>>>0>>0?e+1|0:e,e=fe(a,e,32),n=n+v|0,h=n=(o=(e=e+m|0)>>>0>>0?n+1|0:n)^f,f=e,y=fe(m=y^e,n,21),d=v,e=fe(l,p,17),n=c+(l=r^v)|0,r=n=(a=b+(p=e^a)|0)>>>0>>0?n+1|0:n,e=fe(a,n,32),n=h+v|0,d=n=(c=(e=e+m|0)>>>0>>0?n+1|0:n)^d,b=e,h=fe(m=y^e,n,16),y=v,e=fe(p,l,13),n=o+(l=r^v)|0,r=n=(o=f+(p=e^a)|0)>>>0>>0?n+1|0:n,e=fe(o,n,32),n=d+v|0,d=e=e+m|0,f=n=e>>>0>>0?n+1|0:n,m=fe(a=h^e,e=n^y,21),h=v,p=fe(p,l,17),n=c+(y=r^v)|0,l=o^p,o=a,a=fe(r=b+l|0,n=r>>>0>>0?n+1|0:n,32),e=v+e|0,h=fe(o=(b=o+a|0)^m,a=(c=a>>>0>b>>>0?e+1|0:e)^h,16),p=v,e=fe(l,y,13),n=f+(y=n^v)|0,e=n=(r=d+(l=e^r)|0)>>>0>>0?n+1|0:n,f=fe(r,n,32),n=v+a|0,a=o=f+o|0,p=fe(o^h,(n=o>>>0>>0?n+1|0:n)^p,21),d=v,r=fe(l,y,17)^r,f=fe(r,e^=v,13),e=e+c|0,c=e=v^((r=r+b|0)>>>0>>0?e+1|0:e),r=fe(o=r^f,e,17)^p,e=v^d,n=n+c|0,d=a,r=fe(a=a+o|0,n=d>>>0>a>>>0?n+1|0:n,32)^r^a,s[0|t]=r,s[t+1|0]=r>>>8,s[t+2|0]=r>>>16,s[t+3|0]=r>>>24,e^=n^v,s[t+4|0]=e,s[t+5|0]=e>>>8,s[t+6|0]=e>>>16,s[t+7|0]=e>>>24,0},nb:function(e){ge(e|=0,16)},ob:function(){return 208},pb:at,qb:tt,rb:tt,sb:at,tb:function(){return-65},ub:function(e,t,n){e|=0;var r,a,i,o,c=0,f=0,d=0,l=0,p=0;return m=i=m-160|0,ie(t|=0,n|=0,32,0),s[0|t]=248&u[0|t],s[t+31|0]=63&u[t+31|0]|64,U(i,t),xe(e,i),f=u[(a=n)+8|0]|u[a+9|0]<<8|u[a+10|0]<<16|u[a+11|0]<<24,c=u[a+12|0]|u[a+13|0]<<8|u[a+14|0]<<16|u[a+15|0]<<24,d=u[a+16|0]|u[a+17|0]<<8|u[a+18|0]<<16|u[a+19|0]<<24,l=u[a+20|0]|u[a+21|0]<<8|u[a+22|0]<<16|u[a+23|0]<<24,p=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,n=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,o=u[a+28|0]|u[a+29|0]<<8|u[a+30|0]<<16|u[a+31|0]<<24,r=t,t=u[a+24|0]|u[a+25|0]<<8|u[a+26|0]<<16|u[a+27|0]<<24,s[r+24|0]=t,s[r+25|0]=t>>>8,s[r+26|0]=t>>>16,s[r+27|0]=t>>>24,s[r+28|0]=o,s[r+29|0]=o>>>8,s[r+30|0]=o>>>16,s[r+31|0]=o>>>24,s[r+16|0]=d,s[r+17|0]=d>>>8,s[r+18|0]=d>>>16,s[r+19|0]=d>>>24,s[r+20|0]=l,s[r+21|0]=l>>>8,s[r+22|0]=l>>>16,s[r+23|0]=l>>>24,s[r+8|0]=f,s[r+9|0]=f>>>8,s[r+10|0]=f>>>16,s[r+11|0]=f>>>24,s[r+12|0]=c,s[r+13|0]=c>>>8,s[r+14|0]=c>>>16,s[r+15|0]=c>>>24,s[0|r]=p,s[r+1|0]=p>>>8,s[r+2|0]=p>>>16,s[r+3|0]=p>>>24,s[r+4|0]=n,s[r+5|0]=n>>>8,s[r+6|0]=n>>>16,s[r+7|0]=n>>>24,d=u[(c=e)+8|0]|u[c+9|0]<<8|u[c+10|0]<<16|u[c+11|0]<<24,l=u[c+12|0]|u[c+13|0]<<8|u[c+14|0]<<16|u[c+15|0]<<24,p=u[c+16|0]|u[c+17|0]<<8|u[c+18|0]<<16|u[c+19|0]<<24,n=u[c+20|0]|u[c+21|0]<<8|u[c+22|0]<<16|u[c+23|0]<<24,t=u[0|c]|u[c+1|0]<<8|u[c+2|0]<<16|u[c+3|0]<<24,e=u[c+4|0]|u[c+5|0]<<8|u[c+6|0]<<16|u[c+7|0]<<24,f=u[c+28|0]|u[c+29|0]<<8|u[c+30|0]<<16|u[c+31|0]<<24,c=u[c+24|0]|u[c+25|0]<<8|u[c+26|0]<<16|u[c+27|0]<<24,s[r+56|0]=c,s[r+57|0]=c>>>8,s[r+58|0]=c>>>16,s[r+59|0]=c>>>24,s[r+60|0]=f,s[r+61|0]=f>>>8,s[r+62|0]=f>>>16,s[r+63|0]=f>>>24,s[r+48|0]=p,s[r+49|0]=p>>>8,s[r+50|0]=p>>>16,s[r+51|0]=p>>>24,s[r+52|0]=n,s[r+53|0]=n>>>8,s[r+54|0]=n>>>16,s[r+55|0]=n>>>24,s[r+40|0]=d,s[r+41|0]=d>>>8,s[r+42|0]=d>>>16,s[r+43|0]=d>>>24,s[r+44|0]=l,s[r+45|0]=l>>>8,s[r+46|0]=l>>>16,s[r+47|0]=l>>>24,s[r+32|0]=t,s[r+33|0]=t>>>8,s[r+34|0]=t>>>16,s[r+35|0]=t>>>24,s[r+36|0]=e,s[r+37|0]=e>>>8,s[r+38|0]=e>>>16,s[r+39|0]=e>>>24,m=i+160|0,0},vb:function(e,t){e|=0,t|=0;var n,r,a,i,o,f=0,d=0,l=0;return m=d=m-192|0,ge(d,32),ie(t,d,32,0),s[0|t]=248&u[0|t],s[t+31|0]=63&u[t+31|0]|64,U(l=d+32|0,t),xe(e,l),n=d,l=c[d+28>>2],d=c[d+24>>2],s[t+24|0]=d,s[t+25|0]=d>>>8,s[t+26|0]=d>>>16,s[t+27|0]=d>>>24,s[t+28|0]=l,s[t+29|0]=l>>>8,s[t+30|0]=l>>>16,s[t+31|0]=l>>>24,l=c[n+20>>2],d=c[n+16>>2],s[t+16|0]=d,s[t+17|0]=d>>>8,s[t+18|0]=d>>>16,s[t+19|0]=d>>>24,s[t+20|0]=l,s[t+21|0]=l>>>8,s[t+22|0]=l>>>16,s[t+23|0]=l>>>24,l=c[n+12>>2],d=c[n+8>>2],s[t+8|0]=d,s[t+9|0]=d>>>8,s[t+10|0]=d>>>16,s[t+11|0]=d>>>24,s[t+12|0]=l,s[t+13|0]=l>>>8,s[t+14|0]=l>>>16,s[t+15|0]=l>>>24,l=c[n+4>>2],d=c[n>>2],s[0|t]=d,s[t+1|0]=d>>>8,s[t+2|0]=d>>>16,s[t+3|0]=d>>>24,s[t+4|0]=l,s[t+5|0]=l>>>8,s[t+6|0]=l>>>16,s[t+7|0]=l>>>24,r=u[(f=e)+8|0]|u[f+9|0]<<8|u[f+10|0]<<16|u[f+11|0]<<24,a=u[f+12|0]|u[f+13|0]<<8|u[f+14|0]<<16|u[f+15|0]<<24,i=u[f+16|0]|u[f+17|0]<<8|u[f+18|0]<<16|u[f+19|0]<<24,l=u[f+20|0]|u[f+21|0]<<8|u[f+22|0]<<16|u[f+23|0]<<24,d=u[0|f]|u[f+1|0]<<8|u[f+2|0]<<16|u[f+3|0]<<24,e=u[f+4|0]|u[f+5|0]<<8|u[f+6|0]<<16|u[f+7|0]<<24,o=u[f+28|0]|u[f+29|0]<<8|u[f+30|0]<<16|u[f+31|0]<<24,f=u[f+24|0]|u[f+25|0]<<8|u[f+26|0]<<16|u[f+27|0]<<24,s[t+56|0]=f,s[t+57|0]=f>>>8,s[t+58|0]=f>>>16,s[t+59|0]=f>>>24,s[t+60|0]=o,s[t+61|0]=o>>>8,s[t+62|0]=o>>>16,s[t+63|0]=o>>>24,s[t+48|0]=i,s[t+49|0]=i>>>8,s[t+50|0]=i>>>16,s[t+51|0]=i>>>24,s[t+52|0]=l,s[t+53|0]=l>>>8,s[t+54|0]=l>>>16,s[t+55|0]=l>>>24,s[t+40|0]=r,s[t+41|0]=r>>>8,s[t+42|0]=r>>>16,s[t+43|0]=r>>>24,s[t+44|0]=a,s[t+45|0]=a>>>8,s[t+46|0]=a>>>16,s[t+47|0]=a>>>24,s[t+32|0]=d,s[t+33|0]=d>>>8,s[t+34|0]=d>>>16,s[t+35|0]=d>>>24,s[t+36|0]=e,s[t+37|0]=e>>>8,s[t+38|0]=e>>>16,s[t+39|0]=e>>>24,$e(n,32),m=n+192|0,0},wb:function(e,t,n,r,a,i){t|=0,a|=0,i|=0;var o,s=0;return m=o=m-16|0,A(e|=0,o+8|0,_e(e- -64|0,n|=0,r|=0),r,a,i,0),64!=c[o+8>>2]|c[o+12>>2]?(t&&(c[t>>2]=0,c[t+4>>2]=0),Ce(e,0,r- -64|0),s=-1):t&&(c[t>>2]=r- -64,c[t+4>>2]=a-((r>>>0<4294967232)-1|0)),m=o+16|0,0|s},xb:function(e,t,n,r,a,i){e|=0,t|=0,n|=0;var o=0;e:{t:{if(!(!(a|=0)&(r|=0)>>>0<64||(a=a-1|0,!(a=(r=r+-64|0)>>>0<4294967232?a+1|0:a)&r>>>0>4294967231|a))){if(!_(n,o=n- -64|0,r,a,i|=0,0))break t;e&&Ce(e,0,r)}if(n=-1,!t)break e;c[t>>2]=0,c[t+4>>2]=0;break e}t&&(c[t>>2]=r,c[t+4>>2]=a),n=0,e&&_e(e,o,r)}return 0|n},yb:function(e,t,n,r,a,i){return A(e|=0,t|=0,n|=0,r|=0,a|=0,i|=0,0),0},zb:function(e,t,n,r,a){return 0|_(e|=0,t|=0,n|=0,r|=0,a|=0,0)},Ab:function(e){return se(e|=0),0},Bb:function(e,t,n,r){return 0|L(e|=0,t|=0,n|=0,r|=0)},Cb:function(e,t,n,r){var a;return t|=0,n|=0,r|=0,m=a=m+-64|0,C(e|=0,a),e=A(t,n,a,64,0,r,1),m=a- -64|0,0|e},Db:function(e,t,n){var r;return t|=0,n|=0,m=r=m+-64|0,C(e|=0,r),e=_(t,r,64,0,n,1),m=r- -64|0,0|e},Eb:function(e,t){e|=0;var n,r=0,a=0,i=0,o=0,u=0,f=0,l=0,p=0,b=0,h=0,y=0,g=0,A=0,w=0,x=0,_=0,I=0,E=0,C=0,T=0,P=0,M=0,B=0,D=0,j=0,U=0,L=0,Z=0,F=0,H=0,z=0,q=0,K=0,V=0,G=0,W=0,X=0,$=0,ee=0,te=0,ne=0,re=0,ae=0,ie=0,se=0,ce=0,fe=0,de=0,le=0,pe=0,be=0,he=0,ye=0,ve=0,ge=0,Ae=0,we=0,xe=0,_e=0,ke=0,Se=0,Ie=0,Ee=0,Te=0,Oe=0,Pe=0,Me=0,Be=0,Re=0,Ne=0,De=0,je=0,Ue=0,Le=0,Ze=0,Fe=0,He=0,ze=0,qe=0,Qe=0;if(m=n=m-256|0,je=-1,!ue(t|=0)&&!O(n+96|0,t)){for(m=r=m-2048|0,J(A=r+640|0,t=n+96|0),a=c[t+8>>2],o=c[t+12>>2],i=c[t+16>>2],u=c[t+20>>2],b=c[t+24>>2],h=c[t+28>>2],f=c[t>>2],l=c[t+4>>2],w=c[t+36>>2],c[r+352>>2]=c[t+32>>2],c[r+356>>2]=w,c[r+344>>2]=b,c[r+348>>2]=h,c[r+336>>2]=i,c[r+340>>2]=u,c[r+328>>2]=a,c[r+332>>2]=o,c[r+320>>2]=f,c[r+324>>2]=l,a=c[t+40>>2],o=c[t+44>>2],i=c[t+48>>2],u=c[t+52>>2],b=c[t+56>>2],h=c[t+60>>2],l=c[(f=t- -64|0)>>2],f=c[f+4>>2],w=c[t+76>>2],c[r+392>>2]=c[t+72>>2],c[r+396>>2]=w,c[r+384>>2]=l,c[r+388>>2]=f,c[r+376>>2]=b,c[r+380>>2]=h,c[r+368>>2]=i,c[r+372>>2]=u,c[r+360>>2]=a,c[r+364>>2]=o,a=c[t+80>>2],o=c[t+84>>2],i=c[t+88>>2],u=c[t+92>>2],b=c[t+96>>2],h=c[t+100>>2],f=c[t+104>>2],l=c[t+108>>2],w=c[t+116>>2],c[r+432>>2]=c[t+112>>2],c[r+436>>2]=w,c[r+424>>2]=f,c[r+428>>2]=l,c[r+416>>2]=b,c[r+420>>2]=h,c[r+408>>2]=i,c[r+412>>2]=u,c[r+400>>2]=a,c[r+404>>2]=o,S(t=r+480|0,a=r+320|0),k(f=r+160|0,t,o=r+600|0),k(r+200|0,i=r+520|0,u=r+560|0),k(r+240|0,u,o),k(r+280|0,t,i),N(t,f,A),k(a,t,o),k(A=r+360|0,i,u),k(b=r+400|0,u,o),k(h=r+440|0,t,i),J(l=r+800|0,a),N(t,f,l),k(a,t,o),k(A,i,u),k(b,u,o),k(h,t,i),J(l=r+960|0,a),N(t,f,l),k(a,t,o),k(A,i,u),k(b,u,o),k(h,t,i),J(l=r+1120|0,a),N(t,f,l),k(a,t,o),k(A,i,u),k(b,u,o),k(h,t,i),J(l=r+1280|0,a),N(t,f,l),k(a,t,o),k(A,i,u),k(b,u,o),k(h,t,i),J(l=r+1440|0,a),N(t,f,l),k(a,t,o),k(A,i,u),k(b,u,o),k(h,t,i),J(l=r+1600|0,a),N(t,f,l),k(a,t,o),k(A,i,u),k(b,u,o),k(h,t,i),J(r+1760|0,a),c[r+32>>2]=0,c[r+36>>2]=0,c[r+24>>2]=0,c[r+28>>2]=0,c[r+16>>2]=0,c[r+20>>2]=0,c[r+8>>2]=0,c[r+12>>2]=0,c[r+44>>2]=0,c[r+48>>2]=0,c[r+52>>2]=0,c[r+56>>2]=0,c[r+60>>2]=0,c[r+64>>2]=0,c[r+68>>2]=0,c[r+72>>2]=0,c[r+76>>2]=0,c[r+80>>2]=1,c[r>>2]=0,c[r+4>>2]=0,c[r+40>>2]=1,Ce(r+84|0,0,76),l=r+120|0,w=r+80|0,C=r+40|0,t=252;a=c[r+36>>2],c[r+1960>>2]=c[r+32>>2],c[r+1964>>2]=a,a=c[r+28>>2],c[r+1952>>2]=c[r+24>>2],c[r+1956>>2]=a,a=c[r+20>>2],c[r+1944>>2]=c[r+16>>2],c[r+1948>>2]=a,a=c[r+12>>2],c[r+1936>>2]=c[r+8>>2],c[r+1940>>2]=a,a=c[r+4>>2],c[r+1928>>2]=c[r>>2],c[r+1932>>2]=a,a=c[r+76>>2],c[r+2e3>>2]=c[r+72>>2],c[r+2004>>2]=a,a=c[r+68>>2],c[r+1992>>2]=c[r+64>>2],c[r+1996>>2]=a,a=c[r+60>>2],c[r+1984>>2]=c[r+56>>2],c[r+1988>>2]=a,a=c[r+52>>2],c[r+1976>>2]=c[r+48>>2],c[r+1980>>2]=a,a=c[r+44>>2],c[r+1968>>2]=c[r+40>>2],c[r+1972>>2]=a,a=c[r+84>>2],c[r+2008>>2]=c[r+80>>2],c[r+2012>>2]=a,a=c[r+92>>2],c[r+2016>>2]=c[r+88>>2],c[r+2020>>2]=a,a=c[r+100>>2],c[r+2024>>2]=c[r+96>>2],c[r+2028>>2]=a,a=c[r+108>>2],c[r+2032>>2]=c[r+104>>2],c[r+2036>>2]=a,a=c[r+116>>2],c[r+2040>>2]=c[r+112>>2],c[r+2044>>2]=a,a=t,t=s[t+33424|0],S(r+480|0,r+1928|0),(0|t)>0?(k(_=r+320|0,f=r+480|0,o),k(A,i,u),k(b,u,o),k(h,f,i),N(f,_,(r+640|0)+d((254&t)>>>1|0,160)|0)):(0|t)>=0||(k(_=r+320|0,f=r+480|0,o),k(A,i,u),k(b,u,o),k(h,f,i),R(f,_,(r+640|0)+d((0-t&254)>>>1|0,160)|0)),k(r,t=r+480|0,o),k(C,i,u),k(w,u,o),k(l,t,i),t=a-1|0,a;);Y(t=r+640|0,r),t=oe(t,32),m=r+2048|0,t&&(i=c[n+136>>2],c[n>>2]=1-i,je=0,q=c[n+172>>2],c[n+36>>2]=0-q,l=c[n+168>>2],c[n+32>>2]=0-l,K=c[n+164>>2],c[n+28>>2]=0-K,A=c[n+160>>2],c[n+24>>2]=0-A,V=c[n+156>>2],c[n+20>>2]=0-V,b=c[n+152>>2],c[n+16>>2]=0-b,G=c[n+148>>2],c[n+12>>2]=0-G,h=c[n+144>>2],c[n+8>>2]=0-h,W=c[n+140>>2],c[n+4>>2]=0-W,Q(n,n),t=me(C=c[n+4>>2],F=C>>31,T=V<<1,le=T>>31),a=v,r=me(u=c[n>>2],M=u>>31,A,B=A>>31),a=v+a|0,a=(t=r+t|0)>>>0>>0?a+1|0:a,r=(o=me(D=c[n+8>>2],X=D>>31,b,j=b>>31))+t|0,t=v+a|0,t=r>>>0>>0?t+1|0:t,a=r,r=me(H=c[n+12>>2],te=H>>31,ae=G<<1,pe=ae>>31),t=v+t|0,t=r>>>0>(a=a+r|0)>>>0?t+1|0:t,r=me($=c[n+16>>2],ie=$>>31,h,U=h>>31),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,Pe=o=c[n+20>>2],f=me(o,be=o>>31,se=W<<1,he=se>>31),r=v+t|0,r=(a=f+a|0)>>>0>>0?r+1|0:r,Me=I=c[n+24>>2],t=(i=me(I,Ee=I>>31,f=i+1|0,L=f>>31))+a|0,a=v+r|0,a=t>>>0>>0?a+1|0:a,ye=c[n+28>>2],r=(i=me(y=d(ye,19),ne=y>>31,ce=q<<1,ve=ce>>31))+t|0,t=v+a|0,t=r>>>0>>0?t+1|0:t,a=r,Ue=c[n+32>>2],r=me(_=d(Ue,19),ee=_>>31,l,Z=l>>31),t=v+t|0,t=r>>>0>(a=a+r|0)>>>0?t+1|0:t,Le=c[n+36>>2],r=me(w=d(Le,19),z=w>>31,fe=K<<1,ge=fe>>31),t=v+t|0,g=a=r+a|0,i=r>>>0>a>>>0?t+1|0:t,t=me(b,j,C,F),a=v,p=me(u,M,V,Ae=V>>31),r=v+a|0,r=(t=p+t|0)>>>0

>>0?r+1|0:r,p=me(D,X,G,we=G>>31),a=v+r|0,a=(t=p+t|0)>>>0

>>0?a+1|0:a,r=(p=me(h,U,H,te))+t|0,t=v+a|0,t=r>>>0

>>0?t+1|0:t,a=r,r=me($,ie,W,xe=W>>31),t=v+t|0,t=r>>>0>(a=a+r|0)>>>0?t+1|0:t,r=me(f,L,o,be),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,p=me(I=d(I,19),de=I>>31,q,_e=q>>31),r=v+t|0,r=(a=p+a|0)>>>0

>>0?r+1|0:r,t=(p=me(l,Z,y,ne))+a|0,a=v+r|0,a=t>>>0

>>0?a+1|0:a,r=(p=me(_,ee,K,ke=K>>31))+t|0,t=v+a|0,t=r>>>0

>>0?t+1|0:t,a=r,r=me(A,B,w,z),t=v+t|0,Be=a=a+r|0,re=r>>>0>a>>>0?t+1|0:t,t=me(C,F,ae,pe),r=v,a=(p=me(u,M,b,j))+t|0,t=v+r|0,t=a>>>0

>>0?t+1|0:t,p=me(h,U,D,X),r=v+t|0,r=(a=p+a|0)>>>0

>>0?r+1|0:r,t=(p=me(H,te,se,he))+a|0,a=v+r|0,a=t>>>0

>>0?a+1|0:a,r=(p=me(f,L,$,ie))+t|0,t=v+a|0,t=r>>>0

>>0?t+1|0:t,a=r,r=me(p=d(o,19),Se=p>>31,ce,ve),t=v+t|0,t=r>>>0>(a=a+r|0)>>>0?t+1|0:t,r=me(l,Z,I,de),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,o=me(y,ne,fe,ge),r=v+t|0,r=(a=o+a|0)>>>0>>0?r+1|0:r,t=(o=me(A,B,_,ee))+a|0,a=v+r|0,a=t>>>0>>0?a+1|0:a,r=(o=me(w,z,T,le))+t|0,t=v+a|0,Ze=r,Fe=t=r>>>0>>0?t+1|0:t,He=r=r+33554432|0,ze=t=r>>>0<33554432?t+1|0:t,r=(67108863&t)<<6|r>>>26,t=(t>>26)+re|0,Be=o=r+Be|0,r=t=r>>>0>o>>>0?t+1|0:t,qe=t=o+16777216|0,o=(33554431&(r=t>>>0<16777216?r+1|0:r))<<7|t>>>25,t=(a=r>>25)+i|0,t=(r=o+g|0)>>>0>>0?t+1|0:t,Re=a=r+33554432|0,o=t=a>>>0<33554432?t+1|0:t,c[n+72>>2]=r-(-67108864&a),t=me(C,F,se,he),a=v,i=me(u,M,h,U),r=v+a|0,r=(t=i+t|0)>>>0>>0?r+1|0:r,a=(i=me(f,L,D,X))+t|0,t=v+r|0,t=a>>>0>>0?t+1|0:t,r=me(i=d(H,19),Ie=i>>31,ce,ve),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,r=(g=me(re=d($,19),Te=re>>31,l,Z))+a|0,a=v+t|0,a=r>>>0>>0?a+1|0:a,g=me(fe,ge,p,Se),t=v+a|0,t=(r=g+r|0)>>>0>>0?t+1|0:t,a=(g=me(A,B,I,de))+r|0,r=v+t|0,r=a>>>0>>0?r+1|0:r,g=me(y,ne,T,le),t=v+r|0,t=(a=g+a|0)>>>0>>0?t+1|0:t,r=me(b,j,_,ee),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,r=(g=me(w,z,ae,pe))+a|0,a=v+t|0,E=r,Ne=r>>>0>>0?a+1|0:a,t=me(f,L,C,F),a=v,r=(g=me(u,M,W,xe))+t|0,t=v+a|0,t=r>>>0>>0?t+1|0:t,g=a=d(D,19),a=(x=me(a,Oe=a>>31,q,_e))+r|0,r=v+t|0,r=a>>>0>>0?r+1|0:r,x=me(l,Z,i,Ie),t=v+r|0,t=(a=x+a|0)>>>0>>0?t+1|0:t,r=me(re,Te,K,ke),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,r=(x=me(A,B,p,Se))+a|0,a=v+t|0,a=r>>>0>>0?a+1|0:a,x=me(I,de,V,Ae),t=v+a|0,t=(r=x+r|0)>>>0>>0?t+1|0:t,a=(x=me(b,j,y,ne))+r|0,r=v+t|0,r=a>>>0>>0?r+1|0:r,x=me(_,ee,G,we),t=v+r|0,t=(a=x+a|0)>>>0>>0?t+1|0:t,r=me(h,U,w,z),t=v+t|0,De=a=r+a|0,x=r>>>0>a>>>0?t+1|0:t,t=me(t=d(C,19),t>>31,ce,ve),a=v,r=me(u,M,f,L),a=v+a|0,a=(t=r+t|0)>>>0>>0?a+1|0:a,r=(g=me(l,Z,g,Oe))+t|0,t=v+a|0,a=(i=me(i,Ie,fe,ge))+r|0,r=v+(r>>>0>>0?t+1|0:t)|0,r=a>>>0>>0?r+1|0:r,i=me(A,B,re,Te),t=v+r|0,t=(a=i+a|0)>>>0>>0?t+1|0:t,r=me(T,le,p,Se),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,r=(i=me(b,j,I,de))+a|0,a=v+t|0,a=r>>>0>>0?a+1|0:a,i=me(y,ne,ae,pe),t=v+a|0,t=(r=i+r|0)>>>0>>0?t+1|0:t,a=(i=me(h,U,_,ee))+r|0,r=v+t|0,r=a>>>0>>0?r+1|0:r,i=me(w,z,se,he),t=v+r|0,g=a=i+a|0,Ie=t=a>>>0>>0?t+1|0:t,Oe=a=a+33554432|0,Qe=t=a>>>0<33554432?t+1|0:t,r=t>>26,t=(67108863&t)<<6|a>>>26,a=r+x|0,x=i=t+De|0,t=a=t>>>0>i>>>0?a+1|0:a,De=a=i+16777216|0,i=(33554431&(t=a>>>0<16777216?t+1|0:t))<<7|a>>>25,t=(t>>25)+Ne|0,t=(a=i+E|0)>>>0>>0?t+1|0:t,Ne=a=(r=a)+33554432|0,i=t=a>>>0<33554432?t+1|0:t,c[n+56>>2]=r-(-67108864&a),t=me(A,B,C,F),r=v,a=(E=me(u,M,K,ke))+t|0,t=v+r|0,t=a>>>0>>0?t+1|0:t,r=me(D,X,V,Ae),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,r=me(b,j,H,te),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,E=me($,ie,G,we),r=v+t|0,r=(a=E+a|0)>>>0>>0?r+1|0:r,t=(E=me(h,U,Pe,be))+a|0,a=v+r|0,a=t>>>0>>0?a+1|0:a,r=(E=me(W,xe,Me,Ee))+t|0,t=v+a|0,t=r>>>0>>0?t+1|0:t,a=r,r=me(ye,E=ye>>31,f,L),t=v+t|0,t=r>>>0>(a=a+r|0)>>>0?t+1|0:t,r=me(_,ee,q,_e),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,P=(r=a)+(a=me(w,z,l,Z))|0,r=v+t|0,a=(t=o>>26)+(a=a>>>0>P>>>0?r+1|0:r)|0,t=(r=(o=(67108863&o)<<6|Re>>>26)+P|0)>>>0>>0?a+1|0:a,Re=a=r+16777216|0,o=t=a>>>0<16777216?t+1|0:t,c[n+76>>2]=r-(-33554432&a),t=me(h,U,C,F),a=v,P=me(u,M,G,we),r=v+a|0,r=(t=P+t|0)>>>0

>>0?r+1|0:r,P=me(D,X,W,xe),a=v+r|0,a=(t=P+t|0)>>>0

>>0?a+1|0:a,r=(P=me(f,L,H,te))+t|0,t=v+a|0,t=r>>>0

>>0?t+1|0:t,a=r,r=me(re,Te,q,_e),t=v+t|0,t=r>>>0>(a=a+r|0)>>>0?t+1|0:t,r=me(l,Z,p,Se),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,a=(I=me(I,de,K,ke))+a|0,r=v+t|0,t=(y=me(A,B,y,ne))+a|0,a=v+(a>>>0>>0?r+1|0:r)|0,r=(_=me(_,ee,V,Ae))+t|0,t=v+(t>>>0>>0?a+1|0:a)|0,t=r>>>0<_>>>0?t+1|0:t,a=r,r=me(b,j,w,z),t=v+t|0,y=a=a+r|0,t=(t=r>>>0>a>>>0?t+1|0:t)+(a=i>>26)|0,r=(a=i=y+(r=(67108863&i)<<6|Ne>>>26)|0)>>>0>>0?t+1|0:t,_=t=a+16777216|0,i=r=t>>>0<16777216?r+1|0:r,c[n+60>>2]=a-(-33554432&t),t=me(C,F,fe,ge),r=v,a=(y=me(u,M,l,Z))+t|0,t=v+r|0,t=a>>>0>>0?t+1|0:t,r=me(A,B,D,X),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,y=me(H,te,T,le),r=v+t|0,r=(a=y+a|0)>>>0>>0?r+1|0:r,t=(y=me(b,j,$,ie))+a|0,a=v+r|0,a=t>>>0>>0?a+1|0:a,r=(y=me(ae,pe,Pe,be))+t|0,t=v+a|0,t=r>>>0>>0?t+1|0:t,a=r,r=me(h,U,Me,Ee),t=v+t|0,t=r>>>0>(a=a+r|0)>>>0?t+1|0:t,r=a,a=me(ye,E,se,he),t=v+t|0,t=(r=r+a|0)>>>0>>0?t+1|0:t,y=a=Ue,a=(T=me(a,I=a>>31,f,L))+r|0,r=v+t|0,t=(w=me(w,z,ce,ve))+a|0,a=v+(a>>>0>>0?r+1|0:r)|0,r=t>>>0>>0?a+1|0:a,a=t,t=(t=o>>25)+r|0,t=(a=a+(o=(33554431&o)<<7|Re>>>25)|0)>>>0>>0?t+1|0:t,w=a=(r=a)+33554432|0,o=t=a>>>0<33554432?t+1|0:t,c[n+80>>2]=r-(-67108864&a),a=i>>25,r=(i=(33554431&i)<<7|_>>>25)+(Ze-(t=-67108864&He)|0)|0,t=a+(Fe-((t>>>0>Ze>>>0)+ze|0)|0)|0,t=r>>>0>>0?t+1|0:t,i=t=(67108863&(t=(a=r+33554432|0)>>>0<33554432?t+1|0:t))<<6|a>>>26,t=t+(T=Be-(-33554432&qe)|0)|0,c[n+68>>2]=t,c[n+64>>2]=r-(-67108864&a),t=me(l,Z,C,F),r=v,a=(i=me(u,M,q,_e))+t|0,t=v+r|0,t=a>>>0>>0?t+1|0:t,r=(i=me(D,X,K,ke))+a|0,a=v+t|0,a=r>>>0>>0?a+1|0:a,t=(i=me(A,B,H,te))+r|0,r=v+a|0,r=t>>>0>>0?r+1|0:r,a=(i=me($,ie,V,Ae))+t|0,t=v+r|0,t=a>>>0>>0?t+1|0:t,r=me(b,j,Pe,be),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,r=me(G,we,Me,Ee),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,r=(i=me(h,U,ye,E))+a|0,a=v+t|0,a=r>>>0>>0?a+1|0:a,i=(t=me(y,I,W,xe))+r|0,r=v+a|0,r=t>>>0>i>>>0?r+1|0:r,a=i,i=me(t=Le,t>>31,f,L),t=v+r|0,r=a=a+i|0,t=(t=a>>>0>>0?t+1|0:t)+(a=o>>26)|0,t=(r=r+(o=(67108863&o)<<6|w>>>26)|0)>>>0>>0?t+1|0:t,t=(a=r+16777216|0)>>>0<16777216?t+1|0:t,c[n+84>>2]=r-(-33554432&a),o=x-(-33554432&De)|0,i=g-(r=-67108864&Oe)|0,u=Ie-((r>>>0>g>>>0)+Qe|0)|0,t=me((33554431&(r=t))<<7|a>>>25,t=r>>25,19,0),a=v+u|0,t=t>>>0>(r=t+i|0)>>>0?a+1|0:a,i=t=(67108863&(t=(a=r+33554432|0)>>>0<33554432?t+1|0:t))<<6|a>>>26,t=t+o|0,c[n+52>>2]=t,c[n+48>>2]=r-(-67108864&a),Y(e,n+48|0))}return m=n+256|0,0|je},Fb:function(e,t){e|=0;var n,r=0;return m=n=m+-64|0,ie(n,t|=0,32,0),s[0|n]=248&u[0|n],s[n+31|0]=63&u[n+31|0]|64,t=c[n+20>>2],r=c[n+16>>2],s[e+16|0]=r,s[e+17|0]=r>>>8,s[e+18|0]=r>>>16,s[e+19|0]=r>>>24,s[e+20|0]=t,s[e+21|0]=t>>>8,s[e+22|0]=t>>>16,s[e+23|0]=t>>>24,t=c[n+12>>2],r=c[n+8>>2],s[e+8|0]=r,s[e+9|0]=r>>>8,s[e+10|0]=r>>>16,s[e+11|0]=r>>>24,s[e+12|0]=t,s[e+13|0]=t>>>8,s[e+14|0]=t>>>16,s[e+15|0]=t>>>24,t=c[n+4>>2],r=c[n>>2],s[0|e]=r,s[e+1|0]=r>>>8,s[e+2|0]=r>>>16,s[e+3|0]=r>>>24,s[e+4|0]=t,s[e+5|0]=t>>>8,s[e+6|0]=t>>>16,s[e+7|0]=t>>>24,t=c[n+28>>2],r=c[n+24>>2],s[e+24|0]=r,s[e+25|0]=r>>>8,s[e+26|0]=r>>>16,s[e+27|0]=r>>>24,s[e+28|0]=t,s[e+29|0]=t>>>8,s[e+30|0]=t>>>16,s[e+31|0]=t>>>24,$e(n,64),m=n- -64|0,0},Gb:function(){var e,t;return m=e=m-16|0,s[e+15|0]=0,t=0|p(34904,e+15|0,0),m=e+16|0,0|t},Hb:De,Ib:function(e){var t,n=0,r=0;if(m=t=m-16|0,(e|=0)>>>0>=2){for(n=(0-e>>>0)%(e>>>0)|0;s[t+15|0]=0,n>>>0>(r=0|p(34904,t+15|0,0))>>>0;);n=(r>>>0)%(e>>>0)|0}return m=t+16|0,0|n},Jb:ge,Kb:function(e,t,n){Qe(e|=0,t|=0,1024,n|=0)},Lb:tt,Mb:function(){var e=0,t=0;return(e=c[9048])&&(e=c[e+20>>2])&&(t=0|ft[0|e]()),0|t},Nb:function(e,t,n){e|=0,t|=0;var r,a=0,o=0,c=0;if(m=r=m-16|0,n|=0)b(1240,1100,197,1036),i();else{if(t)for(;s[r+15|0]=0,o=e+a|0,c=0|p(34904,r+15|0,0),s[0|o]=c,(0|t)!=(0|(a=a+1|0)););m=r+16|0}},Ob:function(e,t,n,r){e|=0,n|=0;var a=0,o=0,c=0;if(!((r|=0)>>>0>2147483646|r<<1>>>0>=(t|=0)>>>0)){if(t=0,r){for(;a=(t<<1)+e|0,o=15&(c=u[t+n|0]),s[a+1|0]=22272+((o<<8)+(o+65526&55552)|0)>>>8,o=a,a=c>>>4|0,s[0|o]=87+((a+65526>>>8&217)+a|0),(0|r)!=(0|(t=t+1|0)););t=r<<1}else t=0;return s[t+e|0]=0,0|e}Le(),i()},Pb:function(e,t,n,r,a,i,o){e|=0,t|=0,n|=0,a|=0,i|=0,o|=0;var f=0,d=0,l=0,p=0,b=0,h=0,y=0,m=0,v=0,g=0;e:if(r|=0){t:{n:{r:{a:{if(!a){for(d=1,a=0;;){if(!(255&((y=(65526+(l=(223&(b=u[n+f|0]))-55&255)^l+65520)>>>8|0)|(m=65526+(b^=48)>>>8|0))))break r;if(t>>>0<=h>>>0)break a;if(l=l&y|b&m,255&p?(s[e+h|0]=a|l,h=h+1|0):a=l<<4,p^=-1,(0|(f=f+1|0))==(0|r))break}f=r;break r}for(;;){i:{o:{s:{c:{u:{if(!(255&((b=(65526+(l=(223&(d=u[n+f|0]))-55&255)^l+65520)>>>8|0)|(m=65526+(y=48^d)>>>8|0)))){if(255&p)break n;if(!$(a,d))break e;if((f=p=f+1|0)>>>0>>0)break u;break e}if(t>>>0<=h>>>0)break a;if(d=l&b|y&m,!(255&p))break c;s[e+h|0]=d|g,h=h+1|0;break i}for(;;){if(!(255&((b=(65526+(l=(223&(d=u[n+f|0]))-55&255)^l+65520)>>>8|0)|(m=65526+(y=48^d)>>>8|0)))){if(!$(a,d))break e;if((f=f+1|0)>>>0>>0)continue;break s}break}if(t>>>0<=h>>>0)break o;d=l&b|y&m}g=d<<4,p=0;break i}f=r>>>0>p>>>0?r:p;break e}p=0;break a}if(p^=-1,d=1,!((f=f+1|0)>>>0>>0))break}break r}c[8916]=68,d=0}if(!(255&p))break t}c[8916]=28,v=-1,f=f-1|0,h=0;break e}d||(h=0,v=-1)}return o?c[o>>2]=n+f:(0|r)!=(0|f)&&(c[8916]=28,v=-1),i&&(c[i>>2]=h),0|v},Qb:function(e,t){e|=0;var n=0;return 1!=(-7&(t|=0))&&(Le(),i()),1+((3&(n=(n=e)+d(e=(e>>>0)/3|0,-3)|0)?2&t?n+1|0:4:0)+(e<<2)|0)|0},Rb:function(e,t,n,r,a){e|=0,t|=0,n|=0,r|=0;var o=0,c=0,f=0,l=0,p=0,h=0,y=0,m=0,v=0,g=0;e:{t:{n:{if(1==(-7&(a|=0))&&(l=(o=(r>>>0)/3|0)<<2,(o=d(o,-3)+r|0)&&(l=2&a?(2|l)+(o>>>1|0)|0:l+4|0),!(t>>>0<=l>>>0))){if(!(4&a)){if(o=0,!r)break e;break n}if(o=0,!r)break e;for(;;){for(h=(m=u[n+y|0])|h<<8,p=o,o=1+((((f|=8)-6>>>0)/6|0)+o|0)|0;v=65510+(c=h>>>(f=(a=f)-6|0)&63)>>>8|0,g=c+65484>>>8|0,s[e+p|0]=(1+(16321^c)^-1)>>>8&45|c+252&c+65474>>>8&(-1^g)|(c+32705^-1)>>>8&95|v&c+65|g&c+71&(-1^v),(0|(p=p+1|0))!=(0|o););if((0|(y=y+1|0))==(0|r))break}if(!f)break e;p=(r=65510+(n=m<<12-a&63)>>>8|0)&n+65,h=n+252&n+65474>>>8&(-1^(a=n+65484>>>8|0)),f=a&n+71&(-1^r),r=n+32705|0,a=(1+(16321^n)^-1)>>>8&45,n=95;break t}Le(),i()}for(;;){for(h=(m=u[n+y|0])|h<<8,p=o,o=1+((((f|=8)-6>>>0)/6|0)+o|0)|0;v=65510+(c=h>>>(f=(a=f)-6|0)&63)>>>8|0,g=c+65484>>>8|0,s[e+p|0]=(1+(16321^c)^-1)>>>8&43|c+252&c+65474>>>8&(-1^g)|(c+16321^-1)>>>8&47|v&c+65|g&c+71&(-1^v),(0|(p=p+1|0))!=(0|o););if((0|(y=y+1|0))==(0|r))break}if(!f)break e;p=(r=65510+(n=m<<12-a&63)>>>8|0)&n+65,h=n+252&n+65474>>>8&(-1^(a=n+65484>>>8|0)),f=a&n+71&(-1^r),r=n+16321|0,a=(1+(16321^n)^-1)>>>8&43,n=47}s[e+o|0]=n&(-1^r)>>>8|p|h|a|f,o=o+1|0}e:{t:{if(o>>>0<=l>>>0){if(o>>>0>>0)break t;l=o;break e}b(1048,1126,230,1319),i()}Ce(e+o|0,61,l-o|0)}return Ce(e+l|0,0,(t>>>0>(n=l+1|0)>>>0?t:n)-l|0),0|e},Sb:function(e,t,n,r,a,o,f,d){e|=0,t|=0,n|=0,r|=0,a|=0,o|=0,f|=0;var l=0,p=0,b=0,h=0,y=0,m=0,v=0,g=0;e:{t:{n:{r:{a:{i:{o:{s:{c:{u:{f:{if(1==(-7&(d|=0))){if(b=0,!r)break s;if(4&d)break f;for(;;){b=p;d:{l:{p:{b:{for(;;){if(l=(l=(h=s[n+b|0])-65|0)&((90-h^-1)&(-1^l))>>>8&255|h+4&((h+65488^-1)&(57-h^-1))>>>8&255|h+185&((h+65439^-1)&(122-h^-1))>>>8&255|(1+(16336^h)^-1)>>>8&63|(1+(16340^h)^-1)>>>8&62,255!=(0|(l|=(l-1&1+(65470^h))>>>8&255)))break b;if(l=0,!a)break c;if(!$(a,h))break;if((b=b+1|0)>>>0>=r>>>0)break p}p=b;break c}if(v=l+(v<<6)|0,y>>>0>1)break l;y=y+6|0;break d}p=(e=p+1|0)>>>0>>0?r:e;break c}if(y=y-2|0,t>>>0<=m>>>0)break u;s[e+m|0]=v>>>y,m=m+1|0}if(l=0,!((p=b+1|0)>>>0>>0))break}break c}Le(),i()}f:for(;;){for(b=p;;){d:{if(l=(l=(h=s[n+b|0])-65|0)&((90-h^-1)&(-1^l))>>>8&255|h+4&((h+65488^-1)&(57-h^-1))>>>8&255|h+185&((h+65439^-1)&(122-h^-1))>>>8&255|(1+(16288^h)^-1)>>>8&63|(1+(16338^h)^-1)>>>8&62,255==(0|(l|=(l-1&1+(65470^h))>>>8&255))){if(l=0,!a)break c;if($(a,h))break d;p=b;break c}if(v=l+(v<<6)|0,y>>>0<2)y=y+6|0;else{if(y=y-2|0,t>>>0<=m>>>0)break u;s[e+m|0]=v>>>y,m=m+1|0}if(l=0,(p=b+1|0)>>>0>>0)continue f;break c}if(!((b=b+1|0)>>>0>>0))break}break}p=(e=p+1|0)>>>0>>0?r:e;break c}p=b,c[8916]=68,l=1}if(y>>>0>4)break o;b=p}if(e=b,t=-1,l){p=e;break e}if((-1<>>0<2){d=e;break a}if(p=e>>>0>r>>>0?e:r,b=y>>>1|0,!a)break i;for(d=e;;){if((0|d)==(0|p)){l=68;break r}if(61!=(0|(e=s[n+d|0]))){if(!$(a,e)){l=28,p=d;break r}}else b=b-1|0;if(d=d+1|0,!b)break}break a}t=-1;break e}if(l=68,e>>>0>=r>>>0)break r;if(61!=u[e+n|0]){p=e,l=28;break r}if(d=e+b|0,1!=(0|b)){if((0|(y=e+1|0))==(0|p))break r;if(61!=u[n+y|0]){p=y,l=28;break r}if(2!=(0|b)){if((0|(e=e+2|0))==(0|p))break r;if(l=28,p=e,61!=u[e+n|0])break r}}}if(t=0,a)break n;break t}c[8916]=l;break e}if(!(r>>>0<=d>>>0)){for(;;){if(!$(a,s[n+d|0]))break t;if((0|(d=d+1|0))==(0|r))break}d=r}}p=d,g=m}return f?c[f>>2]=n+p:(0|r)!=(0|p)&&(c[8916]=28,t=-1),o&&(c[o>>2]=g),0|t},Tb:function(){var e=0;return c[9049]?e=1:(De(),ge(36176,16),c[9049]=1,e=0),0|e},Ub:function(e,t,n,r,a){e|=0,t|=0,n|=0,a|=0;var o,f=0,d=0,l=0;m=o=m-16|0;e:{if(r|=0){if(l=-1,(f=(f=r-1|0)-(d=f&r?(n>>>0)%(r>>>0)|0:n&f)|0)>>>0>=(-1^n)>>>0)break e;if(!((n=n+f|0)>>>0>=a>>>0))for(e&&(c[e>>2]=n+1),e=t+n|0,l=0,s[o+15|0]=0,n=0;a=t=e-n|0,d=u[0|t]&u[o+15|0],t=(n^f)-1>>>24|0,s[0|a]=d|128&t,s[o+15|0]=t|u[o+15|0],(0|r)!=(0|(n=n+1|0)););}else l=-1;return m=o+16|0,0|l}Le(),i()},Vb:function(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var a,i=0,o=0,s=0,f=0,d=0;if(c[12+(a=m-16|0)>>2]=0,r-1>>>0>>0){for(d=(o=n-1|0)+t|0,n=0,t=0;t&=255,f=(128^(s=u[d-i|0]))-1&c[a+12>>2]-1&t-1,c[a+12>>2]=c[a+12>>2]|f<<23>>31&i,t|=s,n|=f>>>8&1,(0|(i=i+1|0))!=(0|r););c[e>>2]=o-c[a+12>>2],e=(255&n)-1|0}else e=-1;return 0|e},Wb:function(){return 1312},Xb:function(){return 10},Yb:ot,Zb:it,_b:function(e){var t,n=0,r=0,a=0,i=0,o=0,s=0,d=0,p=0,b=0,h=0,y=0,v=0;m=t=m-16|0;e:{t:{n:{r:{a:{i:{o:{s:{c:{if((e|=0)>>>0<=244){if(3&(n=(s=c[8917])>>>(r=(d=e>>>0<11?16:e+11&-8)>>>3|0)|0)){n=35708+(e=(r=r+(1&(-1^n))|0)<<3)|0,a=c[e+35716>>2],(0|n)!=(0|(e=c[a+8>>2]))?(c[e+12>>2]=n,c[n+8>>2]=e):(y=35668,v=Be(-2,r)&s,c[y>>2]=v),e=a+8|0,n=r<<3,c[a+4>>2]=3|n,c[4+(n=n+a|0)>>2]=1|c[n+4>>2];break e}if((h=c[8919])>>>0>=d>>>0)break c;if(n){n=35708+(e=(a=He(0-(e=(0-(e=2<>2],(0|n)!=(0|(e=c[i+8>>2]))?(c[e+12>>2]=n,c[n+8>>2]=e):(s=Be(-2,a)&s,c[8917]=s),c[i+4>>2]=3|d,a=(e=a<<3)-d|0,c[4+(r=i+d|0)>>2]=1|a,c[e+i>>2]=a,h&&(n=35708+(-8&h)|0,o=c[8922],(e=1<<(h>>>3))&s?e=c[n+8>>2]:(c[8917]=e|s,e=n),c[n+8>>2]=o,c[e+12>>2]=o,c[o+12>>2]=n,c[o+8>>2]=e),e=i+8|0,c[8922]=r,c[8919]=a;break e}if(!(b=c[8918]))break c;for(r=c[35972+(He(0-b&b)<<2)>>2],o=(-8&c[r+4>>2])-d|0,n=r;(e=c[n+16>>2])||(e=c[n+20>>2]);)o=(a=(n=(-8&c[e+4>>2])-d|0)>>>0>>0)?n:o,r=a?e:r,n=e;if(p=c[r+24>>2],(0|(a=c[r+12>>2]))!=(0|r)){e=c[r+8>>2],c[e+12>>2]=a,c[a+8>>2]=e;break t}if(!(e=c[(n=r+20|0)>>2])){if(!(e=c[r+16>>2]))break s;n=r+16|0}for(;i=n,a=e,(e=c[(n=e+20|0)>>2])||(n=a+16|0,e=c[a+16>>2]););c[i>>2]=0;break t}if(d=-1,!(e>>>0>4294967231)&&(d=-8&(e=e+11|0),b=c[8918])){o=0-d|0,s=0,d>>>0<256||(s=31,d>>>0>16777215||(s=62+((d>>>38-(e=l(e>>>8|0))&1)-(e<<1)|0)|0));u:{f:{if(n=c[35972+(s<<2)>>2])for(e=0,r=d<<(31!=(0|s)?25-(s>>>1|0)|0:0);;){if(!((i=(-8&c[n+4>>2])-d|0)>>>0>=o>>>0||(a=n,o=i,i))){o=0,e=n;break f}if(i=c[n+20>>2],n=c[16+((r>>>29&4)+n|0)>>2],e=i?(0|i)==(0|n)?e:i:e,r<<=1,!n)break}else e=0;if(!(e|a)){if(a=0,!(e=(0-(e=2<>2]}if(!e)break u}for(;o=(r=(n=(-8&c[e+4>>2])-d|0)>>>0>>0)?n:o,a=r?e:a,e=(n=c[e+16>>2])||c[e+20>>2];);}if(!(!a|c[8919]-d>>>0<=o>>>0)){if(s=c[a+24>>2],(0|a)!=(0|(r=c[a+12>>2]))){e=c[a+8>>2],c[e+12>>2]=r,c[r+8>>2]=e;break n}if(!(e=c[(n=a+20|0)>>2])){if(!(e=c[a+16>>2]))break o;n=a+16|0}for(;i=n,r=e,(e=c[(n=e+20|0)>>2])||(n=r+16|0,e=c[r+16>>2]););c[i>>2]=0;break n}}}if((e=c[8919])>>>0>=d>>>0){a=c[8922],(n=e-d|0)>>>0>=16?(c[4+(r=a+d|0)>>2]=1|n,c[e+a>>2]=n,c[a+4>>2]=3|d):(c[a+4>>2]=3|e,c[4+(e=e+a|0)>>2]=1|c[e+4>>2],r=0,n=0),c[8919]=n,c[8922]=r,e=a+8|0;break e}if((p=c[8920])>>>0>d>>>0){n=p-d|0,c[8920]=n,e=(r=c[8923])+d|0,c[8923]=e,c[e+4>>2]=1|n,c[r+4>>2]=3|d,e=r+8|0;break e}if(e=0,b=d+47|0,c[9035]?r=c[9037]:(c[9038]=-1,c[9039]=-1,c[9036]=4096,c[9037]=4096,c[9035]=t+12&-16^1431655768,c[9040]=0,c[9028]=0,r=4096),(n=(i=b+r|0)&(o=0-r|0))>>>0<=d>>>0)break e;if((a=c[9027])&&a>>>0<(s=(r=c[9025])+n|0)>>>0|r>>>0>=s>>>0)break e;c:{if(!(4&u[36112])){u:{f:{d:{l:{if(a=c[8923])for(e=36116;;){if((r=c[e>>2])>>>0<=a>>>0&a>>>0>2]>>>0)break l;if(!(e=c[e+8>>2]))break}if(-1==(0|(r=we(0))))break u;if(s=n,(e=(a=c[9036])-1|0)&r&&(s=(n-r|0)+(e+r&0-a)|0),s>>>0<=d>>>0)break u;if((a=c[9027])&&a>>>0<(o=(e=c[9025])+s|0)>>>0|e>>>0>=o>>>0)break u;if((0|r)!=(0|(e=we(s))))break d;break c}if((0|(r=we(s=o&i-p)))==(c[e>>2]+c[e+4>>2]|0))break f;e=r}if(-1==(0|e))break u;if(d+48>>>0<=s>>>0){r=e;break c}if(-1==(0|we(r=(r=c[9037])+(b-s|0)&0-r)))break u;s=r+s|0,r=e;break c}if(-1!=(0|r))break c}c[9028]=4|c[9028]}if(-1==(0|(r=we(n)))|-1==(0|(e=we(0)))|e>>>0<=r>>>0)break r;if((s=e-r|0)>>>0<=d+40>>>0)break r}e=c[9025]+s|0,c[9025]=e,e>>>0>f[9026]&&(c[9026]=e);c:{if(i=c[8923]){for(e=36116;;){if(((a=c[e>>2])+(n=c[e+4>>2])|0)==(0|r))break c;if(!(e=c[e+8>>2]))break}break i}for((e=c[8921])>>>0<=r>>>0&&e||(c[8921]=r),e=0,c[9030]=s,c[9029]=r,c[8925]=-1,c[8926]=c[9035],c[9032]=0;n=35708+(a=e<<3)|0,c[a+35716>>2]=n,c[a+35720>>2]=n,32!=(0|(e=e+1|0)););n=(a=s-40|0)-(e=r+8&7?-8-r&7:0)|0,c[8920]=n,e=e+r|0,c[8923]=e,c[e+4>>2]=1|n,c[4+(r+a|0)>>2]=40,c[8924]=c[9039];break a}if(8&u[e+12|0]|a>>>0>i>>>0|r>>>0<=i>>>0)break i;c[e+4>>2]=n+s,r=(e=i+8&7?-8-i&7:0)+i|0,c[8923]=r,e=(n=c[8920]+s|0)-e|0,c[8920]=e,c[r+4>>2]=1|e,c[4+(n+i|0)>>2]=40,c[8924]=c[9039];break a}a=0;break t}r=0;break n}f[8921]>r>>>0&&(c[8921]=r),n=r+s|0,e=36116;i:{o:{s:{c:{u:{f:{for(;;){if((0|n)!=c[e>>2]){if(e=c[e+8>>2])continue;break f}break}if(!(8&u[e+12|0]))break u}for(e=36116;;){if((n=c[e>>2])>>>0<=i>>>0&&(o=n+c[e+4>>2]|0)>>>0>i>>>0)break c;e=c[e+8>>2]}}if(c[e>>2]=r,c[e+4>>2]=c[e+4>>2]+s,c[4+(b=(r+8&7?-8-r&7:0)+r|0)>>2]=3|d,e=(s=n+(n+8&7?-8-n&7:0)|0)-(p=d+b|0)|0,(0|i)==(0|s)){c[8923]=p,e=c[8920]+e|0,c[8920]=e,c[p+4>>2]=1|e;break o}if(c[8922]==(0|s)){c[8922]=p,e=c[8919]+e|0,c[8919]=e,c[p+4>>2]=1|e,c[e+p>>2]=e;break o}if(1==(3&(o=c[s+4>>2]))){i=-8&o;u:if(o>>>0<=255){if(a=c[s+8>>2],n=o>>>3|0,(0|(r=c[s+12>>2]))==(0|a)){y=35668,v=c[8917]&Be(-2,n),c[y>>2]=v;break u}c[a+12>>2]=r,c[r+8>>2]=a}else{if(d=c[s+24>>2],(0|s)==(0|(r=c[s+12>>2])))if((n=c[(o=s+20|0)>>2])||(n=c[(o=s+16|0)>>2])){for(;a=o,(n=c[(o=(r=n)+20|0)>>2])||(o=r+16|0,n=c[r+16>>2]););c[a>>2]=0}else r=0;else n=c[s+8>>2],c[n+12>>2]=r,c[r+8>>2]=n;if(d){a=c[s+28>>2];f:{if(c[(n=35972+(a<<2)|0)>>2]==(0|s)){if(c[n>>2]=r,r)break f;y=35672,v=c[8918]&Be(-2,a),c[y>>2]=v;break u}if(c[d+(c[d+16>>2]==(0|s)?16:20)>>2]=r,!r)break u}c[r+24>>2]=d,(n=c[s+16>>2])&&(c[r+16>>2]=n,c[n+24>>2]=r),(n=c[s+20>>2])&&(c[r+20>>2]=n,c[n+24>>2]=r)}}o=c[4+(s=i+s|0)>>2],e=e+i|0}if(c[s+4>>2]=-2&o,c[p+4>>2]=1|e,c[e+p>>2]=e,e>>>0<=255){n=35708+(-8&e)|0,(r=c[8917])&(e=1<<(e>>>3))?e=c[n+8>>2]:(c[8917]=e|r,e=n),c[n+8>>2]=p,c[e+12>>2]=p,c[p+12>>2]=n,c[p+8>>2]=e;break o}if(o=31,e>>>0<=16777215&&(o=62+((e>>>38-(n=l(e>>>8|0))&1)-(n<<1)|0)|0),c[p+28>>2]=o,c[p+16>>2]=0,c[p+20>>2]=0,n=35972+(o<<2)|0,(a=c[8918])&(r=1<>>1|0)|0:0),r=c[n>>2];;){if(n=r,(-8&c[r+4>>2])==(0|e))break s;if(r=o>>>29|0,o<<=1,!(r=c[16+(a=(4&r)+n|0)>>2]))break}c[a+16>>2]=p}else c[8918]=r|a,c[n>>2]=p;c[p+24>>2]=n,c[p+12>>2]=p,c[p+8>>2]=p;break o}for(n=(a=s-40|0)-(e=r+8&7?-8-r&7:0)|0,c[8920]=n,e=e+r|0,c[8923]=e,c[e+4>>2]=1|n,c[4+(r+a|0)>>2]=40,c[8924]=c[9039],c[(a=(e=(o+(o-39&7?39-o&7:0)|0)-47|0)>>>0>>0?i:e)+4>>2]=27,e=c[9032],c[a+16>>2]=c[9031],c[a+20>>2]=e,e=c[9030],c[a+8>>2]=c[9029],c[a+12>>2]=e,c[9031]=a+8,c[9030]=s,c[9029]=r,c[9032]=0,e=a+24|0;c[e+4>>2]=7,n=e+8|0,e=e+4|0,n>>>0>>0;);if((0|a)==(0|i))break a;if(c[a+4>>2]=-2&c[a+4>>2],o=a-i|0,c[i+4>>2]=1|o,c[a>>2]=o,o>>>0<=255){n=35708+(-8&o)|0,(r=c[8917])&(e=1<<(o>>>3))?e=c[n+8>>2]:(c[8917]=e|r,e=n),c[n+8>>2]=i,c[e+12>>2]=i,c[i+12>>2]=n,c[i+8>>2]=e;break a}if(e=31,o>>>0<=16777215&&(e=62+((o>>>38-(e=l(o>>>8|0))&1)-(e<<1)|0)|0),c[i+28>>2]=e,c[i+16>>2]=0,c[i+20>>2]=0,n=35972+(e<<2)|0,(a=c[8918])&(r=1<>>1|0)|0:0),a=c[n>>2];;){if((0|o)==(-8&c[(n=a)+4>>2]))break i;if(r=e>>>29|0,e<<=1,!(a=c[16+(r=(4&r)+n|0)>>2]))break}c[r+16>>2]=i}else c[8918]=r|a,c[n>>2]=i;c[i+24>>2]=n,c[i+12>>2]=i,c[i+8>>2]=i;break a}e=c[n+8>>2],c[e+12>>2]=p,c[n+8>>2]=p,c[p+24>>2]=0,c[p+12>>2]=n,c[p+8>>2]=e}e=b+8|0;break e}e=c[n+8>>2],c[e+12>>2]=i,c[n+8>>2]=i,c[i+24>>2]=0,c[i+12>>2]=n,c[i+8>>2]=e}if(!((e=c[8920])>>>0<=d>>>0)){n=e-d|0,c[8920]=n,e=(r=c[8923])+d|0,c[8923]=e,c[e+4>>2]=1|n,c[r+4>>2]=3|d,e=r+8|0;break e}}c[8916]=48,e=0;break e}n:if(s){n=c[a+28>>2];r:{if(c[(e=35972+(n<<2)|0)>>2]==(0|a)){if(c[e>>2]=r,r)break r;b=Be(-2,n)&b,c[8918]=b;break n}if(c[s+(c[s+16>>2]==(0|a)?16:20)>>2]=r,!r)break n}c[r+24>>2]=s,(e=c[a+16>>2])&&(c[r+16>>2]=e,c[e+24>>2]=r),(e=c[a+20>>2])&&(c[r+20>>2]=e,c[e+24>>2]=r)}n:if(o>>>0<=15)e=o+d|0,c[a+4>>2]=3|e,c[4+(e=e+a|0)>>2]=1|c[e+4>>2];else if(c[a+4>>2]=3|d,c[4+(i=a+d|0)>>2]=1|o,c[i+o>>2]=o,o>>>0<=255)n=35708+(-8&o)|0,(r=c[8917])&(e=1<<(o>>>3))?e=c[n+8>>2]:(c[8917]=e|r,e=n),c[n+8>>2]=i,c[e+12>>2]=i,c[i+12>>2]=n,c[i+8>>2]=e;else{e=31,o>>>0<=16777215&&(e=62+((o>>>38-(e=l(o>>>8|0))&1)-(e<<1)|0)|0),c[i+28>>2]=e,c[i+16>>2]=0,c[i+20>>2]=0,n=35972+(e<<2)|0;r:{if((r=1<>>1|0)|0:0),d=c[n>>2];;){if((-8&c[(n=d)+4>>2])==(0|o))break r;if(r=e>>>29|0,e<<=1,!(d=c[16+(r=(4&r)+n|0)>>2]))break}c[r+16>>2]=i}else c[8918]=r|b,c[n>>2]=i;c[i+24>>2]=n,c[i+12>>2]=i,c[i+8>>2]=i;break n}e=c[n+8>>2],c[e+12>>2]=i,c[n+8>>2]=i,c[i+24>>2]=0,c[i+12>>2]=n,c[i+8>>2]=e}e=a+8|0;break e}t:if(p){n=c[r+28>>2];n:{if(c[(e=35972+(n<<2)|0)>>2]==(0|r)){if(c[e>>2]=a,a)break n;y=35672,v=Be(-2,n)&b,c[y>>2]=v;break t}if(c[p+(c[p+16>>2]==(0|r)?16:20)>>2]=a,!a)break t}c[a+24>>2]=p,(e=c[r+16>>2])&&(c[a+16>>2]=e,c[e+24>>2]=a),(e=c[r+20>>2])&&(c[a+20>>2]=e,c[e+24>>2]=a)}o>>>0<=15?(e=o+d|0,c[r+4>>2]=3|e,c[4+(e=e+r|0)>>2]=1|c[e+4>>2]):(c[r+4>>2]=3|d,c[4+(a=r+d|0)>>2]=1|o,c[a+o>>2]=o,h&&(n=35708+(-8&h)|0,i=c[8922],(e=1<<(h>>>3))&s?e=c[n+8>>2]:(c[8917]=e|s,e=n),c[n+8>>2]=i,c[e+12>>2]=i,c[i+12>>2]=n,c[i+8>>2]=e),c[8922]=a,c[8919]=o),e=r+8|0}return m=t+16|0,0|e},$b:function(e){var t=0,n=0,r=0,a=0,i=0,o=0,s=0,u=0,d=0;e:if(e|=0){i=(r=e-8|0)+(e=-8&(t=c[e-4>>2]))|0;t:if(!(1&t)){if(!(3&t))break e;if((r=r-(t=c[r>>2])|0)>>>0>2])))return c[8919]=e,c[i+4>>2]=-2&t,c[r+4>>2]=1|e,void(c[e+r>>2]=e)}else{if(t>>>0<=255){if(a=c[r+8>>2],t=t>>>3|0,(0|(n=c[r+12>>2]))==(0|a)){u=35668,d=c[8917]&Be(-2,t),c[u>>2]=d;break t}c[a+12>>2]=n,c[n+8>>2]=a;break t}if(s=c[r+24>>2],(0|r)==(0|(t=c[r+12>>2])))if((n=c[(a=r+20|0)>>2])||(n=c[(a=r+16|0)>>2])){for(;o=a,(n=c[(a=(t=n)+20|0)>>2])||(a=t+16|0,n=c[t+16>>2]););c[o>>2]=0}else t=0;else n=c[r+8>>2],c[n+12>>2]=t,c[t+8>>2]=n;if(!s)break t;a=c[r+28>>2];n:{if(c[(n=35972+(a<<2)|0)>>2]==(0|r)){if(c[n>>2]=t,t)break n;u=35672,d=c[8918]&Be(-2,a),c[u>>2]=d;break t}if(c[s+(c[s+16>>2]==(0|r)?16:20)>>2]=t,!t)break t}if(c[t+24>>2]=s,(n=c[r+16>>2])&&(c[t+16>>2]=n,c[n+24>>2]=t),!(n=c[r+20>>2]))break t;c[t+20>>2]=n,c[n+24>>2]=t}}if(!(r>>>0>=i>>>0)&&1&(t=c[i+4>>2])){t:{if(!(2&t)){if(c[8923]==(0|i)){if(c[8923]=r,e=c[8920]+e|0,c[8920]=e,c[r+4>>2]=1|e,c[8922]!=(0|r))break e;return c[8919]=0,void(c[8922]=0)}if(c[8922]==(0|i))return c[8922]=r,e=c[8919]+e|0,c[8919]=e,c[r+4>>2]=1|e,void(c[e+r>>2]=e);e=(-8&t)+e|0;n:if(t>>>0<=255){if(a=c[i+8>>2],t=t>>>3|0,(0|(n=c[i+12>>2]))==(0|a)){u=35668,d=c[8917]&Be(-2,t),c[u>>2]=d;break n}c[a+12>>2]=n,c[n+8>>2]=a}else{if(s=c[i+24>>2],(0|i)==(0|(t=c[i+12>>2])))if((n=c[(a=i+20|0)>>2])||(n=c[(a=i+16|0)>>2])){for(;o=a,(n=c[(a=(t=n)+20|0)>>2])||(a=t+16|0,n=c[t+16>>2]););c[o>>2]=0}else t=0;else n=c[i+8>>2],c[n+12>>2]=t,c[t+8>>2]=n;if(s){a=c[i+28>>2];r:{if(c[(n=35972+(a<<2)|0)>>2]==(0|i)){if(c[n>>2]=t,t)break r;u=35672,d=c[8918]&Be(-2,a),c[u>>2]=d;break n}if(c[s+(c[s+16>>2]==(0|i)?16:20)>>2]=t,!t)break n}c[t+24>>2]=s,(n=c[i+16>>2])&&(c[t+16>>2]=n,c[n+24>>2]=t),(n=c[i+20>>2])&&(c[t+20>>2]=n,c[n+24>>2]=t)}}if(c[r+4>>2]=1|e,c[e+r>>2]=e,c[8922]!=(0|r))break t;return void(c[8919]=e)}c[i+4>>2]=-2&t,c[r+4>>2]=1|e,c[e+r>>2]=e}if(e>>>0<=255)return t=35708+(-8&e)|0,(n=c[8917])&(e=1<<(e>>>3))?e=c[t+8>>2]:(c[8917]=e|n,e=t),c[t+8>>2]=r,c[e+12>>2]=r,c[r+12>>2]=t,void(c[r+8>>2]=e);a=31,e>>>0<=16777215&&(a=62+((e>>>38-(t=l(e>>>8|0))&1)-(t<<1)|0)|0),c[r+28>>2]=a,c[r+16>>2]=0,c[r+20>>2]=0,o=35972+(a<<2)|0;t:{n:{if((n=c[8918])&(t=1<>>1|0)|0:0),t=c[o>>2];;){if(n=t,(-8&c[t+4>>2])==(0|e))break n;if(t=a>>>29|0,a<<=1,!(t=c[16+(o=n+(4&t)|0)>>2]))break}c[o+16>>2]=r,c[r+24>>2]=n}else c[8918]=t|n,c[o>>2]=r,c[r+24>>2]=o;c[r+12>>2]=r,c[r+8>>2]=r;break t}e=c[n+8>>2],c[e+12>>2]=r,c[n+8>>2]=r,c[r+24>>2]=0,c[r+12>>2]=n,c[r+8>>2]=e}e=c[8925]-1|0,c[8925]=e||-1}}},ac:ft}}(e)}(t)},instantiate:function(e,t){return{then:function(n){var r=new w.Module(e);n({instance:new w.Instance(r,t)})}}},RuntimeError:Error};v=[],"object"!=typeof w&&Z("no native wasm support detected");var x,_,k,S,I,E,C,T=!1,O="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function P(e,t){return e?function(e,t,n){for(var r=t+n,a=t;e[a]&&!(a>=r);)++a;if(a-t>16&&e.buffer&&O)return O.decode(e.subarray(t,a));for(var i="";t>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|s)}else i+=String.fromCharCode(o)}return i}(_,e,t):""}function M(){var e=A.buffer;f.HEAP8=x=new Int8Array(e),f.HEAP16=k=new Int16Array(e),f.HEAP32=S=new Int32Array(e),f.HEAPU8=_=new Uint8Array(e),f.HEAPU16=new Uint16Array(e),f.HEAPU32=I=new Uint32Array(e),f.HEAPF32=E=new Float32Array(e),f.HEAPF64=C=new Float64Array(e)}var B=f.INITIAL_MEMORY||16777216;B>=65536||Z("INITIAL_MEMORY should be larger than STACK_SIZE, was "+B+"! (STACK_SIZE=65536)"),A=f.wasmMemory?f.wasmMemory:new w.Memory({initial:B/65536,maximum:32768}),M(),B=A.buffer.byteLength;var R=[],N=[],D=[],j=0,U=null,L=null;function Z(e){throw f.onAbort&&f.onAbort(e),g(e="Aborted("+e+")"),T=!0,e+=". Build with -sASSERTIONS for more info.",new w.RuntimeError(e)}var F,H,z,q,Q="data:application/octet-stream;base64,";function K(e){return e.startsWith(Q)}function V(e){return e.startsWith("file://")}function J(e){try{if(e==F&&v)return new Uint8Array(v);var t=ee(e);if(t)return t;if(u)return u(e);throw"both async and sync fetching of the wasm failed"}catch(e){Z(e)}}K(F="<<< WASM_BINARY_FILE >>>")||(H=F,F=f.locateFile?f.locateFile(H,h):h+H);var G={34904:function(){return f.getRandomValue()},34940:function(){if(void 0===f.getRandomValue)try{var e="object"==typeof window?window:self,t=void 0!==e.crypto?e.crypto:e.msCrypto,r=function(){var e=new Uint32Array(1);return t.getRandomValues(e),e[0]>>>0};r(),f.getRandomValue=r}catch(e){try{var a=n(86963),i=function(){var e=a.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};i(),f.getRandomValue=i}catch(e){throw"No secure random number generator found"}}}};function W(e){for(;e.length>0;)e.shift()(f)}var Y=[];function X(e){var t=A.buffer;try{return A.grow(e-t.byteLength+65535>>>16),M(),1}catch(e){}}var $="function"==typeof atob?atob:function(e){var t,n,r,a,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=s.indexOf(e.charAt(u++))<<2|(a=s.indexOf(e.charAt(u++)))>>4,n=(15&a)<<4|(i=s.indexOf(e.charAt(u++)))>>2,r=(3&i)<<6|(o=s.indexOf(e.charAt(u++))),c+=String.fromCharCode(t),64!==i&&(c+=String.fromCharCode(n)),64!==o&&(c+=String.fromCharCode(r))}while(u>=2;n=_[e++];)t+=105!=n&t,Y.push(105==n?S[t]:C[t++>>1]),++t;return Y}(t,n);return G[e].apply(null,r)}(e,t,n)},e:function(e){var t,n=_.length,r=2147483648;if((e>>>=0)>r)return!1;for(var a=1;a<=4;a*=2){var i=n*(1+.2/a);if(i=Math.min(i,e+100663296),X(Math.min(r,(t=Math.max(e,i))+(65536-t%65536)%65536)))return!0}return!1},a:A};function re(){function e(){te||(te=!0,f.calledRun=!0,T||(W(N),f.onRuntimeInitialized&&f.onRuntimeInitialized(),function(){if(f.postRun)for("function"==typeof f.postRun&&(f.postRun=[f.postRun]);f.postRun.length;)e=f.postRun.shift(),D.unshift(e);var e;W(D)}()))}j>0||(function(){if(f.preRun)for("function"==typeof f.preRun&&(f.preRun=[f.preRun]);f.preRun.length;)e=f.preRun.shift(),R.unshift(e);var e;W(R)}(),j>0||(f.setStatus?(f.setStatus("Running..."),setTimeout((function(){setTimeout((function(){f.setStatus("")}),1),e()}),1)):e()))}if(function(){var e={a:ne};function t(e,t){var n,r=e.exports;f.asm=r,f.asm.ac,n=f.asm.f,N.unshift(n),function(e){if(j--,f.monitorRunDependencies&&f.monitorRunDependencies(j),0==j&&(null!==U&&(clearInterval(U),U=null),L)){var t=L;L=null,t()}}()}function n(e){t(e.instance)}function r(t){return function(){if(!v&&(l||p)){if("function"==typeof fetch&&!V(F))return fetch(F,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+F+"'";return e.arrayBuffer()})).catch((function(){return J(F)}));if(c)return new Promise((function(e,t){c(F,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return J(F)}))}().then((function(t){return w.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){g("failed to asynchronously prepare wasm: "+e),Z(e)}))}if(j++,f.monitorRunDependencies&&f.monitorRunDependencies(j),f.instantiateWasm)try{return f.instantiateWasm(e,t)}catch(e){return g("Module.instantiateWasm callback failed with error: "+e),!1}v||"function"!=typeof w.instantiateStreaming||K(F)||V(F)||b||"function"!=typeof fetch?r(n):fetch(F,{credentials:"same-origin"}).then((function(t){return w.instantiateStreaming(t,e).then(n,(function(e){return g("wasm streaming compile failed: "+e),g("falling back to ArrayBuffer instantiation"),r(n)}))}))}(),f._crypto_aead_chacha20poly1305_encrypt_detached=function(){return(f._crypto_aead_chacha20poly1305_encrypt_detached=f.asm.g).apply(null,arguments)},f._crypto_aead_chacha20poly1305_encrypt=function(){return(f._crypto_aead_chacha20poly1305_encrypt=f.asm.h).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_encrypt_detached=function(){return(f._crypto_aead_chacha20poly1305_ietf_encrypt_detached=f.asm.i).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_encrypt=function(){return(f._crypto_aead_chacha20poly1305_ietf_encrypt=f.asm.j).apply(null,arguments)},f._crypto_aead_chacha20poly1305_decrypt_detached=function(){return(f._crypto_aead_chacha20poly1305_decrypt_detached=f.asm.k).apply(null,arguments)},f._crypto_aead_chacha20poly1305_decrypt=function(){return(f._crypto_aead_chacha20poly1305_decrypt=f.asm.l).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_decrypt_detached=function(){return(f._crypto_aead_chacha20poly1305_ietf_decrypt_detached=f.asm.m).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_decrypt=function(){return(f._crypto_aead_chacha20poly1305_ietf_decrypt=f.asm.n).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_keybytes=function(){return(f._crypto_aead_chacha20poly1305_ietf_keybytes=f.asm.o).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_npubbytes=function(){return(f._crypto_aead_chacha20poly1305_ietf_npubbytes=f.asm.p).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_nsecbytes=function(){return(f._crypto_aead_chacha20poly1305_ietf_nsecbytes=f.asm.q).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_abytes=function(){return(f._crypto_aead_chacha20poly1305_ietf_abytes=f.asm.r).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_messagebytes_max=function(){return(f._crypto_aead_chacha20poly1305_ietf_messagebytes_max=f.asm.s).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_keygen=function(){return(f._crypto_aead_chacha20poly1305_ietf_keygen=f.asm.t).apply(null,arguments)},f._crypto_aead_chacha20poly1305_keybytes=function(){return(f._crypto_aead_chacha20poly1305_keybytes=f.asm.u).apply(null,arguments)},f._crypto_aead_chacha20poly1305_npubbytes=function(){return(f._crypto_aead_chacha20poly1305_npubbytes=f.asm.v).apply(null,arguments)},f._crypto_aead_chacha20poly1305_nsecbytes=function(){return(f._crypto_aead_chacha20poly1305_nsecbytes=f.asm.w).apply(null,arguments)},f._crypto_aead_chacha20poly1305_abytes=function(){return(f._crypto_aead_chacha20poly1305_abytes=f.asm.x).apply(null,arguments)},f._crypto_aead_chacha20poly1305_messagebytes_max=function(){return(f._crypto_aead_chacha20poly1305_messagebytes_max=f.asm.y).apply(null,arguments)},f._crypto_aead_chacha20poly1305_keygen=function(){return(f._crypto_aead_chacha20poly1305_keygen=f.asm.z).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=function(){return(f._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=f.asm.A).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_encrypt=function(){return(f._crypto_aead_xchacha20poly1305_ietf_encrypt=f.asm.B).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=function(){return(f._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=f.asm.C).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_decrypt=function(){return(f._crypto_aead_xchacha20poly1305_ietf_decrypt=f.asm.D).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_keybytes=function(){return(f._crypto_aead_xchacha20poly1305_ietf_keybytes=f.asm.E).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_npubbytes=function(){return(f._crypto_aead_xchacha20poly1305_ietf_npubbytes=f.asm.F).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_nsecbytes=function(){return(f._crypto_aead_xchacha20poly1305_ietf_nsecbytes=f.asm.G).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_abytes=function(){return(f._crypto_aead_xchacha20poly1305_ietf_abytes=f.asm.H).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=function(){return(f._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=f.asm.I).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_keygen=function(){return(f._crypto_aead_xchacha20poly1305_ietf_keygen=f.asm.J).apply(null,arguments)},f._crypto_auth_bytes=function(){return(f._crypto_auth_bytes=f.asm.K).apply(null,arguments)},f._crypto_auth_keybytes=function(){return(f._crypto_auth_keybytes=f.asm.L).apply(null,arguments)},f._crypto_auth=function(){return(f._crypto_auth=f.asm.M).apply(null,arguments)},f._crypto_auth_verify=function(){return(f._crypto_auth_verify=f.asm.N).apply(null,arguments)},f._crypto_auth_keygen=function(){return(f._crypto_auth_keygen=f.asm.O).apply(null,arguments)},f._crypto_box_seedbytes=function(){return(f._crypto_box_seedbytes=f.asm.P).apply(null,arguments)},f._crypto_box_publickeybytes=function(){return(f._crypto_box_publickeybytes=f.asm.Q).apply(null,arguments)},f._crypto_box_secretkeybytes=function(){return(f._crypto_box_secretkeybytes=f.asm.R).apply(null,arguments)},f._crypto_box_beforenmbytes=function(){return(f._crypto_box_beforenmbytes=f.asm.S).apply(null,arguments)},f._crypto_box_noncebytes=function(){return(f._crypto_box_noncebytes=f.asm.T).apply(null,arguments)},f._crypto_box_macbytes=function(){return(f._crypto_box_macbytes=f.asm.U).apply(null,arguments)},f._crypto_box_messagebytes_max=function(){return(f._crypto_box_messagebytes_max=f.asm.V).apply(null,arguments)},f._crypto_box_seed_keypair=function(){return(f._crypto_box_seed_keypair=f.asm.W).apply(null,arguments)},f._crypto_box_keypair=function(){return(f._crypto_box_keypair=f.asm.X).apply(null,arguments)},f._crypto_box_beforenm=function(){return(f._crypto_box_beforenm=f.asm.Y).apply(null,arguments)},f._crypto_box_detached_afternm=function(){return(f._crypto_box_detached_afternm=f.asm.Z).apply(null,arguments)},f._crypto_box_detached=function(){return(f._crypto_box_detached=f.asm._).apply(null,arguments)},f._crypto_box_easy_afternm=function(){return(f._crypto_box_easy_afternm=f.asm.$).apply(null,arguments)},f._crypto_box_easy=function(){return(f._crypto_box_easy=f.asm.aa).apply(null,arguments)},f._crypto_box_open_detached_afternm=function(){return(f._crypto_box_open_detached_afternm=f.asm.ba).apply(null,arguments)},f._crypto_box_open_detached=function(){return(f._crypto_box_open_detached=f.asm.ca).apply(null,arguments)},f._crypto_box_open_easy_afternm=function(){return(f._crypto_box_open_easy_afternm=f.asm.da).apply(null,arguments)},f._crypto_box_open_easy=function(){return(f._crypto_box_open_easy=f.asm.ea).apply(null,arguments)},f._crypto_box_seal=function(){return(f._crypto_box_seal=f.asm.fa).apply(null,arguments)},f._crypto_box_seal_open=function(){return(f._crypto_box_seal_open=f.asm.ga).apply(null,arguments)},f._crypto_box_sealbytes=function(){return(f._crypto_box_sealbytes=f.asm.ha).apply(null,arguments)},f._crypto_generichash_bytes_min=function(){return(f._crypto_generichash_bytes_min=f.asm.ia).apply(null,arguments)},f._crypto_generichash_bytes_max=function(){return(f._crypto_generichash_bytes_max=f.asm.ja).apply(null,arguments)},f._crypto_generichash_bytes=function(){return(f._crypto_generichash_bytes=f.asm.ka).apply(null,arguments)},f._crypto_generichash_keybytes_min=function(){return(f._crypto_generichash_keybytes_min=f.asm.la).apply(null,arguments)},f._crypto_generichash_keybytes_max=function(){return(f._crypto_generichash_keybytes_max=f.asm.ma).apply(null,arguments)},f._crypto_generichash_keybytes=function(){return(f._crypto_generichash_keybytes=f.asm.na).apply(null,arguments)},f._crypto_generichash_statebytes=function(){return(f._crypto_generichash_statebytes=f.asm.oa).apply(null,arguments)},f._crypto_generichash=function(){return(f._crypto_generichash=f.asm.pa).apply(null,arguments)},f._crypto_generichash_init=function(){return(f._crypto_generichash_init=f.asm.qa).apply(null,arguments)},f._crypto_generichash_update=function(){return(f._crypto_generichash_update=f.asm.ra).apply(null,arguments)},f._crypto_generichash_final=function(){return(f._crypto_generichash_final=f.asm.sa).apply(null,arguments)},f._crypto_generichash_keygen=function(){return(f._crypto_generichash_keygen=f.asm.ta).apply(null,arguments)},f._crypto_hash_bytes=function(){return(f._crypto_hash_bytes=f.asm.ua).apply(null,arguments)},f._crypto_hash=function(){return(f._crypto_hash=f.asm.va).apply(null,arguments)},f._crypto_kdf_bytes_min=function(){return(f._crypto_kdf_bytes_min=f.asm.wa).apply(null,arguments)},f._crypto_kdf_bytes_max=function(){return(f._crypto_kdf_bytes_max=f.asm.xa).apply(null,arguments)},f._crypto_kdf_contextbytes=function(){return(f._crypto_kdf_contextbytes=f.asm.ya).apply(null,arguments)},f._crypto_kdf_keybytes=function(){return(f._crypto_kdf_keybytes=f.asm.za).apply(null,arguments)},f._crypto_kdf_derive_from_key=function(){return(f._crypto_kdf_derive_from_key=f.asm.Aa).apply(null,arguments)},f._crypto_kdf_keygen=function(){return(f._crypto_kdf_keygen=f.asm.Ba).apply(null,arguments)},f._crypto_kx_seed_keypair=function(){return(f._crypto_kx_seed_keypair=f.asm.Ca).apply(null,arguments)},f._crypto_kx_keypair=function(){return(f._crypto_kx_keypair=f.asm.Da).apply(null,arguments)},f._crypto_kx_client_session_keys=function(){return(f._crypto_kx_client_session_keys=f.asm.Ea).apply(null,arguments)},f._crypto_kx_server_session_keys=function(){return(f._crypto_kx_server_session_keys=f.asm.Fa).apply(null,arguments)},f._crypto_kx_publickeybytes=function(){return(f._crypto_kx_publickeybytes=f.asm.Ga).apply(null,arguments)},f._crypto_kx_secretkeybytes=function(){return(f._crypto_kx_secretkeybytes=f.asm.Ha).apply(null,arguments)},f._crypto_kx_seedbytes=function(){return(f._crypto_kx_seedbytes=f.asm.Ia).apply(null,arguments)},f._crypto_kx_sessionkeybytes=function(){return(f._crypto_kx_sessionkeybytes=f.asm.Ja).apply(null,arguments)},f._crypto_scalarmult_base=function(){return(f._crypto_scalarmult_base=f.asm.Ka).apply(null,arguments)},f._crypto_scalarmult=function(){return(f._crypto_scalarmult=f.asm.La).apply(null,arguments)},f._crypto_scalarmult_bytes=function(){return(f._crypto_scalarmult_bytes=f.asm.Ma).apply(null,arguments)},f._crypto_scalarmult_scalarbytes=function(){return(f._crypto_scalarmult_scalarbytes=f.asm.Na).apply(null,arguments)},f._crypto_secretbox_keybytes=function(){return(f._crypto_secretbox_keybytes=f.asm.Oa).apply(null,arguments)},f._crypto_secretbox_noncebytes=function(){return(f._crypto_secretbox_noncebytes=f.asm.Pa).apply(null,arguments)},f._crypto_secretbox_macbytes=function(){return(f._crypto_secretbox_macbytes=f.asm.Qa).apply(null,arguments)},f._crypto_secretbox_messagebytes_max=function(){return(f._crypto_secretbox_messagebytes_max=f.asm.Ra).apply(null,arguments)},f._crypto_secretbox_keygen=function(){return(f._crypto_secretbox_keygen=f.asm.Sa).apply(null,arguments)},f._crypto_secretbox_detached=function(){return(f._crypto_secretbox_detached=f.asm.Ta).apply(null,arguments)},f._crypto_secretbox_easy=function(){return(f._crypto_secretbox_easy=f.asm.Ua).apply(null,arguments)},f._crypto_secretbox_open_detached=function(){return(f._crypto_secretbox_open_detached=f.asm.Va).apply(null,arguments)},f._crypto_secretbox_open_easy=function(){return(f._crypto_secretbox_open_easy=f.asm.Wa).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_keygen=function(){return(f._crypto_secretstream_xchacha20poly1305_keygen=f.asm.Xa).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_init_push=function(){return(f._crypto_secretstream_xchacha20poly1305_init_push=f.asm.Ya).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_init_pull=function(){return(f._crypto_secretstream_xchacha20poly1305_init_pull=f.asm.Za).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_rekey=function(){return(f._crypto_secretstream_xchacha20poly1305_rekey=f.asm._a).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_push=function(){return(f._crypto_secretstream_xchacha20poly1305_push=f.asm.$a).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_pull=function(){return(f._crypto_secretstream_xchacha20poly1305_pull=f.asm.ab).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_statebytes=function(){return(f._crypto_secretstream_xchacha20poly1305_statebytes=f.asm.bb).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_abytes=function(){return(f._crypto_secretstream_xchacha20poly1305_abytes=f.asm.cb).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_headerbytes=function(){return(f._crypto_secretstream_xchacha20poly1305_headerbytes=f.asm.db).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_keybytes=function(){return(f._crypto_secretstream_xchacha20poly1305_keybytes=f.asm.eb).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_messagebytes_max=function(){return(f._crypto_secretstream_xchacha20poly1305_messagebytes_max=f.asm.fb).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_tag_message=function(){return(f._crypto_secretstream_xchacha20poly1305_tag_message=f.asm.gb).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_tag_push=function(){return(f._crypto_secretstream_xchacha20poly1305_tag_push=f.asm.hb).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_tag_rekey=function(){return(f._crypto_secretstream_xchacha20poly1305_tag_rekey=f.asm.ib).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_tag_final=function(){return(f._crypto_secretstream_xchacha20poly1305_tag_final=f.asm.jb).apply(null,arguments)},f._crypto_shorthash_bytes=function(){return(f._crypto_shorthash_bytes=f.asm.kb).apply(null,arguments)},f._crypto_shorthash_keybytes=function(){return(f._crypto_shorthash_keybytes=f.asm.lb).apply(null,arguments)},f._crypto_shorthash=function(){return(f._crypto_shorthash=f.asm.mb).apply(null,arguments)},f._crypto_shorthash_keygen=function(){return(f._crypto_shorthash_keygen=f.asm.nb).apply(null,arguments)},f._crypto_sign_statebytes=function(){return(f._crypto_sign_statebytes=f.asm.ob).apply(null,arguments)},f._crypto_sign_bytes=function(){return(f._crypto_sign_bytes=f.asm.pb).apply(null,arguments)},f._crypto_sign_seedbytes=function(){return(f._crypto_sign_seedbytes=f.asm.qb).apply(null,arguments)},f._crypto_sign_publickeybytes=function(){return(f._crypto_sign_publickeybytes=f.asm.rb).apply(null,arguments)},f._crypto_sign_secretkeybytes=function(){return(f._crypto_sign_secretkeybytes=f.asm.sb).apply(null,arguments)},f._crypto_sign_messagebytes_max=function(){return(f._crypto_sign_messagebytes_max=f.asm.tb).apply(null,arguments)},f._crypto_sign_seed_keypair=function(){return(f._crypto_sign_seed_keypair=f.asm.ub).apply(null,arguments)},f._crypto_sign_keypair=function(){return(f._crypto_sign_keypair=f.asm.vb).apply(null,arguments)},f._crypto_sign=function(){return(f._crypto_sign=f.asm.wb).apply(null,arguments)},f._crypto_sign_open=function(){return(f._crypto_sign_open=f.asm.xb).apply(null,arguments)},f._crypto_sign_detached=function(){return(f._crypto_sign_detached=f.asm.yb).apply(null,arguments)},f._crypto_sign_verify_detached=function(){return(f._crypto_sign_verify_detached=f.asm.zb).apply(null,arguments)},f._crypto_sign_init=function(){return(f._crypto_sign_init=f.asm.Ab).apply(null,arguments)},f._crypto_sign_update=function(){return(f._crypto_sign_update=f.asm.Bb).apply(null,arguments)},f._crypto_sign_final_create=function(){return(f._crypto_sign_final_create=f.asm.Cb).apply(null,arguments)},f._crypto_sign_final_verify=function(){return(f._crypto_sign_final_verify=f.asm.Db).apply(null,arguments)},f._crypto_sign_ed25519_pk_to_curve25519=function(){return(f._crypto_sign_ed25519_pk_to_curve25519=f.asm.Eb).apply(null,arguments)},f._crypto_sign_ed25519_sk_to_curve25519=function(){return(f._crypto_sign_ed25519_sk_to_curve25519=f.asm.Fb).apply(null,arguments)},f._randombytes_random=function(){return(f._randombytes_random=f.asm.Gb).apply(null,arguments)},f._randombytes_stir=function(){return(f._randombytes_stir=f.asm.Hb).apply(null,arguments)},f._randombytes_uniform=function(){return(f._randombytes_uniform=f.asm.Ib).apply(null,arguments)},f._randombytes_buf=function(){return(f._randombytes_buf=f.asm.Jb).apply(null,arguments)},f._randombytes_buf_deterministic=function(){return(f._randombytes_buf_deterministic=f.asm.Kb).apply(null,arguments)},f._randombytes_seedbytes=function(){return(f._randombytes_seedbytes=f.asm.Lb).apply(null,arguments)},f._randombytes_close=function(){return(f._randombytes_close=f.asm.Mb).apply(null,arguments)},f._randombytes=function(){return(f._randombytes=f.asm.Nb).apply(null,arguments)},f._sodium_bin2hex=function(){return(f._sodium_bin2hex=f.asm.Ob).apply(null,arguments)},f._sodium_hex2bin=function(){return(f._sodium_hex2bin=f.asm.Pb).apply(null,arguments)},f._sodium_base64_encoded_len=function(){return(f._sodium_base64_encoded_len=f.asm.Qb).apply(null,arguments)},f._sodium_bin2base64=function(){return(f._sodium_bin2base64=f.asm.Rb).apply(null,arguments)},f._sodium_base642bin=function(){return(f._sodium_base642bin=f.asm.Sb).apply(null,arguments)},f._sodium_init=function(){return(f._sodium_init=f.asm.Tb).apply(null,arguments)},f._sodium_pad=function(){return(f._sodium_pad=f.asm.Ub).apply(null,arguments)},f._sodium_unpad=function(){return(f._sodium_unpad=f.asm.Vb).apply(null,arguments)},f._sodium_version_string=function(){return(f._sodium_version_string=f.asm.Wb).apply(null,arguments)},f._sodium_library_version_major=function(){return(f._sodium_library_version_major=f.asm.Xb).apply(null,arguments)},f._sodium_library_version_minor=function(){return(f._sodium_library_version_minor=f.asm.Yb).apply(null,arguments)},f._sodium_library_minimal=function(){return(f._sodium_library_minimal=f.asm.Zb).apply(null,arguments)},f._malloc=function(){return(f._malloc=f.asm._b).apply(null,arguments)},f._free=function(){return(f._free=f.asm.$b).apply(null,arguments)},f.UTF8ToString=P,f.setValue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"i8";switch(n.endsWith("*")&&(n="*"),n){case"i1":case"i8":x[e>>0]=t;break;case"i16":k[e>>1]=t;break;case"i32":S[e>>2]=t;break;case"i64":q=[t>>>0,(z=t,+Math.abs(z)>=1?z>0?(0|Math.min(+Math.floor(z/4294967296),4294967295))>>>0:~~+Math.ceil((z-+(~~z>>>0))/4294967296)>>>0:0)],S[e>>2]=q[0],S[e+4>>2]=q[1];break;case"float":E[e>>2]=t;break;case"double":C[e>>3]=t;break;case"*":I[e>>2]=t;break;default:Z("invalid type for setValue: "+n)}},f.getValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"i8";switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return x[e>>0];case"i16":return k[e>>1];case"i32":case"i64":return S[e>>2];case"float":return E[e>>2];case"double":return C[e>>3];case"*":return I[e>>2];default:Z("invalid type for getValue: "+t)}return null},L=function e(){te||re(),te||(L=e)},f.preInit)for("function"==typeof f.preInit&&(f.preInit=[f.preInit]);f.preInit.length>0;)f.preInit.pop()();re()}))};var a,c,u,f=void 0!==f?f:{},d=Object.assign({},f),l="object"==typeof window,p="function"==typeof importScripts,b="object"==typeof i&&"object"==typeof i.versions&&"string"==typeof i.versions.node,h="";if(b){var y=n(37727),m=n(41163);h=p?m.dirname(h)+"/":"//",a=function(e,t){var n=X(e);return n?t?n:n.toString():(e=Q(e)?new URL(e):m.normalize(e),y.readFileSync(e,t?void 0:"utf8"))},u=function(e){var t=a(e,!0);return t.buffer||(t=new Uint8Array(t)),t},c=function(e,t,n){var r=X(e);r&&t(r),e=Q(e)?new URL(e):m.normalize(e),y.readFile(e,(function(e,r){e?n(e):t(r.buffer)}))},i.argv.length>1&&i.argv[1].replace(/\\/g,"/"),i.argv.slice(2),e.exports=f,f.inspect=function(){return"[Emscripten Module object]"}}else(l||p)&&(p?h=self.location.href:"undefined"!=typeof document&&document.currentScript&&(h=document.currentScript.src),h=0!==h.indexOf("blob:")?h.substr(0,h.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText}catch(t){var n=X(e);if(n)return function(e){for(var t=[],n=0;n255&&(r&=255),t.push(String.fromCharCode(r))}return t.join("")}(n);throw t}},p&&(u=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}catch(t){var n=X(e);if(n)return n;throw t}}),c=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){if(200==r.status||0==r.status&&r.response)t(r.response);else{var a=X(e);a?t(a.buffer):n()}},r.onerror=n,r.send(null)});f.print;var v,g,A=f.printErr||void 0;Object.assign(f,d),d=null,f.arguments&&f.arguments,f.thisProgram&&f.thisProgram,f.quit&&f.quit,f.wasmBinary&&(v=f.wasmBinary),f.noExitRuntime,"object"!=typeof WebAssembly&&U("no native wasm support detected");var w,x,_,k,S,I,E,C=!1,T="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function O(e,t){return e?function(e,t,n){for(var r=t+n,a=t;e[a]&&!(a>=r);)++a;if(a-t>16&&e.buffer&&T)return T.decode(e.subarray(t,a));for(var i="";t>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|s)}else i+=String.fromCharCode(o)}return i}(x,e,t):""}function P(){var e=g.buffer;f.HEAP8=w=new Int8Array(e),f.HEAP16=_=new Int16Array(e),f.HEAP32=k=new Int32Array(e),f.HEAPU8=x=new Uint8Array(e),f.HEAPU16=new Uint16Array(e),f.HEAPU32=S=new Uint32Array(e),f.HEAPF32=I=new Float32Array(e),f.HEAPF64=E=new Float64Array(e)}var M=[],B=[],R=[],N=0,D=null,j=null;function U(e){throw f.onAbort&&f.onAbort(e),A(e="Aborted("+e+")"),C=!0,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var L,Z,F,H,z="data:application/octet-stream;base64,";function q(e){return e.startsWith(z)}function Q(e){return e.startsWith("file://")}function K(e){try{if(e==L&&v)return new Uint8Array(v);var t=X(e);if(t)return t;if(u)return u(e);throw"both async and sync fetching of the wasm failed"}catch(e){U(e)}}q(L="data:application/octet-stream;base64,AGFzbQEAAAABiwIfYAN/f34Bf2ACf38Bf2AAAX9gA39/fwF/YAJ/fwBgA39/fwBgBX9/f39/AX9gC39/f39/f39/f39/AX9gBn9/fn9/fwF/YAZ/f35/fn8Bf2AGf39/f39/AX9gAX8AYAR/fn9/AX9gBH9/f38Bf2ABfwF/YAd/f39/f39/AX9gAABgBn9/f35/fwF/YAR/f35/AX9gA39/fgBgCH9/fn9/fn9/AX9gCX9/f39+f35/fwF/YAh/f39/f39/fwF/YAx/f39/f39/f39/f38Bf2AEf39/fwBgBX9/fn9/AGAKf39/f39/f39/fwF/YAR/fn9/AGAGf39+f39/AGAEf39/fgBgBX9/fn9/AX8CHwUBYQFhAAMBYQFiABgBYQFjABABYQFkAAUBYQFlAA4DsAGuAQQFBAMQAgMABAUAAgUEBAsEBBsACwIcDgECAREDAw0DGAIFBAUEBAQBAh0RHhEDAgMLDgUTBBMDAQMLFBQVFQICAwUFAQQBEBkZCg8PCAgEEwQUFREDAgIBAQICAgICCwMDAgkMAQMLDgEAARISAgUOAgUNBgoKCgYaGgoKDQ0PCgYPCBYPChYGBgcHCQcXBwcHBwcXBxcMBgYDAQICCwIDDAINFgYBDw0DDQ4BBgQEAXAADgUGAQFAgIACBggBfwFB8JoGCweWBp4BAWYCAAFnAJsBAWgAmgEBaQCZAQFqAJgBAWsAlwEBbACWAQFtAJUBAW4AlAEBbwAKAXAAXwFxAC4BcgAQAXMAHgF0ABQBdQAKAXYANAF3AC4BeAAQAXkAHgF6ABQBQQCTAQFCAJIBAUMAkAEBRACPAQFFAAoBRgAmAUcALgFIABABSQAeAUoAFAFLAAoBTAAKAU0AjgEBTgCNAQFPABQBUAAKAVEACgFSAAoBUwAKAVQAJgFVABABVgAeAVcApQEBWAA9AVkAIQFaAFEBXwCMAQEkAIsBAmFhAIoBAmJhAFACY2EAiQECZGEATwJlYQCHAQJmYQCGAQJnYQCFAQJoYQCkAQJpYQAQAmphABoCa2EACgJsYQAQAm1hABoCbmEACgJvYQCnAQJwYQCEAQJxYQAjAnJhAIMBAnNhACICdGEAFAJ1YQAaAnZhAIIBAndhABACeGEAGgJ5YQA0AnphAAoCQWEAgQECQmEAFAJDYQCfAQJEYQA9AkVhAJ4BAkZhAJ0BAkdhAAoCSGEACgJJYQAKAkphAAoCS2EAoAECTGEAPAJNYQAKAk5hAAoCT2EACgJQYQAmAlFhABACUmEAHgJTYQAUAlRhAFECVWEAgAECVmEAUAJXYQBPAlhhABQCWWEAZgJaYQBlAl9hAGQCJGEAfwJhYgB+AmJiAGMCY2IAYgJkYgAmAmViAAoCZmIAYQJnYgAuAmhiAEUCaWIAYAJqYgBEAmtiADQCbGIAEAJtYgB9Am5iAKMBAm9iAFwCcGIAGgJxYgAKAnJiAAoCc2IAGgJ0YgBbAnViAFoCdmIAsQECd2IAfAJ4YgB7AnliAHoCemIAeQJBYgCwAQJCYgB4AkNiAK8BAkRiAK4BAkViAF4CRmIAXQJHYgB2AkhiAEwCSWIAdQJKYgAWAktiAHQCTGIACgJNYgBzAk5iAHcCT2IArQECUGIArAECUWIAqwECUmIAqgECU2IAqQECVGIAZwJVYgCyAQJWYgCoAQJXYgCiAQJYYgChAQJZYgBEAlpiAEUCX2IAbQIkYgBsAmFjAQAJFwEAQQELDaYBnAGRAYgBcnFwb25ramloCrPlBK4BywYCG34HfyAAIAEoAgwiHUEBdKwiByAdrCITfiABKAIQIiCsIgYgASgCCCIhQQF0rCILfnwgASgCFCIdQQF0rCIIIAEoAgQiIkEBdKwiAn58IAEoAhgiH6wiCSABKAIAIiNBAXSsIgV+fCABKAIgIh5BE2ysIgMgHqwiEH58IAEoAiQiHkEmbKwiBCABKAIcIgFBAXSsIhR+fCACIAZ+IAsgE358IB2sIhEgBX58IAMgFH58IAQgCX58IAIgB34gIawiDiAOfnwgBSAGfnwgAUEmbKwiDyABrCIVfnwgAyAfQQF0rH58IAQgCH58IhdCgICAEHwiGEIah3wiGUKAgIAIfCIaQhmHfCIKIApCgICAEHwiDEKAgIDgD4N9PgIYIAAgBSAOfiACICKsIg1+fCAfQRNsrCIKIAl+fCAIIA9+fCADICBBAXSsIhZ+fCAEIAd+fCAIIAp+IAUgDX58IAYgD358IAMgB358IAQgDn58IB1BJmysIBF+ICOsIg0gDX58IAogFn58IAcgD358IAMgC358IAIgBH58IgpCgICAEHwiDUIah3wiG0KAgIAIfCIcQhmHfCISIBJCgICAEHwiEkKAgIDgD4N9PgIIIAAgCyARfiAGIAd+fCACIAl+fCAFIBV+fCAEIBB+fCAMQhqHfCIMIAxCgICACHwiDEKAgIDwD4N9PgIcIAAgBSATfiACIA5+fCAJIA9+fCADIAh+fCAEIAZ+fCASQhqHfCIDIANCgICACHwiA0KAgIDwD4N9PgIMIAAgCSALfiAGIAZ+fCAHIAh+fCACIBR+fCAFIBB+fCAEIB6sIgZ+fCAMQhmHfCIEIARCgICAEHwiBEKAgIDgD4N9PgIgIAAgGSAaQoCAgPAPg30gFyAYQoCAgGCDfSADQhmHfCIDQoCAgBB8IghCGoh8PgIUIAAgAyAIQoCAgOAPg30+AhAgACAHIAl+IBEgFn58IAsgFX58IAIgEH58IAUgBn58IARCGod8IgIgAkKAgIAIfCICQoCAgPAPg30+AiQgACAbIBxCgICA8A+DfSAKIA1CgICAYIN9IAJCGYdCE358IgJCgICAEHwiBUIaiHw+AgQgACACIAVCgICA4A+DfT4CAAudCQInfgx/IAAgAigCBCIqrCILIAEoAhQiK0EBdKwiFH4gAjQCACIDIAE0AhgiBn58IAIoAggiLKwiDSABNAIQIgd+fCACKAIMIi2sIhAgASgCDCIuQQF0rCIVfnwgAigCECIvrCIRIAE0AggiCH58IAIoAhQiMKwiFiABKAIEIjFBAXSsIhd+fCACKAIYIjKsIiAgATQCACIJfnwgAigCHCIzQRNsrCIMIAEoAiQiNEEBdKwiGH58IAIoAiAiNUETbKwiBCABNAIgIgp+fCACKAIkIgJBE2ysIgUgASgCHCIBQQF0rCIZfnwgByALfiADICusIhp+fCANIC6sIht+fCAIIBB+fCARIDGsIhx+fCAJIBZ+fCAyQRNsrCIOIDSsIh1+fCAKIAx+fCAEIAGsIh5+fCAFIAZ+fCALIBV+IAMgB358IAggDX58IBAgF358IAkgEX58IDBBE2ysIh8gGH58IAogDn58IAwgGX58IAQgBn58IAUgFH58IiJCgICAEHwiI0Iah3wiJEKAgIAIfCIlQhmHfCISIBJCgICAEHwiE0KAgIDgD4N9PgIYIAAgCyAXfiADIAh+fCAJIA1+fCAtQRNsrCIPIBh+fCAKIC9BE2ysIhJ+fCAZIB9+fCAGIA5+fCAMIBR+fCAEIAd+fCAFIBV+fCAJIAt+IAMgHH58ICxBE2ysIiEgHX58IAogD358IBIgHn58IAYgH358IA4gGn58IAcgDH58IAQgG358IAUgCH58ICpBE2ysIBh+IAMgCX58IAogIX58IA8gGX58IAYgEn58IBQgH358IAcgDn58IAwgFX58IAQgCH58IAUgF358IiFCgICAEHwiJkIah3wiJ0KAgIAIfCIoQhmHfCIPIA9CgICAEHwiKUKAgIDgD4N9PgIIIAAgBiALfiADIB5+fCANIBp+fCAHIBB+fCARIBt+fCAIIBZ+fCAcICB+fCAJIDOsIg9+fCAEIB1+fCAFIAp+fCATQhqHfCITIBNCgICACHwiE0KAgIDwD4N9PgIcIAAgCCALfiADIBt+fCANIBx+fCAJIBB+fCASIB1+fCAKIB9+fCAOIB5+fCAGIAx+fCAEIBp+fCAFIAd+fCApQhqHfCIEIARCgICACHwiBEKAgIDwD4N9PgIMIAAgCyAZfiADIAp+fCAGIA1+fCAQIBR+fCAHIBF+fCAVIBZ+fCAIICB+fCAPIBd+fCAJIDWsIgx+fCAFIBh+fCATQhmHfCIFIAVCgICAEHwiBUKAgIDgD4N9PgIgIAAgJCAlQoCAgPAPg30gIiAjQoCAgGCDfSAEQhmHfCIEQoCAgBB8Ig5CGoh8PgIUIAAgBCAOQoCAgOAPg30+AhAgACAKIAt+IAMgHX58IA0gHn58IAYgEH58IBEgGn58IAcgFn58IBsgIH58IAggD358IAwgHH58IAkgAqx+fCAFQhqHfCIDIANCgICACHwiA0KAgIDwD4N9PgIkIAAgJyAoQoCAgPAPg30gISAmQoCAgGCDfSADQhmHQhN+fCIDQoCAgBB8IgZCGoh8PgIEIAAgAyAGQoCAgOAPg30+AgALCwAgAEEAIAEQCBoL8gICAn8BfgJAIAJFDQAgACABOgAAIAAgAmoiA0EBayABOgAAIAJBA0kNACAAIAE6AAIgACABOgABIANBA2sgAToAACADQQJrIAE6AAAgAkEHSQ0AIAAgAToAAyADQQRrIAE6AAAgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBBGsgATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQQhrIAE2AgAgAkEMayABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkEQayABNgIAIAJBFGsgATYCACACQRhrIAE2AgAgAkEcayABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa1CgYCAgBB+IQUgAyAEaiEBA0AgASAFNwMYIAEgBTcDECABIAU3AwggASAFNwMAIAFBIGohASACQSBrIgJBH0sNAAsLIAALGAEBf0HomgIoAgAiAARAIAAREAALEAIACwQAQSALgAQBA38gAkGABE8EQCAAIAEgAhADIAAPCyAAIAJqIQMCQCAAIAFzQQNxRQRAAkAgAEEDcUUEQCAAIQIMAQsgAkUEQCAAIQIMAQsgACECA0AgAiABLQAAOgAAIAFBAWohASACQQFqIgJBA3FFDQEgAiADSQ0ACwsCQCADQXxxIgRBwABJDQAgAiAEQUBqIgVLDQADQCACIAEoAgA2AgAgAiABKAIENgIEIAIgASgCCDYCCCACIAEoAgw2AgwgAiABKAIQNgIQIAIgASgCFDYCFCACIAEoAhg2AhggAiABKAIcNgIcIAIgASgCIDYCICACIAEoAiQ2AiQgAiABKAIoNgIoIAIgASgCLDYCLCACIAEoAjA2AjAgAiABKAI0NgI0IAIgASgCODYCOCACIAEoAjw2AjwgAUFAayEBIAJBQGsiAiAFTQ0ACwsgAiAETw0BA0AgAiABKAIANgIAIAFBBGohASACQQRqIgIgBEkNAAsMAQsgA0EESQRAIAAhAgwBCyAAIANBBGsiBEsEQCAAIQIMAQsgACECA0AgAiABLQAAOgAAIAIgAS0AAToAASACIAEtAAI6AAIgAiABLQADOgADIAFBBGohASACQQRqIgIgBE0NAAsLIAIgA0kEQANAIAIgAS0AADoAACABQQFqIQEgAkEBaiICIANHDQALCyAAC6EGAgd+BH8jAEHABWsiDCQAAkAgAlANACAAIAApA0giAyACQgOGfCIENwNIIABBQGsiCiAKKQMAIAMgBFatfCACQj2IfDcDACACQoABIANCA4hC/wCDIgR9IghaBEBCACEDIARC/wCFQgNaBEAgCEL8AYMhByAAQdAAaiEKA0AgCiADIAR8p2ogASADp2otAAA6AAAgCiADQgGEIgkgBHynaiABIAmnai0AADoAACAKIANCAoQiCSAEfKdqIAEgCadqLQAAOgAAIAogA0IDhCIJIAR8p2ogASAJp2otAAA6AAAgA0IEfCEDIAVCBHwiBSAHUg0ACwsgCEIDgyIFQgBSBEADQCAAIAMgBHynaiABIAOnai0AADoAUCADQgF8IQMgBkIBfCIGIAVSDQALCyAAIABB0ABqIAwgDEGABWoiChAlIAEgCKdqIQEgAiAIfSICQv8AVgRAA0AgACABIAwgChAlIAFBgAFqIQEgAkKAAX0iAkL/AFYNAAsLAkAgAlANACACQgODIQRCACEGQgAhAyACQgRaBEAgAkJ8gyEFIABB0ABqIQpCACECA0AgCiADpyILaiABIAtqLQAAOgAAIAogC0EBciINaiABIA1qLQAAOgAAIAogC0ECciINaiABIA1qLQAAOgAAIAogC0EDciILaiABIAtqLQAAOgAAIANCBHwhAyACQgR8IgIgBVINAAsLIARQDQADQCAAIAOnIgpqIAEgCmotAAA6AFAgA0IBfCEDIAZCAXwiBiAEUg0ACwsgDEHABRAHDAELQgAhAyACQgRaBEAgAkJ8gyEIIABB0ABqIQoDQCAKIAMgBHynaiABIAOnai0AADoAACAKIANCAYQiByAEfKdqIAEgB6dqLQAAOgAAIAogA0IChCIHIAR8p2ogASAHp2otAAA6AAAgCiADQgOEIgcgBHynaiABIAenai0AADoAACADQgR8IQMgBUIEfCIFIAhSDQALCyACQgODIgJQDQADQCAAIAMgBHynaiABIAOnai0AADoAUCADQgF8IQMgBkIBfCIGIAJSDQALCyAMQcAFaiQAQQALsQQCE38EfiABKAIoIQIgASgCBCEDIAEoAiwhBCABKAIIIQUgASgCMCEGIAEoAgwhByABKAI0IQggASgCECEJIAEoAjghCiABKAIUIQsgASgCPCEMIAEoAhghDSABQUBrIg4oAgAhDyABKAIcIRAgASgCRCERIAEoAiAhEiABKAJIIRMgASgCACEUIAAgASgCJCABKAJMajYCJCAAIBIgE2o2AiAgACAQIBFqNgIcIAAgDSAPajYCGCAAIAsgDGo2AhQgACAJIApqNgIQIAAgByAIajYCDCAAIAUgBmo2AgggACADIARqNgIEIAAgAiAUajYCACABKAIoIQIgASgCBCEDIAEoAiwhBCABKAIIIQUgASgCMCEGIAEoAgwhByABKAI0IQggASgCECEJIAEoAjghCiABKAIUIQsgASgCPCEMIAEoAhghDSAOKAIAIQ4gASgCHCEPIAEoAkQhECABKAIgIREgASgCSCESIAEoAgAhEyAAIAEoAkwgASgCJGs2AkwgACASIBFrNgJIIAAgECAPazYCRCAAQUBrIA4gDWs2AgAgACAMIAtrNgI8IAAgCiAJazYCOCAAIAggB2s2AjQgACAGIAVrNgIwIAAgBCADazYCLCAAIAIgE2s2AiggASkCUCEVIAEpAlghFiABKQJgIRcgASkCaCEYIAAgASkCcDcCcCAAIBg3AmggACAXNwJgIAAgFjcCWCAAIBU3AlAgAEH4AGogAUH4AGpBoAsQBgvwCQEefyABKAIoIQMgASgCBCEEIAEoAiwhBSABKAIIIQYgASgCMCEHIAEoAgwhCCABKAI0IQkgASgCECEKIAEoAjghCyABKAIUIQwgASgCPCENIAEoAhghDiABQUBrIg8oAgAhECABKAIcIREgASgCRCESIAEoAiAhEyABKAJIIRQgASgCACEVIAAgASgCJCABKAJMajYCJCAAIBMgFGo2AiAgACARIBJqNgIcIAAgDiAQajYCGCAAIAwgDWo2AhQgACAKIAtqNgIQIAAgCCAJajYCDCAAIAYgB2o2AgggACAEIAVqNgIEIAAgAyAVajYCACABKAIoIQUgASgCBCEDIAEoAiwhBiABKAIIIQcgASgCMCEIIAEoAgwhCSABKAI0IQogASgCECELIAEoAjghDCABKAIUIQ0gASgCPCEOIAEoAhghECAPKAIAIQ8gASgCHCEEIAEoAkQhESABKAIgIRIgASgCSCETIAEoAgAhFCAAIAEoAkwgASgCJGs2AkwgACATIBJrNgJIIAAgESAEazYCRCAAQUBrIgQgDyAQazYCACAAIA4gDWs2AjwgACAMIAtrNgI4IAAgCiAJazYCNCAAIAggB2s2AjAgACAGIANrNgIsIABBKGoiAyAFIBRrNgIAIABB0ABqIAAgAhAGIAMgAyACQShqEAYgAEH4AGogAkH4AGogAUH4AGoQBiAAIAFB0ABqIAJB0ABqEAYgACgCBCEVIAAoAgghFiAAKAIMIRcgACgCECEYIAAoAhQhGSAAKAIYIRogACgCHCEbIAAoAiAhHCAAKAIkIR0gAygCACEBIAAoAlAhAiAAKAIsIQUgACgCVCEGIAAoAjAhByAAKAJYIQggACgCNCEJIAAoAlwhCiAAKAI4IQsgACgCYCEMIAAoAjwhDSAAKAJkIQ4gBCgCACEPIAAoAmghECAAKAJEIREgACgCbCESIAAoAkghEyAAKAJwIRQgACgCACEeIAAgACgCTCIfIAAoAnQiIGo2AkwgACATIBRqNgJIIAAgESASajYCRCAEIA8gEGo2AgAgACANIA5qNgI8IAAgCyAMajYCOCAAIAkgCmo2AjQgACAHIAhqNgIwIAAgBSAGajYCLCADIAEgAmo2AgAgACAgIB9rNgIkIAAgFCATazYCICAAIBIgEWs2AhwgACAQIA9rNgIYIAAgDiANazYCFCAAIAwgC2s2AhAgACAKIAlrNgIMIAAgCCAHazYCCCAAIAYgBWs2AgQgACACIAFrNgIAIAAgHUEBdCIBIAAoApwBIgJrNgKcASAAIBxBAXQiAyAAKAKYASIEazYCmAEgACAbQQF0IgUgACgClAEiBms2ApQBIAAgGkEBdCIHIAAoApABIghrNgKQASAAIBlBAXQiCSAAKAKMASIKazYCjAEgACAYQQF0IgsgACgCiAEiDGs2AogBIAAgF0EBdCINIAAoAoQBIg5rNgKEASAAIBZBAXQiDyAAKAKAASIQazYCgAEgACAVQQF0IhEgACgCfCISazYCfCAAIB5BAXQiEyAAKAJ4IhRrNgJ4IAAgAyAEajYCcCAAIAUgBmo2AmwgACAHIAhqNgJoIAAgCSAKajYCZCAAIAsgDGo2AmAgACANIA5qNgJcIAAgDyAQajYCWCAAIBEgEmo2AlQgACATIBRqNgJQIAAgASACajYCdAvUAQIFfwJ+An8gAkIAUgRAIABB4AFqIQcgAEHgAGohAyAAKADgAiEEA0AgAyAEaiEGQYACIARrIgWtIgggAloEQCAGIAEgAqciARALGiAAIAAoAOACIAFqNgDgAkEADAMLIAYgASAFEAsaIAAgACgA4AIgBWo2AOACIAAgACkAQCIJQoABfDcAQCAAIAApAEggCUL/flatfDcASCAAIAMQKCADIAdBgAEQCxogACAAKADgAkGAAWsiBDYA4AIgASAFaiEBIAIgCH0iAkIAUg0ACwtBAAsLBABBEAuDBwEUfyABKAIEIQwgACgCBCEDIAEoAgghDSAAKAIIIQQgASgCDCEOIAAoAgwhBSABKAIQIQ8gACgCECEGIAEoAhQhECAAKAIUIQcgASgCGCERIAAoAhghCCABKAIcIRIgACgCHCEJIAEoAiAhEyAAKAIgIQogASgCJCEUIAAoAiQhCyAAQQAgAmsiAiAAKAIAIhUgASgCAHNxIBVzNgIAIAAgCyALIBRzIAJxczYCJCAAIAogCiATcyACcXM2AiAgACAJIAkgEnMgAnFzNgIcIAAgCCAIIBFzIAJxczYCGCAAIAcgByAQcyACcXM2AhQgACAGIAYgD3MgAnFzNgIQIAAgBSAFIA5zIAJxczYCDCAAIAQgBCANcyACcXM2AgggACADIAMgDHMgAnFzNgIEIAAoAighAyABKAIoIQwgACgCLCEEIAEoAiwhDSAAKAIwIQUgASgCMCEOIAAoAjQhBiABKAI0IQ8gACgCOCEHIAEoAjghECAAKAI8IQggASgCPCERIABBQGsiEigCACEJIAFBQGsoAgAhEyAAKAJEIQogASgCRCEUIAAoAkghCyABKAJIIRUgACAAKAJMIhYgASgCTHMgAnEgFnM2AkwgACALIAsgFXMgAnFzNgJIIAAgCiAKIBRzIAJxczYCRCASIAkgCSATcyACcXM2AgAgACAIIAggEXMgAnFzNgI8IAAgByAHIBBzIAJxczYCOCAAIAYgBiAPcyACcXM2AjQgACAFIAUgDnMgAnFzNgIwIAAgBCAEIA1zIAJxczYCLCAAIAMgAyAMcyACcXM2AiggACgCUCEDIAEoAlAhDCAAKAJUIQQgASgCVCENIAAoAlghBSABKAJYIQ4gACgCXCEGIAEoAlwhDyAAKAJgIQcgASgCYCEQIAAoAmQhCCABKAJkIREgACgCaCEJIAEoAmghEiAAKAJsIQogASgCbCETIAAoAnAhCyABKAJwIRQgACAAKAJ0IhUgASgCdHMgAnEgFXM2AnQgACALIAsgFHMgAnFzNgJwIAAgCiAKIBNzIAJxczYCbCAAIAkgCSAScyACcXM2AmggACAIIAggEXMgAnFzNgJkIAAgByAHIBBzIAJxczYCYCAAIAYgBiAPcyACcXM2AlwgACAFIAUgDnMgAnFzNgJYIAAgBCAEIA1zIAJxczYCVCAAIAMgAyAMcyACcXM2AlAL6AQBCX8gACABKAIgIgUgASgCHCIGIAEoAhgiByABKAIUIgggASgCECIJIAEoAgwiCiABKAIIIgQgASgCBCIDIAEoAgAiAiABKAIkIgFBE2xBgICACGpBGXZqQRp1akEZdWpBGnVqQRl1akEadWpBGXVqQRp1akEZdWpBGnUgAWpBGXVBE2wgAmoiAjoAACAAIAJBEHY6AAIgACACQQh2OgABIAAgAyACQRp1aiIDQQ52OgAFIAAgA0EGdjoABCAAIAJBGHZBA3EgA0ECdHI6AAMgACAEIANBGXVqIgJBDXY6AAggACACQQV2OgAHIAAgAkEDdCADQYCAgA5xQRZ2cjoABiAAIAogAkEadWoiBEELdjoACyAAIARBA3Y6AAogACAEQQV0IAJBgICAH3FBFXZyOgAJIAAgCSAEQRl1aiICQRJ2OgAPIAAgAkEKdjoADiAAIAJBAnY6AA0gACAIIAJBGnVqIgM6ABAgACACQQZ0IARBgIDgD3FBE3ZyOgAMIAAgA0EQdjoAEiAAIANBCHY6ABEgACAHIANBGXVqIgJBD3Y6ABUgACACQQd2OgAUIAAgA0EYdkEBcSACQQF0cjoAEyAAIAYgAkEadWoiA0ENdjoAGCAAIANBBXY6ABcgACADQQN0IAJBgICAHHFBF3ZyOgAWIAAgBSADQRl1aiICQQx2OgAbIAAgAkEEdjoAGiAAIAJBBHQgA0GAgIAPcUEVdnI6ABkgACABIAJBGnVqIgFBCnY6AB4gACABQQJ2OgAdIAAgAUGAgPAPcUESdjoAHyAAIAFBBnQgAkGAgMAfcUEUdnI6ABwLvQgCAX4DfyMAQcAFayIDJAAgACgCSEEDdkH/AHEiBCAAakHQAGohBQJAIARB7wBNBEAgBUHQjgJB8AAgBGsQCxoMAQsgBUHQjgJBgAEgBGsQCxogACAAQdAAaiIEIAMgA0GABWoQJSAEQQBB8AAQCBoLIAAgACkDQCICQjiGIAJCgP4Dg0IohoQgAkKAgPwHg0IYhiACQoCAgPgPg0IIhoSEIAJCCIhCgICA+A+DIAJCGIhCgID8B4OEIAJCKIhCgP4DgyACQjiIhISENwDAASAAIAApA0giAkI4hiACQoD+A4NCKIaEIAJCgID8B4NCGIYgAkKAgID4D4NCCIaEhCACQgiIQoCAgPgPgyACQhiIQoCA/AeDhCACQiiIQoD+A4MgAkI4iISEhDcAyAEgACAAQdAAaiADIANBgAVqECUgASAAKQMAIgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3AAAgASAAKQMIIgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3AAggASAAKQMQIgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3ABAgASAAKQMYIgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3ABggASAAKQMgIgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3ACAgASAAKQMoIgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3ACggASAAKQMwIgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3ADAgASAAKQM4IgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3ADggA0HABRAHIABB0AEQByADQcAFaiQACwgAIABBIBAWC+MOAhx+IH8jAEEwayIeJAAgACABEAUgAEHQAGogAUEoahAFIAAgASgCXCIiQQF0rCIIIAEoAlQiI0EBdKwiAn4gASgCWCIkrCINIA1+fCABKAJgIiWsIgcgASgCUCImQQF0rCIFfnwgASgCbCIfQSZsrCIOIB+sIhF+fCABKAJwIidBE2ysIgMgASgCaCIgQQF0rH58IAEoAnQiKEEmbKwiBCABKAJkIiFBAXSsIgl+fEIBhiIVQoCAgBB8IhZCGocgAiAHfiAkQQF0rCILICKsIhJ+fCAhrCIPIAV+fCADIB9BAXSsIhN+fCAEICCsIgp+fEIBhnwiF0KAgIAIfCIYQhmHIAggEn4gByALfnwgAiAJfnwgBSAKfnwgAyAnrCIQfnwgBCATfnxCAYZ8IgYgBkKAgIAQfCIMQoCAgOAPg30+ApABIAAgIUEmbKwgD34gJqwiBiAGfnwgIEETbKwiBiAlQQF0rCIUfnwgCCAOfnwgAyALfnwgAiAEfnxCAYYiGUKAgIAQfCIaQhqHIAYgCX4gBSAjrCIbfnwgByAOfnwgAyAIfnwgBCANfnxCAYZ8IhxCgICACHwiHUIZhyAFIA1+IAIgG358IAYgCn58IAkgDn58IAMgFH58IAQgCH58QgGGfCIGIAZCgICAEHwiBkKAgIDgD4N9PgKAASAAIAsgD34gByAIfnwgAiAKfnwgBSARfnwgBCAQfnxCAYYgDEIah3wiDCAMQoCAgAh8IgxCgICA8A+DfT4ClAEgACAFIBJ+IAIgDX58IAogDn58IAMgCX58IAQgB358QgGGIAZCGod8IgMgA0KAgIAIfCIDQoCAgPAPg30+AoQBIAAgCiALfiAHIAd+fCAIIAl+fCACIBN+fCAFIBB+fCAEICisIgd+fEIBhiAMQhmHfCIEIARCgICAEHwiBEKAgIDgD4N9PgKYASAAIBcgGEKAgIDwD4N9IBUgFkKAgIBgg30gA0IZh3wiA0KAgIAQfCIJQhqIfD4CjAEgACADIAlCgICA4A+DfT4CiAEgACAIIAp+IA8gFH58IAsgEX58IAIgEH58IAUgB358QgGGIARCGod8IgIgAkKAgIAIfCICQoCAgPAPg30+ApwBIAAgHCAdQoCAgPAPg30gGSAaQoCAgGCDfSACQhmHQhN+fCICQoCAgBB8IgVCGoh8PgJ8IAAgAiAFQoCAgOAPg30+AnggASgCKCEfIAEoAiwhICABKAIEISEgASgCMCEiIAEoAgghIyABKAI0ISQgASgCDCElIAEoAjghJiABKAIQIScgASgCPCEoIAEoAhQhKSABQUBrKAIAISogASgCGCErIAEoAkQhLCABKAIcIS0gASgCSCEuIAEoAiAhLyABKAIAITAgACABKAJMIAEoAiRqNgJMIAAgLiAvajYCSCAAICwgLWo2AkQgAEFAayIyICogK2o2AgAgACAoIClqNgI8IAAgJiAnajYCOCAAICQgJWo2AjQgACAiICNqNgIwIAAgICAhajYCLCAAQShqIgEgHyAwajYCACAeIAEQBSAAKAJQIR8gACgCBCEgIAAoAlQhISAAKAIIISIgACgCWCEjIAAoAgwhJCAAKAJcISUgACgCECEmIAAoAmAhJyAAKAIUISggACgCZCEpIAAoAhghKiAAKAJoISsgACgCHCEsIAAoAmwhLSAAKAIgIS4gACgCcCEvIAAoAgAhMCAAIAAoAnQiMSAAKAIkIjNrIjQ2AnQgACAvIC5rIjU2AnAgACAtICxrIjY2AmwgACArICprIjc2AmggACApIChrIjg2AmQgACAnICZrIjk2AmAgACAlICRrIjo2AlwgACAjICJrIjs2AlggACAhICBrIjw2AlQgACAfIDBrIj02AlAgACAxIDNqIjE2AkwgACAuIC9qIi42AkggACAsIC1qIiw2AkQgMiAqICtqIio2AgAgACAoIClqIig2AjwgACAmICdqIiY2AjggACAkICVqIiQ2AjQgACAiICNqIiI2AjAgACAgICFqIiA2AiwgASAfIDBqIgE2AgAgHigCACEfIB4oAgQhISAeKAIIISMgHigCDCElIB4oAhAhJyAeKAIUISkgHigCGCErIB4oAhwhLSAeKAIgIS8gACAeKAIkIDFrNgIkIAAgLyAuazYCICAAIC0gLGs2AhwgACArICprNgIYIAAgKSAoazYCFCAAICcgJms2AhAgACAlICRrNgIMIAAgIyAiazYCCCAAICEgIGs2AgQgACAfIAFrNgIAIAAoAnghASAAKAJ8IR8gACgCgAEhICAAKAKEASEhIAAoAogBISIgACgCjAEhIyAAKAKQASEkIAAoApQBISUgACgCmAEhJiAAIAAoApwBIDRrNgKcASAAICYgNWs2ApgBIAAgJSA2azYClAEgACAkIDdrNgKQASAAICMgOGs2AowBIAAgIiA5azYCiAEgACAhIDprNgKEASAAICAgO2s2AoABIAAgHyA8azYCfCAAIAEgPWs2AnggHkEwaiQAC0QBAn8jAEEQayICJAAgAQRAA0AgAkEAOgAPIAAgA2pB2JACIAJBD2pBABAAOgAAIANBAWoiAyABRw0ACwsgAkEQaiQACyQAIAFCgICAgBBaBEAQCQALIAAgASACIANBqJACKAIAEQwAGguVAQEBfyMAQdABayIDJAAgA0IANwNIIANBmIkCKQMANwMIIANBoIkCKQMANwMQIANBqIkCKQMANwMYIANBsIkCKQMANwMgIANBuIkCKQMANwMoIANBwIkCKQMANwMwIANByIkCKQMANwM4IANCADcDQCADQZCJAikDADcDACADIAEgAhAMGiADIAAQEyADQdABaiQAQQALcAAgAEIANwNAIABCADcDSCAAQZCJAikDADcDACAAQZiJAikDADcDCCAAQaCJAikDADcDECAAQaiJAikDADcDGCAAQbCJAikDADcDICAAQbiJAikDADcDKCAAQcCJAikDADcDMCAAQciJAikDADcDOAsFAEHAAAtAAAJAIAStQoCAgIAQIAJCP3xCBoh9Vg0AIAJCgICAgBBaDQAgACABIAIgAyAEIAVBsJACKAIAEQgAGg8LEAkAC1IBAn9BoJACKAIAIgEgAEEHakF4cSICaiEAAkAgAkEAIAAgAU0bDQAgAD8AQRB0SwRAIAAQBEUNAQtBoJACIAA2AgAgAQ8LQdCWAkEwNgIAQX8L0wIBA38CfwJAIAEiA0H/AXEiAgRAIABBA3EEQANAIAAtAAAiAUUNAyABIANB/wFxRg0DIABBAWoiAEEDcQ0ACwsCQCAAKAIAIgFBf3MgAUGBgoQIa3FBgIGChHhxDQAgAkGBgoQIbCECA0AgASACcyIBQX9zIAFBgYKECGtxQYCBgoR4cQ0BIAAoAgQhASAAQQRqIQAgAUGBgoQIayABQX9zcUGAgYKEeHFFDQALCwNAIAAiAS0AACICBEAgAUEBaiEAIAIgA0H/AXFHDQELCyABDAILAkAgACICQQNxBEADQCAALQAARQ0CIABBAWoiAEEDcQ0ACwsDQCAAIgFBBGohACABKAIAIgRBf3MgBEGBgoQIa3FBgIGChHhxRQ0ACwNAIAEiAEEBaiEBIAAtAAANAAsLIAIgACACa2oMAQsgAAsiAEEAIAAtAAAgA0H/AXFGGwsEAEFvC90BAQR/IwBBEGsiAkEAOgAPAkAgAUUNACABQQNxIQQgAUEETwRAIAFBfHEhBUEAIQEDQCACIAAgA2otAAAgAi0AD3I6AA8gAiAAIANBAXJqLQAAIAItAA9yOgAPIAIgACADQQJyai0AACACLQAPcjoADyACIAAgA0EDcmotAAAgAi0AD3I6AA8gA0EEaiEDIAFBBGoiASAFRw0ACwsgBEUNAEEAIQEDQCACIAAgA2otAAAgAi0AD3I6AA8gA0EBaiEDIAFBAWoiASAERw0ACwsgAi0AD0EBa0EIdkEBcQvEAgICfwF+IwBB4AJrIgYkACAGIAQgBRA+GgJAIAAgAksgACACa60gA1RxRQRAIAAgAk8NASACIABrrSADWg0BCyAAIAIgA6cQJCECCyAGQgA3AzggBkIANwMwIAZCADcDKCAGQgA3AyBCICADIANCIFobIghQIgdFBEAgBkFAayACIAinEAsaCyAGQSBqIgUgBSAIQiB8IARBEGoiBEIAIAZB1JACKAIAEQkAGiAGQeAAaiAFQbyQAigCABEBABogB0UEQCAAIAZBQGsgCKcQCxoLIAZBIGpBwAAQByADQiFaBEAgACAIpyIFaiACIAVqIAMgCH0gBEIBIAZB1JACKAIAEQkAGgsgBkEgEAcgBkHgAGoiAiAAIANBwJACKAIAEQAAGiACIAFBxJACKAIAEQEAGiACQYACEAcgBkHgAmokAEEACzIBAn8jAEEgayIDJABBfyEEIAMgAiABEEZFBEAgAEGQkAIgAxA+IQQLIANBIGokACAECyYAIAJBgAJPBEBB7AlBowlB6wBBqwgQAQALIAAgASACQf8BcRA1C40EAQJ/QX8hBAJAIAJBwABLDQAgA0HBAGtBQEkNAAJAIAFBACACG0UEQCADQf8BcSIBQcEAa0H/AXFBvwFNBEAQCQALIABBQGtBAEGlAhAIGiAAQvnC+JuRo7Pw2wA3ADggAELr+obav7X2wR83ADAgAEKf2PnZwpHagpt/NwAoIABC0YWa7/rPlIfRADcAICAAQvHt9Pilp/2npX83ABggAEKr8NP0r+68tzw3ABAgAEK7zqqm2NDrs7t/NwAIIAAgAa1CiJL3lf/M+YTqAIU3AAAMAQsCfyACQf8BcSECIwBBgAFrIgUkAAJAIANB/wFxIgNBwQBrQf8BcUG/AU0NACABRQ0AIAJBwQBrQf8BcUG/AU0NACAAQUBrQQBBpQIQCBogAEL5wvibkaOz8NsANwA4IABC6/qG2r+19sEfNwAwIABCn9j52cKR2oKbfzcAKCAAQtGFmu/6z5SH0QA3ACAgAELx7fT4paf9p6V/NwAYIABCq/DT9K/uvLc8NwAQIABCu86qptjQ67O7fzcACCAAIAOtIAKtQgiGhEKIkveV/8z5hOoAhTcAACACIAVqQQBBgAEgAmtBACACwEEAThsQCBogAEHgAGogBSABIAIQCyIBQYABEAsaIAAgACgA4AJBgAFqNgDgAiABQYABEAcgAUGAAWokAEEADAELEAkACw0BC0EAIQQLIAQL6AIBAn8CQCAAIAFGDQAgASAAIAJqIgRrQQAgAkEBdGtNBEAgACABIAIQCw8LIAAgAXNBA3EhAwJAAkAgACABSQRAIAMEQCAAIQMMAwsgAEEDcUUEQCAAIQMMAgsgACEDA0AgAkUNBCADIAEtAAA6AAAgAUEBaiEBIAJBAWshAiADQQFqIgNBA3ENAAsMAQsCQCADDQAgBEEDcQRAA0AgAkUNBSAAIAJBAWsiAmoiAyABIAJqLQAAOgAAIANBA3ENAAsLIAJBA00NAANAIAAgAkEEayICaiABIAJqKAIANgIAIAJBA0sNAAsLIAJFDQIDQCAAIAJBAWsiAmogASACai0AADoAACACDQALDAILIAJBA00NAANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIAJBBGsiAkEDSw0ACwsgAkUNAANAIAMgAS0AADoAACADQQFqIQMgAUEBaiEBIAJBAWsiAg0ACwsgAAv7FwIQfhB/A0AgAiAVQQN0IhZqIAEgFmopAAAiBEI4hiAEQoD+A4NCKIaEIARCgID8B4NCGIYgBEKAgID4D4NCCIaEhCAEQgiIQoCAgPgPgyAEQhiIQoCA/AeDhCAEQiiIQoD+A4MgBEI4iISEhDcDACAVQQFqIhVBEEcNAAsgAyAAKQMANwMAIAMgACkDODcDOCADIAApAzA3AzAgAyAAKQMoNwMoIAMgACkDIDcDICADIAApAxg3AxggAyAAKQMQNwMQIAMgACkDCDcDCEEAIRYDQCADIAMpAzggAiAWQQN0IgFqIhUpAwAgAykDICIHQjKJIAdCLomFIAdCF4mFfCABQdCJAmopAwB8IAcgAykDMCILIAMpAygiCIWDIAuFfHwiBCADKQMYfCIKNwMYIAMgAykDACIFQiSJIAVCHomFIAVCGYmFIAR8IAMpAxAiCSADKQMIIgaEIAWDIAYgCYOEfCIENwM4IAMgCSACIAFBCHIiFGoiGikDACALIAggCiAHIAiFg4V8IApCMokgCkIuiYUgCkIXiYV8fCAUQdCJAmopAwB8Igt8Igk3AxAgAyAEIAUgBoSDIAUgBoOEIAt8IARCJIkgBEIeiYUgBEIZiYV8Igs3AzAgAyAIIAIgAUEQciIUaiIbKQMAfCAUQdCJAmopAwB8IAcgCSAHIAqFg4V8IAlCMokgCUIuiYUgCUIXiYV8IgwgCyAEIAWEgyAEIAWDhCALQiSJIAtCHomFIAtCGYmFfHwiCDcDKCADIAYgDHwiBjcDCCADIAcgAiABQRhyIhRqIhwpAwB8IBRB0IkCaikDAHwgBiAJIAqFgyAKhXwgBkIyiSAGQi6JhSAGQheJhXwiDCAIIAQgC4SDIAQgC4OEIAhCJIkgCEIeiYUgCEIZiYV8fCIHNwMgIAMgBSAMfCIFNwMAIAMgAiABQSByIhRqIh0pAwAgCnwgFEHQiQJqKQMAfCAFIAYgCYWDIAmFfCAFQjKJIAVCLomFIAVCF4mFfCIMIAcgCCALhIMgCCALg4QgB0IkiSAHQh6JhSAHQhmJhXx8Igo3AxggAyAEIAx8Igw3AzggAyACIAFBKHIiFGoiHikDACAJfCAUQdCJAmopAwB8IAwgBSAGhYMgBoV8IAxCMokgDEIuiYUgDEIXiYV8IgkgCiAHIAiEgyAHIAiDhCAKQiSJIApCHomFIApCGYmFfHwiBDcDECADIAkgC3wiCTcDMCADIAIgAUEwciIUaiIfKQMAIAZ8IBRB0IkCaikDAHwgCSAFIAyFgyAFhXwgCUIyiSAJQi6JhSAJQheJhXwiBiAEIAcgCoSDIAcgCoOEIARCJIkgBEIeiYUgBEIZiYV8fCILNwMIIAMgBiAIfCIGNwMoIAMgAiABQThyIhRqIiApAwAgBXwgFEHQiQJqKQMAfCAGIAkgDIWDIAyFfCAGQjKJIAZCLomFIAZCF4mFfCIFIAsgBCAKhIMgBCAKg4QgC0IkiSALQh6JhSALQhmJhXx8Igg3AwAgAyAFIAd8IgU3AyAgAyACIAFBwAByIhRqIiEpAwAgDHwgFEHQiQJqKQMAfCAFIAYgCYWDIAmFfCAFQjKJIAVCLomFIAVCF4mFfCIMIAggBCALhIMgBCALg4QgCEIkiSAIQh6JhSAIQhmJhXx8Igc3AzggAyAKIAx8Igw3AxggAyACIAFByAByIhRqIiIpAwAgCXwgFEHQiQJqKQMAfCAMIAUgBoWDIAaFfCAMQjKJIAxCLomFIAxCF4mFfCIJIAcgCCALhIMgCCALg4QgB0IkiSAHQh6JhSAHQhmJhXx8Igo3AzAgAyAEIAl8Igk3AxAgAyAGIAIgAUHQAHIiFGoiIykDAHwgFEHQiQJqKQMAfCAJIAUgDIWDIAWFfCAJQjKJIAlCLomFIAlCF4mFfCIGIAogByAIhIMgByAIg4QgCkIkiSAKQh6JhSAKQhmJhXx8IgQ3AyggAyAGIAt8IgY3AwggAyABQdgAciIUQdCJAmopAwAgAiAUaiIUKQMAfCAFfCAGIAkgDIWDIAyFfCAGQjKJIAZCLomFIAZCF4mFfCIFIAQgByAKhIMgByAKg4QgBEIkiSAEQh6JhSAEQhmJhXx8Igs3AyAgAyAFIAh8Igg3AwAgAyABQeAAciIXQdCJAmopAwAgAiAXaiIXKQMAfCAMfCAIIAYgCYWDIAmFfCAIQjKJIAhCLomFIAhCF4mFfCIMIAsgBCAKhIMgBCAKg4QgC0IkiSALQh6JhSALQhmJhXx8IgU3AxggAyAHIAx8Igc3AzggAyABQegAciIYQdCJAmopAwAgAiAYaiIYKQMAfCAJfCAHIAYgCIWDIAaFfCAHQjKJIAdCLomFIAdCF4mFfCIMIAUgBCALhIMgBCALg4QgBUIkiSAFQh6JhSAFQhmJhXx8Igk3AxAgAyAKIAx8Igo3AzAgAyABQfAAciIZQdCJAmopAwAgAiAZaiIZKQMAfCAGfCAKIAcgCIWDIAiFfCAKQjKJIApCLomFIApCF4mFfCIMIAkgBSALhIMgBSALg4QgCUIkiSAJQh6JhSAJQhmJhXx8IgY3AwggAyAEIAx8IgQ3AyggAyABQfgAciIBQdCJAmopAwAgASACaiIBKQMAfCAIfCAEIAcgCoWDIAeFfCAEQjKJIARCLomFIARCF4mFfCIEIAYgBSAJhIMgBSAJg4QgBkIkiSAGQh6JhSAGQhmJhXx8Igg3AwAgAyAEIAt8NwMgIBZBwABGRQRAIAIgFkEQaiIWQQN0aiAVKQMAICIpAwAiByAZKQMAIgRCLYkgBEIDiYUgBEIGiIV8fCAaKQMAIghCP4kgCEI4iYUgCEIHiIV8Igs3AwAgFSAIICMpAwAiCnwgASkDACIIQi2JIAhCA4mFIAhCBoiFfCAbKQMAIgZCP4kgBkI4iYUgBkIHiIV8IgU3A4gBIBUgBiAUKQMAIgl8IAtCLYkgC0IDiYUgC0IGiIV8IBwpAwAiDUI/iSANQjiJhSANQgeIhXwiBjcDkAEgFSANIBcpAwAiDHwgBUItiSAFQgOJhSAFQgaIhXwgHSkDACIOQj+JIA5COImFIA5CB4iFfCINNwOYASAVIA4gGCkDACISfCAGQi2JIAZCA4mFIAZCBoiFfCAeKQMAIg9CP4kgD0I4iYUgD0IHiIV8Ig43A6ABIBUgBCAPfCANQi2JIA1CA4mFIA1CBoiFfCAfKQMAIhBCP4kgEEI4iYUgEEIHiIV8Ig83A6gBIBUgCCAQfCAgKQMAIhFCP4kgEUI4iYUgEUIHiIV8IA5CLYkgDkIDiYUgDkIGiIV8IhA3A7ABIBUgISkDACITIAUgB0I/iSAHQjiJhSAHQgeIhXx8IBBCLYkgEEIDiYUgEEIGiIV8IgU3A8ABIBUgCyARfCATQj+JIBNCOImFIBNCB4iFfCAPQi2JIA9CA4mFIA9CBoiFfCIRNwO4ASAVIAogCUI/iSAJQjiJhSAJQgeIhXwgDXwgBUItiSAFQgOJhSAFQgaIhXwiDTcD0AEgFSAHIApCP4kgCkI4iYUgCkIHiIV8IAZ8IBFCLYkgEUIDiYUgEUIGiIV8Igc3A8gBIBUgDCASQj+JIBJCOImFIBJCB4iFfCAPfCANQi2JIA1CA4mFIA1CBoiFfCIKNwPgASAVIAkgDEI/iSAMQjiJhSAMQgeIhXwgDnwgB0ItiSAHQgOJhSAHQgaIhXwiBzcD2AEgFSAEIAhCP4kgCEI4iYUgCEIHiIV8IBF8IApCLYkgCkIDiYUgCkIGiIV8NwPwASAVIBIgBEI/iSAEQjiJhSAEQgeIhXwgEHwgB0ItiSAHQgOJhSAHQgaIhXwiBDcD6AEgFSAIIAtCP4kgC0I4iYUgC0IHiIV8IAV8IARCLYkgBEIDiYUgBEIGiIV8NwP4AQwBCwsgACAAKQMAIAh8NwMAIAAgACkDCCADKQMIfDcDCCAAIAApAxAgAykDEHw3AxAgACAAKQMYIAMpAxh8NwMYIAAgACkDICADKQMgfDcDICAAIAApAyggAykDKHw3AyggACAAKQMwIAMpAzB8NwMwIAAgACkDOCADKQM4fDcDOAsEAEEYC+cEARJ/QbLaiMsHIQNB7siBmQMhBEHl8MGLBiEFQfTKgdkGIQ4gASgADCEGIAEoAAghDyABKAAEIQcgAigAHCELIAIoABghDCACKAAUIRAgAigAECENIAIoAAwhCCACKAAIIQkgAigABCEKIAEoAAAhASACKAAAIQIDQCACIAEgAiAFaiIFc0EQdyIBIA1qIg1zQQx3IgIgBWoiBSABc0EIdyIBIA1qIg0gAnNBB3ciAiAIIAYgCCAOaiIOc0EQdyIGIAtqIgtzQQx3IgggDmoiEWoiDiAJIA8gAyAJaiIDc0EQdyIPIAxqIgxzQQx3IgkgA2oiAyAPc0EIdyISc0EQdyIPIAogByAEIApqIgRzQRB3IgcgEGoiEHNBDHciCiAEaiIEIAdzQQh3IgcgEGoiE2oiECACc0EMdyICIA5qIg4gD3NBCHciDyAQaiIQIAJzQQd3IQIgDSAHIAMgBiARc0EIdyIGIAtqIgsgCHNBB3ciCGoiA3NBEHciB2oiDSAIc0EMdyIIIANqIgMgB3NBCHciByANaiINIAhzQQd3IQggCyABIAQgDCASaiIMIAlzQQd3IglqIgRzQRB3IgFqIgsgCXNBDHciCSAEaiIEIAFzQQh3IgEgC2oiCyAJc0EHdyEJIAwgBiAFIAogE3NBB3ciCmoiBXNBEHciBmoiDCAKc0EMdyIKIAVqIgUgBnNBCHciBiAMaiIMIApzQQd3IQogFEEBaiIUQQpHDQALIAAgBTYAACAAIAY2ABwgACAPNgAYIAAgBzYAFCAAIAE2ABAgACAONgAMIAAgAzYACCAAIAQ2AAQLiy4BJX4gACABKQAoIiAgASkAaCIYIAEpAEAiGiABKQAgIhkgGCABKQB4IhwgASkAWCIhIAEpAFAiGyAgIAApABAgGSAAKQAwIh18fCIVfCAdIAApAFAgFYVC6/qG2r+19sEfhUIgiSIVQqvw0/Sv7ry3PHwiHoVCKIkiHXwiFiAVhUIwiSIGIB58IgQgHYVCAYkiFyABKQAYIh0gACkACCIlIAEpABAiFSAAKQAoIh58fCIifCAAKQBIICKFQp/Y+dnCkdqCm3+FQiCJIgNCxbHV2aevlMzEAH0iBSAehUIoiSICfCIHfHwiI3wgFyAjIAEpAAgiHiAAKQAAIiYgASkAACIiIAApACAiJHx8Ih98ICQgAEFAaykAACAfhULRhZrv+s+Uh9EAhUIgiSIfQoiS853/zPmE6gB8IgiFQiiJIgt8IgwgH4VCMIkiCYVCIIkiHyABKQA4IiMgACkAGCABKQAwIiQgACkAOCIKfHwiDXwgCiAAKQBYIA2FQvnC+JuRo7Pw2wCFQiCJIg1Cj5KLh9rYgtjaAH0iDoVCKIkiCnwiECANhUIwiSINIA58Ig58IhGFQiiJIhd8IhIgH4VCMIkiEyARfCIRIBeFQgGJIhQgASkASCIXfCAYIAEpAGAiHyAWIAogDoVCAYkiCnx8IhZ8IBYgAyAHhUIwiSIDhUIgiSIHIAggCXwiCHwiCSAKhUIoiSIKfCIOfCIPfCAPIBwgASkAcCIWIBAgCCALhUIBiSIIfHwiC3wgBiALhUIgiSIGIAMgBXwiA3wiBSAIhUIoiSIIfCILIAaFQjCJIgaFQiCJIhAgFyAaIAIgA4VCAYkiAyAMfHwiAnwgAyAEIAIgDYVCIIkiAnwiBIVCKIkiA3wiDCAChUIwiSICIAR8IgR8Ig0gFIVCKIkiFHwiDyAhfCALIBggByAOhUIwiSIHIAl8IgkgCoVCAYkiCnx8IgsgJHwgCiACIAuFQiCJIgIgEXwiC4VCKIkiCnwiDiAChUIwiSICIAt8IgsgCoVCAYkiCnwiESAjfCAKIAUgBnwiBiAIhUIBiSIFIAwgFnx8IgggG3wgBSAIIBOFQiCJIgggCXwiDIVCKIkiBXwiCSAIhUIwiSIIIAx8IgwgESAaIBkgAyAEhUIBiSIEfCASfCIDfCAEIAYgAyAHhUIgiSIDfCIGhUIoiSIEfCIHIAOFQjCJIgOFQiCJIhF8IhKFQiiJIgp8IhMgEYVCMIkiESASfCISIAqFQgGJIgogHHwgHSAgIAUgDIVCAYkiBSAOfHwiDHwgBSAMIA8gEIVCMIkiDoVCIIkiDCADIAZ8IgZ8IgOFQiiJIgV8IhB8Ig8gBCAGhUIBiSIGIB58IAl8IgQgH3wgBiACIASFQiCJIgQgDSAOfCICfCIJhUIoiSIGfCINIASFQjCJIgSFQiCJIg4gFSACIBSFQgGJIgIgB3wgInwiB3wgAiAHIAiFQiCJIgcgC3wiCIVCKIkiAnwiCyAHhUIwiSIHIAh8Igh8IhQgCoVCKIkiCiAPfHwiDyAaIAUgAyAMIBCFQjCJIgV8IgOFQgGJIgwgDSAhfHwiDXwgDCAHIA2FQiCJIgcgEnwiDIVCKIkiDXwiECAHhUIwiSIHIAx8IgwgDYVCAYkiDXwgF3wiEnwgDSASICAgAiAIhUIBiSICIBN8fCIIIBV8IAIgBSAIhUIgiSIFIAQgCXwiBHwiCIVCKIkiAnwiCSAFhUIwiSIFhUIgiSISIAQgBoVCAYkiBiAffCALfCIEICJ8IAYgAyAEIBGFQiCJIgR8IgOFQiiJIgZ8IgsgBIVCMIkiBCADfCIDfCIRhUIoiSINfCITIB4gCSAKIA4gD4VCMIkiCiAUfCIOhUIBiSIUfCAjfCIJfCAEIAmFQiCJIgQgDHwiDCAUhUIoiSIJfCIUIASFQjCJIgQgDHwiDCAJhUIBiSIJfCAhfCIPIBZ8IAkgDyAWIBAgAyAGhUIBiSIGfCAbfCIDfCAGIAMgCoVCIIkiBiAFIAh8IgN8IgWFQiiJIgh8IgkgBoVCMIkiBoVCIIkiCiAOIAcgAiADhUIBiSIDIAsgHXx8IgKFQiCJIgd8IgsgA4VCKIkiAyACfCAkfCICIAeFQjCJIgcgC3wiC3wiDoVCKIkiEHwiDyANIBEgEiAThUIwiSINfCIRhUIBiSISIAkgI3x8IgkgF3wgByAJhUIgiSIHIAx8IgwgEoVCKIkiCXwiEiAHhUIwiSIHIAx8IgwgCYVCAYkiCXwgHHwiE3wgCSATIA0gGCADIAuFQgGJIgN8IBR8IguFQiCJIg0gBSAGfCIGfCIFIAOFQiiJIgMgC3wgH3wiCyANhUIwiSINhUIgiSITIB4gBiAIhUIBiSIGIB18IAJ8IgJ8IAYgESACIASFQiCJIgR8IgKFQiiJIgZ8IgggBIVCMIkiBCACfCICfCIRhUIoiSIJfCIUIAwgBCAKIA+FQjCJIgogDnwiDiAQhUIBiSIQIAsgGXx8IguFQiCJIgR8IgwgEIVCKIkiECALfCAifCILIASFQjCJIgQgDHwiDCAQhUIBiSIQfCAbfCIPIBx8IBAgDyASIAIgBoVCAYkiBnwgFXwiAiAkfCAGIAIgCoVCIIkiAiAFIA18IgV8IgqFQiiJIgZ8Ig0gAoVCMIkiAoVCIIkiEiAgIAMgBYVCAYkiAyAIfHwiBSAbfCADIAUgB4VCIIkiBSAOfCIHhUIoiSIDfCIIIAWFQjCJIgUgB3wiB3wiDoVCKIkiEHwiDyAJIBMgFIVCMIkiCSARfCIRhUIBiSITIA0gF3x8Ig0gInwgBSANhUIgiSIFIAx8IgwgE4VCKIkiDXwiEyAFhUIwiSIFIAx8IgwgDYVCAYkiDXwgHXwiFHwgDSAUIAMgB4VCAYkiAyAVfCALfCIHIBl8IAMgByAJhUIgiSIHIAIgCnwiAnwiC4VCKIkiA3wiCSAHhUIwiSIHhUIgiSIKICAgAiAGhUIBiSIGfCAIfCICICN8IAYgESACIASFQiCJIgR8IgKFQiiJIgZ8IgggBIVCMIkiBCACfCICfCINhUIoiSIRfCIUIAqFQjCJIgogAyAHIAt8IgOFQgGJIgcgCCAhfHwiCCAffCAHIA8gEoVCMIkiCyAOfCIOIAUgCIVCIIkiBXwiCIVCKIkiB3wiEiAFhUIwiSIFIAh8IgggB4VCAYkiByAifCAJIA4gEIVCAYkiCXwgJHwiDiAafCAJIAQgDoVCIIkiBCAMfCIMhUIoiSIJfCIOfCIQhUIgiSIPIB4gEyACIAaFQgGJIgZ8IBZ8IgJ8IAYgAyACIAuFQiCJIgZ8IgOFQiiJIgJ8IgsgBoVCMIkiBiADfCIDfCITIAeFQiiJIgcgEHwgIXwiECAPhUIwiSIPIBN8IhMgB4VCAYkiByACIAOFQgGJIgMgEnwgJHwiAiAbfCADIAogDXwiCiAEIA6FQjCJIgQgAoVCIIkiAnwiDYVCKIkiA3wiDnwgI3wiEnwgByASIAogEYVCAYkiCiALIBV8fCILIB98IAogBSALhUIgiSIFIAQgDHwiBHwiC4VCKIkiDHwiCiAFhUIwiSIFhUIgiSIRIAQgCYVCAYkiBCAafCAUfCIJIB18IAQgBiAJhUIgiSIGIAh8IgiFQiiJIgR8IgkgBoVCMIkiBiAIfCIIfCIShUIoiSIHfCIUIBGFQjCJIhEgEnwiEiAHhUIBiSIHIAogAyACIA6FQjCJIgMgDXwiAoVCAYkiDXwgGXwiCiAYfCAGIAqFQiCJIgYgE3wiCiANhUIoiSINfCIOIAaFQjCJIgYgCnwiCiACIA8gBSALfCIFIAyFQgGJIgIgCSAefHwiC4VCIIkiDHwiCSAChUIoiSICIAt8IBd8IgsgDIVCMIkiDCAQIAQgCIVCAYkiBHwgHHwiCCAWfCAEIAUgAyAIhUIgiSIDfCIFhUIoiSIEfCIIIAcgFnx8IgeFQiCJIhB8IhOFQiiJIg8gEyAQIA8gGHwgB3wiB4VCMIkiEHwiE4VCAYkiDyASIAYgGSAEIAMgCIVCMIkiBCAFfCIDhUIBiSIFfCALfCIIhUIgiSIGfCILIAYgBSALhUIoiSIFIBt8IAh8IgiFQjCJIgZ8IgsgAiAJIAx8IgyFQgGJIgIgDiAffHwiCSARhUIgiSIOIAMgDnwiAyAChUIoiSICICB8IAl8IgmFQjCJIg4gCiANhUIBiSIKIAwgBCAKIB58IBR8IgqFQiCJIgR8IgyFQiiJIg0gHHwgCnwiCiAPICR8fCIRhUIgiSISfCIUhUIoiSIPIBQgEiAPIB18IBF8IhGFQjCJIhJ8IhSFQgGJIg8gEyAGIAkgIiANIAwgBCAKhUIwiSIEfCIMhUIBiSIJfHwiCoVCIIkiBnwiDSAGIAkgDYVCKIkiCSAjfCAKfCIKhUIwiSIGfCINIBAgCCAaIAIgAyAOfCIDhUIBiSICfHwiCIVCIIkiDiAIIAIgDCAOfCIIhUIoiSICICF8fCIMhUIwiSIOIAUgC4VCAYkiBSADIAQgBSAXfCAHfCIFhUIgiSIEfCIDhUIoiSIHIBV8IAV8IgUgDyAffHwiC4VCIIkiEHwiE4VCKIkiDyATIBAgDyAefCALfCILhUIwiSIQfCIThUIBiSIPIBQgBiAdIAcgAyAEIAWFQjCJIgR8IgOFQgGJIgV8IAx8IgeFQiCJIgZ8IgwgBiAFIAyFQiiJIgUgF3wgB3wiB4VCMIkiBnwiDCASIAIgCCAOfCIIhUIBiSICIBh8IAp8IgqFQiCJIg4gAiADIA58IgOFQiiJIgIgIXwgCnwiCoVCMIkiDiAJIA2FQgGJIgkgCCAEIAkgI3wgEXwiCYVCIIkiBHwiCIVCKIkiDSAWfCAJfCIJIA8gHHx8IhGFQiCJIhJ8IhSFQiiJIg8gFCASIA8gGXwgEXwiEYVCMIkiEnwiFIVCAYkiDyATIAYgICANIAggBCAJhUIwiSIEfCIIhUIBiSIJfCAKfCIKhUIgiSIGfCINIAYgCSANhUIoiSIJICJ8IAp8IgqFQjCJIgZ8Ig0gECAVIAIgAyAOfCIDhUIBiSICfCAHfCIHhUIgiSIOIAcgAiAIIA58IgeFQiiJIgIgG3x8IgiFQjCJIg4gBSAMhUIBiSIFIAMgBCAFIBp8IAt8IgWFQiCJIgR8IgOFQiiJIgsgJHwgBXwiBSAPICF8fCIMhUIgiSIQfCIThUIoiSIPIBMgECAPIB18IAx8IgyFQjCJIhB8IhOFQgGJIg8gFCAGICIgCyADIAQgBYVCMIkiBHwiA4VCAYkiBXwgCHwiCIVCIIkiBnwiCyAGIAUgC4VCKIkiBSAafCAIfCIIhUIwiSIGfCILIBIgAiAHIA58IgeFQgGJIgIgJHwgCnwiCoVCIIkiDiACIAMgDnwiA4VCKIkiAiAcfCAKfCIKhUIwiSIOIAkgDYVCAYkiCSAHIAQgCSAWfCARfCIJhUIgiSIEfCIHhUIoiSINIBd8IAl8IgkgDyAYfHwiEYVCIIkiEnwiFIVCKIkiDyAUIBIgDyAjfCARfCIRhUIwiSISfCIUhUIBiSIPIBMgBiAfIA0gByAEIAmFQjCJIgR8IgeFQgGJIgl8IAp8IgqFQiCJIgZ8Ig0gBiAJIA2FQiiJIgkgFXwgCnwiCoVCMIkiBnwiDSAQIBsgAiADIA58IgOFQgGJIgJ8IAh8IgiFQiCJIg4gAiAHIA58IgeFQiiJIgIgIHwgCHwiCIVCMIkiDiAFIAuFQgGJIgUgAyAEIAUgHnwgDHwiBYVCIIkiBHwiA4VCKIkiCyAZfCAFfCIFIA8gI3x8IgyFQiCJIhB8IhOFQiiJIg8gEyAQIA8gJHwgDHwiDIVCMIkiEHwiE4VCAYkiDyAUIAYgHiALIAMgBCAFhUIwiSIEfCIDhUIBiSIFfCAIfCIIhUIgiSIGfCILIAYgBSALhUIoiSIFICB8IAh8IgiFQjCJIgZ8IgsgEiACIAcgDnwiB4VCAYkiAiAbfCAKfCIKhUIgiSIOIAIgAyAOfCIDhUIoiSICIBV8IAp8IgqFQjCJIg4gCSANhUIBiSIJIAcgBCAJIBp8IBF8IgmFQiCJIgR8IgeFQiiJIg0gGXwgCXwiCSAPIBd8fCIRhUIgiSISfCIUhUIoiSIPIBQgEiAPIBZ8IBF8IhGFQjCJIhJ8IhSFQgGJIg8gEyAGIBwgDSAHIAQgCYVCMIkiBHwiB4VCAYkiCXwgCnwiCoVCIIkiBnwiDSAGIAkgDYVCKIkiCSAhfCAKfCIKhUIwiSIGfCINIBAgGCACIAMgDnwiA4VCAYkiAnwgCHwiCIVCIIkiDiACIAcgDnwiB4VCKIkiAiAifCAIfCIIhUIwiSIOIAUgC4VCAYkiBSADIAQgBSAdfCAMfCIFhUIgiSIEfCIDhUIoiSILIB98IAV8IgUgDyAZfHwiDIVCIIkiEHwiE4VCKIkiDyATIBAgDyAgfCAMfCIMhUIwiSIQfCIThUIBiSIPIBQgBiAkIAsgAyAEIAWFQjCJIgR8IgOFQgGJIgV8IAh8IgiFQiCJIgZ8IgsgBiAFIAuFQiiJIgUgI3wgCHwiCIVCMIkiBnwiCyASIAIgByAOfCIHhUIBiSICICJ8IAp8IgqFQiCJIg4gAiADIA58IgOFQiiJIgIgHnwgCnwiCoVCMIkiDiAJIA2FQgGJIgkgByAEIAkgFXwgEXwiCYVCIIkiBHwiB4VCKIkiDSAdfCAJfCIJIA8gG3x8IhGFQiCJIhJ8IhSFQiiJIg8gFCASIA8gIXwgEXwiEYVCMIkiEnwiFIVCAYkiDyATIAYgGiANIAcgBCAJhUIwiSIEfCIHhUIBiSIJfCAKfCIKhUIgiSIGfCINIAYgCSANhUIoiSIJIBd8IAp8IgqFQjCJIgZ8Ig0gECAWIAIgAyAOfCIDhUIBiSICfCAIfCIIhUIgiSIOIAIgByAOfCIHhUIoiSICIBx8IAh8IgiFQjCJIg4gBSALhUIBiSIFIAMgBCAFIB98IAx8IgWFQiCJIgR8IgOFQiiJIgsgGHwgBXwiBSAPIBd8fCIXhUIgiSIMfCIQhUIoiSITIBAgDCATIBx8IBd8IhyFQjCJIhd8IgyFQgGJIhAgFCAGIBggCyADIAQgBYVCMIkiBHwiA4VCAYkiBXwgCHwiGIVCIIkiBnwiCCAGIBggJCAFIAiFQiiJIiR8fCIYhUIwiSIGfCIFIBIgFiACIAcgDnwiB4VCAYkiAnwgCnwiFoVCIIkiCCAWIBsgAiADIAh8IhaFQiiJIgN8fCIbhUIwiSICIBogCSANhUIBiSIIIAcgBCAIIBl8IBF8IhmFQiCJIgR8IgeFQiiJIgh8IBl8IhogECAifHwiGYVCIIkiInwiC4VCKIkiCSAVfCAZfCIZICWFIAcgBCAahUIwiSIafCIVIBcgGCAgIAMgAiAWfCIYhUIBiSIWfHwiIIVCIIkiF3wiBCAXICAgHSAEIBaFQiiJIh18fCIghUIwiSIXfCIWhTcACCAAIBggGiAcICEgBSAkhUIBiSIcfHwiIYVCIIkiGnwiGCAaICMgGCAchUIoiSIYfCAhfCIchUIwiSIafCIhICYgHyAIIBWFQgGJIhUgDCAGIBUgHnwgG3wiG4VCIIkiFXwiHoVCKIkiI3wgG3wiG4WFNwAAIAAgHiAVIBuFQjCJIht8IhUgHCAAKQAQhYU3ABAgACAZICKFQjCJIhkgACkAICAWIB2FQgGJhYU3ACAgACALIBl8IhkgICAAKQAYhYU3ABggACAAKQAoIBUgI4VCAYmFIBqFNwAoIAAgACkAOCAYICGFQgGJhSAbhTcAOCAAIAApADAgCSAZhUIBiYUgF4U3ADALvQUBH39B5fDBiwYhBCACKAAAIhUhBSACKAAEIhYhByACKAAIIhchCCACKAAMIhghCUHuyIGZAyEOIAEoAAAiGSEKIAEoAAQiGiELIAEoAAgiGyENIAEoAAwiHCEQQbLaiMsHIQEgAigAECIdIQNB9MqB2QYhBiACKAAcIh4hESACKAAYIh8hDyACKAAUIiAhAgNAIA8gECAFIA5qQQd3cyIMIA5qQQl3cyISIAIgBGpBB3cgCXMiCSAEakEJdyANcyITIAlqQQ13IAJzIiEgAyAGakEHdyAIcyIIIAZqQQl3IAtzIgsgCGpBDXcgA3MiDSALakESdyAGcyIGIBEgASAKakEHd3MiA2pBB3dzIgIgBmpBCXdzIg8gAmpBDXcgA3MiESAPakESdyAGcyEGIAMgASADakEJdyAHcyIHakENdyAKcyIKIAdqQRJ3IAFzIgEgDGpBB3cgDXMiAyABakEJdyATcyINIANqQQ13IAxzIhAgDWpBEncgAXMhASASIAwgEmpBDXcgBXMiDGpBEncgDnMiBSAJakEHdyAKcyIKIAVqQQl3IAtzIgsgCmpBDXcgCXMiCSALakESdyAFcyEOIBMgIWpBEncgBHMiBCAIakEHdyAMcyIFIARqQQl3IAdzIgcgBWpBDXcgCHMiCCAHakESdyAEcyEEIBRBEkkhDCAUQQJqIRQgDA0ACyAAIAZB9MqB2QZqNgA8IAAgESAeajYAOCAAIA8gH2o2ADQgACACICBqNgAwIAAgAyAdajYALCAAIAFBstqIywdqNgAoIAAgECAcajYAJCAAIA0gG2o2ACAgACALIBpqNgAcIAAgCiAZajYAGCAAIA5B7siBmQNqNgAUIAAgCSAYajYAECAAIAggF2o2AAwgACAHIBZqNgAIIAAgBSAVajYABCAAIARB5fDBiwZqNgAAC8QHAgp/BH4jAEHgA2siAiQAA0AgAkGgAmoiBSADQQF0aiIGIAEgA2otAAAiCEEEdjoAASAGIAhBD3E6AAAgA0EBciIGQQF0IAVqIgggASAGai0AACIGQQR2OgABIAggBkEPcToAACADQQJqIgNBIEcNAAtBACEBA0AgAkGgAmogBGoiAyADLQAAIAFqIgEgAUEIaiIBQfABcWs6AAAgAyADLQABIAHAQQR1aiIBIAFBCGoiAUHwAXFrOgABIAMgAy0AAiABwEEEdWoiASABQQhqIgFB8AFxazoAAiABwEEEdSEBIARBA2oiBEE/Rw0ACyACIAItAN8CIAFqOgDfAiAAQgA3AiAgAEIANwIYIABCADcCECAAQgA3AgggAEIANwIAIABCADcCLCAAQShqIghBATYCACAAQgA3AjQgAEIANwI8IABCADcCRCAAQoCAgIAQNwJMIABB1ABqQQBBzAAQCBogAEH4AGohCiAAQdAAaiELIAJB0AFqIQEgAkGoAWohBiACQfgBaiEEQQEhAwNAIAJBCGoiByADQQF2IAJBoAJqIANqLAAAEEcgAkGAAWoiBSAAIAcQOCAAIAUgBBAGIAggBiABEAYgCyABIAQQBiAKIAUgBhAGIANBPkkhByADQQJqIQMgBw0ACyAAKQIIIQwgACkCECENIAApAhghDiAAKQIAIQ8gAiAAKQIgNwOIAyACIA43A4ADIAIgDTcD+AIgAiAMNwPwAiACIA83A+gCIAApAighDCAAKQIwIQ0gACkCOCEOIABBQGspAgAhDyACIAApAkg3A7ADIAIgDzcDqAMgAiAONwOgAyACIA03A5gDIAIgDDcDkAMgACkCUCEMIAApAlghDSAAKQJgIQ4gACkCaCEPIAIgACkCcDcD2AMgAiAPNwPQAyACIA43A8gDIAIgDTcDwAMgAiAMNwO4AyACQYABaiIFIAJB6AJqIgkQFSAJIAUgBBAGIAJBkANqIgMgBiABEAYgAkG4A2oiByABIAQQBiAFIAkQFSAJIAUgBBAGIAMgBiABEAYgByABIAQQBiAFIAkQFSAJIAUgBBAGIAMgBiABEAYgByABIAQQBiAFIAkQFSAAIAUgBBAGIAggBiABEAYgCyABIAQQBiAKIAUgBhAGQQAhAwNAIAJBCGoiByADQQF2IAJBoAJqIANqLAAAEEcgAkGAAWoiBSAAIAcQOCAAIAUgBBAGIAggBiABEAYgCyABIAQQBiAKIAUgBhAGIANBPkkhByADQQJqIQMgBw0ACyACQeADaiQAC2IBA38jAEGwAWsiAiQAIAJB4ABqIgMgAUHQAGoQLCACQTBqIgQgASADEAYgAiABQShqIAMQBiAAIAIQEiACQZABaiAEEBIgACAALQAfIAItAJABQQd0czoAHyACQbABaiQAC8oIAQN/IwBBwAFrIgIkACACQZABaiIEIAEQBSACQeAAaiIDIAQQBSADIAMQBSADIAEgAxAGIAQgBCADEAYgAkEwaiIBIAQQBSADIAMgARAGIAEgAxAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAMgASADEAYgASADEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABIAMQBiACIAEQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSABIAIgARAGIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAMgASADEAYgASADEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABIAMQBiACIAEQBUEBIQEDQCACIAIQBSABQQFqIgFB5ABHDQALIAJBMGoiASACIAEQBiABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSACQeAAaiIDIAEgAxAGIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAAgAyACQZABahAGIAJBwAFqJAAL7wMBAX8jAEEQayICIAA2AgwgAiABNgIIIAJBADYCBCACIAIoAgQgAigCDC0AACACKAIILQAAc3I2AgQgAiACKAIEIAIoAgwtAAEgAigCCC0AAXNyNgIEIAIgAigCBCACKAIMLQACIAIoAggtAAJzcjYCBCACIAIoAgQgAigCDC0AAyACKAIILQADc3I2AgQgAiACKAIEIAIoAgwtAAQgAigCCC0ABHNyNgIEIAIgAigCBCACKAIMLQAFIAIoAggtAAVzcjYCBCACIAIoAgQgAigCDC0ABiACKAIILQAGc3I2AgQgAiACKAIEIAIoAgwtAAcgAigCCC0AB3NyNgIEIAIgAigCBCACKAIMLQAIIAIoAggtAAhzcjYCBCACIAIoAgQgAigCDC0ACSACKAIILQAJc3I2AgQgAiACKAIEIAIoAgwtAAogAigCCC0ACnNyNgIEIAIgAigCBCACKAIMLQALIAIoAggtAAtzcjYCBCACIAIoAgQgAigCDC0ADCACKAIILQAMc3I2AgQgAiACKAIEIAIoAgwtAA0gAigCCC0ADXNyNgIEIAIgAigCBCACKAIMLQAOIAIoAggtAA5zcjYCBCACIAIoAgQgAigCDC0ADyACKAIILQAPc3I2AgQgAigCBEEBa0EIdkEBcUEBawsEAEEAC6IJATF/IwBBQGohCSAAKAI8IR0gACgCOCEeIAAoAjQhEiAAKAIwIRMgACgCLCEfIAAoAighICAAKAIkISEgACgCICEiIAAoAhwhIyAAKAIYISQgACgCFCElIAAoAhAhJiAAKAIMIScgACgCCCEoIAAoAgQhKSAAKAIAISoDQAJAIANCP1YEQCACIQUMAQsgCUIANwM4IAlCADcDMCAJQgA3AyggCUIANwMgIAlCADcDGCAJQgA3AxAgCUIANwMIIAlCADcDAEEAIQQgA0IAUgRAA0AgBCAJaiABIARqLQAAOgAAIAMgBEEBaiIErVYNAAsLIAkiBSEBIAIhKwtBFCEWICohCCApIQogKCEOICchFCAmIQQgJSECICQhBiAjIQcgIiELICEhDyAgIQwgHSEQIB4hFyASIRggEyENIB8hEQNAIAQgBCAIaiIEIA1zQRB3IgggC2oiC3NBDHciDSAEaiIVIAhzQQh3IgggC2oiCyANc0EHdyIEIAcgByAUaiIHIBBzQRB3IhAgEWoiDXNBDHciESAHaiIHaiIUIAYgBiAOaiIGIBdzQRB3Ig4gDGoiDHNBDHciGSAGaiIGIA5zQQh3IhpzQRB3Ig4gAiACIApqIgIgGHNBEHciCiAPaiIPc0EMdyIbIAJqIgIgCnNBCHciCiAPaiIcaiIPIARzQQx3IgQgFGoiFCAOc0EIdyIXIA9qIg8gBHNBB3chBCALIAogBiAHIBBzQQh3IhAgDWoiBiARc0EHdyIHaiIKc0EQdyILaiINIAdzQQx3IgcgCmoiDiALc0EIdyIYIA1qIgsgB3NBB3chByAGIAggAiAMIBpqIgIgGXNBB3ciBmoiCHNBEHciDGoiESAGc0EMdyIGIAhqIgogDHNBCHciDSARaiIRIAZzQQd3IQYgAiAbIBxzQQd3IgIgFWoiCCAQc0EQdyIMaiIVIAJzQQx3IgIgCGoiCCAMc0EIdyIQIBVqIgwgAnNBB3chAiAWQQJrIhYNAAsgASgABCEWIAEoAAghFSABKAAMIRkgASgAECEaIAEoABQhGyABKAAYIRwgASgAHCEsIAEoACAhLSABKAAkIS4gASgAKCEvIAEoACwhMCABKAAwITEgASgANCEyIAEoADghMyABKAA8ITQgBSABKAAAIAggKmpzNgAAIAUgNCAQIB1qczYAPCAFIDMgFyAeanM2ADggBSAyIBIgGGpzNgA0IAUgMSANIBNqczYAMCAFIDAgESAfanM2ACwgBSAvIAwgIGpzNgAoIAUgLiAPICFqczYAJCAFIC0gCyAianM2ACAgBSAsIAcgI2pzNgAcIAUgHCAGICRqczYAGCAFIBsgAiAlanM2ABQgBSAaIAQgJmpzNgAQIAUgGSAUICdqczYADCAFIBUgDiAoanM2AAggBSAWIAogKWpzNgAEIBIgE0EBaiITRWohEiADQsAAWARAAkAgA0I/Vg0AIAOnIgFFDQBBACEEA0AgBCAraiAEIAVqLQAAOgAAIARBAWoiBCABSQ0ACwsgACASNgI0IAAgEzYCMAUgAUFAayEBIAVBQGshAiADQkB8IQMMAQsLC8QCAgJ/AX4jAEHgAGsiBiQAIAYgBCAFED4aIAZBIGoiB0IgIARBEGoiBSAGQdCQAigCABEMABpBfyEEAkACQCACIAEgAyAHQbiQAigCABESAA0AQQAhBCAARQ0BAkAgACABSSABIABrrSADVHFFBEAgACABTQ0BIAAgAWutIANaDQELIAAgASADpxAkIQELAkBCICADIANCIFobIghQBEAgBkEgaiICIAIgCEIgfCAFQgAgBkHUkAIoAgARCQAaDAELIAZBQGsgASAIpyICEAshBCAGQSBqIgcgByAIQiB8IAVCACAGQdSQAigCABEJABogACAEIAIQCxoLIAZBIGpBwAAQB0EAIQQgA0IhVA0AIAAgCKciAmogASACaiADIAh9IAVCASAGQdSQAigCABEJABoLIAZBIBAHCyAGQeAAaiQAIAQL4ScCJ38DfiMAQdAEayIPJABBfyELIABBIGohCUEgIQVBASEMA0AgBUEBayIHQfAUai0AACIKIAcgCWotAAAiB3NBAWtBCHUgDHEiCCAJIAVBAmsiBWotAAAiDSAFQfAUai0AACIOa0EIdXEgByAKa0EIdiAMcSAGckH/AXFyIQYgDSAOc0EBa0EIdSAIcSEMIAUNAAsCQCAGQf8BcUUNACAAEDcNACADLQAfQX9zQf8AcSADLQABIAMtAAIgAy0AAyADLQAEIAMtAAUgAy0ABiADLQAHIAMtAAggAy0ACSADLQAKIAMtAAsgAy0ADCADLQANIAMtAA4gAy0ADyADLQAQIAMtABEgAy0AEiADLQATIAMtABQgAy0AFSADLQAWIAMtABcgAy0AGCADLQAZIAMtABogAy0AGyADLQAcIAMtAB4gAy0AHXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxQf8Bc3JBAWtB7AEgAy0AAGtxQX9zQQh2QQFxRQ0AIAMQNw0AIA9BgAFqIAMQSQ0AIA9BgANqIgUQGSAEBEAgBUHQjwJCIhAMGgsgBSAAQiAQDBogBSADQiAQDBogBSABIAIQDBogBSAPQcACaiIBEBMgARA2IA9BCGohDCABIQQgD0GAAWohC0EAIQNBACEBIwBB4BFrIgUkAANAIAVB4A9qIgYgA2ogBCADQQN2aiIHLQAAIANBBnF2QQFxOgAAIAYgA0EBciIKaiAHLQAAIApBB3F2QQFxOgAAIANBAmoiA0GAAkcNAAsDQCABIgRBAWohAQJAIAQgBUHgD2pqIgYtAABFDQAgBEH+AUsNAAJAIAVB4A9qIAFqIgMsAAAiB0UNACAHQQF0IgcgBiwAACIKaiIIQQ9MBEAgBiAIOgAAIANBADoAAAwBCyAKIAdrIgNBcUgNASAGIAM6AAAgASEDA0AgBUHgD2ogA2oiBy0AAEUEQCAHQQE6AAAMAgsgB0EAOgAAIANB/wFJIQcgA0EBaiEDIAcNAAsLIARB/QFLDQACQCAEQQJqIgMgBUHgD2pqIgcsAAAiCkUNACAKQQJ0IgogBiwAACIIaiINQRBOBEAgCCAKayIHQXFIDQIgBiAHOgAAA0AgBUHgD2ogA2oiBy0AAARAIAdBADoAACADQf8BSSEHIANBAWohAyAHDQEMAwsLIAdBAToAAAwBCyAGIA06AAAgB0EAOgAACyAEQfwBSw0AAkAgBEEDaiIDIAVB4A9qaiIHLAAAIgpFDQAgCkEDdCIKIAYsAAAiCGoiDUEQTgRAIAggCmsiB0FxSA0CIAYgBzoAAANAIAVB4A9qIANqIgctAAAEQCAHQQA6AAAgA0H/AUkhByADQQFqIQMgBw0BDAMLCyAHQQE6AAAMAQsgBiANOgAAIAdBADoAAAsgBEH7AUsNAAJAIARBBGoiAyAFQeAPamoiBywAACIKRQ0AIApBBHQiCiAGLAAAIghqIg1BEE4EQCAIIAprIgdBcUgNAiAGIAc6AAADQCAFQeAPaiADaiIHLQAABEAgB0EAOgAAIANB/wFJIQcgA0EBaiEDIAcNAQwDCwsgB0EBOgAADAELIAYgDToAACAHQQA6AAALIARB+gFLDQACQCAEQQVqIgMgBUHgD2pqIgcsAAAiCkUNACAKQQV0IgogBiwAACIIaiINQRBOBEAgCCAKayIHQXFIDQIgBiAHOgAAA0AgBUHgD2ogA2oiBy0AAARAIAdBADoAACADQf8BSSEHIANBAWohAyAHDQEMAwsLIAdBAToAAAwBCyAGIA06AAAgB0EAOgAACyAEQfkBSw0AIARBBmoiAyAFQeAPamoiBCwAACIHRQ0AIAdBBnQiByAGLAAAIgpqIghBEE4EQCAKIAdrIgRBcUgNASAGIAQ6AAADQCAFQeAPaiADaiIELQAABEAgBEEAOgAAIANB/wFJIQQgA0EBaiEDIAQNAQwDCwsgBEEBOgAADAELIAYgCDoAACAEQQA6AAALIAFBgAJHDQALQQAhAwNAIAVB4A1qIgEgA2ogCSADQQN2aiIELQAAIANBBnF2QQFxOgAAIAEgA0EBciIGaiAELQAAIAZBB3F2QQFxOgAAIANBAmoiA0GAAkcNAAtBACEBA0AgASIEQQFqIQECQCAEIAVB4A1qaiIJLQAARQ0AIARB/gFLDQACQCAFQeANaiABaiIDLAAAIgZFDQAgBkEBdCIGIAksAAAiB2oiCkEPTARAIAkgCjoAACADQQA6AAAMAQsgByAGayIDQXFIDQEgCSADOgAAIAEhAwNAIAVB4A1qIANqIgYtAABFBEAgBkEBOgAADAILIAZBADoAACADQf8BSSEGIANBAWohAyAGDQALCyAEQf0BSw0AAkAgBEECaiIDIAVB4A1qaiIGLAAAIgdFDQAgB0ECdCIHIAksAAAiCmoiCEEQTgRAIAogB2siBkFxSA0CIAkgBjoAAANAIAVB4A1qIANqIgYtAAAEQCAGQQA6AAAgA0H/AUkhBiADQQFqIQMgBg0BDAMLCyAGQQE6AAAMAQsgCSAIOgAAIAZBADoAAAsgBEH8AUsNAAJAIARBA2oiAyAFQeANamoiBiwAACIHRQ0AIAdBA3QiByAJLAAAIgpqIghBEE4EQCAKIAdrIgZBcUgNAiAJIAY6AAADQCAFQeANaiADaiIGLQAABEAgBkEAOgAAIANB/wFJIQYgA0EBaiEDIAYNAQwDCwsgBkEBOgAADAELIAkgCDoAACAGQQA6AAALIARB+wFLDQACQCAEQQRqIgMgBUHgDWpqIgYsAAAiB0UNACAHQQR0IgcgCSwAACIKaiIIQRBOBEAgCiAHayIGQXFIDQIgCSAGOgAAA0AgBUHgDWogA2oiBi0AAARAIAZBADoAACADQf8BSSEGIANBAWohAyAGDQEMAwsLIAZBAToAAAwBCyAJIAg6AAAgBkEAOgAACyAEQfoBSw0AAkAgBEEFaiIDIAVB4A1qaiIGLAAAIgdFDQAgB0EFdCIHIAksAAAiCmoiCEEQTgRAIAogB2siBkFxSA0CIAkgBjoAAANAIAVB4A1qIANqIgYtAAAEQCAGQQA6AAAgA0H/AUkhBiADQQFqIQMgBg0BDAMLCyAGQQE6AAAMAQsgCSAIOgAAIAZBADoAAAsgBEH5AUsNACAEQQZqIgMgBUHgDWpqIgQsAAAiBkUNACAGQQZ0IgYgCSwAACIHaiIKQRBOBEAgByAGayIEQXFIDQEgCSAEOgAAA0AgBUHgDWogA2oiBC0AAARAIARBADoAACADQf8BSSEEIANBAWohAyAEDQEMAwsLIARBAToAAAwBCyAJIAo6AAAgBEEAOgAACyABQYACRw0ACyAFQeADaiIHIAsQDSALKQIIIQIgCykCECEsIAspAhghLSALKQIAIS4gBSALKQIgNwPAASAFIC03A7gBIAUgLDcDsAEgBSACNwOoASAFIC43A6ABIAspAighAiALKQIwISwgCykCOCEtIAtBQGspAgAhLiAFIAspAkg3A+gBIAUgLjcD4AEgBSAtNwPYASAFICw3A9ABIAUgAjcDyAEgCykCUCECIAspAlghLCALKQJgIS0gCykCaCEuIAUgCykCcDcDkAIgBSAuNwOIAiAFIC03A4ACIAUgLDcD+AEgBSACNwPwASAFQcACaiIBIAVBoAFqIgMQFSAFIAEgBUG4A2oiBBAGIAVBKGogBUHoAmoiCSAFQZADaiIGEAYgBUHQAGogBiAEEAYgBUH4AGogASAJEAYgASAFIAcQDiADIAEgBBAGIAVByAFqIgcgCSAGEAYgBUHwAWoiCiAGIAQQBiAFQZgCaiILIAEgCRAGIAVBgAVqIgggAxANIAEgBSAIEA4gAyABIAQQBiAHIAkgBhAGIAogBiAEEAYgCyABIAkQBiAFQaAGaiIIIAMQDSABIAUgCBAOIAMgASAEEAYgByAJIAYQBiAKIAYgBBAGIAsgASAJEAYgBUHAB2oiCCADEA0gASAFIAgQDiADIAEgBBAGIAcgCSAGEAYgCiAGIAQQBiALIAEgCRAGIAVB4AhqIgggAxANIAEgBSAIEA4gAyABIAQQBiAHIAkgBhAGIAogBiAEEAYgCyABIAkQBiAFQYAKaiIIIAMQDSABIAUgCBAOIAMgASAEEAYgByAJIAYQBiAKIAYgBBAGIAsgASAJEAYgBUGgC2oiCCADEA0gASAFIAgQDiADIAEgBBAGIAcgCSAGEAYgCiAGIAQQBiALIAEgCRAGIAVBwAxqIAMQDSAMQgA3AiAgDEIANwIYIAxCADcCECAMQgA3AgggDEIANwIAIAxCADcCLCAMQShqIiJBATYCACAMQgA3AjQgDEIANwI8IAxCADcCRCAMQgA3AlQgDEKAgICAEDcCTCAMQgA3AlwgDEIANwJkIAxCADcCbCAMQQA2AnQgDEHQAGohI0H/ASEBA0ACQAJAAkAgBUHgD2ogAWotAAANACAFQeANaiABai0AAA0AIAFBAWsiAyAFQeAPamotAABFBEAgBUHgDWogA2otAABFDQILIAMhAQsgAUEASA0BA0AgBUHAAmogDBAVAkAgASIDIAVB4A9qaiwAACIBQQBKBEAgBUGgAWoiDSAFQcACaiIIIAQQBiAHIAkgBhAGIAogBiAEEAYgCyAIIAkQBiAIIA0gBUHgA2ogAUH+AXFBAXZBoAFsahAODAELIAFBAE4NACAFQaABaiINIAVBwAJqIgggBBAGIAcgCSAGEAYgCiAGIAQQBiALIAggCRAGIAggDSAFQeADakEAIAFrQf4BcUEBdkGgAWxqEEgLAkAgBUHgDWogA2osAAAiAUEASgRAIAVBoAFqIg0gBUHAAmoiCCAEEAYgByAJIAYQBiAKIAYgBBAGIAsgCCAJEAYgCCANIAFB/gFxQQF2QfgAbEHQC2oQOAwBCyABQQBODQAgBUGgAWogBUHAAmoiCCAEEAYgByAJIAYQBiAKIAYgBBAGIAsgCCAJEAYgBSgCoAEhDSAFKALIASEOIAUoAqQBIRAgBSgCzAEhESAFKAKoASESIAUoAtABIRMgBSgCrAEhFCAFKALUASEVIAUoArABIRYgBSgC2AEhFyAFKAK0ASEYIAUoAtwBIRkgBSgCuAEhGiAFKALgASEbIAUoArwBIRwgBSgC5AEhHSAFKALAASEeIAUoAugBIR8gBSAFKALsASIgIAUoAsQBIiFrNgKMAyAFIB8gHms2AogDIAUgHSAcazYChAMgBSAbIBprNgKAAyAFIBkgGGs2AvwCIAUgFyAWazYC+AIgBSAVIBRrNgL0AiAFIBMgEms2AvACIAUgESAQazYC7AIgBSAOIA1rNgLoAiAFICAgIWo2AuQCIAUgHiAfajYC4AIgBSAcIB1qNgLcAiAFIBogG2o2AtgCIAUgGCAZajYC1AIgBSAWIBdqNgLQAiAFIBQgFWo2AswCIAUgEiATajYCyAIgBSAQIBFqNgLEAiAFIA0gDmo2AsACIAYgCEEAIAFrQf4BcUEBdkH4AGxB0AtqIgFBKGoQBiAJIAkgARAGIAQgAUHQAGogCxAGIAUoApQCIR4gBSgCkAIhHyAFKAKMAiEgIAUoAogCISEgBSgChAIhJCAFKAKAAiElIAUoAvwBISYgBSgC+AEhJyAFKAL0ASEoIAUoAvABISkgBSgC6AIhASAFKAKQAyEIIAUoAuwCIQ0gBSgClAMhDiAFKALwAiEQIAUoApgDIREgBSgC9AIhEiAFKAKcAyETIAUoAvgCIRQgBSgCoAMhFSAFKAL8AiEWIAUoAqQDIRcgBSgCgAMhGCAFKAKoAyEZIAUoAoQDIRogBSgCrAMhGyAFKAKIAyEcIAUoArADIR0gBSAFKAKMAyIqIAUoArQDIitqNgKMAyAFIBwgHWo2AogDIAUgGiAbajYChAMgBSAYIBlqNgKAAyAFIBYgF2o2AvwCIAUgFCAVajYC+AIgBSASIBNqNgL0AiAFIBAgEWo2AvACIAUgDSAOajYC7AIgBSABIAhqNgLoAiAFICsgKms2AuQCIAUgHSAcazYC4AIgBSAbIBprNgLcAiAFIBkgGGs2AtgCIAUgFyAWazYC1AIgBSAVIBRrNgLQAiAFIBMgEms2AswCIAUgESAQazYCyAIgBSAOIA1rNgLEAiAFIAggAWs2AsACIAUgKUEBdCIBIAUoArgDIghrNgKQAyAFIChBAXQiDSAFKAK8AyIOazYClAMgBSAnQQF0IhAgBSgCwAMiEWs2ApgDIAUgJkEBdCISIAUoAsQDIhNrNgKcAyAFICVBAXQiFCAFKALIAyIVazYCoAMgBSAkQQF0IhYgBSgCzAMiF2s2AqQDIAUgIUEBdCIYIAUoAtADIhlrNgKoAyAFICBBAXQiGiAFKALUAyIbazYCrAMgBSAfQQF0IhwgBSgC2AMiHWs2ArADIAUgHkEBdCIeIAUoAtwDIh9rNgK0AyAFIAEgCGo2ArgDIAUgDSAOajYCvAMgBSAQIBFqNgLAAyAFIBIgE2o2AsQDIAUgFCAVajYCyAMgBSAWIBdqNgLMAyAFIBggGWo2AtADIAUgGiAbajYC1AMgBSAcIB1qNgLYAyAFIB4gH2o2AtwDCyAMIAVBwAJqIAQQBiAiIAkgBhAGICMgBiAEEAYgA0EBayEBIANBAEoNAAsMAQsgAUECayEBIAMNAQsLIAVB4BFqJAAgD0GgAmoiASAMECtBfyABIAAQSyAAIAFGGyAAIAFBIBAzciELCyAPQdAEaiQAIAsLqSICOH4FfyMAQbAEayI/JAAgP0HgAmoQGSAFBEAgP0HgAmpB0I8CQiIQDBoLID9BoAJqIARCIBAYGiA/QeACaiJBID9BwAJqQiAQDBogQSACIAMQDBogQSA/QeABaiI+EBMgBCkAICEIIAQpACghByAEKQAwIQYgACAEKQA4NwA4IAAgBjcAMCAAIAc3ACggAEEgaiIEIAg3AAAgPhA2ID8gPhAqIAAgPxArIEEQGSAFBEAgP0HgAmpB0I8CQiIQDBoLID9B4AJqIgUgAELAABAMGiAFIAIgAxAMGiAFID9BoAFqIgAQEyAAEDYgPyA/LQCgAkH4AXE6AKACID8gPy0AvwJBP3FBwAByOgC/AiAEID9BoAJqIkAzABUgQDEAF0IQhkKAgPwAg4QiECAAKAAcQQd2rSIRfiAAKAAXIgVBGHatIAAxABtCCIaEIAAxABxCEIaEQgKIQv///wCDIhIgQCgAFyICQQV2Qf///wBxrSITfnwgADMAFSAAMQAXQhCGQoCA/ACDhCIUIEAoABxBB3atIhV+fCACQRh2rSBAMQAbQgiGhCBAMQAcQhCGhEICiEL///8AgyIWIAVBBXZB////AHGtIhd+fCATIBd+IEAoAA8iBUEYdq0gQDEAE0IIhoQgQDEAFEIQhoRCA4giGCARfnwgECASfnwgACgADyICQRh2rSAAMQATQgiGhCAAMQAUQhCGhEIDiCIZIBV+fCAUIBZ+fCIJQoCAQH0iCEIViHwiB0KAgEB9IgZCFYggFSAXfiARIBN+fCASIBZ+fCIDIANCgIBAfSIDQoCAgP////8Ag318IixCmNocfiARIBZ+IBIgFX58IANCFYh8IgMgA0KAgEB9IipCgICA/////wCDfSItQpPYKH58IAcgBkKAgIB/g30iLkLn9id+fCAJIAhCgICAf4N9IBIgGH4gBUEGdkH///8Aca0iGiARfnwgEyAUfnwgECAXfnwgFSACQQZ2Qf///wBxrSIbfnwgFiAZfnwgQCgACiJCQRh2rSBAMQAOQgiGhCBAMQAPQhCGhEIBiEL///8AgyIcIBF+IBIgGn58IBcgGH58IBMgGX58IBAgFH58IAAoAAoiQUEYdq0gADEADkIIhoQgADEAD0IQhoRCAYhC////AIMiHSAVfnwgFiAbfnwiDEKAgEB9IgpCFYh8IglCgIBAfSIIQhWIfCIvQtOMQ358ID9B4AFqIj4oABciBUEFdkH///8Aca0gQDMAACBAMQACQhCGQoCA/ACDhCIeIBd+IBQgQCgAAiICQQV2Qf///wBxrSIffnwgQDUAB0IHiEL///8AgyIgIBt+fCAdIEJBBHZB////AHGtIiF+fCACQRh2rSBAMQAGQgiGhCBAMQAHQhCGhEICiEL///8AgyIiIBl+fCAaIAA1AAdCB4hC////AIMiI358IBwgQUEEdkH///8Aca0iJH58IBggACgAAiICQRh2rSAAMQAGQgiGhCAAMQAHQhCGhEICiEL///8AgyIlfnwgADMAACAAMQACQhCGQoCA/ACDhCImIBN+fCAQIAJBBXZB////AHGtIid+fHwgPjMAFSAUIB5+IBkgH358IB0gIH58ICEgJH58IBsgIn58IBogJX58IBwgI358IBggJ358IBAgJn58fCA+MQAXQhCGQoCA/ACDfCIHQoCAQH0iBkIViHwiA3wgA0KAgEB9IgtCgICAf4N9IAcgLkKY2hx+ICxCk9gofnwgL0Ln9id+fCAZIB5+IBsgH358ICAgJH58ICEgI358IB0gIn58IBogJ358IBwgJX58IBggJn58ID4oAA8iAEEYdq0gPjEAE0IIhoQgPjEAFEIQhoRCA4h8IABBBnZB////AHGtIBsgHn4gHSAffnwgICAjfnwgISAlfnwgIiAkfnwgGiAmfnwgHCAnfnx8IjZCgIBAfSIwQhWIfCIoQoCAQH0iN0IViHx8IAZCgICAf4N9IjhCgIBAfSI5QhWHfCIOQoCAQH0iKUIVhyAJIAhCgICAf4N9IAwgESAVfiIPQoCAQH0iDUIViCIxQoOhVn58IApCgICAf4N9IBcgGn4gESAhfnwgEiAcfnwgFCAYfnwgEyAbfnwgECAZfnwgFSAkfnwgFiAdfnwgEiAhfiARICB+fCAUIBp+fCAXIBx+fCAYIBl+fCATIB1+fCAQIBt+fCAVICN+fCAWICR+fCIMQoCAQH0iCkIViHwiCUKAgEB9IghCFYh8IgdCgIBAfSIGQhWHfCIyQoOhVn58IBIgHn4gFyAffnwgGSAgfnwgGyAhfnwgFCAifnwgGiAkfnwgHCAdfnwgGCAjfnwgEyAnfnwgECAlfnwgFiAmfnwgBUEYdq0gPjEAG0IIhoQgPjEAHEIQhoRCAohC////AIN8IgMgLUKY2hx+IA8gDUKAgID/////A4N9ICpCFYh8IjNCk9gofnwgLELn9id+fCAuQtOMQ358IC9C0asIfnwgC0IViHx8IANCgIBAfSI6QoCAgH+DfSIDfCADQoCAQH0iO0KAgIB/g30iCyAOIAcgBkKAgIB/g30gM0KDoVZ+IDFC0asIfnwgCXwgCEKAgIB/g30gDCAxQtOMQ358IDNC0asIfnwgLUKDoVZ+fCAKQoCAgH+DfSAXICF+IBIgIH58IBEgIn58IBkgGn58IBQgHH58IBggG358IBMgJH58IBAgHX58IBUgJX58IBYgI358IBcgIH4gESAffnwgFCAhfnwgEiAifnwgGiAbfnwgGSAcfnwgGCAdfnwgEyAjfnwgECAkfnwgFSAnfnwgFiAlfnwiPEKAgEB9Ij1CFYh8IitCgIBAfSIqQhWIfCINQoCAQH0iDEIVh3wiBkKAgEB9IgNCFYd8IjRCg6FWfiAyQtGrCH58fCApQoCAgH+DfSA4IDRC0asIfiAyQtOMQ358IAYgA0KAgIB/g30iNUKDoVZ+fCAvQpjaHH4gLkKT2Ch+fCAofCA2IC9Ck9gofnwgMEKAgIB/g30gHSAefiAfICR+fCAgICV+fCAhICd+fCAiICN+fCAcICZ+fCA+KAAKIgBBGHatID4xAA5CCIaEID4xAA9CEIaEQgGIQv///wCDfCAAQQR2Qf///wBxrSAeICR+IB8gI358ICAgJ358ICEgJn58ICIgJX58fCI2QoCAQH0iMEIViHwiKEKAgEB9Ig5CFYh8IilCgIBAfSIPQhWHfCA3QoCAgH+DfSIKQoCAQH0iCUIVh3x8IDlCgICAf4N9IghCgIBAfSIHQhWHfCIGQoCAQH0iA0IVh3wgC0KAgEB9IgtCgICAf4N9IAYgA0KAgIB/g30gCCAHQoCAgH+DfSA0QtOMQ34gMkLn9id+fCA1QtGrCH58IAp8IAlCgICAf4N9IA0gDEKAgIB/g30gM0LTjEN+IDFC5/YnfnwgLULRqwh+fCAsQoOhVn58ICt8ICpCgICAf4N9IDNC5/YnfiAxQpjaHH58IC1C04xDfnwgPHwgLELRqwh+fCAuQoOhVn58ID1CgICAf4N9ID4oABxBB3atIBEgHn4gEiAffnwgFCAgfnwgGSAhfnwgFyAifnwgGiAdfnwgGyAcfnwgGCAkfnwgEyAlfnwgECAjfnwgFSAmfnwgFiAnfnx8IDpCFYh8Ig1CgIBAfSIMQhWIfCIKQoCAQH0iCUIVh3wiBkKAgEB9IgNCFYd8IitCg6FWfnwgKSAyQpjaHH58IA9CgICAf4N9IDRC5/YnfnwgNULTjEN+fCArQtGrCH58IAYgA0KAgIB/g30iKkKDoVZ+fCIIQoCAQH0iB0IVh3wiBkKAgEB9IgNCFYd8IAYgA0KAgIB/g30gCCAHQoCAgH+DfSAyQpPYKH4gKHwgDkKAgIB/g30gNEKY2hx+fCA1Quf2J358IAogCUKAgIB/g30gM0KY2hx+IDFCk9gofnwgLULn9id+fCAsQtOMQ358IC5C0asIfnwgL0KDoVZ+fCANfCAMQoCAgH+DfSA7QhWHfCINQoCAQH0iDEIVh3wiDkKDoVZ+fCArQtOMQ358ICpC0asIfnwgNiAwQoCAgH+DfSAeICN+IB8gJX58ICAgJn58ICIgJ358ID41AAdCB4hC////AIN8IB4gJX4gHyAnfnwgIiAmfnwgPigAAiIAQRh2rSA+MQAGQgiGhCA+MQAHQhCGhEICiEL///8Ag3wiKUKAgEB9Ig9CFYh8IgpCgIBAfSIJQhWIfCA0QpPYKH58IDVCmNocfnwgDkLRqwh+fCArQuf2J358ICpC04xDfnwiCEKAgEB9IgdCFYd8IgZCgIBAfSIDQhWHfCAGIA0gDEKAgIB/g30gC0IVh3wiMEKAgEB9IihCFYciC0KDoVZ+fCADQoCAgH+DfSAIIAtC0asIfnwgB0KAgIB/g30gCiAJQoCAgH+DfSA1QpPYKH58IA5C04xDfnwgK0KY2hx+fCAqQuf2J358ICkgAEEFdkH///8Aca0gHiAnfiAfICZ+fHwgHiAmfiA+MwAAID4xAAJCEIZCgID8AIOEfCINQoCAQH0iDEIViHwiCkKAgEB9IglCFYh8IA9CgICAf4N9IA5C5/YnfnwgK0KT2Ch+fCAqQpjaHH58IghCgIBAfSIHQhWHfCIGQoCAQH0iA0IVh3wgBiALQtOMQ358IANCgICAf4N9IAggC0Ln9id+fCAHQoCAgH+DfSAKIAlCgICAf4N9IA5CmNocfnwgKkKT2Ch+fCANIAxCgICA////A4N9IA5Ck9gofnwiCEKAgEB9IgdCFYd8IgZCgIBAfSIDQhWHfCAGIAtCmNocfnwgA0KAgIB/g30gCCAHQoCAgH+DfSALQpPYKH58Ig5CFYd8IgtCFYd8IilCFYd8Ig9CFYd8Ig1CFYd8IgxCFYd8IgpCFYd8IglCFYd8IghCFYd8IgdCFYd8IgZCFYcgMCAoQoCAgH+DfXwiA0IVhyIoQpPYKH4gDkL///8Ag3wiDjwAACAEIA5CCIg8AAEgBCAoQpjaHH4gC0L///8Ag3wgDkIVh3wiC0ILiDwABCAEIAtCA4g8AAMgBCAOQhCIQh+DIAtCBYaEPAACIAQgKELn9id+IClC////AIN8IAtCFYd8IilCBog8AAYgBCApQgKGIAtCgIDgAINCE4iEPAAFIAQgKELTjEN+IA9C////AIN8IClCFYd8Ig9CCYg8AAkgBCAPQgGIPAAIIAQgD0IHhiApQoCA/wCDQg6IhDwAByAEIChC0asIfiANQv///wCDfCAPQhWHfCINQgyIPAAMIAQgDUIEiDwACyAEIA1CBIYgD0KAgPgAg0IRiIQ8AAogBCAoQoOhVn4gDEL///8Ag3wgDUIVh3wiDEIHiDwADiAEIAxCAYYgDUKAgMAAg0IUiIQ8AA0gBCAKQv///wCDIAxCFYd8IgpCCog8ABEgBCAKQgKIPAAQIAQgCkIGhiAMQoCA/gCDQg+IhDwADyAEIAlC////AIMgCkIVh3wiCUINiDwAFCAEIAlCBYg8ABMgBCAIQv///wCDIAlCFYd8Igg8ABUgBCAJQgOGIApCgIDwAINCEoiEPAASIAQgCEIIiDwAFiAEIAdC////AIMgCEIVh3wiB0ILiDwAGSAEIAdCA4g8ABggBCAIQhCIQh+DIAdCBYaEPAAXIAQgBkL///8AgyAHQhWHfCIGQgaIPAAbIAQgBkIChiAHQoCA4ACDQhOIhDwAGiAEIANC////AIMgBkIVh3wiA0IRiDwAHyAEIANCCYg8AB4gBCADQgGIPAAdIAQgA0IHhiAGQoCA/wCDQg6IhDwAHCBAQcAAEAcgPkHAABAHIAEEQCABQsAANwMACyA/QbAEaiQAQQAL2wEBA38jAEEQayIDIAA2AgwgAyABNgIIQQAhACADQQA6AAcCQCACRQ0AIAJBAXEhASACQQFHBEAgAkF+cSEEQQAhAgNAIAMgAy0AByADKAIMIABqLQAAIAMoAgggAGotAABzcjoAByADIAMtAAcgAEEBciIFIAMoAgxqLQAAIAMoAgggBWotAABzcjoAByAAQQJqIQAgAkECaiICIARHDQALCyABRQ0AIAMgAy0AByADKAIMIABqLQAAIAMoAgggAGotAABzcjoABwsgAy0AB0EBa0EIdkEBcUEBawsEAEEIC4MDAgN/An4jAEFAaiIDJAACQCACQcEAa0H/AXFBvwFLBEBBfyEEIAApAFBQBEAgACgA4AIiBUGBAU8EQCAAQUBrIgUgBSkAACIGQoABfDcAACAAIAApAEggBkL/flatfDcASCAAIABB4ABqIgQQKCAAIAAoAOACQYABayIFNgDgAiAFQYEBTw0DIAQgAEHgAWogBRALGiAAKADgAiEFCyAAQUBrIgQgBCkAACIGIAWtfCIHNwAAIAAgACkASCAGIAdWrXw3AEggAC0A5AIEQCAAQn83AFgLIABCfzcAUCAAQeAAaiIEIAVqQQBBgAIgBWsQCBogACAEECggAyAAKQAANwMAIAMgACkACDcDCCADIAApABA3AxAgAyAAKQAYNwMYIAMgACkAIDcDICADIAApACg3AyggAyAAKQAwNwMwIAMgACkAODcDOCABIAMgAhALGiAAQcAAEAcgBEGAAhAHQQAhBAsgA0FAayQAIAQPCxAJAAtBgApB9ghBsgJBvggQAQAL6RICFX4DfyAAIAAoACwiFkEFdkH///8Aca0gACgAPEEDdq0iAkKDoVZ+IAAzACogADEALEIQhkKAgPwAg4R8IghCgIBAfSIJQhWHfCIBQoOhVn4gADUAMUIHiEL///8AgyIDQtOMQ34gACgAFyIXQRh2rSAAMQAbQgiGhCAAMQAcQhCGhEICiEL///8Ag3wgACgANCIYQQR2Qf///wBxrSIEQuf2J358IBZBGHatIAAxADBCCIaEIAAxADFCEIaEQgKIQv///wCDIgVC0asIfnwgADUAOUIGiEL///8AgyIGQpPYKH58IBhBGHatIAAxADhCCIaEIAAxADlCEIaEQgGIQv///wCDIgpCmNocfnwiB3wgB0KAgEB9IhBCgICAf4N9IBdBBXZB////AHGtIANC5/YnfnwgBEKY2hx+fCAFQtOMQ358IApCk9gofnwgA0KY2hx+IAAzABUgADEAF0IQhkKAgPwAg4R8IARCk9gofnwgBULn9id+fCIHQoCAQH0iC0IViHwiDEKAgEB9Ig1CFYd8IhEgEUKAgEB9IhFCgICAf4N9IAwgAULRqwh+fCANQoCAgH+DfSAIIAlCgICAf4N9IAJC0asIfiAAKAAkIhZBGHatIAAxAChCCIaEIAAxAClCEIaEQgOIfCAGQoOhVn58IBZBBnZB////AHGtIAJC04xDfnwgBkLRqwh+fCAKQoOhVn58IgxCgIBAfSINQhWHfCIJQoCAQH0iDkIVh3wiCEKDoVZ+fCAHIAtCgICA////A4N9IANCk9gofiAAKAAPIhZBGHatIAAxABNCCIaEIAAxABRCEIaEQgOIfCAFQpjaHH58IBZBBnZB////AHGtIAVCk9gofnwiC0KAgEB9IhJCFYh8IgdCgIBAfSIPQhWIfCABQtOMQ358IAhC0asIfnwgCSAOQoCAgH+DfSIJQoOhVn58Ig5CgIBAfSITQhWHfCIUQoCAQH0iFUIVh3wgFCAVQoCAgH+DfSAOIBNCgICAf4N9IAcgD0KAgIB/g30gAULn9id+fCAIQtOMQ358IAlC0asIfnwgDCANQoCAgH+DfSAEQoOhVn4gACgAHyIWQRh2rSAAMQAjQgiGhCAAMQAkQhCGhEIBiEL///8Ag3wgAkLn9id+fCAGQtOMQ358IApC0asIfnwgFkEEdkH///8Aca0gA0KDoVZ+fCAEQtGrCH58IAJCmNocfnwgBkLn9id+fCAKQtOMQ358IgxCgIBAfSINQhWHfCIOQoCAQH0iD0IVh3wiB0KDoVZ+fCALIBJCgICA////AYN9IAFCmNocfnwgCELn9id+fCAJQtOMQ358IAdC0asIfnwgDiAPQoCAgH+DfSILQoOhVn58Ig5CgIBAfSISQhWHfCIPQoCAQH0iE0IVh3wgDyATQoCAgH+DfSAOIBJCgICAf4N9IAFCk9gofiAAKAAKIhZBGHatIAAxAA5CCIaEIAAxAA9CEIaEQgGIQv///wCDfCAIQpjaHH58IAlC5/YnfnwgB0LTjEN+fCALQtGrCH58IAwgDUKAgIB/g30gA0LRqwh+IAA1ABxCB4hC////AIN8IARC04xDfnwgBUKDoVZ+fCACQpPYKH58IAZCmNocfnwgCkLn9id+fCAQQhWHfCIBQoCAQH0iA0IVh3wiAkKDoVZ+fCAWQQR2Qf///wBxrSAIQpPYKH58IAlCmNocfnwgB0Ln9id+fCALQtOMQ358IAJC0asIfnwiBEKAgEB9IgVCFYd8IgZCgIBAfSIKQhWHfCAGIAEgA0KAgIB/g30gEUIVh3wiA0KAgEB9IghCFYciAUKDoVZ+fCAKQoCAgH+DfSABQtGrCH4gBHwgBUKAgIB/g30gCUKT2Ch+IAA1AAdCB4hC////AIN8IAdCmNocfnwgC0Ln9id+fCACQtOMQ358IAdCk9gofiAAKAACIhZBGHatIAAxAAZCCIaEIAAxAAdCEIaEQgKIQv///wCDfCALQpjaHH58IAJC5/YnfnwiBEKAgEB9IgVCFYd8IgZCgIBAfSIKQhWHfCAGIAFC04xDfnwgCkKAgIB/g30gAULn9id+IAR8IAVCgICAf4N9IBZBBXZB////AHGtIAtCk9gofnwgAkKY2hx+fCACQpPYKH4gADMAACAAMQACQhCGQoCA/ACDhHwiAkKAgEB9IgRCFYd8IgVCgIBAfSIGQhWHfCABQpjaHH4gBXwgBkKAgIB/g30gAiAEQoCAgH+DfSABQpPYKH58IgFCFYd8IgRCFYd8IgVCFYd8IgZCFYd8IgpCFYd8IglCFYd8IgdCFYd8IgtCFYd8IhBCFYd8IgxCFYd8Ig1CFYcgAyAIQoCAgH+DfXwiCEIVhyICQpPYKH4gAUL///8Ag3wiAzwAACAAIANCCIg8AAEgACACQpjaHH4gBEL///8Ag3wgA0IVh3wiAUILiDwABCAAIAFCA4g8AAMgACADQhCIQh+DIAFCBYaEPAACIAAgAkLn9id+IAVC////AIN8IAFCFYd8IgNCBog8AAYgACADQgKGIAFCgIDgAINCE4iEPAAFIAAgAkLTjEN+IAZC////AIN8IANCFYd8IgFCCYg8AAkgACABQgGIPAAIIAAgAUIHhiADQoCA/wCDQg6IhDwAByAAIAJC0asIfiAKQv///wCDfCABQhWHfCIDQgyIPAAMIAAgA0IEiDwACyAAIANCBIYgAUKAgPgAg0IRiIQ8AAogACACQoOhVn4gCUL///8Ag3wgA0IVh3wiAUIHiDwADiAAIAFCAYYgA0KAgMAAg0IUiIQ8AA0gACAHQv///wCDIAFCFYd8IgJCCog8ABEgACACQgKIPAAQIAAgAkIGhiABQoCA/gCDQg+IhDwADyAAIAtC////AIMgAkIVh3wiAUINiDwAFCAAIAFCBYg8ABMgACAQQv///wCDIAFCFYd8IgM8ABUgACABQgOGIAJCgIDwAINCEoiEPAASIAAgA0IIiDwAFiAAIAxC////AIMgA0IVh3wiAkILiDwAGSAAIAJCA4g8ABggACADQhCIQh+DIAJCBYaEPAAXIAAgDUL///8AgyACQhWHfCIBQgaIPAAbIAAgAUIChiACQoCA4ACDQhOIhDwAGiAAIAhC////AIMgAUIVh3wiAkIRiDwAHyAAIAJCCYg8AB4gACACQgGIPAAdIAAgAkIHhiABQoCA/wCDQg6IhDwAHAv4AQEKfwNAIAQgACADai0AACIBIANBkBNqIgItAABzciEEIAogASACLQDAAXNyIQogCSABIAItAKABc3IhCSAIIAEgAi0AgAFzciEIIAcgASACLQBgc3IhByAGIAEgAkFAay0AAHNyIQYgBSABIAItACBzciEFIANBAWoiA0EfRw0ACyAKIAAtAB9B/wBxIgBB/wBzIgFyQf8BcUEBayABIAlyQf8BcUEBayABIAhyQf8BcUEBayAHIABB+gBzckH/AXFBAWsgBiAAQQVzckH/AXFBAWsgACAFckH/AXFBAWsgACAEckH/AXFBAWtycnJycnJBCHZBAXEL4AkBHn8gASgCKCEDIAEoAgQhBCABKAIsIQUgASgCCCEGIAEoAjAhByABKAIMIQggASgCNCEJIAEoAhAhCiABKAI4IQsgASgCFCEMIAEoAjwhDSABKAIYIQ4gAUFAayIPKAIAIRAgASgCHCERIAEoAkQhEiABKAIgIRMgASgCSCEUIAEoAgAhFSAAIAEoAiQgASgCTGo2AiQgACATIBRqNgIgIAAgESASajYCHCAAIA4gEGo2AhggACAMIA1qNgIUIAAgCiALajYCECAAIAggCWo2AgwgACAGIAdqNgIIIAAgBCAFajYCBCAAIAMgFWo2AgAgASgCKCEFIAEoAgQhAyABKAIsIQYgASgCCCEHIAEoAjAhCCABKAIMIQkgASgCNCEKIAEoAhAhCyABKAI4IQwgASgCFCENIAEoAjwhDiABKAIYIRAgDygCACEPIAEoAhwhBCABKAJEIREgASgCICESIAEoAkghEyABKAIAIRQgACABKAJMIAEoAiRrNgJMIAAgEyASazYCSCAAIBEgBGs2AkQgAEFAayIEIA8gEGs2AgAgACAOIA1rNgI8IAAgDCALazYCOCAAIAogCWs2AjQgACAIIAdrNgIwIAAgBiADazYCLCAAQShqIgMgBSAUazYCACAAQdAAaiAAIAIQBiADIAMgAkEoahAGIABB+ABqIAJB0ABqIAFB+ABqEAYgASgCUCEVIAEoAlQhFiABKAJYIRcgASgCXCEYIAEoAmAhGSABKAJkIRogASgCaCEbIAEoAmwhHCABKAJwIR0gASgCdCEeIAMoAgAhASAAKAJQIQIgACgCLCEFIAAoAlQhBiAAKAIwIQcgACgCWCEIIAAoAjQhCSAAKAJcIQogACgCOCELIAAoAmAhDCAAKAI8IQ0gACgCZCEOIAQoAgAhDyAAKAJoIRAgACgCRCERIAAoAmwhEiAAKAJIIRMgACgCcCEUIAAgACgCTCIfIAAoAnQiIGo2AkwgACATIBRqNgJIIAAgESASajYCRCAEIA8gEGo2AgAgACANIA5qNgI8IAAgCyAMajYCOCAAIAkgCmo2AjQgACAHIAhqNgIwIAAgBSAGajYCLCADIAEgAmo2AgAgACAgIB9rNgIkIAAgFCATazYCICAAIBIgEWs2AhwgACAQIA9rNgIYIAAgDiANazYCFCAAIAwgC2s2AhAgACAKIAlrNgIMIAAgCCAHazYCCCAAIAYgBWs2AgQgACACIAFrNgIAIAAgHkEBdCIBIAAoApwBIgJrNgKcASAAIB1BAXQiAyAAKAKYASIEazYCmAEgACAcQQF0IgUgACgClAEiBms2ApQBIAAgG0EBdCIHIAAoApABIghrNgKQASAAIBpBAXQiCSAAKAKMASIKazYCjAEgACAZQQF0IgsgACgCiAEiDGs2AogBIAAgGEEBdCINIAAoAoQBIg5rNgKEASAAIBdBAXQiDyAAKAKAASIQazYCgAEgACAWQQF0IhEgACgCfCISazYCfCAAIBVBAXQiEyAAKAJ4IhRrNgJ4IAAgAyAEajYCcCAAIAUgBmo2AmwgACAHIAhqNgJoIAAgCSAKajYCZCAAIAsgDGo2AmAgACANIA5qNgJcIAAgDyAQajYCWCAAIBEgEmo2AlQgACATIBRqNgJQIAAgASACajYCdAumBAIOfgp/IAAoAiQhEiAAKAIgIRMgACgCHCEUIAAoAhghFSAAKAIUIREgAkIQWgRAIAAtAFBFQRh0IRYgACgCECIXrSEPIAAoAgwiGK0hDSAAKAIIIhmtIQsgACgCBCIarSEJIBpBBWytIRAgGUEFbK0hDiAYQQVsrSEMIBdBBWytIQogADUCACEIA0AgASgAA0ECdkH///8fcSAVaq0iAyANfiABKAAAQf///x9xIBFqrSIEIA9+fCABKAAGQQR2Qf///x9xIBRqrSIFIAt+fCABKAAJQQZ2IBNqrSIGIAl+fCASIBZqIAEoAAxBCHZqrSIHIAh+fCADIAt+IAQgDX58IAUgCX58IAYgCH58IAcgCn58IAMgCX4gBCALfnwgBSAIfnwgBiAKfnwgByAMfnwgAyAIfiAEIAl+fCAFIAp+fCAGIAx+fCAHIA5+fCADIAp+IAQgCH58IAUgDH58IAYgDn58IAcgEH58IgNCGohC/////w+DfCIEQhqIQv////8Pg3wiBUIaiEL/////D4N8IgZCGohC/////w+DfCIHQhqIp0EFbCADp0H///8fcWoiEUEadiAEp0H///8fcWohFSAFp0H///8fcSEUIAanQf///x9xIRMgB6dB////H3EhEiARQf///x9xIREgAUEQaiEBIAJCEH0iAkIPVg0ACwsgACARNgIUIAAgEjYCJCAAIBM2AiAgACAUNgIcIAAgFTYCGAutAwIMfwN+IAApAzgiDkIAUgRAIABBQGsiAiAOpyIDakEBOgAAIA5CAXxCD1gEQCAAIANqQcEAakEAQQ8gA2sQCBoLIABBAToAUCAAIAJCEBA5CyAANQI0IQ4gADUCMCEPIAA1AiwhECABIAAoAhQgACgCJCAAKAIgIAAoAhwgACgCGCIDQRp2aiICQRp2aiIGQRp2aiIJQRp2QQVsaiIEQf///x9xIgVBBWoiB0EadiADQf///x9xIARBGnZqIgRqIghBGnYgAkH///8fcSIKaiILQRp2IAZB////H3EiBmoiDEEadiAJQf///x9xaiINQYCAgCBrIgJBH3UiAyAEcSACQR92QQFrIgRB////H3EiAiAIcXIiCEEadCACIAdxIAMgBXFyciIFIAAoAihqIgc2AAAgASAFIAdLrSAQIAMgCnEgAiALcXIiBUEUdCAIQQZ2cq18fCIQPgAEIAEgDyADIAZxIAIgDHFyIgJBDnQgBUEMdnKtfCAQQiCIfCIPPgAIIAEgDiAEIA1xIAMgCXFyQQh0IAJBEnZyrXwgD0IgiHw+AAwgAEHYABAHC98EAgZ+AX8CQCAAKQM4IgNCAFIEQCAAQhAgA30iBCACIAIgBFYbIgRCAFIEfkIAIQMgBEIEWgRAIARCfIMhBSAAQUBrIQkDQCAJIAApAzggA3ynaiABIAOnai0AADoAACAJIANCAYQiCCAAKQM4fKdqIAEgCKdqLQAAOgAAIAkgA0IChCIIIAApAzh8p2ogASAIp2otAAA6AAAgCSADQgOEIgggACkDOHynaiABIAinai0AADoAACADQgR8IQMgBkIEfCIGIAVSDQALCyAEQgODIgZCAFIEQANAIAAgACkDOCADfKdqQUBrIAEgA6dqLQAAOgAAIANCAXwhAyAHQgF8IgcgBlINAAsLIAApAzgFIAMLIAR8IgM3AzggA0IQVA0BIAAgAEFAa0IQEDkgAEIANwM4IAIgBH0hAiABIASnaiEBCyACQhBaBEAgACABIAJCcIMiAxA5IAJCD4MhAiABIAOnaiEBCyACUA0AQgAhB0IAIQMgAkIEWgRAIAJCDIMhBCAAQUBrIQlCACEGA0AgCSAAKQM4IAN8p2ogASADp2otAAA6AAAgCSADQgGEIgUgACkDOHynaiABIAWnai0AADoAACAJIANCAoQiBSAAKQM4fKdqIAEgBadqLQAAOgAAIAkgA0IDhCIFIAApAzh8p2ogASAFp2otAAA6AAAgA0IEfCEDIAZCBHwiBiAEUg0ACwsgAkIDgyIEQgBSBEADQCAAIAApAzggA3ynakFAayABIAOnai0AADoAACADQgF8IQMgB0IBfCIHIARSDQALCyAAIAApAzggAnw3AzgLCwoAIAAgASACEEYLFgAgAUEgEBYgACABQcyQAigCABEBAAuzBAEUf0H0yoHZBiEDQbLaiMsHIQxB7siBmQMhDUHl8MGLBiEEIAEoAAwhDyABKAAIIQUgASgABCEGIAIoABwhEiACKAAYIRBBFCERIAIoABQhDiACKAAQIQggAigADCEJIAIoAAghCiACKAAEIQsgASgAACEBIAIoAAAhAgNAIBAgDyACIA1qQQd3cyIHIA1qQQl3cyITIAQgDmpBB3cgCXMiCSAEakEJdyAFcyIUIAlqQQ13IA5zIhUgAyAIakEHdyAKcyIKIANqQQl3IAZzIgYgCmpBDXcgCHMiCCAGakESdyADcyIDIBIgASAMakEHd3MiBWpBB3dzIg4gA2pBCXdzIhAgDmpBDXcgBXMiEiAQakESdyADcyEDIAUgBSAMakEJdyALcyILakENdyABcyIWIAtqQRJ3IAxzIgEgB2pBB3cgCHMiCCABakEJdyAUcyIFIAhqQQ13IAdzIg8gBWpBEncgAXMhDCATIAcgE2pBDXcgAnMiB2pBEncgDXMiAiAJakEHdyAWcyIBIAJqQQl3IAZzIgYgAWpBDXcgCXMiCSAGakESdyACcyENIBQgFWpBEncgBHMiBCAKakEHdyAHcyICIARqQQl3IAtzIgsgAmpBDXcgCnMiCiALakESdyAEcyEEIBFBAkshByARQQJrIREgBw0ACyAAIAQ2AAAgACAPNgAcIAAgBTYAGCAAIAY2ABQgACABNgAQIAAgAzYADCAAIAw2AAggACANNgAEQQALhwEBBH9BASEBA0AgACADaiICIAEgAi0AAGoiAToAACAAIANBAXJqIgIgAi0AACABQQh2aiIBOgAAIAAgA0ECcmoiAiACLQAAIAFBCHZqIgE6AAAgACADQQNyaiICIAItAAAgAUEIdmoiAToAACABQQh2IQEgA0EEaiEDIARBBGoiBEEERw0ACwugAgEDfyMAQeACayIIJAAgCEEgaiIKQsAAIAYgBxAXIAhB4ABqIgkgCkG8kAIoAgARAQAaIApBwAAQByAJIAQgBUHAkAIoAgARAAAaIAlBgIkCQgAgBX1CD4NBwJACKAIAEQAAGiAJIAEgAkHAkAIoAgARAAAaIAlBgIkCQgAgAn1CD4NBwJACKAIAEQAAGiAIIAU3AxggCSAIQRhqIgRCCEHAkAIoAgARAAAaIAggAjcDGCAJIARCCEHAkAIoAgARAAAaIAkgCEHEkAIoAgARAQAaIAlBgAIQByAIIAMQLSEEIAhBEBAHAkAgAEUNACAEBEAgAEEAIAKnEAgaQX8hBAwBCyAAIAEgAiAGQQEgBxAbQQAhBAsgCEHgAmokACAEC/UBAQN/IwBB4AJrIggkACAIQSBqIgpCwAAgBiAHQaSQAigCABEMABogCEHgAGoiCSAKQbyQAigCABEBABogCkHAABAHIAkgBCAFQcCQAigCABEAABogCCAFNwMYIAkgCEEYaiIEQghBwJACKAIAEQAAGiAJIAEgAkHAkAIoAgARAAAaIAggAjcDGCAJIARCCEHAkAIoAgARAAAaIAkgCEHEkAIoAgARAQAaIAlBgAIQByAIIAMQLSEEIAhBEBAHAkAgAEUNACAEBEAgAEEAIAKnEAgaQX8hBAwBCyAAIAEgAiAGIAcQTkEAIQQLIAhB4AJqJAAgBAv9AQEDfyMAQdACayIKJAAgCkEQaiILQsAAIAcgCBAXIApB0ABqIgkgC0G8kAIoAgARAQAaIAtBwAAQByAJIAUgBkHAkAIoAgARAAAaIAlBgIkCQgAgBn1CD4NBwJACKAIAEQAAGiAAIAMgBCAHQQEgCBAbIAkgACAEQcCQAigCABEAABogCUGAiQJCACAEfUIPg0HAkAIoAgARAAAaIAogBjcDCCAJIApBCGoiAEIIQcCQAigCABEAABogCiAENwMIIAkgAEIIQcCQAigCABEAABogCSABQcSQAigCABEBABogCUGAAhAHIAIEQCACQhA3AwALIApB0AJqJABBAAvSAQEDfyMAQdACayIJJAAgCUEQaiILQsAAIAcgCEGkkAIoAgARDAAaIAlB0ABqIgogC0G8kAIoAgARAQAaIAtBwAAQByAKIAUgBkHAkAIoAgARAAAaIAkgBjcDCCAKIAlBCGoiBUIIQcCQAigCABEAABogACADIAQgByAIEE4gCiAAIARBwJACKAIAEQAAGiAJIAQ3AwggCiAFQghBwJACKAIAEQAAGiAKIAFBxJACKAIAEQEAGiAKQYACEAcgAgRAIAJCEDcDAAsgCUHQAmokAEEACwQAQQMLBABBAQvIBAECfyMAQRBrIgMkACADQQA6AA9BfyEEIAAgASACQciQAigCABEDAEUEQCADIAAtAAAgAy0AD3I6AA8gAyAALQABIAMtAA9yOgAPIAMgAC0AAiADLQAPcjoADyADIAAtAAMgAy0AD3I6AA8gAyAALQAEIAMtAA9yOgAPIAMgAC0ABSADLQAPcjoADyADIAAtAAYgAy0AD3I6AA8gAyAALQAHIAMtAA9yOgAPIAMgAC0ACCADLQAPcjoADyADIAAtAAkgAy0AD3I6AA8gAyAALQAKIAMtAA9yOgAPIAMgAC0ACyADLQAPcjoADyADIAAtAAwgAy0AD3I6AA8gAyAALQANIAMtAA9yOgAPIAMgAC0ADiADLQAPcjoADyADIAAtAA8gAy0AD3I6AA8gAyAALQAQIAMtAA9yOgAPIAMgAC0AESADLQAPcjoADyADIAAtABIgAy0AD3I6AA8gAyAALQATIAMtAA9yOgAPIAMgAC0AFCADLQAPcjoADyADIAAtABUgAy0AD3I6AA8gAyAALQAWIAMtAA9yOgAPIAMgAC0AFyADLQAPcjoADyADIAAtABggAy0AD3I6AA8gAyAALQAZIAMtAA9yOgAPIAMgAC0AGiADLQAPcjoADyADIAAtABsgAy0AD3I6AA8gAyAALQAcIAMtAA9yOgAPIAMgAC0AHSADLQAPcjoADyADIAAtAB4gAy0AD3I6AA8gAyAALQAfIAMtAA9yOgAPIAMtAA9BF3RBgICABGtBH3UhBAsgA0EQaiQAIAQL8QQCCX8EfiMAQYABayIDJAAgAEEBNgIAIABCADcCBCAAQgA3AgwgAEIANwIUIABCADcCHCAAQoCAgIAQNwIkIABBLGpBAEHMABAIGiAAIAFBwAdsQZAVaiIBIAIgAkEfdSACcUEBdGsiBEEBc0H/AXFBAWtBH3YQESAAIAFB+ABqIARBAnNB/wFxQQFrQR92EBEgACABQfABaiAEQQNzQf8BcUEBa0EfdhARIAAgAUHoAmogBEEEc0H/AXFBAWtBH3YQESAAIAFB4ANqIARBBXNB/wFxQQFrQR92EBEgACABQdgEaiAEQQZzQf8BcUEBa0EfdhARIAAgAUHQBWogBEEHc0H/AXFBAWtBH3YQESAAIAFByAZqIARBCHNB/wFxQQFrQR92EBEgACkCKCEMIAApAjAhDSAAKQI4IQ4gAEFAaykCACEPIAMgACkCSDcDKCADIA83AyAgAyAONwMYIAMgDTcDECADIAw3AwggACkCCCEMIAApAhAhDSAAKQIYIQ4gACkCACEPIAMgACkCIDcDUCADIA43A0ggA0FAayANNwMAIAMgDDcDOCADIA83AzAgACgCUCEBIAAoAlQhBCAAKAJYIQUgACgCXCEGIAAoAmAhByAAKAJkIQggACgCaCEJIAAoAmwhCiAAKAJwIQsgA0EAIAAoAnRrNgJ8IANBACALazYCeCADQQAgCms2AnQgA0EAIAlrNgJwIANBACAIazYCbCADQQAgB2s2AmggA0EAIAZrNgJkIANBACAFazYCYCADQQAgBGs2AlwgA0EAIAFrNgJYIAAgA0EIaiACQYABcUEHdhARIANBgAFqJAAL8AkBHn8gASgCKCEDIAEoAgQhBCABKAIsIQUgASgCCCEGIAEoAjAhByABKAIMIQggASgCNCEJIAEoAhAhCiABKAI4IQsgASgCFCEMIAEoAjwhDSABKAIYIQ4gAUFAayIPKAIAIRAgASgCHCERIAEoAkQhEiABKAIgIRMgASgCSCEUIAEoAgAhFSAAIAEoAiQgASgCTGo2AiQgACATIBRqNgIgIAAgESASajYCHCAAIA4gEGo2AhggACAMIA1qNgIUIAAgCiALajYCECAAIAggCWo2AgwgACAGIAdqNgIIIAAgBCAFajYCBCAAIAMgFWo2AgAgASgCKCEFIAEoAgQhAyABKAIsIQYgASgCCCEHIAEoAjAhCCABKAIMIQkgASgCNCEKIAEoAhAhCyABKAI4IQwgASgCFCENIAEoAjwhDiABKAIYIRAgDygCACEPIAEoAhwhBCABKAJEIREgASgCICESIAEoAkghEyABKAIAIRQgACABKAJMIAEoAiRrNgJMIAAgEyASazYCSCAAIBEgBGs2AkQgAEFAayIEIA8gEGs2AgAgACAOIA1rNgI8IAAgDCALazYCOCAAIAogCWs2AjQgACAIIAdrNgIwIAAgBiADazYCLCAAQShqIgMgBSAUazYCACAAQdAAaiAAIAJBKGoQBiADIAMgAhAGIABB+ABqIAJB+ABqIAFB+ABqEAYgACABQdAAaiACQdAAahAGIAAoAgQhFSAAKAIIIRYgACgCDCEXIAAoAhAhGCAAKAIUIRkgACgCGCEaIAAoAhwhGyAAKAIgIRwgACgCJCEdIAMoAgAhASAAKAJQIQIgACgCLCEFIAAoAlQhBiAAKAIwIQcgACgCWCEIIAAoAjQhCSAAKAJcIQogACgCOCELIAAoAmAhDCAAKAI8IQ0gACgCZCEOIAQoAgAhDyAAKAJoIRAgACgCRCERIAAoAmwhEiAAKAJIIRMgACgCcCEUIAAoAgAhHiAAIAAoAkwiHyAAKAJ0IiBqNgJMIAAgEyAUajYCSCAAIBEgEmo2AkQgBCAPIBBqNgIAIAAgDSAOajYCPCAAIAsgDGo2AjggACAJIApqNgI0IAAgByAIajYCMCAAIAUgBmo2AiwgAyABIAJqNgIAIAAgICAfazYCJCAAIBQgE2s2AiAgACASIBFrNgIcIAAgECAPazYCGCAAIA4gDWs2AhQgACAMIAtrNgIQIAAgCiAJazYCDCAAIAggB2s2AgggACAGIAVrNgIEIAAgAiABazYCACAAIAAoApwBIgEgHUEBdCICajYCnAEgACAAKAKYASIDIBxBAXQiBGo2ApgBIAAgACgClAEiBSAbQQF0IgZqNgKUASAAIAAoApABIgcgGkEBdCIIajYCkAEgACAAKAKMASIJIBlBAXQiCmo2AowBIAAgACgCiAEiCyAYQQF0IgxqNgKIASAAIAAoAoQBIg0gF0EBdCIOajYChAEgACAAKAKAASIPIBZBAXQiEGo2AoABIAAgACgCfCIRIBVBAXQiEmo2AnwgACAAKAJ4IhMgHkEBdCIUajYCeCAAIAQgA2s2AnAgACAGIAVrNgJsIAAgCCAHazYCaCAAIAogCWs2AmQgACAMIAtrNgJgIAAgDiANazYCXCAAIBAgD2s2AlggACASIBFrNgJUIAAgFCATazYCUCAAIAIgAWs2AnQLrQ4BF38jAEHAAmsiAyQAIABBKGoiCSABEEogAEIANwJUIABBATYCUCAAQgA3AlwgAEIANwJkIABCADcCbCAAQQA2AnQgA0HwAWoiCCAJEAUgA0HAAWoiBiAIQcAKEAZBfyEKIAMgAygC8AFBAWsiCzYC8AEgAyADKALAAUEBajYCwAEgAygC9AEhDCADKAL4ASENIAMoAvwBIQ4gAygCgAIhDyADKAKEAiEQIAMoAogCIREgAygCjAIhEiADKAKQAiETIAMoApQCIRQgA0GQAWoiByAGEAUgByAHIAYQBiAAIAcQBSAAIAAgBhAGIAAgACAIEAYjAEGQAWsiBCQAIARB4ABqIgUgABAFIARBMGoiAiAFEAUgAiACEAUgAiAAIAIQBiAFIAUgAhAGIAUgBRAFIAUgAiAFEAYgAiAFEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgBSACIAUQBiACIAUQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIgBRAGIAQgAhAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAIgBCACEAYgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgBSACIAUQBiACIAUQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIgBRAGIAQgAhAFQQEhAgNAIAQgBBAFIAJBAWoiAkHkAEcNAAsgBEEwaiICIAQgAhAGIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIARB4ABqIgUgAiAFEAYgBSAFEAUgBSAFEAUgACAFIAAQBiAEQZABaiQAIAAgACAHEAYgACAAIAgQBiADQeAAaiICIAAQBSACIAIgBhAGIAMgAygChAEiAiAUazYCVCADIAMoAoABIgQgE2s2AlAgAyADKAJ8IgUgEms2AkwgAyADKAJ4IgYgEWs2AkggAyADKAJ0IgcgEGs2AkQgAyADKAJwIgggD2s2AkAgAyADKAJsIhUgDms2AjwgAyADKAJoIhYgDWs2AjggAyADKAJkIhcgDGs2AjQgAyADKAJgIhggC2s2AjAgAyADQTBqEBICQCADQSAQH0UEQCADIAIgFGo2AiQgAyAEIBNqNgIgIAMgBSASajYCHCADIAYgEWo2AhggAyAHIBBqNgIUIAMgCCAPajYCECADIA4gFWo2AgwgAyANIBZqNgIIIAMgDCAXajYCBCADIAsgGGo2AgAgA0GgAmoiAiADEBIgAkEgEB9FDQEgACAAQfAKEAYLIANBoAJqIAAQEiADLQCgAkEBcSABLQAfQQd2RgRAIABBACAAKAIAazYCACAAQQAgACgCJGs2AiQgAEEAIAAoAiBrNgIgIABBACAAKAIcazYCHCAAQQAgACgCGGs2AhggAEEAIAAoAhRrNgIUIABBACAAKAIQazYCECAAQQAgACgCDGs2AgwgAEEAIAAoAghrNgIIIABBACAAKAIEazYCBAsgAEH4AGogACAJEAZBACEKCyADQcACaiQAIAoL9AQBGX4gATEAHyECIAExAB4hBiABMQAdIQ4gATEABiEHIAExAAUhCCABMQAEIQMgATEACSEPIAExAAghECABMQAHIREgATEADCEJIAExAAshCiABMQAKIQsgATEADyEMIAExAA4hEiABMQANIRMgATEAHCEEIAExABshFCABMQAaIRUgATEAGSEFIAExABghFiABMQAXIRcgATUAACEYIAAgATEAFUIPhiABMQAUQgeGhCABMQAWQheGhCABNQAQIhlCgICACHwiGkIZiHwiDSANQoCAgBB8Ig1CgICA4A+DfT4CGCAAIBZCDYYgF0IFhoQgBUIVhoQiBSANQhqIfCAFQoCAgAh8IgVCgICA8AODfT4CHCAAIBRCDIYgFUIEhoQgBEIUhoQgBUIZiHwiBCAEQoCAgBB8IgRCgICA4A+DfT4CICAAIBkgGkKAgIDwD4N9IBJCCoYgE0IChoQgDEIShoQgCkILhiALQgOGhCAJQhOGhCIJQoCAgAh8IgpCGYh8IgtCgICAEHwiDEIaiHw+AhQgACALIAxCgICA4A+DfT4CECAAIBBCDYYgEUIFhoQgD0IVhoQgCEIOhiADQgaGhCAHQhaGhCIHQoCAgAh8IghCGYh8IgMgA0KAgIAQfCIDQoCAgOAPg30+AgggACACQhKGQoCA8A+DIAZCCoYgDkIChoSEIgIgBEIaiHwgAkKAgIAIfCICQoCAgBCDfT4CJCAAIANCGoggCXwgCkKAgIDwAIN9PgIMIAAgByAIQoCAgPAHg30gGCACQhmIQhN+fCICQoCAgBB8IgZCGoh8PgIEIAAgAiAGQoCAgOAPg30+AgALiwEBAX8jAEEQayICIAA2AgwgAiABNgIIQQAhACACQQA2AgQDQCACIAIoAgQgAigCDCAAai0AACACKAIIIABqLQAAc3I2AgQgAiACKAIEIABBAXIiASACKAIMai0AACACKAIIIAFqLQAAc3I2AgQgAEECaiIAQSBHDQALIAIoAgRBAWtBCHZBAXFBAWsLKQEBfyMAQRBrIgAkACAAQQA6AA9B/JACIABBD2pBABAAGiAAQRBqJAALKAAgAkKAgICAEFoEQBAJAAsgACABIAIgA0EBIARBsJACKAIAEQgAGgsoACACQoCAgIAQWgRAEAkACyAAIAEgAiADQgEgBEGskAIoAgARCQAaCy0BAX4gAq0gA61CIIaEIgZCEFoEfyAAIAFBEGogASAGQhB9IAQgBRAwBUF/CwsYACAAIAEgAiADrSAErUIghoQgBSAGEDALGAAgACABIAIgA60gBK1CIIaEIAUgBhAgC0oBAn8jAEEgayIGJABBfyEHAkAgAkIQVA0AIAYgBCAFECENACAAIAFBEGogASACQhB9IAMgBhAwIQcgBkEgEAcLIAZBIGokACAHC08BAn8jAEEgayIGJAAgAkLw////D1QEQEF/IQcgBiAEIAUQIUUEQCAAQRBqIAAgASACIAMgBhAgIQcgBkEgEAcLIAZBIGokACAHDwsQCQALNwEBfyMAQUBqIgIkACAAIAIQEyAAQdABaiIAIAJCwAAQDBogACABEBMgAkHAABAHIAJBQGskAAsLACAAIAEgAhAMGguEAwEGfyMAQcABayIEJAAgABAZIARBQGtBNkGAARAIGgNAIARBQGsiBSACaiIDIAMtAAAgASACai0AAHM6AAAgBSACQQFyIgNqIgYgBi0AACABIANqLQAAczoAACAFIAJBAnIiA2oiBiAGLQAAIAEgA2otAABzOgAAIAUgAkEDciIDaiIFIAUtAAAgASADai0AAHM6AAAgAkEEaiECIAdBBGoiB0EgRw0ACyAAIARBQGsiAkKAARAMGiAAQdABaiIFEBkgAkHcAEGAARAIGkEAIQJBACEHA0AgBEFAayIAIAJqIgMgAy0AACABIAJqLQAAczoAACAAIAJBAXIiA2oiBiAGLQAAIAEgA2otAABzOgAAIAAgAkECciIDaiIGIAYtAAAgASADai0AAHM6AAAgACACQQNyIgNqIgAgAC0AACABIANqLQAAczoAACACQQRqIQIgB0EEaiIHQSBHDQALIAUgBEFAayIAQoABEAwaIABBgAEQByAEQcAAEAcgBEHAAWokAAvVAgECfyMAQZADayIIJAAgCEEANgIEIAhBEGoiCSAGIAcQJyAIIAYpABA3AgggCEHQAGoiB0LAACAIQQRqIAkQFyAIQZABaiIGIAdBvJACKAIAEQEAGiAHQcAAEAcgBiAEIAVBwJACKAIAEQAAGiAGQYCQAkIAIAV9Qg+DQcCQAigCABEAABogBiABIAJBwJACKAIAEQAAGiAGQYCQAkIAIAJ9Qg+DQcCQAigCABEAABogCCAFNwNIIAYgCEHIAGoiBEIIQcCQAigCABEAABogCCACNwNIIAYgBEIIQcCQAigCABEAABogBiAIQTBqIgRBxJACKAIAEQEAGiAGQYACEAcgBCADEC0hBiAEQRAQBwJAIABFDQAgBgRAIABBACACpxAIGkF/IQYMAQsgACABIAIgCEEEaiAIQRBqEE1BACEGCyAIQRBqQSAQByAIQZADaiQAIAYLpwIBA38jAEGAA2siCSQAIAlBADYCBCAJQRBqIgogByAIECcgCSAHKQAQNwIIIAlBQGsiCELAACAJQQRqIgsgChAXIAlBgAFqIgcgCEG8kAIoAgARAQAaIAhBwAAQByAHIAUgBkHAkAIoAgARAAAaIAdBgJACQgAgBn1CD4NBwJACKAIAEQAAGiAAIAMgBCALIAoQTSAHIAAgBEHAkAIoAgARAAAaIAdBgJACQgAgBH1CD4NBwJACKAIAEQAAGiAJIAY3AzggByAJQThqIgBCCEHAkAIoAgARAAAaIAkgBDcDOCAHIABCCEHAkAIoAgARAAAaIAcgAUHEkAIoAgARAQAaIAdBgAIQByACBEAgAkIQNwMACyAJQRBqQSAQByAJQYADaiQAQQALygUCBX8CfkF/IQYCQCABQcEAa0FASQ0AIAVBwABLDQACfyABQf8BcSEGIAVB/wFxIQUjACIBIQkgAUGABGtBQHEiASQAAkAgAkUgA0IAUnENACAARQ0AIAZBwQBrQf8BcUG/AU0NACAEQQEgBRtFDQAgBUHBAE8NAAJ/IAUEQCAERQ0CIAFBQGtBAEGlAhAIGiABQvnC+JuRo7Pw2wA3AzggAULr+obav7X2wR83AzAgAUKf2PnZwpHagpt/NwMoIAFC0YWa7/rPlIfRADcDICABQvHt9Pilp/2npX83AxggAUKr8NP0r+68tzw3AxAgAUK7zqqm2NDrs7t/NwMIIAEgBq0gBa1CCIaEQoiS95X/zPmE6gCFNwMAIAFBgANqIgcgBWpBAEGAASAFaxAIGiAHIAQgBRALGiABQeAAaiAHQYABEAsaIAFBgAE2AuACIAdBgAEQB0GAAQwBCyABQUBrQQBBpQIQCBogAUL5wvibkaOz8NsANwM4IAFC6/qG2r+19sEfNwMwIAFCn9j52cKR2oKbfzcDKCABQtGFmu/6z5SH0QA3AyAgAULx7fT4paf9p6V/NwMYIAFCq/DT9K/uvLc8NwMQIAFCu86qptjQ67O7fzcDCCABIAatQoiS95X/zPmE6gCFNwMAQQALIQQCQCADUA0AIAFB4AFqIQogAUHgAGohBQNAIAQgBWohCEGAAiAEayIHrSILIANaBEAgCCACIAOnIgIQCxogASABKALgAiACajYC4AIMAgsgCCACIAcQCxogASABKALgAiAHajYC4AIgASABKQNAIgxCgAF8NwNAIAEgASkDSCAMQv9+Vq18NwNIIAEgBRAoIAUgCkGAARALGiABIAEoAuACQYABayIENgLgAiACIAdqIQIgAyALfSIDQgBSDQALCyABIAAgBhA1GiAJJABBAAwBCxAJAAshBgsgBgu2AQIBfwN+IwBBoAFrIgMkACABIAJCIBAYGiABIAEtAABB+AFxOgAAIAEgAS0AH0E/cUHAAHI6AB8gAyABECogACADECsgAikACCEEIAIpABAhBSACKQAAIQYgASACKQAYNwAYIAEgBTcAECABIAQ3AAggASAGNwAAIAApAAghBCAAKQAQIQUgACkAACEGIAEgACkAGDcAOCABIAU3ADAgASAENwAoIAEgBjcAICADQaABaiQAQQALBQBBv38LBQBB0AELbQEBfyMAQUBqIgIkACACIAFCIBAYGiACIAItAABB+AFxOgAAIAIgAi0AH0E/cUHAAHI6AB8gACACKQMQNwAQIAAgAikDCDcACCAAIAIpAwA3AAAgACACKQMYNwAYIAJBwAAQByACQUBrJABBAAvXFAIPfyd+IwBBgAJrIgMkAEF/IRACQCABEDcNACADQeAAaiABEEkNACMAQYAQayICJAAgAkGABWoiCiADQeAAaiIBEA0gASkCCCERIAEpAhAhEiABKQIYIRMgASkCACEUIAIgASkCIDcD4AIgAiATNwPYAiACIBI3A9ACIAIgETcDyAIgAiAUNwPAAiABKQIoIREgASkCMCESIAEpAjghEyABQUBrKQIAIRQgAiABKQJINwOIAyACIBQ3A4ADIAIgEzcD+AIgAiASNwPwAiACIBE3A+gCIAEpAlAhESABKQJYIRIgASkCYCETIAEpAmghFCACIAEpAnA3A7ADIAIgFDcDqAMgAiATNwOgAyACIBI3A5gDIAIgETcDkAMgAkHgA2oiASACQcACaiIHEBUgAkGgAWoiCCABIAJB2ARqIgUQBiACQcgBaiACQYgEaiIGIAJBsARqIgQQBiACQfABaiAEIAUQBiACQZgCaiABIAYQBiABIAggChAOIAcgASAFEAYgAkHoAmoiCiAGIAQQBiACQZADaiILIAQgBRAGIAJBuANqIgwgASAGEAYgAkGgBmoiCSAHEA0gASAIIAkQDiAHIAEgBRAGIAogBiAEEAYgCyAEIAUQBiAMIAEgBhAGIAJBwAdqIgkgBxANIAEgCCAJEA4gByABIAUQBiAKIAYgBBAGIAsgBCAFEAYgDCABIAYQBiACQeAIaiIJIAcQDSABIAggCRAOIAcgASAFEAYgCiAGIAQQBiALIAQgBRAGIAwgASAGEAYgAkGACmoiCSAHEA0gASAIIAkQDiAHIAEgBRAGIAogBiAEEAYgCyAEIAUQBiAMIAEgBhAGIAJBoAtqIgkgBxANIAEgCCAJEA4gByABIAUQBiAKIAYgBBAGIAsgBCAFEAYgDCABIAYQBiACQcAMaiIJIAcQDSABIAggCRAOIAcgASAFEAYgCiAGIAQQBiALIAQgBRAGIAwgASAGEAYgAkHgDWogBxANIAJCADcDICACQgA3AxggAkIANwMQIAJCADcDCCACQgA3AiwgAkIANwI0IAJCADcCPCACQgA3AkQgAkKAgICAEDcCTCACQgA3AwAgAkEBNgIoIAJB1ABqQQBBzAAQCBogAkH4AGohCSACQdAAaiEOIAJBKGohD0H8ASEBA0AgAiACKQMgNwOoDyACIAIpAxg3A6APIAIgAikDEDcDmA8gAiACKQMINwOQDyACIAIpAwA3A4gPIAIgAikDSDcD0A8gAiACKQNANwPIDyACIAIpAzg3A8APIAIgAikDMDcDuA8gAiACKQMoNwOwDyACIAIpA1A3A9gPIAIgAikDWDcD4A8gAiACKQNgNwPoDyACIAIpA2g3A/APIAIgAikDcDcD+A8gASIHQZCFAmosAAAhASACQeADaiACQYgPahAVAkAgAUEASgRAIAJBwAJqIg0gAkHgA2oiCCAFEAYgCiAGIAQQBiALIAQgBRAGIAwgCCAGEAYgCCANIAJBgAVqIAFB/gFxQQF2QaABbGoQDgwBCyABQQBODQAgAkHAAmoiDSACQeADaiIIIAUQBiAKIAYgBBAGIAsgBCAFEAYgDCAIIAYQBiAIIA0gAkGABWpBACABa0H+AXFBAXZBoAFsahBICyACIAJB4ANqIgEgBRAGIA8gBiAEEAYgDiAEIAUQBiAJIAEgBhAGIAdBAWshASAHDQALIAJBgAVqIgEgAhASIAFBIBAfIQEgAkGAEGokACABRQ0AIANBASADKAKIASIEazYCAEEAIRAgA0EAIAMoAqwBIgFrNgIkIANBACADKAKoASIKazYCICADQQAgAygCpAEiB2s2AhwgA0EAIAMoAqABIgtrNgIYIANBACADKAKcASICazYCFCADQQAgAygCmAEiDGs2AhAgA0EAIAMoApQBIgVrNgIMIANBACADKAKQASIIazYCCCADQQAgAygCjAEiBms2AgQgAyADECwgAyADKAIEIgmsIhkgAkEBdKwiIn4gAzQCACIRIAusIhJ+fCADKAIIIgusIhsgDKwiE358IAMoAgwiDKwiHiAFQQF0rCIjfnwgAygCECIOrCIfIAisIhR+fCADKAIUIgisIiQgBkEBdKwiJX58IAMoAhgiD6wiLiAEQQFqrCIXfnwgAygCHCIEQRNsrCIaIAFBAXSsIiZ+fCADKAIgIg1BE2ysIhUgCqwiGH58IAMoAiQiCkETbKwiFiAHQQF0rCInfnwgEyAZfiARIAKsIih+fCAbIAWsIil+fCAUIB5+fCAfIAasIip+fCAXICR+fCAPQRNsrCIcIAGsIit+fCAYIBp+fCAVIAesIix+fCASIBZ+fCAZICN+IBEgE358IBQgG358IB4gJX58IBcgH358IAhBE2ysIi0gJn58IBggHH58IBogJ358IBIgFX58IBYgIn58IjBCgICAEHwiMUIah3wiMkKAgIAIfCIzQhmHfCIgICBCgICAEHwiIUKAgIDgD4N9PgJIIAMgGSAlfiARIBR+fCAXIBt+fCAMQRNsrCIdICZ+fCAOQRNsrCIgIBh+fCAnIC1+fCASIBx+fCAaICJ+fCATIBV+fCAWICN+fCAXIBl+IBEgKn58IAtBE2ysIi8gK358IBggHX58ICAgLH58IBIgLX58IBwgKH58IBMgGn58IBUgKX58IBQgFn58IAlBE2ysICZ+IBEgF358IBggL358IB0gJ358IBIgIH58ICIgLX58IBMgHH58IBogI358IBQgFX58IBYgJX58Ii9CgICAEHwiNEIah3wiNUKAgIAIfCI2QhmHfCIdIB1CgICAEHwiN0KAgIDgD4N9PgI4IAMgEiAZfiARICx+fCAbICh+fCATIB5+fCAfICl+fCAUICR+fCAqIC5+fCAErCIdIBd+fCAVICt+fCAWIBh+fCAhQhqHfCIhICFCgICACHwiIUKAgIDwD4N9PgJMIAMgFCAZfiARICl+fCAbICp+fCAXIB5+fCAgICt+fCAYIC1+fCAcICx+fCASIBp+fCAVICh+fCATIBZ+fCA3QhqHfCIVIBVCgICACHwiFUKAgIDwD4N9PgI8IAMgGSAnfiARIBh+fCASIBt+fCAeICJ+fCATIB9+fCAjICR+fCAUIC5+fCAdICV+fCANrCIaIBd+fCAWICZ+fCAhQhmHfCIWIBZCgICAEHwiFkKAgIDgD4N9PgJQIAMgMiAzQoCAgPAPg30gMCAxQoCAgGCDfSAVQhmHfCIVQoCAgBB8IhxCGoh8PgJEIAMgFSAcQoCAgOAPg30+AkAgAyAYIBl+IBEgK358IBsgLH58IBIgHn58IB8gKH58IBMgJH58ICkgLn58IBQgHX58IBogKn58IAqsIBd+fCAWQhqHfCIRIBFCgICACHwiEUKAgIDwD4N9PgJUIAMgNSA2QoCAgPAPg30gLyA0QoCAgGCDfSARQhmHQhN+fCIRQoCAgBB8IhJCGoh8PgI0IAMgESASQoCAgOAPg30+AjAgACADQTBqEBILIANBgAJqJAAgEAsEAEEMCwQAQQILBABBbgsEAEERCwQAQTQLnwECAX8BfiMAQTBrIgEkACABIAApABg3AxggASAAKQAQNwMQIAEgACkAADcDACABIAApAAg3AwggASAAKQAkNwMgIAEgAUIoIABBIGpBACAAQbCQAigCABEIABogACABKQMYNwAYIAAgASkDEDcAECAAIAEpAwg3AAggACABKQMANwAAIAEpAyAhAiAAQQE2ACAgACACNwAkIAFBMGokAAsqAQF+IAAgASACECcgAEEBNgAgIAEpABAhAyAAQgA3ACwgACADNwAkQQALMAEBfiABQRgQFiAAIAEgAhAnIABBATYAICABKQAQIQMgAEIANwAsIAAgAzcAJEEACyQAQeSaAigCAAR/QQEFEExB0JoCQRAQFkHkmgJBATYCAEEACwvqBAEFfyMAQfAAayIGJAAgAkIAUgRAIAYgBSkAGDcDGCAGIAUpABA3AxAgBiAFKQAANwMAIAYgBSkACDcDCCAGIAMpAAA3A2AgBiAEPABoIAYgBEI4iDwAbyAGIARCMIg8AG4gBiAEQiiIPABtIAYgBEIgiDwAbCAGIARCGIg8AGsgBiAEQhCIPABqIAYgBEIIiDwAaQJAIAJCwABaBEADQEEAIQUgBkEgaiAGQeAAaiAGECkDQCAAIAVqIAZBIGoiByAFai0AACABIAVqLQAAczoAACAAIAVBAXIiA2ogAyAHai0AACABIANqLQAAczoAACAFQQJqIgVBwABHDQALIAYgBi0AaEEBaiIDOgBoIAYgBi0AaSADQQh2aiIDOgBpIAYgBi0AaiADQQh2aiIDOgBqIAYgBi0AayADQQh2aiIDOgBrIAYgBi0AbCADQQh2aiIDOgBsIAYgBi0AbSADQQh2aiIDOgBtIAYgBi0AbiADQQh2aiIDOgBuIAYgBi0AbyADQQh2ajoAbyABQUBrIQEgAEFAayEAIAJCQHwiAkI/Vg0ACyACUA0BC0EAIQUgBkEgaiAGQeAAaiAGECkgAqciA0EBcSEIIANBAUcEQCADQX5xIQlBACEDA0AgACAFaiAGQSBqIgogBWotAAAgASAFai0AAHM6AAAgACAFQQFyIgdqIAcgCmotAAAgASAHai0AAHM6AAAgBUECaiEFIANBAmoiAyAJRw0ACwsgCEUNACAAIAVqIAZBIGogBWotAAAgASAFai0AAHM6AAALIAZBIGpBwAAQByAGQSAQBwsgBkHwAGokAEEAC4IEAgZ/AX4jAEHwAGsiBCQAIAFCAFIEQCAEIAMpABg3AxggBCADKQAQNwMQIAQgAykAADcDACAEIAMpAAg3AwggAikAACEKIARCADcDaCAEIAo3A2ACQCABQsAAWgRAA0AgACAEQeAAaiAEECkgBCAELQBoQQFqIgI6AGggBCAELQBpIAJBCHZqIgI6AGkgBCAELQBqIAJBCHZqIgI6AGogBCAELQBrIAJBCHZqIgI6AGsgBCAELQBsIAJBCHZqIgI6AGwgBCAELQBtIAJBCHZqIgI6AG0gBCAELQBuIAJBCHZqIgI6AG4gBCAELQBvIAJBCHZqOgBvIABBQGshACABQkB8IgFCP1YNAAsgAVANAQtBACECIARBIGogBEHgAGogBBApIAGnIgVBA3EhB0EAIQMgBUEBa0EDTwRAIAVBfHEhCEEAIQUDQCAAIANqIARBIGoiCSADai0AADoAACAAIANBAXIiBmogBiAJai0AADoAACAAIANBAnIiBmogBEEgaiAGai0AADoAACAAIANBA3IiBmogBEEgaiAGai0AADoAACADQQRqIQMgBUEEaiIFIAhHDQALCyAHRQ0AA0AgACADaiAEQSBqIANqLQAAOgAAIANBAWohAyACQQFqIgIgB0cNAAsLIARBIGpBwAAQByAEQSAQBwsgBEHwAGokAEEAC4YGARR/IwBBsAJrIgIkACAAIAEtAAA6AAAgACABLQABOgABIAAgAS0AAjoAAiAAIAEtAAM6AAMgACABLQAEOgAEIAAgAS0ABToABSAAIAEtAAY6AAYgACABLQAHOgAHIAAgAS0ACDoACCAAIAEtAAk6AAkgACABLQAKOgAKIAAgAS0ACzoACyAAIAEtAAw6AAwgACABLQANOgANIAAgAS0ADjoADiAAIAEtAA86AA8gACABLQAQOgAQIAAgAS0AEToAESAAIAEtABI6ABIgACABLQATOgATIAAgAS0AFDoAFCAAIAEtABU6ABUgACABLQAWOgAWIAAgAS0AFzoAFyAAIAEtABg6ABggACABLQAZOgAZIAAgAS0AGjoAGiAAIAEtABs6ABsgACABLQAcOgAcIAAgAS0AHToAHSAAIAEtAB46AB4gAS0AHyEBIAAgAC0AAEH4AXE6AAAgACABQT9xQcAAcjoAHyACQTBqIAAQKiACKAKEASEBIAIoAlwhAyACKAKIASEEIAIoAmAhBSACKAKMASEGIAIoAmQhByACKAKQASEIIAIoAmghCSACKAKUASEKIAIoAmwhCyACKAKYASEMIAIoAnAhDSACKAKcASEOIAIoAnQhDyACKAKgASEQIAIoAnghESACKAKAASESIAIoAlghEyACIAIoAnwiFCACKAKkASIVajYCpAIgAiAQIBFqNgKgAiACIA4gD2o2ApwCIAIgDCANajYCmAIgAiAKIAtqNgKUAiACIAggCWo2ApACIAIgBiAHajYCjAIgAiAEIAVqNgKIAiACIAEgA2o2AoQCIAIgEiATajYCgAIgAiAVIBRrNgL0ASACIBAgEWs2AvABIAIgDiAPazYC7AEgAiAMIA1rNgLoASACIAogC2s2AuQBIAIgCCAJazYC4AEgAiAGIAdrNgLcASACIAQgBWs2AtgBIAIgASADazYC1AEgAiASIBNrNgLQASACQdABaiIBIAEQLCACIAJBgAJqIAEQBiAAIAIQEiACQbACaiQAQQAL+RwCPX8MfiMAQfACayIDJAADQCACIAZqLQAAIgQgBkGQhwJqIgktAABzIAdyIQcgBCAJLQDAAXMgBXIhBSAEIAktAKABcyAMciEMIAQgCS0AgAFzIAhyIQggBCAJLQBgcyANciENIAQgCUFAay0AAHMgC3IhCyAEIAktACBzIApyIQogBkEBaiIGQR9HDQALQX8hCSACLQAfQf8AcSIEIApyQf8BcUEBayAEIAdyQf8BcUEBa3IgBCALckH/AXFBAWtyIARB1wBzIA1yQf8BcUEBa3IgBEH/AHMiBCAIckH/AXFBAWtyIAQgDHJB/wFxQQFrciAEIAVyQf8BcUEBa3JBgAJxRQRAIAMgASkAGDcD6AIgAyABKQAQNwPgAiADIAEpAAAiQjcD0AIgAyABKQAINwPYAiADIEKnQfgBcToA0AIgAyADLQDvAkE/cUHAAHI6AO8CIANBoAJqIAIQSiADQgA3AoQCIANCADcCjAIgA0EANgKUAiADQgA3A9ABIANCADcD2AEgA0IANwPgASADQgA3AvQBIANBATYC8AEgA0IANwL8ASADQgA3A8ABIANCADcDyAEgAyADKQO4AjcDqAEgAyADKQOwAjcDoAEgAyADKQOoAjcDmAEgAyADKQOgAjcDkAEgAyADKQPAAjcDsAEgA0IANwJ0IANCADcCfCADQQA2AoQBIANCADcCZCADQQE2AmAgA0IANwJsQf4BIQJBACEEA0AgAygClAIhCSADKAK0ASEGIAMoAmAhByADKALAASEKIAMoApABIQsgAygC8AEhDSADKAJkIQggAygCxAEhDCADKAKUASEFIAMoAvQBIRAgAygCaCEOIAMoAsgBIREgAygCmAEhEiADKAL4ASETIAMoAmwhDyADKALMASEUIAMoApwBIRUgAygC/AEhFiADKAJwIRggAygC0AEhHCADKAKgASEdIAMoAoACIR4gAygCdCEaIAMoAtQBIR8gAygCpAEhICADKAKEAiEhIAMoAnghGSADKALYASEiIAMoAqgBISMgAygCiAIhJCADKAJ8IRsgAygC3AEhJSADKAKsASEmIAMoAowCIScgAygCgAEhFyADKALgASEoIAMoArABISkgAygCkAIhLCADQQAgBCADQdACaiACIgFBA3ZqLQAAIAJBB3F2QQFxIgRzayICIAMoAoQBIiogAygC5AEiK3NxIi0gKnMiKjYChAEgAyAGIAYgCXMgAnEiLnMiLyAqazYCVCADIBcgFyAocyACcSIwcyIGNgKAASADICkgKSAscyACcSIXcyIpIAZrNgJQIAMgGyAbICVzIAJxIjFzIhs2AnwgAyAmICYgJ3MgAnEiMnMiJiAbazYCTCADIBkgGSAicyACcSIzcyIZNgJ4IAMgIyAjICRzIAJxIjRzIiMgGWs2AkggAyAaIBogH3MgAnEiNXMiGjYCdCADICAgICAhcyACcSI2cyIgIBprNgJEIAMgGCAYIBxzIAJxIjdzIhg2AnAgAyAdIB0gHnMgAnEiOHMiHSAYazYCQCADIA8gDyAUcyACcSI5cyIPNgJsIAMgFSAVIBZzIAJxIjpzIhUgD2s2AjwgAyAOIA4gEXMgAnEiO3MiDjYCaCADIBIgEiATcyACcSI8cyISIA5rNgI4IAMgCCAIIAxzIAJxIj1zIgg2AmQgAyAFIAUgEHMgAnEiPnMiBSAIazYCNCADIAcgByAKcyACcSI/cyIHNgJgIAMgCyALIA1zIAJxIgJzIgsgB2s2AjAgAyAJIC5zIgkgKyAtcyIrazYCJCADIBcgLHMiFyAoIDBzIihrNgIgIAMgJyAycyInICUgMXMiJWs2AhwgAyAkIDRzIiQgIiAzcyIiazYCGCADICEgNnMiISAfIDVzIh9rNgIUIAMgHiA4cyIeIBwgN3MiHGs2AhAgAyAWIDpzIhYgFCA5cyIUazYCDCADIBMgPHMiEyARIDtzIhFrNgIIIAMgECA+cyIQIAwgPXMiDGs2AgQgAyACIA1zIgIgCiA/cyIKazYCACADIAkgK2o2ApQCIAMgFyAoajYCkAIgAyAlICdqNgKMAiADICIgJGo2AogCIAMgHyAhajYChAIgAyAcIB5qNgKAAiADIBEgE2o2AvgBIAMgDCAQajYC9AEgAyACIApqNgLwASADIBQgFmo2AvwBIAMgKiAvajYC5AEgAyAGIClqNgLgASADIBsgJmo2AtwBIAMgGSAjajYC2AEgAyAaICBqNgLUASADIBggHWo2AtABIAMgDyAVajYCzAEgAyAOIBJqNgLIASADIAUgCGo2AsQBIAMgByALajYCwAEgA0HgAGoiGyADQTBqIhogA0HwAWoiGRAGIANBwAFqIhcgFyADEAYgGiADEAUgAyAZEAUgAygCwAEhAiADKAJgIQkgAygCxAEhBiADKAJkIQcgAygCyAEhCiADKAJoIQsgAygCzAEhDSADKAJsIQggAygC0AEhDCADKAJwIQUgAygC1AEhECADKAJ0IQ4gAygC2AEhESADKAJ4IRIgAygC3AEhEyADKAJ8IQ8gAygC4AEhFCADKAKAASEVIAMgAygC5AEiFiADKAKEASIYajYCtAEgAyAUIBVqNgKwASADIA8gE2o2AqwBIAMgESASajYCqAEgAyAOIBBqNgKkASADIAUgDGo2AqABIAMgCCANajYCnAEgAyAKIAtqNgKYASADIAYgB2o2ApQBIAMgAiAJajYCkAEgAyAYIBZrNgLkASADIBUgFGs2AuABIAMgDyATazYC3AEgAyASIBFrNgLYASADIA4gEGs2AtQBIAMgBSAMazYC0AEgAyAIIA1rNgLMASADIAsgCms2AsgBIAMgByAGazYCxAEgAyAJIAJrNgLAASAZIAMgGhAGIAMoAjQhAiADKAIEIQUgAygCOCEJIAMoAgghECADKAJAIQYgAygCECEOIAMoAjwhByADKAIMIREgAygCSCEKIAMoAhghEiADKAJEIQsgAygCFCETIAMoAlAhDSADKAIgIQ8gAygCTCEIIAMoAhwhFCADKAJUIQwgAygCJCEVIAMgAygCACADKAIwIhZrIhg2AgAgAyAVIAxrIhU2AiQgAyAUIAhrIhQ2AhwgAyAPIA1rIg82AiAgAyATIAtrIhM2AhQgAyASIAprIhI2AhggAyARIAdrIhE2AgwgAyAOIAZrIg42AhAgAyAQIAlrIhA2AgggAyAFIAJrIgU2AgQgFyAXEAUgAyAVrELCtgd+IkJCgICACHwiRkIZh0ITfiAYrELCtgd+fCJAIEBCgICAEHwiQEKAgIDgD4N9pyIVNgJgIAMgBaxCwrYHfiJBIEFCgICACHwiQUKAgIDwD4N9IEBCGoh8pyIFNgJkIAMgEKxCwrYHfiBBQhmHfCJAIEBCgICAEHwiQEKAgIDgD4N9pyIQNgJoIAMgDqxCwrYHfiARrELCtgd+IkFCgICACHwiR0IZh3wiQyBDQoCAgBB8IkNCgICA4A+DfaciDjYCcCADIBKsQsK2B34gE6xCwrYHfiJIQoCAgAh8IklCGYd8IkQgREKAgIAQfCJEQoCAgOAPg32nIhE2AnggAyAPrELCtgd+IBSsQsK2B34iSkKAgIAIfCJLQhmHfCJFIEVCgICAEHwiRUKAgIDgD4N9pyISNgKAASADIEBCGoggQXwgR0KAgIDwD4N9pyITNgJsIAMgQ0IaiCBIfCBJQoCAgPAPg32nIg82AnQgAyBEQhqIIEp8IEtCgICA8A+DfaciFDYCfCADIEVCGoggQnwgRkKAgIDwD4N9pyIYNgKEASADQZABaiIZIBkQBSADIAwgGGo2AlQgAyANIBJqNgJQIAMgCCAUajYCTCADIAogEWo2AkggAyALIA9qNgJEIAMgBiAOajYCQCADIAcgE2o2AjwgAyAJIBBqNgI4IAMgAiAFajYCNCADIBUgFmo2AjAgAUEBayECIBsgA0GgAmogFxAGIBcgAyAaEAYgAQ0ACyADKAKQASEQIAMoAvABIQIgAygClAEhDiADKAL0ASEGIAMoApgBIREgAygC+AEhByADKAKcASESIAMoAvwBIQogAygCoAEhEyADKAKAAiELIAMoAqQBIQ8gAygChAIhDSADKAKoASEUIAMoAogCIQggAygCrAEhFSADKAKMAiEMIAMoArABIRYgAygCkAIhBSADQQAgBGsiASADKAKUAiIEIAMoArQBc3EgBHM2ApQCIAMgBSAFIBZzIAFxczYCkAIgAyAMIAwgFXMgAXFzNgKMAiADIAggCCAUcyABcXM2AogCIAMgDSANIA9zIAFxczYChAIgAyALIAsgE3MgAXFzNgKAAiADIAogCiAScyABcXM2AvwBIAMgByAHIBFzIAFxczYC+AEgAyAGIAYgDnMgAXFzNgL0ASADIAIgAiAQcyABcXM2AvABIAMoAsABIQIgAygCYCEFIAMoAsQBIQQgAygCZCEQIAMoAsgBIQYgAygCaCEOIAMoAswBIQcgAygCbCERIAMoAtABIQogAygCcCESIAMoAtQBIQsgAygCdCETIAMoAtgBIQ0gAygCeCEPIAMoAtwBIQggAygCfCEUIAMoAuABIQwgAygCgAEhFSADIAMoAuQBIhYgAygChAFzIAFxIBZzNgLkASADIAwgDCAVcyABcXM2AuABIAMgCCAIIBRzIAFxczYC3AEgAyANIA0gD3MgAXFzNgLYASADIAsgCyATcyABcXM2AtQBIAMgCiAKIBJzIAFxczYC0AEgAyAHIAcgEXMgAXFzNgLMASADIAYgBiAOcyABcXM2AsgBIAMgBCAEIBBzIAFxczYCxAEgAyACIAIgBXMgAXFzNgLAASADQcABaiIBIAEQLCADQfABaiICIAIgARAGIAAgAhASIANB0AJqQSAQB0EAIQkLIANB8AJqJAAgCQuJDAEHfwJAIABFDQAgAEEIayICIABBBGsoAgAiAUF4cSIAaiEFAkAgAUEBcQ0AIAFBA3FFDQEgAiACKAIAIgFrIgJB5JYCKAIASQ0BIAAgAWohAEHolgIoAgAgAkcEQCABQf8BTQRAIAIoAggiBCABQQN2IgFBA3RB/JYCakYaIAQgAigCDCIDRgRAQdSWAkHUlgIoAgBBfiABd3E2AgAMAwsgBCADNgIMIAMgBDYCCAwCCyACKAIYIQYCQCACIAIoAgwiAUcEQCACKAIIIgMgATYCDCABIAM2AggMAQsCQCACQRRqIgQoAgAiAw0AIAJBEGoiBCgCACIDDQBBACEBDAELA0AgBCEHIAMiAUEUaiIEKAIAIgMNACABQRBqIQQgASgCECIDDQALIAdBADYCAAsgBkUNAQJAIAIoAhwiBEECdEGEmQJqIgMoAgAgAkYEQCADIAE2AgAgAQ0BQdiWAkHYlgIoAgBBfiAEd3E2AgAMAwsgBkEQQRQgBigCECACRhtqIAE2AgAgAUUNAgsgASAGNgIYIAIoAhAiAwRAIAEgAzYCECADIAE2AhgLIAIoAhQiA0UNASABIAM2AhQgAyABNgIYDAELIAUoAgQiAUEDcUEDRw0AQdyWAiAANgIAIAUgAUF+cTYCBCACIABBAXI2AgQgACACaiAANgIADwsgAiAFTw0AIAUoAgQiAUEBcUUNAAJAIAFBAnFFBEBB7JYCKAIAIAVGBEBB7JYCIAI2AgBB4JYCQeCWAigCACAAaiIANgIAIAIgAEEBcjYCBCACQeiWAigCAEcNA0HclgJBADYCAEHolgJBADYCAA8LQeiWAigCACAFRgRAQeiWAiACNgIAQdyWAkHclgIoAgAgAGoiADYCACACIABBAXI2AgQgACACaiAANgIADwsgAUF4cSAAaiEAAkAgAUH/AU0EQCAFKAIIIgQgAUEDdiIBQQN0QfyWAmpGGiAEIAUoAgwiA0YEQEHUlgJB1JYCKAIAQX4gAXdxNgIADAILIAQgAzYCDCADIAQ2AggMAQsgBSgCGCEGAkAgBSAFKAIMIgFHBEAgBSgCCCIDQeSWAigCAEkaIAMgATYCDCABIAM2AggMAQsCQCAFQRRqIgQoAgAiAw0AIAVBEGoiBCgCACIDDQBBACEBDAELA0AgBCEHIAMiAUEUaiIEKAIAIgMNACABQRBqIQQgASgCECIDDQALIAdBADYCAAsgBkUNAAJAIAUoAhwiBEECdEGEmQJqIgMoAgAgBUYEQCADIAE2AgAgAQ0BQdiWAkHYlgIoAgBBfiAEd3E2AgAMAgsgBkEQQRQgBigCECAFRhtqIAE2AgAgAUUNAQsgASAGNgIYIAUoAhAiAwRAIAEgAzYCECADIAE2AhgLIAUoAhQiA0UNACABIAM2AhQgAyABNgIYCyACIABBAXI2AgQgACACaiAANgIAIAJB6JYCKAIARw0BQdyWAiAANgIADwsgBSABQX5xNgIEIAIgAEEBcjYCBCAAIAJqIAA2AgALIABB/wFNBEAgAEF4cUH8lgJqIQECf0HUlgIoAgAiA0EBIABBA3Z0IgBxRQRAQdSWAiAAIANyNgIAIAEMAQsgASgCCAshACABIAI2AgggACACNgIMIAIgATYCDCACIAA2AggPC0EfIQQgAEH///8HTQRAIABBJiAAQQh2ZyIBa3ZBAXEgAUEBdGtBPmohBAsgAiAENgIcIAJCADcCECAEQQJ0QYSZAmohBwJAAkACQEHYlgIoAgAiA0EBIAR0IgFxRQRAQdiWAiABIANyNgIAIAcgAjYCACACIAc2AhgMAQsgAEEZIARBAXZrQQAgBEEfRxt0IQQgBygCACEBA0AgASIDKAIEQXhxIABGDQIgBEEddiEBIARBAXQhBCADIAFBBHFqIgdBEGooAgAiAQ0ACyAHIAI2AhAgAiADNgIYCyACIAI2AgwgAiACNgIIDAELIAMoAggiACACNgIMIAMgAjYCCCACQQA2AhggAiADNgIMIAIgADYCCAtB9JYCQfSWAigCAEEBayIAQX8gABs2AgALC60pAQt/IwBBEGsiCyQAAkACQAJAAkACQAJAAkACQAJAIABB9AFNBEBB1JYCKAIAIgZBECAAQQtqQXhxIABBC0kbIgVBA3YiAHYiAUEDcQRAAkAgAUF/c0EBcSAAaiICQQN0IgFB/JYCaiIAIAFBhJcCaigCACIBKAIIIgRGBEBB1JYCIAZBfiACd3E2AgAMAQsgBCAANgIMIAAgBDYCCAsgAUEIaiEAIAEgAkEDdCICQQNyNgIEIAEgAmoiASABKAIEQQFyNgIEDAoLIAVB3JYCKAIAIgdNDQEgAQRAAkBBAiAAdCICQQAgAmtyIAEgAHRxIgBBACAAa3FoIgFBA3QiAEH8lgJqIgIgAEGElwJqKAIAIgAoAggiBEYEQEHUlgIgBkF+IAF3cSIGNgIADAELIAQgAjYCDCACIAQ2AggLIAAgBUEDcjYCBCAAIAVqIgggAUEDdCIBIAVrIgRBAXI2AgQgACABaiAENgIAIAcEQCAHQXhxQfyWAmohAUHolgIoAgAhAgJ/IAZBASAHQQN2dCIDcUUEQEHUlgIgAyAGcjYCACABDAELIAEoAggLIQMgASACNgIIIAMgAjYCDCACIAE2AgwgAiADNgIICyAAQQhqIQBB6JYCIAg2AgBB3JYCIAQ2AgAMCgtB2JYCKAIAIgpFDQEgCkEAIAprcWhBAnRBhJkCaigCACICKAIEQXhxIAVrIQMgAiEBA0ACQCABKAIQIgBFBEAgASgCFCIARQ0BCyAAKAIEQXhxIAVrIgEgAyABIANJIgEbIQMgACACIAEbIQIgACEBDAELCyACKAIYIQkgAiACKAIMIgRHBEAgAigCCCIAQeSWAigCAEkaIAAgBDYCDCAEIAA2AggMCQsgAkEUaiIBKAIAIgBFBEAgAigCECIARQ0DIAJBEGohAQsDQCABIQggACIEQRRqIgEoAgAiAA0AIARBEGohASAEKAIQIgANAAsgCEEANgIADAgLQX8hBSAAQb9/Sw0AIABBC2oiAEF4cSEFQdiWAigCACIIRQ0AQQAgBWshAwJAAkACQAJ/QQAgBUGAAkkNABpBHyAFQf///wdLDQAaIAVBJiAAQQh2ZyIAa3ZBAXEgAEEBdGtBPmoLIgdBAnRBhJkCaigCACIBRQRAQQAhAAwBC0EAIQAgBUEZIAdBAXZrQQAgB0EfRxt0IQIDQAJAIAEoAgRBeHEgBWsiBiADTw0AIAEhBCAGIgMNAEEAIQMgASEADAMLIAAgASgCFCIGIAYgASACQR12QQRxaigCECIBRhsgACAGGyEAIAJBAXQhAiABDQALCyAAIARyRQRAQQAhBEECIAd0IgBBACAAa3IgCHEiAEUNAyAAQQAgAGtxaEECdEGEmQJqKAIAIQALIABFDQELA0AgACgCBEF4cSAFayICIANJIQEgAiADIAEbIQMgACAEIAEbIQQgACgCECIBBH8gAQUgACgCFAsiAA0ACwsgBEUNACADQdyWAigCACAFa08NACAEKAIYIQcgBCAEKAIMIgJHBEAgBCgCCCIAQeSWAigCAEkaIAAgAjYCDCACIAA2AggMBwsgBEEUaiIBKAIAIgBFBEAgBCgCECIARQ0DIARBEGohAQsDQCABIQYgACICQRRqIgEoAgAiAA0AIAJBEGohASACKAIQIgANAAsgBkEANgIADAYLIAVB3JYCKAIAIgRNBEBB6JYCKAIAIQACQCAEIAVrIgFBEE8EQCAAIAVqIgIgAUEBcjYCBCAAIARqIAE2AgAgACAFQQNyNgIEDAELIAAgBEEDcjYCBCAAIARqIgEgASgCBEEBcjYCBEEAIQJBACEBC0HclgIgATYCAEHolgIgAjYCACAAQQhqIQAMCAsgBUHglgIoAgAiAkkEQEHglgIgAiAFayIBNgIAQeyWAkHslgIoAgAiACAFaiICNgIAIAIgAUEBcjYCBCAAIAVBA3I2AgQgAEEIaiEADAgLQQAhACAFQS9qIgMCf0GsmgIoAgAEQEG0mgIoAgAMAQtBuJoCQn83AgBBsJoCQoCggICAgAQ3AgBBrJoCIAtBDGpBcHFB2KrVqgVzNgIAQcCaAkEANgIAQZCaAkEANgIAQYAgCyIBaiIGQQAgAWsiCHEiASAFTQ0HQYyaAigCACIEBEBBhJoCKAIAIgcgAWoiCSAHTQ0IIAQgCUkNCAsCQEGQmgItAABBBHFFBEACQAJAAkACQEHslgIoAgAiBARAQZSaAiEAA0AgBCAAKAIAIgdPBEAgByAAKAIEaiAESw0DCyAAKAIIIgANAAsLQQAQHCICQX9GDQMgASEGQbCaAigCACIAQQFrIgQgAnEEQCABIAJrIAIgBGpBACAAa3FqIQYLIAUgBk8NA0GMmgIoAgAiAARAQYSaAigCACIEIAZqIgggBE0NBCAAIAhJDQQLIAYQHCIAIAJHDQEMBQsgBiACayAIcSIGEBwiAiAAKAIAIAAoAgRqRg0BIAIhAAsgAEF/Rg0BIAYgBUEwak8EQCAAIQIMBAtBtJoCKAIAIgIgAyAGa2pBACACa3EiAhAcQX9GDQEgAiAGaiEGIAAhAgwDCyACQX9HDQILQZCaAkGQmgIoAgBBBHI2AgALIAEQHCECQQAQHCEAIAJBf0YNBSAAQX9GDQUgACACTQ0FIAAgAmsiBiAFQShqTQ0FC0GEmgJBhJoCKAIAIAZqIgA2AgBBiJoCKAIAIABJBEBBiJoCIAA2AgALAkBB7JYCKAIAIgMEQEGUmgIhAANAIAIgACgCACIBIAAoAgQiBGpGDQIgACgCCCIADQALDAQLQeSWAigCACIAQQAgACACTRtFBEBB5JYCIAI2AgALQQAhAEGYmgIgBjYCAEGUmgIgAjYCAEH0lgJBfzYCAEH4lgJBrJoCKAIANgIAQaCaAkEANgIAA0AgAEEDdCIBQYSXAmogAUH8lgJqIgQ2AgAgAUGIlwJqIAQ2AgAgAEEBaiIAQSBHDQALQeCWAiAGQShrIgBBeCACa0EHcUEAIAJBCGpBB3EbIgFrIgQ2AgBB7JYCIAEgAmoiATYCACABIARBAXI2AgQgACACakEoNgIEQfCWAkG8mgIoAgA2AgAMBAsgAC0ADEEIcQ0CIAEgA0sNAiACIANNDQIgACAEIAZqNgIEQeyWAiADQXggA2tBB3FBACADQQhqQQdxGyIAaiIBNgIAQeCWAkHglgIoAgAgBmoiAiAAayIANgIAIAEgAEEBcjYCBCACIANqQSg2AgRB8JYCQbyaAigCADYCAAwDC0EAIQQMBQtBACECDAMLQeSWAigCACACSwRAQeSWAiACNgIACyACIAZqIQFBlJoCIQACQAJAAkACQAJAAkADQCABIAAoAgBHBEAgACgCCCIADQEMAgsLIAAtAAxBCHFFDQELQZSaAiEAA0AgAyAAKAIAIgFPBEAgASAAKAIEaiIEIANLDQMLIAAoAgghAAwACwALIAAgAjYCACAAIAAoAgQgBmo2AgQgAkF4IAJrQQdxQQAgAkEIakEHcRtqIgcgBUEDcjYCBCABQXggAWtBB3FBACABQQhqQQdxG2oiBiAFIAdqIgVrIQAgAyAGRgRAQeyWAiAFNgIAQeCWAkHglgIoAgAgAGoiADYCACAFIABBAXI2AgQMAwtB6JYCKAIAIAZGBEBB6JYCIAU2AgBB3JYCQdyWAigCACAAaiIANgIAIAUgAEEBcjYCBCAAIAVqIAA2AgAMAwsgBigCBCIDQQNxQQFGBEAgA0F4cSEJAkAgA0H/AU0EQCAGKAIIIgEgA0EDdiIEQQN0QfyWAmpGGiABIAYoAgwiAkYEQEHUlgJB1JYCKAIAQX4gBHdxNgIADAILIAEgAjYCDCACIAE2AggMAQsgBigCGCEIAkAgBiAGKAIMIgJHBEAgBigCCCIBIAI2AgwgAiABNgIIDAELAkAgBkEUaiIDKAIAIgENACAGQRBqIgMoAgAiAQ0AQQAhAgwBCwNAIAMhBCABIgJBFGoiAygCACIBDQAgAkEQaiEDIAIoAhAiAQ0ACyAEQQA2AgALIAhFDQACQCAGKAIcIgFBAnRBhJkCaiIEKAIAIAZGBEAgBCACNgIAIAINAUHYlgJB2JYCKAIAQX4gAXdxNgIADAILIAhBEEEUIAgoAhAgBkYbaiACNgIAIAJFDQELIAIgCDYCGCAGKAIQIgEEQCACIAE2AhAgASACNgIYCyAGKAIUIgFFDQAgAiABNgIUIAEgAjYCGAsgBiAJaiIGKAIEIQMgACAJaiEACyAGIANBfnE2AgQgBSAAQQFyNgIEIAAgBWogADYCACAAQf8BTQRAIABBeHFB/JYCaiEBAn9B1JYCKAIAIgJBASAAQQN2dCIAcUUEQEHUlgIgACACcjYCACABDAELIAEoAggLIQAgASAFNgIIIAAgBTYCDCAFIAE2AgwgBSAANgIIDAMLQR8hAyAAQf///wdNBEAgAEEmIABBCHZnIgFrdkEBcSABQQF0a0E+aiEDCyAFIAM2AhwgBUIANwIQIANBAnRBhJkCaiEBAkBB2JYCKAIAIgJBASADdCIEcUUEQEHYlgIgAiAEcjYCACABIAU2AgAMAQsgAEEZIANBAXZrQQAgA0EfRxt0IQMgASgCACECA0AgAiIBKAIEQXhxIABGDQMgA0EddiECIANBAXQhAyABIAJBBHFqIgQoAhAiAg0ACyAEIAU2AhALIAUgATYCGCAFIAU2AgwgBSAFNgIIDAILQeCWAiAGQShrIgBBeCACa0EHcUEAIAJBCGpBB3EbIgFrIgg2AgBB7JYCIAEgAmoiATYCACABIAhBAXI2AgQgACACakEoNgIEQfCWAkG8mgIoAgA2AgAgAyAEQScgBGtBB3FBACAEQSdrQQdxG2pBL2siACAAIANBEGpJGyIBQRs2AgQgAUGcmgIpAgA3AhAgAUGUmgIpAgA3AghBnJoCIAFBCGo2AgBBmJoCIAY2AgBBlJoCIAI2AgBBoJoCQQA2AgAgAUEYaiEAA0AgAEEHNgIEIABBCGohAiAAQQRqIQAgAiAESQ0ACyABIANGDQMgASABKAIEQX5xNgIEIAMgASADayICQQFyNgIEIAEgAjYCACACQf8BTQRAIAJBeHFB/JYCaiEAAn9B1JYCKAIAIgFBASACQQN2dCICcUUEQEHUlgIgASACcjYCACAADAELIAAoAggLIQEgACADNgIIIAEgAzYCDCADIAA2AgwgAyABNgIIDAQLQR8hACACQf///wdNBEAgAkEmIAJBCHZnIgBrdkEBcSAAQQF0a0E+aiEACyADIAA2AhwgA0IANwIQIABBAnRBhJkCaiEBAkBB2JYCKAIAIgRBASAAdCIGcUUEQEHYlgIgBCAGcjYCACABIAM2AgAMAQsgAkEZIABBAXZrQQAgAEEfRxt0IQAgASgCACEEA0AgBCIBKAIEQXhxIAJGDQQgAEEddiEEIABBAXQhACABIARBBHFqIgYoAhAiBA0ACyAGIAM2AhALIAMgATYCGCADIAM2AgwgAyADNgIIDAMLIAEoAggiACAFNgIMIAEgBTYCCCAFQQA2AhggBSABNgIMIAUgADYCCAsgB0EIaiEADAULIAEoAggiACADNgIMIAEgAzYCCCADQQA2AhggAyABNgIMIAMgADYCCAtB4JYCKAIAIgAgBU0NAEHglgIgACAFayIBNgIAQeyWAkHslgIoAgAiACAFaiICNgIAIAIgAUEBcjYCBCAAIAVBA3I2AgQgAEEIaiEADAMLQdCWAkEwNgIAQQAhAAwCCwJAIAdFDQACQCAEKAIcIgBBAnRBhJkCaiIBKAIAIARGBEAgASACNgIAIAINAUHYlgIgCEF+IAB3cSIINgIADAILIAdBEEEUIAcoAhAgBEYbaiACNgIAIAJFDQELIAIgBzYCGCAEKAIQIgAEQCACIAA2AhAgACACNgIYCyAEKAIUIgBFDQAgAiAANgIUIAAgAjYCGAsCQCADQQ9NBEAgBCADIAVqIgBBA3I2AgQgACAEaiIAIAAoAgRBAXI2AgQMAQsgBCAFQQNyNgIEIAQgBWoiAiADQQFyNgIEIAIgA2ogAzYCACADQf8BTQRAIANBeHFB/JYCaiEAAn9B1JYCKAIAIgFBASADQQN2dCIDcUUEQEHUlgIgASADcjYCACAADAELIAAoAggLIQEgACACNgIIIAEgAjYCDCACIAA2AgwgAiABNgIIDAELQR8hACADQf///wdNBEAgA0EmIANBCHZnIgBrdkEBcSAAQQF0a0E+aiEACyACIAA2AhwgAkIANwIQIABBAnRBhJkCaiEBAkACQCAIQQEgAHQiBnFFBEBB2JYCIAYgCHI2AgAgASACNgIADAELIANBGSAAQQF2a0EAIABBH0cbdCEAIAEoAgAhBQNAIAUiASgCBEF4cSADRg0CIABBHXYhBiAAQQF0IQAgASAGQQRxaiIGKAIQIgUNAAsgBiACNgIQCyACIAE2AhggAiACNgIMIAIgAjYCCAwBCyABKAIIIgAgAjYCDCABIAI2AgggAkEANgIYIAIgATYCDCACIAA2AggLIARBCGohAAwBCwJAIAlFDQACQCACKAIcIgBBAnRBhJkCaiIBKAIAIAJGBEAgASAENgIAIAQNAUHYlgIgCkF+IAB3cTYCAAwCCyAJQRBBFCAJKAIQIAJGG2ogBDYCACAERQ0BCyAEIAk2AhggAigCECIABEAgBCAANgIQIAAgBDYCGAsgAigCFCIARQ0AIAQgADYCFCAAIAQ2AhgLAkAgA0EPTQRAIAIgAyAFaiIAQQNyNgIEIAAgAmoiACAAKAIEQQFyNgIEDAELIAIgBUEDcjYCBCACIAVqIgQgA0EBcjYCBCADIARqIAM2AgAgBwRAIAdBeHFB/JYCaiEAQeiWAigCACEBAn9BASAHQQN2dCIFIAZxRQRAQdSWAiAFIAZyNgIAIAAMAQsgACgCCAshBiAAIAE2AgggBiABNgIMIAEgADYCDCABIAY2AggLQeiWAiAENgIAQdyWAiADNgIACyACQQhqIQALIAtBEGokACAACwoAIAAgARA6QQALDAAgACABIAIQO0EAC7QBAQF/IAAgASgAAEH///8fcTYCACAAIAEoAANBAnZBg/7/H3E2AgQgACABKAAGQQR2Qf+B/x9xNgIIIAAgASgACUEGdkH//8AfcTYCDCABKAAMIQIgAEIANwIUIABCADcCHCAAQQA2AiQgACACQQh2Qf//P3E2AhAgACABKAAQNgIoIAAgASgAFDYCLCAAIAEoABg2AjAgASgAHCEBIABBADoAUCAAQgA3AzggACABNgI0QQAL6AEBA38jACIFQcABa0FAcSIEJAAgBCADKAAAQf///x9xNgJAIAQgAygAA0ECdkGD/v8fcTYCRCAEIAMoAAZBBHZB/4H/H3E2AkggBCADKAAJQQZ2Qf//wB9xNgJMIAMoAAwhBiAEQgA3AlQgBEIANwJcIARBADYCZCAEIAZBCHZB//8/cTYCUCAEIAMoABA2AmggBCADKAAUNgJsIAQgAygAGDYCcCADKAAcIQMgBEEAOgCQASAEQgA3A3ggBCADNgJ0IARBQGsiAyABIAIQOyADIARBMGoiARA6IAAgARAtIQAgBSQAIAAL1QEBA38jACIFQYABa0FAcSIEJAAgBCADKAAAQf///x9xNgIAIAQgAygAA0ECdkGD/v8fcTYCBCAEIAMoAAZBBHZB/4H/H3E2AgggBCADKAAJQQZ2Qf//wB9xNgIMIAMoAAwhBiAEQgA3AhQgBEIANwIcIARBADYCJCAEIAZBCHZB//8/cTYCECAEIAMoABA2AiggBCADKAAUNgIsIAQgAygAGDYCMCADKAAcIQMgBEEAOgBQIARCADcDOCAEIAM2AjQgBCABIAIQOyAEIAAQOiAFJABBAAsmAQJ/AkBB4JoCKAIAIgBFDQAgACgCFCIARQ0AIAARAgAhAQsgAQsOACAAIAGtQYAIIAIQFwtNAQN/IwBBEGsiAiQAIABBAk8EQEEAIABrIABwIQEDQCACQQA6AA9B2JACIAJBD2pBABAAIgMgAUkNAAsgAyAAcCEBCyACQRBqJAAgAQssAQJ/IwBBEGsiACQAIABBADoAD0HYkAIgAEEPakEAEAAhASAAQRBqJAAgAQtzAgJ/AX4CQCMAQRBrIgQkACABrSACrUIghoQiBUKAgICAEFQEQCAFpyIBBEADQCAEQQA6AA8gACADakHYkAIgBEEPakEAEAA6AAAgA0EBaiIDIAFHDQALCyAEQRBqJAAMAQtB2AlBzAhBxQFBjAgQAQALCxIAIAAgASACrSADrUIghoQQDAsWACAAIAEgAq0gA61CIIaEIARBABAxCxsAIAAgASACIAOtIAStQiCGhCAFQQAQMhpBAAuKAQEBfgJ/AkACQAJAIAOtIAStQiCGhCIGQsAAVA0AIAZCQHwiBkK/////D1YNACACIAJBQGsiAyAGIAVBABAxRQ0BIABFDQAgAEEAIAanEAgaC0F/IQIgAUUNASABQgA3AwBBfwwCCyABBEAgASAGNwMAC0EAIQIgAEUNACAAIAMgBqcQJBoLIAILC3wCAn8BfiMAQRBrIgYkACAAIAZBCGogAEFAayACIAOtIAStQiCGhCIIpyICECQgCCAFQQAQMhoCQCAGKQMIQsAAUgRAIAEEQCABQgA3AwALIABBACACQUBrEAgaQX8hBwwBCyABRQ0AIAEgCEJAfTcDAAsgBkEQaiQAIAcL+gUBCX4gBCkAACIFQvXKzYPXrNu38wCFIQkgBULh5JXz1uzZvOwAhSEGIAQpAAgiBULt3pHzlszct+QAhSELIAVC88rRy6eM2bL0AIUhByABIAEgAq0gA61CIIaEIgynIgJqIAJBB3EiA2siAkcEQANAIAYgASkAACINIAeFIgh8IgcgCSALfCIJIAtCDYmFIgV8IgogBUIRiYUiBkINiSAGIAhCEIkgB4UiByAJQiCJfCIFfCIJhSIGQhGJIAYgB0IViSAFhSIHIApCIIl8IgV8IgaFIQsgB0IQiSAFhSIFQhWJIAUgCUIgiXwiBYUhByAGQiCJIQYgBSANhSEJIAFBCGoiASACRw0ACyACIQELIAxCOIYhCAJAAkACQAJAAkACQAJAAkAgA0EBaw4HBgUEAwIBAAcLIAExAAZCMIYgCIQhCAsgATEABUIohiAIhCEICyABMQAEQiCGIAiEIQgLIAExAANCGIYgCIQhCAsgATEAAkIQhiAIhCEICyABMQABQgiGIAiEIQgLIAggATEAAIQhCAsgACAHIAiFIgVCEIkgBSAGfCIKhSIFQhWJIAUgCSALfCIGQiCJfCIJhSIFQhCJIAUgCiAGIAtCDYmFIgd8IgZCIIl8IgqFIgVCFYkgBSAJIAYgB0IRiYUiB3wiBkIgiXwiCYUiBUIQiSAKIAdCDYkgBoUiB3wiBkIgiUL/AYUgBXwiCoUiBUIViSAHQhGJIAaFIgcgCCAJhXwiBkIgiSAFfCIJhSIFQhCJIAYgB0INiYUiByAKfCIGQiCJIAV8IgqFIgVCFYkgB0IRiSAGhSIHIAl8IgZCIIkgBXwiCYUiBUIQiSAHQg2JIAaFIgcgCnwiBkIgiSAFfCIKhSIFQhWJIAUgB0IRiSAGhSIHIAl8IgVCIIl8IgmFIgZCEIkgBiAHQg2JIAWFIgcgCnwiBUIgiXwiBoVCFYkgB0IRiSAFhSIFQg2JIAUgCXyFIgVCEYmFIAUgBnwiBUIgiYUgBYU3AABBAAuzBgIDfgF/An8gBa0gBq1CIIaEIQogCK0gCa1CIIaEIQwjAEGQA2siBSQAIAIEQCACQgA3AwALIAMEQCADQf8BOgAAC0F/IQ0CQAJAIApCEVQNACAKQhF9IgtC7////w9aDQEgBUEgaiIIQsAAIABBIGoiCSAAEBcgBUHgAGoiBiAIQbyQAigCABEBABogCEHAABAHIAYgByAMQcCQAigCABEAABogBkHwiAJCACAMfUIPg0HAkAIoAgARAAAaIAVCADcDWCAFQgA3A1AgBUIANwNIIAVBQGtCADcDACAFQgA3AzggBUIANwMwIAVCADcDKCAFQgA3AyAgBSAELQAAOgAgIAggCELAACAJQQEgABAbIAUtACAhByAFIAQtAAA6ACAgBiAIQsAAQcCQAigCABEAABogBiAEQQFqIgQgC0HAkAIoAgARAAAaIAZB8IgCIApCAX1CD4NBwJACKAIAEQAAGiAFIAw3AxggBiAFQRhqIghCCEHAkAIoAgARAAAaIAUgCkIvfDcDGCAGIAhCCEHAkAIoAgARAAAaIAYgBUHEkAIoAgARAQAaIAZBgAIQByAFIAQgC6dqQRAQMwRAIAVBEBAHDAELIAEgBCALIAlBAiAAEBsgACAALQAkIAUtAABzOgAkIAAgAC0AJSAFLQABczoAJSAAIAAtACYgBS0AAnM6ACYgACAALQAnIAUtAANzOgAnIAAgAC0AKCAFLQAEczoAKCAAIAAtACkgBS0ABXM6ACkgACAALQAqIAUtAAZzOgAqIAAgAC0AKyAFLQAHczoAKyAJED8CQCAHQQJxRQRAIAlBBBAfRQ0BCyAFIAApABg3A/gCIAUgACkAEDcD8AIgBSAAKQAANwPgAiAFIAApAAg3A+gCIAUgACkAJDcDgAMgBUHgAmoiASABQiggCUEAIABBsJACKAIAEQgAGiAAIAUpA/gCNwAYIAAgBSkD8AI3ABAgACAFKQPoAjcACCAAIAUpA+ACNwAAIAUpA4ADIQogAEEBNgAgIAAgCjcAJAsgAgRAIAIgCzcDAAtBACENIANFDQAgAyAHOgAACyAFQZADaiQAIA0MAQsQCQALC+QFAQJ+An8gBK0gBa1CIIaEIQogB60gCK1CIIaEIQsjAEGAA2siBCQAIAIEQCACQgA3AwALIApC7////w9UBEAgBEEQaiIHQsAAIABBIGoiCCAAEBcgBEHQAGoiBSAHQbyQAigCABEBABogB0HAABAHIAUgBiALQcCQAigCABEAABogBUHwiAJCACALfUIPg0HAkAIoAgARAAAaIARCADcDSCAEQUBrQgA3AwAgBEIANwM4IARCADcDMCAEQgA3AyggBEIANwMgIARCADcDECAEQgA3AxggBCAJOgAQIAcgB0LAACAIQQEgABAbIAUgB0LAAEHAkAIoAgARAAAaIAEgBC0AEDoAACABQQFqIgEgAyAKIAhBAiAAEBsgBSABIApBwJACKAIAEQAAGiAFQfCIAiAKQg+DQcCQAigCABEAABogBCALNwMIIAUgBEEIaiIDQghBwJACKAIAEQAAGiAEIApCQH03AwggBSADQghBwJACKAIAEQAAGiAFIAEgCqdqIgFBxJACKAIAEQEAGiAFQYACEAcgACAALQAkIAEtAABzOgAkIAAgAC0AJSABLQABczoAJSAAIAAtACYgAS0AAnM6ACYgACAALQAnIAEtAANzOgAnIAAgAC0AKCABLQAEczoAKCAAIAAtACkgAS0ABXM6ACkgACAALQAqIAEtAAZzOgAqIAAgAC0AKyABLQAHczoAKyAIED8CQCAJQQJxRQRAIAhBBBAfRQ0BCyAEIAApABg3A+gCIAQgACkAEDcD4AIgBCAAKQAANwPQAiAEIAApAAg3A9gCIAQgACkAJDcD8AIgBEHQAmoiASABQiggCEEAIABBsJACKAIAEQgAGiAAIAQpA+gCNwAYIAAgBCkD4AI3ABAgACAEKQPYAjcACCAAIAQpA9ACNwAAIAQpA/ACIQsgAEEBNgAgIAAgCzcAJAsgAgRAIAIgCkIRfDcDAAsgBEGAA2okAEEADAELEAkACwsxAQF+IAKtIAOtQiCGhCIGQvD///8PWgRAEAkACyAAQRBqIAAgASAGIAQgBRAgGkEAC4YEAgF/BH4jAEEgayIGJAAgBCkAACEHIAZCADcDGCAGIAc3AxAgBkIANwMIIAYgAq0gA61CIIaENwMAAn8gAUHBAGtBTk0EQEHQlgJBHDYCAEF/DAELIAFBwQBrQUBPBH8CfyAGQRBqIQIgAUH/AXEhAyMAIgEhBCABQYAEa0FAcSIBJAACQCAARQ0AIANBwQBrQf8BcUG/AU0NACAFRQ0AIAVFDQACfiAGRQRAQp/Y+dnCkdqCm38hB0LRhZrv+s+Uh9EADAELIAYpAAhCn9j52cKR2oKbf4UhByAGKQAAQtGFmu/6z5SH0QCFCyEJAn4gAkUEQEL5wvibkaOz8NsAIQhC6/qG2r+19sEfDAELIAIpAAhC+cL4m5Gjs/DbAIUhCCACKQAAQuv6htq/tfbBH4ULIQogAUFAa0EAQaUCEAgaIAEgCDcDOCABIAo3AzAgASAHNwMoIAEgCTcDICABQvHt9Pilp/2npX83AxggAUKr8NP0r+68tzw3AxAgAUK7zqqm2NDrs7t/NwMIIAEgA61CgMAAhEKIkveV/8z5hOoAhTcDACABQYADaiICQSBqQQBB4AAQCBogAiAFQSAQCxogAUHgAGogAkGAARALGiABQYABNgLgAiACQYABEAcgASAAIAMQNRogBCQAQQAMAQsQCQALBUF/CwshACAGQSBqJAAgAAsSACAAIAEgAq0gA61CIIaEEBgLEgAgACABIAKtIAOtQiCGhBAPCxgAIAAgASACIAOtIAStQiCGhCAFIAYQWQt7AgN/AX4jACIGIQggBkHAA2tBQHEiBiQAQX8hByACrSADrUIghoQiCUIwWgRAIAZBQGsiAkEAQQBBGBAjGiACIAFCIBAPGiACIARCIBAPGiACIAZBIGoiAkEYECIaIAAgAUEgaiAJQiB9IAIgASAFEFIhBwsgCCQAIAcLyAECA38BfiACrSADrUIghoQhCCMAIgIhBiACQYAEa0FAcSICJABBfyEDIAJBQGsgAkEgahA9RQRAIAJBgAFqIgNBAEEAQRgQIxogAyACQUBrIgdCIBAPGiADIARCIBAPGiADIAJB4ABqIgVBGBAiGiAAQSBqIAEgCCAFIAQgAkEgaiIBEFMhAyAAIAIpA1g3ABggACACKQNQNwAQIAAgAikDSDcACCAAIAIpA0A3AAAgAUEgEAcgB0EgEAcgBUEYEAcLIAYkACADCxgAIAAgASACrSADrUIghoQgBCAFIAYQUgvHAQEBfyMAQUBqIgYkACACQgBSBEAgBkKy2ojLx66ZkOsANwMIIAZC5fDBi+aNmZAzNwMAIAYgBSgAADYCECAGIAUoAAQ2AhQgBiAFKAAINgIYIAYgBSgADDYCHCAGIAUoABA2AiAgBiAFKAAUNgIkIAYgBSgAGDYCKCAFKAAcIQUgBiAENgIwIAYgBTYCLCAGIAMoAAA2AjQgBiADKAAENgI4IAYgAygACDYCPCAGIAEgACACEC8gBkHAABAHCyAGQUBrJABBAAtIAQF+IAOtIAStQiCGhCEIIwBBIGsiAyQAQX8hBCADIAYgBxAhRQRAIAAgASACIAggBSADEDAhBCADQSAQBwsgA0EgaiQAIAQLGAAgACABIAKtIAOtQiCGhCAEIAUgBhBTCy4BAX4gAq0gA61CIIaEIgZC8P///w9aBEAQCQALIABBEGogACABIAYgBCAFECALSAEBfiADrSAErUIghoQhCCMAQSBrIgMkAEF/IQQgAyAGIAcQIUUEQCAAIAEgAiAIIAUgAxAgIQQgA0EgEAcLIANBIGokACAEC4YBAQJ/IwBBgARrIgUkACAFQSBqIgYgBBBWIAYgASACrSADrUIghoQQVSAGIAVBwANqEFQgBSAFKQPYAzcDGCAFIAUpA9ADNwMQIAUgBSkDyAM3AwggBSAFKQPAAzcDACAAIAUQSyEBIAUgAEEgEDMhAiAFQYAEaiQAIAJBfyABIAAgBUYbcgtkAQF/IwBB4ANrIgUkACAFIAQQViAFIAEgAq0gA61CIIaEEFUgBSAFQaADahBUIAAgBSkDuAM3ABggACAFKQOwAzcAECAAIAUpA6gDNwAIIAAgBSkDoAM3AAAgBUHgA2okAEEAC1oBAn4gB60gCK1CIIaEIQxBfyECIAStIAWtQiCGhCILQhBaBEAgACADIAtCEH0gAyALp2pBEGsgBiAMIAkgChBXIQILIAEEQCABQgAgC0IQfSACGzcDAAsgAgskACAAIAIgA60gBK1CIIaEIAUgBiAHrSAIrUIghoQgCSAKEFcLwwEBAX8jAEFAaiIGJAAgAkIAUgRAIAZCstqIy8eumZDrADcDCCAGQuXwwYvmjZmQMzcDACAGIAUoAAA2AhAgBiAFKAAENgIUIAYgBSgACDYCGCAGIAUoAAw2AhwgBiAFKAAQNgIgIAYgBSgAFDYCJCAGIAUoABg2AiggBiAFKAAcNgIsIAYgBD4CMCAGIARCIIg+AjQgBiADKAAANgI4IAYgAygABDYCPCAGIAEgACACEC8gBkHAABAHCyAGQUBrJABBAAtYAQJ+An8gBq0gB61CIIaEIQwgA60gBK1CIIaEIgtC8P///w9UBEAgACAAIAunakEAIAIgCyAFIAwgCSAKEFgaIAEEQCABIAtCEHw3AwALQQAMAQsQCQALCyYAIAAgASACIAMgBK0gBa1CIIaEIAYgB60gCK1CIIaEIAogCxBYC1oBAn4gB60gCK1CIIaEIQxBfyECIAStIAWtQiCGhCILQhBaBEAgACADIAtCEH0gAyALp2pBEGsgBiAMIAkgChBAIQILIAEEQCABQgAgC0IQfSACGzcDAAsgAgskACAAIAIgA60gBK1CIIaEIAUgBiAHrSAIrUIghoQgCSAKEEALWgECfiAHrSAIrUIghoQhDEF/IQIgBK0gBa1CIIaEIgtCEFoEQCAAIAMgC0IQfSADIAunakEQayAGIAwgCSAKEEEhAgsgAQRAIAFCACALQhB9IAIbNwMACyACCyQAIAAgAiADrSAErUIghoQgBSAGIAetIAitQiCGhCAJIAoQQQtYAQJ+An8gBq0gB61CIIaEIQwgA60gBK1CIIaEIgtC8P///w9UBEAgACAAIAunakEAIAIgCyAFIAwgCSAKEEIaIAEEQCABIAtCEHw3AwALQQAMAQsQCQALCyYAIAAgASACIAMgBK0gBa1CIIaEIAYgB60gCK1CIIaEIAogCxBCC1gBAn4CfyAGrSAHrUIghoQhDCADrSAErUIghoQiC0Lw////D1QEQCAAIAAgC6dqQQAgAiALIAUgDCAJIAoQQxogAQRAIAEgC0IQfDcDAAtBAAwBCxAJAAsLJgAgACABIAIgAyAErSAFrUIghoQgBiAHrSAIrUIghoQgCiALEEML0AEBAX8jAEFAaiIEJAAgAUIAUgRAIARCstqIy8eumZDrADcDCCAEQuXwwYvmjZmQMzcDACAEIAMoAAA2AhAgBCADKAAENgIUIAQgAygACDYCGCAEIAMoAAw2AhwgBCADKAAQNgIgIAQgAygAFDYCJCAEIAMoABg2AiggAygAHCEDIARBADYCMCAEIAM2AiwgBCACKAAANgI0IAQgAigABDYCOCAEIAIoAAg2AjwgBCAAQQAgAacQCCIAIAAgARAvIARBwAAQBwsgBEFAayQAQQAL/gEBBH8jACIFIQggBUGABGtBQHEiBSQAIAAgASAAGyIHBEBBfyEGIAVB4ABqIAMgBBA8RQRAIAEgACABGyEBQQAhACAFQYABaiIDQQBBAEHAABAjGiADIAVB4ABqIgZCIBAPGiAGQSAQByADIARCIBAPGiADIAJCIBAPGiADIAVBIGpBwAAQIhogA0GAAxAHA0AgACABaiAFQSBqIgQgAGoiAi0AADoAACAAIAdqIAItACA6AAAgASAAQQFyIgNqIAMgBGotAAA6AAAgAyAHaiACLQAhOgAAIABBAmoiAEEgRw0ACyAFQSBqQcAAEAdBACEGCyAIJAAgBg8LEAkAC/4BAQR/IwAiBSEIIAVBgARrQUBxIgUkACAAIAEgABsiBwRAQX8hBiAFQeAAaiADIAQQPEUEQCABIAAgARshAUEAIQAgBUGAAWoiA0EAQQBBwAAQIxogAyAFQeAAaiIGQiAQDxogBkEgEAcgAyACQiAQDxogAyAEQiAQDxogAyAFQSBqQcAAECIaIANBgAMQBwNAIAAgB2ogBUEgaiIEIABqIgItAAA6AAAgACABaiACLQAgOgAAIAcgAEEBciIDaiADIARqLQAAOgAAIAEgA2ogAi0AIToAACAAQQJqIgBBIEcNAAsgBUEgakHAABAHQQAhBgsgCCQAIAYPCxAJAAsfACABQSAgAkIgQQBBABBZGiAAIAFBzJACKAIAEQEACxAAIAAgAUHMkAIoAgARAQALBABBCgsFAEGgCgsIACAAQRAQFgsEAEEwC14BAX8jAEFAaiIDJAAgAyACQiAQGBogASADKQMYNwAYIAEgAykDEDcAECABIAMpAwg3AAggASADKQMANwAAIANBwAAQByAAIAFBzJACKAIAEQEAIQAgA0FAayQAIAALxgEBAX8jAEFAaiIEJAAgAUIAUgRAIARCstqIy8eumZDrADcDCCAEQuXwwYvmjZmQMzcDACAEIAMoAAA2AhAgBCADKAAENgIUIAQgAygACDYCGCAEIAMoAAw2AhwgBCADKAAQNgIgIAQgAygAFDYCJCAEIAMoABg2AiggAygAHCEDIARCADcDMCAEIAM2AiwgBCACKAAANgI4IAQgAigABDYCPCAEIABBACABpxAIIgAgACABEC8gBEHAABAHCyAEQUBrJABBAAsFAEGAAwuqAQEGfyMAQRBrIgZBADYCDEF/IQQgAiADQQFrSwR/IAEgAkEBayICaiEIQQAhBEEAIQEDQCAGIAYoAgwiByAIIAVrLQAAIglBgAFzQQFrIAdBAWsgAUH/AXEiAUEBa3FxIgdBF3RBH3UgBXFyNgIMIAEgCXIhASAEIAdBCHZBAXFyIQQgBUEBaiIFIANHDQALIAAgAiAGKAIMazYCACAEQf8BcUEBawVBfwsLpQkBCH8CQAJ/AkACQAJAAkACQAJAAn8CQAJAAkAgB0F5cUEBRgRAQQAgA0UNBBogB0EEcQ0BA0AgCCELAkACQAJAAkADQCACIAtqLAAAIgpB0P8Ac0EBakF/c0EIdkE/cSAKQdT/AHNBAWpBf3NBCHZBPnFyIApBuQFqIApBn/8DakF/c0H6ACAKa0F/c3FBCHZxQf8BcXIgCkEEaiAKQdD/A2pBf3NBOSAKa0F/c3FBCHZxQf8BcXJB2gAgCmtBf3MgCkHBAGsiCUF/c3FBCHYgCXFB/wFxciIJQQFrIApBvv8Dc0EBanFBCHZB/wFxIAlyIglB/wFHDQFBACEJIARFDQkgBCAKEB0EQCALQQFqIgsgA08NAwwBCwsgCyEIDAgLIAkgDkEGdGohDiAMQQFLDQEgDEEGaiEMDAILIAMgCEEBaiIAIAAgA0kbIQgMBgsgDEECayEMIAEgDU0NBCAAIA1qIA4gDHY6AAAgDUEBaiENC0EAIQkgC0EBaiIIIANJDQALDAMLEAkACwNAIAghCwNAAkAgAiALaiwAACIKQaD/AHNBAWpBf3NBCHZBP3EgCkHS/wBzQQFqQX9zQQh2QT5xciAKQbkBaiAKQZ//A2pBf3NB+gAgCmtBf3NxQQh2cUH/AXFyIApBBGogCkHQ/wNqQX9zQTkgCmtBf3NxQQh2cUH/AXFyQdoAIAprQX9zIApBwQBrIglBf3NxQQh2IAlxQf8BcXIiCUEBayAKQb7/A3NBAWpxQQh2Qf8BcSAJciIJQf8BRgRAQQAhCSAERQ0FIAQgChAdDQEgCyEIDAULIAkgDkEGdGohDgJAIAxBAkkEQCAMQQZqIQwMAQsgDEECayEMIAEgDU0NBCAAIA1qIA4gDHY6AAAgDUEBaiENC0EAIQkgC0EBaiIIIANJDQIMBAsgC0EBaiILIANJDQALCyADIAhBAWoiACAAIANJGyEIDAELIAshCEHQlgJBxAA2AgBBASEJCyAMQQRLDQEgCAshAEF/IQEgCQRAIAAhCAwICyAOQX8gDHRBf3NxBEAgACEIDAgLIAdBAnEEQCAAIQcMAwsgDEECSQRAIAAhBwwDCyAAIAMgACADSxshCCAMQQF2IQsgBEUNASAAIQcDQCAHIAhGBEBBxAAhCQwFCwJAIAIgB2osAAAiAEE9RgRAIAtBAWshCwwBCyAEIAAQHQ0AQRwhCSAHIQgMBQsgB0EBaiEHIAsNAAsMAgtBfyEBDAYLQcQAIQkgACADTw0BIAAgAmotAABBPUcEQCAAIQhBHCEJDAILIAAgC2ohByALQQFGDQAgAEEBaiIMIAhGDQEgAiAMai0AAEE9RwRAIAwhCEEcIQkMAgsgC0ECRg0AIABBAmoiACAIRg0BQRwhCSAAIgggAmotAABBPUcNAQtBACEBIAQNAQwCC0HQlgIgCTYCAAwDCyADIAdNDQADQCAEIAIgB2osAAAQHUUNASAHQQFqIgcgA0cNAAsgAwwBCyAHCyEIIA0hDwsCQCAGBEAgBiACIAhqNgIADAELIAMgCEYNAEHQlgJBHDYCAEF/IQELIAUEQCAFIA82AgALIAELkQcBCn8CfwJ/AkACQCAEQXlxQQFHDQAgA0EDbiIGQQJ0IQkCQCAGQX1sIANqIgZFDQAgBEECcUUEQCAJQQRqIQkMAQsgCUECciAGQQF2aiEJCyABIAlNDQACQCAEQQRxBEBBACADRQ0FGkEAIQYMAQtBACADRQ0EGkEAIQYMAgsDQCACIAtqLQAAIgwgBUEIdHIhBSAGIgogCEEIciIIQQZrQQZuakEBaiEGA0AgACAKaiAFIAgiBEEGayIIdkE/cSIHQcH/AWpBf3NBCHZB3wBxIAdB5v8DakEIdiINIAdBwQBqcXIgB0H8AWogB0HC/wNqQQh2cSAHQcz/A2pBCHYiDkF/c3FyIAdBwf8Ac0EBakF/c0EIdkEtcXIgB0HHAGogDUF/c3EgDnFyOgAAIApBAWoiCiAGRw0ACyALQQFqIgsgA0cNAAsgBiAIRQ0DGiAMQQwgBGt0QT9xIgJB5v8DakEIdiIDIAJBwQBqcSEKIAJB/AFqIAJBwv8DakEIdnEgAkHM/wNqQQh2IgRBf3NxIQUgAkHHAGogA0F/c3EgBHEhCCACQcH/AWohAyACQcH/AHNBAWpBf3NBCHZBLXEhBEHfAAwCCxAJAAsDQCACIAtqLQAAIgwgBUEIdHIhBSAGIgogCEEIciIIQQZrQQZuakEBaiEGA0AgACAKaiAFIAgiBEEGayIIdkE/cSIHQcH/AGpBf3NBCHZBL3EgB0Hm/wNqQQh2Ig0gB0HBAGpxciAHQfwBaiAHQcL/A2pBCHZxIAdBzP8DakEIdiIOQX9zcXIgB0HB/wBzQQFqQX9zQQh2QStxciAHQccAaiANQX9zcSAOcXI6AAAgCkEBaiIKIAZHDQALIAtBAWoiCyADRw0ACyAGIAhFDQEaIAxBDCAEa3RBP3EiAkHm/wNqQQh2IgMgAkHBAGpxIQogAkH8AWogAkHC/wNqQQh2cSACQcz/A2pBCHYiBEF/c3EhBSACQccAaiADQX9zcSAEcSEIIAJBwf8AaiEDIAJBwf8Ac0EBakF/c0EIdkErcSEEQS8LIQIgACAGaiACIANBf3NBCHZxIApyIAVyIARyIAhyOgAAIAZBAWoLIQUCQAJAIAUgCU0EQCAFIAlJDQEgBSEJDAILQZgIQeYIQeYBQacKEAEACyAAIAVqQT0gCSAFaxAIGgsgACAJakEAIAEgCUEBaiICIAEgAksbIAlrEAgaIAALPQEBfyABQXlxQQFHBEAQCQALIAAgAEEDbiIAQX1saiICQQFqQQQgAUECcRtBACACQQNxGyAAQQJ0akEBaguIBQEKfwJAIANFDQACQAJAAkACQCAERQRAQQEhCUEAIQQDQCACIAdqLQAAIgxB3wFxQTdrQf8BcSIKQfb/A2ogCkHw/wNqc0EIdiINIAxBMHMiDEH2/wNqQQh2Ig5yQf8BcUUNAyABIAtNDQIgCiANcSAMIA5xciEKAkAgCEH/AXFFBEAgCkEEdCEEDAELIAAgC2ogBCAKcjoAACALQQFqIQsLIAhBf3MhCCAHQQFqIgcgA0cNAAsgAyEHDAILA0ACQAJAAkACfwJAIAIgB2otAAAiCUHfAXFBN2tB/wFxIgpB9v8DaiAKQfD/A2pzQQh2IgwgCUEwcyINQfb/A2pBCHYiDnJB/wFxRQRAIAhB/wFxDQkgBCAJEB1FDQsgB0EBaiIIIQcgAyAISw0BDAsLIAEgC00NBiAKIAxxIA0gDnFyIgkgCEH/AXFFDQEaIAAgC2ogCSAQcjoAACALQQFqIQsMBAsDQCACIAdqLQAAIglB3wFxQTdrQf8BcSIKQfb/A2ogCkHw/wNqc0EIdiIMIAlBMHMiDUH2/wNqQQh2Ig5yQf8BcUUEQCAEIAkQHUUNCyADIAdBAWoiB0sNAQwDCwsgASALTQ0CIAogDHEgDSAOcXILQQR0IRBBACEIDAILIAMgCCADIAhLGyEHDAcLQQAhCAwCCyAIQX9zIQhBASEJIAdBAWoiByADSQ0ACwwBC0HQlgJBxAA2AgBBACEJCyAIQf8BcUUNAQtB0JYCQRw2AgBBfyEPIAdBAWshB0EAIQsMAQsgCQ0AQQAhC0F/IQ8LAkAgBgRAIAYgAiAHajYCAAwBCyADIAdGDQBB0JYCQRw2AgBBfyEPCyAFBEAgBSALNgIACyAPC50BAQN/AkAgA0H+////B0sNACADQQF0IAFPDQBBACEBIAMEfwNAIAAgAUEBdGoiBCABIAJqLQAAIgVBD3EiBkEIdCAGQfb/A2pBgLIDcWpBgK4BakEIdjoAASAEIAVBBHYiBCAEQfb/A2pBCHZB2QFxakHXAGo6AAAgAUEBaiIBIANHDQALIANBAXQFQQALIABqQQA6AAAgAA8LEAkACysBAX8jAEFAaiIDJAAgACADEBMgASADQsAAIAJBARAxIQAgA0FAayQAIAALLQEBfyMAQUBqIgQkACAAIAQQEyABIAIgBELAACADQQEQMiEAIARBQGskACAACwgAIAAQGUEAC7sBAgJ/A34jAEHAAWsiAiQAIAJBIBAWIAEgAkIgEBgaIAEgAS0AAEH4AXE6AAAgASABLQAfQT9xQcAAcjoAHyACQSBqIgMgARAqIAAgAxArIAEgAikDGDcAGCABIAIpAxA3ABAgASACKQMINwAIIAEgAikDADcAACAAKQAIIQQgACkAECEFIAApAAAhBiABIAApABg3ADggASAFNwAwIAEgBDcAKCABIAY3ACAgAkEgEAcgAkHAAWokAEEAC9IBAQR/IwBBEGsiBSQAAkACQCADRQRAQX8hBwwBCwJ/IAMgA0EBayIGcUUEQCACIAZxDAELIAIgA3ALIQhBfyEHIAYgCGsiBiACQX9zTw0BIAIgBmoiAiAETw0AIAAEQCAAIAJBAWo2AgALIAEgAmohAEEAIQcgBUEAOgAPQQAhAgNAIAAgAmsiASABLQAAIAUtAA9xIAIgBnNBAWtBGHYiAUGAAXFyOgAAIAUgBS0ADyABcjoADyACQQFqIgIgA0cNAAsLIAVBEGokACAHDwsQCQALC7qFAgwAQYAIC5cDTGlic29kaXVtRFJHcmFuZG9tYnl0ZXMAYjY0X3BvcyA8PSBiNjRfbGVuAGNyeXB0b19nZW5lcmljaGFzaF9ibGFrZTJiX2ZpbmFsAHJhbmRvbWJ5dGVzL3JhbmRvbWJ5dGVzLmMAc29kaXVtL2NvZGVjcy5jAGNyeXB0b19nZW5lcmljaGFzaC9ibGFrZTJiL3JlZi9ibGFrZTJiLXJlZi5jAGNyeXB0b19nZW5lcmljaGFzaC9ibGFrZTJiL3JlZi9nZW5lcmljaGFzaF9ibGFrZTJiLmMAYnVmX2xlbiA8PSBTSVpFX01BWABvdXRsZW4gPD0gVUlOVDhfTUFYAFMtPmJ1ZmxlbiA8PSBCTEFLRTJCX0JMT0NLQllURVMAMS4wLjE4AHNvZGl1bV9iaW4yYmFzZTY0AAAAAAAAAAC2eFn/hXLTAL1uFf8PCmoAKcABAJjoef+8PKD/mXHO/wC34v60DUj/AAAAAAAAAACwoA7+08mG/54YjwB/aTUAYAy9AKfX+/+fTID+amXh/x78BACSDK4AQaALCydZ8bL+CuWm/3vdKv4eFNQAUoADADDR8wB3eUD/MuOc/wBuxQFnG5AAQdALC8AHhTuMAb3xJP/4JcMBYNw3ALdMPv/DQj0AMkykAeGkTP9MPaP/dT4fAFGRQP92QQ4AonPW/waKLgB85vT/CoqPADQawgC49EwAgY8pAb70E/97qnr/YoFEAHnVkwBWZR7/oWebAIxZQ//v5b4BQwu1AMbwif7uRbz/Q5fuABMqbP/lVXEBMkSH/xFqCQAyZwH/UAGoASOYHv8QqLkBOFno/2XS/AAp+kcAzKpP/w4u7/9QTe8AvdZL/xGN+QAmUEz/vlV1AFbkqgCc2NABw8+k/5ZCTP+v4RD/jVBiAUzb8gDGonIALtqYAJsr8f6boGj/M7ulAAIRrwBCVKAB9zoeACNBNf5F7L8ALYb1AaN73QAgbhT/NBelALrWRwDpsGAA8u82ATlZigBTAFT/iKBkAFyOeP5ofL4AtbE+//opVQCYgioBYPz2AJeXP/7vhT4AIDicAC2nvf+OhbMBg1bTALuzlv76qg7/0qNOACU0lwBjTRoA7pzV/9XA0QFJLlQAFEEpATbOTwDJg5L+qm8Y/7EhMv6rJsv/Tvd0ANHdmQCFgLIBOiwZAMknOwG9E/wAMeXSAXW7dQC1s7gBAHLbADBekwD1KTgAfQ3M/vStdwAs3SD+VOoUAPmgxgHsfur/L2Oo/qrimf9ms9gA4o16/3pCmf629YYA4+QZAdY56//YrTj/tefSAHeAnf+BX4j/bn4zAAKpt/8HgmL+RbBe/3QE4wHZ8pH/yq0fAWkBJ/8ur0UA5C86/9fgRf7POEX/EP6L/xfP1P/KFH7/X9Vg/wmwIQDIBc//8SqA/iMhwP/45cQBgRF4APtnl/8HNHD/jDhC/yji9f/ZRiX+rNYJ/0hDhgGSwNb/LCZwAES4S//OWvsAleuNALWqOgB09O8AXJ0CAGatYgDpiWABfzHLAAWblAAXlAn/03oMACKGGv/bzIgAhggp/+BTK/5VGfcAbX8A/qmIMADud9v/563VAM4S/v4Iugf/fgkHAW8qSABvNOz+YD+NAJO/f/7NTsD/DmrtAbvbTACv87v+aVmtAFUZWQGi85QAAnbR/iGeCQCLoy7/XUYoAGwqjv5v/I7/m9+QADPlp/9J/Jv/XnQM/5ig2v+c7iX/s+rP/8UAs/+apI0A4cRoAAojGf7R1PL/Yf3e/rhl5QDeEn8BpIiH/x7PjP6SYfMAgcAa/slUIf9vCk7/k1Gy/wQEGACh7tf/Bo0hADXXDv8ptdD/54udALPL3f//uXEAveKs/3FC1v/KPi3/ZkAI/06uEP6FdUT/AEGwEwsBAQBB0BMLsAEm6JWPwrInsEXD9Iny75jw1d+sBdPGMzmxOAKIbVP8BccXanA9TdhPujwLdg0QZw8qIFP6LDnMxk7H/XeSrAN67P///////////////////////////////////////3/t////////////////////////////////////////f+7///////////////////////////////////////9/7dP1XBpjEljWnPei3vneFABBjxUL/PABEIU7jAG98ST/+CXDAWDcNwC3TD7/w0I9ADJMpAHhpEz/TD2j/3U+HwBRkUD/dkEOAKJz1v8Gii4AfOb0/wqKjwA0GsIAuPRMAIGPKQG+9BP/e6p6/2KBRAB51ZMAVmUe/6FnmwCMWUP/7+W+AUMLtQDG8In+7kW8/+pxPP8l/zn/RbK2/oDQswB2Gn3+AwfW//EyTf9Vy8X/04f6/xkwZP+71bT+EVhpAFPRngEFc2IABK48/qs3bv/ZtRH/FLyqAJKcZv5X1q7/cnqbAeksqgB/CO8B1uzqAK8F2wAxaj3/BkLQ/wJqbv9R6hP/12vA/0OX7gATKmz/5VVxATJEh/8RagkAMmcB/1ABqAEjmB7/EKi5AThZ6P9l0vwAKfpHAMyqT/8OLu//UE3vAL3WS/8RjfkAJlBM/75VdQBW5KoAnNjQAcPPpP+WQkz/r+EQ/41QYgFM2/IAxqJyAC7amACbK/H+m6Bo/7IJ/P5kbtQADgWnAOnvo/8cl50BZZIK//6eRv5H+eQAWB4yAEQ6oP+/GGgBgUKB/8AyVf8Is4r/JvrJAHNQoACD5nEAfViTAFpExwD9TJ4AHP92AHH6/gBCSy4A5torAOV4ugGURCsAiHzuAbtrxf9UNfb/M3T+/zO7pQACEa8AQlSgAfc6HgAjQTX+Rey/AC2G9QGje90AIG4U/zQXpQC61kcA6bBgAPLvNgE5WYoAUwBU/4igZABcjnj+aHy+ALWxPv/6KVUAmIIqAWD89gCXlz/+74U+ACA4nAAtp73/joWzAYNW0wC7s5b++qoO/0RxFf/eujv/QgfxAUUGSABWnGz+N6dZAG002/4NsBf/xCxq/++VR/+kjH3/n60BADMp5wCRPiEAim9dAblTRQCQcy4AYZcQ/xjkGgAx2eIAcUvq/sGZDP+2MGD/Dg0aAIDD+f5FwTsAhCVR/n1qPADW8KkBpONCANKjTgAlNJcAY00aAO6c1f/VwNEBSS5UABRBKQE2zk8AyYOS/qpvGP+xITL+qybL/073dADR3ZkAhYCyATosGQDJJzsBvRP8ADHl0gF1u3UAtbO4AQBy2wAwXpMA9Sk4AH0NzP70rXcALN0g/lTqFAD5oMYB7H7q/48+3QCBWdb/N4sF/kQUv/8OzLIBI8PZAC8zzgEm9qUAzhsG/p5XJADZNJL/fXvX/1U8H/+rDQcA2vVY/vwjPAA31qD/hWU4AOAgE/6TQOoAGpGiAXJ2fQD4/PoAZV7E/8aN4v4zKrYAhwwJ/m2s0v/F7MIB8UGaADCcL/+ZQzf/2qUi/kq0swDaQkcBWHpjANS12/9cKuf/7wCaAPVNt/9eUaoBEtXYAKtdRwA0XvgAEpeh/sXRQv+u9A/+ojC3ADE98P62XcMAx+QGAcgFEf+JLe3/bJQEAFpP7f8nP03/NVLPAY4Wdv9l6BIBXBpDAAXIWP8hqIr/leFIAALRG/8s9agB3O0R/x7Taf6N7t0AgFD1/m/+DgDeX74B3wnxAJJM1P9szWj/P3WZAJBFMAAj5G8AwCHB/3DWvv5zmJcAF2ZYADNK+ADix4/+zKJl/9BhvQH1aBIA5vYe/xeURQBuWDT+4rVZ/9AvWv5yoVD/IXT4ALOYV/9FkLEBWO4a/zogcQEBTUUAO3k0/5juUwA0CMEA5yfp/8ciigDeRK0AWzny/tzSf//AB/b+lyO7AMPspQBvXc4A1PeFAZqF0f+b5woAQE4mAHr5ZAEeE2H/Plv5AfiFTQDFP6j+dApSALjscf7Uy8L/PWT8/iQFyv93W5n/gU8dAGdnq/7t12//2DVFAO/wFwDCld3/JuHeAOj/tP52UoX/OdGxAYvohQCesC7+wnMuAFj35QEcZ78A3d6v/pXrLACX5Bn+2mlnAI5V0gCVgb7/1UFe/nWG4P9SxnUAnd3cAKNlJADFciUAaKym/gu2AABRSLz/YbwQ/0UGCgDHk5H/CAlzAUHWr//ZrdEAUH+mAPflBP6nt3z/WhzM/q878P8LKfgBbCgz/5Cxw/6W+n4AiltBAXg83v/1we8AHda9/4ACGQBQmqIATdxrAerNSv82pmf/dEgJAOReL/8eyBn/I9ZZ/z2wjP9T4qP/S4KsAIAmEQBfiZj/13yfAU9dAACUUp3+w4L7/yjKTP/7fuAAnWM+/s8H4f9gRMMAjLqd/4MT5/8qgP4ANNs9/mbLSACNBwv/uqTVAB96dwCF8pEA0Pzo/1vVtv+PBPr++ddKAKUebwGrCd8A5XsiAVyCGv9Nmy0Bw4sc/zvgTgCIEfcAbHkgAE/6vf9g4/z+JvE+AD6uff+bb13/CubOAWHFKP8AMTn+QfoNABL7lv/cbdL/Ba6m/iyBvQDrI5P/JfeN/0iNBP9na/8A91oEADUsKgACHvAABDs/AFhOJABxp7QAvkfB/8eepP86CKwATSEMAEE/AwCZTSH/rP5mAeTdBP9XHv4BkilW/4rM7/5sjRH/u/KHANLQfwBELQ7+SWA+AFE8GP+qBiT/A/kaACPVbQAWgTb/FSPh/+o9OP862QYAj3xYAOx+QgDRJrf/Iu4G/66RZgBfFtMAxA+Z/i5U6P91IpIB5/pK/xuGZAFcu8P/qsZwAHgcKgDRRkMAHVEfAB2oZAGpraAAayN1AD5gO/9RDEUBh+++/9z8EgCj3Dr/iYm8/1NmbQBgBkwA6t7S/7muzQE8ntX/DfHWAKyBjABdaPIAwJz7ACt1HgDhUZ4Af+jaAOIcywDpG5f/dSsF//IOL/8hFAYAifss/hsf9f+31n3+KHmVALqe1f9ZCOMARVgA/suH4QDJrssAk0e4ABJ5Kf5eBU4A4Nbw/iQFtAD7h+cBo4rUANL5dP5YgbsAEwgx/j4OkP+fTNMA1jNSAG115P5n38v/S/wPAZpH3P8XDVsBjahg/7W2hQD6MzcA6urU/q8/ngAn8DQBnr0k/9UoVQEgtPf/E2YaAVQYYf9FFd4AlIt6/9zV6wHoy/8AeTmTAOMHmgA1FpMBSAHhAFKGMP5TPJ3/kUipACJn7wDG6S8AdBME/7hqCf+3gVMAJLDmASJnSADbooYA9SqeACCVYP6lLJAAyu9I/teWBQAqQiQBhNevAFauVv8axZz/MeiH/me2UgD9gLABmbJ6APX6CgDsGLIAiWqEACgdKQAyHpj/fGkmAOa/SwCPK6oALIMU/ywNF//t/5sBn21k/3C1GP9o3GwAN9ODAGMM1f+Yl5H/7gWfAGGbCAAhbFEAAQNnAD5tIv/6m7QAIEfD/yZGkQGfX/UAReVlAYgc8ABP4BkATm55//iofAC7gPcAApPr/k8LhABGOgwBtQij/0+Jhf8lqgv/jfNV/7Dn1//MlqT/79cn/y5XnP4Io1j/rCLoAEIsZv8bNin+7GNX/yl7qQE0cisAdYYoAJuGGgDnz1v+I4Qm/xNmff4k44X/dgNx/x0NfACYYEoBWJLO/6e/3P6iElj/tmQXAB91NABRLmoBDAIHAEVQyQHR9qwADDCNAeDTWAB04p8AemKCAEHs6gHh4gn/z+J7AVnWOwBwh1gBWvTL/zELJgGBbLoAWXAPAWUuzP9/zC3+T//d/zNJEv9/KmX/8RXKAKDjBwBpMuwATzTF/2jK0AG0DxAAZcVO/2JNywApufEBI8F8ACObF//PNcAAC32jAfmeuf8EgzAAFV1v/z155wFFyCT/uTC5/2/uFf8nMhn/Y9ej/1fUHv+kkwX/gAYjAWzfbv/CTLIASmW0APMvMACuGSv/Uq39ATZywP8oN1sA12yw/ws4BwDg6UwA0WLK/vIZfQAswV3+ywixAIewEwBwR9X/zjuwAQRDGgAOj9X+KjfQ/zxDeADBFaMAY6RzAAoUdgCc1N7+oAfZ/3L1TAF1O3sAsMJW/tUPsABOzs/+1YE7AOn7FgFgN5j/7P8P/8VZVP9dlYUArqBxAOpjqf+YdFgAkKRT/18dxv8iLw//Y3iG/wXswQD5937/k7seADLmdf9s2dv/o1Gm/0gZqf6beU//HJtZ/gd+EQCTQSEBL+r9ABozEgBpU8f/o8TmAHH4pADi/toAvdHL/6T33v7/I6UABLzzAX+zRwAl7f7/ZLrwAAU5R/5nSEn/9BJR/uXShP/uBrT/C+Wu/+PdwAERMRwAo9fE/gl2BP8z8EcAcYFt/0zw5wC8sX8AfUcsARqv8wBeqRn+G+YdAA+LdwGoqrr/rMVM//xLvACJfMQASBZg/y2X+QHckWQAQMCf/3jv4gCBspIAAMB9AOuK6gC3nZIAU8fA/7isSP9J4YAATQb6/7pBQwBo9s8AvCCK/9oY8gBDilH+7YF5/xTPlgEpxxD/BhSAAJ92BQC1EI//3CYPABdAk/5JGg0AV+Q5Acx8gAArGN8A22PHABZLFP8TG34AnT7XAG4d5gCzp/8BNvy+AN3Mtv6znkH/UZ0DAMLanwCq3wAA4Asg/ybFYgCopCUAF1gHAaS6bgBgJIYA6vLlAPp5EwDy/nD/Ay9eAQnvBv9Rhpn+1v2o/0N84AD1X0oAHB4s/gFt3P+yWVkA/CRMABjGLv9MTW8AhuqI/ydeHQC5SOr/RkSH/+dmB/5N54wApy86AZRhdv8QG+EBps6P/26y1v+0g6IAj43hAQ3aTv9ymSEBYmjMAK9ydQGnzksAysRTATpAQwCKL28BxPeA/4ng4P6ecM8AmmT/AYYlawDGgE//f9Gb/6P+uf48DvMAH9tw/h3ZQQDIDXT+ezzE/+A7uP7yWcQAexBL/pUQzgBF/jAB53Tf/9GgQQHIUGIAJcK4/pQ/IgCL8EH/2ZCE/zgmLf7HeNIAbLGm/6DeBADcfnf+pWug/1Lc+AHxr4gAkI0X/6mKVACgiU7/4nZQ/zQbhP8/YIv/mPonALybDwDoM5b+KA/o//DlCf+Jrxv/S0lhAdrUCwCHBaIBa7nVAAL5a/8o8kYA28gZABmdDQBDUlD/xPkX/5EUlQAySJIAXkyUARj7QQAfwBcAuNTJ/3vpogH3rUgAolfb/n6GWQCfCwz+pmkdAEkb5AFxeLf/QqNtAdSPC/+f56gB/4BaADkOOv5ZNAr//QijAQCR0v8KgVUBLrUbAGeIoP5+vNH/IiNvANfbGP/UC9b+ZQV2AOjFhf/fp23/7VBW/0aLXgCewb8Bmw8z/w++cwBOh8//+QobAbV96QBfrA3+qtWh/yfsiv9fXVf/voBfAH0PzgCmlp8A4w+e/86eeP8qjYAAZbJ4AZxtgwDaDiz+96jO/9RwHABwEeT/WhAlAcXebAD+z1P/CVrz//P0rAAaWHP/zXR6AL/mwQC0ZAsB2SVg/5pOnADr6h//zrKy/5XA+wC2+ocA9hZpAHzBbf8C0pX/qRGqAABgbv91CQgBMnso/8G9YwAi46AAMFBG/tMz7AAtevX+LK4IAK0l6f+eQasAekXX/1pQAv+DamD+43KHAM0xd/6wPkD/UjMR//EU8/+CDQj+gNnz/6IbAf5advEA9sb2/zcQdv/In50AoxEBAIxreQBVoXb/JgCVAJwv7gAJpqYBS2K1/zJKGQBCDy8Ai+GfAEwDjv8O7rgAC881/7fAugGrIK7/v0zdAfeq2wAZrDL+2QnpAMt+RP+3XDAAf6e3AUEx/gAQP38B/hWq/zvgf/4WMD//G06C/ijDHQD6hHD+I8uQAGipqADP/R7/aCgm/l7kWADOEID/1Dd6/98W6gDfxX8A/bW1AZFmdgDsmST/1NlI/xQmGP6KPj4AmIwEAObcY/8BFdT/lMnnAPR7Cf4Aq9IAMzol/wH/Dv/0t5H+APKmABZKhAB52CkAX8Ny/oUYl/+c4uf/9wVN//aUc/7hXFH/3lD2/qp7Wf9Kx40AHRQI/4qIRv9dS1wA3ZMx/jR+4gDlfBcALgm1AM1ANAGD/hwAl57UAINATgDOGasAAOaLAL/9bv5n96cAQCgoASql8f87S+T+fPO9/8Rcsv+CjFb/jVk4AZPGBf/L+J7+kKKNAAus4gCCKhX/AaeP/5AkJP8wWKT+qKrcAGJH1gBb0E8An0zJAaYq1v9F/wD/BoB9/74BjACSU9r/1+5IAXp/NQC9dKX/VAhC/9YD0P/VboUAw6gsAZ7nRQCiQMj+WzpoALY6u/755IgAy4ZM/mPd6QBL/tb+UEWaAECY+P7siMr/nWmZ/pWvFAAWIxP/fHnpALr6xv6E5YsAiVCu/6V9RACQypT+6+/4AIe4dgBlXhH/ekhG/kWCkgB/3vgBRX92/x5S1/68ShP/5afC/nUZQv9B6jj+1RacAJc7Xf4tHBv/un6k/yAG7wB/cmMB2zQC/2Ngpv4+vn7/bN6oAUvirgDm4scAPHXa//z4FAHWvMwAH8KG/ntFwP+prST+N2JbAN8qZv6JAWYAnVoZAO96QP/8BukABzYU/1J0rgCHJTb/D7p9AONwr/9ktOH/Ku30//St4v74EiEAq2OW/0rrMv91UiD+aqjtAM9t0AHkCboAhzyp/rNcjwD0qmj/6y18/0ZjugB1ibcA4B/XACgJZAAaEF8BRNlXAAiXFP8aZDr/sKXLATR2RgAHIP7+9P71/6eQwv99cRf/sHm1AIhU0QCKBh7/WTAcACGbDv8Z8JoAjc1tAUZzPv8UKGv+iprH/17f4v+dqyYAo7EZ/i12A/8O3hcB0b5R/3Z76AEN1WX/ezd7/hv2pQAyY0z/jNYg/2FBQ/8YDBwArlZOAUD3YACgh0MAQjfz/5PMYP8aBiH/YjNTAZnV0P8CuDb/GdoLADFD9v4SlUj/DRlIACpP1gAqBCYBG4uQ/5W7FwASpIQA9VS4/njGaP9+2mAAOHXq/w0d1v5ELwr/p5qE/pgmxgBCsln/yC6r/w1jU//Su/3/qi0qAYrRfADWoo0ADOacAGYkcP4Dk0MANNd7/+mrNv9iiT4A99on/+fa7AD3v38Aw5JUAKWwXP8T1F7/EUrjAFgomQHGkwH/zkP1/vAD2v89jdX/YbdqAMPo6/5fVpoA0TDN/nbR8f/weN8B1R2fAKN/k/8N2l0AVRhE/kYUUP+9BYwBUmH+/2Njv/+EVIX/a9p0/3B6LgBpESAAwqA//0TeJwHY/VwAsWnN/5XJwwAq4Qv/KKJzAAkHUQCl2tsAtBYA/h2S/P+Sz+EBtIdgAB+jcACxC9v/hQzB/itOMgBBcXkBO9kG/25eGAFwrG8ABw9gACRVewBHlhX/0Em8AMALpwHV9SIACeZcAKKOJ//XWhsAYmFZAF5P0wBanfAAX9x+AWaw4gAkHuD+Ix9/AOfocwFVU4IA0kn1/y+Pcv9EQcUAO0g+/7eFrf5deXb/O7FR/+pFrf/NgLEA3PQzABr00QFJ3k3/owhg/paV0wCe/ssBNn+LAKHgOwAEbRb/3iot/9CSZv/sjrsAMs31/wpKWf4wT44A3kyC/x6mPwDsDA3/Mbj0ALtxZgDaZf0AmTm2/iCWKgAZxpIB7fE4AIxEBQBbpKz/TpG6/kM0zQDbz4EBbXMRADaPOgEV+Hj/s/8eAMHsQv8B/wf//cAw/xNF2QED1gD/QGWSAd99I//rSbP/+afiAOGvCgFhojoAanCrAVSsBf+FjLL/hvWOAGFaff+6y7n/300X/8BcagAPxnP/2Zj4AKuyeP/khjUAsDbBAfr7NQDVCmQBIsdqAJcf9P6s4Ff/Du0X//1VGv9/J3T/rGhkAPsORv/U0Ir//dP6ALAxpQAPTHv/Jdqg/1yHEAEKfnL/RgXg//f5jQBEFDwB8dK9/8PZuwGXA3EAl1yuAOc+sv/bt+EAFxch/821UAA5uPj/Q7QB/1p7Xf8nAKL/YPg0/1RCjAAif+T/wooHAaZuvAAVEZsBmr7G/9ZQO/8SB48ASB3iAcfZ+QDooUcBlb7JANmvX/5xk0P/io/H/3/MAQAdtlMBzuab/7rMPAAKfVX/6GAZ//9Z9//V/q8B6MFRABwrnP4MRQgAkxj4ABLGMQCGPCMAdvYS/zFY/v7kFbr/tkFwAdsWAf8WfjT/vTUx/3AZjwAmfzf/4mWj/tCFPf+JRa4BvnaR/zxi2//ZDfX/+ogKAFT+4gDJH30B8DP7/x+Dgv8CijL/19exAd8M7v/8lTj/fFtE/0h+qv53/2QAgofo/w5PsgD6g8UAisbQAHnYi/53EiT/HcF6ABAqLf/V8OsB5r6p/8Yj5P5urUgA1t3x/ziUhwDAdU7+jV3P/49BlQAVEmL/Xyz0AWq/TQD+VQj+1m6w/0mtE/6gxMf/7VqQAMGscf/Im4j+5FrdAIkxSgGk3df/0b0F/2nsN/8qH4EBwf/sAC7ZPACKWLv/4lLs/1FFl/+OvhABDYYIAH96MP9RQJwAq/OLAO0j9gB6j8H+1HqSAF8p/wFXhE0ABNQfABEfTgAnLa3+GI7Z/18JBv/jUwYAYjuC/j4eIQAIc9MBomGA/we4F/50HKj/+IqX/2L08AC6doIAcvjr/2mtyAGgfEf/XiSkAa9Bkv/u8ar+ysbFAORHiv4t9m3/wjSeAIW7sABT/Jr+Wb3d/6pJ/ACUOn0AJEQz/ipFsf+oTFb/JmTM/yY1IwCvE2EA4e79/1FRhwDSG//+60lrAAjPcwBSf4gAVGMV/s8TiABkpGUAUNBN/4TP7f8PAw//IaZuAJxfVf8luW8Blmoj/6aXTAByV4f/n8JAAAx6H//oB2X+rXdiAJpH3P6/OTX/qOig/+AgY//anKUAl5mjANkNlAHFcVkAlRyh/s8XHgBphOP/NuZe/4WtzP9ct53/WJD8/mYhWgCfYQMAtdqb//BydwBq1jX/pb5zAZhb4f9Yaiz/0D1xAJc0fAC/G5z/bjbsAQ4epv8nf88B5cccALzkvP5knesA9tq3AWsWwf/OoF8ATO+TAM+hdQAzpgL/NHUK/kk44/+YweEAhF6I/2W/0QAga+X/xiu0AWTSdgByQ5n/F1ga/1maXAHceIz/kHLP//xz+v8izkgAioV//wiyfAFXS2EAD+Vc/vBDg/92e+P+knho/5HV/wGBu0b/23c2AAETrQAtlpQB+FNIAMvpqQGOazgA9/kmAS3yUP8e6WcAYFJGABfJbwBRJx7/obdO/8LqIf9E44z+2M50AEYb6/9okE8ApOZd/taHnACau/L+vBSD/yRtrgCfcPEABW6VASSl2gCmHRMBsi5JAF0rIP74ve0AZpuNAMldw//xi/3/D29i/2xBo/6bT77/Sa7B/vYoMP9rWAv+ymFV//3MEv9x8kIAbqDC/tASugBRFTwAvGin/3ymYf7ShY4AOPKJ/ilvggBvlzoBb9WN/7es8f8mBsT/uQd7/y4L9gD1aXcBDwKh/wjOLf8Sykr/U3xzAdSNnQBTCNH+iw/o/6w2rf4y94QA1r3VAJC4aQDf/vgA/5Pw/xe8SAAHMzYAvBm0/ty0AP9ToBQAo73z/zrRwv9XSTwAahgxAPX53AAWracAdgvD/xN+7QBunyX/O1IvALS7VgC8lNABZCWF/wdwwQCBvJz/VGqB/4XhygAO7G//KBRlAKysMf4zNkr/+7m4/12b4P+0+eAB5rKSAEg5Nv6yPrgAd81IALnv/f89D9oAxEM4/+ogqwEu2+QA0Gzq/xQ/6P+lNccBheQF/zTNawBK7oz/lpzb/u+ssv/7vd/+II7T/9oPigHxxFAAHCRi/hbqxwA97dz/9jklAI4Rjv+dPhoAK+5f/gPZBv/VGfABJ9yu/5rNMP4TDcD/9CI2/owQmwDwtQX+m8E8AKaABP8kkTj/lvDbAHgzkQBSmSoBjOySAGtc+AG9CgMAP4jyANMnGAATyqEBrRu6/9LM7/4p0aL/tv6f/6x0NADDZ97+zUU7ADUWKQHaMMIAUNLyANK8zwC7oaH+2BEBAIjhcQD6uD8A3x5i/k2oogA7Na8AE8kK/4vgwgCTwZr/1L0M/gHIrv8yhXEBXrNaAK22hwBesXEAK1nX/4j8av97hlP+BfVC/1IxJwHcAuAAYYGxAE07WQA9HZsBy6vc/1xOiwCRIbX/qRiNATeWswCLPFD/2idhAAKTa/88+EgAreYvAQZTtv8QaaL+idRR/7S4hgEn3qT/3Wn7Ae9wfQA/B2EAP2jj/5Q6DABaPOD/VNT8AE/XqAD43ccBc3kBACSseAAgorv/OWsx/5MqFQBqxisBOUpXAH7LUf+Bh8MAjB+xAN2LwgAD3tcAg0TnALFWsv58l7QAuHwmAUajEQD5+7UBKjfjAOKhLAAX7G4AM5WOAV0F7ADat2r+QxhNACj10f/eeZkApTkeAFN9PABGJlIB5Qa8AG3enf83dj//zZe6AOMhlf/+sPYB47HjACJqo/6wK08Aal9OAbnxev+5Dj0AJAHKAA2yov/3C4QAoeZcAUEBuf/UMqUBjZJA/57y2gAVpH0A1Yt6AUNHVwDLnrIBl1wrAJhvBf8nA+//2f/6/7A/R/9K9U0B+q4S/yIx4//2Lvv/miMwAX2dPf9qJE7/YeyZAIi7eP9xhqv/E9XZ/the0f/8BT0AXgPKAAMat/9Avyv/HhcVAIGNTf9meAcBwkyMALyvNP8RUZQA6FY3AeEwrACGKir/7jIvAKkS/gAUk1f/DsPv/0X3FwDu5YD/sTFwAKhi+/95R/gA8wiR/vbjmf/bqbH++4ul/wyjuf+kKKv/mZ8b/vNtW//eGHABEtbnAGudtf7DkwD/wmNo/1mMvv+xQn7+arlCADHaHwD8rp4AvE/mAe4p4ADU6ggBiAu1AKZ1U/9Ew14ALoTJAPCYWACkOUX+oOAq/zvXQ/93w43/JLR5/s8vCP+u0t8AZcVE//9SjQH6iekAYVaFARBQRQCEg58AdF1kAC2NiwCYrJ3/WitbAEeZLgAnEHD/2Yhh/9zGGf6xNTEA3liG/4APPADPwKn/wHTR/2pO0wHI1bf/Bwx6/t7LPP8hbsf++2p1AOThBAF4Ogf/3cFU/nCFGwC9yMn/i4eWAOo3sP89MkEAmGyp/9xVAf9wh+MAohq6AM9guf70iGsAXZkyAcZhlwBuC1b/j3Wu/3PUyAAFyrcA7aQK/rnvPgDseBL+Yntj/6jJwv4u6tYAv4Ux/2OpdwC+uyMBcxUt//mDSABwBnv/1jG1/qbpIgBcxWb+/eTN/wM7yQEqYi4A2yUj/6nDJgBefMEBnCvfAF9Ihf54zr8AesXv/7G7T//+LgIB+qe+AFSBEwDLcab/+R+9/kidyv/QR0n/zxhIAAoQEgHSUUz/WNDA/37za//ujXj/x3nq/4kMO/8k3Hv/lLM8/vAMHQBCAGEBJB4m/3MBXf9gZ+f/xZ47AcCk8ADKyjn/GK4wAFlNmwEqTNcA9JfpABcwUQDvfzT+44Il//h0XQF8hHYArf7AAQbrU/9ur+cB+xy2AIH5Xf5UuIAATLU+AK+AugBkNYj+bR3iAN3pOgEUY0oAABagAIYNFQAJNDf/EVmMAK8iOwBUpXf/4OLq/wdIpv97c/8BEtb2APoHRwHZ3LkA1CNM/yZ9rwC9YdIAcu4s/ym8qf4tupoAUVwWAISgwQB50GL/DVEs/8ucUgBHOhX/0HK//jImkwCa2MMAZRkSADz61//phOv/Z6+OARAOXACNH27+7vEt/5nZ7wFhqC//+VUQARyvPv85/jYA3ud+AKYtdf4SvWD/5EwyAMj0XgDGmHgBRCJF/wxBoP5lE1oAp8V4/0Q2uf8p2rwAcagwAFhpvQEaUiD/uV2kAeTw7f9CtjUAq8Vc/2sJ6QHHeJD/TjEK/22qaf9aBB//HPRx/0o6CwA+3Pb/eZrI/pDSsv9+OYEBK/oO/2VvHAEvVvH/PUaW/zVJBf8eGp4A0RpWAIrtSgCkX7wAjjwd/qJ0+P+7r6AAlxIQANFvQf7Lhif/WGwx/4MaR//dG9f+aGld/x/sH/6HANP/j39uAdRJ5QDpQ6f+wwHQ/4QR3f8z2VoAQ+sy/9/SjwCzNYIB6WrGANmt3P9w5Rj/r5pd/kfL9v8wQoX/A4jm/xfdcf7rb9UAqnhf/vvdAgAtgp7+aV7Z//I0tP7VRC3/aCYcAPSeTAChyGD/zzUN/7tDlACqNvgAd6Ky/1MUCwAqKsABkp+j/7fobwBN5RX/RzWPABtMIgD2iC//2ye2/1zgyQETjg7/Rbbx/6N29QAJbWoBqrX3/04v7v9U0rD/1WuLACcmCwBIFZYASIJFAM1Nm/6OhRUAR2+s/uIqO/+zANcBIYDxAOr8DQG4TwgAbh5J//aNvQCqz9oBSppF/4r2Mf+bIGQAfUpp/1pVPf8j5bH/Pn3B/5lWvAFJeNQA0Xv2/ofRJv+XOiwBXEXW/w4MWP/8mab//c9w/zxOU//jfG4AtGD8/zV1If6k3FL/KQEb/yakpv+kY6n+PZBG/8CmEgBr+kIAxUEyAAGzEv//aAH/K5kj/1BvqABur6gAKWkt/9sOzf+k6Yz+KwF2AOlDwwCyUp//ild6/9TuWv+QI3z+GYykAPvXLP6FRmv/ZeNQ/lypNwDXKjEAcrRV/yHoGwGs1RkAPrB7/iCFGP/hvz4AXUaZALUqaAEWv+D/yMiM//nqJQCVOY0AwzjQ//6CRv8grfD/HdzHAG5kc/+E5fkA5Onf/yXY0f6ysdH/ty2l/uBhcgCJYaj/4d6sAKUNMQHS68z//AQc/kaglwDovjT+U/hd/z7XTQGvr7P/oDJCAHkw0AA/qdH/ANLIAOC7LAFJolIACbCP/xNMwf8dO6cBGCuaABy+vgCNvIEA6OvL/+oAbf82QZ8APFjo/3n9lv786YP/xm4pAVNNR//IFjv+av3y/xUMz//tQr0AWsbKAeGsfwA1FsoAOOaEAAFWtwBtvioA80SuAW3kmgDIsXoBI6C3/7EwVf9a2qn/+JhOAMr+bgAGNCsAjmJB/z+RFgBGal0A6IprAW6zPf/TgdoB8tFcACNa2QG2j2r/dGXZ/3L63f+tzAYAPJajAEmsLP/vblD/7UyZ/qGM+QCV6OUAhR8o/66kdwBxM9YAgeQC/kAi8wBr4/T/rmrI/1SZRgEyIxAA+krY/uy9Qv+Z+Q0A5rIE/90p7gB243n/XleM/v53XABJ7/b+dVeAABPTkf+xLvwA5Vv2AUWA9//KTTYBCAsJ/5lgpgDZ1q3/hsACAQDPAAC9rmsBjIZkAJ7B8wG2ZqsA65ozAI4Fe/88qFkB2Q5c/xPWBQHTp/4ALAbK/ngS7P8Pcbj/uN+LACixd/62e1r/sKWwAPdNwgAb6ngA5wDW/zsnHgB9Y5H/lkREAY3e+ACZe9L/bn+Y/+Uh1gGH3cUAiWECAAyPzP9RKbwAc0+C/14DhACYr7v/fI0K/37As/8LZ8YAlQYtANtVuwHmErL/SLaYAAPGuP+AcOABYaHmAP5jJv86n8UAl0LbADtFj/+5cPkAd4gv/3uChACoR1//cbAoAei5rQDPXXUBRJ1s/2YFk/4xYSEAWUFv/vceo/982d0BZvrYAMauS/45NxIA4wXsAeXVrQDJbdoBMenvAB43ngEZsmoAm2+8AV5+jADXH+4BTfAQANXyGQEmR6gAzbpd/jHTjP/bALT/hnalAKCThv9uuiP/xvMqAPOSdwCG66MBBPGH/8Euwf5ntE//4QS4/vJ2ggCSh7AB6m8eAEVC1f4pYHsAeV4q/7K/w/8ugioAdVQI/+kx1v7uem0ABkdZAezTewD0DTD+d5QOAHIcVv9L7Rn/keUQ/oFkNf+Glnj+qJ0yABdIaP/gMQ4A/3sW/5e5l/+qULgBhrYUAClkZQGZIRAATJpvAVbO6v/AoKT+pXtd/wHYpP5DEa//qQs7/54pPf9JvA7/wwaJ/xaTHf8UZwP/9oLj/3oogADiLxj+IyQgAJi6t/9FyhQAw4XDAN4z9wCpq14BtwCg/0DNEgGcUw//xTr5/vtZbv8yClj+MyvYAGLyxgH1l3EAq+zCAcUfx//lUSYBKTsUAP1o5gCYXQ7/9vKS/tap8P/wZmz+oKfsAJravACW6cr/GxP6AQJHhf+vDD8BkbfGAGh4c/+C+/cAEdSn/z57hP/3ZL0Am9+YAI/FIQCbOyz/ll3wAX8DV/9fR88Bp1UB/7yYdP8KFxcAicNdATZiYQDwAKj/lLx/AIZrlwBM/asAWoTAAJIWNgDgQjb+5rrl/ye2xACU+4L/QYNs/oABoACpMaf+x/6U//sGgwC7/oH/VVI+ALIXOv/+hAUApNUnAIb8kv4lNVH/m4ZSAM2n7v9eLbT/hCihAP5vcAE2S9kAs+bdAetev/8X8zABypHL/yd2Kv91jf0A/gDeACv7MgA2qeoBUETQAJTL8/6RB4cABv4AAPy5fwBiCIH/JiNI/9Mk3AEoGlkAqEDF/gPe7/8CU9f+tJ9pADpzwgC6dGr/5ffb/4F2wQDKrrcBpqFIAMlrk/7tiEoA6eZqAWlvqABA4B4BAeUDAGaXr//C7uT//vrUALvteQBD+2ABxR4LALdfzADNWYoAQN0lAf/fHv+yMNP/8cha/6fRYP85gt0ALnLI/z24QgA3thj+brYhAKu+6P9yXh8AEt0IAC/n/gD/cFMAdg/X/60ZKP7AwR//7hWS/6vBdv9l6jX+g9RwAFnAawEI0BsAtdkP/+eV6ACM7H4AkAnH/wxPtf6Ttsr/E222/zHU4QBKo8sAr+mUABpwMwDBwQn/D4f5AJbjggDMANsBGPLNAO7Qdf8W9HAAGuUiACVQvP8mLc7+8Frh/x0DL/8q4EwAuvOnACCED/8FM30Ai4cYAAbx2wCs5YX/9tYyAOcLz/+/flMBtKOq//U4GAGypNP/AxDKAWI5dv+Ng1n+ITMYAPOVW//9NA4AI6lD/jEeWP+zGyT/pYy3ADq9lwBYHwAAS6lCAEJlx/8Y2McBecQa/w5Py/7w4lH/XhwK/1PB8P/MwYP/Xg9WANoonQAzwdEAAPKxAGa59wCebXQAJodbAN+vlQDcQgH/VjzoABlgJf/heqIB17uo/56dLgA4q6IA6PBlAXoWCQAzCRX/NRnu/9ke6P59qZQADehmAJQJJQClYY0B5IMpAN4P8//+EhEABjztAWoDcQA7hL0AXHAeAGnQ1QAwVLP/u3nn/hvYbf+i3Wv+Se/D//ofOf+Vh1n/uRdzAQOjnf8ScPoAGTm7/6FgpAAvEPMADI37/kPquP8pEqEArwZg/6CsNP4YsLf/xsFVAXx5if+XMnL/3Ms8/8/vBQEAJmv/N+5e/kaYXgDV3E0BeBFF/1Wkvv/L6lEAJjEl/j2QfACJTjH+qPcwAF+k/ABpqYcA/eSGAECmSwBRSRT/z9IKAOpqlv9eIlr//p85/tyFYwCLk7T+GBe5ACk5Hv+9YUwAQbvf/+CsJf8iPl8B55DwAE1qfv5AmFsAHWKbAOL7Nf/q0wX/kMve/6Sw3f4F5xgAs3rNACQBhv99Rpf+YeT8AKyBF/4wWtH/luBSAVSGHgDxxC4AZ3Hq/y5lef4ofPr/hy3y/gn5qP+MbIP/j6OrADKtx/9Y3o7/yF+eAI7Ao/8HdYcAb3wWAOwMQf5EJkH/467+APT1JgDwMtD/oT/6ADzR7wB6IxMADiHm/gKfcQBqFH//5M1gAInSrv601JD/WWKaASJYiwCnonABQW7FAPElqQBCOIP/CslT/oX9u/+xcC3+xPsAAMT6l//u6Nb/ltHNABzwdgBHTFMB7GNbACr6gwFgEkD/dt4jAHHWy/96d7j/QhMkAMxA+QCSWYsAhj6HAWjpZQC8VBoAMfmBANDWS//Pgk3/c6/rAKsCif+vkboBN/WH/5pWtQFkOvb/bcc8/1LMhv/XMeYBjOXA/97B+/9RiA//s5Wi/xcnHf8HX0v+v1HeAPFRWv9rMcn/9NOdAN6Mlf9B2zj+vfZa/7I7nQEw2zQAYiLXABwRu/+vqRgAXE+h/+zIwgGTj+oA5eEHAcWoDgDrMzUB/XiuAMUGqP/KdasAoxXOAHJVWv8PKQr/whNjAEE32P6iknQAMs7U/0CSHf+enoMBZKWC/6wXgf99NQn/D8ESARoxC/+1rskBh8kO/2QTlQDbYk8AKmOP/mAAMP/F+VP+aJVP/+tuiP5SgCz/QSkk/ljTCgC7ebsAYobHAKu8s/7SC+7/QnuC/jTqPQAwcRf+BlZ4/3ey9QBXgckA8o3RAMpyVQCUFqEAZ8MwABkxq/+KQ4IAtkl6/pQYggDT5ZoAIJueAFRpPQCxwgn/pllWATZTuwD5KHX/bQPX/zWSLAE/L7MAwtgD/g5UiACIsQ3/SPO6/3URff/TOtP/XU/fAFpY9f+L0W//Rt4vAAr2T//G2bIA4+ELAU5+s/8+K34AZ5QjAIEIpf718JQAPTOOAFHQhgAPiXP/03fs/5/1+P8Choj/5os6AaCk/gByVY3/Maa2/5BGVAFVtgcALjVdAAmmof83orL/Lbi8AJIcLP6pWjEAeLLxAQ57f/8H8ccBvUIy/8aPZf6984f/jRgY/kthVwB2+5oB7TacAKuSz/+DxPb/iEBxAZfoOQDw2nMAMT0b/0CBSQH8qRv/KIQKAVrJwf/8efABus4pACvGYQCRZLcAzNhQ/qyWQQD55cT+aHtJ/01oYP6CtAgAaHs5ANzK5f9m+dMAVg7o/7ZO0QDv4aQAag0g/3hJEf+GQ+kAU/61ALfscAEwQIP/8djz/0HB4gDO8WT+ZIam/+3KxQA3DVEAIHxm/yjksQB2tR8B56CG/3e7ygAAjjz/gCa9/6bJlgDPeBoBNrisAAzyzP6FQuYAIiYfAbhwUAAgM6X+v/M3ADpJkv6bp83/ZGiY/8X+z/+tE/cA7grKAO+X8gBeOyf/8B1m/wpcmv/lVNv/oYFQANBazAHw267/nmaRATWyTP80bKgBU95rANMkbQB2OjgACB0WAO2gxwCq0Z0AiUcvAI9WIADG8gIA1DCIAVysugDml2kBYL/lAIpQv/7w2IL/YisG/qjEMQD9ElsBkEl5AD2SJwE/aBj/uKVw/n7rYgBQ1WL/ezxX/1KM9QHfeK3/D8aGAc487wDn6lz/Ie4T/6VxjgGwdyYAoCum/u9baQBrPcIBGQREAA+LMwCkhGr/InQu/qhfxQCJ1BcASJw6AIlwRf6WaZr/7MmdABfUmv+IUuP+4jvd/1+VwABRdjT/ISvXAQ6TS/9ZnHn+DhJPAJPQiwGX2j7/nFgIAdK4Yv8Ur3v/ZlPlANxBdAGW+gT/XI7c/yL3Qv/M4bP+l1GXAEco7P+KPz4ABk/w/7e5tQB2MhsAP+PAAHtjOgEy4Jv/EeHf/tzgTf8OLHsBjYCvAPjUyACWO7f/k2EdAJbMtQD9JUcAkVV3AJrIugACgPn/Uxh8AA5XjwCoM/UBfJfn/9DwxQF8vrkAMDr2ABTp6AB9EmL/Df4f//Wxgv9sjiMAq33y/owMIv+loaIAzs1lAPcZIgFkkTkAJ0Y5AHbMy//yAKIApfQeAMZ04gCAb5n/jDa2ATx6D/+bOjkBNjLGAKvTHf9riqf/rWvH/22hwQBZSPL/znNZ//r+jv6xyl7/UVkyAAdpQv8Z/v/+y0AX/0/ebP8n+UsA8XwyAO+YhQDd8WkAk5diANWhef7yMYkA6SX5/iq3GwC4d+b/2SCj/9D75AGJPoP/T0AJ/l4wcQARijL+wf8WAPcSxQFDN2gAEM1f/zAlQgA3nD8BQFJK/8g1R/7vQ30AGuDeAN+JXf8e4Mr/CdyEAMYm6wFmjVYAPCtRAYgcGgDpJAj+z/KUAKSiPwAzLuD/cjBP/wmv4gDeA8H/L6Do//9daf4OKuYAGopSAdAr9AAbJyb/YtB//0CVtv8F+tEAuzwc/jEZ2v+pdM3/dxJ4AJx0k/+ENW3/DQrKAG5TpwCd24n/BgOC/zKnHv88ny//gYCd/l4DvQADpkQAU9/XAJZawgEPqEEA41Mz/82rQv82uzwBmGYt/3ea4QDw94gAZMWy/4tH3//MUhABKc4q/5zA3f/Ye/T/2tq5/7u67//8rKD/wzQWAJCutf67ZHP/006w/xsHwQCT1Wj/WskK/1B7QgEWIboAAQdj/h7OCgDl6gUANR7SAIoI3P5HN6cASOFWAXa+vAD+wWUBq/ms/16et/5dAmz/sF1M/0ljT/9KQIH+9i5BAGPxf/72l2b/LDXQ/jtm6gCar6T/WPIgAG8mAQD/tr7/c7AP/qk8gQB67fEAWkw/AD5KeP96w24AdwSyAN7y0gCCIS7+nCgpAKeScAExo2//ebDrAEzPDv8DGcYBKevVAFUk1gExXG3/yBge/qjswwCRJ3wB7MOVAFokuP9DVar/JiMa/oN8RP/vmyP/NsmkAMQWdf8xD80AGOAdAX5xkAB1FbYAy5+NAN+HTQCw5rD/vuXX/2Mltf8zFYr/Gb1Z/zEwpf6YLfcAqmzeAFDKBQAbRWf+zBaB/7T8Pv7SAVv/km7+/9uiHADf/NUBOwghAM4Q9ACB0zAAa6DQAHA70QBtTdj+IhW5//ZjOP+zixP/uR0y/1RZEwBK+mL/4SrI/8DZzf/SEKcAY4RfASvmOQD+C8v/Y7w//3fB+/5QaTYA6LW9AbdFcP/Qq6X/L220/3tTpQCSojT/mgsE/5fjWv+SiWH+Pekp/14qN/9spOwAmET+AAqMg/8Kak/+856JAEOyQv6xe8b/Dz4iAMVYKv+VX7H/mADG/5X+cf/hWqP/fdn3ABIR4ACAQnj+wBkJ/zLdzQAx1EYA6f+kAALRCQDdNNv+rOD0/144zgHyswL/H1ukAeYuiv+95twAOS89/28LnQCxW5gAHOZiAGFXfgDGWZH/p09rAPlNoAEd6eb/lhVW/jwLwQCXJST+uZbz/+TUUwGsl7QAyambAPQ86gCO6wQBQ9o8AMBxSwF088//QaybAFEenP9QSCH+Eudt/45rFf59GoT/sBA7/5bJOgDOqckA0HniACisDv+WPV7/ODmc/408kf8tbJX/7pGb/9FVH/7ADNIAY2Jd/pgQlwDhudwAjess/6CsFf5HGh//DUBd/hw4xgCxPvgBtgjxAKZllP9OUYX/gd7XAbypgf/oB2EAMXA8/9nl+wB3bIoAJxN7/oMx6wCEVJEAguaU/xlKuwAF9Tb/udvxARLC5P/xymYAaXHKAJvrTwAVCbL/nAHvAMiUPQBz99L/Md2HADq9CAEjLgkAUUEF/zSeuf99dC7/SowN/9JcrP6TF0cA2eD9/nNstP+ROjD+27EY/5z/PAGak/IA/YZXADVL5QAww97/H68y/5zSeP/QI97/EvizAQIKZf+dwvj/nsxl/2j+xf9PPgQAsqxlAWCS+/9BCpwAAoml/3QE5wDy1wEAEyMd/yuhTwA7lfYB+0KwAMghA/9Qbo7/w6ERAeQ4Qv97L5H+hASkAEOurAAZ/XIAV2FXAfrcVABgW8j/JX07ABNBdgChNPH/7awG/7C///8BQYL+377mAGX95/+SI20A+h1NATEAEwB7WpsBFlYg/9rVQQBvXX8APF2p/wh/tgARug7+/Yn2/9UZMP5M7gD/+FxG/2PgiwC4Cf8BB6TQAM2DxgFX1scAgtZfAN2V3gAXJqv+xW7VACtzjP7XsXYAYDRCAXWe7QAOQLb/Lj+u/55fvv/hzbH/KwWO/6xj1P/0u5MAHTOZ/+R0GP4eZc8AE/aW/4bnBQB9huIBTUFiAOyCIf8Fbj4ARWx//wdxFgCRFFP+wqHn/4O1PADZ0bH/5ZTU/gODuAB1sbsBHA4f/7BmUAAyVJf/fR82/xWdhf8Ts4sB4OgaACJ1qv+n/Kv/SY3O/oH6IwBIT+wB3OUU/ynKrf9jTO7/xhbg/2zGw/8kjWAB7J47/2pkVwBu4gIA4+reAJpdd/9KcKT/Q1sC/xWRIf9m1on/r+Zn/qP2pgBd93T+p+Ac/9wCOQGrzlQAe+QR/xt4dwB3C5MBtC/h/2jIuf6lAnIATU7UAC2asf8YxHn+Up22AFoQvgEMk8UAX++Y/wvrRwBWknf/rIbWADyDxACh4YEAH4J4/l/IMwBp59L/OgmU/yuo3f987Y4AxtMy/i71ZwCk+FQAmEbQ/7R1sQBGT7kA80ogAJWczwDFxKEB9TXvAA9d9v6L8DH/xFgk/6ImewCAyJ0Brkxn/62pIv7YAav/cjMRAIjkwgBuljj+avafABO4T/+WTfD/m1CiAAA1qf8dl1YARF4QAFwHbv5idZX/+U3m//0KjADWfFz+I3brAFkwOQEWNaYAuJA9/7P/wgDW+D3+O272AHkVUf6mA+QAakAa/0Xohv/y3DX+LtxVAHGV9/9hs2f/vn8LAIfRtgBfNIEBqpDO/3rIzP+oZJIAPJCV/kY8KAB6NLH/9tNl/67tCAAHM3gAEx+tAH7vnP+PvcsAxIBY/+mF4v8efa3/yWwyAHtkO//+owMB3ZS1/9aIOf7etIn/z1g2/xwh+/9D1jQB0tBkAFGqXgCRKDUA4G/n/iMc9P/ix8P+7hHmANnZpP6pnd0A2i6iAcfPo/9sc6IBDmC7/3Y8TAC4n5gA0edH/iqkuv+6mTP+3au2/6KOrQDrL8EAB4sQAV+kQP8Q3aYA28UQAIQdLP9kRXX/POtY/ihRrQBHvj3/u1idAOcLFwDtdaQA4ajf/5pydP+jmPIBGCCqAH1icf6oE0wAEZ3c/ps0BQATb6H/R1r8/61u8AAKxnn//f/w/0J70gDdwtf+eaMR/+EHYwC+MbYAcwmFAegaiv/VRIQALHd6/7NiMwCVWmoARzLm/wqZdv+xRhkApVfNADeK6gDuHmEAcZvPAGKZfwAia9v+dXKs/0y0//7yObP/3SKs/jiiMf9TA///cd29/7wZ5P4QWFn/RxzG/hYRlf/zef7/a8pj/wnODgHcL5kAa4knAWExwv+VM8X+ujoL/2sr6AHIBg7/tYVB/t3kq/97PucB4+qz/yK91P70u/kAvg1QAYJZAQDfha0ACd7G/0J/SgCn2F3/m6jGAUKRAABEZi4BrFqaANiAS/+gKDMAnhEbAXzwMQDsyrD/l3zA/ybBvgBftj0Ao5N8//+lM/8cKBH+12BOAFaR2v4fJMr/VgkFAG8pyP/tbGEAOT4sAHW4DwEt8XQAmAHc/52lvAD6D4MBPCx9/0Hc+/9LMrgANVqA/+dQwv+IgX8BFRK7/y06of9HkyIArvkL/iONHQDvRLH/c246AO6+sQFX9ab/vjH3/5JTuP+tDif/ktdoAI7feACVyJv/1M+RARC12QCtIFf//yO1AHffoQHI317/Rga6/8BDVf8yqZgAkBp7/zjzs/4URIgAJ4y8/v3QBf/Ic4cBK6zl/5xouwCX+6cANIcXAJeZSACTxWv+lJ4F/+6PzgB+mYn/WJjF/gdEpwD8n6X/7042/xg/N/8m3l4A7bcM/87M0gATJ/b+HkrnAIdsHQGzcwAAdXZ0AYQG/P+RgaEBaUONAFIl4v/u4uT/zNaB/qJ7ZP+5eeoALWznAEIIOP+EiIAArOBC/q+dvADm3+L+8ttFALgOdwFSojgAcnsUAKJnVf8x72P+nIfXAG//p/4nxNYAkCZPAfmofQCbYZz/FzTb/5YWkAAslaX/KH+3AMRN6f92gdL/qofm/9Z3xgDp8CMA/TQH/3VmMP8VzJr/s4ix/xcCAwGVgln//BGfAUY8GgCQaxEAtL48/zi2O/9uRzb/xhKB/5XgV//fFZj/iha2//qczQDsLdD/T5TyAWVG0QBnTq4AZZCs/5iI7QG/wogAcVB9AZgEjQCbljX/xHT1AO9ySf4TUhH/fH3q/yg0vwAq0p7/m4SlALIFKgFAXCj/JFVN/7LkdgCJQmD+c+JCAG7wRf6Xb1AAp67s/+Nsa/+88kH/t1H/ADnOtf8vIrX/1fCeAUdLXwCcKBj/ZtJRAKvH5P+aIikA469LABXvwwCK5V8BTMAxAHV7VwHj4YIAfT4//wLGqwD+JA3+kbrOAJT/9P8jAKYAHpbbAVzk1ABcxjz+PoXI/8kpOwB97m3/tKPuAYx6UgAJFlj/xZ0v/5leOQBYHrYAVKFVALKSfACmpgf/FdDfAJy28gCbebkAU5yu/poQdv+6U+gB3zp5/x0XWAAjfX//qgWV/qQMgv+bxB0AoWCIAAcjHQGiJfsAAy7y/wDZvAA5ruIBzukCADm7iP57vQn/yXV//7okzADnGdgAUE5pABOGgf+Uy0QAjVF9/vilyP/WkIcAlzem/ybrWwAVLpoA3/6W/yOZtP99sB0BK2Ie/9h65v/poAwAObkM/vBxB/8FCRD+GltsAG3GywAIkygAgYbk/3y6KP9yYoT+poQXAGNFLAAJ8u7/uDU7AISBZv80IPP+k9/I/3tTs/6HkMn/jSU4AZc84/9aSZwBy6y7AFCXL/9eief/JL87/+HRtf9K19X+Bnaz/5k2wQEyAOcAaJ1IAYzjmv+24hD+YOFc/3MUqv4G+k4A+Eut/zVZBv8AtHYASK0BAEAIzgGuhd8AuT6F/9YLYgDFH9AAq6f0/xbntQGW2rkA96lhAaWL9/8veJUBZ/gzADxFHP4Zs8QAfAfa/jprUQC46Zz//EokAHa8QwCNXzX/3l6l/i49NQDOO3P/L+z6/0oFIAGBmu7/aiDiAHm7Pf8DpvH+Q6qs/x3Ysv8XyfwA/W7zAMh9OQBtwGD/NHPuACZ58//JOCEAwnaCAEtgGf+qHub+Jz/9ACQt+v/7Ae8AoNRcAS3R7QDzIVf+7VTJ/9QSnf7UY3//2WIQ/ous7wCoyYL/j8Gp/+6XwQHXaCkA7z2l/gID8gAWy7H+scwWAJWB1f4fCyn/AJ95/qAZcv+iUMgAnZcLAJqGTgHYNvwAMGeFAGncxQD9qE3+NbMXABh58AH/LmD/azyH/mLN+f8/+Xf/eDvT/3K0N/5bVe0AldRNAThJMQBWxpYAXdGgAEXNtv/0WisAFCSwAHp03QAzpycB5wE//w3FhgAD0SL/hzvKAKdkTgAv30wAuTw+ALKmewGEDKH/Pa4rAMNFkAB/L78BIixOADnqNAH/Fij/9l6SAFPkgAA8TuD/AGDS/5mv7ACfFUkAtHPE/oPhagD/p4YAnwhw/3hEwv+wxMb/djCo/12pAQBwyGYBShj+ABONBP6OPj8Ag7O7/02cm/93VqQAqtCS/9CFmv+Umzr/onjo/vzVmwDxDSoAXjKDALOqcACMU5f/N3dUAYwj7/+ZLUMB7K8nADaXZ/+eKkH/xO+H/lY1ywCVYS/+2CMR/0YDRgFnJFr/KBqtALgwDQCj29n/UQYB/92qbP7p0F0AZMn5/lYkI//Rmh4B48n7/wK9p/5kOQMADYApAMVkSwCWzOv/ka47AHj4lf9VN+EActI1/sfMdwAO90oBP/uBAENolwGHglAAT1k3/3Xmnf8ZYI8A1ZEFAEXxeAGV81//cioUAINIAgCaNRT/ST5tAMRmmAApDMz/eiYLAfoKkQDPfZQA9vTe/ykgVQFw1X4AovlWAUfGf/9RCRUBYicE/8xHLQFLb4kA6jvnACAwX//MH3IBHcS1/zPxp/5dbY4AaJAtAOsMtf80cKQATP7K/64OogA965P/K0C5/ul92QDzWKf+SjEIAJzMQgB81nsAJt12AZJw7AByYrEAl1nHAFfFcAC5laEALGClAPizFP+829j+KD4NAPOOjQDl487/rMoj/3Ww4f9SbiYBKvUO/xRTYQAxqwoA8nd4ABnoPQDU8JP/BHM4/5ER7/7KEfv/+RL1/2N17wC4BLP/9u0z/yXvif+mcKb/Ubwh/7n6jv82u60A0HDJAPYr5AFouFj/1DTE/zN1bP/+dZsALlsP/1cOkP9X48wAUxpTAZ9M4wCfG9UBGJdsAHWQs/6J0VIAJp8KAHOFyQDftpwBbsRd/zk86QAFp2n/msWkAGAiuv+ThSUB3GO+AAGnVP8UkasAwsX7/l9Ohf/8+PP/4V2D/7uGxP/YmaoAFHae/owBdgBWng8BLdMp/5MBZP5xdEz/039sAWcPMADBEGYBRTNf/2uAnQCJq+kAWnyQAWqhtgCvTOwByI2s/6M6aADptDT/8P0O/6Jx/v8m74r+NC6mAPFlIf6DupwAb9A+/3xeoP8frP4AcK44/7xjG/9DivsAfTqAAZyYrv+yDPf//FSeAFLFDv6syFP/JScuAWrPpwAYvSIAg7KQAM7VBACh4tIASDNp/2Etu/9OuN//sB37AE+gVv90JbIAUk3VAVJUjf/iZdQBr1jH//Ve9wGsdm3/prm+AIO1eABX/l3/hvBJ/yD1j/+Lomf/s2IS/tnMcACT33j/NQrzAKaMlgB9UMj/Dm3b/1vaAf/8/C/+bZx0/3MxfwHMV9P/lMrZ/xpV+f8O9YYBTFmp//It5gA7Yqz/ckmE/k6bMf+eflQAMa8r/xC2VP+dZyMAaMFt/0PdmgDJrAH+CKJYAKUBHf99m+X/HprcAWfvXADcAW3/ysYBAF4CjgEkNiwA6+Ke/6r71v+5TQkAYUryANujlf/wI3b/33JY/sDHAwBqJRj/yaF2/2FZYwHgOmf/ZceT/t48YwDqGTsBNIcbAGYDW/6o2OsA5eiIAGg8gQAuqO4AJ79DAEujLwCPYWL/ONioAajp/P8jbxb/XFQrABrIVwFb/ZgAyjhGAI4ITQBQCq8B/MdMABZuUv+BAcIAC4A9AVcOkf/93r4BD0iuAFWjVv46Yyz/LRi8/hrNDwAT5dL++EPDAGNHuACaxyX/l/N5/yYzS//JVYL+LEH6ADmT8/6SKzv/WRw1ACFUGP+zMxL+vUZTAAucswFihncAnm9vAHeaSf/IP4z+LQ0N/5rAAv5RSCoALqC5/ixwBgCS15UBGrBoAEQcVwHsMpn/s4D6/s7Bv/+mXIn+NSjvANIBzP6orSMAjfMtASQybf8P8sL/4596/7Cvyv5GOUgAKN84ANCiOv+3Yl0AD28MAB4ITP+Ef/b/LfJnAEW1D/8K0R4AA7N5APHo2gF7x1j/AtLKAbyCUf9eZdABZyQtAEzBGAFfGvH/paK7ACRyjADKQgX/JTiTAJgL8wF/Vej/+ofUAbmxcQBa3Ev/RfiSADJvMgBcFlAA9CRz/qNkUv8ZwQYBfz0kAP1DHv5B7Kr/oRHX/j+vjAA3fwQAT3DpAG2gKACPUwf/QRru/9mpjP9OXr3/AJO+/5NHuv5qTX//6Z3pAYdX7f/QDewBm20k/7Rk2gC0oxIAvm4JARE/e/+ziLT/pXt7/5C8Uf5H8Gz/GXAL/+PaM/+nMur/ck9s/x8Tc/+38GMA41eP/0jZ+P9mqV8BgZWVAO6FDAHjzCMA0HMaAWYI6gBwWI8BkPkOAPCerP5kcHcAwo2Z/ig4U/95sC4AKjVM/56/mgBb0VwArQ0QAQVI4v/M/pUAULjPAGQJev52Zav//MsA/qDPNgA4SPkBOIwN/wpAa/5bZTT/4bX4AYv/hADmkREA6TgXAHcB8f/VqZf/Y2MJ/rkPv/+tZ20Brg37/7JYB/4bO0T/CiEC//hhOwAaHpIBsJMKAF95zwG8WBgAuV7+/nM3yQAYMkYAeDUGAI5CkgDk4vn/aMDeAa1E2wCiuCT/j2aJ/50LFwB9LWIA613h/jhwoP9GdPMBmfk3/4EnEQHxUPQAV0UVAV7kSf9OQkH/wuPnAD2SV/+tmxf/cHTb/tgmC/+DuoUAXtS7AGQvWwDM/q//3hLX/q1EbP/j5E//Jt3VAKPjlv4fvhIAoLMLAQpaXv/crlgAo9Pl/8eINACCX93/jLzn/otxgP91q+z+MdwU/zsUq//kbbwAFOEg/sMQrgDj/ogBhydpAJZNzv/S7uIAN9SE/u85fACqwl3/+RD3/xiXPv8KlwoAT4uy/3jyygAa29UAPn0j/5ACbP/mIVP/US3YAeA+EQDW2X0AYpmZ/7Owav6DXYr/bT4k/7J5IP94/EYA3PglAMxYZwGA3Pv/7OMHAWoxxv88OGsAY3LuANzMXgFJuwEAWZoiAE7Zpf8Ow/n/Ceb9/82H9QAa/Af/VM0bAYYCcAAlniAA51vt/7+qzP+YB94AbcAxAMGmkv/oE7X/aY40/2cQGwH9yKUAw9kE/zS9kP97m6D+V4I2/054Pf8OOCkAGSl9/1eo9QDWpUYA1KkG/9vTwv5IXaT/xSFn/yuOjQCD4awA9GkcAERE4QCIVA3/gjko/otNOABUljUANl+dAJANsf5fc7oAdRd2//Sm8f8LuocAsmrL/2HaXQAr/S0ApJgEAIt27wBgARj+65nT/6huFP8y77AAcinoAMH6NQD+oG/+iHop/2FsQwDXmBf/jNHUACq9owDKKjL/amq9/75E2f/pOnUA5dzzAcUDBAAleDb+BJyG/yQ9q/6liGT/1OgOAFquCgDYxkH/DANAAHRxc//4ZwgA530S/6AcxQAeuCMB30n5/3sULv6HOCX/rQ3lAXehIv/1PUkAzX1wAIlohgDZ9h7/7Y6PAEGfZv9spL4A23Wt/yIleP7IRVAAH3za/koboP+6msf/R8f8AGhRnwERyCcA0z3AARruWwCU2QwAO1vV/wtRt/+B5nr/csuRAXe0Qv9IirQA4JVqAHdSaP/QjCsAYgm2/81lhv8SZSYAX8Wm/8vxkwA+0JH/hfb7AAKpDgAN97gAjgf+ACTIF/9Yzd8AW4E0/xW6HgCP5NIB9+r4/+ZFH/6wuof/7s00AYtPKwARsNn+IPNDAPJv6QAsIwn/43JRAQRHDP8mab8AB3Uy/1FPEAA/REH/nSRu/03xA//iLfsBjhnOAHh70QEc/u7/BYB+/1ve1/+iD78AVvBJAIe5Uf4s8aMA1NvS/3CimwDPZXYAqEg4/8QFNABIrPL/fhad/5JgO/+ieZj+jBBfAMP+yP5SlqIAdyuR/sysTv+m4J8AaBPt//V+0P/iO9UAddnFAJhI7QDcHxf+Dlrn/7zUQAE8Zfb/VRhWAAGxbQCSUyABS7bAAHfx4AC57Rv/uGVSAeslTf/9hhMA6PZ6ADxqswDDCwwAbULrAX1xOwA9KKQAr2jwAAIvu/8yDI0Awou1/4f6aABhXN7/2ZXJ/8vxdv9Pl0MAeo7a/5X17wCKKsj+UCVh/3xwp/8kilf/gh2T//FXTv/MYRMBsdEW//fjf/5jd1P/1BnGARCzswCRTaz+WZkO/9q9pwBr6Tv/IyHz/ixwcP+hf08BzK8KACgViv5odOQAx1+J/4W+qP+SpeoBt2MnALfcNv7/3oUAott5/j/vBgDhZjb/+xL2AAQigQGHJIMAzjI7AQ9htwCr2If/ZZgr/5b7WwAmkV8AIswm/rKMU/8ZgfP/TJAlAGokGv52kKz/RLrl/2uh1f8uo0T/lar9ALsRDwDaoKX/qyP2AWANEwCly3UA1mvA//R7sQFkA2gAsvJh//tMgv/TTSoB+k9G/z/0UAFpZfYAPYg6Ae5b1QAOO2L/p1RNABGELv45r8X/uT64AExAzwCsr9D+r0olAIob0/6UfcIACllRAKjLZf8r1dEB6/U2AB4j4v8JfkYA4n1e/px1FP85+HAB5jBA/6RcpgHg1ub/JHiPADcIK//7AfUBamKlAEprav41BDb/WrKWAQN4e//0BVkBcvo9//6ZUgFNDxEAOe5aAV/f5gDsNC/+Z5Sk/3nPJAESELn/SxRKALsLZQAuMIH/Fu/S/03sgf9vTcz/PUhh/8fZ+/8q18wAhZHJ/znmkgHrZMYAkkkj/mzGFP+2T9L/UmeIAPZssAAiETz/E0py/qiqTv+d7xT/lSmoADp5HABPs4b/53mH/67RYv/zer4Aq6bNANR0MAAdbEL/ot62AQ53FQDVJ/n//t/k/7elxgCFvjAAfNBt/3evVf8J0XkBMKu9/8NHhgGI2zP/tluN/jGfSAAjdvX/cLrj/zuJHwCJLKMAcmc8/gjVlgCiCnH/wmhIANyDdP+yT1wAy/rV/l3Bvf+C/yL+1LyXAIgRFP8UZVP/1M6mAOXuSf+XSgP/qFfXAJu8hf+mgUkA8E+F/7LTUf/LSKP+wailAA6kx/4e/8wAQUhbAaZKZv/IKgD/wnHj/0IX0ADl2GT/GO8aAArpPv97CrIBGiSu/3fbxwEto74AEKgqAKY5xv8cGhoAfqXnAPtsZP895Xn/OnaKAEzPEQANInD+WRCoACXQaf8jydf/KGpl/gbvcgAoZ+L+9n9u/z+nOgCE8I4ABZ5Y/4FJnv9eWZIA5jaSAAgtrQBPqQEAc7r3AFRAgwBD4P3/z71AAJocUQEtuDb/V9Tg/wBgSf+BIesBNEJQ//uum/8EsyUA6qRd/l2v/QDGRVf/4GouAGMd0gA+vHL/LOoIAKmv9/8XbYn/5bYnAMClXv71ZdkAv1hgAMReY/9q7gv+NX7zAF4BZf8ukwIAyXx8/40M2gANpp0BMPvt/5v6fP9qlJL/tg3KABw9pwDZmAj+3IIt/8jm/wE3QVf/Xb9h/nL7DgAgaVwBGs+NABjPDf4VMjD/upR0/9Mr4QAlIqL+pNIq/0QXYP+21gj/9XWJ/0LDMgBLDFP+UIykAAmlJAHkbuMA8RFaARk01AAG3wz/i/M5AAxxSwH2t7//1b9F/+YPjgABw8T/iqsv/0A/agEQqdb/z644AVhJhf+2hYwAsQ4Z/5O4Nf8K46H/eNj0/0lN6QCd7osBO0HpAEb72AEpuJn/IMtwAJKT/QBXZW0BLFKF//SWNf9emOj/O10n/1iT3P9OUQ0BIC/8/6ATcv9dayf/dhDTAbl30f/j23/+WGns/6JuF/8kpm7/W+zd/0LqdABvE/T+CukaACC3Bv4Cv/IA2pw1/ik8Rv+o7G8Aebl+/+6Oz/83fjQA3IHQ/lDMpP9DF5D+2ihs/3/KpADLIQP/Ap4AACVgvP/AMUoAbQQAAG+nCv5b2of/y0Kt/5bC4gDJ/Qb/rmZ5AM2/bgA1wgQAUSgt/iNmj/8MbMb/EBvo//xHugGwbnIAjgN1AXFNjgATnMUBXC/8ADXoFgE2EusALiO9/+zUgQACYND+yO7H/zuvpP+SK+cAwtk0/wPfDACKNrL+VevPAOjPIgAxNDL/pnFZ/wot2P8+rRwAb6X2AHZzW/+AVDwAp5DLAFcN8wAWHuQBsXGS/4Gq5v78mYH/keErAEbnBf96aX7+VvaU/24lmv7RA1sARJE+AOQQpf833fn+stJbAFOS4v5FkroAXdJo/hAZrQDnuiYAvXqM//sNcP9pbl0A+0iqAMAX3/8YA8oB4V3kAJmTx/5tqhYA+GX2/7J8DP+y/mb+NwRBAH3WtAC3YJMALXUX/oS/+QCPsMv+iLc2/5LqsQCSZVb/LHuPASHRmADAWin+Uw99/9WsUgDXqZAAEA0iACDRZP9UEvkBxRHs/9m65gAxoLD/b3Zh/+1o6wBPO1z+RfkL/yOsSgETdkQA3nyl/7RCI/9WrvYAK0pv/36QVv/k6lsA8tUY/kUs6//ctCMACPgH/2YvXP/wzWb/cearAR+5yf/C9kb/ehG7AIZGx/+VA5b/dT9nAEFoe//UNhMBBo1YAFOG8/+INWcAqRu0ALExGABvNqcAwz3X/x8BbAE8KkYAuQOi/8KVKP/2fyb+vncm/z13CAFgodv/KsvdAbHypP/1nwoAdMQAAAVdzf6Af7MAfe32/5Wi2f9XJRT+jO7AAAkJwQBhAeIAHSYKAACIP//lSNL+JoZc/07a0AFoJFT/DAXB//KvPf+/qS4Bs5OT/3G+i/59rB8AA0v8/tckDwDBGxgB/0WV/26BdgDLXfkAiolA/iZGBgCZdN4AoUp7AMFjT/92O17/PQwrAZKxnQAuk78AEP8mAAszHwE8OmL/b8JNAZpb9ACMKJABrQr7AMvRMv5sgk4A5LRaAK4H+gAfrjwAKaseAHRjUv92wYv/u63G/tpvOAC5e9gA+Z40ADS0Xf/JCVv/OC2m/oSby/866G4ANNNZ//0AogEJV7cAkYgsAV569QBVvKsBk1zGAAAIaAAeX64A3eY0Aff36/+JrjX/IxXM/0fj1gHoUsIACzDj/6pJuP/G+/z+LHAiAINlg/9IqLsAhId9/4poYf/uuKj/82hU/4fY4v+LkO0AvImWAVA4jP9Wqaf/wk4Z/9wRtP8RDcEAdYnU/43glwAx9K8AwWOv/xNjmgH/QT7/nNI3//L0A//6DpUAnljZ/53Phv776BwALpz7/6s4uP/vM+oAjoqD/xn+8wEKycIAP2FLANLvogDAyB8BddbzABhH3v42KOj/TLdv/pAOV//WT4j/2MTUAIQbjP6DBf0AfGwT/xzXSwBM3jf+6bY/AESrv/40b97/CmlN/1Cq6wCPGFj/Led5AJSB4AE99lQA/S7b/+9MIQAxlBL+5iVFAEOGFv6Om14AH53T/tUqHv8E5Pf+/LAN/ycAH/7x9P//qi0K/v3e+QDecoQA/y8G/7SjswFUXpf/WdFS/uU0qf/V7AAB1jjk/4d3l/9wycEAU6A1/gaXQgASohEA6WFbAIMFTgG1eDX/dV8//+11uQC/foj/kHfpALc5YQEvybv/p6V3AS1kfgAVYgb+kZZf/3g2mADRYmgAj28e/riU+QDr2C4A+MqU/zlfFgDy4aMA6ffo/0erE/9n9DH/VGdd/0R59AFS4A0AKU8r//nOp//XNBX+wCAW//dvPABlSib/FltU/h0cDf/G59f+9JrIAN+J7QDThA4AX0DO/xE+9//pg3kBXRdNAM3MNP5RvYgAtNuKAY8SXgDMK4z+vK/bAG9ij/+XP6L/0zJH/hOSNQCSLVP+slLu/xCFVP/ixl3/yWEU/3h2I/9yMuf/ouWc/9MaDAByJ3P/ztSGAMXZoP90gV7+x9fb/0vf+QH9dLX/6Ndo/+SC9v+5dVYADgUIAO8dPQHtV4X/fZKJ/syo3wAuqPUAmmkWANzUof9rRRj/idq1//FUxv+CetP/jQiZ/76xdgBgWbIA/xAw/npgaf91Nuj/In5p/8xDpgDoNIr/05MMABk2BwAsD9f+M+wtAL5EgQFqk+EAHF0t/uyND/8RPaEA3HPAAOyRGP5vqKkA4Do//3+kvABS6ksB4J6GANFEbgHZptkARuGmAbvBj/8QB1j/Cs2MAHXAnAEROCYAG3xsAavXN/9f/dQAm4eo//aymf6aREoA6D1g/mmEOwAhTMcBvbCC/wloGf5Lxmb/6QFwAGzcFP9y5kYAjMKF/zmepP6SBlD/qcRhAVW3ggBGnt4BO+3q/2AZGv/or2H/C3n4/lgjwgDbtPz+SgjjAMPjSQG4bqH/MemkAYA1LwBSDnn/wb46ADCudf+EFyAAKAqGARYzGf/wC7D/bjmSAHWP7wGdZXb/NlRMAM24Ev8vBEj/TnBV/8EyQgFdEDT/CGmGAAxtSP86nPsAkCPMACygdf4ya8IAAUSl/29uogCeUyj+TNbqADrYzf+rYJP/KONyAbDj8QBG+bcBiFSL/zx69/6PCXX/sa6J/kn3jwDsuX7/Phn3/y1AOP+h9AYAIjk4AWnKUwCAk9AABmcK/0qKQf9hUGT/1q4h/zKGSv9ul4L+b1SsAFTHS/74O3D/CNiyAQm3XwDuGwj+qs3cAMPlhwBiTO3/4lsaAVLbJ//hvscB2ch5/1GzCP+MQc4Ass9X/vr8Lv9oWW4B/b2e/5DWnv+g9Tb/NbdcARXIwv+SIXEB0QH/AOtqK/+nNOgAneXdADMeGQD63RsBQZNX/097xABBxN//TCwRAVXxRADKt/n/QdTU/wkhmgFHO1AAr8I7/41ICQBkoPQA5tA4ADsZS/5QwsIAEgPI/qCfcwCEj/cBb105/zrtCwGG3of/eqNsAXsrvv/7vc7+ULZI/9D24AERPAkAoc8mAI1tWwDYD9P/iE5uAGKjaP8VUHn/rbK3AX+PBABoPFL+1hAN/2DuIQGelOb/f4E+/zP/0v8+jez+nTfg/3In9ADAvPr/5Ew1AGJUUf+tyz3+kzI3/8zrvwA0xfQAWCvT/hu/dwC855oAQlGhAFzBoAH643gAezfiALgRSACFqAr+Foec/ykZZ/8wyjoAupVR/7yG7wDrtb3+2Yu8/0owUgAu2uUAvf37ADLlDP/Tjb8BgPQZ/6nnev5WL73/hLcX/yWylv8zif0AyE4fABZpMgCCPAAAhKNb/hfnuwDAT+8AnWak/8BSFAEYtWf/8AnqAAF7pP+F6QD/yvLyADy69QDxEMf/4HSe/r99W//gVs8AeSXn/+MJxv8Pme//eejZ/ktwUgBfDDn+M9Zp/5TcYQHHYiQAnNEM/grUNADZtDf+1Kro/9gUVP+d+ocAnWN//gHOKQCVJEYBNsTJ/1d0AP7rq5YAG6PqAMqHtADQXwD+e5xdALc+SwCJ67YAzOH//9aL0v8Ccwj/HQxvADScAQD9Ffv/JaUf/gyC0wBqEjX+KmOaAA7ZPf7YC1z/yMVw/pMmxwAk/Hj+a6lNAAF7n//PS2YAo6/EACwB8AB4urD+DWJM/+188f/okrz/yGDgAMwfKQDQyA0AFeFg/6+cxAD30H4APrj0/gKrUQBVc54ANkAt/xOKcgCHR80A4y+TAdrnQgD90RwA9A+t/wYPdv4QltD/uRYy/1Zwz/9LcdcBP5Ir/wThE/7jFz7/Dv/W/i0Izf9XxZf+0lLX//X49/+A+EYA4fdXAFp4RgDV9VwADYXiAC+1BQFco2n/Bh6F/uiyPf/mlRj/EjGeAORkPf508/v/TUtcAVHbk/9Mo/7+jdX2AOglmP5hLGQAySUyAdT0OQCuq7f/+UpwAKacHgDe3WH/811J/vtlZP/Y2V3//oq7/46+NP87y7H/yF40AHNynv+lmGgBfmPi/3ad9AFryBAAwVrlAHkGWACcIF3+ffHT/w7tnf+lmhX/uOAW//oYmP9xTR8A96sX/+2xzP80iZH/wrZyAODqlQAKb2cByYEEAO6OTgA0Bij/btWl/jzP/QA+10UAYGEA/zEtygB4eRb/64swAcYtIv+2MhsBg9Jb/y42gACve2n/xo1O/kP07//1Nmf+Tiby/wJc+f77rlf/iz+QABhsG/8iZhIBIhaYAELldv4yj2MAkKmVAXYemACyCHkBCJ8SAFpl5v+BHXcARCQLAei3NwAX/2D/oSnB/z+L3gAPs/MA/2QP/1I1hwCJOZUBY/Cq/xbm5P4xtFL/PVIrAG712QDHfT0ALv00AI3F2wDTn8EAN3lp/rcUgQCpd6r/y7KL/4cotv+sDcr/QbKUAAjPKwB6NX8BSqEwAOPWgP5WC/P/ZFYHAfVEhv89KxUBmFRe/748+v7vduj/1oglAXFMa/9daGQBkM4X/26WmgHkZ7kA2jEy/odNi/+5AU4AAKGU/2Ed6f/PlJX/oKgAAFuAq/8GHBP+C2/3ACe7lv+K6JUAdT5E/z/YvP/r6iD+HTmg/xkM8QGpPL8AIION/+2fe/9exV7+dP4D/1yzYf55YVz/qnAOABWV+AD44wMAUGBtAEvASgEMWuL/oWpEAdByf/9yKv/+ShpK//ezlv55jDwAk0bI/9Yoof+hvMn/jUGH//Jz/AA+L8oAtJX//oI37QClEbr/CqnCAJxt2v9wjHv/aIDf/rGObP95Jdv/gE0S/29sFwFbwEsArvUW/wTsPv8rQJkB463+AO16hAF/Wbr/jlKA/vxUrgBas7EB89ZX/2c8ov/Qgg7/C4KLAM6B2/9e2Z3/7+bm/3Rzn/6ka18AM9oCAdh9xv+MyoD+C19E/zcJXf6umQb/zKxgAEWgbgDVJjH+G1DVAHZ9cgBGRkP/D45J/4N6uf/zFDL+gu0oANKfjAHFl0H/VJlCAMN+WgAQ7uwBdrtm/wMYhf+7ReYAOMVcAdVFXv9QiuUBzgfmAN5v5gFb6Xf/CVkHAQJiAQCUSoX/M/a0/+SxcAE6vWz/wsvt/hXRwwCTCiMBVp3iAB+ji/44B0v/Plp0ALU8qQCKotT+UacfAM1acP8hcOMAU5d1AbHgSf+ukNn/5sxP/xZN6P9yTuoA4Dl+/gkxjQDyk6UBaLaM/6eEDAF7RH8A4VcnAftsCADGwY8BeYfP/6wWRgAyRHT/Za8o//hp6QCmywcAbsXaANf+Gv6o4v0AH49gAAtnKQC3gcv+ZPdK/9V+hADSkywAx+obAZQvtQCbW54BNmmv/wJOkf5mml8AgM9//jR87P+CVEcA3fPTAJiqzwDeascAt1Re/lzIOP+KtnMBjmCSAIWI5ABhEpYAN/tCAIxmBADKZ5cAHhP4/zO4zwDKxlkAN8Xh/qlf+f9CQUT/vOp+AKbfZAFw7/QAkBfCADontgD0LBj+r0Sz/5h2mgGwooIA2XLM/q1+Tv8h3h7/JAJb/wKP8wAJ69cAA6uXARjX9f+oL6T+8ZLPAEWBtABE83EAkDVI/vstDgAXbqgARERP/25GX/6uW5D/Ic5f/4kpB/8Tu5n+I/9w/wmRuf4ynSUAC3AxAWYIvv/q86kBPFUXAEonvQB0Me8ArdXSAC6hbP+fliUAxHi5/yJiBv+Zwz7/YeZH/2Y9TAAa1Oz/pGEQAMY7kgCjF8QAOBg9ALViwQD7k+X/Yr0Y/y42zv/qUvYAt2cmAW0+zAAK8OAAkhZ1/46aeABF1CMA0GN2AXn/A/9IBsIAdRHF/30PFwCaT5kA1l7F/7k3k/8+/k7+f1KZAG5mP/9sUqH/abvUAVCKJwA8/13/SAy6ANL7HwG+p5D/5CwT/oBD6ADW+Wv+iJFW/4QusAC9u+P/0BaMANnTdAAyUbr+i/ofAB5AxgGHm2QAoM4X/rui0/8QvD8A/tAxAFVUvwDxwPL/mX6RAeqiov/mYdgBQId+AL6U3wE0ACv/HCe9AUCI7gCvxLkAYuLV/3+f9AHirzwAoOmOAbTzz/9FmFkBH2UVAJAZpP6Lv9EAWxl5ACCTBQAnunv/P3Pm/12nxv+P1dz/s5wT/xlCegDWoNn/Ai0+/2pPkv4ziWP/V2Tn/6+R6P9luAH/rgl9AFIloQEkco3/MN6O//W6mgAFrt3+P3Kb/4c3oAFQH4cAfvqzAezaLQAUHJEBEJNJAPm9hAERvcD/347G/0gUD//6Ne3+DwsSABvTcf7Vazj/rpOS/2B+MAAXwW0BJaJeAMed+f4YgLv/zTGy/l2kKv8rd+sBWLft/9rSAf9r/ioA5gpj/6IA4gDb7VsAgbLLANAyX/7O0F//979Z/m7qT/+lPfMAFHpw//b2uf5nBHsA6WPmAdtb/P/H3hb/s/Xp/9Px6gBv+sD/VVSIAGU6Mv+DrZz+dy0z/3bpEP7yWtYAXp/bAQMD6v9iTFz+UDbmAAXk5/41GN//cTh2ARSEAf+r0uwAOPGe/7pzE/8I5a4AMCwAAXJypv8GSeL/zVn0AInjSwH4rTgASnj2/ncDC/9ReMb/iHpi/5Lx3QFtwk7/3/FGAdbIqf9hvi//L2eu/2NcSP526bT/wSPp/hrlIP/e/MYAzCtH/8dUrACGZr4Ab+5h/uYo5gDjzUD+yAzhAKYZ3gBxRTP/j58YAKe4SgAd4HT+ntDpAMF0fv/UC4X/FjqMAcwkM//oHisA60a1/0A4kv6pElT/4gEN/8gysP801fX+qNFhAL9HNwAiTpwA6JA6AblKvQC6jpX+QEV//6HLk/+wl78AiOfL/qO2iQChfvv+6SBCAETPQgAeHCUAXXJgAf5c9/8sq0UAyncL/7x2MgH/U4j/R1IaAEbjAgAg63kBtSmaAEeG5f7K/yQAKZgFAJo/Sf8itnwAed2W/xrM1QEprFcAWp2S/22CFABHa8j/82a9AAHDkf4uWHUACM7jAL9u/f9tgBT+hlUz/4mxcAHYIhb/gxDQ/3mVqgByExcBplAf/3HwegDos/oARG60/tKqdwDfbKT/z0/p/xvl4v7RYlH/T0QHAIO5ZACqHaL/EaJr/zkVCwFkyLX/f0GmAaWGzABop6gAAaRPAJKHOwFGMoD/ZncN/uMGhwCijrP/oGTeABvg2wGeXcP/6o2JABAYff/uzi//YRFi/3RuDP9gc00AW+Po//j+T/9c5Qb+WMaLAM5LgQD6Tc7/jfR7AYpF3AAglwYBg6cW/+1Ep/7HvZYAo6uK/zO8Bv9fHYn+lOKzALVr0P+GH1L/l2Ut/4HK4QDgSJMAMIqX/8NAzv7t2p4Aah2J/v296f9nDxH/wmH/ALItqf7G4ZsAJzB1/4dqcwBhJrUAli9B/1OC5f72JoEAXO+a/ltjfwChbyH/7tny/4O5w//Vv57/KZbaAISpgwBZVPwBq0aA/6P4y/4BMrT/fExVAftvUABjQu//mu22/91+hf5KzGP/QZN3/2M4p/9P+JX/dJvk/+0rDv5FiQv/FvrxAVt6j//N+fMA1Bo8/zC2sAEwF7//y3mY/i1K1f8+WhL+9aPm/7lqdP9TI58ADCEC/1AiPgAQV67/rWVVAMokUf6gRcz/QOG7ADrOXgBWkC8A5Vb1AD+RvgElBScAbfsaAImT6gCieZH/kHTO/8Xouf+3voz/SQz+/4sU8v+qWu//YUK7//W1h/7eiDQA9QUz/ssvTgCYZdgASRd9AP5gIQHr0kn/K9FYAQeBbQB6aOT+qvLLAPLMh//KHOn/QQZ/AJ+QRwBkjF8ATpYNAPtrdgG2On3/ASZs/4290f8Im30BcaNb/3lPvv+G72z/TC/4AKPk7wARbwoAWJVL/9fr7wCnnxj/L5ds/2vRvADp52P+HMqU/64jiv9uGET/AkW1AGtmUgBm7QcAXCTt/92iUwE3ygb/h+qH/xj63gBBXqj+9fjS/6dsyf7/oW8AzQj+AIgNdABksIT/K9d+/7GFgv+eT5QAQ+AlAQzOFf8+Im4B7Wiv/1CEb/+OrkgAVOW0/mmzjABA+A//6YoQAPVDe/7aedT/P1/aAdWFif+PtlL/MBwLAPRyjQHRr0z/nbWW/7rlA/+knW8B572LAHfKvv/aakD/ROs//mAarP+7LwsB1xL7/1FUWQBEOoAAXnEFAVyB0P9hD1P+CRy8AO8JpAA8zZgAwKNi/7gSPADZtosAbTt4/wTA+wCp0vD/Jaxc/pTT9f+zQTQA/Q1zALmuzgFyvJX/7VqtACvHwP9YbHEANCNMAEIZlP/dBAf/l/Fy/77R6ABiMscAl5bV/xJKJAE1KAcAE4dB/xqsRQCu7VUAY18pAAM4EAAnoLH/yGra/rlEVP9buj3+Q4+N/w30pv9jcsYAx26j/8ESugB87/YBbkQWAALrLgHUPGsAaSppAQ7mmAAHBYMAjWia/9UDBgCD5KL/s2QcAed7Vf/ODt8B/WDmACaYlQFiiXoA1s0D/+KYs/8GhYkAnkWM/3Gimv+086z/G71z/48u3P/VhuH/fh1FALwriQHyRgkAWsz//+eqkwAXOBP+OH2d/zCz2v9Ptv3/JtS/ASnrfABglxwAh5S+AM35J/40YIj/1CyI/0PRg//8ghf/24AU/8aBdgBsZQsAsgWSAT4HZP+17F7+HBqkAEwWcP94Zk8AysDlAciw1wApQPT/zrhOAKctPwGgIwD/OwyO/8wJkP/bXuUBehtwAL1pbf9A0Er/+383AQLixgAsTNEAl5hN/9IXLgHJq0X/LNPnAL4l4P/1xD7/qbXe/yLTEQB38cX/5SOYARVFKP+y4qEAlLPBANvC/gEozjP/51z6AUOZqgAVlPEAqkVS/3kS5/9ccgMAuD7mAOHJV/+SYKL/tfLcAK273QHiPqr/OH7ZAXUN4/+zLO8AnY2b/5DdUwDr0dAAKhGlAftRhQB89cn+YdMY/1PWpgCaJAn/+C9/AFrbjP+h2Sb+1JM//0JUlAHPAwEA5oZZAX9Oev/gmwH/UohKALKc0P+6GTH/3gPSAeWWvv9VojT/KVSN/0l7VP5dEZYAdxMcASAW1/8cF8z/jvE0/+Q0fQAdTM8A16f6/q+k5gA3z2kBbbv1/6Es3AEpZYD/pxBeAF3Wa/92SAD+UD3q/3mvfQCLqfsAYSeT/vrEMf+ls27+30a7/xaOfQGas4r/drAqAQqumQCcXGYAqA2h/48QIAD6xbT/y6MsAVcgJAChmRT/e/wPABnjUAA8WI4AERbJAZrNTf8nPy8ACHqNAIAXtv7MJxP/BHAd/xckjP/S6nT+NTI//3mraP+g214AV1IO/ucqBQCli3/+Vk4mAII8Qv7LHi3/LsR6Afk1ov+Ij2f+19JyAOcHoP6pmCr/by32AI6Dh/+DR8z/JOILAAAc8v/hitX/9y7Y/vUDtwBs/EoBzhow/8029v/TxiT/eSMyADTYyv8mi4H+8kmUAEPnjf8qL8wATnQZAQThv/8Gk+QAOlixAHql5f/8U8n/4KdgAbG4nv/yabMB+MbwAIVCywH+JC8ALRhz/3c+/gDE4br+e42sABpVKf/ib7cA1eeXAAQ7B//uipQAQpMh/x/2jf/RjXT/aHAfAFihrABT1+b+L2+XAC0mNAGELcwAioBt/ul1hv/zvq3+8ezwAFJ/7P4o36H/brbh/3uu7wCH8pEBM9GaAJYDc/7ZpPz/N5xFAVRe///oSS0BFBPU/2DFO/5g+yEAJsdJAUCs9/91dDj/5BESAD6KZwH25aT/9HbJ/lYgn/9tIokBVdO6AArBwf56wrEAeu5m/6LaqwBs2aEBnqoiALAvmwG15Av/CJwAABBLXQDOYv8BOpojAAzzuP5DdUL/5uV7AMkqbgCG5LL+umx2/zoTmv9SqT7/co9zAe/EMv+tMMH/kwJU/5aGk/5f6EkAbeM0/r+JCgAozB7+TDRh/6TrfgD+fLwASrYVAXkdI//xHgf+VdrW/wdUlv5RG3X/oJ+Y/kIY3f/jCjwBjYdmANC9lgF1s1wAhBaI/3jHHAAVgU/+tglBANqjqQD2k8b/ayaQAU6vzf/WBfr+L1gd/6QvzP8rNwb/g4bP/nRk1gBgjEsBatyQAMMgHAGsUQX/x7M0/yVUywCqcK4ACwRbAEX0GwF1g1wAIZiv/4yZa//7hyv+V4oE/8bqk/55mFT/zWWbAZ0JGQBIahH+bJkA/73lugDBCLD/rpXRAO6CHQDp1n4BPeJmADmjBAHGbzP/LU9OAXPSCv/aCRn/novG/9NSu/5QhVMAnYHmAfOFhv8oiBAATWtP/7dVXAGxzMoAo0eT/5hFvgCsM7wB+tKs/9PycQFZWRr/QEJv/nSYKgChJxv/NlD+AGrRcwFnfGEA3eZi/x/nBgCywHj+D9nL/3yeTwBwkfcAXPowAaO1wf8lL47+kL2l/y6S8AAGS4AAKZ3I/ld51QABcewABS36AJAMUgAfbOcA4e93/6cHvf+75IT/br0iAF4szAGiNMUATrzx/jkUjQD0ki8BzmQzAH1rlP4bw00AmP1aAQePkP8zJR8AIncm/wfFdgCZvNMAlxR0/vVBNP+0/W4BL7HRAKFjEf923soAfbP8AXs2fv+ROb8AN7p5AArzigDN0+X/fZzx/pScuf/jE7z/fCkg/x8izv4ROVMAzBYl/ypgYgB3ZrgBA74cAG5S2v/IzMD/yZF2AHXMkgCEIGIBwMJ5AGqh+AHtWHwAF9QaAM2rWv/4MNgBjSXm/3zLAP6eqB7/1vgVAHC7B/9Lhe//SuPz//qTRgDWeKIApwmz/xaeEgDaTdEBYW1R//Qhs/85NDn/QazS//lH0f+Oqe4Anr2Z/67+Z/5iIQ4AjUzm/3GLNP8POtQAqNfJ//jM1wHfRKD/OZq3/i/neQBqpokAUYiKAKUrMwDniz0AOV87/nZiGf+XP+wBXr76/6m5cgEF+jr/S2lhAdffhgBxY6MBgD5wAGNqkwCjwwoAIc22ANYOrv+BJuf/NbbfAGIqn//3DSgAvNKxAQYVAP//PZT+iS2B/1kadP5+JnIA+zLy/nmGgP/M+af+pevXAMqx8wCFjT4A8IK+AW6v/wAAFJIBJdJ5/wcnggCO+lT/jcjPAAlfaP8L9K4Ahuh+AKcBe/4QwZX/6OnvAdVGcP/8dKD+8t7c/81V4wAHuToAdvc/AXRNsf8+9cj+PxIl/2s16P4y3dMAotsH/gJeKwC2Prb+oE7I/4eMqgDruOQArzWK/lA6Tf+YyQIBP8QiAAUeuACrsJoAeTvOACZjJwCsUE3+AIaXALoh8f5e/d//LHL8AGx+Of/JKA3/J+Ub/yfvFwGXeTP/mZb4AArqrv929gT+yPUmAEWh8gEQspYAcTiCAKsfaQAaWGz/MSpqAPupQgBFXZUAFDn+AKQZbwBavFr/zATFACjVMgHUYIT/WIq0/uSSfP+49vcAQXVW//1m0v7+eSQAiXMD/zwY2ACGEh0AO+JhALCORwAH0aEAvVQz/pv6SADVVOv/Ld7gAO6Uj/+qKjX/Tqd1ALoAKP99sWf/ReFCAOMHWAFLrAYAqS3jARAkRv8yAgn/i8EWAI+35/7aRTIA7DihAdWDKgCKkSz+iOUo/zE/I/89kfX/ZcAC/uincQCYaCYBebnaAHmL0/538CMAQb3Z/ruzov+gu+YAPvgO/zxOYQD/96P/4Ttb/2tHOv/xLyEBMnXsANuxP/70WrMAI8LX/71DMv8Xh4EAaL0l/7k5wgAjPuf/3PhsAAznsgCPUFsBg11l/5AnAgH/+rIABRHs/osgLgDMvCb+9XM0/79xSf6/bEX/FkX1ARfLsgCqY6oAQfhvACVsmf9AJUUAAFg+/lmUkP+/ROAB8Sc1ACnL7f+RfsL/3Sr9/xljlwBh/d8BSnMx/wavSP87sMsAfLf5AeTkYwCBDM/+qMDD/8ywEP6Y6qsATSVV/yF4h/+OwuMBH9Y6ANW7ff/oLjz/vnQq/peyE/8zPu3+zOzBAMLoPACsIp3/vRC4/mcDX/+N6ST+KRkL/xXDpgB29S0AQ9WV/58MEv+7pOMBoBkFAAxOwwErxeEAMI4p/sSbPP/fxxIBkYicAPx1qf6R4u4A7xdrAG21vP/mcDH+Sart/+e34/9Q3BQAwmt/AX/NZQAuNMUB0qsk/1gDWv84l40AYLv//ypOyAD+RkYB9H2oAMxEigF810YAZkLI/hE05AB13I/+y/h7ADgSrv+6l6T/M+jQAaDkK//5HRkBRL4/AA0AAAAA/wAAAAD1AAAAAAAA+wAAAAAAAP0AAAAA8wAAAAAHAAAAAAADAAAAAPMAAAAABQAAAAAAAAAACwAAAAAACwAAAADzAAAAAAAA/QAAAAAA/wAAAAADAAAAAPUAAAAAAAAADwAAAAAA/wAAAAD/AAAAAAcAAAAABQBBjIcCCwEBAEGwhwILAQEAQdCHAgugAeDrenw7QbiuFlbj+vGfxGraCY3rnDKx/YZiBRZfSbgAX5yVvKNQjCSx0LFVnIPvWwREXMRYHI6G2CJO3dCfEVfs////////////////////////////////////////f+3///////////////////////////////////////9/7v///////////////////////////////////////38AQZCJAgvBBQjJvPNn5glqO6fKhIWuZ7sr+JT+cvNuPPE2HV869U+l0YLmrX9SDlEfbD4rjGgFm2u9Qfur2YMfeSF+ExnN4FsirijXmC+KQs1l7yORRDdxLztN7M/7wLW824mBpdu16Ti1SPNbwlY5GdAFtvER8VmbTxmvpII/khiBbdrVXhyrQgIDo5iqB9i+b3BFAVuDEoyy5E6+hTEk4rT/1cN9DFVviXvydF2+crGWFjv+sd6ANRLHJacG3JuUJmnPdPGbwdJK8Z7BaZvk4yVPOIZHvu+11YyLxp3BD2WcrHfMoQwkdQIrWW8s6S2D5KZuqoR0StT7Qb3cqbBctVMRg9qI+Xar32buUlE+mBAytC1txjGoPyH7mMgnA7DkDu++x39Zv8KPqD3zC+DGJacKk0eRp9VvggPgUWPKBnBuDgpnKSkU/C/SRoUKtycmySZcOCEbLu0qxFr8bSxN37OVnRMNOFPeY6+LVHMKZaiydzy7Cmp25q7tRy7JwoE7NYIUhSxykmQD8Uyh6L+iATBCvEtmGqiRl/jQcItLwjC+VAajUWzHGFLv1hnoktEQqWVVJAaZ1iogcVeFNQ70uNG7MnCgahDI0NK4FsGkGVOrQVEIbDcemeuO30x3SCeoSJvhtbywNGNaycWzDBw5y4pB40qq2E5z42N3T8qcW6O4stbzby5o/LLvXe6Cj3RgLxdDb2OleHKr8KEUeMiE7DlkGggCx4woHmMj+v++kOm9gt7rbFCkFXnGsvej+b4rU3Lj8nhxxpxhJurOPifKB8LAIce4htEe6+DN1n3a6njRbu5/T331um8Xcqpn8AammMiixX1jCq4N+b4EmD8RG0ccEzULcRuEfQQj9XfbKJMkx0B7q8oyvL7JFQq+njxMDRCcxGcdQ7ZCPsu+1MVMKn5l/Jwpf1ns+tY6q2/LXxdYR0qMGURsgABB0I8CCyFTaWdFZDI1NTE5IG5vIEVkMjU1MTkgY29sbGlzaW9ucwEAQaCQAgs1cI0BAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0=")||(Z=L,L=f.locateFile?f.locateFile(Z,h):h+Z);var V={34904:function(){return f.getRandomValue()},34940:function(){if(void 0===f.getRandomValue)try{var e="object"==typeof window?window:self,t=void 0!==e.crypto?e.crypto:e.msCrypto,r=function(){var e=new Uint32Array(1);return t.getRandomValues(e),e[0]>>>0};r(),f.getRandomValue=r}catch(e){try{var a=n(86963),i=function(){var e=a.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};i(),f.getRandomValue=i}catch(e){throw"No secure random number generator found"}}}};function J(e){for(;e.length>0;)e.shift()(f)}var G=[];function W(e){var t=g.buffer;try{return g.grow(e-t.byteLength+65535>>>16),P(),1}catch(e){}}var Y="function"==typeof atob?atob:function(e){var t,n,r,a,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=s.indexOf(e.charAt(u++))<<2|(a=s.indexOf(e.charAt(u++)))>>4,n=(15&a)<<4|(i=s.indexOf(e.charAt(u++)))>>2,r=(3&i)<<6|(o=s.indexOf(e.charAt(u++))),c+=String.fromCharCode(t),64!==i&&(c+=String.fromCharCode(n)),64!==o&&(c+=String.fromCharCode(r))}while(u>=2;n=x[e++];)t+=105!=n&t,G.push(105==n?k[t]:E[t++>>1]),++t;return G}(t,n);return V[e].apply(null,r)}(e,t,n)},d:function(e,t,n){x.copyWithin(e,t,t+n)},e:function(e){var t,n=x.length,r=2147483648;if((e>>>=0)>r)return!1;for(var a=1;a<=4;a*=2){var i=n*(1+.2/a);if(i=Math.min(i,e+100663296),W(Math.min(r,(t=Math.max(e,i))+(65536-t%65536)%65536)))return!0}return!1}};function te(){function e(){$||($=!0,f.calledRun=!0,C||(J(B),f.onRuntimeInitialized&&f.onRuntimeInitialized(),function(){if(f.postRun)for("function"==typeof f.postRun&&(f.postRun=[f.postRun]);f.postRun.length;)e=f.postRun.shift(),R.unshift(e);var e;J(R)}()))}N>0||(function(){if(f.preRun)for("function"==typeof f.preRun&&(f.preRun=[f.preRun]);f.preRun.length;)e=f.preRun.shift(),M.unshift(e);var e;J(M)}(),N>0||(f.setStatus?(f.setStatus("Running..."),setTimeout((function(){setTimeout((function(){f.setStatus("")}),1),e()}),1)):e()))}if(function(){var e={a:ee};function t(e,t){var n=e.exports;f.asm=n,g=f.asm.f,P(),f.asm.ac,function(e){if(N--,f.monitorRunDependencies&&f.monitorRunDependencies(N),0==N&&(null!==D&&(clearInterval(D),D=null),j)){var t=j;j=null,t()}}()}function n(e){t(e.instance)}function r(t){return function(){if(!v&&(l||p)){if("function"==typeof fetch&&!Q(L))return fetch(L,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+L+"'";return e.arrayBuffer()})).catch((function(){return K(L)}));if(c)return new Promise((function(e,t){c(L,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return K(L)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){A("failed to asynchronously prepare wasm: "+e),U(e)}))}if(N++,f.monitorRunDependencies&&f.monitorRunDependencies(N),f.instantiateWasm)try{return f.instantiateWasm(e,t)}catch(e){return A("Module.instantiateWasm callback failed with error: "+e),!1}v||"function"!=typeof WebAssembly.instantiateStreaming||q(L)||Q(L)||b||"function"!=typeof fetch?r(n):fetch(L,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return A("wasm streaming compile failed: "+e),A("falling back to ArrayBuffer instantiation"),r(n)}))}))}(),f._crypto_aead_chacha20poly1305_encrypt_detached=function(){return(f._crypto_aead_chacha20poly1305_encrypt_detached=f.asm.g).apply(null,arguments)},f._crypto_aead_chacha20poly1305_encrypt=function(){return(f._crypto_aead_chacha20poly1305_encrypt=f.asm.h).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_encrypt_detached=function(){return(f._crypto_aead_chacha20poly1305_ietf_encrypt_detached=f.asm.i).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_encrypt=function(){return(f._crypto_aead_chacha20poly1305_ietf_encrypt=f.asm.j).apply(null,arguments)},f._crypto_aead_chacha20poly1305_decrypt_detached=function(){return(f._crypto_aead_chacha20poly1305_decrypt_detached=f.asm.k).apply(null,arguments)},f._crypto_aead_chacha20poly1305_decrypt=function(){return(f._crypto_aead_chacha20poly1305_decrypt=f.asm.l).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_decrypt_detached=function(){return(f._crypto_aead_chacha20poly1305_ietf_decrypt_detached=f.asm.m).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_decrypt=function(){return(f._crypto_aead_chacha20poly1305_ietf_decrypt=f.asm.n).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_keybytes=function(){return(f._crypto_aead_chacha20poly1305_ietf_keybytes=f.asm.o).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_npubbytes=function(){return(f._crypto_aead_chacha20poly1305_ietf_npubbytes=f.asm.p).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_nsecbytes=function(){return(f._crypto_aead_chacha20poly1305_ietf_nsecbytes=f.asm.q).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_abytes=function(){return(f._crypto_aead_chacha20poly1305_ietf_abytes=f.asm.r).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_messagebytes_max=function(){return(f._crypto_aead_chacha20poly1305_ietf_messagebytes_max=f.asm.s).apply(null,arguments)},f._crypto_aead_chacha20poly1305_ietf_keygen=function(){return(f._crypto_aead_chacha20poly1305_ietf_keygen=f.asm.t).apply(null,arguments)},f._crypto_aead_chacha20poly1305_keybytes=function(){return(f._crypto_aead_chacha20poly1305_keybytes=f.asm.u).apply(null,arguments)},f._crypto_aead_chacha20poly1305_npubbytes=function(){return(f._crypto_aead_chacha20poly1305_npubbytes=f.asm.v).apply(null,arguments)},f._crypto_aead_chacha20poly1305_nsecbytes=function(){return(f._crypto_aead_chacha20poly1305_nsecbytes=f.asm.w).apply(null,arguments)},f._crypto_aead_chacha20poly1305_abytes=function(){return(f._crypto_aead_chacha20poly1305_abytes=f.asm.x).apply(null,arguments)},f._crypto_aead_chacha20poly1305_messagebytes_max=function(){return(f._crypto_aead_chacha20poly1305_messagebytes_max=f.asm.y).apply(null,arguments)},f._crypto_aead_chacha20poly1305_keygen=function(){return(f._crypto_aead_chacha20poly1305_keygen=f.asm.z).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=function(){return(f._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=f.asm.A).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_encrypt=function(){return(f._crypto_aead_xchacha20poly1305_ietf_encrypt=f.asm.B).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=function(){return(f._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=f.asm.C).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_decrypt=function(){return(f._crypto_aead_xchacha20poly1305_ietf_decrypt=f.asm.D).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_keybytes=function(){return(f._crypto_aead_xchacha20poly1305_ietf_keybytes=f.asm.E).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_npubbytes=function(){return(f._crypto_aead_xchacha20poly1305_ietf_npubbytes=f.asm.F).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_nsecbytes=function(){return(f._crypto_aead_xchacha20poly1305_ietf_nsecbytes=f.asm.G).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_abytes=function(){return(f._crypto_aead_xchacha20poly1305_ietf_abytes=f.asm.H).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=function(){return(f._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=f.asm.I).apply(null,arguments)},f._crypto_aead_xchacha20poly1305_ietf_keygen=function(){return(f._crypto_aead_xchacha20poly1305_ietf_keygen=f.asm.J).apply(null,arguments)},f._crypto_auth_bytes=function(){return(f._crypto_auth_bytes=f.asm.K).apply(null,arguments)},f._crypto_auth_keybytes=function(){return(f._crypto_auth_keybytes=f.asm.L).apply(null,arguments)},f._crypto_auth=function(){return(f._crypto_auth=f.asm.M).apply(null,arguments)},f._crypto_auth_verify=function(){return(f._crypto_auth_verify=f.asm.N).apply(null,arguments)},f._crypto_auth_keygen=function(){return(f._crypto_auth_keygen=f.asm.O).apply(null,arguments)},f._crypto_box_seedbytes=function(){return(f._crypto_box_seedbytes=f.asm.P).apply(null,arguments)},f._crypto_box_publickeybytes=function(){return(f._crypto_box_publickeybytes=f.asm.Q).apply(null,arguments)},f._crypto_box_secretkeybytes=function(){return(f._crypto_box_secretkeybytes=f.asm.R).apply(null,arguments)},f._crypto_box_beforenmbytes=function(){return(f._crypto_box_beforenmbytes=f.asm.S).apply(null,arguments)},f._crypto_box_noncebytes=function(){return(f._crypto_box_noncebytes=f.asm.T).apply(null,arguments)},f._crypto_box_macbytes=function(){return(f._crypto_box_macbytes=f.asm.U).apply(null,arguments)},f._crypto_box_messagebytes_max=function(){return(f._crypto_box_messagebytes_max=f.asm.V).apply(null,arguments)},f._crypto_box_seed_keypair=function(){return(f._crypto_box_seed_keypair=f.asm.W).apply(null,arguments)},f._crypto_box_keypair=function(){return(f._crypto_box_keypair=f.asm.X).apply(null,arguments)},f._crypto_box_beforenm=function(){return(f._crypto_box_beforenm=f.asm.Y).apply(null,arguments)},f._crypto_box_detached_afternm=function(){return(f._crypto_box_detached_afternm=f.asm.Z).apply(null,arguments)},f._crypto_box_detached=function(){return(f._crypto_box_detached=f.asm._).apply(null,arguments)},f._crypto_box_easy_afternm=function(){return(f._crypto_box_easy_afternm=f.asm.$).apply(null,arguments)},f._crypto_box_easy=function(){return(f._crypto_box_easy=f.asm.aa).apply(null,arguments)},f._crypto_box_open_detached_afternm=function(){return(f._crypto_box_open_detached_afternm=f.asm.ba).apply(null,arguments)},f._crypto_box_open_detached=function(){return(f._crypto_box_open_detached=f.asm.ca).apply(null,arguments)},f._crypto_box_open_easy_afternm=function(){return(f._crypto_box_open_easy_afternm=f.asm.da).apply(null,arguments)},f._crypto_box_open_easy=function(){return(f._crypto_box_open_easy=f.asm.ea).apply(null,arguments)},f._crypto_box_seal=function(){return(f._crypto_box_seal=f.asm.fa).apply(null,arguments)},f._crypto_box_seal_open=function(){return(f._crypto_box_seal_open=f.asm.ga).apply(null,arguments)},f._crypto_box_sealbytes=function(){return(f._crypto_box_sealbytes=f.asm.ha).apply(null,arguments)},f._crypto_generichash_bytes_min=function(){return(f._crypto_generichash_bytes_min=f.asm.ia).apply(null,arguments)},f._crypto_generichash_bytes_max=function(){return(f._crypto_generichash_bytes_max=f.asm.ja).apply(null,arguments)},f._crypto_generichash_bytes=function(){return(f._crypto_generichash_bytes=f.asm.ka).apply(null,arguments)},f._crypto_generichash_keybytes_min=function(){return(f._crypto_generichash_keybytes_min=f.asm.la).apply(null,arguments)},f._crypto_generichash_keybytes_max=function(){return(f._crypto_generichash_keybytes_max=f.asm.ma).apply(null,arguments)},f._crypto_generichash_keybytes=function(){return(f._crypto_generichash_keybytes=f.asm.na).apply(null,arguments)},f._crypto_generichash_statebytes=function(){return(f._crypto_generichash_statebytes=f.asm.oa).apply(null,arguments)},f._crypto_generichash=function(){return(f._crypto_generichash=f.asm.pa).apply(null,arguments)},f._crypto_generichash_init=function(){return(f._crypto_generichash_init=f.asm.qa).apply(null,arguments)},f._crypto_generichash_update=function(){return(f._crypto_generichash_update=f.asm.ra).apply(null,arguments)},f._crypto_generichash_final=function(){return(f._crypto_generichash_final=f.asm.sa).apply(null,arguments)},f._crypto_generichash_keygen=function(){return(f._crypto_generichash_keygen=f.asm.ta).apply(null,arguments)},f._crypto_hash_bytes=function(){return(f._crypto_hash_bytes=f.asm.ua).apply(null,arguments)},f._crypto_hash=function(){return(f._crypto_hash=f.asm.va).apply(null,arguments)},f._crypto_kdf_bytes_min=function(){return(f._crypto_kdf_bytes_min=f.asm.wa).apply(null,arguments)},f._crypto_kdf_bytes_max=function(){return(f._crypto_kdf_bytes_max=f.asm.xa).apply(null,arguments)},f._crypto_kdf_contextbytes=function(){return(f._crypto_kdf_contextbytes=f.asm.ya).apply(null,arguments)},f._crypto_kdf_keybytes=function(){return(f._crypto_kdf_keybytes=f.asm.za).apply(null,arguments)},f._crypto_kdf_derive_from_key=function(){return(f._crypto_kdf_derive_from_key=f.asm.Aa).apply(null,arguments)},f._crypto_kdf_keygen=function(){return(f._crypto_kdf_keygen=f.asm.Ba).apply(null,arguments)},f._crypto_kx_seed_keypair=function(){return(f._crypto_kx_seed_keypair=f.asm.Ca).apply(null,arguments)},f._crypto_kx_keypair=function(){return(f._crypto_kx_keypair=f.asm.Da).apply(null,arguments)},f._crypto_kx_client_session_keys=function(){return(f._crypto_kx_client_session_keys=f.asm.Ea).apply(null,arguments)},f._crypto_kx_server_session_keys=function(){return(f._crypto_kx_server_session_keys=f.asm.Fa).apply(null,arguments)},f._crypto_kx_publickeybytes=function(){return(f._crypto_kx_publickeybytes=f.asm.Ga).apply(null,arguments)},f._crypto_kx_secretkeybytes=function(){return(f._crypto_kx_secretkeybytes=f.asm.Ha).apply(null,arguments)},f._crypto_kx_seedbytes=function(){return(f._crypto_kx_seedbytes=f.asm.Ia).apply(null,arguments)},f._crypto_kx_sessionkeybytes=function(){return(f._crypto_kx_sessionkeybytes=f.asm.Ja).apply(null,arguments)},f._crypto_scalarmult_base=function(){return(f._crypto_scalarmult_base=f.asm.Ka).apply(null,arguments)},f._crypto_scalarmult=function(){return(f._crypto_scalarmult=f.asm.La).apply(null,arguments)},f._crypto_scalarmult_bytes=function(){return(f._crypto_scalarmult_bytes=f.asm.Ma).apply(null,arguments)},f._crypto_scalarmult_scalarbytes=function(){return(f._crypto_scalarmult_scalarbytes=f.asm.Na).apply(null,arguments)},f._crypto_secretbox_keybytes=function(){return(f._crypto_secretbox_keybytes=f.asm.Oa).apply(null,arguments)},f._crypto_secretbox_noncebytes=function(){return(f._crypto_secretbox_noncebytes=f.asm.Pa).apply(null,arguments)},f._crypto_secretbox_macbytes=function(){return(f._crypto_secretbox_macbytes=f.asm.Qa).apply(null,arguments)},f._crypto_secretbox_messagebytes_max=function(){return(f._crypto_secretbox_messagebytes_max=f.asm.Ra).apply(null,arguments)},f._crypto_secretbox_keygen=function(){return(f._crypto_secretbox_keygen=f.asm.Sa).apply(null,arguments)},f._crypto_secretbox_detached=function(){return(f._crypto_secretbox_detached=f.asm.Ta).apply(null,arguments)},f._crypto_secretbox_easy=function(){return(f._crypto_secretbox_easy=f.asm.Ua).apply(null,arguments)},f._crypto_secretbox_open_detached=function(){return(f._crypto_secretbox_open_detached=f.asm.Va).apply(null,arguments)},f._crypto_secretbox_open_easy=function(){return(f._crypto_secretbox_open_easy=f.asm.Wa).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_keygen=function(){return(f._crypto_secretstream_xchacha20poly1305_keygen=f.asm.Xa).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_init_push=function(){return(f._crypto_secretstream_xchacha20poly1305_init_push=f.asm.Ya).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_init_pull=function(){return(f._crypto_secretstream_xchacha20poly1305_init_pull=f.asm.Za).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_rekey=function(){return(f._crypto_secretstream_xchacha20poly1305_rekey=f.asm._a).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_push=function(){return(f._crypto_secretstream_xchacha20poly1305_push=f.asm.$a).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_pull=function(){return(f._crypto_secretstream_xchacha20poly1305_pull=f.asm.ab).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_statebytes=function(){return(f._crypto_secretstream_xchacha20poly1305_statebytes=f.asm.bb).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_abytes=function(){return(f._crypto_secretstream_xchacha20poly1305_abytes=f.asm.cb).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_headerbytes=function(){return(f._crypto_secretstream_xchacha20poly1305_headerbytes=f.asm.db).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_keybytes=function(){return(f._crypto_secretstream_xchacha20poly1305_keybytes=f.asm.eb).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_messagebytes_max=function(){return(f._crypto_secretstream_xchacha20poly1305_messagebytes_max=f.asm.fb).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_tag_message=function(){return(f._crypto_secretstream_xchacha20poly1305_tag_message=f.asm.gb).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_tag_push=function(){return(f._crypto_secretstream_xchacha20poly1305_tag_push=f.asm.hb).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_tag_rekey=function(){return(f._crypto_secretstream_xchacha20poly1305_tag_rekey=f.asm.ib).apply(null,arguments)},f._crypto_secretstream_xchacha20poly1305_tag_final=function(){return(f._crypto_secretstream_xchacha20poly1305_tag_final=f.asm.jb).apply(null,arguments)},f._crypto_shorthash_bytes=function(){return(f._crypto_shorthash_bytes=f.asm.kb).apply(null,arguments)},f._crypto_shorthash_keybytes=function(){return(f._crypto_shorthash_keybytes=f.asm.lb).apply(null,arguments)},f._crypto_shorthash=function(){return(f._crypto_shorthash=f.asm.mb).apply(null,arguments)},f._crypto_shorthash_keygen=function(){return(f._crypto_shorthash_keygen=f.asm.nb).apply(null,arguments)},f._crypto_sign_statebytes=function(){return(f._crypto_sign_statebytes=f.asm.ob).apply(null,arguments)},f._crypto_sign_bytes=function(){return(f._crypto_sign_bytes=f.asm.pb).apply(null,arguments)},f._crypto_sign_seedbytes=function(){return(f._crypto_sign_seedbytes=f.asm.qb).apply(null,arguments)},f._crypto_sign_publickeybytes=function(){return(f._crypto_sign_publickeybytes=f.asm.rb).apply(null,arguments)},f._crypto_sign_secretkeybytes=function(){return(f._crypto_sign_secretkeybytes=f.asm.sb).apply(null,arguments)},f._crypto_sign_messagebytes_max=function(){return(f._crypto_sign_messagebytes_max=f.asm.tb).apply(null,arguments)},f._crypto_sign_seed_keypair=function(){return(f._crypto_sign_seed_keypair=f.asm.ub).apply(null,arguments)},f._crypto_sign_keypair=function(){return(f._crypto_sign_keypair=f.asm.vb).apply(null,arguments)},f._crypto_sign=function(){return(f._crypto_sign=f.asm.wb).apply(null,arguments)},f._crypto_sign_open=function(){return(f._crypto_sign_open=f.asm.xb).apply(null,arguments)},f._crypto_sign_detached=function(){return(f._crypto_sign_detached=f.asm.yb).apply(null,arguments)},f._crypto_sign_verify_detached=function(){return(f._crypto_sign_verify_detached=f.asm.zb).apply(null,arguments)},f._crypto_sign_init=function(){return(f._crypto_sign_init=f.asm.Ab).apply(null,arguments)},f._crypto_sign_update=function(){return(f._crypto_sign_update=f.asm.Bb).apply(null,arguments)},f._crypto_sign_final_create=function(){return(f._crypto_sign_final_create=f.asm.Cb).apply(null,arguments)},f._crypto_sign_final_verify=function(){return(f._crypto_sign_final_verify=f.asm.Db).apply(null,arguments)},f._crypto_sign_ed25519_pk_to_curve25519=function(){return(f._crypto_sign_ed25519_pk_to_curve25519=f.asm.Eb).apply(null,arguments)},f._crypto_sign_ed25519_sk_to_curve25519=function(){return(f._crypto_sign_ed25519_sk_to_curve25519=f.asm.Fb).apply(null,arguments)},f._randombytes_random=function(){return(f._randombytes_random=f.asm.Gb).apply(null,arguments)},f._randombytes_stir=function(){return(f._randombytes_stir=f.asm.Hb).apply(null,arguments)},f._randombytes_uniform=function(){return(f._randombytes_uniform=f.asm.Ib).apply(null,arguments)},f._randombytes_buf=function(){return(f._randombytes_buf=f.asm.Jb).apply(null,arguments)},f._randombytes_buf_deterministic=function(){return(f._randombytes_buf_deterministic=f.asm.Kb).apply(null,arguments)},f._randombytes_seedbytes=function(){return(f._randombytes_seedbytes=f.asm.Lb).apply(null,arguments)},f._randombytes_close=function(){return(f._randombytes_close=f.asm.Mb).apply(null,arguments)},f._randombytes=function(){return(f._randombytes=f.asm.Nb).apply(null,arguments)},f._sodium_bin2hex=function(){return(f._sodium_bin2hex=f.asm.Ob).apply(null,arguments)},f._sodium_hex2bin=function(){return(f._sodium_hex2bin=f.asm.Pb).apply(null,arguments)},f._sodium_base64_encoded_len=function(){return(f._sodium_base64_encoded_len=f.asm.Qb).apply(null,arguments)},f._sodium_bin2base64=function(){return(f._sodium_bin2base64=f.asm.Rb).apply(null,arguments)},f._sodium_base642bin=function(){return(f._sodium_base642bin=f.asm.Sb).apply(null,arguments)},f._sodium_init=function(){return(f._sodium_init=f.asm.Tb).apply(null,arguments)},f._sodium_pad=function(){return(f._sodium_pad=f.asm.Ub).apply(null,arguments)},f._sodium_unpad=function(){return(f._sodium_unpad=f.asm.Vb).apply(null,arguments)},f._sodium_version_string=function(){return(f._sodium_version_string=f.asm.Wb).apply(null,arguments)},f._sodium_library_version_major=function(){return(f._sodium_library_version_major=f.asm.Xb).apply(null,arguments)},f._sodium_library_version_minor=function(){return(f._sodium_library_version_minor=f.asm.Yb).apply(null,arguments)},f._sodium_library_minimal=function(){return(f._sodium_library_minimal=f.asm.Zb).apply(null,arguments)},f._malloc=function(){return(f._malloc=f.asm._b).apply(null,arguments)},f._free=function(){return(f._free=f.asm.$b).apply(null,arguments)},f.UTF8ToString=O,f.setValue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"i8";switch(n.endsWith("*")&&(n="*"),n){case"i1":case"i8":w[e>>0]=t;break;case"i16":_[e>>1]=t;break;case"i32":k[e>>2]=t;break;case"i64":H=[t>>>0,(F=t,+Math.abs(F)>=1?F>0?(0|Math.min(+Math.floor(F/4294967296),4294967295))>>>0:~~+Math.ceil((F-+(~~F>>>0))/4294967296)>>>0:0)],k[e>>2]=H[0],k[e+4>>2]=H[1];break;case"float":I[e>>2]=t;break;case"double":E[e>>3]=t;break;case"*":S[e>>2]=t;break;default:U("invalid type for setValue: "+n)}},f.getValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"i8";switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return w[e>>0];case"i16":return _[e>>1];case"i32":case"i64":return k[e>>2];case"float":return I[e>>2];case"double":return E[e>>3];case"*":return S[e>>2];default:U("invalid type for getValue: "+t)}return null},j=function e(){$||te(),$||(j=e)},f.preInit)for("function"==typeof f.preInit&&(f.preInit=[f.preInit]);f.preInit.length>0;)f.preInit.pop()();te()})).catch((function(){return s.useBackupModule()})),r},void 0===(a=r.apply(t,[t]))||(e.exports=a)},48467:function(e,t,n){var r;e=n.nmd(e),function(){var a,i="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",c=32,u=128,f=1/0,d=9007199254740991,l=NaN,p=4294967295,b=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],h="[object Arguments]",y="[object Array]",m="[object Boolean]",v="[object Date]",g="[object Error]",A="[object Function]",w="[object GeneratorFunction]",x="[object Map]",_="[object Number]",k="[object Object]",S="[object Promise]",I="[object RegExp]",E="[object Set]",C="[object String]",T="[object Symbol]",O="[object WeakMap]",P="[object ArrayBuffer]",M="[object DataView]",B="[object Float32Array]",R="[object Float64Array]",N="[object Int8Array]",D="[object Int16Array]",j="[object Int32Array]",U="[object Uint8Array]",L="[object Uint8ClampedArray]",Z="[object Uint16Array]",F="[object Uint32Array]",H=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Q=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,V=RegExp(Q.source),J=RegExp(K.source),G=/<%-([\s\S]+?)%>/g,W=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ae=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,le=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,be=/^0b[01]+$/i,he=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ge=/($^)/,Ae=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\ufe0e\\ufe0f",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ce="["+we+"]",Te="["+Ee+"]",Oe="["+xe+"]",Pe="\\d+",Me="["+_e+"]",Be="["+ke+"]",Re="[^"+we+Ee+Pe+_e+ke+Se+"]",Ne="\\ud83c[\\udffb-\\udfff]",De="[^"+we+"]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Se+"]",Ze="\\u200d",Fe="(?:"+Be+"|"+Re+")",He="(?:"+Le+"|"+Re+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Oe+"|"+Ne+")?",Ke="["+Ie+"]?",Ve=Ke+Qe+"(?:"+Ze+"(?:"+[De,je,Ue].join("|")+")"+Ke+Qe+")*",Je="(?:"+[Me,je,Ue].join("|")+")"+Ve,Ge="(?:"+[De+Oe+"?",Oe,je,Ue,Ce].join("|")+")",We=RegExp("['’]","g"),Ye=RegExp(Oe,"g"),Xe=RegExp(Ne+"(?="+Ne+")|"+Ge+Ve,"g"),$e=RegExp([Le+"?"+Be+"+"+ze+"(?="+[Te,Le,"$"].join("|")+")",He+"+"+qe+"(?="+[Te,Le+Fe,"$"].join("|")+")",Le+"?"+Fe+"+"+ze,Le+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Je].join("|"),"g"),et=RegExp("["+Ze+we+xe+Ie+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,at={};at[B]=at[R]=at[N]=at[D]=at[j]=at[U]=at[L]=at[Z]=at[F]=!0,at[h]=at[y]=at[P]=at[m]=at[M]=at[v]=at[g]=at[A]=at[x]=at[_]=at[k]=at[I]=at[E]=at[C]=at[O]=!1;var it={};it[h]=it[y]=it[P]=it[M]=it[m]=it[v]=it[B]=it[R]=it[N]=it[D]=it[j]=it[x]=it[_]=it[k]=it[I]=it[E]=it[C]=it[T]=it[U]=it[L]=it[Z]=it[F]=!0,it[g]=it[A]=it[O]=!1;var ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ct=parseInt,ut="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,dt=ut||ft||Function("return this")(),lt=t&&!t.nodeType&&t,pt=lt&&e&&!e.nodeType&&e,bt=pt&&pt.exports===lt,ht=bt&&ut.process,yt=function(){try{return pt&&pt.require&&pt.require("util").types||ht&&ht.binding&&ht.binding("util")}catch(e){}}(),mt=yt&&yt.isArrayBuffer,vt=yt&&yt.isDate,gt=yt&&yt.isMap,At=yt&&yt.isRegExp,wt=yt&&yt.isSet,xt=yt&&yt.isTypedArray;function _t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a-1}function Ot(e,t,n){for(var r=-1,a=null==e?0:e.length;++r-1;);return n}function $t(e,t){for(var n=e.length;n--&&Lt(t,e[n],0)>-1;);return n}var en=qt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),tn=qt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+ot[e]}function rn(e){return et.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function on(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,a=0,i=[];++n",""":'"',"'":"'"}),bn=function e(t){var n,r=(t=null==t?dt:bn.defaults(dt.Object(),t,bn.pick(dt,nt))).Array,ae=t.Date,we=t.Error,xe=t.Function,_e=t.Math,ke=t.Object,Se=t.RegExp,Ie=t.String,Ee=t.TypeError,Ce=r.prototype,Te=xe.prototype,Oe=ke.prototype,Pe=t["__core-js_shared__"],Me=Te.toString,Be=Oe.hasOwnProperty,Re=0,Ne=(n=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Oe.toString,je=Me.call(ke),Ue=dt._,Le=Se("^"+Me.call(Be).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=bt?t.Buffer:a,Fe=t.Symbol,He=t.Uint8Array,ze=Ze?Ze.allocUnsafe:a,qe=on(ke.getPrototypeOf,ke),Qe=ke.create,Ke=Oe.propertyIsEnumerable,Ve=Ce.splice,Je=Fe?Fe.isConcatSpreadable:a,Ge=Fe?Fe.iterator:a,Xe=Fe?Fe.toStringTag:a,et=function(){try{var e=ci(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ut=ae&&ae.now!==dt.Date.now&&ae.now,ft=t.setTimeout!==dt.setTimeout&&t.setTimeout,lt=_e.ceil,pt=_e.floor,ht=ke.getOwnPropertySymbols,yt=Ze?Ze.isBuffer:a,Dt=t.isFinite,qt=Ce.join,hn=on(ke.keys,ke),yn=_e.max,mn=_e.min,vn=ae.now,gn=t.parseInt,An=_e.random,wn=Ce.reverse,xn=ci(t,"DataView"),_n=ci(t,"Map"),kn=ci(t,"Promise"),Sn=ci(t,"Set"),In=ci(t,"WeakMap"),En=ci(ke,"create"),Cn=In&&new In,Tn={},On=Di(xn),Pn=Di(_n),Mn=Di(kn),Bn=Di(Sn),Rn=Di(In),Nn=Fe?Fe.prototype:a,Dn=Nn?Nn.valueOf:a,jn=Nn?Nn.toString:a;function Un(e){if(es(e)&&!zo(e)&&!(e instanceof Hn)){if(e instanceof Fn)return e;if(Be.call(e,"__wrapped__"))return ji(e)}return new Fn(e)}var Ln=function(){function e(){}return function(t){if(!$o(t))return{};if(Qe)return Qe(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Zn(){}function Fn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function or(e,t,n,r,i,o){var s,c=1&t,u=2&t,f=4&t;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!$o(e))return e;var d=zo(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Be.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return Ia(e,s)}else{var l=di(e),p=l==A||l==w;if(Vo(e))return Aa(e,c);if(l==k||l==h||p&&!i){if(s=u||p?{}:pi(e),!c)return u?function(e,t){return Ea(e,fi(e),t)}(e,function(e,t){return e&&Ea(t,Ps(t),e)}(s,e)):function(e,t){return Ea(e,ui(e),t)}(e,nr(s,e))}else{if(!it[l])return i?e:{};s=function(e,t,n){var r,a=e.constructor;switch(t){case P:return wa(e);case m:case v:return new a(+e);case M:return function(e,t){var n=t?wa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case B:case R:case N:case D:case j:case U:case L:case Z:case F:return xa(e,n);case x:return new a;case _:case C:return new a(e);case I:return function(e){var t=new e.constructor(e.source,le.exec(e));return t.lastIndex=e.lastIndex,t}(e);case E:return new a;case T:return r=e,Dn?ke(Dn.call(r)):{}}}(e,l,c)}}o||(o=new Vn);var b=o.get(e);if(b)return b;o.set(e,s),is(e)?e.forEach((function(r){s.add(or(r,t,n,r,e,o))})):ts(e)&&e.forEach((function(r,a){s.set(a,or(r,t,n,a,e,o))}));var y=d?a:(f?u?ti:ei:u?Ps:Os)(e);return St(y||e,(function(r,a){y&&(r=e[a=r]),$n(s,a,or(r,t,n,a,e,o))})),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Ee(i);return Ei((function(){e.apply(a,n)}),t)}function ur(e,t,n,r){var a=-1,i=Tt,o=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=Pt(t,Gt(n))),r?(i=Ot,o=!1):t.length>=200&&(i=Yt,o=!1,t=new Kn(t));e:for(;++a-1},qn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new zn,map:new(_n||qn),string:new zn}},Qn.prototype.delete=function(e){var t=oi(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return oi(this,e).get(e)},Qn.prototype.has=function(e){return oi(this,e).has(e)},Qn.prototype.set=function(e,t){var n=oi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,o),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Vn.prototype.clear=function(){this.__data__=new qn,this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Vn.prototype.get=function(e){return this.__data__.get(e)},Vn.prototype.has=function(e){return this.__data__.has(e)},Vn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!_n||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var fr=Oa(vr),dr=Oa(gr,!0);function lr(e,t){var n=!0;return fr(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function pr(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?hr(s,t-1,n,r,a):Mt(a,s):r||(a[a.length]=s)}return a}var yr=Pa(),mr=Pa(!0);function vr(e,t){return e&&yr(e,t,Os)}function gr(e,t){return e&&mr(e,t,Os)}function Ar(e,t){return Ct(t,(function(t){return Wo(e[t])}))}function wr(e,t){for(var n=0,r=(t=ya(t,e)).length;null!=e&&nt}function Sr(e,t){return null!=e&&Be.call(e,t)}function Ir(e,t){return null!=e&&t in ke(e)}function Er(e,t,n){for(var i=n?Ot:Tt,o=e[0].length,s=e.length,c=s,u=r(s),f=1/0,d=[];c--;){var l=e[c];c&&t&&(l=Pt(l,Gt(t))),f=mn(l.length,f),u[c]=!n&&(t||o>=120&&l.length>=120)?new Kn(c&&l):a}l=e[0];var p=-1,b=u[0];e:for(;++p=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(a)}function Hr(e,t,n){for(var r=-1,a=t.length,i={};++r-1;)s!==e&&Ve.call(s,c,1),Ve.call(e,c,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==i){var i=a;hi(a)?Ve.call(e,a,1):ca(e,a)}}return e}function Qr(e,t){return e+pt(An()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Vr(e,t){return Ci(_i(e,t,nc),e+"")}function Jr(e){return Gn(Ls(e))}function Gr(e,t){var n=Ls(e);return Pi(n,ir(t,0,n.length))}function Wr(e,t,n,r){if(!$o(e))return e;for(var i=-1,o=(t=ya(t,e)).length,s=o-1,c=e;null!=c&&++ii?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=r(i);++a>>1,o=e[i];null!==o&&!ss(o)&&(n?o<=t:o=200){var u=t?null:Ka(e);if(u)return cn(u);o=!1,a=Yt,c=new Kn}else c=t?[]:s;e:for(;++r=r?e:ea(e,t,n)}var ga=ot||function(e){return dt.clearTimeout(e)};function Aa(e,t){if(t)return e.slice();var n=e.length,r=ze?ze(n):new e.constructor(n);return e.copy(r),r}function wa(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function xa(e,t){var n=t?wa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _a(e,t){if(e!==t){var n=e!==a,r=null===e,i=e==e,o=ss(e),s=t!==a,c=null===t,u=t==t,f=ss(t);if(!c&&!f&&!o&&e>t||o&&s&&u&&!c&&!f||r&&s&&u||!n&&u||!i)return 1;if(!r&&!o&&!f&&e1?n[i-1]:a,s=i>2?n[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&yi(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=ke(t);++r-1?i[o?t[s]:s]:a}}function Da(e){return $a((function(t){var n=t.length,r=n,o=Fn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ee(i);if(o&&!c&&"wrapper"==ri(s))var c=new Fn([],!0)}for(r=c?r:n;++r1&&A.reverse(),p&&dc))return!1;var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var l=-1,p=!0,b=2&n?new Kn:a;for(o.set(e,t),o.set(t,e);++l-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return St(b,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(se):[]}(r),n)))}function Oi(e){var t=0,n=0;return function(){var r=vn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Pi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,ro(e,n)}));function fo(e){var t=Un(e);return t.__chain__=!0,t}function lo(e,t){return t(e)}var po=$a((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&hi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:lo,args:[i],thisArg:a}),new Fn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)})),bo=Ca((function(e,t,n){Be.call(e,n)?++e[n]:rr(e,n,1)})),ho=Na(Fi),yo=Na(Hi);function mo(e,t){return(zo(e)?St:fr)(e,ii(t,3))}function vo(e,t){return(zo(e)?It:dr)(e,ii(t,3))}var go=Ca((function(e,t,n){Be.call(e,n)?e[n].push(t):rr(e,n,[t])})),Ao=Vr((function(e,t,n){var a=-1,i="function"==typeof t,o=Qo(e)?r(e.length):[];return fr(e,(function(e){o[++a]=i?_t(t,e,n):Cr(e,t,n)})),o})),wo=Ca((function(e,t,n){rr(e,n,t)}));function xo(e,t){return(zo(e)?Pt:Dr)(e,ii(t,3))}var _o=Ca((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ko=Vr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yi(e,t[0],t[1])?t=[]:n>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),Fr(e,hr(t,1),[])})),So=ut||function(){return dt.Date.now()};function Io(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Ja(e,u,a,a,a,a,t)}function Eo(e,t){var n;if("function"!=typeof t)throw new Ee(i);return e=ps(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Co=Vr((function(e,t,n){var r=1;if(n.length){var a=sn(n,ai(Co));r|=c}return Ja(e,r,t,n,a)})),To=Vr((function(e,t,n){var r=3;if(n.length){var a=sn(n,ai(To));r|=c}return Ja(t,r,e,n,a)}));function Oo(e,t,n){var r,o,s,c,u,f,d=0,l=!1,p=!1,b=!0;if("function"!=typeof e)throw new Ee(i);function h(t){var n=r,i=o;return r=o=a,d=t,c=e.apply(i,n)}function y(e){var n=e-f;return f===a||n>=t||n<0||p&&e-d>=s}function m(){var e=So();if(y(e))return v(e);u=Ei(m,function(e){var n=t-(e-f);return p?mn(n,s-(e-d)):n}(e))}function v(e){return u=a,b&&r?h(e):(r=o=a,c)}function g(){var e=So(),n=y(e);if(r=arguments,o=this,f=e,n){if(u===a)return function(e){return d=e,u=Ei(m,t),l?h(e):c}(f);if(p)return ga(u),u=Ei(m,t),h(f)}return u===a&&(u=Ei(m,t)),c}return t=hs(t)||0,$o(n)&&(l=!!n.leading,s=(p="maxWait"in n)?yn(hs(n.maxWait)||0,t):s,b="trailing"in n?!!n.trailing:b),g.cancel=function(){u!==a&&ga(u),d=0,r=f=o=u=a},g.flush=function(){return u===a?c:v(So())},g}var Po=Vr((function(e,t){return cr(e,1,t)})),Mo=Vr((function(e,t,n){return cr(e,hs(t)||0,n)}));function Bo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ee(i);var n=function n(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Bo.Cache||Qn),n}function Ro(e){if("function"!=typeof e)throw new Ee(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Bo.Cache=Qn;var No=ma((function(e,t){var n=(t=1==t.length&&zo(t[0])?Pt(t[0],Gt(ii())):Pt(hr(t,1),Gt(ii()))).length;return Vr((function(r){for(var a=-1,i=mn(r.length,n);++a=t})),Ho=Tr(function(){return arguments}())?Tr:function(e){return es(e)&&Be.call(e,"callee")&&!Ke.call(e,"callee")},zo=r.isArray,qo=mt?Gt(mt):function(e){return es(e)&&_r(e)==P};function Qo(e){return null!=e&&Xo(e.length)&&!Wo(e)}function Ko(e){return es(e)&&Qo(e)}var Vo=yt||hc,Jo=vt?Gt(vt):function(e){return es(e)&&_r(e)==v};function Go(e){if(!es(e))return!1;var t=_r(e);return t==g||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Wo(e){if(!$o(e))return!1;var t=_r(e);return t==A||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Yo(e){return"number"==typeof e&&e==ps(e)}function Xo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function $o(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=gt?Gt(gt):function(e){return es(e)&&di(e)==x};function ns(e){return"number"==typeof e||es(e)&&_r(e)==_}function rs(e){if(!es(e)||_r(e)!=k)return!1;var t=qe(e);if(null===t)return!0;var n=Be.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==je}var as=At?Gt(At):function(e){return es(e)&&_r(e)==I},is=wt?Gt(wt):function(e){return es(e)&&di(e)==E};function os(e){return"string"==typeof e||!zo(e)&&es(e)&&_r(e)==C}function ss(e){return"symbol"==typeof e||es(e)&&_r(e)==T}var cs=xt?Gt(xt):function(e){return es(e)&&Xo(e.length)&&!!at[_r(e)]},us=za(Nr),fs=za((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Qo(e))return os(e)?dn(e):Ia(e);if(Ge&&e[Ge])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ge]());var t=di(e);return(t==x?an:t==E?cn:Ls)(e)}function ls(e){return e?(e=hs(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ps(e){var t=ls(e),n=t%1;return t==t?n?t-n:t:0}function bs(e){return e?ir(ps(e),0,p):0}function hs(e){if("number"==typeof e)return e;if(ss(e))return l;if($o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=$o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=be.test(e);return n||ye.test(e)?ct(e.slice(2),n?2:8):pe.test(e)?l:+e}function ys(e){return Ea(e,Ps(e))}function ms(e){return null==e?"":oa(e)}var vs=Ta((function(e,t){if(Ai(t)||Qo(t))Ea(t,Os(t),e);else for(var n in t)Be.call(t,n)&&$n(e,n,t[n])})),gs=Ta((function(e,t){Ea(t,Ps(t),e)})),As=Ta((function(e,t,n,r){Ea(t,Ps(t),e,r)})),ws=Ta((function(e,t,n,r){Ea(t,Os(t),e,r)})),xs=$a(ar),_s=Vr((function(e,t){e=ke(e);var n=-1,r=t.length,i=r>2?t[2]:a;for(i&&yi(t[0],t[1],i)&&(r=1);++n1),t})),Ea(e,ti(e),n),r&&(n=or(n,7,Ya));for(var a=t.length;a--;)ca(n,t[a]);return n})),Ns=$a((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return Is(e,n)}))}(e,t)}));function Ds(e,t){if(null==e)return{};var n=Pt(ti(e),(function(e){return[e]}));return t=ii(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var js=Va(Os),Us=Va(Ps);function Ls(e){return null==e?[]:Wt(e,Os(e))}var Zs=Ba((function(e,t,n){return t=t.toLowerCase(),e+(n?Fs(t):t)}));function Fs(e){return Gs(ms(e).toLowerCase())}function Hs(e){return(e=ms(e))&&e.replace(ve,en).replace(Ye,"")}var zs=Ba((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qs=Ba((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Qs=Ma("toLowerCase"),Ks=Ba((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Vs=Ba((function(e,t,n){return e+(n?" ":"")+Gs(t)})),Js=Ba((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Gs=Ma("toUpperCase");function Ws(e,t,n){return e=ms(e),(t=n?a:t)===a?function(e){return tt.test(e)}(e)?function(e){return e.match($e)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Ys=Vr((function(e,t){try{return _t(e,a,t)}catch(e){return Go(e)?e:new we(e)}})),Xs=$a((function(e,t){return St(t,(function(t){t=Ni(t),rr(e,t,Co(e[t],e))})),e}));function $s(e){return function(){return e}}var ec=Da(),tc=Da(!0);function nc(e){return e}function rc(e){return Br("function"==typeof e?e:or(e,1))}var ac=Vr((function(e,t){return function(n){return Cr(n,e,t)}})),ic=Vr((function(e,t){return function(n){return Cr(e,n,t)}}));function oc(e,t,n){var r=Os(t),a=Ar(t,r);null!=n||$o(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Ar(t,Os(t)));var i=!($o(n)&&"chain"in n&&!n.chain),o=Wo(e);return St(a,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Ia(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Mt([this.value()],arguments))})})),e}function sc(){}var cc=Za(Pt),uc=Za(Et),fc=Za(Nt);function dc(e){return mi(e)?zt(Ni(e)):function(e){return function(t){return wr(t,e)}}(e)}var lc=Ha(),pc=Ha(!0);function bc(){return[]}function hc(){return!1}var yc,mc=La((function(e,t){return e+t}),0),vc=Qa("ceil"),gc=La((function(e,t){return e/t}),1),Ac=Qa("floor"),wc=La((function(e,t){return e*t}),1),xc=Qa("round"),_c=La((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Ee(i);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Io,Un.assign=vs,Un.assignIn=gs,Un.assignInWith=As,Un.assignWith=ws,Un.at=xs,Un.before=Eo,Un.bind=Co,Un.bindAll=Xs,Un.bindKey=To,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return zo(e)?e:[e]},Un.chain=fo,Un.chunk=function(e,t,n){t=(n?yi(e,t,n):t===a)?1:yn(ps(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,c=r(lt(i/t));oi?0:i+n),(r=r===a||r>i?i:ps(r))<0&&(r+=i),r=n>r?0:bs(r);n>>0)?(e=ms(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=oa(t))&&rn(e)?va(dn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Ee(i);return t=null==t?0:yn(ps(t),0),Vr((function(n){var r=n[t],a=va(n,0,t);return r&&Mt(a,r),_t(e,this,a)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ea(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ea(e,0,(t=n||t===a?1:ps(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ea(e,(t=r-(t=n||t===a?1:ps(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?fa(e,ii(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?fa(e,ii(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new Ee(i);return $o(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Oo(e,t,{leading:r,maxWait:t,trailing:a})},Un.thru=lo,Un.toArray=ds,Un.toPairs=js,Un.toPairsIn=Us,Un.toPath=function(e){return zo(e)?Pt(e,Ni):ss(e)?[e]:Ia(Ri(ms(e)))},Un.toPlainObject=ys,Un.transform=function(e,t,n){var r=zo(e),a=r||Vo(e)||cs(e);if(t=ii(t,4),null==n){var i=e&&e.constructor;n=a?r?new i:[]:$o(e)&&Wo(i)?Ln(qe(e)):{}}return(a?St:vr)(e,(function(e,r,a){return t(n,e,r,a)})),n},Un.unary=function(e){return Io(e,1)},Un.union=$i,Un.unionBy=eo,Un.unionWith=to,Un.uniq=function(e){return e&&e.length?sa(e):[]},Un.uniqBy=function(e,t){return e&&e.length?sa(e,ii(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?sa(e,a,t):[]},Un.unset=function(e,t){return null==e||ca(e,t)},Un.unzip=no,Un.unzipWith=ro,Un.update=function(e,t,n){return null==e?e:ua(e,t,ha(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:ua(e,t,ha(n),r)},Un.values=Ls,Un.valuesIn=function(e){return null==e?[]:Wt(e,Ps(e))},Un.without=ao,Un.words=Ws,Un.wrap=function(e,t){return Do(ha(t),e)},Un.xor=io,Un.xorBy=oo,Un.xorWith=so,Un.zip=co,Un.zipObject=function(e,t){return pa(e||[],t||[],$n)},Un.zipObjectDeep=function(e,t){return pa(e||[],t||[],Wr)},Un.zipWith=uo,Un.entries=js,Un.entriesIn=Us,Un.extend=gs,Un.extendWith=As,oc(Un,Un),Un.add=mc,Un.attempt=Ys,Un.camelCase=Zs,Un.capitalize=Fs,Un.ceil=vc,Un.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=hs(n))==n?n:0),t!==a&&(t=(t=hs(t))==t?t:0),ir(hs(e),t,n)},Un.clone=function(e){return or(e,4)},Un.cloneDeep=function(e){return or(e,5)},Un.cloneDeepWith=function(e,t){return or(e,5,t="function"==typeof t?t:a)},Un.cloneWith=function(e,t){return or(e,4,t="function"==typeof t?t:a)},Un.conformsTo=function(e,t){return null==t||sr(e,t,Os(t))},Un.deburr=Hs,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=gc,Un.endsWith=function(e,t,n){e=ms(e),t=oa(t);var r=e.length,i=n=n===a?r:ir(ps(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Un.eq=Lo,Un.escape=function(e){return(e=ms(e))&&J.test(e)?e.replace(K,tn):e},Un.escapeRegExp=function(e){return(e=ms(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Un.every=function(e,t,n){var r=zo(e)?Et:lr;return n&&yi(e,t,n)&&(t=a),r(e,ii(t,3))},Un.find=ho,Un.findIndex=Fi,Un.findKey=function(e,t){return jt(e,ii(t,3),vr)},Un.findLast=yo,Un.findLastIndex=Hi,Un.findLastKey=function(e,t){return jt(e,ii(t,3),gr)},Un.floor=Ac,Un.forEach=mo,Un.forEachRight=vo,Un.forIn=function(e,t){return null==e?e:yr(e,ii(t,3),Ps)},Un.forInRight=function(e,t){return null==e?e:mr(e,ii(t,3),Ps)},Un.forOwn=function(e,t){return e&&vr(e,ii(t,3))},Un.forOwnRight=function(e,t){return e&&gr(e,ii(t,3))},Un.get=Ss,Un.gt=Zo,Un.gte=Fo,Un.has=function(e,t){return null!=e&&li(e,t,Sr)},Un.hasIn=Is,Un.head=qi,Un.identity=nc,Un.includes=function(e,t,n,r){e=Qo(e)?e:Ls(e),n=n&&!r?ps(n):0;var a=e.length;return n<0&&(n=yn(a+n,0)),os(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Lt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:ps(n);return a<0&&(a=yn(r+a,0)),Lt(e,t,a)},Un.inRange=function(e,t,n){return t=ls(t),n===a?(n=t,t=0):n=ls(n),function(e,t,n){return e>=mn(t,n)&&e=-9007199254740991&&e<=d},Un.isSet=is,Un.isString=os,Un.isSymbol=ss,Un.isTypedArray=cs,Un.isUndefined=function(e){return e===a},Un.isWeakMap=function(e){return es(e)&&di(e)==O},Un.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==_r(e)},Un.join=function(e,t){return null==e?"":qt.call(e,t)},Un.kebabCase=zs,Un.last=Ji,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=ps(n))<0?yn(r+i,0):mn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ut(e,Ft,i,!0)},Un.lowerCase=qs,Un.lowerFirst=Qs,Un.lt=us,Un.lte=fs,Un.max=function(e){return e&&e.length?pr(e,nc,kr):a},Un.maxBy=function(e,t){return e&&e.length?pr(e,ii(t,2),kr):a},Un.mean=function(e){return Ht(e,nc)},Un.meanBy=function(e,t){return Ht(e,ii(t,2))},Un.min=function(e){return e&&e.length?pr(e,nc,Nr):a},Un.minBy=function(e,t){return e&&e.length?pr(e,ii(t,2),Nr):a},Un.stubArray=bc,Un.stubFalse=hc,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=wc,Un.nth=function(e,t){return e&&e.length?Zr(e,ps(t)):a},Un.noConflict=function(){return dt._===this&&(dt._=Ue),this},Un.noop=sc,Un.now=So,Un.pad=function(e,t,n){e=ms(e);var r=(t=ps(t))?fn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Fa(pt(a),n)+e+Fa(lt(a),n)},Un.padEnd=function(e,t,n){e=ms(e);var r=(t=ps(t))?fn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=An();return mn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return Qr(e,t)},Un.reduce=function(e,t,n){var r=zo(e)?Bt:Qt,a=arguments.length<3;return r(e,ii(t,4),n,a,fr)},Un.reduceRight=function(e,t,n){var r=zo(e)?Rt:Qt,a=arguments.length<3;return r(e,ii(t,4),n,a,dr)},Un.repeat=function(e,t,n){return t=(n?yi(e,t,n):t===a)?1:ps(t),Kr(ms(e),t)},Un.replace=function(){var e=arguments,t=ms(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,i=(t=ya(t,e)).length;for(i||(i=1,e=a);++rd)return[];var n=p,r=mn(e,p);t=ii(t),e-=p;for(var a=Vt(r,t);++n=o)return e;var c=n-fn(r);if(c<1)return r;var u=s?va(s,0,c).join(""):e.slice(0,c);if(i===a)return u+r;if(s&&(c+=u.length-c),as(i)){if(e.slice(c).search(i)){var f,d=u;for(i.global||(i=Se(i.source,ms(le.exec(i))+"g")),i.lastIndex=0;f=i.exec(d);)var l=f.index;u=u.slice(0,l===a?c:l)}}else if(e.indexOf(oa(i),c)!=c){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+r},Un.unescape=function(e){return(e=ms(e))&&V.test(e)?e.replace(Q,pn):e},Un.uniqueId=function(e){var t=++Re;return ms(e)+t},Un.upperCase=Js,Un.upperFirst=Gs,Un.each=mo,Un.eachRight=vo,Un.first=qi,oc(Un,(yc={},vr(Un,(function(e,t){Be.call(Un.prototype,t)||(yc[t]=e)})),yc),{chain:!1}),Un.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),St(["drop","take"],(function(e,t){Hn.prototype[e]=function(n){n=n===a?1:yn(ps(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=mn(n,r.__takeCount__):r.__views__.push({size:mn(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),St(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),St(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),St(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(nc)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Vr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Cr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(Ro(ii(e)))},Hn.prototype.slice=function(e,t){e=ps(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=ps(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(p)},vr(Hn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Un[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Hn,u=s[0],f=c||zo(t),d=function(e){var t=i.apply(Un,Mt([e],s));return r&&l?t[0]:t};f&&n&&"function"==typeof u&&1!=u.length&&(c=f=!1);var l=this.__chain__,p=!!this.__actions__.length,b=o&&!l,h=c&&!p;if(!o&&f){t=h?t:new Hn(this);var y=e.apply(t,s);return y.__actions__.push({func:lo,args:[d],thisArg:a}),new Fn(y,l)}return b&&h?e.apply(this,s):(y=this.thru(d),b?r?y.value()[0]:y.value():y)})})),St(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(zo(a)?a:[],e)}return this[n]((function(n){return t.apply(zo(n)?n:[],e)}))}})),vr(Hn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Be.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[ja(a,2).name]=[{name:"wrapper",func:a}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Ia(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ia(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ia(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=zo(e),r=t<0,a=n?e.length:0,i=function(e,t,n){for(var r=-1,a=n.length;++r=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Zn;){var r=ji(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:lo,args:[Xi],thisArg:a}),new Fn(t,this.__chain__)}return this.thru(Xi)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return da(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Ge&&(Un.prototype[Ge]=function(){return this}),Un}();dt._=bn,(r=function(){return bn}.call(t,n,t,e))===a||(e.exports=r)}.call(this)},12620:function(e){e.exports=n;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function n(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function r(e){return!0===(e&&e.__isLong__)}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0}),n.isLong=r;var a={},i={};function o(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=i[e])?r:(n=c(e,(0|e)<0?-1:0,!0),o&&(i[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=a[e])?r:(n=c(e,e<0?-1:0,!1),o&&(a[e]=n),n)}function s(e,t){if(isNaN(e))return t?m:y;if(t){if(e<0)return m;if(e>=p)return x}else{if(e<=-b)return _;if(e+1>=b)return w}return e<0?s(-e,t).neg():c(e%l|0,e/l|0,t)}function c(e,t,r){return new n(e,t,r)}n.fromInt=o,n.fromNumber=s,n.fromBits=c;var u=Math.pow;function f(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return y;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||360)throw Error("interior hyphen");if(0===r)return f(e.substring(1),t,n).neg();for(var a=s(u(n,8)),i=y,o=0;o>>0:this.low},k.toNumber=function(){return this.unsigned?(this.high>>>0)*l+(this.low>>>0):this.high*l+(this.low>>>0)},k.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((i=c).isZero())return f+o;for(;f.length<6;)f="0"+f;o=""+f+o}},k.getHighBits=function(){return this.high},k.getHighBitsUnsigned=function(){return this.high>>>0},k.getLowBits=function(){return this.low},k.getLowBitsUnsigned=function(){return this.low>>>0},k.getNumBitsAbs=function(){if(this.isNegative())return this.eq(_)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<=0},k.isOdd=function(){return 1==(1&this.low)},k.isEven=function(){return 0==(1&this.low)},k.equals=function(e){return r(e)||(e=d(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},k.eq=k.equals,k.notEquals=function(e){return!this.eq(e)},k.neq=k.notEquals,k.ne=k.notEquals,k.lessThan=function(e){return this.comp(e)<0},k.lt=k.lessThan,k.lessThanOrEqual=function(e){return this.comp(e)<=0},k.lte=k.lessThanOrEqual,k.le=k.lessThanOrEqual,k.greaterThan=function(e){return this.comp(e)>0},k.gt=k.greaterThan,k.greaterThanOrEqual=function(e){return this.comp(e)>=0},k.gte=k.greaterThanOrEqual,k.ge=k.greaterThanOrEqual,k.compare=function(e){if(r(e)||(e=d(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},k.comp=k.compare,k.negate=function(){return!this.unsigned&&this.eq(_)?_:this.not().add(v)},k.neg=k.negate,k.add=function(e){r(e)||(e=d(e));var t=this.high>>>16,n=65535&this.high,a=this.low>>>16,i=65535&this.low,o=e.high>>>16,s=65535&e.high,u=e.low>>>16,f=0,l=0,p=0,b=0;return p+=(b+=i+(65535&e.low))>>>16,l+=(p+=a+u)>>>16,f+=(l+=n+s)>>>16,f+=t+o,c((p&=65535)<<16|(b&=65535),(f&=65535)<<16|(l&=65535),this.unsigned)},k.subtract=function(e){return r(e)||(e=d(e)),this.add(e.neg())},k.sub=k.subtract,k.multiply=function(e){if(this.isZero())return y;if(r(e)||(e=d(e)),t)return c(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return y;if(this.eq(_))return e.isOdd()?_:y;if(e.eq(_))return this.isOdd()?_:y;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(h)&&e.lt(h))return s(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,a=65535&this.high,i=this.low>>>16,o=65535&this.low,u=e.high>>>16,f=65535&e.high,l=e.low>>>16,p=65535&e.low,b=0,m=0,v=0,g=0;return v+=(g+=o*p)>>>16,m+=(v+=i*p)>>>16,v&=65535,m+=(v+=o*l)>>>16,b+=(m+=a*p)>>>16,m&=65535,b+=(m+=i*l)>>>16,m&=65535,b+=(m+=o*f)>>>16,b+=n*p+a*l+i*f+o*u,c((v&=65535)<<16|(g&=65535),(b&=65535)<<16|(m&=65535),this.unsigned)},k.mul=k.multiply,k.divide=function(e){if(r(e)||(e=d(e)),e.isZero())throw Error("division by zero");var n,a,i;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?c((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?m:y;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return m;if(e.gt(this.shru(1)))return g;i=m}else{if(this.eq(_))return e.eq(v)||e.eq(A)?_:e.eq(_)?v:(n=this.shr(1).div(e).shl(1)).eq(y)?e.isNegative()?v:A:(a=this.sub(e.mul(n)),i=n.add(a.div(e)));if(e.eq(_))return this.unsigned?m:y;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();i=y}for(a=this;a.gte(e);){n=Math.max(1,Math.floor(a.toNumber()/e.toNumber()));for(var o=Math.ceil(Math.log(n)/Math.LN2),f=o<=48?1:u(2,o-48),l=s(n),p=l.mul(e);p.isNegative()||p.gt(a);)p=(l=s(n-=f,this.unsigned)).mul(e);l.isZero()&&(l=v),i=i.add(l),a=a.sub(p)}return i},k.div=k.divide,k.modulo=function(e){return r(e)||(e=d(e)),t?c((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},k.mod=k.modulo,k.rem=k.modulo,k.not=function(){return c(~this.low,~this.high,this.unsigned)},k.and=function(e){return r(e)||(e=d(e)),c(this.low&e.low,this.high&e.high,this.unsigned)},k.or=function(e){return r(e)||(e=d(e)),c(this.low|e.low,this.high|e.high,this.unsigned)},k.xor=function(e){return r(e)||(e=d(e)),c(this.low^e.low,this.high^e.high,this.unsigned)},k.shiftLeft=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low<>>32-e,this.unsigned):c(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):c(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},k.shr=k.shiftRight,k.shiftRightUnsigned=function(e){if(r(e)&&(e=e.toInt()),0==(e&=63))return this;var t=this.high;return e<32?c(this.low>>>e|t<<32-e,t>>>e,this.unsigned):c(32===e?t:t>>>e-32,0,this.unsigned)},k.shru=k.shiftRightUnsigned,k.shr_u=k.shiftRightUnsigned,k.toSigned=function(){return this.unsigned?c(this.low,this.high,!1):this},k.toUnsigned=function(){return this.unsigned?this:c(this.low,this.high,!0)},k.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},k.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},k.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},n.fromBytes=function(e,t,r){return r?n.fromBytesLE(e,t):n.fromBytesBE(e,t)},n.fromBytesLE=function(e,t){return new n(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},n.fromBytesBE=function(e,t){return new n(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},11606:function(e,t,n){"use strict";var r=n(10202).default,a=n(62503).default,i=function(e){return"object"==typeof e&&null!==e},o=Symbol("skip"),s=function(e){return i(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date)},c=function e(t,n,i){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new WeakMap;if(i=a({deep:!1,target:{}},i),c.has(t))return c.get(t);c.set(t,i.target);var u=i.target;delete i.target;var f=function(t){return t.map((function(t){return s(t)?e(t,n,i,c):t}))};if(Array.isArray(t))return f(t);for(var d=0,l=Object.entries(t);d>>32-t}function u(e,t,n,r,a,i,o){return c(e+(t&n|~t&r)+a+i|0,o)+t|0}function f(e,t,n,r,a,i,o){return c(e+(t&r|n&~r)+a+i|0,o)+t|0}function d(e,t,n,r,a,i,o){return c(e+(t^n^r)+a+i|0,o)+t|0}function l(e,t,n,r,a,i,o){return c(e+(n^(t|~r))+a+i|0,o)+t|0}r(s,a),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,a=this._c,i=this._d;n=u(n,r,a,i,e[0],3614090360,7),i=u(i,n,r,a,e[1],3905402710,12),a=u(a,i,n,r,e[2],606105819,17),r=u(r,a,i,n,e[3],3250441966,22),n=u(n,r,a,i,e[4],4118548399,7),i=u(i,n,r,a,e[5],1200080426,12),a=u(a,i,n,r,e[6],2821735955,17),r=u(r,a,i,n,e[7],4249261313,22),n=u(n,r,a,i,e[8],1770035416,7),i=u(i,n,r,a,e[9],2336552879,12),a=u(a,i,n,r,e[10],4294925233,17),r=u(r,a,i,n,e[11],2304563134,22),n=u(n,r,a,i,e[12],1804603682,7),i=u(i,n,r,a,e[13],4254626195,12),a=u(a,i,n,r,e[14],2792965006,17),n=f(n,r=u(r,a,i,n,e[15],1236535329,22),a,i,e[1],4129170786,5),i=f(i,n,r,a,e[6],3225465664,9),a=f(a,i,n,r,e[11],643717713,14),r=f(r,a,i,n,e[0],3921069994,20),n=f(n,r,a,i,e[5],3593408605,5),i=f(i,n,r,a,e[10],38016083,9),a=f(a,i,n,r,e[15],3634488961,14),r=f(r,a,i,n,e[4],3889429448,20),n=f(n,r,a,i,e[9],568446438,5),i=f(i,n,r,a,e[14],3275163606,9),a=f(a,i,n,r,e[3],4107603335,14),r=f(r,a,i,n,e[8],1163531501,20),n=f(n,r,a,i,e[13],2850285829,5),i=f(i,n,r,a,e[2],4243563512,9),a=f(a,i,n,r,e[7],1735328473,14),n=d(n,r=f(r,a,i,n,e[12],2368359562,20),a,i,e[5],4294588738,4),i=d(i,n,r,a,e[8],2272392833,11),a=d(a,i,n,r,e[11],1839030562,16),r=d(r,a,i,n,e[14],4259657740,23),n=d(n,r,a,i,e[1],2763975236,4),i=d(i,n,r,a,e[4],1272893353,11),a=d(a,i,n,r,e[7],4139469664,16),r=d(r,a,i,n,e[10],3200236656,23),n=d(n,r,a,i,e[13],681279174,4),i=d(i,n,r,a,e[0],3936430074,11),a=d(a,i,n,r,e[3],3572445317,16),r=d(r,a,i,n,e[6],76029189,23),n=d(n,r,a,i,e[9],3654602809,4),i=d(i,n,r,a,e[12],3873151461,11),a=d(a,i,n,r,e[15],530742520,16),n=l(n,r=d(r,a,i,n,e[2],3299628645,23),a,i,e[0],4096336452,6),i=l(i,n,r,a,e[7],1126891415,10),a=l(a,i,n,r,e[14],2878612391,15),r=l(r,a,i,n,e[5],4237533241,21),n=l(n,r,a,i,e[12],1700485571,6),i=l(i,n,r,a,e[3],2399980690,10),a=l(a,i,n,r,e[10],4293915773,15),r=l(r,a,i,n,e[1],2240044497,21),n=l(n,r,a,i,e[8],1873313359,6),i=l(i,n,r,a,e[15],4264355552,10),a=l(a,i,n,r,e[6],2734768916,15),r=l(r,a,i,n,e[13],1309151649,21),n=l(n,r,a,i,e[4],4149444226,6),i=l(i,n,r,a,e[11],3174756917,10),a=l(a,i,n,r,e[2],718787259,15),r=l(r,a,i,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+a|0,this._d=this._d+i|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},73350:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},81432:function(e,t){"use strict";var n=t;function r(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n>8,o=255&a;i?n.push(i,o):n.push(o)}return n},n.zero2=r,n.toHex=a,n.encode=function(e,t){return"hex"===t?a(e):e}},41377:function(e){e.exports=function(){"use strict";var e=Object.prototype.toString,t=Array.isArray||function(t){return"[object Array]"===e.call(t)};function n(e){return"function"==typeof e}function r(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function a(e,t){return null!=e&&"object"==typeof e&&t in e}var i=RegExp.prototype.test;var o=/\S/;function s(e){return!function(e,t){return i.call(e,t)}(o,e)}var c={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};var u=/\s*/,f=/\s+/,d=/\s*=/,l=/\s*\}/,p=/#|\^|\/|>|\{|&|=|!/;function b(e){this.string=e,this.tail=e,this.pos=0}function h(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function y(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}b.prototype.eos=function(){return""===this.tail},b.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},b.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},h.prototype.push=function(e){return new h(e,this)},h.prototype.lookup=function(e){var t,r,i,o=this.cache;if(o.hasOwnProperty(e))t=o[e];else{for(var s,c,u,f=this,d=!1;f;){if(e.indexOf(".")>0)for(s=f.view,c=e.split("."),u=0;null!=s&&u0?a[a.length-1][4]:n;break;default:r.push(t)}return n}(function(e){for(var t,n,r=[],a=0,i=e.length;a"===o?s=this.renderPartial(i,t,n,a):"&"===o?s=this.unescapedValue(i,t):"name"===o?s=this.escapedValue(i,t,a):"text"===o&&(s=this.rawValue(i)),void 0!==s&&(c+=s);return c},y.prototype.renderSection=function(e,r,a,i,o){var s=this,c="",u=r.lookup(e[1]);if(u){if(t(u))for(var f=0,d=u.length;f0||!n)&&(a[i]=r+a[i]);return a.join("\n")},y.prototype.renderPartial=function(e,t,r,a){if(r){var i=this.getConfigTags(a),o=n(r)?r(e[1]):r[e[1]];if(null!=o){var s=e[6],c=e[5],u=e[4],f=o;0==c&&u&&(f=this.indentPartial(o,u,s));var d=this.parse(f,i);return this.renderTokens(d,t,r,f,a)}}},y.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},y.prototype.escapedValue=function(e,t,n){var r=this.getConfigEscape(n)||m.escape,a=t.lookup(e[1]);if(null!=a)return"number"==typeof a&&r===m.escape?String(a):r(a)},y.prototype.rawValue=function(e){return e[1]},y.prototype.getConfigTags=function(e){return t(e)?e:e&&"object"==typeof e?e.tags:void 0},y.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!t(e)?e.escape:void 0};var m={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){v.templateCache=e},get templateCache(){return v.templateCache}},v=new y;return m.clearCache=function(){return v.clearCache()},m.parse=function(e,t){return v.parse(e,t)},m.render=function(e,n,r,a){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+((t(i=e)?"array":typeof i)+'" was given as the first argument for mustache#render(template, view, partials)'));var i;return v.render(e,n,r,a)},m.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return c[e]}))},m.Scanner=b,m.Context=h,m.Writer=y,m}()},8128:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(48648).default,i=n(10202).default,o=n(21146).default,s=n(63333).default,c=n(63298).default,u=n(51795).default,f=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Account=void 0;var l=d(n(7134)),p=d(n(88579)),b=n(22850),h=n(2375),y=n(95208),m=n(8032),v=n(52717),g=n(71027),A=n(8527),w=d(n(4433));function x(e){return JSON.parse(r.from(e).toString())}function _(e){return r.from(JSON.stringify(e))}var k=function(){function e(t,n){c(this,e),this.accessKeyByPublicKeyCache={},this.connection=t,this.accountId=n}return u(e,[{key:"state",value:function(){return f(this,void 0,void 0,s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.connection.provider.query({request_type:"view_account",account_id:this.accountId,finality:"optimistic"}));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"printLogsAndFailures",value:function(e,t){if(!{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ENV:"TESTNET",REACT_APP_WORMHOLE_EXPLORER:"https://wormhole.com/explorer/",REACT_APP_WORMHOLE_API:"https://api.testnet.wormscan.io/",REACT_APP_ATTEST_URL:"https://wormhole-foundation.github.io/example-token-bridge-ui/#/register",REACT_APP_GOERLI_RPC:"https://eth-goerli.g.alchemy.com/v2/XQqFfT_fJhn5TE69ZLfne8Kni4k8E0sw"}.NEAR_NO_LOGS){var n,r=o(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;console.log("Receipt".concat(a.receiptIds.length>1?"s":"",": ").concat(a.receiptIds.join(", "))),this.printLogs(e,a.logs,"\t"),a.failure&&console.warn("\tFailure [".concat(e,"]: ").concat(a.failure))}}catch(e){r.e(e)}finally{r.f()}}}},{key:"printLogs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ENV:"TESTNET",REACT_APP_WORMHOLE_EXPLORER:"https://wormhole.com/explorer/",REACT_APP_WORMHOLE_API:"https://api.testnet.wormscan.io/",REACT_APP_ATTEST_URL:"https://wormhole-foundation.github.io/example-token-bridge-ui/#/register",REACT_APP_GOERLI_RPC:"https://eth-goerli.g.alchemy.com/v2/XQqFfT_fJhn5TE69ZLfne8Kni4k8E0sw"}.NEAR_NO_LOGS){var r,a=o(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;console.log("".concat(n,"Log [").concat(e,"]: ").concat(i))}}catch(e){a.e(e)}finally{a.f()}}}},{key:"signTransaction",value:function(e,t){return f(this,void 0,void 0,s().mark((function n(){var r,a,i,o,c;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.findAccessKey(e,t);case 2:if(r=n.sent){n.next=5;break}throw new h.TypedError("Can not sign transactions for account ".concat(this.accountId," on network ").concat(this.connection.networkId,", no matching key pair exists for this account"),"KeyNotFound");case 5:return a=r.accessKey,n.next=8,this.connection.provider.block({finality:"final"});case 8:return i=n.sent,o=i.header.hash,c=a.nonce.add(new l.default(1)),n.next=13,(0,b.signTransaction)(e,c,t,(0,y.baseDecode)(o),this.connection.signer,this.accountId,this.connection.networkId);case 13:return n.abrupt("return",n.sent);case 14:case"end":return n.stop()}}),n,this)})))}},{key:"signAndSendTransaction",value:function(e){var t=e.receiverId,n=e.actions,r=e.returnError;return f(this,void 0,void 0,s().mark((function e(){var o,c,u,d,l=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.default)(500,12,1.5,(function(){return f(l,void 0,void 0,s().mark((function e(){var r,a,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.signTransaction(t,n);case 2:return r=e.sent,a=i(r,2),o=a[0],c=a[1],u=c.transaction.publicKey,e.prev=7,e.next=10,this.connection.provider.sendTransaction(c);case 10:return e.abrupt("return",e.sent);case 13:if(e.prev=13,e.t0=e.catch(7),"InvalidNonce"!==e.t0.type){e.next=19;break}return(0,v.logWarning)("Retrying transaction ".concat(t,":").concat((0,y.baseEncode)(o)," with new nonce.")),delete this.accessKeyByPublicKeyCache[u.toString()],e.abrupt("return",null);case 19:if("Expired"!==e.t0.type){e.next=22;break}return(0,v.logWarning)("Retrying transaction ".concat(t,":").concat((0,y.baseEncode)(o)," due to expired block hash")),e.abrupt("return",null);case 22:throw e.t0.context=new h.ErrorContext((0,y.baseEncode)(o)),e.t0;case 24:case"end":return e.stop()}}),e,this,[[7,13]])})))}));case 2:if(u=e.sent){e.next=5;break}throw new h.TypedError("nonce retries exceeded for transaction. This usually means there are too many parallel requests with the same access key.","RetriesExceeded");case 5:if(d=[u.transaction_outcome].concat(a(u.receipts_outcome)).reduce((function(e,t){return t.outcome.logs.length||"object"==typeof t.outcome.status&&"object"==typeof t.outcome.status.Failure?e.concat({receiptIds:t.outcome.receipt_ids,logs:t.outcome.logs,failure:void 0!==t.outcome.status.Failure?(0,g.parseRpcError)(t.outcome.status.Failure):null}):e}),[]),this.printLogsAndFailures(c.transaction.receiverId,d),r||"object"!=typeof u.status||"object"!=typeof u.status.Failure||null===u.status.Failure){e.next=13;break}if(!u.status.Failure.error_message||!u.status.Failure.error_type){e.next=12;break}throw new h.TypedError("Transaction ".concat(u.transaction_outcome.id," failed. ").concat(u.status.Failure.error_message),u.status.Failure.error_type);case 12:throw(0,g.parseResultError)(u);case 13:return e.abrupt("return",u);case 14:case"end":return e.stop()}}),e,this)})))}},{key:"findAccessKey",value:function(e,t){return f(this,void 0,void 0,s().mark((function e(){var t,n,r,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);case 2:if(t=e.sent){e.next=5;break}throw new h.TypedError("no matching key pair found in ".concat(this.connection.signer),"PublicKeyNotFound");case 5:if(void 0===(n=this.accessKeyByPublicKeyCache[t.toString()])){e.next=8;break}return e.abrupt("return",{publicKey:t,accessKey:n});case 8:return e.prev=8,e.next=11,this.connection.provider.query({request_type:"view_access_key",account_id:this.accountId,public_key:t.toString(),finality:"optimistic"});case 11:if(r=e.sent,a=Object.assign(Object.assign({},r),{nonce:new l.default(r.nonce)}),!this.accessKeyByPublicKeyCache[t.toString()]){e.next=15;break}return e.abrupt("return",{publicKey:t,accessKey:this.accessKeyByPublicKeyCache[t.toString()]});case 15:return this.accessKeyByPublicKeyCache[t.toString()]=a,e.abrupt("return",{publicKey:t,accessKey:a});case 19:if(e.prev=19,e.t0=e.catch(8),"AccessKeyDoesNotExist"!=e.t0.type){e.next=23;break}return e.abrupt("return",null);case 23:throw e.t0;case 24:case"end":return e.stop()}}),e,this,[[8,19]])})))}},{key:"createAndDeployContract",value:function(t,n,r,a){return f(this,void 0,void 0,s().mark((function i(){var o,c;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=(0,b.fullAccessKey)(),i.next=3,this.signAndSendTransaction({receiverId:t,actions:[(0,b.createAccount)(),(0,b.transfer)(a),(0,b.addKey)(m.PublicKey.from(n),o),(0,b.deployContract)(r)]});case 3:return c=new e(this.connection,t),i.abrupt("return",c);case 5:case"end":return i.stop()}}),i,this)})))}},{key:"sendMoney",value:function(e,t){return f(this,void 0,void 0,s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.signAndSendTransaction({receiverId:e,actions:[(0,b.transfer)(t)]}));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"createAccount",value:function(e,t,n){return f(this,void 0,void 0,s().mark((function r(){var a;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=(0,b.fullAccessKey)(),r.abrupt("return",this.signAndSendTransaction({receiverId:e,actions:[(0,b.createAccount)(),(0,b.transfer)(n),(0,b.addKey)(m.PublicKey.from(t),a)]}));case 2:case"end":return r.stop()}}),r,this)})))}},{key:"deleteAccount",value:function(e){return f(this,void 0,void 0,s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ENV:"TESTNET",REACT_APP_WORMHOLE_EXPLORER:"https://wormhole.com/explorer/",REACT_APP_WORMHOLE_API:"https://api.testnet.wormscan.io/",REACT_APP_ATTEST_URL:"https://wormhole-foundation.github.io/example-token-bridge-ui/#/register",REACT_APP_GOERLI_RPC:"https://eth-goerli.g.alchemy.com/v2/XQqFfT_fJhn5TE69ZLfne8Kni4k8E0sw"}.NEAR_NO_LOGS||console.log("Deleting an account does not automatically transfer NFTs and FTs to the beneficiary address. Ensure to transfer assets before deleting."),t.abrupt("return",this.signAndSendTransaction({receiverId:this.accountId,actions:[(0,b.deleteAccount)(e)]}));case 2:case"end":return t.stop()}}),t,this)})))}},{key:"deployContract",value:function(e){return f(this,void 0,void 0,s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.signAndSendTransaction({receiverId:this.accountId,actions:[(0,b.deployContract)(e)]}));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"encodeJSContractArgs",value:function(e,t,n){return r.concat([r.from(e),r.from([0]),r.from(t),r.from([0]),r.from(n)])}},{key:"functionCall",value:function(e){var t=e.contractId,n=e.methodName,r=e.args,a=void 0===r?{}:r,i=e.gas,o=void 0===i?A.DEFAULT_FUNCTION_CALL_GAS:i,c=e.attachedDeposit,u=e.walletMeta,d=e.walletCallbackUrl,l=e.stringify,p=e.jsContract;return f(this,void 0,void 0,s().mark((function e(){var r,i,f;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateArgs(a),p?(i=this.encodeJSContractArgs(t,n,JSON.stringify(a)),r=["call_js_contract",i,o,c,null,!0]):(f=void 0===l?b.stringifyJsonOrBytes:l,r=[n,a,o,c,f,!1]),e.abrupt("return",this.signAndSendTransaction({receiverId:p?this.connection.jsvmAccountId:t,actions:[b.functionCall.apply(void 0,r)],walletMeta:u,walletCallbackUrl:d}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"addKey",value:function(e,t,n,r){return f(this,void 0,void 0,s().mark((function a(){var i;return s().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n||(n=[]),Array.isArray(n)||(n=[n]),i=t?(0,b.functionCallAccessKey)(t,n,r):(0,b.fullAccessKey)(),a.abrupt("return",this.signAndSendTransaction({receiverId:this.accountId,actions:[(0,b.addKey)(m.PublicKey.from(e),i)]}));case 4:case"end":return a.stop()}}),a,this)})))}},{key:"deleteKey",value:function(e){return f(this,void 0,void 0,s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.signAndSendTransaction({receiverId:this.accountId,actions:[(0,b.deleteKey)(m.PublicKey.from(e))]}));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"stake",value:function(e,t){return f(this,void 0,void 0,s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.signAndSendTransaction({receiverId:this.accountId,actions:[(0,b.stake)(t,m.PublicKey.from(e))]}));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"validateArgs",value:function(e){if((void 0===e.byteLength||e.byteLength!==e.length)&&(Array.isArray(e)||"object"!=typeof e))throw new v.PositionalArgsError}},{key:"viewFunction",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.parse,i=void 0===a?x:a,o=r.stringify,c=void 0===o?_:o,u=r.jsContract,d=void 0!==u&&u,l=r.blockQuery,b=void 0===l?{finality:"optimistic"}:l;return f(this,void 0,void 0,s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(0,p.default)("Account.viewFunction(contractId, methodName, args, options)")("use `Account.viewFunction(ViewFunctionCallOptions)` instead"),r.abrupt("return",this.viewFunctionV2({contractId:e,methodName:t,args:n,parse:i,stringify:c,jsContract:d,blockQuery:b}));case 3:case"end":return r.stop()}}),r,this)})))}},{key:"viewFunctionV2",value:function(e){var t=e.contractId,n=e.methodName,a=e.args,i=e.parse,o=void 0===i?x:i,c=e.stringify,u=void 0===c?_:c,d=e.jsContract,l=void 0!==d&&d,p=e.blockQuery,b=void 0===p?{finality:"optimistic"}:p;return f(this,void 0,void 0,s().mark((function e(){var i,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateArgs(a),i=l?this.encodeJSContractArgs(t,n,Object.keys(a).length>0?JSON.stringify(a):""):u(a),e.next=4,this.connection.provider.query(Object.assign(Object.assign({request_type:"call_function"},b),{account_id:l?this.connection.jsvmAccountId:t,method_name:l?"view_js_contract":n,args_base64:i.toString("base64")}));case 4:return(c=e.sent).logs&&this.printLogs(t,c.logs),e.abrupt("return",c.result&&c.result.length>0&&o(r.from(c.result)));case 7:case"end":return e.stop()}}),e,this)})))}},{key:"viewState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{finality:"optimistic"};return f(this,void 0,void 0,s().mark((function n(){var a,i;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.connection.provider.query(Object.assign(Object.assign({request_type:"view_state"},t),{account_id:this.accountId,prefix_base64:r.from(e).toString("base64")}));case 2:return a=n.sent,i=a.values,n.abrupt("return",i.map((function(e){var t=e.key,n=e.value;return{key:r.from(t,"base64"),value:r.from(n,"base64")}})));case 5:case"end":return n.stop()}}),n,this)})))}},{key:"getAccessKeys",value:function(){var e;return f(this,void 0,void 0,s().mark((function t(){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.connection.provider.query({request_type:"view_access_key_list",account_id:this.accountId,finality:"optimistic"});case 2:return n=t.sent,t.abrupt("return",null===(e=null==n?void 0:n.keys)||void 0===e?void 0:e.map((function(e){return Object.assign(Object.assign({},e),{access_key:Object.assign(Object.assign({},e.access_key),{nonce:new l.default(e.access_key.nonce)})})})));case 4:case"end":return t.stop()}}),t,this)})))}},{key:"getAccountDetails",value:function(){return f(this,void 0,void 0,s().mark((function e(){var t,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessKeys();case 2:return t=e.sent,n=t.filter((function(e){return"FullAccess"!==e.access_key.permission})).map((function(e){var t=e.access_key.permission;return{contractId:t.FunctionCall.receiver_id,amount:t.FunctionCall.allowance,publicKey:e.public_key}})),e.abrupt("return",{authorizedApps:n});case 5:case"end":return e.stop()}}),e,this)})))}},{key:"getAccountBalance",value:function(){return f(this,void 0,void 0,s().mark((function e(){var t,n,r,a,i,o,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.connection.provider.experimental_protocolConfig({finality:"final"});case 2:return t=e.sent,e.next=5,this.state();case 5:return n=e.sent,r=new l.default(t.runtime_config.storage_amount_per_byte),a=new l.default(n.storage_usage).mul(r),i=new l.default(n.locked),o=new l.default(n.amount).add(i),c=o.sub(l.default.max(i,a)),e.abrupt("return",{total:o.toString(),stateStaked:a.toString(),staked:i.toString(),available:c.toString()});case 12:case"end":return e.stop()}}),e,this)})))}},{key:"getActiveDelegatedStakeBalance",value:function(){return f(this,void 0,void 0,s().mark((function e(){var t,n,r,i,o,c,u,f,d,p,b,h,y=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.connection.provider.block({finality:"final"});case 2:return t=e.sent,n=t.header.hash,r=t.header.epoch_id,e.next=7,this.connection.provider.validators(r);case 7:return i=e.sent,o=i.current_validators,c=i.next_validators,u=i.current_proposals,f=new Set,[].concat(a(o),a(c),a(u)).forEach((function(e){return f.add(e.account_id)})),d=a(f),p=d.map((function(e){return y.viewFunction({contractId:e,methodName:"get_account_total_balance",args:{account_id:y.accountId},blockQuery:{blockId:n}})})),e.next=17,Promise.allSettled(p);case 17:if(!(b=e.sent).some((function(e){return"rejected"===e.status&&"TimeoutError"===e.reason.type}))){e.next=21;break}throw new Error("Failed to get delegated stake balance");case 21:return h=b.reduce((function(e,t,n){var r=d[n];if("fulfilled"===t.status){var i=new l.default(t.value);if(!i.isZero())return Object.assign(Object.assign({},e),{stakedValidators:[].concat(a(e.stakedValidators),[{validatorId:r,amount:i.toString()}]),total:e.total.add(i)})}return"rejected"===t.status?Object.assign(Object.assign({},e),{failedValidators:[].concat(a(e.failedValidators),[{validatorId:r,error:t.reason}])}):e}),{stakedValidators:[],failedValidators:[],total:new l.default(0)}),e.abrupt("return",Object.assign(Object.assign({},h),{total:h.total.toString()}));case 23:case"end":return e.stop()}}),e,this)})))}}]),e}();t.Account=k},61690:function(e,t,n){"use strict";var r=n(63333).default,a=n(17964).default,i=n(54790).default,o=n(51795).default,s=n(63298).default,c=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.UrlAccountCreator=t.LocalAccountCreator=t.AccountCreator=void 0;var u=n(14728),f=o((function e(){s(this,e)}));t.AccountCreator=f;var d=function(e){a(n,e);var t=i(n);function n(e,r){var a;return s(this,n),(a=t.call(this)).masterAccount=e,a.initialBalance=r,a}return o(n,[{key:"createAccount",value:function(e,t){return c(this,void 0,void 0,r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.masterAccount.createAccount(e,t,this.initialBalance);case 2:case"end":return n.stop()}}),n,this)})))}}]),n}(f);t.LocalAccountCreator=d;var l=function(e){a(n,e);var t=i(n);function n(e,r){var a;return s(this,n),(a=t.call(this)).connection=e,a.helperUrl=r,a}return o(n,[{key:"createAccount",value:function(e,t){return c(this,void 0,void 0,r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,u.fetchJson)("".concat(this.helperUrl,"/account"),JSON.stringify({newAccountId:e,newAccountPublicKey:t.toString()}));case 2:case"end":return n.stop()}}),n,this)})))}}]),n}(f);t.UrlAccountCreator=l},64779:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(48648).default,i=n(21146).default,o=n(63333).default,s=n(63298).default,c=n(51795).default,u=n(34560).default,f=n(47474).default,d=n(17964).default,l=n(54790).default,p=n(90366).default,b=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},h=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Account2FA=t.AccountMultisig=t.MultisigStateStatus=t.MultisigDeleteRequestRejectionError=t.MULTISIG_CONFIRM_METHODS=t.MULTISIG_CHANGE_METHODS=t.MULTISIG_DEPOSIT=t.MULTISIG_GAS=t.MULTISIG_ALLOWANCE=t.MULTISIG_STORAGE_KEY=void 0;var y,m,v,g=h(n(7134)),A=n(8128),w=n(84418),x=n(8032),_=n(22850),k=n(2375),S=n(14728);t.MULTISIG_STORAGE_KEY="__multisigRequest",t.MULTISIG_ALLOWANCE=new g.default((0,w.parseNearAmount)("1")),t.MULTISIG_GAS=new g.default("100000000000000"),t.MULTISIG_DEPOSIT=new g.default("0"),t.MULTISIG_CHANGE_METHODS=["add_request","add_request_and_confirm","delete_request","confirm"],t.MULTISIG_CONFIRM_METHODS=["confirm"],function(e){e.CANNOT_DESERIALIZE_STATE="Cannot deserialize the contract state",e.MULTISIG_NOT_INITIALIZED="Smart contract panicked: Multisig contract should be initialized before usage",e.NO_SUCH_REQUEST="Smart contract panicked: panicked at 'No such request: either wrong number or already confirmed'",e.REQUEST_COOLDOWN_ERROR="Request cannot be deleted immediately after creation.",e.METHOD_NOT_FOUND="Contract method is not found"}(y=t.MultisigDeleteRequestRejectionError||(t.MultisigDeleteRequestRejectionError={})),function(e){e[e.INVALID_STATE=0]="INVALID_STATE",e[e.STATE_NOT_INITIALIZED=1]="STATE_NOT_INITIALIZED",e[e.VALID_STATE=2]="VALID_STATE",e[e.UNKNOWN_STATE=3]="UNKNOWN_STATE"}(m=t.MultisigStateStatus||(t.MultisigStateStatus={})),function(e){e[e.INVALID_CODE=0]="INVALID_CODE",e[e.VALID_CODE=1]="VALID_CODE",e[e.UNKNOWN_CODE=2]="UNKNOWN_CODE"}(v||(v={}));var I=p({},t.MULTISIG_STORAGE_KEY,null),E=function(e){d(a,e);var n=l(a);function a(e,t,r){var i;return s(this,a),(i=n.call(this,e,t)).storage=r.storage,i.onAddRequestResult=r.onAddRequestResult,i}return c(a,[{key:"signAndSendTransactionWithAccount",value:function(e,t){var n=this,r=Object.create(null,{signAndSendTransaction:{get:function(){return u(f(a.prototype),"signAndSendTransaction",n)}}});return b(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.signAndSendTransaction.call(this,{receiverId:e,actions:t}));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"signAndSendTransaction",value:function(e){var n=this,i=e.receiverId,s=e.actions,c=Object.create(null,{signAndSendTransaction:{get:function(){return u(f(a.prototype),"signAndSendTransaction",n)}}});return b(this,void 0,void 0,o().mark((function e(){var n,a,u,f;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.accountId,a=r.from(JSON.stringify({request:{receiver_id:i,actions:O(s,n,i)}})),e.prev=2,e.next=5,c.signAndSendTransaction.call(this,{receiverId:n,actions:[(0,_.functionCall)("add_request_and_confirm",a,t.MULTISIG_GAS,t.MULTISIG_DEPOSIT)]});case 5:u=e.sent,e.next=17;break;case 8:if(e.prev=8,e.t0=e.catch(2),!e.t0.toString().includes("Account has too many active requests. Confirm or delete some")){e.next=16;break}return e.next=13,this.deleteUnconfirmedRequests();case 13:return e.next=15,this.signAndSendTransaction({receiverId:i,actions:s});case 15:return e.abrupt("return",e.sent);case 16:throw e.t0;case 17:if(u.status){e.next=19;break}throw new Error("Request failed");case 19:if((f=Object.assign({},u.status)).SuccessValue&&"string"==typeof f.SuccessValue){e.next=22;break}throw new Error("Request failed");case 22:if(this.setRequest({accountId:n,actions:s,requestId:parseInt(r.from(f.SuccessValue,"base64").toString("ascii"),10)}),!this.onAddRequestResult){e.next=26;break}return e.next=26,this.onAddRequestResult(u);case 26:return this.deleteUnconfirmedRequests(),e.abrupt("return",u);case 28:case"end":return e.stop()}}),e,this,[[2,8]])})))}},{key:"checkMultisigCodeAndStateStatus",value:function(e){var n=this,r=Object.create(null,{signAndSendTransaction:{get:function(){return u(f(a.prototype),"signAndSendTransaction",n)}}});return b(this,void 0,void 0,o().mark((function n(){var a,i;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=4294967295,i=e?v.UNKNOWN_CODE:v.VALID_CODE,n.prev=2,!e){n.next=8;break}return n.next=6,r.signAndSendTransaction.call(this,{receiverId:this.accountId,actions:[(0,_.deployContract)(e),(0,_.functionCall)("delete_request",{request_id:a},t.MULTISIG_GAS,t.MULTISIG_DEPOSIT)]});case 6:n.next=10;break;case 8:return n.next=10,this.deleteRequest(a);case 10:return n.abrupt("return",{codeStatus:v.VALID_CODE,stateStatus:m.VALID_STATE});case 13:if(n.prev=13,n.t0=n.catch(2),!new RegExp(y.CANNOT_DESERIALIZE_STATE).test(n.t0&&n.t0.kind&&n.t0.kind.ExecutionError)){n.next=19;break}return n.abrupt("return",{codeStatus:i,stateStatus:m.INVALID_STATE});case 19:if(!new RegExp(y.MULTISIG_NOT_INITIALIZED).test(n.t0&&n.t0.kind&&n.t0.kind.ExecutionError)){n.next=23;break}return n.abrupt("return",{codeStatus:i,stateStatus:m.STATE_NOT_INITIALIZED});case 23:if(!new RegExp(y.NO_SUCH_REQUEST).test(n.t0&&n.t0.kind&&n.t0.kind.ExecutionError)){n.next=27;break}return n.abrupt("return",{codeStatus:i,stateStatus:m.VALID_STATE});case 27:if(!new RegExp(y.METHOD_NOT_FOUND).test(n.t0&&n.t0.message)){n.next=29;break}return n.abrupt("return",{codeStatus:v.INVALID_CODE,stateStatus:m.UNKNOWN_STATE});case 29:throw n.t0;case 30:case"end":return n.stop()}}),n,this,[[2,13]])})))}},{key:"deleteRequest",value:function(e){return u(f(a.prototype),"signAndSendTransaction",this).call(this,{receiverId:this.accountId,actions:[(0,_.functionCall)("delete_request",{request_id:e},t.MULTISIG_GAS,t.MULTISIG_DEPOSIT)]})}},{key:"deleteAllRequests",value:function(){return b(this,void 0,void 0,o().mark((function e(){var t,n=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRequestIds();case 2:if(!(t=e.sent).length){e.next=6;break}return e.next=6,Promise.all(t.map((function(e){return n.deleteRequest(e)})));case 6:case"end":return e.stop()}}),e,this)})))}},{key:"deleteUnconfirmedRequests",value:function(){var e=this,n=Object.create(null,{signAndSendTransaction:{get:function(){return u(f(a.prototype),"signAndSendTransaction",e)}}});return b(this,void 0,void 0,o().mark((function e(){var r,a,s,c,u,f;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRequestIds();case 2:r=e.sent,a=this.getRequest(),s=a.requestId,c=i(r),e.prev=5,c.s();case 7:if((u=c.n()).done){e.next=21;break}if((f=u.value)!=s){e.next=11;break}return e.abrupt("continue",19);case 11:return e.prev=11,e.next=14,n.signAndSendTransaction.call(this,{receiverId:this.accountId,actions:[(0,_.functionCall)("delete_request",{request_id:f},t.MULTISIG_GAS,t.MULTISIG_DEPOSIT)]});case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(11),console.warn("Attempt to delete an earlier request before 15 minutes failed. Will try again.");case 19:e.next=7;break;case 21:e.next=26;break;case 23:e.prev=23,e.t1=e.catch(5),c.e(e.t1);case 26:return e.prev=26,c.f(),e.finish(26);case 29:case"end":return e.stop()}}),e,this,[[5,23,26,29],[11,16]])})))}},{key:"getRequestIds",value:function(){return b(this,void 0,void 0,o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.viewFunction(this.accountId,"list_request_ids"));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"getRequest",value:function(){return this.storage?JSON.parse(this.storage.getItem(t.MULTISIG_STORAGE_KEY)||"{}"):I[t.MULTISIG_STORAGE_KEY]}},{key:"setRequest",value:function(e){if(this.storage)return this.storage.setItem(t.MULTISIG_STORAGE_KEY,JSON.stringify(e));I[t.MULTISIG_STORAGE_KEY]=e}}]),a}(A.Account);t.AccountMultisig=E;var C=function(e){d(i,e);var n=l(i);function i(e,t,r){var a;return s(this,i),(a=n.call(this,e,t,r)).helperUrl="https://helper.testnet.near.org",a.helperUrl=r.helperUrl||a.helperUrl,a.storage=r.storage,a.sendCode=r.sendCode||a.sendCodeDefault,a.getCode=r.getCode||a.getCodeDefault,a.verifyCode=r.verifyCode||a.verifyCodeDefault,a.onConfirmResult=r.onConfirmResult,a}return c(i,[{key:"signAndSendTransaction",value:function(e){var t=this,n=e.receiverId,r=e.actions,a=Object.create(null,{signAndSendTransaction:{get:function(){return u(f(i.prototype),"signAndSendTransaction",t)}}});return b(this,void 0,void 0,o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.signAndSendTransaction.call(this,{receiverId:n,actions:r});case 2:return e.next=4,this.sendCode();case 4:return e.next=6,this.promptAndVerify();case 6:if(t=e.sent,!this.onConfirmResult){e.next=10;break}return e.next=10,this.onConfirmResult(t);case 10:return e.abrupt("return",t);case 11:case"end":return e.stop()}}),e,this)})))}},{key:"deployMultisig",value:function(e){var n=this,s=Object.create(null,{signAndSendTransactionWithAccount:{get:function(){return u(f(i.prototype),"signAndSendTransactionWithAccount",n)}}});return b(this,void 0,void 0,o().mark((function n(){var i,c,u,f,d,l,p,b,h;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=this.accountId,n.next=3,this.getRecoveryMethods();case 3:return c=n.sent.data.filter((function(e){var t=e.kind,n=e.publicKey;return("phrase"===t||"ledger"===t)&&null!==n})).map((function(e){return e.publicKey})),n.next=6,this.getAccessKeys();case 6:return u=n.sent.filter((function(e){var t=e.public_key;return"FullAccess"===e.access_key.permission&&!c.includes(t)})).map((function(e){return e.public_key})).map(T),n.t0=T,n.next=10,this.postSignedJson("/2fa/getAccessKey",{accountId:i});case 10:return n.t1=n.sent.publicKey,f=(0,n.t0)(n.t1),d=r.from(JSON.stringify({num_confirmations:2})),l=[].concat(a(u.map((function(e){return(0,_.deleteKey)(e)}))),a(u.map((function(e){return(0,_.addKey)(e,(0,_.functionCallAccessKey)(i,t.MULTISIG_CHANGE_METHODS,null))}))),[(0,_.addKey)(f,(0,_.functionCallAccessKey)(i,t.MULTISIG_CONFIRM_METHODS,null)),(0,_.deployContract)(e)]),p=l.concat((0,_.functionCall)("new",d,t.MULTISIG_GAS,t.MULTISIG_DEPOSIT)),console.log("deploying multisig contract for",i),n.next=18,this.checkMultisigCodeAndStateStatus(e);case 18:b=n.sent,h=b.stateStatus,n.t2=h,n.next=n.t2===m.STATE_NOT_INITIALIZED?23:n.t2===m.VALID_STATE?26:n.t2===m.INVALID_STATE?29:30;break;case 23:return n.next=25,s.signAndSendTransactionWithAccount.call(this,i,p);case 25:case 28:return n.abrupt("return",n.sent);case 26:return n.next=28,s.signAndSendTransactionWithAccount.call(this,i,l);case 29:throw new k.TypedError("Can not deploy a contract to account ".concat(this.accountId," on network ").concat(this.connection.networkId,", the account has existing state."),"ContractHasExistingState");case 30:throw new k.TypedError("Can not deploy a contract to account ".concat(this.accountId," on network ").concat(this.connection.networkId,", the account state could not be verified."),"ContractStateUnknown");case 31:case"end":return n.stop()}}),n,this)})))}},{key:"disableWithFAK",value:function(e){var t=e.contractBytes,n=e.cleanupContractBytes;return b(this,void 0,void 0,o().mark((function e(){var r,i,s,c;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=[],!n){e.next=7;break}return e.next=4,this.deleteAllRequests().catch((function(e){return e}));case 4:return e.next=6,this.get2faDisableCleanupActions(n);case 6:r=e.sent;case 7:return e.next=9,this.get2faDisableKeyConversionActions();case 9:return i=e.sent,s=[].concat(a(r),a(i),[(0,_.deployContract)(t)]),e.next=13,this.findAccessKey(this.accountId,s);case 13:if(!(c=e.sent)||!c.accessKey||"FullAccess"===c.accessKey.permission){e.next=16;break}throw new k.TypedError("No full access key found in keystore. Unable to bypass multisig","NoFAKFound");case 16:return e.abrupt("return",this.signAndSendTransactionWithAccount(this.accountId,s));case 17:case"end":return e.stop()}}),e,this)})))}},{key:"get2faDisableCleanupActions",value:function(e){return b(this,void 0,void 0,o().mark((function n(){var r,a,i=this;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.viewState("").catch((function(e){var t=e.cause&&e.cause.name;if("NO_CONTRACT_CODE"==t)return[];throw"TOO_LARGE_CONTRACT_STATE"==t?new k.TypedError("Can not deploy a contract to account ".concat(i.accountId," on network ").concat(i.connection.networkId,", the account has existing state."),"ContractHasExistingState"):e}));case 2:return r=n.sent,a=r.map((function(e){return e.key.toString("base64")})),n.abrupt("return",r.length?[(0,_.deployContract)(e),(0,_.functionCall)("clean",{keys:a},t.MULTISIG_GAS,new g.default("0"))]:[]);case 5:case"end":return n.stop()}}),n,this)})))}},{key:"get2faDisableKeyConversionActions",value:function(){return b(this,void 0,void 0,o().mark((function e(){var t,n,r,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.accountId,e.next=3,this.getAccessKeys();case 3:return n=e.sent,r=n.filter((function(e){return"FullAccess"!==e.access_key.permission})).filter((function(e){var n=e.access_key.permission.FunctionCall;return n.receiver_id===t&&4===n.method_names.length&&n.method_names.includes("add_request_and_confirm")})),e.t0=x.PublicKey,e.next=8,this.postSignedJson("/2fa/getAccessKey",{accountId:t});case 8:return e.t1=e.sent.publicKey,i=e.t0.from.call(e.t0,e.t1),e.abrupt("return",[(0,_.deleteKey)(i)].concat(a(r.map((function(e){var t=e.public_key;return(0,_.deleteKey)(x.PublicKey.from(t))}))),a(r.map((function(e){var t=e.public_key;return(0,_.addKey)(x.PublicKey.from(t),(0,_.fullAccessKey)())})))));case 11:case"end":return e.stop()}}),e,this)})))}},{key:"disable",value:function(e,t){return b(this,void 0,void 0,o().mark((function n(){var r,i,s,c,u;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.checkMultisigCodeAndStateStatus();case 2:if(r=n.sent,(i=r.stateStatus)===m.VALID_STATE||i===m.STATE_NOT_INITIALIZED){n.next=6;break}throw new k.TypedError("Can not deploy a contract to account ".concat(this.accountId," on network ").concat(this.connection.networkId,", the account state could not be verified."),"ContractStateUnknown");case 6:return n.next=8,this.deleteAllRequests().catch((function(e){return s=e}));case 8:return n.next=10,this.get2faDisableCleanupActions(t).catch((function(e){if("ContractHasExistingState"===e.type)throw s||e;throw e}));case 10:return c=n.sent,n.t0=[],n.t1=a(c),n.t2=a,n.next=16,this.get2faDisableKeyConversionActions();case 16:return n.t3=n.sent,n.t4=(0,n.t2)(n.t3),n.t5=[(0,_.deployContract)(e)],u=n.t0.concat.call(n.t0,n.t1,n.t4,n.t5),console.log("disabling 2fa for",this.accountId),n.next=23,this.signAndSendTransaction({receiverId:this.accountId,actions:u});case 23:return n.abrupt("return",n.sent);case 24:case"end":return n.stop()}}),n,this)})))}},{key:"sendCodeDefault",value:function(){return b(this,void 0,void 0,o().mark((function e(){var t,n,r,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.accountId,n=this.getRequest(),r=n.requestId,e.next=4,this.get2faMethod();case 4:return a=e.sent,e.next=7,this.postSignedJson("/2fa/send",{accountId:t,method:a,requestId:r});case 7:return e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)})))}},{key:"getCodeDefault",value:function(){return b(this,void 0,void 0,o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error('There is no getCode callback provided. Please provide your own in AccountMultisig constructor options. It has a parameter method where method.kind is "email" or "phone".');case 1:case"end":return e.stop()}}),e)})))}},{key:"promptAndVerify",value:function(){return b(this,void 0,void 0,o().mark((function e(){var t,n,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get2faMethod();case 2:return t=e.sent,e.next=5,this.getCode(t);case 5:return n=e.sent,e.prev=6,e.next=9,this.verifyCode(n);case 9:return r=e.sent,e.abrupt("return",r);case 13:if(e.prev=13,e.t0=e.catch(6),console.warn("Error validating security code:",e.t0),!e.t0.toString().includes("invalid 2fa code provided")&&!e.t0.toString().includes("2fa code not valid")){e.next=20;break}return e.next=19,this.promptAndVerify();case 19:return e.abrupt("return",e.sent);case 20:throw e.t0;case 21:case"end":return e.stop()}}),e,this,[[6,13]])})))}},{key:"verifyCodeDefault",value:function(e){return b(this,void 0,void 0,o().mark((function t(){var n,r,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.accountId,r=this.getRequest()){t.next=4;break}throw new Error("no request pending");case 4:return a=r.requestId,t.next=7,this.postSignedJson("/2fa/verify",{accountId:n,securityCode:e,requestId:a});case 7:return t.abrupt("return",t.sent);case 8:case"end":return t.stop()}}),t,this)})))}},{key:"getRecoveryMethods",value:function(){return b(this,void 0,void 0,o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.accountId,e.t0=t,e.next=4,this.postSignedJson("/account/recoveryMethods",{accountId:t});case 4:return e.t1=e.sent,e.abrupt("return",{accountId:e.t0,data:e.t1});case 6:case"end":return e.stop()}}),e,this)})))}},{key:"get2faMethod",value:function(){return b(this,void 0,void 0,o().mark((function e(){var t,n,r,a,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRecoveryMethods();case 2:if(t=e.sent,(n=t.data)&&n.length&&(n=n.find((function(e){return 0===e.kind.indexOf("2fa-")}))),n){e.next=7;break}return e.abrupt("return",null);case 7:return a=(r=n).kind,i=r.detail,e.abrupt("return",{kind:a,detail:i});case 9:case"end":return e.stop()}}),e,this)})))}},{key:"signatureFor",value:function(){return b(this,void 0,void 0,o().mark((function e(){var t,n,a,i,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.accountId,e.next=3,this.connection.provider.block({finality:"final"});case 3:return n=e.sent,a=n.header.height.toString(),e.next=7,this.connection.signer.signMessage(r.from(a),t,this.connection.networkId);case 7:return i=e.sent,s=r.from(i.signature).toString("base64"),e.abrupt("return",{blockNumber:a,blockNumberSignature:s});case 10:case"end":return e.stop()}}),e,this)})))}},{key:"postSignedJson",value:function(e,t){return b(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=S.fetchJson,n.t1=this.helperUrl+e,n.t2=JSON,n.t3=Object,n.t4=Object.assign({},t),n.next=7,this.signatureFor();case 7:return n.t5=n.sent,n.t6=n.t3.assign.call(n.t3,n.t4,n.t5),n.t7=n.t2.stringify.call(n.t2,n.t6),n.next=12,(0,n.t0)(n.t1,n.t7);case 12:return n.abrupt("return",n.sent);case 13:case"end":return n.stop()}}),n,this)})))}}]),i}(E);t.Account2FA=C;var T=function(e){return x.PublicKey.from(e)},O=function(e,n,a){return e.map((function(e){var i,o=e.enum,s=e[o],c=s.gas,u=s.publicKey,f=s.methodName,d=s.args,l=s.deposit,p=s.accessKey,b=s.code,h={type:o[0].toUpperCase()+o.substr(1),gas:c&&c.toString()||void 0,public_key:u&&(i=u,i.toString().replace("ed25519:",""))||void 0,method_name:f,args:d&&r.from(d).toString("base64")||void 0,code:b&&r.from(b).toString("base64")||void 0,amount:l&&l.toString()||void 0,deposit:l&&l.toString()||"0",permission:void 0};if(p&&(a===n&&"fullAccess"!==p.permission.enum&&(h.permission={receiver_id:n,allowance:t.MULTISIG_ALLOWANCE.toString(),method_names:t.MULTISIG_CHANGE_METHODS}),"functionCall"===p.permission.enum)){var y=p.permission.functionCall,m=y.receiverId,v=y.methodNames,g=y.allowance;h.permission={receiver_id:m,allowance:g&&g.toString()||void 0,method_names:v}}return h}))}},49549:function(e,t,n){"use strict";var r=n(63333).default,a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var i=n(96228);t.connect=function(e){return a(this,void 0,void 0,r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new i.Near(e));case 1:case"end":return t.stop()}}),t)})))}},88092:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.keyStores=void 0,t.keyStores=i(n(67302)),o(n(29911),t),o(n(49549),t),n(80675)},29911:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.WalletConnection=t.ConnectedWalletAccount=t.Near=t.KeyPair=t.Signer=t.InMemorySigner=t.Contract=t.Connection=t.Account=t.multisig=t.validators=t.transactions=t.utils=t.providers=t.accountCreator=void 0;var o=i(n(2375));t.providers=o;var s=i(n(9937));t.utils=s;var c=i(n(22850));t.transactions=c;var u=i(n(81367));t.validators=u;var f=n(8128);Object.defineProperty(t,"Account",{enumerable:!0,get:function(){return f.Account}});var d=i(n(64779));t.multisig=d;var l=i(n(61690));t.accountCreator=l;var p=n(613);Object.defineProperty(t,"Connection",{enumerable:!0,get:function(){return p.Connection}});var b=n(6809);Object.defineProperty(t,"Signer",{enumerable:!0,get:function(){return b.Signer}}),Object.defineProperty(t,"InMemorySigner",{enumerable:!0,get:function(){return b.InMemorySigner}});var h=n(23238);Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return h.Contract}});var y=n(8032);Object.defineProperty(t,"KeyPair",{enumerable:!0,get:function(){return y.KeyPair}});var m=n(96228);Object.defineProperty(t,"Near",{enumerable:!0,get:function(){return m.Near}});var v=n(32396);Object.defineProperty(t,"ConnectedWalletAccount",{enumerable:!0,get:function(){return v.ConnectedWalletAccount}}),Object.defineProperty(t,"WalletConnection",{enumerable:!0,get:function(){return v.WalletConnection}})},613:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Connection=void 0;var i=n(2375),o=n(6809),s=function(){function e(t,n,a,i){r(this,e),this.networkId=t,this.provider=n,this.signer=a,this.jsvmAccountId=i}return a(e,null,[{key:"fromConfig",value:function(t){var n=function(e){switch(e.type){case void 0:return e;case"JsonRpcProvider":return new i.JsonRpcProvider(Object.assign({},e.args));default:throw new Error("Unknown provider type ".concat(e.type))}}(t.provider),r=function(e){switch(e.type){case void 0:return e;case"InMemorySigner":return new o.InMemorySigner(e.keyStore);default:throw new Error("Unknown signer type ".concat(e.type))}}(t.signer);return new e(t.networkId,n,r,t.jsvmAccountId)}}]),e}();t.Connection=s},8527:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FUNCTION_CALL_GAS=void 0;var a=r(n(7134));t.DEFAULT_FUNCTION_CALL_GAS=new a.default("30000000000000")},23238:function(e,t,n){"use strict";var r=n(63333).default,a=n(63298).default,i=n(51795).default,o=n(90366).default,s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Contract=void 0;var u=c(n(7134)),f=c(n(88579)),d=n(2375),l=n(52717);function p(e,t){return o({},e,(function(){return t.apply(void 0,arguments)}))[e]}var b=function(e){return e&&void 0!==e.byteLength&&e.byteLength===e.length},h=function(e){return"[object Object]"===Object.prototype.toString.call(e)},y=function(){function e(t,n,i){var o=this;a(this,e),this.account=t,this.contractId=n;var c=i.viewMethods,u=void 0===c?[]:c,d=i.changeMethods,y=void 0===d?[]:d;u.forEach((function(e){Object.defineProperty(o,e,{writable:!1,enumerable:!0,value:p(e,(function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length,i=new Array(a>2?a-2:0),c=2;c3||!h(n[0])&&!b(n[0]))){t.next=2;break}throw new l.PositionalArgsError;case 2:if(!(n.length>1)&&n[0]&&n[0].args){t.next=6;break}return(0,f.default)("contract.methodName(args, gas, amount)")("use `contract.methodName({ args, gas?, amount?, callbackUrl?, meta? })` instead"),t.abrupt("return",this._changeMethod({methodName:e,args:n[0],gas:n[1],amount:n[2]}));case 6:return t.abrupt("return",this._changeMethod(Object.assign({methodName:e},n[0])));case 7:case"end":return t.stop()}}),t,this)})))}))})}))}return i(e,[{key:"_changeMethod",value:function(e){var t=e.args,n=e.methodName,a=e.gas,i=e.amount,o=e.meta,c=e.callbackUrl;return s(this,void 0,void 0,r().mark((function e(){var s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m({gas:a,amount:i}),e.next=3,this.account.functionCall({contractId:this.contractId,methodName:n,args:t,gas:a,attachedDeposit:i,walletMeta:o,walletCallbackUrl:c});case 3:return s=e.sent,e.abrupt("return",(0,d.getTransactionLastResult)(s));case 5:case"end":return e.stop()}}),e,this)})))}}]),e}();function m(e){for(var t=0,n=Object.keys(e);t0&&void 0!==arguments[0]?arguments[0]:window.localStorage,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"near-api-js:keystore:";return i(this,n),(e=t.call(this)).localStorage=r,e.prefix=a,e}return o(n,[{key:"setKey",value:function(e,t,n){return u(this,void 0,void 0,a().mark((function r(){return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:this.localStorage.setItem(this.storageKeyForSecretKey(e,t),n.toString());case 1:case"end":return r.stop()}}),r,this)})))}},{key:"getKey",value:function(e,t){return u(this,void 0,void 0,a().mark((function n(){var r;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=this.localStorage.getItem(this.storageKeyForSecretKey(e,t))){n.next=3;break}return n.abrupt("return",null);case 3:return n.abrupt("return",d.KeyPair.fromString(r));case 4:case"end":return n.stop()}}),n,this)})))}},{key:"removeKey",value:function(e,t){return u(this,void 0,void 0,a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:this.localStorage.removeItem(this.storageKeyForSecretKey(e,t));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"clear",value:function(){return u(this,void 0,void 0,a().mark((function e(){var t,n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r(this.storageKeys());try{for(t.s();!(n=t.n()).done;)(i=n.value).startsWith(this.prefix)&&this.localStorage.removeItem(i)}catch(e){t.e(e)}finally{t.f()}case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getNetworks",value:function(){return u(this,void 0,void 0,a().mark((function e(){var t,n,i,o,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=new Set,n=r(this.storageKeys());try{for(n.s();!(i=n.n()).done;)(o=i.value).startsWith(this.prefix)&&(s=o.substring(this.prefix.length).split(":"),t.add(s[1]))}catch(e){n.e(e)}finally{n.f()}return e.abrupt("return",Array.from(t.values()));case 4:case"end":return e.stop()}}),e,this)})))}},{key:"getAccounts",value:function(e){return u(this,void 0,void 0,a().mark((function t(){var n,i,o,s,c;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=new Array,i=r(this.storageKeys());try{for(i.s();!(o=i.n()).done;)(s=o.value).startsWith(this.prefix)&&(c=s.substring(this.prefix.length).split(":"))[1]===e&&n.push(c[0])}catch(e){i.e(e)}finally{i.f()}return t.abrupt("return",n);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"storageKeyForSecretKey",value:function(e,t){return"".concat(this.prefix).concat(t,":").concat(e)}},{key:"storageKeys",value:a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t1&&void 0!==arguments[1]?arguments[1]:{writeKeyStoreIndex:0};return i(this,n),(r=t.call(this)).options=a,r.keyStores=e,r}return o(n,[{key:"setKey",value:function(e,t,n){return u(this,void 0,void 0,a().mark((function r(){return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.keyStores[this.options.writeKeyStoreIndex].setKey(e,t,n);case 2:case"end":return r.stop()}}),r,this)})))}},{key:"getKey",value:function(e,t){return u(this,void 0,void 0,a().mark((function n(){var i,o,s,c;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i=r(this.keyStores),n.prev=1,i.s();case 3:if((o=i.n()).done){n.next=12;break}return s=o.value,n.next=7,s.getKey(e,t);case 7:if(!(c=n.sent)){n.next=10;break}return n.abrupt("return",c);case 10:n.next=3;break;case 12:n.next=17;break;case 14:n.prev=14,n.t0=n.catch(1),i.e(n.t0);case 17:return n.prev=17,i.f(),n.finish(17);case 20:return n.abrupt("return",null);case 21:case"end":return n.stop()}}),n,this,[[1,14,17,20]])})))}},{key:"removeKey",value:function(e,t){return u(this,void 0,void 0,a().mark((function n(){var i,o,s;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i=r(this.keyStores),n.prev=1,i.s();case 3:if((o=i.n()).done){n.next=9;break}return s=o.value,n.next=7,s.removeKey(e,t);case 7:n.next=3;break;case 9:n.next=14;break;case 11:n.prev=11,n.t0=n.catch(1),i.e(n.t0);case 14:return n.prev=14,i.f(),n.finish(14);case 17:case"end":return n.stop()}}),n,this,[[1,11,14,17]])})))}},{key:"clear",value:function(){return u(this,void 0,void 0,a().mark((function e(){var t,n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r(this.keyStores),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.clear();case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])})))}},{key:"getNetworks",value:function(){return u(this,void 0,void 0,a().mark((function e(){var t,n,i,o,s,c,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=new Set,n=r(this.keyStores),e.prev=2,n.s();case 4:if((i=n.n()).done){e.next=14;break}return o=i.value,e.t0=r,e.next=9,o.getNetworks();case 9:e.t1=e.sent,s=(0,e.t0)(e.t1);try{for(s.s();!(c=s.n()).done;)u=c.value,t.add(u)}catch(e){s.e(e)}finally{s.f()}case 12:e.next=4;break;case 14:e.next=19;break;case 16:e.prev=16,e.t2=e.catch(2),n.e(e.t2);case 19:return e.prev=19,n.f(),e.finish(19);case 22:return e.abrupt("return",Array.from(t));case 23:case"end":return e.stop()}}),e,this,[[2,16,19,22]])})))}},{key:"getAccounts",value:function(e){return u(this,void 0,void 0,a().mark((function t(){var n,i,o,s,c,u,f;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=new Set,i=r(this.keyStores),t.prev=2,i.s();case 4:if((o=i.n()).done){t.next=14;break}return s=o.value,t.t0=r,t.next=9,s.getAccounts(e);case 9:t.t1=t.sent,c=(0,t.t0)(t.t1);try{for(c.s();!(u=c.n()).done;)f=u.value,n.add(f)}catch(e){c.e(e)}finally{c.f()}case 12:t.next=4;break;case 14:t.next=19;break;case 16:t.prev=16,t.t2=t.catch(2),i.e(t.t2);case 19:return t.prev=19,i.f(),t.finish(19);case 22:return t.abrupt("return",Array.from(n));case 23:case"end":return t.stop()}}),t,this,[[2,16,19,22]])})))}},{key:"toString",value:function(){return"MergeKeyStore(".concat(this.keyStores.join(", "),")")}}]),n}(n(87739).KeyStore);t.MergeKeyStore=f},96228:function(e,t,n){"use strict";var r=n(63333).default,a=n(63298).default,i=n(51795).default,o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Near=void 0;var c=s(n(7134)),u=n(8128),f=n(613),d=n(61690),l=function(){function e(t){if(a(this,e),this.config=t,this.connection=f.Connection.fromConfig({networkId:t.networkId,provider:{type:"JsonRpcProvider",args:{url:t.nodeUrl,headers:t.headers}},signer:t.signer||{type:"InMemorySigner",keyStore:t.keyStore},jsvmAccountId:t.jsvmAccountId||"jsvm.".concat(t.networkId)}),t.masterAccount){var n=t.initialBalance?new c.default(t.initialBalance):new c.default("500000000000000000000000000");this.accountCreator=new d.LocalAccountCreator(new u.Account(this.connection,t.masterAccount),n)}else t.helperUrl?this.accountCreator=new d.UrlAccountCreator(this.connection,t.helperUrl):this.accountCreator=null}return i(e,[{key:"account",value:function(e){return o(this,void 0,void 0,r().mark((function t(){var n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new u.Account(this.connection,e),t.abrupt("return",n);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"createAccount",value:function(e,t){return o(this,void 0,void 0,r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.accountCreator){n.next=2;break}throw new Error("Must specify account creator, either via masterAccount or helperUrl configuration settings.");case 2:return n.next=4,this.accountCreator.createAccount(e,t);case 4:return n.abrupt("return",new u.Account(this.connection,e));case 5:case"end":return n.stop()}}),n,this)})))}}]),e}();t.Near=l},2375:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorContext=t.TypedError=t.getTransactionLastResult=t.FinalExecutionStatusBasic=t.JsonRpcProvider=t.Provider=void 0;var r=n(91030);Object.defineProperty(t,"Provider",{enumerable:!0,get:function(){return r.Provider}}),Object.defineProperty(t,"getTransactionLastResult",{enumerable:!0,get:function(){return r.getTransactionLastResult}}),Object.defineProperty(t,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return r.FinalExecutionStatusBasic}});var a=n(64162);Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return a.JsonRpcProvider}}),Object.defineProperty(t,"TypedError",{enumerable:!0,get:function(){return a.TypedError}}),Object.defineProperty(t,"ErrorContext",{enumerable:!0,get:function(){return a.ErrorContext}})},64162:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(63333).default,i=n(63298).default,o=n(51795).default,s=n(17964).default,c=n(54790).default,u=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},f=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a2&&void 0!==arguments[2]?arguments[2]:"";return u(this,void 0,void 0,a().mark((function r(){var i,o;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=t.finality,o=t.blockId,r.abrupt("return",this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"data_changes",account_ids:e,key_prefix_base64:n,block_id:o,finality:i}));case 3:case"end":return r.stop()}}),r,this)})))}},{key:"contractCodeChanges",value:function(e,t){return u(this,void 0,void 0,a().mark((function n(){var r,i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.finality,i=t.blockId,n.abrupt("return",this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"contract_code_changes",account_ids:e,block_id:i,finality:r}));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"gasPrice",value:function(e){return u(this,void 0,void 0,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sendJsonRpc("gas_price",[e]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"sendJsonRpc",value:function(e,t){return u(this,void 0,void 0,a().mark((function n(){var r,i,o=this;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,y.default)(500,12,1.5,(function(){return u(o,void 0,void 0,a().mark((function n(){var r,i,o;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,r={method:e,params:t,id:v++,jsonrpc:"2.0"},n.next=4,(0,p.fetchJson)(this.connection,JSON.stringify(r));case 4:if(!(i=n.sent).error){n.next=16;break}if("object"!=typeof i.error.data){n.next=12;break}if("string"!=typeof i.error.data.error_message||"string"!=typeof i.error.data.error_type){n.next=9;break}throw new b.TypedError(i.error.data.error_message,i.error.data.error_type);case 9:throw(0,m.parseRpcError)(i.error.data);case 12:if(o="[".concat(i.error.code,"] ").concat(i.error.message,": ").concat(i.error.data),"Timeout"!==i.error.data&&!o.includes("Timeout error")&&!o.includes("query has timed out")){n.next=15;break}throw new b.TypedError(o,"TimeoutError");case 15:throw new b.TypedError(o,i.error.name);case 16:return n.abrupt("return",i);case 19:if(n.prev=19,n.t0=n.catch(0),"TimeoutError"!==n.t0.type){n.next=24;break}return{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ENV:"TESTNET",REACT_APP_WORMHOLE_EXPLORER:"https://wormhole.com/explorer/",REACT_APP_WORMHOLE_API:"https://api.testnet.wormscan.io/",REACT_APP_ATTEST_URL:"https://wormhole-foundation.github.io/example-token-bridge-ui/#/register",REACT_APP_GOERLI_RPC:"https://eth-goerli.g.alchemy.com/v2/XQqFfT_fJhn5TE69ZLfne8Kni4k8E0sw"}.NEAR_NO_LOGS||console.warn("Retrying request to ".concat(e," as it has timed out"),t),n.abrupt("return",null);case 24:throw n.t0;case 25:case"end":return n.stop()}}),n,this,[[0,19]])})))}));case 2:if(r=n.sent,void 0!==(i=r.result)){n.next=6;break}throw new b.TypedError("Exceeded ".concat(12," attempts for request to ").concat(e,"."),"RetriesExceeded");case 6:return n.abrupt("return",i);case 7:case"end":return n.stop()}}),n)})))}}]),n}(l.Provider);t.JsonRpcProvider=g},91030:function(e,t,n){"use strict";var r,a,i,o=n(62332).Buffer,s=n(51795).default,c=n(63298).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionLastResult=t.Provider=t.IdType=t.FinalExecutionStatusBasic=t.ExecutionStatusBasic=void 0,(i=t.ExecutionStatusBasic||(t.ExecutionStatusBasic={})).Unknown="Unknown",i.Pending="Pending",i.Failure="Failure",(a=t.FinalExecutionStatusBasic||(t.FinalExecutionStatusBasic={})).NotStarted="NotStarted",a.Started="Started",a.Failure="Failure",(r=t.IdType||(t.IdType={})).Transaction="transaction",r.Receipt="receipt";var u=s((function e(){c(this,e)}));t.Provider=u,t.getTransactionLastResult=function(e){if("object"==typeof e.status&&"string"==typeof e.status.SuccessValue){var t=o.from(e.status.SuccessValue,"base64").toString();try{return JSON.parse(t)}catch(e){return t}}return null}},6809:function(e,t,n){"use strict";var r=n(63333).default,a=n(17964).default,i=n(54790).default,o=n(51795).default,s=n(63298).default,c=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InMemorySigner=t.Signer=void 0;var f=u(n(25748)),d=n(8032),l=n(23947),p=o((function e(){s(this,e)}));t.Signer=p;var b=function(e){a(n,e);var t=i(n);function n(e){var r;return s(this,n),(r=t.call(this)).keyStore=e,r}return o(n,[{key:"createKey",value:function(e,t){return c(this,void 0,void 0,r().mark((function n(){var a;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=d.KeyPair.fromRandom("ed25519"),n.next=3,this.keyStore.setKey(t,e,a);case 3:return n.abrupt("return",a.getPublicKey());case 4:case"end":return n.stop()}}),n,this)})))}},{key:"getPublicKey",value:function(e,t){return c(this,void 0,void 0,r().mark((function n(){var a;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.keyStore.getKey(t,e);case 2:if(null!==(a=n.sent)){n.next=5;break}return n.abrupt("return",null);case 5:return n.abrupt("return",a.getPublicKey());case 6:case"end":return n.stop()}}),n,this)})))}},{key:"signMessage",value:function(e,t,n){return c(this,void 0,void 0,r().mark((function a(){var i,o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=new Uint8Array(f.default.sha256.array(e)),t){r.next=3;break}throw new Error("InMemorySigner requires provided account id");case 3:return r.next=5,this.keyStore.getKey(n,t);case 5:if(null!==(o=r.sent)){r.next=8;break}throw new Error("Key for ".concat(t," not found in ").concat(n));case 8:return r.abrupt("return",o.sign(i));case 9:case"end":return r.stop()}}),a,this)})))}},{key:"toString",value:function(){return"InMemorySigner(".concat(this.keyStore,")")}}],[{key:"fromKeyPair",value:function(e,t,a){return c(this,void 0,void 0,r().mark((function i(){var o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=new l.InMemoryKeyStore,r.next=3,o.setKey(e,t,a);case 3:return r.abrupt("return",new n(o));case 4:case"end":return r.stop()}}),i)})))}}]),n}(p);t.InMemorySigner=b},22850:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(63333).default,i=n(51795).default,o=n(63298).default,s=n(17964).default,c=n(54790).default,u=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.signTransaction=t.createTransaction=t.SCHEMA=t.Action=t.SignedTransaction=t.Transaction=t.Signature=t.deleteAccount=t.deleteKey=t.addKey=t.stake=t.transfer=t.functionCall=t.stringifyJsonOrBytes=t.deployContract=t.createAccount=t.DeleteAccount=t.DeleteKey=t.AddKey=t.Stake=t.Transfer=t.FunctionCall=t.DeployContract=t.CreateAccount=t.IAction=t.functionCallAccessKey=t.fullAccessKey=t.AccessKey=t.AccessKeyPermission=t.FullAccessPermission=t.FunctionCallPermission=void 0;var d=f(n(25748)),l=n(22083),p=n(95208),b=n(8032),h=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(l.Assignable);t.FunctionCallPermission=h;var y=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(l.Assignable);t.FullAccessPermission=y;var m=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(l.Enum);t.AccessKeyPermission=m;var v=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(l.Assignable);t.AccessKey=v,t.fullAccessKey=function(){return new v({permission:new m({fullAccess:new y({})})})},t.functionCallAccessKey=function(e,t,n){return new v({permission:new m({functionCall:new h({receiverId:e,allowance:n,methodNames:t})})})};var g=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(l.Assignable);t.IAction=g;var A=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);t.CreateAccount=A;var w=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);t.DeployContract=w;var x=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);t.FunctionCall=x;var _=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);t.Transfer=_;var k=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);t.Stake=k;var S=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);t.AddKey=S;var I=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);t.DeleteKey=I;var E=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);function C(e){return void 0!==e.byteLength&&e.byteLength===e.length?e:r.from(JSON.stringify(e))}t.DeleteAccount=E,t.createAccount=function(){return new M({createAccount:new A({})})},t.deployContract=function(e){return new M({deployContract:new w({code:e})})},t.stringifyJsonOrBytes=C,t.functionCall=function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:C;return new M(arguments.length>5&&void 0!==arguments[5]&&arguments[5]?{functionCall:new x({methodName:e,args:t,gas:n,deposit:r})}:{functionCall:new x({methodName:e,args:a(t),gas:n,deposit:r})})},t.transfer=function(e){return new M({transfer:new _({deposit:e})})},t.stake=function(e,t){return new M({stake:new k({stake:e,publicKey:t})})},t.addKey=function(e,t){return new M({addKey:new S({publicKey:e,accessKey:t})})},t.deleteKey=function(e){return new M({deleteKey:new I({publicKey:e})})},t.deleteAccount=function(e){return new M({deleteAccount:new E({beneficiaryId:e})})};var T=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(l.Assignable);t.Signature=T;var O=function(e){s(r,e);var n=c(r);function r(){return o(this,r),n.apply(this,arguments)}return i(r,[{key:"encode",value:function(){return(0,p.serialize)(t.SCHEMA,this)}}],[{key:"decode",value:function(e){return(0,p.deserialize)(t.SCHEMA,r,e)}}]),r}(l.Assignable);t.Transaction=O;var P=function(e){s(r,e);var n=c(r);function r(){return o(this,r),n.apply(this,arguments)}return i(r,[{key:"encode",value:function(){return(0,p.serialize)(t.SCHEMA,this)}}],[{key:"decode",value:function(e){return(0,p.deserialize)(t.SCHEMA,r,e)}}]),r}(l.Assignable);t.SignedTransaction=P;var M=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(l.Enum);function B(e,t,n,r,a,i){return new O({signerId:e,publicKey:t,nonce:r,receiverId:n,actions:a,blockHash:i})}function R(e,n,r,i){return u(this,void 0,void 0,a().mark((function o(){var s,c,u,f;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=(0,p.serialize)(t.SCHEMA,e),c=new Uint8Array(d.default.sha256.array(s)),a.next=4,n.signMessage(s,r,i);case 4:return u=a.sent,f=new P({transaction:e,signature:new T({keyType:e.publicKey.keyType,data:u.signature})}),a.abrupt("return",[c,f]);case 7:case"end":return a.stop()}}),o)})))}t.Action=M,t.SCHEMA=new Map([[T,{kind:"struct",fields:[["keyType","u8"],["data",[64]]]}],[P,{kind:"struct",fields:[["transaction",O],["signature",T]]}],[O,{kind:"struct",fields:[["signerId","string"],["publicKey",b.PublicKey],["nonce","u64"],["receiverId","string"],["blockHash",[32]],["actions",[M]]]}],[b.PublicKey,{kind:"struct",fields:[["keyType","u8"],["data",[32]]]}],[v,{kind:"struct",fields:[["nonce","u64"],["permission",m]]}],[m,{kind:"enum",field:"enum",values:[["functionCall",h],["fullAccess",y]]}],[h,{kind:"struct",fields:[["allowance",{kind:"option",type:"u128"}],["receiverId","string"],["methodNames",["string"]]]}],[y,{kind:"struct",fields:[]}],[M,{kind:"enum",field:"enum",values:[["createAccount",A],["deployContract",w],["functionCall",x],["transfer",_],["stake",k],["addKey",S],["deleteKey",I],["deleteAccount",E]]}],[A,{kind:"struct",fields:[]}],[w,{kind:"struct",fields:[["code",["u8"]]]}],[x,{kind:"struct",fields:[["methodName","string"],["args",["u8"]],["gas","u64"],["deposit","u128"]]}],[_,{kind:"struct",fields:[["deposit","u128"]]}],[k,{kind:"struct",fields:[["stake","u128"],["publicKey",b.PublicKey]]}],[S,{kind:"struct",fields:[["publicKey",b.PublicKey],["accessKey",v]]}],[I,{kind:"struct",fields:[["publicKey",b.PublicKey]]}],[E,{kind:"struct",fields:[["beneficiaryId","string"]]}]]),t.createTransaction=B,t.signTransaction=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:t.NEAR_NOMINATION_EXP,r=new a.default(e,10);if(n!==t.NEAR_NOMINATION_EXP){var o=t.NEAR_NOMINATION_EXP-n-1;o>0&&r.iadd(i[o])}var s=(e=r.toString()).substring(0,e.length-t.NEAR_NOMINATION_EXP)||"0",c=e.substring(e.length-t.NEAR_NOMINATION_EXP).padStart(t.NEAR_NOMINATION_EXP,"0").substring(0,n);return"".concat(function(e){for(var t=/(-?\d+)(\d{3})/;t.test(e);)e=e.replace(t,"$1,$2");return e}(s),".").concat(c).replace(/\.?0*$/,"")},t.parseNearAmount=function(e){if(!e)return null;var n,r=(e=e.replace(/,/g,"").trim()).split("."),a=r[0],i=r[1]||"";if(r.length>2||i.length>t.NEAR_NOMINATION_EXP)throw new Error("Cannot parse '".concat(e,"' as NEAR amount"));return""===(n=(n=a+i.padEnd(t.NEAR_NOMINATION_EXP,"0")).replace(/^0+/,""))?"0":n}},9937:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.logWarning=t.rpc_errors=t.KeyPairEd25519=t.KeyPair=t.PublicKey=t.format=t.enums=t.web=t.serialize=t.key_pair=void 0;var o=i(n(8032));t.key_pair=o;var s=i(n(83264));t.serialize=s;var c=i(n(14728));t.web=c;var u=i(n(22083));t.enums=u;var f=i(n(84418));t.format=f;var d=i(n(71027));t.rpc_errors=d;var l=n(8032);Object.defineProperty(t,"PublicKey",{enumerable:!0,get:function(){return l.PublicKey}}),Object.defineProperty(t,"KeyPair",{enumerable:!0,get:function(){return l.KeyPair}}),Object.defineProperty(t,"KeyPairEd25519",{enumerable:!0,get:function(){return l.KeyPairEd25519}});var p=n(52717);Object.defineProperty(t,"logWarning",{enumerable:!0,get:function(){return p.logWarning}})},8032:function(e,t,n){"use strict";var r=n(63298).default,a=n(51795).default,i=n(17964).default,o=n(54790).default,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyPairEd25519=t.KeyPair=t.PublicKey=t.KeyType=void 0;var c,u=s(n(13691)),f=n(83264),d=n(22083);function l(e){if("ed25519"===e.toLowerCase())return c.ED25519;throw new Error("Unknown key type ".concat(e))}!function(e){e[e.ED25519=0]="ED25519"}(c=t.KeyType||(t.KeyType={}));var p=function(e){i(n,e);var t=o(n);function n(){return r(this,n),t.apply(this,arguments)}return a(n,[{key:"toString",value:function(){return"".concat(function(e){if(e===c.ED25519)return"ed25519";throw new Error("Unknown key type ".concat(e))}(this.keyType),":").concat((0,f.base_encode)(this.data))}},{key:"verify",value:function(e,t){if(this.keyType===c.ED25519)return u.default.sign.detached.verify(e,t,this.data);throw new Error("Unknown key type ".concat(this.keyType))}}],[{key:"from",value:function(e){return"string"==typeof e?n.fromString(e):e}},{key:"fromString",value:function(e){var t=e.split(":");if(1===t.length)return new n({keyType:c.ED25519,data:(0,f.base_decode)(t[0])});if(2===t.length)return new n({keyType:l(t[0]),data:(0,f.base_decode)(t[1])});throw new Error("Invalid encoded key format, must be :")}}]),n}(d.Assignable);t.PublicKey=p;var b=function(){function e(){r(this,e)}return a(e,null,[{key:"fromRandom",value:function(e){if("ED25519"===e.toUpperCase())return h.fromRandom();throw new Error("Unknown curve ".concat(e))}},{key:"fromString",value:function(e){var t=e.split(":");if(1===t.length)return new h(t[0]);if(2===t.length){if("ED25519"===t[0].toUpperCase())return new h(t[1]);throw new Error("Unknown curve: ".concat(t[0]))}throw new Error("Invalid encoded key format, must be :")}}]),e}();t.KeyPair=b;var h=function(e){i(n,e);var t=o(n);function n(e){var a;r(this,n),a=t.call(this);var i=u.default.sign.keyPair.fromSecretKey((0,f.base_decode)(e));return a.publicKey=new p({keyType:c.ED25519,data:i.publicKey}),a.secretKey=e,a}return a(n,[{key:"sign",value:function(e){return{signature:u.default.sign.detached(e,(0,f.base_decode)(this.secretKey)),publicKey:this.publicKey}}},{key:"verify",value:function(e,t){return this.publicKey.verify(e,t)}},{key:"toString",value:function(){return"ed25519:".concat(this.secretKey)}},{key:"getPublicKey",value:function(){return this.publicKey}}],[{key:"fromRandom",value:function(){var e=u.default.sign.keyPair();return new n((0,f.base_encode)(e.secretKey))}}]),n}(b);t.KeyPairEd25519=h},71027:function(e,t,n){"use strict";var r=n(51795).default,a=n(63298).default,i=n(17964).default,o=n(54790).default,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.formatError=t.parseResultError=t.parseRpcError=t.ServerError=void 0;var c=s(n(41377)),u=s(n(70042)),f=s(n(53664)),d=n(29911),l=n(52717),p={formatNear:function(){return function(e,t){return d.utils.format.formatNearAmount(t(e))}}},b=function(e){i(n,e);var t=o(n);function n(){return a(this,n),t.apply(this,arguments)}return r(n)}(l.TypedError);t.ServerError=b;var h=function(e){i(n,e);var t=o(n);function n(){return a(this,n),t.apply(this,arguments)}return r(n)}(b);function y(e){var t={},n=v(e,u.default.schema,t,""),r=new b(m(n,t),n);return Object.assign(r,t),r}function m(e,t){return"string"==typeof f.default[e]?c.default.render(f.default[e],Object.assign(Object.assign({},t),p)):JSON.stringify(t)}function v(e,t,n,r){var a,i,o,s;for(var c in t){if(s=e[c],"[object String]"===Object.prototype.toString.call(s))return e[c];if(g(e[c]))a=e[c],i=t[c],o=c;else{if(!g(e.kind)||!g(e.kind[c]))continue;a=e.kind[c],i=t[c],o=c}}if(a&&i){for(var u=0,f=Object.keys(i.props);u1)for(var n=1;n "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u,f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},d=function(){return a.Buffer?function(e){return(c.create=function(e){return a.Buffer.isBuffer(e)?new r(e):f(e)})(e)}:f};function l(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function p(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function b(){if(this.pos+8>this.len)throw s(this,8);return new i(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}c.create=d(),c.prototype._slice=a.Array.prototype.subarray||a.Array.prototype.slice,c.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return u}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return p(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|p(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=a.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=a.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return o.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){r=e,c.create=d(),r._configure();var t=a.Long?"toLong":"toNumber";a.merge(c.prototype,{int64:function(){return l.call(this)[t](!1)},uint64:function(){return l.call(this)[t](!0)},sint64:function(){return l.call(this).zzDecode()[t](!1)},fixed64:function(){return b.call(this)[t](!0)},sfixed64:function(){return b.call(this)[t](!1)}})}},61652:function(e,t,n){"use strict";e.exports=i;var r=n(43578);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(32428);function i(e){r.call(this,e)}i._configure=function(){a.Buffer&&(i.prototype._slice=a.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},38530:function(e){"use strict";e.exports={}},22245:function(e,t,n){"use strict";t.Service=n(47825)},47825:function(e,t,n){"use strict";e.exports=a;var r=n(32428);function a(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(a.prototype=Object.create(r.EventEmitter.prototype)).constructor=a,a.prototype.rpcCall=function e(t,n,a,i,o){if(!i)throw TypeError("request must be specified");var s=this;if(!o)return r.asPromise(e,s,t,n,a,i);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,n){if(e)return s.emit("error",e,t),o(e);if(null!==n){if(!(n instanceof a))try{n=a[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),o(e)}return s.emit("data",n,t),o(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){o(e)}),0)}else setTimeout((function(){o(Error("already ended"))}),0)},a.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},64876:function(e,t,n){"use strict";e.exports=a;var r=n(32428);function a(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=a.zero=new a(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var o=a.zeroHash="\0\0\0\0\0\0\0\0";a.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new a(n,r)},a.from=function(e){if("number"==typeof e)return a.fromNumber(e);if(r.isString(e)){if(!r.Long)return a.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new a(e.low>>>0,e.high>>>0):i},a.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},a.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;a.fromHash=function(e){return e===o?i:new a((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},a.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},a.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},a.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},a.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},32428:function(e,t,n){"use strict";var r=t;function a(e,t,n){for(var r=Object.keys(t),a=0;a0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=a,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function y(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}d.create=l(),d.alloc=function(e){return new a.Array(e)},a.Array!==Array&&(d.alloc=a.pool(d.alloc,a.Array.prototype.subarray)),d.prototype._push=function(e,t,n){return this.tail=this.tail.next=new c(e,t,n),this.len+=t,this},b.prototype=Object.create(c.prototype),b.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},d.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new b((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},d.prototype.int32=function(e){return e<0?this._push(h,10,i.fromNumber(e)):this.uint32(e)},d.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},d.prototype.uint64=function(e){var t=i.from(e);return this._push(h,t.length(),t)},d.prototype.int64=d.prototype.uint64,d.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(h,t.length(),t)},d.prototype.bool=function(e){return this._push(p,1,e?1:0)},d.prototype.fixed32=function(e){return this._push(y,4,e>>>0)},d.prototype.sfixed32=d.prototype.fixed32,d.prototype.fixed64=function(e){var t=i.from(e);return this._push(y,4,t.lo)._push(y,4,t.hi)},d.prototype.sfixed64=d.prototype.fixed64,d.prototype.float=function(e){return this._push(a.float.writeFloatLE,4,e)},d.prototype.double=function(e){return this._push(a.float.writeDoubleLE,8,e)};var m=a.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(p,1,0);if(a.isString(e)){var n=d.alloc(t=o.length(e));o.decode(e,n,0),e=n}return this.uint32(t)._push(m,t,e)},d.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(p,1,0)},d.prototype.fork=function(){return this.states=new f(this),this.head=this.tail=new c(u,0,0),this.len=0,this},d.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},d.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},d.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},d._configure=function(e){r=e,d.create=l(),r._configure()}},10974:function(e,t,n){"use strict";e.exports=i;var r=n(38573);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(32428);function i(){r.call(this)}function o(e,t,n){e.length<40?a.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i._configure=function(){i.alloc=a._Buffer_allocUnsafe,i.writeBytesBuffer=a.Buffer&&a.Buffer.prototype instanceof Uint8Array&&"set"===a.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=a.Buffer.byteLength(e);return this.uint32(t),t&&this._push(o,t,e),this},i._configure()},12711:function(e,t,n){"use strict";var r=n(43800),a=65536,i=n(96912).Buffer,o=n.g.crypto||n.g.msCrypto;o&&o.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>a)for(var s=0;s2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){var a,i,o,s,c;if("string"==typeof t&&(i="not ",t.substr(0,i.length)===i)?(a="must not be",t=t.replace(/^not /,"")):a="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))o="The ".concat(e," ").concat(a," ").concat(r(t,"type"));else{var u=("number"!=typeof c&&(c=0),c+".".length>(s=e).length||-1===s.indexOf(".",c)?"argument":"property");o='The "'.concat(e,'" ').concat(u," ").concat(a," ").concat(r(t,"type"))}return o+". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},69911:function(e,t,n){"use strict";var r=n(43800),a=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var i=n(34268),o=n(59075);n(13786)(f,i);for(var s=a(o.prototype),c=0;c0)if("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r)s.endEmitted?x(e,new w):E(e,s,t,!0);else if(s.ended)x(e,new g);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(t=s.decoder.write(t),s.objectMode||0!==t.length?E(e,s,t,!1):M(e,s)):E(e,s,t,!1)}else r||(s.reading=!1,M(e,s));return!s.ended&&(s.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=C?e=C:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;i("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(i("emitReadable",t.flowing),t.emittedReadable=!0,a.nextTick(P,e))}function P(e){var t=e._readableState;i("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,j(e)}function M(e,t){t.readingMore||(t.readingMore=!0,a.nextTick(B,e,t))}function B(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function N(e){i("readable nexttick read 0"),e.read(0)}function D(e,t){i("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(i("flow",t.flowing);t.flowing&&null!==e.read(););}function U(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function L(e){var t=e._readableState;i("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,a.nextTick(Z,t,e))}function Z(e,t){if(i("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function F(e,t){for(var n=0,r=e.length;n=t.highWaterMark:t.length>0)||t.ended))return i("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):O(this),null;if(0===(e=T(e,t))&&t.ended)return 0===t.length&&L(this),null;var r,a=t.needReadable;return i("need readable",a),(0===t.length||t.length-e0?U(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&L(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){x(this,new A("_read()"))},S.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,i("pipe count=%d opts=%j",r.pipesCount,t);var s=t&&!1===t.end||e===a.stdout||e===a.stderr?h:c;function c(){i("onend"),e.end()}r.endEmitted?a.nextTick(s):n.once("end",s),e.on("unpipe",(function t(a,o){i("onunpipe"),a===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,i("cleanup"),e.removeListener("close",p),e.removeListener("finish",b),e.removeListener("drain",u),e.removeListener("error",l),e.removeListener("unpipe",t),n.removeListener("end",c),n.removeListener("end",h),n.removeListener("data",d),f=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}));var u=function(e){return function(){var t=e._readableState;i("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,j(e))}}(n);e.on("drain",u);var f=!1;function d(t){i("ondata");var a=e.write(t);i("dest.write",a),!1===a&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==F(r.pipes,e))&&!f&&(i("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function l(t){i("onerror",t),h(),e.removeListener("error",l),0===o(e,"error")&&x(e,t)}function p(){e.removeListener("finish",b),h()}function b(){i("onfinish"),e.removeListener("close",p),h()}function h(){i("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",l),e.once("close",p),e.once("finish",b),e.emit("pipe",n),r.flowing||(i("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,i("on readable",r.length,r.reading),r.length?O(this):r.reading||a.nextTick(N,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=s.prototype.removeListener.call(this,e,t);return"readable"===e&&a.nextTick(R,this),n},S.prototype.removeAllListeners=function(e){var t=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||a.nextTick(R,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(i("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,a.nextTick(D,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var a in e.on("end",(function(){if(i("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(a){i("wrapped data"),n.decoder&&(a=n.decoder.write(a)),n.objectMode&&null==a||(n.objectMode||a&&a.length)&&(t.push(a)||(r=!0,e.pause()))})),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(t){return function(){return e[t].apply(e,arguments)}}(a));for(var o=0;o<_.length;o++)e.on(_[o],this.emit.bind(this,_[o]));return this._read=function(t){i("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=n(1957)),l(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=U,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===p&&(p=n(10809)),p(S,e,t)})},50948:function(e,t,n){"use strict";e.exports=f;var r=n(81865).q,a=r.ERR_METHOD_NOT_IMPLEMENTED,i=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=n(69911);function u(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new i);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new h("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,P(e,t),n&&(t.finished?a.nextTick(n):e.once("finish",n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=d.destroy,S.prototype._undestroy=d.undestroy,S.prototype._destroy=function(e,t){t(e)}},1957:function(e,t,n){"use strict";var r,a=n(43800);function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(60872),s=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),d=Symbol("lastPromise"),l=Symbol("handlePromise"),p=Symbol("stream");function b(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(null!==t){var n=e[p].read();null!==n&&(e[d]=null,e[s]=null,e[c]=null,t(b(n,!1)))}}function y(e){a.nextTick(h,e)}var m=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(r={get stream(){return this[p]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[f])return Promise.resolve(b(void 0,!0));if(this[p].destroyed)return new Promise((function(t,n){a.nextTick((function(){e[u]?n(e[u]):t(b(void 0,!0))}))}));var n,r=this[d];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[f]?n(b(void 0,!0)):t[l](n,r)}),r)}}(r,this));else{var i=this[p].read();if(null!==i)return Promise.resolve(b(i,!1));n=new Promise(this[l])}return this[d]=n,n}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(b(void 0,!0))}))}))})),r),m);e.exports=function(e){var t,n=Object.create(v,(i(t={},p,{value:e,writable:!0}),i(t,s,{value:null,writable:!0}),i(t,c,{value:null,writable:!0}),i(t,u,{value:null,writable:!0}),i(t,f,{value:e._readableState.endEmitted,writable:!0}),i(t,l,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(b(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[c];return null!==t&&(n[d]=null,n[s]=null,n[c]=null,t(e)),void(n[u]=e)}var r=n[s];null!==r&&(n[d]=null,n[s]=null,n[c]=null,r(b(void 0,!0))),n[f]=!0})),e.on("readable",y.bind(null,n)),n}},76990:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t,n,r,a=c.allocUnsafe(e>>>0),i=this.head,o=0;i;)t=i.data,n=a,r=o,c.prototype.copy.call(t,n,r),o+=i.data.length,i=i.next;return a}},{key:"consume",value:function(e,t){var n;return ea.length?a.length:e;if(i===a.length?r+=a:r+=a.slice(0,e),0==(e-=i)){i===a.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(i));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var a=n.data,i=e>a.length?a.length:e;if(a.copy(t,t.length-e,0,i),0==(e-=i)){i===a.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=a.slice(i));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return u(this,a(a({},t),{},{depth:0,customInspect:!1}))}}])&&o(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},48972:function(e,t,n){"use strict";var r=n(43800);function a(e,t){o(e,t),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(i,n):(n._writableState.errorEmitted=!0,r.nextTick(a,n,e)):r.nextTick(a,n,e):t?(r.nextTick(i,n),t(e)):r.nextTick(i,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},60872:function(e,t,n){"use strict";var r=n(81865).q.ERR_STREAM_PREMATURE_CLOSE;function a(){}e.exports=function e(t,n,i){if("function"==typeof n)return e(t,null,n);n||(n={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),a=0;a0,(function(e){f||(f=e),e&&l.forEach(c),i||(l.forEach(c),d(f))}))}));return t.reduce(u)}},62552:function(e,t,n){"use strict";var r=n(81865).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,a){var i=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,a,n);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new r(a?n:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},83503:function(e,t,n){e.exports=n(5641).EventEmitter},24663:function(e,t,n){(t=e.exports=n(34268)).Stream=t,t.Readable=t,t.Writable=n(59075),t.Duplex=n(69911),t.Transform=n(50948),t.PassThrough=n(35464),t.finished=n(60872),t.pipeline=n(82438)},42835:function(e,t,n){"use strict";var r=n(62332).Buffer,a=n(13786),i=n(25826),o=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],f=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],l=[1352829926,1548603684,1836072691,2053994217,0];function p(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function b(e,t){return e<>>32-t}function h(e,t,n,r,a,i,o,s){return b(e+(t^n^r)+i+o|0,s)+a|0}function y(e,t,n,r,a,i,o,s){return b(e+(t&n|~t&r)+i+o|0,s)+a|0}function m(e,t,n,r,a,i,o,s){return b(e+((t|~n)^r)+i+o|0,s)+a|0}function v(e,t,n,r,a,i,o,s){return b(e+(t&r|n&~r)+i+o|0,s)+a|0}function g(e,t,n,r,a,i,o,s){return b(e+(t^(n|~r))+i+o|0,s)+a|0}a(p,i),p.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,a=0|this._c,i=0|this._d,p=0|this._e,A=0|this._a,w=0|this._b,x=0|this._c,_=0|this._d,k=0|this._e,S=0;S<80;S+=1){var I,E;S<16?(I=h(n,r,a,i,p,e[s[S]],d[0],u[S]),E=g(A,w,x,_,k,e[c[S]],l[0],f[S])):S<32?(I=y(n,r,a,i,p,e[s[S]],d[1],u[S]),E=v(A,w,x,_,k,e[c[S]],l[1],f[S])):S<48?(I=m(n,r,a,i,p,e[s[S]],d[2],u[S]),E=m(A,w,x,_,k,e[c[S]],l[2],f[S])):S<64?(I=v(n,r,a,i,p,e[s[S]],d[3],u[S]),E=y(A,w,x,_,k,e[c[S]],l[3],f[S])):(I=g(n,r,a,i,p,e[s[S]],d[4],u[S]),E=h(A,w,x,_,k,e[c[S]],l[4],f[S])),n=p,p=i,i=b(a,10),a=r,r=I,A=k,k=_,_=b(x,10),x=w,w=E}var C=this._b+a+_|0;this._b=this._c+i+k|0,this._c=this._d+p+A|0,this._d=this._e+n+w|0,this._e=this._a+r+x|0,this._a=C},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=p},42973:function(e,t,n){"use strict";var r=n(62332).Buffer,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getLength=t.decode=t.encode=void 0;var i=a(n(7134));function o(e,t){if("0"===e[0]&&"0"===e[1])throw new Error("invalid RLP: extra zeros");return parseInt(e,t)}function s(e,t){if(e<56)return r.from([e+t]);var n=f(e),a=f(t+55+n.length/2);return r.from(a+n,"hex")}function c(e){var t,n,a,i,s,u=[],f=e[0];if(f<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(f<=183){if(t=f-127,a=128===f?r.from([]):e.slice(1,t),2===t&&a[0]<128)throw new Error("invalid rlp encoding: byte must be less 0x80");return{data:a,remainder:e.slice(t)}}if(f<=191){if(n=f-182,e.length-1e.length)throw new Error("invalid rlp: total length is larger than the data");if(0===(i=e.slice(n,d)).length)throw new Error("invalid rlp, List has a invalid length");for(;i.length;)s=c(i),u.push(s.data),i=s.remainder;return{data:u,remainder:e.slice(d)}}function u(e){return"0x"===e.slice(0,2)}function f(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");var t=e.toString(16);return t.length%2?"0"+t:t}function d(e){if(!r.isBuffer(e)){if("string"==typeof e)return u(e)?r.from((n="string"!=typeof(a=e)?a:u(a)?a.slice(2):a).length%2?"0"+n:n,"hex"):r.from(e);if("number"==typeof e||"bigint"==typeof e)return e?(t=f(e),r.from(t,"hex")):r.from([]);if(null==e)return r.from([]);if(e instanceof Uint8Array)return r.from(e);if(i.default.isBN(e))return r.from(e.toArray());throw new Error("invalid type")}var t,n,a;return e}t.encode=function e(t){if(Array.isArray(t)){for(var n=[],a=0;a1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;(0,c.default)(this,m);var i=r.autoconnect,o=void 0===i||i,s=r.reconnect,u=void 0===s||s,f=r.reconnect_interval,d=void 0===f?1e3:f,l=r.max_reconnects,p=void 0===l?5:l,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);an.current_reconnects||0===n.max_reconnects)&&(n.reconnect_timer_id=setTimeout((function(){return n._connect(e,t)}),n.reconnect_interval)))}))}}]),m}(p.EventEmitter);t.Z=b},35982:function(e,t,n){"use strict";var r=n(66362);t.Z=function(e,t){return new u(e,t)};var a=r(n(26690)),i=r(n(91025)),o=r(n(62237)),s=r(n(97693)),c=r(n(22591));var u=function(e){(0,o.default)(u,e);var t,n,r=(t=u,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=(0,c.default)(t);if(n){var a=(0,c.default)(this).constructor;e=Reflect.construct(r,arguments,a)}else e=r.apply(this,arguments);return(0,s.default)(this,e)});function u(e,t,n){var i;return(0,a.default)(this,u),(i=r.call(this)).socket=new window.WebSocket(e,n),i.socket.onopen=function(){return i.emit("open")},i.socket.onmessage=function(e){return i.emit("message",e.data)},i.socket.onerror=function(e){return i.emit("error",e)},i.socket.onclose=function(e){i.emit("close",e.code,e.reason)},i}return(0,i.default)(u,[{key:"send",value:function(e,t,n){var r=n||t;try{this.socket.send(e),r()}catch(e){r(e)}}},{key:"close",value:function(e,t){this.socket.close(e,t)}},{key:"addEventListener",value:function(e,t,n){this.socket.addEventListener(e,t,n)}}]),u}(n(49277).EventEmitter)},96912:function(e,t,n){var r=n(62332),a=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return a(e,t,n)}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=o),o.prototype=Object.create(a.prototype),i(a,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=a(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},10231:function(e){"use strict";!function(t){var n=2147483647;function r(e){var t=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]),n=1779033703,r=3144134277,a=1013904242,i=2773480762,o=1359893119,s=2600822924,c=528734635,u=1541459225,f=new Uint32Array(64);function d(e){for(var d=0,l=e.length;l>=64;){var p=n,b=r,h=a,y=i,m=o,v=s,g=c,A=u,w=void 0,x=void 0,_=void 0,k=void 0,S=void 0;for(x=0;x<16;x++)_=d+4*x,f[x]=(255&e[_])<<24|(255&e[_+1])<<16|(255&e[_+2])<<8|255&e[_+3];for(x=16;x<64;x++)k=((w=f[x-2])>>>17|w<<15)^(w>>>19|w<<13)^w>>>10,S=((w=f[x-15])>>>7|w<<25)^(w>>>18|w<<14)^w>>>3,f[x]=(k+f[x-7]|0)+(S+f[x-16]|0)|0;for(x=0;x<64;x++)k=(((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&v^~m&g)|0)+(A+(t[x]+f[x]|0)|0)|0,S=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&b^p&h^b&h)|0,A=g,g=v,v=m,m=y+k|0,y=h,h=b,b=p,p=k+S|0;n=n+p|0,r=r+b|0,a=a+h|0,i=i+y|0,o=o+m|0,s=s+v|0,c=c+g|0,u=u+A|0,d+=64,l-=64}}d(e);var l,p=e.length%64,b=e.length/536870912|0,h=e.length<<3,y=p<56?56:120,m=e.slice(e.length-p,e.length);for(m.push(128),l=p+1;l>>24&255),m.push(b>>>16&255),m.push(b>>>8&255),m.push(b>>>0&255),m.push(h>>>24&255),m.push(h>>>16&255),m.push(h>>>8&255),m.push(h>>>0&255),d(m),[n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255]}function a(e,t,n){e=e.length<=64?e:r(e);var a,i=64+t.length+4,o=new Array(i),s=new Array(64),c=[];for(a=0;a<64;a++)o[a]=54;for(a=0;a=i-4;e--){if(o[e]++,o[e]<=255)return;o[e]=0}}for(;n>=32;)u(),c=c.concat(r(s.concat(r(o)))),n-=32;return n>0&&(u(),c=c.concat(r(s.concat(r(o))).slice(0,n))),c}function i(e,t,n,r,a){var i;for(u(e,16*(2*n-1),a,0,16),i=0;i<2*n;i++)c(e,16*i,a,16),s(a,r),u(a,0,e,t+16*i,16);for(i=0;i>>32-t}function s(e,t){u(e,0,t,0,16);for(var n=8;n>0;n-=2)t[4]^=o(t[0]+t[12],7),t[8]^=o(t[4]+t[0],9),t[12]^=o(t[8]+t[4],13),t[0]^=o(t[12]+t[8],18),t[9]^=o(t[5]+t[1],7),t[13]^=o(t[9]+t[5],9),t[1]^=o(t[13]+t[9],13),t[5]^=o(t[1]+t[13],18),t[14]^=o(t[10]+t[6],7),t[2]^=o(t[14]+t[10],9),t[6]^=o(t[2]+t[14],13),t[10]^=o(t[6]+t[2],18),t[3]^=o(t[15]+t[11],7),t[7]^=o(t[3]+t[15],9),t[11]^=o(t[7]+t[3],13),t[15]^=o(t[11]+t[7],18),t[1]^=o(t[0]+t[3],7),t[2]^=o(t[1]+t[0],9),t[3]^=o(t[2]+t[1],13),t[0]^=o(t[3]+t[2],18),t[6]^=o(t[5]+t[4],7),t[7]^=o(t[6]+t[5],9),t[4]^=o(t[7]+t[6],13),t[5]^=o(t[4]+t[7],18),t[11]^=o(t[10]+t[9],7),t[8]^=o(t[11]+t[10],9),t[9]^=o(t[8]+t[11],13),t[10]^=o(t[9]+t[8],18),t[12]^=o(t[15]+t[14],7),t[13]^=o(t[12]+t[15],9),t[14]^=o(t[13]+t[12],13),t[15]^=o(t[14]+t[13],18);for(var r=0;r<16;++r)e[r]+=t[r]}function c(e,t,n,r){for(var a=0;a=256)return!1}return!0}function d(e,t){if("number"!=typeof e||e%1)throw new Error("invalid "+t);return e}function l(e,t,r,o,s,l,p){if(r=d(r,"N"),o=d(o,"r"),s=d(s,"p"),l=d(l,"dkLen"),0===r||0!=(r&r-1))throw new Error("N must be power of 2");if(r>n/128/o)throw new Error("N too large");if(o>n/128/s)throw new Error("r too large");if(!f(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!f(t))throw new Error("salt must be an array or buffer");t=Array.prototype.slice.call(t);for(var b=a(e,t,128*s*o),h=new Uint32Array(32*s*o),y=0;yP&&(n=P);for(var f=0;fP&&(n=P);for(var y=0;y>0&255),b.push(h[R]>>8&255),b.push(h[R]>>16&255),b.push(h[R]>>24&255);var N=a(e,b,l);return p&&p(null,1,N),N}p&&M(t)};if(!p)for(;;){var R=B();if(null!=R)return R}B()}var p={scrypt:function(e,t,n,r,a,i,o){return new Promise((function(s,c){var u=0;o&&o(0),l(e,t,n,r,a,i,(function(e,t,n){if(e)c(e);else if(n)o&&1!==u&&o(1),s(new Uint8Array(n));else if(o&&t!==u)return u=t,o(t)}))}))},syncScrypt:function(e,t,n,r,a,i){return new Uint8Array(l(e,t,n,r,a,i))}};e.exports=p}()},40951:function(e,t,n){e.exports=n(41838)(n(27314))},27314:function(e,t,n){var r=new(0,n(35730).ec)("secp256k1"),a=r.curve,i=a.n.constructor;function o(e){var t=e[0];switch(t){case 2:case 3:return 33!==e.length?null:function(e,t){var n=new i(t);if(n.cmp(a.p)>=0)return null;var o=(n=n.toRed(a.red)).redSqr().redIMul(n).redIAdd(a.b).redSqrt();return 3===e!==o.isOdd()&&(o=o.redNeg()),r.keyPair({pub:{x:n,y:o}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,n){var o=new i(t),s=new i(n);if(o.cmp(a.p)>=0||s.cmp(a.p)>=0)return null;if(o=o.toRed(a.red),s=s.toRed(a.red),(6===e||7===e)&&s.isOdd()!==(7===e))return null;var c=o.redSqr().redIMul(o);return s.redSqr().redISub(c.redIAdd(a.b)).isZero()?r.keyPair({pub:{x:o,y:s}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function s(e,t){for(var n=t.encode(null,33===e.length),r=0;r=0)return 1;if(n.iadd(new i(e)),n.cmp(a.n)>=0&&n.isub(a.n),n.isZero())return 1;var r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakMul:function(e,t){var n=new i(t);if(n.cmp(a.n)>=0||n.isZero())return 1;n.imul(new i(e)),n.cmp(a.n)>=0&&(n=n.umod(a.n));var r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},publicKeyVerify:function(e){return null===o(e)?1:0},publicKeyCreate:function(e,t){var n=new i(t);return n.cmp(a.n)>=0||n.isZero()?1:(s(e,r.keyFromPrivate(t).getPublic()),0)},publicKeyConvert:function(e,t){var n=o(t);return null===n?1:(s(e,n.getPublic()),0)},publicKeyNegate:function(e,t){var n=o(t);if(null===n)return 1;var r=n.getPublic();return r.y=r.y.redNeg(),s(e,r),0},publicKeyCombine:function(e,t){for(var n=new Array(t.length),r=0;r=0)return 2;var c=r.getPublic().add(a.g.mul(n));return c.isInfinity()?2:(s(e,c),0)},publicKeyTweakMul:function(e,t,n){var r=o(t);return null===r?1:(n=new i(n)).cmp(a.n)>=0||n.isZero()?2:(s(e,r.getPublic().mul(n)),0)},signatureNormalize:function(e){var t=new i(e.subarray(0,32)),n=new i(e.subarray(32,64));return t.cmp(a.n)>=0||n.cmp(a.n)>=0?1:(1===n.cmp(r.nh)&&e.set(a.n.sub(n).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport:function(e,t){var n=t.subarray(0,32),r=t.subarray(32,64);if(new i(n).cmp(a.n)>=0)return 1;if(new i(r).cmp(a.n)>=0)return 1;var o=e.output,s=o.subarray(4,37);s[0]=0,s.set(n,1);for(var c=33,u=0;c>1&&0===s[u]&&!(128&s[u+1]);--c,++u);if(128&(s=s.subarray(u))[0])return 1;if(c>1&&0===s[0]&&!(128&s[1]))return 1;var f=o.subarray(39,72);f[0]=0,f.set(r,1);for(var d=33,l=0;d>1&&0===f[l]&&!(128&f[l+1]);--d,++l);return 128&(f=f.subarray(l))[0]||d>1&&0===f[0]&&!(128&f[1])?1:(e.outputlen=6+c+d,o[0]=48,o[1]=e.outputlen-2,o[2]=2,o[3]=s.length,o.set(s,4),o[4+c]=2,o[5+c]=f.length,o.set(f,6+c),0)},signatureImport:function(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;var n=t[3];if(0===n)return 1;if(5+n>=t.length)return 1;if(2!==t[4+n])return 1;var r=t[5+n];if(0===r)return 1;if(6+n+r!==t.length)return 1;if(128&t[4])return 1;if(n>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[n+6])return 1;if(r>1&&0===t[n+6]&&!(128&t[n+7]))return 1;var o=t.subarray(4,4+n);if(33===o.length&&0===o[0]&&(o=o.subarray(1)),o.length>32)return 1;var s=t.subarray(6+n);if(33===s.length&&0===s[0]&&(s=s.slice(1)),s.length>32)throw new Error("S length is too long");var c=new i(o);c.cmp(a.n)>=0&&(c=new i(0));var u=new i(t.subarray(6+n));return u.cmp(a.n)>=0&&(u=new i(0)),e.set(c.toArrayLike(Uint8Array,"be",32),0),e.set(u.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign:function(e,t,n,o,s){if(s){var c=s;s=function(e){var r=c(t,n,null,o,e);if(!(r instanceof Uint8Array&&32===r.length))throw new Error("This is the way");return new i(r)}}var u,f=new i(n);if(f.cmp(a.n)>=0||f.isZero())return 1;try{u=r.sign(t,n,{canonical:!0,k:s,pers:o})}catch(e){return 1}return e.signature.set(u.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(u.s.toArrayLike(Uint8Array,"be",32),32),e.recid=u.recoveryParam,0},ecdsaVerify:function(e,t,n){var s={r:e.subarray(0,32),s:e.subarray(32,64)},c=new i(s.r),u=new i(s.s);if(c.cmp(a.n)>=0||u.cmp(a.n)>=0)return 1;if(1===u.cmp(r.nh)||c.isZero()||u.isZero())return 3;var f=o(n);if(null===f)return 2;var d=f.getPublic();return r.verify(t,s,d)?0:3},ecdsaRecover:function(e,t,n,o){var c,u={r:t.slice(0,32),s:t.slice(32,64)},f=new i(u.r),d=new i(u.s);if(f.cmp(a.n)>=0||d.cmp(a.n)>=0)return 1;if(f.isZero()||d.isZero())return 2;try{c=r.recoverPubKey(o,u,n)}catch(e){return 2}return s(e,c),0},ecdh:function(e,t,n,s,c,u,f){var d=o(t);if(null===d)return 1;var l=new i(n);if(l.cmp(a.n)>=0||l.isZero())return 2;var p=d.getPublic().mul(l);if(void 0===c)for(var b=p.encode(null,!0),h=r.hash().update(b).digest(),y=0;y<32;++y)e[y]=h[y];else{u||(u=new Uint8Array(32));for(var m=p.getX().toArray("be",32),v=0;v<32;++v)u[v]=m[v];f||(f=new Uint8Array(32));for(var g=p.getY().toArray("be",32),A=0;A<32;++A)f[A]=g[A];var w=c(u,f,s);if(!(w instanceof Uint8Array&&w.length===e.length))return 2;e.set(w)}return 0}}},41838:function(e,t,n){var r=n(21146).default,a="Impossible case. Please create issue.",i="The tweak was out of range or the resulted private key is invalid",o="The tweak was out of range or equal to zero",s="Public Key could not be parsed",c="Public Key serialization error",u="Signature could not be parsed";function f(e,t){if(!e)throw new Error(t)}function d(e,t,n){if(f(t instanceof Uint8Array,"Expected ".concat(e," to be an Uint8Array")),void 0!==n)if(Array.isArray(n)){var r=n.join(", "),a="Expected ".concat(e," to be an Uint8Array with length [").concat(r,"]");f(n.includes(t.length),a)}else{var i="Expected ".concat(e," to be an Uint8Array with length ").concat(n);f(t.length===n,i)}}function l(e){f("Boolean"===b(e),"Expected compressed to be a Boolean")}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return new Uint8Array(e)},t=arguments.length>1?arguments[1]:void 0;return"function"==typeof e&&(e=e(t)),d("output",e,t),e}function b(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=function(e){return{contextRandomize:function(t){if(f(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&d("seed",t,32),1===e.contextRandomize(t))throw new Error("Unknow error on context randomization")},privateKeyVerify:function(t){return d("private key",t,32),0===e.privateKeyVerify(t)},privateKeyNegate:function(t){switch(d("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(a)}},privateKeyTweakAdd:function(t,n){switch(d("private key",t,32),d("tweak",n,32),e.privateKeyTweakAdd(t,n)){case 0:return t;case 1:throw new Error(i)}},privateKeyTweakMul:function(t,n){switch(d("private key",t,32),d("tweak",n,32),e.privateKeyTweakMul(t,n)){case 0:return t;case 1:throw new Error(o)}},publicKeyVerify:function(t){return d("public key",t,[33,65]),0===e.publicKeyVerify(t)},publicKeyCreate:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0;switch(d("private key",t,32),l(n),r=p(r,n?33:65),e.publicKeyCreate(r,t)){case 0:return r;case 1:throw new Error("Private Key is invalid");case 2:throw new Error(c)}},publicKeyConvert:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0;switch(d("public key",t,[33,65]),l(n),r=p(r,n?33:65),e.publicKeyConvert(r,t)){case 0:return r;case 1:throw new Error(s);case 2:throw new Error(c)}},publicKeyNegate:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0;switch(d("public key",t,[33,65]),l(n),r=p(r,n?33:65),e.publicKeyNegate(r,t)){case 0:return r;case 1:throw new Error(s);case 2:throw new Error(a);case 3:throw new Error(c)}},publicKeyCombine:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0;f(Array.isArray(t),"Expected public keys to be an Array"),f(t.length>0,"Expected public keys array will have more than zero items");var i,o=r(t);try{for(o.s();!(i=o.n()).done;)d("public key",i.value,[33,65])}catch(e){o.e(e)}finally{o.f()}switch(l(n),a=p(a,n?33:65),e.publicKeyCombine(a,t)){case 0:return a;case 1:throw new Error(s);case 2:throw new Error("The sum of the public keys is not valid");case 3:throw new Error(c)}},publicKeyTweakAdd:function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0;switch(d("public key",t,[33,65]),d("tweak",n,32),l(r),a=p(a,r?33:65),e.publicKeyTweakAdd(a,t,n)){case 0:return a;case 1:throw new Error(s);case 2:throw new Error(i)}},publicKeyTweakMul:function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0;switch(d("public key",t,[33,65]),d("tweak",n,32),l(r),a=p(a,r?33:65),e.publicKeyTweakMul(a,t,n)){case 0:return a;case 1:throw new Error(s);case 2:throw new Error(o)}},signatureNormalize:function(t){switch(d("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(u)}},signatureExport:function(t,n){d("signature",t,64);var r={output:n=p(n,72),outputlen:72};switch(e.signatureExport(r,t)){case 0:return n.slice(0,r.outputlen);case 1:throw new Error(u);case 2:throw new Error(a)}},signatureImport:function(t,n){switch(d("signature",t),n=p(n,64),e.signatureImport(n,t)){case 0:return n;case 1:throw new Error(u);case 2:throw new Error(a)}},ecdsaSign:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;d("message",t,32),d("private key",n,32),f("Object"===b(r),"Expected options to be an Object"),void 0!==r.data&&d("options.data",r.data),void 0!==r.noncefn&&f("Function"===b(r.noncefn),"Expected options.noncefn to be a Function");var o={signature:i=p(i,64),recid:null};switch(e.ecdsaSign(o,t,n,r.data,r.noncefn)){case 0:return o;case 1:throw new Error("The nonce generation function failed, or the private key was invalid");case 2:throw new Error(a)}},ecdsaVerify:function(t,n,r){switch(d("signature",t,64),d("message",n,32),d("public key",r,[33,65]),e.ecdsaVerify(t,n,r)){case 0:return!0;case 3:return!1;case 1:throw new Error(u);case 2:throw new Error(s)}},ecdsaRecover:function(t,n,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4?arguments[4]:void 0;switch(d("signature",t,64),f("Number"===b(n)&&n>=0&&n<=3,"Expected recovery id to be a Number within interval [0, 3]"),d("message",r,32),l(i),o=p(o,i?33:65),e.ecdsaRecover(o,t,n,r)){case 0:return o;case 1:throw new Error(u);case 2:throw new Error("Public key could not be recover");case 3:throw new Error(a)}},ecdh:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;switch(d("public key",t,[33,65]),d("private key",n,32),f("Object"===b(r),"Expected options to be an Object"),void 0!==r.data&&d("options.data",r.data),void 0!==r.hashfn?(f("Function"===b(r.hashfn),"Expected options.hashfn to be a Function"),void 0!==r.xbuf&&d("options.xbuf",r.xbuf,32),void 0!==r.ybuf&&d("options.ybuf",r.ybuf,32),d("output",a)):a=p(a,32),e.ecdh(a,t,n,r.data,r.hashfn,r.xbuf,r.ybuf)){case 0:return a;case 1:throw new Error(s);case 2:throw new Error("Scalar was invalid (zero or overflow)")}}}}},90501:function(e){"use strict";e.exports=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e})},23971:function(e,t,n){var r=n(96912).Buffer;function a(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}a.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,a=this._blockSize,i=e.length,o=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,a=(n-r)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},a.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=a},20563:function(e,t,n){var r=e.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=n(3717),r.sha1=n(36878),r.sha224=n(28782),r.sha256=n(61),r.sha384=n(15700),r.sha512=n(49612)},3717:function(e,t,n){var r=n(13786),a=n(23971),i=n(96912).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,a.call(this,64,56)}function u(e){return e<<30|e>>>2}function f(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,a),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,a=0|this._b,i=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=n[d-3]^n[d-8]^n[d-14]^n[d-16];for(var l=0;l<80;++l){var p=~~(l/20),b=0|((t=r)<<5|t>>>27)+f(p,a,i,s)+c+n[l]+o[p];c=s,s=i,i=u(a),a=r,r=b}this._a=r+this._a|0,this._b=a+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},36878:function(e,t,n){var r=n(13786),a=n(23971),i=n(96912).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,a.call(this,64,56)}function u(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function d(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,a),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,a=0|this._b,i=0|this._c,s=0|this._d,c=0|this._e,l=0;l<16;++l)n[l]=e.readInt32BE(4*l);for(;l<80;++l)n[l]=(t=n[l-3]^n[l-8]^n[l-14]^n[l-16])<<1|t>>>31;for(var p=0;p<80;++p){var b=~~(p/20),h=u(r)+d(b,a,i,s)+c+n[p]+o[b]|0;c=s,s=i,i=f(a),a=r,r=h}this._a=r+this._a|0,this._b=a+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=i.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},28782:function(e,t,n){var r=n(13786),a=n(61),i=n(23971),o=n(96912).Buffer,s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}r(c,a),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},61:function(e,t,n){var r=n(13786),a=n(23971),i=n(96912).Buffer,o=[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],s=new Array(64);function c(){this.init(),this._w=s,a.call(this,64,56)}function u(e,t,n){return n^e&(t^n)}function f(e,t,n){return e&t|n&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function l(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,a),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,a=0|this._b,i=0|this._c,s=0|this._d,c=0|this._e,b=0|this._f,h=0|this._g,y=0|this._h,m=0;m<16;++m)n[m]=e.readInt32BE(4*m);for(;m<64;++m)n[m]=0|(((t=n[m-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[m-7]+p(n[m-15])+n[m-16];for(var v=0;v<64;++v){var g=y+l(c)+u(c,b,h)+o[v]+n[v]|0,A=d(r)+f(r,a,i)|0;y=h,h=b,b=c,c=s+g|0,s=i,i=a,a=r,r=g+A|0}this._a=r+this._a|0,this._b=a+this._b|0,this._c=i+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=b+this._f|0,this._g=h+this._g|0,this._h=y+this._h|0},c.prototype._hash=function(){var e=i.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},15700:function(e,t,n){var r=n(13786),a=n(49612),i=n(23971),o=n(96912).Buffer,s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}r(c,a),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},49612:function(e,t,n){var r=n(13786),a=n(23971),i=n(96912).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,a.call(this,128,112)}function u(e,t,n){return n^e&(t^n)}function f(e,t,n){return e&t|n&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function l(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function b(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function m(e,t){return e>>>0>>0?1:0}r(c,a),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,a=0|this._ch,i=0|this._dh,s=0|this._eh,c=0|this._fh,v=0|this._gh,g=0|this._hh,A=0|this._al,w=0|this._bl,x=0|this._cl,_=0|this._dl,k=0|this._el,S=0|this._fl,I=0|this._gl,E=0|this._hl,C=0;C<32;C+=2)t[C]=e.readInt32BE(4*C),t[C+1]=e.readInt32BE(4*C+4);for(;C<160;C+=2){var T=t[C-30],O=t[C-30+1],P=p(T,O),M=b(O,T),B=h(T=t[C-4],O=t[C-4+1]),R=y(O,T),N=t[C-14],D=t[C-14+1],j=t[C-32],U=t[C-32+1],L=M+D|0,Z=P+N+m(L,M)|0;Z=(Z=Z+B+m(L=L+R|0,R)|0)+j+m(L=L+U|0,U)|0,t[C]=Z,t[C+1]=L}for(var F=0;F<160;F+=2){Z=t[F],L=t[F+1];var H=f(n,r,a),z=f(A,w,x),q=d(n,A),Q=d(A,n),K=l(s,k),V=l(k,s),J=o[F],G=o[F+1],W=u(s,c,v),Y=u(k,S,I),X=E+V|0,$=g+K+m(X,E)|0;$=($=($=$+W+m(X=X+Y|0,Y)|0)+J+m(X=X+G|0,G)|0)+Z+m(X=X+L|0,L)|0;var ee=Q+z|0,te=q+H+m(ee,Q)|0;g=v,E=I,v=c,I=S,c=s,S=k,s=i+$+m(k=_+X|0,_)|0,i=a,_=x,a=r,x=w,r=n,w=A,n=$+te+m(A=X+ee|0,X)|0}this._al=this._al+A|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+_|0,this._el=this._el+k|0,this._fl=this._fl+S|0,this._gl=this._gl+I|0,this._hl=this._hl+E|0,this._ah=this._ah+n+m(this._al,A)|0,this._bh=this._bh+r+m(this._bl,w)|0,this._ch=this._ch+a+m(this._cl,x)|0,this._dh=this._dh+i+m(this._dl,_)|0,this._eh=this._eh+s+m(this._el,k)|0,this._fh=this._fh+c+m(this._fl,S)|0,this._gh=this._gh+v+m(this._gl,I)|0,this._hh=this._hh+g+m(this._hl,E)|0},c.prototype._hash=function(){var e=i.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},19718:function(e,t,n){"use strict";n.r(t),n.d(t,{snakeCase:function(){return c}});var r=n(15685);function a(e){return e.toLowerCase()}var i=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],o=/[^A-Z0-9]+/gi;function s(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}function c(e,t){return void 0===t&&(t={}),function(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?i:n,c=t.stripRegexp,u=void 0===c?o:c,f=t.transform,d=void 0===f?a:f,l=t.delimiter,p=void 0===l?" ":l,b=s(s(e,r,"$1\0$2"),u,"\0"),h=0,y=b.length;"\0"===b.charAt(h);)h++;for(;"\0"===b.charAt(y-1);)y--;return b.slice(h,y).split("\0").map(d).join(p)}(e,(0,r.pi)({delimiter:"."},t))}(e,(0,r.pi)({delimiter:"_"},t))}},68563:function(e,t,n){"use strict";var r=n(11606),a=n(19718).snakeCase;e.exports=function(e,t){return t=Object.assign({deep:!0,exclude:[],parsingOptions:{}},t),r(e,(function(e,n){return[(r=t.exclude,i=e,r.some((function(e){return"string"==typeof e?e===i:e.test(i)}))?e:a(e,t.parsingOptions)),n];var r,i}),t)}},32467:function(e,t,n){"use strict";var r=n(13007);function a(e){if("number"==typeof e){if(!a[e])throw new Error("invalid status code: "+e);return e}if("string"!=typeof e)throw new TypeError("code must be a number or string");var t=parseInt(e,10);if(!isNaN(t)){if(!a[t])throw new Error("invalid status code: "+t);return t}if(!(t=a[e.toLowerCase()]))throw new Error('invalid status message: "'+e+'"');return t}e.exports=a,a.STATUS_CODES=r,a.codes=function(e,t){var n=[];return Object.keys(t).forEach((function(r){var a=t[r],i=Number(r);e[i]=a,e[a]=i,e[a.toLowerCase()]=i,n.push(i)})),n}(a,r),a.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},a.empty={204:!0,205:!0,304:!0},a.retry={502:!0,503:!0,504:!0}},65669:function(e){!function(t,n){var r={version:"2.14.2",areas:{},apis:{},nsdelim:".",inherit:function(e,t){for(var n in e)t.hasOwnProperty(n)||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n));return t},stringify:function(e,t){return void 0===e||"function"==typeof e?e+"":JSON.stringify(e,t||r.replace)},parse:function(e,t){try{return JSON.parse(e,t||r.revive)}catch(t){return e}},fn:function(e,t){for(var n in r.storeAPI[e]=t,r.apis)r.apis[n][e]=t},get:function(e,t){return e.getItem(t)},set:function(e,t,n){e.setItem(t,n)},remove:function(e,t){e.removeItem(t)},key:function(e,t){return e.key(t)},length:function(e){return e.length},clear:function(e){e.clear()},Store:function(e,t,n){var a=r.inherit(r.storeAPI,(function(e,t,n){return 0===arguments.length?a.getAll():"function"==typeof t?a.transact(e,t,n):void 0!==t?a.set(e,t,n):"string"==typeof e||"number"==typeof e?a.get(e):"function"==typeof e?a.each(e):e?a.setAll(e,t):a.clear()}));a._id=e;try{var i="__store2_test";t.setItem(i,"ok"),a._area=t,t.removeItem(i)}catch(e){a._area=r.storage("fake")}return a._ns=n||"",r.areas[e]||(r.areas[e]=a._area),r.apis[a._ns+a._id]||(r.apis[a._ns+a._id]=a),a},storeAPI:{area:function(e,t){var n=this[e];return n&&n.area||(n=r.Store(e,t,this._ns),this[e]||(this[e]=n)),n},namespace:function(e,t,n){if(n=n||this._delim||r.nsdelim,!e)return this._ns?this._ns.substring(0,this._ns.length-n.length):"";var a=e,i=this[a];if(!(i&&i.namespace||((i=r.Store(this._id,this._area,this._ns+a+n))._delim=n,this[a]||(this[a]=i),t)))for(var o in r.areas)i.area(o,r.areas[o]);return i},isFake:function(e){return e?(this._real=this._area,this._area=r.storage("fake")):!1===e&&(this._area=this._real||this._area),"fake"===this._area.name},toString:function(){return"store"+(this._ns?"."+this.namespace():"")+"["+this._id+"]"},has:function(e){return this._area.has?this._area.has(this._in(e)):!!(this._in(e)in this._area)},size:function(){return this.keys().length},each:function(e,t){for(var n=0,a=r.length(this._area);nr.length(this._area)&&(a--,n--)}return t||this},keys:function(e){return this.each((function(e,t,n){n.push(e)}),e||[])},get:function(e,t){var n,a=r.get(this._area,this._in(e));return"function"==typeof t&&(n=t,t=null),null!==a?r.parse(a,n):null!=t?t:a},getAll:function(e){return this.each((function(e,t,n){n[e]=t}),e||{})},transact:function(e,t,n){var r=this.get(e,n),a=t(r);return this.set(e,void 0===a?r:a),this},set:function(e,t,n){var a,i=this.get(e);return null!=i&&!1===n?t:("function"==typeof n&&(a=n,n=void 0),r.set(this._area,this._in(e),r.stringify(t,a),n)||i)},setAll:function(e,t){var n,r;for(var a in e)r=e[a],this.set(a,r,t)!==r&&(n=!0);return n},add:function(e,t,n){var a=this.get(e);if(a instanceof Array)t=a.concat(t);else if(null!==a){var i=typeof a;if(i===typeof t&&"object"===i){for(var o in t)a[o]=t[o];t=a}else t=a+t}return r.set(this._area,this._in(e),r.stringify(t,n)),t},remove:function(e,t){var n=this.get(e,t);return r.remove(this._area,this._in(e)),n},clear:function(){return this._ns?this.each((function(e){r.remove(this._area,this._in(e))}),1):r.clear(this._area),this},clearAll:function(){var e=this._area;for(var t in r.areas)r.areas.hasOwnProperty(t)&&(this._area=r.areas[t],this.clear());return this._area=e,this},_in:function(e){return"string"!=typeof e&&(e=r.stringify(e)),this._ns?this._ns+e:e},_out:function(e){return this._ns?e&&0===e.indexOf(this._ns)?e.substring(this._ns.length):void 0:e}},storage:function(e){return r.inherit(r.storageAPI,{items:{},name:e})},storageAPI:{length:0,has:function(e){return this.items.hasOwnProperty(e)},key:function(e){var t=0;for(var n in this.items)if(this.has(n)&&e===t++)return n},setItem:function(e,t){this.has(e)||this.length++,this.items[e]=t},removeItem:function(e){this.has(e)&&(delete this.items[e],this.length--)},getItem:function(e){return this.has(e)?this.items[e]:null},clear:function(){for(var e in this.items)this.removeItem(e)}}},a=r.Store("local",function(){try{return localStorage}catch(e){}}());a.local=a,a._=r,a.area("session",function(){try{return sessionStorage}catch(e){}}()),a.area("page",r.storage("page")),"function"==typeof n&&void 0!==n.amd?n("store2",[],(function(){return a})):e.exports?e.exports=a:(t.store&&(r.conflict=t.store),t.store=a)}(this,this&&this.define)},16664:function(e,t,n){"use strict";var r=n(96912).Buffer,a=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=f,this.end=d,t=3;break;default:return this.write=l,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function f(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function l(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.s=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(a>0&&(e.lastNeed=a-1),a):--r=0?(a>0&&(e.lastNeed=a-2),a):--r=0?(a>0&&(2===a?a=0:e.lastNeed=a-3),a):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},12643:function(e,t,n){var r=n(11290);e.exports=function(e){return"string"!=typeof e?e:r(e)?e.slice(2):e}},31221:function(e,t,n){var r=n(62332).Buffer,a=n(34542),i=new(0,n(35730).ec)("secp256k1"),o=n(1811),s=r.alloc(32,0),c=r.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),u=r.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex"),f=i.curve.n,d=f.shrn(1),l=i.curve.g,p="Expected Private",b="Expected Point",h="Expected Tweak",y="Expected Hash";function m(e){return r.isBuffer(e)&&32===e.length}function v(e){return!!m(e)&&e.compare(c)<0}function g(e){if(!r.isBuffer(e))return!1;if(e.length<33)return!1;var t=e[0],n=e.slice(1,33);if(0===n.compare(s))return!1;if(n.compare(u)>=0)return!1;if((2===t||3===t)&&33===e.length){try{S(e)}catch(e){return!1}return!0}var a=e.slice(33);return 0!==a.compare(s)&&!(a.compare(u)>=0)&&4===t&&65===e.length}function A(e){return 4!==e[0]}function w(e){return!!m(e)&&e.compare(s)>0&&e.compare(c)<0}function x(e,t){return void 0===e&&void 0!==t?A(t):void 0===e||e}function _(e){return new a(e)}function k(e){return e.toArrayLike(r,"be",32)}function S(e){return i.curve.decodePoint(e)}function I(e,t){return r.from(e._encode(t))}function E(e,t,n){if(!m(e))throw new TypeError(y);if(!w(t))throw new TypeError(p);if(void 0!==n&&!m(n))throw new TypeError("Expected Extra Data (32 bytes)");var a,i,s=_(t),c=_(e);o(e,t,(function(e){var t=_(e),n=l.mul(t);return!n.isInfinity()&&0!==(a=n.x.umod(f)).isZero()&&0!==(i=t.invm(f).mul(c.add(s.mul(a))).umod(f)).isZero()}),w,n),i.cmp(d)>0&&(i=f.sub(i));var u=r.allocUnsafe(64);return k(a).copy(u,0),k(i).copy(u,32),u}e.exports={isPoint:g,isPointCompressed:function(e){return!!g(e)&&A(e)},isPrivate:w,pointAdd:function(e,t,n){if(!g(e))throw new TypeError(b);if(!g(t))throw new TypeError(b);var r=S(e),a=S(t),i=r.add(a);return i.isInfinity()?null:I(i,x(n,e))},pointAddScalar:function(e,t,n){if(!g(e))throw new TypeError(b);if(!v(t))throw new TypeError(h);var r=x(n,e),a=S(e);if(0===t.compare(s))return I(a,r);var i=_(t),o=l.mul(i),c=a.add(o);return c.isInfinity()?null:I(c,r)},pointCompress:function(e,t){if(!g(e))throw new TypeError(b);var n=S(e);if(n.isInfinity())throw new TypeError(b);return I(n,x(t,e))},pointFromScalar:function(e,t){if(!w(e))throw new TypeError(p);var n=_(e),r=l.mul(n);return r.isInfinity()?null:I(r,x(t))},pointMultiply:function(e,t,n){if(!g(e))throw new TypeError(b);if(!v(t))throw new TypeError(h);var r=x(n,e),a=S(e),i=_(t),o=a.mul(i);return o.isInfinity()?null:I(o,r)},privateAdd:function(e,t){if(!w(e))throw new TypeError(p);if(!v(t))throw new TypeError(h);var n=_(e),r=_(t),a=k(n.add(r).umod(f));return w(a)?a:null},privateSub:function(e,t){if(!w(e))throw new TypeError(p);if(!v(t))throw new TypeError(h);var n=_(e),r=_(t),a=k(n.sub(r).umod(f));return w(a)?a:null},sign:function(e,t){return E(e,t)},signWithEntropy:function(e,t,n){return E(e,t,n)},verify:function(e,t,n,a){if(!m(e))throw new TypeError(y);if(!g(t))throw new TypeError(b);if(!function(e){var t=e.slice(0,32),n=e.slice(32,64);return r.isBuffer(e)&&64===e.length&&t.compare(c)<0&&n.compare(c)<0}(n))throw new TypeError("Expected Signature");var i=S(t),o=_(n.slice(0,32)),s=_(n.slice(32,64));if(a&&s.cmp(d)>0)return!1;if(o.gtn(0)<=0)return!1;if(s.gtn(0)<=0)return!1;var u=_(e),p=s.invm(f),h=u.mul(p).umod(f),v=o.mul(p).umod(f),A=l.mulAdd(h,i,v);return!A.isInfinity()&&A.x.umod(f).eq(o)}}},34542:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(60371).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var b=u-p|0;f+=(o=(a=0|e.words[b])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?f[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],p=l[e];n="";var b=this.clone();for(b.negative=0;!b.isZero();){var h=b.modn(p).toString(e);n=(b=b.idivn(p)).isZero()?h+n:f[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),f=this.clone();if(c){for(s=0;!f.isZero();s++)o=f.andln(255),f.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,p=0|o[1],b=8191&p,h=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,S=0|o[5],I=8191&S,E=S>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,R=0|o[8],N=8191&R,D=R>>>13,j=0|o[9],U=8191&j,L=j>>>13,Z=0|s[0],F=8191&Z,H=Z>>>13,z=0|s[1],q=8191&z,Q=z>>>13,K=0|s[2],V=8191&K,J=K>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],be=8191&pe,he=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,F))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,F)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,F),a=(a=Math.imul(b,H))+Math.imul(h,F)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,Q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,F),a=(a=Math.imul(m,H))+Math.imul(v,F)|0,i=Math.imul(v,H),r=r+Math.imul(b,q)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(h,q)|0,i=i+Math.imul(h,Q)|0;var ve=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(a=(a=a+Math.imul(d,J)|0)+Math.imul(l,V)|0))<<13)|0;u=((i=i+Math.imul(l,J)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,F),a=(a=Math.imul(A,H))+Math.imul(w,F)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,Q)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,Q)|0,r=r+Math.imul(b,V)|0,a=(a=a+Math.imul(b,J)|0)+Math.imul(h,V)|0,i=i+Math.imul(h,J)|0;var ge=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(a=(a=a+Math.imul(d,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,F),a=(a=Math.imul(_,H))+Math.imul(k,F)|0,i=Math.imul(k,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,Q)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,Q)|0,r=r+Math.imul(m,V)|0,a=(a=a+Math.imul(m,J)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,J)|0,r=r+Math.imul(b,W)|0,a=(a=a+Math.imul(b,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(I,F),a=(a=Math.imul(I,H))+Math.imul(E,F)|0,i=Math.imul(E,H),r=r+Math.imul(_,q)|0,a=(a=a+Math.imul(_,Q)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,Q)|0,r=r+Math.imul(A,V)|0,a=(a=a+Math.imul(A,J)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,J)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(b,$)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,F),a=(a=Math.imul(T,H))+Math.imul(O,F)|0,i=Math.imul(O,H),r=r+Math.imul(I,q)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,Q)|0,r=r+Math.imul(_,V)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(b,ne)|0,a=(a=a+Math.imul(b,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,F),a=(a=Math.imul(M,H))+Math.imul(B,F)|0,i=Math.imul(B,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,Q)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,Q)|0,r=r+Math.imul(I,V)|0,a=(a=a+Math.imul(I,J)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,J)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(b,ie)|0,a=(a=a+Math.imul(b,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(N,F),a=(a=Math.imul(N,H))+Math.imul(D,F)|0,i=Math.imul(D,H),r=r+Math.imul(M,q)|0,a=(a=a+Math.imul(M,Q)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,Q)|0,r=r+Math.imul(T,V)|0,a=(a=a+Math.imul(T,J)|0)+Math.imul(O,V)|0,i=i+Math.imul(O,J)|0,r=r+Math.imul(I,W)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(b,ce)|0,a=(a=a+Math.imul(b,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,F),a=(a=Math.imul(U,H))+Math.imul(L,F)|0,i=Math.imul(L,H),r=r+Math.imul(N,q)|0,a=(a=a+Math.imul(N,Q)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,Q)|0,r=r+Math.imul(M,V)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,J)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(I,$)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(b,de)|0,a=(a=a+Math.imul(b,le)|0)+Math.imul(h,de)|0,i=i+Math.imul(h,le)|0;var Se=(u+(r=r+Math.imul(d,be)|0)|0)+((8191&(a=(a=a+Math.imul(d,he)|0)+Math.imul(l,be)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,q),a=(a=Math.imul(U,Q))+Math.imul(L,q)|0,i=Math.imul(L,Q),r=r+Math.imul(N,V)|0,a=(a=a+Math.imul(N,J)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,J)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(I,ne)|0,a=(a=a+Math.imul(I,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Ie=(u+(r=r+Math.imul(b,be)|0)|0)+((8191&(a=(a=a+Math.imul(b,he)|0)+Math.imul(h,be)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,V),a=(a=Math.imul(U,J))+Math.imul(L,V)|0,i=Math.imul(L,J),r=r+Math.imul(N,W)|0,a=(a=a+Math.imul(N,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,be)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,be)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(N,$)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(I,ce)|0,a=(a=a+Math.imul(I,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,de)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,be)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,be)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(N,ne)|0,a=(a=a+Math.imul(N,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(I,de)|0,a=(a=a+Math.imul(I,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,be)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,be)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(N,ie)|0,a=(a=a+Math.imul(N,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(I,be)|0)|0)+((8191&(a=(a=a+Math.imul(I,he)|0)+Math.imul(E,be)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,de)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,de)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,be)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,be)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(N,de)|0,a=(a=a+Math.imul(N,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,be)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,be)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,de),a=(a=Math.imul(U,le))+Math.imul(L,de)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(N,be)|0)|0)+((8191&(a=(a=a+Math.imul(N,he)|0)+Math.imul(D,be)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Re=(u+(r=Math.imul(U,be))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,be)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Se,c[10]=Ie,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Re,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(b=p),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?b(this,e,t):r<63?p(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0==(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var b=0,h=1;0==(n.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(n.iushrn(b);b-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0==(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),b=o;0!==p.cmp(s);){for(var h=p,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4==++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},1811:function(e,t,n){var r=n(62332).Buffer,a=n(29817),i=r.alloc(1,1),o=r.alloc(1,0);e.exports=function(e,t,n,s,c){var u=r.alloc(32,0),f=r.alloc(32,1);u=a("sha256",u).update(f).update(o).update(t).update(e).update(c||"").digest(),f=a("sha256",u).update(f).digest(),u=a("sha256",u).update(f).update(i).update(t).update(e).update(c||"").digest(),f=a("sha256",u).update(f).digest();for(var d=f=a("sha256",u).update(f).digest();!s(d)||!n(d);)u=a("sha256",u).update(f).update(o).digest(),f=a("sha256",u).update(f).digest(),d=f=a("sha256",u).update(f).digest();return d}},76798:function(e){"use strict";e.exports=function(e){return e.split(" ").map((function(e){return e.slice(0,1).toUpperCase()+e.slice(1)})).join("").replace(/[^ _0-9a-z]/gi,"")}},15685:function(e,t,n){"use strict";n.d(t,{CR:function(){return u},FC:function(){return l},Jh:function(){return s},KL:function(){return p},XA:function(){return c},ZT:function(){return a},ev:function(){return f},mG:function(){return o},pi:function(){return i},qq:function(){return d}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function f(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof d?Promise.resolve(n.value.v).then(c,u):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function f(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function p(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=c(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,a){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,a,(t=e[n](t)).done,t.value)}))}}}Object.create,Object.create},70518:function(e,t,n){var r=n(13973).Buffer;!function(t,n){"use strict";e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())}(this,(function(){"use strict";var e={};function t(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var t,n=unescape(encodeURIComponent(e)),r=new Uint8Array(n.length);for(t=0;t>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function h(e,t,n,r,a){var i,o=0;for(i=0;i>>8)-1}function y(e,t,n,r){return h(e,t,n,r,16)}function m(e,t,n,r){return h(e,t,n,r,32)}function v(e,t,n,r){!function(e,t,n,r){for(var a,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,u=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,f=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,l=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,b=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,h=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,y=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,m=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,v=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,g=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,A=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=i,x=o,_=s,k=c,S=u,I=f,E=d,C=l,T=p,O=b,P=h,M=y,B=m,R=v,N=g,D=A,j=0;j<20;j+=2)w^=(a=(B^=(a=(T^=(a=(S^=(a=w+B|0)<<7|a>>>25)+w|0)<<9|a>>>23)+S|0)<<13|a>>>19)+T|0)<<18|a>>>14,I^=(a=(x^=(a=(R^=(a=(O^=(a=I+x|0)<<7|a>>>25)+I|0)<<9|a>>>23)+O|0)<<13|a>>>19)+R|0)<<18|a>>>14,P^=(a=(E^=(a=(_^=(a=(N^=(a=P+E|0)<<7|a>>>25)+P|0)<<9|a>>>23)+N|0)<<13|a>>>19)+_|0)<<18|a>>>14,D^=(a=(M^=(a=(C^=(a=(k^=(a=D+M|0)<<7|a>>>25)+D|0)<<9|a>>>23)+k|0)<<13|a>>>19)+C|0)<<18|a>>>14,w^=(a=(k^=(a=(_^=(a=(x^=(a=w+k|0)<<7|a>>>25)+w|0)<<9|a>>>23)+x|0)<<13|a>>>19)+_|0)<<18|a>>>14,I^=(a=(S^=(a=(C^=(a=(E^=(a=I+S|0)<<7|a>>>25)+I|0)<<9|a>>>23)+E|0)<<13|a>>>19)+C|0)<<18|a>>>14,P^=(a=(O^=(a=(T^=(a=(M^=(a=P+O|0)<<7|a>>>25)+P|0)<<9|a>>>23)+M|0)<<13|a>>>19)+T|0)<<18|a>>>14,D^=(a=(N^=(a=(R^=(a=(B^=(a=D+N|0)<<7|a>>>25)+D|0)<<9|a>>>23)+B|0)<<13|a>>>19)+R|0)<<18|a>>>14;w=w+i|0,x=x+o|0,_=_+s|0,k=k+c|0,S=S+u|0,I=I+f|0,E=E+d|0,C=C+l|0,T=T+p|0,O=O+b|0,P=P+h|0,M=M+y|0,B=B+m|0,R=R+v|0,N=N+g|0,D=D+A|0,e[0]=w>>>0&255,e[1]=w>>>8&255,e[2]=w>>>16&255,e[3]=w>>>24&255,e[4]=x>>>0&255,e[5]=x>>>8&255,e[6]=x>>>16&255,e[7]=x>>>24&255,e[8]=_>>>0&255,e[9]=_>>>8&255,e[10]=_>>>16&255,e[11]=_>>>24&255,e[12]=k>>>0&255,e[13]=k>>>8&255,e[14]=k>>>16&255,e[15]=k>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=I>>>0&255,e[21]=I>>>8&255,e[22]=I>>>16&255,e[23]=I>>>24&255,e[24]=E>>>0&255,e[25]=E>>>8&255,e[26]=E>>>16&255,e[27]=E>>>24&255,e[28]=C>>>0&255,e[29]=C>>>8&255,e[30]=C>>>16&255,e[31]=C>>>24&255,e[32]=T>>>0&255,e[33]=T>>>8&255,e[34]=T>>>16&255,e[35]=T>>>24&255,e[36]=O>>>0&255,e[37]=O>>>8&255,e[38]=O>>>16&255,e[39]=O>>>24&255,e[40]=P>>>0&255,e[41]=P>>>8&255,e[42]=P>>>16&255,e[43]=P>>>24&255,e[44]=M>>>0&255,e[45]=M>>>8&255,e[46]=M>>>16&255,e[47]=M>>>24&255,e[48]=B>>>0&255,e[49]=B>>>8&255,e[50]=B>>>16&255,e[51]=B>>>24&255,e[52]=R>>>0&255,e[53]=R>>>8&255,e[54]=R>>>16&255,e[55]=R>>>24&255,e[56]=N>>>0&255,e[57]=N>>>8&255,e[58]=N>>>16&255,e[59]=N>>>24&255,e[60]=D>>>0&255,e[61]=D>>>8&255,e[62]=D>>>16&255,e[63]=D>>>24&255}(e,t,n,r)}function g(e,t,n,r){!function(e,t,n,r){for(var a,i=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,u=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,f=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,l=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,b=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,h=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,y=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,m=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,v=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,g=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,A=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=0;w<20;w+=2)i^=(a=(m^=(a=(p^=(a=(u^=(a=i+m|0)<<7|a>>>25)+i|0)<<9|a>>>23)+u|0)<<13|a>>>19)+p|0)<<18|a>>>14,f^=(a=(o^=(a=(v^=(a=(b^=(a=f+o|0)<<7|a>>>25)+f|0)<<9|a>>>23)+b|0)<<13|a>>>19)+v|0)<<18|a>>>14,h^=(a=(d^=(a=(s^=(a=(g^=(a=h+d|0)<<7|a>>>25)+h|0)<<9|a>>>23)+g|0)<<13|a>>>19)+s|0)<<18|a>>>14,A^=(a=(y^=(a=(l^=(a=(c^=(a=A+y|0)<<7|a>>>25)+A|0)<<9|a>>>23)+c|0)<<13|a>>>19)+l|0)<<18|a>>>14,i^=(a=(c^=(a=(s^=(a=(o^=(a=i+c|0)<<7|a>>>25)+i|0)<<9|a>>>23)+o|0)<<13|a>>>19)+s|0)<<18|a>>>14,f^=(a=(u^=(a=(l^=(a=(d^=(a=f+u|0)<<7|a>>>25)+f|0)<<9|a>>>23)+d|0)<<13|a>>>19)+l|0)<<18|a>>>14,h^=(a=(b^=(a=(p^=(a=(y^=(a=h+b|0)<<7|a>>>25)+h|0)<<9|a>>>23)+y|0)<<13|a>>>19)+p|0)<<18|a>>>14,A^=(a=(g^=(a=(v^=(a=(m^=(a=A+g|0)<<7|a>>>25)+A|0)<<9|a>>>23)+m|0)<<13|a>>>19)+v|0)<<18|a>>>14;e[0]=i>>>0&255,e[1]=i>>>8&255,e[2]=i>>>16&255,e[3]=i>>>24&255,e[4]=f>>>0&255,e[5]=f>>>8&255,e[6]=f>>>16&255,e[7]=f>>>24&255,e[8]=h>>>0&255,e[9]=h>>>8&255,e[10]=h>>>16&255,e[11]=h>>>24&255,e[12]=A>>>0&255,e[13]=A>>>8&255,e[14]=A>>>16&255,e[15]=A>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=l>>>0&255,e[21]=l>>>8&255,e[22]=l>>>16&255,e[23]=l>>>24&255,e[24]=p>>>0&255,e[25]=p>>>8&255,e[26]=p>>>16&255,e[27]=p>>>24&255,e[28]=b>>>0&255,e[29]=b>>>8&255,e[30]=b>>>16&255,e[31]=b>>>24&255}(e,t,n,r)}var A=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,n,r,a,i,o){var s,c,u=new Uint8Array(16),f=new Uint8Array(64);for(c=0;c<16;c++)u[c]=0;for(c=0;c<8;c++)u[c]=i[c];for(;a>=64;){for(v(f,u,o,A),c=0;c<64;c++)e[t+c]=n[r+c]^f[c];for(s=1,c=8;c<16;c++)s=s+(255&u[c])|0,u[c]=255&s,s>>>=8;a-=64,t+=64,r+=64}if(a>0)for(v(f,u,o,A),c=0;c=64;){for(v(c,s,a,A),o=0;o<64;o++)e[t+o]=c[o];for(i=1,o=8;o<16;o++)i=i+(255&s[o])|0,s[o]=255&i,i>>>=8;n-=64,t+=64}if(n>0)for(v(c,s,a,A),o=0;o>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),a=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|a<<9),i=255&e[8]|(255&e[9])<<8,this.r[4]=255&(a>>>4|i<<12),this.r[5]=i>>>1&8190,o=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(i>>>14|o<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(o>>>11|s<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function I(e,t,n,r,a,i){var o=new S(i);return o.update(n,r,a),o.finish(e,t),0}function E(e,t,n,r,a,i){var o=new Uint8Array(16);return I(o,0,n,r,a,i),y(e,t,o,0)}function C(e,t,n,r,a){var i;if(n<32)return-1;for(k(e,0,t,0,n,r,a),I(e,16,e,32,n-32,e),i=0;i<16;i++)e[i]=0;return 0}function T(e,t,n,r,a){var i,o=new Uint8Array(32);if(n<32)return-1;if(_(o,0,32,r,a),0!==E(t,16,t,32,n-32,o))return-1;for(k(e,0,t,0,n,r,a),i=0;i<32;i++)e[i]=0;return 0}function O(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function P(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function M(e,t,n){for(var r,a=~(n-1),i=0;i<16;i++)r=a&(e[i]^t[i]),e[i]^=r,t[i]^=r}function B(e,n){var r,a,i,o=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(P(s),P(s),P(s),a=0;a<2;a++){for(o[0]=s[0]-65517,r=1;r<15;r++)o[r]=s[r]-65535-(o[r-1]>>16&1),o[r-1]&=65535;o[15]=s[15]-32767-(o[14]>>16&1),i=o[15]>>16&1,o[14]&=65535,M(s,o,1-i)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function R(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return B(n,e),B(r,t),m(n,0,r,0)}function N(e){var t=new Uint8Array(32);return B(t,e),1&t[0]}function D(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function j(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function U(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function L(e,t,n){var r,a,i=0,o=0,s=0,c=0,u=0,f=0,d=0,l=0,p=0,b=0,h=0,y=0,m=0,v=0,g=0,A=0,w=0,x=0,_=0,k=0,S=0,I=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,R=0,N=0,D=n[0],j=n[1],U=n[2],L=n[3],Z=n[4],F=n[5],H=n[6],z=n[7],q=n[8],Q=n[9],K=n[10],V=n[11],J=n[12],G=n[13],W=n[14],Y=n[15];i+=(r=t[0])*D,o+=r*j,s+=r*U,c+=r*L,u+=r*Z,f+=r*F,d+=r*H,l+=r*z,p+=r*q,b+=r*Q,h+=r*K,y+=r*V,m+=r*J,v+=r*G,g+=r*W,A+=r*Y,o+=(r=t[1])*D,s+=r*j,c+=r*U,u+=r*L,f+=r*Z,d+=r*F,l+=r*H,p+=r*z,b+=r*q,h+=r*Q,y+=r*K,m+=r*V,v+=r*J,g+=r*G,A+=r*W,w+=r*Y,s+=(r=t[2])*D,c+=r*j,u+=r*U,f+=r*L,d+=r*Z,l+=r*F,p+=r*H,b+=r*z,h+=r*q,y+=r*Q,m+=r*K,v+=r*V,g+=r*J,A+=r*G,w+=r*W,x+=r*Y,c+=(r=t[3])*D,u+=r*j,f+=r*U,d+=r*L,l+=r*Z,p+=r*F,b+=r*H,h+=r*z,y+=r*q,m+=r*Q,v+=r*K,g+=r*V,A+=r*J,w+=r*G,x+=r*W,_+=r*Y,u+=(r=t[4])*D,f+=r*j,d+=r*U,l+=r*L,p+=r*Z,b+=r*F,h+=r*H,y+=r*z,m+=r*q,v+=r*Q,g+=r*K,A+=r*V,w+=r*J,x+=r*G,_+=r*W,k+=r*Y,f+=(r=t[5])*D,d+=r*j,l+=r*U,p+=r*L,b+=r*Z,h+=r*F,y+=r*H,m+=r*z,v+=r*q,g+=r*Q,A+=r*K,w+=r*V,x+=r*J,_+=r*G,k+=r*W,S+=r*Y,d+=(r=t[6])*D,l+=r*j,p+=r*U,b+=r*L,h+=r*Z,y+=r*F,m+=r*H,v+=r*z,g+=r*q,A+=r*Q,w+=r*K,x+=r*V,_+=r*J,k+=r*G,S+=r*W,I+=r*Y,l+=(r=t[7])*D,p+=r*j,b+=r*U,h+=r*L,y+=r*Z,m+=r*F,v+=r*H,g+=r*z,A+=r*q,w+=r*Q,x+=r*K,_+=r*V,k+=r*J,S+=r*G,I+=r*W,E+=r*Y,p+=(r=t[8])*D,b+=r*j,h+=r*U,y+=r*L,m+=r*Z,v+=r*F,g+=r*H,A+=r*z,w+=r*q,x+=r*Q,_+=r*K,k+=r*V,S+=r*J,I+=r*G,E+=r*W,C+=r*Y,b+=(r=t[9])*D,h+=r*j,y+=r*U,m+=r*L,v+=r*Z,g+=r*F,A+=r*H,w+=r*z,x+=r*q,_+=r*Q,k+=r*K,S+=r*V,I+=r*J,E+=r*G,C+=r*W,T+=r*Y,h+=(r=t[10])*D,y+=r*j,m+=r*U,v+=r*L,g+=r*Z,A+=r*F,w+=r*H,x+=r*z,_+=r*q,k+=r*Q,S+=r*K,I+=r*V,E+=r*J,C+=r*G,T+=r*W,O+=r*Y,y+=(r=t[11])*D,m+=r*j,v+=r*U,g+=r*L,A+=r*Z,w+=r*F,x+=r*H,_+=r*z,k+=r*q,S+=r*Q,I+=r*K,E+=r*V,C+=r*J,T+=r*G,O+=r*W,P+=r*Y,m+=(r=t[12])*D,v+=r*j,g+=r*U,A+=r*L,w+=r*Z,x+=r*F,_+=r*H,k+=r*z,S+=r*q,I+=r*Q,E+=r*K,C+=r*V,T+=r*J,O+=r*G,P+=r*W,M+=r*Y,v+=(r=t[13])*D,g+=r*j,A+=r*U,w+=r*L,x+=r*Z,_+=r*F,k+=r*H,S+=r*z,I+=r*q,E+=r*Q,C+=r*K,T+=r*V,O+=r*J,P+=r*G,M+=r*W,B+=r*Y,g+=(r=t[14])*D,A+=r*j,w+=r*U,x+=r*L,_+=r*Z,k+=r*F,S+=r*H,I+=r*z,E+=r*q,C+=r*Q,T+=r*K,O+=r*V,P+=r*J,M+=r*G,B+=r*W,R+=r*Y,A+=(r=t[15])*D,o+=38*(x+=r*U),s+=38*(_+=r*L),c+=38*(k+=r*Z),u+=38*(S+=r*F),f+=38*(I+=r*H),d+=38*(E+=r*z),l+=38*(C+=r*q),p+=38*(T+=r*Q),b+=38*(O+=r*K),h+=38*(P+=r*V),y+=38*(M+=r*J),m+=38*(B+=r*G),v+=38*(R+=r*W),g+=38*(N+=r*Y),i=(r=(i+=38*(w+=r*j))+(a=1)+65535)-65536*(a=Math.floor(r/65536)),o=(r=o+a+65535)-65536*(a=Math.floor(r/65536)),s=(r=s+a+65535)-65536*(a=Math.floor(r/65536)),c=(r=c+a+65535)-65536*(a=Math.floor(r/65536)),u=(r=u+a+65535)-65536*(a=Math.floor(r/65536)),f=(r=f+a+65535)-65536*(a=Math.floor(r/65536)),d=(r=d+a+65535)-65536*(a=Math.floor(r/65536)),l=(r=l+a+65535)-65536*(a=Math.floor(r/65536)),p=(r=p+a+65535)-65536*(a=Math.floor(r/65536)),b=(r=b+a+65535)-65536*(a=Math.floor(r/65536)),h=(r=h+a+65535)-65536*(a=Math.floor(r/65536)),y=(r=y+a+65535)-65536*(a=Math.floor(r/65536)),m=(r=m+a+65535)-65536*(a=Math.floor(r/65536)),v=(r=v+a+65535)-65536*(a=Math.floor(r/65536)),g=(r=g+a+65535)-65536*(a=Math.floor(r/65536)),A=(r=A+a+65535)-65536*(a=Math.floor(r/65536)),i=(r=(i+=a-1+37*(a-1))+(a=1)+65535)-65536*(a=Math.floor(r/65536)),o=(r=o+a+65535)-65536*(a=Math.floor(r/65536)),s=(r=s+a+65535)-65536*(a=Math.floor(r/65536)),c=(r=c+a+65535)-65536*(a=Math.floor(r/65536)),u=(r=u+a+65535)-65536*(a=Math.floor(r/65536)),f=(r=f+a+65535)-65536*(a=Math.floor(r/65536)),d=(r=d+a+65535)-65536*(a=Math.floor(r/65536)),l=(r=l+a+65535)-65536*(a=Math.floor(r/65536)),p=(r=p+a+65535)-65536*(a=Math.floor(r/65536)),b=(r=b+a+65535)-65536*(a=Math.floor(r/65536)),h=(r=h+a+65535)-65536*(a=Math.floor(r/65536)),y=(r=y+a+65535)-65536*(a=Math.floor(r/65536)),m=(r=m+a+65535)-65536*(a=Math.floor(r/65536)),v=(r=v+a+65535)-65536*(a=Math.floor(r/65536)),g=(r=g+a+65535)-65536*(a=Math.floor(r/65536)),A=(r=A+a+65535)-65536*(a=Math.floor(r/65536)),i+=a-1+37*(a-1),e[0]=i,e[1]=o,e[2]=s,e[3]=c,e[4]=u,e[5]=f,e[6]=d,e[7]=l,e[8]=p,e[9]=b,e[10]=h,e[11]=y,e[12]=m,e[13]=v,e[14]=g,e[15]=A}function Z(e,t){L(e,t,t)}function F(e,n){var r,a=t();for(r=0;r<16;r++)a[r]=n[r];for(r=253;r>=0;r--)Z(a,a),2!==r&&4!==r&&L(a,a,n);for(r=0;r<16;r++)e[r]=a[r]}function H(e,n){var r,a=t();for(r=0;r<16;r++)a[r]=n[r];for(r=250;r>=0;r--)Z(a,a),1!==r&&L(a,a,n);for(r=0;r<16;r++)e[r]=a[r]}function z(e,n,r){var a,i,o=new Uint8Array(32),s=new Float64Array(80),u=t(),f=t(),d=t(),l=t(),p=t(),b=t();for(i=0;i<31;i++)o[i]=n[i];for(o[31]=127&n[31]|64,o[0]&=248,D(s,r),i=0;i<16;i++)f[i]=s[i],l[i]=u[i]=d[i]=0;for(u[0]=l[0]=1,i=254;i>=0;--i)M(u,f,a=o[i>>>3]>>>(7&i)&1),M(d,l,a),j(p,u,d),U(u,u,d),j(d,f,l),U(f,f,l),Z(l,p),Z(b,u),L(u,d,u),L(d,f,p),j(p,u,d),U(u,u,d),Z(f,u),U(d,l,b),L(u,d,c),j(u,u,l),L(d,d,u),L(u,l,b),L(l,f,s),Z(f,p),M(u,f,a),M(d,l,a);for(i=0;i<16;i++)s[i+16]=u[i],s[i+32]=d[i],s[i+48]=f[i],s[i+64]=l[i];var h=s.subarray(32),y=s.subarray(16);return F(h,h),L(y,y,h),B(e,y),0}function q(e,t){return z(e,t,i)}function Q(e,t){return r(t,32),q(e,t)}function K(e,t,n){var r=new Uint8Array(32);return z(r,n,t),g(e,a,r,A)}S.prototype.blocks=function(e,t,n){for(var r,a,i,o,s,c,u,f,d,l,p,b,h,y,m,v,g,A,w,x=this.fin?0:2048,_=this.h[0],k=this.h[1],S=this.h[2],I=this.h[3],E=this.h[4],C=this.h[5],T=this.h[6],O=this.h[7],P=this.h[8],M=this.h[9],B=this.r[0],R=this.r[1],N=this.r[2],D=this.r[3],j=this.r[4],U=this.r[5],L=this.r[6],Z=this.r[7],F=this.r[8],H=this.r[9];n>=16;)l=d=0,l+=(_+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*B,l+=(k+=8191&(r>>>13|(a=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*H),l+=(S+=8191&(a>>>10|(i=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*F),l+=(I+=8191&(i>>>7|(o=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*Z),d=(l+=(E+=8191&(o>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*L))>>>13,l&=8191,l+=(C+=s>>>1&8191)*(5*U),l+=(T+=8191&(s>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*j),l+=(O+=8191&(c>>>11|(u=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*D),l+=(P+=8191&(u>>>8|(f=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*N),p=d+=(l+=(M+=f>>>5|x)*(5*R))>>>13,p+=_*R,p+=k*B,p+=S*(5*H),p+=I*(5*F),d=(p+=E*(5*Z))>>>13,p&=8191,p+=C*(5*L),p+=T*(5*U),p+=O*(5*j),p+=P*(5*D),d+=(p+=M*(5*N))>>>13,p&=8191,b=d,b+=_*N,b+=k*R,b+=S*B,b+=I*(5*H),d=(b+=E*(5*F))>>>13,b&=8191,b+=C*(5*Z),b+=T*(5*L),b+=O*(5*U),b+=P*(5*j),h=d+=(b+=M*(5*D))>>>13,h+=_*D,h+=k*N,h+=S*R,h+=I*B,d=(h+=E*(5*H))>>>13,h&=8191,h+=C*(5*F),h+=T*(5*Z),h+=O*(5*L),h+=P*(5*U),y=d+=(h+=M*(5*j))>>>13,y+=_*j,y+=k*D,y+=S*N,y+=I*R,d=(y+=E*B)>>>13,y&=8191,y+=C*(5*H),y+=T*(5*F),y+=O*(5*Z),y+=P*(5*L),m=d+=(y+=M*(5*U))>>>13,m+=_*U,m+=k*j,m+=S*D,m+=I*N,d=(m+=E*R)>>>13,m&=8191,m+=C*B,m+=T*(5*H),m+=O*(5*F),m+=P*(5*Z),v=d+=(m+=M*(5*L))>>>13,v+=_*L,v+=k*U,v+=S*j,v+=I*D,d=(v+=E*N)>>>13,v&=8191,v+=C*R,v+=T*B,v+=O*(5*H),v+=P*(5*F),g=d+=(v+=M*(5*Z))>>>13,g+=_*Z,g+=k*L,g+=S*U,g+=I*j,d=(g+=E*D)>>>13,g&=8191,g+=C*N,g+=T*R,g+=O*B,g+=P*(5*H),A=d+=(g+=M*(5*F))>>>13,A+=_*F,A+=k*Z,A+=S*L,A+=I*U,d=(A+=E*j)>>>13,A&=8191,A+=C*D,A+=T*N,A+=O*R,A+=P*B,w=d+=(A+=M*(5*H))>>>13,w+=_*H,w+=k*F,w+=S*Z,w+=I*L,d=(w+=E*U)>>>13,w&=8191,w+=C*j,w+=T*D,w+=O*N,w+=P*R,_=l=8191&(d=(d=((d+=(w+=M*B)>>>13)<<2)+d|0)+(l&=8191)|0),k=p+=d>>>=13,S=b&=8191,I=h&=8191,E=y&=8191,C=m&=8191,T=v&=8191,O=g&=8191,P=A&=8191,M=w&=8191,t+=16,n-=16;this.h[0]=_,this.h[1]=k,this.h[2]=S,this.h[3]=I,this.h[4]=E,this.h[5]=C,this.h[6]=T,this.h[7]=O,this.h[8]=P,this.h[9]=M},S.prototype.finish=function(e,t){var n,r,a,i,o=new Uint16Array(10);if(this.leftover){for(i=this.leftover,this.buffer[i++]=1;i<16;i++)this.buffer[i]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,i=2;i<10;i++)this.h[i]+=n,n=this.h[i]>>>13,this.h[i]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,o[0]=this.h[0]+5,n=o[0]>>>13,o[0]&=8191,i=1;i<10;i++)o[i]=this.h[i]+n,n=o[i]>>>13,o[i]&=8191;for(o[9]-=8192,r=(1^n)-1,i=0;i<10;i++)o[i]&=r;for(r=~r,i=0;i<10;i++)this.h[i]=this.h[i]&r|o[i];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),a=this.h[0]+this.pad[0],this.h[0]=65535&a,i=1;i<8;i++)a=(this.h[i]+this.pad[i]|0)+(a>>>16)|0,this.h[i]=65535&a;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,n){var r,a;if(this.leftover){for((a=16-this.leftover)>n&&(a=n),r=0;r=16&&(a=n-n%16,this.blocks(e,t,a),t+=a,n-=a),n){for(r=0;r=128;){for(x=0;x<16;x++)_=8*x+J,O[x]=n[_+0]<<24|n[_+1]<<16|n[_+2]<<8|n[_+3],P[x]=n[_+4]<<24|n[_+5]<<16|n[_+6]<<8|n[_+7];for(x=0;x<80;x++)if(a=M,i=B,o=R,s=N,c=D,u=j,f=U,l=Z,p=F,b=H,h=z,y=q,m=Q,v=K,I=65535&(S=V),E=S>>>16,C=65535&(k=L),T=k>>>16,I+=65535&(S=(q>>>14|D<<18)^(q>>>18|D<<14)^(D>>>9|q<<23)),E+=S>>>16,C+=65535&(k=(D>>>14|q<<18)^(D>>>18|q<<14)^(q>>>9|D<<23)),T+=k>>>16,I+=65535&(S=q&Q^~q&K),E+=S>>>16,C+=65535&(k=D&j^~D&U),T+=k>>>16,k=G[2*x],I+=65535&(S=G[2*x+1]),E+=S>>>16,C+=65535&k,T+=k>>>16,k=O[x%16],E+=(S=P[x%16])>>>16,C+=65535&k,T+=k>>>16,C+=(E+=(I+=65535&S)>>>16)>>>16,I=65535&(S=w=65535&I|E<<16),E=S>>>16,C=65535&(k=A=65535&C|(T+=C>>>16)<<16),T=k>>>16,I+=65535&(S=(Z>>>28|M<<4)^(M>>>2|Z<<30)^(M>>>7|Z<<25)),E+=S>>>16,C+=65535&(k=(M>>>28|Z<<4)^(Z>>>2|M<<30)^(Z>>>7|M<<25)),T+=k>>>16,E+=(S=Z&F^Z&H^F&H)>>>16,C+=65535&(k=M&B^M&R^B&R),T+=k>>>16,d=65535&(C+=(E+=(I+=65535&S)>>>16)>>>16)|(T+=C>>>16)<<16,g=65535&I|E<<16,I=65535&(S=h),E=S>>>16,C=65535&(k=s),T=k>>>16,E+=(S=w)>>>16,C+=65535&(k=A),T+=k>>>16,B=a,R=i,N=o,D=s=65535&(C+=(E+=(I+=65535&S)>>>16)>>>16)|(T+=C>>>16)<<16,j=c,U=u,L=f,M=d,F=l,H=p,z=b,q=h=65535&I|E<<16,Q=y,K=m,V=v,Z=g,x%16==15)for(_=0;_<16;_++)k=O[_],I=65535&(S=P[_]),E=S>>>16,C=65535&k,T=k>>>16,k=O[(_+9)%16],I+=65535&(S=P[(_+9)%16]),E+=S>>>16,C+=65535&k,T+=k>>>16,A=O[(_+1)%16],I+=65535&(S=((w=P[(_+1)%16])>>>1|A<<31)^(w>>>8|A<<24)^(w>>>7|A<<25)),E+=S>>>16,C+=65535&(k=(A>>>1|w<<31)^(A>>>8|w<<24)^A>>>7),T+=k>>>16,A=O[(_+14)%16],E+=(S=((w=P[(_+14)%16])>>>19|A<<13)^(A>>>29|w<<3)^(w>>>6|A<<26))>>>16,C+=65535&(k=(A>>>19|w<<13)^(w>>>29|A<<3)^A>>>6),T+=k>>>16,T+=(C+=(E+=(I+=65535&S)>>>16)>>>16)>>>16,O[_]=65535&C|T<<16,P[_]=65535&I|E<<16;I=65535&(S=Z),E=S>>>16,C=65535&(k=M),T=k>>>16,k=e[0],E+=(S=t[0])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(E+=(I+=65535&S)>>>16)>>>16)>>>16,e[0]=M=65535&C|T<<16,t[0]=Z=65535&I|E<<16,I=65535&(S=F),E=S>>>16,C=65535&(k=B),T=k>>>16,k=e[1],E+=(S=t[1])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(E+=(I+=65535&S)>>>16)>>>16)>>>16,e[1]=B=65535&C|T<<16,t[1]=F=65535&I|E<<16,I=65535&(S=H),E=S>>>16,C=65535&(k=R),T=k>>>16,k=e[2],E+=(S=t[2])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(E+=(I+=65535&S)>>>16)>>>16)>>>16,e[2]=R=65535&C|T<<16,t[2]=H=65535&I|E<<16,I=65535&(S=z),E=S>>>16,C=65535&(k=N),T=k>>>16,k=e[3],E+=(S=t[3])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(E+=(I+=65535&S)>>>16)>>>16)>>>16,e[3]=N=65535&C|T<<16,t[3]=z=65535&I|E<<16,I=65535&(S=q),E=S>>>16,C=65535&(k=D),T=k>>>16,k=e[4],E+=(S=t[4])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(E+=(I+=65535&S)>>>16)>>>16)>>>16,e[4]=D=65535&C|T<<16,t[4]=q=65535&I|E<<16,I=65535&(S=Q),E=S>>>16,C=65535&(k=j),T=k>>>16,k=e[5],E+=(S=t[5])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(E+=(I+=65535&S)>>>16)>>>16)>>>16,e[5]=j=65535&C|T<<16,t[5]=Q=65535&I|E<<16,I=65535&(S=K),E=S>>>16,C=65535&(k=U),T=k>>>16,k=e[6],E+=(S=t[6])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(E+=(I+=65535&S)>>>16)>>>16)>>>16,e[6]=U=65535&C|T<<16,t[6]=K=65535&I|E<<16,I=65535&(S=V),E=S>>>16,C=65535&(k=L),T=k>>>16,k=e[7],E+=(S=t[7])>>>16,C+=65535&k,T+=k>>>16,T+=(C+=(E+=(I+=65535&S)>>>16)>>>16)>>>16,e[7]=L=65535&C|T<<16,t[7]=V=65535&I|E<<16,J+=128,r-=128}return r}function Y(e,t,n){var r,a=new Int32Array(8),i=new Int32Array(8),o=new Uint8Array(256),s=n;for(a[0]=1779033703,a[1]=3144134277,a[2]=1013904242,a[3]=2773480762,a[4]=1359893119,a[5]=2600822924,a[6]=528734635,a[7]=1541459225,i[0]=4089235720,i[1]=2227873595,i[2]=4271175723,i[3]=1595750129,i[4]=2917565137,i[5]=725511199,i[6]=4215389547,i[7]=327033209,W(a,i,t,n),n%=128,r=0;r=0;--a)$(e,t,r=n[a/8|0]>>(7&a)&1),X(t,e),X(e,e),$(e,t,r)}function ne(e,n){var r=[t(),t(),t(),t()];O(r[0],d),O(r[1],l),O(r[2],s),L(r[3],d,l),te(e,r,n)}function re(e,n,a){var i,o=new Uint8Array(64),s=[t(),t(),t(),t()];for(a||r(n,32),Y(o,n,32),o[0]&=248,o[31]&=127,o[31]|=64,ne(s,o),ee(e,s),i=0;i<32;i++)n[i+32]=e[i];return 0}var ae=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ie(e,t){var n,r,a,i;for(r=63;r>=32;--r){for(n=0,a=r-32,i=r-12;a>4)*ae[a],n=t[a]>>8,t[a]&=255;for(a=0;a<32;a++)t[a]-=n*ae[a];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function oe(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;ie(e,n)}function se(e,n,r,a){var i,o,s=new Uint8Array(64),c=new Uint8Array(64),u=new Uint8Array(64),f=new Float64Array(64),d=[t(),t(),t(),t()];Y(s,a,32),s[0]&=248,s[31]&=127,s[31]|=64;var l=r+64;for(i=0;i>7&&U(e[0],o,e[0]),L(e[3],e[0],e[1]),0)}(l,a))return-1;for(i=0;i=0},e.sign.keyPair=function(){var e=new Uint8Array(pe),t=new Uint8Array(be);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(ye(e),e.length!==be)throw new Error("bad secret key size");for(var t=new Uint8Array(pe),n=0;n>24===e},Int16:function(e){return e<<16>>16===e},Int32:function(e){return(0|e)===e},Int53:function(e){return"number"==typeof e&&e>=-p&&e<=p&&Math.floor(e)===e},Range:function(e,t,n){function r(r,a){return n(r,a)&&r>e&&r>>0===e},UInt53:function(e){return"number"==typeof e&&e>=0&&e<=p&&Math.floor(e)===e}};for(var h in b)b[h].toJSON=function(e){return e}.bind(null,h);e.exports=b},87853:function(e,t,n){var r=n(75862),a=n(76763),i=r.tfJSON,o=r.TfTypeError,s=r.TfPropertyTypeError,c=r.tfSubError,u=r.getValueTypeName,f={arrayOf:function(e,t){function n(n,r){return!!a.Array(n)&&!a.Nil(n)&&!(void 0!==t.minLength&&n.lengtht.maxLength)&&(void 0===t.length||n.length===t.length)&&n.every((function(t,n){try{return l(e,t,r)}catch(e){throw c(e,n)}}))}return e=d(e),t=t||{},n.toJSON=function(){var n="["+i(e)+"]";return void 0!==t.length?n+="{"+t.length+"}":void 0===t.minLength&&void 0===t.maxLength||(n+="{"+(void 0===t.minLength?0:t.minLength)+","+(void 0===t.maxLength?1/0:t.maxLength)+"}"),n},n},maybe:function e(t){function n(n,r){return a.Nil(n)||t(n,r,e)}return t=d(t),n.toJSON=function(){return"?"+i(t)},n},map:function(e,t){function n(n,r){if(!a.Object(n))return!1;if(a.Nil(n))return!1;for(var i in n){try{t&&l(t,i,r)}catch(e){throw c(e,i,"key")}try{var o=n[i];l(e,o,r)}catch(e){throw c(e,i)}}return!0}return e=d(e),t&&(t=d(t)),n.toJSON=t?function(){return"{"+i(t)+": "+i(e)+"}"}:function(){return"{"+i(e)+"}"},n},object:function(e){var t={};for(var n in e)t[n]=d(e[n]);function r(e,n){if(!a.Object(e))return!1;if(a.Nil(e))return!1;var r;try{for(r in t)l(t[r],e[r],n)}catch(e){throw c(e,r)}if(n)for(r in e)if(!t[r])throw new s(void 0,r);return!0}return r.toJSON=function(){return i(t)},r},anyOf:function(){var e=[].slice.call(arguments).map(d);function t(t,n){return e.some((function(e){try{return l(e,t,n)}catch(e){return!1}}))}return t.toJSON=function(){return e.map(i).join("|")},t},allOf:function(){var e=[].slice.call(arguments).map(d);function t(t,n){return e.every((function(e){try{return l(e,t,n)}catch(e){return!1}}))}return t.toJSON=function(){return e.map(i).join(" & ")},t},quacksLike:function(e){function t(t){return e===u(t)}return t.toJSON=function(){return e},t},tuple:function(){var e=[].slice.call(arguments).map(d);function t(t,n){return!a.Nil(t)&&!a.Nil(t.length)&&(!n||t.length===e.length)&&e.every((function(e,r){try{return l(e,t[r],n)}catch(e){throw c(e,r)}}))}return t.toJSON=function(){return"("+e.map(i).join(", ")+")"},t},value:function(e){function t(t){return t===e}return t.toJSON=function(){return e},t}};function d(e){if(a.String(e))return"?"===e[0]?f.maybe(e.slice(1)):a[e]||f.quacksLike(e);if(e&&a.Object(e)){if(a.Array(e)){if(1!==e.length)throw new TypeError("Expected compile() parameter of type Array of length 1");return f.arrayOf(e[0])}return f.object(e)}return a.Function(e)?e:f.value(e)}function l(e,t,n,r){if(a.Function(e)){if(e(t,n))return!0;throw new o(r||e,t)}return l(d(e),t,n)}for(var p in f.oneOf=f.anyOf,a)l[p]=a[p];for(p in f)l[p]=f[p];var b=n(20975);for(p in b)l[p]=b[p];l.compile=d,l.TfTypeError=o,l.TfPropertyTypeError=s,e.exports=l},76763:function(e){var t={Array:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return null!=e&&e.constructor===Array})),Boolean:function(e){return"boolean"==typeof e},Function:function(e){return"function"==typeof e},Nil:function(e){return null==e},Number:function(e){return"number"==typeof e},Object:function(e){return"object"==typeof e},String:function(e){return"string"==typeof e},"":function(){return!0}};for(var n in t.Null=t.Nil,t)t[n].toJSON=function(e){return e}.bind(null,n);e.exports=t},41:function(e,t,n){e.exports=n(48255)},73398:function(e){e.exports=function(e){var t,n=!1;return e instanceof Function||(n=!0,t=e,e=null),function(){return n||(n=!0,t=e.apply(this,arguments),e=null),t}}},96942:function(e){e.exports=function e(t,n,r){if(r||(r=[]),r.length1&&void 0!==arguments[1]?arguments[1]:0,n=(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&o.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},f=function(e,t,n){var r=(e=e||{}).random||(e.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return u(r)}},46425:function(e,t,n){var r=n(62332).Buffer,a=n(30248);function i(e,t){if(void 0!==t&&e[0]!==t)throw new Error("Invalid network version");if(33===e.length)return{version:e[0],privateKey:e.slice(1,33),compressed:!1};if(34!==e.length)throw new Error("Invalid WIF length");if(1!==e[33])throw new Error("Invalid compression flag");return{version:e[0],privateKey:e.slice(1,33),compressed:!0}}function o(e,t,n){var a=new r(n?34:33);return a.writeUInt8(e,0),t.copy(a,1),n&&(a[33]=1),a}e.exports={decode:function(e,t){return i(a.decode(e),t)},decodeRaw:i,encode:function(e,t,n){return"number"==typeof e?a.encode(o(e,t,n)):a.encode(o(e.version,e.privateKey,e.compressed))},encodeRaw:o}},8876:function(e){"use strict";e.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},49496:function(e,t,n){"use strict";var r=n(79061).Buffer,a=n(63298).default,i=n(51795).default,o=n(17964).default,s=n(54790).default,c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.map=t.array=t.rustEnum=t.str=t.vecU8=t.tagged=t.vec=t.bool=t.option=t.publicKey=t.i256=t.u256=t.i128=t.u128=t.i64=t.u64=t.struct=t.f64=t.f32=t.i32=t.u32=t.i16=t.u16=t.i8=t.u8=void 0;var u=n(49941),f=n(73234),d=c(n(85468)),l=n(49941);Object.defineProperty(t,"u8",{enumerable:!0,get:function(){return l.u8}}),Object.defineProperty(t,"i8",{enumerable:!0,get:function(){return l.s8}}),Object.defineProperty(t,"u16",{enumerable:!0,get:function(){return l.u16}}),Object.defineProperty(t,"i16",{enumerable:!0,get:function(){return l.s16}}),Object.defineProperty(t,"u32",{enumerable:!0,get:function(){return l.u32}}),Object.defineProperty(t,"i32",{enumerable:!0,get:function(){return l.s32}}),Object.defineProperty(t,"f32",{enumerable:!0,get:function(){return l.f32}}),Object.defineProperty(t,"f64",{enumerable:!0,get:function(){return l.f64}}),Object.defineProperty(t,"struct",{enumerable:!0,get:function(){return l.struct}});var p=function(e){o(n,e);var t=s(n);function n(e,r,i){var o;return a(this,n),(o=t.call(this,e,i)).blob=(0,u.blob)(e),o.signed=r,o}return i(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new d.default(this.blob.decode(e,t),10,"le");return this.signed?n.fromTwos(8*this.span).clone():n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.signed&&(e=e.toTwos(8*this.span)),this.blob.encode(e.toArrayLike(r,"le",this.span),t,n)}}]),n}(u.Layout);function b(e){return new p(8,!1,e)}t.u64=b,t.i64=function(e){return new p(8,!0,e)},t.u128=function(e){return new p(16,!1,e)},t.i128=function(e){return new p(16,!0,e)},t.u256=function(e){return new p(32,!1,e)},t.i256=function(e){return new p(32,!0,e)};var h=function(e){o(n,e);var t=s(n);function n(e,r,i,o){var s;return a(this,n),(s=t.call(this,e.span,o)).layout=e,s.decoder=r,s.encoder=i,s}return i(n,[{key:"decode",value:function(e,t){return this.decoder(this.layout.decode(e,t))}},{key:"encode",value:function(e,t,n){return this.layout.encode(this.encoder(e),t,n)}},{key:"getSpan",value:function(e,t){return this.layout.getSpan(e,t)}}]),n}(u.Layout);t.publicKey=function(e){return new h((0,u.blob)(32),(function(e){return new f.PublicKey(e)}),(function(e){return e.toBuffer()}),e)};var y=function(e){o(n,e);var t=s(n);function n(e,r){var i;return a(this,n),(i=t.call(this,-1,r)).layout=e,i.discriminator=(0,u.u8)(),i}return i(n,[{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null==e?this.discriminator.encode(0,t,n):(this.discriminator.encode(1,t,n),this.layout.encode(e,t,n+1)+1)}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return null;if(1===n)return this.layout.decode(e,t+1);throw new Error("Invalid option "+this.property)}},{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return 1;if(1===n)return this.layout.getSpan(e,t+1)+1;throw new Error("Invalid option "+this.property)}}]),n}(u.Layout);function m(e){if(0===e)return!1;if(1===e)return!0;throw new Error("Invalid bool: "+e)}function v(e){return e?1:0}function g(e){var t=(0,u.u32)("length"),n=(0,u.struct)([t,(0,u.blob)((0,u.offset)(t,-t.span),"data")]);return new h(n,(function(e){return e.data}),(function(e){return{data:e}}),e)}t.option=function(e,t){return new y(e,t)},t.bool=function(e){return new h((0,u.u8)(),m,v,e)},t.vec=function(e,t){var n=(0,u.u32)("length"),r=(0,u.struct)([n,(0,u.seq)(e,(0,u.offset)(n,-n.span),"values")]);return new h(r,(function(e){return e.values}),(function(e){return{values:e}}),t)},t.tagged=function(e,t,n){var r=(0,u.struct)([b("tag"),t.replicate("data")]);return new h(r,(function(t){var n=t.tag,r=t.data;if(!n.eq(e))throw new Error("Invalid tag, expected: "+e.toString("hex")+", got: "+n.toString("hex"));return r}),(function(t){return{tag:e,data:t}}),n)},t.vecU8=g,t.str=function(e){return new h(g(),(function(e){return e.toString("utf-8")}),(function(e){return r.from(e,"utf-8")}),e)},t.rustEnum=function(e,t,n){var r=(0,u.union)(null!=n?n:(0,u.u8)(),t);return e.forEach((function(e,t){return r.addVariant(t,e,e.property)})),r},t.array=function(e,t,n){var r=(0,u.struct)([(0,u.seq)(e,t,"values")]);return new h(r,(function(e){return e.values}),(function(e){return{values:e}}),n)};var A=function(e){o(n,e);var t=s(n);function n(e,r,i){var o;return a(this,n),(o=t.call(this,e.span+r.span,i)).keyLayout=e,o.valueLayout=r,o}return i(n,[{key:"decode",value:function(e,t){return t=t||0,[this.keyLayout.decode(e,t),this.valueLayout.decode(e,t+this.keyLayout.getSpan(e,t))]}},{key:"encode",value:function(e,t,n){n=n||0;var r=this.keyLayout.encode(e[0],t,n);return r+this.valueLayout.encode(e[1],t,n+r)}},{key:"getSpan",value:function(e,t){return this.keyLayout.getSpan(e,t)+this.valueLayout.getSpan(e,t)}}]),n}(u.Layout);t.map=function(e,t,n){var r=(0,u.u32)("length"),a=(0,u.struct)([r,(0,u.seq)(new A(e,t),(0,u.offset)(r,-r.span),"values")]);return new h(a,(function(e){var t=e.values;return new Map(t)}),(function(e){return{values:Array.from(e.entries())}}),n)}},69921:function(e,t,n){"use strict";n.d(t,{Z:function(){return re}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?f(A,--v):0,y--,10===g&&(y=1,h--),g}function k(){return g=v2||C(g)>3?"":" "}function B(e,t){for(;--t&&k()&&!(g<48||g>102||g>57&&g<65||g>70&&g<97););return E(e,I()+(t<6&&32==S()&&32==k()))}function R(e){for(;k();)switch(g){case e:return v;case 34:case 39:34!==e&&39!==e&&R(g);break;case 40:41===e&&R(e);break;case 92:k()}return v}function N(e,t){for(;k()&&e+g!==57&&(e+g!==84||47!==S()););return"/*"+E(t,v-1)+"*"+i(47===e?e:k())}function D(e){for(;!C(S());)k();return E(e,v)}var j="-ms-",U="-moz-",L="-webkit-",Z="comm",F="rule",H="decl",z="@keyframes";function q(e,t){for(var n="",r=p(e),a=0;a0&&l(U)-m&&b(g>32?W(U+";",r,n,m-1):W(c(U," ","")+";",r,n,m-2),p);break;case 59:U+=";";default:if(b(j=J(U,t,n,h,y,a,d,T,O=[],R=[],m),o),123===C)if(0===y)V(U,t,j,j,O,o,m,d,R);else switch(99===v&&110===f(U,3)?100:v){case 100:case 109:case 115:V(e,j,j,r&&b(J(e,j,j,0,0,a,d,T,a,O=[],m),R),a,R,m,d,r?O:R);break;default:V(U,j,j,j,[""],R,0,d,R)}}h=y=g=0,w=E=1,T=U="",m=s;break;case 58:m=1+l(U),g=A;default:if(w<1)if(123==C)--w;else if(125==C&&0==w++&&125==_())continue;switch(U+=i(C),C*w){case 38:E=y>0?1:(U+="\f",-1);break;case 44:d[h++]=(l(U)-1)*E,E=1;break;case 64:45===S()&&(U+=P(k())),v=S(),y=m=l(T=U+=D(I())),C++;break;case 45:45===A&&2==l(U)&&(w=0)}}return o}function J(e,t,n,r,i,o,u,f,l,b,h){for(var y=i-1,m=0===i?o:[""],v=p(m),g=0,A=0,x=0;g0?m[_]+" "+k:c(k,/&\f/g,m[_])))&&(l[x++]=S);return w(e,t,n,0===i?F:f,l,b,h)}function G(e,t,n){return w(e,t,n,Z,i(g),d(e,2,-2),0)}function W(e,t,n,r){return w(e,t,n,H,d(e,0,r),d(e,r+1,-1),r)}var Y=function(e,t,n){for(var r=0,a=0;r=a,a=S(),38===r&&12===a&&(t[n]=1),!C(a);)k();return E(e,v)},X=new WeakMap,$=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||X.get(n))&&!r){X.set(e,!0);for(var a=[],o=function(e,t){return O(function(e,t){var n=-1,r=44;do{switch(C(r)){case 0:38===r&&12===S()&&(t[n]=1),e[n]+=Y(v-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===S()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=k());return e}(T(e),t))}(t,a),s=n.props,c=0,u=0;c6)switch(f(e,t+1)){case 109:if(45!==f(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+U+(108==f(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?te(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==f(e,t+1))break;case 6444:switch(f(e,l(e)-3-(~u(e,"!important")&&10))){case 107:return c(e,":",":"+L)+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(45===f(e,14)?"inline-":"")+"box$3$1"+L+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch(f(e,t+11)){case 114:return L+e+j+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+j+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+j+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+j+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=te(e.value,e.length);break;case z:return q([x(e,{value:c(e.value,"@","@"+L)})],r);case F:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return q([x(e,{props:[c(t,/:(read-\w+)/,":"+U+"$1")]})],r);case"::placeholder":return q([x(e,{props:[c(t,/:(plac\w+)/,":"+L+"input-$1")]}),x(e,{props:[c(t,/:(plac\w+)/,":"+U+"$1")]}),x(e,{props:[c(t,/:(plac\w+)/,j+"input-$1")]})],r)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a,i,o=e.stylisPlugins||ne,s={},c=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(63246),o=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},f=(0,i.Z)((function(e){return c(e)?e:e.replace(o,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===a[e]||c(e)||"number"!=typeof t||0===t?t:t+"px"};function l(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a=0||"tuple"===e)&&b[t])return!0;return(p[t]||"payable"===t)&&d.throwArgumentError("invalid modifier","name",t),!1}function y(e,t){for(var n in t)(0,c.defineReadOnly)(e,n,t[n])}var m=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),v=new RegExp(/^(.*)\[([0-9]*)\]$/),g=function(){function e(t,n){(0,i.Z)(this,e),t!==l&&d.throwError("use fromString",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),y(this,n);var r=this.type.match(v);y(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:e.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return(0,o.Z)(e,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||d.throwArgumentError("invalid format type","format",e),e===m.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var n="";return"array"===this.baseType?(n+=this.arrayChildren.format(e),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==m.sighash&&(n+=this.type),n+="("+this.components.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+")"):n+=this.type,e!==m.sighash&&(!0===this.indexed&&(n+=" indexed"),e===m.full&&this.name&&(n+=" "+this.name)),n}}],[{key:"from",value:function(t,n){return"string"==typeof t?e.fromString(t,n):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(l,{name:t.name||null,type:O(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,n){return r=function(e,t){var n=e;function r(t){d.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function a(e){var n={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(n.indexed=!1),n}e=e.replace(/\s/g," ");for(var i={type:"",name:"",state:{allowType:!0}},o=i,s=0;s2&&d.throwArgumentError("invalid human-readable ABI signature","value",e),n[1].match(/^[0-9]+$/)||d.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=s.O$.from(n[1]),n[0]):e}function k(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function S(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&d.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&d.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||d.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&d.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&d.throwArgumentError("unable to determine stateMutability","value",e),t}var I=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||d.throwArgumentError("invalid format type","format",e),e===m.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});e===m.sighash&&d.throwError("cannot format a constructor for sighash",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isConstructorFragment(e))return e;"constructor"!==e.type&&d.throwArgumentError("invalid constructor object","value",e);var t=S(e);t.constant&&d.throwArgumentError("constructor cannot be constant","value",e);var r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(g.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?s.O$.from(e.gas):null};return new n(l,r)}},{key:"fromString",value:function(e){var t={type:"constructor"},r=(e=_(e,t)).match(B);return r&&"constructor"===r[1].trim()||d.throwArgumentError("invalid constructor string","value",e),t.inputs=A(r[2].trim(),!1),k(r[3].trim(),t),n.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),n}(w),E=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||d.throwArgumentError("invalid format type","format",e),e===m.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==m.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+") ",e!==m.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isFunctionFragment(e))return e;"function"!==e.type&&d.throwArgumentError("invalid function object","value",e);var t=S(e),r={type:e.type,name:M(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(g.fromObject):[],outputs:e.outputs?e.outputs.map(g.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?s.O$.from(e.gas):null};return new n(l,r)}},{key:"fromString",value:function(e){var t={type:"function"},r=(e=_(e,t)).split(" returns ");r.length>2&&d.throwArgumentError("invalid function string","value",e);var a=r[0].match(B);if(a||d.throwArgumentError("invalid function signature","value",e),t.name=a[1].trim(),t.name&&M(t.name),t.inputs=A(a[2],!1),k(a[3].trim(),t),r.length>1){var i=r[1].match(B);""==i[1].trim()&&""==i[3].trim()||d.throwArgumentError("unexpected tokens","value",e),t.outputs=A(i[2],!1)}else t.outputs=[];return n.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),n}(I);function C(e){var t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||d.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}var T=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||d.throwArgumentError("invalid format type","format",e),e===m.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==m.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+") ").trim()}}],[{key:"from",value:function(e){return"string"==typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isErrorFragment(e))return e;"error"!==e.type&&d.throwArgumentError("invalid error object","value",e);var t={type:e.type,name:M(e.name),inputs:e.inputs?e.inputs.map(g.fromObject):[]};return C(new n(l,t))}},{key:"fromString",value:function(e){var t={type:"error"},r=e.match(B);return r||d.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&M(t.name),t.inputs=A(r[2],!1),C(n.fromObject(t))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}]),n}(w);function O(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var P=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function M(e){return e&&e.match(P)||d.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var B=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$"),R=n(55483),N=new u.Logger(f);function D(e){var t=[];return function e(n,r){if(Array.isArray(r))for(var a in r){var i=n.slice();i.push(a);try{e(i,r[a])}catch(e){t.push({path:i,error:e})}}}([],e),t}var j=function(){function e(t,n,r,a){(0,i.Z)(this,e),this.name=t,this.type=n,this.localName=r,this.dynamic=a}return(0,o.Z)(e,[{key:"_throwError",value:function(e,t){N.throwArgumentError(e,this.localName,t)}}]),e}(),U=function(){function e(t){(0,i.Z)(this,e),(0,c.defineReadOnly)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}return(0,o.Z)(e,[{key:"data",get:function(){return(0,R.hexConcat)(this._data)}},{key:"length",get:function(){return this._dataLength}},{key:"_writeData",value:function(e){return this._data.push(e),this._dataLength+=e.length,e.length}},{key:"appendWriter",value:function(e){return this._writeData((0,R.concat)(e._data))}},{key:"writeBytes",value:function(e){var t=(0,R.arrayify)(e),n=t.length%this.wordSize;return n&&(t=(0,R.concat)([t,this._padding.slice(n)])),this._writeData(t)}},{key:"_getValue",value:function(e){var t=(0,R.arrayify)(s.O$.from(e));return t.length>this.wordSize&&N.throwError("value out-of-bounds",u.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,R.concat)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){e._data[t]=e._getValue(n)}}}]),e}(),L=function(){function e(t,n,r,a){(0,i.Z)(this,e),(0,c.defineReadOnly)(this,"_data",(0,R.arrayify)(t)),(0,c.defineReadOnly)(this,"wordSize",n||32),(0,c.defineReadOnly)(this,"_coerceFunc",r),(0,c.defineReadOnly)(this,"allowLoose",a),this._offset=0}return(0,o.Z)(e,[{key:"data",get:function(){return(0,R.hexlify)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,n){return this._coerceFunc?this._coerceFunc(t,n):e.coerce(t,n)}},{key:"_peekBytes",value:function(e,t,n){var r=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?r=t:N.throwError("data out-of-bounds",u.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)}},{key:"readValue",value:function(){return s.O$.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t}}]),e}(),Z=n(33286),F=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(e){return(0,i.Z)(this,n),t.call(this,"address","address",e,!1)}return(0,o.Z)(n,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000"}},{key:"encode",value:function(e,t){try{t=(0,Z.getAddress)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)}},{key:"decode",value:function(e){return(0,Z.getAddress)((0,R.hexZeroPad)(e.readValue().toHexString(),20))}}]),n}(j),H=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(e){var r;return(0,i.Z)(this,n),(r=t.call(this,e.name,e.type,void 0,e.dynamic)).coder=e,r}return(0,o.Z)(n,[{key:"defaultValue",value:function(){return this.coder.defaultValue()}},{key:"encode",value:function(e,t){return this.coder.encode(e,t)}},{key:"decode",value:function(e){return this.coder.decode(e)}}]),n}(j),z=new u.Logger(f);function q(e,t,n){var r=null;if(Array.isArray(n))r=n;else if(n&&"object"==typeof n){var a={};r=t.map((function(e){var t=e.localName;return t||z.throwError("cannot encode object for signature with missing names",u.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:n}),a[t]&&z.throwError("cannot encode object for signature with duplicate names",u.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:n}),a[t]=!0,n[t]}))}else z.throwArgumentError("invalid tuple value","tuple",n);t.length!==r.length&&z.throwArgumentError("types/value length mismatch","tuple",n);var i=new U(e.wordSize),o=new U(e.wordSize),s=[];return t.forEach((function(e,t){var n=r[t];if(e.dynamic){var a=o.length;e.encode(o,n);var c=i.writeUpdatableValue();s.push((function(e){c(e+a)}))}else e.encode(i,n)})),s.forEach((function(e){e(i.length)})),e.appendWriter(i)+e.appendWriter(o)}function Q(e,t){var n=[],r=e.subReader(0);t.forEach((function(t){var a=null;if(t.dynamic){var i=e.readValue(),o=r.subReader(i.toNumber());try{a=t.decode(o)}catch(e){if(e.code===u.Logger.errors.BUFFER_OVERRUN)throw e;(a=e).baseType=t.name,a.name=t.localName,a.type=t.type}}else try{a=t.decode(e)}catch(e){if(e.code===u.Logger.errors.BUFFER_OVERRUN)throw e;(a=e).baseType=t.name,a.name=t.localName,a.type=t.type}null!=a&&n.push(a)}));var a=t.reduce((function(e,t){var n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});t.forEach((function(e,t){var r=e.localName;if(r&&1===a[r]&&("length"===r&&(r="_length"),null==n[r])){var i=n[t];i instanceof Error?Object.defineProperty(n,r,{enumerable:!0,get:function(){throw i}}):n[r]=i}}));for(var i=function(){var e=n[o];e instanceof Error&&Object.defineProperty(n,o,{enumerable:!0,get:function(){throw e}})},o=0;o=0?r:"")+"]",c=-1===r||e.dynamic;return(o=t.call(this,"array",s,a,c)).coder=e,o.length=r,o}return(0,o.Z)(n,[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],n=0;ne._data.length&&z.throwError("insufficient data length",u.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});for(var n=[],r=0;r256||r%8!=0)&&ie.throwArgumentError("invalid "+n[1]+" bit length","param",e),new te(r/8,"int"===n[1],e.name)}if(n=e.type.match(oe)){var a=parseInt(n[1]);return(0===a||a>32)&&ie.throwArgumentError("invalid bytes length","param",e),new X(a,e.name)}return ie.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new L(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new U(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,n=e.map((function(e){return t._getCoder(g.from(e))}));return new ae(n,"_").defaultValue()}},{key:"encode",value:function(e,t){var n=this;e.length!==t.length&&ie.throwError("types/values length mismatch",u.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var r=e.map((function(e){return n._getCoder(g.from(e))})),a=new ae(r,"_"),i=this._getWriter();return a.encode(i,t),i.data}},{key:"decode",value:function(e,t,n){var r=this,a=e.map((function(e){return r._getCoder(g.from(e))}));return new ae(a,"_").decode(this._getReader((0,R.arrayify)(t),n))}}]),e}(),ue=new ce,fe=n(76379),de=n(49651),le=new u.Logger(f),pe=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n)}(c.Description),be=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n)}(c.Description),he=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n)}(c.Description),ye=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,null,[{key:"isIndexed",value:function(e){return!(!e||!e._isIndexed)}}]),n}(c.Description),me={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function ve(e,t){var n=new Error("deferred error during ABI decoding triggered accessing ".concat(e));return n.error=t,n}var ge=function(){function e(t){var n=this;(0,i.Z)(this,e);var r=[];r="string"==typeof t?JSON.parse(t):t,(0,c.defineReadOnly)(this,"fragments",r.map((function(e){return w.from(e)})).filter((function(e){return null!=e}))),(0,c.defineReadOnly)(this,"_abiCoder",(0,c.getStatic)(this instanceof e?this.constructor:void 0,"getAbiCoder")()),(0,c.defineReadOnly)(this,"functions",{}),(0,c.defineReadOnly)(this,"errors",{}),(0,c.defineReadOnly)(this,"events",{}),(0,c.defineReadOnly)(this,"structs",{}),this.fragments.forEach((function(e){var t=null;switch(e.type){case"constructor":return n.deploy?void le.warn("duplicate definition - constructor"):void(0,c.defineReadOnly)(n,"deploy",e);case"function":t=n.functions;break;case"event":t=n.events;break;case"error":t=n.errors;break;default:return}var r=e.format();t[r]?le.warn("duplicate definition - "+r):t[r]=e})),this.deploy||(0,c.defineReadOnly)(this,"deploy",I.from({payable:!1,type:"constructor"})),(0,c.defineReadOnly)(this,"_isInterface",!0)}return(0,o.Z)(e,[{key:"format",value:function(e){e||(e=m.full),e===m.sighash&&le.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map((function(t){return t.format(e)}));return e===m.json?JSON.stringify(t.map((function(e){return JSON.parse(e)}))):t}},{key:"getFunction",value:function(e){if((0,R.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];le.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),r=Object.keys(this.functions).filter((function(e){return e.split("(")[0]===n}));return 0===r.length?le.throwArgumentError("no matching function","name",n):r.length>1&&le.throwArgumentError("multiple matching functions","name",n),this.functions[r[0]]}var a=this.functions[E.fromString(e).format()];return a||le.throwArgumentError("no matching function","signature",e),a}},{key:"getEvent",value:function(e){if((0,R.isHexString)(e)){var t=e.toLowerCase();for(var n in this.events)if(t===this.getEventTopic(n))return this.events[n];le.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var r=e.trim(),a=Object.keys(this.events).filter((function(e){return e.split("(")[0]===r}));return 0===a.length?le.throwArgumentError("no matching event","name",r):a.length>1&&le.throwArgumentError("multiple matching events","name",r),this.events[a[0]]}var i=this.events[x.fromString(e).format()];return i||le.throwArgumentError("no matching event","signature",e),i}},{key:"getError",value:function(e){if((0,R.isHexString)(e)){var t=(0,c.getStatic)(this.constructor,"getSighash");for(var n in this.errors)if(e===t(this.errors[n]))return this.errors[n];le.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var r=e.trim(),a=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===r}));return 0===a.length?le.throwArgumentError("no matching error","name",r):a.length>1&&le.throwArgumentError("multiple matching errors","name",r),this.errors[a[0]]}var i=this.errors[E.fromString(e).format()];return i||le.throwArgumentError("no matching error","signature",e),i}},{key:"getSighash",value:function(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,c.getStatic)(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,c.getStatic)(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,t){"string"==typeof e&&(e=this.getError(e));var n=(0,R.arrayify)(t);return(0,R.hexlify)(n.slice(0,4))!==this.getSighash(e)&&le.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",(0,R.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"==typeof e&&(e=this.getError(e)),(0,R.hexlify)((0,R.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e));var n=(0,R.arrayify)(t);return(0,R.hexlify)(n.slice(0,4))!==this.getSighash(e)&&le.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",(0,R.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,R.hexlify)((0,R.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e));var n=(0,R.arrayify)(t),r=null,a="",i=null,o=null,s=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch(d){}break;case 4:var c=(0,R.hexlify)(n.slice(0,4)),f=me[c];if(f)i=this._abiCoder.decode(f.inputs,n.slice(4)),o=f.name,s=f.signature,f.reason&&(r=i[0]),"Error"===o?a="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(i[0])):"Panic"===o&&(a="; VM Exception while processing transaction: reverted with panic code ".concat(i[0]));else try{var d=this.getError(c);i=this._abiCoder.decode(d.inputs,n.slice(4)),o=d.name,s=d.format()}catch(d){}}return le.throwError("call revert exception"+a,u.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,R.hexlify)(t),errorArgs:i,errorName:o,errorSignature:s,reason:r})}},{key:"encodeFunctionResult",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,R.hexlify)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var n=this;"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&le.throwError("too many arguments for "+e.format(),u.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var r=[];e.anonymous||r.push(this.getEventTopic(e));var a=function(e,t){return"string"===e.type?(0,fe.id)(t):"bytes"===e.type?(0,de.keccak256)((0,R.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=s.O$.from(t).toHexString()),"address"===e.type&&n._abiCoder.encode(["address"],[t]),(0,R.hexZeroPad)((0,R.hexlify)(t),32))};for(t.forEach((function(t,n){var i=e.inputs[n];i.indexed?null==t?r.push(null):"array"===i.baseType||"tuple"===i.baseType?le.throwArgumentError("filtering with tuples or arrays not supported","contract."+i.name,t):Array.isArray(t)?r.push(t.map((function(e){return a(i,e)}))):r.push(a(i,t)):null!=t&&le.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+i.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}},{key:"encodeEventLog",value:function(e,t){var n=this;"string"==typeof e&&(e=this.getEvent(e));var r=[],a=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&le.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,o){var s=t[o];if(e.indexed)if("string"===e.type)r.push((0,fe.id)(s));else if("bytes"===e.type)r.push((0,de.keccak256)(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(n._abiCoder.encode([e.type],[s]))}else a.push(e),i.push(s)})),{data:this._abiCoder.encode(a,i),topics:r}}},{key:"decodeEventLog",value:function(e,t,n){if("string"==typeof e&&(e=this.getEvent(e)),null!=n&&!e.anonymous){var r=this.getEventTopic(e);(0,R.isHexString)(n[0],32)&&n[0].toLowerCase()===r||le.throwError("fragment/topic mismatch",u.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:r,value:n[0]}),n=n.slice(1)}var a=[],i=[],o=[];e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(a.push(g.fromObject({type:"bytes32",name:e.name})),o.push(!0)):(a.push(e),o.push(!1)):(i.push(e),o.push(!1))}));var s=null!=n?this._abiCoder.decode(a,(0,R.concat)(n)):null,c=this._abiCoder.decode(i,t,!0),f=[],d=0,l=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==s)f[t]=new ye({_isIndexed:!0,hash:null});else if(o[t])f[t]=new ye({_isIndexed:!0,hash:s[l++]});else try{f[t]=s[l++]}catch(e){f[t]=e}else try{f[t]=c[d++]}catch(e){f[t]=e}if(e.name&&null==f[e.name]){var n=f[t];n instanceof Error?Object.defineProperty(f,e.name,{enumerable:!0,get:function(){throw ve("property ".concat(JSON.stringify(e.name)),n)}}):f[e.name]=n}}));for(var p=function(e){var t=f[e];t instanceof Error&&Object.defineProperty(f,e,{enumerable:!0,get:function(){throw ve("index ".concat(e),t)}})},b=0;b=0)throw e;return u.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",s.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:n})}))),null==n.chainId?n.chainId=this.getChainId():n.chainId=Promise.all([Promise.resolve(n.chainId),this.getChainId()]).then((function(t){return 0!==t[1]&&t[0]!==t[1]&&u.throwArgumentError("chainId address mismatch","transaction",e),t[0]})),t.next=23,(0,o.resolveProperties)(n);case 23:return t.abrupt("return",t.sent);case 24:case"end":return t.stop()}}),t,this)})))}},{key:"_checkProvider",value:function(e){this.provider||u.throwError("missing provider",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}}],[{key:"isSigner",value:function(e){return!(!e||!e._isSigner)}}]),e}()},33286:function(e,t,n){"use strict";n.r(t),n.d(t,{getAddress:function(){return h},getContractAddress:function(){return v},getCreate2Address:function(){return g},getIcapAddress:function(){return m},isAddress:function(){return y}});var r=n(55483),a=n(28218),i=n(49651),o=n(31562),s=new(n(63139).Logger)("address/5.7.0");function c(e){(0,r.isHexString)(e,20)||s.throwArgumentError("invalid address","address",e);for(var t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40),a=0;a<40;a++)n[a]=t[a].charCodeAt(0);for(var o=(0,r.arrayify)((0,i.keccak256)(n)),c=0;c<40;c+=2)o[c>>1]>>4>=8&&(t[c]=t[c].toUpperCase()),(15&o[c>>1])>=8&&(t[c+1]=t[c+1].toUpperCase());return"0x"+t.join("")}for(var u={},f=0;f<10;f++)u[String(f)]=String(f);for(var d=0;d<26;d++)u[String.fromCharCode(65+d)]=String(10+d);var l,p=Math.floor((l=9007199254740991,Math.log10?Math.log10(l):Math.log(l)/Math.LN10));function b(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return u[e]})).join("");t.length>=p;){var n=t.substring(0,p);t=parseInt(n,10)%97+t.substring(n.length)}for(var r=String(98-parseInt(t,10)%97);r.length<2;)r="0"+r;return r}function h(e){var t=null;if("string"!=typeof e&&s.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=c(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&s.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==b(e)&&s.throwArgumentError("bad icap checksum","address",e),t=(0,a.g$)(e.substring(4));t.length<40;)t="0"+t;t=c("0x"+t)}else s.throwArgumentError("invalid address","address",e);return t}function y(e){try{return h(e),!0}catch(e){}return!1}function m(e){for(var t=(0,a.t2)(h(e).substring(2)).toUpperCase();t.length<30;)t="0"+t;return"XE"+b("XE00"+t)+t}function v(e){var t=null;try{t=h(e.from)}catch(t){s.throwArgumentError("missing from address","transaction",e)}var n=(0,r.stripZeros)((0,r.arrayify)(a.O$.from(e.nonce).toHexString()));return h((0,r.hexDataSlice)((0,i.keccak256)((0,o.encode)([t,n])),12))}function g(e,t,n){return 32!==(0,r.hexDataLength)(t)&&s.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,r.hexDataLength)(n)&&s.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),h((0,r.hexDataSlice)((0,i.keccak256)((0,r.concat)(["0xff",h(e),t,n])),12))}},79453:function(e,t,n){"use strict";n.d(t,{J:function(){return a},c:function(){return i}});var r=n(55483);function a(e){e=atob(e);for(var t=[],n=0;n0;)n.push(a%this.base),a=a/this.base|0}for(var s="",c=0;0===t[c]&&c=0;--u)s+=this.alphabet[n[u]];return s}},{key:"decode",value:function(e){if("string"!=typeof e)throw new TypeError("Expected String");var t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(var n=0;n>=8;for(;a>0;)t.push(255&a),a>>=8}for(var s=0;e[s]===this._leader&&s0&&(10===arguments[0]?h||(h=!0,d.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?d.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",c.Logger.errors.UNEXPECTED_ARGUMENT,{}):d.throwError("BigNumber.toString does not accept parameters",c.Logger.errors.UNEXPECTED_ARGUMENT,{})),g(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(e){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(t){if(t instanceof e)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e(l,m(t)):t.match(/^-?[0-9]+$/)?new e(l,m(new f(t))):d.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&A("underflow","BigNumber.from",t),(t>=p||t<=-p)&&A("overflow","BigNumber.from",t),e.from(String(t));var n=t;if("bigint"==typeof n)return e.from(n.toString());if((0,s.isBytes)(n))return e.from((0,s.hexlify)(n));if(n)if(n.toHexString){var r=n.toHexString();if("string"==typeof r)return e.from(r)}else{var a=n._hex;if(null==a&&"BigNumber"===n.type&&(a=n.hex),"string"==typeof a&&((0,s.isHexString)(a)||"-"===a[0]&&(0,s.isHexString)(a.substring(1))))return e.from(a)}return d.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}]),e}();function m(e){if("string"!=typeof e)return m(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&d.throwArgumentError("invalid hex","value",e),"0x00"===(e=m(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function v(e){return y.from(m(e))}function g(e){var t=y.from(e).toHexString();return"-"===t[0]?new f("-"+t.substring(3),16):new f(t.substring(2),16)}function A(e,t,n){var r={fault:e,operation:t};return null!=n&&(r.value=n),d.throwError(e,c.Logger.errors.NUMERIC_FAULT,r)}function w(e){return new f(e,36).toString(16)}function x(e){return new f(e,16).toString(36)}},55483:function(e,t,n){"use strict";n.r(t),n.d(t,{arrayify:function(){return u},concat:function(){return f},hexConcat:function(){return v},hexDataLength:function(){return y},hexDataSlice:function(){return m},hexStripZeros:function(){return A},hexValue:function(){return g},hexZeroPad:function(){return w},hexlify:function(){return h},isBytes:function(){return c},isBytesLike:function(){return o},isHexString:function(){return p},joinSignature:function(){return _},splitSignature:function(){return x},stripZeros:function(){return d},zeroPad:function(){return l}});var r=new(n(63139).Logger)("bytes/5.7.0");function a(e){return!!e.toHexString}function i(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return i(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function o(e){return p(e)&&!(e.length%2)||c(e)}function s(e){return"number"==typeof e&&e==e&&e%1==0}function c(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!s(e.length)||e.length<0)return!1;for(var t=0;t=256)return!1}return!0}function u(e,t){if(t||(t={}),"number"==typeof e){r.checkSafeUint53(e,"invalid arrayify value");for(var n=[];e;)n.unshift(255&e),e=parseInt(String(e/256));return 0===n.length&&n.push(0),i(new Uint8Array(n))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e)&&(e=e.toHexString()),p(e)){var o=e.substring(2);o.length%2&&("left"===t.hexPad?o="0"+o:"right"===t.hexPad?o+="0":r.throwArgumentError("hex data is odd-length","value",e));for(var s=[],u=0;ut&&r.throwArgumentError("value out of range","value",arguments[0]);var n=new Uint8Array(t);return n.set(e,t-e.length),i(n)}function p(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var b="0123456789abcdef";function h(e,t){if(t||(t={}),"number"==typeof e){r.checkSafeUint53(e,"invalid hexlify value");for(var n="";e;)n=b[15&e]+n,e=Math.floor(e/16);return n.length?(n.length%2&&(n="0"+n),"0x"+n):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e))return e.toHexString();if(p(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":r.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(c(e)){for(var i="0x",o=0;o>4]+b[15&s]}return i}return r.throwArgumentError("invalid hexlify value","value",e)}function y(e){if("string"!=typeof e)e=h(e);else if(!p(e)||e.length%2)return null;return(e.length-2)/2}function m(e,t,n){return"string"!=typeof e?e=h(e):(!p(e)||e.length%2)&&r.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)}function v(e){var t="0x";return e.forEach((function(e){t+=h(e).substring(2)})),t}function g(e){var t=A(h(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function A(e){"string"!=typeof e&&(e=h(e)),p(e)||r.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t2*t+2&&r.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function x(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(o(e)){var n=u(e);64===n.length?(t.v=27+(n[32]>>7),n[32]&=127,t.r=h(n.slice(0,32)),t.s=h(n.slice(32,64))):65===n.length?(t.r=h(n.slice(0,32)),t.s=h(n.slice(32,64)),t.v=n[64]):r.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:r.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(n[32]|=128),t._vs=h(n.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){var a=l(u(t._vs),32);t._vs=h(a);var i=a[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&r.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),a[0]&=127;var s=h(a);null==t.s?t.s=s:t.s!==s&&r.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?r.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{var c=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==c&&r.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&p(t.r)?t.r=w(t.r,32):r.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&p(t.s)?t.s=w(t.s,32):r.throwArgumentError("signature missing or invalid s","signature",e);var f=u(t.s);f[0]>=128&&r.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(f[0]|=128);var d=h(f);t._vs&&(p(t._vs)||r.throwArgumentError("signature invalid _vs","signature",e),t._vs=w(t._vs,32)),null==t._vs?t._vs=d:t._vs!==d&&r.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function _(e){return h(f([(e=x(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},92983:function(e,t,n){"use strict";n.d(t,{Bz:function(){return s},_Y:function(){return i},fh:function(){return o},tL:function(){return a}});var r=n(28218),a=r.O$.from(-1),i=r.O$.from(0),o=r.O$.from(1),s=r.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},79573:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r="0x0000000000000000000000000000000000000000000000000000000000000000"},67180:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="hash/5.7.0"},76379:function(e,t,n){"use strict";n.d(t,{id:function(){return i}});var r=n(49651),a=n(81680);function i(e){return(0,r.keccak256)((0,a.Y0)(e))}},41404:function(e,t,n){"use strict";n.r(t),n.d(t,{_TypedDataEncoder:function(){return o.E},dnsEncode:function(){return a.Kn},ensNormalize:function(){return a.w3},hashMessage:function(){return i.r},id:function(){return r.id},isValidName:function(){return a.r1},messagePrefix:function(){return i.B},namehash:function(){return a.VM}});var r=n(76379),a=n(42734),i=n(91801),o=n(57683)},91801:function(e,t,n){"use strict";n.d(t,{B:function(){return o},r:function(){return s}});var r=n(55483),a=n(49651),i=n(81680),o="Ethereum Signed Message:\n";function s(e){return"string"==typeof e&&(e=(0,i.Y0)(e)),(0,a.keccak256)((0,r.concat)([(0,i.Y0)(o),(0,i.Y0)(String(e.length)),e]))}},42734:function(e,t,n){"use strict";n.d(t,{Kn:function(){return F},w3:function(){return U},r1:function(){return L},VM:function(){return Z}});var r=n(55483),a=n(81680),i=n(49651),o=n(63139),s=n(67180),c=n(19961),u=n(745);function f(e,t){null==t&&(t=1);var n=[],r=n.forEach;return function e(t,a){r.call(t,(function(t){a>0&&Array.isArray(t)?e(t,a-1):n.push(t)}))}(e,t),n}function d(e){return 1&e?~e>>1:e>>1}function l(e,t){for(var n=Array(e),r=0,a=-1;r>--u&1}for(var l=Math.pow(2,31),p=l>>>1,b=p>>1,h=l-1,y=0,m=0;m<31;m++)y=y<<1|d();for(var v=[],g=0,A=l;;){for(var w=Math.floor(((y-g+1)*a-1)/A),x=0,_=r;_-x>1;){var k=x+_>>>1;w>>1|d(),S=S<<1^p,I=(I^p)<<1|p|1;g=S,A=1+I-S}var E=r-4;return v.map((function(t){switch(t-E){case 3:return E+65792+(e[c++]<<16|e[c++]<<8|e[c++]);case 2:return E+256+(e[c++]<<8|e[c++]);case 1:return E+e[c++];default:return t-1}}))}(A),x=0,function(){return w[x++]}),k=new Set(b(_)),S=new Set(b(_)),I=function(e){for(var t=[];;){var n=e();if(0==n)break;t.push(y(n,e))}for(;;){var r=e()-1;if(r<0)break;t.push(m(r,e))}return function(e){for(var t={},n=0;n>=1),check:2==r}}()),C=45,T=95;function O(e){return(0,a.XL)(e)}function P(e){return e.filter((function(e){return 65039!=e}))}function M(e){var t,n=(0,u.Z)(e.split("."));try{for(n.s();!(t=n.n()).done;){var r=t.value,a=O(r);try{for(var i=a.lastIndexOf(T)-1;i>=0;i--)if(a[i]!==T)throw new Error("underscore only allowed at start");if(a.length>=4&&a.every((function(e){return e<128}))&&a[2]===C&&a[3]===C)throw new Error("invalid label extension")}catch(e){throw new Error('Invalid label "'.concat(r,'": ').concat(e.message))}}}catch(e){n.e(e)}finally{n.f()}return e}function B(e,t){var n,r,a,i=E,o=[],s=e.length;t&&(t.length=0);for(var u=function(){var u=e[--s];if(!(i=null===(n=i.branches.find((function(e){return e.set.has(u)})))||void 0===n?void 0:n.node))return"break";if(i.save)a=u;else if(i.check&&u===a)return"break";o.push(u),i.fe0f&&(o.push(65039),s>0&&65039==e[s-1]&&s--),i.valid&&(r=o.slice(),2==i.valid&&r.splice(1,1),t&&t.push.apply(t,(0,c.Z)(e.slice(s).reverse())),e.length=s)};s&&"break"!==u(););return r}var R=new o.Logger(s.i),N=new Uint8Array(32);function D(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function j(e){var t=(0,a.Y0)(function(e){return M(function(e,t){for(var n=O(e).reverse(),r=[];n.length;){var a=B(n);if(a)r.push.apply(r,(0,c.Z)(t(a)));else{var i=n.pop();if(k.has(i))r.push(i);else if(!S.has(i)){var o=I[i];if(!o)throw new Error("Disallowed codepoint: 0x".concat(i.toString(16).toUpperCase()));r.push.apply(r,(0,c.Z)(o))}}}return M(String.fromCodePoint.apply(String,r).normalize("NFC"))}(e,P))}(e)),n=[];if(0===e.length)return n;for(var r=0,i=0;i=t.length)throw new Error("invalid ENS name; empty component");return n.push(D(t.slice(r))),n}function U(e){return j(e).map((function(e){return(0,a.ZN)(e)})).join(".")}function L(e){try{return 0!==j(e).length}catch(e){}return!1}function Z(e){"string"!=typeof e&&R.throwArgumentError("invalid ENS name; not a string","name",e);for(var t=N,n=j(e);n.length;)t=(0,i.keccak256)((0,r.concat)([t,(0,i.keccak256)(n.pop())]));return(0,r.hexlify)(t)}function F(e){return(0,r.hexlify)((0,r.concat)(j(e).map((function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"}N.fill(0)},57683:function(e,t,n){"use strict";n.d(t,{E:function(){return C}});var r=n(24611),a=n(47061),i=n(59900),o=n(33286),s=n(28218),c=n(55483),u=n(49651),f=n(69140),d=n(63139),l=n(67180),p=n(76379),b=new d.Logger(l.i),h=new Uint8Array(32);h.fill(0);var y=s.O$.from(-1),m=s.O$.from(0),v=s.O$.from(1),g=s.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),A=(0,c.hexZeroPad)(v.toHexString(),32),w=(0,c.hexZeroPad)(m.toHexString(),32),x={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},_=["name","version","chainId","verifyingContract","salt"];function k(e){return function(t){return"string"!=typeof t&&b.throwArgumentError("invalid domain value for ".concat(JSON.stringify(e)),"domain.".concat(e),t),t}}var S={name:k("name"),version:k("version"),chainId:function(e){try{return s.O$.from(e).toString()}catch(e){}return b.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,o.getAddress)(e).toLowerCase()}catch(e){}return b.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{var t=(0,c.arrayify)(e);if(32!==t.length)throw new Error("bad length");return(0,c.hexlify)(t)}catch(e){}return b.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function I(e){var t=e.match(/^(u?)int(\d*)$/);if(t){var n=""===t[1],r=parseInt(t[2]||"256");(r%8!=0||r>256||t[2]&&t[2]!==String(r))&&b.throwArgumentError("invalid numeric width","type",e);var a=g.mask(n?r-1:r),i=n?a.add(v).mul(y):m;return function(t){var n=s.O$.from(t);return(n.lt(i)||n.gt(a))&&b.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),(0,c.hexZeroPad)(n.toTwos(256).toHexString(),32)}}var f=e.match(/^bytes(\d+)$/);if(f){var d=parseInt(f[1]);return(0===d||d>32||f[1]!==String(d))&&b.throwArgumentError("invalid bytes width","type",e),function(t){return(0,c.arrayify)(t).length!==d&&b.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){var t=(0,c.arrayify)(e),n=t.length%32;return n?(0,c.hexConcat)([t,h.slice(n)]):(0,c.hexlify)(t)}(t)}}switch(e){case"address":return function(e){return(0,c.hexZeroPad)((0,o.getAddress)(e),32)};case"bool":return function(e){return e?A:w};case"bytes":return function(e){return(0,u.keccak256)(e)};case"string":return function(e){return(0,p.id)(e)}}return null}function E(e,t){return"".concat(e,"(").concat(t.map((function(e){var t=e.name;return e.type+" "+t})).join(","),")")}var C=function(){function e(t){(0,a.Z)(this,e),(0,f.defineReadOnly)(this,"types",Object.freeze((0,f.deepCopy)(t))),(0,f.defineReadOnly)(this,"_encoderCache",{}),(0,f.defineReadOnly)(this,"_types",{});var n={},r={},i={};Object.keys(t).forEach((function(e){n[e]={},r[e]=[],i[e]={}}));var o=function(e){var a={};t[e].forEach((function(i){a[i.name]&&b.throwArgumentError("duplicate variable name ".concat(JSON.stringify(i.name)," in ").concat(JSON.stringify(e)),"types",t),a[i.name]=!0;var o=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];o===e&&b.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",t),I(o)||(r[o]||b.throwArgumentError("unknown type ".concat(JSON.stringify(o)),"types",t),r[o].push(e),n[e][o]=!0)}))};for(var s in t)o(s);var c=Object.keys(r).filter((function(e){return 0===r[e].length}));for(var u in 0===c.length?b.throwArgumentError("missing primary type","types",t):c.length>1&&b.throwArgumentError("ambiguous primary types or unused types: ".concat(c.map((function(e){return JSON.stringify(e)})).join(", ")),"types",t),(0,f.defineReadOnly)(this,"primaryType",c[0]),function e(a,o){o[a]&&b.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",t),o[a]=!0,Object.keys(n[a]).forEach((function(t){r[t]&&(e(t,o),Object.keys(o).forEach((function(e){i[e][t]=!0})))})),delete o[a]}(this.primaryType,{}),i){var d=Object.keys(i[u]);d.sort(),this._types[u]=E(u,t[u])+d.map((function(e){return E(e,t[e])})).join("")}}return(0,i.Z)(e,[{key:"getEncoder",value:function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}},{key:"_getEncoder",value:function(e){var t=this,n=I(e);if(n)return n;var r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){var a=r[1],i=this.getEncoder(a),o=parseInt(r[3]);return function(e){o>=0&&e.length!==o&&b.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);var n=e.map(i);return t._types[a]&&(n=n.map(u.keccak256)),(0,u.keccak256)((0,c.hexConcat)(n))}}var s=this.types[e];if(s){var f=(0,p.id)(this._types[e]);return function(e){var n=s.map((function(n){var r=n.name,a=n.type,i=t.getEncoder(a)(e[r]);return t._types[a]?(0,u.keccak256)(i):i}));return n.unshift(f),(0,c.hexConcat)(n)}}return b.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"encodeType",value:function(e){var t=this._types[e];return t||b.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}},{key:"encodeData",value:function(e,t){return this.getEncoder(e)(t)}},{key:"hashStruct",value:function(e,t){return(0,u.keccak256)(this.encodeData(e,t))}},{key:"encode",value:function(e){return this.encodeData(this.primaryType,e)}},{key:"hash",value:function(e){return this.hashStruct(this.primaryType,e)}},{key:"_visit",value:function(e,t,n){var r=this;if(I(e))return n(e,t);var a=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){var i=a[1],o=parseInt(a[3]);return o>=0&&t.length!==o&&b.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return r._visit(i,e,n)}))}var s=this.types[e];return s?s.reduce((function(e,a){var i=a.name,o=a.type;return e[i]=r._visit(o,t[i],n),e}),{}):b.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"visit",value:function(e,t){return this._visit(this.primaryType,e,t)}}],[{key:"from",value:function(t){return new e(t)}},{key:"getPrimaryType",value:function(t){return e.from(t).primaryType}},{key:"hashStruct",value:function(t,n,r){return e.from(n).hashStruct(t,r)}},{key:"hashDomain",value:function(t){var n=[];for(var r in t){var a=x[r];a||b.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(r)),"domain",t),n.push({name:r,type:a})}return n.sort((function(e,t){return _.indexOf(e.name)-_.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:n},t)}},{key:"encode",value:function(t,n,r){return(0,c.hexConcat)(["0x1901",e.hashDomain(t),e.from(n).hash(r)])}},{key:"hash",value:function(t,n,r){return(0,u.keccak256)(e.encode(t,n,r))}},{key:"resolveNames",value:function(t,n,a,i){return o=this,s=void 0,u=void 0,d=(0,r.Z)().mark((function o(){var s,u,d;return(0,r.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=(0,f.shallowCopy)(t),s={},t.verifyingContract&&!(0,c.isHexString)(t.verifyingContract,20)&&(s[t.verifyingContract]="0x"),(u=e.from(n)).visit(a,(function(e,t){return"address"!==e||(0,c.isHexString)(t,20)||(s[t]="0x"),t})),o.t0=(0,r.Z)().keys(s);case 6:if((o.t1=o.t0()).done){o.next=13;break}return d=o.t1.value,o.next=10,i(d);case 10:s[d]=o.sent,o.next=6;break;case 13:return t.verifyingContract&&s[t.verifyingContract]&&(t.verifyingContract=s[t.verifyingContract]),a=u.visit(a,(function(e,t){return"address"===e&&s[t]?s[t]:t})),o.abrupt("return",{domain:t,value:a});case 16:case"end":return o.stop()}}),o)})),new(u||(u=Promise))((function(e,t){function n(e){try{a(d.next(e))}catch(e){t(e)}}function r(e){try{a(d.throw(e))}catch(e){t(e)}}function a(t){var a;t.done?e(t.value):(a=t.value,a instanceof u?a:new u((function(e){e(a)}))).then(n,r)}a((d=d.apply(o,s||[])).next())}));var o,s,u,d}},{key:"getPayload",value:function(t,n,r){e.hashDomain(t);var a={},i=[];_.forEach((function(e){var n=t[e];null!=n&&(a[e]=S[e](n),i.push({name:e,type:x[e]}))}));var o=e.from(n),u=(0,f.shallowCopy)(n);return u.EIP712Domain?b.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",n):u.EIP712Domain=i,o.encode(r),{types:u,domain:a,primaryType:o.primaryType,message:o.visit(r,(function(e,t){if(e.match(/^bytes(\d*)/))return(0,c.hexlify)((0,c.arrayify)(t));if(e.match(/^u?int/))return s.O$.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&b.throwArgumentError("invalid string","value",t),t}return b.throwArgumentError("unsupported type","type",e)}))}}}]),e}()},73295:function(e,t,n){"use strict";n.r(t),n.d(t,{HDNode:function(){return N},defaultPath:function(){return R},entropyToMnemonic:function(){return U},getAccountPath:function(){return Z},isValidMnemonic:function(){return L},mnemonicToEntropy:function(){return j},mnemonicToSeed:function(){return D}});var r=n(47061),a=n(59900),i=n(60484),o=n(55483),s=n(28218),c=n(81680),u=n(55139),f=n(69140),d=n(5545),l=n(90214),p=n(30732),b=n(99779),h=n(24269),y=n(38114),m=n(76379),v=n(63139),g=new v.Logger("wordlists/5.7.0"),A=function(){function e(t){(0,r.Z)(this,e),g.checkAbstract(this instanceof e?this.constructor:void 0,e),(0,f.defineReadOnly)(this,"locale",t)}return(0,a.Z)(e,[{key:"split",value:function(e){return e.toLowerCase().split(/ +/g)}},{key:"join",value:function(e){return e.join(" ")}}],[{key:"check",value:function(e){for(var t=[],n=0;n<2048;n++){var r=e.getWord(n);if(n!==e.getWordIndex(r))return"0x";t.push(r)}return(0,m.id)(t.join("\n")+"\n")}},{key:"register",value:function(e,t){t||(t=e.locale)}}]),e}(),w=null;function x(e){if(null==w&&(w="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==A.check(e)))throw w=null,new Error("BIP39 Wordlist for en (English) FAILED")}var _=new(function(e){(0,h.Z)(n,e);var t=(0,y.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,"en")}return(0,a.Z)(n,[{key:"getWord",value:function(e){return x(this),w[e]}},{key:"getWordIndex",value:function(e){return x(this),w.indexOf(e)}}]),n}(A));A.register(_);var k={en:_},S=new v.Logger("hdnode/5.7.0"),I=s.O$.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),E=(0,c.Y0)("Bitcoin seed"),C=2147483648;function T(e){return(1<=256)throw new Error("Depth too large!");return P((0,o.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,o.hexlify)(this.depth),this.parentFingerprint,(0,o.hexZeroPad)((0,o.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,o.concat)(["0x00",this.privateKey]):this.publicKey]))}},{key:"neuter",value:function(){return new e(B,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}},{key:"_derive",value:function(t){if(t>4294967295)throw new Error("invalid index - "+String(t));var n=this.path;n&&(n+="/"+(t&~C));var r=new Uint8Array(37);if(t&C){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set((0,o.arrayify)(this.privateKey),1),n&&(n+="'")}else r.set((0,o.arrayify)(this.publicKey));for(var a=24;a>=0;a-=8)r[33+(a>>3)]=t>>24-a&255;var i=(0,o.arrayify)((0,l.Gy)(p.p.sha512,this.chainCode,r)),c=i.slice(0,32),u=i.slice(32),f=null,b=null;this.privateKey?f=O(s.O$.from(c).add(this.privateKey).mod(I)):b=new d.SigningKey((0,o.hexlify)(c))._addPoint(this.publicKey);var h=n,y=this.mnemonic;return y&&(h=Object.freeze({phrase:y.phrase,path:n,locale:y.locale||"en"})),new e(B,f,b,this.fingerprint,O(u),t,this.depth+1,h)}},{key:"derivePath",value:function(e){var t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();for(var n=this,r=0;r=C)throw new Error("invalid path index - "+a);n=n._derive(C+i)}else{if(!a.match(/^[0-9]+$/))throw new Error("invalid path component - "+a);var o=parseInt(a);if(o>=C)throw new Error("invalid path index - "+a);n=n._derive(o)}}return n}}],[{key:"_fromSeed",value:function(t,n){var r=(0,o.arrayify)(t);if(r.length<16||r.length>64)throw new Error("invalid seed");var a=(0,o.arrayify)((0,l.Gy)(p.p.sha512,E,r));return new e(B,O(a.slice(0,32)),null,"0x00000000",O(a.slice(32)),0,0,n)}},{key:"fromMnemonic",value:function(t,n,r){return t=U(j(t,r=M(r)),r),e._fromSeed(D(t,n),{phrase:t,path:"m",locale:r.locale})}},{key:"fromSeed",value:function(t){return e._fromSeed(t,null)}},{key:"fromExtendedKey",value:function(t){var n=i.Base58.decode(t);82===n.length&&P(n.slice(0,78))===t||S.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var r=n[4],a=(0,o.hexlify)(n.slice(5,9)),s=parseInt((0,o.hexlify)(n.slice(9,13)).substring(2),16),c=(0,o.hexlify)(n.slice(13,45)),u=n.slice(45,78);switch((0,o.hexlify)(n.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(B,null,(0,o.hexlify)(u),a,c,s,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==u[0])break;return new e(B,(0,o.hexlify)(u.slice(1)),null,a,c,s,r,null)}return S.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}]),e}();function D(e,t){t||(t="");var n=(0,c.Y0)("mnemonic"+t,c.Uj.NFKD);return(0,u.n)((0,c.Y0)(e,c.Uj.NFKD),n,2048,64,"sha512")}function j(e,t){t=M(t),S.checkNormalize();var n=t.split(e);if(n.length%3!=0)throw new Error("invalid mnemonic");for(var r=(0,o.arrayify)(new Uint8Array(Math.ceil(11*n.length/8))),a=0,i=0;i>3]|=1<<7-a%8),a++}var u=32*n.length/3,f=T(n.length/3);if(((0,o.arrayify)((0,l.JQ)(r.slice(0,u/8)))[0]&f)!=(r[r.length-1]&f))throw new Error("invalid checksum");return(0,o.hexlify)(r.slice(0,u/8))}function U(e,t){if(t=M(t),(e=(0,o.arrayify)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy");for(var n=[0],r=11,a=0;a8?(n[n.length-1]<<=8,n[n.length-1]|=e[a],r-=8):(n[n.length-1]<<=r,n[n.length-1]|=e[a]>>8-r,n.push(e[a]&(1<<8-r)-1),r+=3);var i=e.length/4,s=(0,o.arrayify)((0,l.JQ)(e))[0]&T(i);return n[n.length-1]<<=i,n[n.length-1]|=s>>8-i,t.join(n.map((function(e){return t.getWord(e)})))}function L(e,t){try{return j(e,t),!0}catch(e){}return!1}function Z(e){return("number"!=typeof e||e<0||e>=C||e%1)&&S.throwArgumentError("invalid account index","index",e),"m/44'/60'/".concat(e,"'/0/0")}},72260:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="json-wallets/5.7.0"},12669:function(e,t,n){"use strict";n.r(t),n.d(t,{decryptCrowdsale:function(){return A},decryptJsonWallet:function(){return S},decryptJsonWalletSync:function(){return I},decryptKeystore:function(){return k.pe},decryptKeystoreSync:function(){return k.hb},encryptKeystore:function(){return k.HI},getJsonWalletAddress:function(){return _},isCrowdsaleWallet:function(){return w},isKeystoreWallet:function(){return x}});var r=n(47061),a=n(59900),i=n(24269),o=n(38114),s=n(43497),c=n.n(s),u=n(33286),f=n(55483),d=n(49651),l=n(55139),p=n(81680),b=n(69140),h=n(63139),y=n(72260),m=n(86368),v=new h.Logger(y.i),g=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"isCrowdsaleAccount",value:function(e){return!(!e||!e._isCrowdsaleAccount)}}]),n}(b.Description);function A(e,t){var n=JSON.parse(e);t=(0,m.Ij)(t);var r=(0,u.getAddress)((0,m.gx)(n,"ethaddr")),a=(0,m.p3)((0,m.gx)(n,"encseed"));a&&a.length%16==0||v.throwArgumentError("invalid encseed","json",e);for(var i=(0,f.arrayify)((0,l.n)(t,t,2e3,32,"sha256")).slice(0,16),o=a.slice(0,16),s=a.slice(16),b=new(c().ModeOfOperation.cbc)(i,o),h=c().padding.pkcs7.strip((0,f.arrayify)(b.decrypt(s))),y="",A=0;A255)return!1;return!0}function a(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(n(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function i(e){return new Uint8Array(e)}function o(e,t,n,r,a){null==r&&null==a||(e=e.slice?e.slice(r,a):Array.prototype.slice.call(e,r,a)),t.set(e,n)}var s,c={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},u=(s="0123456789abcdef",{toBytes:function(e){for(var t=[],n=0;n>4]+s[15&r])}return t.join("")}}),f={16:10,24:12,32:14},d=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],p=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],b=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],h=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],v=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],g=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],A=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],x=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],_=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],k=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],S=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function I(e){for(var t=[],n=0;n>2,this._Ke[n][t%4]=i[t],this._Kd[e-n][t%4]=i[t];for(var o,s=0,c=a;c>16&255]<<24^l[o>>8&255]<<16^l[255&o]<<8^l[o>>24&255]^d[s]<<24,s+=1,8!=a)for(t=1;t>8&255]<<8^l[o>>16&255]<<16^l[o>>24&255]<<24,t=a/2+1;t>2,p=c%4,this._Ke[u][p]=i[t],this._Kd[e-u][p]=i[t++],c++}for(var u=1;u>24&255]^_[o>>16&255]^k[o>>8&255]^S[255&o]},E.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=I(e),a=0;a<4;a++)r[a]^=this._Ke[0][a];for(var o=1;o>24&255]^h[r[(a+1)%4]>>16&255]^y[r[(a+2)%4]>>8&255]^m[255&r[(a+3)%4]]^this._Ke[o][a];r=n.slice()}var s,c=i(16);for(a=0;a<4;a++)s=this._Ke[t][a],c[4*a]=255&(l[r[a]>>24&255]^s>>24),c[4*a+1]=255&(l[r[(a+1)%4]>>16&255]^s>>16),c[4*a+2]=255&(l[r[(a+2)%4]>>8&255]^s>>8),c[4*a+3]=255&(l[255&r[(a+3)%4]]^s);return c},E.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=I(e),a=0;a<4;a++)r[a]^=this._Kd[0][a];for(var o=1;o>24&255]^g[r[(a+3)%4]>>16&255]^A[r[(a+2)%4]>>8&255]^w[255&r[(a+1)%4]]^this._Kd[o][a];r=n.slice()}var s,c=i(16);for(a=0;a<4;a++)s=this._Kd[t][a],c[4*a]=255&(p[r[a]>>24&255]^s>>24),c[4*a+1]=255&(p[r[(a+3)%4]>>16&255]^s>>16),c[4*a+2]=255&(p[r[(a+2)%4]>>8&255]^s>>8),c[4*a+3]=255&(p[255&r[(a+1)%4]]^s);return c};var C=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new E(t)};C.prototype.encrypt=function(e){if((e=a(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),n=i(16),r=0;r=0;--t)this._counter[t]=e%256,e>>=8},M.prototype.setBytes=function(e){if(16!=(e=a(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},M.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var B=function e(t,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",n instanceof M||(n=new M(n)),this._counter=n,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new E(t)};B.prototype.encrypt=function(e){for(var t=a(e,!0),n=0;n16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;ru[n]||console.log.apply(console,t)}},{key:"debug",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r>4],n+=p[15&t[a]];i.push(e+"=Uint8Array(0x"+n+")")}else i.push(e+"="+JSON.stringify(t))}catch(t){i.push(e+"="+JSON.stringify(r[e].toString()))}})),i.push("code=".concat(n)),i.push("version=".concat(this.version));var o=t,s="";switch(n){case a.NUMERIC_FAULT:s="NUMERIC_FAULT";var u=t;switch(u){case"overflow":case"underflow":case"division-by-zero":s+="-"+u;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break;case a.CALL_EXCEPTION:case a.INSUFFICIENT_FUNDS:case a.MISSING_NEW:case a.NONCE_EXPIRED:case a.REPLACEMENT_UNDERPRICED:case a.TRANSACTION_REPLACED:case a.UNPREDICTABLE_GAS_LIMIT:s=n}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(t+=" ("+i.join(", ")+")");var f=new Error(t);return f.reason=o,f.code=n,Object.keys(r).forEach((function(e){f[e]=r[e]})),f}},{key:"throwError",value:function(e,t,n){throw this.makeError(e,t,n)}},{key:"throwArgumentError",value:function(t,n,r){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:n,value:r})}},{key:"assert",value:function(e,t,n,r){e||this.throwError(t,n,r)}},{key:"assertArgument",value:function(e,t,n,r){e||this.throwArgumentError(t,n,r)}},{key:"checkNormalize",value:function(t){null==t&&(t="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})}},{key:"checkSafeUint53",value:function(t,n){"number"==typeof t&&(null==n&&(n="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(n,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(n,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,n,r){r=r?": "+r:"",tn&&this.throwError("too many arguments"+r,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:n})}},{key:"checkNew",value:function(t,n){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:n.name})}},{key:"checkAbstract",value:function(t,n){t===n?this.throwError("cannot instantiate abstract class "+JSON.stringify(n.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:n.name})}}],[{key:"globalLogger",value:function(){return d||(d=new e("logger/5.7.0")),d}},{key:"setCensorship",value:function(t,n){if(!t&&n&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),s){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}c=!!t,s=!!n}},{key:"setLogLevel",value:function(t){var n=u[t.toLowerCase()];null!=n?f=n:e.globalLogger().warn("invalid log level - "+t)}},{key:"from",value:function(t){return new e(t)}}]),e}();b.errors=a,b.levels=r},55139:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(55483),a=n(90214);function i(e,t,n,i,o){var s;e=(0,r.arrayify)(e),t=(0,r.arrayify)(t);var c,u,f=1,d=new Uint8Array(i),l=new Uint8Array(t.length+4);l.set(t);for(var p=1;p<=f;p++){l[t.length]=p>>24&255,l[t.length+1]=p>>16&255,l[t.length+2]=p>>8&255,l[t.length+3]=255&p;var b=(0,r.arrayify)((0,a.Gy)(o,e,l));s||(s=b.length,u=new Uint8Array(s),c=i-((f=Math.ceil(i/s))-1)*s),u.set(b);for(var h=1;h1024||e%1||e!=e)&&i.throwArgumentError("invalid length","length",e);var t=new Uint8Array(e);return s.getRandomValues(t),(0,r.arrayify)(t)}s&&s.getRandomValues||(i.warn("WARNING: Missing strong random number source"),s={getRandomValues:function(e){return i.throwError("no secure random source avaialble",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},56433:function(e,t,n){"use strict";function r(e){for(var t=(e=e.slice()).length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}n.d(t,{y:function(){return r}})},31562:function(e,t,n){"use strict";n.r(t),n.d(t,{decode:function(){return l},encode:function(){return u}});var r=n(55483),a=n(63139),i=new a.Logger("rlp/5.7.0");function o(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function s(e,t,n){for(var r=0,a=0;at+1+r&&i.throwError("child data too short",a.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:o}}function d(e,t){if(0===e.length&&i.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){var n=e[t]-247;t+1+n>e.length&&i.throwError("data short segment too short",a.Logger.errors.BUFFER_OVERRUN,{});var o=s(e,t+1,n);return t+1+n+o>e.length&&i.throwError("data long segment too short",a.Logger.errors.BUFFER_OVERRUN,{}),f(e,t,t+1+n,n+o)}if(e[t]>=192){var c=e[t]-192;return t+1+c>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),f(e,t,t+1,c)}if(e[t]>=184){var u=e[t]-183;t+1+u>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});var d=s(e,t+1,u);return t+1+u+d>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+u+d,result:(0,r.hexlify)(e.slice(t+1+u,t+1+u+d))}}if(e[t]>=128){var l=e[t]-128;return t+1+l>e.length&&i.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+l,result:(0,r.hexlify)(e.slice(t+1,t+1+l))}}return{consumed:1,result:(0,r.hexlify)(e[t])}}function l(e){var t=(0,r.arrayify)(e),n=d(t,0);return n.consumed!==t.length&&i.throwArgumentError("invalid rlp data","data",e),n.result}},22564:function(e,t,n){"use strict";n.r(t),n.d(t,{SupportedAlgorithm:function(){return a.p},computeHmac:function(){return r.Gy},ripemd160:function(){return r.bP},sha256:function(){return r.JQ},sha512:function(){return r.o}});var r=n(90214),a=n(30732)},90214:function(e,t,n){"use strict";n.d(t,{Gy:function(){return l},bP:function(){return u},JQ:function(){return f},o:function(){return d}});var r=n(30419),a=n.n(r),i=n(55483),o=n(30732),s=n(63139),c=new s.Logger("sha2/5.7.0");function u(e){return"0x"+a().ripemd160().update((0,i.arrayify)(e)).digest("hex")}function f(e){return"0x"+a().sha256().update((0,i.arrayify)(e)).digest("hex")}function d(e){return"0x"+a().sha512().update((0,i.arrayify)(e)).digest("hex")}function l(e,t,n){return o.p[e]||c.throwError("unsupported algorithm "+e,s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+a().hmac(a()[e],(0,i.arrayify)(t)).update((0,i.arrayify)(n)).digest("hex")}},30732:function(e,t,n){"use strict";var r;n.d(t,{p:function(){return r}}),function(e){e.sha256="sha256",e.sha512="sha512"}(r||(r={}))},5545:function(e,t,n){"use strict";n.r(t),n.d(t,{SigningKey:function(){return W},computePublicKey:function(){return X},recoverPublicKey:function(){return Y}});var r=n(47061),a=n(59900),i=n(85468),o=n.n(i),s=n(30419),c=n.n(s);function u(e,t,n){return n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},e(n,n.exports),n.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var f=d;function d(e,t){if(!e)throw new Error(t||"Assertion failed")}d.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var l=u((function(e,t){var n=t;function r(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n>8,o=255&a;i?n.push(i,o):n.push(o)}return n},n.zero2=r,n.toHex=a,n.encode=function(e,t){return"hex"===t?a(e):e}})),p=u((function(e,t){var n=t;n.assert=f,n.toArray=l.toArray,n.zero2=l.zero2,n.toHex=l.toHex,n.encode=l.encode,n.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var a=1<(a>>1)-1?(a>>1)-c:c,i.isubn(s)):s=0,r[o]=s,i.iushrn(1)}return r},n.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,a=0,i=0;e.cmpn(-a)>0||t.cmpn(-i)>0;){var o,s,c=e.andln(3)+a&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),o=0==(1&c)?0:3!=(r=e.andln(7)+a&7)&&5!==r||2!==u?c:-c,n[0].push(o),s=0==(1&u)?0:3!=(r=t.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[1].push(s),2*a===o+1&&(a=1-a),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},n.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new(o())(e,"hex","le")}})),b=p.getNAF,h=p.getJSF,y=p.assert;function m(e,t){this.type=e,this.p=new(o())(t.p,16),this.red=t.prime?o().red(t.prime):o().mont(this.p),this.zero=new(o())(0).toRed(this.red),this.one=new(o())(1).toRed(this.red),this.two=new(o())(2).toRed(this.red),this.n=t.n&&new(o())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var v=m;function g(e,t){this.curve=e,this.type=t,this.precomputed=null}m.prototype.point=function(){throw new Error("Not implemented")},m.prototype.validate=function(){throw new Error("Not implemented")},m.prototype._fixedNafMul=function(e,t){y(e.precomputed);var n=e._getDoubles(),r=b(t,1,this._bitLength),a=(1<=i;c--)o=(o<<1)+r[c];s.push(o)}for(var u=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=a;d>0;d--){for(i=0;i=0;s--){for(var c=0;s>=0&&0===i[s];s--)c++;if(s>=0&&c++,o=o.dblp(c),s<0)break;var u=i[s];y(0!==u),o="affine"===e.type?u>0?o.mixedAdd(a[u-1>>1]):o.mixedAdd(a[-u-1>>1].neg()):u>0?o.add(a[u-1>>1]):o.add(a[-u-1>>1].neg())}return"affine"===e.type?o.toP():o},m.prototype._wnafMulAdd=function(e,t,n,r,a){var i,o,s,c=this._wnafT1,u=this._wnafT2,f=this._wnafT3,d=0;for(i=0;i=1;i-=2){var p=i-1,y=i;if(1===c[p]&&1===c[y]){var m=[t[p],null,null,t[y]];0===t[p].y.cmp(t[y].y)?(m[1]=t[p].add(t[y]),m[2]=t[p].toJ().mixedAdd(t[y].neg())):0===t[p].y.cmp(t[y].y.redNeg())?(m[1]=t[p].toJ().mixedAdd(t[y]),m[2]=t[p].add(t[y].neg())):(m[1]=t[p].toJ().mixedAdd(t[y]),m[2]=t[p].toJ().mixedAdd(t[y].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=h(n[p],n[y]);for(d=Math.max(g[0].length,d),f[p]=new Array(d),f[y]=new Array(d),o=0;o=0;i--){for(var k=0;i>=0;){var S=!0;for(o=0;o=0&&k++,x=x.dblp(k),i<0)break;for(o=0;o0?s=u[o][I-1>>1]:I<0&&(s=u[o][-I-1>>1].neg()),x="affine"===s.type?x.mixedAdd(s):x.add(s))}}for(i=0;i=Math.ceil((e.bitLength()+1)/t.step)},g.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,a=0;a=0&&(i=t,s=n),r.negative&&(r=r.neg(),a=a.neg()),i.negative&&(i=i.neg(),s=s.neg()),[{a:r,b:a},{a:i,b:s}]},x.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],a=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),o=a.mul(n.a),s=i.mul(r.a),c=a.mul(n.b),u=i.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(u).neg()}},x.prototype.pointFromX=function(e,t){(e=new(o())(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},x.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(a).cmpn(0)},x.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,a=this._endoWnafT2,i=0;i":""},k.prototype.isInfinity=function(){return this.inf},k.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},k.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),a=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},k.prototype.getX=function(){return this.x.fromRed()},k.prototype.getY=function(){return this.y.fromRed()},k.prototype.mul=function(e){return e=new(o())(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},k.prototype.mulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a):this.curve._wnafMulAdd(1,r,a,2)},k.prototype.jmulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a,!0):this.curve._wnafMulAdd(1,r,a,2,!0)},k.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},k.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},k.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},A(S,v.BasePoint),x.prototype.jpoint=function(e,t,n){return new S(this,e,t,n)},S.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},S.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},S.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),a=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(a),c=i.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),f=u.redMul(s),d=r.redMul(u),l=c.redSqr().redIAdd(f).redISub(d).redISub(d),p=c.redMul(d.redISub(l)).redISub(i.redMul(f)),b=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(l,p,b)},S.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),a=this.y,i=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=a.redSub(i);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),f=n.redMul(c),d=s.redSqr().redIAdd(u).redISub(f).redISub(f),l=s.redMul(f.redISub(d)).redISub(a.redMul(u)),p=this.z.redMul(o);return this.curve.jpoint(d,l,p)},S.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(a),0===this.x.cmp(n))return!0}},S.prototype.inspect=function(){return this.isInfinity()?"":""},S.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var I=u((function(e,t){var n=t;n.base=v,n.short=_,n.mont=null,n.edwards=null})),E=u((function(e,t){var n,r=t,a=p.assert;function i(e){"short"===e.type?this.curve=new I.short(e):"edwards"===e.type?this.curve=new I.edwards(e):this.curve=new I.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new i(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=i,o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:c().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:c().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:c().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:c().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:c().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:c().sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:c().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(e){n=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:c().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function C(e){if(!(this instanceof C))return new C(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=l.toArray(e.entropy,e.entropyEnc||"hex"),n=l.toArray(e.nonce,e.nonceEnc||"hex"),r=l.toArray(e.pers,e.persEnc||"hex");f(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var T=C;C.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},C.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=l.toArray(n,r||"hex"),this._update(n));for(var a=[];a.length"};var B=p.assert;function R(e,t){if(e instanceof R)return e;this._importDER(e,t)||(B(e.r&&e.s,"Signature without r or s"),this.r=new(o())(e.r,16),this.s=new(o())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var N=R;function D(){this.place=0}function j(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var a=0,i=0,o=t.place;i>>=0;return!(a<=127)&&(t.place=o,a)}function U(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}R.prototype._importDER=function(e,t){e=p.toArray(e,t);var n=new D;if(48!==e[n.place++])return!1;var r=j(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=j(e,n);if(!1===a)return!1;var i=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var s=j(e,n);if(!1===s)return!1;if(e.length!==s+n.place)return!1;var c=e.slice(n.place,s+n.place);if(0===i[0]){if(!(128&i[1]))return!1;i=i.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new(o())(i),this.s=new(o())(c),this.recoveryParam=null,!0},R.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=U(t),n=U(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];L(r,t.length),(r=r.concat(t)).push(2),L(r,n.length);var a=r.concat(n),i=[48];return L(i,a.length),i=i.concat(a),p.encode(i,e)};var Z=function(){throw new Error("unsupported")},F=p.assert;function H(e){if(!(this instanceof H))return new H(e);"string"==typeof e&&(F(Object.prototype.hasOwnProperty.call(E,e),"Unknown curve "+e),e=E[e]),e instanceof E.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var z=H;H.prototype.keyPair=function(e){return new M(this,e)},H.prototype.keyFromPrivate=function(e,t){return M.fromPrivate(this,e,t)},H.prototype.keyFromPublic=function(e,t){return M.fromPublic(this,e,t)},H.prototype.genKeyPair=function(e){e||(e={});for(var t=new T({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||Z(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new(o())(2));;){var a=new(o())(t.generate(n));if(!(a.cmp(r)>0))return a.iaddn(1),this.keyFromPrivate(a)}},H.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},H.prototype.sign=function(e,t,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new(o())(e,16));for(var a=this.n.byteLength(),i=t.getPrivate().toArray("be",a),s=e.toArray("be",a),c=new T({hash:this.hash,entropy:i,nonce:s,pers:r.pers,persEnc:r.persEnc||"utf8"}),u=this.n.sub(new(o())(1)),f=0;;f++){var d=r.k?r.k(f):new(o())(c.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(u)>=0)){var l=this.g.mul(d);if(!l.isInfinity()){var p=l.getX(),b=p.umod(this.n);if(0!==b.cmpn(0)){var h=d.invm(this.n).mul(b.mul(t.getPrivate()).iadd(e));if(0!==(h=h.umod(this.n)).cmpn(0)){var y=(l.getY().isOdd()?1:0)|(0!==p.cmp(b)?2:0);return r.canonical&&h.cmp(this.nh)>0&&(h=this.n.sub(h),y^=1),new N({r:b,s:h,recoveryParam:y})}}}}}},H.prototype.verify=function(e,t,n,r){e=this._truncateToN(new(o())(e,16)),n=this.keyFromPublic(n,r);var a=(t=new N(t,"hex")).r,i=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;var s,c=i.invm(this.n),u=c.mul(e).umod(this.n),f=c.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,n.getPublic(),f)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(u,n.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},H.prototype.recoverPubKey=function(e,t,n,r){F((3&n)===n,"The recovery param is more than two bits"),t=new N(t,r);var a=this.n,i=new(o())(e),s=t.r,c=t.s,u=1&n,f=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&f)throw new Error("Unable to find sencond key candinate");s=f?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var d=t.r.invm(a),l=a.sub(i).mul(d).umod(a),p=c.mul(d).umod(a);return this.g.mulAdd(l,s,p)},H.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new N(t,r)).recoveryParam)return t.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(n))return a}throw new Error("Unable to find valid recovery factor")};var q=u((function(e,t){var n=t;n.version="6.5.4",n.utils=p,n.rand=function(){throw new Error("unsupported")},n.curve=I,n.curves=E,n.ec=z,n.eddsa=null})).ec,Q=n(55483),K=n(69140),V=new(n(63139).Logger)("signing-key/5.7.0"),J=null;function G(){return J||(J=new q("secp256k1")),J}var W=function(){function e(t){(0,r.Z)(this,e),(0,K.defineReadOnly)(this,"curve","secp256k1"),(0,K.defineReadOnly)(this,"privateKey",(0,Q.hexlify)(t)),32!==(0,Q.hexDataLength)(this.privateKey)&&V.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var n=G().keyFromPrivate((0,Q.arrayify)(this.privateKey));(0,K.defineReadOnly)(this,"publicKey","0x"+n.getPublic(!1,"hex")),(0,K.defineReadOnly)(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),(0,K.defineReadOnly)(this,"_isSigningKey",!0)}return(0,a.Z)(e,[{key:"_addPoint",value:function(e){var t=G().keyFromPublic((0,Q.arrayify)(this.publicKey)),n=G().keyFromPublic((0,Q.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(e){var t=G().keyFromPrivate((0,Q.arrayify)(this.privateKey)),n=(0,Q.arrayify)(e);32!==n.length&&V.throwArgumentError("bad digest length","digest",e);var r=t.sign(n,{canonical:!0});return(0,Q.splitSignature)({recoveryParam:r.recoveryParam,r:(0,Q.hexZeroPad)("0x"+r.r.toString(16),32),s:(0,Q.hexZeroPad)("0x"+r.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(e){var t=G().keyFromPrivate((0,Q.arrayify)(this.privateKey)),n=G().keyFromPublic((0,Q.arrayify)(X(e)));return(0,Q.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(e){return!(!e||!e._isSigningKey)}}]),e}();function Y(e,t){var n=(0,Q.splitSignature)(t),r={r:(0,Q.arrayify)(n.r),s:(0,Q.arrayify)(n.s)};return"0x"+G().recoverPubKey((0,Q.arrayify)(e),r,n.recoveryParam).encode("hex",!1)}function X(e,t){var n=(0,Q.arrayify)(e);if(32===n.length){var r=new W(n);return t?"0x"+G().keyFromPrivate(n).getPublic(!0,"hex"):r.publicKey}return 33===n.length?t?(0,Q.hexlify)(n):"0x"+G().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+G().keyFromPublic(n).getPublic(!0,"hex"):(0,Q.hexlify)(n):V.throwArgumentError("invalid public or private key","key","[REDACTED]")}},58227:function(e,t,n){"use strict";n.r(t),n.d(t,{keccak256:function(){return y},pack:function(){return h},sha256:function(){return m}});var r=n(28218),a=n(55483),i=n(49651),o=n(90214),s=n(81680),c=n(63139),u=new RegExp("^bytes([0-9]+)$"),f=new RegExp("^(u?int)([0-9]*)$"),d=new RegExp("^(.*)\\[([0-9]*)\\]$"),l="0000000000000000000000000000000000000000000000000000000000000000",p=new c.Logger("solidity/5.7.0");function b(e,t,n){switch(e){case"address":return n?(0,a.zeroPad)(t,32):(0,a.arrayify)(t);case"string":return(0,s.Y0)(t);case"bytes":return(0,a.arrayify)(t);case"bool":return t=t?"0x01":"0x00",n?(0,a.zeroPad)(t,32):(0,a.arrayify)(t)}var i=e.match(f);if(i){var o=parseInt(i[2]||"256");return(i[2]&&String(o)!==i[2]||o%8!=0||0===o||o>256)&&p.throwArgumentError("invalid number type","type",e),n&&(o=256),t=r.O$.from(t).toTwos(o),(0,a.zeroPad)(t,o/8)}if(i=e.match(u)){var c=parseInt(i[1]);return(String(c)!==i[1]||0===c||c>32)&&p.throwArgumentError("invalid bytes type","type",e),(0,a.arrayify)(t).byteLength!==c&&p.throwArgumentError("invalid value for ".concat(e),"value",t),n?(0,a.arrayify)((t+l).substring(0,66)):t}if((i=e.match(d))&&Array.isArray(t)){var h=i[1];parseInt(i[2]||String(t.length))!=t.length&&p.throwArgumentError("invalid array length for ".concat(e),"value",t);var y=[];return t.forEach((function(e){y.push(b(h,e,!0))})),(0,a.concat)(y)}return p.throwArgumentError("invalid type","type",e)}function h(e,t){e.length!=t.length&&p.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);var n=[];return e.forEach((function(e,r){n.push(b(e,t[r]))})),(0,a.hexlify)((0,a.concat)(n))}function y(e,t){return(0,i.keccak256)(h(e,t))}function m(e,t){return(0,o.JQ)(h(e,t))}},51778:function(e,t,n){"use strict";n.r(t),n.d(t,{UnicodeNormalizationForm:function(){return i.Uj},Utf8ErrorFuncs:function(){return i.te},Utf8ErrorReason:function(){return i.Uw},_toEscapedUtf8String:function(){return i.U$},formatBytes32String:function(){return o},nameprep:function(){return v},parseBytes32String:function(){return s},toUtf8Bytes:function(){return i.Y0},toUtf8CodePoints:function(){return i.XL},toUtf8String:function(){return i.ZN}});var r=n(79573),a=n(55483),i=n(81680);function o(e){var t=(0,i.Y0)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,a.hexlify)((0,a.concat)([t,r.R]).slice(0,32))}function s(e){var t=(0,a.arrayify)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");for(var n=31;0===t[n-1];)n--;return(0,i.ZN)(t.slice(0,n))}function c(e,t){t||(t=function(e){return[parseInt(e,16)]});var n=0,r={};return e.split(",").forEach((function(e){var a=e.split(":");n+=parseInt(a[0],16),r[n]=t(a[1])})),r}function u(e){var t=0;return e.split(",").map((function(e){var n=e.split("-");return 1===n.length?n[1]="0":""===n[1]&&(n[1]="1"),{l:t+parseInt(n[0],16),h:t=parseInt(n[1],16)}}))}function f(e,t){for(var n=0,r=0;r=(n+=a.l)&&e<=n+a.h&&(e-n)%(a.d||1)==0){if(a.e&&-1!==a.e.indexOf(e-n))continue;return a}}return null}var d=u("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),l="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),p=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],b=c("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),h=c("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),y=c("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data");for(var t=[],n=0;n=0)return[];if(e>=65024&&e<=65039)return[];var t=function(e){var t=f(e,p);if(t)return[e+t.s];var n=b[e];if(n)return n;var r=h[e];return r?[e+r[0]]:y[e]||null}(e);return t||[e]})),n=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[]),(n=(0,i.XL)((0,i.uu)(n),i.Uj.NFKC)).forEach((function(e){if(f(e,m))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),n.forEach((function(e){if(f(e,d))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));var r=(0,i.uu)(n);if("-"===r.substring(0,1)||"--"===r.substring(2,4)||"-"===r.substring(r.length-1))throw new Error("invalid hyphen");return r}},81680:function(e,t,n){"use strict";n.d(t,{Uj:function(){return r},te:function(){return c},Uw:function(){return a},U$:function(){return l},uu:function(){return p},Y0:function(){return f},XL:function(){return h},ZN:function(){return b}});var r,a,i=n(55483),o=new(n(63139).Logger)("strings/5.7.0");function s(e,t,n,r,i){if(e===a.BAD_PREFIX||e===a.UNEXPECTED_CONTINUE){for(var o=0,s=t+1;s>6==2;s++)o++;return o}return e===a.OVERRUN?n.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(r||(r={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(a||(a={}));var c=Object.freeze({error:function(e,t,n,r,a){return o.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",n)},ignore:s,replace:function(e,t,n,r,i){return e===a.OVERLONG?(r.push(i),0):(r.push(65533),s(e,t,n))}});function u(e,t){null==t&&(t=c.error),e=(0,i.arrayify)(e);for(var n=[],r=0;r>7!=0){var s=null,u=null;if(192==(224&o))s=1,u=127;else if(224==(240&o))s=2,u=2047;else{if(240!=(248&o)){r+=t(128==(192&o)?a.UNEXPECTED_CONTINUE:a.BAD_PREFIX,r-1,e,n);continue}s=3,u=65535}if(r-1+s>=e.length)r+=t(a.OVERRUN,r-1,e,n);else{for(var f=o&(1<<8-s-1)-1,d=0;d1114111?r+=t(a.OUT_OF_RANGE,r-1-s,e,n,f):f>=55296&&f<=57343?r+=t(a.UTF16_SURROGATE,r-1-s,e,n,f):f<=u?r+=t(a.OVERLONG,r-1-s,e,n,f):n.push(f))}}else n.push(o)}return n}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current;t!=r.current&&(o.checkNormalize(),e=e.normalize(t));for(var n=[],a=0;a>6|192),n.push(63&s|128);else if(55296==(64512&s)){a++;var c=e.charCodeAt(a);if(a>=e.length||56320!=(64512&c))throw new Error("invalid utf-8 string");var u=65536+((1023&s)<<10)+(1023&c);n.push(u>>18|240),n.push(u>>12&63|128),n.push(u>>6&63|128),n.push(63&u|128)}else n.push(s>>12|224),n.push(s>>6&63|128),n.push(63&s|128)}return(0,i.arrayify)(n)}function d(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function l(e,t){return'"'+u(e,t).map((function(e){if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?d(e):d(55296+((e-=65536)>>10&1023))+d(56320+(1023&e))})).join("")+'"'}function p(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function b(e,t){return p(u(e,t))}function h(e){return u(f(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current))}},99779:function(e,t,n){"use strict";n.r(t),n.d(t,{TransactionTypes:function(){return r},accessListify:function(){return x},computeAddress:function(){return v},parse:function(){return C},recoverAddress:function(){return g},serialize:function(){return I}});var r,a=n(33286),i=n(28218),o=n(55483),s=n(92983),c=n(49651),u=n(69140),f=n(31562),d=n(5545),l=n(63139),p=new l.Logger("transactions/5.7.0");function b(e){return"0x"===e?null:(0,a.getAddress)(e)}function h(e){return"0x"===e?s._Y:i.O$.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(r||(r={}));var y=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],m={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function v(e){var t=(0,d.computePublicKey)(e);return(0,a.getAddress)((0,o.hexDataSlice)((0,c.keccak256)((0,o.hexDataSlice)(t,1)),12))}function g(e,t){return v((0,d.recoverPublicKey)((0,o.arrayify)(e),t))}function A(e,t){var n=(0,o.stripZeros)(i.O$.from(e).toHexString());return n.length>32&&p.throwArgumentError("invalid length for "+t,"transaction:"+t,e),n}function w(e,t){return{address:(0,a.getAddress)(e),storageKeys:(t||[]).map((function(t,n){return 32!==(0,o.hexDataLength)(t)&&p.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(n,"]"),t),t.toLowerCase()}))}}function x(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&p.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),w(e[0],e[1])):w(e.address,e.storageKeys)}));var t=Object.keys(e).map((function(t){var n=e[t].reduce((function(e,t){return e[t]=!0,e}),{});return w(t,Object.keys(n).sort())}));return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function _(e){return x(e).map((function(e){return[e.address,e.storageKeys]}))}function k(e,t){if(null!=e.gasPrice){var n=i.O$.from(e.gasPrice),r=i.O$.from(e.maxFeePerGas||0);n.eq(r)||p.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:r})}var s=[A(e.chainId||0,"chainId"),A(e.nonce||0,"nonce"),A(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),A(e.maxFeePerGas||0,"maxFeePerGas"),A(e.gasLimit||0,"gasLimit"),null!=e.to?(0,a.getAddress)(e.to):"0x",A(e.value||0,"value"),e.data||"0x",_(e.accessList||[])];if(t){var c=(0,o.splitSignature)(t);s.push(A(c.recoveryParam,"recoveryParam")),s.push((0,o.stripZeros)(c.r)),s.push((0,o.stripZeros)(c.s))}return(0,o.hexConcat)(["0x02",f.encode(s)])}function S(e,t){var n=[A(e.chainId||0,"chainId"),A(e.nonce||0,"nonce"),A(e.gasPrice||0,"gasPrice"),A(e.gasLimit||0,"gasLimit"),null!=e.to?(0,a.getAddress)(e.to):"0x",A(e.value||0,"value"),e.data||"0x",_(e.accessList||[])];if(t){var r=(0,o.splitSignature)(t);n.push(A(r.recoveryParam,"recoveryParam")),n.push((0,o.stripZeros)(r.r)),n.push((0,o.stripZeros)(r.s))}return(0,o.hexConcat)(["0x01",f.encode(n)])}function I(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&p.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){(0,u.checkProperties)(e,m);var n=[];y.forEach((function(t){var r=e[t.name]||[],a={};t.numeric&&(a.hexPad="left"),r=(0,o.arrayify)((0,o.hexlify)(r,a)),t.length&&r.length!==t.length&&r.length>0&&p.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),t.maxLength&&(r=(0,o.stripZeros)(r)).length>t.maxLength&&p.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),n.push((0,o.hexlify)(r))}));var r=0;if(null!=e.chainId?"number"!=typeof(r=e.chainId)&&p.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!(0,o.isBytesLike)(t)&&t.v>28&&(r=Math.floor((t.v-35)/2)),0!==r&&(n.push((0,o.hexlify)(r)),n.push("0x"),n.push("0x")),!t)return f.encode(n);var a=(0,o.splitSignature)(t),i=27+a.recoveryParam;return 0!==r?(n.pop(),n.pop(),n.pop(),i+=2*r+8,a.v>28&&a.v!==i&&p.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):a.v!==i&&p.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),n.push((0,o.hexlify)(i)),n.push((0,o.stripZeros)((0,o.arrayify)(a.r))),n.push((0,o.stripZeros)((0,o.arrayify)(a.s))),f.encode(n)}(e,t);switch(e.type){case 1:return S(e,t);case 2:return k(e,t)}return p.throwError("unsupported transaction type: ".concat(e.type),l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function E(e,t,n){try{var r=h(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(e){p.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,o.hexZeroPad)(t[1],32),e.s=(0,o.hexZeroPad)(t[2],32);try{var a=(0,c.keccak256)(n(e));e.from=g(a,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function C(e){var t=(0,o.arrayify)(e);if(t[0]>127)return function(e){var t=f.decode(e);9!==t.length&&6!==t.length&&p.throwArgumentError("invalid raw transaction","rawTransaction",e);var n={nonce:h(t[0]).toNumber(),gasPrice:h(t[1]),gasLimit:h(t[2]),to:b(t[3]),value:h(t[4]),data:t[5],chainId:0};if(6===t.length)return n;try{n.v=i.O$.from(t[6]).toNumber()}catch(e){return n}if(n.r=(0,o.hexZeroPad)(t[7],32),n.s=(0,o.hexZeroPad)(t[8],32),i.O$.from(n.r).isZero()&&i.O$.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);var r=n.v-27,a=t.slice(0,6);0!==n.chainId&&(a.push((0,o.hexlify)(n.chainId)),a.push("0x"),a.push("0x"),r-=2*n.chainId+8);var s=(0,c.keccak256)(f.encode(a));try{n.from=g(s,{r:(0,o.hexlify)(n.r),s:(0,o.hexlify)(n.s),recoveryParam:r})}catch(e){}n.hash=(0,c.keccak256)(e)}return n.type=null,n}(t);switch(t[0]){case 1:return function(e){var t=f.decode(e.slice(1));8!==t.length&&11!==t.length&&p.throwArgumentError("invalid component count for transaction type: 1","payload",(0,o.hexlify)(e));var n={type:1,chainId:h(t[0]).toNumber(),nonce:h(t[1]).toNumber(),gasPrice:h(t[2]),gasLimit:h(t[3]),to:b(t[4]),value:h(t[5]),data:t[6],accessList:x(t[7])};return 8===t.length||(n.hash=(0,c.keccak256)(e),E(n,t.slice(8),S)),n}(t);case 2:return function(e){var t=f.decode(e.slice(1));9!==t.length&&12!==t.length&&p.throwArgumentError("invalid component count for transaction type: 2","payload",(0,o.hexlify)(e));var n=h(t[2]),r=h(t[3]),a={type:2,chainId:h(t[0]).toNumber(),nonce:h(t[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:r,gasPrice:null,gasLimit:h(t[4]),to:b(t[5]),value:h(t[6]),data:t[7],accessList:x(t[8])};return 9===t.length||(a.hash=(0,c.keccak256)(e),E(a,t.slice(9),k)),a}(t)}return p.throwError("unsupported transaction type: ".concat(t[0]),l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},86761:function(e,t,n){"use strict";n.r(t),n.d(t,{commify:function(){return k},formatEther:function(){return E},formatUnits:function(){return S},parseEther:function(){return C},parseUnits:function(){return I}});var r=n(47061),a=n(59900),i=n(55483),o=n(63139),s=n(35406),c=n(28218),u=new o.Logger(s.i),f={},d=c.O$.from(0),l=c.O$.from(-1);function p(e,t,n,r){var a={fault:t,operation:n};return void 0!==r&&(a.value=r),u.throwError(e,o.Logger.errors.NUMERIC_FAULT,a)}for(var b="0";b.length<256;)b+=b;function h(e){if("number"!=typeof e)try{e=c.O$.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+b.substring(0,e):u.throwArgumentError("invalid decimal size","decimals",e)}function y(e,t){null==t&&(t=0);var n=h(t),r=(e=c.O$.from(e)).lt(d);r&&(e=e.mul(l));for(var a=e.mod(n).toString();a.length2&&u.throwArgumentError("too many decimal points","value",e);var i=a[0],o=a[1];for(i||(i="0"),o||(o="0");"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(o.length>n.length-1&&p("fractional component exceeds decimals","underflow","parseFixed"),""===o&&(o="0");o.length80&&u.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",a),new e(f,n,r,a)}}]),e}(),g=function(){function e(t,n,a,i){(0,r.Z)(this,e),t!==f&&u.throwError("cannot use FixedNumber constructor; use FixedNumber.from",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=n,this._value=a,this._isFixedNumber=!0,Object.freeze(this)}return(0,a.Z)(e,[{key:"_checkFormat",value:function(e){this.format.name!==e.format.name&&u.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}},{key:"addUnsafe",value:function(t){this._checkFormat(t);var n=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return e.fromValue(n.add(r),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(t){this._checkFormat(t);var n=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return e.fromValue(n.sub(r),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(t){this._checkFormat(t);var n=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return e.fromValue(n.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(t){this._checkFormat(t);var n=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return e.fromValue(n.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}},{key:"floor",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var n=e.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(n=n.subUnsafe(A.toFormat(n.format))),n}},{key:"ceiling",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var n=e.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(n=n.addUnsafe(A.toFormat(n.format))),n}},{key:"round",value:function(t){null==t&&(t=0);var n=this.toString().split(".");if(1===n.length&&n.push("0"),(t<0||t>80||t%1)&&u.throwArgumentError("invalid decimal count","decimals",t),n[1].length<=t)return this;var r=e.from("1"+b.substring(0,t),this.format),a=w.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(a).floor().divUnsafe(r)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(e){if(null==e)return this._hex;e%8&&u.throwArgumentError("invalid byte width","width",e);var t=c.O$.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,i.hexZeroPad)(t,e/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(t){return e.fromString(this._value,t)}}],[{key:"fromValue",value:function(t,n,r){return null!=r||null==n||(0,c.Zm)(n)||(r=n,n=null),null==n&&(n=0),null==r&&(r="fixed"),e.fromString(y(t,n),v.from(r))}},{key:"fromString",value:function(t,n){null==n&&(n="fixed");var r=v.from(n),a=m(t,r.decimals);!r.signed&&a.lt(d)&&p("unsigned value cannot be negative","overflow","value",t);var o=null;r.signed?o=a.toTwos(r.width).toHexString():(o=a.toHexString(),o=(0,i.hexZeroPad)(o,r.width/8));var s=y(a,r.decimals);return new e(f,o,s,r)}},{key:"fromBytes",value:function(t,n){null==n&&(n="fixed");var r=v.from(n);if((0,i.arrayify)(t).length>r.width/8)throw new Error("overflow");var a=c.O$.from(t);r.signed&&(a=a.fromTwos(r.width));var o=a.toTwos((r.signed?0:1)+r.width).toHexString(),s=y(a,r.decimals);return new e(f,o,s,r)}},{key:"from",value:function(t,n){if("string"==typeof t)return e.fromString(t,n);if((0,i.isBytes)(t))return e.fromBytes(t,n);try{return e.fromValue(t,0,n)}catch(e){if(e.code!==o.Logger.errors.INVALID_ARGUMENT)throw e}return u.throwArgumentError("invalid FixedNumber value","value",t)}},{key:"isFixedNumber",value:function(e){return!(!e||!e._isFixedNumber)}}]),e}(),A=g.from(1),w=g.from("0.5"),x=new o.Logger("units/5.7.0"),_=["wei","kwei","mwei","gwei","szabo","finney","ether"];function k(e){var t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&x.throwArgumentError("invalid value","value",e);var n=t[0],r="";for("-"===n.substring(0,1)&&(r="-",n=n.substring(1));"0"===n.substring(0,1);)n=n.substring(1);""===n&&(n="0");var a="";for(2===t.length&&(a="."+(t[1]||"0"));a.length>2&&"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(var i=[];n.length;){if(n.length<=3){i.unshift(n);break}var o=n.length-3;i.unshift(n.substring(o)),n=n.substring(0,o)}return r+i.join(",")+a}function S(e,t){if("string"==typeof t){var n=_.indexOf(t);-1!==n&&(t=3*n)}return y(e,null!=t?t:18)}function I(e,t){if("string"!=typeof e&&x.throwArgumentError("value must be a string","value",e),"string"==typeof t){var n=_.indexOf(t);-1!==n&&(t=3*n)}return m(e,null!=t?t:18)}function E(e){return S(e,18)}function C(e){return I(e,18)}},50987:function(e,t,n){"use strict";n.r(t),n.d(t,{Wallet:function(){return I},verifyMessage:function(){return E},verifyTypedData:function(){return C}});var r=n(24611),a=n(47061),i=n(59900),o=n(14771),s=n(24269),c=n(38114),u=n(33286),f=n(73060),d=n(32493),l=n(55483),p=n(91801),b=n(57683),h=n(73295),y=n(49651),m=n(69140),v=n(22381),g=n(5545),A=n(98497),w=n(12669),x=n(99779),_=n(63139),k=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},S=new _.Logger("wallet/5.7.0"),I=function(e){(0,s.Z)(n,e);var t=(0,c.Z)(n);function n(e,r){var i,s;if((0,a.Z)(this,n),i=t.call(this),null!=(s=e)&&(0,l.isHexString)(s.privateKey,32)&&null!=s.address){var c=new g.SigningKey(e.privateKey);if((0,m.defineReadOnly)((0,o.Z)(i),"_signingKey",(function(){return c})),(0,m.defineReadOnly)((0,o.Z)(i),"address",(0,x.computeAddress)(i.publicKey)),i.address!==(0,u.getAddress)(e.address)&&S.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){var t=e.mnemonic;return t&&t.phrase}(e)){var d=e.mnemonic;(0,m.defineReadOnly)((0,o.Z)(i),"_mnemonic",(function(){return{phrase:d.phrase,path:d.path||h.defaultPath,locale:d.locale||"en"}}));var p=i.mnemonic,b=h.HDNode.fromMnemonic(p.phrase,null,p.locale).derivePath(p.path);(0,x.computeAddress)(b.privateKey)!==i.address&&S.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,m.defineReadOnly)((0,o.Z)(i),"_mnemonic",(function(){return null}))}else{if(g.SigningKey.isSigningKey(e))"secp256k1"!==e.curve&&S.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,m.defineReadOnly)((0,o.Z)(i),"_signingKey",(function(){return e}));else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);var y=new g.SigningKey(e);(0,m.defineReadOnly)((0,o.Z)(i),"_signingKey",(function(){return y}))}(0,m.defineReadOnly)((0,o.Z)(i),"_mnemonic",(function(){return null})),(0,m.defineReadOnly)((0,o.Z)(i),"address",(0,x.computeAddress)(i.publicKey))}return r&&!f.zt.isProvider(r)&&S.throwArgumentError("invalid provider","provider",r),(0,m.defineReadOnly)((0,o.Z)(i),"provider",r||null),i}return(0,i.Z)(n,[{key:"mnemonic",get:function(){return this._mnemonic()}},{key:"privateKey",get:function(){return this._signingKey().privateKey}},{key:"publicKey",get:function(){return this._signingKey().publicKey}},{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"connect",value:function(e){return new n(this,e)}},{key:"signTransaction",value:function(e){var t=this;return(0,m.resolveProperties)(e).then((function(n){null!=n.from&&((0,u.getAddress)(n.from)!==t.address&&S.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete n.from);var r=t._signingKey().signDigest((0,y.keccak256)((0,x.serialize)(n)));return(0,x.serialize)(n,r)}))}},{key:"signMessage",value:function(e){return k(this,void 0,void 0,(0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.joinSignature)(this._signingKey().signDigest((0,p.r)(e))));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,n){return k(this,void 0,void 0,(0,r.Z)().mark((function a(){var i,o=this;return(0,r.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,b.E.resolveNames(e,t,n,(function(e){return null==o.provider&&S.throwError("cannot resolve ENS names without a provider",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),o.provider.resolveName(e)}));case 2:return i=r.sent,r.abrupt("return",(0,l.joinSignature)(this._signingKey().signDigest(b.E.hash(i.domain,t,i.value))));case 4:case"end":return r.stop()}}),a,this)})))}},{key:"encrypt",value:function(e,t,n){if("function"!=typeof t||n||(n=t,t={}),n&&"function"!=typeof n)throw new Error("invalid callback");return t||(t={}),(0,A.HI)(this,e,t,n)}}],[{key:"createRandom",value:function(e){var t=(0,v.O)(16);e||(e={}),e.extraEntropy&&(t=(0,l.arrayify)((0,l.hexDataSlice)((0,y.keccak256)((0,l.concat)([t,e.extraEntropy])),0,16)));var r=(0,h.entropyToMnemonic)(t,e.locale);return n.fromMnemonic(r,e.path,e.locale)}},{key:"fromEncryptedJson",value:function(e,t,r){return(0,w.decryptJsonWallet)(e,t,r).then((function(e){return new n(e)}))}},{key:"fromEncryptedJsonSync",value:function(e,t){return new n((0,w.decryptJsonWalletSync)(e,t))}},{key:"fromMnemonic",value:function(e,t,r){return t||(t=h.defaultPath),new n(h.HDNode.fromMnemonic(e,null,r).derivePath(t))}}]),n}(d.E);function E(e,t){return(0,x.recoverAddress)((0,p.r)(e),t)}function C(e,t,n,r){return(0,x.recoverAddress)(b.E.hash(e,t,n),r)}},43098:function(e,t,n){"use strict";n.r(t),n.d(t,{_fetchData:function(){return h},fetchJson:function(){return y},poll:function(){return m}});var r=n(24611),a=n(79453),i=n(55483),o=n(69140),s=n(81680),c=n(63139),u=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))};function f(e,t){return u(this,void 0,void 0,(0,r.Z)().mark((function n(){var a,o,s,c,u;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==t&&(t={}),a={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0},!0!==t.skipFetchSetup&&(a.mode="cors",a.cache="no-cache",a.credentials="same-origin",a.redirect="follow",a.referrer="client"),null!=t.fetchOptions&&((o=t.fetchOptions).mode&&(a.mode=o.mode),o.cache&&(a.cache=o.cache),o.credentials&&(a.credentials=o.credentials),o.redirect&&(a.redirect=o.redirect),o.referrer&&(a.referrer=o.referrer)),n.next=7,fetch(e,a);case 7:return s=n.sent,n.next=10,s.arrayBuffer();case 10:return c=n.sent,u={},s.headers.forEach?s.headers.forEach((function(e,t){u[t.toLowerCase()]=e})):s.headers.keys().forEach((function(e){u[e.toLowerCase()]=s.headers.get(e)})),n.abrupt("return",{headers:u,statusCode:s.status,statusMessage:s.statusText,body:(0,i.arrayify)(new Uint8Array(c))});case 14:case"end":return n.stop()}}),n)})))}var d=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},l=new c.Logger("web/5.7.1");function p(e){return new Promise((function(t){setTimeout(t,e)}))}function b(e,t){if(null==e)return null;if("string"==typeof e)return e;if((0,i.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,s.ZN)(e)}catch(e){}return(0,i.hexlify)(e)}return e}function h(e,t,n){var i="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;l.assertArgument(i>0&&i%1==0,"invalid connection throttle limit","connection.throttleLimit",i);var u="object"==typeof e?e.throttleCallback:null,h="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;l.assertArgument(h>0&&h%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",h);var y="object"==typeof e&&!!e.errorPassThrough,m={},v=null,g={method:"GET"},A=!1,w=12e4;if("string"==typeof e)v=e;else if("object"==typeof e){if(null!=e&&null!=e.url||l.throwArgumentError("missing URL","connection.url",e),v=e.url,"number"==typeof e.timeout&&e.timeout>0&&(w=e.timeout),e.headers)for(var x in e.headers)m[x.toLowerCase()]={key:x,value:String(e.headers[x])},["if-none-match","if-modified-since"].indexOf(x.toLowerCase())>=0&&(A=!0);if(g.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==v.substring(0,6)&&!0!==e.allowInsecureAuthentication&&l.throwError("basic authentication requires a secure https url",c.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:v,user:e.user,password:"[REDACTED]"});var _=e.user+":"+e.password;m.authorization={key:"Authorization",value:"Basic "+(0,a.c)((0,s.Y0)(_))}}null!=e.skipFetchSetup&&(g.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(g.fetchOptions=(0,o.shallowCopy)(e.fetchOptions))}var k,S=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),I=v?v.match(S):null;if(I)try{var E={statusCode:200,statusMessage:"OK",headers:{"content-type":I[1]||"text/plain"},body:I[2]?(0,a.J)(I[3]):(k=I[3],(0,s.Y0)(k.replace(/%([0-9a-f][0-9a-f])/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}))))},C=E.body;return n&&(C=n(E.body,E)),Promise.resolve(C)}catch(e){l.throwError("processing response error",c.Logger.errors.SERVER_ERROR,{body:b(I[1],I[2]),error:e,requestBody:null,requestMethod:"GET",url:v})}t&&(g.method="POST",g.body=t,null==m["content-type"]&&(m["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==m["content-length"]&&(m["content-length"]={key:"Content-Length",value:String(t.length)}));var T={};Object.keys(m).forEach((function(e){var t=m[e];T[t.key]=t.value})),g.headers=T;var O,P=(O=null,{promise:new Promise((function(e,t){w&&(O=setTimeout((function(){null!=O&&(O=null,t(l.makeError("timeout",c.Logger.errors.TIMEOUT,{requestBody:b(g.body,T["content-type"]),requestMethod:g.method,timeout:w,url:v})))}),w))})),cancel:function(){null!=O&&(clearTimeout(O),O=null)}}),M=function(){return d(this,void 0,void 0,(0,r.Z)().mark((function e(){var t,a,o,s,d,m,w,x,_,k;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t=300)&&(P.cancel(),l.throwError("bad response",c.Logger.errors.SERVER_ERROR,{status:a.statusCode,headers:a.headers,body:b(w,a.headers?a.headers["content-type"]:null),requestBody:b(g.body,T["content-type"]),requestMethod:g.method,url:v})),!n){e.next=60;break}return e.prev=37,e.next=40,n(w,a);case 40:return x=e.sent,P.cancel(),e.abrupt("return",x);case 45:if(e.prev=45,e.t1=e.catch(37),!(e.t1.throttleRetry&&ts)return void(o()&&r(new Error("retry limit reached")));var u=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));ut.ceiling&&(u=t.ceiling),setTimeout(a,u)}return null}),(function(e){o()&&r(e)}))}()}))}},12743:function(e,t,n){"use strict";var r=n(95656);t.Z=void 0;var a=r(n(82350)),i=n(55948),o=(0,a.default)((0,i.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");t.Z=o},26871:function(e,t,n){"use strict";var r=n(95656);t.Z=void 0;var a=r(n(82350)),i=n(55948),o=(0,a.default)((0,i.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"Launch");t.Z=o},82350:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(77787)},43361:function(e,t){"use strict";t.Z={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},96296:function(e,t){"use strict";t.Z={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},51544:function(e,t){"use strict";t.Z={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"}},39743:function(e,t){"use strict";t.Z={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},46051:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(17692),a=n(71972),i=n(49146),o=n(62139),s=n(42521),c=n(21103),u=n(61439),f=n(20240),d=n(52755),l={black:"#000",white:"#fff"},p=n(96296),b={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h=n(39743),y=n(51544),m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},g=n(43361),A=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:l.white,default:l.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:l.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:l.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _(e,t,n,r){var a=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,d.$n)(e.main,a):"dark"===t&&(e.dark=(0,d._j)(e.main,i)))}var k=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],S={textTransform:"uppercase"},I='"Roboto", "Helvetica", "Arial", sans-serif';function E(e,t){var n="function"==typeof t?t(e):t,i=n.fontFamily,s=void 0===i?I:i,c=n.fontSize,u=void 0===c?14:c,f=n.fontWeightLight,d=void 0===f?300:f,l=n.fontWeightRegular,p=void 0===l?400:l,b=n.fontWeightMedium,h=void 0===b?500:b,y=n.fontWeightBold,m=void 0===y?700:y,v=n.htmlFontSize,g=void 0===v?16:v,A=n.allVariants,w=n.pxToRem,x=(0,a.Z)(n,k),_=u/14,E=w||function(e){return"".concat(e/g*_,"rem")},C=function(e,t,n,a,i){return(0,r.Z)({fontFamily:s,fontWeight:e,fontSize:E(t),lineHeight:n},s===I?{letterSpacing:"".concat((o=a/t,Math.round(1e5*o)/1e5),"em")}:{},i,A);var o},T={h1:C(d,96,1.167,-1.5),h2:C(d,60,1.2,-.5),h3:C(p,48,1.167,0),h4:C(p,34,1.235,.25),h5:C(p,24,1.334,0),h6:C(h,20,1.6,.15),subtitle1:C(p,16,1.75,.15),subtitle2:C(h,14,1.57,.1),body1:C(p,16,1.5,.15),body2:C(p,14,1.43,.15),button:C(h,14,1.75,.4,S),caption:C(p,12,1.66,.4),overline:C(p,12,2.66,1,S),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,o.Z)((0,r.Z)({htmlFontSize:g,pxToRem:E,fontFamily:s,fontSize:u,fontWeightLight:d,fontWeightRegular:p,fontWeightMedium:h,fontWeightBold:m},T),x,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var T=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],O=n(54730),P={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},M=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,k=e.palette,S=void 0===k?{}:k,I=e.transitions,C=void 0===I?{}:I,B=e.typography,R=void 0===B?{}:B,N=(0,a.Z)(e,M);if(e.vars)throw new Error((0,i.Z)(18));var D,j,U,L=function(e){var t=e.mode,n=void 0===t?"light":t,s=e.contrastThreshold,c=void 0===s?3:s,u=e.tonalOffset,f=void 0===u?.2:u,k=(0,a.Z)(e,A),S=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(n),I=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[200],light:b[50],dark:b[400]}:{main:b[500],light:b[300],dark:b[700]}}(n),E=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h.Z[500],light:h.Z[300],dark:h.Z[700]}:{main:h.Z[700],light:h.Z[400],dark:h.Z[800]}}(n),C=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(n),T=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g.Z[400],light:g.Z[300],dark:g.Z[700]}:{main:g.Z[800],light:g.Z[500],dark:g.Z[900]}}(n),O=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y.Z[400],light:y.Z[300],dark:y.Z[700]}:{main:"#ed6c02",light:y.Z[500],dark:y.Z[900]}}(n);function P(e){return(0,d.mi)(e,x.text.primary)>=c?x.text.primary:w.text.primary}var M=function(e){var t=e.color,n=e.name,a=e.mainShade,o=void 0===a?500:a,s=e.lightShade,c=void 0===s?300:s,u=e.darkShade,d=void 0===u?700:u;if(!(t=(0,r.Z)({},t)).main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,i.Z)(11,n?" (".concat(n,")"):"",o));if("string"!=typeof t.main)throw new Error((0,i.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return _(t,"light",c,f),_(t,"dark",d,f),t.contrastText||(t.contrastText=P(t.main)),t},B={dark:x,light:w};return(0,o.Z)((0,r.Z)({common:(0,r.Z)({},l),mode:n,primary:M({color:S,name:"primary"}),secondary:M({color:I,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:M({color:E,name:"error"}),warning:M({color:O,name:"warning"}),info:M({color:C,name:"info"}),success:M({color:T,name:"success"}),grey:p.Z,contrastThreshold:c,getContrastText:P,augmentColor:M,tonalOffset:f},B[n]),k)}(S),Z=(0,s.Z)(e),F=(0,o.Z)(Z,{mixins:(D=Z.breakpoints,j=n,(0,r.Z)({toolbar:(U={minHeight:56},(0,f.Z)(U,D.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,f.Z)(U,D.up("sm"),{minHeight:64}),U)},j)),palette:L,shadows:T.slice(),typography:E(L,R),transitions:(0,O.ZP)(C),zIndex:(0,r.Z)({},P)});F=(0,o.Z)(F,N);for(var H=arguments.length,z=new Array(H>1?H-1:0),q=1;q0&&void 0!==arguments[0]?arguments[0]:["all"],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=a.duration,s=void 0===o?n.standard:o,u=a.easing,f=void 0===u?t.easeInOut:u,d=a.delay,l=void 0===d?0:d;return(0,r.Z)(a,i),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:c(s)," ").concat(f," ").concat("string"==typeof l?l:c(l))})).join(",")}},e,{easing:t,duration:n})}},26251:function(e,t,n){"use strict";var r=(0,n(46051).Z)();t.Z=r},68473:function(e,t){"use strict";t.Z="$$material"},43583:function(e,t,n){"use strict";n.d(t,{Dz:function(){return s},FO:function(){return o}});var r=n(71177),a=n(26251),i=n(68473),o=function(e){return(0,r.x9)(e)&&"classes"!==e},s=r.x9,c=(0,r.ZP)({themeId:i.Z,defaultTheme:a.Z,rootShouldForwardProp:o});t.ZP=c},70426:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(10306),a=n(26251),i=n(68473);function o(e){var t=e.props,n=e.name;return(0,r.Z)({props:t,name:n,defaultTheme:a.Z,themeId:i.Z})}},96227:function(e,t,n){"use strict";var r=n(82761);t.Z=r.Z},29360:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(17692),a=n(19148),i=n(71972),o=n(71376),s=n(58049),c=n(96227),u=n(70426),f=n(43583),d=n(85782),l=n(6188);function p(e){return(0,l.Z)("MuiSvgIcon",e)}(0,d.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var b=n(55948),h=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],y=(0,f.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"inherit"!==n.color&&t["color".concat((0,c.Z)(n.color))],t["fontSize".concat((0,c.Z)(n.fontSize))]]}})((function(e){var t,n,r,a,i,o,s,c,u,f,d,l,p,b,h,y,m,v=e.theme,g=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(t=v.transitions)||null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(r=v.transitions)||null==(a=r.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=v.typography)||null==(o=i.pxToRem)?void 0:o.call(i,20))||"1.25rem",medium:(null==(s=v.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(u=v.typography)||null==(f=u.pxToRem)?void 0:f.call(u,35))||"2.1875rem"}[g.fontSize],color:null!=(d=null==(l=(v.vars||v).palette)||null==(p=l[g.color])?void 0:p.main)?d:{action:null==(b=(v.vars||v).palette)||null==(h=b.action)?void 0:h.active,disabled:null==(y=(v.vars||v).palette)||null==(m=y.action)?void 0:m.disabled,inherit:void 0}[g.color]}})),m=a.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiSvgIcon"}),a=n.children,f=n.className,d=n.color,l=void 0===d?"inherit":d,m=n.component,v=void 0===m?"svg":m,g=n.fontSize,A=void 0===g?"medium":g,w=n.htmlColor,x=n.inheritViewBox,_=void 0!==x&&x,k=n.titleAccess,S=n.viewBox,I=void 0===S?"0 0 24 24":S,E=(0,i.Z)(n,h),C=(0,r.Z)({},n,{color:l,component:v,fontSize:A,instanceFontSize:e.fontSize,inheritViewBox:_,viewBox:I}),T={};_||(T.viewBox=I);var O=function(e){var t=e.color,n=e.fontSize,r=e.classes,a={root:["root","inherit"!==t&&"color".concat((0,c.Z)(t)),"fontSize".concat((0,c.Z)(n))]};return(0,s.Z)(a,p,r)}(C);return(0,b.jsxs)(y,(0,r.Z)({as:v,className:(0,o.Z)(O.root,f),focusable:"false",color:w,"aria-hidden":!k||void 0,role:k?"img":void 0,ref:t},T,E,{ownerState:C,children:[a,k?(0,b.jsx)("title",{children:k}):null]}))}));m.muiName="SvgIcon";var v=m;function g(e,t){function n(n,a){return(0,b.jsx)(v,(0,r.Z)({"data-testid":"".concat(t,"Icon"),ref:a},n,{children:e}))}return n.muiName=v.muiName,a.memo(a.forwardRef(n))}},4884:function(e,t,n){"use strict";var r=n(84479);t.Z=r.Z},77787:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return a.Z},createChainedFunction:function(){return i},createSvgIcon:function(){return o.Z},debounce:function(){return s.Z},deprecatedPropType:function(){return c},isMuiElement:function(){return f},ownerDocument:function(){return d.Z},ownerWindow:function(){return l.Z},requirePropFactory:function(){return p},setRef:function(){return b},unstable_ClassNameGenerator:function(){return x},unstable_useEnhancedEffect:function(){return h.Z},unstable_useId:function(){return y.Z},unsupportedProp:function(){return m},useControlled:function(){return v.Z},useEventCallback:function(){return g.Z},useForkRef:function(){return A.Z},useIsFocusVisible:function(){return w.Z}});var r=n(52714),a=n(96227),i=n(6137).Z,o=n(29360),s=n(4884),c=function(e,t){return function(){return null}},u=n(19148),f=function(e,t){return u.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)},d=n(72017),l=n(51871);n(17692);var p=function(e,t){return function(){return null}},b=n(83898).Z,h=n(6261),y=n(51566),m=function(e,t,n,r,a){return null},v=n(45287),g=n(13636),A=n(31300),w=n(98245),x={configure:function(e){r.Z.configure(e)}}},72017:function(e,t,n){"use strict";var r=n(7232);t.Z=r.Z},51871:function(e,t,n){"use strict";var r=n(24816);t.Z=r.Z},45287:function(e,t,n){"use strict";var r=n(29007);t.Z=r.Z},6261:function(e,t,n){"use strict";var r=n(64095);t.Z=r.Z},13636:function(e,t,n){"use strict";var r=n(7812);t.Z=r.Z},31300:function(e,t,n){"use strict";var r=n(84615);t.Z=r.Z},51566:function(e,t,n){"use strict";var r=n(95689);t.Z=r.Z},98245:function(e,t,n){"use strict";var r=n(23264);t.Z=r.Z},88337:function(e,t,n){"use strict";n.d(t,{L7:function(){return c},P$:function(){return f},VO:function(){return a},W8:function(){return s},dt:function(){return u},k9:function(){return o}});var r=n(62139),a={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(a[e],"px)")}};function o(e,t,n){var r=e.theme||{};if(Array.isArray(t)){var o=r.breakpoints||i;return t.reduce((function(e,r,a){return e[o.up(o.keys[a])]=n(t[a]),e}),{})}if("object"==typeof t){var s=r.breakpoints||i;return Object.keys(t).reduce((function(e,r){if(-1!==Object.keys(s.values||a).indexOf(r))e[s.up(r)]=n(t[r],r);else{var i=r;e[i]=t[i]}return e}),{})}return n(t)}function s(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{}))||{}}function c(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function u(e){for(var t=s(e),n=arguments.length,a=new Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));var a,o=e.substring(t+1,e.length-1);if("color"===n){if(a=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,r.Z)(10,a))}else o=o.split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)})),colorSpace:a}}function o(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function s(e){var t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",f=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(u+="a",f.push(t[3])),o({type:u,values:f})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){var n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e,t){return e=i(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,o(e)}function f(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return o(e)}function d(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return o(e)}},71177:function(e,t,n){"use strict";n.d(t,{ZP:function(){return D},x9:function(){return B}});var r=n(19961),a=n(23680),i=n(71972),o=n(17692),s=n(19148),c=n(63246),u=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,f=(0,c.Z)((function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),d=n(84335),l=n(83138),p=n(79787),b=n(97950),h=f,y=function(e){return"theme"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?h:y},v=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,l.hC)(t,n,r),(0,b.L)((function(){return(0,l.My)(t,n,r)})),null},A=function e(t,n){var r,a,i=t.__emotion_real===t,c=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var u=v(t,n,i),f=u||m(c),b=!f("as");return function(){var h=arguments,y=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&y.push("label:"+r+";"),null==h[0]||void 0===h[0].raw)y.push.apply(y,h);else{y.push(h[0][0]);for(var A=h.length,w=1;w0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,n=e.defaultTheme,s=void 0===n?R:n,c=e.rootShouldForwardProp,u=void 0===c?B:c,f=e.slotShouldForwardProp,d=void 0===f?B:f,l=function(e){return(0,C.Z)((0,o.Z)({},e,{theme:N((0,o.Z)({},e,{defaultTheme:s,themeId:t}))}))};return l.__mui_systemSx=!0,function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var c=n.name,f=n.slot,p=n.skipVariantsResolver,b=n.skipSx,h=n.overridesResolver,y=(0,i.Z)(n,T),m=void 0!==p?p:f&&"Root"!==f||!1,v=b||!1,g=B;"Root"===f?g=u:f?g=d:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);var A=function(e,t){return w(e,t)}(e,(0,o.Z)({shouldForwardProp:g,label:void 0},y)),_=function(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),f=1;f0){var y=new Array(b).fill("");(p=[].concat((0,r.Z)(n),(0,r.Z)(y))).raw=[].concat((0,r.Z)(n.raw),(0,r.Z)(y))}else"function"==typeof n&&n.__emotion_real!==n&&(p=function(e){return n((0,o.Z)({},e,{theme:N((0,o.Z)({},e,{defaultTheme:s,themeId:t}))}))});var g=A.apply(void 0,[p].concat((0,r.Z)(d)));return e.muiName&&(g.muiName=e.muiName),g};return A.withConfig&&(_.withConfig=A.withConfig),_}}},42521:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(17692),a=n(71972),i=n(62139),o=n(20240),s=["values","unit","step"],c={borderRadius:4},u=n(19154),f=n(61439),d=n(21103),l=["breakpoints","palette","spacing","shape"],p=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,p=e.palette,b=void 0===p?{}:p,h=e.spacing,y=e.shape,m=void 0===y?{}:y,v=(0,a.Z)(e,l),g=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,i=e.unit,c=void 0===i?"px":i,u=e.step,f=void 0===u?5:u,d=(0,a.Z)(e,s),l=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,r.Z)({},e,(0,o.Z)({},t.key,t.val))}),{})}(n),p=Object.keys(l);function b(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(c,")")}function h(e){var t="number"==typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-f/100).concat(c,")")}function y(e,t){var r=p.indexOf(t);return"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(c,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[p[r]]?n[p[r]]:t)-f/100).concat(c,")")}return(0,r.Z)({keys:p,values:l,up:b,down:h,between:y,only:function(e){return p.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,u.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?x-1:0),k=1;k2){if(!d[e])return[e];e=d[e]}var t=e.split(""),n=(0,i.Z)(t,2),r=n[0],a=n[1],o=u[r],s=f[a]||"";return Array.isArray(s)?s.map((function(e){return o+e})):[o+s]},a={},function(e){return void 0===a[e]&&(a[e]=r(e)),a[e]}),p=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],b=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[].concat(p,b);function y(e,t,n,r){var a,i=null!=(a=(0,s.DW)(e,t,!1))?a:n;return"number"==typeof i?function(e){return"string"==typeof e?e:i*e}:Array.isArray(i)?function(e){return"string"==typeof e?e:i[e]}:"function"==typeof i?i:function(){}}function m(e){return y(e,"spacing",8)}function v(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}function g(e,t){var n=m(e.theme);return Object.keys(e).map((function(r){return function(e,t,n,r){if(-1===t.indexOf(n))return null;var a=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=v(t,n),e}),{})}}(l(n),r),i=e[n];return(0,o.k9)(e,i,a)}(e,t,r,n)})).reduce(c.Z,{})}function A(e){return g(e,p)}function w(e){return g(e,b)}function x(e){return g(e,h)}A.propTypes={},A.filterProps=p,w.propTypes={},w.filterProps=b,x.propTypes={},x.filterProps=h},59016:function(e,t,n){"use strict";n.d(t,{DW:function(){return o},Jq:function(){return s}});var r=n(20240),a=n(82761),i=n(88337);function o(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function s(e,t,n){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"==typeof e?e(n):Array.isArray(e)?e[n]||a:o(e,n)||a,t&&(r=t(r,a,e)),r}t.ZP=function(e){var t=e.prop,n=e.cssProperty,c=void 0===n?e.prop:n,u=e.themeKey,f=e.transform,d=function(e){if(null==e[t])return null;var n=e[t],d=o(e.theme,u)||{};return(0,i.k9)(e,n,(function(e){var n=s(d,f,e);return e===n&&"string"==typeof e&&(n=s(d,f,"".concat(t).concat("default"===e?"":(0,a.Z)(e)),e)),!1===c?n:(0,r.Z)({},c,n)}))};return d.propTypes={},d.filterProps=[t],d}},21103:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(19154),a=n(59016),i=n(17156),o=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:i;return(0,a.Z)(e)}},54859:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(17692);function a(e,t){var n=(0,r.Z)({},t);return Object.keys(e).forEach((function(i){if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.Z)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){var o=e[i]||{},s=t[i];n[i]={},s&&Object.keys(s)?o&&Object.keys(o)?(n[i]=(0,r.Z)({},s),Object.keys(o).forEach((function(e){n[i][e]=a(o[e],s[e])}))):n[i]=s:n[i]=o}else void 0===n[i]&&(n[i]=e[i])})),n}function i(e){var t=e.theme,n=e.name,r=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?a(t.components[n].defaultProps,r):r}},10306:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(54859),a=n(85844);function i(e){var t=e.props,n=e.name,i=e.defaultTheme,o=e.themeId,s=(0,a.Z)(i);return o&&(s=s[o]||s),(0,r.Z)({theme:s,name:n,props:t})}},3236:function(e,t,n){"use strict";var r=n(19148),a=n(84335);t.Z=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=r.useContext(a.T);return n&&(e=n,0!==Object.keys(e).length)?n:t}},52714:function(e,t){"use strict";var n,r=function(e){return e},a=(n=r,{configure:function(e){n=e},generate:function(e){return n(e)},reset:function(){n=r}});t.Z=a},82761:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(49146);function a(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},58049:function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r={};return Object.keys(e).forEach((function(a){r[a]=e[a].reduce((function(e,r){if(r){var a=t(r);""!==a&&e.push(a),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},6137:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,a=arguments.length,i=new Array(a),o=0;o2&&void 0!==arguments[2]?arguments[2]:{clone:!0},s=n.clone?(0,r.Z)({},e):e;return a(e)&&a(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(a(t[r])&&r in e&&a(e[r])?s[r]=o(e[r],t[r],n):n.clone?s[r]=a(t[r])?i(t[r]):t[r]:s[r]=t[r])})),s}},49146:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n2&&void 0!==arguments[2]?arguments[2]:"Mui",i=a[t];return i?"".concat(n,"-").concat(i):"".concat(r.Z.generate(e),"-").concat(t)}},85782:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(6188);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",a={};return t.forEach((function(t){a[t]=(0,r.Z)(e,t,n)})),a}},7232:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},24816:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(7232);function a(e){return(0,r.Z)(e).defaultView||window}},83898:function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},29007:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(23680),a=n(19148);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,a.useRef(void 0!==t).current),o=a.useState(n),s=(0,r.Z)(o,2),c=s[0],u=s[1];return[i?t:c,a.useCallback((function(e){i||u(e)}),[])]}},64095:function(e,t,n){"use strict";var r=n(19148),a="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;t.Z=a},7812:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19148),a=n(64095);function i(e){var t=r.useRef(e);return(0,a.Z)((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},84615:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19148),a=n(83898);function i(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=new d.default(this.blob.decode(e,t),10,"le");return this.signed?n.fromTwos(8*this.span).clone():n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.signed&&(e=e.toTwos(8*this.span)),this.blob.encode(e.toArrayLike(r,"le",this.span),t,n)}}]),n}(u.Layout);function b(e){return new p(8,!1,e)}t.u64=b,t.i64=function(e){return new p(8,!0,e)},t.u128=function(e){return new p(16,!1,e)},t.i128=function(e){return new p(16,!0,e)};var h=function(e){o(n,e);var t=s(n);function n(e,r,i,o){var s;return a(this,n),(s=t.call(this,e.span,o)).layout=e,s.decoder=r,s.encoder=i,s}return i(n,[{key:"decode",value:function(e,t){return this.decoder(this.layout.decode(e,t))}},{key:"encode",value:function(e,t,n){return this.layout.encode(this.encoder(e),t,n)}},{key:"getSpan",value:function(e,t){return this.layout.getSpan(e,t)}}]),n}(u.Layout);t.publicKey=function(e){return new h(u.blob(32),(function(e){return new f.PublicKey(e)}),(function(e){return e.toBuffer()}),e)};var y=function(e){o(n,e);var t=s(n);function n(e,r){var i;return a(this,n),(i=t.call(this,-1,r)).layout=e,i.discriminator=u.u8(),i}return i(n,[{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null==e?this.discriminator.encode(0,t,n):(this.discriminator.encode(1,t,n),this.layout.encode(e,t,n+1)+1)}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return null;if(1===n)return this.layout.decode(e,t+1);throw new Error("Invalid option "+this.property)}},{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return 1;if(1===n)return this.layout.getSpan(e,t+1)+1;throw new Error("Invalid option "+this.property)}}]),n}(u.Layout);function m(e){if(0===e)return!1;if(1===e)return!0;throw new Error("Invalid bool: "+e)}function v(e){return e?1:0}function g(e){var t=u.u32("length"),n=u.struct([t,u.blob(u.offset(t,-t.span),"data")]);return new h(n,(function(e){return e.data}),(function(e){return{data:e}}),e)}t.option=function(e,t){return new y(e,t)},t.bool=function(e){return new h(u.u8(),m,v,e)},t.vec=function(e,t){var n=u.u32("length"),r=u.struct([n,u.seq(e,u.offset(n,-n.span),"values")]);return new h(r,(function(e){return e.values}),(function(e){return{values:e}}),t)},t.tagged=function(e,t,n){var r=u.struct([b("tag"),t.replicate("data")]);return new h(r,(function(t){var n=t.tag,r=t.data;if(!n.eq(e))throw new Error("Invalid tag, expected: "+e.toString("hex")+", got: "+n.toString("hex"));return r}),(function(t){return{tag:e,data:t}}),n)},t.vecU8=g,t.str=function(e){return new h(g(),(function(e){return e.toString("utf-8")}),(function(e){return r.from(e,"utf-8")}),e)},t.rustEnum=function(e,t,n){var r=u.union(null!=n?n:u.u8(),t);return e.forEach((function(e,t){return r.addVariant(t,e,e.property)})),r},t.array=function(e,t,n){var r=u.struct([u.seq(e,t,"values")]);return new h(r,(function(e){return e.values}),(function(e){return{values:e}}),n)};var A=function(e){o(n,e);var t=s(n);function n(e,r,i){var o;return a(this,n),(o=t.call(this,e.span+r.span,i)).keyLayout=e,o.valueLayout=r,o}return i(n,[{key:"decode",value:function(e,t){return t=t||0,[this.keyLayout.decode(e,t),this.valueLayout.decode(e,t+this.keyLayout.getSpan(e,t))]}},{key:"encode",value:function(e,t,n){n=n||0;var r=this.keyLayout.encode(e[0],t,n);return r+this.valueLayout.encode(e[1],t,n+r)}},{key:"getSpan",value:function(e,t){return this.keyLayout.getSpan(e,t)+this.valueLayout.getSpan(e,t)}}]),n}(u.Layout);t.map=function(e,t,n){var r=u.u32("length"),a=u.struct([r,u.seq(new A(e,t),u.offset(r,-r.span),"values")]);return new h(a,(function(e){var t=e.values;return new Map(t)}),(function(e){return{values:Array.from(e.entries())}}),n)}},64289:function(e,t,n){"use strict";n(34560).default,n(47474).default,n(1185).default;var r=n(21146).default,a=n(17964).default,i=n(54790).default,o=n(63298).default,s=n(51795).default;t._O=t.Jq=t.KB=t.u8=t.cv=void 0,t.Ik=t.A9=t.n_=t.gM=void 0;var c=n(79061);function u(e){if(!(e instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function f(e){return u(e),c.Buffer.from(e.buffer,e.byteOffset,e.length)}var d=function(){function e(t,n){if(o(this,e),!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=n}return s(e,[{key:"makeDestinationObject",value:function(){return{}}},{key:"getSpan",value:function(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(e){var t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}},{key:"fromArray",value:function(e){}}]),e}();function l(e,t){return t.property?e+"["+t.property+"]":e}var p=function(e){a(n,e);var t=i(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}(d),b=function(e){a(n,e);var t=i(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;if(o(this,n),!(e instanceof d))throw new TypeError("layout must be a Layout");if(!Number.isInteger(a))throw new TypeError("offset must be integer or undefined");return(r=t.call(this,e.span,i||e.property)).layout=e,r.offset=a,r}return s(n,[{key:"isCount",value:function(){return this.layout instanceof h||this.layout instanceof y}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.decode(e,t+this.offset)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.layout.encode(e,t,n+this.offset)}}]),n}(p),h=function(e){a(n,e);var t=i(n);function n(e,r){var a;if(o(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return s(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return f(e).readUIntLE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return f(t).writeUIntLE(e,n,this.span),this.span}}]),n}(d),y=function(e){a(n,e);var t=i(n);function n(e,r){var a;if(o(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return s(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return f(e).readUIntBE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return f(t).writeUIntBE(e,n,this.span),this.span}}]),n}(d),m=Math.pow(2,32);function v(e){var t=Math.floor(e/m);return{hi32:t,lo32:e-t*m}}function g(e,t){return e*m+t}var A=function(e){a(n,e);var t=i(n);function n(e){return o(this,n),t.call(this,8,e)}return s(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=f(e),r=n.readUInt32LE(t);return g(n.readUInt32LE(t+4),r)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=v(e),a=f(t);return a.writeUInt32LE(r.lo32,n),a.writeUInt32LE(r.hi32,n+4),8}}]),n}(d),w=function(e){a(n,e);var t=i(n);function n(e){return o(this,n),t.call(this,8,e)}return s(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=f(e),r=n.readUInt32LE(t);return g(n.readInt32LE(t+4),r)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=v(e),a=f(t);return a.writeUInt32LE(r.lo32,n),a.writeInt32LE(r.hi32,n+4),8}}]),n}(d),x=function(e){a(n,e);var t=i(n);function n(e,r,a){var i;if(o(this,n),!(e instanceof d))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof p&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var s=-1;return!(r instanceof p)&&01&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0,r=this.count;if(r instanceof p&&(r=r.decode(e,t)),01&&void 0!==arguments[1]?arguments[1]:0,n=[],r=0,a=this.count;for(a instanceof p&&(a=a.decode(e,t));r2&&void 0!==arguments[2]?arguments[2]:0,r=this.elementLayout,a=e.reduce((function(e,a){return e+r.encode(a,t,n+e)}),0);return this.count instanceof p&&this.count.encode(e.length,t,n),a}}]),n}(d),_=function(e){a(n,e);var t=i(n);function n(e,a,i){var s;if(o(this,n),!Array.isArray(e)||!e.reduce((function(e,t){return e&&t instanceof d}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof a&&void 0===i&&(i=a,a=void 0);var c,u=r(e);try{for(u.s();!(c=u.n()).done;){var f=c.value;if(0>f.span&&void 0===f.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(e){u.e(e)}finally{u.f()}var l=-1;try{l=e.reduce((function(e,t){return e+t.getSpan()}),0)}catch(e){}return(s=t.call(this,l,a)).fields=e,s.decodePrefixes=!!i,s}return s(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0;try{n=this.fields.reduce((function(n,r){var a=r.getSpan(e,t);return t+=a,n+a}),0)}catch(e){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;u(e);var n,a=this.makeDestinationObject(),i=r(this.fields);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(void 0!==o.property&&(a[o.property]=o.decode(e,t)),t+=o.getSpan(e,t),this.decodePrefixes&&e.length===t)break}}catch(e){i.e(e)}finally{i.f()}return a}},{key:"encode",value:function(e,t){var n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=a,o=0,s=0,c=r(this.fields);try{for(c.s();!(n=c.n()).done;){var u=n.value,f=u.span;if(s=0f&&(f=u.getSpan(t,a)))}o=a,a+=f}}catch(e){c.e(e)}finally{c.f()}return o+s-i}},{key:"fromArray",value:function(e){var t,n=this.makeDestinationObject(),a=r(this.fields);try{for(a.s();!(t=a.n()).done;){var i=t.value;void 0!==i.property&&0i.span?n=-1:0<=n&&(n+=i.span)}}catch(e){a.e(e)}finally{a.f()}}}]),n}(d);var k=function(e){a(n,e);var t=i(n);function n(e,r){var a;if(o(this,n),!(e instanceof p&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");var i=-1;return e instanceof p||(i=e),(a=t.call(this,i,r)).length=e,a}return s(n,[{key:"getSpan",value:function(e,t){var n=this.span;return 0>n&&(n=this.length.decode(e,t)),n}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.span;return 0>n&&(n=this.length.decode(e,t)),f(e).slice(t,t+n)}},{key:"encode",value:function(e,t,n){var r=this.length;if(this.length instanceof p&&(r=e.length),!(e instanceof Uint8Array&&r===e.length))throw new TypeError(l("Blob.encode",this)+" requires (length "+r+") Uint8Array as src");if(n+r>t.length)throw new RangeError("encoding overruns Uint8Array");var a=f(e);return f(t).write(a.toString("hex"),n,r,"hex"),this.length instanceof p&&this.length.encode(r,t,n),r}}]),n}(d);t.cv=function(e,t,n){return new b(e,t,n)},t.u8=function(e){return new h(1,e)},t.KB=function(e){return new h(2,e)},t.Jq=function(e){return new h(4,e)},t._O=function(e){return new A(e)},t.gM=function(e){return new w(e)},t.n_=function(e,t,n){return new _(e,t,n)},t.A9=function(e,t,n){return new x(e,t,n)},t.Ik=function(e,t){return new k(e,t)}},73234:function(e,t,n){"use strict";n.r(t),n.d(t,{Account:function(){return Dr},AddressLookupTableAccount:function(){return Qa},AddressLookupTableInstruction:function(){return Lo},AddressLookupTableProgram:function(){return Zo},Authorized:function(){return Wo},BLOCKHASH_CACHE_TIMEOUT_MS:function(){return Ya},BPF_LOADER_DEPRECATED_PROGRAM_ID:function(){return jr},BPF_LOADER_PROGRAM_ID:function(){return Ma},BpfLoader:function(){return Ba},COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:function(){return Ho},ComputeBudgetInstruction:function(){return Fo},ComputeBudgetProgram:function(){return zo},Connection:function(){return Do},Ed25519Program:function(){return Qo},Enum:function(){return Or},EpochSchedule:function(){return La},FeeCalculatorLayout:function(){return xa},Keypair:function(){return jo},LAMPORTS_PER_SOL:function(){return gs},LOOKUP_TABLE_INSTRUCTION_LAYOUTS:function(){return Uo},Loader:function(){return Pa},Lockup:function(){return Yo},MAX_SEED_LENGTH:function(){return Mr},Message:function(){return ea},MessageAccountKeys:function(){return qr},MessageV0:function(){return ta},NONCE_ACCOUNT_LENGTH:function(){return ka},NonceAccount:function(){return Sa},PACKET_DATA_SIZE:function(){return Ur},PUBLIC_KEY_LENGTH:function(){return Br},PublicKey:function(){return Nr},SIGNATURE_LENGTH_IN_BYTES:function(){return Zr},SOLANA_SCHEMA:function(){return Pr},STAKE_CONFIG_ID:function(){return Go},STAKE_INSTRUCTION_LAYOUTS:function(){return $o},SYSTEM_INSTRUCTION_LAYOUTS:function(){return Ca},SYSVAR_CLOCK_PUBKEY:function(){return ca},SYSVAR_EPOCH_SCHEDULE_PUBKEY:function(){return ua},SYSVAR_INSTRUCTIONS_PUBKEY:function(){return fa},SYSVAR_RECENT_BLOCKHASHES_PUBKEY:function(){return da},SYSVAR_RENT_PUBKEY:function(){return la},SYSVAR_REWARDS_PUBKEY:function(){return pa},SYSVAR_SLOT_HASHES_PUBKEY:function(){return ba},SYSVAR_SLOT_HISTORY_PUBKEY:function(){return ha},SYSVAR_STAKE_HISTORY_PUBKEY:function(){return ya},Secp256k1Program:function(){return Jo},SendTransactionError:function(){return Za},SolanaJSONRPCError:function(){return Ha},SolanaJSONRPCErrorCode:function(){return Fa},StakeAuthorizationLayout:function(){return es},StakeInstruction:function(){return Xo},StakeProgram:function(){return ts},Struct:function(){return Tr},SystemInstruction:function(){return Ea},SystemProgram:function(){return Ta},Transaction:function(){return ia},TransactionExpiredBlockheightExceededError:function(){return Fr},TransactionExpiredNonceInvalidError:function(){return zr},TransactionExpiredTimeoutError:function(){return Hr},TransactionInstruction:function(){return aa},TransactionMessage:function(){return oa},TransactionStatus:function(){return Xr},VALIDATOR_INFO_KEY:function(){return ss},VERSION_PREFIX_MASK:function(){return Lr},VOTE_PROGRAM_ID:function(){return fs},ValidatorInfo:function(){return us},VersionedMessage:function(){return na},VersionedTransaction:function(){return sa},VoteAccount:function(){return ls},VoteAuthorizationLayout:function(){return is},VoteInit:function(){return ns},VoteInstruction:function(){return rs},VoteProgram:function(){return os},clusterApiUrl:function(){return ys},sendAndConfirmRawTransaction:function(){return ms},sendAndConfirmTransaction:function(){return ma}});var r=n(29382),a=n(78283),i=n(70886),o=n(19677),s=n(23680),c=n(19961),u=n(745),f=n(17204),d=n(24611),l=n(53755),p=n(24269),b=n(38114),h=n(47061),y=n(59900),m=n(79061);function v(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Wrong positive integer: ".concat(e))}function g(e){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&!n.includes(e.length))throw new TypeError("Expected Uint8Array of length ".concat(n,", not of length=").concat(e.length))}var A={number:v,bool:function(e){if("boolean"!=typeof e)throw new Error("Expected boolean, not ".concat(e))},bytes:g,hash:function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");v(e.outputLen),v(e.blockLen)},exists:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},output:function(e,t){g(e);var n=t.outputLen;if(e.length>>t};if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function k(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw new TypeError("utf8ToBytes expected string, got ".concat(typeof e));return(new TextEncoder).encode(e)}(e)),!(e instanceof Uint8Array))throw new TypeError("Expected input type is Uint8Array (got ".concat(typeof e,")"));return e}Array.from({length:256},(function(e,t){return t.toString(16).padStart(2,"0")}));var S=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,[{key:"clone",value:function(){return this._cloneInto()}}]),e}();function I(e){var t=function(t){return e().update(k(t)).digest()},n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=function(){return e()},t}var E=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e,r,a,i){var o;return(0,h.Z)(this,n),(o=t.call(this)).blockLen=e,o.outputLen=r,o.padOffset=a,o.isLE=i,o.finished=!1,o.length=0,o.pos=0,o.destroyed=!1,o.buffer=new Uint8Array(e),o.view=x(o.buffer),o}return(0,y.Z)(n,[{key:"update",value:function(e){w.exists(this);for(var t=this.view,n=this.buffer,r=this.blockLen,a=(e=k(e)).length,i=0;ir-i&&(this.process(n,0),i=0);for(var o=i;o>a&i),s=Number(n&i),c=r?4:0,u=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+u,s,r)}(n,r-8,BigInt(8*this.length),a),this.process(n,0);var s=x(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");var u=c/4,f=this.get();if(u>f.length)throw new Error("_sha2: outputLen bigger than state");for(var d=0;d1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&C),l:Number(e>>T&C)}:{h:0|Number(e>>T&C),l:0|Number(e&C)}}var P={fromBig:O,split:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length),a=0;a>>0)<>>0)},shrSH:function(e,t,n){return e>>>n},shrSL:function(e,t,n){return e<<32-n|t>>>n},rotrSH:function(e,t,n){return e>>>n|t<<32-n},rotrSL:function(e,t,n){return e<<32-n|t>>>n},rotrBH:function(e,t,n){return e<<64-n|t>>>n-32},rotrBL:function(e,t,n){return e>>>n-32|t<<64-n},rotr32H:function(e,t){return t},rotr32L:function(e,t){return e},rotlSH:function(e,t,n){return e<>>32-n},rotlSL:function(e,t,n){return t<>>32-n},rotlBH:function(e,t,n){return t<>>64-n},rotlBL:function(e,t,n){return e<>>64-n},add:function(e,t,n,r){var a=(t>>>0)+(r>>>0);return{h:e+n+(a/Math.pow(2,32)|0)|0,l:0|a}},add3L:function(e,t,n){return(e>>>0)+(t>>>0)+(n>>>0)},add3H:function(e,t,n,r){return t+n+r+(e/Math.pow(2,32)|0)|0},add4L:function(e,t,n,r){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)},add4H:function(e,t,n,r,a){return t+n+r+a+(e/Math.pow(2,32)|0)|0},add5H:function(e,t,n,r,a,i){return t+n+r+a+i+(e/Math.pow(2,32)|0)|0},add5L:function(e,t,n,r,a){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(a>>>0)}},M=P,B=M.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((function(e){return BigInt(e)}))),R=(0,s.Z)(B,2),N=R[0],D=R[1],j=new Uint32Array(80),U=new Uint32Array(80),L=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this,128,64,16,!1)).Ah=1779033703,e.Al=-205731576,e.Bh=-1150833019,e.Bl=-2067093701,e.Ch=1013904242,e.Cl=-23791573,e.Dh=-1521486534,e.Dl=1595750129,e.Eh=1359893119,e.El=-1377402159,e.Fh=-1694144372,e.Fl=725511199,e.Gh=528734635,e.Gl=-79577749,e.Hh=1541459225,e.Hl=327033209,e}return(0,y.Z)(n,[{key:"get",value:function(){return[this.Ah,this.Al,this.Bh,this.Bl,this.Ch,this.Cl,this.Dh,this.Dl,this.Eh,this.El,this.Fh,this.Fl,this.Gh,this.Gl,this.Hh,this.Hl]}},{key:"set",value:function(e,t,n,r,a,i,o,s,c,u,f,d,l,p,b,h){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|a,this.Cl=0|i,this.Dh=0|o,this.Dl=0|s,this.Eh=0|c,this.El=0|u,this.Fh=0|f,this.Fl=0|d,this.Gh=0|l,this.Gl=0|p,this.Hh=0|b,this.Hl=0|h}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)j[n]=e.getUint32(t),U[n]=e.getUint32(t+=4);for(var r=16;r<80;r++){var a=0|j[r-15],i=0|U[r-15],o=M.rotrSH(a,i,1)^M.rotrSH(a,i,8)^M.shrSH(a,i,7),s=M.rotrSL(a,i,1)^M.rotrSL(a,i,8)^M.shrSL(a,i,7),c=0|j[r-2],u=0|U[r-2],f=M.rotrSH(c,u,19)^M.rotrBH(c,u,61)^M.shrSH(c,u,6),d=M.rotrSL(c,u,19)^M.rotrBL(c,u,61)^M.shrSL(c,u,6),l=M.add4L(s,d,U[r-7],U[r-16]),p=M.add4H(l,o,f,j[r-7],j[r-16]);j[r]=0|p,U[r]=0|l}for(var b=this.Ah,h=this.Al,y=this.Bh,m=this.Bl,v=this.Ch,g=this.Cl,A=this.Dh,w=this.Dl,x=this.Eh,_=this.El,k=this.Fh,S=this.Fl,I=this.Gh,E=this.Gl,C=this.Hh,T=this.Hl,O=0;O<80;O++){var P=M.rotrSH(x,_,14)^M.rotrSH(x,_,18)^M.rotrBH(x,_,41),B=M.rotrSL(x,_,14)^M.rotrSL(x,_,18)^M.rotrBL(x,_,41),R=x&k^~x&I,L=_&S^~_&E,Z=M.add5L(T,B,L,D[O],U[O]),F=M.add5H(Z,C,P,R,N[O],j[O]),H=0|Z,z=M.rotrSH(b,h,28)^M.rotrBH(b,h,34)^M.rotrBH(b,h,39),q=M.rotrSL(b,h,28)^M.rotrBL(b,h,34)^M.rotrBL(b,h,39),Q=b&y^b&v^y&v,K=h&m^h&g^m&g;C=0|I,T=0|E,I=0|k,E=0|S,k=0|x,S=0|_;var V=M.add(0|A,0|w,0|F,0|H);x=V.h,_=V.l,A=0|v,w=0|g,v=0|y,g=0|m,y=0|b,m=0|h;var J=M.add3L(H,q,K);b=M.add3H(J,F,z,Q),h=0|J}var G=M.add(0|this.Ah,0|this.Al,0|b,0|h);b=G.h,h=G.l;var W=M.add(0|this.Bh,0|this.Bl,0|y,0|m);y=W.h,m=W.l;var Y=M.add(0|this.Ch,0|this.Cl,0|v,0|g);v=Y.h,g=Y.l;var X=M.add(0|this.Dh,0|this.Dl,0|A,0|w);A=X.h,w=X.l;var $=M.add(0|this.Eh,0|this.El,0|x,0|_);x=$.h,_=$.l;var ee=M.add(0|this.Fh,0|this.Fl,0|k,0|S);k=ee.h,S=ee.l;var te=M.add(0|this.Gh,0|this.Gl,0|I,0|E);I=te.h,E=te.l;var ne=M.add(0|this.Hh,0|this.Hl,0|C,0|T);C=ne.h,T=ne.l,this.set(b,h,y,m,v,g,A,w,x,_,k,S,I,E,C,T)}},{key:"roundClean",value:function(){j.fill(0),U.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),n}(E),Z=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this)).Ah=-1942145080,e.Al=424955298,e.Bh=1944164710,e.Bl=-1982016298,e.Ch=502970286,e.Cl=855612546,e.Dh=1738396948,e.Dl=1479516111,e.Eh=258812777,e.El=2077511080,e.Fh=2011393907,e.Fl=79989058,e.Gh=1067287976,e.Gl=1780299464,e.Hh=286451373,e.Hl=-1848208735,e.outputLen=28,e}return(0,y.Z)(n)}(L),F=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this)).Ah=573645204,e.Al=-64227540,e.Bh=-1621794909,e.Bl=-934517566,e.Ch=596883563,e.Cl=1867755857,e.Dh=-1774684391,e.Dl=1497426621,e.Eh=-1775747358,e.El=-1467023389,e.Fh=-1101128155,e.Fl=1401305490,e.Gh=721525244,e.Gl=746961066,e.Hh=246885852,e.Hl=-2117784414,e.outputLen=32,e}return(0,y.Z)(n)}(L),H=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this)).Ah=-876896931,e.Al=-1056596264,e.Bh=1654270250,e.Bl=914150663,e.Ch=-1856437926,e.Cl=812702999,e.Dh=355462360,e.Dl=-150054599,e.Eh=1731405415,e.El=-4191439,e.Fh=-1900787065,e.Fl=1750603025,e.Gh=-619958771,e.Gl=1694076839,e.Hh=1203062813,e.Hl=-1090891868,e.outputLen=48,e}return(0,y.Z)(n)}(L),z=I((function(){return new L})),q=(I((function(){return new Z})),I((function(){return new F})),I((function(){return new H})),n(7420)),Q=n.t(q,2),K=BigInt(0),V=BigInt(1),J=BigInt(2),G=BigInt(8),W=BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),Y=Object.freeze({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),l:W,n:W,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")}),X=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),$=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),ee=(BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742"),BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235")),te=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),ne=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),re=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),ae=function(){function e(t,n,r,a){(0,h.Z)(this,e),this.x=t,this.y=n,this.z=r,this.t=a}return(0,y.Z)(e,[{key:"equals",value:function(e){oe(e);var t=this.x,n=this.y,r=this.z,a=e.x,i=e.y,o=e.z,s=ke(t*o),c=ke(a*r),u=ke(n*o),f=ke(i*r);return s===c&&u===f}},{key:"negate",value:function(){return new e(ke(-this.x),this.y,this.z,ke(-this.t))}},{key:"double",value:function(){var t=this.x,n=this.y,r=this.z,a=Y.a,i=ke(t*t),o=ke(n*n),s=ke(J*ke(r*r)),c=ke(a*i),u=t+n,f=ke(ke(u*u)-i-o),d=c+o,l=d-s,p=c-o,b=ke(f*l),h=ke(d*p),y=ke(f*p);return new e(b,h,ke(l*d),y)}},{key:"add",value:function(t){oe(t);var n=this.x,r=this.y,a=this.z,i=this.t,o=t.x,s=t.y,c=t.z,u=t.t,f=ke((r-n)*(s+o)),d=ke((r+n)*(s-o)),l=ke(d-f);if(l===K)return this.double();var p=ke(a*J*u),b=ke(i*J*c),h=b+p,y=d+f,m=b-p,v=ke(h*l),g=ke(y*m),A=ke(h*m);return new e(v,g,ke(l*y),A)}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"precomputeWindow",value:function(e){for(var t=1+256/e,n=[],r=this,a=r,i=0;i>=d,b>c&&(b-=f,t+=V);var h=p,y=p+Math.abs(b)-1,m=l%2!=0,v=b<0;0===b?o=o.add(ie(m,a[h])):i=i.add(ie(v,a[y]))}return e.normalizeZ([i,o])[0]}},{key:"multiply",value:function(e,t){return this.wNAF(Pe(e,Y.l),t)}},{key:"multiplyUnsafe",value:function(t){var n=Pe(t,Y.l,!1),r=e.BASE,a=e.ZERO;if(n===K)return a;if(this.equals(a)||n===V)return this;if(this.equals(r))return this.wNAF(n);for(var i=a,o=this;n>K;)n&V&&(i=i.add(o)),o=o.double(),n>>=V;return i}},{key:"isSmallOrder",value:function(){return this.multiplyUnsafe(Y.h).equals(e.ZERO)}},{key:"isTorsionFree",value:function(){var t=this.multiplyUnsafe(Y.l/J).double();return Y.l%J&&(t=t.add(this)),t.equals(e.ZERO)}},{key:"toAffine",value:function(t){var n=this.x,r=this.y,a=this.z,i=this.equals(e.ZERO);null==t&&(t=i?G:Se(a));var o=ke(n*t),s=ke(r*t),c=ke(a*t);if(i)return de.ZERO;if(c!==V)throw new Error("invZ was invalid");return new de(o,s)}},{key:"fromRistrettoBytes",value:function(){ce()}},{key:"toRistrettoBytes",value:function(){ce()}},{key:"fromRistrettoHash",value:function(){ce()}}],[{key:"fromAffine",value:function(t){if(!(t instanceof de))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return t.equals(de.ZERO)?e.ZERO:new e(t.x,t.y,V,ke(t.x*t.y))}},{key:"toAffineBatch",value:function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y.P,n=new Array(e.length),r=Se(e.reduce((function(e,r,a){return r===K?e:(n[a]=e,ke(e*r,t))}),V),t);return e.reduceRight((function(e,r,a){return r===K?e:(n[a]=ke(e*n[a],t),ke(e*r,t))}),r),n}(e.map((function(e){return e.z})));return e.map((function(e,n){return e.toAffine(t[n])}))}},{key:"normalizeZ",value:function(e){return this.toAffineBatch(e).map(this.fromAffine)}}]),e}();function ie(e,t){var n=t.negate();return e?n:t}function oe(e){if(!(e instanceof ae))throw new TypeError("ExtendedPoint expected")}function se(e){if(!(e instanceof ue))throw new TypeError("RistrettoPoint expected")}function ce(){throw new Error("Legacy method: switch to RistrettoPoint")}ae.BASE=new ae(Y.Gx,Y.Gy,V,ke(Y.Gx*Y.Gy)),ae.ZERO=new ae(K,V,V,K);var ue=function(){function e(t){(0,h.Z)(this,e),this.ep=t}return(0,y.Z)(e,[{key:"toRawBytes",value:function(){var e,t=this.ep,n=t.x,r=t.y,a=t.z,i=t.t,o=ke(ke(a+r)*ke(a-r)),s=ke(n*r),c=ke(s*s),u=Ce(ke(o*c)).value,f=ke(u*o),d=ke(u*s),l=ke(f*d*i);if(ge(i*l)){var p=ke(r*$),b=ke(n*$);n=p,r=b,e=ke(f*te)}else e=d;ge(n*l)&&(r=ke(-r));var h=ke((a-r)*e);return ge(h)&&(h=ke(-h)),ve(h)}},{key:"toHex",value:function(){return he(this.toRawBytes())}},{key:"toString",value:function(){return this.toHex()}},{key:"equals",value:function(e){se(e);var t=this.ep,n=e.ep,r=ke(t.x*n.y)===ke(t.y*n.x),a=ke(t.y*n.y)===ke(t.x*n.x);return r||a}},{key:"add",value:function(t){return se(t),new e(this.ep.add(t.ep))}},{key:"subtract",value:function(t){return se(t),new e(this.ep.subtract(t.ep))}},{key:"multiply",value:function(t){return new e(this.ep.multiply(t))}},{key:"multiplyUnsafe",value:function(t){return new e(this.ep.multiplyUnsafe(t))}}],[{key:"calcElligatorRistrettoMap",value:function(e){var t=Y.d,n=ke($*e*e),r=ke((n+V)*ne),a=BigInt(-1),i=ke((a-t*n)*ke(n+t)),o=Ee(r,i),s=o.isValid,c=o.value,u=ke(c*e);ge(u)||(u=ke(-u)),s||(c=u),s||(a=n);var f=ke(a*(n-V)*re-i),d=c*c,l=ke((c+c)*i),p=ke(f*ee),b=ke(V-d),h=ke(V+d);return new ae(ke(l*h),ke(b*p),ke(p*h),ke(l*b))}},{key:"hashToCurve",value:function(t){var n=_e((t=Oe(t,64)).slice(0,32)),r=this.calcElligatorRistrettoMap(n),a=_e(t.slice(32,64)),i=this.calcElligatorRistrettoMap(a);return new e(r.add(i))}},{key:"fromHex",value:function(t){t=Oe(t,32);var n=Y.a,r=Y.d,a="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",i=_e(t);if(!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n1&&void 0!==arguments[1])||arguments[1],r=Y.d,a=Y.P,i=(t=Oe(t,32)).slice();i[31]=-129&t[31];var o=Ae(i);if(n&&o>=a)throw new Error("Expected 0 < hex < P");if(!n&&o>=X)throw new Error("Expected 0 < hex < 2**256");var s=ke(o*o),c=Ee(ke(s-V),ke(r*s+V)),u=c.isValid,f=c.value;if(!u)throw new Error("Point.fromHex: invalid y coordinate");var d=(f&V)===V;return 0!=(128&t[31])!==d&&(f=ke(-f)),new e(f,o)}},{key:"fromPrivateKey",value:(t=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ne(t);case 2:return e.abrupt("return",e.sent.point);case 3:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}();de.BASE=new de(Y.Gx,Y.Gy),de.ZERO=new de(K,V);var le=function(){function e(t,n){(0,h.Z)(this,e),this.r=t,this.s=n,this.assertValidity()}return(0,y.Z)(e,[{key:"assertValidity",value:function(){var e=this.r,t=this.s;if(!(e instanceof de))throw new Error("Expected Point instance");return Pe(t,Y.l,!1),this}},{key:"toRawBytes",value:function(){var e=new Uint8Array(64);return e.set(this.r.toRawBytes()),e.set(ve(this.s),32),e}},{key:"toHex",value:function(){return he(this.toRawBytes())}}],[{key:"fromHex",value:function(t){var n=Oe(t,64);return new e(de.fromHex(n.slice(0,32),!1),Ae(n.slice(32,64)))}}]),e}();function pe(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:Y.P,n=e%t;return n>=K?n:t+n}function Se(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y.P;if(e===K||t<=K)throw new Error("invert: expected positive integers, got n=".concat(e," mod=").concat(t));for(var n=ke(e,t),r=t,a=K,i=V,o=V,s=K;n!==K;){var c=r/n,u=r%n,f=a-o*c,d=i-s*c;r=n,n=u,a=o,i=s,o=f,s=d}if(r!==V)throw new Error("invert: does not exist");return ke(a,t)}function Ie(e,t){for(var n=Y.P,r=e;t-- >K;)r*=r,r%=n;return r}function Ee(e,t){var n=ke(t*t*t),r=ke(n*n*t),a=ke(e*n*function(e){var t=Y.P,n=BigInt(5),r=BigInt(10),a=BigInt(20),i=BigInt(40),o=BigInt(80),s=e*e%t*e%t,c=Ie(s,J)*s%t,u=Ie(c,V)*e%t,f=Ie(u,n)*u%t,d=Ie(f,r)*f%t,l=Ie(d,a)*d%t,p=Ie(l,i)*l%t,b=Ie(p,o)*p%t,h=Ie(b,o)*p%t,y=Ie(h,r)*f%t;return{pow_p_5_8:Ie(y,J)*e%t,b2:s}}(e*r).pow_p_5_8),i=ke(t*a*a),o=a,s=ke(a*$),c=i===e,u=i===ke(-e),f=i===ke(-e*$);return c&&(a=o),(u||f)&&(a=s),ge(a)&&(a=ke(-a)),{isValid:c||u,value:a}}function Ce(e){return Ee(V,e)}function Te(e){return ke(Ae(e),Y.l)}function Oe(e,t){var n=e instanceof Uint8Array?Uint8Array.from(e):ye(e);if("number"==typeof t&&n.length!==t)throw new Error("Expected ".concat(t," bytes"));return n}function Pe(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t)throw new TypeError("Specify max value");if("number"==typeof e&&Number.isSafeInteger(e)&&(e=BigInt(e)),"bigint"==typeof e&&e1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return ke(Ae(e),Y.l-V)+V},randomBytes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(He.web)return He.web.getRandomValues(new Uint8Array(e));if(He.node){var t=He.node.randomBytes;return new Uint8Array(t(e).buffer)}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:function(){return ze.randomBytes(32)},sha512:(Fe=(0,l.Z)((0,d.Z)().mark((function e(){var t,n,r=arguments;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=pe.apply(void 0,r),!He.web){e.next=8;break}return e.next=4,He.web.subtle.digest("SHA-512",t.buffer);case 4:return n=e.sent,e.abrupt("return",new Uint8Array(n));case 8:if(!He.node){e.next=12;break}return e.abrupt("return",Uint8Array.from(He.node.createHash("sha512").update(t).digest()));case 12:throw new Error("The environment doesn't have sha512 function");case 13:case"end":return e.stop()}}),e)}))),function(){return Fe.apply(this,arguments)}),precompute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:de.BASE,n=t.equals(de.BASE)?t:new de(t.x,t.y);return n._setWindowSize(e),n.multiply(J),n},sha512Sync:void 0};Object.defineProperties(ze,{sha512Sync:{configurable:!1,get:function(){return we},set:function(e){we||(we=e)}}});var qe=n(85468),Qe=n.n(qe),Ke=n(82481),Ve=n.n(Ke),Je=function(e,t,n){return e&t^e&n^t&n},Ge=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]),We=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ye=new Uint32Array(64),Xe=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this,64,32,8,!1)).A=0|We[0],e.B=0|We[1],e.C=0|We[2],e.D=0|We[3],e.E=0|We[4],e.F=0|We[5],e.G=0|We[6],e.H=0|We[7],e}return(0,y.Z)(n,[{key:"get",value:function(){return[this.A,this.B,this.C,this.D,this.E,this.F,this.G,this.H]}},{key:"set",value:function(e,t,n,r,a,i,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|a,this.F=0|i,this.G=0|o,this.H=0|s}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)Ye[n]=e.getUint32(t,!1);for(var r=16;r<64;r++){var a=Ye[r-15],i=Ye[r-2],o=_(a,7)^_(a,18)^a>>>3,s=_(i,17)^_(i,19)^i>>>10;Ye[r]=s+Ye[r-7]+o+Ye[r-16]|0}for(var c,u=this.A,f=this.B,d=this.C,l=this.D,p=this.E,b=this.F,h=this.G,y=this.H,m=0;m<64;m++){var v=y+(_(p,6)^_(p,11)^_(p,25))+((c=p)&b^~c&h)+Ge[m]+Ye[m]|0,g=(_(u,2)^_(u,13)^_(u,22))+Je(u,f,d)|0;y=h,h=b,b=p,p=l+v|0,l=d,d=f,f=u,u=v+g|0}u=u+this.A|0,f=f+this.B|0,d=d+this.C|0,l=l+this.D|0,p=p+this.E|0,b=b+this.F|0,h=h+this.G|0,y=y+this.H|0,this.set(u,f,d,l,p,b,h,y)}},{key:"roundClean",value:function(){Ye.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),n}(E),$e=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this)).A=-1056596264,e.B=914150663,e.C=812702999,e.D=-150054599,e.E=-4191439,e.F=1750603025,e.G=1694076839,e.H=-1090891868,e.outputLen=28,e}return(0,y.Z)(n)}(Xe),et=I((function(){return new Xe})),tt=(I((function(){return new $e})),n(41756)),nt=n(64289),rt=n(68882),at=n(9189),it=n(14771),ot=["message"],st=(0,d.Z)().mark(pt),ct=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e,a){var i,o;(0,h.Z)(this,n);var s=e.message,u=(0,r.Z)(e,ot),f=e.path,d=0===f.length?s:"At path: "+f.join(".")+" -- "+s;return i=t.call(this,d),Object.assign((0,it.Z)(i),u),i.name=i.constructor.name,i.failures=function(){var t;return null!=(t=o)?t:o=[e].concat((0,c.Z)(a()))},i}return(0,y.Z)(n)}((0,f.Z)(TypeError));function ut(e){return ft(e)&&"function"==typeof e[Symbol.iterator]}function ft(e){return"object"==typeof e&&null!=e}function dt(e){return"string"==typeof e?JSON.stringify(e):""+e}function lt(e,t,n,r){if(!0!==e){!1===e?e={}:"string"==typeof e&&(e={message:e});var a=t.path,i=t.branch,s=n.type,c=e,u=c.refinement,f=c.message,d=void 0===f?"Expected a value of type `"+s+"`"+(u?" with refinement `"+u+"`":"")+", but received: `"+dt(r)+"`":f;return(0,o.Z)((0,o.Z)({value:r,type:s,refinement:u,key:a[a.length-1],path:a,branch:i},e),{},{message:d})}}function pt(e,t,n,r){var a,i,o,s;return(0,d.Z)().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:ut(e)||(e=[e]),a=(0,u.Z)(e),c.prev=2,a.s();case 4:if((i=a.n()).done){c.next=12;break}if(o=i.value,!(s=lt(o,t,n,r))){c.next=10;break}return c.next=10,s;case 10:c.next=4;break;case 12:c.next=17;break;case 14:c.prev=14,c.t0=c.catch(2),a.e(c.t0);case 17:return c.prev=17,a.f(),c.finish(17);case 20:case"end":return c.stop()}}),st,null,[[2,14,17,20]])}function bt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,d.Z)().mark((function r(){var a,i,o,f,l,p,b,h,y,m,v,g,A,w,x,_,k,S,I,E,C,T,O,P,M,B,R;return(0,d.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=n.path,i=void 0===a?[]:a,o=n.branch,f=void 0===o?[e]:o,l=n.coerce,p=void 0!==l&&l,b=n.mask,h=void 0!==b&&b,y={path:i,branch:f},p&&(e=t.coercer(e,y),h&&"type"!==t.type&&ft(t.schema)&&ft(e)&&!Array.isArray(e)))for(m in e)void 0===t.schema[m]&&delete e[m];v=!0,g=(0,u.Z)(t.validator(e,y)),r.prev=5,g.s();case 7:if((A=g.n()).done){r.next=14;break}return w=A.value,v=!1,r.next=12,[w,void 0];case 12:r.next=7;break;case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(5),g.e(r.t0);case 19:return r.prev=19,g.f(),r.finish(19);case 22:x=(0,u.Z)(t.entries(e,y)),r.prev=23,x.s();case 25:if((_=x.n()).done){r.next=52;break}k=(0,s.Z)(_.value,3),S=k[0],I=k[1],E=k[2],C=bt(I,E,{path:void 0===S?i:[].concat((0,c.Z)(i),[S]),branch:void 0===S?f:[].concat((0,c.Z)(f),[I]),coerce:p,mask:h}),T=(0,u.Z)(C),r.prev=29,T.s();case 31:if((O=T.n()).done){r.next=42;break}if(!(P=O.value)[0]){r.next=39;break}return v=!1,r.next=37,[P[0],void 0];case 37:r.next=40;break;case 39:p&&(I=P[1],void 0===S?e=I:e instanceof Map?e.set(S,I):e instanceof Set?e.add(I):ft(e)&&(e[S]=I));case 40:r.next=31;break;case 42:r.next=47;break;case 44:r.prev=44,r.t1=r.catch(29),T.e(r.t1);case 47:return r.prev=47,T.f(),r.finish(47);case 50:r.next=25;break;case 52:r.next=57;break;case 54:r.prev=54,r.t2=r.catch(23),x.e(r.t2);case 57:return r.prev=57,x.f(),r.finish(57);case 60:if(!v){r.next=79;break}M=(0,u.Z)(t.refiner(e,y)),r.prev=62,M.s();case 64:if((B=M.n()).done){r.next=71;break}return R=B.value,v=!1,r.next=69,[R,void 0];case 69:r.next=64;break;case 71:r.next=76;break;case 73:r.prev=73,r.t3=r.catch(62),M.e(r.t3);case 76:return r.prev=76,M.f(),r.finish(76);case 79:if(!v){r.next=82;break}return r.next=82,[void 0,e];case 82:case"end":return r.stop()}}),r,null,[[5,16,19,22],[23,54,57,60],[29,44,47,50],[62,73,76,79]])}))()}var ht=function(){function e(t){var n=this;(0,h.Z)(this,e);var r=t.type,a=t.schema,i=t.validator,o=t.refiner,s=t.coercer,c=void 0===s?function(e){return e}:s,u=t.entries,f=void 0===u?(0,d.Z)().mark((function e(){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})):u;this.type=r,this.schema=a,this.entries=f,this.coercer=c,this.validator=i?function(e,t){return pt(i(e,t),t,n,e)}:function(){return[]},this.refiner=o?function(e,t){return pt(o(e,t),t,n,e)}:function(){return[]}}return(0,y.Z)(e,[{key:"assert",value:function(e){return yt(e,this)}},{key:"create",value:function(e){return mt(e,this)}},{key:"is",value:function(e){return vt(e,this)}},{key:"mask",value:function(e){return function(e,t){var n=gt(e,t,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}(e,this)}},{key:"validate",value:function(e){return gt(e,this,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}}]),e}();function yt(e,t){var n=gt(e,t);if(n[0])throw n[0]}function mt(e,t){var n=gt(e,t,{coerce:!0});if(n[0])throw n[0];return n[1]}function vt(e,t){return!gt(e,t)[0]}function gt(e,t){var n=bt(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r=function(e){var t=e.next(),n=t.done,r=t.value;return n?void 0:r}(n);if(r[0]){var a=new ct(r[0],(0,d.Z)().mark((function e(){var t,r,a;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,u.Z)(n),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=10;break}if(!(a=r.value)[0]){e.next=8;break}return e.next=8,a[0];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])})));return[a,void 0]}return[void 0,r[1]]}function At(e,t){return new ht({type:e,schema:null,validator:t})}function wt(e){return new ht({type:"array",schema:e,entries:(0,d.Z)().mark((function t(n){var r,a,i,o,c;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e||!Array.isArray(n)){t.next=18;break}r=(0,u.Z)(n.entries()),t.prev=2,r.s();case 4:if((a=r.n()).done){t.next=10;break}return i=(0,s.Z)(a.value,2),o=i[0],c=i[1],t.next=8,[o,c,e];case 8:t.next=4;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),r.e(t.t0);case 15:return t.prev=15,r.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])})),coercer:function(e){return Array.isArray(e)?e.slice():e},validator:function(e){return Array.isArray(e)||"Expected an array value, but received: "+dt(e)}})}function xt(){return At("boolean",(function(e){return"boolean"==typeof e}))}function _t(e){return At("instance",(function(t){return t instanceof e||"Expected a `"+e.name+"` instance, but received: "+dt(t)}))}function kt(e){var t=dt(e),n=typeof e;return new ht({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:function(n){return n===e||"Expected the literal `"+t+"`, but received: "+dt(n)}})}function St(e){return new ht((0,o.Z)((0,o.Z)({},e),{},{validator:function(t,n){return null===t||e.validator(t,n)},refiner:function(t,n){return null===t||e.refiner(t,n)}}))}function It(){return At("number",(function(e){return"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+dt(e)}))}function Et(e){return new ht((0,o.Z)((0,o.Z)({},e),{},{validator:function(t,n){return void 0===t||e.validator(t,n)},refiner:function(t,n){return void 0===t||e.refiner(t,n)}}))}function Ct(e,t){return new ht({type:"record",schema:null,entries:(0,d.Z)().mark((function n(r){var a,i;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!ft(r)){n.next=11;break}n.t0=(0,d.Z)().keys(r);case 2:if((n.t1=n.t0()).done){n.next=11;break}return a=n.t1.value,i=r[a],n.next=7,[a,a,e];case 7:return n.next=9,[a,i,t];case 9:n.next=2;break;case 11:case"end":return n.stop()}}),n)})),validator:function(e){return ft(e)||"Expected an object, but received: "+dt(e)}})}function Tt(){return At("string",(function(e){return"string"==typeof e||"Expected a string, but received: "+dt(e)}))}function Ot(e){var t=At("never",(function(){return!1}));return new ht({type:"tuple",schema:null,entries:(0,d.Z)().mark((function n(r){var a,i;return(0,d.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Array.isArray(r)){n.next=9;break}a=Math.max(e.length,r.length),i=0;case 3:if(!(i>Qt)*Vt)%Kt)&qt&&($t^=zt<<(zt<32?M.rotlBH(e,t,n):M.rotlSH(e,t,n)},sn=function(e,t,n){return n>32?M.rotlBL(e,t,n):M.rotlSL(e,t,n)},cn=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e,r,a){var i,o,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if((0,h.Z)(this,n),(i=t.call(this)).blockLen=e,i.suffix=r,i.outputLen=a,i.enableXOF=s,i.rounds=c,i.pos=0,i.posOut=0,i.finished=!1,i.destroyed=!1,w.number(a),0>=i.blockLen||i.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return i.state=new Uint8Array(200),i.state32=(o=i.state,new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4))),i}return(0,y.Z)(n,[{key:"keccak",value:function(){!function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=new Uint32Array(10),r=24-t;r<24;r++){for(var a=0;a<10;a++)n[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(var i=0;i<10;i+=2)for(var o=(i+8)%10,s=(i+2)%10,c=n[s],u=n[s+1],f=on(c,u,1)^n[o],d=sn(c,u,1)^n[o+1],l=0;l<50;l+=10)e[i+l]^=f,e[i+l+1]^=d;for(var p=e[2],b=e[3],h=0;h<24;h++){var y=Zt[h],m=on(p,b,y),v=sn(p,b,y),g=Lt[h];p=e[g],b=e[g+1],e[g]=m,e[g+1]=v}for(var A=0;A<50;A+=10){for(var w=0;w<10;w++)n[w]=e[A+w];for(var x=0;x<10;x++)e[A+x]^=~n[(x+2)%10]&n[(x+4)%10]}e[0]^=rn[r],e[1]^=an[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(e){w.exists(this);for(var t=this.blockLen,n=this.state,r=(e=k(e)).length,a=0;a=n&&this.keccak();var i=Math.min(n-this.posOut,a-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}},{key:"xofInto",value:function(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}},{key:"xof",value:function(e){return w.number(e),this.xofInto(new Uint8Array(e))}},{key:"digestInto",value:function(e){if(w.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(e){var t=this.blockLen,r=this.suffix,a=this.outputLen,i=this.rounds,o=this.enableXOF;return e||(e=new n(t,r,a,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=a,e.enableXOF=o,e.destroyed=this.destroyed,e}}]),n}(S),un=function(e,t,n){return I((function(){return new cn(t,e,n)}))},fn=(un(6,144,28),un(6,136,32),un(6,104,48),un(6,72,64),un(1,144,28),un(1,136,32)),dn=(un(1,104,48),un(1,72,64),function(e,t,n){return r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new cn(t,e,void 0===r.dkLen?n:r.dkLen,!0)},a=function(e,t){return r(t).update(k(e)).digest()},i=r({}),a.outputLen=i.outputLen,a.blockLen=i.blockLen,a.create=function(e){return r(e)},a;var r,a,i}),ln=(dn(31,168,16),dn(31,136,32),function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e,r){var a;(0,h.Z)(this,n),(a=t.call(this)).finished=!1,a.destroyed=!1,w.hash(e);var i=k(r);if(a.iHash=e.create(),"function"!=typeof a.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");a.blockLen=a.iHash.blockLen,a.outputLen=a.iHash.outputLen;var o=a.blockLen,s=new Uint8Array(o);s.set(i.length>o?e.create().update(i).digest():i);for(var c=0;co,l=f>o;if(d&&(u=t-u),l&&(f=t-f),u>o||f>o)throw new Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:d,k1:u,k2neg:l,k2:f}},Sn=32,In=32,En=Sn+1,Cn=2*Sn+1;function Tn(e){var t=wn.a,n=wn.b,r=er(e*e),a=er(r*e);return er(a+t*e+n)}var On=wn.a===yn,Pn=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e){return(0,h.Z)(this,n),t.call(this,e)}return(0,y.Z)(n)}((0,f.Z)(Error));function Mn(e){if(!(e instanceof Bn))throw new TypeError("JacobianPoint expected")}var Bn=function(){function e(t,n,r){(0,h.Z)(this,e),this.x=t,this.y=n,this.z=r}return(0,y.Z)(e,[{key:"equals",value:function(e){Mn(e);var t=this.x,n=this.y,r=this.z,a=e.x,i=e.y,o=e.z,s=er(r*r),c=er(o*o),u=er(t*c),f=er(a*s),d=er(er(n*o)*c),l=er(er(i*r)*s);return u===f&&d===l}},{key:"negate",value:function(){return new e(this.x,er(-this.y),this.z)}},{key:"double",value:function(){var t=this.x,n=this.y,r=this.z,a=er(t*t),i=er(n*n),o=er(i*i),s=t+i,c=er(vn*(er(s*s)-a-o)),u=er(gn*a),f=er(u*u),d=er(f-vn*c);return new e(d,er(u*(c-d)-An*o),er(vn*n*r))}},{key:"add",value:function(t){Mn(t);var n=this.x,r=this.y,a=this.z,i=t.x,o=t.y,s=t.z;if(i===yn||o===yn)return this;if(n===yn||r===yn)return t;var c=er(a*a),u=er(s*s),f=er(n*u),d=er(i*c),l=er(er(r*s)*u),p=er(er(o*a)*c),b=er(d-f),h=er(p-l);if(b===yn)return h===yn?this.double():e.ZERO;var y=er(b*b),m=er(b*y),v=er(f*y),g=er(h*h-m-vn*v);return new e(g,er(h*(v-g)-l*m),er(a*s*b))}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiplyUnsafe",value:function(t){var n=e.ZERO;if("bigint"==typeof t&&t===yn)return n;var r=$n(t);if(r===mn)return this;if(!On){for(var a=n,i=this;r>yn;)r&mn&&(a=a.add(i)),i=i.double(),r>>=mn;return a}for(var o=kn(r),s=o.k1neg,c=o.k1,u=o.k2neg,f=o.k2,d=n,l=n,p=this;c>yn||f>yn;)c&mn&&(d=d.add(p)),f&mn&&(l=l.add(p)),p=p.double(),c>>=mn,f>>=mn;return s&&(d=d.negate()),u&&(l=l.negate()),l=new e(er(l.x*_n),l.y,l.z),d.add(l)}},{key:"precomputeWindow",value:function(e){for(var t=On?128/e+1:256/e+1,n=[],r=this,a=r,i=0;i>=d,b>c&&(b-=f,t+=mn);var h=p,y=p+Math.abs(b)-1,m=l%2!=0,v=b<0;0===b?o=o.add(Rn(m,a[h])):i=i.add(Rn(v,a[y]))}return{p:i,f:o}}},{key:"multiply",value:function(t,n){var r,a,i=$n(t);if(On){var o=kn(i),s=o.k1neg,c=o.k1,u=o.k2neg,f=o.k2,d=this.wNAF(c,n),l=d.p,p=d.f,b=this.wNAF(f,n),h=b.p,y=b.f;l=Rn(s,l),h=new e(er((h=Rn(u,h)).x*_n),h.y,h.z),r=l.add(h),a=p.add(y)}else{var m=this.wNAF(i,n);r=m.p,a=m.f}return e.normalizeZ([r,a])[0]}},{key:"toAffine",value:function(t){var n=this.x,r=this.y,a=this.z,i=this.equals(e.ZERO);null==t&&(t=i?An:nr(a));var o=t,s=er(o*o),c=er(s*o),u=er(n*s),f=er(r*c),d=er(a*o);if(i)return Dn.ZERO;if(d!==mn)throw new Error("invZ was invalid");return new Dn(u,f)}}],[{key:"fromAffine",value:function(t){if(!(t instanceof Dn))throw new TypeError("JacobianPoint#fromAffine: expected Point");return t.equals(Dn.ZERO)?e.ZERO:new e(t.x,t.y,mn)}},{key:"toAffineBatch",value:function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn.P,n=new Array(e.length),r=nr(e.reduce((function(e,r,a){return r===yn?e:(n[a]=e,er(e*r,t))}),mn),t);return e.reduceRight((function(e,r,a){return r===yn?e:(n[a]=er(e*n[a],t),er(e*r,t))}),r),n}(e.map((function(e){return e.z})));return e.map((function(e,n){return e.toAffine(t[n])}))}},{key:"normalizeZ",value:function(t){return e.toAffineBatch(t).map(e.fromAffine)}}]),e}();function Rn(e,t){var n=t.negate();return e?n:t}Bn.BASE=new Bn(wn.Gx,wn.Gy,mn),Bn.ZERO=new Bn(yn,mn,yn);var Nn=new WeakMap,Dn=function(){function e(t,n){(0,h.Z)(this,e),this.x=t,this.y=n}return(0,y.Z)(e,[{key:"_setWindowSize",value:function(e){this._WINDOW_SIZE=e,Nn.delete(this)}},{key:"hasEvenY",value:function(){return this.y%vn===yn}},{key:"toRawBytes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Wn(this.toHex(e))}},{key:"toHex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Kn(this.x);if(e){var n=this.hasEvenY()?"02":"03";return"".concat(n).concat(t)}return"04".concat(t).concat(Kn(this.y))}},{key:"toHexX",value:function(){return this.toHex(!0).slice(2)}},{key:"toRawX",value:function(){return this.toRawBytes(!0).slice(1)}},{key:"assertValidity",value:function(){var e="Point is not on elliptic curve",t=this.x,n=this.y;if(!or(t)||!or(n))throw new Error(e);var r=er(n*n);if(er(r-Tn(t))!==yn)throw new Error(e)}},{key:"equals",value:function(e){return this.x===e.x&&this.y===e.y}},{key:"negate",value:function(){return new e(this.x,er(-this.y))}},{key:"double",value:function(){return Bn.fromAffine(this).double().toAffine()}},{key:"add",value:function(e){return Bn.fromAffine(this).add(Bn.fromAffine(e)).toAffine()}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiply",value:function(e){return Bn.fromAffine(this).multiply(e,this).toAffine()}},{key:"multiplyAndAddUnsafe",value:function(t,n,r){var a=Bn.fromAffine(this),i=n===yn||n===mn||this!==e.BASE?a.multiplyUnsafe(n):a.multiply(n),o=Bn.fromAffine(t).multiplyUnsafe(r),s=i.add(o);return s.equals(Bn.ZERO)?void 0:s.toAffine()}}],[{key:"fromCompressedHex",value:function(t){var n=32===t.length,r=Yn(n?t:t.subarray(1));if(!or(r))throw new Error("Point is not on curve");var a=function(e){var t=wn.P,n=BigInt(6),r=BigInt(11),a=BigInt(22),i=BigInt(23),o=BigInt(44),s=BigInt(88),c=e*e*e%t,u=c*c*e%t,f=tr(u,gn)*u%t,d=tr(f,gn)*u%t,l=tr(d,vn)*c%t,p=tr(l,r)*l%t,b=tr(p,a)*p%t,h=tr(b,o)*b%t,y=tr(h,s)*h%t,m=tr(y,o)*b%t,v=tr(m,gn)*u%t,g=tr(v,i)*p%t,A=tr(g,n)*c%t,w=tr(A,vn);if(w*w%t!==e)throw new Error("Cannot find square root");return w}(Tn(r)),i=(a&mn)===mn;n?i&&(a=er(-a)):1==(1&t[0])!==i&&(a=er(-a));var o=new e(r,a);return o.assertValidity(),o}},{key:"fromUncompressedHex",value:function(t){var n=new e(Yn(t.subarray(1,Sn+1)),Yn(t.subarray(Sn+1,2*Sn+1)));return n.assertValidity(),n}},{key:"fromHex",value:function(e){var t=Xn(e),n=t.length,r=t[0];if(n===Sn)return this.fromCompressedHex(t);if(n===En&&(2===r||3===r))return this.fromCompressedHex(t);if(n===Cn&&4===r)return this.fromUncompressedHex(t);throw new Error("Point.fromHex: received invalid point. Expected 32-".concat(En," compressed bytes or ").concat(Cn," uncompressed bytes, not ").concat(n))}},{key:"fromPrivateKey",value:function(t){return e.BASE.multiply(cr(t))}},{key:"fromSignature",value:function(t,n,r){var a=function(e){if(e instanceof Ln)return e.assertValidity(),e;try{return Ln.fromDER(e)}catch(t){return Ln.fromCompact(e)}}(n),i=a.r,o=a.s;if(![0,1,2,3].includes(r))throw new Error("Cannot recover: invalid recovery bit");var s=rr(Xn(t)),c=wn.n,u=2===r||3===r?i+c:i,f=nr(u,c),d=er(-s*f,c),l=er(o*f,c),p=1&r?"03":"02",b=e.fromHex(p+Kn(u)),h=e.BASE.multiplyAndAddUnsafe(b,d,l);if(!h)throw new Error("Cannot recover signature: point at infinify");return h.assertValidity(),h}}]),e}();function jn(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function Un(e){if(e.length<2||2!==e[0])throw new Error("Invalid signature integer tag: ".concat(Hn(e)));var t=e[1],n=e.subarray(2,t+2);if(!t||n.length!==t)throw new Error("Invalid signature integer: wrong length");if(0===n[0]&&n[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:Yn(n),left:e.subarray(t+2)}}Dn.BASE=new Dn(wn.Gx,wn.Gy),Dn.ZERO=new Dn(yn,yn);var Ln=function(){function e(t,n){(0,h.Z)(this,e),this.r=t,this.s=n,this.assertValidity()}return(0,y.Z)(e,[{key:"assertValidity",value:function(){var e=this.r,t=this.s;if(!ir(e))throw new Error("Invalid Signature: r must be 0 < r < n");if(!ir(t))throw new Error("Invalid Signature: s must be 0 < s < n")}},{key:"hasHighS",value:function(){var e=wn.n>>mn;return this.s>e}},{key:"normalizeS",value:function(){return this.hasHighS()?new e(this.r,er(-this.s,wn.n)):this}},{key:"toDERRawBytes",value:function(){return Wn(this.toDERHex())}},{key:"toDERHex",value:function(){var e=jn(Jn(this.s)),t=jn(Jn(this.r)),n=e.length/2,r=t.length/2,a=Jn(n),i=Jn(r),o=Jn(r+n+4);return"30".concat(o,"02").concat(i).concat(t,"02").concat(a).concat(e)}},{key:"toRawBytes",value:function(){return this.toDERRawBytes()}},{key:"toHex",value:function(){return this.toDERHex()}},{key:"toCompactRawBytes",value:function(){return Wn(this.toCompactHex())}},{key:"toCompactHex",value:function(){return Kn(this.r)+Kn(this.s)}}],[{key:"fromCompact",value:function(t){var n=t instanceof Uint8Array,r="Signature.fromCompact";if("string"!=typeof t&&!n)throw new TypeError("".concat(r,": Expected string or Uint8Array"));var a=n?Hn(t):t;if(128!==a.length)throw new Error("".concat(r,": Expected 64-byte hex"));return new e(Gn(a.slice(0,64)),Gn(a.slice(64,128)))}},{key:"fromDER",value:function(t){var n=t instanceof Uint8Array;if("string"!=typeof t&&!n)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");var r=function(e){if(e.length<2||48!=e[0])throw new Error("Invalid signature tag: ".concat(Hn(e)));if(e[1]!==e.length-2)throw new Error("Invalid signature: incorrect length");var t=Un(e.subarray(2)),n=t.data,r=Un(t.left),a=r.data,i=r.left;if(i.length)throw new Error("Invalid signature: left bytes after parsing: ".concat(Hn(i)));return{r:n,s:a}}(n?t:Wn(t));return new e(r.r,r.s)}},{key:"fromHex",value:function(e){return this.fromDER(e)}}]),e}();function Zn(){for(var e=arguments.length,t=new Array(e),n=0;n0)return BigInt(e);if("bigint"==typeof e&&ir(e))return e;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function er(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn.P,n=e%t;return n>=yn?n:t+n}function tr(e,t){for(var n=wn.P,r=e;t-- >yn;)r*=r,r%=n;return r}function nr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn.P;if(e===yn||t<=yn)throw new Error("invert: expected positive integers, got n=".concat(e," mod=").concat(t));for(var n=er(e,t),r=t,a=yn,i=mn,o=mn,s=yn;n!==yn;){var c=r/n,u=r%n,f=a-o*c,d=i-s*c;r=n,n=u,a=o,i=s,o=f,s=d}if(r!==mn)throw new Error("invert: does not exist");return er(a,t)}function rr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(e){var t=8*e.length-8*In,n=Yn(e);return t>0?n>>BigInt(t):n}(e);if(t)return n;var r=wn.n;return n>=r?n-r:n}var ar=function(){function e(t,n){if((0,h.Z)(this,e),this.hashLen=t,this.qByteLen=n,"number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof n||n<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(t).fill(1),this.k=new Uint8Array(t).fill(0),this.counter=0}var t,n;return(0,y.Z)(e,[{key:"hmac",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}},{key:"reseed",value:(n=(0,l.Z)((0,d.Z)().mark((function e(){var t,n=arguments;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:new Uint8Array,e.next=3,this.hmac(this.v,Uint8Array.from([0]),t);case 3:return this.k=e.sent,e.next=6,this.hmac(this.v);case 6:if(this.v=e.sent,0!==t.length){e.next=9;break}return e.abrupt("return");case 9:return e.next=11,this.hmac(this.v,Uint8Array.from([1]),t);case 11:return this.k=e.sent,e.next=14,this.hmac(this.v);case 14:this.v=e.sent;case 15:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"reseedSync",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array;this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),e),this.v=this.hmacSync(this.v),0!==e.length&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),e),this.v=this.hmacSync(this.v))}},{key:"generate",value:(t=(0,l.Z)((0,d.Z)().mark((function e(){var t,n,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.incr(),t=0,n=[];case 3:if(!(t3&&void 0!==arguments[3])||arguments[3],a=wn.n,i=rr(e,!0);if(ir(i)){var o=nr(i,a),s=Dn.BASE.multiply(i),c=er(s.x,a);if(c!==yn){var u=er(o*er(t+n*c,a),a);if(u!==yn){var f=new Ln(c,u),d=(s.x===f.r?0:2)|Number(s.y&mn);return r&&f.hasHighS()&&(f=f.normalizeS(),d^=1),{sig:f,recovery:d}}}}}function cr(e){var t;if("bigint"==typeof e)t=e;else if("number"==typeof e&&Number.isSafeInteger(e)&&e>0)t=BigInt(e);else if("string"==typeof e){if(e.length!==2*In)throw new Error("Expected 32 bytes of private key");t=Gn(e)}else{if(!(e instanceof Uint8Array))throw new TypeError("Expected valid private key");if(e.length!==In)throw new Error("Expected 32 bytes of private key");t=Yn(e)}if(!ir(t))throw new Error("Expected private key: 0 < key < n");return t}function ur(e){return Yn(e.length>Sn?e.slice(0,Sn):e)}function fr(e){var t=ur(e),n=er(t,wn.n);return dr(n1024)throw new Error("Expected valid bytes of private key as per FIPS 186");return Vn(er(Yn(e),wn.n-mn)+mn)},randomBytes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(br.web)return br.web.getRandomValues(new Uint8Array(e));if(br.node){var t=br.node.randomBytes;return Uint8Array.from(t(e))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:function(){return yr.hashToPrivateKey(yr.randomBytes(In+8))},precompute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dn.BASE,n=t===Dn.BASE?t:new Dn(t.x,t.y);return n._setWindowSize(e),n.multiply(gn),n},sha256:function(){var e=(0,l.Z)((0,d.Z)().mark((function e(){var t,n,r,a,i,o,s=arguments;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=s.length,n=new Array(t),r=0;r1?n-1:0),a=1;a1?a-1:0),o=1;o1?r-1:0),i=1;iBr)throw new Error("Invalid public key input")}return t}return(0,y.Z)(o,[{key:"equals",value:function(e){return this._bn.eq(e._bn)}},{key:"toBase58",value:function(){return Ve().encode(this.toBytes())}},{key:"toJSON",value:function(){return this.toBase58()}},{key:"toBytes",value:function(){var e=this.toBuffer();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}},{key:"toBuffer",value:function(){var e=this._bn.toArrayLike(m.Buffer);if(e.length===Br)return e;var t=m.Buffer.alloc(32);return e.copy(t,32-e.length),t}},{key:t,get:function(){return"PublicKey(".concat(this.toString(),")")}},{key:"toString",value:function(){return this.toBase58()}}],[{key:"unique",value:function(){var e=new o(Rr);return Rr+=1,new o(e.toBuffer())}},{key:"createWithSeed",value:(a=(0,l.Z)((0,d.Z)().mark((function e(t,n,r){var a,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=m.Buffer.concat([t.toBuffer(),m.Buffer.from(n),r.toBuffer()]),i=et(a),e.abrupt("return",new o(i));case 3:case"end":return e.stop()}}),e)}))),function(e,t,n){return a.apply(this,arguments)})},{key:"createProgramAddressSync",value:function(e,t){var n=m.Buffer.alloc(0);e.forEach((function(e){if(e.length>Mr)throw new TypeError("Max seed length exceeded");n=m.Buffer.concat([n,Cr(e)])})),n=m.Buffer.concat([n,t.toBuffer(),m.Buffer.from("ProgramDerivedAddress")]);var r=et(n);if(kr(r))throw new Error("Invalid seeds, address must fall off the curve");return new o(r)}},{key:"createProgramAddress",value:(r=(0,l.Z)((0,d.Z)().mark((function e(t,n){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.createProgramAddressSync(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"findProgramAddressSync",value:function(e,t){for(var n,r=255;0!=r;){try{var a=e.concat(m.Buffer.from([r]));n=this.createProgramAddressSync(a,t)}catch(e){if(e instanceof TypeError)throw e;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}},{key:"findProgramAddress",value:(n=(0,l.Z)((0,d.Z)().mark((function e(t,n){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.findProgramAddressSync(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"isOnCurve",value:function(e){return kr(new o(e).toBytes())}}]),o}(Tr,Sr);Nr.default=new Nr("11111111111111111111111111111111"),Pr.set(Nr,{kind:"struct",fields:[["_bn","u256"]]});var Dr=function(){function e(t){if((0,h.Z)(this,e),this._publicKey=void 0,this._secretKey=void 0,t){var n=Cr(t);if(64!==t.length)throw new Error("bad secret key size");this._publicKey=n.slice(32,64),this._secretKey=n.slice(0,32)}else this._secretKey=Cr(wr()),this._publicKey=Cr(_r(this._secretKey))}return(0,y.Z)(e,[{key:"publicKey",get:function(){return new Nr(this._publicKey)}},{key:"secretKey",get:function(){return m.Buffer.concat([this._secretKey,this._publicKey],64)}}]),e}(),jr=new Nr("BPFLoader1111111111111111111111111111111111"),Ur=1232,Lr=127,Zr=64,Fr=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e){var r;return(0,h.Z)(this,n),(r=t.call(this,"Signature ".concat(e," has expired: block height exceeded."))).signature=void 0,r.signature=e,r}return(0,y.Z)(n)}((0,f.Z)(Error));Object.defineProperty(Fr.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});var Hr=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e,r){var a;return(0,h.Z)(this,n),(a=t.call(this,"Transaction was not confirmed in ".concat(r.toFixed(2)," seconds. It is ")+"unknown if it succeeded or failed. Check signature "+"".concat(e," using the Solana Explorer or CLI tools."))).signature=void 0,a.signature=e,a}return(0,y.Z)(n)}((0,f.Z)(Error));Object.defineProperty(Hr.prototype,"name",{value:"TransactionExpiredTimeoutError"});var zr=function(e){(0,p.Z)(n,e);var t=(0,b.Z)(n);function n(e){var r;return(0,h.Z)(this,n),(r=t.call(this,"Signature ".concat(e," has expired: the nonce is no longer valid."))).signature=void 0,r.signature=e,r}return(0,y.Z)(n)}((0,f.Z)(Error));Object.defineProperty(zr.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});var qr=function(){function e(t,n){(0,h.Z)(this,e),this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=n}return(0,y.Z)(e,[{key:"keySegments",value:function(){var e=[this.staticAccountKeys];return this.accountKeysFromLookups&&(e.push(this.accountKeysFromLookups.writable),e.push(this.accountKeysFromLookups.readonly)),e}},{key:"get",value:function(e){var t,n=(0,u.Z)(this.keySegments());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e256)throw new Error("Account index overflow encountered during compilation");var t=new Map;this.keySegments().flat().forEach((function(e,n){t.set(e.toBase58(),n)}));var n=function(e){var n=t.get(e.toBase58());if(void 0===n)throw new Error("Encountered an unknown instruction account key during compilation");return n};return e.map((function(e){return{programIdIndex:n(e.programId),accountKeyIndexes:e.keys.map((function(e){return n(e.pubkey)})),data:e.data}}))}}]),e}(),Qr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey";return nt.Ik(32,e)},Kr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"signature";return nt.Ik(64,e)},Vr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string",t=nt.n_([nt.Jq("length"),nt.Jq("lengthPadding"),nt.Ik(nt.cv(nt.Jq(),-8),"chars")],e),n=t.decode.bind(t),r=t.encode.bind(t),a=t;return a.decode=function(e,t){return n(e,t).chars.toString()},a.encode=function(e,t,n){var a={chars:m.Buffer.from(e,"utf8")};return r(a,t,n)},a.alloc=function(e){return nt.Jq().span+nt.Jq().span+m.Buffer.from(e,"utf8").length},a};function Jr(e,t){var n=function e(n){if(n.span>=0)return n.span;if("function"==typeof n.alloc)return n.alloc(t[n.property]);if("count"in n&&"elementLayout"in n){var r=t[n.property];if(Array.isArray(r))return r.length*e(n.elementLayout)}else if("fields"in n)return Jr({layout:n},t[n.property]);return 0},r=0;return e.layout.fields.forEach((function(e){r+=n(e)})),r}function Gr(e){for(var t=0,n=0;;){var r=e.shift();if(t|=(127&r)<<7*n,n+=1,0==(128&r))break}return t}function Wr(e,t){for(var n=t;;){var r=127&n;if(0==(n>>=7)){e.push(r);break}r|=128,e.push(r)}}function Yr(e,t){if(!e)throw new Error(t||"Assertion failed")}var Xr,$r=function(){function e(t,n){(0,h.Z)(this,e),this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=n}return(0,y.Z)(e,[{key:"getMessageComponents",value:function(){var e=(0,c.Z)(this.keyMetaMap.entries());Yr(e.length<=256,"Max static account keys length exceeded");var t=e.filter((function(e){var t=(0,s.Z)(e,2)[1];return t.isSigner&&t.isWritable})),n=e.filter((function(e){var t=(0,s.Z)(e,2)[1];return t.isSigner&&!t.isWritable})),r=e.filter((function(e){var t=(0,s.Z)(e,2)[1];return!t.isSigner&&t.isWritable})),a=e.filter((function(e){var t=(0,s.Z)(e,2)[1];return!t.isSigner&&!t.isWritable})),i={numRequiredSignatures:t.length+n.length,numReadonlySignedAccounts:n.length,numReadonlyUnsignedAccounts:a.length};return Yr(t.length>0,"Expected at least one writable signer key"),Yr((0,s.Z)(t[0],1)[0]===this.payer.toBase58(),"Expected first writable signer key to be the fee payer"),[i,[].concat((0,c.Z)(t.map((function(e){var t=(0,s.Z)(e,1)[0];return new Nr(t)}))),(0,c.Z)(n.map((function(e){var t=(0,s.Z)(e,1)[0];return new Nr(t)}))),(0,c.Z)(r.map((function(e){var t=(0,s.Z)(e,1)[0];return new Nr(t)}))),(0,c.Z)(a.map((function(e){var t=(0,s.Z)(e,1)[0];return new Nr(t)}))))]}},{key:"extractTableLookup",value:function(e){var t=this.drainKeysFoundInLookupTable(e.state.addresses,(function(e){return!e.isSigner&&!e.isInvoked&&e.isWritable})),n=(0,s.Z)(t,2),r=n[0],a=n[1],i=this.drainKeysFoundInLookupTable(e.state.addresses,(function(e){return!e.isSigner&&!e.isInvoked&&!e.isWritable})),o=(0,s.Z)(i,2),c=o[0],u=o[1];if(0!==r.length||0!==c.length)return[{accountKey:e.key,writableIndexes:r,readonlyIndexes:c},{writable:a,readonly:u}]}},{key:"drainKeysFoundInLookupTable",value:function(e,t){var n,r=this,a=new Array,i=new Array,o=(0,u.Z)(this.keyMetaMap.entries());try{var c=function(){var o=(0,s.Z)(n.value,2),c=o[0],u=o[1];if(t(u)){var f=new Nr(c),d=e.findIndex((function(e){return e.equals(f)}));d>=0&&(Yr(d<256,"Max lookup table index exceeded"),a.push(d),i.push(f),r.keyMetaMap.delete(c))}};for(o.s();!(n=o.n()).done;)c()}catch(e){o.e(e)}finally{o.f()}return[a,i]}}],[{key:"compile",value:function(t,n){var r=new Map,a=function(e){var t=e.toBase58(),n=r.get(t);return void 0===n&&(n={isSigner:!1,isWritable:!1,isInvoked:!1},r.set(t,n)),n},i=a(n);i.isSigner=!0,i.isWritable=!0;var o,s=(0,u.Z)(t);try{for(s.s();!(o=s.n()).done;){var c=o.value;a(c.programId).isInvoked=!0;var f,d=(0,u.Z)(c.keys);try{for(d.s();!(f=d.n()).done;){var l=f.value,p=a(l.pubkey);p.isSigner||(p.isSigner=l.isSigner),p.isWritable||(p.isWritable=l.isWritable)}}catch(e){d.e(e)}finally{d.f()}}}catch(e){s.e(e)}finally{s.f()}return new e(n,r)}}]),e}(),ea=function(){function e(t){var n=this;(0,h.Z)(this,e),this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map((function(e){return new Nr(e)})),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach((function(e){return n.indexToProgramIds.set(e.programIdIndex,n.accountKeys[e.programIdIndex])}))}return(0,y.Z)(e,[{key:"version",get:function(){return"legacy"}},{key:"staticAccountKeys",get:function(){return this.accountKeys}},{key:"compiledInstructions",get:function(){return this.instructions.map((function(e){return{programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:Ve().decode(e.data)}}))}},{key:"addressTableLookups",get:function(){return[]}},{key:"getAccountKeys",value:function(){return new qr(this.staticAccountKeys)}},{key:"isAccountSigner",value:function(e){return e=this.header.numRequiredSignatures?e-t0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new qr(this.staticAccountKeys,t)}},{key:"isAccountSigner",value:function(e){return e=n?e-n=this.header.numRequiredSignatures?e-t0?this.signatures[0].signature:null}},{key:"toJSON",value:function(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map((function(e){return e.toJSON()})),signers:this.signatures.map((function(e){return e.publicKey.toJSON()}))}}},{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(var r=0;r-1?(f[n].isWritable=f[n].isWritable||e.isWritable,f[n].isSigner=f[n].isSigner||e.isSigner):f.push(e)})),f.sort((function(e,t){return e.isSigner!==t.isSigner?e.isSigner?-1:1:e.isWritable!==t.isWritable?e.isWritable?-1:1:e.pubkey.toBase58().localeCompare(t.pubkey.toBase58())}));var d=f.findIndex((function(e){return e.pubkey.equals(n)}));if(d>-1){var l=f.splice(d,1),p=(0,s.Z)(l,1)[0];p.isSigner=!0,p.isWritable=!0,f.unshift(p)}else f.unshift({pubkey:n,isSigner:!0,isWritable:!0});var b,h=(0,u.Z)(this.signatures);try{var y=function(){var e=b.value,t=f.findIndex((function(t){return t.pubkey.equals(e.publicKey)}));if(!(t>-1))throw new Error("unknown signer: ".concat(e.publicKey.toString()));f[t].isSigner||(f[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))};for(h.s();!(b=h.n()).done;)y()}catch(e){h.e(e)}finally{h.f()}var m=0,v=0,g=0,A=[],w=[];f.forEach((function(e){var t=e.pubkey,n=e.isSigner,r=e.isWritable;n?(A.push(t.toString()),m+=1,r||(v+=1)):(w.push(t.toString()),r||(g+=1))}));var x=A.concat(w),_=t.map((function(e){var t=e.data,n=e.programId;return{programIdIndex:x.indexOf(n.toString()),accounts:e.keys.map((function(e){return x.indexOf(e.pubkey.toString())})),data:Ve().encode(t)}}));return _.forEach((function(e){Yr(e.programIdIndex>=0),e.accounts.forEach((function(e){return Yr(e>=0)}))})),new ea({header:{numRequiredSignatures:m,numReadonlySignedAccounts:v,numReadonlyUnsignedAccounts:g},accountKeys:x,recentBlockhash:e,instructions:_})}},{key:"_compile",value:function(){var e=this.compileMessage(),t=e.accountKeys.slice(0,e.header.numRequiredSignatures);return this.signatures.length===t.length&&this.signatures.every((function(e,n){return t[n].equals(e.publicKey)}))||(this.signatures=t.map((function(e){return{signature:null,publicKey:e}}))),e}},{key:"serializeMessage",value:function(){return this._compile().serialize()}},{key:"getEstimatedFee",value:(t=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFeeForMessage(this.compileMessage());case 2:return e.abrupt("return",e.sent.value);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"setSigners",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?r-1:0),i=1;i ").concat(Ur)),a}},{key:"keys",get:function(){return Yr(1===this.instructions.length),this.instructions[0].keys.map((function(e){return e.pubkey}))}},{key:"programId",get:function(){return Yr(1===this.instructions.length),this.instructions[0].programId}},{key:"data",get:function(){return Yr(1===this.instructions.length),this.instructions[0].data}}],[{key:"from",value:function(t){for(var n=(0,c.Z)(t),r=Gr(n),a=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:[],r=new e;return r.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(r.feePayer=t.accountKeys[0]),n.forEach((function(e,n){var a={signature:e==Ve().encode(ra)?null:Ve().decode(e),publicKey:t.accountKeys[n]};r.signatures.push(a)})),t.instructions.forEach((function(e){var n=e.accounts.map((function(e){var n=t.accountKeys[e];return{pubkey:n,isSigner:r.signatures.some((function(e){return e.publicKey.toString()===n.toString()}))||t.isAccountSigner(e),isWritable:t.isAccountWritable(e)}}));r.instructions.push(new aa({keys:n,programId:t.accountKeys[e.programIdIndex],data:Ve().decode(e.data)}))})),r._message=t,r._json=r.toJSON(),r}}]),e}(),oa=function(){function e(t){(0,h.Z)(this,e),this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=t.payerKey,this.instructions=t.instructions,this.recentBlockhash=t.recentBlockhash}return(0,y.Z)(e,[{key:"compileToLegacyMessage",value:function(){return ea.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions})}},{key:"compileToV0Message",value:function(e){return ta.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions,addressLookupTableAccounts:e})}}],[{key:"decompile",value:function(t,n){var r=t.header,a=t.compiledInstructions,i=t.recentBlockhash,o=r.numRequiredSignatures,s=r.numReadonlySignedAccounts,c=r.numReadonlyUnsignedAccounts,f=o-s;Yr(f>0,"Message header is invalid");var d=t.staticAccountKeys.length-o-c;Yr(d>=0,"Message header is invalid");var l=t.getAccountKeys(n),p=l.get(0);if(void 0===p)throw new Error("Failed to decompile message because no account keys were found");var b,h=[],y=(0,u.Z)(a);try{for(y.s();!(b=y.n()).done;){var m,v=b.value,g=[],A=(0,u.Z)(v.accountKeyIndexes);try{for(A.s();!(m=A.n()).done;){var w=m.value,x=l.get(w);if(void 0===x)throw new Error("Failed to find key for account key index ".concat(w));var _;_=w=0,"Cannot sign with non signer key ".concat(e.publicKey.toBase58())),n.signatures[i]=Ir(r,e.secretKey)};for(i.s();!(t=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}}},{key:"addSignature",value:function(e,t){Yr(64===t.byteLength,"Signature must be 64 bytes long");var n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex((function(t){return t.equals(e)}));Yr(n>=0,"Can not add signature; `".concat(e.toBase58(),"` is not required to sign this transaction")),this.signatures[n]=t}}],[{key:"deserialize",value:function(t){for(var n=(0,c.Z)(t),r=[],a=Gr(n),i=0;i=0?e.layout.span:Jr(e,t),r=m.Buffer.alloc(n),a=Object.assign({instruction:e.index},t);return e.layout.encode(a,r),r}function wa(e,t){var n;try{n=e.layout.decode(t)}catch(e){throw new Error("invalid instruction; "+e)}if(n.instruction!==e.index)throw new Error("invalid instruction; instruction index mismatch ".concat(n.instruction," != ").concat(e.index));return n}var xa=nt._O("lamportsPerSignature"),_a=nt.n_([nt.Jq("version"),nt.Jq("state"),Qr("authorizedPubkey"),Qr("nonce"),nt.n_([xa],"feeCalculator")]),ka=_a.span,Sa=function(){function e(t){(0,h.Z)(this,e),this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}return(0,y.Z)(e,null,[{key:"fromAccountData",value:function(t){var n=_a.decode(Cr(t),0);return new e({authorizedPubkey:new Nr(n.authorizedPubkey),nonce:new Nr(n.nonce).toString(),feeCalculator:n.feeCalculator})}}]),e}(),Ia=(8,function(e){var t=(0,nt.Ik)(8,e),n=function(e){return{decode:e.decode.bind(e),encode:e.encode.bind(e)}}(t),r=n.encode,a=n.decode,i=t;return i.decode=function(e,t){var n=a(e,t);return(0,rt.oU)(m.Buffer.from(n))},i.encode=function(e,t,n){var a=(0,rt.k$)(e,8);return r(a,t,n)},i}),Ea=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=nt.Jq("instruction").decode(e.data),r=0,a=Object.entries(Ca);r0?s:1,space:o.length,programId:i}));case 17:if(null===u){t.next=20;break}return t.next=20,ma(n,u,[r,a],{commitment:"confirmed"});case 20:f=nt.n_([nt.Jq("instruction"),nt.Jq("offset"),nt.Jq("bytesLength"),nt.Jq("bytesLengthPadding"),nt.A9(nt.u8("byte"),nt.cv(nt.Jq(),-8),"bytes")]),l=e.chunkSize,p=0,b=o,h=[];case 25:if(!(b.length>0)){t.next=39;break}if(y=b.slice(0,l),v=m.Buffer.alloc(l+16),f.encode({instruction:0,offset:p,bytes:y,bytesLength:0,bytesLengthPadding:0},v),g=(new ia).add({keys:[{pubkey:a.publicKey,isSigner:!0,isWritable:!0}],programId:i,data:v}),h.push(ma(n,g,[r,a],{commitment:"confirmed"})),!n._rpcEndpoint.includes("solana.com")){t.next=35;break}return t.next=35,ga(250);case 35:p+=l,b=b.slice(l),t.next=25;break;case 39:return t.next=41,Promise.all(h);case 41:return A=nt.n_([nt.Jq("instruction")]),w=m.Buffer.alloc(A.span),A.encode({instruction:1},w),x=(new ia).add({keys:[{pubkey:a.publicKey,isSigner:!0,isWritable:!0},{pubkey:la,isSigner:!1,isWritable:!1}],programId:i,data:w}),t.next=47,ma(n,x,[r,a],{commitment:"confirmed"});case 47:return t.abrupt("return",!0);case 48:case"end":return t.stop()}}),t)}))),function(e,n,r,a,i){return t.apply(this,arguments)})}]),e}();Pa.chunkSize=Oa;var Ma=new Nr("BPFLoader2111111111111111111111111111111111"),Ba=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"getMinNumSignatures",value:function(e){return Pa.getMinNumSignatures(e)}},{key:"load",value:function(e,t,n,r,a){return Pa.load(e,t,n,a,r)}}]),e}(),Ra=Object.prototype.toString,Na=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function Da(e,t){var n,r,a,i,o,s,c;if(!0===e)return"true";if(!1===e)return"false";switch(typeof e){case"object":if(null===e)return null;if(e.toJSON&&"function"==typeof e.toJSON)return Da(e.toJSON(),t);if("[object Array]"===(c=Ra.call(e))){for(a="[",r=e.length-1,n=0;n-1&&(a+=Da(e[n],!0)),a+"]"}if("[object Object]"===c){for(r=(i=Na(e).sort()).length,a="",n=0;n1;)e/=2,t++;return t}var La=function(){function e(t,n,r,a,i){(0,h.Z)(this,e),this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=n,this.warmup=r,this.firstNormalEpoch=a,this.firstNormalSlot=i}return(0,y.Z)(e,[{key:"getEpoch",value:function(e){return this.getEpochAndSlotIndex(e)[0]}},{key:"getEpochAndSlotIndex",value:function(e){if(e>1,n|=n>>2,n|=n>>4,n|=n>>8,n|=n>>16,1+(n|=n>>32)))-Ua(32)-1;return[t,e-(this.getSlotsInEpoch(t)-32)]}var n,r=e-this.firstNormalSlot,a=Math.floor(r/this.slotsPerEpoch);return[this.firstNormalEpoch+a,r%this.slotsPerEpoch]}},{key:"getFirstSlotInEpoch",value:function(e){return e<=this.firstNormalEpoch?32*(Math.pow(2,e)-1):(e-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}},{key:"getLastSlotInEpoch",value:function(e){return this.getFirstSlotInEpoch(e)+this.getSlotsInEpoch(e)-1}},{key:"getSlotsInEpoch",value:function(e){return e0&&(a.until=o.signatures[o.signatures.length-1].toString()),e.next=22;break;case 15:if(e.prev=15,e.t0=e.catch(8),!(e.t0 instanceof Error&&e.t0.message.includes("skipped"))){e.next=21;break}return e.abrupt("continue",4);case 21:throw e.t0;case 22:e.next=4;break;case 24:return e.next=26,this.getSlot("finalized");case 26:s=e.sent;case 27:if("before"in a){e.next=47;break}if(!(++r>s)){e.next=31;break}return e.abrupt("break",47);case 31:return e.prev=31,e.next=34,this.getConfirmedBlockSignatures(r);case 34:(c=e.sent).signatures.length>0&&(a.before=c.signatures[c.signatures.length-1].toString()),e.next=45;break;case 38:if(e.prev=38,e.t1=e.catch(31),!(e.t1 instanceof Error&&e.t1.message.includes("skipped"))){e.next=44;break}return e.abrupt("continue",27);case 44:throw e.t1;case 45:e.next=27;break;case 47:return e.next=49,this.getConfirmedSignaturesForAddress2(t,a);case 49:return u=e.sent,e.abrupt("return",u.map((function(e){return e.signature})));case 51:case"end":return e.stop()}}),e,this,[[8,15],[31,38]])}))),function(e,t,n){return M.apply(this,arguments)})},{key:"getConfirmedSignaturesForAddress2",value:(P=(0,l.Z)((0,d.Z)().mark((function e(t,n,r){var a,i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this._buildArgsAtLeastConfirmed([t.toBase58()],r,void 0,n),e.next=3,this._rpcRequest("getConfirmedSignaturesForAddress2",a);case 3:if(i=e.sent,!("error"in(o=mt(i,Ui)))){e.next=7;break}throw new Ha(o.error,"failed to get confirmed signatures for address");case 7:return e.abrupt("return",o.result);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return P.apply(this,arguments)})},{key:"getSignaturesForAddress",value:(O=(0,l.Z)((0,d.Z)().mark((function e(t,n,r){var a,i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this._buildArgsAtLeastConfirmed([t.toBase58()],r,void 0,n),e.next=3,this._rpcRequest("getSignaturesForAddress",a);case 3:if(i=e.sent,!("error"in(o=mt(i,Li)))){e.next=7;break}throw new Ha(o.error,"failed to get signatures for address");case 7:return e.abrupt("return",o.result);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return O.apply(this,arguments)})},{key:"getAddressLookupTable",value:(T=(0,l.Z)((0,d.Z)().mark((function e(t,n){var r,a,i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountInfoAndContext(t,n);case 2:return r=e.sent,a=r.context,i=r.value,o=null,null!==i&&(o=new Qa({key:t,state:Qa.deserialize(i.data)})),e.abrupt("return",{context:a,value:o});case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return T.apply(this,arguments)})},{key:"getNonceAndContext",value:(C=(0,l.Z)((0,d.Z)().mark((function e(t,n){var r,a,i,o;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountInfoAndContext(t,n);case 2:return r=e.sent,a=r.context,i=r.value,o=null,null!==i&&(o=Sa.fromAccountData(i.data)),e.abrupt("return",{context:a,value:o});case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return C.apply(this,arguments)})},{key:"getNonce",value:(E=(0,l.Z)((0,d.Z)().mark((function e(t,n){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNonceAndContext(t,n).then((function(e){return e.value})).catch((function(e){throw new Error("failed to get nonce for account "+t.toBase58()+": "+e)}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return E.apply(this,arguments)})},{key:"requestAirdrop",value:(I=(0,l.Z)((0,d.Z)().mark((function e(t,n){var r,a;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("requestAirdrop",[t.toBase58(),n]);case 2:if(r=e.sent,!("error"in(a=mt(r,Po)))){e.next=6;break}throw new Ha(a.error,"airdrop to ".concat(t.toBase58()," failed"));case 6:return e.abrupt("return",a.result);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return I.apply(this,arguments)})},{key:"_blockhashWithExpiryBlockHeight",value:(S=(0,l.Z)((0,d.Z)().mark((function e(t){var n,r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=10;break}case 1:if(!this._pollingBlockhash){e.next=6;break}return e.next=4,ga(100);case 4:e.next=1;break;case 6:if(n=Date.now()-this._blockhashInfo.lastFetch,r=n>=Ya,null===this._blockhashInfo.latestBlockhash||r){e.next=10;break}return e.abrupt("return",this._blockhashInfo.latestBlockhash);case 10:return e.next=12,this._pollNewBlockhash();case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"_pollNewBlockhash",value:(k=(0,l.Z)((0,d.Z)().mark((function e(){var t,n,r,a,i;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._pollingBlockhash=!0,e.prev=1,t=Date.now(),n=this._blockhashInfo.latestBlockhash,r=n?n.blockhash:null,a=0;case 6:if(!(a<50)){e.next=18;break}return e.next=9,this.getLatestBlockhash("finalized");case 9:if(i=e.sent,r===i.blockhash){e.next=13;break}return this._blockhashInfo={latestBlockhash:i,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},e.abrupt("return",i);case 13:return e.next=15,ga(200);case 15:a++,e.next=6;break;case 18:throw new Error("Unable to obtain a new blockhash after ".concat(Date.now()-t,"ms"));case 19:return e.prev=19,this._pollingBlockhash=!1,e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[1,,19,22]])}))),function(){return k.apply(this,arguments)})},{key:"getStakeMinimumDelegation",value:(_=(0,l.Z)((0,d.Z)().mark((function e(t){var n,r,a,i,o,s;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Xa(t),r=n.commitment,a=n.config,i=this._buildArgs([],r,"base64",a),e.next=4,this._rpcRequest("getStakeMinimumDelegation",i);case 4:if(o=e.sent,!("error"in(s=mt(o,ni(It()))))){e.next=8;break}throw new Ha(s.error,"failed to get stake minimum delegation");case 8:return e.abrupt("return",s.result);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"simulateTransaction",value:(x=(0,l.Z)((0,d.Z)().mark((function e(t,n,r){var a,i,o,s,u,f,l,p,b,h,y,v,g,A,w,x,_,k,S,I,E,C,T,O,P;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("message"in t)){e.next=17;break}if(a=t.serialize(),i=m.Buffer.from(a).toString("base64"),!Array.isArray(n)&&void 0===r){e.next=6;break}throw new Error("Invalid arguments");case 6:return(o=n||{}).encoding="base64","commitment"in o||(o.commitment=this.commitment),s=[i,o],e.next=12,this._rpcRequest("simulateTransaction",s);case 12:if(u=e.sent,!("error"in(f=mt(u,yi)))){e.next=16;break}throw new Error("failed to simulate transaction: "+f.error.message);case 16:return e.abrupt("return",f.result);case 17:if(t instanceof ia?(p=t,(l=new ia).feePayer=p.feePayer,l.instructions=t.instructions,l.nonceInfo=p.nonceInfo,l.signatures=p.signatures):(l=ia.populate(t))._message=l._json=void 0,void 0===n||Array.isArray(n)){e.next=20;break}throw new Error("Invalid arguments");case 20:if(b=n,!l.nonceInfo||!b){e.next=25;break}(h=l).sign.apply(h,(0,c.Z)(b)),e.next=45;break;case 25:y=this._disableBlockhashCaching;case 26:return e.next=28,this._blockhashWithExpiryBlockHeight(y);case 28:if(g=e.sent,l.lastValidBlockHeight=g.lastValidBlockHeight,l.recentBlockhash=g.blockhash,b){e.next=33;break}return e.abrupt("break",45);case 33:if((v=l).sign.apply(v,(0,c.Z)(b)),l.signature){e.next=36;break}throw new Error("!signature");case 36:if(A=l.signature.toString("base64"),this._blockhashInfo.simulatedSignatures.includes(A)||this._blockhashInfo.transactionSignatures.includes(A)){e.next=42;break}return this._blockhashInfo.simulatedSignatures.push(A),e.abrupt("break",45);case 42:y=!0;case 43:e.next=26;break;case 45:return w=l._compile(),x=w.serialize(),_=l._serialize(x),k=_.toString("base64"),S={encoding:"base64",commitment:this.commitment},r&&(I=(Array.isArray(r)?r:w.nonProgramIds()).map((function(e){return e.toBase58()})),S.accounts={encoding:"base64",addresses:I}),b&&(S.sigVerify=!0),E=[k,S],e.next=55,this._rpcRequest("simulateTransaction",E);case 55:if(C=e.sent,!("error"in(T=mt(C,yi)))){e.next=60;break}throw"data"in T.error&&(O=T.error.data.logs)&&Array.isArray(O)&&(P="\n "+O.join("\n "),console.error(T.error.message,P)),new Za("failed to simulate transaction: "+T.error.message,O);case 60:return e.abrupt("return",T.result);case 61:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return x.apply(this,arguments)})},{key:"sendTransaction",value:(w=(0,l.Z)((0,d.Z)().mark((function e(t,n,r){var a,i,o,s,u,f;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("version"in t)){e.next=7;break}if(!n||!Array.isArray(n)){e.next=3;break}throw new Error("Invalid arguments");case 3:return a=t.serialize(),e.next=6,this.sendRawTransaction(a,n);case 6:return e.abrupt("return",e.sent);case 7:if(void 0!==n&&Array.isArray(n)){e.next=9;break}throw new Error("Invalid arguments");case 9:if(i=n,!t.nonceInfo){e.next=14;break}t.sign.apply(t,(0,c.Z)(i)),e.next=32;break;case 14:o=this._disableBlockhashCaching;case 15:return e.next=17,this._blockhashWithExpiryBlockHeight(o);case 17:if(s=e.sent,t.lastValidBlockHeight=s.lastValidBlockHeight,t.recentBlockhash=s.blockhash,t.sign.apply(t,(0,c.Z)(i)),t.signature){e.next=23;break}throw new Error("!signature");case 23:if(u=t.signature.toString("base64"),this._blockhashInfo.transactionSignatures.includes(u)){e.next=29;break}return this._blockhashInfo.transactionSignatures.push(u),e.abrupt("break",32);case 29:o=!0;case 30:e.next=15;break;case 32:return f=t.serialize(),e.next=35,this.sendRawTransaction(f,r);case 35:return e.abrupt("return",e.sent);case 36:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return w.apply(this,arguments)})},{key:"sendRawTransaction",value:(A=(0,l.Z)((0,d.Z)().mark((function e(t,n){var r,a;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Cr(t).toString("base64"),e.next=3,this.sendEncodedTransaction(r,n);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return A.apply(this,arguments)})},{key:"sendEncodedTransaction",value:(g=(0,l.Z)((0,d.Z)().mark((function e(t,n){var r,a,i,o,s,c,u;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={encoding:"base64"},a=n&&n.skipPreflight,i=n&&n.preflightCommitment||this.commitment,n&&null!=n.maxRetries&&(r.maxRetries=n.maxRetries),n&&null!=n.minContextSlot&&(r.minContextSlot=n.minContextSlot),a&&(r.skipPreflight=a),i&&(r.preflightCommitment=i),o=[t,r],e.next=10,this._rpcRequest("sendTransaction",o);case 10:if(s=e.sent,!("error"in(c=mt(s,Mo)))){e.next=15;break}throw"data"in c.error&&(u=c.error.data.logs),new Za("failed to send transaction: "+c.error.message,u);case 15:return e.abrupt("return",c.result);case 16:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"_wsOnOpen",value:function(){var e=this;this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval((function(){(0,l.Z)((0,d.Z)().mark((function t(){return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._rpcWebSocket.notify("ping");case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:case"end":return t.stop()}}),t,null,[[0,5]])})))()}),5e3),this._updateSubscriptions()}},{key:"_wsOnError",value:function(e){this._rpcWebSocketConnected=!1,console.error("ws error:",e.message)}},{key:"_wsOnClose",value:function(e){var t=this;this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==e?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach((function(e){var n=(0,s.Z)(e,2),r=n[0],a=n[1];t._setSubscription(r,(0,o.Z)((0,o.Z)({},a),{},{state:"pending"}))}))):this._updateSubscriptions()}},{key:"_setSubscription",value:function(e,t){var n,r=null===(n=this._subscriptionsByHash[e])||void 0===n?void 0:n.state;if(this._subscriptionsByHash[e]=t,r!==t.state){var a=this._subscriptionStateChangeCallbacksByHash[e];a&&a.forEach((function(e){try{e(t.state)}catch(e){}}))}}},{key:"_onSubscriptionStateChange",value:function(e,t){var n,r=this,a=this._subscriptionHashByClientSubscriptionId[e];if(null==a)return function(){};var i=(n=this._subscriptionStateChangeCallbacksByHash)[a]||(n[a]=new Set);return i.add(t),function(){i.delete(t),0===i.size&&delete r._subscriptionStateChangeCallbacksByHash[a]}}},{key:"_updateSubscriptions",value:(v=(0,l.Z)((0,d.Z)().mark((function e(){var t,n,r=this;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==Object.keys(this._subscriptionsByHash).length){e.next=3;break}return this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout((function(){r._rpcWebSocketIdleTimeout=null;try{r._rpcWebSocket.close()}catch(e){e instanceof Error&&console.log("Error when closing socket connection: ".concat(e.message))}}),500)),e.abrupt("return");case 3:if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),this._rpcWebSocketConnected){e.next=7;break}return this._rpcWebSocket.connect(),e.abrupt("return");case 7:return t=this._rpcWebSocketGeneration,n=function(){return t===r._rpcWebSocketGeneration},e.next=11,Promise.all(Object.keys(this._subscriptionsByHash).map(function(){var e=(0,l.Z)((0,d.Z)().mark((function e(t){var a;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(a=r._subscriptionsByHash[t])){e.next=3;break}return e.abrupt("return");case 3:e.t0=a.state,e.next="pending"===e.t0||"unsubscribed"===e.t0?6:"subscribed"===e.t0?15:19;break;case 6:if(0!==a.callbacks.size){e.next=12;break}return delete r._subscriptionsByHash[t],"unsubscribed"===a.state&&delete r._subscriptionCallbacksByServerSubscriptionId[a.serverSubscriptionId],e.next=11,r._updateSubscriptions();case 11:return e.abrupt("return");case 12:return e.next=14,(0,l.Z)((0,d.Z)().mark((function e(){var i,s,c;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.args,s=a.method,e.prev=1,r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"subscribing"})),e.next=5,r._rpcWebSocket.call(s,i);case 5:return c=e.sent,r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{serverSubscriptionId:c,state:"subscribed"})),r._subscriptionCallbacksByServerSubscriptionId[c]=a.callbacks,e.next=10,r._updateSubscriptions();case 10:e.next=20;break;case 12:if(e.prev=12,e.t0=e.catch(1),e.t0 instanceof Error&&console.error("".concat(s," error for argument"),i,e.t0.message),n()){e.next=17;break}return e.abrupt("return");case 17:return r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"pending"})),e.next=20,r._updateSubscriptions();case 20:case"end":return e.stop()}}),e,null,[[1,12]])})))();case 14:case 18:return e.abrupt("break",19);case 15:if(0!==a.callbacks.size){e.next=18;break}return e.next=18,(0,l.Z)((0,d.Z)().mark((function e(){var i,s;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=a.serverSubscriptionId,s=a.unsubscribeMethod,!r._subscriptionsAutoDisposedByRpc.has(i)){e.next=5;break}r._subscriptionsAutoDisposedByRpc.delete(i),e.next=21;break;case 5:return r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"unsubscribing"})),r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"unsubscribing"})),e.prev=7,e.next=10,r._rpcWebSocket.call(s,[i]);case 10:e.next=21;break;case 12:if(e.prev=12,e.t0=e.catch(7),e.t0 instanceof Error&&console.error("".concat(s," error:"),e.t0.message),n()){e.next=17;break}return e.abrupt("return");case 17:return r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"subscribed"})),e.next=20,r._updateSubscriptions();case 20:return e.abrupt("return");case 21:return r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"unsubscribed"})),e.next=24,r._updateSubscriptions();case 24:case"end":return e.stop()}}),e,null,[[7,12]])})))();case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 11:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"_handleServerNotification",value:function(e,t){var n=this._subscriptionCallbacksByServerSubscriptionId[e];void 0!==n&&n.forEach((function(e){try{e.apply(void 0,(0,c.Z)(t))}catch(e){console.error(e)}}))}},{key:"_wsOnAccountNotification",value:function(e){var t=mt(e,Zi),n=t.result,r=t.subscription;this._handleServerNotification(r,[n.value,n.context])}},{key:"_makeSubscription",value:function(e,t){var n=this,r=this._nextClientSubscriptionId++,a=ja([e.method,t]),i=this._subscriptionsByHash[a];return void 0===i?this._subscriptionsByHash[a]=(0,o.Z)((0,o.Z)({},e),{},{args:t,callbacks:new Set([e.callback]),state:"pending"}):i.callbacks.add(e.callback),this._subscriptionHashByClientSubscriptionId[r]=a,this._subscriptionDisposeFunctionsByClientSubscriptionId[r]=(0,l.Z)((0,d.Z)().mark((function t(){var i;return(0,d.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete n._subscriptionDisposeFunctionsByClientSubscriptionId[r],delete n._subscriptionHashByClientSubscriptionId[r],Yr(void 0!==(i=n._subscriptionsByHash[a]),"Could not find a `Subscription` when tearing down client subscription #".concat(r)),i.callbacks.delete(e.callback),t.next=7,n._updateSubscriptions();case 7:case"end":return t.stop()}}),t)}))),this._updateSubscriptions(),r}},{key:"onAccountChange",value:function(e,t,n){var r=this._buildArgs([e.toBase58()],n||this._commitment||"finalized","base64");return this._makeSubscription({callback:t,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},r)}},{key:"removeAccountChangeListener",value:(b=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"account change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"_wsOnProgramAccountNotification",value:function(e){var t=mt(e,Hi),n=t.result,r=t.subscription;this._handleServerNotification(r,[{accountId:n.value.pubkey,accountInfo:n.value.account},n.context])}},{key:"onProgramAccountChange",value:function(e,t,n,r){var a=this._buildArgs([e.toBase58()],n||this._commitment||"finalized","base64",r?{filters:r}:void 0);return this._makeSubscription({callback:t,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},a)}},{key:"removeProgramAccountChangeListener",value:(p=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"program account change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"onLogs",value:function(e,t,n){var r=this._buildArgs(["object"==typeof e?{mentions:[e.toString()]}:e],n||this._commitment||"finalized");return this._makeSubscription({callback:t,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},r)}},{key:"removeOnLogsListener",value:(f=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"logs");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"_wsOnLogsNotification",value:function(e){var t=mt(e,Ro),n=t.result,r=t.subscription;this._handleServerNotification(r,[n.value,n.context])}},{key:"_wsOnSlotNotification",value:function(e){var t=mt(e,qi),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onSlotChange",value:function(e){return this._makeSubscription({callback:e,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}},{key:"removeSlotChangeListener",value:(u=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"slot change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"_wsOnSlotUpdatesNotification",value:function(e){var t=mt(e,Ki),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onSlotUpdate",value:function(e){return this._makeSubscription({callback:e,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}},{key:"removeSlotUpdateListener",value:(i=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"slot update");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"_unsubscribeClientSubscription",value:(a=(0,l.Z)((0,d.Z)().mark((function e(t,n){var r;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this._subscriptionDisposeFunctionsByClientSubscriptionId[t])){e.next=6;break}return e.next=4,r();case 4:e.next=7;break;case 6:console.warn("Ignored unsubscribe request because an active subscription with id "+"`".concat(t,"` for '").concat(n,"' events ")+"could not be found.");case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"_buildArgs",value:function(e,t,n,r){var a=t||this._commitment;if(a||n||r){var i={};n&&(i.encoding=n),a&&(i.commitment=a),r&&(i=Object.assign(i,r)),e.push(i)}return e}},{key:"_buildArgsAtLeastConfirmed",value:function(e,t,n,r){var a=t||this._commitment;if(a&&!["confirmed","finalized"].includes(a))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(e,t,n,r)}},{key:"_wsOnSignatureNotification",value:function(e){var t=mt(e,Vi),n=t.result,r=t.subscription;"receivedSignature"!==n.value&&this._subscriptionsAutoDisposedByRpc.add(r),this._handleServerNotification(r,"receivedSignature"===n.value?[{type:"received"},n.context]:[{type:"status",result:n.value},n.context])}},{key:"onSignature",value:function(e,t,n){var r=this,a=this._buildArgs([e],n||this._commitment||"finalized"),i=this._makeSubscription({callback:function(e,n){if("status"===e.type){t(e.result,n);try{r.removeSignatureListener(i)}catch(e){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},a);return i}},{key:"onSignatureWithOptions",value:function(e,t,n){var a=this,i=(0,o.Z)((0,o.Z)({},n),{},{commitment:n&&n.commitment||this._commitment||"finalized"}),s=i.commitment,c=(0,r.Z)(i,Ar),u=this._buildArgs([e],s,void 0,c),f=this._makeSubscription({callback:function(e,n){t(e,n);try{a.removeSignatureListener(f)}catch(e){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},u);return f}},{key:"removeSignatureListener",value:(n=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"signature result");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_wsOnRootNotification",value:function(e){var t=mt(e,Ji),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onRootChange",value:function(e){return this._makeSubscription({callback:e,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}},{key:"removeRootChangeListener",value:(t=(0,l.Z)((0,d.Z)().mark((function e(t){return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"root change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),jo=function(){function e(t){(0,h.Z)(this,e),this._keypair=void 0,this._keypair=null!=t?t:xr()}return(0,y.Z)(e,[{key:"publicKey",get:function(){return new Nr(this._keypair.publicKey)}},{key:"secretKey",get:function(){return new Uint8Array(this._keypair.secretKey)}}],[{key:"generate",value:function(){return new e(xr())}},{key:"fromSecretKey",value:function(t,n){if(64!==t.byteLength)throw new Error("bad secret key size");var r=t.slice(32,64);if(!n||!n.skipValidation)for(var a=t.slice(0,32),i=_r(a),o=0;o<32;o++)if(r[o]!==i[o])throw new Error("provided secretKey is invalid");return new e({publicKey:r,secretKey:t})}},{key:"fromSeed",value:function(t){var n=_r(t),r=new Uint8Array(64);return r.set(t),r.set(n,32),new e({publicKey:n,secretKey:r})}}]),e}(),Uo=Object.freeze({CreateLookupTable:{index:0,layout:nt.n_([nt.Jq("instruction"),Ia("recentSlot"),nt.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:nt.n_([nt.Jq("instruction")])},ExtendLookupTable:{index:2,layout:nt.n_([nt.Jq("instruction"),Ia(),nt.A9(Qr(),nt.cv(nt.Jq(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:nt.n_([nt.Jq("instruction")])},CloseLookupTable:{index:4,layout:nt.n_([nt.Jq("instruction")])}}),Lo=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=nt.Jq("instruction").decode(e.data),r=0,a=Object.entries(Uo);r2?e.keys[2].pubkey:void 0,addresses:t.map((function(e){return new Nr(e)}))}}},{key:"decodeCloseLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,3),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,recipient:e.keys[2].pubkey}}},{key:"decodeFreezeLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}},{key:"decodeDeactivateLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}},{key:"checkProgramId",value:function(e){if(!e.equals(Zo.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}},{key:"checkKeysLength",value:function(e,t){if(e.length1?n-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:{},a=function(e,t,n){if(null==e)throw new Error('sign: expected valid message hash, not "'.concat(e,'"'));var r=Xn(e),a=cr(t),i=[dr(a),fr(r)];if(null!=n){!0===n&&(n=yr.randomBytes(Sn));var o=Xn(n);if(o.length!==Sn)throw new Error("sign: Expected ".concat(Sn," bytes of extra data"));i.push(o)}return{seed:Zn.apply(void 0,i),m:ur(r),d:a}}(e,t,r.extraEntropy),i=a.seed,o=a.m,s=a.d,c=new ar(32,In);for(c.reseedSync(i);!(n=sr(c.generateSync(),o,s,r.canonical));)c.reseedSync();return function(e,t){var n=e.sig,r=e.recovery,a=Object.assign({canonical:!0,der:!0},t),i=a.der,o=a.recovered,s=i?n.toDERRawBytes():n.toCompactRawBytes();return o?[s,r]:s}(n,r)}(e,t,{der:!1,recovered:!0})};yr.isValidPrivateKey;var Vo=nt.n_([nt.u8("numSignatures"),nt.KB("signatureOffset"),nt.u8("signatureInstructionIndex"),nt.KB("ethAddressOffset"),nt.u8("ethAddressInstructionIndex"),nt.KB("messageDataOffset"),nt.KB("messageDataSize"),nt.u8("messageInstructionIndex"),nt.Ik(20,"ethAddress"),nt.Ik(64,"signature"),nt.u8("recoveryId")]),Jo=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"publicKeyToEthAddress",value:function(e){Yr(64===e.length,"Public key must be ".concat(64," bytes but received ").concat(e.length," bytes"));try{return m.Buffer.from(fn(Cr(e))).slice(-20)}catch(e){throw new Error("Error constructing Ethereum address: ".concat(e))}}},{key:"createInstructionWithPublicKey",value:function(t){var n=t.publicKey,r=t.message,a=t.signature,i=t.recoveryId,o=t.instructionIndex;return e.createInstructionWithEthAddress({ethAddress:e.publicKeyToEthAddress(n),message:r,signature:a,recoveryId:i,instructionIndex:o})}},{key:"createInstructionWithEthAddress",value:function(t){var n,r=t.ethAddress,a=t.message,i=t.signature,o=t.recoveryId,s=t.instructionIndex,c=void 0===s?0:s;Yr(20===(n="string"==typeof r?r.startsWith("0x")?m.Buffer.from(r.substr(2),"hex"):m.Buffer.from(r,"hex"):r).length,"Address must be ".concat(20," bytes but received ").concat(n.length," bytes"));var u=12+n.length,f=u+i.length+1,d=m.Buffer.alloc(Vo.span+a.length);return Vo.encode({numSignatures:1,signatureOffset:u,signatureInstructionIndex:c,ethAddressOffset:12,ethAddressInstructionIndex:c,messageDataOffset:f,messageDataSize:a.length,messageInstructionIndex:c,signature:Cr(i),ethAddress:Cr(n),recoveryId:o},d),d.fill(Cr(a),Vo.span),new aa({keys:[],programId:e.programId,data:d})}},{key:"createInstructionWithPrivateKey",value:function(e){var t=e.privateKey,n=e.message,r=e.instructionIndex;Yr(32===t.length,"Private key must be ".concat(32," bytes but received ").concat(t.length," bytes"));try{var a=Cr(t),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Dn.fromPrivateKey(e).toRawBytes(t)}(a,!1).slice(1),o=m.Buffer.from(fn(Cr(n))),c=Ko(o,a),u=(0,s.Z)(c,2),f=u[0],d=u[1];return this.createInstructionWithPublicKey({publicKey:i,message:n,signature:f,recoveryId:d,instructionIndex:r})}catch(e){throw new Error("Error creating instruction; ".concat(e))}}}]),e}();Jo.programId=new Nr("KeccakSecp256k11111111111111111111111111111");var Go=new Nr("StakeConfig11111111111111111111111111111111"),Wo=(0,y.Z)((function e(t,n){(0,h.Z)(this,e),this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=n})),Yo=(0,y.Z)((function e(t,n,r){(0,h.Z)(this,e),this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=n,this.custodian=r}));Yo.default=new Yo(0,0,Nr.default);var Xo=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=nt.Jq("instruction").decode(e.data),r=0,a=Object.entries($o);r3&&(a.custodianPubkey=e.keys[3].pubkey),a}},{key:"decodeAuthorizeWithSeed",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);var t=wa($o.AuthorizeWithSeed,e.data),n=t.newAuthorized,r=t.stakeAuthorizationType,a=t.authoritySeed,i=t.authorityOwner,o={stakePubkey:e.keys[0].pubkey,authorityBase:e.keys[1].pubkey,authoritySeed:a,authorityOwner:new Nr(i),newAuthorizedPubkey:new Nr(n),stakeAuthorizationType:{index:r}};return e.keys.length>3&&(o.custodianPubkey=e.keys[3].pubkey),o}},{key:"decodeSplit",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);var t=wa($o.Split,e.data).lamports;return{stakePubkey:e.keys[0].pubkey,splitStakePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[2].pubkey,lamports:t}}},{key:"decodeMerge",value:function(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),wa($o.Merge,e.data),{stakePubkey:e.keys[0].pubkey,sourceStakePubKey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey}}},{key:"decodeWithdraw",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,5);var t=wa($o.Withdraw,e.data).lamports,n={stakePubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey,lamports:t};return e.keys.length>5&&(n.custodianPubkey=e.keys[5].pubkey),n}},{key:"decodeDeactivate",value:function(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),wa($o.Deactivate,e.data),{stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey}}},{key:"checkProgramId",value:function(e){if(!e.equals(ts.programId))throw new Error("invalid instruction; programId is not StakeProgram")}},{key:"checkKeyLength",value:function(e,t){if(e.length0&&void 0!==arguments[0]?arguments[0]:"authorized";return nt.n_([Qr("staker"),Qr("withdrawer")],e)}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lockup";return nt.n_([nt.gM("unixTimestamp"),nt.gM("epoch"),Qr("custodian")],e)}()])},Authorize:{index:1,layout:nt.n_([nt.Jq("instruction"),Qr("newAuthorized"),nt.Jq("stakeAuthorizationType")])},Delegate:{index:2,layout:nt.n_([nt.Jq("instruction")])},Split:{index:3,layout:nt.n_([nt.Jq("instruction"),nt.gM("lamports")])},Withdraw:{index:4,layout:nt.n_([nt.Jq("instruction"),nt.gM("lamports")])},Deactivate:{index:5,layout:nt.n_([nt.Jq("instruction")])},Merge:{index:7,layout:nt.n_([nt.Jq("instruction")])},AuthorizeWithSeed:{index:8,layout:nt.n_([nt.Jq("instruction"),Qr("newAuthorized"),nt.Jq("stakeAuthorizationType"),Vr("authoritySeed"),Qr("authorityOwner")])}}),es=Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),ts=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"initialize",value:function(e){var t=e.stakePubkey,n=e.authorized,r=e.lockup||Yo.default,a=Aa($o.Initialize,{authorized:{staker:Cr(n.staker.toBuffer()),withdrawer:Cr(n.withdrawer.toBuffer())},lockup:{unixTimestamp:r.unixTimestamp,epoch:r.epoch,custodian:Cr(r.custodian.toBuffer())}}),i={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:la,isSigner:!1,isWritable:!1}],programId:this.programId,data:a};return new aa(i)}},{key:"createAccountWithSeed",value:function(e){var t=new ia;t.add(Ta.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:this.space,programId:this.programId}));var n=e.stakePubkey,r=e.authorized,a=e.lockup;return t.add(this.initialize({stakePubkey:n,authorized:r,lockup:a}))}},{key:"createAccount",value:function(e){var t=new ia;t.add(Ta.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,lamports:e.lamports,space:this.space,programId:this.programId}));var n=e.stakePubkey,r=e.authorized,a=e.lockup;return t.add(this.initialize({stakePubkey:n,authorized:r,lockup:a}))}},{key:"delegate",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.votePubkey,a=Aa($o.Delegate);return(new ia).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:ya,isSigner:!1,isWritable:!1},{pubkey:Go,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}},{key:"authorize",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.newAuthorizedPubkey,a=e.stakeAuthorizationType,i=e.custodianPubkey,o=Aa($o.Authorize,{newAuthorized:Cr(r.toBuffer()),stakeAuthorizationType:a.index}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return i&&s.push({pubkey:i,isSigner:!1,isWritable:!1}),(new ia).add({keys:s,programId:this.programId,data:o})}},{key:"authorizeWithSeed",value:function(e){var t=e.stakePubkey,n=e.authorityBase,r=e.authoritySeed,a=e.authorityOwner,i=e.newAuthorizedPubkey,o=e.stakeAuthorizationType,s=e.custodianPubkey,c=Aa($o.AuthorizeWithSeed,{newAuthorized:Cr(i.toBuffer()),stakeAuthorizationType:o.index,authoritySeed:r,authorityOwner:Cr(a.toBuffer())}),u=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:ca,isSigner:!1,isWritable:!1}];return s&&u.push({pubkey:s,isSigner:!1,isWritable:!1}),(new ia).add({keys:u,programId:this.programId,data:c})}},{key:"splitInstruction",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.splitStakePubkey,a=e.lamports,i=Aa($o.Split,{lamports:a});return new aa({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"split",value:function(e){var t=new ia;return t.add(Ta.createAccount({fromPubkey:e.authorizedPubkey,newAccountPubkey:e.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),t.add(this.splitInstruction(e))}},{key:"splitWithSeed",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.splitStakePubkey,a=e.basePubkey,i=e.seed,o=e.lamports,s=new ia;return s.add(Ta.allocate({accountPubkey:r,basePubkey:a,seed:i,space:this.space,programId:this.programId})),s.add(this.splitInstruction({stakePubkey:t,authorizedPubkey:n,splitStakePubkey:r,lamports:o}))}},{key:"merge",value:function(e){var t=e.stakePubkey,n=e.sourceStakePubKey,r=e.authorizedPubkey,a=Aa($o.Merge);return(new ia).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:ya,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}},{key:"withdraw",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.toPubkey,a=e.lamports,i=e.custodianPubkey,o=Aa($o.Withdraw,{lamports:a}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:ya,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return i&&s.push({pubkey:i,isSigner:!1,isWritable:!1}),(new ia).add({keys:s,programId:this.programId,data:o})}},{key:"deactivate",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=Aa($o.Deactivate);return(new ia).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}}]),e}();ts.programId=new Nr("Stake11111111111111111111111111111111111111"),ts.space=200;var ns=(0,y.Z)((function e(t,n,r,a){(0,h.Z)(this,e),this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=n,this.authorizedWithdrawer=r,this.commission=a})),rs=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=nt.Jq("instruction").decode(e.data),r=0,a=Object.entries(as);r0&&void 0!==arguments[0]?arguments[0]:"voteInit";return nt.n_([Qr("nodePubkey"),Qr("authorizedVoter"),Qr("authorizedWithdrawer"),nt.u8("commission")],e)}()])},Authorize:{index:1,layout:nt.n_([nt.Jq("instruction"),Qr("newAuthorized"),nt.Jq("voteAuthorizationType")])},Withdraw:{index:3,layout:nt.n_([nt.Jq("instruction"),nt.gM("lamports")])},AuthorizeWithSeed:{index:10,layout:nt.n_([nt.Jq("instruction"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"voteAuthorizeWithSeedArgs";return nt.n_([nt.Jq("voteAuthorizationType"),Qr("currentAuthorityDerivedKeyOwnerPubkey"),Vr("currentAuthorityDerivedKeySeed"),Qr("newAuthorized")],e)}()])}}),is=Object.freeze({Voter:{index:0},Withdrawer:{index:1}}),os=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"initializeAccount",value:function(e){var t=e.votePubkey,n=e.nodePubkey,r=e.voteInit,a=Aa(as.InitializeAccount,{voteInit:{nodePubkey:Cr(r.nodePubkey.toBuffer()),authorizedVoter:Cr(r.authorizedVoter.toBuffer()),authorizedWithdrawer:Cr(r.authorizedWithdrawer.toBuffer()),commission:r.commission}}),i={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:la,isSigner:!1,isWritable:!1},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:a};return new aa(i)}},{key:"createAccount",value:function(e){var t=new ia;return t.add(Ta.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.votePubkey,lamports:e.lamports,space:this.space,programId:this.programId})),t.add(this.initializeAccount({votePubkey:e.votePubkey,nodePubkey:e.voteInit.nodePubkey,voteInit:e.voteInit}))}},{key:"authorize",value:function(e){var t=e.votePubkey,n=e.authorizedPubkey,r=e.newAuthorizedPubkey,a=e.voteAuthorizationType,i=Aa(as.Authorize,{newAuthorized:Cr(r.toBuffer()),voteAuthorizationType:a.index}),o=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return(new ia).add({keys:o,programId:this.programId,data:i})}},{key:"authorizeWithSeed",value:function(e){var t=e.currentAuthorityDerivedKeyBasePubkey,n=e.currentAuthorityDerivedKeyOwnerPubkey,r=e.currentAuthorityDerivedKeySeed,a=e.newAuthorizedPubkey,i=e.voteAuthorizationType,o=e.votePubkey,s=Aa(as.AuthorizeWithSeed,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:Cr(n.toBuffer()),currentAuthorityDerivedKeySeed:r,newAuthorized:Cr(a.toBuffer()),voteAuthorizationType:i.index}}),c=[{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:t,isSigner:!0,isWritable:!1}];return(new ia).add({keys:c,programId:this.programId,data:s})}},{key:"withdraw",value:function(e){var t=e.votePubkey,n=e.authorizedWithdrawerPubkey,r=e.lamports,a=e.toPubkey,i=Aa(as.Withdraw,{lamports:r}),o=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return(new ia).add({keys:o,programId:this.programId,data:i})}},{key:"safeWithdraw",value:function(t,n,r){if(t.lamports>n-r)throw new Error("Withdraw will leave vote account with insuffcient funds.");return e.withdraw(t)}}]),e}();os.programId=new Nr("Vote111111111111111111111111111111111111111"),os.space=3731;var ss=new Nr("Va1idator1nfo111111111111111111111111111111"),cs=Pt({name:Tt(),website:Et(Tt()),details:Et(Tt()),keybaseUsername:Et(Tt())}),us=function(){function e(t,n){(0,h.Z)(this,e),this.key=void 0,this.info=void 0,this.key=t,this.info=n}return(0,y.Z)(e,null,[{key:"fromConfigData",value:function(t){var n=(0,c.Z)(t);if(2!==Gr(n))return null;for(var r=[],a=0;a<2;a++){var i=new Nr(n.slice(0,Br)),o=1===(n=n.slice(Br)).slice(0,1)[0];n=n.slice(1),r.push({publicKey:i,isSigner:o})}if(r[0].publicKey.equals(ss)&&r[1].isSigner){var s=Vr().decode(m.Buffer.from(n)),u=JSON.parse(s);return yt(u,cs),new e(r[1].publicKey,u)}return null}}]),e}(),fs=new Nr("Vote111111111111111111111111111111111111111"),ds=nt.n_([Qr("nodePubkey"),Qr("authorizedWithdrawer"),nt.u8("commission"),nt._O(),nt.A9(nt.n_([nt._O("slot"),nt.Jq("confirmationCount")]),nt.cv(nt.Jq(),-8),"votes"),nt.u8("rootSlotValid"),nt._O("rootSlot"),nt._O(),nt.A9(nt.n_([nt._O("epoch"),Qr("authorizedVoter")]),nt.cv(nt.Jq(),-8),"authorizedVoters"),nt.n_([nt.A9(nt.n_([Qr("authorizedPubkey"),nt._O("epochOfLastAuthorizedSwitch"),nt._O("targetEpoch")]),32,"buf"),nt._O("idx"),nt.u8("isEmpty")],"priorVoters"),nt._O(),nt.A9(nt.n_([nt._O("epoch"),nt._O("credits"),nt._O("prevCredits")]),nt.cv(nt.Jq(),-8),"epochCredits"),nt.n_([nt._O("slot"),nt._O("timestamp")],"lastTimestamp")]),ls=function(){function e(t){(0,h.Z)(this,e),this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}return(0,y.Z)(e,null,[{key:"fromAccountData",value:function(t){var n,r,a,i=ds.decode(Cr(t),4),o=i.rootSlot;return i.rootSlotValid||(o=null),new e({nodePubkey:new Nr(i.nodePubkey),authorizedWithdrawer:new Nr(i.authorizedWithdrawer),commission:i.commission,votes:i.votes,rootSlot:o,authorizedVoters:i.authorizedVoters.map(ps),priorVoters:(n=i.priorVoters,r=n.buf,a=n.idx,n.isEmpty?[]:[].concat((0,c.Z)(r.slice(a+1).map(bs)),(0,c.Z)(r.slice(0,a).map(bs)))),epochCredits:i.epochCredits,lastTimestamp:i.lastTimestamp})}}]),e}();function ps(e){var t=e.authorizedVoter;return{epoch:e.epoch,authorizedVoter:new Nr(t)}}function bs(e){var t=e.authorizedPubkey,n=e.epochOfLastAuthorizedSwitch,r=e.targetEpoch;return{authorizedPubkey:new Nr(t),epochOfLastAuthorizedSwitch:n,targetEpoch:r}}var hs={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function ys(e,t){var n=!1===t?"http":"https";if(!e)return hs[n].devnet;var r=hs[n][e];if(!r)throw new Error("Unknown ".concat(n," cluster: ").concat(e));return r}function ms(e,t,n,r){return vs.apply(this,arguments)}function vs(){return vs=(0,l.Z)((0,d.Z)().mark((function e(t,n,r,a){var i,o,s,c,u,f,l;return(0,d.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r&&Object.prototype.hasOwnProperty.call(r,"lastValidBlockHeight")||r&&Object.prototype.hasOwnProperty.call(r,"nonceValue")?(i=r,o=a):o=r,s=o&&{skipPreflight:o.skipPreflight,preflightCommitment:o.preflightCommitment||o.commitment,minContextSlot:o.minContextSlot},e.next=4,t.sendRawTransaction(n,s);case 4:return c=e.sent,u=o&&o.commitment,f=i?t.confirmTransaction(i,u):t.confirmTransaction(c,u),e.next=9,f;case 9:if(!(l=e.sent.value).err){e.next=12;break}throw new Error("Raw transaction ".concat(c," failed (").concat(JSON.stringify(l),")"));case 12:return e.abrupt("return",c);case 13:case"end":return e.stop()}}),e)}))),vs.apply(this,arguments)}var gs=1e9},64169:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return L}});var r,a=n(68786),i=n.n(a),o=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(i()),c=s,u=n(24611),f=n(19677),d=n(53755),l=n(23680),p=n(47061),b=n(59900),h=n(14771),y=n(24269),m=n(38114),v=n(73234),g=n(82481),A=n.n(g),w=function(e){(0,y.Z)(n,e);var t=(0,m.Z)(n);function n(e,r){var a,i,o;if((0,p.Z)(this,n),a=t.call(this),i=(0,h.Z)(a),a._handleMessage=function(e){if(a._injectedProvider&&e.source===window||e.origin===a._providerUrl.origin&&e.source===a._popup)if("connected"===e.data.method){var t=new v.PublicKey(e.data.params.publicKey);a._publicKey&&a._publicKey.equals(t)||(a._publicKey&&!a._publicKey.equals(t)&&a._handleDisconnect(),a._publicKey=t,a._autoApprove=!!e.data.params.autoApprove,a.emit("connect",a._publicKey))}else if("disconnected"===e.data.method)a._handleDisconnect();else if((e.data.result||e.data.error)&&a._responsePromises.has(e.data.id)){var n=a._responsePromises.get(e.data.id),r=(0,l.Z)(n,2),i=r[0],o=r[1];e.data.result?i(e.data.result):o(new Error(e.data.error))}},a._handleConnect=function(){return a._handlerAdded||(a._handlerAdded=!0,window.addEventListener("message",a._handleMessage),window.addEventListener("beforeunload",a.disconnect)),a._injectedProvider?new Promise((function(e){a._sendRequest("connect",{}),e()})):(window.name="parent",a._popup=window.open(a._providerUrl.toString(),"_blank","location,resizable,width=460,height=675"),new Promise((function(e){a.once("connect",e)})))},a._handleDisconnect=function(){a._handlerAdded&&(a._handlerAdded=!1,window.removeEventListener("message",a._handleMessage),window.removeEventListener("beforeunload",a.disconnect)),a._publicKey&&(a._publicKey=null,a.emit("disconnect")),a._responsePromises.forEach((function(e,t){var n=(0,l.Z)(e,2),r=(n[0],n[1]);a._responsePromises.delete(t),r("Wallet disconnected")}))},a._sendRequest=function(){var e=(0,d.Z)((0,u.Z)().mark((function e(t,n){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("connect"===t||i.connected){e.next=2;break}throw new Error("Wallet not connected");case 2:return r=i._nextRequestId,++i._nextRequestId,e.abrupt("return",new Promise((function(e,a){i._responsePromises.set(r,[e,a]),i._injectedProvider?i._injectedProvider.postMessage({jsonrpc:"2.0",id:r,method:t,params:(0,f.Z)({network:i._network},n)}):(i._popup.postMessage({jsonrpc:"2.0",id:r,method:t,params:n},i._providerUrl.origin),i.autoApprove||i._popup.focus())})));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),a.connect=function(){return a._popup&&a._popup.close(),a._handleConnect()},a.disconnect=(0,d.Z)((0,u.Z)().mark((function e(){return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i._injectedProvider){e.next=3;break}return e.next=3,i._sendRequest("disconnect",{});case 3:i._popup&&i._popup.close(),i._handleDisconnect();case 5:case"end":return e.stop()}}),e)}))),a.sign=function(){var e=(0,d.Z)((0,u.Z)().mark((function e(t,n){var r,a,o;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof Uint8Array){e.next=2;break}throw new Error("Data must be an instance of Uint8Array");case 2:return e.next=4,i._sendRequest("sign",{data:t,display:n});case 4:return r=e.sent,a=A().decode(r.signature),o=new v.PublicKey(r.publicKey),e.abrupt("return",{signature:a,publicKey:o});case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),a.signTransaction=function(){var e=(0,d.Z)((0,u.Z)().mark((function e(t){var n,r,a;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i._sendRequest("signTransaction",{message:A().encode(t.serializeMessage())});case 2:return n=e.sent,r=A().decode(n.signature),a=new v.PublicKey(n.publicKey),t.addSignature(a,r),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a.signAllTransactions=function(){var e=(0,d.Z)((0,u.Z)().mark((function e(t){var n,r,a;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i._sendRequest("signAllTransactions",{messages:t.map((function(e){return A().encode(e.serializeMessage())}))});case 2:return n=e.sent,r=n.signatures.map((function(e){return A().decode(e)})),a=new v.PublicKey(n.publicKey),t=t.map((function(e,t){return e.addSignature(a,r[t]),e})),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),function(e){return"object"==typeof e&&null!==e}(o=e)&&function(e){return"function"==typeof e}(o.postMessage))a._injectedProvider=e;else{if(!function(e){return"string"==typeof e}(e))throw new Error("provider parameter must be an injected provider or a URL string.");a._providerUrl=new URL(e),a._providerUrl.hash=new URLSearchParams({origin:window.location.origin,network:r}).toString()}return a._network=r,a._publicKey=null,a._autoApprove=!1,a._popup=null,a._handlerAdded=!1,a._nextRequestId=1,a._responsePromises=new Map,a}return(0,b.Z)(n,[{key:"publicKey",get:function(){return this._publicKey}},{key:"connected",get:function(){return null!==this._publicKey}},{key:"autoApprove",get:function(){return this._autoApprove}}]),n}(i()),x=w,_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},S=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),a=r.next();!a.done;a=r.next()){var i=a.value;i.parentElement&&i.remove()}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},r._injectElement=function(){r._removeElement(),r._removeDanglingElements();var e="".concat(t.IFRAME_URL,"?cluster=").concat(encodeURIComponent(r._network),"&origin=").concat(encodeURIComponent(window.location.origin),"&version=1"),n=r._getPreferredAdapter();n&&(e+="&adapter=".concat(encodeURIComponent(n))),r._provider&&(e+="&provider=".concat(encodeURIComponent(r._provider))),r._element=document.createElement("div"),r._element.className="solflare-wallet-adapter-iframe",r._element.innerHTML="\n \n "),document.body.appendChild(r._element),r._iframe=r._element.querySelector("iframe"),window.fromFlutter=r._handleMobileMessage,r._flutterHandlerInterval=setInterval((function(){window.fromFlutter=r._handleMobileMessage}),100),window.addEventListener("message",r._handleMessage,!1)},r._collapseIframe=function(){r._iframe&&(r._iframe.style.top="",r._iframe.style.right="",r._iframe.style.height="2px",r._iframe.style.width="2px")},r._expandIframe=function(){r._iframe&&(r._iframe.style.top="0px",r._iframe.style.bottom="0px",r._iframe.style.left="0px",r._iframe.style.right="0px",r._iframe.style.width="100%",r._iframe.style.height="100%")},r._getPreferredAdapter=function(){return localStorage&&localStorage.getItem("solflarePreferredWalletAdapter")||null},r._setPreferredAdapter=function(e){localStorage&&e&&localStorage.setItem("solflarePreferredWalletAdapter",e)},r._clearPreferredAdapter=function(){localStorage&&localStorage.removeItem("solflarePreferredWalletAdapter")},r._webConnected=function(){r._connectHandler&&(r._connectHandler.resolve(),r._connectHandler=null),r.emit("connect",r.publicKey)},r._webDisconnected=function(){r._connectHandler&&(r._connectHandler.reject(),r._connectHandler=null),r._disconnected(),r.emit("disconnect")},r._disconnected=function(){window.removeEventListener("message",r._handleMessage,!1),r._removeElement(),r._clearPreferredAdapter(),r._adapterInstance=null},r._handleMobileMessage=function(e){var t,n;null===(n=null===(t=r._iframe)||void 0===t?void 0:t.contentWindow)||void 0===n||n.postMessage({channel:"solflareMobileToIframe",data:e},"*")},(null==n?void 0:n.network)&&(r._network=null==n?void 0:n.network),(null==n?void 0:n.provider)&&(r._provider=null==n?void 0:n.provider),r}return D(t,e),Object.defineProperty(t.prototype,"publicKey",{get:function(){var e;return(null===(e=this._adapterInstance)||void 0===e?void 0:e.publicKey)||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConnected",{get:function(){var e;return!!(null===(e=this._adapterInstance)||void 0===e?void 0:e.connected)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"connected",{get:function(){return this.isConnected},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoApprove",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.connect=function(){return j(this,void 0,void 0,(function(){var e=this;return U(this,(function(t){switch(t.label){case 0:return this.connected?[2]:(this._injectElement(),[4,new Promise((function(t,n){e._connectHandler={resolve:t,reject:n}}))]);case 1:return t.sent(),[2]}}))}))},t.prototype.disconnect=function(){return j(this,void 0,void 0,(function(){return U(this,(function(e){switch(e.label){case 0:return this._adapterInstance?[4,this._adapterInstance.disconnect()]:[2];case 1:return e.sent(),this._disconnected(),this.emit("disconnect"),[2]}}))}))},t.prototype.signTransaction=function(e){return j(this,void 0,void 0,(function(){var t,n,r,a,i=this;return U(this,(function(o){switch(o.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return t=R(e)?e.serializeMessage():e.message.serialize(),[4,this._adapterInstance.signTransaction(t)];case 1:return n=o.sent(),R(e)?e.addSignature(this.publicKey,N.from(n)):(r=e.message.staticAccountKeys.slice(0,e.message.header.numRequiredSignatures),(a=r.findIndex((function(e){return e.equals(i.publicKey)})))>=0&&(e.signatures[a]=n)),[2,e]}}))}))},t.prototype.signAllTransactions=function(e){return j(this,void 0,void 0,(function(){var t,n,r,a,i,o,s=this;return U(this,(function(c){switch(c.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return t=e.map((function(e){return R(e)?e.serializeMessage():e.message.serialize()})),[4,this._adapterInstance.signAllTransactions(t)];case 1:for(n=c.sent(),r=0;r=0&&(a.signatures[o]=n[r]));return[2,e]}}))}))},t.prototype.signMessage=function(e,t){return void 0===t&&(t="utf8"),j(this,void 0,void 0,(function(){return U(this,(function(n){switch(n.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return[4,this._adapterInstance.signMessage(e,t)];case 1:return[2,n.sent()]}}))}))},t.prototype.sign=function(e,t){return void 0===t&&(t="utf8"),j(this,void 0,void 0,(function(){return U(this,(function(n){switch(n.label){case 0:return[4,this.signMessage(e,t)];case 1:return[2,n.sent()]}}))}))},t.prototype.detectWallet=function(e){var t;return void 0===e&&(e=10),j(this,void 0,void 0,(function(){return U(this,(function(n){return window.SolflareApp||(null===(t=window.solflare)||void 0===t?void 0:t.isSolflare)?[2,!0]:[2,new Promise((function(t){var n,r;n=setInterval((function(){var e;(window.SolflareApp||(null===(e=window.solflare)||void 0===e?void 0:e.isSolflare))&&(clearInterval(n),clearTimeout(r),t(!0))}),500),r=setTimeout((function(){clearInterval(n),t(!1)}),1e3*e)}))]}))}))},t.IFRAME_URL="https://connect.solflare.com/",t}(i())},15575:function(e,t,n){"use strict";n.r(t),n.d(t,{addHexPrefix:function(){return le},arrayToBinary:function(){return I},arrayToBuffer:function(){return x},arrayToHex:function(){return _},arrayToNumber:function(){return S},arrayToUtf8:function(){return k},binaryToArray:function(){return z},binaryToBuffer:function(){return H},binaryToHex:function(){return q},binaryToNumber:function(){return K},binaryToUtf8:function(){return Q},bufferToArray:function(){return m},bufferToBinary:function(){return w},bufferToHex:function(){return v},bufferToNumber:function(){return A},bufferToUtf8:function(){return g},calcByteLength:function(){return ae},concatArrays:function(){return te},concatBuffers:function(){return ee},getEncoding:function(){return $},getType:function(){return X},hexToArray:function(){return C},hexToBinary:function(){return P},hexToBuffer:function(){return E},hexToNumber:function(){return O},hexToUtf8:function(){return T},isArrayBuffer:function(){return Y},isBinaryString:function(){return V},isBuffer:function(){return G},isHexString:function(){return J},isTypedArray:function(){return W},numberToArray:function(){return U},numberToBinary:function(){return F},numberToBuffer:function(){return j},numberToHex:function(){return L},numberToUtf8:function(){return Z},padLeft:function(){return ue},padRight:function(){return fe},removeHexLeadingZeros:function(){return be},removeHexPrefix:function(){return de},sanitizeBytes:function(){return ce},sanitizeHex:function(){return pe},splitBytes:function(){return ie},swapBytes:function(){return oe},swapHex:function(){return se},trimLeft:function(){return ne},trimRight:function(){return re},utf8ToArray:function(){return B},utf8ToBinary:function(){return D},utf8ToBuffer:function(){return M},utf8ToHex:function(){return R},utf8ToNumber:function(){return N}});var r=n(19961),a=n(76124),i=n.n(a),o=n(99032),s=n.n(o),c=n(79061).Buffer,u="hex",f="utf8",d="binary",l="buffer",p="array",b="typed-array",h="array-buffer",y="0";function m(e){return new Uint8Array(e)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.toString(u);return t?le(n):n}function g(e){return e.toString(f)}function A(e){return e.readUIntBE(0,e.length)}function w(e){return I(m(e))}function x(e){return s()(e)}function _(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return v(x(e),t)}function k(e){return g(x(e))}function S(e){return A(x(e))}function I(e){return Array.from(e).map(F).join("")}function E(e){return c.from(de(e),u)}function C(e){return m(E(e))}function T(e){return g(E(e))}function O(e){return S(C(e))}function P(e){return I(C(e))}function M(e){return c.from(e,f)}function B(e){return m(M(e))}function R(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return v(M(e),t)}function N(e){var t=parseInt(e,10);return function(e,t){if(!e)throw new Error("Number can only safely store up to 53 bits")}(!(void 0===t)),t}function D(e){return I(B(e))}function j(e){return H(F(e))}function U(e){return z(F(e))}function L(e,t){return q(F(e),t)}function Z(e){return"".concat(e)}function F(e){return ce((e>>>0).toString(2))}function H(e){return x(z(e))}function z(e){return new Uint8Array(ie(e).map((function(e){return parseInt(e,2)})))}function q(e,t){return _(z(e),t)}function Q(e){return k(z(e))}function K(e){return S(z(e))}function V(e){return!("string"!=typeof e||!new RegExp(/^[01]+$/).test(e))&&e.length%8==0}function J(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function G(e){return c.isBuffer(e)}function W(e){return i().strict(e)&&!G(e)}function Y(e){return!W(e)&&!G(e)&&void 0!==e.byteLength}function X(e){return G(e)?l:W(e)?b:Y(e)?h:Array.isArray(e)?p:typeof e}function $(e){return V(e)?d:J(e)?u:f}function ee(){for(var e=arguments.length,t=new Array(e),n=0;n0&&(e=e.slice(n)),e}function re(e,t){return e.slice(0,t)}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=e%t;return n?(e-n)/t*t+t:e}function ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=ce(e).match(new RegExp(".{".concat(t,"}"),"gi"));return Array.from(n||[])}function oe(e){return ie(e).map(he).join("")}function se(e){return q(oe(P(e)))}function ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return ue(e,ae(e.length,t),n)}function ue(e,t){return ye(e,t,!0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:y)}function fe(e,t){return ye(e,t,!1,arguments.length>2&&void 0!==arguments[2]?arguments[2]:y)}function de(e){return e.replace(/^0x/,"")}function le(e){return e.startsWith("0x")?e:"0x".concat(e)}function pe(e){return(e=ce(e=de(e),2))&&(e=le(e)),e}function be(e){var t=e.startsWith("0x");return e=(e=de(e)).startsWith(y)?e.substring(1):e,t?le(e):e}function he(e){return e.split("").reverse().join("")}function ye(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:y,a=t-e.length,i=e;if(a>0){var o=r.repeat(a);i=n?o+e:e+o}return i}},68896:function(e,t,n){"use strict";function r(){return(null===n.g||void 0===n.g?void 0:n.g.crypto)||(null===n.g||void 0===n.g?void 0:n.g.msCrypto)||{}}function a(){var e=r();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=r,t.getSubtleCrypto=a,t.isBrowserCryptoAvailable=function(){return!!r()&&!!a()}},93621:function(e,t,n){"use strict";var r=n(87973);function a(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function i(){return void 0!==r&&void 0!==r.versions&&void 0!==r.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=a,t.isNode=i,t.isBrowser=function(){return!a()&&!i()}},51102:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(19795);r.__exportStar(n(68896),t),r.__exportStar(n(93621),t)},19795:function(e,t,n){"use strict";n.r(t),n.d(t,{__assign:function(){return i},__asyncDelegator:function(){return A},__asyncGenerator:function(){return g},__asyncValues:function(){return w},__await:function(){return v},__awaiter:function(){return f},__classPrivateFieldGet:function(){return S},__classPrivateFieldSet:function(){return I},__createBinding:function(){return l},__decorate:function(){return s},__exportStar:function(){return p},__extends:function(){return a},__generator:function(){return d},__importDefault:function(){return k},__importStar:function(){return _},__makeTemplateObject:function(){return x},__metadata:function(){return u},__param:function(){return c},__read:function(){return h},__rest:function(){return o},__spread:function(){return y},__spreadArrays:function(){return m},__values:function(){return b}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function a(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function y(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof v?Promise.resolve(n.value.v).then(c,u):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function f(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function A(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:a?a(t):t}:a}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=b(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,a){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,a,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function I(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},39236:function(e,t,n){"use strict";n.d(t,{IJsonRpcProvider:function(){return a.x0}});var r=n(36506);n.o(r,"IJsonRpcProvider")&&n.d(t,{IJsonRpcProvider:function(){return r.IJsonRpcProvider}}),n.o(r,"isHttpUrl")&&n.d(t,{isHttpUrl:function(){return r.isHttpUrl}}),n.o(r,"isJsonRpcError")&&n.d(t,{isJsonRpcError:function(){return r.isJsonRpcError}}),n.o(r,"isJsonRpcResponse")&&n.d(t,{isJsonRpcResponse:function(){return r.isJsonRpcResponse}});var a=n(77332),i=n(64783);n.o(i,"isHttpUrl")&&n.d(t,{isHttpUrl:function(){return i.isHttpUrl}}),n.o(i,"isJsonRpcError")&&n.d(t,{isJsonRpcError:function(){return i.isJsonRpcError}}),n.o(i,"isJsonRpcResponse")&&n.d(t,{isJsonRpcResponse:function(){return i.isJsonRpcResponse}})},36506:function(){},77332:function(e,t,n){"use strict";n.d(t,{XR:function(){return c},x0:function(){return u}});var r=n(59900),a=n(47061),i=n(24269),o=n(38114),s=(0,r.Z)((function e(){(0,a.Z)(this,e)})),c=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(e){return(0,a.Z)(this,n),t.call(this)}return(0,r.Z)(n)}(s),u=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(e){return(0,a.Z)(this,n),t.call(this)}return(0,r.Z)(n)}(function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this)}return(0,r.Z)(n)}(s))},64783:function(){},9105:function(e,t,n){"use strict";n.d(t,{CA:function(){return o},JV:function(){return u},O4:function(){return i},dQ:function(){return s},xK:function(){return c}});var r,a=n(20240),i="INTERNAL_ERROR",o="SERVER_ERROR",s=[-32700,-32600,-32601,-32602,-32603],c=(r={},(0,a.Z)(r,"PARSE_ERROR",{code:-32700,message:"Parse error"}),(0,a.Z)(r,"INVALID_REQUEST",{code:-32600,message:"Invalid Request"}),(0,a.Z)(r,"METHOD_NOT_FOUND",{code:-32601,message:"Method not found"}),(0,a.Z)(r,"INVALID_PARAMS",{code:-32602,message:"Invalid params"}),(0,a.Z)(r,i,{code:-32603,message:"Internal error"}),(0,a.Z)(r,o,{code:-32e3,message:"Server error"}),r),u=o},5963:function(e,t,n){"use strict";var r=n(51102);n.o(r,"IJsonRpcProvider")&&n.d(t,{IJsonRpcProvider:function(){return r.IJsonRpcProvider}}),n.o(r,"formatJsonRpcError")&&n.d(t,{formatJsonRpcError:function(){return r.formatJsonRpcError}}),n.o(r,"formatJsonRpcRequest")&&n.d(t,{formatJsonRpcRequest:function(){return r.formatJsonRpcRequest}}),n.o(r,"getBigIntRpcId")&&n.d(t,{getBigIntRpcId:function(){return r.getBigIntRpcId}}),n.o(r,"isHttpUrl")&&n.d(t,{isHttpUrl:function(){return r.isHttpUrl}}),n.o(r,"isJsonRpcError")&&n.d(t,{isJsonRpcError:function(){return r.isJsonRpcError}}),n.o(r,"isJsonRpcResponse")&&n.d(t,{isJsonRpcResponse:function(){return r.isJsonRpcResponse}}),n.o(r,"payloadId")&&n.d(t,{payloadId:function(){return r.payloadId}})},86495:function(e,t,n){"use strict";n.d(t,{CX:function(){return s},L2:function(){return o},by:function(){return i},i5:function(){return a}});var r=n(9105);function a(e){return r.dQ.includes(e)}function i(e){return Object.keys(r.xK).includes(e)?r.xK[e]:r.xK[r.JV]}function o(e){return Object.values(r.xK).find((function(t){return t.code===e}))||r.xK[r.JV]}function s(e,t,n){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error("Unavailable ".concat(n," RPC url at ").concat(t)):e}},76701:function(e,t,n){"use strict";n.d(t,{CS:function(){return o},RI:function(){return c},o0:function(){return i},sT:function(){return s}});var r=n(86495),a=n(9105);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function o(){return BigInt(i(arguments.length>0&&void 0!==arguments[0]?arguments[0]:6))}function s(e,t,n){return{id:n||i(),jsonrpc:"2.0",method:e,params:t}}function c(e,t,n){return{id:e,jsonrpc:"2.0",error:u(t,n)}}function u(e,t){return void 0===e?(0,r.by)(a.O4):("string"==typeof e&&(e=Object.assign(Object.assign({},(0,r.by)(a.CA)),{message:e})),void 0!==t&&(e.data=t),(0,r.i5)(e.code)&&(e=(0,r.L2)(e.code)),e)}},12561:function(e,t,n){"use strict";n.d(t,{formatJsonRpcError:function(){return i.RI},formatJsonRpcRequest:function(){return i.sT},getBigIntRpcId:function(){return i.CS},isHttpUrl:function(){return s.jK},isJsonRpcError:function(){return c.jg},isJsonRpcResponse:function(){return c.u},parseConnectionError:function(){return r.CX},payloadId:function(){return i.o0}}),n(9105);var r=n(86495),a=n(5963);n.o(a,"IJsonRpcProvider")&&n.d(t,{IJsonRpcProvider:function(){return a.IJsonRpcProvider}}),n.o(a,"formatJsonRpcError")&&n.d(t,{formatJsonRpcError:function(){return a.formatJsonRpcError}}),n.o(a,"formatJsonRpcRequest")&&n.d(t,{formatJsonRpcRequest:function(){return a.formatJsonRpcRequest}}),n.o(a,"getBigIntRpcId")&&n.d(t,{getBigIntRpcId:function(){return a.getBigIntRpcId}}),n.o(a,"isHttpUrl")&&n.d(t,{isHttpUrl:function(){return a.isHttpUrl}}),n.o(a,"isJsonRpcError")&&n.d(t,{isJsonRpcError:function(){return a.isJsonRpcError}}),n.o(a,"isJsonRpcResponse")&&n.d(t,{isJsonRpcResponse:function(){return a.isJsonRpcResponse}}),n.o(a,"payloadId")&&n.d(t,{payloadId:function(){return a.payloadId}});var i=n(76701),o=n(45579);n.o(o,"IJsonRpcProvider")&&n.d(t,{IJsonRpcProvider:function(){return o.IJsonRpcProvider}}),n.o(o,"isHttpUrl")&&n.d(t,{isHttpUrl:function(){return o.isHttpUrl}}),n.o(o,"isJsonRpcError")&&n.d(t,{isJsonRpcError:function(){return o.isJsonRpcError}}),n.o(o,"isJsonRpcResponse")&&n.d(t,{isJsonRpcResponse:function(){return o.isJsonRpcResponse}});var s=n(55600),c=n(69361)},45579:function(e,t,n){"use strict";n.d(t,{IJsonRpcProvider:function(){return r.IJsonRpcProvider}});var r=n(39236);n.o(r,"isHttpUrl")&&n.d(t,{isHttpUrl:function(){return r.isHttpUrl}}),n.o(r,"isJsonRpcError")&&n.d(t,{isJsonRpcError:function(){return r.isJsonRpcError}}),n.o(r,"isJsonRpcResponse")&&n.d(t,{isJsonRpcResponse:function(){return r.isJsonRpcResponse}})},55600:function(e,t,n){"use strict";n.d(t,{jK:function(){return a}});var r="^https?:";function a(e){return function(e,t){var n=function(e){var t=e.match(new RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return void 0!==n&&new RegExp(t).test(n)}(e,r)}},69361:function(e,t,n){"use strict";function r(e){return function(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}(e)&&(function(e){return"result"in e}(e)||a(e))}function a(e){return"error"in e}n.d(t,{jg:function(){return a},u:function(){return r}})},38259:function(e,t,n){var r=n(87973);function a(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(7574),o=a(n(97734)),s=a(n(74975)),c=n(28027);"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var u="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='300px' height='185px' viewBox='0 0 300 185' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 49.3 (51167) - http://www.bohemiancoding.com/sketch --%3E %3Ctitle%3EWalletConnect%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cdefs%3E%3C/defs%3E %3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='walletconnect-logo-alt' fill='%233B99FC' fill-rule='nonzero'%3E %3Cpath d='M61.4385429,36.2562612 C110.349767,-11.6319051 189.65053,-11.6319051 238.561752,36.2562612 L244.448297,42.0196786 C246.893858,44.4140867 246.893858,48.2961898 244.448297,50.690599 L224.311602,70.406102 C223.088821,71.6033071 221.106302,71.6033071 219.883521,70.406102 L211.782937,62.4749541 C177.661245,29.0669724 122.339051,29.0669724 88.2173582,62.4749541 L79.542302,70.9685592 C78.3195204,72.1657633 76.337001,72.1657633 75.1142214,70.9685592 L54.9775265,51.2530561 C52.5319653,48.8586469 52.5319653,44.9765439 54.9775265,42.5821357 L61.4385429,36.2562612 Z M280.206339,77.0300061 L298.128036,94.5769031 C300.573585,96.9713 300.573599,100.85338 298.128067,103.247793 L217.317896,182.368927 C214.872352,184.763353 210.907314,184.76338 208.461736,182.368989 C208.461726,182.368979 208.461714,182.368967 208.461704,182.368957 L151.107561,126.214385 C150.496171,125.615783 149.504911,125.615783 148.893521,126.214385 C148.893517,126.214389 148.893514,126.214393 148.89351,126.214396 L91.5405888,182.368927 C89.095052,184.763359 85.1300133,184.763399 82.6844276,182.369014 C82.6844133,182.369 82.684398,182.368986 82.6843827,182.36897 L1.87196327,103.246785 C-0.573596939,100.852377 -0.573596939,96.9702735 1.87196327,94.5758653 L19.7936929,77.028998 C22.2392531,74.6345898 26.2042918,74.6345898 28.6498531,77.028998 L86.0048306,133.184355 C86.6162214,133.782957 87.6074796,133.782957 88.2188704,133.184355 C88.2188796,133.184346 88.2188878,133.184338 88.2188969,133.184331 L145.571,77.028998 C148.016505,74.6345347 151.981544,74.6344449 154.427161,77.028798 C154.427195,77.0288316 154.427229,77.0288653 154.427262,77.028899 L211.782164,133.184331 C212.393554,133.782932 213.384814,133.782932 213.996204,133.184331 L271.350179,77.0300061 C273.79574,74.6355969 277.760778,74.6355969 280.206339,77.0300061 Z' id='WalletConnect'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E",f="WalletConnect",d=300,l="rgb(64, 153, 255)",p="walletconnect-wrapper",b="walletconnect-style-sheet",h="walletconnect-qrcode-modal",y="walletconnect-qrcode-close",m="walletconnect-qrcode-text",v="walletconnect-connect-button";function g(e){return c.createElement("div",{className:"walletconnect-modal__header"},c.createElement("img",{src:u,className:"walletconnect-modal__headerLogo"}),c.createElement("p",null,f),c.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:e.onClose},c.createElement("div",{id:y,className:"walletconnect-modal__close__icon"},c.createElement("div",{className:"walletconnect-modal__close__line1"}),c.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function A(e){return c.createElement("a",{className:"walletconnect-connect__button",href:e.href,id:v+"-"+e.name,onClick:e.onClick,rel:"noopener noreferrer",style:{backgroundColor:e.color},target:"_blank"},e.name)}var w="data:image/svg+xml,%3Csvg width='8' height='18' viewBox='0 0 8 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.586301 0.213898C0.150354 0.552968 0.0718197 1.18124 0.41089 1.61719L5.2892 7.88931C5.57007 8.25042 5.57007 8.75608 5.2892 9.11719L0.410889 15.3893C0.071819 15.8253 0.150353 16.4535 0.586301 16.7926C1.02225 17.1317 1.65052 17.0531 1.98959 16.6172L6.86791 10.3451C7.7105 9.26174 7.7105 7.74476 6.86791 6.66143L1.98959 0.38931C1.65052 -0.0466374 1.02225 -0.125172 0.586301 0.213898Z' fill='%233C4252'/%3E %3C/svg%3E";function x(e){var t=e.color,n=e.href,r=e.name,a=e.logo,i=e.onClick;return c.createElement("a",{className:"walletconnect-modal__base__row",href:n,onClick:i,rel:"noopener noreferrer",target:"_blank"},c.createElement("h3",{className:"walletconnect-modal__base__row__h3"},r),c.createElement("div",{className:"walletconnect-modal__base__row__right"},c.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+a+"') "+t,backgroundSize:"100%"}}),c.createElement("img",{src:w,className:"walletconnect-modal__base__row__right__caret"})))}function _(e){var t=e.color,n=e.href,r=e.name,a=e.logo,i=e.onClick,o=window.innerWidth<768?(r.length>8?2.5:2.7)+"vw":"inherit";return c.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:n,onClick:i,rel:"noopener noreferrer",target:"_blank"},c.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+a+"') "+t,backgroundSize:"100%"}}),c.createElement("div",{style:{fontSize:o},className:"walletconnect-connect__button__text"},r))}var k=5,S=12;function I(e){var t=i.isAndroid(),n=c.useState(""),r=n[0],a=n[1],o=c.useState(""),s=o[0],u=o[1],f=c.useState(1),d=f[0],p=f[1],b=s?e.links.filter((function(e){return e.name.toLowerCase().includes(s.toLowerCase())})):e.links,h=e.errorMessage,y=s||b.length>k,v=Math.ceil(b.length/S),g=[(d-1)*S+1,d*S],w=b.length?b.filter((function(e,t){return t+1>=g[0]&&t+1<=g[1]})):[],I=!(t||!(v>1)),E=void 0;return c.createElement("div",null,c.createElement("p",{id:m,className:"walletconnect-qrcode__text"},t?e.text.connect_mobile_wallet:e.text.choose_preferred_wallet),!t&&c.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:r,onChange:function(e){a(e.target.value),clearTimeout(E),e.target.value?E=setTimeout((function(){u(e.target.value),p(1)}),1e3):(a(""),u(""),p(1))}}),c.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(t?"__android":y&&b.length?"__wrap":"")},t?c.createElement(A,{name:e.text.connect,color:l,href:e.uri,onClick:c.useCallback((function(){i.saveMobileLinkInfo({name:"Unknown",href:e.uri})}),[])}):w.length?w.map((function(t){var n=t.color,r=t.name,a=t.shortName,o=t.logo,s=i.formatIOSMobile(e.uri,t),u=c.useCallback((function(){i.saveMobileLinkInfo({name:r,href:s})}),[w]);return y?c.createElement(_,{color:n,href:s,name:a||r,logo:o,onClick:u}):c.createElement(x,{color:n,href:s,name:r,logo:o,onClick:u})})):c.createElement(c.Fragment,null,c.createElement("p",null,h.length?e.errorMessage:e.links.length&&!b.length?e.text.no_wallets_found:e.text.loading))),I&&c.createElement("div",{className:"walletconnect-modal__footer"},Array(v).fill(0).map((function(e,t){var n=t+1,r=d===n;return c.createElement("a",{style:{margin:"auto 10px",fontWeight:r?"bold":"normal"},onClick:function(){return p(n)}},n)}))))}function E(e){var t=!!e.message.trim();return c.createElement("div",{className:"walletconnect-qrcode__notification"+(t?" notification__show":"")},e.message)}var C=function(e){try{var t="";return Promise.resolve(o.toString(e,{margin:0,type:"svg"})).then((function(e){return"string"==typeof e&&(t=e.replace("0||c.useEffect((function(){!function(){try{if(t)return Promise.resolve();s(!0);var a=function(t,a){try{var o=(c=e.qrcodeModalOptions&&e.qrcodeModalOptions.registryUrl?e.qrcodeModalOptions.registryUrl:i.getWalletRegistryUrl(),Promise.resolve(fetch(c)).then((function(t){return Promise.resolve(t.json()).then((function(t){var a=t.listings,o=n?"mobile":"desktop",c=i.getMobileLinkRegistry(i.formatMobileRegistry(a,o),r);s(!1),d(!0),P(c.length?"":e.text.no_supported_wallets),E(c);var u=1===c.length;u&&(A(i.formatIOSMobile(e.uri,c[0])),b(!0)),_(u)}))})))}catch(e){return a(e)}var c;return o&&o.then?o.then(void 0,a):o}(0,(function(t){s(!1),d(!0),P(e.text.something_went_wrong),console.error(t)}));return Promise.resolve(a&&a.then?a.then((function(){})):void 0)}catch(e){return Promise.reject(e)}}()}))};M();var B=n?p:!p;return c.createElement("div",{id:h,className:"walletconnect-qrcode__base animated fadeIn"},c.createElement("div",{className:"walletconnect-modal__base"},c.createElement(g,{onClose:e.onClose}),x&&p?c.createElement("div",{className:"walletconnect-modal__single_wallet"},c.createElement("a",{onClick:function(){return i.saveMobileLinkInfo({name:S[0].name,href:v})},href:v,rel:"noopener noreferrer",target:"_blank"},e.text.connect_with+" "+(x?S[0].name:"")+" ›")):t||o||!o&&S.length?c.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(B?" right__selected":"")},c.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),n?c.createElement(c.Fragment,null,c.createElement("a",{onClick:function(){return b(!1),M()}},e.text.mobile),c.createElement("a",{onClick:function(){return b(!0)}},e.text.qrcode)):c.createElement(c.Fragment,null,c.createElement("a",{onClick:function(){return b(!0)}},e.text.qrcode),c.createElement("a",{onClick:function(){return b(!1),M()}},e.text.desktop))):null,c.createElement("div",null,p||!t&&!o&&!S.length?c.createElement(T,Object.assign({},y)):c.createElement(I,Object.assign({},y,{links:S,errorMessage:O})))))}var P={de:{choose_preferred_wallet:"Wähle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterstützten Wallet",no_wallets_found:"keine Wallet gefunden"},en:{choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},es:{choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera móvil",scan_qrcode_with_wallet:"Escanea el código QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo salió mal",no_supported_wallets:"Todavía no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},fr:{choose_preferred_wallet:"Choisissez votre portefeuille préféré",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copié!",connect_with:"Connectez-vous à l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourné",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouvé"},ko:{choose_preferred_wallet:"원하는 지갑을 선택하세요",connect_mobile_wallet:"모바일 지갑과 연결",scan_qrcode_with_wallet:"WalletConnect 지원 지갑에서 QR코드를 스캔하세요",connect:"연결",qrcode:"QR 코드",mobile:"모바일",desktop:"데스크탑",copy_to_clipboard:"클립보드에 복사",copied_to_clipboard:"클립보드에 복사되었습니다!",connect_with:"와 연결하다",loading:"로드 중...",something_went_wrong:"문제가 발생했습니다.",no_supported_wallets:"아직 지원되는 지갑이 없습니다",no_wallets_found:"지갑을 찾을 수 없습니다"},pt:{choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se à carteira móvel",scan_qrcode_with_wallet:"Ler o código QR com uma carteira compatível com WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda não há carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},zh:{choose_preferred_wallet:"选择你的钱包",connect_mobile_wallet:"连接至移动端钱包",scan_qrcode_with_wallet:"使用兼容 WalletConnect 的钱包扫描二维码",connect:"连接",qrcode:"二维码",mobile:"移动",desktop:"桌面",copy_to_clipboard:"复制到剪贴板",copied_to_clipboard:"复制到剪贴板成功!",connect_with:"通过以下方式连接",loading:"正在加载...",something_went_wrong:"出了问题",no_supported_wallets:"目前还没有支持的钱包",no_wallets_found:"没有找到钱包"},fa:{choose_preferred_wallet:"کیف پول مورد نظر خود را انتخاب کنید",connect_mobile_wallet:"به کیف پول موبایل وصل شوید",scan_qrcode_with_wallet:"کد QR را با یک کیف پول سازگار با WalletConnect اسکن کنید",connect:"اتصال",qrcode:"کد QR",mobile:"سیار",desktop:"دسکتاپ",copy_to_clipboard:"کپی به کلیپ بورد",copied_to_clipboard:"در کلیپ بورد کپی شد!",connect_with:"ارتباط با",loading:"...بارگذاری",something_went_wrong:"مشکلی پیش آمد",no_supported_wallets:"هنوز هیچ کیف پول پشتیبانی شده ای وجود ندارد",no_wallets_found:"هیچ کیف پولی پیدا نشد"}};function M(){var e=i.getDocumentOrThrow(),t=e.getElementById(h);t&&(t.className=t.className.replace("fadeIn","fadeOut"),setTimeout((function(){var t=e.getElementById(p);t&&e.body.removeChild(t)}),d))}function B(e){return function(){M(),e&&e()}}var R=function(){return void 0!==r&&void 0!==r.versions&&void 0!==r.versions.node},N={open:function(e,t,n){console.log(e),R()?function(e){o.toString(e,{type:"terminal"}).then(console.log)}(e):function(e,t,n){!function(){var e=i.getDocumentOrThrow(),t=e.getElementById(b);t&&e.head.removeChild(t);var n=e.createElement("style");n.setAttribute("id",b),n.innerText=':root {\n --animation-duration: 300ms;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.animated {\n animation-duration: var(--animation-duration);\n animation-fill-mode: both;\n}\n\n.fadeIn {\n animation-name: fadeIn;\n}\n\n.fadeOut {\n animation-name: fadeOut;\n}\n\n#walletconnect-wrapper {\n -webkit-user-select: none;\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n pointer-events: none;\n position: fixed;\n top: 0;\n user-select: none;\n width: 100%;\n z-index: 99999999999999;\n}\n\n.walletconnect-modal__headerLogo {\n height: 21px;\n}\n\n.walletconnect-modal__header p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n align-items: flex-start;\n display: flex;\n flex: 1;\n margin-left: 5px;\n}\n\n.walletconnect-modal__close__wrapper {\n position: absolute;\n top: 0px;\n right: 0px;\n z-index: 10000;\n background: white;\n border-radius: 26px;\n padding: 6px;\n box-sizing: border-box;\n width: 26px;\n height: 26px;\n cursor: pointer;\n}\n\n.walletconnect-modal__close__icon {\n position: relative;\n top: 7px;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(45deg);\n}\n\n.walletconnect-modal__close__line1 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n}\n\n.walletconnect-modal__close__line2 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n transform: rotate(90deg);\n}\n\n.walletconnect-qrcode__base {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n background: rgba(37, 41, 46, 0.95);\n height: 100%;\n left: 0;\n pointer-events: auto;\n position: fixed;\n top: 0;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n width: 100%;\n will-change: opacity;\n padding: 40px;\n box-sizing: border-box;\n}\n\n.walletconnect-qrcode__text {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 10px 0 20px 0;\n text-align: center;\n width: 100%;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-qrcode__text {\n font-size: 4vw;\n }\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-qrcode__text {\n font-size: 14px;\n }\n}\n\n.walletconnect-qrcode__image {\n width: calc(100% - 30px);\n box-sizing: border-box;\n cursor: none;\n margin: 0 auto;\n}\n\n.walletconnect-qrcode__notification {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n font-size: 16px;\n padding: 16px 20px;\n border-radius: 16px;\n text-align: center;\n transition: all 0.1s ease-in-out;\n background: white;\n color: black;\n margin-bottom: -60px;\n opacity: 0;\n}\n\n.walletconnect-qrcode__notification.notification__show {\n opacity: 1;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__header {\n height: 130px;\n }\n .walletconnect-modal__base {\n overflow: auto;\n }\n}\n\n@media only screen and (min-device-width: 415px) and (max-width: 768px) {\n #content {\n max-width: 768px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 375px) and (max-width: 415px) {\n #content {\n max-width: 414px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 320px) and (max-width: 375px) {\n #content {\n max-width: 375px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (max-width: 320px) {\n #content {\n max-width: 320px;\n box-sizing: border-box;\n }\n}\n\n.walletconnect-modal__base {\n -webkit-font-smoothing: antialiased;\n background: #ffffff;\n border-radius: 24px;\n box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4);\n font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font,\n -apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,\n "Open Sans", "Helvetica Neue", sans-serif;\n margin-top: 41px;\n padding: 24px 24px 22px;\n pointer-events: auto;\n position: relative;\n text-align: center;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n will-change: transform;\n overflow: visible;\n transform: translateY(-50%);\n top: 50%;\n max-width: 500px;\n margin: auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__base {\n padding: 24px 12px;\n }\n}\n\n.walletconnect-modal__base .hidden {\n transform: translateY(150%);\n transition: 0.125s cubic-bezier(0.4, 0, 1, 1);\n}\n\n.walletconnect-modal__header {\n align-items: center;\n display: flex;\n height: 26px;\n left: 0;\n justify-content: space-between;\n position: absolute;\n top: -42px;\n width: 100%;\n}\n\n.walletconnect-modal__base .wc-logo {\n align-items: center;\n display: flex;\n height: 26px;\n margin-top: 15px;\n padding-bottom: 15px;\n pointer-events: auto;\n}\n\n.walletconnect-modal__base .wc-logo div {\n background-color: #3399ff;\n height: 21px;\n margin-right: 5px;\n mask-image: url("images/wc-logo.svg") center no-repeat;\n width: 32px;\n}\n\n.walletconnect-modal__base .wc-logo p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n}\n\n.walletconnect-modal__base h2 {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 0 0 19px 0;\n text-align: center;\n width: 100%;\n}\n\n.walletconnect-modal__base__row {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n align-items: center;\n border-radius: 20px;\n cursor: pointer;\n display: flex;\n height: 56px;\n justify-content: space-between;\n padding: 0 15px;\n position: relative;\n margin: 0px 0px 8px;\n text-align: left;\n transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n will-change: transform;\n text-decoration: none;\n}\n\n.walletconnect-modal__base__row:hover {\n background: rgba(60, 66, 82, 0.06);\n}\n\n.walletconnect-modal__base__row:active {\n background: rgba(60, 66, 82, 0.06);\n transform: scale(0.975);\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n}\n\n.walletconnect-modal__base__row__h3 {\n color: #25292e;\n font-size: 20px;\n font-weight: 700;\n margin: 0;\n padding-bottom: 3px;\n}\n\n.walletconnect-modal__base__row__right {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n\n.walletconnect-modal__base__row__right__app-icon {\n border-radius: 8px;\n height: 34px;\n margin: 0 11px 2px 0;\n width: 34px;\n background-size: 100%;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-modal__base__row__right__caret {\n height: 18px;\n opacity: 0.3;\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n width: 8px;\n will-change: opacity;\n}\n\n.walletconnect-modal__base__row:hover .caret,\n.walletconnect-modal__base__row:active .caret {\n opacity: 0.6;\n}\n\n.walletconnect-modal__mobile__toggle {\n width: 80%;\n display: flex;\n margin: 0 auto;\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n margin-bottom: 18px;\n background: #d4d5d9;\n}\n\n.walletconnect-modal__single_wallet {\n display: flex;\n justify-content: center;\n margin-top: 7px;\n margin-bottom: 18px;\n}\n\n.walletconnect-modal__single_wallet a {\n cursor: pointer;\n color: rgb(64, 153, 255);\n font-size: 21px;\n font-weight: 800;\n text-decoration: none !important;\n margin: 0 auto;\n}\n\n.walletconnect-modal__mobile__toggle_selector {\n width: calc(50% - 8px);\n background: white;\n position: absolute;\n border-radius: 5px;\n height: calc(100% - 8px);\n top: 4px;\n transition: all 0.2s ease-in-out;\n transform: translate3d(4px, 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector {\n transform: translate3d(calc(100% + 12px), 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle a {\n font-size: 12px;\n width: 50%;\n text-align: center;\n padding: 8px;\n margin: 0;\n font-weight: 600;\n z-index: 1;\n}\n\n.walletconnect-modal__footer {\n display: flex;\n justify-content: center;\n margin-top: 20px;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__footer {\n margin-top: 5vw;\n }\n}\n\n.walletconnect-modal__footer a {\n cursor: pointer;\n color: #898d97;\n font-size: 15px;\n margin: 0 auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__footer a {\n font-size: 14px;\n }\n}\n\n.walletconnect-connect__buttons__wrapper {\n max-height: 44vh;\n}\n\n.walletconnect-connect__buttons__wrapper__android {\n margin: 50% 0;\n}\n\n.walletconnect-connect__buttons__wrapper__wrap {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n margin: 10px 0;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__buttons__wrapper__wrap {\n margin-top: 40px;\n }\n}\n\n.walletconnect-connect__button {\n background-color: rgb(64, 153, 255);\n padding: 12px;\n border-radius: 8px;\n text-decoration: none;\n color: rgb(255, 255, 255);\n font-weight: 500;\n}\n\n.walletconnect-connect__button__icon_anchor {\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: 8px;\n width: 42px;\n justify-self: center;\n flex-direction: column;\n text-decoration: none !important;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-connect__button__icon_anchor {\n margin: 4px;\n }\n}\n\n.walletconnect-connect__button__icon {\n border-radius: 10px;\n height: 42px;\n margin: 0;\n width: 42px;\n background-size: cover !important;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-connect__button__text {\n color: #424952;\n font-size: 2.7vw;\n text-decoration: none !important;\n padding: 0;\n margin-top: 1.8vw;\n font-weight: 600;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__button__text {\n font-size: 16px;\n margin-top: 12px;\n }\n}\n\n.walletconnect-search__input {\n border: none;\n background: #d4d5d9;\n border-style: none;\n padding: 8px 16px;\n outline: none;\n font-style: normal;\n font-stretch: normal;\n font-size: 16px;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: normal;\n text-align: left;\n border-radius: 8px;\n width: calc(100% - 16px);\n margin: 0;\n margin-bottom: 8px;\n}\n',e.head.appendChild(n)}();var r,a=function(){var e=i.getDocumentOrThrow(),t=e.createElement("div");return t.setAttribute("id",p),e.body.appendChild(t),t}();c.render(c.createElement(O,{text:(r=i.getNavigatorOrThrow().language.split("-")[0]||"en",P[r]||P.en),uri:e,onClose:B(t),qrcodeModalOptions:n}),a)}(e,t,n)},close:function(){R()||M()}};e.exports=N},28027:function(e,t,n){"use strict";n.r(t),n.d(t,{Children:function(){return Pe},Component:function(){return A},Fragment:function(){return g},PureComponent:function(){return Se},StrictMode:function(){return yt},Suspense:function(){return De},SuspenseList:function(){return Le},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:function(){return st},cloneElement:function(){return dt},createContext:function(){return z},createElement:function(){return y},createFactory:function(){return ut},createPortal:function(){return ze},createRef:function(){return v},default:function(){return xt},findDOMNode:function(){return pt},flushSync:function(){return ht},forwardRef:function(){return Te},hydrate:function(){return Ye},isValidElement:function(){return ft},lazy:function(){return Ue},memo:function(){return Ie},render:function(){return We},startTransition:function(){return mt},unmountComponentAtNode:function(){return lt},unstable_batchedUpdates:function(){return bt},useCallback:function(){return fe},useContext:function(){return de},useDebugValue:function(){return le},useDeferredValue:function(){return vt},useEffect:function(){return ie},useErrorBoundary:function(){return pe},useId:function(){return be},useImperativeHandle:function(){return ce},useInsertionEffect:function(){return At},useLayoutEffect:function(){return oe},useMemo:function(){return ue},useReducer:function(){return ae},useRef:function(){return se},useState:function(){return re},useSyncExternalStore:function(){return wt},useTransition:function(){return gt},version:function(){return ct}});var r,a,i,o,s,c,u,f,d={},l=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function b(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n){var a,i,o,s={};for(o in t)"key"==o?a=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return m(e,s,a,i,null)}function m(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++i:o};return null==o&&null!=a.vnode&&a.vnode(s),s}function v(){return{current:null}}function g(e){return e.children}function A(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&o.sort(u));k.__r=0}function S(e,t,n,r,a,i,o,s,c,u){var f,p,b,h,y,v,A,x=r&&r.__k||l,_=x.length;for(n.__k=[],f=0;f0?m(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(b=x[f])||b&&h.key==b.key&&h.type===b.type)x[f]=void 0;else for(p=0;p<_;p++){if((b=x[p])&&h.key==b.key&&h.type===b.type){x[p]=void 0;break}b=null}R(e,h,b=b||d,a,i,o,s,c,u),y=h.__e,(p=h.ref)&&b.ref!=p&&(A||(A=[]),b.ref&&A.push(b.ref,null,h),A.push(p,h.__c||y,h)),null!=y?(null==v&&(v=y),"function"==typeof h.type&&h.__k===b.__k?h.__d=c=I(h,c,e):c=C(e,h,b,x,y,c),"function"==typeof n.type&&(n.__d=c)):c&&b.__e==c&&c.parentNode!=e&&(c=w(b))}for(n.__e=v,f=_;f--;)null!=x[f]&&("function"==typeof n.type&&null!=x[f].__e&&x[f].__e==n.__d&&(n.__d=T(r).nextSibling),U(x[f],x[f]));if(A)for(f=0;f=0;t--)if((n=e.__k[t])&&(r=T(n)))return r;return null}function O(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function P(e,t,n,r,a){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||O(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||O(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:M,i):e.removeEventListener(t,i?B:M,i);else if("dangerouslySetInnerHTML"!==t){if(a)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function M(e){return this.l[e.type+!1](a.event?a.event(e):e)}function B(e){return this.l[e.type+!0](a.event?a.event(e):e)}function R(e,t,n,r,i,o,s,c,u){var f,d,l,p,h,y,m,v,w,x,_,k,I,E,C,T=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,c=t.__e=n.__e,t.__h=null,o=[c]),(f=a.__b)&&f(t);try{e:if("function"==typeof T){if(v=t.props,w=(f=T.contextType)&&r[f.__c],x=f?w?w.props.value:f.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:("prototype"in T&&T.prototype.render?t.__c=d=new T(v,x):(t.__c=d=new A(v,x),d.constructor=T,d.render=L),w&&w.sub(d),d.props=v,d.state||(d.state={}),d.context=x,d.__n=r,l=d.__d=!0,d.__h=[],d._sb=[]),null==d.__s&&(d.__s=d.state),null!=T.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=b({},d.__s)),b(d.__s,T.getDerivedStateFromProps(v,d.__s))),p=d.props,h=d.state,d.__v=t,l)null==T.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==T.getDerivedStateFromProps&&v!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,x),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,x)||t.__v===n.__v){for(t.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),d.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),_=0;_2&&(s.children=arguments.length>3?r.call(arguments,2):n),m(e.type,s,a||e.key,i||e.ref,null)}function z(e,t){var n={__c:t="__cC"+f++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,_(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=l.slice,a={__e:function(e,t,n,r){for(var a,i,o;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&null!=i.getDerivedStateFromError&&(a.setState(i.getDerivedStateFromError(e)),o=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(e,r||{}),o=a.__d),o)return a.__E=a}catch(t){e=t}throw e}},i=0,A.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),_(this))},A.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},A.prototype.render=g,o=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},k.__r=0,f=0;var q,Q,K,V,J=0,G=[],W=[],Y=a.__b,X=a.__r,$=a.diffed,ee=a.__c,te=a.unmount;function ne(e,t){a.__h&&a.__h(Q,e,J||t),J=0;var n=Q.__H||(Q.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:W}),n.__[e]}function re(e){return J=1,ae(we,e)}function ae(e,t,n){var r=ne(q++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):we(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=Q,!Q.u)){var a=function(e,t,n){if(!r.__c.__H)return!0;var a=r.__c.__H.__.filter((function(e){return e.__c}));if(a.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var o=!1;return a.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};Q.u=!0;var i=Q.shouldComponentUpdate,o=Q.componentWillUpdate;Q.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,a(e,t,n),i=r}o&&o.call(this,e,t,n)},Q.shouldComponentUpdate=a}return r.__N||r.__}function ie(e,t){var n=ne(q++,3);!a.__s&&Ae(n.__H,t)&&(n.__=e,n.i=t,Q.__H.__h.push(n))}function oe(e,t){var n=ne(q++,4);!a.__s&&Ae(n.__H,t)&&(n.__=e,n.i=t,Q.__h.push(n))}function se(e){return J=5,ue((function(){return{current:e}}),[])}function ce(e,t,n){J=6,oe((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function ue(e,t){var n=ne(q++,7);return Ae(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function fe(e,t){return J=8,ue((function(){return e}),t)}function de(e){var t=Q.context[e.__c],n=ne(q++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Q)),t.props.value):e.__}function le(e,t){a.useDebugValue&&a.useDebugValue(t?t(e):e)}function pe(e){var t=ne(q++,10),n=re();return t.__=e,Q.componentDidCatch||(Q.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function be(){var e=ne(q++,11);if(!e.__){for(var t=Q.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function he(){for(var e;e=G.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ve),e.__H.__h.forEach(ge),e.__H.__h=[]}catch(t){e.__H.__h=[],a.__e(t,e.__v)}}a.__b=function(e){Q=null,Y&&Y(e)},a.__r=function(e){X&&X(e),q=0;var t=(Q=e.__c).__H;t&&(K===Q?(t.__h=[],Q.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=W,e.__N=e.i=void 0}))):(t.__h.forEach(ve),t.__h.forEach(ge),t.__h=[])),K=Q},a.diffed=function(e){$&&$(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==G.push(t)&&V===a.requestAnimationFrame||((V=a.requestAnimationFrame)||me)(he)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==W&&(e.__=e.__V),e.i=void 0,e.__V=W}))),K=Q=null},a.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ve),e.__h=e.__h.filter((function(e){return!e.__||ge(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],a.__e(n,e.__v)}})),ee&&ee(e,t)},a.unmount=function(e){te&&te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ve(e)}catch(e){t=e}})),n.__H=void 0,t&&a.__e(t,n.__v))};var ye="function"==typeof requestAnimationFrame;function me(e){var t,n=function(){clearTimeout(r),ye&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ye&&(t=requestAnimationFrame(n))}function ve(e){var t=Q,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Q=t}function ge(e){var t=Q;e.__c=e.__(),Q=t}function Ae(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function we(e,t){return"function"==typeof t?t(e):t}function xe(e,t){for(var n in t)e[n]=t[n];return e}function _e(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function ke(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function Se(e){this.props=e}function Ie(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:_e(this.props,e)}function r(t){return this.shouldComponentUpdate=n,y(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Se.prototype=new A).isPureReactComponent=!0,Se.prototype.shouldComponentUpdate=function(e,t){return _e(this.props,e)||_e(this.state,t)};var Ee=a.__b;a.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ee&&Ee(e)};var Ce="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Te(e){function t(t){var n=xe({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ce,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Oe=function(e,t){return null==e?null:E(E(e).map(t))},Pe={map:Oe,forEach:Oe,count:function(e){return e?E(e).length:0},only:function(e){var t=E(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:E},Me=a.__e;a.__e=function(e,t,n,r){if(e.then)for(var a,i=t;i=i.__;)if((a=i.__c)&&a.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),a.__c(e,t);Me(e,t,n,r)};var Be=a.unmount;function Re(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=xe({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Re(e,t,n)}))),e}function Ne(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ne(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function De(){this.__u=0,this.t=null,this.__b=null}function je(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ue(e){var t,n,r;function a(a){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return y(n,a)}return a.displayName="Lazy",a.__f=!0,a}function Le(){this.u=null,this.o=null}a.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Be&&Be(e)},(De.prototype=new A).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var a=je(r.__v),i=!1,o=function(){i||(i=!0,n.__R=null,a?a(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Ne(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},De.prototype.componentWillUnmount=function(){this.t=[]},De.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Re(this.__b,n,r.__O=r.__P)}this.__b=null}var a=t.__a&&y(g,null,e.fallback);return a&&(a.__h=null),[y(g,null,t.__a?null:e.children),a]};var Ze=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),Z(y(Fe,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function ze(e,t){var n=y(He,{__v:e,i:t});return n.containerInfo=t,n}(Le.prototype=new A).__a=function(e){var t=this,n=je(t.__v),r=t.o.get(e);return r[0]++,function(a){var i=function(){t.props.revealOrder?(r.push(a),Ze(t,e,r)):a()};n?n(i):i()}},Le.prototype.render=function(e){this.u=null,this.o=new Map;var t=E(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Le.prototype.componentDidUpdate=Le.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ze(e,n,t)}))};var qe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Qe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ke=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ve=/[A-Z0-9]/g,Je="undefined"!=typeof document,Ge=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function We(e,t,n){return null==t.__k&&(t.textContent=""),Z(e,t),"function"==typeof n&&n(),e?e.__c:null}function Ye(e,t,n){return F(e,t),"function"==typeof n&&n(),e?e.__c:null}A.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(A.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Xe=a.event;function $e(){}function et(){return this.cancelBubble}function tt(){return this.defaultPrevented}a.event=function(e){return Xe&&(e=Xe(e)),e.persist=$e,e.isPropagationStopped=et,e.isDefaultPrevented=tt,e.nativeEvent=e};var nt,rt={enumerable:!1,configurable:!0,get:function(){return this.class}},at=a.vnode;a.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var a in t){var i=t[a];if(!("value"===a&&"defaultValue"in t&&null==i||Je&&"children"===a&&"noscript"===n||"class"===a||"className"===a)){var o=a.toLowerCase();"defaultValue"===a&&"value"in t&&null==t.value?a="value":"download"===a&&!0===i?i="":"ondoubleclick"===o?a="ondblclick":"onchange"!==o||"input"!==n&&"textarea"!==n||Ge(t.type)?"onfocus"===o?a="onfocusin":"onblur"===o?a="onfocusout":Ke.test(a)?a=o:-1===n.indexOf("-")&&Qe.test(a)?a=a.replace(Ve,"-$&").toLowerCase():null===i&&(i=void 0):o=a="oninput","oninput"===o&&r[a=o]&&(a="oninputCapture"),r[a]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=E(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=E(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",rt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=qe,at&&at(e)};var it=a.__r;a.__r=function(e){it&&it(e),nt=e.__c};var ot=a.diffed;a.diffed=function(e){ot&&ot(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),nt=null};var st={ReactCurrentDispatcher:{current:{readContext:function(e){return nt.__n[e.__c].props.value}}}},ct="17.0.2";function ut(e){return y.bind(null,e)}function ft(e){return!!e&&e.$$typeof===qe}function dt(e){return ft(e)?H.apply(null,arguments):e}function lt(e){return!!e.__k&&(Z(null,e),!0)}function pt(e){return e&&(e.base||1===e.nodeType&&e)||null}var bt=function(e,t){return e(t)},ht=function(e,t){return e(t)},yt=g;function mt(e){e()}function vt(e){return e}function gt(){return[!1,mt]}var At=oe;function wt(e,t){var n=t(),r=re({h:{__:n,v:t}}),a=r[0].h,i=r[1];return oe((function(){a.__=n,a.v=t,ke(a.__,t())||i({h:a})}),[e,n,t]),ie((function(){return ke(a.__,a.v())||i({h:a}),e((function(){ke(a.__,a.v())||i({h:a})}))}),[e]),n}var xt={useState:re,useId:be,useReducer:ae,useEffect:ie,useLayoutEffect:oe,useInsertionEffect:oe,useTransition:gt,useDeferredValue:vt,useSyncExternalStore:wt,startTransition:mt,useRef:se,useImperativeHandle:ce,useMemo:ue,useCallback:fe,useContext:de,useDebugValue:le,version:"17.0.2",Children:Pe,render:We,hydrate:Ye,unmountComponentAtNode:lt,createPortal:ze,createElement:y,createContext:z,createFactory:ut,cloneElement:dt,createRef:v,Fragment:g,isValidElement:ft,findDOMNode:pt,Component:A,PureComponent:Se,memo:Ie,forwardRef:Te,flushSync:ht,unstable_batchedUpdates:bt,StrictMode:g,Suspense:De,SuspenseList:Le,lazy:Ue,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:st}},97734:function(e,t,n){var r=n(22472),a=n(93902),i=n(84699),o=n(9820);function s(e,t,n,i,o){var s=[].slice.call(arguments,1),c=s.length,u="function"==typeof s[c-1];if(!u&&!r())throw new Error("Callback required as last argument");if(!u){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=t,t=i=void 0):2!==c||t.getContext||(i=n,n=t,t=void 0),new Promise((function(r,o){try{var s=a.create(n,i);r(e(s,t,i))}catch(e){o(e)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(o=n,n=t,t=i=void 0):3===c&&(t.getContext&&void 0===o?(o=i,i=void 0):(o=i,i=n,n=t,t=void 0));try{var f=a.create(n,i);o(null,e(f,t,i))}catch(e){o(e)}}t.create=a.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return o.render(e,n)}))},22472:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},11729:function(e,t,n){var r=n(95175).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,n=r(e),a=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7],o=1;o>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},54727:function(e){function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){var a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},11700:function(e,t,n){var r=n(1865),a=n(75544);function i(e){this.mode=a.BYTE,"string"==typeof e&&(e=r(e)),this.data=new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(var t=0,n=this.data.length;t=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},37573:function(e,t,n){var r=n(95175).getSymbolSize;t.getPositions=function(e){var t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},14948:function(e,t,n){var r=n(95175),a=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){for(var n=e.bit<<3|t,i=n<<10;r.getBCHDigit(i)-a>=0;)i^=1335<=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=i},61753:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,n=0,r=0,a=0,i=null,o=null,s=0;s=5&&(n+=r-5+3),i=u,r=1),(u=e.get(c,s))===o?a++:(a>=5&&(n+=a-5+3),o=u,a=1)}r>=5&&(n+=r-5+3),a>=5&&(n+=a-5+3)}return n},t.getPenaltyN2=function(e){for(var t=e.size,n=0,r=0;r=10&&(1488===r||93===r)&&n++,a=a<<1&2047|e.get(o,i),o>=10&&(1488===a||93===a)&&n++}return 40*n},t.getPenaltyN4=function(e){for(var t=0,n=e.data.length,r=0;r=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return a.testNumeric(e)?t.NUMERIC:a.testAlphanumeric(e)?t.ALPHANUMERIC:a.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},77650:function(e,t,n){var r=n(75544);function a(e){this.mode=r.NUMERIC,this.data=e.toString()}a.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){var t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);var a=this.data.length-t;a>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*a+1))},e.exports=a},47611:function(e,t,n){var r=n(24908);t.mul=function(e,t){for(var n=new Uint8Array(e.length+t.length-1),a=0;a=0;){for(var a=n[0],i=0;i>r&1),r<6?e.set(r,8,a,!0):r<8?e.set(r+1,8,a,!0):e.set(i-15+r,8,a,!0),r<8?e.set(8,i-r-1,a,!0):r<9?e.set(8,15-r-1+1,a,!0):e.set(8,15-r-1,a,!0);e.set(i-8,8,1,!0)}function m(e,t,n,a){var p;if(Array.isArray(e))p=h.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");var m=t;if(!m){var v=h.rawSplit(e);m=l.getBestVersionForData(v,n)}p=h.fromString(e,m||40)}var g=l.getBestVersionForData(p,n);if(!g)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t=0&&s<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===s||6===s)||s>=2&&s<=4&&u>=2&&u<=4?e.set(i+s,o+u,!0,!0):e.set(i+s,o+u,!1,!0))}(x,t),function(e){for(var t=e.size,n=8;n=7&&function(e,t){for(var n,r,a,i=e.size,o=l.getEncodedBits(t),s=0;s<18;s++)n=Math.floor(s/3),r=s%3+i-8-3,a=1==(o>>s&1),e.set(n,r,a,!0),e.set(r,n,a,!0)}(x,t),function(e,t){for(var n=e.size,r=-1,a=n-1,i=7,o=0,s=n-1;s>0;s-=2)for(6===s&&s--;;){for(var c=0;c<2;c++)if(!e.isReserved(a,s-c)){var u=!1;o>>i&1)),e.set(a,s-c,u),-1==--i&&(o++,i=7)}if((a+=r)<0||n<=a){a-=r,r=-r;break}}}(x,A),isNaN(a)&&(a=u.getBestMask(x,y.bind(null,x,n))),u.applyMask(a,x),y(x,n,a),{modules:x,version:t,errorCorrectionLevel:n,maskPattern:a,segments:p}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");var n,i,o=a.M;return void 0!==t&&(o=a.from(t.errorCorrectionLevel,a.M),n=l.from(t.version),i=u.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),m(e,n,o,i)}},29194:function(e,t,n){var r=n(47611);function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=new Uint8Array(e.length+this.degree);t.set(e);var n=r.mod(t,this.genPoly),a=this.degree-n.length;if(a>0){var i=new Uint8Array(this.degree);return i.set(n,a),i}return n},e.exports=a},84366:function(e,t){var n="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",a="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(a,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var i=new RegExp("^"+r+"$"),o=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},61414:function(e,t,n){var r=n(75544),a=n(77650),i=n(54789),o=n(11700),s=n(50325),c=n(84366),u=n(95175),f=n(22582);function d(e){return unescape(encodeURIComponent(e)).length}function l(e,t,n){for(var r,a=[];null!==(r=e.exec(n));)a.push({data:r[0],index:r.index,mode:t,length:r[0].length});return a}function p(e){var t,n,a=l(c.NUMERIC,r.NUMERIC,e),i=l(c.ALPHANUMERIC,r.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=l(c.BYTE,r.BYTE,e),n=l(c.KANJI,r.KANJI,e)):(t=l(c.BYTE_KANJI,r.BYTE,e),n=[]),a.concat(i,t,n).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function b(e,t){switch(t){case r.NUMERIC:return a.getBitsLength(e);case r.ALPHANUMERIC:return i.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return o.getBitsLength(e)}}function h(e,t){var n,c=r.getBestModeForData(e);if((n=r.from(t,c))!==r.BYTE&&n.bit=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[]))},t.rawSplit=function(e){return t.fromArray(p(e,u.isKanjiModeEnabled()))}},95175:function(e,t){var n,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},94211:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},87598:function(e,t,n){var r=n(95175),a=n(69945),i=n(52488),o=n(75544),s=n(94211),c=r.getBCHDigit(7973);function u(e,t){return o.getCharCountIndicator(e,t)+4}function f(e,t){var n=0;return e.forEach((function(e){var r=u(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=o.BYTE);var i=8*(r.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,t));if(n===o.MIXED)return i;var c=i-u(n,e);switch(n){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){var r,a=i.from(n,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(var r=1;r<=40;r++)if(f(e,r)<=t.getCapacity(r,n,o.MIXED))return r}(e,a);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(var a=1;a<=40;a++)if(n<=t.getCapacity(a,r,e))return a}(r.mode,r.getLength(),a)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;r.getBCHDigit(t)-c>=0;)t^=7973<':"",d="0&&u>0&&e[c-1]||(r+=o?i("M",u+n,.5+f+n):i("m",a,0),a=0,o=!1),u+1',l='viewBox="0 0 '+u+" "+u+'"',p=''+f+d+"\n";return"function"==typeof n&&n(null,p),p}},76171:function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:r,scale:r?4:a,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){for(var a=n.modules.size,i=n.modules.data,o=t.getScale(a,r),s=Math.floor((a+2*r.margin)*o),c=r.margin*o,u=[r.color.light,r.color.dark],f=0;f=c&&d>=c&&f0&&void 0!==n[0]?n[0]:this.connection,e.next=3,this.open(t);case 3:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"disconnect",value:(p=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.close();case 2:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"request",value:(u=(0,i.Z)((0,a.Z)().mark((function e(t,n){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.requestStrict((0,l.formatJsonRpcRequest)(t.method,t.params||[],(0,l.getBigIntRpcId)().toString()),n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"requestStrict",value:(r=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r=this;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=(0,i.Z)((0,a.Z)().mark((function e(i,o){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.connection.connected){e.next=9;break}return e.prev=1,e.next=4,r.open();case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),o(e.t0);case 9:return r.events.on("".concat(t.id),(function(e){(0,l.isJsonRpcError)(e)?o(e.error):i(e.result)})),e.prev=10,e.next=13,r.connection.send(t,n);case 13:e.next=18;break;case 15:e.prev=15,e.t1=e.catch(10),o(e.t1);case 18:case"end":return e.stop()}}),e,null,[[1,6],[10,15]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})},{key:"setConnection",value:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection}},{key:"onPayload",value:function(e){this.events.emit("payload",e),(0,l.isJsonRpcResponse)(e)?this.events.emit("".concat(e.id),e):this.events.emit("message",{type:e.method,data:e.params})}},{key:"onClose",value:function(e){e&&3e3===e.code&&this.events.emit("error",new Error("WebSocket connection closed abnormally with code: ".concat(e.code," ").concat(e.reason?"(".concat(e.reason,")"):""))),this.events.emit("disconnect")}},{key:"open",value:(n=(0,i.Z)((0,a.Z)().mark((function e(){var t,n=arguments;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:this.connection,this.connection!==t||!this.connection.connected){e.next=3;break}return e.abrupt("return");case 3:if(this.connection.connected&&this.close(),"string"!=typeof t){e.next=8;break}return e.next=7,this.connection.open(t);case 7:t=this.connection;case 8:return this.connection=this.setConnection(t),e.next=11,this.connection.open();case 11:this.registerEventListeners(),this.events.emit("connect");case 13:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"close",value:(t=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.connection.close();case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"registerEventListeners",value:function(){var e=this;this.hasRegisteredEventListeners||(this.connection.on("payload",(function(t){return e.onPayload(t)})),this.connection.on("close",(function(t){return e.onClose(t)})),this.connection.on("error",(function(t){return e.events.emit("error",t)})),this.connection.on("register_error",(function(t){return e.onClose()})),this.hasRegisteredEventListeners=!0)}}]),y}(l.IJsonRpcProvider),b=n(4131),h=n.n(b);function y(e){return"string"==typeof e?e:(t=e,JSON.stringify(t,(function(e,t){return"bigint"==typeof t?t.toString()+"n":t}))||"");var t}var m={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"},v=function(){function e(t){if((0,o.Z)(this,e),this.url=t,this.events=new c.EventEmitter,this.isAvailable=!1,this.registering=!1,!(0,l.isHttpUrl)(t))throw new Error("Provided URL is not compatible with HTTP connection: ".concat(t));this.url=t}var t,n,r,u;return(0,s.Z)(e,[{key:"connected",get:function(){return this.isAvailable}},{key:"connecting",get:function(){return this.registering}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"open",value:(u=(0,i.Z)((0,a.Z)().mark((function e(){var t,n=arguments;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:this.url,e.next=3,this.register(t);case 3:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"close",value:(r=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isAvailable){e.next=2;break}throw new Error("Connection already closed");case 2:this.onClose();case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"send",value:(n=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r,i,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isAvailable){e.next=3;break}return e.next=3,this.register();case 3:return e.prev=3,r=y(t),e.next=7,h()(this.url,Object.assign(Object.assign({},m),{body:r}));case 7:return i=e.sent,e.next=10,i.json();case 10:o=e.sent,this.onPayload({data:o}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),this.onError(t.id,e.t0);case 17:case"end":return e.stop()}}),e,this,[[3,14]])}))),function(e,t){return n.apply(this,arguments)})},{key:"register",value:(t=(0,i.Z)((0,a.Z)().mark((function e(){var t,n,r,i,o=this,s=arguments;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.length>0&&void 0!==s[0]?s[0]:this.url,(0,l.isHttpUrl)(t)){e.next=3;break}throw new Error("Provided URL is not compatible with HTTP connection: ".concat(t));case 3:if(!this.registering){e.next=7;break}return n=this.events.getMaxListeners(),(this.events.listenerCount("register_error")>=n||this.events.listenerCount("open")>=n)&&this.events.setMaxListeners(n+1),e.abrupt("return",new Promise((function(e,t){o.events.once("register_error",(function(e){o.resetMaxListeners(),t(e)})),o.events.once("open",(function(){if(o.resetMaxListeners(),void 0===o.isAvailable)return t(new Error("HTTP connection is missing or invalid"));e()}))})));case 7:return this.url=t,this.registering=!0,e.prev=9,r=y({id:1,jsonrpc:"2.0",method:"test",params:[]}),e.next=13,h()(t,Object.assign(Object.assign({},m),{body:r}));case 13:this.onOpen(),e.next=22;break;case 16:throw e.prev=16,e.t0=e.catch(9),i=this.parseError(e.t0),this.events.emit("register_error",i),this.onClose(),i;case 22:case"end":return e.stop()}}),e,this,[[9,16]])}))),function(){return t.apply(this,arguments)})},{key:"onOpen",value:function(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}},{key:"onClose",value:function(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}},{key:"onPayload",value:function(e){if(void 0!==e.data){var t="string"==typeof e.data?function(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type ".concat(typeof e));try{return t=e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3'),JSON.parse(t,(function(e,t){return"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t}))}catch(t){return e}var t}(e.data):e.data;this.events.emit("payload",t)}}},{key:"onError",value:function(e,t){var n=this.parseError(t),r=n.message||n.toString(),a=(0,l.formatJsonRpcError)(e,r);this.events.emit("payload",a)}},{key:"parseError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.url;return(0,l.parseConnectionError)(e,t,"HTTP")}},{key:"resetMaxListeners",value:function(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}]),e}(),g=n(78846),A=n(7574),w=n(19961),x=function(){function e(){var t=this;(0,o.Z)(this,e),this._eventEmitters=[],"undefined"!=typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",(function(){return t.trigger("online")})),window.addEventListener("offline",(function(){return t.trigger("offline")})))}return(0,s.Z)(e,[{key:"on",value:function(e,t){this._eventEmitters.push({event:e,callback:t})}},{key:"trigger",value:function(e){var t=[];e&&(t=this._eventEmitters.filter((function(t){return t.event===e}))),t.forEach((function(e){e.callback()}))}}]),e}(),_=void 0!==n.g.WebSocket?n.g.WebSocket:n(21144),k=function(){function e(t){var n=this;if((0,o.Z)(this,e),this.opts=t,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=t.protocol,this._version=t.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=t.subscriptions||[],this._netMonitor=t.netMonitor||new x,!t.url||"string"!=typeof t.url)throw new Error("Missing or invalid WebSocket url");this._url=t.url,this._netMonitor.on("online",(function(){return n._socketCreate()}))}var t;return(0,s.Z)(e,[{key:"readyState",get:function(){return this._socket?this._socket.readyState:-1},set:function(e){}},{key:"connecting",get:function(){return 0===this.readyState},set:function(e){}},{key:"connected",get:function(){return 1===this.readyState},set:function(e){}},{key:"closing",get:function(){return 2===this.readyState},set:function(e){}},{key:"closed",get:function(){return 3===this.readyState},set:function(e){}},{key:"open",value:function(){this._socketCreate()}},{key:"close",value:function(){this._socketClose()}},{key:"send",value:function(e,t,n){if(!t||"string"!=typeof t)throw new Error("Missing or invalid topic field");this._socketSend({topic:t,type:"pub",payload:e,silent:!!n})}},{key:"subscribe",value:function(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}},{key:"on",value:function(e,t){this._events.push({event:e,callback:t})}},{key:"_socketCreate",value:function(){var e,t,n,r,a,i,o,s,c=this;if(!this._nextSocket){var u=(e=this._url,t=this._protocol,n=this._version,i=(e.startsWith("https")?e.replace("https","wss"):e.startsWith("http")?e.replace("http","ws"):e).split("?"),o=(0,A.isBrowser)()?{protocol:t,version:n,env:"browser",host:(null===(r=(0,A.getLocation)())||void 0===r?void 0:r.host)||""}:{protocol:t,version:n,env:(null===(a=(0,A.detectEnv)())||void 0===a?void 0:a.name)||""},s=(0,A.appendToQueryString)((0,A.getQueryString)(i[1]||""),o),i[0]+"?"+s);if(this._nextSocket=new _(u),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=function(e){return c._socketReceive(e)},this._nextSocket.onopen=function(){return c._socketOpen()},this._nextSocket.onerror=function(e){return c._socketError(e)},this._nextSocket.onclose=function(){setTimeout((function(){c._nextSocket=null,c._socketCreate()}),1e3)}}}},{key:"_socketOpen",value:function(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}},{key:"_socketClose",value:function(){this._socket&&(this._socket.onclose=function(){},this._socket.close())}},{key:"_socketSend",value:function(e){var t=JSON.stringify(e);this._socket&&1===this._socket.readyState?this._socket.send(t):(this._setToQueue(e),this._socketCreate())}},{key:"_socketReceive",value:(t=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,n=JSON.parse(t.data),e.next=7;break;case 4:return e.prev=4,e.t0=e.catch(0),e.abrupt("return");case 7:this._socketSend({topic:n.topic,type:"ack",payload:"",silent:!0}),this._socket&&1===this._socket.readyState&&(r=this._events.filter((function(e){return"message"===e.event})),r&&r.length&&r.forEach((function(e){return e.callback(n)})));case 9:case"end":return e.stop()}}),e,this,[[0,4]])}))),function(e){return t.apply(this,arguments)})},{key:"_socketError",value:function(e){var t=this._events.filter((function(e){return"error"===e.event}));t&&t.length&&t.forEach((function(t){return t.callback(e)}))}},{key:"_queueSubscriptions",value:function(){var e=this;this._subscriptions.forEach((function(t){return e._queue.push({topic:t,type:"sub",payload:"",silent:!0})})),this._subscriptions=this.opts.subscriptions||[]}},{key:"_setToQueue",value:function(e){this._queue.push(e)}},{key:"_pushQueue",value:function(){var e=this;this._queue.forEach((function(t){return e._socketSend(t)})),this._queue=[]}}]),e}(),S=k,I=function(){function e(){(0,o.Z)(this,e),this._eventEmitters=[]}return(0,s.Z)(e,[{key:"subscribe",value:function(e){this._eventEmitters.push(e)}},{key:"unsubscribe",value:function(e){this._eventEmitters=this._eventEmitters.filter((function(t){return t.event!==e}))}},{key:"trigger",value:function(e){var t,n=[];(t=(0,A.isJsonRpcRequest)(e)?e.method:(0,A.isJsonRpcResponseSuccess)(e)||(0,A.isJsonRpcResponseError)(e)?"response:".concat(e.id):(0,A.isInternalEvent)(e)?e.event:"")&&(n=this._eventEmitters.filter((function(e){return e.event===t}))),n&&n.length||(0,A.isReservedEvent)(t)||(0,A.isInternalEvent)(t)||(n=this._eventEmitters.filter((function(e){return"call_request"===e.event}))),n.forEach((function(t){if((0,A.isJsonRpcResponseError)(e)){var n=new Error(e.error.message);t.callback(n,null)}else t.callback(null,e)}))}}]),e}(),E=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"walletconnect";(0,o.Z)(this,e),this.storageId=t}return(0,s.Z)(e,[{key:"getSession",value:function(){var e=null,t=(0,A.getLocal)(this.storageId);return t&&(0,A.isWalletConnectSession)(t)&&(e=t),e}},{key:"setSession",value:function(e){return(0,A.setLocal)(this.storageId,e),e}},{key:"removeSession",value:function(){(0,A.removeLocal)(this.storageId)}}]),e}(),C=E,T="abcdefghijklmnopqrstuvwxyz0123456789".split("").map((function(e){return"https://".concat(e,".bridge.walletconnect.org")}));function O(e){return function(e){return"walletconnect.org"===function(e){return function(e){var t=e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0];return(t=t.split(":")[0]).split("?")[0]}(e).split(".").slice(-2).join(".")}(e)}(e)?T[Math.floor(Math.random()*T.length)]:e}var P=function(){function e(t){if((0,o.Z)(this,e),this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new I,this._clientMeta=(0,A.getClientMeta)()||t.connectorOpts.clientMeta||null,this._cryptoLib=t.cryptoLib,this._sessionStorage=t.sessionStorage||new C(t.connectorOpts.storageId),this._qrcodeModal=t.connectorOpts.qrcodeModal,this._qrcodeModalOptions=t.connectorOpts.qrcodeModalOptions,this._signingMethods=[].concat((0,w.Z)(g.SIGNING_METHODS),(0,w.Z)(t.connectorOpts.signingMethods||[])),!t.connectorOpts.bridge&&!t.connectorOpts.uri&&!t.connectorOpts.session)throw new Error(g.ERROR_MISSING_REQUIRED);t.connectorOpts.bridge&&(this.bridge=O(t.connectorOpts.bridge)),t.connectorOpts.uri&&(this.uri=t.connectorOpts.uri);var n=t.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=t.transport||new S({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),t.connectorOpts.uri&&this._subscribeToSessionRequest(),t.pushServerOpts&&this._registerPushServer(t.pushServerOpts)}var t,n,r,c,u,f,d,l,p,b,h,y,m,v,x,_,k,E;return(0,s.Z)(e,[{key:"bridge",get:function(){return this._bridge},set:function(e){e&&(this._bridge=e)}},{key:"key",get:function(){return this._key?(0,A.convertArrayBufferToHex)(this._key,!0):""},set:function(e){if(e){var t=(0,A.convertHexToArrayBuffer)(e);this._key=t}}},{key:"clientId",get:function(){var e=this._clientId;return e||(e=this._clientId=(0,A.uuid)()),this._clientId},set:function(e){e&&(this._clientId=e)}},{key:"peerId",get:function(){return this._peerId},set:function(e){e&&(this._peerId=e)}},{key:"clientMeta",get:function(){var e=this._clientMeta;return e||(e=this._clientMeta=(0,A.getClientMeta)()),e},set:function(e){}},{key:"peerMeta",get:function(){return this._peerMeta},set:function(e){this._peerMeta=e}},{key:"handshakeTopic",get:function(){return this._handshakeTopic},set:function(e){e&&(this._handshakeTopic=e)}},{key:"handshakeId",get:function(){return this._handshakeId},set:function(e){e&&(this._handshakeId=e)}},{key:"uri",get:function(){return this._formatUri()},set:function(e){if(e){var t=this._parseUri(e),n=t.handshakeTopic,r=t.bridge,a=t.key;this.handshakeTopic=n,this.bridge=r,this.key=a}}},{key:"chainId",get:function(){return this._chainId},set:function(e){this._chainId=e}},{key:"networkId",get:function(){return this._networkId},set:function(e){this._networkId=e}},{key:"accounts",get:function(){return this._accounts},set:function(e){this._accounts=e}},{key:"rpcUrl",get:function(){return this._rpcUrl},set:function(e){this._rpcUrl=e}},{key:"connected",get:function(){return this._connected},set:function(e){}},{key:"pending",get:function(){return!!this._handshakeTopic},set:function(e){}},{key:"session",get:function(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}},set:function(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}},{key:"on",value:function(e,t){var n={event:e,callback:t};this._eventManager.subscribe(n)}},{key:"off",value:function(e){this._eventManager.unsubscribe(e)}},{key:"createInstantRequest",value:(k=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r,i,o=this;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._generateKey();case 2:return this._key=e.sent,n=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(t)}]}),this.handshakeId=n.id,this.handshakeTopic=(0,A.uuid)(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",(function(){throw new Error(g.ERROR_QRCODE_MODAL_USER_CLOSED)})),r=function(){o.killSession()},e.prev=9,e.next=12,this._sendCallRequest(n);case 12:return(i=e.sent)&&r(),e.abrupt("return",i);case 17:throw e.prev=17,e.t0=e.catch(9),r(),e.t0;case 21:case"end":return e.stop()}}),e,this,[[9,17]])}))),function(e){return k.apply(this,arguments)})},{key:"connect",value:(_=(0,i.Z)((0,a.Z)().mark((function e(t){var n=this;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._qrcodeModal){e.next=2;break}throw new Error(g.ERROR_QRCODE_MODAL_NOT_PROVIDED);case 2:if(!this.connected){e.next=4;break}return e.abrupt("return",{chainId:this.chainId,accounts:this.accounts});case 4:return e.next=6,this.createSession(t);case 6:return e.abrupt("return",new Promise(function(){var e=(0,i.Z)((0,a.Z)().mark((function e(t,r){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.on("modal_closed",(function(){return r(new Error(g.ERROR_QRCODE_MODAL_USER_CLOSED))})),n.on("connect",(function(e,n){if(e)return r(e);t(n.params[0])}));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"createSession",value:(x=(0,i.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._connected){e.next=2;break}throw new Error(g.ERROR_SESSION_CONNECTED);case 2:if(!this.pending){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,this._generateKey();case 6:this._key=e.sent,n=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:t&&t.chainId?t.chainId:null}]}),this.handshakeId=n.id,this.handshakeTopic=(0,A.uuid)(),this._sendSessionRequest(n,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]});case 12:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"approveSession",value:function(e){if(this._connected)throw new Error(g.ERROR_SESSION_CONNECTED);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";var t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:t};this._sendResponse(n),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}},{key:"rejectSession",value:function(e){if(this._connected)throw new Error(g.ERROR_SESSION_CONNECTED);var t=e&&e.message?e.message:g.ERROR_SESSION_REJECTED,n=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}},{key:"updateSession",value:function(e){if(!this._connected)throw new Error(g.ERROR_SESSION_DISCONNECTED);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";var t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[t]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}},{key:"killSession",value:(v=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t?t.message:"Session Disconnected",r={approved:!1,chainId:null,networkId:null,accounts:null},i=this._formatRequest({method:"wc_sessionUpdate",params:[r]}),e.next=5,this._sendRequest(i);case 5:this._handleSessionDisconnect(n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"sendTransaction",value:(m=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(g.ERROR_SESSION_DISCONNECTED);case 2:return n=t,r=this._formatRequest({method:"eth_sendTransaction",params:[n]}),e.next=6,this._sendCallRequest(r);case 6:return i=e.sent,e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"signTransaction",value:(y=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(g.ERROR_SESSION_DISCONNECTED);case 2:return n=t,r=this._formatRequest({method:"eth_signTransaction",params:[n]}),e.next=6,this._sendCallRequest(r);case 6:return i=e.sent,e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return y.apply(this,arguments)})},{key:"signMessage",value:(h=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(g.ERROR_SESSION_DISCONNECTED);case 2:return n=this._formatRequest({method:"eth_sign",params:t}),e.next=5,this._sendCallRequest(n);case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"signPersonalMessage",value:(b=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(g.ERROR_SESSION_DISCONNECTED);case 2:return n=this._formatRequest({method:"personal_sign",params:t}),e.next=5,this._sendCallRequest(n);case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"signTypedData",value:(E=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(g.ERROR_SESSION_DISCONNECTED);case 2:return n=this._formatRequest({method:"eth_signTypedData",params:t}),e.next=5,this._sendCallRequest(n);case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"updateChain",value:(p=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error("Session currently disconnected");case 2:return n=this._formatRequest({method:"wallet_updateChain",params:[t]}),e.next=5,this._sendCallRequest(n);case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"unsafeSend",value:function(e,t){var n=this;return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise((function(t,r){n._subscribeToResponse(e.id,(function(e,n){if(e)r(e);else{if(!n)throw new Error(g.ERROR_MISSING_JSON_RPC);t(n)}}))}))}},{key:"sendCustomRequest",value:(l=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(g.ERROR_SESSION_DISCONNECTED);case 2:e.t0=t.method,e.next="eth_accounts"===e.t0?5:"eth_chainId"===e.t0?6:"eth_sendTransaction"===e.t0||"eth_signTransaction"===e.t0?7:"personal_sign"===e.t0?9:11;break;case 5:return e.abrupt("return",this.accounts);case 6:return e.abrupt("return",(0,A.convertNumberToHex)(this.chainId));case 7:case 9:return t.params,e.abrupt("break",12);case 11:return e.abrupt("break",12);case 12:return r=this._formatRequest(t),e.next=15,this._sendCallRequest(r,n);case 15:return i=e.sent,e.abrupt("return",i);case 17:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"approveRequest",value:function(e){if(!(0,A.isJsonRpcResponseSuccess)(e))throw new Error(g.ERROR_MISSING_RESULT);var t=this._formatResponse(e);this._sendResponse(t)}},{key:"rejectRequest",value:function(e){if(!(0,A.isJsonRpcResponseError)(e))throw new Error(g.ERROR_MISSING_ERROR);var t=this._formatResponse(e);this._sendResponse(t)}},{key:"transportClose",value:function(){this._transport.close()}},{key:"_sendRequest",value:(d=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r,i,o,s,c;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._formatRequest(t),e.next=3,this._encrypt(r);case 3:i=e.sent,o=void 0!==(null==n?void 0:n.topic)?n.topic:this.peerId,s=JSON.stringify(i),c=void 0!==(null==n?void 0:n.forcePushNotification)?!n.forcePushNotification:(0,A.isSilentPayload)(r),this._transport.send(s,o,c);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"_sendResponse",value:(f=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._encrypt(t);case 2:n=e.sent,r=this.peerId,i=JSON.stringify(n),this._transport.send(i,r,!0);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"_sendSessionRequest",value:(u=(0,i.Z)((0,a.Z)().mark((function e(t,n,r){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._sendRequest(t,r),this._subscribeToSessionResponse(t.id,n);case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return u.apply(this,arguments)})},{key:"_sendCallRequest",value:function(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}},{key:"_formatRequest",value:function(e){if(void 0===e.method)throw new Error(g.ERROR_MISSING_METHOD);return{id:void 0===e.id?(0,A.payloadId)():e.id,jsonrpc:"2.0",method:e.method,params:void 0===e.params?[]:e.params}}},{key:"_formatResponse",value:function(e){if(void 0===e.id)throw new Error(g.ERROR_MISSING_ID);var t={id:e.id,jsonrpc:"2.0"};if((0,A.isJsonRpcResponseError)(e)){var n=(0,A.formatRpcError)(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:n})}if((0,A.isJsonRpcResponseSuccess)(e))return Object.assign(Object.assign({},t),e);throw new Error(g.ERROR_INVALID_RESPONSE)}},{key:"_handleSessionDisconnect",value:function(e){var t=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),(0,A.removeLocal)(g.MOBILE_LINK_CHOICE_KEY)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession(),this.transportClose()}},{key:"_handleSessionResponse",value:function(e,t){t&&t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e)}},{key:"_handleIncomingMessages",value:(c=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if([this.clientId,this.handshakeTopic].includes(t.topic)){e.next=3;break}return e.abrupt("return");case 3:e.prev=3,n=JSON.parse(t.payload),e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(3),e.abrupt("return");case 10:return e.next=12,this._decrypt(n);case 12:(r=e.sent)&&this._eventManager.trigger(r);case 14:case"end":return e.stop()}}),e,this,[[3,7]])}))),function(e){return c.apply(this,arguments)})},{key:"_subscribeToSessionRequest",value:function(){this._transport.subscribe(this.handshakeTopic)}},{key:"_subscribeToResponse",value:function(e,t){this.on("response:".concat(e),t)}},{key:"_subscribeToSessionResponse",value:function(e,t){var n=this;this._subscribeToResponse(e,(function(e,r){e?n._handleSessionResponse(e.message):(0,A.isJsonRpcResponseSuccess)(r)?n._handleSessionResponse(t,r.result):r.error&&r.error.message?n._handleSessionResponse(r.error.message):n._handleSessionResponse(t)}))}},{key:"_subscribeToCallResponse",value:function(e){var t=this;return new Promise((function(n,r){t._subscribeToResponse(e,(function(e,t){e?r(e):(0,A.isJsonRpcResponseSuccess)(t)?n(t.result):t.error&&t.error.message?r(t.error):r(new Error(g.ERROR_INVALID_RESPONSE))}))}))}},{key:"_subscribeToInternalEvents",value:function(){var e=this;this.on("display_uri",(function(){e._qrcodeModal&&e._qrcodeModal.open(e.uri,(function(){e._eventManager.trigger({event:"modal_closed",params:[]})}),e._qrcodeModalOptions)})),this.on("connect",(function(){e._qrcodeModal&&e._qrcodeModal.close()})),this.on("call_request_sent",(function(t,n){var r=n.params[0].request;if((0,A.isMobile)()&&e._signingMethods.includes(r.method)){var a=(0,A.getLocal)(g.MOBILE_LINK_CHOICE_KEY);a&&(window.location.href=a.href)}})),this.on("wc_sessionRequest",(function(t,n){t&&e._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:t.toString()}]}),e.handshakeId=n.id,e.peerId=n.params[0].peerId,e.peerMeta=n.params[0].peerMeta;var r=Object.assign(Object.assign({},n),{method:"session_request"});e._eventManager.trigger(r)})),this.on("wc_sessionUpdate",(function(t,n){t&&e._handleSessionResponse(t.message),e._handleSessionResponse("Session disconnected",n.params[0])}))}},{key:"_initTransport",value:function(){var e=this;this._transport.on("message",(function(t){return e._handleIncomingMessages(t)})),this._transport.on("open",(function(){return e._eventManager.trigger({event:"transport_open",params:[]})})),this._transport.on("close",(function(){return e._eventManager.trigger({event:"transport_close",params:[]})})),this._transport.on("error",(function(){return e._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})})),this._transport.open()}},{key:"_formatUri",value:function(){var e=this.protocol,t=this.handshakeTopic,n=this.version,r=encodeURIComponent(this.bridge),a=this.key;return"".concat(e,":").concat(t,"@").concat(n,"?bridge=").concat(r,"&key=").concat(a)}},{key:"_parseUri",value:function(e){var t=(0,A.parseWalletConnectUri)(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");var n=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");var r=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");return{handshakeTopic:n,bridge:r,key:t.key}}throw new Error(g.ERROR_INVALID_URI)}},{key:"_generateKey",value:(r=(0,i.Z)((0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._cryptoLib){e.next=5;break}return e.next=3,this._cryptoLib.generateKey();case 3:return t=e.sent,e.abrupt("return",t);case 5:return e.abrupt("return",null);case 6:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"_encrypt",value:(n=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this._key,!this._cryptoLib||!n){e.next=6;break}return e.next=4,this._cryptoLib.encrypt(t,n);case 4:return r=e.sent,e.abrupt("return",r);case 6:return e.abrupt("return",null);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_decrypt",value:(t=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this._key,!this._cryptoLib||!n){e.next=6;break}return e.next=4,this._cryptoLib.decrypt(t,n);case 4:return r=e.sent,e.abrupt("return",r);case 6:return e.abrupt("return",null);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"_getStorageSession",value:function(){var e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}},{key:"_setStorageSession",value:function(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}},{key:"_removeStorageSession",value:function(){this._sessionStorage&&this._sessionStorage.removeSession()}},{key:"_manageStorageSession",value:function(){this._connected?this._setStorageSession():this._removeStorageSession()}},{key:"_registerPushServer",value:function(e){if(!e.url||"string"!=typeof e.url)throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||"string"!=typeof e.type)throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||"string"!=typeof e.token)throw Error("Invalid or missing pushServerOpts.token parameter value");var t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",function(){var n=(0,i.Z)((0,a.Z)().mark((function n(r,i){var o,s;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=2;break}throw r;case 2:return e.peerMeta&&(o=i.params[0].peerMeta.name,t.peerName=o),n.prev=3,n.next=6,fetch("".concat(e.url,"/new"),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)});case 6:return s=n.sent,n.next=9,s.json();case 9:if(n.sent.success){n.next=12;break}throw Error("Failed to register in Push Server");case 12:n.next=17;break;case 14:throw n.prev=14,n.t0=n.catch(3),Error("Failed to register in Push Server");case 17:case"end":return n.stop()}}),n,null,[[3,14]])})));return function(e,t){return n.apply(this,arguments)}}())}}]),e}(),M=P,B=n(51102);function R(e){return B.getBrowerCrypto().getRandomValues(new Uint8Array(e))}var N=256,D=256,j="AES-CBC",U="SHA-".concat(N),L="HMAC",Z=("aes-".concat(N,"-cbc"),"sha".concat(D),"encrypt"),F="decrypt",H="sign",z="verify";function q(e){return e===j?{length:N,name:j}:{hash:{name:U},name:L}}function Q(e){return e===j?[Z,F]:[H,z]}function K(e){return V.apply(this,arguments)}function V(){return V=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r=arguments;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:j,e.abrupt("return",B.getSubtleCrypto().importKey("raw",t,q(n),!0,Q(n)));case 2:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}function J(){return(J=(0,i.Z)((0,a.Z)().mark((function e(t,n,r){var i,o,s;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=B.getSubtleCrypto(),e.next=3,K(n,j);case 3:return o=e.sent,e.next=6,i.encrypt({iv:t,name:j},o,r);case 6:return s=e.sent,e.abrupt("return",new Uint8Array(s));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function G(){return(G=(0,i.Z)((0,a.Z)().mark((function e(t,n,r){var i,o,s;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=B.getSubtleCrypto(),e.next=3,K(n,j);case 3:return o=e.sent,e.next=6,i.decrypt({iv:t,name:j},o,r);case 6:return s=e.sent,e.abrupt("return",new Uint8Array(s));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e,t){return Y.apply(this,arguments)}function Y(){return(Y=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r,i,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=B.getSubtleCrypto(),e.next=3,K(t,L);case 3:return i=e.sent,e.next=6,r.sign({length:D,name:L},i,n);case 6:return o=e.sent,e.abrupt("return",new Uint8Array(o));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(e,t,n){return function(e,t,n){return J.apply(this,arguments)}(e,t,n)}function $(e,t,n){return function(e,t,n){return G.apply(this,arguments)}(e,t,n)}function ee(e,t){return te.apply(this,arguments)}function te(){return(te=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W(t,n);case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ne=n(15575);function re(e){return ae.apply(this,arguments)}function ae(){return(ae=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=R((t||256)/8),r=(0,A.convertBufferToArrayBuffer)(ne.arrayToBuffer(n)),e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ie(e,t){return oe.apply(this,arguments)}function oe(){return(oe=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r,i,o,s,c,u,f;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=ne.hexToArray(t.data),i=ne.hexToArray(t.iv),o=ne.hexToArray(t.hmac),s=ne.arrayToHex(o,!1),c=ne.concatArrays(r,i),e.next=7,ee(n,c);case 7:if(u=e.sent,f=ne.arrayToHex(u,!1),ne.removeHexPrefix(s)!==ne.removeHexPrefix(f)){e.next=11;break}return e.abrupt("return",!0);case 11:return e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(e,t,n){return ce.apply(this,arguments)}function ce(){return(ce=(0,i.Z)((0,a.Z)().mark((function e(t,n,r){var i,o,s,c,u,f,d,l,p,b,h;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=ne.bufferToArray((0,A.convertArrayBufferToBuffer)(n)),e.t0=r,e.t0){e.next=6;break}return e.next=5,re(128);case 5:e.t0=e.sent;case 6:return o=e.t0,s=ne.bufferToArray((0,A.convertArrayBufferToBuffer)(o)),c=ne.arrayToHex(s,!1),u=JSON.stringify(t),f=ne.utf8ToArray(u),e.next=13,X(s,i,f);case 13:return d=e.sent,l=ne.arrayToHex(d,!1),p=ne.concatArrays(d,s),e.next=18,ee(i,p);case 18:return b=e.sent,h=ne.arrayToHex(b,!1),e.abrupt("return",{data:l,hmac:h,iv:c});case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ue(e,t){return fe.apply(this,arguments)}function fe(){return(fe=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r,i,o,s,c,u;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=ne.bufferToArray((0,A.convertArrayBufferToBuffer)(n))){e.next=3;break}throw new Error("Missing key: required for decryption");case 3:return e.next=5,ie(t,r);case 5:if(e.sent){e.next=8;break}return e.abrupt("return",null);case 8:return i=ne.hexToArray(t.data),o=ne.hexToArray(t.iv),e.next=12,$(o,r,i);case 12:s=e.sent,c=ne.arrayToUtf8(s),e.prev=14,u=JSON.parse(c),e.next=21;break;case 18:return e.prev=18,e.t0=e.catch(14),e.abrupt("return",null);case 21:return e.abrupt("return",u);case 22:case"end":return e.stop()}}),e,null,[[14,18]])})))).apply(this,arguments)}var de=function(e){(0,f.Z)(n,e);var t=(0,d.Z)(n);function n(e,a){return(0,o.Z)(this,n),t.call(this,{cryptoLib:r,connectorOpts:e,pushServerOpts:a})}return(0,s.Z)(n)}(M),le=n(38259),pe=n.n(le),be=function(e){(0,f.Z)(b,e);var t,n,r,c,p=(0,d.Z)(b);function b(e){var t;return(0,o.Z)(this,b),(t=p.call(this)).events=new(u()),t.accounts=[],t.chainId=1,t.pending=!1,t.bridge="https://bridge.walletconnect.org",t.qrcode=!0,t.qrcodeModalOptions=void 0,t.opts=e,t.chainId=(null==e?void 0:e.chainId)||t.chainId,t.wc=t.register(e),t}return(0,s.Z)(b,[{key:"connected",get:function(){return void 0!==this.wc&&this.wc.connected}},{key:"connecting",get:function(){return this.pending}},{key:"connector",get:function(){return this.wc=this.register(this.opts),this.wc}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"open",value:(c=(0,i.Z)((0,a.Z)().mark((function e(t){var n=this;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.connected){e.next=3;break}return this.onOpen(),e.abrupt("return");case 3:return e.abrupt("return",new Promise((function(e,r){n.on("error",(function(e){r(e)})),n.on("open",(function(){e()})),n.create(t)})));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"close",value:(r=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==this.wc){e.next=2;break}return e.abrupt("return");case 2:this.wc.connected&&this.wc.killSession(),this.onClose();case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"send",value:(n=(0,i.Z)((0,a.Z)().mark((function e(t){var n=this;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.wc=this.register(this.opts),this.connected){e.next=4;break}return e.next=4,this.open();case 4:this.sendPayload(t).then((function(e){return n.events.emit("payload",e)})).catch((function(e){return n.events.emit("payload",(0,l.formatJsonRpcError)(t.id,e.message))}));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"register",value:function(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=(null==e?void 0:e.connector)?e.connector.bridge:(null==e?void 0:e.bridge)||"https://bridge.walletconnect.org",this.qrcode=void 0===(null==e?void 0:e.qrcode)||!1!==e.qrcode,this.chainId=void 0!==(null==e?void 0:e.chainId)?e.chainId:this.chainId,this.qrcodeModalOptions=null==e?void 0:e.qrcodeModalOptions;var t={bridge:this.bridge,qrcodeModal:this.qrcode?pe():void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:null==e?void 0:e.storageId,signingMethods:null==e?void 0:e.signingMethods,clientMeta:null==e?void 0:e.clientMeta};if(this.wc=void 0!==(null==e?void 0:e.connector)?e.connector:new de(t),void 0===this.wc)throw new Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}},{key:"onOpen",value:function(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}},{key:"onClose",value:function(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}},{key:"onError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Failed or Rejected Request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-32e3,r={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:t}};return this.events.emit("payload",r),r}},{key:"create",value:function(e){var t=this;this.wc=this.register(this.opts),this.chainId=e||this.chainId,this.connected||this.pending||(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then((function(){return t.events.emit("created")})).catch((function(e){return t.events.emit("error",e)})))}},{key:"registerConnectorEvents",value:function(){var e=this;this.wc=this.register(this.opts),this.wc.on("connect",(function(t){var n,r;t?e.events.emit("error",t):(e.accounts=(null===(n=e.wc)||void 0===n?void 0:n.accounts)||[],e.chainId=(null===(r=e.wc)||void 0===r?void 0:r.chainId)||e.chainId,e.onOpen())})),this.wc.on("disconnect",(function(t){t?e.events.emit("error",t):e.onClose()})),this.wc.on("modal_closed",(function(){e.events.emit("error",new Error("User closed modal"))})),this.wc.on("session_update",(function(t,n){var r=n.params[0],a=r.accounts,i=r.chainId;(!e.accounts||a&&e.accounts!==a)&&(e.accounts=a,e.events.emit("accountsChanged",a)),(!e.chainId||i&&e.chainId!==i)&&(e.chainId=i,e.events.emit("chainChanged",i))}))}},{key:"sendPayload",value:(t=(0,i.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.wc=this.register(this.opts),e.prev=1,e.next=4,this.wc.unsafeSend(t);case 4:return n=e.sent,e.abrupt("return",this.sanitizeResponse(n));case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",this.onError(t,e.t0.message));case 11:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(e){return t.apply(this,arguments)})},{key:"sanitizeResponse",value:function(e){return void 0!==e.error&&void 0===e.error.code?(0,l.formatJsonRpcError)(e.id,e.error.message,e.error.data):e}}]),b}(n(77332).XR),he=function(){function e(t){(0,o.Z)(this,e),this.events=new(u()),this.rpc={infuraId:null==t?void 0:t.infuraId,custom:null==t?void 0:t.rpc},this.signer=new p(new be(t));var n=this.signer.connection.chainId||(null==t?void 0:t.chainId)||1;this.http=this.setHttpProvider(n),this.registerEventListeners()}var t,n,r,c;return(0,s.Z)(e,[{key:"connected",get:function(){return this.signer.connection.connected}},{key:"connector",get:function(){return this.signer.connection.connector}},{key:"accounts",get:function(){return this.signer.connection.accounts}},{key:"chainId",get:function(){return this.signer.connection.chainId}},{key:"rpcUrl",get:function(){var e;return(null===(e=this.http)||void 0===e?void 0:e.connection).url||""}},{key:"request",value:(c=(0,i.Z)((0,a.Z)().mark((function e(t){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.method,e.next="eth_requestAccounts"===e.t0?3:"eth_accounts"===e.t0?6:"eth_chainId"===e.t0?7:8;break;case 3:return e.next=5,this.connect();case 5:case 6:return e.abrupt("return",this.signer.connection.accounts);case 7:return e.abrupt("return",this.signer.connection.chainId);case 8:return e.abrupt("break",9);case 9:if(!g.SIGNING_METHODS.includes(t.method)){e.next=11;break}return e.abrupt("return",this.signer.request(t));case 11:if(void 0!==this.http){e.next=13;break}throw new Error("Cannot request JSON-RPC method (".concat(t.method,") without provided rpc url"));case 13:return e.abrupt("return",this.http.request(t));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"sendAsync",value:function(e,t){this.request(e).then((function(e){return t(null,e)})).catch((function(e){return t(e,void 0)}))}},{key:"enable",value:(r=(0,i.Z)((0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.request({method:"eth_requestAccounts"});case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"connect",value:(n=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.signer.connection.connected){e.next=3;break}return e.next=3,this.signer.connect();case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"disconnect",value:(t=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.signer.connection.connected){e.next=3;break}return e.next=3,this.signer.disconnect();case 3:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"isWalletConnect",get:function(){return!0}},{key:"registerEventListeners",value:function(){var e=this;this.signer.connection.on("accountsChanged",(function(t){e.events.emit("accountsChanged",t)})),this.signer.connection.on("chainChanged",(function(t){e.http=e.setHttpProvider(t),e.events.emit("chainChanged",t)})),this.signer.on("disconnect",(function(){e.events.emit("disconnect")}))}},{key:"setHttpProvider",value:function(e){var t=(0,A.getRpcUrl)(e,this.rpc);if(void 0!==t)return new p(new v(t))}}]),e}(),ye=he},29447:function(){},78846:function(e,t,n){"use strict";n.d(t,{ERROR_INVALID_RESPONSE:function(){return l},ERROR_INVALID_URI:function(){return p},ERROR_MISSING_ERROR:function(){return c},ERROR_MISSING_ID:function(){return f},ERROR_MISSING_JSON_RPC:function(){return o},ERROR_MISSING_METHOD:function(){return u},ERROR_MISSING_REQUIRED:function(){return d},ERROR_MISSING_RESULT:function(){return s},ERROR_QRCODE_MODAL_NOT_PROVIDED:function(){return b},ERROR_QRCODE_MODAL_USER_CLOSED:function(){return h},ERROR_SESSION_CONNECTED:function(){return r},ERROR_SESSION_DISCONNECTED:function(){return a},ERROR_SESSION_REJECTED:function(){return i},INFURA_NETWORKS:function(){return g},MOBILE_LINK_CHOICE_KEY:function(){return v},RESERVED_EVENTS:function(){return y},SIGNING_METHODS:function(){return m}}),n(29447);var r="Session currently connected",a="Session currently disconnected",i="Session Rejected",o="Missing JSON RPC response",s='JSON-RPC success response must include "result" field',c='JSON-RPC error response must include "error" field',u='JSON RPC request must have valid "method" value',f='JSON RPC request must have valid "id" value',d="Missing one of the required parameters: bridge / uri / session",l="JSON RPC response format is invalid",p="URI format is invalid",b="QRCode Modal not provided",h="User close QRCode Modal",y=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],m=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign"].concat(["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"]),v="WALLETCONNECT_DEEPLINK_CHOICE",g={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"}},7574:function(e,t,n){"use strict";n.r(t),n.d(t,{addHexPrefix:function(){return be},appendToQueryString:function(){return je},concatArrayBuffers:function(){return c},concatBuffers:function(){return p},convertArrayBufferToBuffer:function(){return a},convertArrayBufferToHex:function(){return o},convertArrayBufferToNumber:function(){return s},convertArrayBufferToUtf8:function(){return i},convertBufferToArrayBuffer:function(){return u},convertBufferToHex:function(){return d},convertBufferToNumber:function(){return l},convertBufferToUtf8:function(){return f},convertHexToArrayBuffer:function(){return g},convertHexToBuffer:function(){return v},convertHexToNumber:function(){return w},convertHexToUtf8:function(){return A},convertNumberToArrayBuffer:function(){return _},convertNumberToBuffer:function(){return x},convertNumberToHex:function(){return S},convertNumberToUtf8:function(){return k},convertUtf8ToArrayBuffer:function(){return b},convertUtf8ToBuffer:function(){return h},convertUtf8ToHex:function(){return y},convertUtf8ToNumber:function(){return m},detectEnv:function(){return Y},detectOS:function(){return X},formatIOSMobile:function(){return xe},formatMobileRegistry:function(){return Re},formatMobileRegistryEntry:function(){return Be},formatQueryString:function(){return Le},formatRpcError:function(){return Te},getClientMeta:function(){return fe},getCrypto:function(){return J},getCryptoOrThrow:function(){return V},getDappRegistryUrl:function(){return Me},getDocument:function(){return H},getDocumentOrThrow:function(){return F},getEncoding:function(){return Je},getFromWindow:function(){return L},getFromWindowOrThrow:function(){return Z},getInfuraRpcUrl:function(){return Ae},getLocal:function(){return se},getLocalStorage:function(){return W},getLocalStorageOrThrow:function(){return G},getLocation:function(){return K},getLocationOrThrow:function(){return Q},getMobileLinkRegistry:function(){return Se},getMobileRegistryEntry:function(){return ke},getNavigator:function(){return q},getNavigatorOrThrow:function(){return z},getQueryString:function(){return De},getRpcUrl:function(){return we},getType:function(){return Ve},getWalletRegistryUrl:function(){return Pe},isAndroid:function(){return $},isArrayBuffer:function(){return Ke},isBrowser:function(){return re},isBuffer:function(){return qe},isEmptyArray:function(){return ze},isEmptyString:function(){return He},isHexString:function(){return Ge},isIOS:function(){return ee},isInternalEvent:function(){return et},isJsonRpcRequest:function(){return Ye},isJsonRpcResponseError:function(){return $e},isJsonRpcResponseSuccess:function(){return Xe},isJsonRpcSubscription:function(){return We},isMobile:function(){return te},isNode:function(){return ne},isReservedEvent:function(){return tt},isSilentPayload:function(){return nt},isTypedArray:function(){return Qe},isWalletConnectSession:function(){return Ze},logDeprecationWarning:function(){return ge},parseQueryString:function(){return Ue},parseWalletConnectUri:function(){return Fe},payloadId:function(){return me},promisify:function(){return Ce},removeHexLeadingZeros:function(){return ye},removeHexPrefix:function(){return he},removeLocal:function(){return ce},safeJsonParse:function(){return ae},safeJsonStringify:function(){return ie},sanitizeHex:function(){return pe},saveMobileLinkInfo:function(){return _e},setLocal:function(){return oe},uuid:function(){return ve}});var r=n(15575);function a(e){return r.arrayToBuffer(new Uint8Array(e))}function i(e){return r.arrayToUtf8(new Uint8Array(e))}function o(e,t){return r.arrayToHex(new Uint8Array(e),!t)}function s(e){return r.arrayToNumber(new Uint8Array(e))}function c(){for(var e=arguments.length,t=new Array(e),n=0;n1)}function te(){return!!X()&&($()||ee())}function ne(){var e=Y();return!(!e||!e.name)&&"node"===e.name.toLowerCase()}function re(){return!ne()&&!!q()}var ae=function(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type ".concat(typeof e));try{return t=e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3'),JSON.parse(t,(function(e,t){return"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t}))}catch(t){return e}var t},ie=function(e){return"string"==typeof e?e:(t=e,JSON.stringify(t,(function(e,t){return"bigint"==typeof t?t.toString()+"n":t}))||"");var t};function oe(e,t){var n=ie(t),r=W();r&&r.setItem(e,n)}function se(e){var t=null,n=W();return n&&(t=n.getItem(e)),t?ae(t):t}function ce(e){var t=W();t&&t.removeItem(e)}var ue=n(41565);function fe(){return ue.D()}var de=n(12561),le=n(78846);function pe(e){return r.sanitizeHex(e)}function be(e){return r.addHexPrefix(e)}function he(e){return r.removeHexPrefix(e)}function ye(e){return r.removeHexLeadingZeros(r.addHexPrefix(e))}var me=de.payloadId;function ve(){return function(e,t){for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t}()}function ge(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function Ae(e,t){var n,r=le.INFURA_NETWORKS[e];return r&&(n="https://".concat(r,".infura.io/v3/").concat(t)),n}function we(e,t){var n,r=Ae(e,t.infuraId);return t.custom&&t.custom[e]?n=t.custom[e]:r&&(n=r),n}function xe(e,t){var n=encodeURIComponent(e);return t.universalLink?"".concat(t.universalLink,"/wc?uri=").concat(n):t.deepLink?"".concat(t.deepLink).concat(t.deepLink.endsWith(":")?"//":"/","wc?uri=").concat(n):""}function _e(e){var t=e.href.split("?")[0];oe(le.MOBILE_LINK_CHOICE_KEY,Object.assign(Object.assign({},e),{href:t}))}function ke(e,t){return e.filter((function(e){return e.name.toLowerCase().includes(t.toLowerCase())}))[0]}function Se(e,t){var n=e;return t&&(n=t.map((function(t){return ke(e,t)})).filter(Boolean)),n}var Ie=n(24611),Ee=n(53755);function Ce(e,t){var n=function(){var n=(0,Ee.Z)((0,Ie.Z)().mark((function n(){var r,a,i,o=arguments;return(0,Ie.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(r=o.length,a=new Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:"mobile";return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:null!==(t=e.image_url.sm)&&void 0!==t?t:"",universalLink:e[n].universal||"",deepLink:e[n].native||""}}function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mobile";return Object.values(e).filter((function(e){return!!e[t].universal||!!e[t].native})).map((function(e){return Be(e,t)}))}var Ne=n(37809);function De(e){var t=-1!==e.indexOf("?")?e.indexOf("?"):void 0;return void 0!==t?e.substr(t):""}function je(e,t){var n=Ue(e);return Le(n=Object.assign(Object.assign({},n),t))}function Ue(e){return Ne.parse(e)}function Le(e){return Ne.stringify(e)}function Ze(e){return void 0!==e.bridge}function Fe(e){var t,n,r,a,i=e.indexOf(":"),o=-1!==e.indexOf("?")?e.indexOf("?"):void 0,s=e.substring(0,i),c=(t=e.substring(i+1,o),{handshakeTopic:(n=t.split("@"))[0],version:parseInt(n[1],10)}),u=(r=void 0!==o?e.substr(o):"",{key:(a=Ue(r)).key||"",bridge:a.bridge||""});return Object.assign(Object.assign({protocol:s},c),u)}function He(e){return""===e||"string"==typeof e&&""===e.trim()}function ze(e){return!(e&&e.length)}function qe(e){return r.isBuffer(e)}function Qe(e){return r.isTypedArray(e)}function Ke(e){return r.isArrayBuffer(e)}function Ve(e){return r.getType(e)}function Je(e){return r.getEncoding(e)}function Ge(e,t){return r.isHexString(e,t)}function We(e){return"object"==typeof e.params}function Ye(e){return void 0!==e.method}function Xe(e){return void 0!==e.result}function $e(e){return void 0!==e.error}function et(e){return void 0!==e.event}function tt(e){return le.RESERVED_EVENTS.includes(e)||e.startsWith("wc_")}function nt(e){return!!e.method.startsWith("wc_")||!le.SIGNING_METHODS.includes(e.method)}},31469:function(e,t){"use strict";function n(e){var t=void 0;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function r(e){var t=n(e);if(!t)throw new Error("".concat(e," is not defined in Window"));return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=n,t.getFromWindowOrThrow=r,t.getDocumentOrThrow=function(){return r("document")},t.getDocument=function(){return n("document")},t.getNavigatorOrThrow=function(){return r("navigator")},t.getNavigator=function(){return n("navigator")},t.getLocationOrThrow=function(){return r("location")},t.getLocation=function(){return n("location")},t.getCryptoOrThrow=function(){return r("crypto")},t.getCrypto=function(){return n("crypto")},t.getLocalStorageOrThrow=function(){return r("localStorage")},t.getLocalStorage=function(){return n("localStorage")}},41565:function(e,t,n){"use strict";t.D=void 0;var r=n(31469);t.D=function(){var e,t;try{e=r.getDocumentOrThrow(),t=r.getLocationOrThrow()}catch(e){return null}function n(){for(var t=arguments.length,n=new Array(t),r=0;r-1){var s=i.getAttribute("href");if(s)if(-1===s.toLowerCase().indexOf("https:")&&-1===s.toLowerCase().indexOf("http:")&&0!==s.indexOf("//")){var c=t.protocol+"//"+t.host;if(0===s.indexOf("/"))c+=s;else{var u=t.pathname.split("/");u.pop(),c+=u.join("/")+"/"+s}r.push(c)}else if(0===s.indexOf("//")){var f=t.protocol+s;r.push(f)}else r.push(s)}}return r}(),name:a}}},37809:function(e,t,n){"use strict";var r=n(10202).default,a=n(21146).default,i=n(48648).default,o=n(81818),s=n(14085),c=n(70347),u=n(57345);function f(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function d(e,t){return t.encode?t.strict?o(e):encodeURIComponent(e):e}function l(e,t){return t.decode?s(e):e}function p(e){return Array.isArray(e)?e.sort():"object"==typeof e?p(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function b(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){var t=(e=b(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function y(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){f((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var a="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!a&&l(n,e).includes(e.arrayFormatSeparator);n=i?l(n,e):n;var o=a||i?n.split(e.arrayFormatSeparator).map((function(t){return l(t,e)})):null===n?n:l(n,e);r[t]=o};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),i=Object.create(null);if("string"!=typeof e)return i;if(!(e=e.trim().replace(/^[?#&]/,"")))return i;var o,s=a(e.split("&"));try{for(s.s();!(o=s.n()).done;){var u=o.value;if(""!==u){var d=c(t.decode?u.replace(/\+/g," "):u,"="),b=r(d,2),h=b[0],m=b[1];m=void 0===m?null:["comma","separator"].includes(t.arrayFormat)?m:l(m,t),n(l(h,t),m,i)}}}catch(e){s.e(e)}finally{s.f()}for(var v=0,g=Object.keys(i);v0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=c(e,"#"),a=r(n,2),i=a[0],o=a[1];return Object.assign({url:i.split("?")[0]||"",query:m(h(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:l(o,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r=b(e.url).split("?")[0]||"",a=t.extract(e.url),i=t.parse(a,{sort:!1}),o=Object.assign(i,e.query),s=t.stringify(o,n);s&&(s="?".concat(s));var c=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(c="#".concat(d(e.fragmentIdentifier,n))),"".concat(r).concat(s).concat(c)},t.pick=function(e,n,r){r=Object.assign({parseFragmentIdentifier:!0},r);var a=t.parseUrl(e,r),i=a.url,o=a.query,s=a.fragmentIdentifier;return t.stringifyUrl({url:i,query:u(o,n),fragmentIdentifier:s},r)},t.exclude=function(e,n,r){var a=Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)};return t.pick(e,a,r)}},28370:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,i||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,a=[];if(0===this._eventsCount)return a;for(r in e=this._events)t.call(e,r)&&a.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,i=r.length,o=new Array(i);a>6],a=0==(32&n);if(31==(31&n)){var i=n;for(n=0;128==(128&i);){if(i=e.readUInt8(t),e.isError(i))return i;n<<=7,n|=127&i}}else n&=31;return{cls:r,primitive:a,tag:n,tagStr:s.tag[n]}}function d(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var a=127&r;if(a>4)return e.error("length octect is too long");r=0;for(var i=0;i=31?r.error("Multi-octet tag encoding unsupported"):(t||(a|=32),a|=o.tagClassByName[n||"universal"]<<6)}(e,t,n,this.reporter);if(r.length<128){var s=a.alloc(2);return s[0]=i,s[1]=r.length,this._createEncoderBuffer([s,r])}for(var c=1,u=r.length;u>=256;u>>=8)c++;var f=a.alloc(2+c);f[0]=i,f[1]=128|c;for(var d=1+c,l=r.length;l>0;d--,l>>=8)f[d]=255&l;return this._createEncoderBuffer([f,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=a.alloc(2*e.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var o=0,s=0;s=128;c>>=7)o++}for(var u=a.alloc(o),f=u.length-1,d=e.length-1;d>=0;d--){var l=e[d];for(u[f--]=127&l;(l>>=7)>0;)u[f--]=128|127&l}return this._createEncoderBuffer(u)},c.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[u(r.getUTCFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[u(r.getUTCFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!a.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=a.from(n)}if(a.isBuffer(e)){var r=e.length;0===e.length&&r++;var i=a.alloc(r);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var o=1,s=e;s>=256;s>>=8)o++;for(var c=new Array(o),u=c.length-1;u>=0;u--)c[u]=255&e,e>>=8;return 128&c[0]&&c.unshift(0),this._createEncoderBuffer(a.from(c))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){var r,a=this._baseState;if(null===a.default)return!1;var i=e.join();if(void 0===a.defaultBuffer&&(a.defaultBuffer=this._encodeValue(a.default,t,n).join()),i.length!==a.defaultBuffer.length)return!1;for(r=0;r=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var b=u-p|0;f+=(o=(a=0|e.words[b])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?f[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],p=l[e];n="";var b=this.clone();for(b.negative=0;!b.isZero();){var h=b.modn(p).toString(e);n=(b=b.idivn(p)).isZero()?h+n:f[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),f=this.clone();if(c){for(s=0;!f.isZero();s++)o=f.andln(255),f.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,p=0|o[1],b=8191&p,h=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,S=0|o[5],I=8191&S,E=S>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,R=0|o[8],N=8191&R,D=R>>>13,j=0|o[9],U=8191&j,L=j>>>13,Z=0|s[0],F=8191&Z,H=Z>>>13,z=0|s[1],q=8191&z,Q=z>>>13,K=0|s[2],V=8191&K,J=K>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],be=8191&pe,he=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,F))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,F)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,F),a=(a=Math.imul(b,H))+Math.imul(h,F)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,Q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,F),a=(a=Math.imul(m,H))+Math.imul(v,F)|0,i=Math.imul(v,H),r=r+Math.imul(b,q)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(h,q)|0,i=i+Math.imul(h,Q)|0;var ve=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(a=(a=a+Math.imul(d,J)|0)+Math.imul(l,V)|0))<<13)|0;u=((i=i+Math.imul(l,J)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,F),a=(a=Math.imul(A,H))+Math.imul(w,F)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,Q)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,Q)|0,r=r+Math.imul(b,V)|0,a=(a=a+Math.imul(b,J)|0)+Math.imul(h,V)|0,i=i+Math.imul(h,J)|0;var ge=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(a=(a=a+Math.imul(d,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,F),a=(a=Math.imul(_,H))+Math.imul(k,F)|0,i=Math.imul(k,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,Q)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,Q)|0,r=r+Math.imul(m,V)|0,a=(a=a+Math.imul(m,J)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,J)|0,r=r+Math.imul(b,W)|0,a=(a=a+Math.imul(b,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(I,F),a=(a=Math.imul(I,H))+Math.imul(E,F)|0,i=Math.imul(E,H),r=r+Math.imul(_,q)|0,a=(a=a+Math.imul(_,Q)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,Q)|0,r=r+Math.imul(A,V)|0,a=(a=a+Math.imul(A,J)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,J)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(b,$)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,F),a=(a=Math.imul(T,H))+Math.imul(O,F)|0,i=Math.imul(O,H),r=r+Math.imul(I,q)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,Q)|0,r=r+Math.imul(_,V)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(b,ne)|0,a=(a=a+Math.imul(b,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,F),a=(a=Math.imul(M,H))+Math.imul(B,F)|0,i=Math.imul(B,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,Q)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,Q)|0,r=r+Math.imul(I,V)|0,a=(a=a+Math.imul(I,J)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,J)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(b,ie)|0,a=(a=a+Math.imul(b,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(N,F),a=(a=Math.imul(N,H))+Math.imul(D,F)|0,i=Math.imul(D,H),r=r+Math.imul(M,q)|0,a=(a=a+Math.imul(M,Q)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,Q)|0,r=r+Math.imul(T,V)|0,a=(a=a+Math.imul(T,J)|0)+Math.imul(O,V)|0,i=i+Math.imul(O,J)|0,r=r+Math.imul(I,W)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(b,ce)|0,a=(a=a+Math.imul(b,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,F),a=(a=Math.imul(U,H))+Math.imul(L,F)|0,i=Math.imul(L,H),r=r+Math.imul(N,q)|0,a=(a=a+Math.imul(N,Q)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,Q)|0,r=r+Math.imul(M,V)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,J)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(I,$)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(b,de)|0,a=(a=a+Math.imul(b,le)|0)+Math.imul(h,de)|0,i=i+Math.imul(h,le)|0;var Se=(u+(r=r+Math.imul(d,be)|0)|0)+((8191&(a=(a=a+Math.imul(d,he)|0)+Math.imul(l,be)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,q),a=(a=Math.imul(U,Q))+Math.imul(L,q)|0,i=Math.imul(L,Q),r=r+Math.imul(N,V)|0,a=(a=a+Math.imul(N,J)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,J)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(I,ne)|0,a=(a=a+Math.imul(I,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Ie=(u+(r=r+Math.imul(b,be)|0)|0)+((8191&(a=(a=a+Math.imul(b,he)|0)+Math.imul(h,be)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,V),a=(a=Math.imul(U,J))+Math.imul(L,V)|0,i=Math.imul(L,J),r=r+Math.imul(N,W)|0,a=(a=a+Math.imul(N,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,be)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,be)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(N,$)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(I,ce)|0,a=(a=a+Math.imul(I,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,de)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,be)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,be)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(N,ne)|0,a=(a=a+Math.imul(N,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(I,de)|0,a=(a=a+Math.imul(I,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,be)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,be)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(N,ie)|0,a=(a=a+Math.imul(N,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(I,be)|0)|0)+((8191&(a=(a=a+Math.imul(I,he)|0)+Math.imul(E,be)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,de)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,de)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,be)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,be)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(N,de)|0,a=(a=a+Math.imul(N,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,be)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,be)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,de),a=(a=Math.imul(U,le))+Math.imul(L,de)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(N,be)|0)|0)+((8191&(a=(a=a+Math.imul(N,he)|0)+Math.imul(D,be)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Re=(u+(r=Math.imul(U,be))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,be)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Se,c[10]=Ie,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Re,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(b=p),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?b(this,e,t):r<63?p(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0==(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var b=0,h=1;0==(n.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(n.iushrn(b);b-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0==(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),b=o;0!==p.cmp(s);){for(var h=p,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4==++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},60285:function(e,t,n){"use strict";var r=n(87973);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var i,o,s=n(1326).codes,c=s.ERR_AMBIGUOUS_ARGUMENT,u=s.ERR_INVALID_ARG_TYPE,f=s.ERR_INVALID_ARG_VALUE,d=s.ERR_INVALID_RETURN_VALUE,l=s.ERR_MISSING_ARGS,p=n(94578),b=n(57355).inspect,h=n(57355).types,y=h.isPromise,m=h.isRegExp,v=Object.assign?Object.assign:n(91185).assign,g=Object.is?Object.is:n(58593);function A(){var e=n(33484);i=e.isDeepEqual,o=e.isDeepStrictEqual}new Map;var w=!1,x=e.exports=I,_={};function k(e){if(e.message instanceof Error)throw e.message;throw new p(e)}function S(e,t,n,r){if(!n){var a=!1;if(0===t)a=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var i=new p({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw i.generatedMessage=a,i}}function I(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),a=1;a1?n-1:0),a=1;a1?n-1:0),a=1;a1?n-1:0),a=1;ae.length)&&(n=e.length),e.substring(n-t.length,n)===t}var y="",m="",v="",g="",A={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function x(e){return p(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var _=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==l(e)||null===e)throw new b("options","Object",e);var a=e.message,i=e.operator,c=e.stackStartFn,u=e.actual,f=e.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=a)n=o(this,d(t).call(this,String(a)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(y="",m="",g="",v=""):(y="",m="",g="",v="")),"object"===l(u)&&null!==u&&"object"===l(f)&&null!==f&&"stack"in u&&u instanceof Error&&"stack"in f&&f instanceof Error&&(u=w(u),f=w(f)),"deepStrictEqual"===i||"strictEqual"===i)n=o(this,d(t).call(this,function(e,t,n){var a="",i="",o=0,s="",c=!1,u=x(e),f=u.split("\n"),d=x(t).split("\n"),p=0,b="";if("strictEqual"===n&&"object"===l(e)&&"object"===l(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===f.length&&1===d.length&&f[0]!==d[0]){var w=f[0].length+d[0].length;if(w<=10){if(!("object"===l(e)&&null!==e||"object"===l(t)&&null!==t||0===e&&0===t))return"".concat(A[n],"\n\n")+"".concat(f[0]," !== ").concat(d[0],"\n")}else if("strictEqualObject"!==n&&w<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;f[0][p]===d[0][p];)p++;p>2&&(b="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",p),"^"),p=0)}}for(var _=f[f.length-1],k=d[d.length-1];_===k&&(p++<2?s="\n ".concat(_).concat(s):a=_,f.pop(),d.pop(),0!==f.length&&0!==d.length);)_=f[f.length-1],k=d[d.length-1];var S=Math.max(f.length,d.length);if(0===S){var I=u.split("\n");if(I.length>30)for(I[26]="".concat(y,"...").concat(g);I.length>27;)I.pop();return"".concat(A.notIdentical,"\n\n").concat(I.join("\n"),"\n")}p>3&&(s="\n".concat(y,"...").concat(g).concat(s),c=!0),""!==a&&(s="\n ".concat(a).concat(s),a="");var E=0,C=A[n]+"\n".concat(m,"+ actual").concat(g," ").concat(v,"- expected").concat(g),T=" ".concat(y,"...").concat(g," Lines skipped");for(p=0;p1&&p>2&&(O>4?(i+="\n".concat(y,"...").concat(g),c=!0):O>3&&(i+="\n ".concat(d[p-2]),E++),i+="\n ".concat(d[p-1]),E++),o=p,a+="\n".concat(v,"-").concat(g," ").concat(d[p]),E++;else if(d.length1&&p>2&&(O>4?(i+="\n".concat(y,"...").concat(g),c=!0):O>3&&(i+="\n ".concat(f[p-2]),E++),i+="\n ".concat(f[p-1]),E++),o=p,i+="\n".concat(m,"+").concat(g," ").concat(f[p]),E++;else{var P=d[p],M=f[p],B=M!==P&&(!h(M,",")||M.slice(0,-1)!==P);B&&h(P,",")&&P.slice(0,-1)===M&&(B=!1,M+=","),B?(O>1&&p>2&&(O>4?(i+="\n".concat(y,"...").concat(g),c=!0):O>3&&(i+="\n ".concat(f[p-2]),E++),i+="\n ".concat(f[p-1]),E++),o=p,i+="\n".concat(m,"+").concat(g," ").concat(M),a+="\n".concat(v,"-").concat(g," ").concat(P),E+=2):(i+=a,a="",1!==O&&0!==p||(i+="\n ".concat(M),E++))}if(E>20&&p30)for(k[26]="".concat(y,"...").concat(g);k.length>27;)k.pop();n=1===k.length?o(this,d(t).call(this,"".concat(_," ").concat(k[0]))):o(this,d(t).call(this,"".concat(_,"\n\n").concat(k.join("\n"),"\n")))}else{var S=x(u),I="",E=A[i];"notDeepEqual"===i||"notEqual"===i?(S="".concat(A[i],"\n\n").concat(S)).length>1024&&(S="".concat(S.slice(0,1021),"...")):(I="".concat(x(f)),S.length>512&&(S="".concat(S.slice(0,509),"...")),I.length>512&&(I="".concat(I.slice(0,509),"...")),"deepEqual"===i||"equal"===i?S="".concat(E,"\n\n").concat(S,"\n\nshould equal\n\n"):I=" ".concat(i," ").concat(I)),n=o(this,d(t).call(this,"".concat(S).concat(I)))}return Error.stackTraceLimit=p,n.generatedMessage=!a,Object.defineProperty(s(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=u,n.expected=f,n.operator=i,Error.captureStackTrace&&Error.captureStackTrace(s(n),c),n.stack,n.name="AssertionError",o(n)}var n,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&f(e,t)}(t,e),n=t,c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:p.custom,value:function(e,t){return p(this,function(e){for(var t=1;t2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(e,t,a){var i,s,c,u,d;if(void 0===o&&(o=n(60285)),o("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,s.length)===s)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))c="The ".concat(e," ").concat(i," ").concat(f(t,"type"));else{var l=("number"!=typeof d&&(d=0),d+".".length>(u=e).length||-1===u.indexOf(".",d)?"argument":"property");c='The "'.concat(e,'" ').concat(l," ").concat(i," ").concat(f(t,"type"))}return c+". Received type ".concat(r(a))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=n(57355));var a=s.inspect(t);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(a)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var a;return a=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(a,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var a="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:a+="".concat(t[0]," argument");break;case 2:a+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:a+=t.slice(0,i-1).join(", "),a+=", and ".concat(t[i-1]," arguments")}return"".concat(a," must be specified")}),TypeError),e.exports.codes=c},33484:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var i=void 0!==/a/g.flags,o=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},c=Object.is?Object.is:n(58593),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},f=Number.isNaN?Number.isNaN:n(1678);function d(e){return e.call.bind(e)}var l=d(Object.prototype.hasOwnProperty),p=d(Object.prototype.propertyIsEnumerable),b=d(Object.prototype.toString),h=n(57355).types,y=h.isAnyArrayBuffer,m=h.isArrayBufferView,v=h.isDate,g=h.isMap,A=h.isRegExp,w=h.isSet,x=h.isNativeError,_=h.isBoxedPrimitive,k=h.isNumberObject,S=h.isStringObject,I=h.isBooleanObject,E=h.isBigIntObject,C=h.isSymbolObject,T=h.isFloat32Array,O=h.isFloat64Array;function P(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function M(e){return Object.keys(e).filter(P).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function B(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,a=0,i=Math.min(n,r);a=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,f=new Uint8Array(o);e[n];){var d=t[e.charCodeAt(n)];if(255===d)return;for(var l=0,p=o-1;(0!==d||l>>0,f[p]=d%256>>>0,d=d/256>>>0;if(0!==d)throw new Error("Non-zero carry");i=l,n++}for(var b=o-i;b!==o&&0===f[b];)b++;var h=r.allocUnsafe(a+(o-b));h.fill(0,0,a);for(var y=a;b!==o;)h[y++]=f[b++];return h}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,a=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var u=(o-i)*f+1>>>0,d=new Uint8Array(u);i!==o;){for(var l=t[i],p=0,b=u-1;(0!==l||p>>0,d[b]=l%s>>>0,l=l/s>>>0;if(0!==l)throw new Error("Non-zero carry");a=p,i++}for(var h=u-a;h!==u&&0===d[h];)h++;for(var y=c.repeat(n);h0?o-4:o;for(n=0;n>16&255,u[f++]=t>>8&255,u[f++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[f++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[f++]=t>>8&255,u[f++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,s=0,c=r-a;sc?c:s+o));return 1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,s=i.length;o0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var a,i,o=[],s=t;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},8947:function(e){"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n={},r=0;r>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,n=0;n126)return"Invalid prefix ("+e+")";t=i(t)^r>>5}for(t=i(t),n=0;nt)return"Exceeds length limit";var r=e.toLowerCase(),a=e.toUpperCase();if(e!==r&&e!==a)return"Mixed-case string "+e;var s=(e=r).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var c=e.slice(0,s),u=e.slice(s+1);if(u.length<6)return"Data too short";var f=o(c);if("string"==typeof f)return f;for(var d=[],l=0;l=u.length||d.push(b)}return 1!==f?"Invalid checksum for "+e:{prefix:c,words:d}}function c(e,t,n,r){for(var a=0,i=0,o=(1<=n;)i-=n,s.push(a>>i&o);if(r)i>0&&s.push(a<=t)return"Excess padding";if(a<r)throw new TypeError("Exceeds length limit");var a=o(e=e.toLowerCase());if("string"==typeof a)throw new Error(a);for(var s=e+"1",c=0;c>5!=0)throw new Error("Non 5-bit word");a=i(a)^u,s+=t.charAt(u)}for(c=0;c<6;++c)a=i(a);for(a^=1,c=0;c<6;++c)s+=t.charAt(a>>5*(5-c)&31);return s},toWordsUnsafe:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},68882:function(e,t,n){"use strict";var r=n(79061).Buffer;t.oU=function(e){var t=r.from(e);t.reverse();var n=t.toString("hex");return 0===n.length?BigInt(0):BigInt("0x".concat(n))},t.k$=function(e,t){var n=e.toString(16),a=r.from(n.padStart(2*t,"0").slice(0,2*t),"hex");return a.reverse(),a}},85468:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(46601).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,a){for(var i=0,o=0,s=Math.min(e.length,n),c=t;c=49?u-49+10:u>=17?u-17+10:u,r(u>=0&&o0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(e){i.prototype.inspect=d}else i.prototype.inspect=d;function d(){return(this.red?""}var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],b=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var b=u-p|0;f+=(o=(a=0|e.words[b])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n._strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215,(a+=2)>=26&&(a-=26,o--),n=0!==i||o!==this.length-1?l[6-c.length]+c+n:c+n}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=p[e],f=b[e];n="";var d=this.clone();for(d.negative=0;!d.isZero();){var h=d.modrn(f).toString(e);n=(d=d.idivn(f)).isZero()?h+n:l[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){this._strip();var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,a),o},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,a=0,i=0;a>8&255),n>16&255),6===i?(n>24&255),r=0,i=0):(r=o>>>24,i+=2)}if(n=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),6===i?(n>=0&&(e[n--]=o>>24&255),r=0,i=0):(r=o>>>24,i+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,p=0|o[1],b=8191&p,h=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,S=0|o[5],I=8191&S,E=S>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,R=0|o[8],N=8191&R,D=R>>>13,j=0|o[9],U=8191&j,L=j>>>13,Z=0|s[0],F=8191&Z,H=Z>>>13,z=0|s[1],q=8191&z,Q=z>>>13,K=0|s[2],V=8191&K,J=K>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],be=8191&pe,he=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,F))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,F)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,F),a=(a=Math.imul(b,H))+Math.imul(h,F)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,Q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,F),a=(a=Math.imul(m,H))+Math.imul(v,F)|0,i=Math.imul(v,H),r=r+Math.imul(b,q)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(h,q)|0,i=i+Math.imul(h,Q)|0;var ve=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(a=(a=a+Math.imul(d,J)|0)+Math.imul(l,V)|0))<<13)|0;u=((i=i+Math.imul(l,J)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,F),a=(a=Math.imul(A,H))+Math.imul(w,F)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,Q)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,Q)|0,r=r+Math.imul(b,V)|0,a=(a=a+Math.imul(b,J)|0)+Math.imul(h,V)|0,i=i+Math.imul(h,J)|0;var ge=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(a=(a=a+Math.imul(d,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,F),a=(a=Math.imul(_,H))+Math.imul(k,F)|0,i=Math.imul(k,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,Q)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,Q)|0,r=r+Math.imul(m,V)|0,a=(a=a+Math.imul(m,J)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,J)|0,r=r+Math.imul(b,W)|0,a=(a=a+Math.imul(b,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(I,F),a=(a=Math.imul(I,H))+Math.imul(E,F)|0,i=Math.imul(E,H),r=r+Math.imul(_,q)|0,a=(a=a+Math.imul(_,Q)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,Q)|0,r=r+Math.imul(A,V)|0,a=(a=a+Math.imul(A,J)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,J)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(b,$)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,F),a=(a=Math.imul(T,H))+Math.imul(O,F)|0,i=Math.imul(O,H),r=r+Math.imul(I,q)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,Q)|0,r=r+Math.imul(_,V)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(b,ne)|0,a=(a=a+Math.imul(b,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,F),a=(a=Math.imul(M,H))+Math.imul(B,F)|0,i=Math.imul(B,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,Q)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,Q)|0,r=r+Math.imul(I,V)|0,a=(a=a+Math.imul(I,J)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,J)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(b,ie)|0,a=(a=a+Math.imul(b,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(N,F),a=(a=Math.imul(N,H))+Math.imul(D,F)|0,i=Math.imul(D,H),r=r+Math.imul(M,q)|0,a=(a=a+Math.imul(M,Q)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,Q)|0,r=r+Math.imul(T,V)|0,a=(a=a+Math.imul(T,J)|0)+Math.imul(O,V)|0,i=i+Math.imul(O,J)|0,r=r+Math.imul(I,W)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(b,ce)|0,a=(a=a+Math.imul(b,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,F),a=(a=Math.imul(U,H))+Math.imul(L,F)|0,i=Math.imul(L,H),r=r+Math.imul(N,q)|0,a=(a=a+Math.imul(N,Q)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,Q)|0,r=r+Math.imul(M,V)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,J)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(I,$)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(b,de)|0,a=(a=a+Math.imul(b,le)|0)+Math.imul(h,de)|0,i=i+Math.imul(h,le)|0;var Se=(u+(r=r+Math.imul(d,be)|0)|0)+((8191&(a=(a=a+Math.imul(d,he)|0)+Math.imul(l,be)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,q),a=(a=Math.imul(U,Q))+Math.imul(L,q)|0,i=Math.imul(L,Q),r=r+Math.imul(N,V)|0,a=(a=a+Math.imul(N,J)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,J)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(I,ne)|0,a=(a=a+Math.imul(I,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Ie=(u+(r=r+Math.imul(b,be)|0)|0)+((8191&(a=(a=a+Math.imul(b,he)|0)+Math.imul(h,be)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,V),a=(a=Math.imul(U,J))+Math.imul(L,V)|0,i=Math.imul(L,J),r=r+Math.imul(N,W)|0,a=(a=a+Math.imul(N,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,be)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,be)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(N,$)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(I,ce)|0,a=(a=a+Math.imul(I,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,de)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,be)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,be)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(N,ne)|0,a=(a=a+Math.imul(N,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(I,de)|0,a=(a=a+Math.imul(I,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,be)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,be)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(N,ie)|0,a=(a=a+Math.imul(N,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(I,be)|0)|0)+((8191&(a=(a=a+Math.imul(I,he)|0)+Math.imul(E,be)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,de)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,de)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,be)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,be)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(N,de)|0,a=(a=a+Math.imul(N,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,be)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,be)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,de),a=(a=Math.imul(U,le))+Math.imul(L,de)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(N,be)|0)|0)+((8191&(a=(a=a+Math.imul(N,he)|0)+Math.imul(D,be)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Re=(u+(r=Math.imul(U,be))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,be)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Se,c[10]=Ie,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Re,0!==u&&(c[19]=u,n.length++),n};function m(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n._strip()}function v(e,t,n){return m(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(y=h),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?h(this,e,t):n<1024?m(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,n+=i/67108864|0,n+=o>>>26,this.words[a]=67108863&o}return 0!==n&&(this.words[a]=n,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this._strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,a=0,i=this.length-1;i>=0;i--)a=(n*a+(0|this.words[i]))%e;return t?-a:a},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,a=this.length-1;a>=0;a--){var i=(0|this.words[a])+67108864*n;this.words[a]=i/e|0,n=i%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0==(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var b=0,h=1;0==(n.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(n.iushrn(b);b-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0==(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new I(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var A={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){I.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},a(x,w),x.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(A[e])return A[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new _;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return A[e]=t,t},I.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},I.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},I.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(f(e,e.umod(this.m)._forceRed(this)),e)},I.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},I.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},I.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},I.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},I.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},I.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},I.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},I.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},I.prototype.isqr=function(e){return this.imul(e,e.clone())},I.prototype.sqr=function(e){return this.mul(e,e)},I.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),b=o;0!==p.cmp(s);){for(var h=p,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4==++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},I.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},I.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},a(E,I),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},41756:function(e,t,n){"use strict";var r=n(79061).Buffer,a=n(90366).default,i=n(10202).default,o=n(21146).default,s=n(63298).default,c=n(51795).default,u=n(17964).default,f=n(54790).default,d=n(51555).default,l=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),p=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),b=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},h=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&l(t,e,n);return p(t,e),t},y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeUnchecked=t.deserialize=t.serialize=t.BinaryReader=t.BinaryWriter=t.BorshError=t.baseDecode=t.baseEncode=void 0;var m=y(n(85468)),v=y(n(82481)),g=h(n(76261)),A=new("function"!=typeof TextDecoder?g.TextDecoder:TextDecoder)("utf-8",{fatal:!0});t.baseEncode=function(e){return"string"==typeof e&&(e=r.from(e,"utf8")),v.default.encode(r.from(e))},t.baseDecode=function(e){return r.from(v.default.decode(e))};var w=1024,x=function(e){u(n,e);var t=f(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).fieldPath=[],r.originalMessage=e,r}return c(n,[{key:"addToFieldPath",value:function(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}]),n}(d(Error));t.BorshError=x;var _=function(){function e(){s(this,e),this.buf=r.alloc(w),this.length=0}return c(e,[{key:"maybeResize",value:function(){this.buf.length<16+this.length&&(this.buf=r.concat([this.buf,r.alloc(w)]))}},{key:"writeU8",value:function(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}},{key:"writeU16",value:function(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}},{key:"writeU32",value:function(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}},{key:"writeU64",value:function(e){this.maybeResize(),this.writeBuffer(r.from(new m.default(e).toArray("le",8)))}},{key:"writeU128",value:function(e){this.maybeResize(),this.writeBuffer(r.from(new m.default(e).toArray("le",16)))}},{key:"writeU256",value:function(e){this.maybeResize(),this.writeBuffer(r.from(new m.default(e).toArray("le",32)))}},{key:"writeU512",value:function(e){this.maybeResize(),this.writeBuffer(r.from(new m.default(e).toArray("le",64)))}},{key:"writeBuffer",value:function(e){this.buf=r.concat([r.from(this.buf.subarray(0,this.length)),e,r.alloc(w)]),this.length+=e.length}},{key:"writeString",value:function(e){this.maybeResize();var t=r.from(e,"utf8");this.writeU32(t.length),this.writeBuffer(t)}},{key:"writeFixedArray",value:function(e){this.writeBuffer(r.from(e))}},{key:"writeArray",value:function(e,t){this.maybeResize(),this.writeU32(e.length);var n,r=o(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;this.maybeResize(),t(a)}}catch(e){r.e(e)}finally{r.f()}}},{key:"toArray",value:function(){return this.buf.subarray(0,this.length)}}]),e}();function k(e,t,n){var r=n.value;n.value=function(){try{for(var e=arguments.length,t=new Array(e),n=0;n=0)throw new x("Reached the end of buffer when deserializing")}throw e}}}t.BinaryWriter=_;var S=function(){function e(t){s(this,e),this.buf=t,this.offset=0}return c(e,[{key:"readU8",value:function(){var e=this.buf.readUInt8(this.offset);return this.offset+=1,e}},{key:"readU16",value:function(){var e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}},{key:"readU32",value:function(){var e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}},{key:"readU64",value:function(){var e=this.readBuffer(8);return new m.default(e,"le")}},{key:"readU128",value:function(){var e=this.readBuffer(16);return new m.default(e,"le")}},{key:"readU256",value:function(){var e=this.readBuffer(32);return new m.default(e,"le")}},{key:"readU512",value:function(){var e=this.readBuffer(64);return new m.default(e,"le")}},{key:"readBuffer",value:function(e){if(this.offset+e>this.buf.length)throw new x("Expected buffer length ".concat(e," isn't within bounds"));var t=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,t}},{key:"readString",value:function(){var e=this.readU32(),t=this.readBuffer(e);try{return A.decode(t)}catch(e){throw new x("Error decoding UTF-8 string: ".concat(e))}}},{key:"readFixedArray",value:function(e){return new Uint8Array(this.readBuffer(e))}},{key:"readArray",value:function(e){for(var t=this.readU32(),n=Array(),r=0;r=r.values.length)throw new x("Enum index: ".concat(p," is out of range"));var b=i(r.values[p],2),h=b[0],y=T(e,h,b[1],n);return new t(a({},h,y))}throw new x("Unexpected schema kind: ".concat(r.kind," for ").concat(t.constructor.name))}b([k],S.prototype,"readU8",null),b([k],S.prototype,"readU16",null),b([k],S.prototype,"readU32",null),b([k],S.prototype,"readU64",null),b([k],S.prototype,"readU128",null),b([k],S.prototype,"readU256",null),b([k],S.prototype,"readU512",null),b([k],S.prototype,"readString",null),b([k],S.prototype,"readFixedArray",null),b([k],S.prototype,"readArray",null),t.BinaryReader=S,t.serialize=function(e,t){var n=new(arguments.length>2&&void 0!==arguments[2]?arguments[2]:_);return C(e,t,n),n.toArray()},t.deserialize=function(e,t,n){var r=new(arguments.length>3&&void 0!==arguments[3]?arguments[3]:S)(n),a=O(e,t,r);if(r.offset3&&void 0!==arguments[3]?arguments[3]:S)(n))}},90523:function(e,t,n){var r;function a(e){this.rand=e}if(e.exports=function(e){return r||(r=new a(null)),r.generate(e)},e.exports.Rand=a,a.prototype.generate=function(e){return this._rand(e)},a.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n>>24]^f[b>>>16&255]^d[h>>>8&255]^l[255&y]^t[m++],o=u[b>>>24]^f[h>>>16&255]^d[y>>>8&255]^l[255&p]^t[m++],s=u[h>>>24]^f[y>>>16&255]^d[p>>>8&255]^l[255&b]^t[m++],c=u[y>>>24]^f[p>>>16&255]^d[b>>>8&255]^l[255&h]^t[m++],p=i,b=o,h=s,y=c;return i=(r[p>>>24]<<24|r[b>>>16&255]<<16|r[h>>>8&255]<<8|r[255&y])^t[m++],o=(r[b>>>24]<<24|r[h>>>16&255]<<16|r[y>>>8&255]<<8|r[255&p])^t[m++],s=(r[h>>>24]<<24|r[y>>>16&255]<<16|r[p>>>8&255]<<8|r[255&b])^t[m++],c=(r[y>>>24]<<24|r[p>>>16&255]<<16|r[b>>>8&255]<<8|r[255&h])^t[m++],[i>>>=0,o>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],a=[[],[],[],[]],i=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,n[o]=u,r[u]=o;var f=e[o],d=e[f],l=e[d],p=257*e[u]^16843008*u;a[0][o]=p<<24|p>>>8,a[1][o]=p<<16|p>>>16,a[2][o]=p<<8|p>>>24,a[3][o]=p,p=16843009*l^65537*d^257*f^16843008*o,i[0][u]=p<<24|p>>>8,i[1][u]=p<<16|p>>>16,i[2][u]=p<<8|p>>>24,i[3][u]=p,0===o?o=s=1:(o=f^e[e[e[l^f]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:a,INV_SUB_MIX:i}}();function u(e){this._key=a(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),a=[],i=0;i>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=s[i/t|0]<<24):t>6&&i%t==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),a[i]=a[i-t]^o}for(var u=[],f=0;f>>24]]^c.INV_SUB_MIX[1][c.SBOX[l>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[l>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&l]]}this._nRounds=n,this._keySchedule=a,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return o(e=a(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},u.prototype.decryptBlock=function(e){var t=(e=a(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),i=r.allocUnsafe(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[3],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[1],12),i},u.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=u},14493:function(e,t,n){var r=n(26109),a=n(32337).Buffer,i=n(18444),o=n(92289),s=n(62280),c=n(12008),u=n(30647);function f(e,t,n,o){i.call(this);var c=a.alloc(4,0);this._cipher=new r.AES(t);var f=this._cipher.encryptBlock(c);this._ghash=new s(f),n=function(e,t,n){if(12===t.length)return e._finID=a.concat([t,a.from([0,0,0,1])]),a.concat([t,a.from([0,0,0,2])]);var r=new s(n),i=t.length,o=i%16;r.update(t),o&&(o=16-o,r.update(a.alloc(o,0))),r.update(a.alloc(8,0));var c=8*i,f=a.alloc(8);f.writeUIntBE(c,0,8),r.update(f),e._finID=r.state;var d=a.from(e._finID);return u(d),d}(this,n,f),this._prev=a.from(n),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(f,i),f.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=a.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},f.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),a=0;a16)throw new Error("unable to decrypt data");for(var n=-1;++n16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=i[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=u(t,!1,n.key,n.iv);return l(e,r.key,r.iv)},t.createDecipheriv=l},45906:function(e,t,n){var r=n(4357),a=n(14493),i=n(32337).Buffer,o=n(25532),s=n(18444),c=n(26109),u=n(35433);function f(e,t,n){s.call(this),this._cache=new l,this._cipher=new c.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}n(92289)(f,s),f.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return i.concat(r)};var d=i.alloc(16,16);function l(){this.cache=i.allocUnsafe(0)}function p(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new o(s.module,t,n):"auth"===s.type?new a(s.module,t,n):new f(s.module,t,n)}f.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},f.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},l.prototype.add=function(e){this.cache=i.concat([this.cache,e])},l.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},l.prototype.flush=function(){for(var e=16-this.cache.length,t=i.allocUnsafe(e),n=-1;++n>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=i(a)},o.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,a],16)),this.ghash(i([0,e,0,t])),this.state},e.exports=o},30647:function(e){e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},17075:function(e,t,n){var r=n(12008);t.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var a=e._cipher.decryptBlock(t);return r(a,n)}},1561:function(e,t,n){var r=n(32337).Buffer,a=n(12008);function i(e,t,n){var i=t.length,o=a(t,e._cache);return e._cache=e._cache.slice(i),e._prev=r.concat([e._prev,n?t:o]),o}t.encrypt=function(e,t,n){for(var a,o=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){o=r.concat([o,i(e,t,n)]);break}a=e._cache.length,o=r.concat([o,i(e,t.slice(0,a),n)]),t=t.slice(a)}return o}},13863:function(e,t,n){var r=n(32337).Buffer;function a(e,t,n){for(var r,a,o=-1,s=0;++o<8;)r=t&1<<7-o?128:0,s+=(128&(a=e._cipher.encryptBlock(e._prev)[0]^r))>>o%8,e._prev=i(e._prev,n?r:a);return s}function i(e,t){var n=e.length,a=-1,i=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++a>7;return i}t.encrypt=function(e,t,n){for(var i=t.length,o=r.allocUnsafe(i),s=-1;++s=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function s(e,t){var n=function(e){var t=o(e);return{blinder:t.toRed(a.mont(e.modulus)).redPow(new a(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),i=t.modulus.byteLength(),s=new a(e).mul(n.blinder).umod(t.modulus),c=s.toRed(a.mont(t.prime1)),u=s.toRed(a.mont(t.prime2)),f=t.coefficient,d=t.prime1,l=t.prime2,p=c.redPow(t.exponent1).fromRed(),b=u.redPow(t.exponent2).fromRed(),h=p.isub(b).imul(f).umod(d).imul(l);return b.iadd(h).imul(n.unblinder).umod(t.modulus).toArrayLike(r,"be",i)}s.getr=o,e.exports=s},98917:function(e,t,n){e.exports=n(75207)},65638:function(e,t,n){var r=n(32337).Buffer,a=n(30901),i=n(15756),o=n(92289),s=n(41856),c=n(82968),u=n(75207);function f(e){i.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){i.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){return new f(e)}function p(e){return new d(e)}Object.keys(u).forEach((function(e){u[e].id=r.from(u[e].id,"hex"),u[e.toLowerCase()]=u[e]})),o(f,i.Writable),f.prototype._write=function(e,t,n){this._hash.update(e),n()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},f.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=s(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},o(d,i.Writable),d.prototype._write=function(e,t,n){this._hash.update(e),n()},d.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},d.prototype.verify=function(e,t,n){"string"==typeof t&&(t=r.from(t,n)),this.end();var a=this._hash.digest();return c(t,a,e,this._signType,this._tag)},e.exports={Sign:l,Verify:p,createSign:l,createVerify:p}},41856:function(e,t,n){var r=n(32337).Buffer,a=n(83688),i=n(27280),o=n(23494).ec,s=n(85468),c=n(67566),u=n(1308);function f(e,t,n,i){if((e=r.from(e.toArray())).length0&&n.ishrn(r),n}function l(e,t,n){var i,o;do{for(i=r.alloc(0);8*i.length=t)throw new Error("invalid sig")}e.exports=function(e,t,n,u,f){var d=o(n);if("ec"===d.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,n){var r=s[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var a=new i(r),o=n.data.subjectPrivateKey.data;return a.verify(t,e,o)}(e,t,d)}if("dsa"===d.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,n){var r=n.data.p,i=n.data.q,s=n.data.g,u=n.data.pub_key,f=o.signature.decode(e,"der"),d=f.s,l=f.r;c(d,i),c(l,i);var p=a.mont(r),b=d.invm(i);return 0===s.toRed(p).redPow(new a(t).mul(b).mod(i)).fromRed().mul(u.toRed(p).redPow(l.mul(b).mod(i)).fromRed()).mod(r).mod(i).cmp(l)}(e,t,d)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");t=r.concat([f,t]);for(var l=d.modulus.byteLength(),p=[1],b=0;t.length+p.length+2this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(e){var t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}},{key:"fromArray",value:function(e){}}]),e}();function d(e,t){return t.property?e+"["+t.property+"]":e}t.Layout=f,t.nameWithProperty=d,t.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(e.hasOwnProperty("layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof f))throw new TypeError("layout must be a Layout");if(t.hasOwnProperty("boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=function(){return new e},Object.defineProperty(e.prototype,"encode",{value:function(e,n){return t.encode(this,e,n)},writable:!0}),Object.defineProperty(e,"decode",{value:function(e,n){return t.decode(e,n)},writable:!0})};var l=function(e){o(n,e);var t=s(n);function n(){return c(this,n),t.apply(this,arguments)}return u(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}(f),p=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),void 0===e&&(e=1),!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");return(a=t.call(this,-1,r)).elementSpan=e,a}return u(n,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.length-t;return Math.floor(n/this.elementSpan)}},{key:"encode",value:function(e,t,n){return 0}}]),n}(l),b=function(e){o(n,e);var t=s(n);function n(e,r,a){var i;if(c(this,n),!(e instanceof f))throw new TypeError("layout must be a Layout");if(void 0===r)r=0;else if(!Number.isInteger(r))throw new TypeError("offset must be integer or undefined");return(i=t.call(this,e.span,a||e.property)).layout=e,i.offset=r,i}return u(n,[{key:"isCount",value:function(){return this.layout instanceof h||this.layout instanceof y}},{key:"decode",value:function(e,t){return void 0===t&&(t=0),this.layout.decode(e,t+this.offset)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),this.layout.encode(e,t,n+this.offset)}}]),n}(l),h=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readUIntLE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeUIntLE(e,n,this.span),this.span}}]),n}(f),y=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readUIntBE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeUIntBE(e,n,this.span),this.span}}]),n}(f),m=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readIntLE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeIntLE(e,n,this.span),this.span}}]),n}(f),v=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readIntBE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeIntBE(e,n,this.span),this.span}}]),n}(f),g=Math.pow(2,32);function A(e){var t=Math.floor(e/g);return{hi32:t,lo32:e-t*g}}function w(e,t){return e*g+t}var x=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.readUInt32LE(t);return w(e.readUInt32LE(t+4),n)}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=A(e);return t.writeUInt32LE(r.lo32,n),t.writeUInt32LE(r.hi32,n+4),8}}]),n}(f),_=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),w(e.readUInt32BE(t),e.readUInt32BE(t+4))}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=A(e);return t.writeUInt32BE(r.hi32,n),t.writeUInt32BE(r.lo32,n+4),8}}]),n}(f),k=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.readUInt32LE(t);return w(e.readInt32LE(t+4),n)}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=A(e);return t.writeUInt32LE(r.lo32,n),t.writeInt32LE(r.hi32,n+4),8}}]),n}(f),S=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),w(e.readInt32BE(t),e.readUInt32BE(t+4))}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=A(e);return t.writeInt32BE(r.hi32,n),t.writeUInt32BE(r.lo32,n+4),8}}]),n}(f),I=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,4,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readFloatLE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeFloatLE(e,n),4}}]),n}(f),E=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,4,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readFloatBE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeFloatBE(e,n),4}}]),n}(f),C=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readDoubleLE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeDoubleLE(e,n),8}}]),n}(f),T=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readDoubleBE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeDoubleBE(e,n),8}}]),n}(f),O=function(e){o(n,e);var t=s(n);function n(e,r,a){var i;if(c(this,n),!(e instanceof f))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof l&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var o=-1;return!(r instanceof l)&&0d.span&&void 0===d.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(e){u.e(e)}finally{u.f()}var l=-1;try{l=e.reduce((function(e,t){return e+t.getSpan()}),0)}catch(e){}return(o=t.call(this,l,r)).fields=e,o.decodePrefixes=!!a,o}return u(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=0;try{n=this.fields.reduce((function(n,r){var a=r.getSpan(e,t);return t+=a,n+a}),0)}catch(e){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n,r=this.makeDestinationObject(),a=i(this.fields);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(void 0!==o.property&&(r[o.property]=o.decode(e,t)),t+=o.getSpan(e,t),this.decodePrefixes&&e.length===t)break}}catch(e){a.e(e)}finally{a.f()}return r}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r,a=n,o=0,s=0,c=i(this.fields);try{for(c.s();!(r=c.n()).done;){var u=r.value,f=u.span;if(s=0f&&(f=u.getSpan(t,n)))}o=n,n+=f}}catch(e){c.e(e)}finally{c.f()}return o+s-a}},{key:"fromArray",value:function(e){var t,n=this.makeDestinationObject(),r=i(this.fields);try{for(r.s();!(t=r.n()).done;){var a=t.value;void 0!==a.property&&0a.span?n=-1:0<=n&&(n+=a.span)}}catch(e){r.e(e)}finally{r.f()}}}]),n}(f),M=function(){function e(t){c(this,e),this.property=t}return u(e,[{key:"decode",value:function(){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(){throw new Error("UnionDiscriminator is abstract")}}]),e}(),B=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),!(e instanceof l&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(a=t.call(this,r||e.property||"variant")).layout=e,a}return u(n,[{key:"decode",value:function(e,t){return this.layout.decode(e,t)}},{key:"encode",value:function(e,t,n){return this.layout.encode(e,t,n)}}]),n}(M),R=function(e){o(n,e);var t=s(n);function n(e,r,i){var o;c(this,n);var s=e instanceof h||e instanceof y;if(s)e=new B(new b(e));else if(e instanceof l&&e.isCount())e=new B(e);else if(!(e instanceof M))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===r&&(r=null),!(null===r||r instanceof f))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var u=-1;r&&0<=(u=r.span)&&s&&(u+=e.layout.span),(o=t.call(this,u,i)).discriminator=e,o.usesPrefixDiscriminator=s,o.defaultLayout=r,o.registry={};var d=o.defaultGetSourceVariant.bind(a(o));return o.getSourceVariant=function(e){return d(e)},o.configGetSourceVariant=function(e){d=e.bind(this)},o}return u(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}},{key:"defaultGetSourceVariant",value:function(e){if(e.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&e.hasOwnProperty(this.defaultLayout.property))return;var t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||e.hasOwnProperty(t.property)))return t}else for(var n in this.registry){var r=this.registry[n];if(e.hasOwnProperty(r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(e,t){var n;void 0===t&&(t=0);var r=this.discriminator,a=r.decode(e,t),i=this.registry[a];if(void 0===i){var o=0;i=this.defaultLayout,this.usesPrefixDiscriminator&&(o=r.layout.span),(n=this.makeDestinationObject())[r.property]=a,n[i.property]=this.defaultLayout.decode(e,t+o)}else n=i.decode(e,t);return n}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=this.getSourceVariant(e);if(void 0===r){var a=this.discriminator,i=this.defaultLayout,o=0;return this.usesPrefixDiscriminator&&(o=a.layout.span),a.encode(e[a.property],t,n),o+i.encode(e[i.property],t,n+o)}return r.encode(e,t,n)}},{key:"addVariant",value:function(e,t,n){var r=new N(this,e,t,n);return this.registry[e]=r,r}},{key:"getVariant",value:function(e,t){var n=e;return r.isBuffer(e)&&(void 0===t&&(t=0),n=this.discriminator.decode(e,t)),this.registry[n]}}]),n}(f),N=function(e){o(n,e);var t=s(n);function n(e,r,a,i){var o;if(c(this,n),!(e instanceof R))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof a&&void 0===i&&(i=a,a=null),a){if(!(a instanceof f))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=a.span&&a.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof i)throw new TypeError("variant must have a String property")}var s=e.span;return 0>e.span&&0<=(s=a?a.span:0)&&e.usesPrefixDiscriminator&&(s+=e.discriminator.layout.span),(o=t.call(this,s,i)).union=e,o.variant=r,o.layout=a||null,o}return u(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),n+this.layout.getSpan(e,t+n)}},{key:"decode",value:function(e,t){var n=this.makeDestinationObject();if(void 0===t&&(t=0),this!==this.union.getVariant(e,t))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!e.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);var a=r;if(this.layout&&(this.layout.encode(e[this.property],t,n+r),a+=this.layout.getSpan(t,n+r),0<=this.union.span&&a>this.union.span))throw new Error("encoded variant overruns containing union");return a}},{key:"fromArray",value:function(e){if(this.layout)return this.layout.fromArray(e)}}]),n}(f);function D(e){return 0>e&&(e+=4294967296),e}var j=function(e){o(n,e);var t=s(n);function n(e,r,a){var i;if(c(this,n),!(e instanceof h||e instanceof y))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof r&&void 0===a&&(a=r,r=void 0),4=n)throw new TypeError("bits must be positive integer");var a=8*t.span,i=t.fields.reduce((function(e,t){return e+t.bits}),0);if(n+i>a)throw new Error("bits too long for span remainder ("+(a-i)+" of "+a+" remain)");this.container=t,this.bits=n,this.valueMask=(1<>>this.start}},{key:"encode",value:function(e){if(!Number.isInteger(e)||e!==D(e&this.valueMask))throw new TypeError(d("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var t=this.container._packedGetValue(),n=D(e<n&&(n=this.length.decode(e,t)),n}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=this.span;return 0>n&&(n=this.length.decode(e,t)),e.slice(t,t+n)}},{key:"encode",value:function(e,t,n){var a=this.length;if(this.length instanceof l&&(a=e.length),!r.isBuffer(e)||a!==e.length)throw new TypeError(d("Blob.encode",this)+" requires (length "+a+") Buffer as src");if(n+a>t.length)throw new RangeError("encoding overruns Buffer");return t.write(e.toString("hex"),n,a,"hex"),this.length instanceof l&&this.length.encode(a,t,n),a}}]),n}(f),F=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,-1,e)}return u(n,[{key:"getSpan",value:function(e,t){if(!r.isBuffer(e))throw new TypeError("b must be a Buffer");void 0===t&&(t=0);for(var n=t;nt.length)throw new RangeError("encoding overruns Buffer");return a.copy(t,n),t[n+i]=0,i+1}}]),n}(f),H=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),"string"==typeof e&&void 0===r&&(r=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");return(a=t.call(this,-1,r)).maxSpan=e,a}return u(n,[{key:"getSpan",value:function(e,t){if(!r.isBuffer(e))throw new TypeError("b must be a Buffer");return void 0===t&&(t=0),e.length-t}},{key:"decode",value:function(e,t,n){void 0===t&&(t=0);var r=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpant.length)throw new RangeError("encoding overruns Buffer");return a.copy(t,n),i}}]),n}(f),z=function(e){o(n,e);var t=s(n);function n(e,r){var a;return c(this,n),(a=t.call(this,0,r)).value=e,a}return u(n,[{key:"decode",value:function(e,t,n){return this.value}},{key:"encode",value:function(e,t,n){return 0}}]),n}(f);t.ExternalLayout=l,t.GreedyCount=p,t.OffsetLayout=b,t.UInt=h,t.UIntBE=y,t.Int=m,t.IntBE=v,t.Float=I,t.FloatBE=E,t.Double=C,t.DoubleBE=T,t.Sequence=O,t.Structure=P,t.UnionDiscriminator=M,t.UnionLayoutDiscriminator=B,t.Union=R,t.VariantLayout=N,t.BitStructure=j,t.BitField=U,t.Boolean=L,t.Blob=Z,t.CString=F,t.UTF8=H,t.Constant=z,t.greedy=function(e,t){return new p(e,t)},t.offset=function(e,t,n){return new b(e,t,n)},t.u8=function(e){return new h(1,e)},t.u16=function(e){return new h(2,e)},t.u24=function(e){return new h(3,e)},t.u32=function(e){return new h(4,e)},t.u40=function(e){return new h(5,e)},t.u48=function(e){return new h(6,e)},t.nu64=function(e){return new x(e)},t.u16be=function(e){return new y(2,e)},t.u24be=function(e){return new y(3,e)},t.u32be=function(e){return new y(4,e)},t.u40be=function(e){return new y(5,e)},t.u48be=function(e){return new y(6,e)},t.nu64be=function(e){return new _(e)},t.s8=function(e){return new m(1,e)},t.s16=function(e){return new m(2,e)},t.s24=function(e){return new m(3,e)},t.s32=function(e){return new m(4,e)},t.s40=function(e){return new m(5,e)},t.s48=function(e){return new m(6,e)},t.ns64=function(e){return new k(e)},t.s16be=function(e){return new v(2,e)},t.s24be=function(e){return new v(3,e)},t.s32be=function(e){return new v(4,e)},t.s40be=function(e){return new v(5,e)},t.s48be=function(e){return new v(6,e)},t.ns64be=function(e){return new S(e)},t.f32=function(e){return new I(e)},t.f32be=function(e){return new E(e)},t.f64=function(e){return new C(e)},t.f64be=function(e){return new T(e)},t.struct=function(e,t,n){return new P(e,t,n)},t.bits=function(e,t,n){return new j(e,t,n)},t.seq=function(e,t,n){return new O(e,t,n)},t.union=function(e,t,n){return new R(e,t,n)},t.unionLayoutDiscriminator=function(e,t){return new B(e,t)},t.blob=function(e,t){return new Z(e,t)},t.cstr=function(e){return new F(e)},t.utf8=function(e,t){return new H(e,t)},t.const=function(e,t){return new z(e,t)}},12008:function(e,t,n){var r=n(79061).Buffer;e.exports=function(e,t){for(var n=Math.min(e.length,t.length),a=new r(n),i=0;id)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,p.prototype),t}function p(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return y(e)}return b(e,t,n)}function b(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!p.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|A(e,t),r=l(n),a=r.write(e,t);return a!==n&&(r=r.slice(0,a)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ee(e,Uint8Array)){var t=new Uint8Array(e);return v(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ee(e,ArrayBuffer)||e&&ee(e.buffer,ArrayBuffer))return v(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(ee(e,SharedArrayBuffer)||e&&ee(e.buffer,SharedArrayBuffer)))return v(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return p.from(r,t,n);var a=function(e){if(p.isBuffer(e)){var t=0|g(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||te(e.length)?l(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return p.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function y(e){return h(e),l(e<0?0:0|g(e))}function m(e){for(var t=e.length<0?0:0|g(e.length),n=l(t),r=0;r=d)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d.toString(16)+" bytes");return 0|e}function A(e,t){if(p.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ee(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(a)return r?-1:Y(e).length;t=(""+t).toLowerCase(),a=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return R(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),te(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=p.from(t,r)),p.isBuffer(t))return 0===t.length?-1:k(e,t,n,r,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,r,a){var i,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var f=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){for(var d=!0,l=0;la&&(r=a):r=a;var i,o=t.length;for(r>o/2&&(r=o/2),i=0;i>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?c.fromByteArray(e):c.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a239?4:i>223?3:i>191?2:1;if(a+s<=n){var c=void 0,u=void 0,f=void 0,d=void 0;switch(s){case 1:i<128&&(o=i);break;case 2:128==(192&(c=e[a+1]))&&(d=(31&i)<<6|63&c)>127&&(o=d);break;case 3:c=e[a+1],u=e[a+2],128==(192&c)&&128==(192&u)&&(d=(15&i)<<12|(63&c)<<6|63&u)>2047&&(d<55296||d>57343)&&(o=d);break;case 4:c=e[a+1],u=e[a+2],f=e[a+3],128==(192&c)&&128==(192&u)&&128==(192&f)&&(d=(15&i)<<18|(63&c)<<12|(63&u)<<6|63&f)>65535&&d<1114112&&(o=d)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),a+=s}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr.length?(p.isBuffer(i)||(i=p.from(i)),i.copy(r,a)):Uint8Array.prototype.set.call(r,i,a);else{if(!p.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a)}a+=i.length}return r},p.byteLength=A,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},f&&(p.prototype[f]=p.prototype.inspect),p.prototype.compare=function(e,t,n,r,a){if(ee(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),!p.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(i,o),c=this.slice(r,a),u=e.slice(t,n),f=0;f>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return I(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function B(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;ar)&&(n=r);for(var a="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function U(e,t,n,r,a,i){if(!p.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function L(e,t,n,r,a){V(t,r,a,e,n,7);var i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function Z(e,t,n,r,a){V(t,r,a,e,n,7);var i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function F(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,a){return t=+t,n>>>=0,a||F(e,0,n,4),u.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,a){return t=+t,n>>>=0,a||F(e,0,n,8),u.write(e,t,n,r,52,8),n+8}p.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e],a=1,i=0;++i>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},p.prototype.readUint8=p.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},p.prototype.readBigUInt64LE=re((function(e){J(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),a=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+n*Math.pow(2,24);return BigInt(r)+(BigInt(a)<>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],a=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n;return(BigInt(r)<>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e],a=1,i=0;++i=(a*=128)&&(r-=Math.pow(2,8*t)),r},p.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},p.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},p.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},p.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},p.prototype.readBigInt64LE=re((function(e){J(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(n<<24);return(BigInt(r)<>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(r)<>>=0,t||j(e,4,this.length),u.read(this,e,!0,23,4)},p.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),u.read(this,e,!1,23,4)},p.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),u.read(this,e,!0,52,8)},p.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),u.read(this,e,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},p.prototype.writeUint8=p.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,255,0),this[t]=255&e,t+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigUInt64LE=re((function(e){return L(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeBigUInt64BE=re((function(e){return Z(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);U(this,e,t,n,a-1,-a)}var i=0,o=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},p.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);U(this,e,t,n,a-1,-a)}var i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},p.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},p.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},p.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigInt64LE=re((function(e){return L(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeBigInt64BE=re((function(e){return Z(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},p.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},p.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},p.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},p.prototype.copy=function(e,t,n,r){if(!p.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function V(e,t,n,r,a,i){if(e>n||e3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(i+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(i+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(i+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(n).concat(s),new q.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){J(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||G(t,e.length-(n+1))}(r,a,i)}function J(e,t){if("number"!=typeof e)throw new q.ERR_INVALID_ARG_TYPE(t,"number",e)}function G(e,t,n){if(Math.floor(e)!==e)throw J(e,n),new q.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new q.ERR_BUFFER_OUT_OF_BOUNDS;throw new q.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}Q("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),Q("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),Q("ERR_OUT_OF_RANGE",(function(e,t,n){var r='The value of "'.concat(e,'" is out of range.'),a=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?a=K(String(n)):"bigint"==typeof n&&(a=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(a=K(a)),a+="n"),r+" It must be ".concat(t,". Received ").concat(a)}),RangeError);var W=/[^+/0-9A-Za-z-_]/g;function Y(e,t){var n;t=t||1/0;for(var r=e.length,a=null,i=[],o=0;o55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function X(e){return c.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){var a;for(a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function ee(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function te(e){return e!=e}var ne=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,a=0;a<16;++a)t[r+a]=e[n]+e[a];return t}();function re(e){return"undefined"==typeof BigInt?ae:e}function ae(){throw new Error("BigInt not supported")}},44861:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},13566:function(e,t,n){"use strict";var r=n(26953),a=n(48619),i=a(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?a(n):n}},48619:function(e,t,n){"use strict";var r=n(98368),a=n(26953),i=a("%Function.prototype.apply%"),o=a("%Function.prototype.call%"),s=a("%Reflect.apply%",!0)||r.call(o,i),c=a("%Object.getOwnPropertyDescriptor%",!0),u=a("%Object.defineProperty%",!0),f=a("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,o,arguments);return c&&u&&c(t,"length").configurable&&u(t,"length",{value:1+f(0,e.length-(arguments.length-1))}),t};var d=function(){return s(r,i,arguments)};u?u(e.exports,"apply",{value:d}):e.exports.apply=d},12608:function(e){"use strict";var t=function(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");var n;return t=Object.assign({pascalCase:!1},t),e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join("-"):e.trim(),0===e.length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=function(e){for(var t=!1,n=!1,r=!1,a=0;a=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var b=u-p|0;f+=(o=(a=0|e.words[b])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?f[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],p=l[e];n="";var b=this.clone();for(b.negative=0;!b.isZero();){var h=b.modn(p).toString(e);n=(b=b.idivn(p)).isZero()?h+n:f[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),f=this.clone();if(c){for(s=0;!f.isZero();s++)o=f.andln(255),f.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,p=0|o[1],b=8191&p,h=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,S=0|o[5],I=8191&S,E=S>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,R=0|o[8],N=8191&R,D=R>>>13,j=0|o[9],U=8191&j,L=j>>>13,Z=0|s[0],F=8191&Z,H=Z>>>13,z=0|s[1],q=8191&z,Q=z>>>13,K=0|s[2],V=8191&K,J=K>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],be=8191&pe,he=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,F))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,F)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,F),a=(a=Math.imul(b,H))+Math.imul(h,F)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,Q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,F),a=(a=Math.imul(m,H))+Math.imul(v,F)|0,i=Math.imul(v,H),r=r+Math.imul(b,q)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(h,q)|0,i=i+Math.imul(h,Q)|0;var ve=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(a=(a=a+Math.imul(d,J)|0)+Math.imul(l,V)|0))<<13)|0;u=((i=i+Math.imul(l,J)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,F),a=(a=Math.imul(A,H))+Math.imul(w,F)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,Q)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,Q)|0,r=r+Math.imul(b,V)|0,a=(a=a+Math.imul(b,J)|0)+Math.imul(h,V)|0,i=i+Math.imul(h,J)|0;var ge=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(a=(a=a+Math.imul(d,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,F),a=(a=Math.imul(_,H))+Math.imul(k,F)|0,i=Math.imul(k,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,Q)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,Q)|0,r=r+Math.imul(m,V)|0,a=(a=a+Math.imul(m,J)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,J)|0,r=r+Math.imul(b,W)|0,a=(a=a+Math.imul(b,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(I,F),a=(a=Math.imul(I,H))+Math.imul(E,F)|0,i=Math.imul(E,H),r=r+Math.imul(_,q)|0,a=(a=a+Math.imul(_,Q)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,Q)|0,r=r+Math.imul(A,V)|0,a=(a=a+Math.imul(A,J)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,J)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(b,$)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,F),a=(a=Math.imul(T,H))+Math.imul(O,F)|0,i=Math.imul(O,H),r=r+Math.imul(I,q)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,Q)|0,r=r+Math.imul(_,V)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(b,ne)|0,a=(a=a+Math.imul(b,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,F),a=(a=Math.imul(M,H))+Math.imul(B,F)|0,i=Math.imul(B,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,Q)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,Q)|0,r=r+Math.imul(I,V)|0,a=(a=a+Math.imul(I,J)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,J)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(b,ie)|0,a=(a=a+Math.imul(b,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(N,F),a=(a=Math.imul(N,H))+Math.imul(D,F)|0,i=Math.imul(D,H),r=r+Math.imul(M,q)|0,a=(a=a+Math.imul(M,Q)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,Q)|0,r=r+Math.imul(T,V)|0,a=(a=a+Math.imul(T,J)|0)+Math.imul(O,V)|0,i=i+Math.imul(O,J)|0,r=r+Math.imul(I,W)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(b,ce)|0,a=(a=a+Math.imul(b,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,F),a=(a=Math.imul(U,H))+Math.imul(L,F)|0,i=Math.imul(L,H),r=r+Math.imul(N,q)|0,a=(a=a+Math.imul(N,Q)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,Q)|0,r=r+Math.imul(M,V)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,J)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(I,$)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(b,de)|0,a=(a=a+Math.imul(b,le)|0)+Math.imul(h,de)|0,i=i+Math.imul(h,le)|0;var Se=(u+(r=r+Math.imul(d,be)|0)|0)+((8191&(a=(a=a+Math.imul(d,he)|0)+Math.imul(l,be)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,q),a=(a=Math.imul(U,Q))+Math.imul(L,q)|0,i=Math.imul(L,Q),r=r+Math.imul(N,V)|0,a=(a=a+Math.imul(N,J)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,J)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(I,ne)|0,a=(a=a+Math.imul(I,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Ie=(u+(r=r+Math.imul(b,be)|0)|0)+((8191&(a=(a=a+Math.imul(b,he)|0)+Math.imul(h,be)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,V),a=(a=Math.imul(U,J))+Math.imul(L,V)|0,i=Math.imul(L,J),r=r+Math.imul(N,W)|0,a=(a=a+Math.imul(N,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,be)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,be)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(N,$)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(I,ce)|0,a=(a=a+Math.imul(I,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,de)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,be)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,be)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(N,ne)|0,a=(a=a+Math.imul(N,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(I,de)|0,a=(a=a+Math.imul(I,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,be)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,be)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(N,ie)|0,a=(a=a+Math.imul(N,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(I,be)|0)|0)+((8191&(a=(a=a+Math.imul(I,he)|0)+Math.imul(E,be)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,de)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,de)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,be)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,be)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(N,de)|0,a=(a=a+Math.imul(N,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,be)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,be)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,de),a=(a=Math.imul(U,le))+Math.imul(L,de)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(N,be)|0)|0)+((8191&(a=(a=a+Math.imul(N,he)|0)+Math.imul(D,be)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Re=(u+(r=Math.imul(U,be))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,be)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Se,c[10]=Ie,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Re,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(b=p),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?b(this,e,t):r<63?p(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0==(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var b=0,h=1;0==(n.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(n.iushrn(b);b-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0==(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),b=o;0!==p.cmp(s);){for(var h=p,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4==++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},30901:function(e,t,n){"use strict";var r=n(92289),a=n(37965),i=n(14189),o=n(76582),s=n(18444);function c(e){s.call(this,"digest"),this._hash=e}r(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new a:"rmd160"===e||"ripemd160"===e?new i:new c(o(e))}},68154:function(e,t,n){var r=n(37965);e.exports=function(e){return(new r).update(e).digest()}},83688:function(e,t,n){"use strict";var r=n(92289),a=n(59455),i=n(18444),o=n(32337).Buffer,s=n(68154),c=n(14189),u=n(76582),f=o.alloc(128);function d(e,t){i.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var n="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>n?t=("rmd160"===e?new c:u(e)).update(t).digest():t.lengths?t=e(t):t.length-1};function i(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function o(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function u(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function l(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:n.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:n.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=l(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=l(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,n,r=u(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=f(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function y(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}})),t}function m(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}h.prototype.clone=function(){return new h(this,{body:this._bodyInit})},p.call(h.prototype),p.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];m.redirect=function(e,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function g(e,r){return new Promise((function(a,i){var o=new h(e,r);if(o.signal&&o.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;a(new m(r,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&n.blob&&(s.responseType="blob"),o.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",u)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}g.polyfill=!0,e.fetch||(e.fetch=g,e.Headers=c,e.Request=h,e.Response=m),t.Headers=c,t.Request=h,t.Response=m,t.fetch=g,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=r;(t=a.fetch).default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t},86963:function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(10050),t.createHash=t.Hash=n(30901),t.createHmac=t.Hmac=n(83688);var r=n(98917),a=Object.keys(r),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);t.getHashes=function(){return i};var o=n(9542);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=n(78133);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var c=n(69646);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var u=n(65638);t.createSign=u.createSign,t.Sign=u.Sign,t.createVerify=u.createVerify,t.Verify=u.Verify,t.createECDH=n(1712);var f=n(36048);t.publicEncrypt=f.publicEncrypt,t.privateEncrypt=f.privateEncrypt,t.publicDecrypt=f.publicDecrypt,t.privateDecrypt=f.privateDecrypt;var d=n(2700);t.randomFill=d.randomFill,t.randomFillSync=d.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},14085:function(e){"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function a(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],a(n),a(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n)||[],r=1;r2?arguments[2]:{},i=r(t);a&&(i=o.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(a,n);return t+=this._buffer(e,t),a},a.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},a.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];n=i.r28shl(n,s),a=i.r28shl(a,s),i.pc2(n,a,e.keys,o)}},c.prototype._update=function(e,t,n,r){var a=this._desState,o=i.readUInt32BE(e,t),s=i.readUInt32BE(e,t+4);i.ip(o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],"encrypt"===this.type?this._encrypt(a,o,s,a.tmp,0):this._decrypt(a,o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],i.writeUInt32BE(n,o,r),i.writeUInt32BE(n,s,r+4)},c.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r>>0,o=l}i.rip(s,o,r,a)},c.prototype._decrypt=function(e,t,n,r,a){for(var o=n,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],f=e.keys[c+1];i.expand(o,e.tmp,0),u^=e.tmp[0],f^=e.tmp[1];var d=i.substitute(u,f),l=o;o=(s^i.permute(d))>>>0,s=l}i.rip(o,s,r,a)}},44864:function(e,t,n){"use strict";var r=n(74804),a=n(92289),i=n(82731),o=n(40201);function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),a=t.slice(8,16),i=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:a}),o.create({type:"encrypt",key:i})]:[o.create({type:"decrypt",key:i}),o.create({type:"encrypt",key:a}),o.create({type:"decrypt",key:n})]}function c(e){i.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}a(c,i),e.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,n,r){var a=this._edeState;a.ciphers[0]._update(e,t,n,r),a.ciphers[1]._update(n,r,n,r),a.ciphers[2]._update(n,r,n,r)},c.prototype._pad=o.prototype._pad,c.prototype._unpad=o.prototype._unpad},77392:function(e,t){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var a=0,i=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)i<<=1,i|=t>>>s+o&1;for(s=1;s<=25;s+=8)i<<=1,i|=e>>>s+o&1}n[r+0]=a>>>0,n[r+1]=i>>>0},t.rip=function(e,t,n,r){for(var a=0,i=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;n[r+0]=a>>>0,n[r+1]=i>>>0},t.pc1=function(e,t,n,r){for(var a=0,i=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1;n[r+0]=a>>>0,n[r+1]=i>>>0},t.r28shl=function(e,t){return e<>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,a){for(var i=0,o=0,s=n.length>>>1,c=0;c>>n[c]&1;for(c=s;c>>n[c]&1;r[a+0]=i>>>0,r[a+1]=o>>>0},t.expand=function(e,t,n){var r=0,a=0;r=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)r<<=6,r|=e>>>i&63;for(i=11;i>=3;i-=4)a|=e>>>i&63,a<<=6;a|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=a>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,a=0;a<4;a++)n<<=4,n|=r[64*a+(e>>>18-6*a&63)];for(a=0;a<4;a++)n<<=4,n|=r[256+64*a+(t>>>18-6*a&63)];return n>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n>>a[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.lengthe;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(c),t.cmp(c)){if(!t.cmp(u))for(;n.mod(f).cmp(d);)n.iadd(p)}else for(;n.mod(i).cmp(l);)n.iadd(p);if(y(b=n.shrn(1))&&y(n)&&m(b)&&m(n)&&o.test(b)&&o.test(n))return n}}},91248:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(7748).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var b=u-p|0;f+=(o=(a=0|e.words[b])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?f[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],p=l[e];n="";var b=this.clone();for(b.negative=0;!b.isZero();){var h=b.modn(p).toString(e);n=(b=b.idivn(p)).isZero()?h+n:f[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),f=this.clone();if(c){for(s=0;!f.isZero();s++)o=f.andln(255),f.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,p=0|o[1],b=8191&p,h=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,S=0|o[5],I=8191&S,E=S>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,R=0|o[8],N=8191&R,D=R>>>13,j=0|o[9],U=8191&j,L=j>>>13,Z=0|s[0],F=8191&Z,H=Z>>>13,z=0|s[1],q=8191&z,Q=z>>>13,K=0|s[2],V=8191&K,J=K>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],be=8191&pe,he=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,F))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,F)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,F),a=(a=Math.imul(b,H))+Math.imul(h,F)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,Q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,F),a=(a=Math.imul(m,H))+Math.imul(v,F)|0,i=Math.imul(v,H),r=r+Math.imul(b,q)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(h,q)|0,i=i+Math.imul(h,Q)|0;var ve=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(a=(a=a+Math.imul(d,J)|0)+Math.imul(l,V)|0))<<13)|0;u=((i=i+Math.imul(l,J)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,F),a=(a=Math.imul(A,H))+Math.imul(w,F)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,Q)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,Q)|0,r=r+Math.imul(b,V)|0,a=(a=a+Math.imul(b,J)|0)+Math.imul(h,V)|0,i=i+Math.imul(h,J)|0;var ge=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(a=(a=a+Math.imul(d,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,F),a=(a=Math.imul(_,H))+Math.imul(k,F)|0,i=Math.imul(k,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,Q)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,Q)|0,r=r+Math.imul(m,V)|0,a=(a=a+Math.imul(m,J)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,J)|0,r=r+Math.imul(b,W)|0,a=(a=a+Math.imul(b,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(I,F),a=(a=Math.imul(I,H))+Math.imul(E,F)|0,i=Math.imul(E,H),r=r+Math.imul(_,q)|0,a=(a=a+Math.imul(_,Q)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,Q)|0,r=r+Math.imul(A,V)|0,a=(a=a+Math.imul(A,J)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,J)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(b,$)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,F),a=(a=Math.imul(T,H))+Math.imul(O,F)|0,i=Math.imul(O,H),r=r+Math.imul(I,q)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,Q)|0,r=r+Math.imul(_,V)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(b,ne)|0,a=(a=a+Math.imul(b,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,F),a=(a=Math.imul(M,H))+Math.imul(B,F)|0,i=Math.imul(B,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,Q)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,Q)|0,r=r+Math.imul(I,V)|0,a=(a=a+Math.imul(I,J)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,J)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(b,ie)|0,a=(a=a+Math.imul(b,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(N,F),a=(a=Math.imul(N,H))+Math.imul(D,F)|0,i=Math.imul(D,H),r=r+Math.imul(M,q)|0,a=(a=a+Math.imul(M,Q)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,Q)|0,r=r+Math.imul(T,V)|0,a=(a=a+Math.imul(T,J)|0)+Math.imul(O,V)|0,i=i+Math.imul(O,J)|0,r=r+Math.imul(I,W)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(b,ce)|0,a=(a=a+Math.imul(b,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,F),a=(a=Math.imul(U,H))+Math.imul(L,F)|0,i=Math.imul(L,H),r=r+Math.imul(N,q)|0,a=(a=a+Math.imul(N,Q)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,Q)|0,r=r+Math.imul(M,V)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,J)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(I,$)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(b,de)|0,a=(a=a+Math.imul(b,le)|0)+Math.imul(h,de)|0,i=i+Math.imul(h,le)|0;var Se=(u+(r=r+Math.imul(d,be)|0)|0)+((8191&(a=(a=a+Math.imul(d,he)|0)+Math.imul(l,be)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,q),a=(a=Math.imul(U,Q))+Math.imul(L,q)|0,i=Math.imul(L,Q),r=r+Math.imul(N,V)|0,a=(a=a+Math.imul(N,J)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,J)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(I,ne)|0,a=(a=a+Math.imul(I,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Ie=(u+(r=r+Math.imul(b,be)|0)|0)+((8191&(a=(a=a+Math.imul(b,he)|0)+Math.imul(h,be)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,V),a=(a=Math.imul(U,J))+Math.imul(L,V)|0,i=Math.imul(L,J),r=r+Math.imul(N,W)|0,a=(a=a+Math.imul(N,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,be)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,be)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(N,$)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(I,ce)|0,a=(a=a+Math.imul(I,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,de)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,be)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,be)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(N,ne)|0,a=(a=a+Math.imul(N,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(I,de)|0,a=(a=a+Math.imul(I,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,be)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,be)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(N,ie)|0,a=(a=a+Math.imul(N,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(I,be)|0)|0)+((8191&(a=(a=a+Math.imul(I,he)|0)+Math.imul(E,be)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,de)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,de)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,be)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,be)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(N,de)|0,a=(a=a+Math.imul(N,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,be)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,be)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,de),a=(a=Math.imul(U,le))+Math.imul(L,de)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(N,be)|0)|0)+((8191&(a=(a=a+Math.imul(N,he)|0)+Math.imul(D,be)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Re=(u+(r=Math.imul(U,be))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,be)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Se,c[10]=Ie,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Re,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(b=p),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?b(this,e,t):r<63?p(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0==(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var b=0,h=1;0==(n.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(n.iushrn(b);b-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0==(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),b=o;0!==p.cmp(s);){for(var h=p,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4==++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},22582:function(e){"use strict";var t={single_source_shortest_paths:function(e,n,r){var a={},i={};i[n]=0;var o,s,c,u,f,d,l,p=t.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(c in s=(o=p.pop()).value,u=o.cost,f=e[s]||{})f.hasOwnProperty(c)&&(d=u+f[c],l=i[c],(void 0===i[c]||l>d)&&(i[c]=d,p.push(c,d),a[c]=s));if(void 0!==r&&void 0===i[r]){var b=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(b)}return a},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var a=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(a,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,a={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(a[n]=r[n]);return a.queue=[],a.sorter=e.sorter||r.default_sorter,a},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},23494:function(e,t,n){"use strict";var r=t;r.version=n(18597).i8,r.utils=n(85257),r.rand=n(90523),r.curve=n(72053),r.curves=n(57566),r.ec=n(15402),r.eddsa=n(86305)},10072:function(e,t,n){"use strict";var r=n(37769),a=n(85257),i=a.getNAF,o=a.getJSF,s=a.assert;function c(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=i(t,1,this._bitLength),a=(1<=o;f--)c=(c<<1)+r[f];u.push(c)}for(var d=this.jpoint(null,null,null),l=this.jpoint(null,null,null),p=a;p>0;p--){for(o=0;o=0;u--){for(var f=0;u>=0&&0===o[u];u--)f++;if(u>=0&&f++,c=c.dblp(f),u<0)break;var d=o[u];s(0!==d),c="affine"===e.type?d>0?c.mixedAdd(a[d-1>>1]):c.mixedAdd(a[-d-1>>1].neg()):d>0?c.add(a[d-1>>1]):c.add(a[-d-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,a){var s,c,u,f=this._wnafT1,d=this._wnafT2,l=this._wnafT3,p=0;for(s=0;s=1;s-=2){var h=s-1,y=s;if(1===f[h]&&1===f[y]){var m=[t[h],null,null,t[y]];0===t[h].y.cmp(t[y].y)?(m[1]=t[h].add(t[y]),m[2]=t[h].toJ().mixedAdd(t[y].neg())):0===t[h].y.cmp(t[y].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[y]),m[2]=t[h].add(t[y].neg())):(m[1]=t[h].toJ().mixedAdd(t[y]),m[2]=t[h].toJ().mixedAdd(t[y].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=o(n[h],n[y]);for(p=Math.max(g[0].length,p),l[h]=new Array(p),l[y]=new Array(p),c=0;c=0;s--){for(var k=0;s>=0;){var S=!0;for(c=0;c=0&&k++,x=x.dblp(k),s<0)break;for(c=0;c0?u=d[c][I-1>>1]:I<0&&(u=d[c][-I-1>>1].neg()),x="affine"===u.type?x.mixedAdd(u):x.add(u))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,a=0;a":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=r.redAdd(t),o=i.redSub(n),s=r.redSub(t),c=a.redMul(o),u=i.redMul(s),f=a.redMul(s),d=o.redMul(i);return this.curve.point(c,u,d,f)},u.prototype._projDbl=function(){var e,t,n,r,a,i,o=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var u=(r=this.curve._mulA(s)).redAdd(c);this.zOne?(e=o.redSub(s).redSub(c).redMul(u.redSub(this.curve.two)),t=u.redMul(r.redSub(c)),n=u.redSqr().redSub(u).redSub(u)):(a=this.z.redSqr(),i=u.redSub(a).redISub(a),e=o.redSub(s).redISub(c).redMul(i),t=u.redMul(r.redSub(c)),n=u.redMul(i))}else r=s.redAdd(c),a=this.curve._mulC(this.z).redSqr(),i=r.redSub(a).redSub(a),e=this.curve._mulC(o.redISub(r)).redMul(i),t=this.curve._mulC(r).redMul(s.redISub(c)),n=r.redMul(i);return this.curve.point(e,t,n)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),i=n.redSub(t),o=a.redSub(r),s=a.redAdd(r),c=n.redAdd(t),u=i.redMul(o),f=s.redMul(c),d=i.redMul(c),l=o.redMul(s);return this.curve.point(u,f,l,d)},u.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),a=r.redSqr(),i=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(i).redMul(o),c=a.redSub(s),u=a.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(o),d=r.redMul(c).redMul(f);return this.curve.twisted?(t=r.redMul(u).redMul(o.redSub(this.curve._mulA(i))),n=c.redMul(u)):(t=r.redMul(u).redMul(o.redSub(i)),n=this.curve._mulC(c).redMul(u)),this.curve.point(d,t,n)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},u.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},72053:function(e,t,n){"use strict";var r=t;r.base=n(10072),r.short=n(51012),r.mont=n(64810),r.edwards=n(94116)},64810:function(e,t,n){"use strict";var r=n(37769),a=n(92289),i=n(10072),o=n(85257);function s(e){i.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,n){i.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(s,i),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},a(c,i.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),a=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,a)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),a=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(n),o=a.redMul(r),s=t.z.redMul(i.redAdd(o).redSqr()),c=t.x.redMul(i.redISub(o).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),a=[];0!==t.cmpn(0);t.iushrn(1))a.push(t.andln(1));for(var i=a.length-1;i>=0;i--)0===a[i]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},51012:function(e,t,n){"use strict";var r=n(85257),a=n(37769),i=n(92289),o=n(10072),s=r.assert;function c(e){o.call(this,"short",e),this.a=new a(e.a,16).toRed(this.red),this.b=new a(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,n,r){o.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new a(t,16),this.y=new a(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(e,t,n,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0)):(this.x=new a(t,16),this.y=new a(n,16),this.z=new a(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}i(c,o),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new a(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new a(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?n=i[0]:(n=i[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new a(e.a,16),b:new a(e.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:a.mont(e),n=new a(2).toRed(t).redInvm(),r=n.redNeg(),i=new a(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,n,r,i,o,s,c,u,f,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,p=this.n.clone(),b=new a(1),h=new a(0),y=new a(0),m=new a(1),v=0;0!==l.cmpn(0);){var g=p.div(l);u=p.sub(g.mul(l)),f=y.sub(g.mul(b));var A=m.sub(g.mul(h));if(!r&&u.cmp(d)<0)t=c.neg(),n=b,r=u.neg(),i=f;else if(r&&2==++v)break;c=u,p=l,l=u,y=b,b=f,m=h,h=A}o=u.neg(),s=f;var w=r.sqr().add(i.sqr());return o.sqr().add(s.sqr()).cmp(w)>=0&&(o=t,s=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:i},{a:o,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],a=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),o=a.mul(n.a),s=i.mul(r.a),c=a.mul(n.b),u=i.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(u).neg()}},c.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(a).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,a=this._endoWnafT2,i=0;i":""},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),a=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a):this.curve._wnafMulAdd(1,r,a,2)},u.prototype.jmulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a,!0):this.curve._wnafMulAdd(1,r,a,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(f,o.BasePoint),c.prototype.jpoint=function(e,t,n){return new f(this,e,t,n)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),a=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(a),c=i.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),f=u.redMul(s),d=r.redMul(u),l=c.redSqr().redIAdd(f).redISub(d).redISub(d),p=c.redMul(d.redISub(l)).redISub(i.redMul(f)),b=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(l,p,b)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),a=this.y,i=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=a.redSub(i);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),f=n.redMul(c),d=s.redSqr().redIAdd(u).redISub(f).redISub(f),l=s.redMul(f.redISub(d)).redISub(a.redMul(u)),p=this.z.redMul(o);return this.curve.jpoint(d,l,p)},f.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(a),0===this.x.cmp(n))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},57566:function(e,t,n){"use strict";var r,a=t,i=n(30419),o=n(72053),s=n(85257).assert;function c(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(a,e,{configurable:!0,enumerable:!0,get:function(){var n=new c(t);return Object.defineProperty(a,e,{configurable:!0,enumerable:!0,value:n}),n}})}a.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(94472)}catch(e){r=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},15402:function(e,t,n){"use strict";var r=n(37769),a=n(23887),i=n(85257),o=n(57566),s=n(90523),c=i.assert,u=n(9048),f=n(4015);function d(e){if(!(this instanceof d))return new d(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=d,d.prototype.keyPair=function(e){return new u(this,e)},d.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},d.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},d.prototype.genKeyPair=function(e){e||(e={});for(var t=new a({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new r(2));;){var o=new r(t.generate(n));if(!(o.cmp(i)>0))return o.iaddn(1),this.keyFromPrivate(o)}},d.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},d.prototype.sign=function(e,t,n,i){"object"==typeof n&&(i=n,n=null),i||(i={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),c=e.toArray("be",o),u=new a({hash:this.hash,entropy:s,nonce:c,pers:i.pers,persEnc:i.persEnc||"utf8"}),d=this.n.sub(new r(1)),l=0;;l++){var p=i.k?i.k(l):new r(u.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(d)>=0)){var b=this.g.mul(p);if(!b.isInfinity()){var h=b.getX(),y=h.umod(this.n);if(0!==y.cmpn(0)){var m=p.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(b.getY().isOdd()?1:0)|(0!==h.cmp(y)?2:0);return i.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new f({r:y,s:m,recoveryParam:v})}}}}}},d.prototype.verify=function(e,t,n,a){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,a);var i=(t=new f(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,c=o.invm(this.n),u=c.mul(e).umod(this.n),d=c.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,n.getPublic(),d)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(u,n.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},d.prototype.recoverPubKey=function(e,t,n,a){c((3&n)===n,"The recovery param is more than two bits"),t=new f(t,a);var i=this.n,o=new r(e),s=t.r,u=t.s,d=1&n,l=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var p=t.r.invm(i),b=i.sub(o).mul(p).umod(i),h=u.mul(p).umod(i);return this.g.mulAdd(b,s,h)},d.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new f(t,r)).recoveryParam)return t.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(n))return a}throw new Error("Unable to find valid recovery factor")}},9048:function(e,t,n){"use strict";var r=n(37769),a=n(85257).assert;function i(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=i,i.fromPublic=function(e,t,n){return t instanceof i?t:new i(e,{pub:t,pubEnc:n})},i.fromPrivate=function(e,t,n){return t instanceof i?t:new i(e,{priv:t,privEnc:n})},i.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},i.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?a(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||a(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},i.prototype.derive=function(e){return e.validate()||a(e.validate(),"public point not validated"),e.mul(this.priv).getX()},i.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},i.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},i.prototype.inspect=function(){return""}},4015:function(e,t,n){"use strict";var r=n(37769),a=n(85257),i=a.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var a=0,i=0,o=t.place;i>>=0;return!(a<=127)&&(t.place=o,a)}function u(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=o,o.prototype._importDER=function(e,t){e=a.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;var i=c(e,n);if(!1===i)return!1;if(i+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var o=c(e,n);if(!1===o)return!1;var u=e.slice(n.place,o+n.place);if(n.place+=o,2!==e[n.place++])return!1;var f=c(e,n);if(!1===f)return!1;if(e.length!==f+n.place)return!1;var d=e.slice(n.place,f+n.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new r(u),this.s=new r(d),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=u(t),n=u(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];f(r,t.length),(r=r.concat(t)).push(2),f(r,n.length);var i=r.concat(n),o=[48];return f(o,i.length),o=o.concat(i),a.encode(o,e)}},86305:function(e,t,n){"use strict";var r=n(30419),a=n(57566),i=n(85257),o=i.assert,s=i.parseBytes,c=n(53497),u=n(91223);function f(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=a[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=f,f.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),a=this.g.mul(r),i=this.encodePoint(a),o=this.hashInt(i,n.pubBytes(),e).mul(n.priv()),c=r.add(o).umod(this.curve.n);return this.makeSignature({R:a,S:c,Rencoded:i})},f.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),a=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(r.pub().mul(a)).eq(i)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t(a>>1)-1?(a>>1)-c:c,i.isubn(s)):s=0,r[o]=s,i.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,a=0,i=0;e.cmpn(-a)>0||t.cmpn(-i)>0;){var o,s,c=e.andln(3)+a&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),o=0==(1&c)?0:3!=(r=e.andln(7)+a&7)&&5!==r||2!==u?c:-c,n[0].push(o),s=0==(1&u)?0:3!=(r=t.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[1].push(s),2*a===o+1&&(a=1-a),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new a(e,"hex","le")}},37769:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(85568).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var b=u-p|0;f+=(o=(a=0|e.words[b])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?f[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],p=l[e];n="";var b=this.clone();for(b.negative=0;!b.isZero();){var h=b.modn(p).toString(e);n=(b=b.idivn(p)).isZero()?h+n:f[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),f=this.clone();if(c){for(s=0;!f.isZero();s++)o=f.andln(255),f.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,p=0|o[1],b=8191&p,h=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,S=0|o[5],I=8191&S,E=S>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,R=0|o[8],N=8191&R,D=R>>>13,j=0|o[9],U=8191&j,L=j>>>13,Z=0|s[0],F=8191&Z,H=Z>>>13,z=0|s[1],q=8191&z,Q=z>>>13,K=0|s[2],V=8191&K,J=K>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],be=8191&pe,he=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,F))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,F)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,F),a=(a=Math.imul(b,H))+Math.imul(h,F)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,Q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,F),a=(a=Math.imul(m,H))+Math.imul(v,F)|0,i=Math.imul(v,H),r=r+Math.imul(b,q)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(h,q)|0,i=i+Math.imul(h,Q)|0;var ve=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(a=(a=a+Math.imul(d,J)|0)+Math.imul(l,V)|0))<<13)|0;u=((i=i+Math.imul(l,J)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,F),a=(a=Math.imul(A,H))+Math.imul(w,F)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,Q)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,Q)|0,r=r+Math.imul(b,V)|0,a=(a=a+Math.imul(b,J)|0)+Math.imul(h,V)|0,i=i+Math.imul(h,J)|0;var ge=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(a=(a=a+Math.imul(d,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,F),a=(a=Math.imul(_,H))+Math.imul(k,F)|0,i=Math.imul(k,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,Q)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,Q)|0,r=r+Math.imul(m,V)|0,a=(a=a+Math.imul(m,J)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,J)|0,r=r+Math.imul(b,W)|0,a=(a=a+Math.imul(b,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(I,F),a=(a=Math.imul(I,H))+Math.imul(E,F)|0,i=Math.imul(E,H),r=r+Math.imul(_,q)|0,a=(a=a+Math.imul(_,Q)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,Q)|0,r=r+Math.imul(A,V)|0,a=(a=a+Math.imul(A,J)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,J)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(b,$)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,F),a=(a=Math.imul(T,H))+Math.imul(O,F)|0,i=Math.imul(O,H),r=r+Math.imul(I,q)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,Q)|0,r=r+Math.imul(_,V)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(b,ne)|0,a=(a=a+Math.imul(b,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,F),a=(a=Math.imul(M,H))+Math.imul(B,F)|0,i=Math.imul(B,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,Q)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,Q)|0,r=r+Math.imul(I,V)|0,a=(a=a+Math.imul(I,J)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,J)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(b,ie)|0,a=(a=a+Math.imul(b,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(N,F),a=(a=Math.imul(N,H))+Math.imul(D,F)|0,i=Math.imul(D,H),r=r+Math.imul(M,q)|0,a=(a=a+Math.imul(M,Q)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,Q)|0,r=r+Math.imul(T,V)|0,a=(a=a+Math.imul(T,J)|0)+Math.imul(O,V)|0,i=i+Math.imul(O,J)|0,r=r+Math.imul(I,W)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(b,ce)|0,a=(a=a+Math.imul(b,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,F),a=(a=Math.imul(U,H))+Math.imul(L,F)|0,i=Math.imul(L,H),r=r+Math.imul(N,q)|0,a=(a=a+Math.imul(N,Q)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,Q)|0,r=r+Math.imul(M,V)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,J)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(I,$)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(b,de)|0,a=(a=a+Math.imul(b,le)|0)+Math.imul(h,de)|0,i=i+Math.imul(h,le)|0;var Se=(u+(r=r+Math.imul(d,be)|0)|0)+((8191&(a=(a=a+Math.imul(d,he)|0)+Math.imul(l,be)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,q),a=(a=Math.imul(U,Q))+Math.imul(L,q)|0,i=Math.imul(L,Q),r=r+Math.imul(N,V)|0,a=(a=a+Math.imul(N,J)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,J)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(I,ne)|0,a=(a=a+Math.imul(I,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Ie=(u+(r=r+Math.imul(b,be)|0)|0)+((8191&(a=(a=a+Math.imul(b,he)|0)+Math.imul(h,be)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,V),a=(a=Math.imul(U,J))+Math.imul(L,V)|0,i=Math.imul(L,J),r=r+Math.imul(N,W)|0,a=(a=a+Math.imul(N,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,be)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,be)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(N,$)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(I,ce)|0,a=(a=a+Math.imul(I,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,de)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,be)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,be)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(N,ne)|0,a=(a=a+Math.imul(N,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(I,de)|0,a=(a=a+Math.imul(I,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,be)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,be)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(N,ie)|0,a=(a=a+Math.imul(N,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(I,be)|0)|0)+((8191&(a=(a=a+Math.imul(I,he)|0)+Math.imul(E,be)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,de)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,de)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,be)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,be)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(N,de)|0,a=(a=a+Math.imul(N,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,be)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,be)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,de),a=(a=Math.imul(U,le))+Math.imul(L,de)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(N,be)|0)|0)+((8191&(a=(a=a+Math.imul(N,he)|0)+Math.imul(D,be)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Re=(u+(r=Math.imul(U,be))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,be)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Se,c[10]=Ie,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Re,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(b=p),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?b(this,e,t):r<63?p(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0==(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var b=0,h=1;0==(n.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(n.iushrn(b);b-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0==(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),b=o;0!==p.cmp(s);){for(var h=p,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4==++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},1865:function(e){"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r=55296&&a<=56319&&n>r+1){var i=e.charCodeAt(r+1);i>=56320&&i<=57343&&(a=1024*(a-55296)+i-56320+65536,r+=1)}a<128?t.push(a):a<2048?(t.push(a>>6|192),t.push(63&a|128)):a<55296||a>=57344&&a<65536?(t.push(a>>12|224),t.push(a>>6&63|128),t.push(63&a|128)):a>=65536&&a<=1114111?(t.push(a>>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(63&a|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},91185:function(e){"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r0&&o.length>a&&!o.warned){o.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=o.length,u=f,console&&console.warn&&console.warn(u)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=f.bind(r);return a.listener=n,r.wrapFn=a,a}function l(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,f=b(c,u);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){o=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return l(this,e,!0)},i.prototype.rawListeners=function(e){return l(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):p.call(e,t)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},35433:function(e,t,n){var r=n(32337).Buffer,a=n(37965);e.exports=function(e,t,n,i){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,s=r.alloc(o),c=r.alloc(i||0),u=r.alloc(0);o>0||i>0;){var f=new a;f.update(u),f.update(e),t&&f.update(t),u=f.digest();var d=0;if(o>0){var l=s.length-o;d=Math.min(o,u.length),u.copy(s,l,0,d),o-=d}if(d0){var p=c.length-i,b=Math.min(i,u.length-d);u.copy(c,p,d,d+b),i-=b}}return u.fill(0),{key:s,iv:c}}},57345:function(e){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),a=Array.isArray(t),i=0;i=3&&(o=n),"[object Array]"===a.call(e)?function(e,t,n){for(var r=0,a=e.length;r1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=k(e,0,1),n=k(e,-1);if("%"===t&&"%"!==n)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,I,(function(e,t,n,a){r[r.length]=n?_(a,E,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=C("%"+r+"%",t),s=i.name,u=i.value,f=!1,d=i.alias;d&&(r=d[0],x(n,w([0,1],d)));for(var l=1,p=!0;l=n.length){var v=c(u,b);u=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[b]}else p=A(u,b),u=u[b];p&&!f&&(h[s]=u)}}return u}},17816:function(e,t,n){"use strict";var r=n(26953)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},83496:function(e,t,n){"use strict";var r=n(26953)("%Object.defineProperty%",!0),a=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},10971:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,a=n(63297);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&a()}},63297:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},91314:function(e,t,n){"use strict";var r=n(63297);e.exports=function(){return r()&&!!Symbol.toStringTag}},6611:function(e,t,n){"use strict";var r=n(98368);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},71079:function(e,t,n){"use strict";var r=n(32337).Buffer,a=n(15756).Transform;function i(e){a.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(92289)(i,a),i.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},i.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},i.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,a=0;this._blockOffset+e.length-a>=this._blockSize;){for(var i=this._blockOffset;i0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},30419:function(e,t,n){var r=t;r.utils=n(77715),r.common=n(12685),r.sha=n(90625),r.ripemd=n(1952),r.hmac=n(5600),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},12685:function(e,t,n){"use strict";var r=n(77715),a=n(74804);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,r[a++]=e>>>16&255,r[a++]=e>>>8&255,r[a++]=255&e}else for(r[a++]=255&e,r[a++]=e>>>8&255,r[a++]=e>>>16&255,r[a++]=e>>>24&255,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,i=8;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},77715:function(e,t,n){"use strict";var r=n(74804),a=n(92289);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=a,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a>6|192,n[r++]=63&o|128):i(e,a)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(a=0;a>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,a=0;r>>24,n[a+1]=i>>>16&255,n[a+2]=i>>>8&255,n[a+3]=255&i):(n[a+3]=i>>>24,n[a+2]=i>>>16&255,n[a+1]=i>>>8&255,n[a]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,a){return e+t+n+r+a>>>0},t.sum64=function(e,t,n,r){var a=e[t],i=r+e[t+1]>>>0,o=(i>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,a,i,o,s){var c=0,u=t;return c+=(u=u+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,a,i,o,s){return t+r+i+s>>>0},t.sum64_5_hi=function(e,t,n,r,a,i,o,s,c,u){var f=0,d=t;return f+=(d=d+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,a,i,o,s,c,u){return t+r+i+s+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},23887:function(e,t,n){"use strict";var r=n(30419),a=n(88006),i=n(74804);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=a.toArray(e.entropy,e.entropyEnc||"hex"),n=a.toArray(e.nonce,e.nonceEnc||"hex"),r=a.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=o,o.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},o.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=a.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length>1,f=-7,d=n?a-1:0,l=n?-1:1,p=e[t+d];for(d+=l,i=p&(1<<-f)-1,p>>=-f,f+=s;f>0;i=256*i+e[t+d],d+=l,f-=8);for(o=i&(1<<-f)-1,i>>=-f,f+=r;f>0;o=256*o+e[t+d],d+=l,f-=8);if(0===i)i=1-u;else{if(i===c)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),i-=u}return(p?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,s,c,u=8*i-a-1,f=(1<>1,l=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,b=r?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=f):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?l/c:l*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=f?(s=0,o=f):o+d>=1?(s=(t*c-1)*Math.pow(2,a),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,a),o=0));a>=8;e[n+p]=255&s,p+=b,s/=256,a-=8);for(o=o<0;e[n+p]=255&o,p+=b,o/=256,u-=8);e[n+p-b]|=128*h}},92289:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},35887:function(e,t,n){"use strict";var r=n(91314)(),a=n(13566)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===a(e)},o=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==a(e)&&"[object Function]"===a(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=o,e.exports=s?i:o},98949:function(e){"use strict";var t,n,r=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},a((function(){throw 42}),null,t)}catch(e){e!==n&&(a=null)}else a=null;var i=/^\s*class\b/,o=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},s=function(e){try{return!o(e)&&(r.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,f=!(0 in[,]),d=function(){return!1};if("object"==typeof document){var l=document.all;c.call(l)===c.call(document.all)&&(d=function(e){if((f||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=a?function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{a(e,null,t)}catch(e){if(e!==n)return!1}return!o(e)&&s(e)}:function(e){if(d(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(o(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},88551:function(e,t,n){"use strict";var r,a=Object.prototype.toString,i=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=n(91314)(),c=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(i.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===a.call(e);if(!c)return!1;if(void 0===r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&c(t)}return c(e)===r}},66565:function(e){"use strict";e.exports=function(e){return e!=e}},1678:function(e,t,n){"use strict";var r=n(48619),a=n(7804),i=n(66565),o=n(30128),s=n(84326),c=r(o(),Number);a(c,{getPolyfill:o,implementation:i,shim:s}),e.exports=c},30128:function(e,t,n){"use strict";var r=n(66565);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},84326:function(e,t,n){"use strict";var r=n(7804),a=n(30128);e.exports=function(){var e=a();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},73408:function(e,t,n){"use strict";var r=n(42398),a=n(21016),i=n(13566),o=i("Object.prototype.toString"),s=n(91314)(),c=n(17816),u="undefined"==typeof globalThis?n.g:globalThis,f=a(),d=i("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1}return!!c&&function(e){var t=!1;return r(p,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},76124:function(e){e.exports=r,r.strict=a,r.loose=i;var t=Object.prototype.toString,n={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function r(e){return a(e)||i(e)}function a(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function i(e){return n[t.call(e)]}},87485:function(e,t,n){"use strict";var r=n(20450).v4,a=n(44524),i=function e(t,n){if(!(this instanceof e))return new e(t,n);n||(n={}),this.options={reviver:void 0!==n.reviver?n.reviver:null,replacer:void 0!==n.replacer?n.replacer:null,generator:void 0!==n.generator?n.generator:function(){return r()},version:void 0!==n.version?n.version:2,notificationIdNull:"boolean"==typeof n.notificationIdNull&&n.notificationIdNull},this.callServer=t};e.exports=i,i.prototype.request=function(e,t,n,r){var i,o=this,s=null,c=Array.isArray(e)&&"function"==typeof t;if(1===this.options.version&&c)throw new TypeError("JSON-RPC 1.0 does not support batching");if(c||!c&&e&&"object"==typeof e&&"function"==typeof t)r=t,s=e;else{"function"==typeof n&&(r=n,n=void 0);var u="function"==typeof r;try{s=a(e,t,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(e){if(u)return r(e);throw e}if(!u)return s}try{i=JSON.stringify(s,this.options.replacer)}catch(e){return r(e)}return this.callServer(i,(function(e,t){o._parseResponse(e,t,r)})),s},i.prototype._parseResponse=function(e,t,n){if(e)n(e);else{if(!t)return n();var r;try{r=JSON.parse(t,this.options.reviver)}catch(e){return n(e)}if(3===n.length){if(Array.isArray(r)){var a=function(e){return void 0!==e.error};return n(null,r.filter(a),r.filter((function(e){return!a(e)})))}return n(null,r.error,r.result)}n(null,r)}}},44524:function(e,t,n){"use strict";var r=n(20450).v4;e.exports=function(e,t,n,a){if("string"!=typeof e)throw new TypeError(e+" must be a string");var i="number"==typeof(a=a||{}).version?a.version:2;if(1!==i&&2!==i)throw new TypeError(i+" must be 1 or 2");var o={method:e};if(2===i&&(o.jsonrpc="2.0"),t){if("object"!=typeof t&&!Array.isArray(t))throw new TypeError(t+" must be an object, array or omitted");o.params=t}if(void 0===n){var s="function"==typeof a.generator?a.generator:function(){return r()};o.id=s(o,a)}else 2===i&&null===n?a.notificationIdNull&&(o.id=null):o.id=n;return o}},58387:function(module,exports,__webpack_require__){var process=__webpack_require__(87973),__WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n>6,o[c++]=128|63&i):i<55296||i>=57344?(o[c++]=224|i>>12,o[c++]=128|i>>6&63,o[c++]=128|63&i):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++r)),o[c++]=240|i>>18,o[c++]=128|i>>12&63,o[c++]=128|i>>6&63,o[c++]=128|63&i);e=o}else{if("object"!==a)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var u=[],f=[];for(r=0;r<64;++r){var d=e[r]||0;u[r]=92^d,f[r]=54^d}Sha256.call(this,t,n),this.update(f),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var r,a,i=0,o=e.length,s=this.blocks;i>2]|=e[i]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(s[a>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=64?(this.block=s[16],this.start=a-64,this.hash(),this.hashed=!0):this.start=a}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,r,a,i,o,s,c,u=this.h0,f=this.h1,d=this.h2,l=this.h3,p=this.h4,b=this.h5,h=this.h6,y=this.h7,m=this.blocks;for(e=16;e<64;++e)t=((a=m[e-15])>>>7|a<<25)^(a>>>18|a<<14)^a>>>3,n=((a=m[e-2])>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,m[e]=m[e-16]+t+m[e-7]+n<<0;for(c=f&d,e=0;e<64;e+=4)this.first?(this.is224?(i=300032,y=(a=m[0]-1413257819)-150054599<<0,l=a+24177077<<0):(i=704751109,y=(a=m[0]-210244248)-1521486534<<0,l=a+143694565<<0),this.first=!1):(t=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(i=u&f)^u&d^c,y=l+(a=y+(n=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&b^~p&h)+K[e]+m[e])<<0,l=a+(t+r)<<0),t=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),r=(o=l&u)^l&f^i,h=d+(a=h+(n=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&p^~y&b)+K[e+1]+m[e+1])<<0,t=((d=a+(t+r)<<0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(s=d&l)^d&u^o,b=f+(a=b+(n=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&y^~h&p)+K[e+2]+m[e+2])<<0,t=((f=a+(t+r)<<0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(c=f&d)^f&l^s,p=u+(a=p+(n=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&h^~b&y)+K[e+3]+m[e+3])<<0,u=a+(t+r)<<0;this.h0=this.h0+u<<0,this.h1=this.h1+f<<0,this.h2=this.h2+d<<0,this.h3=this.h3+l<<0,this.h4=this.h4+p<<0,this.h5=this.h5+b<<0,this.h6=this.h6+h<<0,this.h7=this.h7+y<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,c=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o];return this.is224||(c+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,c=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,a>>24&255,a>>16&255,a>>8&255,255&a,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o];return this.is224||c.push(s>>24&255,s>>16&255,s>>8&255,255&s),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},81798:function(e,t,n){var r,a=n(87973);!function(){"use strict";var i="input is invalid type",o="object"==typeof window,s=o?window:{};s.JS_SHA3_NO_WINDOW&&(o=!1);var c=!o&&"object"==typeof self;!s.JS_SHA3_NO_NODE_JS&&"object"==typeof a&&a.versions&&a.versions.node?s=n.g:c&&(s=self);var u=!s.JS_SHA3_NO_COMMON_JS&&e.exports,f=n.amdO,d=!s.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,l="0123456789abcdef".split(""),p=[4,1024,262144,67108864],b=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],y=[224,256,384,512],m=[128,256],v=["hex","buffer","arrayBuffer","array","digest"],g={128:168,256:136};!s.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!d||!s.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var A=function(e,t,n){return function(r){return new N(e,t,e).update(r)[n]()}},w=function(e,t,n){return function(r,a){return new N(e,t,a).update(r)[n]()}},x=function(e,t,n){return function(t,r,a,i){return E["cshake"+e].update(t,r,a,i)[n]()}},_=function(e,t,n){return function(t,r,a,i){return E["kmac"+e].update(t,r,a,i)[n]()}},k=function(e,t,n,r){for(var a=0;a>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function D(e,t,n){N.call(this,e,t,n)}N.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(i);if(null===e)throw new Error(i);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(i);t=!0}for(var r,a,o=this.blocks,s=this.byteCount,c=e.length,u=this.blockCount,f=0,l=this.s;f>2]|=e[f]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|63&a)<=57344?(o[r>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<=s){for(this.start=r-s,this.block=o[u],r=0;r>=8);n>0;)a.unshift(n),n=255&(e>>=8),++r;return t?a.push(r):a.unshift(r),this.update(a),a.length},N.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(i);if(null===e)throw new Error(i);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(i);t=!0}var r=0,a=e.length;if(t)r=a;else for(var o=0;o=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),r+=4)}return r+=this.encode(8*r),this.update(e),r},N.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+l[15&e]+l[e>>12&15]+l[e>>8&15]+l[e>>20&15]+l[e>>16&15]+l[e>>28&15]+l[e>>24&15];o%t==0&&(j(n),i=0)}return a&&(e=n[i],s+=l[e>>4&15]+l[15&e],a>1&&(s+=l[e>>12&15]+l[e>>8&15]),a>2&&(s+=l[e>>20&15]+l[e>>16&15])),s},N.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,a=this.extraBytes,i=0,o=0,s=this.outputBits>>3;e=a?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);o>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%n==0&&j(r)}return i&&(e=s<<2,t=r[o],c[e]=255&t,i>1&&(c[e+1]=t>>8&255),i>2&&(c[e+2]=t>>16&255)),c},D.prototype=new N,D.prototype.finalize=function(){return this.encode(this.outputBits,!0),N.prototype.finalize.call(this)};var j=function(e){var t,n,r,a,i,o,s,c,u,f,d,l,p,b,y,m,v,g,A,w,x,_,k,S,I,E,C,T,O,P,M,B,R,N,D,j,U,L,Z,F,H,z,q,Q,K,V,J,G,W,Y,X,$,ee,te,ne,re,ae,ie,oe,se,ce,ue,fe;for(r=0;r<48;r+=2)a=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],t=(l=e[8]^e[18]^e[28]^e[38]^e[48])^(o<<1|s>>>31),n=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|o>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=a^(c<<1|u>>>31),n=i^(u<<1|c>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=o^(f<<1|d>>>31),n=s^(d<<1|f>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=c^(l<<1|p>>>31),n=u^(p<<1|l>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=f^(a<<1|i>>>31),n=d^(i<<1|a>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,b=e[0],y=e[1],V=e[11]<<4|e[10]>>>28,J=e[10]<<4|e[11]>>>28,T=e[20]<<3|e[21]>>>29,O=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,q=e[41]<<18|e[40]>>>14,N=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,G=e[22]<<10|e[23]>>>22,W=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,M=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,fe=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,j=e[14]<<6|e[15]>>>26,U=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,A=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,B=e[45]<<29|e[44]>>>3,R=e[44]<<29|e[45]>>>3,S=e[6]<<28|e[7]>>>4,I=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ae=e[16]<<23|e[17]>>>9,L=e[26]<<25|e[27]>>>7,Z=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,Q=e[8]<<27|e[9]>>>5,K=e[9]<<27|e[8]>>>5,E=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,F=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,_=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=b^~m&g,e[1]=y^~v&A,e[10]=S^~E&T,e[11]=I^~C&O,e[20]=N^~j&L,e[21]=D^~U&Z,e[30]=Q^~V&G,e[31]=K^~J&W,e[40]=te^~re&ie,e[41]=ne^~ae&oe,e[2]=m^~g&w,e[3]=v^~A&x,e[12]=E^~T&P,e[13]=C^~O&M,e[22]=j^~L&F,e[23]=U^~Z&H,e[32]=V^~G&Y,e[33]=J^~W&X,e[42]=re^~ie&se,e[43]=ae^~oe&ce,e[4]=g^~w&_,e[5]=A^~x&k,e[14]=T^~P&B,e[15]=O^~M&R,e[24]=L^~F&z,e[25]=Z^~H&q,e[34]=G^~Y&$,e[35]=W^~X&ee,e[44]=ie^~se&ue,e[45]=oe^~ce&fe,e[6]=w^~_&b,e[7]=x^~k&y,e[16]=P^~B&S,e[17]=M^~R&I,e[26]=F^~z&N,e[27]=H^~q&D,e[36]=Y^~$&Q,e[37]=X^~ee&K,e[46]=se^~ue&te,e[47]=ce^~fe&ne,e[8]=_^~b&m,e[9]=k^~y&v,e[18]=B^~S&E,e[19]=R^~I&C,e[28]=z^~N&j,e[29]=q^~D&U,e[38]=$^~Q&V,e[39]=ee^~K&J,e[48]=ue^~te&re,e[49]=fe^~ne&ae,e[0]^=h[r],e[1]^=h[r+1]};if(u)e.exports=E;else{for(T=0;T"']/g,V=RegExp(Q.source),J=RegExp(K.source),G=/<%-([\s\S]+?)%>/g,W=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ae=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,de=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,le=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,be=/^0b[01]+$/i,he=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ge=/($^)/,Ae=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ie="\\ufe0e\\ufe0f",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ce="["+we+"]",Te="["+Ee+"]",Oe="["+xe+"]",Pe="\\d+",Me="["+_e+"]",Be="["+ke+"]",Re="[^"+we+Ee+Pe+_e+ke+Se+"]",Ne="\\ud83c[\\udffb-\\udfff]",De="[^"+we+"]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Se+"]",Ze="\\u200d",Fe="(?:"+Be+"|"+Re+")",He="(?:"+Le+"|"+Re+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",Qe="(?:"+Oe+"|"+Ne+")?",Ke="["+Ie+"]?",Ve=Ke+Qe+"(?:"+Ze+"(?:"+[De,je,Ue].join("|")+")"+Ke+Qe+")*",Je="(?:"+[Me,je,Ue].join("|")+")"+Ve,Ge="(?:"+[De+Oe+"?",Oe,je,Ue,Ce].join("|")+")",We=RegExp("['’]","g"),Ye=RegExp(Oe,"g"),Xe=RegExp(Ne+"(?="+Ne+")|"+Ge+Ve,"g"),$e=RegExp([Le+"?"+Be+"+"+ze+"(?="+[Te,Le,"$"].join("|")+")",He+"+"+qe+"(?="+[Te,Le+Fe,"$"].join("|")+")",Le+"?"+Fe+"+"+ze,Le+"+"+qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Je].join("|"),"g"),et=RegExp("["+Ze+we+xe+Ie+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,at={};at[B]=at[R]=at[N]=at[D]=at[j]=at[U]=at[L]=at[Z]=at[F]=!0,at[h]=at[y]=at[P]=at[m]=at[M]=at[v]=at[g]=at[A]=at[x]=at[_]=at[k]=at[I]=at[E]=at[C]=at[O]=!1;var it={};it[h]=it[y]=it[P]=it[M]=it[m]=it[v]=it[B]=it[R]=it[N]=it[D]=it[j]=it[x]=it[_]=it[k]=it[I]=it[E]=it[C]=it[T]=it[U]=it[L]=it[Z]=it[F]=!0,it[g]=it[A]=it[O]=!1;var ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ct=parseInt,ut="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ft="object"==typeof self&&self&&self.Object===Object&&self,dt=ut||ft||Function("return this")(),lt=t&&!t.nodeType&&t,pt=lt&&e&&!e.nodeType&&e,bt=pt&&pt.exports===lt,ht=bt&&ut.process,yt=function(){try{return pt&&pt.require&&pt.require("util").types||ht&&ht.binding&&ht.binding("util")}catch(e){}}(),mt=yt&&yt.isArrayBuffer,vt=yt&&yt.isDate,gt=yt&&yt.isMap,At=yt&&yt.isRegExp,wt=yt&&yt.isSet,xt=yt&&yt.isTypedArray;function _t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a-1}function Ot(e,t,n){for(var r=-1,a=null==e?0:e.length;++r-1;);return n}function $t(e,t){for(var n=e.length;n--&&Lt(t,e[n],0)>-1;);return n}var en=qt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),tn=qt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+ot[e]}function rn(e){return et.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function on(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,a=0,i=[];++n",""":'"',"'":"'"}),bn=function e(t){var n,r=(t=null==t?dt:bn.defaults(dt.Object(),t,bn.pick(dt,nt))).Array,ae=t.Date,we=t.Error,xe=t.Function,_e=t.Math,ke=t.Object,Se=t.RegExp,Ie=t.String,Ee=t.TypeError,Ce=r.prototype,Te=xe.prototype,Oe=ke.prototype,Pe=t["__core-js_shared__"],Me=Te.toString,Be=Oe.hasOwnProperty,Re=0,Ne=(n=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Oe.toString,je=Me.call(ke),Ue=dt._,Le=Se("^"+Me.call(Be).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ze=bt?t.Buffer:a,Fe=t.Symbol,He=t.Uint8Array,ze=Ze?Ze.allocUnsafe:a,qe=on(ke.getPrototypeOf,ke),Qe=ke.create,Ke=Oe.propertyIsEnumerable,Ve=Ce.splice,Je=Fe?Fe.isConcatSpreadable:a,Ge=Fe?Fe.iterator:a,Xe=Fe?Fe.toStringTag:a,et=function(){try{var e=ci(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==dt.clearTimeout&&t.clearTimeout,ut=ae&&ae.now!==dt.Date.now&&ae.now,ft=t.setTimeout!==dt.setTimeout&&t.setTimeout,lt=_e.ceil,pt=_e.floor,ht=ke.getOwnPropertySymbols,yt=Ze?Ze.isBuffer:a,Dt=t.isFinite,qt=Ce.join,hn=on(ke.keys,ke),yn=_e.max,mn=_e.min,vn=ae.now,gn=t.parseInt,An=_e.random,wn=Ce.reverse,xn=ci(t,"DataView"),_n=ci(t,"Map"),kn=ci(t,"Promise"),Sn=ci(t,"Set"),In=ci(t,"WeakMap"),En=ci(ke,"create"),Cn=In&&new In,Tn={},On=Di(xn),Pn=Di(_n),Mn=Di(kn),Bn=Di(Sn),Rn=Di(In),Nn=Fe?Fe.prototype:a,Dn=Nn?Nn.valueOf:a,jn=Nn?Nn.toString:a;function Un(e){if(es(e)&&!zo(e)&&!(e instanceof Hn)){if(e instanceof Fn)return e;if(Be.call(e,"__wrapped__"))return ji(e)}return new Fn(e)}var Ln=function(){function e(){}return function(t){if(!$o(t))return{};if(Qe)return Qe(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Zn(){}function Fn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function or(e,t,n,r,i,o){var s,c=1&t,u=2&t,f=4&t;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!$o(e))return e;var d=zo(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Be.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return Ia(e,s)}else{var l=di(e),p=l==A||l==w;if(Vo(e))return Aa(e,c);if(l==k||l==h||p&&!i){if(s=u||p?{}:pi(e),!c)return u?function(e,t){return Ea(e,fi(e),t)}(e,function(e,t){return e&&Ea(t,Ps(t),e)}(s,e)):function(e,t){return Ea(e,ui(e),t)}(e,nr(s,e))}else{if(!it[l])return i?e:{};s=function(e,t,n){var r,a=e.constructor;switch(t){case P:return wa(e);case m:case v:return new a(+e);case M:return function(e,t){var n=t?wa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case B:case R:case N:case D:case j:case U:case L:case Z:case F:return xa(e,n);case x:return new a;case _:case C:return new a(e);case I:return function(e){var t=new e.constructor(e.source,le.exec(e));return t.lastIndex=e.lastIndex,t}(e);case E:return new a;case T:return r=e,Dn?ke(Dn.call(r)):{}}}(e,l,c)}}o||(o=new Vn);var b=o.get(e);if(b)return b;o.set(e,s),is(e)?e.forEach((function(r){s.add(or(r,t,n,r,e,o))})):ts(e)&&e.forEach((function(r,a){s.set(a,or(r,t,n,a,e,o))}));var y=d?a:(f?u?ti:ei:u?Ps:Os)(e);return St(y||e,(function(r,a){y&&(r=e[a=r]),$n(s,a,or(r,t,n,a,e,o))})),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Ee(i);return Ei((function(){e.apply(a,n)}),t)}function ur(e,t,n,r){var a=-1,i=Tt,o=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=Pt(t,Gt(n))),r?(i=Ot,o=!1):t.length>=200&&(i=Yt,o=!1,t=new Kn(t));e:for(;++a-1},qn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Qn.prototype.clear=function(){this.size=0,this.__data__={hash:new zn,map:new(_n||qn),string:new zn}},Qn.prototype.delete=function(e){var t=oi(this,e).delete(e);return this.size-=t?1:0,t},Qn.prototype.get=function(e){return oi(this,e).get(e)},Qn.prototype.has=function(e){return oi(this,e).has(e)},Qn.prototype.set=function(e,t){var n=oi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,o),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Vn.prototype.clear=function(){this.__data__=new qn,this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Vn.prototype.get=function(e){return this.__data__.get(e)},Vn.prototype.has=function(e){return this.__data__.has(e)},Vn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof qn){var r=n.__data__;if(!_n||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qn(r)}return n.set(e,t),this.size=n.size,this};var fr=Oa(vr),dr=Oa(gr,!0);function lr(e,t){var n=!0;return fr(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function pr(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?hr(s,t-1,n,r,a):Mt(a,s):r||(a[a.length]=s)}return a}var yr=Pa(),mr=Pa(!0);function vr(e,t){return e&&yr(e,t,Os)}function gr(e,t){return e&&mr(e,t,Os)}function Ar(e,t){return Ct(t,(function(t){return Wo(e[t])}))}function wr(e,t){for(var n=0,r=(t=ya(t,e)).length;null!=e&&nt}function Sr(e,t){return null!=e&&Be.call(e,t)}function Ir(e,t){return null!=e&&t in ke(e)}function Er(e,t,n){for(var i=n?Ot:Tt,o=e[0].length,s=e.length,c=s,u=r(s),f=1/0,d=[];c--;){var l=e[c];c&&t&&(l=Pt(l,Gt(t))),f=mn(l.length,f),u[c]=!n&&(t||o>=120&&l.length>=120)?new Kn(c&&l):a}l=e[0];var p=-1,b=u[0];e:for(;++p=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(a)}function Hr(e,t,n){for(var r=-1,a=t.length,i={};++r-1;)s!==e&&Ve.call(s,c,1),Ve.call(e,c,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==i){var i=a;hi(a)?Ve.call(e,a,1):ca(e,a)}}return e}function Qr(e,t){return e+pt(An()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>d)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function Vr(e,t){return Ci(_i(e,t,nc),e+"")}function Jr(e){return Gn(Ls(e))}function Gr(e,t){var n=Ls(e);return Pi(n,ir(t,0,n.length))}function Wr(e,t,n,r){if(!$o(e))return e;for(var i=-1,o=(t=ya(t,e)).length,s=o-1,c=e;null!=c&&++ii?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=r(i);++a>>1,o=e[i];null!==o&&!ss(o)&&(n?o<=t:o=200){var u=t?null:Ka(e);if(u)return cn(u);o=!1,a=Yt,c=new Kn}else c=t?[]:s;e:for(;++r=r?e:ea(e,t,n)}var ga=ot||function(e){return dt.clearTimeout(e)};function Aa(e,t){if(t)return e.slice();var n=e.length,r=ze?ze(n):new e.constructor(n);return e.copy(r),r}function wa(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function xa(e,t){var n=t?wa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _a(e,t){if(e!==t){var n=e!==a,r=null===e,i=e==e,o=ss(e),s=t!==a,c=null===t,u=t==t,f=ss(t);if(!c&&!f&&!o&&e>t||o&&s&&u&&!c&&!f||r&&s&&u||!n&&u||!i)return 1;if(!r&&!o&&!f&&e1?n[i-1]:a,s=i>2?n[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&yi(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=ke(t);++r-1?i[o?t[s]:s]:a}}function Da(e){return $a((function(t){var n=t.length,r=n,o=Fn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ee(i);if(o&&!c&&"wrapper"==ri(s))var c=new Fn([],!0)}for(r=c?r:n;++r1&&A.reverse(),p&&dc))return!1;var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var l=-1,p=!0,b=2&n?new Kn:a;for(o.set(e,t),o.set(t,e);++l-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return St(b,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(se):[]}(r),n)))}function Oi(e){var t=0,n=0;return function(){var r=vn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Pi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,ro(e,n)}));function fo(e){var t=Un(e);return t.__chain__=!0,t}function lo(e,t){return t(e)}var po=$a((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&hi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:lo,args:[i],thisArg:a}),new Fn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)})),bo=Ca((function(e,t,n){Be.call(e,n)?++e[n]:rr(e,n,1)})),ho=Na(Fi),yo=Na(Hi);function mo(e,t){return(zo(e)?St:fr)(e,ii(t,3))}function vo(e,t){return(zo(e)?It:dr)(e,ii(t,3))}var go=Ca((function(e,t,n){Be.call(e,n)?e[n].push(t):rr(e,n,[t])})),Ao=Vr((function(e,t,n){var a=-1,i="function"==typeof t,o=Qo(e)?r(e.length):[];return fr(e,(function(e){o[++a]=i?_t(t,e,n):Cr(e,t,n)})),o})),wo=Ca((function(e,t,n){rr(e,n,t)}));function xo(e,t){return(zo(e)?Pt:Dr)(e,ii(t,3))}var _o=Ca((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ko=Vr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yi(e,t[0],t[1])?t=[]:n>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),Fr(e,hr(t,1),[])})),So=ut||function(){return dt.Date.now()};function Io(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Ja(e,u,a,a,a,a,t)}function Eo(e,t){var n;if("function"!=typeof t)throw new Ee(i);return e=ps(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Co=Vr((function(e,t,n){var r=1;if(n.length){var a=sn(n,ai(Co));r|=c}return Ja(e,r,t,n,a)})),To=Vr((function(e,t,n){var r=3;if(n.length){var a=sn(n,ai(To));r|=c}return Ja(t,r,e,n,a)}));function Oo(e,t,n){var r,o,s,c,u,f,d=0,l=!1,p=!1,b=!0;if("function"!=typeof e)throw new Ee(i);function h(t){var n=r,i=o;return r=o=a,d=t,c=e.apply(i,n)}function y(e){var n=e-f;return f===a||n>=t||n<0||p&&e-d>=s}function m(){var e=So();if(y(e))return v(e);u=Ei(m,function(e){var n=t-(e-f);return p?mn(n,s-(e-d)):n}(e))}function v(e){return u=a,b&&r?h(e):(r=o=a,c)}function g(){var e=So(),n=y(e);if(r=arguments,o=this,f=e,n){if(u===a)return function(e){return d=e,u=Ei(m,t),l?h(e):c}(f);if(p)return ga(u),u=Ei(m,t),h(f)}return u===a&&(u=Ei(m,t)),c}return t=hs(t)||0,$o(n)&&(l=!!n.leading,s=(p="maxWait"in n)?yn(hs(n.maxWait)||0,t):s,b="trailing"in n?!!n.trailing:b),g.cancel=function(){u!==a&&ga(u),d=0,r=f=o=u=a},g.flush=function(){return u===a?c:v(So())},g}var Po=Vr((function(e,t){return cr(e,1,t)})),Mo=Vr((function(e,t,n){return cr(e,hs(t)||0,n)}));function Bo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ee(i);var n=function n(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Bo.Cache||Qn),n}function Ro(e){if("function"!=typeof e)throw new Ee(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Bo.Cache=Qn;var No=ma((function(e,t){var n=(t=1==t.length&&zo(t[0])?Pt(t[0],Gt(ii())):Pt(hr(t,1),Gt(ii()))).length;return Vr((function(r){for(var a=-1,i=mn(r.length,n);++a=t})),Ho=Tr(function(){return arguments}())?Tr:function(e){return es(e)&&Be.call(e,"callee")&&!Ke.call(e,"callee")},zo=r.isArray,qo=mt?Gt(mt):function(e){return es(e)&&_r(e)==P};function Qo(e){return null!=e&&Xo(e.length)&&!Wo(e)}function Ko(e){return es(e)&&Qo(e)}var Vo=yt||hc,Jo=vt?Gt(vt):function(e){return es(e)&&_r(e)==v};function Go(e){if(!es(e))return!1;var t=_r(e);return t==g||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Wo(e){if(!$o(e))return!1;var t=_r(e);return t==A||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Yo(e){return"number"==typeof e&&e==ps(e)}function Xo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=d}function $o(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=gt?Gt(gt):function(e){return es(e)&&di(e)==x};function ns(e){return"number"==typeof e||es(e)&&_r(e)==_}function rs(e){if(!es(e)||_r(e)!=k)return!1;var t=qe(e);if(null===t)return!0;var n=Be.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==je}var as=At?Gt(At):function(e){return es(e)&&_r(e)==I},is=wt?Gt(wt):function(e){return es(e)&&di(e)==E};function os(e){return"string"==typeof e||!zo(e)&&es(e)&&_r(e)==C}function ss(e){return"symbol"==typeof e||es(e)&&_r(e)==T}var cs=xt?Gt(xt):function(e){return es(e)&&Xo(e.length)&&!!at[_r(e)]},us=za(Nr),fs=za((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Qo(e))return os(e)?dn(e):Ia(e);if(Ge&&e[Ge])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ge]());var t=di(e);return(t==x?an:t==E?cn:Ls)(e)}function ls(e){return e?(e=hs(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ps(e){var t=ls(e),n=t%1;return t==t?n?t-n:t:0}function bs(e){return e?ir(ps(e),0,p):0}function hs(e){if("number"==typeof e)return e;if(ss(e))return l;if($o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=$o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=be.test(e);return n||ye.test(e)?ct(e.slice(2),n?2:8):pe.test(e)?l:+e}function ys(e){return Ea(e,Ps(e))}function ms(e){return null==e?"":oa(e)}var vs=Ta((function(e,t){if(Ai(t)||Qo(t))Ea(t,Os(t),e);else for(var n in t)Be.call(t,n)&&$n(e,n,t[n])})),gs=Ta((function(e,t){Ea(t,Ps(t),e)})),As=Ta((function(e,t,n,r){Ea(t,Ps(t),e,r)})),ws=Ta((function(e,t,n,r){Ea(t,Os(t),e,r)})),xs=$a(ar),_s=Vr((function(e,t){e=ke(e);var n=-1,r=t.length,i=r>2?t[2]:a;for(i&&yi(t[0],t[1],i)&&(r=1);++n1),t})),Ea(e,ti(e),n),r&&(n=or(n,7,Ya));for(var a=t.length;a--;)ca(n,t[a]);return n})),Ns=$a((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return Is(e,n)}))}(e,t)}));function Ds(e,t){if(null==e)return{};var n=Pt(ti(e),(function(e){return[e]}));return t=ii(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var js=Va(Os),Us=Va(Ps);function Ls(e){return null==e?[]:Wt(e,Os(e))}var Zs=Ba((function(e,t,n){return t=t.toLowerCase(),e+(n?Fs(t):t)}));function Fs(e){return Gs(ms(e).toLowerCase())}function Hs(e){return(e=ms(e))&&e.replace(ve,en).replace(Ye,"")}var zs=Ba((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),qs=Ba((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Qs=Ma("toLowerCase"),Ks=Ba((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Vs=Ba((function(e,t,n){return e+(n?" ":"")+Gs(t)})),Js=Ba((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Gs=Ma("toUpperCase");function Ws(e,t,n){return e=ms(e),(t=n?a:t)===a?function(e){return tt.test(e)}(e)?function(e){return e.match($e)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Ys=Vr((function(e,t){try{return _t(e,a,t)}catch(e){return Go(e)?e:new we(e)}})),Xs=$a((function(e,t){return St(t,(function(t){t=Ni(t),rr(e,t,Co(e[t],e))})),e}));function $s(e){return function(){return e}}var ec=Da(),tc=Da(!0);function nc(e){return e}function rc(e){return Br("function"==typeof e?e:or(e,1))}var ac=Vr((function(e,t){return function(n){return Cr(n,e,t)}})),ic=Vr((function(e,t){return function(n){return Cr(e,n,t)}}));function oc(e,t,n){var r=Os(t),a=Ar(t,r);null!=n||$o(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Ar(t,Os(t)));var i=!($o(n)&&"chain"in n&&!n.chain),o=Wo(e);return St(a,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Ia(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Mt([this.value()],arguments))})})),e}function sc(){}var cc=Za(Pt),uc=Za(Et),fc=Za(Nt);function dc(e){return mi(e)?zt(Ni(e)):function(e){return function(t){return wr(t,e)}}(e)}var lc=Ha(),pc=Ha(!0);function bc(){return[]}function hc(){return!1}var yc,mc=La((function(e,t){return e+t}),0),vc=Qa("ceil"),gc=La((function(e,t){return e/t}),1),Ac=Qa("floor"),wc=La((function(e,t){return e*t}),1),xc=Qa("round"),_c=La((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Ee(i);return e=ps(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=Io,Un.assign=vs,Un.assignIn=gs,Un.assignInWith=As,Un.assignWith=ws,Un.at=xs,Un.before=Eo,Un.bind=Co,Un.bindAll=Xs,Un.bindKey=To,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return zo(e)?e:[e]},Un.chain=fo,Un.chunk=function(e,t,n){t=(n?yi(e,t,n):t===a)?1:yn(ps(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,c=r(lt(i/t));oi?0:i+n),(r=r===a||r>i?i:ps(r))<0&&(r+=i),r=n>r?0:bs(r);n>>0)?(e=ms(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=oa(t))&&rn(e)?va(dn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Ee(i);return t=null==t?0:yn(ps(t),0),Vr((function(n){var r=n[t],a=va(n,0,t);return r&&Mt(a,r),_t(e,this,a)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ea(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ea(e,0,(t=n||t===a?1:ps(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ea(e,(t=r-(t=n||t===a?1:ps(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?fa(e,ii(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?fa(e,ii(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new Ee(i);return $o(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Oo(e,t,{leading:r,maxWait:t,trailing:a})},Un.thru=lo,Un.toArray=ds,Un.toPairs=js,Un.toPairsIn=Us,Un.toPath=function(e){return zo(e)?Pt(e,Ni):ss(e)?[e]:Ia(Ri(ms(e)))},Un.toPlainObject=ys,Un.transform=function(e,t,n){var r=zo(e),a=r||Vo(e)||cs(e);if(t=ii(t,4),null==n){var i=e&&e.constructor;n=a?r?new i:[]:$o(e)&&Wo(i)?Ln(qe(e)):{}}return(a?St:vr)(e,(function(e,r,a){return t(n,e,r,a)})),n},Un.unary=function(e){return Io(e,1)},Un.union=$i,Un.unionBy=eo,Un.unionWith=to,Un.uniq=function(e){return e&&e.length?sa(e):[]},Un.uniqBy=function(e,t){return e&&e.length?sa(e,ii(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?sa(e,a,t):[]},Un.unset=function(e,t){return null==e||ca(e,t)},Un.unzip=no,Un.unzipWith=ro,Un.update=function(e,t,n){return null==e?e:ua(e,t,ha(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:ua(e,t,ha(n),r)},Un.values=Ls,Un.valuesIn=function(e){return null==e?[]:Wt(e,Ps(e))},Un.without=ao,Un.words=Ws,Un.wrap=function(e,t){return Do(ha(t),e)},Un.xor=io,Un.xorBy=oo,Un.xorWith=so,Un.zip=co,Un.zipObject=function(e,t){return pa(e||[],t||[],$n)},Un.zipObjectDeep=function(e,t){return pa(e||[],t||[],Wr)},Un.zipWith=uo,Un.entries=js,Un.entriesIn=Us,Un.extend=gs,Un.extendWith=As,oc(Un,Un),Un.add=mc,Un.attempt=Ys,Un.camelCase=Zs,Un.capitalize=Fs,Un.ceil=vc,Un.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=hs(n))==n?n:0),t!==a&&(t=(t=hs(t))==t?t:0),ir(hs(e),t,n)},Un.clone=function(e){return or(e,4)},Un.cloneDeep=function(e){return or(e,5)},Un.cloneDeepWith=function(e,t){return or(e,5,t="function"==typeof t?t:a)},Un.cloneWith=function(e,t){return or(e,4,t="function"==typeof t?t:a)},Un.conformsTo=function(e,t){return null==t||sr(e,t,Os(t))},Un.deburr=Hs,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=gc,Un.endsWith=function(e,t,n){e=ms(e),t=oa(t);var r=e.length,i=n=n===a?r:ir(ps(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Un.eq=Lo,Un.escape=function(e){return(e=ms(e))&&J.test(e)?e.replace(K,tn):e},Un.escapeRegExp=function(e){return(e=ms(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Un.every=function(e,t,n){var r=zo(e)?Et:lr;return n&&yi(e,t,n)&&(t=a),r(e,ii(t,3))},Un.find=ho,Un.findIndex=Fi,Un.findKey=function(e,t){return jt(e,ii(t,3),vr)},Un.findLast=yo,Un.findLastIndex=Hi,Un.findLastKey=function(e,t){return jt(e,ii(t,3),gr)},Un.floor=Ac,Un.forEach=mo,Un.forEachRight=vo,Un.forIn=function(e,t){return null==e?e:yr(e,ii(t,3),Ps)},Un.forInRight=function(e,t){return null==e?e:mr(e,ii(t,3),Ps)},Un.forOwn=function(e,t){return e&&vr(e,ii(t,3))},Un.forOwnRight=function(e,t){return e&&gr(e,ii(t,3))},Un.get=Ss,Un.gt=Zo,Un.gte=Fo,Un.has=function(e,t){return null!=e&&li(e,t,Sr)},Un.hasIn=Is,Un.head=qi,Un.identity=nc,Un.includes=function(e,t,n,r){e=Qo(e)?e:Ls(e),n=n&&!r?ps(n):0;var a=e.length;return n<0&&(n=yn(a+n,0)),os(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Lt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:ps(n);return a<0&&(a=yn(r+a,0)),Lt(e,t,a)},Un.inRange=function(e,t,n){return t=ls(t),n===a?(n=t,t=0):n=ls(n),function(e,t,n){return e>=mn(t,n)&&e=-9007199254740991&&e<=d},Un.isSet=is,Un.isString=os,Un.isSymbol=ss,Un.isTypedArray=cs,Un.isUndefined=function(e){return e===a},Un.isWeakMap=function(e){return es(e)&&di(e)==O},Un.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==_r(e)},Un.join=function(e,t){return null==e?"":qt.call(e,t)},Un.kebabCase=zs,Un.last=Ji,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=ps(n))<0?yn(r+i,0):mn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ut(e,Ft,i,!0)},Un.lowerCase=qs,Un.lowerFirst=Qs,Un.lt=us,Un.lte=fs,Un.max=function(e){return e&&e.length?pr(e,nc,kr):a},Un.maxBy=function(e,t){return e&&e.length?pr(e,ii(t,2),kr):a},Un.mean=function(e){return Ht(e,nc)},Un.meanBy=function(e,t){return Ht(e,ii(t,2))},Un.min=function(e){return e&&e.length?pr(e,nc,Nr):a},Un.minBy=function(e,t){return e&&e.length?pr(e,ii(t,2),Nr):a},Un.stubArray=bc,Un.stubFalse=hc,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=wc,Un.nth=function(e,t){return e&&e.length?Zr(e,ps(t)):a},Un.noConflict=function(){return dt._===this&&(dt._=Ue),this},Un.noop=sc,Un.now=So,Un.pad=function(e,t,n){e=ms(e);var r=(t=ps(t))?fn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Fa(pt(a),n)+e+Fa(lt(a),n)},Un.padEnd=function(e,t,n){e=ms(e);var r=(t=ps(t))?fn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=An();return mn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return Qr(e,t)},Un.reduce=function(e,t,n){var r=zo(e)?Bt:Qt,a=arguments.length<3;return r(e,ii(t,4),n,a,fr)},Un.reduceRight=function(e,t,n){var r=zo(e)?Rt:Qt,a=arguments.length<3;return r(e,ii(t,4),n,a,dr)},Un.repeat=function(e,t,n){return t=(n?yi(e,t,n):t===a)?1:ps(t),Kr(ms(e),t)},Un.replace=function(){var e=arguments,t=ms(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,i=(t=ya(t,e)).length;for(i||(i=1,e=a);++rd)return[];var n=p,r=mn(e,p);t=ii(t),e-=p;for(var a=Vt(r,t);++n=o)return e;var c=n-fn(r);if(c<1)return r;var u=s?va(s,0,c).join(""):e.slice(0,c);if(i===a)return u+r;if(s&&(c+=u.length-c),as(i)){if(e.slice(c).search(i)){var f,d=u;for(i.global||(i=Se(i.source,ms(le.exec(i))+"g")),i.lastIndex=0;f=i.exec(d);)var l=f.index;u=u.slice(0,l===a?c:l)}}else if(e.indexOf(oa(i),c)!=c){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+r},Un.unescape=function(e){return(e=ms(e))&&V.test(e)?e.replace(Q,pn):e},Un.uniqueId=function(e){var t=++Re;return ms(e)+t},Un.upperCase=Js,Un.upperFirst=Gs,Un.each=mo,Un.eachRight=vo,Un.first=qi,oc(Un,(yc={},vr(Un,(function(e,t){Be.call(Un.prototype,t)||(yc[t]=e)})),yc),{chain:!1}),Un.VERSION="4.17.21",St(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),St(["drop","take"],(function(e,t){Hn.prototype[e]=function(n){n=n===a?1:yn(ps(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=mn(n,r.__takeCount__):r.__views__.push({size:mn(n,p),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),St(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),St(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),St(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(nc)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Vr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Cr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(Ro(ii(e)))},Hn.prototype.slice=function(e,t){e=ps(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=ps(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(p)},vr(Hn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Un[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Hn,u=s[0],f=c||zo(t),d=function(e){var t=i.apply(Un,Mt([e],s));return r&&l?t[0]:t};f&&n&&"function"==typeof u&&1!=u.length&&(c=f=!1);var l=this.__chain__,p=!!this.__actions__.length,b=o&&!l,h=c&&!p;if(!o&&f){t=h?t:new Hn(this);var y=e.apply(t,s);return y.__actions__.push({func:lo,args:[d],thisArg:a}),new Fn(y,l)}return b&&h?e.apply(this,s):(y=this.thru(d),b?r?y.value()[0]:y.value():y)})})),St(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(zo(a)?a:[],e)}return this[n]((function(n){return t.apply(zo(n)?n:[],e)}))}})),vr(Hn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Be.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[ja(a,2).name]=[{name:"wrapper",func:a}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Ia(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ia(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ia(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=zo(e),r=t<0,a=n?e.length:0,i=function(e,t,n){for(var r=-1,a=n.length;++r=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Zn;){var r=ji(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:lo,args:[Xi],thisArg:a}),new Fn(t,this.__chain__)}return this.thru(Xi)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return da(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Ge&&(Un.prototype[Ge]=function(){return this}),Un}();dt._=bn,(r=function(){return bn}.call(t,n,t,e))===a||(e.exports=r)}.call(this)},37965:function(e,t,n){"use strict";var r=n(92289),a=n(71079),i=n(32337).Buffer,o=new Array(16);function s(){a.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<>>32-t}function u(e,t,n,r,a,i,o){return c(e+(t&n|~t&r)+a+i|0,o)+t|0}function f(e,t,n,r,a,i,o){return c(e+(t&r|n&~r)+a+i|0,o)+t|0}function d(e,t,n,r,a,i,o){return c(e+(t^n^r)+a+i|0,o)+t|0}function l(e,t,n,r,a,i,o){return c(e+(n^(t|~r))+a+i|0,o)+t|0}r(s,a),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,a=this._c,i=this._d;n=u(n,r,a,i,e[0],3614090360,7),i=u(i,n,r,a,e[1],3905402710,12),a=u(a,i,n,r,e[2],606105819,17),r=u(r,a,i,n,e[3],3250441966,22),n=u(n,r,a,i,e[4],4118548399,7),i=u(i,n,r,a,e[5],1200080426,12),a=u(a,i,n,r,e[6],2821735955,17),r=u(r,a,i,n,e[7],4249261313,22),n=u(n,r,a,i,e[8],1770035416,7),i=u(i,n,r,a,e[9],2336552879,12),a=u(a,i,n,r,e[10],4294925233,17),r=u(r,a,i,n,e[11],2304563134,22),n=u(n,r,a,i,e[12],1804603682,7),i=u(i,n,r,a,e[13],4254626195,12),a=u(a,i,n,r,e[14],2792965006,17),n=f(n,r=u(r,a,i,n,e[15],1236535329,22),a,i,e[1],4129170786,5),i=f(i,n,r,a,e[6],3225465664,9),a=f(a,i,n,r,e[11],643717713,14),r=f(r,a,i,n,e[0],3921069994,20),n=f(n,r,a,i,e[5],3593408605,5),i=f(i,n,r,a,e[10],38016083,9),a=f(a,i,n,r,e[15],3634488961,14),r=f(r,a,i,n,e[4],3889429448,20),n=f(n,r,a,i,e[9],568446438,5),i=f(i,n,r,a,e[14],3275163606,9),a=f(a,i,n,r,e[3],4107603335,14),r=f(r,a,i,n,e[8],1163531501,20),n=f(n,r,a,i,e[13],2850285829,5),i=f(i,n,r,a,e[2],4243563512,9),a=f(a,i,n,r,e[7],1735328473,14),n=d(n,r=f(r,a,i,n,e[12],2368359562,20),a,i,e[5],4294588738,4),i=d(i,n,r,a,e[8],2272392833,11),a=d(a,i,n,r,e[11],1839030562,16),r=d(r,a,i,n,e[14],4259657740,23),n=d(n,r,a,i,e[1],2763975236,4),i=d(i,n,r,a,e[4],1272893353,11),a=d(a,i,n,r,e[7],4139469664,16),r=d(r,a,i,n,e[10],3200236656,23),n=d(n,r,a,i,e[13],681279174,4),i=d(i,n,r,a,e[0],3936430074,11),a=d(a,i,n,r,e[3],3572445317,16),r=d(r,a,i,n,e[6],76029189,23),n=d(n,r,a,i,e[9],3654602809,4),i=d(i,n,r,a,e[12],3873151461,11),a=d(a,i,n,r,e[15],530742520,16),n=l(n,r=d(r,a,i,n,e[2],3299628645,23),a,i,e[0],4096336452,6),i=l(i,n,r,a,e[7],1126891415,10),a=l(a,i,n,r,e[14],2878612391,15),r=l(r,a,i,n,e[5],4237533241,21),n=l(n,r,a,i,e[12],1700485571,6),i=l(i,n,r,a,e[3],2399980690,10),a=l(a,i,n,r,e[10],4293915773,15),r=l(r,a,i,n,e[1],2240044497,21),n=l(n,r,a,i,e[8],1873313359,6),i=l(i,n,r,a,e[15],4264355552,10),a=l(a,i,n,r,e[6],2734768916,15),r=l(r,a,i,n,e[13],1309151649,21),n=l(n,r,a,i,e[4],4149444226,6),i=l(i,n,r,a,e[11],3174756917,10),a=l(a,i,n,r,e[2],718787259,15),r=l(r,a,i,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+a|0,this._d=this._d+i|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},21141:function(e,t,n){var r=n(30223),a=n(90523);function i(e){this.rand=e||new a.Rand}e.exports=i,i.create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var a=new r(this.rand.generate(n))}while(a.cmp(e)>=0);return a},i.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},i.prototype.test=function(e,t,n){var a=e.bitLength(),i=r.mont(e),o=new r(1).toRed(i);t||(t=Math.max(1,a/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),f=s.toRed(i);t>0;t--){var d=this._randrange(new r(2),s);n&&n(d);var l=d.toRed(i).redPow(u);if(0!==l.cmp(o)&&0!==l.cmp(f)){for(var p=1;p0;t--){var f=this._randrange(new r(2),o),d=e.gcd(f);if(0!==d.cmpn(1))return d;var l=f.toRed(a).redPow(c);if(0!==l.cmp(i)&&0!==l.cmp(u)){for(var p=1;p=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var b=u-p|0;f+=(o=(a=0|e.words[b])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?f[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],p=l[e];n="";var b=this.clone();for(b.negative=0;!b.isZero();){var h=b.modn(p).toString(e);n=(b=b.idivn(p)).isZero()?h+n:f[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),f=this.clone();if(c){for(s=0;!f.isZero();s++)o=f.andln(255),f.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,p=0|o[1],b=8191&p,h=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,S=0|o[5],I=8191&S,E=S>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,R=0|o[8],N=8191&R,D=R>>>13,j=0|o[9],U=8191&j,L=j>>>13,Z=0|s[0],F=8191&Z,H=Z>>>13,z=0|s[1],q=8191&z,Q=z>>>13,K=0|s[2],V=8191&K,J=K>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],be=8191&pe,he=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,F))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,F)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,F),a=(a=Math.imul(b,H))+Math.imul(h,F)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,Q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,F),a=(a=Math.imul(m,H))+Math.imul(v,F)|0,i=Math.imul(v,H),r=r+Math.imul(b,q)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(h,q)|0,i=i+Math.imul(h,Q)|0;var ve=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(a=(a=a+Math.imul(d,J)|0)+Math.imul(l,V)|0))<<13)|0;u=((i=i+Math.imul(l,J)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,F),a=(a=Math.imul(A,H))+Math.imul(w,F)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,Q)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,Q)|0,r=r+Math.imul(b,V)|0,a=(a=a+Math.imul(b,J)|0)+Math.imul(h,V)|0,i=i+Math.imul(h,J)|0;var ge=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(a=(a=a+Math.imul(d,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,F),a=(a=Math.imul(_,H))+Math.imul(k,F)|0,i=Math.imul(k,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,Q)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,Q)|0,r=r+Math.imul(m,V)|0,a=(a=a+Math.imul(m,J)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,J)|0,r=r+Math.imul(b,W)|0,a=(a=a+Math.imul(b,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(I,F),a=(a=Math.imul(I,H))+Math.imul(E,F)|0,i=Math.imul(E,H),r=r+Math.imul(_,q)|0,a=(a=a+Math.imul(_,Q)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,Q)|0,r=r+Math.imul(A,V)|0,a=(a=a+Math.imul(A,J)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,J)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(b,$)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,F),a=(a=Math.imul(T,H))+Math.imul(O,F)|0,i=Math.imul(O,H),r=r+Math.imul(I,q)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,Q)|0,r=r+Math.imul(_,V)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(b,ne)|0,a=(a=a+Math.imul(b,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,F),a=(a=Math.imul(M,H))+Math.imul(B,F)|0,i=Math.imul(B,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,Q)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,Q)|0,r=r+Math.imul(I,V)|0,a=(a=a+Math.imul(I,J)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,J)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(b,ie)|0,a=(a=a+Math.imul(b,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(N,F),a=(a=Math.imul(N,H))+Math.imul(D,F)|0,i=Math.imul(D,H),r=r+Math.imul(M,q)|0,a=(a=a+Math.imul(M,Q)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,Q)|0,r=r+Math.imul(T,V)|0,a=(a=a+Math.imul(T,J)|0)+Math.imul(O,V)|0,i=i+Math.imul(O,J)|0,r=r+Math.imul(I,W)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(b,ce)|0,a=(a=a+Math.imul(b,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,F),a=(a=Math.imul(U,H))+Math.imul(L,F)|0,i=Math.imul(L,H),r=r+Math.imul(N,q)|0,a=(a=a+Math.imul(N,Q)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,Q)|0,r=r+Math.imul(M,V)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,J)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(I,$)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(b,de)|0,a=(a=a+Math.imul(b,le)|0)+Math.imul(h,de)|0,i=i+Math.imul(h,le)|0;var Se=(u+(r=r+Math.imul(d,be)|0)|0)+((8191&(a=(a=a+Math.imul(d,he)|0)+Math.imul(l,be)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,q),a=(a=Math.imul(U,Q))+Math.imul(L,q)|0,i=Math.imul(L,Q),r=r+Math.imul(N,V)|0,a=(a=a+Math.imul(N,J)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,J)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(I,ne)|0,a=(a=a+Math.imul(I,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Ie=(u+(r=r+Math.imul(b,be)|0)|0)+((8191&(a=(a=a+Math.imul(b,he)|0)+Math.imul(h,be)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,V),a=(a=Math.imul(U,J))+Math.imul(L,V)|0,i=Math.imul(L,J),r=r+Math.imul(N,W)|0,a=(a=a+Math.imul(N,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,be)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,be)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(N,$)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(I,ce)|0,a=(a=a+Math.imul(I,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,de)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,be)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,be)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(N,ne)|0,a=(a=a+Math.imul(N,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(I,de)|0,a=(a=a+Math.imul(I,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,be)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,be)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(N,ie)|0,a=(a=a+Math.imul(N,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(I,be)|0)|0)+((8191&(a=(a=a+Math.imul(I,he)|0)+Math.imul(E,be)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,de)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,de)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,be)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,be)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(N,de)|0,a=(a=a+Math.imul(N,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,be)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,be)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,de),a=(a=Math.imul(U,le))+Math.imul(L,de)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(N,be)|0)|0)+((8191&(a=(a=a+Math.imul(N,he)|0)+Math.imul(D,be)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Re=(u+(r=Math.imul(U,be))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,be)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Se,c[10]=Ie,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Re,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(b=p),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?b(this,e,t):r<63?p(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0==(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var b=0,h=1;0==(n.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(n.iushrn(b);b-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0==(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),b=o;0!==p.cmp(s);){for(var h=p,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4==++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},74804:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},88006:function(e,t){"use strict";var n=t;function r(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n>8,o=255&a;i?n.push(i,o):n.push(o)}return n},n.zero2=r,n.toHex=a,n.encode=function(e,t){return"hex"===t?a(e):e}},72042:function(e,t,n){"use strict";var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}();e.exports=t=r.fetch,r.fetch&&(t.default=r.fetch.bind(r)),t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response},71755:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},58593:function(e,t,n){"use strict";var r=n(7804),a=n(48619),i=n(71755),o=n(37608),s=n(27732),c=a(o(),Object);r(c,{getPolyfill:o,implementation:i,shim:s}),e.exports=c},37608:function(e,t,n){"use strict";var r=n(71755);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},27732:function(e,t,n){"use strict";var r=n(37608),a=n(7804);e.exports=function(){var e=r();return a(Object,{is:e},{is:function(){return Object.is!==e}}),e}},82225:function(e,t,n){"use strict";var r;if(!Object.keys){var a=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=n(44413),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!l["$"+e]&&a.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=o(e),s=t&&"[object String]"===i.call(e),l=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var b=u&&n;if(s&&e.length>0&&!a.call(e,0))for(var h=0;h0)for(var y=0;y=0&&"[object Function]"===t.call(e.callee)),r}},45931:function(e,t,n){"use strict";var r=n(64274);t.certificate=n(32607);var a=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=a;var i=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=i;var o=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=o;var s=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),c=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=c;var u=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=u;var f=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=f,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var d=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=d;var l=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},32607:function(e,t,n){"use strict";var r=n(64274),a=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),i=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),c=r.define("RelativeDistinguishedName",(function(){this.setof(i)})),u=r.define("RDNSequence",(function(){this.seqof(c)})),f=r.define("Name",(function(){this.choice({rdnSequence:this.use(u)})})),d=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))})),l=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),p=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(f),this.key("validity").use(d),this.key("subject").use(f),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())})),b=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));e.exports=b},90454:function(e,t,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=n(35433),s=n(26205),c=n(32337).Buffer;e.exports=function(e,t){var n,u=e.toString(),f=u.match(r);if(f){var d="aes"+f[1],l=c.from(f[2],"hex"),p=c.from(f[3].replace(/[\r\n]/g,""),"base64"),b=o(t,l.slice(0,8),parseInt(f[1],10)).key,h=[],y=s.createDecipheriv(d,b,l);h.push(y.update(p)),h.push(y.final()),n=c.concat(h)}else{var m=u.match(i);n=c.from(m[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(a)[1],data:n}}},67566:function(e,t,n){var r=n(45931),a=n(22562),i=n(90454),o=n(26205),s=n(9542),c=n(32337).Buffer;function u(e){var t;"object"!=typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var n,u,f=i(e,t),d=f.tag,l=f.data;switch(d){case"CERTIFICATE":u=r.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=r.PublicKey.decode(l,"der")),n=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=r.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":l=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=a[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,f=e.subjectPrivateKey,d=parseInt(i.split("-")[1],10)/8,l=s.pbkdf2Sync(t,n,r,d,"sha1"),p=o.createDecipheriv(i,l,u),b=[];return b.push(p.update(f)),b.push(p.final()),c.concat(b)}(l=r.EncryptedPrivateKey.decode(l,"der"),t);case"PRIVATE KEY":switch(n=(u=r.PrivateKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:r.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=r.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return{curve:(l=r.ECPrivateKey.decode(l,"der")).parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+d)}}e.exports=u,u.signature=r.signature},9542:function(e,t,n){t.pbkdf2=n(15409),t.pbkdf2Sync=n(44509)},15409:function(e,t,n){var r,a,i=n(32337).Buffer,o=n(21812),s=n(69827),c=n(44509),u=n(94146),f=n.g.crypto&&n.g.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},l=[];function p(){return a||(a=n.g.process&&n.g.process.nextTick?n.g.process.nextTick:n.g.queueMicrotask?n.g.queueMicrotask:n.g.setImmediate?n.g.setImmediate:n.g.setTimeout)}function b(e,t,n,r,a){return f.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return f.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:a}},e,r<<3)})).then((function(e){return i.from(e)}))}e.exports=function(e,t,a,h,y,m){"function"==typeof y&&(m=y,y=void 0);var v=d[(y=y||"sha1").toLowerCase()];if(v&&"function"==typeof n.g.Promise){if(o(a,h),e=u(e,s,"Password"),t=u(t,s,"Salt"),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){p()((function(){t(null,e)}))}),(function(e){p()((function(){t(e)}))}))}(function(e){if(n.g.process&&!n.g.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==l[e])return l[e];var t=b(r=r||i.alloc(8),r,10,128,e).then((function(){return!0})).catch((function(){return!1}));return l[e]=t,t}(v).then((function(n){return n?b(e,t,a,h,v):c(e,t,a,h,y)})),m)}else p()((function(){var n;try{n=c(e,t,a,h,y)}catch(e){return m(e)}m(null,n)}))}},69827:function(e,t,n){var r,a=n(87973);r=n.g.process&&n.g.process.browser?"utf-8":n.g.process&&n.g.process.version?parseInt(a.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",e.exports=r},21812:function(e){var t=Math.pow(2,30)-1;e.exports=function(e,n){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof n)throw new TypeError("Key length not a number");if(n<0||n>t||n!=n)throw new TypeError("Bad key length")}},44509:function(e,t,n){var r=n(68154),a=n(14189),i=n(76582),o=n(32337).Buffer,s=n(21812),c=n(69827),u=n(94146),f=o.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(e,t,n){var s=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new a).update(e).digest()}:"md5"===e?r:function(t){return i(e).update(t).digest()}}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=s(t):t.length1)for(var n=1;n=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,f=n;f1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,d=67108863&c,l=Math.min(u,t.length-1),p=Math.max(0,u-e.length+1);p<=l;p++){var b=u-p|0;f+=(o=(a=0|e.words[b])*(i=0|t.words[p])+d)/67108864|0,d=67108863&o}n.words[u]=0|d,c=0|f}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?f[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],p=l[e];n="";var b=this.clone();for(b.negative=0;!b.isZero();){var h=b.modn(p).toString(e);n=(b=b.idivn(p)).isZero()?h+n:f[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),f=this.clone();if(c){for(s=0;!f.isZero();s++)o=f.andln(255),f.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,p=0|o[1],b=8191&p,h=p>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,S=0|o[5],I=8191&S,E=S>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,R=0|o[8],N=8191&R,D=R>>>13,j=0|o[9],U=8191&j,L=j>>>13,Z=0|s[0],F=8191&Z,H=Z>>>13,z=0|s[1],q=8191&z,Q=z>>>13,K=0|s[2],V=8191&K,J=K>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],de=8191&fe,le=fe>>>13,pe=0|s[9],be=8191&pe,he=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(d,F))|0)+((8191&(a=(a=Math.imul(d,H))+Math.imul(l,F)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(b,F),a=(a=Math.imul(b,H))+Math.imul(h,F)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(d,q)|0)|0)+((8191&(a=(a=a+Math.imul(d,Q)|0)+Math.imul(l,q)|0))<<13)|0;u=((i=i+Math.imul(l,Q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,F),a=(a=Math.imul(m,H))+Math.imul(v,F)|0,i=Math.imul(v,H),r=r+Math.imul(b,q)|0,a=(a=a+Math.imul(b,Q)|0)+Math.imul(h,q)|0,i=i+Math.imul(h,Q)|0;var ve=(u+(r=r+Math.imul(d,V)|0)|0)+((8191&(a=(a=a+Math.imul(d,J)|0)+Math.imul(l,V)|0))<<13)|0;u=((i=i+Math.imul(l,J)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,F),a=(a=Math.imul(A,H))+Math.imul(w,F)|0,i=Math.imul(w,H),r=r+Math.imul(m,q)|0,a=(a=a+Math.imul(m,Q)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,Q)|0,r=r+Math.imul(b,V)|0,a=(a=a+Math.imul(b,J)|0)+Math.imul(h,V)|0,i=i+Math.imul(h,J)|0;var ge=(u+(r=r+Math.imul(d,W)|0)|0)+((8191&(a=(a=a+Math.imul(d,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,F),a=(a=Math.imul(_,H))+Math.imul(k,F)|0,i=Math.imul(k,H),r=r+Math.imul(A,q)|0,a=(a=a+Math.imul(A,Q)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,Q)|0,r=r+Math.imul(m,V)|0,a=(a=a+Math.imul(m,J)|0)+Math.imul(v,V)|0,i=i+Math.imul(v,J)|0,r=r+Math.imul(b,W)|0,a=(a=a+Math.imul(b,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(d,$)|0)|0)+((8191&(a=(a=a+Math.imul(d,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(I,F),a=(a=Math.imul(I,H))+Math.imul(E,F)|0,i=Math.imul(E,H),r=r+Math.imul(_,q)|0,a=(a=a+Math.imul(_,Q)|0)+Math.imul(k,q)|0,i=i+Math.imul(k,Q)|0,r=r+Math.imul(A,V)|0,a=(a=a+Math.imul(A,J)|0)+Math.imul(w,V)|0,i=i+Math.imul(w,J)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(b,$)|0,a=(a=a+Math.imul(b,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(d,ne)|0)|0)+((8191&(a=(a=a+Math.imul(d,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,F),a=(a=Math.imul(T,H))+Math.imul(O,F)|0,i=Math.imul(O,H),r=r+Math.imul(I,q)|0,a=(a=a+Math.imul(I,Q)|0)+Math.imul(E,q)|0,i=i+Math.imul(E,Q)|0,r=r+Math.imul(_,V)|0,a=(a=a+Math.imul(_,J)|0)+Math.imul(k,V)|0,i=i+Math.imul(k,J)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(b,ne)|0,a=(a=a+Math.imul(b,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(d,ie)|0)|0)+((8191&(a=(a=a+Math.imul(d,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,F),a=(a=Math.imul(M,H))+Math.imul(B,F)|0,i=Math.imul(B,H),r=r+Math.imul(T,q)|0,a=(a=a+Math.imul(T,Q)|0)+Math.imul(O,q)|0,i=i+Math.imul(O,Q)|0,r=r+Math.imul(I,V)|0,a=(a=a+Math.imul(I,J)|0)+Math.imul(E,V)|0,i=i+Math.imul(E,J)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(b,ie)|0,a=(a=a+Math.imul(b,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(d,ce)|0)|0)+((8191&(a=(a=a+Math.imul(d,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(N,F),a=(a=Math.imul(N,H))+Math.imul(D,F)|0,i=Math.imul(D,H),r=r+Math.imul(M,q)|0,a=(a=a+Math.imul(M,Q)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,Q)|0,r=r+Math.imul(T,V)|0,a=(a=a+Math.imul(T,J)|0)+Math.imul(O,V)|0,i=i+Math.imul(O,J)|0,r=r+Math.imul(I,W)|0,a=(a=a+Math.imul(I,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(b,ce)|0,a=(a=a+Math.imul(b,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(d,de)|0)|0)+((8191&(a=(a=a+Math.imul(d,le)|0)+Math.imul(l,de)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,F),a=(a=Math.imul(U,H))+Math.imul(L,F)|0,i=Math.imul(L,H),r=r+Math.imul(N,q)|0,a=(a=a+Math.imul(N,Q)|0)+Math.imul(D,q)|0,i=i+Math.imul(D,Q)|0,r=r+Math.imul(M,V)|0,a=(a=a+Math.imul(M,J)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,J)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(I,$)|0,a=(a=a+Math.imul(I,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(b,de)|0,a=(a=a+Math.imul(b,le)|0)+Math.imul(h,de)|0,i=i+Math.imul(h,le)|0;var Se=(u+(r=r+Math.imul(d,be)|0)|0)+((8191&(a=(a=a+Math.imul(d,he)|0)+Math.imul(l,be)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,q),a=(a=Math.imul(U,Q))+Math.imul(L,q)|0,i=Math.imul(L,Q),r=r+Math.imul(N,V)|0,a=(a=a+Math.imul(N,J)|0)+Math.imul(D,V)|0,i=i+Math.imul(D,J)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(I,ne)|0,a=(a=a+Math.imul(I,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,de)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,de)|0,i=i+Math.imul(v,le)|0;var Ie=(u+(r=r+Math.imul(b,be)|0)|0)+((8191&(a=(a=a+Math.imul(b,he)|0)+Math.imul(h,be)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,V),a=(a=Math.imul(U,J))+Math.imul(L,V)|0,i=Math.imul(L,J),r=r+Math.imul(N,W)|0,a=(a=a+Math.imul(N,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(I,ie)|0,a=(a=a+Math.imul(I,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,de)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,de)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,be)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,be)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(N,$)|0,a=(a=a+Math.imul(N,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(I,ce)|0,a=(a=a+Math.imul(I,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,de)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,de)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,be)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,be)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(N,ne)|0,a=(a=a+Math.imul(N,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(I,de)|0,a=(a=a+Math.imul(I,le)|0)+Math.imul(E,de)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,be)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,be)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(N,ie)|0,a=(a=a+Math.imul(N,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,de)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,de)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(I,be)|0)|0)+((8191&(a=(a=a+Math.imul(I,he)|0)+Math.imul(E,be)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(N,ce)|0,a=(a=a+Math.imul(N,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,de)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,de)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,be)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,be)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(N,de)|0,a=(a=a+Math.imul(N,le)|0)+Math.imul(D,de)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,be)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,be)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,de),a=(a=Math.imul(U,le))+Math.imul(L,de)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(N,be)|0)|0)+((8191&(a=(a=a+Math.imul(N,he)|0)+Math.imul(D,be)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Re=(u+(r=Math.imul(U,be))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,be)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Re>>>26)|0,Re&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Se,c[10]=Ie,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Re,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(b=p),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?b(this,e,t):r<63?p(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==f||u>=a);u--){var d=0|this.words[u];this.words[u]=f<<26-i|d>>>i,f=d&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;d--){var l=67108864*(0|r.words[a.length+d])+(0|r.words[a.length+d-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,d);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,d),r.isZero()||(r.negative^=1);s&&(s.words[d]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var f=n.clone(),d=t.clone();!t.isZero();){for(var l=0,p=1;0==(t.words[0]&p)&&l<26;++l,p<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(f),o.isub(d)),a.iushrn(1),o.iushrn(1);for(var b=0,h=1;0==(n.words[0]&h)&&b<26;++b,h<<=1);if(b>0)for(n.iushrn(b);b-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(d)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,f=1;0==(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var d=0,l=1;0==(n.words[0]&l)&&d<26;++d,l<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new i(2*f*f).toRed(this);0!==this.pow(f,u).cmp(c);)f.redIAdd(c);for(var d=this.pow(f,a),l=this.pow(e,a.addn(1).iushrn(1)),p=this.pow(e,a),b=o;0!==p.cmp(s);){for(var h=p,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],f=c-1;f>=0;f--){var d=u>>f&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==o?(o<<=1,o|=d,(4==++s||0===r&&0===f)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},87253:function(e,t,n){var r=n(67566),a=n(37486),i=n(44632),o=n(69240),s=n(27280),c=n(30901),u=n(84010),f=n(32337).Buffer;e.exports=function(e,t,n){var d;d=e.padding?e.padding:n?1:4;var l,p=r(e),b=p.modulus.byteLength();if(t.length>b||new o(t).cmp(p.modulus)>=0)throw new Error("decryption error");l=n?u(new o(t),p):s(t,p);var h=f.alloc(b-l.length);if(l=f.concat([h,l],b),4===d)return function(e,t){var n=e.modulus.byteLength(),r=c("sha1").update(f.alloc(0)).digest(),o=r.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,o+1),u=t.slice(o+1),d=i(s,a(u,o)),l=i(u,a(d,n-o-1));if(function(e,t){e=f.from(e),t=f.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));for(var a=-1;++a=t.length){i++;break}var o=t.slice(2,a-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&i++,o.length<8&&i++,i)throw new Error("decryption error");return t.slice(a)}(0,l,n);if(3===d)return l;throw new Error("unknown padding")}},79156:function(e,t,n){var r=n(67566),a=n(10050),i=n(30901),o=n(37486),s=n(44632),c=n(69240),u=n(84010),f=n(27280),d=n(32337).Buffer;e.exports=function(e,t,n){var l;l=e.padding?e.padding:n?1:4;var p,b=r(e);if(4===l)p=function(e,t){var n=e.modulus.byteLength(),r=t.length,u=i("sha1").update(d.alloc(0)).digest(),f=u.length,l=2*f;if(r>n-l-2)throw new Error("message too long");var p=d.alloc(n-r-l-2),b=n-f-1,h=a(f),y=s(d.concat([u,p,d.alloc(1,1),t],b),o(h,b)),m=s(h,o(y,f));return new c(d.concat([d.alloc(1),m,y],n))}(b,t);else if(1===l)p=function(e,t,n){var r,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw new Error("message too long");return r=n?d.alloc(o-i-3,255):function(e){for(var t,n=d.allocUnsafe(e),r=0,i=a(2*e),o=0;r=0)throw new Error("data too long for modulus")}return n?f(p,b):u(p,b)}},84010:function(e,t,n){var r=n(69240),a=n(32337).Buffer;e.exports=function(e,t){return a.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},44632:function(e){e.exports=function(e,t){for(var n=e.length,r=-1;++r0&&c>s&&(c=s);for(var u=0;u=0?(f=b.substr(0,h),d=b.substr(h+1)):(f=b,d=""),l=decodeURIComponent(f),p=decodeURIComponent(d),t(i,l)?Array.isArray(i[l])?i[l].push(p):i[l]=[i[l],p]:i[l]=p}return i}},48545:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,a){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var i=encodeURIComponent(t(a))+r;return Array.isArray(e[a])?e[a].map((function(e){return i+encodeURIComponent(t(e))})).join(n):i+encodeURIComponent(t(e[a]))})).join(n):a?encodeURIComponent(t(a))+r+encodeURIComponent(t(e)):""}},78408:function(e,t,n){"use strict";t.decode=t.parse=n(2250),t.encode=t.stringify=n(48545)},10050:function(e,t,n){"use strict";var r=n(87973),a=65536,i=n(32337).Buffer,o=n.g.crypto||n.g.msCrypto;o&&o.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>a)for(var s=0;sf||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function l(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>f||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>c)throw new RangeError("buffer too small")}function p(e,t,n,a){if(r.browser){var i=e.buffer,s=new Uint8Array(i,t,n);return u.getRandomValues(s),a?void r.nextTick((function(){a(null,e)})):e}if(!a)return o(n).copy(e,t),e;o(n,(function(n,r){if(n)return a(n);r.copy(e,t),a(null,e)}))}u&&u.getRandomValues||!r.browser?(t.randomFill=function(e,t,r,a){if(!(s.isBuffer(e)||e instanceof n.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)a=t,t=0,r=e.length;else if("function"==typeof r)a=r,r=e.length-t;else if("function"!=typeof a)throw new TypeError('"cb" argument must be a function');return d(t,e.length),l(r,t,e.length),p(e,t,r,a)},t.randomFillSync=function(e,t,r){if(void 0===t&&(t=0),!(s.isBuffer(e)||e instanceof n.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return d(t,e.length),void 0===r&&(r=e.length-t),l(r,t,e.length),p(e,t,r)}):(t.randomFill=a,t.randomFillSync=a)},78611:function(e,t,n){"use strict";var r=n(19148),a=n(57438);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n

::::, e.g. 0x1::coins::transfer");case 5:return a=t.split("::"),i=(0,fa.Z)(a,2),o=i[0],s=i[1],e.next=8,this.fetchABI(o);case 8:if((c=e.sent).has(t)){e.next=11;break}throw new Error("".concat(t," doesn't exist."));case 11:return u=c.get(t),d=u.params.filter((function(e){return"signer"!==e&&"&signer"!==e})),f=d.map((function(e,t){return new bs("var".concat(t),new Ku(e).parseTypeTag())})),l=new ys(u.name,Qo.fromStr("".concat(o,"::").concat(s)),"",u.generic_type_params.map((function(e,t){return new ls("".concat(t))})),f),b=this.builderConfig,p=b.sender,h=(0,sa.Z)(b,Ii),y=p instanceof bo?Mi.fromUint8Array(p.address):p,e.next=19,Promise.all([(null==h?void 0:h.sequenceNumber)?Promise.resolve({sequence_number:null==h?void 0:h.sequenceNumber}):this.aptosClient.getAccount(y),(null==h?void 0:h.chainId)?Promise.resolve(null==h?void 0:h.chainId):this.aptosClient.getChainId(),(null==h?void 0:h.gasUnitPrice)?Promise.resolve({gas_estimate:null==h?void 0:h.gasUnitPrice}):this.aptosClient.estimateGasPrice()]);case 19:return m=e.sent,v=(0,fa.Z)(m,3),g=v[0].sequence_number,A=v[1],w=v[2].gas_estimate,x=new nd([to(l)],(0,ua.Z)({sender:p,sequenceNumber:g,chainId:A,gasUnitPrice:BigInt(w)},h)),e.abrupt("return",x.build(t,n,r));case 26:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})}]),e}();Ti([(6e5,Di({ttlMs:6e5,hashFunction:undefined}))],rd.prototype,"fetchABI",1);var ad=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,ma.Z)(this,e),!t)throw new Error("Node URL cannot be empty.");var a=null==n?{}:(0,ua.Z)({},n);this.nodeUrl=r?t:function(e){var t="".concat(e);return t.endsWith("/")&&(t=t.substring(0,t.length-1)),t.endsWith("/v1")||(t="".concat(t).concat("/v1")),t}(t),a.BASE=this.nodeUrl,!1===(null==n?void 0:n.WITH_CREDENTIALS)?a.WITH_CREDENTIALS=!1:a.WITH_CREDENTIALS=!0,this.client=new Ys(a)}var t,n,r,a,i,o,s,c,u,d,f,l,b,p,h,y,m,v,g,A,w,x,_,k,I,S,E,C,T,O,P,M,B;return(0,va.Z)(e,[{key:"getAccount",value:(B=(0,ya.Z)((0,da.Z)().mark((function e(t){return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.accounts.getAccount(Mi.ensure(t).hex()));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return B.apply(this,arguments)})},{key:"getAccountTransactions",value:(M=(0,ya.Z)((0,da.Z)().mark((function e(t,n){var r;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.transactions.getAccountTransactions(Mi.ensure(t).hex(),null==(r=null==n?void 0:n.start)?void 0:r.toString(),null==n?void 0:n.limit));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return M.apply(this,arguments)})},{key:"getAccountModules",value:(P=(0,ya.Z)((0,da.Z)().mark((function e(t,n){var r,a;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.client.accounts.getAccountModules.bind({httpRequest:this.client.request}),e.next=3,Li(r,t,1e3,n);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return P.apply(this,arguments)})},{key:"getAccountModule",value:(O=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.accounts.getAccountModule(Mi.ensure(t).hex(),n,null==(a=null==r?void 0:r.ledgerVersion)?void 0:a.toString()));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return O.apply(this,arguments)})},{key:"getAccountResources",value:(T=(0,ya.Z)((0,da.Z)().mark((function e(t,n){var r,a;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.client.accounts.getAccountResources.bind({httpRequest:this.client.request}),e.next=3,Li(r,t,9999,n);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return T.apply(this,arguments)})},{key:"getAccountResource",value:(C=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.accounts.getAccountResource(Mi.ensure(t).hex(),n,null==(a=null==r?void 0:r.ledgerVersion)?void 0:a.toString()));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return C.apply(this,arguments)})},{key:"generateTransaction",value:(E=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a,i,o;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={sender:t},(null==r?void 0:r.sequence_number)&&(a.sequenceNumber=r.sequence_number),(null==r?void 0:r.gas_unit_price)&&(a.gasUnitPrice=r.gas_unit_price),(null==r?void 0:r.max_gas_amount)&&(a.maxGasAmount=r.max_gas_amount),(null==r?void 0:r.expiration_timestamp_secs)&&(i=Number.parseInt(r.expiration_timestamp_secs,10),a.expSecFromNow=i-Math.floor(Date.now()/1e3)),o=new rd(this,a),e.abrupt("return",o.build(n.function,n.type_arguments,n.arguments));case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return E.apply(this,arguments)})},{key:"signTransaction",value:(S=(0,ya.Z)((0,da.Z)().mark((function t(n,r){return(0,da.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve(e.generateBCSTransaction(n,r)));case 1:case"end":return t.stop()}}),t)}))),function(e,t){return S.apply(this,arguments)})},{key:"getEventsByCreationNumber",value:(I=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.events.getEventsByCreationNumber(Mi.ensure(t).hex(),n.toString(),null==(a=null==r?void 0:r.start)?void 0:a.toString(),null==r?void 0:r.limit));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return I.apply(this,arguments)})},{key:"getEventsByEventHandle",value:(k=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a){var i;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.events.getEventsByEventHandle(Mi.ensure(t).hex(),n,r,null==(i=null==a?void 0:a.start)?void 0:i.toString(),null==a?void 0:a.limit));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return k.apply(this,arguments)})},{key:"submitTransaction",value:(_=(0,ya.Z)((0,da.Z)().mark((function e(t){return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.submitSignedBCSTransaction(t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"simulateTransaction",value:(x=(0,ya.Z)((0,da.Z)().mark((function t(n,r,a){var i,o,s;return(0,da.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n instanceof ws?i=e.generateBCSSimulation(n,r):n instanceof yo?(o=new td((function(){for(var e=n.threshold,t=[],r=[],a=0;a=i)){e.next=7;break}return e.abrupt("break",27);case 7:return e.prev=7,e.next=10,this.client.transactions.getTransactionByHash(t);case 10:if(u=e.sent,s="pending_transaction"===u.type){e.next=14;break}return e.abrupt("break",27);case 14:e.next=22;break;case 16:if(e.prev=16,e.t0=e.catch(7),d=e.t0 instanceof ks,f=d&&404!==e.t0.status&&e.t0.status>=400&&e.t0.status<500,d&&!f){e.next=22;break}throw e.t0;case 22:return e.next=24,Bi(1e3);case 24:c+=1,e.next=4;break;case 27:if(void 0!==u){e.next=29;break}throw new Error("Waiting for transaction ".concat(t," failed"));case 29:if(!s){e.next=31;break}throw new sd("Waiting for transaction ".concat(t," timed out after ").concat(i," seconds"),u);case 31:if(o){e.next=33;break}return e.abrupt("return",u);case 33:if(null==u?void 0:u.success){e.next=35;break}throw new cd("Transaction ".concat(t," committed to the blockchain but execution failed"),u);case 35:return e.abrupt("return",u);case 36:case"end":return e.stop()}}),e,this,[[7,16]])}))),function(e,t){return h.apply(this,arguments)})},{key:"waitForTransaction",value:(p=(0,ya.Z)((0,da.Z)().mark((function e(t,n){return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTransactionWithResult(t,n);case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"getLedgerInfo",value:(b=(0,ya.Z)((0,da.Z)().mark((function e(){return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.general.getLedgerInfo());case 1:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"getChainId",value:(l=(0,ya.Z)((0,da.Z)().mark((function e(){var t;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getLedgerInfo();case 2:return t=e.sent,e.abrupt("return",t.chain_id);case 4:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"getTableItem",value:(f=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a,i;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.client.tables.getTableItem(t,n,null==(a=null==r?void 0:r.ledgerVersion)?void 0:a.toString());case 2:return i=e.sent,e.abrupt("return",i);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return f.apply(this,arguments)})},{key:"generateRawTransaction",value:(d=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a,i,o,s,c,u,d,f,l;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this.getAccount(t),this.getChainId(),(null==r?void 0:r.gasUnitPrice)?Promise.resolve({gas_estimate:r.gasUnitPrice}):this.estimateGasPrice()]);case 2:return a=e.sent,i=(0,fa.Z)(a,3),o=i[0].sequence_number,s=i[1],c=i[2].gas_estimate,u=(0,ua.Z)({maxGasAmount:BigInt(Ri),gasUnitPrice:BigInt(c),expireTimestamp:BigInt(Math.floor(Date.now()/1e3)+20)},r),d=u.maxGasAmount,f=u.gasUnitPrice,l=u.expireTimestamp,e.abrupt("return",new Zi.RawTransaction(Zi.AccountAddress.fromHex(t),BigInt(o),n,d,f,l,new Zi.ChainId(s)));case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return d.apply(this,arguments)})},{key:"generateSignSubmitTransaction",value:(u=(0,ya.Z)((0,da.Z)().mark((function t(n,r,a){var i,o,s;return(0,da.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.generateRawTransaction(n.address(),r,a);case 2:return i=t.sent,o=e.generateBCSTransaction(n,i),t.next=6,this.submitSignedBCSTransaction(o);case 6:return s=t.sent,t.abrupt("return",s.hash);case 8:case"end":return t.stop()}}),t,this)}))),function(e,t,n){return u.apply(this,arguments)})},{key:"publishPackage",value:(c=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a){var i,o;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new Gi,Xi(r,i),o=new Zi.TransactionPayloadEntryFunction(Zi.EntryFunction.natural("0x1::code","publish_package_txn",[],[uo(n),i.getBytes()])),e.abrupt("return",this.generateSignSubmitTransaction(t,o,a));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return c.apply(this,arguments)})},{key:"generateSignSubmitWaitForTransaction",value:(s=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.generateSignSubmitTransaction(t,n,r);case 2:return a=e.sent,e.abrupt("return",this.waitForTransactionWithResult(a,r));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return s.apply(this,arguments)})},{key:"estimateGasPrice",value:(o=(0,ya.Z)((0,da.Z)().mark((function e(){return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.transactions.estimateGasPrice());case 1:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"estimateMaxGasAmount",value:(i=(0,ya.Z)((0,da.Z)().mark((function e(t){var n,r,a,i,o,s,c;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="0x1::coin::CoinStore<".concat("0x1::aptos_coin::AptosCoin",">"),e.next=3,Promise.all([this.estimateGasPrice(),this.getAccountResources(t)]);case 3:return r=e.sent,a=(0,fa.Z)(r,2),i=a[0].gas_estimate,o=a[1],s=o.find((function(e){return e.type===n})),c=BigInt(s.data.coin.value),e.abrupt("return",c/BigInt(i));case 10:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"rotateAuthKeyEd25519",value:(a=(0,ya.Z)((0,da.Z)().mark((function t(n,r,a){var i,o,s,c,u,d,f,l,b,p,h;return(0,da.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getAccount(n.address());case 2:return i=t.sent,o=i.sequence_number,s=i.authentication_key,c=new ws(r),u=new Zi.RotationProofChallenge(Zi.AccountAddress.CORE_CODE_ADDRESS,"account","RotationProofChallenge",BigInt(o),Zi.AccountAddress.fromHex(n.address()),new Zi.AccountAddress(new Mi(s).toUint8Array()),c.pubKey().toUint8Array()),d=Mi.fromUint8Array(to(u)),f=n.signHexString(d),l=c.signHexString(d),b=new Zi.TransactionPayloadEntryFunction(Zi.EntryFunction.natural("0x1::account","rotate_authentication_key",[],[ro(0),uo(n.pubKey().toUint8Array()),ro(0),uo(c.pubKey().toUint8Array()),uo(f.toUint8Array()),uo(l.toUint8Array())])),t.next=13,this.generateRawTransaction(n.address(),b,a);case 13:return p=t.sent,h=e.generateBCSTransaction(n,p),t.abrupt("return",this.submitSignedBCSTransaction(h));case 16:case"end":return t.stop()}}),t,this)}))),function(e,t,n){return a.apply(this,arguments)})},{key:"lookupOriginalAddress",value:(r=(0,ya.Z)((0,da.Z)().mark((function e(t){var n,r,a;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountResource("0x1","0x1::account::OriginatingAddress");case 2:return n=e.sent,r=n.data.address_map.handle,e.next=6,this.getTableItem(r,{key_type:"address",value_type:"address",key:Mi.ensure(t).hex()});case 6:return a=e.sent,e.abrupt("return",new Mi(a));case 8:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"getBlockByHeight",value:(n=(0,ya.Z)((0,da.Z)().mark((function e(t,n){return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.blocks.getBlockByHeight(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"getBlockByVersion",value:(t=(0,ya.Z)((0,da.Z)().mark((function e(t,n){return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.client.blocks.getBlockByVersion(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"clearCache",value:function(e){!function(e){var t,n=new Set,r=(0,ha.Z)(e);try{for(r.s();!(t=r.n()).done;){var a=t.value,i=ji.get(a);if(i){var o,s=(0,ha.Z)(i);try{for(s.s();!(o=s.n()).done;){var c=o.value;n.has(c)||(c.clear(),n.add(c))}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){r.e(e)}finally{r.f()}n.size}(e)}}],[{key:"generateBCSTransaction",value:function(e,t){return new ed((function(t){var n=e.signBuffer(t);return new Zi.Ed25519Signature(n.toUint8Array())}),e.pubKey().toUint8Array()).sign(t)}},{key:"generateBCSSimulation",value:function(e,t){return new ed((function(e){var t=new Uint8Array(64);return new Zi.Ed25519Signature(t)}),e.pubKey().toUint8Array()).sign(t)}}]),e}(),id=ad;Ti([ud],id.prototype,"getAccount",1),Ti([ud],id.prototype,"getAccountTransactions",1),Ti([ud],id.prototype,"getAccountModules",1),Ti([ud],id.prototype,"getAccountModule",1),Ti([ud],id.prototype,"getAccountResources",1),Ti([ud],id.prototype,"getAccountResource",1),Ti([ud],id.prototype,"getEventsByCreationNumber",1),Ti([ud],id.prototype,"getEventsByEventHandle",1),Ti([ud],id.prototype,"submitSignedBCSTransaction",1),Ti([ud],id.prototype,"submitBCSSimulation",1),Ti([ud],id.prototype,"getTransactions",1),Ti([ud],id.prototype,"getTransactionByHash",1),Ti([ud],id.prototype,"getTransactionByVersion",1),Ti([ud],id.prototype,"getLedgerInfo",1),Ti([Di()],id.prototype,"getChainId",1),Ti([ud],id.prototype,"getTableItem",1),Ti([ud,Di({ttlMs:3e5,tags:["gas_estimates"]})],id.prototype,"estimateGasPrice",1),Ti([ud],id.prototype,"estimateMaxGasAmount",1),Ti([ud],id.prototype,"getBlockByHeight",1),Ti([ud],id.prototype,"getBlockByVersion",1);var od=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a,i){var o;return(0,ma.Z)(this,n),(o=t.call(this,r)).status=e,o.message=r,o.errorCode=a,o.vmErrorCode=i,o}return(0,va.Z)(n)}((0,la.Z)(Error)),sd=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r){var a;return(0,ma.Z)(this,n),(a=t.call(this,e)).lastSubmittedTransaction=r,a}return(0,va.Z)(n)}((0,la.Z)(Error)),cd=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r){var a;return(0,ma.Z)(this,n),(a=t.call(this,e)).transaction=r,a}return(0,va.Z)(n)}((0,la.Z)(Error));function ud(e,t,n){var r=n.value;return n.value=function(){var e=(0,ya.Z)((0,da.Z)().mark((function e(){var t,n,a,i,o,s,c=arguments;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(e.prev=0,a=c.length,i=new Array(a),o=0;o4&&void 0!==c[4]?c[4]:Vi,o=c.length>5?c[5]:void 0,s=this.transactionBuilder.buildTransactionPayload("0x3::token::create_collection_script",[],[n,r,a,i,[!1,!1,!1]]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,s,o));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return y.apply(this,arguments)})},{key:"createToken",value:(h=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a,i,o){var s,c,u,d,f,l,b,p,h,y=arguments;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=y.length>6&&void 0!==y[6]?y[6]:Vi,c=y.length>7&&void 0!==y[7]?y[7]:t.address(),u=y.length>8&&void 0!==y[8]?y[8]:0,d=y.length>9&&void 0!==y[9]?y[9]:0,f=y.length>10&&void 0!==y[10]?y[10]:[],l=y.length>11&&void 0!==y[11]?y[11]:[],b=y.length>12&&void 0!==y[12]?y[12]:[],p=y.length>13?y[13]:void 0,h=this.transactionBuilder.buildTransactionPayload("0x3::token::create_token_script",[],[n,r,a,i,s,o,c,u,d,[!1,!1,!1,!1,!1],f,pd(l,b),b]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,h,p));case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i){return h.apply(this,arguments)})},{key:"createTokenWithMutabilityConfig",value:(p=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a,i,o){var s,c,u,d,f,l,b,p,h,y,m=arguments;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=m.length>6&&void 0!==m[6]?m[6]:Vi,c=m.length>7&&void 0!==m[7]?m[7]:t.address(),u=m.length>8&&void 0!==m[8]?m[8]:0,d=m.length>9&&void 0!==m[9]?m[9]:0,f=m.length>10&&void 0!==m[10]?m[10]:[],l=m.length>11&&void 0!==m[11]?m[11]:[],b=m.length>12&&void 0!==m[12]?m[12]:[],p=m.length>13&&void 0!==m[13]?m[13]:[!1,!1,!1,!1,!1],h=m.length>14?m[14]:void 0,y=this.transactionBuilder.buildTransactionPayload("0x3::token::create_token_script",[],[n,r,a,i,s,o,c,u,d,p,f,l,b]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,y,h));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i){return p.apply(this,arguments)})},{key:"offerToken",value:(b=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a,i,o){var s,c,u,d=arguments;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=d.length>6&&void 0!==d[6]?d[6]:0,c=d.length>7?d[7]:void 0,u=this.transactionBuilder.buildTransactionPayload("0x3::token_transfers::offer_script",[],[n,r,a,i,s,o]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,u,c));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i){return b.apply(this,arguments)})},{key:"claimToken",value:(l=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a,i){var o,s,c,u=arguments;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=u.length>5&&void 0!==u[5]?u[5]:0,s=u.length>6?u[6]:void 0,c=this.transactionBuilder.buildTransactionPayload("0x3::token_transfers::claim_script",[],[n,r,a,i,o]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,c,s));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a){return l.apply(this,arguments)})},{key:"cancelTokenOffer",value:(f=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a,i){var o,s,c,u=arguments;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=u.length>5&&void 0!==u[5]?u[5]:0,s=u.length>6?u[6]:void 0,c=this.transactionBuilder.buildTransactionPayload("0x3::token_transfers::cancel_offer_script",[],[n,r,a,i,o]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,c,s));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a){return f.apply(this,arguments)})},{key:"directTransferToken",value:(d=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a,i,o){var s,c,u,d,f,l,b,p,h,y,m,v,g=arguments;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=g.length>6&&void 0!==g[6]?g[6]:0,c=g.length>7?g[7]:void 0,u=this.transactionBuilder.buildTransactionPayload("0x3::token::direct_transfer_script",[],[r,a,i,s,o]),e.next=5,this.aptosClient.generateRawTransaction(t.address(),u,c);case 5:return d=e.sent,f=new Zi.MultiAgentRawTransaction(d,[Zi.AccountAddress.fromHex(n.address())]),l=new Zi.Ed25519Signature(t.signBuffer($u.getSigningMessage(f)).toUint8Array()),b=new Zi.AccountAuthenticatorEd25519(new Zi.Ed25519PublicKey(t.signingKey.publicKey),l),p=new Zi.Ed25519Signature(n.signBuffer($u.getSigningMessage(f)).toUint8Array()),h=new Zi.AccountAuthenticatorEd25519(new Zi.Ed25519PublicKey(n.signingKey.publicKey),p),y=new Zi.TransactionAuthenticatorMultiAgent(b,[Zi.AccountAddress.fromHex(n.address())],[h]),m=to(new Zi.SignedTransaction(d,y)),e.next=15,this.aptosClient.submitSignedBCSTransaction(m);case 15:return v=e.sent,e.abrupt("return",v.hash);case 17:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i){return d.apply(this,arguments)})},{key:"optInTokenTransfer",value:(u=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this.transactionBuilder.buildTransactionPayload("0x3::token::opt_in_direct_transfer",[],[n]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,a,r));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return u.apply(this,arguments)})},{key:"transferWithOptIn",value:(c=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a,i,o,s,c){var u;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u=new Yo(new Zo(new Mi("a11ceb0b0500000006010004020408030c0a05161d073339086c400000010100020700010307000104030100010504020007060c0508000800030503010801000405080008000304060c0801050306737472696e6705746f6b656e06537472696e6707546f6b656e4964136372656174655f746f6b656e5f69645f726177087472616e73666572000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000030000010c0b010b020b030b0411000c070b000b070b050b06110102").toUint8Array(),[],[new ss(Zi.AccountAddress.fromHex(n)),new cs((new TextEncoder).encode(r)),new cs((new TextEncoder).encode(a)),new as(BigInt(i)),new ss(Zi.AccountAddress.fromHex(o)),new as(BigInt(s))])),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,u,c));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i,o,s){return c.apply(this,arguments)})},{key:"burnByCreator",value:(s=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a,i,o,s){var c;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=this.transactionBuilder.buildTransactionPayload("0x3::token::burn_by_creator",[],[n,r,a,i,o]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,c,s));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i,o){return s.apply(this,arguments)})},{key:"burnByOwner",value:(o=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a,i,o,s){var c;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=this.transactionBuilder.buildTransactionPayload("0x3::token::burn",[],[n,r,a,i,o]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,c,s));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,i,s){return o.apply(this,arguments)})},{key:"mutateTokenProperties",value:(i=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a,i,o,s,c,u,d,f){var l;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=this.transactionBuilder.buildTransactionPayload("0x3::token::mutate_token_properties",[],[n,r,a,i,o,s,c,u,d]),e.abrupt("return",this.aptosClient.generateSignSubmitTransaction(t,l,f));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,a,o,s,c,u,d,f){return i.apply(this,arguments)})},{key:"getCollectionData",value:(a=(0,ya.Z)((0,da.Z)().mark((function e(t,n){var r,a,i,o,s;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.aptosClient.getAccountResources(t);case 2:return r=e.sent,a=r.find((function(e){return"0x3::token::Collections"===e.type})),i=a.data.collection_data.handle,o={key_type:"0x1::string::String",value_type:"0x3::token::CollectionData",key:n},e.next=8,this.aptosClient.getTableItem(i,o);case 8:return s=e.sent,e.abrupt("return",s);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"getTokenData",value:(r=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a,i,o,s,c;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=t instanceof Mi?t.hex():t,e.next=3,this.aptosClient.getAccountResource(a,"0x3::token::Collections");case 3:return i=e.sent,o=i.data.token_data.handle,s={key_type:"0x3::token::TokenDataId",value_type:"0x3::token::TokenData",key:{creator:a,collection:n,name:r}},e.next=9,this.aptosClient.getTableItem(o,s);case 9:return c=e.sent,e.abrupt("return",new yd(c.collection,c.description,c.name,c.maximum,c.supply,c.uri,c.default_properties,c.mutability_config));case 11:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"getToken",value:(n=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a,i,o=arguments;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=o.length>3&&void 0!==o[3]?o[3]:"0",i={creator:t instanceof Mi?t.hex():t,collection:n,name:r},e.abrupt("return",this.getTokenForAccount(t,{token_data_id:i,property_version:a}));case 3:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"getTokenForAccount",value:(t=(0,ya.Z)((0,da.Z)().mark((function e(t,n){var r,a,i,o;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.aptosClient.getAccountResource(t instanceof Mi?t.hex():t,"0x3::token::TokenStore");case 2:return r=e.sent,a=r.data.tokens.handle,i={key_type:"0x3::token::TokenId",value_type:"0x3::token::Token",key:n},e.prev=5,e.next=8,this.aptosClient.getTableItem(a,i);case 8:return o=e.sent,e.abrupt("return",new md(o.id,o.amount,o.token_properties));case 12:if(e.prev=12,e.t0=e.catch(5),404!==(null==e.t0?void 0:e.t0.status)){e.next=16;break}return e.abrupt("return",{id:n,amount:"0",token_properties:new ld});case 16:return e.abrupt("return",e.t0);case 17:case"end":return e.stop()}}),e,this,[[5,12]])}))),function(e,n){return t.apply(this,arguments)})}]),e}(),gd=n(27274),Ad=n(44105),wd=n(61974),xd=n(871),_d=n(85965),kd=n(58673),Id=n(80641),Sd=n(71877),Ed=n(87381),Cd=n.n(Ed),Td=n(39373),Od=n(5886).Buffer,Pd=function(){function e(t){var n=t.bidderKey,r=t.bidAmount,a=t.bidID,i=t.auctionKey,o=t.auctionID,s=t.maxPrice;(0,ma.Z)(this,e),this.name="Bid",this.tag=Od.from([97,66]);var c=kd.decodeAddress(n),u=kd.decodeAddress(i);if(!Number.isSafeInteger(r)||r<0)throw Error("Bid amount must be positive and 2^53-1");if(!Number.isSafeInteger(a)||a<0)throw Error("BidID must be positive and 2^53-1");if(!Number.isSafeInteger(o)||o<0)throw Error("auctionID must be positive");Object.assign(this,{bidderKey:c,bidAmount:r,bidID:a,auctionKey:u,auctionID:o,maxPrice:s})}return(0,va.Z)(e,[{key:"get_obj_for_encoding",value:function(){return{bidder:Od.from(this.bidderKey.publicKey),cur:this.bidAmount,price:this.maxPrice,id:this.bidID,auc:Od.from(this.auctionKey.publicKey),aid:this.auctionID}}},{key:"signBid",value:function(e){var t=Id.encode(this.get_obj_for_encoding()),n=Od.from(Td.concatArrays(this.tag,t)),r=_d.sign(n,e),a={t:"b",b:{sig:Od.from(r),bid:this.get_obj_for_encoding()}};return new Uint8Array(Id.encode(a))}}]),e}(),Md=1e6,Bd="Microalgos should be positive and less than 2^53 - 1.";function Nd(e){if(e<0||!Number.isSafeInteger(e))throw new Error(Bd);return e/Md}function Rd(e){var t=e*Md;return Math.round(t)}n(49597);var Dd=n(93967),jd=n(72459),Ud=function(){function e(t,n,r,a){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};(0,ma.Z)(this,e),"function"==typeof n.get?this.c=new Dd.default(n):(i="string"==typeof n?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={};return t[arguments.length>1?arguments[1]:void 0]=e,t}(n,t):n,this.c=new Dd.default(i,r,a,o)),this.intDecoding=jd.Z.DEFAULT}return(0,va.Z)(e,[{key:"setIntEncoding",value:function(e){this.intDecoding=e}},{key:"getIntEncoding",value:function(){return this.intDecoding}}]),e}(),Ld=n(57868),Fd=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).account=a,i.account=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account)}},{key:"exclude",value:function(e){return this.query.exclude=e,this}}]),n}(Ld.Z),Zd=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a,i){var o;return(0,ma.Z)(this,n),(o=t.call(this,e,r)).account=a,o.assetID=i,o.account=a,o.assetID=i,o}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/assets/").concat(this.assetID)}}]),n}(Ld.Z),Hd=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a,i){var o;return(0,ma.Z)(this,n),(o=t.call(this,e,r)).account=a,o.applicationID=i,o.account=a,o.applicationID=i,o}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/applications/").concat(this.applicationID)}}]),n}(Ld.Z),zd=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r){var a;if((0,ma.Z)(this,n),a=t.call(this,e),!Number.isInteger(r))throw Error("roundNumber should be an integer");return a.round=r,a.query={format:"msgpack"},a}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round)}},{key:"prepare",value:function(e){if(e&&e.byteLength>0)return Id.decode(e)}}]),n}(Ld.Z),Qd=n(5886).Buffer;function qd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;return Object.keys(t).every((function(e){return"content-type"!==e.toLowerCase()}))&&((t=(0,ua.Z)({},e))["Content-Type"]="text/plain"),t}var Vd=function(e){(0,ba.Z)(r,e);var t,n=(0,pa.Z)(r);function r(e,t){var a;return(0,ma.Z)(this,r),(a=n.call(this,e)).source=t,a.source=t,a}return(0,va.Z)(r,[{key:"path",value:function(){return"/v2/teal/compile"}},{key:"sourcemap",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query.sourcemap=e,this}},{key:"do",value:(t=(0,ya.Z)((0,da.Z)().mark((function e(){var t,n,r=arguments;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=qd(r.length>0&&void 0!==r[0]?r[0]:{}),e.next=4,this.c.post(this.path(),Qd.from(this.source),t,this.query);case 4:return n=e.sent,e.abrupt("return",n.body);case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(Ld.Z),Jd=n(5886).Buffer,Kd=function(e){(0,ba.Z)(r,e);var t,n=(0,pa.Z)(r);function r(e,t){var a;return(0,ma.Z)(this,r),(a=n.call(this,e)).blob=Id.encode(t.get_obj_for_encoding(!0)),a}return(0,va.Z)(r,[{key:"path",value:function(){return"/v2/teal/dryrun"}},{key:"do",value:(t=(0,ya.Z)((0,da.Z)().mark((function e(){var t,n,r=arguments;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=qd(r.length>0&&void 0!==r[0]?r[0]:{}),e.next=4,this.c.post(this.path(),Jd.from(this.blob),t);case 4:return n=e.sent,e.abrupt("return",n.body);case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(Ld.Z),Gd=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ma.Z)(this,n),t.apply(this,arguments)}return(0,va.Z)(n,[{key:"path",value:function(){return"/genesis"}}]),n}(Ld.Z),Wd=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).index=a,i.index=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/assets/".concat(this.index)}}]),n}(Ld.Z),Yd=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).index=a,i.index=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.index)}}]),n}(Ld.Z),Xd=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;if((0,ma.Z)(this,n),i=t.call(this,e,r),!Number.isInteger(a))throw Error("roundNumber should be an integer");return i.round=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round,"/hash")}}]),n}(Ld.Z),$d=n(5886).Buffer;function ef(e,t){var n;if(e instanceof Uint8Array)n=t?e:$d.from(e).toString("base64");else if("function"==typeof e.get_obj_for_encoding)n=e.get_obj_for_encoding(t);else if(Array.isArray(e)){n=[];var r,a=(0,ha.Z)(e);try{for(a.s();!(r=a.n()).done;){var i=r.value;n.push(ef(i,t))}}catch(e){a.e(e)}finally{a.f()}}else if("object"==typeof e){for(var o={},s=0,c=Object.keys(e);s0&&void 0!==arguments[0]&&arguments[0],t={},n=0,r=Object.keys(this.attribute_map);n0&&void 0!==r[0]?r[0]:{},e.next=3,this.c.get(this.path(),{},t);case 3:if((n=e.sent).ok){e.next=6;break}throw new Error("Health response: ".concat(n.status));case 6:return e.abrupt("return",{});case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),r}(Ld.Z),Yf=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r){var a;return(0,ma.Z)(this,n),(a=t.call(this,e)).txid=r,a.txid=r,a.query.format="msgpack",a}return(0,va.Z)(n,[{key:"prepare",value:function(e){if(e&&e.byteLength>0)return Id.decode(e)}},{key:"path",value:function(){return"/v2/transactions/pending/".concat(this.txid)}},{key:"max",value:function(e){return this.query.max=e,this}}]),n}(Ld.Z),Xf=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r;return(0,ma.Z)(this,n),(r=t.call(this,e)).query.format="msgpack",r}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/transactions/pending"}},{key:"prepare",value:function(e){if(e&&e.byteLength>0)return Id.decode(e)}},{key:"max",value:function(e){return this.query.max=e,this}}]),n}(Ld.Z),$f=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r){var a;return(0,ma.Z)(this,n),(a=t.call(this,e)).address=r,a.address=r,a.query.format="msgpack",a}return(0,va.Z)(n,[{key:"prepare",value:function(e){if(e&&e.byteLength>0)return Id.decode(e)}},{key:"path",value:function(){return"/v2/accounts/".concat(this.address,"/transactions/pending")}},{key:"max",value:function(e){return this.query.max=e,this}}]),n}(Ld.Z),el=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a,i){var o;return(0,ma.Z)(this,n),(o=t.call(this,e,r)).round=a,o.txID=i,o.round=a,o.txID=i,o}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round,"/transactions/").concat(this.txID,"/proof")}},{key:"hashType",value:function(e){return this.query.hashtype=e,this}}]),n}(Ld.Z),tl=n(65035),nl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ma.Z)(this,n),t.apply(this,arguments)}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/status"}}]),n}(Ld.Z),rl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;if((0,ma.Z)(this,n),(i=t.call(this,e,r)).round=a,!Number.isInteger(a))throw Error("round should be an integer");return i.round=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/status/wait-for-block-after/".concat(this.round)}}]),n}(Ld.Z),al=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ma.Z)(this,n),t.apply(this,arguments)}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/transactions/params"}},{key:"prepare",value:function(e){return{flatFee:!1,fee:e.fee,firstRound:e["last-round"],lastRound:e["last-round"]+1e3,genesisID:e["genesis-id"],genesisHash:e["genesis-hash"]}}}]),n}(Ld.Z),il=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ma.Z)(this,n),t.apply(this,arguments)}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/ledger/supply"}}]),n}(Ld.Z),ol=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ma.Z)(this,n),t.apply(this,arguments)}return(0,va.Z)(n,[{key:"path",value:function(){return"/versions"}}]),n}(Ld.Z),sl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).round=a,i.round=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round,"/lightheader/proof")}}]),n}(Ld.Z),cl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).round=a,i.round=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/stateproofs/".concat(this.round)}}]),n}(Ld.Z),ul=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://r2.algorand.network",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4180,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,ma.Z)(this,n),t.call(this,"X-Algo-API-Token",e,r,a,i)}return(0,va.Z)(n,[{key:"healthCheck",value:function(){return new Wf(this.c)}},{key:"versionsCheck",value:function(){return new ol(this.c)}},{key:"sendRawTransaction",value:function(e){return new tl.default(this.c,e)}},{key:"accountInformation",value:function(e){return new Fd(this.c,this.intDecoding,e)}},{key:"accountAssetInformation",value:function(e,t){return new Zd(this.c,this.intDecoding,e,t)}},{key:"accountApplicationInformation",value:function(e,t){return new Hd(this.c,this.intDecoding,e,t)}},{key:"block",value:function(e){return new zd(this.c,e)}},{key:"getBlockHash",value:function(e){return new Xd(this.c,this.intDecoding,e)}},{key:"pendingTransactionInformation",value:function(e){return new Yf(this.c,e)}},{key:"pendingTransactionsInformation",value:function(){return new Xf(this.c)}},{key:"pendingTransactionByAddress",value:function(e){return new $f(this.c,e)}},{key:"status",value:function(){return new nl(this.c,this.intDecoding)}},{key:"statusAfterBlock",value:function(e){return new rl(this.c,this.intDecoding,e)}},{key:"getTransactionParams",value:function(){return new al(this.c)}},{key:"supply",value:function(){return new il(this.c,this.intDecoding)}},{key:"compile",value:function(e){return new Vd(this.c,e)}},{key:"dryrun",value:function(e){return new Kd(this.c,e)}},{key:"getAssetByID",value:function(e){return new Wd(this.c,this.intDecoding,e)}},{key:"getApplicationByID",value:function(e){return new Yd(this.c,this.intDecoding,e)}},{key:"getApplicationBoxByName",value:function(e,t){return new Kf(this.c,this.intDecoding,e,t)}},{key:"getApplicationBoxes",value:function(e){return new Gf(this.c,this.intDecoding,e)}},{key:"genesis",value:function(){return new Gd(this.c,this.intDecoding)}},{key:"getTransactionProof",value:function(e,t){return new el(this.c,this.intDecoding,e,t)}},{key:"getLightBlockHeaderProof",value:function(e){return new sl(this.c,this.intDecoding,e)}},{key:"getStateProof",value:function(e){return new cl(this.c,this.intDecoding,e)}}]),n}(Ud),dl=n(5886).Buffer,fl=function(e){(0,ba.Z)(_,e);var t,n,r,a,i,o,s,c,u,d,f,l,b,p,h,y,m,v,g,A,w,x=(0,pa.Z)(_);function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://127.0.0.1",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7833,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,ma.Z)(this,_),x.call(this,"X-KMD-API-Token",e,t,n,r)}return(0,va.Z)(_,[{key:"versions",value:(w=(0,ya.Z)((0,da.Z)().mark((function e(){var t;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.c.get("/versions");case 2:return t=e.sent,e.abrupt("return",t.body);case 4:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"listWallets",value:(A=(0,ya.Z)((0,da.Z)().mark((function e(){var t;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.c.get("/v1/wallets");case 2:return t=e.sent,e.abrupt("return",t.body);case 4:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"createWallet",value:(g=(0,ya.Z)((0,da.Z)().mark((function e(t,n){var r,a,i,o=arguments;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:new Uint8Array,a={wallet_name:t,wallet_driver_name:o.length>3&&void 0!==o[3]?o[3]:"sqlite",wallet_password:n,master_derivation_key:dl.from(r).toString("base64")},e.next=5,this.c.post("/v1/wallet",a);case 5:return i=e.sent,e.abrupt("return",i.body);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"initWalletHandle",value:(v=(0,ya.Z)((0,da.Z)().mark((function e(t,n){var r,a;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={wallet_id:t,wallet_password:n},e.next=3,this.c.post("/v1/wallet/init",r);case 3:return a=e.sent,e.abrupt("return",a.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return v.apply(this,arguments)})},{key:"releaseWalletHandle",value:(m=(0,ya.Z)((0,da.Z)().mark((function e(t){var n,r;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/wallet/release",n);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"renewWalletHandle",value:(y=(0,ya.Z)((0,da.Z)().mark((function e(t){var n,r;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/wallet/renew",n);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return y.apply(this,arguments)})},{key:"renameWallet",value:(h=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a,i;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={wallet_id:t,wallet_password:n,wallet_name:r},e.next=3,this.c.post("/v1/wallet/rename",a);case 3:return i=e.sent,e.abrupt("return",i.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return h.apply(this,arguments)})},{key:"getWallet",value:(p=(0,ya.Z)((0,da.Z)().mark((function e(t){var n,r;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/wallet/info",n);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"exportMasterDerivationKey",value:(b=(0,ya.Z)((0,da.Z)().mark((function e(t,n){var r,a;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={wallet_handle_token:t,wallet_password:n},e.next=3,this.c.post("/v1/master-key/export",r);case 3:return a=e.sent,e.abrupt("return",{master_derivation_key:dl.from(a.body.master_derivation_key,"base64")});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return b.apply(this,arguments)})},{key:"importKey",value:(l=(0,ya.Z)((0,da.Z)().mark((function e(t,n){var r,a;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={wallet_handle_token:t,private_key:dl.from(n).toString("base64")},e.next=3,this.c.post("/v1/key/import",r);case 3:return a=e.sent,e.abrupt("return",a.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"exportKey",value:(f=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a,i;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={wallet_handle_token:t,address:r,wallet_password:n},e.next=3,this.c.post("/v1/key/export",a);case 3:return i=e.sent,e.abrupt("return",{private_key:dl.from(i.body.private_key,"base64")});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return f.apply(this,arguments)})},{key:"generateKey",value:(d=(0,ya.Z)((0,da.Z)().mark((function e(t){var n,r;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t,display_mnemonic:!1},e.next=3,this.c.post("/v1/key",n);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"deleteKey",value:(u=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a,i;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={wallet_handle_token:t,address:r,wallet_password:n},e.next=3,this.c.delete("/v1/key",a);case 3:return i=e.sent,e.abrupt("return",i.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return u.apply(this,arguments)})},{key:"listKeys",value:(c=(0,ya.Z)((0,da.Z)().mark((function e(t){var n,r;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/key/list",n);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"signTransaction",value:(s=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a,i,o;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Sd.instantiateTxnIfNeeded(r),i={wallet_handle_token:t,wallet_password:n,transaction:dl.from(a.toByte()).toString("base64")},e.next=4,this.c.post("/v1/transaction/sign",i);case 4:if(200!==(o=e.sent).status){e.next=7;break}return e.abrupt("return",dl.from(o.body.signed_transaction,"base64"));case 7:return e.abrupt("return",o.body);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return s.apply(this,arguments)})},{key:"signTransactionWithSpecificPublicKey",value:(o=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a){var i,o,s;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Sd.instantiateTxnIfNeeded(r),o={wallet_handle_token:t,wallet_password:n,transaction:dl.from(i.toByte()).toString("base64"),public_key:dl.from(a).toString("base64")},e.next=4,this.c.post("/v1/transaction/sign",o);case 4:if(200!==(s=e.sent).status){e.next=7;break}return e.abrupt("return",dl.from(s.body.signed_transaction,"base64"));case 7:return e.abrupt("return",s.body);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return o.apply(this,arguments)})},{key:"listMultisig",value:(i=(0,ya.Z)((0,da.Z)().mark((function e(t){var n,r;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={wallet_handle_token:t},e.next=3,this.c.post("/v1/multisig/list",n);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"importMultisig",value:(a=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a){var i,o;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i={wallet_handle_token:t,multisig_version:n,threshold:r,pks:a},e.next=3,this.c.post("/v1/multisig/import",i);case 3:return o=e.sent,e.abrupt("return",o.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return a.apply(this,arguments)})},{key:"exportMultisig",value:(r=(0,ya.Z)((0,da.Z)().mark((function e(t,n){var r,a;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={wallet_handle_token:t,address:n},e.next=3,this.c.post("/v1/multisig/export",r);case 3:return a=e.sent,e.abrupt("return",a.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"signMultisigTransaction",value:(n=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r,a,i){var o,s,c;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=Sd.instantiateTxnIfNeeded(r),s={wallet_handle_token:t,transaction:dl.from(o.toByte()).toString("base64"),public_key:dl.from(a).toString("base64"),partial_multisig:i,wallet_password:n},e.next=4,this.c.post("/v1/multisig/sign",s);case 4:return c=e.sent,e.abrupt("return",c.body);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t,r,a,i){return n.apply(this,arguments)})},{key:"deleteMultisig",value:(t=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a,i;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={wallet_handle_token:t,address:r,wallet_password:n},e.next=3,this.c.delete("/v1/multisig",a);case 3:return i=e.sent,e.abrupt("return",i.body);case 5:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})}]),_}(Ud),ll=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ma.Z)(this,n),t.apply(this,arguments)}return(0,va.Z)(n,[{key:"path",value:function(){return"/health"}}]),n}(Ld.Z),bl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).index=a,i.index=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/assets/".concat(this.index,"/balances")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(Ld.Z),pl=n(5886).Buffer;function hl(e){return"string"==typeof e?e:pl.from(e).toString("base64")}var yl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).account=a,i.account=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/transactions")}},{key:"notePrefix",value:function(e){return this.query["note-prefix"]=hl(e),this}},{key:"txType",value:function(e){return this.query["tx-type"]=e,this}},{key:"sigType",value:function(e){return this.query["sig-type"]=e,this}},{key:"txid",value:function(e){return this.query.txid=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"minRound",value:function(e){return this.query["min-round"]=e,this}},{key:"maxRound",value:function(e){return this.query["max-round"]=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"beforeTime",value:function(e){return this.query["before-time"]=e,this}},{key:"afterTime",value:function(e){return this.query["after-time"]=e,this}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"rekeyTo",value:function(e){return this.query["rekey-to"]=e,this}}]),n}(Ld.Z),ml=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).index=a,i.index=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/assets/".concat(this.index,"/transactions")}},{key:"notePrefix",value:function(e){return this.query["note-prefix"]=hl(e),this}},{key:"txType",value:function(e){return this.query["tx-type"]=e,this}},{key:"sigType",value:function(e){return this.query["sig-type"]=e,this}},{key:"txid",value:function(e){return this.query.txid=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"minRound",value:function(e){return this.query["min-round"]=e,this}},{key:"maxRound",value:function(e){return this.query["max-round"]=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"beforeTime",value:function(e){return this.query["before-time"]=e,this}},{key:"afterTime",value:function(e){return this.query["after-time"]=e,this}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"addressRole",value:function(e){return this.query["address-role"]=e,this}},{key:"address",value:function(e){return this.query.address=e,this}},{key:"excludeCloseTo",value:function(e){return this.query["exclude-close-to"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"rekeyTo",value:function(e){return this.query["rekey-to"]=e,this}}]),n}(Ld.Z),vl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).round=a,i.round=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/blocks/".concat(this.round)}},{key:"headerOnly",value:function(e){return this.query["header-only"]=e,this}}]),n}(Ld.Z),gl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).txID=a,i.txID=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/transactions/".concat(this.txID)}}]),n}(Ld.Z),Al=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).account=a,i.account=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account)}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"exclude",value:function(e){return this.query.exclude=e,this}}]),n}(Ld.Z),wl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).account=a,i.account=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/assets")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"assetId",value:function(e){return this.query["asset-id"]=e,this}}]),n}(Ld.Z),xl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).account=a,i.account=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/created-assets")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}}]),n}(Ld.Z),_l=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).account=a,i.account=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/apps-local-state")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"applicationID",value:function(e){return this.query["application-id"]=e,this}}]),n}(Ld.Z),kl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).account=a,i.account=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/accounts/".concat(this.account,"/created-applications")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"applicationID",value:function(e){return this.query["application-id"]=e,this}}]),n}(Ld.Z),Il=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).index=a,i.index=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/assets/".concat(this.index)}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(Ld.Z),Sl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).index=a,i.index=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.index)}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(Ld.Z),El=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).appID=a,i.appID=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.appID,"/logs")}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"minRound",value:function(e){return this.query["min-round"]=e,this}},{key:"maxRound",value:function(e){return this.query["max-round"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"sender",value:function(e){return this.query["sender-address"]=e,this}},{key:"txid",value:function(e){return this.query.txid=e,this}}]),n}(Ld.Z),Cl=n(5886).Buffer,Tl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.address,i=e.amount,o=e.amountWithoutPendingRewards,s=e.pendingRewards,c=e.rewards,u=e.round,d=e.status,f=e.totalAppsOptedIn,l=e.totalAssetsOptedIn,b=e.totalBoxBytes,p=e.totalBoxes,h=e.totalCreatedApps,y=e.totalCreatedAssets,m=e.appsLocalState,v=e.appsTotalExtraPages,g=e.appsTotalSchema,A=e.assets,w=e.authAddr,x=e.closedAtRound,_=e.createdApps,k=e.createdAssets,I=e.createdAtRound,S=e.deleted,E=e.participation,C=e.rewardBase,T=e.sigType;return(0,ma.Z)(this,n),(r=t.call(this)).address=a,r.amount=i,r.amountWithoutPendingRewards=o,r.pendingRewards=s,r.rewards=c,r.round=u,r.status=d,r.totalAppsOptedIn=f,r.totalAssetsOptedIn=l,r.totalBoxBytes=b,r.totalBoxes=p,r.totalCreatedApps=h,r.totalCreatedAssets=y,r.appsLocalState=m,r.appsTotalExtraPages=v,r.appsTotalSchema=g,r.assets=A,r.authAddr=w,r.closedAtRound=x,r.createdApps=_,r.createdAssets=k,r.createdAtRound=I,r.deleted=S,r.participation=E,r.rewardBase=C,r.sigType=T,r.attribute_map={address:"address",amount:"amount",amountWithoutPendingRewards:"amount-without-pending-rewards",pendingRewards:"pending-rewards",rewards:"rewards",round:"round",status:"status",totalAppsOptedIn:"total-apps-opted-in",totalAssetsOptedIn:"total-assets-opted-in",totalBoxBytes:"total-box-bytes",totalBoxes:"total-boxes",totalCreatedApps:"total-created-apps",totalCreatedAssets:"total-created-assets",appsLocalState:"apps-local-state",appsTotalExtraPages:"apps-total-extra-pages",appsTotalSchema:"apps-total-schema",assets:"assets",authAddr:"auth-addr",closedAtRound:"closed-at-round",createdApps:"created-apps",createdAssets:"created-assets",createdAtRound:"created-at-round",deleted:"deleted",participation:"participation",rewardBase:"reward-base",sigType:"sig-type"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.address)throw new Error("Response is missing required field 'address': ".concat(e));if(void 0===e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if(void 0===e["amount-without-pending-rewards"])throw new Error("Response is missing required field 'amount-without-pending-rewards': ".concat(e));if(void 0===e["pending-rewards"])throw new Error("Response is missing required field 'pending-rewards': ".concat(e));if(void 0===e.rewards)throw new Error("Response is missing required field 'rewards': ".concat(e));if(void 0===e.round)throw new Error("Response is missing required field 'round': ".concat(e));if(void 0===e.status)throw new Error("Response is missing required field 'status': ".concat(e));if(void 0===e["total-apps-opted-in"])throw new Error("Response is missing required field 'total-apps-opted-in': ".concat(e));if(void 0===e["total-assets-opted-in"])throw new Error("Response is missing required field 'total-assets-opted-in': ".concat(e));if(void 0===e["total-box-bytes"])throw new Error("Response is missing required field 'total-box-bytes': ".concat(e));if(void 0===e["total-boxes"])throw new Error("Response is missing required field 'total-boxes': ".concat(e));if(void 0===e["total-created-apps"])throw new Error("Response is missing required field 'total-created-apps': ".concat(e));if(void 0===e["total-created-assets"])throw new Error("Response is missing required field 'total-created-assets': ".concat(e));return new n({address:e.address,amount:e.amount,amountWithoutPendingRewards:e["amount-without-pending-rewards"],pendingRewards:e["pending-rewards"],rewards:e.rewards,round:e.round,status:e.status,totalAppsOptedIn:e["total-apps-opted-in"],totalAssetsOptedIn:e["total-assets-opted-in"],totalBoxBytes:e["total-box-bytes"],totalBoxes:e["total-boxes"],totalCreatedApps:e["total-created-apps"],totalCreatedAssets:e["total-created-assets"],appsLocalState:void 0!==e["apps-local-state"]?e["apps-local-state"].map(Rl.from_obj_for_encoding):void 0,appsTotalExtraPages:e["apps-total-extra-pages"],appsTotalSchema:void 0!==e["apps-total-schema"]?Zl.from_obj_for_encoding(e["apps-total-schema"]):void 0,assets:void 0!==e.assets?e.assets.map(ql.from_obj_for_encoding):void 0,authAddr:e["auth-addr"],closedAtRound:e["closed-at-round"],createdApps:void 0!==e["created-apps"]?e["created-apps"].map(Nl.from_obj_for_encoding):void 0,createdAssets:void 0!==e["created-assets"]?e["created-assets"].map(zl.from_obj_for_encoding):void 0,createdAtRound:e["created-at-round"],deleted:e.deleted,participation:void 0!==e.participation?Ol.from_obj_for_encoding(e.participation):void 0,rewardBase:e["reward-base"],sigType:e["sig-type"]})}}]),n}(tf),Ol=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.selectionParticipationKey,i=e.voteFirstValid,o=e.voteKeyDilution,s=e.voteLastValid,c=e.voteParticipationKey,u=e.stateProofKey;return(0,ma.Z)(this,n),(r=t.call(this)).selectionParticipationKey="string"==typeof a?new Uint8Array(Cl.from(a,"base64")):a,r.voteFirstValid=i,r.voteKeyDilution=o,r.voteLastValid=s,r.voteParticipationKey="string"==typeof c?new Uint8Array(Cl.from(c,"base64")):c,r.stateProofKey="string"==typeof u?new Uint8Array(Cl.from(u,"base64")):u,r.attribute_map={selectionParticipationKey:"selection-participation-key",voteFirstValid:"vote-first-valid",voteKeyDilution:"vote-key-dilution",voteLastValid:"vote-last-valid",voteParticipationKey:"vote-participation-key",stateProofKey:"state-proof-key"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["selection-participation-key"])throw new Error("Response is missing required field 'selection-participation-key': ".concat(e));if(void 0===e["vote-first-valid"])throw new Error("Response is missing required field 'vote-first-valid': ".concat(e));if(void 0===e["vote-key-dilution"])throw new Error("Response is missing required field 'vote-key-dilution': ".concat(e));if(void 0===e["vote-last-valid"])throw new Error("Response is missing required field 'vote-last-valid': ".concat(e));if(void 0===e["vote-participation-key"])throw new Error("Response is missing required field 'vote-participation-key': ".concat(e));return new n({selectionParticipationKey:e["selection-participation-key"],voteFirstValid:e["vote-first-valid"],voteKeyDilution:e["vote-key-dilution"],voteLastValid:e["vote-last-valid"],voteParticipationKey:e["vote-participation-key"],stateProofKey:e["state-proof-key"]})}}]),n}(tf),Pl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.account,i=e.currentRound;return(0,ma.Z)(this,n),(r=t.call(this)).account=a,r.currentRound=i,r.attribute_map={account:"account",currentRound:"current-round"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.account)throw new Error("Response is missing required field 'account': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({account:Tl.from_obj_for_encoding(e.account),currentRound:e["current-round"]})}}]),n}(tf),Ml=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.address,i=e.delta;return(0,ma.Z)(this,n),(r=t.call(this)).address=a,r.delta=i,r.attribute_map={address:"address",delta:"delta"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.address)throw new Error("Response is missing required field 'address': ".concat(e));if(!Array.isArray(e.delta))throw new Error("Response is missing required array field 'delta': ".concat(e));return new n({address:e.address,delta:e.delta.map(ib.from_obj_for_encoding)})}}]),n}(tf),Bl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.accounts,i=e.currentRound,o=e.nextToken;return(0,ma.Z)(this,n),(r=t.call(this)).accounts=a,r.currentRound=i,r.nextToken=o,r.attribute_map={accounts:"accounts",currentRound:"current-round",nextToken:"next-token"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.accounts))throw new Error("Response is missing required array field 'accounts': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({accounts:e.accounts.map(Tl.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(tf),Nl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.id,i=e.params,o=e.createdAtRound,s=e.deleted,c=e.deletedAtRound;return(0,ma.Z)(this,n),(r=t.call(this)).id=a,r.params=i,r.createdAtRound=o,r.deleted=s,r.deletedAtRound=c,r.attribute_map={id:"id",params:"params",createdAtRound:"created-at-round",deleted:"deleted",deletedAtRound:"deleted-at-round"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.id)throw new Error("Response is missing required field 'id': ".concat(e));if(void 0===e.params)throw new Error("Response is missing required field 'params': ".concat(e));return new n({id:e.id,params:Ll.from_obj_for_encoding(e.params),createdAtRound:e["created-at-round"],deleted:e.deleted,deletedAtRound:e["deleted-at-round"]})}}]),n}(tf),Rl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.id,i=e.schema,o=e.closedOutAtRound,s=e.deleted,c=e.keyValue,u=e.optedInAtRound;return(0,ma.Z)(this,n),(r=t.call(this)).id=a,r.schema=i,r.closedOutAtRound=o,r.deleted=s,r.keyValue=c,r.optedInAtRound=u,r.attribute_map={id:"id",schema:"schema",closedOutAtRound:"closed-out-at-round",deleted:"deleted",keyValue:"key-value",optedInAtRound:"opted-in-at-round"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.id)throw new Error("Response is missing required field 'id': ".concat(e));if(void 0===e.schema)throw new Error("Response is missing required field 'schema': ".concat(e));return new n({id:e.id,schema:Zl.from_obj_for_encoding(e.schema),closedOutAtRound:e["closed-out-at-round"],deleted:e.deleted,keyValue:void 0!==e["key-value"]?e["key-value"].map(Ab.from_obj_for_encoding):void 0,optedInAtRound:e["opted-in-at-round"]})}}]),n}(tf),Dl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.appsLocalStates,i=e.currentRound,o=e.nextToken;return(0,ma.Z)(this,n),(r=t.call(this)).appsLocalStates=a,r.currentRound=i,r.nextToken=o,r.attribute_map={appsLocalStates:"apps-local-states",currentRound:"current-round",nextToken:"next-token"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e["apps-local-states"]))throw new Error("Response is missing required array field 'apps-local-states': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({appsLocalStates:e["apps-local-states"].map(Rl.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(tf),jl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.logs,i=e.txid;return(0,ma.Z)(this,n),(r=t.call(this)).logs=a,r.txid=i,r.attribute_map={logs:"logs",txid:"txid"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.logs))throw new Error("Response is missing required array field 'logs': ".concat(e));if(void 0===e.txid)throw new Error("Response is missing required field 'txid': ".concat(e));return new n({logs:e.logs,txid:e.txid})}}]),n}(tf),Ul=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.applicationId,i=e.currentRound,o=e.logData,s=e.nextToken;return(0,ma.Z)(this,n),(r=t.call(this)).applicationId=a,r.currentRound=i,r.logData=o,r.nextToken=s,r.attribute_map={applicationId:"application-id",currentRound:"current-round",logData:"log-data",nextToken:"next-token"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["application-id"])throw new Error("Response is missing required field 'application-id': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({applicationId:e["application-id"],currentRound:e["current-round"],logData:void 0!==e["log-data"]?e["log-data"].map(jl.from_obj_for_encoding):void 0,nextToken:e["next-token"]})}}]),n}(tf),Ll=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.approvalProgram,i=e.clearStateProgram,o=e.creator,s=e.extraProgramPages,c=e.globalState,u=e.globalStateSchema,d=e.localStateSchema;return(0,ma.Z)(this,n),(r=t.call(this)).approvalProgram="string"==typeof a?new Uint8Array(Cl.from(a,"base64")):a,r.clearStateProgram="string"==typeof i?new Uint8Array(Cl.from(i,"base64")):i,r.creator=o,r.extraProgramPages=s,r.globalState=c,r.globalStateSchema=u,r.localStateSchema=d,r.attribute_map={approvalProgram:"approval-program",clearStateProgram:"clear-state-program",creator:"creator",extraProgramPages:"extra-program-pages",globalState:"global-state",globalStateSchema:"global-state-schema",localStateSchema:"local-state-schema"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["approval-program"])throw new Error("Response is missing required field 'approval-program': ".concat(e));if(void 0===e["clear-state-program"])throw new Error("Response is missing required field 'clear-state-program': ".concat(e));return new n({approvalProgram:e["approval-program"],clearStateProgram:e["clear-state-program"],creator:e.creator,extraProgramPages:e["extra-program-pages"],globalState:void 0!==e["global-state"]?e["global-state"].map(Ab.from_obj_for_encoding):void 0,globalStateSchema:void 0!==e["global-state-schema"]?Zl.from_obj_for_encoding(e["global-state-schema"]):void 0,localStateSchema:void 0!==e["local-state-schema"]?Zl.from_obj_for_encoding(e["local-state-schema"]):void 0})}}]),n}(tf),Fl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.currentRound,i=e.application;return(0,ma.Z)(this,n),(r=t.call(this)).currentRound=a,r.application=i,r.attribute_map={currentRound:"current-round",application:"application"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({currentRound:e["current-round"],application:void 0!==e.application?Nl.from_obj_for_encoding(e.application):void 0})}}]),n}(tf),Zl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.numByteSlice,i=e.numUint;return(0,ma.Z)(this,n),(r=t.call(this)).numByteSlice=a,r.numUint=i,r.attribute_map={numByteSlice:"num-byte-slice",numUint:"num-uint"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["num-byte-slice"])throw new Error("Response is missing required field 'num-byte-slice': ".concat(e));if(void 0===e["num-uint"])throw new Error("Response is missing required field 'num-uint': ".concat(e));return new n({numByteSlice:e["num-byte-slice"],numUint:e["num-uint"]})}}]),n}(tf),Hl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.applications,i=e.currentRound,o=e.nextToken;return(0,ma.Z)(this,n),(r=t.call(this)).applications=a,r.currentRound=i,r.nextToken=o,r.attribute_map={applications:"applications",currentRound:"current-round",nextToken:"next-token"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.applications))throw new Error("Response is missing required array field 'applications': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({applications:e.applications.map(Nl.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(tf),zl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.index,i=e.params,o=e.createdAtRound,s=e.deleted,c=e.destroyedAtRound;return(0,ma.Z)(this,n),(r=t.call(this)).index=a,r.params=i,r.createdAtRound=o,r.deleted=s,r.destroyedAtRound=c,r.attribute_map={index:"index",params:"params",createdAtRound:"created-at-round",deleted:"deleted",destroyedAtRound:"destroyed-at-round"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.index)throw new Error("Response is missing required field 'index': ".concat(e));if(void 0===e.params)throw new Error("Response is missing required field 'params': ".concat(e));return new n({index:e.index,params:Jl.from_obj_for_encoding(e.params),createdAtRound:e["created-at-round"],deleted:e.deleted,destroyedAtRound:e["destroyed-at-round"]})}}]),n}(tf),Ql=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.balances,i=e.currentRound,o=e.nextToken;return(0,ma.Z)(this,n),(r=t.call(this)).balances=a,r.currentRound=i,r.nextToken=o,r.attribute_map={balances:"balances",currentRound:"current-round",nextToken:"next-token"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.balances))throw new Error("Response is missing required array field 'balances': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({balances:e.balances.map(db.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(tf),ql=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.amount,i=e.assetId,o=e.isFrozen,s=e.deleted,c=e.optedInAtRound,u=e.optedOutAtRound;return(0,ma.Z)(this,n),(r=t.call(this)).amount=a,r.assetId=i,r.isFrozen=o,r.deleted=s,r.optedInAtRound=c,r.optedOutAtRound=u,r.attribute_map={amount:"amount",assetId:"asset-id",isFrozen:"is-frozen",deleted:"deleted",optedInAtRound:"opted-in-at-round",optedOutAtRound:"opted-out-at-round"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if(void 0===e["asset-id"])throw new Error("Response is missing required field 'asset-id': ".concat(e));if(void 0===e["is-frozen"])throw new Error("Response is missing required field 'is-frozen': ".concat(e));return new n({amount:e.amount,assetId:e["asset-id"],isFrozen:e["is-frozen"],deleted:e.deleted,optedInAtRound:e["opted-in-at-round"],optedOutAtRound:e["opted-out-at-round"]})}}]),n}(tf),Vl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.assets,i=e.currentRound,o=e.nextToken;return(0,ma.Z)(this,n),(r=t.call(this)).assets=a,r.currentRound=i,r.nextToken=o,r.attribute_map={assets:"assets",currentRound:"current-round",nextToken:"next-token"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.assets))throw new Error("Response is missing required array field 'assets': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({assets:e.assets.map(ql.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(tf),Jl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.creator,i=e.decimals,o=e.total,s=e.clawback,c=e.defaultFrozen,u=e.freeze,d=e.manager,f=e.metadataHash,l=e.name,b=e.nameB64,p=e.reserve,h=e.unitName,y=e.unitNameB64,m=e.url,v=e.urlB64;return(0,ma.Z)(this,n),(r=t.call(this)).creator=a,r.decimals=i,r.total=o,r.clawback=s,r.defaultFrozen=c,r.freeze=u,r.manager=d,r.metadataHash="string"==typeof f?new Uint8Array(Cl.from(f,"base64")):f,r.name=l,r.nameB64="string"==typeof b?new Uint8Array(Cl.from(b,"base64")):b,r.reserve=p,r.unitName=h,r.unitNameB64="string"==typeof y?new Uint8Array(Cl.from(y,"base64")):y,r.url=m,r.urlB64="string"==typeof v?new Uint8Array(Cl.from(v,"base64")):v,r.attribute_map={creator:"creator",decimals:"decimals",total:"total",clawback:"clawback",defaultFrozen:"default-frozen",freeze:"freeze",manager:"manager",metadataHash:"metadata-hash",name:"name",nameB64:"name-b64",reserve:"reserve",unitName:"unit-name",unitNameB64:"unit-name-b64",url:"url",urlB64:"url-b64"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.creator)throw new Error("Response is missing required field 'creator': ".concat(e));if(void 0===e.decimals)throw new Error("Response is missing required field 'decimals': ".concat(e));if(void 0===e.total)throw new Error("Response is missing required field 'total': ".concat(e));return new n({creator:e.creator,decimals:e.decimals,total:e.total,clawback:e.clawback,defaultFrozen:e["default-frozen"],freeze:e.freeze,manager:e.manager,metadataHash:e["metadata-hash"],name:e.name,nameB64:e["name-b64"],reserve:e.reserve,unitName:e["unit-name"],unitNameB64:e["unit-name-b64"],url:e.url,urlB64:e["url-b64"]})}}]),n}(tf),Kl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.asset,i=e.currentRound;return(0,ma.Z)(this,n),(r=t.call(this)).asset=a,r.currentRound=i,r.attribute_map={asset:"asset",currentRound:"current-round"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.asset)throw new Error("Response is missing required field 'asset': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({asset:zl.from_obj_for_encoding(e.asset),currentRound:e["current-round"]})}}]),n}(tf),Gl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.assets,i=e.currentRound,o=e.nextToken;return(0,ma.Z)(this,n),(r=t.call(this)).assets=a,r.currentRound=i,r.nextToken=o,r.attribute_map={assets:"assets",currentRound:"current-round",nextToken:"next-token"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(!Array.isArray(e.assets))throw new Error("Response is missing required array field 'assets': ".concat(e));if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));return new n({assets:e.assets.map(zl.from_obj_for_encoding),currentRound:e["current-round"],nextToken:e["next-token"]})}}]),n}(tf),Wl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.genesisHash,i=e.genesisId,o=e.previousBlockHash,s=e.round,c=e.seed,u=e.timestamp,d=e.transactionsRoot,f=e.transactionsRootSha256,l=e.participationUpdates,b=e.rewards,p=e.stateProofTracking,h=e.transactions,y=e.txnCounter,m=e.upgradeState,v=e.upgradeVote;return(0,ma.Z)(this,n),(r=t.call(this)).genesisHash="string"==typeof a?new Uint8Array(Cl.from(a,"base64")):a,r.genesisId=i,r.previousBlockHash="string"==typeof o?new Uint8Array(Cl.from(o,"base64")):o,r.round=s,r.seed="string"==typeof c?new Uint8Array(Cl.from(c,"base64")):c,r.timestamp=u,r.transactionsRoot="string"==typeof d?new Uint8Array(Cl.from(d,"base64")):d,r.transactionsRootSha256="string"==typeof f?new Uint8Array(Cl.from(f,"base64")):f,r.participationUpdates=l,r.rewards=b,r.stateProofTracking=p,r.transactions=h,r.txnCounter=y,r.upgradeState=m,r.upgradeVote=v,r.attribute_map={genesisHash:"genesis-hash",genesisId:"genesis-id",previousBlockHash:"previous-block-hash",round:"round",seed:"seed",timestamp:"timestamp",transactionsRoot:"transactions-root",transactionsRootSha256:"transactions-root-sha256",participationUpdates:"participation-updates",rewards:"rewards",stateProofTracking:"state-proof-tracking",transactions:"transactions",txnCounter:"txn-counter",upgradeState:"upgrade-state",upgradeVote:"upgrade-vote"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["genesis-hash"])throw new Error("Response is missing required field 'genesis-hash': ".concat(e));if(void 0===e["genesis-id"])throw new Error("Response is missing required field 'genesis-id': ".concat(e));if(void 0===e["previous-block-hash"])throw new Error("Response is missing required field 'previous-block-hash': ".concat(e));if(void 0===e.round)throw new Error("Response is missing required field 'round': ".concat(e));if(void 0===e.seed)throw new Error("Response is missing required field 'seed': ".concat(e));if(void 0===e.timestamp)throw new Error("Response is missing required field 'timestamp': ".concat(e));if(void 0===e["transactions-root"])throw new Error("Response is missing required field 'transactions-root': ".concat(e));if(void 0===e["transactions-root-sha256"])throw new Error("Response is missing required field 'transactions-root-sha256': ".concat(e));return new n({genesisHash:e["genesis-hash"],genesisId:e["genesis-id"],previousBlockHash:e["previous-block-hash"],round:e.round,seed:e.seed,timestamp:e.timestamp,transactionsRoot:e["transactions-root"],transactionsRootSha256:e["transactions-root-sha256"],participationUpdates:void 0!==e["participation-updates"]?fb.from_obj_for_encoding(e["participation-updates"]):void 0,rewards:void 0!==e.rewards?Yl.from_obj_for_encoding(e.rewards):void 0,stateProofTracking:void 0!==e["state-proof-tracking"]?e["state-proof-tracking"].map(mb.from_obj_for_encoding):void 0,transactions:void 0!==e.transactions?e.transactions.map(xb.from_obj_for_encoding):void 0,txnCounter:e["txn-counter"],upgradeState:void 0!==e["upgrade-state"]?Xl.from_obj_for_encoding(e["upgrade-state"]):void 0,upgradeVote:void 0!==e["upgrade-vote"]?$l.from_obj_for_encoding(e["upgrade-vote"]):void 0})}}]),n}(tf),Yl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.feeSink,i=e.rewardsCalculationRound,o=e.rewardsLevel,s=e.rewardsPool,c=e.rewardsRate,u=e.rewardsResidue;return(0,ma.Z)(this,n),(r=t.call(this)).feeSink=a,r.rewardsCalculationRound=i,r.rewardsLevel=o,r.rewardsPool=s,r.rewardsRate=c,r.rewardsResidue=u,r.attribute_map={feeSink:"fee-sink",rewardsCalculationRound:"rewards-calculation-round",rewardsLevel:"rewards-level",rewardsPool:"rewards-pool",rewardsRate:"rewards-rate",rewardsResidue:"rewards-residue"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["fee-sink"])throw new Error("Response is missing required field 'fee-sink': ".concat(e));if(void 0===e["rewards-calculation-round"])throw new Error("Response is missing required field 'rewards-calculation-round': ".concat(e));if(void 0===e["rewards-level"])throw new Error("Response is missing required field 'rewards-level': ".concat(e));if(void 0===e["rewards-pool"])throw new Error("Response is missing required field 'rewards-pool': ".concat(e));if(void 0===e["rewards-rate"])throw new Error("Response is missing required field 'rewards-rate': ".concat(e));if(void 0===e["rewards-residue"])throw new Error("Response is missing required field 'rewards-residue': ".concat(e));return new n({feeSink:e["fee-sink"],rewardsCalculationRound:e["rewards-calculation-round"],rewardsLevel:e["rewards-level"],rewardsPool:e["rewards-pool"],rewardsRate:e["rewards-rate"],rewardsResidue:e["rewards-residue"]})}}]),n}(tf),Xl=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.currentProtocol,i=e.nextProtocol,o=e.nextProtocolApprovals,s=e.nextProtocolSwitchOn,c=e.nextProtocolVoteBefore;return(0,ma.Z)(this,n),(r=t.call(this)).currentProtocol=a,r.nextProtocol=i,r.nextProtocolApprovals=o,r.nextProtocolSwitchOn=s,r.nextProtocolVoteBefore=c,r.attribute_map={currentProtocol:"current-protocol",nextProtocol:"next-protocol",nextProtocolApprovals:"next-protocol-approvals",nextProtocolSwitchOn:"next-protocol-switch-on",nextProtocolVoteBefore:"next-protocol-vote-before"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["current-protocol"])throw new Error("Response is missing required field 'current-protocol': ".concat(e));return new n({currentProtocol:e["current-protocol"],nextProtocol:e["next-protocol"],nextProtocolApprovals:e["next-protocol-approvals"],nextProtocolSwitchOn:e["next-protocol-switch-on"],nextProtocolVoteBefore:e["next-protocol-vote-before"]})}}]),n}(tf),$l=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.upgradeApprove,i=e.upgradeDelay,o=e.upgradePropose;return(0,ma.Z)(this,n),(r=t.call(this)).upgradeApprove=a,r.upgradeDelay=i,r.upgradePropose=o,r.attribute_map={upgradeApprove:"upgrade-approve",upgradeDelay:"upgrade-delay",upgradePropose:"upgrade-propose"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({upgradeApprove:e["upgrade-approve"],upgradeDelay:e["upgrade-delay"],upgradePropose:e["upgrade-propose"]})}}]),n}(tf),eb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.name,i=e.value;return(0,ma.Z)(this,n),(r=t.call(this)).name="string"==typeof a?new Uint8Array(Cl.from(a,"base64")):a,r.value="string"==typeof i?new Uint8Array(Cl.from(i,"base64")):i,r.attribute_map={name:"name",value:"value"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.name)throw new Error("Response is missing required field 'name': ".concat(e));if(void 0===e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new n({name:e.name,value:e.value})}}]),n}(tf),tb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.name;return(0,ma.Z)(this,n),(r=t.call(this)).name="string"==typeof a?new Uint8Array(Cl.from(a,"base64")):a,r.attribute_map={name:"name"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.name)throw new Error("Response is missing required field 'name': ".concat(e));return new n({name:e.name})}}]),n}(tf),nb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.applicationId,i=e.boxes,o=e.nextToken;return(0,ma.Z)(this,n),(r=t.call(this)).applicationId=a,r.boxes=i,r.nextToken=o,r.attribute_map={applicationId:"application-id",boxes:"boxes",nextToken:"next-token"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["application-id"])throw new Error("Response is missing required field 'application-id': ".concat(e));if(!Array.isArray(e.boxes))throw new Error("Response is missing required array field 'boxes': ".concat(e));return new n({applicationId:e["application-id"],boxes:e.boxes.map(tb.from_obj_for_encoding),nextToken:e["next-token"]})}}]),n}(tf),rb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.message,i=e.data;return(0,ma.Z)(this,n),(r=t.call(this)).message=a,r.data=i,r.attribute_map={message:"message",data:"data"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.message)throw new Error("Response is missing required field 'message': ".concat(e));return new n({message:e.message,data:e.data})}}]),n}(tf),ab=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.action,i=e.bytes,o=e.uint;return(0,ma.Z)(this,n),(r=t.call(this)).action=a,r.bytes=i,r.uint=o,r.attribute_map={action:"action",bytes:"bytes",uint:"uint"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.action)throw new Error("Response is missing required field 'action': ".concat(e));return new n({action:e.action,bytes:e.bytes,uint:e.uint})}}]),n}(tf),ib=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.key,i=e.value;return(0,ma.Z)(this,n),(r=t.call(this)).key=a,r.value=i,r.attribute_map={key:"key",value:"value"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.key)throw new Error("Response is missing required field 'key': ".concat(e));if(void 0===e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new n({key:e.key,value:ab.from_obj_for_encoding(e.value)})}}]),n}(tf),ob=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.hashType;return(0,ma.Z)(this,n),(r=t.call(this)).hashType=a,r.attribute_map={hashType:"hash-type"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({hashType:e["hash-type"]})}}]),n}(tf),sb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.dbAvailable,i=e.isMigrating,o=e.message,s=e.round,c=e.version,u=e.data,d=e.errors;return(0,ma.Z)(this,n),(r=t.call(this)).dbAvailable=a,r.isMigrating=i,r.message=o,r.round=s,r.version=c,r.data=u,r.errors=d,r.attribute_map={dbAvailable:"db-available",isMigrating:"is-migrating",message:"message",round:"round",version:"version",data:"data",errors:"errors"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["db-available"])throw new Error("Response is missing required field 'db-available': ".concat(e));if(void 0===e["is-migrating"])throw new Error("Response is missing required field 'is-migrating': ".concat(e));if(void 0===e.message)throw new Error("Response is missing required field 'message': ".concat(e));if(void 0===e.round)throw new Error("Response is missing required field 'round': ".concat(e));if(void 0===e.version)throw new Error("Response is missing required field 'version': ".concat(e));return new n({dbAvailable:e["db-available"],isMigrating:e["is-migrating"],message:e.message,round:e.round,version:e.version,data:e.data,errors:e.errors})}}]),n}(tf),cb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.blockHeadersCommitment,i=e.firstAttestedRound,o=e.latestAttestedRound,s=e.lnProvenWeight,c=e.votersCommitment;return(0,ma.Z)(this,n),(r=t.call(this)).blockHeadersCommitment="string"==typeof a?new Uint8Array(Cl.from(a,"base64")):a,r.firstAttestedRound=i,r.latestAttestedRound=o,r.lnProvenWeight=s,r.votersCommitment="string"==typeof c?new Uint8Array(Cl.from(c,"base64")):c,r.attribute_map={blockHeadersCommitment:"block-headers-commitment",firstAttestedRound:"first-attested-round",latestAttestedRound:"latest-attested-round",lnProvenWeight:"ln-proven-weight",votersCommitment:"voters-commitment"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({blockHeadersCommitment:e["block-headers-commitment"],firstAttestedRound:e["first-attested-round"],latestAttestedRound:e["latest-attested-round"],lnProvenWeight:e["ln-proven-weight"],votersCommitment:e["voters-commitment"]})}}]),n}(tf),ub=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.hashFactory,i=e.path,o=e.treeDepth;return(0,ma.Z)(this,n),(r=t.call(this)).hashFactory=a,r.path=i,r.treeDepth=o,r.attribute_map={hashFactory:"hash-factory",path:"path",treeDepth:"tree-depth"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({hashFactory:void 0!==e["hash-factory"]?ob.from_obj_for_encoding(e["hash-factory"]):void 0,path:e.path,treeDepth:e["tree-depth"]})}}]),n}(tf),db=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.address,i=e.amount,o=e.isFrozen,s=e.deleted,c=e.optedInAtRound,u=e.optedOutAtRound;return(0,ma.Z)(this,n),(r=t.call(this)).address=a,r.amount=i,r.isFrozen=o,r.deleted=s,r.optedInAtRound=c,r.optedOutAtRound=u,r.attribute_map={address:"address",amount:"amount",isFrozen:"is-frozen",deleted:"deleted",optedInAtRound:"opted-in-at-round",optedOutAtRound:"opted-out-at-round"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.address)throw new Error("Response is missing required field 'address': ".concat(e));if(void 0===e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if(void 0===e["is-frozen"])throw new Error("Response is missing required field 'is-frozen': ".concat(e));return new n({address:e.address,amount:e.amount,isFrozen:e["is-frozen"],deleted:e.deleted,optedInAtRound:e["opted-in-at-round"],optedOutAtRound:e["opted-out-at-round"]})}}]),n}(tf),fb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.expiredParticipationAccounts;return(0,ma.Z)(this,n),(r=t.call(this)).expiredParticipationAccounts=a,r.attribute_map={expiredParticipationAccounts:"expired-participation-accounts"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({expiredParticipationAccounts:e["expired-participation-accounts"]})}}]),n}(tf),lb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.partProofs,i=e.positionsToReveal,o=e.reveals,s=e.saltVersion,c=e.sigCommit,u=e.sigProofs,d=e.signedWeight;return(0,ma.Z)(this,n),(r=t.call(this)).partProofs=a,r.positionsToReveal=i,r.reveals=o,r.saltVersion=s,r.sigCommit="string"==typeof c?new Uint8Array(Cl.from(c,"base64")):c,r.sigProofs=u,r.signedWeight=d,r.attribute_map={partProofs:"part-proofs",positionsToReveal:"positions-to-reveal",reveals:"reveals",saltVersion:"salt-version",sigCommit:"sig-commit",sigProofs:"sig-proofs",signedWeight:"signed-weight"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({partProofs:void 0!==e["part-proofs"]?ub.from_obj_for_encoding(e["part-proofs"]):void 0,positionsToReveal:e["positions-to-reveal"],reveals:void 0!==e.reveals?e.reveals.map(pb.from_obj_for_encoding):void 0,saltVersion:e["salt-version"],sigCommit:e["sig-commit"],sigProofs:void 0!==e["sig-proofs"]?ub.from_obj_for_encoding(e["sig-proofs"]):void 0,signedWeight:e["signed-weight"]})}}]),n}(tf),bb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.verifier,i=e.weight;return(0,ma.Z)(this,n),(r=t.call(this)).verifier=a,r.weight=i,r.attribute_map={verifier:"verifier",weight:"weight"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({verifier:void 0!==e.verifier?vb.from_obj_for_encoding(e.verifier):void 0,weight:e.weight})}}]),n}(tf),pb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.participant,i=e.position,o=e.sigSlot;return(0,ma.Z)(this,n),(r=t.call(this)).participant=a,r.position=i,r.sigSlot=o,r.attribute_map={participant:"participant",position:"position",sigSlot:"sig-slot"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({participant:void 0!==e.participant?bb.from_obj_for_encoding(e.participant):void 0,position:e.position,sigSlot:void 0!==e["sig-slot"]?hb.from_obj_for_encoding(e["sig-slot"]):void 0})}}]),n}(tf),hb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.lowerSigWeight,i=e.signature;return(0,ma.Z)(this,n),(r=t.call(this)).lowerSigWeight=a,r.signature=i,r.attribute_map={lowerSigWeight:"lower-sig-weight",signature:"signature"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({lowerSigWeight:e["lower-sig-weight"],signature:void 0!==e.signature?yb.from_obj_for_encoding(e.signature):void 0})}}]),n}(tf),yb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.falconSignature,i=e.merkleArrayIndex,o=e.proof,s=e.verifyingKey;return(0,ma.Z)(this,n),(r=t.call(this)).falconSignature="string"==typeof a?new Uint8Array(Cl.from(a,"base64")):a,r.merkleArrayIndex=i,r.proof=o,r.verifyingKey="string"==typeof s?new Uint8Array(Cl.from(s,"base64")):s,r.attribute_map={falconSignature:"falcon-signature",merkleArrayIndex:"merkle-array-index",proof:"proof",verifyingKey:"verifying-key"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({falconSignature:e["falcon-signature"],merkleArrayIndex:e["merkle-array-index"],proof:void 0!==e.proof?ub.from_obj_for_encoding(e.proof):void 0,verifyingKey:e["verifying-key"]})}}]),n}(tf),mb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.nextRound,i=e.onlineTotalWeight,o=e.type,s=e.votersCommitment;return(0,ma.Z)(this,n),(r=t.call(this)).nextRound=a,r.onlineTotalWeight=i,r.type=o,r.votersCommitment="string"==typeof s?new Uint8Array(Cl.from(s,"base64")):s,r.attribute_map={nextRound:"next-round",onlineTotalWeight:"online-total-weight",type:"type",votersCommitment:"voters-commitment"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({nextRound:e["next-round"],onlineTotalWeight:e["online-total-weight"],type:e.type,votersCommitment:e["voters-commitment"]})}}]),n}(tf),vb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.commitment,i=e.keyLifetime;return(0,ma.Z)(this,n),(r=t.call(this)).commitment="string"==typeof a?new Uint8Array(Cl.from(a,"base64")):a,r.keyLifetime=i,r.attribute_map={commitment:"commitment",keyLifetime:"key-lifetime"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({commitment:e.commitment,keyLifetime:e["key-lifetime"]})}}]),n}(tf),gb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.numByteSlice,i=e.numUint;return(0,ma.Z)(this,n),(r=t.call(this)).numByteSlice=a,r.numUint=i,r.attribute_map={numByteSlice:"num-byte-slice",numUint:"num-uint"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["num-byte-slice"])throw new Error("Response is missing required field 'num-byte-slice': ".concat(e));if(void 0===e["num-uint"])throw new Error("Response is missing required field 'num-uint': ".concat(e));return new n({numByteSlice:e["num-byte-slice"],numUint:e["num-uint"]})}}]),n}(tf),Ab=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.key,i=e.value;return(0,ma.Z)(this,n),(r=t.call(this)).key=a,r.value=i,r.attribute_map={key:"key",value:"value"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.key)throw new Error("Response is missing required field 'key': ".concat(e));if(void 0===e.value)throw new Error("Response is missing required field 'value': ".concat(e));return new n({key:e.key,value:wb.from_obj_for_encoding(e.value)})}}]),n}(tf),wb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.bytes,i=e.type,o=e.uint;return(0,ma.Z)(this,n),(r=t.call(this)).bytes=a,r.type=i,r.uint=o,r.attribute_map={bytes:"bytes",type:"type",uint:"uint"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.bytes)throw new Error("Response is missing required field 'bytes': ".concat(e));if(void 0===e.type)throw new Error("Response is missing required field 'type': ".concat(e));if(void 0===e.uint)throw new Error("Response is missing required field 'uint': ".concat(e));return new n({bytes:e.bytes,type:e.type,uint:e.uint})}}]),n}(tf),xb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.fee,i=e.firstValid,o=e.lastValid,s=e.sender,c=e.applicationTransaction,u=e.assetConfigTransaction,d=e.assetFreezeTransaction,f=e.assetTransferTransaction,l=e.authAddr,b=e.closeRewards,p=e.closingAmount,h=e.confirmedRound,y=e.createdApplicationIndex,m=e.createdAssetIndex,v=e.genesisHash,g=e.genesisId,A=e.globalStateDelta,w=e.group,x=e.id,_=e.innerTxns,k=e.intraRoundOffset,I=e.keyregTransaction,S=e.lease,E=e.localStateDelta,C=e.logs,T=e.note,O=e.paymentTransaction,P=e.receiverRewards,M=e.rekeyTo,B=e.roundTime,N=e.senderRewards,R=e.signature,D=e.stateProofTransaction,j=e.txType;return(0,ma.Z)(this,n),(r=t.call(this)).fee=a,r.firstValid=i,r.lastValid=o,r.sender=s,r.applicationTransaction=c,r.assetConfigTransaction=u,r.assetFreezeTransaction=d,r.assetTransferTransaction=f,r.authAddr=l,r.closeRewards=b,r.closingAmount=p,r.confirmedRound=h,r.createdApplicationIndex=y,r.createdAssetIndex=m,r.genesisHash="string"==typeof v?new Uint8Array(Cl.from(v,"base64")):v,r.genesisId=g,r.globalStateDelta=A,r.group="string"==typeof w?new Uint8Array(Cl.from(w,"base64")):w,r.id=x,r.innerTxns=_,r.intraRoundOffset=k,r.keyregTransaction=I,r.lease="string"==typeof S?new Uint8Array(Cl.from(S,"base64")):S,r.localStateDelta=E,r.logs=C,r.note="string"==typeof T?new Uint8Array(Cl.from(T,"base64")):T,r.paymentTransaction=O,r.receiverRewards=P,r.rekeyTo=M,r.roundTime=B,r.senderRewards=N,r.signature=R,r.stateProofTransaction=D,r.txType=j,r.attribute_map={fee:"fee",firstValid:"first-valid",lastValid:"last-valid",sender:"sender",applicationTransaction:"application-transaction",assetConfigTransaction:"asset-config-transaction",assetFreezeTransaction:"asset-freeze-transaction",assetTransferTransaction:"asset-transfer-transaction",authAddr:"auth-addr",closeRewards:"close-rewards",closingAmount:"closing-amount",confirmedRound:"confirmed-round",createdApplicationIndex:"created-application-index",createdAssetIndex:"created-asset-index",genesisHash:"genesis-hash",genesisId:"genesis-id",globalStateDelta:"global-state-delta",group:"group",id:"id",innerTxns:"inner-txns",intraRoundOffset:"intra-round-offset",keyregTransaction:"keyreg-transaction",lease:"lease",localStateDelta:"local-state-delta",logs:"logs",note:"note",paymentTransaction:"payment-transaction",receiverRewards:"receiver-rewards",rekeyTo:"rekey-to",roundTime:"round-time",senderRewards:"sender-rewards",signature:"signature",stateProofTransaction:"state-proof-transaction",txType:"tx-type"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.fee)throw new Error("Response is missing required field 'fee': ".concat(e));if(void 0===e["first-valid"])throw new Error("Response is missing required field 'first-valid': ".concat(e));if(void 0===e["last-valid"])throw new Error("Response is missing required field 'last-valid': ".concat(e));if(void 0===e.sender)throw new Error("Response is missing required field 'sender': ".concat(e));return new n({fee:e.fee,firstValid:e["first-valid"],lastValid:e["last-valid"],sender:e.sender,applicationTransaction:void 0!==e["application-transaction"]?_b.from_obj_for_encoding(e["application-transaction"]):void 0,assetConfigTransaction:void 0!==e["asset-config-transaction"]?kb.from_obj_for_encoding(e["asset-config-transaction"]):void 0,assetFreezeTransaction:void 0!==e["asset-freeze-transaction"]?Ib.from_obj_for_encoding(e["asset-freeze-transaction"]):void 0,assetTransferTransaction:void 0!==e["asset-transfer-transaction"]?Sb.from_obj_for_encoding(e["asset-transfer-transaction"]):void 0,authAddr:e["auth-addr"],closeRewards:e["close-rewards"],closingAmount:e["closing-amount"],confirmedRound:e["confirmed-round"],createdApplicationIndex:e["created-application-index"],createdAssetIndex:e["created-asset-index"],genesisHash:e["genesis-hash"],genesisId:e["genesis-id"],globalStateDelta:void 0!==e["global-state-delta"]?e["global-state-delta"].map(ib.from_obj_for_encoding):void 0,group:e.group,id:e.id,innerTxns:void 0!==e["inner-txns"]?e["inner-txns"].map(n.from_obj_for_encoding):void 0,intraRoundOffset:e["intra-round-offset"],keyregTransaction:void 0!==e["keyreg-transaction"]?Eb.from_obj_for_encoding(e["keyreg-transaction"]):void 0,lease:e.lease,localStateDelta:void 0!==e["local-state-delta"]?e["local-state-delta"].map(Ml.from_obj_for_encoding):void 0,logs:e.logs,note:e.note,paymentTransaction:void 0!==e["payment-transaction"]?Cb.from_obj_for_encoding(e["payment-transaction"]):void 0,receiverRewards:e["receiver-rewards"],rekeyTo:e["rekey-to"],roundTime:e["round-time"],senderRewards:e["sender-rewards"],signature:void 0!==e.signature?Ob.from_obj_for_encoding(e.signature):void 0,stateProofTransaction:void 0!==e["state-proof-transaction"]?Nb.from_obj_for_encoding(e["state-proof-transaction"]):void 0,txType:e["tx-type"]})}}]),n}(tf),_b=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.applicationId,i=e.accounts,o=e.applicationArgs,s=e.approvalProgram,c=e.clearStateProgram,u=e.extraProgramPages,d=e.foreignApps,f=e.foreignAssets,l=e.globalStateSchema,b=e.localStateSchema,p=e.onCompletion;return(0,ma.Z)(this,n),(r=t.call(this)).applicationId=a,r.accounts=i,r.applicationArgs=o,r.approvalProgram="string"==typeof s?new Uint8Array(Cl.from(s,"base64")):s,r.clearStateProgram="string"==typeof c?new Uint8Array(Cl.from(c,"base64")):c,r.extraProgramPages=u,r.foreignApps=d,r.foreignAssets=f,r.globalStateSchema=l,r.localStateSchema=b,r.onCompletion=p,r.attribute_map={applicationId:"application-id",accounts:"accounts",applicationArgs:"application-args",approvalProgram:"approval-program",clearStateProgram:"clear-state-program",extraProgramPages:"extra-program-pages",foreignApps:"foreign-apps",foreignAssets:"foreign-assets",globalStateSchema:"global-state-schema",localStateSchema:"local-state-schema",onCompletion:"on-completion"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["application-id"])throw new Error("Response is missing required field 'application-id': ".concat(e));return new n({applicationId:e["application-id"],accounts:e.accounts,applicationArgs:e["application-args"],approvalProgram:e["approval-program"],clearStateProgram:e["clear-state-program"],extraProgramPages:e["extra-program-pages"],foreignApps:e["foreign-apps"],foreignAssets:e["foreign-assets"],globalStateSchema:void 0!==e["global-state-schema"]?gb.from_obj_for_encoding(e["global-state-schema"]):void 0,localStateSchema:void 0!==e["local-state-schema"]?gb.from_obj_for_encoding(e["local-state-schema"]):void 0,onCompletion:e["on-completion"]})}}]),n}(tf),kb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.assetId,i=e.params;return(0,ma.Z)(this,n),(r=t.call(this)).assetId=a,r.params=i,r.attribute_map={assetId:"asset-id",params:"params"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({assetId:e["asset-id"],params:void 0!==e.params?Jl.from_obj_for_encoding(e.params):void 0})}}]),n}(tf),Ib=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.address,i=e.assetId,o=e.newFreezeStatus;return(0,ma.Z)(this,n),(r=t.call(this)).address=a,r.assetId=i,r.newFreezeStatus=o,r.attribute_map={address:"address",assetId:"asset-id",newFreezeStatus:"new-freeze-status"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.address)throw new Error("Response is missing required field 'address': ".concat(e));if(void 0===e["asset-id"])throw new Error("Response is missing required field 'asset-id': ".concat(e));if(void 0===e["new-freeze-status"])throw new Error("Response is missing required field 'new-freeze-status': ".concat(e));return new n({address:e.address,assetId:e["asset-id"],newFreezeStatus:e["new-freeze-status"]})}}]),n}(tf),Sb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.amount,i=e.assetId,o=e.receiver,s=e.closeAmount,c=e.closeTo,u=e.sender;return(0,ma.Z)(this,n),(r=t.call(this)).amount=a,r.assetId=i,r.receiver=o,r.closeAmount=s,r.closeTo=c,r.sender=u,r.attribute_map={amount:"amount",assetId:"asset-id",receiver:"receiver",closeAmount:"close-amount",closeTo:"close-to",sender:"sender"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if(void 0===e["asset-id"])throw new Error("Response is missing required field 'asset-id': ".concat(e));if(void 0===e.receiver)throw new Error("Response is missing required field 'receiver': ".concat(e));return new n({amount:e.amount,assetId:e["asset-id"],receiver:e.receiver,closeAmount:e["close-amount"],closeTo:e["close-to"],sender:e.sender})}}]),n}(tf),Eb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.nonParticipation,i=e.selectionParticipationKey,o=e.stateProofKey,s=e.voteFirstValid,c=e.voteKeyDilution,u=e.voteLastValid,d=e.voteParticipationKey;return(0,ma.Z)(this,n),(r=t.call(this)).nonParticipation=a,r.selectionParticipationKey="string"==typeof i?new Uint8Array(Cl.from(i,"base64")):i,r.stateProofKey="string"==typeof o?new Uint8Array(Cl.from(o,"base64")):o,r.voteFirstValid=s,r.voteKeyDilution=c,r.voteLastValid=u,r.voteParticipationKey="string"==typeof d?new Uint8Array(Cl.from(d,"base64")):d,r.attribute_map={nonParticipation:"non-participation",selectionParticipationKey:"selection-participation-key",stateProofKey:"state-proof-key",voteFirstValid:"vote-first-valid",voteKeyDilution:"vote-key-dilution",voteLastValid:"vote-last-valid",voteParticipationKey:"vote-participation-key"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({nonParticipation:e["non-participation"],selectionParticipationKey:e["selection-participation-key"],stateProofKey:e["state-proof-key"],voteFirstValid:e["vote-first-valid"],voteKeyDilution:e["vote-key-dilution"],voteLastValid:e["vote-last-valid"],voteParticipationKey:e["vote-participation-key"]})}}]),n}(tf),Cb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.amount,i=e.receiver,o=e.closeAmount,s=e.closeRemainderTo;return(0,ma.Z)(this,n),(r=t.call(this)).amount=a,r.receiver=i,r.closeAmount=o,r.closeRemainderTo=s,r.attribute_map={amount:"amount",receiver:"receiver",closeAmount:"close-amount",closeRemainderTo:"close-remainder-to"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.amount)throw new Error("Response is missing required field 'amount': ".concat(e));if(void 0===e.receiver)throw new Error("Response is missing required field 'receiver': ".concat(e));return new n({amount:e.amount,receiver:e.receiver,closeAmount:e["close-amount"],closeRemainderTo:e["close-remainder-to"]})}}]),n}(tf),Tb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.currentRound,i=e.transaction;return(0,ma.Z)(this,n),(r=t.call(this)).currentRound=a,r.transaction=i,r.attribute_map={currentRound:"current-round",transaction:"transaction"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));if(void 0===e.transaction)throw new Error("Response is missing required field 'transaction': ".concat(e));return new n({currentRound:e["current-round"],transaction:xb.from_obj_for_encoding(e.transaction)})}}]),n}(tf),Ob=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.logicsig,i=e.multisig,o=e.sig;return(0,ma.Z)(this,n),(r=t.call(this)).logicsig=a,r.multisig=i,r.sig="string"==typeof o?new Uint8Array(Cl.from(o,"base64")):o,r.attribute_map={logicsig:"logicsig",multisig:"multisig",sig:"sig"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({logicsig:void 0!==e.logicsig?Pb.from_obj_for_encoding(e.logicsig):void 0,multisig:void 0!==e.multisig?Mb.from_obj_for_encoding(e.multisig):void 0,sig:e.sig})}}]),n}(tf),Pb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.logic,i=e.args,o=e.multisigSignature,s=e.signature;return(0,ma.Z)(this,n),(r=t.call(this)).logic="string"==typeof a?new Uint8Array(Cl.from(a,"base64")):a,r.args=i,r.multisigSignature=o,r.signature="string"==typeof s?new Uint8Array(Cl.from(s,"base64")):s,r.attribute_map={logic:"logic",args:"args",multisigSignature:"multisig-signature",signature:"signature"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e.logic)throw new Error("Response is missing required field 'logic': ".concat(e));return new n({logic:e.logic,args:e.args,multisigSignature:void 0!==e["multisig-signature"]?Mb.from_obj_for_encoding(e["multisig-signature"]):void 0,signature:e.signature})}}]),n}(tf),Mb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.subsignature,i=e.threshold,o=e.version;return(0,ma.Z)(this,n),(r=t.call(this)).subsignature=a,r.threshold=i,r.version=o,r.attribute_map={subsignature:"subsignature",threshold:"threshold",version:"version"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({subsignature:void 0!==e.subsignature?e.subsignature.map(Bb.from_obj_for_encoding):void 0,threshold:e.threshold,version:e.version})}}]),n}(tf),Bb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.publicKey,i=e.signature;return(0,ma.Z)(this,n),(r=t.call(this)).publicKey="string"==typeof a?new Uint8Array(Cl.from(a,"base64")):a,r.signature="string"==typeof i?new Uint8Array(Cl.from(i,"base64")):i,r.attribute_map={publicKey:"public-key",signature:"signature"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({publicKey:e["public-key"],signature:e.signature})}}]),n}(tf),Nb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.message,i=e.stateProof,o=e.stateProofType;return(0,ma.Z)(this,n),(r=t.call(this)).message=a,r.stateProof=i,r.stateProofType=o,r.attribute_map={message:"message",stateProof:"state-proof",stateProofType:"state-proof-type"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){return new n({message:void 0!==e.message?cb.from_obj_for_encoding(e.message):void 0,stateProof:void 0!==e["state-proof"]?lb.from_obj_for_encoding(e["state-proof"]):void 0,stateProofType:e["state-proof-type"]})}}]),n}(tf),Rb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r,a=e.currentRound,i=e.transactions,o=e.nextToken;return(0,ma.Z)(this,n),(r=t.call(this)).currentRound=a,r.transactions=i,r.nextToken=o,r.attribute_map={currentRound:"current-round",transactions:"transactions",nextToken:"next-token"},r}return(0,va.Z)(n,null,[{key:"from_obj_for_encoding",value:function(e){if(void 0===e["current-round"])throw new Error("Response is missing required field 'current-round': ".concat(e));if(!Array.isArray(e.transactions))throw new Error("Response is missing required array field 'transactions': ".concat(e));return new n({currentRound:e["current-round"],transactions:e.transactions.map(xb.from_obj_for_encoding),nextToken:e["next-token"]})}}]),n}(tf),Db=n(5886).Buffer,jb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a,i){var o;(0,ma.Z)(this,n),(o=t.call(this,e,r)).index=a,o.index=a;var s=Db.from(i).toString("base64");return o.query.name=encodeURI("b64:".concat(s)),o}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.index,"/box")}},{key:"prepare",value:function(e){return eb.from_obj_for_encoding(e)}}]),n}(Ld.Z),Ub=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ma.Z)(this,n),t.apply(this,arguments)}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/accounts"}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"authAddr",value:function(e){return this.query["auth-addr"]=e,this}},{key:"applicationID",value:function(e){return this.query["application-id"]=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}},{key:"exclude",value:function(e){return this.query.exclude=e,this}}]),n}(Ld.Z),Lb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ma.Z)(this,n),t.apply(this,arguments)}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/transactions"}},{key:"notePrefix",value:function(e){return this.query["note-prefix"]=hl(e),this}},{key:"txType",value:function(e){return this.query["tx-type"]=e,this}},{key:"sigType",value:function(e){return this.query["sig-type"]=e,this}},{key:"txid",value:function(e){return this.query.txid=e,this}},{key:"round",value:function(e){return this.query.round=e,this}},{key:"minRound",value:function(e){return this.query["min-round"]=e,this}},{key:"maxRound",value:function(e){return this.query["max-round"]=e,this}},{key:"assetID",value:function(e){return this.query["asset-id"]=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"beforeTime",value:function(e){return this.query["before-time"]=e,this}},{key:"afterTime",value:function(e){return this.query["after-time"]=e,this}},{key:"currencyGreaterThan",value:function(e){return this.query["currency-greater-than"]=e,this}},{key:"currencyLessThan",value:function(e){return this.query["currency-less-than"]=e,this}},{key:"addressRole",value:function(e){return this.query["address-role"]=e,this}},{key:"address",value:function(e){return this.query.address=e,this}},{key:"excludeCloseTo",value:function(e){return this.query["exclude-close-to"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"rekeyTo",value:function(e){return this.query["rekey-to"]=e,this}},{key:"applicationID",value:function(e){return this.query["application-id"]=e,this}}]),n}(Ld.Z),Fb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ma.Z)(this,n),t.apply(this,arguments)}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/assets"}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"creator",value:function(e){return this.query.creator=e,this}},{key:"name",value:function(e){return this.query.name=e,this}},{key:"unit",value:function(e){return this.query.unit=e,this}},{key:"index",value:function(e){return this.query["asset-id"]=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(Ld.Z),Zb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ma.Z)(this,n),t.apply(this,arguments)}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/applications"}},{key:"index",value:function(e){return this.query["application-id"]=e,this}},{key:"creator",value:function(e){return this.query.creator=e,this}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"includeAll",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.query["include-all"]=e,this}}]),n}(Ld.Z),Hb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e,r)).index=a,i.index=a,i}return(0,va.Z)(n,[{key:"path",value:function(){return"/v2/applications/".concat(this.index,"/boxes")}},{key:"nextToken",value:function(e){return this.query.next=e,this}},{key:"limit",value:function(e){return this.query.limit=e,this}},{key:"prepare",value:function(e){return nb.from_obj_for_encoding(e)}}]),n}(Ld.Z),zb=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://127.0.0.1",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8080,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,ma.Z)(this,n),t.call(this,"X-Indexer-API-Token",e,r,a,i)}return(0,va.Z)(n,[{key:"makeHealthCheck",value:function(){return new ll(this.c,this.intDecoding)}},{key:"lookupAssetBalances",value:function(e){return new bl(this.c,this.intDecoding,e)}},{key:"lookupAssetTransactions",value:function(e){return new ml(this.c,this.intDecoding,e)}},{key:"lookupAccountTransactions",value:function(e){return new yl(this.c,this.intDecoding,e)}},{key:"lookupBlock",value:function(e){return new vl(this.c,this.intDecoding,e)}},{key:"lookupTransactionByID",value:function(e){return new gl(this.c,this.intDecoding,e)}},{key:"lookupAccountByID",value:function(e){return new Al(this.c,this.intDecoding,e)}},{key:"lookupAccountAssets",value:function(e){return new wl(this.c,this.intDecoding,e)}},{key:"lookupAccountCreatedAssets",value:function(e){return new xl(this.c,this.intDecoding,e)}},{key:"lookupAccountAppLocalStates",value:function(e){return new _l(this.c,this.intDecoding,e)}},{key:"lookupAccountCreatedApplications",value:function(e){return new kl(this.c,this.intDecoding,e)}},{key:"lookupAssetByID",value:function(e){return new Il(this.c,this.intDecoding,e)}},{key:"lookupApplications",value:function(e){return new Sl(this.c,this.intDecoding,e)}},{key:"lookupApplicationLogs",value:function(e){return new El(this.c,this.intDecoding,e)}},{key:"searchAccounts",value:function(){return new Ub(this.c,this.intDecoding)}},{key:"searchForTransactions",value:function(){return new Lb(this.c,this.intDecoding)}},{key:"searchForAssets",value:function(){return new Fb(this.c,this.intDecoding)}},{key:"searchForApplications",value:function(){return new Zb(this.c,this.intDecoding)}},{key:"searchForApplicationBoxes",value:function(e){return new Hb(this.c,this.intDecoding,e)}},{key:"lookupApplicationBoxByIDandName",value:function(e,t){return new jb(this.c,this.intDecoding,e,t)}}]),n}(Ud);function Qb(e,t,n){return qb.apply(this,arguments)}function qb(){return qb=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a,i,o,s,c;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.status().do();case 2:if(void 0!==(a=e.sent)){e.next=5;break}throw new Error("Unable to get node status");case 5:i=a["last-round"]+1,o=i;case 7:if(!(o=11&&(t.push(2047&n),n>>=11,r-=11)})),r&&t.push(n),t}function tp(e){return e.map((function(e){return Yb[e]}))}function np(e){return tp(ep(_d.genericHash(e)))[0]}function rp(e){if(e.length!==_d.SEED_BTYES_LENGTH)throw new RangeError("Seed length must be ".concat(_d.SEED_BTYES_LENGTH));var t=tp(ep(e)),n=np(e);return"".concat(t.join(" ")," ").concat(n)}function ap(e){var t,n=e.split(" "),r=n.slice(0,24),a=(0,ha.Z)(r);try{for(a.s();!(t=a.n()).done;){var i=t.value;if(-1===Yb.indexOf(i))throw new Error($b)}}catch(e){a.e(e)}finally{a.f()}var o,s,c,u=n[n.length-1],d=r.map((function(e){return Yb.indexOf(e)})),f=(o=[],s=0,c=0,d.forEach((function(e){for(s|=e<=8;)o.push(255&s),s>>=8,c-=8})),c&&o.push(s),new Uint8Array(o));if(33!==f.length)throw new Error(Xb);if(0!==f[f.length-1])throw new Error(Xb);if(np(f=f.slice(0,f.length-1))===u)return f;throw new Error(Xb)}function ip(e){var t=ap(e),n=_d.keyPairFromSeed(t);return{addr:kd.encodeAddress(n.publicKey),sk:n.secretKey}}function op(e){return rp(e.slice(0,_d.SEED_BTYES_LENGTH))}function sp(e){return ap(e)}function cp(e){return rp(e)}var up=n(14539),dp=n(89677),fp=n(16063),lp={},bp={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").forEach((function(e,t){lp[e]=t,bp[t]=e}));var pp=function(){function e(t){var n=t.version,r=t.sources,a=t.names,i=t.mappings;if((0,ma.Z)(this,e),this.version=n,this.sources=r,this.names=a,this.mappings=i,3!==this.version)throw new Error("Only version 3 is supported, got ".concat(this.version));if(void 0===this.mappings)throw new Error("mapping undefined, cannot build source map without `mapping`");var o=this.mappings.split(";").map((function(e){var t=function(e){for(var t=[],n=0,r=0,a=0;a>>=1,s?t.push(0===r?-2147483648:-r):t.push(r),r=n=0}}return t}(e);if(t.length>2)return t[2]}));this.pcToLine={},this.lineToPc={};var s,c=0,u=(0,ha.Z)(o.entries());try{for(u.s();!(s=u.n()).done;){var d=(0,fa.Z)(s.value,2),f=d[0],l=d[1];void 0!==l&&(c+=l),c in this.lineToPc||(this.lineToPc[c]=[]),this.lineToPc[c].push(f),this.pcToLine[f]=c}}catch(e){u.e(e)}finally{u.f()}}return(0,va.Z)(e,[{key:"getLineForPc",value:function(e){return this.pcToLine[e]}},{key:"getPcsForLine",value:function(e){return this.lineToPc[e]}}]),e}(),hp=n(18292),yp=n(5886).Buffer,mp=1380011588;function vp(e){return e.params["approval-program"]=yp.from(e.params["approval-program"].toString(),"base64"),e.params["clear-state-program"]=yp.from(e.params["clear-state-program"].toString(),"base64"),e}function gp(e){return Ap.apply(this,arguments)}function Ap(){return Ap=(0,ya.Z)((0,da.Z)().mark((function e(t){var n,r,a,i,o,s,c,u,d,f,l,b,p,h,y,m,v,g,A,w,x,_,k,I,S,E;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.client,r=t.txns,a=t.protocolVersion,i=t.latestTimestamp,o=t.round,s=t.sources,c=[],u=[],d=[],f=[],l=[],b=(0,ha.Z)(r);try{for(b.s();!(p=b.n()).done;)(h=p.value).txn.type===hp.i.appl&&(l.push((0,kd.encodeAddress)(h.txn.from.publicKey)),h.txn.appAccounts&&l.push.apply(l,(0,ga.Z)(h.txn.appAccounts.map((function(e){return(0,kd.encodeAddress)(e.publicKey)})))),h.txn.appForeignApps&&(d.push.apply(d,(0,ga.Z)(h.txn.appForeignApps)),l.push.apply(l,(0,ga.Z)(h.txn.appForeignApps.map((function(e){return(0,kd.getApplicationAddress)(e)}))))),h.txn.appForeignAssets&&f.push.apply(f,(0,ga.Z)(h.txn.appForeignAssets)),void 0===h.txn.appIndex||0===h.txn.appIndex?c.push(new uf(mp,new ff({creator:(0,kd.encodeAddress)(h.txn.from.publicKey),approvalProgram:h.txn.appApprovalProgram,clearStateProgram:h.txn.appClearProgram,localStateSchema:new lf(h.txn.appLocalInts,h.txn.appLocalByteSlices),globalStateSchema:new lf(h.txn.appGlobalInts,h.txn.appGlobalByteSlices)}))):(d.push(h.txn.appIndex),l.push((0,kd.getApplicationAddress)(h.txn.appIndex))))}catch(e){b.e(e)}finally{b.f()}for(y=[],m=0,v=(0,ga.Z)(new Set(f));mt&&t>0?"".concat(e.slice(0,t),"..."):e}function Ip(e,t){if(0===t.length)return"";for(var n=null,r=0;re.length||JSON.stringify(e[r])!==JSON.stringify(t[r]))&&(n=r);if(null==n)return"";var a=t[n];return a.bytes.length>0?"".concat(n," = 0x").concat(yp.from(a.bytes,"base64").toString("hex")):"".concat(n," = ").concat(a.uint.toString())}function Sp(e,t){var n=t?e.reverse():e;return"[".concat(n.map((function(e){switch(e.type){case 1:return"0x".concat(yp.from(e.bytes,"base64").toString("hex"));case 2:return"".concat(e.uint.toString());default:return""}})).join(", "),"]")}var Ep=function(){function e(t){(0,ma.Z)(this,e),this.disassembly=[],this.appCallMessages=[],this.localDeltas=[],this.globalDelta=[],this.cost=0,this.logicSigMessages=[],this.logicSigDisassembly=[],this.logs=[],this.appCallTrace=void 0,this.logicSigTrace=void 0,this.required=["disassembly"],this.optionals=["app-call-messages","local-deltas","global-delta","cost","logic-sig-messages","logic-sig-disassembly","logs"],this.traces=["app-call-trace","logic-sig-trace"],this.disassembly=t.disassembly,this.appCallMessages=t["app-call-messages"],this.localDeltas=t["local-deltas"],this.globalDelta=t["global-delta"],this.cost=t.cost,this.logicSigMessages=t["logic-sig-messages"],this.logicSigDisassembly=t["logic-sig-disassembly"],this.logs=t.logs,this.appCallTrace=new _p(t["app-call-trace"]),this.logicSigTrace=new _p(t["logic-sig-trace"])}return(0,va.Z)(e,[{key:"appCallRejected",value:function(){return void 0!==this.appCallMessages&&this.appCallMessages.includes("REJECT")}},{key:"logicSigRejected",value:function(){return void 0!==this.logicSigMessages&&this.logicSigMessages.includes("REJECT")}},{key:"appTrace",value:function(t){if(void 0===this.appCallTrace||!this.disassembly)return"";var n=t;return void 0===t&&(n={maxValueWidth:30,topOfStackFirst:!1}),e.trace(this.appCallTrace,this.disassembly,n)}},{key:"lsigTrace",value:function(t){if(void 0===this.logicSigTrace||void 0===this.logicSigDisassembly)return"";var n=t;return void 0===t&&(n={maxValueWidth:30,topOfStackFirst:!0}),e.trace(this.logicSigTrace,this.logicSigDisassembly,n)}}],[{key:"trace",value:function(e,t,n){for(var r=n.maxValueWidth||30,a=[["pc#","ln#","source","scratch","stack"]],i=0;i0&&void 0!==e.trace[i-1].scratch?e.trace[i-1].scratch:[],p=""===c?t[s]:"!! ".concat(c," !!");a.push([u.toString().padEnd(3," "),s.toString().padEnd(3," "),kp(p,r),kp(Ip(b,l),r),kp(Sp(f,n.topOfStackFirst),r)])}var h=a.reduce((function(e,t){for(var n=new Array(a[0].length).fill(0),r=0;re[r]?t[r].length:e[r];return n}),new Array(a[0].length).fill(0));return"".concat(a.map((function(e){return e.map((function(e,t){return e.padEnd(h[t]+1," ")})).join("|").trim()})).join("\n"),"\n")}}]),e}(),Cp=(0,va.Z)((function e(t){(0,ma.Z)(this,e),this.error="",this.protocolVersion="",this.txns=[],this.error=t.error,this.protocolVersion=t["protocol-version"],this.txns=t.txns.map((function(e){return new Ep(e)}))})),Tp=n(13234);function Op(e){return function(t,n){var r,a=[],i=(0,ha.Z)(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;a.push(t[o].signTxn(e.sk))}}catch(e){i.e(e)}finally{i.f()}return Promise.resolve(a)}}function Pp(e){return function(t,n){var r,a=[],i=(0,ha.Z)(n);try{for(i.s();!(r=i.n()).done;){var o=r.value,s=(0,dp.signLogicSigTransactionObject)(t[o],e).blob;a.push(s)}}catch(e){i.e(e)}finally{i.f()}return Promise.resolve(a)}}function Mp(e,t){return function(n,r){var a,i=[],o=(0,ha.Z)(r);try{for(o.s();!(a=o.n()).done;){var s,c=n[a.value],u=[],d=(0,ha.Z)(t);try{for(d.s();!(s=d.n()).done;){var f=s.value,l=(0,fp.PU)(c,e,f).blob;u.push(l)}}catch(e){d.e(e)}finally{d.f()}i.push((0,fp.J6)(u))}}catch(e){o.e(e)}finally{o.f()}return Promise.resolve(i)}}function Bp(e){return"object"==typeof e&&2===Object.keys(e).length&&"object"==typeof e.txn&&"function"==typeof e.signer}var Np,Rp,Dp=n(5886).Buffer,jp=Math.pow(2,16)-1,Up=32,Lp=1,Fp=1,Zp=2,Hp=/^([a-z\d[\](),]+)\[(0|[1-9][\d]*)]$/,zp=/^ufixed([1-9][\d]*)x([1-9][\d]*)$/,Qp=function(){function e(){(0,ma.Z)(this,e)}return(0,va.Z)(e,null,[{key:"from",value:function(t){if(t.endsWith("[]")){var n=e.from(t.slice(0,t.length-2));return new Xp(n)}if(t.endsWith("]")){var r=t.match(Hp);if(3!==r.length)throw new Error("malformed static array string: ".concat(t));var a=r[2],i=parseInt(a,10);if(i>jp)throw new Error("array length exceeds limit ".concat(jp));var o=e.from(r[1]);return new Yp(o,i)}if(t.startsWith("uint")){var s=t.slice(4,t.length);if(u=s,!(0,ga.Z)(u).every((function(e){return"0123456789".includes(e)})))throw new Error("malformed uint string: ".concat(s));var c=parseInt(s,10);if(c>jp)throw new Error("malformed uint string: ".concat(c));return new qp(c)}var u;if("byte"===t)return new Gp;if(t.startsWith("ufixed")){var d=t.match(zp);if(3!==d.length)throw new Error("malformed ufixed type: ".concat(t));var f=parseInt(d[1],10),l=parseInt(d[2],10);return new Vp(f,l)}if("bool"===t)return new Kp;if("address"===t)return new Jp;if("string"===t)return new Wp;if(t.length>=2&&"("===t[0]&&")"===t[t.length-1]){for(var b=$p.parseTupleContent(t.slice(1,t.length-1)),p=[],h=0;h512)throw new Error("unsupported uint type bitSize: ".concat(e));return r.bitSize=e,r}return(0,va.Z)(n,[{key:"toString",value:function(){return"uint".concat(this.bitSize)}},{key:"equals",value:function(e){return e instanceof n&&this.bitSize===e.bitSize}},{key:"isDynamic",value:function(){return!1}},{key:"byteLen",value:function(){return this.bitSize/8}},{key:"encode",value:function(e){if("bigint"!=typeof e&&"number"!=typeof e)throw new Error("Cannot encode value as uint".concat(this.bitSize,": ").concat(e));if(e>=BigInt(Math.pow(2,this.bitSize))||e512)throw new Error("unsupported ufixed type bitSize: ".concat(e));if(r>160||r<1)throw new Error("unsupported ufixed type precision: ".concat(r));return a.bitSize=e,a.precision=r,a}return(0,va.Z)(n,[{key:"toString",value:function(){return"ufixed".concat(this.bitSize,"x").concat(this.precision)}},{key:"equals",value:function(e){return e instanceof n&&this.bitSize===e.bitSize&&this.precision===e.precision}},{key:"isDynamic",value:function(){return!1}},{key:"byteLen",value:function(){return this.bitSize/8}},{key:"encode",value:function(e){if("bigint"!=typeof e&&"number"!=typeof e)throw new Error("Cannot encode value as ".concat(this.toString(),": ").concat(e));if(e>=BigInt(Math.pow(2,this.bitSize))||e255)throw new Error("".concat(e," cannot be encoded into a byte"));return new Uint8Array([e])}},{key:"decode",value:function(e){if(1!==e.byteLength)throw new Error("byte string must be 1 byte long");return e[0]}}]),n}(Qp),Wp=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ma.Z)(this,n),t.apply(this,arguments)}return(0,va.Z)(n,[{key:"toString",value:function(){return"string"}},{key:"equals",value:function(e){return e instanceof n}},{key:"isDynamic",value:function(){return!0}},{key:"byteLen",value:function(){throw new Error("".concat(this.toString()," is a dynamic type"))}},{key:"encode",value:function(e){if("string"!=typeof e&&!(e instanceof Uint8Array))throw new Error("Cannot encode value as string: ".concat(e));var t=Dp.from(e),n=Jb(t.length,Zp),r=new Uint8Array(t.length+Zp);return r.set(n),r.set(t,Zp),r}},{key:"decode",value:function(e){if(e.length=jp)throw new Error("tuple type child type number larger than maximum uint16 error");return r.childTypes=e,r}return(0,va.Z)(n,[{key:"toString",value:function(){for(var e=[],t=0;tjp)throw new Error("length of tuple array should not exceed a uint16");for(var n=this.childTypes,r=[],a=[],i=new Map,o=0;ojp)throw new Error("byte length of ".concat(m," should not exceed a uint16"));r[y]=Jb(m,Zp)}h+=a[y].length}return Td.concatArrays.apply(void 0,r.concat(a))}},{key:"decode",value:function(e){for(var t=this.childTypes,n=[],r=[],a=0,i=0,o=Dp.from(e);a0&&(n[n.length-1].right=c,c>l;(e[i]&b)>0?r.push(new Uint8Array([128])):r.push(new Uint8Array([0]))}a+=f,i+=1}else{var p=s.byteLen();r.push(e.slice(i,i+p)),i+=p}if(a!==t.length-1&&i>=e.length)throw new Error("input byte not enough to decode");a+=1}if(n.length>0&&(n[n.length-1].right=e.length,i=e.length),iy.right)throw new Error("dynamic segment should display a [l, r] space with l <= r");if(h!==n.length-1&&y.right!==n[h+1].left)throw new Error("dynamic segment should be consecutive")}for(var m=0,v=0;v8)throw new Error("value list passed in should be no greater than length 8");for(var n=0;n0&&-1===n))break;r+=1}}return r}function nh(e){return e===Np.any||e===Np.pay||e===Np.keyreg||e===Np.acfg||e===Np.axfer||e===Np.afrz||e===Np.appl}function rh(e,t){return e===Np.any||t.type&&t.type.toString()===e.toString()}function ah(e){return e===Rp.account||e===Rp.application||e===Rp.asset}!function(e){e.any="txn",e.pay="pay",e.keyreg="keyreg",e.acfg="acfg",e.axfer="axfer",e.afrz="afrz",e.appl="appl"}(Np||(Np={})),function(e){e.account="account",e.application="application",e.asset="asset"}(Rp||(Rp={}));var ih=function(){function e(t){if((0,ma.Z)(this,e),"string"!=typeof t.name||"object"!=typeof t.returns||!Array.isArray(t.args))throw new Error("Invalid ABIMethod parameters");this.name=t.name,this.description=t.desc,this.args=t.args.map((function(e){var t=e.type,n=e.name,r=e.desc;return nh(t)||ah(t)?{type:t,name:n,description:r}:{type:Qp.from(t),name:n,description:r}})),this.returns={type:"void"===t.returns.type?t.returns.type:Qp.from(t.returns.type),description:t.returns.desc}}return(0,va.Z)(e,[{key:"getSignature",value:function(){var e=this.args.map((function(e){return e.type.toString()})).join(","),t=this.returns.type.toString();return"".concat(this.name,"(").concat(e,")").concat(t)}},{key:"getSelector",value:function(){var e=(0,_d.genericHash)(this.getSignature());return new Uint8Array(e.slice(0,4))}},{key:"txnCount",value:function(){var e,t=1,n=(0,ha.Z)(this.args);try{for(n.s();!(e=n.n()).done;){var r=e.value;"string"==typeof r.type&&nh(r.type)&&(t+=1)}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"toJSON",value:function(){return{name:this.name,desc:this.description,args:this.args.map((function(e){var t=e.type,n=e.name,r=e.description;return{type:t.toString(),name:n,desc:r}})),returns:{type:this.returns.type.toString(),desc:this.returns.description}}}}],[{key:"fromSignature",value:function(t){var n=function(e){var t=e.indexOf("(");if(-1===t)throw new Error("Invalid method signature: ".concat(e));for(var n=-1,r=0,a=t;a1)throw new Error("found ".concat(n.length," methods with the same name ").concat(n.map((function(e){return e.getSignature()})).join(",")));if(0===n.length)throw new Error("found 0 methods with the name ".concat(t));return n[0]}var sh,ch=function(){function e(t){if((0,ma.Z)(this,e),"string"!=typeof t.name||!Array.isArray(t.methods)||t.networks&&"object"!=typeof t.networks)throw new Error("Invalid ABIContract parameters");this.name=t.name,this.description=t.desc,this.networks=t.networks?(0,ua.Z)({},t.networks):{},this.methods=t.methods.map((function(e){return new ih(e)}))}return(0,va.Z)(e,[{key:"toJSON",value:function(){return{name:this.name,desc:this.description,networks:this.networks,methods:this.methods.map((function(e){return e.toJSON()}))}}},{key:"getMethodByName",value:function(e){return oh(this.methods,e)}}]),e}(),uh=function(){function e(t){if((0,ma.Z)(this,e),"string"!=typeof t.name||!Array.isArray(t.methods))throw new Error("Invalid ABIInterface parameters");this.name=t.name,this.description=t.desc,this.methods=t.methods.map((function(e){return new ih(e)}))}return(0,va.Z)(e,[{key:"toJSON",value:function(){return{name:this.name,desc:this.description,methods:this.methods.map((function(e){return e.toJSON()}))}}},{key:"getMethodByName",value:function(e){return oh(this.methods,e)}}]),e}(),dh=n(30657),fh=n(5886).Buffer,lh=fh.from([21,31,124,117]);function bh(e,t,n){if(null!=n&&e===n)return 0;for(var r=null==n?0:1,a=0;ae.MAX_GROUP_SIZE)throw new Error("Adding additional transactions exceeds the maximum atomic group size of ".concat(e.MAX_GROUP_SIZE));if(0===r){if(null==u||null==d||null==f||null==l||null==b||null==p)throw new Error("One of the following required parameters for application creation is missing: approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices")}else if(c===dh.hq.UpdateApplicationOC){if(null==u||null==d)throw new Error("One of the following required parameters for OnApplicationComplete.UpdateApplicationOC is missing: approvalProgram, clearProgram");if(null!=f||null!=l||null!=b||null!=p||null!=h)throw new Error("One of the following application creation parameters were set on a non-creation call: numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages")}else if(null!=u||null!=d||null!=f||null!=l||null!=b||null!=p||null!=h)throw new Error("One of the following application creation parameters were set on a non-creation call: approvalProgram, clearProgram, numGlobalInts, numGlobalByteSlices, numLocalInts, numLocalByteSlices, extraPages");if(null==i&&(i=[]),i.length!==a.args.length)throw new Error("Incorrect number of method arguments. Expected ".concat(a.args.length,", got ").concat(i.length));for(var w=[],x=[],_=[],k=[],I=[],S=new Map,E=y||[],C=0;CNumber.MAX_SAFE_INTEGER)throw new Error("Expected safe integer for application value, got ".concat(Z));U=bh(Number(Z),B,r);break;case Rp.asset:var H=new qp(64),z=H.decode(H.encode(j));if(z>Number.MAX_SAFE_INTEGER)throw new Error("Expected safe integer for asset value, got ".concat(z));U=bh(Number(z),N);break;default:throw new Error("Unknown reference type: ".concat(D))}P.push(U)}for(var Q=0;Q15){var q=w.slice(14),V=x.slice(14);w=w.slice(0,14),x=x.slice(0,14),w.push(new $p(q)),x.push(V)}for(var J=[a.getSelector()],K=0;K1&&(0,up.assignGroupID)(this.transactions.map((function(e){return e.txn}))),this.status=sh.BUILT}return this.transactions}},{key:"gatherSignatures",value:(r=(0,ya.Z)((0,da.Z)().mark((function e(){var t,n,r,a,i,o,s,c,u,d,f,l,b;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(this.status>=sh.SIGNED)){e.next=2;break}return e.abrupt("return",this.signedTxns);case 2:for(t=this.buildGroup(),n=t.map((function(e){return e.txn})),r=new Map,a=0;ash.SUBMITTED)){e.next=2;break}throw new Error("Transaction group cannot be resubmitted");case 2:return e.next=4,this.gatherSignatures();case 4:return n=e.sent,e.next=7,t.sendRawTransaction(n).do();case 7:return this.status=sh.SUBMITTED,e.abrupt("return",this.txIDs);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"execute",value:(t=(0,ya.Z)((0,da.Z)().mark((function e(t,n){var r,a,i,o,s,c,u,d,f,l,b,p,h,y,m,v,g=this;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.status!==sh.COMMITTED){e.next=2;break}throw new Error("Transaction group has already been executed successfully");case 2:return e.next=4,this.submit(t);case 4:return r=e.sent,this.status=sh.SUBMITTED,a=this.transactions.findIndex((function(e,t){return g.methodCalls.has(t)})),i=-1===a?0:a,e.next=10,Qb(t,r[i],n);case 10:o=e.sent,this.status=sh.COMMITTED,s=o["confirmed-round"],c=[],u=(0,ha.Z)(this.methodCalls),e.prev=15,u.s();case 17:if((d=u.n()).done){e.next=48;break}if(f=(0,fa.Z)(d.value,2),l=f[0],b=f[1],p=r[l],h={txID:p,rawReturnValue:new Uint8Array,method:b},e.prev=21,l!==a){e.next=26;break}e.t0=o,e.next=29;break;case 26:return e.next=28,t.pendingTransactionInformation(p).do();case 28:e.t0=e.sent;case 29:if(y=e.t0,h.txInfo=y,"void"===b.returns.type){e.next=40;break}if(0!==(m=y.logs||[]).length){e.next=35;break}throw new Error("App call transaction did not log a return value");case 35:if(!((v=fh.from(m[m.length-1],"base64")).byteLength<4)&&v.slice(0,4).equals(lh)){e.next=38;break}throw new Error("App call transaction did not log a return value");case 38:h.rawReturnValue=new Uint8Array(v.slice(4)),h.returnValue=b.returns.type.decode(h.rawReturnValue);case 40:e.next=45;break;case 42:e.prev=42,e.t1=e.catch(21),h.decodeError=e.t1;case 45:c.push(h);case 46:e.next=17;break;case 48:e.next=53;break;case 50:e.prev=50,e.t2=e.catch(15),u.e(e.t2);case 53:return e.prev=53,u.f(),e.finish(53);case 56:return e.abrupt("return",{confirmedRound:s,txIDs:r,methodResults:c});case 57:case"end":return e.stop()}}),e,this,[[15,50,53,56],[21,42]])}))),function(e,n){return t.apply(this,arguments)})}]),e}();ph.MAX_GROUP_SIZE=16;var hh=n(5886).Buffer,yh=hh.from([77,88]),mh="The transaction sender address and multisig preimage do not match.";function vh(e,t){if(void 0===e.from){var n=_d.keyPairFromSecretKey(t);e.from=kd.encodeAddress(n.publicKey)}var r=Sd.instantiateTxnIfNeeded(e);return{txID:r.txID().toString(),blob:r.signTxn(t)}}function gh(e,t){return new Pd(e).signBid(t)}function Ah(e,t){var n=hh.from(Td.concatArrays(yh,e));return _d.sign(n,t)}function wh(e,t,n){var r=hh.from(Td.concatArrays(yh,e)),a=kd.decodeAddress(n).publicKey;return _d.verify(r,t,a)}function xh(e){return new Uint8Array(Id.encode(e))}function _h(e){return Id.decode(e)}var kh=new Error(mh),Ih=new Error(Bd),Sh=Cd(),Eh=o,Ch=n(75006),Th=n(16051),Oh=n(45794),Ph=n(5886).Buffer;function Mh(e,t){return(0,Oh.xc)([Ph.from("Sequence"),new xd.PublicKey(e).toBytes()],t)}!function(){function e(e){this.sequence=e}e.deserialize=function(t){if(8!=t.length)throw new Error("data.length != 8");return new e(t.readBigUInt64LE(0))},e.prototype.value=function(){return this.sequence}}();var Bh=n(5886).Buffer;function Nh(e){return(0,Oh.xc)([Bh.from("emitter")],e)}function Rh(e,t){var n=Nh(e);return{emitter:n,sequence:Mh(n,t)}}var Dh=n(5886).Buffer,jh=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Uh=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]BigInt(Number.MAX_SAFE_INTEGER))throw new Error("integer is unsafe");return Number(e)}var Jh=n(5886).Buffer,Kh=BigInt(127);function Gh(e,t,n){return Jh.from(function(e,t,n){if(e=BigInt(128);t++)e>>=BigInt(7);return t+1}(e);if(n=n||0,(t=t||new ArrayBuffer(r)).byteLength>=BigInt(7);return a[i]=Number(e),a}(e,t,n)).toString("hex")}var Wh=n(5886).Buffer,Yh=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Xh=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},ay=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},iy=function(e,t){for(var n=0,r=t.length,a=e.length;n=n.length||3===n.readIntBE(s,1)&&(t.Meta="TokenBridge Transfer With Payload",t.Type=n.readIntBE(s,1),s+=1,t.Amount=vy(e,s,32),s+=32,t.Contract=om(vy(e,s,32)),s+=32,t.FromChain=n.readIntBE(s,2),s+=2,t.ToAddress=vy(e,s,32),s+=32,t.ToChain=n.readIntBE(s,2),s+=2,t.FromAddress=vy(e,s,32),s+=32,t.Payload=e.slice(s)),t}var Ay=new RegExp("\0","g");function wy(e){var t=gy(e),n=ey.from(t.Body);t.action=n.readUInt8(0),t.Contract=n.slice(1,33).toString("hex"),t.FromChain=n.readUInt16BE(33),t.Symbol=ey.from(n.slice(35,67)),t.Name=ey.from(n.slice(67,99)),t.TokenId=n.slice(99,131);var r=n.readUInt8(131);t.uri=ey.from(n.slice(132,132+r)).toString("utf8").replace(Ay,"");var a=132+r;return t.ToAddress=n.slice(a,a+32),t.ToChain=n.readUInt16BE(a+32),t}function xy(e,t,n){return ty(this,void 0,void 0,(function(){var r,a,i,o,s,c,u,d,f,l,b,p,h,y,m,v,g,A,w,x,_;return ny(this,(function(k){switch(k.label){case 0:return r=null,[4,e.accountInformation(n).do()];case 1:a=k.sent();try{for(i=ry(a["apps-local-state"]),o=i.next();!o.done;o=i.next())if(s=o.value,BigInt(s.id)===t){r=s["key-value"];break}}catch(e){A={error:e}}finally{try{o&&!o.done&&(w=i.return)&&w.call(i)}finally{if(A)throw A.error}}if(c=ey.alloc(0),u=ey.alloc(0),r){d=ey.alloc(127),f=ey.from("meta"),l=[],b=new Map;try{for(p=ry(r),h=p.next();!h.done;h=p.next())y=h.value,m=ey.from(y.key,"base64"),v=m.readInt8(),ey.compare(m,f)&&(g=ey.from(y.value.bytes,"base64"),ey.compare(g,d)&&(b.set(v.toString(),g),l.push(v.toString())))}catch(e){x={error:e}}finally{try{h&&!h.done&&(_=p.return)&&_.call(p)}finally{if(x)throw x.error}}l.sort((function(e,t){return e.localeCompare(t,"en",{numeric:!0})})),l.forEach((function(e){c=ey.concat([c,b.get(e)||u])}))}return[2,new Uint8Array(c)]}}))}))}function _y(e,t,n){return ty(this,void 0,void 0,(function(){var r,a,i;return ny(this,(function(o){switch(o.label){case 0:return[4,e.accountInformation(n).do()];case 1:return r=o.sent(),a=r.assets,i=!1,a.forEach((function(e){BigInt(e["asset-id"])!==t||(i=!0)})),[2,i]}}))}))}var ky=function(e,t,n,r){this.vaaMap=e,this.accounts=t,this.txs=n,this.guardianAddr=r};function Iy(e,t,n,r,a){return ty(this,void 0,void 0,(function(){var i,o,s,c,u,d,f,l,b,p,h,y,m,v,g,A,w,x,_,k,I,S,E,C,T,O,P,M,B,N,R,D;return ny(this,(function(j){switch(j.label){case 0:return i=gy(n),o=i.sequence/BigInt(uy),s=i.chainRaw,c=i.emitter,u=i.index,d=[],[4,my(e,r,a,o,s+c)];case 1:return f=j.sent(),l=f.addr,b=f.txs,d.push.apply(d,iy([],ay(b))),p=gm("guardian"),[4,my(e,r,t,BigInt(u),p)];case 2:return h=j.sent(),y=h.addr,m=h.txs,d.push.apply(d,iy([],ay(m))),v=[l,y],[4,xy(e,t,y)];case 3:return g=j.sent(),[4,e.getTransactionParams().do()];case 4:for(A=j.sent(),w=(0,gd.keccak256)((0,gd.keccak256)(i.digest)).slice(2),x=i.siglen,_=Math.floor(x/dy)+1,k=66*dy,I=i.signatures,S=Am("verifySigs"),E=new dp.LogicSigAccount(ly),C=0;C<_;C++){for((T=I.slice(C*k)).length>k&&(T=T.slice(0,k)),O=T.length/66,P=new Uint8Array(20*O),M=0;M8&&(_=ey.from(x.slice(0,8)),A.push(Vh(_.readBigUInt64BE(0)))),c.push({tx:(0,Tp.makePaymentTxnWithSuggestedParamsFromObject)({from:a,to:h,amount:1e5,suggestedParams:v}),signer:null}),(g=new Uint8Array(1))[0]=1,c.push({tx:(0,Tp.makeApplicationCallTxnFromObject)({appArgs:[Am("nop"),g],appIndex:Vh(t),from:a,onComplete:Tp.OnApplicationComplete.NoOpOC,suggestedParams:v}),signer:null}),(g=new Uint8Array(1))[0]=2,c.push({tx:(0,Tp.makeApplicationCallTxnFromObject)({appArgs:[Am("nop"),g],appIndex:Vh(t),from:a,onComplete:Tp.OnApplicationComplete.NoOpOC,suggestedParams:v}),signer:null}),c.push({tx:(0,Tp.makeApplicationCallTxnFromObject)({accounts:s,appArgs:[Am("receiveAttest"),r],appIndex:Vh(t),foreignAssets:A,from:a,onComplete:Tp.OnApplicationComplete.NoOpOC,suggestedParams:v}),signer:null}),c[c.length-1].tx.fee=2*c[c.length-1].tx.fee,E.label=11;case 11:return"TokenBridge Transfer"!==p&&"TokenBridge Transfer With Payload"!==p||void 0===o.Contract?[3,17]:(A=[],w=0,o.FromChain===B?[3,13]:[4,xy(e,t,h)]);case 12:return(x=E.sent()).length>8&&(_=ey.from(x.slice(0,8)),w=Vh(_.readBigUInt64BE(0))),[3,14];case 13:w=parseInt(o.Contract,16),E.label=14;case 14:return k=0,I="",void 0!==o.ToAddress&&(8===o.ToChain&&3===o.Type?(k=Number(Oy(om(o.ToAddress))),I=(0,kd.getApplicationAddress)(k)):I=(0,kd.encodeAddress)(o.ToAddress)),0===w?[3,16]:(A.push(w),[4,_y(e,BigInt(w),I)]);case 15:if(!E.sent()){if(a!=I)throw new Error("cannot ASA optin for somebody else (asset "+w.toString()+")");c.unshift({tx:(0,Tp.makeAssetTransferTxnWithSuggestedParamsFromObject)({amount:0,assetIndex:w,from:a,suggestedParams:v,to:a}),signer:null})}E.label=16;case 16:s.push(I),c.push({tx:(0,Tp.makeApplicationCallTxnFromObject)({accounts:s,appArgs:[Am("completeTransfer"),r],appIndex:Vh(t),foreignAssets:A,from:a,onComplete:Tp.OnApplicationComplete.NoOpOC,suggestedParams:v}),signer:null}),void 0!==o.Fee&&0===ey.compare(o.Fee,ey.from(sy,"hex"))?c[c.length-1].tx.fee=2*c[c.length-1].tx.fee:c[c.length-1].tx.fee=3*c[c.length-1].tx.fee,"TokenBridge Transfer With Payload"===p&&(c[c.length-1].tx.appForeignApps=[k],S=Eh.ABIMethod.fromSignature("portal_transfer(byte[])byte[]"),c.push({tx:(0,Tp.makeApplicationCallTxnFromObject)({appArgs:[S.getSelector(),S.args[0].type.encode(r)],appIndex:k,foreignAssets:A,from:a,onComplete:Tp.OnApplicationComplete.NoOpOC,suggestedParams:v}),signer:null})),E.label=17;case 17:return[2,c]}}))}))}function Ey(e){return(0,kd.encodeAddress)(e)}function Cy(e){return Ey(sm(e))}function Ty(e){return om((0,kd.decodeAddress)(e).publicKey)}function Oy(e){return Ch.O$.from(sm(e)).toBigInt()}function Py(e){return Ch.O$.from(sm(e)).toString()}function My(e,t,n){return ty(this,void 0,void 0,(function(){var r,a,i,o,s,c,u,d,f;return ny(this,(function(l){switch(l.label){case 0:(0,up.assignGroupID)(t.map((function(e){return e.tx}))),r=[],l.label=1;case 1:l.trys.push([1,7,8,9]),a=ry(t),i=a.next(),l.label=2;case 2:return i.done?[3,6]:(o=i.value).signer?(c=(s=r).push,[4,o.signer.signTxn(o.tx)]):[3,4];case 3:return c.apply(s,[l.sent()]),[3,5];case 4:r.push(o.tx.signTxn(n.sk)),l.label=5;case 5:return i=a.next(),[3,2];case 6:return[3,9];case 7:return u=l.sent(),d={error:u},[3,9];case 8:try{i&&!i.done&&(f=a.return)&&f.call(a)}finally{if(d)throw d.error}return[7];case 9:return[4,e.sendRawTransaction(r).do()];case 10:return l.sent(),[4,Qb(e,t[t.length-1].tx.txID(),4)];case 11:return[2,l.sent()]}}))}))}function By(e){return new Uint8Array(Th.bech32.fromWords(Th.bech32.decode(e).words))}function Ny(e,t){return Th.bech32.encode(e,Th.bech32.toWords(t))}var Ry=function(e){return void 0===e&&(e=""),e.startsWith("u")&&4===e.length},Dy=function(e){return void 0===e&&(e=""),Ry(e)||"uluna"===e};function jy(e){for(var t=[],n=0;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};function Xy(e,t){var n=e.receipts_outcome.reduce((function(e,t){return e.totalGasBurned+=t.outcome.gas_burnt,e.totalTokensBurned+=qy().utils.format.formatNearAmount(t.outcome.tokens_burnt),e}),{totalGasBurned:e.transaction_outcome.outcome.gas_burnt,totalTokensBurned:qy().utils.format.formatNearAmount(e.transaction_outcome.outcome.tokens_burnt)}),r=n.totalGasBurned,a=n.totalTokensBurned;console.log(t,"totalGasBurned",r,"totalTokensBurned",a)}function $y(e,t,n){return Gy(this,void 0,void 0,(function(){var r,a,i;return Wy(this,(function(o){switch(o.label){case 0:return[4,nm(e,t,"hash_account",{account:n})];case 1:return r=Yy.apply(void 0,[o.sent(),2]),a=r[0],i=r[1],[2,{isRegistered:a,accountHash:i}]}}))}))}function em(e,t,n){return Gy(this,void 0,void 0,(function(){var r,a,i;return Wy(this,(function(o){switch(o.label){case 0:return[4,nm(e,t,"hash_lookup",{hash:n})];case 1:return r=Yy.apply(void 0,[o.sent(),2]),a=r[0],i=r[1],[2,{found:a,value:i}]}}))}))}function tm(e,t){return{contractId:t,methodName:"register_account",args:{account:e},gas:new(Jy())("100000000000000"),attachedDeposit:new(Jy())("2000000000000000000000")}}function nm(e,t,n,r){return Gy(this,void 0,void 0,(function(){var a;return Wy(this,(function(i){switch(i.label){case 0:return[4,e.query({request_type:"call_function",account_id:t,method_name:n,args_base64:r?Ky.from(JSON.stringify(r)).toString("base64"):"",finality:"final"})];case 1:return a=i.sent(),[2,JSON.parse(Ky.from(a.result).toString())]}}))}))}var rm=n(5886).Buffer,am=function(e){return e.startsWith("01")},im=function(e){return rm.from((0,gd.stripZeros)(sm(e.substr(2)))).toString("ascii")},om=function(e){return rm.from(e).toString("hex")},sm=function(e){return e.startsWith("0x")&&(e=e.slice(2)),new Uint8Array(rm.from(e,"hex"))},cm=function(e,t){var n=fe(t);if(be(n))return(0,gd.hexZeroPad)((0,gd.hexValue)(e),20);if(n===S||n===Y)return new xd.PublicKey(e).toString();if(he(n)){var r=om(e);return am(r)?im(r):n!==z||function(e){return e.startsWith("000000000000000000000000")}(r)?Ny("terra",e.slice(-20)):Ny("terra",e)}if(n===Q)return Ny("inj",e.slice(-20));if(n===B)return Ey(e);if(n==ne)return Ny("wormhole",e.slice(-20));if(n===X)return Ny("xpla",e.slice(-20));if(n===te)return Ny("sei",e.slice(-20));if(n===F)throw Error("uint8ArrayToNative: Use tryHexToNativeStringNear instead.");if(n===q)throw Error("uint8ArrayToNative: Osmosis not supported yet.");if(n===V)throw Error("uint8ArrayToNative: Sui not supported yet.");if(n===J)throw Error("uint8ArrayToNative: Aptos not supported yet.");if(n===I)throw Error("uint8ArrayToNative: Chain id unset");if(n===$)throw Error("uint8ArrayToNative: Btc not supported");throw Error("Don't know how to convert address for chain "+n)},um=function(e,t,n){return function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var r,a,i;return function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},Em=function(e,t,n,r){return e.generateTransaction(t.address(),n,r).then((function(n){return Lm(e,t,n)}))},Cm=function(e,t,n,r){return km(void 0,void 0,void 0,(function(){var a,i,o,s,c;return Im(this,(function(u){switch(u.label){case 0:return a=Object.assign({gas_unit_price:"100",max_gas_amount:"30000"},r),[4,Promise.all([e.getAccount(t.address()),e.getChainId()])];case 1:return i=Sm.apply(void 0,[u.sent(),2]),o=i[0].sequence_number,s=i[1],c=new Zi.RawTransaction(Zi.AccountAddress.fromHex(t.address()),BigInt(o),n,BigInt(a.max_gas_amount),BigInt(a.gas_unit_price),BigInt(Math.floor(Date.now()/1e3)+10),new Zi.ChainId(s)),[2,Lm(e,t,c)]}}))}))},Tm=function(e,t,n){if(t===J)return Pm(n)?xm(n):(console.error("Invalid qualified type"),null);var r=Om(e,t,n);return r?xm(r)+"::coin::T":null},Om=function(e,t,n){if(t===J)return null;var r=_m.alloc(1);r.writeUInt8(255);var a=_m.alloc(2);return a.writeUInt16BE(t),(0,Ad.sha3_256)(_m.concat([wm((0,gd.hexZeroPad)(xm(e),32)),a,_m.from("::","ascii"),wm((0,gd.hexZeroPad)(xm(n),32)),r]))},Pm=function(e){return/^(0x)?[0-9a-fA-F]+::\w+::\w+$/.test(e)},Mm=function(e){return(0,Ad.sha3_256)(e)};function Bm(e,t,n){return km(this,void 0,void 0,(function(){var r,a,i,o,s;return Im(this,(function(c){switch(c.label){case 0:return t=xm(t),[4,e.getAccountResource(t,t+"::state::State")];case 1:r=c.sent().data,a=r.native_infos.handle,c.label=2;case 2:return c.trys.push([2,4,,5]),[4,e.getTableItem(a,{key_type:t+"::token_hash::TokenHash",value_type:"0x1::type_info::TypeInfo",key:{hash:n}})];case 3:return(i=c.sent())?(o=_m.from(i.module_name.substring(2),"hex").toString("ascii"),s=_m.from(i.struct_name.substring(2),"hex").toString("ascii"),[2,i.account_address+"::"+o+"::"+s]):[2,null];case 4:return c.sent(),[2,null];case 5:return[2]}}))}))}var Nm=function(e){return e.split("::")[0]},Rm=function(e,t,n){return km(void 0,void 0,void 0,(function(){var r,a,i;return Im(this,(function(o){switch(o.label){case 0:return(r=fe(t))===J?[2,null]:((a=_m.alloc(2)).writeUInt16BE(r),i=_m.concat([a,_m.from(n)]),[4,ws.getResourceAccountAddress(e,i)]);case 1:return[2,o.sent().toString()]}}))}))},Dm=function(e){return km(void 0,void 0,void 0,(function(){var t;return Im(this,(function(n){return t=_m.concat([Hi.bcsToBytes(Zi.AccountAddress.fromHex(e.token_data_id.creator)),_m.from((0,Ad.sha3_256)(e.token_data_id.collection),"hex")]),[2,new Uint8Array(_m.from((0,Ad.sha3_256)(t),"hex"))]}))}))},jm=function(e){return km(void 0,void 0,void 0,(function(){var t,n;return Im(this,(function(r){return(t=_m.alloc(8)).writeBigUInt64BE(BigInt(e.property_version)),n=_m.concat([Hi.bcsToBytes(Zi.AccountAddress.fromHex(e.token_data_id.creator)),_m.from((0,Ad.sha3_256)(e.token_data_id.collection),"hex"),_m.from((0,Ad.sha3_256)(e.token_data_id.name),"hex"),t]),[2,new Uint8Array(_m.from((0,Ad.sha3_256)(n),"hex"))]}))}))},Um=function(e,t,n){return km(void 0,void 0,void 0,(function(){var r,a,i,o,s;return Im(this,(function(c){switch(c.label){case 0:return[4,e.getAccountResource(t,t+"::state::State")];case 1:return r=c.sent().data,a=r.native_infos.handle,[4,e.getTableItem(a,{key_type:t+"::token_hash::TokenHash",value_type:"0x3::token::TokenId",key:{hash:Mi.fromUint8Array(n).hex()}})];case 2:return i=c.sent(),o=i.token_data_id,s=i.property_version,[2,{token_data_id:o,property_version:s}]}}))}))},Lm=function(e,t,n){return km(void 0,void 0,void 0,(function(){return Im(this,(function(r){switch(r.label){case 0:return[4,e.simulateTransaction(t,n).then((function(e){return e.forEach((function(e){if(!e.success)throw new Error("Transaction failed: "+e.vm_status+"\n"+JSON.stringify(e,null,2))}))}))];case 1:return r.sent(),[2,e.signTransaction(t,n).then((function(t){return e.submitTransaction(t)})).then((function(t){return e.waitForTransactionWithResult(t.hash)}))]}}))}))},Fm=n(5886).Buffer;function Zm(){var e=1e5*Math.random(),t=Fm.alloc(4);return t.writeUInt32LE(e,0),t}var Hm,zm,Qm=n(5886).Buffer,qm=function(e){var t=e.data;return JSON.parse(Qm.from("string"==typeof t?t:Qm.from(t).toString(),"base64").toString())},Vm=function(e,t,n){return function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var r,a,i,o,s,c,u;return function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function Iv(e,t){var n=e.logs.filter((function(e){return e.address===t}))[0];return _v.createInterface().parseLog(n).args.sequence.toString()}function Sv(e,t){return e.logs.filter((function(e){return e.address===t})).map((function(e){return _v.createInterface().parseLog(e).args.sequence.toString()}))}function Ev(e){var t="";return JSON.parse(e.raw_log).map((function(e){e.events.map((function(e){e.attributes.map((function(e){"message.sequence"===e.key&&(t=e.value)}))}))})),t.toString()}function Cv(e){var t="";return JSON.parse(e.raw_log).map((function(e){e.events.map((function(e){e.attributes.map((function(e){"message.sequence"===e.key&&(t=e.value)}))}))})),t.toString()}function Tv(e){var t=[];return JSON.parse(e.raw_log).map((function(e){e.events.map((function(e){e.attributes.map((function(e){"message.sequence"===e.key&&t.push(e.value.toString())}))}))})),t}function Ov(e){var t="";return JSON.parse(e.rawLog).map((function(e){e.events.map((function(e){e.attributes.map((function(e){"message.sequence"===e.key&&(t=e.value)}))}))})),t.toString()}var Pv="Program log: Sequence: ";function Mv(e){var t,n,r,a,i=null===(a=null===(r=null===(n=null===(t=e.meta)||void 0===t?void 0:t.logMessages)||void 0===n?void 0:n.filter((function(e){return e.startsWith(Pv)})))||void 0===r?void 0:r[0])||void 0===a?void 0:a.replace(Pv,"");if(!i)throw new Error("sequence not found");return i.toString()}function Bv(e){var t,n;return null===(n=null===(t=e.meta)||void 0===t?void 0:t.logMessages)||void 0===n?void 0:n.filter((function(e){return e.startsWith(Pv)})).map((function(e){return e.replace(Pv,"")}))}function Nv(e){var t="";return e["inner-txns"]&&e["inner-txns"].forEach((function(e){e.logs&&(t=Ch.O$.from(e.logs[0].slice(0,8)).toString())})),t}var Rv="EVENT_JSON:";function Dv(e){var t,n,r,a;try{for(var i=kv(e.receipts_outcome),o=i.next();!o.done;o=i.next()){var s=o.value;try{for(var c=(r=void 0,kv(s.outcome.logs)),u=c.next();!u.done;u=c.next()){var d=u.value;if(d.startsWith(Rv)){var f=JSON.parse(d.slice(Rv.length));if("wormhole"===f.standard&&"publish"===f.event)return f.seq.toString()}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(a=c.return)&&a.call(c)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return null}function jv(e,t){if(t.success){var n=t.events.find((function(t){return t.type===e+"::state::WormholeMessage"}));return(null==n?void 0:n.data.sequence)||null}return null}var Uv=n(94578),Lv=n(18669),Fv=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zv=[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"previousAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"beacon",type:"address"}],name:"BeaconUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldContract",type:"address"},{indexed:!0,internalType:"address",name:"newContract",type:"address"}],name:"ContractUpgraded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{inputs:[],name:"WETH",outputs:[{internalType:"contract IWETH",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"chainId_",type:"uint16"}],name:"bridgeContracts",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"chainId",outputs:[{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"evmChainId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"finality",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"hash",type:"bytes32"}],name:"governanceActionIsConsumed",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"governanceChainId",outputs:[{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"governanceContract",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"isFork",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"impl",type:"address"}],name:"isInitialized",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"hash",type:"bytes32"}],name:"isTransferCompleted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"isWrappedAsset",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"outstandingBridged",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"encodedRecoverChainId",type:"bytes"}],name:"parseRecoverChainId",outputs:[{components:[{internalType:"bytes32",name:"module",type:"bytes32"},{internalType:"uint8",name:"action",type:"uint8"},{internalType:"uint256",name:"evmChainId",type:"uint256"},{internalType:"uint16",name:"newChainId",type:"uint16"}],internalType:"struct BridgeStructs.RecoverChainId",name:"rci",type:"tuple"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"parseRegisterChain",outputs:[{components:[{internalType:"bytes32",name:"module",type:"bytes32"},{internalType:"uint8",name:"action",type:"uint8"},{internalType:"uint16",name:"chainId",type:"uint16"},{internalType:"uint16",name:"emitterChainID",type:"uint16"},{internalType:"bytes32",name:"emitterAddress",type:"bytes32"}],internalType:"struct BridgeStructs.RegisterChain",name:"chain",type:"tuple"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"parseUpgrade",outputs:[{components:[{internalType:"bytes32",name:"module",type:"bytes32"},{internalType:"uint8",name:"action",type:"uint8"},{internalType:"uint16",name:"chainId",type:"uint16"},{internalType:"bytes32",name:"newContract",type:"bytes32"}],internalType:"struct BridgeStructs.UpgradeContract",name:"chain",type:"tuple"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVM",type:"bytes"}],name:"registerChain",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVM",type:"bytes"}],name:"submitRecoverChainId",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"tokenImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVM",type:"bytes"}],name:"upgrade",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"wormhole",outputs:[{internalType:"contract IWormhole",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"tokenChainId",type:"uint16"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"}],name:"wrappedAsset",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"},{inputs:[{internalType:"address",name:"tokenAddress",type:"address"},{internalType:"uint32",name:"nonce",type:"uint32"}],name:"attestToken",outputs:[{internalType:"uint64",name:"sequence",type:"uint64"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint16",name:"recipientChain",type:"uint16"},{internalType:"bytes32",name:"recipient",type:"bytes32"},{internalType:"uint256",name:"arbiterFee",type:"uint256"},{internalType:"uint32",name:"nonce",type:"uint32"}],name:"wrapAndTransferETH",outputs:[{internalType:"uint64",name:"sequence",type:"uint64"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint16",name:"recipientChain",type:"uint16"},{internalType:"bytes32",name:"recipient",type:"bytes32"},{internalType:"uint32",name:"nonce",type:"uint32"},{internalType:"bytes",name:"payload",type:"bytes"}],name:"wrapAndTransferETHWithPayload",outputs:[{internalType:"uint64",name:"sequence",type:"uint64"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint16",name:"recipientChain",type:"uint16"},{internalType:"bytes32",name:"recipient",type:"bytes32"},{internalType:"uint256",name:"arbiterFee",type:"uint256"},{internalType:"uint32",name:"nonce",type:"uint32"}],name:"transferTokens",outputs:[{internalType:"uint64",name:"sequence",type:"uint64"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint16",name:"recipientChain",type:"uint16"},{internalType:"bytes32",name:"recipient",type:"bytes32"},{internalType:"uint32",name:"nonce",type:"uint32"},{internalType:"bytes",name:"payload",type:"bytes"}],name:"transferTokensWithPayload",outputs:[{internalType:"uint64",name:"sequence",type:"uint64"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVm",type:"bytes"}],name:"updateWrapped",outputs:[{internalType:"address",name:"token",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVm",type:"bytes"}],name:"createWrapped",outputs:[{internalType:"address",name:"token",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVm",type:"bytes"}],name:"completeTransferWithPayload",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVm",type:"bytes"}],name:"completeTransferAndUnwrapETHWithPayload",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVm",type:"bytes"}],name:"completeTransfer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"encodedVm",type:"bytes"}],name:"completeTransferAndUnwrapETH",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint8",name:"payloadID",type:"uint8"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"},{internalType:"uint16",name:"tokenChain",type:"uint16"},{internalType:"uint8",name:"decimals",type:"uint8"},{internalType:"bytes32",name:"symbol",type:"bytes32"},{internalType:"bytes32",name:"name",type:"bytes32"}],internalType:"struct BridgeStructs.AssetMeta",name:"meta",type:"tuple"}],name:"encodeAssetMeta",outputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"uint8",name:"payloadID",type:"uint8"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"},{internalType:"uint16",name:"tokenChain",type:"uint16"},{internalType:"bytes32",name:"to",type:"bytes32"},{internalType:"uint16",name:"toChain",type:"uint16"},{internalType:"uint256",name:"fee",type:"uint256"}],internalType:"struct BridgeStructs.Transfer",name:"transfer",type:"tuple"}],name:"encodeTransfer",outputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"uint8",name:"payloadID",type:"uint8"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"},{internalType:"uint16",name:"tokenChain",type:"uint16"},{internalType:"bytes32",name:"to",type:"bytes32"},{internalType:"uint16",name:"toChain",type:"uint16"},{internalType:"bytes32",name:"fromAddress",type:"bytes32"},{internalType:"bytes",name:"payload",type:"bytes"}],internalType:"struct BridgeStructs.TransferWithPayload",name:"transfer",type:"tuple"}],name:"encodeTransferWithPayload",outputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"parsePayloadID",outputs:[{internalType:"uint8",name:"payloadID",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"parseAssetMeta",outputs:[{components:[{internalType:"uint8",name:"payloadID",type:"uint8"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"},{internalType:"uint16",name:"tokenChain",type:"uint16"},{internalType:"uint8",name:"decimals",type:"uint8"},{internalType:"bytes32",name:"symbol",type:"bytes32"},{internalType:"bytes32",name:"name",type:"bytes32"}],internalType:"struct BridgeStructs.AssetMeta",name:"meta",type:"tuple"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"parseTransfer",outputs:[{components:[{internalType:"uint8",name:"payloadID",type:"uint8"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"},{internalType:"uint16",name:"tokenChain",type:"uint16"},{internalType:"bytes32",name:"to",type:"bytes32"},{internalType:"uint16",name:"toChain",type:"uint16"},{internalType:"uint256",name:"fee",type:"uint256"}],internalType:"struct BridgeStructs.Transfer",name:"transfer",type:"tuple"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"parseTransferWithPayload",outputs:[{components:[{internalType:"uint8",name:"payloadID",type:"uint8"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"},{internalType:"uint16",name:"tokenChain",type:"uint16"},{internalType:"bytes32",name:"to",type:"bytes32"},{internalType:"uint16",name:"toChain",type:"uint16"},{internalType:"bytes32",name:"fromAddress",type:"bytes32"},{internalType:"bytes",name:"payload",type:"bytes"}],internalType:"struct BridgeStructs.TransferWithPayload",name:"transfer",type:"tuple"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"encoded",type:"bytes"}],name:"_parseTransferCommon",outputs:[{components:[{internalType:"uint8",name:"payloadID",type:"uint8"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes32",name:"tokenAddress",type:"bytes32"},{internalType:"uint16",name:"tokenChain",type:"uint16"},{internalType:"bytes32",name:"to",type:"bytes32"},{internalType:"uint16",name:"toChain",type:"uint16"},{internalType:"uint256",name:"fee",type:"uint256"}],internalType:"struct BridgeStructs.Transfer",name:"transfer",type:"tuple"}],stateMutability:"pure",type:"function"}],Hv="0x608060405234801561001057600080fd5b506001600d55615b33806100256000396000f3fe6080604052600436106200027b5760003560e01c8063ad5c46481162000153578063cb4cfea811620000c5578063e89bc4011162000084578063e89bc401146200094e578063ea63738d1462000973578063f768441f14620009a7578063fbe3c2cd14620009cc578063fbeeacd914620009ed578063ff200cde1462000a4d57600080fd5b8063cb4cfea8146200084f578063d56e2e2414620008af578063d60b347f14620008d4578063e039f2241462000911578063e8059810146200092957600080fd5b8063bee9cdfc1162000112578063bee9cdfc14620007c0578063c3f511c114620007d7578063c48fa11514620007fc578063c5a5ebda1462000813578063c6878519146200082a57600080fd5b8063ad5c464814620006f5578063ad66a5f11462000715578063b046223b146200074a578063b172b222146200076f578063b96c7e4d146200078657600080fd5b80632c3c02a411620001ed57806384acd1bb11620001ac57806384acd1bb146200063b5780639981509f146200065b5780639a8a05921462000672578063a5799f93146200069c578063aa4efa5b14620006c157600080fd5b80632c3c02a4146200057f5780632f3a3d5d14620005b35780635f85426614620005d357806364d42b1714620005f8578063739fc8d1146200061957600080fd5b80631a2be4da116200023a5780631a2be4da14620004115780631c8475e4146200045f5780631ff1e28614620004935780632539464514620004d15780632b51137514620004f657600080fd5b806301f53255146200028857806307dfd8fb14620003065780630f50900814620003825780630f5287b014620003ba578063178149e714620003ea57600080fd5b366200028357005b600080fd5b3480156200029557600080fd5b50620002ad620002a7366004620045a7565b62000a72565b604051620002fd9190600060a0820190508251825260ff6020840151166020830152604083015161ffff808216604085015280606086015116606085015250506080830151608083015292915050565b60405180910390f35b3480156200031357600080fd5b506200032b62000325366004620045a7565b62000bee565b604051620002fd9190600060c08201905060ff83511682526020830151602083015261ffff604084015116604083015260ff60608401511660608301526080830151608083015260a083015160a083015292915050565b3480156200038f57600080fd5b50620003a7620003a1366004620045a7565b62000d7d565b60405160ff9091168152602001620002fd565b620003d1620003cb36600462004426565b62000d91565b6040516001600160401b039091168152602001620002fd565b348015620003f757600080fd5b506200040f62000409366004620045a7565b62000e35565b005b3480156200041e57600080fd5b506200044e6200043036600462004409565b6001600160a01b031660009081526009602052604090205460ff1690565b6040519015158152602001620002fd565b3480156200046c57600080fd5b50620004846200047e366004620045a7565b62000f51565b604051620002fd919062004c0b565b348015620004a057600080fd5b50620004b8620004b2366004620049d1565b62000f60565b6040516001600160a01b039091168152602001620002fd565b348015620004de57600080fd5b506200040f620004f0366004620045a7565b62000f8c565b3480156200050357600080fd5b506200051b62000515366004620045a7565b6200109c565b604051620002fd9190600060e08201905060ff83511682526020830151602083015260408301516040830152606083015161ffff8082166060850152608085015160808501528060a08601511660a0850152505060c083015160c083015292915050565b3480156200058c57600080fd5b506200044e6200059e36600462004575565b60009081526005602052604090205460ff1690565b348015620005c057600080fd5b506001546001600160a01b0316620004b8565b348015620005e057600080fd5b5062000484620005f23660046200477f565b6200120d565b3480156200060557600080fd5b50600c545b604051908152602001620002fd565b3480156200062657600080fd5b50600254640100000000900460ff16620003a7565b3480156200064857600080fd5b506000546001600160a01b0316620004b8565b620003d16200066c366004620049ff565b620012a2565b3480156200067f57600080fd5b5060025461ffff165b60405161ffff9091168152602001620002fd565b348015620006a957600080fd5b506200040f620006bb366004620045a7565b620012e2565b348015620006ce57600080fd5b506200044e620006e036600462004575565b60009081526006602052604090205460ff1690565b3480156200070257600080fd5b506004546001600160a01b0316620004b8565b3480156200072257600080fd5b506200060a6200073436600462004993565b61ffff166000908152600b602052604090205490565b3480156200075757600080fd5b50620004846200076936600462004613565b6200144e565b3480156200077c57600080fd5b506003546200060a565b3480156200079357600080fd5b506200060a620007a536600462004409565b6001600160a01b03166000908152600a602052604090205490565b620003d1620007d136600462004a4d565b620014c7565b348015620007e457600080fd5b5062000484620007f6366004620045a7565b620014fa565b620003d16200080d3660046200451d565b62001509565b620003d16200082436600462004491565b6200182e565b3480156200083757600080fd5b506200040f62000849366004620045a7565b620018bd565b3480156200085c57600080fd5b50620008746200086e366004620045a7565b620018ce565b604051620002fd91908151815260208083015160ff16908201526040808301519082015260609182015161ffff169181019190915260800190565b348015620008bc57600080fd5b5062000484620008ce366004620046ad565b620019cd565b348015620008e157600080fd5b506200044e620008f336600462004409565b6001600160a01b031660009081526007602052604090205460ff1690565b3480156200091e57600080fd5b506200044e62001a10565b3480156200093657600080fd5b50620004b862000948366004620045a7565b62001a24565b3480156200095b57600080fd5b506200051b6200096d366004620045a7565b62001b39565b3480156200098057600080fd5b506200099862000992366004620045a7565b62001c45565b604051620002fd919062004d6f565b348015620009b457600080fd5b50620004b8620009c6366004620045a7565b62001dc2565b348015620009d957600080fd5b5060025462010000900461ffff1662000688565b348015620009fa57600080fd5b5062000a1262000a0c366004620045a7565b62001ed7565b604051620002fd91908151815260208083015160ff169082015260408083015161ffff16908201526060918201519181019190915260800190565b34801562000a5a57600080fd5b506200040f62000a6c366004620045a7565b62001fd6565b6040805160a08101825260008082526020820181905291810182905260608101829052608081018290529062000aa9838262001fe3565b825262000ab860208262004ef2565b82519091506a546f6b656e4272696467651462000af25760405162461bcd60e51b815260040162000ae99062004d23565b60405180910390fd5b62000afe838262002045565b60ff16602083015262000b1360018262004ef2565b9050816020015160ff1660011462000b3f5760405162461bcd60e51b815260040162000ae99062004d49565b62000b4b8382620020a5565b61ffff16604083015262000b6160028262004ef2565b905062000b6f8382620020a5565b61ffff16606083015262000b8560028262004ef2565b905062000b93838262001fe3565b608083015262000ba560208262004ef2565b90508083511462000be85760405162461bcd60e51b815260206004820152600c60248201526b0eee4dedcce40d8cadccee8d60a31b604482015260640162000ae9565b50919050565b6040805160c081018252600080825260208201819052918101829052606081018290526080810182905260a081018290529062000c2c838262002045565b60ff16825262000c3e60018262004ef2565b9050816000015160ff1660021462000c8d5760405162461bcd60e51b8152602060048201526011602482015270696e76616c69642041737365744d65746160781b604482015260640162000ae9565b62000c99838262001fe3565b60208084019190915262000cae908262004ef2565b905062000cbc8382620020a5565b61ffff16604083015262000cd260028262004ef2565b905062000ce0838262002045565b60ff16606083015262000cf560018262004ef2565b905062000d03838262001fe3565b608083015262000d1560208262004ef2565b905062000d23838262001fe3565b60a083015262000d3560208262004ef2565b90508083511462000be85760405162461bcd60e51b8152602060048201526011602482015270696e76616c69642041737365744d65746160781b604482015260640162000ae9565b600062000d8b828262002045565b92915050565b60006002600d54141562000de85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640162000ae9565b6002600d55600062000dfc88888662002106565b905062000e248160000151826020015183604001518989866060015187608001518a620025b6565b6001600d5598975050505050505050565b62000e3f62001a10565b62000e7a5760405162461bcd60e51b815260206004820152600a6024820152696e6f74206120666f726b60b01b604482015260640162000ae9565b600080600062000e8a84620026ea565b92509250925081819062000eb35760405162461bcd60e51b815260040162000ae9919062004c0b565b5062000ec483610140015162002919565b600062000ed58460e00151620018ce565b90504681604001511462000f205760405162461bcd60e51b815260206004820152601160248201527034b73b30b634b21022ab269021b430b4b760791b604482015260640162000ae9565b62000f2f816040015162002934565b60608101516002805461ffff191661ffff9092169190911790555b5050505050565b606062000d8b8260016200297f565b61ffff91909116600090815260086020908152604080832093835292905220546001600160a01b031690565b62000f9662001a10565b1562000fd45760405162461bcd60e51b815260206004820152600c60248201526b696e76616c696420666f726b60a01b604482015260640162000ae9565b600080600062000fe484620026ea565b9250925092508181906200100d5760405162461bcd60e51b815260040162000ae9919062004c0b565b506200101e83610140015162002919565b60006200102f8460e0015162001ed7565b90506200103f60025461ffff1690565b61ffff16816040015161ffff16146200108c5760405162461bcd60e51b815260206004820152600e60248201526d1ddc9bdb99c818da185a5b881a5960921b604482015260640162000ae9565b606081015162000f4a90620030f2565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905290620010e1838262002045565b60ff168252620010f360018262004ef2565b9050816000015160ff166001146200111f5760405162461bcd60e51b815260040162000ae99062004cf9565b6200112b838262003229565b60208084019190915262001140908262004ef2565b90506200114e838262001fe3565b60408301526200116060208262004ef2565b90506200116e8382620020a5565b61ffff1660608301526200118460028262004ef2565b905062001192838262001fe3565b6080830152620011a460208262004ef2565b9050620011b28382620020a5565b61ffff1660a0830152620011c860028262004ef2565b9050620011d6838262003229565b60c0830152620011e860208262004ef2565b90508083511462000be85760405162461bcd60e51b815260040162000ae99062004cf9565b8051602080830151604080850151606080870151608088015160a089015160c08a0151955160f89990991b6001600160f81b031916978901979097526021880195909552604187019290925260f091821b6001600160f01b03199081166061880152606387019490945293901b909116608384015260858301529060a5015b6040516020818303038152906040529050919050565b600080620012b08462003282565b9050620012d88160000151826020015183604001518989866060015187608001518a620025b6565b9695505050505050565b6000806000620012f284620026ea565b9250925092508181906200131b5760405162461bcd60e51b815260040162000ae9919062004c0b565b506200132c83610140015162002919565b60006200133d8460e0015162000a72565b90506200134d60025461ffff1690565b61ffff16816040015161ffff161480156200136f57506200136d62001a10565b155b80620013815750604081015161ffff16155b620013c25760405162461bcd60e51b815260206004820152601060248201526f1a5b9d985b1a590818da185a5b881a5960821b604482015260640162000ae9565b606081015161ffff166000908152600b602052604081205414620014295760405162461bcd60e51b815260206004820152601860248201527f636861696e20616c726561647920726567697374657265640000000000000000604482015260640162000ae9565b62000f4a8160600151826080015161ffff9091166000908152600b6020526040902055565b8051602080830151604080850151606080870151608088015160a0890151945160f898891b6001600160f81b031990811698820198909852602181019690965260f09390931b6001600160f01b031916604186015290951b9093166043830152604482019290925260648101919091526084016200128c565b600080620014d6600062003282565b9050620012d8816000015182602001518360400151898986608001518a8a6200355c565b606062000d8b8260006200297f565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b179052905160009182916001600160a01b038616916200154e9162004b28565b600060405180830381855afa9150503d80600081146200158b576040519150601f19603f3d011682016040523d82523d6000602084013e62001590565b606091505b5060408051600481526024810182526020810180516001600160e01b03166395d89b4160e01b1790529051919350600092506001600160a01b03871691620015d9919062004b28565b600060405180830381855afa9150503d806000811462001616576040519150601f19603f3d011682016040523d82523d6000602084013e6200161b565b606091505b5060408051600481526024810182526020810180516001600160e01b03166306fdde0360e01b1790529051919350600092506001600160a01b0388169162001664919062004b28565b600060405180830381855afa9150503d8060008114620016a1576040519150601f19603f3d011682016040523d82523d6000602084013e620016a6565b606091505b50915050600083806020019051810190620016c2919062004adb565b9050600083806020019051810190620016dc9190620045dd565b9050600083806020019051810190620016f69190620045dd565b9050600080602084015191506020830151905060006040518060c00160405280600260ff1681526020018d6001600160a01b031660001b81526020016200174060025461ffff1690565b61ffff1681526020018760ff16815260200184815260200183815250905060006200176b826200144e565b9050620017806000546001600160a01b031690565b6001600160a01b031663b19a437e348e84620017a760025460ff6401000000009091041690565b6040518563ffffffff1660e01b8152600401620017c79392919062004dea565b6020604051808303818588803b158015620017e157600080fd5b505af1158015620017f6573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906200181d919062004abe565b9d9c50505050505050505050505050565b60006002600d541415620018855760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640162000ae9565b6002600d5560006200189988888362002106565b905062000e24816000015182602001518360400151898986608001518a8a6200355c565b620018ca8160006200297f565b5050565b604080516080810182526000808252602082018190529181018290526060810182905290620018fe838262001fe3565b82526200190d60208262004ef2565b82519091506a546f6b656e427269646765146200193e5760405162461bcd60e51b815260040162000ae99062004d23565b6200194a838262002045565b60ff1660208301526200195f60018262004ef2565b9050816020015160ff166003146200198b5760405162461bcd60e51b815260040162000ae99062004d49565b62001997838262003229565b6040830152620019a960208262004ef2565b9050620019b78382620020a5565b61ffff16606083015262000ba560028262004ef2565b6060816000015182602001518360400151846060015185608001518660a001518760c001518860e001516040516020016200128c98979695949392919062004b79565b60004662001a1d600c5490565b1415905090565b60008060008062001a3d6000546001600160a01b031690565b6001600160a01b031663c0fd8bde866040518263ffffffff1660e01b815260040162001a6a919062004c0b565b60006040518083038186803b15801562001a8357600080fd5b505afa15801562001a98573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262001ac2919081019062004824565b92509250925081819062001aeb5760405162461bcd60e51b815260040162000ae9919062004c0b565b5062001af783620035cf565b62001b165760405162461bcd60e51b815260040162000ae99062004cd0565b600062001b278460e0015162000bee565b9050620012d8818560a001516200363c565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c081018290529062001b7d8362000d7d565b90508060ff166001141562001b9f5762001b97836200109c565b915062000be8565b8060ff166003141562001c0757600062001bb98462001c45565b60038452602080820151908501526040808201519085015260608082015161ffff908116918601919091526080808301519086015260a091820151169084015250600060c083015262000be8565b60405162461bcd60e51b8152602060048201526012602482015271125b9d985b1a59081c185e5b1bd859081a5960721b604482015260640162000ae9565b604080516101008101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e08201529062001c91838262002045565b60ff16825262001ca360018262004ef2565b9050816000015160ff1660031462001ccf5760405162461bcd60e51b815260040162000ae99062004cf9565b62001cdb838262003229565b60208084019190915262001cf0908262004ef2565b905062001cfe838262001fe3565b604083015262001d1060208262004ef2565b905062001d1e8382620020a5565b61ffff16606083015262001d3460028262004ef2565b905062001d42838262001fe3565b608083015262001d5460208262004ef2565b905062001d628382620020a5565b61ffff1660a083015262001d7860028262004ef2565b905062001d86838262001fe3565b60c083015262001d9860208262004ef2565b905062001db78182855162001dae919062005058565b859190620038ed565b60e083015250919050565b60008060008062001ddb6000546001600160a01b031690565b6001600160a01b031663c0fd8bde866040518263ffffffff1660e01b815260040162001e08919062004c0b565b60006040518083038186803b15801562001e2157600080fd5b505afa15801562001e36573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262001e60919081019062004824565b92509250925081819062001e895760405162461bcd60e51b815260040162000ae9919062004c0b565b5062001e9583620035cf565b62001eb45760405162461bcd60e51b815260040162000ae99062004cd0565b600062001ec58460e0015162000bee565b9050620012d8818560a0015162003a08565b60408051608081018252600080825260208201819052918101829052606081018290529062001f07838262001fe3565b825262001f1660208262004ef2565b82519091506a546f6b656e4272696467651462001f475760405162461bcd60e51b815260040162000ae99062004d23565b62001f53838262002045565b60ff16602083015262001f6860018262004ef2565b9050816020015160ff1660021462001f945760405162461bcd60e51b815260040162000ae99062004d49565b62001fa08382620020a5565b61ffff16604083015262001fb660028262004ef2565b905062001fc4838262001fe3565b606083015262000ba560208262004ef2565b620018ca8160016200297f565b600062001ff282602062004ef2565b835110156200203c5760405162461bcd60e51b8152602060048201526015602482015274746f427974657333325f6f75744f66426f756e647360581b604482015260640162000ae9565b50016020015190565b60006200205482600162004ef2565b835110156200209c5760405162461bcd60e51b8152602060048201526013602482015272746f55696e74385f6f75744f66426f756e647360681b604482015260640162000ae9565b50016001015190565b6000620020b482600262004ef2565b83511015620020fd5760405162461bcd60e51b8152602060048201526014602482015273746f55696e7431365f6f75744f66426f756e647360601b604482015260640162000ae9565b50016002015190565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091526001600160a01b038416600090815260096020526040812054819060ff16156200224957856001600160a01b0316639a8a05926040518163ffffffff1660e01b815260040160206040518083038186803b1580156200218f57600080fd5b505afa158015620021a4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620021ca9190620049b2565b9150856001600160a01b0316633d6c043b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200220657600080fd5b505afa1580156200221b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200224191906200458e565b90506200225d565b505060025461ffff166001600160a01b0385165b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b17905290516000916001600160a01b03891691620022a1919062004b28565b600060405180830381855afa9150503d8060008114620022de576040519150601f19603f3d011682016040523d82523d6000602084013e620022e3565b606091505b50915050600081806020019051810190620022ff919062004adb565b90506200231862002311888362003b03565b8262003b42565b96506200232860025461ffff1690565b61ffff168461ffff161415620024c857604080513060248083019190915282518083039091018152604490910182526020810180516001600160e01b03166370a0823160e01b17905290516000916001600160a01b038b16916200238d919062004b28565b600060405180830381855afa9150503d8060008114620023ca576040519150601f19603f3d011682016040523d82523d6000602084013e620023cf565b606091505b50915050600081806020019051810190620023eb91906200458e565b9050620023fb8a33308c62003b77565b604080513060248083019190915282518083039091018152604490910182526020810180516001600160e01b03166370a0823160e01b17905290516000916001600160a01b038d169162002450919062004b28565b600060405180830381855afa9150503d80600081146200248d576040519150601f19603f3d011682016040523d82523d6000602084013e62002492565b606091505b50915050600081806020019051810190620024ae91906200458e565b9050620024bc838262005058565b9a505050505062002539565b620024d68833308a62003b77565b604051632770a7eb60e21b8152306004820152602481018890526001600160a01b03891690639dc29fac90604401600060405180830381600087803b1580156200251f57600080fd5b505af115801562002534573d6000803e3d6000fd5b505050505b600062002547888362003b03565b9050600062002557888462003b03565b90506200256760025461ffff1690565b61ffff168661ffff1614156200258357620025838a8362003bea565b6040805160a08101825261ffff909716875260208701959095529385015250506060820152346080820152949350505050565b600086841115620025ff5760405162461bcd60e51b815260206004820152601260248201527119995948195e18d959591cc8185b5bdd5b9d60721b604482015260640162000ae9565b6040805160e081018252600181526020810189905290810189905261ffff8a8116606083015260808201879052871660a082015260c081018590526000546001600160a01b031663b19a437e858562002658856200120d565b600254640100000000900460ff166040518563ffffffff1660e01b8152600401620026869392919062004dea565b6020604051808303818588803b158015620026a057600080fd5b505af1158015620026b5573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190620026dc919062004abe565b9a9950505050505050505050565b604080516101608101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820181905261010082018390526101208201526101408101919091526000606060008060006200275e6000546001600160a01b031690565b6001600160a01b031663c0fd8bde886040518263ffffffff1660e01b81526004016200278b919062004c0b565b60006040518083038186803b158015620027a457600080fd5b505afa158015620027b9573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620027e3919081019062004824565b92509250925081620027fc579194509250905062002912565b60025462010000900461ffff1661ffff16836060015161ffff16146200285a5750506040805180820190915260168152753bb937b7339033b7bb32b93730b731b29031b430b4b760511b602082015290935060009250905062002912565b600354836080015114620028ad57505060408051808201909152601981527f77726f6e6720676f7665726e616e636520636f6e747261637400000000000000602082015290935060009250905062002912565b61014083015160009081526005602052604090205460ff1615620028f75782600060405180606001604052806022815260200162005adc6022913995509550955050505062002912565b50506040805160208101909152600081529093506001925090505b9193909250565b6000908152600560205260409020805460ff19166001179055565b4681146200297a5760405162461bcd60e51b81526020600482015260126024820152711a5b9d985b1a5908195d9b50da185a5b925960721b604482015260640162000ae9565b600c55565b60606000806000620029996000546001600160a01b031690565b6001600160a01b031663c0fd8bde876040518263ffffffff1660e01b8152600401620029c6919062004c0b565b60006040518083038186803b158015620029df57600080fd5b505afa158015620029f4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f1916820160405262002a1e919081019062004824565b92509250925081819062002a475760405162461bcd60e51b815260040162000ae9919062004c0b565b5062002a5383620035cf565b62002a725760405162461bcd60e51b815260040162000ae99062004cd0565b600062002a838460e0015162001b39565b9050600062002a96826080015162003cb7565b9050816000015160ff166003141562002af457336001600160a01b0382161462002af45760405162461bcd60e51b815260206004820152600e60248201526d34b73b30b634b21039b2b73232b960911b604482015260640162000ae9565b61014085015160009081526006602052604090205460ff161562002b5b5760405162461bcd60e51b815260206004820152601a60248201527f7472616e7366657220616c726561647920636f6d706c65746564000000000000604482015260640162000ae9565b62002b808561014001516000908152600660205260409020805460ff19166001179055565b60025461ffff1661ffff168260a0015161ffff161462002bda5760405162461bcd60e51b815260206004820152601460248201527334b73b30b634b2103a30b933b2ba1031b430b4b760611b604482015260640162000ae9565b600062002bea60025461ffff1690565b61ffff16836060015161ffff16141562002c255762002c0d836040015162003cb7565b905062002c1f81846020015162003d0d565b62002ca6565b600062002c3b8460600151856040015162000f60565b90506001600160a01b03811662002ca35760405162461bcd60e51b815260206004820152602560248201527f6e6f207772617070657220666f72207468697320746f6b656e2063726561746560448201526419081e595d60da1b606482015260840162000ae9565b90505b87158062002cc157506004546001600160a01b038281169116145b62002d1b5760405162461bcd60e51b815260206004820152602360248201527f696e76616c696420746f6b656e2c2063616e206f6e6c7920756e77726170205760448201526208aa8960eb1b606482015260840162000ae9565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b17905290516000916001600160a01b0384169162002d5f919062004b28565b600060405180830381855afa9150503d806000811462002d9c576040519150601f19603f3d011682016040523d82523d6000602084013e62002da1565b606091505b5091505060008180602001905181019062002dbd919062004adb565b9050600062002dd186602001518362003b42565b9050600062002de58760c001518462003b42565b905060008111801562002e0157506001600160a01b0386163314155b1562002f93578181111562002e645760405162461bcd60e51b815260206004820152602260248201527f66656520686967686572207468616e207472616e7366657272656420616d6f756044820152611b9d60f21b606482015260840162000ae9565b8b1562002efe5760048054604051632e1a7d4d60e01b81529182018390526001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801562002eb057600080fd5b505af115801562002ec5573d6000803e3d6000fd5b505060405133925083156108fc02915083906000818181858888f1935050505015801562002ef7573d6000803e3d6000fd5b5062002f97565b60025461ffff1661ffff16876060015161ffff161462002f80576040516340c10f1960e01b8152336004820152602481018290526001600160a01b038616906340c10f1990604401600060405180830381600087803b15801562002f6157600080fd5b505af115801562002f76573d6000803e3d6000fd5b5050505062002f97565b62002f8d85338362003d3f565b62002f97565b5060005b600062002fa5828462005058565b90508c156200304a5760048054604051632e1a7d4d60e01b81529182018390526001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801562002ff357600080fd5b505af115801562003008573d6000803e3d6000fd5b50506040516001600160a01b038a16925083156108fc02915083906000818181858888f1935050505015801562003043573d6000803e3d6000fd5b50620030db565b60025461ffff1661ffff16886060015161ffff1614620030ce576040516340c10f1960e01b81526001600160a01b038881166004830152602482018390528716906340c10f1990604401600060405180830381600087803b158015620030af57600080fd5b505af1158015620030c4573d6000803e3d6000fd5b50505050620030db565b620030db86888362003d3f565b50505060e0909701519a9950505050505050505050565b6000620031267f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b9050620031338262003d71565b60408051600481526024810182526020810180516001600160e01b031663204a7f0760e21b179052905160009182916001600160a01b03861691620031789162004b28565b600060405180830381855af49150503d8060008114620031b5576040519150601f19603f3d011682016040523d82523d6000602084013e620031ba565b606091505b5091509150818190620031e25760405162461bcd60e51b815260040162000ae9919062004c0b565b50836001600160a01b0316836001600160a01b03167f2e4cc16c100f0b55e2df82ab0b1a7e294aa9cbd01b48fbaf622683fbc0507a4960405160405180910390a350505050565b60006200323882602062004ef2565b835110156200203c5760405162461bcd60e51b8152602060048201526015602482015274746f55696e743235365f6f75744f66426f756e647360581b604482015260640162000ae9565b6040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600080546001600160a01b03166001600160a01b0316631a90a2196040518163ffffffff1660e01b815260040160206040518083038186803b158015620032f357600080fd5b505afa15801562003308573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200332e91906200458e565b90503481106200338c5760405162461bcd60e51b815260206004820152602260248201527f76616c756520697320736d616c6c6572207468616e20776f726d686f6c652066604482015261656560f01b606482015260840162000ae9565b60006200339a823462005058565b905080841115620034035760405162461bcd60e51b815260206004820152602c60248201527f66656520697320626967676572207468616e20616d6f756e74206d696e75732060448201526b776f726d686f6c652066656560a01b606482015260840162000ae9565b60006200341282601262003b03565b905060006200342386601262003b03565b905060006200343483601262003b42565b62003440908562005058565b905080156200347957604051339082156108fc029083906000818181858888f1935050505015801562003477573d6000803e3d6000fd5b505b6004546001600160a01b031663d0e30db062003496838762005058565b6040518263ffffffff1660e01b81526004016000604051808303818588803b158015620034c257600080fd5b505af1158015620034d7573d6000803e3d6000fd5b5050505050620034fa620034f36004546001600160a01b031690565b8462003bea565b6040518060a001604052806200351360025461ffff1690565b61ffff1681526020016200352f6004546001600160a01b031690565b6001600160a01b031660001b81526020018481526020018381526020018681525095505050505050919050565b6040805161010081018252600381526020810188905290810188905261ffff808a16606083015260808201869052861660a08201523360c082015260e08101829052600090620035b46000546001600160a01b031690565b6001600160a01b031663b19a437e86866200265885620019cd565b6000620035db62001a10565b15620036195760405162461bcd60e51b815260206004820152600c60248201526b696e76616c696420666f726b60a01b604482015260640162000ae9565b50608081015160609091015161ffff166000908152600b60205260409020541490565b60006200364c60025461ffff1690565b61ffff16836040015161ffff161415620036ba5760405162461bcd60e51b815260206004820152602860248201527f63616e206f6e6c79207772617020746f6b656e732066726f6d20666f726569676044820152676e20636861696e7360c01b606482015260840162000ae9565b60006001600160a01b0316620036d98460400151856020015162000f60565b6001600160a01b031614620037315760405162461bcd60e51b815260206004820152601c60248201527f7772617070656420617373657420616c72656164792065786973747300000000604482015260640162000ae9565b600063c71f461560e01b6200374a8560a0015162003db3565b62003759866080015162003db3565b8660600151863089604001518a6020015160405160240162003782979695949392919062004c63565b60408051601f19818403018152918152602080830180516001600160e01b03166001600160e01b03199095169490941790935251909250600091620037cc91309185910162004be5565b6040516020818303038152906040529050600060405180602001620037f190620041f7565b601f1982820381018352601f909101166040819052620038179190849060200162004b46565b60405160208183030381529060405290506000866040015187602001516040516020016200385e92919060f09290921b6001600160f01b0319168252600282015260220190565b604051602081830303815290604052805190602001209050808251602084016000f59450843b6200388e57600080fd5b6040808801516020808a015161ffff90921660009081526008825283812092815291815282822080546001600160a01b0319166001600160a01b038a1690811790915582526009905220805460ff191660011790555050505092915050565b606081620038fd81601f62004ef2565b10156200393e5760405162461bcd60e51b815260206004820152600e60248201526d736c6963655f6f766572666c6f7760901b604482015260640162000ae9565b6200394a828462004ef2565b84511015620039905760405162461bcd60e51b8152602060048201526011602482015270736c6963655f6f75744f66426f756e647360781b604482015260640162000ae9565b606082158015620039b15760405191506000825260208201604052620039fd565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015620039ec578051835260209283019201620039d2565b5050858452601f01601f1916604052505b5090505b9392505050565b60008062003a1f8460400151856020015162000f60565b90506001600160a01b03811662003a795760405162461bcd60e51b815260206004820152601d60248201527f7772617070656420617373657420646f6573206e6f7420657869737473000000604482015260640162000ae9565b806001600160a01b031663a18cd7c662003a978660a0015162003db3565b62003aa6876080015162003db3565b866040518463ffffffff1660e01b815260040162003ac79392919062004c20565b600060405180830381600087803b15801562003ae257600080fd5b505af115801562003af7573d6000803e3d6000fd5b50929695505050505050565b600060088260ff16111562003b3b5762003b1f60088362005072565b62003b2c90600a62004f77565b62003b38908462004f0d565b92505b5090919050565b600060088260ff16111562003b3b5762003b5e60088362005072565b62003b6b90600a62004f77565b62003b38908462005036565b6040516001600160a01b038085166024830152831660448201526064810182905262003be49085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915262003eee565b50505050565b6001600160a01b0382166000908152600a60205260409020546001600160401b0362003c17838362004ef2565b111562003c855760405162461bcd60e51b815260206004820152603560248201527f7472616e736665722065786365656473206d6178206f75747374616e64696e6760448201527408189c9a5919d959081d1bdad95b88185b5bdd5b9d605a1b606482015260840162000ae9565b62003cb28362003c96848462004ef2565b6001600160a01b039091166000908152600a6020526040902055565b505050565b60006001600160a01b031982161562003d095760405162461bcd60e51b8152602060048201526013602482015272696e76616c69642045564d206164647265737360681b604482015260640162000ae9565b5090565b620018ca828262003d33856001600160a01b03166000908152600a602052604090205490565b62003c96919062005058565b6040516001600160a01b03831660248201526044810182905262003cb290849063a9059cbb60e01b9060640162003bac565b62003d7c8162003fc7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b606060005b60208110801562003df6575082816020811062003de557634e487b7160e01b600052603260045260246000fd5b1a60f81b6001600160f81b03191615155b1562003e11578062003e0881620050c7565b91505062003db8565b6000816001600160401b0381111562003e3a57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801562003e65576020820181803683370190505b50905060005b8281101562003ee65784816020811062003e9557634e487b7160e01b600052603260045260246000fd5b1a60f81b82828151811062003eba57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053508062003edd81620050c7565b91505062003e6b565b509392505050565b600062003f45826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166200406e9092919063ffffffff16565b80519091501562003cb2578080602001905181019062003f66919062004558565b62003cb25760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840162000ae9565b803b6200402d5760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b606482015260840162000ae9565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc80546001600160a01b0319166001600160a01b0392909216919091179055565b60606200407f848460008562004087565b949350505050565b606082471015620040ea5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840162000ae9565b843b6200413a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640162000ae9565b600080866001600160a01b0316858760405162004158919062004b28565b60006040518083038185875af1925050503d806000811462004197576040519150601f19603f3d011682016040523d82523d6000602084013e6200419c565b606091505b5091509150620041ae828286620041b9565b979650505050505050565b60608315620041ca57508162003a01565b825115620041db5782518084602001fd5b8160405162461bcd60e51b815260040162000ae9919062004c0b565b610993806200514983390190565b80356001600160a01b03811681146200421d57600080fd5b919050565b600082601f83011262004233578081fd5b815160206001600160401b03821115620042515762004251620050fb565b62004261818360051b0162004e95565b80838252828201915082860187848660071b890101111562004281578586fd5b855b85811015620042f157608080838b0312156200429d578788fd5b620042a762004e1e565b835181528684015187820152604080850151620042c48162005138565b90820152606084810151620042d98162005138565b90820152855293850193919091019060010162004283565b5090979650505050505050565b805180151581146200421d57600080fd5b600082601f83011262004320578081fd5b813562004337620043318262004ec8565b62004e95565b8181528460208386010111156200434c578283fd5b816020850160208301379081016020019190915292915050565b600082601f83011262004377578081fd5b815162004388620043318262004ec8565b8181528460208386010111156200439d578283fd5b6200407f82602083016020870162005098565b80356200421d8162005111565b80516200421d8162005111565b80516200421d8162005125565b80516001600160401b03811681146200421d57600080fd5b80356200421d8162005138565b80516200421d8162005138565b6000602082840312156200441b578081fd5b62003a018262004205565b60008060008060008060c087890312156200443f578182fd5b6200444a8762004205565b9550602087013594506040870135620044638162005111565b9350606087013592506080870135915060a0870135620044838162005125565b809150509295509295509295565b60008060008060008060c08789031215620044aa578384fd5b620044b58762004205565b9550602087013594506040870135620044ce8162005111565b9350606087013592506080870135620044e78162005125565b915060a08701356001600160401b0381111562004502578182fd5b6200451089828a016200430f565b9150509295509295509295565b6000806040838503121562004530578182fd5b6200453b8362004205565b915060208301356200454d8162005125565b809150509250929050565b6000602082840312156200456a578081fd5b62003a0182620042fe565b60006020828403121562004587578081fd5b5035919050565b600060208284031215620045a0578081fd5b5051919050565b600060208284031215620045b9578081fd5b81356001600160401b03811115620045cf578182fd5b6200407f848285016200430f565b600060208284031215620045ef578081fd5b81516001600160401b0381111562004605578182fd5b6200407f8482850162004366565b600060c0828403121562004625578081fd5b60405160c081018181106001600160401b03821117156200464a576200464a620050fb565b60405282356200465a8162005138565b8152602083810135908201526040830135620046768162005111565b604082015260608301356200468b8162005138565b60608201526080838101359082015260a0928301359281019290925250919050565b600060208284031215620046bf578081fd5b81356001600160401b0380821115620046d6578283fd5b908301906101008286031215620046eb578283fd5b620046f562004e49565b6200470083620043ef565b815260208301356020820152604083013560408201526200472460608401620043b0565b6060820152608083013560808201526200474160a08401620043b0565b60a082015260c083013560c082015260e08301358281111562004762578485fd5b62004770878286016200430f565b60e08301525095945050505050565b600060e0828403121562004791578081fd5b60405160e081018181106001600160401b0382111715620047b657620047b6620050fb565b6040528235620047c68162005138565b8082525060208301356020820152604083013560408201526060830135620047ee8162005111565b6060820152608083810135908201526200480b60a08401620043b0565b60a082015260c083013560c08201528091505092915050565b60008060006060848603121562004839578081fd5b83516001600160401b038082111562004850578283fd5b90850190610160828803121562004865578283fd5b6200486f62004e6f565b6200487a83620043fc565b81526200488a60208401620043ca565b60208201526200489d60408401620043ca565b6040820152620048b060608401620043bd565b606082015260808301516080820152620048cd60a08401620043d7565b60a0820152620048e060c08401620043fc565b60c082015260e083015182811115620048f7578485fd5b620049058982860162004366565b60e0830152506101006200491b818501620043ca565b90820152610120838101518381111562004933578586fd5b620049418a82870162004222565b9183019190915250610140838101519082015294506200496460208701620042fe565b935060408601519150808211156200497a578283fd5b50620049898682870162004366565b9150509250925092565b600060208284031215620049a5578081fd5b813562003a018162005111565b600060208284031215620049c4578081fd5b815162003a018162005111565b60008060408385031215620049e4578182fd5b8235620049f18162005111565b946020939093013593505050565b6000806000806080858703121562004a15578182fd5b843562004a228162005111565b93506020850135925060408501359150606085013562004a428162005125565b939692955090935050565b6000806000806080858703121562004a63578182fd5b843562004a708162005111565b935060208501359250604085013562004a898162005125565b915060608501356001600160401b0381111562004aa4578182fd5b62004ab2878288016200430f565b91505092959194509250565b60006020828403121562004ad0578081fd5b62003a0182620043d7565b60006020828403121562004aed578081fd5b815162003a018162005138565b6000815180845262004b1481602086016020860162005098565b601f01601f19169290920160200192915050565b6000825162004b3c81846020870162005098565b9190910192915050565b6000835162004b5a81846020880162005098565b83519083019062004b7081836020880162005098565b01949350505050565b60ff60f81b8960f81b168152876001820152866021820152600061ffff60f01b808860f01b166041840152866043840152808660f01b16606384015250836065830152825162004bd181608585016020870162005098565b919091016085019998505050505050505050565b6001600160a01b03831681526040602082018190526000906200407f9083018462004afa565b60208152600062003a01602083018462004afa565b60608152600062004c35606083018662004afa565b828103602084015262004c49818662004afa565b9150506001600160401b0383166040830152949350505050565b60e08152600062004c7860e083018a62004afa565b828103602084015262004c8c818a62004afa565b60ff98909816604084015250506001600160401b039490941660608501526001600160a01b0392909216608084015261ffff1660a083015260c09091015292915050565b6020808252600f908201526e34b73b30b634b21032b6b4ba3a32b960891b604082015260600190565b60208082526010908201526f34b73b30b634b2102a3930b739b332b960811b604082015260600190565b6020808252600c908201526b77726f6e67206d6f64756c6560a01b604082015260600190565b6020808252600c908201526b3bb937b7339030b1ba34b7b760a11b604082015260600190565b6020815260ff8251166020820152602082015160408201526040820151606082015261ffff6060830151166080820152608082015160a0820152600060a083015162004dc160c084018261ffff169052565b5060c083015160e083015260e08301516101008081850152506200407f61012084018262004afa565b63ffffffff8416815260606020820152600062004e0b606083018562004afa565b905060ff83166040830152949350505050565b604051608081016001600160401b038111828210171562004e435762004e43620050fb565b60405290565b60405161010081016001600160401b038111828210171562004e435762004e43620050fb565b60405161016081016001600160401b038111828210171562004e435762004e43620050fb565b604051601f8201601f191681016001600160401b038111828210171562004ec05762004ec0620050fb565b604052919050565b60006001600160401b0382111562004ee45762004ee4620050fb565b50601f01601f191660200190565b6000821982111562004f085762004f08620050e5565b500190565b60008262004f2957634e487b7160e01b81526012600452602481fd5b500490565b600181815b8085111562004f6f57816000190482111562004f535762004f53620050e5565b8085161562004f6157918102915b93841c939080029062004f33565b509250929050565b600062003a0160ff84168360008262004f935750600162000d8b565b8162004fa25750600062000d8b565b816001811462004fbb576002811462004fc65762004fe6565b600191505062000d8b565b60ff84111562004fda5762004fda620050e5565b50506001821b62000d8b565b5060208310610133831016604e8410600b84101617156200500b575081810a62000d8b565b62005017838362004f2e565b80600019048211156200502e576200502e620050e5565b029392505050565b6000816000190483118215151615620050535762005053620050e5565b500290565b6000828210156200506d576200506d620050e5565b500390565b600060ff821660ff8416808210156200508f576200508f620050e5565b90039392505050565b60005b83811015620050b55781810151838201526020016200509b565b8381111562003be45750506000910152565b6000600019821415620050de57620050de620050e5565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b61ffff811681146200512257600080fd5b50565b63ffffffff811681146200512257600080fd5b60ff811681146200512257600080fdfe608060405234801561001057600080fd5b5060405161099338038061099383398101604081905261002f9161048e565b818161005c60017fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d51610599565b60008051602061094c8339815191521461008657634e487b7160e01b600052600160045260246000fd5b6100928282600061009b565b505050506105fe565b6100a483610175565b6040516001600160a01b038416907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e90600090a26000825111806100e55750805b156101705761016e836001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561012657600080fd5b505afa15801561013a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061015e9190610474565b8361031560201b6100291760201c565b505b505050565b6101888161034160201b6100551760201c565b6101e75760405162461bcd60e51b815260206004820152602560248201527f455243313936373a206e657720626561636f6e206973206e6f74206120636f6e6044820152641d1c9858dd60da1b60648201526084015b60405180910390fd5b61026a816001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561022357600080fd5b505afa158015610237573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061025b9190610474565b61034160201b6100551760201c565b6102cf5760405162461bcd60e51b815260206004820152603060248201527f455243313936373a20626561636f6e20696d706c656d656e746174696f6e206960448201526f1cc81b9bdd08184818dbdb9d1c9858dd60821b60648201526084016101de565b806102f460008051602061094c83398151915260001b61034760201b61005b1760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b606061033a838360405180606001604052806027815260200161096c6027913961034a565b9392505050565b3b151590565b90565b6060833b6103a95760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084016101de565b600080856001600160a01b0316856040516103c4919061054a565b600060405180830381855af49150503d80600081146103ff576040519150601f19603f3d011682016040523d82523d6000602084013e610404565b606091505b50909250905061041582828661041f565b9695505050505050565b6060831561042e57508161033a565b82511561043e5782518084602001fd5b8160405162461bcd60e51b81526004016101de9190610566565b80516001600160a01b038116811461046f57600080fd5b919050565b600060208284031215610485578081fd5b61033a82610458565b600080604083850312156104a0578081fd5b6104a983610458565b60208401519092506001600160401b03808211156104c5578283fd5b818501915085601f8301126104d8578283fd5b8151818111156104ea576104ea6105e8565b604051601f8201601f19908116603f01168101908382118183101715610512576105126105e8565b8160405282815288602084870101111561052a578586fd5b61053b8360208301602088016105bc565b80955050505050509250929050565b6000825161055c8184602087016105bc565b9190910192915050565b60208152600082518060208401526105858160408501602087016105bc565b601f01601f19169190910160400192915050565b6000828210156105b757634e487b7160e01b81526011600452602481fd5b500390565b60005b838110156105d75781810151838201526020016105bf565b8381111561016e5750506000910152565b634e487b7160e01b600052604160045260246000fd5b61033f8061060d6000396000f3fe60806040523661001357610011610017565b005b6100115b61002761002261005e565b610106565b565b606061004e83836040518060600160405280602781526020016102e36027913961012a565b9392505050565b3b151590565b90565b60006100917fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50546001600160a01b031690565b6001600160a01b0316635c60da1b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156100c957600080fd5b505afa1580156100dd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610101919061023c565b905090565b3660008037600080366000845af43d6000803e808015610125573d6000f35b3d6000fd5b6060833b61018e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b0316856040516101a99190610263565b600060405180830381855af49150503d80600081146101e4576040519150601f19603f3d011682016040523d82523d6000602084013e6101e9565b606091505b50915091506101f9828286610203565b9695505050505050565b6060831561021257508161004e565b8251156102225782518084602001fd5b8160405162461bcd60e51b8152600401610185919061027f565b60006020828403121561024d578081fd5b81516001600160a01b038116811461004e578182fd5b600082516102758184602087016102b2565b9190910192915050565b602081526000825180602084015261029e8160408501602087016102b2565b601f01601f19169190910160400192915050565b60005b838110156102cd5781810151838201526020016102b5565b838111156102dc576000848401525b5050505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212203e23ac4f79a95247999f8e0df94ea5bd5e38561ccfd051b0ea50ba9aea59b8f164736f6c63430008040033a3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564676f7665726e616e636520616374696f6e20616c726561647920636f6e73756d6564a2646970667358221220192f6503b193a6b12985fc48ae3b170718031240712e8cb9d849215b069487c264736f6c63430008040033",zv=function(e){function t(t){return e.call(this,Zv,Hv,t)||this}return Fv(t,e),t.prototype.deploy=function(t){return e.prototype.deploy.call(this,t||{})},t.prototype.getDeployTransaction=function(t){return e.prototype.getDeployTransaction.call(this,t||{})},t.prototype.attach=function(t){return e.prototype.attach.call(this,t)},t.prototype.connect=function(t){return e.prototype.connect.call(this,t)},t.createInterface=function(){return new vv.vU(Zv)},t.connect=function(e,t){return new gv.CH(e,Zv,t)},t.bytecode=Hv,t.abi=Zv,t}(gv.lV),Qv=n(5886).Buffer,qv=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Vv=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&r.write(t.toString("hex"),1,"hex"),r}function Sg(e){var t=e.nonce,n=e.amount,r=e.fee,a=e.targetAddress,i=e.targetChain;if("bigint"!=typeof n&&(n=BigInt(n)),"bigint"!=typeof r&&(r=BigInt(r)),!_g.isBuffer(a))throw new Error("targetAddress must be Buffer");var o=_g.alloc(54);return o.writeUInt32LE(t,0),o.writeBigUInt64LE(n,4),o.writeBigUInt64LE(r,12),o.write(a.toString("hex"),20,"hex"),o.writeUInt16LE(i,52),o}function Eg(e){var t=e.nonce,n=e.amount,r=e.targetAddress,a=e.targetChain,i=e.payload;if("bigint"!=typeof n&&(n=BigInt(n)),!_g.isBuffer(r))throw new Error("targetAddress must be Buffer");if(!_g.isBuffer(i))throw new Error("payload must be Buffer");var o=_g.alloc(50);return o.writeUInt32LE(t,0),o.writeBigUInt64LE(n,4),o.write(r.toString("hex"),12,"hex"),o.writeUInt16LE(a,44),o.writeUInt32LE(i.length,46),_g.concat([o,i,_g.alloc(1)])}!function(e){e[e.Initialize=0]="Initialize",e[e.AttestToken=1]="AttestToken",e[e.CompleteNative=2]="CompleteNative",e[e.CompleteWrapped=3]="CompleteWrapped",e[e.TransferWrapped=4]="TransferWrapped",e[e.TransferNative=5]="TransferNative",e[e.RegisterChain=6]="RegisterChain",e[e.CreateWrapped=7]="CreateWrapped",e[e.UpgradeContract=8]="UpgradeContract",e[e.CompleteNativeWithPayload=9]="CompleteNativeWithPayload",e[e.CompleteWrappedWithPayload=10]="CompleteWrappedWithPayload",e[e.TransferWrappedWithPayload=11]="TransferWrappedWithPayload",e[e.TransferNativeWithPayload=12]="TransferNativeWithPayload"}(vg||(vg={}));var Cg=function(){function e(e){}return e.prototype.encode=function(e,t){throw new Error("Token Bridge program does not have state")},e.prototype.decode=function(e){throw new Error("Token Bridge program does not have state")},e}(),Tg=function(){function e(e){}return e.prototype.encode=function(e,t){throw new Error("Token Bridge program does not have user-defined types")},e.prototype.decode=function(e,t){throw new Error("Token Bridge program does not have user-defined types")},e}(),Og=function(e){this.instruction=new kg(e),this.accounts=new wg(e),this.state=new Cg(e),this.events=new xg(e),this.types=new Tg(e)},Pg=JSON.parse('{"version":"0.1.0","name":"wormhole","instructions":[{"name":"initialize","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":true,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[{"name":"wormhole","type":"publicKey"}]},{"name":"attestToken","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":true,"isSigner":false},{"name":"mint","isMut":false,"isSigner":false},{"name":"wrappedMeta","isMut":false,"isSigner":false},{"name":"splMetadata","isMut":false,"isSigner":false},{"name":"wormholeBridge","isMut":true,"isSigner":false},{"name":"wormholeMessage","isMut":true,"isSigner":true},{"name":"wormholeEmitter","isMut":false,"isSigner":false},{"name":"wormholeSequence","isMut":true,"isSigner":false},{"name":"wormholeFeeCollector","isMut":true,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[{"name":"nonce","type":"u32"}]},{"name":"completeNative","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"endpoint","isMut":false,"isSigner":false},{"name":"to","isMut":true,"isSigner":false},{"name":"toFees","isMut":true,"isSigner":false},{"name":"custody","isMut":true,"isSigner":false},{"name":"mint","isMut":false,"isSigner":false},{"name":"custodySigner","isMut":false,"isSigner":false},{"name":"rent","isMut":true,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"completeWrapped","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"endpoint","isMut":false,"isSigner":false},{"name":"to","isMut":true,"isSigner":false},{"name":"toFees","isMut":true,"isSigner":false},{"name":"mint","isMut":true,"isSigner":false},{"name":"wrappedMeta","isMut":false,"isSigner":false},{"name":"mintAuthority","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"transferWrapped","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"from","isMut":true,"isSigner":false},{"name":"fromOwner","isMut":true,"isSigner":true},{"name":"mint","isMut":true,"isSigner":false},{"name":"wrappedMeta","isMut":false,"isSigner":false},{"name":"authoritySigner","isMut":false,"isSigner":false},{"name":"wormholeBridge","isMut":true,"isSigner":false},{"name":"wormholeMessage","isMut":true,"isSigner":true},{"name":"wormholeEmitter","isMut":false,"isSigner":false},{"name":"wormholeSequence","isMut":true,"isSigner":false},{"name":"wormholeFeeCollector","isMut":true,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[{"name":"nonce","type":"u32"},{"name":"amount","type":"u64"},{"name":"fee","type":"u64"},{"name":"targetAddress","type":{"array":["u8",32]}},{"name":"targetChain","type":"u16"}]},{"name":"transferNative","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"from","isMut":true,"isSigner":false},{"name":"mint","isMut":true,"isSigner":false},{"name":"custody","isMut":true,"isSigner":false},{"name":"authoritySigner","isMut":false,"isSigner":false},{"name":"custodySigner","isMut":false,"isSigner":false},{"name":"wormholeBridge","isMut":true,"isSigner":false},{"name":"wormholeMessage","isMut":true,"isSigner":true},{"name":"wormholeEmitter","isMut":false,"isSigner":false},{"name":"wormholeSequence","isMut":true,"isSigner":false},{"name":"wormholeFeeCollector","isMut":true,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[{"name":"nonce","type":"u32"},{"name":"amount","type":"u64"},{"name":"fee","type":"u64"},{"name":"targetAddress","type":{"array":["u8",32]}},{"name":"targetChain","type":"u16"}]},{"name":"registerChain","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"endpoint","isMut":true,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"createWrapped","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"endpoint","isMut":false,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"mint","isMut":true,"isSigner":false},{"name":"wrappedMeta","isMut":true,"isSigner":false},{"name":"splMetadata","isMut":true,"isSigner":false},{"name":"mintAuthority","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"splMetadataProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"upgradeContract","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"upgradeAuthority","isMut":false,"isSigner":false},{"name":"spill","isMut":true,"isSigner":false},{"name":"implementation","isMut":true,"isSigner":false},{"name":"programData","isMut":true,"isSigner":false},{"name":"tokenBridgeProgram","isMut":true,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"bpfLoaderUpgradeable","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"transferWrappedWithPayload","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"from","isMut":true,"isSigner":false},{"name":"fromOwner","isMut":true,"isSigner":true},{"name":"mint","isMut":true,"isSigner":false},{"name":"wrappedMeta","isMut":false,"isSigner":false},{"name":"authoritySigner","isMut":false,"isSigner":false},{"name":"wormholeBridge","isMut":true,"isSigner":false},{"name":"wormholeMessage","isMut":true,"isSigner":true},{"name":"wormholeEmitter","isMut":false,"isSigner":false},{"name":"wormholeSequence","isMut":true,"isSigner":false},{"name":"wormholeFeeCollector","isMut":true,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"sender","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[{"name":"nonce","type":"u32"},{"name":"amount","type":"u64"},{"name":"targetAddress","type":{"array":["u8",32]}},{"name":"targetChain","type":"u16"},{"name":"payload","type":"bytes"},{"name":"cpiProgramId","type":{"option":"publicKey"}}]},{"name":"transferNativeWithPayload","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"from","isMut":true,"isSigner":false},{"name":"mint","isMut":true,"isSigner":false},{"name":"custody","isMut":true,"isSigner":false},{"name":"authoritySigner","isMut":false,"isSigner":false},{"name":"custodySigner","isMut":false,"isSigner":false},{"name":"wormholeBridge","isMut":true,"isSigner":false},{"name":"wormholeMessage","isMut":true,"isSigner":true},{"name":"wormholeEmitter","isMut":false,"isSigner":false},{"name":"wormholeSequence","isMut":true,"isSigner":false},{"name":"wormholeFeeCollector","isMut":true,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"sender","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[{"name":"nonce","type":"u32"},{"name":"amount","type":"u64"},{"name":"targetAddress","type":{"array":["u8",32]}},{"name":"targetChain","type":"u16"},{"name":"payload","type":"bytes"},{"name":"cpiProgramId","type":{"option":"publicKey"}}]}],"accounts":[]}');function Mg(e,t){return function(e,t){return new Jm.Program(Pg,new xd.PublicKey(e),void 0===t?{connection:null}:t,new Og(Pg))}(e,(0,gg.K)(t))}function Bg(e,t,n,r){var a=Rh(n,e),i=a.emitter,o=a.sequence;return{bridge:(0,lg.Pj)(e),message:new xd.PublicKey(r),emitter:i,sequence:o,payer:new xd.PublicKey(t),feeCollector:pg(e),clock:xd.SYSVAR_CLOCK_PUBKEY,rent:xd.SYSVAR_RENT_PUBKEY,systemProgram:xd.SystemProgram.programId}}var Ng=n(5886).Buffer;function Rg(e){return(0,Oh.xc)([Ng.from("config")],e)}var Dg,jg=function(){function e(e){this.wormhole=new xd.PublicKey(e)}return e.deserialize=function(t){if(32!=t.length)throw new Error("data.length != 32");return new e(t.subarray(0,32))},e}(),Ug=n(5886).Buffer,Lg=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fg=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Zg=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0,t.readUInt8(33))},e.size=34,e}(),zg=function(){function e(e,t,n,r,a){this.name=e,this.symbol=t,this.uri=n,this.sellerFeeBasisPoints=r,this.creators=a}return e.prototype.serialize=function(){var e=this.name.length,t=this.symbol.length,n=this.uri.length,r=this.creators,a=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}(function(){if(null===r)return[0,0];var e=r.length;return[e,4+e*Hg.size]}(),2),i=a[0],o=a[1],s=Ug.alloc(15+e+t+n+o);if(s.writeUInt32LE(e,0),s.write(this.name,4),s.writeUInt32LE(t,4+e),s.write(this.symbol,8+e),s.writeUInt32LE(n,8+e+t),s.write(this.uri,12+e+t),s.writeUInt16LE(this.sellerFeeBasisPoints,12+e+t+n),null===r)s.writeUInt8(0,14+e+t+n);else{s.writeUInt8(1,14+e+t+n),s.writeUInt32LE(i,15+e+t+n);for(var c=0;c0,t.readUInt8(66+o)>0)},e}();function Kg(e,t,n){return Fg(this,void 0,void 0,(function(){return Zg(this,(function(r){return[2,e.getAccountInfo(Vg(t),n).then((function(e){return Jg.deserialize((0,Oh.ae)(e))}))]}))}))}var Gg=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},Wg=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},tA=function(e,t){for(var n=0,r=t.length,a=e.length;nBigInt(0)&&(A=(0,Tp.makePaymentTxnWithSuggestedParamsFromObject)({from:r,suggestedParams:m,to:(0,kd.getApplicationAddress)(t),amount:g}),c.push({tx:A,signer:null})),w=[d,l,(0,kd.getApplicationAddress)(n)],b&&w.push(b.address),x=(0,Tp.makeApplicationCallTxnFromObject)({appArgs:[p,Jb(a,8)],accounts:w,appIndex:Vh(t),foreignApps:[Vh(n)],foreignAssets:[Vh(a)],from:r,onComplete:Tp.OnApplicationComplete.NoOpOC,suggestedParams:m}),g>BigInt(0)?x.fee*=3:x.fee*=2,c.push({tx:x,signer:null}),[2,c]}}))}))}function sA(e,t,n,r){return Xg(this,void 0,void 0,(function(){var a,i;return $g(this,(function(o){switch(o.label){case 0:return a=[],[4,nm(e,t,"message_fee")];case 1:return i=o.sent(),ag(n,r)?[3,3]:[4,$y(e,n,r)];case 2:o.sent().isRegistered||a.push({contractId:n,methodName:"register_account",args:{account:r},gas:new(Jy())("100000000000000"),attachedDeposit:new(Jy())("2000000000000000000000")}),o.label=3;case 3:return a.push({contractId:n,methodName:"attest_token",args:{token:r,message_fee:i},attachedDeposit:new(Jy())("3000000000000000000000").add(new(Jy())(i)),gas:new(Jy())("100000000000000")}),[2,a]}}))}))}function cA(e,t,n){return Xg(this,void 0,void 0,(function(){var r;return $g(this,(function(a){switch(a.label){case 0:return[4,nm(e,t,"message_fee")];case 1:return r=a.sent()+1,[2,{contractId:n,methodName:"attest_near",args:{message_fee:r},attachedDeposit:new(Jy())(r),gas:new(Jy())("100000000000000")}]}}))}))}function uA(e,t,n){return og(e,t,n)}var dA,fA=n(5886).Buffer,lA="function"==typeof btoa,bA="function"==typeof fA,pA=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder&&new TextEncoder,Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=")),hA=(dA={},pA.forEach((function(e,t){return dA[e]=t})),String.fromCharCode.bind(String)),yA=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))}),mA=lA?function(e){return btoa(e)}:bA?function(e){return fA.from(e,"binary").toString("base64")}:function(e){for(var t,n,r,a,i="",o=e.length%3,s=0;s255||(r=e.charCodeAt(s++))>255||(a=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");i+=pA[(t=n<<16|r<<8|a)>>18&63]+pA[t>>12&63]+pA[t>>6&63]+pA[63&t]}return o?i.slice(0,o-3)+"===".substring(o):i},vA=bA?function(e){return fA.from(e).toString("base64")}:function(e){for(var t=[],n=0,r=e.length;n1&&void 0!==arguments[1]&&arguments[1]?yA(vA(e)):vA(e)},AA=new xd.PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),wA=(new xd.PublicKey("TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),new xd.PublicKey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL")),xA=new xd.PublicKey("So11111111111111111111111111111111111111112");new xd.PublicKey("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP");var _A=n(68609),kA=n(5886).Buffer;function IA(e,t,n){if(t==S)throw new Error("emitterChain == CHAIN_ID_SOLANA cannot exist as foreign token bridge emitter");return"string"==typeof n&&(n=ym(n,t)),(0,Oh.xc)([(r=kA.alloc(2),r.writeUInt16BE(t),r),n],e);var r}!function(){function e(e,t){this.chain=e,this.contract=t}e.deserialize=function(t){if(34!=t.length)throw new Error("data.length != 34");return new e(t.readUInt16LE(0),t.subarray(2,34))}}();var SA=n(5886).Buffer;function EA(e){return(0,Oh.xc)([SA.from("authority_signer")],e)}function CA(e){return(0,Oh.xc)([SA.from("custody_signer")],e)}function TA(e){return(0,Oh.xc)([SA.from("mint_signer")],e)}var OA=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},PA=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]8?[2,qA.from(s.slice(0,8)).readBigUInt64BE(0)]:[2,null];case 4:return[2]}}))}))}function $A(e,t,n,r){return VA(this,void 0,void 0,(function(){var a;return JA(this,(function(i){switch(i.label){case 0:return[4,nm(e,t,"get_foreign_asset",{chain:fe(n),address:r})];case 1:return[2,""!==(a=i.sent())?a:null]}}))}))}function ew(e,t,n,r){return VA(this,void 0,void 0,(function(){var a,i;return JA(this,(function(o){switch(o.label){case 0:if(a=fe(n),!(i=Tm(t,a,r)))return[2,null];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,e.getAccountResource(Nm(i),"0x1::coin::CoinInfo<"+i+">")];case 2:return o.sent(),[2,i];case 3:return o.sent(),[2,null];case 4:return[2]}}))}))}var tw=n(42685),nw=n.n(tw),rw=n(79496),aw=n(44334),iw=function(e){return{decode:e.decode.bind(e),encode:e.encode.bind(e)}},ow=n(5886).Buffer,sw=function(e){return function(t){var n=(0,rw.blob)(e,t),r=iw(n),a=r.encode,i=r.decode,o=n;return o.decode=function(e,t){var n=i(e,t);return(0,aw.toBigIntLE)(ow.from(n))},o.encode=function(t,n,r){var i=(0,aw.toBufferLE)(t,e);return a(i,n,r)},o}},cw=function(e){return function(t){var n=(0,rw.blob)(e,t),r=iw(n),a=r.encode,i=r.decode,o=n;return o.decode=function(e,t){var n=i(e,t);return(0,aw.toBigIntBE)(ow.from(n))},o.encode=function(t,n,r){var i=(0,aw.toBufferBE)(t,e);return a(i,n,r)},o}},uw=sw(8),dw=(cw(8),sw(16),cw(16),sw(24),cw(24),sw(32),cw(32),/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i),fw=Math.ceil,lw=Math.floor,bw="[BigNumber Error] ",pw=bw+"Number primitive has more than 15 significant digits: ",hw=1e14,yw=14,mw=9007199254740991,vw=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],gw=1e7,Aw=1e9;function ww(e){var t=0|e;return e>0||e===t?t:t-1}function xw(e){for(var t,n,r=1,a=e.length,i=e[0]+"";ru^n?1:-1;for(s=(c=a.length)<(u=i.length)?c:u,o=0;oi[o]^n?1:-1;return c==u?0:c>u^n?1:-1}function kw(e,t,n,r){if(en||e!==lw(e))throw Error(bw+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function Iw(e){var t=e.c.length-1;return ww(e.e/yw)==t&&e.c[t]%2!=0}function Sw(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function Ew(e,t,n){var r,a;if(t<0){for(a=n+".";++t;a+=n);e=a+e}else if(++t>(r=e.length)){for(a=n,t-=r;--t;a+=n);e+=a}else tg?l.c=l.e=null:e.e=10;c/=10,s++);return void(s>g?l.c=l.e=null:(l.e=s,l.c=[e]))}f=String(e)}else{if(!dw.test(f=String(e)))return a(l,f,u);l.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(s=f.indexOf("."))>-1&&(f=f.replace(".","")),(c=f.search(/e/i))>0?(s<0&&(s=c),s+=+f.slice(c+1),f=f.substring(0,c)):s<0&&(s=f.length)}else{if(kw(t,2,k.length,"Base"),10==t&&I)return O(l=new S(e),p+l.e+1,h);if(f=String(e),u="number"==typeof e){if(0*e!=0)return a(l,f,u,t);if(l.s=1/e<0?(f=f.slice(1),-1):1,S.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(pw+e)}else l.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(n=k.slice(0,t),s=c=0,d=f.length;cs){s=d;continue}}else if(!o&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){o=!0,c=-1,s=0;continue}return a(l,String(e),u,t)}u=!1,(s=(f=r(f,t,10,l.s)).indexOf("."))>-1?f=f.replace(".",""):s=f.length}for(c=0;48===f.charCodeAt(c);c++);for(d=f.length;48===f.charCodeAt(--d););if(f=f.slice(c,++d)){if(d-=c,u&&S.DEBUG&&d>15&&(e>mw||e!==lw(e)))throw Error(pw+l.s*e);if((s=s-c-1)>g)l.c=l.e=null;else if(s=m)?Sw(c,o):Ew(c,o,"0");else if(i=(e=O(new S(e),t,n)).e,s=(c=xw(e.c)).length,1==r||2==r&&(t<=i||i<=y)){for(;ss){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=i-s)>0)for(i+1==s&&(c+=".");t--;c+="0");return e.s<0&&a?"-"+c:c}function C(e,t){for(var n,r=1,a=new S(e[0]);r=10;a/=10,r++);return(n=r+n*yw-1)>g?e.c=e.e=null:n=10;s/=10,a++);if((i=t-a)<0)i+=yw,o=t,d=(c=f[u=0])/l[a-o-1]%10|0;else if((u=fw((i+1)/yw))>=f.length){if(!r)break e;for(;f.length<=u;f.push(0));c=d=0,a=1,o=(i%=yw)-yw+1}else{for(c=s=f[u],a=1;s>=10;s/=10,a++);d=(o=(i%=yw)-yw+a)<0?0:c/l[a-o-1]%10|0}if(r=r||t<0||null!=f[u+1]||(o<0?c:c%l[a-o-1]),r=n<4?(d||r)&&(0==n||n==(e.s<0?3:2)):d>5||5==d&&(4==n||r||6==n&&(i>0?o>0?c/l[a-o]:0:f[u-1])%10&1||n==(e.s<0?8:7)),t<1||!f[0])return f.length=0,r?(t-=e.e+1,f[0]=l[(yw-t%yw)%yw],e.e=-t||0):f[0]=e.e=0,e;if(0==i?(f.length=u,s=1,u--):(f.length=u+1,s=l[yw-i],f[u]=o>0?lw(c/l[a-o]%l[o])*s:0),r)for(;;){if(0==u){for(i=1,o=f[0];o>=10;o/=10,i++);for(o=f[0]+=s,s=1;o>=10;o/=10,s++);i!=s&&(e.e++,f[0]==hw&&(f[0]=1));break}if(f[u]+=s,f[u]!=hw)break;f[u--]=0,s=1}for(i=f.length;0===f[--i];f.pop());}e.e>g?e.c=e.e=null:e.e=m?Sw(t,n):Ew(t,n,"0"),e.s<0?"-"+t:t)}return S.clone=e,S.ROUND_UP=0,S.ROUND_DOWN=1,S.ROUND_CEIL=2,S.ROUND_FLOOR=3,S.ROUND_HALF_UP=4,S.ROUND_HALF_DOWN=5,S.ROUND_HALF_EVEN=6,S.ROUND_HALF_CEIL=7,S.ROUND_HALF_FLOOR=8,S.EUCLID=9,S.config=S.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(bw+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(kw(n=e[t],0,Aw,t),p=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(kw(n=e[t],0,8,t),h=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(kw(n[0],-Aw,0,t),kw(n[1],0,Aw,t),y=n[0],m=n[1]):(kw(n,-Aw,Aw,t),y=-(m=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)kw(n[0],-Aw,-1,t),kw(n[1],1,Aw,t),v=n[0],g=n[1];else{if(kw(n,-Aw,Aw,t),!n)throw Error(bw+t+" cannot be zero: "+n);v=-(g=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(bw+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw A=!n,Error(bw+"crypto unavailable");A=n}else A=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(kw(n=e[t],0,9,t),w=n),e.hasOwnProperty(t="POW_PRECISION")&&(kw(n=e[t],0,Aw,t),x=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(bw+t+" not an object: "+n);_=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(bw+t+" invalid: "+n);I="0123456789"==n.slice(0,10),k=n}}return{DECIMAL_PLACES:p,ROUNDING_MODE:h,EXPONENTIAL_AT:[y,m],RANGE:[v,g],CRYPTO:A,MODULO_MODE:w,POW_PRECISION:x,FORMAT:_,ALPHABET:k}},S.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!S.DEBUG)return!0;var t,n,r=e.c,a=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===i||-1===i)&&a>=-Aw&&a<=Aw&&a===lw(a)){if(0===r[0]){if(0===a&&1===r.length)return!0;break e}if((t=(a+1)%yw)<1&&(t+=yw),String(r[0]).length==t){for(t=0;t=hw||n!==lw(n))break e;if(0!==n)return!0}}}else if(null===r&&null===a&&(null===i||1===i||-1===i))return!0;throw Error(bw+"Invalid BigNumber: "+e)},S.maximum=S.max=function(){return C(arguments,l.lt)},S.minimum=S.min=function(){return C(arguments,l.gt)},S.random=(i=9007199254740992,o=Math.random()*i&2097151?function(){return lw(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,a,i,s=0,c=[],u=new S(b);if(null==e?e=p:kw(e,0,Aw),a=fw(e/yw),A)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));s>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[s]=n[0],t[s+1]=n[1]):(c.push(i%1e14),s+=2);s=a/2}else{if(!crypto.randomBytes)throw A=!1,Error(bw+"crypto unavailable");for(t=crypto.randomBytes(a*=7);s=9e15?crypto.randomBytes(7).copy(t,s):(c.push(i%1e14),s+=7);s=a/7}if(!A)for(;s=10;i/=10,s++);sn-1&&(null==o[a+1]&&(o[a+1]=0),o[a+1]+=o[a]/n|0,o[a]%=n)}return o.reverse()}return function(r,a,i,o,s){var c,u,d,f,l,b,y,m,v=r.indexOf("."),g=p,A=h;for(v>=0&&(f=x,x=0,r=r.replace(".",""),b=(m=new S(a)).pow(r.length-v),x=f,m.c=t(Ew(xw(b.c),b.e,"0"),10,i,e),m.e=m.c.length),d=f=(y=t(r,a,i,s?(c=k,e):(c=e,k))).length;0==y[--f];y.pop());if(!y[0])return c.charAt(0);if(v<0?--d:(b.c=y,b.e=d,b.s=o,y=(b=n(b,m,g,A,i)).c,l=b.r,d=b.e),v=y[u=d+g+1],f=i/2,l=l||u<0||null!=y[u+1],l=A<4?(null!=v||l)&&(0==A||A==(b.s<0?3:2)):v>f||v==f&&(4==A||l||6==A&&1&y[u-1]||A==(b.s<0?8:7)),u<1||!y[0])r=l?Ew(c.charAt(1),-g,c.charAt(0)):c.charAt(0);else{if(y.length=u,l)for(--i;++y[--u]>i;)y[u]=0,u||(++d,y=[1].concat(y));for(f=y.length;!y[--f];);for(v=0,r="";v<=f;r+=c.charAt(y[v++]));r=Ew(r,d,c.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,a,i,o,s=0,c=e.length,u=t%gw,d=t/gw|0;for(e=e.slice();c--;)s=((a=u*(i=e[c]%gw)+(r=d*i+(o=e[c]/gw|0)*u)%gw*gw+s)/n|0)+(r/gw|0)+d*o,e[c]=a%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var a,i;if(n!=r)i=n>r?1:-1;else for(a=i=0;at[a]?1:-1;break}return i}function n(e,t,n,r){for(var a=0;n--;)e[n]-=a,a=e[n]1;e.splice(0,1));}return function(r,a,i,o,s){var c,u,d,f,l,b,p,h,y,m,v,g,A,w,x,_,k,I=r.s==a.s?1:-1,E=r.c,C=a.c;if(!(E&&E[0]&&C&&C[0]))return new S(r.s&&a.s&&(E?!C||E[0]!=C[0]:C)?E&&0==E[0]||!C?0*I:I/0:NaN);for(y=(h=new S(I)).c=[],I=i+(u=r.e-a.e)+1,s||(s=hw,u=ww(r.e/yw)-ww(a.e/yw),I=I/yw|0),d=0;C[d]==(E[d]||0);d++);if(C[d]>(E[d]||0)&&u--,I<0)y.push(1),f=!0;else{for(w=E.length,_=C.length,d=0,I+=2,(l=lw(s/(C[0]+1)))>1&&(C=e(C,l,s),E=e(E,l,s),_=C.length,w=E.length),A=_,v=(m=E.slice(0,_)).length;v<_;m[v++]=0);k=C.slice(),k=[0].concat(k),x=C[0],C[1]>=s/2&&x++;do{if(l=0,(c=t(C,m,_,v))<0){if(g=m[0],_!=v&&(g=g*s+(m[1]||0)),(l=lw(g/x))>1)for(l>=s&&(l=s-1),p=(b=e(C,l,s)).length,v=m.length;1==t(b,m,p,v);)l--,n(b,_=10;I/=10,d++);O(h,i+(h.e=d+u*yw-1)+1,o,f)}else h.e=u,h.r=+f;return h}}(),s=/^(-?)0([xbo])(?=\w[\w.]*$)/i,c=/^([^.]+)\.$/,u=/^\.([^.]+)$/,d=/^-?(Infinity|NaN)$/,f=/^\s*\+(?=[\w.])|^\s+|\s+$/g,a=function(e,t,n,r){var a,i=n?t:t.replace(f,"");if(d.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!n&&(i=i.replace(s,(function(e,t,n){return a="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=a?e:t})),r&&(a=r,i=i.replace(c,"$1").replace(u,"0.$1")),t!=i))return new S(i,a);if(S.DEBUG)throw Error(bw+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},l.absoluteValue=l.abs=function(){var e=new S(this);return e.s<0&&(e.s=1),e},l.comparedTo=function(e,t){return _w(this,new S(e,t))},l.decimalPlaces=l.dp=function(e,t){var n,r,a,i=this;if(null!=e)return kw(e,0,Aw),null==t?t=h:kw(t,0,8),O(new S(i),e+i.e+1,t);if(!(n=i.c))return null;if(r=((a=n.length-1)-ww(this.e/yw))*yw,a=n[a])for(;a%10==0;a/=10,r--);return r<0&&(r=0),r},l.dividedBy=l.div=function(e,t){return n(this,new S(e,t),p,h)},l.dividedToIntegerBy=l.idiv=function(e,t){return n(this,new S(e,t),0,1)},l.exponentiatedBy=l.pow=function(e,t){var n,r,a,i,o,s,c,u,d=this;if((e=new S(e)).c&&!e.isInteger())throw Error(bw+"Exponent not an integer: "+P(e));if(null!=t&&(t=new S(t)),o=e.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!e.c||!e.c[0])return u=new S(Math.pow(+P(d),o?e.s*(2-Iw(e)):+P(e))),t?u.mod(t):u;if(s=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new S(NaN);(r=!s&&d.isInteger()&&t.isInteger())&&(d=d.mod(t))}else{if(e.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||o&&d.c[1]>=24e7:d.c[0]<8e13||o&&d.c[0]<=9999975e7)))return i=d.s<0&&Iw(e)?-0:0,d.e>-1&&(i=1/i),new S(s?1/i:i);x&&(i=fw(x/yw+2))}for(o?(n=new S(.5),s&&(e.s=1),c=Iw(e)):c=(a=Math.abs(+P(e)))%2,u=new S(b);;){if(c){if(!(u=u.times(d)).c)break;i?u.c.length>i&&(u.c.length=i):r&&(u=u.mod(t))}if(a){if(0===(a=lw(a/2)))break;c=a%2}else if(O(e=e.times(n),e.e+1,1),e.e>14)c=Iw(e);else{if(0==(a=+P(e)))break;c=a%2}d=d.times(d),i?d.c&&d.c.length>i&&(d.c.length=i):r&&(d=d.mod(t))}return r?u:(s&&(u=b.div(u)),t?u.mod(t):i?O(u,x,h,void 0):u)},l.integerValue=function(e){var t=new S(this);return null==e?e=h:kw(e,0,8),O(t,t.e+1,e)},l.isEqualTo=l.eq=function(e,t){return 0===_w(this,new S(e,t))},l.isFinite=function(){return!!this.c},l.isGreaterThan=l.gt=function(e,t){return _w(this,new S(e,t))>0},l.isGreaterThanOrEqualTo=l.gte=function(e,t){return 1===(t=_w(this,new S(e,t)))||0===t},l.isInteger=function(){return!!this.c&&ww(this.e/yw)>this.c.length-2},l.isLessThan=l.lt=function(e,t){return _w(this,new S(e,t))<0},l.isLessThanOrEqualTo=l.lte=function(e,t){return-1===(t=_w(this,new S(e,t)))||0===t},l.isNaN=function(){return!this.s},l.isNegative=function(){return this.s<0},l.isPositive=function(){return this.s>0},l.isZero=function(){return!!this.c&&0==this.c[0]},l.minus=function(e,t){var n,r,a,i,o=this,s=o.s;if(t=(e=new S(e,t)).s,!s||!t)return new S(NaN);if(s!=t)return e.s=-t,o.plus(e);var c=o.e/yw,u=e.e/yw,d=o.c,f=e.c;if(!c||!u){if(!d||!f)return d?(e.s=-t,e):new S(f?o:NaN);if(!d[0]||!f[0])return f[0]?(e.s=-t,e):new S(d[0]?o:3==h?-0:0)}if(c=ww(c),u=ww(u),d=d.slice(),s=c-u){for((i=s<0)?(s=-s,a=d):(u=c,a=f),a.reverse(),t=s;t--;a.push(0));a.reverse()}else for(r=(i=(s=d.length)<(t=f.length))?s:t,s=t=0;t0)for(;t--;d[n++]=0);for(t=hw-1;r>s;){if(d[--r]=0;){for(n=0,l=g[a]%y,b=g[a]/y|0,i=a+(o=c);i>a;)n=((u=l*(u=v[--o]%y)+(s=b*u+(d=v[o]/y|0)*l)%y*y+p[i]+n)/h|0)+(s/y|0)+b*d,p[i--]=u%h;p[i]=n}return n?++r:p.splice(0,1),T(e,p,r)},l.negated=function(){var e=new S(this);return e.s=-e.s||null,e},l.plus=function(e,t){var n,r=this,a=r.s;if(t=(e=new S(e,t)).s,!a||!t)return new S(NaN);if(a!=t)return e.s=-t,r.minus(e);var i=r.e/yw,o=e.e/yw,s=r.c,c=e.c;if(!i||!o){if(!s||!c)return new S(a/0);if(!s[0]||!c[0])return c[0]?e:new S(s[0]?r:0*a)}if(i=ww(i),o=ww(o),s=s.slice(),a=i-o){for(a>0?(o=i,n=c):(a=-a,n=s),n.reverse();a--;n.push(0));n.reverse()}for((a=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=a),a=0;t;)a=(s[--t]=s[t]+c[t]+a)/hw|0,s[t]=hw===s[t]?0:s[t]%hw;return a&&(s=[a].concat(s),++o),T(e,s,o)},l.precision=l.sd=function(e,t){var n,r,a,i=this;if(null!=e&&e!==!!e)return kw(e,1,Aw),null==t?t=h:kw(t,0,8),O(new S(i),e,t);if(!(n=i.c))return null;if(r=(a=n.length-1)*yw+1,a=n[a]){for(;a%10==0;a/=10,r--);for(a=n[0];a>=10;a/=10,r++);}return e&&i.e+1>r&&(r=i.e+1),r},l.shiftedBy=function(e){return kw(e,-9007199254740991,mw),this.times("1e"+e)},l.squareRoot=l.sqrt=function(){var e,t,r,a,i,o=this,s=o.c,c=o.s,u=o.e,d=p+4,f=new S("0.5");if(1!==c||!s||!s[0])return new S(!c||c<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(c=Math.sqrt(+P(o)))||c==1/0?(((t=xw(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(+t),u=ww((u+1)/2)-(u<0||u%2),r=new S(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new S(c+""),r.c[0])for((c=(u=r.e)+d)<3&&(c=0);;)if(i=r,r=f.times(i.plus(n(o,i,d,1))),xw(i.c).slice(0,c)===(t=xw(r.c)).slice(0,c)){if(r.e0&&p>0){for(i=p%s||s,d=b.substr(0,i);i0&&(d+=u+b.slice(i)),l&&(d="-"+d)}r=f?d+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?f.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):d}return(n.prefix||"")+r+(n.suffix||"")},l.toFraction=function(e){var t,r,a,i,o,s,c,u,d,f,l,p,y=this,m=y.c;if(null!=e&&(!(c=new S(e)).isInteger()&&(c.c||1!==c.s)||c.lt(b)))throw Error(bw+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+P(c));if(!m)return new S(y);for(t=new S(b),d=r=new S(b),a=u=new S(b),p=xw(m),o=t.e=p.length-y.e-1,t.c[0]=vw[(s=o%yw)<0?yw+s:s],e=!e||c.comparedTo(t)>0?o>0?t:d:c,s=g,g=1/0,c=new S(p),u.c[0]=0;f=n(c,t,0,1),1!=(i=r.plus(f.times(a))).comparedTo(e);)r=a,a=i,d=u.plus(f.times(i=d)),u=i,t=c.minus(f.times(i=t)),c=i;return i=n(e.minus(r),a,0,1),u=u.plus(i.times(d)),r=r.plus(i.times(a)),u.s=d.s=y.s,l=n(d,a,o*=2,h).minus(y).abs().comparedTo(n(u,r,o,h).minus(y).abs())<1?[d,a]:[u,r],g=s,l},l.toNumber=function(){return+P(this)},l.toPrecision=function(e,t){return null!=e&&kw(e,1,Aw),E(this,e,t,2)},l.toString=function(e){var t,n=this,a=n.s,i=n.e;return null===i?a?(t="Infinity",a<0&&(t="-"+t)):t="NaN":(null==e?t=i<=y||i>=m?Sw(xw(n.c),i):Ew(xw(n.c),i,"0"):10===e&&I?t=Ew(xw((n=O(new S(n),p+i+1,h)).c),n.e,"0"):(kw(e,2,k.length,"Base"),t=r(Ew(xw(n.c),i,"0"),10,e,a,!0)),a<0&&n.c[0]&&(t="-"+t)),t},l.valueOf=l.toJSON=function(){return P(this)},l._isBigNumber=!0,l[Symbol.toStringTag]="BigNumber",l[Symbol.for("nodejs.util.inspect.custom")]=l.valueOf,null!=t&&S.set(t),S}(),Pw=(new Ow("1e+18"),function(e){var t=(0,rw.u8)(e),n=iw(t),r=n.encode,a=n.decode,i=t;return i.decode=function(e,t){return!!a(e,t)},i.encode=function(e,t,n){var a=Number(e);return r(a,t,n)},i}),Mw=function(e){var t=(0,rw.blob)(32,e),n=iw(t),r=n.encode,a=n.decode,i=t;return i.decode=function(e,t){var n=a(e,t);return new xd.PublicKey(n)},i.encode=function(e,t,n){var a=e.toBuffer();return r(a,t,n)},i},Bw=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e){return(0,ma.Z)(this,n),t.call(this,e)}return(0,va.Z)(n)}((0,la.Z)(Error)),Nw=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){var e;return(0,ma.Z)(this,n),(e=t.apply(this,arguments)).name="TokenAccountNotFoundError",e}return(0,va.Z)(n)}(Bw),Rw=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){var e;return(0,ma.Z)(this,n),(e=t.apply(this,arguments)).name="TokenInvalidAccountOwnerError",e}return(0,va.Z)(n)}(Bw),Dw=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){var e;return(0,ma.Z)(this,n),(e=t.apply(this,arguments)).name="TokenInvalidAccountSizeError",e}return(0,va.Z)(n)}(Bw),jw=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){var e;return(0,ma.Z)(this,n),(e=t.apply(this,arguments)).name="TokenInvalidMintError",e}return(0,va.Z)(n)}(Bw);(Tw=Cw||(Cw={}))[Tw.Uninitialized=0]="Uninitialized",Tw[Tw.Mint=1]="Mint",Tw[Tw.Account=2]="Account";var Uw=1,Lw=(0,rw.struct)([(0,rw.u8)("m"),(0,rw.u8)("n"),Pw("isInitialized"),Mw("signer1"),Mw("signer2"),Mw("signer3"),Mw("signer4"),Mw("signer5"),Mw("signer6"),Mw("signer7"),Mw("signer8"),Mw("signer9"),Mw("signer10"),Mw("signer11")]).span,Fw=(0,rw.struct)([Pw("lockCpi")]).span,Zw=(0,rw.struct)([(0,rw.u8)("state")]).span,Hw=(0,rw.struct)([]).span,zw=(0,rw.struct)([Mw("rateAuthority"),(0,rw.ns64)("initializationTimestamp"),(0,rw.s16)("preUpdateAverageRate"),(0,rw.ns64)("lastUpdateTimestamp"),(0,rw.s16)("currentRate")]).span,Qw=(0,rw.struct)([Pw("requireIncomingTransferMemos")]).span,qw=(0,rw.struct)([Mw("closeAuthority")]).span,Vw=(0,rw.struct)([]).span,Jw=(0,rw.struct)([Mw("delegate")]).span;function Kw(e){return(0,rw.struct)([uw("epoch"),uw("maximumFee"),(0,rw.u16)("transferFeeBasisPoints")],e)}var Gw,Ww,Yw=(0,rw.struct)([Mw("transferFeeConfigAuthority"),Mw("withdrawWithheldAuthority"),uw("withheldAmount"),Kw("olderTransferFee"),Kw("newerTransferFee")]).span,Xw=(0,rw.struct)([uw("withheldAmount")]).span;(Ww=Gw||(Gw={}))[Ww.Uninitialized=0]="Uninitialized",Ww[Ww.TransferFeeConfig=1]="TransferFeeConfig",Ww[Ww.TransferFeeAmount=2]="TransferFeeAmount",Ww[Ww.MintCloseAuthority=3]="MintCloseAuthority",Ww[Ww.ConfidentialTransferMint=4]="ConfidentialTransferMint",Ww[Ww.ConfidentialTransferAccount=5]="ConfidentialTransferAccount",Ww[Ww.DefaultAccountState=6]="DefaultAccountState",Ww[Ww.ImmutableOwner=7]="ImmutableOwner",Ww[Ww.MemoTransfer=8]="MemoTransfer",Ww[Ww.NonTransferable=9]="NonTransferable",Ww[Ww.InterestBearingConfig=10]="InterestBearingConfig",Ww[Ww.CpiGuard=11]="CpiGuard",Ww[Ww.PermanentDelegate=12]="PermanentDelegate";var $w,ex=2,tx=2;function nx(e){return function(e,t){if(0===e.length)return t;var n=rx+Uw+e.filter((function(t,n){return n===e.indexOf(t)})).map((function(e){return function(e){switch(e){case Gw.Uninitialized:return 0;case Gw.TransferFeeConfig:return Yw;case Gw.TransferFeeAmount:return Xw;case Gw.MintCloseAuthority:return qw;case Gw.ConfidentialTransferMint:return 97;case Gw.ConfidentialTransferAccount:return 286;case Gw.CpiGuard:return Fw;case Gw.DefaultAccountState:return Zw;case Gw.ImmutableOwner:return Hw;case Gw.MemoTransfer:return Qw;case Gw.NonTransferable:return Vw;case Gw.InterestBearingConfig:return zw;case Gw.PermanentDelegate:return Jw;default:throw Error("Unknown extension type: ".concat(e))}}(e)+ex+tx})).reduce((function(e,t){return e+t}));return n===Lw?n+ex:n}(e,rx)}n(5886).Buffer,function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Frozen=2]="Frozen"}($w||($w={}));var rx=(0,rw.struct)([Mw("mint"),Mw("owner"),uw("amount"),(0,rw.u32)("delegateOption"),Mw("delegate"),(0,rw.u8)("state"),(0,rw.u32)("isNativeOption"),uw("isNative"),uw("delegatedAmount"),(0,rw.u32)("closeAuthorityOption"),Mw("closeAuthority")]).span;function ax(e,t){return ix.apply(this,arguments)}function ix(){return(ix=(0,ya.Z)((0,da.Z)().mark((function e(t,n){return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ox(t,[],n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ox(e,t,n){return sx.apply(this,arguments)}function sx(){return(sx=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=nx(n),e.next=3,t.getMinimumBalanceForRentExemption(a,r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var cx,ux,dx=n(5886).Buffer,fx=(0,rw.struct)([(0,rw.u32)("mintAuthorityOption"),Mw("mintAuthority"),uw("supply"),(0,rw.u8)("decimals"),Pw("isInitialized"),(0,rw.u32)("freezeAuthorityOption"),Mw("freezeAuthority")]),lx=fx.span;function bx(e,t,n){return px.apply(this,arguments)}function px(){return px=(0,ya.Z)((0,da.Z)().mark((function e(t,n,r){var a,i,o=arguments;return(0,da.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=o.length>3&&void 0!==o[3]?o[3]:AA,e.next=3,t.getAccountInfo(n,r);case 3:return i=e.sent,e.abrupt("return",hx(n,i,a));case 5:case"end":return e.stop()}}),e)}))),px.apply(this,arguments)}function hx(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:AA;if(!t)throw new Nw;if(!t.owner.equals(n))throw new Rw;if(t.data.lengthlx){if(t.data.length<=rx)throw new Dw;if(t.data.length===Lw)throw new Dw;if(t.data[rx]!=Cw.Mint)throw new jw;a=t.data.slice(rx+Uw)}return{address:e,mintAuthority:r.mintAuthorityOption?r.mintAuthority:null,supply:r.supply,decimals:r.decimals,isInitialized:r.isInitialized,freezeAuthority:r.freezeAuthorityOption?r.freezeAuthority:null,tlvData:a}}(ux=cx||(cx={}))[ux.InitializeMint=0]="InitializeMint",ux[ux.InitializeAccount=1]="InitializeAccount",ux[ux.InitializeMultisig=2]="InitializeMultisig",ux[ux.Transfer=3]="Transfer",ux[ux.Approve=4]="Approve",ux[ux.Revoke=5]="Revoke",ux[ux.SetAuthority=6]="SetAuthority",ux[ux.MintTo=7]="MintTo",ux[ux.Burn=8]="Burn",ux[ux.CloseAccount=9]="CloseAccount",ux[ux.FreezeAccount=10]="FreezeAccount",ux[ux.ThawAccount=11]="ThawAccount",ux[ux.TransferChecked=12]="TransferChecked",ux[ux.ApproveChecked=13]="ApproveChecked",ux[ux.MintToChecked=14]="MintToChecked",ux[ux.BurnChecked=15]="BurnChecked",ux[ux.InitializeAccount2=16]="InitializeAccount2",ux[ux.SyncNative=17]="SyncNative",ux[ux.InitializeAccount3=18]="InitializeAccount3",ux[ux.InitializeMultisig2=19]="InitializeMultisig2",ux[ux.InitializeMint2=20]="InitializeMint2",ux[ux.GetAccountDataSize=21]="GetAccountDataSize",ux[ux.InitializeImmutableOwner=22]="InitializeImmutableOwner",ux[ux.AmountToUiAmount=23]="AmountToUiAmount",ux[ux.UiAmountToAmount=24]="UiAmountToAmount",ux[ux.InitializeMintCloseAuthority=25]="InitializeMintCloseAuthority",ux[ux.TransferFeeExtension=26]="TransferFeeExtension",ux[ux.ConfidentialTransferExtension=27]="ConfidentialTransferExtension",ux[ux.DefaultAccountStateExtension=28]="DefaultAccountStateExtension",ux[ux.Reallocate=29]="Reallocate",ux[ux.MemoTransferExtension=30]="MemoTransferExtension",ux[ux.CreateNativeMint=31]="CreateNativeMint",ux[ux.InitializeNonTransferableMint=32]="InitializeNonTransferableMint",ux[ux.InterestBearingMintExtension=33]="InterestBearingMintExtension",ux[ux.CpiGuardExtension=34]="CpiGuardExtension",ux[ux.InitializePermanentDelegate=35]="InitializePermanentDelegate";var yx=n(5886).Buffer,mx=(0,rw.struct)([(0,rw.u8)("instruction")]);function vx(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:AA,a=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!1,isWritable:!1},{pubkey:xd.SYSVAR_RENT_PUBKEY,isSigner:!1,isWritable:!1}],i=yx.alloc(mx.span);return mx.encode({instruction:cx.InitializeAccount},i),new xd.TransactionInstruction({keys:a,programId:r,data:i})}function gx(e,t,n){if(n.length){e.push({pubkey:t,isSigner:!1,isWritable:!1});var r,a=(0,ha.Z)(n);try{for(a.s();!(r=a.n()).done;){var i=r.value;e.push({pubkey:i instanceof xd.PublicKey?i:i.publicKey,isSigner:!0,isWritable:!1})}}catch(e){a.e(e)}finally{a.f()}}else e.push({pubkey:t,isSigner:!0,isWritable:!1});return e}var Ax=n(5886).Buffer,wx=(0,rw.struct)([(0,rw.u8)("instruction"),uw("amount")]),xx=n(5886).Buffer,_x=(0,rw.struct)([(0,rw.u8)("instruction")]);function kx(e,t,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:AA,a=gx([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}],n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:[]),i=xx.alloc(_x.span);return _x.encode({instruction:cx.CloseAccount},i),new xd.TransactionInstruction({keys:a,programId:r,data:i})}function Ix(e,t){return(0,Oh.xc)([new xd.PublicKey(t).toBuffer()],e)}var Sx=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},Ex=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},Px=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]5&&void 0!==arguments[5]?arguments[5]:AA,i=gx([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!0}],n,arguments.length>4&&void 0!==arguments[4]?arguments[4]:[]),o=Ax.alloc(wx.span);return wx.encode({instruction:cx.Transfer,amount:BigInt(r)},o),new xd.TransactionInstruction({keys:i,programId:a,data:o})}(s,f.publicKey,d,c.valueOf()),y=kx(f.publicKey,d,d),[4,e.getLatestBlockhash(i)]);case 3:return m=g.sent().blockhash,(v=new xd.Transaction).recentBlockhash=m,v.feePayer=d,v.add(l,b,p,h,y),v.partialSign(f),[2,v]}}))}))}function Hx(e,t,n,r,a,i,o){return Rx(this,void 0,void 0,(function(){var s,c,u,d;return Dx(this,(function(f){switch(f.label){case 0:return s=(0,Gm.Rf)(a),c=s.tokenChain==S?Cx:Mx,u=(new xd.Transaction).add(c(n,t,r,s,i)),[4,e.getLatestBlockhash(o)];case 1:return d=f.sent().blockhash,u.recentBlockhash=d,u.feePayer=new xd.PublicKey(r),[2,u]}}))}))}function zx(e,t,n,r,a){return Rx(this,void 0,void 0,(function(){return Dx(this,(function(i){switch(i.label){case 0:return[4,Sy(e,t,n,r,a)];case 1:return[2,i.sent()]}}))}))}function Qx(e,t,n,r){return Rx(this,void 0,void 0,(function(){var a,i,o,s,c,u;return Dx(this,(function(d){switch(d.label){case 0:if(a=[],(i=gy(r)).ToChain!==F)throw new Error("Not destined for NEAR");return[4,em(e,n,om(i.ToAddress))];case 1:if(o=d.sent(),s=o.found,c=o.value,!s)throw new Error("Unregistered receiver (receiving account is not registered)");return[4,$A(e,n,i.FromChain,i.Contract)];case 2:if(u=d.sent(),"0000000000000000000000000000000000000000000000000000000000000000"===i.Contract)return[3,5];if(""===u||null===u)throw new Error("Unregistered token (has it been attested?)");return[4,nm(e,u,"storage_balance_of",{account_id:c})];case 3:return null===d.sent()&&a.push({contractId:u,methodName:"storage_deposit",args:{account_id:c,registration_only:!0},gas:new(Jy())("100000000000000"),attachedDeposit:new(Jy())("2000000000000000000000")}),void 0===i.Fee||0===Nx.compare(i.Fee,Nx.from("0000000000000000000000000000000000000000000000000000000000000000","hex"))?[3,5]:[4,nm(e,u,"storage_balance_of",{account_id:t})];case 4:null===d.sent()&&a.push({contractId:u,methodName:"storage_deposit",args:{account_id:t,registration_only:!0},gas:new(Jy())("100000000000000"),attachedDeposit:new(Jy())("2000000000000000000000")}),d.label=5;case 5:return a.push({contractId:n,methodName:"submit_vaa",args:{vaa:om(r)},attachedDeposit:new(Jy())("100000000000000000000000"),gas:new(Jy())("150000000000000")}),a.push({contractId:n,methodName:"submit_vaa",args:{vaa:om(r)},attachedDeposit:new(Jy())("100000000000000000000000"),gas:new(Jy())("150000000000000")}),[2,a]}}))}))}function qx(e,t,n){return sg(e,t,n)}var Vx=n(5886).Buffer,Jx=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},Kx=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]",value_type:"u8",key:i})];case 3:return o.sent(),[2,!0];case 4:return o.sent(),[2,!1];case 5:return[2]}}))}))}var a_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i_=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner_",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"},{internalType:"uint8",name:"decimals_",type:"uint8"},{internalType:"uint64",name:"sequence_",type:"uint64"},{internalType:"address",name:"owner_",type:"address"},{internalType:"uint16",name:"chainId_",type:"uint16"},{internalType:"bytes32",name:"nativeContract_",type:"bytes32"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"chainId",outputs:[{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"nativeContract",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account_",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient_",type:"address"},{internalType:"uint256",name:"amount_",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner_",type:"address"},{internalType:"address",name:"spender_",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender_",type:"address"},{internalType:"uint256",name:"amount_",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"sender_",type:"address"},{internalType:"address",name:"recipient_",type:"address"},{internalType:"uint256",name:"amount_",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender_",type:"address"},{internalType:"uint256",name:"addedValue_",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender_",type:"address"},{internalType:"uint256",name:"subtractedValue_",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account_",type:"address"},{internalType:"uint256",name:"amount_",type:"uint256"}],name:"mint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account_",type:"address"},{internalType:"uint256",name:"amount_",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"},{internalType:"uint64",name:"sequence_",type:"uint64"}],name:"updateDetails",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner_",type:"address"},{internalType:"address",name:"spender_",type:"address"},{internalType:"uint256",name:"value_",type:"uint256"},{internalType:"uint256",name:"deadline_",type:"uint256"},{internalType:"uint8",name:"v_",type:"uint8"},{internalType:"bytes32",name:"r_",type:"bytes32"},{internalType:"bytes32",name:"s_",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"domainFields",type:"bytes1"},{internalType:"string",name:"domainName",type:"string"},{internalType:"string",name:"domainVersion",type:"string"},{internalType:"uint256",name:"domainChainId",type:"uint256"},{internalType:"address",name:"domainVerifyingContract",type:"address"},{internalType:"bytes32",name:"domainSalt",type:"bytes32"},{internalType:"uint256[]",name:"domainExtensions",type:"uint256[]"}],stateMutability:"view",type:"function"}],o_="0x608060405234801561001057600080fd5b50611a18806100206000396000f3fe608060405234801561001057600080fd5b50600436106101425760003560e01c806384b0196e116100b8578063a18cd7c61161007c578063a18cd7c6146102a8578063a457c2d7146102bb578063a9059cbb146102ce578063c71f4615146102e1578063d505accf146102f4578063dd62ed3e1461030757600080fd5b806384b0196e146102365780638da5cb5b1461025157806395d89b411461026c5780639a8a0592146102745780639dc29fac1461029557600080fd5b80633644e5151161010a5780633644e515146101c257806339509351146101ca5780633d6c043b146101dd57806340c10f19146101e557806370a08231146101fa5780637ecebe001461022357600080fd5b806306fdde0314610147578063095ea7b31461016557806318160ddd1461018857806323b872dd1461019a578063313ce567146101ad575b600080fd5b61014f610340565b60405161015c91906118d8565b60405180910390f35b6101786101733660046116aa565b6103d4565b604051901515815260200161015c565b6003545b60405190815260200161015c565b6101786101a8366004611606565b6103ea565b60045460405160ff909116815260200161015c565b61018c6104a0565b6101786101d83660046116aa565b6104af565b60085461018c565b6101f86101f33660046116aa565b6104e6565b005b61018c6102083660046115b3565b6001600160a01b031660009081526005602052604090205490565b61018c6102313660046115b3565b61051e565b61023e61053e565b60405161015c9796959493929190611843565b6007546040516001600160a01b03909116815260200161015c565b61014f61059c565b600754600160a81b900461ffff1660405161ffff909116815260200161015c565b6101f86102a33660046116aa565b6105ae565b6101f86102b63660046116d3565b6105e2565b6101786102c93660046116aa565b6106bc565b6101786102dc3660046116aa565b610757565b6101f86102ef366004611744565b610764565b6101f8610302366004611641565b6107e7565b61018c6103153660046115d4565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205490565b606060008001805461035190611981565b80601f016020809104026020016040519081016040528092919081815260200182805461037d90611981565b80156103ca5780601f1061039f576101008083540402835291602001916103ca565b820191906000526020600020905b8154815290600101906020018083116103ad57829003601f168201915b5050505050905090565b60006103e1338484610953565b50600192915050565b60006103f7848484610a78565b6001600160a01b0384166000908152600660209081526040808320338452909152902054828110156104815760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b60648201526084015b60405180910390fd5b6104958533610490868561193a565b610953565b506001949350505050565b60006104aa610c50565b905090565b3360008181526006602090815260408083206001600160a01b038716845290915281205490916103e1918590610490908690611922565b6007546001600160a01b031633146105105760405162461bcd60e51b8152600401610478906118eb565b61051a8282610c92565b5050565b6001600160a01b0381166000908152600e60205260408120545b92915050565b600060608060008060006060610552610340565b6040805180820190915260018152603160f81b60208201524630610574610d74565b604080516000815260208101909152601f60f81b9d959c50939a509198509650945092509050565b60606000600101805461035190611981565b6007546001600160a01b031633146105d85760405162461bcd60e51b8152600401610478906118eb565b61051a8282610dbe565b6007546001600160a01b0316331461060c5760405162461bcd60e51b8152600401610478906118eb565b60025467ffffffffffffffff80831691161061066a5760405162461bcd60e51b815260206004820152601e60248201527f63757272656e74206d6574616461746120697320757020746f206461746500006044820152606401610478565b825161067d90600090602086019061144e565b50815161069190600190602085019061144e565b506002805467ffffffffffffffff191667ffffffffffffffff83161790556106b7610f0d565b505050565b3360009081526006602090815260408083206001600160a01b03861684529091528120548281101561073e5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610478565b61074d3385610490868561193a565b5060019392505050565b60006103e1338484610a78565b600754600160a01b900460ff16156107b45760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610478565b6007805460ff60a01b1916600160a01b1790556107d687878787878787610f69565b6107de610f0d565b50505050505050565b6107ef610f0d565b8342111561083f5760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e650000006044820152606401610478565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c988888861086e8c611005565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006108c98261102d565b905060006108d982878787611040565b9050896001600160a01b0316816001600160a01b03161461093c5760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e617475726500006044820152606401610478565b6109478a8a8a610953565b50505050505050505050565b6001600160a01b0383166109b55760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610478565b6001600160a01b038216610a165760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610478565b6001600160a01b0383811660008181526006602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610adc5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610478565b6001600160a01b038216610b3e5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610478565b6001600160a01b03831660009081526005602052604090205481811015610bb65760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610478565b610bc0828261193a565b6001600160a01b038086166000908152600560205260408082209390935590851681529081208054849290610bf6908490611922565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610c4291815260200190565b60405180910390a350505050565b600b546000906001600160a01b031630148015610c6e5750600a5446145b15610c7a575060095490565b6104aa610c85611068565b610c8d610d74565b611082565b6001600160a01b038216610ce85760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610478565b8060006003016000828254610cfd9190611922565b90915550506001600160a01b03821660009081526005602052604081208054839290610d2a908490611922565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b600754600854604051600160a81b90920460f01b6001600160f01b031916602083015260228201526000906042015b60405160208183030381529060405280519060200120905090565b6001600160a01b038216610e1e5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610478565b6001600160a01b03821660009081526005602052604090205481811015610e925760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610478565b610e9c828261193a565b6001600160a01b03841660009081526005602052604081209190915560038054849290610eca90849061193a565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610a6b565b6000610f17611068565b90506000610f23610d74565b600d5490915082141580610f395750600c548114155b1561051a5746600a55600b80546001600160a01b03191630179055610f5e8282611082565b600955600c55600d55565b8651610f7c9060009060208a019061144e565b508551610f9090600190602089019061144e565b506004805460ff90961660ff19909616959095179094556002805467ffffffffffffffff90941667ffffffffffffffff19909416939093179092556007805461ffff909316600160a81b02600162ffff0160a01b03199093166001600160a01b03909216919091179190911790556008555050565b6001600160a01b0381166000908152600e602052604090208054600181018255905b50919050565b600061053861103a610c50565b83611136565b60008060006110518787878761115d565b9150915061105e8161124a565b5095945050505050565b6000611072610340565b604051602001610da39190611827565b60007fd87cd6ef79d4e2b95e15ce8abf732db51ec771f1ca2edccf22a46c729ac56472836110c46040805180820190915260018152603160f81b602082015290565b6040516020016110d49190611827565b60408051601f1981840301815282825280516020918201209083019490945281019190915260608101919091524660808201523060a082015260c0810183905260e0015b60405160208183030381529060405280519060200120905092915050565b60405161190160f01b60208201526022810183905260428101829052600090606201611118565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156111945750600090506003611241565b8460ff16601b141580156111ac57508460ff16601c14155b156111bd5750600090506004611241565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611211573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811661123a57600060019250925050611241565b9150600090505b94509492505050565b600081600481111561126c57634e487b7160e01b600052602160045260246000fd5b14156112755750565b600181600481111561129757634e487b7160e01b600052602160045260246000fd5b14156112e55760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610478565b600281600481111561130757634e487b7160e01b600052602160045260246000fd5b14156113555760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610478565b600381600481111561137757634e487b7160e01b600052602160045260246000fd5b14156113d05760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610478565b60048160048111156113f257634e487b7160e01b600052602160045260246000fd5b141561144b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610478565b50565b82805461145a90611981565b90600052602060002090601f01602090048101928261147c57600085556114c2565b82601f1061149557805160ff19168380011785556114c2565b828001600101855582156114c2579182015b828111156114c25782518255916020019190600101906114a7565b506114ce9291506114d2565b5090565b5b808211156114ce57600081556001016114d3565b80356001600160a01b03811681146114fe57600080fd5b919050565b600082601f830112611513578081fd5b813567ffffffffffffffff8082111561152e5761152e6119cc565b604051601f8301601f19908116603f01168101908282118183101715611556576115566119cc565b8160405283815286602085880101111561156e578485fd5b8360208701602083013792830160200193909352509392505050565b803567ffffffffffffffff811681146114fe57600080fd5b803560ff811681146114fe57600080fd5b6000602082840312156115c4578081fd5b6115cd826114e7565b9392505050565b600080604083850312156115e6578081fd5b6115ef836114e7565b91506115fd602084016114e7565b90509250929050565b60008060006060848603121561161a578081fd5b611623846114e7565b9250611631602085016114e7565b9150604084013590509250925092565b600080600080600080600060e0888a03121561165b578283fd5b611664886114e7565b9650611672602089016114e7565b9550604088013594506060880135935061168e608089016115a2565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156116bc578182fd5b6116c5836114e7565b946020939093013593505050565b6000806000606084860312156116e7578283fd5b833567ffffffffffffffff808211156116fe578485fd5b61170a87838801611503565b9450602086013591508082111561171f578384fd5b5061172c86828701611503565b92505061173b6040850161158a565b90509250925092565b600080600080600080600060e0888a03121561175e578283fd5b873567ffffffffffffffff80821115611775578485fd5b6117818b838c01611503565b985060208a0135915080821115611796578485fd5b506117a38a828b01611503565b9650506117b2604089016115a2565b94506117c06060890161158a565b93506117ce608089016114e7565b925060a088013561ffff811681146117e4578283fd5b8092505060c0880135905092959891949750929550565b60008151808452611813816020860160208601611951565b601f01601f19169290920160200192915050565b60008251611839818460208701611951565b9190910192915050565b60ff60f81b881681526000602060e08184015261186360e084018a6117fb565b8381036040850152611875818a6117fb565b606085018990526001600160a01b038816608086015260a0850187905284810360c08601528551808252838701925090830190845b818110156118c6578351835292840192918401916001016118aa565b50909c9b505050505050505050505050565b6020815260006115cd60208301846117fb565b60208082526017908201527f63616c6c6572206973206e6f7420746865206f776e6572000000000000000000604082015260600190565b60008219821115611935576119356119b6565b500190565b60008282101561194c5761194c6119b6565b500390565b60005b8381101561196c578181015183820152602001611954565b8381111561197b576000848401525b50505050565b600181811c9082168061199557607f821691505b6020821081141561102757634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea26469706673582212203de9d8f3af673eec4b7def57fea7c44ddaacb566240ed7be1ee0e924bc2e586264736f6c63430008040033",s_=function(e){function t(t){return e.call(this,i_,o_,t)||this}return a_(t,e),t.prototype.deploy=function(t){return e.prototype.deploy.call(this,t||{})},t.prototype.getDeployTransaction=function(t){return e.prototype.getDeployTransaction.call(this,t||{})},t.prototype.attach=function(t){return e.prototype.attach.call(this,t)},t.prototype.connect=function(t){return e.prototype.connect.call(this,t)},t.createInterface=function(){return new vv.vU(i_)},t.connect=function(e,t){return new gv.CH(e,i_,t)},t.bytecode=o_,t.abi=i_,t}(gv.lV),c_=n(5886).Buffer,u_=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},d_=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1&&void 0!==arguments[1]?arguments[1]:18;return new Ow(e).multipliedBy(new Ow(10).pow(t))}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:18)}}],[{key:"make",value:function(e){return new n(e)}}]),n}(Dk);n(49661),(bk=lk||(lk={}))[bk.ACCEPTED=202]="ACCEPTED",bk[bk.BAD_GATEWAY=502]="BAD_GATEWAY",bk[bk.BAD_REQUEST=400]="BAD_REQUEST",bk[bk.CONFLICT=409]="CONFLICT",bk[bk.CONTINUE=100]="CONTINUE",bk[bk.CREATED=201]="CREATED",bk[bk.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",bk[bk.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",bk[bk.FORBIDDEN=403]="FORBIDDEN",bk[bk.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",bk[bk.GONE=410]="GONE",bk[bk.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",bk[bk.IM_A_TEAPOT=418]="IM_A_TEAPOT",bk[bk.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",bk[bk.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",bk[bk.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",bk[bk.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",bk[bk.LOCKED=423]="LOCKED",bk[bk.METHOD_FAILURE=420]="METHOD_FAILURE",bk[bk.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",bk[bk.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",bk[bk.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",bk[bk.MULTI_STATUS=207]="MULTI_STATUS",bk[bk.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",bk[bk.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",bk[bk.NO_CONTENT=204]="NO_CONTENT",bk[bk.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",bk[bk.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",bk[bk.NOT_FOUND=404]="NOT_FOUND",bk[bk.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",bk[bk.NOT_MODIFIED=304]="NOT_MODIFIED",bk[bk.OK=200]="OK",bk[bk.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",bk[bk.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",bk[bk.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",bk[bk.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",bk[bk.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",bk[bk.PROCESSING=102]="PROCESSING",bk[bk.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",bk[bk.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",bk[bk.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",bk[bk.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",bk[bk.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",bk[bk.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",bk[bk.RESET_CONTENT=205]="RESET_CONTENT",bk[bk.SEE_OTHER=303]="SEE_OTHER",bk[bk.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",bk[bk.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",bk[bk.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",bk[bk.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",bk[bk.UNAUTHORIZED=401]="UNAUTHORIZED",bk[bk.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",bk[bk.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",bk[bk.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",bk[bk.USE_PROXY=305]="USE_PROXY",bk[bk.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",function(e){e.Idle="idle",e.Loading="loading",e.Completed="completed",e.Error="error",e.Confirmed="confirmed"}(pk||(pk={}));var Uk=4e5,Lk=(new Dk(Uk).times(5e8).toString(),Uk.toString(),new Dk(86400),Dk.clone({ROUNDING_MODE:Dk.ROUND_DOWN}),Dk.clone({ROUNDING_MODE:Dk.ROUND_DOWN}),function(e){return new Dk(e).toFixed(18)}),Fk=function e(t){var n=t.object,r=t.messageType,a=t.primaryType,i=void 0===a?"MsgValue":a,o=["order_mask","order_type","oracle_type","round","oracle_scale_factor","expiry","option","proposal_id"],s=new Map,c=new Array;for(var u in A_(n)){var d=A_(n)[u];if("@type"!==u){var f=typeof d;if("boolean"===f)c.push({name:u,type:"bool"});else if("number"===f||"bigint"===f||o.includes(u))c.push({name:u,type:Zk(u)});else if("string"===f)c.push({name:u,type:"string"});else{if("object"!==f)throw new hk(new Error("Type ".concat(u," not found")));if(Array.isArray(d)&&0===d.length)throw new hk(new Error("Array with length 0 found"));if(Array.isArray(d)&&d.length>0){var l=typeof d[0];if("boolean"===l||"number"===l||"string"===l){for(var b in d)if(typeof b!==l)throw new hk(new Error("Array with different types found"));"boolean"===l?c.push({name:u,type:"bool[]"}):"number"===l?c.push({name:u,type:"number[]"}):"string"===l&&c.push({name:u,type:"string[]"})}else{if("object"!==l)throw new hk(new Error("Array with elements of unknown type found"));var p=zk({property:Nk(u),parentProperty:i,messageType:r}),h=e({object:d[0],primaryType:p,messageType:r}),y=h.get(p);c.push({name:u,type:"".concat(p,"[]")}),s.set(p,y);var m,v=(0,ha.Z)(h.keys());try{for(v.s();!(m=v.n()).done;){var g=m.value;g!==i&&s.set(g,h.get(g))}}catch(e){v.e(e)}finally{v.f()}}}else if(d instanceof Date)c.push({name:u,type:"string"});else{var A=zk({property:Nk(u),parentProperty:i,messageType:r}),w=e({object:d,primaryType:A,messageType:r}),x=w.get(A);c.push({name:u,type:A}),s.set(A,x);var _,k=(0,ha.Z)(w.keys());try{for(k.s();!(_=k.n()).done;){var I=_.value;I!==i&&s.set(I,w.get(I))}}catch(e){k.e(e)}finally{k.f()}}}}}return s.set(i,c),s},Zk=function(e){switch(e){case"order_mask":case"order_type":case"oracle_type":case"option":return"int32";case"round":case"oracle_scale_factor":case"proposal_id":default:return"uint64";case"expiry":return"int64"}},Hk=function e(t,n){var r=["proposal_id","round","oracle_scale_factor","timeout_timestamp","revision_height","revision_number","expiry"],a=["min_price_tick_size","price","quantity","margin","trigger_price","min_quantity_tick_size"],i={"exchange/MsgIncreasePositionMargin":["amount"]},o={"wasmx/MsgExecuteContractCompat":["funds"]};return Object.keys(t).reduce((function(s,c){var u=t[c];if(!u){if(n){var d=Object.keys(o).find((function(e){return e===n}));if(d&&o[d].includes(c))return(0,ua.Z)((0,ua.Z)({},s),{},(0,ca.Z)({},c,u))}return s}if("object"==typeof u)return u instanceof Date?(0,ua.Z)((0,ua.Z)({},s),{},(0,ca.Z)({},c,u.toJSON().split(".")[0]+"Z")):Array.isArray(u)?(0,ua.Z)((0,ua.Z)({},s),{},(0,ca.Z)({},c,u.map((function(t){return e(t)})))):(0,ua.Z)((0,ua.Z)({},s),{},(0,ca.Z)({},c,e(u)));if(function(e){return"number"==typeof e||!isNaN(parseFloat(e))}(u)&&r.includes(c))return(0,ua.Z)((0,ua.Z)({},s),{},(0,ca.Z)({},c,u.toString()));if("string"==typeof u){if(a.includes(c))return(0,ua.Z)((0,ua.Z)({},s),{},(0,ca.Z)({},c,Lk(u)));if(n){var f=Object.keys(i).find((function(e){return e===n}));if(f&&i[f].includes(c))return(0,ua.Z)((0,ua.Z)({},s),{},(0,ca.Z)({},c,Lk(u)))}}return(0,ua.Z)((0,ua.Z)({},s),{},(0,ca.Z)({},c,u))}),{})},zk=function(e){var t=e.property,n=e.parentProperty;return"wasm/MsgExecuteContract"===e.messageType?Qk(t,n):qk(t,n)},Qk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="CosmwasmInnerMsgMarker",r=e.replace("Type","");if("Msg"===r)return n;var a=t.replace(n,"");return"".concat(a+r,"Value")},qk=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.replace("Type",""),r="MsgValue"===t?"":t.replace("Type","");return"Type".concat(r+n)};function Vk(e){if(Array.isArray(e))return e.map(Vk);if("object"!=typeof e||null===e)return e;var t={};return Object.keys(e).sort().forEach((function(n){void 0!==e[n]&&null!==e[n]&&(t[n]=Vk(e[n]))})),t}var Jk,Kk,Gk=function(){function e(t){(0,ma.Z)(this,e),(0,ca.Z)(this,"params",void 0),this.params=t}return(0,va.Z)(e,[{key:"toJSON",value:function(){return JSON.stringify(Vk(this.toData()))}},{key:"toEip712Types",value:function(){var e=this.toAmino();return Fk({object:e.value,messageType:e.type})}},{key:"toEip712",value:function(){var e=this.toAmino(),t=e.type,n=e.value;return{type:t,value:Hk(n,t)}}},{key:"toDirectSignJSON",value:function(){return JSON.stringify(Vk(this.toDirectSign()))}}]),e}();!function(e){e[e.NO_HASH=0]="NO_HASH",e[e.SHA256=1]="SHA256",e[e.SHA512=2]="SHA512",e[e.KECCAK=3]="KECCAK",e[e.RIPEMD160=4]="RIPEMD160",e[e.BITCOIN=5]="BITCOIN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Jk||(Jk={})),function(e){e[e.NO_PREFIX=0]="NO_PREFIX",e[e.VAR_PROTO=1]="VAR_PROTO",e[e.VAR_RLP=2]="VAR_RLP",e[e.FIXED32_BIG=3]="FIXED32_BIG",e[e.FIXED32_LITTLE=4]="FIXED32_LITTLE",e[e.FIXED64_BIG=5]="FIXED64_BIG",e[e.FIXED64_LITTLE=6]="FIXED64_LITTLE",e[e.REQUIRE_32_BYTES=7]="REQUIRE_32_BYTES",e[e.REQUIRE_64_BYTES=8]="REQUIRE_64_BYTES",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Kk||(Kk={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var Wk=n(10995);!function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error;var Yk,Xk,$k,eI,tI,nI,rI={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={denom:"",amount:""};n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{denom:aI(e.denom)?String(e.denom):"",amount:aI(e.amount)?String(e.amount):""}},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},create:function(e){return rI.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={denom:"",amount:""};return r.denom=null!==(t=e.denom)&&void 0!==t?t:"",r.amount=null!==(n=e.amount)&&void 0!==n?n:"",r}};function aI(e){return null!=e}(function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(e){e[e.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",e[e.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",e[e.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",e[e.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Yk||(Yk={})),function(e){e[e.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",e[e.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",e[e.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",e[e.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(Xk||(Xk={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(e){e[e.NEW=0]="NEW",e[e.RECHECK=1]="RECHECK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}($k||($k={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",e[e.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(eI||(eI={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.REJECT=3]="REJECT",e[e.REJECT_FORMAT=4]="REJECT_FORMAT",e[e.REJECT_SENDER=5]="REJECT_SENDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(tI||(tI={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.RETRY=3]="RETRY",e[e.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",e[e.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(nI||(nI={}));var iI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),iI.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var oI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),oI.Error,Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var sI,cI,uI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),uI.Error,Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(e){e[e.VOTE_OPTION_UNSPECIFIED=0]="VOTE_OPTION_UNSPECIFIED",e[e.VOTE_OPTION_YES=1]="VOTE_OPTION_YES",e[e.VOTE_OPTION_ABSTAIN=2]="VOTE_OPTION_ABSTAIN",e[e.VOTE_OPTION_NO=3]="VOTE_OPTION_NO",e[e.VOTE_OPTION_NO_WITH_VETO=4]="VOTE_OPTION_NO_WITH_VETO",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(sI||(sI={})),function(e){e[e.PROPOSAL_STATUS_UNSPECIFIED=0]="PROPOSAL_STATUS_UNSPECIFIED",e[e.PROPOSAL_STATUS_DEPOSIT_PERIOD=1]="PROPOSAL_STATUS_DEPOSIT_PERIOD",e[e.PROPOSAL_STATUS_VOTING_PERIOD=2]="PROPOSAL_STATUS_VOTING_PERIOD",e[e.PROPOSAL_STATUS_PASSED=3]="PROPOSAL_STATUS_PASSED",e[e.PROPOSAL_STATUS_REJECTED=4]="PROPOSAL_STATUS_REJECTED",e[e.PROPOSAL_STATUS_FAILED=5]="PROPOSAL_STATUS_FAILED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(cI||(cI={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var dI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),dI.Error,Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var fI,lI,bI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),bI.Error,Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,(lI=fI||(fI={}))[lI.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",lI[lI.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",lI[lI.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",lI[lI.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",lI[lI.UNRECOGNIZED=-1]="UNRECOGNIZED",Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var pI,hI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),hI.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(e){e[e.AUTHORIZATION_TYPE_UNSPECIFIED=0]="AUTHORIZATION_TYPE_UNSPECIFIED",e[e.AUTHORIZATION_TYPE_DELEGATE=1]="AUTHORIZATION_TYPE_DELEGATE",e[e.AUTHORIZATION_TYPE_UNDELEGATE=2]="AUTHORIZATION_TYPE_UNDELEGATE",e[e.AUTHORIZATION_TYPE_REDELEGATE=3]="AUTHORIZATION_TYPE_REDELEGATE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(pI||(pI={})),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var yI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),yI.Error,Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var mI,vI,gI,AI,wI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),wI.Error,function(e){e[e.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",e[e.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",e[e.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",e[e.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",e[e.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(mI||(mI={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(e){e[e.ORDER_BY_UNSPECIFIED=0]="ORDER_BY_UNSPECIFIED",e[e.ORDER_BY_ASC=1]="ORDER_BY_ASC",e[e.ORDER_BY_DESC=2]="ORDER_BY_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(vI||(vI={})),(AI=gI||(gI={}))[AI.BROADCAST_MODE_UNSPECIFIED=0]="BROADCAST_MODE_UNSPECIFIED",AI[AI.BROADCAST_MODE_BLOCK=1]="BROADCAST_MODE_BLOCK",AI[AI.BROADCAST_MODE_SYNC=2]="BROADCAST_MODE_SYNC",AI[AI.BROADCAST_MODE_ASYNC=3]="BROADCAST_MODE_ASYNC",AI[AI.UNRECOGNIZED=-1]="UNRECOGNIZED";var xI,_I,kI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),kI.Error,function(e){e[e.ACCESS_TYPE_UNSPECIFIED=0]="ACCESS_TYPE_UNSPECIFIED",e[e.ACCESS_TYPE_NOBODY=1]="ACCESS_TYPE_NOBODY",e[e.ACCESS_TYPE_ONLY_ADDRESS=2]="ACCESS_TYPE_ONLY_ADDRESS",e[e.ACCESS_TYPE_EVERYBODY=3]="ACCESS_TYPE_EVERYBODY",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(xI||(xI={})),function(e){e[e.CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED=0]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_UNSPECIFIED",e[e.CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT=1]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_INIT",e[e.CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE=2]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_MIGRATE",e[e.CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS=3]="CONTRACT_CODE_HISTORY_OPERATION_TYPE_GENESIS",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(_I||(_I={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var II=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),II.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var SI,EI,CI,TI,OI,PI,MI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),MI.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(e){e[e.TYPE_DOUBLE=1]="TYPE_DOUBLE",e[e.TYPE_FLOAT=2]="TYPE_FLOAT",e[e.TYPE_INT64=3]="TYPE_INT64",e[e.TYPE_UINT64=4]="TYPE_UINT64",e[e.TYPE_INT32=5]="TYPE_INT32",e[e.TYPE_FIXED64=6]="TYPE_FIXED64",e[e.TYPE_FIXED32=7]="TYPE_FIXED32",e[e.TYPE_BOOL=8]="TYPE_BOOL",e[e.TYPE_STRING=9]="TYPE_STRING",e[e.TYPE_GROUP=10]="TYPE_GROUP",e[e.TYPE_MESSAGE=11]="TYPE_MESSAGE",e[e.TYPE_BYTES=12]="TYPE_BYTES",e[e.TYPE_UINT32=13]="TYPE_UINT32",e[e.TYPE_ENUM=14]="TYPE_ENUM",e[e.TYPE_SFIXED32=15]="TYPE_SFIXED32",e[e.TYPE_SFIXED64=16]="TYPE_SFIXED64",e[e.TYPE_SINT32=17]="TYPE_SINT32",e[e.TYPE_SINT64=18]="TYPE_SINT64",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(SI||(SI={})),function(e){e[e.LABEL_OPTIONAL=1]="LABEL_OPTIONAL",e[e.LABEL_REQUIRED=2]="LABEL_REQUIRED",e[e.LABEL_REPEATED=3]="LABEL_REPEATED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(EI||(EI={})),function(e){e[e.SPEED=1]="SPEED",e[e.CODE_SIZE=2]="CODE_SIZE",e[e.LITE_RUNTIME=3]="LITE_RUNTIME",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(CI||(CI={})),function(e){e[e.STRING=0]="STRING",e[e.CORD=1]="CORD",e[e.STRING_PIECE=2]="STRING_PIECE",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(TI||(TI={})),function(e){e[e.JS_NORMAL=0]="JS_NORMAL",e[e.JS_STRING=1]="JS_STRING",e[e.JS_NUMBER=2]="JS_NUMBER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(OI||(OI={})),function(e){e[e.IDEMPOTENCY_UNKNOWN=0]="IDEMPOTENCY_UNKNOWN",e[e.NO_SIDE_EFFECTS=1]="NO_SIDE_EFFECTS",e[e.IDEMPOTENT=2]="IDEMPOTENT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(PI||(PI={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var BI,NI,RI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),RI.Error,function(e){e[e.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",e[e.STATE_INIT=1]="STATE_INIT",e[e.STATE_TRYOPEN=2]="STATE_TRYOPEN",e[e.STATE_OPEN=3]="STATE_OPEN",e[e.STATE_CLOSED=4]="STATE_CLOSED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(BI||(BI={})),function(e){e[e.ORDER_NONE_UNSPECIFIED=0]="ORDER_NONE_UNSPECIFIED",e[e.ORDER_UNORDERED=1]="ORDER_UNORDERED",e[e.ORDER_ORDERED=2]="ORDER_ORDERED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(NI||(NI={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var DI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),DI.Error;var jI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),jI.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var UI,LI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),LI.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(e){e[e.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",e[e.STATE_INIT=1]="STATE_INIT",e[e.STATE_TRYOPEN=2]="STATE_TRYOPEN",e[e.STATE_OPEN=3]="STATE_OPEN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(UI||(UI={})),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var FI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),FI.Error;var ZI,HI,zI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),zI.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(e){e[e.DATA_TYPE_UNINITIALIZED_UNSPECIFIED=0]="DATA_TYPE_UNINITIALIZED_UNSPECIFIED",e[e.DATA_TYPE_CLIENT_STATE=1]="DATA_TYPE_CLIENT_STATE",e[e.DATA_TYPE_CONSENSUS_STATE=2]="DATA_TYPE_CONSENSUS_STATE",e[e.DATA_TYPE_CONNECTION_STATE=3]="DATA_TYPE_CONNECTION_STATE",e[e.DATA_TYPE_CHANNEL_STATE=4]="DATA_TYPE_CHANNEL_STATE",e[e.DATA_TYPE_PACKET_COMMITMENT=5]="DATA_TYPE_PACKET_COMMITMENT",e[e.DATA_TYPE_PACKET_ACKNOWLEDGEMENT=6]="DATA_TYPE_PACKET_ACKNOWLEDGEMENT",e[e.DATA_TYPE_PACKET_RECEIPT_ABSENCE=7]="DATA_TYPE_PACKET_RECEIPT_ABSENCE",e[e.DATA_TYPE_NEXT_SEQUENCE_RECV=8]="DATA_TYPE_NEXT_SEQUENCE_RECV",e[e.DATA_TYPE_HEADER=9]="DATA_TYPE_HEADER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(ZI||(ZI={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(e){e[e.DATA_TYPE_UNINITIALIZED_UNSPECIFIED=0]="DATA_TYPE_UNINITIALIZED_UNSPECIFIED",e[e.DATA_TYPE_CLIENT_STATE=1]="DATA_TYPE_CLIENT_STATE",e[e.DATA_TYPE_CONSENSUS_STATE=2]="DATA_TYPE_CONSENSUS_STATE",e[e.DATA_TYPE_CONNECTION_STATE=3]="DATA_TYPE_CONNECTION_STATE",e[e.DATA_TYPE_CHANNEL_STATE=4]="DATA_TYPE_CHANNEL_STATE",e[e.DATA_TYPE_PACKET_COMMITMENT=5]="DATA_TYPE_PACKET_COMMITMENT",e[e.DATA_TYPE_PACKET_ACKNOWLEDGEMENT=6]="DATA_TYPE_PACKET_ACKNOWLEDGEMENT",e[e.DATA_TYPE_PACKET_RECEIPT_ABSENCE=7]="DATA_TYPE_PACKET_RECEIPT_ABSENCE",e[e.DATA_TYPE_NEXT_SEQUENCE_RECV=8]="DATA_TYPE_NEXT_SEQUENCE_RECV",e[e.DATA_TYPE_HEADER=9]="DATA_TYPE_HEADER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(HI||(HI={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var QI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),QI.Error;var qI,VI=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();function JI(e){switch(e){case 0:case"Unspecified":return qI.Unspecified;case 1:case"Band":return qI.Band;case 2:case"PriceFeed":return qI.PriceFeed;case 3:case"Coinbase":return qI.Coinbase;case 4:case"Chainlink":return qI.Chainlink;case 5:case"Razor":return qI.Razor;case 6:case"Dia":return qI.Dia;case 7:case"API3":return qI.API3;case 8:case"Uma":return qI.Uma;case 9:case"Pyth":return qI.Pyth;case 10:case"BandIBC":return qI.BandIBC;case 11:case"Provider":return qI.Provider;default:return qI.UNRECOGNIZED}}function KI(e){switch(e){case qI.Unspecified:return"Unspecified";case qI.Band:return"Band";case qI.PriceFeed:return"PriceFeed";case qI.Coinbase:return"Coinbase";case qI.Chainlink:return"Chainlink";case qI.Razor:return"Razor";case qI.Dia:return"Dia";case qI.API3:return"API3";case qI.Uma:return"Uma";case qI.Pyth:return"Pyth";case qI.BandIBC:return"BandIBC";case qI.Provider:return"Provider";case qI.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),VI.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(e){e[e.Unspecified=0]="Unspecified",e[e.Band=1]="Band",e[e.PriceFeed=2]="PriceFeed",e[e.Coinbase=3]="Coinbase",e[e.Chainlink=4]="Chainlink",e[e.Razor=5]="Razor",e[e.Dia=6]="Dia",e[e.API3=7]="API3",e[e.Uma=8]="Uma",e[e.Pyth=9]="Pyth",e[e.BandIBC=10]="BandIBC",e[e.Provider=11]="Provider",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(qI||(qI={}));var GI,WI,YI,XI,$I,eS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return 0!==e.groupCount&&t.uint32(8).uint32(e.groupCount),0!==e.recordsSampleSize&&t.uint32(16).uint32(e.recordsSampleSize),""!==e.mean&&t.uint32(26).string(e.mean),""!==e.twap&&t.uint32(34).string(e.twap),"0"!==e.firstTimestamp&&t.uint32(40).int64(e.firstTimestamp),"0"!==e.lastTimestamp&&t.uint32(48).int64(e.lastTimestamp),""!==e.minPrice&&t.uint32(58).string(e.minPrice),""!==e.maxPrice&&t.uint32(66).string(e.maxPrice),""!==e.medianPrice&&t.uint32(74).string(e.medianPrice),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={groupCount:0,recordsSampleSize:0,mean:"",twap:"",firstTimestamp:"0",lastTimestamp:"0",minPrice:"",maxPrice:"",medianPrice:""};n.pos>>3){case 1:a.groupCount=n.uint32();break;case 2:a.recordsSampleSize=n.uint32();break;case 3:a.mean=n.string();break;case 4:a.twap=n.string();break;case 5:a.firstTimestamp=tS(n.int64());break;case 6:a.lastTimestamp=tS(n.int64());break;case 7:a.minPrice=n.string();break;case 8:a.maxPrice=n.string();break;case 9:a.medianPrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{groupCount:nS(e.groupCount)?Number(e.groupCount):0,recordsSampleSize:nS(e.recordsSampleSize)?Number(e.recordsSampleSize):0,mean:nS(e.mean)?String(e.mean):"",twap:nS(e.twap)?String(e.twap):"",firstTimestamp:nS(e.firstTimestamp)?String(e.firstTimestamp):"0",lastTimestamp:nS(e.lastTimestamp)?String(e.lastTimestamp):"0",minPrice:nS(e.minPrice)?String(e.minPrice):"",maxPrice:nS(e.maxPrice)?String(e.maxPrice):"",medianPrice:nS(e.medianPrice)?String(e.medianPrice):""}},toJSON:function(e){var t={};return void 0!==e.groupCount&&(t.groupCount=Math.round(e.groupCount)),void 0!==e.recordsSampleSize&&(t.recordsSampleSize=Math.round(e.recordsSampleSize)),void 0!==e.mean&&(t.mean=e.mean),void 0!==e.twap&&(t.twap=e.twap),void 0!==e.firstTimestamp&&(t.firstTimestamp=e.firstTimestamp),void 0!==e.lastTimestamp&&(t.lastTimestamp=e.lastTimestamp),void 0!==e.minPrice&&(t.minPrice=e.minPrice),void 0!==e.maxPrice&&(t.maxPrice=e.maxPrice),void 0!==e.medianPrice&&(t.medianPrice=e.medianPrice),t},create:function(e){return eS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c,u,d={groupCount:0,recordsSampleSize:0,mean:"",twap:"",firstTimestamp:"0",lastTimestamp:"0",minPrice:"",maxPrice:"",medianPrice:""};return d.groupCount=null!==(t=e.groupCount)&&void 0!==t?t:0,d.recordsSampleSize=null!==(n=e.recordsSampleSize)&&void 0!==n?n:0,d.mean=null!==(r=e.mean)&&void 0!==r?r:"",d.twap=null!==(a=e.twap)&&void 0!==a?a:"",d.firstTimestamp=null!==(i=e.firstTimestamp)&&void 0!==i?i:"0",d.lastTimestamp=null!==(o=e.lastTimestamp)&&void 0!==o?o:"0",d.minPrice=null!==(s=e.minPrice)&&void 0!==s?s:"",d.maxPrice=null!==(c=e.maxPrice)&&void 0!==c?c:"",d.medianPrice=null!==(u=e.medianPrice)&&void 0!==u?u:"",d}};function tS(e){return e.toString()}function nS(e){return null!=e}function rS(e){switch(e){case 0:case"Nobody":return GI.Nobody;case 1:case"BeginBlockerSmartContractsOnly":return GI.BeginBlockerSmartContractsOnly;case 2:case"SmartContractsOnly":return GI.SmartContractsOnly;case 3:case"Everyone":return GI.Everyone;default:return GI.UNRECOGNIZED}}function aS(e){switch(e){case 0:case"Unspecified":return WI.Unspecified;case 1:case"Active":return WI.Active;case 2:case"Paused":return WI.Paused;case 3:case"Demolished":return WI.Demolished;case 4:case"Expired":return WI.Expired;default:return WI.UNRECOGNIZED}}function iS(e){switch(e){case WI.Unspecified:return"Unspecified";case WI.Active:return"Active";case WI.Paused:return"Paused";case WI.Demolished:return"Demolished";case WI.Expired:return"Expired";case WI.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function oS(e){switch(e){case 0:case"UNSPECIFIED":return YI.UNSPECIFIED;case 1:case"BUY":return YI.BUY;case 2:case"SELL":return YI.SELL;case 3:case"STOP_BUY":return YI.STOP_BUY;case 4:case"STOP_SELL":return YI.STOP_SELL;case 5:case"TAKE_BUY":return YI.TAKE_BUY;case 6:case"TAKE_SELL":return YI.TAKE_SELL;case 7:case"BUY_PO":return YI.BUY_PO;case 8:case"SELL_PO":return YI.SELL_PO;case 9:case"BUY_ATOMIC":return YI.BUY_ATOMIC;case 10:case"SELL_ATOMIC":return YI.SELL_ATOMIC;default:return YI.UNRECOGNIZED}}function sS(e){switch(e){case YI.UNSPECIFIED:return"UNSPECIFIED";case YI.BUY:return"BUY";case YI.SELL:return"SELL";case YI.STOP_BUY:return"STOP_BUY";case YI.STOP_SELL:return"STOP_SELL";case YI.TAKE_BUY:return"TAKE_BUY";case YI.TAKE_SELL:return"TAKE_SELL";case YI.BUY_PO:return"BUY_PO";case YI.SELL_PO:return"SELL_PO";case YI.BUY_ATOMIC:return"BUY_ATOMIC";case YI.SELL_ATOMIC:return"SELL_ATOMIC";case YI.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(e){e[e.Nobody=0]="Nobody",e[e.BeginBlockerSmartContractsOnly=1]="BeginBlockerSmartContractsOnly",e[e.SmartContractsOnly=2]="SmartContractsOnly",e[e.Everyone=3]="Everyone",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(GI||(GI={})),function(e){e[e.Unspecified=0]="Unspecified",e[e.Active=1]="Active",e[e.Paused=2]="Paused",e[e.Demolished=3]="Demolished",e[e.Expired=4]="Expired",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(WI||(WI={})),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.BUY=1]="BUY",e[e.SELL=2]="SELL",e[e.STOP_BUY=3]="STOP_BUY",e[e.STOP_SELL=4]="STOP_SELL",e[e.TAKE_BUY=5]="TAKE_BUY",e[e.TAKE_SELL=6]="TAKE_SELL",e[e.BUY_PO=7]="BUY_PO",e[e.SELL_PO=8]="SELL_PO",e[e.BUY_ATOMIC=9]="BUY_ATOMIC",e[e.SELL_ATOMIC=10]="SELL_ATOMIC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(YI||(YI={})),function(e){e[e.UnspecifiedExecutionType=0]="UnspecifiedExecutionType",e[e.Market=1]="Market",e[e.LimitFill=2]="LimitFill",e[e.LimitMatchRestingOrder=3]="LimitMatchRestingOrder",e[e.LimitMatchNewOrder=4]="LimitMatchNewOrder",e[e.MarketLiquidation=5]="MarketLiquidation",e[e.ExpiryMarketSettlement=6]="ExpiryMarketSettlement",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(XI||(XI={})),function(e){e[e.UNUSED=0]="UNUSED",e[e.ANY=1]="ANY",e[e.REGULAR=2]="REGULAR",e[e.CONDITIONAL=4]="CONDITIONAL",e[e.DIRECTION_BUY_OR_HIGHER=8]="DIRECTION_BUY_OR_HIGHER",e[e.DIRECTION_SELL_OR_LOWER=16]="DIRECTION_SELL_OR_LOWER",e[e.TYPE_MARKET=32]="TYPE_MARKET",e[e.TYPE_LIMIT=64]="TYPE_LIMIT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}($I||($I={}));var cS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.spotMarketInstantListingFee&&rI.encode(e.spotMarketInstantListingFee,t.uint32(10).fork()).ldelim(),void 0!==e.derivativeMarketInstantListingFee&&rI.encode(e.derivativeMarketInstantListingFee,t.uint32(18).fork()).ldelim(),""!==e.defaultSpotMakerFeeRate&&t.uint32(26).string(e.defaultSpotMakerFeeRate),""!==e.defaultSpotTakerFeeRate&&t.uint32(34).string(e.defaultSpotTakerFeeRate),""!==e.defaultDerivativeMakerFeeRate&&t.uint32(42).string(e.defaultDerivativeMakerFeeRate),""!==e.defaultDerivativeTakerFeeRate&&t.uint32(50).string(e.defaultDerivativeTakerFeeRate),""!==e.defaultInitialMarginRatio&&t.uint32(58).string(e.defaultInitialMarginRatio),""!==e.defaultMaintenanceMarginRatio&&t.uint32(66).string(e.defaultMaintenanceMarginRatio),"0"!==e.defaultFundingInterval&&t.uint32(72).int64(e.defaultFundingInterval),"0"!==e.fundingMultiple&&t.uint32(80).int64(e.fundingMultiple),""!==e.relayerFeeShareRate&&t.uint32(90).string(e.relayerFeeShareRate),""!==e.defaultHourlyFundingRateCap&&t.uint32(98).string(e.defaultHourlyFundingRateCap),""!==e.defaultHourlyInterestRate&&t.uint32(106).string(e.defaultHourlyInterestRate),0!==e.maxDerivativeOrderSideCount&&t.uint32(112).uint32(e.maxDerivativeOrderSideCount),""!==e.injRewardStakedRequirementThreshold&&t.uint32(122).string(e.injRewardStakedRequirementThreshold),"0"!==e.tradingRewardsVestingDuration&&t.uint32(128).int64(e.tradingRewardsVestingDuration),""!==e.liquidatorRewardShareRate&&t.uint32(138).string(e.liquidatorRewardShareRate),void 0!==e.binaryOptionsMarketInstantListingFee&&rI.encode(e.binaryOptionsMarketInstantListingFee,t.uint32(146).fork()).ldelim(),0!==e.atomicMarketOrderAccessLevel&&t.uint32(152).int32(e.atomicMarketOrderAccessLevel),""!==e.spotAtomicMarketOrderFeeMultiplier&&t.uint32(162).string(e.spotAtomicMarketOrderFeeMultiplier),""!==e.derivativeAtomicMarketOrderFeeMultiplier&&t.uint32(170).string(e.derivativeAtomicMarketOrderFeeMultiplier),""!==e.binaryOptionsAtomicMarketOrderFeeMultiplier&&t.uint32(178).string(e.binaryOptionsAtomicMarketOrderFeeMultiplier),""!==e.minimalProtocolFeeRate&&t.uint32(186).string(e.minimalProtocolFeeRate),!0===e.isInstantDerivativeMarketLaunchEnabled&&t.uint32(192).bool(e.isInstantDerivativeMarketLaunchEnabled),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={spotMarketInstantListingFee:void 0,derivativeMarketInstantListingFee:void 0,defaultSpotMakerFeeRate:"",defaultSpotTakerFeeRate:"",defaultDerivativeMakerFeeRate:"",defaultDerivativeTakerFeeRate:"",defaultInitialMarginRatio:"",defaultMaintenanceMarginRatio:"",defaultFundingInterval:"0",fundingMultiple:"0",relayerFeeShareRate:"",defaultHourlyFundingRateCap:"",defaultHourlyInterestRate:"",maxDerivativeOrderSideCount:0,injRewardStakedRequirementThreshold:"",tradingRewardsVestingDuration:"0",liquidatorRewardShareRate:"",binaryOptionsMarketInstantListingFee:void 0,atomicMarketOrderAccessLevel:0,spotAtomicMarketOrderFeeMultiplier:"",derivativeAtomicMarketOrderFeeMultiplier:"",binaryOptionsAtomicMarketOrderFeeMultiplier:"",minimalProtocolFeeRate:"",isInstantDerivativeMarketLaunchEnabled:!1};n.pos>>3){case 1:a.spotMarketInstantListingFee=rI.decode(n,n.uint32());break;case 2:a.derivativeMarketInstantListingFee=rI.decode(n,n.uint32());break;case 3:a.defaultSpotMakerFeeRate=n.string();break;case 4:a.defaultSpotTakerFeeRate=n.string();break;case 5:a.defaultDerivativeMakerFeeRate=n.string();break;case 6:a.defaultDerivativeTakerFeeRate=n.string();break;case 7:a.defaultInitialMarginRatio=n.string();break;case 8:a.defaultMaintenanceMarginRatio=n.string();break;case 9:a.defaultFundingInterval=GS(n.int64());break;case 10:a.fundingMultiple=GS(n.int64());break;case 11:a.relayerFeeShareRate=n.string();break;case 12:a.defaultHourlyFundingRateCap=n.string();break;case 13:a.defaultHourlyInterestRate=n.string();break;case 14:a.maxDerivativeOrderSideCount=n.uint32();break;case 15:a.injRewardStakedRequirementThreshold=n.string();break;case 16:a.tradingRewardsVestingDuration=GS(n.int64());break;case 17:a.liquidatorRewardShareRate=n.string();break;case 18:a.binaryOptionsMarketInstantListingFee=rI.decode(n,n.uint32());break;case 19:a.atomicMarketOrderAccessLevel=n.int32();break;case 20:a.spotAtomicMarketOrderFeeMultiplier=n.string();break;case 21:a.derivativeAtomicMarketOrderFeeMultiplier=n.string();break;case 22:a.binaryOptionsAtomicMarketOrderFeeMultiplier=n.string();break;case 23:a.minimalProtocolFeeRate=n.string();break;case 24:a.isInstantDerivativeMarketLaunchEnabled=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{spotMarketInstantListingFee:WS(e.spotMarketInstantListingFee)?rI.fromJSON(e.spotMarketInstantListingFee):void 0,derivativeMarketInstantListingFee:WS(e.derivativeMarketInstantListingFee)?rI.fromJSON(e.derivativeMarketInstantListingFee):void 0,defaultSpotMakerFeeRate:WS(e.defaultSpotMakerFeeRate)?String(e.defaultSpotMakerFeeRate):"",defaultSpotTakerFeeRate:WS(e.defaultSpotTakerFeeRate)?String(e.defaultSpotTakerFeeRate):"",defaultDerivativeMakerFeeRate:WS(e.defaultDerivativeMakerFeeRate)?String(e.defaultDerivativeMakerFeeRate):"",defaultDerivativeTakerFeeRate:WS(e.defaultDerivativeTakerFeeRate)?String(e.defaultDerivativeTakerFeeRate):"",defaultInitialMarginRatio:WS(e.defaultInitialMarginRatio)?String(e.defaultInitialMarginRatio):"",defaultMaintenanceMarginRatio:WS(e.defaultMaintenanceMarginRatio)?String(e.defaultMaintenanceMarginRatio):"",defaultFundingInterval:WS(e.defaultFundingInterval)?String(e.defaultFundingInterval):"0",fundingMultiple:WS(e.fundingMultiple)?String(e.fundingMultiple):"0",relayerFeeShareRate:WS(e.relayerFeeShareRate)?String(e.relayerFeeShareRate):"",defaultHourlyFundingRateCap:WS(e.defaultHourlyFundingRateCap)?String(e.defaultHourlyFundingRateCap):"",defaultHourlyInterestRate:WS(e.defaultHourlyInterestRate)?String(e.defaultHourlyInterestRate):"",maxDerivativeOrderSideCount:WS(e.maxDerivativeOrderSideCount)?Number(e.maxDerivativeOrderSideCount):0,injRewardStakedRequirementThreshold:WS(e.injRewardStakedRequirementThreshold)?String(e.injRewardStakedRequirementThreshold):"",tradingRewardsVestingDuration:WS(e.tradingRewardsVestingDuration)?String(e.tradingRewardsVestingDuration):"0",liquidatorRewardShareRate:WS(e.liquidatorRewardShareRate)?String(e.liquidatorRewardShareRate):"",binaryOptionsMarketInstantListingFee:WS(e.binaryOptionsMarketInstantListingFee)?rI.fromJSON(e.binaryOptionsMarketInstantListingFee):void 0,atomicMarketOrderAccessLevel:WS(e.atomicMarketOrderAccessLevel)?rS(e.atomicMarketOrderAccessLevel):0,spotAtomicMarketOrderFeeMultiplier:WS(e.spotAtomicMarketOrderFeeMultiplier)?String(e.spotAtomicMarketOrderFeeMultiplier):"",derivativeAtomicMarketOrderFeeMultiplier:WS(e.derivativeAtomicMarketOrderFeeMultiplier)?String(e.derivativeAtomicMarketOrderFeeMultiplier):"",binaryOptionsAtomicMarketOrderFeeMultiplier:WS(e.binaryOptionsAtomicMarketOrderFeeMultiplier)?String(e.binaryOptionsAtomicMarketOrderFeeMultiplier):"",minimalProtocolFeeRate:WS(e.minimalProtocolFeeRate)?String(e.minimalProtocolFeeRate):"",isInstantDerivativeMarketLaunchEnabled:!!WS(e.isInstantDerivativeMarketLaunchEnabled)&&Boolean(e.isInstantDerivativeMarketLaunchEnabled)}},toJSON:function(e){var t={};return void 0!==e.spotMarketInstantListingFee&&(t.spotMarketInstantListingFee=e.spotMarketInstantListingFee?rI.toJSON(e.spotMarketInstantListingFee):void 0),void 0!==e.derivativeMarketInstantListingFee&&(t.derivativeMarketInstantListingFee=e.derivativeMarketInstantListingFee?rI.toJSON(e.derivativeMarketInstantListingFee):void 0),void 0!==e.defaultSpotMakerFeeRate&&(t.defaultSpotMakerFeeRate=e.defaultSpotMakerFeeRate),void 0!==e.defaultSpotTakerFeeRate&&(t.defaultSpotTakerFeeRate=e.defaultSpotTakerFeeRate),void 0!==e.defaultDerivativeMakerFeeRate&&(t.defaultDerivativeMakerFeeRate=e.defaultDerivativeMakerFeeRate),void 0!==e.defaultDerivativeTakerFeeRate&&(t.defaultDerivativeTakerFeeRate=e.defaultDerivativeTakerFeeRate),void 0!==e.defaultInitialMarginRatio&&(t.defaultInitialMarginRatio=e.defaultInitialMarginRatio),void 0!==e.defaultMaintenanceMarginRatio&&(t.defaultMaintenanceMarginRatio=e.defaultMaintenanceMarginRatio),void 0!==e.defaultFundingInterval&&(t.defaultFundingInterval=e.defaultFundingInterval),void 0!==e.fundingMultiple&&(t.fundingMultiple=e.fundingMultiple),void 0!==e.relayerFeeShareRate&&(t.relayerFeeShareRate=e.relayerFeeShareRate),void 0!==e.defaultHourlyFundingRateCap&&(t.defaultHourlyFundingRateCap=e.defaultHourlyFundingRateCap),void 0!==e.defaultHourlyInterestRate&&(t.defaultHourlyInterestRate=e.defaultHourlyInterestRate),void 0!==e.maxDerivativeOrderSideCount&&(t.maxDerivativeOrderSideCount=Math.round(e.maxDerivativeOrderSideCount)),void 0!==e.injRewardStakedRequirementThreshold&&(t.injRewardStakedRequirementThreshold=e.injRewardStakedRequirementThreshold),void 0!==e.tradingRewardsVestingDuration&&(t.tradingRewardsVestingDuration=e.tradingRewardsVestingDuration),void 0!==e.liquidatorRewardShareRate&&(t.liquidatorRewardShareRate=e.liquidatorRewardShareRate),void 0!==e.binaryOptionsMarketInstantListingFee&&(t.binaryOptionsMarketInstantListingFee=e.binaryOptionsMarketInstantListingFee?rI.toJSON(e.binaryOptionsMarketInstantListingFee):void 0),void 0!==e.atomicMarketOrderAccessLevel&&(t.atomicMarketOrderAccessLevel=function(e){switch(e){case GI.Nobody:return"Nobody";case GI.BeginBlockerSmartContractsOnly:return"BeginBlockerSmartContractsOnly";case GI.SmartContractsOnly:return"SmartContractsOnly";case GI.Everyone:return"Everyone";case GI.UNRECOGNIZED:default:return"UNRECOGNIZED"}}(e.atomicMarketOrderAccessLevel)),void 0!==e.spotAtomicMarketOrderFeeMultiplier&&(t.spotAtomicMarketOrderFeeMultiplier=e.spotAtomicMarketOrderFeeMultiplier),void 0!==e.derivativeAtomicMarketOrderFeeMultiplier&&(t.derivativeAtomicMarketOrderFeeMultiplier=e.derivativeAtomicMarketOrderFeeMultiplier),void 0!==e.binaryOptionsAtomicMarketOrderFeeMultiplier&&(t.binaryOptionsAtomicMarketOrderFeeMultiplier=e.binaryOptionsAtomicMarketOrderFeeMultiplier),void 0!==e.minimalProtocolFeeRate&&(t.minimalProtocolFeeRate=e.minimalProtocolFeeRate),void 0!==e.isInstantDerivativeMarketLaunchEnabled&&(t.isInstantDerivativeMarketLaunchEnabled=e.isInstantDerivativeMarketLaunchEnabled),t},create:function(e){return cS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c,u,d,f,l,b,p,h,y,m,v,g,A,w,x={spotMarketInstantListingFee:void 0,derivativeMarketInstantListingFee:void 0,defaultSpotMakerFeeRate:"",defaultSpotTakerFeeRate:"",defaultDerivativeMakerFeeRate:"",defaultDerivativeTakerFeeRate:"",defaultInitialMarginRatio:"",defaultMaintenanceMarginRatio:"",defaultFundingInterval:"0",fundingMultiple:"0",relayerFeeShareRate:"",defaultHourlyFundingRateCap:"",defaultHourlyInterestRate:"",maxDerivativeOrderSideCount:0,injRewardStakedRequirementThreshold:"",tradingRewardsVestingDuration:"0",liquidatorRewardShareRate:"",binaryOptionsMarketInstantListingFee:void 0,atomicMarketOrderAccessLevel:0,spotAtomicMarketOrderFeeMultiplier:"",derivativeAtomicMarketOrderFeeMultiplier:"",binaryOptionsAtomicMarketOrderFeeMultiplier:"",minimalProtocolFeeRate:"",isInstantDerivativeMarketLaunchEnabled:!1};return x.spotMarketInstantListingFee=void 0!==e.spotMarketInstantListingFee&&null!==e.spotMarketInstantListingFee?rI.fromPartial(e.spotMarketInstantListingFee):void 0,x.derivativeMarketInstantListingFee=void 0!==e.derivativeMarketInstantListingFee&&null!==e.derivativeMarketInstantListingFee?rI.fromPartial(e.derivativeMarketInstantListingFee):void 0,x.defaultSpotMakerFeeRate=null!==(t=e.defaultSpotMakerFeeRate)&&void 0!==t?t:"",x.defaultSpotTakerFeeRate=null!==(n=e.defaultSpotTakerFeeRate)&&void 0!==n?n:"",x.defaultDerivativeMakerFeeRate=null!==(r=e.defaultDerivativeMakerFeeRate)&&void 0!==r?r:"",x.defaultDerivativeTakerFeeRate=null!==(a=e.defaultDerivativeTakerFeeRate)&&void 0!==a?a:"",x.defaultInitialMarginRatio=null!==(i=e.defaultInitialMarginRatio)&&void 0!==i?i:"",x.defaultMaintenanceMarginRatio=null!==(o=e.defaultMaintenanceMarginRatio)&&void 0!==o?o:"",x.defaultFundingInterval=null!==(s=e.defaultFundingInterval)&&void 0!==s?s:"0",x.fundingMultiple=null!==(c=e.fundingMultiple)&&void 0!==c?c:"0",x.relayerFeeShareRate=null!==(u=e.relayerFeeShareRate)&&void 0!==u?u:"",x.defaultHourlyFundingRateCap=null!==(d=e.defaultHourlyFundingRateCap)&&void 0!==d?d:"",x.defaultHourlyInterestRate=null!==(f=e.defaultHourlyInterestRate)&&void 0!==f?f:"",x.maxDerivativeOrderSideCount=null!==(l=e.maxDerivativeOrderSideCount)&&void 0!==l?l:0,x.injRewardStakedRequirementThreshold=null!==(b=e.injRewardStakedRequirementThreshold)&&void 0!==b?b:"",x.tradingRewardsVestingDuration=null!==(p=e.tradingRewardsVestingDuration)&&void 0!==p?p:"0",x.liquidatorRewardShareRate=null!==(h=e.liquidatorRewardShareRate)&&void 0!==h?h:"",x.binaryOptionsMarketInstantListingFee=void 0!==e.binaryOptionsMarketInstantListingFee&&null!==e.binaryOptionsMarketInstantListingFee?rI.fromPartial(e.binaryOptionsMarketInstantListingFee):void 0,x.atomicMarketOrderAccessLevel=null!==(y=e.atomicMarketOrderAccessLevel)&&void 0!==y?y:0,x.spotAtomicMarketOrderFeeMultiplier=null!==(m=e.spotAtomicMarketOrderFeeMultiplier)&&void 0!==m?m:"",x.derivativeAtomicMarketOrderFeeMultiplier=null!==(v=e.derivativeAtomicMarketOrderFeeMultiplier)&&void 0!==v?v:"",x.binaryOptionsAtomicMarketOrderFeeMultiplier=null!==(g=e.binaryOptionsAtomicMarketOrderFeeMultiplier)&&void 0!==g?g:"",x.minimalProtocolFeeRate=null!==(A=e.minimalProtocolFeeRate)&&void 0!==A?A:"",x.isInstantDerivativeMarketLaunchEnabled=null!==(w=e.isInstantDerivativeMarketLaunchEnabled)&&void 0!==w&&w,x}},uS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.feeMultiplier&&t.uint32(18).string(e.feeMultiplier),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",feeMultiplier:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.feeMultiplier=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:WS(e.marketId)?String(e.marketId):"",feeMultiplier:WS(e.feeMultiplier)?String(e.feeMultiplier):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.feeMultiplier&&(t.feeMultiplier=e.feeMultiplier),t},create:function(e){return uS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",feeMultiplier:""};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.feeMultiplier=null!==(n=e.feeMultiplier)&&void 0!==n?n:"",r}},dS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.ticker&&t.uint32(10).string(e.ticker),""!==e.oracleBase&&t.uint32(18).string(e.oracleBase),""!==e.oracleQuote&&t.uint32(26).string(e.oracleQuote),0!==e.oracleType&&t.uint32(32).int32(e.oracleType),0!==e.oracleScaleFactor&&t.uint32(40).uint32(e.oracleScaleFactor),""!==e.quoteDenom&&t.uint32(50).string(e.quoteDenom),""!==e.marketId&&t.uint32(58).string(e.marketId),""!==e.initialMarginRatio&&t.uint32(66).string(e.initialMarginRatio),""!==e.maintenanceMarginRatio&&t.uint32(74).string(e.maintenanceMarginRatio),""!==e.makerFeeRate&&t.uint32(82).string(e.makerFeeRate),""!==e.takerFeeRate&&t.uint32(90).string(e.takerFeeRate),""!==e.relayerFeeShareRate&&t.uint32(98).string(e.relayerFeeShareRate),!0===e.isPerpetual&&t.uint32(104).bool(e.isPerpetual),0!==e.status&&t.uint32(112).int32(e.status),""!==e.minPriceTickSize&&t.uint32(122).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.uint32(130).string(e.minQuantityTickSize),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={ticker:"",oracleBase:"",oracleQuote:"",oracleType:0,oracleScaleFactor:0,quoteDenom:"",marketId:"",initialMarginRatio:"",maintenanceMarginRatio:"",makerFeeRate:"",takerFeeRate:"",relayerFeeShareRate:"",isPerpetual:!1,status:0,minPriceTickSize:"",minQuantityTickSize:""};n.pos>>3){case 1:a.ticker=n.string();break;case 2:a.oracleBase=n.string();break;case 3:a.oracleQuote=n.string();break;case 4:a.oracleType=n.int32();break;case 5:a.oracleScaleFactor=n.uint32();break;case 6:a.quoteDenom=n.string();break;case 7:a.marketId=n.string();break;case 8:a.initialMarginRatio=n.string();break;case 9:a.maintenanceMarginRatio=n.string();break;case 10:a.makerFeeRate=n.string();break;case 11:a.takerFeeRate=n.string();break;case 12:a.relayerFeeShareRate=n.string();break;case 13:a.isPerpetual=n.bool();break;case 14:a.status=n.int32();break;case 15:a.minPriceTickSize=n.string();break;case 16:a.minQuantityTickSize=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{ticker:WS(e.ticker)?String(e.ticker):"",oracleBase:WS(e.oracleBase)?String(e.oracleBase):"",oracleQuote:WS(e.oracleQuote)?String(e.oracleQuote):"",oracleType:WS(e.oracleType)?JI(e.oracleType):0,oracleScaleFactor:WS(e.oracleScaleFactor)?Number(e.oracleScaleFactor):0,quoteDenom:WS(e.quoteDenom)?String(e.quoteDenom):"",marketId:WS(e.marketId)?String(e.marketId):"",initialMarginRatio:WS(e.initialMarginRatio)?String(e.initialMarginRatio):"",maintenanceMarginRatio:WS(e.maintenanceMarginRatio)?String(e.maintenanceMarginRatio):"",makerFeeRate:WS(e.makerFeeRate)?String(e.makerFeeRate):"",takerFeeRate:WS(e.takerFeeRate)?String(e.takerFeeRate):"",relayerFeeShareRate:WS(e.relayerFeeShareRate)?String(e.relayerFeeShareRate):"",isPerpetual:!!WS(e.isPerpetual)&&Boolean(e.isPerpetual),status:WS(e.status)?aS(e.status):0,minPriceTickSize:WS(e.minPriceTickSize)?String(e.minPriceTickSize):"",minQuantityTickSize:WS(e.minQuantityTickSize)?String(e.minQuantityTickSize):""}},toJSON:function(e){var t={};return void 0!==e.ticker&&(t.ticker=e.ticker),void 0!==e.oracleBase&&(t.oracleBase=e.oracleBase),void 0!==e.oracleQuote&&(t.oracleQuote=e.oracleQuote),void 0!==e.oracleType&&(t.oracleType=KI(e.oracleType)),void 0!==e.oracleScaleFactor&&(t.oracleScaleFactor=Math.round(e.oracleScaleFactor)),void 0!==e.quoteDenom&&(t.quoteDenom=e.quoteDenom),void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.initialMarginRatio&&(t.initialMarginRatio=e.initialMarginRatio),void 0!==e.maintenanceMarginRatio&&(t.maintenanceMarginRatio=e.maintenanceMarginRatio),void 0!==e.makerFeeRate&&(t.makerFeeRate=e.makerFeeRate),void 0!==e.takerFeeRate&&(t.takerFeeRate=e.takerFeeRate),void 0!==e.relayerFeeShareRate&&(t.relayerFeeShareRate=e.relayerFeeShareRate),void 0!==e.isPerpetual&&(t.isPerpetual=e.isPerpetual),void 0!==e.status&&(t.status=iS(e.status)),void 0!==e.minPriceTickSize&&(t.minPriceTickSize=e.minPriceTickSize),void 0!==e.minQuantityTickSize&&(t.minQuantityTickSize=e.minQuantityTickSize),t},create:function(e){return dS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c,u,d,f,l,b,p,h,y,m={ticker:"",oracleBase:"",oracleQuote:"",oracleType:0,oracleScaleFactor:0,quoteDenom:"",marketId:"",initialMarginRatio:"",maintenanceMarginRatio:"",makerFeeRate:"",takerFeeRate:"",relayerFeeShareRate:"",isPerpetual:!1,status:0,minPriceTickSize:"",minQuantityTickSize:""};return m.ticker=null!==(t=e.ticker)&&void 0!==t?t:"",m.oracleBase=null!==(n=e.oracleBase)&&void 0!==n?n:"",m.oracleQuote=null!==(r=e.oracleQuote)&&void 0!==r?r:"",m.oracleType=null!==(a=e.oracleType)&&void 0!==a?a:0,m.oracleScaleFactor=null!==(i=e.oracleScaleFactor)&&void 0!==i?i:0,m.quoteDenom=null!==(o=e.quoteDenom)&&void 0!==o?o:"",m.marketId=null!==(s=e.marketId)&&void 0!==s?s:"",m.initialMarginRatio=null!==(c=e.initialMarginRatio)&&void 0!==c?c:"",m.maintenanceMarginRatio=null!==(u=e.maintenanceMarginRatio)&&void 0!==u?u:"",m.makerFeeRate=null!==(d=e.makerFeeRate)&&void 0!==d?d:"",m.takerFeeRate=null!==(f=e.takerFeeRate)&&void 0!==f?f:"",m.relayerFeeShareRate=null!==(l=e.relayerFeeShareRate)&&void 0!==l?l:"",m.isPerpetual=null!==(b=e.isPerpetual)&&void 0!==b&&b,m.status=null!==(p=e.status)&&void 0!==p?p:0,m.minPriceTickSize=null!==(h=e.minPriceTickSize)&&void 0!==h?h:"",m.minQuantityTickSize=null!==(y=e.minQuantityTickSize)&&void 0!==y?y:"",m}},fS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.ticker&&t.uint32(10).string(e.ticker),""!==e.oracleSymbol&&t.uint32(18).string(e.oracleSymbol),""!==e.oracleProvider&&t.uint32(26).string(e.oracleProvider),0!==e.oracleType&&t.uint32(32).int32(e.oracleType),0!==e.oracleScaleFactor&&t.uint32(40).uint32(e.oracleScaleFactor),"0"!==e.expirationTimestamp&&t.uint32(48).int64(e.expirationTimestamp),"0"!==e.settlementTimestamp&&t.uint32(56).int64(e.settlementTimestamp),""!==e.admin&&t.uint32(66).string(e.admin),""!==e.quoteDenom&&t.uint32(74).string(e.quoteDenom),""!==e.marketId&&t.uint32(82).string(e.marketId),""!==e.makerFeeRate&&t.uint32(90).string(e.makerFeeRate),""!==e.takerFeeRate&&t.uint32(98).string(e.takerFeeRate),""!==e.relayerFeeShareRate&&t.uint32(106).string(e.relayerFeeShareRate),0!==e.status&&t.uint32(112).int32(e.status),""!==e.minPriceTickSize&&t.uint32(122).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.uint32(130).string(e.minQuantityTickSize),""!==e.settlementPrice&&t.uint32(138).string(e.settlementPrice),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={ticker:"",oracleSymbol:"",oracleProvider:"",oracleType:0,oracleScaleFactor:0,expirationTimestamp:"0",settlementTimestamp:"0",admin:"",quoteDenom:"",marketId:"",makerFeeRate:"",takerFeeRate:"",relayerFeeShareRate:"",status:0,minPriceTickSize:"",minQuantityTickSize:"",settlementPrice:""};n.pos>>3){case 1:a.ticker=n.string();break;case 2:a.oracleSymbol=n.string();break;case 3:a.oracleProvider=n.string();break;case 4:a.oracleType=n.int32();break;case 5:a.oracleScaleFactor=n.uint32();break;case 6:a.expirationTimestamp=GS(n.int64());break;case 7:a.settlementTimestamp=GS(n.int64());break;case 8:a.admin=n.string();break;case 9:a.quoteDenom=n.string();break;case 10:a.marketId=n.string();break;case 11:a.makerFeeRate=n.string();break;case 12:a.takerFeeRate=n.string();break;case 13:a.relayerFeeShareRate=n.string();break;case 14:a.status=n.int32();break;case 15:a.minPriceTickSize=n.string();break;case 16:a.minQuantityTickSize=n.string();break;case 17:a.settlementPrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{ticker:WS(e.ticker)?String(e.ticker):"",oracleSymbol:WS(e.oracleSymbol)?String(e.oracleSymbol):"",oracleProvider:WS(e.oracleProvider)?String(e.oracleProvider):"",oracleType:WS(e.oracleType)?JI(e.oracleType):0,oracleScaleFactor:WS(e.oracleScaleFactor)?Number(e.oracleScaleFactor):0,expirationTimestamp:WS(e.expirationTimestamp)?String(e.expirationTimestamp):"0",settlementTimestamp:WS(e.settlementTimestamp)?String(e.settlementTimestamp):"0",admin:WS(e.admin)?String(e.admin):"",quoteDenom:WS(e.quoteDenom)?String(e.quoteDenom):"",marketId:WS(e.marketId)?String(e.marketId):"",makerFeeRate:WS(e.makerFeeRate)?String(e.makerFeeRate):"",takerFeeRate:WS(e.takerFeeRate)?String(e.takerFeeRate):"",relayerFeeShareRate:WS(e.relayerFeeShareRate)?String(e.relayerFeeShareRate):"",status:WS(e.status)?aS(e.status):0,minPriceTickSize:WS(e.minPriceTickSize)?String(e.minPriceTickSize):"",minQuantityTickSize:WS(e.minQuantityTickSize)?String(e.minQuantityTickSize):"",settlementPrice:WS(e.settlementPrice)?String(e.settlementPrice):""}},toJSON:function(e){var t={};return void 0!==e.ticker&&(t.ticker=e.ticker),void 0!==e.oracleSymbol&&(t.oracleSymbol=e.oracleSymbol),void 0!==e.oracleProvider&&(t.oracleProvider=e.oracleProvider),void 0!==e.oracleType&&(t.oracleType=KI(e.oracleType)),void 0!==e.oracleScaleFactor&&(t.oracleScaleFactor=Math.round(e.oracleScaleFactor)),void 0!==e.expirationTimestamp&&(t.expirationTimestamp=e.expirationTimestamp),void 0!==e.settlementTimestamp&&(t.settlementTimestamp=e.settlementTimestamp),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.quoteDenom&&(t.quoteDenom=e.quoteDenom),void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.makerFeeRate&&(t.makerFeeRate=e.makerFeeRate),void 0!==e.takerFeeRate&&(t.takerFeeRate=e.takerFeeRate),void 0!==e.relayerFeeShareRate&&(t.relayerFeeShareRate=e.relayerFeeShareRate),void 0!==e.status&&(t.status=iS(e.status)),void 0!==e.minPriceTickSize&&(t.minPriceTickSize=e.minPriceTickSize),void 0!==e.minQuantityTickSize&&(t.minQuantityTickSize=e.minQuantityTickSize),void 0!==e.settlementPrice&&(t.settlementPrice=e.settlementPrice),t},create:function(e){return fS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c,u,d,f,l,b,p,h,y,m,v={ticker:"",oracleSymbol:"",oracleProvider:"",oracleType:0,oracleScaleFactor:0,expirationTimestamp:"0",settlementTimestamp:"0",admin:"",quoteDenom:"",marketId:"",makerFeeRate:"",takerFeeRate:"",relayerFeeShareRate:"",status:0,minPriceTickSize:"",minQuantityTickSize:"",settlementPrice:""};return v.ticker=null!==(t=e.ticker)&&void 0!==t?t:"",v.oracleSymbol=null!==(n=e.oracleSymbol)&&void 0!==n?n:"",v.oracleProvider=null!==(r=e.oracleProvider)&&void 0!==r?r:"",v.oracleType=null!==(a=e.oracleType)&&void 0!==a?a:0,v.oracleScaleFactor=null!==(i=e.oracleScaleFactor)&&void 0!==i?i:0,v.expirationTimestamp=null!==(o=e.expirationTimestamp)&&void 0!==o?o:"0",v.settlementTimestamp=null!==(s=e.settlementTimestamp)&&void 0!==s?s:"0",v.admin=null!==(c=e.admin)&&void 0!==c?c:"",v.quoteDenom=null!==(u=e.quoteDenom)&&void 0!==u?u:"",v.marketId=null!==(d=e.marketId)&&void 0!==d?d:"",v.makerFeeRate=null!==(f=e.makerFeeRate)&&void 0!==f?f:"",v.takerFeeRate=null!==(l=e.takerFeeRate)&&void 0!==l?l:"",v.relayerFeeShareRate=null!==(b=e.relayerFeeShareRate)&&void 0!==b?b:"",v.status=null!==(p=e.status)&&void 0!==p?p:0,v.minPriceTickSize=null!==(h=e.minPriceTickSize)&&void 0!==h?h:"",v.minQuantityTickSize=null!==(y=e.minQuantityTickSize)&&void 0!==y?y:"",v.settlementPrice=null!==(m=e.settlementPrice)&&void 0!==m?m:"",v}},lS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),"0"!==e.expirationTimestamp&&t.uint32(16).int64(e.expirationTimestamp),"0"!==e.twapStartTimestamp&&t.uint32(24).int64(e.twapStartTimestamp),""!==e.expirationTwapStartPriceCumulative&&t.uint32(34).string(e.expirationTwapStartPriceCumulative),""!==e.settlementPrice&&t.uint32(42).string(e.settlementPrice),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",expirationTimestamp:"0",twapStartTimestamp:"0",expirationTwapStartPriceCumulative:"",settlementPrice:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.expirationTimestamp=GS(n.int64());break;case 3:a.twapStartTimestamp=GS(n.int64());break;case 4:a.expirationTwapStartPriceCumulative=n.string();break;case 5:a.settlementPrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:WS(e.marketId)?String(e.marketId):"",expirationTimestamp:WS(e.expirationTimestamp)?String(e.expirationTimestamp):"0",twapStartTimestamp:WS(e.twapStartTimestamp)?String(e.twapStartTimestamp):"0",expirationTwapStartPriceCumulative:WS(e.expirationTwapStartPriceCumulative)?String(e.expirationTwapStartPriceCumulative):"",settlementPrice:WS(e.settlementPrice)?String(e.settlementPrice):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.expirationTimestamp&&(t.expirationTimestamp=e.expirationTimestamp),void 0!==e.twapStartTimestamp&&(t.twapStartTimestamp=e.twapStartTimestamp),void 0!==e.expirationTwapStartPriceCumulative&&(t.expirationTwapStartPriceCumulative=e.expirationTwapStartPriceCumulative),void 0!==e.settlementPrice&&(t.settlementPrice=e.settlementPrice),t},create:function(e){return lS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={marketId:"",expirationTimestamp:"0",twapStartTimestamp:"0",expirationTwapStartPriceCumulative:"",settlementPrice:""};return o.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",o.expirationTimestamp=null!==(n=e.expirationTimestamp)&&void 0!==n?n:"0",o.twapStartTimestamp=null!==(r=e.twapStartTimestamp)&&void 0!==r?r:"0",o.expirationTwapStartPriceCumulative=null!==(a=e.expirationTwapStartPriceCumulative)&&void 0!==a?a:"",o.settlementPrice=null!==(i=e.settlementPrice)&&void 0!==i?i:"",o}},bS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.hourlyFundingRateCap&&t.uint32(18).string(e.hourlyFundingRateCap),""!==e.hourlyInterestRate&&t.uint32(26).string(e.hourlyInterestRate),"0"!==e.nextFundingTimestamp&&t.uint32(32).int64(e.nextFundingTimestamp),"0"!==e.fundingInterval&&t.uint32(40).int64(e.fundingInterval),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",hourlyFundingRateCap:"",hourlyInterestRate:"",nextFundingTimestamp:"0",fundingInterval:"0"};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.hourlyFundingRateCap=n.string();break;case 3:a.hourlyInterestRate=n.string();break;case 4:a.nextFundingTimestamp=GS(n.int64());break;case 5:a.fundingInterval=GS(n.int64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:WS(e.marketId)?String(e.marketId):"",hourlyFundingRateCap:WS(e.hourlyFundingRateCap)?String(e.hourlyFundingRateCap):"",hourlyInterestRate:WS(e.hourlyInterestRate)?String(e.hourlyInterestRate):"",nextFundingTimestamp:WS(e.nextFundingTimestamp)?String(e.nextFundingTimestamp):"0",fundingInterval:WS(e.fundingInterval)?String(e.fundingInterval):"0"}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.hourlyFundingRateCap&&(t.hourlyFundingRateCap=e.hourlyFundingRateCap),void 0!==e.hourlyInterestRate&&(t.hourlyInterestRate=e.hourlyInterestRate),void 0!==e.nextFundingTimestamp&&(t.nextFundingTimestamp=e.nextFundingTimestamp),void 0!==e.fundingInterval&&(t.fundingInterval=e.fundingInterval),t},create:function(e){return bS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={marketId:"",hourlyFundingRateCap:"",hourlyInterestRate:"",nextFundingTimestamp:"0",fundingInterval:"0"};return o.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",o.hourlyFundingRateCap=null!==(n=e.hourlyFundingRateCap)&&void 0!==n?n:"",o.hourlyInterestRate=null!==(r=e.hourlyInterestRate)&&void 0!==r?r:"",o.nextFundingTimestamp=null!==(a=e.nextFundingTimestamp)&&void 0!==a?a:"0",o.fundingInterval=null!==(i=e.fundingInterval)&&void 0!==i?i:"0",o}},pS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.cumulativeFunding&&t.uint32(10).string(e.cumulativeFunding),""!==e.cumulativePrice&&t.uint32(18).string(e.cumulativePrice),"0"!==e.lastTimestamp&&t.uint32(24).int64(e.lastTimestamp),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={cumulativeFunding:"",cumulativePrice:"",lastTimestamp:"0"};n.pos>>3){case 1:a.cumulativeFunding=n.string();break;case 2:a.cumulativePrice=n.string();break;case 3:a.lastTimestamp=GS(n.int64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{cumulativeFunding:WS(e.cumulativeFunding)?String(e.cumulativeFunding):"",cumulativePrice:WS(e.cumulativePrice)?String(e.cumulativePrice):"",lastTimestamp:WS(e.lastTimestamp)?String(e.lastTimestamp):"0"}},toJSON:function(e){var t={};return void 0!==e.cumulativeFunding&&(t.cumulativeFunding=e.cumulativeFunding),void 0!==e.cumulativePrice&&(t.cumulativePrice=e.cumulativePrice),void 0!==e.lastTimestamp&&(t.lastTimestamp=e.lastTimestamp),t},create:function(e){return pS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={cumulativeFunding:"",cumulativePrice:"",lastTimestamp:"0"};return a.cumulativeFunding=null!==(t=e.cumulativeFunding)&&void 0!==t?t:"",a.cumulativePrice=null!==(n=e.cumulativePrice)&&void 0!==n?n:"",a.lastTimestamp=null!==(r=e.lastTimestamp)&&void 0!==r?r:"0",a}},hS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.settlementPrice&&t.uint32(18).string(e.settlementPrice),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",settlementPrice:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.settlementPrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:WS(e.marketId)?String(e.marketId):"",settlementPrice:WS(e.settlementPrice)?String(e.settlementPrice):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.settlementPrice&&(t.settlementPrice=e.settlementPrice),t},create:function(e){return hS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",settlementPrice:""};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.settlementPrice=null!==(n=e.settlementPrice)&&void 0!==n?n:"",r}},yS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.ticker&&t.uint32(10).string(e.ticker),""!==e.baseDenom&&t.uint32(18).string(e.baseDenom),""!==e.quoteDenom&&t.uint32(26).string(e.quoteDenom),""!==e.makerFeeRate&&t.uint32(34).string(e.makerFeeRate),""!==e.takerFeeRate&&t.uint32(42).string(e.takerFeeRate),""!==e.relayerFeeShareRate&&t.uint32(50).string(e.relayerFeeShareRate),""!==e.marketId&&t.uint32(58).string(e.marketId),0!==e.status&&t.uint32(64).int32(e.status),""!==e.minPriceTickSize&&t.uint32(74).string(e.minPriceTickSize),""!==e.minQuantityTickSize&&t.uint32(82).string(e.minQuantityTickSize),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={ticker:"",baseDenom:"",quoteDenom:"",makerFeeRate:"",takerFeeRate:"",relayerFeeShareRate:"",marketId:"",status:0,minPriceTickSize:"",minQuantityTickSize:""};n.pos>>3){case 1:a.ticker=n.string();break;case 2:a.baseDenom=n.string();break;case 3:a.quoteDenom=n.string();break;case 4:a.makerFeeRate=n.string();break;case 5:a.takerFeeRate=n.string();break;case 6:a.relayerFeeShareRate=n.string();break;case 7:a.marketId=n.string();break;case 8:a.status=n.int32();break;case 9:a.minPriceTickSize=n.string();break;case 10:a.minQuantityTickSize=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{ticker:WS(e.ticker)?String(e.ticker):"",baseDenom:WS(e.baseDenom)?String(e.baseDenom):"",quoteDenom:WS(e.quoteDenom)?String(e.quoteDenom):"",makerFeeRate:WS(e.makerFeeRate)?String(e.makerFeeRate):"",takerFeeRate:WS(e.takerFeeRate)?String(e.takerFeeRate):"",relayerFeeShareRate:WS(e.relayerFeeShareRate)?String(e.relayerFeeShareRate):"",marketId:WS(e.marketId)?String(e.marketId):"",status:WS(e.status)?aS(e.status):0,minPriceTickSize:WS(e.minPriceTickSize)?String(e.minPriceTickSize):"",minQuantityTickSize:WS(e.minQuantityTickSize)?String(e.minQuantityTickSize):""}},toJSON:function(e){var t={};return void 0!==e.ticker&&(t.ticker=e.ticker),void 0!==e.baseDenom&&(t.baseDenom=e.baseDenom),void 0!==e.quoteDenom&&(t.quoteDenom=e.quoteDenom),void 0!==e.makerFeeRate&&(t.makerFeeRate=e.makerFeeRate),void 0!==e.takerFeeRate&&(t.takerFeeRate=e.takerFeeRate),void 0!==e.relayerFeeShareRate&&(t.relayerFeeShareRate=e.relayerFeeShareRate),void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.status&&(t.status=iS(e.status)),void 0!==e.minPriceTickSize&&(t.minPriceTickSize=e.minPriceTickSize),void 0!==e.minQuantityTickSize&&(t.minQuantityTickSize=e.minQuantityTickSize),t},create:function(e){return yS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c,u,d,f={ticker:"",baseDenom:"",quoteDenom:"",makerFeeRate:"",takerFeeRate:"",relayerFeeShareRate:"",marketId:"",status:0,minPriceTickSize:"",minQuantityTickSize:""};return f.ticker=null!==(t=e.ticker)&&void 0!==t?t:"",f.baseDenom=null!==(n=e.baseDenom)&&void 0!==n?n:"",f.quoteDenom=null!==(r=e.quoteDenom)&&void 0!==r?r:"",f.makerFeeRate=null!==(a=e.makerFeeRate)&&void 0!==a?a:"",f.takerFeeRate=null!==(i=e.takerFeeRate)&&void 0!==i?i:"",f.relayerFeeShareRate=null!==(o=e.relayerFeeShareRate)&&void 0!==o?o:"",f.marketId=null!==(s=e.marketId)&&void 0!==s?s:"",f.status=null!==(c=e.status)&&void 0!==c?c:0,f.minPriceTickSize=null!==(u=e.minPriceTickSize)&&void 0!==u?u:"",f.minQuantityTickSize=null!==(d=e.minQuantityTickSize)&&void 0!==d?d:"",f}},mS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.availableBalance&&t.uint32(10).string(e.availableBalance),""!==e.totalBalance&&t.uint32(18).string(e.totalBalance),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={availableBalance:"",totalBalance:""};n.pos>>3){case 1:a.availableBalance=n.string();break;case 2:a.totalBalance=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{availableBalance:WS(e.availableBalance)?String(e.availableBalance):"",totalBalance:WS(e.totalBalance)?String(e.totalBalance):""}},toJSON:function(e){var t={};return void 0!==e.availableBalance&&(t.availableBalance=e.availableBalance),void 0!==e.totalBalance&&(t.totalBalance=e.totalBalance),t},create:function(e){return mS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={availableBalance:"",totalBalance:""};return r.availableBalance=null!==(t=e.availableBalance)&&void 0!==t?t:"",r.totalBalance=null!==(n=e.totalBalance)&&void 0!==n?n:"",r}},vS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return 0!==e.nonce&&t.uint32(8).uint32(e.nonce),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={nonce:0};n.pos>>3==1?a.nonce=n.uint32():n.skipType(7&i)}return a},fromJSON:function(e){return{nonce:WS(e.nonce)?Number(e.nonce):0}},toJSON:function(e){var t={};return void 0!==e.nonce&&(t.nonce=Math.round(e.nonce)),t},create:function(e){return vS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={nonce:0};return n.nonce=null!==(t=e.nonce)&&void 0!==t?t:0,n}},gS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.feeRecipient&&t.uint32(18).string(e.feeRecipient),""!==e.price&&t.uint32(26).string(e.price),""!==e.quantity&&t.uint32(34).string(e.quantity),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",feeRecipient:"",price:"",quantity:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.feeRecipient=n.string();break;case 3:a.price=n.string();break;case 4:a.quantity=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:WS(e.subaccountId)?String(e.subaccountId):"",feeRecipient:WS(e.feeRecipient)?String(e.feeRecipient):"",price:WS(e.price)?String(e.price):"",quantity:WS(e.quantity)?String(e.quantity):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.feeRecipient&&(t.feeRecipient=e.feeRecipient),void 0!==e.price&&(t.price=e.price),void 0!==e.quantity&&(t.quantity=e.quantity),t},create:function(e){return gS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={subaccountId:"",feeRecipient:"",price:"",quantity:""};return i.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",i.feeRecipient=null!==(n=e.feeRecipient)&&void 0!==n?n:"",i.price=null!==(r=e.price)&&void 0!==r?r:"",i.quantity=null!==(a=e.quantity)&&void 0!==a?a:"",i}};function AS(){return{orderInfo:void 0,orderType:0,fillable:"",triggerPrice:"",orderHash:new Uint8Array}}var wS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.orderInfo&&gS.encode(e.orderInfo,t.uint32(10).fork()).ldelim(),0!==e.orderType&&t.uint32(16).int32(e.orderType),""!==e.fillable&&t.uint32(26).string(e.fillable),""!==e.triggerPrice&&t.uint32(34).string(e.triggerPrice),0!==e.orderHash.length&&t.uint32(42).bytes(e.orderHash),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a=AS();n.pos>>3){case 1:a.orderInfo=gS.decode(n,n.uint32());break;case 2:a.orderType=n.int32();break;case 3:a.fillable=n.string();break;case 4:a.triggerPrice=n.string();break;case 5:a.orderHash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{orderInfo:WS(e.orderInfo)?gS.fromJSON(e.orderInfo):void 0,orderType:WS(e.orderType)?oS(e.orderType):0,fillable:WS(e.fillable)?String(e.fillable):"",triggerPrice:WS(e.triggerPrice)?String(e.triggerPrice):"",orderHash:WS(e.orderHash)?JS(e.orderHash):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.orderInfo&&(t.orderInfo=e.orderInfo?gS.toJSON(e.orderInfo):void 0),void 0!==e.orderType&&(t.orderType=sS(e.orderType)),void 0!==e.fillable&&(t.fillable=e.fillable),void 0!==e.triggerPrice&&(t.triggerPrice=e.triggerPrice),void 0!==e.orderHash&&(t.orderHash=KS(void 0!==e.orderHash?e.orderHash:new Uint8Array)),t},create:function(e){return wS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i=AS();return i.orderInfo=void 0!==e.orderInfo&&null!==e.orderInfo?gS.fromPartial(e.orderInfo):void 0,i.orderType=null!==(t=e.orderType)&&void 0!==t?t:0,i.fillable=null!==(n=e.fillable)&&void 0!==n?n:"",i.triggerPrice=null!==(r=e.triggerPrice)&&void 0!==r?r:"",i.orderHash=null!==(a=e.orderHash)&&void 0!==a?a:new Uint8Array,i}},xS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return 0!==e.vanillaLimitOrderCount&&t.uint32(8).uint32(e.vanillaLimitOrderCount),0!==e.reduceOnlyLimitOrderCount&&t.uint32(16).uint32(e.reduceOnlyLimitOrderCount),""!==e.aggregateReduceOnlyQuantity&&t.uint32(26).string(e.aggregateReduceOnlyQuantity),""!==e.aggregateVanillaQuantity&&t.uint32(34).string(e.aggregateVanillaQuantity),0!==e.vanillaConditionalOrderCount&&t.uint32(40).uint32(e.vanillaConditionalOrderCount),0!==e.reduceOnlyConditionalOrderCount&&t.uint32(48).uint32(e.reduceOnlyConditionalOrderCount),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={vanillaLimitOrderCount:0,reduceOnlyLimitOrderCount:0,aggregateReduceOnlyQuantity:"",aggregateVanillaQuantity:"",vanillaConditionalOrderCount:0,reduceOnlyConditionalOrderCount:0};n.pos>>3){case 1:a.vanillaLimitOrderCount=n.uint32();break;case 2:a.reduceOnlyLimitOrderCount=n.uint32();break;case 3:a.aggregateReduceOnlyQuantity=n.string();break;case 4:a.aggregateVanillaQuantity=n.string();break;case 5:a.vanillaConditionalOrderCount=n.uint32();break;case 6:a.reduceOnlyConditionalOrderCount=n.uint32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{vanillaLimitOrderCount:WS(e.vanillaLimitOrderCount)?Number(e.vanillaLimitOrderCount):0,reduceOnlyLimitOrderCount:WS(e.reduceOnlyLimitOrderCount)?Number(e.reduceOnlyLimitOrderCount):0,aggregateReduceOnlyQuantity:WS(e.aggregateReduceOnlyQuantity)?String(e.aggregateReduceOnlyQuantity):"",aggregateVanillaQuantity:WS(e.aggregateVanillaQuantity)?String(e.aggregateVanillaQuantity):"",vanillaConditionalOrderCount:WS(e.vanillaConditionalOrderCount)?Number(e.vanillaConditionalOrderCount):0,reduceOnlyConditionalOrderCount:WS(e.reduceOnlyConditionalOrderCount)?Number(e.reduceOnlyConditionalOrderCount):0}},toJSON:function(e){var t={};return void 0!==e.vanillaLimitOrderCount&&(t.vanillaLimitOrderCount=Math.round(e.vanillaLimitOrderCount)),void 0!==e.reduceOnlyLimitOrderCount&&(t.reduceOnlyLimitOrderCount=Math.round(e.reduceOnlyLimitOrderCount)),void 0!==e.aggregateReduceOnlyQuantity&&(t.aggregateReduceOnlyQuantity=e.aggregateReduceOnlyQuantity),void 0!==e.aggregateVanillaQuantity&&(t.aggregateVanillaQuantity=e.aggregateVanillaQuantity),void 0!==e.vanillaConditionalOrderCount&&(t.vanillaConditionalOrderCount=Math.round(e.vanillaConditionalOrderCount)),void 0!==e.reduceOnlyConditionalOrderCount&&(t.reduceOnlyConditionalOrderCount=Math.round(e.reduceOnlyConditionalOrderCount)),t},create:function(e){return xS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s={vanillaLimitOrderCount:0,reduceOnlyLimitOrderCount:0,aggregateReduceOnlyQuantity:"",aggregateVanillaQuantity:"",vanillaConditionalOrderCount:0,reduceOnlyConditionalOrderCount:0};return s.vanillaLimitOrderCount=null!==(t=e.vanillaLimitOrderCount)&&void 0!==t?t:0,s.reduceOnlyLimitOrderCount=null!==(n=e.reduceOnlyLimitOrderCount)&&void 0!==n?n:0,s.aggregateReduceOnlyQuantity=null!==(r=e.aggregateReduceOnlyQuantity)&&void 0!==r?r:"",s.aggregateVanillaQuantity=null!==(a=e.aggregateVanillaQuantity)&&void 0!==a?a:"",s.vanillaConditionalOrderCount=null!==(i=e.vanillaConditionalOrderCount)&&void 0!==i?i:0,s.reduceOnlyConditionalOrderCount=null!==(o=e.reduceOnlyConditionalOrderCount)&&void 0!==o?o:0,s}},_S={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.price&&t.uint32(10).string(e.price),""!==e.quantity&&t.uint32(18).string(e.quantity),!0===e.isReduceOnly&&t.uint32(24).bool(e.isReduceOnly),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={price:"",quantity:"",isReduceOnly:!1};n.pos>>3){case 1:a.price=n.string();break;case 2:a.quantity=n.string();break;case 3:a.isReduceOnly=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{price:WS(e.price)?String(e.price):"",quantity:WS(e.quantity)?String(e.quantity):"",isReduceOnly:!!WS(e.isReduceOnly)&&Boolean(e.isReduceOnly)}},toJSON:function(e){var t={};return void 0!==e.price&&(t.price=e.price),void 0!==e.quantity&&(t.quantity=e.quantity),void 0!==e.isReduceOnly&&(t.isReduceOnly=e.isReduceOnly),t},create:function(e){return _S.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={price:"",quantity:"",isReduceOnly:!1};return a.price=null!==(t=e.price)&&void 0!==t?t:"",a.quantity=null!==(n=e.quantity)&&void 0!==n?n:"",a.isReduceOnly=null!==(r=e.isReduceOnly)&&void 0!==r&&r,a}};function kS(){return{order:void 0,orderHash:new Uint8Array}}var IS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.order&&_S.encode(e.order,t.uint32(10).fork()).ldelim(),0!==e.orderHash.length&&t.uint32(18).bytes(e.orderHash),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a=kS();n.pos>>3){case 1:a.order=_S.decode(n,n.uint32());break;case 2:a.orderHash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{order:WS(e.order)?_S.fromJSON(e.order):void 0,orderHash:WS(e.orderHash)?JS(e.orderHash):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.order&&(t.order=e.order?_S.toJSON(e.order):void 0),void 0!==e.orderHash&&(t.orderHash=KS(void 0!==e.orderHash?e.orderHash:new Uint8Array)),t},create:function(e){return IS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n=kS();return n.order=void 0!==e.order&&null!==e.order?_S.fromPartial(e.order):void 0,n.orderHash=null!==(t=e.orderHash)&&void 0!==t?t:new Uint8Array,n}};function SS(){return{orderInfo:void 0,orderType:0,margin:"",fillable:"",triggerPrice:"",orderHash:new Uint8Array}}var ES={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.orderInfo&&gS.encode(e.orderInfo,t.uint32(10).fork()).ldelim(),0!==e.orderType&&t.uint32(16).int32(e.orderType),""!==e.margin&&t.uint32(26).string(e.margin),""!==e.fillable&&t.uint32(34).string(e.fillable),""!==e.triggerPrice&&t.uint32(42).string(e.triggerPrice),0!==e.orderHash.length&&t.uint32(50).bytes(e.orderHash),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a=SS();n.pos>>3){case 1:a.orderInfo=gS.decode(n,n.uint32());break;case 2:a.orderType=n.int32();break;case 3:a.margin=n.string();break;case 4:a.fillable=n.string();break;case 5:a.triggerPrice=n.string();break;case 6:a.orderHash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{orderInfo:WS(e.orderInfo)?gS.fromJSON(e.orderInfo):void 0,orderType:WS(e.orderType)?oS(e.orderType):0,margin:WS(e.margin)?String(e.margin):"",fillable:WS(e.fillable)?String(e.fillable):"",triggerPrice:WS(e.triggerPrice)?String(e.triggerPrice):"",orderHash:WS(e.orderHash)?JS(e.orderHash):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.orderInfo&&(t.orderInfo=e.orderInfo?gS.toJSON(e.orderInfo):void 0),void 0!==e.orderType&&(t.orderType=sS(e.orderType)),void 0!==e.margin&&(t.margin=e.margin),void 0!==e.fillable&&(t.fillable=e.fillable),void 0!==e.triggerPrice&&(t.triggerPrice=e.triggerPrice),void 0!==e.orderHash&&(t.orderHash=KS(void 0!==e.orderHash?e.orderHash:new Uint8Array)),t},create:function(e){return ES.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o=SS();return o.orderInfo=void 0!==e.orderInfo&&null!==e.orderInfo?gS.fromPartial(e.orderInfo):void 0,o.orderType=null!==(t=e.orderType)&&void 0!==t?t:0,o.margin=null!==(n=e.margin)&&void 0!==n?n:"",o.fillable=null!==(r=e.fillable)&&void 0!==r?r:"",o.triggerPrice=null!==(a=e.triggerPrice)&&void 0!==a?a:"",o.orderHash=null!==(i=e.orderHash)&&void 0!==i?i:new Uint8Array,o}};function CS(){return{orderInfo:void 0,orderType:0,margin:"",marginHold:"",triggerPrice:"",orderHash:new Uint8Array}}var TS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.orderInfo&&gS.encode(e.orderInfo,t.uint32(10).fork()).ldelim(),0!==e.orderType&&t.uint32(16).int32(e.orderType),""!==e.margin&&t.uint32(26).string(e.margin),""!==e.marginHold&&t.uint32(34).string(e.marginHold),""!==e.triggerPrice&&t.uint32(42).string(e.triggerPrice),0!==e.orderHash.length&&t.uint32(50).bytes(e.orderHash),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a=CS();n.pos>>3){case 1:a.orderInfo=gS.decode(n,n.uint32());break;case 2:a.orderType=n.int32();break;case 3:a.margin=n.string();break;case 4:a.marginHold=n.string();break;case 5:a.triggerPrice=n.string();break;case 6:a.orderHash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{orderInfo:WS(e.orderInfo)?gS.fromJSON(e.orderInfo):void 0,orderType:WS(e.orderType)?oS(e.orderType):0,margin:WS(e.margin)?String(e.margin):"",marginHold:WS(e.marginHold)?String(e.marginHold):"",triggerPrice:WS(e.triggerPrice)?String(e.triggerPrice):"",orderHash:WS(e.orderHash)?JS(e.orderHash):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.orderInfo&&(t.orderInfo=e.orderInfo?gS.toJSON(e.orderInfo):void 0),void 0!==e.orderType&&(t.orderType=sS(e.orderType)),void 0!==e.margin&&(t.margin=e.margin),void 0!==e.marginHold&&(t.marginHold=e.marginHold),void 0!==e.triggerPrice&&(t.triggerPrice=e.triggerPrice),void 0!==e.orderHash&&(t.orderHash=KS(void 0!==e.orderHash?e.orderHash:new Uint8Array)),t},create:function(e){return TS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o=CS();return o.orderInfo=void 0!==e.orderInfo&&null!==e.orderInfo?gS.fromPartial(e.orderInfo):void 0,o.orderType=null!==(t=e.orderType)&&void 0!==t?t:0,o.margin=null!==(n=e.margin)&&void 0!==n?n:"",o.marginHold=null!==(r=e.marginHold)&&void 0!==r?r:"",o.triggerPrice=null!==(a=e.triggerPrice)&&void 0!==a?a:"",o.orderHash=null!==(i=e.orderHash)&&void 0!==i?i:new Uint8Array,o}},OS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return!0===e.isLong&&t.uint32(8).bool(e.isLong),""!==e.quantity&&t.uint32(18).string(e.quantity),""!==e.entryPrice&&t.uint32(26).string(e.entryPrice),""!==e.margin&&t.uint32(34).string(e.margin),""!==e.cumulativeFundingEntry&&t.uint32(42).string(e.cumulativeFundingEntry),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={isLong:!1,quantity:"",entryPrice:"",margin:"",cumulativeFundingEntry:""};n.pos>>3){case 1:a.isLong=n.bool();break;case 2:a.quantity=n.string();break;case 3:a.entryPrice=n.string();break;case 4:a.margin=n.string();break;case 5:a.cumulativeFundingEntry=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{isLong:!!WS(e.isLong)&&Boolean(e.isLong),quantity:WS(e.quantity)?String(e.quantity):"",entryPrice:WS(e.entryPrice)?String(e.entryPrice):"",margin:WS(e.margin)?String(e.margin):"",cumulativeFundingEntry:WS(e.cumulativeFundingEntry)?String(e.cumulativeFundingEntry):""}},toJSON:function(e){var t={};return void 0!==e.isLong&&(t.isLong=e.isLong),void 0!==e.quantity&&(t.quantity=e.quantity),void 0!==e.entryPrice&&(t.entryPrice=e.entryPrice),void 0!==e.margin&&(t.margin=e.margin),void 0!==e.cumulativeFundingEntry&&(t.cumulativeFundingEntry=e.cumulativeFundingEntry),t},create:function(e){return OS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={isLong:!1,quantity:"",entryPrice:"",margin:"",cumulativeFundingEntry:""};return o.isLong=null!==(t=e.isLong)&&void 0!==t&&t,o.quantity=null!==(n=e.quantity)&&void 0!==n?n:"",o.entryPrice=null!==(r=e.entryPrice)&&void 0!==r?r:"",o.margin=null!==(a=e.margin)&&void 0!==a?a:"",o.cumulativeFundingEntry=null!==(i=e.cumulativeFundingEntry)&&void 0!==i?i:"",o}},PS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.makerPointsMultiplier&&t.uint32(10).string(e.makerPointsMultiplier),""!==e.takerPointsMultiplier&&t.uint32(18).string(e.takerPointsMultiplier),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={makerPointsMultiplier:"",takerPointsMultiplier:""};n.pos>>3){case 1:a.makerPointsMultiplier=n.string();break;case 2:a.takerPointsMultiplier=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{makerPointsMultiplier:WS(e.makerPointsMultiplier)?String(e.makerPointsMultiplier):"",takerPointsMultiplier:WS(e.takerPointsMultiplier)?String(e.takerPointsMultiplier):""}},toJSON:function(e){var t={};return void 0!==e.makerPointsMultiplier&&(t.makerPointsMultiplier=e.makerPointsMultiplier),void 0!==e.takerPointsMultiplier&&(t.takerPointsMultiplier=e.takerPointsMultiplier),t},create:function(e){return PS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={makerPointsMultiplier:"",takerPointsMultiplier:""};return r.makerPointsMultiplier=null!==(t=e.makerPointsMultiplier)&&void 0!==t?t:"",r.takerPointsMultiplier=null!==(n=e.takerPointsMultiplier)&&void 0!==n?n:"",r}},MS={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.boostedSpotMarketIds);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ha.Z)(e.spotMarketMultipliers);try{for(o.s();!(i=o.n()).done;){var s=i.value;PS.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}var c,u=(0,ha.Z)(e.boostedDerivativeMarketIds);try{for(u.s();!(c=u.n()).done;){var d=c.value;n.uint32(26).string(d)}}catch(e){u.e(e)}finally{u.f()}var f,l=(0,ha.Z)(e.derivativeMarketMultipliers);try{for(l.s();!(f=l.n()).done;){var b=f.value;PS.encode(b,n.uint32(34).fork()).ldelim()}}catch(e){l.e(e)}finally{l.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={boostedSpotMarketIds:[],spotMarketMultipliers:[],boostedDerivativeMarketIds:[],derivativeMarketMultipliers:[]};n.pos>>3){case 1:a.boostedSpotMarketIds.push(n.string());break;case 2:a.spotMarketMultipliers.push(PS.decode(n,n.uint32()));break;case 3:a.boostedDerivativeMarketIds.push(n.string());break;case 4:a.derivativeMarketMultipliers.push(PS.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{boostedSpotMarketIds:Array.isArray(null==e?void 0:e.boostedSpotMarketIds)?e.boostedSpotMarketIds.map((function(e){return String(e)})):[],spotMarketMultipliers:Array.isArray(null==e?void 0:e.spotMarketMultipliers)?e.spotMarketMultipliers.map((function(e){return PS.fromJSON(e)})):[],boostedDerivativeMarketIds:Array.isArray(null==e?void 0:e.boostedDerivativeMarketIds)?e.boostedDerivativeMarketIds.map((function(e){return String(e)})):[],derivativeMarketMultipliers:Array.isArray(null==e?void 0:e.derivativeMarketMultipliers)?e.derivativeMarketMultipliers.map((function(e){return PS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.boostedSpotMarketIds?t.boostedSpotMarketIds=e.boostedSpotMarketIds.map((function(e){return e})):t.boostedSpotMarketIds=[],e.spotMarketMultipliers?t.spotMarketMultipliers=e.spotMarketMultipliers.map((function(e){return e?PS.toJSON(e):void 0})):t.spotMarketMultipliers=[],e.boostedDerivativeMarketIds?t.boostedDerivativeMarketIds=e.boostedDerivativeMarketIds.map((function(e){return e})):t.boostedDerivativeMarketIds=[],e.derivativeMarketMultipliers?t.derivativeMarketMultipliers=e.derivativeMarketMultipliers.map((function(e){return e?PS.toJSON(e):void 0})):t.derivativeMarketMultipliers=[],t},create:function(e){return MS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={boostedSpotMarketIds:[],spotMarketMultipliers:[],boostedDerivativeMarketIds:[],derivativeMarketMultipliers:[]};return i.boostedSpotMarketIds=(null===(t=e.boostedSpotMarketIds)||void 0===t?void 0:t.map((function(e){return e})))||[],i.spotMarketMultipliers=(null===(n=e.spotMarketMultipliers)||void 0===n?void 0:n.map((function(e){return PS.fromPartial(e)})))||[],i.boostedDerivativeMarketIds=(null===(r=e.boostedDerivativeMarketIds)||void 0===r?void 0:r.map((function(e){return e})))||[],i.derivativeMarketMultipliers=(null===(a=e.derivativeMarketMultipliers)||void 0===a?void 0:a.map((function(e){return PS.fromPartial(e)})))||[],i}},BS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();"0"!==e.startTimestamp&&t.uint32(8).int64(e.startTimestamp);var n,r=(0,ha.Z)(e.maxCampaignRewards);try{for(r.s();!(n=r.n()).done;){var a=n.value;rI.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={startTimestamp:"0",maxCampaignRewards:[]};n.pos>>3){case 1:a.startTimestamp=GS(n.int64());break;case 2:a.maxCampaignRewards.push(rI.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{startTimestamp:WS(e.startTimestamp)?String(e.startTimestamp):"0",maxCampaignRewards:Array.isArray(null==e?void 0:e.maxCampaignRewards)?e.maxCampaignRewards.map((function(e){return rI.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.startTimestamp&&(t.startTimestamp=e.startTimestamp),e.maxCampaignRewards?t.maxCampaignRewards=e.maxCampaignRewards.map((function(e){return e?rI.toJSON(e):void 0})):t.maxCampaignRewards=[],t},create:function(e){return BS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={startTimestamp:"0",maxCampaignRewards:[]};return r.startTimestamp=null!==(t=e.startTimestamp)&&void 0!==t?t:"0",r.maxCampaignRewards=(null===(n=e.maxCampaignRewards)||void 0===n?void 0:n.map((function(e){return rI.fromPartial(e)})))||[],r}},NS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();"0"!==e.campaignDurationSeconds&&t.uint32(8).int64(e.campaignDurationSeconds);var n,r=(0,ha.Z)(e.quoteDenoms);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.uint32(18).string(a)}}catch(e){r.e(e)}finally{r.f()}void 0!==e.tradingRewardBoostInfo&&MS.encode(e.tradingRewardBoostInfo,t.uint32(26).fork()).ldelim();var i,o=(0,ha.Z)(e.disqualifiedMarketIds);try{for(o.s();!(i=o.n()).done;){var s=i.value;t.uint32(34).string(s)}}catch(e){o.e(e)}finally{o.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={campaignDurationSeconds:"0",quoteDenoms:[],tradingRewardBoostInfo:void 0,disqualifiedMarketIds:[]};n.pos>>3){case 1:a.campaignDurationSeconds=GS(n.int64());break;case 2:a.quoteDenoms.push(n.string());break;case 3:a.tradingRewardBoostInfo=MS.decode(n,n.uint32());break;case 4:a.disqualifiedMarketIds.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{campaignDurationSeconds:WS(e.campaignDurationSeconds)?String(e.campaignDurationSeconds):"0",quoteDenoms:Array.isArray(null==e?void 0:e.quoteDenoms)?e.quoteDenoms.map((function(e){return String(e)})):[],tradingRewardBoostInfo:WS(e.tradingRewardBoostInfo)?MS.fromJSON(e.tradingRewardBoostInfo):void 0,disqualifiedMarketIds:Array.isArray(null==e?void 0:e.disqualifiedMarketIds)?e.disqualifiedMarketIds.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.campaignDurationSeconds&&(t.campaignDurationSeconds=e.campaignDurationSeconds),e.quoteDenoms?t.quoteDenoms=e.quoteDenoms.map((function(e){return e})):t.quoteDenoms=[],void 0!==e.tradingRewardBoostInfo&&(t.tradingRewardBoostInfo=e.tradingRewardBoostInfo?MS.toJSON(e.tradingRewardBoostInfo):void 0),e.disqualifiedMarketIds?t.disqualifiedMarketIds=e.disqualifiedMarketIds.map((function(e){return e})):t.disqualifiedMarketIds=[],t},create:function(e){return NS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={campaignDurationSeconds:"0",quoteDenoms:[],tradingRewardBoostInfo:void 0,disqualifiedMarketIds:[]};return a.campaignDurationSeconds=null!==(t=e.campaignDurationSeconds)&&void 0!==t?t:"0",a.quoteDenoms=(null===(n=e.quoteDenoms)||void 0===n?void 0:n.map((function(e){return e})))||[],a.tradingRewardBoostInfo=void 0!==e.tradingRewardBoostInfo&&null!==e.tradingRewardBoostInfo?MS.fromPartial(e.tradingRewardBoostInfo):void 0,a.disqualifiedMarketIds=(null===(r=e.disqualifiedMarketIds)||void 0===r?void 0:r.map((function(e){return e})))||[],a}},RS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.makerDiscountRate&&t.uint32(10).string(e.makerDiscountRate),""!==e.takerDiscountRate&&t.uint32(18).string(e.takerDiscountRate),""!==e.stakedAmount&&t.uint32(26).string(e.stakedAmount),""!==e.volume&&t.uint32(34).string(e.volume),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={makerDiscountRate:"",takerDiscountRate:"",stakedAmount:"",volume:""};n.pos>>3){case 1:a.makerDiscountRate=n.string();break;case 2:a.takerDiscountRate=n.string();break;case 3:a.stakedAmount=n.string();break;case 4:a.volume=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{makerDiscountRate:WS(e.makerDiscountRate)?String(e.makerDiscountRate):"",takerDiscountRate:WS(e.takerDiscountRate)?String(e.takerDiscountRate):"",stakedAmount:WS(e.stakedAmount)?String(e.stakedAmount):"",volume:WS(e.volume)?String(e.volume):""}},toJSON:function(e){var t={};return void 0!==e.makerDiscountRate&&(t.makerDiscountRate=e.makerDiscountRate),void 0!==e.takerDiscountRate&&(t.takerDiscountRate=e.takerDiscountRate),void 0!==e.stakedAmount&&(t.stakedAmount=e.stakedAmount),void 0!==e.volume&&(t.volume=e.volume),t},create:function(e){return RS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={makerDiscountRate:"",takerDiscountRate:"",stakedAmount:"",volume:""};return i.makerDiscountRate=null!==(t=e.makerDiscountRate)&&void 0!==t?t:"",i.takerDiscountRate=null!==(n=e.takerDiscountRate)&&void 0!==n?n:"",i.stakedAmount=null!==(r=e.stakedAmount)&&void 0!==r?r:"",i.volume=null!==(a=e.volume)&&void 0!==a?a:"",i}},DS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();"0"!==e.bucketCount&&t.uint32(8).uint64(e.bucketCount),"0"!==e.bucketDuration&&t.uint32(16).int64(e.bucketDuration);var n,r=(0,ha.Z)(e.quoteDenoms);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.uint32(26).string(a)}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ha.Z)(e.tierInfos);try{for(o.s();!(i=o.n()).done;){var s=i.value;RS.encode(s,t.uint32(34).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}var c,u=(0,ha.Z)(e.disqualifiedMarketIds);try{for(u.s();!(c=u.n()).done;){var d=c.value;t.uint32(42).string(d)}}catch(e){u.e(e)}finally{u.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={bucketCount:"0",bucketDuration:"0",quoteDenoms:[],tierInfos:[],disqualifiedMarketIds:[]};n.pos>>3){case 1:a.bucketCount=GS(n.uint64());break;case 2:a.bucketDuration=GS(n.int64());break;case 3:a.quoteDenoms.push(n.string());break;case 4:a.tierInfos.push(RS.decode(n,n.uint32()));break;case 5:a.disqualifiedMarketIds.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{bucketCount:WS(e.bucketCount)?String(e.bucketCount):"0",bucketDuration:WS(e.bucketDuration)?String(e.bucketDuration):"0",quoteDenoms:Array.isArray(null==e?void 0:e.quoteDenoms)?e.quoteDenoms.map((function(e){return String(e)})):[],tierInfos:Array.isArray(null==e?void 0:e.tierInfos)?e.tierInfos.map((function(e){return RS.fromJSON(e)})):[],disqualifiedMarketIds:Array.isArray(null==e?void 0:e.disqualifiedMarketIds)?e.disqualifiedMarketIds.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.bucketCount&&(t.bucketCount=e.bucketCount),void 0!==e.bucketDuration&&(t.bucketDuration=e.bucketDuration),e.quoteDenoms?t.quoteDenoms=e.quoteDenoms.map((function(e){return e})):t.quoteDenoms=[],e.tierInfos?t.tierInfos=e.tierInfos.map((function(e){return e?RS.toJSON(e):void 0})):t.tierInfos=[],e.disqualifiedMarketIds?t.disqualifiedMarketIds=e.disqualifiedMarketIds.map((function(e){return e})):t.disqualifiedMarketIds=[],t},create:function(e){return DS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={bucketCount:"0",bucketDuration:"0",quoteDenoms:[],tierInfos:[],disqualifiedMarketIds:[]};return o.bucketCount=null!==(t=e.bucketCount)&&void 0!==t?t:"0",o.bucketDuration=null!==(n=e.bucketDuration)&&void 0!==n?n:"0",o.quoteDenoms=(null===(r=e.quoteDenoms)||void 0===r?void 0:r.map((function(e){return e})))||[],o.tierInfos=(null===(a=e.tierInfos)||void 0===a?void 0:a.map((function(e){return RS.fromPartial(e)})))||[],o.disqualifiedMarketIds=(null===(i=e.disqualifiedMarketIds)||void 0===i?void 0:i.map((function(e){return e})))||[],o}},jS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return"0"!==e.tier&&t.uint32(8).uint64(e.tier),"0"!==e.ttlTimestamp&&t.uint32(16).int64(e.ttlTimestamp),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={tier:"0",ttlTimestamp:"0"};n.pos>>3){case 1:a.tier=GS(n.uint64());break;case 2:a.ttlTimestamp=GS(n.int64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{tier:WS(e.tier)?String(e.tier):"0",ttlTimestamp:WS(e.ttlTimestamp)?String(e.ttlTimestamp):"0"}},toJSON:function(e){var t={};return void 0!==e.tier&&(t.tier=e.tier),void 0!==e.ttlTimestamp&&(t.ttlTimestamp=e.ttlTimestamp),t},create:function(e){return jS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={tier:"0",ttlTimestamp:"0"};return r.tier=null!==(t=e.tier)&&void 0!==t?t:"0",r.ttlTimestamp=null!==(n=e.ttlTimestamp)&&void 0!==n?n:"0",r}},US={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.makerVolume&&t.uint32(10).string(e.makerVolume),""!==e.takerVolume&&t.uint32(18).string(e.takerVolume),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={makerVolume:"",takerVolume:""};n.pos>>3){case 1:a.makerVolume=n.string();break;case 2:a.takerVolume=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{makerVolume:WS(e.makerVolume)?String(e.makerVolume):"",takerVolume:WS(e.takerVolume)?String(e.takerVolume):""}},toJSON:function(e){var t={};return void 0!==e.makerVolume&&(t.makerVolume=e.makerVolume),void 0!==e.takerVolume&&(t.takerVolume=e.takerVolume),t},create:function(e){return US.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={makerVolume:"",takerVolume:""};return r.makerVolume=null!==(t=e.makerVolume)&&void 0!==t?t:"",r.takerVolume=null!==(n=e.takerVolume)&&void 0!==n?n:"",r}},LS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();""!==e.marketId&&t.uint32(10).string(e.marketId);var n,r=(0,ha.Z)(e.latestTradeRecords);try{for(r.s();!(n=r.n()).done;){var a=n.value;FS.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",latestTradeRecords:[]};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.latestTradeRecords.push(FS.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:WS(e.marketId)?String(e.marketId):"",latestTradeRecords:Array.isArray(null==e?void 0:e.latestTradeRecords)?e.latestTradeRecords.map((function(e){return FS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),e.latestTradeRecords?t.latestTradeRecords=e.latestTradeRecords.map((function(e){return e?FS.toJSON(e):void 0})):t.latestTradeRecords=[],t},create:function(e){return LS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",latestTradeRecords:[]};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.latestTradeRecords=(null===(n=e.latestTradeRecords)||void 0===n?void 0:n.map((function(e){return FS.fromPartial(e)})))||[],r}},FS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return"0"!==e.timestamp&&t.uint32(8).int64(e.timestamp),""!==e.price&&t.uint32(18).string(e.price),""!==e.quantity&&t.uint32(26).string(e.quantity),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={timestamp:"0",price:"",quantity:""};n.pos>>3){case 1:a.timestamp=GS(n.int64());break;case 2:a.price=n.string();break;case 3:a.quantity=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{timestamp:WS(e.timestamp)?String(e.timestamp):"0",price:WS(e.price)?String(e.price):"",quantity:WS(e.quantity)?String(e.quantity):""}},toJSON:function(e){var t={};return void 0!==e.timestamp&&(t.timestamp=e.timestamp),void 0!==e.price&&(t.price=e.price),void 0!==e.quantity&&(t.quantity=e.quantity),t},create:function(e){return FS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={timestamp:"0",price:"",quantity:""};return a.timestamp=null!==(t=e.timestamp)&&void 0!==t?t:"0",a.price=null!==(n=e.price)&&void 0!==n?n:"",a.quantity=null!==(r=e.quantity)&&void 0!==r?r:"",a}},ZS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.p&&t.uint32(10).string(e.p),""!==e.q&&t.uint32(18).string(e.q),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={p:"",q:""};n.pos>>3){case 1:a.p=n.string();break;case 2:a.q=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{p:WS(e.p)?String(e.p):"",q:WS(e.q)?String(e.q):""}},toJSON:function(e){var t={};return void 0!==e.p&&(t.p=e.p),void 0!==e.q&&(t.q=e.q),t},create:function(e){return ZS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={p:"",q:""};return r.p=null!==(t=e.p)&&void 0!==t?t:"",r.q=null!==(n=e.q)&&void 0!==n?n:"",r}},HS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();""!==e.subaccountId&&t.uint32(10).string(e.subaccountId);var n,r=(0,ha.Z)(e.marketVolumes);try{for(r.s();!(n=r.n()).done;){var a=n.value;QS.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",marketVolumes:[]};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.marketVolumes.push(QS.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:WS(e.subaccountId)?String(e.subaccountId):"",marketVolumes:Array.isArray(null==e?void 0:e.marketVolumes)?e.marketVolumes.map((function(e){return QS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),e.marketVolumes?t.marketVolumes=e.marketVolumes.map((function(e){return e?QS.toJSON(e):void 0})):t.marketVolumes=[],t},create:function(e){return HS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",marketVolumes:[]};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.marketVolumes=(null===(n=e.marketVolumes)||void 0===n?void 0:n.map((function(e){return QS.fromPartial(e)})))||[],r}},zS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();""!==e.account&&t.uint32(10).string(e.account);var n,r=(0,ha.Z)(e.marketVolumes);try{for(r.s();!(n=r.n()).done;){var a=n.value;QS.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={account:"",marketVolumes:[]};n.pos>>3){case 1:a.account=n.string();break;case 2:a.marketVolumes.push(QS.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{account:WS(e.account)?String(e.account):"",marketVolumes:Array.isArray(null==e?void 0:e.marketVolumes)?e.marketVolumes.map((function(e){return QS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.account&&(t.account=e.account),e.marketVolumes?t.marketVolumes=e.marketVolumes.map((function(e){return e?QS.toJSON(e):void 0})):t.marketVolumes=[],t},create:function(e){return zS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={account:"",marketVolumes:[]};return r.account=null!==(t=e.account)&&void 0!==t?t:"",r.marketVolumes=(null===(n=e.marketVolumes)||void 0===n?void 0:n.map((function(e){return QS.fromPartial(e)})))||[],r}},QS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),void 0!==e.volume&&US.encode(e.volume,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",volume:void 0};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.volume=US.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:WS(e.marketId)?String(e.marketId):"",volume:WS(e.volume)?US.fromJSON(e.volume):void 0}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.volume&&(t.volume=e.volume?US.toJSON(e.volume):void 0),t},create:function(e){return QS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:"",volume:void 0};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n.volume=void 0!==e.volume&&null!==e.volume?US.fromPartial(e.volume):void 0,n}},qS={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),"0"!==e.decimals&&t.uint32(16).uint64(e.decimals),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={denom:"",decimals:"0"};n.pos>>3){case 1:a.denom=n.string();break;case 2:a.decimals=GS(n.uint64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{denom:WS(e.denom)?String(e.denom):"",decimals:WS(e.decimals)?String(e.decimals):"0"}},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.decimals&&(t.decimals=e.decimals),t},create:function(e){return qS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={denom:"",decimals:"0"};return r.denom=null!==(t=e.denom)&&void 0!==t?t:"",r.decimals=null!==(n=e.decimals)&&void 0!==n?n:"0",r}},VS=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();function JS(e){if(VS.Buffer)return Uint8Array.from(VS.Buffer.from(e,"base64"));for(var t=VS.atob(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();void 0!==e.params&&cS.encode(e.params,t.uint32(10).fork()).ldelim();var n,r=(0,ha.Z)(e.spotMarkets);try{for(r.s();!(n=r.n()).done;){var a=n.value;yS.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ha.Z)(e.derivativeMarkets);try{for(o.s();!(i=o.n()).done;){var s=i.value;dS.encode(s,t.uint32(26).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}var c,u=(0,ha.Z)(e.spotOrderbook);try{for(u.s();!(c=u.n()).done;){var d=c.value;iE.encode(d,t.uint32(34).fork()).ldelim()}}catch(e){u.e(e)}finally{u.f()}var f,l=(0,ha.Z)(e.derivativeOrderbook);try{for(l.s();!(f=l.n()).done;){var b=f.value;oE.encode(b,t.uint32(42).fork()).ldelim()}}catch(e){l.e(e)}finally{l.f()}var p,h=(0,ha.Z)(e.balances);try{for(h.s();!(p=h.n()).done;){var y=p.value;cE.encode(y,t.uint32(50).fork()).ldelim()}}catch(e){h.e(e)}finally{h.f()}var m,v=(0,ha.Z)(e.positions);try{for(v.s();!(m=v.n()).done;){var g=m.value;uE.encode(g,t.uint32(58).fork()).ldelim()}}catch(e){v.e(e)}finally{v.f()}var A,w=(0,ha.Z)(e.subaccountTradeNonces);try{for(w.s();!(A=w.n()).done;){var x=A.value;dE.encode(x,t.uint32(66).fork()).ldelim()}}catch(e){w.e(e)}finally{w.f()}var _,k=(0,ha.Z)(e.expiryFuturesMarketInfoState);try{for(k.s();!(_=k.n()).done;){var I=_.value;fE.encode(I,t.uint32(74).fork()).ldelim()}}catch(e){k.e(e)}finally{k.f()}var S,E=(0,ha.Z)(e.perpetualMarketInfo);try{for(E.s();!(S=E.n()).done;){var C=S.value;bS.encode(C,t.uint32(82).fork()).ldelim()}}catch(e){E.e(e)}finally{E.f()}var T,O=(0,ha.Z)(e.perpetualMarketFundingState);try{for(O.s();!(T=O.n()).done;){var P=T.value;lE.encode(P,t.uint32(90).fork()).ldelim()}}catch(e){O.e(e)}finally{O.f()}var M,B=(0,ha.Z)(e.derivativeMarketSettlementScheduled);try{for(B.s();!(M=B.n()).done;){var N=M.value;hS.encode(N,t.uint32(98).fork()).ldelim()}}catch(e){B.e(e)}finally{B.f()}!0===e.isSpotExchangeEnabled&&t.uint32(104).bool(e.isSpotExchangeEnabled),!0===e.isDerivativesExchangeEnabled&&t.uint32(112).bool(e.isDerivativesExchangeEnabled),void 0!==e.tradingRewardCampaignInfo&&NS.encode(e.tradingRewardCampaignInfo,t.uint32(122).fork()).ldelim();var R,D=(0,ha.Z)(e.tradingRewardPoolCampaignSchedule);try{for(D.s();!(R=D.n()).done;){var j=R.value;BS.encode(j,t.uint32(130).fork()).ldelim()}}catch(e){D.e(e)}finally{D.f()}var U,L=(0,ha.Z)(e.tradingRewardCampaignAccountPoints);try{for(L.s();!(U=L.n()).done;){var F=U.value;rE.encode(F,t.uint32(138).fork()).ldelim()}}catch(e){L.e(e)}finally{L.f()}void 0!==e.feeDiscountSchedule&&DS.encode(e.feeDiscountSchedule,t.uint32(146).fork()).ldelim();var Z,H=(0,ha.Z)(e.feeDiscountAccountTierTtl);try{for(H.s();!(Z=H.n()).done;){var z=Z.value;eE.encode(z,t.uint32(154).fork()).ldelim()}}catch(e){H.e(e)}finally{H.f()}var Q,q=(0,ha.Z)(e.feeDiscountBucketVolumeAccounts);try{for(q.s();!(Q=q.n()).done;){var V=Q.value;tE.encode(V,t.uint32(162).fork()).ldelim()}}catch(e){q.e(e)}finally{q.f()}!0===e.isFirstFeeCycleFinished&&t.uint32(168).bool(e.isFirstFeeCycleFinished);var J,K=(0,ha.Z)(e.pendingTradingRewardPoolCampaignSchedule);try{for(K.s();!(J=K.n()).done;){var G=J.value;BS.encode(G,t.uint32(178).fork()).ldelim()}}catch(e){K.e(e)}finally{K.f()}var W,Y=(0,ha.Z)(e.pendingTradingRewardCampaignAccountPoints);try{for(Y.s();!(W=Y.n()).done;){var X=W.value;aE.encode(X,t.uint32(186).fork()).ldelim()}}catch(e){Y.e(e)}finally{Y.f()}var $,ee=(0,ha.Z)(e.rewardsOptOutAddresses);try{for(ee.s();!($=ee.n()).done;){var te=$.value;t.uint32(194).string(te)}}catch(e){ee.e(e)}finally{ee.f()}var ne,re=(0,ha.Z)(e.historicalTradeRecords);try{for(re.s();!(ne=re.n()).done;){var ae=ne.value;LS.encode(ae,t.uint32(202).fork()).ldelim()}}catch(e){re.e(e)}finally{re.f()}var ie,oe=(0,ha.Z)(e.binaryOptionsMarkets);try{for(oe.s();!(ie=oe.n()).done;){var se=ie.value;fS.encode(se,t.uint32(210).fork()).ldelim()}}catch(e){oe.e(e)}finally{oe.f()}var ce,ue=(0,ha.Z)(e.binaryOptionsMarketIdsScheduledForSettlement);try{for(ue.s();!(ce=ue.n()).done;){var de=ce.value;t.uint32(218).string(de)}}catch(e){ue.e(e)}finally{ue.f()}var fe,le=(0,ha.Z)(e.spotMarketIdsScheduledToForceClose);try{for(le.s();!(fe=le.n()).done;){var be=fe.value;t.uint32(226).string(be)}}catch(e){le.e(e)}finally{le.f()}var pe,he=(0,ha.Z)(e.denomDecimals);try{for(he.s();!(pe=he.n()).done;){var ye=pe.value;qS.encode(ye,t.uint32(234).fork()).ldelim()}}catch(e){he.e(e)}finally{he.f()}var me,ve=(0,ha.Z)(e.conditionalDerivativeOrderbooks);try{for(ve.s();!(me=ve.n()).done;){var ge=me.value;sE.encode(ge,t.uint32(242).fork()).ldelim()}}catch(e){ve.e(e)}finally{ve.f()}var Ae,we=(0,ha.Z)(e.marketFeeMultipliers);try{for(we.s();!(Ae=we.n()).done;){var xe=Ae.value;uS.encode(xe,t.uint32(250).fork()).ldelim()}}catch(e){we.e(e)}finally{we.f()}var _e,ke=(0,ha.Z)(e.orderbookSequences);try{for(ke.s();!(_e=ke.n()).done;){var Ie=_e.value;$S.encode(Ie,t.uint32(258).fork()).ldelim()}}catch(e){ke.e(e)}finally{ke.f()}var Se,Ee=(0,ha.Z)(e.subaccountVolumes);try{for(Ee.s();!(Se=Ee.n()).done;){var Ce=Se.value;HS.encode(Ce,t.uint32(266).fork()).ldelim()}}catch(e){Ee.e(e)}finally{Ee.f()}var Te,Oe=(0,ha.Z)(e.marketVolumes);try{for(Oe.s();!(Te=Oe.n()).done;){var Pe=Te.value;QS.encode(Pe,t.uint32(274).fork()).ldelim()}}catch(e){Oe.e(e)}finally{Oe.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={params:void 0,spotMarkets:[],derivativeMarkets:[],spotOrderbook:[],derivativeOrderbook:[],balances:[],positions:[],subaccountTradeNonces:[],expiryFuturesMarketInfoState:[],perpetualMarketInfo:[],perpetualMarketFundingState:[],derivativeMarketSettlementScheduled:[],isSpotExchangeEnabled:!1,isDerivativesExchangeEnabled:!1,tradingRewardCampaignInfo:void 0,tradingRewardPoolCampaignSchedule:[],tradingRewardCampaignAccountPoints:[],feeDiscountSchedule:void 0,feeDiscountAccountTierTtl:[],feeDiscountBucketVolumeAccounts:[],isFirstFeeCycleFinished:!1,pendingTradingRewardPoolCampaignSchedule:[],pendingTradingRewardCampaignAccountPoints:[],rewardsOptOutAddresses:[],historicalTradeRecords:[],binaryOptionsMarkets:[],binaryOptionsMarketIdsScheduledForSettlement:[],spotMarketIdsScheduledToForceClose:[],denomDecimals:[],conditionalDerivativeOrderbooks:[],marketFeeMultipliers:[],orderbookSequences:[],subaccountVolumes:[],marketVolumes:[]};n.pos>>3){case 1:a.params=cS.decode(n,n.uint32());break;case 2:a.spotMarkets.push(yS.decode(n,n.uint32()));break;case 3:a.derivativeMarkets.push(dS.decode(n,n.uint32()));break;case 4:a.spotOrderbook.push(iE.decode(n,n.uint32()));break;case 5:a.derivativeOrderbook.push(oE.decode(n,n.uint32()));break;case 6:a.balances.push(cE.decode(n,n.uint32()));break;case 7:a.positions.push(uE.decode(n,n.uint32()));break;case 8:a.subaccountTradeNonces.push(dE.decode(n,n.uint32()));break;case 9:a.expiryFuturesMarketInfoState.push(fE.decode(n,n.uint32()));break;case 10:a.perpetualMarketInfo.push(bS.decode(n,n.uint32()));break;case 11:a.perpetualMarketFundingState.push(lE.decode(n,n.uint32()));break;case 12:a.derivativeMarketSettlementScheduled.push(hS.decode(n,n.uint32()));break;case 13:a.isSpotExchangeEnabled=n.bool();break;case 14:a.isDerivativesExchangeEnabled=n.bool();break;case 15:a.tradingRewardCampaignInfo=NS.decode(n,n.uint32());break;case 16:a.tradingRewardPoolCampaignSchedule.push(BS.decode(n,n.uint32()));break;case 17:a.tradingRewardCampaignAccountPoints.push(rE.decode(n,n.uint32()));break;case 18:a.feeDiscountSchedule=DS.decode(n,n.uint32());break;case 19:a.feeDiscountAccountTierTtl.push(eE.decode(n,n.uint32()));break;case 20:a.feeDiscountBucketVolumeAccounts.push(tE.decode(n,n.uint32()));break;case 21:a.isFirstFeeCycleFinished=n.bool();break;case 22:a.pendingTradingRewardPoolCampaignSchedule.push(BS.decode(n,n.uint32()));break;case 23:a.pendingTradingRewardCampaignAccountPoints.push(aE.decode(n,n.uint32()));break;case 24:a.rewardsOptOutAddresses.push(n.string());break;case 25:a.historicalTradeRecords.push(LS.decode(n,n.uint32()));break;case 26:a.binaryOptionsMarkets.push(fS.decode(n,n.uint32()));break;case 27:a.binaryOptionsMarketIdsScheduledForSettlement.push(n.string());break;case 28:a.spotMarketIdsScheduledToForceClose.push(n.string());break;case 29:a.denomDecimals.push(qS.decode(n,n.uint32()));break;case 30:a.conditionalDerivativeOrderbooks.push(sE.decode(n,n.uint32()));break;case 31:a.marketFeeMultipliers.push(uS.decode(n,n.uint32()));break;case 32:a.orderbookSequences.push($S.decode(n,n.uint32()));break;case 33:a.subaccountVolumes.push(HS.decode(n,n.uint32()));break;case 34:a.marketVolumes.push(QS.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{params:pE(e.params)?cS.fromJSON(e.params):void 0,spotMarkets:Array.isArray(null==e?void 0:e.spotMarkets)?e.spotMarkets.map((function(e){return yS.fromJSON(e)})):[],derivativeMarkets:Array.isArray(null==e?void 0:e.derivativeMarkets)?e.derivativeMarkets.map((function(e){return dS.fromJSON(e)})):[],spotOrderbook:Array.isArray(null==e?void 0:e.spotOrderbook)?e.spotOrderbook.map((function(e){return iE.fromJSON(e)})):[],derivativeOrderbook:Array.isArray(null==e?void 0:e.derivativeOrderbook)?e.derivativeOrderbook.map((function(e){return oE.fromJSON(e)})):[],balances:Array.isArray(null==e?void 0:e.balances)?e.balances.map((function(e){return cE.fromJSON(e)})):[],positions:Array.isArray(null==e?void 0:e.positions)?e.positions.map((function(e){return uE.fromJSON(e)})):[],subaccountTradeNonces:Array.isArray(null==e?void 0:e.subaccountTradeNonces)?e.subaccountTradeNonces.map((function(e){return dE.fromJSON(e)})):[],expiryFuturesMarketInfoState:Array.isArray(null==e?void 0:e.expiryFuturesMarketInfoState)?e.expiryFuturesMarketInfoState.map((function(e){return fE.fromJSON(e)})):[],perpetualMarketInfo:Array.isArray(null==e?void 0:e.perpetualMarketInfo)?e.perpetualMarketInfo.map((function(e){return bS.fromJSON(e)})):[],perpetualMarketFundingState:Array.isArray(null==e?void 0:e.perpetualMarketFundingState)?e.perpetualMarketFundingState.map((function(e){return lE.fromJSON(e)})):[],derivativeMarketSettlementScheduled:Array.isArray(null==e?void 0:e.derivativeMarketSettlementScheduled)?e.derivativeMarketSettlementScheduled.map((function(e){return hS.fromJSON(e)})):[],isSpotExchangeEnabled:!!pE(e.isSpotExchangeEnabled)&&Boolean(e.isSpotExchangeEnabled),isDerivativesExchangeEnabled:!!pE(e.isDerivativesExchangeEnabled)&&Boolean(e.isDerivativesExchangeEnabled),tradingRewardCampaignInfo:pE(e.tradingRewardCampaignInfo)?NS.fromJSON(e.tradingRewardCampaignInfo):void 0,tradingRewardPoolCampaignSchedule:Array.isArray(null==e?void 0:e.tradingRewardPoolCampaignSchedule)?e.tradingRewardPoolCampaignSchedule.map((function(e){return BS.fromJSON(e)})):[],tradingRewardCampaignAccountPoints:Array.isArray(null==e?void 0:e.tradingRewardCampaignAccountPoints)?e.tradingRewardCampaignAccountPoints.map((function(e){return rE.fromJSON(e)})):[],feeDiscountSchedule:pE(e.feeDiscountSchedule)?DS.fromJSON(e.feeDiscountSchedule):void 0,feeDiscountAccountTierTtl:Array.isArray(null==e?void 0:e.feeDiscountAccountTierTtl)?e.feeDiscountAccountTierTtl.map((function(e){return eE.fromJSON(e)})):[],feeDiscountBucketVolumeAccounts:Array.isArray(null==e?void 0:e.feeDiscountBucketVolumeAccounts)?e.feeDiscountBucketVolumeAccounts.map((function(e){return tE.fromJSON(e)})):[],isFirstFeeCycleFinished:!!pE(e.isFirstFeeCycleFinished)&&Boolean(e.isFirstFeeCycleFinished),pendingTradingRewardPoolCampaignSchedule:Array.isArray(null==e?void 0:e.pendingTradingRewardPoolCampaignSchedule)?e.pendingTradingRewardPoolCampaignSchedule.map((function(e){return BS.fromJSON(e)})):[],pendingTradingRewardCampaignAccountPoints:Array.isArray(null==e?void 0:e.pendingTradingRewardCampaignAccountPoints)?e.pendingTradingRewardCampaignAccountPoints.map((function(e){return aE.fromJSON(e)})):[],rewardsOptOutAddresses:Array.isArray(null==e?void 0:e.rewardsOptOutAddresses)?e.rewardsOptOutAddresses.map((function(e){return String(e)})):[],historicalTradeRecords:Array.isArray(null==e?void 0:e.historicalTradeRecords)?e.historicalTradeRecords.map((function(e){return LS.fromJSON(e)})):[],binaryOptionsMarkets:Array.isArray(null==e?void 0:e.binaryOptionsMarkets)?e.binaryOptionsMarkets.map((function(e){return fS.fromJSON(e)})):[],binaryOptionsMarketIdsScheduledForSettlement:Array.isArray(null==e?void 0:e.binaryOptionsMarketIdsScheduledForSettlement)?e.binaryOptionsMarketIdsScheduledForSettlement.map((function(e){return String(e)})):[],spotMarketIdsScheduledToForceClose:Array.isArray(null==e?void 0:e.spotMarketIdsScheduledToForceClose)?e.spotMarketIdsScheduledToForceClose.map((function(e){return String(e)})):[],denomDecimals:Array.isArray(null==e?void 0:e.denomDecimals)?e.denomDecimals.map((function(e){return qS.fromJSON(e)})):[],conditionalDerivativeOrderbooks:Array.isArray(null==e?void 0:e.conditionalDerivativeOrderbooks)?e.conditionalDerivativeOrderbooks.map((function(e){return sE.fromJSON(e)})):[],marketFeeMultipliers:Array.isArray(null==e?void 0:e.marketFeeMultipliers)?e.marketFeeMultipliers.map((function(e){return uS.fromJSON(e)})):[],orderbookSequences:Array.isArray(null==e?void 0:e.orderbookSequences)?e.orderbookSequences.map((function(e){return $S.fromJSON(e)})):[],subaccountVolumes:Array.isArray(null==e?void 0:e.subaccountVolumes)?e.subaccountVolumes.map((function(e){return HS.fromJSON(e)})):[],marketVolumes:Array.isArray(null==e?void 0:e.marketVolumes)?e.marketVolumes.map((function(e){return QS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.params&&(t.params=e.params?cS.toJSON(e.params):void 0),e.spotMarkets?t.spotMarkets=e.spotMarkets.map((function(e){return e?yS.toJSON(e):void 0})):t.spotMarkets=[],e.derivativeMarkets?t.derivativeMarkets=e.derivativeMarkets.map((function(e){return e?dS.toJSON(e):void 0})):t.derivativeMarkets=[],e.spotOrderbook?t.spotOrderbook=e.spotOrderbook.map((function(e){return e?iE.toJSON(e):void 0})):t.spotOrderbook=[],e.derivativeOrderbook?t.derivativeOrderbook=e.derivativeOrderbook.map((function(e){return e?oE.toJSON(e):void 0})):t.derivativeOrderbook=[],e.balances?t.balances=e.balances.map((function(e){return e?cE.toJSON(e):void 0})):t.balances=[],e.positions?t.positions=e.positions.map((function(e){return e?uE.toJSON(e):void 0})):t.positions=[],e.subaccountTradeNonces?t.subaccountTradeNonces=e.subaccountTradeNonces.map((function(e){return e?dE.toJSON(e):void 0})):t.subaccountTradeNonces=[],e.expiryFuturesMarketInfoState?t.expiryFuturesMarketInfoState=e.expiryFuturesMarketInfoState.map((function(e){return e?fE.toJSON(e):void 0})):t.expiryFuturesMarketInfoState=[],e.perpetualMarketInfo?t.perpetualMarketInfo=e.perpetualMarketInfo.map((function(e){return e?bS.toJSON(e):void 0})):t.perpetualMarketInfo=[],e.perpetualMarketFundingState?t.perpetualMarketFundingState=e.perpetualMarketFundingState.map((function(e){return e?lE.toJSON(e):void 0})):t.perpetualMarketFundingState=[],e.derivativeMarketSettlementScheduled?t.derivativeMarketSettlementScheduled=e.derivativeMarketSettlementScheduled.map((function(e){return e?hS.toJSON(e):void 0})):t.derivativeMarketSettlementScheduled=[],void 0!==e.isSpotExchangeEnabled&&(t.isSpotExchangeEnabled=e.isSpotExchangeEnabled),void 0!==e.isDerivativesExchangeEnabled&&(t.isDerivativesExchangeEnabled=e.isDerivativesExchangeEnabled),void 0!==e.tradingRewardCampaignInfo&&(t.tradingRewardCampaignInfo=e.tradingRewardCampaignInfo?NS.toJSON(e.tradingRewardCampaignInfo):void 0),e.tradingRewardPoolCampaignSchedule?t.tradingRewardPoolCampaignSchedule=e.tradingRewardPoolCampaignSchedule.map((function(e){return e?BS.toJSON(e):void 0})):t.tradingRewardPoolCampaignSchedule=[],e.tradingRewardCampaignAccountPoints?t.tradingRewardCampaignAccountPoints=e.tradingRewardCampaignAccountPoints.map((function(e){return e?rE.toJSON(e):void 0})):t.tradingRewardCampaignAccountPoints=[],void 0!==e.feeDiscountSchedule&&(t.feeDiscountSchedule=e.feeDiscountSchedule?DS.toJSON(e.feeDiscountSchedule):void 0),e.feeDiscountAccountTierTtl?t.feeDiscountAccountTierTtl=e.feeDiscountAccountTierTtl.map((function(e){return e?eE.toJSON(e):void 0})):t.feeDiscountAccountTierTtl=[],e.feeDiscountBucketVolumeAccounts?t.feeDiscountBucketVolumeAccounts=e.feeDiscountBucketVolumeAccounts.map((function(e){return e?tE.toJSON(e):void 0})):t.feeDiscountBucketVolumeAccounts=[],void 0!==e.isFirstFeeCycleFinished&&(t.isFirstFeeCycleFinished=e.isFirstFeeCycleFinished),e.pendingTradingRewardPoolCampaignSchedule?t.pendingTradingRewardPoolCampaignSchedule=e.pendingTradingRewardPoolCampaignSchedule.map((function(e){return e?BS.toJSON(e):void 0})):t.pendingTradingRewardPoolCampaignSchedule=[],e.pendingTradingRewardCampaignAccountPoints?t.pendingTradingRewardCampaignAccountPoints=e.pendingTradingRewardCampaignAccountPoints.map((function(e){return e?aE.toJSON(e):void 0})):t.pendingTradingRewardCampaignAccountPoints=[],e.rewardsOptOutAddresses?t.rewardsOptOutAddresses=e.rewardsOptOutAddresses.map((function(e){return e})):t.rewardsOptOutAddresses=[],e.historicalTradeRecords?t.historicalTradeRecords=e.historicalTradeRecords.map((function(e){return e?LS.toJSON(e):void 0})):t.historicalTradeRecords=[],e.binaryOptionsMarkets?t.binaryOptionsMarkets=e.binaryOptionsMarkets.map((function(e){return e?fS.toJSON(e):void 0})):t.binaryOptionsMarkets=[],e.binaryOptionsMarketIdsScheduledForSettlement?t.binaryOptionsMarketIdsScheduledForSettlement=e.binaryOptionsMarketIdsScheduledForSettlement.map((function(e){return e})):t.binaryOptionsMarketIdsScheduledForSettlement=[],e.spotMarketIdsScheduledToForceClose?t.spotMarketIdsScheduledToForceClose=e.spotMarketIdsScheduledToForceClose.map((function(e){return e})):t.spotMarketIdsScheduledToForceClose=[],e.denomDecimals?t.denomDecimals=e.denomDecimals.map((function(e){return e?qS.toJSON(e):void 0})):t.denomDecimals=[],e.conditionalDerivativeOrderbooks?t.conditionalDerivativeOrderbooks=e.conditionalDerivativeOrderbooks.map((function(e){return e?sE.toJSON(e):void 0})):t.conditionalDerivativeOrderbooks=[],e.marketFeeMultipliers?t.marketFeeMultipliers=e.marketFeeMultipliers.map((function(e){return e?uS.toJSON(e):void 0})):t.marketFeeMultipliers=[],e.orderbookSequences?t.orderbookSequences=e.orderbookSequences.map((function(e){return e?$S.toJSON(e):void 0})):t.orderbookSequences=[],e.subaccountVolumes?t.subaccountVolumes=e.subaccountVolumes.map((function(e){return e?HS.toJSON(e):void 0})):t.subaccountVolumes=[],e.marketVolumes?t.marketVolumes=e.marketVolumes.map((function(e){return e?QS.toJSON(e):void 0})):t.marketVolumes=[],t},create:function(e){return XS.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c,u,d,f,l,b,p,h,y,m,v,g,A,w,x,_,k,I,S,E,C,T,O,P,M={params:void 0,spotMarkets:[],derivativeMarkets:[],spotOrderbook:[],derivativeOrderbook:[],balances:[],positions:[],subaccountTradeNonces:[],expiryFuturesMarketInfoState:[],perpetualMarketInfo:[],perpetualMarketFundingState:[],derivativeMarketSettlementScheduled:[],isSpotExchangeEnabled:!1,isDerivativesExchangeEnabled:!1,tradingRewardCampaignInfo:void 0,tradingRewardPoolCampaignSchedule:[],tradingRewardCampaignAccountPoints:[],feeDiscountSchedule:void 0,feeDiscountAccountTierTtl:[],feeDiscountBucketVolumeAccounts:[],isFirstFeeCycleFinished:!1,pendingTradingRewardPoolCampaignSchedule:[],pendingTradingRewardCampaignAccountPoints:[],rewardsOptOutAddresses:[],historicalTradeRecords:[],binaryOptionsMarkets:[],binaryOptionsMarketIdsScheduledForSettlement:[],spotMarketIdsScheduledToForceClose:[],denomDecimals:[],conditionalDerivativeOrderbooks:[],marketFeeMultipliers:[],orderbookSequences:[],subaccountVolumes:[],marketVolumes:[]};return M.params=void 0!==e.params&&null!==e.params?cS.fromPartial(e.params):void 0,M.spotMarkets=(null===(t=e.spotMarkets)||void 0===t?void 0:t.map((function(e){return yS.fromPartial(e)})))||[],M.derivativeMarkets=(null===(n=e.derivativeMarkets)||void 0===n?void 0:n.map((function(e){return dS.fromPartial(e)})))||[],M.spotOrderbook=(null===(r=e.spotOrderbook)||void 0===r?void 0:r.map((function(e){return iE.fromPartial(e)})))||[],M.derivativeOrderbook=(null===(a=e.derivativeOrderbook)||void 0===a?void 0:a.map((function(e){return oE.fromPartial(e)})))||[],M.balances=(null===(i=e.balances)||void 0===i?void 0:i.map((function(e){return cE.fromPartial(e)})))||[],M.positions=(null===(o=e.positions)||void 0===o?void 0:o.map((function(e){return uE.fromPartial(e)})))||[],M.subaccountTradeNonces=(null===(s=e.subaccountTradeNonces)||void 0===s?void 0:s.map((function(e){return dE.fromPartial(e)})))||[],M.expiryFuturesMarketInfoState=(null===(c=e.expiryFuturesMarketInfoState)||void 0===c?void 0:c.map((function(e){return fE.fromPartial(e)})))||[],M.perpetualMarketInfo=(null===(u=e.perpetualMarketInfo)||void 0===u?void 0:u.map((function(e){return bS.fromPartial(e)})))||[],M.perpetualMarketFundingState=(null===(d=e.perpetualMarketFundingState)||void 0===d?void 0:d.map((function(e){return lE.fromPartial(e)})))||[],M.derivativeMarketSettlementScheduled=(null===(f=e.derivativeMarketSettlementScheduled)||void 0===f?void 0:f.map((function(e){return hS.fromPartial(e)})))||[],M.isSpotExchangeEnabled=null!==(l=e.isSpotExchangeEnabled)&&void 0!==l&&l,M.isDerivativesExchangeEnabled=null!==(b=e.isDerivativesExchangeEnabled)&&void 0!==b&&b,M.tradingRewardCampaignInfo=void 0!==e.tradingRewardCampaignInfo&&null!==e.tradingRewardCampaignInfo?NS.fromPartial(e.tradingRewardCampaignInfo):void 0,M.tradingRewardPoolCampaignSchedule=(null===(p=e.tradingRewardPoolCampaignSchedule)||void 0===p?void 0:p.map((function(e){return BS.fromPartial(e)})))||[],M.tradingRewardCampaignAccountPoints=(null===(h=e.tradingRewardCampaignAccountPoints)||void 0===h?void 0:h.map((function(e){return rE.fromPartial(e)})))||[],M.feeDiscountSchedule=void 0!==e.feeDiscountSchedule&&null!==e.feeDiscountSchedule?DS.fromPartial(e.feeDiscountSchedule):void 0,M.feeDiscountAccountTierTtl=(null===(y=e.feeDiscountAccountTierTtl)||void 0===y?void 0:y.map((function(e){return eE.fromPartial(e)})))||[],M.feeDiscountBucketVolumeAccounts=(null===(m=e.feeDiscountBucketVolumeAccounts)||void 0===m?void 0:m.map((function(e){return tE.fromPartial(e)})))||[],M.isFirstFeeCycleFinished=null!==(v=e.isFirstFeeCycleFinished)&&void 0!==v&&v,M.pendingTradingRewardPoolCampaignSchedule=(null===(g=e.pendingTradingRewardPoolCampaignSchedule)||void 0===g?void 0:g.map((function(e){return BS.fromPartial(e)})))||[],M.pendingTradingRewardCampaignAccountPoints=(null===(A=e.pendingTradingRewardCampaignAccountPoints)||void 0===A?void 0:A.map((function(e){return aE.fromPartial(e)})))||[],M.rewardsOptOutAddresses=(null===(w=e.rewardsOptOutAddresses)||void 0===w?void 0:w.map((function(e){return e})))||[],M.historicalTradeRecords=(null===(x=e.historicalTradeRecords)||void 0===x?void 0:x.map((function(e){return LS.fromPartial(e)})))||[],M.binaryOptionsMarkets=(null===(_=e.binaryOptionsMarkets)||void 0===_?void 0:_.map((function(e){return fS.fromPartial(e)})))||[],M.binaryOptionsMarketIdsScheduledForSettlement=(null===(k=e.binaryOptionsMarketIdsScheduledForSettlement)||void 0===k?void 0:k.map((function(e){return e})))||[],M.spotMarketIdsScheduledToForceClose=(null===(I=e.spotMarketIdsScheduledToForceClose)||void 0===I?void 0:I.map((function(e){return e})))||[],M.denomDecimals=(null===(S=e.denomDecimals)||void 0===S?void 0:S.map((function(e){return qS.fromPartial(e)})))||[],M.conditionalDerivativeOrderbooks=(null===(E=e.conditionalDerivativeOrderbooks)||void 0===E?void 0:E.map((function(e){return sE.fromPartial(e)})))||[],M.marketFeeMultipliers=(null===(C=e.marketFeeMultipliers)||void 0===C?void 0:C.map((function(e){return uS.fromPartial(e)})))||[],M.orderbookSequences=(null===(T=e.orderbookSequences)||void 0===T?void 0:T.map((function(e){return $S.fromPartial(e)})))||[],M.subaccountVolumes=(null===(O=e.subaccountVolumes)||void 0===O?void 0:O.map((function(e){return HS.fromPartial(e)})))||[],M.marketVolumes=(null===(P=e.marketVolumes)||void 0===P?void 0:P.map((function(e){return QS.fromPartial(e)})))||[],M}},$S={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return"0"!==e.sequence&&t.uint32(8).uint64(e.sequence),""!==e.marketId&&t.uint32(18).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={sequence:"0",marketId:""};n.pos>>3){case 1:a.sequence=bE(n.uint64());break;case 2:a.marketId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{sequence:pE(e.sequence)?String(e.sequence):"0",marketId:pE(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.sequence&&(t.sequence=e.sequence),void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return $S.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={sequence:"0",marketId:""};return r.sequence=null!==(t=e.sequence)&&void 0!==t?t:"0",r.marketId=null!==(n=e.marketId)&&void 0!==n?n:"",r}},eE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.account&&t.uint32(10).string(e.account),void 0!==e.tierTtl&&jS.encode(e.tierTtl,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={account:"",tierTtl:void 0};n.pos>>3){case 1:a.account=n.string();break;case 2:a.tierTtl=jS.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{account:pE(e.account)?String(e.account):"",tierTtl:pE(e.tierTtl)?jS.fromJSON(e.tierTtl):void 0}},toJSON:function(e){var t={};return void 0!==e.account&&(t.account=e.account),void 0!==e.tierTtl&&(t.tierTtl=e.tierTtl?jS.toJSON(e.tierTtl):void 0),t},create:function(e){return eE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={account:"",tierTtl:void 0};return n.account=null!==(t=e.account)&&void 0!==t?t:"",n.tierTtl=void 0!==e.tierTtl&&null!==e.tierTtl?jS.fromPartial(e.tierTtl):void 0,n}},tE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();"0"!==e.bucketStartTimestamp&&t.uint32(8).int64(e.bucketStartTimestamp);var n,r=(0,ha.Z)(e.accountVolume);try{for(r.s();!(n=r.n()).done;){var a=n.value;nE.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={bucketStartTimestamp:"0",accountVolume:[]};n.pos>>3){case 1:a.bucketStartTimestamp=bE(n.int64());break;case 2:a.accountVolume.push(nE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{bucketStartTimestamp:pE(e.bucketStartTimestamp)?String(e.bucketStartTimestamp):"0",accountVolume:Array.isArray(null==e?void 0:e.accountVolume)?e.accountVolume.map((function(e){return nE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.bucketStartTimestamp&&(t.bucketStartTimestamp=e.bucketStartTimestamp),e.accountVolume?t.accountVolume=e.accountVolume.map((function(e){return e?nE.toJSON(e):void 0})):t.accountVolume=[],t},create:function(e){return tE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={bucketStartTimestamp:"0",accountVolume:[]};return r.bucketStartTimestamp=null!==(t=e.bucketStartTimestamp)&&void 0!==t?t:"0",r.accountVolume=(null===(n=e.accountVolume)||void 0===n?void 0:n.map((function(e){return nE.fromPartial(e)})))||[],r}},nE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.account&&t.uint32(10).string(e.account),""!==e.volume&&t.uint32(18).string(e.volume),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={account:"",volume:""};n.pos>>3){case 1:a.account=n.string();break;case 2:a.volume=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{account:pE(e.account)?String(e.account):"",volume:pE(e.volume)?String(e.volume):""}},toJSON:function(e){var t={};return void 0!==e.account&&(t.account=e.account),void 0!==e.volume&&(t.volume=e.volume),t},create:function(e){return nE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={account:"",volume:""};return r.account=null!==(t=e.account)&&void 0!==t?t:"",r.volume=null!==(n=e.volume)&&void 0!==n?n:"",r}},rE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.account&&t.uint32(10).string(e.account),""!==e.points&&t.uint32(18).string(e.points),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={account:"",points:""};n.pos>>3){case 1:a.account=n.string();break;case 2:a.points=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{account:pE(e.account)?String(e.account):"",points:pE(e.points)?String(e.points):""}},toJSON:function(e){var t={};return void 0!==e.account&&(t.account=e.account),void 0!==e.points&&(t.points=e.points),t},create:function(e){return rE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={account:"",points:""};return r.account=null!==(t=e.account)&&void 0!==t?t:"",r.points=null!==(n=e.points)&&void 0!==n?n:"",r}},aE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();"0"!==e.rewardPoolStartTimestamp&&t.uint32(8).int64(e.rewardPoolStartTimestamp);var n,r=(0,ha.Z)(e.accountPoints);try{for(r.s();!(n=r.n()).done;){var a=n.value;rE.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={rewardPoolStartTimestamp:"0",accountPoints:[]};n.pos>>3){case 1:a.rewardPoolStartTimestamp=bE(n.int64());break;case 2:a.accountPoints.push(rE.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{rewardPoolStartTimestamp:pE(e.rewardPoolStartTimestamp)?String(e.rewardPoolStartTimestamp):"0",accountPoints:Array.isArray(null==e?void 0:e.accountPoints)?e.accountPoints.map((function(e){return rE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.rewardPoolStartTimestamp&&(t.rewardPoolStartTimestamp=e.rewardPoolStartTimestamp),e.accountPoints?t.accountPoints=e.accountPoints.map((function(e){return e?rE.toJSON(e):void 0})):t.accountPoints=[],t},create:function(e){return aE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={rewardPoolStartTimestamp:"0",accountPoints:[]};return r.rewardPoolStartTimestamp=null!==(t=e.rewardPoolStartTimestamp)&&void 0!==t?t:"0",r.accountPoints=(null===(n=e.accountPoints)||void 0===n?void 0:n.map((function(e){return rE.fromPartial(e)})))||[],r}},iE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();""!==e.marketId&&t.uint32(10).string(e.marketId),!0===e.isBuySide&&t.uint32(16).bool(e.isBuySide);var n,r=(0,ha.Z)(e.orders);try{for(r.s();!(n=r.n()).done;){var a=n.value;wS.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",isBuySide:!1,orders:[]};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.isBuySide=n.bool();break;case 3:a.orders.push(wS.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:pE(e.marketId)?String(e.marketId):"",isBuySide:!!pE(e.isBuySide)&&Boolean(e.isBuySide),orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return wS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.isBuySide&&(t.isBuySide=e.isBuySide),e.orders?t.orders=e.orders.map((function(e){return e?wS.toJSON(e):void 0})):t.orders=[],t},create:function(e){return iE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={marketId:"",isBuySide:!1,orders:[]};return a.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",a.isBuySide=null!==(n=e.isBuySide)&&void 0!==n&&n,a.orders=(null===(r=e.orders)||void 0===r?void 0:r.map((function(e){return wS.fromPartial(e)})))||[],a}},oE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();""!==e.marketId&&t.uint32(10).string(e.marketId),!0===e.isBuySide&&t.uint32(16).bool(e.isBuySide);var n,r=(0,ha.Z)(e.orders);try{for(r.s();!(n=r.n()).done;){var a=n.value;ES.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",isBuySide:!1,orders:[]};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.isBuySide=n.bool();break;case 3:a.orders.push(ES.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:pE(e.marketId)?String(e.marketId):"",isBuySide:!!pE(e.isBuySide)&&Boolean(e.isBuySide),orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return ES.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.isBuySide&&(t.isBuySide=e.isBuySide),e.orders?t.orders=e.orders.map((function(e){return e?ES.toJSON(e):void 0})):t.orders=[],t},create:function(e){return oE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={marketId:"",isBuySide:!1,orders:[]};return a.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",a.isBuySide=null!==(n=e.isBuySide)&&void 0!==n&&n,a.orders=(null===(r=e.orders)||void 0===r?void 0:r.map((function(e){return ES.fromPartial(e)})))||[],a}},sE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();""!==e.marketId&&t.uint32(10).string(e.marketId);var n,r=(0,ha.Z)(e.limitBuyOrders);try{for(r.s();!(n=r.n()).done;){var a=n.value;ES.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ha.Z)(e.marketBuyOrders);try{for(o.s();!(i=o.n()).done;){var s=i.value;TS.encode(s,t.uint32(26).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}var c,u=(0,ha.Z)(e.limitSellOrders);try{for(u.s();!(c=u.n()).done;){var d=c.value;ES.encode(d,t.uint32(34).fork()).ldelim()}}catch(e){u.e(e)}finally{u.f()}var f,l=(0,ha.Z)(e.marketSellOrders);try{for(l.s();!(f=l.n()).done;){var b=f.value;TS.encode(b,t.uint32(42).fork()).ldelim()}}catch(e){l.e(e)}finally{l.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",limitBuyOrders:[],marketBuyOrders:[],limitSellOrders:[],marketSellOrders:[]};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.limitBuyOrders.push(ES.decode(n,n.uint32()));break;case 3:a.marketBuyOrders.push(TS.decode(n,n.uint32()));break;case 4:a.limitSellOrders.push(ES.decode(n,n.uint32()));break;case 5:a.marketSellOrders.push(TS.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:pE(e.marketId)?String(e.marketId):"",limitBuyOrders:Array.isArray(null==e?void 0:e.limitBuyOrders)?e.limitBuyOrders.map((function(e){return ES.fromJSON(e)})):[],marketBuyOrders:Array.isArray(null==e?void 0:e.marketBuyOrders)?e.marketBuyOrders.map((function(e){return TS.fromJSON(e)})):[],limitSellOrders:Array.isArray(null==e?void 0:e.limitSellOrders)?e.limitSellOrders.map((function(e){return ES.fromJSON(e)})):[],marketSellOrders:Array.isArray(null==e?void 0:e.marketSellOrders)?e.marketSellOrders.map((function(e){return TS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),e.limitBuyOrders?t.limitBuyOrders=e.limitBuyOrders.map((function(e){return e?ES.toJSON(e):void 0})):t.limitBuyOrders=[],e.marketBuyOrders?t.marketBuyOrders=e.marketBuyOrders.map((function(e){return e?TS.toJSON(e):void 0})):t.marketBuyOrders=[],e.limitSellOrders?t.limitSellOrders=e.limitSellOrders.map((function(e){return e?ES.toJSON(e):void 0})):t.limitSellOrders=[],e.marketSellOrders?t.marketSellOrders=e.marketSellOrders.map((function(e){return e?TS.toJSON(e):void 0})):t.marketSellOrders=[],t},create:function(e){return sE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={marketId:"",limitBuyOrders:[],marketBuyOrders:[],limitSellOrders:[],marketSellOrders:[]};return o.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",o.limitBuyOrders=(null===(n=e.limitBuyOrders)||void 0===n?void 0:n.map((function(e){return ES.fromPartial(e)})))||[],o.marketBuyOrders=(null===(r=e.marketBuyOrders)||void 0===r?void 0:r.map((function(e){return TS.fromPartial(e)})))||[],o.limitSellOrders=(null===(a=e.limitSellOrders)||void 0===a?void 0:a.map((function(e){return ES.fromPartial(e)})))||[],o.marketSellOrders=(null===(i=e.marketSellOrders)||void 0===i?void 0:i.map((function(e){return TS.fromPartial(e)})))||[],o}},cE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.denom&&t.uint32(18).string(e.denom),void 0!==e.deposits&&mS.encode(e.deposits,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",denom:"",deposits:void 0};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.denom=n.string();break;case 3:a.deposits=mS.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:pE(e.subaccountId)?String(e.subaccountId):"",denom:pE(e.denom)?String(e.denom):"",deposits:pE(e.deposits)?mS.fromJSON(e.deposits):void 0}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.denom&&(t.denom=e.denom),void 0!==e.deposits&&(t.deposits=e.deposits?mS.toJSON(e.deposits):void 0),t},create:function(e){return cE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",denom:"",deposits:void 0};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.denom=null!==(n=e.denom)&&void 0!==n?n:"",r.deposits=void 0!==e.deposits&&null!==e.deposits?mS.fromPartial(e.deposits):void 0,r}},uE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.marketId&&t.uint32(18).string(e.marketId),void 0!==e.position&&OS.encode(e.position,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",marketId:"",position:void 0};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.marketId=n.string();break;case 3:a.position=OS.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:pE(e.subaccountId)?String(e.subaccountId):"",marketId:pE(e.marketId)?String(e.marketId):"",position:pE(e.position)?OS.fromJSON(e.position):void 0}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.position&&(t.position=e.position?OS.toJSON(e.position):void 0),t},create:function(e){return uE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",marketId:"",position:void 0};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.marketId=null!==(n=e.marketId)&&void 0!==n?n:"",r.position=void 0!==e.position&&null!==e.position?OS.fromPartial(e.position):void 0,r}},dE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),void 0!==e.subaccountTradeNonce&&vS.encode(e.subaccountTradeNonce,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",subaccountTradeNonce:void 0};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.subaccountTradeNonce=vS.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:pE(e.subaccountId)?String(e.subaccountId):"",subaccountTradeNonce:pE(e.subaccountTradeNonce)?vS.fromJSON(e.subaccountTradeNonce):void 0}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.subaccountTradeNonce&&(t.subaccountTradeNonce=e.subaccountTradeNonce?vS.toJSON(e.subaccountTradeNonce):void 0),t},create:function(e){return dE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={subaccountId:"",subaccountTradeNonce:void 0};return n.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",n.subaccountTradeNonce=void 0!==e.subaccountTradeNonce&&null!==e.subaccountTradeNonce?vS.fromPartial(e.subaccountTradeNonce):void 0,n}},fE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),void 0!==e.marketInfo&&lS.encode(e.marketInfo,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",marketInfo:void 0};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.marketInfo=lS.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:pE(e.marketId)?String(e.marketId):"",marketInfo:pE(e.marketInfo)?lS.fromJSON(e.marketInfo):void 0}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.marketInfo&&(t.marketInfo=e.marketInfo?lS.toJSON(e.marketInfo):void 0),t},create:function(e){return fE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:"",marketInfo:void 0};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n.marketInfo=void 0!==e.marketInfo&&null!==e.marketInfo?lS.fromPartial(e.marketInfo):void 0,n}},lE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),void 0!==e.funding&&pS.encode(e.funding,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",funding:void 0};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.funding=pS.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:pE(e.marketId)?String(e.marketId):"",funding:pE(e.funding)?pS.fromJSON(e.funding):void 0}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.funding&&(t.funding=e.funding?pS.toJSON(e.funding):void 0),t},create:function(e){return lE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:"",funding:void 0};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n.funding=void 0!==e.funding&&null!==e.funding?pS.fromPartial(e.funding):void 0,n}};function bE(e){return e.toString()}function pE(e){return null!=e}function hE(e){switch(e){case 0:case"UnspecifiedOrder":return YS.UnspecifiedOrder;case 1:case"FromWorstToBest":return YS.FromWorstToBest;case 2:case"FromBestToWorst":return YS.FromBestToWorst;default:return YS.UNRECOGNIZED}}function yE(e){switch(e){case YS.UnspecifiedOrder:return"UnspecifiedOrder";case YS.FromWorstToBest:return"FromWorstToBest";case YS.FromBestToWorst:return"FromBestToWorst";case YS.UNRECOGNIZED:default:return"UNRECOGNIZED"}}Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(e){e[e.UnspecifiedOrder=0]="UnspecifiedOrder",e[e.FromWorstToBest=1]="FromWorstToBest",e[e.FromBestToWorst=2]="FromBestToWorst",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(YS||(YS={}));var mE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.trader&&t.uint32(10).string(e.trader),0!==e.subaccountNonce&&t.uint32(16).uint32(e.subaccountNonce),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={trader:"",subaccountNonce:0};n.pos>>3){case 1:a.trader=n.string();break;case 2:a.subaccountNonce=n.uint32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{trader:RO(e.trader)?String(e.trader):"",subaccountNonce:RO(e.subaccountNonce)?Number(e.subaccountNonce):0}},toJSON:function(e){var t={};return void 0!==e.trader&&(t.trader=e.trader),void 0!==e.subaccountNonce&&(t.subaccountNonce=Math.round(e.subaccountNonce)),t},create:function(e){return mE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={trader:"",subaccountNonce:0};return r.trader=null!==(t=e.trader)&&void 0!==t?t:"",r.subaccountNonce=null!==(n=e.subaccountNonce)&&void 0!==n?n:0,r}},vE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.marketId&&t.uint32(18).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",marketId:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.marketId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:RO(e.subaccountId)?String(e.subaccountId):"",marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return vE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",marketId:""};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.marketId=null!==(n=e.marketId)&&void 0!==n?n:"",r}},gE={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.buyOrders);try{for(r.s();!(t=r.n()).done;){var a=t.value;IS.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ha.Z)(e.sellOrders);try{for(o.s();!(i=o.n()).done;){var s=i.value;IS.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={buyOrders:[],sellOrders:[]};n.pos>>3){case 1:a.buyOrders.push(IS.decode(n,n.uint32()));break;case 2:a.sellOrders.push(IS.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{buyOrders:Array.isArray(null==e?void 0:e.buyOrders)?e.buyOrders.map((function(e){return IS.fromJSON(e)})):[],sellOrders:Array.isArray(null==e?void 0:e.sellOrders)?e.sellOrders.map((function(e){return IS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.buyOrders?t.buyOrders=e.buyOrders.map((function(e){return e?IS.toJSON(e):void 0})):t.buyOrders=[],e.sellOrders?t.sellOrders=e.sellOrders.map((function(e){return e?IS.toJSON(e):void 0})):t.sellOrders=[],t},create:function(e){return gE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={buyOrders:[],sellOrders:[]};return r.buyOrders=(null===(t=e.buyOrders)||void 0===t?void 0:t.map((function(e){return IS.fromPartial(e)})))||[],r.sellOrders=(null===(n=e.sellOrders)||void 0===n?void 0:n.map((function(e){return IS.fromPartial(e)})))||[],r}},AE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.metadata&&xS.encode(e.metadata,t.uint32(10).fork()).ldelim(),""!==e.marketId&&t.uint32(18).string(e.marketId),!0===e.isBuy&&t.uint32(24).bool(e.isBuy),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={metadata:void 0,marketId:"",isBuy:!1};n.pos>>3){case 1:a.metadata=xS.decode(n,n.uint32());break;case 2:a.marketId=n.string();break;case 3:a.isBuy=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{metadata:RO(e.metadata)?xS.fromJSON(e.metadata):void 0,marketId:RO(e.marketId)?String(e.marketId):"",isBuy:!!RO(e.isBuy)&&Boolean(e.isBuy)}},toJSON:function(e){var t={};return void 0!==e.metadata&&(t.metadata=e.metadata?xS.toJSON(e.metadata):void 0),void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.isBuy&&(t.isBuy=e.isBuy),t},create:function(e){return AE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={metadata:void 0,marketId:"",isBuy:!1};return r.metadata=void 0!==e.metadata&&null!==e.metadata?xS.fromPartial(e.metadata):void 0,r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.isBuy=null!==(n=e.isBuy)&&void 0!==n&&n,r}},wE={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create()},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.params&&cS.encode(e.params,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={params:void 0};n.pos>>3==1?a.params=cS.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{params:RO(e.params)?cS.fromJSON(e.params):void 0}},toJSON:function(e){var t={};return void 0!==e.params&&(t.params=e.params?cS.toJSON(e.params):void 0),t},create:function(e){return xE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={params:void 0};return t.params=void 0!==e.params&&null!==e.params?cS.fromPartial(e.params):void 0,t}},_E={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),void 0!==e.subaccount&&mE.encode(e.subaccount,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",subaccount:void 0};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.subaccount=mE.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:RO(e.subaccountId)?String(e.subaccountId):"",subaccount:RO(e.subaccount)?mE.fromJSON(e.subaccount):void 0}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.subaccount&&(t.subaccount=e.subaccount?mE.toJSON(e.subaccount):void 0),t},create:function(e){return _E.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={subaccountId:"",subaccount:void 0};return n.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",n.subaccount=void 0!==e.subaccount&&null!==e.subaccount?mE.fromPartial(e.subaccount):void 0,n}},kE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return Object.entries(e.deposits).forEach((function(e){var n=(0,fa.Z)(e,2),r=n[0],a=n[1];IE.encode({key:r,value:a},t.uint32(10).fork()).ldelim()})),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={deposits:{}};n.pos>>3==1){var o=IE.decode(n,n.uint32());void 0!==o.value&&(a.deposits[o.key]=o.value)}else n.skipType(7&i)}return a},fromJSON:function(e){return{deposits:(t=e.deposits,"object"==typeof t&&null!==t?Object.entries(e.deposits).reduce((function(e,t){var n=(0,fa.Z)(t,2),r=n[0],a=n[1];return e[r]=mS.fromJSON(a),e}),{}):{})};var t},toJSON:function(e){var t={deposits:{}};return e.deposits&&Object.entries(e.deposits).forEach((function(e){var n=(0,fa.Z)(e,2),r=n[0],a=n[1];t.deposits[r]=mS.toJSON(a)})),t},create:function(e){return kE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={deposits:{}};return n.deposits=Object.entries(null!==(t=e.deposits)&&void 0!==t?t:{}).reduce((function(e,t){var n=(0,fa.Z)(t,2),r=n[0],a=n[1];return void 0!==a&&(e[r]=mS.fromPartial(a)),e}),{}),n}},IE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.key&&t.uint32(10).string(e.key),void 0!==e.value&&mS.encode(e.value,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={key:"",value:void 0};n.pos>>3){case 1:a.key=n.string();break;case 2:a.value=mS.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{key:RO(e.key)?String(e.key):"",value:RO(e.value)?mS.fromJSON(e.value):void 0}},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value?mS.toJSON(e.value):void 0),t},create:function(e){return IE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={key:"",value:void 0};return n.key=null!==(t=e.key)&&void 0!==t?t:"",n.value=void 0!==e.value&&null!==e.value?mS.fromPartial(e.value):void 0,n}},SE={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create()},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.balances);try{for(r.s();!(t=r.n()).done;){var a=t.value;cE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={balances:[]};n.pos>>3==1?a.balances.push(cE.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{balances:Array.isArray(null==e?void 0:e.balances)?e.balances.map((function(e){return cE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.balances?t.balances=e.balances.map((function(e){return e?cE.toJSON(e):void 0})):t.balances=[],t},create:function(e){return EE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={balances:[]};return n.balances=(null===(t=e.balances)||void 0===t?void 0:t.map((function(e){return cE.fromPartial(e)})))||[],n}},CE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.account&&t.uint32(10).string(e.account),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={account:""};n.pos>>3==1?a.account=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{account:RO(e.account)?String(e.account):""}},toJSON:function(e){var t={};return void 0!==e.account&&(t.account=e.account),t},create:function(e){return CE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={account:""};return n.account=null!==(t=e.account)&&void 0!==t?t:"",n}},TE={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.aggregateVolumes);try{for(r.s();!(t=r.n()).done;){var a=t.value;QS.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={aggregateVolumes:[]};n.pos>>3==1?a.aggregateVolumes.push(QS.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{aggregateVolumes:Array.isArray(null==e?void 0:e.aggregateVolumes)?e.aggregateVolumes.map((function(e){return QS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.aggregateVolumes?t.aggregateVolumes=e.aggregateVolumes.map((function(e){return e?QS.toJSON(e):void 0})):t.aggregateVolumes=[],t},create:function(e){return TE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={aggregateVolumes:[]};return n.aggregateVolumes=(null===(t=e.aggregateVolumes)||void 0===t?void 0:t.map((function(e){return QS.fromPartial(e)})))||[],n}},OE={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.accounts);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ha.Z)(e.marketIds);try{for(o.s();!(i=o.n()).done;){var s=i.value;n.uint32(18).string(s)}}catch(e){o.e(e)}finally{o.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={accounts:[],marketIds:[]};n.pos>>3){case 1:a.accounts.push(n.string());break;case 2:a.marketIds.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{accounts:Array.isArray(null==e?void 0:e.accounts)?e.accounts.map((function(e){return String(e)})):[],marketIds:Array.isArray(null==e?void 0:e.marketIds)?e.marketIds.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return e.accounts?t.accounts=e.accounts.map((function(e){return e})):t.accounts=[],e.marketIds?t.marketIds=e.marketIds.map((function(e){return e})):t.marketIds=[],t},create:function(e){return OE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={accounts:[],marketIds:[]};return r.accounts=(null===(t=e.accounts)||void 0===t?void 0:t.map((function(e){return e})))||[],r.marketIds=(null===(n=e.marketIds)||void 0===n?void 0:n.map((function(e){return e})))||[],r}},PE={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.aggregateAccountVolumes);try{for(r.s();!(t=r.n()).done;){var a=t.value;zS.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ha.Z)(e.aggregateMarketVolumes);try{for(o.s();!(i=o.n()).done;){var s=i.value;QS.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={aggregateAccountVolumes:[],aggregateMarketVolumes:[]};n.pos>>3){case 1:a.aggregateAccountVolumes.push(zS.decode(n,n.uint32()));break;case 2:a.aggregateMarketVolumes.push(QS.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{aggregateAccountVolumes:Array.isArray(null==e?void 0:e.aggregateAccountVolumes)?e.aggregateAccountVolumes.map((function(e){return zS.fromJSON(e)})):[],aggregateMarketVolumes:Array.isArray(null==e?void 0:e.aggregateMarketVolumes)?e.aggregateMarketVolumes.map((function(e){return QS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.aggregateAccountVolumes?t.aggregateAccountVolumes=e.aggregateAccountVolumes.map((function(e){return e?zS.toJSON(e):void 0})):t.aggregateAccountVolumes=[],e.aggregateMarketVolumes?t.aggregateMarketVolumes=e.aggregateMarketVolumes.map((function(e){return e?QS.toJSON(e):void 0})):t.aggregateMarketVolumes=[],t},create:function(e){return PE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={aggregateAccountVolumes:[],aggregateMarketVolumes:[]};return r.aggregateAccountVolumes=(null===(t=e.aggregateAccountVolumes)||void 0===t?void 0:t.map((function(e){return zS.fromPartial(e)})))||[],r.aggregateMarketVolumes=(null===(n=e.aggregateMarketVolumes)||void 0===n?void 0:n.map((function(e){return QS.fromPartial(e)})))||[],r}},ME={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return ME.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},BE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.volume&&US.encode(e.volume,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={volume:void 0};n.pos>>3==1?a.volume=US.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{volume:RO(e.volume)?US.fromJSON(e.volume):void 0}},toJSON:function(e){var t={};return void 0!==e.volume&&(t.volume=e.volume?US.toJSON(e.volume):void 0),t},create:function(e){return BE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={volume:void 0};return t.volume=void 0!==e.volume&&null!==e.volume?US.fromPartial(e.volume):void 0,t}},NE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={denom:""};n.pos>>3==1?a.denom=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{denom:RO(e.denom)?String(e.denom):""}},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),t},create:function(e){return NE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={denom:""};return n.denom=null!==(t=e.denom)&&void 0!==t?t:"",n}},RE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return"0"!==e.decimal&&t.uint32(8).uint64(e.decimal),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={decimal:"0"};n.pos>>3==1?a.decimal=NO(n.uint64()):n.skipType(7&i)}return a},fromJSON:function(e){return{decimal:RO(e.decimal)?String(e.decimal):"0"}},toJSON:function(e){var t={};return void 0!==e.decimal&&(t.decimal=e.decimal),t},create:function(e){return RE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={decimal:"0"};return n.decimal=null!==(t=e.decimal)&&void 0!==t?t:"0",n}},DE={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.denoms);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={denoms:[]};n.pos>>3==1?a.denoms.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){return{denoms:Array.isArray(null==e?void 0:e.denoms)?e.denoms.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return e.denoms?t.denoms=e.denoms.map((function(e){return e})):t.denoms=[],t},create:function(e){return DE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={denoms:[]};return n.denoms=(null===(t=e.denoms)||void 0===t?void 0:t.map((function(e){return e})))||[],n}},jE={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.denomDecimals);try{for(r.s();!(t=r.n()).done;){var a=t.value;qS.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={denomDecimals:[]};n.pos>>3==1?a.denomDecimals.push(qS.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{denomDecimals:Array.isArray(null==e?void 0:e.denomDecimals)?e.denomDecimals.map((function(e){return qS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.denomDecimals?t.denomDecimals=e.denomDecimals.map((function(e){return e?qS.toJSON(e):void 0})):t.denomDecimals=[],t},create:function(e){return jE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={denomDecimals:[]};return n.denomDecimals=(null===(t=e.denomDecimals)||void 0===t?void 0:t.map((function(e){return qS.fromPartial(e)})))||[],n}},UE={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.marketIds);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketIds:[]};n.pos>>3==1?a.marketIds.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){return{marketIds:Array.isArray(null==e?void 0:e.marketIds)?e.marketIds.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return e.marketIds?t.marketIds=e.marketIds.map((function(e){return e})):t.marketIds=[],t},create:function(e){return UE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketIds:[]};return n.marketIds=(null===(t=e.marketIds)||void 0===t?void 0:t.map((function(e){return e})))||[],n}},LE={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.volumes);try{for(r.s();!(t=r.n()).done;){var a=t.value;QS.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={volumes:[]};n.pos>>3==1?a.volumes.push(QS.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{volumes:Array.isArray(null==e?void 0:e.volumes)?e.volumes.map((function(e){return QS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.volumes?t.volumes=e.volumes.map((function(e){return e?QS.toJSON(e):void 0})):t.volumes=[],t},create:function(e){return LE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={volumes:[]};return n.volumes=(null===(t=e.volumes)||void 0===t?void 0:t.map((function(e){return QS.fromPartial(e)})))||[],n}},FE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.denom&&t.uint32(18).string(e.denom),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",denom:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.denom=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:RO(e.subaccountId)?String(e.subaccountId):"",denom:RO(e.denom)?String(e.denom):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.denom&&(t.denom=e.denom),t},create:function(e){return FE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",denom:""};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.denom=null!==(n=e.denom)&&void 0!==n?n:"",r}},ZE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.deposits&&mS.encode(e.deposits,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={deposits:void 0};n.pos>>3==1?a.deposits=mS.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{deposits:RO(e.deposits)?mS.fromJSON(e.deposits):void 0}},toJSON:function(e){var t={};return void 0!==e.deposits&&(t.deposits=e.deposits?mS.toJSON(e.deposits):void 0),t},create:function(e){return ZE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={deposits:void 0};return t.deposits=void 0!==e.deposits&&null!==e.deposits?mS.fromPartial(e.deposits):void 0,t}},HE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.status&&t.uint32(10).string(e.status),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={status:""};n.pos>>3==1?a.status=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{status:RO(e.status)?String(e.status):""}},toJSON:function(e){var t={};return void 0!==e.status&&(t.status=e.status),t},create:function(e){return HE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={status:""};return n.status=null!==(t=e.status)&&void 0!==t?t:"",n}},zE={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.markets);try{for(r.s();!(t=r.n()).done;){var a=t.value;yS.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={markets:[]};n.pos>>3==1?a.markets.push(yS.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{markets:Array.isArray(null==e?void 0:e.markets)?e.markets.map((function(e){return yS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.markets?t.markets=e.markets.map((function(e){return e?yS.toJSON(e):void 0})):t.markets=[],t},create:function(e){return zE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={markets:[]};return n.markets=(null===(t=e.markets)||void 0===t?void 0:t.map((function(e){return yS.fromPartial(e)})))||[],n}},QE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return QE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},qE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.market&&yS.encode(e.market,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={market:void 0};n.pos>>3==1?a.market=yS.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{market:RO(e.market)?yS.fromJSON(e.market):void 0}},toJSON:function(e){var t={};return void 0!==e.market&&(t.market=e.market?yS.toJSON(e.market):void 0),t},create:function(e){return qE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={market:void 0};return t.market=void 0!==e.market&&null!==e.market?yS.fromPartial(e.market):void 0,t}},VE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),"0"!==e.limit&&t.uint32(16).uint64(e.limit),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",limit:"0"};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.limit=NO(n.uint64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):"",limit:RO(e.limit)?String(e.limit):"0"}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.limit&&(t.limit=e.limit),t},create:function(e){return VE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",limit:"0"};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.limit=null!==(n=e.limit)&&void 0!==n?n:"0",r}},JE={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.buysPriceLevel);try{for(r.s();!(t=r.n()).done;){var a=t.value;ZS.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ha.Z)(e.sellsPriceLevel);try{for(o.s();!(i=o.n()).done;){var s=i.value;ZS.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={buysPriceLevel:[],sellsPriceLevel:[]};n.pos>>3){case 1:a.buysPriceLevel.push(ZS.decode(n,n.uint32()));break;case 2:a.sellsPriceLevel.push(ZS.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{buysPriceLevel:Array.isArray(null==e?void 0:e.buysPriceLevel)?e.buysPriceLevel.map((function(e){return ZS.fromJSON(e)})):[],sellsPriceLevel:Array.isArray(null==e?void 0:e.sellsPriceLevel)?e.sellsPriceLevel.map((function(e){return ZS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.buysPriceLevel?t.buysPriceLevel=e.buysPriceLevel.map((function(e){return e?ZS.toJSON(e):void 0})):t.buysPriceLevel=[],e.sellsPriceLevel?t.sellsPriceLevel=e.sellsPriceLevel.map((function(e){return e?ZS.toJSON(e):void 0})):t.sellsPriceLevel=[],t},create:function(e){return JE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={buysPriceLevel:[],sellsPriceLevel:[]};return r.buysPriceLevel=(null===(t=e.buysPriceLevel)||void 0===t?void 0:t.map((function(e){return ZS.fromPartial(e)})))||[],r.sellsPriceLevel=(null===(n=e.sellsPriceLevel)||void 0===n?void 0:n.map((function(e){return ZS.fromPartial(e)})))||[],r}},KE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.subaccountId&&t.uint32(18).string(e.subaccountId);var n,r=(0,ha.Z)(e.orderHashes);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.uint32(26).string(a)}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",subaccountId:"",orderHashes:[]};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.subaccountId=n.string();break;case 3:a.orderHashes.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):"",subaccountId:RO(e.subaccountId)?String(e.subaccountId):"",orderHashes:Array.isArray(null==e?void 0:e.orderHashes)?e.orderHashes.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),e.orderHashes?t.orderHashes=e.orderHashes.map((function(e){return e})):t.orderHashes=[],t},create:function(e){return KE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={marketId:"",subaccountId:"",orderHashes:[]};return a.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",a.subaccountId=null!==(n=e.subaccountId)&&void 0!==n?n:"",a.orderHashes=(null===(r=e.orderHashes)||void 0===r?void 0:r.map((function(e){return e})))||[],a}},GE={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.orders);try{for(r.s();!(t=r.n()).done;){var a=t.value;XE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={orders:[]};n.pos>>3==1?a.orders.push(XE.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return XE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.orders?t.orders=e.orders.map((function(e){return e?XE.toJSON(e):void 0})):t.orders=[],t},create:function(e){return GE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={orders:[]};return n.orders=(null===(t=e.orders)||void 0===t?void 0:t.map((function(e){return XE.fromPartial(e)})))||[],n}},WE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.subaccountId&&t.uint32(18).string(e.subaccountId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",subaccountId:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.subaccountId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):"",subaccountId:RO(e.subaccountId)?String(e.subaccountId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),t},create:function(e){return WE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",subaccountId:""};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.subaccountId=null!==(n=e.subaccountId)&&void 0!==n?n:"",r}},YE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.accountAddress&&t.uint32(18).string(e.accountAddress),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",accountAddress:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.accountAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):"",accountAddress:RO(e.accountAddress)?String(e.accountAddress):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.accountAddress&&(t.accountAddress=e.accountAddress),t},create:function(e){return YE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",accountAddress:""};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.accountAddress=null!==(n=e.accountAddress)&&void 0!==n?n:"",r}},XE={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.price&&t.uint32(10).string(e.price),""!==e.quantity&&t.uint32(18).string(e.quantity),""!==e.fillable&&t.uint32(26).string(e.fillable),!0===e.isBuy&&t.uint32(32).bool(e.isBuy),""!==e.orderHash&&t.uint32(42).string(e.orderHash),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={price:"",quantity:"",fillable:"",isBuy:!1,orderHash:""};n.pos>>3){case 1:a.price=n.string();break;case 2:a.quantity=n.string();break;case 3:a.fillable=n.string();break;case 4:a.isBuy=n.bool();break;case 5:a.orderHash=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{price:RO(e.price)?String(e.price):"",quantity:RO(e.quantity)?String(e.quantity):"",fillable:RO(e.fillable)?String(e.fillable):"",isBuy:!!RO(e.isBuy)&&Boolean(e.isBuy),orderHash:RO(e.orderHash)?String(e.orderHash):""}},toJSON:function(e){var t={};return void 0!==e.price&&(t.price=e.price),void 0!==e.quantity&&(t.quantity=e.quantity),void 0!==e.fillable&&(t.fillable=e.fillable),void 0!==e.isBuy&&(t.isBuy=e.isBuy),void 0!==e.orderHash&&(t.orderHash=e.orderHash),t},create:function(e){return XE.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={price:"",quantity:"",fillable:"",isBuy:!1,orderHash:""};return o.price=null!==(t=e.price)&&void 0!==t?t:"",o.quantity=null!==(n=e.quantity)&&void 0!==n?n:"",o.fillable=null!==(r=e.fillable)&&void 0!==r?r:"",o.isBuy=null!==(a=e.isBuy)&&void 0!==a&&a,o.orderHash=null!==(i=e.orderHash)&&void 0!==i?i:"",o}},$E={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.orders);try{for(r.s();!(t=r.n()).done;){var a=t.value;XE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={orders:[]};n.pos>>3==1?a.orders.push(XE.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return XE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.orders?t.orders=e.orders.map((function(e){return e?XE.toJSON(e):void 0})):t.orders=[],t},create:function(e){return $E.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={orders:[]};return n.orders=(null===(t=e.orders)||void 0===t?void 0:t.map((function(e){return XE.fromPartial(e)})))||[],n}},eC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.orders);try{for(r.s();!(t=r.n()).done;){var a=t.value;XE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={orders:[]};n.pos>>3==1?a.orders.push(XE.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return XE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.orders?t.orders=e.orders.map((function(e){return e?XE.toJSON(e):void 0})):t.orders=[],t},create:function(e){return eC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={orders:[]};return n.orders=(null===(t=e.orders)||void 0===t?void 0:t.map((function(e){return XE.fromPartial(e)})))||[],n}},tC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return tC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},nC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.midPrice&&t.uint32(10).string(e.midPrice),""!==e.bestBuyPrice&&t.uint32(18).string(e.bestBuyPrice),""!==e.bestSellPrice&&t.uint32(26).string(e.bestSellPrice),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={midPrice:"",bestBuyPrice:"",bestSellPrice:""};n.pos>>3){case 1:a.midPrice=n.string();break;case 2:a.bestBuyPrice=n.string();break;case 3:a.bestSellPrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{midPrice:RO(e.midPrice)?String(e.midPrice):"",bestBuyPrice:RO(e.bestBuyPrice)?String(e.bestBuyPrice):"",bestSellPrice:RO(e.bestSellPrice)?String(e.bestSellPrice):""}},toJSON:function(e){var t={};return void 0!==e.midPrice&&(t.midPrice=e.midPrice),void 0!==e.bestBuyPrice&&(t.bestBuyPrice=e.bestBuyPrice),void 0!==e.bestSellPrice&&(t.bestSellPrice=e.bestSellPrice),t},create:function(e){return nC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={midPrice:"",bestBuyPrice:"",bestSellPrice:""};return a.midPrice=null!==(t=e.midPrice)&&void 0!==t?t:"",a.bestBuyPrice=null!==(n=e.bestBuyPrice)&&void 0!==n?n:"",a.bestSellPrice=null!==(r=e.bestSellPrice)&&void 0!==r?r:"",a}},rC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return rC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},aC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.midPrice&&t.uint32(10).string(e.midPrice),""!==e.bestBuyPrice&&t.uint32(18).string(e.bestBuyPrice),""!==e.bestSellPrice&&t.uint32(26).string(e.bestSellPrice),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={midPrice:"",bestBuyPrice:"",bestSellPrice:""};n.pos>>3){case 1:a.midPrice=n.string();break;case 2:a.bestBuyPrice=n.string();break;case 3:a.bestSellPrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{midPrice:RO(e.midPrice)?String(e.midPrice):"",bestBuyPrice:RO(e.bestBuyPrice)?String(e.bestBuyPrice):"",bestSellPrice:RO(e.bestSellPrice)?String(e.bestSellPrice):""}},toJSON:function(e){var t={};return void 0!==e.midPrice&&(t.midPrice=e.midPrice),void 0!==e.bestBuyPrice&&(t.bestBuyPrice=e.bestBuyPrice),void 0!==e.bestSellPrice&&(t.bestSellPrice=e.bestSellPrice),t},create:function(e){return aC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={midPrice:"",bestBuyPrice:"",bestSellPrice:""};return a.midPrice=null!==(t=e.midPrice)&&void 0!==t?t:"",a.bestBuyPrice=null!==(n=e.bestBuyPrice)&&void 0!==n?n:"",a.bestSellPrice=null!==(r=e.bestSellPrice)&&void 0!==r?r:"",a}},iC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),"0"!==e.limit&&t.uint32(16).uint64(e.limit),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",limit:"0"};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.limit=NO(n.uint64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):"",limit:RO(e.limit)?String(e.limit):"0"}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.limit&&(t.limit=e.limit),t},create:function(e){return iC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",limit:"0"};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.limit=null!==(n=e.limit)&&void 0!==n?n:"0",r}},oC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.buysPriceLevel);try{for(r.s();!(t=r.n()).done;){var a=t.value;ZS.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ha.Z)(e.sellsPriceLevel);try{for(o.s();!(i=o.n()).done;){var s=i.value;ZS.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={buysPriceLevel:[],sellsPriceLevel:[]};n.pos>>3){case 1:a.buysPriceLevel.push(ZS.decode(n,n.uint32()));break;case 2:a.sellsPriceLevel.push(ZS.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{buysPriceLevel:Array.isArray(null==e?void 0:e.buysPriceLevel)?e.buysPriceLevel.map((function(e){return ZS.fromJSON(e)})):[],sellsPriceLevel:Array.isArray(null==e?void 0:e.sellsPriceLevel)?e.sellsPriceLevel.map((function(e){return ZS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.buysPriceLevel?t.buysPriceLevel=e.buysPriceLevel.map((function(e){return e?ZS.toJSON(e):void 0})):t.buysPriceLevel=[],e.sellsPriceLevel?t.sellsPriceLevel=e.sellsPriceLevel.map((function(e){return e?ZS.toJSON(e):void 0})):t.sellsPriceLevel=[],t},create:function(e){return oC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={buysPriceLevel:[],sellsPriceLevel:[]};return r.buysPriceLevel=(null===(t=e.buysPriceLevel)||void 0===t?void 0:t.map((function(e){return ZS.fromPartial(e)})))||[],r.sellsPriceLevel=(null===(n=e.sellsPriceLevel)||void 0===n?void 0:n.map((function(e){return ZS.fromPartial(e)})))||[],r}},sC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.subaccountId&&t.uint32(18).string(e.subaccountId),""!==e.baseAmount&&t.uint32(26).string(e.baseAmount),""!==e.quoteAmount&&t.uint32(34).string(e.quoteAmount),0!==e.strategy&&t.uint32(40).int32(e.strategy),""!==e.referencePrice&&t.uint32(50).string(e.referencePrice),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",subaccountId:"",baseAmount:"",quoteAmount:"",strategy:0,referencePrice:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.subaccountId=n.string();break;case 3:a.baseAmount=n.string();break;case 4:a.quoteAmount=n.string();break;case 5:a.strategy=n.int32();break;case 6:a.referencePrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):"",subaccountId:RO(e.subaccountId)?String(e.subaccountId):"",baseAmount:RO(e.baseAmount)?String(e.baseAmount):"",quoteAmount:RO(e.quoteAmount)?String(e.quoteAmount):"",strategy:RO(e.strategy)?hE(e.strategy):0,referencePrice:RO(e.referencePrice)?String(e.referencePrice):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.baseAmount&&(t.baseAmount=e.baseAmount),void 0!==e.quoteAmount&&(t.quoteAmount=e.quoteAmount),void 0!==e.strategy&&(t.strategy=yE(e.strategy)),void 0!==e.referencePrice&&(t.referencePrice=e.referencePrice),t},create:function(e){return sC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s={marketId:"",subaccountId:"",baseAmount:"",quoteAmount:"",strategy:0,referencePrice:""};return s.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",s.subaccountId=null!==(n=e.subaccountId)&&void 0!==n?n:"",s.baseAmount=null!==(r=e.baseAmount)&&void 0!==r?r:"",s.quoteAmount=null!==(a=e.quoteAmount)&&void 0!==a?a:"",s.strategy=null!==(i=e.strategy)&&void 0!==i?i:0,s.referencePrice=null!==(o=e.referencePrice)&&void 0!==o?o:"",s}},cC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.subaccountId&&t.uint32(18).string(e.subaccountId),""!==e.quoteAmount&&t.uint32(26).string(e.quoteAmount),0!==e.strategy&&t.uint32(32).int32(e.strategy),""!==e.referencePrice&&t.uint32(42).string(e.referencePrice),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",subaccountId:"",quoteAmount:"",strategy:0,referencePrice:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.subaccountId=n.string();break;case 3:a.quoteAmount=n.string();break;case 4:a.strategy=n.int32();break;case 5:a.referencePrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):"",subaccountId:RO(e.subaccountId)?String(e.subaccountId):"",quoteAmount:RO(e.quoteAmount)?String(e.quoteAmount):"",strategy:RO(e.strategy)?hE(e.strategy):0,referencePrice:RO(e.referencePrice)?String(e.referencePrice):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.quoteAmount&&(t.quoteAmount=e.quoteAmount),void 0!==e.strategy&&(t.strategy=yE(e.strategy)),void 0!==e.referencePrice&&(t.referencePrice=e.referencePrice),t},create:function(e){return cC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={marketId:"",subaccountId:"",quoteAmount:"",strategy:0,referencePrice:""};return o.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",o.subaccountId=null!==(n=e.subaccountId)&&void 0!==n?n:"",o.quoteAmount=null!==(r=e.quoteAmount)&&void 0!==r?r:"",o.strategy=null!==(a=e.strategy)&&void 0!==a?a:0,o.referencePrice=null!==(i=e.referencePrice)&&void 0!==i?i:"",o}},uC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.subaccountId&&t.uint32(18).string(e.subaccountId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",subaccountId:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.subaccountId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):"",subaccountId:RO(e.subaccountId)?String(e.subaccountId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),t},create:function(e){return uC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",subaccountId:""};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.subaccountId=null!==(n=e.subaccountId)&&void 0!==n?n:"",r}},dC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.accountAddress&&t.uint32(18).string(e.accountAddress),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",accountAddress:""};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.accountAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):"",accountAddress:RO(e.accountAddress)?String(e.accountAddress):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.accountAddress&&(t.accountAddress=e.accountAddress),t},create:function(e){return dC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={marketId:"",accountAddress:""};return r.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",r.accountAddress=null!==(n=e.accountAddress)&&void 0!==n?n:"",r}},fC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.price&&t.uint32(10).string(e.price),""!==e.quantity&&t.uint32(18).string(e.quantity),""!==e.margin&&t.uint32(26).string(e.margin),""!==e.fillable&&t.uint32(34).string(e.fillable),!0===e.isBuy&&t.uint32(40).bool(e.isBuy),""!==e.orderHash&&t.uint32(50).string(e.orderHash),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={price:"",quantity:"",margin:"",fillable:"",isBuy:!1,orderHash:""};n.pos>>3){case 1:a.price=n.string();break;case 2:a.quantity=n.string();break;case 3:a.margin=n.string();break;case 4:a.fillable=n.string();break;case 5:a.isBuy=n.bool();break;case 6:a.orderHash=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{price:RO(e.price)?String(e.price):"",quantity:RO(e.quantity)?String(e.quantity):"",margin:RO(e.margin)?String(e.margin):"",fillable:RO(e.fillable)?String(e.fillable):"",isBuy:!!RO(e.isBuy)&&Boolean(e.isBuy),orderHash:RO(e.orderHash)?String(e.orderHash):""}},toJSON:function(e){var t={};return void 0!==e.price&&(t.price=e.price),void 0!==e.quantity&&(t.quantity=e.quantity),void 0!==e.margin&&(t.margin=e.margin),void 0!==e.fillable&&(t.fillable=e.fillable),void 0!==e.isBuy&&(t.isBuy=e.isBuy),void 0!==e.orderHash&&(t.orderHash=e.orderHash),t},create:function(e){return fC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s={price:"",quantity:"",margin:"",fillable:"",isBuy:!1,orderHash:""};return s.price=null!==(t=e.price)&&void 0!==t?t:"",s.quantity=null!==(n=e.quantity)&&void 0!==n?n:"",s.margin=null!==(r=e.margin)&&void 0!==r?r:"",s.fillable=null!==(a=e.fillable)&&void 0!==a?a:"",s.isBuy=null!==(i=e.isBuy)&&void 0!==i&&i,s.orderHash=null!==(o=e.orderHash)&&void 0!==o?o:"",s}},lC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.orders);try{for(r.s();!(t=r.n()).done;){var a=t.value;fC.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={orders:[]};n.pos>>3==1?a.orders.push(fC.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return fC.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.orders?t.orders=e.orders.map((function(e){return e?fC.toJSON(e):void 0})):t.orders=[],t},create:function(e){return lC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={orders:[]};return n.orders=(null===(t=e.orders)||void 0===t?void 0:t.map((function(e){return fC.fromPartial(e)})))||[],n}},bC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.orders);try{for(r.s();!(t=r.n()).done;){var a=t.value;fC.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={orders:[]};n.pos>>3==1?a.orders.push(fC.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return fC.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.orders?t.orders=e.orders.map((function(e){return e?fC.toJSON(e):void 0})):t.orders=[],t},create:function(e){return bC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={orders:[]};return n.orders=(null===(t=e.orders)||void 0===t?void 0:t.map((function(e){return fC.fromPartial(e)})))||[],n}},pC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();""!==e.marketId&&t.uint32(10).string(e.marketId),""!==e.subaccountId&&t.uint32(18).string(e.subaccountId);var n,r=(0,ha.Z)(e.orderHashes);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.uint32(26).string(a)}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",subaccountId:"",orderHashes:[]};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.subaccountId=n.string();break;case 3:a.orderHashes.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):"",subaccountId:RO(e.subaccountId)?String(e.subaccountId):"",orderHashes:Array.isArray(null==e?void 0:e.orderHashes)?e.orderHashes.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),e.orderHashes?t.orderHashes=e.orderHashes.map((function(e){return e})):t.orderHashes=[],t},create:function(e){return pC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a={marketId:"",subaccountId:"",orderHashes:[]};return a.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",a.subaccountId=null!==(n=e.subaccountId)&&void 0!==n?n:"",a.orderHashes=(null===(r=e.orderHashes)||void 0===r?void 0:r.map((function(e){return e})))||[],a}},hC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.orders);try{for(r.s();!(t=r.n()).done;){var a=t.value;fC.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={orders:[]};n.pos>>3==1?a.orders.push(fC.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return fC.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.orders?t.orders=e.orders.map((function(e){return e?fC.toJSON(e):void 0})):t.orders=[],t},create:function(e){return hC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={orders:[]};return n.orders=(null===(t=e.orders)||void 0===t?void 0:t.map((function(e){return fC.fromPartial(e)})))||[],n}},yC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.status&&t.uint32(10).string(e.status),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={status:""};n.pos>>3==1?a.status=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{status:RO(e.status)?String(e.status):""}},toJSON:function(e){var t={};return void 0!==e.status&&(t.status=e.status),t},create:function(e){return yC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={status:""};return n.status=null!==(t=e.status)&&void 0!==t?t:"",n}},mC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.price&&t.uint32(10).string(e.price),""!==e.quantity&&t.uint32(18).string(e.quantity),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={price:"",quantity:""};n.pos>>3){case 1:a.price=n.string();break;case 2:a.quantity=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{price:RO(e.price)?String(e.price):"",quantity:RO(e.quantity)?String(e.quantity):""}},toJSON:function(e){var t={};return void 0!==e.price&&(t.price=e.price),void 0!==e.quantity&&(t.quantity=e.quantity),t},create:function(e){return mC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={price:"",quantity:""};return r.price=null!==(t=e.price)&&void 0!==t?t:"",r.quantity=null!==(n=e.quantity)&&void 0!==n?n:"",r}},vC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.marketInfo&&bS.encode(e.marketInfo,t.uint32(10).fork()).ldelim(),void 0!==e.fundingInfo&&pS.encode(e.fundingInfo,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketInfo:void 0,fundingInfo:void 0};n.pos>>3){case 1:a.marketInfo=bS.decode(n,n.uint32());break;case 2:a.fundingInfo=pS.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketInfo:RO(e.marketInfo)?bS.fromJSON(e.marketInfo):void 0,fundingInfo:RO(e.fundingInfo)?pS.fromJSON(e.fundingInfo):void 0}},toJSON:function(e){var t={};return void 0!==e.marketInfo&&(t.marketInfo=e.marketInfo?bS.toJSON(e.marketInfo):void 0),void 0!==e.fundingInfo&&(t.fundingInfo=e.fundingInfo?pS.toJSON(e.fundingInfo):void 0),t},create:function(e){return vC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={marketInfo:void 0,fundingInfo:void 0};return t.marketInfo=void 0!==e.marketInfo&&null!==e.marketInfo?bS.fromPartial(e.marketInfo):void 0,t.fundingInfo=void 0!==e.fundingInfo&&null!==e.fundingInfo?pS.fromPartial(e.fundingInfo):void 0,t}},gC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.market&&dS.encode(e.market,t.uint32(10).fork()).ldelim(),void 0!==e.perpetualInfo&&vC.encode(e.perpetualInfo,t.uint32(18).fork()).ldelim(),void 0!==e.futuresInfo&&lS.encode(e.futuresInfo,t.uint32(26).fork()).ldelim(),""!==e.markPrice&&t.uint32(34).string(e.markPrice),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={market:void 0,perpetualInfo:void 0,futuresInfo:void 0,markPrice:""};n.pos>>3){case 1:a.market=dS.decode(n,n.uint32());break;case 2:a.perpetualInfo=vC.decode(n,n.uint32());break;case 3:a.futuresInfo=lS.decode(n,n.uint32());break;case 4:a.markPrice=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{market:RO(e.market)?dS.fromJSON(e.market):void 0,perpetualInfo:RO(e.perpetualInfo)?vC.fromJSON(e.perpetualInfo):void 0,futuresInfo:RO(e.futuresInfo)?lS.fromJSON(e.futuresInfo):void 0,markPrice:RO(e.markPrice)?String(e.markPrice):""}},toJSON:function(e){var t={};return void 0!==e.market&&(t.market=e.market?dS.toJSON(e.market):void 0),void 0!==e.perpetualInfo&&(t.perpetualInfo=e.perpetualInfo?vC.toJSON(e.perpetualInfo):void 0),void 0!==e.futuresInfo&&(t.futuresInfo=e.futuresInfo?lS.toJSON(e.futuresInfo):void 0),void 0!==e.markPrice&&(t.markPrice=e.markPrice),t},create:function(e){return gC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={market:void 0,perpetualInfo:void 0,futuresInfo:void 0,markPrice:""};return n.market=void 0!==e.market&&null!==e.market?dS.fromPartial(e.market):void 0,n.perpetualInfo=void 0!==e.perpetualInfo&&null!==e.perpetualInfo?vC.fromPartial(e.perpetualInfo):void 0,n.futuresInfo=void 0!==e.futuresInfo&&null!==e.futuresInfo?lS.fromPartial(e.futuresInfo):void 0,n.markPrice=null!==(t=e.markPrice)&&void 0!==t?t:"",n}},AC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.markets);try{for(r.s();!(t=r.n()).done;){var a=t.value;gC.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={markets:[]};n.pos>>3==1?a.markets.push(gC.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{markets:Array.isArray(null==e?void 0:e.markets)?e.markets.map((function(e){return gC.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.markets?t.markets=e.markets.map((function(e){return e?gC.toJSON(e):void 0})):t.markets=[],t},create:function(e){return AC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={markets:[]};return n.markets=(null===(t=e.markets)||void 0===t?void 0:t.map((function(e){return gC.fromPartial(e)})))||[],n}},wC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return wC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},xC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.market&&gC.encode(e.market,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={market:void 0};n.pos>>3==1?a.market=gC.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{market:RO(e.market)?gC.fromJSON(e.market):void 0}},toJSON:function(e){var t={};return void 0!==e.market&&(t.market=e.market?gC.toJSON(e.market):void 0),t},create:function(e){return xC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={market:void 0};return t.market=void 0!==e.market&&null!==e.market?gC.fromPartial(e.market):void 0,t}},_C={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return _C.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},kC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.address&&t.uint32(10).string(e.address),""!==e.subaccountId&&t.uint32(18).string(e.subaccountId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={address:"",subaccountId:""};n.pos>>3){case 1:a.address=n.string();break;case 2:a.subaccountId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{address:RO(e.address)?String(e.address):"",subaccountId:RO(e.subaccountId)?String(e.subaccountId):""}},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),t},create:function(e){return kC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={address:"",subaccountId:""};return r.address=null!==(t=e.address)&&void 0!==t?t:"",r.subaccountId=null!==(n=e.subaccountId)&&void 0!==n?n:"",r}},IC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:""};n.pos>>3==1?a.subaccountId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{subaccountId:RO(e.subaccountId)?String(e.subaccountId):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),t},create:function(e){return IC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={subaccountId:""};return n.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",n}},SC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:""};n.pos>>3==1?a.subaccountId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{subaccountId:RO(e.subaccountId)?String(e.subaccountId):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),t},create:function(e){return SC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={subaccountId:""};return n.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",n}},EC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.marketId&&t.uint32(18).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",marketId:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.marketId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:RO(e.subaccountId)?String(e.subaccountId):"",marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return EC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",marketId:""};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.marketId=null!==(n=e.marketId)&&void 0!==n?n:"",r}},CC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.marketId&&t.uint32(18).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",marketId:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.marketId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:RO(e.subaccountId)?String(e.subaccountId):"",marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return CC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",marketId:""};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.marketId=null!==(n=e.marketId)&&void 0!==n?n:"",r}},TC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:""};n.pos>>3==1?a.subaccountId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{subaccountId:RO(e.subaccountId)?String(e.subaccountId):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),t},create:function(e){return TC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={subaccountId:""};return n.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",n}},OC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.state);try{for(r.s();!(t=r.n()).done;){var a=t.value;uE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={state:[]};n.pos>>3==1?a.state.push(uE.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{state:Array.isArray(null==e?void 0:e.state)?e.state.map((function(e){return uE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.state?t.state=e.state.map((function(e){return e?uE.toJSON(e):void 0})):t.state=[],t},create:function(e){return OC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={state:[]};return n.state=(null===(t=e.state)||void 0===t?void 0:t.map((function(e){return uE.fromPartial(e)})))||[],n}},PC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.state&&OS.encode(e.state,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={state:void 0};n.pos>>3==1?a.state=OS.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{state:RO(e.state)?OS.fromJSON(e.state):void 0}},toJSON:function(e){var t={};return void 0!==e.state&&(t.state=e.state?OS.toJSON(e.state):void 0),t},create:function(e){return PC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={state:void 0};return t.state=void 0!==e.state&&null!==e.state?OS.fromPartial(e.state):void 0,t}},MC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return!0===e.isLong&&t.uint32(8).bool(e.isLong),""!==e.quantity&&t.uint32(18).string(e.quantity),""!==e.entryPrice&&t.uint32(26).string(e.entryPrice),""!==e.effectiveMargin&&t.uint32(34).string(e.effectiveMargin),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={isLong:!1,quantity:"",entryPrice:"",effectiveMargin:""};n.pos>>3){case 1:a.isLong=n.bool();break;case 2:a.quantity=n.string();break;case 3:a.entryPrice=n.string();break;case 4:a.effectiveMargin=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{isLong:!!RO(e.isLong)&&Boolean(e.isLong),quantity:RO(e.quantity)?String(e.quantity):"",entryPrice:RO(e.entryPrice)?String(e.entryPrice):"",effectiveMargin:RO(e.effectiveMargin)?String(e.effectiveMargin):""}},toJSON:function(e){var t={};return void 0!==e.isLong&&(t.isLong=e.isLong),void 0!==e.quantity&&(t.quantity=e.quantity),void 0!==e.entryPrice&&(t.entryPrice=e.entryPrice),void 0!==e.effectiveMargin&&(t.effectiveMargin=e.effectiveMargin),t},create:function(e){return MC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={isLong:!1,quantity:"",entryPrice:"",effectiveMargin:""};return i.isLong=null!==(t=e.isLong)&&void 0!==t&&t,i.quantity=null!==(n=e.quantity)&&void 0!==n?n:"",i.entryPrice=null!==(r=e.entryPrice)&&void 0!==r?r:"",i.effectiveMargin=null!==(a=e.effectiveMargin)&&void 0!==a?a:"",i}},BC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.state&&MC.encode(e.state,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={state:void 0};n.pos>>3==1?a.state=MC.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{state:RO(e.state)?MC.fromJSON(e.state):void 0}},toJSON:function(e){var t={};return void 0!==e.state&&(t.state=e.state?MC.toJSON(e.state):void 0),t},create:function(e){return BC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={state:void 0};return t.state=void 0!==e.state&&null!==e.state?MC.fromPartial(e.state):void 0,t}},NC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return NC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},RC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.info&&bS.encode(e.info,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={info:void 0};n.pos>>3==1?a.info=bS.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{info:RO(e.info)?bS.fromJSON(e.info):void 0}},toJSON:function(e){var t={};return void 0!==e.info&&(t.info=e.info?bS.toJSON(e.info):void 0),t},create:function(e){return RC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={info:void 0};return t.info=void 0!==e.info&&null!==e.info?bS.fromPartial(e.info):void 0,t}},DC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return DC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},jC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.info&&lS.encode(e.info,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={info:void 0};n.pos>>3==1?a.info=lS.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{info:RO(e.info)?lS.fromJSON(e.info):void 0}},toJSON:function(e){var t={};return void 0!==e.info&&(t.info=e.info?lS.toJSON(e.info):void 0),t},create:function(e){return jC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={info:void 0};return t.info=void 0!==e.info&&null!==e.info?lS.fromPartial(e.info):void 0,t}},UC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return UC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},LC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.state&&pS.encode(e.state,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={state:void 0};n.pos>>3==1?a.state=pS.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{state:RO(e.state)?pS.fromJSON(e.state):void 0}},toJSON:function(e){var t={};return void 0!==e.state&&(t.state=e.state?pS.toJSON(e.state):void 0),t},create:function(e){return LC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={state:void 0};return t.state=void 0!==e.state&&null!==e.state?pS.fromPartial(e.state):void 0,t}},FC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.metadata);try{for(r.s();!(t=r.n()).done;){var a=t.value;AE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={metadata:[]};n.pos>>3==1?a.metadata.push(AE.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{metadata:Array.isArray(null==e?void 0:e.metadata)?e.metadata.map((function(e){return AE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.metadata?t.metadata=e.metadata.map((function(e){return e?AE.toJSON(e):void 0})):t.metadata=[],t},create:function(e){return FC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={metadata:[]};return n.metadata=(null===(t=e.metadata)||void 0===t?void 0:t.map((function(e){return AE.fromPartial(e)})))||[],n}},ZC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return 0!==e.nonce&&t.uint32(8).uint32(e.nonce),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={nonce:0};n.pos>>3==1?a.nonce=n.uint32():n.skipType(7&i)}return a},fromJSON:function(e){return{nonce:RO(e.nonce)?Number(e.nonce):0}},toJSON:function(e){var t={};return void 0!==e.nonce&&(t.nonce=Math.round(e.nonce)),t},create:function(e){return ZC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={nonce:0};return n.nonce=null!==(t=e.nonce)&&void 0!==t?t:0,n}},HC={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create()},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.state&&XS.encode(e.state,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={state:void 0};n.pos>>3==1?a.state=XS.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{state:RO(e.state)?XS.fromJSON(e.state):void 0}},toJSON:function(e){var t={};return void 0!==e.state&&(t.state=e.state?XS.toJSON(e.state):void 0),t},create:function(e){return zC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={state:void 0};return t.state=void 0!==e.state&&null!==e.state?XS.fromPartial(e.state):void 0,t}},QC={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create()},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.state);try{for(r.s();!(t=r.n()).done;){var a=t.value;uE.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={state:[]};n.pos>>3==1?a.state.push(uE.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{state:Array.isArray(null==e?void 0:e.state)?e.state.map((function(e){return uE.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.state?t.state=e.state.map((function(e){return e?uE.toJSON(e):void 0})):t.state=[],t},create:function(e){return qC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={state:[]};return n.state=(null===(t=e.state)||void 0===t?void 0:t.map((function(e){return uE.fromPartial(e)})))||[],n}},VC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.accounts);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}return"0"!==e.pendingPoolTimestamp&&n.uint32(16).int64(e.pendingPoolTimestamp),n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={accounts:[],pendingPoolTimestamp:"0"};n.pos>>3){case 1:a.accounts.push(n.string());break;case 2:a.pendingPoolTimestamp=NO(n.int64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{accounts:Array.isArray(null==e?void 0:e.accounts)?e.accounts.map((function(e){return String(e)})):[],pendingPoolTimestamp:RO(e.pendingPoolTimestamp)?String(e.pendingPoolTimestamp):"0"}},toJSON:function(e){var t={};return e.accounts?t.accounts=e.accounts.map((function(e){return e})):t.accounts=[],void 0!==e.pendingPoolTimestamp&&(t.pendingPoolTimestamp=e.pendingPoolTimestamp),t},create:function(e){return VC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={accounts:[],pendingPoolTimestamp:"0"};return r.accounts=(null===(t=e.accounts)||void 0===t?void 0:t.map((function(e){return e})))||[],r.pendingPoolTimestamp=null!==(n=e.pendingPoolTimestamp)&&void 0!==n?n:"0",r}},JC={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.accountTradeRewardPoints);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={accountTradeRewardPoints:[]};n.pos>>3==1?a.accountTradeRewardPoints.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){return{accountTradeRewardPoints:Array.isArray(null==e?void 0:e.accountTradeRewardPoints)?e.accountTradeRewardPoints.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return e.accountTradeRewardPoints?t.accountTradeRewardPoints=e.accountTradeRewardPoints.map((function(e){return e})):t.accountTradeRewardPoints=[],t},create:function(e){return JC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={accountTradeRewardPoints:[]};return n.accountTradeRewardPoints=(null===(t=e.accountTradeRewardPoints)||void 0===t?void 0:t.map((function(e){return e})))||[],n}},KC={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create()},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();void 0!==e.tradingRewardCampaignInfo&&NS.encode(e.tradingRewardCampaignInfo,t.uint32(10).fork()).ldelim();var n,r=(0,ha.Z)(e.tradingRewardPoolCampaignSchedule);try{for(r.s();!(n=r.n()).done;){var a=n.value;BS.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}""!==e.totalTradeRewardPoints&&t.uint32(26).string(e.totalTradeRewardPoints);var i,o=(0,ha.Z)(e.pendingTradingRewardPoolCampaignSchedule);try{for(o.s();!(i=o.n()).done;){var s=i.value;BS.encode(s,t.uint32(34).fork()).ldelim()}}catch(e){o.e(e)}finally{o.f()}var c,u=(0,ha.Z)(e.pendingTotalTradeRewardPoints);try{for(u.s();!(c=u.n()).done;){var d=c.value;t.uint32(42).string(d)}}catch(e){u.e(e)}finally{u.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={tradingRewardCampaignInfo:void 0,tradingRewardPoolCampaignSchedule:[],totalTradeRewardPoints:"",pendingTradingRewardPoolCampaignSchedule:[],pendingTotalTradeRewardPoints:[]};n.pos>>3){case 1:a.tradingRewardCampaignInfo=NS.decode(n,n.uint32());break;case 2:a.tradingRewardPoolCampaignSchedule.push(BS.decode(n,n.uint32()));break;case 3:a.totalTradeRewardPoints=n.string();break;case 4:a.pendingTradingRewardPoolCampaignSchedule.push(BS.decode(n,n.uint32()));break;case 5:a.pendingTotalTradeRewardPoints.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{tradingRewardCampaignInfo:RO(e.tradingRewardCampaignInfo)?NS.fromJSON(e.tradingRewardCampaignInfo):void 0,tradingRewardPoolCampaignSchedule:Array.isArray(null==e?void 0:e.tradingRewardPoolCampaignSchedule)?e.tradingRewardPoolCampaignSchedule.map((function(e){return BS.fromJSON(e)})):[],totalTradeRewardPoints:RO(e.totalTradeRewardPoints)?String(e.totalTradeRewardPoints):"",pendingTradingRewardPoolCampaignSchedule:Array.isArray(null==e?void 0:e.pendingTradingRewardPoolCampaignSchedule)?e.pendingTradingRewardPoolCampaignSchedule.map((function(e){return BS.fromJSON(e)})):[],pendingTotalTradeRewardPoints:Array.isArray(null==e?void 0:e.pendingTotalTradeRewardPoints)?e.pendingTotalTradeRewardPoints.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.tradingRewardCampaignInfo&&(t.tradingRewardCampaignInfo=e.tradingRewardCampaignInfo?NS.toJSON(e.tradingRewardCampaignInfo):void 0),e.tradingRewardPoolCampaignSchedule?t.tradingRewardPoolCampaignSchedule=e.tradingRewardPoolCampaignSchedule.map((function(e){return e?BS.toJSON(e):void 0})):t.tradingRewardPoolCampaignSchedule=[],void 0!==e.totalTradeRewardPoints&&(t.totalTradeRewardPoints=e.totalTradeRewardPoints),e.pendingTradingRewardPoolCampaignSchedule?t.pendingTradingRewardPoolCampaignSchedule=e.pendingTradingRewardPoolCampaignSchedule.map((function(e){return e?BS.toJSON(e):void 0})):t.pendingTradingRewardPoolCampaignSchedule=[],e.pendingTotalTradeRewardPoints?t.pendingTotalTradeRewardPoints=e.pendingTotalTradeRewardPoints.map((function(e){return e})):t.pendingTotalTradeRewardPoints=[],t},create:function(e){return GC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={tradingRewardCampaignInfo:void 0,tradingRewardPoolCampaignSchedule:[],totalTradeRewardPoints:"",pendingTradingRewardPoolCampaignSchedule:[],pendingTotalTradeRewardPoints:[]};return i.tradingRewardCampaignInfo=void 0!==e.tradingRewardCampaignInfo&&null!==e.tradingRewardCampaignInfo?NS.fromPartial(e.tradingRewardCampaignInfo):void 0,i.tradingRewardPoolCampaignSchedule=(null===(t=e.tradingRewardPoolCampaignSchedule)||void 0===t?void 0:t.map((function(e){return BS.fromPartial(e)})))||[],i.totalTradeRewardPoints=null!==(n=e.totalTradeRewardPoints)&&void 0!==n?n:"",i.pendingTradingRewardPoolCampaignSchedule=(null===(r=e.pendingTradingRewardPoolCampaignSchedule)||void 0===r?void 0:r.map((function(e){return BS.fromPartial(e)})))||[],i.pendingTotalTradeRewardPoints=(null===(a=e.pendingTotalTradeRewardPoints)||void 0===a?void 0:a.map((function(e){return e})))||[],i}},WC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.account&&t.uint32(10).string(e.account),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={account:""};n.pos>>3==1?a.account=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{account:RO(e.account)?String(e.account):""}},toJSON:function(e){var t={};return void 0!==e.account&&(t.account=e.account),t},create:function(e){return WC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={account:""};return n.account=null!==(t=e.account)&&void 0!==t?t:"",n}},YC={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return!0===e.isOptedOut&&t.uint32(8).bool(e.isOptedOut),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={isOptedOut:!1};n.pos>>3==1?a.isOptedOut=n.bool():n.skipType(7&i)}return a},fromJSON:function(e){return{isOptedOut:!!RO(e.isOptedOut)&&Boolean(e.isOptedOut)}},toJSON:function(e){var t={};return void 0!==e.isOptedOut&&(t.isOptedOut=e.isOptedOut),t},create:function(e){return YC.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={isOptedOut:!1};return n.isOptedOut=null!==(t=e.isOptedOut)&&void 0!==t&&t,n}},XC={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create()},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.accounts);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={accounts:[]};n.pos>>3==1?a.accounts.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){return{accounts:Array.isArray(null==e?void 0:e.accounts)?e.accounts.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return e.accounts?t.accounts=e.accounts.map((function(e){return e})):t.accounts=[],t},create:function(e){return $C.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={accounts:[]};return n.accounts=(null===(t=e.accounts)||void 0===t?void 0:t.map((function(e){return e})))||[],n}},eT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.account&&t.uint32(10).string(e.account),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={account:""};n.pos>>3==1?a.account=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{account:RO(e.account)?String(e.account):""}},toJSON:function(e){var t={};return void 0!==e.account&&(t.account=e.account),t},create:function(e){return eT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={account:""};return n.account=null!==(t=e.account)&&void 0!==t?t:"",n}},tT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return"0"!==e.tierLevel&&t.uint32(8).uint64(e.tierLevel),void 0!==e.accountInfo&&RS.encode(e.accountInfo,t.uint32(18).fork()).ldelim(),void 0!==e.accountTtl&&jS.encode(e.accountTtl,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={tierLevel:"0",accountInfo:void 0,accountTtl:void 0};n.pos>>3){case 1:a.tierLevel=NO(n.uint64());break;case 2:a.accountInfo=RS.decode(n,n.uint32());break;case 3:a.accountTtl=jS.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{tierLevel:RO(e.tierLevel)?String(e.tierLevel):"0",accountInfo:RO(e.accountInfo)?RS.fromJSON(e.accountInfo):void 0,accountTtl:RO(e.accountTtl)?jS.fromJSON(e.accountTtl):void 0}},toJSON:function(e){var t={};return void 0!==e.tierLevel&&(t.tierLevel=e.tierLevel),void 0!==e.accountInfo&&(t.accountInfo=e.accountInfo?RS.toJSON(e.accountInfo):void 0),void 0!==e.accountTtl&&(t.accountTtl=e.accountTtl?jS.toJSON(e.accountTtl):void 0),t},create:function(e){return tT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={tierLevel:"0",accountInfo:void 0,accountTtl:void 0};return n.tierLevel=null!==(t=e.tierLevel)&&void 0!==t?t:"0",n.accountInfo=void 0!==e.accountInfo&&null!==e.accountInfo?RS.fromPartial(e.accountInfo):void 0,n.accountTtl=void 0!==e.accountTtl&&null!==e.accountTtl?jS.fromPartial(e.accountTtl):void 0,n}},nT={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create()},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return void 0!==e.feeDiscountSchedule&&DS.encode(e.feeDiscountSchedule,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={feeDiscountSchedule:void 0};n.pos>>3==1?a.feeDiscountSchedule=DS.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){return{feeDiscountSchedule:RO(e.feeDiscountSchedule)?DS.fromJSON(e.feeDiscountSchedule):void 0}},toJSON:function(e){var t={};return void 0!==e.feeDiscountSchedule&&(t.feeDiscountSchedule=e.feeDiscountSchedule?DS.toJSON(e.feeDiscountSchedule):void 0),t},create:function(e){return rT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t={feeDiscountSchedule:void 0};return t.feeDiscountSchedule=void 0!==e.feeDiscountSchedule&&null!==e.feeDiscountSchedule?DS.fromPartial(e.feeDiscountSchedule):void 0,t}},aT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return"0"!==e.dustFactor&&t.uint32(8).int64(e.dustFactor),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={dustFactor:"0"};n.pos>>3==1?a.dustFactor=NO(n.int64()):n.skipType(7&i)}return a},fromJSON:function(e){return{dustFactor:RO(e.dustFactor)?String(e.dustFactor):"0"}},toJSON:function(e){var t={};return void 0!==e.dustFactor&&(t.dustFactor=e.dustFactor),t},create:function(e){return aT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={dustFactor:"0"};return n.dustFactor=null!==(t=e.dustFactor)&&void 0!==t?t:"0",n}},iT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.denom&&t.uint32(18).string(e.denom),""!==e.available&&t.uint32(26).string(e.available),""!==e.total&&t.uint32(34).string(e.total),""!==e.balanceHold&&t.uint32(42).string(e.balanceHold),""!==e.expectedTotal&&t.uint32(50).string(e.expectedTotal),""!==e.difference&&t.uint32(58).string(e.difference),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",denom:"",available:"",total:"",balanceHold:"",expectedTotal:"",difference:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.denom=n.string();break;case 3:a.available=n.string();break;case 4:a.total=n.string();break;case 5:a.balanceHold=n.string();break;case 6:a.expectedTotal=n.string();break;case 7:a.difference=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:RO(e.subaccountId)?String(e.subaccountId):"",denom:RO(e.denom)?String(e.denom):"",available:RO(e.available)?String(e.available):"",total:RO(e.total)?String(e.total):"",balanceHold:RO(e.balanceHold)?String(e.balanceHold):"",expectedTotal:RO(e.expectedTotal)?String(e.expectedTotal):"",difference:RO(e.difference)?String(e.difference):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.denom&&(t.denom=e.denom),void 0!==e.available&&(t.available=e.available),void 0!==e.total&&(t.total=e.total),void 0!==e.balanceHold&&(t.balanceHold=e.balanceHold),void 0!==e.expectedTotal&&(t.expectedTotal=e.expectedTotal),void 0!==e.difference&&(t.difference=e.difference),t},create:function(e){return iT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c={subaccountId:"",denom:"",available:"",total:"",balanceHold:"",expectedTotal:"",difference:""};return c.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",c.denom=null!==(n=e.denom)&&void 0!==n?n:"",c.available=null!==(r=e.available)&&void 0!==r?r:"",c.total=null!==(a=e.total)&&void 0!==a?a:"",c.balanceHold=null!==(i=e.balanceHold)&&void 0!==i?i:"",c.expectedTotal=null!==(o=e.expectedTotal)&&void 0!==o?o:"",c.difference=null!==(s=e.difference)&&void 0!==s?s:"",c}},oT={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.balanceMismatches);try{for(r.s();!(t=r.n()).done;){var a=t.value;iT.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={balanceMismatches:[]};n.pos>>3==1?a.balanceMismatches.push(iT.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{balanceMismatches:Array.isArray(null==e?void 0:e.balanceMismatches)?e.balanceMismatches.map((function(e){return iT.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.balanceMismatches?t.balanceMismatches=e.balanceMismatches.map((function(e){return e?iT.toJSON(e):void 0})):t.balanceMismatches=[],t},create:function(e){return oT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={balanceMismatches:[]};return n.balanceMismatches=(null===(t=e.balanceMismatches)||void 0===t?void 0:t.map((function(e){return iT.fromPartial(e)})))||[],n}},sT={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create()},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.denom&&t.uint32(18).string(e.denom),""!==e.available&&t.uint32(26).string(e.available),""!==e.total&&t.uint32(34).string(e.total),""!==e.balanceHold&&t.uint32(42).string(e.balanceHold),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",denom:"",available:"",total:"",balanceHold:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.denom=n.string();break;case 3:a.available=n.string();break;case 4:a.total=n.string();break;case 5:a.balanceHold=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:RO(e.subaccountId)?String(e.subaccountId):"",denom:RO(e.denom)?String(e.denom):"",available:RO(e.available)?String(e.available):"",total:RO(e.total)?String(e.total):"",balanceHold:RO(e.balanceHold)?String(e.balanceHold):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.denom&&(t.denom=e.denom),void 0!==e.available&&(t.available=e.available),void 0!==e.total&&(t.total=e.total),void 0!==e.balanceHold&&(t.balanceHold=e.balanceHold),t},create:function(e){return cT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o={subaccountId:"",denom:"",available:"",total:"",balanceHold:""};return o.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",o.denom=null!==(n=e.denom)&&void 0!==n?n:"",o.available=null!==(r=e.available)&&void 0!==r?r:"",o.total=null!==(a=e.total)&&void 0!==a?a:"",o.balanceHold=null!==(i=e.balanceHold)&&void 0!==i?i:"",o}},uT={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.balanceWithBalanceHolds);try{for(r.s();!(t=r.n()).done;){var a=t.value;cT.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={balanceWithBalanceHolds:[]};n.pos>>3==1?a.balanceWithBalanceHolds.push(cT.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{balanceWithBalanceHolds:Array.isArray(null==e?void 0:e.balanceWithBalanceHolds)?e.balanceWithBalanceHolds.map((function(e){return cT.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.balanceWithBalanceHolds?t.balanceWithBalanceHolds=e.balanceWithBalanceHolds.map((function(e){return e?cT.toJSON(e):void 0})):t.balanceWithBalanceHolds=[],t},create:function(e){return uT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={balanceWithBalanceHolds:[]};return n.balanceWithBalanceHolds=(null===(t=e.balanceWithBalanceHolds)||void 0===t?void 0:t.map((function(e){return cT.fromPartial(e)})))||[],n}},dT={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create()},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return"0"!==e.tier&&t.uint32(8).uint64(e.tier),"0"!==e.count&&t.uint32(16).uint64(e.count),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={tier:"0",count:"0"};n.pos>>3){case 1:a.tier=NO(n.uint64());break;case 2:a.count=NO(n.uint64());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{tier:RO(e.tier)?String(e.tier):"0",count:RO(e.count)?String(e.count):"0"}},toJSON:function(e){var t={};return void 0!==e.tier&&(t.tier=e.tier),void 0!==e.count&&(t.count=e.count),t},create:function(e){return fT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={tier:"0",count:"0"};return r.tier=null!==(t=e.tier)&&void 0!==t?t:"0",r.count=null!==(n=e.count)&&void 0!==n?n:"0",r}},lT={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.statistics);try{for(r.s();!(t=r.n()).done;){var a=t.value;fT.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={statistics:[]};n.pos>>3==1?a.statistics.push(fT.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{statistics:Array.isArray(null==e?void 0:e.statistics)?e.statistics.map((function(e){return fT.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.statistics?t.statistics=e.statistics.map((function(e){return e?fT.toJSON(e):void 0})):t.statistics=[],t},create:function(e){return lT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={statistics:[]};return n.statistics=(null===(t=e.statistics)||void 0===t?void 0:t.map((function(e){return fT.fromPartial(e)})))||[],n}},bT={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create()},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.masterAddresses);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}var i,o=(0,ha.Z)(e.derivativeAddresses);try{for(o.s();!(i=o.n()).done;){var s=i.value;n.uint32(18).string(s)}}catch(e){o.e(e)}finally{o.f()}var c,u=(0,ha.Z)(e.spotAddresses);try{for(u.s();!(c=u.n()).done;){var d=c.value;n.uint32(26).string(d)}}catch(e){u.e(e)}finally{u.f()}var f,l=(0,ha.Z)(e.cw20Addresses);try{for(l.s();!(f=l.n()).done;){var b=f.value;n.uint32(34).string(b)}}catch(e){l.e(e)}finally{l.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={masterAddresses:[],derivativeAddresses:[],spotAddresses:[],cw20Addresses:[]};n.pos>>3){case 1:a.masterAddresses.push(n.string());break;case 2:a.derivativeAddresses.push(n.string());break;case 3:a.spotAddresses.push(n.string());break;case 4:a.cw20Addresses.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{masterAddresses:Array.isArray(null==e?void 0:e.masterAddresses)?e.masterAddresses.map((function(e){return String(e)})):[],derivativeAddresses:Array.isArray(null==e?void 0:e.derivativeAddresses)?e.derivativeAddresses.map((function(e){return String(e)})):[],spotAddresses:Array.isArray(null==e?void 0:e.spotAddresses)?e.spotAddresses.map((function(e){return String(e)})):[],cw20Addresses:Array.isArray(null==e?void 0:e.cw20Addresses)?e.cw20Addresses.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return e.masterAddresses?t.masterAddresses=e.masterAddresses.map((function(e){return e})):t.masterAddresses=[],e.derivativeAddresses?t.derivativeAddresses=e.derivativeAddresses.map((function(e){return e})):t.derivativeAddresses=[],e.spotAddresses?t.spotAddresses=e.spotAddresses.map((function(e){return e})):t.spotAddresses=[],e.cw20Addresses?t.cw20Addresses=e.cw20Addresses.map((function(e){return e})):t.cw20Addresses=[],t},create:function(e){return pT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={masterAddresses:[],derivativeAddresses:[],spotAddresses:[],cw20Addresses:[]};return i.masterAddresses=(null===(t=e.masterAddresses)||void 0===t?void 0:t.map((function(e){return e})))||[],i.derivativeAddresses=(null===(n=e.derivativeAddresses)||void 0===n?void 0:n.map((function(e){return e})))||[],i.spotAddresses=(null===(r=e.spotAddresses)||void 0===r?void 0:r.map((function(e){return e})))||[],i.cw20Addresses=(null===(a=e.cw20Addresses)||void 0===a?void 0:a.map((function(e){return e})))||[],i}},hT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.vaultSubaccountId&&t.uint32(10).string(e.vaultSubaccountId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={vaultSubaccountId:""};n.pos>>3==1?a.vaultSubaccountId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{vaultSubaccountId:RO(e.vaultSubaccountId)?String(e.vaultSubaccountId):""}},toJSON:function(e){var t={};return void 0!==e.vaultSubaccountId&&(t.vaultSubaccountId=e.vaultSubaccountId),t},create:function(e){return hT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={vaultSubaccountId:""};return n.vaultSubaccountId=null!==(t=e.vaultSubaccountId)&&void 0!==t?t:"",n}},yT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return yT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},mT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return mT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},vT={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.tradeRecords);try{for(r.s();!(t=r.n()).done;){var a=t.value;LS.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={tradeRecords:[]};n.pos>>3==1?a.tradeRecords.push(LS.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{tradeRecords:Array.isArray(null==e?void 0:e.tradeRecords)?e.tradeRecords.map((function(e){return LS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.tradeRecords?t.tradeRecords=e.tradeRecords.map((function(e){return e?LS.toJSON(e):void 0})):t.tradeRecords=[],t},create:function(e){return vT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={tradeRecords:[]};return n.tradeRecords=(null===(t=e.tradeRecords)||void 0===t?void 0:t.map((function(e){return LS.fromPartial(e)})))||[],n}},gT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return"0"!==e.tradeGroupingSec&&t.uint32(8).uint64(e.tradeGroupingSec),"0"!==e.maxAge&&t.uint32(16).uint64(e.maxAge),!0===e.includeRawHistory&&t.uint32(32).bool(e.includeRawHistory),!0===e.includeMetadata&&t.uint32(40).bool(e.includeMetadata),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={tradeGroupingSec:"0",maxAge:"0",includeRawHistory:!1,includeMetadata:!1};n.pos>>3){case 1:a.tradeGroupingSec=NO(n.uint64());break;case 2:a.maxAge=NO(n.uint64());break;case 4:a.includeRawHistory=n.bool();break;case 5:a.includeMetadata=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{tradeGroupingSec:RO(e.tradeGroupingSec)?String(e.tradeGroupingSec):"0",maxAge:RO(e.maxAge)?String(e.maxAge):"0",includeRawHistory:!!RO(e.includeRawHistory)&&Boolean(e.includeRawHistory),includeMetadata:!!RO(e.includeMetadata)&&Boolean(e.includeMetadata)}},toJSON:function(e){var t={};return void 0!==e.tradeGroupingSec&&(t.tradeGroupingSec=e.tradeGroupingSec),void 0!==e.maxAge&&(t.maxAge=e.maxAge),void 0!==e.includeRawHistory&&(t.includeRawHistory=e.includeRawHistory),void 0!==e.includeMetadata&&(t.includeMetadata=e.includeMetadata),t},create:function(e){return gT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={tradeGroupingSec:"0",maxAge:"0",includeRawHistory:!1,includeMetadata:!1};return i.tradeGroupingSec=null!==(t=e.tradeGroupingSec)&&void 0!==t?t:"0",i.maxAge=null!==(n=e.maxAge)&&void 0!==n?n:"0",i.includeRawHistory=null!==(r=e.includeRawHistory)&&void 0!==r&&r,i.includeMetadata=null!==(a=e.includeMetadata)&&void 0!==a&&a,i}},AT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),void 0!==e.tradeHistoryOptions&&gT.encode(e.tradeHistoryOptions,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:"",tradeHistoryOptions:void 0};n.pos>>3){case 1:a.marketId=n.string();break;case 2:a.tradeHistoryOptions=gT.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):"",tradeHistoryOptions:RO(e.tradeHistoryOptions)?gT.fromJSON(e.tradeHistoryOptions):void 0}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),void 0!==e.tradeHistoryOptions&&(t.tradeHistoryOptions=e.tradeHistoryOptions?gT.toJSON(e.tradeHistoryOptions):void 0),t},create:function(e){return AT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:"",tradeHistoryOptions:void 0};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n.tradeHistoryOptions=void 0!==e.tradeHistoryOptions&&null!==e.tradeHistoryOptions?gT.fromPartial(e.tradeHistoryOptions):void 0,n}},wT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();""!==e.volatility&&t.uint32(10).string(e.volatility),void 0!==e.historyMetadata&&eS.encode(e.historyMetadata,t.uint32(18).fork()).ldelim();var n,r=(0,ha.Z)(e.rawHistory);try{for(r.s();!(n=r.n()).done;){var a=n.value;FS.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={volatility:"",historyMetadata:void 0,rawHistory:[]};n.pos>>3){case 1:a.volatility=n.string();break;case 2:a.historyMetadata=eS.decode(n,n.uint32());break;case 3:a.rawHistory.push(FS.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{volatility:RO(e.volatility)?String(e.volatility):"",historyMetadata:RO(e.historyMetadata)?eS.fromJSON(e.historyMetadata):void 0,rawHistory:Array.isArray(null==e?void 0:e.rawHistory)?e.rawHistory.map((function(e){return FS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.volatility&&(t.volatility=e.volatility),void 0!==e.historyMetadata&&(t.historyMetadata=e.historyMetadata?eS.toJSON(e.historyMetadata):void 0),e.rawHistory?t.rawHistory=e.rawHistory.map((function(e){return e?FS.toJSON(e):void 0})):t.rawHistory=[],t},create:function(e){return wT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={volatility:"",historyMetadata:void 0,rawHistory:[]};return r.volatility=null!==(t=e.volatility)&&void 0!==t?t:"",r.historyMetadata=void 0!==e.historyMetadata&&null!==e.historyMetadata?eS.fromPartial(e.historyMetadata):void 0,r.rawHistory=(null===(n=e.rawHistory)||void 0===n?void 0:n.map((function(e){return FS.fromPartial(e)})))||[],r}},xT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.status&&t.uint32(10).string(e.status),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={status:""};n.pos>>3==1?a.status=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{status:RO(e.status)?String(e.status):""}},toJSON:function(e){var t={};return void 0!==e.status&&(t.status=e.status),t},create:function(e){return xT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={status:""};return n.status=null!==(t=e.status)&&void 0!==t?t:"",n}},_T={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.markets);try{for(r.s();!(t=r.n()).done;){var a=t.value;fS.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={markets:[]};n.pos>>3==1?a.markets.push(fS.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{markets:Array.isArray(null==e?void 0:e.markets)?e.markets.map((function(e){return fS.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.markets?t.markets=e.markets.map((function(e){return e?fS.toJSON(e):void 0})):t.markets=[],t},create:function(e){return _T.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={markets:[]};return n.markets=(null===(t=e.markets)||void 0===t?void 0:t.map((function(e){return fS.fromPartial(e)})))||[],n}},kT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.subaccountId&&t.uint32(10).string(e.subaccountId),""!==e.marketId&&t.uint32(18).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={subaccountId:"",marketId:""};n.pos>>3){case 1:a.subaccountId=n.string();break;case 2:a.marketId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{subaccountId:RO(e.subaccountId)?String(e.subaccountId):"",marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.subaccountId&&(t.subaccountId=e.subaccountId),void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return kT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r={subaccountId:"",marketId:""};return r.subaccountId=null!==(t=e.subaccountId)&&void 0!==t?t:"",r.marketId=null!==(n=e.marketId)&&void 0!==n?n:"",r}},IT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.price&&t.uint32(10).string(e.price),""!==e.quantity&&t.uint32(18).string(e.quantity),""!==e.margin&&t.uint32(26).string(e.margin),""!==e.triggerPrice&&t.uint32(34).string(e.triggerPrice),!0===e.isBuy&&t.uint32(40).bool(e.isBuy),!0===e.isLimit&&t.uint32(48).bool(e.isLimit),""!==e.orderHash&&t.uint32(58).string(e.orderHash),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={price:"",quantity:"",margin:"",triggerPrice:"",isBuy:!1,isLimit:!1,orderHash:""};n.pos>>3){case 1:a.price=n.string();break;case 2:a.quantity=n.string();break;case 3:a.margin=n.string();break;case 4:a.triggerPrice=n.string();break;case 5:a.isBuy=n.bool();break;case 6:a.isLimit=n.bool();break;case 7:a.orderHash=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{price:RO(e.price)?String(e.price):"",quantity:RO(e.quantity)?String(e.quantity):"",margin:RO(e.margin)?String(e.margin):"",triggerPrice:RO(e.triggerPrice)?String(e.triggerPrice):"",isBuy:!!RO(e.isBuy)&&Boolean(e.isBuy),isLimit:!!RO(e.isLimit)&&Boolean(e.isLimit),orderHash:RO(e.orderHash)?String(e.orderHash):""}},toJSON:function(e){var t={};return void 0!==e.price&&(t.price=e.price),void 0!==e.quantity&&(t.quantity=e.quantity),void 0!==e.margin&&(t.margin=e.margin),void 0!==e.triggerPrice&&(t.triggerPrice=e.triggerPrice),void 0!==e.isBuy&&(t.isBuy=e.isBuy),void 0!==e.isLimit&&(t.isLimit=e.isLimit),void 0!==e.orderHash&&(t.orderHash=e.orderHash),t},create:function(e){return IT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i,o,s,c={price:"",quantity:"",margin:"",triggerPrice:"",isBuy:!1,isLimit:!1,orderHash:""};return c.price=null!==(t=e.price)&&void 0!==t?t:"",c.quantity=null!==(n=e.quantity)&&void 0!==n?n:"",c.margin=null!==(r=e.margin)&&void 0!==r?r:"",c.triggerPrice=null!==(a=e.triggerPrice)&&void 0!==a?a:"",c.isBuy=null!==(i=e.isBuy)&&void 0!==i&&i,c.isLimit=null!==(o=e.isLimit)&&void 0!==o&&o,c.orderHash=null!==(s=e.orderHash)&&void 0!==s?s:"",c}},ST={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create(),r=(0,ha.Z)(e.orders);try{for(r.s();!(t=r.n()).done;){var a=t.value;IT.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={orders:[]};n.pos>>3==1?a.orders.push(IT.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{orders:Array.isArray(null==e?void 0:e.orders)?e.orders.map((function(e){return IT.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.orders?t.orders=e.orders.map((function(e){return e?IT.toJSON(e):void 0})):t.orders=[],t},create:function(e){return ST.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={orders:[]};return n.orders=(null===(t=e.orders)||void 0===t?void 0:t.map((function(e){return IT.fromPartial(e)})))||[],n}},ET={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.marketId&&t.uint32(10).string(e.marketId),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={marketId:""};n.pos>>3==1?a.marketId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{marketId:RO(e.marketId)?String(e.marketId):""}},toJSON:function(e){var t={};return void 0!==e.marketId&&(t.marketId=e.marketId),t},create:function(e){return ET.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={marketId:""};return n.marketId=null!==(t=e.marketId)&&void 0!==t?t:"",n}},CT={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.multiplier&&t.uint32(10).string(e.multiplier),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={multiplier:""};n.pos>>3==1?a.multiplier=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{multiplier:RO(e.multiplier)?String(e.multiplier):""}},toJSON:function(e){var t={};return void 0!==e.multiplier&&(t.multiplier=e.multiplier),t},create:function(e){return CT.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n={multiplier:""};return n.multiplier=null!==(t=e.multiplier)&&void 0!==t?t:"",n}},TT=function(){function e(t){(0,ma.Z)(this,e),this.rpc=t,this.QueryExchangeParams=this.QueryExchangeParams.bind(this),this.SubaccountDeposits=this.SubaccountDeposits.bind(this),this.SubaccountDeposit=this.SubaccountDeposit.bind(this),this.ExchangeBalances=this.ExchangeBalances.bind(this),this.AggregateVolume=this.AggregateVolume.bind(this),this.AggregateVolumes=this.AggregateVolumes.bind(this),this.AggregateMarketVolume=this.AggregateMarketVolume.bind(this),this.AggregateMarketVolumes=this.AggregateMarketVolumes.bind(this),this.DenomDecimal=this.DenomDecimal.bind(this),this.DenomDecimals=this.DenomDecimals.bind(this),this.SpotMarkets=this.SpotMarkets.bind(this),this.SpotMarket=this.SpotMarket.bind(this),this.SpotOrderbook=this.SpotOrderbook.bind(this),this.TraderSpotOrders=this.TraderSpotOrders.bind(this),this.AccountAddressSpotOrders=this.AccountAddressSpotOrders.bind(this),this.SpotOrdersByHashes=this.SpotOrdersByHashes.bind(this),this.SubaccountOrders=this.SubaccountOrders.bind(this),this.TraderSpotTransientOrders=this.TraderSpotTransientOrders.bind(this),this.SpotMidPriceAndTOB=this.SpotMidPriceAndTOB.bind(this),this.DerivativeMidPriceAndTOB=this.DerivativeMidPriceAndTOB.bind(this),this.DerivativeOrderbook=this.DerivativeOrderbook.bind(this),this.TraderDerivativeOrders=this.TraderDerivativeOrders.bind(this),this.AccountAddressDerivativeOrders=this.AccountAddressDerivativeOrders.bind(this),this.DerivativeOrdersByHashes=this.DerivativeOrdersByHashes.bind(this),this.TraderDerivativeTransientOrders=this.TraderDerivativeTransientOrders.bind(this),this.DerivativeMarkets=this.DerivativeMarkets.bind(this),this.DerivativeMarket=this.DerivativeMarket.bind(this),this.DerivativeMarketAddress=this.DerivativeMarketAddress.bind(this),this.SubaccountTradeNonce=this.SubaccountTradeNonce.bind(this),this.ExchangeModuleState=this.ExchangeModuleState.bind(this),this.Positions=this.Positions.bind(this),this.SubaccountPositions=this.SubaccountPositions.bind(this),this.SubaccountPositionInMarket=this.SubaccountPositionInMarket.bind(this),this.SubaccountEffectivePositionInMarket=this.SubaccountEffectivePositionInMarket.bind(this),this.PerpetualMarketInfo=this.PerpetualMarketInfo.bind(this),this.ExpiryFuturesMarketInfo=this.ExpiryFuturesMarketInfo.bind(this),this.PerpetualMarketFunding=this.PerpetualMarketFunding.bind(this),this.SubaccountOrderMetadata=this.SubaccountOrderMetadata.bind(this),this.TradeRewardPoints=this.TradeRewardPoints.bind(this),this.PendingTradeRewardPoints=this.PendingTradeRewardPoints.bind(this),this.TradeRewardCampaign=this.TradeRewardCampaign.bind(this),this.FeeDiscountAccountInfo=this.FeeDiscountAccountInfo.bind(this),this.FeeDiscountSchedule=this.FeeDiscountSchedule.bind(this),this.BalanceMismatches=this.BalanceMismatches.bind(this),this.BalanceWithBalanceHolds=this.BalanceWithBalanceHolds.bind(this),this.FeeDiscountTierStatistics=this.FeeDiscountTierStatistics.bind(this),this.MitoVaultInfos=this.MitoVaultInfos.bind(this),this.QueryMarketIDFromVault=this.QueryMarketIDFromVault.bind(this),this.HistoricalTradeRecords=this.HistoricalTradeRecords.bind(this),this.IsOptedOutOfRewards=this.IsOptedOutOfRewards.bind(this),this.OptedOutOfRewardsAccounts=this.OptedOutOfRewardsAccounts.bind(this),this.MarketVolatility=this.MarketVolatility.bind(this),this.BinaryOptionsMarkets=this.BinaryOptionsMarkets.bind(this),this.TraderDerivativeConditionalOrders=this.TraderDerivativeConditionalOrders.bind(this),this.MarketAtomicExecutionFeeMultiplier=this.MarketAtomicExecutionFeeMultiplier.bind(this)}return(0,va.Z)(e,[{key:"QueryExchangeParams",value:function(e,t){return this.rpc.unary(PT,wE.fromPartial(e),t)}},{key:"SubaccountDeposits",value:function(e,t){return this.rpc.unary(MT,_E.fromPartial(e),t)}},{key:"SubaccountDeposit",value:function(e,t){return this.rpc.unary(BT,FE.fromPartial(e),t)}},{key:"ExchangeBalances",value:function(e,t){return this.rpc.unary(NT,SE.fromPartial(e),t)}},{key:"AggregateVolume",value:function(e,t){return this.rpc.unary(RT,CE.fromPartial(e),t)}},{key:"AggregateVolumes",value:function(e,t){return this.rpc.unary(DT,OE.fromPartial(e),t)}},{key:"AggregateMarketVolume",value:function(e,t){return this.rpc.unary(jT,ME.fromPartial(e),t)}},{key:"AggregateMarketVolumes",value:function(e,t){return this.rpc.unary(UT,UE.fromPartial(e),t)}},{key:"DenomDecimal",value:function(e,t){return this.rpc.unary(LT,NE.fromPartial(e),t)}},{key:"DenomDecimals",value:function(e,t){return this.rpc.unary(FT,DE.fromPartial(e),t)}},{key:"SpotMarkets",value:function(e,t){return this.rpc.unary(ZT,HE.fromPartial(e),t)}},{key:"SpotMarket",value:function(e,t){return this.rpc.unary(HT,QE.fromPartial(e),t)}},{key:"SpotOrderbook",value:function(e,t){return this.rpc.unary(zT,VE.fromPartial(e),t)}},{key:"TraderSpotOrders",value:function(e,t){return this.rpc.unary(QT,WE.fromPartial(e),t)}},{key:"AccountAddressSpotOrders",value:function(e,t){return this.rpc.unary(qT,YE.fromPartial(e),t)}},{key:"SpotOrdersByHashes",value:function(e,t){return this.rpc.unary(VT,KE.fromPartial(e),t)}},{key:"SubaccountOrders",value:function(e,t){return this.rpc.unary(JT,vE.fromPartial(e),t)}},{key:"TraderSpotTransientOrders",value:function(e,t){return this.rpc.unary(KT,WE.fromPartial(e),t)}},{key:"SpotMidPriceAndTOB",value:function(e,t){return this.rpc.unary(GT,tC.fromPartial(e),t)}},{key:"DerivativeMidPriceAndTOB",value:function(e,t){return this.rpc.unary(WT,rC.fromPartial(e),t)}},{key:"DerivativeOrderbook",value:function(e,t){return this.rpc.unary(YT,iC.fromPartial(e),t)}},{key:"TraderDerivativeOrders",value:function(e,t){return this.rpc.unary(XT,uC.fromPartial(e),t)}},{key:"AccountAddressDerivativeOrders",value:function(e,t){return this.rpc.unary($T,dC.fromPartial(e),t)}},{key:"DerivativeOrdersByHashes",value:function(e,t){return this.rpc.unary(eO,pC.fromPartial(e),t)}},{key:"TraderDerivativeTransientOrders",value:function(e,t){return this.rpc.unary(tO,uC.fromPartial(e),t)}},{key:"DerivativeMarkets",value:function(e,t){return this.rpc.unary(nO,yC.fromPartial(e),t)}},{key:"DerivativeMarket",value:function(e,t){return this.rpc.unary(rO,wC.fromPartial(e),t)}},{key:"DerivativeMarketAddress",value:function(e,t){return this.rpc.unary(aO,_C.fromPartial(e),t)}},{key:"SubaccountTradeNonce",value:function(e,t){return this.rpc.unary(iO,IC.fromPartial(e),t)}},{key:"ExchangeModuleState",value:function(e,t){return this.rpc.unary(oO,HC.fromPartial(e),t)}},{key:"Positions",value:function(e,t){return this.rpc.unary(sO,QC.fromPartial(e),t)}},{key:"SubaccountPositions",value:function(e,t){return this.rpc.unary(cO,SC.fromPartial(e),t)}},{key:"SubaccountPositionInMarket",value:function(e,t){return this.rpc.unary(uO,EC.fromPartial(e),t)}},{key:"SubaccountEffectivePositionInMarket",value:function(e,t){return this.rpc.unary(dO,CC.fromPartial(e),t)}},{key:"PerpetualMarketInfo",value:function(e,t){return this.rpc.unary(fO,NC.fromPartial(e),t)}},{key:"ExpiryFuturesMarketInfo",value:function(e,t){return this.rpc.unary(lO,DC.fromPartial(e),t)}},{key:"PerpetualMarketFunding",value:function(e,t){return this.rpc.unary(bO,UC.fromPartial(e),t)}},{key:"SubaccountOrderMetadata",value:function(e,t){return this.rpc.unary(pO,TC.fromPartial(e),t)}},{key:"TradeRewardPoints",value:function(e,t){return this.rpc.unary(hO,VC.fromPartial(e),t)}},{key:"PendingTradeRewardPoints",value:function(e,t){return this.rpc.unary(yO,VC.fromPartial(e),t)}},{key:"TradeRewardCampaign",value:function(e,t){return this.rpc.unary(mO,KC.fromPartial(e),t)}},{key:"FeeDiscountAccountInfo",value:function(e,t){return this.rpc.unary(vO,eT.fromPartial(e),t)}},{key:"FeeDiscountSchedule",value:function(e,t){return this.rpc.unary(gO,nT.fromPartial(e),t)}},{key:"BalanceMismatches",value:function(e,t){return this.rpc.unary(AO,aT.fromPartial(e),t)}},{key:"BalanceWithBalanceHolds",value:function(e,t){return this.rpc.unary(wO,sT.fromPartial(e),t)}},{key:"FeeDiscountTierStatistics",value:function(e,t){return this.rpc.unary(xO,dT.fromPartial(e),t)}},{key:"MitoVaultInfos",value:function(e,t){return this.rpc.unary(_O,bT.fromPartial(e),t)}},{key:"QueryMarketIDFromVault",value:function(e,t){return this.rpc.unary(kO,hT.fromPartial(e),t)}},{key:"HistoricalTradeRecords",value:function(e,t){return this.rpc.unary(IO,mT.fromPartial(e),t)}},{key:"IsOptedOutOfRewards",value:function(e,t){return this.rpc.unary(SO,WC.fromPartial(e),t)}},{key:"OptedOutOfRewardsAccounts",value:function(e,t){return this.rpc.unary(EO,XC.fromPartial(e),t)}},{key:"MarketVolatility",value:function(e,t){return this.rpc.unary(CO,AT.fromPartial(e),t)}},{key:"BinaryOptionsMarkets",value:function(e,t){return this.rpc.unary(TO,xT.fromPartial(e),t)}},{key:"TraderDerivativeConditionalOrders",value:function(e,t){return this.rpc.unary(OO,kT.fromPartial(e),t)}},{key:"MarketAtomicExecutionFeeMultiplier",value:function(e,t){return this.rpc.unary(PO,ET.fromPartial(e),t)}}]),e}(),OT={serviceName:"injective.exchange.v1beta1.Query"},PT={methodName:"QueryExchangeParams",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return wE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=xE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},MT={methodName:"SubaccountDeposits",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return _E.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=kE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},BT={methodName:"SubaccountDeposit",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return FE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=ZE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},NT={methodName:"ExchangeBalances",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return SE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=EE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},RT={methodName:"AggregateVolume",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return CE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=TE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},DT={methodName:"AggregateVolumes",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return OE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=PE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},jT={methodName:"AggregateMarketVolume",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return ME.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=BE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},UT={methodName:"AggregateMarketVolumes",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return UE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=LE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},LT={methodName:"DenomDecimal",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return NE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=RE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},FT={methodName:"DenomDecimals",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return DE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=jE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},ZT={methodName:"SpotMarkets",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return HE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=zE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},HT={methodName:"SpotMarket",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return QE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=qE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},zT={methodName:"SpotOrderbook",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return VE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=JE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},QT={methodName:"TraderSpotOrders",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return WE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=$E.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},qT={methodName:"AccountAddressSpotOrders",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return YE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=eC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},VT={methodName:"SpotOrdersByHashes",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return KE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=GE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},JT={methodName:"SubaccountOrders",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return vE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=gE.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},KT={methodName:"TraderSpotTransientOrders",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return WE.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=$E.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},GT={methodName:"SpotMidPriceAndTOB",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return tC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=nC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},WT={methodName:"DerivativeMidPriceAndTOB",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return rC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=aC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},YT={methodName:"DerivativeOrderbook",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return iC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=oC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},XT={methodName:"TraderDerivativeOrders",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return uC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=lC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},$T={methodName:"AccountAddressDerivativeOrders",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return dC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=bC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},eO={methodName:"DerivativeOrdersByHashes",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return pC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=hC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},tO={methodName:"TraderDerivativeTransientOrders",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return uC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=lC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},nO={methodName:"DerivativeMarkets",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return yC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=AC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},rO={methodName:"DerivativeMarket",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return wC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=xC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},aO={methodName:"DerivativeMarketAddress",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return _C.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=kC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},iO={methodName:"SubaccountTradeNonce",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return IC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=ZC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},oO={methodName:"ExchangeModuleState",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return HC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=zC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},sO={methodName:"Positions",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return QC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=qC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},cO={methodName:"SubaccountPositions",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return SC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=OC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},uO={methodName:"SubaccountPositionInMarket",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return EC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=PC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},dO={methodName:"SubaccountEffectivePositionInMarket",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return CC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=BC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},fO={methodName:"PerpetualMarketInfo",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return NC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=RC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},lO={methodName:"ExpiryFuturesMarketInfo",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return DC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=jC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},bO={methodName:"PerpetualMarketFunding",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return UC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=LC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},pO={methodName:"SubaccountOrderMetadata",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return TC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=FC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},hO={methodName:"TradeRewardPoints",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return VC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=JC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},yO={methodName:"PendingTradeRewardPoints",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return VC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=JC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},mO={methodName:"TradeRewardCampaign",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return KC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=GC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},vO={methodName:"FeeDiscountAccountInfo",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return eT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=tT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},gO={methodName:"FeeDiscountSchedule",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return nT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=rT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},AO={methodName:"BalanceMismatches",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return aT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=oT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},wO={methodName:"BalanceWithBalanceHolds",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return sT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=uT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},xO={methodName:"FeeDiscountTierStatistics",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return dT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=lT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},_O={methodName:"MitoVaultInfos",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return bT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=pT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},kO={methodName:"QueryMarketIDFromVault",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return hT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=yT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},IO={methodName:"HistoricalTradeRecords",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return mT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=vT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},SO={methodName:"IsOptedOutOfRewards",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return WC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=YC.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},EO={methodName:"OptedOutOfRewardsAccounts",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return XC.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=$C.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},CO={methodName:"MarketVolatility",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return AT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=wT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},TO={methodName:"BinaryOptionsMarkets",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return xT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=_T.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},OO={methodName:"TraderDerivativeConditionalOrders",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return kT.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=ST.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},PO={methodName:"MarketAtomicExecutionFeeMultiplier",service:OT,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return ET.encode(this).finish()}},responseType:{deserializeBinary:function(e){var t=CT.decode(e);return Object.assign(Object.assign({},t),{toObject:function(){return t}})}}},MO=function(){function e(t,n){(0,ma.Z)(this,e),this.host=t,this.options=n}return(0,va.Z)(e,[{key:"unary",value:function(e,t,n){var r,a=this,i=Object.assign(Object.assign({},t),e.requestType),o=n&&this.options.metadata?new Ge.BrowserHeaders(Object.assign(Object.assign({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise((function(t,n){Wk.grpc.unary(e,{request:i,host:a.host,metadata:o,transport:a.options.transport,debug:a.options.debug,onEnd:function(e){if(e.status===Wk.grpc.Code.OK)t(e.message.toObject());else{var r=new jO(e.statusMessage,e.status,e.trailers);n(r)}}})}))}}]),e}(),BO=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();function NO(e){return e.toString()}function RO(e){return null!=e}Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var DO,jO=function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(e,r,a){var i;return(0,ma.Z)(this,n),(i=t.call(this,e)).code=r,i.metadata=a,i}return(0,va.Z)(n)}(BO.Error);!function(e){e[e.EXCHANGE_UNSPECIFIED=0]="EXCHANGE_UNSPECIFIED",e[e.SPOT=1]="SPOT",e[e.DERIVATIVES=2]="DERIVATIVES",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(DO||(DO={}));var UO=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),UO.Error,Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error;var LO=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),LO.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var FO=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),FO.Error;var ZO=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),ZO.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var HO=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),HO.Error;var zO,QO=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),QO.Error,Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(e){e[e.CLAIM_TYPE_UNKNOWN=0]="CLAIM_TYPE_UNKNOWN",e[e.CLAIM_TYPE_DEPOSIT=1]="CLAIM_TYPE_DEPOSIT",e[e.CLAIM_TYPE_WITHDRAW=2]="CLAIM_TYPE_WITHDRAW",e[e.CLAIM_TYPE_ERC20_DEPLOYED=3]="CLAIM_TYPE_ERC20_DEPLOYED",e[e.CLAIM_TYPE_VALSET_UPDATED=4]="CLAIM_TYPE_VALSET_UPDATED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(zO||(zO={})),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var qO=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),qO.Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var VO,JO=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),JO.Error,function(e){e[e.SIGN_TYPE_UNKNOWN=0]="SIGN_TYPE_UNKNOWN",e[e.SIGN_TYPE_ORCHESTRATOR_SIGNED_MULTI_SIG_UPDATE=1]="SIGN_TYPE_ORCHESTRATOR_SIGNED_MULTI_SIG_UPDATE",e[e.SIGN_TYPE_ORCHESTRATOR_SIGNED_WITHDRAW_BATCH=2]="SIGN_TYPE_ORCHESTRATOR_SIGNED_WITHDRAW_BATCH",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(VO||(VO={})),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure());var KO,GO,WO,YO,XO,$O,eP,tP,nP,rP,aP,iP,oP,sP={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Me.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(18).string(e.contract),""!==e.msg&&t.uint32(26).string(e.msg),""!==e.funds&&t.uint32(34).string(e.funds),t},decode:function(e,t){for(var n=e instanceof Me.Reader?e:new Me.Reader(e),r=void 0===t?n.len:n.pos+t,a={sender:"",contract:"",msg:"",funds:""};n.pos>>3){case 1:a.sender=n.string();break;case 2:a.contract=n.string();break;case 3:a.msg=n.string();break;case 4:a.funds=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{sender:uP(e.sender)?String(e.sender):"",contract:uP(e.contract)?String(e.contract):"",msg:uP(e.msg)?String(e.msg):"",funds:uP(e.funds)?String(e.funds):""}},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.msg&&(t.msg=e.msg),void 0!==e.funds&&(t.funds=e.funds),t},create:function(e){return sP.fromPartial(null!=e?e:{})},fromPartial:function(e){var t,n,r,a,i={sender:"",contract:"",msg:"",funds:""};return i.sender=null!==(t=e.sender)&&void 0!==t?t:"",i.contract=null!==(n=e.contract)&&void 0!==n?n:"",i.msg=null!==(r=e.msg)&&void 0!==r?r:"",i.funds=null!==(a=e.funds)&&void 0!==a?a:"",i}},cP=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();function uP(e){return null!=e}Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),cP.Error,Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}().Error,function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}(),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),n(5886).Buffer,function(e){e[e.Mainnet=1]="Mainnet",e[e.Ropsten=3]="Ropsten",e[e.Rinkeby=4]="Rinkeby",e[e.Goerli=5]="Goerli",e[e.Kovan=42]="Kovan",e[e.Injective=888]="Injective",e[e.Ganache=1337]="Ganache",e[e.HardHat=31337]="HardHat"}(KO||(KO={})),function(e){e.Mainnet="injective-1",e.Testnet="injective-888",e.Devnet="injective-777"}(GO||(GO={})),function(e){e.MsgExec="cosmos.authz.v1beta1.MsgExec",e.MsgGrant="cosmos.authz.v1beta1.MsgGrant",e.MsgSend="cosmos.bank.v1beta1.MsgSend",e.MsgWithdrawDelegatorReward="cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward",e.MsgGrantAllowance="cosmos.feegrant.v1beta1.MsgGrantAllowance",e.MsgDepositCosmos="cosmos.gov.v1beta1.MsgDeposit",e.MsgSubmitProposal="cosmos.gov.v1beta1.MsgSubmitProposal",e.MsgVote="cosmos.gov.v1beta1.MsgVote",e.MsgUnjail="cosmos.slashing.v1beta1.MsgUnjail",e.MsgBeginRedelegate="cosmos.staking.v1beta1.MsgBeginRedelegate",e.MsgCreateValidator="cosmos.staking.v1beta1.MsgCreateValidator",e.MsgDelegate="cosmos.staking.v1beta1.MsgDelegate",e.MsgEditValidator="cosmos.staking.v1beta1.MsgEditValidator",e.MsgUndelegate="cosmos.staking.v1beta1.MsgUndelegate",e.MsgExecuteContract="cosmwasm.wasm.v1.MsgExecuteContract",e.MsgInstantiateContract="cosmwasm.wasm.v1.MsgInstantiateContract",e.MsgInstantiateContract2="cosmwasm.wasm.v1.MsgInstantiateContract2",e.MsgMigrateContract="cosmwasm.wasm.v1.MsgMigrateContract",e.MsgStoreCode="cosmwasm.wasm.v1.MsgStoreCode",e.MsgUpdateAdmin="cosmwasm.wasm.v1.MsgUpdateAdmin",e.MsgTransfer="ibc.applications.transfer.v1.MsgTransfer",e.MsgAcknowledgement="ibc.core.channel.v1.MsgAcknowledgement",e.MsgChannelOpenAck="ibc.core.channel.v1.MsgChannelOpenAck",e.MsgChannelOpenConfirm="ibc.core.channel.v1.MsgChannelOpenConfirm",e.MsgChannelOpenInit="ibc.core.channel.v1.MsgChannelOpenInit",e.MsgChannelOpenTry="ibc.core.channel.v1.MsgChannelOpenTry",e.MsgRecvPacket="ibc.core.channel.v1.MsgRecvPacket",e.MsgTimeout="ibc.core.channel.v1.MsgTimeout",e.MsgCreateClient="ibc.core.client.v1.MsgCreateClient",e.MsgUpdateClient="ibc.core.client.v1.MsgUpdateClient",e.MsgConnectionOpenAck="ibc.core.connection.v1.MsgConnectionOpenAck",e.MsgConnectionOpenConfirm="ibc.core.connection.v1.MsgConnectionOpenConfirm",e.MsgConnectionOpenInit="ibc.core.connection.v1.MsgConnectionOpenInit",e.MsgConnectionOpenTry="ibc.core.connection.v1.MsgConnectionOpenTry",e.MsgBid="injective.auction.v1beta1.MsgBid",e.MsgAdminUpdateBinaryOptionsMarket="injective.exchange.v1beta1.MsgAdminUpdateBinaryOptionsMarket",e.MsgBatchCancelDerivativeOrders="injective.exchange.v1beta1.MsgBatchCancelDerivativeOrders",e.MsgBatchCancelSpotOrders="injective.exchange.v1beta1.MsgBatchCancelSpotOrders",e.MsgBatchCreateDerivativeLimitOrders="injective.exchange.v1beta1.MsgBatchCreateDerivativeLimitOrders",e.MsgBatchCreateSpotLimitOrders="injective.exchange.v1beta1.MsgBatchCreateSpotLimitOrders",e.MsgBatchUpdateOrders="injective.exchange.v1beta1.MsgBatchUpdateOrders",e.MsgCancelBinaryOptionsOrder="injective.exchange.v1beta1.MsgCancelBinaryOptionsOrder",e.MsgCancelDerivativeOrder="injective.exchange.v1beta1.MsgCancelDerivativeOrder",e.MsgCancelSpotOrder="injective.exchange.v1beta1.MsgCancelSpotOrder",e.MsgCreateBinaryOptionsLimitOrder="injective.exchange.v1beta1.MsgCreateBinaryOptionsLimitOrder",e.MsgCreateBinaryOptionsMarketOrder="injective.exchange.v1beta1.MsgCreateBinaryOptionsMarketOrder",e.MsgCreateDerivativeLimitOrder="injective.exchange.v1beta1.MsgCreateDerivativeLimitOrder",e.MsgCreateDerivativeMarketOrder="injective.exchange.v1beta1.MsgCreateDerivativeMarketOrder",e.MsgCreateSpotLimitOrder="injective.exchange.v1beta1.MsgCreateSpotLimitOrder",e.MsgCreateSpotMarketOrder="injective.exchange.v1beta1.MsgCreateSpotMarketOrder",e.MsgDeposit="injective.exchange.v1beta1.MsgDeposit",e.MsgExternalTransfer="injective.exchange.v1beta1.MsgExternalTransfer",e.MsgIncreasePositionMargin="injective.exchange.v1beta1.MsgIncreasePositionMargin",e.MsgInstantBinaryOptionsMarketLaunch="injective.exchange.v1beta1.MsgInstantBinaryOptionsMarketLaunch",e.MsgInstantPerpetualMarketLaunch="injective.exchange.v1beta1.MsgInstantPerpetualMarketLaunch",e.MsgInstantSpotMarketLaunch="injective.exchange.v1beta1.MsgInstantSpotMarketLaunch",e.MsgReclaimLockedFunds="injective.exchange.v1beta1.MsgReclaimLockedFunds",e.MsgRewardsOptOut="injective.exchange.v1beta1.MsgRewardsOptOut",e.MsgSubaccountTransfer="injective.exchange.v1beta1.MsgSubaccountTransfer",e.MsgWithdraw="injective.exchange.v1beta1.MsgWithdraw",e.MsgCreateInsuranceFund="injective.insurance.v1beta1.MsgCreateInsuranceFund",e.MsgRequestRedemption="injective.insurance.v1beta1.MsgRequestRedemption",e.MsgUnderwrite="injective.insurance.v1beta1.MsgUnderwrite",e.MsgConfirmBatch="injective.peggy.v1.MsgConfirmBatch",e.MsgDepositClaim="injective.peggy.v1.MsgDepositClaim",e.MsgERC20DeployedClaim="injective.peggy.v1.MsgERC20DeployedClaim",e.MsgRequestBatch="injective.peggy.v1.MsgRequestBatch",e.MsgSendToEth="injective.peggy.v1.MsgSendToEth",e.MsgSetOrchestratorAddresses="injective.peggy.v1.MsgSetOrchestratorAddresses",e.MsgValsetConfirm="injective.peggy.v1.MsgValsetConfirm",e.MsgValsetUpdatedClaim="injective.peggy.v1.MsgValsetUpdatedClaim",e.MsgWithdrawClaim="injective.peggy.v1.MsgWithdrawClaim",e.MsgBurn="injective.tokenfactory.v1beta1.MsgBurn",e.MsgCreateDenom="injective.tokenfactory.v1beta1.MsgCreateDenom",e.MsgMint="injective.tokenfactory.v1beta1.MsgMint",e.MsgExecuteContractCompat="injective.wasmx.v1.MsgExecuteContractCompat"}(WO||(WO={})),function(e){e.Success="success",e.Fail="fail"}(YO||(YO={})),function(e){e.Insert="insert",e.Delete="delete",e.Replace="replace",e.Update="update",e.Invalidate="invalidate"}(XO||(XO={})),function(e){e.Injective="injective-1",e.Cosmoshub="cosmoshub-4",e.Juno="juno-1",e.Osmosis="osmosis-1",e.Terra="columbus-5",e.TerraUST="columbus-5",e.Chihuahua="chihuahua-1",e.Axelar="axelar-dojo-1",e.Evmos="evmos_9001-2",e.Persistence="core-1",e.Secret="secret-4",e.Stride="stride-1",e.Crescent="crescent-1",e.Sommelier="sommelier-3",e.Canto="canto_7700-1"}($O||($O={})),function(e){e.Injective="injective-888",e.Cosmoshub="cosmoshub-testnet"}(eP||(eP={})),function(e){e.Injective="injective-777",e.Injective1="injective-777"}(tP||(tP={})),function(e){e.Market="market",e.LimitFill="limitFill",e.LimitMatchRestingOrder="limitMatchRestingOrder",e.LimitMatchNewOrder="limitMatchNewOrder"}(nP||(nP={})),function(e){e.Maker="maker",e.Taker="taker"}(rP||(rP={})),function(e){e.Buy="buy",e.Sell="sell",e.Long="long",e.Short="short"}(aP||(aP={})),function(e){e.Unfilled="unfilled",e.Booked="booked",e.PartialFilled="partial_filled",e.PartiallyFilled="partially_filled",e.Filled="filled",e.Canceled="canceled",e.Triggered="triggered"}(iP||(iP={})),function(e){e.Unspecified="unspecified",e.Buy="buy",e.Sell="sell",e.StopBuy="stop_buy",e.StopSell="stop_sell",e.TakeBuy="take_buy",e.TakeSell="take_sell",e.BuyPO="buy_po",e.SellPO="sell_po",e.BuyAtomic="buy_atomic",e.SellAtomic="sell_atomic",e.Unrecognized="unrecognized"}(oP||(oP={}));var dP,fP,lP,bP,pP,hP={feeDenom:"inj",chainId:GO.Mainnet,ethereumChainId:KO.Mainnet,env:"mainnet"},yP={feeDenom:"inj",chainId:GO.Testnet,ethereumChainId:KO.Goerli,env:"testnet"},mP={feeDenom:"inj",chainId:GO.Devnet,ethereumChainId:KO.Goerli,env:"devnet"},vP={feeDenom:"inj",chainId:GO.Devnet,ethereumChainId:KO.Goerli,env:"local"},gP={indexerApi:"https://k8s.testnet.exchange.grpc-web.injective.network",sentryGrpcApi:"https://k8s.testnet.chain.grpc-web.injective.network",tendermintApi:"https://k8s.testnet.tm.injective.network",sentryHttpApi:"https://k8s.testnet.lcd.injective.network"},AP=(0,ua.Z)({},gP),wP={indexer:"https://staging.api.injective.network",grpc:"https://staging.grpc.injective.network",rpc:"https://staging.tm.injective.network",rest:"https://staging.lcd.injective.network",chronos:"https://staging.api.injective.network",explorer:"https://staging.api.injective.network"},xP=(0,ua.Z)({},wP);(pP=dP||(dP={})).MainnetK8s="mainnetK8s",pP.MainnetLB="mainnetLB",pP.Mainnet="mainnet",pP.Staging="staging",pP.Public="public",pP.TestnetK8s="testnetK8s",pP.TestnetOld="testnetOld",pP.Testnet="testnet",pP.Devnet1="devnet1",pP.Devnet2="devnet2",pP.Devnet="devnet",pP.Local="local",fP={},(0,ca.Z)(fP,dP.MainnetK8s,{indexerApi:"https://k8s.mainnet.exchange.grpc-web.injective.network",sentryGrpcApi:"https://k8s.mainnet.chain.grpc-web.injective.network",tendermintApi:"https://k8s.mainnet.tm.injective.network",sentryHttpApi:"https://k8s.mainnet.lcd.injective.network"}),(0,ca.Z)(fP,dP.MainnetLB,{indexerApi:"https://k8s.mainnet.exchange.grpc-web.injective.network",sentryGrpcApi:"https://k8s.mainnet.chain.grpc-web.injective.network",tendermintApi:"https://k8s.mainnet.tm.injective.network",sentryHttpApi:"https://k8s.mainnet.lcd.injective.network"}),(0,ca.Z)(fP,dP.Staging,{indexerApi:"https://staging.api.injective.network",sentryGrpcApi:"https://staging.grpc.injective.network",tendermintApi:"https://staging.tm.injective.network",sentryHttpApi:"https://staging.lcd.injective.network"}),(0,ca.Z)(fP,dP.Mainnet,{indexerApi:"https://api.injective.network",sentryGrpcApi:"https://grpc.injective.network",tendermintApi:"https://tm.injective.network",sentryHttpApi:"https://lcd.injective.network"}),(0,ca.Z)(fP,dP.Public,{indexerApi:"https://public.api.injective.network",sentryGrpcApi:"https://public.grpc.injective.network",tendermintApi:"https://tm.injective.network",sentryHttpApi:"https://public.lcd.injective.network"}),(0,ca.Z)(fP,dP.Devnet,{indexerApi:"https://devnet.api.injective.dev",sentryGrpcApi:"https://devnet.grpc.injective.dev",tendermintApi:"https://devnet.tm.injective.dev",sentryHttpApi:"https://devnet.lcd.injective.dev"}),(0,ca.Z)(fP,dP.Devnet1,{indexerApi:"https://devnet-1.api.injective.dev",sentryGrpcApi:"https://devnet-1.grpc.injective.dev",tendermintApi:"https://devnet-1.tm.injective.dev",sentryHttpApi:"https://devnet-1.lcd.injective.dev"}),(0,ca.Z)(fP,dP.Devnet2,{indexerApi:"https://devnet-2.api.injective.dev",sentryGrpcApi:"https://devnet-2.grpc.injective.dev",tendermintApi:"https://devnet-2.tm.injective.dev",sentryHttpApi:"https://devnet-2.lcd.injective.dev"}),(0,ca.Z)(fP,dP.Testnet,AP),(0,ca.Z)(fP,dP.TestnetK8s,gP),(0,ca.Z)(fP,dP.TestnetOld,{indexerApi:"https://testnet.api.injective.dev",sentryGrpcApi:"https://testnet.grpc.injective.dev",tendermintApi:"https://testnet.tm.injective.dev",sentryHttpApi:"https://testnet.lcd.injective.dev"}),(0,ca.Z)(fP,dP.Local,{indexerApi:"https://localhost:4444",sentryGrpcApi:"http://localhost:9091",tendermintApi:"http://localhost:9091",sentryHttpApi:"http://localhost:9091"}),lP={},(0,ca.Z)(lP,dP.MainnetLB,{indexer:"https://k8s.global.mainnet.exchange.grpc-web.injective.network",grpc:"https://k8s.global.mainnet.chain.grpc-web.injective.network",rpc:"https://k8s.global.mainnet.tm.injective.network",rest:"https://k8s.global.mainnet.lcd.injective.network",chronos:"https://k8s.global.mainnet.chronos.grpc-web.injective.network",explorer:"https://k8s.global.mainnet.explorer.grpc-web.injective.network"}),(0,ca.Z)(lP,dP.MainnetK8s,{indexer:"https://k8s.mainnet.exchange.grpc-web.injective.network",grpc:"https://k8s.mainnet.chain.grpc-web.injective.network",rpc:"https://k8s.mainnet.tm.injective.network",rest:"https://k8s.mainnet.lcd.injective.network",chronos:"https://k8s.mainnet.chronos.grpc-web.injective.network",explorer:"https://k8s.mainnet.explorer.grpc-web.injective.network"}),(0,ca.Z)(lP,dP.Staging,wP),(0,ca.Z)(lP,dP.Mainnet,{indexer:"https://api.injective.network",grpc:"https://grpc.injective.network",rpc:"https://tm.injective.network",rest:"https://lcd.injective.network",chronos:"https://api.injective.network",explorer:"https://api.injective.network"}),(0,ca.Z)(lP,dP.Public,xP),(0,ca.Z)(lP,dP.Devnet,{indexer:"https://devnet.api.injective.dev",grpc:"https://devnet.grpc.injective.dev",rpc:"https://devnet.tm.injective.dev",rest:"https://devnet.lcd.injective.dev",chronos:"https://devnet.api.injective.dev",explorer:"https://devnet.api.injective.dev"}),(0,ca.Z)(lP,dP.Devnet1,{indexer:"https://devnet-1.api.injective.dev",grpc:"https://devnet-1.grpc.injective.dev",rpc:"https://devnet-1.tm.injective.dev",rest:"https://devnet-1.lcd.injective.dev",chronos:"https://devnet-1.api.injective.dev",explorer:"https://devnet-1.api.injective.dev"}),(0,ca.Z)(lP,dP.Devnet2,{indexer:"https://devnet-2.api.injective.dev",grpc:"https://devnet-2.grpc.injective.dev",rpc:"https://devnet-2.tm.injective.dev",rest:"https://devnet-2.lcd.injective.dev",chronos:"https://devnet-2.api.injective.dev",explorer:"https://devnet-2.api.injective.dev"}),(0,ca.Z)(lP,dP.Testnet,{indexer:"https://testnet.exchange.grpc-web.injective.network",grpc:"https://testnet.chain.grpc-web.injective.network",rpc:"https://testnet.tm.injective.network",rest:"https://testnet.lcd.injective.network",chronos:"https://testnet.exchange.grpc-web.injective.network",explorer:"https://testnet.exchange.grpc-web.injective.network"}),(0,ca.Z)(lP,dP.TestnetK8s,{indexer:"https://k8s.testnet.exchange.grpc-web.injective.network",grpc:"https://k8s.testnet.chain.grpc-web.injective.network",rpc:"https://k8s.testnet.tm.injective.network",rest:"https://k8s.testnet.lcd.injective.network",chronos:"https://k8s.testnet.exchange.grpc-web.injective.network",explorer:"https://k8s.testnet.explorer.grpc-web.injective.network"}),(0,ca.Z)(lP,dP.TestnetOld,{indexer:"https://testnet.exchange.grpc-web.injective.dev",grpc:"https://testnet.chain.grpc-web.injective.dev",rpc:"https://testnet.tm.injective.dev",rest:"https://testnet.lcd.injective.dev",chronos:"https://testnet.exchange.grpc-web.injective.dev",explorer:"https://testnet.exchange.grpc-web.injective.dev"}),(0,ca.Z)(lP,dP.Local,{indexer:"https://localhost:4444",grpc:"http://localhost:9091",rpc:"http://localhost:9091",rest:"http://localhost:9091",chronos:"https://localhost:4445",explorer:"https://localhost:4446"}),bP={},(0,ca.Z)(bP,dP.MainnetLB,hP),(0,ca.Z)(bP,dP.MainnetK8s,hP),(0,ca.Z)(bP,dP.Staging,hP),(0,ca.Z)(bP,dP.Mainnet,hP),(0,ca.Z)(bP,dP.Public,hP),(0,ca.Z)(bP,dP.Devnet,mP),(0,ca.Z)(bP,dP.Devnet1,mP),(0,ca.Z)(bP,dP.Devnet2,mP),(0,ca.Z)(bP,dP.Testnet,yP),(0,ca.Z)(bP,dP.TestnetOld,yP),(0,ca.Z)(bP,dP.TestnetK8s,yP),(0,ca.Z)(bP,dP.Local,vP);var _P,kP=n(44556),IP=(_P={},(0,ca.Z)(_P,dP.Mainnet,"inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk"),(0,ca.Z)(_P,dP.MainnetLB,"inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk"),(0,ca.Z)(_P,dP.MainnetK8s,"inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk"),(0,ca.Z)(_P,dP.Public,"inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk"),(0,ca.Z)(_P,dP.Staging,"inj14ejqjyq8um4p3xfqj74yld5waqljf88f9eneuk"),(0,ca.Z)(_P,dP.Testnet,"inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6"),(0,ca.Z)(_P,dP.TestnetK8s,"inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6"),(0,ca.Z)(_P,dP.TestnetOld,"inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6"),(0,ca.Z)(_P,dP.Devnet,"inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6"),(0,ca.Z)(_P,dP.Devnet1,"inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6"),(0,ca.Z)(_P,dP.Devnet2,"inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6"),(0,ca.Z)(_P,dP.Local,"inj1hdvy6tl89llqy3ze8lv6mz5qh66sx9enn0jxg6"),n(5886).Buffer,n(5886).Buffer,function(e){return e?(0,ua.Z)((0,ua.Z)({},e),{},{to:parseInt(e.to.toString()||"0",10),from:parseInt(e.from.toString()||"0",10),total:parseInt(e.total||"0",10)}):{to:0,from:0,total:0}});n(48028),n(5886).Buffer,n(5886).Buffer,n(72495),n(10041),n(13426),n(33193),n(41425),n(76734),n(5886).Buffer,n(5886).Buffer,n(5886).Buffer;var SP,EP=n(28422),CP=n(27154),TP=function(){return Pk()?(0,CP.ReactNativeTransport)({withCredentials:!0}):Mk()?(0,EP.NodeHttpTransport)():void 0};!function(e){e.UnBonded="UnBonded",e.UnBonding="UnBonding",e.Bonded="Bonded"}(SP||(SP={})),n(5886).Buffer,(0,ua.Z)({},S_),Bk()||Wk.grpc.setDefaultTransport(TP()),n(5886).Buffer;var OP,PP,MP=("0x".concat(new Dk(888).toString(16)),OP={EIP712Domain:[{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"}]},(0,ca.Z)(OP,"SpotOrder",[{name:"MarketId",type:"string"},{name:"OrderInfo",type:"OrderInfo"},{name:"Salt",type:"string"},{name:"OrderType",type:"string"},{name:"TriggerPrice",type:"string"}]),(0,ca.Z)(OP,"DerivativeOrder",[{name:"MarketId",type:"string"},{name:"OrderInfo",type:"OrderInfo"},{name:"OrderType",type:"string"},{name:"Margin",type:"string"},{name:"TriggerPrice",type:"string"},{name:"Salt",type:"string"}]),(0,ca.Z)(OP,"OrderInfo",[{name:"SubaccountId",type:"string"},{name:"FeeRecipient",type:"string"},{name:"Price",type:"string"},{name:"Quantity",type:"string"}]),n(5886).Buffer,n(37702),n(5886).Buffer,function(e){(0,ba.Z)(n,e);var t=(0,pa.Z)(n);function n(){return(0,ma.Z)(this,n),t.apply(this,arguments)}return(0,va.Z)(n,[{key:"toProto",value:function(){var e=this.params,t=sP.create(),n=this.getMsgObject();if(t.msg=JSON.stringify(n),t.sender=e.sender,t.contract=e.contractAddress,e.funds){var r=(Array.isArray(e.funds)?e.funds:[e.funds]).map((function(e){return"".concat(e.amount).concat(e.denom)}));t.funds=r.join(",")}else t.funds="0";return sP.fromPartial(t)}},{key:"toData",value:function(){var e=this.toProto();return(0,ua.Z)({"@type":"/injective.wasmx.v1.MsgExecuteContractCompat"},e)}},{key:"toAmino",value:function(){var e=this.toProto(),t=(0,ua.Z)((0,ua.Z)({},A_(e)),{},{msg:JSON.stringify(this.getMsgObject())});return delete t.funds_list,{type:"wasmx/MsgExecuteContractCompat",value:t}}},{key:"toWeb3",value:function(){var e=this.toAmino().value;return(0,ua.Z)({"@type":"/injective.wasmx.v1.MsgExecuteContractCompat"},e)}},{key:"toDirectSign",value:function(){return{type:"/injective.wasmx.v1.MsgExecuteContractCompat",message:this.toProto()}}},{key:"toBinary",value:function(){return sP.encode(this.toProto()).finish()}},{key:"getMsgObject",value:function(){var e=this.params;if((e.exec||e.msg)&&e.execArgs)throw new hk(new Error("Please provide only one exec|msg argument"));if(e.execArgs)return e.execArgs.toExecData();if(e.exec)return(0,ca.Z)({},e.exec.action,e.exec.msg);if(e.msg)return e.msg;throw new hk(new Error("Please provide at least one exec argument"))}}],[{key:"fromJSON",value:function(e){return new n(e)}}]),n}(Gk));!function(e){e.Sync="BROADCAST_MODE_SYNC",e.Async="BROADCAST_MODE_ASYNC",e.Block="BROADCAST_MODE_BLOCK"}(PP||(PP={})),n(5886).Buffer,n(15770),mI.SIGN_MODE_DIRECT,mI.SIGN_MODE_LEGACY_AMINO_JSON,n(49211),n(5886).Buffer,n(5886).Buffer;var BP,NP,RP,DP,jP=function(){function e(){(0,ma.Z)(this,e)}return(0,va.Z)(e,null,[{key:"accountPortfolioResponseToAccountPortfolio",value:function(t){var n=t.portfolio,r=n.subaccounts||[];return{portfolioValue:n.portfolioValue,availableBalance:n.availableBalance,lockedBalance:n.lockedBalance,unrealizedPnl:n.unrealizedPnl,subaccountsList:r.map(e.grpcSubaccountPortfolioToSubaccountPortfolio)}}},{key:"grpcSubaccountPortfolioToSubaccountPortfolio",value:function(e){return{subaccountId:e.subaccountId,availableBalance:e.availableBalance,lockedBalance:e.lockedBalance,unrealizedPnl:e.unrealizedPnl}}},{key:"grpcAccountPortfolioToAccountPortfolio",value:function(t){return{portfolioValue:t.portfolioValue,availableBalance:t.availableBalance,lockedBalance:t.lockedBalance,unrealizedPnl:t.unrealizedPnl,subaccountsList:t.subaccounts.map(e.grpcSubaccountPortfolioToSubaccountPortfolio)}}},{key:"grpcAmountToAmount",value:function(e){return{amount:e.amount,denom:e.denom}}},{key:"grpcDepositToDeposit",value:function(e){return{totalBalance:e.totalBalance,availableBalance:e.availableBalance}}},{key:"balancesResponseToBalances",value:function(t){return t.balances.map((function(t){return e.grpcBalanceToBalance(t)}))}},{key:"balanceResponseToBalance",value:function(t){return e.grpcBalanceToBalance(t.balance)}},{key:"grpcBalanceToBalance",value:function(t){var n=t.deposit;return{subaccountId:t.subaccountId,accountAddress:t.accountAddress,denom:t.denom,deposit:n?e.grpcDepositToDeposit(n):void 0}}},{key:"grpcBalancesToBalances",value:function(t){return t.map((function(t){return e.grpcBalanceToBalance(t)}))}},{key:"grpcTransferHistoryEntryToTransferHistoryEntry",value:function(t){var n=t.amount;return{transferType:t.transferType,srcSubaccountId:t.srcSubaccountId,srcSubaccountAddress:t.srcAccountAddress,dstSubaccountId:t.dstSubaccountId,dstSubaccountAddress:t.dstAccountAddress,executedAt:parseInt(t.executedAt,10),amount:n?e.grpcAmountToAmount(n):void 0}}},{key:"tradingRewardsResponseToTradingRewards",value:function(t){return t.rewards.map(e.grpcTradingRewardToTradingReward)}},{key:"grpcTradingRewardsToTradingRewards",value:function(t){return t.map(e.grpcTradingRewardToTradingReward)}},{key:"grpcTradingRewardToTradingReward",value:function(e){return{accountAddress:e.accountAddress,rewards:e.rewards.map((function(e){return{amount:e.amount,denom:e.denom}})),distributedAt:parseInt(e.distributedAt,10)}}},{key:"transferHistoryResponseToTransferHistory",value:function(t){var n=t.transfers,r=t.paging;return{transfers:n.map((function(t){return e.grpcTransferHistoryEntryToTransferHistoryEntry(t)})),pagination:IP(r)}}},{key:"grpcTransferHistoryToTransferHistory",value:function(t){return t.map((function(t){return e.grpcTransferHistoryEntryToTransferHistoryEntry(t)}))}}]),e}();!function(e){e.Market="market",e.LimitFill="limitFill",e.LimitMatchRestingOrder="limitMatchRestingOrder",e.LimitMatchNewOrder="limitMatchNewOrder"}(BP||(BP={})),function(e){e.Maker="maker",e.Taker="taker"}(NP||(NP={})),function(e){e.Buy="buy",e.Sell="sell",e.Long="long",e.Short="short"}(RP||(RP={})),function(e){e.Insert="insert",e.Delete="delete",e.Replace="replace",e.Update="update",e.Invalidate="invalidate"}(DP||(DP={}));var UP=(0,va.Z)((function e(){(0,ma.Z)(this,e)}));(0,ca.Z)(UP,"balanceStreamCallback",(function(e){var t=e.balance;return{balance:t?jP.grpcBalanceToBalance(t):void 0,operation:DP.Update,timestamp:e.timestamp}}));var LP=(0,va.Z)((function e(){(0,ma.Z)(this,e)}));(0,ca.Z)(LP,"accountPortfolioStreamCallback",(function(e){return{type:e.type,denom:e.denom,amount:e.amount,subaccountId:e.subaccountId}}));var FP=(0,va.Z)((function e(){(0,ma.Z)(this,e)}));(0,ca.Z)(FP,"bidsStreamCallback",(function(e){return{bid:{bidder:e.bidder,bidAmount:e.bidAmount,bidTimestamp:parseInt(e.timestamp,10)},operation:XO.Insert}}));var ZP=function(){function e(){(0,ma.Z)(this,e)}return(0,va.Z)(e,null,[{key:"grpcTokenMetaToTokenMeta",value:function(e){if(e)return{name:e.name,address:e.address,symbol:e.symbol,logo:e.logo,decimals:e.decimals,updatedAt:e.updatedAt,coinGeckoId:""}}},{key:"grpcPerpetualMarketInfoToPerpetualMarketInfo",value:function(e){if(e)return{hourlyFundingRateCap:e.hourlyFundingRateCap,hourlyInterestRate:e.hourlyInterestRate,nextFundingTimestamp:parseInt(e.nextFundingTimestamp,10),fundingInterval:parseInt(e.fundingInterval,10)}}},{key:"grpcPerpetualMarketFundingToPerpetualMarketFunding",value:function(e){if(e)return{cumulativeFunding:e.cumulativeFunding,cumulativePrice:e.cumulativePrice,lastTimestamp:parseInt(e.lastTimestamp,10)}}},{key:"grpcExpiryFuturesMarketInfoToExpiryFuturesMarketInfo",value:function(e){if(e)return{expirationTimestamp:parseInt(e.expirationTimestamp,10),settlementPrice:e.settlementPrice}}},{key:"marketResponseToMarket",value:function(t){var n=t.market;return e.grpcMarketToMarket(n)}},{key:"marketsResponseToMarkets",value:function(t){var n=t.markets;return e.grpcMarketsToMarkets(n)}},{key:"ordersResponseToOrders",value:function(t){var n=t.orders,r=t.paging;return{orders:e.grpcOrdersToOrders(n),pagination:IP(r)}}},{key:"orderHistoryResponseToOrderHistory",value:function(t){var n=t.orders,r=t.paging;return{orderHistory:e.grpcOrderHistoryListToOrderHistoryList(n),pagination:IP(r)}}},{key:"positionsResponseToPositions",value:function(t){var n=t.positions,r=t.paging;return{positions:e.grpcPositionsToPositions(n),pagination:IP(r)}}},{key:"tradesResponseToTrades",value:function(t){var n=t.trades,r=t.paging;return{trades:e.grpcTradesToTrades(n),pagination:IP(r)}}},{key:"subaccountTradesListResponseToSubaccountTradesList",value:function(t){var n=t.trades;return e.grpcTradesToTrades(n)}},{key:"fundingPaymentsResponseToFundingPayments",value:function(t){var n=t.payments,r=t.paging;return{fundingPayments:e.grpcFundingPaymentsToFundingPayments(n),pagination:IP(r)}}},{key:"fundingRatesResponseToFundingRates",value:function(t){var n=t.fundingRates,r=t.paging;return{fundingRates:e.grpcFundingRatesToFundingRates(n),pagination:IP(r)}}},{key:"orderbookV2ResponseToOrderbookV2",value:function(t){var n=t.orderbook;return e.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(n.sequence,10),buys:null==n?void 0:n.buys,sells:null==n?void 0:n.sells})}},{key:"orderbooksV2ResponseToOrderbooksV2",value:function(t){return t.orderbooks.map((function(t){var n=t.orderbook;return{marketId:t.marketId,orderbook:e.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(n.sequence,10),buys:n.buys,sells:n.sells})}}))}},{key:"binaryOptionsMarketResponseToBinaryOptionsMarket",value:function(t){var n=t.market;return e.grpcBinaryOptionsMarketToBinaryOptionsMarket(n)}},{key:"binaryOptionsMarketResponseWithPaginationToBinaryOptionsMarket",value:function(t){var n=t.markets,r=t.paging;return{markets:e.grpcBinaryOptionsMarketsToBinaryOptionsMarkets(n),pagination:IP(r)}}},{key:"binaryOptionsMarketsResponseToBinaryOptionsMarkets",value:function(t){var n=t.markets;return e.grpcBinaryOptionsMarketsToBinaryOptionsMarkets(n)}},{key:"grpcBinaryOptionsMarketToBinaryOptionsMarket",value:function(t){return{marketId:t.marketId,marketStatus:t.marketStatus,ticker:t.ticker,oracleSymbol:t.oracleSymbol,oracleProvider:t.oracleProvider,oracleType:t.oracleType,oracleScaleFactor:t.oracleScaleFactor,expirationTimestamp:parseInt(t.expirationTimestamp,10),settlementTimestamp:parseInt(t.settlementTimestamp,10),quoteDenom:t.quoteDenom,quoteToken:e.grpcTokenMetaToTokenMeta(t.quoteTokenMeta),makerFeeRate:t.makerFeeRate,takerFeeRate:t.takerFeeRate,serviceProviderFee:t.serviceProviderFee,minPriceTickSize:t.minPriceTickSize,minQuantityTickSize:t.minQuantityTickSize,settlementPrice:t.settlementPrice}}},{key:"grpcBinaryOptionsMarketsToBinaryOptionsMarkets",value:function(t){return t.map(e.grpcBinaryOptionsMarketToBinaryOptionsMarket)}},{key:"grpcMarketToMarket",value:function(t){return{oracleBase:t.oracleBase,oracleQuote:t.oracleQuote,oracleType:t.oracleType,oracleScaleFactor:t.oracleScaleFactor,initialMarginRatio:t.initialMarginRatio,maintenanceMarginRatio:t.maintenanceMarginRatio,isPerpetual:t.isPerpetual,marketId:t.marketId,marketStatus:t.marketStatus,ticker:t.ticker,quoteDenom:t.quoteDenom,quoteToken:e.grpcTokenMetaToTokenMeta(t.quoteTokenMeta),makerFeeRate:t.makerFeeRate,takerFeeRate:t.takerFeeRate,serviceProviderFee:t.serviceProviderFee,minPriceTickSize:new Dk(t.minPriceTickSize).toNumber(),minQuantityTickSize:new Dk(t.minQuantityTickSize).toNumber(),perpetualMarketInfo:e.grpcPerpetualMarketInfoToPerpetualMarketInfo(t.perpetualMarketInfo),perpetualMarketFunding:e.grpcPerpetualMarketFundingToPerpetualMarketFunding(t.perpetualMarketFunding),expiryFuturesMarketInfo:e.grpcExpiryFuturesMarketInfoToExpiryFuturesMarketInfo(t.expiryFuturesMarketInfo)}}},{key:"grpcMarketsToMarkets",value:function(t){return t.map((function(t){return e.grpcMarketToMarket(t)}))}},{key:"grpcPositionDeltaToPositionDelta",value:function(e){return{tradeDirection:e.tradeDirection,executionPrice:e.executionPrice,executionQuantity:e.executionQuantity,executionMargin:e.executionMargin}}},{key:"grpcPriceLevelToPriceLevel",value:function(e){return{price:e.price,quantity:e.quantity,timestamp:parseInt(e.timestamp,10)}}},{key:"grpcPriceLevelsToPriceLevels",value:function(t){return t.map((function(t){return e.grpcPriceLevelToPriceLevel(t)}))}},{key:"grpcOrderbookToOrderbook",value:function(t){var n=t.buys,r=t.sells;return{buys:e.grpcPriceLevelsToPriceLevels(n),sells:e.grpcPriceLevelsToPriceLevels(r)}}},{key:"grpcOrderbookV2ToOrderbookV2",value:function(t){var n=t.sequence,r=t.buys,a=t.sells;return{sequence:n,buys:e.grpcPriceLevelsToPriceLevels(r),sells:e.grpcPriceLevelsToPriceLevels(a)}}},{key:"grpcOrderToOrder",value:function(e){return{orderHash:e.orderHash,orderSide:e.orderSide,marketId:e.marketId,subaccountId:e.subaccountId,isReduceOnly:e.isReduceOnly,margin:e.margin,price:e.price,quantity:e.quantity,unfilledQuantity:e.unfilledQuantity,triggerPrice:e.triggerPrice,feeRecipient:e.feeRecipient,state:e.state,createdAt:parseInt(e.createdAt,10),updatedAt:parseInt(e.updatedAt,10),orderNumber:parseInt(e.orderNumber,10),triggerAt:parseInt(e.triggerAt,10),orderType:e.orderType,isConditional:e.isConditional,placedOrderHash:e.placedOrderHash,executionType:e.executionType}}},{key:"grpcOrdersToOrders",value:function(t){return t.map((function(t){return e.grpcOrderToOrder(t)}))}},{key:"grpcOrderHistoryToOrderHistory",value:function(e){return{orderHash:e.orderHash,marketId:e.marketId,isActive:e.isActive,subaccountId:e.subaccountId,executionType:e.executionType,orderType:e.orderType,price:e.price,triggerPrice:e.triggerPrice,quantity:e.quantity,filledQuantity:e.filledQuantity,state:e.state,createdAt:parseInt(e.createdAt,10),updatedAt:parseInt(e.updatedAt,10),triggerAt:parseInt(e.triggerAt,10),isReduceOnly:e.isReduceOnly,direction:e.direction,isConditional:e.isConditional,placedOrderHash:e.placedOrderHash,margin:e.margin}}},{key:"grpcOrderHistoryListToOrderHistoryList",value:function(t){return t.map((function(t){return e.grpcOrderHistoryToOrderHistory(t)}))}},{key:"grpcPositionToPosition",value:function(e){return{marketId:e.marketId,subaccountId:e.subaccountId,direction:e.direction,quantity:e.quantity,entryPrice:e.entryPrice,margin:e.margin,aggregateReduceOnlyQuantity:e.aggregateReduceOnlyQuantity,liquidationPrice:e.liquidationPrice,markPrice:e.markPrice,ticker:e.ticker,updatedAt:parseInt(e.updatedAt,10)}}},{key:"grpcPositionsToPositions",value:function(t){return t.map((function(t){return e.grpcPositionToPosition(t)}))}},{key:"grpcTradeToTrade",value:function(t){var n=t.positionDelta,r=n?e.grpcPositionDeltaToPositionDelta(n):{tradeDirection:aP.Buy,executionPrice:"0",executionQuantity:"0",executionMargin:"0"};return(0,ua.Z)({orderHash:t.orderHash,tradeId:t.tradeId,subaccountId:t.subaccountId,marketId:t.marketId,executedAt:parseInt(t.executedAt,10),tradeExecutionType:t.tradeExecutionType,executionSide:t.executionSide,fee:t.fee,feeRecipient:t.feeRecipient,isLiquidation:t.isLiquidation,payout:t.payout},r)}},{key:"grpcTradesToTrades",value:function(t){return t.map((function(t){return e.grpcTradeToTrade(t)}))}},{key:"grpcFundingPaymentToFundingPayment",value:function(e){return{marketId:e.marketId,subaccountId:e.subaccountId,amount:e.amount,timestamp:parseInt(e.timestamp,10)}}},{key:"grpcFundingPaymentsToFundingPayments",value:function(t){return t.map(e.grpcFundingPaymentToFundingPayment)}},{key:"grpcFundingRateToFundingRate",value:function(e){return{marketId:e.marketId,rate:e.rate,timestamp:parseInt(e.timestamp,10)}}},{key:"grpcFundingRatesToFundingRates",value:function(t){return t.map(e.grpcFundingRateToFundingRate)}}]),e}(),HP=(0,va.Z)((function e(){(0,ma.Z)(this,e)}));(0,ca.Z)(HP,"tradesStreamCallback",(function(e){var t=e.trade;return{trade:t?ZP.grpcTradeToTrade(t):void 0,operation:e.operationType,timestamp:e.timestamp}})),(0,ca.Z)(HP,"positionStreamCallback",(function(e){var t=e.position;return{position:t?ZP.grpcPositionToPosition(t):void 0,timestamp:e.timestamp}})),(0,ca.Z)(HP,"ordersStreamCallback",(function(e){var t=e.order;return{order:t?ZP.grpcOrderToOrder(t):void 0,operation:e.operationType,timestamp:e.timestamp}})),(0,ca.Z)(HP,"orderHistoryStreamCallback",(function(e){var t=e.order;return{order:t?ZP.grpcOrderHistoryToOrderHistory(t):void 0,operation:e.operationType,timestamp:e.timestamp}})),(0,ca.Z)(HP,"orderbookV2StreamCallback",(function(e){var t=e.orderbook;return{orderbook:t?ZP.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(t.sequence,10),buys:t.buys,sells:t.sells}):void 0,operation:e.operationType,marketId:e.marketId,timestamp:e.timestamp}})),(0,ca.Z)(HP,"orderbookUpdateStreamCallback",(function(e){var t=e.orderbookLevelUpdates;return{orderbook:t?ZP.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(t.sequence,10),buys:t.buys,sells:t.sells}):void 0,operation:e.operationType,marketId:e.marketId,timestamp:e.timestamp}}));var zP=n(5886).Buffer,QP=function(){function e(){(0,ma.Z)(this,e)}return(0,va.Z)(e,null,[{key:"getTxByTxHashResponseToTx",value:function(t){return e.grpcTransactionToTransaction(t)}},{key:"getAccountTxsResponseToAccountTxs",value:function(t){var n=t.data,r=t.paging;return{txs:e.grpcTransactionsToTransactionsFromDetail(n),pagination:IP(r)}}},{key:"getValidatorUptimeResponseToValidatorUptime",value:function(t){return t.data.map((function(t){return e.grpcValidatorUptimeToValidatorUptime(t)}))}},{key:"getPeggyDepositTxsResponseToPeggyDepositTxs",value:function(t){return t.field.map((function(t){return e.grpcPeggyDepositTx(t)}))}},{key:"getPeggyWithdrawalTxsResponseToPeggyWithdrawalTxs",value:function(t){return t.field.map((function(t){return e.grpcPeggyWithdrawalTx(t)}))}},{key:"getIBCTransferTxsResponseToIBCTransferTxs",value:function(t){return t.field.map((function(t){return e.grpcIBCTransferTxToIBCTransferTx(t)}))}},{key:"validatorResponseToValidator",value:function(t){var n=t.data;return{id:n.id,moniker:n.moniker,operatorAddress:n.operatorAddress,consensusAddress:n.consensusAddress,jailed:n.jailed,status:n.status,tokens:n.tokens,delegatorShares:n.delegatorShares,description:e.grpcValidatorDescriptionToValidatorDescription(n.description),unbondingHeight:parseInt(n.unbondingHeight,10),unbondingTime:n.unbondingTime,commissionRate:n.commissionRate,commissionMaxRate:n.commissionMaxRate,commissionMaxChangeRate:n.commissionMaxChangeRate,commissionUpdateTime:n.commissionUpdateTime,proposed:parseInt(n.proposed,10),signed:parseInt(n.signed,10),missed:parseInt(n.missed,10),uptimePercentage:n.uptimePercentage,timestamp:n.timestamp,uptimesList:n.uptimes.map(e.grpcValidatorUptimeToValidatorUptime),slashingEventsList:n.slashingEvents.map(e.grpcValidatorSlashingEventToValidatorSlashingEvent)}}},{key:"streamTxResponseToTxs",value:function(e){return{id:e.id,blockNumber:parseInt(e.blockNumber,10),blockTimestamp:e.blockTimestamp,hash:e.hash,codespace:e.codespace,messages:e.messages,txNumber:parseInt(e.txNumber,10),errorLog:e.errorLog,code:e.code}}},{key:"grpcGasFeeToGasFee",value:function(e){return{amounts:e.amount.map((function(e){return{amount:e.amount,denom:e.denom}})),gasLimit:parseInt(e.gasLimit,10),payer:e.payer,granter:e.granter}}},{key:"grpcTransactionToBankMsgSendTransaction",value:function(e){var t=e.data,n=JSON.parse(zP.from(t.messages).toString()),r=(0,fa.Z)(n,1)[0];return{blockNumber:parseInt(t.blockNumber,10),blockTimestamp:t.blockTimestamp,hash:t.hash,amount:r.value.amount[0].amount,denom:r.value.amount[0].denom,sender:r.value.from_address,receiver:r.value.to_address}}},{key:"grpcTransactionToTransaction",value:function(t){var n=t.data;return{id:n.id,blockNumber:parseInt(n.blockNumber,10),blockTimestamp:n.blockTimestamp,hash:n.hash,code:n.code,info:n.info,gasWanted:parseInt(n.gasWanted,10),gasUsed:parseInt(n.gasUsed,10),codespace:n.codespace,data:n.data,gasFee:e.grpcGasFeeToGasFee(n.gasFee),txType:n.txType,signatures:n.signatures.map((function(e){return{pubkey:e.pubkey,address:e.address,sequence:parseInt(e.sequence,10),signature:e.signature}})),events:n.events.map((function(e){return{type:e.type,attributes:e.attributes}})),messages:JSON.parse(zP.from(n.messages).toString())}}},{key:"grpcTransactionsToTransactions",value:function(t){return t.map((function(t){return e.grpcTransactionToTransaction(t)}))}},{key:"grpcTransactionToTransactionFromDetail",value:function(t){var n=JSON.parse(zP.from(t.messages).toString("utf8"));return(0,ua.Z)((0,ua.Z)({},t),{},{gasWanted:parseInt(t.gasWanted,10),gasUsed:parseInt(t.gasUsed,10),blockNumber:parseInt(t.blockNumber,10),signatures:t.signatures.map((function(e){return{pubkey:e.pubkey,address:e.address,sequence:parseInt(e.sequence,10),signature:e.signature}})),gasFee:t.gasFee?e.grpcGasFeeToGasFee(t.gasFee):{gasLimit:0,payer:"",granter:"",amounts:[]},events:t.events.map((function(e){return{type:e.type,attributes:e.attributes}})),messages:n})}},{key:"grpcTransactionsToTransactionsFromDetail",value:function(t){return t.map(e.grpcTransactionToTransactionFromDetail)}},{key:"grpcBlockToBlock",value:function(e){return{height:parseInt(e.height,10),proposer:e.proposer,moniker:e.moniker,blockHash:e.blockHash,parentHash:e.parentHash,numPreCommits:parseInt(e.numPreCommits,10),numTxs:parseInt(e.numTxs,10),timestamp:e.timestamp}}},{key:"grpcBlockToBlockWithTxs",value:function(e){return{height:parseInt(e.height,10),proposer:e.proposer,moniker:e.moniker,blockHash:e.blockHash,parentHash:e.parentHash,numPreCommits:parseInt(e.numPreCommits,10),numTxs:parseInt(e.numTxs,10),timestamp:e.timestamp}}},{key:"grpcBlocksToBlocks",value:function(t){return t.map((function(t){return e.grpcBlockToBlock(t)}))}},{key:"grpcBlocksToBlocksWithTxs",value:function(t){return t.map((function(t){return e.grpcBlockToBlockWithTxs(t)}))}},{key:"grpcValidatorDescriptionToValidatorDescription",value:function(e){return{moniker:e.moniker,identity:e.identity,website:e.website,securityContact:e.securityContact,details:e.details}}},{key:"grpcValidatorUptimeToValidatorUptime",value:function(e){return{blockNumber:parseInt(e.blockNumber,10),status:e.status}}},{key:"grpcValidatorSlashingEventToValidatorSlashingEvent",value:function(e){return{blockNumber:parseInt(e.blockNumber,10),blockTimestamp:e.blockTimestamp,address:e.address,power:parseInt(e.power,10),reason:e.reason,jailed:e.jailed,missedBlocks:parseInt(e.missedBlocks,10)}}},{key:"grpcIBCTransferTxToIBCTransferTx",value:function(e){return{sender:e.sender,receiver:e.receiver,sourcePort:e.sourcePort,sourceChannel:e.sourceChannel,destinationPort:e.destinationPort,destinationChannel:e.destinationChannel,amount:e.amount,denom:e.denom,timeoutHeight:e.timeoutHeight,timeoutTimestamp:parseInt(e.timeoutTimestamp,10),packetSequence:parseInt(e.packetSequence,10),dataHex:e.dataHex,state:e.state,txHashesList:e.txHashes,createdAt:e.createdAt,updatedAt:e.updatedAt}}},{key:"grpcPeggyDepositTx",value:function(e){return{sender:e.sender,receiver:e.receiver,eventNonce:parseInt(e.eventNonce,10),eventHeight:parseInt(e.eventHeight,10),amount:e.amount,denom:e.denom,orchestratorAddress:e.orchestratorAddress,state:e.state,claimType:e.claimType,txHashesList:e.txHashes,createdAt:e.createdAt,updatedAt:e.updatedAt}}},{key:"grpcPeggyWithdrawalTx",value:function(e){return{sender:e.sender,receiver:e.receiver,amount:e.amount,denom:e.denom,bridgeFee:e.bridgeFee,outgoingTxId:parseInt(e.outgoingTxId,10),batchTimeout:parseInt(e.batchTimeout,10),batchNonce:parseInt(e.batchNonce,10),eventNonce:parseInt(e.eventNonce,10),eventHeight:parseInt(e.eventHeight,10),orchestratorAddress:e.orchestratorAddress,state:e.state,claimType:e.claimType,txHashesList:e.txHashes,createdAt:e.createdAt,updatedAt:e.updatedAt}}}]),e}(),qP=(0,va.Z)((function e(){(0,ma.Z)(this,e)}));(0,ca.Z)(qP,"blocksStreamCallback",(function(e){return{block:QP.grpcBlockToBlock(e),operation:DP.Insert}})),(0,ca.Z)(qP,"blocksWithTxsStreamCallback",(function(e){return{block:QP.grpcBlockToBlockWithTxs(e),operation:DP.Insert}})),(0,ca.Z)(qP,"transactionsStreamCallback",(function(e){return{block:QP.streamTxResponseToTxs(e),operation:DP.Insert}}));var VP=function(){function e(){(0,ma.Z)(this,e)}return(0,va.Z)(e,null,[{key:"grpcTokenMetaToTokenMeta",value:function(e){if(e)return{name:e.name,address:e.address,symbol:e.symbol,logo:e.logo,decimals:e.decimals,updatedAt:e.updatedAt,coinGeckoId:""}}},{key:"marketResponseToMarket",value:function(t){var n=t.market;return e.grpcMarketToMarket(n)}},{key:"marketsResponseToMarkets",value:function(t){var n=t.markets;return e.grpcMarketsToMarkets(n)}},{key:"ordersResponseToOrders",value:function(t){var n=t.orders,r=t.paging;return{orders:e.grpcOrdersToOrders(n),pagination:IP(r)}}},{key:"orderHistoryResponseToOrderHistory",value:function(t){var n=t.orders,r=t.paging;return{orderHistory:e.grpcOrderHistoryListToOrderHistoryList(n),pagination:IP(r)}}},{key:"tradesResponseToTrades",value:function(t){var n=t.trades,r=t.paging;return{trades:e.grpcTradesToTrades(n),pagination:IP(r)}}},{key:"subaccountTradesListResponseToTradesList",value:function(t){var n=t.trades;return e.grpcTradesToTrades(n)}},{key:"orderbookV2ResponseToOrderbookV2",value:function(t){var n=t.orderbook;return e.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(n.sequence,10),buys:null==n?void 0:n.buys,sells:null==n?void 0:n.sells})}},{key:"orderbooksV2ResponseToOrderbooksV2",value:function(t){return t.orderbooks.map((function(t){var n=t.orderbook;return{marketId:t.marketId,orderbook:e.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(n.sequence,10),buys:n.buys,sells:n.sells})}}))}},{key:"grpcMarketToMarket",value:function(t){return{marketId:t.marketId,marketStatus:t.marketStatus,ticker:t.ticker,baseDenom:t.baseDenom,quoteDenom:t.quoteDenom,quoteToken:e.grpcTokenMetaToTokenMeta(t.quoteTokenMeta),baseToken:e.grpcTokenMetaToTokenMeta(t.baseTokenMeta),makerFeeRate:t.makerFeeRate,takerFeeRate:t.takerFeeRate,serviceProviderFee:t.serviceProviderFee,minPriceTickSize:new Dk(t.minPriceTickSize).toNumber(),minQuantityTickSize:new Dk(t.minQuantityTickSize).toNumber()}}},{key:"grpcMarketsToMarkets",value:function(t){return t.map((function(t){return e.grpcMarketToMarket(t)}))}},{key:"grpcPriceLevelToPriceLevel",value:function(e){return{price:e.price,quantity:e.quantity,timestamp:parseInt(e.timestamp,10)}}},{key:"grpcPriceLevelsToPriceLevels",value:function(t){return t.map((function(t){return e.grpcPriceLevelToPriceLevel(t)}))}},{key:"grpcOrderbookToOrderbook",value:function(t){var n=t.buys,r=t.sells;return{buys:e.grpcPriceLevelsToPriceLevels(n),sells:e.grpcPriceLevelsToPriceLevels(r)}}},{key:"grpcOrderbookV2ToOrderbookV2",value:function(t){var n=t.buys,r=t.sells;return{sequence:t.sequence,buys:e.grpcPriceLevelsToPriceLevels(n),sells:e.grpcPriceLevelsToPriceLevels(r)}}},{key:"grpcOrderToOrder",value:function(e){return{orderHash:e.orderHash,orderSide:e.orderSide,marketId:e.marketId,subaccountId:e.subaccountId,price:e.price,state:e.state,quantity:e.quantity,unfilledQuantity:e.unfilledQuantity,triggerPrice:e.triggerPrice,feeRecipient:e.feeRecipient,createdAt:parseInt(e.createdAt,10),updatedAt:parseInt(e.updatedAt,10)}}},{key:"grpcOrdersToOrders",value:function(t){return t.map((function(t){return e.grpcOrderToOrder(t)}))}},{key:"grpcOrderHistoryToOrderHistory",value:function(e){return{orderHash:e.orderHash,marketId:e.marketId,active:e.isActive,subaccountId:e.subaccountId,executionType:e.executionType,orderType:e.orderType,price:e.price,triggerPrice:e.triggerPrice,quantity:e.quantity,filledQuantity:e.filledQuantity,state:e.state,createdAt:parseInt(e.createdAt,10),updatedAt:parseInt(e.updatedAt,10),direction:e.direction}}},{key:"grpcOrderHistoryListToOrderHistoryList",value:function(t){return t.map((function(t){return e.grpcOrderHistoryToOrderHistory(t)}))}},{key:"grpcTradeToTrade",value:function(t){var n=t.price,r=n?e.grpcPriceLevelToPriceLevel(n):{price:"0",quantity:"0",timestamp:0};return(0,ua.Z)({orderHash:t.orderHash,subaccountId:t.subaccountId,marketId:t.marketId,tradeId:t.tradeId,executedAt:parseInt(t.executedAt,10),feeRecipient:t.feeRecipient,tradeExecutionType:t.tradeExecutionType,executionSide:t.executionSide,tradeDirection:t.tradeDirection,fee:t.fee},r)}},{key:"grpcTradesToTrades",value:function(t){return t.map((function(t){return e.grpcTradeToTrade(t)}))}}]),e}(),JP=(0,va.Z)((function e(){(0,ma.Z)(this,e)}));(0,ca.Z)(JP,"pricesStreamCallback",(function(e){return{price:e.price,operation:DP.Update,timestamp:parseInt(e.timestamp,10)}})),(0,ca.Z)(JP,"pricesByMarketsCallback",(function(e){return(0,ua.Z)({},e)}));var KP,GP,WP,YP,XP={feeDenom:"inj",chainId:GO.Mainnet,ethereumChainId:KO.Mainnet,env:"mainnet"},$P={feeDenom:"inj",chainId:GO.Testnet,ethereumChainId:KO.Goerli,env:"testnet"},eM={feeDenom:"inj",chainId:GO.Devnet,ethereumChainId:KO.Goerli,env:"devnet"},tM={feeDenom:"inj",chainId:GO.Devnet,ethereumChainId:KO.Goerli,env:"local"},nM={indexerApi:"https://k8s.testnet.exchange.grpc-web.injective.network",sentryGrpcApi:"https://k8s.testnet.chain.grpc-web.injective.network",tendermintApi:"https://k8s.testnet.tm.injective.network",sentryHttpApi:"https://k8s.testnet.lcd.injective.network"},rM=(0,ua.Z)({},nM),aM={indexer:"https://staging.api.injective.network",grpc:"https://staging.grpc.injective.network",rpc:"https://staging.tm.injective.network",rest:"https://staging.lcd.injective.network",chronos:"https://staging.api.injective.network",explorer:"https://staging.api.injective.network"},iM=(0,ua.Z)({},aM);!function(e){e.MainnetK8s="mainnetK8s",e.MainnetLB="mainnetLB",e.Mainnet="mainnet",e.Staging="staging",e.Public="public",e.TestnetK8s="testnetK8s",e.TestnetOld="testnetOld",e.Testnet="testnet",e.Devnet1="devnet1",e.Devnet2="devnet2",e.Devnet="devnet",e.Local="local"}(KP||(KP={})),GP={},(0,ca.Z)(GP,KP.MainnetK8s,{indexerApi:"https://k8s.mainnet.exchange.grpc-web.injective.network",sentryGrpcApi:"https://k8s.mainnet.chain.grpc-web.injective.network",tendermintApi:"https://k8s.mainnet.tm.injective.network",sentryHttpApi:"https://k8s.mainnet.lcd.injective.network"}),(0,ca.Z)(GP,KP.MainnetLB,{indexerApi:"https://k8s.mainnet.exchange.grpc-web.injective.network",sentryGrpcApi:"https://k8s.mainnet.chain.grpc-web.injective.network",tendermintApi:"https://k8s.mainnet.tm.injective.network",sentryHttpApi:"https://k8s.mainnet.lcd.injective.network"}),(0,ca.Z)(GP,KP.Staging,{indexerApi:"https://staging.api.injective.network",sentryGrpcApi:"https://staging.grpc.injective.network",tendermintApi:"https://staging.tm.injective.network",sentryHttpApi:"https://staging.lcd.injective.network"}),(0,ca.Z)(GP,KP.Mainnet,{indexerApi:"https://api.injective.network",sentryGrpcApi:"https://grpc.injective.network",tendermintApi:"https://tm.injective.network",sentryHttpApi:"https://lcd.injective.network"}),(0,ca.Z)(GP,KP.Public,{indexerApi:"https://public.api.injective.network",sentryGrpcApi:"https://public.grpc.injective.network",tendermintApi:"https://tm.injective.network",sentryHttpApi:"https://public.lcd.injective.network"}),(0,ca.Z)(GP,KP.Devnet,{indexerApi:"https://devnet.api.injective.dev",sentryGrpcApi:"https://devnet.grpc.injective.dev",tendermintApi:"https://devnet.tm.injective.dev",sentryHttpApi:"https://devnet.lcd.injective.dev"}),(0,ca.Z)(GP,KP.Devnet1,{indexerApi:"https://devnet-1.api.injective.dev",sentryGrpcApi:"https://devnet-1.grpc.injective.dev",tendermintApi:"https://devnet-1.tm.injective.dev",sentryHttpApi:"https://devnet-1.lcd.injective.dev"}),(0,ca.Z)(GP,KP.Devnet2,{indexerApi:"https://devnet-2.api.injective.dev",sentryGrpcApi:"https://devnet-2.grpc.injective.dev",tendermintApi:"https://devnet-2.tm.injective.dev",sentryHttpApi:"https://devnet-2.lcd.injective.dev"}),(0,ca.Z)(GP,KP.Testnet,rM),(0,ca.Z)(GP,KP.TestnetK8s,nM),(0,ca.Z)(GP,KP.TestnetOld,{indexerApi:"https://testnet.api.injective.dev",sentryGrpcApi:"https://testnet.grpc.injective.dev",tendermintApi:"https://testnet.tm.injective.dev",sentryHttpApi:"https://testnet.lcd.injective.dev"}),(0,ca.Z)(GP,KP.Local,{indexerApi:"https://localhost:4444",sentryGrpcApi:"http://localhost:9091",tendermintApi:"http://localhost:9091",sentryHttpApi:"http://localhost:9091"}),WP={},(0,ca.Z)(WP,KP.MainnetLB,{indexer:"https://k8s.global.mainnet.exchange.grpc-web.injective.network",grpc:"https://k8s.global.mainnet.chain.grpc-web.injective.network",rpc:"https://k8s.global.mainnet.tm.injective.network",rest:"https://k8s.global.mainnet.lcd.injective.network",chronos:"https://k8s.global.mainnet.chronos.grpc-web.injective.network",explorer:"https://k8s.global.mainnet.explorer.grpc-web.injective.network"}),(0,ca.Z)(WP,KP.MainnetK8s,{indexer:"https://k8s.mainnet.exchange.grpc-web.injective.network",grpc:"https://k8s.mainnet.chain.grpc-web.injective.network",rpc:"https://k8s.mainnet.tm.injective.network",rest:"https://k8s.mainnet.lcd.injective.network",chronos:"https://k8s.mainnet.chronos.grpc-web.injective.network",explorer:"https://k8s.mainnet.explorer.grpc-web.injective.network"}),(0,ca.Z)(WP,KP.Staging,aM),(0,ca.Z)(WP,KP.Mainnet,{indexer:"https://api.injective.network",grpc:"https://grpc.injective.network",rpc:"https://tm.injective.network",rest:"https://lcd.injective.network",chronos:"https://api.injective.network",explorer:"https://api.injective.network"}),(0,ca.Z)(WP,KP.Public,iM),(0,ca.Z)(WP,KP.Devnet,{indexer:"https://devnet.api.injective.dev",grpc:"https://devnet.grpc.injective.dev",rpc:"https://devnet.tm.injective.dev",rest:"https://devnet.lcd.injective.dev",chronos:"https://devnet.api.injective.dev",explorer:"https://devnet.api.injective.dev"}),(0,ca.Z)(WP,KP.Devnet1,{indexer:"https://devnet-1.api.injective.dev",grpc:"https://devnet-1.grpc.injective.dev",rpc:"https://devnet-1.tm.injective.dev",rest:"https://devnet-1.lcd.injective.dev",chronos:"https://devnet-1.api.injective.dev",explorer:"https://devnet-1.api.injective.dev"}),(0,ca.Z)(WP,KP.Devnet2,{indexer:"https://devnet-2.api.injective.dev",grpc:"https://devnet-2.grpc.injective.dev",rpc:"https://devnet-2.tm.injective.dev",rest:"https://devnet-2.lcd.injective.dev",chronos:"https://devnet-2.api.injective.dev",explorer:"https://devnet-2.api.injective.dev"}),(0,ca.Z)(WP,KP.Testnet,{indexer:"https://testnet.exchange.grpc-web.injective.network",grpc:"https://testnet.chain.grpc-web.injective.network",rpc:"https://testnet.tm.injective.network",rest:"https://testnet.lcd.injective.network",chronos:"https://testnet.exchange.grpc-web.injective.network",explorer:"https://testnet.exchange.grpc-web.injective.network"}),(0,ca.Z)(WP,KP.TestnetK8s,{indexer:"https://k8s.testnet.exchange.grpc-web.injective.network",grpc:"https://k8s.testnet.chain.grpc-web.injective.network",rpc:"https://k8s.testnet.tm.injective.network",rest:"https://k8s.testnet.lcd.injective.network",chronos:"https://k8s.testnet.exchange.grpc-web.injective.network",explorer:"https://k8s.testnet.explorer.grpc-web.injective.network"}),(0,ca.Z)(WP,KP.TestnetOld,{indexer:"https://testnet.exchange.grpc-web.injective.dev",grpc:"https://testnet.chain.grpc-web.injective.dev",rpc:"https://testnet.tm.injective.dev",rest:"https://testnet.lcd.injective.dev",chronos:"https://testnet.exchange.grpc-web.injective.dev",explorer:"https://testnet.exchange.grpc-web.injective.dev"}),(0,ca.Z)(WP,KP.Local,{indexer:"https://localhost:4444",grpc:"http://localhost:9091",rpc:"http://localhost:9091",rest:"http://localhost:9091",chronos:"https://localhost:4445",explorer:"https://localhost:4446"}),YP={},(0,ca.Z)(YP,KP.MainnetLB,XP),(0,ca.Z)(YP,KP.MainnetK8s,XP),(0,ca.Z)(YP,KP.Staging,XP),(0,ca.Z)(YP,KP.Mainnet,XP),(0,ca.Z)(YP,KP.Public,XP),(0,ca.Z)(YP,KP.Devnet,eM),(0,ca.Z)(YP,KP.Devnet1,eM),(0,ca.Z)(YP,KP.Devnet2,eM),(0,ca.Z)(YP,KP.Testnet,$P),(0,ca.Z)(YP,KP.TestnetOld,$P),(0,ca.Z)(YP,KP.TestnetK8s,$P),(0,ca.Z)(YP,KP.Local,tM);var oM,sM=Ow;n(97204),function(e){e.Idle="idle",e.Loading="loading",e.Completed="completed",e.Error="error",e.Confirmed="confirmed"}(oM||(oM={}));var cM,uM,dM="inj",fM=4e5;new sM(fM).times(5e8).toString(),fM.toString(),new sM(86400),sM.clone({ROUNDING_MODE:sM.ROUND_DOWN}),function(e){e.CosmosHub="channel-1",e.Evmos="channel-83",e.Osmosis="channel-8",e.Terra="channel-4",e.Axelar="channel-84",e.Persistence="channel-82",e.Chihuahua="channel-76",e.SecretNetwork="channel-88",e.Juno="channel-78",e.Stride="channel-89",e.Crescent="channel-90",e.Sommelier="channel-93"}(uM||(uM={}));var lM,bM,pM,hM=["channel-1","channel-4","channel-5","channel-6","channel-8","channel-13","channel-74","channel-76","channel-78","channel-82","channel-83","channel-84","channel-88","channel-89","channel-90","channel-93","channel-99","channel-104","channel-105"];cM={},(0,ca.Z)(cM,uM.Osmosis,{inj:"ibc/64BA6E31FE887D66C6F8F31C7B1A80C7CA179239677B4088BB55F5EA07DBE273"}),(0,ca.Z)(cM,uM.Crescent,{inj:"ibc/5A76568E079A31FA12165E4559BA9F1E9D4C97F9C2060B538C84DCD503815E30"}),(0,ca.Z)(cM,uM.Persistence,{inj:"ibc/D64E84758BCA42602C27E9ED2DB8F4EFDAE6A1E311CF404B516D45FEDF319D73"}),(0,ca.Z)(cM,uM.Stride,{inj:"ibc/A7454562FF29FE068F42F9DE4805ABEF54F599D1720B345D6518D9B5C64EA6D2"}),(pM=lM||(lM={})).Ibc="ibc",pM.Cw20="cw20",pM.Spl="spl",pM.Erc20="erc20",pM.Native="native",pM.TokenFactory="tokenFactory",pM.InsuranceFund="insuranceFund",pM.Unknown="unknown",function(e){e.Solana="solana",e.Cosmos="cosmos",e.Ethereum="ethereum",e.EthereumWh="ethereum-wormhole"}(bM||(bM={}));var yM,mM,vM,gM,AM,wM={WBTC:{decimals:8,symbol:"wBTC",source:bM.Cosmos,address:"wbtc",tokenType:lM.Cw20},ATOM:{decimals:8,symbol:"ATOM",source:bM.Cosmos,address:"atom",tokenType:lM.Cw20},WETH:{decimals:8,symbol:"WETH",source:bM.Cosmos,address:"weth",tokenType:lM.Cw20}},xM={vARI:{name:"Aries",logo:"aries.svg",symbol:"vARI",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:lM.Cw20}},vTAU:{name:"Taurus",logo:"taurus.svg",symbol:"vTAU",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:lM.Cw20}},vGEM:{name:"Gemini",logo:"gemini.svg",symbol:"vGEM",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:lM.Cw20}},vCAN:{name:"Cancer",logo:"cancer.svg",symbol:"vCAN",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:lM.Cw20}},vLEO:{name:"Leo",logo:"leo.svg",symbol:"vLEO",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:lM.Cw20}},vVIR:{name:"Virgo",logo:"virgo.svg",symbol:"vVIR",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:lM.Cw20}},vLIB:{name:"Libra",logo:"libra.svg",symbol:"vLIB",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:lM.Cw20}},vSCOR:{name:"Scorpio",logo:"scorpio.svg",symbol:"vSCOR",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:lM.Cw20}},vSAG:{name:"Sagittarius",logo:"sagittarius.svg",symbol:"vSAG",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:lM.Cw20}},vCAP:{name:"Capricorn",logo:"capricorn.svg",symbol:"vCAP",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:lM.Cw20}},vAQUA:{name:"Aquarius",logo:"aquarius.svg",symbol:"vAQUA",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:lM.Cw20}},vPIS:{name:"Pisces",logo:"pisces.svg",symbol:"vPIS",decimals:18,coinGeckoId:"",cw20:{decimals:18,address:"",tokenType:lM.Cw20}}},_M={BTC:{name:"Bitcoin",symbol:"BTC",decimals:8,logo:"bitcoin.svg",coinGeckoId:"bitcoin",erc20:{decimals:8,address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",tokenType:lM.Erc20}},wBTC:{name:"Wrapped Bitcoin",symbol:"wBTC",decimals:8,logo:"wbtc.svg",coinGeckoId:"wrapped-bitcoin",erc20:{decimals:8,address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",tokenType:lM.Erc20},cw20s:[{decimals:18,symbol:"wBTC",source:bM.Cosmos,address:"inj14au322k9munkmx5wrchz9q30juf5wjgz2cfqku",tokenType:lM.Cw20}]},ETH:{name:"Ethereum",symbol:"ETH",decimals:18,logo:"ethereum.svg",coinGeckoId:"ethereum",erc20:{decimals:18,isNative:!0,address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",tokenType:lM.Erc20}},wETH:{name:"Wrapped Ethereum",symbol:"wETH",decimals:18,logo:"ethereum.svg",coinGeckoId:"ethereum",erc20:{decimals:18,address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",tokenType:lM.Erc20}},INJ:{name:"Injective",symbol:"INJ",decimals:18,logo:"injective-v3.svg",coinGeckoId:"injective-protocol",erc20:{decimals:18,address:"0xe28b3B32B6c345A34Ff64674606124Dd5Aceca30",tokenType:lM.Erc20}},USDT:{name:"Tether",symbol:"USDT",decimals:6,logo:"usdt.svg",coinGeckoId:"tether",erc20:{decimals:6,address:"0xdAC17F958D2ee523a2206206994597C13D831ec7",tokenType:lM.Erc20}},USDC:{symbol:"USDC",name:"USD Coin",decimals:6,logo:"usdc.svg",coinGeckoId:"usd-coin",erc20:{decimals:6,symbol:"USDC",address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",tokenType:lM.Erc20},cw20s:[{decimals:6,symbol:"USDCet",source:bM.EthereumWh,address:"inj1q6zlut7gtkzknkk773jecujwsdkgq882akqksk",tokenType:lM.Cw20},{decimals:6,symbol:"USDCso",source:bM.Solana,address:"inj12pwnhtv7yat2s30xuf4gdk9qm85v4j3e60dgvu",tokenType:lM.Cw20}]},GRT:{name:"Graph Token",symbol:"GRT",decimals:18,logo:"graphToken.svg",coinGeckoId:"the-graph",erc20:{decimals:18,address:"0xc944E90C64B2c07662A292be6244BDf05Cda44a7",tokenType:lM.Erc20}},SNX:{name:"Synthetix Network Token",symbol:"SNX",decimals:18,logo:"synthetix.svg",coinGeckoId:"havven",erc20:{decimals:18,address:"0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F",tokenType:lM.Erc20}},BNB:{name:"Binance Coin",symbol:"BNB",decimals:18,logo:"bnb.svg",coinGeckoId:"binancecoin",erc20:{decimals:18,address:"0xB8c77482e45F1F44dE1745F52C74426C631bDD52",tokenType:lM.Erc20}},AAVE:{name:"Aave",symbol:"AAVE",decimals:18,logo:"AAVE.svg",coinGeckoId:"aave",erc20:{decimals:18,address:"0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9",tokenType:lM.Erc20}},YFI:{name:"yearn.finance",symbol:"YFI",logo:"yfi.svg",decimals:18,coinGeckoId:"yearn-finance",erc20:{decimals:18,address:"0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e",tokenType:lM.Erc20}},COMP:{name:"Compound",symbol:"COMP",decimals:18,logo:"comp.svg",coinGeckoId:"compound-coin",erc20:{decimals:18,address:"0xc00e94Cb662C3520282E6f5717214004A7f26888",tokenType:lM.Erc20}},ZRX:{name:"0x",symbol:"ZRX",decimals:18,logo:"zrx.svg",coinGeckoId:"0x",erc20:{decimals:18,address:"0xE41d2489571d322189246DaFA5ebDe1F4699F498",tokenType:lM.Erc20}},MATIC:{name:"Polygon",logo:"matic.svg",symbol:"MATIC",decimals:18,coinGeckoId:"matic-network",erc20:{decimals:18,address:"0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0",tokenType:lM.Erc20}},UNI:{name:"Uniswap",symbol:"UNI",logo:"uni.svg",decimals:18,coinGeckoId:"uniswap",erc20:{decimals:18,address:"0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",tokenType:lM.Erc20}},DAI:{name:"Dai",symbol:"DAI",decimals:18,logo:"dai.svg",coinGeckoId:"dai",erc20:{decimals:18,address:"0x6B175474E89094C44Da98b954EedeAC495271d0F",tokenType:lM.Erc20}},LINK:{name:"Chainlink",symbol:"LINK",decimals:18,logo:"chainlink.svg",coinGeckoId:"chainlink",erc20:{decimals:18,address:"0x514910771AF9Ca656af840dff83E8264EcF986CA",tokenType:lM.Erc20}},SUSHI:{name:"SushiSwap",symbol:"SUSHI",decimals:18,logo:"sushi.svg",coinGeckoId:"sushi",erc20:{decimals:18,address:"0x6B3595068778DD592e39A122f4f5a5cF09C90fE2",tokenType:lM.Erc20}},AXS:{name:"Axie Infinity",symbol:"AXS",decimals:18,logo:"axs.png",coinGeckoId:"axie-infinity",erc20:{decimals:18,address:"0xBB0E17EF65F82Ab018d8EDd776e8DD940327B28b",tokenType:lM.Erc20}},"1INCH":{name:"1inch",symbol:"1INCH",decimals:18,logo:"1inch.png",coinGeckoId:"1inch",erc20:{decimals:18,address:"0x111111111117dC0aa78b770fA6A738034120C302",tokenType:lM.Erc20}},BAT:{name:"Basic Attention Token",symbol:"BAT",decimals:18,logo:"bat.png",coinGeckoId:"basic-attention-token",erc20:{decimals:18,address:"0x0D8775F648430679A709E98d2b0Cb6250d2887EF",tokenType:lM.Erc20}},BUSD:{name:"Binance USD",symbol:"BUSD",decimals:18,logo:"busd.png",coinGeckoId:"binance-usd",erc20:{decimals:18,address:"0x4Fabb145d64652a948d72533023f6E7A623C7C53",tokenType:lM.Erc20}},CEL:{name:"Celsius",symbol:"CEL",decimals:4,logo:"cel.png",coinGeckoId:"celsius-degree-token",erc20:{decimals:4,address:"0xaaAEBE6Fe48E54f431b0C390CfaF0b017d09D42d",tokenType:lM.Erc20}},CELL:{name:"Cellframe",symbol:"CELL",decimals:18,logo:"cell.png",coinGeckoId:"cellframe",erc20:{decimals:18,address:"0x26c8AFBBFE1EBaca03C2bB082E69D0476Bffe099",tokenType:lM.Erc20}},DEFI5:{name:"DEFI Top 5 Tokens Index",symbol:"DEFI5",decimals:18,logo:"defi5.png",coinGeckoId:"defi-top-5-tokens-index",erc20:{decimals:18,address:"0xfa6de2697D59E88Ed7Fc4dFE5A33daC43565ea41",tokenType:lM.Erc20}},ENJ:{name:"Enjin Coin",symbol:"ENJ",decimals:18,logo:"enj.png",coinGeckoId:"enjincoin",erc20:{decimals:18,address:"0xF629cBd94d3791C9250152BD8dfBDF380E2a3B9c",tokenType:lM.Erc20}},EVAI:{name:"Evai.io",symbol:"EVAI",decimals:8,logo:"evai.png",coinGeckoId:"evai",erc20:{decimals:8,address:"0x50f09629d0afDF40398a3F317cc676cA9132055c",tokenType:lM.Erc20}},FTM:{name:"Fantom",symbol:"FTM",decimals:18,logo:"ftm.png",coinGeckoId:"fantom",erc20:{decimals:18,address:"0x4E15361FD6b4BB609Fa63C81A2be19d873717870",tokenType:lM.Erc20}},HT:{name:"Huobi Token",symbol:"HT",decimals:18,logo:"ht.png",coinGeckoId:"huobi-token",erc20:{decimals:18,address:"0x6f259637dcD74C767781E37Bc6133cd6A68aa161",tokenType:lM.Erc20}},NEXO:{name:"Nexo",symbol:"NEXO",decimals:18,logo:"nexo.png",coinGeckoId:"nexo",erc20:{decimals:18,address:"0xB62132e35a6c13ee1EE0f84dC5d40bad8d815206",tokenType:lM.Erc20}},NOIA:{name:"Syntropy",symbol:"NOIA",decimals:18,logo:"noia.png",coinGeckoId:"noia-network",erc20:{decimals:18,address:"0xa8c8CfB141A3bB59FEA1E2ea6B79b5ECBCD7b6ca",tokenType:lM.Erc20}},OCEAN:{name:"Ocean Protocol",symbol:"OCEAN",decimals:18,logo:"ocean.png",coinGeckoId:"ocean-protocol",erc20:{decimals:18,address:"0x967da4048cD07aB37855c090aAF366e4ce1b9F48",tokenType:lM.Erc20}},PAXG:{name:"PAX Gold",symbol:"PAXG",decimals:18,logo:"paxg.png",coinGeckoId:"pax-gold",erc20:{decimals:18,address:"0x45804880De22913dAFE09f4980848ECE6EcbAf78",tokenType:lM.Erc20}},POOL:{name:"PoolTogether",symbol:"POOL",decimals:18,logo:"pool.png",coinGeckoId:"pooltogether",erc20:{decimals:18,address:"0x0cEC1A9154Ff802e7934Fc916Ed7Ca50bDE6844e",tokenType:lM.Erc20}},RUNE:{name:"THORChain (ERC20)",symbol:"RUNE",decimals:18,logo:"rune.png",coinGeckoId:"thorchain-erc20",erc20:{decimals:18,address:"0x3155BA85D5F96b2d030a4966AF206230e46849cb",tokenType:lM.Erc20}},SHIB:{name:"SHIBA INU",symbol:"SHIB",decimals:18,logo:"shib.png",coinGeckoId:"shiba-inu",erc20:{decimals:18,address:"0x95aD61b0a150d79219dCF64E1E6Cc01f0B64C4cE",tokenType:lM.Erc20}},STARS:{name:"Mogul Productions",symbol:"STARS",decimals:18,logo:"stars.png",coinGeckoId:"mogul-productions",erc20:{decimals:18,address:"0xc55c2175E90A46602fD42e931f62B3Acc1A013Ca",tokenType:lM.Erc20}},STT:{name:"Scatter.cx",symbol:"STT",decimals:18,logo:"scatter.webp",coinGeckoId:"scatter-cx",erc20:{decimals:18,address:"0xaC9Bb427953aC7FDDC562ADcA86CF42D988047Fd",tokenType:lM.Erc20}},SWAP:{name:"TrustSwap",symbol:"SWAP",decimals:18,logo:"trustswap.png",coinGeckoId:"trustswap",erc20:{decimals:18,address:"0xaC9Bb427953aC7FDDC562ADcA86CF42D988047Fd",tokenType:lM.Erc20}},UMA:{name:"UMA",symbol:"UMA",decimals:18,coinGeckoId:"uma",logo:"uma.png",erc20:{decimals:18,address:"0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828",tokenType:lM.Erc20}},UTK:{name:"Utrust",symbol:"UTK",decimals:18,logo:"utk.png",coinGeckoId:"utrust",erc20:{decimals:18,address:"0xdc9Ac3C20D1ed0B540dF9b1feDC10039Df13F99c",tokenType:lM.Erc20}},ATOM:{name:"Cosmos",symbol:"ATOM",decimals:6,logo:"atom.svg",coinGeckoId:"cosmos",erc20:{decimals:6,address:"0x8D983cb9388EaC77af0474fA441C4815500Cb7BB",tokenType:lM.Erc20},ibc:{decimals:6,isNative:!0,baseDenom:"uatom",path:"transfer/channel-1",channelId:"channel-1",hash:"624BA9DD171915A2B9EA70F69638B2CEA179959850C1A586F6C485498F29EDD4",tokenType:lM.Ibc}},UPHOTON:{name:"Cosmos Testnet",symbol:"UPHOTON",decimals:6,logo:"atom.svg",coinGeckoId:"cosmos",erc20:{decimals:6,address:"0x8D983cb9388EaC77af0474fA441C4815500Cb7BB",tokenType:lM.Erc20},ibc:{decimals:6,isNative:!0,baseDenom:"uphoton",path:"transfer/channel-2",channelId:"channel-2",hash:"48BC9C6ACBDFC1EBA034F1859245D53EA4BF74147189D66F27C23BF966335DFB",tokenType:lM.Ibc}},LUNA:{name:"Terra",symbol:"LUNA",decimals:6,logo:"luna.png",coinGeckoId:"terra-luna",erc20:{decimals:6,address:"0xd2877702675e6cEb975b4A1dFf9fb7BAF4C91ea9",tokenType:lM.Erc20},ibc:{decimals:6,isNative:!0,baseDenom:"uluna",path:"transfer/channel-4",channelId:"channel-4",hash:"B8AF5D92165F35AB31F3FC7C7B444B9D240760FA5D406C49D24862BD0284E395",tokenType:lM.Ibc}},UST:{name:"TerraUSD",baseDenom:"UUSD",symbol:"UST",logo:"ust.png",decimals:18,coinGeckoId:"terrausd",erc20:{decimals:18,address:"0xa47c8bf37f92aBed4A126BDA807A7b7498661acD",tokenType:lM.Erc20},ibc:{decimals:18,isNative:!0,baseDenom:"uusd",path:"transfer/channel-4",channelId:"channel-4",hash:"B448C0CA358B958301D328CCDC5D5AD642FC30A6D3AE106FF721DB315F3DDE5C",tokenType:lM.Ibc}},GF:{name:"GuildFi",symbol:"GF",decimals:18,logo:"gf.png",coinGeckoId:"guildfi",erc20:{decimals:18,address:"0xaaef88cea01475125522e117bfe45cf32044e238",tokenType:lM.Erc20}},XBX:{name:"BurnX",symbol:"XBX",decimals:18,logo:"xbx.png",coinGeckoId:"",erc20:{decimals:18,address:"0x080B12E80C9b45e97C23b6ad10a16B3e2a123949",tokenType:lM.Erc20}},OSMO:{name:"Osmosis",symbol:"OSMO",decimals:6,coinGeckoId:"osmosis",logo:"osmo.png",ibc:{decimals:6,isNative:!0,baseDenom:"uosmo",path:"transfer/channel-8",channelId:"channel-8",hash:"92E0120F15D037353CFB73C14651FC8930ADC05B93100FD7754D3A689E53B333",tokenType:lM.Ibc}},TAB:{name:"Injective",logo:"injective-v3.svg",symbol:"TAB",decimals:18,coinGeckoId:"injective-protocol",erc20:{decimals:18,address:"0x36B3D7ACe7201E28040eFf30e815290D7b37ffaD",tokenType:lM.Erc20}},HUAHUA:{name:"Chihuahua",symbol:"HUAHUA",decimals:6,logo:"chihuahua.jpeg",coinGeckoId:"chihuahua-token",ibc:{decimals:6,isNative:!0,baseDenom:"uhuahua",path:"transfer/channel-76",channelId:"channel-76",hash:"E7807A46C0B7B44B350DA58F51F278881B863EC4DCA94635DAB39E52C30766CB",tokenType:lM.Ibc}},JUNO:{name:"Juno",symbol:"JUNO",decimals:6,logo:"juno.jpeg",coinGeckoId:"juno-network",ibc:{decimals:6,isNative:!0,baseDenom:"ujuno",path:"transfer/channel-78",channelId:"channel-78",hash:"D50E26996253EBAA8C684B9CD653FE2F7665D7BDDCA3D48D5E1378CF6334F211",tokenType:lM.Ibc}},AXL:{name:"Axelar",logo:"axelar.jpeg",symbol:"AXL",decimals:6,coinGeckoId:"axelar",erc20:{decimals:6,address:"0x3eacbDC6C382ea22b78aCc158581A55aaF4ef3Cc",tokenType:lM.Erc20},ibc:{decimals:6,isNative:!0,baseDenom:"uaxl",path:"transfer/channel-84",channelId:"channel-84",hash:"B68C1D2682A8B69E20BB921E34C6A3A2B6D1E13E3E8C0092E373826F546DEE65",tokenType:lM.Ibc}},BAYC:{name:"Bored Ape Yacht Club",symbol:"BAYC",logo:"bayc.svg",decimals:18,coinGeckoId:""},APE:{name:"Ape Coin",symbol:"APE",decimals:18,logo:"ape.png",coinGeckoId:"apecoin",erc20:{decimals:18,address:"0x4d224452801ACEd8B2F0aebE155379bb5D594381",tokenType:lM.Erc20}},SCRT:{name:"Secret Network",symbol:"SCRT",decimals:6,logo:"scrt.png",coinGeckoId:"secret",ibc:{decimals:6,isNative:!0,baseDenom:"uscrt",path:"transfer/channel-88",channelId:"channel-88",hash:"0954E1C28EB7AF5B72D24F3BC2B47BBB2FDF91BDDFD57B74B99E133AED40972A",tokenType:lM.Ibc}},XPRT:{name:"Persistence",symbol:"XPRT",decimals:6,logo:"xprt.svg",coinGeckoId:"persistence",ibc:{decimals:6,isNative:!0,baseDenom:"uxprt",path:"transfer/channel-82",channelId:"channel-82",hash:"B786E7CBBF026F6F15A8DA248E0F18C62A0F7A70CB2DABD9239398C8B5150ABB",tokenType:lM.Ibc}},EVMOS:{name:"Evmos",symbol:"EVMOS",decimals:18,logo:"evmos.svg",coinGeckoId:"evmos",ibc:{decimals:18,isNative:!0,baseDenom:"aevmos",path:"transfer/channel-83",channelId:"channel-83",hash:"16618B7F7AC551F48C057A13F4CA5503693FBFF507719A85BC6876B8BD75F821",tokenType:lM.Ibc}},STX:{name:"Stacks",symbol:"STX",decimals:6,logo:"stacks.png",coinGeckoId:"blockstack"},DOT:{name:"Polkadot",symbol:"DOT",decimals:10,logo:"dot.jpeg",coinGeckoId:"polkadot",erc20:{decimals:10,address:"0xFfFFfFff1FcaCBd218EDc0EbA20Fc2308C778080",tokenType:lM.Erc20},ibc:{decimals:10,isNative:!1,baseDenom:"dot-planck",path:"transfer/channel-84",channelId:"channel-84",hash:"624BA9DD171915A2B9EA70F69638B2CEA179959850C1A586F6C485498F29EDD4",tokenType:lM.Ibc},cw20:{decimals:10,address:"inj1spzwwtr2luljr300ng2gu52zg7wn7j44m92mdf",tokenType:lM.Cw20}},"DOT-PLANCK":{name:"Polkadot",symbol:"DOT",decimals:10,logo:"dot.jpeg",coinGeckoId:"polkadot",erc20:{decimals:10,address:"0xFfFFfFff1FcaCBd218EDc0EbA20Fc2308C778080",tokenType:lM.Erc20}},STRD:{name:"Stride",symbol:"STRD",decimals:6,logo:"stride.png",coinGeckoId:"stride",ibc:{decimals:6,isNative:!0,baseDenom:"ustrd",path:"transfer/channel-89",channelId:"channel-89",hash:"3FDD002A3A4019B05A33D324B2F29748E77AF501BEA5C96D1F28B2D6755F9F25",tokenType:lM.Ibc}},CRE:{name:"Crescent",symbol:"CRE",decimals:6,logo:"crescent.jpeg",coinGeckoId:"crescent-network",ibc:{decimals:6,isNative:!0,baseDenom:"ucre",path:"transfer/channel-90",channelId:"channel-90",hash:"3A6DD3358D9F7ADD18CDE79BA10B400511A5DE4AE2C037D7C9639B52ADAF35C6",tokenType:lM.Ibc}},PROJ:{name:"PROJ",logo:"projx.png",symbol:"Proj",decimals:6,coinGeckoId:""},ASTRO:{name:"ASTRO",symbol:"ASTRO",decimals:6,logo:"astroport.png",coinGeckoId:"astroport-fi",ibc:{decimals:6,isNative:!0,baseDenom:"cw20:terra1nsuqsk6kh58ulczatwev87ttq2z6r3pusulg9r24mfj2fvtzd4uq3exn26",path:"transfer/channel-104",channelId:"channel-104",hash:"EBD5A24C554198EBAF44979C5B4D2C2D312E6EBAB71962C92F735499C7575839",tokenType:lM.Ibc}},SOL:{name:"Solana",symbol:"SOL",decimals:8,logo:"solana.svg",coinGeckoId:"solana",spl:{decimals:9,address:"",isNative:!0,tokenType:lM.Spl},cw20:{decimals:8,address:"inj1sthrn5ep8ls5vzz8f9gp89khhmedahhdkqa8z3",tokenType:lM.Cw20}},SOMM:{name:"Sommelier",symbol:"SOMM",decimals:6,logo:"sommelier.png",coinGeckoId:"sommelier",ibc:{decimals:6,isNative:!0,baseDenom:"usomm",path:"transfer/channel-93",channelId:"channel-93",hash:"34346A60A95EB030D62D6F5BDD4B745BE18E8A693372A8A347D5D53DBBB1328B",tokenType:lM.Ibc}},ETHBTCTREND:{name:"ETHBTC Trend",symbol:"ETHBTCTrend",decimals:18,logo:"ethbtctrend.svg",coinGeckoId:"",erc20:{decimals:18,address:"0x6b7f87279982d919Bbf85182DDeAB179B366D8f2",tokenType:lM.Erc20}},STEADYETH:{name:"SteadyETH",symbol:"SteadyETH",decimals:18,logo:"steadyeth.svg",coinGeckoId:"",erc20:{decimals:18,address:"0x3F07A84eCdf494310D397d24c1C78B041D2fa622",tokenType:lM.Erc20}},STEADYBTC:{name:"SteadyBTC",symbol:"SteadyBTC",decimals:18,logo:"steadybtc.svg",coinGeckoId:"",erc20:{decimals:18,address:"0x4986fD36b6b16f49b43282Ee2e24C5cF90ed166d",tokenType:lM.Erc20}},XPLA:{name:"XPLA",symbol:"XPLA",decimals:8,logo:"xpla.svg",coinGeckoId:"xpla",cw20:{decimals:8,address:"inj1j08452mqwadp8xu25kn9rleyl2gufgfjqjvewe",tokenType:lM.Cw20}},AVAX:{name:"AVAX",symbol:"WAVAX",decimals:8,logo:"avax.webp",coinGeckoId:"avalanche-2",cw20:{decimals:8,address:"inj18a2u6az6dzw528rptepfg6n49ak6hdzkny4um6",tokenType:lM.Cw20}},BONK:{name:"BONK",symbol:"BONK",decimals:5,logo:"bonk.jpeg",coinGeckoId:"bonk"},CHZ:{name:"Chiliz",symbol:"CHZ",decimals:18,logo:"chz.png",coinGeckoId:"chiliz",erc20:{decimals:18,address:"0x3506424F91fD33084466F402d5D97f05F8e3b4AF",tokenType:lM.Erc20},cw20:{decimals:8,address:"inj1q6kpxy6ar5lkxqudjvryarrrttmakwsvzkvcyh",tokenType:lM.Cw20}},CANTO:{name:"Canto",symbol:"CANTO",decimals:18,logo:"canto.webp",coinGeckoId:"canto",ibc:{decimals:18,isNative:!0,baseDenom:"acanto",path:"transfer/channel-99",channelId:"channel-99",hash:"C733F37CB50114AFE8053C320DF45D0AAD8B94F556EB306AC2ABA0B9963CDF0D",tokenType:lM.Ibc}},QAT:{name:"Test QAT",symbol:"QAT",decimals:18,logo:"injective-v3.svg",coinGeckoId:"injective-protocol",erc20:{decimals:18,address:"0x1902e18fEB1234D00d880f1fACA5C8d74e8501E9",tokenType:lM.Erc20},cw20:{decimals:8,address:"inj1m4g54lg2mhhm7a4h3ms5xlyecafhe4macgsuen",tokenType:lM.Cw20}},PUGGO:{name:"Puggo",symbol:"PUG",decimals:18,logo:"puggo.jpg",coinGeckoId:"",erc20:{decimals:18,address:"0xf9a06dE3F6639E6ee4F079095D5093644Ad85E8b",tokenType:lM.Erc20}},LDO:{name:"Lido DAO Token",symbol:"LDO",decimals:18,logo:"lido-dao.webp",coinGeckoId:"lido-dao",erc20:{decimals:18,address:"0x5A98FcBEA516Cf06857215779Fd812CA3beF1B32",tokenType:lM.Erc20},cw20:{decimals:8,address:"inj1me6t602jlndzxgv2d7ekcnkjuqdp7vfh4txpyy",tokenType:lM.Cw20}},USDCfr:{name:"USDC Frontrunner",symbol:"USDCfr",decimals:6,logo:"usdc.svg",coinGeckoId:"usd-coin",erc20:{decimals:6,address:"0xf9152067989BDc8783fF586624124C05A529A5D1",tokenType:lM.Erc20}},ARB:{name:"Arbitrum",symbol:"ARB",decimals:18,logo:"arb.png",coinGeckoId:"arbitrum",erc20:{decimals:18,address:"0x912CE59144191C1204E64559FE8253a0e49E6548",tokenType:lM.Erc20},cw20:{decimals:8,address:"inj1d5vz0uzwlpfvgwrwulxg6syy82axa58y4fuszd",tokenType:lM.Cw20}},EUR:{name:"Euro",symbol:"EUR",decimals:6,logo:"eur.svg",coinGeckoId:""},GBP:{name:"British Pound",symbol:"GBP",decimals:6,logo:"gpb.svg",coinGeckoId:""},JPY:{name:"Japanese Yen",symbol:"JPY",decimals:6,logo:"jpy.svg",coinGeckoId:""},BRZ:{name:"Brazilian Digital Token",symbol:"BRZ",decimals:4,logo:"brz.png",coinGeckoId:"brz",erc20:{decimals:4,address:"0x420412E765BFa6d85aaaC94b4f7b708C89be2e2B",tokenType:lM.Erc20},cw20:{decimals:4,address:"inj14jesa4q248mfxztfc9zgpswkpa4wx249mya9kk",tokenType:lM.Cw20}},ASTR:{name:"Astar",symbol:"ASTR",decimals:18,logo:"astar.svg",coinGeckoId:"astar",cw20:{decimals:18,address:"inj1mhmln627samtkuwe459ylq763r4n7n69gxxc9x",tokenType:lM.Cw20}},XAU:{name:"Gold",symbol:"XAU",decimals:6,logo:"gold.svg",coinGeckoId:""},ALPHA:{name:"Alpha Coin",symbol:"ALPHA",decimals:18,logo:"alpha.png",coinGeckoId:"alphacoin",erc20:{decimals:18,address:"0x138C2F1123cF3f82E4596d097c118eAc6684940B",tokenType:lM.Erc20},cw20:{decimals:8,address:"inj1zwnsemwrpve3wrrg0njj89w6mt5rmj9ydkc46u",tokenType:lM.Cw20}},WMATIC:{name:"Wrapped Matic",symbol:"WMATIC",decimals:18,logo:"matic.webp",coinGeckoId:"wmatic",erc20:{decimals:18,address:"0x7c9f4C87d911613Fe9ca58b579f737911AAD2D43",tokenType:lM.Erc20},cw20:{decimals:8,address:"inj1dxv423h8ygzgxmxnvrf33ws3k94aedfdevxd8h",tokenType:lM.Cw20}}},kM=(0,ua.Z)((0,ua.Z)({},_M),xM),IM=Object.keys(kM).filter((function(e){return kM[e].ibc})).map((function(e){return kM[e].ibc.baseDenom})),SM=kM,EM=function(e){var t,n=e.denom;return(null===(t=e.cw20s)||void 0===t?void 0:t.find((function(e){return n.includes(e.address)})))||e.cw20||void 0},CM=function(e){return e===dM?lM.Native:e.startsWith("inj")?lM.Cw20:e.startsWith("ibc")?lM.Ibc:e.startsWith("factory/")?lM.TokenFactory:e.startsWith("peggy")?lM.Erc20:e.startsWith("share")?lM.InsuranceFund:lM.Cw20},TM=function(e){if(e.denom.startsWith("factory/")){var t=EM(e);return(null==t?void 0:t.symbol)||e.symbol}var n,r;return e.denom.startsWith("peggy")?(null===(n=e.erc20)||void 0===n?void 0:n.symbol)||e.symbol:e.denom.startsWith("ibc")&&(null===(r=e.ibc)||void 0===r?void 0:r.symbol)||e.symbol},OM=function(e){if(e.denom===dM)return e.decimals;var t,n,r;if(e.denom.startsWith("inj"))return(null===(t=e.cw20)||void 0===t?void 0:t.decimals)||e.decimals;if(e.denom.startsWith("factory/")){var a=EM(e);return(null==a?void 0:a.decimals)||e.decimals}return e.denom.startsWith("ibc")?(null===(n=e.ibc)||void 0===n?void 0:n.decimals)||e.decimals:e.denom.startsWith("peggy")?(null===(r=e.erc20)||void 0===r?void 0:r.decimals)||e.decimals:(e.denom.startsWith("share"),e.decimals)},PM=function(e,t){var n,r=IM.includes(t||"")||(null===(n=e.ibc)||void 0===n?void 0:n.baseDenom)===t?lM.Ibc:CM(t||""),a=(0,ua.Z)((0,ua.Z)({},e),{},{tokenType:r,denom:t||""}),i=(0,ua.Z)((0,ua.Z)({},a),{},{tokenType:r,decimals:OM(a),symbol:TM(a)});return[lM.TokenFactory,lM.Cw20].includes(r)?i.cw20?(0,ua.Z)((0,ua.Z)({},i),{},{cw20s:[]}):i.cw20s?(0,ua.Z)((0,ua.Z)((0,ua.Z)({},i),function(e,t){var n=e.cw20,r=e.cw20s,a=e.denom||"";if(n||r){if(n)return(0,ua.Z)((0,ua.Z)({},e),{},{cw20:n,denom:n.address,tokenType:CM(n.address)});if(r)if(a){var i=a.startsWith("inj")?[a]:a.split("/").reverse(),o=(0,fa.Z)(i,1)[0],s=r.find((function(e){return e.address===o}));return s?(0,ua.Z)((0,ua.Z)({},e),{},{cw20:s,denom:s.address,symbol:s.symbol,tokenType:CM(s.address)}):void 0}}}((0,ua.Z)((0,ua.Z)({},i),{},{denom:t,tokenType:lM.Cw20}))),{},{tokenType:r,denom:i.denom}):i:i},MM=function(){function e(t,n){(0,ma.Z)(this,e),(0,ca.Z)(this,"denom",void 0),(0,ca.Z)(this,"meta",void 0),this.denom=t,this.meta=n}return(0,va.Z)(e,[{key:"toToken",value:function(){var e=this.meta,t=this.denom;return(0,ua.Z)((0,ua.Z)({},e),{},{denom:t,tokenType:CM(t)})}},{key:"symbol",get:function(){var e=this.meta,t=this.denom;if(t.startsWith("inj")||t.startsWith("factory/")){var n=t.startsWith("inj")?[t]:t.split("/").reverse(),r=(0,fa.Z)(n,1)[0];if(!e.cw20)return e.symbol;if(!Array.isArray(e.cw20))return e.symbol;var a=e.cw20.find((function(e){return e.address===r}));return a?a.symbol:e.symbol}return e.symbol}},{key:"logo",get:function(){return this.meta.logo}},{key:"coinGeckoId",get:function(){return this.meta.coinGeckoId}},{key:"name",get:function(){return this.meta.symbol}},{key:"splDecimals",get:function(){var e=this.meta;return e.spl?e.spl.decimals:e.decimals}},{key:"cw20Decimals",get:function(){var e=this.denom,t=this.meta;if(!e.startsWith("inj")||e.startsWith("factory/"))return t.decimals;var n=e.startsWith("inj")?[e]:e.split("/").reverse(),r=(0,fa.Z)(n,1)[0];if(!t.cw20)return t.decimals;if(!Array.isArray(t.cw20))return t.cw20.decimals;var a=t.cw20.find((function(e){return e.address===r}));return a?a.decimals:t.decimals}},{key:"erc20Decimals",get:function(){var e=this.meta;return e.erc20?e.erc20.decimals:e.decimals}},{key:"decimals",get:function(){var e=this.denom,t=this.meta;if(e.startsWith("inj")||e.startsWith("factory/")){var n=e.startsWith("inj")?[e]:e.split("/").reverse(),r=(0,fa.Z)(n,1)[0];if(!t.cw20)return t.decimals;if(!Array.isArray(t.cw20))return t.cw20.decimals;var a=t.cw20.find((function(e){return e.address===r}));return a?a.decimals:t.decimals}return e.startsWith("peggy")?t.erc20?t.erc20.decimals:t.decimals:e.startsWith("ibc")&&t.ibc?t.ibc.decimals:t.decimals}},{key:"address",get:function(){var e=this.denom,t=this.meta;if(e.startsWith("inj")||e.startsWith("factory/")){var n=e.startsWith("inj")?[e]:e.split("/").reverse();return(0,fa.Z)(n,1)[0]}return e.startsWith("peggy")?t.erc20?t.erc20.address:"":e.startsWith("ibc")&&t.erc20?t.erc20.address:""}},{key:"tokenType",get:function(){var e=this.denom;return CM(e)}},{key:"isCanonical",get:function(){return function(e){if(!e.denom.startsWith("ibc/")||!e.ibc)return!1;var t=e.ibc.path.replace("transfer/","").split("/");if(t.length>1)return!1;var n=(0,fa.Z)(t,1)[0];return hM.includes(n)}(this.toToken())}}],[{key:"fromMeta",value:function(t,n){if(!t.denom&&!n)throw new hk(new Error("Please provide a ".concat(n)));return new e(t.denom||n,t)}},{key:"fromToken",value:function(t){return new e(t.denom,t)}}]),e}(),BM=function(){function e(t){(0,ma.Z)(this,e),(0,ca.Z)(this,"tokens",void 0),(0,ca.Z)(this,"tokensByErc20Address",void 0),(0,ca.Z)(this,"tokensByCw20Address",void 0),(0,ca.Z)(this,"tokensByHash",void 0),(0,ca.Z)(this,"tokensByName",void 0),this.tokens=function(e){return Object.keys(e).reduce((function(t,n){var r,a,i,o=e[n];if(o.ibc&&o.ibc.baseDenom)return(0,ua.Z)((0,ua.Z)({},t),{},(r={},(0,ca.Z)(r,o.ibc.baseDenom.toUpperCase(),o),(0,ca.Z)(r,o.symbol.toUpperCase(),o),r));if(o.cw20&&o.cw20.address)return(0,ua.Z)((0,ua.Z)({},t),{},(a={},(0,ca.Z)(a,o.cw20.address.toUpperCase(),o),(0,ca.Z)(a,o.symbol.toUpperCase(),o),a));if(o.spl&&o.spl.address)return(0,ua.Z)((0,ua.Z)({},t),{},(i={},(0,ca.Z)(i,o.spl.address.toUpperCase(),o),(0,ca.Z)(i,o.symbol.toUpperCase(),o),i));if(o.cw20s){var s=o.cw20s.reduce((function(e,t){return(0,ua.Z)((0,ua.Z)({},e),{},(0,ca.Z)({},t.symbol.toUpperCase(),o))}),{});return(0,ua.Z)((0,ua.Z)((0,ua.Z)({},t),s),{},(0,ca.Z)({},o.symbol.toUpperCase(),o))}return(0,ua.Z)((0,ua.Z)({},t),{},(0,ca.Z)({},o.symbol.toUpperCase(),o))}),{})}(t),this.tokensByErc20Address=function(e){return Object.keys(e).filter((function(t){return!!e[t].erc20})).reduce((function(t,n){return e[n].erc20?(0,ua.Z)((0,ua.Z)({},t),{},(0,ca.Z)({},e[n].erc20.address,e[n])):t}),{})}(this.tokens),this.tokensByCw20Address=function(e){return Object.keys(e).filter((function(t){return e[t].cw20||e[t].cw20s})).reduce((function(t,n){if(!e[n].cw20&&!e[n].cw20s)return t;var r=e[n];if(r.cw20)return(0,ua.Z)((0,ua.Z)({},t),{},(0,ca.Z)({},r.cw20.address,e[n]));if(r.cw20s){var a=r.cw20s.reduce((function(t,r){return(0,ua.Z)((0,ua.Z)({},t),{},(0,ca.Z)({},r.address,e[n]))}),{});return(0,ua.Z)((0,ua.Z)({},t),a)}return t}),{})}(this.tokens),this.tokensByHash=function(e){return Object.keys(e).reduce((function(t,n){return e[n].ibc?(0,ua.Z)((0,ua.Z)({},t),{},(0,ca.Z)({},e[n].ibc.hash.toUpperCase(),e[n])):t}),{})}(this.tokens),this.tokensByName=function(e){return Object.keys(e).reduce((function(t,n){return(0,ua.Z)((0,ua.Z)({},t),{},(0,ca.Z)({},e[n].name.toLowerCase(),e[n]))}),{})}(this.tokens)}return(0,va.Z)(e,[{key:"getMetaBySymbol",value:function(e){var t=this.tokens,n=e.toUpperCase();if(t[n]||t[e])return t[n]||t[e]}},{key:"getMetaByAddress",value:function(e){return e.startsWith("0x")?this.getMetaByErc20Address(e):this.getMetaByCw20Address(e)}},{key:"getMetaByCw20Address",value:function(e){var t=this.tokensByCw20Address,n=e.toLowerCase();if(t[n]||t[e]){var r=t[n]||t[e];return r?(0,ua.Z)((0,ua.Z)({},r),{},{tokenType:lM.Cw20}):void 0}}},{key:"getMetaByErc20Address",value:function(e){var t=this.tokensByErc20Address,n=e.toLowerCase();if(!t[n]&&!t[e]){var r=Object.keys(t).find((function(t){return t.toLowerCase()===e||t.toLowerCase()===n}));return r?(0,ua.Z)((0,ua.Z)({},t[r]),{},{tokenType:lM.Erc20}):void 0}var a=t[n]||t[e];return a?(0,ua.Z)((0,ua.Z)({},a),{},{tokenType:lM.Erc20}):void 0}},{key:"getMetaByHash",value:function(e){var t=this.tokensByHash,n=e.toUpperCase().replace("IBC/","");if(t[n]||t[e]){var r=t[n]||t[e];return r?(0,ua.Z)((0,ua.Z)({},r),{},{tokenType:lM.Ibc}):void 0}}},{key:"getMetaByName",value:function(e){var t=this.tokensByName,n=e.toLowerCase();if(t[n]||t[e])return t[n]||t[e]}},{key:"getCoinGeckoIdFromSymbol",value:function(e){var t=this.tokens,n=e.toUpperCase();return t[n]&&t[n].coinGeckoId||""}}]),e}(),NM={INJ:"0xBe8d71D26525440A03311cc7fa372262c5354A3c"},RM={INJ:"0xBe8d71D26525440A03311cc7fa372262c5354A3c"},DM={INJ:"0xBe8d71D26525440A03311cc7fa372262c5354A3c"},jM=function(e,t){var n=SM[e];return SM[e].erc20&&t?(0,ua.Z)((0,ua.Z)({},n),{},{erc20:(0,ua.Z)((0,ua.Z)({},SM[e].erc20),t?{address:t}:{})}):n},UM=function(){return Object.keys(SM).reduce((function(e,t){var n=t,r=NM[n];return(0,ua.Z)((0,ua.Z)({},e),{},(0,ca.Z)({},n.toUpperCase(),jM(t,r)))}),{})},LM=function(){return Object.keys(SM).reduce((function(e,t){var n=t,r=RM[n];return(0,ua.Z)((0,ua.Z)({},e),{},(0,ca.Z)({},n.toUpperCase(),jM(t,r)))}),{})},FM=function(){return Object.keys(SM).reduce((function(e,t){var n=t,r=DM[n];return(0,ua.Z)((0,ua.Z)({},e),{},(0,ca.Z)({},n.toUpperCase(),jM(t,r)))}),{})},ZM={INJ:"0xAD1794307245443B3Cb55d88e79EEE4d8a548C03",USDT:"0x87aB3B4C8661e07D6372361211B96ed4Dc36B1B5",APE:"0x44C21afAaF20c270EBbF5914Cfc3b5022173FEB7",USDC:"0x07865c6E87B9F70255377e024ace6630C1Eaa37F",wETH:"0xdB309Bb079EB419C18fe7D568c61cD2FdB65D9aF"},HM={SOL:"inj12ngevx045zpvacus9s6anr258gkwpmthnz80e9",USDC:{USDCet:"inj12sqy9uzzl3h3vqxam7sz9f0yvmhampcgesh3qw"}},zM={ASTRO:{hash:"E8AC6B792CDE60AB208CA060CA010A3881F682A7307F624347AB71B6A0B0BF89",path:"transfer/channel-13",channelId:"channel-13",baseDenom:"ASTRO"}},QM=function(){return Object.keys(SM).reduce((function(e,t){var n=t.toUpperCase(),r=(0,ua.Z)({},SM[t]);if(wM[n]&&(r.cw20s=[].concat((0,ga.Z)(r.cw20s||[]),[wM[n]])),!(r.erc20||r.cw20||r.cw20s||r.ibc))return(0,ua.Z)((0,ua.Z)({},e),{},(0,ca.Z)({},n,r));var a=ZM[t],i=HM[t],o=zM[t];if(!a&&!i&&!o)return(0,ua.Z)((0,ua.Z)({},e),{},(0,ca.Z)({},n,r));var s=(0,ua.Z)({},r);if(o&&s.ibc&&(s.ibc=(0,ua.Z)((0,ua.Z)({},s.ibc),{},{hash:o.hash,path:o.path,channelId:o.channelId})),a&&s.erc20&&(s.erc20.address=a),i&&(s.cw20&&"string"==typeof i&&(s.cw20.address=i),s.cw20s&&"string"!=typeof i)){var c=s.cw20s.map((function(e){var t=e.symbol;return i[t]?(0,ua.Z)((0,ua.Z)({},e),{},{address:i[t]}):e}));s.cw20s=c}return(0,ua.Z)((0,ua.Z)({},e),{},(0,ca.Z)({},n,s))}),{})},qM=function(){function e(t){(0,ma.Z)(this,e),(0,ca.Z)(this,"tokenMetaUtils",void 0),this.tokenMetaUtils=t}return(0,va.Z)(e,[{key:"toToken",value:function(e){var t=e.startsWith("ibc/")||e.startsWith("peggy")||e.startsWith("factory/");if(e===dM)return PM(this.tokenMetaUtils.getMetaBySymbol(e),e);try{if(!t){var n=this.tokenMetaUtils.getMetaBySymbol(e);if(n)return PM(n,e);var r=this.tokenMetaUtils.getMetaByAddress(e);if(r)return PM(r,e);var a=this.tokenMetaUtils.getMetaByName(e);return a?PM(a,e):void 0}if(e.startsWith("ibc/")){var i=this.getIbcDenomTokenMeta(e);return i?PM(i,e):void 0}if(e.startsWith("factory/")){var o=this.getFactoryDenomTokenMeta(e);return o?PM(o,e):void 0}if(e.startsWith("peggy")){var s=this.getPeggyDenomTokenMeta(e);return s?PM(s,e):void 0}var c=this.getCw20DenomTokenMeta(e);return c?PM(c,e):void 0}catch(e){return}}},{key:"toTokenInfo",value:function(e){var t=this.toToken(e);return t?MM.fromToken(t):void 0}},{key:"getPeggyDenomTokenMeta",value:function(e){var t=e.startsWith("peggy")?e.replace("peggy",""):e;if(!t.startsWith("0x"))throw new hk(new Error("The address ".concat(t," is not a valid ERC20 address")));if(42!==t.length)throw new hk(new Error("The address ".concat(t," is not a valid ERC20 address")));return this.tokenMetaUtils.getMetaByAddress(t)}},{key:"getCw20DenomTokenMeta",value:function(e){if(!e.startsWith("inj"))throw new hk(new Error("The address ".concat(e," is not a valid CW20 address")));return this.tokenMetaUtils.getMetaByAddress(e)}},{key:"getIbcDenomTokenMeta",value:function(e){return this.tokenMetaUtils.getMetaByHash(e)}},{key:"getFactoryDenomTokenMeta",value:function(e){var t=e.split("/").reverse(),n=(0,fa.Z)(t,1)[0];if(!n)throw new hk(new Error("The address ".concat(n," is not a valid CW20 address")));var r=this.tokenMetaUtils.getMetaByAddress(n);return r?(0,ua.Z)((0,ua.Z)({},r),{},{tokenType:lM.TokenFactory}):void 0}}],[{key:"make",value:function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:KP.Mainnet){case KP.Staging:case KP.Mainnet:case KP.MainnetK8s:case KP.MainnetLB:case KP.Local:return new e(new BM(SM));case KP.Devnet:return new e(new BM(UM()));case KP.Devnet1:return new e(new BM(LM()));case KP.Devnet2:return new e(new BM(FM()));case KP.Testnet:case KP.TestnetOld:case KP.TestnetK8s:return new e(new BM(QM()));default:return new e(new BM(SM))}}}]),e}(),VM=function(){function e(){(0,ma.Z)(this,e)}return(0,va.Z)(e,null,[{key:"make",value:function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:KP.Mainnet){case KP.Staging:case KP.Mainnet:case KP.MainnetK8s:case KP.MainnetLB:case KP.Local:return new BM(SM);case KP.Devnet:return new BM(UM());case KP.Devnet1:return new BM(LM());case KP.Devnet2:return new BM(FM());case KP.Testnet:case KP.TestnetOld:case KP.TestnetK8s:return new BM(QM());default:return new BM(SM)}}}]),e}(),JM=(VM.make(),qM.make(),new jk(0),(0,va.Z)((function e(){(0,ma.Z)(this,e)})));(0,ca.Z)(JM,"tradesStreamCallback",(function(e){var t=e.trade;return{trade:t?VP.grpcTradeToTrade(t):void 0,operation:e.operationType,timestamp:e.timestamp}})),(0,ca.Z)(JM,"ordersStreamCallback",(function(e){var t=e.order;return{order:t?VP.grpcOrderToOrder(t):void 0,operation:e.operationType,timestamp:e.timestamp}})),(0,ca.Z)(JM,"orderHistoryStreamCallback",(function(e){var t=e.order;return{order:t?VP.grpcOrderHistoryToOrderHistory(t):void 0,operation:e.operationType,timestamp:e.timestamp}})),(0,ca.Z)(JM,"orderbookV2StreamCallback",(function(e){var t=e.orderbook;return{orderbook:t?VP.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(t.sequence,10),buys:t.buys,sells:t.sells}):void 0,operation:e.operationType,marketId:e.marketId,timestamp:e.timestamp}})),(0,ca.Z)(JM,"orderbookUpdateStreamCallback",(function(e){var t=e.orderbookLevelUpdates;return{orderbook:t?VP.grpcOrderbookV2ToOrderbookV2({sequence:parseInt(t.sequence,10),buys:t.buys,sells:t.sells}):void 0,operation:e.operationType,marketId:e.marketId,timestamp:e.timestamp}})),function(e){e.Internal="internal",e.External="external",e.Withdraw="withdraw",e.Deposit="deposit"}(yM||(yM={})),function(e){e[e.AccessTypeUnspecified=0]="AccessTypeUnspecified",e[e.AccessTypeNobody=1]="AccessTypeNobody",e[e.AccessTypeOnlyAddress=2]="AccessTypeOnlyAddress",e[e.AccessTypeEverybody=3]="AccessTypeEverybody"}(mM||(mM={})),function(e){e.AccessTypeUnspecified="Unspecified",e.AccessTypeNobody="Nobody",e.AccessTypeOnlyAddress="Only Address",e.AccessTypeEverybody="Everybody"}(vM||(vM={})),function(e){e.Proposed="proposed",e.Signed="signed",e.Missed="missed"}(gM||(gM={})),function(e){e.Pending="pending",e.Disbursed="disbursed"}(AM||(AM={})),(0,ua.Z)({},E_);var KM=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),KM.Error;var GM=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),GM.Error;var WM=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),WM.Error;var YM=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),YM.Error;var XM=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),XM.Error;var $M=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),$M.Error;var eB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),eB.Error;var tB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),tB.Error;var nB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),nB.Error;var rB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),rB.Error;var aB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),aB.Error,Bk()||Wk.grpc.setDefaultTransport(TP());var iB=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw"Unable to locate global object"}();Me.util.Long!==Oe&&(Me.util.Long=Oe,Me.configure()),iB.Error,n(5886).Buffer;var oB=n(44272);function sB(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var cB=/\r\n|[\n\r]/g;function uB(e,t){var n,r=0,a=1,i=(0,ha.Z)(e.body.matchAll(cB));try{for(i.s();!(n=i.n()).done;){var o=n.value;if("number"==typeof o.index||sB(!1),o.index>=t)break;r=o.index+o[0].length,a+=1}}catch(e){i.e(e)}finally{i.f()}return{line:a,column:t+1-r}}function dB(e){return fB(e.source,uB(e.source,e.start))}function fB(e,t){var n=e.locationOffset.column-1,r="".padStart(n)+e.body,a=t.line-1,i=e.locationOffset.line-1,o=t.line+i,s=1===t.line?n:0,c=t.column+s,u="".concat(e.name,":").concat(o,":").concat(c,"\n"),d=r.split(/\r\n|[\n\r]/g),f=d[a];if(f.length>120){for(var l=Math.floor(c/80),b=c%80,p=[],h=0;h1?s-1:0),u=1;u0&&(e.extensions=this.extensions),e}}]),r}((0,la.Z)(Error),Symbol.toStringTag);function pB(e){return void 0===e||0===e.length?void 0:e}function hB(e,t,n){return new bB("Syntax Error: ".concat(n),{source:e,positions:[t]})}var yB,mB,vB,gB,AB,wB=function(e){function t(e,n,r){(0,ma.Z)(this,t),this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=r}return(0,va.Z)(t,[{key:e,get:function(){return"Location"}},{key:"toJSON",value:function(){return{start:this.start,end:this.end}}}]),t}(Symbol.toStringTag),xB=function(e){function t(e,n,r,a,i,o){(0,ma.Z)(this,t),this.kind=e,this.start=n,this.end=r,this.line=a,this.column=i,this.value=o,this.prev=null,this.next=null}return(0,va.Z)(t,[{key:e,get:function(){return"Token"}},{key:"toJSON",value:function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}]),t}(Symbol.toStringTag);function _B(e){return e>=48&&e<=57}function kB(e){return e>=97&&e<=122||e>=65&&e<=90}function IB(e){return kB(e)||95===e}function SB(e){for(var t,n=Number.MAX_SAFE_INTEGER,r=null,a=-1,i=0;i",AB.EOF="",AB.BANG="!",AB.DOLLAR="$",AB.AMP="&",AB.PAREN_L="(",AB.PAREN_R=")",AB.SPREAD="...",AB.COLON=":",AB.EQUALS="=",AB.AT="@",AB.BRACKET_L="[",AB.BRACKET_R="]",AB.BRACE_L="{",AB.PIPE="|",AB.BRACE_R="}",AB.NAME="Name",AB.INT="Int",AB.FLOAT="Float",AB.STRING="String",AB.BLOCK_STRING="BlockString",AB.COMMENT="Comment";var CB=function(e){function t(e){(0,ma.Z)(this,t);var n=new xB(gB.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}return(0,va.Z)(t,[{key:e,get:function(){return"Lexer"}},{key:"advance",value:function(){return this.lastToken=this.token,this.token=this.lookahead()}},{key:"lookahead",value:function(){var e=this.token;if(e.kind!==gB.EOF)do{if(e.next)e=e.next;else{var t=RB(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===gB.COMMENT);return e}}]),t}(Symbol.toStringTag);function TB(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function OB(e,t){return PB(e.charCodeAt(t))&&MB(e.charCodeAt(t+1))}function PB(e){return e>=55296&&e<=56319}function MB(e){return e>=56320&&e<=57343}function BB(e,t){var n=e.source.body.codePointAt(t);if(void 0===n)return gB.EOF;if(n>=32&&n<=126){var r=String.fromCodePoint(n);return'"'===r?"'\"'":'"'.concat(r,'"')}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function NB(e,t,n,r,a){var i=e.line,o=1+n-e.lineStart;return new xB(t,n,r,i,o,a)}function RB(e,t){for(var n=e.source.body,r=n.length,a=t;a=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function QB(e,t){var n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw hB(e.source,t,'Invalid character escape sequence: "'.concat(n.slice(t,t+2),'".'))}function qB(e,t){for(var n=e.source.body,r=n.length,a=e.lineStart,i=t+3,o=i,s="",c=[];i2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,a=[],i=0;i1&&a.push("... ".concat(r," more items")),"["+a.join(", ")+"]"}(e,n);return function(e,t){var n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]";var r=n.map((function(e){var n=(0,fa.Z)(e,2);return n[0]+": "+KB(n[1],t)}));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var GB=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};(0,ma.Z)(this,t),"string"==typeof e||JB(!1,"Body must be a string. Received: ".concat(KB(e,[]),".")),this.body=e,this.name=n,this.locationOffset=r,this.locationOffset.line>0||JB(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||JB(!1,"column in locationOffset is 1-indexed and must be positive.")}return(0,va.Z)(t,[{key:e,get:function(){return"Source"}}]),t}(Symbol.toStringTag),WB=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,ma.Z)(this,e);var r=function(e){return e instanceof GB}(t)?t:new GB(t);this._lexer=new CB(r),this._options=n,this._tokenCounter=0}return(0,va.Z)(e,[{key:"parseName",value:function(){var e=this.expectToken(gB.NAME);return this.node(e,{kind:vB.NAME,value:e.value})}},{key:"parseDocument",value:function(){return this.node(this._lexer.token,{kind:vB.DOCUMENT,definitions:this.many(gB.SOF,this.parseDefinition,gB.EOF)})}},{key:"parseDefinition",value:function(){if(this.peek(gB.BRACE_L))return this.parseOperationDefinition();var e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===gB.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw hB(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}},{key:"parseOperationDefinition",value:function(){var e=this._lexer.token;if(this.peek(gB.BRACE_L))return this.node(e,{kind:vB.OPERATION_DEFINITION,operation:yB.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});var t,n=this.parseOperationType();return this.peek(gB.NAME)&&(t=this.parseName()),this.node(e,{kind:vB.OPERATION_DEFINITION,operation:n,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseOperationType",value:function(){var e=this.expectToken(gB.NAME);switch(e.value){case"query":return yB.QUERY;case"mutation":return yB.MUTATION;case"subscription":return yB.SUBSCRIPTION}throw this.unexpected(e)}},{key:"parseVariableDefinitions",value:function(){return this.optionalMany(gB.PAREN_L,this.parseVariableDefinition,gB.PAREN_R)}},{key:"parseVariableDefinition",value:function(){return this.node(this._lexer.token,{kind:vB.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(gB.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(gB.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}},{key:"parseVariable",value:function(){var e=this._lexer.token;return this.expectToken(gB.DOLLAR),this.node(e,{kind:vB.VARIABLE,name:this.parseName()})}},{key:"parseSelectionSet",value:function(){return this.node(this._lexer.token,{kind:vB.SELECTION_SET,selections:this.many(gB.BRACE_L,this.parseSelection,gB.BRACE_R)})}},{key:"parseSelection",value:function(){return this.peek(gB.SPREAD)?this.parseFragment():this.parseField()}},{key:"parseField",value:function(){var e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(gB.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:vB.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(gB.BRACE_L)?this.parseSelectionSet():void 0})}},{key:"parseArguments",value:function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(gB.PAREN_L,t,gB.PAREN_R)}},{key:"parseArgument",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._lexer.token,n=this.parseName();return this.expectToken(gB.COLON),this.node(t,{kind:vB.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}},{key:"parseConstArgument",value:function(){return this.parseArgument(!0)}},{key:"parseFragment",value:function(){var e=this._lexer.token;this.expectToken(gB.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(gB.NAME)?this.node(e,{kind:vB.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:vB.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentDefinition",value:function(){var e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:vB.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:vB.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}},{key:"parseFragmentName",value:function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}},{key:"parseValueLiteral",value:function(e){var t=this._lexer.token;switch(t.kind){case gB.BRACKET_L:return this.parseList(e);case gB.BRACE_L:return this.parseObject(e);case gB.INT:return this.advanceLexer(),this.node(t,{kind:vB.INT,value:t.value});case gB.FLOAT:return this.advanceLexer(),this.node(t,{kind:vB.FLOAT,value:t.value});case gB.STRING:case gB.BLOCK_STRING:return this.parseStringLiteral();case gB.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:vB.BOOLEAN,value:!0});case"false":return this.node(t,{kind:vB.BOOLEAN,value:!1});case"null":return this.node(t,{kind:vB.NULL});default:return this.node(t,{kind:vB.ENUM,value:t.value})}case gB.DOLLAR:if(e){if(this.expectToken(gB.DOLLAR),this._lexer.token.kind===gB.NAME){var n=this._lexer.token.value;throw hB(this._lexer.source,t.start,'Unexpected variable "$'.concat(n,'" in constant value.'))}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}},{key:"parseConstValueLiteral",value:function(){return this.parseValueLiteral(!0)}},{key:"parseStringLiteral",value:function(){var e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:vB.STRING,value:e.value,block:e.kind===gB.BLOCK_STRING})}},{key:"parseList",value:function(e){var t=this;return this.node(this._lexer.token,{kind:vB.LIST,values:this.any(gB.BRACKET_L,(function(){return t.parseValueLiteral(e)}),gB.BRACKET_R)})}},{key:"parseObject",value:function(e){var t=this;return this.node(this._lexer.token,{kind:vB.OBJECT,fields:this.any(gB.BRACE_L,(function(){return t.parseObjectField(e)}),gB.BRACE_R)})}},{key:"parseObjectField",value:function(e){var t=this._lexer.token,n=this.parseName();return this.expectToken(gB.COLON),this.node(t,{kind:vB.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}},{key:"parseDirectives",value:function(e){for(var t=[];this.peek(gB.AT);)t.push(this.parseDirective(e));return t}},{key:"parseConstDirectives",value:function(){return this.parseDirectives(!0)}},{key:"parseDirective",value:function(e){var t=this._lexer.token;return this.expectToken(gB.AT),this.node(t,{kind:vB.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}},{key:"parseTypeReference",value:function(){var e,t=this._lexer.token;if(this.expectOptionalToken(gB.BRACKET_L)){var n=this.parseTypeReference();this.expectToken(gB.BRACKET_R),e=this.node(t,{kind:vB.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(gB.BANG)?this.node(t,{kind:vB.NON_NULL_TYPE,type:e}):e}},{key:"parseNamedType",value:function(){return this.node(this._lexer.token,{kind:vB.NAMED_TYPE,name:this.parseName()})}},{key:"peekDescription",value:function(){return this.peek(gB.STRING)||this.peek(gB.BLOCK_STRING)}},{key:"parseDescription",value:function(){if(this.peekDescription())return this.parseStringLiteral()}},{key:"parseSchemaDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var n=this.parseConstDirectives(),r=this.many(gB.BRACE_L,this.parseOperationTypeDefinition,gB.BRACE_R);return this.node(e,{kind:vB.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}},{key:"parseOperationTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(gB.COLON);var n=this.parseNamedType();return this.node(e,{kind:vB.OPERATION_TYPE_DEFINITION,operation:t,type:n})}},{key:"parseScalarTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:vB.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var n=this.parseName(),r=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:vB.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:a,fields:i})}},{key:"parseImplementsInterfaces",value:function(){return this.expectOptionalKeyword("implements")?this.delimitedMany(gB.AMP,this.parseNamedType):[]}},{key:"parseFieldsDefinition",value:function(){return this.optionalMany(gB.BRACE_L,this.parseFieldDefinition,gB.BRACE_R)}},{key:"parseFieldDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(gB.COLON);var a=this.parseTypeReference(),i=this.parseConstDirectives();return this.node(e,{kind:vB.FIELD_DEFINITION,description:t,name:n,arguments:r,type:a,directives:i})}},{key:"parseArgumentDefs",value:function(){return this.optionalMany(gB.PAREN_L,this.parseInputValueDef,gB.PAREN_R)}},{key:"parseInputValueDef",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(gB.COLON);var r,a=this.parseTypeReference();this.expectOptionalToken(gB.EQUALS)&&(r=this.parseConstValueLiteral());var i=this.parseConstDirectives();return this.node(e,{kind:vB.INPUT_VALUE_DEFINITION,description:t,name:n,type:a,defaultValue:r,directives:i})}},{key:"parseInterfaceTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var n=this.parseName(),r=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),i=this.parseFieldsDefinition();return this.node(e,{kind:vB.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:a,fields:i})}},{key:"parseUnionTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var n=this.parseName(),r=this.parseConstDirectives(),a=this.parseUnionMemberTypes();return this.node(e,{kind:vB.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:a})}},{key:"parseUnionMemberTypes",value:function(){return this.expectOptionalToken(gB.EQUALS)?this.delimitedMany(gB.PIPE,this.parseNamedType):[]}},{key:"parseEnumTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var n=this.parseName(),r=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();return this.node(e,{kind:vB.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:a})}},{key:"parseEnumValuesDefinition",value:function(){return this.optionalMany(gB.BRACE_L,this.parseEnumValueDefinition,gB.BRACE_R)}},{key:"parseEnumValueDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:vB.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}},{key:"parseEnumValueName",value:function(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw hB(this._lexer.source,this._lexer.token.start,"".concat(YB(this._lexer.token)," is reserved and cannot be used for an enum value."));return this.parseName()}},{key:"parseInputObjectTypeDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var n=this.parseName(),r=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();return this.node(e,{kind:vB.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:a})}},{key:"parseInputFieldsDefinition",value:function(){return this.optionalMany(gB.BRACE_L,this.parseInputValueDef,gB.BRACE_R)}},{key:"parseTypeSystemExtension",value:function(){var e=this._lexer.lookahead();if(e.kind===gB.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}},{key:"parseSchemaExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseConstDirectives(),n=this.optionalMany(gB.BRACE_L,this.parseOperationTypeDefinition,gB.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:vB.SCHEMA_EXTENSION,directives:t,operationTypes:n})}},{key:"parseScalarTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:vB.SCALAR_TYPE_EXTENSION,name:t,directives:n})}},{key:"parseObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===a.length)throw this.unexpected();return this.node(e,{kind:vB.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:a})}},{key:"parseInterfaceTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),a=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===a.length)throw this.unexpected();return this.node(e,{kind:vB.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:a})}},{key:"parseUnionTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:vB.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}},{key:"parseEnumTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:vB.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}},{key:"parseInputObjectTypeExtension",value:function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:vB.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}},{key:"parseDirectiveDefinition",value:function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(gB.AT);var n=this.parseName(),r=this.parseArgumentDefs(),a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var i=this.parseDirectiveLocations();return this.node(e,{kind:vB.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:a,locations:i})}},{key:"parseDirectiveLocations",value:function(){return this.delimitedMany(gB.PIPE,this.parseDirectiveLocation)}},{key:"parseDirectiveLocation",value:function(){var e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(mB,t.value))return t;throw this.unexpected(e)}},{key:"node",value:function(e,t){return!0!==this._options.noLocation&&(t.loc=new wB(e,this._lexer.lastToken,this._lexer.source)),t}},{key:"peek",value:function(e){return this._lexer.token.kind===e}},{key:"expectToken",value:function(e){var t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw hB(this._lexer.source,t.start,"Expected ".concat(XB(e),", found ").concat(YB(t),"."))}},{key:"expectOptionalToken",value:function(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}},{key:"expectKeyword",value:function(e){var t=this._lexer.token;if(t.kind!==gB.NAME||t.value!==e)throw hB(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(YB(t),"."));this.advanceLexer()}},{key:"expectOptionalKeyword",value:function(e){var t=this._lexer.token;return t.kind===gB.NAME&&t.value===e&&(this.advanceLexer(),!0)}},{key:"unexpected",value:function(e){var t=null!=e?e:this._lexer.token;return hB(this._lexer.source,t.start,"Unexpected ".concat(YB(t),"."))}},{key:"any",value:function(e,t,n){this.expectToken(e);for(var r=[];!this.expectOptionalToken(n);)r.push(t.call(this));return r}},{key:"optionalMany",value:function(e,t,n){if(this.expectOptionalToken(e)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}return[]}},{key:"many",value:function(e,t,n){this.expectToken(e);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}},{key:"delimitedMany",value:function(e,t){this.expectOptionalToken(e);var n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}},{key:"advanceLexer",value:function(){var e=this._options.maxTokens,t=this._lexer.advance();if(void 0!==e&&t.kind!==gB.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw hB(this._lexer.source,t.start,"Document contains more that ".concat(e," tokens. Parsing aborted."))}}]),e}();function YB(e){var t=e.value;return XB(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function XB(e){return function(e){return e===gB.BANG||e===gB.DOLLAR||e===gB.AMP||e===gB.PAREN_L||e===gB.PAREN_R||e===gB.SPREAD||e===gB.COLON||e===gB.EQUALS||e===gB.AT||e===gB.BRACKET_L||e===gB.BRACKET_R||e===gB.BRACE_L||e===gB.PIPE||e===gB.BRACE_R}(e)?'"'.concat(e,'"'):e}var $B=new Map,eN=new Map,tN=!0,nN=!1;function rN(e){return e.replace(/[\s,]+/g," ").trim()}function aN(e){var t,n,r,a=rN(e);if(!$B.has(a)){var i=function(e,t){return new WB(e,t).parseDocument()}(e,{experimentalFragmentVariables:nN,allowLegacyFragmentVariables:nN});if(!i||"Document"!==i.kind)throw new Error("Not a valid GraphQL document.");$B.set(a,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=i,n=new Set,r=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,a=rN((o=e.loc).source.body.substring(o.start,o.end)),i=eN.get(t);i&&!i.has(a)?tN&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):i||eN.set(t,i=new Set),i.add(a),n.has(a)||(n.add(a),r.push(e))}else r.push(e);var o})),(0,jn.pi)((0,jn.pi)({},t),{definitions:r}))))}return $B.get(a)}function iN(e){for(var t=[],n=1;n1&&void 0!==arguments[1]&&arguments[1];if(e=bN(e),!0===t)return CN.from(e,"hex").toString("base64");for(var n="";e.length%4!=0;)e="0"+e;for(var r=0;r1&&void 0!==arguments[1]&&arguments[1]))return pN(CN.from(e,"base64").toString("hex"));for(var t="",n=0;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]5&&void 0!==arguments[5]?arguments[5]:AA,i=gx([{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:t,isSigner:!1,isWritable:!1}],n,arguments.length>4&&void 0!==arguments[4]?arguments[4]:[]),o=VN.alloc(JN.span);return JN.encode({instruction:cx.Approve,amount:BigInt(r)},o),new xd.TransactionInstruction({keys:i,programId:a,data:o})}(new xd.PublicKey(t),EA(e),new xd.PublicKey(n),r)}function GN(e,t){var n=Rh(e,t),r=n.emitter,a=n.sequence;return{wormholeBridge:(0,lg.Pj)(t),wormholeEmitter:r,wormholeSequence:a,wormholeFeeCollector:pg(t)}}function WN(e,t,n,r){var a=Bg(t,n,e,r);return{payer:a.payer,wormholeBridge:a.bridge,wormholeMessage:a.message,wormholeEmitter:a.emitter,wormholeSequence:a.sequence,wormholeFeeCollector:a.feeCollector,clock:a.clock,rent:a.rent,systemProgram:a.systemProgram}}var YN=n(5886).Buffer;function XN(e){return(0,Oh.xc)([YN.from("sender")],e)}function $N(e){return(0,Oh.xc)([YN.from("redeemer")],e)}var eR=n(5886).Buffer,tR=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},nR=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},sR=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},lR=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},yR=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},_R=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&(S=(0,Tp.makePaymentTxnWithSuggestedParamsFromObject)({from:r,suggestedParams:w,to:(0,kd.getApplicationAddress)(t),amount:x}),b.push({tx:S,signer:null})),g?[3,8]:(_=vR.from("native","binary").toString("hex"),[4,my(e,r,t,a,_)]);case 7:k=R.sent(),m=k.addr,b.push.apply(b,_R([],xR(k.txs))),R.label=8;case 8:return(I=a!==BigInt(0))?[4,_y(e,a,m)]:[3,10];case 9:I=!R.sent(),R.label=10;case 10:return I&&(S=(0,Tp.makePaymentTxnWithSuggestedParamsFromObject)({from:r,to:m,amount:1e5,suggestedParams:w}),b.push({tx:S,signer:null}),E=Am("optin"),(C=(0,Tp.makeApplicationCallTxnFromObject)({from:r,appIndex:Vh(t),onComplete:Tp.OnApplicationComplete.NoOpOC,appArgs:[E,Jb(a,8)],foreignAssets:[Vh(a)],accounts:[m],suggestedParams:w})).fee*=2,b.push({tx:C,signer:null})),T=(0,Tp.makeApplicationCallTxnFromObject)({from:r,appIndex:Vh(t),onComplete:Tp.OnApplicationComplete.NoOpOC,appArgs:[Am("nop")],suggestedParams:w}),b.push({tx:T,signer:null}),O=[],a===BigInt(0)?(P=(0,Tp.makePaymentTxnWithSuggestedParamsFromObject)({from:r,to:m,amount:i,suggestedParams:w}),b.push({tx:P,signer:null}),O=[h,m,m]):(M=(0,Tp.makeAssetTransferTxnWithSuggestedParamsFromObject)({from:r,to:m,suggestedParams:w,amount:i,assetIndex:Vh(a)}),b.push({tx:M,signer:null}),O=[h,m,v.address]),B=[Am("sendTransfer"),Jb(a,8),Jb(i,8),sm(o),Jb(d,8),Jb(c,8)],null!==u&&B.push(u),(N=(0,Tp.makeApplicationCallTxnFromObject)({from:r,appIndex:Vh(t),onComplete:Tp.OnApplicationComplete.NoOpOC,appArgs:B,foreignApps:[Vh(n)],foreignAssets:[Vh(a)],accounts:O,suggestedParams:w})).fee*=2,b.push({tx:N,signer:null}),[2,b]}}))}))}function BR(e,t,n,r,a,i,o,s,c,u){return void 0===u&&(u=""),AR(this,void 0,void 0,(function(){var d,f,l,b;return wR(this,(function(p){switch(p.label){case 0:return d=ag(r,a),[4,nm(e,n,"message_fee",{})];case 1:return f=p.sent(),s=fe(s),d?[2,[{contractId:r,methodName:"send_transfer_wormhole_token",args:{token:a,amount:i.toString(10),receiver:om(o),chain:s,fee:c.toString(10),payload:u,message_fee:f},attachedDeposit:new(Jy())(f+1),gas:new(Jy())("100000000000000")}]]:[3,2];case 2:return l=[],[4,nm(e,a,"storage_balance_of",{account_id:r})];case 3:return null===p.sent()&&l.push({contractId:a,methodName:"storage_deposit",args:{account_id:r,registration_only:!0},gas:new(Jy())("100000000000000"),attachedDeposit:new(Jy())("2000000000000000000000")}),f>0?[4,nm(e,r,"bank_balance",{acct:t})]:[3,5];case 4:(b=p.sent())[0]||l.push({contractId:r,methodName:"register_bank",args:{},gas:new(Jy())("100000000000000"),attachedDeposit:new(Jy())("2000000000000000000000")}),b[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint8",e,t)}},{key:"uint16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("uint16"),e,t)}},{key:"uint16le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint16le",e,t)}},{key:"uint16be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint16be",e,t)}},{key:"uint32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("uint32"),e,t)}},{key:"uint32le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint32le",e,t)}},{key:"uint32be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint32be",e,t)}},{key:"int8",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int8",e,t)}},{key:"int16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("int16"),e,t)}},{key:"int16le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int16le",e,t)}},{key:"int16be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int16be",e,t)}},{key:"int32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("int32"),e,t)}},{key:"int32le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int32le",e,t)}},{key:"int32be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int32be",e,t)}},{key:"bigIntVersionCheck",value:function(){if(!DataView.prototype.getBigInt64)throw new Error("BigInt64 is unsupported on this runtime")}},{key:"int64",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN(this.useThisEndian("int64"),e,t)}},{key:"int64be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("int64be",e,t)}},{key:"int64le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("int64le",e,t)}},{key:"uint64",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN(this.useThisEndian("uint64"),e,t)}},{key:"uint64be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("uint64be",e,t)}},{key:"uint64le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("uint64le",e,t)}},{key:"floatle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("floatle",e,t)}},{key:"floatbe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("floatbe",e,t)}},{key:"doublele",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("doublele",e,t)}},{key:"doublebe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("doublebe",e,t)}},{key:"bitN",value:function(e,t,n){return n.length=e,this.setNextParser("bit",t,n)}},{key:"bit1",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(1,e,t)}},{key:"bit2",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(2,e,t)}},{key:"bit3",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(3,e,t)}},{key:"bit4",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(4,e,t)}},{key:"bit5",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(5,e,t)}},{key:"bit6",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(6,e,t)}},{key:"bit7",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(7,e,t)}},{key:"bit8",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(8,e,t)}},{key:"bit9",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(9,e,t)}},{key:"bit10",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(10,e,t)}},{key:"bit11",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(11,e,t)}},{key:"bit12",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(12,e,t)}},{key:"bit13",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(13,e,t)}},{key:"bit14",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(14,e,t)}},{key:"bit15",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(15,e,t)}},{key:"bit16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(16,e,t)}},{key:"bit17",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(17,e,t)}},{key:"bit18",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(18,e,t)}},{key:"bit19",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(19,e,t)}},{key:"bit20",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(20,e,t)}},{key:"bit21",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(21,e,t)}},{key:"bit22",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(22,e,t)}},{key:"bit23",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(23,e,t)}},{key:"bit24",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(24,e,t)}},{key:"bit25",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(25,e,t)}},{key:"bit26",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(26,e,t)}},{key:"bit27",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(27,e,t)}},{key:"bit28",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(28,e,t)}},{key:"bit29",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(29,e,t)}},{key:"bit30",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(30,e,t)}},{key:"bit31",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(31,e,t)}},{key:"bit32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(32,e,t)}},{key:"namely",value:function(e){return VR.set(e,this),this.alias=e,this}},{key:"skip",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.seek(e,t)}},{key:"seek",value:function(e){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).assert)throw new Error("assert option on seek is not allowed.");return this.setNextParser("seek","",{length:e})}},{key:"string",value:function(e,t){if(!t.zeroTerminated&&!t.length&&!t.greedy)throw new Error("One of length, zeroTerminated, or greedy must be defined for string.");if((t.zeroTerminated||t.length)&&t.greedy)throw new Error("greedy is mutually exclusive with length and zeroTerminated for string.");if(t.stripNull&&!t.length&&!t.greedy)throw new Error("length or greedy must be defined if stripNull is enabled.");return t.encoding=t.encoding||"utf8",this.setNextParser("string",e,t)}},{key:"buffer",value:function(e,t){if(!t.length&&!t.readUntil)throw new Error("length or readUntil must be defined for buffer.");return this.setNextParser("buffer",e,t)}},{key:"wrapped",value:function(e,t){if("object"!=typeof t&&"object"==typeof e&&(t=e,e=""),!t||!t.wrapper||!t.type)throw new Error("Both wrapper and type must be defined for wrapped.");if(!t.length&&!t.readUntil)throw new Error("length or readUntil must be defined for wrapped.");return this.setNextParser("wrapper",e,t)}},{key:"array",value:function(e,t){if(!t.readUntil&&!t.length&&!t.lengthInBytes)throw new Error("One of readUntil, length and lengthInBytes must be defined for array.");if(!t.type)throw new Error("type is required for array.");if("string"==typeof t.type&&!VR.has(t.type)&&!(t.type in KR))throw new Error('Array element type "'.concat(t.type,'" is unkown.'));return this.setNextParser("array",e,t)}},{key:"choice",value:function(e,t){if("object"!=typeof t&&"object"==typeof e&&(t=e,e=""),!t)throw new Error("tag and choices are are required for choice.");if(!t.tag)throw new Error("tag is requird for choice.");if(!t.choices)throw new Error("choices is required for choice.");for(var n in t.choices){var r=parseInt(n,10),a=t.choices[r];if(isNaN(r))throw new Error('Choice key "'.concat(n,'" is not a number.'));if("string"==typeof a&&!VR.has(a)&&!(a in KR))throw new Error('Choice type "'.concat(a,'" is unkown.'))}return this.setNextParser("choice",e,t)}},{key:"nest",value:function(t,n){if("object"!=typeof n&&"object"==typeof t&&(n=t,t=""),!n||!n.type)throw new Error("type is required for nest.");if(!(n.type instanceof e||VR.has(n.type)))throw new Error("type must be a known parser name or a Parser object.");if(!(n.type instanceof e||t))throw new Error("type must be a Parser object if the variable name is omitted.");return this.setNextParser("nest",t,n)}},{key:"pointer",value:function(e,t){if(!t.offset)throw new Error("offset is required for pointer.");if(!t.type)throw new Error("type is required for pointer.");if("string"==typeof t.type&&!(t.type in KR)&&!VR.has(t.type))throw new Error('Pointer type "'.concat(t.type,'" is unkown.'));return this.setNextParser("pointer",e,t)}},{key:"saveOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setNextParser("saveOffset",e,t)}},{key:"endianness",value:function(e){switch(e.toLowerCase()){case"little":this.endian="le";break;case"big":this.endian="be";break;default:throw new Error('endianness must be one of "little" or "big"')}return this}},{key:"endianess",value:function(e){return this.endianness(e)}},{key:"useContextVars",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.useContextVariables=e,this}},{key:"create",value:function(e){if(!(e instanceof Function))throw new Error("Constructor must be a Function object.");return this.constructorFn=e,this}},{key:"getContext",value:function(e){var t=new qR(e,this.useContextVariables);return t.pushCode("var dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.length);"),this.alias?(this.addAliasedCode(t),t.pushCode("return ".concat(JR+this.alias,"(0).result;"))):this.addRawCode(t),t}},{key:"getCode",value:function(){return this.getContext("imports").code}},{key:"addRawCode",value:function(e){e.pushCode("var offset = 0;"),e.pushCode("var vars = ".concat(this.constructorFn?"new constructorFn()":"{}",";")),e.pushCode("vars.$parent = null;"),e.pushCode("vars.$root = vars;"),this.generate(e),this.resolveReferences(e),e.pushCode("delete vars.$parent;"),e.pushCode("delete vars.$root;"),e.pushCode("return vars;")}},{key:"addAliasedCode",value:function(e){return e.pushCode("function ".concat(JR+this.alias,"(offset, context) {")),e.pushCode("var vars = ".concat(this.constructorFn?"new constructorFn()":"{}",";")),e.pushCode("var ctx = Object.assign({$parent: null, $root: vars}, context || {});"),e.pushCode("vars = Object.assign(vars, ctx);"),this.generate(e),e.markResolved(this.alias),this.resolveReferences(e),e.pushCode("Object.keys(ctx).forEach(function (item) { delete vars[item]; });"),e.pushCode("return { offset: offset, result: vars };"),e.pushCode("}"),e}},{key:"resolveReferences",value:function(e){var t=e.getUnresolvedReferences();e.markRequested(t),t.forEach((function(t){var n;null===(n=VR.get(t))||void 0===n||n.addAliasedCode(e)}))}},{key:"compile",value:function(){var e="imports",t=this.getContext(e);this.compiled=new Function(e,"TextDecoder","return function (buffer, constructorFn) { ".concat(t.code," };"))(t.imports,TextDecoder)}},{key:"sizeOf",value:function(){var t=NaN;if(Object.keys(KR).indexOf(this.type)>=0)t=KR[this.type];else if("string"===this.type&&"number"==typeof this.options.length)t=this.options.length;else if("buffer"===this.type&&"number"==typeof this.options.length)t=this.options.length;else if("array"===this.type&&"number"==typeof this.options.length){var n=NaN;"string"==typeof this.options.type?n=KR[this.options.type]:this.options.type instanceof e&&(n=this.options.type.sizeOf()),t=this.options.length*n}else"seek"===this.type?t=this.options.length:"nest"===this.type?t=this.options.type.sizeOf():this.type||(t=0);return this.next&&(t+=this.next.sizeOf()),t}},{key:"parse",value:function(e){return this.compiled||this.compile(),this.compiled(e,this.constructorFn)}},{key:"setNextParser",value:function(t,n,r){var a=new e;return a.type=t,a.varName=n,a.options=r,a.endian=this.endian,this.head?this.head.next=a:this.next=a,this.head=a,this}},{key:"generate",value:function(e){if(this.type){switch(this.type){case"uint8":case"uint16le":case"uint16be":case"uint32le":case"uint32be":case"int8":case"int16le":case"int16be":case"int32le":case"int32be":case"int64be":case"int64le":case"uint64be":case"uint64le":case"floatle":case"floatbe":case"doublele":case"doublebe":this.primitiveGenerateN(this.type,e);break;case"bit":this.generateBit(e);break;case"string":this.generateString(e);break;case"buffer":this.generateBuffer(e);break;case"seek":this.generateSeek(e);break;case"nest":this.generateNest(e);break;case"array":this.generateArray(e);break;case"choice":this.generateChoice(e);break;case"pointer":this.generatePointer(e);break;case"saveOffset":this.generateSaveOffset(e);break;case"wrapper":this.generateWrapper(e)}"bit"!==this.type&&this.generateAssert(e)}var t=e.generateVariable(this.varName);return this.options.formatter&&"bit"!==this.type&&this.generateFormatter(e,t,this.options.formatter),this.generateNext(e)}},{key:"generateAssert",value:function(e){if(this.options.assert){var t=e.generateVariable(this.varName);switch(typeof this.options.assert){case"function":var n=e.addImport(this.options.assert);e.pushCode("if (!".concat(n,".call(vars, ").concat(t,")) {"));break;case"number":e.pushCode("if (".concat(this.options.assert," !== ").concat(t,") {"));break;case"string":e.pushCode("if (".concat(JSON.stringify(this.options.assert)," !== ").concat(t,") {"));break;default:throw new Error("assert option must be a string, number or a function.")}e.generateError('"Assertion error: '.concat(t,' is " + ').concat(JSON.stringify(this.options.assert.toString()))),e.pushCode("}")}}},{key:"generateNext",value:function(e){return this.next&&(e=this.next.generate(e)),e}},{key:"generateBit",value:function(e){var t=JSON.parse(JSON.stringify(this));if(t.options=this.options,t.generateAssert=this.generateAssert.bind(this),t.generateFormatter=this.generateFormatter.bind(this),t.varName=e.generateVariable(t.varName),e.bitFields.push(t),!this.next||this.next&&["bit","nest"].indexOf(this.next.type)<0){var n=e.generateTmpVariable();e.pushCode("var ".concat(n," = 0;"));var r=0,a="be"===this.endian,i=0,o=0;e.bitFields.forEach((function(t,s){var c=t.options.length;if(c>o){if(o){var u=-1>>>32-o;e.pushCode("".concat(t.varName," = (").concat(n," & 0x").concat(u.toString(16),") << ").concat(c-o,";")),c-=o}r=0,o=i=function(t){return t<=8?(e.pushCode("".concat(n," = dataView.getUint8(offset);")),t=8):t<=16?(e.pushCode("".concat(n," = dataView.getUint16(offset);")),t=16):t<=24?(e.pushCode("".concat(n," = (dataView.getUint16(offset) << 8) | dataView.getUint8(offset + 2);")),t=24):(e.pushCode("".concat(n," = dataView.getUint32(offset);")),t=32),e.pushCode("offset += ".concat(t/8,";")),t}(function(){for(var t=0,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;n32)break;t+=r}return t}(s)-o)}var d=a?i-r-c:r,f=-1>>>32-c;e.pushCode("".concat(t.varName," ").concat(c> ").concat(d," & 0x").concat(f.toString(16),";")),32===t.options.length&&e.pushCode("".concat(t.varName," >>>= 0")),t.options.assert&&t.generateAssert(e),t.options.formatter&&t.generateFormatter(e,t.varName,t.options.formatter),r+=c,o-=c})),e.bitFields=[]}}},{key:"generateSeek",value:function(e){var t=e.generateOption(this.options.length);e.pushCode("offset += ".concat(t,";"))}},{key:"generateString",value:function(e){var t=e.generateVariable(this.varName),n=e.generateTmpVariable(),r=this.options.encoding,a="hex"===r.toLowerCase(),i='b => b.toString(16).padStart(2, "0")';if(this.options.length&&this.options.zeroTerminated){var o=this.options.length;e.pushCode("var ".concat(n," = offset;")),e.pushCode("while(dataView.getUint8(offset++) !== 0 && offset - ".concat(n," < ").concat(o,");"));var s="offset - ".concat(n," < ").concat(o," ? offset - 1 : offset");e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(").concat(n,", ").concat(s,"), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(").concat(n,", ").concat(s,"));"))}else if(this.options.length){var c=e.generateOption(this.options.length);e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(offset, offset + ").concat(c,"), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(offset, offset + ").concat(c,"));")),e.pushCode("offset += ".concat(c,";"))}else this.options.zeroTerminated?(e.pushCode("var ".concat(n," = offset;")),e.pushCode("while(dataView.getUint8(offset++) !== 0);"),e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(").concat(n,", offset - 1), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(").concat(n,", offset - 1));"))):this.options.greedy&&(e.pushCode("var ".concat(n," = offset;")),e.pushCode("while(buffer.length > offset++);"),e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(").concat(n,", offset), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(").concat(n,", offset));")));this.options.stripNull&&e.pushCode("".concat(t," = ").concat(t,".replace(/\\x00+$/g, '')"))}},{key:"generateBuffer",value:function(e){var t=e.generateVariable(this.varName);if("function"==typeof this.options.readUntil){var n=this.options.readUntil,r=e.generateTmpVariable(),a=e.generateTmpVariable();e.pushCode("var ".concat(r," = offset;")),e.pushCode("var ".concat(a," = 0;")),e.pushCode("while (offset < buffer.length) {"),e.pushCode("".concat(a," = dataView.getUint8(offset);"));var i=e.addImport(n);e.pushCode("if (".concat(i,".call(").concat(e.generateVariable(),", ").concat(a,", buffer.subarray(offset))) break;")),e.pushCode("offset += 1;"),e.pushCode("}"),e.pushCode("".concat(t," = buffer.subarray(").concat(r,", offset);"))}else if("eof"===this.options.readUntil)e.pushCode("".concat(t," = buffer.subarray(offset);"));else{var o=e.generateOption(this.options.length);e.pushCode("".concat(t," = buffer.subarray(offset, offset + ").concat(o,");")),e.pushCode("offset += ".concat(o,";"))}this.options.clone&&e.pushCode("".concat(t," = buffer.constructor.from(").concat(t,");"))}},{key:"generateArray",value:function(t){var n=t.generateOption(this.options.length),r=t.generateOption(this.options.lengthInBytes),a=this.options.type,i=t.generateTmpVariable(),o=t.generateVariable(this.varName),s=t.generateTmpVariable(),c=this.options.key,u="string"==typeof c;if(u?t.pushCode("".concat(o," = {};")):t.pushCode("".concat(o," = [];")),"function"==typeof this.options.readUntil?t.pushCode("do {"):"eof"===this.options.readUntil?t.pushCode("for (var ".concat(i," = 0; offset < buffer.length; ").concat(i,"++) {")):void 0!==r?t.pushCode("for (var ".concat(i," = offset + ").concat(r,"; offset < ").concat(i,"; ) {")):t.pushCode("for (var ".concat(i," = ").concat(n,"; ").concat(i," > 0; ").concat(i,"--) {")),"string"==typeof a)if(VR.get(a)){var d=t.generateTmpVariable();if(t.pushCode("var ".concat(d," = ").concat(JR+a,"(offset, {")),t.useContextVariables){var f=t.generateVariable();t.pushCode("$parent: ".concat(f,",")),t.pushCode("$root: ".concat(f,".$root,")),this.options.readUntil||void 0!==r||t.pushCode("$index: ".concat(n," - ").concat(i,","))}t.pushCode("});"),t.pushCode("var ".concat(s," = ").concat(d,".result; offset = ").concat(d,".offset;")),a!==this.alias&&t.addReference(a)}else{var l=GR[a],b=WR[a];t.pushCode("var ".concat(s," = dataView.get").concat(l,"(offset, ").concat(b,");")),t.pushCode("offset += ".concat(KR[a],";"))}else if(a instanceof e){t.pushCode("var ".concat(s," = {};"));var p=t.generateVariable();t.pushScope(s),t.useContextVariables&&(t.pushCode("".concat(s,".$parent = ").concat(p,";")),t.pushCode("".concat(s,".$root = ").concat(p,".$root;")),this.options.readUntil||void 0!==r||t.pushCode("".concat(s,".$index = ").concat(n," - ").concat(i,";"))),a.generate(t),t.useContextVariables&&(t.pushCode("delete ".concat(s,".$parent;")),t.pushCode("delete ".concat(s,".$root;")),t.pushCode("delete ".concat(s,".$index;"))),t.popScope()}if(u?t.pushCode("".concat(o,"[").concat(s,".").concat(c,"] = ").concat(s,";")):t.pushCode("".concat(o,".push(").concat(s,");")),t.pushCode("}"),"function"==typeof this.options.readUntil){var h=this.options.readUntil,y=t.addImport(h);t.pushCode("while (!".concat(y,".call(").concat(t.generateVariable(),", ").concat(s,", buffer.subarray(offset)));"))}}},{key:"generateChoiceCase",value:function(t,n,r){if("string"==typeof r){var a=t.generateVariable(this.varName);if(VR.has(r)){var i=t.generateTmpVariable();t.pushCode("var ".concat(i," = ").concat(JR+r,"(offset, {")),t.useContextVariables&&(t.pushCode("$parent: ".concat(a,".$parent,")),t.pushCode("$root: ".concat(a,".$root,"))),t.pushCode("});"),t.pushCode("".concat(a," = ").concat(i,".result; offset = ").concat(i,".offset;")),r!==this.alias&&t.addReference(r)}else{var o=GR[r],s=WR[r];t.pushCode("".concat(a," = dataView.get").concat(o,"(offset, ").concat(s,");")),t.pushCode("offset += ".concat(KR[r]))}}else r instanceof e&&(t.pushPath(n),r.generate(t),t.popPath(n))}},{key:"generateChoice",value:function(e){var t=e.generateOption(this.options.tag),n=e.generateVariable(this.varName);if(this.varName&&(e.pushCode("".concat(n," = {};")),e.useContextVariables)){var r=e.generateVariable();e.pushCode("".concat(n,".$parent = ").concat(r,";")),e.pushCode("".concat(n,".$root = ").concat(r,".$root;"))}for(var a in e.pushCode("switch(".concat(t,") {")),this.options.choices){var i=parseInt(a,10),o=this.options.choices[i];e.pushCode("case ".concat(i,":")),this.generateChoiceCase(e,this.varName,o),e.pushCode("break;")}e.pushCode("default:"),this.options.defaultChoice?this.generateChoiceCase(e,this.varName,this.options.defaultChoice):e.generateError('"Met undefined tag value " + '.concat(t,' + " at choice"')),e.pushCode("}"),this.varName&&e.useContextVariables&&(e.pushCode("delete ".concat(n,".$parent;")),e.pushCode("delete ".concat(n,".$root;")))}},{key:"generateNest",value:function(t){var n=t.generateVariable(this.varName);if(this.options.type instanceof e){if(this.varName&&(t.pushCode("".concat(n," = {};")),t.useContextVariables)){var r=t.generateVariable();t.pushCode("".concat(n,".$parent = ").concat(r,";")),t.pushCode("".concat(n,".$root = ").concat(r,".$root;"))}t.pushPath(this.varName),this.options.type.generate(t),t.popPath(this.varName),this.varName&&t.useContextVariables&&t.useContextVariables&&(t.pushCode("delete ".concat(n,".$parent;")),t.pushCode("delete ".concat(n,".$root;")))}else if(VR.has(this.options.type)){var a=t.generateTmpVariable();if(t.pushCode("var ".concat(a," = ").concat(JR+this.options.type,"(offset, {")),t.useContextVariables){var i=t.generateVariable();t.pushCode("$parent: ".concat(i,",")),t.pushCode("$root: ".concat(i,".$root,"))}t.pushCode("});"),t.pushCode("".concat(n," = ").concat(a,".result; offset = ").concat(a,".offset;")),this.options.type!==this.alias&&t.addReference(this.options.type)}}},{key:"generateWrapper",value:function(t){var n=t.generateVariable(this.varName),r=t.generateTmpVariable();if("function"==typeof this.options.readUntil){var a=this.options.readUntil,i=t.generateTmpVariable(),o=t.generateTmpVariable();t.pushCode("var ".concat(i," = offset;")),t.pushCode("var ".concat(o," = 0;")),t.pushCode("while (offset < buffer.length) {"),t.pushCode("".concat(o," = dataView.getUint8(offset);"));var s=t.addImport(a);t.pushCode("if (".concat(s,".call(").concat(t.generateVariable(),", ").concat(o,", buffer.subarray(offset))) break;")),t.pushCode("offset += 1;"),t.pushCode("}"),t.pushCode("".concat(r," = buffer.subarray(").concat(i,", offset);"))}else if("eof"===this.options.readUntil)t.pushCode("".concat(r," = buffer.subarray(offset);"));else{var c=t.generateOption(this.options.length);t.pushCode("".concat(r," = buffer.subarray(offset, offset + ").concat(c,");")),t.pushCode("offset += ".concat(c,";"))}this.options.clone&&t.pushCode("".concat(r," = buffer.constructor.from(").concat(r,");"));var u=t.generateTmpVariable(),d=t.generateTmpVariable(),f=t.generateTmpVariable(),l=t.addImport(this.options.wrapper);if(t.pushCode("".concat(r," = ").concat(l,".call(this, ").concat(r,").subarray(0);")),t.pushCode("var ".concat(u," = buffer;")),t.pushCode("var ".concat(d," = offset;")),t.pushCode("var ".concat(f," = dataView;")),t.pushCode("buffer = ".concat(r,";")),t.pushCode("offset = 0;"),t.pushCode("dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.length);"),this.options.type instanceof e)this.varName&&t.pushCode("".concat(n," = {};")),t.pushPath(this.varName),this.options.type.generate(t),t.popPath(this.varName);else if(VR.has(this.options.type)){var b=t.generateTmpVariable();t.pushCode("var ".concat(b," = ").concat(JR+this.options.type,"(0);")),t.pushCode("".concat(n," = ").concat(b,".result;")),this.options.type!==this.alias&&t.addReference(this.options.type)}t.pushCode("buffer = ".concat(u,";")),t.pushCode("dataView = ".concat(f,";")),t.pushCode("offset = ".concat(d,";"))}},{key:"generateFormatter",value:function(e,t,n){if("function"==typeof n){var r=e.addImport(n);e.pushCode("".concat(t," = ").concat(r,".call(").concat(e.generateVariable(),", ").concat(t,");"))}}},{key:"generatePointer",value:function(t){var n=this.options.type,r=t.generateOption(this.options.offset),a=t.generateTmpVariable(),i=t.generateVariable(this.varName);if(t.pushCode("var ".concat(a," = offset;")),t.pushCode("offset = ".concat(r,";")),this.options.type instanceof e){if(t.pushCode("".concat(i," = {};")),t.useContextVariables){var o=t.generateVariable();t.pushCode("".concat(i,".$parent = ").concat(o,";")),t.pushCode("".concat(i,".$root = ").concat(o,".$root;"))}t.pushPath(this.varName),this.options.type.generate(t),t.popPath(this.varName),t.useContextVariables&&(t.pushCode("delete ".concat(i,".$parent;")),t.pushCode("delete ".concat(i,".$root;")))}else if(VR.has(this.options.type)){var s=t.generateTmpVariable();if(t.pushCode("var ".concat(s," = ").concat(JR+this.options.type,"(offset, {")),t.useContextVariables){var c=t.generateVariable();t.pushCode("$parent: ".concat(c,",")),t.pushCode("$root: ".concat(c,".$root,"))}t.pushCode("});"),t.pushCode("".concat(i," = ").concat(s,".result; offset = ").concat(s,".offset;")),this.options.type!==this.alias&&t.addReference(this.options.type)}else if(Object.keys(KR).indexOf(this.options.type)>=0){var u=GR[n],d=WR[n];t.pushCode("".concat(i," = dataView.get").concat(u,"(offset, ").concat(d,");")),t.pushCode("offset += ".concat(KR[n],";"))}t.pushCode("offset = ".concat(a,";"))}},{key:"generateSaveOffset",value:function(e){var t=e.generateVariable(this.varName);e.pushCode("".concat(t," = offset"))}}],[{key:"start",value:function(){return new e}}]),e}(),XR=n(13266),$R=n(98722),eD=n(5886).Buffer,tD=function(){return tD=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},rD=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&r.write(t.toString("hex"),1,"hex"),r}function PF(e){var t=e.nonce,n=e.targetAddress,r=e.targetChain;if(!CF.isBuffer(n))throw new Error("targetAddress must be Buffer");var a=CF.alloc(38);return a.writeUInt32LE(t,0),a.write(n.toString("hex"),4,"hex"),a.writeUInt16LE(r,36),a}!function(e){e[e.Initialize=0]="Initialize",e[e.CompleteNative=1]="CompleteNative",e[e.CompleteWrapped=2]="CompleteWrapped",e[e.CompleteWrappedMeta=3]="CompleteWrappedMeta",e[e.TransferWrapped=4]="TransferWrapped",e[e.TransferNative=5]="TransferNative",e[e.RegisterChain=6]="RegisterChain",e[e.UpgradeContract=7]="UpgradeContract"}(IF||(IF={}));var MF=function(){function e(e){}return e.prototype.encode=function(e,t){throw new Error("NFT Bridge program does not have state")},e.prototype.decode=function(e){throw new Error("NFT Bridge program does not have state")},e}(),BF=function(){function e(e){}return e.prototype.encode=function(e,t){throw new Error("NFT Bridge program does not have user-defined types")},e.prototype.decode=function(e,t){throw new Error("NFT Bridge program does not have user-defined types")},e}(),NF=function(e){this.instruction=new TF(e),this.accounts=new SF(e),this.state=new MF(e),this.events=new EF(e),this.types=new BF(e)},RF=JSON.parse('{"version":"0.1.0","name":"wormhole","instructions":[{"name":"initialize","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":true,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[{"name":"wormhole","type":"publicKey"}]},{"name":"completeNative","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"endpoint","isMut":false,"isSigner":false},{"name":"to","isMut":true,"isSigner":false},{"name":"toAuthority","isMut":true,"isSigner":false},{"name":"custody","isMut":true,"isSigner":false},{"name":"mint","isMut":false,"isSigner":false},{"name":"custodySigner","isMut":false,"isSigner":false},{"name":"rent","isMut":true,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"completeWrapped","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"endpoint","isMut":false,"isSigner":false},{"name":"to","isMut":true,"isSigner":false},{"name":"toAuthority","isMut":true,"isSigner":false},{"name":"mint","isMut":true,"isSigner":false},{"name":"wrappedMeta","isMut":true,"isSigner":false},{"name":"mintAuthority","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"splMetadataProgram","isMut":false,"isSigner":false},{"name":"associatedTokenProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"completeWrappedMeta","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"endpoint","isMut":false,"isSigner":false},{"name":"mint","isMut":false,"isSigner":false},{"name":"wrappedMeta","isMut":false,"isSigner":false},{"name":"splMetadata","isMut":true,"isSigner":false},{"name":"mintAuthority","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"splMetadataProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"transferWrapped","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"from","isMut":true,"isSigner":false},{"name":"fromOwner","isMut":true,"isSigner":true},{"name":"mint","isMut":true,"isSigner":false},{"name":"wrappedMeta","isMut":false,"isSigner":false},{"name":"splMetadata","isMut":false,"isSigner":false},{"name":"authoritySigner","isMut":false,"isSigner":false},{"name":"wormholeBridge","isMut":true,"isSigner":false},{"name":"wormholeMessage","isMut":true,"isSigner":true},{"name":"wormholeEmitter","isMut":false,"isSigner":false},{"name":"wormholeSequence","isMut":true,"isSigner":false},{"name":"wormholeFeeCollector","isMut":true,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"splMetadataProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[{"name":"nonce","type":"u32"},{"name":"targetAddress","type":{"array":["u8",32]}},{"name":"targetChain","type":"u16"}]},{"name":"transferNative","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"from","isMut":true,"isSigner":false},{"name":"mint","isMut":true,"isSigner":false},{"name":"splMetadata","isMut":false,"isSigner":false},{"name":"custody","isMut":true,"isSigner":false},{"name":"authoritySigner","isMut":false,"isSigner":false},{"name":"custodySigner","isMut":false,"isSigner":false},{"name":"wormholeBridge","isMut":true,"isSigner":false},{"name":"wormholeMessage","isMut":true,"isSigner":true},{"name":"wormholeEmitter","isMut":false,"isSigner":false},{"name":"wormholeSequence","isMut":true,"isSigner":false},{"name":"wormholeFeeCollector","isMut":true,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"tokenProgram","isMut":false,"isSigner":false},{"name":"splMetadataProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[{"name":"nonce","type":"u32"},{"name":"targetAddress","type":{"array":["u8",32]}},{"name":"targetChain","type":"u16"}]},{"name":"registerChain","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"config","isMut":false,"isSigner":false},{"name":"endpoint","isMut":true,"isSigner":false},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false},{"name":"wormholeProgram","isMut":false,"isSigner":false}],"args":[]},{"name":"upgradeContract","accounts":[{"name":"payer","isMut":true,"isSigner":true},{"name":"vaa","isMut":false,"isSigner":false},{"name":"claim","isMut":true,"isSigner":false},{"name":"upgradeAuthority","isMut":false,"isSigner":false},{"name":"spill","isMut":true,"isSigner":false},{"name":"implementation","isMut":true,"isSigner":false},{"name":"programData","isMut":true,"isSigner":false},{"name":"nftBridgeProgram","isMut":true,"isSigner":false},{"name":"rent","isMut":false,"isSigner":false},{"name":"clock","isMut":false,"isSigner":false},{"name":"bpfLoaderUpgradeable","isMut":false,"isSigner":false},{"name":"systemProgram","isMut":false,"isSigner":false}],"args":[]}],"accounts":[]}'),DF=n(5886).Buffer;function jF(e,t){return function(e,t){return new Jm.Program(RF,new xd.PublicKey(e),void 0===t?{connection:null}:t,new NF(RF))}(e,(0,gg.K)(t))}DF.alloc(32,1);var UF,LF=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),FF=Rg;LF((function(){return null!==UF&&UF.apply(this,arguments)||this}),UF=jg);var ZF=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},HF=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},VF=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},WF=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]",value_type:"u8",key:i})];case 3:return o.sent(),[2,!0];case 4:return o.sent(),[2,!1];case 5:return[2]}}))}))}var lZ=n(5886).Buffer,bZ=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},pZ=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},xZ=function(e,t){for(var n=0,r=t.length,a=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},SZ=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},s=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},l=function(e,t){for(var n=0,r=t.length,a=e.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function p(e,t,n,r,i,o,s){return u(this,void 0,void 0,(function(){var c,u,b,p,h,m,v,g,A;return d(this,(function(d){switch(d.label){case 0:return[4,y(e,n,r,i,s)];case 1:return c=d.sent(),u=c.unsignedTransactions,b=c.signers,p=u.pop(),[4,(0,a.o1)(e,a.dI.apply(void 0,l([t],f(b))),r.toString(),u,o)];case 2:return h=d.sent(),v=(m=h.push).apply,g=[h],A=[[]],[4,(0,a.o1)(e,t,r.toString(),[p],o)];case 3:return v.apply(m,g.concat([l.apply(void 0,A.concat([f.apply(void 0,[d.sent()])]))])),[2,h]}}))}))}function h(e,t,n,r,i,o,s){return void 0===s&&(s=!0),u(this,void 0,void 0,(function(){var c,p,h,m,v,g,A,w,x,_,k,I,S,E,C,T,O,P=this;return d(this,(function(M){switch(M.label){case 0:return[4,y(e,n,r,i,null==o?void 0:o.commitment)];case 1:return c=M.sent(),p=c.unsignedTransactions,h=c.signers,m=p.pop(),v=function(n){return u(P,void 0,void 0,(function(){return d(this,(function(i){return[2,(0,a.J$)(e,r,a.dI.apply(void 0,l([t],f(h))),n,o)]}))}))},g=[],s?[4,Promise.all(p.map((function(e){return u(P,void 0,void 0,(function(){return d(this,(function(t){return[2,v(e)]}))}))})))]:[3,3];case 2:return A=M.sent(),g.push.apply(g,l([],f(A))),[3,10];case 3:M.trys.push([3,8,9,10]),w=b(p),x=w.next(),M.label=4;case 4:return x.done?[3,7]:(_=x.value,I=(k=g).push,[4,v(_)]);case 5:I.apply(k,[M.sent()]),M.label=6;case 6:return x=w.next(),[3,4];case 7:return[3,10];case 8:return S=M.sent(),T={error:S},[3,10];case 9:try{x&&!x.done&&(O=w.return)&&O.call(w)}finally{if(T)throw T.error}return[7];case 10:return C=(E=g).push,[4,(0,a.J$)(e,r,t,m,o)];case 11:return C.apply(E,[M.sent()]),[2,g]}}))}))}function y(e,t,n,a,b){return u(this,void 0,void 0,(function(){var u,p,h,y,m,v;return d(this,(function(d){switch(d.label){case 0:return u=(0,s.isBytes)(a)?(0,c.k)(a):a,p=r.Keypair.generate(),[4,(0,i.I)(e,t,n,u,p.publicKey,b)];case 1:for(h=d.sent(),y=[],m=0;m0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},c=function(e,t){for(var n=0,r=t.length,a=e.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function d(){for(var e=[],t=0;tc)return[2,Promise.reject("Reached the maximum number of retries.")];o.label=12;case 12:return p=b.next(),[3,2];case 13:return[3,16];case 14:return w=o.sent(),x={error:w},[3,16];case 15:try{p&&!p.done&&(_=b.return)&&_.call(b)}finally{if(x)throw x.error}return[7];case 16:return[2,Promise.resolve(l)]}}))}))}},8510:function(e,t,n){"use strict";n.d(t,{Pj:function(){return s},Xq:function(){return c}});var r=n(45794),a=n(5886).Buffer,i=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},o=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},b=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},b=function(e,t){for(var n=0,r=t.length,a=e.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},v=function(e,t){for(var n=0,r=t.length,a=e.length;n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){d.headers[e]=a.merge(s)})),e.exports=d},67983:function(e){e.exports={version:"0.24.0"}},61166:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},80389:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},23294:function(e,t,n){"use strict";var r=n(67983).version,a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new Error(a(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),a=r.length;a-- >0;){var i=r[a],o=t[i];if(o){var s=e[i],c=void 0===s||o(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:a}},93836:function(e,t,n){"use strict";var r=n(61166),a=Object.prototype.toString;function i(e){return"[object Array]"===a.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===a.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.address&&t.uint32(10).string(e.address),void 0!==e.pubKey&&s.Any.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.accountNumber.isZero()||t.uint32(24).uint64(e.accountNumber),e.sequence.isZero()||t.uint32(32).uint64(e.sequence),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.address=n.string();break;case 2:a.pubKey=s.Any.decode(n,n.uint32());break;case 3:a.accountNumber=n.uint64();break;case 4:a.sequence=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.Any.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=i.default.fromString(e.accountNumber):t.accountNumber=i.default.UZERO,void 0!==e.sequence&&null!==e.sequence?t.sequence=i.default.fromString(e.sequence):t.sequence=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.pubKey&&(t.pubKey=e.pubKey?s.Any.toJSON(e.pubKey):void 0),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||i.default.UZERO).toString()),void 0!==e.sequence&&(t.sequence=(e.sequence||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.Any.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=e.accountNumber:t.accountNumber=i.default.UZERO,void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence=i.default.UZERO,t}};var u={name:"",permissions:""};t.ModuleAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseAccount&&t.BaseAccount.encode(e.baseAccount,n.uint32(10).fork()).ldelim(),""!==e.name&&n.uint32(18).string(e.name);var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.uint32(26).string(s)}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},u);for(i.permissions=[];r.pos>>3){case 1:i.baseAccount=t.BaseAccount.decode(r,r.uint32());break;case 2:i.name=r.string();break;case 3:i.permissions.push(r.string());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},u);if(n.permissions=[],void 0!==e.baseAccount&&null!==e.baseAccount?n.baseAccount=t.BaseAccount.fromJSON(e.baseAccount):n.baseAccount=void 0,void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.permissions&&null!==e.permissions){var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.permissions.push(String(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.baseAccount&&(n.baseAccount=e.baseAccount?t.BaseAccount.toJSON(e.baseAccount):void 0),void 0!==e.name&&(n.name=e.name),e.permissions?n.permissions=e.permissions.map((function(e){return e})):n.permissions=[],n},fromPartial:function(e){var n=Object.assign({},u);if(n.permissions=[],void 0!==e.baseAccount&&null!==e.baseAccount?n.baseAccount=t.BaseAccount.fromPartial(e.baseAccount):n.baseAccount=void 0,void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.permissions&&null!==e.permissions){var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.permissions.push(o)}}catch(e){i.e(e)}finally{i.f()}}return n}};var d={maxMemoCharacters:i.default.UZERO,txSigLimit:i.default.UZERO,txSizeCostPerByte:i.default.UZERO,sigVerifyCostEd25519:i.default.UZERO,sigVerifyCostSecp256k1:i.default.UZERO};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.maxMemoCharacters.isZero()||t.uint32(8).uint64(e.maxMemoCharacters),e.txSigLimit.isZero()||t.uint32(16).uint64(e.txSigLimit),e.txSizeCostPerByte.isZero()||t.uint32(24).uint64(e.txSizeCostPerByte),e.sigVerifyCostEd25519.isZero()||t.uint32(32).uint64(e.sigVerifyCostEd25519),e.sigVerifyCostSecp256k1.isZero()||t.uint32(40).uint64(e.sigVerifyCostSecp256k1),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.maxMemoCharacters=n.uint64();break;case 2:a.txSigLimit=n.uint64();break;case 3:a.txSizeCostPerByte=n.uint64();break;case 4:a.sigVerifyCostEd25519=n.uint64();break;case 5:a.sigVerifyCostSecp256k1=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters?t.maxMemoCharacters=i.default.fromString(e.maxMemoCharacters):t.maxMemoCharacters=i.default.UZERO,void 0!==e.txSigLimit&&null!==e.txSigLimit?t.txSigLimit=i.default.fromString(e.txSigLimit):t.txSigLimit=i.default.UZERO,void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte?t.txSizeCostPerByte=i.default.fromString(e.txSizeCostPerByte):t.txSizeCostPerByte=i.default.UZERO,void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=i.default.fromString(e.sigVerifyCostEd25519):t.sigVerifyCostEd25519=i.default.UZERO,void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=i.default.fromString(e.sigVerifyCostSecp256k1):t.sigVerifyCostSecp256k1=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.maxMemoCharacters&&(t.maxMemoCharacters=(e.maxMemoCharacters||i.default.UZERO).toString()),void 0!==e.txSigLimit&&(t.txSigLimit=(e.txSigLimit||i.default.UZERO).toString()),void 0!==e.txSizeCostPerByte&&(t.txSizeCostPerByte=(e.txSizeCostPerByte||i.default.UZERO).toString()),void 0!==e.sigVerifyCostEd25519&&(t.sigVerifyCostEd25519=(e.sigVerifyCostEd25519||i.default.UZERO).toString()),void 0!==e.sigVerifyCostSecp256k1&&(t.sigVerifyCostSecp256k1=(e.sigVerifyCostSecp256k1||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters?t.maxMemoCharacters=e.maxMemoCharacters:t.maxMemoCharacters=i.default.UZERO,void 0!==e.txSigLimit&&null!==e.txSigLimit?t.txSigLimit=e.txSigLimit:t.txSigLimit=i.default.UZERO,void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte?t.txSizeCostPerByte=e.txSizeCostPerByte:t.txSizeCostPerByte=i.default.UZERO,void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=e.sigVerifyCostEd25519:t.sigVerifyCostEd25519=i.default.UZERO,void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=e.sigVerifyCostSecp256k1:t.sigVerifyCostSecp256k1=i.default.UZERO,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},68080:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DecProto=t.IntProto=t.DecCoin=t.Coin=t.protobufPackage=void 0;var a=r(n(24141)),i=r(n(33591));t.protobufPackage="cosmos.base.v1beta1";var o={denom:"",amount:""};t.Coin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t}};var s={denom:"",amount:""};t.DecCoin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t}};var c={int:""};t.IntProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.int&&t.uint32(10).string(e.int),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3==1?a.int=n.string():n.skipType(7&o)}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.int&&null!==e.int?t.int=String(e.int):t.int="",t},toJSON:function(e){var t={};return void 0!==e.int&&(t.int=e.int),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.int&&null!==e.int?t.int=e.int:t.int="",t}};var u={dec:""};t.DecProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.dec&&t.uint32(10).string(e.dec),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3==1?a.dec=n.string():n.skipType(7&o)}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.dec&&null!==e.dec?t.dec=String(e.dec):t.dec="",t},toJSON:function(e){var t={};return void 0!==e.dec&&(t.dec=e.dec),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.dec&&null!==e.dec?t.dec=e.dec:t.dec="",t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},65828:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PermanentLockedAccount=t.PeriodicVestingAccount=t.Period=t.DelayedVestingAccount=t.ContinuousVestingAccount=t.BaseVestingAccount=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(33591)),s=n(72114),c=n(68080);t.protobufPackage="cosmos.vesting.v1beta1";var u={endTime:i.default.ZERO};t.BaseVestingAccount={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseAccount&&s.BaseAccount.encode(e.baseAccount,t.uint32(10).fork()).ldelim();var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}var u,d=r(e.delegatedFree);try{for(d.s();!(u=d.n()).done;){var f=u.value;c.Coin.encode(f,t.uint32(26).fork()).ldelim()}}catch(e){d.e(e)}finally{d.f()}var l,b=r(e.delegatedVesting);try{for(b.s();!(l=b.n()).done;){var p=l.value;c.Coin.encode(p,t.uint32(34).fork()).ldelim()}}catch(e){b.e(e)}finally{b.f()}return e.endTime.isZero()||t.uint32(40).int64(e.endTime),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.originalVesting=[],a.delegatedFree=[],a.delegatedVesting=[];n.pos>>3){case 1:a.baseAccount=s.BaseAccount.decode(n,n.uint32());break;case 2:a.originalVesting.push(c.Coin.decode(n,n.uint32()));break;case 3:a.delegatedFree.push(c.Coin.decode(n,n.uint32()));break;case 4:a.delegatedVesting.push(c.Coin.decode(n,n.uint32()));break;case 5:a.endTime=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);if(t.originalVesting=[],t.delegatedFree=[],t.delegatedVesting=[],void 0!==e.baseAccount&&null!==e.baseAccount?t.baseAccount=s.BaseAccount.fromJSON(e.baseAccount):t.baseAccount=void 0,void 0!==e.originalVesting&&null!==e.originalVesting){var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.originalVesting.push(c.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.delegatedFree&&null!==e.delegatedFree){var d,f=r(e.delegatedFree);try{for(f.s();!(d=f.n()).done;){var l=d.value;t.delegatedFree.push(c.Coin.fromJSON(l))}}catch(e){f.e(e)}finally{f.f()}}if(void 0!==e.delegatedVesting&&null!==e.delegatedVesting){var b,p=r(e.delegatedVesting);try{for(p.s();!(b=p.n()).done;){var h=b.value;t.delegatedVesting.push(c.Coin.fromJSON(h))}}catch(e){p.e(e)}finally{p.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=i.default.fromString(e.endTime):t.endTime=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.baseAccount&&(t.baseAccount=e.baseAccount?s.BaseAccount.toJSON(e.baseAccount):void 0),e.originalVesting?t.originalVesting=e.originalVesting.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.originalVesting=[],e.delegatedFree?t.delegatedFree=e.delegatedFree.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.delegatedFree=[],e.delegatedVesting?t.delegatedVesting=e.delegatedVesting.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.delegatedVesting=[],void 0!==e.endTime&&(t.endTime=(e.endTime||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},u);if(t.originalVesting=[],t.delegatedFree=[],t.delegatedVesting=[],void 0!==e.baseAccount&&null!==e.baseAccount?t.baseAccount=s.BaseAccount.fromPartial(e.baseAccount):t.baseAccount=void 0,void 0!==e.originalVesting&&null!==e.originalVesting){var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.originalVesting.push(c.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.delegatedFree&&null!==e.delegatedFree){var d,f=r(e.delegatedFree);try{for(f.s();!(d=f.n()).done;){var l=d.value;t.delegatedFree.push(c.Coin.fromPartial(l))}}catch(e){f.e(e)}finally{f.f()}}if(void 0!==e.delegatedVesting&&null!==e.delegatedVesting){var b,p=r(e.delegatedVesting);try{for(p.s();!(b=p.n()).done;){var h=b.value;t.delegatedVesting.push(c.Coin.fromPartial(h))}}catch(e){p.e(e)}finally{p.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=e.endTime:t.endTime=i.default.ZERO,t}};var d={startTime:i.default.ZERO};t.ContinuousVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),e.startTime.isZero()||n.uint32(16).int64(e.startTime),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);r.pos>>3){case 1:i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32());break;case 2:i.startTime=r.int64();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},d);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=i.default.fromString(e.startTime):n.startTime=i.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),void 0!==e.startTime&&(n.startTime=(e.startTime||i.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},d);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=e.startTime:n.startTime=i.default.ZERO,n}};var f={};t.DelayedVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);r.pos>>3==1?i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32()):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},f);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),n},fromPartial:function(e){var n=Object.assign({},f);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,n}};var l={length:i.default.ZERO};t.Period={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.length.isZero()||t.uint32(8).int64(e.length);var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.amount=[];n.pos>>3){case 1:a.length=n.int64();break;case 2:a.amount.push(c.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.amount=[],void 0!==e.length&&null!==e.length?t.length=i.default.fromString(e.length):t.length=i.default.ZERO,void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(c.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.length&&(t.length=(e.length||i.default.ZERO).toString()),e.amount?t.amount=e.amount.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t=Object.assign({},l);if(t.amount=[],void 0!==e.length&&null!==e.length?t.length=e.length:t.length=i.default.ZERO,void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(c.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return t}};var b={startTime:i.default.ZERO};t.PeriodicVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),e.startTime.isZero()||n.uint32(16).int64(e.startTime);var a,i=r(e.vestingPeriods);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Period.encode(s,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);for(i.vestingPeriods=[];r.pos>>3){case 1:i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32());break;case 2:i.startTime=r.int64();break;case 3:i.vestingPeriods.push(t.Period.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},b);if(n.vestingPeriods=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=i.default.fromString(e.startTime):n.startTime=i.default.ZERO,void 0!==e.vestingPeriods&&null!==e.vestingPeriods){var a,o=r(e.vestingPeriods);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.vestingPeriods.push(t.Period.fromJSON(s))}}catch(e){o.e(e)}finally{o.f()}}return n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),void 0!==e.startTime&&(n.startTime=(e.startTime||i.default.ZERO).toString()),e.vestingPeriods?n.vestingPeriods=e.vestingPeriods.map((function(e){return e?t.Period.toJSON(e):void 0})):n.vestingPeriods=[],n},fromPartial:function(e){var n=Object.assign({},b);if(n.vestingPeriods=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=e.startTime:n.startTime=i.default.ZERO,void 0!==e.vestingPeriods&&null!==e.vestingPeriods){var a,o=r(e.vestingPeriods);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.vestingPeriods.push(t.Period.fromPartial(s))}}catch(e){o.e(e)}finally{o.f()}}return n}};var p={};t.PermanentLockedAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);r.pos>>3==1?i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32()):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},p);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),n},fromPartial:function(e){var n=Object.assign({},p);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},74623:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Any=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(33591));t.protobufPackage="google.protobuf";var s={typeUrl:""};t.Any={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.value=new Uint8Array;n.pos>>3){case 1:a.typeUrl=n.string();break;case 2:a.value=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);return t.value=new Uint8Array,void 0!==e.typeUrl&&null!==e.typeUrl?t.typeUrl=String(e.typeUrl):t.typeUrl="",void 0!==e.value&&null!==e.value&&(t.value=function(e){for(var t=u(e),n=new Uint8Array(t.length),r=0;r0){var i=r.substring(0,a).trim(),o=r.substring(a+1).trim();this.append(i,o)}}},e.prototype.delete=function(e,t){var n=r.normalizeName(e);if(void 0===t)delete this.headersMap[n];else{var a=this.headersMap[n];if(a){var i=a.indexOf(t);i>=0&&a.splice(i,1),0===a.length&&delete this.headersMap[n]}}},e.prototype.append=function(e,t){var n=this,a=r.normalizeName(e);Array.isArray(this.headersMap[a])||(this.headersMap[a]=[]),Array.isArray(t)?t.forEach((function(e){n.headersMap[a].push(r.normalizeValue(e))})):this.headersMap[a].push(r.normalizeValue(t))},e.prototype.set=function(e,t){var n=r.normalizeName(e);if(Array.isArray(t)){var a=[];t.forEach((function(e){a.push(r.normalizeValue(e))})),this.headersMap[n]=a}else this.headersMap[n]=[r.normalizeValue(t)]},e.prototype.has=function(e,t){var n=this.headersMap[r.normalizeName(e)];if(!Array.isArray(n))return!1;if(void 0!==t){var a=r.normalizeValue(t);return n.indexOf(a)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[r.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach((function(n){e(n,t.headersMap[n])}),this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach((function(t,n){n.forEach((function(n){e.append(t,n)}))})),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.BrowserHeaders=r.BrowserHeaders},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var n=e[Symbol.iterator](),r=n.next();!r.done;)t(r.value[0]),r=n.next()},t.iterateHeadersKeys=function(e,t){for(var n=e.keys(),r=n.next();!r.done;)t(r.value),r=n.next()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var n=e;if(n instanceof Headers&&n.getAll)return n.getAll(t);var r=n.get(t);return r&&"string"==typeof r?[r]:r},t.getHeaderKeys=function(e){var t=e,n={},a=[];return t.keys?r.iterateHeadersKeys(t,(function(e){n[e]||(n[e]=!0,a.push(e))})):t.forEach?t.forEach((function(e,t){n[t]||(n[t]=!0,a.push(t))})):r.iterateHeaders(t,(function(e){var t=e[0];n[t]||(n[t]=!0,a.push(t))})),a},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach((function(e){e.split(",").forEach((function(e){t.push(e)}))})),t}}]))},617:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkParser=t.ChunkType=t.encodeASCII=t.decodeASCII=void 0;var r,a=n(65);function i(e){return 9===(t=e)||10===t||13===t||e>=32&&e<=126;var t}function o(e){for(var t=0;t!==e.length;++t)if(!i(e[t]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(e))}function s(e){return 128==(128&e.getUint8(0))}function c(e){return e.getUint32(1,!1)}function u(e,t,n){return e.byteLength-t>=n}function d(e,t,n){if(e.slice)return e.slice(t,n);var r=e.length;void 0!==n&&(r=n);for(var a=new Uint8Array(r-t),i=0,o=t;o=0?n:i.httpStatusToCode(t);this.props.debug&&o.debug("onHeaders.code",r);var a=e.get("grpc-message")||[];if(this.props.debug&&o.debug("onHeaders.gRPCMessage",a),this.rawOnHeaders(e),r!==i.Code.OK){var s=this.decodeGRPCStatus(a[0]);this.rawOnError(r,s,e)}}},e.prototype.onTransportChunk=function(e){var t=this;if(this.closed)this.props.debug&&o.debug("grpc.onChunk received after request was closed - ignoring");else{var n=[];try{n=this.parser.parse(e)}catch(e){return this.props.debug&&o.debug("onChunk.parsing error",e,e.message),void this.rawOnError(i.Code.Internal,"parsing error: "+e.message)}n.forEach((function(e){if(e.chunkType===a.ChunkType.MESSAGE){var n=t.methodDefinition.responseType.deserializeBinary(e.data);t.rawOnMessage(n)}else e.chunkType===a.ChunkType.TRAILERS&&(t.responseHeaders?(t.responseTrailers=new r.Metadata(e.trailers),t.props.debug&&o.debug("onChunk.trailers",t.responseTrailers)):(t.responseHeaders=new r.Metadata(e.trailers),t.rawOnHeaders(t.responseHeaders)))}))}},e.prototype.onTransportEnd=function(){if(this.props.debug&&o.debug("grpc.onEnd"),this.closed)this.props.debug&&o.debug("grpc.onEnd received after request was closed - ignoring");else if(void 0!==this.responseTrailers){var e=d(this.responseTrailers);if(null!==e){var t=this.responseTrailers.get("grpc-message"),n=this.decodeGRPCStatus(t[0]);this.rawOnEnd(e,n,this.responseTrailers)}else this.rawOnError(i.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(void 0===this.responseHeaders)return void this.rawOnError(i.Code.Unknown,"Response closed without headers");var r=d(this.responseHeaders),a=this.responseHeaders.get("grpc-message");if(this.props.debug&&o.debug("grpc.headers only response ",r,a),null===r)return void this.rawOnEnd(i.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var s=this.decodeGRPCStatus(a[0]);this.rawOnEnd(r,s,this.responseHeaders)}},e.prototype.decodeGRPCStatus=function(e){if(!e)return"";try{return decodeURIComponent(e)}catch(t){return e}},e.prototype.rawOnEnd=function(e,t,n){var r=this;this.props.debug&&o.debug("rawOnEnd",e,t,n),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(a){if(!r.closed)try{a(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnHeaders=function(e){this.props.debug&&o.debug("rawOnHeaders",e),this.completed||this.onHeadersCallbacks.forEach((function(t){try{t(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.rawOnError=function(e,t,n){var a=this;void 0===n&&(n=new r.Metadata),this.props.debug&&o.debug("rawOnError",e,t),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(r){if(!a.closed)try{r(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnMessage=function(e){var t=this;this.props.debug&&o.debug("rawOnMessage",e.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach((function(n){if(!t.closed)try{n(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.onHeaders=function(e){this.onHeadersCallbacks.push(e)},e.prototype.onMessage=function(e){this.onMessageCallbacks.push(e)},e.prototype.onEnd=function(e){this.onEndCallbacks.push(e)},e.prototype.start=function(e){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var t=new r.Metadata(e||{});t.set("content-type","application/grpc-web+proto"),t.set("x-grpc-web","1"),this.transport.start(t)},e.prototype.send=function(e){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var t=c.frameRequest(e);this.transport.sendMessage(t)},e.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},e.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&o.debug("request.abort aborting request"),this.transport.cancel()},e}();function d(e){var t=e.get("grpc-status")||[];if(t.length>0)try{var n=t[0];return parseInt(n,10)}catch(e){return null}return null}},346:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debug=void 0,t.debug=function(){for(var e=[],t=0;t=55296&&n<=56319){var r=e.charCodeAt(t+1);r>=56320&&r<=57343&&(n=65536+(n-55296<<10)+(r-56320))}return n}function f(e){for(var t=new Uint8Array(e.length),n=0,r=0;r "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u,d="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},f=function(){return a.Buffer?function(e){return(c.create=function(e){return a.Buffer.isBuffer(e)?new r(e):d(e)})(e)}:d};function l(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function b(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8);return new i(b(this.buf,this.pos+=4),b(this.buf,this.pos+=4))}c.create=f(),c.prototype._slice=a.Array.prototype.subarray||a.Array.prototype.slice,c.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return u}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return b(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|b(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=a.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=a.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return o.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){r=e,c.create=f(),r._configure();var t=a.Long?"toLong":"toNumber";a.merge(c.prototype,{int64:function(){return l.call(this)[t](!1)},uint64:function(){return l.call(this)[t](!0)},sint64:function(){return l.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},58139:function(e,t,n){"use strict";e.exports=i;var r=n(56181);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(6060);function i(e){r.call(this,e)}i._configure=function(){a.Buffer&&(i.prototype._slice=a.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},21399:function(e){"use strict";e.exports={}},75435:function(e,t,n){"use strict";t.Service=n(92682)},92682:function(e,t,n){"use strict";e.exports=a;var r=n(6060);function a(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(a.prototype=Object.create(r.EventEmitter.prototype)).constructor=a,a.prototype.rpcCall=function e(t,n,a,i,o){if(!i)throw TypeError("request must be specified");var s=this;if(!o)return r.asPromise(e,s,t,n,a,i);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,n){if(e)return s.emit("error",e,t),o(e);if(null!==n){if(!(n instanceof a))try{n=a[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),o(e)}return s.emit("data",n,t),o(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){o(e)}),0)}else setTimeout((function(){o(Error("already ended"))}),0)},a.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},99558:function(e,t,n){"use strict";e.exports=a;var r=n(6060);function a(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=a.zero=new a(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var o=a.zeroHash="\0\0\0\0\0\0\0\0";a.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new a(n,r)},a.from=function(e){if("number"==typeof e)return a.fromNumber(e);if(r.isString(e)){if(!r.Long)return a.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new a(e.low>>>0,e.high>>>0):i},a.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},a.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;a.fromHash=function(e){return e===o?i:new a((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},a.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},a.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},a.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},a.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},6060:function(e,t,n){"use strict";var r=t;function a(e,t,n){for(var r=Object.keys(t),a=0;a0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=a,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function y(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}f.create=l(),f.alloc=function(e){return new a.Array(e)},a.Array!==Array&&(f.alloc=a.pool(f.alloc,a.Array.prototype.subarray)),f.prototype._push=function(e,t,n){return this.tail=this.tail.next=new c(e,t,n),this.len+=t,this},p.prototype=Object.create(c.prototype),p.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(h,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(h,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(h,t.length(),t)},f.prototype.bool=function(e){return this._push(b,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(y,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(y,4,t.lo)._push(y,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(a.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(a.float.writeDoubleLE,8,e)};var m=a.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(b,1,0);if(a.isString(e)){var n=f.alloc(t=o.length(e));o.decode(e,n,0),e=n}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(b,1,0)},f.prototype.fork=function(){return this.states=new d(this),this.head=this.tail=new c(u,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},f._configure=function(e){r=e,f.create=l(),r._configure()}},46904:function(e,t,n){"use strict";e.exports=i;var r=n(69137);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(6060);function i(){r.call(this)}function o(e,t,n){e.length<40?a.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i._configure=function(){i.alloc=a._Buffer_allocUnsafe,i.writeBytesBuffer=a.Buffer&&a.Buffer.prototype instanceof Uint8Array&&"set"===a.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=a.Buffer.byteLength(e);return this.uint32(t),t&&this._push(o,t,e),this},i._configure()},91645:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgSwapSendDesc=t.MsgSwapDesc=t.MsgDesc=t.MsgClientImpl=t.MsgSwapSendResponse=t.MsgSwapSend=t.MsgSwapResponse=t.MsgSwap=t.protobufPackage=void 0;var o=i(n(24141)),s=n(70112),c=i(n(33591)),u=n(68080),d=n(46711);t.protobufPackage="terra.market.v1beta1";var f={trader:"",askDenom:""};t.MsgSwap={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.trader&&t.uint32(10).string(e.trader),void 0!==e.offerCoin&&u.Coin.encode(e.offerCoin,t.uint32(18).fork()).ldelim(),""!==e.askDenom&&t.uint32(26).string(e.askDenom),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.trader=n.string();break;case 2:a.offerCoin=u.Coin.decode(n,n.uint32());break;case 3:a.askDenom=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.trader&&null!==e.trader?t.trader=String(e.trader):t.trader="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=u.Coin.fromJSON(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=String(e.askDenom):t.askDenom="",t},toJSON:function(e){var t={};return void 0!==e.trader&&(t.trader=e.trader),void 0!==e.offerCoin&&(t.offerCoin=e.offerCoin?u.Coin.toJSON(e.offerCoin):void 0),void 0!==e.askDenom&&(t.askDenom=e.askDenom),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.trader&&null!==e.trader?t.trader=e.trader:t.trader="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=u.Coin.fromPartial(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=e.askDenom:t.askDenom="",t}};var l={};t.MsgSwapResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.swapCoin&&u.Coin.encode(e.swapCoin,t.uint32(10).fork()).ldelim(),void 0!==e.swapFee&&u.Coin.encode(e.swapFee,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.swapCoin=u.Coin.decode(n,n.uint32());break;case 2:a.swapFee=u.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=u.Coin.fromJSON(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=u.Coin.fromJSON(e.swapFee):t.swapFee=void 0,t},toJSON:function(e){var t={};return void 0!==e.swapCoin&&(t.swapCoin=e.swapCoin?u.Coin.toJSON(e.swapCoin):void 0),void 0!==e.swapFee&&(t.swapFee=e.swapFee?u.Coin.toJSON(e.swapFee):void 0),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=u.Coin.fromPartial(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=u.Coin.fromPartial(e.swapFee):t.swapFee=void 0,t}};var b={fromAddress:"",toAddress:"",askDenom:""};t.MsgSwapSend={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress),void 0!==e.offerCoin&&u.Coin.encode(e.offerCoin,t.uint32(26).fork()).ldelim(),""!==e.askDenom&&t.uint32(34).string(e.askDenom),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.fromAddress=n.string();break;case 2:a.toAddress=n.string();break;case 3:a.offerCoin=u.Coin.decode(n,n.uint32());break;case 4:a.askDenom=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=String(e.toAddress):t.toAddress="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=u.Coin.fromJSON(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=String(e.askDenom):t.askDenom="",t},toJSON:function(e){var t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),void 0!==e.offerCoin&&(t.offerCoin=e.offerCoin?u.Coin.toJSON(e.offerCoin):void 0),void 0!==e.askDenom&&(t.askDenom=e.askDenom),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=e.toAddress:t.toAddress="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=u.Coin.fromPartial(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=e.askDenom:t.askDenom="",t}};var p={};t.MsgSwapSendResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.swapCoin&&u.Coin.encode(e.swapCoin,t.uint32(10).fork()).ldelim(),void 0!==e.swapFee&&u.Coin.encode(e.swapFee,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.swapCoin=u.Coin.decode(n,n.uint32());break;case 2:a.swapFee=u.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=u.Coin.fromJSON(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=u.Coin.fromJSON(e.swapFee):t.swapFee=void 0,t},toJSON:function(e){var t={};return void 0!==e.swapCoin&&(t.swapCoin=e.swapCoin?u.Coin.toJSON(e.swapCoin):void 0),void 0!==e.swapFee&&(t.swapFee=e.swapFee?u.Coin.toJSON(e.swapFee):void 0),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=u.Coin.fromPartial(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=u.Coin.fromPartial(e.swapFee):t.swapFee=void 0,t}};var h=function(){function e(t){r(this,e),this.rpc=t,this.Swap=this.Swap.bind(this),this.SwapSend=this.SwapSend.bind(this)}return a(e,[{key:"Swap",value:function(e,n){return this.rpc.unary(t.MsgSwapDesc,t.MsgSwap.fromPartial(e),n)}},{key:"SwapSend",value:function(e,n){return this.rpc.unary(t.MsgSwapSendDesc,t.MsgSwapSend.fromPartial(e),n)}}]),e}();t.MsgClientImpl=h,t.MsgDesc={serviceName:"terra.market.v1beta1.Msg"},t.MsgSwapDesc={methodName:"Swap",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgSwap.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgSwapResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgSwapSendDesc={methodName:"SwapSend",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgSwapSend.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgSwapSendResponse.decode(e)),{toObject:function(){return this}})}}};var y=function(){function e(t,n){r(this,e),this.host=t,this.options=n}return a(e,[{key:"unary",value:function(e,t,n){var r,a=this,i=Object.assign(Object.assign({},t),e.requestType),o=n&&this.options.metadata?new d.BrowserHeaders(Object.assign(Object.assign({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise((function(t,n){s.grpc.unary(e,{request:i,host:a.host,metadata:o,transport:a.options.transport,debug:a.options.debug,onEnd:function(e){if(e.status===s.grpc.Code.OK)t(e.message);else{var r=new Error(e.statusMessage);r.code=e.status,r.metadata=e.trailers,n(r)}}})}))}}]),e}();t.GrpcWebImpl=y,c.default.util.Long!==o.default&&(c.default.util.Long=o.default,c.default.configure())},49925:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExchangeRateTuple=t.AggregateExchangeRateVote=t.AggregateExchangeRatePrevote=t.Denom=t.Params=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(33591));t.protobufPackage="terra.oracle.v1beta1";var s={votePeriod:i.default.UZERO,voteThreshold:"",rewardBand:"",rewardDistributionWindow:i.default.UZERO,slashFraction:"",slashWindow:i.default.UZERO,minValidPerWindow:""};t.Params={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.votePeriod.isZero()||n.uint32(8).uint64(e.votePeriod),""!==e.voteThreshold&&n.uint32(18).string(e.voteThreshold),""!==e.rewardBand&&n.uint32(26).string(e.rewardBand),e.rewardDistributionWindow.isZero()||n.uint32(32).uint64(e.rewardDistributionWindow);var a,i=r(e.whitelist);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Denom.encode(s,n.uint32(42).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return""!==e.slashFraction&&n.uint32(50).string(e.slashFraction),e.slashWindow.isZero()||n.uint32(56).uint64(e.slashWindow),""!==e.minValidPerWindow&&n.uint32(66).string(e.minValidPerWindow),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},s);for(i.whitelist=[];r.pos>>3){case 1:i.votePeriod=r.uint64();break;case 2:i.voteThreshold=r.string();break;case 3:i.rewardBand=r.string();break;case 4:i.rewardDistributionWindow=r.uint64();break;case 5:i.whitelist.push(t.Denom.decode(r,r.uint32()));break;case 6:i.slashFraction=r.string();break;case 7:i.slashWindow=r.uint64();break;case 8:i.minValidPerWindow=r.string();break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},s);if(n.whitelist=[],void 0!==e.votePeriod&&null!==e.votePeriod?n.votePeriod=i.default.fromString(e.votePeriod):n.votePeriod=i.default.UZERO,void 0!==e.voteThreshold&&null!==e.voteThreshold?n.voteThreshold=String(e.voteThreshold):n.voteThreshold="",void 0!==e.rewardBand&&null!==e.rewardBand?n.rewardBand=String(e.rewardBand):n.rewardBand="",void 0!==e.rewardDistributionWindow&&null!==e.rewardDistributionWindow?n.rewardDistributionWindow=i.default.fromString(e.rewardDistributionWindow):n.rewardDistributionWindow=i.default.UZERO,void 0!==e.whitelist&&null!==e.whitelist){var a,o=r(e.whitelist);try{for(o.s();!(a=o.n()).done;){var c=a.value;n.whitelist.push(t.Denom.fromJSON(c))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.slashFraction&&null!==e.slashFraction?n.slashFraction=String(e.slashFraction):n.slashFraction="",void 0!==e.slashWindow&&null!==e.slashWindow?n.slashWindow=i.default.fromString(e.slashWindow):n.slashWindow=i.default.UZERO,void 0!==e.minValidPerWindow&&null!==e.minValidPerWindow?n.minValidPerWindow=String(e.minValidPerWindow):n.minValidPerWindow="",n},toJSON:function(e){var n={};return void 0!==e.votePeriod&&(n.votePeriod=(e.votePeriod||i.default.UZERO).toString()),void 0!==e.voteThreshold&&(n.voteThreshold=e.voteThreshold),void 0!==e.rewardBand&&(n.rewardBand=e.rewardBand),void 0!==e.rewardDistributionWindow&&(n.rewardDistributionWindow=(e.rewardDistributionWindow||i.default.UZERO).toString()),e.whitelist?n.whitelist=e.whitelist.map((function(e){return e?t.Denom.toJSON(e):void 0})):n.whitelist=[],void 0!==e.slashFraction&&(n.slashFraction=e.slashFraction),void 0!==e.slashWindow&&(n.slashWindow=(e.slashWindow||i.default.UZERO).toString()),void 0!==e.minValidPerWindow&&(n.minValidPerWindow=e.minValidPerWindow),n},fromPartial:function(e){var n=Object.assign({},s);if(n.whitelist=[],void 0!==e.votePeriod&&null!==e.votePeriod?n.votePeriod=e.votePeriod:n.votePeriod=i.default.UZERO,void 0!==e.voteThreshold&&null!==e.voteThreshold?n.voteThreshold=e.voteThreshold:n.voteThreshold="",void 0!==e.rewardBand&&null!==e.rewardBand?n.rewardBand=e.rewardBand:n.rewardBand="",void 0!==e.rewardDistributionWindow&&null!==e.rewardDistributionWindow?n.rewardDistributionWindow=e.rewardDistributionWindow:n.rewardDistributionWindow=i.default.UZERO,void 0!==e.whitelist&&null!==e.whitelist){var a,o=r(e.whitelist);try{for(o.s();!(a=o.n()).done;){var c=a.value;n.whitelist.push(t.Denom.fromPartial(c))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.slashFraction&&null!==e.slashFraction?n.slashFraction=e.slashFraction:n.slashFraction="",void 0!==e.slashWindow&&null!==e.slashWindow?n.slashWindow=e.slashWindow:n.slashWindow=i.default.UZERO,void 0!==e.minValidPerWindow&&null!==e.minValidPerWindow?n.minValidPerWindow=e.minValidPerWindow:n.minValidPerWindow="",n}};var c={name:"",tobinTax:""};t.Denom={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.name&&t.uint32(10).string(e.name),""!==e.tobinTax&&t.uint32(18).string(e.tobinTax),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.name=n.string();break;case 2:a.tobinTax=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.tobinTax&&null!==e.tobinTax?t.tobinTax=String(e.tobinTax):t.tobinTax="",t},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.tobinTax&&(t.tobinTax=e.tobinTax),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.tobinTax&&null!==e.tobinTax?t.tobinTax=e.tobinTax:t.tobinTax="",t}};var u={hash:"",voter:"",submitBlock:i.default.UZERO};t.AggregateExchangeRatePrevote={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.hash&&t.uint32(10).string(e.hash),""!==e.voter&&t.uint32(18).string(e.voter),e.submitBlock.isZero()||t.uint32(24).uint64(e.submitBlock),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.hash=n.string();break;case 2:a.voter=n.string();break;case 3:a.submitBlock=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.hash&&null!==e.hash?t.hash=String(e.hash):t.hash="",void 0!==e.voter&&null!==e.voter?t.voter=String(e.voter):t.voter="",void 0!==e.submitBlock&&null!==e.submitBlock?t.submitBlock=i.default.fromString(e.submitBlock):t.submitBlock=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=e.hash),void 0!==e.voter&&(t.voter=e.voter),void 0!==e.submitBlock&&(t.submitBlock=(e.submitBlock||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash="",void 0!==e.voter&&null!==e.voter?t.voter=e.voter:t.voter="",void 0!==e.submitBlock&&null!==e.submitBlock?t.submitBlock=e.submitBlock:t.submitBlock=i.default.UZERO,t}};var d={voter:""};t.AggregateExchangeRateVote={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.exchangeRateTuples);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.ExchangeRateTuple.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return""!==e.voter&&a.uint32(18).string(e.voter),a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);for(i.exchangeRateTuples=[];r.pos>>3){case 1:i.exchangeRateTuples.push(t.ExchangeRateTuple.decode(r,r.uint32()));break;case 2:i.voter=r.string();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},d);if(n.exchangeRateTuples=[],void 0!==e.exchangeRateTuples&&null!==e.exchangeRateTuples){var a,i=r(e.exchangeRateTuples);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.exchangeRateTuples.push(t.ExchangeRateTuple.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.voter&&null!==e.voter?n.voter=String(e.voter):n.voter="",n},toJSON:function(e){var n={};return e.exchangeRateTuples?n.exchangeRateTuples=e.exchangeRateTuples.map((function(e){return e?t.ExchangeRateTuple.toJSON(e):void 0})):n.exchangeRateTuples=[],void 0!==e.voter&&(n.voter=e.voter),n},fromPartial:function(e){var n=Object.assign({},d);if(n.exchangeRateTuples=[],void 0!==e.exchangeRateTuples&&null!==e.exchangeRateTuples){var a,i=r(e.exchangeRateTuples);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.exchangeRateTuples.push(t.ExchangeRateTuple.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.voter&&null!==e.voter?n.voter=e.voter:n.voter="",n}};var f={denom:"",exchangeRate:""};t.ExchangeRateTuple={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.exchangeRate&&t.uint32(18).string(e.exchangeRate),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.exchangeRate=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.exchangeRate&&null!==e.exchangeRate?t.exchangeRate=String(e.exchangeRate):t.exchangeRate="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.exchangeRate&&(t.exchangeRate=e.exchangeRate),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.exchangeRate&&null!==e.exchangeRate?t.exchangeRate=e.exchangeRate:t.exchangeRate="",t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},75518:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgDelegateFeedConsentDesc=t.MsgAggregateExchangeRateVoteDesc=t.MsgAggregateExchangeRatePrevoteDesc=t.MsgDesc=t.MsgClientImpl=t.MsgDelegateFeedConsentResponse=t.MsgDelegateFeedConsent=t.MsgAggregateExchangeRateVoteResponse=t.MsgAggregateExchangeRateVote=t.MsgAggregateExchangeRatePrevoteResponse=t.MsgAggregateExchangeRatePrevote=t.protobufPackage=void 0;var o=i(n(24141)),s=n(70112),c=i(n(33591)),u=n(46711);t.protobufPackage="terra.oracle.v1beta1";var d={hash:"",feeder:"",validator:""};t.MsgAggregateExchangeRatePrevote={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.hash&&t.uint32(10).string(e.hash),""!==e.feeder&&t.uint32(18).string(e.feeder),""!==e.validator&&t.uint32(26).string(e.validator),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.hash=n.string();break;case 2:a.feeder=n.string();break;case 3:a.validator=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.hash&&null!==e.hash?t.hash=String(e.hash):t.hash="",void 0!==e.feeder&&null!==e.feeder?t.feeder=String(e.feeder):t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=String(e.validator):t.validator="",t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=e.hash),void 0!==e.feeder&&(t.feeder=e.feeder),void 0!==e.validator&&(t.validator=e.validator),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash="",void 0!==e.feeder&&null!==e.feeder?t.feeder=e.feeder:t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=e.validator:t.validator="",t}};var f={};t.MsgAggregateExchangeRatePrevoteResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.salt&&t.uint32(10).string(e.salt),""!==e.exchangeRates&&t.uint32(18).string(e.exchangeRates),""!==e.feeder&&t.uint32(26).string(e.feeder),""!==e.validator&&t.uint32(34).string(e.validator),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.salt=n.string();break;case 2:a.exchangeRates=n.string();break;case 3:a.feeder=n.string();break;case 4:a.validator=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.salt&&null!==e.salt?t.salt=String(e.salt):t.salt="",void 0!==e.exchangeRates&&null!==e.exchangeRates?t.exchangeRates=String(e.exchangeRates):t.exchangeRates="",void 0!==e.feeder&&null!==e.feeder?t.feeder=String(e.feeder):t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=String(e.validator):t.validator="",t},toJSON:function(e){var t={};return void 0!==e.salt&&(t.salt=e.salt),void 0!==e.exchangeRates&&(t.exchangeRates=e.exchangeRates),void 0!==e.feeder&&(t.feeder=e.feeder),void 0!==e.validator&&(t.validator=e.validator),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.salt&&null!==e.salt?t.salt=e.salt:t.salt="",void 0!==e.exchangeRates&&null!==e.exchangeRates?t.exchangeRates=e.exchangeRates:t.exchangeRates="",void 0!==e.feeder&&null!==e.feeder?t.feeder=e.feeder:t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=e.validator:t.validator="",t}};var b={};t.MsgAggregateExchangeRateVoteResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.operator&&t.uint32(10).string(e.operator),""!==e.delegate&&t.uint32(18).string(e.delegate),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.operator=n.string();break;case 2:a.delegate=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.operator&&null!==e.operator?t.operator=String(e.operator):t.operator="",void 0!==e.delegate&&null!==e.delegate?t.delegate=String(e.delegate):t.delegate="",t},toJSON:function(e){var t={};return void 0!==e.operator&&(t.operator=e.operator),void 0!==e.delegate&&(t.delegate=e.delegate),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.operator&&null!==e.operator?t.operator=e.operator:t.operator="",void 0!==e.delegate&&null!==e.delegate?t.delegate=e.delegate:t.delegate="",t}};var h={};t.MsgDelegateFeedConsentResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description);var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(26).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.addresses=[];n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.addresses.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);if(t.addresses=[],void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.addresses&&null!==e.addresses){var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.addresses.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),e.addresses?t.addresses=e.addresses.map((function(e){return e})):t.addresses=[],t},fromPartial:function(e){var t=Object.assign({},s);if(t.addresses=[],void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.addresses&&null!==e.addresses){var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.addresses.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var c={title:"",description:"",addresses:""};t.RemoveBurnTaxExemptionAddressProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description);var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(26).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.addresses=[];n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.addresses.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);if(t.addresses=[],void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.addresses&&null!==e.addresses){var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.addresses.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),e.addresses?t.addresses=e.addresses.map((function(e){return e})):t.addresses=[],t},fromPartial:function(e){var t=Object.assign({},c);if(t.addresses=[],void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.addresses&&null!==e.addresses){var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.addresses.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},49901:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EpochInitialIssuance=t.EpochTaxProceeds=t.PolicyConstraints=t.Params=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(33591)),s=n(68080);t.protobufPackage="terra.treasury.v1beta1";var c={seigniorageBurdenTarget:"",miningIncrement:"",windowShort:i.default.UZERO,windowLong:i.default.UZERO,windowProbation:i.default.UZERO,burnTaxSplit:""};t.Params={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.taxPolicy&&t.PolicyConstraints.encode(e.taxPolicy,n.uint32(10).fork()).ldelim(),void 0!==e.rewardPolicy&&t.PolicyConstraints.encode(e.rewardPolicy,n.uint32(18).fork()).ldelim(),""!==e.seigniorageBurdenTarget&&n.uint32(26).string(e.seigniorageBurdenTarget),""!==e.miningIncrement&&n.uint32(34).string(e.miningIncrement),e.windowShort.isZero()||n.uint32(40).uint64(e.windowShort),e.windowLong.isZero()||n.uint32(48).uint64(e.windowLong),e.windowProbation.isZero()||n.uint32(56).uint64(e.windowProbation),""!==e.burnTaxSplit&&n.uint32(66).string(e.burnTaxSplit),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);r.pos>>3){case 1:i.taxPolicy=t.PolicyConstraints.decode(r,r.uint32());break;case 2:i.rewardPolicy=t.PolicyConstraints.decode(r,r.uint32());break;case 3:i.seigniorageBurdenTarget=r.string();break;case 4:i.miningIncrement=r.string();break;case 5:i.windowShort=r.uint64();break;case 6:i.windowLong=r.uint64();break;case 7:i.windowProbation=r.uint64();break;case 8:i.burnTaxSplit=r.string();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);return void 0!==e.taxPolicy&&null!==e.taxPolicy?n.taxPolicy=t.PolicyConstraints.fromJSON(e.taxPolicy):n.taxPolicy=void 0,void 0!==e.rewardPolicy&&null!==e.rewardPolicy?n.rewardPolicy=t.PolicyConstraints.fromJSON(e.rewardPolicy):n.rewardPolicy=void 0,void 0!==e.seigniorageBurdenTarget&&null!==e.seigniorageBurdenTarget?n.seigniorageBurdenTarget=String(e.seigniorageBurdenTarget):n.seigniorageBurdenTarget="",void 0!==e.miningIncrement&&null!==e.miningIncrement?n.miningIncrement=String(e.miningIncrement):n.miningIncrement="",void 0!==e.windowShort&&null!==e.windowShort?n.windowShort=i.default.fromString(e.windowShort):n.windowShort=i.default.UZERO,void 0!==e.windowLong&&null!==e.windowLong?n.windowLong=i.default.fromString(e.windowLong):n.windowLong=i.default.UZERO,void 0!==e.windowProbation&&null!==e.windowProbation?n.windowProbation=i.default.fromString(e.windowProbation):n.windowProbation=i.default.UZERO,void 0!==e.burnTaxSplit&&null!==e.burnTaxSplit?n.burnTaxSplit=String(e.burnTaxSplit):n.burnTaxSplit="",n},toJSON:function(e){var n={};return void 0!==e.taxPolicy&&(n.taxPolicy=e.taxPolicy?t.PolicyConstraints.toJSON(e.taxPolicy):void 0),void 0!==e.rewardPolicy&&(n.rewardPolicy=e.rewardPolicy?t.PolicyConstraints.toJSON(e.rewardPolicy):void 0),void 0!==e.seigniorageBurdenTarget&&(n.seigniorageBurdenTarget=e.seigniorageBurdenTarget),void 0!==e.miningIncrement&&(n.miningIncrement=e.miningIncrement),void 0!==e.windowShort&&(n.windowShort=(e.windowShort||i.default.UZERO).toString()),void 0!==e.windowLong&&(n.windowLong=(e.windowLong||i.default.UZERO).toString()),void 0!==e.windowProbation&&(n.windowProbation=(e.windowProbation||i.default.UZERO).toString()),void 0!==e.burnTaxSplit&&(n.burnTaxSplit=e.burnTaxSplit),n},fromPartial:function(e){var n=Object.assign({},c);return void 0!==e.taxPolicy&&null!==e.taxPolicy?n.taxPolicy=t.PolicyConstraints.fromPartial(e.taxPolicy):n.taxPolicy=void 0,void 0!==e.rewardPolicy&&null!==e.rewardPolicy?n.rewardPolicy=t.PolicyConstraints.fromPartial(e.rewardPolicy):n.rewardPolicy=void 0,void 0!==e.seigniorageBurdenTarget&&null!==e.seigniorageBurdenTarget?n.seigniorageBurdenTarget=e.seigniorageBurdenTarget:n.seigniorageBurdenTarget="",void 0!==e.miningIncrement&&null!==e.miningIncrement?n.miningIncrement=e.miningIncrement:n.miningIncrement="",void 0!==e.windowShort&&null!==e.windowShort?n.windowShort=e.windowShort:n.windowShort=i.default.UZERO,void 0!==e.windowLong&&null!==e.windowLong?n.windowLong=e.windowLong:n.windowLong=i.default.UZERO,void 0!==e.windowProbation&&null!==e.windowProbation?n.windowProbation=e.windowProbation:n.windowProbation=i.default.UZERO,void 0!==e.burnTaxSplit&&null!==e.burnTaxSplit?n.burnTaxSplit=e.burnTaxSplit:n.burnTaxSplit="",n}};var u={rateMin:"",rateMax:"",changeRateMax:""};t.PolicyConstraints={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.rateMin&&t.uint32(10).string(e.rateMin),""!==e.rateMax&&t.uint32(18).string(e.rateMax),void 0!==e.cap&&s.Coin.encode(e.cap,t.uint32(26).fork()).ldelim(),""!==e.changeRateMax&&t.uint32(34).string(e.changeRateMax),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.rateMin=n.string();break;case 2:a.rateMax=n.string();break;case 3:a.cap=s.Coin.decode(n,n.uint32());break;case 4:a.changeRateMax=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.rateMin&&null!==e.rateMin?t.rateMin=String(e.rateMin):t.rateMin="",void 0!==e.rateMax&&null!==e.rateMax?t.rateMax=String(e.rateMax):t.rateMax="",void 0!==e.cap&&null!==e.cap?t.cap=s.Coin.fromJSON(e.cap):t.cap=void 0,void 0!==e.changeRateMax&&null!==e.changeRateMax?t.changeRateMax=String(e.changeRateMax):t.changeRateMax="",t},toJSON:function(e){var t={};return void 0!==e.rateMin&&(t.rateMin=e.rateMin),void 0!==e.rateMax&&(t.rateMax=e.rateMax),void 0!==e.cap&&(t.cap=e.cap?s.Coin.toJSON(e.cap):void 0),void 0!==e.changeRateMax&&(t.changeRateMax=e.changeRateMax),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.rateMin&&null!==e.rateMin?t.rateMin=e.rateMin:t.rateMin="",void 0!==e.rateMax&&null!==e.rateMax?t.rateMax=e.rateMax:t.rateMax="",void 0!==e.cap&&null!==e.cap?t.cap=s.Coin.fromPartial(e.cap):t.cap=void 0,void 0!==e.changeRateMax&&null!==e.changeRateMax?t.changeRateMax=e.changeRateMax:t.changeRateMax="",t}};var d={};t.EpochTaxProceeds={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.taxProceeds);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.taxProceeds=[];n.pos>>3==1?a.taxProceeds.push(s.Coin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},d);if(t.taxProceeds=[],void 0!==e.taxProceeds&&null!==e.taxProceeds){var n,a=r(e.taxProceeds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.taxProceeds.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.taxProceeds?t.taxProceeds=e.taxProceeds.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.taxProceeds=[],t},fromPartial:function(e){var t=Object.assign({},d);if(t.taxProceeds=[],void 0!==e.taxProceeds&&null!==e.taxProceeds){var n,a=r(e.taxProceeds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.taxProceeds.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var f={};t.EpochInitialIssuance={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.issuance);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.issuance=[];n.pos>>3==1?a.issuance.push(s.Coin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},f);if(t.issuance=[],void 0!==e.issuance&&null!==e.issuance){var n,a=r(e.issuance);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.issuance.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.issuance?t.issuance=e.issuance.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.issuance=[],t},fromPartial:function(e){var t=Object.assign({},f);if(t.issuance=[],void 0!==e.issuance&&null!==e.issuance){var n,a=r(e.issuance);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.issuance.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},83501:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VestingSchedule=t.Schedule=t.LazyGradedVestingAccount=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(33591)),s=n(65828);t.protobufPackage="terra.vesting.v1beta1";var c={};t.LazyGradedVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseVestingAccount&&s.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim();var a,i=r(e.vestingSchedules);try{for(i.s();!(a=i.n()).done;){var c=a.value;t.VestingSchedule.encode(c,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);for(i.vestingSchedules=[];r.pos>>3){case 1:i.baseVestingAccount=s.BaseVestingAccount.decode(r,r.uint32());break;case 2:i.vestingSchedules.push(t.VestingSchedule.decode(r,r.uint32()));break;default:r.skipType(7&u)}}return i},fromJSON:function(e){var n=Object.assign({},c);if(n.vestingSchedules=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=s.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.vestingSchedules&&null!==e.vestingSchedules){var a,i=r(e.vestingSchedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.vestingSchedules.push(t.VestingSchedule.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?s.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),e.vestingSchedules?n.vestingSchedules=e.vestingSchedules.map((function(e){return e?t.VestingSchedule.toJSON(e):void 0})):n.vestingSchedules=[],n},fromPartial:function(e){var n=Object.assign({},c);if(n.vestingSchedules=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=s.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.vestingSchedules&&null!==e.vestingSchedules){var a,i=r(e.vestingSchedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.vestingSchedules.push(t.VestingSchedule.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var u={startTime:i.default.ZERO,endTime:i.default.ZERO,ratio:""};t.Schedule={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.startTime.isZero()||t.uint32(8).int64(e.startTime),e.endTime.isZero()||t.uint32(16).int64(e.endTime),""!==e.ratio&&t.uint32(26).string(e.ratio),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.startTime=n.int64();break;case 2:a.endTime=n.int64();break;case 3:a.ratio=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.startTime&&null!==e.startTime?t.startTime=i.default.fromString(e.startTime):t.startTime=i.default.ZERO,void 0!==e.endTime&&null!==e.endTime?t.endTime=i.default.fromString(e.endTime):t.endTime=i.default.ZERO,void 0!==e.ratio&&null!==e.ratio?t.ratio=String(e.ratio):t.ratio="",t},toJSON:function(e){var t={};return void 0!==e.startTime&&(t.startTime=(e.startTime||i.default.ZERO).toString()),void 0!==e.endTime&&(t.endTime=(e.endTime||i.default.ZERO).toString()),void 0!==e.ratio&&(t.ratio=e.ratio),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.startTime&&null!==e.startTime?t.startTime=e.startTime:t.startTime=i.default.ZERO,void 0!==e.endTime&&null!==e.endTime?t.endTime=e.endTime:t.endTime=i.default.ZERO,void 0!==e.ratio&&null!==e.ratio?t.ratio=e.ratio:t.ratio="",t}};var d={denom:""};t.VestingSchedule={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.denom&&n.uint32(10).string(e.denom);var a,i=r(e.schedules);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Schedule.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);for(i.schedules=[];r.pos>>3){case 1:i.denom=r.string();break;case 2:i.schedules.push(t.Schedule.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},d);if(n.schedules=[],void 0!==e.denom&&null!==e.denom?n.denom=String(e.denom):n.denom="",void 0!==e.schedules&&null!==e.schedules){var a,i=r(e.schedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.schedules.push(t.Schedule.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.denom&&(n.denom=e.denom),e.schedules?n.schedules=e.schedules.map((function(e){return e?t.Schedule.toJSON(e):void 0})):n.schedules=[],n},fromPartial:function(e){var n=Object.assign({},d);if(n.schedules=[],void 0!==e.denom&&null!==e.denom?n.denom=e.denom:n.denom="",void 0!==e.schedules&&null!==e.schedules){var a,i=r(e.schedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.schedules.push(t.Schedule.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},62160:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(33482).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgClearContractAdminDesc=t.MsgUpdateContractAdminDesc=t.MsgMigrateContractDesc=t.MsgExecuteContractDesc=t.MsgInstantiateContractDesc=t.MsgMigrateCodeDesc=t.MsgStoreCodeDesc=t.MsgDesc=t.MsgClientImpl=t.MsgClearContractAdminResponse=t.MsgClearContractAdmin=t.MsgUpdateContractAdminResponse=t.MsgUpdateContractAdmin=t.MsgMigrateContractResponse=t.MsgMigrateContract=t.MsgExecuteContractResponse=t.MsgExecuteContract=t.MsgInstantiateContractResponse=t.MsgInstantiateContract=t.MsgMigrateCodeResponse=t.MsgMigrateCode=t.MsgStoreCodeResponse=t.MsgStoreCode=t.protobufPackage=void 0;var s=o(n(24141)),c=n(70112),u=o(n(33591)),d=n(46711),f=n(68080);t.protobufPackage="terra.wasm.v1beta1";var l={sender:""};t.MsgStoreCode={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),0!==e.wasmByteCode.length&&t.uint32(18).bytes(e.wasmByteCode),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.wasmByteCode=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.wasmByteCode=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return t.wasmByteCode=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode&&(t.wasmByteCode=O(e.wasmByteCode)),t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.wasmByteCode&&(t.wasmByteCode=M(void 0!==e.wasmByteCode?e.wasmByteCode:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode?t.wasmByteCode=e.wasmByteCode:t.wasmByteCode=new Uint8Array,t}};var b={codeId:s.default.UZERO};t.MsgStoreCodeResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return e.codeId.isZero()||t.uint32(8).uint64(e.codeId),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3==1?a.codeId=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,t}};var p={codeId:s.default.UZERO,sender:""};t.MsgMigrateCode={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return e.codeId.isZero()||t.uint32(8).uint64(e.codeId),""!==e.sender&&t.uint32(18).string(e.sender),0!==e.wasmByteCode.length&&t.uint32(26).bytes(e.wasmByteCode),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.wasmByteCode=new Uint8Array;n.pos>>3){case 1:a.codeId=n.uint64();break;case 2:a.sender=n.string();break;case 3:a.wasmByteCode=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return t.wasmByteCode=new Uint8Array,void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode&&(t.wasmByteCode=O(e.wasmByteCode)),t},toJSON:function(e){var t={};return void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.wasmByteCode&&(t.wasmByteCode=M(void 0!==e.wasmByteCode?e.wasmByteCode:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode?t.wasmByteCode=e.wasmByteCode:t.wasmByteCode=new Uint8Array,t}};var h={};t.MsgMigrateCodeResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.sender&&t.uint32(10).string(e.sender),""!==e.admin&&t.uint32(18).string(e.admin),e.codeId.isZero()||t.uint32(24).uint64(e.codeId),0!==e.initMsg.length&&t.uint32(34).bytes(e.initMsg);var n,r=i(e.initCoins);try{for(r.s();!(n=r.n()).done;){var a=n.value;f.Coin.encode(a,t.uint32(42).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.initCoins=[],a.initMsg=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.admin=n.string();break;case 3:a.codeId=n.uint64();break;case 4:a.initMsg=n.bytes();break;case 5:a.initCoins.push(f.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);if(t.initCoins=[],t.initMsg=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,void 0!==e.initMsg&&null!==e.initMsg&&(t.initMsg=O(e.initMsg)),void 0!==e.initCoins&&null!==e.initCoins){var n,r=i(e.initCoins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.initCoins.push(f.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.initMsg&&(t.initMsg=M(void 0!==e.initMsg?e.initMsg:new Uint8Array)),e.initCoins?t.initCoins=e.initCoins.map((function(e){return e?f.Coin.toJSON(e):void 0})):t.initCoins=[],t},fromPartial:function(e){var t=Object.assign({},y);if(t.initCoins=[],void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,void 0!==e.initMsg&&null!==e.initMsg?t.initMsg=e.initMsg:t.initMsg=new Uint8Array,void 0!==e.initCoins&&null!==e.initCoins){var n,r=i(e.initCoins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.initCoins.push(f.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var m={contractAddress:""};t.MsgInstantiateContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.contractAddress&&t.uint32(10).string(e.contractAddress),0!==e.data.length&&t.uint32(18).bytes(e.data),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.data=new Uint8Array;n.pos>>3){case 1:a.contractAddress=n.string();break;case 2:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return t.data=new Uint8Array,void 0!==e.contractAddress&&null!==e.contractAddress?t.contractAddress=String(e.contractAddress):t.contractAddress="",void 0!==e.data&&null!==e.data&&(t.data=O(e.data)),t},toJSON:function(e){var t={};return void 0!==e.contractAddress&&(t.contractAddress=e.contractAddress),void 0!==e.data&&(t.data=M(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.contractAddress&&null!==e.contractAddress?t.contractAddress=e.contractAddress:t.contractAddress="",void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var v={sender:"",contract:""};t.MsgExecuteContract={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(18).string(e.contract),0!==e.executeMsg.length&&t.uint32(26).bytes(e.executeMsg);var n,r=i(e.coins);try{for(r.s();!(n=r.n()).done;){var a=n.value;f.Coin.encode(a,t.uint32(42).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.coins=[],a.executeMsg=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.contract=n.string();break;case 3:a.executeMsg=n.bytes();break;case 5:a.coins.push(f.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);if(t.coins=[],t.executeMsg=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.executeMsg&&null!==e.executeMsg&&(t.executeMsg=O(e.executeMsg)),void 0!==e.coins&&null!==e.coins){var n,r=i(e.coins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.coins.push(f.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.executeMsg&&(t.executeMsg=M(void 0!==e.executeMsg?e.executeMsg:new Uint8Array)),e.coins?t.coins=e.coins.map((function(e){return e?f.Coin.toJSON(e):void 0})):t.coins=[],t},fromPartial:function(e){var t=Object.assign({},v);if(t.coins=[],void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.executeMsg&&null!==e.executeMsg?t.executeMsg=e.executeMsg:t.executeMsg=new Uint8Array,void 0!==e.coins&&null!==e.coins){var n,r=i(e.coins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.coins.push(f.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var g={};t.MsgExecuteContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);for(a.data=new Uint8Array;n.pos>>3==1?a.data=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},g);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=O(e.data)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=M(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},g);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var A={admin:"",contract:"",newCodeId:s.default.UZERO};t.MsgMigrateContract={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.admin&&t.uint32(10).string(e.admin),""!==e.contract&&t.uint32(18).string(e.contract),e.newCodeId.isZero()||t.uint32(24).uint64(e.newCodeId),0!==e.migrateMsg.length&&t.uint32(34).bytes(e.migrateMsg),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.migrateMsg=new Uint8Array;n.pos>>3){case 1:a.admin=n.string();break;case 2:a.contract=n.string();break;case 3:a.newCodeId=n.uint64();break;case 4:a.migrateMsg=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return t.migrateMsg=new Uint8Array,void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.newCodeId&&null!==e.newCodeId?t.newCodeId=s.default.fromString(e.newCodeId):t.newCodeId=s.default.UZERO,void 0!==e.migrateMsg&&null!==e.migrateMsg&&(t.migrateMsg=O(e.migrateMsg)),t},toJSON:function(e){var t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.newCodeId&&(t.newCodeId=(e.newCodeId||s.default.UZERO).toString()),void 0!==e.migrateMsg&&(t.migrateMsg=M(void 0!==e.migrateMsg?e.migrateMsg:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.newCodeId&&null!==e.newCodeId?t.newCodeId=e.newCodeId:t.newCodeId=s.default.UZERO,void 0!==e.migrateMsg&&null!==e.migrateMsg?t.migrateMsg=e.migrateMsg:t.migrateMsg=new Uint8Array,t}};var w={};t.MsgMigrateContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);for(a.data=new Uint8Array;n.pos>>3==1?a.data=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},w);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=O(e.data)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=M(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var x={admin:"",newAdmin:"",contract:""};t.MsgUpdateContractAdmin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.admin&&t.uint32(10).string(e.admin),""!==e.newAdmin&&t.uint32(18).string(e.newAdmin),""!==e.contract&&t.uint32(26).string(e.contract),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},x);n.pos>>3){case 1:a.admin=n.string();break;case 2:a.newAdmin=n.string();break;case 3:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},x);return void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=String(e.newAdmin):t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.newAdmin&&(t.newAdmin=e.newAdmin),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},x);return void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=e.newAdmin:t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var _={};t.MsgUpdateContractAdminResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.admin&&t.uint32(10).string(e.admin),""!==e.contract&&t.uint32(18).string(e.contract),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);n.pos>>3){case 1:a.admin=n.string();break;case 2:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},k);return void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var I={};t.MsgClearContractAdminResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},I);n.pos1&&void 0!==arguments[1]?arguments[1]:0,n=new f.default(this.blob.decode(e,t),10,"le");return this.signed?n.fromTwos(8*this.span).clone():n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.signed&&(e=e.toTwos(8*this.span)),this.blob.encode(e.toArrayLike(r,"le",this.span),t,n)}}]),n}(u.Layout);function p(e){return new b(8,!1,e)}t.u64=p,t.i64=function(e){return new b(8,!0,e)},t.u128=function(e){return new b(16,!1,e)},t.i128=function(e){return new b(16,!0,e)},t.u256=function(e){return new b(32,!1,e)},t.i256=function(e){return new b(32,!0,e)};var h=function(e){o(n,e);var t=s(n);function n(e,r,i,o){var s;return a(this,n),(s=t.call(this,e.span,o)).layout=e,s.decoder=r,s.encoder=i,s}return i(n,[{key:"decode",value:function(e,t){return this.decoder(this.layout.decode(e,t))}},{key:"encode",value:function(e,t,n){return this.layout.encode(this.encoder(e),t,n)}},{key:"getSpan",value:function(e,t){return this.layout.getSpan(e,t)}}]),n}(u.Layout);t.publicKey=function(e){return new h((0,u.blob)(32),(function(e){return new d.PublicKey(e)}),(function(e){return e.toBuffer()}),e)};var y=function(e){o(n,e);var t=s(n);function n(e,r){var i;return a(this,n),(i=t.call(this,-1,r)).layout=e,i.discriminator=(0,u.u8)(),i}return i(n,[{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null==e?this.discriminator.encode(0,t,n):(this.discriminator.encode(1,t,n),this.layout.encode(e,t,n+1)+1)}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return null;if(1===n)return this.layout.decode(e,t+1);throw new Error("Invalid option "+this.property)}},{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return 1;if(1===n)return this.layout.getSpan(e,t+1)+1;throw new Error("Invalid option "+this.property)}}]),n}(u.Layout);function m(e){if(0===e)return!1;if(1===e)return!0;throw new Error("Invalid bool: "+e)}function v(e){return e?1:0}function g(e){var t=(0,u.u32)("length"),n=(0,u.struct)([t,(0,u.blob)((0,u.offset)(t,-t.span),"data")]);return new h(n,(function(e){return e.data}),(function(e){return{data:e}}),e)}t.option=function(e,t){return new y(e,t)},t.bool=function(e){return new h((0,u.u8)(),m,v,e)},t.vec=function(e,t){var n=(0,u.u32)("length"),r=(0,u.struct)([n,(0,u.seq)(e,(0,u.offset)(n,-n.span),"values")]);return new h(r,(function(e){return e.values}),(function(e){return{values:e}}),t)},t.tagged=function(e,t,n){var r=(0,u.struct)([p("tag"),t.replicate("data")]);return new h(r,(function(t){var n=t.tag,r=t.data;if(!n.eq(e))throw new Error("Invalid tag, expected: "+e.toString("hex")+", got: "+n.toString("hex"));return r}),(function(t){return{tag:e,data:t}}),n)},t.vecU8=g,t.str=function(e){return new h(g(),(function(e){return e.toString("utf-8")}),(function(e){return r.from(e,"utf-8")}),e)},t.rustEnum=function(e,t,n){var r=(0,u.union)(null!=n?n:(0,u.u8)(),t);return e.forEach((function(e,t){return r.addVariant(t,e,e.property)})),r},t.array=function(e,t,n){var r=(0,u.struct)([(0,u.seq)(e,t,"values")]);return new h(r,(function(e){return e.values}),(function(e){return{values:e}}),n)};var A=function(e){o(n,e);var t=s(n);function n(e,r,i){var o;return a(this,n),(o=t.call(this,e.span+r.span,i)).keyLayout=e,o.valueLayout=r,o}return i(n,[{key:"decode",value:function(e,t){return t=t||0,[this.keyLayout.decode(e,t),this.valueLayout.decode(e,t+this.keyLayout.getSpan(e,t))]}},{key:"encode",value:function(e,t,n){n=n||0;var r=this.keyLayout.encode(e[0],t,n);return r+this.valueLayout.encode(e[1],t,n+r)}},{key:"getSpan",value:function(e,t){return this.keyLayout.getSpan(e,t)+this.valueLayout.getSpan(e,t)}}]),n}(u.Layout);t.map=function(e,t,n){var r=(0,u.u32)("length"),a=(0,u.struct)([r,(0,u.seq)(new A(e,t),(0,u.offset)(r,-r.span),"values")]);return new h(a,(function(e){var t=e.values;return new Map(t)}),(function(e){return{values:Array.from(e.entries())}}),n)}},30934:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pubkeyToAddress=t.pubkeyToRawAddress=t.rawSecp256k1PubkeyToRawAddress=t.rawEd25519PubkeyToRawAddress=void 0;var r=n(77),a=n(73713),i=n(12729),o=n(67942);function s(e){if(32!==e.length)throw new Error("Invalid Ed25519 pubkey length: ".concat(e.length));return(0,r.sha256)(e).slice(0,20)}function c(e){if(33!==e.length)throw new Error("Invalid Secp256k1 pubkey length (compressed): ".concat(e.length));return(0,r.ripemd160)((0,r.sha256)(e))}function u(e){if((0,o.isSecp256k1Pubkey)(e))return c((0,a.fromBase64)(e.value));if((0,o.isEd25519Pubkey)(e))return s((0,a.fromBase64)(e.value));if((0,o.isMultisigThresholdPubkey)(e)){var t=(0,i.encodeAminoPubkey)(e);return(0,r.sha256)(t).slice(0,20)}throw new Error("Unsupported public key type")}t.rawEd25519PubkeyToRawAddress=s,t.rawSecp256k1PubkeyToRawAddress=c,t.pubkeyToRawAddress=u,t.pubkeyToAddress=function(e,t){return(0,a.toBech32)(t,u(e))}},2988:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addCoins=t.parseCoins=t.coins=t.coin=void 0;var r=n(36533);function a(e,t){var n;if("number"==typeof e)try{n=new r.Uint53(e).toString()}catch(e){throw new Error("Given amount is not a safe integer. Consider using a string instead to overcome the limitations of JS numbers.")}else{if(!e.match(/^[0-9]+$/))throw new Error("Invalid unsigned integer string format");n=e.replace(/^0*/,"")||"0"}return{amount:n,denom:t}}t.coin=a,t.coins=function(e,t){return[a(e,t)]},t.parseCoins=function(e){return e.replace(/\s/g,"").split(",").filter(Boolean).map((function(e){var t=e.match(/^([0-9]+)([a-zA-Z]+)/);if(!t)throw new Error("Got an invalid coin string");return{amount:t[1].replace(/^0+/,"")||"0",denom:t[2]}}))},t.addCoins=function(e,t){if(e.denom!==t.denom)throw new Error("Trying to add two coins with different denoms");return{amount:r.Decimal.fromAtomics(e.amount,0).plus(r.Decimal.fromAtomics(t.amount,0)).atomics,denom:e.denom}}},12729:function(e,t,n){"use strict";var r=n(33482).default,a=n(69453).default,i=n(15771).default;Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBech32Pubkey=t.encodeAminoPubkey=t.decodeBech32Pubkey=t.decodeAminoPubkey=t.encodeEd25519Pubkey=t.encodeSecp256k1Pubkey=void 0;var o=n(73713),s=n(36533),c=n(22092),u=n(67942);t.encodeSecp256k1Pubkey=function(e){if(33!==e.length||2!==e[0]&&3!==e[0])throw new Error("Public key must be compressed secp256k1, i.e. 33 bytes starting with 0x02 or 0x03");return{type:u.pubkeyType.secp256k1,value:(0,o.toBase64)(e)}},t.encodeEd25519Pubkey=function(e){if(32!==e.length)throw new Error("Ed25519 public key must be 32 bytes long");return{type:u.pubkeyType.ed25519,value:(0,o.toBase64)(e)}};var d=(0,o.fromHex)("eb5ae98721"),f=(0,o.fromHex)("1624de6420"),l=(0,o.fromHex)("0dfb100520"),b=(0,o.fromHex)("22c1f7e2");function p(e){if((0,c.arrayContentStartsWith)(e,d)){var t=e.slice(d.length);if(33!==t.length)throw new Error("Invalid rest data length. Expected 33 bytes (compressed secp256k1 pubkey).");return{type:u.pubkeyType.secp256k1,value:(0,o.toBase64)(t)}}if((0,c.arrayContentStartsWith)(e,f)){var n=e.slice(f.length);if(32!==n.length)throw new Error("Invalid rest data length. Expected 32 bytes (Ed25519 pubkey).");return{type:u.pubkeyType.ed25519,value:(0,o.toBase64)(n)}}if((0,c.arrayContentStartsWith)(e,l)){var r=e.slice(l.length);if(32!==r.length)throw new Error("Invalid rest data length. Expected 32 bytes (Sr25519 pubkey).");return{type:u.pubkeyType.sr25519,value:(0,o.toBase64)(r)}}if((0,c.arrayContentStartsWith)(e,b))return function(e){var t=Array.from(e),n=t.splice(0,b.length);if(!(0,c.arrayContentStartsWith)(n,b))throw new Error("Invalid multisig prefix.");if(8!=t.shift())throw new Error("Invalid multisig data. Expecting 0x08 prefix before threshold.");var r=h(t),a=i(r,2),o=a[0],s=a[1];t.splice(0,s);for(var d=[];t.length>0;){if(18!=t.shift())throw new Error("Invalid multisig data. Expecting 0x12 prefix before participant pubkey length.");var f=h(t),l=i(f,2),y=l[0],m=l[1];if(t.splice(0,m),t.length127)throw new Error("Decoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.Varint implementation from the Go standard library and write some tests.");return[e[0],1]}function y(e){var t=s.Uint53.fromString(e.toString()).toNumber();if(t>127)throw new Error("Encoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.PutUvarint implementation from the Go standard library and write some tests.");return[t]}function m(e){if((0,u.isMultisigThresholdPubkey)(e)){var t=Array.from(b);t.push(8),t.push.apply(t,a(y(e.value.threshold)));var n,i=r(e.value.pubkeys.map((function(e){return m(e)})));try{for(i.s();!(n=i.n()).done;){var s=n.value;t.push(18),t.push.apply(t,a(y(s.length))),t.push.apply(t,a(s))}}catch(e){i.e(e)}finally{i.f()}return new Uint8Array(t)}if((0,u.isEd25519Pubkey)(e))return new Uint8Array([].concat(a(f),a((0,o.fromBase64)(e.value))));if((0,u.isSecp256k1Pubkey)(e))return new Uint8Array([].concat(a(d),a((0,o.fromBase64)(e.value))));throw new Error("Unsupported pubkey type")}t.decodeAminoPubkey=p,t.decodeBech32Pubkey=function(e){return p((0,o.fromBech32)(e).data)},t.encodeAminoPubkey=m,t.encodeBech32Pubkey=function(e,t){return(0,o.toBech32)(t,m(e))}},36267:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeKdf=t.makeStdTx=t.isStdTx=t.serializeSignDoc=t.makeSignDoc=t.encodeSecp256k1Signature=t.decodeSignature=t.Secp256k1Wallet=t.Secp256k1HdWallet=t.extractKdfConfiguration=t.pubkeyType=t.isSinglePubkey=t.isSecp256k1Pubkey=t.isMultisigThresholdPubkey=t.isEd25519Pubkey=t.makeCosmoshubPath=t.createMultisigThresholdPubkey=t.encodeSecp256k1Pubkey=t.encodeEd25519Pubkey=t.encodeBech32Pubkey=t.encodeAminoPubkey=t.decodeBech32Pubkey=t.decodeAminoPubkey=t.parseCoins=t.coins=t.coin=t.addCoins=t.rawSecp256k1PubkeyToRawAddress=t.rawEd25519PubkeyToRawAddress=t.pubkeyToRawAddress=t.pubkeyToAddress=void 0;var r=n(30934);Object.defineProperty(t,"pubkeyToAddress",{enumerable:!0,get:function(){return r.pubkeyToAddress}}),Object.defineProperty(t,"pubkeyToRawAddress",{enumerable:!0,get:function(){return r.pubkeyToRawAddress}}),Object.defineProperty(t,"rawEd25519PubkeyToRawAddress",{enumerable:!0,get:function(){return r.rawEd25519PubkeyToRawAddress}}),Object.defineProperty(t,"rawSecp256k1PubkeyToRawAddress",{enumerable:!0,get:function(){return r.rawSecp256k1PubkeyToRawAddress}});var a=n(2988);Object.defineProperty(t,"addCoins",{enumerable:!0,get:function(){return a.addCoins}}),Object.defineProperty(t,"coin",{enumerable:!0,get:function(){return a.coin}}),Object.defineProperty(t,"coins",{enumerable:!0,get:function(){return a.coins}}),Object.defineProperty(t,"parseCoins",{enumerable:!0,get:function(){return a.parseCoins}});var i=n(12729);Object.defineProperty(t,"decodeAminoPubkey",{enumerable:!0,get:function(){return i.decodeAminoPubkey}}),Object.defineProperty(t,"decodeBech32Pubkey",{enumerable:!0,get:function(){return i.decodeBech32Pubkey}}),Object.defineProperty(t,"encodeAminoPubkey",{enumerable:!0,get:function(){return i.encodeAminoPubkey}}),Object.defineProperty(t,"encodeBech32Pubkey",{enumerable:!0,get:function(){return i.encodeBech32Pubkey}}),Object.defineProperty(t,"encodeEd25519Pubkey",{enumerable:!0,get:function(){return i.encodeEd25519Pubkey}}),Object.defineProperty(t,"encodeSecp256k1Pubkey",{enumerable:!0,get:function(){return i.encodeSecp256k1Pubkey}});var o=n(66973);Object.defineProperty(t,"createMultisigThresholdPubkey",{enumerable:!0,get:function(){return o.createMultisigThresholdPubkey}});var s=n(11491);Object.defineProperty(t,"makeCosmoshubPath",{enumerable:!0,get:function(){return s.makeCosmoshubPath}});var c=n(67942);Object.defineProperty(t,"isEd25519Pubkey",{enumerable:!0,get:function(){return c.isEd25519Pubkey}}),Object.defineProperty(t,"isMultisigThresholdPubkey",{enumerable:!0,get:function(){return c.isMultisigThresholdPubkey}}),Object.defineProperty(t,"isSecp256k1Pubkey",{enumerable:!0,get:function(){return c.isSecp256k1Pubkey}}),Object.defineProperty(t,"isSinglePubkey",{enumerable:!0,get:function(){return c.isSinglePubkey}}),Object.defineProperty(t,"pubkeyType",{enumerable:!0,get:function(){return c.pubkeyType}});var u=n(68143);Object.defineProperty(t,"extractKdfConfiguration",{enumerable:!0,get:function(){return u.extractKdfConfiguration}}),Object.defineProperty(t,"Secp256k1HdWallet",{enumerable:!0,get:function(){return u.Secp256k1HdWallet}});var d=n(88537);Object.defineProperty(t,"Secp256k1Wallet",{enumerable:!0,get:function(){return d.Secp256k1Wallet}});var f=n(25481);Object.defineProperty(t,"decodeSignature",{enumerable:!0,get:function(){return f.decodeSignature}}),Object.defineProperty(t,"encodeSecp256k1Signature",{enumerable:!0,get:function(){return f.encodeSecp256k1Signature}});var l=n(67391);Object.defineProperty(t,"makeSignDoc",{enumerable:!0,get:function(){return l.makeSignDoc}}),Object.defineProperty(t,"serializeSignDoc",{enumerable:!0,get:function(){return l.serializeSignDoc}});var b=n(18188);Object.defineProperty(t,"isStdTx",{enumerable:!0,get:function(){return b.isStdTx}}),Object.defineProperty(t,"makeStdTx",{enumerable:!0,get:function(){return b.makeStdTx}});var p=n(28202);Object.defineProperty(t,"executeKdf",{enumerable:!0,get:function(){return p.executeKdf}})},66973:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createMultisigThresholdPubkey=t.compareArrays=void 0;var r=n(73713),a=n(36533),i=n(30934);function o(e,t){var n=(0,r.toHex)(e),a=(0,r.toHex)(t);return n===a?0:n2&&void 0!==arguments[2]&&arguments[2],r=new a.Uint53(t);if(r.toNumber()>e.length)throw new Error("Threshold k = ".concat(r.toNumber()," exceeds number of keys n = ").concat(e.length));var s=n?e:Array.from(e).sort((function(e,t){return o((0,i.pubkeyToRawAddress)(e),(0,i.pubkeyToRawAddress)(t))}));return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:r.toString(),pubkeys:s}}}},11491:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeCosmoshubPath=void 0;var r=n(77);t.makeCosmoshubPath=function(e){return[r.Slip10RawIndex.hardened(44),r.Slip10RawIndex.hardened(118),r.Slip10RawIndex.hardened(0),r.Slip10RawIndex.normal(0),r.Slip10RawIndex.normal(e)]}},67942:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMultisigThresholdPubkey=t.isSinglePubkey=t.pubkeyType=t.isSecp256k1Pubkey=t.isEd25519Pubkey=void 0,t.isEd25519Pubkey=function(e){return"tendermint/PubKeyEd25519"===e.type},t.isSecp256k1Pubkey=function(e){return"tendermint/PubKeySecp256k1"===e.type},t.pubkeyType={secp256k1:"tendermint/PubKeySecp256k1",ed25519:"tendermint/PubKeyEd25519",sr25519:"tendermint/PubKeySr25519",multisigThreshold:"tendermint/PubKeyMultisigThreshold"},t.isSinglePubkey=function(e){return[t.pubkeyType.ed25519,t.pubkeyType.secp256k1,t.pubkeyType.sr25519].includes(e.type)},t.isMultisigThresholdPubkey=function(e){return"tendermint/PubKeyMultisigThreshold"===e.type}},68143:function(e,t,n){"use strict";var r=n(97785).default,a=n(69453).default,i=n(80294).default,o=n(46228).default,s=n(34671).default,c=n(68387).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1HdWallet=t.extractKdfConfiguration=void 0;var u=n(77),d=n(73713),f=n(22092),l=n(30934),b=n(11491),p=n(25481),h=n(67391),y=n(28202),m="secp256k1wallet-v1",v={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12288}};t.extractKdfConfiguration=function(e){var t=JSON.parse(e);if(!(0,f.isNonNullObject)(t))throw new Error("Root document is not an object.");if(t.type===m)return t.kdf;throw new Error("Unsupported serialization type")};var g={bip39Password:"",hdPaths:[(0,b.makeCosmoshubPath)(0)],prefix:"cosmos"},A=function(){function e(t,n){var r,a;s(this,e);var i=null!==(r=n.hdPaths)&&void 0!==r?r:g.hdPaths,o=null!==(a=n.prefix)&&void 0!==a?a:g.prefix;this.secret=t,this.seed=n.seed,this.accounts=i.map((function(e){return{hdPath:e,prefix:o}}))}var t,n,b,A,w,x,_,k,I,S,E;return c(e,[{key:"mnemonic",get:function(){return this.secret.toString()}},{key:"getAccounts",value:(E=o(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountsWithPrivkeys();case 2:return t=e.sent,e.abrupt("return",t.map((function(e){return{algo:e.algo,pubkey:e.pubkey,address:e.address}})));case 4:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{key:"signAmino",value:(S=o(i().mark((function e(t,n){var r,o,s,c,d,f,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountsWithPrivkeys();case 2:if(r=e.sent,void 0!==(o=r.find((function(e){return e.address===t})))){e.next=6;break}throw new Error("Address ".concat(t," not found in wallet"));case 6:return s=o.privkey,c=o.pubkey,d=(0,u.sha256)((0,h.serializeSignDoc)(n)),e.next=10,u.Secp256k1.createSignature(d,s);case 10:return f=e.sent,l=new Uint8Array([].concat(a(f.r(32)),a(f.s(32)))),e.abrupt("return",{signed:n,signature:(0,p.encodeSecp256k1Signature)(c,l)});case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return S.apply(this,arguments)})},{key:"serialize",value:(I=o(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=v,e.next=3,(0,y.executeKdf)(t,n);case 3:return r=e.sent,e.abrupt("return",this.serializeWithEncryptionKey(r,n));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return I.apply(this,arguments)})},{key:"serializeWithEncryptionKey",value:(k=o(i().mark((function e(t,n){var r,a,o,s,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={mnemonic:this.mnemonic,accounts:this.accounts.map((function(e){var t=e.hdPath,n=e.prefix;return{hdPath:(0,u.pathToString)(t),prefix:n}}))},a=(0,d.toUtf8)(JSON.stringify(r)),o={algorithm:y.supportedAlgorithms.xchacha20poly1305Ietf},e.next=5,(0,y.encrypt)(a,t,o);case 5:return s=e.sent,c={type:m,kdf:n,encryption:o,data:(0,d.toBase64)(s)},e.abrupt("return",JSON.stringify(c));case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return k.apply(this,arguments)})},{key:"getKeyPair",value:(_=o(i().mark((function e(t){var n,r,a,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.Slip10.derivePath(u.Slip10Curve.Secp256k1,this.seed,t),r=n.privkey,e.next=3,u.Secp256k1.makeKeypair(r);case 3:return a=e.sent,o=a.pubkey,e.abrupt("return",{privkey:r,pubkey:u.Secp256k1.compressPubkey(o)});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"getAccountsWithPrivkeys",value:(x=o(i().mark((function e(){var t=this;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(this.accounts.map(function(){var e=o(i().mark((function e(n){var r,a,o,s,c,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.hdPath,a=n.prefix,e.next=3,t.getKeyPair(r);case 3:return o=e.sent,s=o.privkey,c=o.pubkey,u=(0,d.toBech32)(a,(0,l.rawSecp256k1PubkeyToRawAddress)(c)),e.abrupt("return",{algo:"secp256k1",privkey:s,pubkey:c,address:u});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)})}],[{key:"fromMnemonic",value:(w=o(i().mark((function t(n){var a,o,s,c=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>1&&void 0!==c[1]?c[1]:{},o=new u.EnglishMnemonic(n),t.next=4,u.Bip39.mnemonicToSeed(o,a.bip39Password);case 4:return s=t.sent,t.abrupt("return",new e(o,r(r({},a),{},{seed:s})));case 6:case"end":return t.stop()}}),t)}))),function(e){return w.apply(this,arguments)})},{key:"generate",value:(A=o(i().mark((function t(){var n,r,a,o,s,c=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:12,r=c.length>1&&void 0!==c[1]?c[1]:{},a=4*Math.floor(11*n/33),o=u.Random.getBytes(a),s=u.Bip39.encode(o),t.abrupt("return",e.fromMnemonic(s.toString(),r));case 6:case"end":return t.stop()}}),t)}))),function(){return A.apply(this,arguments)})},{key:"deserialize",value:(b=o(i().mark((function t(n,r){var a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=JSON.parse(n),(0,f.isNonNullObject)(a)){t.next=3;break}throw new Error("Root document is not an object.");case 3:t.t0=a.type,t.next=t.t0===m?6:7;break;case 6:return t.abrupt("return",e.deserializeTypeV1(n,r));case 7:throw new Error("Unsupported serialization type");case 8:case"end":return t.stop()}}),t)}))),function(e,t){return b.apply(this,arguments)})},{key:"deserializeWithEncryptionKey",value:(n=o(i().mark((function t(n,r){var a,o,s,c,l,b,p,h;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=JSON.parse(n),(0,f.isNonNullObject)(a)){t.next=3;break}throw new Error("Root document is not an object.");case 3:o=a,t.t0=o.type,t.next=t.t0===m?7:22;break;case 7:return t.next=9,(0,y.decrypt)((0,d.fromBase64)(o.data),r,o.encryption);case 9:if(s=t.sent,c=JSON.parse((0,d.fromUtf8)(s)),l=c.mnemonic,b=c.accounts,(0,f.assert)("string"==typeof l),Array.isArray(b)){t.next=15;break}throw new Error("Property 'accounts' is not an array");case 15:if(b.every((function(e){return t=e,!!(0,f.isNonNullObject)(t)&&"string"==typeof t.hdPath&&"string"==typeof t.prefix;var t}))){t.next=17;break}throw new Error("Account is not in the correct format.");case 17:if(p=b[0].prefix,b.every((function(e){return e.prefix===p}))){t.next=20;break}throw new Error("Accounts do not all have the same prefix");case 20:return h=b.map((function(e){var t=e.hdPath;return(0,u.stringToPath)(t)})),t.abrupt("return",e.fromMnemonic(l,{hdPaths:h,prefix:p}));case 22:throw new Error("Unsupported serialization type");case 23:case"end":return t.stop()}}),t)}))),function(e,t){return n.apply(this,arguments)})},{key:"deserializeTypeV1",value:(t=o(i().mark((function t(n,r){var a,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=JSON.parse(n),(0,f.isNonNullObject)(a)){t.next=3;break}throw new Error("Root document is not an object.");case 3:return t.next=5,(0,y.executeKdf)(r,a.kdf);case 5:return o=t.sent,t.abrupt("return",e.deserializeWithEncryptionKey(n,o));case 7:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();t.Secp256k1HdWallet=A},88537:function(e,t,n){"use strict";var r=n(69453).default,a=n(80294).default,i=n(46228).default,o=n(34671).default,s=n(68387).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Secp256k1Wallet=void 0;var c=n(77),u=n(73713),d=n(30934),f=n(25481),l=n(67391),b=function(){function e(t,n,r){o(this,e),this.privkey=t,this.pubkey=n,this.prefix=r}var t,n,b;return s(e,[{key:"address",get:function(){return(0,u.toBech32)(this.prefix,(0,d.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}},{key:"getAccounts",value:(b=i(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]);case 1:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"signAmino",value:(n=i(a().mark((function e(t,n){var i,o,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t===this.address){e.next=2;break}throw new Error("Address ".concat(t," not found in wallet"));case 2:return i=new c.Sha256((0,l.serializeSignDoc)(n)).digest(),e.next=5,c.Secp256k1.createSignature(i,this.privkey);case 5:return o=e.sent,s=new Uint8Array([].concat(r(o.r(32)),r(o.s(32)))),e.abrupt("return",{signed:n,signature:(0,f.encodeSecp256k1Signature)(this.pubkey,s)});case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})}],[{key:"fromKey",value:(t=i(a().mark((function t(n){var r,i,o=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:"cosmos",t.next=3,c.Secp256k1.makeKeypair(n);case 3:return i=t.sent.pubkey,t.abrupt("return",new e(n,c.Secp256k1.compressPubkey(i),r));case 5:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}]),e}();t.Secp256k1Wallet=b},25481:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSignature=t.encodeSecp256k1Signature=void 0;var r=n(73713),a=n(12729),i=n(67942);t.encodeSecp256k1Signature=function(e,t){if(64!==t.length)throw new Error("Signature must be 64 bytes long. Cosmos SDK uses a 2x32 byte fixed length encoding for the secp256k1 signature integers r and s.");return{pub_key:(0,a.encodeSecp256k1Pubkey)(e),signature:(0,r.toBase64)(t)}},t.decodeSignature=function(e){if(e.pub_key.type===i.pubkeyType.secp256k1)return{pubkey:(0,r.fromBase64)(e.pub_key.value),signature:(0,r.fromBase64)(e.signature)};throw new Error("Unsupported pubkey type")}},67391:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeSignDoc=t.escapeCharacters=t.makeSignDoc=t.sortedJsonStringify=void 0;var r=n(73713),a=n(36533);function i(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return e.map(i);var t=Object.keys(e).sort(),n={};return t.forEach((function(t){n[t]=i(e[t])})),n}function o(e){return JSON.stringify(i(e))}function s(e){return e.replace(/&/g,"\\u0026").replace(//g,"\\u003e")}t.sortedJsonStringify=o,t.makeSignDoc=function(e,t,n,r,i,o){return{chain_id:n,account_number:a.Uint53.fromString(i.toString()).toString(),sequence:a.Uint53.fromString(o.toString()).toString(),fee:t,msgs:e,memo:r||""}},t.escapeCharacters=s,t.serializeSignDoc=function(e){var t=s(o(e));return(0,r.toUtf8)(t)}},18188:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeStdTx=t.isStdTx=void 0,t.isStdTx=function(e){var t=e.memo,n=e.msg,r=e.fee,a=e.signatures;return"string"==typeof t&&Array.isArray(n)&&"object"==typeof r&&Array.isArray(a)},t.makeStdTx=function(e,t){return{msg:e.msgs,fee:e.fee,memo:e.memo,signatures:Array.isArray(t)?t:[t]}}},28202:function(e,t,n){"use strict";var r=n(69453).default,a=n(80294).default,i=n(46228).default;Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=t.supportedAlgorithms=t.executeKdf=t.cosmjsSalt=void 0;var o=n(77),s=n(73713);function c(){return(c=i(a().mark((function e(n,r){var i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=r.algorithm,e.next="argon2id"===e.t0?3:7;break;case 3:if(i=r.params,(0,o.isArgon2idOptions)(i)){e.next=6;break}throw new Error("Invalid format of argon2id params");case 6:return e.abrupt("return",o.Argon2id.execute(n,t.cosmjsSalt,i));case 7:throw new Error("Unsupported KDF algorithm");case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(){return(u=i(a().mark((function e(n,i,s){var c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=s.algorithm,e.next=e.t0===t.supportedAlgorithms.xchacha20poly1305Ietf?3:14;break;case 3:return c=o.Random.getBytes(o.xchacha20NonceLength),e.t1=Uint8Array,e.t2=[],e.t3=r(c),e.t4=r,e.next=10,o.Xchacha20poly1305Ietf.encrypt(n,i,c);case 10:return e.t5=e.sent,e.t6=(0,e.t4)(e.t5),e.t7=e.t2.concat.call(e.t2,e.t3,e.t6),e.abrupt("return",new e.t1(e.t7));case 14:throw new Error("Unsupported encryption algorithm: '".concat(s.algorithm,"'"));case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(){return(d=i(a().mark((function e(n,r,i){var s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=i.algorithm,e.next=e.t0===t.supportedAlgorithms.xchacha20poly1305Ietf?3:5;break;case 3:return s=n.slice(0,o.xchacha20NonceLength),e.abrupt("return",o.Xchacha20poly1305Ietf.decrypt(n.slice(o.xchacha20NonceLength),r,s));case 5:throw new Error("Unsupported encryption algorithm: '".concat(i.algorithm,"'"));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.cosmjsSalt=(0,s.toAscii)("The CosmJS salt."),t.executeKdf=function(e,t){return c.apply(this,arguments)},t.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"},t.encrypt=function(e,t,n){return u.apply(this,arguments)},t.decrypt=function(e,t,n){return d.apply(this,arguments)}},87075:function(e,t,n){"use strict";var r=n(80294).default,a=n(46228).default,i=n(33482).default,o=n(34671).default,s=n(68387).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Bip39=t.EnglishMnemonic=t.mnemonicToEntropy=t.entropyToMnemonic=void 0;var c=n(73713),u=n(42634),d=n(48075),f=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];function l(e){return Array.from(e).map((function(e){return e.toString(2).padStart(8,"0")})).join("")}function b(e){var t=8*e.length/32;return l((0,d.sha256)(e)).slice(0,t)}function p(e){return parseInt(e,2)}var h=[16,20,24,28,32],y=[12,15,18,21,24];function m(e){if(-1===h.indexOf(e.length))throw new Error("invalid input length");return(l(e)+b(e)).match(/(.{11})/g).map((function(e){var t=p(e);return f[t]})).join(" ")}function v(e){return e.normalize("NFKD")}function g(e){var t=v(e).split(" ");if(!y.includes(t.length))throw new Error("Invalid number of words");var n=t.map((function(e){var t=f.indexOf(e);if(-1===t)throw new Error("Found word that is not in the wordlist");return t.toString(2).padStart(11,"0")})).join(""),r=32*Math.floor(n.length/33),a=n.slice(0,r),i=n.slice(r),o=a.match(/(.{1,8})/g).map(p);if(o.length<16||o.length>32||o.length%4!=0)throw new Error("Invalid entropy");var s=Uint8Array.from(o);if(b(s)!==i)throw new Error("Invalid mnemonic checksum");return s}t.entropyToMnemonic=m,t.mnemonicToEntropy=g;var A=function(){function e(t){if(o(this,e),!e.mnemonicMatcher.test(t))throw new Error("Invalid mnemonic format");var n=t.split(" "),r=[12,15,18,21,24];if(-1===r.indexOf(n.length))throw new Error("Invalid word count in mnemonic (allowed: ".concat(r," got: ").concat(n.length,")"));var a,s=i(n);try{for(s.s();!(a=s.n()).done;){var c=a.value;if(-1===e.wordlist.indexOf(c))throw new Error("Mnemonic contains invalid word")}}catch(e){s.e(e)}finally{s.f()}g(t),this.data=t}return s(e,[{key:"toString",value:function(){return this.data}}]),e}();t.EnglishMnemonic=A,A.wordlist=f,A.mnemonicMatcher=/^[a-z]+( [a-z]+)*$/;var w=function(){function e(){o(this,e)}var t;return s(e,null,[{key:"encode",value:function(e){return new A(m(e))}},{key:"decode",value:function(e){return g(e.toString())}},{key:"mnemonicToSeed",value:(t=a(r().mark((function e(t,n){var a,i,o;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(0,c.toUtf8)(v(t.toString())),i="mnemonic"+(n?v(n):""),o=(0,c.toUtf8)(i),e.abrupt("return",(0,u.pbkdf2Sha512)(a,o,2048,64));case 4:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})}]),e}();t.Bip39=w},96225:function(e,t,n){"use strict";var r=n(69453).default,a=n(34671).default,i=n(68387).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Hmac=void 0;var o=function(){function e(t,n){a(this,e);var i=(new t).blockSize;this.hash=function(e){return(new t).update(e).digest()};var o=n;if(o.length>i&&(o=this.hash(o)),o.length32)){e.next=4;break}throw new Error("Message hash length must not exceed 32 bytes");case 4:if(a=l.keyFromPrivate(n),i=a.sign(t,{canonical:!0}),o=i.r,s=i.s,"number"==typeof(c=i.recoveryParam)){e.next=8;break}throw new Error("Recovery param missing");case 8:return e.abrupt("return",new f.ExtendedSecp256k1Signature(Uint8Array.from(o.toArray()),Uint8Array.from(s.toArray()),c));case 9:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})},{key:"verifySignature",value:(t=a(r().mark((function e(t,n,a){var i;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==n.length){e.next=2;break}throw new Error("Message hash must not be empty");case 2:if(!(n.length>32)){e.next=4;break}throw new Error("Message hash length must not exceed 32 bytes");case 4:return i=l.keyFromPublic(a),e.prev=5,e.abrupt("return",i.verify(n,t.toDer()));case 9:return e.prev=9,e.t0=e.catch(5),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e,null,[[5,9]])}))),function(e,n,r){return t.apply(this,arguments)})},{key:"recoverPubkey",value:function(e,t){var n={r:(0,c.toHex)(e.r()),s:(0,c.toHex)(e.s())},r=l.recoverPubKey(t,n,e.recovery),a=l.keyFromPublic(r);return(0,c.fromHex)(a.getPublic(!1,"hex"))}},{key:"compressPubkey",value:function(e){switch(e.length){case 33:return e;case 65:return Uint8Array.from(l.keyFromPublic(e).getPublic(!0,"array"));default:throw new Error("Invalid pubkey length")}}},{key:"uncompressPubkey",value:function(e){switch(e.length){case 33:return Uint8Array.from(l.keyFromPublic(e).getPublic(!1,"array"));case 65:return e;default:throw new Error("Invalid pubkey length")}}},{key:"trimRecoveryByte",value:function(e){switch(e.length){case 64:return e;case 65:return e.slice(0,64);default:throw new Error("Invalid signature length")}}}]),e}();t.Secp256k1=p},66248:function(e,t,n){"use strict";var r=n(67766).default,a=n(65040).default,i=n(69453).default,o=n(34671).default,s=n(68387).default,c=n(33482).default;function u(e){var t,n=0,r=c(e);try{for(r.s();!(t=r.n()).done&&0===t.value;)n++}catch(e){r.e(e)}finally{r.f()}return e.slice(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedSecp256k1Signature=t.Secp256k1Signature=void 0;var d=2,f=function(){function e(t,n){if(o(this,e),t.length>32||0===t.length||0===t[0])throw new Error("Unsigned integer r must be encoded as unpadded big endian.");if(n.length>32||0===n.length||0===n[0])throw new Error("Unsigned integer s must be encoded as unpadded big endian.");this.data={r:t,s:n}}return s(e,[{key:"r",value:function(e){if(void 0===e)return this.data.r;var t=e-this.data.r.length;if(t<0)throw new Error("Length too small to hold parameter r");var n=new Uint8Array(t);return new Uint8Array([].concat(i(n),i(this.data.r)))}},{key:"s",value:function(e){if(void 0===e)return this.data.s;var t=e-this.data.s.length;if(t<0)throw new Error("Length too small to hold parameter s");var n=new Uint8Array(t);return new Uint8Array([].concat(i(n),i(this.data.s)))}},{key:"toFixedLength",value:function(){return new Uint8Array([].concat(i(this.r(32)),i(this.s(32))))}},{key:"toDer",value:function(){var e=this.data.r[0]>=128?new Uint8Array([0].concat(i(this.data.r))):this.data.r,t=this.data.s[0]>=128?new Uint8Array([0].concat(i(this.data.s))):this.data.s,n=e.length,r=t.length,a=new Uint8Array([d,n].concat(i(e),[d,r],i(t)));return new Uint8Array([48,a.length].concat(i(a)))}}],[{key:"fromFixedLength",value:function(t){if(64!==t.length)throw new Error("Got invalid data length: ".concat(t.length,". Expected 2x 32 bytes for the pair (r, s)"));return new e(u(t.slice(0,32)),u(t.slice(32,64)))}},{key:"fromDer",value:function(t){var n=0;if(48!==t[n++])throw new Error("Prefix 0x30 expected");var r=t[n++];if(t.length-n!==r)throw new Error("Data length mismatch detected");if(t[n++]!==d)throw new Error("INTEGER tag expected");var a=t[n++];if(a>=128)throw new Error("Decoding length values above 127 not supported");var i=t.slice(n,n+a);if(n+=a,t[n++]!==d)throw new Error("INTEGER tag expected");var o=t[n++];if(o>=128)throw new Error("Decoding length values above 127 not supported");var s=t.slice(n,n+o);return n+=o,new e(u(i),u(s))}}]),e}();t.Secp256k1Signature=f;var l=function(e){r(n,e);var t=a(n);function n(e,r,a){var i;if(o(this,n),i=t.call(this,e,r),!Number.isInteger(a))throw new Error("The recovery parameter must be an integer.");if(a<0||a>4)throw new Error("The recovery parameter must be one of 0, 1, 2, 3.");return i.recovery=a,i}return s(n,[{key:"toFixedLength",value:function(){return new Uint8Array([].concat(i(this.r(32)),i(this.s(32)),[this.recovery]))}}],[{key:"fromFixedLength",value:function(e){if(65!==e.length)throw new Error("Got invalid data length ".concat(e.length,". Expected 32 + 32 + 1"));return new n(u(e.slice(0,32)),u(e.slice(32,64)),e[64])}}]),n}(f);t.ExtendedSecp256k1Signature=l},48075:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default;Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.Sha512=t.sha256=t.Sha256=void 0;var i=n(19818),o=n(65483),s=n(5428),c=function(){function e(t){r(this,e),this.blockSize=64,this.impl=i.sha256.create(),t&&this.update(t)}return a(e,[{key:"update",value:function(e){return this.impl.update((0,s.toRealUint8Array)(e)),this}},{key:"digest",value:function(){return this.impl.digest()}}]),e}();t.Sha256=c,t.sha256=function(e){return new c(e).digest()};var u=function(){function e(t){r(this,e),this.blockSize=128,this.impl=o.sha512.create(),t&&this.update(t)}return a(e,[{key:"update",value:function(e){return this.impl.update((0,s.toRealUint8Array)(e)),this}},{key:"digest",value:function(){return this.impl.digest()}}]),e}();t.Sha512=u,t.sha512=function(e){return new u(e).digest()}},8637:function(e,t,n){"use strict";var r=n(15771).default,a=n(69453).default,i=n(33482).default,o=n(34671).default,s=n(68387).default,c=n(67766).default,u=n(65040).default,d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.stringToPath=t.pathToString=t.Slip10=t.Slip10RawIndex=t.slip10CurveFromString=t.Slip10Curve=void 0;var f,l=n(73713),b=n(36533),p=d(n(22097)),h=d(n(98722)),y=n(96225),m=n(48075);!function(e){e.Secp256k1="Bitcoin seed",e.Ed25519="ed25519 seed"}(f=t.Slip10Curve||(t.Slip10Curve={})),t.slip10CurveFromString=function(e){switch(e){case f.Ed25519:return f.Ed25519;case f.Secp256k1:return f.Secp256k1;default:throw new Error("Unknown curve string: '".concat(e,"'"))}};var v=function(e){c(n,e);var t=u(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"isHardened",value:function(){return this.data>=Math.pow(2,31)}}],[{key:"hardened",value:function(e){return new n(e+Math.pow(2,31))}},{key:"normal",value:function(e){return new n(e)}}]),n}(b.Uint32);t.Slip10RawIndex=v;var g=new h.default.ec("secp256k1"),A=function(){function e(){o(this,e)}return s(e,null,[{key:"derivePath",value:function(e,t,n){var r,a=this.master(e,t),o=i(n);try{for(o.s();!(r=o.n()).done;){var s=r.value;a=this.child(e,a.privkey,a.chainCode,s)}}catch(e){o.e(e)}finally{o.f()}return a}},{key:"master",value:function(e,t){var n=new y.Hmac(m.Sha512,(0,l.toAscii)(e)).update(t).digest(),r=n.slice(0,32),a=n.slice(32,64);return e!==f.Ed25519&&(this.isZero(r)||this.isGteN(e,r))?this.master(e,n):{chainCode:a,privkey:r}}},{key:"child",value:function(t,n,r,i){var o;if(i.isHardened()){var s=new Uint8Array([0].concat(a(n),a(i.toBytesBigEndian())));o=new y.Hmac(m.Sha512,r).update(s).digest()}else{if(t===f.Ed25519)throw new Error("Normal keys are not allowed with ed25519");var c=new Uint8Array([].concat(a(e.serializedPoint(t,new p.default(n))),a(i.toBytesBigEndian())));o=new y.Hmac(m.Sha512,r).update(c).digest()}return this.childImpl(t,n,r,i,o)}},{key:"serializedPoint",value:function(e,t){if(e===f.Secp256k1)return(0,l.fromHex)(g.g.mul(t).encodeCompressed("hex"));throw new Error("curve not supported")}},{key:"childImpl",value:function(e,t,n,r,i){var o=i.slice(0,32),s=i.slice(32,64),c=s;if(e===f.Ed25519)return{chainCode:c,privkey:o};var u=this.n(e),d=new p.default(o).add(new p.default(t)).mod(u),l=Uint8Array.from(d.toArray("be",32));if(this.isGteN(e,o)||this.isZero(l)){var b=new y.Hmac(m.Sha512,n).update(new Uint8Array([1].concat(a(s),a(r.toBytesBigEndian())))).digest();return this.childImpl(e,t,n,r,b)}return{chainCode:c,privkey:l}}},{key:"isZero",value:function(e){return e.every((function(e){return 0===e}))}},{key:"isGteN",value:function(e,t){return new p.default(t).gte(this.n(e))}},{key:"n",value:function(e){if(e===f.Secp256k1)return new p.default("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",16);throw new Error("curve not supported")}}]),e}();t.Slip10=A,t.pathToString=function(e){return e.reduce((function(e,t){return e+"/"+(t.isHardened()?"".concat(t.toNumber()-Math.pow(2,31),"'"):t.toString())}),"m")},t.stringToPath=function(e){if(!e.startsWith("m"))throw new Error("Path string must start with 'm'");for(var t=e.slice(1),n=new Array;t;){var a=t.match(/^\/([0-9]+)('?)/);if(!a)throw new Error("Syntax error while reading path component");var i=r(a,3),o=i[0],s=i[1],c=i[2],u=b.Uint53.fromString(s).toNumber();if(u>=Math.pow(2,31))throw new Error("Component value too high. Must not exceed 2**31-1.");c?n.push(v.hardened(u)):n.push(v.normal(u)),t=t.slice(o.length)}return n}},5428:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toRealUint8Array=void 0,t.toRealUint8Array=function(e){return e instanceof Uint8Array?e:Uint8Array.from(e)}},31310:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromAscii=t.toAscii=void 0,t.toAscii=function(e){return Uint8Array.from(e.split("").map((function(e){var t=e.charCodeAt(0);if(t<32||t>126)throw new Error("Cannot encode character that is out of printable ASCII range: "+t);return t})))},t.fromAscii=function(e){var t;return(t=Array.from(e),t.map((function(e){if(e<32||e>126)throw new Error("Cannot decode character that is out of printable ASCII range: "+e);return String.fromCharCode(e)}))).join("")}},51315:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.fromBase64=t.toBase64=void 0;var o=i(n(82660));t.toBase64=function(e){return o.fromByteArray(e)},t.fromBase64=function(e){if(!e.match(/^[a-zA-Z0-9+/]*={0,2}$/))throw new Error("Invalid base64 string format");return o.toByteArray(e)}},18329:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeBech32=t.fromBech32=t.toBech32=void 0;var o=i(n(97748));function s(e,t,n){return o.encode(e,o.toWords(t),n)}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=o.decode(e,t);return{prefix:n.prefix,data:new Uint8Array(o.fromWords(n.words))}}t.toBech32=s,t.fromBech32=c,t.normalizeBech32=function(e){var t=c(e);return s(t.prefix,t.data)}},63164:function(e,t,n){"use strict";var r=n(33482).default;Object.defineProperty(t,"__esModule",{value:!0}),t.fromHex=t.toHex=void 0,t.toHex=function(e){var t,n="",a=r(e);try{for(a.s();!(t=a.n()).done;)n+=("0"+t.value.toString(16)).slice(-2)}catch(e){a.e(e)}finally{a.f()}return n},t.fromHex=function(e){if(e.length%2!=0)throw new Error("hex string length must be a multiple of 2");for(var t=new Uint8Array(e.length/2),n=0;n1&&void 0!==arguments[1]?arguments[1]:2;return e.toString().padStart(t,"0")}t.fromRfc3339=function(e){var t=n.exec(e);if(!t)throw new Error("Date string is not in RFC3339 format");var r,a,i,o=+t[1],s=+t[2],c=+t[3],u=+t[4],d=+t[5],f=+t[6],l=t[7]?Math.floor(1e3*+t[7]):0;"Z"===t[8]?(r=1,a=0,i=0):(r="-"===t[8].substring(0,1)?-1:1,a=+t[8].substring(1,3),i=+t[8].substring(4,6));var b=r*(60*a+i)*60,p=Date.UTC(o,s-1,c,u,d,f,l)-1e3*b;return new Date(p)},t.toRfc3339=function(e){var t=e.getUTCFullYear(),n=r(e.getUTCMonth()+1),a=r(e.getUTCDate()),i=r(e.getUTCHours()),o=r(e.getUTCMinutes()),s=r(e.getUTCSeconds()),c=r(e.getUTCMilliseconds(),3);return"".concat(t,"-").concat(n,"-").concat(a,"T").concat(i,":").concat(o,":").concat(s,".").concat(c,"Z")}},48658:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromUtf8=t.toUtf8=void 0,t.toUtf8=function(e){return(new TextEncoder).encode(e)},t.fromUtf8=function(e){return new TextDecoder("utf-8",{fatal:!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])}).decode(e)}},97748:function(e){"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n={},r=0;r<32;r++){var a=t.charAt(r);if(void 0!==n[a])throw new TypeError(a+" is ambiguous");n[a]=r}function i(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,n=0;n126)return"Invalid prefix ("+e+")";t=i(t)^r>>5}for(t=i(t),n=0;nt)return"Exceeds length limit";var r=e.toLowerCase(),a=e.toUpperCase();if(e!==r&&e!==a)return"Mixed-case string "+e;var s=(e=r).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var c=e.slice(0,s),u=e.slice(s+1);if(u.length<6)return"Data too short";var d=o(c);if("string"==typeof d)return d;for(var f=[],l=0;l=u.length||f.push(p)}return 1!==d?"Invalid checksum for "+e:{prefix:c,words:f}}function c(e,t,n,r){for(var a=0,i=0,o=(1<=n;)i-=n,s.push(a>>i&o);if(r)i>0&&s.push(a<=t)return"Excess padding";if(a<r)throw new TypeError("Exceeds length limit");var a=o(e=e.toLowerCase());if("string"==typeof a)throw new Error(a);for(var s=e+"1",c=0;c>5!=0)throw new Error("Non 5-bit word");a=i(a)^u,s+=t.charAt(u)}for(c=0;c<6;++c)a=i(a);for(a^=1,c=0;c<6;++c)s+=t.charAt(a>>5*(5-c)&31);return s},toWordsUnsafe:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},80244:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Decimal=void 0;var o=i(n(22097)),s=function(){function e(t,n){if(r(this,e),!t.match(/^[0-9]+$/))throw new Error("Invalid string format. Only non-negative integers in decimal representation supported.");this.data={atomics:new o.default(t),fractionalDigits:n}}return a(e,[{key:"atomics",get:function(){return this.data.atomics.toString()}},{key:"fractionalDigits",get:function(){return this.data.fractionalDigits}},{key:"clone",value:function(){return new e(this.atomics,this.fractionalDigits)}},{key:"floor",value:function(){var t=new o.default(10).pow(new o.default(this.data.fractionalDigits)),n=this.data.atomics.div(t);return this.data.atomics.mod(t).isZero()?this.clone():e.fromAtomics(n.mul(t).toString(),this.fractionalDigits)}},{key:"ceil",value:function(){var t=new o.default(10).pow(new o.default(this.data.fractionalDigits)),n=this.data.atomics.div(t);return this.data.atomics.mod(t).isZero()?this.clone():e.fromAtomics(n.addn(1).mul(t).toString(),this.fractionalDigits)}},{key:"toString",value:function(){var e=new o.default(10).pow(new o.default(this.data.fractionalDigits)),t=this.data.atomics.div(e),n=this.data.atomics.mod(e);if(n.isZero())return t.toString();var r=n.toString().padStart(this.data.fractionalDigits,"0").replace(/0+$/,"");return"".concat(t.toString(),".").concat(r)}},{key:"toFloatApproximation",value:function(){var e=Number(this.toString());if(Number.isNaN(e))throw new Error("Conversion to number failed");return e}},{key:"plus",value:function(t){if(this.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");return new e(this.data.atomics.add(new o.default(t.atomics)).toString(),this.fractionalDigits)}},{key:"minus",value:function(t){if(this.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");var n=this.data.atomics.sub(new o.default(t.atomics));if(n.ltn(0))throw new Error("Difference must not be negative");return new e(n.toString(),this.fractionalDigits)}},{key:"multiply",value:function(t){return new e(this.data.atomics.mul(new o.default(t.toString())).toString(),this.fractionalDigits)}},{key:"equals",value:function(t){return 0===e.compare(this,t)}},{key:"isLessThan",value:function(t){return e.compare(this,t)<0}},{key:"isLessThanOrEqual",value:function(t){return e.compare(this,t)<=0}},{key:"isGreaterThan",value:function(t){return e.compare(this,t)>0}},{key:"isGreaterThanOrEqual",value:function(t){return e.compare(this,t)>=0}}],[{key:"fromUserInput",value:function(t,n){e.verifyFractionalDigits(n);var r,a,i=t.match(/[^0-9.]/);if(i)throw new Error("Invalid character at position ".concat(i.index+1));if(""===t)r="0",a="";else if(-1===t.search(/\./))r=t,a="";else{var o=t.split(".");switch(o.length){case 0:case 1:throw new Error("Fewer than two elements in split result. This must not happen here.");case 2:if(!o[1])throw new Error("Fractional part missing");r=o[0],a=o[1].replace(/0+$/,"");break;default:throw new Error("More than one separator found")}}if(a.length>n)throw new Error("Got more fractional digits than supported");return new e("".concat(r).concat(a.padEnd(n,"0")),n)}},{key:"fromAtomics",value:function(t,n){return e.verifyFractionalDigits(n),new e(t,n)}},{key:"zero",value:function(t){return e.verifyFractionalDigits(t),new e("0",t)}},{key:"one",value:function(t){return e.verifyFractionalDigits(t),new e("1"+"0".repeat(t),t)}},{key:"verifyFractionalDigits",value:function(e){if(!Number.isInteger(e))throw new Error("Fractional digits is not an integer");if(e<0)throw new Error("Fractional digits must not be negative");if(e>100)throw new Error("Fractional digits must not exceed ".concat(100))}},{key:"compare",value:function(e,t){if(e.fractionalDigits!==t.fractionalDigits)throw new Error("Fractional digits do not match");return e.data.atomics.cmp(new o.default(t.atomics))}}]),e}();t.Decimal=s},36533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Uint64=t.Uint53=t.Uint32=t.Int53=t.Decimal=void 0;var r=n(80244);Object.defineProperty(t,"Decimal",{enumerable:!0,get:function(){return r.Decimal}});var a=n(10669);Object.defineProperty(t,"Int53",{enumerable:!0,get:function(){return a.Int53}}),Object.defineProperty(t,"Uint32",{enumerable:!0,get:function(){return a.Uint32}}),Object.defineProperty(t,"Uint53",{enumerable:!0,get:function(){return a.Uint53}}),Object.defineProperty(t,"Uint64",{enumerable:!0,get:function(){return a.Uint64}})},10669:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Uint64=t.Uint53=t.Int53=t.Uint32=void 0;var o=i(n(22097)),s=new o.default("18446744073709551615",10,"be"),c=function(){function e(t){if(r(this,e),Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");if(t<0||t>4294967295)throw new Error("Input not in uint32 range: "+t.toString());this.data=t}return a(e,[{key:"toBytesBigEndian",value:function(){return new Uint8Array([255&Math.floor(this.data/Math.pow(2,24)),255&Math.floor(this.data/Math.pow(2,16)),255&Math.floor(this.data/Math.pow(2,8)),255&Math.floor(this.data/Math.pow(2,0))])}},{key:"toBytesLittleEndian",value:function(){return new Uint8Array([255&Math.floor(this.data/Math.pow(2,0)),255&Math.floor(this.data/Math.pow(2,8)),255&Math.floor(this.data/Math.pow(2,16)),255&Math.floor(this.data/Math.pow(2,24))])}},{key:"toNumber",value:function(){return this.data}},{key:"toBigInt",value:function(){return BigInt(this.toNumber())}},{key:"toString",value:function(){return this.data.toString()}}],[{key:"fromBigEndianBytes",value:function(t){return e.fromBytes(t)}},{key:"fromBytes",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(4!==t.length)throw new Error("Invalid input length. Expected 4 bytes.");for(var r=0;r255||t[r]<0)throw new Error("Invalid value in byte. Found: "+t[r]);var a="be"===n?t:Array.from(t).reverse();return new e(a[0]*Math.pow(2,24)+a[1]*Math.pow(2,16)+a[2]*Math.pow(2,8)+a[3])}},{key:"fromString",value:function(t){if(!t.match(/^[0-9]+$/))throw new Error("Invalid string format");return new e(Number.parseInt(t,10))}}]),e}();t.Uint32=c;var u=function(){function e(t){if(r(this,e),Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");if(tNumber.MAX_SAFE_INTEGER)throw new Error("Input not in int53 range: "+t.toString());this.data=t}return a(e,[{key:"toNumber",value:function(){return this.data}},{key:"toBigInt",value:function(){return BigInt(this.toNumber())}},{key:"toString",value:function(){return this.data.toString()}}],[{key:"fromString",value:function(t){if(!t.match(/^-?[0-9]+$/))throw new Error("Invalid string format");return new e(Number.parseInt(t,10))}}]),e}();t.Int53=u;var d=function(){function e(t){r(this,e);var n=new u(t);if(n.toNumber()<0)throw new Error("Input is negative");this.data=n}return a(e,[{key:"toNumber",value:function(){return this.data.toNumber()}},{key:"toBigInt",value:function(){return BigInt(this.toNumber())}},{key:"toString",value:function(){return this.data.toString()}}],[{key:"fromString",value:function(t){return new e(u.fromString(t).toNumber())}}]),e}();t.Uint53=d;var f=function(){function e(t){if(r(this,e),t.isNeg())throw new Error("Input is negative");if(t.gt(s))throw new Error("Input exceeds uint64 range");this.data=t}return a(e,[{key:"toBytesBigEndian",value:function(){return Uint8Array.from(this.data.toArray("be",8))}},{key:"toBytesLittleEndian",value:function(){return Uint8Array.from(this.data.toArray("le",8))}},{key:"toString",value:function(){return this.data.toString(10)}},{key:"toBigInt",value:function(){return BigInt(this.toString())}},{key:"toNumber",value:function(){return this.data.toNumber()}}],[{key:"fromBytesBigEndian",value:function(t){return e.fromBytes(t)}},{key:"fromBytes",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(8!==t.length)throw new Error("Invalid input length. Expected 8 bytes.");for(var r=0;r255||t[r]<0)throw new Error("Invalid value in byte. Found: "+t[r]);var a="be"===n?Array.from(t):Array.from(t).reverse();return new e(new o.default(a))}},{key:"fromString",value:function(t){if(!t.match(/^[0-9]+$/))throw new Error("Invalid string format");return new e(new o.default(t,10,"be"))}},{key:"fromNumber",value:function(t){if(Number.isNaN(t))throw new Error("Input is not a number");if(!Number.isInteger(t))throw new Error("Input is not an integer");var n;try{n=new o.default(t)}catch(e){throw new Error("Input is not a safe integer")}return new e(n)}}]),e}();t.Uint64=f},72688:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseCoins=void 0,t.parseCoins=function(e){return e.replace(/\s/g,"").split(",").filter(Boolean).map((function(e){var t=e.match(/^([0-9]+)([a-zA-Z][a-zA-Z0-9/]{2,127})$/);if(!t)throw new Error("Got an invalid coin string");return{amount:t[1].replace(/^0+/,"")||"0",denom:t[2]}}))}},2508:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeTxRaw=void 0;var r=n(49211);t.decodeTxRaw=function(e){var t=r.TxRaw.decode(e);return{authInfo:r.AuthInfo.decode(t.authInfoBytes),body:r.TxBody.decode(t.bodyBytes),signatures:t.signatures}}},32509:function(e,t,n){"use strict";var r=n(97785).default,a=n(69453).default,i=n(80294).default,o=n(46228).default,s=n(34671).default,c=n(68387).default;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectSecp256k1HdWallet=t.extractKdfConfiguration=void 0;var u=n(36267),d=n(77),f=n(73713),l=n(22092),b=n(19704),p=n(57141),h="directsecp256k1hdwallet-v1",y={algorithm:"argon2id",params:{outputLength:32,opsLimit:24,memLimitKib:12288}};t.extractKdfConfiguration=function(e){var t=JSON.parse(e);if(!(0,l.isNonNullObject)(t))throw new Error("Root document is not an object.");if(t.type===h)return t.kdf;throw new Error("Unsupported serialization type")};var m={bip39Password:"",hdPaths:[(0,u.makeCosmoshubPath)(0)],prefix:"cosmos"},v=function(){function e(t,n){var r,a;s(this,e);var i=null!==(r=n.prefix)&&void 0!==r?r:m.prefix,o=null!==(a=n.hdPaths)&&void 0!==a?a:m.hdPaths;this.secret=t,this.seed=n.seed,this.accounts=o.map((function(e){return{hdPath:e,prefix:i}}))}var t,n,v,g,A,w,x,_,k,I,S;return c(e,[{key:"mnemonic",get:function(){return this.secret.toString()}},{key:"getAccounts",value:(S=o(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountsWithPrivkeys();case 2:return t=e.sent,e.abrupt("return",t.map((function(e){return{algo:e.algo,pubkey:e.pubkey,address:e.address}})));case 4:case"end":return e.stop()}}),e,this)}))),function(){return S.apply(this,arguments)})},{key:"signDirect",value:(I=o(i().mark((function e(t,n){var r,o,s,c,f,l,p,h,y;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountsWithPrivkeys();case 2:if(r=e.sent,void 0!==(o=r.find((function(e){return e.address===t})))){e.next=6;break}throw new Error("Address ".concat(t," not found in wallet"));case 6:return s=o.privkey,c=o.pubkey,f=(0,b.makeSignBytes)(n),l=(0,d.sha256)(f),e.next=11,d.Secp256k1.createSignature(l,s);case 11:return p=e.sent,h=new Uint8Array([].concat(a(p.r(32)),a(p.s(32)))),y=(0,u.encodeSecp256k1Signature)(c,h),e.abrupt("return",{signed:n,signature:y});case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return I.apply(this,arguments)})},{key:"serialize",value:(k=o(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=y,e.next=3,(0,p.executeKdf)(t,n);case 3:return r=e.sent,e.abrupt("return",this.serializeWithEncryptionKey(r,n));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"serializeWithEncryptionKey",value:(_=o(i().mark((function e(t,n){var r,a,o,s,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={mnemonic:this.mnemonic,accounts:this.accounts.map((function(e){var t=e.hdPath,n=e.prefix;return{hdPath:(0,d.pathToString)(t),prefix:n}}))},a=(0,f.toUtf8)(JSON.stringify(r)),o={algorithm:p.supportedAlgorithms.xchacha20poly1305Ietf},e.next=5,(0,p.encrypt)(a,t,o);case 5:return s=e.sent,c={type:h,kdf:n,encryption:o,data:(0,f.toBase64)(s)},e.abrupt("return",JSON.stringify(c));case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return _.apply(this,arguments)})},{key:"getKeyPair",value:(x=o(i().mark((function e(t){var n,r,a,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=d.Slip10.derivePath(d.Slip10Curve.Secp256k1,this.seed,t),r=n.privkey,e.next=3,d.Secp256k1.makeKeypair(r);case 3:return a=e.sent,o=a.pubkey,e.abrupt("return",{privkey:r,pubkey:d.Secp256k1.compressPubkey(o)});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"getAccountsWithPrivkeys",value:(w=o(i().mark((function e(){var t=this;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(this.accounts.map(function(){var e=o(i().mark((function e(n){var r,a,o,s,c,d;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.hdPath,a=n.prefix,e.next=3,t.getKeyPair(r);case 3:return o=e.sent,s=o.privkey,c=o.pubkey,d=(0,f.toBech32)(a,(0,u.rawSecp256k1PubkeyToRawAddress)(c)),e.abrupt("return",{algo:"secp256k1",privkey:s,pubkey:c,address:d});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())));case 1:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})}],[{key:"fromMnemonic",value:(A=o(i().mark((function t(n){var a,o,s,c=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>1&&void 0!==c[1]?c[1]:{},o=new d.EnglishMnemonic(n),t.next=4,d.Bip39.mnemonicToSeed(o,a.bip39Password);case 4:return s=t.sent,t.abrupt("return",new e(o,r(r({},a),{},{seed:s})));case 6:case"end":return t.stop()}}),t)}))),function(e){return A.apply(this,arguments)})},{key:"generate",value:(g=o(i().mark((function t(){var n,r,a,o,s,c=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:12,r=c.length>1&&void 0!==c[1]?c[1]:{},a=4*Math.floor(11*n/33),o=d.Random.getBytes(a),s=d.Bip39.encode(o),t.abrupt("return",e.fromMnemonic(s.toString(),r));case 6:case"end":return t.stop()}}),t)}))),function(){return g.apply(this,arguments)})},{key:"deserialize",value:(v=o(i().mark((function t(n,r){var a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=JSON.parse(n),(0,l.isNonNullObject)(a)){t.next=3;break}throw new Error("Root document is not an object.");case 3:t.t0=a.type,t.next=t.t0===h?6:7;break;case 6:return t.abrupt("return",e.deserializeTypeV1(n,r));case 7:throw new Error("Unsupported serialization type");case 8:case"end":return t.stop()}}),t)}))),function(e,t){return v.apply(this,arguments)})},{key:"deserializeWithEncryptionKey",value:(n=o(i().mark((function t(n,r){var a,o,s,c,u,b,y,m;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=JSON.parse(n),(0,l.isNonNullObject)(a)){t.next=3;break}throw new Error("Root document is not an object.");case 3:o=a,t.t0=o.type,t.next=t.t0===h?7:22;break;case 7:return t.next=9,(0,p.decrypt)((0,f.fromBase64)(o.data),r,o.encryption);case 9:if(s=t.sent,c=JSON.parse((0,f.fromUtf8)(s)),u=c.mnemonic,b=c.accounts,(0,l.assert)("string"==typeof u),Array.isArray(b)){t.next=15;break}throw new Error("Property 'accounts' is not an array");case 15:if(b.every((function(e){return t=e,!!(0,l.isNonNullObject)(t)&&"string"==typeof t.hdPath&&"string"==typeof t.prefix;var t}))){t.next=17;break}throw new Error("Account is not in the correct format.");case 17:if(y=b[0].prefix,b.every((function(e){return e.prefix===y}))){t.next=20;break}throw new Error("Accounts do not all have the same prefix");case 20:return m=b.map((function(e){var t=e.hdPath;return(0,d.stringToPath)(t)})),t.abrupt("return",e.fromMnemonic(u,{hdPaths:m,prefix:y}));case 22:throw new Error("Unsupported serialization type");case 23:case"end":return t.stop()}}),t)}))),function(e,t){return n.apply(this,arguments)})},{key:"deserializeTypeV1",value:(t=o(i().mark((function t(n,r){var a,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=JSON.parse(n),(0,l.isNonNullObject)(a)){t.next=3;break}throw new Error("Root document is not an object.");case 3:return t.next=5,(0,p.executeKdf)(r,a.kdf);case 5:return o=t.sent,t.abrupt("return",e.deserializeWithEncryptionKey(n,o));case 7:case"end":return t.stop()}}),t)}))),function(e,n){return t.apply(this,arguments)})}]),e}();t.DirectSecp256k1HdWallet=v},86414:function(e,t,n){"use strict";var r=n(69453).default,a=n(80294).default,i=n(46228).default,o=n(34671).default,s=n(68387).default;Object.defineProperty(t,"__esModule",{value:!0}),t.DirectSecp256k1Wallet=void 0;var c=n(36267),u=n(77),d=n(73713),f=n(19704),l=function(){function e(t,n,r){o(this,e),this.privkey=t,this.pubkey=n,this.prefix=r}var t,n,l;return s(e,[{key:"address",get:function(){return(0,d.toBech32)(this.prefix,(0,c.rawSecp256k1PubkeyToRawAddress)(this.pubkey))}},{key:"getAccounts",value:(l=i(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",[{algo:"secp256k1",address:this.address,pubkey:this.pubkey}]);case 1:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"signDirect",value:(n=i(a().mark((function e(t,n){var i,o,s,d,l;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(0,f.makeSignBytes)(n),t===this.address){e.next=3;break}throw new Error("Address ".concat(t," not found in wallet"));case 3:return o=(0,u.sha256)(i),e.next=6,u.Secp256k1.createSignature(o,this.privkey);case 6:return s=e.sent,d=new Uint8Array([].concat(r(s.r(32)),r(s.s(32)))),l=(0,c.encodeSecp256k1Signature)(this.pubkey,d),e.abrupt("return",{signed:n,signature:l});case 10:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})}],[{key:"fromKey",value:(t=i(a().mark((function t(n){var r,i,o=arguments;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:"cosmos",t.next=3,u.Secp256k1.makeKeypair(n);case 3:return i=t.sent.pubkey,t.abrupt("return",new e(n,u.Secp256k1.compressPubkey(i),r));case 5:case"end":return t.stop()}}),t)}))),function(e){return t.apply(this,arguments)})}]),e}();t.DirectSecp256k1Wallet=l},11384:function(e,t,n){"use strict";n(72688),n(2508),n(32509),n(86414),n(80744),n(88039),n(26073),n(54435),n(19704),n(57141),n(36267)},80744:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.makeCosmoshubPath=void 0;var r=n(77);t.makeCosmoshubPath=function(e){return[r.Slip10RawIndex.hardened(44),r.Slip10RawIndex.hardened(118),r.Slip10RawIndex.hardened(0),r.Slip10RawIndex.normal(0),r.Slip10RawIndex.normal(e)]}},88039:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodePubkey=t.anyToSinglePubkey=t.encodePubkey=void 0;var r=n(36267),a=n(73713),i=n(36533),o=n(88081),s=n(5201),c=n(33361),u=n(56148);function d(e){switch(e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":var t=c.PubKey.decode(e.value).key;return(0,r.encodeSecp256k1Pubkey)(t);case"/cosmos.crypto.ed25519.PubKey":var n=o.PubKey.decode(e.value).key;return(0,r.encodeEd25519Pubkey)(n);default:throw new Error("Pubkey type_url ".concat(e.typeUrl," not recognized as single public key type"))}}t.encodePubkey=function e(t){if((0,r.isSecp256k1Pubkey)(t)){var n=c.PubKey.fromPartial({key:(0,a.fromBase64)(t.value)});return u.Any.fromPartial({typeUrl:"/cosmos.crypto.secp256k1.PubKey",value:Uint8Array.from(c.PubKey.encode(n).finish())})}if((0,r.isEd25519Pubkey)(t)){var d=o.PubKey.fromPartial({key:(0,a.fromBase64)(t.value)});return u.Any.fromPartial({typeUrl:"/cosmos.crypto.ed25519.PubKey",value:Uint8Array.from(o.PubKey.encode(d).finish())})}if((0,r.isMultisigThresholdPubkey)(t)){var f=s.LegacyAminoPubKey.fromPartial({threshold:i.Uint53.fromString(t.value.threshold).toNumber(),publicKeys:t.value.pubkeys.map(e)});return u.Any.fromPartial({typeUrl:"/cosmos.crypto.multisig.LegacyAminoPubKey",value:Uint8Array.from(s.LegacyAminoPubKey.encode(f).finish())})}throw new Error("Pubkey type ".concat(t.type," not recognized"))},t.anyToSinglePubkey=d,t.decodePubkey=function(e){switch(e.typeUrl){case"/cosmos.crypto.secp256k1.PubKey":case"/cosmos.crypto.ed25519.PubKey":return d(e);case"/cosmos.crypto.multisig.LegacyAminoPubKey":var t=s.LegacyAminoPubKey.decode(e.value),n=t.threshold,r=t.publicKeys;return{type:"tendermint/PubKeyMultisigThreshold",value:{threshold:n.toString(),pubkeys:r.map(d)}};default:throw new Error("Pubkey type_url ".concat(e.typeUrl," not recognized"))}}},26073:function(e,t,n){"use strict";var r=n(5886).Buffer,a=n(15771).default,i=n(97785).default,o=n(69453).default,s=n(34671).default,c=n(68387).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Registry=t.isTxBodyEncodeObject=t.isPbjsGeneratedType=t.isTsProtoGeneratedType=void 0;var u=n(13576),d=n(42621),f=n(49211),l=n(56148);function b(e){return"function"==typeof e.fromPartial}t.isTsProtoGeneratedType=b,t.isPbjsGeneratedType=function(e){return!b(e)};function p(e){return"/cosmos.tx.v1beta1.TxBody"===e.typeUrl}t.isTxBodyEncodeObject=p;var h=function(){function e(t){s(this,e);this.types=t?new Map(o(t)):new Map([["/cosmos.base.v1beta1.Coin",d.Coin],["/cosmos.bank.v1beta1.MsgSend",u.MsgSend]])}return c(e,[{key:"register",value:function(e,t){this.types.set(e,t)}},{key:"lookupType",value:function(e){return this.types.get(e)}},{key:"lookupTypeWithError",value:function(e){var t=this.lookupType(e);if(!t)throw new Error("Unregistered type url: ".concat(e));return t}},{key:"encode",value:function(e){var t=e.value,n=e.typeUrl;if(p(e))return this.encodeTxBody(t);var r=this.lookupTypeWithError(n),a=b(r)?r.fromPartial(t):r.create(t);return r.encode(a).finish()}},{key:"encodeAsAny",value:function(e){var t=this.encode(e);return l.Any.fromPartial({typeUrl:e.typeUrl,value:t})}},{key:"encodeTxBody",value:function(e){var t=this,n=e.messages.map((function(e){return t.encodeAsAny(e)})),r=f.TxBody.fromPartial(i(i({},e),{},{messages:n}));return f.TxBody.encode(r).finish()}},{key:"decode",value:function(e){var t=e.typeUrl,n=e.value;if("/cosmos.tx.v1beta1.TxBody"===t)return this.decodeTxBody(n);var i=this.lookupTypeWithError(t).decode(n);return Object.entries(i).forEach((function(e){var t=a(e,2),n=t[0],o=t[1];void 0!==r&&void 0!==r.isBuffer&&r.isBuffer(o)&&(i[n]=Uint8Array.from(o))})),i}},{key:"decodeTxBody",value:function(e){var t=this,n=f.TxBody.decode(e);return i(i({},n),{},{messages:n.messages.map((function(e){var n=e.typeUrl,r=e.value;if(!n)throw new Error("Missing type_url in Any");if(!r)throw new Error("Missing value in Any");return t.decode({typeUrl:n,value:r})}))})}}]),e}();t.Registry=h},54435:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isOfflineDirectSigner=void 0,t.isOfflineDirectSigner=function(e){return void 0!==e.signDirect}},19704:function(e,t,n){"use strict";var r=n(69453).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.makeSignBytes=t.makeSignDoc=t.makeAuthInfoBytes=void 0;var i=n(22092),o=n(57171),s=n(49211),c=a(n(24141));function u(e,t){return e.map((function(e){var n=e.pubkey,r=e.sequence;return{publicKey:n,modeInfo:{single:{mode:t}},sequence:c.default.fromNumber(r)}}))}t.makeAuthInfoBytes=function(e,t,n,a,d){var f=arguments.length>5&&void 0!==arguments[5]?arguments[5]:o.SignMode.SIGN_MODE_DIRECT;(0,i.assert)(void 0===a||"string"==typeof a,"feeGranter must be undefined or string"),(0,i.assert)(void 0===d||"string"==typeof d,"feePayer must be undefined or string");var l=s.AuthInfo.fromPartial({signerInfos:u(e,f),fee:{amount:r(t),gasLimit:c.default.fromNumber(n),granter:a,payer:d}});return s.AuthInfo.encode(l).finish()},t.makeSignDoc=function(e,t,n,r){return{bodyBytes:e,authInfoBytes:t,chainId:n,accountNumber:c.default.fromNumber(r)}},t.makeSignBytes=function(e){var t=e.accountNumber,n=e.authInfoBytes,r=e.bodyBytes,a=e.chainId,i=s.SignDoc.fromPartial({accountNumber:t,authInfoBytes:n,bodyBytes:r,chainId:a});return s.SignDoc.encode(i).finish()}},57141:function(e,t,n){"use strict";var r=n(69453).default,a=n(80294).default,i=n(46228).default;Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=t.supportedAlgorithms=t.executeKdf=t.cosmjsSalt=void 0;var o=n(77),s=n(73713);function c(){return(c=i(a().mark((function e(n,r){var i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=r.algorithm,e.next="argon2id"===e.t0?3:7;break;case 3:if(i=r.params,(0,o.isArgon2idOptions)(i)){e.next=6;break}throw new Error("Invalid format of argon2id params");case 6:return e.abrupt("return",o.Argon2id.execute(n,t.cosmjsSalt,i));case 7:throw new Error("Unsupported KDF algorithm");case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(){return(u=i(a().mark((function e(n,i,s){var c;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=s.algorithm,e.next=e.t0===t.supportedAlgorithms.xchacha20poly1305Ietf?3:14;break;case 3:return c=o.Random.getBytes(o.xchacha20NonceLength),e.t1=Uint8Array,e.t2=[],e.t3=r(c),e.t4=r,e.next=10,o.Xchacha20poly1305Ietf.encrypt(n,i,c);case 10:return e.t5=e.sent,e.t6=(0,e.t4)(e.t5),e.t7=e.t2.concat.call(e.t2,e.t3,e.t6),e.abrupt("return",new e.t1(e.t7));case 14:throw new Error("Unsupported encryption algorithm: '".concat(s.algorithm,"'"));case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(){return(d=i(a().mark((function e(n,r,i){var s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=i.algorithm,e.next=e.t0===t.supportedAlgorithms.xchacha20poly1305Ietf?3:5;break;case 3:return s=n.slice(0,o.xchacha20NonceLength),e.abrupt("return",o.Xchacha20poly1305Ietf.decrypt(n.slice(o.xchacha20NonceLength),r,s));case 5:throw new Error("Unsupported encryption algorithm: '".concat(i.algorithm,"'"));case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}t.cosmjsSalt=(0,s.toAscii)("The CosmJS salt."),t.executeKdf=function(e,t){return c.apply(this,arguments)},t.supportedAlgorithms={xchacha20poly1305Ietf:"xchacha20poly1305-ietf"},t.encrypt=function(e,t,n){return u.apply(this,arguments)},t.decrypt=function(e,t,n){return d.apply(this,arguments)}},47102:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayContentStartsWith=t.arrayContentEquals=void 0,t.arrayContentEquals=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n0?d(A,--v):0,y--,10===g&&(y=1,h--),g}function k(){return g=v2||C(g)>3?"":" "}function B(e,t){for(;--t&&k()&&!(g<48||g>102||g>57&&g<65||g>70&&g<97););return E(e,S()+(t<6&&32==I()&&32==k()))}function N(e){for(;k();)switch(g){case e:return v;case 34:case 39:34!==e&&39!==e&&N(g);break;case 40:41===e&&N(e);break;case 92:k()}return v}function R(e,t){for(;k()&&e+g!==57&&(e+g!==84||47!==I()););return"/*"+E(t,v-1)+"*"+i(47===e?e:k())}function D(e){for(;!C(I());)k();return E(e,v)}var j="-ms-",U="-moz-",L="-webkit-",F="comm",Z="rule",H="decl",z="@keyframes";function Q(e,t){for(var n="",r=b(e),a=0;a0&&l(U)-m&&p(g>32?W(U+";",r,n,m-1):W(c(U," ","")+";",r,n,m-2),b);break;case 59:U+=";";default:if(p(j=K(U,t,n,h,y,a,f,T,O=[],N=[],m),o),123===C)if(0===y)J(U,t,j,j,O,o,m,f,N);else switch(99===v&&110===d(U,3)?100:v){case 100:case 109:case 115:J(e,j,j,r&&p(K(e,j,j,0,0,a,f,T,a,O=[],m),N),a,N,m,f,r?O:N);break;default:J(U,j,j,j,[""],N,0,f,N)}}h=y=g=0,w=E=1,T=U="",m=s;break;case 58:m=1+l(U),g=A;default:if(w<1)if(123==C)--w;else if(125==C&&0==w++&&125==_())continue;switch(U+=i(C),C*w){case 38:E=y>0?1:(U+="\f",-1);break;case 44:f[h++]=(l(U)-1)*E,E=1;break;case 64:45===I()&&(U+=P(k())),v=I(),y=m=l(T=U+=D(S())),C++;break;case 45:45===A&&2==l(U)&&(w=0)}}return o}function K(e,t,n,r,i,o,u,d,l,p,h){for(var y=i-1,m=0===i?o:[""],v=b(m),g=0,A=0,x=0;g0?m[_]+" "+k:c(k,/&\f/g,m[_])))&&(l[x++]=I);return w(e,t,n,0===i?Z:d,l,p,h)}function G(e,t,n){return w(e,t,n,F,i(g),f(e,2,-2),0)}function W(e,t,n,r){return w(e,t,n,H,f(e,0,r),f(e,r+1,-1),r)}var Y=function(e,t,n){for(var r=0,a=0;r=a,a=I(),38===r&&12===a&&(t[n]=1),!C(a);)k();return E(e,v)},X=new WeakMap,$=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||X.get(n))&&!r){X.set(e,!0);for(var a=[],o=function(e,t){return O(function(e,t){var n=-1,r=44;do{switch(C(r)){case 0:38===r&&12===I()&&(t[n]=1),e[n]+=Y(v-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===I()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=k());return e}(T(e),t))}(t,a),s=n.props,c=0,u=0;c6)switch(d(e,t+1)){case 109:if(45!==d(e,t+4))break;case 102:return c(e,/(.+:)(.+)-([^]+)/,"$1"+L+"$2-$3$1"+U+(108==d(e,t+3)?"$3":"$2-$3"))+e;case 115:return~u(e,"stretch")?te(c(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==d(e,t+1))break;case 6444:switch(d(e,l(e)-3-(~u(e,"!important")&&10))){case 107:return c(e,":",":"+L)+e;case 101:return c(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+L+(45===d(e,14)?"inline-":"")+"box$3$1"+L+"$2$3$1"+j+"$2box$3")+e}break;case 5936:switch(d(e,t+11)){case 114:return L+e+j+c(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+j+c(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+j+c(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+j+e+e}return e}var ne=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case H:e.return=te(e.value,e.length);break;case z:return Q([x(e,{value:c(e.value,"@","@"+L)})],r);case Z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Q([x(e,{props:[c(t,/:(read-\w+)/,":"+U+"$1")]})],r);case"::placeholder":return Q([x(e,{props:[c(t,/:(plac\w+)/,":"+L+"input-$1")]}),x(e,{props:[c(t,/:(plac\w+)/,":"+U+"$1")]}),x(e,{props:[c(t,/:(plac\w+)/,j+"input-$1")]})],r)}return""}))}}],re=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a,i,o=e.stylisPlugins||ne,s={},c=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(35910),o=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},d=(0,i.Z)((function(e){return c(e)?e:e.replace(o,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return b={name:t,styles:n,next:b},t}))}return 1===a[e]||c(e)||"number"!=typeof t||0===t?t:t+"px"};function l(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return b={name:n.name,styles:n.styles,next:b},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)b={name:r.name,styles:r.styles,next:b},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.chains=t._getInitializedChains=void 0;var i=a(n(24170)),o=a(n(97915)),s=a(n(30707)),c=a(n(34487)),u=a(n(14194)),d=a(n(16716));function f(e){var t,n,a={1:"mainnet",3:"ropsten",4:"rinkeby",42:"kovan",5:"goerli",11155111:"sepolia"},f={mainnet:i.default,ropsten:o.default,rinkeby:s.default,kovan:c.default,goerli:u.default,sepolia:d.default};if(e)try{for(var l=r(e),b=l.next();!b.done;b=l.next()){var p=b.value,h=p.name;a[p.chainId.toString()]=h,f[h]=p}}catch(e){t={error:e}}finally{try{b&&!b.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return f.names=a,f}t._getInitializedChains=f,t.chains=f()},58625:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EIPs=void 0,t.EIPs={1153:n(97193),1559:n(96265),2315:n(2384),2537:n(61587),2565:n(82216),2718:n(56264),2929:n(9402),2930:n(58708),3198:n(30885),3529:n(39126),3540:n(61825),3541:n(58470),3554:n(23624),3607:n(82798),3651:n(39883),3670:n(64435),3675:n(6853),3855:n(15998),3860:n(39415),4345:n(90124),4399:n(89242),5133:n(36072)}},85287:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hardforks=void 0,t.hardforks=[["chainstart",n(93620)],["homestead",n(94325)],["dao",n(68039)],["tangerineWhistle",n(16247)],["spuriousDragon",n(41910)],["byzantium",n(56063)],["constantinople",n(52029)],["petersburg",n(5520)],["istanbul",n(41923)],["muirGlacier",n(62772)],["berlin",n(43754)],["london",n(88456)],["shanghai",n(77952)],["arrowGlacier",n(52639)],["grayGlacier",n(38737)],["mergeForkIdTransition",n(75585)],["merge",n(81666)]]},7920:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsensusAlgorithm=t.ConsensusType=t.Hardfork=t.Chain=t.CustomChain=void 0;var c,u,d,f,l,b=n(39895),p=n(1544),h=n(44556),y=n(40159),m=n(85287),v=n(58625);!function(e){e.PolygonMainnet="polygon-mainnet",e.PolygonMumbai="polygon-mumbai",e.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",e.xDaiChain="x-dai-chain",e.OptimisticKovan="optimistic-kovan",e.OptimisticEthereum="optimistic-ethereum"}(c=t.CustomChain||(t.CustomChain={})),(l=t.Chain||(t.Chain={}))[l.Mainnet=1]="Mainnet",l[l.Ropsten=3]="Ropsten",l[l.Rinkeby=4]="Rinkeby",l[l.Kovan=42]="Kovan",l[l.Goerli=5]="Goerli",l[l.Sepolia=11155111]="Sepolia",function(e){e.Chainstart="chainstart",e.Homestead="homestead",e.Dao="dao",e.TangerineWhistle="tangerineWhistle",e.SpuriousDragon="spuriousDragon",e.Byzantium="byzantium",e.Constantinople="constantinople",e.Petersburg="petersburg",e.Istanbul="istanbul",e.MuirGlacier="muirGlacier",e.Berlin="berlin",e.London="london",e.ArrowGlacier="arrowGlacier",e.GrayGlacier="grayGlacier",e.MergeForkIdTransition="mergeForkIdTransition",e.Merge="merge",e.Shanghai="shanghai"}(u=t.Hardfork||(t.Hardfork={})),(f=t.ConsensusType||(t.ConsensusType={})).ProofOfStake="pos",f.ProofOfWork="pow",f.ProofOfAuthority="poa",(d=t.ConsensusAlgorithm||(t.ConsensusAlgorithm={})).Ethash="ethash",d.Clique="clique",d.Casper="casper";var g=function(e){function t(t){var n,r,a,i,o=this;(o=e.call(this)||this)._supportedHardforks=[],o._eips=[],o._customChains=null!==(a=t.customChains)&&void 0!==a?a:[],o._chainParams=o.setChain(t.chain),o.DEFAULT_HARDFORK=null!==(i=o._chainParams.defaultHardfork)&&void 0!==i?i:u.Istanbul;try{for(var c=s(o._chainParams.hardforks),d=c.next();!d.done;d=c.next()){var f=d.value;f.forkHash||(f.forkHash=o._calcForkHash(f.name))}}catch(e){n={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}return o._hardfork=o.DEFAULT_HARDFORK,t.supportedHardforks&&(o._supportedHardforks=t.supportedHardforks),t.hardfork&&o.setHardfork(t.hardfork),t.eips&&o.setEIPs(t.eips),o}return i(t,e),t.custom=function(e,n){var r;void 0===n&&(n={});var a=null!==(r=n.baseChain)&&void 0!==r?r:"mainnet",i=o({},t._getChainParams(a));if(i.name="custom-chain","string"!=typeof e)return new t(o({chain:o(o({},i),e)},n));if(e===c.PolygonMainnet)return t.custom({name:c.PolygonMainnet,chainId:137,networkId:137},n);if(e===c.PolygonMumbai)return t.custom({name:c.PolygonMumbai,chainId:80001,networkId:80001},n);if(e===c.ArbitrumRinkebyTestnet)return t.custom({name:c.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611},n);if(e===c.xDaiChain)return t.custom({name:c.xDaiChain,chainId:100,networkId:100},n);if(e===c.OptimisticKovan)return t.custom({name:c.OptimisticKovan,chainId:69,networkId:69},o({hardfork:u.Berlin},n));if(e===c.OptimisticEthereum)return t.custom({name:c.OptimisticEthereum,chainId:10,networkId:10},o({hardfork:u.Berlin},n));throw new Error("Custom chain ".concat(e," not supported"))},t.forCustomChain=function(e,n,r,a){var i=t._getChainParams(e);return new t({chain:o(o({},i),n),hardfork:r,supportedHardforks:a})},t.isSupportedChainId=function(e){var t=(0,y._getInitializedChains)();return Boolean(t.names[e.toString()])},t._getChainParams=function(e,t){var n=(0,y._getInitializedChains)(t);if("number"==typeof e||h.BN.isBN(e)){if(e=e.toString(),n.names[e])return n[n.names[e]];throw new Error("Chain with ID ".concat(e," not supported"))}if(n[e])return n[e];throw new Error("Chain with name ".concat(e," not supported"))},t.prototype.setChain=function(e){var n,r;if("number"==typeof e||"string"==typeof e||h.BN.isBN(e)){var a;a=this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0])?this._customChains.map((function(e){return e[0]})):this._customChains,this._chainParams=t._getChainParams(e,a)}else{if("object"!=typeof e)throw new Error("Wrong input format");if(this._customChains.length>0)throw new Error("Chain must be a string, number, or BN when initialized with customChains passed in");try{for(var i=s(["networkId","genesis","hardforks","bootstrapNodes"]),o=i.next();!o.done;o=i.next()){var c=o.value;if(void 0===e[c])throw new Error("Missing required chain parameter: ".concat(c))}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}this._chainParams=e}return this._chainParams},t.prototype.setHardfork=function(e){var t,n;if(!this._isSupportedHardfork(e))throw new Error("Hardfork ".concat(e," not set as supported in supportedHardforks"));var r=!1;try{for(var a=s(m.hardforks),i=a.next();!i.done;i=a.next())i.value[0]===e&&(this._hardfork!==e&&(this._hardfork=e,this.emit("hardforkChanged",e)),r=!0)}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}if(!r)throw new Error("Hardfork with name ".concat(e," not supported"))},t.prototype.getHardforkByBlockNumber=function(e,t){var n,r;e=(0,h.toType)(e,h.TypeOutput.BN),t=(0,h.toType)(t,h.TypeOutput.BN);var a,i,o,c=u.Chainstart;try{for(var d=s(this.hardforks()),f=d.next();!f.done;f=d.next()){var l=f.value;if(null!==l.block)e.gte(new h.BN(l.block))&&(c=l.name),t&&l.td&&(t.gte(new h.BN(l.td))?a=l.name:i=o),o=l.name;else if(null!=t&&void 0!==l.td&&null!==l.td&&t.gte(new h.BN(l.td)))return l.name}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}if(t){var b="block number: ".concat(e," (-> ").concat(c,"), ");if(a&&!this.hardforkGteHardfork(c,a)){var p="HF determined by block number is lower than the minimum total difficulty HF";throw b+="total difficulty: ".concat(t," (-> ").concat(a,")"),new Error("".concat(p,": ").concat(b))}if(i&&!this.hardforkGteHardfork(i,c))throw p="Maximum HF determined by total difficulty is lower than the block number HF",b+="total difficulty: ".concat(t," (-> ").concat(i,")"),new Error("".concat(p,": ").concat(b))}return c},t.prototype.setHardforkByBlockNumber=function(e,t){var n=this.getHardforkByBlockNumber(e,t);return this.setHardfork(n),n},t.prototype._chooseHardfork=function(e,t){if(void 0===t&&(t=!0),e){if(t&&!this._isSupportedHardfork(e))throw new Error("Hardfork ".concat(e," not set as supported in supportedHardforks"))}else e=this._hardfork;return e},t.prototype._getHardfork=function(e){var t,n,r=this.hardforks();try{for(var a=s(r),i=a.next();!i.done;i=a.next()){var o=i.value;if(o.name===e)return o}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}throw new Error("Hardfork ".concat(e," not defined for chain ").concat(this.chainName()))},t.prototype._isSupportedHardfork=function(e){var t,n;if(!(this._supportedHardforks.length>0))return!0;try{for(var r=s(this._supportedHardforks),a=r.next();!a.done;a=r.next())if(e===a.value)return!0}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!1},t.prototype.setEIPs=function(e){var t,n,r=this;void 0===e&&(e=[]);var a=function(t){if(!(t in v.EIPs))throw new Error("".concat(t," not supported"));var n=i.gteHardfork(v.EIPs[t].minimumHardfork);if(!n)throw new Error("".concat(t," cannot be activated on hardfork ").concat(i.hardfork(),", minimumHardfork: ").concat(n));v.EIPs[t].requiredEIPs&&v.EIPs[t].requiredEIPs.forEach((function(n){if(!e.includes(n)&&!r.isActivatedEIP(n))throw new Error("".concat(t," requires EIP ").concat(n,", but is not included in the EIP list"))}))},i=this;try{for(var o=s(e),c=o.next();!c.done;c=o.next())a(c.value)}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}this._eips=e},t.prototype.param=function(e,t){var n,r,a=null;try{for(var i=s(this._eips),o=i.next();!o.done;o=i.next()){var c=o.value;if(null!==(a=this.paramByEIP(e,t,c)))return a}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return this.paramByHardfork(e,t,this._hardfork)},t.prototype.paramByHardfork=function(e,t,n){var r,a,i,o;n=this._chooseHardfork(n);var c=null;try{for(var u=s(m.hardforks),d=u.next();!d.done;d=u.next()){var f=d.value;if("eips"in f[1]){var l=f[1].eips;try{for(var b=(i=void 0,s(l)),p=b.next();!p.done;p=b.next()){var h=p.value,y=this.paramByEIP(e,t,h);c=null!==y?y:c}}catch(e){i={error:e}}finally{try{p&&!p.done&&(o=b.return)&&o.call(b)}finally{if(i)throw i.error}}}else{if(!f[1][e])throw new Error("Topic ".concat(e," not defined"));void 0!==f[1][e][t]&&(c=f[1][e][t].v)}if(f[0]===n)break}}catch(e){r={error:e}}finally{try{d&&!d.done&&(a=u.return)&&a.call(u)}finally{if(r)throw r.error}}return c},t.prototype.paramByEIP=function(e,t,n){if(!(n in v.EIPs))throw new Error("".concat(n," not supported"));var r=v.EIPs[n];if(!(e in r))throw new Error("Topic ".concat(e," not defined"));return void 0===r[e][t]?null:r[e][t].v},t.prototype.paramByBlock=function(e,t,n){var r=this.activeHardforks(n),a=r[r.length-1].name;return this.paramByHardfork(e,t,a)},t.prototype.isActivatedEIP=function(e){var t,n;if(this.eips().includes(e))return!0;try{for(var r=s(m.hardforks),a=r.next();!a.done;a=r.next()){var i=a.value[1];if(this.gteHardfork(i.name)&&"eips"in i&&i.eips.includes(e))return!0}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!1},t.prototype.hardforkIsActiveOnBlock=function(e,t,n){var r;void 0===n&&(n={}),t=(0,h.toType)(t,h.TypeOutput.BN);var a=null!==(r=n.onlySupported)&&void 0!==r&&r;e=this._chooseHardfork(e,a);var i=this.hardforkBlockBN(e);return!(!i||!t.gte(i))},t.prototype.activeOnBlock=function(e,t){return this.hardforkIsActiveOnBlock(null,e,t)},t.prototype.hardforkGteHardfork=function(e,t,n){var r,a;void 0===n&&(n={});var i,o=void 0!==n.onlyActive&&n.onlyActive;e=this._chooseHardfork(e,n.onlySupported),i=o?this.activeHardforks(null,n):this.hardforks();var c=-1,u=-1,d=0;try{for(var f=s(i),l=f.next();!l.done;l=f.next()){var b=l.value;b.name===e&&(c=d),b.name===t&&(u=d),d+=1}}catch(e){r={error:e}}finally{try{l&&!l.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}return c>=u&&-1!==u},t.prototype.gteHardfork=function(e,t){return this.hardforkGteHardfork(null,e,t)},t.prototype.hardforkIsActiveOnChain=function(e,t){var n,r,a;void 0===t&&(t={});var i=null!==(a=t.onlySupported)&&void 0!==a&&a;e=this._chooseHardfork(e,i);try{for(var o=s(this.hardforks()),c=o.next();!c.done;c=o.next()){var u=c.value;if(u.name===e&&null!==u.block)return!0}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1},t.prototype.activeHardforks=function(e,t){var n,r;void 0===t&&(t={});var a=[],i=this.hardforks();try{for(var o=s(i),c=o.next();!c.done;c=o.next()){var u=c.value;if(null!==u.block){if(null!=e&&e0)return n[n.length-1].name;throw new Error("No (supported) active hardfork found")},t.prototype.hardforkBlock=function(e){var t=this.hardforkBlockBN(e);return(0,h.toType)(t,h.TypeOutput.Number)},t.prototype.hardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).block;return null==t?null:new h.BN(t)},t.prototype.hardforkTD=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).td;return null==t?null:new h.BN(t)},t.prototype.isHardforkBlock=function(e,t){e=(0,h.toType)(e,h.TypeOutput.BN),t=this._chooseHardfork(t,!1);var n=this.hardforkBlockBN(t);return!!n&&n.eq(e)},t.prototype.nextHardforkBlock=function(e){var t=this.nextHardforkBlockBN(e);return(0,h.toType)(t,h.TypeOutput.Number)},t.prototype.nextHardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this.hardforkBlockBN(e);return null===t?null:this.hardforks().reduce((function(e,n){var r=new h.BN(n.block);return r.gt(t)&&null===e?r:e}),null)},t.prototype.isNextHardforkBlock=function(e,t){e=(0,h.toType)(e,h.TypeOutput.BN),t=this._chooseHardfork(t,!1);var n=this.nextHardforkBlockBN(t);return null!==n&&n.eq(e)},t.prototype._calcForkHash=function(e){var t,n,r=a.from(this.genesis().hash.substr(2),"hex"),i=a.alloc(0),o=0;try{for(var c=s(this.hardforks()),u=c.next();!u.done;u=c.next()){var d=u.value,f=d.block;if(0!==f&&null!==f&&f!==o){var l=a.from(f.toString(16).padStart(16,"0"),"hex");i=a.concat([i,l])}if(d.name===e)break;null!==f&&(o=f)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}var b=a.concat([r,i]),y=(0,h.intToBuffer)((0,p.buf)(b)>>>0).toString("hex");return"0x".concat(y)},t.prototype.forkHash=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e);if(null===t.block&&void 0===t.td)throw new Error("No fork hash calculation possible for future hardfork");return void 0!==t.forkHash?t.forkHash:this._calcForkHash(e)},t.prototype.hardforkForForkHash=function(e){var t=this.hardforks().filter((function(t){return t.forkHash===e}));return t.length>=1?t[t.length-1]:null},t.prototype.genesis=function(){return this._chainParams.genesis},t.prototype.genesisState=function(){var e,t;switch(this.chainName()){case"mainnet":return n(45370);case"ropsten":return n(78401);case"rinkeby":return n(19358);case"kovan":return n(44616);case"goerli":return n(29862);case"sepolia":return n(593)}if(this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0]))try{for(var r=s(this._customChains),a=r.next();!a.done;a=r.next()){var i=a.value;if(i[0].name===this.chainName())return i[1]}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return{}},t.prototype.hardforks=function(){return this._chainParams.hardforks},t.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},t.prototype.dnsNetworks=function(){return this._chainParams.dnsNetworks},t.prototype.hardfork=function(){return this._hardfork},t.prototype.chainId=function(){return(0,h.toType)(this.chainIdBN(),h.TypeOutput.Number)},t.prototype.chainIdBN=function(){return new h.BN(this._chainParams.chainId)},t.prototype.chainName=function(){return this._chainParams.name},t.prototype.networkId=function(){return(0,h.toType)(this.networkIdBN(),h.TypeOutput.Number)},t.prototype.networkIdBN=function(){return new h.BN(this._chainParams.networkId)},t.prototype.eips=function(){return this._eips},t.prototype.consensusType=function(){var e,t,n,r=this.hardfork();try{for(var a=s(m.hardforks),i=a.next();!i.done;i=a.next()){var o=i.value;if("consensus"in o[1]&&(n=o[1].consensus.type),o[0]===r)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return n||this._chainParams.consensus.type},t.prototype.consensusAlgorithm=function(){var e,t,n,r=this.hardfork();try{for(var a=s(m.hardforks),i=a.next();!i.done;i=a.next()){var o=i.value;if("consensus"in o[1]&&(n=o[1].consensus.algorithm),o[0]===r)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return n||this._chainParams.consensus.algorithm},t.prototype.consensusConfig=function(){var e,t,n,r=this.hardfork();try{for(var a=s(m.hardforks),i=a.next();!i.done;i=a.next()){var o=i.value;if("consensus"in o[1]&&(n=o[1].consensus[o[1].consensus.algorithm]),o[0]===r)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}if(n)return n;var c=this.consensusAlgorithm();return this._chainParams.consensus[c]},t.prototype.copy=function(){var e=Object.assign(Object.create(Object.getPrototypeOf(this)),this);return e.removeAllListeners(),e},t}(b.EventEmitter);t.default=g},26984:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseTransaction=void 0;var c=i(n(7920)),u=n(44556),d=n(46959),f=function(){function e(e,t){this.cache={hash:void 0,dataFee:void 0},this.activeCapabilities=[],this.DEFAULT_CHAIN=c.Chain.Mainnet,this.DEFAULT_HARDFORK=c.Hardfork.Istanbul;var n=e.nonce,r=e.gasLimit,a=e.to,i=e.value,o=e.data,s=e.v,d=e.r,f=e.s,l=e.type;this._type=new u.BN((0,u.toBuffer)(l)).toNumber(),this.txOptions=t;var b=(0,u.toBuffer)(""===a?"0x":a),p=(0,u.toBuffer)(""===s?"0x":s),h=(0,u.toBuffer)(""===d?"0x":d),y=(0,u.toBuffer)(""===f?"0x":f);this.nonce=new u.BN((0,u.toBuffer)(""===n?"0x":n)),this.gasLimit=new u.BN((0,u.toBuffer)(""===r?"0x":r)),this.to=b.length>0?new u.Address(b):void 0,this.value=new u.BN((0,u.toBuffer)(""===i?"0x":i)),this.data=(0,u.toBuffer)(""===o?"0x":o),this.v=p.length>0?new u.BN(p):void 0,this.r=h.length>0?new u.BN(h):void 0,this.s=y.length>0?new u.BN(y):void 0,this._validateCannotExceedMaxInteger({value:this.value,r:this.r,s:this.s}),this._validateCannotExceedMaxInteger({gasLimit:this.gasLimit},64),this._validateCannotExceedMaxInteger({nonce:this.nonce},64,!0)}return Object.defineProperty(e.prototype,"transactionType",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.supports=function(e){return this.activeCapabilities.includes(e)},e.prototype.validate=function(e){void 0===e&&(e=!1);var t=[];return this.getBaseFee().gt(this.gasLimit)&&t.push("gasLimit is too low. given ".concat(this.gasLimit,", need at least ").concat(this.getBaseFee())),this.isSigned()&&!this.verifySignature()&&t.push("Invalid Signature"),e?t:0===t.length},e.prototype.getBaseFee=function(){var e=this.getDataFee().addn(this.common.param("gasPrices","tx"));return this.common.gteHardfork("homestead")&&this.toCreationAddress()&&e.iaddn(this.common.param("gasPrices","txCreation")),e},e.prototype.getDataFee=function(){for(var e=this.common.param("gasPrices","txDataZero"),t=this.common.param("gasPrices","txDataNonZero"),n=0,r=0;r-1&&this.activeCapabilities.splice(f,1)}return c},e.prototype._getCommon=function(e,t){var n;if(t){var r=new u.BN((0,u.toBuffer)(t));if(e){if(!e.chainIdBN().eq(r)){var a=this._errorMsg("The chain ID does not match the chain ID of Common");throw new Error(a)}return e.copy()}return c.default.isSupportedChainId(r)?new c.default({chain:r,hardfork:this.DEFAULT_HARDFORK}):c.default.forCustomChain(this.DEFAULT_CHAIN,{name:"custom-chain",networkId:r,chainId:r},this.DEFAULT_HARDFORK)}return null!==(n=null==e?void 0:e.copy())&&void 0!==n?n:new c.default({chain:this.DEFAULT_CHAIN,hardfork:this.DEFAULT_HARDFORK})},e.prototype._validateCannotExceedMaxInteger=function(e,t,n){var r,a;void 0===t&&(t=256),void 0===n&&(n=!1);try{for(var i=o(Object.entries(e)),c=i.next();!c.done;c=i.next()){var d=s(c.value,2),f=d[0],l=d[1];switch(t){case 64:if(n){if(null==l?void 0:l.gte(u.MAX_UINT64)){var b=this._errorMsg("".concat(f," cannot equal or exceed MAX_UINT64 (2^64-1), given ").concat(l));throw new Error(b)}}else if(null==l?void 0:l.gt(u.MAX_UINT64))throw b=this._errorMsg("".concat(f," cannot exceed MAX_UINT64 (2^64-1), given ").concat(l)),new Error(b);break;case 256:if(n){if(null==l?void 0:l.gte(u.MAX_INTEGER))throw b=this._errorMsg("".concat(f," cannot equal or exceed MAX_INTEGER (2^256-1), given ").concat(l)),new Error(b)}else if(null==l?void 0:l.gt(u.MAX_INTEGER))throw b=this._errorMsg("".concat(f," cannot exceed MAX_INTEGER (2^256-1), given ").concat(l)),new Error(b);break;default:throw b=this._errorMsg("unimplemented bits value"),new Error(b)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}},e.prototype._getSharedErrorPostfix=function(){var e="";try{e=this.isSigned()?(0,u.bufferToHex)(this.hash()):"not available (unsigned)"}catch(t){e="error"}var t="";try{t=this.isSigned().toString()}catch(t){e="error"}var n="";try{n=this.common.hardfork()}catch(e){n="error"}return"tx type=".concat(this.type," hash=").concat(e," nonce=").concat(this.nonce," value=").concat(this.value," ")+"signed=".concat(t," hf=").concat(n)},e}();t.BaseTransaction=f},78681:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0});var c=n(44556),u=n(26984),d=n(46959),f=n(12957),l=a.from(2..toString(16).padStart(2,"0"),"hex"),b=function(e){function t(t,n){void 0===n&&(n={});var r,a,i=this;(i=e.call(this,o(o({},t),{type:2}),n)||this).DEFAULT_HARDFORK="london";var s=t.chainId,u=t.accessList,l=t.maxFeePerGas,b=t.maxPriorityFeePerGas;if(i.common=i._getCommon(n.common,s),i.chainId=i.common.chainIdBN(),!i.common.isActivatedEIP(1559))throw new Error("EIP-1559 not enabled on Common");i.activeCapabilities=i.activeCapabilities.concat([1559,2718,2930]);var p=f.AccessLists.getAccessListData(null!=u?u:[]);if(i.accessList=p.accessList,i.AccessListJSON=p.AccessListJSON,f.AccessLists.verifyAccessList(i.accessList),i.maxFeePerGas=new c.BN((0,c.toBuffer)(""===l?"0x":l)),i.maxPriorityFeePerGas=new c.BN((0,c.toBuffer)(""===b?"0x":b)),i._validateCannotExceedMaxInteger({maxFeePerGas:i.maxFeePerGas,maxPriorityFeePerGas:i.maxPriorityFeePerGas}),i.gasLimit.mul(i.maxFeePerGas).gt(c.MAX_INTEGER)){var h=i._errorMsg("gasLimit * maxFeePerGas cannot exceed MAX_INTEGER (2^256-1)");throw new Error(h)}if(i.maxFeePerGas.lt(i.maxPriorityFeePerGas))throw h=i._errorMsg("maxFeePerGas cannot be less than maxPriorityFeePerGas (The total must be the larger of the two)"),new Error(h);if(i.v&&!i.v.eqn(0)&&!i.v.eqn(1))throw h=i._errorMsg("The y-parity of the transaction should either be 0 or 1"),new Error(h);if(i.common.gteHardfork("homestead")&&(null===(r=i.s)||void 0===r?void 0:r.gt(d.N_DIV_2)))throw h=i._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid"),new Error(h);return i.common.isActivatedEIP(3860)&&(0,f.checkMaxInitCodeSize)(i.common,i.data.length),(null===(a=null==n?void 0:n.freeze)||void 0===a||a)&&Object.freeze(i),i}return i(t,e),Object.defineProperty(t.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),t.fromTxData=function(e,n){return void 0===n&&(n={}),new t(e,n)},t.fromSerializedTx=function(e,n){if(void 0===n&&(n={}),!e.slice(0,1).equals(l))throw new Error("Invalid serialized tx input: not an EIP-1559 transaction (wrong tx type, expected: ".concat(2,", received: ").concat(e.slice(0,1).toString("hex")));var r=c.rlp.decode(e.slice(1));if(!Array.isArray(r))throw new Error("Invalid serialized tx input: must be array");return t.fromValuesArray(r,n)},t.fromRlpSerializedTx=function(e,n){return void 0===n&&(n={}),t.fromSerializedTx(e,n)},t.fromValuesArray=function(e,n){if(void 0===n&&(n={}),9!==e.length&&12!==e.length)throw new Error("Invalid EIP-1559 transaction. Only expecting 9 values (for unsigned tx) or 12 values (for signed tx).");var r=s(e,12),a=r[0],i=r[1],o=r[2],u=r[3],d=r[4],f=r[5],l=r[6],b=r[7],p=r[8],h=r[9],y=r[10],m=r[11];return(0,c.validateNoLeadingZeroes)({nonce:i,maxPriorityFeePerGas:o,maxFeePerGas:u,gasLimit:d,value:l,v:h,r:y,s:m}),new t({chainId:new c.BN(a),nonce:i,maxPriorityFeePerGas:o,maxFeePerGas:u,gasLimit:d,to:f,value:l,data:b,accessList:null!=p?p:[],v:void 0!==h?new c.BN(h):void 0,r:y,s:m},n)},t.prototype.getDataFee=function(){if(this.cache.dataFee&&this.cache.dataFee.hardfork===this.common.hardfork())return this.cache.dataFee.value;var t=e.prototype.getDataFee.call(this);return t.iaddn(f.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),Object.isFrozen(this)&&(this.cache.dataFee={value:t,hardfork:this.common.hardfork()}),t},t.prototype.getUpfrontCost=function(e){void 0===e&&(e=new c.BN(0));var t=c.BN.min(this.maxPriorityFeePerGas,this.maxFeePerGas.sub(e)).add(e);return this.gasLimit.mul(t).add(this.value)},t.prototype.raw=function(){return[(0,c.bnToUnpaddedBuffer)(this.chainId),(0,c.bnToUnpaddedBuffer)(this.nonce),(0,c.bnToUnpaddedBuffer)(this.maxPriorityFeePerGas),(0,c.bnToUnpaddedBuffer)(this.maxFeePerGas),(0,c.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:a.from([]),(0,c.bnToUnpaddedBuffer)(this.value),this.data,this.accessList,void 0!==this.v?(0,c.bnToUnpaddedBuffer)(this.v):a.from([]),void 0!==this.r?(0,c.bnToUnpaddedBuffer)(this.r):a.from([]),void 0!==this.s?(0,c.bnToUnpaddedBuffer)(this.s):a.from([])]},t.prototype.serialize=function(){var e=this.raw();return a.concat([l,c.rlp.encode(e)])},t.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var t=this.raw().slice(0,9),n=a.concat([l,c.rlp.encode(t)]);return e?(0,c.keccak256)(n):n},t.prototype.hash=function(){if(!this.isSigned()){var e=this._errorMsg("Cannot call hash method if transaction is not signed");throw new Error(e)}return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,c.keccak256)(this.serialize())),this.cache.hash):(0,c.keccak256)(this.serialize())},t.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},t.prototype.getSenderPublicKey=function(){var e;if(!this.isSigned()){var t=this._errorMsg("Cannot call this method if transaction is not signed");throw new Error(t)}var n=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(d.N_DIV_2)))throw t=this._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid"),new Error(t);var r=this,a=r.v,i=r.r,o=r.s;try{return(0,c.ecrecover)(n,a.addn(27),(0,c.bnToUnpaddedBuffer)(i),(0,c.bnToUnpaddedBuffer)(o))}catch(e){throw t=this._errorMsg("Invalid Signature"),new Error(t)}},t.prototype._processSignature=function(e,n,r){var a=o(o({},this.txOptions),{common:this.common});return t.fromTxData({chainId:this.chainId,nonce:this.nonce,maxPriorityFeePerGas:this.maxPriorityFeePerGas,maxFeePerGas:this.maxFeePerGas,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new c.BN(e-27),r:new c.BN(n),s:new c.BN(r)},a)},t.prototype.toJSON=function(){var e=f.AccessLists.getAccessListJSON(this.accessList);return{chainId:(0,c.bnToHex)(this.chainId),nonce:(0,c.bnToHex)(this.nonce),maxPriorityFeePerGas:(0,c.bnToHex)(this.maxPriorityFeePerGas),maxFeePerGas:(0,c.bnToHex)(this.maxFeePerGas),gasLimit:(0,c.bnToHex)(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:(0,c.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),accessList:e,v:void 0!==this.v?(0,c.bnToHex)(this.v):void 0,r:void 0!==this.r?(0,c.bnToHex)(this.r):void 0,s:void 0!==this.s?(0,c.bnToHex)(this.s):void 0}},t.prototype.errorStr=function(){return this._getSharedErrorPostfix()+" maxFeePerGas=".concat(this.maxFeePerGas," maxPriorityFeePerGas=").concat(this.maxPriorityFeePerGas)},t.prototype._errorMsg=function(e){return"".concat(e," (").concat(this.errorStr(),")")},t}(u.BaseTransaction);t.default=b},9653:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0});var c=n(44556),u=n(26984),d=n(46959),f=n(12957),l=a.from(1..toString(16).padStart(2,"0"),"hex"),b=function(e){function t(t,n){void 0===n&&(n={});var r,a,i=this;(i=e.call(this,o(o({},t),{type:1}),n)||this).DEFAULT_HARDFORK="berlin";var s=t.chainId,u=t.accessList,l=t.gasPrice;if(i.common=i._getCommon(n.common,s),i.chainId=i.common.chainIdBN(),!i.common.isActivatedEIP(2930))throw new Error("EIP-2930 not enabled on Common");i.activeCapabilities=i.activeCapabilities.concat([2718,2930]);var b=f.AccessLists.getAccessListData(null!=u?u:[]);if(i.accessList=b.accessList,i.AccessListJSON=b.AccessListJSON,f.AccessLists.verifyAccessList(i.accessList),i.gasPrice=new c.BN((0,c.toBuffer)(""===l?"0x":l)),i._validateCannotExceedMaxInteger({gasPrice:i.gasPrice}),i.gasPrice.mul(i.gasLimit).gt(c.MAX_INTEGER)){var p=i._errorMsg("gasLimit * gasPrice cannot exceed MAX_INTEGER");throw new Error(p)}if(i.v&&!i.v.eqn(0)&&!i.v.eqn(1))throw p=i._errorMsg("The y-parity of the transaction should either be 0 or 1"),new Error(p);if(i.common.gteHardfork("homestead")&&(null===(r=i.s)||void 0===r?void 0:r.gt(d.N_DIV_2)))throw p=i._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid"),new Error(p);return i.common.isActivatedEIP(3860)&&(0,f.checkMaxInitCodeSize)(i.common,i.data.length),(null===(a=null==n?void 0:n.freeze)||void 0===a||a)&&Object.freeze(i),i}return i(t,e),Object.defineProperty(t.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),t.fromTxData=function(e,n){return void 0===n&&(n={}),new t(e,n)},t.fromSerializedTx=function(e,n){if(void 0===n&&(n={}),!e.slice(0,1).equals(l))throw new Error("Invalid serialized tx input: not an EIP-2930 transaction (wrong tx type, expected: ".concat(1,", received: ").concat(e.slice(0,1).toString("hex")));var r=c.rlp.decode(e.slice(1));if(!Array.isArray(r))throw new Error("Invalid serialized tx input: must be array");return t.fromValuesArray(r,n)},t.fromRlpSerializedTx=function(e,n){return void 0===n&&(n={}),t.fromSerializedTx(e,n)},t.fromValuesArray=function(e,n){if(void 0===n&&(n={}),8!==e.length&&11!==e.length)throw new Error("Invalid EIP-2930 transaction. Only expecting 8 values (for unsigned tx) or 11 values (for signed tx).");var r=s(e,11),a=r[0],i=r[1],o=r[2],u=r[3],d=r[4],f=r[5],l=r[6],b=r[7],p=r[8],h=r[9],y=r[10];return(0,c.validateNoLeadingZeroes)({nonce:i,gasPrice:o,gasLimit:u,value:f,v:p,r:h,s:y}),new t({chainId:new c.BN(a),nonce:i,gasPrice:o,gasLimit:u,to:d,value:f,data:l,accessList:null!=b?b:[],v:void 0!==p?new c.BN(p):void 0,r:h,s:y},n)},t.prototype.getDataFee=function(){if(this.cache.dataFee&&this.cache.dataFee.hardfork===this.common.hardfork())return this.cache.dataFee.value;var t=e.prototype.getDataFee.call(this);return t.iaddn(f.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),Object.isFrozen(this)&&(this.cache.dataFee={value:t,hardfork:this.common.hardfork()}),t},t.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},t.prototype.raw=function(){return[(0,c.bnToUnpaddedBuffer)(this.chainId),(0,c.bnToUnpaddedBuffer)(this.nonce),(0,c.bnToUnpaddedBuffer)(this.gasPrice),(0,c.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:a.from([]),(0,c.bnToUnpaddedBuffer)(this.value),this.data,this.accessList,void 0!==this.v?(0,c.bnToUnpaddedBuffer)(this.v):a.from([]),void 0!==this.r?(0,c.bnToUnpaddedBuffer)(this.r):a.from([]),void 0!==this.s?(0,c.bnToUnpaddedBuffer)(this.s):a.from([])]},t.prototype.serialize=function(){var e=this.raw();return a.concat([l,c.rlp.encode(e)])},t.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var t=this.raw().slice(0,8),n=a.concat([l,c.rlp.encode(t)]);return e?(0,c.keccak256)(n):n},t.prototype.hash=function(){if(!this.isSigned()){var e=this._errorMsg("Cannot call hash method if transaction is not signed");throw new Error(e)}return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,c.keccak256)(this.serialize())),this.cache.hash):(0,c.keccak256)(this.serialize())},t.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},t.prototype.getSenderPublicKey=function(){var e;if(!this.isSigned()){var t=this._errorMsg("Cannot call this method if transaction is not signed");throw new Error(t)}var n=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(d.N_DIV_2)))throw t=this._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid"),new Error(t);var r=this,a=r.yParity,i=r.r,o=r.s;try{return(0,c.ecrecover)(n,a.addn(27),(0,c.bnToUnpaddedBuffer)(i),(0,c.bnToUnpaddedBuffer)(o))}catch(e){throw t=this._errorMsg("Invalid Signature"),new Error(t)}},t.prototype._processSignature=function(e,n,r){var a=o(o({},this.txOptions),{common:this.common});return t.fromTxData({chainId:this.chainId,nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new c.BN(e-27),r:new c.BN(n),s:new c.BN(r)},a)},t.prototype.toJSON=function(){var e=f.AccessLists.getAccessListJSON(this.accessList);return{chainId:(0,c.bnToHex)(this.chainId),nonce:(0,c.bnToHex)(this.nonce),gasPrice:(0,c.bnToHex)(this.gasPrice),gasLimit:(0,c.bnToHex)(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:(0,c.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),accessList:e,v:void 0!==this.v?(0,c.bnToHex)(this.v):void 0,r:void 0!==this.r?(0,c.bnToHex)(this.r):void 0,s:void 0!==this.s?(0,c.bnToHex)(this.s):void 0}},t.prototype.errorStr=function(){var e,t;return this._getSharedErrorPostfix()+" gasPrice=".concat(this.gasPrice," accessListCount=").concat(null!==(t=null===(e=this.accessList)||void 0===e?void 0:e.length)&&void 0!==t?t:0)},t.prototype._errorMsg=function(e){return"".concat(e," (").concat(this.errorStr(),")")},t}(u.BaseTransaction);t.default=b},75:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FeeMarketEIP1559Transaction=t.TransactionFactory=t.AccessListEIP2930Transaction=t.Transaction=void 0;var o=n(69753);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return i(o).default}});var s=n(9653);Object.defineProperty(t,"AccessListEIP2930Transaction",{enumerable:!0,get:function(){return i(s).default}});var c=n(71425);Object.defineProperty(t,"TransactionFactory",{enumerable:!0,get:function(){return i(c).default}});var u=n(78681);Object.defineProperty(t,"FeeMarketEIP1559Transaction",{enumerable:!0,get:function(){return i(u).default}}),a(n(46959),t)},69753:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0});var c=n(44556),u=n(46959),d=n(26984),f=n(12957),l=function(e){function t(t,n){void 0===n&&(n={});var r,a=this;if((a=e.call(this,o(o({},t),{type:0}),n)||this).common=a._validateTxV(a.v,n.common),a.gasPrice=new c.BN((0,c.toBuffer)(""===t.gasPrice?"0x":t.gasPrice)),a.gasPrice.mul(a.gasLimit).gt(c.MAX_INTEGER)){var i=a._errorMsg("gas limit * gasPrice cannot exceed MAX_INTEGER (2^256-1)");throw new Error(i)}if(a._validateCannotExceedMaxInteger({gasPrice:a.gasPrice}),a.common.gteHardfork("spuriousDragon"))if(a.isSigned()){var s=a.v,d=a.common.chainIdBN().muln(2);(s.eq(d.addn(35))||s.eq(d.addn(36)))&&a.activeCapabilities.push(u.Capability.EIP155ReplayProtection)}else a.activeCapabilities.push(u.Capability.EIP155ReplayProtection);return a.common.isActivatedEIP(3860)&&(0,f.checkMaxInitCodeSize)(a.common,a.data.length),(null===(r=null==n?void 0:n.freeze)||void 0===r||r)&&Object.freeze(a),a}return i(t,e),t.fromTxData=function(e,n){return void 0===n&&(n={}),new t(e,n)},t.fromSerializedTx=function(e,t){void 0===t&&(t={});var n=c.rlp.decode(e);if(!Array.isArray(n))throw new Error("Invalid serialized tx input. Must be array");return this.fromValuesArray(n,t)},t.fromRlpSerializedTx=function(e,n){return void 0===n&&(n={}),t.fromSerializedTx(e,n)},t.fromValuesArray=function(e,n){if(void 0===n&&(n={}),6!==e.length&&9!==e.length)throw new Error("Invalid transaction. Only expecting 6 values (for unsigned tx) or 9 values (for signed tx).");var r=s(e,9),a=r[0],i=r[1],o=r[2],u=r[3],d=r[4],f=r[5],l=r[6],b=r[7],p=r[8];return(0,c.validateNoLeadingZeroes)({nonce:a,gasPrice:i,gasLimit:o,value:d,v:l,r:b,s:p}),new t({nonce:a,gasPrice:i,gasLimit:o,to:u,value:d,data:f,v:l,r:b,s:p},n)},t.prototype.raw=function(){return[(0,c.bnToUnpaddedBuffer)(this.nonce),(0,c.bnToUnpaddedBuffer)(this.gasPrice),(0,c.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:a.from([]),(0,c.bnToUnpaddedBuffer)(this.value),this.data,void 0!==this.v?(0,c.bnToUnpaddedBuffer)(this.v):a.from([]),void 0!==this.r?(0,c.bnToUnpaddedBuffer)(this.r):a.from([]),void 0!==this.s?(0,c.bnToUnpaddedBuffer)(this.s):a.from([])]},t.prototype.serialize=function(){return c.rlp.encode(this.raw())},t.prototype._getMessageToSign=function(){var e=[(0,c.bnToUnpaddedBuffer)(this.nonce),(0,c.bnToUnpaddedBuffer)(this.gasPrice),(0,c.bnToUnpaddedBuffer)(this.gasLimit),void 0!==this.to?this.to.buf:a.from([]),(0,c.bnToUnpaddedBuffer)(this.value),this.data];return this.supports(u.Capability.EIP155ReplayProtection)&&(e.push((0,c.toBuffer)(this.common.chainIdBN())),e.push((0,c.unpadBuffer)((0,c.toBuffer)(0))),e.push((0,c.unpadBuffer)((0,c.toBuffer)(0)))),e},t.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var t=this._getMessageToSign();return e?(0,c.rlphash)(t):t},t.prototype.getDataFee=function(){return this.cache.dataFee&&this.cache.dataFee.hardfork===this.common.hardfork()?this.cache.dataFee.value:(Object.isFrozen(this)&&(this.cache.dataFee={value:e.prototype.getDataFee.call(this),hardfork:this.common.hardfork()}),e.prototype.getDataFee.call(this))},t.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},t.prototype.hash=function(){return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,c.rlphash)(this.raw())),this.cache.hash):(0,c.rlphash)(this.raw())},t.prototype.getMessageToVerifySignature=function(){if(!this.isSigned()){var e=this._errorMsg("This transaction is not signed");throw new Error(e)}var t=this._getMessageToSign();return(0,c.rlphash)(t)},t.prototype.getSenderPublicKey=function(){var e,t=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(u.N_DIV_2))){var n=this._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");throw new Error(n)}var r=this,a=r.v,i=r.r,o=r.s;try{return(0,c.ecrecover)(t,a,(0,c.bnToUnpaddedBuffer)(i),(0,c.bnToUnpaddedBuffer)(o),this.supports(u.Capability.EIP155ReplayProtection)?this.common.chainIdBN():void 0)}catch(e){throw n=this._errorMsg("Invalid Signature"),new Error(n)}},t.prototype._processSignature=function(e,n,r){var a=new c.BN(e);this.supports(u.Capability.EIP155ReplayProtection)&&a.iadd(this.common.chainIdBN().muln(2).addn(8));var i=o(o({},this.txOptions),{common:this.common});return t.fromTxData({nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,v:a,r:new c.BN(n),s:new c.BN(r)},i)},t.prototype.toJSON=function(){return{nonce:(0,c.bnToHex)(this.nonce),gasPrice:(0,c.bnToHex)(this.gasPrice),gasLimit:(0,c.bnToHex)(this.gasLimit),to:void 0!==this.to?this.to.toString():void 0,value:(0,c.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),v:void 0!==this.v?(0,c.bnToHex)(this.v):void 0,r:void 0!==this.r?(0,c.bnToHex)(this.r):void 0,s:void 0!==this.s?(0,c.bnToHex)(this.s):void 0}},t.prototype._validateTxV=function(e,t){if(void 0!==e&&e.ltn(37)&&!e.eqn(27)&&!e.eqn(28))throw new Error("Legacy txs need either v = 27/28 or v >= 37 (EIP-155 replay protection), got v = ".concat(e));var n;if(void 0!==e&&(!t||t.gteHardfork("spuriousDragon"))&&!e.eqn(27)&&!e.eqn(28))if(t){var r=t.chainIdBN().muln(2);if(!e.eq(r.addn(35))&&!e.eq(r.addn(36)))throw new Error("Incompatible EIP155-based V ".concat(e," and chain id ").concat(t.chainIdBN(),". See the Common parameter of the Transaction constructor to set the chain id."))}else{var a;a=e.subn(35).isEven()?35:36,n=e.subn(a).divn(2)}return this._getCommon(t,n)},t.prototype._unsignedTxImplementsEIP155=function(){return this.common.gteHardfork("spuriousDragon")},t.prototype._signedTxImplementsEIP155=function(){if(!this.isSigned()){var e=this._errorMsg("This transaction is not signed");throw new Error(e)}var t=this.common.gteHardfork("spuriousDragon"),n=this.v,r=this.common.chainIdBN().muln(2);return(n.eq(r.addn(35))||n.eq(r.addn(36)))&&t},t.prototype.errorStr=function(){return this._getSharedErrorPostfix()+" gasPrice=".concat(this.gasPrice)},t.prototype._errorMsg=function(e){return"".concat(e," (").concat(this.errorStr(),")")},t}(d.BaseTransaction);t.default=l},71425:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var a=n(44556),i=n(75),o=function(){function e(){}return e.fromTxData=function(e,t){if(void 0===t&&(t={}),"type"in e&&void 0!==e.type){var n=new a.BN((0,a.toBuffer)(e.type)).toNumber();if(0===n)return i.Transaction.fromTxData(e,t);if(1===n)return i.AccessListEIP2930Transaction.fromTxData(e,t);if(2===n)return i.FeeMarketEIP1559Transaction.fromTxData(e,t);throw new Error("Tx instantiation with type ".concat(n," not supported"))}return i.Transaction.fromTxData(e,t)},e.fromSerializedData=function(e,t){if(void 0===t&&(t={}),e[0]<=127){var n=void 0;switch(e[0]){case 1:n=2930;break;case 2:n=1559;break;default:throw new Error("TypedTransaction with ID ".concat(e[0]," unknown"))}return 1559===n?i.FeeMarketEIP1559Transaction.fromSerializedTx(e,t):i.AccessListEIP2930Transaction.fromSerializedTx(e,t)}return i.Transaction.fromSerializedTx(e,t)},e.fromBlockBodyData=function(e,t){if(void 0===t&&(t={}),r.isBuffer(e))return this.fromSerializedData(e,t);if(Array.isArray(e))return i.Transaction.fromValuesArray(e,t);throw new Error("Cannot decode transaction: unknown type input")},e.getTransactionClass=function(e,t){if(void 0===e&&(e=0),0==e||e>=128&&e<=255)return i.Transaction;switch(e){case 1:return i.AccessListEIP2930Transaction;case 2:return i.FeeMarketEIP1559Transaction;default:throw new Error("TypedTransaction with ID ".concat(e," unknown"))}},e}();t.default=o},46959:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.N_DIV_2=t.isAccessList=t.isAccessListBuffer=t.Capability=void 0;var r,a=n(44556);function i(e){if(0===e.length)return!0;var t=e[0];return!!Array.isArray(t)}(r=t.Capability||(t.Capability={}))[r.EIP155ReplayProtection=155]="EIP155ReplayProtection",r[r.EIP1559FeeMarket=1559]="EIP1559FeeMarket",r[r.EIP2718TypedTransaction=2718]="EIP2718TypedTransaction",r[r.EIP2930AccessLists=2930]="EIP2930AccessLists",t.isAccessListBuffer=i,t.isAccessList=function(e){return!i(e)},t.N_DIV_2=new a.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16)},12957:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AccessLists=t.checkMaxInitCodeSize=void 0;var r=n(44556),a=n(46959);t.checkMaxInitCodeSize=function(e,t){if(t>e.param("vm","maxInitCodeSize"))throw new Error("the initcode size of this transaction is too large: it is ".concat(t," while the max is ").concat(e.param("vm","maxInitCodeSize")))};var i=function(){function e(){}return e.getAccessListData=function(e){var t,n;if(e&&(0,a.isAccessList)(e)){t=e;for(var i=[],o=0;o=0?a:"")+"]",c=-1===a||e.dynamic;return(o=t.call(this,"array",s,i,c)).coder=e,o.length=a,o}return(0,a.Z)(n,[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],n=0;ne._data.length&&h.throwError("insufficient data length",s.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});for(var n=[],r=0;r256||r%8!=0)&&B.throwArgumentError("invalid "+n[1]+" bit length","param",e),new C(r/8,"int"===n[1],e.name)}if(n=e.type.match(N)){var a=parseInt(n[1]);return(0===a||a>32)&&B.throwArgumentError("invalid bytes length","param",e),new k(a,e.name)}return B.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new u.Ej(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new u.QV(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,n=e.map((function(e){return t._getCoder(M._R.from(e))}));return new P(n,"_").defaultValue()}},{key:"encode",value:function(e,t){var n=this;e.length!==t.length&&B.throwError("types/values length mismatch",s.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var r=e.map((function(e){return n._getCoder(M._R.from(e))})),a=new P(r,"_"),i=this._getWriter();return a.encode(i,t),i.data}},{key:"decode",value:function(e,t,n){var r=this,a=e.map((function(e){return r._getCoder(M._R.from(e))}));return new P(a,"_").decode(this._getReader((0,i.arrayify)(t),n))}}]),e}(),j=new D},48373:function(e,t,n){"use strict";n.d(t,{BR:function(){return f},Ej:function(){return p},QV:function(){return b},XI:function(){return l}});var r=n(91610),a=n(31945),i=n(61974),o=n(75006),s=n(77729),c=n(24715),u=n(76904),d=new c.Logger(u.i);function f(e){var t=[];return function e(n,r){if(Array.isArray(r))for(var a in r){var i=n.slice();i.push(a);try{e(i,r[a])}catch(e){t.push({path:i,error:e})}}}([],e),t}var l=function(){function e(t,n,a,i){(0,r.Z)(this,e),this.name=t,this.type=n,this.localName=a,this.dynamic=i}return(0,a.Z)(e,[{key:"_throwError",value:function(e,t){d.throwArgumentError(e,this.localName,t)}}]),e}(),b=function(){function e(t){(0,r.Z)(this,e),(0,s.defineReadOnly)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}return(0,a.Z)(e,[{key:"data",get:function(){return(0,i.hexConcat)(this._data)}},{key:"length",get:function(){return this._dataLength}},{key:"_writeData",value:function(e){return this._data.push(e),this._dataLength+=e.length,e.length}},{key:"appendWriter",value:function(e){return this._writeData((0,i.concat)(e._data))}},{key:"writeBytes",value:function(e){var t=(0,i.arrayify)(e),n=t.length%this.wordSize;return n&&(t=(0,i.concat)([t,this._padding.slice(n)])),this._writeData(t)}},{key:"_getValue",value:function(e){var t=(0,i.arrayify)(o.O$.from(e));return t.length>this.wordSize&&d.throwError("value out-of-bounds",c.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,i.concat)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){e._data[t]=e._getValue(n)}}}]),e}(),p=function(){function e(t,n,a,o){(0,r.Z)(this,e),(0,s.defineReadOnly)(this,"_data",(0,i.arrayify)(t)),(0,s.defineReadOnly)(this,"wordSize",n||32),(0,s.defineReadOnly)(this,"_coerceFunc",a),(0,s.defineReadOnly)(this,"allowLoose",o),this._offset=0}return(0,a.Z)(e,[{key:"data",get:function(){return(0,i.hexlify)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,n){return this._coerceFunc?this._coerceFunc(t,n):e.coerce(t,n)}},{key:"_peekBytes",value:function(e,t,n){var r=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?r=t:d.throwError("data out-of-bounds",c.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)}},{key:"readValue",value:function(){return o.O$.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t}}]),e}()},17402:function(e,t,n){"use strict";n.d(t,{HY:function(){return w},IC:function(){return T},QV:function(){return x},Xg:function(){return S},YW:function(){return E},_R:function(){return g},pc:function(){return m}});var r=n(61968),a=n(6058),i=n(91610),o=n(31945),s=n(75006),c=n(77729),u=n(24715),d=n(76904),f=new u.Logger(d.i),l={},b={calldata:!0,memory:!0,storage:!0},p={calldata:!0,memory:!0};function h(e,t){if("bytes"===e||"string"===e){if(b[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&p[t])return!0;return(b[t]||"payable"===t)&&f.throwArgumentError("invalid modifier","name",t),!1}function y(e,t){for(var n in t)(0,c.defineReadOnly)(e,n,t[n])}var m=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),v=new RegExp(/^(.*)\[([0-9]*)\]$/),g=function(){function e(t,n){(0,i.Z)(this,e),t!==l&&f.throwError("use fromString",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),y(this,n);var r=this.type.match(v);y(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:e.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return(0,o.Z)(e,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||f.throwArgumentError("invalid format type","format",e),e===m.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var n="";return"array"===this.baseType?(n+=this.arrayChildren.format(e),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==m.sighash&&(n+=this.type),n+="("+this.components.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+")"):n+=this.type,e!==m.sighash&&(!0===this.indexed&&(n+=" indexed"),e===m.full&&this.name&&(n+=" "+this.name)),n}}],[{key:"from",value:function(t,n){return"string"==typeof t?e.fromString(t,n):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(l,{name:t.name||null,type:O(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,n){return r=function(e,t){var n=e;function r(t){f.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function a(e){var n={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(n.indexed=!1),n}e=e.replace(/\s/g," ");for(var i={type:"",name:"",state:{allowType:!0}},o=i,s=0;s2&&f.throwArgumentError("invalid human-readable ABI signature","value",e),n[1].match(/^[0-9]+$/)||f.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=s.O$.from(n[1]),n[0]):e}function k(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function I(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&f.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&f.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||f.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&f.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&f.throwArgumentError("unable to determine stateMutability","value",e),t}var S=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||f.throwArgumentError("invalid format type","format",e),e===m.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});e===m.sighash&&f.throwError("cannot format a constructor for sighash",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isConstructorFragment(e))return e;"constructor"!==e.type&&f.throwArgumentError("invalid constructor object","value",e);var t=I(e);t.constant&&f.throwArgumentError("constructor cannot be constant","value",e);var r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(g.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?s.O$.from(e.gas):null};return new n(l,r)}},{key:"fromString",value:function(e){var t={type:"constructor"},r=(e=_(e,t)).match(B);return r&&"constructor"===r[1].trim()||f.throwArgumentError("invalid constructor string","value",e),t.inputs=A(r[2].trim(),!1),k(r[3].trim(),t),n.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),n}(w),E=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||f.throwArgumentError("invalid format type","format",e),e===m.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==m.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+") ",e!==m.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"==typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isFunctionFragment(e))return e;"function"!==e.type&&f.throwArgumentError("invalid function object","value",e);var t=I(e),r={type:e.type,name:M(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(g.fromObject):[],outputs:e.outputs?e.outputs.map(g.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?s.O$.from(e.gas):null};return new n(l,r)}},{key:"fromString",value:function(e){var t={type:"function"},r=(e=_(e,t)).split(" returns ");r.length>2&&f.throwArgumentError("invalid function string","value",e);var a=r[0].match(B);if(a||f.throwArgumentError("invalid function signature","value",e),t.name=a[1].trim(),t.name&&M(t.name),t.inputs=A(a[2],!1),k(a[3].trim(),t),r.length>1){var i=r[1].match(B);""==i[1].trim()&&""==i[3].trim()||f.throwArgumentError("unexpected tokens","value",e),t.outputs=A(i[2],!1)}else t.outputs=[];return n.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),n}(S);function C(e){var t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||f.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}var T=function(e){(0,r.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"format",value:function(e){if(e||(e=m.sighash),m[e]||f.throwArgumentError("invalid format type","format",e),e===m.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==m.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===m.full?", ":",")+") ").trim()}}],[{key:"from",value:function(e){return"string"==typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isErrorFragment(e))return e;"error"!==e.type&&f.throwArgumentError("invalid error object","value",e);var t={type:e.type,name:M(e.name),inputs:e.inputs?e.inputs.map(g.fromObject):[]};return C(new n(l,t))}},{key:"fromString",value:function(e){var t={type:"error"},r=e.match(B);return r||f.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&M(t.name),t.inputs=A(r[2],!1),C(n.fromObject(t))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}]),n}(w);function O(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var P=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function M(e){return e&&e.match(P)||f.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var B=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},13756:function(e,t,n){"use strict";n.r(t),n.d(t,{AbiCoder:function(){return a.R},ConstructorFragment:function(){return r.Xg},ErrorFragment:function(){return r.IC},EventFragment:function(){return r.QV},FormatTypes:function(){return r.pc},Fragment:function(){return r.HY},FunctionFragment:function(){return r.YW},Indexed:function(){return i.Hk},Interface:function(){return i.vU},LogDescription:function(){return i.CC},ParamType:function(){return r._R},TransactionDescription:function(){return i.vk},checkResultErrors:function(){return o.BR},defaultAbiCoder:function(){return a.$}});var r=n(17402),a=n(13266),i=n(53798),o=n(48373)},53798:function(e,t,n){"use strict";n.d(t,{CC:function(){return v},Hk:function(){return w},vU:function(){return k},vk:function(){return g}});var r=n(31945),a=n(91610),i=n(61968),o=n(6058),s=n(23908),c=n(75006),u=n(61974),d=n(82901),f=n(14266),l=n(77729),b=n(13266),p=n(17402),h=n(24715),y=n(76904),m=new h.Logger(y.i),v=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n)}(l.Description),g=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n)}(l.Description),A=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n)}(l.Description),w=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n,null,[{key:"isIndexed",value:function(e){return!(!e||!e._isIndexed)}}]),n}(l.Description),x={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function _(e,t){var n=new Error("deferred error during ABI decoding triggered accessing ".concat(e));return n.error=t,n}var k=function(){function e(t){var n=this;(0,a.Z)(this,e);var r=[];r="string"==typeof t?JSON.parse(t):t,(0,l.defineReadOnly)(this,"fragments",r.map((function(e){return p.HY.from(e)})).filter((function(e){return null!=e}))),(0,l.defineReadOnly)(this,"_abiCoder",(0,l.getStatic)(this instanceof e?this.constructor:void 0,"getAbiCoder")()),(0,l.defineReadOnly)(this,"functions",{}),(0,l.defineReadOnly)(this,"errors",{}),(0,l.defineReadOnly)(this,"events",{}),(0,l.defineReadOnly)(this,"structs",{}),this.fragments.forEach((function(e){var t=null;switch(e.type){case"constructor":return n.deploy?void m.warn("duplicate definition - constructor"):void(0,l.defineReadOnly)(n,"deploy",e);case"function":t=n.functions;break;case"event":t=n.events;break;case"error":t=n.errors;break;default:return}var r=e.format();t[r]?m.warn("duplicate definition - "+r):t[r]=e})),this.deploy||(0,l.defineReadOnly)(this,"deploy",p.Xg.from({payable:!1,type:"constructor"})),(0,l.defineReadOnly)(this,"_isInterface",!0)}return(0,r.Z)(e,[{key:"format",value:function(e){e||(e=p.pc.full),e===p.pc.sighash&&m.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map((function(t){return t.format(e)}));return e===p.pc.json?JSON.stringify(t.map((function(e){return JSON.parse(e)}))):t}},{key:"getFunction",value:function(e){if((0,u.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];m.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),r=Object.keys(this.functions).filter((function(e){return e.split("(")[0]===n}));return 0===r.length?m.throwArgumentError("no matching function","name",n):r.length>1&&m.throwArgumentError("multiple matching functions","name",n),this.functions[r[0]]}var a=this.functions[p.YW.fromString(e).format()];return a||m.throwArgumentError("no matching function","signature",e),a}},{key:"getEvent",value:function(e){if((0,u.isHexString)(e)){var t=e.toLowerCase();for(var n in this.events)if(t===this.getEventTopic(n))return this.events[n];m.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var r=e.trim(),a=Object.keys(this.events).filter((function(e){return e.split("(")[0]===r}));return 0===a.length?m.throwArgumentError("no matching event","name",r):a.length>1&&m.throwArgumentError("multiple matching events","name",r),this.events[a[0]]}var i=this.events[p.QV.fromString(e).format()];return i||m.throwArgumentError("no matching event","signature",e),i}},{key:"getError",value:function(e){if((0,u.isHexString)(e)){var t=(0,l.getStatic)(this.constructor,"getSighash");for(var n in this.errors)if(e===t(this.errors[n]))return this.errors[n];m.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var r=e.trim(),a=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===r}));return 0===a.length?m.throwArgumentError("no matching error","name",r):a.length>1&&m.throwArgumentError("multiple matching errors","name",r),this.errors[a[0]]}var i=this.errors[p.YW.fromString(e).format()];return i||m.throwArgumentError("no matching error","signature",e),i}},{key:"getSighash",value:function(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,l.getStatic)(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,l.getStatic)(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,t){"string"==typeof e&&(e=this.getError(e));var n=(0,u.arrayify)(t);return(0,u.hexlify)(n.slice(0,4))!==this.getSighash(e)&&m.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",(0,u.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"==typeof e&&(e=this.getError(e)),(0,u.hexlify)((0,u.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e));var n=(0,u.arrayify)(t);return(0,u.hexlify)(n.slice(0,4))!==this.getSighash(e)&&m.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",(0,u.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,u.hexlify)((0,u.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"==typeof e&&(e=this.getFunction(e));var n=(0,u.arrayify)(t),r=null,a="",i=null,o=null,s=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch(f){}break;case 4:var c=(0,u.hexlify)(n.slice(0,4)),d=x[c];if(d)i=this._abiCoder.decode(d.inputs,n.slice(4)),o=d.name,s=d.signature,d.reason&&(r=i[0]),"Error"===o?a="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(i[0])):"Panic"===o&&(a="; VM Exception while processing transaction: reverted with panic code ".concat(i[0]));else try{var f=this.getError(c);i=this._abiCoder.decode(f.inputs,n.slice(4)),o=f.name,s=f.format()}catch(f){}}return m.throwError("call revert exception"+a,h.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,u.hexlify)(t),errorArgs:i,errorName:o,errorSignature:s,reason:r})}},{key:"encodeFunctionResult",value:function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,u.hexlify)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var n=this;"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&m.throwError("too many arguments for "+e.format(),h.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var r=[];e.anonymous||r.push(this.getEventTopic(e));var a=function(e,t){return"string"===e.type?(0,d.id)(t):"bytes"===e.type?(0,f.keccak256)((0,u.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=c.O$.from(t).toHexString()),"address"===e.type&&n._abiCoder.encode(["address"],[t]),(0,u.hexZeroPad)((0,u.hexlify)(t),32))};for(t.forEach((function(t,n){var i=e.inputs[n];i.indexed?null==t?r.push(null):"array"===i.baseType||"tuple"===i.baseType?m.throwArgumentError("filtering with tuples or arrays not supported","contract."+i.name,t):Array.isArray(t)?r.push(t.map((function(e){return a(i,e)}))):r.push(a(i,t)):null!=t&&m.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+i.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}},{key:"encodeEventLog",value:function(e,t){var n=this;"string"==typeof e&&(e=this.getEvent(e));var r=[],a=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&m.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,o){var s=t[o];if(e.indexed)if("string"===e.type)r.push((0,d.id)(s));else if("bytes"===e.type)r.push((0,f.keccak256)(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(n._abiCoder.encode([e.type],[s]))}else a.push(e),i.push(s)})),{data:this._abiCoder.encode(a,i),topics:r}}},{key:"decodeEventLog",value:function(e,t,n){if("string"==typeof e&&(e=this.getEvent(e)),null!=n&&!e.anonymous){var r=this.getEventTopic(e);(0,u.isHexString)(n[0],32)&&n[0].toLowerCase()===r||m.throwError("fragment/topic mismatch",h.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:r,value:n[0]}),n=n.slice(1)}var a=[],i=[],o=[];e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(a.push(p._R.fromObject({type:"bytes32",name:e.name})),o.push(!0)):(a.push(e),o.push(!1)):(i.push(e),o.push(!1))}));var s=null!=n?this._abiCoder.decode(a,(0,u.concat)(n)):null,c=this._abiCoder.decode(i,t,!0),d=[],f=0,l=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==s)d[t]=new w({_isIndexed:!0,hash:null});else if(o[t])d[t]=new w({_isIndexed:!0,hash:s[l++]});else try{d[t]=s[l++]}catch(e){d[t]=e}else try{d[t]=c[f++]}catch(e){d[t]=e}if(e.name&&null==d[e.name]){var n=d[t];n instanceof Error?Object.defineProperty(d,e.name,{enumerable:!0,get:function(){throw _("property ".concat(JSON.stringify(e.name)),n)}}):d[e.name]=n}}));for(var b=function(e){var t=d[e];t instanceof Error&&Object.defineProperty(d,e,{enumerable:!0,get:function(){throw _("index ".concat(e),t)}})},y=0;y=0)throw e;return l.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",d.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:n})}))),null==n.chainId?n.chainId=this.getChainId():n.chainId=Promise.all([Promise.resolve(n.chainId),this.getChainId()]).then((function(t){return 0!==t[1]&&t[0]!==t[1]&&l.throwArgumentError("chainId address mismatch","transaction",e),t[0]})),t.next=23,(0,u.resolveProperties)(n);case 23:return t.abrupt("return",t.sent);case 24:case"end":return t.stop()}}),t,this)})))}},{key:"_checkProvider",value:function(e){this.provider||l.throwError("missing provider",d.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}}],[{key:"isSigner",value:function(e){return!(!e||!e._isSigner)}}]),e}(),y=function(e){(0,a.Z)(n,e);var t=(0,i.Z)(n);function n(e,a){var i;return(0,s.Z)(this,n),i=t.call(this),(0,u.defineReadOnly)((0,r.Z)(i),"address",e),(0,u.defineReadOnly)((0,r.Z)(i),"provider",a||null),i}return(0,c.Z)(n,[{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"_fail",value:function(e,t){return Promise.resolve().then((function(){l.throwError(e,d.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})}))}},{key:"signMessage",value:function(e){return this._fail("VoidSigner cannot sign messages","signMessage")}},{key:"signTransaction",value:function(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}},{key:"_signTypedData",value:function(e,t,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}},{key:"connect",value:function(e){return new n(this.address,e)}}]),n}(h)},23908:function(e,t,n){"use strict";n.r(t),n.d(t,{getAddress:function(){return h},getContractAddress:function(){return v},getCreate2Address:function(){return g},getIcapAddress:function(){return m},isAddress:function(){return y}});var r=n(61974),a=n(75006),i=n(14266),o=n(55586),s=new(n(24715).Logger)("address/5.7.0");function c(e){(0,r.isHexString)(e,20)||s.throwArgumentError("invalid address","address",e);for(var t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40),a=0;a<40;a++)n[a]=t[a].charCodeAt(0);for(var o=(0,r.arrayify)((0,i.keccak256)(n)),c=0;c<40;c+=2)o[c>>1]>>4>=8&&(t[c]=t[c].toUpperCase()),(15&o[c>>1])>=8&&(t[c+1]=t[c+1].toUpperCase());return"0x"+t.join("")}for(var u={},d=0;d<10;d++)u[String(d)]=String(d);for(var f=0;f<26;f++)u[String.fromCharCode(65+f)]=String(10+f);var l,b=Math.floor((l=9007199254740991,Math.log10?Math.log10(l):Math.log(l)/Math.LN10));function p(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return u[e]})).join("");t.length>=b;){var n=t.substring(0,b);t=parseInt(n,10)%97+t.substring(n.length)}for(var r=String(98-parseInt(t,10)%97);r.length<2;)r="0"+r;return r}function h(e){var t=null;if("string"!=typeof e&&s.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=c(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&s.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==p(e)&&s.throwArgumentError("bad icap checksum","address",e),t=(0,a.g$)(e.substring(4));t.length<40;)t="0"+t;t=c("0x"+t)}else s.throwArgumentError("invalid address","address",e);return t}function y(e){try{return h(e),!0}catch(e){}return!1}function m(e){for(var t=(0,a.t2)(h(e).substring(2)).toUpperCase();t.length<30;)t="0"+t;return"XE"+p("XE00"+t)+t}function v(e){var t=null;try{t=h(e.from)}catch(t){s.throwArgumentError("missing from address","transaction",e)}var n=(0,r.stripZeros)((0,r.arrayify)(a.O$.from(e.nonce).toHexString()));return h((0,r.hexDataSlice)((0,i.keccak256)((0,o.encode)([t,n])),12))}function g(e,t,n){return 32!==(0,r.hexDataLength)(t)&&s.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,r.hexDataLength)(n)&&s.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),h((0,r.hexDataSlice)((0,i.keccak256)((0,r.concat)(["0xff",h(e),t,n])),12))}},50115:function(e,t,n){"use strict";n.d(t,{J:function(){return a},c:function(){return i}});var r=n(61974);function a(e){e=atob(e);for(var t=[],n=0;n0;)n.push(a%this.base),a=a/this.base|0}for(var s="",c=0;0===t[c]&&c=0;--u)s+=this.alphabet[n[u]];return s}},{key:"decode",value:function(e){if("string"!=typeof e)throw new TypeError("Expected String");var t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(var n=0;n>=8;for(;a>0;)t.push(255&a),a>>=8}for(var s=0;e[s]===this._leader&&s0&&(10===arguments[0]?h||(h=!0,f.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?f.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",c.Logger.errors.UNEXPECTED_ARGUMENT,{}):f.throwError("BigNumber.toString does not accept parameters",c.Logger.errors.UNEXPECTED_ARGUMENT,{})),g(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(e){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(t){if(t instanceof e)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e(l,m(t)):t.match(/^-?[0-9]+$/)?new e(l,m(new d(t))):f.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&A("underflow","BigNumber.from",t),(t>=b||t<=-b)&&A("overflow","BigNumber.from",t),e.from(String(t));var n=t;if("bigint"==typeof n)return e.from(n.toString());if((0,s.isBytes)(n))return e.from((0,s.hexlify)(n));if(n)if(n.toHexString){var r=n.toHexString();if("string"==typeof r)return e.from(r)}else{var a=n._hex;if(null==a&&"BigNumber"===n.type&&(a=n.hex),"string"==typeof a&&((0,s.isHexString)(a)||"-"===a[0]&&(0,s.isHexString)(a.substring(1))))return e.from(a)}return f.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}]),e}();function m(e){if("string"!=typeof e)return m(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&f.throwArgumentError("invalid hex","value",e),"0x00"===(e=m(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function v(e){return y.from(m(e))}function g(e){var t=y.from(e).toHexString();return"-"===t[0]?new d("-"+t.substring(3),16):new d(t.substring(2),16)}function A(e,t,n){var r={fault:e,operation:t};return null!=n&&(r.value=n),f.throwError(e,c.Logger.errors.NUMERIC_FAULT,r)}function w(e){return new d(e,36).toString(16)}function x(e){return new d(e,16).toString(36)}},12137:function(e,t,n){"use strict";n.d(t,{Ox:function(){return m},S5:function(){return y},xs:function(){return g}});var r=n(91610),a=n(31945),i=n(61974),o=n(24715),s=n(1572),c=n(75006),u=new o.Logger(s.i),d={},f=c.O$.from(0),l=c.O$.from(-1);function b(e,t,n,r){var a={fault:t,operation:n};return void 0!==r&&(a.value=r),u.throwError(e,o.Logger.errors.NUMERIC_FAULT,a)}for(var p="0";p.length<256;)p+=p;function h(e){if("number"!=typeof e)try{e=c.O$.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+p.substring(0,e):u.throwArgumentError("invalid decimal size","decimals",e)}function y(e,t){null==t&&(t=0);var n=h(t),r=(e=c.O$.from(e)).lt(f);r&&(e=e.mul(l));for(var a=e.mod(n).toString();a.length2&&u.throwArgumentError("too many decimal points","value",e);var i=a[0],o=a[1];for(i||(i="0"),o||(o="0");"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(o.length>n.length-1&&b("fractional component exceeds decimals","underflow","parseFixed"),""===o&&(o="0");o.length80&&u.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",a),new e(d,n,r,a)}}]),e}(),g=function(){function e(t,n,a,i){(0,r.Z)(this,e),t!==d&&u.throwError("cannot use FixedNumber constructor; use FixedNumber.from",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=n,this._value=a,this._isFixedNumber=!0,Object.freeze(this)}return(0,a.Z)(e,[{key:"_checkFormat",value:function(e){this.format.name!==e.format.name&&u.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}},{key:"addUnsafe",value:function(t){this._checkFormat(t);var n=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return e.fromValue(n.add(r),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(t){this._checkFormat(t);var n=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return e.fromValue(n.sub(r),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(t){this._checkFormat(t);var n=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return e.fromValue(n.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(t){this._checkFormat(t);var n=m(this._value,this.format.decimals),r=m(t._value,t.format.decimals);return e.fromValue(n.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}},{key:"floor",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var n=e.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(n=n.subUnsafe(A.toFormat(n.format))),n}},{key:"ceiling",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var n=e.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(n=n.addUnsafe(A.toFormat(n.format))),n}},{key:"round",value:function(t){null==t&&(t=0);var n=this.toString().split(".");if(1===n.length&&n.push("0"),(t<0||t>80||t%1)&&u.throwArgumentError("invalid decimal count","decimals",t),n[1].length<=t)return this;var r=e.from("1"+p.substring(0,t),this.format),a=w.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(a).floor().divUnsafe(r)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(e){if(null==e)return this._hex;e%8&&u.throwArgumentError("invalid byte width","width",e);var t=c.O$.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,i.hexZeroPad)(t,e/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(t){return e.fromString(this._value,t)}}],[{key:"fromValue",value:function(t,n,r){return null!=r||null==n||(0,c.Zm)(n)||(r=n,n=null),null==n&&(n=0),null==r&&(r="fixed"),e.fromString(y(t,n),v.from(r))}},{key:"fromString",value:function(t,n){null==n&&(n="fixed");var r=v.from(n),a=m(t,r.decimals);!r.signed&&a.lt(f)&&b("unsigned value cannot be negative","overflow","value",t);var o=null;r.signed?o=a.toTwos(r.width).toHexString():(o=a.toHexString(),o=(0,i.hexZeroPad)(o,r.width/8));var s=y(a,r.decimals);return new e(d,o,s,r)}},{key:"fromBytes",value:function(t,n){null==n&&(n="fixed");var r=v.from(n);if((0,i.arrayify)(t).length>r.width/8)throw new Error("overflow");var a=c.O$.from(t);r.signed&&(a=a.fromTwos(r.width));var o=a.toTwos((r.signed?0:1)+r.width).toHexString(),s=y(a,r.decimals);return new e(d,o,s,r)}},{key:"from",value:function(t,n){if("string"==typeof t)return e.fromString(t,n);if((0,i.isBytes)(t))return e.fromBytes(t,n);try{return e.fromValue(t,0,n)}catch(e){if(e.code!==o.Logger.errors.INVALID_ARGUMENT)throw e}return u.throwArgumentError("invalid FixedNumber value","value",t)}},{key:"isFixedNumber",value:function(e){return!(!e||!e._isFixedNumber)}}]),e}(),A=g.from(1),w=g.from("0.5")},61974:function(e,t,n){"use strict";n.r(t),n.d(t,{arrayify:function(){return u},concat:function(){return d},hexConcat:function(){return v},hexDataLength:function(){return y},hexDataSlice:function(){return m},hexStripZeros:function(){return A},hexValue:function(){return g},hexZeroPad:function(){return w},hexlify:function(){return h},isBytes:function(){return c},isBytesLike:function(){return o},isHexString:function(){return b},joinSignature:function(){return _},splitSignature:function(){return x},stripZeros:function(){return f},zeroPad:function(){return l}});var r=new(n(24715).Logger)("bytes/5.7.0");function a(e){return!!e.toHexString}function i(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return i(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function o(e){return b(e)&&!(e.length%2)||c(e)}function s(e){return"number"==typeof e&&e==e&&e%1==0}function c(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!s(e.length)||e.length<0)return!1;for(var t=0;t=256)return!1}return!0}function u(e,t){if(t||(t={}),"number"==typeof e){r.checkSafeUint53(e,"invalid arrayify value");for(var n=[];e;)n.unshift(255&e),e=parseInt(String(e/256));return 0===n.length&&n.push(0),i(new Uint8Array(n))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e)&&(e=e.toHexString()),b(e)){var o=e.substring(2);o.length%2&&("left"===t.hexPad?o="0"+o:"right"===t.hexPad?o+="0":r.throwArgumentError("hex data is odd-length","value",e));for(var s=[],u=0;ut&&r.throwArgumentError("value out of range","value",arguments[0]);var n=new Uint8Array(t);return n.set(e,t-e.length),i(n)}function b(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var p="0123456789abcdef";function h(e,t){if(t||(t={}),"number"==typeof e){r.checkSafeUint53(e,"invalid hexlify value");for(var n="";e;)n=p[15&e]+n,e=Math.floor(e/16);return n.length?(n.length%2&&(n="0"+n),"0x"+n):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e))return e.toHexString();if(b(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":r.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(c(e)){for(var i="0x",o=0;o>4]+p[15&s]}return i}return r.throwArgumentError("invalid hexlify value","value",e)}function y(e){if("string"!=typeof e)e=h(e);else if(!b(e)||e.length%2)return null;return(e.length-2)/2}function m(e,t,n){return"string"!=typeof e?e=h(e):(!b(e)||e.length%2)&&r.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)}function v(e){var t="0x";return e.forEach((function(e){t+=h(e).substring(2)})),t}function g(e){var t=A(h(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function A(e){"string"!=typeof e&&(e=h(e)),b(e)||r.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t2*t+2&&r.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function x(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(o(e)){var n=u(e);64===n.length?(t.v=27+(n[32]>>7),n[32]&=127,t.r=h(n.slice(0,32)),t.s=h(n.slice(32,64))):65===n.length?(t.r=h(n.slice(0,32)),t.s=h(n.slice(32,64)),t.v=n[64]):r.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:r.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(n[32]|=128),t._vs=h(n.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){var a=l(u(t._vs),32);t._vs=h(a);var i=a[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&r.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),a[0]&=127;var s=h(a);null==t.s?t.s=s:t.s!==s&&r.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?r.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{var c=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==c&&r.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&b(t.r)?t.r=w(t.r,32):r.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&b(t.s)?t.s=w(t.s,32):r.throwArgumentError("signature missing or invalid s","signature",e);var d=u(t.s);d[0]>=128&&r.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(d[0]|=128);var f=h(d);t._vs&&(b(t._vs)||r.throwArgumentError("signature invalid _vs","signature",e),t._vs=w(t._vs,32)),null==t._vs?t._vs=f:t._vs!==f&&r.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function _(e){return h(d([(e=x(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},19830:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});var r="0x0000000000000000000000000000000000000000"},60447:function(e,t,n){"use strict";n.d(t,{$B:function(){return d},Bz:function(){return u},Ce:function(){return c},PS:function(){return f},Py:function(){return s},_Y:function(){return i},fh:function(){return o},tL:function(){return a}});var r=n(75006),a=r.O$.from(-1),i=r.O$.from(0),o=r.O$.from(1),s=r.O$.from(2),c=r.O$.from("1000000000000000000"),u=r.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),d=r.O$.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),f=r.O$.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},15389:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r="0x0000000000000000000000000000000000000000000000000000000000000000"},51885:function(e,t,n){"use strict";n.d(t,{VZ:function(){return D},CH:function(){return j},lV:function(){return U}});var r=n(87402),a=n(50491),i=n(76056),o=n(12293),s=n(61968),c=n(6058),u=n(91610),d=n(31945),f=n(59754),l=n(48373),b=n(53798),p=n(37999),h=n(71769),y=n(23908),m=n(75006),v=n(61974),g=n(77729),A=n(76992),w=n(24715),x=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},_=new w.Logger("contracts/5.7.0"),k={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function I(e,t){return x(this,void 0,void 0,(0,f.Z)().mark((function n(){var r,a;return(0,f.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t;case 2:return"string"!=typeof(r=n.sent)&&_.throwArgumentError("invalid address or ENS name","name",r),n.prev=4,n.abrupt("return",(0,y.getAddress)(r));case 8:n.prev=8,n.t0=n.catch(4);case 10:return e||_.throwError("a provider or signer is needed to resolve ENS names",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"}),n.next=13,e.resolveName(r);case 13:return null==(a=n.sent)&&_.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n.abrupt("return",a);case 16:case"end":return n.stop()}}),n,null,[[4,8]])})))}function S(e,t,n){return x(this,void 0,void 0,(0,f.Z)().mark((function r(){return(0,f.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Array.isArray(n)){r.next=4;break}return r.next=3,Promise.all(n.map((function(n,r){return S(e,Array.isArray(t)?t[r]:t[n.name],n)})));case 3:case 7:case 11:case 17:return r.abrupt("return",r.sent);case 4:if("address"!==n.type){r.next=8;break}return r.next=7,I(e,t);case 8:if("tuple"!==n.type){r.next=12;break}return r.next=11,S(e,t,n.components);case 12:if("array"!==n.baseType){r.next=18;break}if(Array.isArray(t)){r.next=15;break}return r.abrupt("return",Promise.reject(_.makeError("invalid value for array",w.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:t})));case 15:return r.next=17,Promise.all(t.map((function(t){return S(e,t,n.arrayChildren)})));case 18:return r.abrupt("return",t);case 19:case"end":return r.stop()}}),r)})))}function E(e,t,n){return x(this,void 0,void 0,(0,f.Z)().mark((function r(){var a,i,o,s,c,u,d,l,b,p,h=this;return(0,f.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a={},n.length===t.inputs.length+1&&"object"==typeof n[n.length-1]&&(a=(0,g.shallowCopy)(n.pop())),_.checkArgumentCount(n.length,t.inputs.length,"passed to contract"),e.signer?a.from?a.from=(0,g.resolveProperties)({override:I(e.signer,a.from),signer:e.signer.getAddress()}).then((function(e){return x(h,void 0,void 0,(0,f.Z)().mark((function t(){return(0,f.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,y.getAddress)(e.signer)!==e.override&&_.throwError("Contract with a Signer cannot override from",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.abrupt("return",e.override);case 2:case"end":return t.stop()}}),t)})))})):a.from=e.signer.getAddress():a.from&&(a.from=I(e.provider,a.from)),r.next=6,(0,g.resolveProperties)({args:S(e.signer||e.provider,n,t.inputs),address:e.resolvedAddress,overrides:(0,g.resolveProperties)(a)||{}});case 6:if(i=r.sent,o=e.interface.encodeFunctionData(t,i.args),s={data:o,to:i.address},null!=(c=i.overrides).nonce&&(s.nonce=m.O$.from(c.nonce).toNumber()),null!=c.gasLimit&&(s.gasLimit=m.O$.from(c.gasLimit)),null!=c.gasPrice&&(s.gasPrice=m.O$.from(c.gasPrice)),null!=c.maxFeePerGas&&(s.maxFeePerGas=m.O$.from(c.maxFeePerGas)),null!=c.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=m.O$.from(c.maxPriorityFeePerGas)),null!=c.from&&(s.from=c.from),null!=c.type&&(s.type=c.type),null!=c.accessList&&(s.accessList=(0,A.accessListify)(c.accessList)),null==s.gasLimit&&null!=t.gas){for(u=21e3,d=(0,v.arrayify)(o),l=0;l1)){e=e.substring(1);var n=t[0];try{null==a[e]&&(0,g.defineReadOnly)(a,e,a[n])}catch(e){}null==a.functions[e]&&(0,g.defineReadOnly)(a.functions,e,a.functions[n]),null==a.callStatic[e]&&(0,g.defineReadOnly)(a.callStatic,e,a.callStatic[n]),null==a.populateTransaction[e]&&(0,g.defineReadOnly)(a.populateTransaction,e,a.populateTransaction[n]),null==a.estimateGas[e]&&(0,g.defineReadOnly)(a.estimateGas,e,a.estimateGas[n])}}))}return(0,d.Z)(e,[{key:"deployed",value:function(){return this._deployed()}},{key:"_deployed",value:function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return t})):this._deployedPromise=this.provider.getCode(this.address,e).then((function(e){return"0x"===e&&_.throwError("contract not deployed",w.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t}))),this._deployedPromise}},{key:"fallback",value:function(e){var t=this;this.signer||_.throwError("sending a transactions require a signer",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var n=(0,g.shallowCopy)(e||{});return["from","to"].forEach((function(e){null!=n[e]&&_.throwError("cannot override "+e,w.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})})),n.to=this.resolvedAddress,this.deployed().then((function(){return t.signer.sendTransaction(n)}))}},{key:"connect",value:function(e){"string"==typeof e&&(e=new h.b(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,g.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t}},{key:"attach",value:function(e){return new this.constructor(e,this.interface,this.signer||this.provider)}},{key:"_normalizeRunningEvent",value:function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}},{key:"_getRunningEvent",value:function(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new B);if("event"===e)return this._normalizeRunningEvent(new M("event",null));if("*"===e)return this._normalizeRunningEvent(new R(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new N(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var n=e.topics[0];if("string"!=typeof n)throw new Error("invalid topic");var r=this.interface.getEvent(n);return this._normalizeRunningEvent(new N(this.address,this.interface,r,e.topics))}catch(e){}var a={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new M(P(a),a))}return this._normalizeRunningEvent(new R(this.address,this.interface))}},{key:"_checkRunningEvents",value:function(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}},{key:"_wrapEvent",value:function(e,t,n){var r=this,a=(0,g.deepCopy)(t);return a.removeListener=function(){n&&(e.removeListener(n),r._checkRunningEvents(e))},a.getBlock=function(){return r.provider.getBlock(t.blockHash)},a.getTransaction=function(){return r.provider.getTransaction(t.transactionHash)},a.getTransactionReceipt=function(){return r.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(a),a}},{key:"_addEventListener",value:function(e,t,n){var a=this;if(this.provider||_.throwError("events require a provider or a signer with a provider",w.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(n){var i=a._wrapEvent(e,n,t);if(null==i.decodeError)try{var o=e.getEmit(i);a.emit.apply(a,[e.filter].concat((0,r.Z)(o)))}catch(e){i.decodeError=e.error}null!=e.filter&&a.emit("event",i),null!=i.decodeError&&a.emit("error",i.decodeError,i)};this._wrappedEmits[e.tag]=i,null!=e.filter&&this.provider.on(e.filter,i)}}},{key:"queryFilter",value:function(e,t,n){var r=this,a=this._getRunningEvent(e),i=(0,g.shallowCopy)(a.filter);return"string"==typeof t&&(0,v.isHexString)(t,32)?(null!=n&&_.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=n?n:"latest"),this.provider.getLogs(i).then((function(e){return e.map((function(e){return r._wrapEvent(a,e,null)}))}))}},{key:"on",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}},{key:"once",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}},{key:"emit",value:function(e){if(!this.provider)return!1;for(var t=this._getRunningEvent(e),n=arguments.length,r=new Array(n>1?n-1:0),a=1;a0;return this._checkRunningEvents(t),i}},{key:"listenerCount",value:function(e){var t=this;return this.provider?null==e?Object.keys(this._runningEvents).reduce((function(e,n){return e+t._runningEvents[n].listenerCount()}),0):this._getRunningEvent(e).listenerCount():0}},{key:"listeners",value:function(e){if(!this.provider)return[];if(null==e){var t=[];for(var n in this._runningEvents)this._runningEvents[n].listeners().forEach((function(e){t.push(e)}));return t}return this._getRunningEvent(e).listeners()}},{key:"removeAllListeners",value:function(e){if(!this.provider)return this;if(null==e){for(var t in this._runningEvents){var n=this._runningEvents[t];n.removeAllListeners(),this._checkRunningEvents(n)}return this}var r=this._getRunningEvent(e);return r.removeAllListeners(),this._checkRunningEvents(r),this}},{key:"off",value:function(e,t){if(!this.provider)return this;var n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"getContractAddress",value:function(e){return(0,y.getContractAddress)(e)}},{key:"getInterface",value:function(e){return b.vU.isInterface(e)?e:new b.vU(e)}},{key:"isIndexed",value:function(e){return b.Hk.isIndexed(e)}}]),e}(),j=function(e){(0,s.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,u.Z)(this,n),t.apply(this,arguments)}return(0,d.Z)(n)}(D),U=function(){function e(t,n,r){(0,u.Z)(this,e);var a=null;"0x"!==(a="string"==typeof n?n:(0,v.isBytes)(n)?(0,v.hexlify)(n):n&&"string"==typeof n.object?n.object:"!").substring(0,2)&&(a="0x"+a),(!(0,v.isHexString)(a)||a.length%2)&&_.throwArgumentError("invalid bytecode","bytecode",n),r&&!h.E.isSigner(r)&&_.throwArgumentError("invalid signer","signer",r),(0,g.defineReadOnly)(this,"bytecode",a),(0,g.defineReadOnly)(this,"interface",(0,g.getStatic)(this instanceof e?this.constructor:void 0,"getInterface")(t)),(0,g.defineReadOnly)(this,"signer",r||null)}return(0,d.Z)(e,[{key:"getDeployTransaction",value:function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&Array.isArray(t)?e(t,a-1):n.push(t)}))}(e,t),n}function f(e){return 1&e?~e>>1:e>>1}function l(e,t){for(var n=Array(e),r=0,a=-1;r>--u&1}for(var l=Math.pow(2,31),b=l>>>1,p=b>>1,h=l-1,y=0,m=0;m<31;m++)y=y<<1|f();for(var v=[],g=0,A=l;;){for(var w=Math.floor(((y-g+1)*a-1)/A),x=0,_=r;_-x>1;){var k=x+_>>>1;w>>1|f(),I=I<<1^b,S=(S^b)<<1|b|1;g=I,A=1+S-I}var E=r-4;return v.map((function(t){switch(t-E){case 3:return E+65792+(e[c++]<<16|e[c++]<<8|e[c++]);case 2:return E+256+(e[c++]<<8|e[c++]);case 1:return E+e[c++];default:return t-1}}))}(A),x=0,function(){return w[x++]}),k=new Set(p(_)),I=new Set(p(_)),S=function(e){for(var t=[];;){var n=e();if(0==n)break;t.push(y(n,e))}for(;;){var r=e()-1;if(r<0)break;t.push(m(r,e))}return function(e){for(var t={},n=0;n>=1),check:2==r}}()),C=45,T=95;function O(e){return(0,a.XL)(e)}function P(e){return e.filter((function(e){return 65039!=e}))}function M(e){var t,n=(0,u.Z)(e.split("."));try{for(n.s();!(t=n.n()).done;){var r=t.value,a=O(r);try{for(var i=a.lastIndexOf(T)-1;i>=0;i--)if(a[i]!==T)throw new Error("underscore only allowed at start");if(a.length>=4&&a.every((function(e){return e<128}))&&a[2]===C&&a[3]===C)throw new Error("invalid label extension")}catch(e){throw new Error('Invalid label "'.concat(r,'": ').concat(e.message))}}}catch(e){n.e(e)}finally{n.f()}return e}function B(e,t){var n,r,a,i=E,o=[],s=e.length;t&&(t.length=0);for(var u=function(){var u=e[--s];if(!(i=null===(n=i.branches.find((function(e){return e.set.has(u)})))||void 0===n?void 0:n.node))return"break";if(i.save)a=u;else if(i.check&&u===a)return"break";o.push(u),i.fe0f&&(o.push(65039),s>0&&65039==e[s-1]&&s--),i.valid&&(r=o.slice(),2==i.valid&&r.splice(1,1),t&&t.push.apply(t,(0,c.Z)(e.slice(s).reverse())),e.length=s)};s&&"break"!==u(););return r}var N=new o.Logger(s.i),R=new Uint8Array(32);function D(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function j(e){var t=(0,a.Y0)(function(e){return M(function(e,t){for(var n=O(e).reverse(),r=[];n.length;){var a=B(n);if(a)r.push.apply(r,(0,c.Z)(t(a)));else{var i=n.pop();if(k.has(i))r.push(i);else if(!I.has(i)){var o=S[i];if(!o)throw new Error("Disallowed codepoint: 0x".concat(i.toString(16).toUpperCase()));r.push.apply(r,(0,c.Z)(o))}}}return M(String.fromCodePoint.apply(String,r).normalize("NFC"))}(e,P))}(e)),n=[];if(0===e.length)return n;for(var r=0,i=0;i=t.length)throw new Error("invalid ENS name; empty component");return n.push(D(t.slice(r))),n}function U(e){return j(e).map((function(e){return(0,a.ZN)(e)})).join(".")}function L(e){try{return 0!==j(e).length}catch(e){}return!1}function F(e){"string"!=typeof e&&N.throwArgumentError("invalid ENS name; not a string","name",e);for(var t=R,n=j(e);n.length;)t=(0,i.keccak256)((0,r.concat)([t,(0,i.keccak256)(n.pop())]));return(0,r.hexlify)(t)}function Z(e){return(0,r.hexlify)((0,r.concat)(j(e).map((function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"}R.fill(0)},74726:function(e,t,n){"use strict";n.d(t,{E:function(){return C}});var r=n(59754),a=n(91610),i=n(31945),o=n(23908),s=n(75006),c=n(61974),u=n(14266),d=n(77729),f=n(24715),l=n(32914),b=n(82901),p=new f.Logger(l.i),h=new Uint8Array(32);h.fill(0);var y=s.O$.from(-1),m=s.O$.from(0),v=s.O$.from(1),g=s.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),A=(0,c.hexZeroPad)(v.toHexString(),32),w=(0,c.hexZeroPad)(m.toHexString(),32),x={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},_=["name","version","chainId","verifyingContract","salt"];function k(e){return function(t){return"string"!=typeof t&&p.throwArgumentError("invalid domain value for ".concat(JSON.stringify(e)),"domain.".concat(e),t),t}}var I={name:k("name"),version:k("version"),chainId:function(e){try{return s.O$.from(e).toString()}catch(e){}return p.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,o.getAddress)(e).toLowerCase()}catch(e){}return p.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{var t=(0,c.arrayify)(e);if(32!==t.length)throw new Error("bad length");return(0,c.hexlify)(t)}catch(e){}return p.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function S(e){var t=e.match(/^(u?)int(\d*)$/);if(t){var n=""===t[1],r=parseInt(t[2]||"256");(r%8!=0||r>256||t[2]&&t[2]!==String(r))&&p.throwArgumentError("invalid numeric width","type",e);var a=g.mask(n?r-1:r),i=n?a.add(v).mul(y):m;return function(t){var n=s.O$.from(t);return(n.lt(i)||n.gt(a))&&p.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),(0,c.hexZeroPad)(n.toTwos(256).toHexString(),32)}}var d=e.match(/^bytes(\d+)$/);if(d){var f=parseInt(d[1]);return(0===f||f>32||d[1]!==String(f))&&p.throwArgumentError("invalid bytes width","type",e),function(t){return(0,c.arrayify)(t).length!==f&&p.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){var t=(0,c.arrayify)(e),n=t.length%32;return n?(0,c.hexConcat)([t,h.slice(n)]):(0,c.hexlify)(t)}(t)}}switch(e){case"address":return function(e){return(0,c.hexZeroPad)((0,o.getAddress)(e),32)};case"bool":return function(e){return e?A:w};case"bytes":return function(e){return(0,u.keccak256)(e)};case"string":return function(e){return(0,b.id)(e)}}return null}function E(e,t){return"".concat(e,"(").concat(t.map((function(e){var t=e.name;return e.type+" "+t})).join(","),")")}var C=function(){function e(t){(0,a.Z)(this,e),(0,d.defineReadOnly)(this,"types",Object.freeze((0,d.deepCopy)(t))),(0,d.defineReadOnly)(this,"_encoderCache",{}),(0,d.defineReadOnly)(this,"_types",{});var n={},r={},i={};Object.keys(t).forEach((function(e){n[e]={},r[e]=[],i[e]={}}));var o=function(e){var a={};t[e].forEach((function(i){a[i.name]&&p.throwArgumentError("duplicate variable name ".concat(JSON.stringify(i.name)," in ").concat(JSON.stringify(e)),"types",t),a[i.name]=!0;var o=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];o===e&&p.throwArgumentError("circular type reference to ".concat(JSON.stringify(o)),"types",t),S(o)||(r[o]||p.throwArgumentError("unknown type ".concat(JSON.stringify(o)),"types",t),r[o].push(e),n[e][o]=!0)}))};for(var s in t)o(s);var c=Object.keys(r).filter((function(e){return 0===r[e].length}));for(var u in 0===c.length?p.throwArgumentError("missing primary type","types",t):c.length>1&&p.throwArgumentError("ambiguous primary types or unused types: ".concat(c.map((function(e){return JSON.stringify(e)})).join(", ")),"types",t),(0,d.defineReadOnly)(this,"primaryType",c[0]),function e(a,o){o[a]&&p.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",t),o[a]=!0,Object.keys(n[a]).forEach((function(t){r[t]&&(e(t,o),Object.keys(o).forEach((function(e){i[e][t]=!0})))})),delete o[a]}(this.primaryType,{}),i){var f=Object.keys(i[u]);f.sort(),this._types[u]=E(u,t[u])+f.map((function(e){return E(e,t[e])})).join("")}}return(0,i.Z)(e,[{key:"getEncoder",value:function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}},{key:"_getEncoder",value:function(e){var t=this,n=S(e);if(n)return n;var r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){var a=r[1],i=this.getEncoder(a),o=parseInt(r[3]);return function(e){o>=0&&e.length!==o&&p.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);var n=e.map(i);return t._types[a]&&(n=n.map(u.keccak256)),(0,u.keccak256)((0,c.hexConcat)(n))}}var s=this.types[e];if(s){var d=(0,b.id)(this._types[e]);return function(e){var n=s.map((function(n){var r=n.name,a=n.type,i=t.getEncoder(a)(e[r]);return t._types[a]?(0,u.keccak256)(i):i}));return n.unshift(d),(0,c.hexConcat)(n)}}return p.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"encodeType",value:function(e){var t=this._types[e];return t||p.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}},{key:"encodeData",value:function(e,t){return this.getEncoder(e)(t)}},{key:"hashStruct",value:function(e,t){return(0,u.keccak256)(this.encodeData(e,t))}},{key:"encode",value:function(e){return this.encodeData(this.primaryType,e)}},{key:"hash",value:function(e){return this.hashStruct(this.primaryType,e)}},{key:"_visit",value:function(e,t,n){var r=this;if(S(e))return n(e,t);var a=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){var i=a[1],o=parseInt(a[3]);return o>=0&&t.length!==o&&p.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return r._visit(i,e,n)}))}var s=this.types[e];return s?s.reduce((function(e,a){var i=a.name,o=a.type;return e[i]=r._visit(o,t[i],n),e}),{}):p.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"visit",value:function(e,t){return this._visit(this.primaryType,e,t)}}],[{key:"from",value:function(t){return new e(t)}},{key:"getPrimaryType",value:function(t){return e.from(t).primaryType}},{key:"hashStruct",value:function(t,n,r){return e.from(n).hashStruct(t,r)}},{key:"hashDomain",value:function(t){var n=[];for(var r in t){var a=x[r];a||p.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(r)),"domain",t),n.push({name:r,type:a})}return n.sort((function(e,t){return _.indexOf(e.name)-_.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:n},t)}},{key:"encode",value:function(t,n,r){return(0,c.hexConcat)(["0x1901",e.hashDomain(t),e.from(n).hash(r)])}},{key:"hash",value:function(t,n,r){return(0,u.keccak256)(e.encode(t,n,r))}},{key:"resolveNames",value:function(t,n,a,i){return o=this,s=void 0,u=void 0,f=(0,r.Z)().mark((function o(){var s,u,f;return(0,r.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=(0,d.shallowCopy)(t),s={},t.verifyingContract&&!(0,c.isHexString)(t.verifyingContract,20)&&(s[t.verifyingContract]="0x"),(u=e.from(n)).visit(a,(function(e,t){return"address"!==e||(0,c.isHexString)(t,20)||(s[t]="0x"),t})),o.t0=(0,r.Z)().keys(s);case 6:if((o.t1=o.t0()).done){o.next=13;break}return f=o.t1.value,o.next=10,i(f);case 10:s[f]=o.sent,o.next=6;break;case 13:return t.verifyingContract&&s[t.verifyingContract]&&(t.verifyingContract=s[t.verifyingContract]),a=u.visit(a,(function(e,t){return"address"===e&&s[t]?s[t]:t})),o.abrupt("return",{domain:t,value:a});case 16:case"end":return o.stop()}}),o)})),new(u||(u=Promise))((function(e,t){function n(e){try{a(f.next(e))}catch(e){t(e)}}function r(e){try{a(f.throw(e))}catch(e){t(e)}}function a(t){var a;t.done?e(t.value):(a=t.value,a instanceof u?a:new u((function(e){e(a)}))).then(n,r)}a((f=f.apply(o,s||[])).next())}));var o,s,u,f}},{key:"getPayload",value:function(t,n,r){e.hashDomain(t);var a={},i=[];_.forEach((function(e){var n=t[e];null!=n&&(a[e]=I[e](n),i.push({name:e,type:x[e]}))}));var o=e.from(n),u=(0,d.shallowCopy)(n);return u.EIP712Domain?p.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",n):u.EIP712Domain=i,o.encode(r),{types:u,domain:a,primaryType:o.primaryType,message:o.visit(r,(function(e,t){if(e.match(/^bytes(\d*)/))return(0,c.hexlify)((0,c.arrayify)(t));if(e.match(/^u?int/))return s.O$.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&p.throwArgumentError("invalid string","value",t),t}return p.throwArgumentError("unsupported type","type",e)}))}}}]),e}()},96347:function(e,t,n){"use strict";n.r(t),n.d(t,{HDNode:function(){return S},defaultPath:function(){return I},entropyToMnemonic:function(){return T},getAccountPath:function(){return P},isValidMnemonic:function(){return O},mnemonicToEntropy:function(){return C},mnemonicToSeed:function(){return E}});var r=n(91610),a=n(31945),i=n(4874),o=n(61974),s=n(75006),c=n(21487),u=n(15240),d=n(77729),f=n(55992),l=n(75153),b=n(1228),p=n(76992),h=n(71855),y=new(n(24715).Logger)("hdnode/5.7.0"),m=s.O$.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),v=(0,c.Y0)("Bitcoin seed"),g=2147483648;function A(e){return(1<=256)throw new Error("Depth too large!");return x((0,o.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,o.hexlify)(this.depth),this.parentFingerprint,(0,o.hexZeroPad)((0,o.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,o.concat)(["0x00",this.privateKey]):this.publicKey]))}},{key:"neuter",value:function(){return new e(k,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}},{key:"_derive",value:function(t){if(t>4294967295)throw new Error("invalid index - "+String(t));var n=this.path;n&&(n+="/"+(t&~g));var r=new Uint8Array(37);if(t&g){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set((0,o.arrayify)(this.privateKey),1),n&&(n+="'")}else r.set((0,o.arrayify)(this.publicKey));for(var a=24;a>=0;a-=8)r[33+(a>>3)]=t>>24-a&255;var i=(0,o.arrayify)((0,l.Gy)(b.p.sha512,this.chainCode,r)),c=i.slice(0,32),u=i.slice(32),d=null,p=null;this.privateKey?d=w(s.O$.from(c).add(this.privateKey).mod(m)):p=new f.SigningKey((0,o.hexlify)(c))._addPoint(this.publicKey);var h=n,y=this.mnemonic;return y&&(h=Object.freeze({phrase:y.phrase,path:n,locale:y.locale||"en"})),new e(k,d,p,this.fingerprint,w(u),t,this.depth+1,h)}},{key:"derivePath",value:function(e){var t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();for(var n=this,r=0;r=g)throw new Error("invalid path index - "+a);n=n._derive(g+i)}else{if(!a.match(/^[0-9]+$/))throw new Error("invalid path component - "+a);var o=parseInt(a);if(o>=g)throw new Error("invalid path index - "+a);n=n._derive(o)}}return n}}],[{key:"_fromSeed",value:function(t,n){var r=(0,o.arrayify)(t);if(r.length<16||r.length>64)throw new Error("invalid seed");var a=(0,o.arrayify)((0,l.Gy)(b.p.sha512,v,r));return new e(k,w(a.slice(0,32)),null,"0x00000000",w(a.slice(32)),0,0,n)}},{key:"fromMnemonic",value:function(t,n,r){return t=T(C(t,r=_(r)),r),e._fromSeed(E(t,n),{phrase:t,path:"m",locale:r.locale})}},{key:"fromSeed",value:function(t){return e._fromSeed(t,null)}},{key:"fromExtendedKey",value:function(t){var n=i.Base58.decode(t);82===n.length&&x(n.slice(0,78))===t||y.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var r=n[4],a=(0,o.hexlify)(n.slice(5,9)),s=parseInt((0,o.hexlify)(n.slice(9,13)).substring(2),16),c=(0,o.hexlify)(n.slice(13,45)),u=n.slice(45,78);switch((0,o.hexlify)(n.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(k,null,(0,o.hexlify)(u),a,c,s,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==u[0])break;return new e(k,(0,o.hexlify)(u.slice(1)),null,a,c,s,r,null)}return y.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}]),e}();function E(e,t){t||(t="");var n=(0,c.Y0)("mnemonic"+t,c.Uj.NFKD);return(0,u.n)((0,c.Y0)(e,c.Uj.NFKD),n,2048,64,"sha512")}function C(e,t){t=_(t),y.checkNormalize();var n=t.split(e);if(n.length%3!=0)throw new Error("invalid mnemonic");for(var r=(0,o.arrayify)(new Uint8Array(Math.ceil(11*n.length/8))),a=0,i=0;i>3]|=1<<7-a%8),a++}var u=32*n.length/3,d=A(n.length/3);if(((0,o.arrayify)((0,l.JQ)(r.slice(0,u/8)))[0]&d)!=(r[r.length-1]&d))throw new Error("invalid checksum");return(0,o.hexlify)(r.slice(0,u/8))}function T(e,t){if(t=_(t),(e=(0,o.arrayify)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy");for(var n=[0],r=11,a=0;a8?(n[n.length-1]<<=8,n[n.length-1]|=e[a],r-=8):(n[n.length-1]<<=r,n[n.length-1]|=e[a]>>8-r,n.push(e[a]&(1<<8-r)-1),r+=3);var i=e.length/4,s=(0,o.arrayify)((0,l.JQ)(e))[0]&A(i);return n[n.length-1]<<=i,n[n.length-1]|=s>>8-i,t.join(n.map((function(e){return t.getWord(e)})))}function O(e,t){try{return C(e,t),!0}catch(e){}return!1}function P(e){return("number"!=typeof e||e<0||e>=g||e%1)&&y.throwArgumentError("invalid account index","index",e),"m/44'/60'/".concat(e,"'/0/0")}},14907:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="json-wallets/5.7.0"},91162:function(e,t,n){"use strict";n.r(t),n.d(t,{decryptCrowdsale:function(){return A},decryptJsonWallet:function(){return _},decryptJsonWalletSync:function(){return k},decryptKeystore:function(){return x.pe},decryptKeystoreSync:function(){return x.hb},encryptKeystore:function(){return x.HI},getJsonWalletAddress:function(){return w.Rb},isCrowdsaleWallet:function(){return w.LW},isKeystoreWallet:function(){return w.aO}});var r=n(91610),a=n(31945),i=n(61968),o=n(6058),s=n(17519),c=n.n(s),u=n(23908),d=n(61974),f=n(14266),l=n(15240),b=n(21487),p=n(77729),h=n(24715),y=n(14907),m=n(28746),v=new h.Logger(y.i),g=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"isCrowdsaleAccount",value:function(e){return!(!e||!e._isCrowdsaleAccount)}}]),n}(p.Description);function A(e,t){var n=JSON.parse(e);t=(0,m.Ij)(t);var r=(0,u.getAddress)((0,m.gx)(n,"ethaddr")),a=(0,m.p3)((0,m.gx)(n,"encseed"));a&&a.length%16==0||v.throwArgumentError("invalid encseed","json",e);for(var i=(0,d.arrayify)((0,l.n)(t,t,2e3,32,"sha256")).slice(0,16),o=a.slice(0,16),s=a.slice(16),p=new(c().ModeOfOperation.cbc)(i,o),h=c().padding.pkcs7.strip((0,d.arrayify)(p.decrypt(s))),y="",A=0;A255)return!1;return!0}function a(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(n(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function i(e){return new Uint8Array(e)}function o(e,t,n,r,a){null==r&&null==a||(e=e.slice?e.slice(r,a):Array.prototype.slice.call(e,r,a)),t.set(e,n)}var s,c={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},u=(s="0123456789abcdef",{toBytes:function(e){for(var t=[],n=0;n>4]+s[15&r])}return t.join("")}}),d={16:10,24:12,32:14},f=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],b=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],p=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],h=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],v=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],g=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],A=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],x=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],_=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],k=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],I=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function S(e){for(var t=[],n=0;n>2,this._Ke[n][t%4]=i[t],this._Kd[e-n][t%4]=i[t];for(var o,s=0,c=a;c>16&255]<<24^l[o>>8&255]<<16^l[255&o]<<8^l[o>>24&255]^f[s]<<24,s+=1,8!=a)for(t=1;t>8&255]<<8^l[o>>16&255]<<16^l[o>>24&255]<<24,t=a/2+1;t>2,b=c%4,this._Ke[u][b]=i[t],this._Kd[e-u][b]=i[t++],c++}for(var u=1;u>24&255]^_[o>>16&255]^k[o>>8&255]^I[255&o]},E.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=S(e),a=0;a<4;a++)r[a]^=this._Ke[0][a];for(var o=1;o>24&255]^h[r[(a+1)%4]>>16&255]^y[r[(a+2)%4]>>8&255]^m[255&r[(a+3)%4]]^this._Ke[o][a];r=n.slice()}var s,c=i(16);for(a=0;a<4;a++)s=this._Ke[t][a],c[4*a]=255&(l[r[a]>>24&255]^s>>24),c[4*a+1]=255&(l[r[(a+1)%4]>>16&255]^s>>16),c[4*a+2]=255&(l[r[(a+2)%4]>>8&255]^s>>8),c[4*a+3]=255&(l[255&r[(a+3)%4]]^s);return c},E.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=S(e),a=0;a<4;a++)r[a]^=this._Kd[0][a];for(var o=1;o>24&255]^g[r[(a+3)%4]>>16&255]^A[r[(a+2)%4]>>8&255]^w[255&r[(a+1)%4]]^this._Kd[o][a];r=n.slice()}var s,c=i(16);for(a=0;a<4;a++)s=this._Kd[t][a],c[4*a]=255&(b[r[a]>>24&255]^s>>24),c[4*a+1]=255&(b[r[(a+3)%4]>>16&255]^s>>16),c[4*a+2]=255&(b[r[(a+2)%4]>>8&255]^s>>8),c[4*a+3]=255&(b[255&r[(a+1)%4]]^s);return c};var C=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new E(t)};C.prototype.encrypt=function(e){if((e=a(e)).length%16!=0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),n=i(16),r=0;r=0;--t)this._counter[t]=e%256,e>>=8},M.prototype.setBytes=function(e){if(16!=(e=a(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},M.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var B=function e(t,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",n instanceof M||(n=new M(n)),this._counter=n,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new E(t)};B.prototype.encrypt=function(e){for(var t=a(e,!0),n=0;n16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;ru[n]||console.log.apply(console,t)}},{key:"debug",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r>4],n+=b[15&t[a]];i.push(e+"=Uint8Array(0x"+n+")")}else i.push(e+"="+JSON.stringify(t))}catch(t){i.push(e+"="+JSON.stringify(r[e].toString()))}})),i.push("code=".concat(n)),i.push("version=".concat(this.version));var o=t,s="";switch(n){case a.NUMERIC_FAULT:s="NUMERIC_FAULT";var u=t;switch(u){case"overflow":case"underflow":case"division-by-zero":s+="-"+u;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break;case a.CALL_EXCEPTION:case a.INSUFFICIENT_FUNDS:case a.MISSING_NEW:case a.NONCE_EXPIRED:case a.REPLACEMENT_UNDERPRICED:case a.TRANSACTION_REPLACED:case a.UNPREDICTABLE_GAS_LIMIT:s=n}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(t+=" ("+i.join(", ")+")");var d=new Error(t);return d.reason=o,d.code=n,Object.keys(r).forEach((function(e){d[e]=r[e]})),d}},{key:"throwError",value:function(e,t,n){throw this.makeError(e,t,n)}},{key:"throwArgumentError",value:function(t,n,r){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:n,value:r})}},{key:"assert",value:function(e,t,n,r){e||this.throwError(t,n,r)}},{key:"assertArgument",value:function(e,t,n,r){e||this.throwArgumentError(t,n,r)}},{key:"checkNormalize",value:function(t){null==t&&(t="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})}},{key:"checkSafeUint53",value:function(t,n){"number"==typeof t&&(null==n&&(n="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(n,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(n,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,n,r){r=r?": "+r:"",tn&&this.throwError("too many arguments"+r,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:n})}},{key:"checkNew",value:function(t,n){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:n.name})}},{key:"checkAbstract",value:function(t,n){t===n?this.throwError("cannot instantiate abstract class "+JSON.stringify(n.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:n.name})}}],[{key:"globalLogger",value:function(){return f||(f=new e("logger/5.7.0")),f}},{key:"setCensorship",value:function(t,n){if(!t&&n&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),s){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}c=!!t,s=!!n}},{key:"setLogLevel",value:function(t){var n=u[t.toLowerCase()];null!=n?d=n:e.globalLogger().warn("invalid log level - "+t)}},{key:"from",value:function(t){return new e(t)}}]),e}();p.errors=a,p.levels=r},59501:function(e,t,n){"use strict";n.d(t,{H:function(){return d}});var r=new(n(24715).Logger)("networks/5.7.1");function a(e){var t=function(t,n){null==n&&(n={});var r=[];if(t.InfuraProvider&&"-"!==n.infura)try{r.push(new t.InfuraProvider(e,n.infura))}catch(e){}if(t.EtherscanProvider&&"-"!==n.etherscan)try{r.push(new t.EtherscanProvider(e,n.etherscan))}catch(e){}if(t.AlchemyProvider&&"-"!==n.alchemy)try{r.push(new t.AlchemyProvider(e,n.alchemy))}catch(e){}if(t.PocketProvider&&"-"!==n.pocket)try{var a=new t.PocketProvider(e,n.pocket);a.network&&-1===["goerli","ropsten","rinkeby","sepolia"].indexOf(a.network.name)&&r.push(a)}catch(e){}if(t.CloudflareProvider&&"-"!==n.cloudflare)try{r.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&"-"!==n.ankr)try{var i=new t.AnkrProvider(e,n.ankr);i.network&&-1===["ropsten"].indexOf(i.network.name)&&r.push(i)}catch(e){}if(0===r.length)return null;if(t.FallbackProvider){var o=1;return null!=n.quorum?o=n.quorum:"homestead"===e&&(o=2),new t.FallbackProvider(r,o)}return r[0]};return t.renetwork=function(e){return a(e)},t}function i(e,t){var n=function(n,r){return n.JsonRpcProvider?new n.JsonRpcProvider(e,t):null};return n.renetwork=function(t){return i(e,t)},n}var o={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:a("homestead")},s={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:a("ropsten")},c={chainId:63,name:"classicMordor",_defaultProvider:i("https://www.ethercluster.com/mordor","classicMordor")},u={unspecified:{chainId:0,name:"unspecified"},homestead:o,mainnet:o,morden:{chainId:2,name:"morden"},ropsten:s,testnet:s,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:a("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:a("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:a("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:a("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:i("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:c,classicTestnet:c,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:i("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:a("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:a("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function d(e){if(null==e)return null;if("number"==typeof e){for(var t in u){var n=u[t];if(n.chainId===e)return{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress||null,_defaultProvider:n._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){var a=u[e];return null==a?null:{name:a.name,chainId:a.chainId,ensAddress:a.ensAddress,_defaultProvider:a._defaultProvider||null}}var i=u[e.name];if(!i)return"number"!=typeof e.chainId&&r.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==i.chainId&&r.throwArgumentError("network chainId mismatch","network",e);var o,s=e._defaultProvider||null;return null==s&&i._defaultProvider&&(s=(o=i._defaultProvider)&&"function"==typeof o.renetwork?i._defaultProvider.renetwork(e):i._defaultProvider),{name:e.name,chainId:i.chainId,ensAddress:e.ensAddress||i.ensAddress||null,_defaultProvider:s}}},15240:function(e,t,n){"use strict";n.d(t,{n:function(){return i}});var r=n(61974),a=n(75153);function i(e,t,n,i,o){var s;e=(0,r.arrayify)(e),t=(0,r.arrayify)(t);var c,u,d=1,f=new Uint8Array(i),l=new Uint8Array(t.length+4);l.set(t);for(var b=1;b<=d;b++){l[t.length]=b>>24&255,l[t.length+1]=b>>16&255,l[t.length+2]=b>>8&255,l[t.length+3]=255&b;var p=(0,r.arrayify)((0,a.Gy)(o,e,l));s||(s=p.length,u=new Uint8Array(s),c=i-((d=Math.ceil(i/s))-1)*s),u.set(p);for(var h=1;h0&&null==e[e.length-1];)e.pop();return e.map((function(e){if(Array.isArray(e)){var t={};e.forEach((function(e){t[C(e)]=!0}));var n=Object.keys(t);return n.sort(),n.join("|")}return C(e)})).join("&")}function O(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,b.hexDataLength)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+T(e);if(u.Sg.isForkEvent(e))throw E.warn("not implemented"),new Error("not implemented");if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+T(e.topics||[])}throw new Error("invalid event - "+e)}function P(){return(new Date).getTime()}function M(e){return new Promise((function(t){setTimeout(t,e)}))}var B=["block","network","pending","poll"],N=function(){function e(t,n,r){(0,s.Z)(this,e),(0,m.defineReadOnly)(this,"tag",t),(0,m.defineReadOnly)(this,"listener",n),(0,m.defineReadOnly)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}return(0,c.Z)(e,[{key:"event",get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}},{key:"type",get:function(){return this.tag.split(":")[0]}},{key:"hash",get:function(){var e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}},{key:"filter",get:function(){var e=this.tag.split(":");if("filter"!==e[0])return null;var t,n=e[1],r=""===(t=e[2])?[]:t.split(/&/g).map((function(e){if(""===e)return[];var t=e.split("|").map((function(e){return"null"===e?null:e}));return 1===t.length?t[0]:t})),a={};return r.length>0&&(a.topics=r),n&&"*"!==n&&(a.address=n),a}},{key:"pollable",value:function(){return this.tag.indexOf(":")>=0||B.indexOf(this.tag)>=0}}]),e}(),R={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function D(e){return(0,b.hexZeroPad)(l.O$.from(e).toHexString(),32)}function j(e){return f.Base58.encode((0,b.concat)([e,(0,b.hexDataSlice)((0,v.JQ)((0,v.JQ)(e)),0,4)]))}var U=new RegExp("^(ipfs)://(.*)$","i"),L=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),U,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function F(e,t){try{return(0,g.ZN)(Z(e,t))}catch(e){}return null}function Z(e,t){if("0x"===e)return null;var n=l.O$.from((0,b.hexDataSlice)(e,t,t+32)).toNumber(),r=l.O$.from((0,b.hexDataSlice)(e,n,n+32)).toNumber();return(0,b.hexDataSlice)(e,n+32,n+32+r)}function H(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):E.throwArgumentError("unsupported IPFS format","link",e),"https://gateway.ipfs.io/ipfs/".concat(e)}function z(e){var t=(0,b.arrayify)(e);if(t.length>32)throw new Error("internal; should not happen");var n=new Uint8Array(32);return n.set(t,32-t.length),n}function Q(e){if(e.length%32==0)return e;var t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function q(e){for(var t=[],n=0,r=0;r=1&&i<=75)return j((0,b.concat)([[n.p2pkh],"0x"+a[2]]))}}if(null!=n.p2sh){var o=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(o){var s=parseInt(o[1],16);if(o[2].length===2*s&&s>=1&&s<=75)return j((0,b.concat)([[n.p2sh],"0x"+o[2]]))}}if(null!=n.prefix){var c=r[1],u=r[0];if(0===u?20!==c&&32!==c&&(u=-1):u=-1,u>=0&&r.length===2+c&&c>=1&&c<=75){var d=x().toWords(r.slice(2));return d.unshift(u),x().encode(n.prefix,d)}}return null}},{key:"getAddress",value:function(e){return S(this,void 0,void 0,(0,o.Z)().mark((function t(){var n,r,a;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==e&&(e=60),60!==e){t.next=16;break}return t.prev=2,t.next=5,this._fetch("0x3b3b57de");case 5:if("0x"!==(n=t.sent)&&n!==p.R){t.next=8;break}return t.abrupt("return",null);case 8:return t.abrupt("return",this.provider.formatter.callAddress(n));case 11:if(t.prev=11,t.t0=t.catch(2),t.t0.code!==_.Logger.errors.CALL_EXCEPTION){t.next=15;break}return t.abrupt("return",null);case 15:throw t.t0;case 16:return t.next=18,this._fetchBytes("0xf1cb7e06",D(e));case 18:if(null!=(r=t.sent)&&"0x"!==r){t.next=21;break}return t.abrupt("return",null);case 21:return null==(a=this._getAddress(e,r))&&E.throwError("invalid or unsupported coin data",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")"),coinType:e,data:r}),t.abrupt("return",a);case 24:case"end":return t.stop()}}),t,this,[[2,11]])})))}},{key:"getAvatar",value:function(){return S(this,void 0,void 0,(0,o.Z)().mark((function e(){var t,n,r,a,i,s,c,u,d,f,p,h,y,m,v,g;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[{type:"name",content:this.name}],e.prev=1,e.next=4,this.getText("avatar");case 4:if(null!=(n=e.sent)){e.next=7;break}return e.abrupt("return",null);case 7:r=0;case 8:if(!(r=0?null:JSON.stringify({data:i,sender:a}),r.next=12,(0,A.fetchJson)({url:d,errorPassThrough:!0},f,(function(e,t){return e.status=t.statusCode,e}));case 12:if(!(l=r.sent).data){r.next=15;break}return r.abrupt("return",l.data);case 15:if(b=l.message||"unknown error",!(l.status>=400&&l.status<500)){r.next=18;break}return r.abrupt("return",E.throwError("response not found during CCIP fetch: ".concat(b),_.Logger.errors.SERVER_ERROR,{url:u,errorMessage:b}));case 18:s.push(b);case 19:c++,r.next=6;break;case 22:return r.abrupt("return",E.throwError("error encountered during CCIP fetch: ".concat(s.map((function(e){return JSON.stringify(e)})).join(", ")),_.Logger.errors.SERVER_ERROR,{urls:n,errorMessages:s}));case 23:case"end":return r.stop()}}),r,this)})))}},{key:"_getInternalBlockNumber",value:function(e){return S(this,void 0,void 0,(0,o.Z)().mark((function t(){var n,r,a,i,s=this;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready();case 2:if(!(e>0)){t.next=20;break}case 3:if(!this._internalBlockNumber){t.next=20;break}return n=this._internalBlockNumber,t.prev=5,t.next=8,n;case 8:if(r=t.sent,!(P()-r.respTime<=e)){t.next=11;break}return t.abrupt("return",r.blockNumber);case 11:return t.abrupt("break",20);case 14:if(t.prev=14,t.t0=t.catch(5),this._internalBlockNumber!==n){t.next=18;break}return t.abrupt("break",20);case 18:t.next=3;break;case 20:return a=P(),i=(0,m.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(e){return null}),(function(e){return e}))}).then((function(e){var t=e.blockNumber,n=e.networkError;if(n)throw s._internalBlockNumber===i&&(s._internalBlockNumber=null),n;var r=P();return(t=l.O$.from(t).toNumber())1e3)E.warn("network block skew detected; skipping block events (emitted=".concat(this._emitted.block," blockNumber").concat(r,")")),this.emit("error",E.makeError("network block skew detected",_.Logger.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(a=this._emitted.block+1;a<=r;a++)this.emit("block",a);return this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((function(e){if("block"!==e){var t=i._emitted[e];"pending"!==t&&r-t>12&&delete i._emitted[e]}}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((function(e){switch(e.type){case"tx":var t=e.hash,a=i.getTransactionReceipt(t).then((function(e){return e&&null!=e.blockNumber?(i._emitted["t:"+t]=e.blockNumber,i.emit(t,e),null):null})).catch((function(e){i.emit("error",e)}));n.push(a);break;case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);var o=e.filter;o.fromBlock=e._lastBlockNumber+1,o.toBlock=r;var s=o.toBlock-i._maxFilterBlockRange;s>o.fromBlock&&(o.fromBlock=s),o.fromBlock<0&&(o.fromBlock=0);var c=i.getLogs(o).then((function(t){e._inflight=!1,0!==t.length&&t.forEach((function(t){t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),i._emitted["b:"+t.blockHash]=t.blockNumber,i._emitted["t:"+t.transactionHash]=t.blockNumber,i.emit(o,t)}))})).catch((function(t){i.emit("error",t),e._inflight=!1}));n.push(c)}}})),this._lastBlockNumber=r,Promise.all(n).then((function(){i.emit("didPoll",t)})).catch((function(e){i.emit("error",e)})),e.abrupt("return");case 26:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"resetEventsBlock",value:function(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}},{key:"network",get:function(){return this._network}},{key:"detectNetwork",value:function(){return S(this,void 0,void 0,(0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",E.throwError("provider does not support network detection",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"}));case 1:case"end":return e.stop()}}),e)})))}},{key:"getNetwork",value:function(){return S(this,void 0,void 0,(0,o.Z)().mark((function e(){var t,n,r;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready();case 2:return t=e.sent,e.next=5,this.detectNetwork();case 5:if(n=e.sent,t.chainId===n.chainId){e.next=23;break}if(!this.anyNetwork){e.next=20;break}return this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,t),e.next=19,M(0);case 19:return e.abrupt("return",this._network);case 20:throw r=E.makeError("underlying network changed",_.Logger.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:n}),this.emit("error",r),r;case 23:return e.abrupt("return",t);case 24:case"end":return e.stop()}}),e,this)})))}},{key:"blockNumber",get:function(){var e=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(t){e._setFastBlockNumber(t)}),(function(e){})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}},{key:"polling",get:function(){return null!=this._poller},set:function(e){var t=this;e&&!this._poller?(this._poller=setInterval((function(){t.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((function(){t.poll(),t._bootstrapPoll=setTimeout((function(){t._poller||t.poll(),t._bootstrapPoll=null}),t.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(e){var t=this;if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){t.poll()}),this._pollingInterval))}},{key:"_getFastBlockNumber",value:function(){var e=this,t=P();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((function(t){return(null==e._fastBlockNumber||t>e._fastBlockNumber)&&(e._fastBlockNumber=t),e._fastBlockNumber}))),this._fastBlockNumberPromise}},{key:"_setFastBlockNumber",value:function(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}},{key:"waitForTransaction",value:function(e,t,n){return S(this,void 0,void 0,(0,o.Z)().mark((function r(){return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this._waitForTransaction(e,null==t?1:t,n||0,null));case 1:case"end":return r.stop()}}),r,this)})))}},{key:"_waitForTransaction",value:function(e,t,n,r){return S(this,void 0,void 0,(0,o.Z)().mark((function a(){var i,s=this;return(0,o.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,this.getTransactionReceipt(e);case 2:if(!(((i=a.sent)?i.confirmations:0)>=t)){a.next=5;break}return a.abrupt("return",i);case 5:return a.abrupt("return",new Promise((function(a,i){var c=[],u=!1,d=function(){return!!u||(u=!0,c.forEach((function(e){e()})),!1)},f=function(e){e.confirmations0){var h=setTimeout((function(){d()||i(E.makeError("timeout exceeded",_.Logger.errors.TIMEOUT,{timeout:n}))}),n);h.unref&&h.unref(),c.push((function(){clearTimeout(h)}))}})));case 6:case"end":return a.stop()}}),a,this)})))}},{key:"getBlockNumber",value:function(){return S(this,void 0,void 0,(0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getInternalBlockNumber(0));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return S(this,void 0,void 0,(0,o.Z)().mark((function e(){var t;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.next=4,this.perform("getGasPrice",{});case 4:return t=e.sent,e.prev=5,e.abrupt("return",l.O$.from(t));case 9:return e.prev=9,e.t0=e.catch(5),e.abrupt("return",E.throwError("bad result from backend",_.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e.t0}));case 12:case"end":return e.stop()}}),e,this,[[5,9]])})))}},{key:"getBalance",value:function(e,t){return S(this,void 0,void 0,(0,o.Z)().mark((function n(){var r,a;return(0,o.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,(0,m.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getBalance",r);case 7:return a=n.sent,n.prev=8,n.abrupt("return",l.O$.from(a));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",E.throwError("bad result from backend",_.Logger.errors.SERVER_ERROR,{method:"getBalance",params:r,result:a,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getTransactionCount",value:function(e,t){return S(this,void 0,void 0,(0,o.Z)().mark((function n(){var r,a;return(0,o.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,(0,m.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getTransactionCount",r);case 7:return a=n.sent,n.prev=8,n.abrupt("return",l.O$.from(a).toNumber());case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",E.throwError("bad result from backend",_.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:a,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getCode",value:function(e,t){return S(this,void 0,void 0,(0,o.Z)().mark((function n(){var r,a;return(0,o.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,(0,m.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getCode",r);case 7:return a=n.sent,n.prev=8,n.abrupt("return",(0,b.hexlify)(a));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",E.throwError("bad result from backend",_.Logger.errors.SERVER_ERROR,{method:"getCode",params:r,result:a,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getStorageAt",value:function(e,t,n){return S(this,void 0,void 0,(0,o.Z)().mark((function r(){var a,i;return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,(0,m.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(t).then((function(e){return(0,b.hexValue)(e)}))});case 4:return a=r.sent,r.next=7,this.perform("getStorageAt",a);case 7:return i=r.sent,r.prev=8,r.abrupt("return",(0,b.hexlify)(i));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",E.throwError("bad result from backend",_.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:a,result:i,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"_wrapTransaction",value:function(e,t,n){var r=this;if(null!=t&&32!==(0,b.hexDataLength)(t))throw new Error("invalid response - sendTransaction");var a=e;return null!=t&&e.hash!==t&&E.throwError("Transaction hash mismatch from Provider.sendTransaction.",_.Logger.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),a.wait=function(t,a){return S(r,void 0,void 0,(0,o.Z)().mark((function r(){var i,s;return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==t&&(t=1),null==a&&(a=0),i=void 0,0!==t&&null!=n&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n}),r.next=6,this._waitForTransaction(e.hash,t,a,i);case 6:if(null!=(s=r.sent)||0!==t){r.next=9;break}return r.abrupt("return",null);case 9:return this._emitted["t:"+e.hash]=s.blockNumber,0===s.status&&E.throwError("transaction failed",_.Logger.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:s}),r.abrupt("return",s);case 12:case"end":return r.stop()}}),r,this)})))},a}},{key:"sendTransaction",value:function(e){return S(this,void 0,void 0,(0,o.Z)().mark((function t(){var n,r,a,i;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,Promise.resolve(e).then((function(e){return(0,b.hexlify)(e)}));case 4:return n=t.sent,null==(r=this.formatter.transaction(e)).confirmations&&(r.confirmations=0),t.next=9,this._getInternalBlockNumber(100+2*this.pollingInterval);case 9:return a=t.sent,t.prev=10,t.next=13,this.perform("sendTransaction",{signedTransaction:n});case 13:return i=t.sent,t.abrupt("return",this._wrapTransaction(r,i,a));case 17:throw t.prev=17,t.t0=t.catch(10),t.t0.transaction=r,t.t0.transactionHash=r.hash,t.t0;case 22:case"end":return t.stop()}}),t,this,[[10,17]])})))}},{key:"_getTransactionRequest",value:function(e){return S(this,void 0,void 0,(0,o.Z)().mark((function t(){var n,r,a=this;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return n=t.sent,r={},["from","to"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?a._getAddress(e):null})))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?l.O$.from(e):null})))})),["type"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return null!=e?e:null})))})),n.accessList&&(r.accessList=this.formatter.accessList(n.accessList)),["data"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?(0,b.hexlify)(e):null})))})),t.t0=this.formatter,t.next=12,(0,m.resolveProperties)(r);case 12:return t.t1=t.sent,t.abrupt("return",t.t0.transactionRequest.call(t.t0,t.t1));case 14:case"end":return t.stop()}}),t,this)})))}},{key:"_getFilter",value:function(e){return S(this,void 0,void 0,(0,o.Z)().mark((function t(){var n,r=this;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,n={},null!=e.address&&(n.address=this._getAddress(e.address)),["blockHash","topics"].forEach((function(t){null!=e[t]&&(n[t]=e[t])})),["fromBlock","toBlock"].forEach((function(t){null!=e[t]&&(n[t]=r._getBlockTag(e[t]))})),t.t0=this.formatter,t.next=10,(0,m.resolveProperties)(n);case 10:return t.t1=t.sent,t.abrupt("return",t.t0.filter.call(t.t0,t.t1));case 12:case"end":return t.stop()}}),t,this)})))}},{key:"_call",value:function(e,t,n){return S(this,void 0,void 0,(0,o.Z)().mark((function r(){var a,i,s,c,u,d,f,p,h,y,m,v,g,A,w;return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n>=10&&E.throwError("CCIP read exceeded maximum redirections",_.Logger.errors.SERVER_ERROR,{redirects:n,transaction:e}),a=e.to,r.next=4,this.perform("call",{transaction:e,blockTag:t});case 4:if(i=r.sent,!(n>=0&&"latest"===t&&null!=a&&"0x556f1830"===i.substring(0,10)&&(0,b.hexDataLength)(i)%32==4)){r.next=31;break}for(r.prev=6,s=(0,b.hexDataSlice)(i,4),c=(0,b.hexDataSlice)(s,0,32),l.O$.from(c).eq(a)||E.throwError("CCIP Read sender did not match",_.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i}),u=[],d=l.O$.from((0,b.hexDataSlice)(s,32,64)).toNumber(),f=l.O$.from((0,b.hexDataSlice)(s,d,d+32)).toNumber(),p=(0,b.hexDataSlice)(s,d+32),h=0;hthis._emitted.block)){e.next=10;break}return e.abrupt("return",null);case 10:return e.abrupt("return",void 0);case 11:if(!t){e.next=34;break}i=null,s=0;case 14:if(!(s0}},{key:"_stopEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_addEventListener",value:function(e,t,n){var r=new N(O(e),t,n);return this._events.push(r),this._startEvent(r),this}},{key:"on",value:function(e,t){return this._addEventListener(e,t,!1)}},{key:"once",value:function(e,t){return this._addEventListener(e,t,!0)}},{key:"emit",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),a=1;at?null:(r+a)/2}function k(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(d.O$.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((function(e){return k(e)})));if("object"==typeof e){var t=Object.keys(e);return t.sort(),"{"+t.map((function(t){var n=e[t];return n="function"==typeof n?"[function]":k(n),JSON.stringify(t)+":"+n})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}var I=1;function S(e){var t=null,n=null,r=new Promise((function(r){t=function(){n&&(clearTimeout(n),n=null),r()},n=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return r},wait:function(e){return r=r.then(e)}}}var E=[m.Logger.errors.CALL_EXCEPTION,m.Logger.errors.INSUFFICIENT_FUNDS,m.Logger.errors.NONCE_EXPIRED,m.Logger.errors.REPLACEMENT_UNDERPRICED,m.Logger.errors.UNPREDICTABLE_GAS_LIMIT],C=["address","args","errorArgs","errorSignature","method","transaction"];function T(e,t){var n={weight:e.weight};return Object.defineProperty(n,"provider",{get:function(){return e.provider}}),e.start&&(n.start=e.start),t&&(n.duration=t-e.start),e.done&&(e.error?n.error=e.error:n.result=e.result||null),n}function O(e,t,n){var r=k;switch(t){case"getBlockNumber":return function(t){var n=t.map((function(e){return e.result})),r=_(t.map((function(e){return e.result})),2);if(null!=r)return r=Math.ceil(r),n.indexOf(r+1)>=0&&r++,r>=e._highestBlockNumber&&(e._highestBlockNumber=r),e._highestBlockNumber};case"getGasPrice":return function(e){var t=e.map((function(e){return e.result}));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return _(e.map((function(e){return e.result})))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":r=function(e){return null==e?null:((e=(0,l.shallowCopy)(e)).confirmations=-1,k(e))};break;case"getBlock":r=n.includeTransactions?function(e){return null==e?null:((e=(0,l.shallowCopy)(e)).transactions=e.transactions.map((function(e){return(e=(0,l.shallowCopy)(e)).confirmations=-1,e})),k(e))}:function(e){return null==e?null:k(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(n){var r={};n.forEach((function(t){var n=e(t.result);r[n]||(r[n]={count:0,result:t.result}),r[n].count++}));for(var a=Object.keys(r),i=0;i=t)return o.result}}}(r,e.quorum)}function P(e,t){return g(this,void 0,void 0,(0,c.Z)().mark((function n(){var r;return(0,c.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null!=(r=e.provider).blockNumber&&r.blockNumber>=t||-1===t)){n.next=3;break}return n.abrupt("return",r);case 3:return n.abrupt("return",(0,p.poll)((function(){return new Promise((function(n,a){setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)}),0)}))}),{oncePoll:r}));case 4:case"end":return n.stop()}}),n)})))}function M(e,t,n,r){return g(this,void 0,void 0,(0,c.Z)().mark((function a(){var i,o;return(0,c.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:i=e.provider,a.t0=n,a.next="getBlockNumber"===a.t0||"getGasPrice"===a.t0?4:"getEtherPrice"===a.t0?5:"getBalance"===a.t0||"getTransactionCount"===a.t0||"getCode"===a.t0?8:"getStorageAt"===a.t0?13:"getBlock"===a.t0?18:"call"===a.t0||"estimateGas"===a.t0?23:"getTransaction"===a.t0||"getTransactionReceipt"===a.t0?30:"getLogs"===a.t0?31:37;break;case 4:return a.abrupt("return",i[n]());case 5:if(!i.getEtherPrice){a.next=7;break}return a.abrupt("return",i.getEtherPrice());case 7:return a.abrupt("break",37);case 8:if(!r.blockTag||!(0,f.isHexString)(r.blockTag)){a.next=12;break}return a.next=11,P(e,t);case 11:i=a.sent;case 12:return a.abrupt("return",i[n](r.address,r.blockTag||"latest"));case 13:if(!r.blockTag||!(0,f.isHexString)(r.blockTag)){a.next=17;break}return a.next=16,P(e,t);case 16:i=a.sent;case 17:return a.abrupt("return",i.getStorageAt(r.address,r.position,r.blockTag||"latest"));case 18:if(!r.blockTag||!(0,f.isHexString)(r.blockTag)){a.next=22;break}return a.next=21,P(e,t);case 21:i=a.sent;case 22:return a.abrupt("return",i[r.includeTransactions?"getBlockWithTransactions":"getBlock"](r.blockTag||r.blockHash));case 23:if(!r.blockTag||!(0,f.isHexString)(r.blockTag)){a.next=27;break}return a.next=26,P(e,t);case 26:i=a.sent;case 27:if("call"!==n||!r.blockTag){a.next=29;break}return a.abrupt("return",i[n](r.transaction,r.blockTag));case 29:return a.abrupt("return",i[n](r.transaction));case 30:return a.abrupt("return",i[n](r.transactionHash));case 31:if(!((o=r.filter).fromBlock&&(0,f.isHexString)(o.fromBlock)||o.toBlock&&(0,f.isHexString)(o.toBlock))){a.next=36;break}return a.next=35,P(e,t);case 35:i=a.sent;case 36:return a.abrupt("return",i.getLogs(o));case 37:return a.abrupt("return",A.throwError("unknown method error",m.Logger.errors.UNKNOWN_ERROR,{method:n,params:r}));case 38:case"end":return a.stop()}}),a)})))}var B=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e,a){var o;(0,r.Z)(this,n),0===e.length&&A.throwArgumentError("missing providers","providers",e);var s=e.map((function(e,t){if(u.zt.isProvider(e)){var n=(0,y.Gp)(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:n,priority:1})}var r=(0,l.shallowCopy)(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=(0,y.Gp)(e)?2e3:750),null==r.weight&&(r.weight=1);var a=r.weight;return(a%1||a>512||a<1)&&A.throwArgumentError("invalid weight; must be integer in [1, 512]","providers[".concat(t,"].weight"),a),Object.freeze(r)})),c=s.reduce((function(e,t){return e+t.weight}),0);null==a?a=c/2:a>c&&A.throwArgumentError("quorum will always fail; larger than total weight","quorum",a);var d=x(s.map((function(e){return e.provider.network})));return null==d&&(d=new Promise((function(e,t){setTimeout((function(){o.detectNetwork().then(e,t)}),0)}))),o=t.call(this,d),(0,l.defineReadOnly)((0,i.Z)(o),"providerConfigs",Object.freeze(s)),(0,l.defineReadOnly)((0,i.Z)(o),"quorum",a),o._highestBlockNumber=-1,o}return(0,a.Z)(n,[{key:"detectNetwork",value:function(){return g(this,void 0,void 0,(0,c.Z)().mark((function e(){var t;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.providerConfigs.map((function(e){return e.provider.getNetwork()})));case 2:return t=e.sent,e.abrupt("return",x(t));case 4:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){return g(this,void 0,void 0,(0,c.Z)().mark((function n(){var r,a,i,o,s,u,d,f,p,h,y=this;return(0,c.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("sendTransaction"!==e){n.next=13;break}return n.next=3,Promise.all(this.providerConfigs.map((function(e){return e.provider.sendTransaction(t.signedTransaction).then((function(e){return e.hash}),(function(e){return e}))})));case 3:r=n.sent,a=0;case 5:if(!(a=y.quorum)){n.next=22;break}if(void 0===(h=o(p))){n.next=18;break}return s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),n.abrupt("return",{v:h});case 18:if(f){n.next=21;break}return n.next=21,S(100).getPromise();case 21:f=!1;case 22:if(m=s.reduce((function(e,t){if(!t.done||null==t.error)return e;var n=t.error.code;return E.indexOf(n)>=0&&(e[n]||(e[n]={error:t.error,weight:0}),e[n].weight+=t.weight),e}),{}),Object.keys(m).forEach((function(e){var t=m[e];if(!(t.weight=0&&o.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&_.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",g.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}function E(e){return new Promise((function(t){setTimeout(t,e)}))}function C(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function T(e){return e?e.toLowerCase():e}var O={},P=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,r,a){var i;if((0,o.Z)(this,n),i=t.call(this),e!==O)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return(0,h.defineReadOnly)((0,c.Z)(i),"provider",r),null==a&&(a=0),"string"==typeof a?((0,h.defineReadOnly)((0,c.Z)(i),"_address",i.provider.formatter.address(a)),(0,h.defineReadOnly)((0,c.Z)(i),"_index",null)):"number"==typeof a?((0,h.defineReadOnly)((0,c.Z)(i),"_index",a),(0,h.defineReadOnly)((0,c.Z)(i),"_address",null)):_.throwArgumentError("invalid address or index","addressOrIndex",a),i}return(0,s.Z)(n,[{key:"connect",value:function(e){return _.throwError("cannot alter JSON-RPC Signer connection",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}},{key:"connectUnchecked",value:function(){return new M(O,this.provider,this._address||this._index)}},{key:"getAddress",value:function(){var e=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(t){return t.length<=e._index&&_.throwError("unknown account #"+e._index,g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e.provider.formatter.address(t[e._index])}))}},{key:"sendUncheckedTransaction",value:function(e){var t=this;e=(0,h.shallowCopy)(e);var n=this.getAddress().then((function(e){return e&&(e=e.toLowerCase()),e}));if(null==e.gasLimit){var r=(0,h.shallowCopy)(e);r.from=n,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((function(e){return x(t,void 0,void 0,(0,i.Z)().mark((function t(){var n;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this.provider.resolveName(e);case 4:return null==(n=t.sent)&&_.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})))}))),(0,h.resolveProperties)({tx:(0,h.resolveProperties)(e),sender:n}).then((function(n){var r=n.tx,a=n.sender;null!=r.from?r.from.toLowerCase()!==a&&_.throwArgumentError("from address mismatch","transaction",e):r.from=a;var i=t.provider.constructor.hexlifyTransaction(r,{from:!0});return t.provider.send("eth_sendTransaction",[i]).then((function(e){return e}),(function(e){return"string"==typeof e.message&&e.message.match(/user denied/i)&&_.throwError("user rejected transaction",g.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:r}),S("sendTransaction",e,i)}))}))}},{key:"signTransaction",value:function(e){return _.throwError("signing transactions is unsupported",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}},{key:"sendTransaction",value:function(e){return x(this,void 0,void 0,(0,i.Z)().mark((function t(){var n,r,a=this;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval);case 2:return n=t.sent,t.next=5,this.sendUncheckedTransaction(e);case 5:return r=t.sent,t.prev=6,t.next=9,(0,v.poll)((function(){return x(a,void 0,void 0,(0,i.Z)().mark((function e(){var t;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.provider.getTransaction(r);case 2:if(null!==(t=e.sent)){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",this.provider._wrapTransaction(t,r,n));case 6:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this.provider});case 9:return t.abrupt("return",t.sent);case 12:throw t.prev=12,t.t0=t.catch(6),t.t0.transactionHash=r,t.t0;case 16:case"end":return t.stop()}}),t,this,[[6,12]])})))}},{key:"signMessage",value:function(e){return x(this,void 0,void 0,(0,i.Z)().mark((function t(){var n,r;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="string"==typeof e?(0,y.Y0)(e):e,t.next=3,this.getAddress();case 3:return r=t.sent,t.prev=4,t.next=7,this.provider.send("personal_sign",[(0,b.hexlify)(n),r.toLowerCase()]);case 7:return t.abrupt("return",t.sent);case 10:throw t.prev=10,t.t0=t.catch(4),"string"==typeof t.t0.message&&t.t0.message.match(/user denied/i)&&_.throwError("user rejected signing",g.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),t.t0;case 14:case"end":return t.stop()}}),t,this,[[4,10]])})))}},{key:"_legacySignMessage",value:function(e){return x(this,void 0,void 0,(0,i.Z)().mark((function t(){var n,r;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="string"==typeof e?(0,y.Y0)(e):e,t.next=3,this.getAddress();case 3:return r=t.sent,t.prev=4,t.next=7,this.provider.send("eth_sign",[r.toLowerCase(),(0,b.hexlify)(n)]);case 7:return t.abrupt("return",t.sent);case 10:throw t.prev=10,t.t0=t.catch(4),"string"==typeof t.t0.message&&t.t0.message.match(/user denied/i)&&_.throwError("user rejected signing",g.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),t.t0;case 14:case"end":return t.stop()}}),t,this,[[4,10]])})))}},{key:"_signTypedData",value:function(e,t,n){return x(this,void 0,void 0,(0,i.Z)().mark((function r(){var a,o,s=this;return(0,i.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,p.E.resolveNames(e,t,n,(function(e){return s.provider.resolveName(e)}));case 2:return a=r.sent,r.next=5,this.getAddress();case 5:return o=r.sent,r.prev=6,r.next=9,this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(p.E.getPayload(a.domain,t,a.value))]);case 9:return r.abrupt("return",r.sent);case 12:throw r.prev=12,r.t0=r.catch(6),"string"==typeof r.t0.message&&r.t0.message.match(/user denied/i)&&_.throwError("user rejected signing",g.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:o,messageData:{domain:a.domain,types:t,value:a.value}}),r.t0;case 16:case"end":return r.stop()}}),r,this,[[6,12]])})))}},{key:"unlock",value:function(e){return x(this,void 0,void 0,(0,i.Z)().mark((function t(){var n,r;return(0,i.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.provider,t.next=3,this.getAddress();case 3:return r=t.sent,t.abrupt("return",n.send("personal_unlockAccount",[r.toLowerCase(),e,null]));case 5:case"end":return t.stop()}}),t,this)})))}}]),n}(f.E),M=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"sendTransaction",value:function(e){var t=this;return this.sendUncheckedTransaction(e).then((function(e){return{hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(n){return t.provider.waitForTransaction(e,n)}}}))}}]),n}(P),B={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},N=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,r){var a;(0,o.Z)(this,n);var i=r;return null==i&&(i=new Promise((function(e,t){setTimeout((function(){a.detectNetwork().then((function(t){e(t)}),(function(e){t(e)}))}),0)}))),a=t.call(this,i),e||(e=(0,h.getStatic)(a.constructor,"defaultUrl")()),"string"==typeof e?(0,h.defineReadOnly)((0,c.Z)(a),"connection",Object.freeze({url:e})):(0,h.defineReadOnly)((0,c.Z)(a),"connection",Object.freeze((0,h.shallowCopy)(e))),a._nextId=42,a}return(0,s.Z)(n,[{key:"_cache",get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}},{key:"detectNetwork",value:function(){var e=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((function(){e._cache.detectNetwork=null}),0)),this._cache.detectNetwork}},{key:"_uncachedDetectNetwork",value:function(){return x(this,void 0,void 0,(0,i.Z)().mark((function e(){var t,n;return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E(0);case 2:return t=null,e.prev=3,e.next=6,this.send("eth_chainId",[]);case 6:t=e.sent,e.next=19;break;case 9:return e.prev=9,e.t0=e.catch(3),e.prev=11,e.next=14,this.send("net_version",[]);case 14:t=e.sent,e.next=19;break;case 17:e.prev=17,e.t1=e.catch(11);case 19:if(null==t){e.next=28;break}return n=(0,h.getStatic)(this.constructor,"getNetwork"),e.prev=21,e.abrupt("return",n(l.O$.from(t).toNumber()));case 25:return e.prev=25,e.t2=e.catch(21),e.abrupt("return",_.throwError("could not detect network",g.Logger.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e.t2}));case 28:return e.abrupt("return",_.throwError("could not detect network",g.Logger.errors.NETWORK_ERROR,{event:"noNetwork"}));case 29:case"end":return e.stop()}}),e,this,[[3,9],[11,17],[21,25]])})))}},{key:"getSigner",value:function(e){return new P(O,this,e)}},{key:"getUncheckedSigner",value:function(e){return this.getSigner(e).connectUnchecked()}},{key:"listAccounts",value:function(){var e=this;return this.send("eth_accounts",[]).then((function(t){return t.map((function(t){return e.formatter.address(t)}))}))}},{key:"send",value:function(e,t){var n=this,r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,h.deepCopy)(r),provider:this});var a=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(a&&this._cache[e])return this._cache[e];var i=(0,v.fetchJson)(this.connection,JSON.stringify(r),C).then((function(e){return n.emit("debug",{action:"response",request:r,response:e,provider:n}),e}),(function(e){throw n.emit("debug",{action:"response",error:e,request:r,provider:n}),e}));return a&&(this._cache[e]=i,setTimeout((function(){n._cache[e]=null}),0)),i}},{key:"prepareRequest",value:function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[T(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[T(t.address),t.blockTag]];case"getCode":return["eth_getCode",[T(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[T(t.address),(0,b.hexZeroPad)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[(0,h.getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,h.getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=T(t.filter.address)),["eth_getLogs",[t.filter]]}return null}},{key:"perform",value:function(e,t){return x(this,void 0,void 0,(0,i.Z)().mark((function n(){var r,a,o;return(0,i.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("call"!==e&&"estimateGas"!==e){n.next=8;break}if(!(r=t.transaction)||null==r.type||!l.O$.from(r.type).isZero()){n.next=8;break}if(null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas){n.next=8;break}return n.next=6,this.getFeeData();case 6:null==(a=n.sent).maxFeePerGas&&null==a.maxPriorityFeePerGas&&((t=(0,h.shallowCopy)(t)).transaction=(0,h.shallowCopy)(r),delete t.transaction.type);case 8:return null==(o=this.prepareRequest(e,t))&&_.throwError(e+" not implemented",g.Logger.errors.NOT_IMPLEMENTED,{operation:e}),n.prev=10,n.next=13,this.send(o[0],o[1]);case 13:return n.abrupt("return",n.sent);case 16:return n.prev=16,n.t0=n.catch(10),n.abrupt("return",S(e,n.t0,t));case 19:case"end":return n.stop()}}),n,this,[[10,16]])})))}},{key:"_startEvent",value:function(e){"pending"===e.tag&&this._startPending(),(0,r.Z)((0,a.Z)(n.prototype),"_startEvent",this).call(this,e)}},{key:"_startPending",value:function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(n){return function r(){e.send("eth_getFilterChanges",[n]).then((function(n){if(e._pendingFilter!=t)return null;var r=Promise.resolve();return n.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",r=r.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),r.then((function(){return E(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){r()}),0),null;e.send("eth_uninstallFilter",[n])})).catch((function(e){}))}(),n})).catch((function(e){}))}}},{key:"_stopEvent",value:function(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),(0,r.Z)((0,a.Z)(n.prototype),"_stopEvent",this).call(this,e)}}],[{key:"defaultUrl",value:function(){return"http://localhost:8545"}},{key:"hexlifyTransaction",value:function(e,t){var n=(0,h.shallowCopy)(B);if(t)for(var r in t)t[r]&&(n[r]=!0);(0,h.checkProperties)(e,n);var a={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null!=e[t]){var n=(0,b.hexValue)(l.O$.from(e[t]));"gasLimit"===t&&(t="gas"),a[t]=n}})),["from","to","data"].forEach((function(t){null!=e[t]&&(a[t]=(0,b.hexlify)(e[t]))})),e.accessList&&(a.accessList=(0,m.accessListify)(e.accessList)),a}}]),n}(w.Zk)},50321:function(e,t,n){"use strict";n.d(t,{c:function(){return y},l:function(){return m}});var r=n(50491),a=n(59754),i=n(91610),o=n(31945),s=n(76056),c=n(12293),u=n(61968),d=n(6058),f=n(77729),l=n(24715),b=n(82069),p=n(36587),h=new l.Logger(b.i),y=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"detectNetwork",value:function(){var e,t,r,i,o=this,u=Object.create(null,{detectNetwork:{get:function(){return(0,s.Z)((0,c.Z)(n.prototype),"detectNetwork",o)}}});return e=this,t=void 0,r=void 0,i=(0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(t=this.network)){e.next=7;break}return e.next=4,u.detectNetwork.call(this);case 4:(t=e.sent)||h.throwError("no network detected",l.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,f.defineReadOnly)(this,"_network",t),this.emit("network",t,null));case 7:return e.abrupt("return",t);case 8:case"end":return e.stop()}}),e,this)})),new(r||(r=Promise))((function(n,a){function o(e){try{c(i.next(e))}catch(e){a(e)}}function s(e){try{c(i.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,s)}c((i=i.apply(e,t||[])).next())}))}}]),n}(p.r),m=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(e,a){var o;(0,i.Z)(this,n),h.checkAbstract(this instanceof n?this.constructor:void 0,n),e=(0,f.getStatic)(this instanceof n?this.constructor:void 0,"getNetwork")(e),a=(0,f.getStatic)(this instanceof n?this.constructor:void 0,"getApiKey")(a);var s=(0,f.getStatic)(this instanceof n?this.constructor:void 0,"getUrl")(e,a);return o=t.call(this,s,e),"string"==typeof a?(0,f.defineReadOnly)((0,r.Z)(o),"apiKey",a):null!=a&&Object.keys(a).forEach((function(e){(0,f.defineReadOnly)((0,r.Z)(o),e,a[e])})),o}return(0,o.Z)(n,[{key:"_startPending",value:function(){h.warn("WARNING: API provider does not support pending filters")}},{key:"isCommunityResource",value:function(){return!1}},{key:"getSigner",value:function(e){return h.throwError("API provider does not support signing",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}},{key:"listAccounts",value:function(){return Promise.resolve([])}}],[{key:"getApiKey",value:function(e){return e}},{key:"getUrl",value:function(e,t){return h.throwError("not implemented; sub-classes must override getUrl",l.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}]),n}(y)},39560:function(e,t,n){"use strict";n.d(t,{Q:function(){return h}});var r=n(91610),a=n(31945),i=n(50491),o=n(61968),s=n(6058),c=n(77729),u=n(24715),d=n(82069),f=n(36587),l=new u.Logger(d.i),b=1;function p(e,t){var n="Web3LegacyFetcher";return function(e,r){var a=this,i={method:e,params:r,id:b++,jsonrpc:"2.0"};return new Promise((function(e,r){a.emit("debug",{action:"request",fetcher:n,request:(0,c.deepCopy)(i),provider:a}),t(i,(function(t,o){if(t)return a.emit("debug",{action:"response",fetcher:n,error:t,request:i,provider:a}),r(t);if(a.emit("debug",{action:"response",fetcher:n,request:i,response:o,provider:a}),o.error){var s=new Error(o.error.message);return s.code=o.error.code,s.data=o.error.data,r(s)}e(o.result)}))}))}}var h=function(e){(0,o.Z)(n,e);var t=(0,s.Z)(n);function n(e,a){var o;(0,r.Z)(this,n),null==e&&l.throwArgumentError("missing provider","provider",e);var s=null,u=null,d=null;return"function"==typeof e?(s="unknown:",u=e):(!(s=e.host||e.path||"")&&e.isMetaMask&&(s="metamask"),d=e,e.request?(""===s&&(s="eip-1193:"),u=function(e){return function(t,n){var r=this;null==n&&(n=[]);var a={method:t,params:n};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,c.deepCopy)(a),provider:this}),e.request(a).then((function(e){return r.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,response:e,provider:r}),e}),(function(e){throw r.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,error:e,provider:r}),e}))}}(e)):e.sendAsync?u=p(0,e.sendAsync.bind(e)):e.send?u=p(0,e.send.bind(e)):l.throwArgumentError("unsupported provider","provider",e),s||(s="unknown:")),o=t.call(this,s,a),(0,c.defineReadOnly)((0,i.Z)(o),"jsonRpcFetchFunc",u),(0,c.defineReadOnly)((0,i.Z)(o),"provider",d),o}return(0,a.Z)(n,[{key:"send",value:function(e,t){return this.jsonRpcFetchFunc(e,t)}}]),n}(f.r)},81838:function(e){"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n={},r=0;r<32;r++){var a=t.charAt(r);if(void 0!==n[a])throw new TypeError(a+" is ambiguous");n[a]=r}function i(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,n=0;n126)return"Invalid prefix ("+e+")";t=i(t)^r>>5}for(t=i(t),n=0;nt)return"Exceeds length limit";var r=e.toLowerCase(),a=e.toUpperCase();if(e!==r&&e!==a)return"Mixed-case string "+e;var s=(e=r).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var c=e.slice(0,s),u=e.slice(s+1);if(u.length<6)return"Data too short";var d=o(c);if("string"==typeof d)return d;for(var f=[],l=0;l=u.length||f.push(p)}return 1!==d?"Invalid checksum for "+e:{prefix:c,words:f}}function c(e,t,n,r){for(var a=0,i=0,o=(1<=n;)i-=n,s.push(a>>i&o);if(r)i>0&&s.push(a<=t)return"Excess padding";if(a<r)throw new TypeError("Exceeds length limit");var a=o(e=e.toLowerCase());if("string"==typeof a)throw new Error(a);for(var s=e+"1",c=0;c>5!=0)throw new Error("Non 5-bit word");a=i(a)^u,s+=t.charAt(u)}for(c=0;c<6;++c)a=i(a);for(a^=1,c=0;c<6;++c)s+=t.charAt(a>>5*(5-c)&31);return s},toWordsUnsafe:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},88741:function(e,t,n){"use strict";n.r(t),n.d(t,{randomBytes:function(){return r.O},shuffled:function(){return a.y}});var r=n(37327),a=n(14593)},37327:function(e,t,n){"use strict";n.d(t,{O:function(){return c}});var r=n(61974),a=n(24715),i=new a.Logger("random/5.7.0"),o=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}(),s=o.crypto||o.msCrypto;function c(e){(e<=0||e>1024||e%1||e!=e)&&i.throwArgumentError("invalid length","length",e);var t=new Uint8Array(e);return s.getRandomValues(t),(0,r.arrayify)(t)}s&&s.getRandomValues||(i.warn("WARNING: Missing strong random number source"),s={getRandomValues:function(e){return i.throwError("no secure random source avaialble",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},14593:function(e,t,n){"use strict";function r(e){for(var t=(e=e.slice()).length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}n.d(t,{y:function(){return r}})},55586:function(e,t,n){"use strict";n.r(t),n.d(t,{decode:function(){return l},encode:function(){return u}});var r=n(61974),a=n(24715),i=new a.Logger("rlp/5.7.0");function o(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function s(e,t,n){for(var r=0,a=0;at+1+r&&i.throwError("child data too short",a.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:o}}function f(e,t){if(0===e.length&&i.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){var n=e[t]-247;t+1+n>e.length&&i.throwError("data short segment too short",a.Logger.errors.BUFFER_OVERRUN,{});var o=s(e,t+1,n);return t+1+n+o>e.length&&i.throwError("data long segment too short",a.Logger.errors.BUFFER_OVERRUN,{}),d(e,t,t+1+n,n+o)}if(e[t]>=192){var c=e[t]-192;return t+1+c>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),d(e,t,t+1,c)}if(e[t]>=184){var u=e[t]-183;t+1+u>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{});var f=s(e,t+1,u);return t+1+u+f>e.length&&i.throwError("data array too short",a.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+u+f,result:(0,r.hexlify)(e.slice(t+1+u,t+1+u+f))}}if(e[t]>=128){var l=e[t]-128;return t+1+l>e.length&&i.throwError("data too short",a.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+l,result:(0,r.hexlify)(e.slice(t+1,t+1+l))}}return{consumed:1,result:(0,r.hexlify)(e[t])}}function l(e){var t=(0,r.arrayify)(e),n=f(t,0);return n.consumed!==t.length&&i.throwArgumentError("invalid rlp data","data",e),n.result}},61149:function(e,t,n){"use strict";n.r(t),n.d(t,{SupportedAlgorithm:function(){return a.p},computeHmac:function(){return r.Gy},ripemd160:function(){return r.bP},sha256:function(){return r.JQ},sha512:function(){return r.o}});var r=n(75153),a=n(1228)},75153:function(e,t,n){"use strict";n.d(t,{Gy:function(){return l},bP:function(){return u},JQ:function(){return d},o:function(){return f}});var r=n(33791),a=n.n(r),i=n(61974),o=n(1228),s=n(24715),c=new s.Logger("sha2/5.7.0");function u(e){return"0x"+a().ripemd160().update((0,i.arrayify)(e)).digest("hex")}function d(e){return"0x"+a().sha256().update((0,i.arrayify)(e)).digest("hex")}function f(e){return"0x"+a().sha512().update((0,i.arrayify)(e)).digest("hex")}function l(e,t,n){return o.p[e]||c.throwError("unsupported algorithm "+e,s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+a().hmac(a()[e],(0,i.arrayify)(t)).update((0,i.arrayify)(n)).digest("hex")}},1228:function(e,t,n){"use strict";var r;n.d(t,{p:function(){return r}}),function(e){e.sha256="sha256",e.sha512="sha512"}(r||(r={}))},55992:function(e,t,n){"use strict";n.r(t),n.d(t,{SigningKey:function(){return W},computePublicKey:function(){return X},recoverPublicKey:function(){return Y}});var r=n(91610),a=n(31945),i=n(22097),o=n.n(i),s=n(33791),c=n.n(s);function u(e,t,n){return n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},e(n,n.exports),n.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self&&self;var d=f;function f(e,t){if(!e)throw new Error(t||"Assertion failed")}f.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var l=u((function(e,t){var n=t;function r(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n>8,o=255&a;i?n.push(i,o):n.push(o)}return n},n.zero2=r,n.toHex=a,n.encode=function(e,t){return"hex"===t?a(e):e}})),b=u((function(e,t){var n=t;n.assert=d,n.toArray=l.toArray,n.zero2=l.zero2,n.toHex=l.toHex,n.encode=l.encode,n.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var a=1<(a>>1)-1?(a>>1)-c:c,i.isubn(s)):s=0,r[o]=s,i.iushrn(1)}return r},n.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,a=0,i=0;e.cmpn(-a)>0||t.cmpn(-i)>0;){var o,s,c=e.andln(3)+a&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),o=0==(1&c)?0:3!=(r=e.andln(7)+a&7)&&5!==r||2!==u?c:-c,n[0].push(o),s=0==(1&u)?0:3!=(r=t.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[1].push(s),2*a===o+1&&(a=1-a),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},n.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new(o())(e,"hex","le")}})),p=b.getNAF,h=b.getJSF,y=b.assert;function m(e,t){this.type=e,this.p=new(o())(t.p,16),this.red=t.prime?o().red(t.prime):o().mont(this.p),this.zero=new(o())(0).toRed(this.red),this.one=new(o())(1).toRed(this.red),this.two=new(o())(2).toRed(this.red),this.n=t.n&&new(o())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var v=m;function g(e,t){this.curve=e,this.type=t,this.precomputed=null}m.prototype.point=function(){throw new Error("Not implemented")},m.prototype.validate=function(){throw new Error("Not implemented")},m.prototype._fixedNafMul=function(e,t){y(e.precomputed);var n=e._getDoubles(),r=p(t,1,this._bitLength),a=(1<=i;c--)o=(o<<1)+r[c];s.push(o)}for(var u=this.jpoint(null,null,null),d=this.jpoint(null,null,null),f=a;f>0;f--){for(i=0;i=0;s--){for(var c=0;s>=0&&0===i[s];s--)c++;if(s>=0&&c++,o=o.dblp(c),s<0)break;var u=i[s];y(0!==u),o="affine"===e.type?u>0?o.mixedAdd(a[u-1>>1]):o.mixedAdd(a[-u-1>>1].neg()):u>0?o.add(a[u-1>>1]):o.add(a[-u-1>>1].neg())}return"affine"===e.type?o.toP():o},m.prototype._wnafMulAdd=function(e,t,n,r,a){var i,o,s,c=this._wnafT1,u=this._wnafT2,d=this._wnafT3,f=0;for(i=0;i=1;i-=2){var b=i-1,y=i;if(1===c[b]&&1===c[y]){var m=[t[b],null,null,t[y]];0===t[b].y.cmp(t[y].y)?(m[1]=t[b].add(t[y]),m[2]=t[b].toJ().mixedAdd(t[y].neg())):0===t[b].y.cmp(t[y].y.redNeg())?(m[1]=t[b].toJ().mixedAdd(t[y]),m[2]=t[b].add(t[y].neg())):(m[1]=t[b].toJ().mixedAdd(t[y]),m[2]=t[b].toJ().mixedAdd(t[y].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=h(n[b],n[y]);for(f=Math.max(g[0].length,f),d[b]=new Array(f),d[y]=new Array(f),o=0;o=0;i--){for(var k=0;i>=0;){var I=!0;for(o=0;o=0&&k++,x=x.dblp(k),i<0)break;for(o=0;o0?s=u[o][S-1>>1]:S<0&&(s=u[o][-S-1>>1].neg()),x="affine"===s.type?x.mixedAdd(s):x.add(s))}}for(i=0;i=Math.ceil((e.bitLength()+1)/t.step)},g.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,a=0;a=0&&(i=t,s=n),r.negative&&(r=r.neg(),a=a.neg()),i.negative&&(i=i.neg(),s=s.neg()),[{a:r,b:a},{a:i,b:s}]},x.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],a=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),o=a.mul(n.a),s=i.mul(r.a),c=a.mul(n.b),u=i.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(u).neg()}},x.prototype.pointFromX=function(e,t){(e=new(o())(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var a=r.fromRed().isOdd();return(t&&!a||!t&&a)&&(r=r.redNeg()),this.point(e,r)},x.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(a).cmpn(0)},x.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,a=this._endoWnafT2,i=0;i":""},k.prototype.isInfinity=function(){return this.inf},k.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},k.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),a=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},k.prototype.getX=function(){return this.x.fromRed()},k.prototype.getY=function(){return this.y.fromRed()},k.prototype.mul=function(e){return e=new(o())(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},k.prototype.mulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a):this.curve._wnafMulAdd(1,r,a,2)},k.prototype.jmulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a,!0):this.curve._wnafMulAdd(1,r,a,2,!0)},k.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},k.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},k.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},A(I,v.BasePoint),x.prototype.jpoint=function(e,t,n){return new I(this,e,t,n)},I.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},I.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},I.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),a=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(a),c=i.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),d=u.redMul(s),f=r.redMul(u),l=c.redSqr().redIAdd(d).redISub(f).redISub(f),b=c.redMul(f.redISub(l)).redISub(i.redMul(d)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(l,b,p)},I.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),a=this.y,i=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=a.redSub(i);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),d=n.redMul(c),f=s.redSqr().redIAdd(u).redISub(d).redISub(d),l=s.redMul(d.redISub(f)).redISub(a.redMul(u)),b=this.z.redMul(o);return this.curve.jpoint(f,l,b)},I.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(a),0===this.x.cmp(n))return!0}},I.prototype.inspect=function(){return this.isInfinity()?"":""},I.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var S=u((function(e,t){var n=t;n.base=v,n.short=_,n.mont=null,n.edwards=null})),E=u((function(e,t){var n,r=t,a=b.assert;function i(e){"short"===e.type?this.curve=new S.short(e):"edwards"===e.type?this.curve=new S.edwards(e):this.curve=new S.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new i(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=i,o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:c().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:c().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:c().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:c().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:c().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:c().sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:c().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(e){n=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:c().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function C(e){if(!(this instanceof C))return new C(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=l.toArray(e.entropy,e.entropyEnc||"hex"),n=l.toArray(e.nonce,e.nonceEnc||"hex"),r=l.toArray(e.pers,e.persEnc||"hex");d(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var T=C;C.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},C.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=l.toArray(n,r||"hex"),this._update(n));for(var a=[];a.length"};var B=b.assert;function N(e,t){if(e instanceof N)return e;this._importDER(e,t)||(B(e.r&&e.s,"Signature without r or s"),this.r=new(o())(e.r,16),this.s=new(o())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var R=N;function D(){this.place=0}function j(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var a=0,i=0,o=t.place;i>>=0;return!(a<=127)&&(t.place=o,a)}function U(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}N.prototype._importDER=function(e,t){e=b.toArray(e,t);var n=new D;if(48!==e[n.place++])return!1;var r=j(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var a=j(e,n);if(!1===a)return!1;var i=e.slice(n.place,a+n.place);if(n.place+=a,2!==e[n.place++])return!1;var s=j(e,n);if(!1===s)return!1;if(e.length!==s+n.place)return!1;var c=e.slice(n.place,s+n.place);if(0===i[0]){if(!(128&i[1]))return!1;i=i.slice(1)}if(0===c[0]){if(!(128&c[1]))return!1;c=c.slice(1)}return this.r=new(o())(i),this.s=new(o())(c),this.recoveryParam=null,!0},N.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=U(t),n=U(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];L(r,t.length),(r=r.concat(t)).push(2),L(r,n.length);var a=r.concat(n),i=[48];return L(i,a.length),i=i.concat(a),b.encode(i,e)};var F=function(){throw new Error("unsupported")},Z=b.assert;function H(e){if(!(this instanceof H))return new H(e);"string"==typeof e&&(Z(Object.prototype.hasOwnProperty.call(E,e),"Unknown curve "+e),e=E[e]),e instanceof E.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var z=H;H.prototype.keyPair=function(e){return new M(this,e)},H.prototype.keyFromPrivate=function(e,t){return M.fromPrivate(this,e,t)},H.prototype.keyFromPublic=function(e,t){return M.fromPublic(this,e,t)},H.prototype.genKeyPair=function(e){e||(e={});for(var t=new T({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||F(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new(o())(2));;){var a=new(o())(t.generate(n));if(!(a.cmp(r)>0))return a.iaddn(1),this.keyFromPrivate(a)}},H.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},H.prototype.sign=function(e,t,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new(o())(e,16));for(var a=this.n.byteLength(),i=t.getPrivate().toArray("be",a),s=e.toArray("be",a),c=new T({hash:this.hash,entropy:i,nonce:s,pers:r.pers,persEnc:r.persEnc||"utf8"}),u=this.n.sub(new(o())(1)),d=0;;d++){var f=r.k?r.k(d):new(o())(c.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(u)>=0)){var l=this.g.mul(f);if(!l.isInfinity()){var b=l.getX(),p=b.umod(this.n);if(0!==p.cmpn(0)){var h=f.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(h=h.umod(this.n)).cmpn(0)){var y=(l.getY().isOdd()?1:0)|(0!==b.cmp(p)?2:0);return r.canonical&&h.cmp(this.nh)>0&&(h=this.n.sub(h),y^=1),new R({r:p,s:h,recoveryParam:y})}}}}}},H.prototype.verify=function(e,t,n,r){e=this._truncateToN(new(o())(e,16)),n=this.keyFromPublic(n,r);var a=(t=new R(t,"hex")).r,i=t.s;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;var s,c=i.invm(this.n),u=c.mul(e).umod(this.n),d=c.mul(a).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,n.getPublic(),d)).isInfinity()&&s.eqXToP(a):!(s=this.g.mulAdd(u,n.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(a)},H.prototype.recoverPubKey=function(e,t,n,r){Z((3&n)===n,"The recovery param is more than two bits"),t=new R(t,r);var a=this.n,i=new(o())(e),s=t.r,c=t.s,u=1&n,d=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var f=t.r.invm(a),l=a.sub(i).mul(f).umod(a),b=c.mul(f).umod(a);return this.g.mulAdd(l,s,b)},H.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new R(t,r)).recoveryParam)return t.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(n))return a}throw new Error("Unable to find valid recovery factor")};var Q=u((function(e,t){var n=t;n.version="6.5.4",n.utils=b,n.rand=function(){throw new Error("unsupported")},n.curve=S,n.curves=E,n.ec=z,n.eddsa=null})).ec,q=n(61974),V=n(77729),J=new(n(24715).Logger)("signing-key/5.7.0"),K=null;function G(){return K||(K=new Q("secp256k1")),K}var W=function(){function e(t){(0,r.Z)(this,e),(0,V.defineReadOnly)(this,"curve","secp256k1"),(0,V.defineReadOnly)(this,"privateKey",(0,q.hexlify)(t)),32!==(0,q.hexDataLength)(this.privateKey)&&J.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var n=G().keyFromPrivate((0,q.arrayify)(this.privateKey));(0,V.defineReadOnly)(this,"publicKey","0x"+n.getPublic(!1,"hex")),(0,V.defineReadOnly)(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),(0,V.defineReadOnly)(this,"_isSigningKey",!0)}return(0,a.Z)(e,[{key:"_addPoint",value:function(e){var t=G().keyFromPublic((0,q.arrayify)(this.publicKey)),n=G().keyFromPublic((0,q.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(e){var t=G().keyFromPrivate((0,q.arrayify)(this.privateKey)),n=(0,q.arrayify)(e);32!==n.length&&J.throwArgumentError("bad digest length","digest",e);var r=t.sign(n,{canonical:!0});return(0,q.splitSignature)({recoveryParam:r.recoveryParam,r:(0,q.hexZeroPad)("0x"+r.r.toString(16),32),s:(0,q.hexZeroPad)("0x"+r.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(e){var t=G().keyFromPrivate((0,q.arrayify)(this.privateKey)),n=G().keyFromPublic((0,q.arrayify)(X(e)));return(0,q.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(e){return!(!e||!e._isSigningKey)}}]),e}();function Y(e,t){var n=(0,q.splitSignature)(t),r={r:(0,q.arrayify)(n.r),s:(0,q.arrayify)(n.s)};return"0x"+G().recoverPubKey((0,q.arrayify)(e),r,n.recoveryParam).encode("hex",!1)}function X(e,t){var n=(0,q.arrayify)(e);if(32===n.length){var r=new W(n);return t?"0x"+G().keyFromPrivate(n).getPublic(!0,"hex"):r.publicKey}return 33===n.length?t?(0,q.hexlify)(n):"0x"+G().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+G().keyFromPublic(n).getPublic(!0,"hex"):(0,q.hexlify)(n):J.throwArgumentError("invalid public or private key","key","[REDACTED]")}},99590:function(e,t,n){"use strict";n.r(t),n.d(t,{keccak256:function(){return y},pack:function(){return h},sha256:function(){return m}});var r=n(75006),a=n(61974),i=n(14266),o=n(75153),s=n(21487),c=n(24715),u=new RegExp("^bytes([0-9]+)$"),d=new RegExp("^(u?int)([0-9]*)$"),f=new RegExp("^(.*)\\[([0-9]*)\\]$"),l="0000000000000000000000000000000000000000000000000000000000000000",b=new c.Logger("solidity/5.7.0");function p(e,t,n){switch(e){case"address":return n?(0,a.zeroPad)(t,32):(0,a.arrayify)(t);case"string":return(0,s.Y0)(t);case"bytes":return(0,a.arrayify)(t);case"bool":return t=t?"0x01":"0x00",n?(0,a.zeroPad)(t,32):(0,a.arrayify)(t)}var i=e.match(d);if(i){var o=parseInt(i[2]||"256");return(i[2]&&String(o)!==i[2]||o%8!=0||0===o||o>256)&&b.throwArgumentError("invalid number type","type",e),n&&(o=256),t=r.O$.from(t).toTwos(o),(0,a.zeroPad)(t,o/8)}if(i=e.match(u)){var c=parseInt(i[1]);return(String(c)!==i[1]||0===c||c>32)&&b.throwArgumentError("invalid bytes type","type",e),(0,a.arrayify)(t).byteLength!==c&&b.throwArgumentError("invalid value for ".concat(e),"value",t),n?(0,a.arrayify)((t+l).substring(0,66)):t}if((i=e.match(f))&&Array.isArray(t)){var h=i[1];parseInt(i[2]||String(t.length))!=t.length&&b.throwArgumentError("invalid array length for ".concat(e),"value",t);var y=[];return t.forEach((function(e){y.push(p(h,e,!0))})),(0,a.concat)(y)}return b.throwArgumentError("invalid type","type",e)}function h(e,t){e.length!=t.length&&b.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);var n=[];return e.forEach((function(e,r){n.push(p(e,t[r]))})),(0,a.hexlify)((0,a.concat)(n))}function y(e,t){return(0,i.keccak256)(h(e,t))}function m(e,t){return(0,o.JQ)(h(e,t))}},83177:function(e,t,n){"use strict";n.d(t,{F:function(){return s},s:function(){return o}});var r=n(15389),a=n(61974),i=n(21487);function o(e){var t=(0,i.Y0)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,a.hexlify)((0,a.concat)([t,r.R]).slice(0,32))}function s(e){var t=(0,a.arrayify)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");for(var n=31;0===t[n-1];)n--;return(0,i.ZN)(t.slice(0,n))}},77753:function(e,t,n){"use strict";n.d(t,{Ll:function(){return p}});var r=n(21487);function a(e,t){t||(t=function(e){return[parseInt(e,16)]});var n=0,r={};return e.split(",").forEach((function(e){var a=e.split(":");n+=parseInt(a[0],16),r[n]=t(a[1])})),r}function i(e){var t=0;return e.split(",").map((function(e){var n=e.split("-");return 1===n.length?n[1]="0":""===n[1]&&(n[1]="1"),{l:t+parseInt(n[0],16),h:t=parseInt(n[1],16)}}))}function o(e,t){for(var n=0,r=0;r=(n+=a.l)&&e<=n+a.h&&(e-n)%(a.d||1)==0){if(a.e&&-1!==a.e.indexOf(e-n))continue;return a}}return null}var s=i("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),c="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),u=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],d=a("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),f=a("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),l=a("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data");for(var t=[],n=0;n=0)return[];if(e>=65024&&e<=65039)return[];var t=function(e){var t=o(e,u);if(t)return[e+t.s];var n=d[e];if(n)return n;var r=f[e];return r?[e+r[0]]:l[e]||null}(e);return t||[e]})),n=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[]),(n=(0,r.XL)((0,r.uu)(n),r.Uj.NFKC)).forEach((function(e){if(o(e,b))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),n.forEach((function(e){if(o(e,s))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));var a=(0,r.uu)(n);if("-"===a.substring(0,1)||"--"===a.substring(2,4)||"-"===a.substring(a.length-1))throw new Error("invalid hyphen");return a}},3653:function(e,t,n){"use strict";n.r(t),n.d(t,{UnicodeNormalizationForm:function(){return i.Uj},Utf8ErrorFuncs:function(){return i.te},Utf8ErrorReason:function(){return i.Uw},_toEscapedUtf8String:function(){return i.U$},formatBytes32String:function(){return r.s},nameprep:function(){return a.Ll},parseBytes32String:function(){return r.F},toUtf8Bytes:function(){return i.Y0},toUtf8CodePoints:function(){return i.XL},toUtf8String:function(){return i.ZN}});var r=n(83177),a=n(77753),i=n(21487)},21487:function(e,t,n){"use strict";n.d(t,{Uj:function(){return r},te:function(){return c},Uw:function(){return a},U$:function(){return l},uu:function(){return b},Y0:function(){return d},XL:function(){return h},ZN:function(){return p}});var r,a,i=n(61974),o=new(n(24715).Logger)("strings/5.7.0");function s(e,t,n,r,i){if(e===a.BAD_PREFIX||e===a.UNEXPECTED_CONTINUE){for(var o=0,s=t+1;s>6==2;s++)o++;return o}return e===a.OVERRUN?n.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(r||(r={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(a||(a={}));var c=Object.freeze({error:function(e,t,n,r,a){return o.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",n)},ignore:s,replace:function(e,t,n,r,i){return e===a.OVERLONG?(r.push(i),0):(r.push(65533),s(e,t,n))}});function u(e,t){null==t&&(t=c.error),e=(0,i.arrayify)(e);for(var n=[],r=0;r>7!=0){var s=null,u=null;if(192==(224&o))s=1,u=127;else if(224==(240&o))s=2,u=2047;else{if(240!=(248&o)){r+=t(128==(192&o)?a.UNEXPECTED_CONTINUE:a.BAD_PREFIX,r-1,e,n);continue}s=3,u=65535}if(r-1+s>=e.length)r+=t(a.OVERRUN,r-1,e,n);else{for(var d=o&(1<<8-s-1)-1,f=0;f1114111?r+=t(a.OUT_OF_RANGE,r-1-s,e,n,d):d>=55296&&d<=57343?r+=t(a.UTF16_SURROGATE,r-1-s,e,n,d):d<=u?r+=t(a.OVERLONG,r-1-s,e,n,d):n.push(d))}}else n.push(o)}return n}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current;t!=r.current&&(o.checkNormalize(),e=e.normalize(t));for(var n=[],a=0;a>6|192),n.push(63&s|128);else if(55296==(64512&s)){a++;var c=e.charCodeAt(a);if(a>=e.length||56320!=(64512&c))throw new Error("invalid utf-8 string");var u=65536+((1023&s)<<10)+(1023&c);n.push(u>>18|240),n.push(u>>12&63|128),n.push(u>>6&63|128),n.push(63&u|128)}else n.push(s>>12|224),n.push(s>>6&63|128),n.push(63&s|128)}return(0,i.arrayify)(n)}function f(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function l(e,t){return'"'+u(e,t).map((function(e){if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?f(e):f(55296+((e-=65536)>>10&1023))+f(56320+(1023&e))})).join("")+'"'}function b(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function p(e,t){return b(u(e,t))}function h(e){return u(d(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current))}},76992:function(e,t,n){"use strict";n.r(t),n.d(t,{TransactionTypes:function(){return r},accessListify:function(){return x},computeAddress:function(){return v},parse:function(){return C},recoverAddress:function(){return g},serialize:function(){return S}});var r,a=n(23908),i=n(75006),o=n(61974),s=n(60447),c=n(14266),u=n(77729),d=n(55586),f=n(55992),l=n(24715),b=new l.Logger("transactions/5.7.0");function p(e){return"0x"===e?null:(0,a.getAddress)(e)}function h(e){return"0x"===e?s._Y:i.O$.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(r||(r={}));var y=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],m={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function v(e){var t=(0,f.computePublicKey)(e);return(0,a.getAddress)((0,o.hexDataSlice)((0,c.keccak256)((0,o.hexDataSlice)(t,1)),12))}function g(e,t){return v((0,f.recoverPublicKey)((0,o.arrayify)(e),t))}function A(e,t){var n=(0,o.stripZeros)(i.O$.from(e).toHexString());return n.length>32&&b.throwArgumentError("invalid length for "+t,"transaction:"+t,e),n}function w(e,t){return{address:(0,a.getAddress)(e),storageKeys:(t||[]).map((function(t,n){return 32!==(0,o.hexDataLength)(t)&&b.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(n,"]"),t),t.toLowerCase()}))}}function x(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&b.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),w(e[0],e[1])):w(e.address,e.storageKeys)}));var t=Object.keys(e).map((function(t){var n=e[t].reduce((function(e,t){return e[t]=!0,e}),{});return w(t,Object.keys(n).sort())}));return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function _(e){return x(e).map((function(e){return[e.address,e.storageKeys]}))}function k(e,t){if(null!=e.gasPrice){var n=i.O$.from(e.gasPrice),r=i.O$.from(e.maxFeePerGas||0);n.eq(r)||b.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:r})}var s=[A(e.chainId||0,"chainId"),A(e.nonce||0,"nonce"),A(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),A(e.maxFeePerGas||0,"maxFeePerGas"),A(e.gasLimit||0,"gasLimit"),null!=e.to?(0,a.getAddress)(e.to):"0x",A(e.value||0,"value"),e.data||"0x",_(e.accessList||[])];if(t){var c=(0,o.splitSignature)(t);s.push(A(c.recoveryParam,"recoveryParam")),s.push((0,o.stripZeros)(c.r)),s.push((0,o.stripZeros)(c.s))}return(0,o.hexConcat)(["0x02",d.encode(s)])}function I(e,t){var n=[A(e.chainId||0,"chainId"),A(e.nonce||0,"nonce"),A(e.gasPrice||0,"gasPrice"),A(e.gasLimit||0,"gasLimit"),null!=e.to?(0,a.getAddress)(e.to):"0x",A(e.value||0,"value"),e.data||"0x",_(e.accessList||[])];if(t){var r=(0,o.splitSignature)(t);n.push(A(r.recoveryParam,"recoveryParam")),n.push((0,o.stripZeros)(r.r)),n.push((0,o.stripZeros)(r.s))}return(0,o.hexConcat)(["0x01",d.encode(n)])}function S(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&b.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){(0,u.checkProperties)(e,m);var n=[];y.forEach((function(t){var r=e[t.name]||[],a={};t.numeric&&(a.hexPad="left"),r=(0,o.arrayify)((0,o.hexlify)(r,a)),t.length&&r.length!==t.length&&r.length>0&&b.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),t.maxLength&&(r=(0,o.stripZeros)(r)).length>t.maxLength&&b.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),n.push((0,o.hexlify)(r))}));var r=0;if(null!=e.chainId?"number"!=typeof(r=e.chainId)&&b.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!(0,o.isBytesLike)(t)&&t.v>28&&(r=Math.floor((t.v-35)/2)),0!==r&&(n.push((0,o.hexlify)(r)),n.push("0x"),n.push("0x")),!t)return d.encode(n);var a=(0,o.splitSignature)(t),i=27+a.recoveryParam;return 0!==r?(n.pop(),n.pop(),n.pop(),i+=2*r+8,a.v>28&&a.v!==i&&b.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):a.v!==i&&b.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),n.push((0,o.hexlify)(i)),n.push((0,o.stripZeros)((0,o.arrayify)(a.r))),n.push((0,o.stripZeros)((0,o.arrayify)(a.s))),d.encode(n)}(e,t);switch(e.type){case 1:return I(e,t);case 2:return k(e,t)}return b.throwError("unsupported transaction type: ".concat(e.type),l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function E(e,t,n){try{var r=h(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(e){b.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,o.hexZeroPad)(t[1],32),e.s=(0,o.hexZeroPad)(t[2],32);try{var a=(0,c.keccak256)(n(e));e.from=g(a,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}function C(e){var t=(0,o.arrayify)(e);if(t[0]>127)return function(e){var t=d.decode(e);9!==t.length&&6!==t.length&&b.throwArgumentError("invalid raw transaction","rawTransaction",e);var n={nonce:h(t[0]).toNumber(),gasPrice:h(t[1]),gasLimit:h(t[2]),to:p(t[3]),value:h(t[4]),data:t[5],chainId:0};if(6===t.length)return n;try{n.v=i.O$.from(t[6]).toNumber()}catch(e){return n}if(n.r=(0,o.hexZeroPad)(t[7],32),n.s=(0,o.hexZeroPad)(t[8],32),i.O$.from(n.r).isZero()&&i.O$.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);var r=n.v-27,a=t.slice(0,6);0!==n.chainId&&(a.push((0,o.hexlify)(n.chainId)),a.push("0x"),a.push("0x"),r-=2*n.chainId+8);var s=(0,c.keccak256)(d.encode(a));try{n.from=g(s,{r:(0,o.hexlify)(n.r),s:(0,o.hexlify)(n.s),recoveryParam:r})}catch(e){}n.hash=(0,c.keccak256)(e)}return n.type=null,n}(t);switch(t[0]){case 1:return function(e){var t=d.decode(e.slice(1));8!==t.length&&11!==t.length&&b.throwArgumentError("invalid component count for transaction type: 1","payload",(0,o.hexlify)(e));var n={type:1,chainId:h(t[0]).toNumber(),nonce:h(t[1]).toNumber(),gasPrice:h(t[2]),gasLimit:h(t[3]),to:p(t[4]),value:h(t[5]),data:t[6],accessList:x(t[7])};return 8===t.length||(n.hash=(0,c.keccak256)(e),E(n,t.slice(8),I)),n}(t);case 2:return function(e){var t=d.decode(e.slice(1));9!==t.length&&12!==t.length&&b.throwArgumentError("invalid component count for transaction type: 2","payload",(0,o.hexlify)(e));var n=h(t[2]),r=h(t[3]),a={type:2,chainId:h(t[0]).toNumber(),nonce:h(t[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:r,gasPrice:null,gasLimit:h(t[4]),to:p(t[5]),value:h(t[6]),data:t[7],accessList:x(t[8])};return 9===t.length||(a.hash=(0,c.keccak256)(e),E(a,t.slice(9),k)),a}(t)}return b.throwError("unsupported transaction type: ".concat(t[0]),l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},9503:function(e,t,n){"use strict";n.r(t),n.d(t,{commify:function(){return o},formatEther:function(){return u},formatUnits:function(){return s},parseEther:function(){return d},parseUnits:function(){return c}});var r=n(12137),a=new(n(24715).Logger)("units/5.7.0"),i=["wei","kwei","mwei","gwei","szabo","finney","ether"];function o(e){var t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&a.throwArgumentError("invalid value","value",e);var n=t[0],r="";for("-"===n.substring(0,1)&&(r="-",n=n.substring(1));"0"===n.substring(0,1);)n=n.substring(1);""===n&&(n="0");var i="";for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);for(var o=[];n.length;){if(n.length<=3){o.unshift(n);break}var s=n.length-3;o.unshift(n.substring(s)),n=n.substring(0,s)}return r+o.join(",")+i}function s(e,t){if("string"==typeof t){var n=i.indexOf(t);-1!==n&&(t=3*n)}return(0,r.S5)(e,null!=t?t:18)}function c(e,t){if("string"!=typeof e&&a.throwArgumentError("value must be a string","value",e),"string"==typeof t){var n=i.indexOf(t);-1!==n&&(t=3*n)}return(0,r.Ox)(e,null!=t?t:18)}function u(e){return s(e,18)}function d(e){return c(e,18)}},2188:function(e,t,n){"use strict";n.r(t),n.d(t,{Wallet:function(){return S},verifyMessage:function(){return E},verifyTypedData:function(){return C}});var r=n(59754),a=n(91610),i=n(31945),o=n(50491),s=n(61968),c=n(6058),u=n(23908),d=n(37999),f=n(71769),l=n(61974),b=n(85978),p=n(74726),h=n(96347),y=n(14266),m=n(77729),v=n(37327),g=n(55992),A=n(78734),w=n(91162),x=n(76992),_=n(24715),k=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},I=new _.Logger("wallet/5.7.0"),S=function(e){(0,s.Z)(n,e);var t=(0,c.Z)(n);function n(e,r){var i,s;if((0,a.Z)(this,n),i=t.call(this),null!=(s=e)&&(0,l.isHexString)(s.privateKey,32)&&null!=s.address){var c=new g.SigningKey(e.privateKey);if((0,m.defineReadOnly)((0,o.Z)(i),"_signingKey",(function(){return c})),(0,m.defineReadOnly)((0,o.Z)(i),"address",(0,x.computeAddress)(i.publicKey)),i.address!==(0,u.getAddress)(e.address)&&I.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){var t=e.mnemonic;return t&&t.phrase}(e)){var f=e.mnemonic;(0,m.defineReadOnly)((0,o.Z)(i),"_mnemonic",(function(){return{phrase:f.phrase,path:f.path||h.defaultPath,locale:f.locale||"en"}}));var b=i.mnemonic,p=h.HDNode.fromMnemonic(b.phrase,null,b.locale).derivePath(b.path);(0,x.computeAddress)(p.privateKey)!==i.address&&I.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,m.defineReadOnly)((0,o.Z)(i),"_mnemonic",(function(){return null}))}else{if(g.SigningKey.isSigningKey(e))"secp256k1"!==e.curve&&I.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,m.defineReadOnly)((0,o.Z)(i),"_signingKey",(function(){return e}));else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);var y=new g.SigningKey(e);(0,m.defineReadOnly)((0,o.Z)(i),"_signingKey",(function(){return y}))}(0,m.defineReadOnly)((0,o.Z)(i),"_mnemonic",(function(){return null})),(0,m.defineReadOnly)((0,o.Z)(i),"address",(0,x.computeAddress)(i.publicKey))}return r&&!d.zt.isProvider(r)&&I.throwArgumentError("invalid provider","provider",r),(0,m.defineReadOnly)((0,o.Z)(i),"provider",r||null),i}return(0,i.Z)(n,[{key:"mnemonic",get:function(){return this._mnemonic()}},{key:"privateKey",get:function(){return this._signingKey().privateKey}},{key:"publicKey",get:function(){return this._signingKey().publicKey}},{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"connect",value:function(e){return new n(this,e)}},{key:"signTransaction",value:function(e){var t=this;return(0,m.resolveProperties)(e).then((function(n){null!=n.from&&((0,u.getAddress)(n.from)!==t.address&&I.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete n.from);var r=t._signingKey().signDigest((0,y.keccak256)((0,x.serialize)(n)));return(0,x.serialize)(n,r)}))}},{key:"signMessage",value:function(e){return k(this,void 0,void 0,(0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,l.joinSignature)(this._signingKey().signDigest((0,b.r)(e))));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,n){return k(this,void 0,void 0,(0,r.Z)().mark((function a(){var i,o=this;return(0,r.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,p.E.resolveNames(e,t,n,(function(e){return null==o.provider&&I.throwError("cannot resolve ENS names without a provider",_.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),o.provider.resolveName(e)}));case 2:return i=r.sent,r.abrupt("return",(0,l.joinSignature)(this._signingKey().signDigest(p.E.hash(i.domain,t,i.value))));case 4:case"end":return r.stop()}}),a,this)})))}},{key:"encrypt",value:function(e,t,n){if("function"!=typeof t||n||(n=t,t={}),n&&"function"!=typeof n)throw new Error("invalid callback");return t||(t={}),(0,A.HI)(this,e,t,n)}}],[{key:"createRandom",value:function(e){var t=(0,v.O)(16);e||(e={}),e.extraEntropy&&(t=(0,l.arrayify)((0,l.hexDataSlice)((0,y.keccak256)((0,l.concat)([t,e.extraEntropy])),0,16)));var r=(0,h.entropyToMnemonic)(t,e.locale);return n.fromMnemonic(r,e.path,e.locale)}},{key:"fromEncryptedJson",value:function(e,t,r){return(0,w.decryptJsonWallet)(e,t,r).then((function(e){return new n(e)}))}},{key:"fromEncryptedJsonSync",value:function(e,t){return new n((0,w.decryptJsonWalletSync)(e,t))}},{key:"fromMnemonic",value:function(e,t,r){return t||(t=h.defaultPath),new n(h.HDNode.fromMnemonic(e,null,r).derivePath(t))}}]),n}(f.E);function E(e,t){return(0,x.recoverAddress)((0,b.r)(e),t)}function C(e,t,n,r){return(0,x.recoverAddress)(p.E.hash(e,t,n),r)}},52732:function(e,t,n){"use strict";n.r(t),n.d(t,{_fetchData:function(){return h},fetchJson:function(){return y},poll:function(){return m}});var r=n(59754),a=n(50115),i=n(61974),o=n(77729),s=n(21487),c=n(24715),u=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))};function d(e,t){return u(this,void 0,void 0,(0,r.Z)().mark((function n(){var a,o,s,c,u;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==t&&(t={}),a={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0},!0!==t.skipFetchSetup&&(a.mode="cors",a.cache="no-cache",a.credentials="same-origin",a.redirect="follow",a.referrer="client"),null!=t.fetchOptions&&((o=t.fetchOptions).mode&&(a.mode=o.mode),o.cache&&(a.cache=o.cache),o.credentials&&(a.credentials=o.credentials),o.redirect&&(a.redirect=o.redirect),o.referrer&&(a.referrer=o.referrer)),n.next=7,fetch(e,a);case 7:return s=n.sent,n.next=10,s.arrayBuffer();case 10:return c=n.sent,u={},s.headers.forEach?s.headers.forEach((function(e,t){u[t.toLowerCase()]=e})):s.headers.keys().forEach((function(e){u[e.toLowerCase()]=s.headers.get(e)})),n.abrupt("return",{headers:u,statusCode:s.status,statusMessage:s.statusText,body:(0,i.arrayify)(new Uint8Array(c))});case 14:case"end":return n.stop()}}),n)})))}var f=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},l=new c.Logger("web/5.7.1");function b(e){return new Promise((function(t){setTimeout(t,e)}))}function p(e,t){if(null==e)return null;if("string"==typeof e)return e;if((0,i.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,s.ZN)(e)}catch(e){}return(0,i.hexlify)(e)}return e}function h(e,t,n){var i="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;l.assertArgument(i>0&&i%1==0,"invalid connection throttle limit","connection.throttleLimit",i);var u="object"==typeof e?e.throttleCallback:null,h="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;l.assertArgument(h>0&&h%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",h);var y="object"==typeof e&&!!e.errorPassThrough,m={},v=null,g={method:"GET"},A=!1,w=12e4;if("string"==typeof e)v=e;else if("object"==typeof e){if(null!=e&&null!=e.url||l.throwArgumentError("missing URL","connection.url",e),v=e.url,"number"==typeof e.timeout&&e.timeout>0&&(w=e.timeout),e.headers)for(var x in e.headers)m[x.toLowerCase()]={key:x,value:String(e.headers[x])},["if-none-match","if-modified-since"].indexOf(x.toLowerCase())>=0&&(A=!0);if(g.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==v.substring(0,6)&&!0!==e.allowInsecureAuthentication&&l.throwError("basic authentication requires a secure https url",c.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:v,user:e.user,password:"[REDACTED]"});var _=e.user+":"+e.password;m.authorization={key:"Authorization",value:"Basic "+(0,a.c)((0,s.Y0)(_))}}null!=e.skipFetchSetup&&(g.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(g.fetchOptions=(0,o.shallowCopy)(e.fetchOptions))}var k,I=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),S=v?v.match(I):null;if(S)try{var E={statusCode:200,statusMessage:"OK",headers:{"content-type":S[1]||"text/plain"},body:S[2]?(0,a.J)(S[3]):(k=S[3],(0,s.Y0)(k.replace(/%([0-9a-f][0-9a-f])/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}))))},C=E.body;return n&&(C=n(E.body,E)),Promise.resolve(C)}catch(e){l.throwError("processing response error",c.Logger.errors.SERVER_ERROR,{body:p(S[1],S[2]),error:e,requestBody:null,requestMethod:"GET",url:v})}t&&(g.method="POST",g.body=t,null==m["content-type"]&&(m["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==m["content-length"]&&(m["content-length"]={key:"Content-Length",value:String(t.length)}));var T={};Object.keys(m).forEach((function(e){var t=m[e];T[t.key]=t.value})),g.headers=T;var O,P=(O=null,{promise:new Promise((function(e,t){w&&(O=setTimeout((function(){null!=O&&(O=null,t(l.makeError("timeout",c.Logger.errors.TIMEOUT,{requestBody:p(g.body,T["content-type"]),requestMethod:g.method,timeout:w,url:v})))}),w))})),cancel:function(){null!=O&&(clearTimeout(O),O=null)}}),M=function(){return f(this,void 0,void 0,(0,r.Z)().mark((function e(){var t,a,o,s,f,m,w,x,_,k;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t=300)&&(P.cancel(),l.throwError("bad response",c.Logger.errors.SERVER_ERROR,{status:a.statusCode,headers:a.headers,body:p(w,a.headers?a.headers["content-type"]:null),requestBody:p(g.body,T["content-type"]),requestMethod:g.method,url:v})),!n){e.next=60;break}return e.prev=37,e.next=40,n(w,a);case 40:return x=e.sent,P.cancel(),e.abrupt("return",x);case 45:if(e.prev=45,e.t1=e.catch(37),!(e.t1.throttleRetry&&ts)return void(o()&&r(new Error("retry limit reached")));var u=t.interval*parseInt(String(Math.random()*Math.pow(2,c)));ut.ceiling&&(u=t.ceiling),setTimeout(a,u)}return null}),(function(e){o()&&r(e)}))}()}))}},89102:function(e,t,n){"use strict";n.d(t,{D:function(){return c}});var r=n(91610),a=n(31945),i=n(82901),o=n(77729),s=new(n(24715).Logger)("wordlists/5.7.0"),c=function(){function e(t){(0,r.Z)(this,e),s.checkAbstract(this instanceof e?this.constructor:void 0,e),(0,o.defineReadOnly)(this,"locale",t)}return(0,a.Z)(e,[{key:"split",value:function(e){return e.toLowerCase().split(/ +/g)}},{key:"join",value:function(e){return e.join(" ")}}],[{key:"check",value:function(e){for(var t=[],n=0;n<2048;n++){var r=e.getWord(n);if(n!==e.getWordIndex(r))return"0x";t.push(r)}return(0,i.id)(t.join("\n")+"\n")}},{key:"register",value:function(e,t){t||(t=e.locale)}}]),e}()},71855:function(e,t,n){"use strict";n.d(t,{E:function(){return f}});var r=n(91610),a=n(31945),i=n(61968),o=n(6058),s=n(89102),c=null;function u(e){if(null==c&&(c="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==s.D.check(e)))throw c=null,new Error("BIP39 Wordlist for en (English) FAILED")}var d=new(function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,"en")}return(0,a.Z)(n,[{key:"getWord",value:function(e){return u(this),c[e]}},{key:"getWordIndex",value:function(e){return u(this),c.indexOf(e)}}]),n}(s.D));s.D.register(d);var f={en:d}},20206:function(e){var t,n;e.exports=(t={418:function(e,t){!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={splitValues:!1});var n,a=this;this.headersMap={},e&&("undefined"!=typeof Headers&&e instanceof Headers?r.getHeaderKeys(e).forEach((function(n){r.getHeaderValues(e,n).forEach((function(e){t.splitValues?a.append(n,r.splitHeaderValue(e)):a.append(n,e)}))})):"object"==typeof(n=e)&&"object"==typeof n.headersMap&&"function"==typeof n.forEach?e.forEach((function(e,t){a.append(e,t)})):"undefined"!=typeof Map&&e instanceof Map?e.forEach((function(e,t){a.append(t,e)})):"string"==typeof e?this.appendFromString(e):"object"==typeof e&&Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];Array.isArray(n)?n.forEach((function(e){a.append(t,e)})):a.append(t,n)})))}return e.prototype.appendFromString=function(e){for(var t=e.split("\r\n"),n=0;n0){var i=r.substring(0,a).trim(),o=r.substring(a+1).trim();this.append(i,o)}}},e.prototype.delete=function(e,t){var n=r.normalizeName(e);if(void 0===t)delete this.headersMap[n];else{var a=this.headersMap[n];if(a){var i=a.indexOf(t);i>=0&&a.splice(i,1),0===a.length&&delete this.headersMap[n]}}},e.prototype.append=function(e,t){var n=this,a=r.normalizeName(e);Array.isArray(this.headersMap[a])||(this.headersMap[a]=[]),Array.isArray(t)?t.forEach((function(e){n.headersMap[a].push(r.normalizeValue(e))})):this.headersMap[a].push(r.normalizeValue(t))},e.prototype.set=function(e,t){var n=r.normalizeName(e);if(Array.isArray(t)){var a=[];t.forEach((function(e){a.push(r.normalizeValue(e))})),this.headersMap[n]=a}else this.headersMap[n]=[r.normalizeValue(t)]},e.prototype.has=function(e,t){var n=this.headersMap[r.normalizeName(e)];if(!Array.isArray(n))return!1;if(void 0!==t){var a=r.normalizeValue(t);return n.indexOf(a)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[r.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach((function(n){e(n,t.headersMap[n])}),this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach((function(t,n){n.forEach((function(n){e.append(t,n)}))})),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.BrowserHeaders=r.BrowserHeaders},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var n=e[Symbol.iterator](),r=n.next();!r.done;)t(r.value[0]),r=n.next()},t.iterateHeadersKeys=function(e,t){for(var n=e.keys(),r=n.next();!r.done;)t(r.value),r=n.next()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var n=e;if(n instanceof Headers&&n.getAll)return n.getAll(t);var r=n.get(t);return r&&"string"==typeof r?[r]:r},t.getHeaderKeys=function(e){var t=e,n={},a=[];return t.keys?r.iterateHeadersKeys(t,(function(e){n[e]||(n[e]=!0,a.push(e))})):t.forEach?t.forEach((function(e,t){n[t]||(n[t]=!0,a.push(t))})):r.iterateHeaders(t,(function(e){var t=e[0];n[t]||(n[t]=!0,a.push(t))})),a},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach((function(e){e.split(",").forEach((function(e){t.push(e)}))})),t}}]))},617:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkParser=t.ChunkType=t.encodeASCII=t.decodeASCII=void 0;var r,a=n(65);function i(e){return 9===(t=e)||10===t||13===t||e>=32&&e<=126;var t}function o(e){for(var t=0;t!==e.length;++t)if(!i(e[t]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(e))}function s(e){return 128==(128&e.getUint8(0))}function c(e){return e.getUint32(1,!1)}function u(e,t,n){return e.byteLength-t>=n}function d(e,t,n){if(e.slice)return e.slice(t,n);var r=e.length;void 0!==n&&(r=n);for(var a=new Uint8Array(r-t),i=0,o=t;o=0?n:i.httpStatusToCode(t);this.props.debug&&o.debug("onHeaders.code",r);var a=e.get("grpc-message")||[];if(this.props.debug&&o.debug("onHeaders.gRPCMessage",a),this.rawOnHeaders(e),r!==i.Code.OK){var s=this.decodeGRPCStatus(a[0]);this.rawOnError(r,s,e)}}},e.prototype.onTransportChunk=function(e){var t=this;if(this.closed)this.props.debug&&o.debug("grpc.onChunk received after request was closed - ignoring");else{var n=[];try{n=this.parser.parse(e)}catch(e){return this.props.debug&&o.debug("onChunk.parsing error",e,e.message),void this.rawOnError(i.Code.Internal,"parsing error: "+e.message)}n.forEach((function(e){if(e.chunkType===a.ChunkType.MESSAGE){var n=t.methodDefinition.responseType.deserializeBinary(e.data);t.rawOnMessage(n)}else e.chunkType===a.ChunkType.TRAILERS&&(t.responseHeaders?(t.responseTrailers=new r.Metadata(e.trailers),t.props.debug&&o.debug("onChunk.trailers",t.responseTrailers)):(t.responseHeaders=new r.Metadata(e.trailers),t.rawOnHeaders(t.responseHeaders)))}))}},e.prototype.onTransportEnd=function(){if(this.props.debug&&o.debug("grpc.onEnd"),this.closed)this.props.debug&&o.debug("grpc.onEnd received after request was closed - ignoring");else if(void 0!==this.responseTrailers){var e=d(this.responseTrailers);if(null!==e){var t=this.responseTrailers.get("grpc-message"),n=this.decodeGRPCStatus(t[0]);this.rawOnEnd(e,n,this.responseTrailers)}else this.rawOnError(i.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(void 0===this.responseHeaders)return void this.rawOnError(i.Code.Unknown,"Response closed without headers");var r=d(this.responseHeaders),a=this.responseHeaders.get("grpc-message");if(this.props.debug&&o.debug("grpc.headers only response ",r,a),null===r)return void this.rawOnEnd(i.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var s=this.decodeGRPCStatus(a[0]);this.rawOnEnd(r,s,this.responseHeaders)}},e.prototype.decodeGRPCStatus=function(e){if(!e)return"";try{return decodeURIComponent(e)}catch(t){return e}},e.prototype.rawOnEnd=function(e,t,n){var r=this;this.props.debug&&o.debug("rawOnEnd",e,t,n),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(a){if(!r.closed)try{a(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnHeaders=function(e){this.props.debug&&o.debug("rawOnHeaders",e),this.completed||this.onHeadersCallbacks.forEach((function(t){try{t(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.rawOnError=function(e,t,n){var a=this;void 0===n&&(n=new r.Metadata),this.props.debug&&o.debug("rawOnError",e,t),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(r){if(!a.closed)try{r(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnMessage=function(e){var t=this;this.props.debug&&o.debug("rawOnMessage",e.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach((function(n){if(!t.closed)try{n(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.onHeaders=function(e){this.onHeadersCallbacks.push(e)},e.prototype.onMessage=function(e){this.onMessageCallbacks.push(e)},e.prototype.onEnd=function(e){this.onEndCallbacks.push(e)},e.prototype.start=function(e){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var t=new r.Metadata(e||{});t.set("content-type","application/grpc-web+proto"),t.set("x-grpc-web","1"),this.transport.start(t)},e.prototype.send=function(e){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var t=c.frameRequest(e);this.transport.sendMessage(t)},e.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},e.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&o.debug("request.abort aborting request"),this.transport.cancel()},e}();function d(e){var t=e.get("grpc-status")||[];if(t.length>0)try{var n=t[0];return parseInt(n,10)}catch(e){return null}return null}},346:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debug=void 0,t.debug=function(){for(var e=[],t=0;t=55296&&n<=56319){var r=e.charCodeAt(t+1);r>=56320&&r<=57343&&(n=65536+(n-55296<<10)+(r-56320))}return n}function f(e){for(var t=new Uint8Array(e.length),n=0,r=0;rt;n--)o.unshift(e[n]);throw r}}}function c(){for(var e=[],t=0;t=55296&&n<=56319){var r=e.charCodeAt(t+1);r>=56320&&r<=57343&&(n=65536+(n-55296<<10)+(r-56320))}return n}var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.configureXhr=function(){this.options.debug&&c("ArrayBufferXHR.configureXhr: setting responseType to 'arraybuffer'"),this.xhr.responseType="arraybuffer"},t.prototype.onProgressEvent=function(){},t.prototype.onLoadEvent=function(){var e=this,t=this.xhr.response;this.options.debug&&c("ArrayBufferXHR.onLoadEvent: ",new Uint8Array(t)),u((function(){e.options.onChunk(new Uint8Array(t),!0)})),u((function(){e.options.onEnd()}))},t}(function(){function e(e,t){this.options=e,this.init=t}return e.prototype.onProgressEvent=function(){var e=this;this.options.debug&&c("XHR.onProgressEvent.length: ",this.xhr.response.length);var t=this.xhr.response.substr(this.index);this.index=this.xhr.response.length;var n=function(e){for(var t=new Uint8Array(e.length),n=0,r=0;r0){var i=r.substring(0,a).trim(),o=r.substring(a+1).trim();this.append(i,o)}}},e.prototype.delete=function(e,t){var n=r.normalizeName(e);if(void 0===t)delete this.headersMap[n];else{var a=this.headersMap[n];if(a){var i=a.indexOf(t);i>=0&&a.splice(i,1),0===a.length&&delete this.headersMap[n]}}},e.prototype.append=function(e,t){var n=this,a=r.normalizeName(e);Array.isArray(this.headersMap[a])||(this.headersMap[a]=[]),Array.isArray(t)?t.forEach((function(e){n.headersMap[a].push(r.normalizeValue(e))})):this.headersMap[a].push(r.normalizeValue(t))},e.prototype.set=function(e,t){var n=r.normalizeName(e);if(Array.isArray(t)){var a=[];t.forEach((function(e){a.push(r.normalizeValue(e))})),this.headersMap[n]=a}else this.headersMap[n]=[r.normalizeValue(t)]},e.prototype.has=function(e,t){var n=this.headersMap[r.normalizeName(e)];if(!Array.isArray(n))return!1;if(void 0!==t){var a=r.normalizeValue(t);return n.indexOf(a)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[r.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach((function(n){e(n,t.headersMap[n])}),this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach((function(t,n){n.forEach((function(n){e.append(t,n)}))})),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.BrowserHeaders=r.BrowserHeaders},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var n=e[Symbol.iterator](),r=n.next();!r.done;)t(r.value[0]),r=n.next()},t.iterateHeadersKeys=function(e,t){for(var n=e.keys(),r=n.next();!r.done;)t(r.value),r=n.next()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var n=e;if(n instanceof Headers&&n.getAll)return n.getAll(t);var r=n.get(t);return r&&"string"==typeof r?[r]:r},t.getHeaderKeys=function(e){var t=e,n={},a=[];return t.keys?r.iterateHeadersKeys(t,(function(e){n[e]||(n[e]=!0,a.push(e))})):t.forEach?t.forEach((function(e,t){n[t]||(n[t]=!0,a.push(t))})):r.iterateHeaders(t,(function(e){var t=e[0];n[t]||(n[t]=!0,a.push(t))})),a},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach((function(e){e.split(",").forEach((function(e){t.push(e)}))})),t}}]))},617:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkParser=t.ChunkType=t.encodeASCII=t.decodeASCII=void 0;var r,a=n(65);function i(e){return 9===(t=e)||10===t||13===t||e>=32&&e<=126;var t}function o(e){for(var t=0;t!==e.length;++t)if(!i(e[t]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(e))}function s(e){return 128==(128&e.getUint8(0))}function c(e){return e.getUint32(1,!1)}function u(e,t,n){return e.byteLength-t>=n}function d(e,t,n){if(e.slice)return e.slice(t,n);var r=e.length;void 0!==n&&(r=n);for(var a=new Uint8Array(r-t),i=0,o=t;o=0?n:i.httpStatusToCode(t);this.props.debug&&o.debug("onHeaders.code",r);var a=e.get("grpc-message")||[];if(this.props.debug&&o.debug("onHeaders.gRPCMessage",a),this.rawOnHeaders(e),r!==i.Code.OK){var s=this.decodeGRPCStatus(a[0]);this.rawOnError(r,s,e)}}},e.prototype.onTransportChunk=function(e){var t=this;if(this.closed)this.props.debug&&o.debug("grpc.onChunk received after request was closed - ignoring");else{var n=[];try{n=this.parser.parse(e)}catch(e){return this.props.debug&&o.debug("onChunk.parsing error",e,e.message),void this.rawOnError(i.Code.Internal,"parsing error: "+e.message)}n.forEach((function(e){if(e.chunkType===a.ChunkType.MESSAGE){var n=t.methodDefinition.responseType.deserializeBinary(e.data);t.rawOnMessage(n)}else e.chunkType===a.ChunkType.TRAILERS&&(t.responseHeaders?(t.responseTrailers=new r.Metadata(e.trailers),t.props.debug&&o.debug("onChunk.trailers",t.responseTrailers)):(t.responseHeaders=new r.Metadata(e.trailers),t.rawOnHeaders(t.responseHeaders)))}))}},e.prototype.onTransportEnd=function(){if(this.props.debug&&o.debug("grpc.onEnd"),this.closed)this.props.debug&&o.debug("grpc.onEnd received after request was closed - ignoring");else if(void 0!==this.responseTrailers){var e=d(this.responseTrailers);if(null!==e){var t=this.responseTrailers.get("grpc-message"),n=this.decodeGRPCStatus(t[0]);this.rawOnEnd(e,n,this.responseTrailers)}else this.rawOnError(i.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(void 0===this.responseHeaders)return void this.rawOnError(i.Code.Unknown,"Response closed without headers");var r=d(this.responseHeaders),a=this.responseHeaders.get("grpc-message");if(this.props.debug&&o.debug("grpc.headers only response ",r,a),null===r)return void this.rawOnEnd(i.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var s=this.decodeGRPCStatus(a[0]);this.rawOnEnd(r,s,this.responseHeaders)}},e.prototype.decodeGRPCStatus=function(e){if(!e)return"";try{return decodeURIComponent(e)}catch(t){return e}},e.prototype.rawOnEnd=function(e,t,n){var r=this;this.props.debug&&o.debug("rawOnEnd",e,t,n),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(a){if(!r.closed)try{a(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnHeaders=function(e){this.props.debug&&o.debug("rawOnHeaders",e),this.completed||this.onHeadersCallbacks.forEach((function(t){try{t(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.rawOnError=function(e,t,n){var a=this;void 0===n&&(n=new r.Metadata),this.props.debug&&o.debug("rawOnError",e,t),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(r){if(!a.closed)try{r(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnMessage=function(e){var t=this;this.props.debug&&o.debug("rawOnMessage",e.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach((function(n){if(!t.closed)try{n(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.onHeaders=function(e){this.onHeadersCallbacks.push(e)},e.prototype.onMessage=function(e){this.onMessageCallbacks.push(e)},e.prototype.onEnd=function(e){this.onEndCallbacks.push(e)},e.prototype.start=function(e){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var t=new r.Metadata(e||{});t.set("content-type","application/grpc-web+proto"),t.set("x-grpc-web","1"),this.transport.start(t)},e.prototype.send=function(e){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var t=c.frameRequest(e);this.transport.sendMessage(t)},e.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},e.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&o.debug("request.abort aborting request"),this.transport.cancel()},e}();function d(e){var t=e.get("grpc-status")||[];if(t.length>0)try{var n=t[0];return parseInt(n,10)}catch(e){return null}return null}},346:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debug=void 0,t.debug=function(){for(var e=[],t=0;t=55296&&n<=56319){var r=e.charCodeAt(t+1);r>=56320&&r<=57343&&(n=65536+(n-55296<<10)+(r-56320))}return n}function f(e){for(var t=new Uint8Array(e.length),n=0,r=0;r=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){l.headers[e]=a.merge(u)})),e.exports=l},7395:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7619:function(e){e.exports={version:"0.27.2"}},86699:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},42530:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},43295:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},5945:function(e,t,n){"use strict";var r=n(5886).Buffer,a=n(70961);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":a.isDate(e)?e.toISOString():a.isArrayBuffer(e)||a.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return function e(r,o){if(a.isPlainObject(r)||a.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+o);n.push(r),a.forEach(r,(function(n,r){if(!a.isUndefined(n)){var s,c=o?o+"."+r:r;if(n&&!o&&"object"==typeof n)if(a.endsWith(r,"{}"))n=JSON.stringify(n);else if(a.endsWith(r,"[]")&&(s=a.toArray(n)))return void s.forEach((function(e){!a.isUndefined(e)&&t.append(c,i(e))}));e(n,c)}})),n.pop()}else t.append(o,i(r))}(e),t}},17930:function(e,t,n){"use strict";var r=n(7619).version,a=n(91530),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new a(i(r," has been removed"+(t?" in "+t:"")),a.ERR_DEPRECATED);return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new a("options must be an object",a.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var c=e[o],u=void 0===c||s(c,o,e);if(!0!==u)throw new a("option "+o+" must be "+u,a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new a("Unknown option "+o,a.ERR_BAD_OPTION)}},validators:i}},70961:function(e,t,n){"use strict";var r,a=n(86699),i=Object.prototype.toString,o=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function c(e){return Array.isArray(e)}function u(e){return void 0===e}var d=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function l(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var b=s("Date"),p=s("File"),h=s("Blob"),y=s("FileList");function m(e){return"[object Function]"===i.call(e)}var v=s("URLSearchParams");function g(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var n=0,r=e.length;n0;)o[i=r[a]]||(t[i]=e[i],o[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:y}},97204:function(e,t,n){n(35975)},34898:function(e,t,n){"use strict";var r=n(80401),a=n(26972),i=n(8185),o=n(67080),s=n(48682),c=n(37886),u=n(76079),d=n(51929);e.exports=function(e){return new Promise((function(t,n){var f=e.data,l=e.headers,b=e.responseType;r.isFormData(f)&&delete l["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";l.Authorization="Basic "+btoa(h+":"+y)}var m=s(e.baseURL,e.url);function v(){if(p){var r="getAllResponseHeaders"in p?c(p.getAllResponseHeaders()):null,i={data:b&&"text"!==b&&"json"!==b?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p};a(t,n,i),p=null}}if(p.open(e.method.toUpperCase(),o(m,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=v:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(v)},p.onabort=function(){p&&(n(d("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(d("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(d(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=(e.withCredentials||u(m))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;g&&(l[e.xsrfHeaderName]=g)}"setRequestHeader"in p&&r.forEach(l,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete l[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),b&&"json"!==b&&(p.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),f||(f=null),p.send(f)}))}},35975:function(e,t,n){"use strict";var r=n(80401),a=n(88219),i=n(6024),o=n(80431);function s(e){var t=new i(e),n=a(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var c=s(n(43259));c.Axios=i,c.create=function(e){return s(o(c.defaults,e))},c.Cancel=n(24468),c.CancelToken=n(54975),c.isCancel=n(44899),c.all=function(e){return Promise.all(e)},c.spread=n(5634),c.isAxiosError=n(26143),e.exports=c,e.exports.default=c},24468:function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},54975:function(e,t,n){"use strict";var r=n(24468);function a(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}a.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},a.source=function(){var e;return{token:new a((function(t){e=t})),cancel:e}},e.exports=a},44899:function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},6024:function(e,t,n){"use strict";var r=n(80401),a=n(67080),i=n(94064),o=n(71266),s=n(80431),c=n(30207),u=c.validators;function d(e){this.defaults=e,this.interceptors={request:new i,response:new i}}d.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&c.assertOptions(t,{silentJSONParsing:u.transitional(u.boolean,"1.0.0"),forcedJSONParsing:u.transitional(u.boolean,"1.0.0"),clarifyTimeoutError:u.transitional(u.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var a,i=[];if(this.interceptors.response.forEach((function(e){i.push(e.fulfilled,e.rejected)})),!r){var d=[o,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(i),a=Promise.resolve(e);d.length;)a=a.then(d.shift(),d.shift());return a}for(var f=e;n.length;){var l=n.shift(),b=n.shift();try{f=l(f)}catch(e){b(e);break}}try{a=o(f)}catch(e){return Promise.reject(e)}for(;i.length;)a=a.then(i.shift(),i.shift());return a},d.prototype.getUri=function(e){return e=s(this.defaults,e),a(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){d.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){d.prototype[e]=function(t,n,r){return this.request(s(r||{},{method:e,url:t,data:n}))}})),e.exports=d},94064:function(e,t,n){"use strict";var r=n(80401);function a(){this.handlers=[]}a.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},a.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},a.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=a},48682:function(e,t,n){"use strict";var r=n(72454),a=n(22714);e.exports=function(e,t){return e&&!r(t)?a(e,t):t}},51929:function(e,t,n){"use strict";var r=n(96839);e.exports=function(e,t,n,a,i){var o=new Error(e);return r(o,t,n,a,i)}},71266:function(e,t,n){"use strict";var r=n(80401),a=n(58805),i=n(44899),o=n(43259);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=a.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||o.adapter)(e).then((function(t){return s(e),t.data=a.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(s(e),t&&t.response&&(t.response.data=a.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},96839:function(e){"use strict";e.exports=function(e,t,n,r,a){return e.config=t,n&&(e.code=n),e.request=r,e.response=a,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},80431:function(e,t,n){"use strict";var r=n(80401);e.exports=function(e,t){t=t||{};var n={},a=["url","method","data"],i=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function c(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function u(a){r.isUndefined(t[a])?r.isUndefined(e[a])||(n[a]=c(void 0,e[a])):n[a]=c(e[a],t[a])}r.forEach(a,(function(e){r.isUndefined(t[e])||(n[e]=c(void 0,t[e]))})),r.forEach(i,u),r.forEach(o,(function(a){r.isUndefined(t[a])?r.isUndefined(e[a])||(n[a]=c(void 0,e[a])):n[a]=c(void 0,t[a])})),r.forEach(s,(function(r){r in t?n[r]=c(e[r],t[r]):r in e&&(n[r]=c(void 0,e[r]))}));var d=a.concat(i).concat(o).concat(s),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===d.indexOf(e)}));return r.forEach(f,u),n}},26972:function(e,t,n){"use strict";var r=n(51929);e.exports=function(e,t,n){var a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},58805:function(e,t,n){"use strict";var r=n(80401),a=n(43259);e.exports=function(e,t,n){var i=this||a;return r.forEach(n,(function(n){e=n.call(i,e,t)})),e}},43259:function(e,t,n){"use strict";var r=n(32375),a=n(80401),i=n(13320),o=n(96839),s={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!a.isUndefined(e)&&a.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,d={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==r&&"[object process]"===Object.prototype.toString.call(r))&&(u=n(34898)),u),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),a.isFormData(e)||a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e)?e:a.isArrayBufferView(e)?e.buffer:a.isURLSearchParams(e)?(c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):a.isObject(e)||t&&"application/json"===t["Content-Type"]?(c(t,"application/json"),function(e,t,n){if(a.isString(e))try{return(0,JSON.parse)(e),a.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&a.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw o(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){d.headers[e]=a.merge(s)})),e.exports=d},88219:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},5634:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},30207:function(e,t,n){"use strict";var r=n(46433),a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},o=r.version.split(".");function s(e,t){for(var n=t?t.split("."):o,r=e.split("."),a=0;a<3;a++){if(n[a]>r[a])return!0;if(n[a]0;){var i=r[a],o=t[i];if(o){var s=e[i],c=void 0===s||o(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:a}},80401:function(e,t,n){"use strict";var r=n(88219),a=Object.prototype.toString;function i(e){return"[object Array]"===a.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===a.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){d.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){d.headers[e]=a.merge(s)})),e.exports=d},27952:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},77557:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},98255:function(e,t,n){"use strict";var r=n(20839),a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={},o=r.version.split(".");function s(e,t){for(var n=t?t.split("."):o,r=e.split("."),a=0;a<3;a++){if(n[a]>r[a])return!0;if(n[a]0;){var i=r[a],o=t[i];if(o){var s=e[i],c=void 0===s||o(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:a}},43094:function(e,t,n){"use strict";var r=n(27952),a=Object.prototype.toString;function i(e){return"[object Array]"===a.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===a.call(e)}function d(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n0&&(c=i-s-16),o.padding="0".repeat(c),d({publicKey:t,data:JSON.stringify(o),version:a})},t.decrypt=f,t.decryptSafely=function(e){var t=e.encryptedData,n=e.privateKey;if(u.isNullish(t))throw new Error("Missing encryptedData parameter");if(u.isNullish(n))throw new Error("Missing privateKey parameter");return JSON.parse(f({encryptedData:t,privateKey:n})).data},t.getEncryptionPublicKey=function(e){var t=l(e),n=s.box.keyPair.fromSecretKey(t).publicKey;return c.encodeBase64(n)}},76734:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.concatSig=void 0,a(n(30959),t),a(n(27994),t),a(n(85600),t);var i=n(28567);Object.defineProperty(t,"concatSig",{enumerable:!0,get:function(){return i.concatSig}}),Object.defineProperty(t,"normalize",{enumerable:!0,get:function(){return i.normalize}})},30959:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractPublicKey=t.recoverPersonalSignature=t.personalSign=void 0;var r=n(73853),a=n(28567);function i(e,t){var n=r.hashPersonalMessage(a.legacyToBuffer(e));return a.recoverPublicKey(n,t)}t.personalSign=function(e){var t=e.privateKey,n=e.data;if(a.isNullish(n))throw new Error("Missing data parameter");if(a.isNullish(t))throw new Error("Missing privateKey parameter");var i=a.legacyToBuffer(n),o=r.hashPersonalMessage(i),s=r.ecsign(o,t);return a.concatSig(r.toBuffer(s.v),s.r,s.s)},t.recoverPersonalSignature=function(e){var t=e.data,n=e.signature;if(a.isNullish(t))throw new Error("Missing data parameter");if(a.isNullish(n))throw new Error("Missing signature parameter");var o=i(t,n),s=r.publicToAddress(o);return r.bufferToHex(s)},t.extractPublicKey=function(e){var t=e.data,n=e.signature;if(a.isNullish(t))throw new Error("Missing data parameter");if(a.isNullish(n))throw new Error("Missing signature parameter");var r=i(t,n);return"0x".concat(r.toString("hex"))}},27994:function(e,t,n){"use strict";var r=n(5886).Buffer,a=n(69453).default,i=n(33482).default,o=n(15771).default;Object.defineProperty(t,"__esModule",{value:!0}),t.recoverTypedSignature=t.signTypedData=t.typedSignatureHash=t.TypedDataUtils=t.TYPED_MESSAGE_SCHEMA=t.SignTypedDataVersion=void 0;var s,c=n(73853),u=n(27287),d=n(28567);function f(e,t){if(!Object.keys(s).includes(e))throw new Error("Invalid version: '".concat(e,"'"));if(t&&!t.includes(e))throw new Error("SignTypedDataVersion not allowed: '".concat(e,"'. Allowed versions are: ").concat(t.join(", ")))}function l(e,t,n,a,i){if(f(i,[s.V3,s.V4]),void 0!==e[n])return["bytes32",i===s.V4&&null==a?"0x0000000000000000000000000000000000000000000000000000000000000000":c.keccak(b(n,a,e,i))];if(void 0===a)throw new Error("missing value for field ".concat(t," of type ").concat(n));if("bytes"===n)return["bytes32",c.keccak(a)];if("string"===n)return"string"==typeof a&&(a=r.from(a,"utf8")),["bytes32",c.keccak(a)];if(n.lastIndexOf("]")===n.length-1){if(i===s.V3)throw new Error("Arrays are unimplemented in encodeData; use V4 extension");var d=n.slice(0,n.lastIndexOf("[")),p=a.map((function(n){return l(e,t,d,n,i)}));return["bytes32",c.keccak(u.rawEncode(p.map((function(e){return o(e,1)[0]})),p.map((function(e){return o(e,2)[1]}))))]}return[n,a]}function b(e,t,n,r){f(r,[s.V3,s.V4]);var a,c=["bytes32"],d=[m(e,n)],b=i(n[e]);try{for(b.s();!(a=b.n()).done;){var p=a.value;if(r!==s.V3||void 0!==t[p.name]){var h=l(n,p.name,p.type,t[p.name],r),y=o(h,2),v=y[0],g=y[1];c.push(v),d.push(g)}}}catch(e){b.e(e)}finally{b.f()}return u.rawEncode(c,d)}function p(e,t){var n="",r=h(e,t);r.delete(e);var o,s=[e].concat(a(Array.from(r).sort())),c=i(s);try{for(c.s();!(o=c.n()).done;){var u=o.value;if(!t[u])throw new Error("No type definition specified: ".concat(u));n+="".concat(u,"(").concat(t[u].map((function(e){var t=e.name,n=e.type;return"".concat(n," ").concat(t)})).join(","),")")}}catch(e){c.e(e)}finally{c.f()}return n}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set,r=e.match(/^[0-9A-Z_a-z]*/);if(e=o(r,1)[0],n.has(e)||void 0===t[e])return n;n.add(e);var a,s=i(t[e]);try{for(s.s();!(a=s.n()).done;)h(a.value.type,t,n)}catch(e){s.e(e)}finally{s.f()}return n}function y(e,t,n,r){return f(r,[s.V3,s.V4]),c.keccak(b(e,t,n,r))}function m(e,t){return c.keccak(p(e,t))}function v(e){var n={};for(var r in t.TYPED_MESSAGE_SCHEMA.properties)e[r]&&(n[r]=e[r]);return"types"in n&&(n.types=Object.assign({EIP712Domain:[]},n.types)),n}function g(e){var t=new Error("Expect argument to be non-empty array");if("object"!=typeof e||!("length"in e)||!e.length)throw t;var n=e.map((function(e){return"bytes"!==e.type?e.value:d.legacyToBuffer(e.value)})),r=e.map((function(e){return e.type})),a=e.map((function(e){if(!e.name)throw t;return"".concat(e.type," ").concat(e.name)}));return u.soliditySHA3(["bytes32","bytes32"],[u.soliditySHA3(new Array(e.length).fill("string"),a),u.soliditySHA3(r,n)])}!function(e){e.V1="V1",e.V3="V3",e.V4="V4"}(s=t.SignTypedDataVersion||(t.SignTypedDataVersion={})),t.TYPED_MESSAGE_SCHEMA={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},t.TypedDataUtils={encodeData:b,encodeType:p,findTypeDependencies:h,hashStruct:y,hashType:m,sanitizeData:v,eip712Hash:function(e,t){f(t,[s.V3,s.V4]);var n=v(e),a=[r.from("1901","hex")];return a.push(y("EIP712Domain",n.domain,n.types,t)),"EIP712Domain"!==n.primaryType&&a.push(y(n.primaryType,n.message,n.types,t)),c.keccak(r.concat(a))}},t.typedSignatureHash=function(e){var t=g(e);return c.bufferToHex(t)},t.signTypedData=function(e){var n=e.privateKey,r=e.data,a=e.version;if(f(a),d.isNullish(r))throw new Error("Missing data parameter");if(d.isNullish(n))throw new Error("Missing private key parameter");var i=a===s.V1?g(r):t.TypedDataUtils.eip712Hash(r,a),o=c.ecsign(i,n);return d.concatSig(c.toBuffer(o.v),o.r,o.s)},t.recoverTypedSignature=function(e){var n=e.data,r=e.signature,a=e.version;if(f(a),d.isNullish(n))throw new Error("Missing data parameter");if(d.isNullish(r))throw new Error("Missing signature parameter");var i=a===s.V1?g(n):t.TypedDataUtils.eip712Hash(n,a),o=d.recoverPublicKey(i,r),u=c.publicToAddress(o);return c.bufferToHex(u)}},28567:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.recoverPublicKey=t.concatSig=t.legacyToBuffer=t.isNullish=t.padWithZeroes=void 0;var a=n(73853),i=n(537);function o(e,t){if(""!==e&&!/^[0-9a-f]+$/i.test(e))throw new Error("Expected an unprefixed hex string. Received: ".concat(e));if(t<0)throw new Error("Expected a non-negative integer target length. Received: ".concat(t));return String.prototype.padStart.call(e,t,"0")}t.padWithZeroes=o,t.isNullish=function(e){return null==e},t.legacyToBuffer=function(e){return"string"!=typeof e||i.isHexString(e)?a.toBuffer(e):r.from(e)},t.concatSig=function(e,t,n){var r=a.fromSigned(t),s=a.fromSigned(n),c=a.bufferToInt(e),u=o(a.toUnsigned(r).toString("hex"),64),d=o(a.toUnsigned(s).toString("hex"),64),f=i.stripHexPrefix(i.intToHex(c));return a.addHexPrefix(u.concat(d,f))},t.recoverPublicKey=function(e,t){var n=a.fromRpcSig(t);return a.ecrecover(e,n.v,n.r,n.s)},t.normalize=function(e){if(e){if("number"==typeof e){var t=a.toBuffer(e);e=a.bufferToHex(t)}if("string"!=typeof e){var n="eth-sig-util.normalize() requires hex string or integer input.";throw n+=" received ".concat(typeof e,": ").concat(e),new Error(n)}return a.addHexPrefix(e.toLowerCase())}}},43789:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(99377).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,d=n;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,f=67108863&c,l=Math.min(u,t.length-1),b=Math.max(0,u-e.length+1);b<=l;b++){var p=u-b|0;d+=(o=(a=0|e.words[p])*(i=0|t.words[b])+f)/67108864|0,f=67108863&o}n.words[u]=0|f,c=0|d}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?d[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],b=l[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var h=p.modn(b).toString(e);n=(p=p.idivn(b)).isZero()?h+n:d[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),d=this.clone();if(c){for(s=0;!d.isZero();s++)o=d.andln(255),d.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,b=0|o[1],p=8191&b,h=b>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,I=0|o[5],S=8191&I,E=I>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,N=0|o[8],R=8191&N,D=N>>>13,j=0|o[9],U=8191&j,L=j>>>13,F=0|s[0],Z=8191&F,H=F>>>13,z=0|s[1],Q=8191&z,q=z>>>13,V=0|s[2],J=8191&V,K=V>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,de=0|s[8],fe=8191&de,le=de>>>13,be=0|s[9],pe=8191&be,he=be>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(f,Z))|0)+((8191&(a=(a=Math.imul(f,H))+Math.imul(l,Z)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(p,Z),a=(a=Math.imul(p,H))+Math.imul(h,Z)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(f,Q)|0)|0)+((8191&(a=(a=a+Math.imul(f,q)|0)+Math.imul(l,Q)|0))<<13)|0;u=((i=i+Math.imul(l,q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,Z),a=(a=Math.imul(m,H))+Math.imul(v,Z)|0,i=Math.imul(v,H),r=r+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,q)|0)+Math.imul(h,Q)|0,i=i+Math.imul(h,q)|0;var ve=(u+(r=r+Math.imul(f,J)|0)|0)+((8191&(a=(a=a+Math.imul(f,K)|0)+Math.imul(l,J)|0))<<13)|0;u=((i=i+Math.imul(l,K)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,Z),a=(a=Math.imul(A,H))+Math.imul(w,Z)|0,i=Math.imul(w,H),r=r+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,q)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,a=(a=a+Math.imul(p,K)|0)+Math.imul(h,J)|0,i=i+Math.imul(h,K)|0;var ge=(u+(r=r+Math.imul(f,W)|0)|0)+((8191&(a=(a=a+Math.imul(f,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,Z),a=(a=Math.imul(_,H))+Math.imul(k,Z)|0,i=Math.imul(k,H),r=r+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,q)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,q)|0,r=r+Math.imul(m,J)|0,a=(a=a+Math.imul(m,K)|0)+Math.imul(v,J)|0,i=i+Math.imul(v,K)|0,r=r+Math.imul(p,W)|0,a=(a=a+Math.imul(p,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(f,$)|0)|0)+((8191&(a=(a=a+Math.imul(f,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(S,Z),a=(a=Math.imul(S,H))+Math.imul(E,Z)|0,i=Math.imul(E,H),r=r+Math.imul(_,Q)|0,a=(a=a+Math.imul(_,q)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,q)|0,r=r+Math.imul(A,J)|0,a=(a=a+Math.imul(A,K)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,K)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(p,$)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(a=(a=a+Math.imul(f,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,Z),a=(a=Math.imul(T,H))+Math.imul(O,Z)|0,i=Math.imul(O,H),r=r+Math.imul(S,Q)|0,a=(a=a+Math.imul(S,q)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,q)|0,r=r+Math.imul(_,J)|0,a=(a=a+Math.imul(_,K)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,K)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(p,ne)|0,a=(a=a+Math.imul(p,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(f,ie)|0)|0)+((8191&(a=(a=a+Math.imul(f,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,Z),a=(a=Math.imul(M,H))+Math.imul(B,Z)|0,i=Math.imul(B,H),r=r+Math.imul(T,Q)|0,a=(a=a+Math.imul(T,q)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,q)|0,r=r+Math.imul(S,J)|0,a=(a=a+Math.imul(S,K)|0)+Math.imul(E,J)|0,i=i+Math.imul(E,K)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(p,ie)|0,a=(a=a+Math.imul(p,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(a=(a=a+Math.imul(f,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,Z),a=(a=Math.imul(R,H))+Math.imul(D,Z)|0,i=Math.imul(D,H),r=r+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,q)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,q)|0,r=r+Math.imul(T,J)|0,a=(a=a+Math.imul(T,K)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,K)|0,r=r+Math.imul(S,W)|0,a=(a=a+Math.imul(S,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(p,ce)|0,a=(a=a+Math.imul(p,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(a=(a=a+Math.imul(f,le)|0)+Math.imul(l,fe)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,Z),a=(a=Math.imul(U,H))+Math.imul(L,Z)|0,i=Math.imul(L,H),r=r+Math.imul(R,Q)|0,a=(a=a+Math.imul(R,q)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,q)|0,r=r+Math.imul(M,J)|0,a=(a=a+Math.imul(M,K)|0)+Math.imul(B,J)|0,i=i+Math.imul(B,K)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(S,$)|0,a=(a=a+Math.imul(S,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(p,fe)|0,a=(a=a+Math.imul(p,le)|0)+Math.imul(h,fe)|0,i=i+Math.imul(h,le)|0;var Ie=(u+(r=r+Math.imul(f,pe)|0)|0)+((8191&(a=(a=a+Math.imul(f,he)|0)+Math.imul(l,pe)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,Q),a=(a=Math.imul(U,q))+Math.imul(L,Q)|0,i=Math.imul(L,q),r=r+Math.imul(R,J)|0,a=(a=a+Math.imul(R,K)|0)+Math.imul(D,J)|0,i=i+Math.imul(D,K)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(S,ne)|0,a=(a=a+Math.imul(S,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,fe)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,fe)|0,i=i+Math.imul(v,le)|0;var Se=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(a=(a=a+Math.imul(p,he)|0)+Math.imul(h,pe)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,J),a=(a=Math.imul(U,K))+Math.imul(L,J)|0,i=Math.imul(L,K),r=r+Math.imul(R,W)|0,a=(a=a+Math.imul(R,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(S,ie)|0,a=(a=a+Math.imul(S,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,pe)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,pe)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(R,$)|0,a=(a=a+Math.imul(R,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(S,ce)|0,a=(a=a+Math.imul(S,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,fe)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,pe)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,pe)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,a=(a=a+Math.imul(R,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(S,fe)|0,a=(a=a+Math.imul(S,le)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,pe)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,pe)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(R,ie)|0,a=(a=a+Math.imul(R,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,fe)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,fe)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(S,pe)|0)|0)+((8191&(a=(a=a+Math.imul(S,he)|0)+Math.imul(E,pe)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(R,ce)|0,a=(a=a+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,pe)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,pe)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(R,fe)|0,a=(a=a+Math.imul(R,le)|0)+Math.imul(D,fe)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,pe)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,pe)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,fe),a=(a=Math.imul(U,le))+Math.imul(L,fe)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(R,pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,he)|0)+Math.imul(D,pe)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Ne=(u+(r=Math.imul(U,pe))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,pe)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Ie,c[10]=Se,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Ne,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=b),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?p(this,e,t):r<63?b(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==d||u>=a);u--){var f=0|this.words[u];this.words[u]=d<<26-i|f>>>i,d=f&s}return c&&0!==d&&(c.words[c.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var l=67108864*(0|r.words[a.length+f])+(0|r.words[a.length+f-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var d=n.clone(),f=t.clone();!t.isZero();){for(var l=0,b=1;0==(t.words[0]&b)&&l<26;++l,b<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(d),o.isub(f)),a.iushrn(1),o.iushrn(1);for(var p=0,h=1;0==(n.words[0]&h)&&p<26;++p,h<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(d),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,d=1;0==(t.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var f=0,l=1;0==(n.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);0!==this.pow(d,u).cmp(c);)d.redIAdd(c);for(var f=this.pow(d,a),l=this.pow(e,a.addn(1).iushrn(1)),b=this.pow(e,a),p=o;0!==b.cmp(s);){for(var h=b,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],d=c-1;d>=0;d--){var f=u>>d&1;a!==n[0]&&(a=this.sqr(a)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===d)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},77924:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.createHashFunction=function(e){return function(t){var n=e();return n.update(t),r.from(n.digest())}}},68500:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(77924),a=n(51605);t.keccak224=r.createHashFunction((function(){return a("keccak224")})),t.keccak256=r.createHashFunction((function(){return a("keccak256")})),t.keccak384=r.createHashFunction((function(){return a("keccak384")})),t.keccak512=r.createHashFunction((function(){return a("keccak512")}))},45041:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41753);t.getRandomBytes=function(e){return new Promise((function(t,n){r(e,(function(e,r){e?n(e):t(r)}))}))},t.getRandomBytesSync=function(e){return r(e)}},96756:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=8?a+=e[o].toUpperCase():a+=e[o];return a},t.isValidChecksumAddress=function(e,n){return t.isValidAddress(e)&&t.toChecksumAddress(e,n)===e},t.generateAddress=function(e,t){e=c.toBuffer(e);var n=new s(t);return n.isZero()?u.rlphash([e,null]).slice(-20):u.rlphash([e,r.from(n.toArray())]).slice(-20)},t.generateAddress2=function(e,t,n){var i=c.toBuffer(e),o=c.toBuffer(t),s=c.toBuffer(n);return a(20===i.length),a(32===o.length),u.keccak256(r.concat([r.from("ff","hex"),i,o,u.keccak256(s)])).slice(-20)},t.isPrecompiled=function(e){var t=c.unpad(e);return 1===t.length&&t[0]>=1&&t[0]<=8},t.isValidPrivate=function(e){return o.privateKeyVerify(e)},t.isValidPublic=function(e,t){return void 0===t&&(t=!1),64===e.length?o.publicKeyVerify(r.concat([r.from([4]),e])):!!t&&o.publicKeyVerify(e)},t.pubToAddress=function(e,t){return void 0===t&&(t=!1),e=c.toBuffer(e),t&&64!==e.length&&(e=o.publicKeyConvert(e,!1).slice(1)),a(64===e.length),u.keccak(e).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToAddress=function(e){return t.publicToAddress(t.privateToPublic(e))},t.privateToPublic=function(e){return e=c.toBuffer(e),o.publicKeyCreate(e,!1).slice(1)},t.importPublic=function(e){return 64!==(e=c.toBuffer(e)).length&&(e=o.publicKeyConvert(e,!1).slice(1)),e}},40081:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.baToJSON=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.stripZeros=t.unpad=t.setLengthRight=t.setLength=t.setLengthLeft=t.zeros=void 0;var a=n(537),i=n(43789);t.zeros=function(e){return r.allocUnsafe(e).fill(0)},t.setLengthLeft=function(e,n,r){void 0===r&&(r=!1);var a=t.zeros(n);return e=t.toBuffer(e),r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},t.stripZeros=t.unpad,t.toBuffer=function(e){if(!r.isBuffer(e))if(Array.isArray(e))e=r.from(e);else if("string"==typeof e){if(!a.isHexString(e))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+e);e=r.from(a.padToEven(a.stripHexPrefix(e)),"hex")}else if("number"==typeof e)e=a.intToBuffer(e);else if(null==e)e=r.allocUnsafe(0);else if(i.isBN(e))e=e.toArrayLike(r);else{if(!e.toArray)throw new Error("invalid type");e=r.from(e.toArray())}return e},t.bufferToInt=function(e){return new i(t.toBuffer(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=t.toBuffer(e)).toString("hex")},t.fromSigned=function(e){return new i(e).fromTwos(256)},t.toUnsigned=function(e){return r.from(e.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||a.isHexPrefixed(e)?e:"0x"+e},t.baToJSON=function(e){if(r.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var n=[],a=0;a=i.length,"The field "+t.name+" must not have more "+t.length+" bytes")):t.allowZero&&0===i.length||!t.length||a(t.length===i.length,"The field "+t.name+" must have byte length of "+t.length),e.raw[n]=i}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:i,set:o}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:o,get:i})})),n)if("string"==typeof n&&(n=r.from(i.stripHexPrefix(n),"hex")),r.isBuffer(n)&&(n=o.decode(n)),Array.isArray(n)){if(n.length>e._fields.length)throw new Error("wrong number of fields in data");n.forEach((function(t,n){e[e._fields[n]]=s.toBuffer(t)}))}else{if("object"!=typeof n)throw new Error("invalid data");var c=Object.keys(n);t.forEach((function(t){-1!==c.indexOf(t.name)&&(e[t.name]=n[t.name]),-1!==c.indexOf(t.alias)&&(e[t.alias]=n[t.alias])}))}}},89049:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhUnsafe=t.ecdh=t.recover=t.verify=t.sign=t.signatureImportLax=t.signatureImport=t.signatureExport=t.signatureNormalize=t.publicKeyCombine=t.publicKeyTweakMul=t.publicKeyTweakAdd=t.publicKeyVerify=t.publicKeyConvert=t.publicKeyCreate=t.privateKeyTweakMul=t.privateKeyTweakAdd=t.privateKeyModInverse=t.privateKeyNegate=t.privateKeyImport=t.privateKeyExport=t.privateKeyVerify=void 0;var a=n(96756),i=n(71462),o=n(97743);t.privateKeyVerify=function(e){return 32===e.length&&a.privateKeyVerify(Uint8Array.from(e))},t.privateKeyExport=function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var n=i.privateKeyExport(e,t);return o.privateKeyExport(e,n,t)},t.privateKeyImport=function(e){if(null!==(e=o.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error("couldn't import from DER format")},t.privateKeyNegate=function(e){return r.from(a.privateKeyNegate(Uint8Array.from(e)))},t.privateKeyModInverse=function(e){if(32!==e.length)throw new Error("private key length is invalid");return r.from(i.privateKeyModInverse(Uint8Array.from(e)))},t.privateKeyTweakAdd=function(e,t){return r.from(a.privateKeyTweakAdd(Uint8Array.from(e),t))},t.privateKeyTweakMul=function(e,t){return r.from(a.privateKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t)))},t.publicKeyCreate=function(e,t){return r.from(a.publicKeyCreate(Uint8Array.from(e),t))},t.publicKeyConvert=function(e,t){return r.from(a.publicKeyConvert(Uint8Array.from(e),t))},t.publicKeyVerify=function(e){return(33===e.length||65===e.length)&&a.publicKeyVerify(Uint8Array.from(e))},t.publicKeyTweakAdd=function(e,t,n){return r.from(a.publicKeyTweakAdd(Uint8Array.from(e),Uint8Array.from(t),n))},t.publicKeyTweakMul=function(e,t,n){return r.from(a.publicKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t),n))},t.publicKeyCombine=function(e,t){var n=[];return e.forEach((function(e){n.push(Uint8Array.from(e))})),r.from(a.publicKeyCombine(n,t))},t.signatureNormalize=function(e){return r.from(a.signatureNormalize(Uint8Array.from(e)))},t.signatureExport=function(e){return r.from(a.signatureExport(Uint8Array.from(e)))},t.signatureImport=function(e){return r.from(a.signatureImport(Uint8Array.from(e)))},t.signatureImportLax=function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=o.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return i.signatureImport(t)},t.sign=function(e,t,n){if(null===n)throw new TypeError("options should be an Object");var i=void 0;if(n){if(i={},null===n.data)throw new TypeError("options.data should be a Buffer");if(n.data){if(32!=n.data.length)throw new RangeError("options.data length is invalid");i.data=new Uint8Array(n.data)}if(null===n.noncefn)throw new TypeError("options.noncefn should be a Function");n.noncefn&&(i.noncefn=function(e,t,a,i,o){var s=null!=a?r.from(a):null,c=null!=i?r.from(i):null,u=r.from("");return n.noncefn&&(u=n.noncefn(r.from(e),r.from(t),s,c,o)),new Uint8Array(u)})}var o=a.ecdsaSign(Uint8Array.from(e),Uint8Array.from(t),i);return{signature:r.from(o.signature),recovery:o.recid}},t.verify=function(e,t,n){return a.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),n)},t.recover=function(e,t,n,i){return r.from(a.ecdsaRecover(Uint8Array.from(t),n,Uint8Array.from(e),i))},t.ecdh=function(e,t){return r.from(a.ecdh(Uint8Array.from(e),Uint8Array.from(t),{}))},t.ecdhUnsafe=function(e,t,n){if(33!==e.length&&65!==e.length)throw new RangeError("public key length is invalid");if(32!==t.length)throw new RangeError("private key length is invalid");return r.from(i.ecdhUnsafe(Uint8Array.from(e),Uint8Array.from(t),n))}},97743:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var a=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),i=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(e,t,n){void 0===n&&(n=!0);var o=r.from(n?a:i);return e.copy(o,n?8:9),t.copy(o,n?181:214),o},t.privateKeyImport=function(e){var t=e.length,n=0;if(t2)return null;if(t<(n+=1)+r)return null;var a=e[n+r-1]|(r>1?e[n+r-2]<<8:0);return t<(n+=r)+a||t32||ta)return null;if(2!==e[i++])return null;var s=e[i++];if(128&s){if(i+(o=s-128)>a)return null;for(;o>0&&0===e[i];i+=1,o-=1);for(s=0;o>0;i+=1,o-=1)s=(s<<8)+e[i]}if(s>a-i)return null;var c=i;if(i+=s,2!==e[i++])return null;var u=e[i++];if(128&u){if(i+(o=u-128)>a)return null;for(;o>0&&0===e[i];i+=1,o-=1);for(u=0;o>0;i+=1,o-=1)u=(u<<8)+e[i]}if(u>a-i)return null;var d=i;for(i+=u;s>0&&0===e[c];s-=1,c+=1);if(s>32)return null;var f=e.slice(c,c+s);for(f.copy(t,32-f.length);u>0&&0===e[d];u-=1,d+=1);if(u>32)return null;var l=e.slice(d,d+u);return l.copy(n,32-l.length),{r:t,s:n}}},71462:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var a=n(43789),i=new(0,n(98722).ec)("secp256k1"),o=i.curve;t.privateKeyExport=function(e,t){void 0===t&&(t=!0);var n=new a(e);if(n.ucmp(o.n)>=0)throw new Error("couldn't export to DER format");var r=i.g.mul(n);return s(r.getX(),r.getY(),t)},t.privateKeyModInverse=function(e){var t=new a(e);if(t.ucmp(o.n)>=0||t.isZero())throw new Error("private key range is invalid");return t.invm(o.n).toArrayLike(r,"be",32)},t.signatureImport=function(e){var t=new a(e.r);t.ucmp(o.n)>=0&&(t=new a(0));var n=new a(e.s);return n.ucmp(o.n)>=0&&(n=new a(0)),r.concat([t.toArrayLike(r,"be",32),n.toArrayLike(r,"be",32)])},t.ecdhUnsafe=function(e,t,n){void 0===n&&(n=!0);var r=i.keyFromPublic(e),c=new a(t);if(c.ucmp(o.n)>=0||c.isZero())throw new Error("scalar was invalid (zero or overflow)");var u=r.pub.mul(c);return s(u.getX(),u.getY(),n)};var s=function(e,t,n){var a;return n?((a=r.alloc(33))[0]=t.isOdd()?3:2,e.toArrayLike(r,"be",32).copy(a,1)):((a=r.alloc(65))[0]=4,e.toArrayLike(r,"be",32).copy(a,1),t.toArrayLike(r,"be",32).copy(a,33)),a}},93153:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var a=n(89049),i=n(43789),o=n(40081),s=n(35625);function c(e,t){return t?e-(2*t+35):e-27}function u(e){return 0===e||1===e}t.ecsign=function(e,t,n){var r=a.sign(e,t),i=r.recovery;return{r:r.signature.slice(0,32),s:r.signature.slice(32,64),v:n?i+(2*n+35):i+27}},t.ecrecover=function(e,t,n,i,s){var d=r.concat([o.setLength(n,32),o.setLength(i,32)],64),f=c(t,s);if(!u(f))throw new Error("Invalid signature v value");var l=a.recover(e,d,f);return a.publicKeyConvert(l,!1).slice(1)},t.toRpcSig=function(e,t,n,a){if(!u(c(e,a)))throw new Error("Invalid signature v value");return o.bufferToHex(r.concat([o.setLengthLeft(t,32),o.setLengthLeft(n,32),o.toBuffer(e)]))},t.fromRpcSig=function(e){var t=o.toBuffer(e);if(65!==t.length)throw new Error("Invalid signature length");var n=t[64];return n<27&&(n+=27),{v:n,r:t.slice(0,32),s:t.slice(32,64)}},t.isValidSignature=function(e,t,n,r,a){void 0===r&&(r=!0);var o=new i("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new i("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==n.length)return!1;if(!u(c(e,a)))return!1;var d=new i(t),f=new i(n);return!(d.isZero()||d.gt(s)||f.isZero()||f.gt(s)||r&&1===f.cmp(o))},t.hashPersonalMessage=function(e){var t=r.from("Ethereum Signed Message:\n"+e.length.toString(),"utf-8");return s.keccak(r.concat([t,e]))}},28817:function(e,t,n){"use strict";var r=n(32224);t.Z=void 0;var a=r(n(564)),i=n(50859),o=(0,a.default)((0,i.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");t.Z=o},29883:function(e,t,n){"use strict";var r=n(32224);t.Z=void 0;var a=r(n(564)),i=n(50859),o=(0,a.default)((0,i.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"Launch");t.Z=o},564:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(47026)},25683:function(e,t){"use strict";t.Z={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"}},33674:function(e,t){"use strict";t.Z={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},22455:function(e,t){"use strict";t.Z={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"}},86420:function(e,t){"use strict";t.Z={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},86184:function(e,t,n){"use strict";n.d(t,{Z:function(){return B}});var r=n(22688),a=n(76737),i=n(19452),o=n(61528),s=n(10510),c=n(57379),u=n(85254),d=n(14039),f=n(53142),l={black:"#000",white:"#fff"},b=n(33674),p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h=n(86420),y=n(22455),m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},v={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},g=n(25683),A=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:l.white,default:l.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:l.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:l.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _(e,t,n,r){var a=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,f.$n)(e.main,a):"dark"===t&&(e.dark=(0,f._j)(e.main,i)))}var k=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],I={textTransform:"uppercase"},S='"Roboto", "Helvetica", "Arial", sans-serif';function E(e,t){var n="function"==typeof t?t(e):t,i=n.fontFamily,s=void 0===i?S:i,c=n.fontSize,u=void 0===c?14:c,d=n.fontWeightLight,f=void 0===d?300:d,l=n.fontWeightRegular,b=void 0===l?400:l,p=n.fontWeightMedium,h=void 0===p?500:p,y=n.fontWeightBold,m=void 0===y?700:y,v=n.htmlFontSize,g=void 0===v?16:v,A=n.allVariants,w=n.pxToRem,x=(0,a.Z)(n,k),_=u/14,E=w||function(e){return"".concat(e/g*_,"rem")},C=function(e,t,n,a,i){return(0,r.Z)({fontFamily:s,fontWeight:e,fontSize:E(t),lineHeight:n},s===S?{letterSpacing:"".concat((o=a/t,Math.round(1e5*o)/1e5),"em")}:{},i,A);var o},T={h1:C(f,96,1.167,-1.5),h2:C(f,60,1.2,-.5),h3:C(b,48,1.167,0),h4:C(b,34,1.235,.25),h5:C(b,24,1.334,0),h6:C(h,20,1.6,.15),subtitle1:C(b,16,1.75,.15),subtitle2:C(h,14,1.57,.1),body1:C(b,16,1.5,.15),body2:C(b,14,1.43,.15),button:C(h,14,1.75,.4,I),caption:C(b,12,1.66,.4),overline:C(b,12,2.66,1,I),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,o.Z)((0,r.Z)({htmlFontSize:g,pxToRem:E,fontFamily:s,fontSize:u,fontWeightLight:f,fontWeightRegular:b,fontWeightMedium:h,fontWeightBold:m},T),x,{clone:!1})}function C(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var T=["none",C(0,2,1,-1,0,1,1,0,0,1,3,0),C(0,3,1,-2,0,2,2,0,0,1,5,0),C(0,3,3,-2,0,3,4,0,0,1,8,0),C(0,2,4,-1,0,4,5,0,0,1,10,0),C(0,3,5,-1,0,5,8,0,0,1,14,0),C(0,3,5,-1,0,6,10,0,0,1,18,0),C(0,4,5,-2,0,7,10,1,0,2,16,1),C(0,5,5,-3,0,8,10,1,0,3,14,2),C(0,5,6,-3,0,9,12,1,0,3,16,2),C(0,6,6,-3,0,10,14,1,0,4,18,3),C(0,6,7,-4,0,11,15,1,0,4,20,3),C(0,7,8,-4,0,12,17,2,0,5,22,4),C(0,7,8,-4,0,13,19,2,0,5,24,4),C(0,7,9,-4,0,14,21,2,0,5,26,4),C(0,8,9,-5,0,15,22,2,0,6,28,5),C(0,8,10,-5,0,16,24,2,0,6,30,5),C(0,8,11,-5,0,17,26,2,0,6,32,5),C(0,9,11,-5,0,18,28,2,0,7,34,6),C(0,9,12,-6,0,19,29,2,0,7,36,6),C(0,10,13,-6,0,20,31,3,0,8,38,7),C(0,10,13,-6,0,21,33,3,0,8,40,7),C(0,10,14,-6,0,22,35,3,0,8,42,7),C(0,11,14,-7,0,23,36,3,0,9,44,8),C(0,11,15,-7,0,24,38,3,0,9,46,8)],O=n(57332),P={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},M=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,k=e.palette,I=void 0===k?{}:k,S=e.transitions,C=void 0===S?{}:S,B=e.typography,N=void 0===B?{}:B,R=(0,a.Z)(e,M);if(e.vars)throw new Error((0,i.Z)(18));var D,j,U,L=function(e){var t=e.mode,n=void 0===t?"light":t,s=e.contrastThreshold,c=void 0===s?3:s,u=e.tonalOffset,d=void 0===u?.2:u,k=(0,a.Z)(e,A),I=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[200],light:m[50],dark:m[400]}:{main:m[700],light:m[400],dark:m[800]}}(n),S=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(n),E=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h.Z[500],light:h.Z[300],dark:h.Z[700]}:{main:h.Z[700],light:h.Z[400],dark:h.Z[800]}}(n),C=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(n),T=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g.Z[400],light:g.Z[300],dark:g.Z[700]}:{main:g.Z[800],light:g.Z[500],dark:g.Z[900]}}(n),O=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y.Z[400],light:y.Z[300],dark:y.Z[700]}:{main:"#ed6c02",light:y.Z[500],dark:y.Z[900]}}(n);function P(e){return(0,f.mi)(e,x.text.primary)>=c?x.text.primary:w.text.primary}var M=function(e){var t=e.color,n=e.name,a=e.mainShade,o=void 0===a?500:a,s=e.lightShade,c=void 0===s?300:s,u=e.darkShade,f=void 0===u?700:u;if(!(t=(0,r.Z)({},t)).main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,i.Z)(11,n?" (".concat(n,")"):"",o));if("string"!=typeof t.main)throw new Error((0,i.Z)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return _(t,"light",c,d),_(t,"dark",f,d),t.contrastText||(t.contrastText=P(t.main)),t},B={dark:x,light:w};return(0,o.Z)((0,r.Z)({common:(0,r.Z)({},l),mode:n,primary:M({color:I,name:"primary"}),secondary:M({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:M({color:E,name:"error"}),warning:M({color:O,name:"warning"}),info:M({color:C,name:"info"}),success:M({color:T,name:"success"}),grey:b.Z,contrastThreshold:c,getContrastText:P,augmentColor:M,tonalOffset:d},B[n]),k)}(I),F=(0,s.Z)(e),Z=(0,o.Z)(F,{mixins:(D=F.breakpoints,j=n,(0,r.Z)({toolbar:(U={minHeight:56},(0,d.Z)(U,D.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,d.Z)(U,D.up("sm"),{minHeight:64}),U)},j)),palette:L,shadows:T.slice(),typography:E(L,N),transitions:(0,O.ZP)(C),zIndex:(0,r.Z)({},P)});Z=(0,o.Z)(Z,R);for(var H=arguments.length,z=new Array(H>1?H-1:0),Q=1;Q0&&void 0!==arguments[0]?arguments[0]:["all"],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=a.duration,s=void 0===o?n.standard:o,u=a.easing,d=void 0===u?t.easeInOut:u,f=a.delay,l=void 0===f?0:f;return(0,r.Z)(a,i),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:c(s)," ").concat(d," ").concat("string"==typeof l?l:c(l))})).join(",")}},e,{easing:t,duration:n})}},93528:function(e,t,n){"use strict";var r=(0,n(86184).Z)();t.Z=r},34281:function(e,t){"use strict";t.Z="$$material"},50666:function(e,t,n){"use strict";n.d(t,{Dz:function(){return s},FO:function(){return o}});var r=n(34330),a=n(93528),i=n(34281),o=function(e){return(0,r.x9)(e)&&"classes"!==e},s=r.x9,c=(0,r.ZP)({themeId:i.Z,defaultTheme:a.Z,rootShouldForwardProp:o});t.ZP=c},34164:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(16761),a=n(93528),i=n(34281);function o(e){var t=e.props,n=e.name;return(0,r.Z)({props:t,name:n,defaultTheme:a.Z,themeId:i.Z})}},84633:function(e,t,n){"use strict";var r=n(49774);t.Z=r.Z},43131:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(22688),a=n(53250),i=n(76737),o=n(28265),s=n(9666),c=n(84633),u=n(34164),d=n(50666),f=n(53083),l=n(4311);function b(e){return(0,l.Z)("MuiSvgIcon",e)}(0,f.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var p=n(50859),h=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],y=(0,d.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"inherit"!==n.color&&t["color".concat((0,c.Z)(n.color))],t["fontSize".concat((0,c.Z)(n.fontSize))]]}})((function(e){var t,n,r,a,i,o,s,c,u,d,f,l,b,p,h,y,m,v=e.theme,g=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(t=v.transitions)||null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(r=v.transitions)||null==(a=r.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=v.typography)||null==(o=i.pxToRem)?void 0:o.call(i,20))||"1.25rem",medium:(null==(s=v.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(u=v.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[g.fontSize],color:null!=(f=null==(l=(v.vars||v).palette)||null==(b=l[g.color])?void 0:b.main)?f:{action:null==(p=(v.vars||v).palette)||null==(h=p.action)?void 0:h.active,disabled:null==(y=(v.vars||v).palette)||null==(m=y.action)?void 0:m.disabled,inherit:void 0}[g.color]}})),m=a.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiSvgIcon"}),a=n.children,d=n.className,f=n.color,l=void 0===f?"inherit":f,m=n.component,v=void 0===m?"svg":m,g=n.fontSize,A=void 0===g?"medium":g,w=n.htmlColor,x=n.inheritViewBox,_=void 0!==x&&x,k=n.titleAccess,I=n.viewBox,S=void 0===I?"0 0 24 24":I,E=(0,i.Z)(n,h),C=(0,r.Z)({},n,{color:l,component:v,fontSize:A,instanceFontSize:e.fontSize,inheritViewBox:_,viewBox:S}),T={};_||(T.viewBox=S);var O=function(e){var t=e.color,n=e.fontSize,r=e.classes,a={root:["root","inherit"!==t&&"color".concat((0,c.Z)(t)),"fontSize".concat((0,c.Z)(n))]};return(0,s.Z)(a,b,r)}(C);return(0,p.jsxs)(y,(0,r.Z)({as:v,className:(0,o.Z)(O.root,d),focusable:"false",color:w,"aria-hidden":!k||void 0,role:k?"img":void 0,ref:t},T,E,{ownerState:C,children:[a,k?(0,p.jsx)("title",{children:k}):null]}))}));m.muiName="SvgIcon";var v=m;function g(e,t){function n(n,a){return(0,p.jsx)(v,(0,r.Z)({"data-testid":"".concat(t,"Icon"),ref:a},n,{children:e}))}return n.muiName=v.muiName,a.memo(a.forwardRef(n))}},34713:function(e,t,n){"use strict";var r=n(44233);t.Z=r.Z},47026:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return a.Z},createChainedFunction:function(){return i},createSvgIcon:function(){return o.Z},debounce:function(){return s.Z},deprecatedPropType:function(){return c},isMuiElement:function(){return d},ownerDocument:function(){return f.Z},ownerWindow:function(){return l.Z},requirePropFactory:function(){return b},setRef:function(){return p},unstable_ClassNameGenerator:function(){return x},unstable_useEnhancedEffect:function(){return h.Z},unstable_useId:function(){return y.Z},unsupportedProp:function(){return m},useControlled:function(){return v.Z},useEventCallback:function(){return g.Z},useForkRef:function(){return A.Z},useIsFocusVisible:function(){return w.Z}});var r=n(32921),a=n(84633),i=n(90724).Z,o=n(43131),s=n(34713),c=function(e,t){return function(){return null}},u=n(53250),d=function(e,t){return u.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)},f=n(96069),l=n(2825);n(22688);var b=function(e,t){return function(){return null}},p=n(9787).Z,h=n(87694),y=n(68910),m=function(e,t,n,r,a){return null},v=n(67645),g=n(87680),A=n(63997),w=n(46476),x={configure:function(e){r.Z.configure(e)}}},96069:function(e,t,n){"use strict";var r=n(25179);t.Z=r.Z},2825:function(e,t,n){"use strict";var r=n(97419);t.Z=r.Z},67645:function(e,t,n){"use strict";var r=n(20955);t.Z=r.Z},87694:function(e,t,n){"use strict";var r=n(57669);t.Z=r.Z},87680:function(e,t,n){"use strict";var r=n(93638);t.Z=r.Z},63997:function(e,t,n){"use strict";var r=n(73478);t.Z=r.Z},68910:function(e,t,n){"use strict";var r=n(60391);t.Z=r.Z},46476:function(e,t,n){"use strict";var r=n(62102);t.Z=r.Z},97347:function(e,t,n){"use strict";n.d(t,{L7:function(){return c},P$:function(){return d},VO:function(){return a},W8:function(){return s},dt:function(){return u},k9:function(){return o}});var r=n(61528),a={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(a[e],"px)")}};function o(e,t,n){var r=e.theme||{};if(Array.isArray(t)){var o=r.breakpoints||i;return t.reduce((function(e,r,a){return e[o.up(o.keys[a])]=n(t[a]),e}),{})}if("object"==typeof t){var s=r.breakpoints||i;return Object.keys(t).reduce((function(e,r){if(-1!==Object.keys(s.values||a).indexOf(r))e[s.up(r)]=n(t[r],r);else{var i=r;e[i]=t[i]}return e}),{})}return n(t)}function s(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{}))||{}}function c(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function u(e){for(var t=s(e),n=arguments.length,a=new Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));var a,o=e.substring(t+1,e.length-1);if("color"===n){if(a=(o=o.split(" ")).shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,r.Z)(10,a))}else o=o.split(",");return{type:n,values:o=o.map((function(e){return parseFloat(e)})),colorSpace:a}}function o(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function s(e){var t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){var t=(e=i(e)).values,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},u="rgb",d=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(u+="a",d.push(t[3])),o({type:u,values:d})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){var n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e,t){return e=i(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,o(e)}function d(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return o(e)}function f(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return o(e)}},34330:function(e,t,n){"use strict";n.d(t,{ZP:function(){return D},x9:function(){return B}});var r=n(87402),a=n(17600),i=n(76737),o=n(22688),s=n(53250),c=n(35910),u=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,d=(0,c.Z)((function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),f=n(39815),l=n(86899),b=n(99952),p=n(98344),h=d,y=function(e){return"theme"!==e},m=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?h:y},v=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,l.hC)(t,n,r),(0,p.L)((function(){return(0,l.My)(t,n,r)})),null},A=function e(t,n){var r,a,i=t.__emotion_real===t,c=i&&t.__emotion_base||t;void 0!==n&&(r=n.label,a=n.target);var u=v(t,n,i),d=u||m(c),p=!d("as");return function(){var h=arguments,y=i&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&y.push("label:"+r+";"),null==h[0]||void 0===h[0].raw)y.push.apply(y,h);else{y.push(h[0][0]);for(var A=h.length,w=1;w0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,n=e.defaultTheme,s=void 0===n?N:n,c=e.rootShouldForwardProp,u=void 0===c?B:c,d=e.slotShouldForwardProp,f=void 0===d?B:d,l=function(e){return(0,C.Z)((0,o.Z)({},e,{theme:R((0,o.Z)({},e,{defaultTheme:s,themeId:t}))}))};return l.__mui_systemSx=!0,function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var c=n.name,d=n.slot,b=n.skipVariantsResolver,p=n.skipSx,h=n.overridesResolver,y=(0,i.Z)(n,T),m=void 0!==b?b:d&&"Root"!==d||!1,v=p||!1,g=B;"Root"===d?g=u:d?g=f:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);var A=function(e,t){return w(e,t)}(e,(0,o.Z)({shouldForwardProp:g,label:void 0},y)),_=function(n){for(var i=arguments.length,u=new Array(i>1?i-1:0),d=1;d0){var y=new Array(p).fill("");(b=[].concat((0,r.Z)(n),(0,r.Z)(y))).raw=[].concat((0,r.Z)(n.raw),(0,r.Z)(y))}else"function"==typeof n&&n.__emotion_real!==n&&(b=function(e){return n((0,o.Z)({},e,{theme:R((0,o.Z)({},e,{defaultTheme:s,themeId:t}))}))});var g=A.apply(void 0,[b].concat((0,r.Z)(f)));return e.muiName&&(g.muiName=e.muiName),g};return A.withConfig&&(_.withConfig=A.withConfig),_}}},10510:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(22688),a=n(76737),i=n(61528),o=n(14039),s=["values","unit","step"],c={borderRadius:4},u=n(60023),d=n(85254),f=n(57379),l=["breakpoints","palette","spacing","shape"],b=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,b=e.palette,p=void 0===b?{}:b,h=e.spacing,y=e.shape,m=void 0===y?{}:y,v=(0,a.Z)(e,l),g=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,i=e.unit,c=void 0===i?"px":i,u=e.step,d=void 0===u?5:u,f=(0,a.Z)(e,s),l=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,r.Z)({},e,(0,o.Z)({},t.key,t.val))}),{})}(n),b=Object.keys(l);function p(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(c,")")}function h(e){var t="number"==typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-d/100).concat(c,")")}function y(e,t){var r=b.indexOf(t);return"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(c,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[b[r]]?n[b[r]]:t)-d/100).concat(c,")")}return(0,r.Z)({keys:b,values:l,up:p,down:h,between:y,only:function(e){return b.indexOf(e)+10&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=(0,u.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r1?x-1:0),k=1;k2){if(!f[e])return[e];e=f[e]}var t=e.split(""),n=(0,i.Z)(t,2),r=n[0],a=n[1],o=u[r],s=d[a]||"";return Array.isArray(s)?s.map((function(e){return o+e})):[o+s]},a={},function(e){return void 0===a[e]&&(a[e]=r(e)),a[e]}),b=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],p=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],h=[].concat(b,p);function y(e,t,n,r){var a,i=null!=(a=(0,s.DW)(e,t,!1))?a:n;return"number"==typeof i?function(e){return"string"==typeof e?e:i*e}:Array.isArray(i)?function(e){return"string"==typeof e?e:i[e]}:"function"==typeof i?i:function(){}}function m(e){return y(e,"spacing",8)}function v(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}function g(e,t){var n=m(e.theme);return Object.keys(e).map((function(r){return function(e,t,n,r){if(-1===t.indexOf(n))return null;var a=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=v(t,n),e}),{})}}(l(n),r),i=e[n];return(0,o.k9)(e,i,a)}(e,t,r,n)})).reduce(c.Z,{})}function A(e){return g(e,b)}function w(e){return g(e,p)}function x(e){return g(e,h)}A.propTypes={},A.filterProps=b,w.propTypes={},w.filterProps=p,x.propTypes={},x.filterProps=h},239:function(e,t,n){"use strict";n.d(t,{DW:function(){return o},Jq:function(){return s}});var r=n(14039),a=n(49774),i=n(97347);function o(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function s(e,t,n){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"==typeof e?e(n):Array.isArray(e)?e[n]||a:o(e,n)||a,t&&(r=t(r,a,e)),r}t.ZP=function(e){var t=e.prop,n=e.cssProperty,c=void 0===n?e.prop:n,u=e.themeKey,d=e.transform,f=function(e){if(null==e[t])return null;var n=e[t],f=o(e.theme,u)||{};return(0,i.k9)(e,n,(function(e){var n=s(f,d,e);return e===n&&"string"==typeof e&&(n=s(f,d,"".concat(t).concat("default"===e?"":(0,a.Z)(e)),e)),!1===c?n:(0,r.Z)({},c,n)}))};return f.propTypes={},f.filterProps=[t],f}},57379:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(60023),a=n(239),i=n(35125),o=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:i;return(0,a.Z)(e)}},2676:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(22688);function a(e,t){var n=(0,r.Z)({},t);return Object.keys(e).forEach((function(i){if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.Z)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){var o=e[i]||{},s=t[i];n[i]={},s&&Object.keys(s)?o&&Object.keys(o)?(n[i]=(0,r.Z)({},s),Object.keys(o).forEach((function(e){n[i][e]=a(o[e],s[e])}))):n[i]=s:n[i]=o}else void 0===n[i]&&(n[i]=e[i])})),n}function i(e){var t=e.theme,n=e.name,r=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?a(t.components[n].defaultProps,r):r}},16761:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2676),a=n(7590);function i(e){var t=e.props,n=e.name,i=e.defaultTheme,o=e.themeId,s=(0,a.Z)(i);return o&&(s=s[o]||s),(0,r.Z)({theme:s,name:n,props:t})}},68226:function(e,t,n){"use strict";var r=n(53250),a=n(39815);t.Z=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=r.useContext(a.T);return n&&(e=n,0!==Object.keys(e).length)?n:t}},32921:function(e,t){"use strict";var n,r=function(e){return e},a=(n=r,{configure:function(e){n=e},generate:function(e){return n(e)},reset:function(){n=r}});t.Z=a},49774:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(19452);function a(e){if("string"!=typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},9666:function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r={};return Object.keys(e).forEach((function(a){r[a]=e[a].reduce((function(e,r){if(r){var a=t(r);""!==a&&e.push(a),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},90724:function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,a=arguments.length,i=new Array(a),o=0;o2&&void 0!==arguments[2]?arguments[2]:{clone:!0},s=n.clone?(0,r.Z)({},e):e;return a(e)&&a(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(a(t[r])&&r in e&&a(e[r])?s[r]=o(e[r],t[r],n):n.clone?s[r]=a(t[r])?i(t[r]):t[r]:s[r]=t[r])})),s}},19452:function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n2&&void 0!==arguments[2]?arguments[2]:"Mui",i=a[t];return i?"".concat(n,"-").concat(i):"".concat(r.Z.generate(e),"-").concat(t)}},53083:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(4311);function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",a={};return t.forEach((function(t){a[t]=(0,r.Z)(e,t,n)})),a}},25179:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{Z:function(){return r}})},97419:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(25179);function a(e){return(0,r.Z)(e).defaultView||window}},9787:function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},20955:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(17600),a=n(53250);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,a.useRef(void 0!==t).current),o=a.useState(n),s=(0,r.Z)(o,2),c=s[0],u=s[1];return[i?t:c,a.useCallback((function(e){i||u(e)}),[])]}},57669:function(e,t,n){"use strict";var r=n(53250),a="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;t.Z=a},93638:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(53250),a=n(57669);function i(e){var t=r.useRef(e);return(0,a.Z)((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},73478:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(53250),a=n(9787);function i(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r0&&!n.includes(e.length))throw new TypeError("Expected Uint8Array of length ".concat(n,", not of length=").concat(e.length))}function i(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){a(e);var n=t.outputLen;if(e.lengthr-i&&(this.process(n,0),i=0);for(var o=i;o>a&i),s=Number(n&i),c=r?4:0,u=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+u,s,r)}(n,r-8,BigInt(8*this.length),a),this.process(n,0);var s=(0,u.createView)(e),d=this.outputLen;if(d%4)throw new Error("_sha2: outputLen should be aligned to 32bit");var f=d/4,l=this.get();if(f>l.length)throw new Error("_sha2: outputLen bigger than state");for(var b=0;b1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function i(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length),i=0;i>>0)+(r>>>0);return{h:e+n+(a/Math.pow(2,32)|0)|0,l:0|a}}t.fromBig=a,t.split=i,t.toBig=function(e,t){return BigInt(e>>>0)<>>0)},t.add=o;var s={fromBig:a,split:i,toBig:t.toBig,shrSH:function(e,t,n){return e>>>n},shrSL:function(e,t,n){return e<<32-n|t>>>n},rotrSH:function(e,t,n){return e>>>n|t<<32-n},rotrSL:function(e,t,n){return e<<32-n|t>>>n},rotrBH:function(e,t,n){return e<<64-n|t>>>n-32},rotrBL:function(e,t,n){return e>>>n-32|t<<64-n},rotr32H:function(e,t){return t},rotr32L:function(e,t){return e},rotlSH:function(e,t,n){return e<>>32-n},rotlSL:function(e,t,n){return t<>>32-n},rotlBH:function(e,t,n){return t<>>64-n},rotlBL:function(e,t,n){return e<>>64-n},add:o,add3L:function(e,t,n){return(e>>>0)+(t>>>0)+(n>>>0)},add3H:function(e,t,n,r){return t+n+r+(e/Math.pow(2,32)|0)|0},add4L:function(e,t,n,r){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)},add4H:function(e,t,n,r,a){return t+n+r+a+(e/Math.pow(2,32)|0)|0},add5H:function(e,t,n,r,a,i){return t+n+r+a+i+(e/Math.pow(2,32)|0)|0},add5L:function(e,t,n,r,a){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(a>>>0)}};t.default=s},66451:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},31451:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(67766).default,o=n(65040).default;Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=void 0;var s=n(57274),c=n(59444),u=function(e){i(n,e);var t=o(n);function n(e,a){var i;r(this,n),(i=t.call(this)).finished=!1,i.destroyed=!1,s.default.hash(e);var o=(0,c.toBytes)(a);if(i.iHash=e.create(),"function"!=typeof i.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");i.blockLen=i.iHash.blockLen,i.outputLen=i.iHash.outputLen;var u=i.blockLen,d=new Uint8Array(u);d.set(o.length>u?e.create().update(o).digest():o);for(var f=0;f= 1");var f=(0,s.toBytes)(t),l=(0,s.toBytes)(n),b=new Uint8Array(u),p=o.hmac.create(e,f),h=p._cloneInto().update(l);return{c:c,dkLen:u,asyncTick:d,DK:b,PRF:p,PRFSalt:h}}function u(e,t,n,r,a){return e.destroy(),t.destroy(),r&&r.destroy(),a.fill(0),n}function d(){return(d=a(r().mark((function e(t,n,a,i){var o,d,f,l,b,p,h,y,m,v,g,A,w,x;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=c(t,n,a,i),d=o.c,f=o.dkLen,l=o.asyncTick,b=o.DK,p=o.PRF,h=o.PRFSalt,m=new Uint8Array(4),v=(0,s.createView)(m),g=new Uint8Array(p.outputLen),A=r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=b.subarray(x,x+p.outputLen),v.setInt32(0,w,!1),(y=h._cloneInto(y)).update(m).digestInto(g),t.set(g.subarray(0,t.length)),e.next=6,(0,s.asyncLoop)(d-1,l,(function(e){p._cloneInto(y).update(g).digestInto(g);for(var n=0;n>>32-t};function k(e,t,n,r){return 0===e?t^n^r:1===e?t&n|~t&r:2===e?(t|~n)^r:3===e?t&r|n&~r:t^(n|~r)}var I=new Uint32Array(16),S=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this,64,20,8,!0)).h0=1732584193,e.h1=-271733879,e.h2=-1732584194,e.h3=271733878,e.h4=-1009589776,e}return a(n,[{key:"get",value:function(){return[this.h0,this.h1,this.h2,this.h3,this.h4]}},{key:"set",value:function(e,t,n,r,a){this.h0=0|e,this.h1=0|t,this.h2=0|n,this.h3=0|r,this.h4=0|a}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)I[n]=e.getUint32(t,!0);for(var r=0|this.h0,a=r,i=0|this.h1,o=i,s=0|this.h2,c=s,u=0|this.h3,d=u,f=0|this.h4,p=f,h=0;h<5;h++){for(var y=4-h,m=w[h],v=x[h],S=l[h],E=b[h],C=g[h],T=A[h],O=0;O<16;O++){var P=_(r+k(h,i,s,u)+I[S[O]]+m,C[O])+f|0;r=f,f=u,u=0|_(s,10),s=i,i=P}for(var M=0;M<16;M++){var B=_(a+k(y,o,c,d)+I[E[M]]+v,T[M])+p|0;a=p,p=d,d=0|_(c,10),c=o,o=B}}this.set(this.h1+s+d|0,this.h2+u+p|0,this.h3+f+a|0,this.h4+r+o|0,this.h0+i+c|0)}},{key:"roundClean",value:function(){I.fill(0)}},{key:"destroy",value:function(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}]),n}(s.SHA2);t.RIPEMD160=S,t.ripemd160=(0,c.wrapConstructor)((function(){return new S}))},19818:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(67766).default,o=n(65040).default;Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;var s=n(11258),c=n(59444),u=function(e,t,n){return e&t^e&n^t&n},d=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]),f=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),l=new Uint32Array(64),b=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this,64,32,8,!1)).A=0|f[0],e.B=0|f[1],e.C=0|f[2],e.D=0|f[3],e.E=0|f[4],e.F=0|f[5],e.G=0|f[6],e.H=0|f[7],e}return a(n,[{key:"get",value:function(){return[this.A,this.B,this.C,this.D,this.E,this.F,this.G,this.H]}},{key:"set",value:function(e,t,n,r,a,i,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|a,this.F=0|i,this.G=0|o,this.H=0|s}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)l[n]=e.getUint32(t,!1);for(var r=16;r<64;r++){var a=l[r-15],i=l[r-2],o=(0,c.rotr)(a,7)^(0,c.rotr)(a,18)^a>>>3,s=(0,c.rotr)(i,17)^(0,c.rotr)(i,19)^i>>>10;l[r]=s+l[r-7]+o+l[r-16]|0}for(var f,b=this.A,p=this.B,h=this.C,y=this.D,m=this.E,v=this.F,g=this.G,A=this.H,w=0;w<64;w++){var x=A+((0,c.rotr)(m,6)^(0,c.rotr)(m,11)^(0,c.rotr)(m,25))+((f=m)&v^~f&g)+d[w]+l[w]|0,_=((0,c.rotr)(b,2)^(0,c.rotr)(b,13)^(0,c.rotr)(b,22))+u(b,p,h)|0;A=g,g=v,v=m,m=y+x|0,y=h,h=p,p=b,b=x+_|0}b=b+this.A|0,p=p+this.B|0,h=h+this.C|0,y=y+this.D|0,m=m+this.E|0,v=v+this.F|0,g=g+this.G|0,A=A+this.H|0,this.set(b,p,h,y,m,v,g,A)}},{key:"roundClean",value:function(){l.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),n}(s.SHA2),p=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).A=-1056596264,e.B=914150663,e.C=812702999,e.D=-150054599,e.E=-4191439,e.F=1750603025,e.G=1694076839,e.H=-1090891868,e.outputLen=28,e}return a(n)}(b);t.sha256=(0,c.wrapConstructor)((function(){return new b})),t.sha224=(0,c.wrapConstructor)((function(){return new p}))},62436:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(67766).default,o=n(65040).default,s=n(15771).default;Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;for(var c=n(57274),u=n(66148),d=n(59444),f=[],l=[],b=[],p=BigInt(0),h=BigInt(1),y=BigInt(2),m=BigInt(7),v=BigInt(256),g=BigInt(113),A=0,w=h,x=1,_=0;A<24;A++){var k=[_,(2*x+3*_)%5];x=k[0],_=k[1],f.push(2*(5*_+x)),l.push((A+1)*(A+2)/2%64);for(var I=p,S=0;S<7;S++)(w=(w<>m)*g)%v)&y&&(I^=h<<(h<32?u.default.rotlBH(e,t,n):u.default.rotlSH(e,t,n)},P=function(e,t,n){return n>32?u.default.rotlBL(e,t,n):u.default.rotlSL(e,t,n)};function M(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=new Uint32Array(10),r=24-t;r<24;r++){for(var a=0;a<10;a++)n[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(var i=0;i<10;i+=2)for(var o=(i+8)%10,s=(i+2)%10,c=n[s],u=n[s+1],d=O(c,u,1)^n[o],b=P(c,u,1)^n[o+1],p=0;p<50;p+=10)e[i+p]^=d,e[i+p+1]^=b;for(var h=e[2],y=e[3],m=0;m<24;m++){var v=l[m],g=O(h,y,v),A=P(h,y,v),w=f[m];h=e[w],y=e[w+1],e[w]=g,e[w+1]=A}for(var x=0;x<50;x+=10){for(var _=0;_<10;_++)n[_]=e[x+_];for(var k=0;k<10;k++)e[x+k]^=~n[(k+2)%10]&n[(k+4)%10]}e[0]^=C[r],e[1]^=T[r]}n.fill(0)}t.keccakP=M;var B=function(e){i(n,e);var t=o(n);function n(e,a,i){var o,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(r(this,n),(o=t.call(this)).blockLen=e,o.suffix=a,o.outputLen=i,o.enableXOF=s,o.rounds=u,o.pos=0,o.posOut=0,o.finished=!1,o.destroyed=!1,c.default.number(i),0>=o.blockLen||o.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return o.state=new Uint8Array(200),o.state32=(0,d.u32)(o.state),o}return a(n,[{key:"keccak",value:function(){M(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(e){c.default.exists(this);for(var t=this.blockLen,n=this.state,r=(e=(0,d.toBytes)(e)).length,a=0;a=n&&this.keccak();var i=Math.min(n-this.posOut,a-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}},{key:"xofInto",value:function(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}},{key:"xof",value:function(e){return c.default.number(e),this.xofInto(new Uint8Array(e))}},{key:"digestInto",value:function(e){if(c.default.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(e){var t=this.blockLen,r=this.suffix,a=this.outputLen,i=this.rounds,o=this.enableXOF;return e||(e=new n(t,r,a,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=a,e.enableXOF=o,e.destroyed=this.destroyed,e}}]),n}(d.Hash);t.Keccak=B;var N=function(e,t,n){return(0,d.wrapConstructor)((function(){return new B(t,e,n)}))};t.sha3_224=N(6,144,28),t.sha3_256=N(6,136,32),t.sha3_384=N(6,104,48),t.sha3_512=N(6,72,64),t.keccak_224=N(1,144,28),t.keccak_256=N(1,136,32),t.keccak_384=N(1,104,48),t.keccak_512=N(1,72,64);var R=function(e,t,n){return(0,d.wrapConstructorWithOpts)((function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new B(t,e,void 0===r.dkLen?n:r.dkLen,!0)}))};t.shake128=R(31,168,16),t.shake256=R(31,136,32)},65483:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(67766).default,o=n(65040).default,s=n(15771).default;Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;var c=n(11258),u=n(66148),d=n(59444),f=s(u.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((function(e){return BigInt(e)}))),2),l=f[0],b=f[1],p=new Uint32Array(80),h=new Uint32Array(80),y=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this,128,64,16,!1)).Ah=1779033703,e.Al=-205731576,e.Bh=-1150833019,e.Bl=-2067093701,e.Ch=1013904242,e.Cl=-23791573,e.Dh=-1521486534,e.Dl=1595750129,e.Eh=1359893119,e.El=-1377402159,e.Fh=-1694144372,e.Fl=725511199,e.Gh=528734635,e.Gl=-79577749,e.Hh=1541459225,e.Hl=327033209,e}return a(n,[{key:"get",value:function(){return[this.Ah,this.Al,this.Bh,this.Bl,this.Ch,this.Cl,this.Dh,this.Dl,this.Eh,this.El,this.Fh,this.Fl,this.Gh,this.Gl,this.Hh,this.Hl]}},{key:"set",value:function(e,t,n,r,a,i,o,s,c,u,d,f,l,b,p,h){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|a,this.Cl=0|i,this.Dh=0|o,this.Dl=0|s,this.Eh=0|c,this.El=0|u,this.Fh=0|d,this.Fl=0|f,this.Gh=0|l,this.Gl=0|b,this.Hh=0|p,this.Hl=0|h}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)p[n]=e.getUint32(t),h[n]=e.getUint32(t+=4);for(var r=16;r<80;r++){var a=0|p[r-15],i=0|h[r-15],o=u.default.rotrSH(a,i,1)^u.default.rotrSH(a,i,8)^u.default.shrSH(a,i,7),s=u.default.rotrSL(a,i,1)^u.default.rotrSL(a,i,8)^u.default.shrSL(a,i,7),c=0|p[r-2],d=0|h[r-2],f=u.default.rotrSH(c,d,19)^u.default.rotrBH(c,d,61)^u.default.shrSH(c,d,6),y=u.default.rotrSL(c,d,19)^u.default.rotrBL(c,d,61)^u.default.shrSL(c,d,6),m=u.default.add4L(s,y,h[r-7],h[r-16]),v=u.default.add4H(m,o,f,p[r-7],p[r-16]);p[r]=0|v,h[r]=0|m}for(var g=this.Ah,A=this.Al,w=this.Bh,x=this.Bl,_=this.Ch,k=this.Cl,I=this.Dh,S=this.Dl,E=this.Eh,C=this.El,T=this.Fh,O=this.Fl,P=this.Gh,M=this.Gl,B=this.Hh,N=this.Hl,R=0;R<80;R++){var D=u.default.rotrSH(E,C,14)^u.default.rotrSH(E,C,18)^u.default.rotrBH(E,C,41),j=u.default.rotrSL(E,C,14)^u.default.rotrSL(E,C,18)^u.default.rotrBL(E,C,41),U=E&T^~E&P,L=C&O^~C&M,F=u.default.add5L(N,j,L,b[R],h[R]),Z=u.default.add5H(F,B,D,U,l[R],p[R]),H=0|F,z=u.default.rotrSH(g,A,28)^u.default.rotrBH(g,A,34)^u.default.rotrBH(g,A,39),Q=u.default.rotrSL(g,A,28)^u.default.rotrBL(g,A,34)^u.default.rotrBL(g,A,39),q=g&w^g&_^w&_,V=A&x^A&k^x&k;B=0|P,N=0|M,P=0|T,M=0|O,T=0|E,O=0|C;var J=u.default.add(0|I,0|S,0|Z,0|H);E=J.h,C=J.l,I=0|_,S=0|k,_=0|w,k=0|x,w=0|g,x=0|A;var K=u.default.add3L(H,Q,V);g=u.default.add3H(K,Z,z,q),A=0|K}var G=u.default.add(0|this.Ah,0|this.Al,0|g,0|A);g=G.h,A=G.l;var W=u.default.add(0|this.Bh,0|this.Bl,0|w,0|x);w=W.h,x=W.l;var Y=u.default.add(0|this.Ch,0|this.Cl,0|_,0|k);_=Y.h,k=Y.l;var X=u.default.add(0|this.Dh,0|this.Dl,0|I,0|S);I=X.h,S=X.l;var $=u.default.add(0|this.Eh,0|this.El,0|E,0|C);E=$.h,C=$.l;var ee=u.default.add(0|this.Fh,0|this.Fl,0|T,0|O);T=ee.h,O=ee.l;var te=u.default.add(0|this.Gh,0|this.Gl,0|P,0|M);P=te.h,M=te.l;var ne=u.default.add(0|this.Hh,0|this.Hl,0|B,0|N);B=ne.h,N=ne.l,this.set(g,A,w,x,_,k,I,S,E,C,T,O,P,M,B,N)}},{key:"roundClean",value:function(){p.fill(0),h.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),n}(c.SHA2);t.SHA512=y;var m=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).Ah=-1942145080,e.Al=424955298,e.Bh=1944164710,e.Bl=-1982016298,e.Ch=502970286,e.Cl=855612546,e.Dh=1738396948,e.Dl=1479516111,e.Eh=258812777,e.El=2077511080,e.Fh=2011393907,e.Fl=79989058,e.Gh=1067287976,e.Gl=1780299464,e.Hh=286451373,e.Hl=-1848208735,e.outputLen=28,e}return a(n)}(y),v=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).Ah=573645204,e.Al=-64227540,e.Bh=-1621794909,e.Bl=-934517566,e.Ch=596883563,e.Cl=1867755857,e.Dh=-1774684391,e.Dl=1497426621,e.Eh=-1775747358,e.El=-1467023389,e.Fh=-1101128155,e.Fl=1401305490,e.Gh=721525244,e.Gl=746961066,e.Hh=246885852,e.Hl=-2117784414,e.outputLen=32,e}return a(n)}(y),g=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).Ah=-876896931,e.Al=-1056596264,e.Bh=1654270250,e.Bl=914150663,e.Ch=-1856437926,e.Cl=812702999,e.Dh=355462360,e.Dl=-150054599,e.Eh=1731405415,e.El=-4191439,e.Fh=-1900787065,e.Fl=1750603025,e.Gh=-619958771,e.Gl=1694076839,e.Hh=1203062813,e.Hl=-1090891868,e.outputLen=48,e}return a(n)}(y);t.sha512=(0,d.wrapConstructor)((function(){return new y})),t.sha512_224=(0,d.wrapConstructor)((function(){return new m})),t.sha512_256=(0,d.wrapConstructor)((function(){return new v})),t.sha384=(0,d.wrapConstructor)((function(){return new g}))},59444:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(80294).default,o=n(46228).default;Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;var s=n(66451);if(t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");var c=Array.from({length:256},(function(e,t){return t.toString(16).padStart(2,"0")}));t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");for(var t="",n=0;n=0&&c0&&void 0!==arguments[0]?arguments[0]:32;if(s.crypto&&"function"==typeof s.crypto.getRandomValues)return s.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},88101:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Contracts=void 0;var i=function(){function e(t,n){r(this,e),this.context=t;for(var a=arguments.length,i=new Array(a>2?a-2:0),o=2;o0?n:0,"utf8"),t.readUInt32BE(0)}function b(e){var t=d.ethers.utils.arrayify(e);if(t.length>32)throw new Error("Too long");if(20!==t.length&&32!=t.length)throw new Error("bad input, expect address or bytes32");return d.ethers.utils.zeroPad(t,32)}t.chainIdToDomain=function(e){var t=f.get(e);if(!t)throw new Error("Cannot find corresponding Nomad domain for chainId ".concat(e));return t},t.getHexDomainFromString=function(e){return"0x"+l(e).toString(16)},t.getDomainFromString=l,t.canonizeId=b,t.evmId=function(e){var t=(0,u.arrayify)(e);if(32===t.length)return(0,u.hexlify)(t.slice(12,32));if(20===t.length)return(0,u.hexlify)(t);throw new Error("Invalid id length. expected 20 or 32. Got ".concat(t.length))},t.equalIds=function(e,t){var n=b(e),r=b(t);return n.every((function(e,t){return e===r[t]}))},t.delay=function(e){return new Promise((function(t){return setTimeout(t,e)}))},t.parseInt=function(e){return d.ethers.BigNumber.from(e).toNumber()};var p=function(e){o(n,e);var t=s(n);function n(e){return i(this,n),t.call(this,"Unreachable. You should not see this Error. Please file an issue at https://github.com/nomad-xyz/monorepo, including the full error output. Extra info: ".concat(null!=e?e:"none"))}return a(n)}(c(Error));t.UnreachableError=p;var h=function(e){o(n,e);var t=s(n);function n(e,r){var a;return i(this,n),(a=t.call(this,r)).provider=e,a}return a(n)}(c(Error));t.WithContext=h;var y=function(e){o(n,e);var t=s(n);function n(e,r){var a;return i(this,n),(a=t.call(this,e,"Attempted to access an unknown domain: ".concat(r,".\nHint: have you called `context.registerDomain(...)` yet?"))).name="UnknownDomainError",a.domain=r,a}return a(n)}(h);t.UnknownDomainError=y;var m=function(e){o(n,e);var t=s(n);function n(e,r){var a;i(this,n);var o=e.resolveDomainName(r),s=e.resolveDomain(r);return(a=t.call(this,e,"Missing provider for domain: ".concat(s," : ").concat(o,".\nHint: Have you called `context.registerProvider(").concat(r,", provider)` yet?"))).name="NoProviderError",a.domain=r,a.domainName=o,a.domainNumber=s,a}return a(n)}(h);t.NoProviderError=m},62396:function(e,t,n){"use strict";n.r(t),n.d(t,{ACCOUNT_DISCRIMINATOR_SIZE:function(){return ua},AccountClient:function(){return Yi},AnchorError:function(){return Jr},AnchorProvider:function(){return Br},BN:function(){return _()},BorshAccountsCoder:function(){return da},BorshCoder:function(){return ma},BorshEventCoder:function(){return fa},BorshInstructionCoder:function(){return aa},BorshStateCoder:function(){return ba},EventManager:function(){return $i},EventParser:function(){return eo},IdlError:function(){return qr},LangErrorCode:function(){return Wr},LangErrorMessage:function(){return Yr},MethodsBuilderFactory:function(){return co},Native:function(){return _o},Program:function(){return fo},ProgramError:function(){return Kr},ProgramErrorStack:function(){return Vr},Spl:function(){return Ao},SplTokenCoder:function(){return si},StateClient:function(){return Gi},SystemCoder:function(){return xi},eventDiscriminator:function(){return la},getProvider:function(){return Lr},parseIdlErrors:function(){return Wn},setProvider:function(){return Ur},splitArgsAndCtx:function(){return qi},stateDiscriminator:function(){return pa},toInstruction:function(){return Yn},translateAddress:function(){return $n},translateError:function(){return Gr},utils:function(){return zi},validateAccounts:function(){return Xn},web3:function(){return w}});var r=n(76056),a=n(12293),i=n(76345),o=n(41116),s=n(38780),c=n(17600),u=n(59754),d=n(28994),f=n(25630),l=n(87402),b=n(44348),p=n(31945),h=n(91610),y=n(50491),m=n(61968),v=n(6058),g=n(99983),A=n(5886),w=n(871),x=n(22097),_=n.n(x),k=n(38600),I=n.n(k),S=n(82660),E=n(85959),C=n.n(E),T=n(13190),O=n(60593);function P(e){for(var t=e.length;--t>=0;)e[t]=0}var M=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),B=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),N=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),D=new Array(576);P(D);var j=new Array(60);P(j);var U=new Array(512);P(U);var L=new Array(256);P(L);var F=new Array(29);P(F);var Z,H,z,Q=new Array(30);function q(e,t,n,r,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=a,this.has_stree=e&&e.length}function V(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}P(Q);var J=function(e){return e<256?U[e]:U[256+(e>>>7)]},K=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},G=function(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1},X=function(e,t,n){var r,a,i=new Array(16),o=0;for(r=1;r<=15;r++)o=o+n[r-1]<<1,i[r]=o;for(a=0;a<=t;a++){var s=e[2*a+1];0!==s&&(e[2*a]=Y(i[s]++,s))}},$=function(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},ee=function(e){e.bi_valid>8?K(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},te=function(e,t,n,r){var a=2*t,i=2*n;return e[a]>1;n>=1;n--)ne(e,i,n);a=c;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],ne(e,i,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,i[2*a]=i[2*n]+i[2*r],e.depth[a]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,i[2*n+1]=i[2*r+1]=a,e.heap[1]=a++,ne(e,i,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,a,i,o,s,c=t.dyn_tree,u=t.max_code,d=t.stat_desc.static_tree,f=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,b=t.stat_desc.extra_base,p=t.stat_desc.max_length,h=0;for(i=0;i<=15;i++)e.bl_count[i]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(i=c[2*c[2*(r=e.heap[n])+1]+1]+1)>p&&(i=p,h++),c[2*r+1]=i,r>u||(e.bl_count[i]++,o=0,r>=b&&(o=l[r-b]),s=c[2*r],e.opt_len+=s*(i+o),f&&(e.static_len+=s*(d[2*r+1]+o)));if(0!==h){do{for(i=p-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[p]--,h-=2}while(h>0);for(i=p;0!==i;i--)for(r=e.bl_count[i];0!==r;)(a=e.heap[--n])>u||(c[2*a+1]!==i&&(e.opt_len+=(i-c[2*a+1])*c[2*a],c[2*a+1]=i),r--)}}(e,t),X(i,u,e.bl_count)},ie=function(e,t,n){var r,a,i=-1,o=t[1],s=0,c=7,u=4;for(0===o&&(c=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)a=o,o=t[2*(r+1)+1],++s>=7;r<30;r++)for(Q[r]=a<<7,e=0;e<1<0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),ae(e,e.l_desc),ae(e,e.d_desc),o=function(e){var t;for(ie(e,e.dyn_ltree,e.l_desc.max_code),ie(e,e.dyn_dtree,e.d_desc.max_code),ae(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*R[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(i=e.static_len+3+7>>>3)<=a&&(a=i)):a=i=n+5,n+4<=a&&-1!==t?ce(e,t,n,r):4===e.strategy||i===a?(G(e,2+(r?1:0),3),re(e,D,j)):(G(e,4+(r?1:0),3),function(e,t,n,r){var a;for(G(e,t-257,5),G(e,n-1,5),G(e,r-4,4),a=0;a>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(L[n]+256+1)]++,e.dyn_dtree[2*J(t)]++),e.sym_next===e.sym_end},be=function(e){G(e,2,3),W(e,256,D),function(e){16===e.bi_valid?(K(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)},pe=function(e,t,n,r){for(var a=65535&e|0,i=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{i=i+(a=a+t[r++]|0)|0}while(--o);a%=65521,i%=65521}return a|i<<16|0},he=new Uint32Array(function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}()),ye=function(e,t,n,r){var a=he,i=r+n;e^=-1;for(var o=r;o>>8^a[255&(e^t[o])];return-1^e},me={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ve={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},ge=ue,Ae=de,we=fe,xe=le,_e=be,ke=ve.Z_NO_FLUSH,Ie=ve.Z_PARTIAL_FLUSH,Se=ve.Z_FULL_FLUSH,Ee=ve.Z_FINISH,Ce=ve.Z_BLOCK,Te=ve.Z_OK,Oe=ve.Z_STREAM_END,Pe=ve.Z_STREAM_ERROR,Me=ve.Z_DATA_ERROR,Be=ve.Z_BUF_ERROR,Ne=ve.Z_DEFAULT_COMPRESSION,Re=ve.Z_FILTERED,De=ve.Z_HUFFMAN_ONLY,je=ve.Z_RLE,Ue=ve.Z_FIXED,Le=ve.Z_DEFAULT_STRATEGY,Fe=ve.Z_UNKNOWN,Ze=ve.Z_DEFLATED,He=258,ze=262,Qe=42,qe=113,Ve=666,Je=function(e,t){return e.msg=me[t],t},Ke=function(e){return 2*e-(e>4?9:0)},Ge=function(e){for(var t=e.length;--t>=0;)e[t]=0},We=function(e){var t,n,r,a=e.w_size;r=t=e.hash_size;do{n=e.head[--r],e.head[r]=n>=a?n-a:0}while(--t);r=t=a;do{n=e.prev[--r],e.prev[r]=n>=a?n-a:0}while(--t)},Ye=function(e,t,n){return(t<e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},$e=function(e,t){we(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Xe(e.strm)},et=function(e,t){e.pending_buf[e.pending++]=t},tt=function(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},nt=function(e,t,n,r){var a=e.avail_in;return a>r&&(a=r),0===a?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),n),1===e.state.wrap?e.adler=pe(e.adler,t,a,n):2===e.state.wrap&&(e.adler=ye(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)},rt=function(e,t){var n,r,a=e.max_chain_length,i=e.strstart,o=e.prev_length,s=e.nice_match,c=e.strstart>e.w_size-ze?e.strstart-(e.w_size-ze):0,u=e.window,d=e.w_mask,f=e.prev,l=e.strstart+He,b=u[i+o-1],p=u[i+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+o]===p&&u[n+o-1]===b&&u[n]===u[i]&&u[++n]===u[i+1]){i+=2,n++;do{}while(u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&u[++i]===u[++n]&&io){if(e.match_start=t,o=r,r>=s)break;b=u[i+o-1],p=u[i+o]}}}while((t=f[t&d])>c&&0!=--a);return o<=e.lookahead?o:e.lookahead},at=function(e){var t,n,r,a=e.w_size;do{if(n=e.window_size-e.lookahead-e.strstart,e.strstart>=a+(a-ze)&&(e.window.set(e.window.subarray(a,a+a-n),0),e.match_start-=a,e.strstart-=a,e.block_start-=a,e.insert>e.strstart&&(e.insert=e.strstart),We(e),n+=a),0===e.strm.avail_in)break;if(t=nt(e.strm,e.window,e.strstart+e.lookahead,n),e.lookahead+=t,e.lookahead+e.insert>=3)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=Ye(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=Ye(e,e.ins_h,e.window[r+3-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookaheade.w_size?e.w_size:e.pending_buf_size-5,o=0,s=e.strm.avail_in;do{if(n=65535,a=e.bi_valid+42>>3,e.strm.avail_out(r=e.strstart-e.block_start)+e.strm.avail_in&&(n=r+e.strm.avail_in),n>a&&(n=a),n>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,Xe(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(nt(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===o);return(s-=e.strm.avail_in)&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_watera&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(nt(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water>3,i=(a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a)>e.w_size?e.w_size:a,((r=e.strstart-e.block_start)>=i||(r||t===Ee)&&t!==ke&&0===e.strm.avail_in&&r<=a)&&(n=r>a?a:r,o=t===Ee&&0===e.strm.avail_in&&n===r?1:0,Ae(e,e.block_start,n,o),e.block_start+=n,Xe(e.strm)),o?3:1)},ot=function(e,t){for(var n,r;;){if(e.lookahead=3&&(e.ins_h=Ye(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-ze&&(e.match_length=rt(e,n)),e.match_length>=3)if(r=xe(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=Ye(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Ye(e,e.ins_h,e.window[e.strstart+1]);else r=xe(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&($e(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===Ee?($e(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&($e(e,!1),0===e.strm.avail_out)?1:2},st=function(e,t){for(var n,r,a;;){if(e.lookahead=3&&(e.ins_h=Ye(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-3,r=xe(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=Ye(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&($e(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=xe(e,0,e.window[e.strstart-1]))&&$e(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=xe(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===Ee?($e(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&($e(e,!1),0===e.strm.avail_out)?1:2};function ct(e,t,n,r,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=a}var ut=[new ct(0,0,0,0,it),new ct(4,4,8,4,ot),new ct(4,5,16,8,ot),new ct(4,6,32,32,ot),new ct(4,4,16,16,st),new ct(8,16,32,32,st),new ct(8,16,128,128,st),new ct(8,32,128,256,st),new ct(32,128,258,1024,st),new ct(32,258,258,4096,st)];function dt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Ze,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Ge(this.dyn_ltree),Ge(this.dyn_dtree),Ge(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Ge(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Ge(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var ft=function(e){if(!e)return 1;var t=e.state;return!t||t.strm!==e||t.status!==Qe&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==qe&&t.status!==Ve?1:0},lt=function(e){if(ft(e))return Je(e,Pe);e.total_in=e.total_out=0,e.data_type=Fe;var t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?Qe:qe,e.adler=2===t.wrap?0:1,t.last_flush=-2,ge(t),Te},bt=function(e){var t,n=lt(e);return n===Te&&((t=e.state).window_size=2*t.w_size,Ge(t.head),t.max_lazy_match=ut[t.level].max_lazy,t.good_match=ut[t.level].good_length,t.nice_match=ut[t.level].nice_length,t.max_chain_length=ut[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n},pt=function(e,t,n,r,a,i){if(!e)return Pe;var o=1;if(t===Ne&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),a<1||a>9||n!==Ze||r<8||r>15||t<0||t>9||i<0||i>Ue||8===r&&1!==o)return Je(e,Pe);8===r&&(r=9);var s=new dt;return e.state=s,s.strm=e,s.status=Qe,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<Ce||t<0)return e?Je(e,Pe):Pe;var n=e.state;if(!e.output||0!==e.avail_in&&!e.input||n.status===Ve&&t!==Ee)return Je(e,0===e.avail_out?Be:Pe);var r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(Xe(e),0===e.avail_out)return n.last_flush=-1,Te}else if(0===e.avail_in&&Ke(t)<=Ke(r)&&t!==Ee)return Je(e,Be);if(n.status===Ve&&0!==e.avail_in)return Je(e,Be);if(n.status===Qe&&0===n.wrap&&(n.status=qe),n.status===Qe){var a=Ze+(n.w_bits-8<<4)<<8;if(a|=(n.strategy>=De||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),tt(n,a+=31-a%31),0!==n.strstart&&(tt(n,e.adler>>>16),tt(n,65535&e.adler)),e.adler=1,n.status=qe,Xe(e),0!==n.pending)return n.last_flush=-1,Te}if(57===n.status)if(e.adler=0,et(n,31),et(n,139),et(n,8),n.gzhead)et(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),et(n,255&n.gzhead.time),et(n,n.gzhead.time>>8&255),et(n,n.gzhead.time>>16&255),et(n,n.gzhead.time>>24&255),et(n,9===n.level?2:n.strategy>=De||n.level<2?4:0),et(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(et(n,255&n.gzhead.extra.length),et(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=ye(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(et(n,0),et(n,0),et(n,0),et(n,0),et(n,0),et(n,9===n.level?2:n.strategy>=De||n.level<2?4:0),et(n,3),n.status=qe,Xe(e),0!==n.pending)return n.last_flush=-1,Te;if(69===n.status){if(n.gzhead.extra){for(var i=n.pending,o=(65535&n.gzhead.extra.length)-n.gzindex;n.pending+o>n.pending_buf_size;){var s=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+s),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=s,Xe(e),0!==n.pending)return n.last_flush=-1,Te;i=0,o-=s}var c=new Uint8Array(n.gzhead.extra);n.pending_buf.set(c.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>i&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){var u,d=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>d&&(e.adler=ye(e.adler,n.pending_buf,n.pending-d,d)),Xe(e),0!==n.pending)return n.last_flush=-1,Te;d=0}u=n.gzindexd&&(e.adler=ye(e.adler,n.pending_buf,n.pending-d,d)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){var f,l=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>l&&(e.adler=ye(e.adler,n.pending_buf,n.pending-l,l)),Xe(e),0!==n.pending)return n.last_flush=-1,Te;l=0}f=n.gzindexl&&(e.adler=ye(e.adler,n.pending_buf,n.pending-l,l))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Xe(e),0!==n.pending))return n.last_flush=-1,Te;et(n,255&e.adler),et(n,e.adler>>8&255),e.adler=0}if(n.status=qe,Xe(e),0!==n.pending)return n.last_flush=-1,Te}if(0!==e.avail_in||0!==n.lookahead||t!==ke&&n.status!==Ve){var b=0===n.level?it(n,t):n.strategy===De?function(e,t){for(var n;;){if(0===e.lookahead&&(at(e),0===e.lookahead)){if(t===ke)return 1;break}if(e.match_length=0,n=xe(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&($e(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Ee?($e(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&($e(e,!1),0===e.strm.avail_out)?1:2}(n,t):n.strategy===je?function(e,t){for(var n,r,a,i,o=e.window;;){if(e.lookahead<=He){if(at(e),e.lookahead<=He&&t===ke)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=o[a=e.strstart-1])===o[++a]&&r===o[++a]&&r===o[++a]){i=e.strstart+He;do{}while(r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&r===o[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=xe(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=xe(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&($e(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Ee?($e(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&($e(e,!1),0===e.strm.avail_out)?1:2}(n,t):ut[n.level].func(n,t);if(3!==b&&4!==b||(n.status=Ve),1===b||3===b)return 0===e.avail_out&&(n.last_flush=-1),Te;if(2===b&&(t===Ie?_e(n):t!==Ce&&(Ae(n,0,0,!1),t===Se&&(Ge(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Xe(e),0===e.avail_out))return n.last_flush=-1,Te}return t!==Ee?Te:n.wrap<=0?Oe:(2===n.wrap?(et(n,255&e.adler),et(n,e.adler>>8&255),et(n,e.adler>>16&255),et(n,e.adler>>24&255),et(n,255&e.total_in),et(n,e.total_in>>8&255),et(n,e.total_in>>16&255),et(n,e.total_in>>24&255)):(tt(n,e.adler>>>16),tt(n,65535&e.adler)),Xe(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?Te:Oe)},deflateEnd:function(e){if(ft(e))return Pe;var t=e.state.status;return e.state=null,t===qe?Je(e,Me):Te},deflateSetDictionary:function(e,t){var n=t.length;if(ft(e))return Pe;var r=e.state,a=r.wrap;if(2===a||1===a&&r.status!==Qe||r.lookahead)return Pe;if(1===a&&(e.adler=pe(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===a&&(Ge(r.head),r.strstart=0,r.block_start=0,r.insert=0);var i=new Uint8Array(r.w_size);i.set(t.subarray(n-r.w_size,n),0),t=i,n=r.w_size}var o=e.avail_in,s=e.next_in,c=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,at(r);r.lookahead>=3;){var u=r.strstart,d=r.lookahead-2;do{r.ins_h=Ye(r,r.ins_h,r.window[u+3-1]),r.prev[u&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=u,u++}while(--d);r.strstart=u,r.lookahead=2,at(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=s,e.input=c,e.avail_in=o,r.wrap=a,Te},deflateInfo:"pako deflate (from Nodeca project)"},yt=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},mt={assign:function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var r in n)yt(n,r)&&(e[r]=n[r])}}return e},flattenChunks:function(e){for(var t=0,n=0,r=e.length;n=252?6:At>=248?5:At>=240?4:At>=224?3:At>=192?2:1;gt[254]=gt[254]=1;var wt={string2buf:function(e){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);var t,n,r,a,i,o=e.length,s=0;for(a=0;a>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t},buf2string:function(e,t){var n,r,a=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));var i=new Array(2*a);for(r=0,n=0;n4)i[r++]=65533,n+=s-1;else{for(o&=2===s?31:3===s?15:7;s>1&&n1?i[r++]=65533:o<65536?i[r++]=o:(o-=65536,i[r++]=55296|o>>10&1023,i[r++]=56320|1023&o)}}}return function(e,t){if(t<65534&&e.subarray&&vt)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));for(var n="",r=0;re.length&&(t=e.length);for(var n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+gt[e[n]]>t?n:t}},xt=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},_t=Object.prototype.toString,kt=ve.Z_NO_FLUSH,It=ve.Z_SYNC_FLUSH,St=ve.Z_FULL_FLUSH,Et=ve.Z_FINISH,Ct=ve.Z_OK,Tt=ve.Z_STREAM_END,Ot=ve.Z_DEFAULT_COMPRESSION,Pt=ve.Z_DEFAULT_STRATEGY,Mt=ve.Z_DEFLATED;function Bt(e){this.options=mt.assign({level:Ot,method:Mt,chunkSize:16384,windowBits:15,memLevel:8,strategy:Pt},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xt,this.strm.avail_out=0;var n=ht.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Ct)throw new Error(me[n]);if(t.header&&ht.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r="string"==typeof t.dictionary?wt.string2buf(t.dictionary):"[object ArrayBuffer]"===_t.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=ht.deflateSetDictionary(this.strm,r))!==Ct)throw new Error(me[n]);this._dict_set=!0}}Bt.prototype.push=function(e,t){var n,r,a=this.strm,i=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?Et:kt,"string"==typeof e?a.input=wt.string2buf(e):"[object ArrayBuffer]"===_t.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;;)if(0===a.avail_out&&(a.output=new Uint8Array(i),a.next_out=0,a.avail_out=i),(r===It||r===St)&&a.avail_out<=6)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else{if((n=ht.deflate(a,r))===Tt)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),n=ht.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===Ct;if(0!==a.avail_out){if(r>0&&a.next_out>0)this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;else if(0===a.avail_in)break}else this.onData(a.output)}return!0},Bt.prototype.onData=function(e){this.chunks.push(e)},Bt.prototype.onEnd=function(e){e===Ct&&(this.result=mt.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Nt=16209,Rt=function(e,t){var n,r,a,i,o,s,c,u,d,f,l,b,p,h,y,m,v,g,A,w,x,_,k,I,S=e.state;n=e.next_in,k=e.input,r=n+(e.avail_in-5),a=e.next_out,I=e.output,i=a-(t-e.avail_out),o=a+(e.avail_out-257),s=S.dmax,c=S.wsize,u=S.whave,d=S.wnext,f=S.window,l=S.hold,b=S.bits,p=S.lencode,h=S.distcode,y=(1<>>=g=v>>>24,b-=g,0==(g=v>>>16&255))I[a++]=65535&v;else{if(!(16&g)){if(0==(64&g)){v=p[(65535&v)+(l&(1<>>=g,b-=g),b<15&&(l+=k[n++]<>>=g=v>>>24,b-=g,!(16&(g=v>>>16&255))){if(0==(64&g)){v=h[(65535&v)+(l&(1<s){e.msg="invalid distance too far back",S.mode=Nt;break e}if(l>>>=g,b-=g,w>(g=a-i)){if((g=w-g)>u&&S.sane){e.msg="invalid distance too far back",S.mode=Nt;break e}if(x=0,_=f,0===d){if(x+=c-g,g2;)I[a++]=_[x++],I[a++]=_[x++],I[a++]=_[x++],A-=3;A&&(I[a++]=_[x++],A>1&&(I[a++]=_[x++]))}else{x=a-w;do{I[a++]=I[x++],I[a++]=I[x++],I[a++]=I[x++],A-=3}while(A>2);A&&(I[a++]=I[x++],A>1&&(I[a++]=I[x++]))}break}}break}}while(n>3,l&=(1<<(b-=A<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n=1&&0===T[w];w--);if(x>w&&(x=w),0===w)return a[i++]=20971520,a[i++]=20971520,s.bits=1,0;for(A=1;A0&&(0===e||1!==w))return-1;for(O[1]=0,v=1;v<15;v++)O[v+1]=O[v]+T[v];for(g=0;g852||2===e&&S>592)return 1;for(;;){p=v-k,o[g]+1=b?(h=P[o[g]-b],y=C[o[g]-b]):(h=96,y=0),c=1<>k)+(u-=c)]=p<<24|h<<16|y|0}while(0!==u);for(c=1<>=1;if(0!==c?(E&=c-1,E+=c):E=0,g++,0==--T[v]){if(v===w)break;v=t[n+o[g]]}if(v>x&&(E&f)!==d){for(0===k&&(k=x),l+=A,I=1<<(_=v-k);_+k852||2===e&&S>592)return 1;a[d=E&f]=x<<24|_<<16|l-i|0}}return 0!==E&&(a[l+E]=v-k<<24|64<<16|0),s.bits=x,0},Zt=ve.Z_FINISH,Ht=ve.Z_BLOCK,zt=ve.Z_TREES,Qt=ve.Z_OK,qt=ve.Z_STREAM_END,Vt=ve.Z_NEED_DICT,Jt=ve.Z_STREAM_ERROR,Kt=ve.Z_DATA_ERROR,Gt=ve.Z_MEM_ERROR,Wt=ve.Z_BUF_ERROR,Yt=ve.Z_DEFLATED,Xt=16180,$t=16190,en=16191,tn=16192,nn=16194,rn=16199,an=16200,on=16206,sn=16209,cn=function(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)};function un(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var dn,fn,ln=function(e){if(!e)return 1;var t=e.state;return!t||t.strm!==e||t.mode16211?1:0},bn=function(e){if(ln(e))return Jt;var t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=Xt,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,Qt},pn=function(e){if(ln(e))return Jt;var t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,bn(e)},hn=function(e,t){var n;if(ln(e))return Jt;var r=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Jt:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,pn(e))},yn=function(e,t){if(!e)return Jt;var n=new un;e.state=n,n.strm=e,n.window=null,n.mode=Xt;var r=hn(e,t);return r!==Qt&&(e.state=null),r},mn=!0,vn=function(e){if(mn){dn=new Int32Array(512),fn=new Int32Array(32);for(var t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Ft(1,e.lens,0,288,dn,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Ft(2,e.lens,0,32,fn,0,e.work,{bits:5}),mn=!1}e.lencode=dn,e.lenbits=9,e.distcode=fn,e.distbits=5},gn=function(e,t,n,r){var a,i=e.state;return null===i.window&&(i.wsize=1<=i.wsize?(i.window.set(t.subarray(n-i.wsize,n),0),i.wnext=0,i.whave=i.wsize):((a=i.wsize-i.wnext)>r&&(a=r),i.window.set(t.subarray(n-r,n-r+a),i.wnext),(r-=a)?(i.window.set(t.subarray(n-r,n),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave>>8&255,n.check=ye(n.check,E,2,0),u=0,d=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=sn;break}if((15&u)!==Yt){e.msg="unknown compression method",n.mode=sn;break}if(d-=4,x=8+(15&(u>>>=4)),0===n.wbits&&(n.wbits=x),x>15||x>n.wbits){e.msg="invalid window size",n.mode=sn;break}n.dmax=1<>8&1),512&n.flags&&4&n.wrap&&(E[0]=255&u,E[1]=u>>>8&255,n.check=ye(n.check,E,2,0)),u=0,d=0,n.mode=16182;case 16182:for(;d<32;){if(0===s)break e;s--,u+=r[i++]<>>8&255,E[2]=u>>>16&255,E[3]=u>>>24&255,n.check=ye(n.check,E,4,0)),u=0,d=0,n.mode=16183;case 16183:for(;d<16;){if(0===s)break e;s--,u+=r[i++]<>8),512&n.flags&&4&n.wrap&&(E[0]=255&u,E[1]=u>>>8&255,n.check=ye(n.check,E,2,0)),u=0,d=0,n.mode=16184;case 16184:if(1024&n.flags){for(;d<16;){if(0===s)break e;s--,u+=r[i++]<>>8&255,n.check=ye(n.check,E,2,0)),u=0,d=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&((b=n.length)>s&&(b=s),b&&(n.head&&(x=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(i,i+b),x)),512&n.flags&&4&n.wrap&&(n.check=ye(n.check,r,b,i)),s-=b,i+=b,n.length-=b),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===s)break e;b=0;do{x=r[i+b++],n.head&&x&&n.length<65536&&(n.head.name+=String.fromCharCode(x))}while(x&&b>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=en;break;case 16189:for(;d<32;){if(0===s)break e;s--,u+=r[i++]<>>=7&d,d-=7&d,n.mode=on;break}for(;d<3;){if(0===s)break e;s--,u+=r[i++]<>>=1)){case 0:n.mode=16193;break;case 1:if(vn(n),n.mode=rn,t===zt){u>>>=2,d-=2;break e}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=sn}u>>>=2,d-=2;break;case 16193:for(u>>>=7&d,d-=7&d;d<32;){if(0===s)break e;s--,u+=r[i++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=sn;break}if(n.length=65535&u,u=0,d=0,n.mode=nn,t===zt)break e;case nn:n.mode=16195;case 16195:if(b=n.length){if(b>s&&(b=s),b>c&&(b=c),0===b)break e;a.set(r.subarray(i,i+b),o),s-=b,i+=b,c-=b,o+=b,n.length-=b;break}n.mode=en;break;case 16196:for(;d<14;){if(0===s)break e;s--,u+=r[i++]<>>=5,d-=5,n.ndist=1+(31&u),u>>>=5,d-=5,n.ncode=4+(15&u),u>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=sn;break}n.have=0,n.mode=16197;case 16197:for(;n.have>>=3,d-=3}for(;n.have<19;)n.lens[C[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,k={bits:n.lenbits},_=Ft(0,n.lens,0,19,n.lencode,0,n.work,k),n.lenbits=k.bits,_){e.msg="invalid code lengths set",n.mode=sn;break}n.have=0,n.mode=16198;case 16198:for(;n.have>>16&255,v=65535&S,!((y=S>>>24)<=d);){if(0===s)break e;s--,u+=r[i++]<>>=y,d-=y,n.lens[n.have++]=v;else{if(16===v){for(I=y+2;d>>=y,d-=y,0===n.have){e.msg="invalid bit length repeat",n.mode=sn;break}x=n.lens[n.have-1],b=3+(3&u),u>>>=2,d-=2}else if(17===v){for(I=y+3;d>>=y)),u>>>=3,d-=3}else{for(I=y+7;d>>=y)),u>>>=7,d-=7}if(n.have+b>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=sn;break}for(;b--;)n.lens[n.have++]=x}}if(n.mode===sn)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=sn;break}if(n.lenbits=9,k={bits:n.lenbits},_=Ft(1,n.lens,0,n.nlen,n.lencode,0,n.work,k),n.lenbits=k.bits,_){e.msg="invalid literal/lengths set",n.mode=sn;break}if(n.distbits=6,n.distcode=n.distdyn,k={bits:n.distbits},_=Ft(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,k),n.distbits=k.bits,_){e.msg="invalid distances set",n.mode=sn;break}if(n.mode=rn,t===zt)break e;case rn:n.mode=an;case an:if(s>=6&&c>=258){e.next_out=o,e.avail_out=c,e.next_in=i,e.avail_in=s,n.hold=u,n.bits=d,Rt(e,l),o=e.next_out,a=e.output,c=e.avail_out,i=e.next_in,r=e.input,s=e.avail_in,u=n.hold,d=n.bits,n.mode===en&&(n.back=-1);break}for(n.back=0;m=(S=n.lencode[u&(1<>>16&255,v=65535&S,!((y=S>>>24)<=d);){if(0===s)break e;s--,u+=r[i++]<>g)])>>>16&255,v=65535&S,!(g+(y=S>>>24)<=d);){if(0===s)break e;s--,u+=r[i++]<>>=g,d-=g,n.back+=g}if(u>>>=y,d-=y,n.back+=y,n.length=v,0===m){n.mode=16205;break}if(32&m){n.back=-1,n.mode=en;break}if(64&m){e.msg="invalid literal/length code",n.mode=sn;break}n.extra=15&m,n.mode=16201;case 16201:if(n.extra){for(I=n.extra;d>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;m=(S=n.distcode[u&(1<>>16&255,v=65535&S,!((y=S>>>24)<=d);){if(0===s)break e;s--,u+=r[i++]<>g)])>>>16&255,v=65535&S,!(g+(y=S>>>24)<=d);){if(0===s)break e;s--,u+=r[i++]<>>=g,d-=g,n.back+=g}if(u>>>=y,d-=y,n.back+=y,64&m){e.msg="invalid distance code",n.mode=sn;break}n.offset=v,n.extra=15&m,n.mode=16203;case 16203:if(n.extra){for(I=n.extra;d>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=sn;break}n.mode=16204;case 16204:if(0===c)break e;if(b=l-c,n.offset>b){if((b=n.offset-b)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=sn;break}b>n.wnext?(b-=n.wnext,p=n.wsize-b):p=n.wnext-b,b>n.length&&(b=n.length),h=n.window}else h=a,p=o-n.offset,b=n.length;b>c&&(b=c),c-=b,n.length-=b;do{a[o++]=h[p++]}while(--b);0===n.length&&(n.mode=an);break;case 16205:if(0===c)break e;a[o++]=n.length,c--,n.mode=an;break;case on:if(n.wrap){for(;d<32;){if(0===s)break e;s--,u|=r[i++]<=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xt,this.strm.avail_out=0;var n=An.inflateInit2(this.strm,t.windowBits);if(n!==In)throw new Error(me[n]);if(this.header=new wn,An.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=wt.string2buf(t.dictionary):"[object ArrayBuffer]"===xn.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=An.inflateSetDictionary(this.strm,t.dictionary))!==In))throw new Error(me[n])}function Mn(e,t){var n=new Pn(t);if(n.push(e),n.err)throw n.msg||me[n.err];return n.result}Pn.prototype.push=function(e,t){var n,r,a,i=this.strm,o=this.options.chunkSize,s=this.options.dictionary;if(this.ended)return!1;for(r=t===~~t?t:!0===t?kn:_n,"[object ArrayBuffer]"===xn.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;){for(0===i.avail_out&&(i.output=new Uint8Array(o),i.next_out=0,i.avail_out=o),(n=An.inflate(i,r))===En&&s&&((n=An.inflateSetDictionary(i,s))===In?n=An.inflate(i,r):n===Tn&&(n=En));i.avail_in>0&&n===Sn&&i.state.wrap>0&&0!==e[i.next_in];)An.inflateReset(i),n=An.inflate(i,r);switch(n){case Cn:case Tn:case En:case On:return this.onEnd(n),this.ended=!0,!1}if(a=i.avail_out,i.next_out&&(0===i.avail_out||n===Sn))if("string"===this.options.to){var c=wt.utf8border(i.output,i.next_out),u=i.next_out-c,d=wt.buf2string(i.output,c);i.next_out=u,i.avail_out=o-u,u&&i.output.set(i.output.subarray(c,c+u),0),this.onData(d)}else this.onData(i.output.length===i.next_out?i.output:i.output.subarray(0,i.next_out));if(n!==In||0!==a){if(n===Sn)return n=An.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,!0;if(0===i.avail_in)break}}return!0},Pn.prototype.onData=function(e){this.chunks.push(e)},Pn.prototype.onEnd=function(e){e===In&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=mt.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Bn=Mn,Nn=n(82793),Rn=n.n(Nn),Dn=n(86694),jn=n(5886).Buffer,Un=["message"],Ln=(0,u.Z)().mark(ar),Fn=(0,u.Z)().mark(ir),Zn=Object.freeze({__proto__:null,encode:function(e){return e.reduce((function(e,t){return e+t.toString(16).padStart(2,"0")}),"0x")},decode:function(e){0===e.indexOf("0x")&&(e=e.substr(2)),e.length%2==1&&(e="0"+e);var t=e.match(/.{2}/g);return null===t?A.Buffer.from([]):A.Buffer.from(t.map((function(e){return parseInt(e,16)})))}});function Hn(e){return new TextDecoder("utf-8").decode(e)}function zn(e){return(new TextEncoder).encode(e)}var Qn=Object.freeze({__proto__:null,decode:Hn,encode:zn});function qn(e){return I().encode(e)}var Vn=Object.freeze({__proto__:null,encode:qn,decode:function(e){return I().decode(e)}});function Jn(e){return A.Buffer.from(S.toByteArray(e))}var Kn=Object.freeze({__proto__:null,encode:function(e){return S.fromByteArray(e)},decode:Jn}),Gn=Object.freeze({__proto__:null,hex:Zn,utf8:Qn,bs58:Vn,base64:Kn});function Wn(e){var t=new Map;return e.errors&&e.errors.forEach((function(e){var n,r=null!==(n=e.msg)&&void 0!==n?n:e.name;t.set(e.code,r)})),t}function Yn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e){if("accounts"in e)Xn(e.accounts,t[e.name]);else if(void 0===t[e.name])throw new Error("Invalid arguments: ".concat(e.name," not provided."))}))}function $n(e){return e instanceof w.PublicKey?e:new w.PublicKey(e)}var er=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r){var a,i;(0,h.Z)(this,n);var o=e.message,s=(0,b.Z)(e,Un),c=e.path;return(a=t.call(this,0===c.length?o:"At path: "+c.join(".")+" -- "+o)).value=void 0,a.key=void 0,a.type=void 0,a.refinement=void 0,a.path=void 0,a.branch=void 0,a.failures=void 0,Object.assign((0,y.Z)(a),s),a.name=a.constructor.name,a.failures=function(){var t;return null!=(t=i)?t:i=[e].concat((0,l.Z)(r()))},a}return(0,p.Z)(n)}((0,g.Z)(TypeError));function tr(e){return"object"==typeof e&&null!=e}function nr(e){return"string"==typeof e?JSON.stringify(e):""+e}function rr(e,t,n,r){if(!0!==e){!1===e?e={}:"string"==typeof e&&(e={message:e});var a=t.path,i=t.branch,o=n.type,s=e,c=s.refinement,u=s.message,d=void 0===u?"Expected a value of type `"+o+"`"+(c?" with refinement `"+c+"`":"")+", but received: `"+nr(r)+"`":u;return(0,f.Z)((0,f.Z)({value:r,type:o,refinement:c,key:a[a.length-1],path:a,branch:i},e),{},{message:d})}}function ar(e,t,n,r){var a,i,o,s,c;return(0,u.Z)().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:tr(a=e)&&"function"==typeof a[Symbol.iterator]||(e=[e]),i=(0,d.Z)(e),u.prev=2,i.s();case 4:if((o=i.n()).done){u.next=13;break}if(s=o.value,c=rr(s,t,n,r),u.t0=c,!u.t0){u.next=11;break}return u.next=11,c;case 11:u.next=4;break;case 13:u.next=18;break;case 15:u.prev=15,u.t1=u.catch(2),i.e(u.t1);case 18:return u.prev=18,i.f(),u.finish(18);case 21:case"end":return u.stop()}}),Ln,null,[[2,15,18,21]])}function ir(e,t,n){var r,a,i,o,s,f,b,p,h,y,m,v,g,A,w,x,_,k,I,S,E,C,T,O,P,M,B,N;return(0,u.Z)().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(void 0===n&&(n={}),a=(r=n).path,i=void 0===a?[]:a,o=r.branch,s=void 0===o?[e]:o,f=r.coerce,b=void 0!==f&&f,p=r.mask,h=void 0!==p&&p,y={path:i,branch:s},b&&(e=t.coercer(e,y),h&&"type"!==t.type&&tr(t.schema)&&tr(e)&&!Array.isArray(e)))for(m in e)void 0===t.schema[m]&&delete e[m];v=!0,g=(0,d.Z)(t.validator(e,y)),u.prev=5,g.s();case 7:if((A=g.n()).done){u.next=14;break}return w=A.value,v=!1,u.next=12,[w,void 0];case 12:u.next=7;break;case 14:u.next=19;break;case 16:u.prev=16,u.t0=u.catch(5),g.e(u.t0);case 19:return u.prev=19,g.f(),u.finish(19);case 22:x=(0,d.Z)(t.entries(e,y)),u.prev=23,x.s();case 25:if((_=x.n()).done){u.next=52;break}k=(0,c.Z)(_.value,3),I=k[0],S=k[1],E=k[2],C=ir(S,E,{path:void 0===I?i:[].concat((0,l.Z)(i),[I]),branch:void 0===I?s:[].concat((0,l.Z)(s),[S]),coerce:b,mask:h}),T=(0,d.Z)(C),u.prev=29,T.s();case 31:if((O=T.n()).done){u.next=42;break}if(!(P=O.value)[0]){u.next=39;break}return v=!1,u.next=37,[P[0],void 0];case 37:u.next=40;break;case 39:b&&(S=P[1],void 0===I?e=S:e instanceof Map?e.set(I,S):e instanceof Set?e.add(S):tr(e)&&(e[I]=S));case 40:u.next=31;break;case 42:u.next=47;break;case 44:u.prev=44,u.t1=u.catch(29),T.e(u.t1);case 47:return u.prev=47,T.f(),u.finish(47);case 50:u.next=25;break;case 52:u.next=57;break;case 54:u.prev=54,u.t2=u.catch(23),x.e(u.t2);case 57:return u.prev=57,x.f(),u.finish(57);case 60:if(!v){u.next=79;break}M=(0,d.Z)(t.refiner(e,y)),u.prev=62,M.s();case 64:if((B=M.n()).done){u.next=71;break}return N=B.value,v=!1,u.next=69,[N,void 0];case 69:u.next=64;break;case 71:u.next=76;break;case 73:u.prev=73,u.t3=u.catch(62),M.e(u.t3);case 76:return u.prev=76,M.f(),u.finish(76);case 79:if(u.t4=v,!u.t4){u.next=83;break}return u.next=83,[void 0,e];case 83:case"end":return u.stop()}}),Fn,null,[[5,16,19,22],[23,54,57,60],[29,44,47,50],[62,73,76,79]])}var or=function(){function e(t){var n=this;(0,h.Z)(this,e),this.TYPE=void 0,this.type=void 0,this.schema=void 0,this.coercer=void 0,this.validator=void 0,this.refiner=void 0,this.entries=void 0;var r=t.type,a=t.schema,i=t.validator,o=t.refiner,s=t.coercer,c=void 0===s?function(e){return e}:s,d=t.entries,f=void 0===d?(0,u.Z)().mark((function e(){return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})):d;this.type=r,this.schema=a,this.entries=f,this.coercer=c,this.validator=i?function(e,t){return ar(i(e,t),t,n,e)}:function(){return[]},this.refiner=o?function(e,t){return ar(o(e,t),t,n,e)}:function(){return[]}}return(0,p.Z)(e,[{key:"assert",value:function(e){return function(e,t){var n=ur(e,t);if(n[0])throw n[0]}(e,this)}},{key:"create",value:function(e){return sr(e,this)}},{key:"is",value:function(e){return cr(e,this)}},{key:"mask",value:function(e){return function(e,t){var n=ur(e,t,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}(e,this)}},{key:"validate",value:function(e,t){return void 0===t&&(t={}),ur(e,this,t)}}]),e}();function sr(e,t){var n=ur(e,t,{coerce:!0});if(n[0])throw n[0];return n[1]}function cr(e,t){return!ur(e,t)[0]}function ur(e,t,n){void 0===n&&(n={});var r=ir(e,t,n),a=function(e){var t=e.next(),n=t.done,r=t.value;return n?void 0:r}(r);return a[0]?[new er(a[0],(0,u.Z)().mark((function e(){var t,n,a;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,d.Z)(r),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=11;break}if(a=n.value,e.t0=a[0],!e.t0){e.next=9;break}return e.next=9,a[0];case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[1,13,16,19]])}))),void 0]:[void 0,a[1]]}function dr(e,t){return new or({type:e,schema:null,validator:t})}function fr(e){return new or({type:"array",schema:e,entries:(0,u.Z)().mark((function t(n){var r,a,i,o,s;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e||!Array.isArray(n)){t.next=18;break}r=(0,d.Z)(n.entries()),t.prev=2,r.s();case 4:if((a=r.n()).done){t.next=10;break}return i=(0,c.Z)(a.value,2),o=i[0],s=i[1],t.next=8,[o,s,e];case 8:t.next=4;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),r.e(t.t0);case 15:return t.prev=15,r.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])})),coercer:function(e){return Array.isArray(e)?e.slice():e},validator:function(e){return Array.isArray(e)||"Expected an array value, but received: "+nr(e)}})}function lr(e){var t=nr(e),n=typeof e;return new or({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:function(n){return n===e||"Expected the literal `"+t+"`, but received: "+nr(n)}})}function br(e){return new or((0,f.Z)((0,f.Z)({},e),{},{validator:function(t,n){return null===t||e.validator(t,n)},refiner:function(t,n){return null===t||e.refiner(t,n)}}))}function pr(){return dr("number",(function(e){return"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+nr(e)}))}function hr(e){return new or((0,f.Z)((0,f.Z)({},e),{},{validator:function(t,n){return void 0===t||e.validator(t,n)},refiner:function(t,n){return void 0===t||e.refiner(t,n)}}))}function yr(){return dr("string",(function(e){return"string"==typeof e||"Expected a string, but received: "+nr(e)}))}function mr(e){var t=Object.keys(e);return new or({type:"type",schema:e,entries:(0,u.Z)().mark((function n(r){var a,i,o;return(0,u.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!tr(r)){n.next=9;break}a=0,i=t;case 2:if(!(a0&&n.sign.apply(n,(0,l.Z)(r)),o=n._compile(),s=o.serialize(),c=n._serialize(s).toString("base64"),d={encoding:"base64",commitment:null!=a?a:t.commitment},i&&(f=(Array.isArray(i)?i:o.nonProgramIds()).map((function(e){return e.toBase58()})),d.accounts={encoding:"base64",addresses:f}),r&&(d.sigVerify=!0),b=[c,d],e.t0=sr,e.next=8,t._rpcRequest("simulateTransaction",b);case 8:if(e.t1=e.sent,e.t2=Pr,!("error"in(p=(0,e.t0)(e.t1,e.t2)))){e.next=14;break}throw"data"in p.error&&(h=p.error.data.logs)&&Array.isArray(h)&&(y="\n "+h.join("\n "),console.error(p.error.message,y)),new w.SendTransactionError("failed to simulate transaction: "+p.error.message,h);case 14:return e.abrupt("return",p.result);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Sr=Er(gr());function Er(e){return vr([mr({jsonrpc:lr("2.0"),id:yr(),result:e}),mr({jsonrpc:lr("2.0"),id:yr(),error:mr({code:gr(),message:yr(),data:hr(dr("any",(function(){return!0})))})})])}var Cr,Tr,Or,Pr=(Tr=mr({err:br(vr([mr({}),yr()])),logs:br(fr(yr())),accounts:hr(br(fr(br(mr({executable:dr("boolean",(function(e){return"boolean"==typeof e})),owner:yr(),lamports:pr(),data:fr(yr()),rentEpoch:hr(pr())}))))),unitsConsumed:hr(pr())}),function(e,t,n){return new or((0,f.Z)((0,f.Z)({},e),{},{coercer:function(r,a){return cr(r,t)?e.coercer(n(r),a):e.coercer(r,a)}}))}(Er(Cr=mr({context:mr({slot:pr()}),value:Tr})),Sr,(function(e){return"error"in e?e:(0,f.Z)((0,f.Z)({},e),{},{result:sr(e.result,Cr)})}))),Mr=Object.freeze({__proto__:null,invoke:(Or=(0,o.Z)((0,u.Z)().mark((function e(t,n,r,a){var i;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=$n(t),a||(a=Lr()),(i=new w.Transaction).add(new w.TransactionInstruction({programId:t,keys:null!=n?n:[],data:r})),void 0!==a.sendAndConfirm){e.next=4;break}throw new Error("This function requires 'Provider.sendAndConfirm' to be implemented.");case 4:return e.next=6,a.sendAndConfirm(i,[]);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)}))),function(e,t,n,r){return Or.apply(this,arguments)}),getMultipleAccounts:Ar,simulateTransaction:kr}),Br=function(){function e(t,n,r){(0,h.Z)(this,e),this.connection=t,this.wallet=n,this.opts=r,this.publicKey=n.publicKey}var t,n,r;return(0,p.Z)(e,[{key:"sendAndConfirm",value:(r=(0,o.Z)((0,u.Z)().mark((function e(t,n,r){var a,i,o,s;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===r&&(r=this.opts),t.feePayer=this.wallet.publicKey,e.next=4,this.connection.getRecentBlockhash(r.preflightCommitment);case 4:return t.recentBlockhash=e.sent.blockhash,e.next=7,this.wallet.signTransaction(t);case 7:return t=e.sent,(null!=n?n:[]).forEach((function(e){t.partialSign(e)})),i=t.serialize(),e.prev=10,e.next=13,Rr(this.connection,i,r);case 13:return e.abrupt("return",e.sent);case 16:if(e.prev=16,e.t0=e.catch(10),!(e.t0 instanceof jr)){e.next=26;break}return e.next=21,this.connection.getTransaction(qn(t.signature),{commitment:"confirmed"});case 21:if(!(o=e.sent)){e.next=25;break}throw(s=null===(a=o.meta)||void 0===a?void 0:a.logMessages)?new w.SendTransactionError(e.t0.message,s):e.t0;case 25:case 26:throw e.t0;case 27:case"end":return e.stop()}}),e,this,[[10,16]])}))),function(e,t,n){return r.apply(this,arguments)})},{key:"sendAll",value:(n=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r,a,i,o,s,c,d=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===n&&(n=this.opts),e.next=3,this.connection.getRecentBlockhash(n.preflightCommitment);case 3:return r=e.sent,a=t.map((function(e){var t,n=e.tx,a=null!==(t=e.signers)&&void 0!==t?t:[];return n.feePayer=d.wallet.publicKey,n.recentBlockhash=r.blockhash,a.forEach((function(e){n.partialSign(e)})),n})),e.next=7,this.wallet.signAllTransactions(a);case 7:i=e.sent,o=[],s=0;case 10:if(!(s1)return null;r=s[0].match(/([0-9]+)/g)[0]}try{a=parseInt(r)}catch(e){return null}var c=t.get(a);return void 0!==c||void 0!==(c=Yr.get(a))?new n(a,c,e.logs):null}}]),n}((0,g.Z)(Error));function Gr(e,t){zr("debug-logs")&&console.log("Translating error:",e);var n=Jr.parse(e.logs);if(n)return n;var r=Kr.parse(e,t);if(r)return r;if(e.logs){var a={get:function(t,n){return"programErrorStack"===n?t.programErrorStack.stack:"program"===n?t.programErrorStack.stack[e.programErrorStack.stack.length-1]:Reflect.get.apply(Reflect,arguments)}};return e.programErrorStack=Vr.parse(e.logs),new Proxy(e,a)}return e}var Wr={InstructionMissing:100,InstructionFallbackNotFound:101,InstructionDidNotDeserialize:102,InstructionDidNotSerialize:103,IdlInstructionStub:1e3,IdlInstructionInvalidProgram:1001,ConstraintMut:2e3,ConstraintHasOne:2001,ConstraintSigner:2002,ConstraintRaw:2003,ConstraintOwner:2004,ConstraintRentExempt:2005,ConstraintSeeds:2006,ConstraintExecutable:2007,ConstraintState:2008,ConstraintAssociated:2009,ConstraintAssociatedInit:2010,ConstraintClose:2011,ConstraintAddress:2012,ConstraintZero:2013,ConstraintTokenMint:2014,ConstraintTokenOwner:2015,ConstraintMintMintAuthority:2016,ConstraintMintFreezeAuthority:2017,ConstraintMintDecimals:2018,ConstraintSpace:2019,RequireViolated:2500,RequireEqViolated:2501,RequireKeysEqViolated:2502,RequireNeqViolated:2503,RequireKeysNeqViolated:2504,RequireGtViolated:2505,RequireGteViolated:2506,AccountDiscriminatorAlreadySet:3e3,AccountDiscriminatorNotFound:3001,AccountDiscriminatorMismatch:3002,AccountDidNotDeserialize:3003,AccountDidNotSerialize:3004,AccountNotEnoughKeys:3005,AccountNotMutable:3006,AccountOwnedByWrongProgram:3007,InvalidProgramId:3008,InvalidProgramExecutable:3009,AccountNotSigner:3010,AccountNotSystemOwned:3011,AccountNotInitialized:3012,AccountNotProgramData:3013,AccountNotAssociatedTokenAccount:3014,AccountSysvarMismatch:3015,AccountReallocExceedsLimit:3016,AccountDuplicateReallocs:3017,StateInvalidAddress:4e3,DeclaredProgramIdMismatch:4100,Deprecated:5e3},Yr=new Map([[Wr.InstructionMissing,"8 byte instruction identifier not provided"],[Wr.InstructionFallbackNotFound,"Fallback functions are not supported"],[Wr.InstructionDidNotDeserialize,"The program could not deserialize the given instruction"],[Wr.InstructionDidNotSerialize,"The program could not serialize the given instruction"],[Wr.IdlInstructionStub,"The program was compiled without idl instructions"],[Wr.IdlInstructionInvalidProgram,"The transaction was given an invalid program for the IDL instruction"],[Wr.ConstraintMut,"A mut constraint was violated"],[Wr.ConstraintHasOne,"A has_one constraint was violated"],[Wr.ConstraintSigner,"A signer constraint was violated"],[Wr.ConstraintRaw,"A raw constraint was violated"],[Wr.ConstraintOwner,"An owner constraint was violated"],[Wr.ConstraintRentExempt,"A rent exemption constraint was violated"],[Wr.ConstraintSeeds,"A seeds constraint was violated"],[Wr.ConstraintExecutable,"An executable constraint was violated"],[Wr.ConstraintState,"A state constraint was violated"],[Wr.ConstraintAssociated,"An associated constraint was violated"],[Wr.ConstraintAssociatedInit,"An associated init constraint was violated"],[Wr.ConstraintClose,"A close constraint was violated"],[Wr.ConstraintAddress,"An address constraint was violated"],[Wr.ConstraintZero,"Expected zero account discriminant"],[Wr.ConstraintTokenMint,"A token mint constraint was violated"],[Wr.ConstraintTokenOwner,"A token owner constraint was violated"],[Wr.ConstraintMintMintAuthority,"A mint mint authority constraint was violated"],[Wr.ConstraintMintFreezeAuthority,"A mint freeze authority constraint was violated"],[Wr.ConstraintMintDecimals,"A mint decimals constraint was violated"],[Wr.ConstraintSpace,"A space constraint was violated"],[Wr.RequireViolated,"A require expression was violated"],[Wr.RequireEqViolated,"A require_eq expression was violated"],[Wr.RequireKeysEqViolated,"A require_keys_eq expression was violated"],[Wr.RequireNeqViolated,"A require_neq expression was violated"],[Wr.RequireKeysNeqViolated,"A require_keys_neq expression was violated"],[Wr.RequireGtViolated,"A require_gt expression was violated"],[Wr.RequireGteViolated,"A require_gte expression was violated"],[Wr.AccountDiscriminatorAlreadySet,"The account discriminator was already set on this account"],[Wr.AccountDiscriminatorNotFound,"No 8 byte discriminator was found on the account"],[Wr.AccountDiscriminatorMismatch,"8 byte discriminator did not match what was expected"],[Wr.AccountDidNotDeserialize,"Failed to deserialize the account"],[Wr.AccountDidNotSerialize,"Failed to serialize the account"],[Wr.AccountNotEnoughKeys,"Not enough account keys given to the instruction"],[Wr.AccountNotMutable,"The given account is not mutable"],[Wr.AccountOwnedByWrongProgram,"The given account is owned by a different program than expected"],[Wr.InvalidProgramId,"Program ID was not as expected"],[Wr.InvalidProgramExecutable,"Program account is not executable"],[Wr.AccountNotSigner,"The given account did not sign"],[Wr.AccountNotSystemOwned,"The given account is not owned by the system program"],[Wr.AccountNotInitialized,"The program expected this account to be already initialized"],[Wr.AccountNotProgramData,"The given account is not a program data account"],[Wr.AccountNotAssociatedTokenAccount,"The given account is not the associated token account"],[Wr.AccountSysvarMismatch,"The given public key does not match the required sysvar"],[Wr.AccountReallocExceedsLimit,"The account reallocation exceeds the MAX_PERMITTED_DATA_INCREASE limit"],[Wr.AccountDuplicateReallocs,"The account was duplicated for more than one reallocation"],[Wr.StateInvalidAddress,"The given state account does not have the correct address"],[Wr.DeclaredProgramIdMismatch,"The declared program id does not match the actual program id"],[Wr.Deprecated,"The API being used is deprecated and should no longer be used"]]),Xr=function(){return Xr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;if("struct"===t.type.kind){var a=t.type.fields.map((function(t){return e.fieldLayout(t,n)}));return O.struct(a,r)}if("enum"===t.type.kind){var i=t.type.variants.map((function(t){var r=C()(t.name);if(void 0===t.fields)return O.struct([],r);var a=t.fields.map((function(t){if(!t.hasOwnProperty("name"))throw new Error("Tuple enum variants not yet implemented.");return e.fieldLayout(t,n)}));return O.struct(a,r)}));return void 0!==r?O.rustEnum(i).replicate(r):O.rustEnum(i,r)}throw new Error("Unknown type kint: ".concat(t))}}]),e}(),aa=function(){function e(t){var n=this;(0,h.Z)(this,e),this.idl=t,this.ixLayout=e.parseIxLayout(t);var r=new Map;t.instructions.forEach((function(e){var t=oa("global",e.name);r.set(I().encode(t),{layout:n.ixLayout.get(e.name),name:e.name})})),t.state&&t.state.methods.map((function(e){var t=oa("state",e.name);r.set(I().encode(t),{layout:n.ixLayout.get(e.name),name:e.name})})),this.sighashLayouts=r}return(0,p.Z)(e,[{key:"encode",value:function(e,t){return this._encode("global",e,t)}},{key:"encodeState",value:function(e,t){return this._encode("state",e,t)}},{key:"_encode",value:function(e,t,n){var r=A.Buffer.alloc(1e3),a=C()(t),i=this.ixLayout.get(a);if(!i)throw new Error("Unknown method: ".concat(a));var o=i.encode(n,r),s=r.slice(0,o);return A.Buffer.concat([oa(e,t),s])}},{key:"decode",value:function(e){"string"==typeof e&&(e="hex"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"hex")?A.Buffer.from(e,"hex"):I().decode(e));var t=I().encode(e.slice(0,8)),n=e.slice(8),r=this.sighashLayouts.get(t);return r?{data:r.layout.decode(n),name:r.name}:null}},{key:"format",value:function(e,t){return ia.format(e,t,this.idl)}}],[{key:"parseIxLayout",value:function(e){var t=(e.state?e.state.methods:[]).map((function(t){var n=t.args.map((function(t){var n,r;return ra.fieldLayout(t,Array.from([].concat((0,l.Z)(null!==(n=e.accounts)&&void 0!==n?n:[]),(0,l.Z)(null!==(r=e.types)&&void 0!==r?r:[]))))})),r=C()(t.name);return[r,O.struct(n,r)]})).concat(e.instructions.map((function(t){var n=t.args.map((function(t){var n,r;return ra.fieldLayout(t,Array.from([].concat((0,l.Z)(null!==(n=e.accounts)&&void 0!==n?n:[]),(0,l.Z)(null!==(r=e.types)&&void 0!==r?r:[]))))})),r=C()(t.name);return[r,O.struct(n,r)]})));return new Map(t)}}]),e}(),ia=function(){function e(){(0,h.Z)(this,e)}return(0,p.Z)(e,null,[{key:"format",value:function(t,n,r){var a=r.instructions.filter((function(e){return t.name===e.name}))[0];if(void 0===a)return console.error("Invalid instruction given"),null;var i=a.args.map((function(n){return{name:n.name,type:e.formatIdlType(n.type),data:e.formatIdlData(n,t.data[n.name],r.types)}})),o=e.flattenIdlAccounts(a.accounts);return{args:i,accounts:n.map((function(e,t){return t");if("option"in e)return"Option<".concat(this.formatIdlType(e.option),">");if("defined"in e)return e.defined;if("array"in e)return"Array<".concat(e.array[0],"; ").concat(e.array[1],">");throw new Error("Unknown IDL type: ".concat(e))}},{key:"formatIdlData",value:function(t,n,r){var a=this;if("string"==typeof t.type)return n.toString();if(t.type.hasOwnProperty("vec"))return"["+n.map((function(e){return a.formatIdlData({name:"",type:t.type.vec},e)})).join(", ")+"]";if(t.type.hasOwnProperty("option"))return null===n?"null":this.formatIdlData({name:"",type:t.type.option},n,r);if(t.type.hasOwnProperty("defined")){if(void 0===r)throw new Error("User defined types not provided");var i=r.filter((function(e){return e.name===t.type.defined}));if(1!==i.length)throw new Error("Type not found: ".concat(t.type.defined));return e.formatIdlDataDefined(i[0],n,r)}return"unknown"}},{key:"formatIdlDataDefined",value:function(t,n,r){if("struct"===t.type.kind){var a=t.type;return"{ "+Object.keys(n).map((function(t){var i=a.fields.filter((function(e){return e.name===t}))[0];if(void 0===i)throw new Error("Unable to find type");return t+": "+e.formatIdlData(i,n[t],r)})).join(", ")+" }"}if(0===t.type.variants.length)return"{}";if(t.type.variants[0].name){var i=t.type.variants,o=Object.keys(n)[0],s=n[o],c=Object.keys(s).map((function(t){var n,a=s[t],c=null===(n=i[o])||void 0===n?void 0:n.filter((function(e){return e.name===t}))[0];if(void 0===c)throw new Error("Unable to find variant");return t+": "+e.formatIdlData(c,a,r)})).join(", "),u=C()(o,{pascalCase:!0});return 0===c.length?u:"".concat(u," { ").concat(c," }")}return"Tuple formatting not yet implemented"}},{key:"flattenIdlAccounts",value:function(t,n){return t.map((function(t){var r=function(e){var t=e.replace(/([A-Z])/g," $1");return t.charAt(0).toUpperCase()+t.slice(1)}(t.name);if(t.hasOwnProperty("accounts")){var a=n?"".concat(n," > ").concat(r):r;return e.flattenIdlAccounts(t.accounts,a)}return(0,f.Z)((0,f.Z)({},t),{},{name:n?"".concat(n," > ").concat(r):r})})).flat()}}]),e}();function oa(e,t){var n,r="".concat(e,":").concat((void 0===n&&(n={}),function(e,t){return void 0===t&&(t={}),function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,r=void 0===n?ea:n,a=t.stripRegexp,i=void 0===a?ta:a,o=t.transform,s=void 0===o?$r:o,c=t.delimiter,u=void 0===c?" ":c,d=na(na(e,r,"$1\0$2"),i,"\0"),f=0,l=d.length;"\0"===d.charAt(f);)f++;for(;"\0"===d.charAt(l-1);)l--;return d.slice(f,l).split("\0").map(s).join(u)}(e,Xr({delimiter:"."},t))}(t,Xr({delimiter:"_"},n))));return A.Buffer.from(T.sha256.digest(r)).slice(0,8)}function sa(e,t){if("enum"===t.type.kind){var n=t.type.variants.map((function(t){return void 0===t.fields?0:t.fields.map((function(t){if("object"!=typeof t||!("name"in t))throw new Error("Tuple enum variants not yet implemented.");return ca(e,t.type)})).reduce((function(e,t){return e+t}))}));return Math.max.apply(Math,(0,l.Z)(n))+1}return void 0===t.type.fields?0:t.type.fields.map((function(t){return ca(e,t.type)})).reduce((function(e,t){return e+t}),0)}function ca(e,t){var n,r;switch(t){case"bool":case"u8":case"i8":case"bytes":case"string":return 1;case"i16":case"u16":return 2;case"u32":case"i32":case"f32":return 4;case"u64":case"i64":case"f64":return 8;case"u128":case"i128":return 16;case"publicKey":return 32;default:if("vec"in t)return 1;if("option"in t)return 1+ca(e,t.option);if("coption"in t)return 4+ca(e,t.coption);if("defined"in t){var a=null!==(r=null===(n=e.types)||void 0===n?void 0:n.filter((function(e){return e.name===t.defined})))&&void 0!==r?r:[];if(1!==a.length)throw new qr("Type not found: ".concat(JSON.stringify(t)));return sa(e,a[0])}if("array"in t){var i=t.array[0],o=t.array[1];return ca(e,i)*o}throw new Error("Invalid type ".concat(JSON.stringify(t)))}}var ua=8,da=function(){function e(t){if((0,h.Z)(this,e),void 0!==t.accounts){var n=t.accounts.map((function(e){return[e.name,ra.typeDefLayout(e,t.types)]}));this.accountLayouts=new Map(n),this.idl=t}else this.accountLayouts=new Map}var t;return(0,p.Z)(e,[{key:"encode",value:(t=(0,o.Z)((0,u.Z)().mark((function t(n,r){var a,i,o,s,c;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=A.Buffer.alloc(1e3),i=this.accountLayouts.get(n)){t.next=3;break}throw new Error("Unknown account: ".concat(n));case 3:return o=i.encode(r,a),s=a.slice(0,o),c=e.accountDiscriminator(n),t.abrupt("return",A.Buffer.concat([c,s]));case 6:case"end":return t.stop()}}),t,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"decode",value:function(t,n){if(e.accountDiscriminator(t).compare(n.slice(0,8)))throw new Error("Invalid account discriminator");return this.decodeUnchecked(t,n)}},{key:"decodeUnchecked",value:function(e,t){var n=t.slice(8),r=this.accountLayouts.get(e);if(!r)throw new Error("Unknown account: ".concat(e));return r.decode(n)}},{key:"memcmp",value:function(t,n){var r=e.accountDiscriminator(t);return{offset:0,bytes:I().encode(n?A.Buffer.concat([r,n]):r)}}},{key:"size",value:function(e){var t;return 8+(null!==(t=sa(this.idl,e))&&void 0!==t?t:0)}}],[{key:"accountDiscriminator",value:function(e){return A.Buffer.from(T.sha256.digest("account:".concat(C()(e,{pascalCase:!0})))).slice(0,8)}}]),e}(),fa=function(){function e(t){if((0,h.Z)(this,e),void 0!==t.events){var n=t.events.map((function(e){var n={name:e.name,type:{kind:"struct",fields:e.fields.map((function(e){return{name:e.name,type:e.type}}))}};return[e.name,ra.typeDefLayout(n,t.types)]}));this.layouts=new Map(n),this.discriminators=new Map(void 0===t.events?[]:t.events.map((function(e){return[S.fromByteArray(la(e.name)),e.name]})))}else this.layouts=new Map}return(0,p.Z)(e,[{key:"decode",value:function(e){var t;try{t=A.Buffer.from(S.toByteArray(e))}catch(e){return null}var n=S.fromByteArray(t.slice(0,8)),r=this.discriminators.get(n);if(void 0===r)return null;var a=this.layouts.get(r);if(!a)throw new Error("Unknown event: ".concat(r));return{data:a.decode(t.slice(8)),name:r}}}]),e}();function la(e){return A.Buffer.from(T.sha256.digest("event:".concat(e))).slice(0,8)}var ba=function(){function e(t){if((0,h.Z)(this,e),void 0===t.state)throw new Error("Idl state not defined.");this.layout=ra.typeDefLayout(t.state.struct,t.types)}var t;return(0,p.Z)(e,[{key:"encode",value:(t=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r,a,i,o;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=A.Buffer.alloc(1e3),a=this.layout.encode(n,r),e.next=4,pa(t);case 4:return i=e.sent,o=r.slice(0,a),e.abrupt("return",A.Buffer.concat([i,o]));case 7:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"decode",value:function(e){var t=e.slice(8);return this.layout.decode(t)}}]),e}();function pa(e){return ha.apply(this,arguments)}function ha(){return(ha=(0,o.Z)((0,u.Z)().mark((function e(t){var n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=zr("anchor-deprecated-state")?"account":"state",e.abrupt("return",A.Buffer.from(T.sha256.digest("".concat(n,":").concat(t))).slice(0,8));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ya=function(){function e(t){if((0,h.Z)(this,e),void 0!==t.types){var n=t.types.map((function(e){return[e.name,ra.typeDefLayout(e,t.types)]}));this.typeLayouts=new Map(n),this.idl=t}else this.typeLayouts=new Map}return(0,p.Z)(e,[{key:"encode",value:function(e,t){var n=A.Buffer.alloc(1e3),r=this.typeLayouts.get(e);if(!r)throw new Error("Unknown type: ".concat(e));var a=r.encode(t,n);return n.slice(0,a)}},{key:"decode",value:function(e,t){var n=this.typeLayouts.get(e);if(!n)throw new Error("Unknown type: ".concat(e));return n.decode(t)}}]),e}(),ma=(0,p.Z)((function e(t){(0,h.Z)(this,e),this.instruction=new aa(t),this.accounts=new da(t),this.events=new fa(t),t.state&&(this.state=new ba(t)),this.types=new ya(t)})),va="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},ga=function(){function e(t,n){if((0,h.Z)(this,e),!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=n}return(0,p.Z)(e,[{key:"makeDestinationObject",value:function(){return{}}},{key:"decode",value:function(e,t){throw new Error("Layout is abstract")}},{key:"encode",value:function(e,t,n){throw new Error("Layout is abstract")}},{key:"getSpan",value:function(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(e){var t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}},{key:"fromArray",value:function(e){}}]),e}(),Aa=ga,wa=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,p.Z)(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}(ga),xa=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r,a){var i;if((0,h.Z)(this,n),!(e instanceof ga))throw new TypeError("layout must be a Layout");if(void 0===r)r=0;else if(!Number.isInteger(r))throw new TypeError("offset must be integer or undefined");return(i=t.call(this,e.span,a||e.property)).layout=e,i.offset=r,i}return(0,p.Z)(n,[{key:"isCount",value:function(){return this.layout instanceof _a||this.layout instanceof ka}},{key:"decode",value:function(e,t){return void 0===t&&(t=0),this.layout.decode(e,t+this.offset)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),this.layout.encode(e,t,n+this.offset)}}]),n}(wa),_a=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r){var a;if((0,h.Z)(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return(0,i.Z)(a)}return(0,p.Z)(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readUIntLE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeUIntLE(e,n,this.span),this.span}}]),n}(ga),ka=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r){var a;if((0,h.Z)(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return(0,i.Z)(a)}return(0,p.Z)(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readUIntBE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeUIntBE(e,n,this.span),this.span}}]),n}(ga),Ia=Math.pow(2,32);function Sa(e){var t=Math.floor(e/Ia);return{hi32:t,lo32:e-t*Ia}}function Ea(e,t){return e*Ia+t}var Ca=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e){return(0,h.Z)(this,n),t.call(this,8,e)}return(0,p.Z)(n,[{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.readUInt32LE(t);return Ea(e.readUInt32LE(t+4),n)}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=Sa(e);return t.writeUInt32LE(r.lo32,n),t.writeUInt32LE(r.hi32,n+4),8}}]),n}(ga),Ta=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e){return(0,h.Z)(this,n),t.call(this,8,e)}return(0,p.Z)(n,[{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.readUInt32LE(t);return Ea(e.readInt32LE(t+4),n)}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=Sa(e);return t.writeUInt32LE(r.lo32,n),t.writeInt32LE(r.hi32,n+4),8}}]),n}(ga),Oa=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r,a){var i;if((0,h.Z)(this,n),!Array.isArray(e)||!e.reduce((function(e,t){return e&&t instanceof ga}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof r&&void 0===a&&(a=r,r=void 0);var o,s=(0,d.Z)(e);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(0>c.span&&void 0===c.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(e){s.e(e)}finally{s.f()}var u=-1;try{u=e.reduce((function(e,t){return e+t.getSpan()}),0)}catch(e){}return(i=t.call(this,u,r)).fields=e,i.decodePrefixes=!!a,i}return(0,p.Z)(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=0;try{n=this.fields.reduce((function(n,r){var a=r.getSpan(e,t);return t+=a,n+a}),0)}catch(e){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n,r=this.makeDestinationObject(),a=(0,d.Z)(this.fields);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(void 0!==i.property&&(r[i.property]=i.decode(e,t)),t+=i.getSpan(e,t),this.decodePrefixes&&e.length===t)break}}catch(e){a.e(e)}finally{a.f()}return r}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r,a=n,i=0,o=0,s=(0,d.Z)(this.fields);try{for(s.s();!(r=s.n()).done;){var c=r.value,u=c.span;if(o=0u&&(u=c.getSpan(t,n)))}i=n,n+=u}}catch(e){s.e(e)}finally{s.f()}return i+o-a}},{key:"fromArray",value:function(e){var t,n=this.makeDestinationObject(),r=(0,d.Z)(this.fields);try{for(r.s();!(t=r.n()).done;){var a=t.value;void 0!==a.property&&0a.span?n=-1:0<=n&&(n+=a.span)}}catch(e){r.e(e)}finally{r.f()}}}]),n}(ga),Pa=function(){function e(t){(0,h.Z)(this,e),this.property=t}return(0,p.Z)(e,[{key:"decode",value:function(){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(){throw new Error("UnionDiscriminator is abstract")}}]),e}(),Ma=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r){var a;if((0,h.Z)(this,n),!(e instanceof wa&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(a=t.call(this,r||e.property||"variant")).layout=e,a}return(0,p.Z)(n,[{key:"decode",value:function(e,t){return this.layout.decode(e,t)}},{key:"encode",value:function(e,t,n){return this.layout.encode(e,t,n)}}]),n}(Pa),Ba=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r,a){var i;(0,h.Z)(this,n);var o=e instanceof _a||e instanceof ka;if(o)e=new Ma(new xa(e));else if(e instanceof wa&&e.isCount())e=new Ma(e);else if(!(e instanceof Pa))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===r&&(r=null),!(null===r||r instanceof ga))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var s=-1;r&&0<=(s=r.span)&&o&&(s+=e.layout.span),(i=t.call(this,s,a)).discriminator=e,i.usesPrefixDiscriminator=o,i.defaultLayout=r,i.registry={};var c=i.defaultGetSourceVariant.bind((0,y.Z)(i));return i.getSourceVariant=function(e){return c(e)},i.configGetSourceVariant=function(e){c=e.bind(this)},i}return(0,p.Z)(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}},{key:"defaultGetSourceVariant",value:function(e){if(e.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&e.hasOwnProperty(this.defaultLayout.property))return;var t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||e.hasOwnProperty(t.property)))return t}else for(var n in this.registry){var r=this.registry[n];if(e.hasOwnProperty(r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(e,t){var n;void 0===t&&(t=0);var r=this.discriminator,a=r.decode(e,t),i=this.registry[a];if(void 0===i){var o=0;i=this.defaultLayout,this.usesPrefixDiscriminator&&(o=r.layout.span),(n=this.makeDestinationObject())[r.property]=a,n[i.property]=this.defaultLayout.decode(e,t+o)}else n=i.decode(e,t);return n}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=this.getSourceVariant(e);if(void 0===r){var a=this.discriminator,i=this.defaultLayout,o=0;return this.usesPrefixDiscriminator&&(o=a.layout.span),a.encode(e[a.property],t,n),o+i.encode(e[i.property],t,n+o)}return r.encode(e,t,n)}},{key:"addVariant",value:function(e,t,n){var r=new Na(this,e,t,n);return this.registry[e]=r,r}},{key:"getVariant",value:function(e,t){var n=e;return jn.isBuffer(e)&&(void 0===t&&(t=0),n=this.discriminator.decode(e,t)),this.registry[n]}}]),n}(ga),Na=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r,a,i){var o;if((0,h.Z)(this,n),!(e instanceof Ba))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof a&&void 0===i&&(i=a,a=null),a){if(!(a instanceof ga))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=a.span&&a.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof i)throw new TypeError("variant must have a String property")}var s=e.span;return 0>e.span&&0<=(s=a?a.span:0)&&e.usesPrefixDiscriminator&&(s+=e.discriminator.layout.span),(o=t.call(this,s,i)).union=e,o.variant=r,o.layout=a||null,o}return(0,p.Z)(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),n+this.layout.getSpan(e,t+n)}},{key:"decode",value:function(e,t){var n=this.makeDestinationObject();if(void 0===t&&(t=0),this!==this.union.getVariant(e,t))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!e.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);var a=r;if(this.layout&&(this.layout.encode(e[this.property],t,n+r),a+=this.layout.getSpan(t,n+r),0<=this.union.span&&a>this.union.span))throw new Error("encoded variant overruns containing union");return a}},{key:"fromArray",value:function(e){if(this.layout)return this.layout.fromArray(e)}}]),n}(ga),Ra=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r){var a;if((0,h.Z)(this,n),!(e instanceof wa&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");var i=-1;return e instanceof wa||(i=e),(a=t.call(this,i,r)).length=e,a}return(0,p.Z)(n,[{key:"getSpan",value:function(e,t){var n=this.span;return 0>n&&(n=this.length.decode(e,t)),n}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=this.span;return 0>n&&(n=this.length.decode(e,t)),e.slice(t,t+n)}},{key:"encode",value:function(e,t,n){var r,a=this.length;if(this.length instanceof wa&&(a=e.length),!jn.isBuffer(e)||a!==e.length)throw new TypeError((r="Blob.encode",(this.property?r+"["+this.property+"]":r)+" requires (length "+a+") Buffer as src"));if(n+a>t.length)throw new RangeError("encoding overruns Buffer");return t.write(e.toString("hex"),n,a,"hex"),this.length instanceof wa&&this.length.encode(a,t,n),a}}]),n}(ga),Da=function(e,t,n){return new xa(e,t,n)},ja=function(e){return new _a(1,e)},Ua=function(e){return new _a(4,e)},La=function(e){return new Ca(e)},Fa=function(e){return new Ta(e)},Za=function(e,t,n){return new Oa(e,t,n)},Ha=function(e,t,n){return new Ba(e,t,n)},za=function(e,t){return new Ra(e,t)},Qa=function(){function e(t){(0,h.Z)(this,e)}return(0,p.Z)(e,[{key:"encode",value:function(e,t){switch(C()(e)){case"initializeMint":return function(e){var t=e.decimals,n=e.mintAuthority,r=e.freezeAuthority;return Ja({initializeMint:{decimals:t,mintAuthority:n.toBuffer(),freezeAuthorityOption:!!r,freezeAuthority:(r||w.PublicKey.default).toBuffer()}})}(t);case"initializeAccount":return Ja({initializeAccount:{}});case"initializeMultisig":return Ja({initializeMultisig:{m:t.m}});case"transfer":return Ja({transfer:{amount:t.amount}});case"approve":return Ja({approve:{amount:t.amount}});case"revoke":return Ja({revoke:{}});case"setAuthority":return Ja({setAuthority:{authorityType:(s=t).authorityType,newAuthority:s.newAuthority}});case"mintTo":return Ja({mintTo:{amount:t.amount}});case"burn":return Ja({burn:{amount:t.amount}});case"closeAccount":return Ja({closeAccount:{}});case"freezeAccount":return Ja({freezeAccount:{}});case"thawAccount":return Ja({thawAccount:{}});case"transferChecked":return Ja({transferChecked:{amount:(o=t).amount,decimals:o.decimals}});case"approvedChecked":return Ja({approveChecked:{amount:(i=t).amount,decimals:i.decimals}});case"mintToChecked":return Ja({mintToChecked:{amount:(a=t).amount,decimals:a.decimals}});case"burnChecked":return Ja({burnChecked:{amount:(r=t).amount,decimals:r.decimals}});case"intializeAccount2":return Ja({initilaizeAccount2:{authority:t.authority}});case"syncNative":return Ja({syncNative:{}});case"initializeAccount3":return Ja({initializeAccount3:{authority:t.authority}});case"initializeMultisig2":return Ja({initializeMultisig2:{m:t.m}});case"initializeMint2":return Ja({encodeInitializeMint2:{decimals:(n=t).decimals,mintAuthority:n.mintAuthority,freezeAuthority:n.freezeAuthority}});default:throw new Error("Invalid instruction: ".concat(e))}var n,r,a,i,o,s}},{key:"encodeState",value:function(e,t){throw new Error("SPL token does not have state")}}]),e}(),qa=Ha(ja("instruction"));function Va(e){return za(32,e)}function Ja(e){var t=jn.alloc(Ka),n=qa.encode(e,t);return t.slice(0,n)}qa.addVariant(0,Za([ja("decimals"),za(32,"mintAuthority"),ja("freezeAuthorityOption"),Va("freezeAuthority")]),"initializeMint"),qa.addVariant(1,Za([]),"initializeAccount"),qa.addVariant(2,Za([ja("m")]),"initializeMultisig"),qa.addVariant(3,Za([La("amount")]),"transfer"),qa.addVariant(4,Za([La("amount")]),"approve"),qa.addVariant(5,Za([]),"revoke"),qa.addVariant(6,Za([ja("authorityType"),ja("newAuthorityOption"),Va("newAuthority")]),"setAuthority"),qa.addVariant(7,Za([La("amount")]),"mintTo"),qa.addVariant(8,Za([La("amount")]),"burn"),qa.addVariant(9,Za([]),"closeAccount"),qa.addVariant(10,Za([]),"freezeAccount"),qa.addVariant(11,Za([]),"thawAccount"),qa.addVariant(12,Za([La("amount"),ja("decimals")]),"transferChecked"),qa.addVariant(13,Za([La("amount"),ja("decimals")]),"approvedChecked"),qa.addVariant(14,Za([La("amount"),ja("decimals")]),"mintToChecked"),qa.addVariant(15,Za([La("amount"),ja("decimals")]),"burnedChecked"),qa.addVariant(16,Za([Va("authority")]),"InitializeAccount2"),qa.addVariant(17,Za([]),"syncNative"),qa.addVariant(18,Za([Va("authority")]),"initializeAccount3"),qa.addVariant(19,Za([ja("m")]),"initializeMultisig2"),qa.addVariant(20,Za([ja("decimals"),Va("mintAuthority"),ja("freezeAuthorityOption"),Va("freezeAuthority")]),"initializeMint2");var Ka=Math.max.apply(Math,(0,l.Z)(Object.values(qa.registry).map((function(e){return e.span})))),Ga=function(){function e(t){(0,h.Z)(this,e)}return(0,p.Z)(e,[{key:"encode",value:function(e,t){throw new Error("SPL token does not have state")}},{key:"decode",value:function(e){throw new Error("SPL token does not have state")}}]),e}();function Wa(e){return new $a(za(8),(function(e){return ti.fromBuffer(e)}),(function(e){return e.toBuffer()}),e)}function Ya(e){return new $a(za(32),(function(e){return new w.PublicKey(e)}),(function(e){return e.toBuffer()}),e)}function Xa(e,t){return new ei(e,t)}var $a=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r,a,i){var o;return(0,h.Z)(this,n),(o=t.call(this,e.span,i)).layout=e,o.decoder=r,o.encoder=a,o}return(0,p.Z)(n,[{key:"decode",value:function(e,t){return this.decoder(this.layout.decode(e,t))}},{key:"encode",value:function(e,t,n){return this.layout.encode(this.encoder(e),t,n)}},{key:"getSpan",value:function(e,t){return this.layout.getSpan(e,t)}}]),n}(Aa),ei=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r){var a;return(0,h.Z)(this,n),(a=t.call(this,-1,r)).layout=e,a.discriminator=Ua(),a}return(0,p.Z)(n,[{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null==e?this.layout.span+this.discriminator.encode(0,t,n):(this.discriminator.encode(1,t,n),this.layout.encode(e,t,n+4)+4)}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return null;if(1===n)return this.layout.decode(e,t+4);throw new Error("Invalid coption "+this.layout.property)}},{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.getSpan(e,t+4)+4}}]),n}(Aa),ti=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,h.Z)(this,n),t.apply(this,arguments)}return(0,p.Z)(n,[{key:"toBuffer",value:function(){var e=(0,r.Z)((0,a.Z)(n.prototype),"toArray",this).call(this).reverse(),t=jn.from(e);if(8===t.length)return t;if(t.length>=8)throw new Error("u64 too large");var i=jn.alloc(8);return t.copy(i),i}}],[{key:"fromBuffer",value:function(e){if(8!==e.length)throw new Error("Invalid buffer length: ".concat(e.length));return new n((0,l.Z)(e).reverse().map((function(e){return"00".concat(e.toString(16)).slice(-2)})).join(""),16)}}]),n}(_()),ni=function(){function e(t){(0,h.Z)(this,e),this.idl=t}var t;return(0,p.Z)(e,[{key:"encode",value:(t=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r,a,i,o;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t,e.next="token"===e.t0?3:"mint"===e.t0?5:7;break;case 3:return r=jn.alloc(165),a=ai.encode(n,r),e.abrupt("return",r.slice(0,a));case 5:return i=jn.alloc(82),o=ri.encode(n,i),e.abrupt("return",i.slice(0,o));case 7:throw new Error("Invalid account name: ".concat(t));case 8:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})},{key:"decode",value:function(e,t){return this.decodeUnchecked(e,t)}},{key:"decodeUnchecked",value:function(e,t){switch(e){case"token":return function(e){return ai.decode(e)}(t);case"mint":return function(e){return ri.decode(e)}(t);default:throw new Error("Invalid account name: ".concat(e))}}},{key:"memcmp",value:function(e,t){switch(e){case"token":return{dataSize:165};case"mint":return{dataSize:82};default:throw new Error("Invalid account name: ".concat(e))}}},{key:"size",value:function(e){var t;return null!==(t=sa(this.idl,e))&&void 0!==t?t:0}}]),e}(),ri=Za([Xa(Ya(),"mintAuthority"),Wa("supply"),ja("decimals"),new $a(ja(),(function(e){if(0===e)return!1;if(1===e)return!0;throw new Error("Invalid bool: "+e)}),(function(e){return e?1:0}),"isInitialized"),Xa(Ya(),"freezeAuthority")]),ai=Za([Ya("mint"),Ya("authority"),Wa("amount"),Xa(Ya(),"delegate"),ja("state"),Xa(Wa(),"isNative"),Wa("delegatedAmount"),Xa(Ya(),"closeAuthority")]),ii=function(){function e(t){(0,h.Z)(this,e)}return(0,p.Z)(e,[{key:"decode",value:function(e){throw new Error("SPL token program does not have events")}}]),e}(),oi=function(){function e(t){(0,h.Z)(this,e)}return(0,p.Z)(e,[{key:"encode",value:function(e,t){throw new Error("SPL token does not have user-defined types")}},{key:"decode",value:function(e,t){throw new Error("SPL token does not have user-defined types")}}]),e}(),si=(0,p.Z)((function e(t){(0,h.Z)(this,e),this.instruction=new Qa(t),this.accounts=new ni(t),this.events=new ii(t),this.state=new Ga(t),this.types=new oi(t)})),ci=function(){function e(t){(0,h.Z)(this,e)}return(0,p.Z)(e,[{key:"encode",value:function(e,t){switch(C()(e)){case"createAccount":return bi({createAccount:{lamports:(n=t).lamports,space:n.space,owner:n.owner.toBuffer()}});case"assign":return bi({assign:{owner:t.owner.toBuffer()}});case"transfer":return bi({transfer:{lamports:t.lamports}});case"createAccountWithSeed":return function(e){var t=e.base,n=e.seed,r=e.lamports,a=e.space,i=e.owner;return bi({createAccountWithSeed:{base:t.toBuffer(),seed:n,lamports:r,space:a,owner:i.toBuffer()}},li.getVariant(3).span+n.length)}(t);case"advanceNonceAccount":return bi({advanceNonceAccount:{authorized:t.authorized.toBuffer()}});case"withdrawNonceAccount":return bi({withdrawNonceAccount:{lamports:t.lamports}});case"initializeNonceAccount":return bi({initializeNonceAccount:{authorized:t.authorized.toBuffer()}});case"authorizeNonceAccount":return bi({authorizeNonceAccount:{authorized:t.authorized.toBuffer()}});case"allocate":return bi({allocate:{space:t.space}});case"allocateWithSeed":return function(e){var t=e.base,n=e.seed,r=e.space,a=e.owner;return bi({allocateWithSeed:{base:t.toBuffer(),seed:n,space:r,owner:a.toBuffer()}},li.getVariant(9).span+n.length)}(t);case"assignWithSeed":return function(e){var t=e.base,n=e.seed,r=e.owner;return bi({assignWithSeed:{base:t.toBuffer(),seed:n,owner:r.toBuffer()}},li.getVariant(10).span+n.length)}(t);case"transferWithSeed":return function(e){var t=e.lamports,n=e.seed;return bi({transferWithSeed:{lamports:t,seed:n,owner:e.owner.toBuffer()}},li.getVariant(11).span+n.length)}(t);default:throw new Error("Invalid instruction: ".concat(e))}var n}},{key:"encodeState",value:function(e,t){throw new Error("System does not have state")}}]),e}(),ui=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e){var r;return(0,h.Z)(this,n),(r=t.call(this,-1,e)).property=e,r.layout=Za([Ua("length"),Ua("lengthPadding"),za(Da(Ua(),-8),"chars")],r.property),r}return(0,p.Z)(n,[{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null==e)return this.layout.span;var r={chars:jn.from(e,"utf8")};return this.layout.encode(r,t,n)}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.decode(e,t).chars.toString()}},{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Ua().span+Ua().span+new(_())(new Uint8Array(e).slice(t,t+4),10,"le").toNumber()}}]),n}(Aa);function di(e){return new ui(e)}function fi(e){return za(32,e)}var li=Ha(Ua("instruction"));function bi(e,t){var n=jn.alloc(null!=t?t:pi),r=li.encode(e,n);return void 0===t?n.slice(0,r):n}li.addVariant(0,Za([Fa("lamports"),Fa("space"),fi("owner")]),"createAccount"),li.addVariant(1,Za([fi("owner")]),"assign"),li.addVariant(2,Za([Fa("lamports")]),"transfer"),li.addVariant(3,Za([fi("base"),di("seed"),Fa("lamports"),Fa("space"),fi("owner")]),"createAccountWithSeed"),li.addVariant(4,Za([fi("authorized")]),"advanceNonceAccount"),li.addVariant(5,Za([Fa("lamports")]),"withdrawNonceAccount"),li.addVariant(6,Za([fi("authorized")]),"initializeNonceAccount"),li.addVariant(7,Za([fi("authorized")]),"authorizeNonceAccount"),li.addVariant(8,Za([Fa("space")]),"allocate"),li.addVariant(9,Za([fi("base"),di("seed"),Fa("space"),fi("owner")]),"allocateWithSeed"),li.addVariant(10,Za([fi("base"),di("seed"),fi("owner")]),"assignWithSeed"),li.addVariant(11,Za([Fa("lamports"),di("seed"),fi("owner")]),"transferWithSeed");var pi=Math.max.apply(Math,(0,l.Z)(Object.values(li.registry).map((function(e){return e.span})))),hi=function(){function e(t){(0,h.Z)(this,e)}return(0,p.Z)(e,[{key:"encode",value:function(e,t){throw new Error("System does not have state")}},{key:"decode",value:function(e){throw new Error("System does not have state")}}]),e}(),yi=function(){function e(t){(0,h.Z)(this,e),this.idl=t}var t;return(0,p.Z)(e,[{key:"encode",value:(t=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r,a;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("nonce"!==t){e.next=3;break}return r=jn.alloc(w.NONCE_ACCOUNT_LENGTH),a=gi.encode(n,r),e.abrupt("return",r.slice(0,a));case 3:throw new Error("Invalid account name: ".concat(t));case 4:case"end":return e.stop()}}),e)}))),function(e,n){return t.apply(this,arguments)})},{key:"decode",value:function(e,t){return this.decodeUnchecked(e,t)}},{key:"decodeUnchecked",value:function(e,t){if("nonce"===e)return function(e){return gi.decode(e)}(t);throw new Error("Invalid account name: ".concat(e))}},{key:"memcmp",value:function(e,t){if("nonce"===e)return{dataSize:w.NONCE_ACCOUNT_LENGTH};throw new Error("Invalid account name: ".concat(e))}},{key:"size",value:function(e){var t;return null!==(t=sa(this.idl,e))&&void 0!==t?t:0}}]),e}(),mi=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e,r,a,i){var o;return(0,h.Z)(this,n),(o=t.call(this,e.span,i)).layout=e,o.decoder=r,o.encoder=a,o}return(0,p.Z)(n,[{key:"decode",value:function(e,t){return this.decoder(this.layout.decode(e,t))}},{key:"encode",value:function(e,t,n){return this.layout.encode(this.encoder(e),t,n)}},{key:"getSpan",value:function(e,t){return this.layout.getSpan(e,t)}}]),n}(Aa);function vi(e){return new mi(za(32),(function(e){return new w.PublicKey(e)}),(function(e){return e.toBuffer()}),e)}var gi=Za([Ua("version"),Ua("state"),vi("authorizedPubkey"),vi("nonce"),Za([La("lamportsPerSignature")],"feeCalculator")]),Ai=function(){function e(t){(0,h.Z)(this,e)}return(0,p.Z)(e,[{key:"decode",value:function(e){throw new Error("System program does not have events")}}]),e}(),wi=function(){function e(t){(0,h.Z)(this,e)}return(0,p.Z)(e,[{key:"encode",value:function(e,t){throw new Error("System does not have user-defined types")}},{key:"decode",value:function(e,t){throw new Error("System does not have user-defined types")}}]),e}(),xi=(0,p.Z)((function e(t){(0,h.Z)(this,e),this.instruction=new ci(t),this.accounts=new yi(t),this.events=new Ai(t),this.state=new hi(t),this.types=new wi(t)})),_i=Object.freeze({__proto__:null,hash:function(e){return(0,T.sha256)(e)}});function ki(e,t,n){var r=A.Buffer.concat([e.toBuffer(),A.Buffer.from(t),n.toBuffer()]),a=T.sha256.digest(r);return new w.PublicKey(A.Buffer.from(a))}function Ii(e,t){var n=A.Buffer.alloc(0);e.forEach((function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");n=A.Buffer.concat([n,Ei(e)])})),n=A.Buffer.concat([n,t.toBuffer(),A.Buffer.from("ProgramDerivedAddress")]);var r=(0,T.sha256)(new Uint8Array(n)),a=new(_())(r,16).toArray(void 0,32);if(w.PublicKey.isOnCurve(new Uint8Array(a)))throw new Error("Invalid seeds, address must fall off the curve");return new w.PublicKey(a)}function Si(e,t){for(var n,r=255;0!=r;){try{n=Ii(e.concat(A.Buffer.from([r])),t)}catch(e){if(e instanceof TypeError)throw e;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}var Ei=function(e){return e instanceof A.Buffer?e:e instanceof Uint8Array?A.Buffer.from(e.buffer,e.byteOffset,e.byteLength):A.Buffer.from(e)};function Ci(e){return Ti.apply(this,arguments)}function Ti(){return Ti=(0,o.Z)((0,u.Z)().mark((function e(t){var n,r,a,i,o,s,d,f=arguments;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=[A.Buffer.from([97,110,99,104,111,114])],r=f.length,a=new Array(r>1?r-1:0),i=1;i-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function d(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function b(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function h(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:a&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&a&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var e=b(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?b(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(h)}),this.text=function(){var e=b(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=p(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function A(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}})),t}function w(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];w.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function _(e,n){return new Promise((function(r,i){var o=new g(e,n);if(o.signal&&o.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var a="response"in s?s.response:s.responseText;r(new w(a,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&a&&(s.responseType="blob"),o.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",c)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}_.polyfill=!0,e.fetch||(e.fetch=_,e.Headers=l,e.Request=g,e.Response=w),t.Headers=l,t.Request=g,t.Response=w,t.fetch=_,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=r;(t=a.fetch).default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t}(Ri,Ri.exports);var Di=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Ri.exports);function ji(e,t){return Ui.apply(this,arguments)}function Ui(){return Ui=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r,a,i,o,s,c;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getAccountInfo(n);case 2:if(null!==(r=e.sent)){e.next=5;break}throw new Error("program account not found");case 5:return a=Fi(r.data),i=a.program,e.next=9,t.getAccountInfo(i.programdataAddress);case 9:if(null!==(o=e.sent)){e.next=12;break}throw new Error("program data account not found");case 12:return s=Fi(o.data),c=s.programData,e.abrupt("return",c);case 14:case"end":return e.stop()}}),e)}))),Ui.apply(this,arguments)}var Li=O.rustEnum([O.struct([],"uninitialized"),O.struct([O.option(O.publicKey(),"authorityAddress")],"buffer"),O.struct([O.publicKey("programdataAddress")],"program"),O.struct([O.u64("slot"),O.option(O.publicKey(),"upgradeAuthorityAddress")],"programData")],void 0,O.u32());function Fi(e){return Li.decode(e)}var Zi,Hi=Object.freeze({__proto__:null,verifiedBuild:(Zi=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r,a,i,o,s,d,f,l,b=arguments;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=b.length>2&&void 0!==b[2]?b[2]:5,a="https://api.apr.dev/api/v0/program/".concat(n.toString(),"/latest?limit=").concat(r),e.next=4,Promise.all([ji(t,n),Di(a)]);case 4:return i=e.sent,o=(0,c.Z)(i,2),s=o[0],d=o[1],e.next=10,d.json();case 10:if(f=e.sent.filter((function(e){return!e.aborted&&"Built"===e.state&&"Verified"===e.verified})),0!==f.length){e.next=13;break}return e.abrupt("return",null);case 13:return l=f[0],e.abrupt("return",s.slot.toNumber()!==l.verified_slot?null:l);case 15:case"end":return e.stop()}}),e)}))),function(e,t){return Zi.apply(this,arguments)}),fetchData:ji,decodeUpgradeableLoaderState:Fi}),zi=Object.freeze({__proto__:null,sha256:_i,rpc:Mr,publicKey:Pi,bytes:Gn,token:Ni,features:Qr,registry:Hi}),Qi=O.struct([O.publicKey("authority"),O.vecU8("data")]);function qi(e,t){var n,r,a={},i=e.args?e.args.length:0;if(t.length>i){if(t.length!==i+1)throw new Error("provided too many arguments ".concat(t," to instruction ").concat(null==e?void 0:e.name," expecting: ").concat(null!==(r=null===(n=e.args)||void 0===n?void 0:n.map((function(e){return e.name})))&&void 0!==r?r:[]));a=t.pop()}return[t,a]}var Vi=function(){function e(){(0,h.Z)(this,e)}return(0,p.Z)(e,null,[{key:"build",value:function(t,n,r){if("_inner"===t.name)throw new qr("the _inner name is reserved");var a=function e(){for(var a=arguments.length,i=new Array(a),o=0;o2&&void 0!==arguments[2]?arguments[2]:Lr(),a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new ma(t);(0,h.Z)(this,e),this.provider=r,this.coder=a,this._idl=t,this._programId=n,this._address=Wi(n),this._sub=null;var i=function(){var e,i={},o={},s={};return null===(e=t.state)||void 0===e||e.methods.forEach((function(e){var u=Vi.build(e,(function(e,t){return a.instruction.encodeState(e,t)}),n);u.accounts=function(t){var a=function(e,t,n,r){if("new"===n.name){var a=Si([],e),i=(0,c.Z)(a,1)[0];if(void 0===t.wallet)throw new Error("This function requires the Provider interface implementor to have a 'wallet' field.");return[{pubkey:t.wallet.publicKey,isWritable:!1,isSigner:!0},{pubkey:Wi(e),isWritable:!0,isSigner:!1},{pubkey:i,isWritable:!1,isSigner:!1},{pubkey:w.SystemProgram.programId,isWritable:!1,isSigner:!1},{pubkey:e,isWritable:!1,isSigner:!1}]}return Xn(n.accounts,r),[{pubkey:Wi(e),isWritable:!0,isSigner:!1}]}(n,r,e,t);return a.concat(Vi.accountsArray(t,e.accounts,e.name))};var d=Ki.build(e,u),f=Ji.build(e,d,Wn(t),r),l=C()(e.name);i[l]=u,o[l]=d,s[l]=f})),[i,o,s]}(),o=(0,c.Z)(i,3),s=o[0],u=o[1],d=o[2];this.instruction=s,this.transaction=u,this.rpc=d}var t;return(0,p.Z)(e,[{key:"programId",get:function(){return this._programId}},{key:"fetch",value:(t=(0,o.Z)((0,u.Z)().mark((function e(){var t,n,r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.address(),e.next=3,this.provider.connection.getAccountInfo(t);case 3:if(null!==(n=e.sent)){e.next=6;break}throw new Error("Account does not exist ".concat(t.toString()));case 6:if(r=this._idl.state){e.next=9;break}throw new Error("State is not specified in IDL.");case 9:return e.next=11,pa(r.struct.name);case 11:if(!e.sent.compare(n.data.slice(0,8))){e.next=13;break}throw new Error("Invalid account discriminator");case 13:return e.abrupt("return",this.coder.state.decode(n.data));case 14:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"address",value:function(){return this._address}},{key:"subscribe",value:function(e){var t=this;if(null!==this._sub)return this._sub.ee;var n=new(Rn()),r=this.provider.connection.onAccountChange(this.address(),(function(e){var r=t.coder.state.decode(e.data);n.emit("change",r)}),e);return this._sub={ee:n,listener:r},n}},{key:"unsubscribe",value:function(){var e=this;null!==this._sub&&this.provider.connection.removeAccountChangeListener(this._sub.listener).then((0,o.Z)((0,u.Z)().mark((function t(){return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e._sub=null;case 1:case"end":return t.stop()}}),t)})))).catch(console.error)}}]),e}();function Wi(e){var t=Si([],e);return ki((0,c.Z)(t,1)[0],"unversioned",e)}var Yi=function(){function e(t,n,r,a,i){(0,h.Z)(this,e),this._idlAccount=n,this._programId=r,this._provider=null!=a?a:Lr(),this._coder=null!=i?i:new ma(t),this._size=this._coder.accounts.size(n)}var t,n,r,a,i,s,c,d,f;return(0,p.Z)(e,[{key:"size",get:function(){return this._size}},{key:"programId",get:function(){return this._programId}},{key:"provider",get:function(){return this._provider}},{key:"coder",get:function(){return this._coder}},{key:"fetchNullable",value:(f=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountInfo(t,n);case 2:return r=e.sent,e.abrupt("return",null===r?null:this._coder.accounts.decode(this._idlAccount.name,r.data));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"fetch",value:(d=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.fetchNullable(t,n);case 2:if(null!==(r=e.sent)){e.next=5;break}throw new Error("Account does not exist ".concat(t.toString()));case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return d.apply(this,arguments)})},{key:"fetchMultiple",value:(c=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ar(this._provider.connection,t.map((function(e){return $n(e)})),n);case 2:return e.abrupt("return",e.sent.map((function(e){return null==e?null:r._coder.accounts.decode(r._idlAccount.name,null==e?void 0:e.account.data)})));case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"all",value:(s=(0,o.Z)((0,u.Z)().mark((function e(t){var n=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._provider.connection.getProgramAccounts(this._programId,{commitment:this._provider.connection.commitment,filters:[{memcmp:this.coder.accounts.memcmp(this._idlAccount.name,t instanceof jn?t:void 0)}].concat((0,l.Z)(Array.isArray(t)?t:[]))});case 2:return e.abrupt("return",e.sent.map((function(e){var t=e.pubkey,r=e.account;return{publicKey:t,account:n._coder.accounts.decode(n._idlAccount.name,r.data)}})));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"subscribe",value:function(e,t){var n=this,r=Xi.get(e.toString());if(r)return r.ee;var a=new(Rn());e=$n(e);var i=this._provider.connection.onAccountChange(e,(function(e){var t=n._coder.accounts.decode(n._idlAccount.name,e.data);a.emit("change",t)}),t);return Xi.set(e.toString(),{ee:a,listener:i}),a}},{key:"unsubscribe",value:(i=(0,o.Z)((0,u.Z)().mark((function e(t){var n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=Xi.get(t.toString()))){e.next=8;break}if(e.t0=Xi,!e.t0){e.next=6;break}return e.next=6,this._provider.connection.removeAccountChangeListener(n.listener).then((function(){Xi.delete(t.toString())})).catch(console.error);case 6:e.next=9;break;case 8:console.warn("Address is not subscribed");case 9:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"createInstruction",value:(a=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.size,void 0!==this._provider.wallet){e.next=3;break}throw new Error("This function requires the Provider interface implementor to have a 'wallet' field.");case 3:return e.t0=w.SystemProgram,e.t1=this._provider.wallet.publicKey,e.t2=t.publicKey,e.t3=null!=n?n:r,e.next=9,this._provider.connection.getMinimumBalanceForRentExemption(null!=n?n:r);case 9:return e.t4=e.sent,e.t5=this._programId,e.t6={fromPubkey:e.t1,newAccountPubkey:e.t2,space:e.t3,lamports:e.t4,programId:e.t5},e.abrupt("return",e.t0.createAccount.call(e.t0,e.t6));case 13:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"associated",value:(r=(0,o.Z)((0,u.Z)().mark((function e(){var t,n=arguments;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.associatedAddress.apply(this,n);case 2:return t=e.sent,e.next=5,this.fetch(t);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"associatedAddress",value:(n=(0,o.Z)((0,u.Z)().mark((function e(){var t,n,r,a=arguments;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=a.length,n=new Array(t),r=0;r0&&e.program()===this.programId.toString()?this.handleProgramLog(t):[null].concat((0,l.Z)(this.handleSystemLog(t)))}},{key:"handleProgramLog",value:function(e){if(e.startsWith("Program log: ")||e.startsWith("Program data: ")){var t=e.startsWith("Program log: ")?e.slice(13):e.slice(14);return[this.coder.events.decode(t),null,!1]}return[null].concat((0,l.Z)(this.handleSystemLog(e)))}},{key:"handleSystemLog",value:function(e){var t=e.split(":")[0];return null!==t.match(/^Program (.*) success/g)?[null,!0]:t.startsWith("Program ".concat(this.programId.toString()," invoke"))?[this.programId.toString(),!1]:t.includes("invoke")?["cpi",!1]:[null,!1]}}]),e}(),to=function(){function e(){(0,h.Z)(this,e),this.stack=[]}return(0,p.Z)(e,[{key:"program",value:function(){return Dn.ok(this.stack.length>0),this.stack[this.stack.length-1]}},{key:"push",value:function(e){this.stack.push(e)}},{key:"pop",value:function(){Dn.ok(this.stack.length>0),this.stack.pop()}}]),e}(),no=function(){function e(t){(0,h.Z)(this,e),this.logs=t}return(0,p.Z)(e,[{key:"next",value:function(){if(0===this.logs.length)return null;var e=this.logs[0];return this.logs=this.logs.slice(1),e}}]),e}(),ro=new w.PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");function ao(){return new si(io)}var io={version:"0.1.0",name:"spl_token",instructions:[{name:"initializeMint",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[{name:"decimals",type:"u8"},{name:"mintAuthority",type:"publicKey"},{name:"freezeAuthority",type:{coption:"publicKey"}}]},{name:"initializeAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[]},{name:"initializeMultisig",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[{name:"m",type:"u8"}]},{name:"transfer",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"destination",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"approve",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"delegate",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"revoke",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[]},{name:"setAuthority",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"authorityType",type:"u8"},{name:"newAuthority",type:{coption:"publicKey"}}]},{name:"mintTo",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"to",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"burn",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"}]},{name:"closeAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"destination",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!1}],args:[]},{name:"freezeAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[]},{name:"thawAccount",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[]},{name:"transferChecked",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"destination",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"approveChecked",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"delegate",isMut:!1,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"mintToChecked",accounts:[{name:"mint",isMut:!0,isSigner:!1},{name:"to",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"burnChecked",accounts:[{name:"source",isMut:!0,isSigner:!1},{name:"mint",isMut:!0,isSigner:!1},{name:"authority",isMut:!1,isSigner:!0}],args:[{name:"amount",type:"u64"},{name:"decimals",type:"u8"}]},{name:"initializeAccount2",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1},{name:"rent",isMut:!1,isSigner:!1}],args:[{name:"authority",type:"publicKey"}]},{name:"syncNative",accounts:[{name:"account",isMut:!0,isSigner:!1}],args:[]},{name:"initializeAccount3",accounts:[{name:"account",isMut:!0,isSigner:!1},{name:"mint",isMut:!1,isSigner:!1}],args:[{name:"authority",type:"publicKey"}]},{name:"initializeMultisig2",accounts:[{name:"account",isMut:!0,isSigner:!1}],args:[{name:"m",type:"u8"}]},{name:"initializeMint2",accounts:[{name:"mint",isMut:!0,isSigner:!1}],args:[{name:"decimals",type:"u8"},{name:"mintAuthority",type:"publicKey"},{name:"freezeAuthority",type:{coption:"publicKey"}}]}],accounts:[{name:"mint",type:{kind:"struct",fields:[{name:"mintAuthority",type:{coption:"publicKey"}},{name:"supply",type:"u64"},{name:"decimals",type:"u8"},{name:"isInitialized",type:"bool"},{name:"freezeAuthority",type:{coption:"publicKey"}}]}},{name:"token",type:{kind:"struct",fields:[{name:"mint",type:"publicKey"},{name:"authority",type:"publicKey"},{name:"amount",type:"u64"},{name:"delegate",type:{coption:"publicKey"}},{name:"state",type:"u8"},{name:"isNative",type:{coption:"u64"}},{name:"delegatedAmount",type:"u64"},{name:"closeAuthority",type:{coption:"publicKey"}}]}}]},oo=function(){function e(t,n,r,a,i,o){(0,h.Z)(this,e),this._args=t,this._accounts=n,this._provider=r,this._programId=a,this._idlIx=i,this._accountStore=new so(r,o)}var t,n,r,a,i,s,d;return(0,p.Z)(e,[{key:"resolve",value:(d=(0,o.Z)((0,u.Z)().mark((function t(){var n,r,a,i,o,s;return(0,u.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=0;case 1:if(!(n0&&!this._accounts[s],!t.t0){t.next=20;break}return t.next=20,this.autoPopulatePda(o);case 20:i+=1,t.next=14;break;case 23:case"end":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:"autoPopulatePda",value:(s=(0,o.Z)((0,u.Z)().mark((function e(t){var n,r,a,i,o,s=this;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.pda&&t.pda.seeds){e.next=2;break}throw new Error("Must have seeds");case 2:return e.next=4,Promise.all(t.pda.seeds.map((function(e){return s.toBuffer(e)})));case 4:return n=e.sent,e.next=7,this.parseProgramId(t);case 7:return r=e.sent,e.next=10,w.PublicKey.findProgramAddress(n,r);case 10:a=e.sent,i=(0,c.Z)(a,1),o=i[0],this._accounts[C()(t.name)]=o;case 14:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"parseProgramId",value:(i=(0,o.Z)((0,u.Z)().mark((function e(t){var n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(n=t.pda)||void 0===n?void 0:n.programId){e.next=2;break}return e.abrupt("return",this._programId);case 2:e.t0=t.pda.programId.kind,e.next="const"===e.t0?5:"arg"===e.t0?6:"account"===e.t0?7:10;break;case 5:return e.abrupt("return",new w.PublicKey(this.toBufferConst(t.pda.programId.value)));case 6:return e.abrupt("return",this.argValue(t.pda.programId));case 7:return e.next=9,this.accountValue(t.pda.programId);case 9:return e.abrupt("return",e.sent);case 10:throw new Error("Unexpected program seed kind: ".concat(t.pda.programId.kind));case 11:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"toBuffer",value:(a=(0,o.Z)((0,u.Z)().mark((function e(t){return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.kind,e.next="const"===e.t0?3:"arg"===e.t0?4:"account"===e.t0?7:10;break;case 3:return e.abrupt("return",this.toBufferConst(t));case 4:return e.next=6,this.toBufferArg(t);case 6:case 9:return e.abrupt("return",e.sent);case 7:return e.next=9,this.toBufferAccount(t);case 10:throw new Error("Unexpected seed kind: ".concat(t.kind));case 11:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"toBufferConst",value:function(e){return this.toBufferValue(e.type,e.value)}},{key:"toBufferArg",value:(r=(0,o.Z)((0,u.Z)().mark((function e(t){var n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.argValue(t),e.abrupt("return",this.toBufferValue(t.type,n));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"argValue",value:function(e){var t=C()(e.path.split(".")[0]),n=this._idlIx.args.findIndex((function(e){return e.name===t}));if(-1===n)throw new Error("Unable to find argument for seed: ".concat(t));return this._args[n]}},{key:"toBufferAccount",value:(n=(0,o.Z)((0,u.Z)().mark((function e(t){var n;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.accountValue(t);case 2:return n=e.sent,e.abrupt("return",this.toBufferValue(t.type,n));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"accountValue",value:(t=(0,o.Z)((0,u.Z)().mark((function e(t){var n,r,a,i;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.path.split("."),r=n[0],a=this._accounts[C()(r)],1!==n.length){e.next=3;break}return e.abrupt("return",a);case 3:return e.next=5,this._accountStore.fetchAccount(t.account,a);case 5:return i=e.sent,e.abrupt("return",this.parseAccountValue(i,n.slice(1)));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"parseAccountValue",value:function(e,t){for(var n;t.length>0;)n=e[C()(t[0])],t=t.slice(1);return n}},{key:"toBufferValue",value:function(e,t){switch(e){case"u8":return jn.from([t]);case"u16":var n=jn.alloc(2);return n.writeUInt16LE(t),n;case"u32":var r=jn.alloc(4);return r.writeUInt32LE(t),r;case"u64":var a=jn.alloc(8);return a.writeBigUInt64LE(BigInt(t)),a;case"string":return jn.from(zn(t));case"publicKey":return t.toBuffer();default:if(e.array)return jn.from(t);throw new Error("Unexpected seed type: ".concat(e))}}}]),e}();oo.CONST_ACCOUNTS={associatedTokenProgram:Bi,rent:w.SYSVAR_RENT_PUBKEY,systemProgram:w.SystemProgram.programId,tokenProgram:Mi};var so=function(){function e(t,n){(0,h.Z)(this,e),this._provider=t,this._accounts=n,this._cache=new Map}var t;return(0,p.Z)(e,[{key:"fetchAccount",value:(t=(0,o.Z)((0,u.Z)().mark((function e(t,n){var r,a,i,o;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.toString(),this._cache.has(r)){e.next=14;break}if("TokenAccount"!==t){e.next=12;break}return e.next=5,this._provider.connection.getAccountInfo(n);case 5:if(null!==(a=e.sent)){e.next=8;break}throw new Error("invalid account info for ".concat(r));case 8:i=ao().accounts.decode("token",a.data),this._cache.set(r,i),e.next=14;break;case 12:o=this._accounts[C()(t)].fetch(n),this._cache.set(r,o);case 14:return e.abrupt("return",this._cache.get(r));case 15:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})}]),e}(),co=function(){function e(){(0,h.Z)(this,e)}return(0,p.Z)(e,null,[{key:"build",value:function(e,t,n,r,a,i,o,s,c){return function(){for(var u=arguments.length,d=new Array(u),f=0;f1&&void 0!==arguments[1]?arguments[1]:0,n=new f.default(this.blob.decode(e,t),10,"le");return this.signed?n.fromTwos(8*this.span).clone():n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.signed&&(e=e.toTwos(8*this.span)),this.blob.encode(e.toArrayLike(r,"le",this.span),t,n)}}]),n}(u.Layout);function p(e){return new b(8,!1,e)}t.u64=p,t.i64=function(e){return new b(8,!0,e)},t.u128=function(e){return new b(16,!1,e)},t.i128=function(e){return new b(16,!0,e)};var h=function(e){o(n,e);var t=s(n);function n(e,r,i,o){var s;return a(this,n),(s=t.call(this,e.span,o)).layout=e,s.decoder=r,s.encoder=i,s}return i(n,[{key:"decode",value:function(e,t){return this.decoder(this.layout.decode(e,t))}},{key:"encode",value:function(e,t,n){return this.layout.encode(this.encoder(e),t,n)}},{key:"getSpan",value:function(e,t){return this.layout.getSpan(e,t)}}]),n}(u.Layout);t.publicKey=function(e){return new h(u.blob(32),(function(e){return new d.PublicKey(e)}),(function(e){return e.toBuffer()}),e)};var y=function(e){o(n,e);var t=s(n);function n(e,r){var i;return a(this,n),(i=t.call(this,-1,r)).layout=e,i.discriminator=u.u8(),i}return i(n,[{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null==e?this.discriminator.encode(0,t,n):(this.discriminator.encode(1,t,n),this.layout.encode(e,t,n+1)+1)}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return null;if(1===n)return this.layout.decode(e,t+1);throw new Error("Invalid option "+this.property)}},{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(e,t);if(0===n)return 1;if(1===n)return this.layout.getSpan(e,t+1)+1;throw new Error("Invalid option "+this.property)}}]),n}(u.Layout);function m(e){if(0===e)return!1;if(1===e)return!0;throw new Error("Invalid bool: "+e)}function v(e){return e?1:0}function g(e){var t=u.u32("length"),n=u.struct([t,u.blob(u.offset(t,-t.span),"data")]);return new h(n,(function(e){return e.data}),(function(e){return{data:e}}),e)}t.option=function(e,t){return new y(e,t)},t.bool=function(e){return new h(u.u8(),m,v,e)},t.vec=function(e,t){var n=u.u32("length"),r=u.struct([n,u.seq(e,u.offset(n,-n.span),"values")]);return new h(r,(function(e){return e.values}),(function(e){return{values:e}}),t)},t.tagged=function(e,t,n){var r=u.struct([p("tag"),t.replicate("data")]);return new h(r,(function(t){var n=t.tag,r=t.data;if(!n.eq(e))throw new Error("Invalid tag, expected: "+e.toString("hex")+", got: "+n.toString("hex"));return r}),(function(t){return{tag:e,data:t}}),n)},t.vecU8=g,t.str=function(e){return new h(g(),(function(e){return e.toString("utf-8")}),(function(e){return r.from(e,"utf-8")}),e)},t.rustEnum=function(e,t,n){var r=u.union(null!=n?n:u.u8(),t);return e.forEach((function(e,t){return r.addVariant(t,e,e.property)})),r},t.array=function(e,t,n){var r=u.struct([u.seq(e,t,"values")]);return new h(r,(function(e){return e.values}),(function(e){return{values:e}}),n)};var A=function(e){o(n,e);var t=s(n);function n(e,r,i){var o;return a(this,n),(o=t.call(this,e.span+r.span,i)).keyLayout=e,o.valueLayout=r,o}return i(n,[{key:"decode",value:function(e,t){return t=t||0,[this.keyLayout.decode(e,t),this.valueLayout.decode(e,t+this.keyLayout.getSpan(e,t))]}},{key:"encode",value:function(e,t,n){n=n||0;var r=this.keyLayout.encode(e[0],t,n);return r+this.valueLayout.encode(e[1],t,n+r)}},{key:"getSpan",value:function(e,t){return this.keyLayout.getSpan(e,t)+this.valueLayout.getSpan(e,t)}}]),n}(u.Layout);t.map=function(e,t,n){var r=u.u32("length"),a=u.struct([r,u.seq(new A(e,t),u.offset(r,-r.span),"values")]);return new h(a,(function(e){var t=e.values;return new Map(t)}),(function(e){return{values:Array.from(e.entries())}}),n)}},57197:function(e){"use strict";e.exports=function(e,t){for(var n=new Array(arguments.length-1),r=0,a=2,i=!0;a1&&"="===e.charAt(t);)++n;return Math.ceil(3*e.length)/4-n};for(var r=new Array(64),a=new Array(123),i=0;i<64;)a[r[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;n.encode=function(e,t,n){for(var a,i=null,o=[],s=0,c=0;t>2],a=(3&u)<<4,c=1;break;case 1:o[s++]=r[a|u>>4],a=(15&u)<<2,c=2;break;case 2:o[s++]=r[a|u>>6],o[s++]=r[63&u],c=0}s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),s=0)}return c&&(o[s++]=r[a],o[s++]=61,1===c&&(o[s++]=61)),i?(s&&i.push(String.fromCharCode.apply(String,o.slice(0,s))),i.join("")):String.fromCharCode.apply(String,o.slice(0,s))};var o="invalid encoding";n.decode=function(e,t,n){for(var r,i=n,s=0,c=0;c1)break;if(void 0===(u=a[u]))throw Error(o);switch(s){case 0:r=u,s=1;break;case 1:t[n++]=r<<2|(48&u)>>4,r=u,s=2;break;case 2:t[n++]=(15&r)<<4|(60&u)>>2,r=u,s=3;break;case 3:t[n++]=(3&r)<<6|u,s=0}}if(1===s)throw Error(o);return n-i},n.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},92539:function(e){"use strict";function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var n=this._listeners[e],r=0;r0?0:2147483648,n,r);else if(isNaN(t))e(2143289344,n,r);else if(t>34028234663852886e22)e((a<<31|2139095040)>>>0,n,r);else if(t<11754943508222875e-54)e((a<<31|Math.round(t/1401298464324817e-60))>>>0,n,r);else{var i=Math.floor(Math.log(t)/Math.LN2);e((a<<31|i+127<<23|8388607&Math.round(t*Math.pow(2,-i)*8388608))>>>0,n,r)}}function o(e,t,n){var r=e(t,n),a=2*(r>>31)+1,i=r>>>23&255,o=8388607&r;return 255===i?o?NaN:a*(1/0):0===i?1401298464324817e-60*a*o:a*Math.pow(2,i-150)*(o+8388608)}e.writeFloatLE=t.bind(null,n),e.writeFloatBE=t.bind(null,r),e.readFloatLE=o.bind(null,a),e.readFloatBE=o.bind(null,i)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),n=new Uint8Array(t.buffer),r=128===n[7];function a(e,r,a){t[0]=e,r[a]=n[0],r[a+1]=n[1],r[a+2]=n[2],r[a+3]=n[3],r[a+4]=n[4],r[a+5]=n[5],r[a+6]=n[6],r[a+7]=n[7]}function i(e,r,a){t[0]=e,r[a]=n[7],r[a+1]=n[6],r[a+2]=n[5],r[a+3]=n[4],r[a+4]=n[3],r[a+5]=n[2],r[a+6]=n[1],r[a+7]=n[0]}function o(e,r){return n[0]=e[r],n[1]=e[r+1],n[2]=e[r+2],n[3]=e[r+3],n[4]=e[r+4],n[5]=e[r+5],n[6]=e[r+6],n[7]=e[r+7],t[0]}function s(e,r){return n[7]=e[r],n[6]=e[r+1],n[5]=e[r+2],n[4]=e[r+3],n[3]=e[r+4],n[2]=e[r+5],n[1]=e[r+6],n[0]=e[r+7],t[0]}e.writeDoubleLE=r?a:i,e.writeDoubleBE=r?i:a,e.readDoubleLE=r?o:s,e.readDoubleBE=r?s:o}():function(){function t(e,t,n,r,a,i){var o=r<0?1:0;if(o&&(r=-r),0===r)e(0,a,i+t),e(1/r>0?0:2147483648,a,i+n);else if(isNaN(r))e(0,a,i+t),e(2146959360,a,i+n);else if(r>17976931348623157e292)e(0,a,i+t),e((o<<31|2146435072)>>>0,a,i+n);else{var s;if(r<22250738585072014e-324)e((s=r/5e-324)>>>0,a,i+t),e((o<<31|s/4294967296)>>>0,a,i+n);else{var c=Math.floor(Math.log(r)/Math.LN2);1024===c&&(c=1023),e(4503599627370496*(s=r*Math.pow(2,-c))>>>0,a,i+t),e((o<<31|c+1023<<20|1048576*s&1048575)>>>0,a,i+n)}}}function o(e,t,n,r,a){var i=e(r,a+t),o=e(r,a+n),s=2*(o>>31)+1,c=o>>>20&2047,u=4294967296*(1048575&o)+i;return 2047===c?u?NaN:s*(1/0):0===c?5e-324*s*u:s*Math.pow(2,c-1075)*(u+4503599627370496)}e.writeDoubleLE=t.bind(null,n,0,4),e.writeDoubleBE=t.bind(null,r,4,0),e.readDoubleLE=o.bind(null,a,0,4),e.readDoubleBE=o.bind(null,i,4,0)}(),e}function n(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}function r(e,t,n){t[n]=e>>>24,t[n+1]=e>>>16&255,t[n+2]=e>>>8&255,t[n+3]=255&e}function a(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},96468:function(module){"use strict";function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},6885:function(e){"use strict";e.exports=function(e,t,n){var r=n||8192,a=r>>>1,i=null,o=r;return function(n){if(n<1||n>a)return e(n);o+n>r&&(i=e(r),o=0);var s=t.call(i,o,o+=n);return 7&o&&(o=1+(7|o)),s}}},55281:function(e,t){"use strict";var n=t;n.length=function(e){for(var t=0,n=0,r=0;r191&&r<224?i[o++]=(31&r)<<6|63&e[t++]:r>239&&r<365?(r=((7&r)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[o++]=55296+(r>>10),i[o++]=56320+(1023&r)):i[o++]=(15&r)<<12|(63&e[t++])<<6|63&e[t++],o>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,i)),o=0);return a?(o&&a.push(String.fromCharCode.apply(String,i.slice(0,o))),a.join("")):String.fromCharCode.apply(String,i.slice(0,o))},n.write=function(e,t,n){for(var r,a,i=n,o=0;o>6|192,t[n++]=63&r|128):55296==(64512&r)&&56320==(64512&(a=e.charCodeAt(o+1)))?(r=65536+((1023&r)<<10)+(1023&a),++o,t[n++]=r>>18|240,t[n++]=r>>12&63|128,t[n++]=r>>6&63|128,t[n++]=63&r|128):(t[n++]=r>>12|224,t[n++]=r>>6&63|128,t[n++]=63&r|128);return n-i}},42508:function(e,t,n){"use strict";var r=n(33482).default;function a(e){if(!Number.isSafeInteger(e))throw new Error("Wrong integer: ".concat(e))}function i(){for(var e=function(e,t){return function(n){return e(t(n))}},t=arguments.length,n=new Array(t),r=0;r=e.length)throw new Error("Digit index outside alphabet: ".concat(t," (alphabet: ").concat(e.length,")"));return e[t]}))},decode:function(t){if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("alphabet.decode input should be array of strings");return t.map((function(t){if("string"!=typeof t)throw new Error("alphabet.decode: not string element=".concat(t));var n=e.indexOf(t);if(-1===n)throw new Error('Unknown letter: "'.concat(t,'". Allowed: ').concat(e));return n}))}}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if("string"!=typeof e)throw new Error("join separator should be string");return{encode:function(t){if(!Array.isArray(t)||t.length&&"string"!=typeof t[0])throw new Error("join.encode input should be array of strings");var n,a=r(t);try{for(a.s();!(n=a.n()).done;){var i=n.value;if("string"!=typeof i)throw new Error("join.encode: non-string input=".concat(i))}}catch(e){a.e(e)}finally{a.f()}return t.join(e)},decode:function(t){if("string"!=typeof t)throw new Error("join.decode input should be string");return t.split(e)}}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"=";if(a(e),"string"!=typeof t)throw new Error("padding chr should be string");return{encode:function(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");var a,i=r(n);try{for(i.s();!(a=i.n()).done;){var o=a.value;if("string"!=typeof o)throw new Error("padding.encode: non-string input=".concat(o))}}catch(e){i.e(e)}finally{i.f()}for(;n.length*e%8;)n.push(t);return n},decode:function(n){if(!Array.isArray(n)||n.length&&"string"!=typeof n[0])throw new Error("padding.encode input should be array of strings");var a,i=r(n);try{for(i.s();!(a=i.n()).done;){var o=a.value;if("string"!=typeof o)throw new Error("padding.decode: non-string input=".concat(o))}}catch(e){i.e(e)}finally{i.f()}var s=n.length;if(s*e%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;s>0&&n[s-1]===t;s--)if(!((s-1)*e%8))throw new Error("Invalid padding: string has too much padding");return n.slice(0,s)}}}function u(e){if("function"!=typeof e)throw new Error("normalize fn should be function");return{encode:function(e){return e},decode:function(t){return e(t)}}}function d(e,t,n){if(t<2)throw new Error("convertRadix: wrong from=".concat(t,", base cannot be less than 2"));if(n<2)throw new Error("convertRadix: wrong to=".concat(n,", base cannot be less than 2"));if(!Array.isArray(e))throw new Error("convertRadix: data should be array");if(!e.length)return[];var r=0,i=[],o=Array.from(e);for(o.forEach((function(e){if(a(e),e<0||e>=t)throw new Error("Wrong integer: ".concat(e))}));;){for(var s=0,c=!0,u=r;u32)throw new Error("convertRadix2: wrong from=".concat(t));if(n<=0||n>32)throw new Error("convertRadix2: wrong to=".concat(n));if(l(t,n)>32)throw new Error("convertRadix2: carry overflow from=".concat(t," to=").concat(n," carryBits=").concat(l(t,n)));var o,s=0,c=0,u=Math.pow(2,n)-1,d=[],f=r(e);try{for(f.s();!(o=f.n()).done;){var b=o.value;if(a(b),b>=Math.pow(2,t))throw new Error("convertRadix2: invalid data word=".concat(b," from=").concat(t));if(s=s<32)throw new Error("convertRadix2: carry overflow pos=".concat(c," from=").concat(t));for(c+=t;c>=n;c-=n)d.push((s>>c-n&u)>>>0);s&=Math.pow(2,c)-1}}catch(e){f.e(e)}finally{f.f()}if(s=s<=t)throw new Error("Excess padding");if(!i&&s)throw new Error("Non-zero padding: ".concat(s));return i&&c>0&&d.push(s>>>0),d}function p(e){return a(e),{encode:function(t){if(!(t instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return d(Array.from(t),Math.pow(2,8),e)},decode:function(t){if(!Array.isArray(t)||t.length&&"number"!=typeof t[0])throw new Error("radix.decode input should be array of strings");return Uint8Array.from(d(t,e,Math.pow(2,8)))}}}function h(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(a(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if(l(8,e)>32||l(e,8)>32)throw new Error("radix2: carry overflow");return{encode:function(n){if(!(n instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return b(Array.from(n),8,e,!t)},decode:function(n){if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(b(n,e,8,t))}}}function y(e){if("function"!=typeof e)throw new Error("unsafeWrapper fn should be function");return function(){try{for(var t=arguments.length,n=new Array(t),r=0;r>25,n=(33554431&e)<<5,r=0;r>r&1)&&(n^=w[r]);return n}function _(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=e.length,i=1,o=0;o126)throw new Error("Invalid prefix (".concat(e,")"));i=x(i)^s>>5}i=x(i);for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:90;if("string"!=typeof e)throw new Error("bech32.decode input should be string, not ".concat(typeof e));if(e.length<8||!1!==n&&e.length>n)throw new TypeError("Wrong string length: ".concat(e.length," (").concat(e,"). Expected (8..").concat(n,")"));var r=e.toLowerCase();if(e!==r&&e!==e.toUpperCase())throw new Error("String must be lowercase or uppercase");var a=(e=r).lastIndexOf("1");if(0===a||-1===a)throw new Error('Letter "1" must be present between prefix and data only');var i=e.slice(0,a),o=e.slice(a+1);if(o.length<6)throw new Error("Data must be at least 6 characters long");var s=A.decode(o).slice(0,-6),c=_(i,s,t);if(!o.endsWith(c))throw new Error("Invalid checksum in ".concat(e,': expected "').concat(c,'"'));return{prefix:i,words:s}}return{encode:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:90;if("string"!=typeof e)throw new Error("bech32.encode prefix should be string, not ".concat(typeof e));if(!Array.isArray(n)||n.length&&"number"!=typeof n[0])throw new Error("bech32.encode words should be array of numbers, not ".concat(typeof n));var a=e.length+7+n.length;if(!1!==r&&a>r)throw new TypeError("Length ".concat(a," exceeds limit ").concat(r));return e=e.toLowerCase(),"".concat(e,"1").concat(A.encode(n)).concat(_(e,n,t))},decode:o,decodeToBytes:function(e){var t=o(e,!1),n=t.prefix,a=t.words;return{prefix:n,words:a,bytes:r(a)}},decodeUnsafe:y(o),fromWords:r,fromWordsUnsafe:i,toWords:a}}t.bech32=k("bech32"),t.bech32m=k("bech32m"),t.utf8={encode:function(e){return(new TextDecoder).decode(e)},decode:function(e){return(new TextEncoder).encode(e)}},t.hex=i(h(4),o("0123456789abcdef"),s(""),u((function(e){if("string"!=typeof e||e.length%2)throw new TypeError("hex.decode: expected string, got ".concat(typeof e," with length ").concat(e.length));return e.toLowerCase()})));var I={utf8:t.utf8,hex:t.hex,base16:t.base16,base32:t.base32,base64:t.base64,base64url:t.base64url,base58:t.base58,base58xmr:t.base58xmr},S="Invalid encoding type. Available types: ".concat(Object.keys(I).join(", "));t.bytesToString=function(e,t){if("string"!=typeof e||!I.hasOwnProperty(e))throw new TypeError(S);if(!(t instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return I[e].encode(t)},t.str=t.bytesToString,t.stringToBytes=function(e,t){if(!I.hasOwnProperty(e))throw new TypeError(S);if("string"!=typeof t)throw new TypeError("stringToBytes() expects string");return I[e].decode(t)},t.bytes=t.stringToBytes},15923:function(e,t,n){"use strict";t.Z1=void 0;n(49125);var r=n(23438),a=(n(92375),n(7816));n(79766),n(42508);function i(e){if("string"!=typeof e)throw new TypeError("Invalid mnemonic type: ".concat(typeof e));return e.normalize("NFKD")}function o(e){var t=i(e),n=t.split(" ");if(![12,15,18,21,24].includes(n.length))throw new Error("Invalid mnemonic");return{nfkd:t,words:n}}t.Z1=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,r.pbkdf2)(a.sha512,o(e).nfkd,function(e){return i("mnemonic".concat(e))}(t),{c:2048,dkLen:64})}},49125:function(e,t){"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Wrong positive integer: ".concat(e))}function r(e){if("boolean"!=typeof e)throw new Error("Expected boolean, not ".concat(e))}function a(e){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&!n.includes(e.length))throw new TypeError("Expected Uint8Array of length ".concat(n,", not of length=").concat(e.length))}function i(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){a(e);var n=t.outputLen;if(e.lengthr-i&&(this.process(n,0),i=0);for(var o=i;o>a&i),s=Number(n&i),c=r?4:0,u=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+u,s,r)}(n,r-8,BigInt(8*this.length),a),this.process(n,0);var s=(0,u.createView)(e),d=this.outputLen;if(d%4)throw new Error("_sha2: outputLen should be aligned to 32bit");var f=d/4,l=this.get();if(f>l.length)throw new Error("_sha2: outputLen bigger than state");for(var b=0;b1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function i(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length),i=0;i>>0)+(r>>>0);return{h:e+n+(a/Math.pow(2,32)|0)|0,l:0|a}}t.fromBig=a,t.split=i,t.toBig=function(e,t){return BigInt(e>>>0)<>>0)},t.add=o;var s={fromBig:a,split:i,toBig:t.toBig,shrSH:function(e,t,n){return e>>>n},shrSL:function(e,t,n){return e<<32-n|t>>>n},rotrSH:function(e,t,n){return e>>>n|t<<32-n},rotrSL:function(e,t,n){return e<<32-n|t>>>n},rotrBH:function(e,t,n){return e<<64-n|t>>>n-32},rotrBL:function(e,t,n){return e>>>n-32|t<<64-n},rotr32H:function(e,t){return t},rotr32L:function(e,t){return e},rotlSH:function(e,t,n){return e<>>32-n},rotlSL:function(e,t,n){return t<>>32-n},rotlBH:function(e,t,n){return t<>>64-n},rotlBL:function(e,t,n){return e<>>64-n},add:o,add3L:function(e,t,n){return(e>>>0)+(t>>>0)+(n>>>0)},add3H:function(e,t,n,r){return t+n+r+(e/Math.pow(2,32)|0)|0},add4L:function(e,t,n,r){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)},add4H:function(e,t,n,r,a){return t+n+r+a+(e/Math.pow(2,32)|0)|0},add5H:function(e,t,n,r,a,i){return t+n+r+a+i+(e/Math.pow(2,32)|0)|0},add5L:function(e,t,n,r,a){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(a>>>0)}};t.default=s},33858:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto={node:void 0,web:"object"==typeof self&&"crypto"in self?self.crypto:void 0}},38155:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(67766).default,o=n(65040).default;Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=void 0;var s=n(49125),c=n(79766),u=function(e){i(n,e);var t=o(n);function n(e,a){var i;r(this,n),(i=t.call(this)).finished=!1,i.destroyed=!1,s.default.hash(e);var o=(0,c.toBytes)(a);if(i.iHash=e.create(),"function"!=typeof i.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");i.blockLen=i.iHash.blockLen,i.outputLen=i.iHash.outputLen;var u=i.blockLen,d=new Uint8Array(u);d.set(o.length>u?e.create().update(o).digest():o);for(var f=0;f= 1");var f=(0,s.toBytes)(t),l=(0,s.toBytes)(n),b=new Uint8Array(u),p=o.hmac.create(e,f),h=p._cloneInto().update(l);return{c:c,dkLen:u,asyncTick:d,DK:b,PRF:p,PRFSalt:h}}function u(e,t,n,r,a){return e.destroy(),t.destroy(),r&&r.destroy(),a.fill(0),n}function d(){return(d=a(r().mark((function e(t,n,a,i){var o,d,f,l,b,p,h,y,m,v,g,A,w,x;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=c(t,n,a,i),d=o.c,f=o.dkLen,l=o.asyncTick,b=o.DK,p=o.PRF,h=o.PRFSalt,m=new Uint8Array(4),v=(0,s.createView)(m),g=new Uint8Array(p.outputLen),A=r().mark((function e(){var t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=b.subarray(x,x+p.outputLen),v.setInt32(0,w,!1),(y=h._cloneInto(y)).update(m).digestInto(g),t.set(g.subarray(0,t.length)),e.next=6,(0,s.asyncLoop)(d-1,l,(function(e){p._cloneInto(y).update(g).digestInto(g);for(var n=0;n>>3,s=(0,c.rotr)(i,17)^(0,c.rotr)(i,19)^i>>>10;l[r]=s+l[r-7]+o+l[r-16]|0}for(var f,b=this.A,p=this.B,h=this.C,y=this.D,m=this.E,v=this.F,g=this.G,A=this.H,w=0;w<64;w++){var x=A+((0,c.rotr)(m,6)^(0,c.rotr)(m,11)^(0,c.rotr)(m,25))+((f=m)&v^~f&g)+d[w]+l[w]|0,_=((0,c.rotr)(b,2)^(0,c.rotr)(b,13)^(0,c.rotr)(b,22))+u(b,p,h)|0;A=g,g=v,v=m,m=y+x|0,y=h,h=p,p=b,b=x+_|0}b=b+this.A|0,p=p+this.B|0,h=h+this.C|0,y=y+this.D|0,m=m+this.E|0,v=v+this.F|0,g=g+this.G|0,A=A+this.H|0,this.set(b,p,h,y,m,v,g,A)}},{key:"roundClean",value:function(){l.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),n}(s.SHA2),p=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).A=-1056596264,e.B=914150663,e.C=812702999,e.D=-150054599,e.E=-4191439,e.F=1750603025,e.G=1694076839,e.H=-1090891868,e.outputLen=28,e}return a(n)}(b);t.sha256=(0,c.wrapConstructor)((function(){return new b})),t.sha224=(0,c.wrapConstructor)((function(){return new p}))},7816:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(67766).default,o=n(65040).default,s=n(15771).default;Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;var c=n(7211),u=n(98416),d=n(79766),f=s(u.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((function(e){return BigInt(e)}))),2),l=f[0],b=f[1],p=new Uint32Array(80),h=new Uint32Array(80),y=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this,128,64,16,!1)).Ah=1779033703,e.Al=-205731576,e.Bh=-1150833019,e.Bl=-2067093701,e.Ch=1013904242,e.Cl=-23791573,e.Dh=-1521486534,e.Dl=1595750129,e.Eh=1359893119,e.El=-1377402159,e.Fh=-1694144372,e.Fl=725511199,e.Gh=528734635,e.Gl=-79577749,e.Hh=1541459225,e.Hl=327033209,e}return a(n,[{key:"get",value:function(){return[this.Ah,this.Al,this.Bh,this.Bl,this.Ch,this.Cl,this.Dh,this.Dl,this.Eh,this.El,this.Fh,this.Fl,this.Gh,this.Gl,this.Hh,this.Hl]}},{key:"set",value:function(e,t,n,r,a,i,o,s,c,u,d,f,l,b,p,h){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|a,this.Cl=0|i,this.Dh=0|o,this.Dl=0|s,this.Eh=0|c,this.El=0|u,this.Fh=0|d,this.Fl=0|f,this.Gh=0|l,this.Gl=0|b,this.Hh=0|p,this.Hl=0|h}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)p[n]=e.getUint32(t),h[n]=e.getUint32(t+=4);for(var r=16;r<80;r++){var a=0|p[r-15],i=0|h[r-15],o=u.default.rotrSH(a,i,1)^u.default.rotrSH(a,i,8)^u.default.shrSH(a,i,7),s=u.default.rotrSL(a,i,1)^u.default.rotrSL(a,i,8)^u.default.shrSL(a,i,7),c=0|p[r-2],d=0|h[r-2],f=u.default.rotrSH(c,d,19)^u.default.rotrBH(c,d,61)^u.default.shrSH(c,d,6),y=u.default.rotrSL(c,d,19)^u.default.rotrBL(c,d,61)^u.default.shrSL(c,d,6),m=u.default.add4L(s,y,h[r-7],h[r-16]),v=u.default.add4H(m,o,f,p[r-7],p[r-16]);p[r]=0|v,h[r]=0|m}for(var g=this.Ah,A=this.Al,w=this.Bh,x=this.Bl,_=this.Ch,k=this.Cl,I=this.Dh,S=this.Dl,E=this.Eh,C=this.El,T=this.Fh,O=this.Fl,P=this.Gh,M=this.Gl,B=this.Hh,N=this.Hl,R=0;R<80;R++){var D=u.default.rotrSH(E,C,14)^u.default.rotrSH(E,C,18)^u.default.rotrBH(E,C,41),j=u.default.rotrSL(E,C,14)^u.default.rotrSL(E,C,18)^u.default.rotrBL(E,C,41),U=E&T^~E&P,L=C&O^~C&M,F=u.default.add5L(N,j,L,b[R],h[R]),Z=u.default.add5H(F,B,D,U,l[R],p[R]),H=0|F,z=u.default.rotrSH(g,A,28)^u.default.rotrBH(g,A,34)^u.default.rotrBH(g,A,39),Q=u.default.rotrSL(g,A,28)^u.default.rotrBL(g,A,34)^u.default.rotrBL(g,A,39),q=g&w^g&_^w&_,V=A&x^A&k^x&k;B=0|P,N=0|M,P=0|T,M=0|O,T=0|E,O=0|C;var J=u.default.add(0|I,0|S,0|Z,0|H);E=J.h,C=J.l,I=0|_,S=0|k,_=0|w,k=0|x,w=0|g,x=0|A;var K=u.default.add3L(H,Q,V);g=u.default.add3H(K,Z,z,q),A=0|K}var G=u.default.add(0|this.Ah,0|this.Al,0|g,0|A);g=G.h,A=G.l;var W=u.default.add(0|this.Bh,0|this.Bl,0|w,0|x);w=W.h,x=W.l;var Y=u.default.add(0|this.Ch,0|this.Cl,0|_,0|k);_=Y.h,k=Y.l;var X=u.default.add(0|this.Dh,0|this.Dl,0|I,0|S);I=X.h,S=X.l;var $=u.default.add(0|this.Eh,0|this.El,0|E,0|C);E=$.h,C=$.l;var ee=u.default.add(0|this.Fh,0|this.Fl,0|T,0|O);T=ee.h,O=ee.l;var te=u.default.add(0|this.Gh,0|this.Gl,0|P,0|M);P=te.h,M=te.l;var ne=u.default.add(0|this.Hh,0|this.Hl,0|B,0|N);B=ne.h,N=ne.l,this.set(g,A,w,x,_,k,I,S,E,C,T,O,P,M,B,N)}},{key:"roundClean",value:function(){p.fill(0),h.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),n}(c.SHA2);t.SHA512=y;var m=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).Ah=-1942145080,e.Al=424955298,e.Bh=1944164710,e.Bl=-1982016298,e.Ch=502970286,e.Cl=855612546,e.Dh=1738396948,e.Dl=1479516111,e.Eh=258812777,e.El=2077511080,e.Fh=2011393907,e.Fl=79989058,e.Gh=1067287976,e.Gl=1780299464,e.Hh=286451373,e.Hl=-1848208735,e.outputLen=28,e}return a(n)}(y),v=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).Ah=573645204,e.Al=-64227540,e.Bh=-1621794909,e.Bl=-934517566,e.Ch=596883563,e.Cl=1867755857,e.Dh=-1774684391,e.Dl=1497426621,e.Eh=-1775747358,e.El=-1467023389,e.Fh=-1101128155,e.Fl=1401305490,e.Gh=721525244,e.Gl=746961066,e.Hh=246885852,e.Hl=-2117784414,e.outputLen=32,e}return a(n)}(y),g=function(e){i(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this)).Ah=-876896931,e.Al=-1056596264,e.Bh=1654270250,e.Bl=914150663,e.Ch=-1856437926,e.Cl=812702999,e.Dh=355462360,e.Dl=-150054599,e.Eh=1731405415,e.El=-4191439,e.Fh=-1900787065,e.Fl=1750603025,e.Gh=-619958771,e.Gl=1694076839,e.Hh=1203062813,e.Hl=-1090891868,e.outputLen=48,e}return a(n)}(y);t.sha512=(0,d.wrapConstructor)((function(){return new y})),t.sha512_224=(0,d.wrapConstructor)((function(){return new m})),t.sha512_256=(0,d.wrapConstructor)((function(){return new v})),t.sha384=(0,d.wrapConstructor)((function(){return new g}))},79766:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(80294).default,o=n(46228).default;Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;var s=n(33858);if(t.u8=function(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)},t.u32=function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},t.createView=function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},t.rotr=function(e,t){return e<<32-t|e>>>t},t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");var c=Array.from({length:256},(function(e,t){return t.toString(16).padStart(2,"0")}));t.bytesToHex=function(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected");for(var t="",n=0;n=0&&c0&&void 0!==arguments[0]?arguments[0]:32;if(s.crypto.web)return s.crypto.web.getRandomValues(new Uint8Array(e));if(s.crypto.node)return new Uint8Array(s.crypto.node.randomBytes(e).buffer);throw new Error("The environment doesn't have randomBytes function")}},79496:function(e,t,n){"use strict";var r=n(58738).default,a=n(88941).default,i=n(93637).default,o=n(33482).default,s=n(67766).default,c=n(65040).default,u=n(34671).default,d=n(68387).default;Object.defineProperty(t,"__esModule",{value:!0}),t.s16=t.s8=t.nu64be=t.u48be=t.u40be=t.u32be=t.u24be=t.u16be=t.nu64=t.u48=t.u40=t.u32=t.u24=t.u16=t.u8=t.offset=t.greedy=t.Constant=t.UTF8=t.CString=t.Blob=t.Boolean=t.BitField=t.BitStructure=t.VariantLayout=t.Union=t.UnionLayoutDiscriminator=t.UnionDiscriminator=t.Structure=t.Sequence=t.DoubleBE=t.Double=t.FloatBE=t.Float=t.NearInt64BE=t.NearInt64=t.NearUInt64BE=t.NearUInt64=t.IntBE=t.Int=t.UIntBE=t.UInt=t.OffsetLayout=t.GreedyCount=t.ExternalLayout=t.bindConstructorLayout=t.nameWithProperty=t.Layout=t.uint8ArrayToBuffer=t.checkUint8Array=void 0,t.constant=t.utf8=t.cstr=t.blob=t.unionLayoutDiscriminator=t.union=t.seq=t.bits=t.struct=t.f64be=t.f64=t.f32be=t.f32=t.ns64be=t.s48be=t.s40be=t.s32be=t.s24be=t.s16be=t.ns64=t.s48=t.s40=t.s32=t.s24=void 0;var f=n(5886);function l(e){if(!(e instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function b(e){return l(e),f.Buffer.from(e.buffer,e.byteOffset,e.length)}t.checkUint8Array=l,t.uint8ArrayToBuffer=b;var p=function(){function e(t,n){if(u(this,e),!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=n}return d(e,[{key:"makeDestinationObject",value:function(){return{}}},{key:"getSpan",value:function(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(e){var t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}},{key:"fromArray",value:function(e){}}]),e}();function h(e,t){return t.property?e+"["+t.property+"]":e}t.Layout=p,t.nameWithProperty=h,t.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(e,"layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof p))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(t,"boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=function(){return new e},Object.defineProperty(e.prototype,"encode",{value:function(e,n){return t.encode(this,e,n)},writable:!0}),Object.defineProperty(e,"decode",{value:function(e,n){return t.decode(e,n)},writable:!0})};var y=function(e){s(n,e);var t=c(n);function n(){return u(this,n),t.apply(this,arguments)}return d(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}(p);t.ExternalLayout=y;var m=function(e){s(n,e);var t=c(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,a=arguments.length>1?arguments[1]:void 0;if(u(this,n),!Number.isInteger(r)||0>=r)throw new TypeError("elementSpan must be a (positive) integer");return(e=t.call(this,-1,a)).elementSpan=r,e}return d(n,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;l(e);var n=e.length-t;return Math.floor(n/this.elementSpan)}},{key:"encode",value:function(e,t,n){return 0}}]),n}(y);t.GreedyCount=m;var v=function(e){s(n,e);var t=c(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;if(u(this,n),!(e instanceof p))throw new TypeError("layout must be a Layout");if(!Number.isInteger(a))throw new TypeError("offset must be integer or undefined");return(r=t.call(this,e.span,i||e.property)).layout=e,r.offset=a,r}return d(n,[{key:"isCount",value:function(){return this.layout instanceof g||this.layout instanceof A}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.decode(e,t+this.offset)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.layout.encode(e,t,n+this.offset)}}]),n}(y);t.OffsetLayout=v;var g=function(e){s(n,e);var t=c(n);function n(e,r){var a;if(u(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return d(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return b(e).readUIntLE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return b(t).writeUIntLE(e,n,this.span),this.span}}]),n}(p);t.UInt=g;var A=function(e){s(n,e);var t=c(n);function n(e,r){var a;if(u(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return d(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return b(e).readUIntBE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return b(t).writeUIntBE(e,n,this.span),this.span}}]),n}(p);t.UIntBE=A;var w=function(e){s(n,e);var t=c(n);function n(e,r){var a;if(u(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return d(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return b(e).readIntLE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return b(t).writeIntLE(e,n,this.span),this.span}}]),n}(p);t.Int=w;var x=function(e){s(n,e);var t=c(n);function n(e,r){var a;if(u(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return d(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return b(e).readIntBE(t,this.span)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return b(t).writeIntBE(e,n,this.span),this.span}}]),n}(p);t.IntBE=x;var _=Math.pow(2,32);function k(e){var t=Math.floor(e/_);return{hi32:t,lo32:e-t*_}}function I(e,t){return e*_+t}var S=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,8,e)}return d(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=b(e),r=n.readUInt32LE(t);return I(n.readUInt32LE(t+4),r)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=k(e),a=b(t);return a.writeUInt32LE(r.lo32,n),a.writeUInt32LE(r.hi32,n+4),8}}]),n}(p);t.NearUInt64=S;var E=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,8,e)}return d(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=b(e);return I(n.readUInt32BE(t),n.readUInt32BE(t+4))}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=k(e),a=b(t);return a.writeUInt32BE(r.hi32,n),a.writeUInt32BE(r.lo32,n+4),8}}]),n}(p);t.NearUInt64BE=E;var C=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,8,e)}return d(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=b(e),r=n.readUInt32LE(t);return I(n.readInt32LE(t+4),r)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=k(e),a=b(t);return a.writeUInt32LE(r.lo32,n),a.writeInt32LE(r.hi32,n+4),8}}]),n}(p);t.NearInt64=C;var T=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,8,e)}return d(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=b(e);return I(n.readInt32BE(t),n.readUInt32BE(t+4))}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=k(e),a=b(t);return a.writeInt32BE(r.hi32,n),a.writeUInt32BE(r.lo32,n+4),8}}]),n}(p);t.NearInt64BE=T;var O=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,4,e)}return d(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return b(e).readFloatLE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return b(t).writeFloatLE(e,n),4}}]),n}(p);t.Float=O;var P=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,4,e)}return d(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return b(e).readFloatBE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return b(t).writeFloatBE(e,n),4}}]),n}(p);t.FloatBE=P;var M=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,8,e)}return d(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return b(e).readDoubleLE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return b(t).writeDoubleLE(e,n),8}}]),n}(p);t.Double=M;var B=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,8,e)}return d(n,[{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return b(e).readDoubleBE(t)}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return b(t).writeDoubleBE(e,n),8}}]),n}(p);t.DoubleBE=B;var N=function(e){s(n,e);var t=c(n);function n(e,r,a){var i;if(u(this,n),!(e instanceof p))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof y&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var o=-1;return!(r instanceof y)&&01&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0,r=this.count;if(r instanceof y&&(r=r.decode(e,t)),01&&void 0!==arguments[1]?arguments[1]:0,n=[],r=0,a=this.count;for(a instanceof y&&(a=a.decode(e,t));r2&&void 0!==arguments[2]?arguments[2]:0,r=this.elementLayout,a=e.reduce((function(e,a){return e+r.encode(a,t,n+e)}),0);return this.count instanceof y&&this.count.encode(e.length,t,n),a}}]),n}(p);t.Sequence=N;var R=function(e){s(n,e);var t=c(n);function n(e,r,a){var i;if(u(this,n),!Array.isArray(e)||!e.reduce((function(e,t){return e&&t instanceof p}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof r&&void 0===a&&(a=r,r=void 0);var s,c=o(e);try{for(c.s();!(s=c.n()).done;){var d=s.value;if(0>d.span&&void 0===d.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(e){c.e(e)}finally{c.f()}var f=-1;try{f=e.reduce((function(e,t){return e+t.getSpan()}),0)}catch(e){}return(i=t.call(this,f,r)).fields=e,i.decodePrefixes=!!a,i}return d(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0;try{n=this.fields.reduce((function(n,r){var a=r.getSpan(e,t);return t+=a,n+a}),0)}catch(e){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;l(e);var n,r=this.makeDestinationObject(),a=o(this.fields);try{for(a.s();!(n=a.n()).done;){var i=n.value;if(void 0!==i.property&&(r[i.property]=i.decode(e,t)),t+=i.getSpan(e,t),this.decodePrefixes&&e.length===t)break}}catch(e){a.e(e)}finally{a.f()}return r}},{key:"encode",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=r,i=0,s=0,c=o(this.fields);try{for(c.s();!(n=c.n()).done;){var u=n.value,d=u.span;if(s=0d&&(d=u.getSpan(t,r)))}i=r,r+=d}}catch(e){c.e(e)}finally{c.f()}return i+s-a}},{key:"fromArray",value:function(e){var t,n=this.makeDestinationObject(),r=o(this.fields);try{for(r.s();!(t=r.n()).done;){var a=t.value;void 0!==a.property&&0a.span?n=-1:0<=n&&(n+=a.span)}}catch(e){r.e(e)}finally{r.f()}}}]),n}(p);t.Structure=R;var D=function(){function e(t){u(this,e),this.property=t}return d(e,[{key:"decode",value:function(e,t){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(e,t,n){throw new Error("UnionDiscriminator is abstract")}}]),e}();t.UnionDiscriminator=D;var j=function(e){s(n,e);var t=c(n);function n(e,r){var a;if(u(this,n),!(e instanceof y&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(a=t.call(this,r||e.property||"variant")).layout=e,a}return d(n,[{key:"decode",value:function(e,t){return this.layout.decode(e,t)}},{key:"encode",value:function(e,t,n){return this.layout.encode(e,t,n)}}]),n}(D);t.UnionLayoutDiscriminator=j;var U=function(e){s(n,e);var t=c(n);function n(e,r,a){var o,s;if(u(this,n),e instanceof g||e instanceof A)s=new j(new v(e));else if(e instanceof y&&e.isCount())s=new j(e);else{if(!(e instanceof D))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");s=e}if(void 0===r&&(r=null),!(null===r||r instanceof p))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var c=-1;r&&0<=(c=r.span)&&(e instanceof g||e instanceof A)&&(c+=s.layout.span),(o=t.call(this,c,a)).discriminator=s,o.usesPrefixDiscriminator=e instanceof g||e instanceof A,o.defaultLayout=r,o.registry={};var d=o.defaultGetSourceVariant.bind(i(o));return o.getSourceVariant=function(e){return d(e)},o.configGetSourceVariant=function(e){d=e.bind(this)},o}return d(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}},{key:"defaultGetSourceVariant",value:function(e){if(Object.prototype.hasOwnProperty.call(e,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(e,this.defaultLayout.property))return;var t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||t.property&&Object.prototype.hasOwnProperty.call(e,t.property)))return t}else for(var n in this.registry){var r=this.registry[n];if(r.property&&Object.prototype.hasOwnProperty.call(e,r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.discriminator,a=r.decode(e,n),i=this.registry[a];if(void 0===i){var o=this.defaultLayout,s=0;this.usesPrefixDiscriminator&&(s=r.layout.span),(t=this.makeDestinationObject())[r.property]=a,t[o.property]=o.decode(e,n+s)}else t=i.decode(e,n);return t}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getSourceVariant(e);if(void 0===r){var a=this.discriminator,i=this.defaultLayout,o=0;return this.usesPrefixDiscriminator&&(o=a.layout.span),a.encode(e[a.property],t,n),o+i.encode(e[i.property],t,n+o)}return r.encode(e,t,n)}},{key:"addVariant",value:function(e,t,n){var r=new L(this,e,t,n);return this.registry[e]=r,r}},{key:"getVariant",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=e instanceof Uint8Array?this.discriminator.decode(e,n):e,this.registry[t]}}]),n}(p);t.Union=U;var L=function(e){s(n,e);var t=c(n);function n(e,r,a,i){var o;if(u(this,n),!(e instanceof U))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof a&&void 0===i&&(i=a,a=null),a){if(!(a instanceof p))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=a.span&&a.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof i)throw new TypeError("variant must have a String property")}var s=e.span;return 0>e.span&&0<=(s=a?a.span:0)&&e.usesPrefixDiscriminator&&(s+=e.discriminator.layout.span),(o=t.call(this,s,i)).union=e,o.variant=r,o.layout=a||null,o}return d(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);var r=0;return this.layout&&(r=this.layout.getSpan(e,t+n)),n+r}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.makeDestinationObject();if(this!==this.union.getVariant(e,t))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(e,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);var a=r;if(this.layout&&(this.layout.encode(e[this.property],t,n+r),a+=this.layout.getSpan(t,n+r),0<=this.union.span&&a>this.union.span))throw new Error("encoded variant overruns containing union");return a}},{key:"fromArray",value:function(e){if(this.layout)return this.layout.fromArray(e)}}]),n}(p);function F(e){return 0>e&&(e+=4294967296),e}t.VariantLayout=L;var Z=function(e){s(n,e);var t=c(n);function n(e,r,a){var i;if(u(this,n),!(e instanceof g||e instanceof A))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof r&&void 0===a&&(a=r,r=!1),41&&void 0!==arguments[1]?arguments[1]:0,n=this.makeDestinationObject(),r=this.word.decode(e,t);this._packedSetValue(r);var a,i=o(this.fields);try{for(i.s();!(a=i.n()).done;){var s=a.value;void 0!==s.property&&(n[s.property]=s.decode(e))}}catch(e){i.e(e)}finally{i.f()}return n}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.word.decode(t,n);this._packedSetValue(r);var a,i=o(this.fields);try{for(i.s();!(a=i.n()).done;){var s=a.value;if(void 0!==s.property){var c=e[s.property];void 0!==c&&s.encode(c)}}}catch(e){i.e(e)}finally{i.f()}return this.word.encode(this._packedGetValue(),t,n)}},{key:"addField",value:function(e,t){var n=new H(this,e,t);return this.fields.push(n),n}},{key:"addBoolean",value:function(e){var t=new z(this,e);return this.fields.push(t),t}},{key:"fieldFor",value:function(e){if("string"!=typeof e)throw new TypeError("property must be string");var t,n=o(this.fields);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.property===e)return r}}catch(e){n.e(e)}finally{n.f()}}}]),n}(p);t.BitStructure=Z;var H=function(){function e(t,n,r){if(u(this,e),!(t instanceof Z))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(n)||0>=n)throw new TypeError("bits must be positive integer");var a=8*t.span,i=t.fields.reduce((function(e,t){return e+t.bits}),0);if(n+i>a)throw new Error("bits too long for span remainder ("+(a-i)+" of "+a+" remain)");this.container=t,this.bits=n,this.valueMask=(1<>>this.start}},{key:"encode",value:function(e){if("number"!=typeof e||!Number.isInteger(e)||e!==F(e&this.valueMask))throw new TypeError(h("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var t=this.container._packedGetValue(),n=F(e<n&&(n=this.length.decode(e,t)),n}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.span;return 0>n&&(n=this.length.decode(e,t)),b(e).slice(t,t+n)}},{key:"encode",value:function(e,t,n){var r=this.length;if(this.length instanceof y&&(r=e.length),!(e instanceof Uint8Array&&r===e.length))throw new TypeError(h("Blob.encode",this)+" requires (length "+r+") Uint8Array as src");if(n+r>t.length)throw new RangeError("encoding overruns Uint8Array");var a=b(e);return b(t).write(a.toString("hex"),n,r,"hex"),this.length instanceof y&&this.length.encode(r,t,n),r}}]),n}(p);t.Blob=Q;var q=function(e){s(n,e);var t=c(n);function n(e){return u(this,n),t.call(this,-1,e)}return d(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;l(e);for(var n=t;n1&&void 0!==arguments[1]?arguments[1]:0,n=this.getSpan(e,t);return b(e).slice(t,t+n-1).toString("utf-8")}},{key:"encode",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;"string"!=typeof e&&(e=String(e));var r=f.Buffer.from(e,"utf8"),a=r.length;if(n+a>t.length)throw new RangeError("encoding overruns Buffer");var i=b(t);return r.copy(i,n),i[n+a]=0,a+1}}]),n}(p);t.CString=q;var V=function(e){s(n,e);var t=c(n);function n(e,r){var a;if(u(this,n),"string"==typeof e&&void 0===r&&(r=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");return(a=t.call(this,-1,r)).maxSpan=e,a}return d(n,[{key:"getSpan",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return l(e),e.length-t}},{key:"decode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpan2&&void 0!==arguments[2]?arguments[2]:0;"string"!=typeof e&&(e=String(e));var r=f.Buffer.from(e,"utf8"),a=r.length;if(0<=this.maxSpan&&this.maxSpant.length)throw new RangeError("encoding overruns Buffer");return r.copy(b(t),n),a}}]),n}(p);t.UTF8=V;var J=function(e){s(n,e);var t=c(n);function n(e,r){var a;return u(this,n),(a=t.call(this,0,r)).value=e,a}return d(n,[{key:"decode",value:function(e,t){return this.value}},{key:"encode",value:function(e,t,n){return 0}}]),n}(p);t.Constant=J,t.greedy=function(e,t){return new m(e,t)},t.offset=function(e,t,n){return new v(e,t,n)},t.u8=function(e){return new g(1,e)},t.u16=function(e){return new g(2,e)},t.u24=function(e){return new g(3,e)},t.u32=function(e){return new g(4,e)},t.u40=function(e){return new g(5,e)},t.u48=function(e){return new g(6,e)},t.nu64=function(e){return new S(e)},t.u16be=function(e){return new A(2,e)},t.u24be=function(e){return new A(3,e)},t.u32be=function(e){return new A(4,e)},t.u40be=function(e){return new A(5,e)},t.u48be=function(e){return new A(6,e)},t.nu64be=function(e){return new E(e)},t.s8=function(e){return new w(1,e)},t.s16=function(e){return new w(2,e)},t.s24=function(e){return new w(3,e)},t.s32=function(e){return new w(4,e)},t.s40=function(e){return new w(5,e)},t.s48=function(e){return new w(6,e)},t.ns64=function(e){return new C(e)},t.s16be=function(e){return new x(2,e)},t.s24be=function(e){return new x(3,e)},t.s32be=function(e){return new x(4,e)},t.s40be=function(e){return new x(5,e)},t.s48be=function(e){return new x(6,e)},t.ns64be=function(e){return new T(e)},t.f32=function(e){return new O(e)},t.f32be=function(e){return new P(e)},t.f64=function(e){return new M(e)},t.f64be=function(e){return new B(e)},t.struct=function(e,t,n){return new R(e,t,n)},t.bits=function(e,t,n){return new Z(e,t,n)},t.seq=function(e,t,n){return new N(e,t,n)},t.union=function(e,t,n){return new U(e,t,n)},t.unionLayoutDiscriminator=function(e,t){return new j(e,t)},t.blob=function(e,t){return new Q(e,t)},t.cstr=function(e){return new q(e)},t.utf8=function(e,t){return new V(e,t)},t.constant=function(e,t){return new J(e,t)}},871:function(e,t,n){"use strict";n.r(t),n.d(t,{Account:function(){return Dr},AddressLookupTableAccount:function(){return qa},AddressLookupTableInstruction:function(){return Lo},AddressLookupTableProgram:function(){return Fo},Authorized:function(){return Wo},BLOCKHASH_CACHE_TIMEOUT_MS:function(){return Ya},BPF_LOADER_DEPRECATED_PROGRAM_ID:function(){return jr},BPF_LOADER_PROGRAM_ID:function(){return Ma},BpfLoader:function(){return Ba},COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:function(){return Ho},ComputeBudgetInstruction:function(){return Zo},ComputeBudgetProgram:function(){return zo},Connection:function(){return Do},Ed25519Program:function(){return qo},Enum:function(){return Or},EpochSchedule:function(){return La},FeeCalculatorLayout:function(){return xa},Keypair:function(){return jo},LAMPORTS_PER_SOL:function(){return gs},LOOKUP_TABLE_INSTRUCTION_LAYOUTS:function(){return Uo},Loader:function(){return Pa},Lockup:function(){return Yo},MAX_SEED_LENGTH:function(){return Mr},Message:function(){return ea},MessageAccountKeys:function(){return Qr},MessageV0:function(){return ta},NONCE_ACCOUNT_LENGTH:function(){return ka},NonceAccount:function(){return Ia},PACKET_DATA_SIZE:function(){return Ur},PUBLIC_KEY_LENGTH:function(){return Br},PublicKey:function(){return Rr},SIGNATURE_LENGTH_IN_BYTES:function(){return Fr},SOLANA_SCHEMA:function(){return Pr},STAKE_CONFIG_ID:function(){return Go},STAKE_INSTRUCTION_LAYOUTS:function(){return $o},SYSTEM_INSTRUCTION_LAYOUTS:function(){return Ca},SYSVAR_CLOCK_PUBKEY:function(){return ca},SYSVAR_EPOCH_SCHEDULE_PUBKEY:function(){return ua},SYSVAR_INSTRUCTIONS_PUBKEY:function(){return da},SYSVAR_RECENT_BLOCKHASHES_PUBKEY:function(){return fa},SYSVAR_RENT_PUBKEY:function(){return la},SYSVAR_REWARDS_PUBKEY:function(){return ba},SYSVAR_SLOT_HASHES_PUBKEY:function(){return pa},SYSVAR_SLOT_HISTORY_PUBKEY:function(){return ha},SYSVAR_STAKE_HISTORY_PUBKEY:function(){return ya},Secp256k1Program:function(){return Ko},SendTransactionError:function(){return Fa},SolanaJSONRPCError:function(){return Ha},SolanaJSONRPCErrorCode:function(){return Za},StakeAuthorizationLayout:function(){return es},StakeInstruction:function(){return Xo},StakeProgram:function(){return ts},Struct:function(){return Tr},SystemInstruction:function(){return Ea},SystemProgram:function(){return Ta},Transaction:function(){return ia},TransactionExpiredBlockheightExceededError:function(){return Zr},TransactionExpiredNonceInvalidError:function(){return zr},TransactionExpiredTimeoutError:function(){return Hr},TransactionInstruction:function(){return aa},TransactionMessage:function(){return oa},TransactionStatus:function(){return Xr},VALIDATOR_INFO_KEY:function(){return ss},VERSION_PREFIX_MASK:function(){return Lr},VOTE_PROGRAM_ID:function(){return ds},ValidatorInfo:function(){return us},VersionedMessage:function(){return na},VersionedTransaction:function(){return sa},VoteAccount:function(){return ls},VoteAuthorizationLayout:function(){return is},VoteInit:function(){return ns},VoteInstruction:function(){return rs},VoteProgram:function(){return os},clusterApiUrl:function(){return ys},sendAndConfirmRawTransaction:function(){return ms},sendAndConfirmTransaction:function(){return ma}});var r=n(44348),a=n(76056),i=n(12293),o=n(25630),s=n(17600),c=n(87402),u=n(28994),d=n(99983),f=n(59754),l=n(41116),b=n(61968),p=n(6058),h=n(91610),y=n(31945),m=n(5886);function v(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Wrong positive integer: ".concat(e))}function g(e){if(!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&!n.includes(e.length))throw new TypeError("Expected Uint8Array of length ".concat(n,", not of length=").concat(e.length))}var A={number:v,bool:function(e){if("boolean"!=typeof e)throw new Error("Expected boolean, not ".concat(e))},bytes:g,hash:function(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");v(e.outputLen),v(e.blockLen)},exists:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")},output:function(e,t){g(e);var n=t.outputLen;if(e.length>>t};if(68!==new Uint8Array(new Uint32Array([287454020]).buffer)[0])throw new Error("Non little-endian hardware is not supported");function k(e){if("string"==typeof e&&(e=function(e){if("string"!=typeof e)throw new TypeError("utf8ToBytes expected string, got ".concat(typeof e));return(new TextEncoder).encode(e)}(e)),!(e instanceof Uint8Array))throw new TypeError("Expected input type is Uint8Array (got ".concat(typeof e,")"));return e}Array.from({length:256},(function(e,t){return t.toString(16).padStart(2,"0")}));var I=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,[{key:"clone",value:function(){return this._cloneInto()}}]),e}();function S(e){var t=function(t){return e().update(k(t)).digest()},n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=function(){return e()},t}var E=function(e){(0,b.Z)(n,e);var t=(0,p.Z)(n);function n(e,r,a,i){var o;return(0,h.Z)(this,n),(o=t.call(this)).blockLen=e,o.outputLen=r,o.padOffset=a,o.isLE=i,o.finished=!1,o.length=0,o.pos=0,o.destroyed=!1,o.buffer=new Uint8Array(e),o.view=x(o.buffer),o}return(0,y.Z)(n,[{key:"update",value:function(e){w.exists(this);for(var t=this.view,n=this.buffer,r=this.blockLen,a=(e=k(e)).length,i=0;ir-i&&(this.process(n,0),i=0);for(var o=i;o>a&i),s=Number(n&i),c=r?4:0,u=r?0:4;e.setUint32(t+c,o,r),e.setUint32(t+u,s,r)}(n,r-8,BigInt(8*this.length),a),this.process(n,0);var s=x(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");var u=c/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(var f=0;f1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&C),l:Number(e>>T&C)}:{h:0|Number(e>>T&C),l:0|Number(e&C)}}var P={fromBig:O,split:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length),a=0;a>>0)<>>0)},shrSH:function(e,t,n){return e>>>n},shrSL:function(e,t,n){return e<<32-n|t>>>n},rotrSH:function(e,t,n){return e>>>n|t<<32-n},rotrSL:function(e,t,n){return e<<32-n|t>>>n},rotrBH:function(e,t,n){return e<<64-n|t>>>n-32},rotrBL:function(e,t,n){return e>>>n-32|t<<64-n},rotr32H:function(e,t){return t},rotr32L:function(e,t){return e},rotlSH:function(e,t,n){return e<>>32-n},rotlSL:function(e,t,n){return t<>>32-n},rotlBH:function(e,t,n){return t<>>64-n},rotlBL:function(e,t,n){return e<>>64-n},add:function(e,t,n,r){var a=(t>>>0)+(r>>>0);return{h:e+n+(a/Math.pow(2,32)|0)|0,l:0|a}},add3L:function(e,t,n){return(e>>>0)+(t>>>0)+(n>>>0)},add3H:function(e,t,n,r){return t+n+r+(e/Math.pow(2,32)|0)|0},add4L:function(e,t,n,r){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)},add4H:function(e,t,n,r,a){return t+n+r+a+(e/Math.pow(2,32)|0)|0},add5H:function(e,t,n,r,a,i){return t+n+r+a+i+(e/Math.pow(2,32)|0)|0},add5L:function(e,t,n,r,a){return(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(a>>>0)}},M=P,B=M.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((function(e){return BigInt(e)}))),N=(0,s.Z)(B,2),R=N[0],D=N[1],j=new Uint32Array(80),U=new Uint32Array(80),L=function(e){(0,b.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this,128,64,16,!1)).Ah=1779033703,e.Al=-205731576,e.Bh=-1150833019,e.Bl=-2067093701,e.Ch=1013904242,e.Cl=-23791573,e.Dh=-1521486534,e.Dl=1595750129,e.Eh=1359893119,e.El=-1377402159,e.Fh=-1694144372,e.Fl=725511199,e.Gh=528734635,e.Gl=-79577749,e.Hh=1541459225,e.Hl=327033209,e}return(0,y.Z)(n,[{key:"get",value:function(){return[this.Ah,this.Al,this.Bh,this.Bl,this.Ch,this.Cl,this.Dh,this.Dl,this.Eh,this.El,this.Fh,this.Fl,this.Gh,this.Gl,this.Hh,this.Hl]}},{key:"set",value:function(e,t,n,r,a,i,o,s,c,u,d,f,l,b,p,h){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|a,this.Cl=0|i,this.Dh=0|o,this.Dl=0|s,this.Eh=0|c,this.El=0|u,this.Fh=0|d,this.Fl=0|f,this.Gh=0|l,this.Gl=0|b,this.Hh=0|p,this.Hl=0|h}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)j[n]=e.getUint32(t),U[n]=e.getUint32(t+=4);for(var r=16;r<80;r++){var a=0|j[r-15],i=0|U[r-15],o=M.rotrSH(a,i,1)^M.rotrSH(a,i,8)^M.shrSH(a,i,7),s=M.rotrSL(a,i,1)^M.rotrSL(a,i,8)^M.shrSL(a,i,7),c=0|j[r-2],u=0|U[r-2],d=M.rotrSH(c,u,19)^M.rotrBH(c,u,61)^M.shrSH(c,u,6),f=M.rotrSL(c,u,19)^M.rotrBL(c,u,61)^M.shrSL(c,u,6),l=M.add4L(s,f,U[r-7],U[r-16]),b=M.add4H(l,o,d,j[r-7],j[r-16]);j[r]=0|b,U[r]=0|l}for(var p=this.Ah,h=this.Al,y=this.Bh,m=this.Bl,v=this.Ch,g=this.Cl,A=this.Dh,w=this.Dl,x=this.Eh,_=this.El,k=this.Fh,I=this.Fl,S=this.Gh,E=this.Gl,C=this.Hh,T=this.Hl,O=0;O<80;O++){var P=M.rotrSH(x,_,14)^M.rotrSH(x,_,18)^M.rotrBH(x,_,41),B=M.rotrSL(x,_,14)^M.rotrSL(x,_,18)^M.rotrBL(x,_,41),N=x&k^~x&S,L=_&I^~_&E,F=M.add5L(T,B,L,D[O],U[O]),Z=M.add5H(F,C,P,N,R[O],j[O]),H=0|F,z=M.rotrSH(p,h,28)^M.rotrBH(p,h,34)^M.rotrBH(p,h,39),Q=M.rotrSL(p,h,28)^M.rotrBL(p,h,34)^M.rotrBL(p,h,39),q=p&y^p&v^y&v,V=h&m^h&g^m&g;C=0|S,T=0|E,S=0|k,E=0|I,k=0|x,I=0|_;var J=M.add(0|A,0|w,0|Z,0|H);x=J.h,_=J.l,A=0|v,w=0|g,v=0|y,g=0|m,y=0|p,m=0|h;var K=M.add3L(H,Q,V);p=M.add3H(K,Z,z,q),h=0|K}var G=M.add(0|this.Ah,0|this.Al,0|p,0|h);p=G.h,h=G.l;var W=M.add(0|this.Bh,0|this.Bl,0|y,0|m);y=W.h,m=W.l;var Y=M.add(0|this.Ch,0|this.Cl,0|v,0|g);v=Y.h,g=Y.l;var X=M.add(0|this.Dh,0|this.Dl,0|A,0|w);A=X.h,w=X.l;var $=M.add(0|this.Eh,0|this.El,0|x,0|_);x=$.h,_=$.l;var ee=M.add(0|this.Fh,0|this.Fl,0|k,0|I);k=ee.h,I=ee.l;var te=M.add(0|this.Gh,0|this.Gl,0|S,0|E);S=te.h,E=te.l;var ne=M.add(0|this.Hh,0|this.Hl,0|C,0|T);C=ne.h,T=ne.l,this.set(p,h,y,m,v,g,A,w,x,_,k,I,S,E,C,T)}},{key:"roundClean",value:function(){j.fill(0),U.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),n}(E),F=function(e){(0,b.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this)).Ah=-1942145080,e.Al=424955298,e.Bh=1944164710,e.Bl=-1982016298,e.Ch=502970286,e.Cl=855612546,e.Dh=1738396948,e.Dl=1479516111,e.Eh=258812777,e.El=2077511080,e.Fh=2011393907,e.Fl=79989058,e.Gh=1067287976,e.Gl=1780299464,e.Hh=286451373,e.Hl=-1848208735,e.outputLen=28,e}return(0,y.Z)(n)}(L),Z=function(e){(0,b.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this)).Ah=573645204,e.Al=-64227540,e.Bh=-1621794909,e.Bl=-934517566,e.Ch=596883563,e.Cl=1867755857,e.Dh=-1774684391,e.Dl=1497426621,e.Eh=-1775747358,e.El=-1467023389,e.Fh=-1101128155,e.Fl=1401305490,e.Gh=721525244,e.Gl=746961066,e.Hh=246885852,e.Hl=-2117784414,e.outputLen=32,e}return(0,y.Z)(n)}(L),H=function(e){(0,b.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this)).Ah=-876896931,e.Al=-1056596264,e.Bh=1654270250,e.Bl=914150663,e.Ch=-1856437926,e.Cl=812702999,e.Dh=355462360,e.Dl=-150054599,e.Eh=1731405415,e.El=-4191439,e.Fh=-1900787065,e.Fl=1750603025,e.Gh=-619958771,e.Gl=1694076839,e.Hh=1203062813,e.Hl=-1090891868,e.outputLen=48,e}return(0,y.Z)(n)}(L),z=S((function(){return new L})),Q=(S((function(){return new F})),S((function(){return new Z})),S((function(){return new H})),n(12049)),q=n.t(Q,2),V=BigInt(0),J=BigInt(1),K=BigInt(2),G=BigInt(8),W=BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),Y=Object.freeze({a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),P:BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),l:W,n:W,h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960")}),X=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),$=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752"),ee=(BigInt("6853475219497561581579357271197624642482790079785650197046958215289687604742"),BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235")),te=BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),ne=BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),re=BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),ae=function(){function e(t,n,r,a){(0,h.Z)(this,e),this.x=t,this.y=n,this.z=r,this.t=a}return(0,y.Z)(e,[{key:"equals",value:function(e){oe(e);var t=this.x,n=this.y,r=this.z,a=e.x,i=e.y,o=e.z,s=ke(t*o),c=ke(a*r),u=ke(n*o),d=ke(i*r);return s===c&&u===d}},{key:"negate",value:function(){return new e(ke(-this.x),this.y,this.z,ke(-this.t))}},{key:"double",value:function(){var t=this.x,n=this.y,r=this.z,a=Y.a,i=ke(t*t),o=ke(n*n),s=ke(K*ke(r*r)),c=ke(a*i),u=t+n,d=ke(ke(u*u)-i-o),f=c+o,l=f-s,b=c-o,p=ke(d*l),h=ke(f*b),y=ke(d*b);return new e(p,h,ke(l*f),y)}},{key:"add",value:function(t){oe(t);var n=this.x,r=this.y,a=this.z,i=this.t,o=t.x,s=t.y,c=t.z,u=t.t,d=ke((r-n)*(s+o)),f=ke((r+n)*(s-o)),l=ke(f-d);if(l===V)return this.double();var b=ke(a*K*u),p=ke(i*K*c),h=p+b,y=f+d,m=p-b,v=ke(h*l),g=ke(y*m),A=ke(h*m);return new e(v,g,ke(l*y),A)}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"precomputeWindow",value:function(e){for(var t=1+256/e,n=[],r=this,a=r,i=0;i>=f,p>c&&(p-=d,t+=J);var h=b,y=b+Math.abs(p)-1,m=l%2!=0,v=p<0;0===p?o=o.add(ie(m,a[h])):i=i.add(ie(v,a[y]))}return e.normalizeZ([i,o])[0]}},{key:"multiply",value:function(e,t){return this.wNAF(Pe(e,Y.l),t)}},{key:"multiplyUnsafe",value:function(t){var n=Pe(t,Y.l,!1),r=e.BASE,a=e.ZERO;if(n===V)return a;if(this.equals(a)||n===J)return this;if(this.equals(r))return this.wNAF(n);for(var i=a,o=this;n>V;)n&J&&(i=i.add(o)),o=o.double(),n>>=J;return i}},{key:"isSmallOrder",value:function(){return this.multiplyUnsafe(Y.h).equals(e.ZERO)}},{key:"isTorsionFree",value:function(){var t=this.multiplyUnsafe(Y.l/K).double();return Y.l%K&&(t=t.add(this)),t.equals(e.ZERO)}},{key:"toAffine",value:function(t){var n=this.x,r=this.y,a=this.z,i=this.equals(e.ZERO);null==t&&(t=i?G:Ie(a));var o=ke(n*t),s=ke(r*t),c=ke(a*t);if(i)return fe.ZERO;if(c!==J)throw new Error("invZ was invalid");return new fe(o,s)}},{key:"fromRistrettoBytes",value:function(){ce()}},{key:"toRistrettoBytes",value:function(){ce()}},{key:"fromRistrettoHash",value:function(){ce()}}],[{key:"fromAffine",value:function(t){if(!(t instanceof fe))throw new TypeError("ExtendedPoint#fromAffine: expected Point");return t.equals(fe.ZERO)?e.ZERO:new e(t.x,t.y,J,ke(t.x*t.y))}},{key:"toAffineBatch",value:function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y.P,n=new Array(e.length),r=Ie(e.reduce((function(e,r,a){return r===V?e:(n[a]=e,ke(e*r,t))}),J),t);return e.reduceRight((function(e,r,a){return r===V?e:(n[a]=ke(e*n[a],t),ke(e*r,t))}),r),n}(e.map((function(e){return e.z})));return e.map((function(e,n){return e.toAffine(t[n])}))}},{key:"normalizeZ",value:function(e){return this.toAffineBatch(e).map(this.fromAffine)}}]),e}();function ie(e,t){var n=t.negate();return e?n:t}function oe(e){if(!(e instanceof ae))throw new TypeError("ExtendedPoint expected")}function se(e){if(!(e instanceof ue))throw new TypeError("RistrettoPoint expected")}function ce(){throw new Error("Legacy method: switch to RistrettoPoint")}ae.BASE=new ae(Y.Gx,Y.Gy,J,ke(Y.Gx*Y.Gy)),ae.ZERO=new ae(V,J,J,V);var ue=function(){function e(t){(0,h.Z)(this,e),this.ep=t}return(0,y.Z)(e,[{key:"toRawBytes",value:function(){var e,t=this.ep,n=t.x,r=t.y,a=t.z,i=t.t,o=ke(ke(a+r)*ke(a-r)),s=ke(n*r),c=ke(s*s),u=Ce(ke(o*c)).value,d=ke(u*o),f=ke(u*s),l=ke(d*f*i);if(ge(i*l)){var b=ke(r*$),p=ke(n*$);n=b,r=p,e=ke(d*te)}else e=f;ge(n*l)&&(r=ke(-r));var h=ke((a-r)*e);return ge(h)&&(h=ke(-h)),ve(h)}},{key:"toHex",value:function(){return he(this.toRawBytes())}},{key:"toString",value:function(){return this.toHex()}},{key:"equals",value:function(e){se(e);var t=this.ep,n=e.ep,r=ke(t.x*n.y)===ke(t.y*n.x),a=ke(t.y*n.y)===ke(t.x*n.x);return r||a}},{key:"add",value:function(t){return se(t),new e(this.ep.add(t.ep))}},{key:"subtract",value:function(t){return se(t),new e(this.ep.subtract(t.ep))}},{key:"multiply",value:function(t){return new e(this.ep.multiply(t))}},{key:"multiplyUnsafe",value:function(t){return new e(this.ep.multiplyUnsafe(t))}}],[{key:"calcElligatorRistrettoMap",value:function(e){var t=Y.d,n=ke($*e*e),r=ke((n+J)*ne),a=BigInt(-1),i=ke((a-t*n)*ke(n+t)),o=Ee(r,i),s=o.isValid,c=o.value,u=ke(c*e);ge(u)||(u=ke(-u)),s||(c=u),s||(a=n);var d=ke(a*(n-J)*re-i),f=c*c,l=ke((c+c)*i),b=ke(d*ee),p=ke(J-f),h=ke(J+f);return new ae(ke(l*h),ke(p*b),ke(b*h),ke(l*p))}},{key:"hashToCurve",value:function(t){var n=_e((t=Oe(t,64)).slice(0,32)),r=this.calcElligatorRistrettoMap(n),a=_e(t.slice(32,64)),i=this.calcElligatorRistrettoMap(a);return new e(r.add(i))}},{key:"fromHex",value:function(t){t=Oe(t,32);var n=Y.a,r=Y.d,a="RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint",i=_e(t);if(!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n1&&void 0!==arguments[1])||arguments[1],r=Y.d,a=Y.P,i=(t=Oe(t,32)).slice();i[31]=-129&t[31];var o=Ae(i);if(n&&o>=a)throw new Error("Expected 0 < hex < P");if(!n&&o>=X)throw new Error("Expected 0 < hex < 2**256");var s=ke(o*o),c=Ee(ke(s-J),ke(r*s+J)),u=c.isValid,d=c.value;if(!u)throw new Error("Point.fromHex: invalid y coordinate");var f=(d&J)===J;return 0!=(128&t[31])!==f&&(d=ke(-d)),new e(d,o)}},{key:"fromPrivateKey",value:(t=(0,l.Z)((0,f.Z)().mark((function e(t){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Re(t);case 2:return e.abrupt("return",e.sent.point);case 3:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),e}();fe.BASE=new fe(Y.Gx,Y.Gy),fe.ZERO=new fe(V,J);var le=function(){function e(t,n){(0,h.Z)(this,e),this.r=t,this.s=n,this.assertValidity()}return(0,y.Z)(e,[{key:"assertValidity",value:function(){var e=this.r,t=this.s;if(!(e instanceof fe))throw new Error("Expected Point instance");return Pe(t,Y.l,!1),this}},{key:"toRawBytes",value:function(){var e=new Uint8Array(64);return e.set(this.r.toRawBytes()),e.set(ve(this.s),32),e}},{key:"toHex",value:function(){return he(this.toRawBytes())}}],[{key:"fromHex",value:function(t){var n=Oe(t,64);return new e(fe.fromHex(n.slice(0,32),!1),Ae(n.slice(32,64)))}}]),e}();function be(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:Y.P,n=e%t;return n>=V?n:t+n}function Ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y.P;if(e===V||t<=V)throw new Error("invert: expected positive integers, got n=".concat(e," mod=").concat(t));for(var n=ke(e,t),r=t,a=V,i=J,o=J,s=V;n!==V;){var c=r/n,u=r%n,d=a-o*c,f=i-s*c;r=n,n=u,a=o,i=s,o=d,s=f}if(r!==J)throw new Error("invert: does not exist");return ke(a,t)}function Se(e,t){for(var n=Y.P,r=e;t-- >V;)r*=r,r%=n;return r}function Ee(e,t){var n=ke(t*t*t),r=ke(n*n*t),a=ke(e*n*function(e){var t=Y.P,n=BigInt(5),r=BigInt(10),a=BigInt(20),i=BigInt(40),o=BigInt(80),s=e*e%t*e%t,c=Se(s,K)*s%t,u=Se(c,J)*e%t,d=Se(u,n)*u%t,f=Se(d,r)*d%t,l=Se(f,a)*f%t,b=Se(l,i)*l%t,p=Se(b,o)*b%t,h=Se(p,o)*b%t,y=Se(h,r)*d%t;return{pow_p_5_8:Se(y,K)*e%t,b2:s}}(e*r).pow_p_5_8),i=ke(t*a*a),o=a,s=ke(a*$),c=i===e,u=i===ke(-e),d=i===ke(-e*$);return c&&(a=o),(u||d)&&(a=s),ge(a)&&(a=ke(-a)),{isValid:c||u,value:a}}function Ce(e){return Ee(J,e)}function Te(e){return ke(Ae(e),Y.l)}function Oe(e,t){var n=e instanceof Uint8Array?Uint8Array.from(e):ye(e);if("number"==typeof t&&n.length!==t)throw new Error("Expected ".concat(t," bytes"));return n}function Pe(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t)throw new TypeError("Specify max value");if("number"==typeof e&&Number.isSafeInteger(e)&&(e=BigInt(e)),"bigint"==typeof e&&e1024)throw new Error("Expected 40-1024 bytes of private key as per FIPS 186");return ke(Ae(e),Y.l-J)+J},randomBytes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(He.web)return He.web.getRandomValues(new Uint8Array(e));if(He.node){var t=He.node.randomBytes;return new Uint8Array(t(e).buffer)}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:function(){return ze.randomBytes(32)},sha512:(Ze=(0,l.Z)((0,f.Z)().mark((function e(){var t,n,r=arguments;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=be.apply(void 0,r),!He.web){e.next=8;break}return e.next=4,He.web.subtle.digest("SHA-512",t.buffer);case 4:return n=e.sent,e.abrupt("return",new Uint8Array(n));case 8:if(!He.node){e.next=12;break}return e.abrupt("return",Uint8Array.from(He.node.createHash("sha512").update(t).digest()));case 12:throw new Error("The environment doesn't have sha512 function");case 13:case"end":return e.stop()}}),e)}))),function(){return Ze.apply(this,arguments)}),precompute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe.BASE,n=t.equals(fe.BASE)?t:new fe(t.x,t.y);return n._setWindowSize(e),n.multiply(K),n},sha512Sync:void 0};Object.defineProperties(ze,{sha512Sync:{configurable:!1,get:function(){return we},set:function(e){we||(we=e)}}});var Qe=n(22097),qe=n.n(Qe),Ve=n(38600),Je=n.n(Ve),Ke=function(e,t,n){return e&t^e&n^t&n},Ge=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]),We=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Ye=new Uint32Array(64),Xe=function(e){(0,b.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this,64,32,8,!1)).A=0|We[0],e.B=0|We[1],e.C=0|We[2],e.D=0|We[3],e.E=0|We[4],e.F=0|We[5],e.G=0|We[6],e.H=0|We[7],e}return(0,y.Z)(n,[{key:"get",value:function(){return[this.A,this.B,this.C,this.D,this.E,this.F,this.G,this.H]}},{key:"set",value:function(e,t,n,r,a,i,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|a,this.F=0|i,this.G=0|o,this.H=0|s}},{key:"process",value:function(e,t){for(var n=0;n<16;n++,t+=4)Ye[n]=e.getUint32(t,!1);for(var r=16;r<64;r++){var a=Ye[r-15],i=Ye[r-2],o=_(a,7)^_(a,18)^a>>>3,s=_(i,17)^_(i,19)^i>>>10;Ye[r]=s+Ye[r-7]+o+Ye[r-16]|0}for(var c,u=this.A,d=this.B,f=this.C,l=this.D,b=this.E,p=this.F,h=this.G,y=this.H,m=0;m<64;m++){var v=y+(_(b,6)^_(b,11)^_(b,25))+((c=b)&p^~c&h)+Ge[m]+Ye[m]|0,g=(_(u,2)^_(u,13)^_(u,22))+Ke(u,d,f)|0;y=h,h=p,p=b,b=l+v|0,l=f,f=d,d=u,u=v+g|0}u=u+this.A|0,d=d+this.B|0,f=f+this.C|0,l=l+this.D|0,b=b+this.E|0,p=p+this.F|0,h=h+this.G|0,y=y+this.H|0,this.set(u,d,f,l,b,p,h,y)}},{key:"roundClean",value:function(){Ye.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),n}(E),$e=function(e){(0,b.Z)(n,e);var t=(0,p.Z)(n);function n(){var e;return(0,h.Z)(this,n),(e=t.call(this)).A=-1056596264,e.B=914150663,e.C=812702999,e.D=-150054599,e.E=-4191439,e.F=1750603025,e.G=1694076839,e.H=-1090891868,e.outputLen=28,e}return(0,y.Z)(n)}(Xe),et=S((function(){return new Xe})),tt=(S((function(){return new $e})),n(62503)),nt=n(79496),rt=n(44334),at=n(38780),it=n(50491),ot=["message"],st=(0,f.Z)().mark(bt),ct=function(e){(0,b.Z)(n,e);var t=(0,p.Z)(n);function n(e,a){var i,o;(0,h.Z)(this,n);var s=e.message,u=(0,r.Z)(e,ot),d=e.path,f=0===d.length?s:"At path: "+d.join(".")+" -- "+s;return i=t.call(this,f),Object.assign((0,it.Z)(i),u),i.name=i.constructor.name,i.failures=function(){var t;return null!=(t=o)?t:o=[e].concat((0,c.Z)(a()))},i}return(0,y.Z)(n)}((0,d.Z)(TypeError));function ut(e){return dt(e)&&"function"==typeof e[Symbol.iterator]}function dt(e){return"object"==typeof e&&null!=e}function ft(e){return"string"==typeof e?JSON.stringify(e):""+e}function lt(e,t,n,r){if(!0!==e){!1===e?e={}:"string"==typeof e&&(e={message:e});var a=t.path,i=t.branch,s=n.type,c=e,u=c.refinement,d=c.message,f=void 0===d?"Expected a value of type `"+s+"`"+(u?" with refinement `"+u+"`":"")+", but received: `"+ft(r)+"`":d;return(0,o.Z)((0,o.Z)({value:r,type:s,refinement:u,key:a[a.length-1],path:a,branch:i},e),{},{message:f})}}function bt(e,t,n,r){var a,i,o,s;return(0,f.Z)().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:ut(e)||(e=[e]),a=(0,u.Z)(e),c.prev=2,a.s();case 4:if((i=a.n()).done){c.next=12;break}if(o=i.value,!(s=lt(o,t,n,r))){c.next=10;break}return c.next=10,s;case 10:c.next=4;break;case 12:c.next=17;break;case 14:c.prev=14,c.t0=c.catch(2),a.e(c.t0);case 17:return c.prev=17,a.f(),c.finish(17);case 20:case"end":return c.stop()}}),st,null,[[2,14,17,20]])}function pt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,f.Z)().mark((function r(){var a,i,o,d,l,b,p,h,y,m,v,g,A,w,x,_,k,I,S,E,C,T,O,P,M,B,N;return(0,f.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(a=n.path,i=void 0===a?[]:a,o=n.branch,d=void 0===o?[e]:o,l=n.coerce,b=void 0!==l&&l,p=n.mask,h=void 0!==p&&p,y={path:i,branch:d},b&&(e=t.coercer(e,y),h&&"type"!==t.type&&dt(t.schema)&&dt(e)&&!Array.isArray(e)))for(m in e)void 0===t.schema[m]&&delete e[m];v=!0,g=(0,u.Z)(t.validator(e,y)),r.prev=5,g.s();case 7:if((A=g.n()).done){r.next=14;break}return w=A.value,v=!1,r.next=12,[w,void 0];case 12:r.next=7;break;case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(5),g.e(r.t0);case 19:return r.prev=19,g.f(),r.finish(19);case 22:x=(0,u.Z)(t.entries(e,y)),r.prev=23,x.s();case 25:if((_=x.n()).done){r.next=52;break}k=(0,s.Z)(_.value,3),I=k[0],S=k[1],E=k[2],C=pt(S,E,{path:void 0===I?i:[].concat((0,c.Z)(i),[I]),branch:void 0===I?d:[].concat((0,c.Z)(d),[S]),coerce:b,mask:h}),T=(0,u.Z)(C),r.prev=29,T.s();case 31:if((O=T.n()).done){r.next=42;break}if(!(P=O.value)[0]){r.next=39;break}return v=!1,r.next=37,[P[0],void 0];case 37:r.next=40;break;case 39:b&&(S=P[1],void 0===I?e=S:e instanceof Map?e.set(I,S):e instanceof Set?e.add(S):dt(e)&&(e[I]=S));case 40:r.next=31;break;case 42:r.next=47;break;case 44:r.prev=44,r.t1=r.catch(29),T.e(r.t1);case 47:return r.prev=47,T.f(),r.finish(47);case 50:r.next=25;break;case 52:r.next=57;break;case 54:r.prev=54,r.t2=r.catch(23),x.e(r.t2);case 57:return r.prev=57,x.f(),r.finish(57);case 60:if(!v){r.next=79;break}M=(0,u.Z)(t.refiner(e,y)),r.prev=62,M.s();case 64:if((B=M.n()).done){r.next=71;break}return N=B.value,v=!1,r.next=69,[N,void 0];case 69:r.next=64;break;case 71:r.next=76;break;case 73:r.prev=73,r.t3=r.catch(62),M.e(r.t3);case 76:return r.prev=76,M.f(),r.finish(76);case 79:if(!v){r.next=82;break}return r.next=82,[void 0,e];case 82:case"end":return r.stop()}}),r,null,[[5,16,19,22],[23,54,57,60],[29,44,47,50],[62,73,76,79]])}))()}var ht=function(){function e(t){var n=this;(0,h.Z)(this,e);var r=t.type,a=t.schema,i=t.validator,o=t.refiner,s=t.coercer,c=void 0===s?function(e){return e}:s,u=t.entries,d=void 0===u?(0,f.Z)().mark((function e(){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})):u;this.type=r,this.schema=a,this.entries=d,this.coercer=c,this.validator=i?function(e,t){return bt(i(e,t),t,n,e)}:function(){return[]},this.refiner=o?function(e,t){return bt(o(e,t),t,n,e)}:function(){return[]}}return(0,y.Z)(e,[{key:"assert",value:function(e){return yt(e,this)}},{key:"create",value:function(e){return mt(e,this)}},{key:"is",value:function(e){return vt(e,this)}},{key:"mask",value:function(e){return function(e,t){var n=gt(e,t,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}(e,this)}},{key:"validate",value:function(e){return gt(e,this,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}}]),e}();function yt(e,t){var n=gt(e,t);if(n[0])throw n[0]}function mt(e,t){var n=gt(e,t,{coerce:!0});if(n[0])throw n[0];return n[1]}function vt(e,t){return!gt(e,t)[0]}function gt(e,t){var n=pt(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),r=function(e){var t=e.next(),n=t.done,r=t.value;return n?void 0:r}(n);if(r[0]){var a=new ct(r[0],(0,f.Z)().mark((function e(){var t,r,a;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=(0,u.Z)(n),e.prev=1,t.s();case 3:if((r=t.n()).done){e.next=10;break}if(!(a=r.value)[0]){e.next=8;break}return e.next=8,a[0];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])})));return[a,void 0]}return[void 0,r[1]]}function At(e,t){return new ht({type:e,schema:null,validator:t})}function wt(e){return new ht({type:"array",schema:e,entries:(0,f.Z)().mark((function t(n){var r,a,i,o,c;return(0,f.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e||!Array.isArray(n)){t.next=18;break}r=(0,u.Z)(n.entries()),t.prev=2,r.s();case 4:if((a=r.n()).done){t.next=10;break}return i=(0,s.Z)(a.value,2),o=i[0],c=i[1],t.next=8,[o,c,e];case 8:t.next=4;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),r.e(t.t0);case 15:return t.prev=15,r.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])})),coercer:function(e){return Array.isArray(e)?e.slice():e},validator:function(e){return Array.isArray(e)||"Expected an array value, but received: "+ft(e)}})}function xt(){return At("boolean",(function(e){return"boolean"==typeof e}))}function _t(e){return At("instance",(function(t){return t instanceof e||"Expected a `"+e.name+"` instance, but received: "+ft(t)}))}function kt(e){var t=ft(e),n=typeof e;return new ht({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:function(n){return n===e||"Expected the literal `"+t+"`, but received: "+ft(n)}})}function It(e){return new ht((0,o.Z)((0,o.Z)({},e),{},{validator:function(t,n){return null===t||e.validator(t,n)},refiner:function(t,n){return null===t||e.refiner(t,n)}}))}function St(){return At("number",(function(e){return"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+ft(e)}))}function Et(e){return new ht((0,o.Z)((0,o.Z)({},e),{},{validator:function(t,n){return void 0===t||e.validator(t,n)},refiner:function(t,n){return void 0===t||e.refiner(t,n)}}))}function Ct(e,t){return new ht({type:"record",schema:null,entries:(0,f.Z)().mark((function n(r){var a,i;return(0,f.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!dt(r)){n.next=11;break}n.t0=(0,f.Z)().keys(r);case 2:if((n.t1=n.t0()).done){n.next=11;break}return a=n.t1.value,i=r[a],n.next=7,[a,a,e];case 7:return n.next=9,[a,i,t];case 9:n.next=2;break;case 11:case"end":return n.stop()}}),n)})),validator:function(e){return dt(e)||"Expected an object, but received: "+ft(e)}})}function Tt(){return At("string",(function(e){return"string"==typeof e||"Expected a string, but received: "+ft(e)}))}function Ot(e){var t=At("never",(function(){return!1}));return new ht({type:"tuple",schema:null,entries:(0,f.Z)().mark((function n(r){var a,i;return(0,f.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Array.isArray(r)){n.next=9;break}a=Math.max(e.length,r.length),i=0;case 3:if(!(i>qt)*Jt)%Vt)&Qt&&($t^=zt<<(zt<32?M.rotlBH(e,t,n):M.rotlSH(e,t,n)},sn=function(e,t,n){return n>32?M.rotlBL(e,t,n):M.rotlSL(e,t,n)},cn=function(e){(0,b.Z)(n,e);var t=(0,p.Z)(n);function n(e,r,a){var i,o,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if((0,h.Z)(this,n),(i=t.call(this)).blockLen=e,i.suffix=r,i.outputLen=a,i.enableXOF=s,i.rounds=c,i.pos=0,i.posOut=0,i.finished=!1,i.destroyed=!1,w.number(a),0>=i.blockLen||i.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return i.state=new Uint8Array(200),i.state32=(o=i.state,new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4))),i}return(0,y.Z)(n,[{key:"keccak",value:function(){!function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=new Uint32Array(10),r=24-t;r<24;r++){for(var a=0;a<10;a++)n[a]=e[a]^e[a+10]^e[a+20]^e[a+30]^e[a+40];for(var i=0;i<10;i+=2)for(var o=(i+8)%10,s=(i+2)%10,c=n[s],u=n[s+1],d=on(c,u,1)^n[o],f=sn(c,u,1)^n[o+1],l=0;l<50;l+=10)e[i+l]^=d,e[i+l+1]^=f;for(var b=e[2],p=e[3],h=0;h<24;h++){var y=Ft[h],m=on(b,p,y),v=sn(b,p,y),g=Lt[h];b=e[g],p=e[g+1],e[g]=m,e[g+1]=v}for(var A=0;A<50;A+=10){for(var w=0;w<10;w++)n[w]=e[A+w];for(var x=0;x<10;x++)e[A+x]^=~n[(x+2)%10]&n[(x+4)%10]}e[0]^=rn[r],e[1]^=an[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(e){w.exists(this);for(var t=this.blockLen,n=this.state,r=(e=k(e)).length,a=0;a=n&&this.keccak();var i=Math.min(n-this.posOut,a-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}},{key:"xofInto",value:function(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}},{key:"xof",value:function(e){return w.number(e),this.xofInto(new Uint8Array(e))}},{key:"digestInto",value:function(e){if(w.output(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(e){var t=this.blockLen,r=this.suffix,a=this.outputLen,i=this.rounds,o=this.enableXOF;return e||(e=new n(t,r,a,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=r,e.outputLen=a,e.enableXOF=o,e.destroyed=this.destroyed,e}}]),n}(I),un=function(e,t,n){return S((function(){return new cn(t,e,n)}))},dn=(un(6,144,28),un(6,136,32),un(6,104,48),un(6,72,64),un(1,144,28),un(1,136,32)),fn=(un(1,104,48),un(1,72,64),function(e,t,n){return r=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new cn(t,e,void 0===r.dkLen?n:r.dkLen,!0)},a=function(e,t){return r(t).update(k(e)).digest()},i=r({}),a.outputLen=i.outputLen,a.blockLen=i.blockLen,a.create=function(e){return r(e)},a;var r,a,i}),ln=(fn(31,168,16),fn(31,136,32),function(e){(0,b.Z)(n,e);var t=(0,p.Z)(n);function n(e,r){var a;(0,h.Z)(this,n),(a=t.call(this)).finished=!1,a.destroyed=!1,w.hash(e);var i=k(r);if(a.iHash=e.create(),"function"!=typeof a.iHash.update)throw new TypeError("Expected instance of class which extends utils.Hash");a.blockLen=a.iHash.blockLen,a.outputLen=a.iHash.outputLen;var o=a.blockLen,s=new Uint8Array(o);s.set(i.length>o?e.create().update(i).digest():i);for(var c=0;co,l=d>o;if(f&&(u=t-u),l&&(d=t-d),u>o||d>o)throw new Error("splitScalarEndo: Endomorphism failed, k="+e);return{k1neg:f,k1:u,k2neg:l,k2:d}},In=32,Sn=32,En=In+1,Cn=2*In+1;function Tn(e){var t=wn.a,n=wn.b,r=er(e*e),a=er(r*e);return er(a+t*e+n)}var On=wn.a===yn,Pn=function(e){(0,b.Z)(n,e);var t=(0,p.Z)(n);function n(e){return(0,h.Z)(this,n),t.call(this,e)}return(0,y.Z)(n)}((0,d.Z)(Error));function Mn(e){if(!(e instanceof Bn))throw new TypeError("JacobianPoint expected")}var Bn=function(){function e(t,n,r){(0,h.Z)(this,e),this.x=t,this.y=n,this.z=r}return(0,y.Z)(e,[{key:"equals",value:function(e){Mn(e);var t=this.x,n=this.y,r=this.z,a=e.x,i=e.y,o=e.z,s=er(r*r),c=er(o*o),u=er(t*c),d=er(a*s),f=er(er(n*o)*c),l=er(er(i*r)*s);return u===d&&f===l}},{key:"negate",value:function(){return new e(this.x,er(-this.y),this.z)}},{key:"double",value:function(){var t=this.x,n=this.y,r=this.z,a=er(t*t),i=er(n*n),o=er(i*i),s=t+i,c=er(vn*(er(s*s)-a-o)),u=er(gn*a),d=er(u*u),f=er(d-vn*c);return new e(f,er(u*(c-f)-An*o),er(vn*n*r))}},{key:"add",value:function(t){Mn(t);var n=this.x,r=this.y,a=this.z,i=t.x,o=t.y,s=t.z;if(i===yn||o===yn)return this;if(n===yn||r===yn)return t;var c=er(a*a),u=er(s*s),d=er(n*u),f=er(i*c),l=er(er(r*s)*u),b=er(er(o*a)*c),p=er(f-d),h=er(b-l);if(p===yn)return h===yn?this.double():e.ZERO;var y=er(p*p),m=er(p*y),v=er(d*y),g=er(h*h-m-vn*v);return new e(g,er(h*(v-g)-l*m),er(a*s*p))}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiplyUnsafe",value:function(t){var n=e.ZERO;if("bigint"==typeof t&&t===yn)return n;var r=$n(t);if(r===mn)return this;if(!On){for(var a=n,i=this;r>yn;)r&mn&&(a=a.add(i)),i=i.double(),r>>=mn;return a}for(var o=kn(r),s=o.k1neg,c=o.k1,u=o.k2neg,d=o.k2,f=n,l=n,b=this;c>yn||d>yn;)c&mn&&(f=f.add(b)),d&mn&&(l=l.add(b)),b=b.double(),c>>=mn,d>>=mn;return s&&(f=f.negate()),u&&(l=l.negate()),l=new e(er(l.x*_n),l.y,l.z),f.add(l)}},{key:"precomputeWindow",value:function(e){for(var t=On?128/e+1:256/e+1,n=[],r=this,a=r,i=0;i>=f,p>c&&(p-=d,t+=mn);var h=b,y=b+Math.abs(p)-1,m=l%2!=0,v=p<0;0===p?o=o.add(Nn(m,a[h])):i=i.add(Nn(v,a[y]))}return{p:i,f:o}}},{key:"multiply",value:function(t,n){var r,a,i=$n(t);if(On){var o=kn(i),s=o.k1neg,c=o.k1,u=o.k2neg,d=o.k2,f=this.wNAF(c,n),l=f.p,b=f.f,p=this.wNAF(d,n),h=p.p,y=p.f;l=Nn(s,l),h=new e(er((h=Nn(u,h)).x*_n),h.y,h.z),r=l.add(h),a=b.add(y)}else{var m=this.wNAF(i,n);r=m.p,a=m.f}return e.normalizeZ([r,a])[0]}},{key:"toAffine",value:function(t){var n=this.x,r=this.y,a=this.z,i=this.equals(e.ZERO);null==t&&(t=i?An:nr(a));var o=t,s=er(o*o),c=er(s*o),u=er(n*s),d=er(r*c),f=er(a*o);if(i)return Dn.ZERO;if(f!==mn)throw new Error("invZ was invalid");return new Dn(u,d)}}],[{key:"fromAffine",value:function(t){if(!(t instanceof Dn))throw new TypeError("JacobianPoint#fromAffine: expected Point");return t.equals(Dn.ZERO)?e.ZERO:new e(t.x,t.y,mn)}},{key:"toAffineBatch",value:function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn.P,n=new Array(e.length),r=nr(e.reduce((function(e,r,a){return r===yn?e:(n[a]=e,er(e*r,t))}),mn),t);return e.reduceRight((function(e,r,a){return r===yn?e:(n[a]=er(e*n[a],t),er(e*r,t))}),r),n}(e.map((function(e){return e.z})));return e.map((function(e,n){return e.toAffine(t[n])}))}},{key:"normalizeZ",value:function(t){return e.toAffineBatch(t).map(e.fromAffine)}}]),e}();function Nn(e,t){var n=t.negate();return e?n:t}Bn.BASE=new Bn(wn.Gx,wn.Gy,mn),Bn.ZERO=new Bn(yn,mn,yn);var Rn=new WeakMap,Dn=function(){function e(t,n){(0,h.Z)(this,e),this.x=t,this.y=n}return(0,y.Z)(e,[{key:"_setWindowSize",value:function(e){this._WINDOW_SIZE=e,Rn.delete(this)}},{key:"hasEvenY",value:function(){return this.y%vn===yn}},{key:"toRawBytes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Wn(this.toHex(e))}},{key:"toHex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Vn(this.x);if(e){var n=this.hasEvenY()?"02":"03";return"".concat(n).concat(t)}return"04".concat(t).concat(Vn(this.y))}},{key:"toHexX",value:function(){return this.toHex(!0).slice(2)}},{key:"toRawX",value:function(){return this.toRawBytes(!0).slice(1)}},{key:"assertValidity",value:function(){var e="Point is not on elliptic curve",t=this.x,n=this.y;if(!or(t)||!or(n))throw new Error(e);var r=er(n*n);if(er(r-Tn(t))!==yn)throw new Error(e)}},{key:"equals",value:function(e){return this.x===e.x&&this.y===e.y}},{key:"negate",value:function(){return new e(this.x,er(-this.y))}},{key:"double",value:function(){return Bn.fromAffine(this).double().toAffine()}},{key:"add",value:function(e){return Bn.fromAffine(this).add(Bn.fromAffine(e)).toAffine()}},{key:"subtract",value:function(e){return this.add(e.negate())}},{key:"multiply",value:function(e){return Bn.fromAffine(this).multiply(e,this).toAffine()}},{key:"multiplyAndAddUnsafe",value:function(t,n,r){var a=Bn.fromAffine(this),i=n===yn||n===mn||this!==e.BASE?a.multiplyUnsafe(n):a.multiply(n),o=Bn.fromAffine(t).multiplyUnsafe(r),s=i.add(o);return s.equals(Bn.ZERO)?void 0:s.toAffine()}}],[{key:"fromCompressedHex",value:function(t){var n=32===t.length,r=Yn(n?t:t.subarray(1));if(!or(r))throw new Error("Point is not on curve");var a=function(e){var t=wn.P,n=BigInt(6),r=BigInt(11),a=BigInt(22),i=BigInt(23),o=BigInt(44),s=BigInt(88),c=e*e*e%t,u=c*c*e%t,d=tr(u,gn)*u%t,f=tr(d,gn)*u%t,l=tr(f,vn)*c%t,b=tr(l,r)*l%t,p=tr(b,a)*b%t,h=tr(p,o)*p%t,y=tr(h,s)*h%t,m=tr(y,o)*p%t,v=tr(m,gn)*u%t,g=tr(v,i)*b%t,A=tr(g,n)*c%t,w=tr(A,vn);if(w*w%t!==e)throw new Error("Cannot find square root");return w}(Tn(r)),i=(a&mn)===mn;n?i&&(a=er(-a)):1==(1&t[0])!==i&&(a=er(-a));var o=new e(r,a);return o.assertValidity(),o}},{key:"fromUncompressedHex",value:function(t){var n=new e(Yn(t.subarray(1,In+1)),Yn(t.subarray(In+1,2*In+1)));return n.assertValidity(),n}},{key:"fromHex",value:function(e){var t=Xn(e),n=t.length,r=t[0];if(n===In)return this.fromCompressedHex(t);if(n===En&&(2===r||3===r))return this.fromCompressedHex(t);if(n===Cn&&4===r)return this.fromUncompressedHex(t);throw new Error("Point.fromHex: received invalid point. Expected 32-".concat(En," compressed bytes or ").concat(Cn," uncompressed bytes, not ").concat(n))}},{key:"fromPrivateKey",value:function(t){return e.BASE.multiply(cr(t))}},{key:"fromSignature",value:function(t,n,r){var a=function(e){if(e instanceof Ln)return e.assertValidity(),e;try{return Ln.fromDER(e)}catch(t){return Ln.fromCompact(e)}}(n),i=a.r,o=a.s;if(![0,1,2,3].includes(r))throw new Error("Cannot recover: invalid recovery bit");var s=rr(Xn(t)),c=wn.n,u=2===r||3===r?i+c:i,d=nr(u,c),f=er(-s*d,c),l=er(o*d,c),b=1&r?"03":"02",p=e.fromHex(b+Vn(u)),h=e.BASE.multiplyAndAddUnsafe(p,f,l);if(!h)throw new Error("Cannot recover signature: point at infinify");return h.assertValidity(),h}}]),e}();function jn(e){return Number.parseInt(e[0],16)>=8?"00"+e:e}function Un(e){if(e.length<2||2!==e[0])throw new Error("Invalid signature integer tag: ".concat(Hn(e)));var t=e[1],n=e.subarray(2,t+2);if(!t||n.length!==t)throw new Error("Invalid signature integer: wrong length");if(0===n[0]&&n[1]<=127)throw new Error("Invalid signature integer: trailing length");return{data:Yn(n),left:e.subarray(t+2)}}Dn.BASE=new Dn(wn.Gx,wn.Gy),Dn.ZERO=new Dn(yn,yn);var Ln=function(){function e(t,n){(0,h.Z)(this,e),this.r=t,this.s=n,this.assertValidity()}return(0,y.Z)(e,[{key:"assertValidity",value:function(){var e=this.r,t=this.s;if(!ir(e))throw new Error("Invalid Signature: r must be 0 < r < n");if(!ir(t))throw new Error("Invalid Signature: s must be 0 < s < n")}},{key:"hasHighS",value:function(){var e=wn.n>>mn;return this.s>e}},{key:"normalizeS",value:function(){return this.hasHighS()?new e(this.r,er(-this.s,wn.n)):this}},{key:"toDERRawBytes",value:function(){return Wn(this.toDERHex())}},{key:"toDERHex",value:function(){var e=jn(Kn(this.s)),t=jn(Kn(this.r)),n=e.length/2,r=t.length/2,a=Kn(n),i=Kn(r),o=Kn(r+n+4);return"30".concat(o,"02").concat(i).concat(t,"02").concat(a).concat(e)}},{key:"toRawBytes",value:function(){return this.toDERRawBytes()}},{key:"toHex",value:function(){return this.toDERHex()}},{key:"toCompactRawBytes",value:function(){return Wn(this.toCompactHex())}},{key:"toCompactHex",value:function(){return Vn(this.r)+Vn(this.s)}}],[{key:"fromCompact",value:function(t){var n=t instanceof Uint8Array,r="Signature.fromCompact";if("string"!=typeof t&&!n)throw new TypeError("".concat(r,": Expected string or Uint8Array"));var a=n?Hn(t):t;if(128!==a.length)throw new Error("".concat(r,": Expected 64-byte hex"));return new e(Gn(a.slice(0,64)),Gn(a.slice(64,128)))}},{key:"fromDER",value:function(t){var n=t instanceof Uint8Array;if("string"!=typeof t&&!n)throw new TypeError("Signature.fromDER: Expected string or Uint8Array");var r=function(e){if(e.length<2||48!=e[0])throw new Error("Invalid signature tag: ".concat(Hn(e)));if(e[1]!==e.length-2)throw new Error("Invalid signature: incorrect length");var t=Un(e.subarray(2)),n=t.data,r=Un(t.left),a=r.data,i=r.left;if(i.length)throw new Error("Invalid signature: left bytes after parsing: ".concat(Hn(i)));return{r:n,s:a}}(n?t:Wn(t));return new e(r.r,r.s)}},{key:"fromHex",value:function(e){return this.fromDER(e)}}]),e}();function Fn(){for(var e=arguments.length,t=new Array(e),n=0;n0)return BigInt(e);if("bigint"==typeof e&&ir(e))return e;throw new TypeError("Expected valid private scalar: 0 < scalar < curve.n")}function er(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn.P,n=e%t;return n>=yn?n:t+n}function tr(e,t){for(var n=wn.P,r=e;t-- >yn;)r*=r,r%=n;return r}function nr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wn.P;if(e===yn||t<=yn)throw new Error("invert: expected positive integers, got n=".concat(e," mod=").concat(t));for(var n=er(e,t),r=t,a=yn,i=mn,o=mn,s=yn;n!==yn;){var c=r/n,u=r%n,d=a-o*c,f=i-s*c;r=n,n=u,a=o,i=s,o=d,s=f}if(r!==mn)throw new Error("invert: does not exist");return er(a,t)}function rr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(e){var t=8*e.length-8*Sn,n=Yn(e);return t>0?n>>BigInt(t):n}(e);if(t)return n;var r=wn.n;return n>=r?n-r:n}var ar=function(){function e(t,n){if((0,h.Z)(this,e),this.hashLen=t,this.qByteLen=n,"number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof n||n<2)throw new Error("qByteLen must be a number");this.v=new Uint8Array(t).fill(1),this.k=new Uint8Array(t).fill(0),this.counter=0}var t,n;return(0,y.Z)(e,[{key:"hmac",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n=1e3)throw new Error("Tried 1,000 k values for sign(), all were invalid");this.counter+=1}},{key:"reseed",value:(n=(0,l.Z)((0,f.Z)().mark((function e(){var t,n=arguments;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:new Uint8Array,e.next=3,this.hmac(this.v,Uint8Array.from([0]),t);case 3:return this.k=e.sent,e.next=6,this.hmac(this.v);case 6:if(this.v=e.sent,0!==t.length){e.next=9;break}return e.abrupt("return");case 9:return e.next=11,this.hmac(this.v,Uint8Array.from([1]),t);case 11:return this.k=e.sent,e.next=14,this.hmac(this.v);case 14:this.v=e.sent;case 15:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"reseedSync",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array;this.checkSync(),this.k=this.hmacSync(this.v,Uint8Array.from([0]),e),this.v=this.hmacSync(this.v),0!==e.length&&(this.k=this.hmacSync(this.v,Uint8Array.from([1]),e),this.v=this.hmacSync(this.v))}},{key:"generate",value:(t=(0,l.Z)((0,f.Z)().mark((function e(){var t,n,r;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.incr(),t=0,n=[];case 3:if(!(t3&&void 0!==arguments[3])||arguments[3],a=wn.n,i=rr(e,!0);if(ir(i)){var o=nr(i,a),s=Dn.BASE.multiply(i),c=er(s.x,a);if(c!==yn){var u=er(o*er(t+n*c,a),a);if(u!==yn){var d=new Ln(c,u),f=(s.x===d.r?0:2)|Number(s.y&mn);return r&&d.hasHighS()&&(d=d.normalizeS(),f^=1),{sig:d,recovery:f}}}}}function cr(e){var t;if("bigint"==typeof e)t=e;else if("number"==typeof e&&Number.isSafeInteger(e)&&e>0)t=BigInt(e);else if("string"==typeof e){if(e.length!==2*Sn)throw new Error("Expected 32 bytes of private key");t=Gn(e)}else{if(!(e instanceof Uint8Array))throw new TypeError("Expected valid private key");if(e.length!==Sn)throw new Error("Expected 32 bytes of private key");t=Yn(e)}if(!ir(t))throw new Error("Expected private key: 0 < key < n");return t}function ur(e){return Yn(e.length>In?e.slice(0,In):e)}function dr(e){var t=ur(e),n=er(t,wn.n);return fr(n1024)throw new Error("Expected valid bytes of private key as per FIPS 186");return Jn(er(Yn(e),wn.n-mn)+mn)},randomBytes:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(pr.web)return pr.web.getRandomValues(new Uint8Array(e));if(pr.node){var t=pr.node.randomBytes;return Uint8Array.from(t(e))}throw new Error("The environment doesn't have randomBytes function")},randomPrivateKey:function(){return yr.hashToPrivateKey(yr.randomBytes(Sn+8))},precompute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Dn.BASE,n=t===Dn.BASE?t:new Dn(t.x,t.y);return n._setWindowSize(e),n.multiply(gn),n},sha256:function(){var e=(0,l.Z)((0,f.Z)().mark((function e(){var t,n,r,a,i,o,s=arguments;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=s.length,n=new Array(t),r=0;r1?n-1:0),a=1;a1?a-1:0),o=1;o1?r-1:0),i=1;iBr)throw new Error("Invalid public key input")}return t}return(0,y.Z)(o,[{key:"equals",value:function(e){return this._bn.eq(e._bn)}},{key:"toBase58",value:function(){return Je().encode(this.toBytes())}},{key:"toJSON",value:function(){return this.toBase58()}},{key:"toBytes",value:function(){var e=this.toBuffer();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}},{key:"toBuffer",value:function(){var e=this._bn.toArrayLike(m.Buffer);if(e.length===Br)return e;var t=m.Buffer.alloc(32);return e.copy(t,32-e.length),t}},{key:t,get:function(){return"PublicKey(".concat(this.toString(),")")}},{key:"toString",value:function(){return this.toBase58()}}],[{key:"unique",value:function(){var e=new o(Nr);return Nr+=1,new o(e.toBuffer())}},{key:"createWithSeed",value:(a=(0,l.Z)((0,f.Z)().mark((function e(t,n,r){var a,i;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=m.Buffer.concat([t.toBuffer(),m.Buffer.from(n),r.toBuffer()]),i=et(a),e.abrupt("return",new o(i));case 3:case"end":return e.stop()}}),e)}))),function(e,t,n){return a.apply(this,arguments)})},{key:"createProgramAddressSync",value:function(e,t){var n=m.Buffer.alloc(0);e.forEach((function(e){if(e.length>Mr)throw new TypeError("Max seed length exceeded");n=m.Buffer.concat([n,Cr(e)])})),n=m.Buffer.concat([n,t.toBuffer(),m.Buffer.from("ProgramDerivedAddress")]);var r=et(n);if(kr(r))throw new Error("Invalid seeds, address must fall off the curve");return new o(r)}},{key:"createProgramAddress",value:(r=(0,l.Z)((0,f.Z)().mark((function e(t,n){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.createProgramAddressSync(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"findProgramAddressSync",value:function(e,t){for(var n,r=255;0!=r;){try{var a=e.concat(m.Buffer.from([r]));n=this.createProgramAddressSync(a,t)}catch(e){if(e instanceof TypeError)throw e;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}},{key:"findProgramAddress",value:(n=(0,l.Z)((0,f.Z)().mark((function e(t,n){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.findProgramAddressSync(t,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"isOnCurve",value:function(e){return kr(new o(e).toBytes())}}]),o}(Tr,Ir);Rr.default=new Rr("11111111111111111111111111111111"),Pr.set(Rr,{kind:"struct",fields:[["_bn","u256"]]});var Dr=function(){function e(t){if((0,h.Z)(this,e),this._publicKey=void 0,this._secretKey=void 0,t){var n=Cr(t);if(64!==t.length)throw new Error("bad secret key size");this._publicKey=n.slice(32,64),this._secretKey=n.slice(0,32)}else this._secretKey=Cr(wr()),this._publicKey=Cr(_r(this._secretKey))}return(0,y.Z)(e,[{key:"publicKey",get:function(){return new Rr(this._publicKey)}},{key:"secretKey",get:function(){return m.Buffer.concat([this._secretKey,this._publicKey],64)}}]),e}(),jr=new Rr("BPFLoader1111111111111111111111111111111111"),Ur=1232,Lr=127,Fr=64,Zr=function(e){(0,b.Z)(n,e);var t=(0,p.Z)(n);function n(e){var r;return(0,h.Z)(this,n),(r=t.call(this,"Signature ".concat(e," has expired: block height exceeded."))).signature=void 0,r.signature=e,r}return(0,y.Z)(n)}((0,d.Z)(Error));Object.defineProperty(Zr.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});var Hr=function(e){(0,b.Z)(n,e);var t=(0,p.Z)(n);function n(e,r){var a;return(0,h.Z)(this,n),(a=t.call(this,"Transaction was not confirmed in ".concat(r.toFixed(2)," seconds. It is ")+"unknown if it succeeded or failed. Check signature "+"".concat(e," using the Solana Explorer or CLI tools."))).signature=void 0,a.signature=e,a}return(0,y.Z)(n)}((0,d.Z)(Error));Object.defineProperty(Hr.prototype,"name",{value:"TransactionExpiredTimeoutError"});var zr=function(e){(0,b.Z)(n,e);var t=(0,p.Z)(n);function n(e){var r;return(0,h.Z)(this,n),(r=t.call(this,"Signature ".concat(e," has expired: the nonce is no longer valid."))).signature=void 0,r.signature=e,r}return(0,y.Z)(n)}((0,d.Z)(Error));Object.defineProperty(zr.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});var Qr=function(){function e(t,n){(0,h.Z)(this,e),this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=n}return(0,y.Z)(e,[{key:"keySegments",value:function(){var e=[this.staticAccountKeys];return this.accountKeysFromLookups&&(e.push(this.accountKeysFromLookups.writable),e.push(this.accountKeysFromLookups.readonly)),e}},{key:"get",value:function(e){var t,n=(0,u.Z)(this.keySegments());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e256)throw new Error("Account index overflow encountered during compilation");var t=new Map;this.keySegments().flat().forEach((function(e,n){t.set(e.toBase58(),n)}));var n=function(e){var n=t.get(e.toBase58());if(void 0===n)throw new Error("Encountered an unknown instruction account key during compilation");return n};return e.map((function(e){return{programIdIndex:n(e.programId),accountKeyIndexes:e.keys.map((function(e){return n(e.pubkey)})),data:e.data}}))}}]),e}(),qr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey";return nt.blob(32,e)},Vr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"signature";return nt.blob(64,e)},Jr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string",t=nt.struct([nt.u32("length"),nt.u32("lengthPadding"),nt.blob(nt.offset(nt.u32(),-8),"chars")],e),n=t.decode.bind(t),r=t.encode.bind(t),a=t;return a.decode=function(e,t){return n(e,t).chars.toString()},a.encode=function(e,t,n){var a={chars:m.Buffer.from(e,"utf8")};return r(a,t,n)},a.alloc=function(e){return nt.u32().span+nt.u32().span+m.Buffer.from(e,"utf8").length},a};function Kr(e,t){var n=function e(n){if(n.span>=0)return n.span;if("function"==typeof n.alloc)return n.alloc(t[n.property]);if("count"in n&&"elementLayout"in n){var r=t[n.property];if(Array.isArray(r))return r.length*e(n.elementLayout)}else if("fields"in n)return Kr({layout:n},t[n.property]);return 0},r=0;return e.layout.fields.forEach((function(e){r+=n(e)})),r}function Gr(e){for(var t=0,n=0;;){var r=e.shift();if(t|=(127&r)<<7*n,n+=1,0==(128&r))break}return t}function Wr(e,t){for(var n=t;;){var r=127&n;if(0==(n>>=7)){e.push(r);break}r|=128,e.push(r)}}function Yr(e,t){if(!e)throw new Error(t||"Assertion failed")}var Xr,$r=function(){function e(t,n){(0,h.Z)(this,e),this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=n}return(0,y.Z)(e,[{key:"getMessageComponents",value:function(){var e=(0,c.Z)(this.keyMetaMap.entries());Yr(e.length<=256,"Max static account keys length exceeded");var t=e.filter((function(e){var t=(0,s.Z)(e,2)[1];return t.isSigner&&t.isWritable})),n=e.filter((function(e){var t=(0,s.Z)(e,2)[1];return t.isSigner&&!t.isWritable})),r=e.filter((function(e){var t=(0,s.Z)(e,2)[1];return!t.isSigner&&t.isWritable})),a=e.filter((function(e){var t=(0,s.Z)(e,2)[1];return!t.isSigner&&!t.isWritable})),i={numRequiredSignatures:t.length+n.length,numReadonlySignedAccounts:n.length,numReadonlyUnsignedAccounts:a.length};return Yr(t.length>0,"Expected at least one writable signer key"),Yr((0,s.Z)(t[0],1)[0]===this.payer.toBase58(),"Expected first writable signer key to be the fee payer"),[i,[].concat((0,c.Z)(t.map((function(e){var t=(0,s.Z)(e,1)[0];return new Rr(t)}))),(0,c.Z)(n.map((function(e){var t=(0,s.Z)(e,1)[0];return new Rr(t)}))),(0,c.Z)(r.map((function(e){var t=(0,s.Z)(e,1)[0];return new Rr(t)}))),(0,c.Z)(a.map((function(e){var t=(0,s.Z)(e,1)[0];return new Rr(t)}))))]}},{key:"extractTableLookup",value:function(e){var t=this.drainKeysFoundInLookupTable(e.state.addresses,(function(e){return!e.isSigner&&!e.isInvoked&&e.isWritable})),n=(0,s.Z)(t,2),r=n[0],a=n[1],i=this.drainKeysFoundInLookupTable(e.state.addresses,(function(e){return!e.isSigner&&!e.isInvoked&&!e.isWritable})),o=(0,s.Z)(i,2),c=o[0],u=o[1];if(0!==r.length||0!==c.length)return[{accountKey:e.key,writableIndexes:r,readonlyIndexes:c},{writable:a,readonly:u}]}},{key:"drainKeysFoundInLookupTable",value:function(e,t){var n,r=this,a=new Array,i=new Array,o=(0,u.Z)(this.keyMetaMap.entries());try{var c=function(){var o=(0,s.Z)(n.value,2),c=o[0],u=o[1];if(t(u)){var d=new Rr(c),f=e.findIndex((function(e){return e.equals(d)}));f>=0&&(Yr(f<256,"Max lookup table index exceeded"),a.push(f),i.push(d),r.keyMetaMap.delete(c))}};for(o.s();!(n=o.n()).done;)c()}catch(e){o.e(e)}finally{o.f()}return[a,i]}}],[{key:"compile",value:function(t,n){var r=new Map,a=function(e){var t=e.toBase58(),n=r.get(t);return void 0===n&&(n={isSigner:!1,isWritable:!1,isInvoked:!1},r.set(t,n)),n},i=a(n);i.isSigner=!0,i.isWritable=!0;var o,s=(0,u.Z)(t);try{for(s.s();!(o=s.n()).done;){var c=o.value;a(c.programId).isInvoked=!0;var d,f=(0,u.Z)(c.keys);try{for(f.s();!(d=f.n()).done;){var l=d.value,b=a(l.pubkey);b.isSigner||(b.isSigner=l.isSigner),b.isWritable||(b.isWritable=l.isWritable)}}catch(e){f.e(e)}finally{f.f()}}}catch(e){s.e(e)}finally{s.f()}return new e(n,r)}}]),e}(),ea=function(){function e(t){var n=this;(0,h.Z)(this,e),this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map((function(e){return new Rr(e)})),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach((function(e){return n.indexToProgramIds.set(e.programIdIndex,n.accountKeys[e.programIdIndex])}))}return(0,y.Z)(e,[{key:"version",get:function(){return"legacy"}},{key:"staticAccountKeys",get:function(){return this.accountKeys}},{key:"compiledInstructions",get:function(){return this.instructions.map((function(e){return{programIdIndex:e.programIdIndex,accountKeyIndexes:e.accounts,data:Je().decode(e.data)}}))}},{key:"addressTableLookups",get:function(){return[]}},{key:"getAccountKeys",value:function(){return new Qr(this.staticAccountKeys)}},{key:"isAccountSigner",value:function(e){return e=this.header.numRequiredSignatures?e-t0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new Qr(this.staticAccountKeys,t)}},{key:"isAccountSigner",value:function(e){return e=n?e-n=this.header.numRequiredSignatures?e-t0?this.signatures[0].signature:null}},{key:"toJSON",value:function(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map((function(e){return e.toJSON()})),signers:this.signatures.map((function(e){return e.publicKey.toJSON()}))}}},{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(var r=0;r-1?(d[n].isWritable=d[n].isWritable||e.isWritable,d[n].isSigner=d[n].isSigner||e.isSigner):d.push(e)})),d.sort((function(e,t){return e.isSigner!==t.isSigner?e.isSigner?-1:1:e.isWritable!==t.isWritable?e.isWritable?-1:1:e.pubkey.toBase58().localeCompare(t.pubkey.toBase58())}));var f=d.findIndex((function(e){return e.pubkey.equals(n)}));if(f>-1){var l=d.splice(f,1),b=(0,s.Z)(l,1)[0];b.isSigner=!0,b.isWritable=!0,d.unshift(b)}else d.unshift({pubkey:n,isSigner:!0,isWritable:!0});var p,h=(0,u.Z)(this.signatures);try{var y=function(){var e=p.value,t=d.findIndex((function(t){return t.pubkey.equals(e.publicKey)}));if(!(t>-1))throw new Error("unknown signer: ".concat(e.publicKey.toString()));d[t].isSigner||(d[t].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))};for(h.s();!(p=h.n()).done;)y()}catch(e){h.e(e)}finally{h.f()}var m=0,v=0,g=0,A=[],w=[];d.forEach((function(e){var t=e.pubkey,n=e.isSigner,r=e.isWritable;n?(A.push(t.toString()),m+=1,r||(v+=1)):(w.push(t.toString()),r||(g+=1))}));var x=A.concat(w),_=t.map((function(e){var t=e.data,n=e.programId;return{programIdIndex:x.indexOf(n.toString()),accounts:e.keys.map((function(e){return x.indexOf(e.pubkey.toString())})),data:Je().encode(t)}}));return _.forEach((function(e){Yr(e.programIdIndex>=0),e.accounts.forEach((function(e){return Yr(e>=0)}))})),new ea({header:{numRequiredSignatures:m,numReadonlySignedAccounts:v,numReadonlyUnsignedAccounts:g},accountKeys:x,recentBlockhash:e,instructions:_})}},{key:"_compile",value:function(){var e=this.compileMessage(),t=e.accountKeys.slice(0,e.header.numRequiredSignatures);return this.signatures.length===t.length&&this.signatures.every((function(e,n){return t[n].equals(e.publicKey)}))||(this.signatures=t.map((function(e){return{signature:null,publicKey:e}}))),e}},{key:"serializeMessage",value:function(){return this._compile().serialize()}},{key:"getEstimatedFee",value:(t=(0,l.Z)((0,f.Z)().mark((function e(t){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getFeeForMessage(this.compileMessage());case 2:return e.abrupt("return",e.sent.value);case 3:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"setSigners",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?r-1:0),i=1;i ").concat(Ur)),a}},{key:"keys",get:function(){return Yr(1===this.instructions.length),this.instructions[0].keys.map((function(e){return e.pubkey}))}},{key:"programId",get:function(){return Yr(1===this.instructions.length),this.instructions[0].programId}},{key:"data",get:function(){return Yr(1===this.instructions.length),this.instructions[0].data}}],[{key:"from",value:function(t){for(var n=(0,c.Z)(t),r=Gr(n),a=[],i=0;i1&&void 0!==arguments[1]?arguments[1]:[],r=new e;return r.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(r.feePayer=t.accountKeys[0]),n.forEach((function(e,n){var a={signature:e==Je().encode(ra)?null:Je().decode(e),publicKey:t.accountKeys[n]};r.signatures.push(a)})),t.instructions.forEach((function(e){var n=e.accounts.map((function(e){var n=t.accountKeys[e];return{pubkey:n,isSigner:r.signatures.some((function(e){return e.publicKey.toString()===n.toString()}))||t.isAccountSigner(e),isWritable:t.isAccountWritable(e)}}));r.instructions.push(new aa({keys:n,programId:t.accountKeys[e.programIdIndex],data:Je().decode(e.data)}))})),r._message=t,r._json=r.toJSON(),r}}]),e}(),oa=function(){function e(t){(0,h.Z)(this,e),this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=t.payerKey,this.instructions=t.instructions,this.recentBlockhash=t.recentBlockhash}return(0,y.Z)(e,[{key:"compileToLegacyMessage",value:function(){return ea.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions})}},{key:"compileToV0Message",value:function(e){return ta.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions,addressLookupTableAccounts:e})}}],[{key:"decompile",value:function(t,n){var r=t.header,a=t.compiledInstructions,i=t.recentBlockhash,o=r.numRequiredSignatures,s=r.numReadonlySignedAccounts,c=r.numReadonlyUnsignedAccounts,d=o-s;Yr(d>0,"Message header is invalid");var f=t.staticAccountKeys.length-o-c;Yr(f>=0,"Message header is invalid");var l=t.getAccountKeys(n),b=l.get(0);if(void 0===b)throw new Error("Failed to decompile message because no account keys were found");var p,h=[],y=(0,u.Z)(a);try{for(y.s();!(p=y.n()).done;){var m,v=p.value,g=[],A=(0,u.Z)(v.accountKeyIndexes);try{for(A.s();!(m=A.n()).done;){var w=m.value,x=l.get(w);if(void 0===x)throw new Error("Failed to find key for account key index ".concat(w));var _;_=w=0,"Cannot sign with non signer key ".concat(e.publicKey.toBase58())),n.signatures[i]=Sr(r,e.secretKey)};for(i.s();!(t=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}}},{key:"addSignature",value:function(e,t){Yr(64===t.byteLength,"Signature must be 64 bytes long");var n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex((function(t){return t.equals(e)}));Yr(n>=0,"Can not add signature; `".concat(e.toBase58(),"` is not required to sign this transaction")),this.signatures[n]=t}}],[{key:"deserialize",value:function(t){for(var n=(0,c.Z)(t),r=[],a=Gr(n),i=0;i=0?e.layout.span:Kr(e,t),r=m.Buffer.alloc(n),a=Object.assign({instruction:e.index},t);return e.layout.encode(a,r),r}function wa(e,t){var n;try{n=e.layout.decode(t)}catch(e){throw new Error("invalid instruction; "+e)}if(n.instruction!==e.index)throw new Error("invalid instruction; instruction index mismatch ".concat(n.instruction," != ").concat(e.index));return n}var xa=nt.nu64("lamportsPerSignature"),_a=nt.struct([nt.u32("version"),nt.u32("state"),qr("authorizedPubkey"),qr("nonce"),nt.struct([xa],"feeCalculator")]),ka=_a.span,Ia=function(){function e(t){(0,h.Z)(this,e),this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=t.authorizedPubkey,this.nonce=t.nonce,this.feeCalculator=t.feeCalculator}return(0,y.Z)(e,null,[{key:"fromAccountData",value:function(t){var n=_a.decode(Cr(t),0);return new e({authorizedPubkey:new Rr(n.authorizedPubkey),nonce:new Rr(n.nonce).toString(),feeCalculator:n.feeCalculator})}}]),e}(),Sa=(8,function(e){var t=(0,nt.blob)(8,e),n=function(e){return{decode:e.decode.bind(e),encode:e.encode.bind(e)}}(t),r=n.encode,a=n.decode,i=t;return i.decode=function(e,t){var n=a(e,t);return(0,rt.toBigIntLE)(m.Buffer.from(n))},i.encode=function(e,t,n){var a=(0,rt.toBufferLE)(e,8);return r(a,t,n)},i}),Ea=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=nt.u32("instruction").decode(e.data),r=0,a=Object.entries(Ca);r0?s:1,space:o.length,programId:i}));case 17:if(null===u){t.next=20;break}return t.next=20,ma(n,u,[r,a],{commitment:"confirmed"});case 20:d=nt.struct([nt.u32("instruction"),nt.u32("offset"),nt.u32("bytesLength"),nt.u32("bytesLengthPadding"),nt.seq(nt.u8("byte"),nt.offset(nt.u32(),-8),"bytes")]),l=e.chunkSize,b=0,p=o,h=[];case 25:if(!(p.length>0)){t.next=39;break}if(y=p.slice(0,l),v=m.Buffer.alloc(l+16),d.encode({instruction:0,offset:b,bytes:y,bytesLength:0,bytesLengthPadding:0},v),g=(new ia).add({keys:[{pubkey:a.publicKey,isSigner:!0,isWritable:!0}],programId:i,data:v}),h.push(ma(n,g,[r,a],{commitment:"confirmed"})),!n._rpcEndpoint.includes("solana.com")){t.next=35;break}return t.next=35,ga(250);case 35:b+=l,p=p.slice(l),t.next=25;break;case 39:return t.next=41,Promise.all(h);case 41:return A=nt.struct([nt.u32("instruction")]),w=m.Buffer.alloc(A.span),A.encode({instruction:1},w),x=(new ia).add({keys:[{pubkey:a.publicKey,isSigner:!0,isWritable:!0},{pubkey:la,isSigner:!1,isWritable:!1}],programId:i,data:w}),t.next=47,ma(n,x,[r,a],{commitment:"confirmed"});case 47:return t.abrupt("return",!0);case 48:case"end":return t.stop()}}),t)}))),function(e,n,r,a,i){return t.apply(this,arguments)})}]),e}();Pa.chunkSize=Oa;var Ma=new Rr("BPFLoader2111111111111111111111111111111111"),Ba=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"getMinNumSignatures",value:function(e){return Pa.getMinNumSignatures(e)}},{key:"load",value:function(e,t,n,r,a){return Pa.load(e,t,n,a,r)}}]),e}(),Na=Object.prototype.toString,Ra=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function Da(e,t){var n,r,a,i,o,s,c;if(!0===e)return"true";if(!1===e)return"false";switch(typeof e){case"object":if(null===e)return null;if(e.toJSON&&"function"==typeof e.toJSON)return Da(e.toJSON(),t);if("[object Array]"===(c=Na.call(e))){for(a="[",r=e.length-1,n=0;n-1&&(a+=Da(e[n],!0)),a+"]"}if("[object Object]"===c){for(r=(i=Ra(e).sort()).length,a="",n=0;n1;)e/=2,t++;return t}var La=function(){function e(t,n,r,a,i){(0,h.Z)(this,e),this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=t,this.leaderScheduleSlotOffset=n,this.warmup=r,this.firstNormalEpoch=a,this.firstNormalSlot=i}return(0,y.Z)(e,[{key:"getEpoch",value:function(e){return this.getEpochAndSlotIndex(e)[0]}},{key:"getEpochAndSlotIndex",value:function(e){if(e>1,n|=n>>2,n|=n>>4,n|=n>>8,n|=n>>16,1+(n|=n>>32)))-Ua(32)-1;return[t,e-(this.getSlotsInEpoch(t)-32)]}var n,r=e-this.firstNormalSlot,a=Math.floor(r/this.slotsPerEpoch);return[this.firstNormalEpoch+a,r%this.slotsPerEpoch]}},{key:"getFirstSlotInEpoch",value:function(e){return e<=this.firstNormalEpoch?32*(Math.pow(2,e)-1):(e-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}},{key:"getLastSlotInEpoch",value:function(e){return this.getFirstSlotInEpoch(e)+this.getSlotsInEpoch(e)-1}},{key:"getSlotsInEpoch",value:function(e){return e0&&(a.until=o.signatures[o.signatures.length-1].toString()),e.next=22;break;case 15:if(e.prev=15,e.t0=e.catch(8),!(e.t0 instanceof Error&&e.t0.message.includes("skipped"))){e.next=21;break}return e.abrupt("continue",4);case 21:throw e.t0;case 22:e.next=4;break;case 24:return e.next=26,this.getSlot("finalized");case 26:s=e.sent;case 27:if("before"in a){e.next=47;break}if(!(++r>s)){e.next=31;break}return e.abrupt("break",47);case 31:return e.prev=31,e.next=34,this.getConfirmedBlockSignatures(r);case 34:(c=e.sent).signatures.length>0&&(a.before=c.signatures[c.signatures.length-1].toString()),e.next=45;break;case 38:if(e.prev=38,e.t1=e.catch(31),!(e.t1 instanceof Error&&e.t1.message.includes("skipped"))){e.next=44;break}return e.abrupt("continue",27);case 44:throw e.t1;case 45:e.next=27;break;case 47:return e.next=49,this.getConfirmedSignaturesForAddress2(t,a);case 49:return u=e.sent,e.abrupt("return",u.map((function(e){return e.signature})));case 51:case"end":return e.stop()}}),e,this,[[8,15],[31,38]])}))),function(e,t,n){return M.apply(this,arguments)})},{key:"getConfirmedSignaturesForAddress2",value:(P=(0,l.Z)((0,f.Z)().mark((function e(t,n,r){var a,i,o;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this._buildArgsAtLeastConfirmed([t.toBase58()],r,void 0,n),e.next=3,this._rpcRequest("getConfirmedSignaturesForAddress2",a);case 3:if(i=e.sent,!("error"in(o=mt(i,Ui)))){e.next=7;break}throw new Ha(o.error,"failed to get confirmed signatures for address");case 7:return e.abrupt("return",o.result);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return P.apply(this,arguments)})},{key:"getSignaturesForAddress",value:(O=(0,l.Z)((0,f.Z)().mark((function e(t,n,r){var a,i,o;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=this._buildArgsAtLeastConfirmed([t.toBase58()],r,void 0,n),e.next=3,this._rpcRequest("getSignaturesForAddress",a);case 3:if(i=e.sent,!("error"in(o=mt(i,Li)))){e.next=7;break}throw new Ha(o.error,"failed to get signatures for address");case 7:return e.abrupt("return",o.result);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return O.apply(this,arguments)})},{key:"getAddressLookupTable",value:(T=(0,l.Z)((0,f.Z)().mark((function e(t,n){var r,a,i,o;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountInfoAndContext(t,n);case 2:return r=e.sent,a=r.context,i=r.value,o=null,null!==i&&(o=new qa({key:t,state:qa.deserialize(i.data)})),e.abrupt("return",{context:a,value:o});case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return T.apply(this,arguments)})},{key:"getNonceAndContext",value:(C=(0,l.Z)((0,f.Z)().mark((function e(t,n){var r,a,i,o;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccountInfoAndContext(t,n);case 2:return r=e.sent,a=r.context,i=r.value,o=null,null!==i&&(o=Ia.fromAccountData(i.data)),e.abrupt("return",{context:a,value:o});case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return C.apply(this,arguments)})},{key:"getNonce",value:(E=(0,l.Z)((0,f.Z)().mark((function e(t,n){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNonceAndContext(t,n).then((function(e){return e.value})).catch((function(e){throw new Error("failed to get nonce for account "+t.toBase58()+": "+e)}));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return E.apply(this,arguments)})},{key:"requestAirdrop",value:(S=(0,l.Z)((0,f.Z)().mark((function e(t,n){var r,a;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._rpcRequest("requestAirdrop",[t.toBase58(),n]);case 2:if(r=e.sent,!("error"in(a=mt(r,Po)))){e.next=6;break}throw new Ha(a.error,"airdrop to ".concat(t.toBase58()," failed"));case 6:return e.abrupt("return",a.result);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return S.apply(this,arguments)})},{key:"_blockhashWithExpiryBlockHeight",value:(I=(0,l.Z)((0,f.Z)().mark((function e(t){var n,r;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=10;break}case 1:if(!this._pollingBlockhash){e.next=6;break}return e.next=4,ga(100);case 4:e.next=1;break;case 6:if(n=Date.now()-this._blockhashInfo.lastFetch,r=n>=Ya,null===this._blockhashInfo.latestBlockhash||r){e.next=10;break}return e.abrupt("return",this._blockhashInfo.latestBlockhash);case 10:return e.next=12,this._pollNewBlockhash();case 12:return e.abrupt("return",e.sent);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return I.apply(this,arguments)})},{key:"_pollNewBlockhash",value:(k=(0,l.Z)((0,f.Z)().mark((function e(){var t,n,r,a,i;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._pollingBlockhash=!0,e.prev=1,t=Date.now(),n=this._blockhashInfo.latestBlockhash,r=n?n.blockhash:null,a=0;case 6:if(!(a<50)){e.next=18;break}return e.next=9,this.getLatestBlockhash("finalized");case 9:if(i=e.sent,r===i.blockhash){e.next=13;break}return this._blockhashInfo={latestBlockhash:i,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},e.abrupt("return",i);case 13:return e.next=15,ga(200);case 15:a++,e.next=6;break;case 18:throw new Error("Unable to obtain a new blockhash after ".concat(Date.now()-t,"ms"));case 19:return e.prev=19,this._pollingBlockhash=!1,e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[1,,19,22]])}))),function(){return k.apply(this,arguments)})},{key:"getStakeMinimumDelegation",value:(_=(0,l.Z)((0,f.Z)().mark((function e(t){var n,r,a,i,o,s;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Xa(t),r=n.commitment,a=n.config,i=this._buildArgs([],r,"base64",a),e.next=4,this._rpcRequest("getStakeMinimumDelegation",i);case 4:if(o=e.sent,!("error"in(s=mt(o,ni(St()))))){e.next=8;break}throw new Ha(s.error,"failed to get stake minimum delegation");case 8:return e.abrupt("return",s.result);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"simulateTransaction",value:(x=(0,l.Z)((0,f.Z)().mark((function e(t,n,r){var a,i,o,s,u,d,l,b,p,h,y,v,g,A,w,x,_,k,I,S,E,C,T,O,P;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("message"in t)){e.next=17;break}if(a=t.serialize(),i=m.Buffer.from(a).toString("base64"),!Array.isArray(n)&&void 0===r){e.next=6;break}throw new Error("Invalid arguments");case 6:return(o=n||{}).encoding="base64","commitment"in o||(o.commitment=this.commitment),s=[i,o],e.next=12,this._rpcRequest("simulateTransaction",s);case 12:if(u=e.sent,!("error"in(d=mt(u,yi)))){e.next=16;break}throw new Error("failed to simulate transaction: "+d.error.message);case 16:return e.abrupt("return",d.result);case 17:if(t instanceof ia?(b=t,(l=new ia).feePayer=b.feePayer,l.instructions=t.instructions,l.nonceInfo=b.nonceInfo,l.signatures=b.signatures):(l=ia.populate(t))._message=l._json=void 0,void 0===n||Array.isArray(n)){e.next=20;break}throw new Error("Invalid arguments");case 20:if(p=n,!l.nonceInfo||!p){e.next=25;break}(h=l).sign.apply(h,(0,c.Z)(p)),e.next=45;break;case 25:y=this._disableBlockhashCaching;case 26:return e.next=28,this._blockhashWithExpiryBlockHeight(y);case 28:if(g=e.sent,l.lastValidBlockHeight=g.lastValidBlockHeight,l.recentBlockhash=g.blockhash,p){e.next=33;break}return e.abrupt("break",45);case 33:if((v=l).sign.apply(v,(0,c.Z)(p)),l.signature){e.next=36;break}throw new Error("!signature");case 36:if(A=l.signature.toString("base64"),this._blockhashInfo.simulatedSignatures.includes(A)||this._blockhashInfo.transactionSignatures.includes(A)){e.next=42;break}return this._blockhashInfo.simulatedSignatures.push(A),e.abrupt("break",45);case 42:y=!0;case 43:e.next=26;break;case 45:return w=l._compile(),x=w.serialize(),_=l._serialize(x),k=_.toString("base64"),I={encoding:"base64",commitment:this.commitment},r&&(S=(Array.isArray(r)?r:w.nonProgramIds()).map((function(e){return e.toBase58()})),I.accounts={encoding:"base64",addresses:S}),p&&(I.sigVerify=!0),E=[k,I],e.next=55,this._rpcRequest("simulateTransaction",E);case 55:if(C=e.sent,!("error"in(T=mt(C,yi)))){e.next=60;break}throw"data"in T.error&&(O=T.error.data.logs)&&Array.isArray(O)&&(P="\n "+O.join("\n "),console.error(T.error.message,P)),new Fa("failed to simulate transaction: "+T.error.message,O);case 60:return e.abrupt("return",T.result);case 61:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return x.apply(this,arguments)})},{key:"sendTransaction",value:(w=(0,l.Z)((0,f.Z)().mark((function e(t,n,r){var a,i,o,s,u,d;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("version"in t)){e.next=7;break}if(!n||!Array.isArray(n)){e.next=3;break}throw new Error("Invalid arguments");case 3:return a=t.serialize(),e.next=6,this.sendRawTransaction(a,n);case 6:return e.abrupt("return",e.sent);case 7:if(void 0!==n&&Array.isArray(n)){e.next=9;break}throw new Error("Invalid arguments");case 9:if(i=n,!t.nonceInfo){e.next=14;break}t.sign.apply(t,(0,c.Z)(i)),e.next=32;break;case 14:o=this._disableBlockhashCaching;case 15:return e.next=17,this._blockhashWithExpiryBlockHeight(o);case 17:if(s=e.sent,t.lastValidBlockHeight=s.lastValidBlockHeight,t.recentBlockhash=s.blockhash,t.sign.apply(t,(0,c.Z)(i)),t.signature){e.next=23;break}throw new Error("!signature");case 23:if(u=t.signature.toString("base64"),this._blockhashInfo.transactionSignatures.includes(u)){e.next=29;break}return this._blockhashInfo.transactionSignatures.push(u),e.abrupt("break",32);case 29:o=!0;case 30:e.next=15;break;case 32:return d=t.serialize(),e.next=35,this.sendRawTransaction(d,r);case 35:return e.abrupt("return",e.sent);case 36:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return w.apply(this,arguments)})},{key:"sendRawTransaction",value:(A=(0,l.Z)((0,f.Z)().mark((function e(t,n){var r,a;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Cr(t).toString("base64"),e.next=3,this.sendEncodedTransaction(r,n);case 3:return a=e.sent,e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return A.apply(this,arguments)})},{key:"sendEncodedTransaction",value:(g=(0,l.Z)((0,f.Z)().mark((function e(t,n){var r,a,i,o,s,c,u;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={encoding:"base64"},a=n&&n.skipPreflight,i=n&&n.preflightCommitment||this.commitment,n&&null!=n.maxRetries&&(r.maxRetries=n.maxRetries),n&&null!=n.minContextSlot&&(r.minContextSlot=n.minContextSlot),a&&(r.skipPreflight=a),i&&(r.preflightCommitment=i),o=[t,r],e.next=10,this._rpcRequest("sendTransaction",o);case 10:if(s=e.sent,!("error"in(c=mt(s,Mo)))){e.next=15;break}throw"data"in c.error&&(u=c.error.data.logs),new Fa("failed to send transaction: "+c.error.message,u);case 15:return e.abrupt("return",c.result);case 16:case"end":return e.stop()}}),e,this)}))),function(e,t){return g.apply(this,arguments)})},{key:"_wsOnOpen",value:function(){var e=this;this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval((function(){(0,l.Z)((0,f.Z)().mark((function t(){return(0,f.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e._rpcWebSocket.notify("ping");case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:case"end":return t.stop()}}),t,null,[[0,5]])})))()}),5e3),this._updateSubscriptions()}},{key:"_wsOnError",value:function(e){this._rpcWebSocketConnected=!1,console.error("ws error:",e.message)}},{key:"_wsOnClose",value:function(e){var t=this;this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==e?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach((function(e){var n=(0,s.Z)(e,2),r=n[0],a=n[1];t._setSubscription(r,(0,o.Z)((0,o.Z)({},a),{},{state:"pending"}))}))):this._updateSubscriptions()}},{key:"_setSubscription",value:function(e,t){var n,r=null===(n=this._subscriptionsByHash[e])||void 0===n?void 0:n.state;if(this._subscriptionsByHash[e]=t,r!==t.state){var a=this._subscriptionStateChangeCallbacksByHash[e];a&&a.forEach((function(e){try{e(t.state)}catch(e){}}))}}},{key:"_onSubscriptionStateChange",value:function(e,t){var n,r=this,a=this._subscriptionHashByClientSubscriptionId[e];if(null==a)return function(){};var i=(n=this._subscriptionStateChangeCallbacksByHash)[a]||(n[a]=new Set);return i.add(t),function(){i.delete(t),0===i.size&&delete r._subscriptionStateChangeCallbacksByHash[a]}}},{key:"_updateSubscriptions",value:(v=(0,l.Z)((0,f.Z)().mark((function e(){var t,n,r=this;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==Object.keys(this._subscriptionsByHash).length){e.next=3;break}return this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout((function(){r._rpcWebSocketIdleTimeout=null;try{r._rpcWebSocket.close()}catch(e){e instanceof Error&&console.log("Error when closing socket connection: ".concat(e.message))}}),500)),e.abrupt("return");case 3:if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),this._rpcWebSocketConnected){e.next=7;break}return this._rpcWebSocket.connect(),e.abrupt("return");case 7:return t=this._rpcWebSocketGeneration,n=function(){return t===r._rpcWebSocketGeneration},e.next=11,Promise.all(Object.keys(this._subscriptionsByHash).map(function(){var e=(0,l.Z)((0,f.Z)().mark((function e(t){var a;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(a=r._subscriptionsByHash[t])){e.next=3;break}return e.abrupt("return");case 3:e.t0=a.state,e.next="pending"===e.t0||"unsubscribed"===e.t0?6:"subscribed"===e.t0?15:19;break;case 6:if(0!==a.callbacks.size){e.next=12;break}return delete r._subscriptionsByHash[t],"unsubscribed"===a.state&&delete r._subscriptionCallbacksByServerSubscriptionId[a.serverSubscriptionId],e.next=11,r._updateSubscriptions();case 11:return e.abrupt("return");case 12:return e.next=14,(0,l.Z)((0,f.Z)().mark((function e(){var i,s,c;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=a.args,s=a.method,e.prev=1,r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"subscribing"})),e.next=5,r._rpcWebSocket.call(s,i);case 5:return c=e.sent,r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{serverSubscriptionId:c,state:"subscribed"})),r._subscriptionCallbacksByServerSubscriptionId[c]=a.callbacks,e.next=10,r._updateSubscriptions();case 10:e.next=20;break;case 12:if(e.prev=12,e.t0=e.catch(1),e.t0 instanceof Error&&console.error("".concat(s," error for argument"),i,e.t0.message),n()){e.next=17;break}return e.abrupt("return");case 17:return r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"pending"})),e.next=20,r._updateSubscriptions();case 20:case"end":return e.stop()}}),e,null,[[1,12]])})))();case 14:case 18:return e.abrupt("break",19);case 15:if(0!==a.callbacks.size){e.next=18;break}return e.next=18,(0,l.Z)((0,f.Z)().mark((function e(){var i,s;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=a.serverSubscriptionId,s=a.unsubscribeMethod,!r._subscriptionsAutoDisposedByRpc.has(i)){e.next=5;break}r._subscriptionsAutoDisposedByRpc.delete(i),e.next=21;break;case 5:return r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"unsubscribing"})),r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"unsubscribing"})),e.prev=7,e.next=10,r._rpcWebSocket.call(s,[i]);case 10:e.next=21;break;case 12:if(e.prev=12,e.t0=e.catch(7),e.t0 instanceof Error&&console.error("".concat(s," error:"),e.t0.message),n()){e.next=17;break}return e.abrupt("return");case 17:return r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"subscribed"})),e.next=20,r._updateSubscriptions();case 20:return e.abrupt("return");case 21:return r._setSubscription(t,(0,o.Z)((0,o.Z)({},a),{},{state:"unsubscribed"})),e.next=24,r._updateSubscriptions();case 24:case"end":return e.stop()}}),e,null,[[7,12]])})))();case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 11:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"_handleServerNotification",value:function(e,t){var n=this._subscriptionCallbacksByServerSubscriptionId[e];void 0!==n&&n.forEach((function(e){try{e.apply(void 0,(0,c.Z)(t))}catch(e){console.error(e)}}))}},{key:"_wsOnAccountNotification",value:function(e){var t=mt(e,Fi),n=t.result,r=t.subscription;this._handleServerNotification(r,[n.value,n.context])}},{key:"_makeSubscription",value:function(e,t){var n=this,r=this._nextClientSubscriptionId++,a=ja([e.method,t]),i=this._subscriptionsByHash[a];return void 0===i?this._subscriptionsByHash[a]=(0,o.Z)((0,o.Z)({},e),{},{args:t,callbacks:new Set([e.callback]),state:"pending"}):i.callbacks.add(e.callback),this._subscriptionHashByClientSubscriptionId[r]=a,this._subscriptionDisposeFunctionsByClientSubscriptionId[r]=(0,l.Z)((0,f.Z)().mark((function t(){var i;return(0,f.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete n._subscriptionDisposeFunctionsByClientSubscriptionId[r],delete n._subscriptionHashByClientSubscriptionId[r],Yr(void 0!==(i=n._subscriptionsByHash[a]),"Could not find a `Subscription` when tearing down client subscription #".concat(r)),i.callbacks.delete(e.callback),t.next=7,n._updateSubscriptions();case 7:case"end":return t.stop()}}),t)}))),this._updateSubscriptions(),r}},{key:"onAccountChange",value:function(e,t,n){var r=this._buildArgs([e.toBase58()],n||this._commitment||"finalized","base64");return this._makeSubscription({callback:t,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},r)}},{key:"removeAccountChangeListener",value:(p=(0,l.Z)((0,f.Z)().mark((function e(t){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"account change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"_wsOnProgramAccountNotification",value:function(e){var t=mt(e,Hi),n=t.result,r=t.subscription;this._handleServerNotification(r,[{accountId:n.value.pubkey,accountInfo:n.value.account},n.context])}},{key:"onProgramAccountChange",value:function(e,t,n,r){var a=this._buildArgs([e.toBase58()],n||this._commitment||"finalized","base64",r?{filters:r}:void 0);return this._makeSubscription({callback:t,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},a)}},{key:"removeProgramAccountChangeListener",value:(b=(0,l.Z)((0,f.Z)().mark((function e(t){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"program account change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"onLogs",value:function(e,t,n){var r=this._buildArgs(["object"==typeof e?{mentions:[e.toString()]}:e],n||this._commitment||"finalized");return this._makeSubscription({callback:t,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},r)}},{key:"removeOnLogsListener",value:(d=(0,l.Z)((0,f.Z)().mark((function e(t){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"logs");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"_wsOnLogsNotification",value:function(e){var t=mt(e,No),n=t.result,r=t.subscription;this._handleServerNotification(r,[n.value,n.context])}},{key:"_wsOnSlotNotification",value:function(e){var t=mt(e,Qi),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onSlotChange",value:function(e){return this._makeSubscription({callback:e,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}},{key:"removeSlotChangeListener",value:(u=(0,l.Z)((0,f.Z)().mark((function e(t){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"slot change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"_wsOnSlotUpdatesNotification",value:function(e){var t=mt(e,Vi),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onSlotUpdate",value:function(e){return this._makeSubscription({callback:e,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}},{key:"removeSlotUpdateListener",value:(i=(0,l.Z)((0,f.Z)().mark((function e(t){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"slot update");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"_unsubscribeClientSubscription",value:(a=(0,l.Z)((0,f.Z)().mark((function e(t,n){var r;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=this._subscriptionDisposeFunctionsByClientSubscriptionId[t])){e.next=6;break}return e.next=4,r();case 4:e.next=7;break;case 6:console.warn("Ignored unsubscribe request because an active subscription with id "+"`".concat(t,"` for '").concat(n,"' events ")+"could not be found.");case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"_buildArgs",value:function(e,t,n,r){var a=t||this._commitment;if(a||n||r){var i={};n&&(i.encoding=n),a&&(i.commitment=a),r&&(i=Object.assign(i,r)),e.push(i)}return e}},{key:"_buildArgsAtLeastConfirmed",value:function(e,t,n,r){var a=t||this._commitment;if(a&&!["confirmed","finalized"].includes(a))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(e,t,n,r)}},{key:"_wsOnSignatureNotification",value:function(e){var t=mt(e,Ji),n=t.result,r=t.subscription;"receivedSignature"!==n.value&&this._subscriptionsAutoDisposedByRpc.add(r),this._handleServerNotification(r,"receivedSignature"===n.value?[{type:"received"},n.context]:[{type:"status",result:n.value},n.context])}},{key:"onSignature",value:function(e,t,n){var r=this,a=this._buildArgs([e],n||this._commitment||"finalized"),i=this._makeSubscription({callback:function(e,n){if("status"===e.type){t(e.result,n);try{r.removeSignatureListener(i)}catch(e){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},a);return i}},{key:"onSignatureWithOptions",value:function(e,t,n){var a=this,i=(0,o.Z)((0,o.Z)({},n),{},{commitment:n&&n.commitment||this._commitment||"finalized"}),s=i.commitment,c=(0,r.Z)(i,Ar),u=this._buildArgs([e],s,void 0,c),d=this._makeSubscription({callback:function(e,n){t(e,n);try{a.removeSignatureListener(d)}catch(e){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},u);return d}},{key:"removeSignatureListener",value:(n=(0,l.Z)((0,f.Z)().mark((function e(t){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"signature result");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_wsOnRootNotification",value:function(e){var t=mt(e,Ki),n=t.result,r=t.subscription;this._handleServerNotification(r,[n])}},{key:"onRootChange",value:function(e){return this._makeSubscription({callback:e,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}},{key:"removeRootChangeListener",value:(t=(0,l.Z)((0,f.Z)().mark((function e(t){return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._unsubscribeClientSubscription(t,"root change");case 2:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),jo=function(){function e(t){(0,h.Z)(this,e),this._keypair=void 0,this._keypair=null!=t?t:xr()}return(0,y.Z)(e,[{key:"publicKey",get:function(){return new Rr(this._keypair.publicKey)}},{key:"secretKey",get:function(){return new Uint8Array(this._keypair.secretKey)}}],[{key:"generate",value:function(){return new e(xr())}},{key:"fromSecretKey",value:function(t,n){if(64!==t.byteLength)throw new Error("bad secret key size");var r=t.slice(32,64);if(!n||!n.skipValidation)for(var a=t.slice(0,32),i=_r(a),o=0;o<32;o++)if(r[o]!==i[o])throw new Error("provided secretKey is invalid");return new e({publicKey:r,secretKey:t})}},{key:"fromSeed",value:function(t){var n=_r(t),r=new Uint8Array(64);return r.set(t),r.set(n,32),new e({publicKey:n,secretKey:r})}}]),e}(),Uo=Object.freeze({CreateLookupTable:{index:0,layout:nt.struct([nt.u32("instruction"),Sa("recentSlot"),nt.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:nt.struct([nt.u32("instruction")])},ExtendLookupTable:{index:2,layout:nt.struct([nt.u32("instruction"),Sa(),nt.seq(qr(),nt.offset(nt.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:nt.struct([nt.u32("instruction")])},CloseLookupTable:{index:4,layout:nt.struct([nt.u32("instruction")])}}),Lo=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=nt.u32("instruction").decode(e.data),r=0,a=Object.entries(Uo);r2?e.keys[2].pubkey:void 0,addresses:t.map((function(e){return new Rr(e)}))}}},{key:"decodeCloseLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,3),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey,recipient:e.keys[2].pubkey}}},{key:"decodeFreezeLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}},{key:"decodeDeactivateLookupTable",value:function(e){return this.checkProgramId(e.programId),this.checkKeysLength(e.keys,2),{lookupTable:e.keys[0].pubkey,authority:e.keys[1].pubkey}}},{key:"checkProgramId",value:function(e){if(!e.equals(Fo.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}},{key:"checkKeysLength",value:function(e,t){if(e.length1?n-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:{},a=function(e,t,n){if(null==e)throw new Error('sign: expected valid message hash, not "'.concat(e,'"'));var r=Xn(e),a=cr(t),i=[fr(a),dr(r)];if(null!=n){!0===n&&(n=yr.randomBytes(In));var o=Xn(n);if(o.length!==In)throw new Error("sign: Expected ".concat(In," bytes of extra data"));i.push(o)}return{seed:Fn.apply(void 0,i),m:ur(r),d:a}}(e,t,r.extraEntropy),i=a.seed,o=a.m,s=a.d,c=new ar(32,Sn);for(c.reseedSync(i);!(n=sr(c.generateSync(),o,s,r.canonical));)c.reseedSync();return function(e,t){var n=e.sig,r=e.recovery,a=Object.assign({canonical:!0,der:!0},t),i=a.der,o=a.recovered,s=i?n.toDERRawBytes():n.toCompactRawBytes();return o?[s,r]:s}(n,r)}(e,t,{der:!1,recovered:!0})};yr.isValidPrivateKey;var Jo=nt.struct([nt.u8("numSignatures"),nt.u16("signatureOffset"),nt.u8("signatureInstructionIndex"),nt.u16("ethAddressOffset"),nt.u8("ethAddressInstructionIndex"),nt.u16("messageDataOffset"),nt.u16("messageDataSize"),nt.u8("messageInstructionIndex"),nt.blob(20,"ethAddress"),nt.blob(64,"signature"),nt.u8("recoveryId")]),Ko=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"publicKeyToEthAddress",value:function(e){Yr(64===e.length,"Public key must be ".concat(64," bytes but received ").concat(e.length," bytes"));try{return m.Buffer.from(dn(Cr(e))).slice(-20)}catch(e){throw new Error("Error constructing Ethereum address: ".concat(e))}}},{key:"createInstructionWithPublicKey",value:function(t){var n=t.publicKey,r=t.message,a=t.signature,i=t.recoveryId,o=t.instructionIndex;return e.createInstructionWithEthAddress({ethAddress:e.publicKeyToEthAddress(n),message:r,signature:a,recoveryId:i,instructionIndex:o})}},{key:"createInstructionWithEthAddress",value:function(t){var n,r=t.ethAddress,a=t.message,i=t.signature,o=t.recoveryId,s=t.instructionIndex,c=void 0===s?0:s;Yr(20===(n="string"==typeof r?r.startsWith("0x")?m.Buffer.from(r.substr(2),"hex"):m.Buffer.from(r,"hex"):r).length,"Address must be ".concat(20," bytes but received ").concat(n.length," bytes"));var u=12+n.length,d=u+i.length+1,f=m.Buffer.alloc(Jo.span+a.length);return Jo.encode({numSignatures:1,signatureOffset:u,signatureInstructionIndex:c,ethAddressOffset:12,ethAddressInstructionIndex:c,messageDataOffset:d,messageDataSize:a.length,messageInstructionIndex:c,signature:Cr(i),ethAddress:Cr(n),recoveryId:o},f),f.fill(Cr(a),Jo.span),new aa({keys:[],programId:e.programId,data:f})}},{key:"createInstructionWithPrivateKey",value:function(e){var t=e.privateKey,n=e.message,r=e.instructionIndex;Yr(32===t.length,"Private key must be ".concat(32," bytes but received ").concat(t.length," bytes"));try{var a=Cr(t),i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Dn.fromPrivateKey(e).toRawBytes(t)}(a,!1).slice(1),o=m.Buffer.from(dn(Cr(n))),c=Vo(o,a),u=(0,s.Z)(c,2),d=u[0],f=u[1];return this.createInstructionWithPublicKey({publicKey:i,message:n,signature:d,recoveryId:f,instructionIndex:r})}catch(e){throw new Error("Error creating instruction; ".concat(e))}}}]),e}();Ko.programId=new Rr("KeccakSecp256k11111111111111111111111111111");var Go=new Rr("StakeConfig11111111111111111111111111111111"),Wo=(0,y.Z)((function e(t,n){(0,h.Z)(this,e),this.staker=void 0,this.withdrawer=void 0,this.staker=t,this.withdrawer=n})),Yo=(0,y.Z)((function e(t,n,r){(0,h.Z)(this,e),this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=n,this.custodian=r}));Yo.default=new Yo(0,0,Rr.default);var Xo=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=nt.u32("instruction").decode(e.data),r=0,a=Object.entries($o);r3&&(a.custodianPubkey=e.keys[3].pubkey),a}},{key:"decodeAuthorizeWithSeed",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,2);var t=wa($o.AuthorizeWithSeed,e.data),n=t.newAuthorized,r=t.stakeAuthorizationType,a=t.authoritySeed,i=t.authorityOwner,o={stakePubkey:e.keys[0].pubkey,authorityBase:e.keys[1].pubkey,authoritySeed:a,authorityOwner:new Rr(i),newAuthorizedPubkey:new Rr(n),stakeAuthorizationType:{index:r}};return e.keys.length>3&&(o.custodianPubkey=e.keys[3].pubkey),o}},{key:"decodeSplit",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3);var t=wa($o.Split,e.data).lamports;return{stakePubkey:e.keys[0].pubkey,splitStakePubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[2].pubkey,lamports:t}}},{key:"decodeMerge",value:function(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),wa($o.Merge,e.data),{stakePubkey:e.keys[0].pubkey,sourceStakePubKey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey}}},{key:"decodeWithdraw",value:function(e){this.checkProgramId(e.programId),this.checkKeyLength(e.keys,5);var t=wa($o.Withdraw,e.data).lamports,n={stakePubkey:e.keys[0].pubkey,toPubkey:e.keys[1].pubkey,authorizedPubkey:e.keys[4].pubkey,lamports:t};return e.keys.length>5&&(n.custodianPubkey=e.keys[5].pubkey),n}},{key:"decodeDeactivate",value:function(e){return this.checkProgramId(e.programId),this.checkKeyLength(e.keys,3),wa($o.Deactivate,e.data),{stakePubkey:e.keys[0].pubkey,authorizedPubkey:e.keys[2].pubkey}}},{key:"checkProgramId",value:function(e){if(!e.equals(ts.programId))throw new Error("invalid instruction; programId is not StakeProgram")}},{key:"checkKeyLength",value:function(e,t){if(e.length0&&void 0!==arguments[0]?arguments[0]:"authorized";return nt.struct([qr("staker"),qr("withdrawer")],e)}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lockup";return nt.struct([nt.ns64("unixTimestamp"),nt.ns64("epoch"),qr("custodian")],e)}()])},Authorize:{index:1,layout:nt.struct([nt.u32("instruction"),qr("newAuthorized"),nt.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:nt.struct([nt.u32("instruction")])},Split:{index:3,layout:nt.struct([nt.u32("instruction"),nt.ns64("lamports")])},Withdraw:{index:4,layout:nt.struct([nt.u32("instruction"),nt.ns64("lamports")])},Deactivate:{index:5,layout:nt.struct([nt.u32("instruction")])},Merge:{index:7,layout:nt.struct([nt.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:nt.struct([nt.u32("instruction"),qr("newAuthorized"),nt.u32("stakeAuthorizationType"),Jr("authoritySeed"),qr("authorityOwner")])}}),es=Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),ts=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"initialize",value:function(e){var t=e.stakePubkey,n=e.authorized,r=e.lockup||Yo.default,a=Aa($o.Initialize,{authorized:{staker:Cr(n.staker.toBuffer()),withdrawer:Cr(n.withdrawer.toBuffer())},lockup:{unixTimestamp:r.unixTimestamp,epoch:r.epoch,custodian:Cr(r.custodian.toBuffer())}}),i={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:la,isSigner:!1,isWritable:!1}],programId:this.programId,data:a};return new aa(i)}},{key:"createAccountWithSeed",value:function(e){var t=new ia;t.add(Ta.createAccountWithSeed({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,basePubkey:e.basePubkey,seed:e.seed,lamports:e.lamports,space:this.space,programId:this.programId}));var n=e.stakePubkey,r=e.authorized,a=e.lockup;return t.add(this.initialize({stakePubkey:n,authorized:r,lockup:a}))}},{key:"createAccount",value:function(e){var t=new ia;t.add(Ta.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.stakePubkey,lamports:e.lamports,space:this.space,programId:this.programId}));var n=e.stakePubkey,r=e.authorized,a=e.lockup;return t.add(this.initialize({stakePubkey:n,authorized:r,lockup:a}))}},{key:"delegate",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.votePubkey,a=Aa($o.Delegate);return(new ia).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:ya,isSigner:!1,isWritable:!1},{pubkey:Go,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}},{key:"authorize",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.newAuthorizedPubkey,a=e.stakeAuthorizationType,i=e.custodianPubkey,o=Aa($o.Authorize,{newAuthorized:Cr(r.toBuffer()),stakeAuthorizationType:a.index}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return i&&s.push({pubkey:i,isSigner:!1,isWritable:!1}),(new ia).add({keys:s,programId:this.programId,data:o})}},{key:"authorizeWithSeed",value:function(e){var t=e.stakePubkey,n=e.authorityBase,r=e.authoritySeed,a=e.authorityOwner,i=e.newAuthorizedPubkey,o=e.stakeAuthorizationType,s=e.custodianPubkey,c=Aa($o.AuthorizeWithSeed,{newAuthorized:Cr(i.toBuffer()),stakeAuthorizationType:o.index,authoritySeed:r,authorityOwner:Cr(a.toBuffer())}),u=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:ca,isSigner:!1,isWritable:!1}];return s&&u.push({pubkey:s,isSigner:!1,isWritable:!1}),(new ia).add({keys:u,programId:this.programId,data:c})}},{key:"splitInstruction",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.splitStakePubkey,a=e.lamports,i=Aa($o.Split,{lamports:a});return new aa({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"split",value:function(e){var t=new ia;return t.add(Ta.createAccount({fromPubkey:e.authorizedPubkey,newAccountPubkey:e.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),t.add(this.splitInstruction(e))}},{key:"splitWithSeed",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.splitStakePubkey,a=e.basePubkey,i=e.seed,o=e.lamports,s=new ia;return s.add(Ta.allocate({accountPubkey:r,basePubkey:a,seed:i,space:this.space,programId:this.programId})),s.add(this.splitInstruction({stakePubkey:t,authorizedPubkey:n,splitStakePubkey:r,lamports:o}))}},{key:"merge",value:function(e){var t=e.stakePubkey,n=e.sourceStakePubKey,r=e.authorizedPubkey,a=Aa($o.Merge);return(new ia).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:ya,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:a})}},{key:"withdraw",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=e.toPubkey,a=e.lamports,i=e.custodianPubkey,o=Aa($o.Withdraw,{lamports:a}),s=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:ya,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return i&&s.push({pubkey:i,isSigner:!1,isWritable:!1}),(new ia).add({keys:s,programId:this.programId,data:o})}},{key:"deactivate",value:function(e){var t=e.stakePubkey,n=e.authorizedPubkey,r=Aa($o.Deactivate);return(new ia).add({keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}}]),e}();ts.programId=new Rr("Stake11111111111111111111111111111111111111"),ts.space=200;var ns=(0,y.Z)((function e(t,n,r,a){(0,h.Z)(this,e),this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=t,this.authorizedVoter=n,this.authorizedWithdrawer=r,this.commission=a})),rs=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"decodeInstructionType",value:function(e){this.checkProgramId(e.programId);for(var t,n=nt.u32("instruction").decode(e.data),r=0,a=Object.entries(as);r0&&void 0!==arguments[0]?arguments[0]:"voteInit";return nt.struct([qr("nodePubkey"),qr("authorizedVoter"),qr("authorizedWithdrawer"),nt.u8("commission")],e)}()])},Authorize:{index:1,layout:nt.struct([nt.u32("instruction"),qr("newAuthorized"),nt.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:nt.struct([nt.u32("instruction"),nt.ns64("lamports")])},AuthorizeWithSeed:{index:10,layout:nt.struct([nt.u32("instruction"),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"voteAuthorizeWithSeedArgs";return nt.struct([nt.u32("voteAuthorizationType"),qr("currentAuthorityDerivedKeyOwnerPubkey"),Jr("currentAuthorityDerivedKeySeed"),qr("newAuthorized")],e)}()])}}),is=Object.freeze({Voter:{index:0},Withdrawer:{index:1}}),os=function(){function e(){(0,h.Z)(this,e)}return(0,y.Z)(e,null,[{key:"initializeAccount",value:function(e){var t=e.votePubkey,n=e.nodePubkey,r=e.voteInit,a=Aa(as.InitializeAccount,{voteInit:{nodePubkey:Cr(r.nodePubkey.toBuffer()),authorizedVoter:Cr(r.authorizedVoter.toBuffer()),authorizedWithdrawer:Cr(r.authorizedWithdrawer.toBuffer()),commission:r.commission}}),i={keys:[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:la,isSigner:!1,isWritable:!1},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:a};return new aa(i)}},{key:"createAccount",value:function(e){var t=new ia;return t.add(Ta.createAccount({fromPubkey:e.fromPubkey,newAccountPubkey:e.votePubkey,lamports:e.lamports,space:this.space,programId:this.programId})),t.add(this.initializeAccount({votePubkey:e.votePubkey,nodePubkey:e.voteInit.nodePubkey,voteInit:e.voteInit}))}},{key:"authorize",value:function(e){var t=e.votePubkey,n=e.authorizedPubkey,r=e.newAuthorizedPubkey,a=e.voteAuthorizationType,i=Aa(as.Authorize,{newAuthorized:Cr(r.toBuffer()),voteAuthorizationType:a.index}),o=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return(new ia).add({keys:o,programId:this.programId,data:i})}},{key:"authorizeWithSeed",value:function(e){var t=e.currentAuthorityDerivedKeyBasePubkey,n=e.currentAuthorityDerivedKeyOwnerPubkey,r=e.currentAuthorityDerivedKeySeed,a=e.newAuthorizedPubkey,i=e.voteAuthorizationType,o=e.votePubkey,s=Aa(as.AuthorizeWithSeed,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:Cr(n.toBuffer()),currentAuthorityDerivedKeySeed:r,newAuthorized:Cr(a.toBuffer()),voteAuthorizationType:i.index}}),c=[{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:ca,isSigner:!1,isWritable:!1},{pubkey:t,isSigner:!0,isWritable:!1}];return(new ia).add({keys:c,programId:this.programId,data:s})}},{key:"withdraw",value:function(e){var t=e.votePubkey,n=e.authorizedWithdrawerPubkey,r=e.lamports,a=e.toPubkey,i=Aa(as.Withdraw,{lamports:r}),o=[{pubkey:t,isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return(new ia).add({keys:o,programId:this.programId,data:i})}},{key:"safeWithdraw",value:function(t,n,r){if(t.lamports>n-r)throw new Error("Withdraw will leave vote account with insuffcient funds.");return e.withdraw(t)}}]),e}();os.programId=new Rr("Vote111111111111111111111111111111111111111"),os.space=3731;var ss=new Rr("Va1idator1nfo111111111111111111111111111111"),cs=Pt({name:Tt(),website:Et(Tt()),details:Et(Tt()),keybaseUsername:Et(Tt())}),us=function(){function e(t,n){(0,h.Z)(this,e),this.key=void 0,this.info=void 0,this.key=t,this.info=n}return(0,y.Z)(e,null,[{key:"fromConfigData",value:function(t){var n=(0,c.Z)(t);if(2!==Gr(n))return null;for(var r=[],a=0;a<2;a++){var i=new Rr(n.slice(0,Br)),o=1===(n=n.slice(Br)).slice(0,1)[0];n=n.slice(1),r.push({publicKey:i,isSigner:o})}if(r[0].publicKey.equals(ss)&&r[1].isSigner){var s=Jr().decode(m.Buffer.from(n)),u=JSON.parse(s);return yt(u,cs),new e(r[1].publicKey,u)}return null}}]),e}(),ds=new Rr("Vote111111111111111111111111111111111111111"),fs=nt.struct([qr("nodePubkey"),qr("authorizedWithdrawer"),nt.u8("commission"),nt.nu64(),nt.seq(nt.struct([nt.nu64("slot"),nt.u32("confirmationCount")]),nt.offset(nt.u32(),-8),"votes"),nt.u8("rootSlotValid"),nt.nu64("rootSlot"),nt.nu64(),nt.seq(nt.struct([nt.nu64("epoch"),qr("authorizedVoter")]),nt.offset(nt.u32(),-8),"authorizedVoters"),nt.struct([nt.seq(nt.struct([qr("authorizedPubkey"),nt.nu64("epochOfLastAuthorizedSwitch"),nt.nu64("targetEpoch")]),32,"buf"),nt.nu64("idx"),nt.u8("isEmpty")],"priorVoters"),nt.nu64(),nt.seq(nt.struct([nt.nu64("epoch"),nt.nu64("credits"),nt.nu64("prevCredits")]),nt.offset(nt.u32(),-8),"epochCredits"),nt.struct([nt.nu64("slot"),nt.nu64("timestamp")],"lastTimestamp")]),ls=function(){function e(t){(0,h.Z)(this,e),this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=t.nodePubkey,this.authorizedWithdrawer=t.authorizedWithdrawer,this.commission=t.commission,this.rootSlot=t.rootSlot,this.votes=t.votes,this.authorizedVoters=t.authorizedVoters,this.priorVoters=t.priorVoters,this.epochCredits=t.epochCredits,this.lastTimestamp=t.lastTimestamp}return(0,y.Z)(e,null,[{key:"fromAccountData",value:function(t){var n,r,a,i=fs.decode(Cr(t),4),o=i.rootSlot;return i.rootSlotValid||(o=null),new e({nodePubkey:new Rr(i.nodePubkey),authorizedWithdrawer:new Rr(i.authorizedWithdrawer),commission:i.commission,votes:i.votes,rootSlot:o,authorizedVoters:i.authorizedVoters.map(bs),priorVoters:(n=i.priorVoters,r=n.buf,a=n.idx,n.isEmpty?[]:[].concat((0,c.Z)(r.slice(a+1).map(ps)),(0,c.Z)(r.slice(0,a).map(ps)))),epochCredits:i.epochCredits,lastTimestamp:i.lastTimestamp})}}]),e}();function bs(e){var t=e.authorizedVoter;return{epoch:e.epoch,authorizedVoter:new Rr(t)}}function ps(e){var t=e.authorizedPubkey,n=e.epochOfLastAuthorizedSwitch,r=e.targetEpoch;return{authorizedPubkey:new Rr(t),epochOfLastAuthorizedSwitch:n,targetEpoch:r}}var hs={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function ys(e,t){var n=!1===t?"http":"https";if(!e)return hs[n].devnet;var r=hs[n][e];if(!r)throw new Error("Unknown ".concat(n," cluster: ").concat(e));return r}function ms(e,t,n,r){return vs.apply(this,arguments)}function vs(){return vs=(0,l.Z)((0,f.Z)().mark((function e(t,n,r,a){var i,o,s,c,u,d,l;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r&&Object.prototype.hasOwnProperty.call(r,"lastValidBlockHeight")||r&&Object.prototype.hasOwnProperty.call(r,"nonceValue")?(i=r,o=a):o=r,s=o&&{skipPreflight:o.skipPreflight,preflightCommitment:o.preflightCommitment||o.commitment,minContextSlot:o.minContextSlot},e.next=4,t.sendRawTransaction(n,s);case 4:return c=e.sent,u=o&&o.commitment,d=i?t.confirmTransaction(i,u):t.confirmTransaction(c,u),e.next=9,d;case 9:if(!(l=e.sent.value).err){e.next=12;break}throw new Error("Raw transaction ".concat(c," failed (").concat(JSON.stringify(l),")"));case 12:return e.abrupt("return",c);case 13:case"end":return e.stop()}}),e)}))),vs.apply(this,arguments)}var gs=1e9},25047:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return L}});var r,a=n(82793),i=n.n(a),o=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(i()),c=s,u=n(59754),d=n(25630),f=n(41116),l=n(17600),b=n(91610),p=n(31945),h=n(50491),y=n(61968),m=n(6058),v=n(871),g=n(38600),A=n.n(g),w=function(e){(0,y.Z)(n,e);var t=(0,m.Z)(n);function n(e,r){var a,i,o;if((0,b.Z)(this,n),a=t.call(this),i=(0,h.Z)(a),a._handleMessage=function(e){if(a._injectedProvider&&e.source===window||e.origin===a._providerUrl.origin&&e.source===a._popup)if("connected"===e.data.method){var t=new v.PublicKey(e.data.params.publicKey);a._publicKey&&a._publicKey.equals(t)||(a._publicKey&&!a._publicKey.equals(t)&&a._handleDisconnect(),a._publicKey=t,a._autoApprove=!!e.data.params.autoApprove,a.emit("connect",a._publicKey))}else if("disconnected"===e.data.method)a._handleDisconnect();else if((e.data.result||e.data.error)&&a._responsePromises.has(e.data.id)){var n=a._responsePromises.get(e.data.id),r=(0,l.Z)(n,2),i=r[0],o=r[1];e.data.result?i(e.data.result):o(new Error(e.data.error))}},a._handleConnect=function(){return a._handlerAdded||(a._handlerAdded=!0,window.addEventListener("message",a._handleMessage),window.addEventListener("beforeunload",a.disconnect)),a._injectedProvider?new Promise((function(e){a._sendRequest("connect",{}),e()})):(window.name="parent",a._popup=window.open(a._providerUrl.toString(),"_blank","location,resizable,width=460,height=675"),new Promise((function(e){a.once("connect",e)})))},a._handleDisconnect=function(){a._handlerAdded&&(a._handlerAdded=!1,window.removeEventListener("message",a._handleMessage),window.removeEventListener("beforeunload",a.disconnect)),a._publicKey&&(a._publicKey=null,a.emit("disconnect")),a._responsePromises.forEach((function(e,t){var n=(0,l.Z)(e,2),r=(n[0],n[1]);a._responsePromises.delete(t),r("Wallet disconnected")}))},a._sendRequest=function(){var e=(0,f.Z)((0,u.Z)().mark((function e(t,n){var r;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("connect"===t||i.connected){e.next=2;break}throw new Error("Wallet not connected");case 2:return r=i._nextRequestId,++i._nextRequestId,e.abrupt("return",new Promise((function(e,a){i._responsePromises.set(r,[e,a]),i._injectedProvider?i._injectedProvider.postMessage({jsonrpc:"2.0",id:r,method:t,params:(0,d.Z)({network:i._network},n)}):(i._popup.postMessage({jsonrpc:"2.0",id:r,method:t,params:n},i._providerUrl.origin),i.autoApprove||i._popup.focus())})));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),a.connect=function(){return a._popup&&a._popup.close(),a._handleConnect()},a.disconnect=(0,f.Z)((0,u.Z)().mark((function e(){return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!i._injectedProvider){e.next=3;break}return e.next=3,i._sendRequest("disconnect",{});case 3:i._popup&&i._popup.close(),i._handleDisconnect();case 5:case"end":return e.stop()}}),e)}))),a.sign=function(){var e=(0,f.Z)((0,u.Z)().mark((function e(t,n){var r,a,o;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t instanceof Uint8Array){e.next=2;break}throw new Error("Data must be an instance of Uint8Array");case 2:return e.next=4,i._sendRequest("sign",{data:t,display:n});case 4:return r=e.sent,a=A().decode(r.signature),o=new v.PublicKey(r.publicKey),e.abrupt("return",{signature:a,publicKey:o});case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),a.signTransaction=function(){var e=(0,f.Z)((0,u.Z)().mark((function e(t){var n,r,a;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i._sendRequest("signTransaction",{message:A().encode(t.serializeMessage())});case 2:return n=e.sent,r=A().decode(n.signature),a=new v.PublicKey(n.publicKey),t.addSignature(a,r),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a.signAllTransactions=function(){var e=(0,f.Z)((0,u.Z)().mark((function e(t){var n,r,a;return(0,u.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i._sendRequest("signAllTransactions",{messages:t.map((function(e){return A().encode(e.serializeMessage())}))});case 2:return n=e.sent,r=n.signatures.map((function(e){return A().decode(e)})),a=new v.PublicKey(n.publicKey),t=t.map((function(e,t){return e.addSignature(a,r[t]),e})),e.abrupt("return",t);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),function(e){return"object"==typeof e&&null!==e}(o=e)&&function(e){return"function"==typeof e}(o.postMessage))a._injectedProvider=e;else{if(!function(e){return"string"==typeof e}(e))throw new Error("provider parameter must be an injected provider or a URL string.");a._providerUrl=new URL(e),a._providerUrl.hash=new URLSearchParams({origin:window.location.origin,network:r}).toString()}return a._network=r,a._publicKey=null,a._autoApprove=!1,a._popup=null,a._handlerAdded=!1,a._nextRequestId=1,a._responsePromises=new Map,a}return(0,p.Z)(n,[{key:"publicKey",get:function(){return this._publicKey}},{key:"connected",get:function(){return null!==this._publicKey}},{key:"autoApprove",get:function(){return this._autoApprove}}]),n}(i()),x=w,_=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},I=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),a=r.next();!a.done;a=r.next()){var i=a.value;i.parentElement&&i.remove()}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},r._injectElement=function(){r._removeElement(),r._removeDanglingElements();var e="".concat(t.IFRAME_URL,"?cluster=").concat(encodeURIComponent(r._network),"&origin=").concat(encodeURIComponent(window.location.origin),"&version=1"),n=r._getPreferredAdapter();n&&(e+="&adapter=".concat(encodeURIComponent(n))),r._provider&&(e+="&provider=".concat(encodeURIComponent(r._provider))),r._element=document.createElement("div"),r._element.className="solflare-wallet-adapter-iframe",r._element.innerHTML="\n \n "),document.body.appendChild(r._element),r._iframe=r._element.querySelector("iframe"),window.fromFlutter=r._handleMobileMessage,r._flutterHandlerInterval=setInterval((function(){window.fromFlutter=r._handleMobileMessage}),100),window.addEventListener("message",r._handleMessage,!1)},r._collapseIframe=function(){r._iframe&&(r._iframe.style.top="",r._iframe.style.right="",r._iframe.style.height="2px",r._iframe.style.width="2px")},r._expandIframe=function(){r._iframe&&(r._iframe.style.top="0px",r._iframe.style.bottom="0px",r._iframe.style.left="0px",r._iframe.style.right="0px",r._iframe.style.width="100%",r._iframe.style.height="100%")},r._getPreferredAdapter=function(){return localStorage&&localStorage.getItem("solflarePreferredWalletAdapter")||null},r._setPreferredAdapter=function(e){localStorage&&e&&localStorage.setItem("solflarePreferredWalletAdapter",e)},r._clearPreferredAdapter=function(){localStorage&&localStorage.removeItem("solflarePreferredWalletAdapter")},r._webConnected=function(){r._connectHandler&&(r._connectHandler.resolve(),r._connectHandler=null),r.emit("connect",r.publicKey)},r._webDisconnected=function(){r._connectHandler&&(r._connectHandler.reject(),r._connectHandler=null),r._disconnected(),r.emit("disconnect")},r._disconnected=function(){window.removeEventListener("message",r._handleMessage,!1),r._removeElement(),r._clearPreferredAdapter(),r._adapterInstance=null},r._handleMobileMessage=function(e){var t,n;null===(n=null===(t=r._iframe)||void 0===t?void 0:t.contentWindow)||void 0===n||n.postMessage({channel:"solflareMobileToIframe",data:e},"*")},(null==n?void 0:n.network)&&(r._network=null==n?void 0:n.network),(null==n?void 0:n.provider)&&(r._provider=null==n?void 0:n.provider),r}return D(t,e),Object.defineProperty(t.prototype,"publicKey",{get:function(){var e;return(null===(e=this._adapterInstance)||void 0===e?void 0:e.publicKey)||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConnected",{get:function(){var e;return!!(null===(e=this._adapterInstance)||void 0===e?void 0:e.connected)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"connected",{get:function(){return this.isConnected},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoApprove",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.connect=function(){return j(this,void 0,void 0,(function(){var e=this;return U(this,(function(t){switch(t.label){case 0:return this.connected?[2]:(this._injectElement(),[4,new Promise((function(t,n){e._connectHandler={resolve:t,reject:n}}))]);case 1:return t.sent(),[2]}}))}))},t.prototype.disconnect=function(){return j(this,void 0,void 0,(function(){return U(this,(function(e){switch(e.label){case 0:return this._adapterInstance?[4,this._adapterInstance.disconnect()]:[2];case 1:return e.sent(),this._disconnected(),this.emit("disconnect"),[2]}}))}))},t.prototype.signTransaction=function(e){return j(this,void 0,void 0,(function(){var t,n,r,a,i=this;return U(this,(function(o){switch(o.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return t=N(e)?e.serializeMessage():e.message.serialize(),[4,this._adapterInstance.signTransaction(t)];case 1:return n=o.sent(),N(e)?e.addSignature(this.publicKey,R.from(n)):(r=e.message.staticAccountKeys.slice(0,e.message.header.numRequiredSignatures),(a=r.findIndex((function(e){return e.equals(i.publicKey)})))>=0&&(e.signatures[a]=n)),[2,e]}}))}))},t.prototype.signAllTransactions=function(e){return j(this,void 0,void 0,(function(){var t,n,r,a,i,o,s=this;return U(this,(function(c){switch(c.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return t=e.map((function(e){return N(e)?e.serializeMessage():e.message.serialize()})),[4,this._adapterInstance.signAllTransactions(t)];case 1:for(n=c.sent(),r=0;r=0&&(a.signatures[o]=n[r]));return[2,e]}}))}))},t.prototype.signMessage=function(e,t){return void 0===t&&(t="utf8"),j(this,void 0,void 0,(function(){return U(this,(function(n){switch(n.label){case 0:if(!this.connected)throw new Error("Wallet not connected");return[4,this._adapterInstance.signMessage(e,t)];case 1:return[2,n.sent()]}}))}))},t.prototype.sign=function(e,t){return void 0===t&&(t="utf8"),j(this,void 0,void 0,(function(){return U(this,(function(n){switch(n.label){case 0:return[4,this.signMessage(e,t)];case 1:return[2,n.sent()]}}))}))},t.prototype.detectWallet=function(e){var t;return void 0===e&&(e=10),j(this,void 0,void 0,(function(){return U(this,(function(n){return window.SolflareApp||(null===(t=window.solflare)||void 0===t?void 0:t.isSolflare)?[2,!0]:[2,new Promise((function(t){var n,r;n=setInterval((function(){var e;(window.SolflareApp||(null===(e=window.solflare)||void 0===e?void 0:e.isSolflare))&&(clearInterval(n),clearTimeout(r),t(!0))}),500),r=setTimeout((function(){clearInterval(n),t(!1)}),1e3*e)}))]}))}))},t.IFRAME_URL="https://connect.solflare.com/",t}(i())},86447:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.ModuleAccount=t.BaseAccount=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(23407)),s=n(27213);t.protobufPackage="cosmos.auth.v1beta1";var c={address:"",accountNumber:i.default.UZERO,sequence:i.default.UZERO};t.BaseAccount={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.address&&t.uint32(10).string(e.address),void 0!==e.pubKey&&s.Any.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.accountNumber.isZero()||t.uint32(24).uint64(e.accountNumber),e.sequence.isZero()||t.uint32(32).uint64(e.sequence),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.address=n.string();break;case 2:a.pubKey=s.Any.decode(n,n.uint32());break;case 3:a.accountNumber=n.uint64();break;case 4:a.sequence=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.Any.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=i.default.fromString(e.accountNumber):t.accountNumber=i.default.UZERO,void 0!==e.sequence&&null!==e.sequence?t.sequence=i.default.fromString(e.sequence):t.sequence=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.pubKey&&(t.pubKey=e.pubKey?s.Any.toJSON(e.pubKey):void 0),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||i.default.UZERO).toString()),void 0!==e.sequence&&(t.sequence=(e.sequence||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.Any.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=e.accountNumber:t.accountNumber=i.default.UZERO,void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence=i.default.UZERO,t}};var u={name:"",permissions:""};t.ModuleAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseAccount&&t.BaseAccount.encode(e.baseAccount,n.uint32(10).fork()).ldelim(),""!==e.name&&n.uint32(18).string(e.name);var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.uint32(26).string(s)}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},u);for(i.permissions=[];r.pos>>3){case 1:i.baseAccount=t.BaseAccount.decode(r,r.uint32());break;case 2:i.name=r.string();break;case 3:i.permissions.push(r.string());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},u);if(n.permissions=[],void 0!==e.baseAccount&&null!==e.baseAccount?n.baseAccount=t.BaseAccount.fromJSON(e.baseAccount):n.baseAccount=void 0,void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.permissions&&null!==e.permissions){var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.permissions.push(String(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.baseAccount&&(n.baseAccount=e.baseAccount?t.BaseAccount.toJSON(e.baseAccount):void 0),void 0!==e.name&&(n.name=e.name),e.permissions?n.permissions=e.permissions.map((function(e){return e})):n.permissions=[],n},fromPartial:function(e){var n=Object.assign({},u);if(n.permissions=[],void 0!==e.baseAccount&&null!==e.baseAccount?n.baseAccount=t.BaseAccount.fromPartial(e.baseAccount):n.baseAccount=void 0,void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.permissions&&null!==e.permissions){var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.permissions.push(o)}}catch(e){i.e(e)}finally{i.f()}}return n}};var d={maxMemoCharacters:i.default.UZERO,txSigLimit:i.default.UZERO,txSizeCostPerByte:i.default.UZERO,sigVerifyCostEd25519:i.default.UZERO,sigVerifyCostSecp256k1:i.default.UZERO};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.maxMemoCharacters.isZero()||t.uint32(8).uint64(e.maxMemoCharacters),e.txSigLimit.isZero()||t.uint32(16).uint64(e.txSigLimit),e.txSizeCostPerByte.isZero()||t.uint32(24).uint64(e.txSizeCostPerByte),e.sigVerifyCostEd25519.isZero()||t.uint32(32).uint64(e.sigVerifyCostEd25519),e.sigVerifyCostSecp256k1.isZero()||t.uint32(40).uint64(e.sigVerifyCostSecp256k1),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.maxMemoCharacters=n.uint64();break;case 2:a.txSigLimit=n.uint64();break;case 3:a.txSizeCostPerByte=n.uint64();break;case 4:a.sigVerifyCostEd25519=n.uint64();break;case 5:a.sigVerifyCostSecp256k1=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters?t.maxMemoCharacters=i.default.fromString(e.maxMemoCharacters):t.maxMemoCharacters=i.default.UZERO,void 0!==e.txSigLimit&&null!==e.txSigLimit?t.txSigLimit=i.default.fromString(e.txSigLimit):t.txSigLimit=i.default.UZERO,void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte?t.txSizeCostPerByte=i.default.fromString(e.txSizeCostPerByte):t.txSizeCostPerByte=i.default.UZERO,void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=i.default.fromString(e.sigVerifyCostEd25519):t.sigVerifyCostEd25519=i.default.UZERO,void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=i.default.fromString(e.sigVerifyCostSecp256k1):t.sigVerifyCostSecp256k1=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.maxMemoCharacters&&(t.maxMemoCharacters=(e.maxMemoCharacters||i.default.UZERO).toString()),void 0!==e.txSigLimit&&(t.txSigLimit=(e.txSigLimit||i.default.UZERO).toString()),void 0!==e.txSizeCostPerByte&&(t.txSizeCostPerByte=(e.txSizeCostPerByte||i.default.UZERO).toString()),void 0!==e.sigVerifyCostEd25519&&(t.sigVerifyCostEd25519=(e.sigVerifyCostEd25519||i.default.UZERO).toString()),void 0!==e.sigVerifyCostSecp256k1&&(t.sigVerifyCostSecp256k1=(e.sigVerifyCostSecp256k1||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters?t.maxMemoCharacters=e.maxMemoCharacters:t.maxMemoCharacters=i.default.UZERO,void 0!==e.txSigLimit&&null!==e.txSigLimit?t.txSigLimit=e.txSigLimit:t.txSigLimit=i.default.UZERO,void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte?t.txSizeCostPerByte=e.txSizeCostPerByte:t.txSizeCostPerByte=i.default.UZERO,void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=e.sigVerifyCostEd25519:t.sigVerifyCostEd25519=i.default.UZERO,void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=e.sigVerifyCostSecp256k1:t.sigVerifyCostSecp256k1=i.default.UZERO,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},42137:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SearchTxsResult=t.TxMsgData=t.MsgData=t.SimulationResponse=t.Result=t.GasInfo=t.Attribute=t.StringEvent=t.ABCIMessageLog=t.TxResponse=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(23407)),s=n(27213),c=n(7496);t.protobufPackage="cosmos.base.abci.v1beta1";var u={height:i.default.ZERO,txhash:"",codespace:"",code:0,data:"",rawLog:"",info:"",gasWanted:i.default.ZERO,gasUsed:i.default.ZERO,timestamp:""};t.TxResponse={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.height.isZero()||n.uint32(8).int64(e.height),""!==e.txhash&&n.uint32(18).string(e.txhash),""!==e.codespace&&n.uint32(26).string(e.codespace),0!==e.code&&n.uint32(32).uint32(e.code),""!==e.data&&n.uint32(42).string(e.data),""!==e.rawLog&&n.uint32(50).string(e.rawLog);var a,i=r(e.logs);try{for(i.s();!(a=i.n()).done;){var c=a.value;t.ABCIMessageLog.encode(c,n.uint32(58).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return""!==e.info&&n.uint32(66).string(e.info),e.gasWanted.isZero()||n.uint32(72).int64(e.gasWanted),e.gasUsed.isZero()||n.uint32(80).int64(e.gasUsed),void 0!==e.tx&&s.Any.encode(e.tx,n.uint32(90).fork()).ldelim(),""!==e.timestamp&&n.uint32(98).string(e.timestamp),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},u);for(i.logs=[];r.pos>>3){case 1:i.height=r.int64();break;case 2:i.txhash=r.string();break;case 3:i.codespace=r.string();break;case 4:i.code=r.uint32();break;case 5:i.data=r.string();break;case 6:i.rawLog=r.string();break;case 7:i.logs.push(t.ABCIMessageLog.decode(r,r.uint32()));break;case 8:i.info=r.string();break;case 9:i.gasWanted=r.int64();break;case 10:i.gasUsed=r.int64();break;case 11:i.tx=s.Any.decode(r,r.uint32());break;case 12:i.timestamp=r.string();break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},u);if(n.logs=[],void 0!==e.height&&null!==e.height?n.height=i.default.fromString(e.height):n.height=i.default.ZERO,void 0!==e.txhash&&null!==e.txhash?n.txhash=String(e.txhash):n.txhash="",void 0!==e.codespace&&null!==e.codespace?n.codespace=String(e.codespace):n.codespace="",void 0!==e.code&&null!==e.code?n.code=Number(e.code):n.code=0,void 0!==e.data&&null!==e.data?n.data=String(e.data):n.data="",void 0!==e.rawLog&&null!==e.rawLog?n.rawLog=String(e.rawLog):n.rawLog="",void 0!==e.logs&&null!==e.logs){var a,o=r(e.logs);try{for(o.s();!(a=o.n()).done;){var c=a.value;n.logs.push(t.ABCIMessageLog.fromJSON(c))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=i.default.fromString(e.gasWanted):n.gasWanted=i.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=i.default.fromString(e.gasUsed):n.gasUsed=i.default.ZERO,void 0!==e.tx&&null!==e.tx?n.tx=s.Any.fromJSON(e.tx):n.tx=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=String(e.timestamp):n.timestamp="",n},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=(e.height||i.default.ZERO).toString()),void 0!==e.txhash&&(n.txhash=e.txhash),void 0!==e.codespace&&(n.codespace=e.codespace),void 0!==e.code&&(n.code=e.code),void 0!==e.data&&(n.data=e.data),void 0!==e.rawLog&&(n.rawLog=e.rawLog),e.logs?n.logs=e.logs.map((function(e){return e?t.ABCIMessageLog.toJSON(e):void 0})):n.logs=[],void 0!==e.info&&(n.info=e.info),void 0!==e.gasWanted&&(n.gasWanted=(e.gasWanted||i.default.ZERO).toString()),void 0!==e.gasUsed&&(n.gasUsed=(e.gasUsed||i.default.ZERO).toString()),void 0!==e.tx&&(n.tx=e.tx?s.Any.toJSON(e.tx):void 0),void 0!==e.timestamp&&(n.timestamp=e.timestamp),n},fromPartial:function(e){var n=Object.assign({},u);if(n.logs=[],void 0!==e.height&&null!==e.height?n.height=e.height:n.height=i.default.ZERO,void 0!==e.txhash&&null!==e.txhash?n.txhash=e.txhash:n.txhash="",void 0!==e.codespace&&null!==e.codespace?n.codespace=e.codespace:n.codespace="",void 0!==e.code&&null!==e.code?n.code=e.code:n.code=0,void 0!==e.data&&null!==e.data?n.data=e.data:n.data="",void 0!==e.rawLog&&null!==e.rawLog?n.rawLog=e.rawLog:n.rawLog="",void 0!==e.logs&&null!==e.logs){var a,o=r(e.logs);try{for(o.s();!(a=o.n()).done;){var c=a.value;n.logs.push(t.ABCIMessageLog.fromPartial(c))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.info&&null!==e.info?n.info=e.info:n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=e.gasWanted:n.gasWanted=i.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=e.gasUsed:n.gasUsed=i.default.ZERO,void 0!==e.tx&&null!==e.tx?n.tx=s.Any.fromPartial(e.tx):n.tx=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=e.timestamp:n.timestamp="",n}};var d={msgIndex:0,log:""};t.ABCIMessageLog={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();0!==e.msgIndex&&n.uint32(8).uint32(e.msgIndex),""!==e.log&&n.uint32(18).string(e.log);var a,i=r(e.events);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.StringEvent.encode(s,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);for(i.events=[];r.pos>>3){case 1:i.msgIndex=r.uint32();break;case 2:i.log=r.string();break;case 3:i.events.push(t.StringEvent.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},d);if(n.events=[],void 0!==e.msgIndex&&null!==e.msgIndex?n.msgIndex=Number(e.msgIndex):n.msgIndex=0,void 0!==e.log&&null!==e.log?n.log=String(e.log):n.log="",void 0!==e.events&&null!==e.events){var a,i=r(e.events);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.events.push(t.StringEvent.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.msgIndex&&(n.msgIndex=e.msgIndex),void 0!==e.log&&(n.log=e.log),e.events?n.events=e.events.map((function(e){return e?t.StringEvent.toJSON(e):void 0})):n.events=[],n},fromPartial:function(e){var n=Object.assign({},d);if(n.events=[],void 0!==e.msgIndex&&null!==e.msgIndex?n.msgIndex=e.msgIndex:n.msgIndex=0,void 0!==e.log&&null!==e.log?n.log=e.log:n.log="",void 0!==e.events&&null!==e.events){var a,i=r(e.events);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.events.push(t.StringEvent.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var f={type:""};t.StringEvent={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.type&&n.uint32(10).string(e.type);var a,i=r(e.attributes);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Attribute.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);for(i.attributes=[];r.pos>>3){case 1:i.type=r.string();break;case 2:i.attributes.push(t.Attribute.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},f);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=String(e.type):n.type="",void 0!==e.attributes&&null!==e.attributes){var a,i=r(e.attributes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.attributes.push(t.Attribute.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=e.type),e.attributes?n.attributes=e.attributes.map((function(e){return e?t.Attribute.toJSON(e):void 0})):n.attributes=[],n},fromPartial:function(e){var n=Object.assign({},f);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=e.type:n.type="",void 0!==e.attributes&&null!==e.attributes){var a,i=r(e.attributes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.attributes.push(t.Attribute.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var l={key:"",value:""};t.Attribute={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.key=n.string();break;case 2:a.value=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}};var b={gasWanted:i.default.UZERO,gasUsed:i.default.UZERO};t.GasInfo={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.gasWanted.isZero()||t.uint32(8).uint64(e.gasWanted),e.gasUsed.isZero()||t.uint32(16).uint64(e.gasUsed),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.gasWanted=n.uint64();break;case 2:a.gasUsed=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.gasWanted&&null!==e.gasWanted?t.gasWanted=i.default.fromString(e.gasWanted):t.gasWanted=i.default.UZERO,void 0!==e.gasUsed&&null!==e.gasUsed?t.gasUsed=i.default.fromString(e.gasUsed):t.gasUsed=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.gasWanted&&(t.gasWanted=(e.gasWanted||i.default.UZERO).toString()),void 0!==e.gasUsed&&(t.gasUsed=(e.gasUsed||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.gasWanted&&null!==e.gasWanted?t.gasWanted=e.gasWanted:t.gasWanted=i.default.UZERO,void 0!==e.gasUsed&&null!==e.gasUsed?t.gasUsed=e.gasUsed:t.gasUsed=i.default.UZERO,t}};var p={log:""};t.Result={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();0!==e.data.length&&t.uint32(10).bytes(e.data),""!==e.log&&t.uint32(18).string(e.log);var n,a=r(e.events);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Event.encode(i,t.uint32(26).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.events=[],a.data=new Uint8Array;n.pos>>3){case 1:a.data=n.bytes();break;case 2:a.log=n.string();break;case 3:a.events.push(c.Event.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);if(t.events=[],t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=w(e.data)),void 0!==e.log&&null!==e.log?t.log=String(e.log):t.log="",void 0!==e.events&&null!==e.events){var n,a=r(e.events);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.events.push(c.Event.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=_(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(t.log=e.log),e.events?t.events=e.events.map((function(e){return e?c.Event.toJSON(e):void 0})):t.events=[],t},fromPartial:function(e){var t=Object.assign({},p);if(t.events=[],void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.log&&null!==e.log?t.log=e.log:t.log="",void 0!==e.events&&null!==e.events){var n,a=r(e.events);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.events.push(c.Event.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var h={};t.SimulationResponse={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.gasInfo&&t.GasInfo.encode(e.gasInfo,n.uint32(10).fork()).ldelim(),void 0!==e.result&&t.Result.encode(e.result,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},h);r.pos>>3){case 1:i.gasInfo=t.GasInfo.decode(r,r.uint32());break;case 2:i.result=t.Result.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},h);return void 0!==e.gasInfo&&null!==e.gasInfo?n.gasInfo=t.GasInfo.fromJSON(e.gasInfo):n.gasInfo=void 0,void 0!==e.result&&null!==e.result?n.result=t.Result.fromJSON(e.result):n.result=void 0,n},toJSON:function(e){var n={};return void 0!==e.gasInfo&&(n.gasInfo=e.gasInfo?t.GasInfo.toJSON(e.gasInfo):void 0),void 0!==e.result&&(n.result=e.result?t.Result.toJSON(e.result):void 0),n},fromPartial:function(e){var n=Object.assign({},h);return void 0!==e.gasInfo&&null!==e.gasInfo?n.gasInfo=t.GasInfo.fromPartial(e.gasInfo):n.gasInfo=void 0,void 0!==e.result&&null!==e.result?n.result=t.Result.fromPartial(e.result):n.result=void 0,n}};var y={msgType:""};t.MsgData={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.msgType&&t.uint32(10).string(e.msgType),0!==e.data.length&&t.uint32(18).bytes(e.data),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.data=new Uint8Array;n.pos>>3){case 1:a.msgType=n.string();break;case 2:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return t.data=new Uint8Array,void 0!==e.msgType&&null!==e.msgType?t.msgType=String(e.msgType):t.msgType="",void 0!==e.data&&null!==e.data&&(t.data=w(e.data)),t},toJSON:function(e){var t={};return void 0!==e.msgType&&(t.msgType=e.msgType),void 0!==e.data&&(t.data=_(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.msgType&&null!==e.msgType?t.msgType=e.msgType:t.msgType="",void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var m={};t.TxMsgData={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.data);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.MsgData.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},m);for(i.data=[];r.pos>>3==1?i.data.push(t.MsgData.decode(r,r.uint32())):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},m);if(n.data=[],void 0!==e.data&&null!==e.data){var a,i=r(e.data);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.data.push(t.MsgData.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.data?n.data=e.data.map((function(e){return e?t.MsgData.toJSON(e):void 0})):n.data=[],n},fromPartial:function(e){var n=Object.assign({},m);if(n.data=[],void 0!==e.data&&null!==e.data){var a,i=r(e.data);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.data.push(t.MsgData.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var v={totalCount:i.default.UZERO,count:i.default.UZERO,pageNumber:i.default.UZERO,pageTotal:i.default.UZERO,limit:i.default.UZERO};t.SearchTxsResult={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.totalCount.isZero()||n.uint32(8).uint64(e.totalCount),e.count.isZero()||n.uint32(16).uint64(e.count),e.pageNumber.isZero()||n.uint32(24).uint64(e.pageNumber),e.pageTotal.isZero()||n.uint32(32).uint64(e.pageTotal),e.limit.isZero()||n.uint32(40).uint64(e.limit);var a,i=r(e.txs);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.TxResponse.encode(s,n.uint32(50).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},v);for(i.txs=[];r.pos>>3){case 1:i.totalCount=r.uint64();break;case 2:i.count=r.uint64();break;case 3:i.pageNumber=r.uint64();break;case 4:i.pageTotal=r.uint64();break;case 5:i.limit=r.uint64();break;case 6:i.txs.push(t.TxResponse.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},v);if(n.txs=[],void 0!==e.totalCount&&null!==e.totalCount?n.totalCount=i.default.fromString(e.totalCount):n.totalCount=i.default.UZERO,void 0!==e.count&&null!==e.count?n.count=i.default.fromString(e.count):n.count=i.default.UZERO,void 0!==e.pageNumber&&null!==e.pageNumber?n.pageNumber=i.default.fromString(e.pageNumber):n.pageNumber=i.default.UZERO,void 0!==e.pageTotal&&null!==e.pageTotal?n.pageTotal=i.default.fromString(e.pageTotal):n.pageTotal=i.default.UZERO,void 0!==e.limit&&null!==e.limit?n.limit=i.default.fromString(e.limit):n.limit=i.default.UZERO,void 0!==e.txs&&null!==e.txs){var a,o=r(e.txs);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.txs.push(t.TxResponse.fromJSON(s))}}catch(e){o.e(e)}finally{o.f()}}return n},toJSON:function(e){var n={};return void 0!==e.totalCount&&(n.totalCount=(e.totalCount||i.default.UZERO).toString()),void 0!==e.count&&(n.count=(e.count||i.default.UZERO).toString()),void 0!==e.pageNumber&&(n.pageNumber=(e.pageNumber||i.default.UZERO).toString()),void 0!==e.pageTotal&&(n.pageTotal=(e.pageTotal||i.default.UZERO).toString()),void 0!==e.limit&&(n.limit=(e.limit||i.default.UZERO).toString()),e.txs?n.txs=e.txs.map((function(e){return e?t.TxResponse.toJSON(e):void 0})):n.txs=[],n},fromPartial:function(e){var n=Object.assign({},v);if(n.txs=[],void 0!==e.totalCount&&null!==e.totalCount?n.totalCount=e.totalCount:n.totalCount=i.default.UZERO,void 0!==e.count&&null!==e.count?n.count=e.count:n.count=i.default.UZERO,void 0!==e.pageNumber&&null!==e.pageNumber?n.pageNumber=e.pageNumber:n.pageNumber=i.default.UZERO,void 0!==e.pageTotal&&null!==e.pageTotal?n.pageTotal=e.pageTotal:n.pageTotal=i.default.UZERO,void 0!==e.limit&&null!==e.limit?n.limit=e.limit:n.limit=i.default.UZERO,void 0!==e.txs&&null!==e.txs){var a,o=r(e.txs);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.txs.push(t.TxResponse.fromPartial(s))}}catch(e){o.e(e)}finally{o.f()}}return n}};var g=function(){if(void 0!==g)return g;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),A=g.atob||function(e){return g.Buffer.from(e,"base64").toString("binary")};function w(e){for(var t=A(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),e.offset.isZero()||t.uint32(16).uint64(e.offset),e.limit.isZero()||t.uint32(24).uint64(e.limit),!0===e.countTotal&&t.uint32(32).bool(e.countTotal),!0===e.reverse&&t.uint32(40).bool(e.reverse),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.key=new Uint8Array;n.pos>>3){case 1:a.key=n.bytes();break;case 2:a.offset=n.uint64();break;case 3:a.limit=n.uint64();break;case 4:a.countTotal=n.bool();break;case 5:a.reverse=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);return t.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=f(e.key)),void 0!==e.offset&&null!==e.offset?t.offset=i.default.fromString(e.offset):t.offset=i.default.UZERO,void 0!==e.limit&&null!==e.limit?t.limit=i.default.fromString(e.limit):t.limit=i.default.UZERO,void 0!==e.countTotal&&null!==e.countTotal?t.countTotal=Boolean(e.countTotal):t.countTotal=!1,void 0!==e.reverse&&null!==e.reverse?t.reverse=Boolean(e.reverse):t.reverse=!1,t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=b(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.offset&&(t.offset=(e.offset||i.default.UZERO).toString()),void 0!==e.limit&&(t.limit=(e.limit||i.default.UZERO).toString()),void 0!==e.countTotal&&(t.countTotal=e.countTotal),void 0!==e.reverse&&(t.reverse=e.reverse),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.offset&&null!==e.offset?t.offset=e.offset:t.offset=i.default.UZERO,void 0!==e.limit&&null!==e.limit?t.limit=e.limit:t.limit=i.default.UZERO,void 0!==e.countTotal&&null!==e.countTotal?t.countTotal=e.countTotal:t.countTotal=!1,void 0!==e.reverse&&null!==e.reverse?t.reverse=e.reverse:t.reverse=!1,t}};var c={total:i.default.UZERO};t.PageResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.nextKey.length&&t.uint32(10).bytes(e.nextKey),e.total.isZero()||t.uint32(16).uint64(e.total),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.nextKey=new Uint8Array;n.pos>>3){case 1:a.nextKey=n.bytes();break;case 2:a.total=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return t.nextKey=new Uint8Array,void 0!==e.nextKey&&null!==e.nextKey&&(t.nextKey=f(e.nextKey)),void 0!==e.total&&null!==e.total?t.total=i.default.fromString(e.total):t.total=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.nextKey&&(t.nextKey=b(void 0!==e.nextKey?e.nextKey:new Uint8Array)),void 0!==e.total&&(t.total=(e.total||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.nextKey&&null!==e.nextKey?t.nextKey=e.nextKey:t.nextKey=new Uint8Array,void 0!==e.total&&null!==e.total?t.total=e.total:t.total=i.default.UZERO,t}};var u=function(){if(void 0!==u)return u;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),d=u.atob||function(e){return u.Buffer.from(e,"base64").toString("binary")};function f(e){for(var t=d(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t}};var s={denom:"",amount:""};t.DecCoin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t}};var c={int:""};t.IntProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.int&&t.uint32(10).string(e.int),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3==1?a.int=n.string():n.skipType(7&o)}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.int&&null!==e.int?t.int=String(e.int):t.int="",t},toJSON:function(e){var t={};return void 0!==e.int&&(t.int=e.int),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.int&&null!==e.int?t.int=e.int:t.int="",t}};var u={dec:""};t.DecProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.dec&&t.uint32(10).string(e.dec),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3==1?a.dec=n.string():n.skipType(7&o)}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.dec&&null!==e.dec?t.dec=String(e.dec):t.dec="",t},toJSON:function(e){var t={};return void 0!==e.dec&&(t.dec=e.dec),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.dec&&null!==e.dec?t.dec=e.dec:t.dec="",t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},15232:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompactBitArray=t.MultiSignature=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(23407));t.protobufPackage="cosmos.crypto.multisig.v1beta1";var s={};t.MultiSignature={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.signatures);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.signatures=[];n.pos>>3==1?a.signatures.push(n.bytes()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},s);if(t.signatures=[],void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(f(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.signatures?t.signatures=e.signatures.map((function(e){return b(void 0!==e?e:new Uint8Array)})):t.signatures=[],t},fromPartial:function(e){var t=Object.assign({},s);if(t.signatures=[],void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var c={extraBitsStored:0};t.CompactBitArray={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.extraBitsStored&&t.uint32(8).uint32(e.extraBitsStored),0!==e.elems.length&&t.uint32(18).bytes(e.elems),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.elems=new Uint8Array;n.pos>>3){case 1:a.extraBitsStored=n.uint32();break;case 2:a.elems=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return t.elems=new Uint8Array,void 0!==e.extraBitsStored&&null!==e.extraBitsStored?t.extraBitsStored=Number(e.extraBitsStored):t.extraBitsStored=0,void 0!==e.elems&&null!==e.elems&&(t.elems=f(e.elems)),t},toJSON:function(e){var t={};return void 0!==e.extraBitsStored&&(t.extraBitsStored=e.extraBitsStored),void 0!==e.elems&&(t.elems=b(void 0!==e.elems?e.elems:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.extraBitsStored&&null!==e.extraBitsStored?t.extraBitsStored=e.extraBitsStored:t.extraBitsStored=0,void 0!==e.elems&&null!==e.elems?t.elems=e.elems:t.elems=new Uint8Array,t}};var u=function(){if(void 0!==u)return u;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),d=u.atob||function(e){return u.Buffer.from(e,"base64").toString("binary")};function f(e){for(var t=d(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.withdrawAddress&&t.uint32(18).string(e.withdrawAddress),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.withdrawAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.withdrawAddress&&null!==e.withdrawAddress?t.withdrawAddress=String(e.withdrawAddress):t.withdrawAddress="",t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.withdrawAddress&&(t.withdrawAddress=e.withdrawAddress),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.withdrawAddress&&null!==e.withdrawAddress?t.withdrawAddress=e.withdrawAddress:t.withdrawAddress="",t}};var f={};t.MsgSetWithdrawAddressResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",t}};var b={};t.MsgWithdrawDelegatorRewardResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.validatorAddress&&t.uint32(10).string(e.validatorAddress),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3==1?a.validatorAddress=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",t},toJSON:function(e){var t={};return void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",t}};var h={};t.MsgWithdrawValidatorCommissionResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create(),r=i(e.amount);try{for(r.s();!(t=r.n()).done;){var a=t.value;u.Coin.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return""!==e.depositor&&n.uint32(18).string(e.depositor),n},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.amount=[];n.pos>>3){case 1:a.amount.push(u.Coin.decode(n,n.uint32()));break;case 2:a.depositor=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(u.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.depositor&&null!==e.depositor?t.depositor=String(e.depositor):t.depositor="",t},toJSON:function(e){var t={};return e.amount?t.amount=e.amount.map((function(e){return e?u.Coin.toJSON(e):void 0})):t.amount=[],void 0!==e.depositor&&(t.depositor=e.depositor),t},fromPartial:function(e){var t=Object.assign({},y);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(u.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.depositor&&null!==e.depositor?t.depositor=e.depositor:t.depositor="",t}};var m={};t.MsgFundCommunityPoolResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.option&&t.uint32(8).int32(e.option),""!==e.weight&&t.uint32(18).string(e.weight),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3){case 1:a.option=n.int32();break;case 2:a.weight=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.option&&null!==e.option?t.option=b(e.option):t.option=0,void 0!==e.weight&&null!==e.weight?t.weight=String(e.weight):t.weight="",t},toJSON:function(e){var t={};return void 0!==e.option&&(t.option=p(e.option)),void 0!==e.weight&&(t.weight=e.weight),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.option&&null!==e.option?t.option=e.option:t.option=0,void 0!==e.weight&&null!==e.weight?t.weight=e.weight:t.weight="",t}};var v={title:"",description:""};t.TextProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",t}};var g={proposalId:s.default.UZERO,depositor:""};t.Deposit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.proposalId.isZero()||t.uint32(8).uint64(e.proposalId),""!==e.depositor&&t.uint32(18).string(e.depositor);var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;l.Coin.encode(i,t.uint32(26).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);for(a.amount=[];n.pos>>3){case 1:a.proposalId=n.uint64();break;case 2:a.depositor=n.string();break;case 3:a.amount.push(l.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},g);if(t.amount=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=s.default.fromString(e.proposalId):t.proposalId=s.default.UZERO,void 0!==e.depositor&&null!==e.depositor?t.depositor=String(e.depositor):t.depositor="",void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.amount.push(l.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.depositor&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map((function(e){return e?l.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t=Object.assign({},g);if(t.amount=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=e.proposalId:t.proposalId=s.default.UZERO,void 0!==e.depositor&&null!==e.depositor?t.depositor=e.depositor:t.depositor="",void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.amount.push(l.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var A={proposalId:s.default.UZERO,status:0};t.Proposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.proposalId.isZero()||n.uint32(8).uint64(e.proposalId),void 0!==e.content&&u.Any.encode(e.content,n.uint32(18).fork()).ldelim(),0!==e.status&&n.uint32(24).int32(e.status),void 0!==e.finalTallyResult&&t.TallyResult.encode(e.finalTallyResult,n.uint32(34).fork()).ldelim(),void 0!==e.submitTime&&f.Timestamp.encode(P(e.submitTime),n.uint32(42).fork()).ldelim(),void 0!==e.depositEndTime&&f.Timestamp.encode(P(e.depositEndTime),n.uint32(50).fork()).ldelim();var a,i=r(e.totalDeposit);try{for(i.s();!(a=i.n()).done;){var o=a.value;l.Coin.encode(o,n.uint32(58).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return void 0!==e.votingStartTime&&f.Timestamp.encode(P(e.votingStartTime),n.uint32(66).fork()).ldelim(),void 0!==e.votingEndTime&&f.Timestamp.encode(P(e.votingEndTime),n.uint32(74).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},A);for(i.totalDeposit=[];r.pos>>3){case 1:i.proposalId=r.uint64();break;case 2:i.content=u.Any.decode(r,r.uint32());break;case 3:i.status=r.int32();break;case 4:i.finalTallyResult=t.TallyResult.decode(r,r.uint32());break;case 5:i.submitTime=M(f.Timestamp.decode(r,r.uint32()));break;case 6:i.depositEndTime=M(f.Timestamp.decode(r,r.uint32()));break;case 7:i.totalDeposit.push(l.Coin.decode(r,r.uint32()));break;case 8:i.votingStartTime=M(f.Timestamp.decode(r,r.uint32()));break;case 9:i.votingEndTime=M(f.Timestamp.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},A);if(n.totalDeposit=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=s.default.fromString(e.proposalId):n.proposalId=s.default.UZERO,void 0!==e.content&&null!==e.content?n.content=u.Any.fromJSON(e.content):n.content=void 0,void 0!==e.status&&null!==e.status?n.status=h(e.status):n.status=0,void 0!==e.finalTallyResult&&null!==e.finalTallyResult?n.finalTallyResult=t.TallyResult.fromJSON(e.finalTallyResult):n.finalTallyResult=void 0,void 0!==e.submitTime&&null!==e.submitTime?n.submitTime=B(e.submitTime):n.submitTime=void 0,void 0!==e.depositEndTime&&null!==e.depositEndTime?n.depositEndTime=B(e.depositEndTime):n.depositEndTime=void 0,void 0!==e.totalDeposit&&null!==e.totalDeposit){var a,i=r(e.totalDeposit);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.totalDeposit.push(l.Coin.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.votingStartTime&&null!==e.votingStartTime?n.votingStartTime=B(e.votingStartTime):n.votingStartTime=void 0,void 0!==e.votingEndTime&&null!==e.votingEndTime?n.votingEndTime=B(e.votingEndTime):n.votingEndTime=void 0,n},toJSON:function(e){var n={};return void 0!==e.proposalId&&(n.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.content&&(n.content=e.content?u.Any.toJSON(e.content):void 0),void 0!==e.status&&(n.status=y(e.status)),void 0!==e.finalTallyResult&&(n.finalTallyResult=e.finalTallyResult?t.TallyResult.toJSON(e.finalTallyResult):void 0),void 0!==e.submitTime&&(n.submitTime=e.submitTime.toISOString()),void 0!==e.depositEndTime&&(n.depositEndTime=e.depositEndTime.toISOString()),e.totalDeposit?n.totalDeposit=e.totalDeposit.map((function(e){return e?l.Coin.toJSON(e):void 0})):n.totalDeposit=[],void 0!==e.votingStartTime&&(n.votingStartTime=e.votingStartTime.toISOString()),void 0!==e.votingEndTime&&(n.votingEndTime=e.votingEndTime.toISOString()),n},fromPartial:function(e){var n=Object.assign({},A);if(n.totalDeposit=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=e.proposalId:n.proposalId=s.default.UZERO,void 0!==e.content&&null!==e.content?n.content=u.Any.fromPartial(e.content):n.content=void 0,void 0!==e.status&&null!==e.status?n.status=e.status:n.status=0,void 0!==e.finalTallyResult&&null!==e.finalTallyResult?n.finalTallyResult=t.TallyResult.fromPartial(e.finalTallyResult):n.finalTallyResult=void 0,void 0!==e.submitTime&&null!==e.submitTime?n.submitTime=e.submitTime:n.submitTime=void 0,void 0!==e.depositEndTime&&null!==e.depositEndTime?n.depositEndTime=e.depositEndTime:n.depositEndTime=void 0,void 0!==e.totalDeposit&&null!==e.totalDeposit){var a,i=r(e.totalDeposit);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.totalDeposit.push(l.Coin.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.votingStartTime&&null!==e.votingStartTime?n.votingStartTime=e.votingStartTime:n.votingStartTime=void 0,void 0!==e.votingEndTime&&null!==e.votingEndTime?n.votingEndTime=e.votingEndTime:n.votingEndTime=void 0,n}};var w={yes:"",abstain:"",no:"",noWithVeto:""};t.TallyResult={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.yes&&t.uint32(10).string(e.yes),""!==e.abstain&&t.uint32(18).string(e.abstain),""!==e.no&&t.uint32(26).string(e.no),""!==e.noWithVeto&&t.uint32(34).string(e.noWithVeto),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos>>3){case 1:a.yes=n.string();break;case 2:a.abstain=n.string();break;case 3:a.no=n.string();break;case 4:a.noWithVeto=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},w);return void 0!==e.yes&&null!==e.yes?t.yes=String(e.yes):t.yes="",void 0!==e.abstain&&null!==e.abstain?t.abstain=String(e.abstain):t.abstain="",void 0!==e.no&&null!==e.no?t.no=String(e.no):t.no="",void 0!==e.noWithVeto&&null!==e.noWithVeto?t.noWithVeto=String(e.noWithVeto):t.noWithVeto="",t},toJSON:function(e){var t={};return void 0!==e.yes&&(t.yes=e.yes),void 0!==e.abstain&&(t.abstain=e.abstain),void 0!==e.no&&(t.no=e.no),void 0!==e.noWithVeto&&(t.noWithVeto=e.noWithVeto),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.yes&&null!==e.yes?t.yes=e.yes:t.yes="",void 0!==e.abstain&&null!==e.abstain?t.abstain=e.abstain:t.abstain="",void 0!==e.no&&null!==e.no?t.no=e.no:t.no="",void 0!==e.noWithVeto&&null!==e.noWithVeto?t.noWithVeto=e.noWithVeto:t.noWithVeto="",t}};var x={proposalId:s.default.UZERO,voter:"",option:0};t.Vote={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.proposalId.isZero()||n.uint32(8).uint64(e.proposalId),""!==e.voter&&n.uint32(18).string(e.voter),0!==e.option&&n.uint32(24).int32(e.option);var a,i=r(e.options);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.WeightedVoteOption.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},x);for(i.options=[];r.pos>>3){case 1:i.proposalId=r.uint64();break;case 2:i.voter=r.string();break;case 3:i.option=r.int32();break;case 4:i.options.push(t.WeightedVoteOption.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},x);if(n.options=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=s.default.fromString(e.proposalId):n.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?n.voter=String(e.voter):n.voter="",void 0!==e.option&&null!==e.option?n.option=b(e.option):n.option=0,void 0!==e.options&&null!==e.options){var a,i=r(e.options);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.options.push(t.WeightedVoteOption.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.proposalId&&(n.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.voter&&(n.voter=e.voter),void 0!==e.option&&(n.option=p(e.option)),e.options?n.options=e.options.map((function(e){return e?t.WeightedVoteOption.toJSON(e):void 0})):n.options=[],n},fromPartial:function(e){var n=Object.assign({},x);if(n.options=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=e.proposalId:n.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?n.voter=e.voter:n.voter="",void 0!==e.option&&null!==e.option?n.option=e.option:n.option=0,void 0!==e.options&&null!==e.options){var a,i=r(e.options);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.options.push(t.WeightedVoteOption.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var _={};t.DepositParams={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create(),a=r(e.minDeposit);try{for(a.s();!(t=a.n()).done;){var i=t.value;l.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return void 0!==e.maxDepositPeriod&&d.Duration.encode(e.maxDepositPeriod,n.uint32(18).fork()).ldelim(),n},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);for(a.minDeposit=[];n.pos>>3){case 1:a.minDeposit.push(l.Coin.decode(n,n.uint32()));break;case 2:a.maxDepositPeriod=d.Duration.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},_);if(t.minDeposit=[],void 0!==e.minDeposit&&null!==e.minDeposit){var n,a=r(e.minDeposit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.minDeposit.push(l.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.maxDepositPeriod&&null!==e.maxDepositPeriod?t.maxDepositPeriod=d.Duration.fromJSON(e.maxDepositPeriod):t.maxDepositPeriod=void 0,t},toJSON:function(e){var t={};return e.minDeposit?t.minDeposit=e.minDeposit.map((function(e){return e?l.Coin.toJSON(e):void 0})):t.minDeposit=[],void 0!==e.maxDepositPeriod&&(t.maxDepositPeriod=e.maxDepositPeriod?d.Duration.toJSON(e.maxDepositPeriod):void 0),t},fromPartial:function(e){var t=Object.assign({},_);if(t.minDeposit=[],void 0!==e.minDeposit&&null!==e.minDeposit){var n,a=r(e.minDeposit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.minDeposit.push(l.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.maxDepositPeriod&&null!==e.maxDepositPeriod?t.maxDepositPeriod=d.Duration.fromPartial(e.maxDepositPeriod):t.maxDepositPeriod=void 0,t}};var k={};t.VotingParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.votingPeriod&&d.Duration.encode(e.votingPeriod,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);n.pos>>3==1?a.votingPeriod=d.Duration.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},k);return void 0!==e.votingPeriod&&null!==e.votingPeriod?t.votingPeriod=d.Duration.fromJSON(e.votingPeriod):t.votingPeriod=void 0,t},toJSON:function(e){var t={};return void 0!==e.votingPeriod&&(t.votingPeriod=e.votingPeriod?d.Duration.toJSON(e.votingPeriod):void 0),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.votingPeriod&&null!==e.votingPeriod?t.votingPeriod=d.Duration.fromPartial(e.votingPeriod):t.votingPeriod=void 0,t}};var I={};t.TallyParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.quorum.length&&t.uint32(10).bytes(e.quorum),0!==e.threshold.length&&t.uint32(18).bytes(e.threshold),0!==e.vetoThreshold.length&&t.uint32(26).bytes(e.vetoThreshold),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},I);for(a.quorum=new Uint8Array,a.threshold=new Uint8Array,a.vetoThreshold=new Uint8Array;n.pos>>3){case 1:a.quorum=n.bytes();break;case 2:a.threshold=n.bytes();break;case 3:a.vetoThreshold=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},I);return t.quorum=new Uint8Array,t.threshold=new Uint8Array,t.vetoThreshold=new Uint8Array,void 0!==e.quorum&&null!==e.quorum&&(t.quorum=C(e.quorum)),void 0!==e.threshold&&null!==e.threshold&&(t.threshold=C(e.threshold)),void 0!==e.vetoThreshold&&null!==e.vetoThreshold&&(t.vetoThreshold=C(e.vetoThreshold)),t},toJSON:function(e){var t={};return void 0!==e.quorum&&(t.quorum=O(void 0!==e.quorum?e.quorum:new Uint8Array)),void 0!==e.threshold&&(t.threshold=O(void 0!==e.threshold?e.threshold:new Uint8Array)),void 0!==e.vetoThreshold&&(t.vetoThreshold=O(void 0!==e.vetoThreshold?e.vetoThreshold:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},I);return void 0!==e.quorum&&null!==e.quorum?t.quorum=e.quorum:t.quorum=new Uint8Array,void 0!==e.threshold&&null!==e.threshold?t.threshold=e.threshold:t.threshold=new Uint8Array,void 0!==e.vetoThreshold&&null!==e.vetoThreshold?t.vetoThreshold=e.vetoThreshold:t.vetoThreshold=new Uint8Array,t}};var S=function(){if(void 0!==S)return S;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),E=S.atob||function(e){return S.Buffer.from(e,"base64").toString("binary")};function C(e){for(var t=E(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&n.uint32(10).string(e.title),""!==e.description&&n.uint32(18).string(e.description);var a,i=r(e.changes);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.ParamChange.encode(s,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},s);for(i.changes=[];r.pos>>3){case 1:i.title=r.string();break;case 2:i.description=r.string();break;case 3:i.changes.push(t.ParamChange.decode(r,r.uint32()));break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},s);if(n.changes=[],void 0!==e.title&&null!==e.title?n.title=String(e.title):n.title="",void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.changes&&null!==e.changes){var a,i=r(e.changes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.changes.push(t.ParamChange.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.description&&(n.description=e.description),e.changes?n.changes=e.changes.map((function(e){return e?t.ParamChange.toJSON(e):void 0})):n.changes=[],n},fromPartial:function(e){var n=Object.assign({},s);if(n.changes=[],void 0!==e.title&&null!==e.title?n.title=e.title:n.title="",void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.changes&&null!==e.changes){var a,i=r(e.changes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.changes.push(t.ParamChange.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var c={subspace:"",key:"",value:""};t.ParamChange={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.subspace&&t.uint32(10).string(e.subspace),""!==e.key&&t.uint32(18).string(e.key),""!==e.value&&t.uint32(26).string(e.value),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.subspace=n.string();break;case 2:a.key=n.string();break;case 3:a.value=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.subspace&&null!==e.subspace?t.subspace=String(e.subspace):t.subspace="",void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON:function(e){var t={};return void 0!==e.subspace&&(t.subspace=e.subspace),void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.subspace&&null!==e.subspace?t.subspace=e.subspace:t.subspace="",void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},25217:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureDescriptor_Data_Multi=t.SignatureDescriptor_Data_Single=t.SignatureDescriptor_Data=t.SignatureDescriptor=t.SignatureDescriptors=t.signModeToJSON=t.signModeFromJSON=t.SignMode=t.protobufPackage=void 0;var i,o=a(n(24141)),s=a(n(23407)),c=n(27213),u=n(15232);function d(e){switch(e){case 0:case"SIGN_MODE_UNSPECIFIED":return i.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return i.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return i.SIGN_MODE_TEXTUAL;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return i.SIGN_MODE_LEGACY_AMINO_JSON;default:return i.UNRECOGNIZED}}function f(e){switch(e){case i.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case i.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case i.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case i.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";default:return"UNKNOWN"}}t.protobufPackage="cosmos.tx.signing.v1beta1",function(e){e[e.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",e[e.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",e[e.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",e[e.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=t.SignMode||(t.SignMode={})),t.signModeFromJSON=d,t.signModeToJSON=f;var l={};t.SignatureDescriptors={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create(),i=r(e.signatures);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.SignatureDescriptor.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},l);for(i.signatures=[];r.pos>>3==1?i.signatures.push(t.SignatureDescriptor.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},l);if(n.signatures=[],void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.signatures?n.signatures=e.signatures.map((function(e){return e?t.SignatureDescriptor.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},l);if(n.signatures=[],void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var b={sequence:o.default.UZERO};t.SignatureDescriptor={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.publicKey&&c.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),void 0!==e.data&&t.SignatureDescriptor_Data.encode(e.data,n.uint32(18).fork()).ldelim(),e.sequence.isZero()||n.uint32(24).uint64(e.sequence),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);r.pos>>3){case 1:i.publicKey=c.Any.decode(r,r.uint32());break;case 2:i.data=t.SignatureDescriptor_Data.decode(r,r.uint32());break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},b);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=c.Any.fromJSON(e.publicKey):n.publicKey=void 0,void 0!==e.data&&null!==e.data?n.data=t.SignatureDescriptor_Data.fromJSON(e.data):n.data=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=o.default.fromString(e.sequence):n.sequence=o.default.UZERO,n},toJSON:function(e){var n={};return void 0!==e.publicKey&&(n.publicKey=e.publicKey?c.Any.toJSON(e.publicKey):void 0),void 0!==e.data&&(n.data=e.data?t.SignatureDescriptor_Data.toJSON(e.data):void 0),void 0!==e.sequence&&(n.sequence=(e.sequence||o.default.UZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},b);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=c.Any.fromPartial(e.publicKey):n.publicKey=void 0,void 0!==e.data&&null!==e.data?n.data=t.SignatureDescriptor_Data.fromPartial(e.data):n.data=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=e.sequence:n.sequence=o.default.UZERO,n}};var p={};t.SignatureDescriptor_Data={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.single&&t.SignatureDescriptor_Data_Single.encode(e.single,n.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.SignatureDescriptor_Data_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);r.pos>>3){case 1:i.single=t.SignatureDescriptor_Data_Single.decode(r,r.uint32());break;case 2:i.multi=t.SignatureDescriptor_Data_Multi.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},p);return void 0!==e.single&&null!==e.single?n.single=t.SignatureDescriptor_Data_Single.fromJSON(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.SignatureDescriptor_Data_Multi.fromJSON(e.multi):n.multi=void 0,n},toJSON:function(e){var n={};return void 0!==e.single&&(n.single=e.single?t.SignatureDescriptor_Data_Single.toJSON(e.single):void 0),void 0!==e.multi&&(n.multi=e.multi?t.SignatureDescriptor_Data_Multi.toJSON(e.multi):void 0),n},fromPartial:function(e){var n=Object.assign({},p);return void 0!==e.single&&null!==e.single?n.single=t.SignatureDescriptor_Data_Single.fromPartial(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.SignatureDescriptor_Data_Multi.fromPartial(e.multi):n.multi=void 0,n}};var h={mode:0};t.SignatureDescriptor_Data_Single={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return 0!==e.mode&&t.uint32(8).int32(e.mode),0!==e.signature.length&&t.uint32(18).bytes(e.signature),t},decode:function(e,t){var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.signature=new Uint8Array;n.pos>>3){case 1:a.mode=n.int32();break;case 2:a.signature=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);return t.signature=new Uint8Array,void 0!==e.mode&&null!==e.mode?t.mode=d(e.mode):t.mode=0,void 0!==e.signature&&null!==e.signature&&(t.signature=function(e){for(var t=v(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();void 0!==e.bitarray&&u.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.SignatureDescriptor_Data.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},y);for(i.signatures=[];r.pos>>3){case 1:i.bitarray=u.CompactBitArray.decode(r,r.uint32());break;case 2:i.signatures.push(t.SignatureDescriptor_Data.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},y);if(n.signatures=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromJSON(e.bitarray):n.bitarray=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor_Data.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.bitarray&&(n.bitarray=e.bitarray?u.CompactBitArray.toJSON(e.bitarray):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return e?t.SignatureDescriptor_Data.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},y);if(n.signatures=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromPartial(e.bitarray):n.bitarray=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor_Data.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var m=function(){if(void 0!==m)return m;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),v=m.atob||function(e){return m.Buffer.from(e,"base64").toString("binary")},g=m.btoa||function(e){return m.Buffer.from(e,"binary").toString("base64")};s.default.util.Long!==o.default&&(s.default.util.Long=o.default,s.default.configure())},17582:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(33482).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceClientImpl=t.GetTxResponse=t.GetTxRequest=t.SimulateResponse=t.SimulateRequest=t.BroadcastTxResponse=t.BroadcastTxRequest=t.GetTxsEventResponse=t.GetTxsEventRequest=t.broadcastModeToJSON=t.broadcastModeFromJSON=t.BroadcastMode=t.orderByToJSON=t.orderByFromJSON=t.OrderBy=t.protobufPackage=void 0;var s,c,u=o(n(24141)),d=o(n(23407)),f=n(37715),l=n(42137),b=n(85133);function p(e){switch(e){case 0:case"ORDER_BY_UNSPECIFIED":return s.ORDER_BY_UNSPECIFIED;case 1:case"ORDER_BY_ASC":return s.ORDER_BY_ASC;case 2:case"ORDER_BY_DESC":return s.ORDER_BY_DESC;default:return s.UNRECOGNIZED}}function h(e){switch(e){case s.ORDER_BY_UNSPECIFIED:return"ORDER_BY_UNSPECIFIED";case s.ORDER_BY_ASC:return"ORDER_BY_ASC";case s.ORDER_BY_DESC:return"ORDER_BY_DESC";default:return"UNKNOWN"}}function y(e){switch(e){case 0:case"BROADCAST_MODE_UNSPECIFIED":return c.BROADCAST_MODE_UNSPECIFIED;case 1:case"BROADCAST_MODE_BLOCK":return c.BROADCAST_MODE_BLOCK;case 2:case"BROADCAST_MODE_SYNC":return c.BROADCAST_MODE_SYNC;case 3:case"BROADCAST_MODE_ASYNC":return c.BROADCAST_MODE_ASYNC;default:return c.UNRECOGNIZED}}function m(e){switch(e){case c.BROADCAST_MODE_UNSPECIFIED:return"BROADCAST_MODE_UNSPECIFIED";case c.BROADCAST_MODE_BLOCK:return"BROADCAST_MODE_BLOCK";case c.BROADCAST_MODE_SYNC:return"BROADCAST_MODE_SYNC";case c.BROADCAST_MODE_ASYNC:return"BROADCAST_MODE_ASYNC";default:return"UNKNOWN"}}t.protobufPackage="cosmos.tx.v1beta1",function(e){e[e.ORDER_BY_UNSPECIFIED=0]="ORDER_BY_UNSPECIFIED",e[e.ORDER_BY_ASC=1]="ORDER_BY_ASC",e[e.ORDER_BY_DESC=2]="ORDER_BY_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.OrderBy||(t.OrderBy={})),t.orderByFromJSON=p,t.orderByToJSON=h,function(e){e[e.BROADCAST_MODE_UNSPECIFIED=0]="BROADCAST_MODE_UNSPECIFIED",e[e.BROADCAST_MODE_BLOCK=1]="BROADCAST_MODE_BLOCK",e[e.BROADCAST_MODE_SYNC=2]="BROADCAST_MODE_SYNC",e[e.BROADCAST_MODE_ASYNC=3]="BROADCAST_MODE_ASYNC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.BroadcastMode||(t.BroadcastMode={})),t.broadcastModeFromJSON=y,t.broadcastModeToJSON=m;var v={events:"",orderBy:0};t.GetTxsEventRequest={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create(),r=i(e.events);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}return void 0!==e.pagination&&f.PageRequest.encode(e.pagination,n.uint32(18).fork()).ldelim(),0!==e.orderBy&&n.uint32(24).int32(e.orderBy),n},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.events=[];n.pos>>3){case 1:a.events.push(n.string());break;case 2:a.pagination=f.PageRequest.decode(n,n.uint32());break;case 3:a.orderBy=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);if(t.events=[],void 0!==e.events&&null!==e.events){var n,r=i(e.events);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.events.push(String(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=f.PageRequest.fromJSON(e.pagination):t.pagination=void 0,void 0!==e.orderBy&&null!==e.orderBy?t.orderBy=p(e.orderBy):t.orderBy=0,t},toJSON:function(e){var t={};return e.events?t.events=e.events.map((function(e){return e})):t.events=[],void 0!==e.pagination&&(t.pagination=e.pagination?f.PageRequest.toJSON(e.pagination):void 0),void 0!==e.orderBy&&(t.orderBy=h(e.orderBy)),t},fromPartial:function(e){var t=Object.assign({},v);if(t.events=[],void 0!==e.events&&null!==e.events){var n,r=i(e.events);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.events.push(a)}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=f.PageRequest.fromPartial(e.pagination):t.pagination=void 0,void 0!==e.orderBy&&null!==e.orderBy?t.orderBy=e.orderBy:t.orderBy=0,t}};var g={};t.GetTxsEventResponse={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create(),r=i(e.txs);try{for(r.s();!(t=r.n()).done;){var a=t.value;b.Tx.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var o,s=i(e.txResponses);try{for(s.s();!(o=s.n()).done;){var c=o.value;l.TxResponse.encode(c,n.uint32(18).fork()).ldelim()}}catch(e){s.e(e)}finally{s.f()}return void 0!==e.pagination&&f.PageResponse.encode(e.pagination,n.uint32(26).fork()).ldelim(),n},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);for(a.txs=[],a.txResponses=[];n.pos>>3){case 1:a.txs.push(b.Tx.decode(n,n.uint32()));break;case 2:a.txResponses.push(l.TxResponse.decode(n,n.uint32()));break;case 3:a.pagination=f.PageResponse.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},g);if(t.txs=[],t.txResponses=[],void 0!==e.txs&&null!==e.txs){var n,r=i(e.txs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.txs.push(b.Tx.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}if(void 0!==e.txResponses&&null!==e.txResponses){var o,s=i(e.txResponses);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.txResponses.push(l.TxResponse.fromJSON(c))}}catch(e){s.e(e)}finally{s.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=f.PageResponse.fromJSON(e.pagination):t.pagination=void 0,t},toJSON:function(e){var t={};return e.txs?t.txs=e.txs.map((function(e){return e?b.Tx.toJSON(e):void 0})):t.txs=[],e.txResponses?t.txResponses=e.txResponses.map((function(e){return e?l.TxResponse.toJSON(e):void 0})):t.txResponses=[],void 0!==e.pagination&&(t.pagination=e.pagination?f.PageResponse.toJSON(e.pagination):void 0),t},fromPartial:function(e){var t=Object.assign({},g);if(t.txs=[],t.txResponses=[],void 0!==e.txs&&null!==e.txs){var n,r=i(e.txs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.txs.push(b.Tx.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}if(void 0!==e.txResponses&&null!==e.txResponses){var o,s=i(e.txResponses);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.txResponses.push(l.TxResponse.fromPartial(c))}}catch(e){s.e(e)}finally{s.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=f.PageResponse.fromPartial(e.pagination):t.pagination=void 0,t}};var A={mode:0};t.BroadcastTxRequest={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return 0!==e.txBytes.length&&t.uint32(10).bytes(e.txBytes),0!==e.mode&&t.uint32(16).int32(e.mode),t},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.txBytes=new Uint8Array;n.pos>>3){case 1:a.txBytes=n.bytes();break;case 2:a.mode=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return t.txBytes=new Uint8Array,void 0!==e.txBytes&&null!==e.txBytes&&(t.txBytes=T(e.txBytes)),void 0!==e.mode&&null!==e.mode?t.mode=y(e.mode):t.mode=0,t},toJSON:function(e){var t={};return void 0!==e.txBytes&&(t.txBytes=P(void 0!==e.txBytes?e.txBytes:new Uint8Array)),void 0!==e.mode&&(t.mode=m(e.mode)),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.txBytes&&null!==e.txBytes?t.txBytes=e.txBytes:t.txBytes=new Uint8Array,void 0!==e.mode&&null!==e.mode?t.mode=e.mode:t.mode=0,t}};var w={};t.BroadcastTxResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return void 0!==e.txResponse&&l.TxResponse.encode(e.txResponse,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos>>3==1?a.txResponse=l.TxResponse.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},w);return void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=l.TxResponse.fromJSON(e.txResponse):t.txResponse=void 0,t},toJSON:function(e){var t={};return void 0!==e.txResponse&&(t.txResponse=e.txResponse?l.TxResponse.toJSON(e.txResponse):void 0),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=l.TxResponse.fromPartial(e.txResponse):t.txResponse=void 0,t}};var x={};t.SimulateRequest={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return void 0!==e.tx&&b.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),0!==e.txBytes.length&&t.uint32(18).bytes(e.txBytes),t},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},x);for(a.txBytes=new Uint8Array;n.pos>>3){case 1:a.tx=b.Tx.decode(n,n.uint32());break;case 2:a.txBytes=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},x);return t.txBytes=new Uint8Array,void 0!==e.tx&&null!==e.tx?t.tx=b.Tx.fromJSON(e.tx):t.tx=void 0,void 0!==e.txBytes&&null!==e.txBytes&&(t.txBytes=T(e.txBytes)),t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=e.tx?b.Tx.toJSON(e.tx):void 0),void 0!==e.txBytes&&(t.txBytes=P(void 0!==e.txBytes?e.txBytes:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},x);return void 0!==e.tx&&null!==e.tx?t.tx=b.Tx.fromPartial(e.tx):t.tx=void 0,void 0!==e.txBytes&&null!==e.txBytes?t.txBytes=e.txBytes:t.txBytes=new Uint8Array,t}};var _={};t.SimulateResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return void 0!==e.gasInfo&&l.GasInfo.encode(e.gasInfo,t.uint32(10).fork()).ldelim(),void 0!==e.result&&l.Result.encode(e.result,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);n.pos>>3){case 1:a.gasInfo=l.GasInfo.decode(n,n.uint32());break;case 2:a.result=l.Result.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},_);return void 0!==e.gasInfo&&null!==e.gasInfo?t.gasInfo=l.GasInfo.fromJSON(e.gasInfo):t.gasInfo=void 0,void 0!==e.result&&null!==e.result?t.result=l.Result.fromJSON(e.result):t.result=void 0,t},toJSON:function(e){var t={};return void 0!==e.gasInfo&&(t.gasInfo=e.gasInfo?l.GasInfo.toJSON(e.gasInfo):void 0),void 0!==e.result&&(t.result=e.result?l.Result.toJSON(e.result):void 0),t},fromPartial:function(e){var t=Object.assign({},_);return void 0!==e.gasInfo&&null!==e.gasInfo?t.gasInfo=l.GasInfo.fromPartial(e.gasInfo):t.gasInfo=void 0,void 0!==e.result&&null!==e.result?t.result=l.Result.fromPartial(e.result):t.result=void 0,t}};var k={hash:""};t.GetTxRequest={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return""!==e.hash&&t.uint32(10).string(e.hash),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);n.pos>>3==1?a.hash=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},k);return void 0!==e.hash&&null!==e.hash?t.hash=String(e.hash):t.hash="",t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=e.hash),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash="",t}};var I={};t.GetTxResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return void 0!==e.tx&&b.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),void 0!==e.txResponse&&l.TxResponse.encode(e.txResponse,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},I);n.pos>>3){case 1:a.tx=b.Tx.decode(n,n.uint32());break;case 2:a.txResponse=l.TxResponse.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},I);return void 0!==e.tx&&null!==e.tx?t.tx=b.Tx.fromJSON(e.tx):t.tx=void 0,void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=l.TxResponse.fromJSON(e.txResponse):t.txResponse=void 0,t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=e.tx?b.Tx.toJSON(e.tx):void 0),void 0!==e.txResponse&&(t.txResponse=e.txResponse?l.TxResponse.toJSON(e.txResponse):void 0),t},fromPartial:function(e){var t=Object.assign({},I);return void 0!==e.tx&&null!==e.tx?t.tx=b.Tx.fromPartial(e.tx):t.tx=void 0,void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=l.TxResponse.fromPartial(e.txResponse):t.txResponse=void 0,t}};var S=function(){function e(t){r(this,e),this.rpc=t,this.Simulate=this.Simulate.bind(this),this.GetTx=this.GetTx.bind(this),this.BroadcastTx=this.BroadcastTx.bind(this),this.GetTxsEvent=this.GetTxsEvent.bind(this)}return a(e,[{key:"Simulate",value:function(e){var n=t.SimulateRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","Simulate",n).then((function(e){return t.SimulateResponse.decode(new d.default.Reader(e))}))}},{key:"GetTx",value:function(e){var n=t.GetTxRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetTx",n).then((function(e){return t.GetTxResponse.decode(new d.default.Reader(e))}))}},{key:"BroadcastTx",value:function(e){var n=t.BroadcastTxRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","BroadcastTx",n).then((function(e){return t.BroadcastTxResponse.decode(new d.default.Reader(e))}))}},{key:"GetTxsEvent",value:function(e){var n=t.GetTxsEventRequest.encode(e).finish();return this.rpc.request("cosmos.tx.v1beta1.Service","GetTxsEvent",n).then((function(e){return t.GetTxsEventResponse.decode(new d.default.Reader(e))}))}}]),e}();t.ServiceClientImpl=S;var E=function(){if(void 0!==E)return E;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),C=E.atob||function(e){return E.Buffer.from(e,"base64").toString("binary")};function T(e){for(var t=C(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.body&&t.TxBody.encode(e.body,n.uint32(10).fork()).ldelim(),void 0!==e.authInfo&&t.AuthInfo.encode(e.authInfo,n.uint32(18).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.uint32(26).bytes(s)}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);for(i.signatures=[];r.pos>>3){case 1:i.body=t.TxBody.decode(r,r.uint32());break;case 2:i.authInfo=t.AuthInfo.decode(r,r.uint32());break;case 3:i.signatures.push(r.bytes());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},f);if(n.signatures=[],void 0!==e.body&&null!==e.body?n.body=t.TxBody.fromJSON(e.body):n.body=void 0,void 0!==e.authInfo&&null!==e.authInfo?n.authInfo=t.AuthInfo.fromJSON(e.authInfo):n.authInfo=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(_(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.body&&(n.body=e.body?t.TxBody.toJSON(e.body):void 0),void 0!==e.authInfo&&(n.authInfo=e.authInfo?t.AuthInfo.toJSON(e.authInfo):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return I(void 0!==e?e:new Uint8Array)})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},f);if(n.signatures=[],void 0!==e.body&&null!==e.body?n.body=t.TxBody.fromPartial(e.body):n.body=void 0,void 0!==e.authInfo&&null!==e.authInfo?n.authInfo=t.AuthInfo.fromPartial(e.authInfo):n.authInfo=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(o)}}catch(e){i.e(e)}finally{i.f()}}return n}};var l={};t.TxRaw={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes);var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(26).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.signatures=[],a.bodyBytes=new Uint8Array,a.authInfoBytes=new Uint8Array;n.pos>>3){case 1:a.bodyBytes=n.bytes();break;case 2:a.authInfoBytes=n.bytes();break;case 3:a.signatures.push(n.bytes());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.signatures=[],t.bodyBytes=new Uint8Array,t.authInfoBytes=new Uint8Array,void 0!==e.bodyBytes&&null!==e.bodyBytes&&(t.bodyBytes=_(e.bodyBytes)),void 0!==e.authInfoBytes&&null!==e.authInfoBytes&&(t.authInfoBytes=_(e.authInfoBytes)),void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(_(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.bodyBytes&&(t.bodyBytes=I(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=I(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),e.signatures?t.signatures=e.signatures.map((function(e){return I(void 0!==e?e:new Uint8Array)})):t.signatures=[],t},fromPartial:function(e){var t=Object.assign({},l);if(t.signatures=[],void 0!==e.bodyBytes&&null!==e.bodyBytes?t.bodyBytes=e.bodyBytes:t.bodyBytes=new Uint8Array,void 0!==e.authInfoBytes&&null!==e.authInfoBytes?t.authInfoBytes=e.authInfoBytes:t.authInfoBytes=new Uint8Array,void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var b={chainId:"",accountNumber:i.default.UZERO};t.SignDoc={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes),""!==e.chainId&&t.uint32(26).string(e.chainId),e.accountNumber.isZero()||t.uint32(32).uint64(e.accountNumber),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.bodyBytes=new Uint8Array,a.authInfoBytes=new Uint8Array;n.pos>>3){case 1:a.bodyBytes=n.bytes();break;case 2:a.authInfoBytes=n.bytes();break;case 3:a.chainId=n.string();break;case 4:a.accountNumber=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return t.bodyBytes=new Uint8Array,t.authInfoBytes=new Uint8Array,void 0!==e.bodyBytes&&null!==e.bodyBytes&&(t.bodyBytes=_(e.bodyBytes)),void 0!==e.authInfoBytes&&null!==e.authInfoBytes&&(t.authInfoBytes=_(e.authInfoBytes)),void 0!==e.chainId&&null!==e.chainId?t.chainId=String(e.chainId):t.chainId="",void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=i.default.fromString(e.accountNumber):t.accountNumber=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.bodyBytes&&(t.bodyBytes=I(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=I(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.bodyBytes&&null!==e.bodyBytes?t.bodyBytes=e.bodyBytes:t.bodyBytes=new Uint8Array,void 0!==e.authInfoBytes&&null!==e.authInfoBytes?t.authInfoBytes=e.authInfoBytes:t.authInfoBytes=new Uint8Array,void 0!==e.chainId&&null!==e.chainId?t.chainId=e.chainId:t.chainId="",void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=e.accountNumber:t.accountNumber=i.default.UZERO,t}};var p={memo:"",timeoutHeight:i.default.UZERO};t.TxBody={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.messages);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Any.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}""!==e.memo&&n.uint32(18).string(e.memo),e.timeoutHeight.isZero()||n.uint32(24).uint64(e.timeoutHeight);var c,u=r(e.extensionOptions);try{for(u.s();!(c=u.n()).done;){var d=c.value;s.Any.encode(d,n.uint32(8186).fork()).ldelim()}}catch(e){u.e(e)}finally{u.f()}var f,l=r(e.nonCriticalExtensionOptions);try{for(l.s();!(f=l.n()).done;){var b=f.value;s.Any.encode(b,n.uint32(16378).fork()).ldelim()}}catch(e){l.e(e)}finally{l.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.messages=[],a.extensionOptions=[],a.nonCriticalExtensionOptions=[];n.pos>>3){case 1:a.messages.push(s.Any.decode(n,n.uint32()));break;case 2:a.memo=n.string();break;case 3:a.timeoutHeight=n.uint64();break;case 1023:a.extensionOptions.push(s.Any.decode(n,n.uint32()));break;case 2047:a.nonCriticalExtensionOptions.push(s.Any.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);if(t.messages=[],t.extensionOptions=[],t.nonCriticalExtensionOptions=[],void 0!==e.messages&&null!==e.messages){var n,a=r(e.messages);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.messages.push(s.Any.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.memo&&null!==e.memo?t.memo=String(e.memo):t.memo="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=i.default.fromString(e.timeoutHeight):t.timeoutHeight=i.default.UZERO,void 0!==e.extensionOptions&&null!==e.extensionOptions){var c,u=r(e.extensionOptions);try{for(u.s();!(c=u.n()).done;){var d=c.value;t.extensionOptions.push(s.Any.fromJSON(d))}}catch(e){u.e(e)}finally{u.f()}}if(void 0!==e.nonCriticalExtensionOptions&&null!==e.nonCriticalExtensionOptions){var f,l=r(e.nonCriticalExtensionOptions);try{for(l.s();!(f=l.n()).done;){var b=f.value;t.nonCriticalExtensionOptions.push(s.Any.fromJSON(b))}}catch(e){l.e(e)}finally{l.f()}}return t},toJSON:function(e){var t={};return e.messages?t.messages=e.messages.map((function(e){return e?s.Any.toJSON(e):void 0})):t.messages=[],void 0!==e.memo&&(t.memo=e.memo),void 0!==e.timeoutHeight&&(t.timeoutHeight=(e.timeoutHeight||i.default.UZERO).toString()),e.extensionOptions?t.extensionOptions=e.extensionOptions.map((function(e){return e?s.Any.toJSON(e):void 0})):t.extensionOptions=[],e.nonCriticalExtensionOptions?t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map((function(e){return e?s.Any.toJSON(e):void 0})):t.nonCriticalExtensionOptions=[],t},fromPartial:function(e){var t=Object.assign({},p);if(t.messages=[],t.extensionOptions=[],t.nonCriticalExtensionOptions=[],void 0!==e.messages&&null!==e.messages){var n,a=r(e.messages);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.messages.push(s.Any.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.memo&&null!==e.memo?t.memo=e.memo:t.memo="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=e.timeoutHeight:t.timeoutHeight=i.default.UZERO,void 0!==e.extensionOptions&&null!==e.extensionOptions){var c,u=r(e.extensionOptions);try{for(u.s();!(c=u.n()).done;){var d=c.value;t.extensionOptions.push(s.Any.fromPartial(d))}}catch(e){u.e(e)}finally{u.f()}}if(void 0!==e.nonCriticalExtensionOptions&&null!==e.nonCriticalExtensionOptions){var f,l=r(e.nonCriticalExtensionOptions);try{for(l.s();!(f=l.n()).done;){var b=f.value;t.nonCriticalExtensionOptions.push(s.Any.fromPartial(b))}}catch(e){l.e(e)}finally{l.f()}}return t}};var h={};t.AuthInfo={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.signerInfos);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.SignerInfo.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return void 0!==e.fee&&t.Fee.encode(e.fee,a.uint32(18).fork()).ldelim(),a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},h);for(i.signerInfos=[];r.pos>>3){case 1:i.signerInfos.push(t.SignerInfo.decode(r,r.uint32()));break;case 2:i.fee=t.Fee.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},h);if(n.signerInfos=[],void 0!==e.signerInfos&&null!==e.signerInfos){var a,i=r(e.signerInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signerInfos.push(t.SignerInfo.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.fee&&null!==e.fee?n.fee=t.Fee.fromJSON(e.fee):n.fee=void 0,n},toJSON:function(e){var n={};return e.signerInfos?n.signerInfos=e.signerInfos.map((function(e){return e?t.SignerInfo.toJSON(e):void 0})):n.signerInfos=[],void 0!==e.fee&&(n.fee=e.fee?t.Fee.toJSON(e.fee):void 0),n},fromPartial:function(e){var n=Object.assign({},h);if(n.signerInfos=[],void 0!==e.signerInfos&&null!==e.signerInfos){var a,i=r(e.signerInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signerInfos.push(t.SignerInfo.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.fee&&null!==e.fee?n.fee=t.Fee.fromPartial(e.fee):n.fee=void 0,n}};var y={sequence:i.default.UZERO};t.SignerInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.publicKey&&s.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),void 0!==e.modeInfo&&t.ModeInfo.encode(e.modeInfo,n.uint32(18).fork()).ldelim(),e.sequence.isZero()||n.uint32(24).uint64(e.sequence),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},y);r.pos>>3){case 1:i.publicKey=s.Any.decode(r,r.uint32());break;case 2:i.modeInfo=t.ModeInfo.decode(r,r.uint32());break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},y);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=s.Any.fromJSON(e.publicKey):n.publicKey=void 0,void 0!==e.modeInfo&&null!==e.modeInfo?n.modeInfo=t.ModeInfo.fromJSON(e.modeInfo):n.modeInfo=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=i.default.fromString(e.sequence):n.sequence=i.default.UZERO,n},toJSON:function(e){var n={};return void 0!==e.publicKey&&(n.publicKey=e.publicKey?s.Any.toJSON(e.publicKey):void 0),void 0!==e.modeInfo&&(n.modeInfo=e.modeInfo?t.ModeInfo.toJSON(e.modeInfo):void 0),void 0!==e.sequence&&(n.sequence=(e.sequence||i.default.UZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},y);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=s.Any.fromPartial(e.publicKey):n.publicKey=void 0,void 0!==e.modeInfo&&null!==e.modeInfo?n.modeInfo=t.ModeInfo.fromPartial(e.modeInfo):n.modeInfo=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=e.sequence:n.sequence=i.default.UZERO,n}};var m={};t.ModeInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.single&&t.ModeInfo_Single.encode(e.single,n.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.ModeInfo_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},m);r.pos>>3){case 1:i.single=t.ModeInfo_Single.decode(r,r.uint32());break;case 2:i.multi=t.ModeInfo_Multi.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},m);return void 0!==e.single&&null!==e.single?n.single=t.ModeInfo_Single.fromJSON(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.ModeInfo_Multi.fromJSON(e.multi):n.multi=void 0,n},toJSON:function(e){var n={};return void 0!==e.single&&(n.single=e.single?t.ModeInfo_Single.toJSON(e.single):void 0),void 0!==e.multi&&(n.multi=e.multi?t.ModeInfo_Multi.toJSON(e.multi):void 0),n},fromPartial:function(e){var n=Object.assign({},m);return void 0!==e.single&&null!==e.single?n.single=t.ModeInfo_Single.fromPartial(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.ModeInfo_Multi.fromPartial(e.multi):n.multi=void 0,n}};var v={mode:0};t.ModeInfo_Single={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.mode&&t.uint32(8).int32(e.mode),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3==1?a.mode=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.mode&&null!==e.mode?t.mode=c.signModeFromJSON(e.mode):t.mode=0,t},toJSON:function(e){var t={};return void 0!==e.mode&&(t.mode=c.signModeToJSON(e.mode)),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.mode&&null!==e.mode?t.mode=e.mode:t.mode=0,t}};var g={};t.ModeInfo_Multi={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.bitarray&&u.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();var a,i=r(e.modeInfos);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.ModeInfo.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},g);for(i.modeInfos=[];r.pos>>3){case 1:i.bitarray=u.CompactBitArray.decode(r,r.uint32());break;case 2:i.modeInfos.push(t.ModeInfo.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},g);if(n.modeInfos=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromJSON(e.bitarray):n.bitarray=void 0,void 0!==e.modeInfos&&null!==e.modeInfos){var a,i=r(e.modeInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.modeInfos.push(t.ModeInfo.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.bitarray&&(n.bitarray=e.bitarray?u.CompactBitArray.toJSON(e.bitarray):void 0),e.modeInfos?n.modeInfos=e.modeInfos.map((function(e){return e?t.ModeInfo.toJSON(e):void 0})):n.modeInfos=[],n},fromPartial:function(e){var n=Object.assign({},g);if(n.modeInfos=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromPartial(e.bitarray):n.bitarray=void 0,void 0!==e.modeInfos&&null!==e.modeInfos){var a,i=r(e.modeInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.modeInfos.push(t.ModeInfo.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var A={gasLimit:i.default.UZERO,payer:"",granter:""};t.Fee={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.amount);try{for(a.s();!(t=a.n()).done;){var i=t.value;d.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return e.gasLimit.isZero()||n.uint32(16).uint64(e.gasLimit),""!==e.payer&&n.uint32(26).string(e.payer),""!==e.granter&&n.uint32(34).string(e.granter),n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.amount=[];n.pos>>3){case 1:a.amount.push(d.Coin.decode(n,n.uint32()));break;case 2:a.gasLimit=n.uint64();break;case 3:a.payer=n.string();break;case 4:a.granter=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(d.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.gasLimit&&null!==e.gasLimit?t.gasLimit=i.default.fromString(e.gasLimit):t.gasLimit=i.default.UZERO,void 0!==e.payer&&null!==e.payer?t.payer=String(e.payer):t.payer="",void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",t},toJSON:function(e){var t={};return e.amount?t.amount=e.amount.map((function(e){return e?d.Coin.toJSON(e):void 0})):t.amount=[],void 0!==e.gasLimit&&(t.gasLimit=(e.gasLimit||i.default.UZERO).toString()),void 0!==e.payer&&(t.payer=e.payer),void 0!==e.granter&&(t.granter=e.granter),t},fromPartial:function(e){var t=Object.assign({},A);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(d.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.gasLimit&&null!==e.gasLimit?t.gasLimit=e.gasLimit:t.gasLimit=i.default.UZERO,void 0!==e.payer&&null!==e.payer?t.payer=e.payer:t.payer="",void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",t}};var w=function(){if(void 0!==w)return w;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),x=w.atob||function(e){return w.Buffer.from(e,"base64").toString("binary")};function _(e){for(var t=x(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.name&&u.uint32(10).string(e.name),void 0!==e.time&&s.Timestamp.encode((t=e.time,c=t.getTime()/1e3,n=a.default.fromNumber(c),r=t.getTime()%1e3*1e6,{seconds:n,nanos:r}),u.uint32(18).fork()).ldelim(),e.height.isZero()||u.uint32(24).int64(e.height),""!==e.info&&u.uint32(34).string(e.info),void 0!==e.upgradedClientState&&o.Any.encode(e.upgradedClientState,u.uint32(42).fork()).ldelim(),u},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.name=n.string();break;case 2:a.time=l(s.Timestamp.decode(n,n.uint32()));break;case 3:a.height=n.int64();break;case 4:a.info=n.string();break;case 5:a.upgradedClientState=o.Any.decode(n,n.uint32());break;default:n.skipType(7&u)}}return a},fromJSON:function(e){var t,n=Object.assign({},c);return void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.time&&null!==e.time?n.time=(t=e.time)instanceof Date?t:"string"==typeof t?new Date(t):l(s.Timestamp.fromJSON(t)):n.time=void 0,void 0!==e.height&&null!==e.height?n.height=a.default.fromString(e.height):n.height=a.default.ZERO,void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.upgradedClientState&&null!==e.upgradedClientState?n.upgradedClientState=o.Any.fromJSON(e.upgradedClientState):n.upgradedClientState=void 0,n},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.time&&(t.time=e.time.toISOString()),void 0!==e.height&&(t.height=(e.height||a.default.ZERO).toString()),void 0!==e.info&&(t.info=e.info),void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?o.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.time&&null!==e.time?t.time=e.time:t.time=void 0,void 0!==e.height&&null!==e.height?t.height=e.height:t.height=a.default.ZERO,void 0!==e.info&&null!==e.info?t.info=e.info:t.info="",void 0!==e.upgradedClientState&&null!==e.upgradedClientState?t.upgradedClientState=o.Any.fromPartial(e.upgradedClientState):t.upgradedClientState=void 0,t}};var u={title:"",description:""};t.SoftwareUpgradeProposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.title&&n.uint32(10).string(e.title),""!==e.description&&n.uint32(18).string(e.description),void 0!==e.plan&&t.Plan.encode(e.plan,n.uint32(26).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof i.default.Reader?e:new i.default.Reader(e),a=void 0===n?r.len:r.pos+n,o=Object.assign({},u);r.pos>>3){case 1:o.title=r.string();break;case 2:o.description=r.string();break;case 3:o.plan=t.Plan.decode(r,r.uint32());break;default:r.skipType(7&s)}}return o},fromJSON:function(e){var n=Object.assign({},u);return void 0!==e.title&&null!==e.title?n.title=String(e.title):n.title="",void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.plan&&null!==e.plan?n.plan=t.Plan.fromJSON(e.plan):n.plan=void 0,n},toJSON:function(e){var n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.description&&(n.description=e.description),void 0!==e.plan&&(n.plan=e.plan?t.Plan.toJSON(e.plan):void 0),n},fromPartial:function(e){var n=Object.assign({},u);return void 0!==e.title&&null!==e.title?n.title=e.title:n.title="",void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.plan&&null!==e.plan?n.plan=t.Plan.fromPartial(e.plan):n.plan=void 0,n}};var d={title:"",description:""};t.CancelSoftwareUpgradeProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",t}};var f={name:"",version:a.default.UZERO};function l(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}t.ModuleVersion={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.name&&t.uint32(10).string(e.name),e.version.isZero()||t.uint32(16).uint64(e.version),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.name=n.string();break;case 2:a.version=n.uint64();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.version&&null!==e.version?t.version=a.default.fromString(e.version):t.version=a.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.version&&(t.version=(e.version||a.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.version&&null!==e.version?t.version=e.version:t.version=a.default.UZERO,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},88534:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseVestingAccount=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(23407)),s=n(86447),c=n(47971);t.protobufPackage="cosmos.vesting.v1beta1";var u={endTime:i.default.ZERO};t.BaseVestingAccount={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseAccount&&s.BaseAccount.encode(e.baseAccount,t.uint32(10).fork()).ldelim();var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}var u,d=r(e.delegatedFree);try{for(d.s();!(u=d.n()).done;){var f=u.value;c.Coin.encode(f,t.uint32(26).fork()).ldelim()}}catch(e){d.e(e)}finally{d.f()}var l,b=r(e.delegatedVesting);try{for(b.s();!(l=b.n()).done;){var p=l.value;c.Coin.encode(p,t.uint32(34).fork()).ldelim()}}catch(e){b.e(e)}finally{b.f()}return e.endTime.isZero()||t.uint32(40).int64(e.endTime),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.originalVesting=[],a.delegatedFree=[],a.delegatedVesting=[];n.pos>>3){case 1:a.baseAccount=s.BaseAccount.decode(n,n.uint32());break;case 2:a.originalVesting.push(c.Coin.decode(n,n.uint32()));break;case 3:a.delegatedFree.push(c.Coin.decode(n,n.uint32()));break;case 4:a.delegatedVesting.push(c.Coin.decode(n,n.uint32()));break;case 5:a.endTime=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);if(t.originalVesting=[],t.delegatedFree=[],t.delegatedVesting=[],void 0!==e.baseAccount&&null!==e.baseAccount?t.baseAccount=s.BaseAccount.fromJSON(e.baseAccount):t.baseAccount=void 0,void 0!==e.originalVesting&&null!==e.originalVesting){var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.originalVesting.push(c.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.delegatedFree&&null!==e.delegatedFree){var d,f=r(e.delegatedFree);try{for(f.s();!(d=f.n()).done;){var l=d.value;t.delegatedFree.push(c.Coin.fromJSON(l))}}catch(e){f.e(e)}finally{f.f()}}if(void 0!==e.delegatedVesting&&null!==e.delegatedVesting){var b,p=r(e.delegatedVesting);try{for(p.s();!(b=p.n()).done;){var h=b.value;t.delegatedVesting.push(c.Coin.fromJSON(h))}}catch(e){p.e(e)}finally{p.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=i.default.fromString(e.endTime):t.endTime=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.baseAccount&&(t.baseAccount=e.baseAccount?s.BaseAccount.toJSON(e.baseAccount):void 0),e.originalVesting?t.originalVesting=e.originalVesting.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.originalVesting=[],e.delegatedFree?t.delegatedFree=e.delegatedFree.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.delegatedFree=[],e.delegatedVesting?t.delegatedVesting=e.delegatedVesting.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.delegatedVesting=[],void 0!==e.endTime&&(t.endTime=(e.endTime||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},u);if(t.originalVesting=[],t.delegatedFree=[],t.delegatedVesting=[],void 0!==e.baseAccount&&null!==e.baseAccount?t.baseAccount=s.BaseAccount.fromPartial(e.baseAccount):t.baseAccount=void 0,void 0!==e.originalVesting&&null!==e.originalVesting){var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.originalVesting.push(c.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.delegatedFree&&null!==e.delegatedFree){var d,f=r(e.delegatedFree);try{for(f.s();!(d=f.n()).done;){var l=d.value;t.delegatedFree.push(c.Coin.fromPartial(l))}}catch(e){f.e(e)}finally{f.f()}}if(void 0!==e.delegatedVesting&&null!==e.delegatedVesting){var b,p=r(e.delegatedVesting);try{for(p.s();!(b=p.n()).done;){var h=b.value;t.delegatedVesting.push(c.Coin.fromPartial(h))}}catch(e){p.e(e)}finally{p.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=e.endTime:t.endTime=i.default.ZERO,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},27213:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Any=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(23407));t.protobufPackage="google.protobuf";var s={typeUrl:""};t.Any={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.value=new Uint8Array;n.pos>>3){case 1:a.typeUrl=n.string();break;case 2:a.value=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);return t.value=new Uint8Array,void 0!==e.typeUrl&&null!==e.typeUrl?t.typeUrl=String(e.typeUrl):t.typeUrl="",void 0!==e.value&&null!==e.value&&(t.value=function(e){for(var t=u(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.seconds.isZero()||t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.seconds=n.int64();break;case 2:a.nanos=n.int32();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=a.default.fromString(e.seconds):t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=Number(e.nanos):t.nanos=0,t},toJSON:function(e){var t={};return void 0!==e.seconds&&(t.seconds=(e.seconds||a.default.ZERO).toString()),void 0!==e.nanos&&(t.nanos=e.nanos),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=e.seconds:t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=e.nanos:t.nanos=0,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},3107:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.protobufPackage=void 0;var a=r(n(24141)),i=r(n(23407));t.protobufPackage="google.protobuf";var o={seconds:a.default.ZERO,nanos:0};t.Timestamp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.seconds.isZero()||t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.seconds=n.int64();break;case 2:a.nanos=n.int32();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=a.default.fromString(e.seconds):t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=Number(e.nanos):t.nanos=0,t},toJSON:function(e){var t={};return void 0!==e.seconds&&(t.seconds=(e.seconds||a.default.ZERO).toString()),void 0!==e.nanos&&(t.nanos=e.nanos),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=e.seconds:t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=e.nanos:t.nanos=0,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},25301:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.DenomTrace=t.FungibleTokenPacketData=t.protobufPackage=void 0;var a=r(n(24141)),i=r(n(23407));t.protobufPackage="ibc.applications.transfer.v1";var o={denom:"",amount:a.default.UZERO,sender:"",receiver:""};t.FungibleTokenPacketData={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),e.amount.isZero()||t.uint32(16).uint64(e.amount),""!==e.sender&&t.uint32(26).string(e.sender),""!==e.receiver&&t.uint32(34).string(e.receiver),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.uint64();break;case 3:a.sender=n.string();break;case 4:a.receiver=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=a.default.fromString(e.amount):t.amount=a.default.UZERO,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.receiver&&null!==e.receiver?t.receiver=String(e.receiver):t.receiver="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=(e.amount||a.default.UZERO).toString()),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.receiver&&(t.receiver=e.receiver),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount=a.default.UZERO,void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.receiver&&null!==e.receiver?t.receiver=e.receiver:t.receiver="",t}};var s={path:"",baseDenom:""};t.DenomTrace={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.path&&t.uint32(10).string(e.path),""!==e.baseDenom&&t.uint32(18).string(e.baseDenom),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.path=n.string();break;case 2:a.baseDenom=n.string();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.path&&null!==e.path?t.path=String(e.path):t.path="",void 0!==e.baseDenom&&null!==e.baseDenom?t.baseDenom=String(e.baseDenom):t.baseDenom="",t},toJSON:function(e){var t={};return void 0!==e.path&&(t.path=e.path),void 0!==e.baseDenom&&(t.baseDenom=e.baseDenom),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.path&&null!==e.path?t.path=e.path:t.path="",void 0!==e.baseDenom&&null!==e.baseDenom?t.baseDenom=e.baseDenom:t.baseDenom="",t}};var c={sendEnabled:!1,receiveEnabled:!1};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return!0===e.sendEnabled&&t.uint32(8).bool(e.sendEnabled),!0===e.receiveEnabled&&t.uint32(16).bool(e.receiveEnabled),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.sendEnabled=n.bool();break;case 2:a.receiveEnabled=n.bool();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.sendEnabled&&null!==e.sendEnabled?t.sendEnabled=Boolean(e.sendEnabled):t.sendEnabled=!1,void 0!==e.receiveEnabled&&null!==e.receiveEnabled?t.receiveEnabled=Boolean(e.receiveEnabled):t.receiveEnabled=!1,t},toJSON:function(e){var t={};return void 0!==e.sendEnabled&&(t.sendEnabled=e.sendEnabled),void 0!==e.receiveEnabled&&(t.receiveEnabled=e.receiveEnabled),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.sendEnabled&&null!==e.sendEnabled?t.sendEnabled=e.sendEnabled:t.sendEnabled=!1,void 0!==e.receiveEnabled&&null!==e.receiveEnabled?t.receiveEnabled=e.receiveEnabled:t.receiveEnabled=!1,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},23407:function(e,t,n){"use strict";e.exports=n(84347)},84347:function(e,t,n){"use strict";var r=t;function a(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(29608),r.BufferWriter=n(78498),r.Reader=n(99594),r.BufferReader=n(81989),r.util=n(86220),r.rpc=n(66308),r.roots=n(59366),r.configure=a,a()},99594:function(e,t,n){"use strict";e.exports=c;var r,a=n(86220),i=a.LongBits,o=a.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u,d="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},f=function(){return a.Buffer?function(e){return(c.create=function(e){return a.Buffer.isBuffer(e)?new r(e):d(e)})(e)}:d};function l(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function b(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8);return new i(b(this.buf,this.pos+=4),b(this.buf,this.pos+=4))}c.create=f(),c.prototype._slice=a.Array.prototype.subarray||a.Array.prototype.slice,c.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return u}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return b(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|b(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=a.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=a.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return o.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){r=e,c.create=f(),r._configure();var t=a.Long?"toLong":"toNumber";a.merge(c.prototype,{int64:function(){return l.call(this)[t](!1)},uint64:function(){return l.call(this)[t](!0)},sint64:function(){return l.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},81989:function(e,t,n){"use strict";e.exports=i;var r=n(99594);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(86220);function i(e){r.call(this,e)}i._configure=function(){a.Buffer&&(i.prototype._slice=a.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},59366:function(e){"use strict";e.exports={}},66308:function(e,t,n){"use strict";t.Service=n(21104)},21104:function(e,t,n){"use strict";e.exports=a;var r=n(86220);function a(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(a.prototype=Object.create(r.EventEmitter.prototype)).constructor=a,a.prototype.rpcCall=function e(t,n,a,i,o){if(!i)throw TypeError("request must be specified");var s=this;if(!o)return r.asPromise(e,s,t,n,a,i);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,n){if(e)return s.emit("error",e,t),o(e);if(null!==n){if(!(n instanceof a))try{n=a[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),o(e)}return s.emit("data",n,t),o(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){o(e)}),0)}else setTimeout((function(){o(Error("already ended"))}),0)},a.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},25659:function(e,t,n){"use strict";e.exports=a;var r=n(86220);function a(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=a.zero=new a(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var o=a.zeroHash="\0\0\0\0\0\0\0\0";a.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new a(n,r)},a.from=function(e){if("number"==typeof e)return a.fromNumber(e);if(r.isString(e)){if(!r.Long)return a.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new a(e.low>>>0,e.high>>>0):i},a.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},a.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;a.fromHash=function(e){return e===o?i:new a((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},a.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},a.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},a.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},a.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},86220:function(e,t,n){"use strict";var r=t;function a(e,t,n){for(var r=Object.keys(t),a=0;a0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=a,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function y(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}f.create=l(),f.alloc=function(e){return new a.Array(e)},a.Array!==Array&&(f.alloc=a.pool(f.alloc,a.Array.prototype.subarray)),f.prototype._push=function(e,t,n){return this.tail=this.tail.next=new c(e,t,n),this.len+=t,this},p.prototype=Object.create(c.prototype),p.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(h,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(h,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(h,t.length(),t)},f.prototype.bool=function(e){return this._push(b,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(y,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(y,4,t.lo)._push(y,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(a.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(a.float.writeDoubleLE,8,e)};var m=a.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(b,1,0);if(a.isString(e)){var n=f.alloc(t=o.length(e));o.decode(e,n,0),e=n}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(b,1,0)},f.prototype.fork=function(){return this.states=new d(this),this.head=this.tail=new c(u,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},f._configure=function(e){r=e,f.create=l(),r._configure()}},78498:function(e,t,n){"use strict";e.exports=i;var r=n(29608);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(86220);function i(){r.call(this)}function o(e,t,n){e.length<40?a.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i._configure=function(){i.alloc=a._Buffer_allocUnsafe,i.writeBytesBuffer=a.Buffer&&a.Buffer.prototype instanceof Uint8Array&&"set"===a.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=a.Buffer.byteLength(e);return this.uint32(t),t&&this._push(o,t,e),this},i._configure()},7496:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(33482).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ABCIApplicationClientImpl=t.Snapshot=t.Evidence=t.VoteInfo=t.ValidatorUpdate=t.Validator=t.TxResult=t.EventAttribute=t.Event=t.LastCommitInfo=t.BlockParams=t.ConsensusParams=t.ResponseApplySnapshotChunk=t.ResponseLoadSnapshotChunk=t.ResponseOfferSnapshot=t.ResponseListSnapshots=t.ResponseCommit=t.ResponseEndBlock=t.ResponseDeliverTx=t.ResponseCheckTx=t.ResponseBeginBlock=t.ResponseQuery=t.ResponseInitChain=t.ResponseSetOption=t.ResponseInfo=t.ResponseFlush=t.ResponseEcho=t.ResponseException=t.Response=t.RequestApplySnapshotChunk=t.RequestLoadSnapshotChunk=t.RequestOfferSnapshot=t.RequestListSnapshots=t.RequestCommit=t.RequestEndBlock=t.RequestDeliverTx=t.RequestCheckTx=t.RequestBeginBlock=t.RequestQuery=t.RequestInitChain=t.RequestSetOption=t.RequestInfo=t.RequestFlush=t.RequestEcho=t.Request=t.responseApplySnapshotChunk_ResultToJSON=t.responseApplySnapshotChunk_ResultFromJSON=t.ResponseApplySnapshotChunk_Result=t.responseOfferSnapshot_ResultToJSON=t.responseOfferSnapshot_ResultFromJSON=t.ResponseOfferSnapshot_Result=t.evidenceTypeToJSON=t.evidenceTypeFromJSON=t.EvidenceType=t.checkTxTypeToJSON=t.checkTxTypeFromJSON=t.CheckTxType=t.protobufPackage=void 0;var s,c,u,d,f=o(n(24141)),l=o(n(23407)),b=n(65246),p=n(48023),h=n(43794),y=n(67622),m=n(3107);function v(e){switch(e){case 0:case"NEW":return s.NEW;case 1:case"RECHECK":return s.RECHECK;default:return s.UNRECOGNIZED}}function g(e){switch(e){case s.NEW:return"NEW";case s.RECHECK:return"RECHECK";default:return"UNKNOWN"}}function A(e){switch(e){case 0:case"UNKNOWN":return c.UNKNOWN;case 1:case"DUPLICATE_VOTE":return c.DUPLICATE_VOTE;case 2:case"LIGHT_CLIENT_ATTACK":return c.LIGHT_CLIENT_ATTACK;default:return c.UNRECOGNIZED}}function w(e){switch(e){case c.UNKNOWN:return"UNKNOWN";case c.DUPLICATE_VOTE:return"DUPLICATE_VOTE";case c.LIGHT_CLIENT_ATTACK:return"LIGHT_CLIENT_ATTACK";default:return"UNKNOWN"}}function x(e){switch(e){case 0:case"UNKNOWN":return u.UNKNOWN;case 1:case"ACCEPT":return u.ACCEPT;case 2:case"ABORT":return u.ABORT;case 3:case"REJECT":return u.REJECT;case 4:case"REJECT_FORMAT":return u.REJECT_FORMAT;case 5:case"REJECT_SENDER":return u.REJECT_SENDER;default:return u.UNRECOGNIZED}}function _(e){switch(e){case u.UNKNOWN:return"UNKNOWN";case u.ACCEPT:return"ACCEPT";case u.ABORT:return"ABORT";case u.REJECT:return"REJECT";case u.REJECT_FORMAT:return"REJECT_FORMAT";case u.REJECT_SENDER:return"REJECT_SENDER";default:return"UNKNOWN"}}function k(e){switch(e){case 0:case"UNKNOWN":return d.UNKNOWN;case 1:case"ACCEPT":return d.ACCEPT;case 2:case"ABORT":return d.ABORT;case 3:case"RETRY":return d.RETRY;case 4:case"RETRY_SNAPSHOT":return d.RETRY_SNAPSHOT;case 5:case"REJECT_SNAPSHOT":return d.REJECT_SNAPSHOT;default:return d.UNRECOGNIZED}}function I(e){switch(e){case d.UNKNOWN:return"UNKNOWN";case d.ACCEPT:return"ACCEPT";case d.ABORT:return"ABORT";case d.RETRY:return"RETRY";case d.RETRY_SNAPSHOT:return"RETRY_SNAPSHOT";case d.REJECT_SNAPSHOT:return"REJECT_SNAPSHOT";default:return"UNKNOWN"}}t.protobufPackage="tendermint.abci",function(e){e[e.NEW=0]="NEW",e[e.RECHECK=1]="RECHECK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.CheckTxType||(t.CheckTxType={})),t.checkTxTypeFromJSON=v,t.checkTxTypeToJSON=g,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",e[e.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.EvidenceType||(t.EvidenceType={})),t.evidenceTypeFromJSON=A,t.evidenceTypeToJSON=w,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.REJECT=3]="REJECT",e[e.REJECT_FORMAT=4]="REJECT_FORMAT",e[e.REJECT_SENDER=5]="REJECT_SENDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=t.ResponseOfferSnapshot_Result||(t.ResponseOfferSnapshot_Result={})),t.responseOfferSnapshot_ResultFromJSON=x,t.responseOfferSnapshot_ResultToJSON=_,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.RETRY=3]="RETRY",e[e.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",e[e.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(d=t.ResponseApplySnapshotChunk_Result||(t.ResponseApplySnapshotChunk_Result={})),t.responseApplySnapshotChunk_ResultFromJSON=k,t.responseApplySnapshotChunk_ResultToJSON=I;var S={};t.Request={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return void 0!==e.echo&&t.RequestEcho.encode(e.echo,n.uint32(10).fork()).ldelim(),void 0!==e.flush&&t.RequestFlush.encode(e.flush,n.uint32(18).fork()).ldelim(),void 0!==e.info&&t.RequestInfo.encode(e.info,n.uint32(26).fork()).ldelim(),void 0!==e.setOption&&t.RequestSetOption.encode(e.setOption,n.uint32(34).fork()).ldelim(),void 0!==e.initChain&&t.RequestInitChain.encode(e.initChain,n.uint32(42).fork()).ldelim(),void 0!==e.query&&t.RequestQuery.encode(e.query,n.uint32(50).fork()).ldelim(),void 0!==e.beginBlock&&t.RequestBeginBlock.encode(e.beginBlock,n.uint32(58).fork()).ldelim(),void 0!==e.checkTx&&t.RequestCheckTx.encode(e.checkTx,n.uint32(66).fork()).ldelim(),void 0!==e.deliverTx&&t.RequestDeliverTx.encode(e.deliverTx,n.uint32(74).fork()).ldelim(),void 0!==e.endBlock&&t.RequestEndBlock.encode(e.endBlock,n.uint32(82).fork()).ldelim(),void 0!==e.commit&&t.RequestCommit.encode(e.commit,n.uint32(90).fork()).ldelim(),void 0!==e.listSnapshots&&t.RequestListSnapshots.encode(e.listSnapshots,n.uint32(98).fork()).ldelim(),void 0!==e.offerSnapshot&&t.RequestOfferSnapshot.encode(e.offerSnapshot,n.uint32(106).fork()).ldelim(),void 0!==e.loadSnapshotChunk&&t.RequestLoadSnapshotChunk.encode(e.loadSnapshotChunk,n.uint32(114).fork()).ldelim(),void 0!==e.applySnapshotChunk&&t.RequestApplySnapshotChunk.encode(e.applySnapshotChunk,n.uint32(122).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},S);r.pos>>3){case 1:i.echo=t.RequestEcho.decode(r,r.uint32());break;case 2:i.flush=t.RequestFlush.decode(r,r.uint32());break;case 3:i.info=t.RequestInfo.decode(r,r.uint32());break;case 4:i.setOption=t.RequestSetOption.decode(r,r.uint32());break;case 5:i.initChain=t.RequestInitChain.decode(r,r.uint32());break;case 6:i.query=t.RequestQuery.decode(r,r.uint32());break;case 7:i.beginBlock=t.RequestBeginBlock.decode(r,r.uint32());break;case 8:i.checkTx=t.RequestCheckTx.decode(r,r.uint32());break;case 9:i.deliverTx=t.RequestDeliverTx.decode(r,r.uint32());break;case 10:i.endBlock=t.RequestEndBlock.decode(r,r.uint32());break;case 11:i.commit=t.RequestCommit.decode(r,r.uint32());break;case 12:i.listSnapshots=t.RequestListSnapshots.decode(r,r.uint32());break;case 13:i.offerSnapshot=t.RequestOfferSnapshot.decode(r,r.uint32());break;case 14:i.loadSnapshotChunk=t.RequestLoadSnapshotChunk.decode(r,r.uint32());break;case 15:i.applySnapshotChunk=t.RequestApplySnapshotChunk.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},S);return void 0!==e.echo&&null!==e.echo?n.echo=t.RequestEcho.fromJSON(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.RequestFlush.fromJSON(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.RequestInfo.fromJSON(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.RequestSetOption.fromJSON(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.RequestInitChain.fromJSON(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.RequestQuery.fromJSON(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.RequestBeginBlock.fromJSON(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.RequestCheckTx.fromJSON(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.RequestDeliverTx.fromJSON(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.RequestEndBlock.fromJSON(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.RequestCommit.fromJSON(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.RequestListSnapshots.fromJSON(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.RequestOfferSnapshot.fromJSON(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.RequestLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.RequestApplySnapshotChunk.fromJSON(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n},toJSON:function(e){var n={};return void 0!==e.echo&&(n.echo=e.echo?t.RequestEcho.toJSON(e.echo):void 0),void 0!==e.flush&&(n.flush=e.flush?t.RequestFlush.toJSON(e.flush):void 0),void 0!==e.info&&(n.info=e.info?t.RequestInfo.toJSON(e.info):void 0),void 0!==e.setOption&&(n.setOption=e.setOption?t.RequestSetOption.toJSON(e.setOption):void 0),void 0!==e.initChain&&(n.initChain=e.initChain?t.RequestInitChain.toJSON(e.initChain):void 0),void 0!==e.query&&(n.query=e.query?t.RequestQuery.toJSON(e.query):void 0),void 0!==e.beginBlock&&(n.beginBlock=e.beginBlock?t.RequestBeginBlock.toJSON(e.beginBlock):void 0),void 0!==e.checkTx&&(n.checkTx=e.checkTx?t.RequestCheckTx.toJSON(e.checkTx):void 0),void 0!==e.deliverTx&&(n.deliverTx=e.deliverTx?t.RequestDeliverTx.toJSON(e.deliverTx):void 0),void 0!==e.endBlock&&(n.endBlock=e.endBlock?t.RequestEndBlock.toJSON(e.endBlock):void 0),void 0!==e.commit&&(n.commit=e.commit?t.RequestCommit.toJSON(e.commit):void 0),void 0!==e.listSnapshots&&(n.listSnapshots=e.listSnapshots?t.RequestListSnapshots.toJSON(e.listSnapshots):void 0),void 0!==e.offerSnapshot&&(n.offerSnapshot=e.offerSnapshot?t.RequestOfferSnapshot.toJSON(e.offerSnapshot):void 0),void 0!==e.loadSnapshotChunk&&(n.loadSnapshotChunk=e.loadSnapshotChunk?t.RequestLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),void 0!==e.applySnapshotChunk&&(n.applySnapshotChunk=e.applySnapshotChunk?t.RequestApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),n},fromPartial:function(e){var n=Object.assign({},S);return void 0!==e.echo&&null!==e.echo?n.echo=t.RequestEcho.fromPartial(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.RequestFlush.fromPartial(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.RequestInfo.fromPartial(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.RequestSetOption.fromPartial(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.RequestInitChain.fromPartial(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.RequestQuery.fromPartial(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.RequestBeginBlock.fromPartial(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.RequestCheckTx.fromPartial(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.RequestDeliverTx.fromPartial(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.RequestEndBlock.fromPartial(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.RequestCommit.fromPartial(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.RequestListSnapshots.fromPartial(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.RequestOfferSnapshot.fromPartial(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.RequestLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.RequestApplySnapshotChunk.fromPartial(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n}};var E={message:""};t.RequestEcho={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return""!==e.message&&t.uint32(10).string(e.message),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},E);n.pos>>3==1?a.message=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},E);return void 0!==e.message&&null!==e.message?t.message=String(e.message):t.message="",t},toJSON:function(e){var t={};return void 0!==e.message&&(t.message=e.message),t},fromPartial:function(e){var t=Object.assign({},E);return void 0!==e.message&&null!==e.message?t.message=e.message:t.message="",t}};var C={};t.RequestFlush={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create()},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},C);n.pos1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return""!==e.version&&t.uint32(10).string(e.version),e.blockVersion.isZero()||t.uint32(16).uint64(e.blockVersion),e.p2pVersion.isZero()||t.uint32(24).uint64(e.p2pVersion),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},T);n.pos>>3){case 1:a.version=n.string();break;case 2:a.blockVersion=n.uint64();break;case 3:a.p2pVersion=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},T);return void 0!==e.version&&null!==e.version?t.version=String(e.version):t.version="",void 0!==e.blockVersion&&null!==e.blockVersion?t.blockVersion=f.default.fromString(e.blockVersion):t.blockVersion=f.default.UZERO,void 0!==e.p2pVersion&&null!==e.p2pVersion?t.p2pVersion=f.default.fromString(e.p2pVersion):t.p2pVersion=f.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.version&&(t.version=e.version),void 0!==e.blockVersion&&(t.blockVersion=(e.blockVersion||f.default.UZERO).toString()),void 0!==e.p2pVersion&&(t.p2pVersion=(e.p2pVersion||f.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},T);return void 0!==e.version&&null!==e.version?t.version=e.version:t.version="",void 0!==e.blockVersion&&null!==e.blockVersion?t.blockVersion=e.blockVersion:t.blockVersion=f.default.UZERO,void 0!==e.p2pVersion&&null!==e.p2pVersion?t.p2pVersion=e.p2pVersion:t.p2pVersion=f.default.UZERO,t}};var O={key:"",value:""};t.RequestSetOption={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},O);n.pos>>3){case 1:a.key=n.string();break;case 2:a.value=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},O);return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial:function(e){var t=Object.assign({},O);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}};var P={chainId:"",initialHeight:f.default.ZERO};t.RequestInitChain={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();void 0!==e.time&&m.Timestamp.encode(xe(e.time),n.uint32(10).fork()).ldelim(),""!==e.chainId&&n.uint32(18).string(e.chainId),void 0!==e.consensusParams&&t.ConsensusParams.encode(e.consensusParams,n.uint32(26).fork()).ldelim();var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.ValidatorUpdate.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return 0!==e.appStateBytes.length&&n.uint32(42).bytes(e.appStateBytes),e.initialHeight.isZero()||n.uint32(48).int64(e.initialHeight),n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},P);for(i.validators=[],i.appStateBytes=new Uint8Array;r.pos>>3){case 1:i.time=_e(m.Timestamp.decode(r,r.uint32()));break;case 2:i.chainId=r.string();break;case 3:i.consensusParams=t.ConsensusParams.decode(r,r.uint32());break;case 4:i.validators.push(t.ValidatorUpdate.decode(r,r.uint32()));break;case 5:i.appStateBytes=r.bytes();break;case 6:i.initialHeight=r.int64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},P);if(n.validators=[],n.appStateBytes=new Uint8Array,void 0!==e.time&&null!==e.time?n.time=ke(e.time):n.time=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=String(e.chainId):n.chainId="",void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromJSON(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appStateBytes&&null!==e.appStateBytes&&(n.appStateBytes=ge(e.appStateBytes)),void 0!==e.initialHeight&&null!==e.initialHeight?n.initialHeight=f.default.fromString(e.initialHeight):n.initialHeight=f.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.time&&(n.time=e.time.toISOString()),void 0!==e.chainId&&(n.chainId=e.chainId),void 0!==e.consensusParams&&(n.consensusParams=e.consensusParams?t.ConsensusParams.toJSON(e.consensusParams):void 0),e.validators?n.validators=e.validators.map((function(e){return e?t.ValidatorUpdate.toJSON(e):void 0})):n.validators=[],void 0!==e.appStateBytes&&(n.appStateBytes=we(void 0!==e.appStateBytes?e.appStateBytes:new Uint8Array)),void 0!==e.initialHeight&&(n.initialHeight=(e.initialHeight||f.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},P);if(n.validators=[],void 0!==e.time&&null!==e.time?n.time=e.time:n.time=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=e.chainId:n.chainId="",void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromPartial(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appStateBytes&&null!==e.appStateBytes?n.appStateBytes=e.appStateBytes:n.appStateBytes=new Uint8Array,void 0!==e.initialHeight&&null!==e.initialHeight?n.initialHeight=e.initialHeight:n.initialHeight=f.default.ZERO,n}};var M={path:"",height:f.default.ZERO,prove:!1};t.RequestQuery={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),""!==e.path&&t.uint32(18).string(e.path),e.height.isZero()||t.uint32(24).int64(e.height),!0===e.prove&&t.uint32(32).bool(e.prove),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},M);for(a.data=new Uint8Array;n.pos>>3){case 1:a.data=n.bytes();break;case 2:a.path=n.string();break;case 3:a.height=n.int64();break;case 4:a.prove=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},M);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=ge(e.data)),void 0!==e.path&&null!==e.path?t.path=String(e.path):t.path="",void 0!==e.height&&null!==e.height?t.height=f.default.fromString(e.height):t.height=f.default.ZERO,void 0!==e.prove&&null!==e.prove?t.prove=Boolean(e.prove):t.prove=!1,t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=we(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.path&&(t.path=e.path),void 0!==e.height&&(t.height=(e.height||f.default.ZERO).toString()),void 0!==e.prove&&(t.prove=e.prove),t},fromPartial:function(e){var t=Object.assign({},M);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.path&&null!==e.path?t.path=e.path:t.path="",void 0!==e.height&&null!==e.height?t.height=e.height:t.height=f.default.ZERO,void 0!==e.prove&&null!==e.prove?t.prove=e.prove:t.prove=!1,t}};var B={};t.RequestBeginBlock={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();0!==e.hash.length&&n.uint32(10).bytes(e.hash),void 0!==e.header&&b.Header.encode(e.header,n.uint32(18).fork()).ldelim(),void 0!==e.lastCommitInfo&&t.LastCommitInfo.encode(e.lastCommitInfo,n.uint32(26).fork()).ldelim();var r,a=i(e.byzantineValidators);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.Evidence.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},B);for(i.byzantineValidators=[],i.hash=new Uint8Array;r.pos>>3){case 1:i.hash=r.bytes();break;case 2:i.header=b.Header.decode(r,r.uint32());break;case 3:i.lastCommitInfo=t.LastCommitInfo.decode(r,r.uint32());break;case 4:i.byzantineValidators.push(t.Evidence.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},B);if(n.byzantineValidators=[],n.hash=new Uint8Array,void 0!==e.hash&&null!==e.hash&&(n.hash=ge(e.hash)),void 0!==e.header&&null!==e.header?n.header=b.Header.fromJSON(e.header):n.header=void 0,void 0!==e.lastCommitInfo&&null!==e.lastCommitInfo?n.lastCommitInfo=t.LastCommitInfo.fromJSON(e.lastCommitInfo):n.lastCommitInfo=void 0,void 0!==e.byzantineValidators&&null!==e.byzantineValidators){var r,a=i(e.byzantineValidators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.byzantineValidators.push(t.Evidence.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return void 0!==e.hash&&(n.hash=we(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.header&&(n.header=e.header?b.Header.toJSON(e.header):void 0),void 0!==e.lastCommitInfo&&(n.lastCommitInfo=e.lastCommitInfo?t.LastCommitInfo.toJSON(e.lastCommitInfo):void 0),e.byzantineValidators?n.byzantineValidators=e.byzantineValidators.map((function(e){return e?t.Evidence.toJSON(e):void 0})):n.byzantineValidators=[],n},fromPartial:function(e){var n=Object.assign({},B);if(n.byzantineValidators=[],void 0!==e.hash&&null!==e.hash?n.hash=e.hash:n.hash=new Uint8Array,void 0!==e.header&&null!==e.header?n.header=b.Header.fromPartial(e.header):n.header=void 0,void 0!==e.lastCommitInfo&&null!==e.lastCommitInfo?n.lastCommitInfo=t.LastCommitInfo.fromPartial(e.lastCommitInfo):n.lastCommitInfo=void 0,void 0!==e.byzantineValidators&&null!==e.byzantineValidators){var r,a=i(e.byzantineValidators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.byzantineValidators.push(t.Evidence.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var N={type:0};t.RequestCheckTx={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.tx.length&&t.uint32(10).bytes(e.tx),0!==e.type&&t.uint32(16).int32(e.type),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},N);for(a.tx=new Uint8Array;n.pos>>3){case 1:a.tx=n.bytes();break;case 2:a.type=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},N);return t.tx=new Uint8Array,void 0!==e.tx&&null!==e.tx&&(t.tx=ge(e.tx)),void 0!==e.type&&null!==e.type?t.type=v(e.type):t.type=0,t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=we(void 0!==e.tx?e.tx:new Uint8Array)),void 0!==e.type&&(t.type=g(e.type)),t},fromPartial:function(e){var t=Object.assign({},N);return void 0!==e.tx&&null!==e.tx?t.tx=e.tx:t.tx=new Uint8Array,void 0!==e.type&&null!==e.type?t.type=e.type:t.type=0,t}};var R={};t.RequestDeliverTx={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.tx.length&&t.uint32(10).bytes(e.tx),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},R);for(a.tx=new Uint8Array;n.pos>>3==1?a.tx=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},R);return t.tx=new Uint8Array,void 0!==e.tx&&null!==e.tx&&(t.tx=ge(e.tx)),t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=we(void 0!==e.tx?e.tx:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},R);return void 0!==e.tx&&null!==e.tx?t.tx=e.tx:t.tx=new Uint8Array,t}};var D={height:f.default.ZERO};t.RequestEndBlock={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return e.height.isZero()||t.uint32(8).int64(e.height),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},D);n.pos>>3==1?a.height=n.int64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},D);return void 0!==e.height&&null!==e.height?t.height=f.default.fromString(e.height):t.height=f.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.height&&(t.height=(e.height||f.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},D);return void 0!==e.height&&null!==e.height?t.height=e.height:t.height=f.default.ZERO,t}};var j={};t.RequestCommit={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create()},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},j);n.pos1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create()},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},U);n.pos1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return void 0!==e.snapshot&&t.Snapshot.encode(e.snapshot,n.uint32(10).fork()).ldelim(),0!==e.appHash.length&&n.uint32(18).bytes(e.appHash),n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},L);for(i.appHash=new Uint8Array;r.pos>>3){case 1:i.snapshot=t.Snapshot.decode(r,r.uint32());break;case 2:i.appHash=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},L);return n.appHash=new Uint8Array,void 0!==e.snapshot&&null!==e.snapshot?n.snapshot=t.Snapshot.fromJSON(e.snapshot):n.snapshot=void 0,void 0!==e.appHash&&null!==e.appHash&&(n.appHash=ge(e.appHash)),n},toJSON:function(e){var n={};return void 0!==e.snapshot&&(n.snapshot=e.snapshot?t.Snapshot.toJSON(e.snapshot):void 0),void 0!==e.appHash&&(n.appHash=we(void 0!==e.appHash?e.appHash:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},L);return void 0!==e.snapshot&&null!==e.snapshot?n.snapshot=t.Snapshot.fromPartial(e.snapshot):n.snapshot=void 0,void 0!==e.appHash&&null!==e.appHash?n.appHash=e.appHash:n.appHash=new Uint8Array,n}};var F={height:f.default.UZERO,format:0,chunk:0};t.RequestLoadSnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return e.height.isZero()||t.uint32(8).uint64(e.height),0!==e.format&&t.uint32(16).uint32(e.format),0!==e.chunk&&t.uint32(24).uint32(e.chunk),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},F);n.pos>>3){case 1:a.height=n.uint64();break;case 2:a.format=n.uint32();break;case 3:a.chunk=n.uint32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},F);return void 0!==e.height&&null!==e.height?t.height=f.default.fromString(e.height):t.height=f.default.UZERO,void 0!==e.format&&null!==e.format?t.format=Number(e.format):t.format=0,void 0!==e.chunk&&null!==e.chunk?t.chunk=Number(e.chunk):t.chunk=0,t},toJSON:function(e){var t={};return void 0!==e.height&&(t.height=(e.height||f.default.UZERO).toString()),void 0!==e.format&&(t.format=e.format),void 0!==e.chunk&&(t.chunk=e.chunk),t},fromPartial:function(e){var t=Object.assign({},F);return void 0!==e.height&&null!==e.height?t.height=e.height:t.height=f.default.UZERO,void 0!==e.format&&null!==e.format?t.format=e.format:t.format=0,void 0!==e.chunk&&null!==e.chunk?t.chunk=e.chunk:t.chunk=0,t}};var Z={index:0,sender:""};t.RequestApplySnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.index&&t.uint32(8).uint32(e.index),0!==e.chunk.length&&t.uint32(18).bytes(e.chunk),""!==e.sender&&t.uint32(26).string(e.sender),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},Z);for(a.chunk=new Uint8Array;n.pos>>3){case 1:a.index=n.uint32();break;case 2:a.chunk=n.bytes();break;case 3:a.sender=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},Z);return t.chunk=new Uint8Array,void 0!==e.index&&null!==e.index?t.index=Number(e.index):t.index=0,void 0!==e.chunk&&null!==e.chunk&&(t.chunk=ge(e.chunk)),void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",t},toJSON:function(e){var t={};return void 0!==e.index&&(t.index=e.index),void 0!==e.chunk&&(t.chunk=we(void 0!==e.chunk?e.chunk:new Uint8Array)),void 0!==e.sender&&(t.sender=e.sender),t},fromPartial:function(e){var t=Object.assign({},Z);return void 0!==e.index&&null!==e.index?t.index=e.index:t.index=0,void 0!==e.chunk&&null!==e.chunk?t.chunk=e.chunk:t.chunk=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",t}};var H={};t.Response={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return void 0!==e.exception&&t.ResponseException.encode(e.exception,n.uint32(10).fork()).ldelim(),void 0!==e.echo&&t.ResponseEcho.encode(e.echo,n.uint32(18).fork()).ldelim(),void 0!==e.flush&&t.ResponseFlush.encode(e.flush,n.uint32(26).fork()).ldelim(),void 0!==e.info&&t.ResponseInfo.encode(e.info,n.uint32(34).fork()).ldelim(),void 0!==e.setOption&&t.ResponseSetOption.encode(e.setOption,n.uint32(42).fork()).ldelim(),void 0!==e.initChain&&t.ResponseInitChain.encode(e.initChain,n.uint32(50).fork()).ldelim(),void 0!==e.query&&t.ResponseQuery.encode(e.query,n.uint32(58).fork()).ldelim(),void 0!==e.beginBlock&&t.ResponseBeginBlock.encode(e.beginBlock,n.uint32(66).fork()).ldelim(),void 0!==e.checkTx&&t.ResponseCheckTx.encode(e.checkTx,n.uint32(74).fork()).ldelim(),void 0!==e.deliverTx&&t.ResponseDeliverTx.encode(e.deliverTx,n.uint32(82).fork()).ldelim(),void 0!==e.endBlock&&t.ResponseEndBlock.encode(e.endBlock,n.uint32(90).fork()).ldelim(),void 0!==e.commit&&t.ResponseCommit.encode(e.commit,n.uint32(98).fork()).ldelim(),void 0!==e.listSnapshots&&t.ResponseListSnapshots.encode(e.listSnapshots,n.uint32(106).fork()).ldelim(),void 0!==e.offerSnapshot&&t.ResponseOfferSnapshot.encode(e.offerSnapshot,n.uint32(114).fork()).ldelim(),void 0!==e.loadSnapshotChunk&&t.ResponseLoadSnapshotChunk.encode(e.loadSnapshotChunk,n.uint32(122).fork()).ldelim(),void 0!==e.applySnapshotChunk&&t.ResponseApplySnapshotChunk.encode(e.applySnapshotChunk,n.uint32(130).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},H);r.pos>>3){case 1:i.exception=t.ResponseException.decode(r,r.uint32());break;case 2:i.echo=t.ResponseEcho.decode(r,r.uint32());break;case 3:i.flush=t.ResponseFlush.decode(r,r.uint32());break;case 4:i.info=t.ResponseInfo.decode(r,r.uint32());break;case 5:i.setOption=t.ResponseSetOption.decode(r,r.uint32());break;case 6:i.initChain=t.ResponseInitChain.decode(r,r.uint32());break;case 7:i.query=t.ResponseQuery.decode(r,r.uint32());break;case 8:i.beginBlock=t.ResponseBeginBlock.decode(r,r.uint32());break;case 9:i.checkTx=t.ResponseCheckTx.decode(r,r.uint32());break;case 10:i.deliverTx=t.ResponseDeliverTx.decode(r,r.uint32());break;case 11:i.endBlock=t.ResponseEndBlock.decode(r,r.uint32());break;case 12:i.commit=t.ResponseCommit.decode(r,r.uint32());break;case 13:i.listSnapshots=t.ResponseListSnapshots.decode(r,r.uint32());break;case 14:i.offerSnapshot=t.ResponseOfferSnapshot.decode(r,r.uint32());break;case 15:i.loadSnapshotChunk=t.ResponseLoadSnapshotChunk.decode(r,r.uint32());break;case 16:i.applySnapshotChunk=t.ResponseApplySnapshotChunk.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},H);return void 0!==e.exception&&null!==e.exception?n.exception=t.ResponseException.fromJSON(e.exception):n.exception=void 0,void 0!==e.echo&&null!==e.echo?n.echo=t.ResponseEcho.fromJSON(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.ResponseFlush.fromJSON(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.ResponseInfo.fromJSON(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.ResponseSetOption.fromJSON(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.ResponseInitChain.fromJSON(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.ResponseQuery.fromJSON(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.ResponseBeginBlock.fromJSON(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.ResponseCheckTx.fromJSON(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.ResponseDeliverTx.fromJSON(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.ResponseEndBlock.fromJSON(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.ResponseCommit.fromJSON(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.ResponseListSnapshots.fromJSON(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.ResponseOfferSnapshot.fromJSON(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.ResponseLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.ResponseApplySnapshotChunk.fromJSON(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n},toJSON:function(e){var n={};return void 0!==e.exception&&(n.exception=e.exception?t.ResponseException.toJSON(e.exception):void 0),void 0!==e.echo&&(n.echo=e.echo?t.ResponseEcho.toJSON(e.echo):void 0),void 0!==e.flush&&(n.flush=e.flush?t.ResponseFlush.toJSON(e.flush):void 0),void 0!==e.info&&(n.info=e.info?t.ResponseInfo.toJSON(e.info):void 0),void 0!==e.setOption&&(n.setOption=e.setOption?t.ResponseSetOption.toJSON(e.setOption):void 0),void 0!==e.initChain&&(n.initChain=e.initChain?t.ResponseInitChain.toJSON(e.initChain):void 0),void 0!==e.query&&(n.query=e.query?t.ResponseQuery.toJSON(e.query):void 0),void 0!==e.beginBlock&&(n.beginBlock=e.beginBlock?t.ResponseBeginBlock.toJSON(e.beginBlock):void 0),void 0!==e.checkTx&&(n.checkTx=e.checkTx?t.ResponseCheckTx.toJSON(e.checkTx):void 0),void 0!==e.deliverTx&&(n.deliverTx=e.deliverTx?t.ResponseDeliverTx.toJSON(e.deliverTx):void 0),void 0!==e.endBlock&&(n.endBlock=e.endBlock?t.ResponseEndBlock.toJSON(e.endBlock):void 0),void 0!==e.commit&&(n.commit=e.commit?t.ResponseCommit.toJSON(e.commit):void 0),void 0!==e.listSnapshots&&(n.listSnapshots=e.listSnapshots?t.ResponseListSnapshots.toJSON(e.listSnapshots):void 0),void 0!==e.offerSnapshot&&(n.offerSnapshot=e.offerSnapshot?t.ResponseOfferSnapshot.toJSON(e.offerSnapshot):void 0),void 0!==e.loadSnapshotChunk&&(n.loadSnapshotChunk=e.loadSnapshotChunk?t.ResponseLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),void 0!==e.applySnapshotChunk&&(n.applySnapshotChunk=e.applySnapshotChunk?t.ResponseApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),n},fromPartial:function(e){var n=Object.assign({},H);return void 0!==e.exception&&null!==e.exception?n.exception=t.ResponseException.fromPartial(e.exception):n.exception=void 0,void 0!==e.echo&&null!==e.echo?n.echo=t.ResponseEcho.fromPartial(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.ResponseFlush.fromPartial(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.ResponseInfo.fromPartial(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.ResponseSetOption.fromPartial(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.ResponseInitChain.fromPartial(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.ResponseQuery.fromPartial(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.ResponseBeginBlock.fromPartial(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.ResponseCheckTx.fromPartial(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.ResponseDeliverTx.fromPartial(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.ResponseEndBlock.fromPartial(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.ResponseCommit.fromPartial(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.ResponseListSnapshots.fromPartial(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.ResponseOfferSnapshot.fromPartial(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.ResponseLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.ResponseApplySnapshotChunk.fromPartial(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n}};var z={error:""};t.ResponseException={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return""!==e.error&&t.uint32(10).string(e.error),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},z);n.pos>>3==1?a.error=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},z);return void 0!==e.error&&null!==e.error?t.error=String(e.error):t.error="",t},toJSON:function(e){var t={};return void 0!==e.error&&(t.error=e.error),t},fromPartial:function(e){var t=Object.assign({},z);return void 0!==e.error&&null!==e.error?t.error=e.error:t.error="",t}};var Q={message:""};t.ResponseEcho={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return""!==e.message&&t.uint32(10).string(e.message),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},Q);n.pos>>3==1?a.message=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},Q);return void 0!==e.message&&null!==e.message?t.message=String(e.message):t.message="",t},toJSON:function(e){var t={};return void 0!==e.message&&(t.message=e.message),t},fromPartial:function(e){var t=Object.assign({},Q);return void 0!==e.message&&null!==e.message?t.message=e.message:t.message="",t}};var q={};t.ResponseFlush={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create()},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},q);n.pos1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return""!==e.data&&t.uint32(10).string(e.data),""!==e.version&&t.uint32(18).string(e.version),e.appVersion.isZero()||t.uint32(24).uint64(e.appVersion),e.lastBlockHeight.isZero()||t.uint32(32).int64(e.lastBlockHeight),0!==e.lastBlockAppHash.length&&t.uint32(42).bytes(e.lastBlockAppHash),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},V);for(a.lastBlockAppHash=new Uint8Array;n.pos>>3){case 1:a.data=n.string();break;case 2:a.version=n.string();break;case 3:a.appVersion=n.uint64();break;case 4:a.lastBlockHeight=n.int64();break;case 5:a.lastBlockAppHash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},V);return t.lastBlockAppHash=new Uint8Array,void 0!==e.data&&null!==e.data?t.data=String(e.data):t.data="",void 0!==e.version&&null!==e.version?t.version=String(e.version):t.version="",void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=f.default.fromString(e.appVersion):t.appVersion=f.default.UZERO,void 0!==e.lastBlockHeight&&null!==e.lastBlockHeight?t.lastBlockHeight=f.default.fromString(e.lastBlockHeight):t.lastBlockHeight=f.default.ZERO,void 0!==e.lastBlockAppHash&&null!==e.lastBlockAppHash&&(t.lastBlockAppHash=ge(e.lastBlockAppHash)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=e.data),void 0!==e.version&&(t.version=e.version),void 0!==e.appVersion&&(t.appVersion=(e.appVersion||f.default.UZERO).toString()),void 0!==e.lastBlockHeight&&(t.lastBlockHeight=(e.lastBlockHeight||f.default.ZERO).toString()),void 0!==e.lastBlockAppHash&&(t.lastBlockAppHash=we(void 0!==e.lastBlockAppHash?e.lastBlockAppHash:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},V);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data="",void 0!==e.version&&null!==e.version?t.version=e.version:t.version="",void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=e.appVersion:t.appVersion=f.default.UZERO,void 0!==e.lastBlockHeight&&null!==e.lastBlockHeight?t.lastBlockHeight=e.lastBlockHeight:t.lastBlockHeight=f.default.ZERO,void 0!==e.lastBlockAppHash&&null!==e.lastBlockAppHash?t.lastBlockAppHash=e.lastBlockAppHash:t.lastBlockAppHash=new Uint8Array,t}};var J={code:0,log:"",info:""};t.ResponseSetOption={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.code&&t.uint32(8).uint32(e.code),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},J);n.pos>>3){case 1:a.code=n.uint32();break;case 3:a.log=n.string();break;case 4:a.info=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},J);return void 0!==e.code&&null!==e.code?t.code=Number(e.code):t.code=0,void 0!==e.log&&null!==e.log?t.log=String(e.log):t.log="",void 0!==e.info&&null!==e.info?t.info=String(e.info):t.info="",t},toJSON:function(e){var t={};return void 0!==e.code&&(t.code=e.code),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),t},fromPartial:function(e){var t=Object.assign({},J);return void 0!==e.code&&null!==e.code?t.code=e.code:t.code=0,void 0!==e.log&&null!==e.log?t.log=e.log:t.log="",void 0!==e.info&&null!==e.info?t.info=e.info:t.info="",t}};var K={};t.ResponseInitChain={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();void 0!==e.consensusParams&&t.ConsensusParams.encode(e.consensusParams,n.uint32(10).fork()).ldelim();var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.ValidatorUpdate.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return 0!==e.appHash.length&&n.uint32(26).bytes(e.appHash),n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},K);for(i.validators=[],i.appHash=new Uint8Array;r.pos>>3){case 1:i.consensusParams=t.ConsensusParams.decode(r,r.uint32());break;case 2:i.validators.push(t.ValidatorUpdate.decode(r,r.uint32()));break;case 3:i.appHash=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},K);if(n.validators=[],n.appHash=new Uint8Array,void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromJSON(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appHash&&null!==e.appHash&&(n.appHash=ge(e.appHash)),n},toJSON:function(e){var n={};return void 0!==e.consensusParams&&(n.consensusParams=e.consensusParams?t.ConsensusParams.toJSON(e.consensusParams):void 0),e.validators?n.validators=e.validators.map((function(e){return e?t.ValidatorUpdate.toJSON(e):void 0})):n.validators=[],void 0!==e.appHash&&(n.appHash=we(void 0!==e.appHash?e.appHash:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},K);if(n.validators=[],void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromPartial(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appHash&&null!==e.appHash?n.appHash=e.appHash:n.appHash=new Uint8Array,n}};var G={code:0,log:"",info:"",index:f.default.ZERO,height:f.default.ZERO,codespace:""};t.ResponseQuery={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.code&&t.uint32(8).uint32(e.code),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),e.index.isZero()||t.uint32(40).int64(e.index),0!==e.key.length&&t.uint32(50).bytes(e.key),0!==e.value.length&&t.uint32(58).bytes(e.value),void 0!==e.proofOps&&p.ProofOps.encode(e.proofOps,t.uint32(66).fork()).ldelim(),e.height.isZero()||t.uint32(72).int64(e.height),""!==e.codespace&&t.uint32(82).string(e.codespace),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},G);for(a.key=new Uint8Array,a.value=new Uint8Array;n.pos>>3){case 1:a.code=n.uint32();break;case 3:a.log=n.string();break;case 4:a.info=n.string();break;case 5:a.index=n.int64();break;case 6:a.key=n.bytes();break;case 7:a.value=n.bytes();break;case 8:a.proofOps=p.ProofOps.decode(n,n.uint32());break;case 9:a.height=n.int64();break;case 10:a.codespace=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},G);return t.key=new Uint8Array,t.value=new Uint8Array,void 0!==e.code&&null!==e.code?t.code=Number(e.code):t.code=0,void 0!==e.log&&null!==e.log?t.log=String(e.log):t.log="",void 0!==e.info&&null!==e.info?t.info=String(e.info):t.info="",void 0!==e.index&&null!==e.index?t.index=f.default.fromString(e.index):t.index=f.default.ZERO,void 0!==e.key&&null!==e.key&&(t.key=ge(e.key)),void 0!==e.value&&null!==e.value&&(t.value=ge(e.value)),void 0!==e.proofOps&&null!==e.proofOps?t.proofOps=p.ProofOps.fromJSON(e.proofOps):t.proofOps=void 0,void 0!==e.height&&null!==e.height?t.height=f.default.fromString(e.height):t.height=f.default.ZERO,void 0!==e.codespace&&null!==e.codespace?t.codespace=String(e.codespace):t.codespace="",t},toJSON:function(e){var t={};return void 0!==e.code&&(t.code=e.code),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),void 0!==e.index&&(t.index=(e.index||f.default.ZERO).toString()),void 0!==e.key&&(t.key=we(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(t.value=we(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.proofOps&&(t.proofOps=e.proofOps?p.ProofOps.toJSON(e.proofOps):void 0),void 0!==e.height&&(t.height=(e.height||f.default.ZERO).toString()),void 0!==e.codespace&&(t.codespace=e.codespace),t},fromPartial:function(e){var t=Object.assign({},G);return void 0!==e.code&&null!==e.code?t.code=e.code:t.code=0,void 0!==e.log&&null!==e.log?t.log=e.log:t.log="",void 0!==e.info&&null!==e.info?t.info=e.info:t.info="",void 0!==e.index&&null!==e.index?t.index=e.index:t.index=f.default.ZERO,void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.value&&null!==e.value?t.value=e.value:t.value=new Uint8Array,void 0!==e.proofOps&&null!==e.proofOps?t.proofOps=p.ProofOps.fromPartial(e.proofOps):t.proofOps=void 0,void 0!==e.height&&null!==e.height?t.height=e.height:t.height=f.default.ZERO,void 0!==e.codespace&&null!==e.codespace?t.codespace=e.codespace:t.codespace="",t}};var W={};t.ResponseBeginBlock={encode:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create(),a=i(e.events);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.Event.encode(o,r.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return r},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},W);for(i.events=[];r.pos>>3==1?i.events.push(t.Event.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},W);if(n.events=[],void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],n},fromPartial:function(e){var n=Object.assign({},W);if(n.events=[],void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var Y={code:0,log:"",info:"",gasWanted:f.default.ZERO,gasUsed:f.default.ZERO,codespace:""};t.ResponseCheckTx={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();0!==e.code&&n.uint32(8).uint32(e.code),0!==e.data.length&&n.uint32(18).bytes(e.data),""!==e.log&&n.uint32(26).string(e.log),""!==e.info&&n.uint32(34).string(e.info),e.gasWanted.isZero()||n.uint32(40).int64(e.gasWanted),e.gasUsed.isZero()||n.uint32(48).int64(e.gasUsed);var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.Event.encode(o,n.uint32(58).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return""!==e.codespace&&n.uint32(66).string(e.codespace),n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},Y);for(i.events=[],i.data=new Uint8Array;r.pos>>3){case 1:i.code=r.uint32();break;case 2:i.data=r.bytes();break;case 3:i.log=r.string();break;case 4:i.info=r.string();break;case 5:i.gasWanted=r.int64();break;case 6:i.gasUsed=r.int64();break;case 7:i.events.push(t.Event.decode(r,r.uint32()));break;case 8:i.codespace=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},Y);if(n.events=[],n.data=new Uint8Array,void 0!==e.code&&null!==e.code?n.code=Number(e.code):n.code=0,void 0!==e.data&&null!==e.data&&(n.data=ge(e.data)),void 0!==e.log&&null!==e.log?n.log=String(e.log):n.log="",void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=f.default.fromString(e.gasWanted):n.gasWanted=f.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=f.default.fromString(e.gasUsed):n.gasUsed=f.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=String(e.codespace):n.codespace="",n},toJSON:function(e){var n={};return void 0!==e.code&&(n.code=e.code),void 0!==e.data&&(n.data=we(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(n.log=e.log),void 0!==e.info&&(n.info=e.info),void 0!==e.gasWanted&&(n.gasWanted=(e.gasWanted||f.default.ZERO).toString()),void 0!==e.gasUsed&&(n.gasUsed=(e.gasUsed||f.default.ZERO).toString()),e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],void 0!==e.codespace&&(n.codespace=e.codespace),n},fromPartial:function(e){var n=Object.assign({},Y);if(n.events=[],void 0!==e.code&&null!==e.code?n.code=e.code:n.code=0,void 0!==e.data&&null!==e.data?n.data=e.data:n.data=new Uint8Array,void 0!==e.log&&null!==e.log?n.log=e.log:n.log="",void 0!==e.info&&null!==e.info?n.info=e.info:n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=e.gasWanted:n.gasWanted=f.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=e.gasUsed:n.gasUsed=f.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=e.codespace:n.codespace="",n}};var X={code:0,log:"",info:"",gasWanted:f.default.ZERO,gasUsed:f.default.ZERO,codespace:""};t.ResponseDeliverTx={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();0!==e.code&&n.uint32(8).uint32(e.code),0!==e.data.length&&n.uint32(18).bytes(e.data),""!==e.log&&n.uint32(26).string(e.log),""!==e.info&&n.uint32(34).string(e.info),e.gasWanted.isZero()||n.uint32(40).int64(e.gasWanted),e.gasUsed.isZero()||n.uint32(48).int64(e.gasUsed);var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.Event.encode(o,n.uint32(58).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return""!==e.codespace&&n.uint32(66).string(e.codespace),n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},X);for(i.events=[],i.data=new Uint8Array;r.pos>>3){case 1:i.code=r.uint32();break;case 2:i.data=r.bytes();break;case 3:i.log=r.string();break;case 4:i.info=r.string();break;case 5:i.gasWanted=r.int64();break;case 6:i.gasUsed=r.int64();break;case 7:i.events.push(t.Event.decode(r,r.uint32()));break;case 8:i.codespace=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},X);if(n.events=[],n.data=new Uint8Array,void 0!==e.code&&null!==e.code?n.code=Number(e.code):n.code=0,void 0!==e.data&&null!==e.data&&(n.data=ge(e.data)),void 0!==e.log&&null!==e.log?n.log=String(e.log):n.log="",void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=f.default.fromString(e.gasWanted):n.gasWanted=f.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=f.default.fromString(e.gasUsed):n.gasUsed=f.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=String(e.codespace):n.codespace="",n},toJSON:function(e){var n={};return void 0!==e.code&&(n.code=e.code),void 0!==e.data&&(n.data=we(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(n.log=e.log),void 0!==e.info&&(n.info=e.info),void 0!==e.gasWanted&&(n.gasWanted=(e.gasWanted||f.default.ZERO).toString()),void 0!==e.gasUsed&&(n.gasUsed=(e.gasUsed||f.default.ZERO).toString()),e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],void 0!==e.codespace&&(n.codespace=e.codespace),n},fromPartial:function(e){var n=Object.assign({},X);if(n.events=[],void 0!==e.code&&null!==e.code?n.code=e.code:n.code=0,void 0!==e.data&&null!==e.data?n.data=e.data:n.data=new Uint8Array,void 0!==e.log&&null!==e.log?n.log=e.log:n.log="",void 0!==e.info&&null!==e.info?n.info=e.info:n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=e.gasWanted:n.gasWanted=f.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=e.gasUsed:n.gasUsed=f.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=e.codespace:n.codespace="",n}};var $={};t.ResponseEndBlock={encode:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create(),a=i(e.validatorUpdates);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.ValidatorUpdate.encode(o,r.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}void 0!==e.consensusParamUpdates&&t.ConsensusParams.encode(e.consensusParamUpdates,r.uint32(18).fork()).ldelim();var s,c=i(e.events);try{for(c.s();!(s=c.n()).done;){var u=s.value;t.Event.encode(u,r.uint32(26).fork()).ldelim()}}catch(e){c.e(e)}finally{c.f()}return r},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},$);for(i.validatorUpdates=[],i.events=[];r.pos>>3){case 1:i.validatorUpdates.push(t.ValidatorUpdate.decode(r,r.uint32()));break;case 2:i.consensusParamUpdates=t.ConsensusParams.decode(r,r.uint32());break;case 3:i.events.push(t.Event.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},$);if(n.validatorUpdates=[],n.events=[],void 0!==e.validatorUpdates&&null!==e.validatorUpdates){var r,a=i(e.validatorUpdates);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validatorUpdates.push(t.ValidatorUpdate.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.consensusParamUpdates&&null!==e.consensusParamUpdates?n.consensusParamUpdates=t.ConsensusParams.fromJSON(e.consensusParamUpdates):n.consensusParamUpdates=void 0,void 0!==e.events&&null!==e.events){var s,c=i(e.events);try{for(c.s();!(s=c.n()).done;){var u=s.value;n.events.push(t.Event.fromJSON(u))}}catch(e){c.e(e)}finally{c.f()}}return n},toJSON:function(e){var n={};return e.validatorUpdates?n.validatorUpdates=e.validatorUpdates.map((function(e){return e?t.ValidatorUpdate.toJSON(e):void 0})):n.validatorUpdates=[],void 0!==e.consensusParamUpdates&&(n.consensusParamUpdates=e.consensusParamUpdates?t.ConsensusParams.toJSON(e.consensusParamUpdates):void 0),e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],n},fromPartial:function(e){var n=Object.assign({},$);if(n.validatorUpdates=[],n.events=[],void 0!==e.validatorUpdates&&null!==e.validatorUpdates){var r,a=i(e.validatorUpdates);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validatorUpdates.push(t.ValidatorUpdate.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.consensusParamUpdates&&null!==e.consensusParamUpdates?n.consensusParamUpdates=t.ConsensusParams.fromPartial(e.consensusParamUpdates):n.consensusParamUpdates=void 0,void 0!==e.events&&null!==e.events){var s,c=i(e.events);try{for(c.s();!(s=c.n()).done;){var u=s.value;n.events.push(t.Event.fromPartial(u))}}catch(e){c.e(e)}finally{c.f()}}return n}};var ee={retainHeight:f.default.ZERO};t.ResponseCommit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.data.length&&t.uint32(18).bytes(e.data),e.retainHeight.isZero()||t.uint32(24).int64(e.retainHeight),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ee);for(a.data=new Uint8Array;n.pos>>3){case 2:a.data=n.bytes();break;case 3:a.retainHeight=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},ee);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=ge(e.data)),void 0!==e.retainHeight&&null!==e.retainHeight?t.retainHeight=f.default.fromString(e.retainHeight):t.retainHeight=f.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=we(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.retainHeight&&(t.retainHeight=(e.retainHeight||f.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},ee);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.retainHeight&&null!==e.retainHeight?t.retainHeight=e.retainHeight:t.retainHeight=f.default.ZERO,t}};var te={};t.ResponseListSnapshots={encode:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create(),a=i(e.snapshots);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.Snapshot.encode(o,r.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return r},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},te);for(i.snapshots=[];r.pos>>3==1?i.snapshots.push(t.Snapshot.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},te);if(n.snapshots=[],void 0!==e.snapshots&&null!==e.snapshots){var r,a=i(e.snapshots);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.snapshots.push(t.Snapshot.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return e.snapshots?n.snapshots=e.snapshots.map((function(e){return e?t.Snapshot.toJSON(e):void 0})):n.snapshots=[],n},fromPartial:function(e){var n=Object.assign({},te);if(n.snapshots=[],void 0!==e.snapshots&&null!==e.snapshots){var r,a=i(e.snapshots);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.snapshots.push(t.Snapshot.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var ne={result:0};t.ResponseOfferSnapshot={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.result&&t.uint32(8).int32(e.result),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ne);n.pos>>3==1?a.result=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},ne);return void 0!==e.result&&null!==e.result?t.result=x(e.result):t.result=0,t},toJSON:function(e){var t={};return void 0!==e.result&&(t.result=_(e.result)),t},fromPartial:function(e){var t=Object.assign({},ne);return void 0!==e.result&&null!==e.result?t.result=e.result:t.result=0,t}};var re={};t.ResponseLoadSnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.chunk.length&&t.uint32(10).bytes(e.chunk),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},re);for(a.chunk=new Uint8Array;n.pos>>3==1?a.chunk=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},re);return t.chunk=new Uint8Array,void 0!==e.chunk&&null!==e.chunk&&(t.chunk=ge(e.chunk)),t},toJSON:function(e){var t={};return void 0!==e.chunk&&(t.chunk=we(void 0!==e.chunk?e.chunk:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},re);return void 0!==e.chunk&&null!==e.chunk?t.chunk=e.chunk:t.chunk=new Uint8Array,t}};var ae={result:0,refetchChunks:0,rejectSenders:""};t.ResponseApplySnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();0!==e.result&&t.uint32(8).int32(e.result),t.uint32(18).fork();var n,r=i(e.refetchChunks);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.uint32(a)}}catch(e){r.e(e)}finally{r.f()}t.ldelim();var o,s=i(e.rejectSenders);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.uint32(26).string(c)}}catch(e){s.e(e)}finally{s.f()}return t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ae);for(a.refetchChunks=[],a.rejectSenders=[];n.pos>>3){case 1:a.result=n.int32();break;case 2:if(2==(7&i))for(var o=n.uint32()+n.pos;n.pos1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return void 0!==e.block&&t.BlockParams.encode(e.block,n.uint32(10).fork()).ldelim(),void 0!==e.evidence&&h.EvidenceParams.encode(e.evidence,n.uint32(18).fork()).ldelim(),void 0!==e.validator&&h.ValidatorParams.encode(e.validator,n.uint32(26).fork()).ldelim(),void 0!==e.version&&h.VersionParams.encode(e.version,n.uint32(34).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},ie);r.pos>>3){case 1:i.block=t.BlockParams.decode(r,r.uint32());break;case 2:i.evidence=h.EvidenceParams.decode(r,r.uint32());break;case 3:i.validator=h.ValidatorParams.decode(r,r.uint32());break;case 4:i.version=h.VersionParams.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},ie);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromJSON(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=h.EvidenceParams.fromJSON(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=h.ValidatorParams.fromJSON(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=h.VersionParams.fromJSON(e.version):n.version=void 0,n},toJSON:function(e){var n={};return void 0!==e.block&&(n.block=e.block?t.BlockParams.toJSON(e.block):void 0),void 0!==e.evidence&&(n.evidence=e.evidence?h.EvidenceParams.toJSON(e.evidence):void 0),void 0!==e.validator&&(n.validator=e.validator?h.ValidatorParams.toJSON(e.validator):void 0),void 0!==e.version&&(n.version=e.version?h.VersionParams.toJSON(e.version):void 0),n},fromPartial:function(e){var n=Object.assign({},ie);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromPartial(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=h.EvidenceParams.fromPartial(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=h.ValidatorParams.fromPartial(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=h.VersionParams.fromPartial(e.version):n.version=void 0,n}};var oe={maxBytes:f.default.ZERO,maxGas:f.default.ZERO};t.BlockParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return e.maxBytes.isZero()||t.uint32(8).int64(e.maxBytes),e.maxGas.isZero()||t.uint32(16).int64(e.maxGas),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},oe);n.pos>>3){case 1:a.maxBytes=n.int64();break;case 2:a.maxGas=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},oe);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=f.default.fromString(e.maxBytes):t.maxBytes=f.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=f.default.fromString(e.maxGas):t.maxGas=f.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.maxBytes&&(t.maxBytes=(e.maxBytes||f.default.ZERO).toString()),void 0!==e.maxGas&&(t.maxGas=(e.maxGas||f.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},oe);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=e.maxBytes:t.maxBytes=f.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=e.maxGas:t.maxGas=f.default.ZERO,t}};var se={round:0};t.LastCommitInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();0!==e.round&&n.uint32(8).int32(e.round);var r,a=i(e.votes);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.VoteInfo.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},se);for(i.votes=[];r.pos>>3){case 1:i.round=r.int32();break;case 2:i.votes.push(t.VoteInfo.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},se);if(n.votes=[],void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.votes&&null!==e.votes){var r,a=i(e.votes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.votes.push(t.VoteInfo.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return void 0!==e.round&&(n.round=e.round),e.votes?n.votes=e.votes.map((function(e){return e?t.VoteInfo.toJSON(e):void 0})):n.votes=[],n},fromPartial:function(e){var n=Object.assign({},se);if(n.votes=[],void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.votes&&null!==e.votes){var r,a=i(e.votes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.votes.push(t.VoteInfo.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var ce={type:""};t.Event={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();""!==e.type&&n.uint32(10).string(e.type);var r,a=i(e.attributes);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.EventAttribute.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},ce);for(i.attributes=[];r.pos>>3){case 1:i.type=r.string();break;case 2:i.attributes.push(t.EventAttribute.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},ce);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=String(e.type):n.type="",void 0!==e.attributes&&null!==e.attributes){var r,a=i(e.attributes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.attributes.push(t.EventAttribute.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=e.type),e.attributes?n.attributes=e.attributes.map((function(e){return e?t.EventAttribute.toJSON(e):void 0})):n.attributes=[],n},fromPartial:function(e){var n=Object.assign({},ce);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=e.type:n.type="",void 0!==e.attributes&&null!==e.attributes){var r,a=i(e.attributes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.attributes.push(t.EventAttribute.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var ue={index:!1};t.EventAttribute={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),0!==e.value.length&&t.uint32(18).bytes(e.value),!0===e.index&&t.uint32(24).bool(e.index),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ue);for(a.key=new Uint8Array,a.value=new Uint8Array;n.pos>>3){case 1:a.key=n.bytes();break;case 2:a.value=n.bytes();break;case 3:a.index=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},ue);return t.key=new Uint8Array,t.value=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=ge(e.key)),void 0!==e.value&&null!==e.value&&(t.value=ge(e.value)),void 0!==e.index&&null!==e.index?t.index=Boolean(e.index):t.index=!1,t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=we(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(t.value=we(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.index&&(t.index=e.index),t},fromPartial:function(e){var t=Object.assign({},ue);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.value&&null!==e.value?t.value=e.value:t.value=new Uint8Array,void 0!==e.index&&null!==e.index?t.index=e.index:t.index=!1,t}};var de={height:f.default.ZERO,index:0};t.TxResult={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return e.height.isZero()||n.uint32(8).int64(e.height),0!==e.index&&n.uint32(16).uint32(e.index),0!==e.tx.length&&n.uint32(26).bytes(e.tx),void 0!==e.result&&t.ResponseDeliverTx.encode(e.result,n.uint32(34).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},de);for(i.tx=new Uint8Array;r.pos>>3){case 1:i.height=r.int64();break;case 2:i.index=r.uint32();break;case 3:i.tx=r.bytes();break;case 4:i.result=t.ResponseDeliverTx.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},de);return n.tx=new Uint8Array,void 0!==e.height&&null!==e.height?n.height=f.default.fromString(e.height):n.height=f.default.ZERO,void 0!==e.index&&null!==e.index?n.index=Number(e.index):n.index=0,void 0!==e.tx&&null!==e.tx&&(n.tx=ge(e.tx)),void 0!==e.result&&null!==e.result?n.result=t.ResponseDeliverTx.fromJSON(e.result):n.result=void 0,n},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=(e.height||f.default.ZERO).toString()),void 0!==e.index&&(n.index=e.index),void 0!==e.tx&&(n.tx=we(void 0!==e.tx?e.tx:new Uint8Array)),void 0!==e.result&&(n.result=e.result?t.ResponseDeliverTx.toJSON(e.result):void 0),n},fromPartial:function(e){var n=Object.assign({},de);return void 0!==e.height&&null!==e.height?n.height=e.height:n.height=f.default.ZERO,void 0!==e.index&&null!==e.index?n.index=e.index:n.index=0,void 0!==e.tx&&null!==e.tx?n.tx=e.tx:n.tx=new Uint8Array,void 0!==e.result&&null!==e.result?n.result=t.ResponseDeliverTx.fromPartial(e.result):n.result=void 0,n}};var fe={power:f.default.ZERO};t.Validator={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.address.length&&t.uint32(10).bytes(e.address),e.power.isZero()||t.uint32(24).int64(e.power),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},fe);for(a.address=new Uint8Array;n.pos>>3){case 1:a.address=n.bytes();break;case 3:a.power=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},fe);return t.address=new Uint8Array,void 0!==e.address&&null!==e.address&&(t.address=ge(e.address)),void 0!==e.power&&null!==e.power?t.power=f.default.fromString(e.power):t.power=f.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=we(void 0!==e.address?e.address:new Uint8Array)),void 0!==e.power&&(t.power=(e.power||f.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},fe);return void 0!==e.address&&null!==e.address?t.address=e.address:t.address=new Uint8Array,void 0!==e.power&&null!==e.power?t.power=e.power:t.power=f.default.ZERO,t}};var le={power:f.default.ZERO};t.ValidatorUpdate={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return void 0!==e.pubKey&&y.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),e.power.isZero()||t.uint32(16).int64(e.power),t},decode:function(e,t){for(var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},le);n.pos>>3){case 1:a.pubKey=y.PublicKey.decode(n,n.uint32());break;case 2:a.power=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},le);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=y.PublicKey.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.power&&null!==e.power?t.power=f.default.fromString(e.power):t.power=f.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.pubKey&&(t.pubKey=e.pubKey?y.PublicKey.toJSON(e.pubKey):void 0),void 0!==e.power&&(t.power=(e.power||f.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},le);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=y.PublicKey.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.power&&null!==e.power?t.power=e.power:t.power=f.default.ZERO,t}};var be={signedLastBlock:!1};t.VoteInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return void 0!==e.validator&&t.Validator.encode(e.validator,n.uint32(10).fork()).ldelim(),!0===e.signedLastBlock&&n.uint32(16).bool(e.signedLastBlock),n},decode:function(e,n){for(var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},be);r.pos>>3){case 1:i.validator=t.Validator.decode(r,r.uint32());break;case 2:i.signedLastBlock=r.bool();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},be);return void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromJSON(e.validator):n.validator=void 0,void 0!==e.signedLastBlock&&null!==e.signedLastBlock?n.signedLastBlock=Boolean(e.signedLastBlock):n.signedLastBlock=!1,n},toJSON:function(e){var n={};return void 0!==e.validator&&(n.validator=e.validator?t.Validator.toJSON(e.validator):void 0),void 0!==e.signedLastBlock&&(n.signedLastBlock=e.signedLastBlock),n},fromPartial:function(e){var n=Object.assign({},be);return void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromPartial(e.validator):n.validator=void 0,void 0!==e.signedLastBlock&&null!==e.signedLastBlock?n.signedLastBlock=e.signedLastBlock:n.signedLastBlock=!1,n}};var pe={type:0,height:f.default.ZERO,totalVotingPower:f.default.ZERO};t.Evidence={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return 0!==e.type&&n.uint32(8).int32(e.type),void 0!==e.validator&&t.Validator.encode(e.validator,n.uint32(18).fork()).ldelim(),e.height.isZero()||n.uint32(24).int64(e.height),void 0!==e.time&&m.Timestamp.encode(xe(e.time),n.uint32(34).fork()).ldelim(),e.totalVotingPower.isZero()||n.uint32(40).int64(e.totalVotingPower),n},decode:function(e,n){for(var r=e instanceof l.default.Reader?e:new l.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},pe);r.pos>>3){case 1:i.type=r.int32();break;case 2:i.validator=t.Validator.decode(r,r.uint32());break;case 3:i.height=r.int64();break;case 4:i.time=_e(m.Timestamp.decode(r,r.uint32()));break;case 5:i.totalVotingPower=r.int64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},pe);return void 0!==e.type&&null!==e.type?n.type=A(e.type):n.type=0,void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromJSON(e.validator):n.validator=void 0,void 0!==e.height&&null!==e.height?n.height=f.default.fromString(e.height):n.height=f.default.ZERO,void 0!==e.time&&null!==e.time?n.time=ke(e.time):n.time=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=f.default.fromString(e.totalVotingPower):n.totalVotingPower=f.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=w(e.type)),void 0!==e.validator&&(n.validator=e.validator?t.Validator.toJSON(e.validator):void 0),void 0!==e.height&&(n.height=(e.height||f.default.ZERO).toString()),void 0!==e.time&&(n.time=e.time.toISOString()),void 0!==e.totalVotingPower&&(n.totalVotingPower=(e.totalVotingPower||f.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},pe);return void 0!==e.type&&null!==e.type?n.type=e.type:n.type=0,void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromPartial(e.validator):n.validator=void 0,void 0!==e.height&&null!==e.height?n.height=e.height:n.height=f.default.ZERO,void 0!==e.time&&null!==e.time?n.time=e.time:n.time=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=e.totalVotingPower:n.totalVotingPower=f.default.ZERO,n}};var he={height:f.default.UZERO,format:0,chunks:0};t.Snapshot={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.Writer.create();return e.height.isZero()||t.uint32(8).uint64(e.height),0!==e.format&&t.uint32(16).uint32(e.format),0!==e.chunks&&t.uint32(24).uint32(e.chunks),0!==e.hash.length&&t.uint32(34).bytes(e.hash),0!==e.metadata.length&&t.uint32(42).bytes(e.metadata),t},decode:function(e,t){var n=e instanceof l.default.Reader?e:new l.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},he);for(a.hash=new Uint8Array,a.metadata=new Uint8Array;n.pos>>3){case 1:a.height=n.uint64();break;case 2:a.format=n.uint32();break;case 3:a.chunks=n.uint32();break;case 4:a.hash=n.bytes();break;case 5:a.metadata=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},he);return t.hash=new Uint8Array,t.metadata=new Uint8Array,void 0!==e.height&&null!==e.height?t.height=f.default.fromString(e.height):t.height=f.default.UZERO,void 0!==e.format&&null!==e.format?t.format=Number(e.format):t.format=0,void 0!==e.chunks&&null!==e.chunks?t.chunks=Number(e.chunks):t.chunks=0,void 0!==e.hash&&null!==e.hash&&(t.hash=ge(e.hash)),void 0!==e.metadata&&null!==e.metadata&&(t.metadata=ge(e.metadata)),t},toJSON:function(e){var t={};return void 0!==e.height&&(t.height=(e.height||f.default.UZERO).toString()),void 0!==e.format&&(t.format=e.format),void 0!==e.chunks&&(t.chunks=e.chunks),void 0!==e.hash&&(t.hash=we(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.metadata&&(t.metadata=we(void 0!==e.metadata?e.metadata:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},he);return void 0!==e.height&&null!==e.height?t.height=e.height:t.height=f.default.UZERO,void 0!==e.format&&null!==e.format?t.format=e.format:t.format=0,void 0!==e.chunks&&null!==e.chunks?t.chunks=e.chunks:t.chunks=0,void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash=new Uint8Array,void 0!==e.metadata&&null!==e.metadata?t.metadata=e.metadata:t.metadata=new Uint8Array,t}};var ye=function(){function e(t){r(this,e),this.rpc=t,this.Echo=this.Echo.bind(this),this.Flush=this.Flush.bind(this),this.Info=this.Info.bind(this),this.SetOption=this.SetOption.bind(this),this.DeliverTx=this.DeliverTx.bind(this),this.CheckTx=this.CheckTx.bind(this),this.Query=this.Query.bind(this),this.Commit=this.Commit.bind(this),this.InitChain=this.InitChain.bind(this),this.BeginBlock=this.BeginBlock.bind(this),this.EndBlock=this.EndBlock.bind(this),this.ListSnapshots=this.ListSnapshots.bind(this),this.OfferSnapshot=this.OfferSnapshot.bind(this),this.LoadSnapshotChunk=this.LoadSnapshotChunk.bind(this),this.ApplySnapshotChunk=this.ApplySnapshotChunk.bind(this)}return a(e,[{key:"Echo",value:function(e){var n=t.RequestEcho.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Echo",n).then((function(e){return t.ResponseEcho.decode(new l.default.Reader(e))}))}},{key:"Flush",value:function(e){var n=t.RequestFlush.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Flush",n).then((function(e){return t.ResponseFlush.decode(new l.default.Reader(e))}))}},{key:"Info",value:function(e){var n=t.RequestInfo.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Info",n).then((function(e){return t.ResponseInfo.decode(new l.default.Reader(e))}))}},{key:"SetOption",value:function(e){var n=t.RequestSetOption.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","SetOption",n).then((function(e){return t.ResponseSetOption.decode(new l.default.Reader(e))}))}},{key:"DeliverTx",value:function(e){var n=t.RequestDeliverTx.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","DeliverTx",n).then((function(e){return t.ResponseDeliverTx.decode(new l.default.Reader(e))}))}},{key:"CheckTx",value:function(e){var n=t.RequestCheckTx.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","CheckTx",n).then((function(e){return t.ResponseCheckTx.decode(new l.default.Reader(e))}))}},{key:"Query",value:function(e){var n=t.RequestQuery.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Query",n).then((function(e){return t.ResponseQuery.decode(new l.default.Reader(e))}))}},{key:"Commit",value:function(e){var n=t.RequestCommit.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","Commit",n).then((function(e){return t.ResponseCommit.decode(new l.default.Reader(e))}))}},{key:"InitChain",value:function(e){var n=t.RequestInitChain.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","InitChain",n).then((function(e){return t.ResponseInitChain.decode(new l.default.Reader(e))}))}},{key:"BeginBlock",value:function(e){var n=t.RequestBeginBlock.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","BeginBlock",n).then((function(e){return t.ResponseBeginBlock.decode(new l.default.Reader(e))}))}},{key:"EndBlock",value:function(e){var n=t.RequestEndBlock.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","EndBlock",n).then((function(e){return t.ResponseEndBlock.decode(new l.default.Reader(e))}))}},{key:"ListSnapshots",value:function(e){var n=t.RequestListSnapshots.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ListSnapshots",n).then((function(e){return t.ResponseListSnapshots.decode(new l.default.Reader(e))}))}},{key:"OfferSnapshot",value:function(e){var n=t.RequestOfferSnapshot.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","OfferSnapshot",n).then((function(e){return t.ResponseOfferSnapshot.decode(new l.default.Reader(e))}))}},{key:"LoadSnapshotChunk",value:function(e){var n=t.RequestLoadSnapshotChunk.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","LoadSnapshotChunk",n).then((function(e){return t.ResponseLoadSnapshotChunk.decode(new l.default.Reader(e))}))}},{key:"ApplySnapshotChunk",value:function(e){var n=t.RequestApplySnapshotChunk.encode(e).finish();return this.rpc.request("tendermint.abci.ABCIApplication","ApplySnapshotChunk",n).then((function(e){return t.ResponseApplySnapshotChunk.decode(new l.default.Reader(e))}))}}]),e}();t.ABCIApplicationClientImpl=ye;var me=function(){if(void 0!==me)return me;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),ve=me.atob||function(e){return me.Buffer.from(e,"base64").toString("binary")};function ge(e){for(var t=ve(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.ed25519&&t.uint32(10).bytes(e.ed25519),void 0!==e.secp256k1&&t.uint32(18).bytes(e.secp256k1),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.ed25519=n.bytes();break;case 2:a.secp256k1=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.ed25519&&null!==e.ed25519&&(t.ed25519=d(e.ed25519)),void 0!==e.secp256k1&&null!==e.secp256k1&&(t.secp256k1=d(e.secp256k1)),t},toJSON:function(e){var t={};return void 0!==e.ed25519&&(t.ed25519=void 0!==e.ed25519?l(e.ed25519):void 0),void 0!==e.secp256k1&&(t.secp256k1=void 0!==e.secp256k1?l(e.secp256k1):void 0),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.ed25519&&null!==e.ed25519?t.ed25519=e.ed25519:t.ed25519=void 0,void 0!==e.secp256k1&&null!==e.secp256k1?t.secp256k1=e.secp256k1:t.secp256k1=void 0,t}};var c=function(){if(void 0!==c)return c;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),u=c.atob||function(e){return c.Buffer.from(e,"base64").toString("binary")};function d(e){for(var t=u(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.total.isZero()||t.uint32(8).int64(e.total),e.index.isZero()||t.uint32(16).int64(e.index),0!==e.leafHash.length&&t.uint32(26).bytes(e.leafHash);var n,a=r(e.aunts);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(34).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.aunts=[],a.leafHash=new Uint8Array;n.pos>>3){case 1:a.total=n.int64();break;case 2:a.index=n.int64();break;case 3:a.leafHash=n.bytes();break;case 4:a.aunts.push(n.bytes());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);if(t.aunts=[],t.leafHash=new Uint8Array,void 0!==e.total&&null!==e.total?t.total=i.default.fromString(e.total):t.total=i.default.ZERO,void 0!==e.index&&null!==e.index?t.index=i.default.fromString(e.index):t.index=i.default.ZERO,void 0!==e.leafHash&&null!==e.leafHash&&(t.leafHash=p(e.leafHash)),void 0!==e.aunts&&null!==e.aunts){var n,a=r(e.aunts);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.aunts.push(p(o))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.total&&(t.total=(e.total||i.default.ZERO).toString()),void 0!==e.index&&(t.index=(e.index||i.default.ZERO).toString()),void 0!==e.leafHash&&(t.leafHash=y(void 0!==e.leafHash?e.leafHash:new Uint8Array)),e.aunts?t.aunts=e.aunts.map((function(e){return y(void 0!==e?e:new Uint8Array)})):t.aunts=[],t},fromPartial:function(e){var t=Object.assign({},s);if(t.aunts=[],void 0!==e.total&&null!==e.total?t.total=e.total:t.total=i.default.ZERO,void 0!==e.index&&null!==e.index?t.index=e.index:t.index=i.default.ZERO,void 0!==e.leafHash&&null!==e.leafHash?t.leafHash=e.leafHash:t.leafHash=new Uint8Array,void 0!==e.aunts&&null!==e.aunts){var n,a=r(e.aunts);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.aunts.push(o)}}catch(e){a.e(e)}finally{a.f()}}return t}};var c={};t.ValueOp={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&n.uint32(10).bytes(e.key),void 0!==e.proof&&t.Proof.encode(e.proof,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);for(i.key=new Uint8Array;r.pos>>3){case 1:i.key=r.bytes();break;case 2:i.proof=t.Proof.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);return n.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(n.key=p(e.key)),void 0!==e.proof&&null!==e.proof?n.proof=t.Proof.fromJSON(e.proof):n.proof=void 0,n},toJSON:function(e){var n={};return void 0!==e.key&&(n.key=y(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.proof&&(n.proof=e.proof?t.Proof.toJSON(e.proof):void 0),n},fromPartial:function(e){var n=Object.assign({},c);return void 0!==e.key&&null!==e.key?n.key=e.key:n.key=new Uint8Array,void 0!==e.proof&&null!==e.proof?n.proof=t.Proof.fromPartial(e.proof):n.proof=void 0,n}};var u={key:"",input:"",output:""};t.DominoOp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.key&&t.uint32(10).string(e.key),""!==e.input&&t.uint32(18).string(e.input),""!==e.output&&t.uint32(26).string(e.output),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.key=n.string();break;case 2:a.input=n.string();break;case 3:a.output=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.input&&null!==e.input?t.input=String(e.input):t.input="",void 0!==e.output&&null!==e.output?t.output=String(e.output):t.output="",t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.input&&(t.input=e.input),void 0!==e.output&&(t.output=e.output),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.input&&null!==e.input?t.input=e.input:t.input="",void 0!==e.output&&null!==e.output?t.output=e.output:t.output="",t}};var d={type:""};t.ProofOp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.type&&t.uint32(10).string(e.type),0!==e.key.length&&t.uint32(18).bytes(e.key),0!==e.data.length&&t.uint32(26).bytes(e.data),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.key=new Uint8Array,a.data=new Uint8Array;n.pos>>3){case 1:a.type=n.string();break;case 2:a.key=n.bytes();break;case 3:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return t.key=new Uint8Array,t.data=new Uint8Array,void 0!==e.type&&null!==e.type?t.type=String(e.type):t.type="",void 0!==e.key&&null!==e.key&&(t.key=p(e.key)),void 0!==e.data&&null!==e.data&&(t.data=p(e.data)),t},toJSON:function(e){var t={};return void 0!==e.type&&(t.type=e.type),void 0!==e.key&&(t.key=y(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.data&&(t.data=y(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.type&&null!==e.type?t.type=e.type:t.type="",void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var f={};t.ProofOps={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.ops);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.ProofOp.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);for(i.ops=[];r.pos>>3==1?i.ops.push(t.ProofOp.decode(r,r.uint32())):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},f);if(n.ops=[],void 0!==e.ops&&null!==e.ops){var a,i=r(e.ops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.ops.push(t.ProofOp.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.ops?n.ops=e.ops.map((function(e){return e?t.ProofOp.toJSON(e):void 0})):n.ops=[],n},fromPartial:function(e){var n=Object.assign({},f);if(n.ops=[],void 0!==e.ops&&null!==e.ops){var a,i=r(e.ops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.ops.push(t.ProofOp.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var l=function(){if(void 0!==l)return l;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),b=l.atob||function(e){return l.Buffer.from(e,"base64").toString("binary")};function p(e){for(var t=b(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.block&&t.BlockParams.encode(e.block,n.uint32(10).fork()).ldelim(),void 0!==e.evidence&&t.EvidenceParams.encode(e.evidence,n.uint32(18).fork()).ldelim(),void 0!==e.validator&&t.ValidatorParams.encode(e.validator,n.uint32(26).fork()).ldelim(),void 0!==e.version&&t.VersionParams.encode(e.version,n.uint32(34).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);r.pos>>3){case 1:i.block=t.BlockParams.decode(r,r.uint32());break;case 2:i.evidence=t.EvidenceParams.decode(r,r.uint32());break;case 3:i.validator=t.ValidatorParams.decode(r,r.uint32());break;case 4:i.version=t.VersionParams.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromJSON(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=t.EvidenceParams.fromJSON(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=t.ValidatorParams.fromJSON(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=t.VersionParams.fromJSON(e.version):n.version=void 0,n},toJSON:function(e){var n={};return void 0!==e.block&&(n.block=e.block?t.BlockParams.toJSON(e.block):void 0),void 0!==e.evidence&&(n.evidence=e.evidence?t.EvidenceParams.toJSON(e.evidence):void 0),void 0!==e.validator&&(n.validator=e.validator?t.ValidatorParams.toJSON(e.validator):void 0),void 0!==e.version&&(n.version=e.version?t.VersionParams.toJSON(e.version):void 0),n},fromPartial:function(e){var n=Object.assign({},c);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromPartial(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=t.EvidenceParams.fromPartial(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=t.ValidatorParams.fromPartial(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=t.VersionParams.fromPartial(e.version):n.version=void 0,n}};var u={maxBytes:i.default.ZERO,maxGas:i.default.ZERO,timeIotaMs:i.default.ZERO};t.BlockParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.maxBytes.isZero()||t.uint32(8).int64(e.maxBytes),e.maxGas.isZero()||t.uint32(16).int64(e.maxGas),e.timeIotaMs.isZero()||t.uint32(24).int64(e.timeIotaMs),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.maxBytes=n.int64();break;case 2:a.maxGas=n.int64();break;case 3:a.timeIotaMs=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=i.default.fromString(e.maxBytes):t.maxBytes=i.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=i.default.fromString(e.maxGas):t.maxGas=i.default.ZERO,void 0!==e.timeIotaMs&&null!==e.timeIotaMs?t.timeIotaMs=i.default.fromString(e.timeIotaMs):t.timeIotaMs=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.maxBytes&&(t.maxBytes=(e.maxBytes||i.default.ZERO).toString()),void 0!==e.maxGas&&(t.maxGas=(e.maxGas||i.default.ZERO).toString()),void 0!==e.timeIotaMs&&(t.timeIotaMs=(e.timeIotaMs||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=e.maxBytes:t.maxBytes=i.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=e.maxGas:t.maxGas=i.default.ZERO,void 0!==e.timeIotaMs&&null!==e.timeIotaMs?t.timeIotaMs=e.timeIotaMs:t.timeIotaMs=i.default.ZERO,t}};var d={maxAgeNumBlocks:i.default.ZERO,maxBytes:i.default.ZERO};t.EvidenceParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.maxAgeNumBlocks.isZero()||t.uint32(8).int64(e.maxAgeNumBlocks),void 0!==e.maxAgeDuration&&s.Duration.encode(e.maxAgeDuration,t.uint32(18).fork()).ldelim(),e.maxBytes.isZero()||t.uint32(24).int64(e.maxBytes),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.maxAgeNumBlocks=n.int64();break;case 2:a.maxAgeDuration=s.Duration.decode(n,n.uint32());break;case 3:a.maxBytes=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.maxAgeNumBlocks&&null!==e.maxAgeNumBlocks?t.maxAgeNumBlocks=i.default.fromString(e.maxAgeNumBlocks):t.maxAgeNumBlocks=i.default.ZERO,void 0!==e.maxAgeDuration&&null!==e.maxAgeDuration?t.maxAgeDuration=s.Duration.fromJSON(e.maxAgeDuration):t.maxAgeDuration=void 0,void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=i.default.fromString(e.maxBytes):t.maxBytes=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.maxAgeNumBlocks&&(t.maxAgeNumBlocks=(e.maxAgeNumBlocks||i.default.ZERO).toString()),void 0!==e.maxAgeDuration&&(t.maxAgeDuration=e.maxAgeDuration?s.Duration.toJSON(e.maxAgeDuration):void 0),void 0!==e.maxBytes&&(t.maxBytes=(e.maxBytes||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.maxAgeNumBlocks&&null!==e.maxAgeNumBlocks?t.maxAgeNumBlocks=e.maxAgeNumBlocks:t.maxAgeNumBlocks=i.default.ZERO,void 0!==e.maxAgeDuration&&null!==e.maxAgeDuration?t.maxAgeDuration=s.Duration.fromPartial(e.maxAgeDuration):t.maxAgeDuration=void 0,void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=e.maxBytes:t.maxBytes=i.default.ZERO,t}};var f={pubKeyTypes:""};t.ValidatorParams={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.pubKeyTypes);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.pubKeyTypes=[];n.pos>>3==1?a.pubKeyTypes.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},f);if(t.pubKeyTypes=[],void 0!==e.pubKeyTypes&&null!==e.pubKeyTypes){var n,a=r(e.pubKeyTypes);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.pubKeyTypes.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.pubKeyTypes?t.pubKeyTypes=e.pubKeyTypes.map((function(e){return e})):t.pubKeyTypes=[],t},fromPartial:function(e){var t=Object.assign({},f);if(t.pubKeyTypes=[],void 0!==e.pubKeyTypes&&null!==e.pubKeyTypes){var n,a=r(e.pubKeyTypes);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.pubKeyTypes.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var l={appVersion:i.default.UZERO};t.VersionParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.appVersion.isZero()||t.uint32(8).uint64(e.appVersion),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3==1?a.appVersion=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=i.default.fromString(e.appVersion):t.appVersion=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.appVersion&&(t.appVersion=(e.appVersion||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=e.appVersion:t.appVersion=i.default.UZERO,t}};var b={blockMaxBytes:i.default.ZERO,blockMaxGas:i.default.ZERO};t.HashedParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.blockMaxBytes.isZero()||t.uint32(8).int64(e.blockMaxBytes),e.blockMaxGas.isZero()||t.uint32(16).int64(e.blockMaxGas),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.blockMaxBytes=n.int64();break;case 2:a.blockMaxGas=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.blockMaxBytes&&null!==e.blockMaxBytes?t.blockMaxBytes=i.default.fromString(e.blockMaxBytes):t.blockMaxBytes=i.default.ZERO,void 0!==e.blockMaxGas&&null!==e.blockMaxGas?t.blockMaxGas=i.default.fromString(e.blockMaxGas):t.blockMaxGas=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.blockMaxBytes&&(t.blockMaxBytes=(e.blockMaxBytes||i.default.ZERO).toString()),void 0!==e.blockMaxGas&&(t.blockMaxGas=(e.blockMaxGas||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.blockMaxBytes&&null!==e.blockMaxBytes?t.blockMaxBytes=e.blockMaxBytes:t.blockMaxBytes=i.default.ZERO,void 0!==e.blockMaxGas&&null!==e.blockMaxGas?t.blockMaxGas=e.blockMaxGas:t.blockMaxGas=i.default.ZERO,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},65246:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TxProof=t.BlockMeta=t.LightBlock=t.SignedHeader=t.Proposal=t.CommitSig=t.Commit=t.Vote=t.Data=t.Header=t.BlockID=t.Part=t.PartSetHeader=t.signedMsgTypeToJSON=t.signedMsgTypeFromJSON=t.SignedMsgType=t.blockIDFlagToJSON=t.blockIDFlagFromJSON=t.BlockIDFlag=t.protobufPackage=void 0;var i,o,s=a(n(24141)),c=a(n(23407)),u=n(48023),d=n(33371),f=n(94527),l=n(3107);function b(e){switch(e){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return i.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return i.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return i.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return i.BLOCK_ID_FLAG_NIL;default:return i.UNRECOGNIZED}}function p(e){switch(e){case i.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case i.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case i.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case i.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";default:return"UNKNOWN"}}function h(e){switch(e){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return o.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return o.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return o.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return o.SIGNED_MSG_TYPE_PROPOSAL;default:return o.UNRECOGNIZED}}function y(e){switch(e){case o.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case o.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case o.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case o.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";default:return"UNKNOWN"}}t.protobufPackage="tendermint.types",function(e){e[e.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",e[e.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",e[e.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",e[e.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=t.BlockIDFlag||(t.BlockIDFlag={})),t.blockIDFlagFromJSON=b,t.blockIDFlagToJSON=p,function(e){e[e.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",e[e.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",e[e.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",e[e.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=t.SignedMsgType||(t.SignedMsgType={})),t.signedMsgTypeFromJSON=h,t.signedMsgTypeToJSON=y;var m={total:0};t.PartSetHeader={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.total&&t.uint32(8).uint32(e.total),0!==e.hash.length&&t.uint32(18).bytes(e.hash),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.hash=new Uint8Array;n.pos>>3){case 1:a.total=n.uint32();break;case 2:a.hash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return t.hash=new Uint8Array,void 0!==e.total&&null!==e.total?t.total=Number(e.total):t.total=0,void 0!==e.hash&&null!==e.hash&&(t.hash=M(e.hash)),t},toJSON:function(e){var t={};return void 0!==e.total&&(t.total=e.total),void 0!==e.hash&&(t.hash=N(void 0!==e.hash?e.hash:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.total&&null!==e.total?t.total=e.total:t.total=0,void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash=new Uint8Array,t}};var v={index:0};t.Part={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.index&&t.uint32(8).uint32(e.index),0!==e.bytes.length&&t.uint32(18).bytes(e.bytes),void 0!==e.proof&&u.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.bytes=new Uint8Array;n.pos>>3){case 1:a.index=n.uint32();break;case 2:a.bytes=n.bytes();break;case 3:a.proof=u.Proof.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return t.bytes=new Uint8Array,void 0!==e.index&&null!==e.index?t.index=Number(e.index):t.index=0,void 0!==e.bytes&&null!==e.bytes&&(t.bytes=M(e.bytes)),void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromJSON(e.proof):t.proof=void 0,t},toJSON:function(e){var t={};return void 0!==e.index&&(t.index=e.index),void 0!==e.bytes&&(t.bytes=N(void 0!==e.bytes?e.bytes:new Uint8Array)),void 0!==e.proof&&(t.proof=e.proof?u.Proof.toJSON(e.proof):void 0),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.index&&null!==e.index?t.index=e.index:t.index=0,void 0!==e.bytes&&null!==e.bytes?t.bytes=e.bytes:t.bytes=new Uint8Array,void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromPartial(e.proof):t.proof=void 0,t}};var g={};t.BlockID={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.hash.length&&n.uint32(10).bytes(e.hash),void 0!==e.partSetHeader&&t.PartSetHeader.encode(e.partSetHeader,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},g);for(i.hash=new Uint8Array;r.pos>>3){case 1:i.hash=r.bytes();break;case 2:i.partSetHeader=t.PartSetHeader.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},g);return n.hash=new Uint8Array,void 0!==e.hash&&null!==e.hash&&(n.hash=M(e.hash)),void 0!==e.partSetHeader&&null!==e.partSetHeader?n.partSetHeader=t.PartSetHeader.fromJSON(e.partSetHeader):n.partSetHeader=void 0,n},toJSON:function(e){var n={};return void 0!==e.hash&&(n.hash=N(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.partSetHeader&&(n.partSetHeader=e.partSetHeader?t.PartSetHeader.toJSON(e.partSetHeader):void 0),n},fromPartial:function(e){var n=Object.assign({},g);return void 0!==e.hash&&null!==e.hash?n.hash=e.hash:n.hash=new Uint8Array,void 0!==e.partSetHeader&&null!==e.partSetHeader?n.partSetHeader=t.PartSetHeader.fromPartial(e.partSetHeader):n.partSetHeader=void 0,n}};var A={chainId:"",height:s.default.ZERO};t.Header={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.version&&d.Consensus.encode(e.version,n.uint32(10).fork()).ldelim(),""!==e.chainId&&n.uint32(18).string(e.chainId),e.height.isZero()||n.uint32(24).int64(e.height),void 0!==e.time&&l.Timestamp.encode(R(e.time),n.uint32(34).fork()).ldelim(),void 0!==e.lastBlockId&&t.BlockID.encode(e.lastBlockId,n.uint32(42).fork()).ldelim(),0!==e.lastCommitHash.length&&n.uint32(50).bytes(e.lastCommitHash),0!==e.dataHash.length&&n.uint32(58).bytes(e.dataHash),0!==e.validatorsHash.length&&n.uint32(66).bytes(e.validatorsHash),0!==e.nextValidatorsHash.length&&n.uint32(74).bytes(e.nextValidatorsHash),0!==e.consensusHash.length&&n.uint32(82).bytes(e.consensusHash),0!==e.appHash.length&&n.uint32(90).bytes(e.appHash),0!==e.lastResultsHash.length&&n.uint32(98).bytes(e.lastResultsHash),0!==e.evidenceHash.length&&n.uint32(106).bytes(e.evidenceHash),0!==e.proposerAddress.length&&n.uint32(114).bytes(e.proposerAddress),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},A);for(i.lastCommitHash=new Uint8Array,i.dataHash=new Uint8Array,i.validatorsHash=new Uint8Array,i.nextValidatorsHash=new Uint8Array,i.consensusHash=new Uint8Array,i.appHash=new Uint8Array,i.lastResultsHash=new Uint8Array,i.evidenceHash=new Uint8Array,i.proposerAddress=new Uint8Array;r.pos>>3){case 1:i.version=d.Consensus.decode(r,r.uint32());break;case 2:i.chainId=r.string();break;case 3:i.height=r.int64();break;case 4:i.time=D(l.Timestamp.decode(r,r.uint32()));break;case 5:i.lastBlockId=t.BlockID.decode(r,r.uint32());break;case 6:i.lastCommitHash=r.bytes();break;case 7:i.dataHash=r.bytes();break;case 8:i.validatorsHash=r.bytes();break;case 9:i.nextValidatorsHash=r.bytes();break;case 10:i.consensusHash=r.bytes();break;case 11:i.appHash=r.bytes();break;case 12:i.lastResultsHash=r.bytes();break;case 13:i.evidenceHash=r.bytes();break;case 14:i.proposerAddress=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},A);return n.lastCommitHash=new Uint8Array,n.dataHash=new Uint8Array,n.validatorsHash=new Uint8Array,n.nextValidatorsHash=new Uint8Array,n.consensusHash=new Uint8Array,n.appHash=new Uint8Array,n.lastResultsHash=new Uint8Array,n.evidenceHash=new Uint8Array,n.proposerAddress=new Uint8Array,void 0!==e.version&&null!==e.version?n.version=d.Consensus.fromJSON(e.version):n.version=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=String(e.chainId):n.chainId="",void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.time&&null!==e.time?n.time=j(e.time):n.time=void 0,void 0!==e.lastBlockId&&null!==e.lastBlockId?n.lastBlockId=t.BlockID.fromJSON(e.lastBlockId):n.lastBlockId=void 0,void 0!==e.lastCommitHash&&null!==e.lastCommitHash&&(n.lastCommitHash=M(e.lastCommitHash)),void 0!==e.dataHash&&null!==e.dataHash&&(n.dataHash=M(e.dataHash)),void 0!==e.validatorsHash&&null!==e.validatorsHash&&(n.validatorsHash=M(e.validatorsHash)),void 0!==e.nextValidatorsHash&&null!==e.nextValidatorsHash&&(n.nextValidatorsHash=M(e.nextValidatorsHash)),void 0!==e.consensusHash&&null!==e.consensusHash&&(n.consensusHash=M(e.consensusHash)),void 0!==e.appHash&&null!==e.appHash&&(n.appHash=M(e.appHash)),void 0!==e.lastResultsHash&&null!==e.lastResultsHash&&(n.lastResultsHash=M(e.lastResultsHash)),void 0!==e.evidenceHash&&null!==e.evidenceHash&&(n.evidenceHash=M(e.evidenceHash)),void 0!==e.proposerAddress&&null!==e.proposerAddress&&(n.proposerAddress=M(e.proposerAddress)),n},toJSON:function(e){var n={};return void 0!==e.version&&(n.version=e.version?d.Consensus.toJSON(e.version):void 0),void 0!==e.chainId&&(n.chainId=e.chainId),void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.time&&(n.time=e.time.toISOString()),void 0!==e.lastBlockId&&(n.lastBlockId=e.lastBlockId?t.BlockID.toJSON(e.lastBlockId):void 0),void 0!==e.lastCommitHash&&(n.lastCommitHash=N(void 0!==e.lastCommitHash?e.lastCommitHash:new Uint8Array)),void 0!==e.dataHash&&(n.dataHash=N(void 0!==e.dataHash?e.dataHash:new Uint8Array)),void 0!==e.validatorsHash&&(n.validatorsHash=N(void 0!==e.validatorsHash?e.validatorsHash:new Uint8Array)),void 0!==e.nextValidatorsHash&&(n.nextValidatorsHash=N(void 0!==e.nextValidatorsHash?e.nextValidatorsHash:new Uint8Array)),void 0!==e.consensusHash&&(n.consensusHash=N(void 0!==e.consensusHash?e.consensusHash:new Uint8Array)),void 0!==e.appHash&&(n.appHash=N(void 0!==e.appHash?e.appHash:new Uint8Array)),void 0!==e.lastResultsHash&&(n.lastResultsHash=N(void 0!==e.lastResultsHash?e.lastResultsHash:new Uint8Array)),void 0!==e.evidenceHash&&(n.evidenceHash=N(void 0!==e.evidenceHash?e.evidenceHash:new Uint8Array)),void 0!==e.proposerAddress&&(n.proposerAddress=N(void 0!==e.proposerAddress?e.proposerAddress:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},A);return void 0!==e.version&&null!==e.version?n.version=d.Consensus.fromPartial(e.version):n.version=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=e.chainId:n.chainId="",void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.time&&null!==e.time?n.time=e.time:n.time=void 0,void 0!==e.lastBlockId&&null!==e.lastBlockId?n.lastBlockId=t.BlockID.fromPartial(e.lastBlockId):n.lastBlockId=void 0,void 0!==e.lastCommitHash&&null!==e.lastCommitHash?n.lastCommitHash=e.lastCommitHash:n.lastCommitHash=new Uint8Array,void 0!==e.dataHash&&null!==e.dataHash?n.dataHash=e.dataHash:n.dataHash=new Uint8Array,void 0!==e.validatorsHash&&null!==e.validatorsHash?n.validatorsHash=e.validatorsHash:n.validatorsHash=new Uint8Array,void 0!==e.nextValidatorsHash&&null!==e.nextValidatorsHash?n.nextValidatorsHash=e.nextValidatorsHash:n.nextValidatorsHash=new Uint8Array,void 0!==e.consensusHash&&null!==e.consensusHash?n.consensusHash=e.consensusHash:n.consensusHash=new Uint8Array,void 0!==e.appHash&&null!==e.appHash?n.appHash=e.appHash:n.appHash=new Uint8Array,void 0!==e.lastResultsHash&&null!==e.lastResultsHash?n.lastResultsHash=e.lastResultsHash:n.lastResultsHash=new Uint8Array,void 0!==e.evidenceHash&&null!==e.evidenceHash?n.evidenceHash=e.evidenceHash:n.evidenceHash=new Uint8Array,void 0!==e.proposerAddress&&null!==e.proposerAddress?n.proposerAddress=e.proposerAddress:n.proposerAddress=new Uint8Array,n}};var w={};t.Data={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create(),a=r(e.txs);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);for(a.txs=[];n.pos>>3==1?a.txs.push(n.bytes()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},w);if(t.txs=[],void 0!==e.txs&&null!==e.txs){var n,a=r(e.txs);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.txs.push(M(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.txs?t.txs=e.txs.map((function(e){return N(void 0!==e?e:new Uint8Array)})):t.txs=[],t},fromPartial:function(e){var t=Object.assign({},w);if(t.txs=[],void 0!==e.txs&&null!==e.txs){var n,a=r(e.txs);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.txs.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var x={type:0,height:s.default.ZERO,round:0,validatorIndex:0};t.Vote={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.type&&n.uint32(8).int32(e.type),e.height.isZero()||n.uint32(16).int64(e.height),0!==e.round&&n.uint32(24).int32(e.round),void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(34).fork()).ldelim(),void 0!==e.timestamp&&l.Timestamp.encode(R(e.timestamp),n.uint32(42).fork()).ldelim(),0!==e.validatorAddress.length&&n.uint32(50).bytes(e.validatorAddress),0!==e.validatorIndex&&n.uint32(56).int32(e.validatorIndex),0!==e.signature.length&&n.uint32(66).bytes(e.signature),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},x);for(i.validatorAddress=new Uint8Array,i.signature=new Uint8Array;r.pos>>3){case 1:i.type=r.int32();break;case 2:i.height=r.int64();break;case 3:i.round=r.int32();break;case 4:i.blockId=t.BlockID.decode(r,r.uint32());break;case 5:i.timestamp=D(l.Timestamp.decode(r,r.uint32()));break;case 6:i.validatorAddress=r.bytes();break;case 7:i.validatorIndex=r.int32();break;case 8:i.signature=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},x);return n.validatorAddress=new Uint8Array,n.signature=new Uint8Array,void 0!==e.type&&null!==e.type?n.type=h(e.type):n.type=0,void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=j(e.timestamp):n.timestamp=void 0,void 0!==e.validatorAddress&&null!==e.validatorAddress&&(n.validatorAddress=M(e.validatorAddress)),void 0!==e.validatorIndex&&null!==e.validatorIndex?n.validatorIndex=Number(e.validatorIndex):n.validatorIndex=0,void 0!==e.signature&&null!==e.signature&&(n.signature=M(e.signature)),n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=y(e.type)),void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.round&&(n.round=e.round),void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.timestamp&&(n.timestamp=e.timestamp.toISOString()),void 0!==e.validatorAddress&&(n.validatorAddress=N(void 0!==e.validatorAddress?e.validatorAddress:new Uint8Array)),void 0!==e.validatorIndex&&(n.validatorIndex=e.validatorIndex),void 0!==e.signature&&(n.signature=N(void 0!==e.signature?e.signature:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},x);return void 0!==e.type&&null!==e.type?n.type=e.type:n.type=0,void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=e.timestamp:n.timestamp=void 0,void 0!==e.validatorAddress&&null!==e.validatorAddress?n.validatorAddress=e.validatorAddress:n.validatorAddress=new Uint8Array,void 0!==e.validatorIndex&&null!==e.validatorIndex?n.validatorIndex=e.validatorIndex:n.validatorIndex=0,void 0!==e.signature&&null!==e.signature?n.signature=e.signature:n.signature=new Uint8Array,n}};var _={height:s.default.ZERO,round:0};t.Commit={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.height.isZero()||n.uint32(8).int64(e.height),0!==e.round&&n.uint32(16).int32(e.round),void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(26).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.CommitSig.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},_);for(i.signatures=[];r.pos>>3){case 1:i.height=r.int64();break;case 2:i.round=r.int32();break;case 3:i.blockId=t.BlockID.decode(r,r.uint32());break;case 4:i.signatures.push(t.CommitSig.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},_);if(n.signatures=[],void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.CommitSig.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.round&&(n.round=e.round),void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return e?t.CommitSig.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},_);if(n.signatures=[],void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.CommitSig.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var k={blockIdFlag:0};t.CommitSig={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.blockIdFlag&&t.uint32(8).int32(e.blockIdFlag),0!==e.validatorAddress.length&&t.uint32(18).bytes(e.validatorAddress),void 0!==e.timestamp&&l.Timestamp.encode(R(e.timestamp),t.uint32(26).fork()).ldelim(),0!==e.signature.length&&t.uint32(34).bytes(e.signature),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);for(a.validatorAddress=new Uint8Array,a.signature=new Uint8Array;n.pos>>3){case 1:a.blockIdFlag=n.int32();break;case 2:a.validatorAddress=n.bytes();break;case 3:a.timestamp=D(l.Timestamp.decode(n,n.uint32()));break;case 4:a.signature=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},k);return t.validatorAddress=new Uint8Array,t.signature=new Uint8Array,void 0!==e.blockIdFlag&&null!==e.blockIdFlag?t.blockIdFlag=b(e.blockIdFlag):t.blockIdFlag=0,void 0!==e.validatorAddress&&null!==e.validatorAddress&&(t.validatorAddress=M(e.validatorAddress)),void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=j(e.timestamp):t.timestamp=void 0,void 0!==e.signature&&null!==e.signature&&(t.signature=M(e.signature)),t},toJSON:function(e){var t={};return void 0!==e.blockIdFlag&&(t.blockIdFlag=p(e.blockIdFlag)),void 0!==e.validatorAddress&&(t.validatorAddress=N(void 0!==e.validatorAddress?e.validatorAddress:new Uint8Array)),void 0!==e.timestamp&&(t.timestamp=e.timestamp.toISOString()),void 0!==e.signature&&(t.signature=N(void 0!==e.signature?e.signature:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.blockIdFlag&&null!==e.blockIdFlag?t.blockIdFlag=e.blockIdFlag:t.blockIdFlag=0,void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress=new Uint8Array,void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=e.timestamp:t.timestamp=void 0,void 0!==e.signature&&null!==e.signature?t.signature=e.signature:t.signature=new Uint8Array,t}};var I={type:0,height:s.default.ZERO,round:0,polRound:0};t.Proposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.type&&n.uint32(8).int32(e.type),e.height.isZero()||n.uint32(16).int64(e.height),0!==e.round&&n.uint32(24).int32(e.round),0!==e.polRound&&n.uint32(32).int32(e.polRound),void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(42).fork()).ldelim(),void 0!==e.timestamp&&l.Timestamp.encode(R(e.timestamp),n.uint32(50).fork()).ldelim(),0!==e.signature.length&&n.uint32(58).bytes(e.signature),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},I);for(i.signature=new Uint8Array;r.pos>>3){case 1:i.type=r.int32();break;case 2:i.height=r.int64();break;case 3:i.round=r.int32();break;case 4:i.polRound=r.int32();break;case 5:i.blockId=t.BlockID.decode(r,r.uint32());break;case 6:i.timestamp=D(l.Timestamp.decode(r,r.uint32()));break;case 7:i.signature=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},I);return n.signature=new Uint8Array,void 0!==e.type&&null!==e.type?n.type=h(e.type):n.type=0,void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.polRound&&null!==e.polRound?n.polRound=Number(e.polRound):n.polRound=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=j(e.timestamp):n.timestamp=void 0,void 0!==e.signature&&null!==e.signature&&(n.signature=M(e.signature)),n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=y(e.type)),void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.round&&(n.round=e.round),void 0!==e.polRound&&(n.polRound=e.polRound),void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.timestamp&&(n.timestamp=e.timestamp.toISOString()),void 0!==e.signature&&(n.signature=N(void 0!==e.signature?e.signature:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},I);return void 0!==e.type&&null!==e.type?n.type=e.type:n.type=0,void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.polRound&&null!==e.polRound?n.polRound=e.polRound:n.polRound=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=e.timestamp:n.timestamp=void 0,void 0!==e.signature&&null!==e.signature?n.signature=e.signature:n.signature=new Uint8Array,n}};var S={};t.SignedHeader={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.header&&t.Header.encode(e.header,n.uint32(10).fork()).ldelim(),void 0!==e.commit&&t.Commit.encode(e.commit,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},S);r.pos>>3){case 1:i.header=t.Header.decode(r,r.uint32());break;case 2:i.commit=t.Commit.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},S);return void 0!==e.header&&null!==e.header?n.header=t.Header.fromJSON(e.header):n.header=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.Commit.fromJSON(e.commit):n.commit=void 0,n},toJSON:function(e){var n={};return void 0!==e.header&&(n.header=e.header?t.Header.toJSON(e.header):void 0),void 0!==e.commit&&(n.commit=e.commit?t.Commit.toJSON(e.commit):void 0),n},fromPartial:function(e){var n=Object.assign({},S);return void 0!==e.header&&null!==e.header?n.header=t.Header.fromPartial(e.header):n.header=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.Commit.fromPartial(e.commit):n.commit=void 0,n}};var E={};t.LightBlock={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.signedHeader&&t.SignedHeader.encode(e.signedHeader,n.uint32(10).fork()).ldelim(),void 0!==e.validatorSet&&f.ValidatorSet.encode(e.validatorSet,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},E);r.pos>>3){case 1:i.signedHeader=t.SignedHeader.decode(r,r.uint32());break;case 2:i.validatorSet=f.ValidatorSet.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},E);return void 0!==e.signedHeader&&null!==e.signedHeader?n.signedHeader=t.SignedHeader.fromJSON(e.signedHeader):n.signedHeader=void 0,void 0!==e.validatorSet&&null!==e.validatorSet?n.validatorSet=f.ValidatorSet.fromJSON(e.validatorSet):n.validatorSet=void 0,n},toJSON:function(e){var n={};return void 0!==e.signedHeader&&(n.signedHeader=e.signedHeader?t.SignedHeader.toJSON(e.signedHeader):void 0),void 0!==e.validatorSet&&(n.validatorSet=e.validatorSet?f.ValidatorSet.toJSON(e.validatorSet):void 0),n},fromPartial:function(e){var n=Object.assign({},E);return void 0!==e.signedHeader&&null!==e.signedHeader?n.signedHeader=t.SignedHeader.fromPartial(e.signedHeader):n.signedHeader=void 0,void 0!==e.validatorSet&&null!==e.validatorSet?n.validatorSet=f.ValidatorSet.fromPartial(e.validatorSet):n.validatorSet=void 0,n}};var C={blockSize:s.default.ZERO,numTxs:s.default.ZERO};t.BlockMeta={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(10).fork()).ldelim(),e.blockSize.isZero()||n.uint32(16).int64(e.blockSize),void 0!==e.header&&t.Header.encode(e.header,n.uint32(26).fork()).ldelim(),e.numTxs.isZero()||n.uint32(32).int64(e.numTxs),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},C);r.pos>>3){case 1:i.blockId=t.BlockID.decode(r,r.uint32());break;case 2:i.blockSize=r.int64();break;case 3:i.header=t.Header.decode(r,r.uint32());break;case 4:i.numTxs=r.int64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},C);return void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.blockSize&&null!==e.blockSize?n.blockSize=s.default.fromString(e.blockSize):n.blockSize=s.default.ZERO,void 0!==e.header&&null!==e.header?n.header=t.Header.fromJSON(e.header):n.header=void 0,void 0!==e.numTxs&&null!==e.numTxs?n.numTxs=s.default.fromString(e.numTxs):n.numTxs=s.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.blockSize&&(n.blockSize=(e.blockSize||s.default.ZERO).toString()),void 0!==e.header&&(n.header=e.header?t.Header.toJSON(e.header):void 0),void 0!==e.numTxs&&(n.numTxs=(e.numTxs||s.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},C);return void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.blockSize&&null!==e.blockSize?n.blockSize=e.blockSize:n.blockSize=s.default.ZERO,void 0!==e.header&&null!==e.header?n.header=t.Header.fromPartial(e.header):n.header=void 0,void 0!==e.numTxs&&null!==e.numTxs?n.numTxs=e.numTxs:n.numTxs=s.default.ZERO,n}};var T={};t.TxProof={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.rootHash.length&&t.uint32(10).bytes(e.rootHash),0!==e.data.length&&t.uint32(18).bytes(e.data),void 0!==e.proof&&u.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},T);for(a.rootHash=new Uint8Array,a.data=new Uint8Array;n.pos>>3){case 1:a.rootHash=n.bytes();break;case 2:a.data=n.bytes();break;case 3:a.proof=u.Proof.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},T);return t.rootHash=new Uint8Array,t.data=new Uint8Array,void 0!==e.rootHash&&null!==e.rootHash&&(t.rootHash=M(e.rootHash)),void 0!==e.data&&null!==e.data&&(t.data=M(e.data)),void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromJSON(e.proof):t.proof=void 0,t},toJSON:function(e){var t={};return void 0!==e.rootHash&&(t.rootHash=N(void 0!==e.rootHash?e.rootHash:new Uint8Array)),void 0!==e.data&&(t.data=N(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.proof&&(t.proof=e.proof?u.Proof.toJSON(e.proof):void 0),t},fromPartial:function(e){var t=Object.assign({},T);return void 0!==e.rootHash&&null!==e.rootHash?t.rootHash=e.rootHash:t.rootHash=new Uint8Array,void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromPartial(e.proof):t.proof=void 0,t}};var O=function(){if(void 0!==O)return O;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),P=O.atob||function(e){return O.Buffer.from(e,"base64").toString("binary")};function M(e){for(var t=P(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.validators);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.Validator.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return void 0!==e.proposer&&t.Validator.encode(e.proposer,a.uint32(18).fork()).ldelim(),e.totalVotingPower.isZero()||a.uint32(24).int64(e.totalVotingPower),a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);for(i.validators=[];r.pos>>3){case 1:i.validators.push(t.Validator.decode(r,r.uint32()));break;case 2:i.proposer=t.Validator.decode(r,r.uint32());break;case 3:i.totalVotingPower=r.int64();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);if(n.validators=[],void 0!==e.validators&&null!==e.validators){var a,o=r(e.validators);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.validators.push(t.Validator.fromJSON(s))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.proposer&&null!==e.proposer?n.proposer=t.Validator.fromJSON(e.proposer):n.proposer=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=i.default.fromString(e.totalVotingPower):n.totalVotingPower=i.default.ZERO,n},toJSON:function(e){var n={};return e.validators?n.validators=e.validators.map((function(e){return e?t.Validator.toJSON(e):void 0})):n.validators=[],void 0!==e.proposer&&(n.proposer=e.proposer?t.Validator.toJSON(e.proposer):void 0),void 0!==e.totalVotingPower&&(n.totalVotingPower=(e.totalVotingPower||i.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},c);if(n.validators=[],void 0!==e.validators&&null!==e.validators){var a,o=r(e.validators);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.validators.push(t.Validator.fromPartial(s))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.proposer&&null!==e.proposer?n.proposer=t.Validator.fromPartial(e.proposer):n.proposer=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=e.totalVotingPower:n.totalVotingPower=i.default.ZERO,n}};var u={votingPower:i.default.ZERO,proposerPriority:i.default.ZERO};t.Validator={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.address.length&&t.uint32(10).bytes(e.address),void 0!==e.pubKey&&s.PublicKey.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.votingPower.isZero()||t.uint32(24).int64(e.votingPower),e.proposerPriority.isZero()||t.uint32(32).int64(e.proposerPriority),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.address=new Uint8Array;n.pos>>3){case 1:a.address=n.bytes();break;case 2:a.pubKey=s.PublicKey.decode(n,n.uint32());break;case 3:a.votingPower=n.int64();break;case 4:a.proposerPriority=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return t.address=new Uint8Array,void 0!==e.address&&null!==e.address&&(t.address=function(e){for(var t=l(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.pubKey&&s.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),e.votingPower.isZero()||t.uint32(16).int64(e.votingPower),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.pubKey=s.PublicKey.decode(n,n.uint32());break;case 2:a.votingPower=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.PublicKey.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.votingPower&&null!==e.votingPower?t.votingPower=i.default.fromString(e.votingPower):t.votingPower=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.pubKey&&(t.pubKey=e.pubKey?s.PublicKey.toJSON(e.pubKey):void 0),void 0!==e.votingPower&&(t.votingPower=(e.votingPower||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.PublicKey.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.votingPower&&null!==e.votingPower?t.votingPower=e.votingPower:t.votingPower=i.default.ZERO,t}};var f=function(){if(void 0!==f)return f;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),l=f.atob||function(e){return f.Buffer.from(e,"base64").toString("binary")},b=f.btoa||function(e){return f.Buffer.from(e,"binary").toString("base64")};o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},33371:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Consensus=t.App=t.protobufPackage=void 0;var a=r(n(24141)),i=r(n(23407));t.protobufPackage="tendermint.version";var o={protocol:a.default.UZERO,software:""};t.App={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.protocol.isZero()||t.uint32(8).uint64(e.protocol),""!==e.software&&t.uint32(18).string(e.software),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.protocol=n.uint64();break;case 2:a.software=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.protocol&&null!==e.protocol?t.protocol=a.default.fromString(e.protocol):t.protocol=a.default.UZERO,void 0!==e.software&&null!==e.software?t.software=String(e.software):t.software="",t},toJSON:function(e){var t={};return void 0!==e.protocol&&(t.protocol=(e.protocol||a.default.UZERO).toString()),void 0!==e.software&&(t.software=e.software),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.protocol&&null!==e.protocol?t.protocol=e.protocol:t.protocol=a.default.UZERO,void 0!==e.software&&null!==e.software?t.software=e.software:t.software="",t}};var s={block:a.default.UZERO,app:a.default.UZERO};t.Consensus={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.block.isZero()||t.uint32(8).uint64(e.block),e.app.isZero()||t.uint32(16).uint64(e.app),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.block=n.uint64();break;case 2:a.app=n.uint64();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.block&&null!==e.block?t.block=a.default.fromString(e.block):t.block=a.default.UZERO,void 0!==e.app&&null!==e.app?t.app=a.default.fromString(e.app):t.app=a.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.block&&(t.block=(e.block||a.default.UZERO).toString()),void 0!==e.app&&(t.app=(e.app||a.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.block&&null!==e.block?t.block=e.block:t.block=a.default.UZERO,void 0!==e.app&&null!==e.app?t.app=e.app:t.app=a.default.UZERO,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},79164:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgSwapSendResponse=t.MsgSwapSend=t.MsgSwapResponse=t.MsgSwap=t.protobufPackage=void 0;var o=i(n(24141)),s=i(n(23407)),c=n(47971);t.protobufPackage="terra.market.v1beta1";var u={trader:"",askDenom:""};t.MsgSwap={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.trader&&t.uint32(10).string(e.trader),void 0!==e.offerCoin&&c.Coin.encode(e.offerCoin,t.uint32(18).fork()).ldelim(),""!==e.askDenom&&t.uint32(26).string(e.askDenom),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.trader=n.string();break;case 2:a.offerCoin=c.Coin.decode(n,n.uint32());break;case 3:a.askDenom=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.trader&&null!==e.trader?t.trader=String(e.trader):t.trader="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=c.Coin.fromJSON(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=String(e.askDenom):t.askDenom="",t},toJSON:function(e){var t={};return void 0!==e.trader&&(t.trader=e.trader),void 0!==e.offerCoin&&(t.offerCoin=e.offerCoin?c.Coin.toJSON(e.offerCoin):void 0),void 0!==e.askDenom&&(t.askDenom=e.askDenom),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.trader&&null!==e.trader?t.trader=e.trader:t.trader="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=c.Coin.fromPartial(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=e.askDenom:t.askDenom="",t}};var d={};t.MsgSwapResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.swapCoin&&c.Coin.encode(e.swapCoin,t.uint32(10).fork()).ldelim(),void 0!==e.swapFee&&c.Coin.encode(e.swapFee,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.swapCoin=c.Coin.decode(n,n.uint32());break;case 2:a.swapFee=c.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=c.Coin.fromJSON(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=c.Coin.fromJSON(e.swapFee):t.swapFee=void 0,t},toJSON:function(e){var t={};return void 0!==e.swapCoin&&(t.swapCoin=e.swapCoin?c.Coin.toJSON(e.swapCoin):void 0),void 0!==e.swapFee&&(t.swapFee=e.swapFee?c.Coin.toJSON(e.swapFee):void 0),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=c.Coin.fromPartial(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=c.Coin.fromPartial(e.swapFee):t.swapFee=void 0,t}};var f={fromAddress:"",toAddress:"",askDenom:""};t.MsgSwapSend={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress),void 0!==e.offerCoin&&c.Coin.encode(e.offerCoin,t.uint32(26).fork()).ldelim(),""!==e.askDenom&&t.uint32(34).string(e.askDenom),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.fromAddress=n.string();break;case 2:a.toAddress=n.string();break;case 3:a.offerCoin=c.Coin.decode(n,n.uint32());break;case 4:a.askDenom=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=String(e.toAddress):t.toAddress="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=c.Coin.fromJSON(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=String(e.askDenom):t.askDenom="",t},toJSON:function(e){var t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),void 0!==e.offerCoin&&(t.offerCoin=e.offerCoin?c.Coin.toJSON(e.offerCoin):void 0),void 0!==e.askDenom&&(t.askDenom=e.askDenom),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=e.toAddress:t.toAddress="",void 0!==e.offerCoin&&null!==e.offerCoin?t.offerCoin=c.Coin.fromPartial(e.offerCoin):t.offerCoin=void 0,void 0!==e.askDenom&&null!==e.askDenom?t.askDenom=e.askDenom:t.askDenom="",t}};var l={};t.MsgSwapSendResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.swapCoin&&c.Coin.encode(e.swapCoin,t.uint32(10).fork()).ldelim(),void 0!==e.swapFee&&c.Coin.encode(e.swapFee,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.swapCoin=c.Coin.decode(n,n.uint32());break;case 2:a.swapFee=c.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=c.Coin.fromJSON(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=c.Coin.fromJSON(e.swapFee):t.swapFee=void 0,t},toJSON:function(e){var t={};return void 0!==e.swapCoin&&(t.swapCoin=e.swapCoin?c.Coin.toJSON(e.swapCoin):void 0),void 0!==e.swapFee&&(t.swapFee=e.swapFee?c.Coin.toJSON(e.swapFee):void 0),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.swapCoin&&null!==e.swapCoin?t.swapCoin=c.Coin.fromPartial(e.swapCoin):t.swapCoin=void 0,void 0!==e.swapFee&&null!==e.swapFee?t.swapFee=c.Coin.fromPartial(e.swapFee):t.swapFee=void 0,t}};var b=function(){function e(t){r(this,e),this.rpc=t,this.Swap=this.Swap.bind(this),this.SwapSend=this.SwapSend.bind(this)}return a(e,[{key:"Swap",value:function(e){var n=t.MsgSwap.encode(e).finish();return this.rpc.request("terra.market.v1beta1.Msg","Swap",n).then((function(e){return t.MsgSwapResponse.decode(new s.default.Reader(e))}))}},{key:"SwapSend",value:function(e){var n=t.MsgSwapSend.encode(e).finish();return this.rpc.request("terra.market.v1beta1.Msg","SwapSend",n).then((function(e){return t.MsgSwapSendResponse.decode(new s.default.Reader(e))}))}}]),e}();t.MsgClientImpl=b,s.default.util.Long!==o.default&&(s.default.util.Long=o.default,s.default.configure())},28097:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExchangeRateTuple=t.AggregateExchangeRateVote=t.AggregateExchangeRatePrevote=t.Denom=t.Params=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(23407));t.protobufPackage="terra.oracle.v1beta1";var s={votePeriod:i.default.UZERO,voteThreshold:"",rewardBand:"",rewardDistributionWindow:i.default.UZERO,slashFraction:"",slashWindow:i.default.UZERO,minValidPerWindow:""};t.Params={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.votePeriod.isZero()||n.uint32(8).uint64(e.votePeriod),""!==e.voteThreshold&&n.uint32(18).string(e.voteThreshold),""!==e.rewardBand&&n.uint32(26).string(e.rewardBand),e.rewardDistributionWindow.isZero()||n.uint32(32).uint64(e.rewardDistributionWindow);var a,i=r(e.whitelist);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Denom.encode(s,n.uint32(42).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return""!==e.slashFraction&&n.uint32(50).string(e.slashFraction),e.slashWindow.isZero()||n.uint32(56).uint64(e.slashWindow),""!==e.minValidPerWindow&&n.uint32(66).string(e.minValidPerWindow),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},s);for(i.whitelist=[];r.pos>>3){case 1:i.votePeriod=r.uint64();break;case 2:i.voteThreshold=r.string();break;case 3:i.rewardBand=r.string();break;case 4:i.rewardDistributionWindow=r.uint64();break;case 5:i.whitelist.push(t.Denom.decode(r,r.uint32()));break;case 6:i.slashFraction=r.string();break;case 7:i.slashWindow=r.uint64();break;case 8:i.minValidPerWindow=r.string();break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},s);if(n.whitelist=[],void 0!==e.votePeriod&&null!==e.votePeriod?n.votePeriod=i.default.fromString(e.votePeriod):n.votePeriod=i.default.UZERO,void 0!==e.voteThreshold&&null!==e.voteThreshold?n.voteThreshold=String(e.voteThreshold):n.voteThreshold="",void 0!==e.rewardBand&&null!==e.rewardBand?n.rewardBand=String(e.rewardBand):n.rewardBand="",void 0!==e.rewardDistributionWindow&&null!==e.rewardDistributionWindow?n.rewardDistributionWindow=i.default.fromString(e.rewardDistributionWindow):n.rewardDistributionWindow=i.default.UZERO,void 0!==e.whitelist&&null!==e.whitelist){var a,o=r(e.whitelist);try{for(o.s();!(a=o.n()).done;){var c=a.value;n.whitelist.push(t.Denom.fromJSON(c))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.slashFraction&&null!==e.slashFraction?n.slashFraction=String(e.slashFraction):n.slashFraction="",void 0!==e.slashWindow&&null!==e.slashWindow?n.slashWindow=i.default.fromString(e.slashWindow):n.slashWindow=i.default.UZERO,void 0!==e.minValidPerWindow&&null!==e.minValidPerWindow?n.minValidPerWindow=String(e.minValidPerWindow):n.minValidPerWindow="",n},toJSON:function(e){var n={};return void 0!==e.votePeriod&&(n.votePeriod=(e.votePeriod||i.default.UZERO).toString()),void 0!==e.voteThreshold&&(n.voteThreshold=e.voteThreshold),void 0!==e.rewardBand&&(n.rewardBand=e.rewardBand),void 0!==e.rewardDistributionWindow&&(n.rewardDistributionWindow=(e.rewardDistributionWindow||i.default.UZERO).toString()),e.whitelist?n.whitelist=e.whitelist.map((function(e){return e?t.Denom.toJSON(e):void 0})):n.whitelist=[],void 0!==e.slashFraction&&(n.slashFraction=e.slashFraction),void 0!==e.slashWindow&&(n.slashWindow=(e.slashWindow||i.default.UZERO).toString()),void 0!==e.minValidPerWindow&&(n.minValidPerWindow=e.minValidPerWindow),n},fromPartial:function(e){var n=Object.assign({},s);if(n.whitelist=[],void 0!==e.votePeriod&&null!==e.votePeriod?n.votePeriod=e.votePeriod:n.votePeriod=i.default.UZERO,void 0!==e.voteThreshold&&null!==e.voteThreshold?n.voteThreshold=e.voteThreshold:n.voteThreshold="",void 0!==e.rewardBand&&null!==e.rewardBand?n.rewardBand=e.rewardBand:n.rewardBand="",void 0!==e.rewardDistributionWindow&&null!==e.rewardDistributionWindow?n.rewardDistributionWindow=e.rewardDistributionWindow:n.rewardDistributionWindow=i.default.UZERO,void 0!==e.whitelist&&null!==e.whitelist){var a,o=r(e.whitelist);try{for(o.s();!(a=o.n()).done;){var c=a.value;n.whitelist.push(t.Denom.fromPartial(c))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.slashFraction&&null!==e.slashFraction?n.slashFraction=e.slashFraction:n.slashFraction="",void 0!==e.slashWindow&&null!==e.slashWindow?n.slashWindow=e.slashWindow:n.slashWindow=i.default.UZERO,void 0!==e.minValidPerWindow&&null!==e.minValidPerWindow?n.minValidPerWindow=e.minValidPerWindow:n.minValidPerWindow="",n}};var c={name:"",tobinTax:""};t.Denom={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.name&&t.uint32(10).string(e.name),""!==e.tobinTax&&t.uint32(18).string(e.tobinTax),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.name=n.string();break;case 2:a.tobinTax=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.tobinTax&&null!==e.tobinTax?t.tobinTax=String(e.tobinTax):t.tobinTax="",t},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.tobinTax&&(t.tobinTax=e.tobinTax),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.tobinTax&&null!==e.tobinTax?t.tobinTax=e.tobinTax:t.tobinTax="",t}};var u={hash:"",voter:"",submitBlock:i.default.UZERO};t.AggregateExchangeRatePrevote={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.hash&&t.uint32(10).string(e.hash),""!==e.voter&&t.uint32(18).string(e.voter),e.submitBlock.isZero()||t.uint32(24).uint64(e.submitBlock),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.hash=n.string();break;case 2:a.voter=n.string();break;case 3:a.submitBlock=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.hash&&null!==e.hash?t.hash=String(e.hash):t.hash="",void 0!==e.voter&&null!==e.voter?t.voter=String(e.voter):t.voter="",void 0!==e.submitBlock&&null!==e.submitBlock?t.submitBlock=i.default.fromString(e.submitBlock):t.submitBlock=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=e.hash),void 0!==e.voter&&(t.voter=e.voter),void 0!==e.submitBlock&&(t.submitBlock=(e.submitBlock||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash="",void 0!==e.voter&&null!==e.voter?t.voter=e.voter:t.voter="",void 0!==e.submitBlock&&null!==e.submitBlock?t.submitBlock=e.submitBlock:t.submitBlock=i.default.UZERO,t}};var d={voter:""};t.AggregateExchangeRateVote={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.exchangeRateTuples);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.ExchangeRateTuple.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return""!==e.voter&&a.uint32(18).string(e.voter),a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);for(i.exchangeRateTuples=[];r.pos>>3){case 1:i.exchangeRateTuples.push(t.ExchangeRateTuple.decode(r,r.uint32()));break;case 2:i.voter=r.string();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},d);if(n.exchangeRateTuples=[],void 0!==e.exchangeRateTuples&&null!==e.exchangeRateTuples){var a,i=r(e.exchangeRateTuples);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.exchangeRateTuples.push(t.ExchangeRateTuple.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.voter&&null!==e.voter?n.voter=String(e.voter):n.voter="",n},toJSON:function(e){var n={};return e.exchangeRateTuples?n.exchangeRateTuples=e.exchangeRateTuples.map((function(e){return e?t.ExchangeRateTuple.toJSON(e):void 0})):n.exchangeRateTuples=[],void 0!==e.voter&&(n.voter=e.voter),n},fromPartial:function(e){var n=Object.assign({},d);if(n.exchangeRateTuples=[],void 0!==e.exchangeRateTuples&&null!==e.exchangeRateTuples){var a,i=r(e.exchangeRateTuples);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.exchangeRateTuples.push(t.ExchangeRateTuple.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.voter&&null!==e.voter?n.voter=e.voter:n.voter="",n}};var f={denom:"",exchangeRate:""};t.ExchangeRateTuple={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.exchangeRate&&t.uint32(18).string(e.exchangeRate),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.exchangeRate=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.exchangeRate&&null!==e.exchangeRate?t.exchangeRate=String(e.exchangeRate):t.exchangeRate="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.exchangeRate&&(t.exchangeRate=e.exchangeRate),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.exchangeRate&&null!==e.exchangeRate?t.exchangeRate=e.exchangeRate:t.exchangeRate="",t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},13019:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgDelegateFeedConsentResponse=t.MsgDelegateFeedConsent=t.MsgAggregateExchangeRateVoteResponse=t.MsgAggregateExchangeRateVote=t.MsgAggregateExchangeRatePrevoteResponse=t.MsgAggregateExchangeRatePrevote=t.protobufPackage=void 0;var o=i(n(24141)),s=i(n(23407));t.protobufPackage="terra.oracle.v1beta1";var c={hash:"",feeder:"",validator:""};t.MsgAggregateExchangeRatePrevote={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.hash&&t.uint32(10).string(e.hash),""!==e.feeder&&t.uint32(18).string(e.feeder),""!==e.validator&&t.uint32(26).string(e.validator),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.hash=n.string();break;case 2:a.feeder=n.string();break;case 3:a.validator=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.hash&&null!==e.hash?t.hash=String(e.hash):t.hash="",void 0!==e.feeder&&null!==e.feeder?t.feeder=String(e.feeder):t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=String(e.validator):t.validator="",t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=e.hash),void 0!==e.feeder&&(t.feeder=e.feeder),void 0!==e.validator&&(t.validator=e.validator),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash="",void 0!==e.feeder&&null!==e.feeder?t.feeder=e.feeder:t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=e.validator:t.validator="",t}};var u={};t.MsgAggregateExchangeRatePrevoteResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create()},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.salt&&t.uint32(10).string(e.salt),""!==e.exchangeRates&&t.uint32(18).string(e.exchangeRates),""!==e.feeder&&t.uint32(26).string(e.feeder),""!==e.validator&&t.uint32(34).string(e.validator),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.salt=n.string();break;case 2:a.exchangeRates=n.string();break;case 3:a.feeder=n.string();break;case 4:a.validator=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.salt&&null!==e.salt?t.salt=String(e.salt):t.salt="",void 0!==e.exchangeRates&&null!==e.exchangeRates?t.exchangeRates=String(e.exchangeRates):t.exchangeRates="",void 0!==e.feeder&&null!==e.feeder?t.feeder=String(e.feeder):t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=String(e.validator):t.validator="",t},toJSON:function(e){var t={};return void 0!==e.salt&&(t.salt=e.salt),void 0!==e.exchangeRates&&(t.exchangeRates=e.exchangeRates),void 0!==e.feeder&&(t.feeder=e.feeder),void 0!==e.validator&&(t.validator=e.validator),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.salt&&null!==e.salt?t.salt=e.salt:t.salt="",void 0!==e.exchangeRates&&null!==e.exchangeRates?t.exchangeRates=e.exchangeRates:t.exchangeRates="",void 0!==e.feeder&&null!==e.feeder?t.feeder=e.feeder:t.feeder="",void 0!==e.validator&&null!==e.validator?t.validator=e.validator:t.validator="",t}};var f={};t.MsgAggregateExchangeRateVoteResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create()},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.operator&&t.uint32(10).string(e.operator),""!==e.delegate&&t.uint32(18).string(e.delegate),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.operator=n.string();break;case 2:a.delegate=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.operator&&null!==e.operator?t.operator=String(e.operator):t.operator="",void 0!==e.delegate&&null!==e.delegate?t.delegate=String(e.delegate):t.delegate="",t},toJSON:function(e){var t={};return void 0!==e.operator&&(t.operator=e.operator),void 0!==e.delegate&&(t.delegate=e.delegate),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.operator&&null!==e.operator?t.operator=e.operator:t.operator="",void 0!==e.delegate&&null!==e.delegate?t.delegate=e.delegate:t.delegate="",t}};var b={};t.MsgDelegateFeedConsentResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create()},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.taxPolicy&&t.PolicyConstraints.encode(e.taxPolicy,n.uint32(10).fork()).ldelim(),void 0!==e.rewardPolicy&&t.PolicyConstraints.encode(e.rewardPolicy,n.uint32(18).fork()).ldelim(),""!==e.seigniorageBurdenTarget&&n.uint32(26).string(e.seigniorageBurdenTarget),""!==e.miningIncrement&&n.uint32(34).string(e.miningIncrement),e.windowShort.isZero()||n.uint32(40).uint64(e.windowShort),e.windowLong.isZero()||n.uint32(48).uint64(e.windowLong),e.windowProbation.isZero()||n.uint32(56).uint64(e.windowProbation),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);r.pos>>3){case 1:i.taxPolicy=t.PolicyConstraints.decode(r,r.uint32());break;case 2:i.rewardPolicy=t.PolicyConstraints.decode(r,r.uint32());break;case 3:i.seigniorageBurdenTarget=r.string();break;case 4:i.miningIncrement=r.string();break;case 5:i.windowShort=r.uint64();break;case 6:i.windowLong=r.uint64();break;case 7:i.windowProbation=r.uint64();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);return void 0!==e.taxPolicy&&null!==e.taxPolicy?n.taxPolicy=t.PolicyConstraints.fromJSON(e.taxPolicy):n.taxPolicy=void 0,void 0!==e.rewardPolicy&&null!==e.rewardPolicy?n.rewardPolicy=t.PolicyConstraints.fromJSON(e.rewardPolicy):n.rewardPolicy=void 0,void 0!==e.seigniorageBurdenTarget&&null!==e.seigniorageBurdenTarget?n.seigniorageBurdenTarget=String(e.seigniorageBurdenTarget):n.seigniorageBurdenTarget="",void 0!==e.miningIncrement&&null!==e.miningIncrement?n.miningIncrement=String(e.miningIncrement):n.miningIncrement="",void 0!==e.windowShort&&null!==e.windowShort?n.windowShort=i.default.fromString(e.windowShort):n.windowShort=i.default.UZERO,void 0!==e.windowLong&&null!==e.windowLong?n.windowLong=i.default.fromString(e.windowLong):n.windowLong=i.default.UZERO,void 0!==e.windowProbation&&null!==e.windowProbation?n.windowProbation=i.default.fromString(e.windowProbation):n.windowProbation=i.default.UZERO,n},toJSON:function(e){var n={};return void 0!==e.taxPolicy&&(n.taxPolicy=e.taxPolicy?t.PolicyConstraints.toJSON(e.taxPolicy):void 0),void 0!==e.rewardPolicy&&(n.rewardPolicy=e.rewardPolicy?t.PolicyConstraints.toJSON(e.rewardPolicy):void 0),void 0!==e.seigniorageBurdenTarget&&(n.seigniorageBurdenTarget=e.seigniorageBurdenTarget),void 0!==e.miningIncrement&&(n.miningIncrement=e.miningIncrement),void 0!==e.windowShort&&(n.windowShort=(e.windowShort||i.default.UZERO).toString()),void 0!==e.windowLong&&(n.windowLong=(e.windowLong||i.default.UZERO).toString()),void 0!==e.windowProbation&&(n.windowProbation=(e.windowProbation||i.default.UZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},c);return void 0!==e.taxPolicy&&null!==e.taxPolicy?n.taxPolicy=t.PolicyConstraints.fromPartial(e.taxPolicy):n.taxPolicy=void 0,void 0!==e.rewardPolicy&&null!==e.rewardPolicy?n.rewardPolicy=t.PolicyConstraints.fromPartial(e.rewardPolicy):n.rewardPolicy=void 0,void 0!==e.seigniorageBurdenTarget&&null!==e.seigniorageBurdenTarget?n.seigniorageBurdenTarget=e.seigniorageBurdenTarget:n.seigniorageBurdenTarget="",void 0!==e.miningIncrement&&null!==e.miningIncrement?n.miningIncrement=e.miningIncrement:n.miningIncrement="",void 0!==e.windowShort&&null!==e.windowShort?n.windowShort=e.windowShort:n.windowShort=i.default.UZERO,void 0!==e.windowLong&&null!==e.windowLong?n.windowLong=e.windowLong:n.windowLong=i.default.UZERO,void 0!==e.windowProbation&&null!==e.windowProbation?n.windowProbation=e.windowProbation:n.windowProbation=i.default.UZERO,n}};var u={rateMin:"",rateMax:"",changeRateMax:""};t.PolicyConstraints={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.rateMin&&t.uint32(10).string(e.rateMin),""!==e.rateMax&&t.uint32(18).string(e.rateMax),void 0!==e.cap&&s.Coin.encode(e.cap,t.uint32(26).fork()).ldelim(),""!==e.changeRateMax&&t.uint32(34).string(e.changeRateMax),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.rateMin=n.string();break;case 2:a.rateMax=n.string();break;case 3:a.cap=s.Coin.decode(n,n.uint32());break;case 4:a.changeRateMax=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.rateMin&&null!==e.rateMin?t.rateMin=String(e.rateMin):t.rateMin="",void 0!==e.rateMax&&null!==e.rateMax?t.rateMax=String(e.rateMax):t.rateMax="",void 0!==e.cap&&null!==e.cap?t.cap=s.Coin.fromJSON(e.cap):t.cap=void 0,void 0!==e.changeRateMax&&null!==e.changeRateMax?t.changeRateMax=String(e.changeRateMax):t.changeRateMax="",t},toJSON:function(e){var t={};return void 0!==e.rateMin&&(t.rateMin=e.rateMin),void 0!==e.rateMax&&(t.rateMax=e.rateMax),void 0!==e.cap&&(t.cap=e.cap?s.Coin.toJSON(e.cap):void 0),void 0!==e.changeRateMax&&(t.changeRateMax=e.changeRateMax),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.rateMin&&null!==e.rateMin?t.rateMin=e.rateMin:t.rateMin="",void 0!==e.rateMax&&null!==e.rateMax?t.rateMax=e.rateMax:t.rateMax="",void 0!==e.cap&&null!==e.cap?t.cap=s.Coin.fromPartial(e.cap):t.cap=void 0,void 0!==e.changeRateMax&&null!==e.changeRateMax?t.changeRateMax=e.changeRateMax:t.changeRateMax="",t}};var d={};t.EpochTaxProceeds={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.taxProceeds);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.taxProceeds=[];n.pos>>3==1?a.taxProceeds.push(s.Coin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},d);if(t.taxProceeds=[],void 0!==e.taxProceeds&&null!==e.taxProceeds){var n,a=r(e.taxProceeds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.taxProceeds.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.taxProceeds?t.taxProceeds=e.taxProceeds.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.taxProceeds=[],t},fromPartial:function(e){var t=Object.assign({},d);if(t.taxProceeds=[],void 0!==e.taxProceeds&&null!==e.taxProceeds){var n,a=r(e.taxProceeds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.taxProceeds.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var f={};t.EpochInitialIssuance={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.issuance);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.issuance=[];n.pos>>3==1?a.issuance.push(s.Coin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},f);if(t.issuance=[],void 0!==e.issuance&&null!==e.issuance){var n,a=r(e.issuance);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.issuance.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.issuance?t.issuance=e.issuance.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.issuance=[],t},fromPartial:function(e){var t=Object.assign({},f);if(t.issuance=[],void 0!==e.issuance&&null!==e.issuance){var n,a=r(e.issuance);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.issuance.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},39412:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VestingSchedule=t.Schedule=t.LazyGradedVestingAccount=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(23407)),s=n(88534);t.protobufPackage="terra.vesting.v1beta1";var c={};t.LazyGradedVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseVestingAccount&&s.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim();var a,i=r(e.vestingSchedules);try{for(i.s();!(a=i.n()).done;){var c=a.value;t.VestingSchedule.encode(c,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);for(i.vestingSchedules=[];r.pos>>3){case 1:i.baseVestingAccount=s.BaseVestingAccount.decode(r,r.uint32());break;case 2:i.vestingSchedules.push(t.VestingSchedule.decode(r,r.uint32()));break;default:r.skipType(7&u)}}return i},fromJSON:function(e){var n=Object.assign({},c);if(n.vestingSchedules=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=s.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.vestingSchedules&&null!==e.vestingSchedules){var a,i=r(e.vestingSchedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.vestingSchedules.push(t.VestingSchedule.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?s.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),e.vestingSchedules?n.vestingSchedules=e.vestingSchedules.map((function(e){return e?t.VestingSchedule.toJSON(e):void 0})):n.vestingSchedules=[],n},fromPartial:function(e){var n=Object.assign({},c);if(n.vestingSchedules=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=s.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.vestingSchedules&&null!==e.vestingSchedules){var a,i=r(e.vestingSchedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.vestingSchedules.push(t.VestingSchedule.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var u={startTime:i.default.ZERO,endTime:i.default.ZERO,ratio:""};t.Schedule={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.startTime.isZero()||t.uint32(8).int64(e.startTime),e.endTime.isZero()||t.uint32(16).int64(e.endTime),""!==e.ratio&&t.uint32(26).string(e.ratio),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.startTime=n.int64();break;case 2:a.endTime=n.int64();break;case 3:a.ratio=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.startTime&&null!==e.startTime?t.startTime=i.default.fromString(e.startTime):t.startTime=i.default.ZERO,void 0!==e.endTime&&null!==e.endTime?t.endTime=i.default.fromString(e.endTime):t.endTime=i.default.ZERO,void 0!==e.ratio&&null!==e.ratio?t.ratio=String(e.ratio):t.ratio="",t},toJSON:function(e){var t={};return void 0!==e.startTime&&(t.startTime=(e.startTime||i.default.ZERO).toString()),void 0!==e.endTime&&(t.endTime=(e.endTime||i.default.ZERO).toString()),void 0!==e.ratio&&(t.ratio=e.ratio),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.startTime&&null!==e.startTime?t.startTime=e.startTime:t.startTime=i.default.ZERO,void 0!==e.endTime&&null!==e.endTime?t.endTime=e.endTime:t.endTime=i.default.ZERO,void 0!==e.ratio&&null!==e.ratio?t.ratio=e.ratio:t.ratio="",t}};var d={denom:""};t.VestingSchedule={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.denom&&n.uint32(10).string(e.denom);var a,i=r(e.schedules);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Schedule.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);for(i.schedules=[];r.pos>>3){case 1:i.denom=r.string();break;case 2:i.schedules.push(t.Schedule.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},d);if(n.schedules=[],void 0!==e.denom&&null!==e.denom?n.denom=String(e.denom):n.denom="",void 0!==e.schedules&&null!==e.schedules){var a,i=r(e.schedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.schedules.push(t.Schedule.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.denom&&(n.denom=e.denom),e.schedules?n.schedules=e.schedules.map((function(e){return e?t.Schedule.toJSON(e):void 0})):n.schedules=[],n},fromPartial:function(e){var n=Object.assign({},d);if(n.schedules=[],void 0!==e.denom&&null!==e.denom?n.denom=e.denom:n.denom="",void 0!==e.schedules&&null!==e.schedules){var a,i=r(e.schedules);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.schedules.push(t.Schedule.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},75084:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(33482).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgClearContractAdminResponse=t.MsgClearContractAdmin=t.MsgUpdateContractAdminResponse=t.MsgUpdateContractAdmin=t.MsgMigrateContractResponse=t.MsgMigrateContract=t.MsgExecuteContractResponse=t.MsgExecuteContract=t.MsgInstantiateContractResponse=t.MsgInstantiateContract=t.MsgMigrateCodeResponse=t.MsgMigrateCode=t.MsgStoreCodeResponse=t.MsgStoreCode=t.protobufPackage=void 0;var s=o(n(24141)),c=o(n(23407)),u=n(47971);t.protobufPackage="terra.wasm.v1beta1";var d={sender:""};t.MsgStoreCode={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),0!==e.wasmByteCode.length&&t.uint32(18).bytes(e.wasmByteCode),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.wasmByteCode=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.wasmByteCode=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return t.wasmByteCode=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode&&(t.wasmByteCode=E(e.wasmByteCode)),t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.wasmByteCode&&(t.wasmByteCode=T(void 0!==e.wasmByteCode?e.wasmByteCode:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode?t.wasmByteCode=e.wasmByteCode:t.wasmByteCode=new Uint8Array,t}};var f={codeId:s.default.UZERO};t.MsgStoreCodeResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return e.codeId.isZero()||t.uint32(8).uint64(e.codeId),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3==1?a.codeId=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,t}};var l={codeId:s.default.UZERO,sender:""};t.MsgMigrateCode={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return e.codeId.isZero()||t.uint32(8).uint64(e.codeId),""!==e.sender&&t.uint32(18).string(e.sender),0!==e.wasmByteCode.length&&t.uint32(26).bytes(e.wasmByteCode),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.wasmByteCode=new Uint8Array;n.pos>>3){case 1:a.codeId=n.uint64();break;case 2:a.sender=n.string();break;case 3:a.wasmByteCode=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return t.wasmByteCode=new Uint8Array,void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode&&(t.wasmByteCode=E(e.wasmByteCode)),t},toJSON:function(e){var t={};return void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.wasmByteCode&&(t.wasmByteCode=T(void 0!==e.wasmByteCode?e.wasmByteCode:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode?t.wasmByteCode=e.wasmByteCode:t.wasmByteCode=new Uint8Array,t}};var b={};t.MsgMigrateCodeResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();""!==e.sender&&t.uint32(10).string(e.sender),""!==e.admin&&t.uint32(18).string(e.admin),e.codeId.isZero()||t.uint32(24).uint64(e.codeId),0!==e.initMsg.length&&t.uint32(34).bytes(e.initMsg);var n,r=i(e.initCoins);try{for(r.s();!(n=r.n()).done;){var a=n.value;u.Coin.encode(a,t.uint32(42).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.initCoins=[],a.initMsg=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.admin=n.string();break;case 3:a.codeId=n.uint64();break;case 4:a.initMsg=n.bytes();break;case 5:a.initCoins.push(u.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);if(t.initCoins=[],t.initMsg=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,void 0!==e.initMsg&&null!==e.initMsg&&(t.initMsg=E(e.initMsg)),void 0!==e.initCoins&&null!==e.initCoins){var n,r=i(e.initCoins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.initCoins.push(u.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.initMsg&&(t.initMsg=T(void 0!==e.initMsg?e.initMsg:new Uint8Array)),e.initCoins?t.initCoins=e.initCoins.map((function(e){return e?u.Coin.toJSON(e):void 0})):t.initCoins=[],t},fromPartial:function(e){var t=Object.assign({},p);if(t.initCoins=[],void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,void 0!==e.initMsg&&null!==e.initMsg?t.initMsg=e.initMsg:t.initMsg=new Uint8Array,void 0!==e.initCoins&&null!==e.initCoins){var n,r=i(e.initCoins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.initCoins.push(u.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var h={contractAddress:""};t.MsgInstantiateContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.contractAddress&&t.uint32(10).string(e.contractAddress),0!==e.data.length&&t.uint32(18).bytes(e.data),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.data=new Uint8Array;n.pos>>3){case 1:a.contractAddress=n.string();break;case 2:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);return t.data=new Uint8Array,void 0!==e.contractAddress&&null!==e.contractAddress?t.contractAddress=String(e.contractAddress):t.contractAddress="",void 0!==e.data&&null!==e.data&&(t.data=E(e.data)),t},toJSON:function(e){var t={};return void 0!==e.contractAddress&&(t.contractAddress=e.contractAddress),void 0!==e.data&&(t.data=T(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},h);return void 0!==e.contractAddress&&null!==e.contractAddress?t.contractAddress=e.contractAddress:t.contractAddress="",void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var y={sender:"",contract:""};t.MsgExecuteContract={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(18).string(e.contract),0!==e.executeMsg.length&&t.uint32(26).bytes(e.executeMsg);var n,r=i(e.coins);try{for(r.s();!(n=r.n()).done;){var a=n.value;u.Coin.encode(a,t.uint32(42).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.coins=[],a.executeMsg=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.contract=n.string();break;case 3:a.executeMsg=n.bytes();break;case 5:a.coins.push(u.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);if(t.coins=[],t.executeMsg=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.executeMsg&&null!==e.executeMsg&&(t.executeMsg=E(e.executeMsg)),void 0!==e.coins&&null!==e.coins){var n,r=i(e.coins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.coins.push(u.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.executeMsg&&(t.executeMsg=T(void 0!==e.executeMsg?e.executeMsg:new Uint8Array)),e.coins?t.coins=e.coins.map((function(e){return e?u.Coin.toJSON(e):void 0})):t.coins=[],t},fromPartial:function(e){var t=Object.assign({},y);if(t.coins=[],void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.executeMsg&&null!==e.executeMsg?t.executeMsg=e.executeMsg:t.executeMsg=new Uint8Array,void 0!==e.coins&&null!==e.coins){var n,r=i(e.coins);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.coins.push(u.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var m={};t.MsgExecuteContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.data=new Uint8Array;n.pos>>3==1?a.data=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},m);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=E(e.data)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=T(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var v={admin:"",contract:"",newCodeId:s.default.UZERO};t.MsgMigrateContract={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.admin&&t.uint32(10).string(e.admin),""!==e.contract&&t.uint32(18).string(e.contract),e.newCodeId.isZero()||t.uint32(24).uint64(e.newCodeId),0!==e.migrateMsg.length&&t.uint32(34).bytes(e.migrateMsg),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.migrateMsg=new Uint8Array;n.pos>>3){case 1:a.admin=n.string();break;case 2:a.contract=n.string();break;case 3:a.newCodeId=n.uint64();break;case 4:a.migrateMsg=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return t.migrateMsg=new Uint8Array,void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.newCodeId&&null!==e.newCodeId?t.newCodeId=s.default.fromString(e.newCodeId):t.newCodeId=s.default.UZERO,void 0!==e.migrateMsg&&null!==e.migrateMsg&&(t.migrateMsg=E(e.migrateMsg)),t},toJSON:function(e){var t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.newCodeId&&(t.newCodeId=(e.newCodeId||s.default.UZERO).toString()),void 0!==e.migrateMsg&&(t.migrateMsg=T(void 0!==e.migrateMsg?e.migrateMsg:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.newCodeId&&null!==e.newCodeId?t.newCodeId=e.newCodeId:t.newCodeId=s.default.UZERO,void 0!==e.migrateMsg&&null!==e.migrateMsg?t.migrateMsg=e.migrateMsg:t.migrateMsg=new Uint8Array,t}};var g={};t.MsgMigrateContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);for(a.data=new Uint8Array;n.pos>>3==1?a.data=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},g);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=E(e.data)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=T(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},g);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var A={admin:"",newAdmin:"",contract:""};t.MsgUpdateContractAdmin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.admin&&t.uint32(10).string(e.admin),""!==e.newAdmin&&t.uint32(18).string(e.newAdmin),""!==e.contract&&t.uint32(26).string(e.contract),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);n.pos>>3){case 1:a.admin=n.string();break;case 2:a.newAdmin=n.string();break;case 3:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=String(e.newAdmin):t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.newAdmin&&(t.newAdmin=e.newAdmin),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=e.newAdmin:t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var w={};t.MsgUpdateContractAdminResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.admin&&t.uint32(10).string(e.admin),""!==e.contract&&t.uint32(18).string(e.contract),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},x);n.pos>>3){case 1:a.admin=n.string();break;case 2:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},x);return void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.admin&&(t.admin=e.admin),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},x);return void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var _={};t.MsgClearContractAdminResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);n.pos0||-1===this._reconnectCount)?(-1!==this._reconnectCount&&this._reconnectCount--,this.reconnectTimeoutId&&clearTimeout(this.reconnectTimeoutId),this.reconnectTimeoutId=setTimeout((function(){e.emit("reconnect"),e.start()}),this.reconnectInterval)):this.emit("destroyed")},t.prototype.subscribe=function(e,t,n){this.queryParams=function(e){for(var t=[],n=0,r=Object.keys(e);n":case"<":case"<=":case">=":i="number"!=typeof o[1]?"".concat(a).concat(o[0]).concat(o[1].toISOString()):"".concat(a).concat(o[0]).concat(o[1]);break;case"CONTAINS":i="".concat(a," CONTAINS '").concat(d(o[1]),"'");break;case"EXISTS":i="".concat(a," EXISTS")}else switch(typeof o){case"number":i="".concat(a,"=").concat(o);break;case"string":i="".concat(a,"='").concat(d(o),"'");break;default:i="".concat(a,"=").concat(o.toISOString())}t.push(i)}return t.join(" AND ")}(i({"tm.event":e},t)),this.callback=n},t.prototype.subscribeTx=function(e,t){this.subscribe("Tx",e,(function(e){return e.value.TxResult.txhash=(0,u.hashToHex)(e.value.TxResult.tx),t(e)}))},t}(s.EventEmitter);t.WebSocketClient=f},32454:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(8214),t),a(n(54201),t),a(n(22621),t),a(n(69483),t),a(n(39325),t)},77394:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&(o=c)),d=new u.TxBody(t.msgs,t.memo||""),f=new u.AuthInfo([],new u.Fee(0,new u.Coins)),(l=new u.Tx(d,f,[])).appendEmptySignatures(e),i&&"auto"!==i&&"0"!==i?[3,2]:[4,this.estimateGas(l,{gasAdjustment:r})];case 1:i=s.sent().toString(),s.label=2;case 2:return b=o?o.mul(i).toIntCeilCoins():this.lcd.config.isClassic?"0uusd":"0uluna",[2,new u.Fee(Number.parseInt(i),b,"","")]}}))}))},t.prototype.estimateGas=function(e,t){return o(this,void 0,void 0,(function(){var n,r,a,i;return s(this,(function(o){switch(o.label){case 0:if(n=(null==t?void 0:t.gasAdjustment)||this.lcd.config.gasAdjustment,r=e,e.signatures.length<=0){if(!(t&&t.signers&&t.signers.length>0))throw Error("cannot append signature");a=new u.AuthInfo([],new u.Fee(0,new u.Coins)),(r=new u.Tx(e.body,a,[])).appendEmptySignatures(t.signers)}return[4,this.c.post("/cosmos/tx/v1beta1/simulate",{tx_bytes:this.encode(r)}).then((function(e){return l.fromData(e)}))];case 1:return i=o.sent(),[2,new u.Dec(n).mul(i.gas_info.gas_used).toNumber()]}}))}))},t.prototype.computeTax=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){throw new Error("Tax was removed from network")}))}))},t.prototype.encode=function(e){return a.from(e.toBytes(this.lcd.config.isClassic)).toString("base64")},t.prototype.decode=function(e){return u.Tx.fromBuffer(a.from(e,"base64"),this.lcd.config.isClassic)},t.prototype.hash=function(e){return o(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,this.encode(e)];case 1:return t=n.sent(),[2,(0,d.hashToHex)(t)]}}))}))},t.prototype._broadcast=function(e,t){return o(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,this.c.post("/cosmos/tx/v1beta1/txs",{tx_bytes:this.encode(e),mode:t})];case 1:return[2,n.sent()]}}))}))},t.prototype.broadcast=function(e,t){return void 0===t&&(t=3e4),o(this,void 0,void 0,(function(){var n,r,a,i;return s(this,(function(o){switch(o.label){case 0:return n=500,[4,this._broadcast(e,"BROADCAST_MODE_SYNC")];case 1:if(null!=(r=o.sent().tx_response).code&&0!=r.code)return[2,{height:Number.parseInt(r.height),txhash:r.txhash,raw_log:r.raw_log,code:r.code,codespace:r.codespace,gas_used:0,gas_wanted:0,timestamp:"",logs:[]}];i=0,o.label=2;case 2:if(!(i<=t/n))return[3,9];o.label=3;case 3:return o.trys.push([3,5,,6]),[4,this.txInfo(r.txhash)];case 4:return a=o.sent(),[3,6];case 5:return o.sent(),[3,6];case 6:return a?[3,9]:[4,new Promise((function(e){return setTimeout(e,n)}))];case 7:o.sent(),o.label=8;case 8:return i++,[3,2];case 9:if(!a)throw new Error("Transaction was not included in a block before timeout of ".concat(t,"ms"));return[2,{txhash:a.txhash,raw_log:a.raw_log,gas_wanted:a.gas_wanted,gas_used:a.gas_used,height:+a.height,logs:(a.logs||[]).map((function(e){return f.TxLog.fromData(e)})),code:a.code,codespace:a.codespace,timestamp:a.timestamp}]}}))}))},t.prototype.broadcastBlock=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._broadcast(e,"BROADCAST_MODE_BLOCK").then((function(e){var t=e.tx_response;return{txhash:t.txhash,raw_log:t.raw_log,gas_wanted:Number.parseInt(t.gas_wanted),gas_used:Number.parseInt(t.gas_used),height:+t.height,logs:t.logs.map((function(e){return f.TxLog.fromData(e)})),code:t.code,codespace:t.codespace,data:t.data,info:t.info,timestamp:t.timestamp}}))]}))}))},t.prototype.broadcastSync=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._broadcast(e,"BROADCAST_MODE_SYNC").then((function(e){var t=e.tx_response,n={height:+t.height,txhash:t.txhash,raw_log:t.raw_log};return t.code&&(n.code=t.code),t.codespace&&(n.codespace=t.codespace),n}))]}))}))},t.prototype.broadcastAsync=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._broadcast(e,"BROADCAST_MODE_ASYNC").then((function(e){var t=e.tx_response;return{height:+t.height,txhash:t.txhash}}))]}))}))},t.prototype.search=function(e){var t;return o(this,void 0,void 0,(function(){var n,r=this;return s(this,(function(a){return n=new URLSearchParams,null===(t=e.events)||void 0===t||t.forEach((function(e){return n.append("events","tx.height"===e.key?"".concat(e.key,"=").concat(e.value):"".concat(e.key,"='").concat(e.value,"'"))})),delete e.events,Object.entries(e).forEach((function(e){n.append(e[0],e[1])})),[2,this.c.getRaw("/cosmos/tx/v1beta1/txs",n).then((function(e){return{txs:e.tx_responses.map((function(e){return u.TxInfo.fromData(e,r.lcd.config.isClassic)})),pagination:e.pagination}}))]}))}))},t}(c.BaseAPI);t.TxAPI=b},97965:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]Math.pow(2,32)-1)throw new Error("CompactBitArray overflow");return new e(t%8,r.alloc(n))},e.prototype.count=function(){return 0==this.extra_bits_stored?8*this.elems.length:8*(this.elems.length-1)+this.extra_bits_stored},e.prototype.getIndex=function(e){return!(e<0||e>=this.count())&&(this.elems.readUInt8(e>>3)&1<<7-e%8)>0},e.prototype.setIndex=function(e,t){return!(e<0||e>=this.count()||(t?this.elems[e>>3]|=1<<7-e%8:this.elems[e>>3]&=~(1<<7-e%8),0))},e.prototype.numTrueBitsBefore=function(e){var t=function(e){return e.toString(2).split("0").join("").length},n=0,r=this.count();e>r&&(e=r);for(var a=0;;a++){if(8*a+7>=e)return n+t(this.elems[a]>>7-e%8+1);n+=t(this.elems[a])}},e.fromData=function(t){return new e(t.extra_bits_stored,r.from(t.elems,"base64"))},e.prototype.toData=function(){return{elems:this.elems.toString("base64"),extra_bits_stored:this.extra_bits_stored}},e.fromProto=function(t){return new e(t.extraBitsStored,r.from(t.elems))},e.prototype.toProto=function(){return a.CompactBitArray.fromPartial({elems:this.elems,extraBitsStored:this.extra_bits_stored})},e}();t.CompactBitArray=i},36482:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},33707:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Deposit=void 0;var c=n(26800),u=n(32891),d=n(22453),f=s(n(24141)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.proposal_id=t,a.depositor=n,a.amount=new c.Coins(r),a}return a(t,e),t.fromAmino=function(e){var n=e.proposal_id,r=e.depositor,a=e.amount;return new t(Number.parseInt(n),r,c.Coins.fromAmino(a))},t.prototype.toAmino=function(){var e=this,t=e.proposal_id,n=e.depositor,r=e.amount;return{proposal_id:t.toString(),depositor:n,amount:r.toAmino()}},t.fromData=function(e){var n=e.proposal_id,r=e.depositor,a=e.amount;return new t(Number.parseInt(n),r,c.Coins.fromData(a))},t.prototype.toData=function(){var e=this,t=e.proposal_id,n=e.depositor,r=e.amount;return{proposal_id:t.toString(),depositor:n,amount:r.toData()}},t.fromProto=function(e){return new t(e.proposalId.toNumber(),e.depositor,c.Coins.fromProto(e.amount))},t.prototype.toProto=function(){var e=this,t=e.proposal_id,n=e.depositor,r=e.amount;return d.Deposit.fromPartial({proposalId:f.fromNumber(t),depositor:n,amount:r.toProto()})},t}(u.JSONSerializable);t.Deposit=l},50222:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Fee=void 0;var c=n(32891),u=n(26800),d=n(21717),f=n(89413),l=s(n(24141)),b=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.gas_limit=t,i.payer=r,i.granter=a,i.amount=new u.Coins(n),i}return a(t,e),t.fromAmino=function(e){var n=e.gas,r=e.amount;return new t(Number.parseInt(n),u.Coins.fromAmino(r),"","")},t.prototype.toAmino=function(){return{gas:new d.Int(this.gas_limit).toString(),amount:this.amount.toAmino()}},t.fromData=function(e){return new t(Number.parseInt(e.gas_limit),u.Coins.fromData(e.amount),e.payer,e.granter)},t.prototype.toData=function(){var e=this,t=e.amount,n=e.gas_limit,r=e.payer,a=e.granter;return{amount:t.toData(),gas_limit:n.toFixed(),granter:null!=a?a:"",payer:null!=r?r:""}},t.fromProto=function(e){return new t(e.gasLimit.toNumber(),u.Coins.fromProto(e.amount),e.payer,e.granter)},t.prototype.toProto=function(){var e=this,t=e.amount,n=e.gas_limit,r=e.payer,a=e.granter;return f.Fee.fromPartial({amount:t.toProto(),gasLimit:l.fromNumber(n),granter:a,payer:r})},t.prototype.gasPrices=function(){return this.amount.toDecCoins().div(this.gas_limit)},t}(c.JSONSerializable);t.Fee=b},16836:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Msg=void 0;var r,a=n(92614),i=n(97130),o=n(77875),s=n(62942),c=n(26797),u=n(84481),d=n(66800),f=n(42527),l=n(62185),b=n(66312),p=n(5267),h=n(60681),y=n(85610),m=n(39254),v=n(87302),g=n(22656);(r=t.Msg||(t.Msg={})).fromAmino=function(e,t){switch(e.type){case"bank/MsgSend":case"cosmos-sdk/MsgSend":return a.MsgSend.fromAmino(e,t);case"bank/MsgMultiSend":case"cosmos-sdk/MsgMultiSend":return a.MsgMultiSend.fromAmino(e,t);case"distribution/MsgModifyWithdrawAddress":case"cosmos-sdk/MsgModifyWithdrawAddress":return i.MsgSetWithdrawAddress.fromAmino(e,t);case"distribution/MsgWithdrawDelegationReward":case"cosmos-sdk/MsgWithdrawDelegationReward":return i.MsgWithdrawDelegatorReward.fromAmino(e,t);case"distribution/MsgWithdrawValidatorCommission":case"cosmos-sdk/MsgWithdrawValidatorCommission":return i.MsgWithdrawValidatorCommission.fromAmino(e,t);case"distribution/MsgFundCommunityPool":case"cosmos-sdk/MsgFundCommunityPool":return i.MsgFundCommunityPool.fromAmino(e,t);case"feegrant/MsgGrantAllowance":case"cosmos-sdk/MsgGrantAllowance":return o.MsgGrantAllowance.fromAmino(e,t);case"feegrant/MsgRevokeAllowance":case"cosmos-sdk/MsgRevokeAllowance":return o.MsgRevokeAllowance.fromAmino(e,t);case"gov/MsgDeposit":case"cosmos-sdk/MsgDeposit":return s.MsgDeposit.fromAmino(e,t);case"gov/MsgSubmitProposal":case"cosmos-sdk/MsgSubmitProposal":return s.MsgSubmitProposal.fromAmino(e,t);case"gov/MsgVote":case"cosmos-sdk/MsgVote":return s.MsgVote.fromAmino(e,t);case"gov/MsgVoteWeighted":case"cosmos-sdk/MsgVoteWeighted":return s.MsgVoteWeighted.fromAmino(e,t);case"market/MsgSwap":return c.MsgSwap.fromAmino(e,t);case"market/MsgSwapSend":return c.MsgSwapSend.fromAmino(e,t);case"msgauth/MsgGrantAuthorization":case"cosmos-sdk/MsgGrant":return u.MsgGrantAuthorization.fromAmino(e,t);case"msgauth/MsgRevokeAuthorization":case"cosmos-sdk/MsgRevoke":return u.MsgRevokeAuthorization.fromAmino(e,t);case"msgauth/MsgExecAuthorized":case"cosmos-sdk/MsgExec":return u.MsgExecAuthorized.fromAmino(e,t);case"oracle/MsgDelegateFeedConsent":return d.MsgDelegateFeedConsent.fromAmino(e,t);case"oracle/MsgAggregateExchangeRatePrevote":return d.MsgAggregateExchangeRatePrevote.fromAmino(e,t);case"oracle/MsgAggregateExchangeRateVote":return d.MsgAggregateExchangeRateVote.fromAmino(e,t);case"slashing/MsgUnjail":case"cosmos-sdk/MsgUnjail":return f.MsgUnjail.fromAmino(e,t);case"staking/MsgDelegate":case"cosmos-sdk/MsgDelegate":return l.MsgDelegate.fromAmino(e,t);case"staking/MsgUndelegate":case"cosmos-sdk/MsgUndelegate":return l.MsgUndelegate.fromAmino(e,t);case"staking/MsgBeginRedelegate":case"cosmos-sdk/MsgBeginRedelegate":return l.MsgBeginRedelegate.fromAmino(e,t);case"staking/MsgCreateValidator":case"cosmos-sdk/MsgCreateValidator":return l.MsgCreateValidator.fromAmino(e,t);case"staking/MsgEditValidator":case"cosmos-sdk/MsgEditValidator":return l.MsgEditValidator.fromAmino(e,t);case"cosmos-sdk/MsgCreatePeriodicVestingAccount":return b.MsgCreatePeriodicVestingAccount.fromAmino(e,t);case"cosmos-sdk/MsgCreateVestingAccount":return b.MsgCreateVestingAccount.fromAmino(e,t);case"cosmos-sdk/MsgDonateAllVestingTokens":return b.MsgDonateAllVestingTokens.fromAmino(e,t);case"wasm/MsgStoreCode":return p.MsgStoreCode.fromAmino(e,t);case"wasm/MsgMigrateCode":return p.MsgMigrateCode.fromAmino(e,t);case"wasm/MsgInstantiateContract":return p.MsgInstantiateContract.fromAmino(e,t);case"wasm/MsgExecuteContract":return p.MsgExecuteContract.fromAmino(e,t);case"wasm/MsgMigrateContract":return p.MsgMigrateContract.fromAmino(e,t);case"wasm/MsgUpdateContractAdmin":case"wasm/MsgUpdateAdmin":return p.MsgUpdateContractAdmin.fromAmino(e,t);case"wasm/MsgClearContractAdmin":case"wasm/MsgClearAdmin":return p.MsgClearContractAdmin.fromAmino(e,t);case"cosmos-sdk/MsgTransfer":return h.MsgTransfer.fromAmino(e,t);case"crisis/MsgVerifyInvariant":case"cosmos-sdk/MsgVerifyInvariant":return g.MsgVerifyInvariant.fromAmino(e,t)}},r.fromData=function(e,t){switch(e["@type"]){case"/cosmos.bank.v1beta1.MsgSend":return a.MsgSend.fromData(e,t);case"/cosmos.bank.v1beta1.MsgMultiSend":return a.MsgMultiSend.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress":return i.MsgSetWithdrawAddress.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward":return i.MsgWithdrawDelegatorReward.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission":return i.MsgWithdrawValidatorCommission.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgFundCommunityPool":return i.MsgFundCommunityPool.fromData(e,t);case"/cosmos.feegrant.v1beta1.MsgGrantAllowance":return o.MsgGrantAllowance.fromData(e,t);case"/cosmos.feegrant.v1beta1.MsgRevokeAllowance":return o.MsgRevokeAllowance.fromData(e,t);case"/cosmos.gov.v1beta1.MsgDeposit":return s.MsgDeposit.fromData(e,t);case"/cosmos.gov.v1beta1.MsgSubmitProposal":return s.MsgSubmitProposal.fromData(e,t);case"/cosmos.gov.v1beta1.MsgVote":return s.MsgVote.fromData(e,t);case"/cosmos.gov.v1beta1.MsgVoteWeighted":return s.MsgVoteWeighted.fromData(e,t);case"/terra.market.v1beta1.MsgSwap":return c.MsgSwap.fromData(e,t);case"/terra.market.v1beta1.MsgSwapSend":return c.MsgSwapSend.fromData(e,t);case"/cosmos.authz.v1beta1.MsgGrant":return u.MsgGrantAuthorization.fromData(e,t);case"/cosmos.authz.v1beta1.MsgRevoke":return u.MsgRevokeAuthorization.fromData(e,t);case"/cosmos.authz.v1beta1.MsgExec":return u.MsgExecAuthorized.fromData(e,t);case"/terra.oracle.v1beta1.MsgDelegateFeedConsent":return d.MsgDelegateFeedConsent.fromData(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote":return d.MsgAggregateExchangeRatePrevote.fromData(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote":return d.MsgAggregateExchangeRateVote.fromData(e,t);case"/cosmos.slashing.v1beta1.MsgUnjail":return f.MsgUnjail.fromData(e,t);case"/cosmos.staking.v1beta1.MsgDelegate":return l.MsgDelegate.fromData(e,t);case"/cosmos.staking.v1beta1.MsgUndelegate":return l.MsgUndelegate.fromData(e,t);case"/cosmos.staking.v1beta1.MsgBeginRedelegate":return l.MsgBeginRedelegate.fromData(e,t);case"/cosmos.staking.v1beta1.MsgCreateValidator":return l.MsgCreateValidator.fromData(e,t);case"/cosmos.staking.v1beta1.MsgEditValidator":return l.MsgEditValidator.fromData(e,t);case"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount":return b.MsgCreatePeriodicVestingAccount.fromData(e,t);case"/cosmos.vesting.v1beta1.MsgCreateVestingAccount":return b.MsgCreateVestingAccount.fromData(e,t);case"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens":return b.MsgDonateAllVestingTokens.fromData(e,t);case"/terra.wasm.v1beta1.MsgStoreCode":case"/cosmwasm.wasm.v1.MsgStoreCode":return p.MsgStoreCode.fromData(e,t);case"/terra.wasm.v1beta1.MsgMigrateCode":return p.MsgMigrateCode.fromData(e,t);case"/terra.wasm.v1beta1.MsgInstantiateContract":case"/cosmwasm.wasm.v1.MsgInstantiateContract":return p.MsgInstantiateContract.fromData(e,t);case"/terra.wasm.v1beta1.MsgExecuteContract":case"/cosmwasm.wasm.v1.MsgExecuteContract":return p.MsgExecuteContract.fromData(e,t);case"/terra.wasm.v1beta1.MsgMigrateContract":case"/cosmwasm.wasm.v1.MsgMigrateContract":return p.MsgMigrateContract.fromData(e,t);case"/terra.wasm.v1beta1.MsgUpdateContractAdmin":case"/cosmwasm.wasm.v1.MsgUpdateAdmin":return p.MsgUpdateContractAdmin.fromData(e,t);case"/terra.wasm.v1beta1.MsgClearContractAdmin":case"/cosmwasm.wasm.v1.MsgClearAdmin":return p.MsgClearContractAdmin.fromData(e,t);case"/ibc.applications.transfer.v1.MsgTransfer":return h.MsgTransfer.fromData(e,t);case"/ibc.core.client.v1.MsgCreateClient":return y.MsgCreateClient.fromData(e,t);case"/ibc.core.client.v1.MsgUpdateClient":return y.MsgUpdateClient.fromData(e,t);case"/ibc.core.client.v1.MsgUpgradeClient":return y.MsgUpgradeClient.fromData(e,t);case"/ibc.core.client.v1.MsgSubmitMisbehaviour":return y.MsgSubmitMisbehaviour.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenInit":return m.MsgConnectionOpenInit.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenTry":return m.MsgConnectionOpenTry.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenConfirm":return m.MsgConnectionOpenConfirm.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenAck":return m.MsgConnectionOpenAck.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenInit":return v.MsgChannelOpenInit.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenTry":return v.MsgChannelOpenTry.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenConfirm":return v.MsgChannelOpenConfirm.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenAck":return v.MsgChannelOpenAck.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelCloseInit":return v.MsgChannelCloseInit.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelCloseConfirm":return v.MsgChannelCloseConfirm.fromData(e,t);case"/ibc.core.channel.v1.MsgRecvPacket":return v.MsgRecvPacket.fromData(e,t);case"/ibc.core.channel.v1.MsgAcknowledgement":return v.MsgAcknowledgement.fromData(e,t);case"/ibc.core.channel.v1.MsgTimeout":return v.MsgTimeout.fromData(e,t);case"/ibc.core.channel.v1.MsgTimeoutOnClose":return v.MsgTimeoutOnClose.fromData(e,t);case"/cosmos.crisis.v1beta1.MsgVerifyInvariant":return g.MsgVerifyInvariant.fromData(e,t);default:throw Error("not supported msg ".concat(e["@type"]))}},r.fromProto=function(e,t){switch(e.typeUrl){case"/cosmos.bank.v1beta1.MsgSend":return a.MsgSend.unpackAny(e,t);case"/cosmos.bank.v1beta1.MsgMultiSend":return a.MsgMultiSend.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress":return i.MsgSetWithdrawAddress.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward":return i.MsgWithdrawDelegatorReward.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission":return i.MsgWithdrawValidatorCommission.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgFundCommunityPool":return i.MsgFundCommunityPool.unpackAny(e,t);case"/cosmos.feegrant.v1beta1.MsgGrantAllowance":return o.MsgGrantAllowance.unpackAny(e,t);case"/cosmos.feegrant.v1beta1.MsgRevokeAllowance":return o.MsgRevokeAllowance.unpackAny(e,t);case"/cosmos.gov.v1beta1.MsgDeposit":return s.MsgDeposit.unpackAny(e,t);case"/cosmos.gov.v1beta1.MsgSubmitProposal":return s.MsgSubmitProposal.unpackAny(e,t);case"/cosmos.gov.v1beta1.MsgVote":return s.MsgVote.unpackAny(e,t);case"/terra.market.v1beta1.MsgSwap":return c.MsgSwap.unpackAny(e,t);case"/terra.market.v1beta1.MsgSwapSend":return c.MsgSwapSend.unpackAny(e,t);case"/cosmos.authz.v1beta1.MsgGrant":return u.MsgGrantAuthorization.unpackAny(e,t);case"/cosmos.authz.v1beta1.MsgRevoke":return u.MsgRevokeAuthorization.unpackAny(e,t);case"/cosmos.authz.v1beta1.MsgExec":return u.MsgExecAuthorized.unpackAny(e,t);case"/terra.oracle.v1beta1.MsgDelegateFeedConsent":return d.MsgDelegateFeedConsent.unpackAny(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote":return d.MsgAggregateExchangeRatePrevote.unpackAny(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote":return d.MsgAggregateExchangeRateVote.unpackAny(e,t);case"/cosmos.slashing.v1beta1.MsgUnjail":return f.MsgUnjail.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgDelegate":return l.MsgDelegate.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgUndelegate":return l.MsgUndelegate.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgBeginRedelegate":return l.MsgBeginRedelegate.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgCreateValidator":return l.MsgCreateValidator.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgEditValidator":return l.MsgEditValidator.unpackAny(e,t);case"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount":return b.MsgCreatePeriodicVestingAccount.unpackAny(e,t);case"/cosmos.vesting.v1beta1.MsgCreateVestingAccount":return b.MsgCreateVestingAccount.unpackAny(e,t);case"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens":return b.MsgDonateAllVestingTokens.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgStoreCode":case"/cosmwasm.wasm.v1.MsgStoreCode":return p.MsgStoreCode.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgMigrateCode":return p.MsgMigrateCode.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgInstantiateContract":case"/cosmwasm.wasm.v1.MsgInstantiateContract":return p.MsgInstantiateContract.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgExecuteContract":case"/cosmwasm.wasm.v1.MsgExecuteContract":return p.MsgExecuteContract.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgMigrateContract":case"/cosmwasm.wasm.v1beta1.MsgMigrateContract":return p.MsgMigrateContract.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgUpdateContractAdmin":case"/cosmwasm.wasm.v1beta1.MsgUpdateAdmin":return p.MsgUpdateContractAdmin.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgClearContractAdmin":case"/cosmwasm.wasm.v1.MsgClearAdmin":return p.MsgClearContractAdmin.unpackAny(e,t);case"/ibc.applications.transfer.v1.MsgTransfer":return h.MsgTransfer.unpackAny(e,t);case"/ibc.core.client.v1.MsgCreateClient":return y.MsgCreateClient.unpackAny(e,t);case"/ibc.core.client.v1.MsgUpdateClient":return y.MsgUpdateClient.unpackAny(e,t);case"/ibc.core.client.v1.MsgUpgradeClient":return y.MsgUpgradeClient.unpackAny(e,t);case"/ibc.core.client.v1.MsgSubmitMisbehaviour":return y.MsgSubmitMisbehaviour.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenInit":return m.MsgConnectionOpenInit.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenTry":return m.MsgConnectionOpenTry.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenConfirm":return m.MsgConnectionOpenConfirm.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenAck":return m.MsgConnectionOpenAck.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenInit":return v.MsgChannelOpenInit.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenTry":return v.MsgChannelOpenTry.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenConfirm":return v.MsgChannelOpenConfirm.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenAck":return v.MsgChannelOpenAck.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelCloseInit":return v.MsgChannelCloseInit.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelCloseConfirm":return v.MsgChannelCloseConfirm.unpackAny(e,t);case"/ibc.core.channel.v1.MsgRecvPacket":return v.MsgRecvPacket.unpackAny(e,t);case"/ibc.core.channel.v1.MsgAcknowledgement":return v.MsgAcknowledgement.unpackAny(e,t);case"/ibc.core.channel.v1.MsgTimeout":return v.MsgTimeout.unpackAny(e,t);case"/ibc.core.channel.v1.MsgTimeoutOnClose":return v.MsgTimeoutOnClose.unpackAny(e,t);case"/cosmos.crisis.v1beta1.MsgVerifyInvariant":return g.MsgVerifyInvariant.unpackAny(e,t);default:throw Error("not supported msg ".concat(e.typeUrl))}}},4911:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSignature=void 0;var r=n(86951),a=n(76858),i=n(53506),o=function(){function e(e){this.multisig_pubkey=e;var t=e.pubkeys.length;this.bitarray=a.CompactBitArray.fromBits(t),this.signatures=[]}return e.prototype.appendSignature=function(e,t){var n=this.bitarray.numTrueBitsBefore(t);this.bitarray.getIndex(t)?this.signatures[n]=e:(this.bitarray.setIndex(t,!0),n!=this.signatures.length?this.signatures.splice(n,0,e):this.signatures.push(e))},e.prototype.appendSignatureFromPubKey=function(e,t){var n=this.multisig_pubkey.pubkeys.findIndex((function(e){return e.key===t.key}));if(-1==n)throw new Error("provided key doesn't exist in public_keys");this.appendSignature(e,n)},e.prototype.appendSignatureV2s=function(e){for(var t=0,n=e;t127)throw new Error("Encoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.PutUvarint implementation from the Go standard library and write some tests.");return[t]};(o=t.PublicKey||(t.PublicKey={})).fromAmino=function(e){switch(e.type){case"tendermint/PubKeySecp256k1":return v.fromAmino(e);case"tendermint/PubKeyMultisigThreshold":return g.fromAmino(e);case"tendermint/PubKeyEd25519":return A.fromAmino(e)}},o.fromData=function(e){switch(e["@type"]){case"/cosmos.crypto.secp256k1.PubKey":return v.fromData(e);case"/cosmos.crypto.multisig.LegacyAminoPubKey":return g.fromData(e);case"/cosmos.crypto.ed25519.PubKey":return A.fromData(e)}},o.fromProto=function(e){var t=e.typeUrl;if("/cosmos.crypto.secp256k1.PubKey"===t)return v.unpackAny(e);if("/cosmos.crypto.multisig.LegacyAminoPubKey"===t)return g.unpackAny(e);if("/cosmos.crypto.ed25519.PubKey"===t)return A.unpackAny(e);throw new Error("Pubkey type ".concat(t," not recognized"))};var v=function(e){function t(t){var n=e.call(this)||this;return n.key=t,n}return i(t,e),t.fromAmino=function(e){return new t(e.value)},t.prototype.toAmino=function(){return{type:"tendermint/PubKeySecp256k1",value:this.key}},t.fromData=function(e){return new t(e.key)},t.prototype.toData=function(){return{"@type":"/cosmos.crypto.secp256k1.PubKey",key:this.key}},t.fromProto=function(e){return new t(a.from(e.key).toString("base64"))},t.prototype.toProto=function(){return f.PubKey.fromPartial({key:a.from(this.key,"base64")})},t.prototype.packAny=function(){return d.Any.fromPartial({typeUrl:"/cosmos.crypto.secp256k1.PubKey",value:f.PubKey.encode(this.toProto()).finish()})},t.unpackAny=function(e){return t.fromProto(f.PubKey.decode(e.value))},t.prototype.encodeAminoPubkey=function(){return a.concat([p,a.from(this.key,"base64")])},t.prototype.rawAddress=function(){var e=a.from(this.key,"base64");return(0,c.ripemd160)((0,c.sha256)(e))},t.prototype.address=function(){return b.bech32.encode("terra",b.bech32.toWords(this.rawAddress()))},t.prototype.pubkeyAddress=function(){return b.bech32.encode("terrapub",b.bech32.toWords(this.encodeAminoPubkey()))},t}(s.JSONSerializable);t.SimplePublicKey=v;var g=function(e){function t(t,n){var r=e.call(this)||this;return r.threshold=t,r.pubkeys=n,r}return i(t,e),t.prototype.encodeAminoPubkey=function(){var e=Array.from(y);e.push(8),e.push.apply(e,m(this.threshold));for(var t=0,n=this.pubkeys.map((function(e){return e.encodeAminoPubkey()}));t0?e.toFixed():void 0,revision_height:t>0?t.toFixed():void 0}},t.fromData=function(e){var n=e.revision_number,r=e.revision_height;return new t(Number.parseInt(n),Number.parseInt(r))},t.prototype.toData=function(){var e=this.revision_number,t=this.revision_height;return{revision_number:e.toFixed(),revision_height:t.toFixed()}},t.fromProto=function(e){return new t(e.revisionNumber.toNumber(),e.revisionHeight.toNumber())},t.prototype.toProto=function(){var e=this.revision_number,t=this.revision_height;return c.Height.fromPartial({revisionNumber:u.fromNumber(e),revisionHeight:u.fromNumber(t)})},t}(n(32891).JSONSerializable);t.Height=d},47812:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifiedClientState=void 0;var i=n(56820),o=function(e){function t(t,n){var r=e.call(this)||this;return r.client_id=t,r.client_state=n,r}return a(t,e),t.fromAmino=function(e){return new t(e.client_id,e.client_state)},t.prototype.toAmino=function(){return{client_id:this.client_id,client_state:this.client_state}},t.fromData=function(e){return new t(e.client_id,e.client_state)},t.prototype.toData=function(){return{client_id:this.client_id,client_state:this.client_state}},t.fromProto=function(e){return new t(e.clientId,e.clientState)},t.prototype.toProto=function(){var e=this.client_id,t=this.client_state;return i.IdentifiedClientState.fromPartial({clientId:e,clientState:t})},t}(n(32891).JSONSerializable);t.IdentifiedClientState=o},8096:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MerklePrefix=void 0;var o=n(88255),s=function(e){function t(t){var n=e.call(this)||this;return n.key_prefix=t,n}return i(t,e),t.fromAmino=function(e){return new t(e.key_prefix)},t.prototype.toAmino=function(){return{key_prefix:this.key_prefix}},t.fromData=function(e){return new t(e.key_prefix)},t.prototype.toData=function(){return{key_prefix:this.key_prefix}},t.fromProto=function(e){return new t(a.from(e.keyPrefix).toString("base64"))},t.prototype.toProto=function(){var e=this.key_prefix;return o.MerklePrefix.fromPartial({keyPrefix:a.from(e,"base64")})},t}(n(32891).JSONSerializable);t.MerklePrefix=s},26382:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Counterparty=void 0;var i=n(20594),o=n(32891),s=n(8096),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_id=t,a.connection_id=n,a.prefix=r,a}return a(t,e),t.fromAmino=function(e){var n=e.client_id,r=e.connection_id,a=e.prefix;return new t(n,r,a?s.MerklePrefix.fromAmino(a):void 0)},t.prototype.toAmino=function(){var e=this;return{client_id:e.client_id,connection_id:e.connection_id,prefix:e.prefix}},t.fromData=function(e){var n=e.client_id,r=e.connection_id,a=e.prefix;return new t(n,r,a?s.MerklePrefix.fromData(a):void 0)},t.prototype.toData=function(){var e=this,t=e.client_id,n=e.connection_id,r=e.prefix;return{client_id:t,connection_id:n,prefix:r?r.toData():void 0}},t.fromProto=function(e){return new t(e.clientId,e.connectionId,e.prefix?s.MerklePrefix.fromProto(e.prefix):void 0)},t.prototype.toProto=function(){var e=this,t=e.client_id,n=e.connection_id,r=e.prefix;return i.Counterparty.fromPartial({clientId:t,connectionId:n,prefix:r?r.toProto():void 0})},t}(o.JSONSerializable);t.Counterparty=c},36110:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifiedConnection=t.stateToJSON=t.stateFromJSON=t.State=void 0;var o=n(20594),s=n(32891),c=n(81940),u=n(20594);Object.defineProperty(t,"State",{enumerable:!0,get:function(){return u.State}}),Object.defineProperty(t,"stateFromJSON",{enumerable:!0,get:function(){return u.stateFromJSON}}),Object.defineProperty(t,"stateToJSON",{enumerable:!0,get:function(){return u.stateToJSON}});var d=n(26382),f=i(n(24141)),l=function(e){function t(t,n,r,a,i,o){var s=e.call(this)||this;return s.id=t,s.client_id=n,s.versions=r,s.state=a,s.counterparty=i,s.delay_period=o,s}return a(t,e),t.fromAmino=function(e){var n=e.id,r=e.client_id,a=e.versions,i=e.state,o=e.counterparty,s=e.delay_period;return new t(n,r,a.map(c.Version.fromAmino),(0,u.stateFromJSON)(i),o?d.Counterparty.fromAmino(o):void 0,Number.parseInt(s))},t.prototype.toAmino=function(){var e=this,t=e.id,n=e.client_id,r=e.versions,a=e.state,i=e.counterparty,o=e.delay_period;return{id:t,client_id:n,versions:r.map((function(e){return e.toAmino()})),state:(0,u.stateToJSON)(a),counterparty:null==i?void 0:i.toAmino(),delay_period:o.toFixed()}},t.fromData=function(e){var n=e.id,r=e.client_id,a=e.versions,i=e.state,o=e.counterparty,s=e.delay_period;return new t(n,r,a.map(c.Version.fromData),(0,u.stateFromJSON)(i),o?d.Counterparty.fromData(o):void 0,Number.parseInt(s))},t.prototype.toData=function(){var e=this,t=e.id,n=e.client_id,r=e.versions,a=e.state,i=e.counterparty,o=e.delay_period;return{id:t,client_id:n,versions:r.map((function(e){return e.toData()})),state:(0,u.stateToJSON)(a),counterparty:null==i?void 0:i.toData(),delay_period:o.toFixed()}},t.fromProto=function(e){return new t(e.id,e.clientId,e.versions.map(c.Version.fromProto),e.state,e.counterparty?d.Counterparty.fromProto(e.counterparty):void 0,e.delayPeriod.toNumber())},t.prototype.toProto=function(){var e=this,t=e.id,n=e.client_id,r=e.versions,a=e.state,i=e.counterparty,s=e.delay_period;return o.IdentifiedConnection.fromPartial({id:t,clientId:n,versions:r.map((function(e){return e.toProto()})),state:a,counterparty:null==i?void 0:i.toProto(),delayPeriod:f.default.fromNumber(s)})},t}(s.JSONSerializable);t.IdentifiedConnection=l},81940:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Version=void 0;var i=n(20594),o=function(e){function t(t,n){var r=e.call(this)||this;return r.identifier=t,r.features=n,r}return a(t,e),t.fromAmino=function(e){return new t(e.identifier,e.features)},t.prototype.toAmino=function(){return{identifier:this.identifier,features:this.features}},t.fromData=function(e){return new t(e.identifier,e.features)},t.prototype.toData=function(){return{identifier:this.identifier,features:this.features}},t.fromProto=function(e){return new t(e.identifier,e.features)},t.prototype.toProto=function(){var e=this.identifier,t=this.features;return i.Version.fromPartial({identifier:e,features:t})},t}(n(32891).JSONSerializable);t.Version=o},5844:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(26382),t),a(n(81940),t),a(n(36110),t)},53132:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Header=void 0;var i=n(32891),o=n(46362),s=n(74932),c=n(60604),u=n(58682),d=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.signedHeader=t,i.validatorSet=n,i.trustedHeight=r,i.trustedValidators=a,i}return a(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.signed_header,r=e.validator_set,a=e.trusted_height,i=e.trusted_validators;return new t(n?c.SignedHeader.fromData(n):void 0,r?c.ValidatorSet.fromData(r):void 0,a?s.Height.fromData(a):void 0,i?c.ValidatorSet.fromData(i):void 0)},t.prototype.toData=function(){var e=this,t=e.signedHeader,n=e.validatorSet,r=e.trustedHeight,a=e.trustedValidators;return{signed_header:(null==t?void 0:t.toData())||void 0,validator_set:(null==n?void 0:n.toData())||void 0,trusted_height:(null==r?void 0:r.toData())||void 0,trusted_validators:(null==a?void 0:a.toData())||void 0}},t.fromProto=function(e){var n=e.signedHeader,r=e.validatorSet,a=e.trustedHeight,i=e.trustedValidators;return new t(n?c.SignedHeader.fromProto(n):void 0,r?c.ValidatorSet.fromProto(r):void 0,a?s.Height.fromProto(a):void 0,i?c.ValidatorSet.fromProto(i):void 0)},t.prototype.toProto=function(){var e=this,t=e.signedHeader,n=e.validatorSet,r=e.trustedHeight,a=e.trustedValidators;return o.Header.fromPartial({signedHeader:(null==t?void 0:t.toProto())||void 0,validatorSet:(null==n?void 0:n.toProto())||void 0,trustedHeight:(null==r?void 0:r.toProto())||void 0,trustedValidators:(null==a?void 0:a.toProto())||void 0})},t.prototype.packAny=function(){return u.Any.fromPartial({typeUrl:"ibc.lightclients.tendermint.v1.Header",value:o.Header.encode(this.toProto()).finish()})},t.unpackAny=function(e){return t.fromProto(o.Header.decode(e.value))},t}(i.JSONSerializable);t.Header=d},12583:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelCloseConfirm=void 0;var o=n(32891),s=n(58682),c=n(74932),u=n(81492),d=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.port_id=t,o.channel_id=n,o.proof_init=r,o.proof_height=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel_id,i=e.proof_init,o=e.proof_height,s=e.signer;return new t(r,a,i,o?c.Height.fromData(o):void 0,s)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.proof_init,i=t.proof_height,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelCloseConfirm",port_id:n,channel_id:r,proof_init:a,proof_height:i?i.toData():void 0,signer:o}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,a.from(e.proofInit).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,i=t.proof_init,o=t.proof_height,s=t.signer;return u.MsgChannelCloseConfirm.fromPartial({portId:n,channelId:r,proofInit:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,signer:s})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelCloseConfirm",value:u.MsgChannelCloseConfirm.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgChannelCloseConfirm.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelCloseConfirm=d},89437:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelCloseInit=void 0;var i=n(32891),o=n(58682),s=n(81492),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.port_id=t,a.channel_id=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.port_id,e.channel_id,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.channel.v1.MsgChannelCloseInit",port_id:t.port_id,channel_id:t.channel_id,signer:t.signer}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.signer;return s.MsgChannelCloseInit.fromPartial({portId:n,channelId:r,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelCloseInit",value:s.MsgChannelCloseInit.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgChannelCloseInit.decode(e.value))},t}(i.JSONSerializable);t.MsgChannelCloseInit=c},9271:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenAck=void 0;var o=n(32891),s=n(58682),c=n(74932),u=n(81492),d=function(e){function t(t,n,r,a,i,o,s){var c=e.call(this)||this;return c.port_id=t,c.channel_id=n,c.counterparty_channel_id=r,c.counterparty_version=a,c.proof_try=i,c.proof_height=o,c.signer=s,c}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel_id,i=e.counterparty_channel_id,o=e.counterparty_version,s=e.proof_try,u=e.proof_height,d=e.signer;return new t(r,a,i,o,s,u?c.Height.fromData(u):void 0,d)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.counterparty_channel_id,i=t.counterparty_version,o=t.proof_try,s=t.proof_height,c=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenAck",port_id:n,channel_id:r,counterparty_channel_id:a,counterparty_version:i,proof_try:o,proof_height:s?s.toData():void 0,signer:c}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,e.counterpartyChannelId,e.counterpartyVersion,a.from(e.proofTry).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,i=t.counterparty_channel_id,o=t.counterparty_version,s=t.proof_try,c=t.proof_height,d=t.signer;return u.MsgChannelOpenAck.fromPartial({portId:n,channelId:r,counterpartyChannelId:i,counterpartyVersion:o,proofTry:a.from(s,"base64"),proofHeight:c?c.toProto():void 0,signer:d})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenAck",value:u.MsgChannelOpenAck.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgChannelOpenAck.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelOpenAck=d},20291:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenConfirm=void 0;var o=n(32891),s=n(58682),c=n(74932),u=n(81492),d=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.port_id=t,o.channel_id=n,o.proof_ack=r,o.proof_height=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel_id,i=e.proof_ack,o=e.proof_height,s=e.signer;return new t(r,a,i,o?c.Height.fromData(o):void 0,s)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.proof_ack,i=t.proof_height,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenConfirm",port_id:n,channel_id:r,proof_ack:a,proof_height:i?i.toData():void 0,signer:o}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,a.from(e.proofAck).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,i=t.proof_ack,o=t.proof_height,s=t.signer;return u.MsgChannelOpenConfirm.fromPartial({portId:n,channelId:r,proofAck:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,signer:s})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenConfirm",value:u.MsgChannelOpenConfirm.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgChannelOpenConfirm.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelOpenConfirm=d},20778:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenInit=void 0;var i=n(32891),o=n(58682),s=n(94917),c=n(81492),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.port_id=t,a.channel=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel,i=e.signer;return new t(r,a?s.Channel.fromData(a):void 0,i)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel,a=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenInit",port_id:n,channel:r?r.toData():void 0,signer:a}},t.fromProto=function(e,n){return new t(e.portId,e.channel?s.Channel.fromProto(e.channel):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel,a=t.signer;return c.MsgChannelOpenInit.fromPartial({portId:n,channel:r?r.toProto():void 0,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenInit",value:c.MsgChannelOpenInit.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgChannelOpenInit.decode(e.value))},t}(i.JSONSerializable);t.MsgChannelOpenInit=u},11219:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenTry=void 0;var o=n(32891),s=n(58682),c=n(94917),u=n(74932),d=n(81492),f=function(e){function t(t,n,r,a,i,o,s){var c=e.call(this)||this;return c.port_id=t,c.previous_channel_id=n,c.channel=r,c.counterparty_version=a,c.proof_init=i,c.proof_height=o,c.signer=s,c}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.previous_channel_id,i=e.channel,o=e.counterparty_version,s=e.proof_init,d=e.proof_height,f=e.signer;return new t(r,a,i?c.Channel.fromData(i):void 0,o,s,d?u.Height.fromData(d):void 0,f)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.previous_channel_id,a=t.channel,i=t.counterparty_version,o=t.proof_init,s=t.proof_height,c=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenTry",port_id:n,previous_channel_id:r,channel:a?a.toData():void 0,counterparty_version:i,proof_init:o,proof_height:s?s.toData():void 0,signer:c}},t.fromProto=function(e,n){return new t(e.portId,e.previousChannelId,e.channel?c.Channel.fromProto(e.channel):void 0,e.counterpartyVersion,a.from(e.proofInit).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.previous_channel_id,i=t.channel,o=t.counterparty_version,s=t.proof_init,c=t.proof_height,u=t.signer;return d.MsgChannelOpenTry.fromPartial({portId:n,previousChannelId:r,channel:i?i.toProto():void 0,counterpartyVersion:o,proofInit:a.from(s,"base64"),proofHeight:c?c.toProto():void 0,signer:u})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenTry",value:d.MsgChannelOpenTry.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgChannelOpenTry.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelOpenTry=f},51421:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgAcknowledgement=void 0;var o=n(32891),s=n(58682),c=n(74932),u=n(13080),d=n(81492),f=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.packet=t,o.acknowledgement=n,o.proof_acked=r,o.proof_height=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.acknowledgement,i=e.proof_acked,o=e.proof_height,s=e.signer;return new t(r?u.Packet.fromData(r):void 0,i,a,o?c.Height.fromData(o):void 0,s)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.acknowledgement,a=t.proof_acked,i=t.proof_height,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgAcknowledgement",packet:n?n.toData():void 0,acknowledgement:r,proof_acked:a,proof_height:i?i.toData():void 0,signer:o}},t.fromProto=function(e,n){return new t(e.packet?u.Packet.fromProto(e.packet):void 0,a.from(e.acknowledgement).toString("base64"),a.from(e.proofAcked).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.acknowledgement,i=t.proof_acked,o=t.proof_height,s=t.signer;return d.MsgAcknowledgement.fromPartial({packet:n?n.toProto():void 0,acknowledgement:a.from(r,"base64"),proofAcked:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,signer:s})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgAcknowledgement",value:d.MsgAcknowledgement.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgAcknowledgement.decode(e.value))},t}(o.JSONSerializable);t.MsgAcknowledgement=f},67739:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgRecvPacket=void 0;var o=n(32891),s=n(58682),c=n(74932),u=n(13080),d=n(81492),f=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.packet=t,i.proof_commitment=n,i.proof_height=r,i.signer=a,i}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.proof_commitment,i=e.proof_height,o=e.signer;return new t(r?u.Packet.fromData(r):void 0,a,i?c.Height.fromData(i):void 0,o)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.proof_commitment,a=t.proof_height,i=t.signer;return{"@type":"/ibc.core.channel.v1.MsgRecvPacket",packet:n?n.toData():void 0,proof_commitment:r,proof_height:a?a.toData():void 0,signer:i}},t.fromProto=function(e,n){return new t(e.packet?u.Packet.fromProto(e.packet):void 0,a.from(e.proofCommitment).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.proof_commitment,i=t.proof_height,o=t.signer;return d.MsgRecvPacket.fromPartial({packet:n?n.toProto():void 0,proofCommitment:a.from(r,"base64"),proofHeight:i?i.toProto():void 0,signer:o})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgRecvPacket",value:d.MsgRecvPacket.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgRecvPacket.decode(e.value))},t}(o.JSONSerializable);t.MsgRecvPacket=f},70709:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgTimeout=void 0;var s=n(32891),c=n(58682),u=n(74932),d=n(13080),f=n(81492),l=o(n(24141)),b=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.packet=t,o.proof_unreceived=n,o.proof_height=r,o.next_sequence_recv=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.proof_unreceived,i=e.proof_height,o=e.next_sequence_recv,s=e.signer;return new t(r?d.Packet.fromData(r):void 0,a,i?u.Height.fromData(i):void 0,Number.parseInt(o),s)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.proof_unreceived,a=t.proof_height,i=t.next_sequence_recv,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgTimeout",packet:n?n.toData():void 0,proof_unreceived:r,proof_height:a?a.toData():void 0,next_sequence_recv:i.toFixed(),signer:o}},t.fromProto=function(e,n){return new t(e.packet?d.Packet.fromProto(e.packet):void 0,a.from(e.proofUnreceived).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.nextSequenceRecv.toNumber(),e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.proof_unreceived,i=t.proof_height,o=t.next_sequence_recv,s=t.signer;return f.MsgTimeout.fromPartial({packet:n?n.toProto():void 0,proofUnreceived:a.from(r,"base64"),proofHeight:i?i.toProto():void 0,nextSequenceRecv:l.default.fromNumber(o),signer:s})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgTimeout",value:f.MsgTimeout.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgTimeout.decode(e.value))},t}(s.JSONSerializable);t.MsgTimeout=b},69571:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgTimeoutOnClose=void 0;var s=n(32891),c=n(58682),u=n(74932),d=n(13080),f=n(81492),l=o(n(24141)),b=function(e){function t(t,n,r,a,i,o){var s=e.call(this)||this;return s.packet=t,s.proof_unreceived=n,s.proof_close=r,s.proof_height=a,s.next_sequence_recv=i,s.signer=o,s}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.proof_unreceived,i=e.proof_close,o=e.proof_height,s=e.next_sequence_recv,c=e.signer;return new t(r?d.Packet.fromData(r):void 0,i,a,o?u.Height.fromData(o):void 0,Number.parseInt(s),c)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.proof_unreceived,a=t.proof_close,i=t.proof_height,o=t.next_sequence_recv,s=t.signer;return{"@type":"/ibc.core.channel.v1.MsgTimeoutOnClose",packet:n?n.toData():void 0,proof_unreceived:r,proof_close:a,proof_height:i?i.toData():void 0,next_sequence_recv:o.toFixed(),signer:s}},t.fromProto=function(e,n){return new t(e.packet?d.Packet.fromProto(e.packet):void 0,a.from(e.proofUnreceived).toString("base64"),a.from(e.proofClose).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.nextSequenceRecv.toNumber(),e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.proof_unreceived,i=t.proof_close,o=t.proof_height,s=t.next_sequence_recv,c=t.signer;return f.MsgTimeoutOnClose.fromPartial({packet:n?n.toProto():void 0,proofUnreceived:a.from(r,"base64"),proofClose:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,nextSequenceRecv:l.default.fromNumber(s),signer:c})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgTimeoutOnClose",value:f.MsgTimeoutOnClose.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgTimeoutOnClose.decode(e.value))},t}(s.JSONSerializable);t.MsgTimeoutOnClose=b},87302:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(20778),t),a(n(11219),t),a(n(20291),t),a(n(9271),t),a(n(89437),t),a(n(12583),t),a(n(67739),t),a(n(51421),t),a(n(70709),t),a(n(69571),t)},42739:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreateClient=void 0;var i=n(32891),o=n(58682),s=n(41113),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_state=t,a.consensus_state=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.client_state,e.consensus_state,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.MsgCreateClient",client_state:t.client_state,consensus_state:t.consensus_state,signer:t.signer}},t.fromProto=function(e,n){return new t(e.clientState,e.consensusState,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_state,r=t.consensus_state,a=t.signer;return s.MsgCreateClient.fromPartial({clientState:n,consensusState:r,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgCreateClient",value:s.MsgCreateClient.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgCreateClient.decode(e.value))},t}(i.JSONSerializable);t.MsgCreateClient=c},8645:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgSubmitMisbehaviour=void 0;var i=n(32891),o=n(58682),s=n(41113),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_id=t,a.misbehaviour=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.client_id,e.misbehaviour,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.MsgSubmitMisbehaviour",client_id:t.client_id,misbehaviour:t.misbehaviour,signer:t.signer}},t.fromProto=function(e,n){return new t(e.clientId,e.misbehaviour,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.misbehaviour,a=t.signer;return s.MsgSubmitMisbehaviour.fromPartial({clientId:n,misbehaviour:r,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgSubmitMisbehaviour",value:s.MsgSubmitMisbehaviour.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgSubmitMisbehaviour.decode(e.value))},t}(i.JSONSerializable);t.MsgSubmitMisbehaviour=c},45894:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUpdateClient=void 0;var i=n(32891),o=n(58682),s=n(41113),c=n(53132),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_id=t,a.header=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.client_id,a=e.header,i=e.signer;return new t(r,a?c.Header.fromData(a):void 0,i)},t.prototype.toData=function(e){var t=this,n=t.client_id,r=t.header,a=t.signer;return{"@type":"/ibc.core.client.v1.MsgUpdateClient",client_id:n,header:(null==r?void 0:r.toData())||void 0,signer:a}},t.fromProto=function(e,n){return new t(e.clientId,e.header?c.Header.unpackAny(e.header):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.header,a=t.signer;return s.MsgUpdateClient.fromPartial({clientId:n,header:(null==r?void 0:r.packAny())||void 0,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgUpdateClient",value:s.MsgUpdateClient.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgUpdateClient.decode(e.value))},t}(i.JSONSerializable);t.MsgUpdateClient=u},53109:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUpgradeClient=void 0;var o=n(32891),s=n(58682),c=n(41113),u=function(e){function t(t,n,r,a,i,o){var s=e.call(this)||this;return s.client_id=t,s.client_state=n,s.consensus_state=r,s.proof_upgrade_client=a,s.proof_upgrade_consensus_state=i,s.signer=o,s}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.client_id,e.client_state,e.consensus_state,e.proof_upgrade_client,e.proof_upgrade_consensus_state,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.MsgUpgradeClient",client_id:t.client_id,client_state:t.client_state,consensus_state:t.consensus_state,proof_upgrade_client:t.proof_upgrade_client,proof_upgrade_consensus_state:t.proof_upgrade_consensus_state,signer:t.signer}},t.fromProto=function(e,n){return new t(e.clientId,e.clientState,e.consensusState,a.from(e.proofUpgradeClient).toString("base64"),a.from(e.proofUpgradeConsensusState).toString("base64"),e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.client_state,i=t.consensus_state,o=t.proof_upgrade_client,s=t.proof_upgrade_consensus_state,u=t.signer;return c.MsgUpgradeClient.fromPartial({clientId:n,clientState:r,consensusState:i,proofUpgradeClient:a.from(o,"base64"),proofUpgradeConsensusState:a.from(s,"base64"),signer:u})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgUpgradeClient",value:c.MsgUpgradeClient.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgUpgradeClient.decode(e.value))},t}(o.JSONSerializable);t.MsgUpgradeClient=u},85610:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(42739),t),a(n(45894),t),a(n(53109),t),a(n(8645),t)},16398:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PublicKey=t.Proof=void 0;var u=n(54195),d=n(83811),f=c(n(24141)),l=n(32891),b=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.total=t,i.index=n,i.leafHash=r,i.aunts=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.total,r=e.index,a=e.leaf_hash,i=e.aunts;return new t(Number.parseInt(n),Number.parseInt(r),a,i)},t.prototype.toData=function(){var e=this,t=e.total,n=e.index,r=e.leafHash,a=e.aunts;return{total:t.toFixed(),index:n.toFixed(),leaf_hash:r,aunts:a}},t.fromProto=function(e){return new t(e.total.toNumber(),e.index.toNumber(),a.from(e.leafHash).toString("base64"),e.aunts.map((function(e){return a.from(e).toString("base64")})))},t.prototype.toProto=function(){var e=this,t=e.total,n=e.index,r=e.leafHash,i=e.aunts;return u.Proof.fromPartial({total:f.fromNumber(t),index:f.fromNumber(n),leafHash:a.from(r,"base64"),aunts:i.map((function(e){return a.from(e,"base64")}))})},t}(l.JSONSerializable);t.Proof=b;var p=function(e){function t(t,n){var r=e.call(this)||this;return r.ed25519=t,r.secp256k1=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){return new t(e.ed25519,e.secp256k1)},t.prototype.toData=function(){return{ed25519:this.ed25519,secp256k1:this.secp256k1}},t.fromProto=function(e){var n=e.ed25519,r=e.secp256k1;return new t(n?a.from(n).toString("base64"):void 0,r?a.from(r).toString("base64"):void 0)},t.prototype.toProto=function(){var e=this.ed25519,t=this.secp256k1;return d.PublicKey.fromPartial({ed25519:e?a.from(e,"base64"):void 0,secp256k1:t?a.from(t,"base64"):void 0})},t}(l.JSONSerializable);t.PublicKey=p},60604:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Validator=t.ValidatorSet=t.CommitSig=t.Commit=t.PartSetHeader=t.BlockID=t.SignedHeader=t.Header=void 0;var u=n(49203),d=n(52599),f=c(n(24141)),l=n(32891),b=n(90263),p=n(16398),h=function(e){function t(t,n,r,a,i,o,s,c,u,d,f,l,b,p){var h=e.call(this)||this;return h.version=t,h.chainId=n,h.height=r,h.time=a,h.lastBlockId=i,h.lastCommitHash=o,h.dataHash=s,h.validatorsHash=c,h.nextValidatorsHash=u,h.consensusHash=d,h.appHash=f,h.lastResultsHash=l,h.evidenceHash=b,h.proposerAddress=p,h}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.version,r=e.chain_id,a=e.height,i=e.time,o=e.last_block_id,s=e.last_commit_hash,c=e.data_hash,u=e.validators_hash,d=e.next_validators_hash,f=e.consensus_hash,l=e.app_hash,p=e.last_results_hash,h=e.evidence_hash,y=e.proposer_address;return new t(n?b.Consensus.fromData(n):void 0,r,a,i?new Date(i):void 0,o?m.fromData(o):void 0,s,c,u,d,f,l,p,h,y)},t.prototype.toData=function(){var e=this,t=e.version,n=e.chainId,r=e.height,a=e.time,i=e.lastBlockId,o=e.lastCommitHash,s=e.dataHash,c=e.validatorsHash,u=e.nextValidatorsHash,d=e.consensusHash,f=e.appHash,l=e.lastResultsHash,b=e.evidenceHash,p=e.proposerAddress;return{version:null==t?void 0:t.toData(),chain_id:n,height:r,time:a?a.toISOString().replace(/\.000Z$/,"Z"):void 0,last_block_id:i?i.toData():void 0,last_commit_hash:o,data_hash:s,validators_hash:c,next_validators_hash:u,consensus_hash:d,app_hash:f,last_results_hash:l,evidence_hash:b,proposer_address:p}},t.fromProto=function(e){var n=e.version,r=e.chainId,i=e.height,o=e.time,s=e.lastBlockId,c=e.lastCommitHash,u=e.dataHash,d=e.validatorsHash,f=e.nextValidatorsHash,l=e.consensusHash,p=e.appHash,h=e.lastResultsHash,y=e.evidenceHash,v=e.proposerAddress;return new t(n?b.Consensus.fromProto(n):void 0,r,i.toString(),o,s?m.fromProto(s):void 0,a.from(c).toString("base64"),a.from(u).toString("base64"),a.from(d).toString("base64"),a.from(f).toString("base64"),a.from(l).toString("base64"),a.from(p).toString("base64"),a.from(h).toString("base64"),a.from(y).toString("base64"),v.toString())},t.prototype.toProto=function(){var e=this,t=e.version,n=e.chainId,r=e.height,i=e.time,o=e.lastBlockId,s=e.lastCommitHash,c=e.dataHash,d=e.validatorsHash,l=e.nextValidatorsHash,b=e.consensusHash,p=e.appHash,h=e.lastResultsHash,y=e.evidenceHash,m=e.proposerAddress;return u.Header.fromPartial({version:null==t?void 0:t.toProto(),chainId:n,height:f.fromString(r),time:i,lastBlockId:null==o?void 0:o.toProto(),lastCommitHash:a.from(s,"base64"),dataHash:a.from(c,"base64"),validatorsHash:a.from(d,"base64"),nextValidatorsHash:a.from(l,"base64"),consensusHash:a.from(b,"base64"),appHash:a.from(p,"base64"),lastResultsHash:a.from(h,"base64"),evidenceHash:a.from(y,"base64"),proposerAddress:a.from(m)})},t}(l.JSONSerializable);t.Header=h;var y=function(e){function t(t,n){var r=e.call(this)||this;return r.header=t,r.commit=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.header,r=e.commit;return new t(n?h.fromData(n):void 0,r?g.fromData(r):void 0)},t.prototype.toData=function(){var e=this.header,t=this.commit;return{header:null==e?void 0:e.toData(),commit:null==t?void 0:t.toData()}},t.fromProto=function(e){return new t(e.header?h.fromProto(e.header):void 0,e.commit?g.fromProto(e.commit):void 0)},t.prototype.toProto=function(){var e=this.header,t=this.commit;return u.SignedHeader.fromPartial({header:null==e?void 0:e.toProto(),commit:null==t?void 0:t.toProto()})},t}(l.JSONSerializable);t.SignedHeader=y;var m=function(e){function t(t,n){var r=e.call(this)||this;return r.hash=t,r.partSetHeader=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.hash,r=e.part_set_header;return new t(n,r?v.fromData(r):void 0)},t.prototype.toData=function(){var e=this.hash,t=this.partSetHeader;return{hash:e,part_set_header:null==t?void 0:t.toData()}},t.fromProto=function(e){return new t(a.from(e.hash).toString("base64"),e.partSetHeader?v.fromProto(e.partSetHeader):void 0)},t.prototype.toProto=function(){var e=this.hash,t=this.partSetHeader;return u.BlockID.fromPartial({hash:a.from(e,"base64"),partSetHeader:t?t.toProto():void 0})},t}(l.JSONSerializable);t.BlockID=m;var v=function(e){function t(t,n){var r=e.call(this)||this;return r.total=t,r.hash=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.total,r=e.hash;return new t(parseInt(n),r)},t.prototype.toData=function(){var e=this.total,t=this.hash;return{total:e.toFixed(),hash:t}},t.fromProto=function(e){return new t(e.total,a.from(e.hash).toString("base64"))},t.prototype.toProto=function(){var e=this.total,t=this.hash;return u.PartSetHeader.fromPartial({total:e,hash:a.from(t,"base64")})},t}(l.JSONSerializable);t.PartSetHeader=v;var g=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.height=t,i.round=n,i.blockId=r,i.signatures=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.height,r=e.round,a=e.block_id,i=e.signatures;return new t(f.fromString(n),Number.parseInt(r),a?m.fromData(a):void 0,i.map((function(e){return A.fromData(e)})))},t.prototype.toData=function(){var e=this,t=e.height,n=e.round,r=e.blockId,a=e.signatures;return{height:t.toString(),round:n.toFixed(),block_id:null==r?void 0:r.toData(),signatures:a.map((function(e){return e.toData()}))}},t.fromProto=function(e){var n=e.height,r=e.round,a=e.blockId,i=e.signatures;return new t(n,r,a?m.fromProto(a):void 0,i.map((function(e){return A.fromProto(e)})))},t.prototype.toProto=function(){var e=this,t=e.height,n=e.round,r=e.blockId,a=e.signatures;return u.Commit.fromPartial({height:t,round:n,blockId:null==r?void 0:r.toProto(),signatures:a.map((function(e){return e.toProto()}))})},t}(l.JSONSerializable);t.Commit=g;var A=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.blockIdFlag=t,i.validatorAddress=n,i.timestamp=r,i.signature=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.block_id_flag,r=e.validator_address,a=e.timestamp,i=e.signature;return new t((0,u.blockIDFlagFromJSON)(n),r,a?new Date(a):void 0,i)},t.prototype.toData=function(){var e=this,t=e.blockIdFlag,n=e.validatorAddress,r=e.timestamp,a=e.signature;return{block_id_flag:(0,u.blockIDFlagToJSON)(t),validator_address:n||"",timestamp:r?r.toISOString().replace(/\.000Z$/,"Z"):void 0,signature:a||""}},t.fromProto=function(e){var n=e.blockIdFlag,r=e.validatorAddress,i=e.timestamp,o=e.signature;return new t(n,a.from(r).toString("base64"),i,a.from(o).toString("base64"))},t.prototype.toProto=function(){var e=this,t=e.blockIdFlag,n=e.validatorAddress,r=e.timestamp,i=e.signature;return u.CommitSig.fromPartial({blockIdFlag:t,validatorAddress:n?a.from(n,"base64"):void 0,timestamp:r,signature:i?a.from(i,"base64"):void 0})},t}(l.JSONSerializable);t.CommitSig=A;var w=function(e){function t(t,n,r){var a=e.call(this)||this;return a.validators=t,a.proposer=n,a.totalVotingPower=r,a}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.validators,r=e.proposer,a=e.total_voting_power;return new t(n.map((function(e){return x.fromData(e)})),r?x.fromData(r):void 0,f.fromString(a))},t.prototype.toData=function(){var e=this,t=e.validators,n=e.proposer,r=e.totalVotingPower;return{validators:t.map((function(e){return e.toData()})),proposer:null==n?void 0:n.toData(),total_voting_power:r.toString()}},t.fromProto=function(e){var n=e.validators,r=e.proposer,a=e.totalVotingPower;return new t(n.map((function(e){return x.fromProto(e)})),r?x.fromProto(r):void 0,a)},t.prototype.toProto=function(){var e=this,t=e.validators,n=e.proposer,r=e.totalVotingPower;return d.ValidatorSet.fromPartial({validators:t.map((function(e){return e.toProto()})),proposer:(null==n?void 0:n.toProto())||void 0,totalVotingPower:r})},t}(l.JSONSerializable);t.ValidatorSet=w;var x=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.address=t,i.pubKey=n,i.votingPower=r,i.proposerPriority=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.address,r=e.pub_key,a=e.voting_power,i=e.proposer_priority;return new t(n,r?p.PublicKey.fromData(r):void 0,f.fromString(a),f.fromString(i))},t.prototype.toData=function(){var e=this,t=e.address,n=e.pubKey,r=e.votingPower,a=e.proposerPriority;return{address:t,pub_key:null==n?void 0:n.toData(),voting_power:r.toString(),proposer_priority:a.toString()}},t.fromProto=function(e){var n=e.address,r=e.pubKey,i=e.votingPower,o=e.proposerPriority;return new t(a.from(n).toString("base64"),r?p.PublicKey.fromProto(r):void 0,i,o)},t.prototype.toProto=function(){var e=this,t=e.address,n=e.pubKey,r=e.votingPower,i=e.proposerPriority;return d.Validator.fromPartial({address:a.from(t,"base64"),pubKey:(null==n?void 0:n.toProto())||void 0,votingPower:r,proposerPriority:i})},t}(l.JSONSerializable);t.Validator=x},90263:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.App=t.Consensus=void 0;var c=n(12362),u=n(12362),d=s(n(24141)),f=n(32891),l=function(e){function t(t,n){var r=e.call(this)||this;return r.block=t,r.app=n,r}return a(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.block,r=e.app;return new t(Number.parseInt(n),Number.parseInt(r))},t.prototype.toData=function(){var e=this.block,t=this.app;return{block:e.toFixed(),app:t.toFixed()}},t.fromProto=function(e){return new t(e.block.toNumber(),e.app.toNumber())},t.prototype.toProto=function(){var e=this.block,t=this.app;return c.Consensus.fromPartial({block:d.fromNumber(e),app:d.fromNumber(t)})},t}(f.JSONSerializable);t.Consensus=l;var b=function(e){function t(t,n){var r=e.call(this)||this;return r.protocol=t,r.software=n,r}return a(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.protocol,r=e.software;return new t(Number.parseInt(n),r)},t.prototype.toData=function(){var e=this.protocol,t=this.software;return{protocol:e.toFixed(),software:t}},t.fromProto=function(e){return new t(e.protocol.toNumber(),e.software)},t.prototype.toProto=function(){var e=this.protocol,t=this.software;return u.App.fromPartial({protocol:d.fromNumber(e),software:t})},t}(f.JSONSerializable);t.App=b},92495:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenAck=void 0;var o=n(32891),s=n(58682),c=n(81940),u=n(41794),d=n(74932),f=function(e){function t(t,n,r,a,i,o,s,c,u,d){var f=e.call(this)||this;return f.connection_id=t,f.counterparty_connection_id=n,f.version=r,f.client_state=a,f.proof_height=i,f.proof_try=o,f.proof_client=s,f.proof_consensus=c,f.consensus_height=u,f.signer=d,f}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.connection_id,a=e.counterparty_connection_id,i=e.version,o=e.client_state,s=e.proof_height,u=e.proof_try,f=e.proof_client,l=e.proof_consensus,b=e.consensus_height,p=e.signer;return new t(r,a,i?c.Version.fromData(i):void 0,o,s?d.Height.fromData(s):void 0,u,f,l,b?d.Height.fromData(b):void 0,p)},t.prototype.toData=function(e){var t=this,n=t.connection_id,r=t.counterparty_connection_id,a=t.version,i=t.client_state,o=t.proof_height,s=t.proof_try,c=t.proof_client,u=t.proof_consensus,d=t.consensus_height,f=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenAck",connection_id:n,counterparty_connection_id:r,version:a?a.toData():void 0,client_state:i,proof_height:o?o.toData():void 0,proof_try:s,proof_client:c,proof_consensus:u,consensus_height:d?d.toData():void 0,signer:f}},t.fromProto=function(e,n){return new t(e.connectionId,e.counterpartyConnectionId,e.version?c.Version.fromProto(e.version):void 0,e.clientState,e.proofHeight?d.Height.fromProto(e.proofHeight):void 0,a.from(e.proofTry).toString("base64"),a.from(e.proofClient).toString("base64"),a.from(e.proofConsensus).toString("base64"),e.consensusHeight?d.Height.fromProto(e.consensusHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.connection_id,r=t.counterparty_connection_id,i=t.version,o=t.client_state,s=t.proof_height,c=t.proof_try,d=t.proof_client,f=t.proof_consensus,l=t.consensus_height,b=t.signer;return u.MsgConnectionOpenAck.fromPartial({connectionId:n,counterpartyConnectionId:r,version:i?i.toProto():void 0,clientState:o,proofHeight:s?s.toProto():void 0,proofTry:a.from(c,"base64"),proofClient:a.from(d,"base64"),proofConsensus:a.from(f,"base64"),consensusHeight:l?l.toProto():void 0,signer:b})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenAck",value:u.MsgConnectionOpenAck.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgConnectionOpenAck.decode(e.value))},t}(o.JSONSerializable);t.MsgConnectionOpenAck=f},8:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenConfirm=void 0;var o=n(32891),s=n(58682),c=n(41794),u=n(74932),d=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.connection_id=t,i.proof_ack=n,i.proof_height=r,i.signer=a,i}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.connection_id,a=e.proof_ack,i=e.proof_height,o=e.signer;return new t(r,a,i?u.Height.fromData(i):void 0,o)},t.prototype.toData=function(e){var t=this,n=t.connection_id,r=t.proof_ack,a=t.proof_height,i=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenConfirm",connection_id:n,proof_ack:r,proof_height:a?a.toData():void 0,signer:i}},t.fromProto=function(e,n){return new t(e.connectionId,a.from(e.proofAck).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.connection_id,r=t.proof_ack,i=t.proof_height,o=t.signer;return c.MsgConnectionOpenConfirm.fromPartial({connectionId:n,proofAck:a.from(r,"base64"),proofHeight:i?i.toProto():void 0,signer:o})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenConfirm",value:c.MsgConnectionOpenConfirm.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgConnectionOpenConfirm.decode(e.value))},t}(o.JSONSerializable);t.MsgConnectionOpenConfirm=d},29917:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenInit=void 0;var o=n(32891),s=n(58682),c=n(26382),u=n(81940),d=n(41794),f=i(n(24141)),l=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.client_id=t,o.delay_period=n,o.signer=r,o.counterparty=a,o.version=i,o}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.client_id,a=e.counterparty,i=e.version,o=e.delay_period,s=e.signer;return new t(r,Number.parseInt(o),s,a?c.Counterparty.fromData(a):void 0,i?u.Version.fromData(i):void 0)},t.prototype.toData=function(e){var t=this,n=t.client_id,r=t.counterparty,a=t.version,i=t.delay_period,o=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenInit",client_id:n,delay_period:i.toFixed(),signer:o,counterparty:r?r.toData():void 0,version:a?a.toData():void 0}},t.fromProto=function(e,n){return new t(e.clientId,e.delayPeriod.toNumber(),e.signer,e.counterparty?c.Counterparty.fromProto(e.counterparty):void 0,e.version?u.Version.fromProto(e.version):void 0)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.counterparty,a=t.version,i=t.delay_period,o=t.signer;return d.MsgConnectionOpenInit.fromPartial({clientId:n,delayPeriod:f.default.fromNumber(i),signer:o,counterparty:r?r.toProto():void 0,version:a?a.toProto():void 0})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenInit",value:d.MsgConnectionOpenInit.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgConnectionOpenInit.decode(e.value))},t}(o.JSONSerializable);t.MsgConnectionOpenInit=l},56765:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenTry=void 0;var s=n(32891),c=n(58682),u=n(26382),d=n(81940),f=n(41794),l=o(n(24141)),b=n(74932),p=function(e){function t(t,n,r,a,i,o,s,c,u,d,f,l){var b=e.call(this)||this;return b.client_id=t,b.previous_connection_id=n,b.client_state=r,b.counterparty=a,b.delay_period=i,b.counterparty_versions=o,b.proof_height=s,b.proof_init=c,b.proof_client=u,b.proof_consensus=d,b.consensus_height=f,b.signer=l,b}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.client_id,i=e.previous_connection_id,o=e.client_state,s=e.counterparty,c=e.delay_period,f=e.counterparty_versions,l=e.proof_height,p=e.proof_init,h=e.proof_client,y=e.proof_consensus,m=e.consensus_height,v=e.signer;return new t(r,i,o,s?u.Counterparty.fromData(s):void 0,Number.parseInt(c),f.length>0?f.map((function(e){return d.Version.fromData(e)})):[],l?b.Height.fromData(l):void 0,a.from(p).toString("base64"),a.from(h).toString("base64"),a.from(y).toString("base64"),m?b.Height.fromData(m):void 0,v)},t.prototype.toData=function(e){var t=this,n=t.client_id,r=t.previous_connection_id,a=t.client_state,i=t.counterparty,o=t.delay_period,s=t.counterparty_versions,c=t.proof_height,u=t.proof_init,d=t.proof_client,f=t.proof_consensus,l=t.consensus_height,b=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenTry",client_id:n,previous_connection_id:r,client_state:a,counterparty:i?i.toData():void 0,delay_period:o.toFixed(),counterparty_versions:s.length>0?s.map((function(e){return e.toData()})):[],proof_height:c?c.toData():void 0,proof_init:u,proof_client:d,proof_consensus:f,consensus_height:l?l.toData():void 0,signer:b}},t.fromProto=function(e,n){return new t(e.clientId,e.previousConnectionId,e.clientState,e.counterparty?u.Counterparty.fromProto(e.counterparty):void 0,e.delayPeriod.toNumber(),e.counterpartyVersions.length>0?e.counterpartyVersions.map((function(e){return d.Version.fromProto(e)})):[],e.proofHeight?b.Height.fromProto(e.proofHeight):void 0,a.from(e.proofInit).toString("base64"),a.from(e.proofClient).toString("base64"),a.from(e.proofConsensus).toString("base64"),e.consensusHeight?b.Height.fromProto(e.consensusHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.previous_connection_id,i=t.client_state,o=t.counterparty,s=t.delay_period,c=t.counterparty_versions,u=t.proof_height,d=t.proof_init,b=t.proof_client,p=t.proof_consensus,h=t.consensus_height,y=t.signer;return f.MsgConnectionOpenTry.fromPartial({clientId:n,previousConnectionId:r,clientState:i.toProto(),counterparty:o?o.toProto():void 0,delayPeriod:l.default.fromNumber(s),counterpartyVersions:c.length>0?c.map((function(e){return e.toProto()})):[],proofHeight:u?u.toProto():void 0,proofInit:a.from(d,"base64"),proofClient:a.from(b,"base64"),proofConsensus:a.from(p,"base64"),consensusHeight:h?h.toProto():void 0,signer:y})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenTry",value:f.MsgConnectionOpenTry.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgConnectionOpenTry.decode(e.value))},t}(s.JSONSerializable);t.MsgConnectionOpenTry=p},39254:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(29917),t),a(n(56765),t),a(n(8),t),a(n(92495),t)},8077:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientUpdateProposal=void 0;var i=n(32891),o=n(58682),s=n(56820),c=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.title=t,i.description=n,i.subjectClientId=r,i.substituteClientId=a,i}return a(t,e),t.fromAmino=function(e,n){var r=e.value;return new t(r.title,r.description,r.subjectClientId,r.substituteClientId)},t.prototype.toAmino=function(e){var t=this;return{type:"ibc/ClientUpdateProposal",value:{title:t.title,description:t.description,subjectClientId:t.subjectClientId,substituteClientId:t.substituteClientId}}},t.fromData=function(e,n){return new t(e.title,e.description,e.subject_client_id,e.substitute_client_id)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.ClientUpdateProposal",title:t.title,description:t.description,subject_client_id:t.subjectClientId,substitute_client_id:t.substituteClientId}},t.fromProto=function(e,n){return new t(e.title,e.description,e.subjectClientId,e.substituteClientId)},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,a=t.subjectClientId,i=t.substituteClientId;return s.ClientUpdateProposal.fromPartial({subjectClientId:a,substituteClientId:i,description:r,title:n})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.ClientUpdateProposal",value:s.ClientUpdateProposal.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.ClientUpdateProposal.decode(e.value))},t}(i.JSONSerializable);t.ClientUpdateProposal=c},59519:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(8077),t)},4682:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(94243),t),a(n(38728),t),a(n(26800),t),a(n(36482),t),a(n(16836),t),a(n(21717),t),a(n(86951),t),a(n(50222),t),a(n(28957),t),a(n(21179),t),a(n(61081),t),a(n(59237),t),a(n(33707),t),a(n(53506),t),a(n(4911),t),a(n(14807),t),a(n(37398),t),a(n(62162),t),a(n(35394),t),a(n(5065),t),a(n(54824),t),a(n(55941),t),a(n(92614),t),a(n(97130),t),a(n(84443),t),a(n(77875),t),a(n(55420),t),a(n(62942),t),a(n(8196),t),a(n(57547),t),a(n(10346),t),a(n(26797),t),a(n(84481),t),a(n(89005),t),a(n(66800),t),a(n(96218),t),a(n(28195),t),a(n(86561),t),a(n(8396),t),a(n(42527),t),a(n(62185),t),a(n(43095),t),a(n(78573),t),a(n(57235),t),a(n(78917),t),a(n(91696),t),a(n(54208),t),a(n(46827),t),a(n(92791),t),a(n(5267),t),a(n(44422),t),a(n(87302),t),a(n(85610),t),a(n(39254),t),a(n(60681),t),a(n(82814),t)},53335:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgSwap=void 0;var i=n(32891),o=n(38728),s=n(91645),c=n(58682),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.trader=t,a.offer_coin=n,a.ask_denom=r,a}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.trader,i=r.offer_coin,s=r.ask_denom;return new t(a,o.Coin.fromAmino(i),s)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.trader,r=t.offer_coin,a=t.ask_denom;return{type:"market/MsgSwap",value:{trader:n,offer_coin:r.toAmino(),ask_denom:a}}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.trader,o.Coin.fromProto(e.offerCoin),e.askDenom)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.trader,r=t.offer_coin,a=t.ask_denom;return s.MsgSwap.fromPartial({askDenom:a,offerCoin:r.toProto(),trader:n})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/terra.market.v1beta1.MsgSwap",value:s.MsgSwap.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.MsgSwap.decode(e.value),n)},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.trader,a=e.offer_coin,i=e.ask_denom;return new t(r,o.Coin.fromData(a),i)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.trader,r=t.offer_coin,a=t.ask_denom;return{"@type":"/terra.market.v1beta1.MsgSwap",trader:n,offer_coin:r.toData(),ask_denom:a}},t}(i.JSONSerializable);t.MsgSwap=u},20223:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgSwapSend=void 0;var i=n(32891),o=n(38728),s=n(58682),c=n(91645),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.from_address=t,i.to_address=n,i.offer_coin=r,i.ask_denom=a,i}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.from_address,i=r.to_address,s=r.offer_coin,c=r.ask_denom;return new t(a,i,o.Coin.fromAmino(s),c)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.offer_coin,i=t.ask_denom;return{type:"market/MsgSwapSend",value:{from_address:n,to_address:r,offer_coin:a.toAmino(),ask_denom:i}}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.fromAddress,e.toAddress,o.Coin.fromProto(e.offerCoin),e.askDenom)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.offer_coin,i=t.ask_denom;return c.MsgSwapSend.fromPartial({askDenom:i,fromAddress:n,offerCoin:a.toProto(),toAddress:r})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return s.Any.fromPartial({typeUrl:"/terra.market.v1beta1.MsgSwapSend",value:c.MsgSwapSend.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(c.MsgSwapSend.decode(e.value),n)},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.from_address,a=e.to_address,i=e.offer_coin,s=e.ask_denom;return new t(r,a,o.Coin.fromData(i),s)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.offer_coin,i=t.ask_denom;return{"@type":"/terra.market.v1beta1.MsgSwapSend",from_address:n,to_address:r,offer_coin:a.toData(),ask_denom:i}},t}(i.JSONSerializable);t.MsgSwapSend=u},26797:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(53335),t),a(n(20223),t)},21717:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.int=t.dec=t.Int=t.Dec=t.Numeric=t.DEC_PRECISION=void 0;var o,s=i(n(85363));t.DEC_PRECISION=18,function(e){e.parse=function(e){if(e instanceof c)return e;if("string"==typeof e)return e.includes(".")?new c(e):new u(e);var t=new s.default(e);return t.isInteger()?new u(t):new c(t.toString())}}(o=t.Numeric||(t.Numeric={}));var c=function(e){function n(t){return e.call(this,(null!=t?t:0).toString())||this}return a(n,e),n.prototype.toString=function(){return this.toFixed(t.DEC_PRECISION)},n.withPrec=function(e,t){return new n(new n(e).div(Math.pow(10,t)))},n.prototype.toInt=function(){return new u(this)},n.prototype.add=function(t){var r=new n(o.parse(t));return new n(e.prototype.add.call(this,r))},n.prototype.sub=function(t){var r=new n(o.parse(t));return new n(e.prototype.sub.call(this,r))},n.prototype.mul=function(t){var r=new n(o.parse(t));return new n(e.prototype.mul.call(this,r))},n.prototype.div=function(t){var r=new n(o.parse(t));return new n(e.prototype.div.call(this,r))},n.prototype.mod=function(t){var r=new n(o.parse(t));return new n(e.prototype.mod.call(this,r))},n}(s.default);t.Dec=c;var u=function(e){function t(t){var n=new s.default((null!=t?t:0).toString());return e.call(this,n.divToInt(1))||this}return a(t,e),t.prototype.toString=function(){return this.toFixed()},t.prototype.toDec=function(){return new c(this)},t.prototype.add=function(e){var n=o.parse(e);return n instanceof c?new c(this).add(n):new t(this.plus(n))},t.prototype.sub=function(e){var n=o.parse(e);return n instanceof c?new c(this).sub(n):new t(this.minus(n))},t.prototype.mul=function(e){var n=o.parse(e);return n instanceof c?new c(this).mul(n):new t(this.times(n))},t.prototype.div=function(n){var r=o.parse(n);return r instanceof c?new c(this).div(r):new t(e.prototype.div.call(this,r))},t.prototype.mod=function(n){var r=o.parse(n);return r instanceof c?new c(this).mod(r):new t(e.prototype.mod.call(this,r))},t}(s.default.clone());t.Int=u,t.dec=function(e){return new c(e[0])},t.int=function(e){return new u(e[0])}},96218:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AggregateExchangeRatePrevote=void 0;var c=n(32891),u=n(49925),d=s(n(24141)),f=function(e){function t(t,n,r){var a=e.call(this)||this;return a.hash=t,a.voter=n,a.submit_block=r,a}return a(t,e),t.fromAmino=function(e){var n=e.hash,r=e.voter,a=e.submit_block;return new t(n,r,Number.parseInt(a))},t.prototype.toAmino=function(){var e=this;return{hash:e.hash,voter:e.voter,submit_block:e.submit_block.toFixed()}},t.fromData=function(e){var n=e.hash,r=e.voter,a=e.submit_block;return new t(n,r,Number.parseInt(a))},t.prototype.toData=function(){var e=this;return{hash:e.hash,voter:e.voter,submit_block:e.submit_block.toFixed()}},t.fromProto=function(e){return new t(e.hash,e.voter,e.submitBlock.toNumber())},t.prototype.toProto=function(){var e=this,t=e.hash,n=e.voter,r=e.submit_block;return u.AggregateExchangeRatePrevote.fromPartial({hash:t,submitBlock:d.fromNumber(r),voter:n})},t}(c.JSONSerializable);t.AggregateExchangeRatePrevote=f},28195:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExchangeRateTuple=t.AggregateExchangeRateVote=void 0;var i=n(32891),o=n(49925),s=n(21717),c=function(e){function t(t,n){var r=e.call(this)||this;return r.exchange_rate_tuples=t,r.voter=n,r}return a(t,e),t.fromAmino=function(e){var n=e.exchange_rate_tuples,r=e.voter;return new t(n.map((function(e){return u.fromAmino(e)})),r)},t.prototype.toAmino=function(){var e=this.exchange_rate_tuples,t=this.voter;return{exchange_rate_tuples:e.map((function(e){return e.toAmino()})),voter:t}},t.fromData=function(e){var n=e.exchange_rate_tuples,r=e.voter;return new t(n.map((function(e){return u.fromData(e)})),r)},t.prototype.toData=function(){var e=this.exchange_rate_tuples,t=this.voter;return{exchange_rate_tuples:e.map((function(e){return e.toData()})),voter:t}},t.fromProto=function(e){return new t(e.exchangeRateTuples.map((function(e){return u.fromProto(e)})),e.voter)},t.prototype.toProto=function(){var e=this.exchange_rate_tuples,t=this.voter;return o.AggregateExchangeRateVote.fromPartial({exchangeRateTuples:e.map((function(e){return e.toProto()})),voter:t})},t}(i.JSONSerializable);t.AggregateExchangeRateVote=c;var u=function(e){function t(t,n){var r=e.call(this)||this;return r.denom=t,r.exchange_rate=new s.Dec(n),r}return a(t,e),t.fromAmino=function(e){return new t(e.denom,e.exchange_rate)},t.prototype.toAmino=function(){return{denom:this.denom,exchange_rate:this.exchange_rate.toString()}},t.fromData=function(e){return new t(e.denom,e.exchange_rate)},t.prototype.toData=function(){return{denom:this.denom,exchange_rate:this.exchange_rate.toString()}},t.fromProto=function(e){return new t(e.denom,e.exchangeRate)},t.prototype.toProto=function(){var e=this.denom,t=this.exchange_rate;return o.ExchangeRateTuple.fromPartial({denom:e,exchangeRate:t.toString()})},t}(i.JSONSerializable);t.ExchangeRateTuple=u},54848:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgAggregateExchangeRatePrevote=void 0;var i=n(32891),o=n(58682),s=n(75518),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.hash=t,a.feeder=n,a.validator=r,a}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value;return new t(r.hash,r.feeder,r.validator)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{type:"oracle/MsgAggregateExchangeRatePrevote",value:{hash:t.hash,feeder:t.feeder,validator:t.validator}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.hash,e.feeder,e.validator)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{"@type":"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote",hash:t.hash,feeder:t.feeder,validator:t.validator}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.hash,e.feeder,e.validator)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.hash,r=t.feeder,a=t.validator;return s.MsgAggregateExchangeRatePrevote.fromPartial({hash:n,feeder:r,validator:a})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote",value:s.MsgAggregateExchangeRatePrevote.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.MsgAggregateExchangeRatePrevote.decode(e.value),n)},t}(i.JSONSerializable);t.MsgAggregateExchangeRatePrevote=c},74318:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgAggregateExchangeRateVote=t.aggregateVoteHash=void 0;var i=n(72495),o=n(32891),s=n(54848),c=n(26800),u=n(58682),d=n(75518);function f(e,t,n){var r="".concat(t,":").concat(e.toDecCoins().toString(),":").concat(n);return i.SHA256.hash(r).toString().substring(0,40)}t.aggregateVoteHash=f;var l=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.salt=n,i.feeder=r,i.validator=a,i.exchange_rates=new c.Coins(t).toDecCoins(),i}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.exchange_rates,i=r.salt,o=r.feeder,s=r.validator;return new t(c.Coins.fromString(a),i,o,s)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.exchange_rates,r=t.salt,a=t.feeder,i=t.validator;return{type:"oracle/MsgAggregateExchangeRateVote",value:{exchange_rates:n.toDecCoins().toString(),salt:r,feeder:a,validator:i}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.exchange_rates,a=e.salt,i=e.feeder,o=e.validator;return new t(c.Coins.fromString(r),a,i,o)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.exchange_rates,r=t.salt,a=t.feeder,i=t.validator;return{"@type":"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote",exchange_rates:n.toDecCoins().toString(),salt:r,feeder:a,validator:i}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(c.Coins.fromString(e.exchangeRates),e.salt,e.feeder,e.validator)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.exchange_rates,r=t.salt,a=t.feeder,i=t.validator;return d.MsgAggregateExchangeRateVote.fromPartial({exchangeRates:n.toString(),feeder:a,salt:r,validator:i})},t.prototype.getAggregateVoteHash=function(){return f(this.exchange_rates,this.salt,this.validator)},t.prototype.getPrevote=function(){return new s.MsgAggregateExchangeRatePrevote(this.getAggregateVoteHash(),this.feeder,this.validator)},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return u.Any.fromPartial({typeUrl:"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote",value:d.MsgAggregateExchangeRateVote.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(d.MsgAggregateExchangeRateVote.decode(e.value),n)},t}(o.JSONSerializable);t.MsgAggregateExchangeRateVote=l},33975:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgDelegateFeedConsent=void 0;var i=n(32891),o=n(58682),s=n(75518),c=function(e){function t(t,n){var r=e.call(this)||this;return r.operator=t,r.delegate=n,r}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value;return new t(r.operator,r.delegate)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");return{type:"oracle/MsgDelegateFeedConsent",value:{operator:this.operator,delegate:this.delegate}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.operator,e.delegate)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");return{"@type":"/terra.oracle.v1beta1.MsgDelegateFeedConsent",operator:this.operator,delegate:this.delegate}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.operator,e.delegate)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this.operator,n=this.delegate;return s.MsgDelegateFeedConsent.fromPartial({delegate:n,operator:t})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/terra.oracle.v1beta1.MsgDelegateFeedConsent",value:s.MsgDelegateFeedConsent.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.MsgDelegateFeedConsent.decode(e.value),n)},t}(i.JSONSerializable);t.MsgDelegateFeedConsent=c},66800:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(33975),t),a(n(74318),t),a(n(54848),t)},8396:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ParamChange=t.ParamChanges=void 0;var i=n(32891),o=n(25946),s=function(e){function t(t){var n=e.call(this)||this;return n.paramChanges=t,n}return a(t,e),t.fromAmino=function(e){return new t((null!=e?e:[]).map(c.fromAmino))},t.prototype.toAmino=function(){return this.paramChanges.map((function(e){return e.toAmino()}))},t.fromData=function(e){return new t((null!=e?e:[]).map(c.fromData))},t.prototype.toData=function(){return this.paramChanges.map((function(e){return e.toData()}))},t.fromProto=function(e){return new t((null!=e?e:[]).map(c.fromProto))},t.prototype.toProto=function(){return this.paramChanges.map((function(e){return e.toProto()}))},t}(i.JSONSerializable);t.ParamChanges=s;var c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.subspace=t,a.key=n,a.value=r,a}return a(t,e),t.fromAmino=function(e){return new t(e.subspace,e.key,e.value)},t.prototype.toAmino=function(){var e=this;return{subspace:e.subspace,key:e.key,value:e.value}},t.fromData=function(e){return new t(e.subspace,e.key,e.value)},t.prototype.toData=function(){var e=this;return{subspace:e.subspace,key:e.key,value:e.value}},t.fromProto=function(e){return new t(e.subspace,e.key,e.value)},t.prototype.toProto=function(){var e=this,t=e.subspace,n=e.key,r=e.value;return o.ParamChange.fromPartial({key:n,subspace:t,value:r})},t}(i.JSONSerializable);t.ParamChange=c},98313:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ParameterChangeProposal=void 0;var i=n(32891),o=n(8396),s=n(58682),c=n(25946),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,Array.isArray(r)?a.changes=o.ParamChanges.fromData(r):a.changes=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.title,i=r.description,s=r.changes;return new t(a,i,o.ParamChanges.fromAmino(s))},t.prototype.toAmino=function(e){var t=this;return{type:e?"params/ParameterChangeProposal":"cosmos-sdk/ParameterChangeProposal",value:{title:t.title,description:t.description,changes:t.changes.toAmino()}}},t.fromData=function(e,n){var r=e.title,a=e.description,i=e.changes;return new t(r,a,o.ParamChanges.fromData(i))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.params.v1beta1.ParameterChangeProposal",title:t.title,description:t.description,changes:t.changes.toData()}},t.fromProto=function(e,n){return new t(e.title,e.description,o.ParamChanges.fromProto(e.changes))},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,a=t.changes;return c.ParameterChangeProposal.fromPartial({changes:a.toProto(),description:r,title:n})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.params.v1beta1.ParameterChangeProposal",value:c.ParameterChangeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.ParameterChangeProposal.decode(e.value),n)},t}(i.JSONSerializable);t.ParameterChangeProposal=u},86561:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(98313),t)},54173:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUnjail=void 0;var i=n(32891),o=n(58682),s=n(41591),c=function(e){function t(t){var n=e.call(this)||this;return n.address=t,n}return a(t,e),t.fromAmino=function(e,n){return new t(e.value.address)},t.prototype.toAmino=function(e){return{type:e?"slashing/MsgUnjail":"cosmos-sdk/MsgUnjail",value:{address:this.address}}},t.fromData=function(e,n){return new t(e.address)},t.prototype.toData=function(e){return{"@type":"/cosmos.slashing.v1beta1.MsgUnjail",address:this.address}},t.fromProto=function(e,n){return new t(e.validatorAddr)},t.prototype.toProto=function(e){var t=this.address;return s.MsgUnjail.fromPartial({validatorAddr:t})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/cosmos.slashing.v1beta1.MsgUnjail",value:s.MsgUnjail.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgUnjail.decode(e.value),n)},t}(i.JSONSerializable);t.MsgUnjail=c},42527:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(54173),t)},43095:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Delegation=void 0;var i=n(32891),o=n(21717),s=n(38728),c=n(1511),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.delegator_address=t,i.validator_address=n,i.shares=r,i.balance=a,i}return a(t,e),t.fromAmino=function(e){var n=e.delegation,r=n.delegator_address,a=n.validator_address,i=n.shares,c=e.balance;return new t(r,a,new o.Dec(i),s.Coin.fromAmino(c))},t.prototype.toAmino=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.shares,a=e.balance;return{delegation:{delegator_address:t,validator_address:n,shares:r.toString()},balance:a.toAmino()}},t.fromData=function(e){var n=e.delegation,r=n.delegator_address,a=n.validator_address,i=n.shares,c=e.balance;return new t(r,a,new o.Dec(i),s.Coin.fromData(c))},t.prototype.toData=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.shares,a=e.balance;return{delegation:{delegator_address:t,validator_address:n,shares:r.toString()},balance:a.toData()}},t.fromProto=function(e){var n=e.delegation;return new t(n.delegatorAddress,n.validatorAddress,new o.Dec(n.shares),s.Coin.fromProto(e.balance))},t.prototype.toProto=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.shares,a=e.balance;return c.DelegationResponse.fromPartial({delegation:c.Delegation.fromPartial({delegatorAddress:t,shares:r.toString(),validatorAddress:n}),balance:a.toProto()})},t}(i.JSONSerializable);t.Delegation=u},78573:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Redelegation=void 0;var c=n(32891),u=n(21717),d=n(1511),f=s(n(24141)),l=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.delegator_address=t,i.validator_src_address=n,i.validator_dst_address=r,i.entries=a,i}return a(t,e),t.fromAmino=function(e){var n=e.redelegation;return new t(n.delegator_address,n.validator_src_address,n.validator_dst_address,e.entries.map((function(e){return t.Entry.fromAmino(e)})))},t.prototype.toAmino=function(){var e=this;return{redelegation:{delegator_address:e.delegator_address,validator_src_address:e.validator_src_address,validator_dst_address:e.validator_dst_address},entries:e.entries.map((function(e){return e.toAmino()}))}},t.fromData=function(e){var n=e.redelegation;return new t(n.delegator_address,n.validator_src_address,n.validator_dst_address,e.entries.map((function(e){return t.Entry.fromData(e)})))},t.prototype.toData=function(){var e=this;return{redelegation:{delegator_address:e.delegator_address,validator_src_address:e.validator_src_address,validator_dst_address:e.validator_dst_address},entries:e.entries.map((function(e){return e.toData()}))}},t.fromProto=function(e){var n=e.redelegation;return new t(n.delegatorAddress,n.validatorDstAddress,n.validatorDstAddress,e.entries.map((function(e){return t.Entry.fromProto(e)})))},t.prototype.toProto=function(){var e=this,t=e.delegator_address,n=e.validator_src_address,r=e.validator_dst_address,a=e.entries;return d.RedelegationResponse.fromPartial({entries:a.map((function(e){return e.toProto()})),redelegation:d.Redelegation.fromPartial({delegatorAddress:t,entries:a.map((function(e){return e.toProto().redelegationEntry})),validatorDstAddress:r,validatorSrcAddress:n})})},t}(c.JSONSerializable);t.Redelegation=l,function(e){var t=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.initial_balance=t,o.balance=n,o.shares_dst=r,o.creation_height=a,o.completion_time=i,o}return a(t,e),t.prototype.toAmino=function(){return{redelegation_entry:{initial_balance:this.initial_balance.toString(),shares_dst:this.shares_dst.toString(),creation_height:this.creation_height,completion_time:this.completion_time.toISOString()},balance:this.balance.toString()}},t.fromAmino=function(e){var n=e.redelegation_entry,r=n.initial_balance,a=n.shares_dst,i=n.creation_height,o=n.completion_time,s=e.balance;return new t(new u.Int(r),new u.Int(s),new u.Dec(a),i,new Date(o))},t.prototype.toData=function(){return{redelegation_entry:{initial_balance:this.initial_balance.toString(),shares_dst:this.shares_dst.toString(),creation_height:this.creation_height,completion_time:this.completion_time.toISOString()},balance:this.balance.toString()}},t.fromData=function(e){var n=e.redelegation_entry,r=n.initial_balance,a=n.shares_dst,i=n.creation_height,o=n.completion_time,s=e.balance;return new t(new u.Int(r),new u.Int(s),new u.Dec(a),i,new Date(o))},t.prototype.toProto=function(){var e=this,t=e.initial_balance,n=e.balance,r=e.shares_dst,a=e.creation_height,i=e.completion_time;return d.RedelegationEntryResponse.fromPartial({balance:n.toString(),redelegationEntry:d.RedelegationEntry.fromPartial({completionTime:i,creationHeight:f.fromNumber(a),initialBalance:t.toString(),sharesDst:r.toString()})})},t.fromProto=function(e){var n=e.redelegationEntry;return new t(new u.Int(n.initialBalance),new u.Int(e.balance),new u.Dec(n.sharesDst),n.creationHeight.toNumber(),n.completionTime)},t}(c.JSONSerializable);e.Entry=t}(l=t.Redelegation||(t.Redelegation={})),t.Redelegation=l},57235:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.UnbondingDelegation=void 0;var c=n(32891),u=n(21717),d=n(1511),f=s(n(24141)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.delegator_address=t,a.validator_address=n,a.entries=r,a}return a(t,e),t.fromAmino=function(e){return new t(e.delegator_address,e.validator_address,e.entries.map((function(e){return t.Entry.fromAmino(e)})))},t.prototype.toAmino=function(){var e=this;return{delegator_address:e.delegator_address,validator_address:e.validator_address,entries:e.entries.map((function(e){return e.toAmino()}))}},t.fromData=function(e){return new t(e.delegator_address,e.validator_address,e.entries.map((function(e){return t.Entry.fromData(e)})))},t.prototype.toData=function(){var e=this;return{delegator_address:e.delegator_address,validator_address:e.validator_address,entries:e.entries.map((function(e){return e.toData()}))}},t.prototype.toProto=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.entries;return d.UnbondingDelegation.fromPartial({delegatorAddress:t,entries:r.map((function(e){return e.toProto()})),validatorAddress:n})},t.fromProto=function(e){return new t(e.delegatorAddress,e.validatorAddress,e.entries.map((function(e){return t.Entry.fromProto(e)})))},t}(c.JSONSerializable);t.UnbondingDelegation=l,function(e){var t=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.initial_balance=t,i.balance=n,i.creation_height=r,i.completion_time=a,i}return a(t,e),t.prototype.toAmino=function(){return{initial_balance:this.initial_balance.toString(),balance:this.balance.toString(),creation_height:this.creation_height.toFixed(),completion_time:this.completion_time.toISOString()}},t.fromAmino=function(e){var n=e.initial_balance,r=e.balance,a=e.creation_height,i=e.completion_time;return new t(new u.Int(n),new u.Int(r),Number.parseInt(a),new Date(i))},t.prototype.toData=function(){return{initial_balance:this.initial_balance.toString(),balance:this.balance.toString(),creation_height:this.creation_height.toFixed(),completion_time:this.completion_time.toISOString()}},t.fromData=function(e){var n=e.initial_balance,r=e.balance,a=e.creation_height,i=e.completion_time;return new t(new u.Int(n),new u.Int(r),Number.parseInt(a),new Date(i))},t.prototype.toProto=function(){var e=this,t=e.initial_balance,n=e.balance,r=e.creation_height,a=e.completion_time;return d.UnbondingDelegationEntry.fromPartial({balance:n.toString(),completionTime:a,creationHeight:f.fromNumber(r),initialBalance:t.toString()})},t.fromProto=function(e){return new t(new u.Int(e.initialBalance),new u.Int(e.balance),e.creationHeight.toNumber(),e.completionTime)},t}(c.JSONSerializable);e.Entry=t}(l=t.UnbondingDelegation||(t.UnbondingDelegation={})),t.UnbondingDelegation=l},78917:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Validator=void 0;var c=n(32891),u=n(21717),d=n(86951),f=n(1511),l=s(n(24141)),b=function(e){function t(t,n,r,a,i,o,s,c,u,d,f){var l=e.call(this)||this;return l.operator_address=t,l.consensus_pubkey=n,l.jailed=r,l.status=a,l.tokens=i,l.delegator_shares=o,l.description=s,l.unbonding_height=c,l.unbonding_time=u,l.commission=d,l.min_self_delegation=f,l}return a(t,e),t.prototype.toAmino=function(){return{operator_address:this.operator_address,consensus_pubkey:this.consensus_pubkey.toAmino(),jailed:this.jailed,status:this.status,tokens:this.tokens.toString(),delegator_shares:this.delegator_shares.toString(),description:this.description,unbonding_height:this.unbonding_height.toFixed(),unbonding_time:this.unbonding_time.toISOString(),commission:this.commission.toAmino(),min_self_delegation:this.min_self_delegation.toString()}},t.fromAmino=function(e){return new t(e.operator_address,d.ValConsPublicKey.fromAmino(e.consensus_pubkey),e.jailed||!1,e.status||0,new u.Int(e.tokens),new u.Dec(e.delegator_shares),t.Description.fromAmino(e.description),Number.parseInt(e.unbonding_height),new Date(e.unbonding_time),t.Commission.fromAmino(e.commission),new u.Int(e.min_self_delegation))},t.prototype.toData=function(){return{operator_address:this.operator_address,consensus_pubkey:this.consensus_pubkey.toData(),jailed:this.jailed,status:this.status,tokens:this.tokens.toString(),delegator_shares:this.delegator_shares.toString(),description:this.description,unbonding_height:this.unbonding_height.toFixed(),unbonding_time:this.unbonding_time.toISOString(),commission:this.commission.toData(),min_self_delegation:this.min_self_delegation.toString()}},t.fromData=function(e){return new t(e.operator_address,d.ValConsPublicKey.fromData(e.consensus_pubkey),e.jailed||!1,e.status||0,new u.Int(e.tokens),new u.Dec(e.delegator_shares),t.Description.fromData(e.description),Number.parseInt(e.unbonding_height),new Date(e.unbonding_time),t.Commission.fromData(e.commission),new u.Int(e.min_self_delegation))},t.prototype.toProto=function(){var e=this,t=e.operator_address,n=e.consensus_pubkey,r=e.jailed,a=e.status,i=e.tokens,o=e.delegator_shares,s=e.description,c=e.unbonding_height,u=e.unbonding_time,d=e.commission,b=e.min_self_delegation;return f.Validator.fromPartial({commission:d.toProto(),consensusPubkey:n.packAny(),delegatorShares:o.toString(),description:s.toProto(),jailed:r,minSelfDelegation:b.toString(),operatorAddress:t,status:a,tokens:i.toString(),unbondingHeight:l.fromNumber(c),unbondingTime:u})},t.fromProto=function(e){return new t(e.operatorAddress,d.ValConsPublicKey.unpackAny(e.consensusPubkey),e.jailed,e.status,new u.Int(e.tokens),new u.Dec(e.delegatorShares),t.Description.fromProto(e.description),e.unbondingHeight.toNumber(),e.unbondingTime,t.Commission.fromProto(e.commission),new u.Int(e.minSelfDelegation))},t}(c.JSONSerializable);t.Validator=b,function(e){e.Status=f.BondStatus;var t=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.moniker=t,o.identity=n,o.website=r,o.details=a,o.security_contact=i,o}return a(t,e),t.prototype.toAmino=function(){return{moniker:this.moniker,identity:this.identity,website:this.website,details:this.details,security_contact:this.security_contact}},t.fromAmino=function(e){return new t(e.moniker,e.identity||"",e.website||"",e.details||"",e.security_contact||"")},t.prototype.toData=function(){return{moniker:this.moniker,identity:this.identity,website:this.website,details:this.details,security_contact:this.security_contact}},t.fromData=function(e){return new t(e.moniker,e.identity||"",e.website||"",e.details||"",e.security_contact||"")},t.prototype.toProto=function(){var e=this,t=e.moniker,n=e.identity,r=e.website,a=e.details,i=e.security_contact;return f.Description.fromPartial({details:a,identity:n,moniker:t,securityContact:i,website:r})},t.fromProto=function(e){return new t(e.moniker,e.identity,e.website,e.details,e.securityContact)},t}(c.JSONSerializable);e.Description=t;var n=function(e){function t(t,n,r){var a=e.call(this)||this;return a.rate=t,a.max_rate=n,a.max_change_rate=r,a}return a(t,e),t.fromAmino=function(e){var n=e.rate,r=e.max_rate,a=e.max_change_rate;return new t(new u.Dec(n),new u.Dec(r),new u.Dec(a))},t.prototype.toAmino=function(){var e=this,t=e.rate,n=e.max_rate,r=e.max_change_rate;return{rate:t.toString(),max_rate:n.toString(),max_change_rate:r.toString()}},t.fromData=function(e){var n=e.rate,r=e.max_rate,a=e.max_change_rate;return new t(new u.Dec(n),new u.Dec(r),new u.Dec(a))},t.prototype.toData=function(){var e=this,t=e.rate,n=e.max_rate,r=e.max_change_rate;return{rate:t.toString(),max_rate:n.toString(),max_change_rate:r.toString()}},t.fromProto=function(e){return new t(new u.Dec(e.rate),new u.Dec(e.maxRate),new u.Dec(e.maxChangeRate))},t.prototype.toProto=function(){var e=this,t=e.rate,n=e.max_rate,r=e.max_change_rate;return f.CommissionRates.fromPartial({maxChangeRate:r.toString(),maxRate:n.toString(),rate:t.toString()})},t}(c.JSONSerializable);e.CommissionRates=n;var r=function(e){function t(t,n){var r=e.call(this)||this;return r.commission_rates=t,r.update_time=n,r}return a(t,e),t.prototype.toAmino=function(){return{commission_rates:this.commission_rates.toAmino(),update_time:this.update_time.toISOString()}},t.fromAmino=function(e){return new t(n.fromAmino(e.commission_rates),new Date(e.update_time))},t.prototype.toData=function(){return{commission_rates:this.commission_rates.toData(),update_time:this.update_time.toISOString()}},t.fromData=function(e){return new t(n.fromData(e.commission_rates),new Date(e.update_time))},t.prototype.toProto=function(){var e=this.commission_rates,t=this.update_time;return f.Commission.fromPartial({commissionRates:e.toProto(),updateTime:t})},t.fromProto=function(e){return new t(n.fromProto(e.commissionRates),e.updateTime)},t}(c.JSONSerializable);e.Commission=r}(b=t.Validator||(t.Validator={})),t.Validator=b},69402:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgBeginRedelegate=void 0;var i=n(32891),o=n(38728),s=n(58682),c=n(25281),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.delegator_address=t,i.validator_src_address=n,i.validator_dst_address=r,i.amount=a,i}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.delegator_address,i=r.validator_src_address,s=r.validator_dst_address,c=r.amount;return new t(a,i,s,o.Coin.fromAmino(c))},t.prototype.toAmino=function(e){var t=this;return{type:e?"staking/MsgBeginRedelegate":"cosmos-sdk/MsgBeginRedelegate",value:{delegator_address:t.delegator_address,validator_src_address:t.validator_src_address,validator_dst_address:t.validator_dst_address,amount:t.amount.toAmino()}}},t.fromData=function(e,n){var r=e.delegator_address,a=e.validator_src_address,i=e.validator_dst_address,s=e.amount;return new t(r,a,i,o.Coin.fromData(s))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.staking.v1beta1.MsgBeginRedelegate",delegator_address:t.delegator_address,validator_src_address:t.validator_src_address,validator_dst_address:t.validator_dst_address,amount:t.amount.toData()}},t.fromProto=function(e,n){return new t(e.delegatorAddress,e.validatorSrcAddress,e.validatorDstAddress,o.Coin.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this,n=t.delegator_address,r=t.validator_src_address,a=t.validator_dst_address,i=t.amount;return c.MsgBeginRedelegate.fromPartial({amount:i.toProto(),delegatorAddress:n,validatorDstAddress:a,validatorSrcAddress:r})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgBeginRedelegate",value:c.MsgBeginRedelegate.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgBeginRedelegate.decode(e.value),n)},t}(i.JSONSerializable);t.MsgBeginRedelegate=u},30497:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreateValidator=void 0;var i=n(32891),o=n(38728),s=n(21717),c=n(78917),u=n(58682),d=n(25281),f=n(86951),l=function(e){function t(t,n,r,a,i,o,s){var c=e.call(this)||this;return c.description=t,c.commission=n,c.min_self_delegation=r,c.delegator_address=a,c.validator_address=i,c.pubkey=o,c.value=s,c}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.description,i=r.commission,u=r.min_self_delegation,d=r.delegator_address,l=r.validator_address,b=r.pubkey,p=r.value;return new t(a,c.Validator.CommissionRates.fromAmino(i),new s.Int(u),d,l,f.ValConsPublicKey.fromAmino(b),o.Coin.fromAmino(p))},t.prototype.toAmino=function(e){var t=this,n=t.description,r=t.commission,a=t.min_self_delegation,i=t.delegator_address,o=t.validator_address,s=t.pubkey,c=t.value;return{type:e?"staking/MsgCreateValidator":"cosmos-sdk/MsgCreateValidator",value:{description:n,commission:r.toAmino(),min_self_delegation:a.toString(),delegator_address:i,validator_address:o,pubkey:s.toAmino(),value:c.toAmino()}}},t.fromData=function(e,n){var r=e.description,a=e.commission,i=e.min_self_delegation,u=e.delegator_address,d=e.validator_address,l=e.pubkey,b=e.value;return new t(r,c.Validator.CommissionRates.fromData(a),new s.Int(i),u,d,f.ValConsPublicKey.fromData(l),o.Coin.fromData(b))},t.prototype.toData=function(e){var t=this,n=t.description,r=t.commission,a=t.min_self_delegation,i=t.delegator_address,o=t.validator_address,s=t.pubkey,c=t.value;return{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator",description:n,commission:r.toData(),min_self_delegation:a.toString(),delegator_address:i,validator_address:o,pubkey:s.toData(),value:c.toData()}},t.fromProto=function(e,n){return new t(c.Validator.Description.fromProto(e.description),c.Validator.CommissionRates.fromProto(e.commission),new s.Int(e.minSelfDelegation),e.delegatorAddress,e.validatorAddress,f.PublicKey.fromProto(e.pubkey),o.Coin.fromProto(e.value))},t.prototype.toProto=function(e){var t=this,n=t.description,r=t.commission,a=t.min_self_delegation,i=t.delegator_address,o=t.validator_address,s=t.pubkey,c=t.value;return d.MsgCreateValidator.fromPartial({commission:r.toProto(),delegatorAddress:i,description:n.toProto(),minSelfDelegation:a.toString(),pubkey:s.packAny(),validatorAddress:o,value:c.toProto()})},t.prototype.packAny=function(e){return u.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgCreateValidator",value:d.MsgCreateValidator.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgCreateValidator.decode(e.value),n)},t}(i.JSONSerializable);t.MsgCreateValidator=l},11345:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgDelegate=void 0;var i=n(38728),o=n(32891),s=n(58682),c=n(25281),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.delegator_address=t,a.validator_address=n,a.amount=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.delegator_address,o=r.validator_address,s=r.amount;return new t(a,o,i.Coin.fromAmino(s))},t.prototype.toAmino=function(e){var t=this;return{type:e?"staking/MsgDelegate":"cosmos-sdk/MsgDelegate",value:{delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toAmino()}}},t.fromProto=function(e,n){return new t(e.delegatorAddress,e.validatorAddress,i.Coin.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this,n=t.delegator_address,r=t.validator_address,a=t.amount;return c.MsgDelegate.fromPartial({amount:a.toProto(),delegatorAddress:n,validatorAddress:r})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:c.MsgDelegate.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgDelegate.decode(e.value),n)},t.fromData=function(e,n){var r=e.delegator_address,a=e.validator_address,o=e.amount;return new t(r,a,i.Coin.fromData(o))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.staking.v1beta1.MsgDelegate",delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toData()}},t}(o.JSONSerializable);t.MsgDelegate=u},82133:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgEditValidator=void 0;var i=n(32891),o=n(21717),s=n(78917),c=n(58682),u=n(25281),d=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.description=t,i.validator_address=n,i.commission_rate=r,i.min_self_delegation=a,i}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.description,i=r.validator_address,c=r.commission_rate,u=r.min_self_delegation;return new t(s.Validator.Description.fromAmino(a),i,c?new o.Dec(c):void 0,u?new o.Int(u):void 0)},t.prototype.toAmino=function(e){var t=this,n=t.description,r=t.validator_address,a=t.commission_rate,i=t.min_self_delegation;return{type:e?"staking/MsgEditValidator":"cosmos-sdk/MsgEditValidator",value:{description:n,validator_address:r,commission_rate:a?a.toString():void 0,min_self_delegation:i?i.toString():void 0}}},t.fromProto=function(e,n){return new t(s.Validator.Description.fromProto(e.description),e.validatorAddress,""!==e.commissionRate?new o.Dec(e.commissionRate):void 0,""!==e.minSelfDelegation?new o.Int(e.minSelfDelegation):void 0)},t.prototype.toProto=function(e){var t=this,n=t.description,r=t.validator_address,a=t.commission_rate,i=t.min_self_delegation;return u.MsgEditValidator.fromPartial({description:n.toProto(),commissionRate:(null==a?void 0:a.toString())||"",minSelfDelegation:(null==i?void 0:i.toString())||"",validatorAddress:r})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgEditValidator",value:u.MsgEditValidator.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgEditValidator.decode(e.value),n)},t.fromData=function(e,n){var r=e.description,a=e.validator_address,i=e.commission_rate,c=e.min_self_delegation;return new t(s.Validator.Description.fromData(r),a,i?new o.Dec(i):void 0,c?new o.Int(c):void 0)},t.prototype.toData=function(e){var t=this,n=t.description,r=t.validator_address,a=t.commission_rate,i=t.min_self_delegation;return{"@type":"/cosmos.staking.v1beta1.MsgEditValidator",description:n,validator_address:r,commission_rate:a?a.toString():void 0,min_self_delegation:i?i.toString():void 0}},t}(i.JSONSerializable);t.MsgEditValidator=d,function(e){e.DESC_DO_NOT_MODIFY={moniker:"[do-not-modify]",website:"[do-not-modify]",identity:"[do-not-modify]",details:"[do-not-modify]",security_contact:"[do-not-modify]"}}(d=t.MsgEditValidator||(t.MsgEditValidator={})),t.MsgEditValidator=d},24757:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUndelegate=void 0;var i=n(38728),o=n(32891),s=n(58682),c=n(25281),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.delegator_address=t,a.validator_address=n,a.amount=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.delegator_address,o=r.validator_address,s=r.amount;return new t(a,o,i.Coin.fromAmino(s))},t.prototype.toAmino=function(e){var t=this;return{type:e?"staking/MsgUndelegate":"cosmos-sdk/MsgUndelegate",value:{delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toAmino()}}},t.fromProto=function(e,n){return new t(e.delegatorAddress,e.validatorAddress,i.Coin.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this,n=t.delegator_address,r=t.validator_address,a=t.amount;return c.MsgUndelegate.fromPartial({amount:a.toProto(),delegatorAddress:n,validatorAddress:r})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:c.MsgUndelegate.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgUndelegate.decode(e.value),n)},t.fromData=function(e,n){var r=e.delegator_address,a=e.validator_address,o=e.amount;return new t(r,a,i.Coin.fromData(o))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.staking.v1beta1.MsgUndelegate",delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toData()}},t}(o.JSONSerializable);t.MsgUndelegate=u},62185:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(11345),t),a(n(24757),t),a(n(69402),t),a(n(30497),t),a(n(82133),t)},91696:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PolicyConstraints=void 0;var i=n(32891),o=n(38728),s=n(21717),c=n(49901),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.cap=r,i.rate_min=new s.Dec(t),i.rate_max=new s.Dec(n),i.change_rate_max=new s.Dec(a),i}return a(t,e),t.fromAmino=function(e){var n=e.rate_min,r=e.rate_max,a=e.cap,i=e.change_rate_max;return new t(n,r,o.Coin.fromAmino(a),i)},t.prototype.toAmino=function(){var e=this,t=e.rate_min,n=e.rate_max,r=e.cap,a=e.change_rate_max;return{rate_min:t.toString(),rate_max:n.toString(),cap:r.toAmino(),change_rate_max:a.toString()}},t.fromData=function(e){var n=e.rate_min,r=e.rate_max,a=e.cap,i=e.change_rate_max;return new t(n,r,o.Coin.fromData(a),i)},t.prototype.toData=function(){var e=this,t=e.rate_min,n=e.rate_max,r=e.cap,a=e.change_rate_max;return{rate_min:t.toString(),rate_max:n.toString(),cap:r.toData(),change_rate_max:a.toString()}},t.fromProto=function(e){return new t(e.rateMax,e.rateMin,o.Coin.fromProto(e.cap),e.changeRateMax)},t.prototype.toProto=function(){var e=this,t=e.rate_min,n=e.rate_max,r=e.cap,a=e.change_rate_max;return c.PolicyConstraints.fromPartial({cap:r.toProto(),changeRateMax:a.toString(),rateMax:n.toString(),rateMin:t.toString()})},t.prototype.clamp=function(e,t){var n=new s.Dec(e),r=new s.Dec(t);r.lt(this.rate_min)?r=this.rate_min:r.gt(this.rate_max)&&(r=this.rate_max);var a=r.sub(n);return r.gt(n)?a.gt(this.change_rate_max)&&(r=n.add(this.change_rate_max)):a.abs().gt(this.change_rate_max)&&(r=n.sub(this.change_rate_max)),r},t}(i.JSONSerializable);t.PolicyConstraints=u},63228:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AddBurnTaxExemptionAddressProposal=void 0;var i=n(32891),o=n(58682),s=n(26635),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.addresses=r,a}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.addresses)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{type:"treasury/AddBurnTaxExemptionAddressProposal",value:{title:t.title,description:t.description,addresses:t.addresses}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.addresses)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{"@type":"/terra.treasury.v1beta1.AddBurnTaxExemptionAddressProposal",title:t.title,description:t.description,addresses:t.addresses}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.addresses)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.addresses;return s.AddBurnTaxExemptionAddressProposal.fromPartial({title:n,description:r,addresses:a})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/terra.treasury.v1beta1.AddBurnTaxExemptionAddressProposal",value:s.AddBurnTaxExemptionAddressProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.AddBurnTaxExemptionAddressProposal.decode(e.value),n)},t}(i.JSONSerializable);t.AddBurnTaxExemptionAddressProposal=c},48518:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveBurnTaxExemptionAddressProposal=void 0;var i=n(32891),o=n(58682),s=n(26635),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.addresses=r,a}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.addresses)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{type:"treasury/RemoveBurnTaxExemptionAddressProposal",value:{title:t.title,description:t.description,addresses:t.addresses}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.addresses)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{"@type":"/terra.treasury.v1beta1.RemoveBurnTaxExemptionAddressProposal",title:t.title,description:t.description,addresses:t.addresses}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.addresses)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.addresses;return s.RemoveBurnTaxExemptionAddressProposal.fromPartial({title:n,description:r,addresses:a})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/terra.treasury.v1beta1.RemoveBurnTaxExemptionAddressProposal",value:s.RemoveBurnTaxExemptionAddressProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.RemoveBurnTaxExemptionAddressProposal.decode(e.value),n)},t}(i.JSONSerializable);t.RemoveBurnTaxExemptionAddressProposal=c},46825:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(63228),t),a(n(48518),t)},57294:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Plan=void 0;var o=n(32891),s=n(3142),c=i(n(24141)),u=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.name=t,o.time=n,o.height=r,o.info=a,o.upgraded_client_state=i,o}return a(t,e),t.fromAmino=function(e){var n=e.name,r=e.time,a=e.height,i=e.info,o=e.upgraded_client_state;return new t(n,r?new Date(r):void 0,a,i,o)},t.prototype.toAmino=function(){var e=this,t=e.name,n=e.time,r=e.height,a=e.info,i=e.upgraded_client_state;return{name:t,time:n?n.toISOString().replace(/\.000Z$/,"Z"):void 0,height:r,info:a,upgraded_client_state:i}},t.fromData=function(e){var n=e.name,r=e.time,a=e.height,i=e.info,o=e.upgraded_client_state;return new t(n,r?new Date(r):void 0,a,i,o)},t.prototype.toData=function(){var e=this,t=e.name,n=e.time,r=e.height,a=e.info,i=e.upgraded_client_state;return{name:t,time:n?n.toISOString().replace(/\.000Z$/,"Z"):void 0,height:r,info:a,upgraded_client_state:i}},t.fromProto=function(e){return new t(e.name,e.time,e.height.toString(),e.info,e.upgradedClientState)},t.prototype.toProto=function(){var e=this,t=e.name,n=e.time,r=e.height,a=e.info,i=e.upgraded_client_state;return s.Plan.fromPartial({name:t,time:n,height:c.default.fromString(r),info:a,upgradedClientState:i})},t}(o.JSONSerializable);t.Plan=u},46827:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(57294),t),a(n(63995),t)},86602:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CancelSoftwareUpgradeProposal=void 0;var i=n(32891),o=n(58682),s=n(3142),c=function(e){function t(t,n){var r=e.call(this)||this;return r.title=t,r.description=n,r}return a(t,e),t.fromAmino=function(e,n){var r=e.value;return new t(r.title,r.description)},t.prototype.toAmino=function(e){return{type:e?"upgrade/CancelSoftwareUpgradeProposal":"cosmos-sdk/CancelSoftwareUpgradeProposal",value:{title:this.title,description:this.description}}},t.fromData=function(e,n){return new t(e.title,e.description)},t.prototype.toData=function(e){return{"@type":"/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",title:this.title,description:this.description}},t.fromProto=function(e,n){return new t(e.title,e.description)},t.prototype.toProto=function(e){var t=this.title,n=this.description;return s.CancelSoftwareUpgradeProposal.fromPartial({title:t,description:n})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",value:s.CancelSoftwareUpgradeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.CancelSoftwareUpgradeProposal.decode(e.value),n)},t}(i.JSONSerializable);t.CancelSoftwareUpgradeProposal=c},87140:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SoftwareUpgradeProposal=void 0;var i=n(32891),o=n(58682),s=n(3142),c=n(57294),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.plan=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.title,i=r.description,o=r.plan;return new t(a,i,o?c.Plan.fromAmino(o):void 0)},t.prototype.toAmino=function(e){var t=this,n=t.title,r=t.description,a=t.plan;return{type:e?"upgrade/SoftwareUpgradeProposal":"cosmos-sdk/SoftwareUpgradeProposal",value:{title:n,description:r,plan:a?a.toAmino():void 0}}},t.fromData=function(e,n){var r=e.title,a=e.description,i=e.plan;return new t(r,a,i?c.Plan.fromData(i):void 0)},t.prototype.toData=function(e){var t=this,n=t.title,r=t.description,a=t.plan;return{"@type":"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",title:n,description:r,plan:a?a.toData():void 0}},t.fromProto=function(e,n){return new t(e.title,e.description,e.plan?c.Plan.fromProto(e.plan):void 0)},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,a=t.plan;return s.SoftwareUpgradeProposal.fromPartial({title:n,description:r,plan:a?a.toProto():void 0})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",value:s.SoftwareUpgradeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.SoftwareUpgradeProposal.decode(e.value),n)},t}(i.JSONSerializable);t.SoftwareUpgradeProposal=u},63995:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(87140),t),a(n(86602),t)},68096:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Period=void 0;var c=n(26800),u=n(54529),d=n(32891),f=s(n(24141)),l=function(e){function t(t,n){var r=e.call(this)||this;return r.length=t,r.amount=new c.Coins(n),r}return a(t,e),t.fromAmino=function(e,n){var r=e.length,a=e.amount;return new t(Number.parseInt(r),c.Coins.fromAmino(a))},t.prototype.toAmino=function(e){var t=this.length,n=this.amount;return{length:t.toFixed(),amount:n.toAmino()}},t.fromData=function(e,n){var r=e.length,a=e.amount;return new t(Number.parseInt(r),c.Coins.fromData(a))},t.prototype.toData=function(e){var t=this.length,n=this.amount;return{length:t.toFixed(),amount:n.toData()}},t.fromProto=function(e,n){return new t(e.length.toNumber(),c.Coins.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this.length,n=this.amount;return u.Period.fromPartial({length:f.fromNumber(t),amount:n.toProto()})},t}(d.JSONSerializable);t.Period=l},54208:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(68096),t),a(n(66312),t)},9018:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreatePeriodicVestingAccount=void 0;var o=n(68096),s=n(32891),c=n(58682),u=n(95350),d=i(n(24141)),f=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.from_address=t,i.to_address=n,i.start_time=r,i.vesting_periods=a,i}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.from_address,i=r.to_address,s=r.start_time,c=r.vesting_periods;return new t(a,i,Number.parseInt(s),c.map((function(e){return o.Period.fromAmino(e,n)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.start_time,i=t.vesting_periods;return{type:"cosmos-sdk/MsgCreatePeriodicVestingAccount",value:{from_address:n,to_address:r,start_time:a.toFixed(),vesting_periods:i.map((function(t){return t.toAmino(e)}))}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.from_address,a=e.to_address,i=e.start_time,s=e.vesting_periods;return new t(r,a,Number.parseInt(i),s.map((function(e){return o.Period.fromData(e,n)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.start_time,i=t.vesting_periods;return{"@type":"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",from_address:n,to_address:r,start_time:a.toFixed(),vesting_periods:i.map((function(t){return t.toData(e)}))}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.fromAddress,e.toAddress,e.startTime.toNumber(),e.vestingPeriods.map((function(e){return o.Period.fromProto(e,n)})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.start_time,i=t.vesting_periods;return u.MsgCreatePeriodicVestingAccount.fromPartial({fromAddress:n,toAddress:r,startTime:d.default.fromNumber(a),vestingPeriods:i.map((function(t){return t.toProto(e)}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",value:u.MsgCreatePeriodicVestingAccount.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(u.MsgCreatePeriodicVestingAccount.decode(e.value),n)},t}(s.JSONSerializable);t.MsgCreatePeriodicVestingAccount=f},10981:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreateVestingAccount=void 0;var o=n(26800),s=n(32891),c=n(58682),u=n(95350),d=i(n(24141)),f=function(e){function t(t,n,r,a,i){var s=e.call(this)||this;return s.from_address=t,s.to_address=n,s.end_time=a,s.delayed=i,s.amount=new o.Coins(r),s}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.from_address,i=r.to_address,s=r.amount,c=r.end_time,u=r.delayed;return new t(a,i,o.Coins.fromAmino(s),Number.parseInt(c),u)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.amount,i=t.end_time,o=t.delayed;return{type:"cosmos-sdk/MsgCreateVestingAccount",value:{from_address:n,to_address:r,amount:a.toAmino(),end_time:i.toFixed(),delayed:o}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.from_address,a=e.to_address,i=e.amount,s=e.end_time,c=e.delayed;return new t(r,a,o.Coins.fromData(i),Number.parseInt(s),c)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.amount,i=t.end_time,o=t.delayed;return{"@type":"/cosmos.vesting.v1beta1.MsgCreateVestingAccount",from_address:n,to_address:r,amount:a.toData(),end_time:i.toFixed(),delayed:o}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.fromAddress,e.toAddress,o.Coins.fromProto(e.amount),e.endTime.toNumber(),e.delayed)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.amount,i=t.end_time,o=t.delayed;return u.MsgCreateVestingAccount.fromPartial({fromAddress:n,toAddress:r,amount:a.toProto(),endTime:d.default.fromNumber(i),delayed:o})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/cosmos.vesting.v1beta1.MsgCreateVestingAccount",value:u.MsgCreateVestingAccount.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(u.MsgCreateVestingAccount.decode(e.value),n)},t}(s.JSONSerializable);t.MsgCreateVestingAccount=f},58993:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgDonateAllVestingTokens=void 0;var i=n(32891),o=n(58682),s=n(95350),c=function(e){function t(t){var n=e.call(this)||this;return n.from_address=t,n}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.value.from_address)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");return{type:"cosmos-sdk/MsgDonateAllVestingTokens",value:{from_address:this.from_address}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.from_address)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");return{"@type":"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens",from_address:this.from_address}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.fromAddress)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");return s.MsgDonateAllVestingTokens.fromPartial({fromAddress:this.from_address})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens",value:s.MsgDonateAllVestingTokens.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.MsgDonateAllVestingTokens.decode(e.value),n)},t}(i.JSONSerializable);t.MsgDonateAllVestingTokens=c},66312:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(9018),t),a(n(10981),t),a(n(58993),t)},77679:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AbsoluteTxPosition=void 0;var c=n(59673),u=n(32891),d=s(n(24141)),f=function(e){function t(t,n){var r=e.call(this)||this;return r.block_height=t,r.tx_index=n,r}return a(t,e),t.fromAmino=function(e){return new t(Number.parseInt(e.block_height),Number.parseInt(e.tx_index))},t.prototype.toAmino=function(){return{block_height:this.block_height.toFixed(),tx_index:this.tx_index.toFixed()}},t.fromData=function(e){return new t(Number.parseInt(e.block_height),Number.parseInt(e.tx_index))},t.prototype.toData=function(){return{block_height:this.block_height.toFixed(),tx_index:this.tx_index.toFixed()}},t.fromProto=function(e){return new t(e.blockHeight.toNumber(),e.txIndex.toNumber())},t.prototype.toProto=function(){return c.AbsoluteTxPosition.fromPartial({blockHeight:d.fromNumber(this.block_height),txIndex:d.fromNumber(this.tx_index)})},t}(u.JSONSerializable);t.AbsoluteTxPosition=f},49795:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessConfig=t.AccessType=void 0;var i=n(59673);Object.defineProperty(t,"AccessType",{enumerable:!0,get:function(){return i.AccessType}});var o=n(32891),s=n(25590),c=function(e){function t(t,n){var r=e.call(this)||this;return r.permission=t,r.address=n,r}return a(t,e),t.fromAmino=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.permission),e.address)},t.prototype.toAmino=function(){return{permission:(0,i.accessTypeToJSON)(this.permission),address:this.address}},t.fromData=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.permission),e.address)},t.prototype.toData=function(){return{permission:(0,i.accessTypeToJSON)(this.permission),address:this.address}},t.fromProto=function(e){return new t(e.permission,e.address)},t.prototype.toProto=function(){return i.AccessConfig.fromPartial({permission:this.permission,address:this.address})},t}(o.JSONSerializable);t.AccessConfig=c},63288:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AccessConfigUpdate=void 0;var c=n(33082),u=n(32891),d=n(49795),f=s(n(24141)),l=function(e){function t(t,n){var r=e.call(this)||this;return r.code_id=t,r.instantiate_permission=n,r}return a(t,e),t.fromAmino=function(e){return new t(Number.parseInt(e.code_id),e.instantiate_permission?d.AccessConfig.fromAmino(e.instantiate_permission):void 0)},t.prototype.toAmino=function(){var e;return{code_id:this.code_id.toFixed(),instantiate_permission:null===(e=this.instantiate_permission)||void 0===e?void 0:e.toAmino()}},t.fromData=function(e){return new t(Number.parseInt(e.code_id),e.instantiate_permission?d.AccessConfig.fromData(e.instantiate_permission):void 0)},t.prototype.toData=function(){var e;return{code_id:this.code_id.toFixed(),instantiate_permission:null===(e=this.instantiate_permission)||void 0===e?void 0:e.toData()}},t.fromProto=function(e){return new t(e.codeId.toNumber(),e.instantiatePermission?d.AccessConfig.fromProto(e.instantiatePermission):void 0)},t.prototype.toProto=function(){var e;return c.AccessConfigUpdate.fromPartial({codeId:f.fromNumber(this.code_id),instantiatePermission:null===(e=this.instantiate_permission)||void 0===e?void 0:e.toProto()})},t}(u.JSONSerializable);t.AccessConfigUpdate=l},84426:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessTypeParam=t.AccessType=void 0;var i=n(59673);Object.defineProperty(t,"AccessType",{enumerable:!0,get:function(){return i.AccessType}});var o=n(32891),s=n(25590),c=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return a(t,e),t.fromAmino=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.value))},t.prototype.toAmino=function(){return{value:(0,i.accessTypeToJSON)(this.value)}},t.fromData=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.value))},t.prototype.toData=function(){return{value:(0,i.accessTypeToJSON)(this.value)}},t.fromProto=function(e){return new t(e.value)},t.prototype.toProto=function(){return i.AccessTypeParam.fromPartial({value:this.value})},t}(o.JSONSerializable);t.AccessTypeParam=c},57452:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryEntry=void 0;var u=n(59673),d=n(32891),f=c(n(24141)),l=n(77679),b=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.operation=t,i.code_id=n,i.updated=r,i.msg=a,i}return i(t,e),t.fromAmino=function(e){return new t((0,u.contractCodeHistoryOperationTypeFromJSON)(e.operation),Number.parseInt(e.code_id),e.updated?l.AbsoluteTxPosition.fromAmino(e.updated):void 0,e.msg)},t.prototype.toAmino=function(){var e;return{operation:(0,u.contractCodeHistoryOperationTypeToJSON)(this.operation),code_id:this.code_id.toFixed(),updated:null===(e=this.updated)||void 0===e?void 0:e.toAmino(),msg:this.msg}},t.fromData=function(e){return new t((0,u.contractCodeHistoryOperationTypeFromJSON)(e.operation),Number.parseInt(e.code_id),e.updated?l.AbsoluteTxPosition.fromData(e.updated):void 0,e.msg)},t.prototype.toData=function(){var e;return{operation:(0,u.contractCodeHistoryOperationTypeToJSON)(this.operation),code_id:this.code_id.toFixed(),updated:null===(e=this.updated)||void 0===e?void 0:e.toData(),msg:this.msg}},t.fromProto=function(e){return new t(e.operation,e.codeId.toNumber(),e.updated?l.AbsoluteTxPosition.fromProto(e.updated):void 0,JSON.parse(a.from(e.msg).toString("utf-8")))},t.prototype.toProto=function(){var e;return u.ContractCodeHistoryEntry.fromPartial({operation:this.operation,codeId:f.fromNumber(this.code_id),updated:null===(e=this.updated)||void 0===e?void 0:e.toProto(),msg:a.from(JSON.stringify((0,d.removeNull)(this.msg)),"utf-8")})},t}(d.JSONSerializable);t.HistoryEntry=b},92791:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(84426),t),a(n(49795),t)},14564:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClearContractAdmin=void 0;var i=n(32891),o=n(58682),s=n(62160),c=n(67973),u=function(e){function t(t,n){var r=e.call(this)||this;return r.admin=t,r.contract=n,r}return a(t,e),t.fromAmino=function(e,n){if(n){var r=e.value;return new t(r.admin,r.contract)}var a=e.value;return new t(a.sender,a.contract)},t.prototype.toAmino=function(e){var t=this.admin,n=this.contract;return e?{type:"wasm/MsgClearContractAdmin",value:{admin:t,contract:n}}:{type:"wasm/MsgClearAdmin",value:{sender:t,contract:n}}},t.fromProto=function(e,n){if(n){var r=e;return new t(r.admin,r.contract)}var a=e;return new t(a.sender,a.contract)},t.prototype.toProto=function(e){return e?s.MsgClearContractAdmin.fromPartial({admin:this.admin,contract:this.contract}):c.MsgClearAdmin.fromPartial({sender:this.admin,contract:this.contract})},t.prototype.packAny=function(e){return e?o.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgClearContractAdmin",value:s.MsgClearContractAdmin.encode(this.toProto(e)).finish()}):o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgClearAdmin",value:c.MsgClearAdmin.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(s.MsgClearContractAdmin.decode(e.value),n):t.fromProto(c.MsgClearAdmin.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e;return new t(r.admin,r.contract)}var a=e;return new t(a.sender,a.contract)},t.prototype.toData=function(e){return e?{"@type":"/terra.wasm.v1beta1.MsgClearContractAdmin",admin:this.admin,contract:this.contract}:{"@type":"/cosmwasm.wasm.v1.MsgClearAdmin",sender:this.admin,contract:this.contract}},t}(i.JSONSerializable);t.MsgClearContractAdmin=u},50282:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgExecuteContract=void 0;var o=n(32891),s=n(26800),c=n(58682),u=n(62160),d=n(67973),f=function(e){function t(t,n,r,a){void 0===a&&(a={});var i=e.call(this)||this;return i.sender=t,i.contract=n,i.execute_msg=r,i.coins=new s.Coins(a),i}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value,a=r.sender,i=r.contract,o=r.execute_msg,c=r.coins;return new t(a,i,o,s.Coins.fromAmino(c))}var u=e.value,d=(a=u.sender,i=u.contract,u.msg),f=u.funds;return new t(a,i,d,s.Coins.fromAmino(f))},t.prototype.toAmino=function(e){var t=this,n=t.sender,r=t.contract,a=t.execute_msg,i=t.coins;return e?{type:"wasm/MsgExecuteContract",value:{sender:n,contract:r,execute_msg:(0,o.removeNull)(a),coins:i.toAmino()}}:{type:"wasm/MsgExecuteContract",value:{sender:n,contract:r,msg:(0,o.removeNull)(a),funds:i.toAmino()}}},t.fromProto=function(e,n){var r;return n?new t((r=e).sender,r.contract,JSON.parse(a.from(r.executeMsg).toString("utf-8")),s.Coins.fromProto(r.coins)):new t((r=e).sender,r.contract,JSON.parse(a.from(r.msg).toString("utf-8")),s.Coins.fromProto(r.funds))},t.prototype.toProto=function(e){var t=this,n=t.sender,r=t.contract,i=t.execute_msg,s=t.coins;return e?u.MsgExecuteContract.fromPartial({coins:s.toProto(),contract:r,sender:n,executeMsg:a.from(JSON.stringify((0,o.removeNull)(i)),"utf-8")}):d.MsgExecuteContract.fromPartial({funds:s.toProto(),contract:r,sender:n,msg:a.from(JSON.stringify((0,o.removeNull)(i)),"utf-8")})},t.prototype.packAny=function(e){return e?c.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgExecuteContract",value:u.MsgExecuteContract.encode(this.toProto(e)).finish()}):c.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgExecuteContract",value:d.MsgExecuteContract.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(n?u.MsgExecuteContract.decode(e.value):d.MsgExecuteContract.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e,a=r.sender,i=r.contract,o=r.execute_msg,c=r.coins;return new t(a,i,o,s.Coins.fromData(c))}var u=e,d=(a=u.sender,i=u.contract,u.msg),f=u.funds;return new t(a,i,d,s.Coins.fromData(f))},t.prototype.toData=function(e){var t=this,n=t.sender,r=t.contract,a=t.execute_msg,i=t.coins;return e?{"@type":"/terra.wasm.v1beta1.MsgExecuteContract",sender:n,contract:r,execute_msg:a,coins:i.toData()}:{"@type":"/cosmwasm.wasm.v1.MsgExecuteContract",sender:n,contract:r,msg:a,funds:i.toData()}},t}(o.JSONSerializable);t.MsgExecuteContract=f},51015:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgInstantiateContract=void 0;var u=n(32891),d=n(26800),f=n(58682),l=n(62160),b=n(67973),p=c(n(24141)),h=function(e){function t(t,n,r,a,i,o){void 0===i&&(i={});var s=e.call(this)||this;return s.sender=t,s.admin=n,s.code_id=r,s.init_msg=a,s.label=o,s.init_coins=new d.Coins(i),s}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value,a=r.sender,i=r.admin,o=r.code_id,s=r.init_msg,c=r.init_coins;return new t(a,i,Number.parseInt(o),s,d.Coins.fromAmino(c))}var u=e.value,f=(a=u.sender,i=u.admin,o=u.code_id,u.msg),l=u.funds,b=u.label;return new t(a,i,Number.parseInt(o),f,d.Coins.fromAmino(l),b)},t.prototype.toAmino=function(e){var t=this,n=t.sender,r=t.admin,a=t.code_id,i=t.init_msg,o=t.init_coins,s=t.label;return e?{type:"wasm/MsgInstantiateContract",value:{sender:n,admin:r,code_id:a.toFixed(),init_msg:(0,u.removeNull)(i),init_coins:o.toAmino()}}:{type:"wasm/MsgInstantiateContract",value:{sender:n,admin:r,code_id:a.toFixed(),label:s,msg:(0,u.removeNull)(i),funds:o.toAmino()}}},t.fromProto=function(e,n){var r;return n?new t((r=e).sender,""!==r.admin?r.admin:void 0,r.codeId.toNumber(),JSON.parse(a.from(r.initMsg).toString("utf-8")),d.Coins.fromProto(r.initCoins)):new t((r=e).sender,""!==r.admin?r.admin:void 0,r.codeId.toNumber(),JSON.parse(a.from(r.msg).toString("utf-8")),d.Coins.fromProto(r.funds),""!==r.label?r.label:void 0)},t.prototype.toProto=function(e){var t=this,n=t.sender,r=t.admin,i=t.code_id,o=t.init_msg,s=t.init_coins,c=t.label;return e?l.MsgInstantiateContract.fromPartial({admin:r,codeId:p.fromNumber(i),initCoins:s.toProto(),initMsg:a.from(JSON.stringify(o),"utf-8"),sender:n}):b.MsgInstantiateContract.fromPartial({admin:r,codeId:p.fromNumber(i),funds:s.toProto(),msg:a.from(JSON.stringify(o),"utf-8"),sender:n,label:c})},t.prototype.packAny=function(e){return e?f.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgInstantiateContract",value:l.MsgInstantiateContract.encode(this.toProto(e)).finish()}):f.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract",value:b.MsgInstantiateContract.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(l.MsgInstantiateContract.decode(e.value),n):t.fromProto(b.MsgInstantiateContract.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e,a=r.sender,i=r.admin,o=r.code_id,s=r.init_msg,c=r.init_coins;return new t(a,""!==i?i:void 0,Number.parseInt(o),s,d.Coins.fromData(c))}var u=e,f=(a=u.sender,i=u.admin,o=u.code_id,u.label),l=u.msg,b=u.funds;return new t(a,""!==i?i:void 0,Number.parseInt(o),l,d.Coins.fromData(b),f)},t.prototype.toData=function(e){var t=this,n=t.sender,r=t.admin,a=t.code_id,i=t.label,o=t.init_msg,s=t.init_coins;return e?{"@type":"/terra.wasm.v1beta1.MsgInstantiateContract",sender:n,admin:r||"",code_id:a.toFixed(),init_msg:(0,u.removeNull)(o),init_coins:s.toData()}:{"@type":"/cosmwasm.wasm.v1.MsgInstantiateContract",sender:n,admin:r||"",code_id:a.toFixed(),label:i,msg:(0,u.removeNull)(o),funds:s.toData()}},t}(u.JSONSerializable);t.MsgInstantiateContract=h},43080:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgMigrateCode=void 0;var u=n(32891),d=n(58682),f=n(62160),l=c(n(24141)),b=function(e){function t(t,n,r){var a=e.call(this)||this;return a.sender=t,a.code_id=n,a.wasm_byte_code=r,a}return i(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.sender,i=r.code_id,o=r.wasm_byte_code;return new t(a,Number.parseInt(i),o)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.sender,r=t.code_id,a=t.wasm_byte_code;return{type:"wasm/MsgMigrateCode",value:{sender:n,code_id:r.toFixed(),wasm_byte_code:a}}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.sender,e.codeId.toNumber(),a.from(e.wasmByteCode).toString("base64"))},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.sender,r=t.code_id,i=t.wasm_byte_code;return f.MsgMigrateCode.fromPartial({codeId:l.fromNumber(r),sender:n,wasmByteCode:a.from(i,"base64")})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return d.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgMigrateCode",value:f.MsgMigrateCode.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(f.MsgMigrateCode.decode(e.value),n)},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.sender,a=e.code_id,i=e.wasm_byte_code;return new t(r,Number.parseInt(a),i)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.sender,r=t.code_id,a=t.wasm_byte_code;return{"@type":"/terra.wasm.v1beta1.MsgMigrateCode",sender:n,code_id:r.toFixed(),wasm_byte_code:a}},t}(u.JSONSerializable);t.MsgMigrateCode=b},3901:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgMigrateContract=void 0;var u=n(32891),d=n(58682),f=n(62160),l=n(67973),b=c(n(24141)),p=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.admin=t,i.contract=n,i.new_code_id=r,i.migrate_msg=a,i}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value,a=r.admin,i=r.contract,o=r.new_code_id,s=r.migrate_msg;return new t(a,i,Number.parseInt(o),s)}var c=e.value,u=c.sender,d=(i=c.contract,c.code_id),f=c.msg;return new t(u,i,Number.parseInt(d),f)},t.prototype.toAmino=function(e){if(e){var t=this,n=t.admin,r=t.contract,a=t.new_code_id,i=t.migrate_msg;return{type:"wasm/MsgMigrateContract",value:{admin:n,contract:r,new_code_id:a.toFixed(),migrate_msg:(0,u.removeNull)(i)}}}var o=this;return n=o.admin,r=o.contract,a=o.new_code_id,i=o.migrate_msg,{type:"wasm/MsgMigrateContract",value:{sender:n,contract:r,code_id:a.toFixed(),msg:(0,u.removeNull)(i)}}},t.fromProto=function(e,n){var r;return n?new t((r=e).admin,r.contract,r.newCodeId.toNumber(),JSON.parse(a.from(r.migrateMsg).toString("utf-8"))):new t((r=e).sender,r.contract,r.codeId.toNumber(),JSON.parse(a.from(r.msg).toString("utf-8")))},t.prototype.toProto=function(e){var t=this,n=t.admin,r=t.contract,i=t.new_code_id,o=t.migrate_msg;return e?f.MsgMigrateContract.fromPartial({admin:n,contract:r,newCodeId:b.fromNumber(i),migrateMsg:a.from(JSON.stringify(o),"utf-8")}):l.MsgMigrateContract.fromPartial({sender:n,contract:r,codeId:b.fromNumber(i),msg:a.from(JSON.stringify(o),"utf-8")})},t.prototype.packAny=function(e){return e?d.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgMigrateContract",value:f.MsgMigrateContract.encode(this.toProto(e)).finish()}):d.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgMigrateContract",value:l.MsgMigrateContract.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(n?f.MsgMigrateContract.decode(e.value):l.MsgMigrateContract.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e,a=r.admin,i=r.contract,o=r.new_code_id,s=r.migrate_msg;return new t(a,i,Number.parseInt(o),s)}var c=e,u=c.sender,d=(i=c.contract,c.code_id),f=c.msg;return new t(u,i,Number.parseInt(d),f)},t.prototype.toData=function(e){var t=this,n=t.admin,r=t.contract,a=t.new_code_id,i=t.migrate_msg;return e?{"@type":"/terra.wasm.v1beta1.MsgMigrateContract",admin:n,contract:r,new_code_id:a.toFixed(),migrate_msg:(0,u.removeNull)(i)}:{"@type":"/cosmwasm.wasm.v1.MsgMigrateContract",sender:n,contract:r,code_id:a.toFixed(),msg:(0,u.removeNull)(i)}},t}(u.JSONSerializable);t.MsgMigrateContract=p},56080:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgStoreCode=void 0;var o=n(32891),s=n(58682),c=n(62160),u=n(67973),d=n(49795),f=function(e){function t(t,n,r){var a=e.call(this)||this;return a.sender=t,a.wasm_byte_code=n,a.instantiate_permission=r,a}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value;return new t(i=r.sender,o=r.wasm_byte_code)}var a=e.value,i=a.sender,o=a.wasm_byte_code,s=a.instantiate_permission;return new t(i,o,s?d.AccessConfig.fromAmino(s):void 0)},t.prototype.toAmino=function(e){var t=this,n=t.sender,r=t.wasm_byte_code,a=t.instantiate_permission;return e?{type:"wasm/MsgStoreCode",value:{sender:n,wasm_byte_code:r}}:{type:"wasm/MsgStoreCode",value:{sender:n,wasm_byte_code:r,instantiate_permission:null==a?void 0:a.toAmino()}}},t.fromProto=function(e,n){if(n)return new t(e.sender,a.from(e.wasmByteCode).toString("base64"));var r=e;return new t(r.sender,a.from(r.wasmByteCode).toString("base64"),r.instantiatePermission?d.AccessConfig.fromProto(r.instantiatePermission):void 0)},t.prototype.toProto=function(e){var t=this,n=t.sender,r=t.wasm_byte_code,i=t.instantiate_permission;return e?c.MsgStoreCode.fromPartial({sender:n,wasmByteCode:a.from(r,"base64")}):u.MsgStoreCode.fromPartial({sender:n,wasmByteCode:a.from(r,"base64"),instantiatePermission:null==i?void 0:i.toProto()})},t.prototype.packAny=function(e){var t;return t=e?"/terra.wasm.v1beta1.MsgStoreCode":"/cosmwasm.wasm.v1.MsgStoreCode",s.Any.fromPartial({typeUrl:t,value:e?c.MsgStoreCode.encode(this.toProto(e)).finish():u.MsgStoreCode.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(c.MsgStoreCode.decode(e.value),n):t.fromProto(u.MsgStoreCode.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e;return new t(i=r.sender,o=r.wasm_byte_code)}var a=e,i=a.sender,o=a.wasm_byte_code,s=a.instantiate_permission;return new t(i,o,s?d.AccessConfig.fromData(s):void 0)},t.prototype.toData=function(e){var t=this,n=t.sender,r=t.wasm_byte_code,a=t.instantiate_permission;return e?{"@type":"/terra.wasm.v1beta1.MsgStoreCode",sender:n,wasm_byte_code:r}:{"@type":"/cosmwasm.wasm.v1.MsgStoreCode",sender:n,wasm_byte_code:r,instantiate_permission:null==a?void 0:a.toData()}},t}(o.JSONSerializable);t.MsgStoreCode=f},58480:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUpdateContractAdmin=void 0;var i=n(32891),o=n(58682),s=n(62160),c=n(67973),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.admin=t,a.new_admin=n,a.contract=r,a}return a(t,e),t.fromAmino=function(e,n){if(n){var r=e.value;return new t(r.admin,r.new_admin,r.contract)}var a=e.value;return new t(a.sender,a.new_admin,a.contract)},t.prototype.toAmino=function(e){var t=this,n=t.admin,r=t.new_admin,a=t.contract;return e?{type:"wasm/MsgUpdateContractAdmin",value:{admin:n,new_admin:r,contract:a}}:{type:"wasm/MsgUpdateAdmin",value:{sender:n,new_admin:r,contract:a}}},t.fromProto=function(e,n){var r;return new t(n?(r=e).admin:(r=e).sender,r.newAdmin,r.contract)},t.prototype.toProto=function(e){var t=this,n=t.admin,r=t.new_admin,a=t.contract;return e?s.MsgUpdateContractAdmin.fromPartial({admin:n,contract:a,newAdmin:r}):c.MsgUpdateAdmin.fromPartial({sender:n,contract:a,newAdmin:r})},t.prototype.packAny=function(e){return e?o.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgUpdateContractAdmin",value:s.MsgUpdateContractAdmin.encode(this.toProto(e)).finish()}):o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgUpdateAdmin",value:c.MsgUpdateAdmin.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(s.MsgUpdateContractAdmin.decode(e.value),n):t.fromProto(c.MsgUpdateAdmin.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e;return new t(r.admin,r.new_admin,r.contract)}var a=e;return new t(a.sender,a.new_admin,a.contract)},t.prototype.toData=function(e){var t=this,n=t.admin,r=t.new_admin,a=t.contract;return e?{"@type":"/terra.wasm.v1beta1.MsgUpdateContractAdmin",admin:n,new_admin:r,contract:a}:{"@type":"/cosmwasm.wasm.v1.MsgUpdateAdmin",sender:n,new_admin:r,contract:a}},t}(i.JSONSerializable);t.MsgUpdateContractAdmin=u},5267:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(56080),t),a(n(43080),t),a(n(51015),t),a(n(50282),t),a(n(3901),t),a(n(58480),t),a(n(14564),t)},80723:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClearAdminProposal=void 0;var i=n(32891),o=n(58682),s=n(33082),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.contract=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.contract)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/ClearAdminProposal",value:{title:t.title,description:t.description,contract:t.contract}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract;return s.ClearAdminProposal.fromPartial({title:n,description:r,contract:a})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.ClearAdminProposal",value:s.ClearAdminProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.ClearAdminProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.contract)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.ClearAdminProposal",title:t.title,description:t.description,contract:t.contract}},t}(i.JSONSerializable);t.ClearAdminProposal=c},64157:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExecuteContractProposal=void 0;var o=n(32891),s=n(26800),c=n(58682),u=n(33082),d=function(e){function t(t,n,r,a,i,o){void 0===o&&(o={});var c=e.call(this)||this;return c.title=t,c.description=n,c.run_as=r,c.contract=a,c.execute_msg=i,c.coins=new s.Coins(o),c}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.run_as,c=r.contract,u=r.msg,d=r.funds;return new t(a,i,o,c,u,s.Coins.fromAmino(d))},t.prototype.toAmino=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.contract,s=t.execute_msg,c=t.coins;if(e)throw new Error("Not supported for the network");return{type:"wasm/ExecuteContractProposal",value:{title:n,description:r,run_as:a,contract:i,msg:(0,o.removeNull)(s),funds:c.toAmino()}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.runAs,e.contract,JSON.parse(a.from(e.msg).toString("utf-8")),s.Coins.fromProto(e.funds))},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,i=t.run_as,s=t.contract,c=t.execute_msg,d=t.coins;if(e)throw new Error("Not supported for the network");return u.ExecuteContractProposal.fromPartial({title:n,description:r,funds:d.toProto(),contract:s,runAs:i,msg:a.from(JSON.stringify((0,o.removeNull)(c)),"utf-8")})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.ExecuteContractProposal",value:u.ExecuteContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.ExecuteContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e,a=r.title,i=r.description,o=r.run_as,c=r.contract,u=r.msg,d=r.funds;return new t(a,i,o,c,u,s.Coins.fromData(d))},t.prototype.toData=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.contract,o=t.execute_msg,s=t.coins;if(e)throw new Error("Not supported for the network");return{"@type":"/cosmwasm.wasm.v1.ExecuteContractProposal",title:n,description:r,run_as:a,contract:i,msg:o,funds:s.toData()}},t}(o.JSONSerializable);t.ExecuteContractProposal=d},16311:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiateContractProposal=void 0;var u=n(32891),d=n(26800),f=n(58682),l=n(33082),b=c(n(24141)),p=function(e){function t(t,n,r,a,i,o,s,c){void 0===s&&(s={});var u=e.call(this)||this;return u.title=t,u.description=n,u.run_as=r,u.admin=a,u.code_id=i,u.init_msg=o,u.label=c,u.init_coins=new d.Coins(s),u}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.run_as,s=r.admin,c=r.code_id,u=r.msg,f=r.funds,l=r.label;return new t(a,i,o,s,Number.parseInt(c),u,d.Coins.fromAmino(f),l)},t.prototype.toAmino=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.admin,o=t.code_id,s=t.init_msg,c=t.init_coins,d=t.label;if(e)throw new Error("Not supported for the network");return{type:"wasm/InstantiateContractProposal",value:{title:n,description:r,run_as:a,admin:i,code_id:o.toFixed(),label:d,msg:(0,u.removeNull)(s),funds:c.toAmino()}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.runAs,""!==e.admin?e.admin:void 0,e.codeId.toNumber(),JSON.parse(a.from(e.msg).toString("utf-8")),d.Coins.fromProto(e.funds),e.label)},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,i=t.run_as,o=t.admin,s=t.code_id,c=t.init_msg,u=t.init_coins,d=t.label;if(e)throw new Error("Not supported for the network");return l.InstantiateContractProposal.fromPartial({title:n,description:r,runAs:i,admin:o,codeId:b.fromNumber(s),funds:u.toProto(),msg:a.from(JSON.stringify(c),"utf-8"),label:d})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return f.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.InstantiateContractProposal",value:l.InstantiateContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(l.InstantiateContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e,a=r.title,i=r.description,o=r.run_as,s=r.admin,c=r.code_id,u=r.label,f=r.msg,l=r.funds;return new t(a,i,o,""!==s?s:void 0,Number.parseInt(c),f,d.Coins.fromData(l),u)},t.prototype.toData=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.admin,o=t.code_id,s=t.label,c=t.init_msg,d=t.init_coins;if(e)throw new Error("Not supported for the network");return{"@type":"/cosmwasm.wasm.v1.InstantiateContractProposal",title:n,description:r,run_as:a,admin:i||"",code_id:o.toFixed(),label:s,msg:(0,u.removeNull)(c),funds:d.toData()}},t}(u.JSONSerializable);t.InstantiateContractProposal=p},4781:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateContractProposal=void 0;var u=n(32891),d=n(58682),f=n(33082),l=c(n(24141)),b=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.title=t,o.description=n,o.contract=r,o.new_code_id=a,o.migrate_msg=i,o}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.contract,s=r.code_id,c=r.msg;return new t(a,i,o,Number.parseInt(s),c)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.new_code_id,o=t.migrate_msg;return{type:"wasm/MigrateContractProposal",value:{title:n,description:r,contract:a,code_id:i.toFixed(),msg:(0,u.removeNull)(o)}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract,e.codeId.toNumber(),JSON.parse(a.from(e.msg).toString("utf-8")))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,i=t.contract,o=t.new_code_id,s=t.migrate_msg;return f.MigrateContractProposal.fromPartial({title:n,description:r,contract:i,codeId:l.fromNumber(o),msg:a.from(JSON.stringify(s),"utf-8")})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return d.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MigrateContractProposal",value:f.MigrateContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(f.MigrateContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e,a=r.title,i=r.description,o=r.contract,s=r.code_id,c=r.msg;return new t(a,i,o,Number.parseInt(s),c)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.new_code_id,o=t.migrate_msg;return{"@type":"/cosmwasm.wasm.v1.MigrateContractProposal",title:n,description:r,contract:a,code_id:i.toFixed(),msg:(0,u.removeNull)(o)}},t}(u.JSONSerializable);t.MigrateContractProposal=b},54109:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PinCodesProposal=void 0;var c=n(32891),u=n(58682),d=n(33082),f=s(n(24141)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.code_ids=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/PinCodesProposal",value:{title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.codeIds.map((function(e){return e.toNumber()})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.code_ids;return d.PinCodesProposal.fromPartial({title:n,description:r,codeIds:a.map((function(e){return f.fromNumber(e)}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return u.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.PinCodesProposal",value:d.PinCodesProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(d.PinCodesProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.PinCodesProposal",title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}},t}(c.JSONSerializable);t.PinCodesProposal=l},78e3:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.StoreCodeProposal=void 0;var o=n(32891),s=n(58682),c=n(33082),u=n(49795),d=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.title=t,o.description=n,o.run_as=r,o.wasm_byte_code=a,o.instantiate_permission=i,o}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.run_as,s=r.wasm_byte_code,c=r.instantiate_permission;return new t(a,i,o,s,c?u.AccessConfig.fromAmino(c):void 0)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.run_as,i=t.wasm_byte_code,o=t.instantiate_permission;return{type:"wasm/StoreCodeProposal",value:{title:n,description:r,run_as:a,wasm_byte_code:i,instantiate_permission:null==o?void 0:o.toAmino()}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.title,a=e.description,i=e.run_as,o=e.wasm_byte_code,s=e.instantiate_permission;return new t(r,a,i,o,s?u.AccessConfig.fromData(s):void 0)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.run_as,i=t.wasm_byte_code,o=t.instantiate_permission;return{"@type":"/cosmwasm.wasm.v1.StoreCodeProposal",title:n,description:r,run_as:a,wasm_byte_code:i,instantiate_permission:null==o?void 0:o.toData()}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.runAs,a.from(e.wasmByteCode).toString("base64"),e.instantiatePermission?u.AccessConfig.fromProto(e.instantiatePermission):void 0)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,i=t.run_as,o=t.wasm_byte_code,s=t.instantiate_permission;return c.StoreCodeProposal.fromPartial({title:n,description:r,runAs:i,wasmByteCode:a.from(o,"base64"),instantiatePermission:null==s?void 0:s.toProto()})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return s.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.StoreCodeProposal",value:c.StoreCodeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(c.StoreCodeProposal.decode(e.value),n)},t}(o.JSONSerializable);t.StoreCodeProposal=d},28674:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SudoContractProposal=void 0;var o=n(32891),s=n(58682),c=n(33082),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.title=t,i.description=n,i.contract=r,i.msg=a,i}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.contract,r.msg)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.msg;return{type:"wasm/SudoContractProposal",value:{title:n,description:r,contract:a,msg:(0,o.removeNull)(i)}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract,JSON.parse(a.from(e.msg).toString("utf-8")))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,i=t.contract,o=t.msg;return c.SudoContractProposal.fromPartial({title:n,description:r,contract:i,msg:a.from(JSON.stringify(o),"utf-8")})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return s.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.SudoContractProposal",value:c.SudoContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(c.SudoContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.contract,r.msg)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.msg;return{"@type":"/cosmwasm.wasm.v1.SudoContractProposal",title:n,description:r,contract:a,msg:(0,o.removeNull)(i)}},t}(o.JSONSerializable);t.SudoContractProposal=u},82580:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.UnpinCodesProposal=void 0;var c=n(32891),u=n(58682),d=n(33082),f=s(n(24141)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.code_ids=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/UnpinCodesProposal",value:{title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.codeIds.map((function(e){return e.toNumber()})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.code_ids;return d.UnpinCodesProposal.fromPartial({title:n,description:r,codeIds:a.map((function(e){return f.fromNumber(e)}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return u.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.UnpinCodesProposal",value:d.UnpinCodesProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(d.UnpinCodesProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.UnpinCodesProposal",title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}},t}(c.JSONSerializable);t.UnpinCodesProposal=l},56621:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateAdminProposal=void 0;var i=n(32891),o=n(58682),s=n(33082),c=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.title=t,i.description=n,i.contract=r,i.new_admin=a,i}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.contract,r.new_admin)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/UpdateAdminProposal",value:{title:t.title,description:t.description,contract:t.contract,new_admin:t.new_admin}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract,e.newAdmin)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.new_admin;return s.UpdateAdminProposal.fromPartial({title:n,description:r,contract:a,newAdmin:i})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.UpdateAdminProposal",value:s.UpdateAdminProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.UpdateAdminProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.contract,r.new_admin)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.UpdateAdminProposal",title:t.title,description:t.description,contract:t.contract,new_admin:t.new_admin}},t}(i.JSONSerializable);t.UpdateAdminProposal=c},26266:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateInstantiateConfigProposal=void 0;var i=n(32891),o=n(58682),s=n(33082),c=n(63288),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.access_config_updates=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.access_config_updates.map((function(e){return c.AccessConfigUpdate.fromAmino(e)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/UpdateInstantiateConfigProposal",value:{title:t.title,description:t.description,access_config_updates:t.access_config_updates.map((function(e){return e.toAmino()}))}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.accessConfigUpdates.map((function(e){return c.AccessConfigUpdate.fromProto(e)})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.access_config_updates;return s.UpdateInstantiateConfigProposal.fromPartial({title:n,description:r,accessConfigUpdates:a.map((function(e){return e.toProto()}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal",value:s.UpdateInstantiateConfigProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.UpdateInstantiateConfigProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.access_config_updates.map((function(e){return c.AccessConfigUpdate.fromData(e)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal",title:t.title,description:t.description,access_config_updates:t.access_config_updates.map((function(e){return e.toData()}))}},t}(i.JSONSerializable);t.UpdateInstantiateConfigProposal=u},44422:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(80723),t),a(n(64157),t),a(n(16311),t),a(n(4781),t),a(n(54109),t),a(n(78e3),t),a(n(28674),t),a(n(82580),t),a(n(56621),t),a(n(26266),t)},25590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertAccessTypeFromJSON=void 0;var r=n(59673);t.convertAccessTypeFromJSON=function(e){var t=e;switch(e){case"Everybody":t="ACCESS_TYPE_EVERYBODY";break;case"Nobody":t="ACCESS_TYPE_NOBODY";break;case"OnlyAddress":t="ACCESS_TYPE_ONLY_ADDRESS";break;case"Unspecified":t="ACCESS_TYPE_UNSPECIFIED"}return(0,r.accessTypeFromJSON)(t)}},48837:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(96181),o=function(){},s=function(e){function t(t){var n=t.name,r=t.target,a=t.targetWindow,i=e.call(this,{objectMode:!0})||this;return i._name=n,i._target=r,i._targetWindow=a||window,i._origin=a?"*":location.origin,i._init=!1,i._haveSyn=!1,i._onMessage=i._onMessage.bind(i),window.addEventListener("message",i._onMessage,!1),i._write("SYN",null,o),i.cork(),i}return a(t,e),t.prototype._destroy=function(){window.removeEventListener("message",this._onMessage,!1)},t.prototype._onMessage=function(e){var t=e.data;if(("*"===this._origin||e.origin===this._origin)&&e.source===this._targetWindow&&"object"==typeof t&&t.target===this._name&&t.data)if(this._init)try{this.push(t.data)}catch(e){this.emit("error",e)}else"SYN"===t.data?(this._haveSyn=!0,this._write("ACK",null,o)):"ACK"===t.data&&(this._init=!0,this._haveSyn||this._write("ACK",null,o),this.uncork())},t.prototype._read=function(){},t.prototype._write=function(e,t,n){var r={target:this._target,data:e};this._targetWindow.postMessage(r,this._origin),n(null)},t}(i.Duplex);t.default=s},62812:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){l.headers[e]=a.merge(u)})),e.exports=l},68722:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},46770:function(e){e.exports={version:"0.27.2"}},34813:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},26905:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},46017:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},26702:function(e,t,n){"use strict";var r=n(5886).Buffer,a=n(55900);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":a.isDate(e)?e.toISOString():a.isArrayBuffer(e)||a.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return function e(r,o){if(a.isPlainObject(r)||a.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+o);n.push(r),a.forEach(r,(function(n,r){if(!a.isUndefined(n)){var s,c=o?o+"."+r:r;if(n&&!o&&"object"==typeof n)if(a.endsWith(r,"{}"))n=JSON.stringify(n);else if(a.endsWith(r,"[]")&&(s=a.toArray(n)))return void s.forEach((function(e){!a.isUndefined(e)&&t.append(c,i(e))}));e(n,c)}})),n.pop()}else t.append(o,i(r))}(e),t}},77417:function(e,t,n){"use strict";var r=n(46770).version,a=n(31312),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new a(i(r," has been removed"+(t?" in "+t:"")),a.ERR_DEPRECATED);return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new a("options must be an object",a.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var c=e[o],u=void 0===c||s(c,o,e);if(!0!==u)throw new a("option "+o+" must be "+u,a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new a("Unknown option "+o,a.ERR_BAD_OPTION)}},validators:i}},55900:function(e,t,n){"use strict";var r,a=n(34813),i=Object.prototype.toString,o=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function c(e){return Array.isArray(e)}function u(e){return void 0===e}var d=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function l(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var b=s("Date"),p=s("File"),h=s("Blob"),y=s("FileList");function m(e){return"[object Function]"===i.call(e)}var v=s("URLSearchParams");function g(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var n=0,r=e.length;n0;)o[i=r[a]]||(t[i]=e[i],o[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:y}},96070:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompressedNonExistenceProof=t.CompressedExistenceProof=t.CompressedBatchEntry=t.CompressedBatchProof=t.BatchEntry=t.BatchProof=t.InnerSpec=t.ProofSpec=t.InnerOp=t.LeafOp=t.CommitmentProof=t.NonExistenceProof=t.ExistenceProof=t.lengthOpToJSON=t.lengthOpFromJSON=t.LengthOp=t.hashOpToJSON=t.hashOpFromJSON=t.HashOp=t.protobufPackage=void 0;var i,o,s=a(n(24141)),c=a(n(1));function u(e){switch(e){case 0:case"NO_HASH":return i.NO_HASH;case 1:case"SHA256":return i.SHA256;case 2:case"SHA512":return i.SHA512;case 3:case"KECCAK":return i.KECCAK;case 4:case"RIPEMD160":return i.RIPEMD160;case 5:case"BITCOIN":return i.BITCOIN;default:return i.UNRECOGNIZED}}function d(e){switch(e){case i.NO_HASH:return"NO_HASH";case i.SHA256:return"SHA256";case i.SHA512:return"SHA512";case i.KECCAK:return"KECCAK";case i.RIPEMD160:return"RIPEMD160";case i.BITCOIN:return"BITCOIN";default:return"UNKNOWN"}}function f(e){switch(e){case 0:case"NO_PREFIX":return o.NO_PREFIX;case 1:case"VAR_PROTO":return o.VAR_PROTO;case 2:case"VAR_RLP":return o.VAR_RLP;case 3:case"FIXED32_BIG":return o.FIXED32_BIG;case 4:case"FIXED32_LITTLE":return o.FIXED32_LITTLE;case 5:case"FIXED64_BIG":return o.FIXED64_BIG;case 6:case"FIXED64_LITTLE":return o.FIXED64_LITTLE;case 7:case"REQUIRE_32_BYTES":return o.REQUIRE_32_BYTES;case 8:case"REQUIRE_64_BYTES":return o.REQUIRE_64_BYTES;default:return o.UNRECOGNIZED}}function l(e){switch(e){case o.NO_PREFIX:return"NO_PREFIX";case o.VAR_PROTO:return"VAR_PROTO";case o.VAR_RLP:return"VAR_RLP";case o.FIXED32_BIG:return"FIXED32_BIG";case o.FIXED32_LITTLE:return"FIXED32_LITTLE";case o.FIXED64_BIG:return"FIXED64_BIG";case o.FIXED64_LITTLE:return"FIXED64_LITTLE";case o.REQUIRE_32_BYTES:return"REQUIRE_32_BYTES";case o.REQUIRE_64_BYTES:return"REQUIRE_64_BYTES";default:return"UNKNOWN"}}t.protobufPackage="ics23",function(e){e[e.NO_HASH=0]="NO_HASH",e[e.SHA256=1]="SHA256",e[e.SHA512=2]="SHA512",e[e.KECCAK=3]="KECCAK",e[e.RIPEMD160=4]="RIPEMD160",e[e.BITCOIN=5]="BITCOIN",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=t.HashOp||(t.HashOp={})),t.hashOpFromJSON=u,t.hashOpToJSON=d,function(e){e[e.NO_PREFIX=0]="NO_PREFIX",e[e.VAR_PROTO=1]="VAR_PROTO",e[e.VAR_RLP=2]="VAR_RLP",e[e.FIXED32_BIG=3]="FIXED32_BIG",e[e.FIXED32_LITTLE=4]="FIXED32_LITTLE",e[e.FIXED64_BIG=5]="FIXED64_BIG",e[e.FIXED64_LITTLE=6]="FIXED64_LITTLE",e[e.REQUIRE_32_BYTES=7]="REQUIRE_32_BYTES",e[e.REQUIRE_64_BYTES=8]="REQUIRE_64_BYTES",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=t.LengthOp||(t.LengthOp={})),t.lengthOpFromJSON=f,t.lengthOpToJSON=l;var b={};t.ExistenceProof={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();0!==e.key.length&&n.uint32(10).bytes(e.key),0!==e.value.length&&n.uint32(18).bytes(e.value),void 0!==e.leaf&&t.LeafOp.encode(e.leaf,n.uint32(26).fork()).ldelim();var a,i=r(e.path);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.InnerOp.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);for(i.path=[],i.key=new Uint8Array,i.value=new Uint8Array;r.pos>>3){case 1:i.key=r.bytes();break;case 2:i.value=r.bytes();break;case 3:i.leaf=t.LeafOp.decode(r,r.uint32());break;case 4:i.path.push(t.InnerOp.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},b);if(n.path=[],n.key=new Uint8Array,n.value=new Uint8Array,void 0!==e.key&&null!==e.key&&(n.key=C(e.key)),void 0!==e.value&&null!==e.value&&(n.value=C(e.value)),void 0!==e.leaf&&null!==e.leaf?n.leaf=t.LeafOp.fromJSON(e.leaf):n.leaf=void 0,void 0!==e.path&&null!==e.path){var a,i=r(e.path);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.path.push(t.InnerOp.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.key&&(n.key=O(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(n.value=O(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.leaf&&(n.leaf=e.leaf?t.LeafOp.toJSON(e.leaf):void 0),e.path?n.path=e.path.map((function(e){return e?t.InnerOp.toJSON(e):void 0})):n.path=[],n},fromPartial:function(e){var n=Object.assign({},b);if(n.path=[],void 0!==e.key&&null!==e.key?n.key=e.key:n.key=new Uint8Array,void 0!==e.value&&null!==e.value?n.value=e.value:n.value=new Uint8Array,void 0!==e.leaf&&null!==e.leaf?n.leaf=t.LeafOp.fromPartial(e.leaf):n.leaf=void 0,void 0!==e.path&&null!==e.path){var a,i=r(e.path);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.path.push(t.InnerOp.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var p={};t.NonExistenceProof={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.key.length&&n.uint32(10).bytes(e.key),void 0!==e.left&&t.ExistenceProof.encode(e.left,n.uint32(18).fork()).ldelim(),void 0!==e.right&&t.ExistenceProof.encode(e.right,n.uint32(26).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);for(i.key=new Uint8Array;r.pos>>3){case 1:i.key=r.bytes();break;case 2:i.left=t.ExistenceProof.decode(r,r.uint32());break;case 3:i.right=t.ExistenceProof.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},p);return n.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(n.key=C(e.key)),void 0!==e.left&&null!==e.left?n.left=t.ExistenceProof.fromJSON(e.left):n.left=void 0,void 0!==e.right&&null!==e.right?n.right=t.ExistenceProof.fromJSON(e.right):n.right=void 0,n},toJSON:function(e){var n={};return void 0!==e.key&&(n.key=O(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.left&&(n.left=e.left?t.ExistenceProof.toJSON(e.left):void 0),void 0!==e.right&&(n.right=e.right?t.ExistenceProof.toJSON(e.right):void 0),n},fromPartial:function(e){var n=Object.assign({},p);return void 0!==e.key&&null!==e.key?n.key=e.key:n.key=new Uint8Array,void 0!==e.left&&null!==e.left?n.left=t.ExistenceProof.fromPartial(e.left):n.left=void 0,void 0!==e.right&&null!==e.right?n.right=t.ExistenceProof.fromPartial(e.right):n.right=void 0,n}};var h={};t.CommitmentProof={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.exist&&t.ExistenceProof.encode(e.exist,n.uint32(10).fork()).ldelim(),void 0!==e.nonexist&&t.NonExistenceProof.encode(e.nonexist,n.uint32(18).fork()).ldelim(),void 0!==e.batch&&t.BatchProof.encode(e.batch,n.uint32(26).fork()).ldelim(),void 0!==e.compressed&&t.CompressedBatchProof.encode(e.compressed,n.uint32(34).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},h);r.pos>>3){case 1:i.exist=t.ExistenceProof.decode(r,r.uint32());break;case 2:i.nonexist=t.NonExistenceProof.decode(r,r.uint32());break;case 3:i.batch=t.BatchProof.decode(r,r.uint32());break;case 4:i.compressed=t.CompressedBatchProof.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},h);return void 0!==e.exist&&null!==e.exist?n.exist=t.ExistenceProof.fromJSON(e.exist):n.exist=void 0,void 0!==e.nonexist&&null!==e.nonexist?n.nonexist=t.NonExistenceProof.fromJSON(e.nonexist):n.nonexist=void 0,void 0!==e.batch&&null!==e.batch?n.batch=t.BatchProof.fromJSON(e.batch):n.batch=void 0,void 0!==e.compressed&&null!==e.compressed?n.compressed=t.CompressedBatchProof.fromJSON(e.compressed):n.compressed=void 0,n},toJSON:function(e){var n={};return void 0!==e.exist&&(n.exist=e.exist?t.ExistenceProof.toJSON(e.exist):void 0),void 0!==e.nonexist&&(n.nonexist=e.nonexist?t.NonExistenceProof.toJSON(e.nonexist):void 0),void 0!==e.batch&&(n.batch=e.batch?t.BatchProof.toJSON(e.batch):void 0),void 0!==e.compressed&&(n.compressed=e.compressed?t.CompressedBatchProof.toJSON(e.compressed):void 0),n},fromPartial:function(e){var n=Object.assign({},h);return void 0!==e.exist&&null!==e.exist?n.exist=t.ExistenceProof.fromPartial(e.exist):n.exist=void 0,void 0!==e.nonexist&&null!==e.nonexist?n.nonexist=t.NonExistenceProof.fromPartial(e.nonexist):n.nonexist=void 0,void 0!==e.batch&&null!==e.batch?n.batch=t.BatchProof.fromPartial(e.batch):n.batch=void 0,void 0!==e.compressed&&null!==e.compressed?n.compressed=t.CompressedBatchProof.fromPartial(e.compressed):n.compressed=void 0,n}};var y={hash:0,prehashKey:0,prehashValue:0,length:0};t.LeafOp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.hash&&t.uint32(8).int32(e.hash),0!==e.prehashKey&&t.uint32(16).int32(e.prehashKey),0!==e.prehashValue&&t.uint32(24).int32(e.prehashValue),0!==e.length&&t.uint32(32).int32(e.length),0!==e.prefix.length&&t.uint32(42).bytes(e.prefix),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.prefix=new Uint8Array;n.pos>>3){case 1:a.hash=n.int32();break;case 2:a.prehashKey=n.int32();break;case 3:a.prehashValue=n.int32();break;case 4:a.length=n.int32();break;case 5:a.prefix=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return t.prefix=new Uint8Array,void 0!==e.hash&&null!==e.hash?t.hash=u(e.hash):t.hash=0,void 0!==e.prehashKey&&null!==e.prehashKey?t.prehashKey=u(e.prehashKey):t.prehashKey=0,void 0!==e.prehashValue&&null!==e.prehashValue?t.prehashValue=u(e.prehashValue):t.prehashValue=0,void 0!==e.length&&null!==e.length?t.length=f(e.length):t.length=0,void 0!==e.prefix&&null!==e.prefix&&(t.prefix=C(e.prefix)),t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=d(e.hash)),void 0!==e.prehashKey&&(t.prehashKey=d(e.prehashKey)),void 0!==e.prehashValue&&(t.prehashValue=d(e.prehashValue)),void 0!==e.length&&(t.length=l(e.length)),void 0!==e.prefix&&(t.prefix=O(void 0!==e.prefix?e.prefix:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash=0,void 0!==e.prehashKey&&null!==e.prehashKey?t.prehashKey=e.prehashKey:t.prehashKey=0,void 0!==e.prehashValue&&null!==e.prehashValue?t.prehashValue=e.prehashValue:t.prehashValue=0,void 0!==e.length&&null!==e.length?t.length=e.length:t.length=0,void 0!==e.prefix&&null!==e.prefix?t.prefix=e.prefix:t.prefix=new Uint8Array,t}};var m={hash:0};t.InnerOp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.hash&&t.uint32(8).int32(e.hash),0!==e.prefix.length&&t.uint32(18).bytes(e.prefix),0!==e.suffix.length&&t.uint32(26).bytes(e.suffix),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.prefix=new Uint8Array,a.suffix=new Uint8Array;n.pos>>3){case 1:a.hash=n.int32();break;case 2:a.prefix=n.bytes();break;case 3:a.suffix=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return t.prefix=new Uint8Array,t.suffix=new Uint8Array,void 0!==e.hash&&null!==e.hash?t.hash=u(e.hash):t.hash=0,void 0!==e.prefix&&null!==e.prefix&&(t.prefix=C(e.prefix)),void 0!==e.suffix&&null!==e.suffix&&(t.suffix=C(e.suffix)),t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=d(e.hash)),void 0!==e.prefix&&(t.prefix=O(void 0!==e.prefix?e.prefix:new Uint8Array)),void 0!==e.suffix&&(t.suffix=O(void 0!==e.suffix?e.suffix:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash=0,void 0!==e.prefix&&null!==e.prefix?t.prefix=e.prefix:t.prefix=new Uint8Array,void 0!==e.suffix&&null!==e.suffix?t.suffix=e.suffix:t.suffix=new Uint8Array,t}};var v={maxDepth:0,minDepth:0};t.ProofSpec={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.leafSpec&&t.LeafOp.encode(e.leafSpec,n.uint32(10).fork()).ldelim(),void 0!==e.innerSpec&&t.InnerSpec.encode(e.innerSpec,n.uint32(18).fork()).ldelim(),0!==e.maxDepth&&n.uint32(24).int32(e.maxDepth),0!==e.minDepth&&n.uint32(32).int32(e.minDepth),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},v);r.pos>>3){case 1:i.leafSpec=t.LeafOp.decode(r,r.uint32());break;case 2:i.innerSpec=t.InnerSpec.decode(r,r.uint32());break;case 3:i.maxDepth=r.int32();break;case 4:i.minDepth=r.int32();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},v);return void 0!==e.leafSpec&&null!==e.leafSpec?n.leafSpec=t.LeafOp.fromJSON(e.leafSpec):n.leafSpec=void 0,void 0!==e.innerSpec&&null!==e.innerSpec?n.innerSpec=t.InnerSpec.fromJSON(e.innerSpec):n.innerSpec=void 0,void 0!==e.maxDepth&&null!==e.maxDepth?n.maxDepth=Number(e.maxDepth):n.maxDepth=0,void 0!==e.minDepth&&null!==e.minDepth?n.minDepth=Number(e.minDepth):n.minDepth=0,n},toJSON:function(e){var n={};return void 0!==e.leafSpec&&(n.leafSpec=e.leafSpec?t.LeafOp.toJSON(e.leafSpec):void 0),void 0!==e.innerSpec&&(n.innerSpec=e.innerSpec?t.InnerSpec.toJSON(e.innerSpec):void 0),void 0!==e.maxDepth&&(n.maxDepth=e.maxDepth),void 0!==e.minDepth&&(n.minDepth=e.minDepth),n},fromPartial:function(e){var n=Object.assign({},v);return void 0!==e.leafSpec&&null!==e.leafSpec?n.leafSpec=t.LeafOp.fromPartial(e.leafSpec):n.leafSpec=void 0,void 0!==e.innerSpec&&null!==e.innerSpec?n.innerSpec=t.InnerSpec.fromPartial(e.innerSpec):n.innerSpec=void 0,void 0!==e.maxDepth&&null!==e.maxDepth?n.maxDepth=e.maxDepth:n.maxDepth=0,void 0!==e.minDepth&&null!==e.minDepth?n.minDepth=e.minDepth:n.minDepth=0,n}};var g={childOrder:0,childSize:0,minPrefixLength:0,maxPrefixLength:0,hash:0};t.InnerSpec={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();t.uint32(10).fork();var n,a=r(e.childOrder);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.int32(i)}}catch(e){a.e(e)}finally{a.f()}return t.ldelim(),0!==e.childSize&&t.uint32(16).int32(e.childSize),0!==e.minPrefixLength&&t.uint32(24).int32(e.minPrefixLength),0!==e.maxPrefixLength&&t.uint32(32).int32(e.maxPrefixLength),0!==e.emptyChild.length&&t.uint32(42).bytes(e.emptyChild),0!==e.hash&&t.uint32(48).int32(e.hash),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);for(a.childOrder=[],a.emptyChild=new Uint8Array;n.pos>>3){case 1:if(2==(7&i))for(var o=n.uint32()+n.pos;n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create(),i=r(e.entries);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.BatchEntry.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},A);for(i.entries=[];r.pos>>3==1?i.entries.push(t.BatchEntry.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},A);if(n.entries=[],void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.BatchEntry.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.entries?n.entries=e.entries.map((function(e){return e?t.BatchEntry.toJSON(e):void 0})):n.entries=[],n},fromPartial:function(e){var n=Object.assign({},A);if(n.entries=[],void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.BatchEntry.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var w={};t.BatchEntry={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.exist&&t.ExistenceProof.encode(e.exist,n.uint32(10).fork()).ldelim(),void 0!==e.nonexist&&t.NonExistenceProof.encode(e.nonexist,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},w);r.pos>>3){case 1:i.exist=t.ExistenceProof.decode(r,r.uint32());break;case 2:i.nonexist=t.NonExistenceProof.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},w);return void 0!==e.exist&&null!==e.exist?n.exist=t.ExistenceProof.fromJSON(e.exist):n.exist=void 0,void 0!==e.nonexist&&null!==e.nonexist?n.nonexist=t.NonExistenceProof.fromJSON(e.nonexist):n.nonexist=void 0,n},toJSON:function(e){var n={};return void 0!==e.exist&&(n.exist=e.exist?t.ExistenceProof.toJSON(e.exist):void 0),void 0!==e.nonexist&&(n.nonexist=e.nonexist?t.NonExistenceProof.toJSON(e.nonexist):void 0),n},fromPartial:function(e){var n=Object.assign({},w);return void 0!==e.exist&&null!==e.exist?n.exist=t.ExistenceProof.fromPartial(e.exist):n.exist=void 0,void 0!==e.nonexist&&null!==e.nonexist?n.nonexist=t.NonExistenceProof.fromPartial(e.nonexist):n.nonexist=void 0,n}};var x={};t.CompressedBatchProof={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create(),i=r(e.entries);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.CompressedBatchEntry.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}var s,u=r(e.lookupInners);try{for(u.s();!(s=u.n()).done;){var d=s.value;t.InnerOp.encode(d,a.uint32(18).fork()).ldelim()}}catch(e){u.e(e)}finally{u.f()}return a},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},x);for(i.entries=[],i.lookupInners=[];r.pos>>3){case 1:i.entries.push(t.CompressedBatchEntry.decode(r,r.uint32()));break;case 2:i.lookupInners.push(t.InnerOp.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},x);if(n.entries=[],n.lookupInners=[],void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.CompressedBatchEntry.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}if(void 0!==e.lookupInners&&null!==e.lookupInners){var s,c=r(e.lookupInners);try{for(c.s();!(s=c.n()).done;){var u=s.value;n.lookupInners.push(t.InnerOp.fromJSON(u))}}catch(e){c.e(e)}finally{c.f()}}return n},toJSON:function(e){var n={};return e.entries?n.entries=e.entries.map((function(e){return e?t.CompressedBatchEntry.toJSON(e):void 0})):n.entries=[],e.lookupInners?n.lookupInners=e.lookupInners.map((function(e){return e?t.InnerOp.toJSON(e):void 0})):n.lookupInners=[],n},fromPartial:function(e){var n=Object.assign({},x);if(n.entries=[],n.lookupInners=[],void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.CompressedBatchEntry.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}if(void 0!==e.lookupInners&&null!==e.lookupInners){var s,c=r(e.lookupInners);try{for(c.s();!(s=c.n()).done;){var u=s.value;n.lookupInners.push(t.InnerOp.fromPartial(u))}}catch(e){c.e(e)}finally{c.f()}}return n}};var _={};t.CompressedBatchEntry={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.exist&&t.CompressedExistenceProof.encode(e.exist,n.uint32(10).fork()).ldelim(),void 0!==e.nonexist&&t.CompressedNonExistenceProof.encode(e.nonexist,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},_);r.pos>>3){case 1:i.exist=t.CompressedExistenceProof.decode(r,r.uint32());break;case 2:i.nonexist=t.CompressedNonExistenceProof.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},_);return void 0!==e.exist&&null!==e.exist?n.exist=t.CompressedExistenceProof.fromJSON(e.exist):n.exist=void 0,void 0!==e.nonexist&&null!==e.nonexist?n.nonexist=t.CompressedNonExistenceProof.fromJSON(e.nonexist):n.nonexist=void 0,n},toJSON:function(e){var n={};return void 0!==e.exist&&(n.exist=e.exist?t.CompressedExistenceProof.toJSON(e.exist):void 0),void 0!==e.nonexist&&(n.nonexist=e.nonexist?t.CompressedNonExistenceProof.toJSON(e.nonexist):void 0),n},fromPartial:function(e){var n=Object.assign({},_);return void 0!==e.exist&&null!==e.exist?n.exist=t.CompressedExistenceProof.fromPartial(e.exist):n.exist=void 0,void 0!==e.nonexist&&null!==e.nonexist?n.nonexist=t.CompressedNonExistenceProof.fromPartial(e.nonexist):n.nonexist=void 0,n}};var k={path:0};t.CompressedExistenceProof={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();0!==e.key.length&&n.uint32(10).bytes(e.key),0!==e.value.length&&n.uint32(18).bytes(e.value),void 0!==e.leaf&&t.LeafOp.encode(e.leaf,n.uint32(26).fork()).ldelim(),n.uint32(34).fork();var a,i=r(e.path);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.int32(o)}}catch(e){i.e(e)}finally{i.f()}return n.ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},k);for(i.path=[],i.key=new Uint8Array,i.value=new Uint8Array;r.pos>>3){case 1:i.key=r.bytes();break;case 2:i.value=r.bytes();break;case 3:i.leaf=t.LeafOp.decode(r,r.uint32());break;case 4:if(2==(7&o))for(var s=r.uint32()+r.pos;r.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.key.length&&n.uint32(10).bytes(e.key),void 0!==e.left&&t.CompressedExistenceProof.encode(e.left,n.uint32(18).fork()).ldelim(),void 0!==e.right&&t.CompressedExistenceProof.encode(e.right,n.uint32(26).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},I);for(i.key=new Uint8Array;r.pos>>3){case 1:i.key=r.bytes();break;case 2:i.left=t.CompressedExistenceProof.decode(r,r.uint32());break;case 3:i.right=t.CompressedExistenceProof.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},I);return n.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(n.key=C(e.key)),void 0!==e.left&&null!==e.left?n.left=t.CompressedExistenceProof.fromJSON(e.left):n.left=void 0,void 0!==e.right&&null!==e.right?n.right=t.CompressedExistenceProof.fromJSON(e.right):n.right=void 0,n},toJSON:function(e){var n={};return void 0!==e.key&&(n.key=O(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.left&&(n.left=e.left?t.CompressedExistenceProof.toJSON(e.left):void 0),void 0!==e.right&&(n.right=e.right?t.CompressedExistenceProof.toJSON(e.right):void 0),n},fromPartial:function(e){var n=Object.assign({},I);return void 0!==e.key&&null!==e.key?n.key=e.key:n.key=new Uint8Array,void 0!==e.left&&null!==e.left?n.left=t.CompressedExistenceProof.fromPartial(e.left):n.left=void 0,void 0!==e.right&&null!==e.right?n.right=t.CompressedExistenceProof.fromPartial(e.right):n.right=void 0,n}};var S=function(){if(void 0!==S)return S;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),E=S.atob||function(e){return S.Buffer.from(e,"base64").toString("binary")};function C(e){for(var t=E(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.address&&t.uint32(10).string(e.address),void 0!==e.pubKey&&s.Any.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.accountNumber.isZero()||t.uint32(24).uint64(e.accountNumber),e.sequence.isZero()||t.uint32(32).uint64(e.sequence),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.address=n.string();break;case 2:a.pubKey=s.Any.decode(n,n.uint32());break;case 3:a.accountNumber=n.uint64();break;case 4:a.sequence=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.Any.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=i.default.fromString(e.accountNumber):t.accountNumber=i.default.UZERO,void 0!==e.sequence&&null!==e.sequence?t.sequence=i.default.fromString(e.sequence):t.sequence=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.pubKey&&(t.pubKey=e.pubKey?s.Any.toJSON(e.pubKey):void 0),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||i.default.UZERO).toString()),void 0!==e.sequence&&(t.sequence=(e.sequence||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.Any.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=e.accountNumber:t.accountNumber=i.default.UZERO,void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence=i.default.UZERO,t}};var u={name:"",permissions:""};t.ModuleAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseAccount&&t.BaseAccount.encode(e.baseAccount,n.uint32(10).fork()).ldelim(),""!==e.name&&n.uint32(18).string(e.name);var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.uint32(26).string(s)}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},u);for(i.permissions=[];r.pos>>3){case 1:i.baseAccount=t.BaseAccount.decode(r,r.uint32());break;case 2:i.name=r.string();break;case 3:i.permissions.push(r.string());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},u);if(n.permissions=[],void 0!==e.baseAccount&&null!==e.baseAccount?n.baseAccount=t.BaseAccount.fromJSON(e.baseAccount):n.baseAccount=void 0,void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.permissions&&null!==e.permissions){var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.permissions.push(String(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.baseAccount&&(n.baseAccount=e.baseAccount?t.BaseAccount.toJSON(e.baseAccount):void 0),void 0!==e.name&&(n.name=e.name),e.permissions?n.permissions=e.permissions.map((function(e){return e})):n.permissions=[],n},fromPartial:function(e){var n=Object.assign({},u);if(n.permissions=[],void 0!==e.baseAccount&&null!==e.baseAccount?n.baseAccount=t.BaseAccount.fromPartial(e.baseAccount):n.baseAccount=void 0,void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.permissions&&null!==e.permissions){var a,i=r(e.permissions);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.permissions.push(o)}}catch(e){i.e(e)}finally{i.f()}}return n}};var d={maxMemoCharacters:i.default.UZERO,txSigLimit:i.default.UZERO,txSizeCostPerByte:i.default.UZERO,sigVerifyCostEd25519:i.default.UZERO,sigVerifyCostSecp256k1:i.default.UZERO};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.maxMemoCharacters.isZero()||t.uint32(8).uint64(e.maxMemoCharacters),e.txSigLimit.isZero()||t.uint32(16).uint64(e.txSigLimit),e.txSizeCostPerByte.isZero()||t.uint32(24).uint64(e.txSizeCostPerByte),e.sigVerifyCostEd25519.isZero()||t.uint32(32).uint64(e.sigVerifyCostEd25519),e.sigVerifyCostSecp256k1.isZero()||t.uint32(40).uint64(e.sigVerifyCostSecp256k1),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.maxMemoCharacters=n.uint64();break;case 2:a.txSigLimit=n.uint64();break;case 3:a.txSizeCostPerByte=n.uint64();break;case 4:a.sigVerifyCostEd25519=n.uint64();break;case 5:a.sigVerifyCostSecp256k1=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters?t.maxMemoCharacters=i.default.fromString(e.maxMemoCharacters):t.maxMemoCharacters=i.default.UZERO,void 0!==e.txSigLimit&&null!==e.txSigLimit?t.txSigLimit=i.default.fromString(e.txSigLimit):t.txSigLimit=i.default.UZERO,void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte?t.txSizeCostPerByte=i.default.fromString(e.txSizeCostPerByte):t.txSizeCostPerByte=i.default.UZERO,void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=i.default.fromString(e.sigVerifyCostEd25519):t.sigVerifyCostEd25519=i.default.UZERO,void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=i.default.fromString(e.sigVerifyCostSecp256k1):t.sigVerifyCostSecp256k1=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.maxMemoCharacters&&(t.maxMemoCharacters=(e.maxMemoCharacters||i.default.UZERO).toString()),void 0!==e.txSigLimit&&(t.txSigLimit=(e.txSigLimit||i.default.UZERO).toString()),void 0!==e.txSizeCostPerByte&&(t.txSizeCostPerByte=(e.txSizeCostPerByte||i.default.UZERO).toString()),void 0!==e.sigVerifyCostEd25519&&(t.sigVerifyCostEd25519=(e.sigVerifyCostEd25519||i.default.UZERO).toString()),void 0!==e.sigVerifyCostSecp256k1&&(t.sigVerifyCostSecp256k1=(e.sigVerifyCostSecp256k1||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.maxMemoCharacters&&null!==e.maxMemoCharacters?t.maxMemoCharacters=e.maxMemoCharacters:t.maxMemoCharacters=i.default.UZERO,void 0!==e.txSigLimit&&null!==e.txSigLimit?t.txSigLimit=e.txSigLimit:t.txSigLimit=i.default.UZERO,void 0!==e.txSizeCostPerByte&&null!==e.txSizeCostPerByte?t.txSizeCostPerByte=e.txSizeCostPerByte:t.txSizeCostPerByte=i.default.UZERO,void 0!==e.sigVerifyCostEd25519&&null!==e.sigVerifyCostEd25519?t.sigVerifyCostEd25519=e.sigVerifyCostEd25519:t.sigVerifyCostEd25519=i.default.UZERO,void 0!==e.sigVerifyCostSecp256k1&&null!==e.sigVerifyCostSecp256k1?t.sigVerifyCostSecp256k1=e.sigVerifyCostSecp256k1:t.sigVerifyCostSecp256k1=i.default.UZERO,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},23770:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrantAuthorization=t.Grant=t.GenericAuthorization=t.protobufPackage=void 0;var a=r(n(24141)),i=r(n(1)),o=n(58682),s=n(37814);t.protobufPackage="cosmos.authz.v1beta1";var c={msg:""};t.GenericAuthorization={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.msg&&t.uint32(10).string(e.msg),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3==1?a.msg=n.string():n.skipType(7&o)}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.msg&&null!==e.msg?t.msg=String(e.msg):t.msg="",t},toJSON:function(e){var t={};return void 0!==e.msg&&(t.msg=e.msg),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg="",t}};var u={};t.Grant={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return void 0!==e.authorization&&o.Any.encode(e.authorization,t.uint32(10).fork()).ldelim(),void 0!==e.expiration&&s.Timestamp.encode(f(e.expiration),t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.authorization=o.Any.decode(n,n.uint32());break;case 2:a.expiration=l(s.Timestamp.decode(n,n.uint32()));break;default:n.skipType(7&c)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.authorization&&null!==e.authorization?t.authorization=o.Any.fromJSON(e.authorization):t.authorization=void 0,void 0!==e.expiration&&null!==e.expiration?t.expiration=b(e.expiration):t.expiration=void 0,t},toJSON:function(e){var t={};return void 0!==e.authorization&&(t.authorization=e.authorization?o.Any.toJSON(e.authorization):void 0),void 0!==e.expiration&&(t.expiration=e.expiration.toISOString()),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.authorization&&null!==e.authorization?t.authorization=o.Any.fromPartial(e.authorization):t.authorization=void 0,void 0!==e.expiration&&null!==e.expiration?t.expiration=e.expiration:t.expiration=void 0,t}};var d={granter:"",grantee:""};function f(e){var t;return{seconds:(t=e.getTime()/1e3,a.default.fromNumber(t)),nanos:e.getTime()%1e3*1e6}}function l(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}function b(e){return e instanceof Date?e:"string"==typeof e?new Date(e):l(s.Timestamp.fromJSON(e))}t.GrantAuthorization={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),void 0!==e.authorization&&o.Any.encode(e.authorization,t.uint32(26).fork()).ldelim(),void 0!==e.expiration&&s.Timestamp.encode(f(e.expiration),t.uint32(34).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.granter=n.string();break;case 2:a.grantee=n.string();break;case 3:a.authorization=o.Any.decode(n,n.uint32());break;case 4:a.expiration=l(s.Timestamp.decode(n,n.uint32()));break;default:n.skipType(7&c)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=String(e.grantee):t.grantee="",void 0!==e.authorization&&null!==e.authorization?t.authorization=o.Any.fromJSON(e.authorization):t.authorization=void 0,void 0!==e.expiration&&null!==e.expiration?t.expiration=b(e.expiration):t.expiration=void 0,t},toJSON:function(e){var t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.authorization&&(t.authorization=e.authorization?o.Any.toJSON(e.authorization):void 0),void 0!==e.expiration&&(t.expiration=e.expiration.toISOString()),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=e.grantee:t.grantee="",void 0!==e.authorization&&null!==e.authorization?t.authorization=o.Any.fromPartial(e.authorization):t.authorization=void 0,void 0!==e.expiration&&null!==e.expiration?t.expiration=e.expiration:t.expiration=void 0,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},95918:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(33482).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgRevokeDesc=t.MsgExecDesc=t.MsgGrantDesc=t.MsgDesc=t.MsgClientImpl=t.MsgRevokeResponse=t.MsgRevoke=t.MsgGrantResponse=t.MsgExec=t.MsgExecResponse=t.MsgGrant=t.protobufPackage=void 0;var s=o(n(24141)),c=n(34882),u=o(n(1)),d=n(23770),f=n(46711),l=n(58682);t.protobufPackage="cosmos.authz.v1beta1";var b={granter:"",grantee:""};t.MsgGrant={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),void 0!==e.grant&&d.Grant.encode(e.grant,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.granter=n.string();break;case 2:a.grantee=n.string();break;case 3:a.grant=d.Grant.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=String(e.grantee):t.grantee="",void 0!==e.grant&&null!==e.grant?t.grant=d.Grant.fromJSON(e.grant):t.grant=void 0,t},toJSON:function(e){var t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.grant&&(t.grant=e.grant?d.Grant.toJSON(e.grant):void 0),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=e.grantee:t.grantee="",void 0!==e.grant&&null!==e.grant?t.grant=d.Grant.fromPartial(e.grant):t.grant=void 0,t}};var p={};t.MsgExecResponse={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create(),r=i(e.results);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).bytes(a)}}catch(e){r.e(e)}finally{r.f()}return n},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.results=[];n.pos>>3==1?a.results.push(n.bytes()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},p);if(t.results=[],void 0!==e.results&&null!==e.results){var n,r=i(e.results);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.results.push(_(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return e.results?t.results=e.results.map((function(e){return function(e){var t,n=[],r=i(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.push(String.fromCharCode(a))}}catch(e){r.e(e)}finally{r.f()}return k(n.join(""))}(void 0!==e?e:new Uint8Array)})):t.results=[],t},fromPartial:function(e){var t=Object.assign({},p);if(t.results=[],void 0!==e.results&&null!==e.results){var n,r=i(e.results);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.results.push(a)}}catch(e){r.e(e)}finally{r.f()}}return t}};var h={grantee:""};t.MsgExec={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.grantee&&t.uint32(10).string(e.grantee);var n,r=i(e.msgs);try{for(r.s();!(n=r.n()).done;){var a=n.value;l.Any.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.msgs=[];n.pos>>3){case 1:a.grantee=n.string();break;case 2:a.msgs.push(l.Any.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);if(t.msgs=[],void 0!==e.grantee&&null!==e.grantee?t.grantee=String(e.grantee):t.grantee="",void 0!==e.msgs&&null!==e.msgs){var n,r=i(e.msgs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.msgs.push(l.Any.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.grantee&&(t.grantee=e.grantee),e.msgs?t.msgs=e.msgs.map((function(e){return e?l.Any.toJSON(e):void 0})):t.msgs=[],t},fromPartial:function(e){var t=Object.assign({},h);if(t.msgs=[],void 0!==e.grantee&&null!==e.grantee?t.grantee=e.grantee:t.grantee="",void 0!==e.msgs&&null!==e.msgs){var n,r=i(e.msgs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.msgs.push(l.Any.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var y={};t.MsgGrantResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),""!==e.msgTypeUrl&&t.uint32(26).string(e.msgTypeUrl),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3){case 1:a.granter=n.string();break;case 2:a.grantee=n.string();break;case 3:a.msgTypeUrl=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=String(e.grantee):t.grantee="",void 0!==e.msgTypeUrl&&null!==e.msgTypeUrl?t.msgTypeUrl=String(e.msgTypeUrl):t.msgTypeUrl="",t},toJSON:function(e){var t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.msgTypeUrl&&(t.msgTypeUrl=e.msgTypeUrl),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=e.grantee:t.grantee="",void 0!==e.msgTypeUrl&&null!==e.msgTypeUrl?t.msgTypeUrl=e.msgTypeUrl:t.msgTypeUrl="",t}};var v={};t.MsgRevokeResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.spendLimit);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.spendLimit=[];n.pos>>3==1?a.spendLimit.push(s.Coin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},c);if(t.spendLimit=[],void 0!==e.spendLimit&&null!==e.spendLimit){var n,a=r(e.spendLimit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.spendLimit.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.spendLimit?t.spendLimit=e.spendLimit.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.spendLimit=[],t},fromPartial:function(e){var t=Object.assign({},c);if(t.spendLimit=[],void 0!==e.spendLimit&&null!==e.spendLimit){var n,a=r(e.spendLimit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.spendLimit.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},30226:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=t.DenomUnit=t.Supply=t.Output=t.Input=t.SendEnabled=t.Params=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(1)),s=n(2121);t.protobufPackage="cosmos.bank.v1beta1";var c={defaultSendEnabled:!1};t.Params={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.sendEnabled);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.SendEnabled.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return!0===e.defaultSendEnabled&&a.uint32(16).bool(e.defaultSendEnabled),a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);for(i.sendEnabled=[];r.pos>>3){case 1:i.sendEnabled.push(t.SendEnabled.decode(r,r.uint32()));break;case 2:i.defaultSendEnabled=r.bool();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);if(n.sendEnabled=[],void 0!==e.sendEnabled&&null!==e.sendEnabled){var a,i=r(e.sendEnabled);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.sendEnabled.push(t.SendEnabled.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.defaultSendEnabled&&null!==e.defaultSendEnabled?n.defaultSendEnabled=Boolean(e.defaultSendEnabled):n.defaultSendEnabled=!1,n},toJSON:function(e){var n={};return e.sendEnabled?n.sendEnabled=e.sendEnabled.map((function(e){return e?t.SendEnabled.toJSON(e):void 0})):n.sendEnabled=[],void 0!==e.defaultSendEnabled&&(n.defaultSendEnabled=e.defaultSendEnabled),n},fromPartial:function(e){var n=Object.assign({},c);if(n.sendEnabled=[],void 0!==e.sendEnabled&&null!==e.sendEnabled){var a,i=r(e.sendEnabled);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.sendEnabled.push(t.SendEnabled.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.defaultSendEnabled&&null!==e.defaultSendEnabled?n.defaultSendEnabled=e.defaultSendEnabled:n.defaultSendEnabled=!1,n}};var u={denom:"",enabled:!1};t.SendEnabled={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),!0===e.enabled&&t.uint32(16).bool(e.enabled),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.enabled=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.enabled&&null!==e.enabled?t.enabled=Boolean(e.enabled):t.enabled=!1,t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.enabled&&(t.enabled=e.enabled),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.enabled&&null!==e.enabled?t.enabled=e.enabled:t.enabled=!1,t}};var d={address:""};t.Input={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.address&&t.uint32(10).string(e.address);var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.coins=[];n.pos>>3){case 1:a.address=n.string();break;case 2:a.coins.push(s.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.coins&&null!==e.coins){var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.coins.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.coins=[],t},fromPartial:function(e){var t=Object.assign({},d);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.coins&&null!==e.coins){var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.coins.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var f={address:""};t.Output={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.address&&t.uint32(10).string(e.address);var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.coins=[];n.pos>>3){case 1:a.address=n.string();break;case 2:a.coins.push(s.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.coins&&null!==e.coins){var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.coins.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.coins=[],t},fromPartial:function(e){var t=Object.assign({},f);if(t.coins=[],void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.coins&&null!==e.coins){var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.coins.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var l={};t.Supply={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.total);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.total=[];n.pos>>3==1?a.total.push(s.Coin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.total=[],void 0!==e.total&&null!==e.total){var n,a=r(e.total);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.total.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.total?t.total=e.total.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.total=[],t},fromPartial:function(e){var t=Object.assign({},l);if(t.total=[],void 0!==e.total&&null!==e.total){var n,a=r(e.total);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.total.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var b={denom:"",exponent:0,aliases:""};t.DenomUnit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.denom&&t.uint32(10).string(e.denom),0!==e.exponent&&t.uint32(16).uint32(e.exponent);var n,a=r(e.aliases);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(26).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.aliases=[];n.pos>>3){case 1:a.denom=n.string();break;case 2:a.exponent=n.uint32();break;case 3:a.aliases.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);if(t.aliases=[],void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.exponent&&null!==e.exponent?t.exponent=Number(e.exponent):t.exponent=0,void 0!==e.aliases&&null!==e.aliases){var n,a=r(e.aliases);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.aliases.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.exponent&&(t.exponent=e.exponent),e.aliases?t.aliases=e.aliases.map((function(e){return e})):t.aliases=[],t},fromPartial:function(e){var t=Object.assign({},b);if(t.aliases=[],void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.exponent&&null!==e.exponent?t.exponent=e.exponent:t.exponent=0,void 0!==e.aliases&&null!==e.aliases){var n,a=r(e.aliases);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.aliases.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var p={description:"",base:"",display:"",name:"",symbol:""};t.Metadata={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.description&&n.uint32(10).string(e.description);var a,i=r(e.denomUnits);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.DenomUnit.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return""!==e.base&&n.uint32(26).string(e.base),""!==e.display&&n.uint32(34).string(e.display),""!==e.name&&n.uint32(42).string(e.name),""!==e.symbol&&n.uint32(50).string(e.symbol),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);for(i.denomUnits=[];r.pos>>3){case 1:i.description=r.string();break;case 2:i.denomUnits.push(t.DenomUnit.decode(r,r.uint32()));break;case 3:i.base=r.string();break;case 4:i.display=r.string();break;case 5:i.name=r.string();break;case 6:i.symbol=r.string();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},p);if(n.denomUnits=[],void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.denomUnits&&null!==e.denomUnits){var a,i=r(e.denomUnits);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.denomUnits.push(t.DenomUnit.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.base&&null!==e.base?n.base=String(e.base):n.base="",void 0!==e.display&&null!==e.display?n.display=String(e.display):n.display="",void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.symbol&&null!==e.symbol?n.symbol=String(e.symbol):n.symbol="",n},toJSON:function(e){var n={};return void 0!==e.description&&(n.description=e.description),e.denomUnits?n.denomUnits=e.denomUnits.map((function(e){return e?t.DenomUnit.toJSON(e):void 0})):n.denomUnits=[],void 0!==e.base&&(n.base=e.base),void 0!==e.display&&(n.display=e.display),void 0!==e.name&&(n.name=e.name),void 0!==e.symbol&&(n.symbol=e.symbol),n},fromPartial:function(e){var n=Object.assign({},p);if(n.denomUnits=[],void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.denomUnits&&null!==e.denomUnits){var a,i=r(e.denomUnits);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.denomUnits.push(t.DenomUnit.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.base&&null!==e.base?n.base=e.base:n.base="",void 0!==e.display&&null!==e.display?n.display=e.display:n.display="",void 0!==e.name&&null!==e.name?n.name=e.name:n.name="",void 0!==e.symbol&&null!==e.symbol?n.symbol=e.symbol:n.symbol="",n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},16771:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(33482).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgMultiSendDesc=t.MsgSendDesc=t.MsgDesc=t.MsgClientImpl=t.MsgMultiSendResponse=t.MsgMultiSend=t.MsgSendResponse=t.MsgSend=t.protobufPackage=void 0;var s=o(n(24141)),c=n(34882),u=o(n(1)),d=n(46711),f=n(2121),l=n(30226);t.protobufPackage="cosmos.bank.v1beta1";var b={fromAddress:"",toAddress:""};t.MsgSend={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress);var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;f.Coin.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.amount=[];n.pos>>3){case 1:a.fromAddress=n.string();break;case 2:a.toAddress=n.string();break;case 3:a.amount.push(f.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);if(t.amount=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=String(e.toAddress):t.toAddress="",void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(f.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map((function(e){return e?f.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t=Object.assign({},b);if(t.amount=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=e.toAddress:t.toAddress="",void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(f.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var p={};t.MsgSendResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create(),r=i(e.inputs);try{for(r.s();!(t=r.n()).done;){var a=t.value;l.Input.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var o,s=i(e.outputs);try{for(s.s();!(o=s.n()).done;){var c=o.value;l.Output.encode(c,n.uint32(18).fork()).ldelim()}}catch(e){s.e(e)}finally{s.f()}return n},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.inputs=[],a.outputs=[];n.pos>>3){case 1:a.inputs.push(l.Input.decode(n,n.uint32()));break;case 2:a.outputs.push(l.Output.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);if(t.inputs=[],t.outputs=[],void 0!==e.inputs&&null!==e.inputs){var n,r=i(e.inputs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.inputs.push(l.Input.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}if(void 0!==e.outputs&&null!==e.outputs){var o,s=i(e.outputs);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.outputs.push(l.Output.fromJSON(c))}}catch(e){s.e(e)}finally{s.f()}}return t},toJSON:function(e){var t={};return e.inputs?t.inputs=e.inputs.map((function(e){return e?l.Input.toJSON(e):void 0})):t.inputs=[],e.outputs?t.outputs=e.outputs.map((function(e){return e?l.Output.toJSON(e):void 0})):t.outputs=[],t},fromPartial:function(e){var t=Object.assign({},h);if(t.inputs=[],t.outputs=[],void 0!==e.inputs&&null!==e.inputs){var n,r=i(e.inputs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.inputs.push(l.Input.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}if(void 0!==e.outputs&&null!==e.outputs){var o,s=i(e.outputs);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.outputs.push(l.Output.fromPartial(c))}}catch(e){s.e(e)}finally{s.f()}}return t}};var y={};t.MsgMultiSendResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.height.isZero()||n.uint32(8).int64(e.height),""!==e.txhash&&n.uint32(18).string(e.txhash),""!==e.codespace&&n.uint32(26).string(e.codespace),0!==e.code&&n.uint32(32).uint32(e.code),""!==e.data&&n.uint32(42).string(e.data),""!==e.rawLog&&n.uint32(50).string(e.rawLog);var a,i=r(e.logs);try{for(i.s();!(a=i.n()).done;){var u=a.value;t.ABCIMessageLog.encode(u,n.uint32(58).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}""!==e.info&&n.uint32(66).string(e.info),e.gasWanted.isZero()||n.uint32(72).int64(e.gasWanted),e.gasUsed.isZero()||n.uint32(80).int64(e.gasUsed),void 0!==e.tx&&s.Any.encode(e.tx,n.uint32(90).fork()).ldelim(),""!==e.timestamp&&n.uint32(98).string(e.timestamp);var d,f=r(e.events);try{for(f.s();!(d=f.n()).done;){var l=d.value;c.Event.encode(l,n.uint32(106).fork()).ldelim()}}catch(e){f.e(e)}finally{f.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},u);for(i.logs=[],i.events=[];r.pos>>3){case 1:i.height=r.int64();break;case 2:i.txhash=r.string();break;case 3:i.codespace=r.string();break;case 4:i.code=r.uint32();break;case 5:i.data=r.string();break;case 6:i.rawLog=r.string();break;case 7:i.logs.push(t.ABCIMessageLog.decode(r,r.uint32()));break;case 8:i.info=r.string();break;case 9:i.gasWanted=r.int64();break;case 10:i.gasUsed=r.int64();break;case 11:i.tx=s.Any.decode(r,r.uint32());break;case 12:i.timestamp=r.string();break;case 13:i.events.push(c.Event.decode(r,r.uint32()));break;default:r.skipType(7&d)}}return i},fromJSON:function(e){var n=Object.assign({},u);if(n.logs=[],n.events=[],void 0!==e.height&&null!==e.height?n.height=i.default.fromString(e.height):n.height=i.default.ZERO,void 0!==e.txhash&&null!==e.txhash?n.txhash=String(e.txhash):n.txhash="",void 0!==e.codespace&&null!==e.codespace?n.codespace=String(e.codespace):n.codespace="",void 0!==e.code&&null!==e.code?n.code=Number(e.code):n.code=0,void 0!==e.data&&null!==e.data?n.data=String(e.data):n.data="",void 0!==e.rawLog&&null!==e.rawLog?n.rawLog=String(e.rawLog):n.rawLog="",void 0!==e.logs&&null!==e.logs){var a,o=r(e.logs);try{for(o.s();!(a=o.n()).done;){var d=a.value;n.logs.push(t.ABCIMessageLog.fromJSON(d))}}catch(e){o.e(e)}finally{o.f()}}if(void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=i.default.fromString(e.gasWanted):n.gasWanted=i.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=i.default.fromString(e.gasUsed):n.gasUsed=i.default.ZERO,void 0!==e.tx&&null!==e.tx?n.tx=s.Any.fromJSON(e.tx):n.tx=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=String(e.timestamp):n.timestamp="",void 0!==e.events&&null!==e.events){var f,l=r(e.events);try{for(l.s();!(f=l.n()).done;){var b=f.value;n.events.push(c.Event.fromJSON(b))}}catch(e){l.e(e)}finally{l.f()}}return n},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=(e.height||i.default.ZERO).toString()),void 0!==e.txhash&&(n.txhash=e.txhash),void 0!==e.codespace&&(n.codespace=e.codespace),void 0!==e.code&&(n.code=e.code),void 0!==e.data&&(n.data=e.data),void 0!==e.rawLog&&(n.rawLog=e.rawLog),e.logs?n.logs=e.logs.map((function(e){return e?t.ABCIMessageLog.toJSON(e):void 0})):n.logs=[],void 0!==e.info&&(n.info=e.info),void 0!==e.gasWanted&&(n.gasWanted=(e.gasWanted||i.default.ZERO).toString()),void 0!==e.gasUsed&&(n.gasUsed=(e.gasUsed||i.default.ZERO).toString()),void 0!==e.tx&&(n.tx=e.tx?s.Any.toJSON(e.tx):void 0),void 0!==e.timestamp&&(n.timestamp=e.timestamp),e.events?n.events=e.events.map((function(e){return e?c.Event.toJSON(e):void 0})):n.events=[],n},fromPartial:function(e){var n=Object.assign({},u);if(n.logs=[],n.events=[],void 0!==e.height&&null!==e.height?n.height=e.height:n.height=i.default.ZERO,void 0!==e.txhash&&null!==e.txhash?n.txhash=e.txhash:n.txhash="",void 0!==e.codespace&&null!==e.codespace?n.codespace=e.codespace:n.codespace="",void 0!==e.code&&null!==e.code?n.code=e.code:n.code=0,void 0!==e.data&&null!==e.data?n.data=e.data:n.data="",void 0!==e.rawLog&&null!==e.rawLog?n.rawLog=e.rawLog:n.rawLog="",void 0!==e.logs&&null!==e.logs){var a,o=r(e.logs);try{for(o.s();!(a=o.n()).done;){var d=a.value;n.logs.push(t.ABCIMessageLog.fromPartial(d))}}catch(e){o.e(e)}finally{o.f()}}if(void 0!==e.info&&null!==e.info?n.info=e.info:n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=e.gasWanted:n.gasWanted=i.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=e.gasUsed:n.gasUsed=i.default.ZERO,void 0!==e.tx&&null!==e.tx?n.tx=s.Any.fromPartial(e.tx):n.tx=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=e.timestamp:n.timestamp="",void 0!==e.events&&null!==e.events){var f,l=r(e.events);try{for(l.s();!(f=l.n()).done;){var b=f.value;n.events.push(c.Event.fromPartial(b))}}catch(e){l.e(e)}finally{l.f()}}return n}};var d={msgIndex:0,log:""};t.ABCIMessageLog={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();0!==e.msgIndex&&n.uint32(8).uint32(e.msgIndex),""!==e.log&&n.uint32(18).string(e.log);var a,i=r(e.events);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.StringEvent.encode(s,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);for(i.events=[];r.pos>>3){case 1:i.msgIndex=r.uint32();break;case 2:i.log=r.string();break;case 3:i.events.push(t.StringEvent.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},d);if(n.events=[],void 0!==e.msgIndex&&null!==e.msgIndex?n.msgIndex=Number(e.msgIndex):n.msgIndex=0,void 0!==e.log&&null!==e.log?n.log=String(e.log):n.log="",void 0!==e.events&&null!==e.events){var a,i=r(e.events);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.events.push(t.StringEvent.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.msgIndex&&(n.msgIndex=e.msgIndex),void 0!==e.log&&(n.log=e.log),e.events?n.events=e.events.map((function(e){return e?t.StringEvent.toJSON(e):void 0})):n.events=[],n},fromPartial:function(e){var n=Object.assign({},d);if(n.events=[],void 0!==e.msgIndex&&null!==e.msgIndex?n.msgIndex=e.msgIndex:n.msgIndex=0,void 0!==e.log&&null!==e.log?n.log=e.log:n.log="",void 0!==e.events&&null!==e.events){var a,i=r(e.events);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.events.push(t.StringEvent.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var f={type:""};t.StringEvent={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.type&&n.uint32(10).string(e.type);var a,i=r(e.attributes);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Attribute.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);for(i.attributes=[];r.pos>>3){case 1:i.type=r.string();break;case 2:i.attributes.push(t.Attribute.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},f);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=String(e.type):n.type="",void 0!==e.attributes&&null!==e.attributes){var a,i=r(e.attributes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.attributes.push(t.Attribute.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=e.type),e.attributes?n.attributes=e.attributes.map((function(e){return e?t.Attribute.toJSON(e):void 0})):n.attributes=[],n},fromPartial:function(e){var n=Object.assign({},f);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=e.type:n.type="",void 0!==e.attributes&&null!==e.attributes){var a,i=r(e.attributes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.attributes.push(t.Attribute.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var l={key:"",value:""};t.Attribute={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.key=n.string();break;case 2:a.value=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}};var b={gasWanted:i.default.UZERO,gasUsed:i.default.UZERO};t.GasInfo={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.gasWanted.isZero()||t.uint32(8).uint64(e.gasWanted),e.gasUsed.isZero()||t.uint32(16).uint64(e.gasUsed),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.gasWanted=n.uint64();break;case 2:a.gasUsed=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.gasWanted&&null!==e.gasWanted?t.gasWanted=i.default.fromString(e.gasWanted):t.gasWanted=i.default.UZERO,void 0!==e.gasUsed&&null!==e.gasUsed?t.gasUsed=i.default.fromString(e.gasUsed):t.gasUsed=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.gasWanted&&(t.gasWanted=(e.gasWanted||i.default.UZERO).toString()),void 0!==e.gasUsed&&(t.gasUsed=(e.gasUsed||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.gasWanted&&null!==e.gasWanted?t.gasWanted=e.gasWanted:t.gasWanted=i.default.UZERO,void 0!==e.gasUsed&&null!==e.gasUsed?t.gasUsed=e.gasUsed:t.gasUsed=i.default.UZERO,t}};var p={log:""};t.Result={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();0!==e.data.length&&t.uint32(10).bytes(e.data),""!==e.log&&t.uint32(18).string(e.log);var n,a=r(e.events);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Event.encode(i,t.uint32(26).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.events=[],a.data=new Uint8Array;n.pos>>3){case 1:a.data=n.bytes();break;case 2:a.log=n.string();break;case 3:a.events.push(c.Event.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);if(t.events=[],t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=w(e.data)),void 0!==e.log&&null!==e.log?t.log=String(e.log):t.log="",void 0!==e.events&&null!==e.events){var n,a=r(e.events);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.events.push(c.Event.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=_(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(t.log=e.log),e.events?t.events=e.events.map((function(e){return e?c.Event.toJSON(e):void 0})):t.events=[],t},fromPartial:function(e){var t=Object.assign({},p);if(t.events=[],void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.log&&null!==e.log?t.log=e.log:t.log="",void 0!==e.events&&null!==e.events){var n,a=r(e.events);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.events.push(c.Event.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var h={};t.SimulationResponse={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.gasInfo&&t.GasInfo.encode(e.gasInfo,n.uint32(10).fork()).ldelim(),void 0!==e.result&&t.Result.encode(e.result,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},h);r.pos>>3){case 1:i.gasInfo=t.GasInfo.decode(r,r.uint32());break;case 2:i.result=t.Result.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},h);return void 0!==e.gasInfo&&null!==e.gasInfo?n.gasInfo=t.GasInfo.fromJSON(e.gasInfo):n.gasInfo=void 0,void 0!==e.result&&null!==e.result?n.result=t.Result.fromJSON(e.result):n.result=void 0,n},toJSON:function(e){var n={};return void 0!==e.gasInfo&&(n.gasInfo=e.gasInfo?t.GasInfo.toJSON(e.gasInfo):void 0),void 0!==e.result&&(n.result=e.result?t.Result.toJSON(e.result):void 0),n},fromPartial:function(e){var n=Object.assign({},h);return void 0!==e.gasInfo&&null!==e.gasInfo?n.gasInfo=t.GasInfo.fromPartial(e.gasInfo):n.gasInfo=void 0,void 0!==e.result&&null!==e.result?n.result=t.Result.fromPartial(e.result):n.result=void 0,n}};var y={msgType:""};t.MsgData={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.msgType&&t.uint32(10).string(e.msgType),0!==e.data.length&&t.uint32(18).bytes(e.data),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.data=new Uint8Array;n.pos>>3){case 1:a.msgType=n.string();break;case 2:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return t.data=new Uint8Array,void 0!==e.msgType&&null!==e.msgType?t.msgType=String(e.msgType):t.msgType="",void 0!==e.data&&null!==e.data&&(t.data=w(e.data)),t},toJSON:function(e){var t={};return void 0!==e.msgType&&(t.msgType=e.msgType),void 0!==e.data&&(t.data=_(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.msgType&&null!==e.msgType?t.msgType=e.msgType:t.msgType="",void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var m={};t.TxMsgData={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.data);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.MsgData.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},m);for(i.data=[];r.pos>>3==1?i.data.push(t.MsgData.decode(r,r.uint32())):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},m);if(n.data=[],void 0!==e.data&&null!==e.data){var a,i=r(e.data);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.data.push(t.MsgData.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.data?n.data=e.data.map((function(e){return e?t.MsgData.toJSON(e):void 0})):n.data=[],n},fromPartial:function(e){var n=Object.assign({},m);if(n.data=[],void 0!==e.data&&null!==e.data){var a,i=r(e.data);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.data.push(t.MsgData.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var v={totalCount:i.default.UZERO,count:i.default.UZERO,pageNumber:i.default.UZERO,pageTotal:i.default.UZERO,limit:i.default.UZERO};t.SearchTxsResult={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.totalCount.isZero()||n.uint32(8).uint64(e.totalCount),e.count.isZero()||n.uint32(16).uint64(e.count),e.pageNumber.isZero()||n.uint32(24).uint64(e.pageNumber),e.pageTotal.isZero()||n.uint32(32).uint64(e.pageTotal),e.limit.isZero()||n.uint32(40).uint64(e.limit);var a,i=r(e.txs);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.TxResponse.encode(s,n.uint32(50).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},v);for(i.txs=[];r.pos>>3){case 1:i.totalCount=r.uint64();break;case 2:i.count=r.uint64();break;case 3:i.pageNumber=r.uint64();break;case 4:i.pageTotal=r.uint64();break;case 5:i.limit=r.uint64();break;case 6:i.txs.push(t.TxResponse.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},v);if(n.txs=[],void 0!==e.totalCount&&null!==e.totalCount?n.totalCount=i.default.fromString(e.totalCount):n.totalCount=i.default.UZERO,void 0!==e.count&&null!==e.count?n.count=i.default.fromString(e.count):n.count=i.default.UZERO,void 0!==e.pageNumber&&null!==e.pageNumber?n.pageNumber=i.default.fromString(e.pageNumber):n.pageNumber=i.default.UZERO,void 0!==e.pageTotal&&null!==e.pageTotal?n.pageTotal=i.default.fromString(e.pageTotal):n.pageTotal=i.default.UZERO,void 0!==e.limit&&null!==e.limit?n.limit=i.default.fromString(e.limit):n.limit=i.default.UZERO,void 0!==e.txs&&null!==e.txs){var a,o=r(e.txs);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.txs.push(t.TxResponse.fromJSON(s))}}catch(e){o.e(e)}finally{o.f()}}return n},toJSON:function(e){var n={};return void 0!==e.totalCount&&(n.totalCount=(e.totalCount||i.default.UZERO).toString()),void 0!==e.count&&(n.count=(e.count||i.default.UZERO).toString()),void 0!==e.pageNumber&&(n.pageNumber=(e.pageNumber||i.default.UZERO).toString()),void 0!==e.pageTotal&&(n.pageTotal=(e.pageTotal||i.default.UZERO).toString()),void 0!==e.limit&&(n.limit=(e.limit||i.default.UZERO).toString()),e.txs?n.txs=e.txs.map((function(e){return e?t.TxResponse.toJSON(e):void 0})):n.txs=[],n},fromPartial:function(e){var n=Object.assign({},v);if(n.txs=[],void 0!==e.totalCount&&null!==e.totalCount?n.totalCount=e.totalCount:n.totalCount=i.default.UZERO,void 0!==e.count&&null!==e.count?n.count=e.count:n.count=i.default.UZERO,void 0!==e.pageNumber&&null!==e.pageNumber?n.pageNumber=e.pageNumber:n.pageNumber=i.default.UZERO,void 0!==e.pageTotal&&null!==e.pageTotal?n.pageTotal=e.pageTotal:n.pageTotal=i.default.UZERO,void 0!==e.limit&&null!==e.limit?n.limit=e.limit:n.limit=i.default.UZERO,void 0!==e.txs&&null!==e.txs){var a,o=r(e.txs);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.txs.push(t.TxResponse.fromPartial(s))}}catch(e){o.e(e)}finally{o.f()}}return n}};var g=function(){if(void 0!==g)return g;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),A=g.atob||function(e){return g.Buffer.from(e,"base64").toString("binary")};function w(e){for(var t=A(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),e.offset.isZero()||t.uint32(16).uint64(e.offset),e.limit.isZero()||t.uint32(24).uint64(e.limit),!0===e.countTotal&&t.uint32(32).bool(e.countTotal),!0===e.reverse&&t.uint32(40).bool(e.reverse),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.key=new Uint8Array;n.pos>>3){case 1:a.key=n.bytes();break;case 2:a.offset=n.uint64();break;case 3:a.limit=n.uint64();break;case 4:a.countTotal=n.bool();break;case 5:a.reverse=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);return t.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=f(e.key)),void 0!==e.offset&&null!==e.offset?t.offset=i.default.fromString(e.offset):t.offset=i.default.UZERO,void 0!==e.limit&&null!==e.limit?t.limit=i.default.fromString(e.limit):t.limit=i.default.UZERO,void 0!==e.countTotal&&null!==e.countTotal?t.countTotal=Boolean(e.countTotal):t.countTotal=!1,void 0!==e.reverse&&null!==e.reverse?t.reverse=Boolean(e.reverse):t.reverse=!1,t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=b(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.offset&&(t.offset=(e.offset||i.default.UZERO).toString()),void 0!==e.limit&&(t.limit=(e.limit||i.default.UZERO).toString()),void 0!==e.countTotal&&(t.countTotal=e.countTotal),void 0!==e.reverse&&(t.reverse=e.reverse),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.offset&&null!==e.offset?t.offset=e.offset:t.offset=i.default.UZERO,void 0!==e.limit&&null!==e.limit?t.limit=e.limit:t.limit=i.default.UZERO,void 0!==e.countTotal&&null!==e.countTotal?t.countTotal=e.countTotal:t.countTotal=!1,void 0!==e.reverse&&null!==e.reverse?t.reverse=e.reverse:t.reverse=!1,t}};var c={total:i.default.UZERO};t.PageResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.nextKey.length&&t.uint32(10).bytes(e.nextKey),e.total.isZero()||t.uint32(16).uint64(e.total),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.nextKey=new Uint8Array;n.pos>>3){case 1:a.nextKey=n.bytes();break;case 2:a.total=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return t.nextKey=new Uint8Array,void 0!==e.nextKey&&null!==e.nextKey&&(t.nextKey=f(e.nextKey)),void 0!==e.total&&null!==e.total?t.total=i.default.fromString(e.total):t.total=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.nextKey&&(t.nextKey=b(void 0!==e.nextKey?e.nextKey:new Uint8Array)),void 0!==e.total&&(t.total=(e.total||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.nextKey&&null!==e.nextKey?t.nextKey=e.nextKey:t.nextKey=new Uint8Array,void 0!==e.total&&null!==e.total?t.total=e.total:t.total=i.default.UZERO,t}};var u=function(){if(void 0!==u)return u;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),d=u.atob||function(e){return u.Buffer.from(e,"base64").toString("binary")};function f(e){for(var t=d(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t}};var s={denom:"",amount:""};t.DecCoin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",t}};var c={int:""};t.IntProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.int&&t.uint32(10).string(e.int),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3==1?a.int=n.string():n.skipType(7&o)}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.int&&null!==e.int?t.int=String(e.int):t.int="",t},toJSON:function(e){var t={};return void 0!==e.int&&(t.int=e.int),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.int&&null!==e.int?t.int=e.int:t.int="",t}};var u={dec:""};t.DecProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.dec&&t.uint32(10).string(e.dec),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3==1?a.dec=n.string():n.skipType(7&o)}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.dec&&null!==e.dec?t.dec=String(e.dec):t.dec="",t},toJSON:function(e){var t={};return void 0!==e.dec&&(t.dec=e.dec),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.dec&&null!==e.dec?t.dec=e.dec:t.dec="",t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},64568:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgVerifyInvariantDesc=t.MsgDesc=t.MsgClientImpl=t.MsgVerifyInvariantResponse=t.MsgVerifyInvariant=t.protobufPackage=void 0;var o=i(n(24141)),s=n(34882),c=i(n(1)),u=n(46711);t.protobufPackage="cosmos.crisis.v1beta1";var d={sender:"",invariantModuleName:"",invariantRoute:""};t.MsgVerifyInvariant={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),""!==e.invariantModuleName&&t.uint32(18).string(e.invariantModuleName),""!==e.invariantRoute&&t.uint32(26).string(e.invariantRoute),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.sender=n.string();break;case 2:a.invariantModuleName=n.string();break;case 3:a.invariantRoute=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.invariantModuleName&&null!==e.invariantModuleName?t.invariantModuleName=String(e.invariantModuleName):t.invariantModuleName="",void 0!==e.invariantRoute&&null!==e.invariantRoute?t.invariantRoute=String(e.invariantRoute):t.invariantRoute="",t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.invariantModuleName&&(t.invariantModuleName=e.invariantModuleName),void 0!==e.invariantRoute&&(t.invariantRoute=e.invariantRoute),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.invariantModuleName&&null!==e.invariantModuleName?t.invariantModuleName=e.invariantModuleName:t.invariantModuleName="",void 0!==e.invariantRoute&&null!==e.invariantRoute?t.invariantRoute=e.invariantRoute:t.invariantRoute="",t}};var f={};t.MsgVerifyInvariantResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.key=new Uint8Array;n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},s);return t.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=f(e.key)),t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=b(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,t}};var c={};t.PrivKey={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.key=new Uint8Array;n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},c);return t.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=f(e.key)),t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=b(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,t}};var u=function(){if(void 0!==u)return u;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),d=u.atob||function(e){return u.Buffer.from(e,"base64").toString("binary")};function f(e){for(var t=d(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();0!==e.threshold&&t.uint32(8).uint32(e.threshold);var n,a=r(e.publicKeys);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.Any.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.publicKeys=[];n.pos>>3){case 1:a.threshold=n.uint32();break;case 2:a.publicKeys.push(s.Any.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);if(t.publicKeys=[],void 0!==e.threshold&&null!==e.threshold?t.threshold=Number(e.threshold):t.threshold=0,void 0!==e.publicKeys&&null!==e.publicKeys){var n,a=r(e.publicKeys);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.publicKeys.push(s.Any.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.threshold&&(t.threshold=e.threshold),e.publicKeys?t.publicKeys=e.publicKeys.map((function(e){return e?s.Any.toJSON(e):void 0})):t.publicKeys=[],t},fromPartial:function(e){var t=Object.assign({},c);if(t.publicKeys=[],void 0!==e.threshold&&null!==e.threshold?t.threshold=e.threshold:t.threshold=0,void 0!==e.publicKeys&&null!==e.publicKeys){var n,a=r(e.publicKeys);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.publicKeys.push(s.Any.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},97566:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompactBitArray=t.MultiSignature=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(1));t.protobufPackage="cosmos.crypto.multisig.v1beta1";var s={};t.MultiSignature={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.signatures);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.signatures=[];n.pos>>3==1?a.signatures.push(n.bytes()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},s);if(t.signatures=[],void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(f(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.signatures?t.signatures=e.signatures.map((function(e){return b(void 0!==e?e:new Uint8Array)})):t.signatures=[],t},fromPartial:function(e){var t=Object.assign({},s);if(t.signatures=[],void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var c={extraBitsStored:0};t.CompactBitArray={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.extraBitsStored&&t.uint32(8).uint32(e.extraBitsStored),0!==e.elems.length&&t.uint32(18).bytes(e.elems),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.elems=new Uint8Array;n.pos>>3){case 1:a.extraBitsStored=n.uint32();break;case 2:a.elems=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return t.elems=new Uint8Array,void 0!==e.extraBitsStored&&null!==e.extraBitsStored?t.extraBitsStored=Number(e.extraBitsStored):t.extraBitsStored=0,void 0!==e.elems&&null!==e.elems&&(t.elems=f(e.elems)),t},toJSON:function(e){var t={};return void 0!==e.extraBitsStored&&(t.extraBitsStored=e.extraBitsStored),void 0!==e.elems&&(t.elems=b(void 0!==e.elems?e.elems:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.extraBitsStored&&null!==e.extraBitsStored?t.extraBitsStored=e.extraBitsStored:t.extraBitsStored=0,void 0!==e.elems&&null!==e.elems?t.elems=e.elems:t.elems=new Uint8Array,t}};var u=function(){if(void 0!==u)return u;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),d=u.atob||function(e){return u.Buffer.from(e,"base64").toString("binary")};function f(e){for(var t=d(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.key=new Uint8Array;n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},s);return t.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=f(e.key)),t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=b(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,t}};var c={};t.PrivKey={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.key=new Uint8Array;n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},c);return t.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=f(e.key)),t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=b(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,t}};var u=function(){if(void 0!==u)return u;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),d=u.atob||function(e){return u.Buffer.from(e,"base64").toString("binary")};function f(e){for(var t=d(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.communityTax&&t.uint32(10).string(e.communityTax),""!==e.baseProposerReward&&t.uint32(18).string(e.baseProposerReward),""!==e.bonusProposerReward&&t.uint32(26).string(e.bonusProposerReward),!0===e.withdrawAddrEnabled&&t.uint32(32).bool(e.withdrawAddrEnabled),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.communityTax=n.string();break;case 2:a.baseProposerReward=n.string();break;case 3:a.bonusProposerReward=n.string();break;case 4:a.withdrawAddrEnabled=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.communityTax&&null!==e.communityTax?t.communityTax=String(e.communityTax):t.communityTax="",void 0!==e.baseProposerReward&&null!==e.baseProposerReward?t.baseProposerReward=String(e.baseProposerReward):t.baseProposerReward="",void 0!==e.bonusProposerReward&&null!==e.bonusProposerReward?t.bonusProposerReward=String(e.bonusProposerReward):t.bonusProposerReward="",void 0!==e.withdrawAddrEnabled&&null!==e.withdrawAddrEnabled?t.withdrawAddrEnabled=Boolean(e.withdrawAddrEnabled):t.withdrawAddrEnabled=!1,t},toJSON:function(e){var t={};return void 0!==e.communityTax&&(t.communityTax=e.communityTax),void 0!==e.baseProposerReward&&(t.baseProposerReward=e.baseProposerReward),void 0!==e.bonusProposerReward&&(t.bonusProposerReward=e.bonusProposerReward),void 0!==e.withdrawAddrEnabled&&(t.withdrawAddrEnabled=e.withdrawAddrEnabled),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.communityTax&&null!==e.communityTax?t.communityTax=e.communityTax:t.communityTax="",void 0!==e.baseProposerReward&&null!==e.baseProposerReward?t.baseProposerReward=e.baseProposerReward:t.baseProposerReward="",void 0!==e.bonusProposerReward&&null!==e.bonusProposerReward?t.bonusProposerReward=e.bonusProposerReward:t.bonusProposerReward="",void 0!==e.withdrawAddrEnabled&&null!==e.withdrawAddrEnabled?t.withdrawAddrEnabled=e.withdrawAddrEnabled:t.withdrawAddrEnabled=!1,t}};var u={referenceCount:0};t.ValidatorHistoricalRewards={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.cumulativeRewardRatio);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.DecCoin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return 0!==e.referenceCount&&n.uint32(16).uint32(e.referenceCount),n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.cumulativeRewardRatio=[];n.pos>>3){case 1:a.cumulativeRewardRatio.push(s.DecCoin.decode(n,n.uint32()));break;case 2:a.referenceCount=n.uint32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);if(t.cumulativeRewardRatio=[],void 0!==e.cumulativeRewardRatio&&null!==e.cumulativeRewardRatio){var n,a=r(e.cumulativeRewardRatio);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.cumulativeRewardRatio.push(s.DecCoin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.referenceCount&&null!==e.referenceCount?t.referenceCount=Number(e.referenceCount):t.referenceCount=0,t},toJSON:function(e){var t={};return e.cumulativeRewardRatio?t.cumulativeRewardRatio=e.cumulativeRewardRatio.map((function(e){return e?s.DecCoin.toJSON(e):void 0})):t.cumulativeRewardRatio=[],void 0!==e.referenceCount&&(t.referenceCount=e.referenceCount),t},fromPartial:function(e){var t=Object.assign({},u);if(t.cumulativeRewardRatio=[],void 0!==e.cumulativeRewardRatio&&null!==e.cumulativeRewardRatio){var n,a=r(e.cumulativeRewardRatio);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.cumulativeRewardRatio.push(s.DecCoin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.referenceCount&&null!==e.referenceCount?t.referenceCount=e.referenceCount:t.referenceCount=0,t}};var d={period:i.default.UZERO};t.ValidatorCurrentRewards={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.rewards);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.DecCoin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return e.period.isZero()||n.uint32(16).uint64(e.period),n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.rewards=[];n.pos>>3){case 1:a.rewards.push(s.DecCoin.decode(n,n.uint32()));break;case 2:a.period=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);if(t.rewards=[],void 0!==e.rewards&&null!==e.rewards){var n,a=r(e.rewards);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.rewards.push(s.DecCoin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.period&&null!==e.period?t.period=i.default.fromString(e.period):t.period=i.default.UZERO,t},toJSON:function(e){var t={};return e.rewards?t.rewards=e.rewards.map((function(e){return e?s.DecCoin.toJSON(e):void 0})):t.rewards=[],void 0!==e.period&&(t.period=(e.period||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},d);if(t.rewards=[],void 0!==e.rewards&&null!==e.rewards){var n,a=r(e.rewards);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.rewards.push(s.DecCoin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.period&&null!==e.period?t.period=e.period:t.period=i.default.UZERO,t}};var f={};t.ValidatorAccumulatedCommission={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.commission);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.DecCoin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.commission=[];n.pos>>3==1?a.commission.push(s.DecCoin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},f);if(t.commission=[],void 0!==e.commission&&null!==e.commission){var n,a=r(e.commission);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.commission.push(s.DecCoin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.commission?t.commission=e.commission.map((function(e){return e?s.DecCoin.toJSON(e):void 0})):t.commission=[],t},fromPartial:function(e){var t=Object.assign({},f);if(t.commission=[],void 0!==e.commission&&null!==e.commission){var n,a=r(e.commission);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.commission.push(s.DecCoin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var l={};t.ValidatorOutstandingRewards={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.rewards);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.DecCoin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.rewards=[];n.pos>>3==1?a.rewards.push(s.DecCoin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.rewards=[],void 0!==e.rewards&&null!==e.rewards){var n,a=r(e.rewards);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.rewards.push(s.DecCoin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.rewards?t.rewards=e.rewards.map((function(e){return e?s.DecCoin.toJSON(e):void 0})):t.rewards=[],t},fromPartial:function(e){var t=Object.assign({},l);if(t.rewards=[],void 0!==e.rewards&&null!==e.rewards){var n,a=r(e.rewards);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.rewards.push(s.DecCoin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var b={validatorPeriod:i.default.UZERO,fraction:""};t.ValidatorSlashEvent={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.validatorPeriod.isZero()||t.uint32(8).uint64(e.validatorPeriod),""!==e.fraction&&t.uint32(18).string(e.fraction),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.validatorPeriod=n.uint64();break;case 2:a.fraction=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.validatorPeriod&&null!==e.validatorPeriod?t.validatorPeriod=i.default.fromString(e.validatorPeriod):t.validatorPeriod=i.default.UZERO,void 0!==e.fraction&&null!==e.fraction?t.fraction=String(e.fraction):t.fraction="",t},toJSON:function(e){var t={};return void 0!==e.validatorPeriod&&(t.validatorPeriod=(e.validatorPeriod||i.default.UZERO).toString()),void 0!==e.fraction&&(t.fraction=e.fraction),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.validatorPeriod&&null!==e.validatorPeriod?t.validatorPeriod=e.validatorPeriod:t.validatorPeriod=i.default.UZERO,void 0!==e.fraction&&null!==e.fraction?t.fraction=e.fraction:t.fraction="",t}};var p={};t.ValidatorSlashEvents={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.validatorSlashEvents);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.ValidatorSlashEvent.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);for(i.validatorSlashEvents=[];r.pos>>3==1?i.validatorSlashEvents.push(t.ValidatorSlashEvent.decode(r,r.uint32())):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},p);if(n.validatorSlashEvents=[],void 0!==e.validatorSlashEvents&&null!==e.validatorSlashEvents){var a,i=r(e.validatorSlashEvents);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.validatorSlashEvents.push(t.ValidatorSlashEvent.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.validatorSlashEvents?n.validatorSlashEvents=e.validatorSlashEvents.map((function(e){return e?t.ValidatorSlashEvent.toJSON(e):void 0})):n.validatorSlashEvents=[],n},fromPartial:function(e){var n=Object.assign({},p);if(n.validatorSlashEvents=[],void 0!==e.validatorSlashEvents&&null!==e.validatorSlashEvents){var a,i=r(e.validatorSlashEvents);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.validatorSlashEvents.push(t.ValidatorSlashEvent.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var h={};t.FeePool={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.communityPool);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.DecCoin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.communityPool=[];n.pos>>3==1?a.communityPool.push(s.DecCoin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},h);if(t.communityPool=[],void 0!==e.communityPool&&null!==e.communityPool){var n,a=r(e.communityPool);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.communityPool.push(s.DecCoin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.communityPool?t.communityPool=e.communityPool.map((function(e){return e?s.DecCoin.toJSON(e):void 0})):t.communityPool=[],t},fromPartial:function(e){var t=Object.assign({},h);if(t.communityPool=[],void 0!==e.communityPool&&null!==e.communityPool){var n,a=r(e.communityPool);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.communityPool.push(s.DecCoin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var y={title:"",description:"",recipient:""};t.CommunityPoolSpendProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.recipient&&t.uint32(26).string(e.recipient);var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.Coin.encode(i,t.uint32(34).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.amount=[];n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.recipient=n.string();break;case 4:a.amount.push(s.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);if(t.amount=[],void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.recipient&&null!==e.recipient?t.recipient=String(e.recipient):t.recipient="",void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.amount.push(s.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.recipient&&(t.recipient=e.recipient),e.amount?t.amount=e.amount.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t=Object.assign({},y);if(t.amount=[],void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.recipient&&null!==e.recipient?t.recipient=e.recipient:t.recipient="",void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.amount.push(s.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var m={previousPeriod:i.default.UZERO,stake:"",height:i.default.UZERO};t.DelegatorStartingInfo={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.previousPeriod.isZero()||t.uint32(8).uint64(e.previousPeriod),""!==e.stake&&t.uint32(18).string(e.stake),e.height.isZero()||t.uint32(24).uint64(e.height),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3){case 1:a.previousPeriod=n.uint64();break;case 2:a.stake=n.string();break;case 3:a.height=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.previousPeriod&&null!==e.previousPeriod?t.previousPeriod=i.default.fromString(e.previousPeriod):t.previousPeriod=i.default.UZERO,void 0!==e.stake&&null!==e.stake?t.stake=String(e.stake):t.stake="",void 0!==e.height&&null!==e.height?t.height=i.default.fromString(e.height):t.height=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.previousPeriod&&(t.previousPeriod=(e.previousPeriod||i.default.UZERO).toString()),void 0!==e.stake&&(t.stake=e.stake),void 0!==e.height&&(t.height=(e.height||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.previousPeriod&&null!==e.previousPeriod?t.previousPeriod=e.previousPeriod:t.previousPeriod=i.default.UZERO,void 0!==e.stake&&null!==e.stake?t.stake=e.stake:t.stake="",void 0!==e.height&&null!==e.height?t.height=e.height:t.height=i.default.UZERO,t}};var v={validatorAddress:""};t.DelegationDelegatorReward={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.validatorAddress&&t.uint32(10).string(e.validatorAddress);var n,a=r(e.reward);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.DecCoin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.reward=[];n.pos>>3){case 1:a.validatorAddress=n.string();break;case 2:a.reward.push(s.DecCoin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);if(t.reward=[],void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",void 0!==e.reward&&null!==e.reward){var n,a=r(e.reward);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.reward.push(s.DecCoin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),e.reward?t.reward=e.reward.map((function(e){return e?s.DecCoin.toJSON(e):void 0})):t.reward=[],t},fromPartial:function(e){var t=Object.assign({},v);if(t.reward=[],void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",void 0!==e.reward&&null!==e.reward){var n,a=r(e.reward);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.reward.push(s.DecCoin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var g={title:"",description:"",recipient:"",amount:"",deposit:""};t.CommunityPoolSpendProposalWithDeposit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.recipient&&t.uint32(26).string(e.recipient),""!==e.amount&&t.uint32(34).string(e.amount),""!==e.deposit&&t.uint32(42).string(e.deposit),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.recipient=n.string();break;case 4:a.amount=n.string();break;case 5:a.deposit=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},g);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.recipient&&null!==e.recipient?t.recipient=String(e.recipient):t.recipient="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",void 0!==e.deposit&&null!==e.deposit?t.deposit=String(e.deposit):t.deposit="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.recipient&&(t.recipient=e.recipient),void 0!==e.amount&&(t.amount=e.amount),void 0!==e.deposit&&(t.deposit=e.deposit),t},fromPartial:function(e){var t=Object.assign({},g);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.recipient&&null!==e.recipient?t.recipient=e.recipient:t.recipient="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",void 0!==e.deposit&&null!==e.deposit?t.deposit=e.deposit:t.deposit="",t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},44005:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(33482).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgFundCommunityPoolDesc=t.MsgWithdrawValidatorCommissionDesc=t.MsgWithdrawDelegatorRewardDesc=t.MsgSetWithdrawAddressDesc=t.MsgDesc=t.MsgClientImpl=t.MsgFundCommunityPoolResponse=t.MsgFundCommunityPool=t.MsgWithdrawValidatorCommissionResponse=t.MsgWithdrawValidatorCommission=t.MsgWithdrawDelegatorRewardResponse=t.MsgWithdrawDelegatorReward=t.MsgSetWithdrawAddressResponse=t.MsgSetWithdrawAddress=t.protobufPackage=void 0;var s=o(n(24141)),c=n(34882),u=o(n(1)),d=n(46711),f=n(2121);t.protobufPackage="cosmos.distribution.v1beta1";var l={delegatorAddress:"",withdrawAddress:""};t.MsgSetWithdrawAddress={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.withdrawAddress&&t.uint32(18).string(e.withdrawAddress),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.withdrawAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.withdrawAddress&&null!==e.withdrawAddress?t.withdrawAddress=String(e.withdrawAddress):t.withdrawAddress="",t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.withdrawAddress&&(t.withdrawAddress=e.withdrawAddress),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.withdrawAddress&&null!==e.withdrawAddress?t.withdrawAddress=e.withdrawAddress:t.withdrawAddress="",t}};var b={};t.MsgSetWithdrawAddressResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",t}};var h={};t.MsgWithdrawDelegatorRewardResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.validatorAddress&&t.uint32(10).string(e.validatorAddress),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos>>3==1?a.validatorAddress=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},y);return void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",t},toJSON:function(e){var t={};return void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",t}};var m={};t.MsgWithdrawValidatorCommissionResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create(),r=i(e.amount);try{for(r.s();!(t=r.n()).done;){var a=t.value;f.Coin.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return""!==e.depositor&&n.uint32(18).string(e.depositor),n},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.amount=[];n.pos>>3){case 1:a.amount.push(f.Coin.decode(n,n.uint32()));break;case 2:a.depositor=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(f.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.depositor&&null!==e.depositor?t.depositor=String(e.depositor):t.depositor="",t},toJSON:function(e){var t={};return e.amount?t.amount=e.amount.map((function(e){return e?f.Coin.toJSON(e):void 0})):t.amount=[],void 0!==e.depositor&&(t.depositor=e.depositor),t},fromPartial:function(e){var t=Object.assign({},v);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(f.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.depositor&&null!==e.depositor?t.depositor=e.depositor:t.depositor="",t}};var g={};t.MsgFundCommunityPoolResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.spendLimit);try{for(a.s();!(t=a.n()).done;){var i=t.value;d.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return void 0!==e.expiration&&u.Timestamp.encode(h(e.expiration),n.uint32(18).fork()).ldelim(),n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.spendLimit=[];n.pos>>3){case 1:a.spendLimit.push(d.Coin.decode(n,n.uint32()));break;case 2:a.expiration=y(u.Timestamp.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);if(t.spendLimit=[],void 0!==e.spendLimit&&null!==e.spendLimit){var n,a=r(e.spendLimit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.spendLimit.push(d.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.expiration&&null!==e.expiration?t.expiration=m(e.expiration):t.expiration=void 0,t},toJSON:function(e){var t={};return e.spendLimit?t.spendLimit=e.spendLimit.map((function(e){return e?d.Coin.toJSON(e):void 0})):t.spendLimit=[],void 0!==e.expiration&&(t.expiration=e.expiration.toISOString()),t},fromPartial:function(e){var t=Object.assign({},f);if(t.spendLimit=[],void 0!==e.spendLimit&&null!==e.spendLimit){var n,a=r(e.spendLimit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.spendLimit.push(d.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.expiration&&null!==e.expiration?t.expiration=e.expiration:t.expiration=void 0,t}};var l={};t.PeriodicAllowance={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.basic&&t.BasicAllowance.encode(e.basic,n.uint32(10).fork()).ldelim(),void 0!==e.period&&s.Duration.encode(e.period,n.uint32(18).fork()).ldelim();var a,i=r(e.periodSpendLimit);try{for(i.s();!(a=i.n()).done;){var c=a.value;d.Coin.encode(c,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}var f,l=r(e.periodCanSpend);try{for(l.s();!(f=l.n()).done;){var b=f.value;d.Coin.encode(b,n.uint32(34).fork()).ldelim()}}catch(e){l.e(e)}finally{l.f()}return void 0!==e.periodReset&&u.Timestamp.encode(h(e.periodReset),n.uint32(42).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},l);for(i.periodSpendLimit=[],i.periodCanSpend=[];r.pos>>3){case 1:i.basic=t.BasicAllowance.decode(r,r.uint32());break;case 2:i.period=s.Duration.decode(r,r.uint32());break;case 3:i.periodSpendLimit.push(d.Coin.decode(r,r.uint32()));break;case 4:i.periodCanSpend.push(d.Coin.decode(r,r.uint32()));break;case 5:i.periodReset=y(u.Timestamp.decode(r,r.uint32()));break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},l);if(n.periodSpendLimit=[],n.periodCanSpend=[],void 0!==e.basic&&null!==e.basic?n.basic=t.BasicAllowance.fromJSON(e.basic):n.basic=void 0,void 0!==e.period&&null!==e.period?n.period=s.Duration.fromJSON(e.period):n.period=void 0,void 0!==e.periodSpendLimit&&null!==e.periodSpendLimit){var a,i=r(e.periodSpendLimit);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.periodSpendLimit.push(d.Coin.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}if(void 0!==e.periodCanSpend&&null!==e.periodCanSpend){var c,u=r(e.periodCanSpend);try{for(u.s();!(c=u.n()).done;){var f=c.value;n.periodCanSpend.push(d.Coin.fromJSON(f))}}catch(e){u.e(e)}finally{u.f()}}return void 0!==e.periodReset&&null!==e.periodReset?n.periodReset=m(e.periodReset):n.periodReset=void 0,n},toJSON:function(e){var n={};return void 0!==e.basic&&(n.basic=e.basic?t.BasicAllowance.toJSON(e.basic):void 0),void 0!==e.period&&(n.period=e.period?s.Duration.toJSON(e.period):void 0),e.periodSpendLimit?n.periodSpendLimit=e.periodSpendLimit.map((function(e){return e?d.Coin.toJSON(e):void 0})):n.periodSpendLimit=[],e.periodCanSpend?n.periodCanSpend=e.periodCanSpend.map((function(e){return e?d.Coin.toJSON(e):void 0})):n.periodCanSpend=[],void 0!==e.periodReset&&(n.periodReset=e.periodReset.toISOString()),n},fromPartial:function(e){var n=Object.assign({},l);if(n.periodSpendLimit=[],n.periodCanSpend=[],void 0!==e.basic&&null!==e.basic?n.basic=t.BasicAllowance.fromPartial(e.basic):n.basic=void 0,void 0!==e.period&&null!==e.period?n.period=s.Duration.fromPartial(e.period):n.period=void 0,void 0!==e.periodSpendLimit&&null!==e.periodSpendLimit){var a,i=r(e.periodSpendLimit);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.periodSpendLimit.push(d.Coin.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}if(void 0!==e.periodCanSpend&&null!==e.periodCanSpend){var c,u=r(e.periodCanSpend);try{for(u.s();!(c=u.n()).done;){var f=c.value;n.periodCanSpend.push(d.Coin.fromPartial(f))}}catch(e){u.e(e)}finally{u.f()}}return void 0!==e.periodReset&&null!==e.periodReset?n.periodReset=e.periodReset:n.periodReset=void 0,n}};var b={allowedMessages:""};t.AllowedMsgAllowance={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.allowance&&c.Any.encode(e.allowance,t.uint32(10).fork()).ldelim();var n,a=r(e.allowedMessages);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(18).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.allowedMessages=[];n.pos>>3){case 1:a.allowance=c.Any.decode(n,n.uint32());break;case 2:a.allowedMessages.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);if(t.allowedMessages=[],void 0!==e.allowance&&null!==e.allowance?t.allowance=c.Any.fromJSON(e.allowance):t.allowance=void 0,void 0!==e.allowedMessages&&null!==e.allowedMessages){var n,a=r(e.allowedMessages);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.allowedMessages.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.allowance&&(t.allowance=e.allowance?c.Any.toJSON(e.allowance):void 0),e.allowedMessages?t.allowedMessages=e.allowedMessages.map((function(e){return e})):t.allowedMessages=[],t},fromPartial:function(e){var t=Object.assign({},b);if(t.allowedMessages=[],void 0!==e.allowance&&null!==e.allowance?t.allowance=c.Any.fromPartial(e.allowance):t.allowance=void 0,void 0!==e.allowedMessages&&null!==e.allowedMessages){var n,a=r(e.allowedMessages);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.allowedMessages.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var p={granter:"",grantee:""};function h(e){var t;return{seconds:(t=e.getTime()/1e3,i.default.fromNumber(t)),nanos:e.getTime()%1e3*1e6}}function y(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}function m(e){return e instanceof Date?e:"string"==typeof e?new Date(e):y(u.Timestamp.fromJSON(e))}t.Grant={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),void 0!==e.allowance&&c.Any.encode(e.allowance,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.granter=n.string();break;case 2:a.grantee=n.string();break;case 3:a.allowance=c.Any.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=String(e.grantee):t.grantee="",void 0!==e.allowance&&null!==e.allowance?t.allowance=c.Any.fromJSON(e.allowance):t.allowance=void 0,t},toJSON:function(e){var t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.allowance&&(t.allowance=e.allowance?c.Any.toJSON(e.allowance):void 0),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=e.grantee:t.grantee="",void 0!==e.allowance&&null!==e.allowance?t.allowance=c.Any.fromPartial(e.allowance):t.allowance=void 0,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},37410:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgRevokeAllowanceDesc=t.MsgGrantAllowanceDesc=t.MsgDesc=t.MsgClientImpl=t.MsgRevokeAllowanceResponse=t.MsgRevokeAllowance=t.MsgGrantAllowanceResponse=t.MsgGrantAllowance=t.protobufPackage=void 0;var o=i(n(24141)),s=n(34882),c=i(n(1)),u=n(58682),d=n(46711);t.protobufPackage="cosmos.feegrant.v1beta1";var f={granter:"",grantee:""};t.MsgGrantAllowance={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),void 0!==e.allowance&&u.Any.encode(e.allowance,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.granter=n.string();break;case 2:a.grantee=n.string();break;case 3:a.allowance=u.Any.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=String(e.grantee):t.grantee="",void 0!==e.allowance&&null!==e.allowance?t.allowance=u.Any.fromJSON(e.allowance):t.allowance=void 0,t},toJSON:function(e){var t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),void 0!==e.allowance&&(t.allowance=e.allowance?u.Any.toJSON(e.allowance):void 0),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=e.grantee:t.grantee="",void 0!==e.allowance&&null!==e.allowance?t.allowance=u.Any.fromPartial(e.allowance):t.allowance=void 0,t}};var l={};t.MsgGrantAllowanceResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.granter&&t.uint32(10).string(e.granter),""!==e.grantee&&t.uint32(18).string(e.grantee),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.granter=n.string();break;case 2:a.grantee=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=String(e.grantee):t.grantee="",t},toJSON:function(e){var t={};return void 0!==e.granter&&(t.granter=e.granter),void 0!==e.grantee&&(t.grantee=e.grantee),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",void 0!==e.grantee&&null!==e.grantee?t.grantee=e.grantee:t.grantee="",t}};var p={};t.MsgRevokeAllowanceResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.option&&t.uint32(8).int32(e.option),""!==e.weight&&t.uint32(18).string(e.weight),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3){case 1:a.option=n.int32();break;case 2:a.weight=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.option&&null!==e.option?t.option=b(e.option):t.option=0,void 0!==e.weight&&null!==e.weight?t.weight=String(e.weight):t.weight="",t},toJSON:function(e){var t={};return void 0!==e.option&&(t.option=p(e.option)),void 0!==e.weight&&(t.weight=e.weight),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.option&&null!==e.option?t.option=e.option:t.option=0,void 0!==e.weight&&null!==e.weight?t.weight=e.weight:t.weight="",t}};var v={title:"",description:""};t.TextProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",t}};var g={proposalId:s.default.UZERO,depositor:""};t.Deposit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.proposalId.isZero()||t.uint32(8).uint64(e.proposalId),""!==e.depositor&&t.uint32(18).string(e.depositor);var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;l.Coin.encode(i,t.uint32(26).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);for(a.amount=[];n.pos>>3){case 1:a.proposalId=n.uint64();break;case 2:a.depositor=n.string();break;case 3:a.amount.push(l.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},g);if(t.amount=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=s.default.fromString(e.proposalId):t.proposalId=s.default.UZERO,void 0!==e.depositor&&null!==e.depositor?t.depositor=String(e.depositor):t.depositor="",void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.amount.push(l.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.depositor&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map((function(e){return e?l.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t=Object.assign({},g);if(t.amount=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=e.proposalId:t.proposalId=s.default.UZERO,void 0!==e.depositor&&null!==e.depositor?t.depositor=e.depositor:t.depositor="",void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.amount.push(l.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var A={proposalId:s.default.UZERO,status:0};t.Proposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.proposalId.isZero()||n.uint32(8).uint64(e.proposalId),void 0!==e.content&&u.Any.encode(e.content,n.uint32(18).fork()).ldelim(),0!==e.status&&n.uint32(24).int32(e.status),void 0!==e.finalTallyResult&&t.TallyResult.encode(e.finalTallyResult,n.uint32(34).fork()).ldelim(),void 0!==e.submitTime&&f.Timestamp.encode(P(e.submitTime),n.uint32(42).fork()).ldelim(),void 0!==e.depositEndTime&&f.Timestamp.encode(P(e.depositEndTime),n.uint32(50).fork()).ldelim();var a,i=r(e.totalDeposit);try{for(i.s();!(a=i.n()).done;){var o=a.value;l.Coin.encode(o,n.uint32(58).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return void 0!==e.votingStartTime&&f.Timestamp.encode(P(e.votingStartTime),n.uint32(66).fork()).ldelim(),void 0!==e.votingEndTime&&f.Timestamp.encode(P(e.votingEndTime),n.uint32(74).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},A);for(i.totalDeposit=[];r.pos>>3){case 1:i.proposalId=r.uint64();break;case 2:i.content=u.Any.decode(r,r.uint32());break;case 3:i.status=r.int32();break;case 4:i.finalTallyResult=t.TallyResult.decode(r,r.uint32());break;case 5:i.submitTime=M(f.Timestamp.decode(r,r.uint32()));break;case 6:i.depositEndTime=M(f.Timestamp.decode(r,r.uint32()));break;case 7:i.totalDeposit.push(l.Coin.decode(r,r.uint32()));break;case 8:i.votingStartTime=M(f.Timestamp.decode(r,r.uint32()));break;case 9:i.votingEndTime=M(f.Timestamp.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},A);if(n.totalDeposit=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=s.default.fromString(e.proposalId):n.proposalId=s.default.UZERO,void 0!==e.content&&null!==e.content?n.content=u.Any.fromJSON(e.content):n.content=void 0,void 0!==e.status&&null!==e.status?n.status=h(e.status):n.status=0,void 0!==e.finalTallyResult&&null!==e.finalTallyResult?n.finalTallyResult=t.TallyResult.fromJSON(e.finalTallyResult):n.finalTallyResult=void 0,void 0!==e.submitTime&&null!==e.submitTime?n.submitTime=B(e.submitTime):n.submitTime=void 0,void 0!==e.depositEndTime&&null!==e.depositEndTime?n.depositEndTime=B(e.depositEndTime):n.depositEndTime=void 0,void 0!==e.totalDeposit&&null!==e.totalDeposit){var a,i=r(e.totalDeposit);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.totalDeposit.push(l.Coin.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.votingStartTime&&null!==e.votingStartTime?n.votingStartTime=B(e.votingStartTime):n.votingStartTime=void 0,void 0!==e.votingEndTime&&null!==e.votingEndTime?n.votingEndTime=B(e.votingEndTime):n.votingEndTime=void 0,n},toJSON:function(e){var n={};return void 0!==e.proposalId&&(n.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.content&&(n.content=e.content?u.Any.toJSON(e.content):void 0),void 0!==e.status&&(n.status=y(e.status)),void 0!==e.finalTallyResult&&(n.finalTallyResult=e.finalTallyResult?t.TallyResult.toJSON(e.finalTallyResult):void 0),void 0!==e.submitTime&&(n.submitTime=e.submitTime.toISOString()),void 0!==e.depositEndTime&&(n.depositEndTime=e.depositEndTime.toISOString()),e.totalDeposit?n.totalDeposit=e.totalDeposit.map((function(e){return e?l.Coin.toJSON(e):void 0})):n.totalDeposit=[],void 0!==e.votingStartTime&&(n.votingStartTime=e.votingStartTime.toISOString()),void 0!==e.votingEndTime&&(n.votingEndTime=e.votingEndTime.toISOString()),n},fromPartial:function(e){var n=Object.assign({},A);if(n.totalDeposit=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=e.proposalId:n.proposalId=s.default.UZERO,void 0!==e.content&&null!==e.content?n.content=u.Any.fromPartial(e.content):n.content=void 0,void 0!==e.status&&null!==e.status?n.status=e.status:n.status=0,void 0!==e.finalTallyResult&&null!==e.finalTallyResult?n.finalTallyResult=t.TallyResult.fromPartial(e.finalTallyResult):n.finalTallyResult=void 0,void 0!==e.submitTime&&null!==e.submitTime?n.submitTime=e.submitTime:n.submitTime=void 0,void 0!==e.depositEndTime&&null!==e.depositEndTime?n.depositEndTime=e.depositEndTime:n.depositEndTime=void 0,void 0!==e.totalDeposit&&null!==e.totalDeposit){var a,i=r(e.totalDeposit);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.totalDeposit.push(l.Coin.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.votingStartTime&&null!==e.votingStartTime?n.votingStartTime=e.votingStartTime:n.votingStartTime=void 0,void 0!==e.votingEndTime&&null!==e.votingEndTime?n.votingEndTime=e.votingEndTime:n.votingEndTime=void 0,n}};var w={yes:"",abstain:"",no:"",noWithVeto:""};t.TallyResult={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.yes&&t.uint32(10).string(e.yes),""!==e.abstain&&t.uint32(18).string(e.abstain),""!==e.no&&t.uint32(26).string(e.no),""!==e.noWithVeto&&t.uint32(34).string(e.noWithVeto),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos>>3){case 1:a.yes=n.string();break;case 2:a.abstain=n.string();break;case 3:a.no=n.string();break;case 4:a.noWithVeto=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},w);return void 0!==e.yes&&null!==e.yes?t.yes=String(e.yes):t.yes="",void 0!==e.abstain&&null!==e.abstain?t.abstain=String(e.abstain):t.abstain="",void 0!==e.no&&null!==e.no?t.no=String(e.no):t.no="",void 0!==e.noWithVeto&&null!==e.noWithVeto?t.noWithVeto=String(e.noWithVeto):t.noWithVeto="",t},toJSON:function(e){var t={};return void 0!==e.yes&&(t.yes=e.yes),void 0!==e.abstain&&(t.abstain=e.abstain),void 0!==e.no&&(t.no=e.no),void 0!==e.noWithVeto&&(t.noWithVeto=e.noWithVeto),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.yes&&null!==e.yes?t.yes=e.yes:t.yes="",void 0!==e.abstain&&null!==e.abstain?t.abstain=e.abstain:t.abstain="",void 0!==e.no&&null!==e.no?t.no=e.no:t.no="",void 0!==e.noWithVeto&&null!==e.noWithVeto?t.noWithVeto=e.noWithVeto:t.noWithVeto="",t}};var x={proposalId:s.default.UZERO,voter:"",option:0};t.Vote={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.proposalId.isZero()||n.uint32(8).uint64(e.proposalId),""!==e.voter&&n.uint32(18).string(e.voter),0!==e.option&&n.uint32(24).int32(e.option);var a,i=r(e.options);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.WeightedVoteOption.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},x);for(i.options=[];r.pos>>3){case 1:i.proposalId=r.uint64();break;case 2:i.voter=r.string();break;case 3:i.option=r.int32();break;case 4:i.options.push(t.WeightedVoteOption.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},x);if(n.options=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=s.default.fromString(e.proposalId):n.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?n.voter=String(e.voter):n.voter="",void 0!==e.option&&null!==e.option?n.option=b(e.option):n.option=0,void 0!==e.options&&null!==e.options){var a,i=r(e.options);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.options.push(t.WeightedVoteOption.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.proposalId&&(n.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.voter&&(n.voter=e.voter),void 0!==e.option&&(n.option=p(e.option)),e.options?n.options=e.options.map((function(e){return e?t.WeightedVoteOption.toJSON(e):void 0})):n.options=[],n},fromPartial:function(e){var n=Object.assign({},x);if(n.options=[],void 0!==e.proposalId&&null!==e.proposalId?n.proposalId=e.proposalId:n.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?n.voter=e.voter:n.voter="",void 0!==e.option&&null!==e.option?n.option=e.option:n.option=0,void 0!==e.options&&null!==e.options){var a,i=r(e.options);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.options.push(t.WeightedVoteOption.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var _={};t.DepositParams={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create(),a=r(e.minDeposit);try{for(a.s();!(t=a.n()).done;){var i=t.value;l.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return void 0!==e.maxDepositPeriod&&d.Duration.encode(e.maxDepositPeriod,n.uint32(18).fork()).ldelim(),n},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);for(a.minDeposit=[];n.pos>>3){case 1:a.minDeposit.push(l.Coin.decode(n,n.uint32()));break;case 2:a.maxDepositPeriod=d.Duration.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},_);if(t.minDeposit=[],void 0!==e.minDeposit&&null!==e.minDeposit){var n,a=r(e.minDeposit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.minDeposit.push(l.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.maxDepositPeriod&&null!==e.maxDepositPeriod?t.maxDepositPeriod=d.Duration.fromJSON(e.maxDepositPeriod):t.maxDepositPeriod=void 0,t},toJSON:function(e){var t={};return e.minDeposit?t.minDeposit=e.minDeposit.map((function(e){return e?l.Coin.toJSON(e):void 0})):t.minDeposit=[],void 0!==e.maxDepositPeriod&&(t.maxDepositPeriod=e.maxDepositPeriod?d.Duration.toJSON(e.maxDepositPeriod):void 0),t},fromPartial:function(e){var t=Object.assign({},_);if(t.minDeposit=[],void 0!==e.minDeposit&&null!==e.minDeposit){var n,a=r(e.minDeposit);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.minDeposit.push(l.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.maxDepositPeriod&&null!==e.maxDepositPeriod?t.maxDepositPeriod=d.Duration.fromPartial(e.maxDepositPeriod):t.maxDepositPeriod=void 0,t}};var k={};t.VotingParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.votingPeriod&&d.Duration.encode(e.votingPeriod,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);n.pos>>3==1?a.votingPeriod=d.Duration.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},k);return void 0!==e.votingPeriod&&null!==e.votingPeriod?t.votingPeriod=d.Duration.fromJSON(e.votingPeriod):t.votingPeriod=void 0,t},toJSON:function(e){var t={};return void 0!==e.votingPeriod&&(t.votingPeriod=e.votingPeriod?d.Duration.toJSON(e.votingPeriod):void 0),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.votingPeriod&&null!==e.votingPeriod?t.votingPeriod=d.Duration.fromPartial(e.votingPeriod):t.votingPeriod=void 0,t}};var I={};t.TallyParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.quorum.length&&t.uint32(10).bytes(e.quorum),0!==e.threshold.length&&t.uint32(18).bytes(e.threshold),0!==e.vetoThreshold.length&&t.uint32(26).bytes(e.vetoThreshold),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},I);for(a.quorum=new Uint8Array,a.threshold=new Uint8Array,a.vetoThreshold=new Uint8Array;n.pos>>3){case 1:a.quorum=n.bytes();break;case 2:a.threshold=n.bytes();break;case 3:a.vetoThreshold=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},I);return t.quorum=new Uint8Array,t.threshold=new Uint8Array,t.vetoThreshold=new Uint8Array,void 0!==e.quorum&&null!==e.quorum&&(t.quorum=C(e.quorum)),void 0!==e.threshold&&null!==e.threshold&&(t.threshold=C(e.threshold)),void 0!==e.vetoThreshold&&null!==e.vetoThreshold&&(t.vetoThreshold=C(e.vetoThreshold)),t},toJSON:function(e){var t={};return void 0!==e.quorum&&(t.quorum=O(void 0!==e.quorum?e.quorum:new Uint8Array)),void 0!==e.threshold&&(t.threshold=O(void 0!==e.threshold?e.threshold:new Uint8Array)),void 0!==e.vetoThreshold&&(t.vetoThreshold=O(void 0!==e.vetoThreshold?e.vetoThreshold:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},I);return void 0!==e.quorum&&null!==e.quorum?t.quorum=e.quorum:t.quorum=new Uint8Array,void 0!==e.threshold&&null!==e.threshold?t.threshold=e.threshold:t.threshold=new Uint8Array,void 0!==e.vetoThreshold&&null!==e.vetoThreshold?t.vetoThreshold=e.vetoThreshold:t.vetoThreshold=new Uint8Array,t}};var S=function(){if(void 0!==S)return S;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),E=S.atob||function(e){return S.Buffer.from(e,"base64").toString("binary")};function C(e){for(var t=E(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();void 0!==e.content&&d.Any.encode(e.content,t.uint32(10).fork()).ldelim();var n,r=i(e.initialDeposit);try{for(r.s();!(n=r.n()).done;){var a=n.value;b.Coin.encode(a,t.uint32(18).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return""!==e.proposer&&t.uint32(26).string(e.proposer),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.initialDeposit=[];n.pos>>3){case 1:a.content=d.Any.decode(n,n.uint32());break;case 2:a.initialDeposit.push(b.Coin.decode(n,n.uint32()));break;case 3:a.proposer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);if(t.initialDeposit=[],void 0!==e.content&&null!==e.content?t.content=d.Any.fromJSON(e.content):t.content=void 0,void 0!==e.initialDeposit&&null!==e.initialDeposit){var n,r=i(e.initialDeposit);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.initialDeposit.push(b.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.proposer&&null!==e.proposer?t.proposer=String(e.proposer):t.proposer="",t},toJSON:function(e){var t={};return void 0!==e.content&&(t.content=e.content?d.Any.toJSON(e.content):void 0),e.initialDeposit?t.initialDeposit=e.initialDeposit.map((function(e){return e?b.Coin.toJSON(e):void 0})):t.initialDeposit=[],void 0!==e.proposer&&(t.proposer=e.proposer),t},fromPartial:function(e){var t=Object.assign({},p);if(t.initialDeposit=[],void 0!==e.content&&null!==e.content?t.content=d.Any.fromPartial(e.content):t.content=void 0,void 0!==e.initialDeposit&&null!==e.initialDeposit){var n,r=i(e.initialDeposit);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.initialDeposit.push(b.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.proposer&&null!==e.proposer?t.proposer=e.proposer:t.proposer="",t}};var h={proposalId:s.default.UZERO};t.MsgSubmitProposalResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return e.proposalId.isZero()||t.uint32(8).uint64(e.proposalId),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos>>3==1?a.proposalId=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},h);return void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=s.default.fromString(e.proposalId):t.proposalId=s.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||s.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},h);return void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=e.proposalId:t.proposalId=s.default.UZERO,t}};var y={proposalId:s.default.UZERO,voter:"",option:0};t.MsgVote={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return e.proposalId.isZero()||t.uint32(8).uint64(e.proposalId),""!==e.voter&&t.uint32(18).string(e.voter),0!==e.option&&t.uint32(24).int32(e.option),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos>>3){case 1:a.proposalId=n.uint64();break;case 2:a.voter=n.string();break;case 3:a.option=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=s.default.fromString(e.proposalId):t.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?t.voter=String(e.voter):t.voter="",void 0!==e.option&&null!==e.option?t.option=f.voteOptionFromJSON(e.option):t.option=0,t},toJSON:function(e){var t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.voter&&(t.voter=e.voter),void 0!==e.option&&(t.option=f.voteOptionToJSON(e.option)),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=e.proposalId:t.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?t.voter=e.voter:t.voter="",void 0!==e.option&&null!==e.option?t.option=e.option:t.option=0,t}};var m={};t.MsgVoteResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();e.proposalId.isZero()||t.uint32(8).uint64(e.proposalId),""!==e.voter&&t.uint32(18).string(e.voter);var n,r=i(e.options);try{for(r.s();!(n=r.n()).done;){var a=n.value;f.WeightedVoteOption.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.options=[];n.pos>>3){case 1:a.proposalId=n.uint64();break;case 2:a.voter=n.string();break;case 3:a.options.push(f.WeightedVoteOption.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);if(t.options=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=s.default.fromString(e.proposalId):t.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?t.voter=String(e.voter):t.voter="",void 0!==e.options&&null!==e.options){var n,r=i(e.options);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.options.push(f.WeightedVoteOption.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.voter&&(t.voter=e.voter),e.options?t.options=e.options.map((function(e){return e?f.WeightedVoteOption.toJSON(e):void 0})):t.options=[],t},fromPartial:function(e){var t=Object.assign({},v);if(t.options=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=e.proposalId:t.proposalId=s.default.UZERO,void 0!==e.voter&&null!==e.voter?t.voter=e.voter:t.voter="",void 0!==e.options&&null!==e.options){var n,r=i(e.options);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.options.push(f.WeightedVoteOption.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var g={};t.MsgVoteWeightedResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();e.proposalId.isZero()||t.uint32(8).uint64(e.proposalId),""!==e.depositor&&t.uint32(18).string(e.depositor);var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;b.Coin.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.amount=[];n.pos>>3){case 1:a.proposalId=n.uint64();break;case 2:a.depositor=n.string();break;case 3:a.amount.push(b.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);if(t.amount=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=s.default.fromString(e.proposalId):t.proposalId=s.default.UZERO,void 0!==e.depositor&&null!==e.depositor?t.depositor=String(e.depositor):t.depositor="",void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(b.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.proposalId&&(t.proposalId=(e.proposalId||s.default.UZERO).toString()),void 0!==e.depositor&&(t.depositor=e.depositor),e.amount?t.amount=e.amount.map((function(e){return e?b.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t=Object.assign({},A);if(t.amount=[],void 0!==e.proposalId&&null!==e.proposalId?t.proposalId=e.proposalId:t.proposalId=s.default.UZERO,void 0!==e.depositor&&null!==e.depositor?t.depositor=e.depositor:t.depositor="",void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(b.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var w={};t.MsgDepositResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&n.uint32(10).string(e.title),""!==e.description&&n.uint32(18).string(e.description);var a,i=r(e.changes);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.ParamChange.encode(s,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},s);for(i.changes=[];r.pos>>3){case 1:i.title=r.string();break;case 2:i.description=r.string();break;case 3:i.changes.push(t.ParamChange.decode(r,r.uint32()));break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},s);if(n.changes=[],void 0!==e.title&&null!==e.title?n.title=String(e.title):n.title="",void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.changes&&null!==e.changes){var a,i=r(e.changes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.changes.push(t.ParamChange.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.description&&(n.description=e.description),e.changes?n.changes=e.changes.map((function(e){return e?t.ParamChange.toJSON(e):void 0})):n.changes=[],n},fromPartial:function(e){var n=Object.assign({},s);if(n.changes=[],void 0!==e.title&&null!==e.title?n.title=e.title:n.title="",void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.changes&&null!==e.changes){var a,i=r(e.changes);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.changes.push(t.ParamChange.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var c={subspace:"",key:"",value:""};t.ParamChange={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.subspace&&t.uint32(10).string(e.subspace),""!==e.key&&t.uint32(18).string(e.key),""!==e.value&&t.uint32(26).string(e.value),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.subspace=n.string();break;case 2:a.key=n.string();break;case 3:a.value=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.subspace&&null!==e.subspace?t.subspace=String(e.subspace):t.subspace="",void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON:function(e){var t={};return void 0!==e.subspace&&(t.subspace=e.subspace),void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.subspace&&null!==e.subspace?t.subspace=e.subspace:t.subspace="",void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},41591:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgUnjailDesc=t.MsgDesc=t.MsgClientImpl=t.MsgUnjailResponse=t.MsgUnjail=t.protobufPackage=void 0;var o=i(n(24141)),s=n(34882),c=i(n(1)),u=n(46711);t.protobufPackage="cosmos.slashing.v1beta1";var d={validatorAddr:""};t.MsgUnjail={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.validatorAddr&&t.uint32(10).string(e.validatorAddr),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3==1?a.validatorAddr=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.validatorAddr&&null!==e.validatorAddr?t.validatorAddr=String(e.validatorAddr):t.validatorAddr="",t},toJSON:function(e){var t={};return void 0!==e.validatorAddr&&(t.validatorAddr=e.validatorAddr),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.validatorAddr&&null!==e.validatorAddr?t.validatorAddr=e.validatorAddr:t.validatorAddr="",t}};var f={};t.MsgUnjailResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.maxTokens&&c.Coin.encode(e.maxTokens,n.uint32(10).fork()).ldelim(),void 0!==e.allowList&&t.StakeAuthorization_Validators.encode(e.allowList,n.uint32(18).fork()).ldelim(),void 0!==e.denyList&&t.StakeAuthorization_Validators.encode(e.denyList,n.uint32(26).fork()).ldelim(),0!==e.authorizationType&&n.uint32(32).int32(e.authorizationType),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);r.pos>>3){case 1:i.maxTokens=c.Coin.decode(r,r.uint32());break;case 2:i.allowList=t.StakeAuthorization_Validators.decode(r,r.uint32());break;case 3:i.denyList=t.StakeAuthorization_Validators.decode(r,r.uint32());break;case 4:i.authorizationType=r.int32();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},f);return void 0!==e.maxTokens&&null!==e.maxTokens?n.maxTokens=c.Coin.fromJSON(e.maxTokens):n.maxTokens=void 0,void 0!==e.allowList&&null!==e.allowList?n.allowList=t.StakeAuthorization_Validators.fromJSON(e.allowList):n.allowList=void 0,void 0!==e.denyList&&null!==e.denyList?n.denyList=t.StakeAuthorization_Validators.fromJSON(e.denyList):n.denyList=void 0,void 0!==e.authorizationType&&null!==e.authorizationType?n.authorizationType=u(e.authorizationType):n.authorizationType=0,n},toJSON:function(e){var n={};return void 0!==e.maxTokens&&(n.maxTokens=e.maxTokens?c.Coin.toJSON(e.maxTokens):void 0),void 0!==e.allowList&&(n.allowList=e.allowList?t.StakeAuthorization_Validators.toJSON(e.allowList):void 0),void 0!==e.denyList&&(n.denyList=e.denyList?t.StakeAuthorization_Validators.toJSON(e.denyList):void 0),void 0!==e.authorizationType&&(n.authorizationType=d(e.authorizationType)),n},fromPartial:function(e){var n=Object.assign({},f);return void 0!==e.maxTokens&&null!==e.maxTokens?n.maxTokens=c.Coin.fromPartial(e.maxTokens):n.maxTokens=void 0,void 0!==e.allowList&&null!==e.allowList?n.allowList=t.StakeAuthorization_Validators.fromPartial(e.allowList):n.allowList=void 0,void 0!==e.denyList&&null!==e.denyList?n.denyList=t.StakeAuthorization_Validators.fromPartial(e.denyList):n.denyList=void 0,void 0!==e.authorizationType&&null!==e.authorizationType?n.authorizationType=e.authorizationType:n.authorizationType=0,n}};var l={address:""};t.StakeAuthorization_Validators={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create(),a=r(e.address);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.address=[];n.pos>>3==1?a.address.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.address=[],void 0!==e.address&&null!==e.address){var n,a=r(e.address);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.address.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.address?t.address=e.address.map((function(e){return e})):t.address=[],t},fromPartial:function(e){var t=Object.assign({},l);if(t.address=[],void 0!==e.address&&null!==e.address){var n,a=r(e.address);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.address.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}},s.default.util.Long!==o.default&&(s.default.util.Long=o.default,s.default.configure())},1511:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Pool=t.RedelegationResponse=t.RedelegationEntryResponse=t.DelegationResponse=t.Params=t.Redelegation=t.RedelegationEntry=t.UnbondingDelegationEntry=t.UnbondingDelegation=t.Delegation=t.DVVTriplets=t.DVVTriplet=t.DVPairs=t.DVPair=t.ValAddresses=t.Validator=t.Description=t.Commission=t.CommissionRates=t.HistoricalInfo=t.bondStatusToJSON=t.bondStatusFromJSON=t.BondStatus=t.protobufPackage=void 0;var i,o=a(n(24141)),s=a(n(1)),c=n(49203),u=n(58682),d=n(16385),f=n(2121),l=n(37814);function b(e){switch(e){case 0:case"BOND_STATUS_UNSPECIFIED":return i.BOND_STATUS_UNSPECIFIED;case 1:case"BOND_STATUS_UNBONDED":return i.BOND_STATUS_UNBONDED;case 2:case"BOND_STATUS_UNBONDING":return i.BOND_STATUS_UNBONDING;case 3:case"BOND_STATUS_BONDED":return i.BOND_STATUS_BONDED;default:return i.UNRECOGNIZED}}function p(e){switch(e){case i.BOND_STATUS_UNSPECIFIED:return"BOND_STATUS_UNSPECIFIED";case i.BOND_STATUS_UNBONDED:return"BOND_STATUS_UNBONDED";case i.BOND_STATUS_UNBONDING:return"BOND_STATUS_UNBONDING";case i.BOND_STATUS_BONDED:return"BOND_STATUS_BONDED";default:return"UNKNOWN"}}t.protobufPackage="cosmos.staking.v1beta1",function(e){e[e.BOND_STATUS_UNSPECIFIED=0]="BOND_STATUS_UNSPECIFIED",e[e.BOND_STATUS_UNBONDED=1]="BOND_STATUS_UNBONDED",e[e.BOND_STATUS_UNBONDING=2]="BOND_STATUS_UNBONDING",e[e.BOND_STATUS_BONDED=3]="BOND_STATUS_BONDED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=t.BondStatus||(t.BondStatus={})),t.bondStatusFromJSON=b,t.bondStatusToJSON=p;var h={};t.HistoricalInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();void 0!==e.header&&c.Header.encode(e.header,n.uint32(10).fork()).ldelim();var a,i=r(e.valset);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.Validator.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},h);for(i.valset=[];r.pos>>3){case 1:i.header=c.Header.decode(r,r.uint32());break;case 2:i.valset.push(t.Validator.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},h);if(n.valset=[],void 0!==e.header&&null!==e.header?n.header=c.Header.fromJSON(e.header):n.header=void 0,void 0!==e.valset&&null!==e.valset){var a,i=r(e.valset);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.valset.push(t.Validator.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.header&&(n.header=e.header?c.Header.toJSON(e.header):void 0),e.valset?n.valset=e.valset.map((function(e){return e?t.Validator.toJSON(e):void 0})):n.valset=[],n},fromPartial:function(e){var n=Object.assign({},h);if(n.valset=[],void 0!==e.header&&null!==e.header?n.header=c.Header.fromPartial(e.header):n.header=void 0,void 0!==e.valset&&null!==e.valset){var a,i=r(e.valset);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.valset.push(t.Validator.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var y={rate:"",maxRate:"",maxChangeRate:""};t.CommissionRates={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.rate&&t.uint32(10).string(e.rate),""!==e.maxRate&&t.uint32(18).string(e.maxRate),""!==e.maxChangeRate&&t.uint32(26).string(e.maxChangeRate),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos>>3){case 1:a.rate=n.string();break;case 2:a.maxRate=n.string();break;case 3:a.maxChangeRate=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return void 0!==e.rate&&null!==e.rate?t.rate=String(e.rate):t.rate="",void 0!==e.maxRate&&null!==e.maxRate?t.maxRate=String(e.maxRate):t.maxRate="",void 0!==e.maxChangeRate&&null!==e.maxChangeRate?t.maxChangeRate=String(e.maxChangeRate):t.maxChangeRate="",t},toJSON:function(e){var t={};return void 0!==e.rate&&(t.rate=e.rate),void 0!==e.maxRate&&(t.maxRate=e.maxRate),void 0!==e.maxChangeRate&&(t.maxChangeRate=e.maxChangeRate),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.rate&&null!==e.rate?t.rate=e.rate:t.rate="",void 0!==e.maxRate&&null!==e.maxRate?t.maxRate=e.maxRate:t.maxRate="",void 0!==e.maxChangeRate&&null!==e.maxChangeRate?t.maxChangeRate=e.maxChangeRate:t.maxChangeRate="",t}};var m={};t.Commission={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.commissionRates&&t.CommissionRates.encode(e.commissionRates,n.uint32(10).fork()).ldelim(),void 0!==e.updateTime&&l.Timestamp.encode(R(e.updateTime),n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},m);r.pos>>3){case 1:i.commissionRates=t.CommissionRates.decode(r,r.uint32());break;case 2:i.updateTime=D(l.Timestamp.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},m);return void 0!==e.commissionRates&&null!==e.commissionRates?n.commissionRates=t.CommissionRates.fromJSON(e.commissionRates):n.commissionRates=void 0,void 0!==e.updateTime&&null!==e.updateTime?n.updateTime=j(e.updateTime):n.updateTime=void 0,n},toJSON:function(e){var n={};return void 0!==e.commissionRates&&(n.commissionRates=e.commissionRates?t.CommissionRates.toJSON(e.commissionRates):void 0),void 0!==e.updateTime&&(n.updateTime=e.updateTime.toISOString()),n},fromPartial:function(e){var n=Object.assign({},m);return void 0!==e.commissionRates&&null!==e.commissionRates?n.commissionRates=t.CommissionRates.fromPartial(e.commissionRates):n.commissionRates=void 0,void 0!==e.updateTime&&null!==e.updateTime?n.updateTime=e.updateTime:n.updateTime=void 0,n}};var v={moniker:"",identity:"",website:"",securityContact:"",details:""};t.Description={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.moniker&&t.uint32(10).string(e.moniker),""!==e.identity&&t.uint32(18).string(e.identity),""!==e.website&&t.uint32(26).string(e.website),""!==e.securityContact&&t.uint32(34).string(e.securityContact),""!==e.details&&t.uint32(42).string(e.details),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3){case 1:a.moniker=n.string();break;case 2:a.identity=n.string();break;case 3:a.website=n.string();break;case 4:a.securityContact=n.string();break;case 5:a.details=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.moniker&&null!==e.moniker?t.moniker=String(e.moniker):t.moniker="",void 0!==e.identity&&null!==e.identity?t.identity=String(e.identity):t.identity="",void 0!==e.website&&null!==e.website?t.website=String(e.website):t.website="",void 0!==e.securityContact&&null!==e.securityContact?t.securityContact=String(e.securityContact):t.securityContact="",void 0!==e.details&&null!==e.details?t.details=String(e.details):t.details="",t},toJSON:function(e){var t={};return void 0!==e.moniker&&(t.moniker=e.moniker),void 0!==e.identity&&(t.identity=e.identity),void 0!==e.website&&(t.website=e.website),void 0!==e.securityContact&&(t.securityContact=e.securityContact),void 0!==e.details&&(t.details=e.details),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.moniker&&null!==e.moniker?t.moniker=e.moniker:t.moniker="",void 0!==e.identity&&null!==e.identity?t.identity=e.identity:t.identity="",void 0!==e.website&&null!==e.website?t.website=e.website:t.website="",void 0!==e.securityContact&&null!==e.securityContact?t.securityContact=e.securityContact:t.securityContact="",void 0!==e.details&&null!==e.details?t.details=e.details:t.details="",t}};var g={operatorAddress:"",jailed:!1,status:0,tokens:"",delegatorShares:"",unbondingHeight:o.default.ZERO,minSelfDelegation:""};t.Validator={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.operatorAddress&&n.uint32(10).string(e.operatorAddress),void 0!==e.consensusPubkey&&u.Any.encode(e.consensusPubkey,n.uint32(18).fork()).ldelim(),!0===e.jailed&&n.uint32(24).bool(e.jailed),0!==e.status&&n.uint32(32).int32(e.status),""!==e.tokens&&n.uint32(42).string(e.tokens),""!==e.delegatorShares&&n.uint32(50).string(e.delegatorShares),void 0!==e.description&&t.Description.encode(e.description,n.uint32(58).fork()).ldelim(),e.unbondingHeight.isZero()||n.uint32(64).int64(e.unbondingHeight),void 0!==e.unbondingTime&&l.Timestamp.encode(R(e.unbondingTime),n.uint32(74).fork()).ldelim(),void 0!==e.commission&&t.Commission.encode(e.commission,n.uint32(82).fork()).ldelim(),""!==e.minSelfDelegation&&n.uint32(90).string(e.minSelfDelegation),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},g);r.pos>>3){case 1:i.operatorAddress=r.string();break;case 2:i.consensusPubkey=u.Any.decode(r,r.uint32());break;case 3:i.jailed=r.bool();break;case 4:i.status=r.int32();break;case 5:i.tokens=r.string();break;case 6:i.delegatorShares=r.string();break;case 7:i.description=t.Description.decode(r,r.uint32());break;case 8:i.unbondingHeight=r.int64();break;case 9:i.unbondingTime=D(l.Timestamp.decode(r,r.uint32()));break;case 10:i.commission=t.Commission.decode(r,r.uint32());break;case 11:i.minSelfDelegation=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},g);return void 0!==e.operatorAddress&&null!==e.operatorAddress?n.operatorAddress=String(e.operatorAddress):n.operatorAddress="",void 0!==e.consensusPubkey&&null!==e.consensusPubkey?n.consensusPubkey=u.Any.fromJSON(e.consensusPubkey):n.consensusPubkey=void 0,void 0!==e.jailed&&null!==e.jailed?n.jailed=Boolean(e.jailed):n.jailed=!1,void 0!==e.status&&null!==e.status?n.status=b(e.status):n.status=0,void 0!==e.tokens&&null!==e.tokens?n.tokens=String(e.tokens):n.tokens="",void 0!==e.delegatorShares&&null!==e.delegatorShares?n.delegatorShares=String(e.delegatorShares):n.delegatorShares="",void 0!==e.description&&null!==e.description?n.description=t.Description.fromJSON(e.description):n.description=void 0,void 0!==e.unbondingHeight&&null!==e.unbondingHeight?n.unbondingHeight=o.default.fromString(e.unbondingHeight):n.unbondingHeight=o.default.ZERO,void 0!==e.unbondingTime&&null!==e.unbondingTime?n.unbondingTime=j(e.unbondingTime):n.unbondingTime=void 0,void 0!==e.commission&&null!==e.commission?n.commission=t.Commission.fromJSON(e.commission):n.commission=void 0,void 0!==e.minSelfDelegation&&null!==e.minSelfDelegation?n.minSelfDelegation=String(e.minSelfDelegation):n.minSelfDelegation="",n},toJSON:function(e){var n={};return void 0!==e.operatorAddress&&(n.operatorAddress=e.operatorAddress),void 0!==e.consensusPubkey&&(n.consensusPubkey=e.consensusPubkey?u.Any.toJSON(e.consensusPubkey):void 0),void 0!==e.jailed&&(n.jailed=e.jailed),void 0!==e.status&&(n.status=p(e.status)),void 0!==e.tokens&&(n.tokens=e.tokens),void 0!==e.delegatorShares&&(n.delegatorShares=e.delegatorShares),void 0!==e.description&&(n.description=e.description?t.Description.toJSON(e.description):void 0),void 0!==e.unbondingHeight&&(n.unbondingHeight=(e.unbondingHeight||o.default.ZERO).toString()),void 0!==e.unbondingTime&&(n.unbondingTime=e.unbondingTime.toISOString()),void 0!==e.commission&&(n.commission=e.commission?t.Commission.toJSON(e.commission):void 0),void 0!==e.minSelfDelegation&&(n.minSelfDelegation=e.minSelfDelegation),n},fromPartial:function(e){var n=Object.assign({},g);return void 0!==e.operatorAddress&&null!==e.operatorAddress?n.operatorAddress=e.operatorAddress:n.operatorAddress="",void 0!==e.consensusPubkey&&null!==e.consensusPubkey?n.consensusPubkey=u.Any.fromPartial(e.consensusPubkey):n.consensusPubkey=void 0,void 0!==e.jailed&&null!==e.jailed?n.jailed=e.jailed:n.jailed=!1,void 0!==e.status&&null!==e.status?n.status=e.status:n.status=0,void 0!==e.tokens&&null!==e.tokens?n.tokens=e.tokens:n.tokens="",void 0!==e.delegatorShares&&null!==e.delegatorShares?n.delegatorShares=e.delegatorShares:n.delegatorShares="",void 0!==e.description&&null!==e.description?n.description=t.Description.fromPartial(e.description):n.description=void 0,void 0!==e.unbondingHeight&&null!==e.unbondingHeight?n.unbondingHeight=e.unbondingHeight:n.unbondingHeight=o.default.ZERO,void 0!==e.unbondingTime&&null!==e.unbondingTime?n.unbondingTime=e.unbondingTime:n.unbondingTime=void 0,void 0!==e.commission&&null!==e.commission?n.commission=t.Commission.fromPartial(e.commission):n.commission=void 0,void 0!==e.minSelfDelegation&&null!==e.minSelfDelegation?n.minSelfDelegation=e.minSelfDelegation:n.minSelfDelegation="",n}};var A={addresses:""};t.ValAddresses={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create(),a=r(e.addresses);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.addresses=[];n.pos>>3==1?a.addresses.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},A);if(t.addresses=[],void 0!==e.addresses&&null!==e.addresses){var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.addresses.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.addresses?t.addresses=e.addresses.map((function(e){return e})):t.addresses=[],t},fromPartial:function(e){var t=Object.assign({},A);if(t.addresses=[],void 0!==e.addresses&&null!==e.addresses){var n,a=r(e.addresses);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.addresses.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var w={delegatorAddress:"",validatorAddress:""};t.DVPair={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},w);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",t}};var x={};t.DVPairs={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create(),i=r(e.pairs);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.DVPair.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},x);for(i.pairs=[];r.pos>>3==1?i.pairs.push(t.DVPair.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},x);if(n.pairs=[],void 0!==e.pairs&&null!==e.pairs){var a,i=r(e.pairs);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.pairs.push(t.DVPair.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.pairs?n.pairs=e.pairs.map((function(e){return e?t.DVPair.toJSON(e):void 0})):n.pairs=[],n},fromPartial:function(e){var n=Object.assign({},x);if(n.pairs=[],void 0!==e.pairs&&null!==e.pairs){var a,i=r(e.pairs);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.pairs.push(t.DVPair.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var _={delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:""};t.DVVTriplet={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorSrcAddress&&t.uint32(18).string(e.validatorSrcAddress),""!==e.validatorDstAddress&&t.uint32(26).string(e.validatorDstAddress),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorSrcAddress=n.string();break;case 3:a.validatorDstAddress=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},_);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorSrcAddress&&null!==e.validatorSrcAddress?t.validatorSrcAddress=String(e.validatorSrcAddress):t.validatorSrcAddress="",void 0!==e.validatorDstAddress&&null!==e.validatorDstAddress?t.validatorDstAddress=String(e.validatorDstAddress):t.validatorDstAddress="",t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorSrcAddress&&(t.validatorSrcAddress=e.validatorSrcAddress),void 0!==e.validatorDstAddress&&(t.validatorDstAddress=e.validatorDstAddress),t},fromPartial:function(e){var t=Object.assign({},_);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorSrcAddress&&null!==e.validatorSrcAddress?t.validatorSrcAddress=e.validatorSrcAddress:t.validatorSrcAddress="",void 0!==e.validatorDstAddress&&null!==e.validatorDstAddress?t.validatorDstAddress=e.validatorDstAddress:t.validatorDstAddress="",t}};var k={};t.DVVTriplets={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create(),i=r(e.triplets);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.DVVTriplet.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},k);for(i.triplets=[];r.pos>>3==1?i.triplets.push(t.DVVTriplet.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},k);if(n.triplets=[],void 0!==e.triplets&&null!==e.triplets){var a,i=r(e.triplets);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.triplets.push(t.DVVTriplet.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.triplets?n.triplets=e.triplets.map((function(e){return e?t.DVVTriplet.toJSON(e):void 0})):n.triplets=[],n},fromPartial:function(e){var n=Object.assign({},k);if(n.triplets=[],void 0!==e.triplets&&null!==e.triplets){var a,i=r(e.triplets);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.triplets.push(t.DVVTriplet.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var I={delegatorAddress:"",validatorAddress:"",shares:""};t.Delegation={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),""!==e.shares&&t.uint32(26).string(e.shares),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},I);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;case 3:a.shares=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},I);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",void 0!==e.shares&&null!==e.shares?t.shares=String(e.shares):t.shares="",t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.shares&&(t.shares=e.shares),t},fromPartial:function(e){var t=Object.assign({},I);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",void 0!==e.shares&&null!==e.shares?t.shares=e.shares:t.shares="",t}};var S={delegatorAddress:"",validatorAddress:""};t.UnbondingDelegation={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();""!==e.delegatorAddress&&n.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&n.uint32(18).string(e.validatorAddress);var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.UnbondingDelegationEntry.encode(o,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},S);for(i.entries=[];r.pos>>3){case 1:i.delegatorAddress=r.string();break;case 2:i.validatorAddress=r.string();break;case 3:i.entries.push(t.UnbondingDelegationEntry.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},S);if(n.entries=[],void 0!==e.delegatorAddress&&null!==e.delegatorAddress?n.delegatorAddress=String(e.delegatorAddress):n.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?n.validatorAddress=String(e.validatorAddress):n.validatorAddress="",void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.UnbondingDelegationEntry.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.delegatorAddress&&(n.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(n.validatorAddress=e.validatorAddress),e.entries?n.entries=e.entries.map((function(e){return e?t.UnbondingDelegationEntry.toJSON(e):void 0})):n.entries=[],n},fromPartial:function(e){var n=Object.assign({},S);if(n.entries=[],void 0!==e.delegatorAddress&&null!==e.delegatorAddress?n.delegatorAddress=e.delegatorAddress:n.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?n.validatorAddress=e.validatorAddress:n.validatorAddress="",void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.UnbondingDelegationEntry.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var E={creationHeight:o.default.ZERO,initialBalance:"",balance:""};t.UnbondingDelegationEntry={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return e.creationHeight.isZero()||t.uint32(8).int64(e.creationHeight),void 0!==e.completionTime&&l.Timestamp.encode(R(e.completionTime),t.uint32(18).fork()).ldelim(),""!==e.initialBalance&&t.uint32(26).string(e.initialBalance),""!==e.balance&&t.uint32(34).string(e.balance),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},E);n.pos>>3){case 1:a.creationHeight=n.int64();break;case 2:a.completionTime=D(l.Timestamp.decode(n,n.uint32()));break;case 3:a.initialBalance=n.string();break;case 4:a.balance=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},E);return void 0!==e.creationHeight&&null!==e.creationHeight?t.creationHeight=o.default.fromString(e.creationHeight):t.creationHeight=o.default.ZERO,void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=j(e.completionTime):t.completionTime=void 0,void 0!==e.initialBalance&&null!==e.initialBalance?t.initialBalance=String(e.initialBalance):t.initialBalance="",void 0!==e.balance&&null!==e.balance?t.balance=String(e.balance):t.balance="",t},toJSON:function(e){var t={};return void 0!==e.creationHeight&&(t.creationHeight=(e.creationHeight||o.default.ZERO).toString()),void 0!==e.completionTime&&(t.completionTime=e.completionTime.toISOString()),void 0!==e.initialBalance&&(t.initialBalance=e.initialBalance),void 0!==e.balance&&(t.balance=e.balance),t},fromPartial:function(e){var t=Object.assign({},E);return void 0!==e.creationHeight&&null!==e.creationHeight?t.creationHeight=e.creationHeight:t.creationHeight=o.default.ZERO,void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=e.completionTime:t.completionTime=void 0,void 0!==e.initialBalance&&null!==e.initialBalance?t.initialBalance=e.initialBalance:t.initialBalance="",void 0!==e.balance&&null!==e.balance?t.balance=e.balance:t.balance="",t}};var C={creationHeight:o.default.ZERO,initialBalance:"",sharesDst:""};t.RedelegationEntry={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return e.creationHeight.isZero()||t.uint32(8).int64(e.creationHeight),void 0!==e.completionTime&&l.Timestamp.encode(R(e.completionTime),t.uint32(18).fork()).ldelim(),""!==e.initialBalance&&t.uint32(26).string(e.initialBalance),""!==e.sharesDst&&t.uint32(34).string(e.sharesDst),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},C);n.pos>>3){case 1:a.creationHeight=n.int64();break;case 2:a.completionTime=D(l.Timestamp.decode(n,n.uint32()));break;case 3:a.initialBalance=n.string();break;case 4:a.sharesDst=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},C);return void 0!==e.creationHeight&&null!==e.creationHeight?t.creationHeight=o.default.fromString(e.creationHeight):t.creationHeight=o.default.ZERO,void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=j(e.completionTime):t.completionTime=void 0,void 0!==e.initialBalance&&null!==e.initialBalance?t.initialBalance=String(e.initialBalance):t.initialBalance="",void 0!==e.sharesDst&&null!==e.sharesDst?t.sharesDst=String(e.sharesDst):t.sharesDst="",t},toJSON:function(e){var t={};return void 0!==e.creationHeight&&(t.creationHeight=(e.creationHeight||o.default.ZERO).toString()),void 0!==e.completionTime&&(t.completionTime=e.completionTime.toISOString()),void 0!==e.initialBalance&&(t.initialBalance=e.initialBalance),void 0!==e.sharesDst&&(t.sharesDst=e.sharesDst),t},fromPartial:function(e){var t=Object.assign({},C);return void 0!==e.creationHeight&&null!==e.creationHeight?t.creationHeight=e.creationHeight:t.creationHeight=o.default.ZERO,void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=e.completionTime:t.completionTime=void 0,void 0!==e.initialBalance&&null!==e.initialBalance?t.initialBalance=e.initialBalance:t.initialBalance="",void 0!==e.sharesDst&&null!==e.sharesDst?t.sharesDst=e.sharesDst:t.sharesDst="",t}};var T={delegatorAddress:"",validatorSrcAddress:"",validatorDstAddress:""};t.Redelegation={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();""!==e.delegatorAddress&&n.uint32(10).string(e.delegatorAddress),""!==e.validatorSrcAddress&&n.uint32(18).string(e.validatorSrcAddress),""!==e.validatorDstAddress&&n.uint32(26).string(e.validatorDstAddress);var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.RedelegationEntry.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},T);for(i.entries=[];r.pos>>3){case 1:i.delegatorAddress=r.string();break;case 2:i.validatorSrcAddress=r.string();break;case 3:i.validatorDstAddress=r.string();break;case 4:i.entries.push(t.RedelegationEntry.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},T);if(n.entries=[],void 0!==e.delegatorAddress&&null!==e.delegatorAddress?n.delegatorAddress=String(e.delegatorAddress):n.delegatorAddress="",void 0!==e.validatorSrcAddress&&null!==e.validatorSrcAddress?n.validatorSrcAddress=String(e.validatorSrcAddress):n.validatorSrcAddress="",void 0!==e.validatorDstAddress&&null!==e.validatorDstAddress?n.validatorDstAddress=String(e.validatorDstAddress):n.validatorDstAddress="",void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.RedelegationEntry.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.delegatorAddress&&(n.delegatorAddress=e.delegatorAddress),void 0!==e.validatorSrcAddress&&(n.validatorSrcAddress=e.validatorSrcAddress),void 0!==e.validatorDstAddress&&(n.validatorDstAddress=e.validatorDstAddress),e.entries?n.entries=e.entries.map((function(e){return e?t.RedelegationEntry.toJSON(e):void 0})):n.entries=[],n},fromPartial:function(e){var n=Object.assign({},T);if(n.entries=[],void 0!==e.delegatorAddress&&null!==e.delegatorAddress?n.delegatorAddress=e.delegatorAddress:n.delegatorAddress="",void 0!==e.validatorSrcAddress&&null!==e.validatorSrcAddress?n.validatorSrcAddress=e.validatorSrcAddress:n.validatorSrcAddress="",void 0!==e.validatorDstAddress&&null!==e.validatorDstAddress?n.validatorDstAddress=e.validatorDstAddress:n.validatorDstAddress="",void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.RedelegationEntry.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var O={maxValidators:0,maxEntries:0,historicalEntries:0,bondDenom:""};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.unbondingTime&&d.Duration.encode(e.unbondingTime,t.uint32(10).fork()).ldelim(),0!==e.maxValidators&&t.uint32(16).uint32(e.maxValidators),0!==e.maxEntries&&t.uint32(24).uint32(e.maxEntries),0!==e.historicalEntries&&t.uint32(32).uint32(e.historicalEntries),""!==e.bondDenom&&t.uint32(42).string(e.bondDenom),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},O);n.pos>>3){case 1:a.unbondingTime=d.Duration.decode(n,n.uint32());break;case 2:a.maxValidators=n.uint32();break;case 3:a.maxEntries=n.uint32();break;case 4:a.historicalEntries=n.uint32();break;case 5:a.bondDenom=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},O);return void 0!==e.unbondingTime&&null!==e.unbondingTime?t.unbondingTime=d.Duration.fromJSON(e.unbondingTime):t.unbondingTime=void 0,void 0!==e.maxValidators&&null!==e.maxValidators?t.maxValidators=Number(e.maxValidators):t.maxValidators=0,void 0!==e.maxEntries&&null!==e.maxEntries?t.maxEntries=Number(e.maxEntries):t.maxEntries=0,void 0!==e.historicalEntries&&null!==e.historicalEntries?t.historicalEntries=Number(e.historicalEntries):t.historicalEntries=0,void 0!==e.bondDenom&&null!==e.bondDenom?t.bondDenom=String(e.bondDenom):t.bondDenom="",t},toJSON:function(e){var t={};return void 0!==e.unbondingTime&&(t.unbondingTime=e.unbondingTime?d.Duration.toJSON(e.unbondingTime):void 0),void 0!==e.maxValidators&&(t.maxValidators=e.maxValidators),void 0!==e.maxEntries&&(t.maxEntries=e.maxEntries),void 0!==e.historicalEntries&&(t.historicalEntries=e.historicalEntries),void 0!==e.bondDenom&&(t.bondDenom=e.bondDenom),t},fromPartial:function(e){var t=Object.assign({},O);return void 0!==e.unbondingTime&&null!==e.unbondingTime?t.unbondingTime=d.Duration.fromPartial(e.unbondingTime):t.unbondingTime=void 0,void 0!==e.maxValidators&&null!==e.maxValidators?t.maxValidators=e.maxValidators:t.maxValidators=0,void 0!==e.maxEntries&&null!==e.maxEntries?t.maxEntries=e.maxEntries:t.maxEntries=0,void 0!==e.historicalEntries&&null!==e.historicalEntries?t.historicalEntries=e.historicalEntries:t.historicalEntries=0,void 0!==e.bondDenom&&null!==e.bondDenom?t.bondDenom=e.bondDenom:t.bondDenom="",t}};var P={};t.DelegationResponse={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.delegation&&t.Delegation.encode(e.delegation,n.uint32(10).fork()).ldelim(),void 0!==e.balance&&f.Coin.encode(e.balance,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},P);r.pos>>3){case 1:i.delegation=t.Delegation.decode(r,r.uint32());break;case 2:i.balance=f.Coin.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},P);return void 0!==e.delegation&&null!==e.delegation?n.delegation=t.Delegation.fromJSON(e.delegation):n.delegation=void 0,void 0!==e.balance&&null!==e.balance?n.balance=f.Coin.fromJSON(e.balance):n.balance=void 0,n},toJSON:function(e){var n={};return void 0!==e.delegation&&(n.delegation=e.delegation?t.Delegation.toJSON(e.delegation):void 0),void 0!==e.balance&&(n.balance=e.balance?f.Coin.toJSON(e.balance):void 0),n},fromPartial:function(e){var n=Object.assign({},P);return void 0!==e.delegation&&null!==e.delegation?n.delegation=t.Delegation.fromPartial(e.delegation):n.delegation=void 0,void 0!==e.balance&&null!==e.balance?n.balance=f.Coin.fromPartial(e.balance):n.balance=void 0,n}};var M={balance:""};t.RedelegationEntryResponse={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.redelegationEntry&&t.RedelegationEntry.encode(e.redelegationEntry,n.uint32(10).fork()).ldelim(),""!==e.balance&&n.uint32(34).string(e.balance),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},M);r.pos>>3){case 1:i.redelegationEntry=t.RedelegationEntry.decode(r,r.uint32());break;case 4:i.balance=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},M);return void 0!==e.redelegationEntry&&null!==e.redelegationEntry?n.redelegationEntry=t.RedelegationEntry.fromJSON(e.redelegationEntry):n.redelegationEntry=void 0,void 0!==e.balance&&null!==e.balance?n.balance=String(e.balance):n.balance="",n},toJSON:function(e){var n={};return void 0!==e.redelegationEntry&&(n.redelegationEntry=e.redelegationEntry?t.RedelegationEntry.toJSON(e.redelegationEntry):void 0),void 0!==e.balance&&(n.balance=e.balance),n},fromPartial:function(e){var n=Object.assign({},M);return void 0!==e.redelegationEntry&&null!==e.redelegationEntry?n.redelegationEntry=t.RedelegationEntry.fromPartial(e.redelegationEntry):n.redelegationEntry=void 0,void 0!==e.balance&&null!==e.balance?n.balance=e.balance:n.balance="",n}};var B={};t.RedelegationResponse={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();void 0!==e.redelegation&&t.Redelegation.encode(e.redelegation,n.uint32(10).fork()).ldelim();var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.RedelegationEntryResponse.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},B);for(i.entries=[];r.pos>>3){case 1:i.redelegation=t.Redelegation.decode(r,r.uint32());break;case 2:i.entries.push(t.RedelegationEntryResponse.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},B);if(n.entries=[],void 0!==e.redelegation&&null!==e.redelegation?n.redelegation=t.Redelegation.fromJSON(e.redelegation):n.redelegation=void 0,void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.RedelegationEntryResponse.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.redelegation&&(n.redelegation=e.redelegation?t.Redelegation.toJSON(e.redelegation):void 0),e.entries?n.entries=e.entries.map((function(e){return e?t.RedelegationEntryResponse.toJSON(e):void 0})):n.entries=[],n},fromPartial:function(e){var n=Object.assign({},B);if(n.entries=[],void 0!==e.redelegation&&null!==e.redelegation?n.redelegation=t.Redelegation.fromPartial(e.redelegation):n.redelegation=void 0,void 0!==e.entries&&null!==e.entries){var a,i=r(e.entries);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.entries.push(t.RedelegationEntryResponse.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var N={notBondedTokens:"",bondedTokens:""};function R(e){var t;return{seconds:(t=e.getTime()/1e3,o.default.fromNumber(t)),nanos:e.getTime()%1e3*1e6}}function D(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}function j(e){return e instanceof Date?e:"string"==typeof e?new Date(e):D(l.Timestamp.fromJSON(e))}t.Pool={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.notBondedTokens&&t.uint32(10).string(e.notBondedTokens),""!==e.bondedTokens&&t.uint32(18).string(e.bondedTokens),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},N);n.pos>>3){case 1:a.notBondedTokens=n.string();break;case 2:a.bondedTokens=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},N);return void 0!==e.notBondedTokens&&null!==e.notBondedTokens?t.notBondedTokens=String(e.notBondedTokens):t.notBondedTokens="",void 0!==e.bondedTokens&&null!==e.bondedTokens?t.bondedTokens=String(e.bondedTokens):t.bondedTokens="",t},toJSON:function(e){var t={};return void 0!==e.notBondedTokens&&(t.notBondedTokens=e.notBondedTokens),void 0!==e.bondedTokens&&(t.bondedTokens=e.bondedTokens),t},fromPartial:function(e){var t=Object.assign({},N);return void 0!==e.notBondedTokens&&null!==e.notBondedTokens?t.notBondedTokens=e.notBondedTokens:t.notBondedTokens="",void 0!==e.bondedTokens&&null!==e.bondedTokens?t.bondedTokens=e.bondedTokens:t.bondedTokens="",t}},s.default.util.Long!==o.default&&(s.default.util.Long=o.default,s.default.configure())},25281:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgUndelegateDesc=t.MsgBeginRedelegateDesc=t.MsgDelegateDesc=t.MsgEditValidatorDesc=t.MsgCreateValidatorDesc=t.MsgDesc=t.MsgClientImpl=t.MsgUndelegateResponse=t.MsgUndelegate=t.MsgBeginRedelegateResponse=t.MsgBeginRedelegate=t.MsgDelegateResponse=t.MsgDelegate=t.MsgEditValidatorResponse=t.MsgEditValidator=t.MsgCreateValidatorResponse=t.MsgCreateValidator=t.protobufPackage=void 0;var o=i(n(24141)),s=n(34882),c=i(n(1)),u=n(1511),d=n(58682),f=n(2121),l=n(46711),b=n(37814);t.protobufPackage="cosmos.staking.v1beta1";var p={minSelfDelegation:"",delegatorAddress:"",validatorAddress:""};t.MsgCreateValidator={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.description&&u.Description.encode(e.description,t.uint32(10).fork()).ldelim(),void 0!==e.commission&&u.CommissionRates.encode(e.commission,t.uint32(18).fork()).ldelim(),""!==e.minSelfDelegation&&t.uint32(26).string(e.minSelfDelegation),""!==e.delegatorAddress&&t.uint32(34).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(42).string(e.validatorAddress),void 0!==e.pubkey&&d.Any.encode(e.pubkey,t.uint32(50).fork()).ldelim(),void 0!==e.value&&f.Coin.encode(e.value,t.uint32(58).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.description=u.Description.decode(n,n.uint32());break;case 2:a.commission=u.CommissionRates.decode(n,n.uint32());break;case 3:a.minSelfDelegation=n.string();break;case 4:a.delegatorAddress=n.string();break;case 5:a.validatorAddress=n.string();break;case 6:a.pubkey=d.Any.decode(n,n.uint32());break;case 7:a.value=f.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.description&&null!==e.description?t.description=u.Description.fromJSON(e.description):t.description=void 0,void 0!==e.commission&&null!==e.commission?t.commission=u.CommissionRates.fromJSON(e.commission):t.commission=void 0,void 0!==e.minSelfDelegation&&null!==e.minSelfDelegation?t.minSelfDelegation=String(e.minSelfDelegation):t.minSelfDelegation="",void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",void 0!==e.pubkey&&null!==e.pubkey?t.pubkey=d.Any.fromJSON(e.pubkey):t.pubkey=void 0,void 0!==e.value&&null!==e.value?t.value=f.Coin.fromJSON(e.value):t.value=void 0,t},toJSON:function(e){var t={};return void 0!==e.description&&(t.description=e.description?u.Description.toJSON(e.description):void 0),void 0!==e.commission&&(t.commission=e.commission?u.CommissionRates.toJSON(e.commission):void 0),void 0!==e.minSelfDelegation&&(t.minSelfDelegation=e.minSelfDelegation),void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.pubkey&&(t.pubkey=e.pubkey?d.Any.toJSON(e.pubkey):void 0),void 0!==e.value&&(t.value=e.value?f.Coin.toJSON(e.value):void 0),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.description&&null!==e.description?t.description=u.Description.fromPartial(e.description):t.description=void 0,void 0!==e.commission&&null!==e.commission?t.commission=u.CommissionRates.fromPartial(e.commission):t.commission=void 0,void 0!==e.minSelfDelegation&&null!==e.minSelfDelegation?t.minSelfDelegation=e.minSelfDelegation:t.minSelfDelegation="",void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",void 0!==e.pubkey&&null!==e.pubkey?t.pubkey=d.Any.fromPartial(e.pubkey):t.pubkey=void 0,void 0!==e.value&&null!==e.value?t.value=f.Coin.fromPartial(e.value):t.value=void 0,t}};var h={};t.MsgCreateValidatorResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.description&&u.Description.encode(e.description,t.uint32(10).fork()).ldelim(),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),""!==e.commissionRate&&t.uint32(26).string(e.commissionRate),""!==e.minSelfDelegation&&t.uint32(34).string(e.minSelfDelegation),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos>>3){case 1:a.description=u.Description.decode(n,n.uint32());break;case 2:a.validatorAddress=n.string();break;case 3:a.commissionRate=n.string();break;case 4:a.minSelfDelegation=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return void 0!==e.description&&null!==e.description?t.description=u.Description.fromJSON(e.description):t.description=void 0,void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",void 0!==e.commissionRate&&null!==e.commissionRate?t.commissionRate=String(e.commissionRate):t.commissionRate="",void 0!==e.minSelfDelegation&&null!==e.minSelfDelegation?t.minSelfDelegation=String(e.minSelfDelegation):t.minSelfDelegation="",t},toJSON:function(e){var t={};return void 0!==e.description&&(t.description=e.description?u.Description.toJSON(e.description):void 0),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.commissionRate&&(t.commissionRate=e.commissionRate),void 0!==e.minSelfDelegation&&(t.minSelfDelegation=e.minSelfDelegation),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.description&&null!==e.description?t.description=u.Description.fromPartial(e.description):t.description=void 0,void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",void 0!==e.commissionRate&&null!==e.commissionRate?t.commissionRate=e.commissionRate:t.commissionRate="",void 0!==e.minSelfDelegation&&null!==e.minSelfDelegation?t.minSelfDelegation=e.minSelfDelegation:t.minSelfDelegation="",t}};var m={};t.MsgEditValidatorResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),void 0!==e.amount&&f.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;case 3:a.amount=f.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",void 0!==e.amount&&null!==e.amount?t.amount=f.Coin.fromJSON(e.amount):t.amount=void 0,t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.amount&&(t.amount=e.amount?f.Coin.toJSON(e.amount):void 0),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",void 0!==e.amount&&null!==e.amount?t.amount=f.Coin.fromPartial(e.amount):t.amount=void 0,t}};var g={};t.MsgDelegateResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorSrcAddress&&t.uint32(18).string(e.validatorSrcAddress),""!==e.validatorDstAddress&&t.uint32(26).string(e.validatorDstAddress),void 0!==e.amount&&f.Coin.encode(e.amount,t.uint32(34).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorSrcAddress=n.string();break;case 3:a.validatorDstAddress=n.string();break;case 4:a.amount=f.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorSrcAddress&&null!==e.validatorSrcAddress?t.validatorSrcAddress=String(e.validatorSrcAddress):t.validatorSrcAddress="",void 0!==e.validatorDstAddress&&null!==e.validatorDstAddress?t.validatorDstAddress=String(e.validatorDstAddress):t.validatorDstAddress="",void 0!==e.amount&&null!==e.amount?t.amount=f.Coin.fromJSON(e.amount):t.amount=void 0,t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorSrcAddress&&(t.validatorSrcAddress=e.validatorSrcAddress),void 0!==e.validatorDstAddress&&(t.validatorDstAddress=e.validatorDstAddress),void 0!==e.amount&&(t.amount=e.amount?f.Coin.toJSON(e.amount):void 0),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorSrcAddress&&null!==e.validatorSrcAddress?t.validatorSrcAddress=e.validatorSrcAddress:t.validatorSrcAddress="",void 0!==e.validatorDstAddress&&null!==e.validatorDstAddress?t.validatorDstAddress=e.validatorDstAddress:t.validatorDstAddress="",void 0!==e.amount&&null!==e.amount?t.amount=f.Coin.fromPartial(e.amount):t.amount=void 0,t}};var w={};t.MsgBeginRedelegateResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.completionTime&&b.Timestamp.encode(S(e.completionTime),t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos>>3==1?a.completionTime=E(b.Timestamp.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},w);return void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=C(e.completionTime):t.completionTime=void 0,t},toJSON:function(e){var t={};return void 0!==e.completionTime&&(t.completionTime=e.completionTime.toISOString()),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=e.completionTime:t.completionTime=void 0,t}};var x={delegatorAddress:"",validatorAddress:""};t.MsgUndelegate={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.delegatorAddress&&t.uint32(10).string(e.delegatorAddress),""!==e.validatorAddress&&t.uint32(18).string(e.validatorAddress),void 0!==e.amount&&f.Coin.encode(e.amount,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},x);n.pos>>3){case 1:a.delegatorAddress=n.string();break;case 2:a.validatorAddress=n.string();break;case 3:a.amount=f.Coin.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},x);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=String(e.delegatorAddress):t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=String(e.validatorAddress):t.validatorAddress="",void 0!==e.amount&&null!==e.amount?t.amount=f.Coin.fromJSON(e.amount):t.amount=void 0,t},toJSON:function(e){var t={};return void 0!==e.delegatorAddress&&(t.delegatorAddress=e.delegatorAddress),void 0!==e.validatorAddress&&(t.validatorAddress=e.validatorAddress),void 0!==e.amount&&(t.amount=e.amount?f.Coin.toJSON(e.amount):void 0),t},fromPartial:function(e){var t=Object.assign({},x);return void 0!==e.delegatorAddress&&null!==e.delegatorAddress?t.delegatorAddress=e.delegatorAddress:t.delegatorAddress="",void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress="",void 0!==e.amount&&null!==e.amount?t.amount=f.Coin.fromPartial(e.amount):t.amount=void 0,t}};var _={};t.MsgUndelegateResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.completionTime&&b.Timestamp.encode(S(e.completionTime),t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);n.pos>>3==1?a.completionTime=E(b.Timestamp.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},_);return void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=C(e.completionTime):t.completionTime=void 0,t},toJSON:function(e){var t={};return void 0!==e.completionTime&&(t.completionTime=e.completionTime.toISOString()),t},fromPartial:function(e){var t=Object.assign({},_);return void 0!==e.completionTime&&null!==e.completionTime?t.completionTime=e.completionTime:t.completionTime=void 0,t}};var k=function(){function e(t){r(this,e),this.rpc=t,this.CreateValidator=this.CreateValidator.bind(this),this.EditValidator=this.EditValidator.bind(this),this.Delegate=this.Delegate.bind(this),this.BeginRedelegate=this.BeginRedelegate.bind(this),this.Undelegate=this.Undelegate.bind(this)}return a(e,[{key:"CreateValidator",value:function(e,n){return this.rpc.unary(t.MsgCreateValidatorDesc,t.MsgCreateValidator.fromPartial(e),n)}},{key:"EditValidator",value:function(e,n){return this.rpc.unary(t.MsgEditValidatorDesc,t.MsgEditValidator.fromPartial(e),n)}},{key:"Delegate",value:function(e,n){return this.rpc.unary(t.MsgDelegateDesc,t.MsgDelegate.fromPartial(e),n)}},{key:"BeginRedelegate",value:function(e,n){return this.rpc.unary(t.MsgBeginRedelegateDesc,t.MsgBeginRedelegate.fromPartial(e),n)}},{key:"Undelegate",value:function(e,n){return this.rpc.unary(t.MsgUndelegateDesc,t.MsgUndelegate.fromPartial(e),n)}}]),e}();t.MsgClientImpl=k,t.MsgDesc={serviceName:"cosmos.staking.v1beta1.Msg"},t.MsgCreateValidatorDesc={methodName:"CreateValidator",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgCreateValidator.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgCreateValidatorResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgEditValidatorDesc={methodName:"EditValidator",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgEditValidator.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgEditValidatorResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgDelegateDesc={methodName:"Delegate",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgDelegate.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgDelegateResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgBeginRedelegateDesc={methodName:"BeginRedelegate",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgBeginRedelegate.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgBeginRedelegateResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgUndelegateDesc={methodName:"Undelegate",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgUndelegate.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgUndelegateResponse.decode(e)),{toObject:function(){return this}})}}};var I=function(){function e(t,n){r(this,e),this.host=t,this.options=n}return a(e,[{key:"unary",value:function(e,t,n){var r,a=this,i=Object.assign(Object.assign({},t),e.requestType),o=n&&this.options.metadata?new l.BrowserHeaders(Object.assign(Object.assign({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise((function(t,n){s.grpc.unary(e,{request:i,host:a.host,metadata:o,transport:a.options.transport,debug:a.options.debug,onEnd:function(e){if(e.status===s.grpc.Code.OK)t(e.message);else{var r=new Error(e.statusMessage);r.code=e.status,r.metadata=e.trailers,n(r)}}})}))}}]),e}();function S(e){var t;return{seconds:(t=e.getTime()/1e3,o.default.fromNumber(t)),nanos:e.getTime()%1e3*1e6}}function E(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}function C(e){return e instanceof Date?e:"string"==typeof e?new Date(e):E(b.Timestamp.fromJSON(e))}t.GrpcWebImpl=I,c.default.util.Long!==o.default&&(c.default.util.Long=o.default,c.default.configure())},50972:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureDescriptor_Data_Multi=t.SignatureDescriptor_Data_Single=t.SignatureDescriptor_Data=t.SignatureDescriptor=t.SignatureDescriptors=t.signModeToJSON=t.signModeFromJSON=t.SignMode=t.protobufPackage=void 0;var i,o=a(n(24141)),s=a(n(1)),c=n(58682),u=n(97566);function d(e){switch(e){case 0:case"SIGN_MODE_UNSPECIFIED":return i.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return i.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return i.SIGN_MODE_TEXTUAL;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return i.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return i.SIGN_MODE_EIP_191;default:return i.UNRECOGNIZED}}function f(e){switch(e){case i.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case i.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case i.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case i.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case i.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";default:return"UNKNOWN"}}t.protobufPackage="cosmos.tx.signing.v1beta1",function(e){e[e.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",e[e.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",e[e.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",e[e.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",e[e.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=t.SignMode||(t.SignMode={})),t.signModeFromJSON=d,t.signModeToJSON=f;var l={};t.SignatureDescriptors={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create(),i=r(e.signatures);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.SignatureDescriptor.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},l);for(i.signatures=[];r.pos>>3==1?i.signatures.push(t.SignatureDescriptor.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},l);if(n.signatures=[],void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.signatures?n.signatures=e.signatures.map((function(e){return e?t.SignatureDescriptor.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},l);if(n.signatures=[],void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var b={sequence:o.default.UZERO};t.SignatureDescriptor={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.publicKey&&c.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),void 0!==e.data&&t.SignatureDescriptor_Data.encode(e.data,n.uint32(18).fork()).ldelim(),e.sequence.isZero()||n.uint32(24).uint64(e.sequence),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);r.pos>>3){case 1:i.publicKey=c.Any.decode(r,r.uint32());break;case 2:i.data=t.SignatureDescriptor_Data.decode(r,r.uint32());break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},b);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=c.Any.fromJSON(e.publicKey):n.publicKey=void 0,void 0!==e.data&&null!==e.data?n.data=t.SignatureDescriptor_Data.fromJSON(e.data):n.data=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=o.default.fromString(e.sequence):n.sequence=o.default.UZERO,n},toJSON:function(e){var n={};return void 0!==e.publicKey&&(n.publicKey=e.publicKey?c.Any.toJSON(e.publicKey):void 0),void 0!==e.data&&(n.data=e.data?t.SignatureDescriptor_Data.toJSON(e.data):void 0),void 0!==e.sequence&&(n.sequence=(e.sequence||o.default.UZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},b);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=c.Any.fromPartial(e.publicKey):n.publicKey=void 0,void 0!==e.data&&null!==e.data?n.data=t.SignatureDescriptor_Data.fromPartial(e.data):n.data=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=e.sequence:n.sequence=o.default.UZERO,n}};var p={};t.SignatureDescriptor_Data={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return void 0!==e.single&&t.SignatureDescriptor_Data_Single.encode(e.single,n.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.SignatureDescriptor_Data_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);r.pos>>3){case 1:i.single=t.SignatureDescriptor_Data_Single.decode(r,r.uint32());break;case 2:i.multi=t.SignatureDescriptor_Data_Multi.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},p);return void 0!==e.single&&null!==e.single?n.single=t.SignatureDescriptor_Data_Single.fromJSON(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.SignatureDescriptor_Data_Multi.fromJSON(e.multi):n.multi=void 0,n},toJSON:function(e){var n={};return void 0!==e.single&&(n.single=e.single?t.SignatureDescriptor_Data_Single.toJSON(e.single):void 0),void 0!==e.multi&&(n.multi=e.multi?t.SignatureDescriptor_Data_Multi.toJSON(e.multi):void 0),n},fromPartial:function(e){var n=Object.assign({},p);return void 0!==e.single&&null!==e.single?n.single=t.SignatureDescriptor_Data_Single.fromPartial(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.SignatureDescriptor_Data_Multi.fromPartial(e.multi):n.multi=void 0,n}};var h={mode:0};t.SignatureDescriptor_Data_Single={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return 0!==e.mode&&t.uint32(8).int32(e.mode),0!==e.signature.length&&t.uint32(18).bytes(e.signature),t},decode:function(e,t){var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.signature=new Uint8Array;n.pos>>3){case 1:a.mode=n.int32();break;case 2:a.signature=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);return t.signature=new Uint8Array,void 0!==e.mode&&null!==e.mode?t.mode=d(e.mode):t.mode=0,void 0!==e.signature&&null!==e.signature&&(t.signature=function(e){for(var t=v(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();void 0!==e.bitarray&&u.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.SignatureDescriptor_Data.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},y);for(i.signatures=[];r.pos>>3){case 1:i.bitarray=u.CompactBitArray.decode(r,r.uint32());break;case 2:i.signatures.push(t.SignatureDescriptor_Data.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},y);if(n.signatures=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromJSON(e.bitarray):n.bitarray=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor_Data.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.bitarray&&(n.bitarray=e.bitarray?u.CompactBitArray.toJSON(e.bitarray):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return e?t.SignatureDescriptor_Data.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},y);if(n.signatures=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromPartial(e.bitarray):n.bitarray=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.SignatureDescriptor_Data.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var m=function(){if(void 0!==m)return m;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),v=m.atob||function(e){return m.Buffer.from(e,"base64").toString("binary")},g=m.btoa||function(e){return m.Buffer.from(e,"binary").toString("base64")};s.default.util.Long!==o.default&&(s.default.util.Long=o.default,s.default.configure())},35376:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(33482).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.ServiceGetBlockWithTxsDesc=t.ServiceGetTxsEventDesc=t.ServiceBroadcastTxDesc=t.ServiceGetTxDesc=t.ServiceSimulateDesc=t.ServiceDesc=t.ServiceClientImpl=t.GetBlockWithTxsResponse=t.GetBlockWithTxsRequest=t.GetTxResponse=t.GetTxRequest=t.SimulateResponse=t.SimulateRequest=t.BroadcastTxResponse=t.BroadcastTxRequest=t.GetTxsEventResponse=t.GetTxsEventRequest=t.broadcastModeToJSON=t.broadcastModeFromJSON=t.BroadcastMode=t.orderByToJSON=t.orderByFromJSON=t.OrderBy=t.protobufPackage=void 0;var s,c,u=o(n(24141)),d=n(34882),f=o(n(1)),l=n(52869),b=n(41234),p=n(89413),h=n(49203),y=n(9727),m=n(46711);function v(e){switch(e){case 0:case"ORDER_BY_UNSPECIFIED":return s.ORDER_BY_UNSPECIFIED;case 1:case"ORDER_BY_ASC":return s.ORDER_BY_ASC;case 2:case"ORDER_BY_DESC":return s.ORDER_BY_DESC;default:return s.UNRECOGNIZED}}function g(e){switch(e){case s.ORDER_BY_UNSPECIFIED:return"ORDER_BY_UNSPECIFIED";case s.ORDER_BY_ASC:return"ORDER_BY_ASC";case s.ORDER_BY_DESC:return"ORDER_BY_DESC";default:return"UNKNOWN"}}function A(e){switch(e){case 0:case"BROADCAST_MODE_UNSPECIFIED":return c.BROADCAST_MODE_UNSPECIFIED;case 1:case"BROADCAST_MODE_BLOCK":return c.BROADCAST_MODE_BLOCK;case 2:case"BROADCAST_MODE_SYNC":return c.BROADCAST_MODE_SYNC;case 3:case"BROADCAST_MODE_ASYNC":return c.BROADCAST_MODE_ASYNC;default:return c.UNRECOGNIZED}}function w(e){switch(e){case c.BROADCAST_MODE_UNSPECIFIED:return"BROADCAST_MODE_UNSPECIFIED";case c.BROADCAST_MODE_BLOCK:return"BROADCAST_MODE_BLOCK";case c.BROADCAST_MODE_SYNC:return"BROADCAST_MODE_SYNC";case c.BROADCAST_MODE_ASYNC:return"BROADCAST_MODE_ASYNC";default:return"UNKNOWN"}}t.protobufPackage="cosmos.tx.v1beta1",function(e){e[e.ORDER_BY_UNSPECIFIED=0]="ORDER_BY_UNSPECIFIED",e[e.ORDER_BY_ASC=1]="ORDER_BY_ASC",e[e.ORDER_BY_DESC=2]="ORDER_BY_DESC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.OrderBy||(t.OrderBy={})),t.orderByFromJSON=v,t.orderByToJSON=g,function(e){e[e.BROADCAST_MODE_UNSPECIFIED=0]="BROADCAST_MODE_UNSPECIFIED",e[e.BROADCAST_MODE_BLOCK=1]="BROADCAST_MODE_BLOCK",e[e.BROADCAST_MODE_SYNC=2]="BROADCAST_MODE_SYNC",e[e.BROADCAST_MODE_ASYNC=3]="BROADCAST_MODE_ASYNC",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.BroadcastMode||(t.BroadcastMode={})),t.broadcastModeFromJSON=A,t.broadcastModeToJSON=w;var x={events:"",orderBy:0};t.GetTxsEventRequest={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create(),r=i(e.events);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.uint32(10).string(a)}}catch(e){r.e(e)}finally{r.f()}return void 0!==e.pagination&&l.PageRequest.encode(e.pagination,n.uint32(18).fork()).ldelim(),0!==e.orderBy&&n.uint32(24).int32(e.orderBy),n},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},x);for(a.events=[];n.pos>>3){case 1:a.events.push(n.string());break;case 2:a.pagination=l.PageRequest.decode(n,n.uint32());break;case 3:a.orderBy=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},x);if(t.events=[],void 0!==e.events&&null!==e.events){var n,r=i(e.events);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.events.push(String(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageRequest.fromJSON(e.pagination):t.pagination=void 0,void 0!==e.orderBy&&null!==e.orderBy?t.orderBy=v(e.orderBy):t.orderBy=0,t},toJSON:function(e){var t={};return e.events?t.events=e.events.map((function(e){return e})):t.events=[],void 0!==e.pagination&&(t.pagination=e.pagination?l.PageRequest.toJSON(e.pagination):void 0),void 0!==e.orderBy&&(t.orderBy=g(e.orderBy)),t},fromPartial:function(e){var t=Object.assign({},x);if(t.events=[],void 0!==e.events&&null!==e.events){var n,r=i(e.events);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.events.push(a)}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageRequest.fromPartial(e.pagination):t.pagination=void 0,void 0!==e.orderBy&&null!==e.orderBy?t.orderBy=e.orderBy:t.orderBy=0,t}};var _={};t.GetTxsEventResponse={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create(),r=i(e.txs);try{for(r.s();!(t=r.n()).done;){var a=t.value;p.Tx.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var o,s=i(e.txResponses);try{for(s.s();!(o=s.n()).done;){var c=o.value;b.TxResponse.encode(c,n.uint32(18).fork()).ldelim()}}catch(e){s.e(e)}finally{s.f()}return void 0!==e.pagination&&l.PageResponse.encode(e.pagination,n.uint32(26).fork()).ldelim(),n},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);for(a.txs=[],a.txResponses=[];n.pos>>3){case 1:a.txs.push(p.Tx.decode(n,n.uint32()));break;case 2:a.txResponses.push(b.TxResponse.decode(n,n.uint32()));break;case 3:a.pagination=l.PageResponse.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},_);if(t.txs=[],t.txResponses=[],void 0!==e.txs&&null!==e.txs){var n,r=i(e.txs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.txs.push(p.Tx.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}if(void 0!==e.txResponses&&null!==e.txResponses){var o,s=i(e.txResponses);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.txResponses.push(b.TxResponse.fromJSON(c))}}catch(e){s.e(e)}finally{s.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageResponse.fromJSON(e.pagination):t.pagination=void 0,t},toJSON:function(e){var t={};return e.txs?t.txs=e.txs.map((function(e){return e?p.Tx.toJSON(e):void 0})):t.txs=[],e.txResponses?t.txResponses=e.txResponses.map((function(e){return e?b.TxResponse.toJSON(e):void 0})):t.txResponses=[],void 0!==e.pagination&&(t.pagination=e.pagination?l.PageResponse.toJSON(e.pagination):void 0),t},fromPartial:function(e){var t=Object.assign({},_);if(t.txs=[],t.txResponses=[],void 0!==e.txs&&null!==e.txs){var n,r=i(e.txs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.txs.push(p.Tx.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}if(void 0!==e.txResponses&&null!==e.txResponses){var o,s=i(e.txResponses);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.txResponses.push(b.TxResponse.fromPartial(c))}}catch(e){s.e(e)}finally{s.f()}}return void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageResponse.fromPartial(e.pagination):t.pagination=void 0,t}};var k={mode:0};t.BroadcastTxRequest={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return 0!==e.txBytes.length&&t.uint32(10).bytes(e.txBytes),0!==e.mode&&t.uint32(16).int32(e.mode),t},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);for(a.txBytes=new Uint8Array;n.pos>>3){case 1:a.txBytes=n.bytes();break;case 2:a.mode=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},k);return t.txBytes=new Uint8Array,void 0!==e.txBytes&&null!==e.txBytes&&(t.txBytes=D(e.txBytes)),void 0!==e.mode&&null!==e.mode?t.mode=A(e.mode):t.mode=0,t},toJSON:function(e){var t={};return void 0!==e.txBytes&&(t.txBytes=U(void 0!==e.txBytes?e.txBytes:new Uint8Array)),void 0!==e.mode&&(t.mode=w(e.mode)),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.txBytes&&null!==e.txBytes?t.txBytes=e.txBytes:t.txBytes=new Uint8Array,void 0!==e.mode&&null!==e.mode?t.mode=e.mode:t.mode=0,t}};var I={};t.BroadcastTxResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return void 0!==e.txResponse&&b.TxResponse.encode(e.txResponse,t.uint32(10).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},I);n.pos>>3==1?a.txResponse=b.TxResponse.decode(n,n.uint32()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},I);return void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=b.TxResponse.fromJSON(e.txResponse):t.txResponse=void 0,t},toJSON:function(e){var t={};return void 0!==e.txResponse&&(t.txResponse=e.txResponse?b.TxResponse.toJSON(e.txResponse):void 0),t},fromPartial:function(e){var t=Object.assign({},I);return void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=b.TxResponse.fromPartial(e.txResponse):t.txResponse=void 0,t}};var S={};t.SimulateRequest={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return void 0!==e.tx&&p.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),0!==e.txBytes.length&&t.uint32(18).bytes(e.txBytes),t},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},S);for(a.txBytes=new Uint8Array;n.pos>>3){case 1:a.tx=p.Tx.decode(n,n.uint32());break;case 2:a.txBytes=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},S);return t.txBytes=new Uint8Array,void 0!==e.tx&&null!==e.tx?t.tx=p.Tx.fromJSON(e.tx):t.tx=void 0,void 0!==e.txBytes&&null!==e.txBytes&&(t.txBytes=D(e.txBytes)),t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=e.tx?p.Tx.toJSON(e.tx):void 0),void 0!==e.txBytes&&(t.txBytes=U(void 0!==e.txBytes?e.txBytes:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},S);return void 0!==e.tx&&null!==e.tx?t.tx=p.Tx.fromPartial(e.tx):t.tx=void 0,void 0!==e.txBytes&&null!==e.txBytes?t.txBytes=e.txBytes:t.txBytes=new Uint8Array,t}};var E={};t.SimulateResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return void 0!==e.gasInfo&&b.GasInfo.encode(e.gasInfo,t.uint32(10).fork()).ldelim(),void 0!==e.result&&b.Result.encode(e.result,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},E);n.pos>>3){case 1:a.gasInfo=b.GasInfo.decode(n,n.uint32());break;case 2:a.result=b.Result.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},E);return void 0!==e.gasInfo&&null!==e.gasInfo?t.gasInfo=b.GasInfo.fromJSON(e.gasInfo):t.gasInfo=void 0,void 0!==e.result&&null!==e.result?t.result=b.Result.fromJSON(e.result):t.result=void 0,t},toJSON:function(e){var t={};return void 0!==e.gasInfo&&(t.gasInfo=e.gasInfo?b.GasInfo.toJSON(e.gasInfo):void 0),void 0!==e.result&&(t.result=e.result?b.Result.toJSON(e.result):void 0),t},fromPartial:function(e){var t=Object.assign({},E);return void 0!==e.gasInfo&&null!==e.gasInfo?t.gasInfo=b.GasInfo.fromPartial(e.gasInfo):t.gasInfo=void 0,void 0!==e.result&&null!==e.result?t.result=b.Result.fromPartial(e.result):t.result=void 0,t}};var C={hash:""};t.GetTxRequest={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return""!==e.hash&&t.uint32(10).string(e.hash),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},C);n.pos>>3==1?a.hash=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},C);return void 0!==e.hash&&null!==e.hash?t.hash=String(e.hash):t.hash="",t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=e.hash),t},fromPartial:function(e){var t=Object.assign({},C);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash="",t}};var T={};t.GetTxResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return void 0!==e.tx&&p.Tx.encode(e.tx,t.uint32(10).fork()).ldelim(),void 0!==e.txResponse&&b.TxResponse.encode(e.txResponse,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},T);n.pos>>3){case 1:a.tx=p.Tx.decode(n,n.uint32());break;case 2:a.txResponse=b.TxResponse.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},T);return void 0!==e.tx&&null!==e.tx?t.tx=p.Tx.fromJSON(e.tx):t.tx=void 0,void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=b.TxResponse.fromJSON(e.txResponse):t.txResponse=void 0,t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=e.tx?p.Tx.toJSON(e.tx):void 0),void 0!==e.txResponse&&(t.txResponse=e.txResponse?b.TxResponse.toJSON(e.txResponse):void 0),t},fromPartial:function(e){var t=Object.assign({},T);return void 0!==e.tx&&null!==e.tx?t.tx=p.Tx.fromPartial(e.tx):t.tx=void 0,void 0!==e.txResponse&&null!==e.txResponse?t.txResponse=b.TxResponse.fromPartial(e.txResponse):t.txResponse=void 0,t}};var O={height:u.default.ZERO};t.GetBlockWithTxsRequest={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create();return e.height.isZero()||t.uint32(8).int64(e.height),void 0!==e.pagination&&l.PageRequest.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},O);n.pos>>3){case 1:a.height=n.int64();break;case 2:a.pagination=l.PageRequest.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},O);return void 0!==e.height&&null!==e.height?t.height=u.default.fromString(e.height):t.height=u.default.ZERO,void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageRequest.fromJSON(e.pagination):t.pagination=void 0,t},toJSON:function(e){var t={};return void 0!==e.height&&(t.height=(e.height||u.default.ZERO).toString()),void 0!==e.pagination&&(t.pagination=e.pagination?l.PageRequest.toJSON(e.pagination):void 0),t},fromPartial:function(e){var t=Object.assign({},O);return void 0!==e.height&&null!==e.height?t.height=e.height:t.height=u.default.ZERO,void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageRequest.fromPartial(e.pagination):t.pagination=void 0,t}};var P={};t.GetBlockWithTxsResponse={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.Writer.create(),r=i(e.txs);try{for(r.s();!(t=r.n()).done;){var a=t.value;p.Tx.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return void 0!==e.blockId&&h.BlockID.encode(e.blockId,n.uint32(18).fork()).ldelim(),void 0!==e.block&&y.Block.encode(e.block,n.uint32(26).fork()).ldelim(),void 0!==e.pagination&&l.PageResponse.encode(e.pagination,n.uint32(34).fork()).ldelim(),n},decode:function(e,t){var n=e instanceof f.default.Reader?e:new f.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},P);for(a.txs=[];n.pos>>3){case 1:a.txs.push(p.Tx.decode(n,n.uint32()));break;case 2:a.blockId=h.BlockID.decode(n,n.uint32());break;case 3:a.block=y.Block.decode(n,n.uint32());break;case 4:a.pagination=l.PageResponse.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},P);if(t.txs=[],void 0!==e.txs&&null!==e.txs){var n,r=i(e.txs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.txs.push(p.Tx.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.blockId&&null!==e.blockId?t.blockId=h.BlockID.fromJSON(e.blockId):t.blockId=void 0,void 0!==e.block&&null!==e.block?t.block=y.Block.fromJSON(e.block):t.block=void 0,void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageResponse.fromJSON(e.pagination):t.pagination=void 0,t},toJSON:function(e){var t={};return e.txs?t.txs=e.txs.map((function(e){return e?p.Tx.toJSON(e):void 0})):t.txs=[],void 0!==e.blockId&&(t.blockId=e.blockId?h.BlockID.toJSON(e.blockId):void 0),void 0!==e.block&&(t.block=e.block?y.Block.toJSON(e.block):void 0),void 0!==e.pagination&&(t.pagination=e.pagination?l.PageResponse.toJSON(e.pagination):void 0),t},fromPartial:function(e){var t=Object.assign({},P);if(t.txs=[],void 0!==e.txs&&null!==e.txs){var n,r=i(e.txs);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.txs.push(p.Tx.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.blockId&&null!==e.blockId?t.blockId=h.BlockID.fromPartial(e.blockId):t.blockId=void 0,void 0!==e.block&&null!==e.block?t.block=y.Block.fromPartial(e.block):t.block=void 0,void 0!==e.pagination&&null!==e.pagination?t.pagination=l.PageResponse.fromPartial(e.pagination):t.pagination=void 0,t}};var M=function(){function e(t){r(this,e),this.rpc=t,this.Simulate=this.Simulate.bind(this),this.GetTx=this.GetTx.bind(this),this.BroadcastTx=this.BroadcastTx.bind(this),this.GetTxsEvent=this.GetTxsEvent.bind(this),this.GetBlockWithTxs=this.GetBlockWithTxs.bind(this)}return a(e,[{key:"Simulate",value:function(e,n){return this.rpc.unary(t.ServiceSimulateDesc,t.SimulateRequest.fromPartial(e),n)}},{key:"GetTx",value:function(e,n){return this.rpc.unary(t.ServiceGetTxDesc,t.GetTxRequest.fromPartial(e),n)}},{key:"BroadcastTx",value:function(e,n){return this.rpc.unary(t.ServiceBroadcastTxDesc,t.BroadcastTxRequest.fromPartial(e),n)}},{key:"GetTxsEvent",value:function(e,n){return this.rpc.unary(t.ServiceGetTxsEventDesc,t.GetTxsEventRequest.fromPartial(e),n)}},{key:"GetBlockWithTxs",value:function(e,n){return this.rpc.unary(t.ServiceGetBlockWithTxsDesc,t.GetBlockWithTxsRequest.fromPartial(e),n)}}]),e}();t.ServiceClientImpl=M,t.ServiceDesc={serviceName:"cosmos.tx.v1beta1.Service"},t.ServiceSimulateDesc={methodName:"Simulate",service:t.ServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.SimulateRequest.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.SimulateResponse.decode(e)),{toObject:function(){return this}})}}},t.ServiceGetTxDesc={methodName:"GetTx",service:t.ServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.GetTxRequest.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.GetTxResponse.decode(e)),{toObject:function(){return this}})}}},t.ServiceBroadcastTxDesc={methodName:"BroadcastTx",service:t.ServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.BroadcastTxRequest.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.BroadcastTxResponse.decode(e)),{toObject:function(){return this}})}}},t.ServiceGetTxsEventDesc={methodName:"GetTxsEvent",service:t.ServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.GetTxsEventRequest.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.GetTxsEventResponse.decode(e)),{toObject:function(){return this}})}}},t.ServiceGetBlockWithTxsDesc={methodName:"GetBlockWithTxs",service:t.ServiceDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.GetBlockWithTxsRequest.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.GetBlockWithTxsResponse.decode(e)),{toObject:function(){return this}})}}};var B=function(){function e(t,n){r(this,e),this.host=t,this.options=n}return a(e,[{key:"unary",value:function(e,t,n){var r,a=this,i=Object.assign(Object.assign({},t),e.requestType),o=n&&this.options.metadata?new m.BrowserHeaders(Object.assign(Object.assign({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise((function(t,n){d.grpc.unary(e,{request:i,host:a.host,metadata:o,transport:a.options.transport,debug:a.options.debug,onEnd:function(e){if(e.status===d.grpc.Code.OK)t(e.message);else{var r=new Error(e.statusMessage);r.code=e.status,r.metadata=e.trailers,n(r)}}})}))}}]),e}();t.GrpcWebImpl=B;var N=function(){if(void 0!==N)return N;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),R=N.atob||function(e){return N.Buffer.from(e,"base64").toString("binary")};function D(e){for(var t=R(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.body&&t.TxBody.encode(e.body,n.uint32(10).fork()).ldelim(),void 0!==e.authInfo&&t.AuthInfo.encode(e.authInfo,n.uint32(18).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.uint32(26).bytes(s)}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);for(i.signatures=[];r.pos>>3){case 1:i.body=t.TxBody.decode(r,r.uint32());break;case 2:i.authInfo=t.AuthInfo.decode(r,r.uint32());break;case 3:i.signatures.push(r.bytes());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},f);if(n.signatures=[],void 0!==e.body&&null!==e.body?n.body=t.TxBody.fromJSON(e.body):n.body=void 0,void 0!==e.authInfo&&null!==e.authInfo?n.authInfo=t.AuthInfo.fromJSON(e.authInfo):n.authInfo=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(_(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.body&&(n.body=e.body?t.TxBody.toJSON(e.body):void 0),void 0!==e.authInfo&&(n.authInfo=e.authInfo?t.AuthInfo.toJSON(e.authInfo):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return I(void 0!==e?e:new Uint8Array)})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},f);if(n.signatures=[],void 0!==e.body&&null!==e.body?n.body=t.TxBody.fromPartial(e.body):n.body=void 0,void 0!==e.authInfo&&null!==e.authInfo?n.authInfo=t.AuthInfo.fromPartial(e.authInfo):n.authInfo=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(o)}}catch(e){i.e(e)}finally{i.f()}}return n}};var l={};t.TxRaw={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes);var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(26).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.signatures=[],a.bodyBytes=new Uint8Array,a.authInfoBytes=new Uint8Array;n.pos>>3){case 1:a.bodyBytes=n.bytes();break;case 2:a.authInfoBytes=n.bytes();break;case 3:a.signatures.push(n.bytes());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.signatures=[],t.bodyBytes=new Uint8Array,t.authInfoBytes=new Uint8Array,void 0!==e.bodyBytes&&null!==e.bodyBytes&&(t.bodyBytes=_(e.bodyBytes)),void 0!==e.authInfoBytes&&null!==e.authInfoBytes&&(t.authInfoBytes=_(e.authInfoBytes)),void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(_(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.bodyBytes&&(t.bodyBytes=I(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=I(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),e.signatures?t.signatures=e.signatures.map((function(e){return I(void 0!==e?e:new Uint8Array)})):t.signatures=[],t},fromPartial:function(e){var t=Object.assign({},l);if(t.signatures=[],void 0!==e.bodyBytes&&null!==e.bodyBytes?t.bodyBytes=e.bodyBytes:t.bodyBytes=new Uint8Array,void 0!==e.authInfoBytes&&null!==e.authInfoBytes?t.authInfoBytes=e.authInfoBytes:t.authInfoBytes=new Uint8Array,void 0!==e.signatures&&null!==e.signatures){var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.signatures.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var b={chainId:"",accountNumber:i.default.UZERO};t.SignDoc={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes),""!==e.chainId&&t.uint32(26).string(e.chainId),e.accountNumber.isZero()||t.uint32(32).uint64(e.accountNumber),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.bodyBytes=new Uint8Array,a.authInfoBytes=new Uint8Array;n.pos>>3){case 1:a.bodyBytes=n.bytes();break;case 2:a.authInfoBytes=n.bytes();break;case 3:a.chainId=n.string();break;case 4:a.accountNumber=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return t.bodyBytes=new Uint8Array,t.authInfoBytes=new Uint8Array,void 0!==e.bodyBytes&&null!==e.bodyBytes&&(t.bodyBytes=_(e.bodyBytes)),void 0!==e.authInfoBytes&&null!==e.authInfoBytes&&(t.authInfoBytes=_(e.authInfoBytes)),void 0!==e.chainId&&null!==e.chainId?t.chainId=String(e.chainId):t.chainId="",void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=i.default.fromString(e.accountNumber):t.accountNumber=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.bodyBytes&&(t.bodyBytes=I(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=I(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.bodyBytes&&null!==e.bodyBytes?t.bodyBytes=e.bodyBytes:t.bodyBytes=new Uint8Array,void 0!==e.authInfoBytes&&null!==e.authInfoBytes?t.authInfoBytes=e.authInfoBytes:t.authInfoBytes=new Uint8Array,void 0!==e.chainId&&null!==e.chainId?t.chainId=e.chainId:t.chainId="",void 0!==e.accountNumber&&null!==e.accountNumber?t.accountNumber=e.accountNumber:t.accountNumber=i.default.UZERO,t}};var p={memo:"",timeoutHeight:i.default.UZERO};t.TxBody={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.messages);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Any.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}""!==e.memo&&n.uint32(18).string(e.memo),e.timeoutHeight.isZero()||n.uint32(24).uint64(e.timeoutHeight);var c,u=r(e.extensionOptions);try{for(u.s();!(c=u.n()).done;){var d=c.value;s.Any.encode(d,n.uint32(8186).fork()).ldelim()}}catch(e){u.e(e)}finally{u.f()}var f,l=r(e.nonCriticalExtensionOptions);try{for(l.s();!(f=l.n()).done;){var b=f.value;s.Any.encode(b,n.uint32(16378).fork()).ldelim()}}catch(e){l.e(e)}finally{l.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.messages=[],a.extensionOptions=[],a.nonCriticalExtensionOptions=[];n.pos>>3){case 1:a.messages.push(s.Any.decode(n,n.uint32()));break;case 2:a.memo=n.string();break;case 3:a.timeoutHeight=n.uint64();break;case 1023:a.extensionOptions.push(s.Any.decode(n,n.uint32()));break;case 2047:a.nonCriticalExtensionOptions.push(s.Any.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);if(t.messages=[],t.extensionOptions=[],t.nonCriticalExtensionOptions=[],void 0!==e.messages&&null!==e.messages){var n,a=r(e.messages);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.messages.push(s.Any.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.memo&&null!==e.memo?t.memo=String(e.memo):t.memo="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=i.default.fromString(e.timeoutHeight):t.timeoutHeight=i.default.UZERO,void 0!==e.extensionOptions&&null!==e.extensionOptions){var c,u=r(e.extensionOptions);try{for(u.s();!(c=u.n()).done;){var d=c.value;t.extensionOptions.push(s.Any.fromJSON(d))}}catch(e){u.e(e)}finally{u.f()}}if(void 0!==e.nonCriticalExtensionOptions&&null!==e.nonCriticalExtensionOptions){var f,l=r(e.nonCriticalExtensionOptions);try{for(l.s();!(f=l.n()).done;){var b=f.value;t.nonCriticalExtensionOptions.push(s.Any.fromJSON(b))}}catch(e){l.e(e)}finally{l.f()}}return t},toJSON:function(e){var t={};return e.messages?t.messages=e.messages.map((function(e){return e?s.Any.toJSON(e):void 0})):t.messages=[],void 0!==e.memo&&(t.memo=e.memo),void 0!==e.timeoutHeight&&(t.timeoutHeight=(e.timeoutHeight||i.default.UZERO).toString()),e.extensionOptions?t.extensionOptions=e.extensionOptions.map((function(e){return e?s.Any.toJSON(e):void 0})):t.extensionOptions=[],e.nonCriticalExtensionOptions?t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map((function(e){return e?s.Any.toJSON(e):void 0})):t.nonCriticalExtensionOptions=[],t},fromPartial:function(e){var t=Object.assign({},p);if(t.messages=[],t.extensionOptions=[],t.nonCriticalExtensionOptions=[],void 0!==e.messages&&null!==e.messages){var n,a=r(e.messages);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.messages.push(s.Any.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.memo&&null!==e.memo?t.memo=e.memo:t.memo="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=e.timeoutHeight:t.timeoutHeight=i.default.UZERO,void 0!==e.extensionOptions&&null!==e.extensionOptions){var c,u=r(e.extensionOptions);try{for(u.s();!(c=u.n()).done;){var d=c.value;t.extensionOptions.push(s.Any.fromPartial(d))}}catch(e){u.e(e)}finally{u.f()}}if(void 0!==e.nonCriticalExtensionOptions&&null!==e.nonCriticalExtensionOptions){var f,l=r(e.nonCriticalExtensionOptions);try{for(l.s();!(f=l.n()).done;){var b=f.value;t.nonCriticalExtensionOptions.push(s.Any.fromPartial(b))}}catch(e){l.e(e)}finally{l.f()}}return t}};var h={};t.AuthInfo={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.signerInfos);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.SignerInfo.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return void 0!==e.fee&&t.Fee.encode(e.fee,a.uint32(18).fork()).ldelim(),a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},h);for(i.signerInfos=[];r.pos>>3){case 1:i.signerInfos.push(t.SignerInfo.decode(r,r.uint32()));break;case 2:i.fee=t.Fee.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},h);if(n.signerInfos=[],void 0!==e.signerInfos&&null!==e.signerInfos){var a,i=r(e.signerInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signerInfos.push(t.SignerInfo.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.fee&&null!==e.fee?n.fee=t.Fee.fromJSON(e.fee):n.fee=void 0,n},toJSON:function(e){var n={};return e.signerInfos?n.signerInfos=e.signerInfos.map((function(e){return e?t.SignerInfo.toJSON(e):void 0})):n.signerInfos=[],void 0!==e.fee&&(n.fee=e.fee?t.Fee.toJSON(e.fee):void 0),n},fromPartial:function(e){var n=Object.assign({},h);if(n.signerInfos=[],void 0!==e.signerInfos&&null!==e.signerInfos){var a,i=r(e.signerInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signerInfos.push(t.SignerInfo.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.fee&&null!==e.fee?n.fee=t.Fee.fromPartial(e.fee):n.fee=void 0,n}};var y={sequence:i.default.UZERO};t.SignerInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.publicKey&&s.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),void 0!==e.modeInfo&&t.ModeInfo.encode(e.modeInfo,n.uint32(18).fork()).ldelim(),e.sequence.isZero()||n.uint32(24).uint64(e.sequence),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},y);r.pos>>3){case 1:i.publicKey=s.Any.decode(r,r.uint32());break;case 2:i.modeInfo=t.ModeInfo.decode(r,r.uint32());break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},y);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=s.Any.fromJSON(e.publicKey):n.publicKey=void 0,void 0!==e.modeInfo&&null!==e.modeInfo?n.modeInfo=t.ModeInfo.fromJSON(e.modeInfo):n.modeInfo=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=i.default.fromString(e.sequence):n.sequence=i.default.UZERO,n},toJSON:function(e){var n={};return void 0!==e.publicKey&&(n.publicKey=e.publicKey?s.Any.toJSON(e.publicKey):void 0),void 0!==e.modeInfo&&(n.modeInfo=e.modeInfo?t.ModeInfo.toJSON(e.modeInfo):void 0),void 0!==e.sequence&&(n.sequence=(e.sequence||i.default.UZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},y);return void 0!==e.publicKey&&null!==e.publicKey?n.publicKey=s.Any.fromPartial(e.publicKey):n.publicKey=void 0,void 0!==e.modeInfo&&null!==e.modeInfo?n.modeInfo=t.ModeInfo.fromPartial(e.modeInfo):n.modeInfo=void 0,void 0!==e.sequence&&null!==e.sequence?n.sequence=e.sequence:n.sequence=i.default.UZERO,n}};var m={};t.ModeInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.single&&t.ModeInfo_Single.encode(e.single,n.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.ModeInfo_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},m);r.pos>>3){case 1:i.single=t.ModeInfo_Single.decode(r,r.uint32());break;case 2:i.multi=t.ModeInfo_Multi.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},m);return void 0!==e.single&&null!==e.single?n.single=t.ModeInfo_Single.fromJSON(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.ModeInfo_Multi.fromJSON(e.multi):n.multi=void 0,n},toJSON:function(e){var n={};return void 0!==e.single&&(n.single=e.single?t.ModeInfo_Single.toJSON(e.single):void 0),void 0!==e.multi&&(n.multi=e.multi?t.ModeInfo_Multi.toJSON(e.multi):void 0),n},fromPartial:function(e){var n=Object.assign({},m);return void 0!==e.single&&null!==e.single?n.single=t.ModeInfo_Single.fromPartial(e.single):n.single=void 0,void 0!==e.multi&&null!==e.multi?n.multi=t.ModeInfo_Multi.fromPartial(e.multi):n.multi=void 0,n}};var v={mode:0};t.ModeInfo_Single={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.mode&&t.uint32(8).int32(e.mode),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3==1?a.mode=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.mode&&null!==e.mode?t.mode=c.signModeFromJSON(e.mode):t.mode=0,t},toJSON:function(e){var t={};return void 0!==e.mode&&(t.mode=c.signModeToJSON(e.mode)),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.mode&&null!==e.mode?t.mode=e.mode:t.mode=0,t}};var g={};t.ModeInfo_Multi={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.bitarray&&u.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();var a,i=r(e.modeInfos);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.ModeInfo.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},g);for(i.modeInfos=[];r.pos>>3){case 1:i.bitarray=u.CompactBitArray.decode(r,r.uint32());break;case 2:i.modeInfos.push(t.ModeInfo.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},g);if(n.modeInfos=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromJSON(e.bitarray):n.bitarray=void 0,void 0!==e.modeInfos&&null!==e.modeInfos){var a,i=r(e.modeInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.modeInfos.push(t.ModeInfo.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.bitarray&&(n.bitarray=e.bitarray?u.CompactBitArray.toJSON(e.bitarray):void 0),e.modeInfos?n.modeInfos=e.modeInfos.map((function(e){return e?t.ModeInfo.toJSON(e):void 0})):n.modeInfos=[],n},fromPartial:function(e){var n=Object.assign({},g);if(n.modeInfos=[],void 0!==e.bitarray&&null!==e.bitarray?n.bitarray=u.CompactBitArray.fromPartial(e.bitarray):n.bitarray=void 0,void 0!==e.modeInfos&&null!==e.modeInfos){var a,i=r(e.modeInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.modeInfos.push(t.ModeInfo.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var A={gasLimit:i.default.UZERO,payer:"",granter:""};t.Fee={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.amount);try{for(a.s();!(t=a.n()).done;){var i=t.value;d.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return e.gasLimit.isZero()||n.uint32(16).uint64(e.gasLimit),""!==e.payer&&n.uint32(26).string(e.payer),""!==e.granter&&n.uint32(34).string(e.granter),n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.amount=[];n.pos>>3){case 1:a.amount.push(d.Coin.decode(n,n.uint32()));break;case 2:a.gasLimit=n.uint64();break;case 3:a.payer=n.string();break;case 4:a.granter=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(d.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.gasLimit&&null!==e.gasLimit?t.gasLimit=i.default.fromString(e.gasLimit):t.gasLimit=i.default.UZERO,void 0!==e.payer&&null!==e.payer?t.payer=String(e.payer):t.payer="",void 0!==e.granter&&null!==e.granter?t.granter=String(e.granter):t.granter="",t},toJSON:function(e){var t={};return e.amount?t.amount=e.amount.map((function(e){return e?d.Coin.toJSON(e):void 0})):t.amount=[],void 0!==e.gasLimit&&(t.gasLimit=(e.gasLimit||i.default.UZERO).toString()),void 0!==e.payer&&(t.payer=e.payer),void 0!==e.granter&&(t.granter=e.granter),t},fromPartial:function(e){var t=Object.assign({},A);if(t.amount=[],void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(d.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.gasLimit&&null!==e.gasLimit?t.gasLimit=e.gasLimit:t.gasLimit=i.default.UZERO,void 0!==e.payer&&null!==e.payer?t.payer=e.payer:t.payer="",void 0!==e.granter&&null!==e.granter?t.granter=e.granter:t.granter="",t}};var w=function(){if(void 0!==w)return w;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),x=w.atob||function(e){return w.Buffer.from(e,"base64").toString("binary")};function _(e){for(var t=x(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.name&&u.uint32(10).string(e.name),void 0!==e.time&&s.Timestamp.encode((t=e.time,c=t.getTime()/1e3,n=a.default.fromNumber(c),r=t.getTime()%1e3*1e6,{seconds:n,nanos:r}),u.uint32(18).fork()).ldelim(),e.height.isZero()||u.uint32(24).int64(e.height),""!==e.info&&u.uint32(34).string(e.info),void 0!==e.upgradedClientState&&o.Any.encode(e.upgradedClientState,u.uint32(42).fork()).ldelim(),u},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.name=n.string();break;case 2:a.time=l(s.Timestamp.decode(n,n.uint32()));break;case 3:a.height=n.int64();break;case 4:a.info=n.string();break;case 5:a.upgradedClientState=o.Any.decode(n,n.uint32());break;default:n.skipType(7&u)}}return a},fromJSON:function(e){var t,n=Object.assign({},c);return void 0!==e.name&&null!==e.name?n.name=String(e.name):n.name="",void 0!==e.time&&null!==e.time?n.time=(t=e.time)instanceof Date?t:"string"==typeof t?new Date(t):l(s.Timestamp.fromJSON(t)):n.time=void 0,void 0!==e.height&&null!==e.height?n.height=a.default.fromString(e.height):n.height=a.default.ZERO,void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.upgradedClientState&&null!==e.upgradedClientState?n.upgradedClientState=o.Any.fromJSON(e.upgradedClientState):n.upgradedClientState=void 0,n},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.time&&(t.time=e.time.toISOString()),void 0!==e.height&&(t.height=(e.height||a.default.ZERO).toString()),void 0!==e.info&&(t.info=e.info),void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?o.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.time&&null!==e.time?t.time=e.time:t.time=void 0,void 0!==e.height&&null!==e.height?t.height=e.height:t.height=a.default.ZERO,void 0!==e.info&&null!==e.info?t.info=e.info:t.info="",void 0!==e.upgradedClientState&&null!==e.upgradedClientState?t.upgradedClientState=o.Any.fromPartial(e.upgradedClientState):t.upgradedClientState=void 0,t}};var u={title:"",description:""};t.SoftwareUpgradeProposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.title&&n.uint32(10).string(e.title),""!==e.description&&n.uint32(18).string(e.description),void 0!==e.plan&&t.Plan.encode(e.plan,n.uint32(26).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof i.default.Reader?e:new i.default.Reader(e),a=void 0===n?r.len:r.pos+n,o=Object.assign({},u);r.pos>>3){case 1:o.title=r.string();break;case 2:o.description=r.string();break;case 3:o.plan=t.Plan.decode(r,r.uint32());break;default:r.skipType(7&s)}}return o},fromJSON:function(e){var n=Object.assign({},u);return void 0!==e.title&&null!==e.title?n.title=String(e.title):n.title="",void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.plan&&null!==e.plan?n.plan=t.Plan.fromJSON(e.plan):n.plan=void 0,n},toJSON:function(e){var n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.description&&(n.description=e.description),void 0!==e.plan&&(n.plan=e.plan?t.Plan.toJSON(e.plan):void 0),n},fromPartial:function(e){var n=Object.assign({},u);return void 0!==e.title&&null!==e.title?n.title=e.title:n.title="",void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.plan&&null!==e.plan?n.plan=t.Plan.fromPartial(e.plan):n.plan=void 0,n}};var d={title:"",description:""};t.CancelSoftwareUpgradeProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",t}};var f={name:"",version:a.default.UZERO};function l(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}t.ModuleVersion={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.name&&t.uint32(10).string(e.name),e.version.isZero()||t.uint32(16).uint64(e.version),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.name=n.string();break;case 2:a.version=n.uint64();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.name&&null!==e.name?t.name=String(e.name):t.name="",void 0!==e.version&&null!==e.version?t.version=a.default.fromString(e.version):t.version=a.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.version&&(t.version=(e.version||a.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.name&&null!==e.name?t.name=e.name:t.name="",void 0!==e.version&&null!==e.version?t.version=e.version:t.version=a.default.UZERO,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},95350:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(33482).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgDonateAllVestingTokensDesc=t.MsgCreatePeriodicVestingAccountDesc=t.MsgCreateVestingAccountDesc=t.MsgDesc=t.MsgClientImpl=t.MsgDonateAllVestingTokensResponse=t.MsgDonateAllVestingTokens=t.MsgCreatePeriodicVestingAccountResponse=t.MsgCreatePeriodicVestingAccount=t.MsgCreateVestingAccountResponse=t.MsgCreateVestingAccount=t.protobufPackage=void 0;var s=o(n(24141)),c=n(34882),u=o(n(1)),d=n(46711),f=n(2121),l=n(54529);t.protobufPackage="cosmos.vesting.v1beta1";var b={fromAddress:"",toAddress:"",endTime:s.default.ZERO,delayed:!1};t.MsgCreateVestingAccount={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress);var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;f.Coin.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return e.endTime.isZero()||t.uint32(32).int64(e.endTime),!0===e.delayed&&t.uint32(40).bool(e.delayed),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.amount=[];n.pos>>3){case 1:a.fromAddress=n.string();break;case 2:a.toAddress=n.string();break;case 3:a.amount.push(f.Coin.decode(n,n.uint32()));break;case 4:a.endTime=n.int64();break;case 5:a.delayed=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);if(t.amount=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=String(e.toAddress):t.toAddress="",void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(f.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=s.default.fromString(e.endTime):t.endTime=s.default.ZERO,void 0!==e.delayed&&null!==e.delayed?t.delayed=Boolean(e.delayed):t.delayed=!1,t},toJSON:function(e){var t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map((function(e){return e?f.Coin.toJSON(e):void 0})):t.amount=[],void 0!==e.endTime&&(t.endTime=(e.endTime||s.default.ZERO).toString()),void 0!==e.delayed&&(t.delayed=e.delayed),t},fromPartial:function(e){var t=Object.assign({},b);if(t.amount=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=e.toAddress:t.toAddress="",void 0!==e.amount&&null!==e.amount){var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.amount.push(f.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=e.endTime:t.endTime=s.default.ZERO,void 0!==e.delayed&&null!==e.delayed?t.delayed=e.delayed:t.delayed=!1,t}};var p={};t.MsgCreateVestingAccountResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress),e.startTime.isZero()||t.uint32(24).int64(e.startTime);var n,r=i(e.vestingPeriods);try{for(r.s();!(n=r.n()).done;){var a=n.value;l.Period.encode(a,t.uint32(34).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.vestingPeriods=[];n.pos>>3){case 1:a.fromAddress=n.string();break;case 2:a.toAddress=n.string();break;case 3:a.startTime=n.int64();break;case 4:a.vestingPeriods.push(l.Period.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);if(t.vestingPeriods=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=String(e.toAddress):t.toAddress="",void 0!==e.startTime&&null!==e.startTime?t.startTime=s.default.fromString(e.startTime):t.startTime=s.default.ZERO,void 0!==e.vestingPeriods&&null!==e.vestingPeriods){var n,r=i(e.vestingPeriods);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.vestingPeriods.push(l.Period.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),void 0!==e.startTime&&(t.startTime=(e.startTime||s.default.ZERO).toString()),e.vestingPeriods?t.vestingPeriods=e.vestingPeriods.map((function(e){return e?l.Period.toJSON(e):void 0})):t.vestingPeriods=[],t},fromPartial:function(e){var t=Object.assign({},h);if(t.vestingPeriods=[],void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",void 0!==e.toAddress&&null!==e.toAddress?t.toAddress=e.toAddress:t.toAddress="",void 0!==e.startTime&&null!==e.startTime?t.startTime=e.startTime:t.startTime=s.default.ZERO,void 0!==e.vestingPeriods&&null!==e.vestingPeriods){var n,r=i(e.vestingPeriods);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.vestingPeriods.push(l.Period.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var y={};t.MsgCreatePeriodicVestingAccountResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3==1?a.fromAddress=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=String(e.fromAddress):t.fromAddress="",t},toJSON:function(e){var t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.fromAddress&&null!==e.fromAddress?t.fromAddress=e.fromAddress:t.fromAddress="",t}};var v={};t.MsgDonateAllVestingTokensResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseAccount&&s.BaseAccount.encode(e.baseAccount,t.uint32(10).fork()).ldelim();var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}var u,d=r(e.delegatedFree);try{for(d.s();!(u=d.n()).done;){var f=u.value;c.Coin.encode(f,t.uint32(26).fork()).ldelim()}}catch(e){d.e(e)}finally{d.f()}var l,b=r(e.delegatedVesting);try{for(b.s();!(l=b.n()).done;){var p=l.value;c.Coin.encode(p,t.uint32(34).fork()).ldelim()}}catch(e){b.e(e)}finally{b.f()}return e.endTime.isZero()||t.uint32(40).int64(e.endTime),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.originalVesting=[],a.delegatedFree=[],a.delegatedVesting=[];n.pos>>3){case 1:a.baseAccount=s.BaseAccount.decode(n,n.uint32());break;case 2:a.originalVesting.push(c.Coin.decode(n,n.uint32()));break;case 3:a.delegatedFree.push(c.Coin.decode(n,n.uint32()));break;case 4:a.delegatedVesting.push(c.Coin.decode(n,n.uint32()));break;case 5:a.endTime=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);if(t.originalVesting=[],t.delegatedFree=[],t.delegatedVesting=[],void 0!==e.baseAccount&&null!==e.baseAccount?t.baseAccount=s.BaseAccount.fromJSON(e.baseAccount):t.baseAccount=void 0,void 0!==e.originalVesting&&null!==e.originalVesting){var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.originalVesting.push(c.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.delegatedFree&&null!==e.delegatedFree){var d,f=r(e.delegatedFree);try{for(f.s();!(d=f.n()).done;){var l=d.value;t.delegatedFree.push(c.Coin.fromJSON(l))}}catch(e){f.e(e)}finally{f.f()}}if(void 0!==e.delegatedVesting&&null!==e.delegatedVesting){var b,p=r(e.delegatedVesting);try{for(p.s();!(b=p.n()).done;){var h=b.value;t.delegatedVesting.push(c.Coin.fromJSON(h))}}catch(e){p.e(e)}finally{p.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=i.default.fromString(e.endTime):t.endTime=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.baseAccount&&(t.baseAccount=e.baseAccount?s.BaseAccount.toJSON(e.baseAccount):void 0),e.originalVesting?t.originalVesting=e.originalVesting.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.originalVesting=[],e.delegatedFree?t.delegatedFree=e.delegatedFree.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.delegatedFree=[],e.delegatedVesting?t.delegatedVesting=e.delegatedVesting.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.delegatedVesting=[],void 0!==e.endTime&&(t.endTime=(e.endTime||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},u);if(t.originalVesting=[],t.delegatedFree=[],t.delegatedVesting=[],void 0!==e.baseAccount&&null!==e.baseAccount?t.baseAccount=s.BaseAccount.fromPartial(e.baseAccount):t.baseAccount=void 0,void 0!==e.originalVesting&&null!==e.originalVesting){var n,a=r(e.originalVesting);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.originalVesting.push(c.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.delegatedFree&&null!==e.delegatedFree){var d,f=r(e.delegatedFree);try{for(f.s();!(d=f.n()).done;){var l=d.value;t.delegatedFree.push(c.Coin.fromPartial(l))}}catch(e){f.e(e)}finally{f.f()}}if(void 0!==e.delegatedVesting&&null!==e.delegatedVesting){var b,p=r(e.delegatedVesting);try{for(p.s();!(b=p.n()).done;){var h=b.value;t.delegatedVesting.push(c.Coin.fromPartial(h))}}catch(e){p.e(e)}finally{p.f()}}return void 0!==e.endTime&&null!==e.endTime?t.endTime=e.endTime:t.endTime=i.default.ZERO,t}};var d={startTime:i.default.ZERO};t.ContinuousVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),e.startTime.isZero()||n.uint32(16).int64(e.startTime),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);r.pos>>3){case 1:i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32());break;case 2:i.startTime=r.int64();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},d);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=i.default.fromString(e.startTime):n.startTime=i.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),void 0!==e.startTime&&(n.startTime=(e.startTime||i.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},d);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=e.startTime:n.startTime=i.default.ZERO,n}};var f={};t.DelayedVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);r.pos>>3==1?i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32()):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},f);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),n},fromPartial:function(e){var n=Object.assign({},f);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,n}};var l={length:i.default.ZERO};t.Period={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.length.isZero()||t.uint32(8).int64(e.length);var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.amount=[];n.pos>>3){case 1:a.length=n.int64();break;case 2:a.amount.push(c.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.amount=[],void 0!==e.length&&null!==e.length?t.length=i.default.fromString(e.length):t.length=i.default.ZERO,void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(c.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.length&&(t.length=(e.length||i.default.ZERO).toString()),e.amount?t.amount=e.amount.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t=Object.assign({},l);if(t.amount=[],void 0!==e.length&&null!==e.length?t.length=e.length:t.length=i.default.ZERO,void 0!==e.amount&&null!==e.amount){var n,a=r(e.amount);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.amount.push(c.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return t}};var b={startTime:i.default.ZERO};t.PeriodicVestingAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),e.startTime.isZero()||n.uint32(16).int64(e.startTime);var a,i=r(e.vestingPeriods);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.Period.encode(s,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);for(i.vestingPeriods=[];r.pos>>3){case 1:i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32());break;case 2:i.startTime=r.int64();break;case 3:i.vestingPeriods.push(t.Period.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},b);if(n.vestingPeriods=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=i.default.fromString(e.startTime):n.startTime=i.default.ZERO,void 0!==e.vestingPeriods&&null!==e.vestingPeriods){var a,o=r(e.vestingPeriods);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.vestingPeriods.push(t.Period.fromJSON(s))}}catch(e){o.e(e)}finally{o.f()}}return n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),void 0!==e.startTime&&(n.startTime=(e.startTime||i.default.ZERO).toString()),e.vestingPeriods?n.vestingPeriods=e.vestingPeriods.map((function(e){return e?t.Period.toJSON(e):void 0})):n.vestingPeriods=[],n},fromPartial:function(e){var n=Object.assign({},b);if(n.vestingPeriods=[],void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,void 0!==e.startTime&&null!==e.startTime?n.startTime=e.startTime:n.startTime=i.default.ZERO,void 0!==e.vestingPeriods&&null!==e.vestingPeriods){var a,o=r(e.vestingPeriods);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.vestingPeriods.push(t.Period.fromPartial(s))}}catch(e){o.e(e)}finally{o.f()}}return n}};var p={};t.PermanentLockedAccount={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.baseVestingAccount&&t.BaseVestingAccount.encode(e.baseVestingAccount,n.uint32(10).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);r.pos>>3==1?i.baseVestingAccount=t.BaseVestingAccount.decode(r,r.uint32()):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},p);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromJSON(e.baseVestingAccount):n.baseVestingAccount=void 0,n},toJSON:function(e){var n={};return void 0!==e.baseVestingAccount&&(n.baseVestingAccount=e.baseVestingAccount?t.BaseVestingAccount.toJSON(e.baseVestingAccount):void 0),n},fromPartial:function(e){var n=Object.assign({},p);return void 0!==e.baseVestingAccount&&null!==e.baseVestingAccount?n.baseVestingAccount=t.BaseVestingAccount.fromPartial(e.baseVestingAccount):n.baseVestingAccount=void 0,n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},33082:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateInstantiateConfigProposal=t.AccessConfigUpdate=t.UnpinCodesProposal=t.PinCodesProposal=t.ClearAdminProposal=t.UpdateAdminProposal=t.ExecuteContractProposal=t.SudoContractProposal=t.MigrateContractProposal=t.InstantiateContractProposal=t.StoreCodeProposal=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(1)),s=n(59673),c=n(2121);t.protobufPackage="cosmwasm.wasm.v1";var u={title:"",description:"",runAs:""};t.StoreCodeProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.runAs&&t.uint32(26).string(e.runAs),0!==e.wasmByteCode.length&&t.uint32(34).bytes(e.wasmByteCode),void 0!==e.instantiatePermission&&s.AccessConfig.encode(e.instantiatePermission,t.uint32(58).fork()).ldelim(),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.wasmByteCode=new Uint8Array;n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.runAs=n.string();break;case 4:a.wasmByteCode=n.bytes();break;case 7:a.instantiatePermission=s.AccessConfig.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return t.wasmByteCode=new Uint8Array,void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.runAs&&null!==e.runAs?t.runAs=String(e.runAs):t.runAs="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode&&(t.wasmByteCode=x(e.wasmByteCode)),void 0!==e.instantiatePermission&&null!==e.instantiatePermission?t.instantiatePermission=s.AccessConfig.fromJSON(e.instantiatePermission):t.instantiatePermission=void 0,t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.runAs&&(t.runAs=e.runAs),void 0!==e.wasmByteCode&&(t.wasmByteCode=k(void 0!==e.wasmByteCode?e.wasmByteCode:new Uint8Array)),void 0!==e.instantiatePermission&&(t.instantiatePermission=e.instantiatePermission?s.AccessConfig.toJSON(e.instantiatePermission):void 0),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.runAs&&null!==e.runAs?t.runAs=e.runAs:t.runAs="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode?t.wasmByteCode=e.wasmByteCode:t.wasmByteCode=new Uint8Array,void 0!==e.instantiatePermission&&null!==e.instantiatePermission?t.instantiatePermission=s.AccessConfig.fromPartial(e.instantiatePermission):t.instantiatePermission=void 0,t}};var d={title:"",description:"",runAs:"",admin:"",codeId:i.default.UZERO,label:""};t.InstantiateContractProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.runAs&&t.uint32(26).string(e.runAs),""!==e.admin&&t.uint32(34).string(e.admin),e.codeId.isZero()||t.uint32(40).uint64(e.codeId),""!==e.label&&t.uint32(50).string(e.label),0!==e.msg.length&&t.uint32(58).bytes(e.msg);var n,a=r(e.funds);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Coin.encode(i,t.uint32(66).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.funds=[],a.msg=new Uint8Array;n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.runAs=n.string();break;case 4:a.admin=n.string();break;case 5:a.codeId=n.uint64();break;case 6:a.label=n.string();break;case 7:a.msg=n.bytes();break;case 8:a.funds.push(c.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);if(t.funds=[],t.msg=new Uint8Array,void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.runAs&&null!==e.runAs?t.runAs=String(e.runAs):t.runAs="",void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=i.default.fromString(e.codeId):t.codeId=i.default.UZERO,void 0!==e.label&&null!==e.label?t.label=String(e.label):t.label="",void 0!==e.msg&&null!==e.msg&&(t.msg=x(e.msg)),void 0!==e.funds&&null!==e.funds){var n,a=r(e.funds);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.funds.push(c.Coin.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.runAs&&(t.runAs=e.runAs),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.codeId&&(t.codeId=(e.codeId||i.default.UZERO).toString()),void 0!==e.label&&(t.label=e.label),void 0!==e.msg&&(t.msg=k(void 0!==e.msg?e.msg:new Uint8Array)),e.funds?t.funds=e.funds.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.funds=[],t},fromPartial:function(e){var t=Object.assign({},d);if(t.funds=[],void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.runAs&&null!==e.runAs?t.runAs=e.runAs:t.runAs="",void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=i.default.UZERO,void 0!==e.label&&null!==e.label?t.label=e.label:t.label="",void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg=new Uint8Array,void 0!==e.funds&&null!==e.funds){var n,a=r(e.funds);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.funds.push(c.Coin.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return t}};var f={title:"",description:"",contract:"",codeId:i.default.UZERO};t.MigrateContractProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.contract&&t.uint32(34).string(e.contract),e.codeId.isZero()||t.uint32(40).uint64(e.codeId),0!==e.msg.length&&t.uint32(50).bytes(e.msg),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.msg=new Uint8Array;n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 4:a.contract=n.string();break;case 5:a.codeId=n.uint64();break;case 6:a.msg=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return t.msg=new Uint8Array,void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.codeId&&null!==e.codeId?t.codeId=i.default.fromString(e.codeId):t.codeId=i.default.UZERO,void 0!==e.msg&&null!==e.msg&&(t.msg=x(e.msg)),t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.codeId&&(t.codeId=(e.codeId||i.default.UZERO).toString()),void 0!==e.msg&&(t.msg=k(void 0!==e.msg?e.msg:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=i.default.UZERO,void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg=new Uint8Array,t}};var l={title:"",description:"",contract:""};t.SudoContractProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.contract&&t.uint32(26).string(e.contract),0!==e.msg.length&&t.uint32(34).bytes(e.msg),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.msg=new Uint8Array;n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.contract=n.string();break;case 4:a.msg=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return t.msg=new Uint8Array,void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.msg&&null!==e.msg&&(t.msg=x(e.msg)),t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.msg&&(t.msg=k(void 0!==e.msg?e.msg:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg=new Uint8Array,t}};var b={title:"",description:"",runAs:"",contract:""};t.ExecuteContractProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.runAs&&t.uint32(26).string(e.runAs),""!==e.contract&&t.uint32(34).string(e.contract),0!==e.msg.length&&t.uint32(42).bytes(e.msg);var n,a=r(e.funds);try{for(a.s();!(n=a.n()).done;){var i=n.value;c.Coin.encode(i,t.uint32(50).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.funds=[],a.msg=new Uint8Array;n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.runAs=n.string();break;case 4:a.contract=n.string();break;case 5:a.msg=n.bytes();break;case 6:a.funds.push(c.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);if(t.funds=[],t.msg=new Uint8Array,void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.runAs&&null!==e.runAs?t.runAs=String(e.runAs):t.runAs="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.msg&&null!==e.msg&&(t.msg=x(e.msg)),void 0!==e.funds&&null!==e.funds){var n,a=r(e.funds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.funds.push(c.Coin.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.runAs&&(t.runAs=e.runAs),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.msg&&(t.msg=k(void 0!==e.msg?e.msg:new Uint8Array)),e.funds?t.funds=e.funds.map((function(e){return e?c.Coin.toJSON(e):void 0})):t.funds=[],t},fromPartial:function(e){var t=Object.assign({},b);if(t.funds=[],void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.runAs&&null!==e.runAs?t.runAs=e.runAs:t.runAs="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg=new Uint8Array,void 0!==e.funds&&null!==e.funds){var n,a=r(e.funds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.funds.push(c.Coin.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var p={title:"",description:"",newAdmin:"",contract:""};t.UpdateAdminProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.newAdmin&&t.uint32(26).string(e.newAdmin),""!==e.contract&&t.uint32(34).string(e.contract),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.newAdmin=n.string();break;case 4:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=String(e.newAdmin):t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.newAdmin&&(t.newAdmin=e.newAdmin),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=e.newAdmin:t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var h={title:"",description:"",contract:""};t.ClearAdminProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.contract&&t.uint32(26).string(e.contract),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},h);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var y={title:"",description:"",codeIds:i.default.UZERO};t.PinCodesProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t.uint32(26).fork();var n,a=r(e.codeIds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint64(i)}}catch(e){a.e(e)}finally{a.f()}return t.ldelim(),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.codeIds=[];n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:if(2==(7&i))for(var s=n.uint32()+n.pos;n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t.uint32(26).fork();var n,a=r(e.codeIds);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint64(i)}}catch(e){a.e(e)}finally{a.f()}return t.ldelim(),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.codeIds=[];n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:if(2==(7&i))for(var s=n.uint32()+n.pos;n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.codeId.isZero()||t.uint32(8).uint64(e.codeId),void 0!==e.instantiatePermission&&s.AccessConfig.encode(e.instantiatePermission,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3){case 1:a.codeId=n.uint64();break;case 2:a.instantiatePermission=s.AccessConfig.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.codeId&&null!==e.codeId?t.codeId=i.default.fromString(e.codeId):t.codeId=i.default.UZERO,void 0!==e.instantiatePermission&&null!==e.instantiatePermission?t.instantiatePermission=s.AccessConfig.fromJSON(e.instantiatePermission):t.instantiatePermission=void 0,t},toJSON:function(e){var t={};return void 0!==e.codeId&&(t.codeId=(e.codeId||i.default.UZERO).toString()),void 0!==e.instantiatePermission&&(t.instantiatePermission=e.instantiatePermission?s.AccessConfig.toJSON(e.instantiatePermission):void 0),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=i.default.UZERO,void 0!==e.instantiatePermission&&null!==e.instantiatePermission?t.instantiatePermission=s.AccessConfig.fromPartial(e.instantiatePermission):t.instantiatePermission=void 0,t}};var g={title:"",description:""};t.UpdateInstantiateConfigProposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.title&&n.uint32(10).string(e.title),""!==e.description&&n.uint32(18).string(e.description);var a,i=r(e.accessConfigUpdates);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.AccessConfigUpdate.encode(s,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},g);for(i.accessConfigUpdates=[];r.pos>>3){case 1:i.title=r.string();break;case 2:i.description=r.string();break;case 3:i.accessConfigUpdates.push(t.AccessConfigUpdate.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},g);if(n.accessConfigUpdates=[],void 0!==e.title&&null!==e.title?n.title=String(e.title):n.title="",void 0!==e.description&&null!==e.description?n.description=String(e.description):n.description="",void 0!==e.accessConfigUpdates&&null!==e.accessConfigUpdates){var a,i=r(e.accessConfigUpdates);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.accessConfigUpdates.push(t.AccessConfigUpdate.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.description&&(n.description=e.description),e.accessConfigUpdates?n.accessConfigUpdates=e.accessConfigUpdates.map((function(e){return e?t.AccessConfigUpdate.toJSON(e):void 0})):n.accessConfigUpdates=[],n},fromPartial:function(e){var n=Object.assign({},g);if(n.accessConfigUpdates=[],void 0!==e.title&&null!==e.title?n.title=e.title:n.title="",void 0!==e.description&&null!==e.description?n.description=e.description:n.description="",void 0!==e.accessConfigUpdates&&null!==e.accessConfigUpdates){var a,i=r(e.accessConfigUpdates);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.accessConfigUpdates.push(t.AccessConfigUpdate.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var A=function(){if(void 0!==A)return A;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),w=A.atob||function(e){return A.Buffer.from(e,"base64").toString("binary")};function x(e){for(var t=w(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),0!==e.wasmByteCode.length&&t.uint32(18).bytes(e.wasmByteCode),void 0!==e.instantiatePermission&&d.AccessConfig.encode(e.instantiatePermission,t.uint32(42).fork()).ldelim(),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);for(a.wasmByteCode=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.wasmByteCode=n.bytes();break;case 5:a.instantiatePermission=d.AccessConfig.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return t.wasmByteCode=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode&&(t.wasmByteCode=T(e.wasmByteCode)),void 0!==e.instantiatePermission&&null!==e.instantiatePermission?t.instantiatePermission=d.AccessConfig.fromJSON(e.instantiatePermission):t.instantiatePermission=void 0,t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.wasmByteCode&&(t.wasmByteCode=P(void 0!==e.wasmByteCode?e.wasmByteCode:new Uint8Array)),void 0!==e.instantiatePermission&&(t.instantiatePermission=e.instantiatePermission?d.AccessConfig.toJSON(e.instantiatePermission):void 0),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.wasmByteCode&&null!==e.wasmByteCode?t.wasmByteCode=e.wasmByteCode:t.wasmByteCode=new Uint8Array,void 0!==e.instantiatePermission&&null!==e.instantiatePermission?t.instantiatePermission=d.AccessConfig.fromPartial(e.instantiatePermission):t.instantiatePermission=void 0,t}};var p={codeId:s.default.UZERO};t.MsgStoreCodeResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return e.codeId.isZero()||t.uint32(8).uint64(e.codeId),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3==1?a.codeId=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,t}};var h={sender:"",admin:"",codeId:s.default.UZERO,label:""};t.MsgInstantiateContract={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.sender&&t.uint32(10).string(e.sender),""!==e.admin&&t.uint32(18).string(e.admin),e.codeId.isZero()||t.uint32(24).uint64(e.codeId),""!==e.label&&t.uint32(34).string(e.label),0!==e.msg.length&&t.uint32(42).bytes(e.msg);var n,r=i(e.funds);try{for(r.s();!(n=r.n()).done;){var a=n.value;l.Coin.encode(a,t.uint32(50).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.funds=[],a.msg=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.admin=n.string();break;case 3:a.codeId=n.uint64();break;case 4:a.label=n.string();break;case 5:a.msg=n.bytes();break;case 6:a.funds.push(l.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);if(t.funds=[],t.msg=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.admin&&null!==e.admin?t.admin=String(e.admin):t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,void 0!==e.label&&null!==e.label?t.label=String(e.label):t.label="",void 0!==e.msg&&null!==e.msg&&(t.msg=T(e.msg)),void 0!==e.funds&&null!==e.funds){var n,r=i(e.funds);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.funds.push(l.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.admin&&(t.admin=e.admin),void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.label&&(t.label=e.label),void 0!==e.msg&&(t.msg=P(void 0!==e.msg?e.msg:new Uint8Array)),e.funds?t.funds=e.funds.map((function(e){return e?l.Coin.toJSON(e):void 0})):t.funds=[],t},fromPartial:function(e){var t=Object.assign({},h);if(t.funds=[],void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.admin&&null!==e.admin?t.admin=e.admin:t.admin="",void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,void 0!==e.label&&null!==e.label?t.label=e.label:t.label="",void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg=new Uint8Array,void 0!==e.funds&&null!==e.funds){var n,r=i(e.funds);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.funds.push(l.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var y={address:""};t.MsgInstantiateContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.address&&t.uint32(10).string(e.address),0!==e.data.length&&t.uint32(18).bytes(e.data),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.data=new Uint8Array;n.pos>>3){case 1:a.address=n.string();break;case 2:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return t.data=new Uint8Array,void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",void 0!==e.data&&null!==e.data&&(t.data=T(e.data)),t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),void 0!==e.data&&(t.data=P(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var m={sender:"",contract:""};t.MsgExecuteContract={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(18).string(e.contract),0!==e.msg.length&&t.uint32(26).bytes(e.msg);var n,r=i(e.funds);try{for(r.s();!(n=r.n()).done;){var a=n.value;l.Coin.encode(a,t.uint32(42).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.funds=[],a.msg=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.contract=n.string();break;case 3:a.msg=n.bytes();break;case 5:a.funds.push(l.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);if(t.funds=[],t.msg=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.msg&&null!==e.msg&&(t.msg=T(e.msg)),void 0!==e.funds&&null!==e.funds){var n,r=i(e.funds);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.funds.push(l.Coin.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.msg&&(t.msg=P(void 0!==e.msg?e.msg:new Uint8Array)),e.funds?t.funds=e.funds.map((function(e){return e?l.Coin.toJSON(e):void 0})):t.funds=[],t},fromPartial:function(e){var t=Object.assign({},m);if(t.funds=[],void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg=new Uint8Array,void 0!==e.funds&&null!==e.funds){var n,r=i(e.funds);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.funds.push(l.Coin.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return t}};var v={};t.MsgExecuteContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.data=new Uint8Array;n.pos>>3==1?a.data=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},v);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=T(e.data)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=P(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var g={sender:"",contract:"",codeId:s.default.UZERO};t.MsgMigrateContract={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(18).string(e.contract),e.codeId.isZero()||t.uint32(24).uint64(e.codeId),0!==e.msg.length&&t.uint32(34).bytes(e.msg),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);for(a.msg=new Uint8Array;n.pos>>3){case 1:a.sender=n.string();break;case 2:a.contract=n.string();break;case 3:a.codeId=n.uint64();break;case 4:a.msg=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},g);return t.msg=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",void 0!==e.codeId&&null!==e.codeId?t.codeId=s.default.fromString(e.codeId):t.codeId=s.default.UZERO,void 0!==e.msg&&null!==e.msg&&(t.msg=T(e.msg)),t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),void 0!==e.codeId&&(t.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.msg&&(t.msg=P(void 0!==e.msg?e.msg:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},g);return void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",void 0!==e.codeId&&null!==e.codeId?t.codeId=e.codeId:t.codeId=s.default.UZERO,void 0!==e.msg&&null!==e.msg?t.msg=e.msg:t.msg=new Uint8Array,t}};var A={};t.MsgMigrateContractResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.data=new Uint8Array;n.pos>>3==1?a.data=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},A);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=T(e.data)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=P(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var w={sender:"",newAdmin:"",contract:""};t.MsgUpdateAdmin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),""!==e.newAdmin&&t.uint32(18).string(e.newAdmin),""!==e.contract&&t.uint32(26).string(e.contract),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos>>3){case 1:a.sender=n.string();break;case 2:a.newAdmin=n.string();break;case 3:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},w);return void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=String(e.newAdmin):t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.newAdmin&&(t.newAdmin=e.newAdmin),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.newAdmin&&null!==e.newAdmin?t.newAdmin=e.newAdmin:t.newAdmin="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var x={};t.MsgUpdateAdminResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},x);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.sender&&t.uint32(10).string(e.sender),""!==e.contract&&t.uint32(26).string(e.contract),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);n.pos>>3){case 1:a.sender=n.string();break;case 3:a.contract=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},_);return void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=String(e.contract):t.contract="",t},toJSON:function(e){var t={};return void 0!==e.sender&&(t.sender=e.sender),void 0!==e.contract&&(t.contract=e.contract),t},fromPartial:function(e){var t=Object.assign({},_);return void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.contract&&null!==e.contract?t.contract=e.contract:t.contract="",t}};var k={};t.MsgClearAdminResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);n.pos1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.value&&t.uint32(8).int32(e.value),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3==1?a.value=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.value&&null!==e.value?t.value=d(e.value):t.value=0,t},toJSON:function(e){var t={};return void 0!==e.value&&(t.value=f(e.value)),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.value&&null!==e.value?t.value=e.value:t.value=0,t}};var h={permission:0,address:""};t.AccessConfig={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.permission&&t.uint32(8).int32(e.permission),""!==e.address&&t.uint32(18).string(e.address),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos>>3){case 1:a.permission=n.int32();break;case 2:a.address=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);return void 0!==e.permission&&null!==e.permission?t.permission=d(e.permission):t.permission=0,void 0!==e.address&&null!==e.address?t.address=String(e.address):t.address="",t},toJSON:function(e){var t={};return void 0!==e.permission&&(t.permission=f(e.permission)),void 0!==e.address&&(t.address=e.address),t},fromPartial:function(e){var t=Object.assign({},h);return void 0!==e.permission&&null!==e.permission?t.permission=e.permission:t.permission=0,void 0!==e.address&&null!==e.address?t.address=e.address:t.address="",t}};var y={instantiateDefaultPermission:0};t.Params={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.codeUploadAccess&&t.AccessConfig.encode(e.codeUploadAccess,n.uint32(10).fork()).ldelim(),0!==e.instantiateDefaultPermission&&n.uint32(16).int32(e.instantiateDefaultPermission),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},y);r.pos>>3){case 1:i.codeUploadAccess=t.AccessConfig.decode(r,r.uint32());break;case 2:i.instantiateDefaultPermission=r.int32();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},y);return void 0!==e.codeUploadAccess&&null!==e.codeUploadAccess?n.codeUploadAccess=t.AccessConfig.fromJSON(e.codeUploadAccess):n.codeUploadAccess=void 0,void 0!==e.instantiateDefaultPermission&&null!==e.instantiateDefaultPermission?n.instantiateDefaultPermission=d(e.instantiateDefaultPermission):n.instantiateDefaultPermission=0,n},toJSON:function(e){var n={};return void 0!==e.codeUploadAccess&&(n.codeUploadAccess=e.codeUploadAccess?t.AccessConfig.toJSON(e.codeUploadAccess):void 0),void 0!==e.instantiateDefaultPermission&&(n.instantiateDefaultPermission=f(e.instantiateDefaultPermission)),n},fromPartial:function(e){var n=Object.assign({},y);return void 0!==e.codeUploadAccess&&null!==e.codeUploadAccess?n.codeUploadAccess=t.AccessConfig.fromPartial(e.codeUploadAccess):n.codeUploadAccess=void 0,void 0!==e.instantiateDefaultPermission&&null!==e.instantiateDefaultPermission?n.instantiateDefaultPermission=e.instantiateDefaultPermission:n.instantiateDefaultPermission=0,n}};var m={creator:""};t.CodeInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.codeHash.length&&n.uint32(10).bytes(e.codeHash),""!==e.creator&&n.uint32(18).string(e.creator),void 0!==e.instantiateConfig&&t.AccessConfig.encode(e.instantiateConfig,n.uint32(42).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},m);for(i.codeHash=new Uint8Array;r.pos>>3){case 1:i.codeHash=r.bytes();break;case 2:i.creator=r.string();break;case 5:i.instantiateConfig=t.AccessConfig.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},m);return n.codeHash=new Uint8Array,void 0!==e.codeHash&&null!==e.codeHash&&(n.codeHash=k(e.codeHash)),void 0!==e.creator&&null!==e.creator?n.creator=String(e.creator):n.creator="",void 0!==e.instantiateConfig&&null!==e.instantiateConfig?n.instantiateConfig=t.AccessConfig.fromJSON(e.instantiateConfig):n.instantiateConfig=void 0,n},toJSON:function(e){var n={};return void 0!==e.codeHash&&(n.codeHash=S(void 0!==e.codeHash?e.codeHash:new Uint8Array)),void 0!==e.creator&&(n.creator=e.creator),void 0!==e.instantiateConfig&&(n.instantiateConfig=e.instantiateConfig?t.AccessConfig.toJSON(e.instantiateConfig):void 0),n},fromPartial:function(e){var n=Object.assign({},m);return void 0!==e.codeHash&&null!==e.codeHash?n.codeHash=e.codeHash:n.codeHash=new Uint8Array,void 0!==e.creator&&null!==e.creator?n.creator=e.creator:n.creator="",void 0!==e.instantiateConfig&&null!==e.instantiateConfig?n.instantiateConfig=t.AccessConfig.fromPartial(e.instantiateConfig):n.instantiateConfig=void 0,n}};var v={codeId:s.default.UZERO,creator:"",admin:"",label:"",ibcPortId:""};t.ContractInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return e.codeId.isZero()||n.uint32(8).uint64(e.codeId),""!==e.creator&&n.uint32(18).string(e.creator),""!==e.admin&&n.uint32(26).string(e.admin),""!==e.label&&n.uint32(34).string(e.label),void 0!==e.created&&t.AbsoluteTxPosition.encode(e.created,n.uint32(42).fork()).ldelim(),""!==e.ibcPortId&&n.uint32(50).string(e.ibcPortId),void 0!==e.extension&&u.Any.encode(e.extension,n.uint32(58).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},v);r.pos>>3){case 1:i.codeId=r.uint64();break;case 2:i.creator=r.string();break;case 3:i.admin=r.string();break;case 4:i.label=r.string();break;case 5:i.created=t.AbsoluteTxPosition.decode(r,r.uint32());break;case 6:i.ibcPortId=r.string();break;case 7:i.extension=u.Any.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},v);return void 0!==e.codeId&&null!==e.codeId?n.codeId=s.default.fromString(e.codeId):n.codeId=s.default.UZERO,void 0!==e.creator&&null!==e.creator?n.creator=String(e.creator):n.creator="",void 0!==e.admin&&null!==e.admin?n.admin=String(e.admin):n.admin="",void 0!==e.label&&null!==e.label?n.label=String(e.label):n.label="",void 0!==e.created&&null!==e.created?n.created=t.AbsoluteTxPosition.fromJSON(e.created):n.created=void 0,void 0!==e.ibcPortId&&null!==e.ibcPortId?n.ibcPortId=String(e.ibcPortId):n.ibcPortId="",void 0!==e.extension&&null!==e.extension?n.extension=u.Any.fromJSON(e.extension):n.extension=void 0,n},toJSON:function(e){var n={};return void 0!==e.codeId&&(n.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.creator&&(n.creator=e.creator),void 0!==e.admin&&(n.admin=e.admin),void 0!==e.label&&(n.label=e.label),void 0!==e.created&&(n.created=e.created?t.AbsoluteTxPosition.toJSON(e.created):void 0),void 0!==e.ibcPortId&&(n.ibcPortId=e.ibcPortId),void 0!==e.extension&&(n.extension=e.extension?u.Any.toJSON(e.extension):void 0),n},fromPartial:function(e){var n=Object.assign({},v);return void 0!==e.codeId&&null!==e.codeId?n.codeId=e.codeId:n.codeId=s.default.UZERO,void 0!==e.creator&&null!==e.creator?n.creator=e.creator:n.creator="",void 0!==e.admin&&null!==e.admin?n.admin=e.admin:n.admin="",void 0!==e.label&&null!==e.label?n.label=e.label:n.label="",void 0!==e.created&&null!==e.created?n.created=t.AbsoluteTxPosition.fromPartial(e.created):n.created=void 0,void 0!==e.ibcPortId&&null!==e.ibcPortId?n.ibcPortId=e.ibcPortId:n.ibcPortId="",void 0!==e.extension&&null!==e.extension?n.extension=u.Any.fromPartial(e.extension):n.extension=void 0,n}};var g={operation:0,codeId:s.default.UZERO};t.ContractCodeHistoryEntry={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.operation&&n.uint32(8).int32(e.operation),e.codeId.isZero()||n.uint32(16).uint64(e.codeId),void 0!==e.updated&&t.AbsoluteTxPosition.encode(e.updated,n.uint32(26).fork()).ldelim(),0!==e.msg.length&&n.uint32(34).bytes(e.msg),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},g);for(i.msg=new Uint8Array;r.pos>>3){case 1:i.operation=r.int32();break;case 2:i.codeId=r.uint64();break;case 3:i.updated=t.AbsoluteTxPosition.decode(r,r.uint32());break;case 4:i.msg=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},g);return n.msg=new Uint8Array,void 0!==e.operation&&null!==e.operation?n.operation=l(e.operation):n.operation=0,void 0!==e.codeId&&null!==e.codeId?n.codeId=s.default.fromString(e.codeId):n.codeId=s.default.UZERO,void 0!==e.updated&&null!==e.updated?n.updated=t.AbsoluteTxPosition.fromJSON(e.updated):n.updated=void 0,void 0!==e.msg&&null!==e.msg&&(n.msg=k(e.msg)),n},toJSON:function(e){var n={};return void 0!==e.operation&&(n.operation=b(e.operation)),void 0!==e.codeId&&(n.codeId=(e.codeId||s.default.UZERO).toString()),void 0!==e.updated&&(n.updated=e.updated?t.AbsoluteTxPosition.toJSON(e.updated):void 0),void 0!==e.msg&&(n.msg=S(void 0!==e.msg?e.msg:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},g);return void 0!==e.operation&&null!==e.operation?n.operation=e.operation:n.operation=0,void 0!==e.codeId&&null!==e.codeId?n.codeId=e.codeId:n.codeId=s.default.UZERO,void 0!==e.updated&&null!==e.updated?n.updated=t.AbsoluteTxPosition.fromPartial(e.updated):n.updated=void 0,void 0!==e.msg&&null!==e.msg?n.msg=e.msg:n.msg=new Uint8Array,n}};var A={blockHeight:s.default.UZERO,txIndex:s.default.UZERO};t.AbsoluteTxPosition={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return e.blockHeight.isZero()||t.uint32(8).uint64(e.blockHeight),e.txIndex.isZero()||t.uint32(16).uint64(e.txIndex),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);n.pos>>3){case 1:a.blockHeight=n.uint64();break;case 2:a.txIndex=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return void 0!==e.blockHeight&&null!==e.blockHeight?t.blockHeight=s.default.fromString(e.blockHeight):t.blockHeight=s.default.UZERO,void 0!==e.txIndex&&null!==e.txIndex?t.txIndex=s.default.fromString(e.txIndex):t.txIndex=s.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.blockHeight&&(t.blockHeight=(e.blockHeight||s.default.UZERO).toString()),void 0!==e.txIndex&&(t.txIndex=(e.txIndex||s.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.blockHeight&&null!==e.blockHeight?t.blockHeight=e.blockHeight:t.blockHeight=s.default.UZERO,void 0!==e.txIndex&&null!==e.txIndex?t.txIndex=e.txIndex:t.txIndex=s.default.UZERO,t}};var w={};t.Model={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),0!==e.value.length&&t.uint32(18).bytes(e.value),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);for(a.key=new Uint8Array,a.value=new Uint8Array;n.pos>>3){case 1:a.key=n.bytes();break;case 2:a.value=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},w);return t.key=new Uint8Array,t.value=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=k(e.key)),void 0!==e.value&&null!==e.value&&(t.value=k(e.value)),t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=S(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(t.value=S(void 0!==e.value?e.value:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},w);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.value&&null!==e.value?t.value=e.value:t.value=new Uint8Array,t}};var x=function(){if(void 0!==x)return x;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),_=x.atob||function(e){return x.Buffer.from(e,"base64").toString("binary")};function k(e){for(var t=_(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.value=new Uint8Array;n.pos>>3){case 1:a.typeUrl=n.string();break;case 2:a.value=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);return t.value=new Uint8Array,void 0!==e.typeUrl&&null!==e.typeUrl?t.typeUrl=String(e.typeUrl):t.typeUrl="",void 0!==e.value&&null!==e.value&&(t.value=function(e){for(var t=u(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.seconds.isZero()||t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.seconds=n.int64();break;case 2:a.nanos=n.int32();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=a.default.fromString(e.seconds):t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=Number(e.nanos):t.nanos=0,t},toJSON:function(e){var t={};return void 0!==e.seconds&&(t.seconds=(e.seconds||a.default.ZERO).toString()),void 0!==e.nanos&&(t.nanos=e.nanos),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=e.seconds:t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=e.nanos:t.nanos=0,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},37814:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.protobufPackage=void 0;var a=r(n(24141)),i=r(n(1));t.protobufPackage="google.protobuf";var o={seconds:a.default.ZERO,nanos:0};t.Timestamp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.seconds.isZero()||t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.seconds=n.int64();break;case 2:a.nanos=n.int32();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=a.default.fromString(e.seconds):t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=Number(e.nanos):t.nanos=0,t},toJSON:function(e){var t={};return void 0!==e.seconds&&(t.seconds=(e.seconds||a.default.ZERO).toString()),void 0!==e.nanos&&(t.nanos=e.nanos),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.seconds&&null!==e.seconds?t.seconds=e.seconds:t.seconds=a.default.ZERO,void 0!==e.nanos&&null!==e.nanos?t.nanos=e.nanos:t.nanos=0,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},4042:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(1));t.protobufPackage="ibc.applications.interchain_accounts.host.v1";var s={hostEnabled:!1,allowMessages:""};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();!0===e.hostEnabled&&t.uint32(8).bool(e.hostEnabled);var n,a=r(e.allowMessages);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(18).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.allowMessages=[];n.pos>>3){case 1:a.hostEnabled=n.bool();break;case 2:a.allowMessages.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);if(t.allowMessages=[],void 0!==e.hostEnabled&&null!==e.hostEnabled?t.hostEnabled=Boolean(e.hostEnabled):t.hostEnabled=!1,void 0!==e.allowMessages&&null!==e.allowMessages){var n,a=r(e.allowMessages);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.allowMessages.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.hostEnabled&&(t.hostEnabled=e.hostEnabled),e.allowMessages?t.allowMessages=e.allowMessages.map((function(e){return e})):t.allowMessages=[],t},fromPartial:function(e){var t=Object.assign({},s);if(t.allowMessages=[],void 0!==e.hostEnabled&&null!==e.hostEnabled?t.hostEnabled=e.hostEnabled:t.hostEnabled=!1,void 0!==e.allowMessages&&null!==e.allowMessages){var n,a=r(e.allowMessages);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.allowMessages.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},48339:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.DenomTrace=t.protobufPackage=void 0;var a=r(n(24141)),i=r(n(1));t.protobufPackage="ibc.applications.transfer.v1";var o={path:"",baseDenom:""};t.DenomTrace={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.path&&t.uint32(10).string(e.path),""!==e.baseDenom&&t.uint32(18).string(e.baseDenom),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.path=n.string();break;case 2:a.baseDenom=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.path&&null!==e.path?t.path=String(e.path):t.path="",void 0!==e.baseDenom&&null!==e.baseDenom?t.baseDenom=String(e.baseDenom):t.baseDenom="",t},toJSON:function(e){var t={};return void 0!==e.path&&(t.path=e.path),void 0!==e.baseDenom&&(t.baseDenom=e.baseDenom),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.path&&null!==e.path?t.path=e.path:t.path="",void 0!==e.baseDenom&&null!==e.baseDenom?t.baseDenom=e.baseDenom:t.baseDenom="",t}};var s={sendEnabled:!1,receiveEnabled:!1};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return!0===e.sendEnabled&&t.uint32(8).bool(e.sendEnabled),!0===e.receiveEnabled&&t.uint32(16).bool(e.receiveEnabled),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.sendEnabled=n.bool();break;case 2:a.receiveEnabled=n.bool();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.sendEnabled&&null!==e.sendEnabled?t.sendEnabled=Boolean(e.sendEnabled):t.sendEnabled=!1,void 0!==e.receiveEnabled&&null!==e.receiveEnabled?t.receiveEnabled=Boolean(e.receiveEnabled):t.receiveEnabled=!1,t},toJSON:function(e){var t={};return void 0!==e.sendEnabled&&(t.sendEnabled=e.sendEnabled),void 0!==e.receiveEnabled&&(t.receiveEnabled=e.receiveEnabled),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.sendEnabled&&null!==e.sendEnabled?t.sendEnabled=e.sendEnabled:t.sendEnabled=!1,void 0!==e.receiveEnabled&&null!==e.receiveEnabled?t.receiveEnabled=e.receiveEnabled:t.receiveEnabled=!1,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},55690:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgTransferDesc=t.MsgDesc=t.MsgClientImpl=t.MsgTransferResponse=t.MsgTransfer=t.protobufPackage=void 0;var o=i(n(24141)),s=n(34882),c=i(n(1)),u=n(2121),d=n(56820),f=n(46711);t.protobufPackage="ibc.applications.transfer.v1";var l={sourcePort:"",sourceChannel:"",sender:"",receiver:"",timeoutTimestamp:o.default.UZERO};t.MsgTransfer={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.sourcePort&&t.uint32(10).string(e.sourcePort),""!==e.sourceChannel&&t.uint32(18).string(e.sourceChannel),void 0!==e.token&&u.Coin.encode(e.token,t.uint32(26).fork()).ldelim(),""!==e.sender&&t.uint32(34).string(e.sender),""!==e.receiver&&t.uint32(42).string(e.receiver),void 0!==e.timeoutHeight&&d.Height.encode(e.timeoutHeight,t.uint32(50).fork()).ldelim(),e.timeoutTimestamp.isZero()||t.uint32(56).uint64(e.timeoutTimestamp),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.sourcePort=n.string();break;case 2:a.sourceChannel=n.string();break;case 3:a.token=u.Coin.decode(n,n.uint32());break;case 4:a.sender=n.string();break;case 5:a.receiver=n.string();break;case 6:a.timeoutHeight=d.Height.decode(n,n.uint32());break;case 7:a.timeoutTimestamp=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.sourcePort&&null!==e.sourcePort?t.sourcePort=String(e.sourcePort):t.sourcePort="",void 0!==e.sourceChannel&&null!==e.sourceChannel?t.sourceChannel=String(e.sourceChannel):t.sourceChannel="",void 0!==e.token&&null!==e.token?t.token=u.Coin.fromJSON(e.token):t.token=void 0,void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.receiver&&null!==e.receiver?t.receiver=String(e.receiver):t.receiver="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=d.Height.fromJSON(e.timeoutHeight):t.timeoutHeight=void 0,void 0!==e.timeoutTimestamp&&null!==e.timeoutTimestamp?t.timeoutTimestamp=o.default.fromString(e.timeoutTimestamp):t.timeoutTimestamp=o.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.sourcePort&&(t.sourcePort=e.sourcePort),void 0!==e.sourceChannel&&(t.sourceChannel=e.sourceChannel),void 0!==e.token&&(t.token=e.token?u.Coin.toJSON(e.token):void 0),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.receiver&&(t.receiver=e.receiver),void 0!==e.timeoutHeight&&(t.timeoutHeight=e.timeoutHeight?d.Height.toJSON(e.timeoutHeight):void 0),void 0!==e.timeoutTimestamp&&(t.timeoutTimestamp=(e.timeoutTimestamp||o.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.sourcePort&&null!==e.sourcePort?t.sourcePort=e.sourcePort:t.sourcePort="",void 0!==e.sourceChannel&&null!==e.sourceChannel?t.sourceChannel=e.sourceChannel:t.sourceChannel="",void 0!==e.token&&null!==e.token?t.token=u.Coin.fromPartial(e.token):t.token=void 0,void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.receiver&&null!==e.receiver?t.receiver=e.receiver:t.receiver="",void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=d.Height.fromPartial(e.timeoutHeight):t.timeoutHeight=void 0,void 0!==e.timeoutTimestamp&&null!==e.timeoutTimestamp?t.timeoutTimestamp=e.timeoutTimestamp:t.timeoutTimestamp=o.default.UZERO,t}};var b={};t.MsgTransferResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create()},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),""!==e.sender&&t.uint32(26).string(e.sender),""!==e.receiver&&t.uint32(34).string(e.receiver),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;case 3:a.sender=n.string();break;case 4:a.receiver=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=String(e.denom):t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=String(e.amount):t.amount="",void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",void 0!==e.receiver&&null!==e.receiver?t.receiver=String(e.receiver):t.receiver="",t},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.receiver&&(t.receiver=e.receiver),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.denom&&null!==e.denom?t.denom=e.denom:t.denom="",void 0!==e.amount&&null!==e.amount?t.amount=e.amount:t.amount="",void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",void 0!==e.receiver&&null!==e.receiver?t.receiver=e.receiver:t.receiver="",t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},49085:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Acknowledgement=t.PacketId=t.PacketState=t.Packet=t.Counterparty=t.IdentifiedChannel=t.Channel=t.orderToJSON=t.orderFromJSON=t.Order=t.stateToJSON=t.stateFromJSON=t.State=t.protobufPackage=void 0;var i,o,s=a(n(24141)),c=a(n(1)),u=n(56820);function d(e){switch(e){case 0:case"STATE_UNINITIALIZED_UNSPECIFIED":return i.STATE_UNINITIALIZED_UNSPECIFIED;case 1:case"STATE_INIT":return i.STATE_INIT;case 2:case"STATE_TRYOPEN":return i.STATE_TRYOPEN;case 3:case"STATE_OPEN":return i.STATE_OPEN;case 4:case"STATE_CLOSED":return i.STATE_CLOSED;default:return i.UNRECOGNIZED}}function f(e){switch(e){case i.STATE_UNINITIALIZED_UNSPECIFIED:return"STATE_UNINITIALIZED_UNSPECIFIED";case i.STATE_INIT:return"STATE_INIT";case i.STATE_TRYOPEN:return"STATE_TRYOPEN";case i.STATE_OPEN:return"STATE_OPEN";case i.STATE_CLOSED:return"STATE_CLOSED";default:return"UNKNOWN"}}function l(e){switch(e){case 0:case"ORDER_NONE_UNSPECIFIED":return o.ORDER_NONE_UNSPECIFIED;case 1:case"ORDER_UNORDERED":return o.ORDER_UNORDERED;case 2:case"ORDER_ORDERED":return o.ORDER_ORDERED;default:return o.UNRECOGNIZED}}function b(e){switch(e){case o.ORDER_NONE_UNSPECIFIED:return"ORDER_NONE_UNSPECIFIED";case o.ORDER_UNORDERED:return"ORDER_UNORDERED";case o.ORDER_ORDERED:return"ORDER_ORDERED";default:return"UNKNOWN"}}t.protobufPackage="ibc.core.channel.v1",function(e){e[e.STATE_UNINITIALIZED_UNSPECIFIED=0]="STATE_UNINITIALIZED_UNSPECIFIED",e[e.STATE_INIT=1]="STATE_INIT",e[e.STATE_TRYOPEN=2]="STATE_TRYOPEN",e[e.STATE_OPEN=3]="STATE_OPEN",e[e.STATE_CLOSED=4]="STATE_CLOSED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=t.State||(t.State={})),t.stateFromJSON=d,t.stateToJSON=f,function(e){e[e.ORDER_NONE_UNSPECIFIED=0]="ORDER_NONE_UNSPECIFIED",e[e.ORDER_UNORDERED=1]="ORDER_UNORDERED",e[e.ORDER_ORDERED=2]="ORDER_ORDERED",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=t.Order||(t.Order={})),t.orderFromJSON=l,t.orderToJSON=b;var p={state:0,ordering:0,connectionHops:"",version:""};t.Channel={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();0!==e.state&&n.uint32(8).int32(e.state),0!==e.ordering&&n.uint32(16).int32(e.ordering),void 0!==e.counterparty&&t.Counterparty.encode(e.counterparty,n.uint32(26).fork()).ldelim();var a,i=r(e.connectionHops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.uint32(34).string(o)}}catch(e){i.e(e)}finally{i.f()}return""!==e.version&&n.uint32(42).string(e.version),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);for(i.connectionHops=[];r.pos>>3){case 1:i.state=r.int32();break;case 2:i.ordering=r.int32();break;case 3:i.counterparty=t.Counterparty.decode(r,r.uint32());break;case 4:i.connectionHops.push(r.string());break;case 5:i.version=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},p);if(n.connectionHops=[],void 0!==e.state&&null!==e.state?n.state=d(e.state):n.state=0,void 0!==e.ordering&&null!==e.ordering?n.ordering=l(e.ordering):n.ordering=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromJSON(e.counterparty):n.counterparty=void 0,void 0!==e.connectionHops&&null!==e.connectionHops){var a,i=r(e.connectionHops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.connectionHops.push(String(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.version&&null!==e.version?n.version=String(e.version):n.version="",n},toJSON:function(e){var n={};return void 0!==e.state&&(n.state=f(e.state)),void 0!==e.ordering&&(n.ordering=b(e.ordering)),void 0!==e.counterparty&&(n.counterparty=e.counterparty?t.Counterparty.toJSON(e.counterparty):void 0),e.connectionHops?n.connectionHops=e.connectionHops.map((function(e){return e})):n.connectionHops=[],void 0!==e.version&&(n.version=e.version),n},fromPartial:function(e){var n=Object.assign({},p);if(n.connectionHops=[],void 0!==e.state&&null!==e.state?n.state=e.state:n.state=0,void 0!==e.ordering&&null!==e.ordering?n.ordering=e.ordering:n.ordering=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromPartial(e.counterparty):n.counterparty=void 0,void 0!==e.connectionHops&&null!==e.connectionHops){var a,i=r(e.connectionHops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.connectionHops.push(o)}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.version&&null!==e.version?n.version=e.version:n.version="",n}};var h={state:0,ordering:0,connectionHops:"",version:"",portId:"",channelId:""};t.IdentifiedChannel={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();0!==e.state&&n.uint32(8).int32(e.state),0!==e.ordering&&n.uint32(16).int32(e.ordering),void 0!==e.counterparty&&t.Counterparty.encode(e.counterparty,n.uint32(26).fork()).ldelim();var a,i=r(e.connectionHops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.uint32(34).string(o)}}catch(e){i.e(e)}finally{i.f()}return""!==e.version&&n.uint32(42).string(e.version),""!==e.portId&&n.uint32(50).string(e.portId),""!==e.channelId&&n.uint32(58).string(e.channelId),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},h);for(i.connectionHops=[];r.pos>>3){case 1:i.state=r.int32();break;case 2:i.ordering=r.int32();break;case 3:i.counterparty=t.Counterparty.decode(r,r.uint32());break;case 4:i.connectionHops.push(r.string());break;case 5:i.version=r.string();break;case 6:i.portId=r.string();break;case 7:i.channelId=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},h);if(n.connectionHops=[],void 0!==e.state&&null!==e.state?n.state=d(e.state):n.state=0,void 0!==e.ordering&&null!==e.ordering?n.ordering=l(e.ordering):n.ordering=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromJSON(e.counterparty):n.counterparty=void 0,void 0!==e.connectionHops&&null!==e.connectionHops){var a,i=r(e.connectionHops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.connectionHops.push(String(o))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.version&&null!==e.version?n.version=String(e.version):n.version="",void 0!==e.portId&&null!==e.portId?n.portId=String(e.portId):n.portId="",void 0!==e.channelId&&null!==e.channelId?n.channelId=String(e.channelId):n.channelId="",n},toJSON:function(e){var n={};return void 0!==e.state&&(n.state=f(e.state)),void 0!==e.ordering&&(n.ordering=b(e.ordering)),void 0!==e.counterparty&&(n.counterparty=e.counterparty?t.Counterparty.toJSON(e.counterparty):void 0),e.connectionHops?n.connectionHops=e.connectionHops.map((function(e){return e})):n.connectionHops=[],void 0!==e.version&&(n.version=e.version),void 0!==e.portId&&(n.portId=e.portId),void 0!==e.channelId&&(n.channelId=e.channelId),n},fromPartial:function(e){var n=Object.assign({},h);if(n.connectionHops=[],void 0!==e.state&&null!==e.state?n.state=e.state:n.state=0,void 0!==e.ordering&&null!==e.ordering?n.ordering=e.ordering:n.ordering=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromPartial(e.counterparty):n.counterparty=void 0,void 0!==e.connectionHops&&null!==e.connectionHops){var a,i=r(e.connectionHops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.connectionHops.push(o)}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.version&&null!==e.version?n.version=e.version:n.version="",void 0!==e.portId&&null!==e.portId?n.portId=e.portId:n.portId="",void 0!==e.channelId&&null!==e.channelId?n.channelId=e.channelId:n.channelId="",n}};var y={portId:"",channelId:""};t.Counterparty={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channelId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",t}};var m={sequence:s.default.UZERO,sourcePort:"",sourceChannel:"",destinationPort:"",destinationChannel:"",timeoutTimestamp:s.default.UZERO};t.Packet={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return e.sequence.isZero()||t.uint32(8).uint64(e.sequence),""!==e.sourcePort&&t.uint32(18).string(e.sourcePort),""!==e.sourceChannel&&t.uint32(26).string(e.sourceChannel),""!==e.destinationPort&&t.uint32(34).string(e.destinationPort),""!==e.destinationChannel&&t.uint32(42).string(e.destinationChannel),0!==e.data.length&&t.uint32(50).bytes(e.data),void 0!==e.timeoutHeight&&u.Height.encode(e.timeoutHeight,t.uint32(58).fork()).ldelim(),e.timeoutTimestamp.isZero()||t.uint32(64).uint64(e.timeoutTimestamp),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.data=new Uint8Array;n.pos>>3){case 1:a.sequence=n.uint64();break;case 2:a.sourcePort=n.string();break;case 3:a.sourceChannel=n.string();break;case 4:a.destinationPort=n.string();break;case 5:a.destinationChannel=n.string();break;case 6:a.data=n.bytes();break;case 7:a.timeoutHeight=u.Height.decode(n,n.uint32());break;case 8:a.timeoutTimestamp=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return t.data=new Uint8Array,void 0!==e.sequence&&null!==e.sequence?t.sequence=s.default.fromString(e.sequence):t.sequence=s.default.UZERO,void 0!==e.sourcePort&&null!==e.sourcePort?t.sourcePort=String(e.sourcePort):t.sourcePort="",void 0!==e.sourceChannel&&null!==e.sourceChannel?t.sourceChannel=String(e.sourceChannel):t.sourceChannel="",void 0!==e.destinationPort&&null!==e.destinationPort?t.destinationPort=String(e.destinationPort):t.destinationPort="",void 0!==e.destinationChannel&&null!==e.destinationChannel?t.destinationChannel=String(e.destinationChannel):t.destinationChannel="",void 0!==e.data&&null!==e.data&&(t.data=_(e.data)),void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=u.Height.fromJSON(e.timeoutHeight):t.timeoutHeight=void 0,void 0!==e.timeoutTimestamp&&null!==e.timeoutTimestamp?t.timeoutTimestamp=s.default.fromString(e.timeoutTimestamp):t.timeoutTimestamp=s.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.sequence&&(t.sequence=(e.sequence||s.default.UZERO).toString()),void 0!==e.sourcePort&&(t.sourcePort=e.sourcePort),void 0!==e.sourceChannel&&(t.sourceChannel=e.sourceChannel),void 0!==e.destinationPort&&(t.destinationPort=e.destinationPort),void 0!==e.destinationChannel&&(t.destinationChannel=e.destinationChannel),void 0!==e.data&&(t.data=I(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.timeoutHeight&&(t.timeoutHeight=e.timeoutHeight?u.Height.toJSON(e.timeoutHeight):void 0),void 0!==e.timeoutTimestamp&&(t.timeoutTimestamp=(e.timeoutTimestamp||s.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence=s.default.UZERO,void 0!==e.sourcePort&&null!==e.sourcePort?t.sourcePort=e.sourcePort:t.sourcePort="",void 0!==e.sourceChannel&&null!==e.sourceChannel?t.sourceChannel=e.sourceChannel:t.sourceChannel="",void 0!==e.destinationPort&&null!==e.destinationPort?t.destinationPort=e.destinationPort:t.destinationPort="",void 0!==e.destinationChannel&&null!==e.destinationChannel?t.destinationChannel=e.destinationChannel:t.destinationChannel="",void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.timeoutHeight&&null!==e.timeoutHeight?t.timeoutHeight=u.Height.fromPartial(e.timeoutHeight):t.timeoutHeight=void 0,void 0!==e.timeoutTimestamp&&null!==e.timeoutTimestamp?t.timeoutTimestamp=e.timeoutTimestamp:t.timeoutTimestamp=s.default.UZERO,t}};var v={portId:"",channelId:"",sequence:s.default.UZERO};t.PacketState={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),e.sequence.isZero()||t.uint32(24).uint64(e.sequence),0!==e.data.length&&t.uint32(34).bytes(e.data),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.data=new Uint8Array;n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channelId=n.string();break;case 3:a.sequence=n.uint64();break;case 4:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return t.data=new Uint8Array,void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",void 0!==e.sequence&&null!==e.sequence?t.sequence=s.default.fromString(e.sequence):t.sequence=s.default.UZERO,void 0!==e.data&&null!==e.data&&(t.data=_(e.data)),t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.sequence&&(t.sequence=(e.sequence||s.default.UZERO).toString()),void 0!==e.data&&(t.data=I(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence=s.default.UZERO,void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var g={portId:"",channelId:"",sequence:s.default.UZERO};t.PacketId={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),e.sequence.isZero()||t.uint32(24).uint64(e.sequence),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channelId=n.string();break;case 3:a.sequence=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},g);return void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",void 0!==e.sequence&&null!==e.sequence?t.sequence=s.default.fromString(e.sequence):t.sequence=s.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.sequence&&(t.sequence=(e.sequence||s.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},g);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",void 0!==e.sequence&&null!==e.sequence?t.sequence=e.sequence:t.sequence=s.default.UZERO,t}};var A={};t.Acknowledgement={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.result&&t.uint32(170).bytes(e.result),void 0!==e.error&&t.uint32(178).string(e.error),t},decode:function(e,t){for(var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);n.pos>>3){case 21:a.result=n.bytes();break;case 22:a.error=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return void 0!==e.result&&null!==e.result&&(t.result=_(e.result)),void 0!==e.error&&null!==e.error?t.error=String(e.error):t.error=void 0,t},toJSON:function(e){var t={};return void 0!==e.result&&(t.result=void 0!==e.result?I(e.result):void 0),void 0!==e.error&&(t.error=e.error),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.result&&null!==e.result?t.result=e.result:t.result=void 0,void 0!==e.error&&null!==e.error?t.error=e.error:t.error=void 0,t}};var w=function(){if(void 0!==w)return w;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),x=w.atob||function(e){return w.Buffer.from(e,"base64").toString("binary")};function _(e){for(var t=x(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),void 0!==e.channel&&f.Channel.encode(e.channel,t.uint32(18).fork()).ldelim(),""!==e.signer&&t.uint32(26).string(e.signer),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channel=f.Channel.decode(n,n.uint32());break;case 3:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channel&&null!==e.channel?t.channel=f.Channel.fromJSON(e.channel):t.channel=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channel&&(t.channel=e.channel?f.Channel.toJSON(e.channel):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channel&&null!==e.channel?t.channel=f.Channel.fromPartial(e.channel):t.channel=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var m={channelId:""};t.MsgChannelOpenInitResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return""!==e.channelId&&t.uint32(10).string(e.channelId),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3==1?a.channelId=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",t},toJSON:function(e){var t={};return void 0!==e.channelId&&(t.channelId=e.channelId),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",t}};var v={portId:"",previousChannelId:"",counterpartyVersion:"",signer:""};t.MsgChannelOpenTry={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.previousChannelId&&t.uint32(18).string(e.previousChannelId),void 0!==e.channel&&f.Channel.encode(e.channel,t.uint32(26).fork()).ldelim(),""!==e.counterpartyVersion&&t.uint32(34).string(e.counterpartyVersion),0!==e.proofInit.length&&t.uint32(42).bytes(e.proofInit),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(50).fork()).ldelim(),""!==e.signer&&t.uint32(58).string(e.signer),t},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.proofInit=new Uint8Array;n.pos>>3){case 1:a.portId=n.string();break;case 2:a.previousChannelId=n.string();break;case 3:a.channel=f.Channel.decode(n,n.uint32());break;case 4:a.counterpartyVersion=n.string();break;case 5:a.proofInit=n.bytes();break;case 6:a.proofHeight=l.Height.decode(n,n.uint32());break;case 7:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return t.proofInit=new Uint8Array,void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.previousChannelId&&null!==e.previousChannelId?t.previousChannelId=String(e.previousChannelId):t.previousChannelId="",void 0!==e.channel&&null!==e.channel?t.channel=f.Channel.fromJSON(e.channel):t.channel=void 0,void 0!==e.counterpartyVersion&&null!==e.counterpartyVersion?t.counterpartyVersion=String(e.counterpartyVersion):t.counterpartyVersion="",void 0!==e.proofInit&&null!==e.proofInit&&(t.proofInit=F(e.proofInit)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.previousChannelId&&(t.previousChannelId=e.previousChannelId),void 0!==e.channel&&(t.channel=e.channel?f.Channel.toJSON(e.channel):void 0),void 0!==e.counterpartyVersion&&(t.counterpartyVersion=e.counterpartyVersion),void 0!==e.proofInit&&(t.proofInit=H(void 0!==e.proofInit?e.proofInit:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.previousChannelId&&null!==e.previousChannelId?t.previousChannelId=e.previousChannelId:t.previousChannelId="",void 0!==e.channel&&null!==e.channel?t.channel=f.Channel.fromPartial(e.channel):t.channel=void 0,void 0!==e.counterpartyVersion&&null!==e.counterpartyVersion?t.counterpartyVersion=e.counterpartyVersion:t.counterpartyVersion="",void 0!==e.proofInit&&null!==e.proofInit?t.proofInit=e.proofInit:t.proofInit=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var g={};t.MsgChannelOpenTryResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create()},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),""!==e.counterpartyChannelId&&t.uint32(26).string(e.counterpartyChannelId),""!==e.counterpartyVersion&&t.uint32(34).string(e.counterpartyVersion),0!==e.proofTry.length&&t.uint32(42).bytes(e.proofTry),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(50).fork()).ldelim(),""!==e.signer&&t.uint32(58).string(e.signer),t},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.proofTry=new Uint8Array;n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channelId=n.string();break;case 3:a.counterpartyChannelId=n.string();break;case 4:a.counterpartyVersion=n.string();break;case 5:a.proofTry=n.bytes();break;case 6:a.proofHeight=l.Height.decode(n,n.uint32());break;case 7:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return t.proofTry=new Uint8Array,void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",void 0!==e.counterpartyChannelId&&null!==e.counterpartyChannelId?t.counterpartyChannelId=String(e.counterpartyChannelId):t.counterpartyChannelId="",void 0!==e.counterpartyVersion&&null!==e.counterpartyVersion?t.counterpartyVersion=String(e.counterpartyVersion):t.counterpartyVersion="",void 0!==e.proofTry&&null!==e.proofTry&&(t.proofTry=F(e.proofTry)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.counterpartyChannelId&&(t.counterpartyChannelId=e.counterpartyChannelId),void 0!==e.counterpartyVersion&&(t.counterpartyVersion=e.counterpartyVersion),void 0!==e.proofTry&&(t.proofTry=H(void 0!==e.proofTry?e.proofTry:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",void 0!==e.counterpartyChannelId&&null!==e.counterpartyChannelId?t.counterpartyChannelId=e.counterpartyChannelId:t.counterpartyChannelId="",void 0!==e.counterpartyVersion&&null!==e.counterpartyVersion?t.counterpartyVersion=e.counterpartyVersion:t.counterpartyVersion="",void 0!==e.proofTry&&null!==e.proofTry?t.proofTry=e.proofTry:t.proofTry=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var w={};t.MsgChannelOpenAckResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create()},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),0!==e.proofAck.length&&t.uint32(26).bytes(e.proofAck),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),""!==e.signer&&t.uint32(42).string(e.signer),t},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},x);for(a.proofAck=new Uint8Array;n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channelId=n.string();break;case 3:a.proofAck=n.bytes();break;case 4:a.proofHeight=l.Height.decode(n,n.uint32());break;case 5:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},x);return t.proofAck=new Uint8Array,void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",void 0!==e.proofAck&&null!==e.proofAck&&(t.proofAck=F(e.proofAck)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.proofAck&&(t.proofAck=H(void 0!==e.proofAck?e.proofAck:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},x);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",void 0!==e.proofAck&&null!==e.proofAck?t.proofAck=e.proofAck:t.proofAck=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var _={};t.MsgChannelOpenConfirmResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create()},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},_);n.pos1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),""!==e.signer&&t.uint32(26).string(e.signer),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channelId=n.string();break;case 3:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},k);return void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var I={};t.MsgChannelCloseInitResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create()},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},I);n.pos1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return""!==e.portId&&t.uint32(10).string(e.portId),""!==e.channelId&&t.uint32(18).string(e.channelId),0!==e.proofInit.length&&t.uint32(26).bytes(e.proofInit),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),""!==e.signer&&t.uint32(42).string(e.signer),t},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},S);for(a.proofInit=new Uint8Array;n.pos>>3){case 1:a.portId=n.string();break;case 2:a.channelId=n.string();break;case 3:a.proofInit=n.bytes();break;case 4:a.proofHeight=l.Height.decode(n,n.uint32());break;case 5:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},S);return t.proofInit=new Uint8Array,void 0!==e.portId&&null!==e.portId?t.portId=String(e.portId):t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=String(e.channelId):t.channelId="",void 0!==e.proofInit&&null!==e.proofInit&&(t.proofInit=F(e.proofInit)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.portId&&(t.portId=e.portId),void 0!==e.channelId&&(t.channelId=e.channelId),void 0!==e.proofInit&&(t.proofInit=H(void 0!==e.proofInit?e.proofInit:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},S);return void 0!==e.portId&&null!==e.portId?t.portId=e.portId:t.portId="",void 0!==e.channelId&&null!==e.channelId?t.channelId=e.channelId:t.channelId="",void 0!==e.proofInit&&null!==e.proofInit?t.proofInit=e.proofInit:t.proofInit=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var E={};t.MsgChannelCloseConfirmResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create()},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},E);n.pos1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return void 0!==e.packet&&f.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),0!==e.proofCommitment.length&&t.uint32(18).bytes(e.proofCommitment),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),""!==e.signer&&t.uint32(34).string(e.signer),t},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},C);for(a.proofCommitment=new Uint8Array;n.pos>>3){case 1:a.packet=f.Packet.decode(n,n.uint32());break;case 2:a.proofCommitment=n.bytes();break;case 3:a.proofHeight=l.Height.decode(n,n.uint32());break;case 4:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},C);return t.proofCommitment=new Uint8Array,void 0!==e.packet&&null!==e.packet?t.packet=f.Packet.fromJSON(e.packet):t.packet=void 0,void 0!==e.proofCommitment&&null!==e.proofCommitment&&(t.proofCommitment=F(e.proofCommitment)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.packet&&(t.packet=e.packet?f.Packet.toJSON(e.packet):void 0),void 0!==e.proofCommitment&&(t.proofCommitment=H(void 0!==e.proofCommitment?e.proofCommitment:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},C);return void 0!==e.packet&&null!==e.packet?t.packet=f.Packet.fromPartial(e.packet):t.packet=void 0,void 0!==e.proofCommitment&&null!==e.proofCommitment?t.proofCommitment=e.proofCommitment:t.proofCommitment=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var T={result:0};t.MsgRecvPacketResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return 0!==e.result&&t.uint32(8).int32(e.result),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},T);n.pos>>3==1?a.result=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},T);return void 0!==e.result&&null!==e.result?t.result=p(e.result):t.result=0,t},toJSON:function(e){var t={};return void 0!==e.result&&(t.result=h(e.result)),t},fromPartial:function(e){var t=Object.assign({},T);return void 0!==e.result&&null!==e.result?t.result=e.result:t.result=0,t}};var O={nextSequenceRecv:c.default.UZERO,signer:""};t.MsgTimeout={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return void 0!==e.packet&&f.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),0!==e.proofUnreceived.length&&t.uint32(18).bytes(e.proofUnreceived),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),e.nextSequenceRecv.isZero()||t.uint32(32).uint64(e.nextSequenceRecv),""!==e.signer&&t.uint32(42).string(e.signer),t},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},O);for(a.proofUnreceived=new Uint8Array;n.pos>>3){case 1:a.packet=f.Packet.decode(n,n.uint32());break;case 2:a.proofUnreceived=n.bytes();break;case 3:a.proofHeight=l.Height.decode(n,n.uint32());break;case 4:a.nextSequenceRecv=n.uint64();break;case 5:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},O);return t.proofUnreceived=new Uint8Array,void 0!==e.packet&&null!==e.packet?t.packet=f.Packet.fromJSON(e.packet):t.packet=void 0,void 0!==e.proofUnreceived&&null!==e.proofUnreceived&&(t.proofUnreceived=F(e.proofUnreceived)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.nextSequenceRecv&&null!==e.nextSequenceRecv?t.nextSequenceRecv=c.default.fromString(e.nextSequenceRecv):t.nextSequenceRecv=c.default.UZERO,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.packet&&(t.packet=e.packet?f.Packet.toJSON(e.packet):void 0),void 0!==e.proofUnreceived&&(t.proofUnreceived=H(void 0!==e.proofUnreceived?e.proofUnreceived:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.nextSequenceRecv&&(t.nextSequenceRecv=(e.nextSequenceRecv||c.default.UZERO).toString()),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},O);return void 0!==e.packet&&null!==e.packet?t.packet=f.Packet.fromPartial(e.packet):t.packet=void 0,void 0!==e.proofUnreceived&&null!==e.proofUnreceived?t.proofUnreceived=e.proofUnreceived:t.proofUnreceived=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.nextSequenceRecv&&null!==e.nextSequenceRecv?t.nextSequenceRecv=e.nextSequenceRecv:t.nextSequenceRecv=c.default.UZERO,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var P={result:0};t.MsgTimeoutResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return 0!==e.result&&t.uint32(8).int32(e.result),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},P);n.pos>>3==1?a.result=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},P);return void 0!==e.result&&null!==e.result?t.result=p(e.result):t.result=0,t},toJSON:function(e){var t={};return void 0!==e.result&&(t.result=h(e.result)),t},fromPartial:function(e){var t=Object.assign({},P);return void 0!==e.result&&null!==e.result?t.result=e.result:t.result=0,t}};var M={nextSequenceRecv:c.default.UZERO,signer:""};t.MsgTimeoutOnClose={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return void 0!==e.packet&&f.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),0!==e.proofUnreceived.length&&t.uint32(18).bytes(e.proofUnreceived),0!==e.proofClose.length&&t.uint32(26).bytes(e.proofClose),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),e.nextSequenceRecv.isZero()||t.uint32(40).uint64(e.nextSequenceRecv),""!==e.signer&&t.uint32(50).string(e.signer),t},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},M);for(a.proofUnreceived=new Uint8Array,a.proofClose=new Uint8Array;n.pos>>3){case 1:a.packet=f.Packet.decode(n,n.uint32());break;case 2:a.proofUnreceived=n.bytes();break;case 3:a.proofClose=n.bytes();break;case 4:a.proofHeight=l.Height.decode(n,n.uint32());break;case 5:a.nextSequenceRecv=n.uint64();break;case 6:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},M);return t.proofUnreceived=new Uint8Array,t.proofClose=new Uint8Array,void 0!==e.packet&&null!==e.packet?t.packet=f.Packet.fromJSON(e.packet):t.packet=void 0,void 0!==e.proofUnreceived&&null!==e.proofUnreceived&&(t.proofUnreceived=F(e.proofUnreceived)),void 0!==e.proofClose&&null!==e.proofClose&&(t.proofClose=F(e.proofClose)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.nextSequenceRecv&&null!==e.nextSequenceRecv?t.nextSequenceRecv=c.default.fromString(e.nextSequenceRecv):t.nextSequenceRecv=c.default.UZERO,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.packet&&(t.packet=e.packet?f.Packet.toJSON(e.packet):void 0),void 0!==e.proofUnreceived&&(t.proofUnreceived=H(void 0!==e.proofUnreceived?e.proofUnreceived:new Uint8Array)),void 0!==e.proofClose&&(t.proofClose=H(void 0!==e.proofClose?e.proofClose:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.nextSequenceRecv&&(t.nextSequenceRecv=(e.nextSequenceRecv||c.default.UZERO).toString()),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},M);return void 0!==e.packet&&null!==e.packet?t.packet=f.Packet.fromPartial(e.packet):t.packet=void 0,void 0!==e.proofUnreceived&&null!==e.proofUnreceived?t.proofUnreceived=e.proofUnreceived:t.proofUnreceived=new Uint8Array,void 0!==e.proofClose&&null!==e.proofClose?t.proofClose=e.proofClose:t.proofClose=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.nextSequenceRecv&&null!==e.nextSequenceRecv?t.nextSequenceRecv=e.nextSequenceRecv:t.nextSequenceRecv=c.default.UZERO,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var B={result:0};t.MsgTimeoutOnCloseResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return 0!==e.result&&t.uint32(8).int32(e.result),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},B);n.pos>>3==1?a.result=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},B);return void 0!==e.result&&null!==e.result?t.result=p(e.result):t.result=0,t},toJSON:function(e){var t={};return void 0!==e.result&&(t.result=h(e.result)),t},fromPartial:function(e){var t=Object.assign({},B);return void 0!==e.result&&null!==e.result?t.result=e.result:t.result=0,t}};var N={signer:""};t.MsgAcknowledgement={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return void 0!==e.packet&&f.Packet.encode(e.packet,t.uint32(10).fork()).ldelim(),0!==e.acknowledgement.length&&t.uint32(18).bytes(e.acknowledgement),0!==e.proofAcked.length&&t.uint32(26).bytes(e.proofAcked),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(34).fork()).ldelim(),""!==e.signer&&t.uint32(42).string(e.signer),t},decode:function(e,t){var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},N);for(a.acknowledgement=new Uint8Array,a.proofAcked=new Uint8Array;n.pos>>3){case 1:a.packet=f.Packet.decode(n,n.uint32());break;case 2:a.acknowledgement=n.bytes();break;case 3:a.proofAcked=n.bytes();break;case 4:a.proofHeight=l.Height.decode(n,n.uint32());break;case 5:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},N);return t.acknowledgement=new Uint8Array,t.proofAcked=new Uint8Array,void 0!==e.packet&&null!==e.packet?t.packet=f.Packet.fromJSON(e.packet):t.packet=void 0,void 0!==e.acknowledgement&&null!==e.acknowledgement&&(t.acknowledgement=F(e.acknowledgement)),void 0!==e.proofAcked&&null!==e.proofAcked&&(t.proofAcked=F(e.proofAcked)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.packet&&(t.packet=e.packet?f.Packet.toJSON(e.packet):void 0),void 0!==e.acknowledgement&&(t.acknowledgement=H(void 0!==e.acknowledgement?e.acknowledgement:new Uint8Array)),void 0!==e.proofAcked&&(t.proofAcked=H(void 0!==e.proofAcked?e.proofAcked:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},N);return void 0!==e.packet&&null!==e.packet?t.packet=f.Packet.fromPartial(e.packet):t.packet=void 0,void 0!==e.acknowledgement&&null!==e.acknowledgement?t.acknowledgement=e.acknowledgement:t.acknowledgement=new Uint8Array,void 0!==e.proofAcked&&null!==e.proofAcked?t.proofAcked=e.proofAcked:t.proofAcked=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var R={result:0};t.MsgAcknowledgementResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.default.Writer.create();return 0!==e.result&&t.uint32(8).int32(e.result),t},decode:function(e,t){for(var n=e instanceof d.default.Reader?e:new d.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},R);n.pos>>3==1?a.result=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},R);return void 0!==e.result&&null!==e.result?t.result=p(e.result):t.result=0,t},toJSON:function(e){var t={};return void 0!==e.result&&(t.result=h(e.result)),t},fromPartial:function(e){var t=Object.assign({},R);return void 0!==e.result&&null!==e.result?t.result=e.result:t.result=0,t}};var D=function(){function e(t){a(this,e),this.rpc=t,this.ChannelOpenInit=this.ChannelOpenInit.bind(this),this.ChannelOpenTry=this.ChannelOpenTry.bind(this),this.ChannelOpenAck=this.ChannelOpenAck.bind(this),this.ChannelOpenConfirm=this.ChannelOpenConfirm.bind(this),this.ChannelCloseInit=this.ChannelCloseInit.bind(this),this.ChannelCloseConfirm=this.ChannelCloseConfirm.bind(this),this.RecvPacket=this.RecvPacket.bind(this),this.Timeout=this.Timeout.bind(this),this.TimeoutOnClose=this.TimeoutOnClose.bind(this),this.Acknowledgement=this.Acknowledgement.bind(this)}return i(e,[{key:"ChannelOpenInit",value:function(e,n){return this.rpc.unary(t.MsgChannelOpenInitDesc,t.MsgChannelOpenInit.fromPartial(e),n)}},{key:"ChannelOpenTry",value:function(e,n){return this.rpc.unary(t.MsgChannelOpenTryDesc,t.MsgChannelOpenTry.fromPartial(e),n)}},{key:"ChannelOpenAck",value:function(e,n){return this.rpc.unary(t.MsgChannelOpenAckDesc,t.MsgChannelOpenAck.fromPartial(e),n)}},{key:"ChannelOpenConfirm",value:function(e,n){return this.rpc.unary(t.MsgChannelOpenConfirmDesc,t.MsgChannelOpenConfirm.fromPartial(e),n)}},{key:"ChannelCloseInit",value:function(e,n){return this.rpc.unary(t.MsgChannelCloseInitDesc,t.MsgChannelCloseInit.fromPartial(e),n)}},{key:"ChannelCloseConfirm",value:function(e,n){return this.rpc.unary(t.MsgChannelCloseConfirmDesc,t.MsgChannelCloseConfirm.fromPartial(e),n)}},{key:"RecvPacket",value:function(e,n){return this.rpc.unary(t.MsgRecvPacketDesc,t.MsgRecvPacket.fromPartial(e),n)}},{key:"Timeout",value:function(e,n){return this.rpc.unary(t.MsgTimeoutDesc,t.MsgTimeout.fromPartial(e),n)}},{key:"TimeoutOnClose",value:function(e,n){return this.rpc.unary(t.MsgTimeoutOnCloseDesc,t.MsgTimeoutOnClose.fromPartial(e),n)}},{key:"Acknowledgement",value:function(e,n){return this.rpc.unary(t.MsgAcknowledgementDesc,t.MsgAcknowledgement.fromPartial(e),n)}}]),e}();t.MsgClientImpl=D,t.MsgDesc={serviceName:"ibc.core.channel.v1.Msg"},t.MsgChannelOpenInitDesc={methodName:"ChannelOpenInit",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgChannelOpenInit.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgChannelOpenInitResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgChannelOpenTryDesc={methodName:"ChannelOpenTry",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgChannelOpenTry.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgChannelOpenTryResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgChannelOpenAckDesc={methodName:"ChannelOpenAck",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgChannelOpenAck.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgChannelOpenAckResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgChannelOpenConfirmDesc={methodName:"ChannelOpenConfirm",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgChannelOpenConfirm.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgChannelOpenConfirmResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgChannelCloseInitDesc={methodName:"ChannelCloseInit",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgChannelCloseInit.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgChannelCloseInitResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgChannelCloseConfirmDesc={methodName:"ChannelCloseConfirm",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgChannelCloseConfirm.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgChannelCloseConfirmResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgRecvPacketDesc={methodName:"RecvPacket",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgRecvPacket.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgRecvPacketResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgTimeoutDesc={methodName:"Timeout",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgTimeout.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgTimeoutResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgTimeoutOnCloseDesc={methodName:"TimeoutOnClose",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgTimeoutOnClose.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgTimeoutOnCloseResponse.decode(e)),{toObject:function(){return this}})}}},t.MsgAcknowledgementDesc={methodName:"Acknowledgement",service:t.MsgDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.MsgAcknowledgement.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.MsgAcknowledgementResponse.decode(e)),{toObject:function(){return this}})}}};var j=function(){function e(t,n){a(this,e),this.host=t,this.options=n}return i(e,[{key:"unary",value:function(e,t,n){var r,a=this,i=Object.assign(Object.assign({},t),e.requestType),o=n&&this.options.metadata?new b.BrowserHeaders(Object.assign(Object.assign({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise((function(t,n){u.grpc.unary(e,{request:i,host:a.host,metadata:o,transport:a.options.transport,debug:a.options.debug,onEnd:function(e){if(e.status===u.grpc.Code.OK)t(e.message);else{var r=new Error(e.statusMessage);r.code=e.status,r.metadata=e.trailers,n(r)}}})}))}}]),e}();t.GrpcWebImpl=j;var U=function(){if(void 0!==U)return U;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),L=U.atob||function(e){return U.Buffer.from(e,"base64").toString("binary")};function F(e){for(var t=L(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.clientState&&s.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.clientState=s.Any.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.clientState&&null!==e.clientState?t.clientState=s.Any.fromJSON(e.clientState):t.clientState=void 0,t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.clientState&&(t.clientState=e.clientState?s.Any.toJSON(e.clientState):void 0),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.clientState&&null!==e.clientState?t.clientState=s.Any.fromPartial(e.clientState):t.clientState=void 0,t}};var d={};t.ConsensusStateWithHeight={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.height&&t.Height.encode(e.height,n.uint32(10).fork()).ldelim(),void 0!==e.consensusState&&s.Any.encode(e.consensusState,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);r.pos>>3){case 1:i.height=t.Height.decode(r,r.uint32());break;case 2:i.consensusState=s.Any.decode(r,r.uint32());break;default:r.skipType(7&c)}}return i},fromJSON:function(e){var n=Object.assign({},d);return void 0!==e.height&&null!==e.height?n.height=t.Height.fromJSON(e.height):n.height=void 0,void 0!==e.consensusState&&null!==e.consensusState?n.consensusState=s.Any.fromJSON(e.consensusState):n.consensusState=void 0,n},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=e.height?t.Height.toJSON(e.height):void 0),void 0!==e.consensusState&&(n.consensusState=e.consensusState?s.Any.toJSON(e.consensusState):void 0),n},fromPartial:function(e){var n=Object.assign({},d);return void 0!==e.height&&null!==e.height?n.height=t.Height.fromPartial(e.height):n.height=void 0,void 0!==e.consensusState&&null!==e.consensusState?n.consensusState=s.Any.fromPartial(e.consensusState):n.consensusState=void 0,n}};var f={clientId:""};t.ClientConsensusStates={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.clientId&&n.uint32(10).string(e.clientId);var a,i=r(e.consensusStates);try{for(i.s();!(a=i.n()).done;){var s=a.value;t.ConsensusStateWithHeight.encode(s,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);for(i.consensusStates=[];r.pos>>3){case 1:i.clientId=r.string();break;case 2:i.consensusStates.push(t.ConsensusStateWithHeight.decode(r,r.uint32()));break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},f);if(n.consensusStates=[],void 0!==e.clientId&&null!==e.clientId?n.clientId=String(e.clientId):n.clientId="",void 0!==e.consensusStates&&null!==e.consensusStates){var a,i=r(e.consensusStates);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.consensusStates.push(t.ConsensusStateWithHeight.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.clientId&&(n.clientId=e.clientId),e.consensusStates?n.consensusStates=e.consensusStates.map((function(e){return e?t.ConsensusStateWithHeight.toJSON(e):void 0})):n.consensusStates=[],n},fromPartial:function(e){var n=Object.assign({},f);if(n.consensusStates=[],void 0!==e.clientId&&null!==e.clientId?n.clientId=e.clientId:n.clientId="",void 0!==e.consensusStates&&null!==e.consensusStates){var a,i=r(e.consensusStates);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.consensusStates.push(t.ConsensusStateWithHeight.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var l={title:"",description:"",subjectClientId:"",substituteClientId:""};t.ClientUpdateProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.subjectClientId&&t.uint32(26).string(e.subjectClientId),""!==e.substituteClientId&&t.uint32(34).string(e.substituteClientId),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.subjectClientId=n.string();break;case 4:a.substituteClientId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.subjectClientId&&null!==e.subjectClientId?t.subjectClientId=String(e.subjectClientId):t.subjectClientId="",void 0!==e.substituteClientId&&null!==e.substituteClientId?t.substituteClientId=String(e.substituteClientId):t.substituteClientId="",t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.subjectClientId&&(t.subjectClientId=e.subjectClientId),void 0!==e.substituteClientId&&(t.substituteClientId=e.substituteClientId),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.subjectClientId&&null!==e.subjectClientId?t.subjectClientId=e.subjectClientId:t.subjectClientId="",void 0!==e.substituteClientId&&null!==e.substituteClientId?t.substituteClientId=e.substituteClientId:t.substituteClientId="",t}};var b={title:"",description:""};t.UpgradeProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),void 0!==e.plan&&c.Plan.encode(e.plan,t.uint32(26).fork()).ldelim(),void 0!==e.upgradedClientState&&s.Any.encode(e.upgradedClientState,t.uint32(34).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.plan=c.Plan.decode(n,n.uint32());break;case 4:a.upgradedClientState=s.Any.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.title&&null!==e.title?t.title=String(e.title):t.title="",void 0!==e.description&&null!==e.description?t.description=String(e.description):t.description="",void 0!==e.plan&&null!==e.plan?t.plan=c.Plan.fromJSON(e.plan):t.plan=void 0,void 0!==e.upgradedClientState&&null!==e.upgradedClientState?t.upgradedClientState=s.Any.fromJSON(e.upgradedClientState):t.upgradedClientState=void 0,t},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.plan&&(t.plan=e.plan?c.Plan.toJSON(e.plan):void 0),void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?s.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.title&&null!==e.title?t.title=e.title:t.title="",void 0!==e.description&&null!==e.description?t.description=e.description:t.description="",void 0!==e.plan&&null!==e.plan?t.plan=c.Plan.fromPartial(e.plan):t.plan=void 0,void 0!==e.upgradedClientState&&null!==e.upgradedClientState?t.upgradedClientState=s.Any.fromPartial(e.upgradedClientState):t.upgradedClientState=void 0,t}};var p={revisionNumber:i.default.UZERO,revisionHeight:i.default.UZERO};t.Height={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.revisionNumber.isZero()||t.uint32(8).uint64(e.revisionNumber),e.revisionHeight.isZero()||t.uint32(16).uint64(e.revisionHeight),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.revisionNumber=n.uint64();break;case 2:a.revisionHeight=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.revisionNumber&&null!==e.revisionNumber?t.revisionNumber=i.default.fromString(e.revisionNumber):t.revisionNumber=i.default.UZERO,void 0!==e.revisionHeight&&null!==e.revisionHeight?t.revisionHeight=i.default.fromString(e.revisionHeight):t.revisionHeight=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.revisionNumber&&(t.revisionNumber=(e.revisionNumber||i.default.UZERO).toString()),void 0!==e.revisionHeight&&(t.revisionHeight=(e.revisionHeight||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.revisionNumber&&null!==e.revisionNumber?t.revisionNumber=e.revisionNumber:t.revisionNumber=i.default.UZERO,void 0!==e.revisionHeight&&null!==e.revisionHeight?t.revisionHeight=e.revisionHeight:t.revisionHeight=i.default.UZERO,t}};var h={allowedClients:""};t.Params={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.allowedClients);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.allowedClients=[];n.pos>>3==1?a.allowedClients.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},h);if(t.allowedClients=[],void 0!==e.allowedClients&&null!==e.allowedClients){var n,a=r(e.allowedClients);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.allowedClients.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.allowedClients?t.allowedClients=e.allowedClients.map((function(e){return e})):t.allowedClients=[],t},fromPartial:function(e){var t=Object.assign({},h);if(t.allowedClients=[],void 0!==e.allowedClients&&null!==e.allowedClients){var n,a=r(e.allowedClients);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.allowedClients.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},41113:function(e,t,n){"use strict";var r=n(33482).default,a=n(34671).default,i=n(68387).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgSubmitMisbehaviourDesc=t.MsgUpgradeClientDesc=t.MsgUpdateClientDesc=t.MsgCreateClientDesc=t.MsgDesc=t.MsgClientImpl=t.MsgSubmitMisbehaviourResponse=t.MsgSubmitMisbehaviour=t.MsgUpgradeClientResponse=t.MsgUpgradeClient=t.MsgUpdateClientResponse=t.MsgUpdateClient=t.MsgCreateClientResponse=t.MsgCreateClient=t.protobufPackage=void 0;var s=o(n(24141)),c=n(34882),u=o(n(1)),d=n(58682),f=n(46711);t.protobufPackage="ibc.core.client.v1";var l={signer:""};t.MsgCreateClient={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return void 0!==e.clientState&&d.Any.encode(e.clientState,t.uint32(10).fork()).ldelim(),void 0!==e.consensusState&&d.Any.encode(e.consensusState,t.uint32(18).fork()).ldelim(),""!==e.signer&&t.uint32(26).string(e.signer),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3){case 1:a.clientState=d.Any.decode(n,n.uint32());break;case 2:a.consensusState=d.Any.decode(n,n.uint32());break;case 3:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.clientState&&null!==e.clientState?t.clientState=d.Any.fromJSON(e.clientState):t.clientState=void 0,void 0!==e.consensusState&&null!==e.consensusState?t.consensusState=d.Any.fromJSON(e.consensusState):t.consensusState=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.clientState&&(t.clientState=e.clientState?d.Any.toJSON(e.clientState):void 0),void 0!==e.consensusState&&(t.consensusState=e.consensusState?d.Any.toJSON(e.consensusState):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.clientState&&null!==e.clientState?t.clientState=d.Any.fromPartial(e.clientState):t.clientState=void 0,void 0!==e.consensusState&&null!==e.consensusState?t.consensusState=d.Any.fromPartial(e.consensusState):t.consensusState=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var b={};t.MsgCreateClientResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.header&&d.Any.encode(e.header,t.uint32(18).fork()).ldelim(),""!==e.signer&&t.uint32(26).string(e.signer),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.header=d.Any.decode(n,n.uint32());break;case 3:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.header&&null!==e.header?t.header=d.Any.fromJSON(e.header):t.header=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.header&&(t.header=e.header?d.Any.toJSON(e.header):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.header&&null!==e.header?t.header=d.Any.fromPartial(e.header):t.header=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var h={};t.MsgUpdateClientResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.clientState&&d.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),void 0!==e.consensusState&&d.Any.encode(e.consensusState,t.uint32(26).fork()).ldelim(),0!==e.proofUpgradeClient.length&&t.uint32(34).bytes(e.proofUpgradeClient),0!==e.proofUpgradeConsensusState.length&&t.uint32(42).bytes(e.proofUpgradeConsensusState),""!==e.signer&&t.uint32(50).string(e.signer),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.proofUpgradeClient=new Uint8Array,a.proofUpgradeConsensusState=new Uint8Array;n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.clientState=d.Any.decode(n,n.uint32());break;case 3:a.consensusState=d.Any.decode(n,n.uint32());break;case 4:a.proofUpgradeClient=n.bytes();break;case 5:a.proofUpgradeConsensusState=n.bytes();break;case 6:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);return t.proofUpgradeClient=new Uint8Array,t.proofUpgradeConsensusState=new Uint8Array,void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.clientState&&null!==e.clientState?t.clientState=d.Any.fromJSON(e.clientState):t.clientState=void 0,void 0!==e.consensusState&&null!==e.consensusState?t.consensusState=d.Any.fromJSON(e.consensusState):t.consensusState=void 0,void 0!==e.proofUpgradeClient&&null!==e.proofUpgradeClient&&(t.proofUpgradeClient=k(e.proofUpgradeClient)),void 0!==e.proofUpgradeConsensusState&&null!==e.proofUpgradeConsensusState&&(t.proofUpgradeConsensusState=k(e.proofUpgradeConsensusState)),void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.clientState&&(t.clientState=e.clientState?d.Any.toJSON(e.clientState):void 0),void 0!==e.consensusState&&(t.consensusState=e.consensusState?d.Any.toJSON(e.consensusState):void 0),void 0!==e.proofUpgradeClient&&(t.proofUpgradeClient=S(void 0!==e.proofUpgradeClient?e.proofUpgradeClient:new Uint8Array)),void 0!==e.proofUpgradeConsensusState&&(t.proofUpgradeConsensusState=S(void 0!==e.proofUpgradeConsensusState?e.proofUpgradeConsensusState:new Uint8Array)),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},y);return void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.clientState&&null!==e.clientState?t.clientState=d.Any.fromPartial(e.clientState):t.clientState=void 0,void 0!==e.consensusState&&null!==e.consensusState?t.consensusState=d.Any.fromPartial(e.consensusState):t.consensusState=void 0,void 0!==e.proofUpgradeClient&&null!==e.proofUpgradeClient?t.proofUpgradeClient=e.proofUpgradeClient:t.proofUpgradeClient=new Uint8Array,void 0!==e.proofUpgradeConsensusState&&null!==e.proofUpgradeConsensusState?t.proofUpgradeConsensusState=e.proofUpgradeConsensusState:t.proofUpgradeConsensusState=new Uint8Array,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var m={};t.MsgUpgradeClientResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.misbehaviour&&d.Any.encode(e.misbehaviour,t.uint32(18).fork()).ldelim(),""!==e.signer&&t.uint32(26).string(e.signer),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.misbehaviour=d.Any.decode(n,n.uint32());break;case 3:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.misbehaviour&&null!==e.misbehaviour?t.misbehaviour=d.Any.fromJSON(e.misbehaviour):t.misbehaviour=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.misbehaviour&&(t.misbehaviour=e.misbehaviour?d.Any.toJSON(e.misbehaviour):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.misbehaviour&&null!==e.misbehaviour?t.misbehaviour=d.Any.fromPartial(e.misbehaviour):t.misbehaviour=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var g={};t.MsgSubmitMisbehaviourResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.hash.length&&t.uint32(10).bytes(e.hash),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);for(a.hash=new Uint8Array;n.pos>>3==1?a.hash=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},c);return t.hash=new Uint8Array,void 0!==e.hash&&null!==e.hash&&(t.hash=p(e.hash)),t},toJSON:function(e){var t={};return void 0!==e.hash&&(t.hash=y(void 0!==e.hash?e.hash:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash=new Uint8Array,t}};var u={};t.MerklePrefix={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.keyPrefix.length&&t.uint32(10).bytes(e.keyPrefix),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.keyPrefix=new Uint8Array;n.pos>>3==1?a.keyPrefix=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},u);return t.keyPrefix=new Uint8Array,void 0!==e.keyPrefix&&null!==e.keyPrefix&&(t.keyPrefix=p(e.keyPrefix)),t},toJSON:function(e){var t={};return void 0!==e.keyPrefix&&(t.keyPrefix=y(void 0!==e.keyPrefix?e.keyPrefix:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.keyPrefix&&null!==e.keyPrefix?t.keyPrefix=e.keyPrefix:t.keyPrefix=new Uint8Array,t}};var d={keyPath:""};t.MerklePath={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.keyPath);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.keyPath=[];n.pos>>3==1?a.keyPath.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},d);if(t.keyPath=[],void 0!==e.keyPath&&null!==e.keyPath){var n,a=r(e.keyPath);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.keyPath.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.keyPath?t.keyPath=e.keyPath.map((function(e){return e})):t.keyPath=[],t},fromPartial:function(e){var t=Object.assign({},d);if(t.keyPath=[],void 0!==e.keyPath&&null!==e.keyPath){var n,a=r(e.keyPath);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.keyPath.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var f={};t.MerkleProof={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.proofs);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.CommitmentProof.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.proofs=[];n.pos>>3==1?a.proofs.push(s.CommitmentProof.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},f);if(t.proofs=[],void 0!==e.proofs&&null!==e.proofs){var n,a=r(e.proofs);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.proofs.push(s.CommitmentProof.fromJSON(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.proofs?t.proofs=e.proofs.map((function(e){return e?s.CommitmentProof.toJSON(e):void 0})):t.proofs=[],t},fromPartial:function(e){var t=Object.assign({},f);if(t.proofs=[],void 0!==e.proofs&&null!==e.proofs){var n,a=r(e.proofs);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.proofs.push(s.CommitmentProof.fromPartial(i))}}catch(e){a.e(e)}finally{a.f()}}return t}};var l=function(){if(void 0!==l)return l;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),b=l.atob||function(e){return l.Buffer.from(e,"base64").toString("binary")};function p(e){for(var t=b(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();""!==e.clientId&&n.uint32(10).string(e.clientId);var a,i=r(e.versions);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.Version.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return 0!==e.state&&n.uint32(24).int32(e.state),void 0!==e.counterparty&&t.Counterparty.encode(e.counterparty,n.uint32(34).fork()).ldelim(),e.delayPeriod.isZero()||n.uint32(40).uint64(e.delayPeriod),n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);for(i.versions=[];r.pos>>3){case 1:i.clientId=r.string();break;case 2:i.versions.push(t.Version.decode(r,r.uint32()));break;case 3:i.state=r.int32();break;case 4:i.counterparty=t.Counterparty.decode(r,r.uint32());break;case 5:i.delayPeriod=r.uint64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},f);if(n.versions=[],void 0!==e.clientId&&null!==e.clientId?n.clientId=String(e.clientId):n.clientId="",void 0!==e.versions&&null!==e.versions){var a,i=r(e.versions);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.versions.push(t.Version.fromJSON(s))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.state&&null!==e.state?n.state=u(e.state):n.state=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromJSON(e.counterparty):n.counterparty=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?n.delayPeriod=o.default.fromString(e.delayPeriod):n.delayPeriod=o.default.UZERO,n},toJSON:function(e){var n={};return void 0!==e.clientId&&(n.clientId=e.clientId),e.versions?n.versions=e.versions.map((function(e){return e?t.Version.toJSON(e):void 0})):n.versions=[],void 0!==e.state&&(n.state=d(e.state)),void 0!==e.counterparty&&(n.counterparty=e.counterparty?t.Counterparty.toJSON(e.counterparty):void 0),void 0!==e.delayPeriod&&(n.delayPeriod=(e.delayPeriod||o.default.UZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},f);if(n.versions=[],void 0!==e.clientId&&null!==e.clientId?n.clientId=e.clientId:n.clientId="",void 0!==e.versions&&null!==e.versions){var a,i=r(e.versions);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.versions.push(t.Version.fromPartial(s))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.state&&null!==e.state?n.state=e.state:n.state=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromPartial(e.counterparty):n.counterparty=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?n.delayPeriod=e.delayPeriod:n.delayPeriod=o.default.UZERO,n}};var l={id:"",clientId:"",state:0,delayPeriod:o.default.UZERO};t.IdentifiedConnection={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();""!==e.id&&n.uint32(10).string(e.id),""!==e.clientId&&n.uint32(18).string(e.clientId);var a,i=r(e.versions);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.Version.encode(o,n.uint32(26).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return 0!==e.state&&n.uint32(32).int32(e.state),void 0!==e.counterparty&&t.Counterparty.encode(e.counterparty,n.uint32(42).fork()).ldelim(),e.delayPeriod.isZero()||n.uint32(48).uint64(e.delayPeriod),n},decode:function(e,n){var r=e instanceof s.default.Reader?e:new s.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},l);for(i.versions=[];r.pos>>3){case 1:i.id=r.string();break;case 2:i.clientId=r.string();break;case 3:i.versions.push(t.Version.decode(r,r.uint32()));break;case 4:i.state=r.int32();break;case 5:i.counterparty=t.Counterparty.decode(r,r.uint32());break;case 6:i.delayPeriod=r.uint64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},l);if(n.versions=[],void 0!==e.id&&null!==e.id?n.id=String(e.id):n.id="",void 0!==e.clientId&&null!==e.clientId?n.clientId=String(e.clientId):n.clientId="",void 0!==e.versions&&null!==e.versions){var a,i=r(e.versions);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.versions.push(t.Version.fromJSON(s))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.state&&null!==e.state?n.state=u(e.state):n.state=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromJSON(e.counterparty):n.counterparty=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?n.delayPeriod=o.default.fromString(e.delayPeriod):n.delayPeriod=o.default.UZERO,n},toJSON:function(e){var n={};return void 0!==e.id&&(n.id=e.id),void 0!==e.clientId&&(n.clientId=e.clientId),e.versions?n.versions=e.versions.map((function(e){return e?t.Version.toJSON(e):void 0})):n.versions=[],void 0!==e.state&&(n.state=d(e.state)),void 0!==e.counterparty&&(n.counterparty=e.counterparty?t.Counterparty.toJSON(e.counterparty):void 0),void 0!==e.delayPeriod&&(n.delayPeriod=(e.delayPeriod||o.default.UZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},l);if(n.versions=[],void 0!==e.id&&null!==e.id?n.id=e.id:n.id="",void 0!==e.clientId&&null!==e.clientId?n.clientId=e.clientId:n.clientId="",void 0!==e.versions&&null!==e.versions){var a,i=r(e.versions);try{for(i.s();!(a=i.n()).done;){var s=a.value;n.versions.push(t.Version.fromPartial(s))}}catch(e){i.e(e)}finally{i.f()}}return void 0!==e.state&&null!==e.state?n.state=e.state:n.state=0,void 0!==e.counterparty&&null!==e.counterparty?n.counterparty=t.Counterparty.fromPartial(e.counterparty):n.counterparty=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?n.delayPeriod=e.delayPeriod:n.delayPeriod=o.default.UZERO,n}};var b={clientId:"",connectionId:""};t.Counterparty={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return""!==e.clientId&&t.uint32(10).string(e.clientId),""!==e.connectionId&&t.uint32(18).string(e.connectionId),void 0!==e.prefix&&c.MerklePrefix.encode(e.prefix,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.connectionId=n.string();break;case 3:a.prefix=c.MerklePrefix.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.connectionId&&null!==e.connectionId?t.connectionId=String(e.connectionId):t.connectionId="",void 0!==e.prefix&&null!==e.prefix?t.prefix=c.MerklePrefix.fromJSON(e.prefix):t.prefix=void 0,t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.connectionId&&(t.connectionId=e.connectionId),void 0!==e.prefix&&(t.prefix=e.prefix?c.MerklePrefix.toJSON(e.prefix):void 0),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.connectionId&&null!==e.connectionId?t.connectionId=e.connectionId:t.connectionId="",void 0!==e.prefix&&null!==e.prefix?t.prefix=c.MerklePrefix.fromPartial(e.prefix):t.prefix=void 0,t}};var p={paths:""};t.ClientPaths={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create(),a=r(e.paths);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);for(a.paths=[];n.pos>>3==1?a.paths.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},p);if(t.paths=[],void 0!==e.paths&&null!==e.paths){var n,a=r(e.paths);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.paths.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.paths?t.paths=e.paths.map((function(e){return e})):t.paths=[],t},fromPartial:function(e){var t=Object.assign({},p);if(t.paths=[],void 0!==e.paths&&null!==e.paths){var n,a=r(e.paths);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.paths.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var h={clientId:"",paths:""};t.ConnectionPaths={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();""!==e.clientId&&t.uint32(10).string(e.clientId);var n,a=r(e.paths);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(18).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.paths=[];n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.paths.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},h);if(t.paths=[],void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.paths&&null!==e.paths){var n,a=r(e.paths);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.paths.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),e.paths?t.paths=e.paths.map((function(e){return e})):t.paths=[],t},fromPartial:function(e){var t=Object.assign({},h);if(t.paths=[],void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.paths&&null!==e.paths){var n,a=r(e.paths);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.paths.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var y={identifier:"",features:""};t.Version={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();""!==e.identifier&&t.uint32(10).string(e.identifier);var n,a=r(e.features);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(18).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.features=[];n.pos>>3){case 1:a.identifier=n.string();break;case 2:a.features.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);if(t.features=[],void 0!==e.identifier&&null!==e.identifier?t.identifier=String(e.identifier):t.identifier="",void 0!==e.features&&null!==e.features){var n,a=r(e.features);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.features.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.identifier&&(t.identifier=e.identifier),e.features?t.features=e.features.map((function(e){return e})):t.features=[],t},fromPartial:function(e){var t=Object.assign({},y);if(t.features=[],void 0!==e.identifier&&null!==e.identifier?t.identifier=e.identifier:t.identifier="",void 0!==e.features&&null!==e.features){var n,a=r(e.features);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.features.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var m={maxExpectedTimePerBlock:o.default.UZERO};t.Params={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.Writer.create();return e.maxExpectedTimePerBlock.isZero()||t.uint32(8).uint64(e.maxExpectedTimePerBlock),t},decode:function(e,t){for(var n=e instanceof s.default.Reader?e:new s.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3==1?a.maxExpectedTimePerBlock=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.maxExpectedTimePerBlock&&null!==e.maxExpectedTimePerBlock?t.maxExpectedTimePerBlock=o.default.fromString(e.maxExpectedTimePerBlock):t.maxExpectedTimePerBlock=o.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.maxExpectedTimePerBlock&&(t.maxExpectedTimePerBlock=(e.maxExpectedTimePerBlock||o.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.maxExpectedTimePerBlock&&null!==e.maxExpectedTimePerBlock?t.maxExpectedTimePerBlock=e.maxExpectedTimePerBlock:t.maxExpectedTimePerBlock=o.default.UZERO,t}},s.default.util.Long!==o.default&&(s.default.util.Long=o.default,s.default.configure())},41794:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(33482).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.MsgConnectionOpenConfirmDesc=t.MsgConnectionOpenAckDesc=t.MsgConnectionOpenTryDesc=t.MsgConnectionOpenInitDesc=t.MsgDesc=t.MsgClientImpl=t.MsgConnectionOpenConfirmResponse=t.MsgConnectionOpenConfirm=t.MsgConnectionOpenAckResponse=t.MsgConnectionOpenAck=t.MsgConnectionOpenTryResponse=t.MsgConnectionOpenTry=t.MsgConnectionOpenInitResponse=t.MsgConnectionOpenInit=t.protobufPackage=void 0;var s=o(n(24141)),c=n(34882),u=o(n(1)),d=n(20594),f=n(58682),l=n(56820),b=n(46711);t.protobufPackage="ibc.core.connection.v1";var p={clientId:"",delayPeriod:s.default.UZERO,signer:""};t.MsgConnectionOpenInit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.counterparty&&d.Counterparty.encode(e.counterparty,t.uint32(18).fork()).ldelim(),void 0!==e.version&&d.Version.encode(e.version,t.uint32(26).fork()).ldelim(),e.delayPeriod.isZero()||t.uint32(32).uint64(e.delayPeriod),""!==e.signer&&t.uint32(42).string(e.signer),t},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},p);n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.counterparty=d.Counterparty.decode(n,n.uint32());break;case 3:a.version=d.Version.decode(n,n.uint32());break;case 4:a.delayPeriod=n.uint64();break;case 5:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},p);return void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.counterparty&&null!==e.counterparty?t.counterparty=d.Counterparty.fromJSON(e.counterparty):t.counterparty=void 0,void 0!==e.version&&null!==e.version?t.version=d.Version.fromJSON(e.version):t.version=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?t.delayPeriod=s.default.fromString(e.delayPeriod):t.delayPeriod=s.default.UZERO,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.counterparty&&(t.counterparty=e.counterparty?d.Counterparty.toJSON(e.counterparty):void 0),void 0!==e.version&&(t.version=e.version?d.Version.toJSON(e.version):void 0),void 0!==e.delayPeriod&&(t.delayPeriod=(e.delayPeriod||s.default.UZERO).toString()),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},p);return void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.counterparty&&null!==e.counterparty?t.counterparty=d.Counterparty.fromPartial(e.counterparty):t.counterparty=void 0,void 0!==e.version&&null!==e.version?t.version=d.Version.fromPartial(e.version):t.version=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?t.delayPeriod=e.delayPeriod:t.delayPeriod=s.default.UZERO,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var h={};t.MsgConnectionOpenInitResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();""!==e.clientId&&t.uint32(10).string(e.clientId),""!==e.previousConnectionId&&t.uint32(18).string(e.previousConnectionId),void 0!==e.clientState&&f.Any.encode(e.clientState,t.uint32(26).fork()).ldelim(),void 0!==e.counterparty&&d.Counterparty.encode(e.counterparty,t.uint32(34).fork()).ldelim(),e.delayPeriod.isZero()||t.uint32(40).uint64(e.delayPeriod);var n,r=i(e.counterpartyVersions);try{for(r.s();!(n=r.n()).done;){var a=n.value;d.Version.encode(a,t.uint32(50).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(58).fork()).ldelim(),0!==e.proofInit.length&&t.uint32(66).bytes(e.proofInit),0!==e.proofClient.length&&t.uint32(74).bytes(e.proofClient),0!==e.proofConsensus.length&&t.uint32(82).bytes(e.proofConsensus),void 0!==e.consensusHeight&&l.Height.encode(e.consensusHeight,t.uint32(90).fork()).ldelim(),""!==e.signer&&t.uint32(98).string(e.signer),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},y);for(a.counterpartyVersions=[],a.proofInit=new Uint8Array,a.proofClient=new Uint8Array,a.proofConsensus=new Uint8Array;n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.previousConnectionId=n.string();break;case 3:a.clientState=f.Any.decode(n,n.uint32());break;case 4:a.counterparty=d.Counterparty.decode(n,n.uint32());break;case 5:a.delayPeriod=n.uint64();break;case 6:a.counterpartyVersions.push(d.Version.decode(n,n.uint32()));break;case 7:a.proofHeight=l.Height.decode(n,n.uint32());break;case 8:a.proofInit=n.bytes();break;case 9:a.proofClient=n.bytes();break;case 10:a.proofConsensus=n.bytes();break;case 11:a.consensusHeight=l.Height.decode(n,n.uint32());break;case 12:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},y);if(t.counterpartyVersions=[],t.proofInit=new Uint8Array,t.proofClient=new Uint8Array,t.proofConsensus=new Uint8Array,void 0!==e.clientId&&null!==e.clientId?t.clientId=String(e.clientId):t.clientId="",void 0!==e.previousConnectionId&&null!==e.previousConnectionId?t.previousConnectionId=String(e.previousConnectionId):t.previousConnectionId="",void 0!==e.clientState&&null!==e.clientState?t.clientState=f.Any.fromJSON(e.clientState):t.clientState=void 0,void 0!==e.counterparty&&null!==e.counterparty?t.counterparty=d.Counterparty.fromJSON(e.counterparty):t.counterparty=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?t.delayPeriod=s.default.fromString(e.delayPeriod):t.delayPeriod=s.default.UZERO,void 0!==e.counterpartyVersions&&null!==e.counterpartyVersions){var n,r=i(e.counterpartyVersions);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.counterpartyVersions.push(d.Version.fromJSON(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.proofInit&&null!==e.proofInit&&(t.proofInit=S(e.proofInit)),void 0!==e.proofClient&&null!==e.proofClient&&(t.proofClient=S(e.proofClient)),void 0!==e.proofConsensus&&null!==e.proofConsensus&&(t.proofConsensus=S(e.proofConsensus)),void 0!==e.consensusHeight&&null!==e.consensusHeight?t.consensusHeight=l.Height.fromJSON(e.consensusHeight):t.consensusHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.previousConnectionId&&(t.previousConnectionId=e.previousConnectionId),void 0!==e.clientState&&(t.clientState=e.clientState?f.Any.toJSON(e.clientState):void 0),void 0!==e.counterparty&&(t.counterparty=e.counterparty?d.Counterparty.toJSON(e.counterparty):void 0),void 0!==e.delayPeriod&&(t.delayPeriod=(e.delayPeriod||s.default.UZERO).toString()),e.counterpartyVersions?t.counterpartyVersions=e.counterpartyVersions.map((function(e){return e?d.Version.toJSON(e):void 0})):t.counterpartyVersions=[],void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.proofInit&&(t.proofInit=C(void 0!==e.proofInit?e.proofInit:new Uint8Array)),void 0!==e.proofClient&&(t.proofClient=C(void 0!==e.proofClient?e.proofClient:new Uint8Array)),void 0!==e.proofConsensus&&(t.proofConsensus=C(void 0!==e.proofConsensus?e.proofConsensus:new Uint8Array)),void 0!==e.consensusHeight&&(t.consensusHeight=e.consensusHeight?l.Height.toJSON(e.consensusHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},y);if(t.counterpartyVersions=[],void 0!==e.clientId&&null!==e.clientId?t.clientId=e.clientId:t.clientId="",void 0!==e.previousConnectionId&&null!==e.previousConnectionId?t.previousConnectionId=e.previousConnectionId:t.previousConnectionId="",void 0!==e.clientState&&null!==e.clientState?t.clientState=f.Any.fromPartial(e.clientState):t.clientState=void 0,void 0!==e.counterparty&&null!==e.counterparty?t.counterparty=d.Counterparty.fromPartial(e.counterparty):t.counterparty=void 0,void 0!==e.delayPeriod&&null!==e.delayPeriod?t.delayPeriod=e.delayPeriod:t.delayPeriod=s.default.UZERO,void 0!==e.counterpartyVersions&&null!==e.counterpartyVersions){var n,r=i(e.counterpartyVersions);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.counterpartyVersions.push(d.Version.fromPartial(a))}}catch(e){r.e(e)}finally{r.f()}}return void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.proofInit&&null!==e.proofInit?t.proofInit=e.proofInit:t.proofInit=new Uint8Array,void 0!==e.proofClient&&null!==e.proofClient?t.proofClient=e.proofClient:t.proofClient=new Uint8Array,void 0!==e.proofConsensus&&null!==e.proofConsensus?t.proofConsensus=e.proofConsensus:t.proofConsensus=new Uint8Array,void 0!==e.consensusHeight&&null!==e.consensusHeight?t.consensusHeight=l.Height.fromPartial(e.consensusHeight):t.consensusHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var m={};t.MsgConnectionOpenTryResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.connectionId&&t.uint32(10).string(e.connectionId),""!==e.counterpartyConnectionId&&t.uint32(18).string(e.counterpartyConnectionId),void 0!==e.version&&d.Version.encode(e.version,t.uint32(26).fork()).ldelim(),void 0!==e.clientState&&f.Any.encode(e.clientState,t.uint32(34).fork()).ldelim(),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(42).fork()).ldelim(),0!==e.proofTry.length&&t.uint32(50).bytes(e.proofTry),0!==e.proofClient.length&&t.uint32(58).bytes(e.proofClient),0!==e.proofConsensus.length&&t.uint32(66).bytes(e.proofConsensus),void 0!==e.consensusHeight&&l.Height.encode(e.consensusHeight,t.uint32(74).fork()).ldelim(),""!==e.signer&&t.uint32(82).string(e.signer),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.proofTry=new Uint8Array,a.proofClient=new Uint8Array,a.proofConsensus=new Uint8Array;n.pos>>3){case 1:a.connectionId=n.string();break;case 2:a.counterpartyConnectionId=n.string();break;case 3:a.version=d.Version.decode(n,n.uint32());break;case 4:a.clientState=f.Any.decode(n,n.uint32());break;case 5:a.proofHeight=l.Height.decode(n,n.uint32());break;case 6:a.proofTry=n.bytes();break;case 7:a.proofClient=n.bytes();break;case 8:a.proofConsensus=n.bytes();break;case 9:a.consensusHeight=l.Height.decode(n,n.uint32());break;case 10:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return t.proofTry=new Uint8Array,t.proofClient=new Uint8Array,t.proofConsensus=new Uint8Array,void 0!==e.connectionId&&null!==e.connectionId?t.connectionId=String(e.connectionId):t.connectionId="",void 0!==e.counterpartyConnectionId&&null!==e.counterpartyConnectionId?t.counterpartyConnectionId=String(e.counterpartyConnectionId):t.counterpartyConnectionId="",void 0!==e.version&&null!==e.version?t.version=d.Version.fromJSON(e.version):t.version=void 0,void 0!==e.clientState&&null!==e.clientState?t.clientState=f.Any.fromJSON(e.clientState):t.clientState=void 0,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.proofTry&&null!==e.proofTry&&(t.proofTry=S(e.proofTry)),void 0!==e.proofClient&&null!==e.proofClient&&(t.proofClient=S(e.proofClient)),void 0!==e.proofConsensus&&null!==e.proofConsensus&&(t.proofConsensus=S(e.proofConsensus)),void 0!==e.consensusHeight&&null!==e.consensusHeight?t.consensusHeight=l.Height.fromJSON(e.consensusHeight):t.consensusHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.connectionId&&(t.connectionId=e.connectionId),void 0!==e.counterpartyConnectionId&&(t.counterpartyConnectionId=e.counterpartyConnectionId),void 0!==e.version&&(t.version=e.version?d.Version.toJSON(e.version):void 0),void 0!==e.clientState&&(t.clientState=e.clientState?f.Any.toJSON(e.clientState):void 0),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.proofTry&&(t.proofTry=C(void 0!==e.proofTry?e.proofTry:new Uint8Array)),void 0!==e.proofClient&&(t.proofClient=C(void 0!==e.proofClient?e.proofClient:new Uint8Array)),void 0!==e.proofConsensus&&(t.proofConsensus=C(void 0!==e.proofConsensus?e.proofConsensus:new Uint8Array)),void 0!==e.consensusHeight&&(t.consensusHeight=e.consensusHeight?l.Height.toJSON(e.consensusHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.connectionId&&null!==e.connectionId?t.connectionId=e.connectionId:t.connectionId="",void 0!==e.counterpartyConnectionId&&null!==e.counterpartyConnectionId?t.counterpartyConnectionId=e.counterpartyConnectionId:t.counterpartyConnectionId="",void 0!==e.version&&null!==e.version?t.version=d.Version.fromPartial(e.version):t.version=void 0,void 0!==e.clientState&&null!==e.clientState?t.clientState=f.Any.fromPartial(e.clientState):t.clientState=void 0,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.proofTry&&null!==e.proofTry?t.proofTry=e.proofTry:t.proofTry=new Uint8Array,void 0!==e.proofClient&&null!==e.proofClient?t.proofClient=e.proofClient:t.proofClient=new Uint8Array,void 0!==e.proofConsensus&&null!==e.proofConsensus?t.proofConsensus=e.proofConsensus:t.proofConsensus=new Uint8Array,void 0!==e.consensusHeight&&null!==e.consensusHeight?t.consensusHeight=l.Height.fromPartial(e.consensusHeight):t.consensusHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var g={};t.MsgConnectionOpenAckResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},g);n.pos1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create();return""!==e.connectionId&&t.uint32(10).string(e.connectionId),0!==e.proofAck.length&&t.uint32(18).bytes(e.proofAck),void 0!==e.proofHeight&&l.Height.encode(e.proofHeight,t.uint32(26).fork()).ldelim(),""!==e.signer&&t.uint32(34).string(e.signer),t},decode:function(e,t){var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},A);for(a.proofAck=new Uint8Array;n.pos>>3){case 1:a.connectionId=n.string();break;case 2:a.proofAck=n.bytes();break;case 3:a.proofHeight=l.Height.decode(n,n.uint32());break;case 4:a.signer=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},A);return t.proofAck=new Uint8Array,void 0!==e.connectionId&&null!==e.connectionId?t.connectionId=String(e.connectionId):t.connectionId="",void 0!==e.proofAck&&null!==e.proofAck&&(t.proofAck=S(e.proofAck)),void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromJSON(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=String(e.signer):t.signer="",t},toJSON:function(e){var t={};return void 0!==e.connectionId&&(t.connectionId=e.connectionId),void 0!==e.proofAck&&(t.proofAck=C(void 0!==e.proofAck?e.proofAck:new Uint8Array)),void 0!==e.proofHeight&&(t.proofHeight=e.proofHeight?l.Height.toJSON(e.proofHeight):void 0),void 0!==e.signer&&(t.signer=e.signer),t},fromPartial:function(e){var t=Object.assign({},A);return void 0!==e.connectionId&&null!==e.connectionId?t.connectionId=e.connectionId:t.connectionId="",void 0!==e.proofAck&&null!==e.proofAck?t.proofAck=e.proofAck:t.proofAck=new Uint8Array,void 0!==e.proofHeight&&null!==e.proofHeight?t.proofHeight=l.Height.fromPartial(e.proofHeight):t.proofHeight=void 0,void 0!==e.signer&&null!==e.signer?t.signer=e.signer:t.signer="",t}};var w={};t.MsgConnectionOpenConfirmResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.Writer.create()},decode:function(e,t){for(var n=e instanceof u.default.Reader?e:new u.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);n.pos1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();""!==e.chainId&&n.uint32(10).string(e.chainId),void 0!==e.trustLevel&&t.Fraction.encode(e.trustLevel,n.uint32(18).fork()).ldelim(),void 0!==e.trustingPeriod&&s.Duration.encode(e.trustingPeriod,n.uint32(26).fork()).ldelim(),void 0!==e.unbondingPeriod&&s.Duration.encode(e.unbondingPeriod,n.uint32(34).fork()).ldelim(),void 0!==e.maxClockDrift&&s.Duration.encode(e.maxClockDrift,n.uint32(42).fork()).ldelim(),void 0!==e.frozenHeight&&c.Height.encode(e.frozenHeight,n.uint32(50).fork()).ldelim(),void 0!==e.latestHeight&&c.Height.encode(e.latestHeight,n.uint32(58).fork()).ldelim();var a,i=r(e.proofSpecs);try{for(i.s();!(a=i.n()).done;){var u=a.value;b.ProofSpec.encode(u,n.uint32(66).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}var d,f=r(e.upgradePath);try{for(f.s();!(d=f.n()).done;){var l=d.value;n.uint32(74).string(l)}}catch(e){f.e(e)}finally{f.f()}return!0===e.allowUpdateAfterExpiry&&n.uint32(80).bool(e.allowUpdateAfterExpiry),!0===e.allowUpdateAfterMisbehaviour&&n.uint32(88).bool(e.allowUpdateAfterMisbehaviour),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},p);for(i.proofSpecs=[],i.upgradePath=[];r.pos>>3){case 1:i.chainId=r.string();break;case 2:i.trustLevel=t.Fraction.decode(r,r.uint32());break;case 3:i.trustingPeriod=s.Duration.decode(r,r.uint32());break;case 4:i.unbondingPeriod=s.Duration.decode(r,r.uint32());break;case 5:i.maxClockDrift=s.Duration.decode(r,r.uint32());break;case 6:i.frozenHeight=c.Height.decode(r,r.uint32());break;case 7:i.latestHeight=c.Height.decode(r,r.uint32());break;case 8:i.proofSpecs.push(b.ProofSpec.decode(r,r.uint32()));break;case 9:i.upgradePath.push(r.string());break;case 10:i.allowUpdateAfterExpiry=r.bool();break;case 11:i.allowUpdateAfterMisbehaviour=r.bool();break;default:r.skipType(7&u)}}return i},fromJSON:function(e){var n=Object.assign({},p);if(n.proofSpecs=[],n.upgradePath=[],void 0!==e.chainId&&null!==e.chainId?n.chainId=String(e.chainId):n.chainId="",void 0!==e.trustLevel&&null!==e.trustLevel?n.trustLevel=t.Fraction.fromJSON(e.trustLevel):n.trustLevel=void 0,void 0!==e.trustingPeriod&&null!==e.trustingPeriod?n.trustingPeriod=s.Duration.fromJSON(e.trustingPeriod):n.trustingPeriod=void 0,void 0!==e.unbondingPeriod&&null!==e.unbondingPeriod?n.unbondingPeriod=s.Duration.fromJSON(e.unbondingPeriod):n.unbondingPeriod=void 0,void 0!==e.maxClockDrift&&null!==e.maxClockDrift?n.maxClockDrift=s.Duration.fromJSON(e.maxClockDrift):n.maxClockDrift=void 0,void 0!==e.frozenHeight&&null!==e.frozenHeight?n.frozenHeight=c.Height.fromJSON(e.frozenHeight):n.frozenHeight=void 0,void 0!==e.latestHeight&&null!==e.latestHeight?n.latestHeight=c.Height.fromJSON(e.latestHeight):n.latestHeight=void 0,void 0!==e.proofSpecs&&null!==e.proofSpecs){var a,i=r(e.proofSpecs);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.proofSpecs.push(b.ProofSpec.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}if(void 0!==e.upgradePath&&null!==e.upgradePath){var u,d=r(e.upgradePath);try{for(d.s();!(u=d.n()).done;){var f=u.value;n.upgradePath.push(String(f))}}catch(e){d.e(e)}finally{d.f()}}return void 0!==e.allowUpdateAfterExpiry&&null!==e.allowUpdateAfterExpiry?n.allowUpdateAfterExpiry=Boolean(e.allowUpdateAfterExpiry):n.allowUpdateAfterExpiry=!1,void 0!==e.allowUpdateAfterMisbehaviour&&null!==e.allowUpdateAfterMisbehaviour?n.allowUpdateAfterMisbehaviour=Boolean(e.allowUpdateAfterMisbehaviour):n.allowUpdateAfterMisbehaviour=!1,n},toJSON:function(e){var n={};return void 0!==e.chainId&&(n.chainId=e.chainId),void 0!==e.trustLevel&&(n.trustLevel=e.trustLevel?t.Fraction.toJSON(e.trustLevel):void 0),void 0!==e.trustingPeriod&&(n.trustingPeriod=e.trustingPeriod?s.Duration.toJSON(e.trustingPeriod):void 0),void 0!==e.unbondingPeriod&&(n.unbondingPeriod=e.unbondingPeriod?s.Duration.toJSON(e.unbondingPeriod):void 0),void 0!==e.maxClockDrift&&(n.maxClockDrift=e.maxClockDrift?s.Duration.toJSON(e.maxClockDrift):void 0),void 0!==e.frozenHeight&&(n.frozenHeight=e.frozenHeight?c.Height.toJSON(e.frozenHeight):void 0),void 0!==e.latestHeight&&(n.latestHeight=e.latestHeight?c.Height.toJSON(e.latestHeight):void 0),e.proofSpecs?n.proofSpecs=e.proofSpecs.map((function(e){return e?b.ProofSpec.toJSON(e):void 0})):n.proofSpecs=[],e.upgradePath?n.upgradePath=e.upgradePath.map((function(e){return e})):n.upgradePath=[],void 0!==e.allowUpdateAfterExpiry&&(n.allowUpdateAfterExpiry=e.allowUpdateAfterExpiry),void 0!==e.allowUpdateAfterMisbehaviour&&(n.allowUpdateAfterMisbehaviour=e.allowUpdateAfterMisbehaviour),n},fromPartial:function(e){var n=Object.assign({},p);if(n.proofSpecs=[],n.upgradePath=[],void 0!==e.chainId&&null!==e.chainId?n.chainId=e.chainId:n.chainId="",void 0!==e.trustLevel&&null!==e.trustLevel?n.trustLevel=t.Fraction.fromPartial(e.trustLevel):n.trustLevel=void 0,void 0!==e.trustingPeriod&&null!==e.trustingPeriod?n.trustingPeriod=s.Duration.fromPartial(e.trustingPeriod):n.trustingPeriod=void 0,void 0!==e.unbondingPeriod&&null!==e.unbondingPeriod?n.unbondingPeriod=s.Duration.fromPartial(e.unbondingPeriod):n.unbondingPeriod=void 0,void 0!==e.maxClockDrift&&null!==e.maxClockDrift?n.maxClockDrift=s.Duration.fromPartial(e.maxClockDrift):n.maxClockDrift=void 0,void 0!==e.frozenHeight&&null!==e.frozenHeight?n.frozenHeight=c.Height.fromPartial(e.frozenHeight):n.frozenHeight=void 0,void 0!==e.latestHeight&&null!==e.latestHeight?n.latestHeight=c.Height.fromPartial(e.latestHeight):n.latestHeight=void 0,void 0!==e.proofSpecs&&null!==e.proofSpecs){var a,i=r(e.proofSpecs);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.proofSpecs.push(b.ProofSpec.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}if(void 0!==e.upgradePath&&null!==e.upgradePath){var u,d=r(e.upgradePath);try{for(d.s();!(u=d.n()).done;){var f=u.value;n.upgradePath.push(f)}}catch(e){d.e(e)}finally{d.f()}}return void 0!==e.allowUpdateAfterExpiry&&null!==e.allowUpdateAfterExpiry?n.allowUpdateAfterExpiry=e.allowUpdateAfterExpiry:n.allowUpdateAfterExpiry=!1,void 0!==e.allowUpdateAfterMisbehaviour&&null!==e.allowUpdateAfterMisbehaviour?n.allowUpdateAfterMisbehaviour=e.allowUpdateAfterMisbehaviour:n.allowUpdateAfterMisbehaviour=!1,n}};var h={};t.ConsensusState={encode:function(e){var t,n,r,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.timestamp&&l.Timestamp.encode((t=e.timestamp,a=t.getTime()/1e3,n=i.default.fromNumber(a),r=t.getTime()%1e3*1e6,{seconds:n,nanos:r}),s.uint32(10).fork()).ldelim(),void 0!==e.root&&u.MerkleRoot.encode(e.root,s.uint32(18).fork()).ldelim(),0!==e.nextValidatorsHash.length&&s.uint32(26).bytes(e.nextValidatorsHash),s},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},h);for(a.nextValidatorsHash=new Uint8Array;n.pos>>3){case 1:a.timestamp=x(l.Timestamp.decode(n,n.uint32()));break;case 2:a.root=u.MerkleRoot.decode(n,n.uint32());break;case 3:a.nextValidatorsHash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t,n=Object.assign({},h);return n.nextValidatorsHash=new Uint8Array,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=(t=e.timestamp)instanceof Date?t:"string"==typeof t?new Date(t):x(l.Timestamp.fromJSON(t)):n.timestamp=void 0,void 0!==e.root&&null!==e.root?n.root=u.MerkleRoot.fromJSON(e.root):n.root=void 0,void 0!==e.nextValidatorsHash&&null!==e.nextValidatorsHash&&(n.nextValidatorsHash=function(e){for(var t=A(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.clientId&&n.uint32(10).string(e.clientId),void 0!==e.header1&&t.Header.encode(e.header1,n.uint32(18).fork()).ldelim(),void 0!==e.header2&&t.Header.encode(e.header2,n.uint32(26).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},y);r.pos>>3){case 1:i.clientId=r.string();break;case 2:i.header1=t.Header.decode(r,r.uint32());break;case 3:i.header2=t.Header.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},y);return void 0!==e.clientId&&null!==e.clientId?n.clientId=String(e.clientId):n.clientId="",void 0!==e.header1&&null!==e.header1?n.header1=t.Header.fromJSON(e.header1):n.header1=void 0,void 0!==e.header2&&null!==e.header2?n.header2=t.Header.fromJSON(e.header2):n.header2=void 0,n},toJSON:function(e){var n={};return void 0!==e.clientId&&(n.clientId=e.clientId),void 0!==e.header1&&(n.header1=e.header1?t.Header.toJSON(e.header1):void 0),void 0!==e.header2&&(n.header2=e.header2?t.Header.toJSON(e.header2):void 0),n},fromPartial:function(e){var n=Object.assign({},y);return void 0!==e.clientId&&null!==e.clientId?n.clientId=e.clientId:n.clientId="",void 0!==e.header1&&null!==e.header1?n.header1=t.Header.fromPartial(e.header1):n.header1=void 0,void 0!==e.header2&&null!==e.header2?n.header2=t.Header.fromPartial(e.header2):n.header2=void 0,n}};var m={};t.Header={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.signedHeader&&d.SignedHeader.encode(e.signedHeader,t.uint32(10).fork()).ldelim(),void 0!==e.validatorSet&&f.ValidatorSet.encode(e.validatorSet,t.uint32(18).fork()).ldelim(),void 0!==e.trustedHeight&&c.Height.encode(e.trustedHeight,t.uint32(26).fork()).ldelim(),void 0!==e.trustedValidators&&f.ValidatorSet.encode(e.trustedValidators,t.uint32(34).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);n.pos>>3){case 1:a.signedHeader=d.SignedHeader.decode(n,n.uint32());break;case 2:a.validatorSet=f.ValidatorSet.decode(n,n.uint32());break;case 3:a.trustedHeight=c.Height.decode(n,n.uint32());break;case 4:a.trustedValidators=f.ValidatorSet.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return void 0!==e.signedHeader&&null!==e.signedHeader?t.signedHeader=d.SignedHeader.fromJSON(e.signedHeader):t.signedHeader=void 0,void 0!==e.validatorSet&&null!==e.validatorSet?t.validatorSet=f.ValidatorSet.fromJSON(e.validatorSet):t.validatorSet=void 0,void 0!==e.trustedHeight&&null!==e.trustedHeight?t.trustedHeight=c.Height.fromJSON(e.trustedHeight):t.trustedHeight=void 0,void 0!==e.trustedValidators&&null!==e.trustedValidators?t.trustedValidators=f.ValidatorSet.fromJSON(e.trustedValidators):t.trustedValidators=void 0,t},toJSON:function(e){var t={};return void 0!==e.signedHeader&&(t.signedHeader=e.signedHeader?d.SignedHeader.toJSON(e.signedHeader):void 0),void 0!==e.validatorSet&&(t.validatorSet=e.validatorSet?f.ValidatorSet.toJSON(e.validatorSet):void 0),void 0!==e.trustedHeight&&(t.trustedHeight=e.trustedHeight?c.Height.toJSON(e.trustedHeight):void 0),void 0!==e.trustedValidators&&(t.trustedValidators=e.trustedValidators?f.ValidatorSet.toJSON(e.trustedValidators):void 0),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.signedHeader&&null!==e.signedHeader?t.signedHeader=d.SignedHeader.fromPartial(e.signedHeader):t.signedHeader=void 0,void 0!==e.validatorSet&&null!==e.validatorSet?t.validatorSet=f.ValidatorSet.fromPartial(e.validatorSet):t.validatorSet=void 0,void 0!==e.trustedHeight&&null!==e.trustedHeight?t.trustedHeight=c.Height.fromPartial(e.trustedHeight):t.trustedHeight=void 0,void 0!==e.trustedValidators&&null!==e.trustedValidators?t.trustedValidators=f.ValidatorSet.fromPartial(e.trustedValidators):t.trustedValidators=void 0,t}};var v={numerator:i.default.UZERO,denominator:i.default.UZERO};t.Fraction={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.numerator.isZero()||t.uint32(8).uint64(e.numerator),e.denominator.isZero()||t.uint32(16).uint64(e.denominator),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);n.pos>>3){case 1:a.numerator=n.uint64();break;case 2:a.denominator=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return void 0!==e.numerator&&null!==e.numerator?t.numerator=i.default.fromString(e.numerator):t.numerator=i.default.UZERO,void 0!==e.denominator&&null!==e.denominator?t.denominator=i.default.fromString(e.denominator):t.denominator=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.numerator&&(t.numerator=(e.numerator||i.default.UZERO).toString()),void 0!==e.denominator&&(t.denominator=(e.denominator||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.numerator&&null!==e.numerator?t.numerator=e.numerator:t.numerator=i.default.UZERO,void 0!==e.denominator&&null!==e.denominator?t.denominator=e.denominator:t.denominator=i.default.UZERO,t}};var g=function(){if(void 0!==g)return g;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),A=g.atob||function(e){return g.Buffer.from(e,"base64").toString("binary")},w=g.btoa||function(e){return g.Buffer.from(e,"binary").toString("base64")};function x(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},34882:function(e){var t,n;e.exports=(t={418:function(e,t){!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={splitValues:!1});var n,a=this;this.headersMap={},e&&("undefined"!=typeof Headers&&e instanceof Headers?r.getHeaderKeys(e).forEach((function(n){r.getHeaderValues(e,n).forEach((function(e){t.splitValues?a.append(n,r.splitHeaderValue(e)):a.append(n,e)}))})):"object"==typeof(n=e)&&"object"==typeof n.headersMap&&"function"==typeof n.forEach?e.forEach((function(e,t){a.append(e,t)})):"undefined"!=typeof Map&&e instanceof Map?e.forEach((function(e,t){a.append(t,e)})):"string"==typeof e?this.appendFromString(e):"object"==typeof e&&Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];Array.isArray(n)?n.forEach((function(e){a.append(t,e)})):a.append(t,n)})))}return e.prototype.appendFromString=function(e){for(var t=e.split("\r\n"),n=0;n0){var i=r.substring(0,a).trim(),o=r.substring(a+1).trim();this.append(i,o)}}},e.prototype.delete=function(e,t){var n=r.normalizeName(e);if(void 0===t)delete this.headersMap[n];else{var a=this.headersMap[n];if(a){var i=a.indexOf(t);i>=0&&a.splice(i,1),0===a.length&&delete this.headersMap[n]}}},e.prototype.append=function(e,t){var n=this,a=r.normalizeName(e);Array.isArray(this.headersMap[a])||(this.headersMap[a]=[]),Array.isArray(t)?t.forEach((function(e){n.headersMap[a].push(r.normalizeValue(e))})):this.headersMap[a].push(r.normalizeValue(t))},e.prototype.set=function(e,t){var n=r.normalizeName(e);if(Array.isArray(t)){var a=[];t.forEach((function(e){a.push(r.normalizeValue(e))})),this.headersMap[n]=a}else this.headersMap[n]=[r.normalizeValue(t)]},e.prototype.has=function(e,t){var n=this.headersMap[r.normalizeName(e)];if(!Array.isArray(n))return!1;if(void 0!==t){var a=r.normalizeValue(t);return n.indexOf(a)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[r.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach((function(n){e(n,t.headersMap[n])}),this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach((function(t,n){n.forEach((function(n){e.append(t,n)}))})),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.BrowserHeaders=r.BrowserHeaders},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var n=e[Symbol.iterator](),r=n.next();!r.done;)t(r.value[0]),r=n.next()},t.iterateHeadersKeys=function(e,t){for(var n=e.keys(),r=n.next();!r.done;)t(r.value),r=n.next()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var n=e;if(n instanceof Headers&&n.getAll)return n.getAll(t);var r=n.get(t);return r&&"string"==typeof r?[r]:r},t.getHeaderKeys=function(e){var t=e,n={},a=[];return t.keys?r.iterateHeadersKeys(t,(function(e){n[e]||(n[e]=!0,a.push(e))})):t.forEach?t.forEach((function(e,t){n[t]||(n[t]=!0,a.push(t))})):r.iterateHeaders(t,(function(e){var t=e[0];n[t]||(n[t]=!0,a.push(t))})),a},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach((function(e){e.split(",").forEach((function(e){t.push(e)}))})),t}}]))},617:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkParser=t.ChunkType=t.encodeASCII=t.decodeASCII=void 0;var r,a=n(65);function i(e){return 9===(t=e)||10===t||13===t||e>=32&&e<=126;var t}function o(e){for(var t=0;t!==e.length;++t)if(!i(e[t]))throw new Error("Metadata is not valid (printable) ASCII");return String.fromCharCode.apply(String,Array.prototype.slice.call(e))}function s(e){return 128==(128&e.getUint8(0))}function c(e){return e.getUint32(1,!1)}function u(e,t,n){return e.byteLength-t>=n}function d(e,t,n){if(e.slice)return e.slice(t,n);var r=e.length;void 0!==n&&(r=n);for(var a=new Uint8Array(r-t),i=0,o=t;o=0?n:i.httpStatusToCode(t);this.props.debug&&o.debug("onHeaders.code",r);var a=e.get("grpc-message")||[];if(this.props.debug&&o.debug("onHeaders.gRPCMessage",a),this.rawOnHeaders(e),r!==i.Code.OK){var s=this.decodeGRPCStatus(a[0]);this.rawOnError(r,s,e)}}},e.prototype.onTransportChunk=function(e){var t=this;if(this.closed)this.props.debug&&o.debug("grpc.onChunk received after request was closed - ignoring");else{var n=[];try{n=this.parser.parse(e)}catch(e){return this.props.debug&&o.debug("onChunk.parsing error",e,e.message),void this.rawOnError(i.Code.Internal,"parsing error: "+e.message)}n.forEach((function(e){if(e.chunkType===a.ChunkType.MESSAGE){var n=t.methodDefinition.responseType.deserializeBinary(e.data);t.rawOnMessage(n)}else e.chunkType===a.ChunkType.TRAILERS&&(t.responseHeaders?(t.responseTrailers=new r.Metadata(e.trailers),t.props.debug&&o.debug("onChunk.trailers",t.responseTrailers)):(t.responseHeaders=new r.Metadata(e.trailers),t.rawOnHeaders(t.responseHeaders)))}))}},e.prototype.onTransportEnd=function(){if(this.props.debug&&o.debug("grpc.onEnd"),this.closed)this.props.debug&&o.debug("grpc.onEnd received after request was closed - ignoring");else if(void 0!==this.responseTrailers){var e=d(this.responseTrailers);if(null!==e){var t=this.responseTrailers.get("grpc-message"),n=this.decodeGRPCStatus(t[0]);this.rawOnEnd(e,n,this.responseTrailers)}else this.rawOnError(i.Code.Internal,"Response closed without grpc-status (Trailers provided)")}else{if(void 0===this.responseHeaders)return void this.rawOnError(i.Code.Unknown,"Response closed without headers");var r=d(this.responseHeaders),a=this.responseHeaders.get("grpc-message");if(this.props.debug&&o.debug("grpc.headers only response ",r,a),null===r)return void this.rawOnEnd(i.Code.Unknown,"Response closed without grpc-status (Headers only)",this.responseHeaders);var s=this.decodeGRPCStatus(a[0]);this.rawOnEnd(r,s,this.responseHeaders)}},e.prototype.decodeGRPCStatus=function(e){if(!e)return"";try{return decodeURIComponent(e)}catch(t){return e}},e.prototype.rawOnEnd=function(e,t,n){var r=this;this.props.debug&&o.debug("rawOnEnd",e,t,n),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(a){if(!r.closed)try{a(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnHeaders=function(e){this.props.debug&&o.debug("rawOnHeaders",e),this.completed||this.onHeadersCallbacks.forEach((function(t){try{t(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.rawOnError=function(e,t,n){var a=this;void 0===n&&(n=new r.Metadata),this.props.debug&&o.debug("rawOnError",e,t),this.completed||(this.completed=!0,this.onEndCallbacks.forEach((function(r){if(!a.closed)try{r(e,t,n)}catch(e){setTimeout((function(){throw e}),0)}})))},e.prototype.rawOnMessage=function(e){var t=this;this.props.debug&&o.debug("rawOnMessage",e.toObject()),this.completed||this.closed||this.onMessageCallbacks.forEach((function(n){if(!t.closed)try{n(e)}catch(e){setTimeout((function(){throw e}),0)}}))},e.prototype.onHeaders=function(e){this.onHeadersCallbacks.push(e)},e.prototype.onMessage=function(e){this.onMessageCallbacks.push(e)},e.prototype.onEnd=function(e){this.onEndCallbacks.push(e)},e.prototype.start=function(e){if(this.started)throw new Error("Client already started - cannot .start()");this.started=!0;var t=new r.Metadata(e||{});t.set("content-type","application/grpc-web+proto"),t.set("x-grpc-web","1"),this.transport.start(t)},e.prototype.send=function(e){if(!this.started)throw new Error("Client not started - .start() must be called before .send()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .send()");if(!this.methodDefinition.requestStream&&this.sentFirstMessage)throw new Error("Message already sent for non-client-streaming method - cannot .send()");this.sentFirstMessage=!0;var t=c.frameRequest(e);this.transport.sendMessage(t)},e.prototype.finishSend=function(){if(!this.started)throw new Error("Client not started - .finishSend() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .send()");if(this.finishedSending)throw new Error("Client already finished sending - cannot .finishSend()");this.finishedSending=!0,this.transport.finishSend()},e.prototype.close=function(){if(!this.started)throw new Error("Client not started - .start() must be called before .close()");if(this.closed)throw new Error("Client already closed - cannot .close()");this.closed=!0,this.props.debug&&o.debug("request.abort aborting request"),this.transport.cancel()},e}();function d(e){var t=e.get("grpc-status")||[];if(t.length>0)try{var n=t[0];return parseInt(n,10)}catch(e){return null}return null}},346:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debug=void 0,t.debug=function(){for(var e=[],t=0;t=55296&&n<=56319){var r=e.charCodeAt(t+1);r>=56320&&r<=57343&&(n=65536+(n-55296<<10)+(r-56320))}return n}function f(e){for(var t=new Uint8Array(e.length),n=0,r=0;r "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u,d="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},f=function(){return a.Buffer?function(e){return(c.create=function(e){return a.Buffer.isBuffer(e)?new r(e):d(e)})(e)}:d};function l(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function b(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8);return new i(b(this.buf,this.pos+=4),b(this.buf,this.pos+=4))}c.create=f(),c.prototype._slice=a.Array.prototype.subarray||a.Array.prototype.slice,c.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return u}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return b(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|b(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=a.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=a.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return o.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){r=e,c.create=f(),r._configure();var t=a.Long?"toLong":"toNumber";a.merge(c.prototype,{int64:function(){return l.call(this)[t](!1)},uint64:function(){return l.call(this)[t](!0)},sint64:function(){return l.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},45702:function(e,t,n){"use strict";e.exports=i;var r=n(41680);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(95161);function i(e){r.call(this,e)}i._configure=function(){a.Buffer&&(i.prototype._slice=a.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},26515:function(e){"use strict";e.exports={}},67322:function(e,t,n){"use strict";t.Service=n(74756)},74756:function(e,t,n){"use strict";e.exports=a;var r=n(95161);function a(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(a.prototype=Object.create(r.EventEmitter.prototype)).constructor=a,a.prototype.rpcCall=function e(t,n,a,i,o){if(!i)throw TypeError("request must be specified");var s=this;if(!o)return r.asPromise(e,s,t,n,a,i);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,n){if(e)return s.emit("error",e,t),o(e);if(null!==n){if(!(n instanceof a))try{n=a[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),o(e)}return s.emit("data",n,t),o(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){o(e)}),0)}else setTimeout((function(){o(Error("already ended"))}),0)},a.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},29906:function(e,t,n){"use strict";e.exports=a;var r=n(95161);function a(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=a.zero=new a(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var o=a.zeroHash="\0\0\0\0\0\0\0\0";a.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new a(n,r)},a.from=function(e){if("number"==typeof e)return a.fromNumber(e);if(r.isString(e)){if(!r.Long)return a.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new a(e.low>>>0,e.high>>>0):i},a.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},a.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;a.fromHash=function(e){return e===o?i:new a((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},a.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},a.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},a.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},a.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},95161:function(e,t,n){"use strict";var r=t;function a(e,t,n){for(var r=Object.keys(t),a=0;a0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=a,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function y(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}f.create=l(),f.alloc=function(e){return new a.Array(e)},a.Array!==Array&&(f.alloc=a.pool(f.alloc,a.Array.prototype.subarray)),f.prototype._push=function(e,t,n){return this.tail=this.tail.next=new c(e,t,n),this.len+=t,this},p.prototype=Object.create(c.prototype),p.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(h,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(h,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(h,t.length(),t)},f.prototype.bool=function(e){return this._push(b,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(y,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(y,4,t.lo)._push(y,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(a.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(a.float.writeDoubleLE,8,e)};var m=a.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(b,1,0);if(a.isString(e)){var n=f.alloc(t=o.length(e));o.decode(e,n,0),e=n}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(b,1,0)},f.prototype.fork=function(){return this.states=new d(this),this.head=this.tail=new c(u,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},f._configure=function(e){r=e,f.create=l(),r._configure()}},94960:function(e,t,n){"use strict";e.exports=i;var r=n(15402);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(95161);function i(){r.call(this)}function o(e,t,n){e.length<40?a.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i._configure=function(){i.alloc=a._Buffer_allocUnsafe,i.writeBytesBuffer=a.Buffer&&a.Buffer.prototype instanceof Uint8Array&&"set"===a.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=a.Buffer.byteLength(e);return this.uint32(t),t&&this._push(o,t,e),this},i._configure()},73974:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(33482).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GrpcWebImpl=t.ABCIApplicationApplySnapshotChunkDesc=t.ABCIApplicationLoadSnapshotChunkDesc=t.ABCIApplicationOfferSnapshotDesc=t.ABCIApplicationListSnapshotsDesc=t.ABCIApplicationEndBlockDesc=t.ABCIApplicationBeginBlockDesc=t.ABCIApplicationInitChainDesc=t.ABCIApplicationCommitDesc=t.ABCIApplicationQueryDesc=t.ABCIApplicationCheckTxDesc=t.ABCIApplicationDeliverTxDesc=t.ABCIApplicationSetOptionDesc=t.ABCIApplicationInfoDesc=t.ABCIApplicationFlushDesc=t.ABCIApplicationEchoDesc=t.ABCIApplicationDesc=t.ABCIApplicationClientImpl=t.Snapshot=t.Evidence=t.VoteInfo=t.ValidatorUpdate=t.Validator=t.TxResult=t.EventAttribute=t.Event=t.LastCommitInfo=t.BlockParams=t.ConsensusParams=t.ResponseApplySnapshotChunk=t.ResponseLoadSnapshotChunk=t.ResponseOfferSnapshot=t.ResponseListSnapshots=t.ResponseCommit=t.ResponseEndBlock=t.ResponseDeliverTx=t.ResponseCheckTx=t.ResponseBeginBlock=t.ResponseQuery=t.ResponseInitChain=t.ResponseSetOption=t.ResponseInfo=t.ResponseFlush=t.ResponseEcho=t.ResponseException=t.Response=t.RequestApplySnapshotChunk=t.RequestLoadSnapshotChunk=t.RequestOfferSnapshot=t.RequestListSnapshots=t.RequestCommit=t.RequestEndBlock=t.RequestDeliverTx=t.RequestCheckTx=t.RequestBeginBlock=t.RequestQuery=t.RequestInitChain=t.RequestSetOption=t.RequestInfo=t.RequestFlush=t.RequestEcho=t.Request=t.responseApplySnapshotChunk_ResultToJSON=t.responseApplySnapshotChunk_ResultFromJSON=t.ResponseApplySnapshotChunk_Result=t.responseOfferSnapshot_ResultToJSON=t.responseOfferSnapshot_ResultFromJSON=t.ResponseOfferSnapshot_Result=t.evidenceTypeToJSON=t.evidenceTypeFromJSON=t.EvidenceType=t.checkTxTypeToJSON=t.checkTxTypeFromJSON=t.CheckTxType=t.protobufPackage=void 0;var s,c,u,d,f=o(n(24141)),l=n(34882),b=o(n(1)),p=n(49203),h=n(54195),y=n(48458),m=n(83811),v=n(46711),g=n(37814);function A(e){switch(e){case 0:case"NEW":return s.NEW;case 1:case"RECHECK":return s.RECHECK;default:return s.UNRECOGNIZED}}function w(e){switch(e){case s.NEW:return"NEW";case s.RECHECK:return"RECHECK";default:return"UNKNOWN"}}function x(e){switch(e){case 0:case"UNKNOWN":return c.UNKNOWN;case 1:case"DUPLICATE_VOTE":return c.DUPLICATE_VOTE;case 2:case"LIGHT_CLIENT_ATTACK":return c.LIGHT_CLIENT_ATTACK;default:return c.UNRECOGNIZED}}function _(e){switch(e){case c.UNKNOWN:return"UNKNOWN";case c.DUPLICATE_VOTE:return"DUPLICATE_VOTE";case c.LIGHT_CLIENT_ATTACK:return"LIGHT_CLIENT_ATTACK";default:return"UNKNOWN"}}function k(e){switch(e){case 0:case"UNKNOWN":return u.UNKNOWN;case 1:case"ACCEPT":return u.ACCEPT;case 2:case"ABORT":return u.ABORT;case 3:case"REJECT":return u.REJECT;case 4:case"REJECT_FORMAT":return u.REJECT_FORMAT;case 5:case"REJECT_SENDER":return u.REJECT_SENDER;default:return u.UNRECOGNIZED}}function I(e){switch(e){case u.UNKNOWN:return"UNKNOWN";case u.ACCEPT:return"ACCEPT";case u.ABORT:return"ABORT";case u.REJECT:return"REJECT";case u.REJECT_FORMAT:return"REJECT_FORMAT";case u.REJECT_SENDER:return"REJECT_SENDER";default:return"UNKNOWN"}}function S(e){switch(e){case 0:case"UNKNOWN":return d.UNKNOWN;case 1:case"ACCEPT":return d.ACCEPT;case 2:case"ABORT":return d.ABORT;case 3:case"RETRY":return d.RETRY;case 4:case"RETRY_SNAPSHOT":return d.RETRY_SNAPSHOT;case 5:case"REJECT_SNAPSHOT":return d.REJECT_SNAPSHOT;default:return d.UNRECOGNIZED}}function E(e){switch(e){case d.UNKNOWN:return"UNKNOWN";case d.ACCEPT:return"ACCEPT";case d.ABORT:return"ABORT";case d.RETRY:return"RETRY";case d.RETRY_SNAPSHOT:return"RETRY_SNAPSHOT";case d.REJECT_SNAPSHOT:return"REJECT_SNAPSHOT";default:return"UNKNOWN"}}t.protobufPackage="tendermint.abci",function(e){e[e.NEW=0]="NEW",e[e.RECHECK=1]="RECHECK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.CheckTxType||(t.CheckTxType={})),t.checkTxTypeFromJSON=A,t.checkTxTypeToJSON=w,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.DUPLICATE_VOTE=1]="DUPLICATE_VOTE",e[e.LIGHT_CLIENT_ATTACK=2]="LIGHT_CLIENT_ATTACK",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(c=t.EvidenceType||(t.EvidenceType={})),t.evidenceTypeFromJSON=x,t.evidenceTypeToJSON=_,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.REJECT=3]="REJECT",e[e.REJECT_FORMAT=4]="REJECT_FORMAT",e[e.REJECT_SENDER=5]="REJECT_SENDER",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(u=t.ResponseOfferSnapshot_Result||(t.ResponseOfferSnapshot_Result={})),t.responseOfferSnapshot_ResultFromJSON=k,t.responseOfferSnapshot_ResultToJSON=I,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.ACCEPT=1]="ACCEPT",e[e.ABORT=2]="ABORT",e[e.RETRY=3]="RETRY",e[e.RETRY_SNAPSHOT=4]="RETRY_SNAPSHOT",e[e.REJECT_SNAPSHOT=5]="REJECT_SNAPSHOT",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(d=t.ResponseApplySnapshotChunk_Result||(t.ResponseApplySnapshotChunk_Result={})),t.responseApplySnapshotChunk_ResultFromJSON=S,t.responseApplySnapshotChunk_ResultToJSON=E;var C={};t.Request={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return void 0!==e.echo&&t.RequestEcho.encode(e.echo,n.uint32(10).fork()).ldelim(),void 0!==e.flush&&t.RequestFlush.encode(e.flush,n.uint32(18).fork()).ldelim(),void 0!==e.info&&t.RequestInfo.encode(e.info,n.uint32(26).fork()).ldelim(),void 0!==e.setOption&&t.RequestSetOption.encode(e.setOption,n.uint32(34).fork()).ldelim(),void 0!==e.initChain&&t.RequestInitChain.encode(e.initChain,n.uint32(42).fork()).ldelim(),void 0!==e.query&&t.RequestQuery.encode(e.query,n.uint32(50).fork()).ldelim(),void 0!==e.beginBlock&&t.RequestBeginBlock.encode(e.beginBlock,n.uint32(58).fork()).ldelim(),void 0!==e.checkTx&&t.RequestCheckTx.encode(e.checkTx,n.uint32(66).fork()).ldelim(),void 0!==e.deliverTx&&t.RequestDeliverTx.encode(e.deliverTx,n.uint32(74).fork()).ldelim(),void 0!==e.endBlock&&t.RequestEndBlock.encode(e.endBlock,n.uint32(82).fork()).ldelim(),void 0!==e.commit&&t.RequestCommit.encode(e.commit,n.uint32(90).fork()).ldelim(),void 0!==e.listSnapshots&&t.RequestListSnapshots.encode(e.listSnapshots,n.uint32(98).fork()).ldelim(),void 0!==e.offerSnapshot&&t.RequestOfferSnapshot.encode(e.offerSnapshot,n.uint32(106).fork()).ldelim(),void 0!==e.loadSnapshotChunk&&t.RequestLoadSnapshotChunk.encode(e.loadSnapshotChunk,n.uint32(114).fork()).ldelim(),void 0!==e.applySnapshotChunk&&t.RequestApplySnapshotChunk.encode(e.applySnapshotChunk,n.uint32(122).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},C);r.pos>>3){case 1:i.echo=t.RequestEcho.decode(r,r.uint32());break;case 2:i.flush=t.RequestFlush.decode(r,r.uint32());break;case 3:i.info=t.RequestInfo.decode(r,r.uint32());break;case 4:i.setOption=t.RequestSetOption.decode(r,r.uint32());break;case 5:i.initChain=t.RequestInitChain.decode(r,r.uint32());break;case 6:i.query=t.RequestQuery.decode(r,r.uint32());break;case 7:i.beginBlock=t.RequestBeginBlock.decode(r,r.uint32());break;case 8:i.checkTx=t.RequestCheckTx.decode(r,r.uint32());break;case 9:i.deliverTx=t.RequestDeliverTx.decode(r,r.uint32());break;case 10:i.endBlock=t.RequestEndBlock.decode(r,r.uint32());break;case 11:i.commit=t.RequestCommit.decode(r,r.uint32());break;case 12:i.listSnapshots=t.RequestListSnapshots.decode(r,r.uint32());break;case 13:i.offerSnapshot=t.RequestOfferSnapshot.decode(r,r.uint32());break;case 14:i.loadSnapshotChunk=t.RequestLoadSnapshotChunk.decode(r,r.uint32());break;case 15:i.applySnapshotChunk=t.RequestApplySnapshotChunk.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},C);return void 0!==e.echo&&null!==e.echo?n.echo=t.RequestEcho.fromJSON(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.RequestFlush.fromJSON(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.RequestInfo.fromJSON(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.RequestSetOption.fromJSON(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.RequestInitChain.fromJSON(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.RequestQuery.fromJSON(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.RequestBeginBlock.fromJSON(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.RequestCheckTx.fromJSON(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.RequestDeliverTx.fromJSON(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.RequestEndBlock.fromJSON(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.RequestCommit.fromJSON(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.RequestListSnapshots.fromJSON(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.RequestOfferSnapshot.fromJSON(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.RequestLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.RequestApplySnapshotChunk.fromJSON(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n},toJSON:function(e){var n={};return void 0!==e.echo&&(n.echo=e.echo?t.RequestEcho.toJSON(e.echo):void 0),void 0!==e.flush&&(n.flush=e.flush?t.RequestFlush.toJSON(e.flush):void 0),void 0!==e.info&&(n.info=e.info?t.RequestInfo.toJSON(e.info):void 0),void 0!==e.setOption&&(n.setOption=e.setOption?t.RequestSetOption.toJSON(e.setOption):void 0),void 0!==e.initChain&&(n.initChain=e.initChain?t.RequestInitChain.toJSON(e.initChain):void 0),void 0!==e.query&&(n.query=e.query?t.RequestQuery.toJSON(e.query):void 0),void 0!==e.beginBlock&&(n.beginBlock=e.beginBlock?t.RequestBeginBlock.toJSON(e.beginBlock):void 0),void 0!==e.checkTx&&(n.checkTx=e.checkTx?t.RequestCheckTx.toJSON(e.checkTx):void 0),void 0!==e.deliverTx&&(n.deliverTx=e.deliverTx?t.RequestDeliverTx.toJSON(e.deliverTx):void 0),void 0!==e.endBlock&&(n.endBlock=e.endBlock?t.RequestEndBlock.toJSON(e.endBlock):void 0),void 0!==e.commit&&(n.commit=e.commit?t.RequestCommit.toJSON(e.commit):void 0),void 0!==e.listSnapshots&&(n.listSnapshots=e.listSnapshots?t.RequestListSnapshots.toJSON(e.listSnapshots):void 0),void 0!==e.offerSnapshot&&(n.offerSnapshot=e.offerSnapshot?t.RequestOfferSnapshot.toJSON(e.offerSnapshot):void 0),void 0!==e.loadSnapshotChunk&&(n.loadSnapshotChunk=e.loadSnapshotChunk?t.RequestLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),void 0!==e.applySnapshotChunk&&(n.applySnapshotChunk=e.applySnapshotChunk?t.RequestApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),n},fromPartial:function(e){var n=Object.assign({},C);return void 0!==e.echo&&null!==e.echo?n.echo=t.RequestEcho.fromPartial(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.RequestFlush.fromPartial(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.RequestInfo.fromPartial(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.RequestSetOption.fromPartial(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.RequestInitChain.fromPartial(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.RequestQuery.fromPartial(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.RequestBeginBlock.fromPartial(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.RequestCheckTx.fromPartial(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.RequestDeliverTx.fromPartial(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.RequestEndBlock.fromPartial(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.RequestCommit.fromPartial(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.RequestListSnapshots.fromPartial(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.RequestOfferSnapshot.fromPartial(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.RequestLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.RequestApplySnapshotChunk.fromPartial(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n}};var T={message:""};t.RequestEcho={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return""!==e.message&&t.uint32(10).string(e.message),t},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},T);n.pos>>3==1?a.message=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},T);return void 0!==e.message&&null!==e.message?t.message=String(e.message):t.message="",t},toJSON:function(e){var t={};return void 0!==e.message&&(t.message=e.message),t},fromPartial:function(e){var t=Object.assign({},T);return void 0!==e.message&&null!==e.message?t.message=e.message:t.message="",t}};var O={};t.RequestFlush={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create()},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},O);n.pos1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return""!==e.version&&t.uint32(10).string(e.version),e.blockVersion.isZero()||t.uint32(16).uint64(e.blockVersion),e.p2pVersion.isZero()||t.uint32(24).uint64(e.p2pVersion),t},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},P);n.pos>>3){case 1:a.version=n.string();break;case 2:a.blockVersion=n.uint64();break;case 3:a.p2pVersion=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},P);return void 0!==e.version&&null!==e.version?t.version=String(e.version):t.version="",void 0!==e.blockVersion&&null!==e.blockVersion?t.blockVersion=f.default.fromString(e.blockVersion):t.blockVersion=f.default.UZERO,void 0!==e.p2pVersion&&null!==e.p2pVersion?t.p2pVersion=f.default.fromString(e.p2pVersion):t.p2pVersion=f.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.version&&(t.version=e.version),void 0!==e.blockVersion&&(t.blockVersion=(e.blockVersion||f.default.UZERO).toString()),void 0!==e.p2pVersion&&(t.p2pVersion=(e.p2pVersion||f.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},P);return void 0!==e.version&&null!==e.version?t.version=e.version:t.version="",void 0!==e.blockVersion&&null!==e.blockVersion?t.blockVersion=e.blockVersion:t.blockVersion=f.default.UZERO,void 0!==e.p2pVersion&&null!==e.p2pVersion?t.p2pVersion=e.p2pVersion:t.p2pVersion=f.default.UZERO,t}};var M={key:"",value:""};t.RequestSetOption={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return""!==e.key&&t.uint32(10).string(e.key),""!==e.value&&t.uint32(18).string(e.value),t},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},M);n.pos>>3){case 1:a.key=n.string();break;case 2:a.value=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},M);return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.value&&null!==e.value?t.value=String(e.value):t.value="",t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.value&&(t.value=e.value),t},fromPartial:function(e){var t=Object.assign({},M);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.value&&null!==e.value?t.value=e.value:t.value="",t}};var B={chainId:"",initialHeight:f.default.ZERO};t.RequestInitChain={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();void 0!==e.time&&g.Timestamp.encode(Ie(e.time),n.uint32(10).fork()).ldelim(),""!==e.chainId&&n.uint32(18).string(e.chainId),void 0!==e.consensusParams&&t.ConsensusParams.encode(e.consensusParams,n.uint32(26).fork()).ldelim();var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.ValidatorUpdate.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return 0!==e.appStateBytes.length&&n.uint32(42).bytes(e.appStateBytes),e.initialHeight.isZero()||n.uint32(48).int64(e.initialHeight),n},decode:function(e,n){var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},B);for(i.validators=[],i.appStateBytes=new Uint8Array;r.pos>>3){case 1:i.time=Se(g.Timestamp.decode(r,r.uint32()));break;case 2:i.chainId=r.string();break;case 3:i.consensusParams=t.ConsensusParams.decode(r,r.uint32());break;case 4:i.validators.push(t.ValidatorUpdate.decode(r,r.uint32()));break;case 5:i.appStateBytes=r.bytes();break;case 6:i.initialHeight=r.int64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},B);if(n.validators=[],n.appStateBytes=new Uint8Array,void 0!==e.time&&null!==e.time?n.time=Ee(e.time):n.time=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=String(e.chainId):n.chainId="",void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromJSON(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appStateBytes&&null!==e.appStateBytes&&(n.appStateBytes=xe(e.appStateBytes)),void 0!==e.initialHeight&&null!==e.initialHeight?n.initialHeight=f.default.fromString(e.initialHeight):n.initialHeight=f.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.time&&(n.time=e.time.toISOString()),void 0!==e.chainId&&(n.chainId=e.chainId),void 0!==e.consensusParams&&(n.consensusParams=e.consensusParams?t.ConsensusParams.toJSON(e.consensusParams):void 0),e.validators?n.validators=e.validators.map((function(e){return e?t.ValidatorUpdate.toJSON(e):void 0})):n.validators=[],void 0!==e.appStateBytes&&(n.appStateBytes=ke(void 0!==e.appStateBytes?e.appStateBytes:new Uint8Array)),void 0!==e.initialHeight&&(n.initialHeight=(e.initialHeight||f.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},B);if(n.validators=[],void 0!==e.time&&null!==e.time?n.time=e.time:n.time=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=e.chainId:n.chainId="",void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromPartial(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appStateBytes&&null!==e.appStateBytes?n.appStateBytes=e.appStateBytes:n.appStateBytes=new Uint8Array,void 0!==e.initialHeight&&null!==e.initialHeight?n.initialHeight=e.initialHeight:n.initialHeight=f.default.ZERO,n}};var N={path:"",height:f.default.ZERO,prove:!1};t.RequestQuery={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return 0!==e.data.length&&t.uint32(10).bytes(e.data),""!==e.path&&t.uint32(18).string(e.path),e.height.isZero()||t.uint32(24).int64(e.height),!0===e.prove&&t.uint32(32).bool(e.prove),t},decode:function(e,t){var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},N);for(a.data=new Uint8Array;n.pos>>3){case 1:a.data=n.bytes();break;case 2:a.path=n.string();break;case 3:a.height=n.int64();break;case 4:a.prove=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},N);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=xe(e.data)),void 0!==e.path&&null!==e.path?t.path=String(e.path):t.path="",void 0!==e.height&&null!==e.height?t.height=f.default.fromString(e.height):t.height=f.default.ZERO,void 0!==e.prove&&null!==e.prove?t.prove=Boolean(e.prove):t.prove=!1,t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=ke(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.path&&(t.path=e.path),void 0!==e.height&&(t.height=(e.height||f.default.ZERO).toString()),void 0!==e.prove&&(t.prove=e.prove),t},fromPartial:function(e){var t=Object.assign({},N);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.path&&null!==e.path?t.path=e.path:t.path="",void 0!==e.height&&null!==e.height?t.height=e.height:t.height=f.default.ZERO,void 0!==e.prove&&null!==e.prove?t.prove=e.prove:t.prove=!1,t}};var R={};t.RequestBeginBlock={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();0!==e.hash.length&&n.uint32(10).bytes(e.hash),void 0!==e.header&&p.Header.encode(e.header,n.uint32(18).fork()).ldelim(),void 0!==e.lastCommitInfo&&t.LastCommitInfo.encode(e.lastCommitInfo,n.uint32(26).fork()).ldelim();var r,a=i(e.byzantineValidators);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.Evidence.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,n){var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},R);for(i.byzantineValidators=[],i.hash=new Uint8Array;r.pos>>3){case 1:i.hash=r.bytes();break;case 2:i.header=p.Header.decode(r,r.uint32());break;case 3:i.lastCommitInfo=t.LastCommitInfo.decode(r,r.uint32());break;case 4:i.byzantineValidators.push(t.Evidence.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},R);if(n.byzantineValidators=[],n.hash=new Uint8Array,void 0!==e.hash&&null!==e.hash&&(n.hash=xe(e.hash)),void 0!==e.header&&null!==e.header?n.header=p.Header.fromJSON(e.header):n.header=void 0,void 0!==e.lastCommitInfo&&null!==e.lastCommitInfo?n.lastCommitInfo=t.LastCommitInfo.fromJSON(e.lastCommitInfo):n.lastCommitInfo=void 0,void 0!==e.byzantineValidators&&null!==e.byzantineValidators){var r,a=i(e.byzantineValidators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.byzantineValidators.push(t.Evidence.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return void 0!==e.hash&&(n.hash=ke(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.header&&(n.header=e.header?p.Header.toJSON(e.header):void 0),void 0!==e.lastCommitInfo&&(n.lastCommitInfo=e.lastCommitInfo?t.LastCommitInfo.toJSON(e.lastCommitInfo):void 0),e.byzantineValidators?n.byzantineValidators=e.byzantineValidators.map((function(e){return e?t.Evidence.toJSON(e):void 0})):n.byzantineValidators=[],n},fromPartial:function(e){var n=Object.assign({},R);if(n.byzantineValidators=[],void 0!==e.hash&&null!==e.hash?n.hash=e.hash:n.hash=new Uint8Array,void 0!==e.header&&null!==e.header?n.header=p.Header.fromPartial(e.header):n.header=void 0,void 0!==e.lastCommitInfo&&null!==e.lastCommitInfo?n.lastCommitInfo=t.LastCommitInfo.fromPartial(e.lastCommitInfo):n.lastCommitInfo=void 0,void 0!==e.byzantineValidators&&null!==e.byzantineValidators){var r,a=i(e.byzantineValidators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.byzantineValidators.push(t.Evidence.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var D={type:0};t.RequestCheckTx={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return 0!==e.tx.length&&t.uint32(10).bytes(e.tx),0!==e.type&&t.uint32(16).int32(e.type),t},decode:function(e,t){var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},D);for(a.tx=new Uint8Array;n.pos>>3){case 1:a.tx=n.bytes();break;case 2:a.type=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},D);return t.tx=new Uint8Array,void 0!==e.tx&&null!==e.tx&&(t.tx=xe(e.tx)),void 0!==e.type&&null!==e.type?t.type=A(e.type):t.type=0,t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=ke(void 0!==e.tx?e.tx:new Uint8Array)),void 0!==e.type&&(t.type=w(e.type)),t},fromPartial:function(e){var t=Object.assign({},D);return void 0!==e.tx&&null!==e.tx?t.tx=e.tx:t.tx=new Uint8Array,void 0!==e.type&&null!==e.type?t.type=e.type:t.type=0,t}};var j={};t.RequestDeliverTx={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return 0!==e.tx.length&&t.uint32(10).bytes(e.tx),t},decode:function(e,t){var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},j);for(a.tx=new Uint8Array;n.pos>>3==1?a.tx=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},j);return t.tx=new Uint8Array,void 0!==e.tx&&null!==e.tx&&(t.tx=xe(e.tx)),t},toJSON:function(e){var t={};return void 0!==e.tx&&(t.tx=ke(void 0!==e.tx?e.tx:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},j);return void 0!==e.tx&&null!==e.tx?t.tx=e.tx:t.tx=new Uint8Array,t}};var U={height:f.default.ZERO};t.RequestEndBlock={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return e.height.isZero()||t.uint32(8).int64(e.height),t},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},U);n.pos>>3==1?a.height=n.int64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},U);return void 0!==e.height&&null!==e.height?t.height=f.default.fromString(e.height):t.height=f.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.height&&(t.height=(e.height||f.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},U);return void 0!==e.height&&null!==e.height?t.height=e.height:t.height=f.default.ZERO,t}};var L={};t.RequestCommit={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create()},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},L);n.pos1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create()},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},F);n.pos1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return void 0!==e.snapshot&&t.Snapshot.encode(e.snapshot,n.uint32(10).fork()).ldelim(),0!==e.appHash.length&&n.uint32(18).bytes(e.appHash),n},decode:function(e,n){var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},Z);for(i.appHash=new Uint8Array;r.pos>>3){case 1:i.snapshot=t.Snapshot.decode(r,r.uint32());break;case 2:i.appHash=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},Z);return n.appHash=new Uint8Array,void 0!==e.snapshot&&null!==e.snapshot?n.snapshot=t.Snapshot.fromJSON(e.snapshot):n.snapshot=void 0,void 0!==e.appHash&&null!==e.appHash&&(n.appHash=xe(e.appHash)),n},toJSON:function(e){var n={};return void 0!==e.snapshot&&(n.snapshot=e.snapshot?t.Snapshot.toJSON(e.snapshot):void 0),void 0!==e.appHash&&(n.appHash=ke(void 0!==e.appHash?e.appHash:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},Z);return void 0!==e.snapshot&&null!==e.snapshot?n.snapshot=t.Snapshot.fromPartial(e.snapshot):n.snapshot=void 0,void 0!==e.appHash&&null!==e.appHash?n.appHash=e.appHash:n.appHash=new Uint8Array,n}};var H={height:f.default.UZERO,format:0,chunk:0};t.RequestLoadSnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return e.height.isZero()||t.uint32(8).uint64(e.height),0!==e.format&&t.uint32(16).uint32(e.format),0!==e.chunk&&t.uint32(24).uint32(e.chunk),t},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},H);n.pos>>3){case 1:a.height=n.uint64();break;case 2:a.format=n.uint32();break;case 3:a.chunk=n.uint32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},H);return void 0!==e.height&&null!==e.height?t.height=f.default.fromString(e.height):t.height=f.default.UZERO,void 0!==e.format&&null!==e.format?t.format=Number(e.format):t.format=0,void 0!==e.chunk&&null!==e.chunk?t.chunk=Number(e.chunk):t.chunk=0,t},toJSON:function(e){var t={};return void 0!==e.height&&(t.height=(e.height||f.default.UZERO).toString()),void 0!==e.format&&(t.format=e.format),void 0!==e.chunk&&(t.chunk=e.chunk),t},fromPartial:function(e){var t=Object.assign({},H);return void 0!==e.height&&null!==e.height?t.height=e.height:t.height=f.default.UZERO,void 0!==e.format&&null!==e.format?t.format=e.format:t.format=0,void 0!==e.chunk&&null!==e.chunk?t.chunk=e.chunk:t.chunk=0,t}};var z={index:0,sender:""};t.RequestApplySnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return 0!==e.index&&t.uint32(8).uint32(e.index),0!==e.chunk.length&&t.uint32(18).bytes(e.chunk),""!==e.sender&&t.uint32(26).string(e.sender),t},decode:function(e,t){var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},z);for(a.chunk=new Uint8Array;n.pos>>3){case 1:a.index=n.uint32();break;case 2:a.chunk=n.bytes();break;case 3:a.sender=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},z);return t.chunk=new Uint8Array,void 0!==e.index&&null!==e.index?t.index=Number(e.index):t.index=0,void 0!==e.chunk&&null!==e.chunk&&(t.chunk=xe(e.chunk)),void 0!==e.sender&&null!==e.sender?t.sender=String(e.sender):t.sender="",t},toJSON:function(e){var t={};return void 0!==e.index&&(t.index=e.index),void 0!==e.chunk&&(t.chunk=ke(void 0!==e.chunk?e.chunk:new Uint8Array)),void 0!==e.sender&&(t.sender=e.sender),t},fromPartial:function(e){var t=Object.assign({},z);return void 0!==e.index&&null!==e.index?t.index=e.index:t.index=0,void 0!==e.chunk&&null!==e.chunk?t.chunk=e.chunk:t.chunk=new Uint8Array,void 0!==e.sender&&null!==e.sender?t.sender=e.sender:t.sender="",t}};var Q={};t.Response={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return void 0!==e.exception&&t.ResponseException.encode(e.exception,n.uint32(10).fork()).ldelim(),void 0!==e.echo&&t.ResponseEcho.encode(e.echo,n.uint32(18).fork()).ldelim(),void 0!==e.flush&&t.ResponseFlush.encode(e.flush,n.uint32(26).fork()).ldelim(),void 0!==e.info&&t.ResponseInfo.encode(e.info,n.uint32(34).fork()).ldelim(),void 0!==e.setOption&&t.ResponseSetOption.encode(e.setOption,n.uint32(42).fork()).ldelim(),void 0!==e.initChain&&t.ResponseInitChain.encode(e.initChain,n.uint32(50).fork()).ldelim(),void 0!==e.query&&t.ResponseQuery.encode(e.query,n.uint32(58).fork()).ldelim(),void 0!==e.beginBlock&&t.ResponseBeginBlock.encode(e.beginBlock,n.uint32(66).fork()).ldelim(),void 0!==e.checkTx&&t.ResponseCheckTx.encode(e.checkTx,n.uint32(74).fork()).ldelim(),void 0!==e.deliverTx&&t.ResponseDeliverTx.encode(e.deliverTx,n.uint32(82).fork()).ldelim(),void 0!==e.endBlock&&t.ResponseEndBlock.encode(e.endBlock,n.uint32(90).fork()).ldelim(),void 0!==e.commit&&t.ResponseCommit.encode(e.commit,n.uint32(98).fork()).ldelim(),void 0!==e.listSnapshots&&t.ResponseListSnapshots.encode(e.listSnapshots,n.uint32(106).fork()).ldelim(),void 0!==e.offerSnapshot&&t.ResponseOfferSnapshot.encode(e.offerSnapshot,n.uint32(114).fork()).ldelim(),void 0!==e.loadSnapshotChunk&&t.ResponseLoadSnapshotChunk.encode(e.loadSnapshotChunk,n.uint32(122).fork()).ldelim(),void 0!==e.applySnapshotChunk&&t.ResponseApplySnapshotChunk.encode(e.applySnapshotChunk,n.uint32(130).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},Q);r.pos>>3){case 1:i.exception=t.ResponseException.decode(r,r.uint32());break;case 2:i.echo=t.ResponseEcho.decode(r,r.uint32());break;case 3:i.flush=t.ResponseFlush.decode(r,r.uint32());break;case 4:i.info=t.ResponseInfo.decode(r,r.uint32());break;case 5:i.setOption=t.ResponseSetOption.decode(r,r.uint32());break;case 6:i.initChain=t.ResponseInitChain.decode(r,r.uint32());break;case 7:i.query=t.ResponseQuery.decode(r,r.uint32());break;case 8:i.beginBlock=t.ResponseBeginBlock.decode(r,r.uint32());break;case 9:i.checkTx=t.ResponseCheckTx.decode(r,r.uint32());break;case 10:i.deliverTx=t.ResponseDeliverTx.decode(r,r.uint32());break;case 11:i.endBlock=t.ResponseEndBlock.decode(r,r.uint32());break;case 12:i.commit=t.ResponseCommit.decode(r,r.uint32());break;case 13:i.listSnapshots=t.ResponseListSnapshots.decode(r,r.uint32());break;case 14:i.offerSnapshot=t.ResponseOfferSnapshot.decode(r,r.uint32());break;case 15:i.loadSnapshotChunk=t.ResponseLoadSnapshotChunk.decode(r,r.uint32());break;case 16:i.applySnapshotChunk=t.ResponseApplySnapshotChunk.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},Q);return void 0!==e.exception&&null!==e.exception?n.exception=t.ResponseException.fromJSON(e.exception):n.exception=void 0,void 0!==e.echo&&null!==e.echo?n.echo=t.ResponseEcho.fromJSON(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.ResponseFlush.fromJSON(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.ResponseInfo.fromJSON(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.ResponseSetOption.fromJSON(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.ResponseInitChain.fromJSON(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.ResponseQuery.fromJSON(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.ResponseBeginBlock.fromJSON(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.ResponseCheckTx.fromJSON(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.ResponseDeliverTx.fromJSON(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.ResponseEndBlock.fromJSON(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.ResponseCommit.fromJSON(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.ResponseListSnapshots.fromJSON(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.ResponseOfferSnapshot.fromJSON(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.ResponseLoadSnapshotChunk.fromJSON(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.ResponseApplySnapshotChunk.fromJSON(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n},toJSON:function(e){var n={};return void 0!==e.exception&&(n.exception=e.exception?t.ResponseException.toJSON(e.exception):void 0),void 0!==e.echo&&(n.echo=e.echo?t.ResponseEcho.toJSON(e.echo):void 0),void 0!==e.flush&&(n.flush=e.flush?t.ResponseFlush.toJSON(e.flush):void 0),void 0!==e.info&&(n.info=e.info?t.ResponseInfo.toJSON(e.info):void 0),void 0!==e.setOption&&(n.setOption=e.setOption?t.ResponseSetOption.toJSON(e.setOption):void 0),void 0!==e.initChain&&(n.initChain=e.initChain?t.ResponseInitChain.toJSON(e.initChain):void 0),void 0!==e.query&&(n.query=e.query?t.ResponseQuery.toJSON(e.query):void 0),void 0!==e.beginBlock&&(n.beginBlock=e.beginBlock?t.ResponseBeginBlock.toJSON(e.beginBlock):void 0),void 0!==e.checkTx&&(n.checkTx=e.checkTx?t.ResponseCheckTx.toJSON(e.checkTx):void 0),void 0!==e.deliverTx&&(n.deliverTx=e.deliverTx?t.ResponseDeliverTx.toJSON(e.deliverTx):void 0),void 0!==e.endBlock&&(n.endBlock=e.endBlock?t.ResponseEndBlock.toJSON(e.endBlock):void 0),void 0!==e.commit&&(n.commit=e.commit?t.ResponseCommit.toJSON(e.commit):void 0),void 0!==e.listSnapshots&&(n.listSnapshots=e.listSnapshots?t.ResponseListSnapshots.toJSON(e.listSnapshots):void 0),void 0!==e.offerSnapshot&&(n.offerSnapshot=e.offerSnapshot?t.ResponseOfferSnapshot.toJSON(e.offerSnapshot):void 0),void 0!==e.loadSnapshotChunk&&(n.loadSnapshotChunk=e.loadSnapshotChunk?t.ResponseLoadSnapshotChunk.toJSON(e.loadSnapshotChunk):void 0),void 0!==e.applySnapshotChunk&&(n.applySnapshotChunk=e.applySnapshotChunk?t.ResponseApplySnapshotChunk.toJSON(e.applySnapshotChunk):void 0),n},fromPartial:function(e){var n=Object.assign({},Q);return void 0!==e.exception&&null!==e.exception?n.exception=t.ResponseException.fromPartial(e.exception):n.exception=void 0,void 0!==e.echo&&null!==e.echo?n.echo=t.ResponseEcho.fromPartial(e.echo):n.echo=void 0,void 0!==e.flush&&null!==e.flush?n.flush=t.ResponseFlush.fromPartial(e.flush):n.flush=void 0,void 0!==e.info&&null!==e.info?n.info=t.ResponseInfo.fromPartial(e.info):n.info=void 0,void 0!==e.setOption&&null!==e.setOption?n.setOption=t.ResponseSetOption.fromPartial(e.setOption):n.setOption=void 0,void 0!==e.initChain&&null!==e.initChain?n.initChain=t.ResponseInitChain.fromPartial(e.initChain):n.initChain=void 0,void 0!==e.query&&null!==e.query?n.query=t.ResponseQuery.fromPartial(e.query):n.query=void 0,void 0!==e.beginBlock&&null!==e.beginBlock?n.beginBlock=t.ResponseBeginBlock.fromPartial(e.beginBlock):n.beginBlock=void 0,void 0!==e.checkTx&&null!==e.checkTx?n.checkTx=t.ResponseCheckTx.fromPartial(e.checkTx):n.checkTx=void 0,void 0!==e.deliverTx&&null!==e.deliverTx?n.deliverTx=t.ResponseDeliverTx.fromPartial(e.deliverTx):n.deliverTx=void 0,void 0!==e.endBlock&&null!==e.endBlock?n.endBlock=t.ResponseEndBlock.fromPartial(e.endBlock):n.endBlock=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.ResponseCommit.fromPartial(e.commit):n.commit=void 0,void 0!==e.listSnapshots&&null!==e.listSnapshots?n.listSnapshots=t.ResponseListSnapshots.fromPartial(e.listSnapshots):n.listSnapshots=void 0,void 0!==e.offerSnapshot&&null!==e.offerSnapshot?n.offerSnapshot=t.ResponseOfferSnapshot.fromPartial(e.offerSnapshot):n.offerSnapshot=void 0,void 0!==e.loadSnapshotChunk&&null!==e.loadSnapshotChunk?n.loadSnapshotChunk=t.ResponseLoadSnapshotChunk.fromPartial(e.loadSnapshotChunk):n.loadSnapshotChunk=void 0,void 0!==e.applySnapshotChunk&&null!==e.applySnapshotChunk?n.applySnapshotChunk=t.ResponseApplySnapshotChunk.fromPartial(e.applySnapshotChunk):n.applySnapshotChunk=void 0,n}};var q={error:""};t.ResponseException={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return""!==e.error&&t.uint32(10).string(e.error),t},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},q);n.pos>>3==1?a.error=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},q);return void 0!==e.error&&null!==e.error?t.error=String(e.error):t.error="",t},toJSON:function(e){var t={};return void 0!==e.error&&(t.error=e.error),t},fromPartial:function(e){var t=Object.assign({},q);return void 0!==e.error&&null!==e.error?t.error=e.error:t.error="",t}};var V={message:""};t.ResponseEcho={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return""!==e.message&&t.uint32(10).string(e.message),t},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},V);n.pos>>3==1?a.message=n.string():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},V);return void 0!==e.message&&null!==e.message?t.message=String(e.message):t.message="",t},toJSON:function(e){var t={};return void 0!==e.message&&(t.message=e.message),t},fromPartial:function(e){var t=Object.assign({},V);return void 0!==e.message&&null!==e.message?t.message=e.message:t.message="",t}};var J={};t.ResponseFlush={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create()},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},J);n.pos1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return""!==e.data&&t.uint32(10).string(e.data),""!==e.version&&t.uint32(18).string(e.version),e.appVersion.isZero()||t.uint32(24).uint64(e.appVersion),e.lastBlockHeight.isZero()||t.uint32(32).int64(e.lastBlockHeight),0!==e.lastBlockAppHash.length&&t.uint32(42).bytes(e.lastBlockAppHash),t},decode:function(e,t){var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},K);for(a.lastBlockAppHash=new Uint8Array;n.pos>>3){case 1:a.data=n.string();break;case 2:a.version=n.string();break;case 3:a.appVersion=n.uint64();break;case 4:a.lastBlockHeight=n.int64();break;case 5:a.lastBlockAppHash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},K);return t.lastBlockAppHash=new Uint8Array,void 0!==e.data&&null!==e.data?t.data=String(e.data):t.data="",void 0!==e.version&&null!==e.version?t.version=String(e.version):t.version="",void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=f.default.fromString(e.appVersion):t.appVersion=f.default.UZERO,void 0!==e.lastBlockHeight&&null!==e.lastBlockHeight?t.lastBlockHeight=f.default.fromString(e.lastBlockHeight):t.lastBlockHeight=f.default.ZERO,void 0!==e.lastBlockAppHash&&null!==e.lastBlockAppHash&&(t.lastBlockAppHash=xe(e.lastBlockAppHash)),t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=e.data),void 0!==e.version&&(t.version=e.version),void 0!==e.appVersion&&(t.appVersion=(e.appVersion||f.default.UZERO).toString()),void 0!==e.lastBlockHeight&&(t.lastBlockHeight=(e.lastBlockHeight||f.default.ZERO).toString()),void 0!==e.lastBlockAppHash&&(t.lastBlockAppHash=ke(void 0!==e.lastBlockAppHash?e.lastBlockAppHash:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},K);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data="",void 0!==e.version&&null!==e.version?t.version=e.version:t.version="",void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=e.appVersion:t.appVersion=f.default.UZERO,void 0!==e.lastBlockHeight&&null!==e.lastBlockHeight?t.lastBlockHeight=e.lastBlockHeight:t.lastBlockHeight=f.default.ZERO,void 0!==e.lastBlockAppHash&&null!==e.lastBlockAppHash?t.lastBlockAppHash=e.lastBlockAppHash:t.lastBlockAppHash=new Uint8Array,t}};var G={code:0,log:"",info:""};t.ResponseSetOption={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return 0!==e.code&&t.uint32(8).uint32(e.code),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),t},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},G);n.pos>>3){case 1:a.code=n.uint32();break;case 3:a.log=n.string();break;case 4:a.info=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},G);return void 0!==e.code&&null!==e.code?t.code=Number(e.code):t.code=0,void 0!==e.log&&null!==e.log?t.log=String(e.log):t.log="",void 0!==e.info&&null!==e.info?t.info=String(e.info):t.info="",t},toJSON:function(e){var t={};return void 0!==e.code&&(t.code=e.code),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),t},fromPartial:function(e){var t=Object.assign({},G);return void 0!==e.code&&null!==e.code?t.code=e.code:t.code=0,void 0!==e.log&&null!==e.log?t.log=e.log:t.log="",void 0!==e.info&&null!==e.info?t.info=e.info:t.info="",t}};var W={};t.ResponseInitChain={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();void 0!==e.consensusParams&&t.ConsensusParams.encode(e.consensusParams,n.uint32(10).fork()).ldelim();var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.ValidatorUpdate.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return 0!==e.appHash.length&&n.uint32(26).bytes(e.appHash),n},decode:function(e,n){var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},W);for(i.validators=[],i.appHash=new Uint8Array;r.pos>>3){case 1:i.consensusParams=t.ConsensusParams.decode(r,r.uint32());break;case 2:i.validators.push(t.ValidatorUpdate.decode(r,r.uint32()));break;case 3:i.appHash=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},W);if(n.validators=[],n.appHash=new Uint8Array,void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromJSON(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appHash&&null!==e.appHash&&(n.appHash=xe(e.appHash)),n},toJSON:function(e){var n={};return void 0!==e.consensusParams&&(n.consensusParams=e.consensusParams?t.ConsensusParams.toJSON(e.consensusParams):void 0),e.validators?n.validators=e.validators.map((function(e){return e?t.ValidatorUpdate.toJSON(e):void 0})):n.validators=[],void 0!==e.appHash&&(n.appHash=ke(void 0!==e.appHash?e.appHash:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},W);if(n.validators=[],void 0!==e.consensusParams&&null!==e.consensusParams?n.consensusParams=t.ConsensusParams.fromPartial(e.consensusParams):n.consensusParams=void 0,void 0!==e.validators&&null!==e.validators){var r,a=i(e.validators);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validators.push(t.ValidatorUpdate.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.appHash&&null!==e.appHash?n.appHash=e.appHash:n.appHash=new Uint8Array,n}};var Y={code:0,log:"",info:"",index:f.default.ZERO,height:f.default.ZERO,codespace:""};t.ResponseQuery={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return 0!==e.code&&t.uint32(8).uint32(e.code),""!==e.log&&t.uint32(26).string(e.log),""!==e.info&&t.uint32(34).string(e.info),e.index.isZero()||t.uint32(40).int64(e.index),0!==e.key.length&&t.uint32(50).bytes(e.key),0!==e.value.length&&t.uint32(58).bytes(e.value),void 0!==e.proofOps&&h.ProofOps.encode(e.proofOps,t.uint32(66).fork()).ldelim(),e.height.isZero()||t.uint32(72).int64(e.height),""!==e.codespace&&t.uint32(82).string(e.codespace),t},decode:function(e,t){var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},Y);for(a.key=new Uint8Array,a.value=new Uint8Array;n.pos>>3){case 1:a.code=n.uint32();break;case 3:a.log=n.string();break;case 4:a.info=n.string();break;case 5:a.index=n.int64();break;case 6:a.key=n.bytes();break;case 7:a.value=n.bytes();break;case 8:a.proofOps=h.ProofOps.decode(n,n.uint32());break;case 9:a.height=n.int64();break;case 10:a.codespace=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},Y);return t.key=new Uint8Array,t.value=new Uint8Array,void 0!==e.code&&null!==e.code?t.code=Number(e.code):t.code=0,void 0!==e.log&&null!==e.log?t.log=String(e.log):t.log="",void 0!==e.info&&null!==e.info?t.info=String(e.info):t.info="",void 0!==e.index&&null!==e.index?t.index=f.default.fromString(e.index):t.index=f.default.ZERO,void 0!==e.key&&null!==e.key&&(t.key=xe(e.key)),void 0!==e.value&&null!==e.value&&(t.value=xe(e.value)),void 0!==e.proofOps&&null!==e.proofOps?t.proofOps=h.ProofOps.fromJSON(e.proofOps):t.proofOps=void 0,void 0!==e.height&&null!==e.height?t.height=f.default.fromString(e.height):t.height=f.default.ZERO,void 0!==e.codespace&&null!==e.codespace?t.codespace=String(e.codespace):t.codespace="",t},toJSON:function(e){var t={};return void 0!==e.code&&(t.code=e.code),void 0!==e.log&&(t.log=e.log),void 0!==e.info&&(t.info=e.info),void 0!==e.index&&(t.index=(e.index||f.default.ZERO).toString()),void 0!==e.key&&(t.key=ke(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(t.value=ke(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.proofOps&&(t.proofOps=e.proofOps?h.ProofOps.toJSON(e.proofOps):void 0),void 0!==e.height&&(t.height=(e.height||f.default.ZERO).toString()),void 0!==e.codespace&&(t.codespace=e.codespace),t},fromPartial:function(e){var t=Object.assign({},Y);return void 0!==e.code&&null!==e.code?t.code=e.code:t.code=0,void 0!==e.log&&null!==e.log?t.log=e.log:t.log="",void 0!==e.info&&null!==e.info?t.info=e.info:t.info="",void 0!==e.index&&null!==e.index?t.index=e.index:t.index=f.default.ZERO,void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.value&&null!==e.value?t.value=e.value:t.value=new Uint8Array,void 0!==e.proofOps&&null!==e.proofOps?t.proofOps=h.ProofOps.fromPartial(e.proofOps):t.proofOps=void 0,void 0!==e.height&&null!==e.height?t.height=e.height:t.height=f.default.ZERO,void 0!==e.codespace&&null!==e.codespace?t.codespace=e.codespace:t.codespace="",t}};var X={};t.ResponseBeginBlock={encode:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create(),a=i(e.events);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.Event.encode(o,r.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return r},decode:function(e,n){var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},X);for(i.events=[];r.pos>>3==1?i.events.push(t.Event.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},X);if(n.events=[],void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],n},fromPartial:function(e){var n=Object.assign({},X);if(n.events=[],void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var $={code:0,log:"",info:"",gasWanted:f.default.ZERO,gasUsed:f.default.ZERO,codespace:""};t.ResponseCheckTx={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();0!==e.code&&n.uint32(8).uint32(e.code),0!==e.data.length&&n.uint32(18).bytes(e.data),""!==e.log&&n.uint32(26).string(e.log),""!==e.info&&n.uint32(34).string(e.info),e.gasWanted.isZero()||n.uint32(40).int64(e.gasWanted),e.gasUsed.isZero()||n.uint32(48).int64(e.gasUsed);var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.Event.encode(o,n.uint32(58).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return""!==e.codespace&&n.uint32(66).string(e.codespace),n},decode:function(e,n){var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},$);for(i.events=[],i.data=new Uint8Array;r.pos>>3){case 1:i.code=r.uint32();break;case 2:i.data=r.bytes();break;case 3:i.log=r.string();break;case 4:i.info=r.string();break;case 5:i.gasWanted=r.int64();break;case 6:i.gasUsed=r.int64();break;case 7:i.events.push(t.Event.decode(r,r.uint32()));break;case 8:i.codespace=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},$);if(n.events=[],n.data=new Uint8Array,void 0!==e.code&&null!==e.code?n.code=Number(e.code):n.code=0,void 0!==e.data&&null!==e.data&&(n.data=xe(e.data)),void 0!==e.log&&null!==e.log?n.log=String(e.log):n.log="",void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=f.default.fromString(e.gasWanted):n.gasWanted=f.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=f.default.fromString(e.gasUsed):n.gasUsed=f.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=String(e.codespace):n.codespace="",n},toJSON:function(e){var n={};return void 0!==e.code&&(n.code=e.code),void 0!==e.data&&(n.data=ke(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(n.log=e.log),void 0!==e.info&&(n.info=e.info),void 0!==e.gasWanted&&(n.gasWanted=(e.gasWanted||f.default.ZERO).toString()),void 0!==e.gasUsed&&(n.gasUsed=(e.gasUsed||f.default.ZERO).toString()),e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],void 0!==e.codespace&&(n.codespace=e.codespace),n},fromPartial:function(e){var n=Object.assign({},$);if(n.events=[],void 0!==e.code&&null!==e.code?n.code=e.code:n.code=0,void 0!==e.data&&null!==e.data?n.data=e.data:n.data=new Uint8Array,void 0!==e.log&&null!==e.log?n.log=e.log:n.log="",void 0!==e.info&&null!==e.info?n.info=e.info:n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=e.gasWanted:n.gasWanted=f.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=e.gasUsed:n.gasUsed=f.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=e.codespace:n.codespace="",n}};var ee={code:0,log:"",info:"",gasWanted:f.default.ZERO,gasUsed:f.default.ZERO,codespace:""};t.ResponseDeliverTx={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();0!==e.code&&n.uint32(8).uint32(e.code),0!==e.data.length&&n.uint32(18).bytes(e.data),""!==e.log&&n.uint32(26).string(e.log),""!==e.info&&n.uint32(34).string(e.info),e.gasWanted.isZero()||n.uint32(40).int64(e.gasWanted),e.gasUsed.isZero()||n.uint32(48).int64(e.gasUsed);var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.Event.encode(o,n.uint32(58).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return""!==e.codespace&&n.uint32(66).string(e.codespace),n},decode:function(e,n){var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},ee);for(i.events=[],i.data=new Uint8Array;r.pos>>3){case 1:i.code=r.uint32();break;case 2:i.data=r.bytes();break;case 3:i.log=r.string();break;case 4:i.info=r.string();break;case 5:i.gasWanted=r.int64();break;case 6:i.gasUsed=r.int64();break;case 7:i.events.push(t.Event.decode(r,r.uint32()));break;case 8:i.codespace=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},ee);if(n.events=[],n.data=new Uint8Array,void 0!==e.code&&null!==e.code?n.code=Number(e.code):n.code=0,void 0!==e.data&&null!==e.data&&(n.data=xe(e.data)),void 0!==e.log&&null!==e.log?n.log=String(e.log):n.log="",void 0!==e.info&&null!==e.info?n.info=String(e.info):n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=f.default.fromString(e.gasWanted):n.gasWanted=f.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=f.default.fromString(e.gasUsed):n.gasUsed=f.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=String(e.codespace):n.codespace="",n},toJSON:function(e){var n={};return void 0!==e.code&&(n.code=e.code),void 0!==e.data&&(n.data=ke(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.log&&(n.log=e.log),void 0!==e.info&&(n.info=e.info),void 0!==e.gasWanted&&(n.gasWanted=(e.gasWanted||f.default.ZERO).toString()),void 0!==e.gasUsed&&(n.gasUsed=(e.gasUsed||f.default.ZERO).toString()),e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],void 0!==e.codespace&&(n.codespace=e.codespace),n},fromPartial:function(e){var n=Object.assign({},ee);if(n.events=[],void 0!==e.code&&null!==e.code?n.code=e.code:n.code=0,void 0!==e.data&&null!==e.data?n.data=e.data:n.data=new Uint8Array,void 0!==e.log&&null!==e.log?n.log=e.log:n.log="",void 0!==e.info&&null!==e.info?n.info=e.info:n.info="",void 0!==e.gasWanted&&null!==e.gasWanted?n.gasWanted=e.gasWanted:n.gasWanted=f.default.ZERO,void 0!==e.gasUsed&&null!==e.gasUsed?n.gasUsed=e.gasUsed:n.gasUsed=f.default.ZERO,void 0!==e.events&&null!==e.events){var r,a=i(e.events);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.events.push(t.Event.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.codespace&&null!==e.codespace?n.codespace=e.codespace:n.codespace="",n}};var te={};t.ResponseEndBlock={encode:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create(),a=i(e.validatorUpdates);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.ValidatorUpdate.encode(o,r.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}void 0!==e.consensusParamUpdates&&t.ConsensusParams.encode(e.consensusParamUpdates,r.uint32(18).fork()).ldelim();var s,c=i(e.events);try{for(c.s();!(s=c.n()).done;){var u=s.value;t.Event.encode(u,r.uint32(26).fork()).ldelim()}}catch(e){c.e(e)}finally{c.f()}return r},decode:function(e,n){var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},te);for(i.validatorUpdates=[],i.events=[];r.pos>>3){case 1:i.validatorUpdates.push(t.ValidatorUpdate.decode(r,r.uint32()));break;case 2:i.consensusParamUpdates=t.ConsensusParams.decode(r,r.uint32());break;case 3:i.events.push(t.Event.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},te);if(n.validatorUpdates=[],n.events=[],void 0!==e.validatorUpdates&&null!==e.validatorUpdates){var r,a=i(e.validatorUpdates);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validatorUpdates.push(t.ValidatorUpdate.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.consensusParamUpdates&&null!==e.consensusParamUpdates?n.consensusParamUpdates=t.ConsensusParams.fromJSON(e.consensusParamUpdates):n.consensusParamUpdates=void 0,void 0!==e.events&&null!==e.events){var s,c=i(e.events);try{for(c.s();!(s=c.n()).done;){var u=s.value;n.events.push(t.Event.fromJSON(u))}}catch(e){c.e(e)}finally{c.f()}}return n},toJSON:function(e){var n={};return e.validatorUpdates?n.validatorUpdates=e.validatorUpdates.map((function(e){return e?t.ValidatorUpdate.toJSON(e):void 0})):n.validatorUpdates=[],void 0!==e.consensusParamUpdates&&(n.consensusParamUpdates=e.consensusParamUpdates?t.ConsensusParams.toJSON(e.consensusParamUpdates):void 0),e.events?n.events=e.events.map((function(e){return e?t.Event.toJSON(e):void 0})):n.events=[],n},fromPartial:function(e){var n=Object.assign({},te);if(n.validatorUpdates=[],n.events=[],void 0!==e.validatorUpdates&&null!==e.validatorUpdates){var r,a=i(e.validatorUpdates);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.validatorUpdates.push(t.ValidatorUpdate.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}if(void 0!==e.consensusParamUpdates&&null!==e.consensusParamUpdates?n.consensusParamUpdates=t.ConsensusParams.fromPartial(e.consensusParamUpdates):n.consensusParamUpdates=void 0,void 0!==e.events&&null!==e.events){var s,c=i(e.events);try{for(c.s();!(s=c.n()).done;){var u=s.value;n.events.push(t.Event.fromPartial(u))}}catch(e){c.e(e)}finally{c.f()}}return n}};var ne={retainHeight:f.default.ZERO};t.ResponseCommit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return 0!==e.data.length&&t.uint32(18).bytes(e.data),e.retainHeight.isZero()||t.uint32(24).int64(e.retainHeight),t},decode:function(e,t){var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ne);for(a.data=new Uint8Array;n.pos>>3){case 2:a.data=n.bytes();break;case 3:a.retainHeight=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},ne);return t.data=new Uint8Array,void 0!==e.data&&null!==e.data&&(t.data=xe(e.data)),void 0!==e.retainHeight&&null!==e.retainHeight?t.retainHeight=f.default.fromString(e.retainHeight):t.retainHeight=f.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.data&&(t.data=ke(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.retainHeight&&(t.retainHeight=(e.retainHeight||f.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},ne);return void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.retainHeight&&null!==e.retainHeight?t.retainHeight=e.retainHeight:t.retainHeight=f.default.ZERO,t}};var re={};t.ResponseListSnapshots={encode:function(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create(),a=i(e.snapshots);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.Snapshot.encode(o,r.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return r},decode:function(e,n){var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},re);for(i.snapshots=[];r.pos>>3==1?i.snapshots.push(t.Snapshot.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){var n=Object.assign({},re);if(n.snapshots=[],void 0!==e.snapshots&&null!==e.snapshots){var r,a=i(e.snapshots);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.snapshots.push(t.Snapshot.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return e.snapshots?n.snapshots=e.snapshots.map((function(e){return e?t.Snapshot.toJSON(e):void 0})):n.snapshots=[],n},fromPartial:function(e){var n=Object.assign({},re);if(n.snapshots=[],void 0!==e.snapshots&&null!==e.snapshots){var r,a=i(e.snapshots);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.snapshots.push(t.Snapshot.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var ae={result:0};t.ResponseOfferSnapshot={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return 0!==e.result&&t.uint32(8).int32(e.result),t},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ae);n.pos>>3==1?a.result=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},ae);return void 0!==e.result&&null!==e.result?t.result=k(e.result):t.result=0,t},toJSON:function(e){var t={};return void 0!==e.result&&(t.result=I(e.result)),t},fromPartial:function(e){var t=Object.assign({},ae);return void 0!==e.result&&null!==e.result?t.result=e.result:t.result=0,t}};var ie={};t.ResponseLoadSnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return 0!==e.chunk.length&&t.uint32(10).bytes(e.chunk),t},decode:function(e,t){var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ie);for(a.chunk=new Uint8Array;n.pos>>3==1?a.chunk=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},ie);return t.chunk=new Uint8Array,void 0!==e.chunk&&null!==e.chunk&&(t.chunk=xe(e.chunk)),t},toJSON:function(e){var t={};return void 0!==e.chunk&&(t.chunk=ke(void 0!==e.chunk?e.chunk:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},ie);return void 0!==e.chunk&&null!==e.chunk?t.chunk=e.chunk:t.chunk=new Uint8Array,t}};var oe={result:0,refetchChunks:0,rejectSenders:""};t.ResponseApplySnapshotChunk={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();0!==e.result&&t.uint32(8).int32(e.result),t.uint32(18).fork();var n,r=i(e.refetchChunks);try{for(r.s();!(n=r.n()).done;){var a=n.value;t.uint32(a)}}catch(e){r.e(e)}finally{r.f()}t.ldelim();var o,s=i(e.rejectSenders);try{for(s.s();!(o=s.n()).done;){var c=o.value;t.uint32(26).string(c)}}catch(e){s.e(e)}finally{s.f()}return t},decode:function(e,t){var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},oe);for(a.refetchChunks=[],a.rejectSenders=[];n.pos>>3){case 1:a.result=n.int32();break;case 2:if(2==(7&i))for(var o=n.uint32()+n.pos;n.pos1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return void 0!==e.block&&t.BlockParams.encode(e.block,n.uint32(10).fork()).ldelim(),void 0!==e.evidence&&y.EvidenceParams.encode(e.evidence,n.uint32(18).fork()).ldelim(),void 0!==e.validator&&y.ValidatorParams.encode(e.validator,n.uint32(26).fork()).ldelim(),void 0!==e.version&&y.VersionParams.encode(e.version,n.uint32(34).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},se);r.pos>>3){case 1:i.block=t.BlockParams.decode(r,r.uint32());break;case 2:i.evidence=y.EvidenceParams.decode(r,r.uint32());break;case 3:i.validator=y.ValidatorParams.decode(r,r.uint32());break;case 4:i.version=y.VersionParams.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},se);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromJSON(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=y.EvidenceParams.fromJSON(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=y.ValidatorParams.fromJSON(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=y.VersionParams.fromJSON(e.version):n.version=void 0,n},toJSON:function(e){var n={};return void 0!==e.block&&(n.block=e.block?t.BlockParams.toJSON(e.block):void 0),void 0!==e.evidence&&(n.evidence=e.evidence?y.EvidenceParams.toJSON(e.evidence):void 0),void 0!==e.validator&&(n.validator=e.validator?y.ValidatorParams.toJSON(e.validator):void 0),void 0!==e.version&&(n.version=e.version?y.VersionParams.toJSON(e.version):void 0),n},fromPartial:function(e){var n=Object.assign({},se);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromPartial(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=y.EvidenceParams.fromPartial(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=y.ValidatorParams.fromPartial(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=y.VersionParams.fromPartial(e.version):n.version=void 0,n}};var ce={maxBytes:f.default.ZERO,maxGas:f.default.ZERO};t.BlockParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return e.maxBytes.isZero()||t.uint32(8).int64(e.maxBytes),e.maxGas.isZero()||t.uint32(16).int64(e.maxGas),t},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},ce);n.pos>>3){case 1:a.maxBytes=n.int64();break;case 2:a.maxGas=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},ce);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=f.default.fromString(e.maxBytes):t.maxBytes=f.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=f.default.fromString(e.maxGas):t.maxGas=f.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.maxBytes&&(t.maxBytes=(e.maxBytes||f.default.ZERO).toString()),void 0!==e.maxGas&&(t.maxGas=(e.maxGas||f.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},ce);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=e.maxBytes:t.maxBytes=f.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=e.maxGas:t.maxGas=f.default.ZERO,t}};var ue={round:0};t.LastCommitInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();0!==e.round&&n.uint32(8).int32(e.round);var r,a=i(e.votes);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.VoteInfo.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,n){var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},ue);for(i.votes=[];r.pos>>3){case 1:i.round=r.int32();break;case 2:i.votes.push(t.VoteInfo.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},ue);if(n.votes=[],void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.votes&&null!==e.votes){var r,a=i(e.votes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.votes.push(t.VoteInfo.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return void 0!==e.round&&(n.round=e.round),e.votes?n.votes=e.votes.map((function(e){return e?t.VoteInfo.toJSON(e):void 0})):n.votes=[],n},fromPartial:function(e){var n=Object.assign({},ue);if(n.votes=[],void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.votes&&null!==e.votes){var r,a=i(e.votes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.votes.push(t.VoteInfo.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var de={type:""};t.Event={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();""!==e.type&&n.uint32(10).string(e.type);var r,a=i(e.attributes);try{for(a.s();!(r=a.n()).done;){var o=r.value;t.EventAttribute.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,n){var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},de);for(i.attributes=[];r.pos>>3){case 1:i.type=r.string();break;case 2:i.attributes.push(t.EventAttribute.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},de);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=String(e.type):n.type="",void 0!==e.attributes&&null!==e.attributes){var r,a=i(e.attributes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.attributes.push(t.EventAttribute.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=e.type),e.attributes?n.attributes=e.attributes.map((function(e){return e?t.EventAttribute.toJSON(e):void 0})):n.attributes=[],n},fromPartial:function(e){var n=Object.assign({},de);if(n.attributes=[],void 0!==e.type&&null!==e.type?n.type=e.type:n.type="",void 0!==e.attributes&&null!==e.attributes){var r,a=i(e.attributes);try{for(a.s();!(r=a.n()).done;){var o=r.value;n.attributes.push(t.EventAttribute.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return n}};var fe={index:!1};t.EventAttribute={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),0!==e.value.length&&t.uint32(18).bytes(e.value),!0===e.index&&t.uint32(24).bool(e.index),t},decode:function(e,t){var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},fe);for(a.key=new Uint8Array,a.value=new Uint8Array;n.pos>>3){case 1:a.key=n.bytes();break;case 2:a.value=n.bytes();break;case 3:a.index=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},fe);return t.key=new Uint8Array,t.value=new Uint8Array,void 0!==e.key&&null!==e.key&&(t.key=xe(e.key)),void 0!==e.value&&null!==e.value&&(t.value=xe(e.value)),void 0!==e.index&&null!==e.index?t.index=Boolean(e.index):t.index=!1,t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=ke(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.value&&(t.value=ke(void 0!==e.value?e.value:new Uint8Array)),void 0!==e.index&&(t.index=e.index),t},fromPartial:function(e){var t=Object.assign({},fe);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.value&&null!==e.value?t.value=e.value:t.value=new Uint8Array,void 0!==e.index&&null!==e.index?t.index=e.index:t.index=!1,t}};var le={height:f.default.ZERO,index:0};t.TxResult={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return e.height.isZero()||n.uint32(8).int64(e.height),0!==e.index&&n.uint32(16).uint32(e.index),0!==e.tx.length&&n.uint32(26).bytes(e.tx),void 0!==e.result&&t.ResponseDeliverTx.encode(e.result,n.uint32(34).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},le);for(i.tx=new Uint8Array;r.pos>>3){case 1:i.height=r.int64();break;case 2:i.index=r.uint32();break;case 3:i.tx=r.bytes();break;case 4:i.result=t.ResponseDeliverTx.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},le);return n.tx=new Uint8Array,void 0!==e.height&&null!==e.height?n.height=f.default.fromString(e.height):n.height=f.default.ZERO,void 0!==e.index&&null!==e.index?n.index=Number(e.index):n.index=0,void 0!==e.tx&&null!==e.tx&&(n.tx=xe(e.tx)),void 0!==e.result&&null!==e.result?n.result=t.ResponseDeliverTx.fromJSON(e.result):n.result=void 0,n},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=(e.height||f.default.ZERO).toString()),void 0!==e.index&&(n.index=e.index),void 0!==e.tx&&(n.tx=ke(void 0!==e.tx?e.tx:new Uint8Array)),void 0!==e.result&&(n.result=e.result?t.ResponseDeliverTx.toJSON(e.result):void 0),n},fromPartial:function(e){var n=Object.assign({},le);return void 0!==e.height&&null!==e.height?n.height=e.height:n.height=f.default.ZERO,void 0!==e.index&&null!==e.index?n.index=e.index:n.index=0,void 0!==e.tx&&null!==e.tx?n.tx=e.tx:n.tx=new Uint8Array,void 0!==e.result&&null!==e.result?n.result=t.ResponseDeliverTx.fromPartial(e.result):n.result=void 0,n}};var be={power:f.default.ZERO};t.Validator={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return 0!==e.address.length&&t.uint32(10).bytes(e.address),e.power.isZero()||t.uint32(24).int64(e.power),t},decode:function(e,t){var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},be);for(a.address=new Uint8Array;n.pos>>3){case 1:a.address=n.bytes();break;case 3:a.power=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},be);return t.address=new Uint8Array,void 0!==e.address&&null!==e.address&&(t.address=xe(e.address)),void 0!==e.power&&null!==e.power?t.power=f.default.fromString(e.power):t.power=f.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=ke(void 0!==e.address?e.address:new Uint8Array)),void 0!==e.power&&(t.power=(e.power||f.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},be);return void 0!==e.address&&null!==e.address?t.address=e.address:t.address=new Uint8Array,void 0!==e.power&&null!==e.power?t.power=e.power:t.power=f.default.ZERO,t}};var pe={power:f.default.ZERO};t.ValidatorUpdate={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return void 0!==e.pubKey&&m.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),e.power.isZero()||t.uint32(16).int64(e.power),t},decode:function(e,t){for(var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},pe);n.pos>>3){case 1:a.pubKey=m.PublicKey.decode(n,n.uint32());break;case 2:a.power=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},pe);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=m.PublicKey.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.power&&null!==e.power?t.power=f.default.fromString(e.power):t.power=f.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.pubKey&&(t.pubKey=e.pubKey?m.PublicKey.toJSON(e.pubKey):void 0),void 0!==e.power&&(t.power=(e.power||f.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},pe);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=m.PublicKey.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.power&&null!==e.power?t.power=e.power:t.power=f.default.ZERO,t}};var he={signedLastBlock:!1};t.VoteInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return void 0!==e.validator&&t.Validator.encode(e.validator,n.uint32(10).fork()).ldelim(),!0===e.signedLastBlock&&n.uint32(16).bool(e.signedLastBlock),n},decode:function(e,n){for(var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},he);r.pos>>3){case 1:i.validator=t.Validator.decode(r,r.uint32());break;case 2:i.signedLastBlock=r.bool();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},he);return void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromJSON(e.validator):n.validator=void 0,void 0!==e.signedLastBlock&&null!==e.signedLastBlock?n.signedLastBlock=Boolean(e.signedLastBlock):n.signedLastBlock=!1,n},toJSON:function(e){var n={};return void 0!==e.validator&&(n.validator=e.validator?t.Validator.toJSON(e.validator):void 0),void 0!==e.signedLastBlock&&(n.signedLastBlock=e.signedLastBlock),n},fromPartial:function(e){var n=Object.assign({},he);return void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromPartial(e.validator):n.validator=void 0,void 0!==e.signedLastBlock&&null!==e.signedLastBlock?n.signedLastBlock=e.signedLastBlock:n.signedLastBlock=!1,n}};var ye={type:0,height:f.default.ZERO,totalVotingPower:f.default.ZERO};t.Evidence={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return 0!==e.type&&n.uint32(8).int32(e.type),void 0!==e.validator&&t.Validator.encode(e.validator,n.uint32(18).fork()).ldelim(),e.height.isZero()||n.uint32(24).int64(e.height),void 0!==e.time&&g.Timestamp.encode(Ie(e.time),n.uint32(34).fork()).ldelim(),e.totalVotingPower.isZero()||n.uint32(40).int64(e.totalVotingPower),n},decode:function(e,n){for(var r=e instanceof b.default.Reader?e:new b.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},ye);r.pos>>3){case 1:i.type=r.int32();break;case 2:i.validator=t.Validator.decode(r,r.uint32());break;case 3:i.height=r.int64();break;case 4:i.time=Se(g.Timestamp.decode(r,r.uint32()));break;case 5:i.totalVotingPower=r.int64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},ye);return void 0!==e.type&&null!==e.type?n.type=x(e.type):n.type=0,void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromJSON(e.validator):n.validator=void 0,void 0!==e.height&&null!==e.height?n.height=f.default.fromString(e.height):n.height=f.default.ZERO,void 0!==e.time&&null!==e.time?n.time=Ee(e.time):n.time=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=f.default.fromString(e.totalVotingPower):n.totalVotingPower=f.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=_(e.type)),void 0!==e.validator&&(n.validator=e.validator?t.Validator.toJSON(e.validator):void 0),void 0!==e.height&&(n.height=(e.height||f.default.ZERO).toString()),void 0!==e.time&&(n.time=e.time.toISOString()),void 0!==e.totalVotingPower&&(n.totalVotingPower=(e.totalVotingPower||f.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},ye);return void 0!==e.type&&null!==e.type?n.type=e.type:n.type=0,void 0!==e.validator&&null!==e.validator?n.validator=t.Validator.fromPartial(e.validator):n.validator=void 0,void 0!==e.height&&null!==e.height?n.height=e.height:n.height=f.default.ZERO,void 0!==e.time&&null!==e.time?n.time=e.time:n.time=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=e.totalVotingPower:n.totalVotingPower=f.default.ZERO,n}};var me={height:f.default.UZERO,format:0,chunks:0};t.Snapshot={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b.default.Writer.create();return e.height.isZero()||t.uint32(8).uint64(e.height),0!==e.format&&t.uint32(16).uint32(e.format),0!==e.chunks&&t.uint32(24).uint32(e.chunks),0!==e.hash.length&&t.uint32(34).bytes(e.hash),0!==e.metadata.length&&t.uint32(42).bytes(e.metadata),t},decode:function(e,t){var n=e instanceof b.default.Reader?e:new b.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},me);for(a.hash=new Uint8Array,a.metadata=new Uint8Array;n.pos>>3){case 1:a.height=n.uint64();break;case 2:a.format=n.uint32();break;case 3:a.chunks=n.uint32();break;case 4:a.hash=n.bytes();break;case 5:a.metadata=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},me);return t.hash=new Uint8Array,t.metadata=new Uint8Array,void 0!==e.height&&null!==e.height?t.height=f.default.fromString(e.height):t.height=f.default.UZERO,void 0!==e.format&&null!==e.format?t.format=Number(e.format):t.format=0,void 0!==e.chunks&&null!==e.chunks?t.chunks=Number(e.chunks):t.chunks=0,void 0!==e.hash&&null!==e.hash&&(t.hash=xe(e.hash)),void 0!==e.metadata&&null!==e.metadata&&(t.metadata=xe(e.metadata)),t},toJSON:function(e){var t={};return void 0!==e.height&&(t.height=(e.height||f.default.UZERO).toString()),void 0!==e.format&&(t.format=e.format),void 0!==e.chunks&&(t.chunks=e.chunks),void 0!==e.hash&&(t.hash=ke(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.metadata&&(t.metadata=ke(void 0!==e.metadata?e.metadata:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},me);return void 0!==e.height&&null!==e.height?t.height=e.height:t.height=f.default.UZERO,void 0!==e.format&&null!==e.format?t.format=e.format:t.format=0,void 0!==e.chunks&&null!==e.chunks?t.chunks=e.chunks:t.chunks=0,void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash=new Uint8Array,void 0!==e.metadata&&null!==e.metadata?t.metadata=e.metadata:t.metadata=new Uint8Array,t}};var ve=function(){function e(t){r(this,e),this.rpc=t,this.Echo=this.Echo.bind(this),this.Flush=this.Flush.bind(this),this.Info=this.Info.bind(this),this.SetOption=this.SetOption.bind(this),this.DeliverTx=this.DeliverTx.bind(this),this.CheckTx=this.CheckTx.bind(this),this.Query=this.Query.bind(this),this.Commit=this.Commit.bind(this),this.InitChain=this.InitChain.bind(this),this.BeginBlock=this.BeginBlock.bind(this),this.EndBlock=this.EndBlock.bind(this),this.ListSnapshots=this.ListSnapshots.bind(this),this.OfferSnapshot=this.OfferSnapshot.bind(this),this.LoadSnapshotChunk=this.LoadSnapshotChunk.bind(this),this.ApplySnapshotChunk=this.ApplySnapshotChunk.bind(this)}return a(e,[{key:"Echo",value:function(e,n){return this.rpc.unary(t.ABCIApplicationEchoDesc,t.RequestEcho.fromPartial(e),n)}},{key:"Flush",value:function(e,n){return this.rpc.unary(t.ABCIApplicationFlushDesc,t.RequestFlush.fromPartial(e),n)}},{key:"Info",value:function(e,n){return this.rpc.unary(t.ABCIApplicationInfoDesc,t.RequestInfo.fromPartial(e),n)}},{key:"SetOption",value:function(e,n){return this.rpc.unary(t.ABCIApplicationSetOptionDesc,t.RequestSetOption.fromPartial(e),n)}},{key:"DeliverTx",value:function(e,n){return this.rpc.unary(t.ABCIApplicationDeliverTxDesc,t.RequestDeliverTx.fromPartial(e),n)}},{key:"CheckTx",value:function(e,n){return this.rpc.unary(t.ABCIApplicationCheckTxDesc,t.RequestCheckTx.fromPartial(e),n)}},{key:"Query",value:function(e,n){return this.rpc.unary(t.ABCIApplicationQueryDesc,t.RequestQuery.fromPartial(e),n)}},{key:"Commit",value:function(e,n){return this.rpc.unary(t.ABCIApplicationCommitDesc,t.RequestCommit.fromPartial(e),n)}},{key:"InitChain",value:function(e,n){return this.rpc.unary(t.ABCIApplicationInitChainDesc,t.RequestInitChain.fromPartial(e),n)}},{key:"BeginBlock",value:function(e,n){return this.rpc.unary(t.ABCIApplicationBeginBlockDesc,t.RequestBeginBlock.fromPartial(e),n)}},{key:"EndBlock",value:function(e,n){return this.rpc.unary(t.ABCIApplicationEndBlockDesc,t.RequestEndBlock.fromPartial(e),n)}},{key:"ListSnapshots",value:function(e,n){return this.rpc.unary(t.ABCIApplicationListSnapshotsDesc,t.RequestListSnapshots.fromPartial(e),n)}},{key:"OfferSnapshot",value:function(e,n){return this.rpc.unary(t.ABCIApplicationOfferSnapshotDesc,t.RequestOfferSnapshot.fromPartial(e),n)}},{key:"LoadSnapshotChunk",value:function(e,n){return this.rpc.unary(t.ABCIApplicationLoadSnapshotChunkDesc,t.RequestLoadSnapshotChunk.fromPartial(e),n)}},{key:"ApplySnapshotChunk",value:function(e,n){return this.rpc.unary(t.ABCIApplicationApplySnapshotChunkDesc,t.RequestApplySnapshotChunk.fromPartial(e),n)}}]),e}();t.ABCIApplicationClientImpl=ve,t.ABCIApplicationDesc={serviceName:"tendermint.abci.ABCIApplication"},t.ABCIApplicationEchoDesc={methodName:"Echo",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestEcho.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseEcho.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationFlushDesc={methodName:"Flush",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestFlush.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseFlush.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationInfoDesc={methodName:"Info",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestInfo.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseInfo.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationSetOptionDesc={methodName:"SetOption",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestSetOption.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseSetOption.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationDeliverTxDesc={methodName:"DeliverTx",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestDeliverTx.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseDeliverTx.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationCheckTxDesc={methodName:"CheckTx",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestCheckTx.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseCheckTx.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationQueryDesc={methodName:"Query",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestQuery.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseQuery.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationCommitDesc={methodName:"Commit",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestCommit.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseCommit.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationInitChainDesc={methodName:"InitChain",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestInitChain.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseInitChain.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationBeginBlockDesc={methodName:"BeginBlock",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestBeginBlock.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseBeginBlock.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationEndBlockDesc={methodName:"EndBlock",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestEndBlock.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseEndBlock.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationListSnapshotsDesc={methodName:"ListSnapshots",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestListSnapshots.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseListSnapshots.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationOfferSnapshotDesc={methodName:"OfferSnapshot",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestOfferSnapshot.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseOfferSnapshot.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationLoadSnapshotChunkDesc={methodName:"LoadSnapshotChunk",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestLoadSnapshotChunk.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseLoadSnapshotChunk.decode(e)),{toObject:function(){return this}})}}},t.ABCIApplicationApplySnapshotChunkDesc={methodName:"ApplySnapshotChunk",service:t.ABCIApplicationDesc,requestStream:!1,responseStream:!1,requestType:{serializeBinary:function(){return t.RequestApplySnapshotChunk.encode(this).finish()}},responseType:{deserializeBinary:function(e){return Object.assign(Object.assign({},t.ResponseApplySnapshotChunk.decode(e)),{toObject:function(){return this}})}}};var ge=function(){function e(t,n){r(this,e),this.host=t,this.options=n}return a(e,[{key:"unary",value:function(e,t,n){var r,a=this,i=Object.assign(Object.assign({},t),e.requestType),o=n&&this.options.metadata?new v.BrowserHeaders(Object.assign(Object.assign({},null===(r=this.options)||void 0===r?void 0:r.metadata.headersMap),null==n?void 0:n.headersMap)):n||this.options.metadata;return new Promise((function(t,n){l.grpc.unary(e,{request:i,host:a.host,metadata:o,transport:a.options.transport,debug:a.options.debug,onEnd:function(e){if(e.status===l.grpc.Code.OK)t(e.message);else{var r=new Error(e.statusMessage);r.code=e.status,r.metadata=e.trailers,n(r)}}})}))}}]),e}();t.GrpcWebImpl=ge;var Ae=function(){if(void 0!==Ae)return Ae;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),we=Ae.atob||function(e){return Ae.Buffer.from(e,"base64").toString("binary")};function xe(e){for(var t=we(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.ed25519&&t.uint32(10).bytes(e.ed25519),void 0!==e.secp256k1&&t.uint32(18).bytes(e.secp256k1),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.ed25519=n.bytes();break;case 2:a.secp256k1=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.ed25519&&null!==e.ed25519&&(t.ed25519=d(e.ed25519)),void 0!==e.secp256k1&&null!==e.secp256k1&&(t.secp256k1=d(e.secp256k1)),t},toJSON:function(e){var t={};return void 0!==e.ed25519&&(t.ed25519=void 0!==e.ed25519?l(e.ed25519):void 0),void 0!==e.secp256k1&&(t.secp256k1=void 0!==e.secp256k1?l(e.secp256k1):void 0),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.ed25519&&null!==e.ed25519?t.ed25519=e.ed25519:t.ed25519=void 0,void 0!==e.secp256k1&&null!==e.secp256k1?t.secp256k1=e.secp256k1:t.secp256k1=void 0,t}};var c=function(){if(void 0!==c)return c;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),u=c.atob||function(e){return c.Buffer.from(e,"base64").toString("binary")};function d(e){for(var t=u(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();e.total.isZero()||t.uint32(8).int64(e.total),e.index.isZero()||t.uint32(16).int64(e.index),0!==e.leafHash.length&&t.uint32(26).bytes(e.leafHash);var n,a=r(e.aunts);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(34).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);for(a.aunts=[],a.leafHash=new Uint8Array;n.pos>>3){case 1:a.total=n.int64();break;case 2:a.index=n.int64();break;case 3:a.leafHash=n.bytes();break;case 4:a.aunts.push(n.bytes());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},s);if(t.aunts=[],t.leafHash=new Uint8Array,void 0!==e.total&&null!==e.total?t.total=i.default.fromString(e.total):t.total=i.default.ZERO,void 0!==e.index&&null!==e.index?t.index=i.default.fromString(e.index):t.index=i.default.ZERO,void 0!==e.leafHash&&null!==e.leafHash&&(t.leafHash=p(e.leafHash)),void 0!==e.aunts&&null!==e.aunts){var n,a=r(e.aunts);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.aunts.push(p(o))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return void 0!==e.total&&(t.total=(e.total||i.default.ZERO).toString()),void 0!==e.index&&(t.index=(e.index||i.default.ZERO).toString()),void 0!==e.leafHash&&(t.leafHash=y(void 0!==e.leafHash?e.leafHash:new Uint8Array)),e.aunts?t.aunts=e.aunts.map((function(e){return y(void 0!==e?e:new Uint8Array)})):t.aunts=[],t},fromPartial:function(e){var t=Object.assign({},s);if(t.aunts=[],void 0!==e.total&&null!==e.total?t.total=e.total:t.total=i.default.ZERO,void 0!==e.index&&null!==e.index?t.index=e.index:t.index=i.default.ZERO,void 0!==e.leafHash&&null!==e.leafHash?t.leafHash=e.leafHash:t.leafHash=new Uint8Array,void 0!==e.aunts&&null!==e.aunts){var n,a=r(e.aunts);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.aunts.push(o)}}catch(e){a.e(e)}finally{a.f()}}return t}};var c={};t.ValueOp={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.key.length&&n.uint32(10).bytes(e.key),void 0!==e.proof&&t.Proof.encode(e.proof,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);for(i.key=new Uint8Array;r.pos>>3){case 1:i.key=r.bytes();break;case 2:i.proof=t.Proof.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);return n.key=new Uint8Array,void 0!==e.key&&null!==e.key&&(n.key=p(e.key)),void 0!==e.proof&&null!==e.proof?n.proof=t.Proof.fromJSON(e.proof):n.proof=void 0,n},toJSON:function(e){var n={};return void 0!==e.key&&(n.key=y(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.proof&&(n.proof=e.proof?t.Proof.toJSON(e.proof):void 0),n},fromPartial:function(e){var n=Object.assign({},c);return void 0!==e.key&&null!==e.key?n.key=e.key:n.key=new Uint8Array,void 0!==e.proof&&null!==e.proof?n.proof=t.Proof.fromPartial(e.proof):n.proof=void 0,n}};var u={key:"",input:"",output:""};t.DominoOp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.key&&t.uint32(10).string(e.key),""!==e.input&&t.uint32(18).string(e.input),""!==e.output&&t.uint32(26).string(e.output),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.key=n.string();break;case 2:a.input=n.string();break;case 3:a.output=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.key&&null!==e.key?t.key=String(e.key):t.key="",void 0!==e.input&&null!==e.input?t.input=String(e.input):t.input="",void 0!==e.output&&null!==e.output?t.output=String(e.output):t.output="",t},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=e.key),void 0!==e.input&&(t.input=e.input),void 0!==e.output&&(t.output=e.output),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.key&&null!==e.key?t.key=e.key:t.key="",void 0!==e.input&&null!==e.input?t.input=e.input:t.input="",void 0!==e.output&&null!==e.output?t.output=e.output:t.output="",t}};var d={type:""};t.ProofOp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return""!==e.type&&t.uint32(10).string(e.type),0!==e.key.length&&t.uint32(18).bytes(e.key),0!==e.data.length&&t.uint32(26).bytes(e.data),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);for(a.key=new Uint8Array,a.data=new Uint8Array;n.pos>>3){case 1:a.type=n.string();break;case 2:a.key=n.bytes();break;case 3:a.data=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return t.key=new Uint8Array,t.data=new Uint8Array,void 0!==e.type&&null!==e.type?t.type=String(e.type):t.type="",void 0!==e.key&&null!==e.key&&(t.key=p(e.key)),void 0!==e.data&&null!==e.data&&(t.data=p(e.data)),t},toJSON:function(e){var t={};return void 0!==e.type&&(t.type=e.type),void 0!==e.key&&(t.key=y(void 0!==e.key?e.key:new Uint8Array)),void 0!==e.data&&(t.data=y(void 0!==e.data?e.data:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.type&&null!==e.type?t.type=e.type:t.type="",void 0!==e.key&&null!==e.key?t.key=e.key:t.key=new Uint8Array,void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,t}};var f={};t.ProofOps={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.ops);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.ProofOp.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},f);for(i.ops=[];r.pos>>3==1?i.ops.push(t.ProofOp.decode(r,r.uint32())):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},f);if(n.ops=[],void 0!==e.ops&&null!==e.ops){var a,i=r(e.ops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.ops.push(t.ProofOp.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.ops?n.ops=e.ops.map((function(e){return e?t.ProofOp.toJSON(e):void 0})):n.ops=[],n},fromPartial:function(e){var n=Object.assign({},f);if(n.ops=[],void 0!==e.ops&&null!==e.ops){var a,i=r(e.ops);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.ops.push(t.ProofOp.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var l=function(){if(void 0!==l)return l;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),b=l.atob||function(e){return l.Buffer.from(e,"base64").toString("binary")};function p(e){for(var t=b(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return void 0!==e.header&&o.Header.encode(e.header,t.uint32(10).fork()).ldelim(),void 0!==e.data&&o.Data.encode(e.data,t.uint32(18).fork()).ldelim(),void 0!==e.evidence&&s.EvidenceList.encode(e.evidence,t.uint32(26).fork()).ldelim(),void 0!==e.lastCommit&&o.Commit.encode(e.lastCommit,t.uint32(34).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},c);n.pos>>3){case 1:a.header=o.Header.decode(n,n.uint32());break;case 2:a.data=o.Data.decode(n,n.uint32());break;case 3:a.evidence=s.EvidenceList.decode(n,n.uint32());break;case 4:a.lastCommit=o.Commit.decode(n,n.uint32());break;default:n.skipType(7&u)}}return a},fromJSON:function(e){var t=Object.assign({},c);return void 0!==e.header&&null!==e.header?t.header=o.Header.fromJSON(e.header):t.header=void 0,void 0!==e.data&&null!==e.data?t.data=o.Data.fromJSON(e.data):t.data=void 0,void 0!==e.evidence&&null!==e.evidence?t.evidence=s.EvidenceList.fromJSON(e.evidence):t.evidence=void 0,void 0!==e.lastCommit&&null!==e.lastCommit?t.lastCommit=o.Commit.fromJSON(e.lastCommit):t.lastCommit=void 0,t},toJSON:function(e){var t={};return void 0!==e.header&&(t.header=e.header?o.Header.toJSON(e.header):void 0),void 0!==e.data&&(t.data=e.data?o.Data.toJSON(e.data):void 0),void 0!==e.evidence&&(t.evidence=e.evidence?s.EvidenceList.toJSON(e.evidence):void 0),void 0!==e.lastCommit&&(t.lastCommit=e.lastCommit?o.Commit.toJSON(e.lastCommit):void 0),t},fromPartial:function(e){var t=Object.assign({},c);return void 0!==e.header&&null!==e.header?t.header=o.Header.fromPartial(e.header):t.header=void 0,void 0!==e.data&&null!==e.data?t.data=o.Data.fromPartial(e.data):t.data=void 0,void 0!==e.evidence&&null!==e.evidence?t.evidence=s.EvidenceList.fromPartial(e.evidence):t.evidence=void 0,void 0!==e.lastCommit&&null!==e.lastCommit?t.lastCommit=o.Commit.fromPartial(e.lastCommit):t.lastCommit=void 0,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},26118:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EvidenceList=t.LightClientAttackEvidence=t.DuplicateVoteEvidence=t.Evidence=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(1)),s=n(49203),c=n(37814),u=n(52599);t.protobufPackage="tendermint.types";var d={};t.Evidence={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.duplicateVoteEvidence&&t.DuplicateVoteEvidence.encode(e.duplicateVoteEvidence,n.uint32(10).fork()).ldelim(),void 0!==e.lightClientAttackEvidence&&t.LightClientAttackEvidence.encode(e.lightClientAttackEvidence,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},d);r.pos>>3){case 1:i.duplicateVoteEvidence=t.DuplicateVoteEvidence.decode(r,r.uint32());break;case 2:i.lightClientAttackEvidence=t.LightClientAttackEvidence.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},d);return void 0!==e.duplicateVoteEvidence&&null!==e.duplicateVoteEvidence?n.duplicateVoteEvidence=t.DuplicateVoteEvidence.fromJSON(e.duplicateVoteEvidence):n.duplicateVoteEvidence=void 0,void 0!==e.lightClientAttackEvidence&&null!==e.lightClientAttackEvidence?n.lightClientAttackEvidence=t.LightClientAttackEvidence.fromJSON(e.lightClientAttackEvidence):n.lightClientAttackEvidence=void 0,n},toJSON:function(e){var n={};return void 0!==e.duplicateVoteEvidence&&(n.duplicateVoteEvidence=e.duplicateVoteEvidence?t.DuplicateVoteEvidence.toJSON(e.duplicateVoteEvidence):void 0),void 0!==e.lightClientAttackEvidence&&(n.lightClientAttackEvidence=e.lightClientAttackEvidence?t.LightClientAttackEvidence.toJSON(e.lightClientAttackEvidence):void 0),n},fromPartial:function(e){var n=Object.assign({},d);return void 0!==e.duplicateVoteEvidence&&null!==e.duplicateVoteEvidence?n.duplicateVoteEvidence=t.DuplicateVoteEvidence.fromPartial(e.duplicateVoteEvidence):n.duplicateVoteEvidence=void 0,void 0!==e.lightClientAttackEvidence&&null!==e.lightClientAttackEvidence?n.lightClientAttackEvidence=t.LightClientAttackEvidence.fromPartial(e.lightClientAttackEvidence):n.lightClientAttackEvidence=void 0,n}};var f={totalVotingPower:i.default.ZERO,validatorPower:i.default.ZERO};t.DuplicateVoteEvidence={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.voteA&&s.Vote.encode(e.voteA,t.uint32(10).fork()).ldelim(),void 0!==e.voteB&&s.Vote.encode(e.voteB,t.uint32(18).fork()).ldelim(),e.totalVotingPower.isZero()||t.uint32(24).int64(e.totalVotingPower),e.validatorPower.isZero()||t.uint32(32).int64(e.validatorPower),void 0!==e.timestamp&&c.Timestamp.encode(p(e.timestamp),t.uint32(42).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);n.pos>>3){case 1:a.voteA=s.Vote.decode(n,n.uint32());break;case 2:a.voteB=s.Vote.decode(n,n.uint32());break;case 3:a.totalVotingPower=n.int64();break;case 4:a.validatorPower=n.int64();break;case 5:a.timestamp=h(c.Timestamp.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},f);return void 0!==e.voteA&&null!==e.voteA?t.voteA=s.Vote.fromJSON(e.voteA):t.voteA=void 0,void 0!==e.voteB&&null!==e.voteB?t.voteB=s.Vote.fromJSON(e.voteB):t.voteB=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?t.totalVotingPower=i.default.fromString(e.totalVotingPower):t.totalVotingPower=i.default.ZERO,void 0!==e.validatorPower&&null!==e.validatorPower?t.validatorPower=i.default.fromString(e.validatorPower):t.validatorPower=i.default.ZERO,void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=y(e.timestamp):t.timestamp=void 0,t},toJSON:function(e){var t={};return void 0!==e.voteA&&(t.voteA=e.voteA?s.Vote.toJSON(e.voteA):void 0),void 0!==e.voteB&&(t.voteB=e.voteB?s.Vote.toJSON(e.voteB):void 0),void 0!==e.totalVotingPower&&(t.totalVotingPower=(e.totalVotingPower||i.default.ZERO).toString()),void 0!==e.validatorPower&&(t.validatorPower=(e.validatorPower||i.default.ZERO).toString()),void 0!==e.timestamp&&(t.timestamp=e.timestamp.toISOString()),t},fromPartial:function(e){var t=Object.assign({},f);return void 0!==e.voteA&&null!==e.voteA?t.voteA=s.Vote.fromPartial(e.voteA):t.voteA=void 0,void 0!==e.voteB&&null!==e.voteB?t.voteB=s.Vote.fromPartial(e.voteB):t.voteB=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?t.totalVotingPower=e.totalVotingPower:t.totalVotingPower=i.default.ZERO,void 0!==e.validatorPower&&null!==e.validatorPower?t.validatorPower=e.validatorPower:t.validatorPower=i.default.ZERO,void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=e.timestamp:t.timestamp=void 0,t}};var l={commonHeight:i.default.ZERO,totalVotingPower:i.default.ZERO};t.LightClientAttackEvidence={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();void 0!==e.conflictingBlock&&s.LightBlock.encode(e.conflictingBlock,t.uint32(10).fork()).ldelim(),e.commonHeight.isZero()||t.uint32(16).int64(e.commonHeight);var n,a=r(e.byzantineValidators);try{for(a.s();!(n=a.n()).done;){var i=n.value;u.Validator.encode(i,t.uint32(26).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return e.totalVotingPower.isZero()||t.uint32(32).int64(e.totalVotingPower),void 0!==e.timestamp&&c.Timestamp.encode(p(e.timestamp),t.uint32(42).fork()).ldelim(),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);for(a.byzantineValidators=[];n.pos>>3){case 1:a.conflictingBlock=s.LightBlock.decode(n,n.uint32());break;case 2:a.commonHeight=n.int64();break;case 3:a.byzantineValidators.push(u.Validator.decode(n,n.uint32()));break;case 4:a.totalVotingPower=n.int64();break;case 5:a.timestamp=h(c.Timestamp.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},l);if(t.byzantineValidators=[],void 0!==e.conflictingBlock&&null!==e.conflictingBlock?t.conflictingBlock=s.LightBlock.fromJSON(e.conflictingBlock):t.conflictingBlock=void 0,void 0!==e.commonHeight&&null!==e.commonHeight?t.commonHeight=i.default.fromString(e.commonHeight):t.commonHeight=i.default.ZERO,void 0!==e.byzantineValidators&&null!==e.byzantineValidators){var n,a=r(e.byzantineValidators);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.byzantineValidators.push(u.Validator.fromJSON(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.totalVotingPower&&null!==e.totalVotingPower?t.totalVotingPower=i.default.fromString(e.totalVotingPower):t.totalVotingPower=i.default.ZERO,void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=y(e.timestamp):t.timestamp=void 0,t},toJSON:function(e){var t={};return void 0!==e.conflictingBlock&&(t.conflictingBlock=e.conflictingBlock?s.LightBlock.toJSON(e.conflictingBlock):void 0),void 0!==e.commonHeight&&(t.commonHeight=(e.commonHeight||i.default.ZERO).toString()),e.byzantineValidators?t.byzantineValidators=e.byzantineValidators.map((function(e){return e?u.Validator.toJSON(e):void 0})):t.byzantineValidators=[],void 0!==e.totalVotingPower&&(t.totalVotingPower=(e.totalVotingPower||i.default.ZERO).toString()),void 0!==e.timestamp&&(t.timestamp=e.timestamp.toISOString()),t},fromPartial:function(e){var t=Object.assign({},l);if(t.byzantineValidators=[],void 0!==e.conflictingBlock&&null!==e.conflictingBlock?t.conflictingBlock=s.LightBlock.fromPartial(e.conflictingBlock):t.conflictingBlock=void 0,void 0!==e.commonHeight&&null!==e.commonHeight?t.commonHeight=e.commonHeight:t.commonHeight=i.default.ZERO,void 0!==e.byzantineValidators&&null!==e.byzantineValidators){var n,a=r(e.byzantineValidators);try{for(a.s();!(n=a.n()).done;){var o=n.value;t.byzantineValidators.push(u.Validator.fromPartial(o))}}catch(e){a.e(e)}finally{a.f()}}return void 0!==e.totalVotingPower&&null!==e.totalVotingPower?t.totalVotingPower=e.totalVotingPower:t.totalVotingPower=i.default.ZERO,void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=e.timestamp:t.timestamp=void 0,t}};var b={};function p(e){var t;return{seconds:(t=e.getTime()/1e3,i.default.fromNumber(t)),nanos:e.getTime()%1e3*1e6}}function h(e){var t=1e3*e.seconds.toNumber();return t+=e.nanos/1e6,new Date(t)}function y(e){return e instanceof Date?e:"string"==typeof e?new Date(e):h(c.Timestamp.fromJSON(e))}t.EvidenceList={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.evidence);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.Evidence.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},b);for(i.evidence=[];r.pos>>3==1?i.evidence.push(t.Evidence.decode(r,r.uint32())):r.skipType(7&s)}return i},fromJSON:function(e){var n=Object.assign({},b);if(n.evidence=[],void 0!==e.evidence&&null!==e.evidence){var a,i=r(e.evidence);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.evidence.push(t.Evidence.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return e.evidence?n.evidence=e.evidence.map((function(e){return e?t.Evidence.toJSON(e):void 0})):n.evidence=[],n},fromPartial:function(e){var n=Object.assign({},b);if(n.evidence=[],void 0!==e.evidence&&null!==e.evidence){var a,i=r(e.evidence);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.evidence.push(t.Evidence.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},48458:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HashedParams=t.VersionParams=t.ValidatorParams=t.EvidenceParams=t.BlockParams=t.ConsensusParams=t.protobufPackage=void 0;var i=a(n(24141)),o=a(n(1)),s=n(16385);t.protobufPackage="tendermint.types";var c={};t.ConsensusParams={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.block&&t.BlockParams.encode(e.block,n.uint32(10).fork()).ldelim(),void 0!==e.evidence&&t.EvidenceParams.encode(e.evidence,n.uint32(18).fork()).ldelim(),void 0!==e.validator&&t.ValidatorParams.encode(e.validator,n.uint32(26).fork()).ldelim(),void 0!==e.version&&t.VersionParams.encode(e.version,n.uint32(34).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);r.pos>>3){case 1:i.block=t.BlockParams.decode(r,r.uint32());break;case 2:i.evidence=t.EvidenceParams.decode(r,r.uint32());break;case 3:i.validator=t.ValidatorParams.decode(r,r.uint32());break;case 4:i.version=t.VersionParams.decode(r,r.uint32());break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromJSON(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=t.EvidenceParams.fromJSON(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=t.ValidatorParams.fromJSON(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=t.VersionParams.fromJSON(e.version):n.version=void 0,n},toJSON:function(e){var n={};return void 0!==e.block&&(n.block=e.block?t.BlockParams.toJSON(e.block):void 0),void 0!==e.evidence&&(n.evidence=e.evidence?t.EvidenceParams.toJSON(e.evidence):void 0),void 0!==e.validator&&(n.validator=e.validator?t.ValidatorParams.toJSON(e.validator):void 0),void 0!==e.version&&(n.version=e.version?t.VersionParams.toJSON(e.version):void 0),n},fromPartial:function(e){var n=Object.assign({},c);return void 0!==e.block&&null!==e.block?n.block=t.BlockParams.fromPartial(e.block):n.block=void 0,void 0!==e.evidence&&null!==e.evidence?n.evidence=t.EvidenceParams.fromPartial(e.evidence):n.evidence=void 0,void 0!==e.validator&&null!==e.validator?n.validator=t.ValidatorParams.fromPartial(e.validator):n.validator=void 0,void 0!==e.version&&null!==e.version?n.version=t.VersionParams.fromPartial(e.version):n.version=void 0,n}};var u={maxBytes:i.default.ZERO,maxGas:i.default.ZERO,timeIotaMs:i.default.ZERO};t.BlockParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.maxBytes.isZero()||t.uint32(8).int64(e.maxBytes),e.maxGas.isZero()||t.uint32(16).int64(e.maxGas),e.timeIotaMs.isZero()||t.uint32(24).int64(e.timeIotaMs),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);n.pos>>3){case 1:a.maxBytes=n.int64();break;case 2:a.maxGas=n.int64();break;case 3:a.timeIotaMs=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=i.default.fromString(e.maxBytes):t.maxBytes=i.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=i.default.fromString(e.maxGas):t.maxGas=i.default.ZERO,void 0!==e.timeIotaMs&&null!==e.timeIotaMs?t.timeIotaMs=i.default.fromString(e.timeIotaMs):t.timeIotaMs=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.maxBytes&&(t.maxBytes=(e.maxBytes||i.default.ZERO).toString()),void 0!==e.maxGas&&(t.maxGas=(e.maxGas||i.default.ZERO).toString()),void 0!==e.timeIotaMs&&(t.timeIotaMs=(e.timeIotaMs||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},u);return void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=e.maxBytes:t.maxBytes=i.default.ZERO,void 0!==e.maxGas&&null!==e.maxGas?t.maxGas=e.maxGas:t.maxGas=i.default.ZERO,void 0!==e.timeIotaMs&&null!==e.timeIotaMs?t.timeIotaMs=e.timeIotaMs:t.timeIotaMs=i.default.ZERO,t}};var d={maxAgeNumBlocks:i.default.ZERO,maxBytes:i.default.ZERO};t.EvidenceParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.maxAgeNumBlocks.isZero()||t.uint32(8).int64(e.maxAgeNumBlocks),void 0!==e.maxAgeDuration&&s.Duration.encode(e.maxAgeDuration,t.uint32(18).fork()).ldelim(),e.maxBytes.isZero()||t.uint32(24).int64(e.maxBytes),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.maxAgeNumBlocks=n.int64();break;case 2:a.maxAgeDuration=s.Duration.decode(n,n.uint32());break;case 3:a.maxBytes=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.maxAgeNumBlocks&&null!==e.maxAgeNumBlocks?t.maxAgeNumBlocks=i.default.fromString(e.maxAgeNumBlocks):t.maxAgeNumBlocks=i.default.ZERO,void 0!==e.maxAgeDuration&&null!==e.maxAgeDuration?t.maxAgeDuration=s.Duration.fromJSON(e.maxAgeDuration):t.maxAgeDuration=void 0,void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=i.default.fromString(e.maxBytes):t.maxBytes=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.maxAgeNumBlocks&&(t.maxAgeNumBlocks=(e.maxAgeNumBlocks||i.default.ZERO).toString()),void 0!==e.maxAgeDuration&&(t.maxAgeDuration=e.maxAgeDuration?s.Duration.toJSON(e.maxAgeDuration):void 0),void 0!==e.maxBytes&&(t.maxBytes=(e.maxBytes||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.maxAgeNumBlocks&&null!==e.maxAgeNumBlocks?t.maxAgeNumBlocks=e.maxAgeNumBlocks:t.maxAgeNumBlocks=i.default.ZERO,void 0!==e.maxAgeDuration&&null!==e.maxAgeDuration?t.maxAgeDuration=s.Duration.fromPartial(e.maxAgeDuration):t.maxAgeDuration=void 0,void 0!==e.maxBytes&&null!==e.maxBytes?t.maxBytes=e.maxBytes:t.maxBytes=i.default.ZERO,t}};var f={pubKeyTypes:""};t.ValidatorParams={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),a=r(e.pubKeyTypes);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},f);for(a.pubKeyTypes=[];n.pos>>3==1?a.pubKeyTypes.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},f);if(t.pubKeyTypes=[],void 0!==e.pubKeyTypes&&null!==e.pubKeyTypes){var n,a=r(e.pubKeyTypes);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.pubKeyTypes.push(String(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.pubKeyTypes?t.pubKeyTypes=e.pubKeyTypes.map((function(e){return e})):t.pubKeyTypes=[],t},fromPartial:function(e){var t=Object.assign({},f);if(t.pubKeyTypes=[],void 0!==e.pubKeyTypes&&null!==e.pubKeyTypes){var n,a=r(e.pubKeyTypes);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.pubKeyTypes.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var l={appVersion:i.default.UZERO};t.VersionParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.appVersion.isZero()||t.uint32(8).uint64(e.appVersion),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},l);n.pos>>3==1?a.appVersion=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},l);return void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=i.default.fromString(e.appVersion):t.appVersion=i.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.appVersion&&(t.appVersion=(e.appVersion||i.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},l);return void 0!==e.appVersion&&null!==e.appVersion?t.appVersion=e.appVersion:t.appVersion=i.default.UZERO,t}};var b={blockMaxBytes:i.default.ZERO,blockMaxGas:i.default.ZERO};t.HashedParams={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return e.blockMaxBytes.isZero()||t.uint32(8).int64(e.blockMaxBytes),e.blockMaxGas.isZero()||t.uint32(16).int64(e.blockMaxGas),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},b);n.pos>>3){case 1:a.blockMaxBytes=n.int64();break;case 2:a.blockMaxGas=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},b);return void 0!==e.blockMaxBytes&&null!==e.blockMaxBytes?t.blockMaxBytes=i.default.fromString(e.blockMaxBytes):t.blockMaxBytes=i.default.ZERO,void 0!==e.blockMaxGas&&null!==e.blockMaxGas?t.blockMaxGas=i.default.fromString(e.blockMaxGas):t.blockMaxGas=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.blockMaxBytes&&(t.blockMaxBytes=(e.blockMaxBytes||i.default.ZERO).toString()),void 0!==e.blockMaxGas&&(t.blockMaxGas=(e.blockMaxGas||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},b);return void 0!==e.blockMaxBytes&&null!==e.blockMaxBytes?t.blockMaxBytes=e.blockMaxBytes:t.blockMaxBytes=i.default.ZERO,void 0!==e.blockMaxGas&&null!==e.blockMaxGas?t.blockMaxGas=e.blockMaxGas:t.blockMaxGas=i.default.ZERO,t}},o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},49203:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TxProof=t.BlockMeta=t.LightBlock=t.SignedHeader=t.Proposal=t.CommitSig=t.Commit=t.Vote=t.Data=t.Header=t.BlockID=t.Part=t.PartSetHeader=t.signedMsgTypeToJSON=t.signedMsgTypeFromJSON=t.SignedMsgType=t.blockIDFlagToJSON=t.blockIDFlagFromJSON=t.BlockIDFlag=t.protobufPackage=void 0;var i,o,s=a(n(24141)),c=a(n(1)),u=n(54195),d=n(12362),f=n(52599),l=n(37814);function b(e){switch(e){case 0:case"BLOCK_ID_FLAG_UNKNOWN":return i.BLOCK_ID_FLAG_UNKNOWN;case 1:case"BLOCK_ID_FLAG_ABSENT":return i.BLOCK_ID_FLAG_ABSENT;case 2:case"BLOCK_ID_FLAG_COMMIT":return i.BLOCK_ID_FLAG_COMMIT;case 3:case"BLOCK_ID_FLAG_NIL":return i.BLOCK_ID_FLAG_NIL;default:return i.UNRECOGNIZED}}function p(e){switch(e){case i.BLOCK_ID_FLAG_UNKNOWN:return"BLOCK_ID_FLAG_UNKNOWN";case i.BLOCK_ID_FLAG_ABSENT:return"BLOCK_ID_FLAG_ABSENT";case i.BLOCK_ID_FLAG_COMMIT:return"BLOCK_ID_FLAG_COMMIT";case i.BLOCK_ID_FLAG_NIL:return"BLOCK_ID_FLAG_NIL";default:return"UNKNOWN"}}function h(e){switch(e){case 0:case"SIGNED_MSG_TYPE_UNKNOWN":return o.SIGNED_MSG_TYPE_UNKNOWN;case 1:case"SIGNED_MSG_TYPE_PREVOTE":return o.SIGNED_MSG_TYPE_PREVOTE;case 2:case"SIGNED_MSG_TYPE_PRECOMMIT":return o.SIGNED_MSG_TYPE_PRECOMMIT;case 32:case"SIGNED_MSG_TYPE_PROPOSAL":return o.SIGNED_MSG_TYPE_PROPOSAL;default:return o.UNRECOGNIZED}}function y(e){switch(e){case o.SIGNED_MSG_TYPE_UNKNOWN:return"SIGNED_MSG_TYPE_UNKNOWN";case o.SIGNED_MSG_TYPE_PREVOTE:return"SIGNED_MSG_TYPE_PREVOTE";case o.SIGNED_MSG_TYPE_PRECOMMIT:return"SIGNED_MSG_TYPE_PRECOMMIT";case o.SIGNED_MSG_TYPE_PROPOSAL:return"SIGNED_MSG_TYPE_PROPOSAL";default:return"UNKNOWN"}}t.protobufPackage="tendermint.types",function(e){e[e.BLOCK_ID_FLAG_UNKNOWN=0]="BLOCK_ID_FLAG_UNKNOWN",e[e.BLOCK_ID_FLAG_ABSENT=1]="BLOCK_ID_FLAG_ABSENT",e[e.BLOCK_ID_FLAG_COMMIT=2]="BLOCK_ID_FLAG_COMMIT",e[e.BLOCK_ID_FLAG_NIL=3]="BLOCK_ID_FLAG_NIL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(i=t.BlockIDFlag||(t.BlockIDFlag={})),t.blockIDFlagFromJSON=b,t.blockIDFlagToJSON=p,function(e){e[e.SIGNED_MSG_TYPE_UNKNOWN=0]="SIGNED_MSG_TYPE_UNKNOWN",e[e.SIGNED_MSG_TYPE_PREVOTE=1]="SIGNED_MSG_TYPE_PREVOTE",e[e.SIGNED_MSG_TYPE_PRECOMMIT=2]="SIGNED_MSG_TYPE_PRECOMMIT",e[e.SIGNED_MSG_TYPE_PROPOSAL=32]="SIGNED_MSG_TYPE_PROPOSAL",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(o=t.SignedMsgType||(t.SignedMsgType={})),t.signedMsgTypeFromJSON=h,t.signedMsgTypeToJSON=y;var m={total:0};t.PartSetHeader={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.total&&t.uint32(8).uint32(e.total),0!==e.hash.length&&t.uint32(18).bytes(e.hash),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},m);for(a.hash=new Uint8Array;n.pos>>3){case 1:a.total=n.uint32();break;case 2:a.hash=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},m);return t.hash=new Uint8Array,void 0!==e.total&&null!==e.total?t.total=Number(e.total):t.total=0,void 0!==e.hash&&null!==e.hash&&(t.hash=M(e.hash)),t},toJSON:function(e){var t={};return void 0!==e.total&&(t.total=e.total),void 0!==e.hash&&(t.hash=N(void 0!==e.hash?e.hash:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},m);return void 0!==e.total&&null!==e.total?t.total=e.total:t.total=0,void 0!==e.hash&&null!==e.hash?t.hash=e.hash:t.hash=new Uint8Array,t}};var v={index:0};t.Part={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.index&&t.uint32(8).uint32(e.index),0!==e.bytes.length&&t.uint32(18).bytes(e.bytes),void 0!==e.proof&&u.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},v);for(a.bytes=new Uint8Array;n.pos>>3){case 1:a.index=n.uint32();break;case 2:a.bytes=n.bytes();break;case 3:a.proof=u.Proof.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},v);return t.bytes=new Uint8Array,void 0!==e.index&&null!==e.index?t.index=Number(e.index):t.index=0,void 0!==e.bytes&&null!==e.bytes&&(t.bytes=M(e.bytes)),void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromJSON(e.proof):t.proof=void 0,t},toJSON:function(e){var t={};return void 0!==e.index&&(t.index=e.index),void 0!==e.bytes&&(t.bytes=N(void 0!==e.bytes?e.bytes:new Uint8Array)),void 0!==e.proof&&(t.proof=e.proof?u.Proof.toJSON(e.proof):void 0),t},fromPartial:function(e){var t=Object.assign({},v);return void 0!==e.index&&null!==e.index?t.index=e.index:t.index=0,void 0!==e.bytes&&null!==e.bytes?t.bytes=e.bytes:t.bytes=new Uint8Array,void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromPartial(e.proof):t.proof=void 0,t}};var g={};t.BlockID={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.hash.length&&n.uint32(10).bytes(e.hash),void 0!==e.partSetHeader&&t.PartSetHeader.encode(e.partSetHeader,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},g);for(i.hash=new Uint8Array;r.pos>>3){case 1:i.hash=r.bytes();break;case 2:i.partSetHeader=t.PartSetHeader.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},g);return n.hash=new Uint8Array,void 0!==e.hash&&null!==e.hash&&(n.hash=M(e.hash)),void 0!==e.partSetHeader&&null!==e.partSetHeader?n.partSetHeader=t.PartSetHeader.fromJSON(e.partSetHeader):n.partSetHeader=void 0,n},toJSON:function(e){var n={};return void 0!==e.hash&&(n.hash=N(void 0!==e.hash?e.hash:new Uint8Array)),void 0!==e.partSetHeader&&(n.partSetHeader=e.partSetHeader?t.PartSetHeader.toJSON(e.partSetHeader):void 0),n},fromPartial:function(e){var n=Object.assign({},g);return void 0!==e.hash&&null!==e.hash?n.hash=e.hash:n.hash=new Uint8Array,void 0!==e.partSetHeader&&null!==e.partSetHeader?n.partSetHeader=t.PartSetHeader.fromPartial(e.partSetHeader):n.partSetHeader=void 0,n}};var A={chainId:"",height:s.default.ZERO};t.Header={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.version&&d.Consensus.encode(e.version,n.uint32(10).fork()).ldelim(),""!==e.chainId&&n.uint32(18).string(e.chainId),e.height.isZero()||n.uint32(24).int64(e.height),void 0!==e.time&&l.Timestamp.encode(R(e.time),n.uint32(34).fork()).ldelim(),void 0!==e.lastBlockId&&t.BlockID.encode(e.lastBlockId,n.uint32(42).fork()).ldelim(),0!==e.lastCommitHash.length&&n.uint32(50).bytes(e.lastCommitHash),0!==e.dataHash.length&&n.uint32(58).bytes(e.dataHash),0!==e.validatorsHash.length&&n.uint32(66).bytes(e.validatorsHash),0!==e.nextValidatorsHash.length&&n.uint32(74).bytes(e.nextValidatorsHash),0!==e.consensusHash.length&&n.uint32(82).bytes(e.consensusHash),0!==e.appHash.length&&n.uint32(90).bytes(e.appHash),0!==e.lastResultsHash.length&&n.uint32(98).bytes(e.lastResultsHash),0!==e.evidenceHash.length&&n.uint32(106).bytes(e.evidenceHash),0!==e.proposerAddress.length&&n.uint32(114).bytes(e.proposerAddress),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},A);for(i.lastCommitHash=new Uint8Array,i.dataHash=new Uint8Array,i.validatorsHash=new Uint8Array,i.nextValidatorsHash=new Uint8Array,i.consensusHash=new Uint8Array,i.appHash=new Uint8Array,i.lastResultsHash=new Uint8Array,i.evidenceHash=new Uint8Array,i.proposerAddress=new Uint8Array;r.pos>>3){case 1:i.version=d.Consensus.decode(r,r.uint32());break;case 2:i.chainId=r.string();break;case 3:i.height=r.int64();break;case 4:i.time=D(l.Timestamp.decode(r,r.uint32()));break;case 5:i.lastBlockId=t.BlockID.decode(r,r.uint32());break;case 6:i.lastCommitHash=r.bytes();break;case 7:i.dataHash=r.bytes();break;case 8:i.validatorsHash=r.bytes();break;case 9:i.nextValidatorsHash=r.bytes();break;case 10:i.consensusHash=r.bytes();break;case 11:i.appHash=r.bytes();break;case 12:i.lastResultsHash=r.bytes();break;case 13:i.evidenceHash=r.bytes();break;case 14:i.proposerAddress=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},A);return n.lastCommitHash=new Uint8Array,n.dataHash=new Uint8Array,n.validatorsHash=new Uint8Array,n.nextValidatorsHash=new Uint8Array,n.consensusHash=new Uint8Array,n.appHash=new Uint8Array,n.lastResultsHash=new Uint8Array,n.evidenceHash=new Uint8Array,n.proposerAddress=new Uint8Array,void 0!==e.version&&null!==e.version?n.version=d.Consensus.fromJSON(e.version):n.version=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=String(e.chainId):n.chainId="",void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.time&&null!==e.time?n.time=j(e.time):n.time=void 0,void 0!==e.lastBlockId&&null!==e.lastBlockId?n.lastBlockId=t.BlockID.fromJSON(e.lastBlockId):n.lastBlockId=void 0,void 0!==e.lastCommitHash&&null!==e.lastCommitHash&&(n.lastCommitHash=M(e.lastCommitHash)),void 0!==e.dataHash&&null!==e.dataHash&&(n.dataHash=M(e.dataHash)),void 0!==e.validatorsHash&&null!==e.validatorsHash&&(n.validatorsHash=M(e.validatorsHash)),void 0!==e.nextValidatorsHash&&null!==e.nextValidatorsHash&&(n.nextValidatorsHash=M(e.nextValidatorsHash)),void 0!==e.consensusHash&&null!==e.consensusHash&&(n.consensusHash=M(e.consensusHash)),void 0!==e.appHash&&null!==e.appHash&&(n.appHash=M(e.appHash)),void 0!==e.lastResultsHash&&null!==e.lastResultsHash&&(n.lastResultsHash=M(e.lastResultsHash)),void 0!==e.evidenceHash&&null!==e.evidenceHash&&(n.evidenceHash=M(e.evidenceHash)),void 0!==e.proposerAddress&&null!==e.proposerAddress&&(n.proposerAddress=M(e.proposerAddress)),n},toJSON:function(e){var n={};return void 0!==e.version&&(n.version=e.version?d.Consensus.toJSON(e.version):void 0),void 0!==e.chainId&&(n.chainId=e.chainId),void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.time&&(n.time=e.time.toISOString()),void 0!==e.lastBlockId&&(n.lastBlockId=e.lastBlockId?t.BlockID.toJSON(e.lastBlockId):void 0),void 0!==e.lastCommitHash&&(n.lastCommitHash=N(void 0!==e.lastCommitHash?e.lastCommitHash:new Uint8Array)),void 0!==e.dataHash&&(n.dataHash=N(void 0!==e.dataHash?e.dataHash:new Uint8Array)),void 0!==e.validatorsHash&&(n.validatorsHash=N(void 0!==e.validatorsHash?e.validatorsHash:new Uint8Array)),void 0!==e.nextValidatorsHash&&(n.nextValidatorsHash=N(void 0!==e.nextValidatorsHash?e.nextValidatorsHash:new Uint8Array)),void 0!==e.consensusHash&&(n.consensusHash=N(void 0!==e.consensusHash?e.consensusHash:new Uint8Array)),void 0!==e.appHash&&(n.appHash=N(void 0!==e.appHash?e.appHash:new Uint8Array)),void 0!==e.lastResultsHash&&(n.lastResultsHash=N(void 0!==e.lastResultsHash?e.lastResultsHash:new Uint8Array)),void 0!==e.evidenceHash&&(n.evidenceHash=N(void 0!==e.evidenceHash?e.evidenceHash:new Uint8Array)),void 0!==e.proposerAddress&&(n.proposerAddress=N(void 0!==e.proposerAddress?e.proposerAddress:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},A);return void 0!==e.version&&null!==e.version?n.version=d.Consensus.fromPartial(e.version):n.version=void 0,void 0!==e.chainId&&null!==e.chainId?n.chainId=e.chainId:n.chainId="",void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.time&&null!==e.time?n.time=e.time:n.time=void 0,void 0!==e.lastBlockId&&null!==e.lastBlockId?n.lastBlockId=t.BlockID.fromPartial(e.lastBlockId):n.lastBlockId=void 0,void 0!==e.lastCommitHash&&null!==e.lastCommitHash?n.lastCommitHash=e.lastCommitHash:n.lastCommitHash=new Uint8Array,void 0!==e.dataHash&&null!==e.dataHash?n.dataHash=e.dataHash:n.dataHash=new Uint8Array,void 0!==e.validatorsHash&&null!==e.validatorsHash?n.validatorsHash=e.validatorsHash:n.validatorsHash=new Uint8Array,void 0!==e.nextValidatorsHash&&null!==e.nextValidatorsHash?n.nextValidatorsHash=e.nextValidatorsHash:n.nextValidatorsHash=new Uint8Array,void 0!==e.consensusHash&&null!==e.consensusHash?n.consensusHash=e.consensusHash:n.consensusHash=new Uint8Array,void 0!==e.appHash&&null!==e.appHash?n.appHash=e.appHash:n.appHash=new Uint8Array,void 0!==e.lastResultsHash&&null!==e.lastResultsHash?n.lastResultsHash=e.lastResultsHash:n.lastResultsHash=new Uint8Array,void 0!==e.evidenceHash&&null!==e.evidenceHash?n.evidenceHash=e.evidenceHash:n.evidenceHash=new Uint8Array,void 0!==e.proposerAddress&&null!==e.proposerAddress?n.proposerAddress=e.proposerAddress:n.proposerAddress=new Uint8Array,n}};var w={};t.Data={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create(),a=r(e.txs);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},w);for(a.txs=[];n.pos>>3==1?a.txs.push(n.bytes()):n.skipType(7&i)}return a},fromJSON:function(e){var t=Object.assign({},w);if(t.txs=[],void 0!==e.txs&&null!==e.txs){var n,a=r(e.txs);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.txs.push(M(i))}}catch(e){a.e(e)}finally{a.f()}}return t},toJSON:function(e){var t={};return e.txs?t.txs=e.txs.map((function(e){return N(void 0!==e?e:new Uint8Array)})):t.txs=[],t},fromPartial:function(e){var t=Object.assign({},w);if(t.txs=[],void 0!==e.txs&&null!==e.txs){var n,a=r(e.txs);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.txs.push(i)}}catch(e){a.e(e)}finally{a.f()}}return t}};var x={type:0,height:s.default.ZERO,round:0,validatorIndex:0};t.Vote={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.type&&n.uint32(8).int32(e.type),e.height.isZero()||n.uint32(16).int64(e.height),0!==e.round&&n.uint32(24).int32(e.round),void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(34).fork()).ldelim(),void 0!==e.timestamp&&l.Timestamp.encode(R(e.timestamp),n.uint32(42).fork()).ldelim(),0!==e.validatorAddress.length&&n.uint32(50).bytes(e.validatorAddress),0!==e.validatorIndex&&n.uint32(56).int32(e.validatorIndex),0!==e.signature.length&&n.uint32(66).bytes(e.signature),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},x);for(i.validatorAddress=new Uint8Array,i.signature=new Uint8Array;r.pos>>3){case 1:i.type=r.int32();break;case 2:i.height=r.int64();break;case 3:i.round=r.int32();break;case 4:i.blockId=t.BlockID.decode(r,r.uint32());break;case 5:i.timestamp=D(l.Timestamp.decode(r,r.uint32()));break;case 6:i.validatorAddress=r.bytes();break;case 7:i.validatorIndex=r.int32();break;case 8:i.signature=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},x);return n.validatorAddress=new Uint8Array,n.signature=new Uint8Array,void 0!==e.type&&null!==e.type?n.type=h(e.type):n.type=0,void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=j(e.timestamp):n.timestamp=void 0,void 0!==e.validatorAddress&&null!==e.validatorAddress&&(n.validatorAddress=M(e.validatorAddress)),void 0!==e.validatorIndex&&null!==e.validatorIndex?n.validatorIndex=Number(e.validatorIndex):n.validatorIndex=0,void 0!==e.signature&&null!==e.signature&&(n.signature=M(e.signature)),n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=y(e.type)),void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.round&&(n.round=e.round),void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.timestamp&&(n.timestamp=e.timestamp.toISOString()),void 0!==e.validatorAddress&&(n.validatorAddress=N(void 0!==e.validatorAddress?e.validatorAddress:new Uint8Array)),void 0!==e.validatorIndex&&(n.validatorIndex=e.validatorIndex),void 0!==e.signature&&(n.signature=N(void 0!==e.signature?e.signature:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},x);return void 0!==e.type&&null!==e.type?n.type=e.type:n.type=0,void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=e.timestamp:n.timestamp=void 0,void 0!==e.validatorAddress&&null!==e.validatorAddress?n.validatorAddress=e.validatorAddress:n.validatorAddress=new Uint8Array,void 0!==e.validatorIndex&&null!==e.validatorIndex?n.validatorIndex=e.validatorIndex:n.validatorIndex=0,void 0!==e.signature&&null!==e.signature?n.signature=e.signature:n.signature=new Uint8Array,n}};var _={height:s.default.ZERO,round:0};t.Commit={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();e.height.isZero()||n.uint32(8).int64(e.height),0!==e.round&&n.uint32(16).int32(e.round),void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(26).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.CommitSig.encode(o,n.uint32(34).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},_);for(i.signatures=[];r.pos>>3){case 1:i.height=r.int64();break;case 2:i.round=r.int32();break;case 3:i.blockId=t.BlockID.decode(r,r.uint32());break;case 4:i.signatures.push(t.CommitSig.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},_);if(n.signatures=[],void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.CommitSig.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return n},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.round&&(n.round=e.round),void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return e?t.CommitSig.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n=Object.assign({},_);if(n.signatures=[],void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.signatures&&null!==e.signatures){var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.signatures.push(t.CommitSig.fromPartial(o))}}catch(e){i.e(e)}finally{i.f()}}return n}};var k={blockIdFlag:0};t.CommitSig={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.blockIdFlag&&t.uint32(8).int32(e.blockIdFlag),0!==e.validatorAddress.length&&t.uint32(18).bytes(e.validatorAddress),void 0!==e.timestamp&&l.Timestamp.encode(R(e.timestamp),t.uint32(26).fork()).ldelim(),0!==e.signature.length&&t.uint32(34).bytes(e.signature),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},k);for(a.validatorAddress=new Uint8Array,a.signature=new Uint8Array;n.pos>>3){case 1:a.blockIdFlag=n.int32();break;case 2:a.validatorAddress=n.bytes();break;case 3:a.timestamp=D(l.Timestamp.decode(n,n.uint32()));break;case 4:a.signature=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},k);return t.validatorAddress=new Uint8Array,t.signature=new Uint8Array,void 0!==e.blockIdFlag&&null!==e.blockIdFlag?t.blockIdFlag=b(e.blockIdFlag):t.blockIdFlag=0,void 0!==e.validatorAddress&&null!==e.validatorAddress&&(t.validatorAddress=M(e.validatorAddress)),void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=j(e.timestamp):t.timestamp=void 0,void 0!==e.signature&&null!==e.signature&&(t.signature=M(e.signature)),t},toJSON:function(e){var t={};return void 0!==e.blockIdFlag&&(t.blockIdFlag=p(e.blockIdFlag)),void 0!==e.validatorAddress&&(t.validatorAddress=N(void 0!==e.validatorAddress?e.validatorAddress:new Uint8Array)),void 0!==e.timestamp&&(t.timestamp=e.timestamp.toISOString()),void 0!==e.signature&&(t.signature=N(void 0!==e.signature?e.signature:new Uint8Array)),t},fromPartial:function(e){var t=Object.assign({},k);return void 0!==e.blockIdFlag&&null!==e.blockIdFlag?t.blockIdFlag=e.blockIdFlag:t.blockIdFlag=0,void 0!==e.validatorAddress&&null!==e.validatorAddress?t.validatorAddress=e.validatorAddress:t.validatorAddress=new Uint8Array,void 0!==e.timestamp&&null!==e.timestamp?t.timestamp=e.timestamp:t.timestamp=void 0,void 0!==e.signature&&null!==e.signature?t.signature=e.signature:t.signature=new Uint8Array,t}};var I={type:0,height:s.default.ZERO,round:0,polRound:0};t.Proposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.type&&n.uint32(8).int32(e.type),e.height.isZero()||n.uint32(16).int64(e.height),0!==e.round&&n.uint32(24).int32(e.round),0!==e.polRound&&n.uint32(32).int32(e.polRound),void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(42).fork()).ldelim(),void 0!==e.timestamp&&l.Timestamp.encode(R(e.timestamp),n.uint32(50).fork()).ldelim(),0!==e.signature.length&&n.uint32(58).bytes(e.signature),n},decode:function(e,n){var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},I);for(i.signature=new Uint8Array;r.pos>>3){case 1:i.type=r.int32();break;case 2:i.height=r.int64();break;case 3:i.round=r.int32();break;case 4:i.polRound=r.int32();break;case 5:i.blockId=t.BlockID.decode(r,r.uint32());break;case 6:i.timestamp=D(l.Timestamp.decode(r,r.uint32()));break;case 7:i.signature=r.bytes();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},I);return n.signature=new Uint8Array,void 0!==e.type&&null!==e.type?n.type=h(e.type):n.type=0,void 0!==e.height&&null!==e.height?n.height=s.default.fromString(e.height):n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=Number(e.round):n.round=0,void 0!==e.polRound&&null!==e.polRound?n.polRound=Number(e.polRound):n.polRound=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=j(e.timestamp):n.timestamp=void 0,void 0!==e.signature&&null!==e.signature&&(n.signature=M(e.signature)),n},toJSON:function(e){var n={};return void 0!==e.type&&(n.type=y(e.type)),void 0!==e.height&&(n.height=(e.height||s.default.ZERO).toString()),void 0!==e.round&&(n.round=e.round),void 0!==e.polRound&&(n.polRound=e.polRound),void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.timestamp&&(n.timestamp=e.timestamp.toISOString()),void 0!==e.signature&&(n.signature=N(void 0!==e.signature?e.signature:new Uint8Array)),n},fromPartial:function(e){var n=Object.assign({},I);return void 0!==e.type&&null!==e.type?n.type=e.type:n.type=0,void 0!==e.height&&null!==e.height?n.height=e.height:n.height=s.default.ZERO,void 0!==e.round&&null!==e.round?n.round=e.round:n.round=0,void 0!==e.polRound&&null!==e.polRound?n.polRound=e.polRound:n.polRound=0,void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.timestamp&&null!==e.timestamp?n.timestamp=e.timestamp:n.timestamp=void 0,void 0!==e.signature&&null!==e.signature?n.signature=e.signature:n.signature=new Uint8Array,n}};var S={};t.SignedHeader={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.header&&t.Header.encode(e.header,n.uint32(10).fork()).ldelim(),void 0!==e.commit&&t.Commit.encode(e.commit,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},S);r.pos>>3){case 1:i.header=t.Header.decode(r,r.uint32());break;case 2:i.commit=t.Commit.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},S);return void 0!==e.header&&null!==e.header?n.header=t.Header.fromJSON(e.header):n.header=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.Commit.fromJSON(e.commit):n.commit=void 0,n},toJSON:function(e){var n={};return void 0!==e.header&&(n.header=e.header?t.Header.toJSON(e.header):void 0),void 0!==e.commit&&(n.commit=e.commit?t.Commit.toJSON(e.commit):void 0),n},fromPartial:function(e){var n=Object.assign({},S);return void 0!==e.header&&null!==e.header?n.header=t.Header.fromPartial(e.header):n.header=void 0,void 0!==e.commit&&null!==e.commit?n.commit=t.Commit.fromPartial(e.commit):n.commit=void 0,n}};var E={};t.LightBlock={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.signedHeader&&t.SignedHeader.encode(e.signedHeader,n.uint32(10).fork()).ldelim(),void 0!==e.validatorSet&&f.ValidatorSet.encode(e.validatorSet,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},E);r.pos>>3){case 1:i.signedHeader=t.SignedHeader.decode(r,r.uint32());break;case 2:i.validatorSet=f.ValidatorSet.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},E);return void 0!==e.signedHeader&&null!==e.signedHeader?n.signedHeader=t.SignedHeader.fromJSON(e.signedHeader):n.signedHeader=void 0,void 0!==e.validatorSet&&null!==e.validatorSet?n.validatorSet=f.ValidatorSet.fromJSON(e.validatorSet):n.validatorSet=void 0,n},toJSON:function(e){var n={};return void 0!==e.signedHeader&&(n.signedHeader=e.signedHeader?t.SignedHeader.toJSON(e.signedHeader):void 0),void 0!==e.validatorSet&&(n.validatorSet=e.validatorSet?f.ValidatorSet.toJSON(e.validatorSet):void 0),n},fromPartial:function(e){var n=Object.assign({},E);return void 0!==e.signedHeader&&null!==e.signedHeader?n.signedHeader=t.SignedHeader.fromPartial(e.signedHeader):n.signedHeader=void 0,void 0!==e.validatorSet&&null!==e.validatorSet?n.validatorSet=f.ValidatorSet.fromPartial(e.validatorSet):n.validatorSet=void 0,n}};var C={blockSize:s.default.ZERO,numTxs:s.default.ZERO};t.BlockMeta={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return void 0!==e.blockId&&t.BlockID.encode(e.blockId,n.uint32(10).fork()).ldelim(),e.blockSize.isZero()||n.uint32(16).int64(e.blockSize),void 0!==e.header&&t.Header.encode(e.header,n.uint32(26).fork()).ldelim(),e.numTxs.isZero()||n.uint32(32).int64(e.numTxs),n},decode:function(e,n){for(var r=e instanceof c.default.Reader?e:new c.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},C);r.pos>>3){case 1:i.blockId=t.BlockID.decode(r,r.uint32());break;case 2:i.blockSize=r.int64();break;case 3:i.header=t.Header.decode(r,r.uint32());break;case 4:i.numTxs=r.int64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){var n=Object.assign({},C);return void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromJSON(e.blockId):n.blockId=void 0,void 0!==e.blockSize&&null!==e.blockSize?n.blockSize=s.default.fromString(e.blockSize):n.blockSize=s.default.ZERO,void 0!==e.header&&null!==e.header?n.header=t.Header.fromJSON(e.header):n.header=void 0,void 0!==e.numTxs&&null!==e.numTxs?n.numTxs=s.default.fromString(e.numTxs):n.numTxs=s.default.ZERO,n},toJSON:function(e){var n={};return void 0!==e.blockId&&(n.blockId=e.blockId?t.BlockID.toJSON(e.blockId):void 0),void 0!==e.blockSize&&(n.blockSize=(e.blockSize||s.default.ZERO).toString()),void 0!==e.header&&(n.header=e.header?t.Header.toJSON(e.header):void 0),void 0!==e.numTxs&&(n.numTxs=(e.numTxs||s.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},C);return void 0!==e.blockId&&null!==e.blockId?n.blockId=t.BlockID.fromPartial(e.blockId):n.blockId=void 0,void 0!==e.blockSize&&null!==e.blockSize?n.blockSize=e.blockSize:n.blockSize=s.default.ZERO,void 0!==e.header&&null!==e.header?n.header=t.Header.fromPartial(e.header):n.header=void 0,void 0!==e.numTxs&&null!==e.numTxs?n.numTxs=e.numTxs:n.numTxs=s.default.ZERO,n}};var T={};t.TxProof={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.default.Writer.create();return 0!==e.rootHash.length&&t.uint32(10).bytes(e.rootHash),0!==e.data.length&&t.uint32(18).bytes(e.data),void 0!==e.proof&&u.Proof.encode(e.proof,t.uint32(26).fork()).ldelim(),t},decode:function(e,t){var n=e instanceof c.default.Reader?e:new c.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},T);for(a.rootHash=new Uint8Array,a.data=new Uint8Array;n.pos>>3){case 1:a.rootHash=n.bytes();break;case 2:a.data=n.bytes();break;case 3:a.proof=u.Proof.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},T);return t.rootHash=new Uint8Array,t.data=new Uint8Array,void 0!==e.rootHash&&null!==e.rootHash&&(t.rootHash=M(e.rootHash)),void 0!==e.data&&null!==e.data&&(t.data=M(e.data)),void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromJSON(e.proof):t.proof=void 0,t},toJSON:function(e){var t={};return void 0!==e.rootHash&&(t.rootHash=N(void 0!==e.rootHash?e.rootHash:new Uint8Array)),void 0!==e.data&&(t.data=N(void 0!==e.data?e.data:new Uint8Array)),void 0!==e.proof&&(t.proof=e.proof?u.Proof.toJSON(e.proof):void 0),t},fromPartial:function(e){var t=Object.assign({},T);return void 0!==e.rootHash&&null!==e.rootHash?t.rootHash=e.rootHash:t.rootHash=new Uint8Array,void 0!==e.data&&null!==e.data?t.data=e.data:t.data=new Uint8Array,void 0!==e.proof&&null!==e.proof?t.proof=u.Proof.fromPartial(e.proof):t.proof=void 0,t}};var O=function(){if(void 0!==O)return O;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),P=O.atob||function(e){return O.Buffer.from(e,"base64").toString("binary")};function M(e){for(var t=P(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create(),i=r(e.validators);try{for(i.s();!(n=i.n()).done;){var s=n.value;t.Validator.encode(s,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return void 0!==e.proposer&&t.Validator.encode(e.proposer,a.uint32(18).fork()).ldelim(),e.totalVotingPower.isZero()||a.uint32(24).int64(e.totalVotingPower),a},decode:function(e,n){var r=e instanceof o.default.Reader?e:new o.default.Reader(e),a=void 0===n?r.len:r.pos+n,i=Object.assign({},c);for(i.validators=[];r.pos>>3){case 1:i.validators.push(t.Validator.decode(r,r.uint32()));break;case 2:i.proposer=t.Validator.decode(r,r.uint32());break;case 3:i.totalVotingPower=r.int64();break;default:r.skipType(7&s)}}return i},fromJSON:function(e){var n=Object.assign({},c);if(n.validators=[],void 0!==e.validators&&null!==e.validators){var a,o=r(e.validators);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.validators.push(t.Validator.fromJSON(s))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.proposer&&null!==e.proposer?n.proposer=t.Validator.fromJSON(e.proposer):n.proposer=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=i.default.fromString(e.totalVotingPower):n.totalVotingPower=i.default.ZERO,n},toJSON:function(e){var n={};return e.validators?n.validators=e.validators.map((function(e){return e?t.Validator.toJSON(e):void 0})):n.validators=[],void 0!==e.proposer&&(n.proposer=e.proposer?t.Validator.toJSON(e.proposer):void 0),void 0!==e.totalVotingPower&&(n.totalVotingPower=(e.totalVotingPower||i.default.ZERO).toString()),n},fromPartial:function(e){var n=Object.assign({},c);if(n.validators=[],void 0!==e.validators&&null!==e.validators){var a,o=r(e.validators);try{for(o.s();!(a=o.n()).done;){var s=a.value;n.validators.push(t.Validator.fromPartial(s))}}catch(e){o.e(e)}finally{o.f()}}return void 0!==e.proposer&&null!==e.proposer?n.proposer=t.Validator.fromPartial(e.proposer):n.proposer=void 0,void 0!==e.totalVotingPower&&null!==e.totalVotingPower?n.totalVotingPower=e.totalVotingPower:n.totalVotingPower=i.default.ZERO,n}};var u={votingPower:i.default.ZERO,proposerPriority:i.default.ZERO};t.Validator={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return 0!==e.address.length&&t.uint32(10).bytes(e.address),void 0!==e.pubKey&&s.PublicKey.encode(e.pubKey,t.uint32(18).fork()).ldelim(),e.votingPower.isZero()||t.uint32(24).int64(e.votingPower),e.proposerPriority.isZero()||t.uint32(32).int64(e.proposerPriority),t},decode:function(e,t){var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},u);for(a.address=new Uint8Array;n.pos>>3){case 1:a.address=n.bytes();break;case 2:a.pubKey=s.PublicKey.decode(n,n.uint32());break;case 3:a.votingPower=n.int64();break;case 4:a.proposerPriority=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},u);return t.address=new Uint8Array,void 0!==e.address&&null!==e.address&&(t.address=function(e){for(var t=l(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.default.Writer.create();return void 0!==e.pubKey&&s.PublicKey.encode(e.pubKey,t.uint32(10).fork()).ldelim(),e.votingPower.isZero()||t.uint32(16).int64(e.votingPower),t},decode:function(e,t){for(var n=e instanceof o.default.Reader?e:new o.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},d);n.pos>>3){case 1:a.pubKey=s.PublicKey.decode(n,n.uint32());break;case 2:a.votingPower=n.int64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){var t=Object.assign({},d);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.PublicKey.fromJSON(e.pubKey):t.pubKey=void 0,void 0!==e.votingPower&&null!==e.votingPower?t.votingPower=i.default.fromString(e.votingPower):t.votingPower=i.default.ZERO,t},toJSON:function(e){var t={};return void 0!==e.pubKey&&(t.pubKey=e.pubKey?s.PublicKey.toJSON(e.pubKey):void 0),void 0!==e.votingPower&&(t.votingPower=(e.votingPower||i.default.ZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},d);return void 0!==e.pubKey&&null!==e.pubKey?t.pubKey=s.PublicKey.fromPartial(e.pubKey):t.pubKey=void 0,void 0!==e.votingPower&&null!==e.votingPower?t.votingPower=e.votingPower:t.votingPower=i.default.ZERO,t}};var f=function(){if(void 0!==f)return f;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),l=f.atob||function(e){return f.Buffer.from(e,"base64").toString("binary")},b=f.btoa||function(e){return f.Buffer.from(e,"binary").toString("base64")};o.default.util.Long!==i.default&&(o.default.util.Long=i.default,o.default.configure())},12362:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Consensus=t.App=t.protobufPackage=void 0;var a=r(n(24141)),i=r(n(1));t.protobufPackage="tendermint.version";var o={protocol:a.default.UZERO,software:""};t.App={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.protocol.isZero()||t.uint32(8).uint64(e.protocol),""!==e.software&&t.uint32(18).string(e.software),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},o);n.pos>>3){case 1:a.protocol=n.uint64();break;case 2:a.software=n.string();break;default:n.skipType(7&s)}}return a},fromJSON:function(e){var t=Object.assign({},o);return void 0!==e.protocol&&null!==e.protocol?t.protocol=a.default.fromString(e.protocol):t.protocol=a.default.UZERO,void 0!==e.software&&null!==e.software?t.software=String(e.software):t.software="",t},toJSON:function(e){var t={};return void 0!==e.protocol&&(t.protocol=(e.protocol||a.default.UZERO).toString()),void 0!==e.software&&(t.software=e.software),t},fromPartial:function(e){var t=Object.assign({},o);return void 0!==e.protocol&&null!==e.protocol?t.protocol=e.protocol:t.protocol=a.default.UZERO,void 0!==e.software&&null!==e.software?t.software=e.software:t.software="",t}};var s={block:a.default.UZERO,app:a.default.UZERO};t.Consensus={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default.Writer.create();return e.block.isZero()||t.uint32(8).uint64(e.block),e.app.isZero()||t.uint32(16).uint64(e.app),t},decode:function(e,t){for(var n=e instanceof i.default.Reader?e:new i.default.Reader(e),r=void 0===t?n.len:n.pos+t,a=Object.assign({},s);n.pos>>3){case 1:a.block=n.uint64();break;case 2:a.app=n.uint64();break;default:n.skipType(7&o)}}return a},fromJSON:function(e){var t=Object.assign({},s);return void 0!==e.block&&null!==e.block?t.block=a.default.fromString(e.block):t.block=a.default.UZERO,void 0!==e.app&&null!==e.app?t.app=a.default.fromString(e.app):t.app=a.default.UZERO,t},toJSON:function(e){var t={};return void 0!==e.block&&(t.block=(e.block||a.default.UZERO).toString()),void 0!==e.app&&(t.app=(e.app||a.default.UZERO).toString()),t},fromPartial:function(e){var t=Object.assign({},s);return void 0!==e.block&&null!==e.block?t.block=e.block:t.block=a.default.UZERO,void 0!==e.app&&null!==e.app?t.app=e.app:t.app=a.default.UZERO,t}},i.default.util.Long!==a.default&&(i.default.util.Long=a.default,i.default.configure())},94570:function(e,t,n){"use strict";n.r(t),n.d(t,{addHexPrefix:function(){return le},arrayToBinary:function(){return S},arrayToBuffer:function(){return x},arrayToHex:function(){return _},arrayToNumber:function(){return I},arrayToUtf8:function(){return k},binaryToArray:function(){return z},binaryToBuffer:function(){return H},binaryToHex:function(){return Q},binaryToNumber:function(){return V},binaryToUtf8:function(){return q},bufferToArray:function(){return m},bufferToBinary:function(){return w},bufferToHex:function(){return v},bufferToNumber:function(){return A},bufferToUtf8:function(){return g},calcByteLength:function(){return ae},concatArrays:function(){return te},concatBuffers:function(){return ee},getEncoding:function(){return $},getType:function(){return X},hexToArray:function(){return C},hexToBinary:function(){return P},hexToBuffer:function(){return E},hexToNumber:function(){return O},hexToUtf8:function(){return T},isArrayBuffer:function(){return Y},isBinaryString:function(){return J},isBuffer:function(){return G},isHexString:function(){return K},isTypedArray:function(){return W},numberToArray:function(){return U},numberToBinary:function(){return Z},numberToBuffer:function(){return j},numberToHex:function(){return L},numberToUtf8:function(){return F},padLeft:function(){return ue},padRight:function(){return de},removeHexLeadingZeros:function(){return pe},removeHexPrefix:function(){return fe},sanitizeBytes:function(){return ce},sanitizeHex:function(){return be},splitBytes:function(){return ie},swapBytes:function(){return oe},swapHex:function(){return se},trimLeft:function(){return ne},trimRight:function(){return re},utf8ToArray:function(){return B},utf8ToBinary:function(){return D},utf8ToBuffer:function(){return M},utf8ToHex:function(){return N},utf8ToNumber:function(){return R}});var r=n(87402),a=n(54341),i=n.n(a),o=n(75788),s=n.n(o),c=n(5886).Buffer,u="hex",d="utf8",f="binary",l="buffer",b="array",p="typed-array",h="array-buffer",y="0";function m(e){return new Uint8Array(e)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.toString(u);return t?le(n):n}function g(e){return e.toString(d)}function A(e){return e.readUIntBE(0,e.length)}function w(e){return S(m(e))}function x(e){return s()(e)}function _(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return v(x(e),t)}function k(e){return g(x(e))}function I(e){return A(x(e))}function S(e){return Array.from(e).map(Z).join("")}function E(e){return c.from(fe(e),u)}function C(e){return m(E(e))}function T(e){return g(E(e))}function O(e){return I(C(e))}function P(e){return S(C(e))}function M(e){return c.from(e,d)}function B(e){return m(M(e))}function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return v(M(e),t)}function R(e){var t=parseInt(e,10);return function(e,t){if(!e)throw new Error("Number can only safely store up to 53 bits")}(!(void 0===t)),t}function D(e){return S(B(e))}function j(e){return H(Z(e))}function U(e){return z(Z(e))}function L(e,t){return Q(Z(e),t)}function F(e){return"".concat(e)}function Z(e){return ce((e>>>0).toString(2))}function H(e){return x(z(e))}function z(e){return new Uint8Array(ie(e).map((function(e){return parseInt(e,2)})))}function Q(e,t){return _(z(e),t)}function q(e){return k(z(e))}function V(e){return I(z(e))}function J(e){return!("string"!=typeof e||!new RegExp(/^[01]+$/).test(e))&&e.length%8==0}function K(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}function G(e){return c.isBuffer(e)}function W(e){return i().strict(e)&&!G(e)}function Y(e){return!W(e)&&!G(e)&&void 0!==e.byteLength}function X(e){return G(e)?l:W(e)?p:Y(e)?h:Array.isArray(e)?b:typeof e}function $(e){return J(e)?f:K(e)?u:d}function ee(){for(var e=arguments.length,t=new Array(e),n=0;n0&&(e=e.slice(n)),e}function re(e,t){return e.slice(0,t)}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=e%t;return n?(e-n)/t*t+t:e}function ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=ce(e).match(new RegExp(".{".concat(t,"}"),"gi"));return Array.from(n||[])}function oe(e){return ie(e).map(he).join("")}function se(e){return Q(oe(P(e)))}function ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return ue(e,ae(e.length,t),n)}function ue(e,t){return ye(e,t,!0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:y)}function de(e,t){return ye(e,t,!1,arguments.length>2&&void 0!==arguments[2]?arguments[2]:y)}function fe(e){return e.replace(/^0x/,"")}function le(e){return e.startsWith("0x")?e:"0x".concat(e)}function be(e){return(e=ce(e=fe(e),2))&&(e=le(e)),e}function pe(e){var t=e.startsWith("0x");return e=(e=fe(e)).startsWith(y)?e.substring(1):e,t?le(e):e}function he(e){return e.split("").reverse().join("")}function ye(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:y,a=t-e.length,i=e;if(a>0){var o=r.repeat(a);i=n?o+e:e+o}return i}},96841:function(e,t,n){"use strict";function r(){return(null===n.g||void 0===n.g?void 0:n.g.crypto)||(null===n.g||void 0===n.g?void 0:n.g.msCrypto)||{}}function a(){var e=r();return e.subtle||e.webkitSubtle}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowserCryptoAvailable=t.getSubtleCrypto=t.getBrowerCrypto=void 0,t.getBrowerCrypto=r,t.getSubtleCrypto=a,t.isBrowserCryptoAvailable=function(){return!!r()&&!!a()}},96117:function(e,t,n){"use strict";var r=n(32375);function a(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function i(){return void 0!==r&&void 0!==r.versions&&void 0!==r.versions.node}Object.defineProperty(t,"__esModule",{value:!0}),t.isBrowser=t.isNode=t.isReactNative=void 0,t.isReactNative=a,t.isNode=i,t.isBrowser=function(){return!a()&&!i()}},95814:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(40443);r.__exportStar(n(96841),t),r.__exportStar(n(96117),t)},40443:function(e,t,n){"use strict";n.r(t),n.d(t,{__assign:function(){return i},__asyncDelegator:function(){return A},__asyncGenerator:function(){return g},__asyncValues:function(){return w},__await:function(){return v},__awaiter:function(){return d},__classPrivateFieldGet:function(){return I},__classPrivateFieldSet:function(){return S},__createBinding:function(){return l},__decorate:function(){return s},__exportStar:function(){return b},__extends:function(){return a},__generator:function(){return f},__importDefault:function(){return k},__importStar:function(){return _},__makeTemplateObject:function(){return x},__metadata:function(){return u},__param:function(){return c},__read:function(){return h},__rest:function(){return o},__spread:function(){return y},__spreadArrays:function(){return m},__values:function(){return p}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)};function a(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function y(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof v?Promise.resolve(n.value.v).then(c,u):d(i[0][2],n)}catch(e){d(i[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function d(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function A(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:a?a(t):t}:a}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,a){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,a,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function I(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function S(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},51730:function(e,t,n){"use strict";n.d(t,{IJsonRpcProvider:function(){return a.x0}});var r=n(76578);n.o(r,"IJsonRpcProvider")&&n.d(t,{IJsonRpcProvider:function(){return r.IJsonRpcProvider}}),n.o(r,"isHttpUrl")&&n.d(t,{isHttpUrl:function(){return r.isHttpUrl}}),n.o(r,"isJsonRpcError")&&n.d(t,{isJsonRpcError:function(){return r.isJsonRpcError}}),n.o(r,"isJsonRpcResponse")&&n.d(t,{isJsonRpcResponse:function(){return r.isJsonRpcResponse}});var a=n(44320),i=n(67630);n.o(i,"isHttpUrl")&&n.d(t,{isHttpUrl:function(){return i.isHttpUrl}}),n.o(i,"isJsonRpcError")&&n.d(t,{isJsonRpcError:function(){return i.isJsonRpcError}}),n.o(i,"isJsonRpcResponse")&&n.d(t,{isJsonRpcResponse:function(){return i.isJsonRpcResponse}})},76578:function(){},44320:function(e,t,n){"use strict";n.d(t,{XR:function(){return c},x0:function(){return u}});var r=n(31945),a=n(91610),i=n(61968),o=n(6058),s=(0,r.Z)((function e(){(0,a.Z)(this,e)})),c=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(e){return(0,a.Z)(this,n),t.call(this)}return(0,r.Z)(n)}(s),u=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(e){return(0,a.Z)(this,n),t.call(this)}return(0,r.Z)(n)}(function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,a.Z)(this,n),t.call(this)}return(0,r.Z)(n)}(s))},67630:function(){},19037:function(e,t,n){"use strict";n.d(t,{CA:function(){return o},JV:function(){return u},O4:function(){return i},dQ:function(){return s},xK:function(){return c}});var r,a=n(14039),i="INTERNAL_ERROR",o="SERVER_ERROR",s=[-32700,-32600,-32601,-32602,-32603],c=(r={},(0,a.Z)(r,"PARSE_ERROR",{code:-32700,message:"Parse error"}),(0,a.Z)(r,"INVALID_REQUEST",{code:-32600,message:"Invalid Request"}),(0,a.Z)(r,"METHOD_NOT_FOUND",{code:-32601,message:"Method not found"}),(0,a.Z)(r,"INVALID_PARAMS",{code:-32602,message:"Invalid params"}),(0,a.Z)(r,i,{code:-32603,message:"Internal error"}),(0,a.Z)(r,o,{code:-32e3,message:"Server error"}),r),u=o},41960:function(e,t,n){"use strict";var r=n(95814);n.o(r,"IJsonRpcProvider")&&n.d(t,{IJsonRpcProvider:function(){return r.IJsonRpcProvider}}),n.o(r,"formatJsonRpcError")&&n.d(t,{formatJsonRpcError:function(){return r.formatJsonRpcError}}),n.o(r,"formatJsonRpcRequest")&&n.d(t,{formatJsonRpcRequest:function(){return r.formatJsonRpcRequest}}),n.o(r,"getBigIntRpcId")&&n.d(t,{getBigIntRpcId:function(){return r.getBigIntRpcId}}),n.o(r,"isHttpUrl")&&n.d(t,{isHttpUrl:function(){return r.isHttpUrl}}),n.o(r,"isJsonRpcError")&&n.d(t,{isJsonRpcError:function(){return r.isJsonRpcError}}),n.o(r,"isJsonRpcResponse")&&n.d(t,{isJsonRpcResponse:function(){return r.isJsonRpcResponse}}),n.o(r,"payloadId")&&n.d(t,{payloadId:function(){return r.payloadId}})},66347:function(e,t,n){"use strict";n.d(t,{CX:function(){return s},L2:function(){return o},by:function(){return i},i5:function(){return a}});var r=n(19037);function a(e){return r.dQ.includes(e)}function i(e){return Object.keys(r.xK).includes(e)?r.xK[e]:r.xK[r.JV]}function o(e){return Object.values(r.xK).find((function(t){return t.code===e}))||r.xK[r.JV]}function s(e,t,n){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error("Unavailable ".concat(n," RPC url at ").concat(t)):e}},20616:function(e,t,n){"use strict";n.d(t,{CS:function(){return o},RI:function(){return c},o0:function(){return i},sT:function(){return s}});var r=n(66347),a=n(19037);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;return Date.now()*Math.pow(10,e)+Math.floor(Math.random()*Math.pow(10,e))}function o(){return BigInt(i(arguments.length>0&&void 0!==arguments[0]?arguments[0]:6))}function s(e,t,n){return{id:n||i(),jsonrpc:"2.0",method:e,params:t}}function c(e,t,n){return{id:e,jsonrpc:"2.0",error:u(t,n)}}function u(e,t){return void 0===e?(0,r.by)(a.O4):("string"==typeof e&&(e=Object.assign(Object.assign({},(0,r.by)(a.CA)),{message:e})),void 0!==t&&(e.data=t),(0,r.i5)(e.code)&&(e=(0,r.L2)(e.code)),e)}},23058:function(e,t,n){"use strict";n.d(t,{formatJsonRpcError:function(){return i.RI},formatJsonRpcRequest:function(){return i.sT},getBigIntRpcId:function(){return i.CS},isHttpUrl:function(){return s.jK},isJsonRpcError:function(){return c.jg},isJsonRpcResponse:function(){return c.u},parseConnectionError:function(){return r.CX},payloadId:function(){return i.o0}}),n(19037);var r=n(66347),a=n(41960);n.o(a,"IJsonRpcProvider")&&n.d(t,{IJsonRpcProvider:function(){return a.IJsonRpcProvider}}),n.o(a,"formatJsonRpcError")&&n.d(t,{formatJsonRpcError:function(){return a.formatJsonRpcError}}),n.o(a,"formatJsonRpcRequest")&&n.d(t,{formatJsonRpcRequest:function(){return a.formatJsonRpcRequest}}),n.o(a,"getBigIntRpcId")&&n.d(t,{getBigIntRpcId:function(){return a.getBigIntRpcId}}),n.o(a,"isHttpUrl")&&n.d(t,{isHttpUrl:function(){return a.isHttpUrl}}),n.o(a,"isJsonRpcError")&&n.d(t,{isJsonRpcError:function(){return a.isJsonRpcError}}),n.o(a,"isJsonRpcResponse")&&n.d(t,{isJsonRpcResponse:function(){return a.isJsonRpcResponse}}),n.o(a,"payloadId")&&n.d(t,{payloadId:function(){return a.payloadId}});var i=n(20616),o=n(29278);n.o(o,"IJsonRpcProvider")&&n.d(t,{IJsonRpcProvider:function(){return o.IJsonRpcProvider}}),n.o(o,"isHttpUrl")&&n.d(t,{isHttpUrl:function(){return o.isHttpUrl}}),n.o(o,"isJsonRpcError")&&n.d(t,{isJsonRpcError:function(){return o.isJsonRpcError}}),n.o(o,"isJsonRpcResponse")&&n.d(t,{isJsonRpcResponse:function(){return o.isJsonRpcResponse}});var s=n(31829),c=n(89885)},29278:function(e,t,n){"use strict";n.d(t,{IJsonRpcProvider:function(){return r.IJsonRpcProvider}});var r=n(51730);n.o(r,"isHttpUrl")&&n.d(t,{isHttpUrl:function(){return r.isHttpUrl}}),n.o(r,"isJsonRpcError")&&n.d(t,{isJsonRpcError:function(){return r.isJsonRpcError}}),n.o(r,"isJsonRpcResponse")&&n.d(t,{isJsonRpcResponse:function(){return r.isJsonRpcResponse}})},31829:function(e,t,n){"use strict";n.d(t,{jK:function(){return a}});var r="^https?:";function a(e){return function(e,t){var n=function(e){var t=e.match(new RegExp(/^\w+:/,"gi"));if(t&&t.length)return t[0]}(e);return void 0!==n&&new RegExp(t).test(n)}(e,r)}},89885:function(e,t,n){"use strict";function r(e){return function(e){return"object"==typeof e&&"id"in e&&"jsonrpc"in e&&"2.0"===e.jsonrpc}(e)&&(function(e){return"result"in e}(e)||a(e))}function a(e){return"error"in e}n.d(t,{jg:function(){return a},u:function(){return r}})},16875:function(e,t,n){var r=n(32375);function a(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=n(50684),o=a(n(37457)),s=a(n(79690)),c=n(62158);"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var u="data:image/svg+xml,%3C?xml version='1.0' encoding='UTF-8'?%3E %3Csvg width='300px' height='185px' viewBox='0 0 300 185' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3C!-- Generator: Sketch 49.3 (51167) - http://www.bohemiancoding.com/sketch --%3E %3Ctitle%3EWalletConnect%3C/title%3E %3Cdesc%3ECreated with Sketch.%3C/desc%3E %3Cdefs%3E%3C/defs%3E %3Cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E %3Cg id='walletconnect-logo-alt' fill='%233B99FC' fill-rule='nonzero'%3E %3Cpath d='M61.4385429,36.2562612 C110.349767,-11.6319051 189.65053,-11.6319051 238.561752,36.2562612 L244.448297,42.0196786 C246.893858,44.4140867 246.893858,48.2961898 244.448297,50.690599 L224.311602,70.406102 C223.088821,71.6033071 221.106302,71.6033071 219.883521,70.406102 L211.782937,62.4749541 C177.661245,29.0669724 122.339051,29.0669724 88.2173582,62.4749541 L79.542302,70.9685592 C78.3195204,72.1657633 76.337001,72.1657633 75.1142214,70.9685592 L54.9775265,51.2530561 C52.5319653,48.8586469 52.5319653,44.9765439 54.9775265,42.5821357 L61.4385429,36.2562612 Z M280.206339,77.0300061 L298.128036,94.5769031 C300.573585,96.9713 300.573599,100.85338 298.128067,103.247793 L217.317896,182.368927 C214.872352,184.763353 210.907314,184.76338 208.461736,182.368989 C208.461726,182.368979 208.461714,182.368967 208.461704,182.368957 L151.107561,126.214385 C150.496171,125.615783 149.504911,125.615783 148.893521,126.214385 C148.893517,126.214389 148.893514,126.214393 148.89351,126.214396 L91.5405888,182.368927 C89.095052,184.763359 85.1300133,184.763399 82.6844276,182.369014 C82.6844133,182.369 82.684398,182.368986 82.6843827,182.36897 L1.87196327,103.246785 C-0.573596939,100.852377 -0.573596939,96.9702735 1.87196327,94.5758653 L19.7936929,77.028998 C22.2392531,74.6345898 26.2042918,74.6345898 28.6498531,77.028998 L86.0048306,133.184355 C86.6162214,133.782957 87.6074796,133.782957 88.2188704,133.184355 C88.2188796,133.184346 88.2188878,133.184338 88.2188969,133.184331 L145.571,77.028998 C148.016505,74.6345347 151.981544,74.6344449 154.427161,77.028798 C154.427195,77.0288316 154.427229,77.0288653 154.427262,77.028899 L211.782164,133.184331 C212.393554,133.782932 213.384814,133.782932 213.996204,133.184331 L271.350179,77.0300061 C273.79574,74.6355969 277.760778,74.6355969 280.206339,77.0300061 Z' id='WalletConnect'%3E%3C/path%3E %3C/g%3E %3C/g%3E %3C/svg%3E",d="WalletConnect",f=300,l="rgb(64, 153, 255)",b="walletconnect-wrapper",p="walletconnect-style-sheet",h="walletconnect-qrcode-modal",y="walletconnect-qrcode-close",m="walletconnect-qrcode-text",v="walletconnect-connect-button";function g(e){return c.createElement("div",{className:"walletconnect-modal__header"},c.createElement("img",{src:u,className:"walletconnect-modal__headerLogo"}),c.createElement("p",null,d),c.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:e.onClose},c.createElement("div",{id:y,className:"walletconnect-modal__close__icon"},c.createElement("div",{className:"walletconnect-modal__close__line1"}),c.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function A(e){return c.createElement("a",{className:"walletconnect-connect__button",href:e.href,id:v+"-"+e.name,onClick:e.onClick,rel:"noopener noreferrer",style:{backgroundColor:e.color},target:"_blank"},e.name)}var w="data:image/svg+xml,%3Csvg width='8' height='18' viewBox='0 0 8 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.586301 0.213898C0.150354 0.552968 0.0718197 1.18124 0.41089 1.61719L5.2892 7.88931C5.57007 8.25042 5.57007 8.75608 5.2892 9.11719L0.410889 15.3893C0.071819 15.8253 0.150353 16.4535 0.586301 16.7926C1.02225 17.1317 1.65052 17.0531 1.98959 16.6172L6.86791 10.3451C7.7105 9.26174 7.7105 7.74476 6.86791 6.66143L1.98959 0.38931C1.65052 -0.0466374 1.02225 -0.125172 0.586301 0.213898Z' fill='%233C4252'/%3E %3C/svg%3E";function x(e){var t=e.color,n=e.href,r=e.name,a=e.logo,i=e.onClick;return c.createElement("a",{className:"walletconnect-modal__base__row",href:n,onClick:i,rel:"noopener noreferrer",target:"_blank"},c.createElement("h3",{className:"walletconnect-modal__base__row__h3"},r),c.createElement("div",{className:"walletconnect-modal__base__row__right"},c.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+a+"') "+t,backgroundSize:"100%"}}),c.createElement("img",{src:w,className:"walletconnect-modal__base__row__right__caret"})))}function _(e){var t=e.color,n=e.href,r=e.name,a=e.logo,i=e.onClick,o=window.innerWidth<768?(r.length>8?2.5:2.7)+"vw":"inherit";return c.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:n,onClick:i,rel:"noopener noreferrer",target:"_blank"},c.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+a+"') "+t,backgroundSize:"100%"}}),c.createElement("div",{style:{fontSize:o},className:"walletconnect-connect__button__text"},r))}var k=5,I=12;function S(e){var t=i.isAndroid(),n=c.useState(""),r=n[0],a=n[1],o=c.useState(""),s=o[0],u=o[1],d=c.useState(1),f=d[0],b=d[1],p=s?e.links.filter((function(e){return e.name.toLowerCase().includes(s.toLowerCase())})):e.links,h=e.errorMessage,y=s||p.length>k,v=Math.ceil(p.length/I),g=[(f-1)*I+1,f*I],w=p.length?p.filter((function(e,t){return t+1>=g[0]&&t+1<=g[1]})):[],S=!(t||!(v>1)),E=void 0;return c.createElement("div",null,c.createElement("p",{id:m,className:"walletconnect-qrcode__text"},t?e.text.connect_mobile_wallet:e.text.choose_preferred_wallet),!t&&c.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:r,onChange:function(e){a(e.target.value),clearTimeout(E),e.target.value?E=setTimeout((function(){u(e.target.value),b(1)}),1e3):(a(""),u(""),b(1))}}),c.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(t?"__android":y&&p.length?"__wrap":"")},t?c.createElement(A,{name:e.text.connect,color:l,href:e.uri,onClick:c.useCallback((function(){i.saveMobileLinkInfo({name:"Unknown",href:e.uri})}),[])}):w.length?w.map((function(t){var n=t.color,r=t.name,a=t.shortName,o=t.logo,s=i.formatIOSMobile(e.uri,t),u=c.useCallback((function(){i.saveMobileLinkInfo({name:r,href:s})}),[w]);return y?c.createElement(_,{color:n,href:s,name:a||r,logo:o,onClick:u}):c.createElement(x,{color:n,href:s,name:r,logo:o,onClick:u})})):c.createElement(c.Fragment,null,c.createElement("p",null,h.length?e.errorMessage:e.links.length&&!p.length?e.text.no_wallets_found:e.text.loading))),S&&c.createElement("div",{className:"walletconnect-modal__footer"},Array(v).fill(0).map((function(e,t){var n=t+1,r=f===n;return c.createElement("a",{style:{margin:"auto 10px",fontWeight:r?"bold":"normal"},onClick:function(){return b(n)}},n)}))))}function E(e){var t=!!e.message.trim();return c.createElement("div",{className:"walletconnect-qrcode__notification"+(t?" notification__show":"")},e.message)}var C=function(e){try{var t="";return Promise.resolve(o.toString(e,{margin:0,type:"svg"})).then((function(e){return"string"==typeof e&&(t=e.replace("0||c.useEffect((function(){!function(){try{if(t)return Promise.resolve();s(!0);var a=function(t,a){try{var o=(c=e.qrcodeModalOptions&&e.qrcodeModalOptions.registryUrl?e.qrcodeModalOptions.registryUrl:i.getWalletRegistryUrl(),Promise.resolve(fetch(c)).then((function(t){return Promise.resolve(t.json()).then((function(t){var a=t.listings,o=n?"mobile":"desktop",c=i.getMobileLinkRegistry(i.formatMobileRegistry(a,o),r);s(!1),f(!0),P(c.length?"":e.text.no_supported_wallets),E(c);var u=1===c.length;u&&(A(i.formatIOSMobile(e.uri,c[0])),p(!0)),_(u)}))})))}catch(e){return a(e)}var c;return o&&o.then?o.then(void 0,a):o}(0,(function(t){s(!1),f(!0),P(e.text.something_went_wrong),console.error(t)}));return Promise.resolve(a&&a.then?a.then((function(){})):void 0)}catch(e){return Promise.reject(e)}}()}))};M();var B=n?b:!b;return c.createElement("div",{id:h,className:"walletconnect-qrcode__base animated fadeIn"},c.createElement("div",{className:"walletconnect-modal__base"},c.createElement(g,{onClose:e.onClose}),x&&b?c.createElement("div",{className:"walletconnect-modal__single_wallet"},c.createElement("a",{onClick:function(){return i.saveMobileLinkInfo({name:I[0].name,href:v})},href:v,rel:"noopener noreferrer",target:"_blank"},e.text.connect_with+" "+(x?I[0].name:"")+" ›")):t||o||!o&&I.length?c.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(B?" right__selected":"")},c.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),n?c.createElement(c.Fragment,null,c.createElement("a",{onClick:function(){return p(!1),M()}},e.text.mobile),c.createElement("a",{onClick:function(){return p(!0)}},e.text.qrcode)):c.createElement(c.Fragment,null,c.createElement("a",{onClick:function(){return p(!0)}},e.text.qrcode),c.createElement("a",{onClick:function(){return p(!1),M()}},e.text.desktop))):null,c.createElement("div",null,b||!t&&!o&&!I.length?c.createElement(T,Object.assign({},y)):c.createElement(S,Object.assign({},y,{links:I,errorMessage:O})))))}var P={de:{choose_preferred_wallet:"Wähle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterstützten Wallet",no_wallets_found:"keine Wallet gefunden"},en:{choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},es:{choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera móvil",scan_qrcode_with_wallet:"Escanea el código QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo salió mal",no_supported_wallets:"Todavía no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},fr:{choose_preferred_wallet:"Choisissez votre portefeuille préféré",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copié!",connect_with:"Connectez-vous à l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourné",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouvé"},ko:{choose_preferred_wallet:"원하는 지갑을 선택하세요",connect_mobile_wallet:"모바일 지갑과 연결",scan_qrcode_with_wallet:"WalletConnect 지원 지갑에서 QR코드를 스캔하세요",connect:"연결",qrcode:"QR 코드",mobile:"모바일",desktop:"데스크탑",copy_to_clipboard:"클립보드에 복사",copied_to_clipboard:"클립보드에 복사되었습니다!",connect_with:"와 연결하다",loading:"로드 중...",something_went_wrong:"문제가 발생했습니다.",no_supported_wallets:"아직 지원되는 지갑이 없습니다",no_wallets_found:"지갑을 찾을 수 없습니다"},pt:{choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se à carteira móvel",scan_qrcode_with_wallet:"Ler o código QR com uma carteira compatível com WalletConnect",connect:"Conectar",qrcode:"Código QR",mobile:"Móvel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda não há carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},zh:{choose_preferred_wallet:"选择你的钱包",connect_mobile_wallet:"连接至移动端钱包",scan_qrcode_with_wallet:"使用兼容 WalletConnect 的钱包扫描二维码",connect:"连接",qrcode:"二维码",mobile:"移动",desktop:"桌面",copy_to_clipboard:"复制到剪贴板",copied_to_clipboard:"复制到剪贴板成功!",connect_with:"通过以下方式连接",loading:"正在加载...",something_went_wrong:"出了问题",no_supported_wallets:"目前还没有支持的钱包",no_wallets_found:"没有找到钱包"},fa:{choose_preferred_wallet:"کیف پول مورد نظر خود را انتخاب کنید",connect_mobile_wallet:"به کیف پول موبایل وصل شوید",scan_qrcode_with_wallet:"کد QR را با یک کیف پول سازگار با WalletConnect اسکن کنید",connect:"اتصال",qrcode:"کد QR",mobile:"سیار",desktop:"دسکتاپ",copy_to_clipboard:"کپی به کلیپ بورد",copied_to_clipboard:"در کلیپ بورد کپی شد!",connect_with:"ارتباط با",loading:"...بارگذاری",something_went_wrong:"مشکلی پیش آمد",no_supported_wallets:"هنوز هیچ کیف پول پشتیبانی شده ای وجود ندارد",no_wallets_found:"هیچ کیف پولی پیدا نشد"}};function M(){var e=i.getDocumentOrThrow(),t=e.getElementById(h);t&&(t.className=t.className.replace("fadeIn","fadeOut"),setTimeout((function(){var t=e.getElementById(b);t&&e.body.removeChild(t)}),f))}function B(e){return function(){M(),e&&e()}}var N=function(){return void 0!==r&&void 0!==r.versions&&void 0!==r.versions.node},R={open:function(e,t,n){console.log(e),N()?function(e){o.toString(e,{type:"terminal"}).then(console.log)}(e):function(e,t,n){!function(){var e=i.getDocumentOrThrow(),t=e.getElementById(p);t&&e.head.removeChild(t);var n=e.createElement("style");n.setAttribute("id",p),n.innerText=':root {\n --animation-duration: 300ms;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.animated {\n animation-duration: var(--animation-duration);\n animation-fill-mode: both;\n}\n\n.fadeIn {\n animation-name: fadeIn;\n}\n\n.fadeOut {\n animation-name: fadeOut;\n}\n\n#walletconnect-wrapper {\n -webkit-user-select: none;\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n pointer-events: none;\n position: fixed;\n top: 0;\n user-select: none;\n width: 100%;\n z-index: 99999999999999;\n}\n\n.walletconnect-modal__headerLogo {\n height: 21px;\n}\n\n.walletconnect-modal__header p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n align-items: flex-start;\n display: flex;\n flex: 1;\n margin-left: 5px;\n}\n\n.walletconnect-modal__close__wrapper {\n position: absolute;\n top: 0px;\n right: 0px;\n z-index: 10000;\n background: white;\n border-radius: 26px;\n padding: 6px;\n box-sizing: border-box;\n width: 26px;\n height: 26px;\n cursor: pointer;\n}\n\n.walletconnect-modal__close__icon {\n position: relative;\n top: 7px;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(45deg);\n}\n\n.walletconnect-modal__close__line1 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n}\n\n.walletconnect-modal__close__line2 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n transform: rotate(90deg);\n}\n\n.walletconnect-qrcode__base {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n background: rgba(37, 41, 46, 0.95);\n height: 100%;\n left: 0;\n pointer-events: auto;\n position: fixed;\n top: 0;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n width: 100%;\n will-change: opacity;\n padding: 40px;\n box-sizing: border-box;\n}\n\n.walletconnect-qrcode__text {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 10px 0 20px 0;\n text-align: center;\n width: 100%;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-qrcode__text {\n font-size: 4vw;\n }\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-qrcode__text {\n font-size: 14px;\n }\n}\n\n.walletconnect-qrcode__image {\n width: calc(100% - 30px);\n box-sizing: border-box;\n cursor: none;\n margin: 0 auto;\n}\n\n.walletconnect-qrcode__notification {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n font-size: 16px;\n padding: 16px 20px;\n border-radius: 16px;\n text-align: center;\n transition: all 0.1s ease-in-out;\n background: white;\n color: black;\n margin-bottom: -60px;\n opacity: 0;\n}\n\n.walletconnect-qrcode__notification.notification__show {\n opacity: 1;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__header {\n height: 130px;\n }\n .walletconnect-modal__base {\n overflow: auto;\n }\n}\n\n@media only screen and (min-device-width: 415px) and (max-width: 768px) {\n #content {\n max-width: 768px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 375px) and (max-width: 415px) {\n #content {\n max-width: 414px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 320px) and (max-width: 375px) {\n #content {\n max-width: 375px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (max-width: 320px) {\n #content {\n max-width: 320px;\n box-sizing: border-box;\n }\n}\n\n.walletconnect-modal__base {\n -webkit-font-smoothing: antialiased;\n background: #ffffff;\n border-radius: 24px;\n box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4);\n font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font,\n -apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,\n "Open Sans", "Helvetica Neue", sans-serif;\n margin-top: 41px;\n padding: 24px 24px 22px;\n pointer-events: auto;\n position: relative;\n text-align: center;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n will-change: transform;\n overflow: visible;\n transform: translateY(-50%);\n top: 50%;\n max-width: 500px;\n margin: auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__base {\n padding: 24px 12px;\n }\n}\n\n.walletconnect-modal__base .hidden {\n transform: translateY(150%);\n transition: 0.125s cubic-bezier(0.4, 0, 1, 1);\n}\n\n.walletconnect-modal__header {\n align-items: center;\n display: flex;\n height: 26px;\n left: 0;\n justify-content: space-between;\n position: absolute;\n top: -42px;\n width: 100%;\n}\n\n.walletconnect-modal__base .wc-logo {\n align-items: center;\n display: flex;\n height: 26px;\n margin-top: 15px;\n padding-bottom: 15px;\n pointer-events: auto;\n}\n\n.walletconnect-modal__base .wc-logo div {\n background-color: #3399ff;\n height: 21px;\n margin-right: 5px;\n mask-image: url("images/wc-logo.svg") center no-repeat;\n width: 32px;\n}\n\n.walletconnect-modal__base .wc-logo p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n}\n\n.walletconnect-modal__base h2 {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 0 0 19px 0;\n text-align: center;\n width: 100%;\n}\n\n.walletconnect-modal__base__row {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n align-items: center;\n border-radius: 20px;\n cursor: pointer;\n display: flex;\n height: 56px;\n justify-content: space-between;\n padding: 0 15px;\n position: relative;\n margin: 0px 0px 8px;\n text-align: left;\n transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n will-change: transform;\n text-decoration: none;\n}\n\n.walletconnect-modal__base__row:hover {\n background: rgba(60, 66, 82, 0.06);\n}\n\n.walletconnect-modal__base__row:active {\n background: rgba(60, 66, 82, 0.06);\n transform: scale(0.975);\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n}\n\n.walletconnect-modal__base__row__h3 {\n color: #25292e;\n font-size: 20px;\n font-weight: 700;\n margin: 0;\n padding-bottom: 3px;\n}\n\n.walletconnect-modal__base__row__right {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n\n.walletconnect-modal__base__row__right__app-icon {\n border-radius: 8px;\n height: 34px;\n margin: 0 11px 2px 0;\n width: 34px;\n background-size: 100%;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-modal__base__row__right__caret {\n height: 18px;\n opacity: 0.3;\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n width: 8px;\n will-change: opacity;\n}\n\n.walletconnect-modal__base__row:hover .caret,\n.walletconnect-modal__base__row:active .caret {\n opacity: 0.6;\n}\n\n.walletconnect-modal__mobile__toggle {\n width: 80%;\n display: flex;\n margin: 0 auto;\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n margin-bottom: 18px;\n background: #d4d5d9;\n}\n\n.walletconnect-modal__single_wallet {\n display: flex;\n justify-content: center;\n margin-top: 7px;\n margin-bottom: 18px;\n}\n\n.walletconnect-modal__single_wallet a {\n cursor: pointer;\n color: rgb(64, 153, 255);\n font-size: 21px;\n font-weight: 800;\n text-decoration: none !important;\n margin: 0 auto;\n}\n\n.walletconnect-modal__mobile__toggle_selector {\n width: calc(50% - 8px);\n background: white;\n position: absolute;\n border-radius: 5px;\n height: calc(100% - 8px);\n top: 4px;\n transition: all 0.2s ease-in-out;\n transform: translate3d(4px, 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector {\n transform: translate3d(calc(100% + 12px), 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle a {\n font-size: 12px;\n width: 50%;\n text-align: center;\n padding: 8px;\n margin: 0;\n font-weight: 600;\n z-index: 1;\n}\n\n.walletconnect-modal__footer {\n display: flex;\n justify-content: center;\n margin-top: 20px;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__footer {\n margin-top: 5vw;\n }\n}\n\n.walletconnect-modal__footer a {\n cursor: pointer;\n color: #898d97;\n font-size: 15px;\n margin: 0 auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__footer a {\n font-size: 14px;\n }\n}\n\n.walletconnect-connect__buttons__wrapper {\n max-height: 44vh;\n}\n\n.walletconnect-connect__buttons__wrapper__android {\n margin: 50% 0;\n}\n\n.walletconnect-connect__buttons__wrapper__wrap {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n margin: 10px 0;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__buttons__wrapper__wrap {\n margin-top: 40px;\n }\n}\n\n.walletconnect-connect__button {\n background-color: rgb(64, 153, 255);\n padding: 12px;\n border-radius: 8px;\n text-decoration: none;\n color: rgb(255, 255, 255);\n font-weight: 500;\n}\n\n.walletconnect-connect__button__icon_anchor {\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: 8px;\n width: 42px;\n justify-self: center;\n flex-direction: column;\n text-decoration: none !important;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-connect__button__icon_anchor {\n margin: 4px;\n }\n}\n\n.walletconnect-connect__button__icon {\n border-radius: 10px;\n height: 42px;\n margin: 0;\n width: 42px;\n background-size: cover !important;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-connect__button__text {\n color: #424952;\n font-size: 2.7vw;\n text-decoration: none !important;\n padding: 0;\n margin-top: 1.8vw;\n font-weight: 600;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__button__text {\n font-size: 16px;\n margin-top: 12px;\n }\n}\n\n.walletconnect-search__input {\n border: none;\n background: #d4d5d9;\n border-style: none;\n padding: 8px 16px;\n outline: none;\n font-style: normal;\n font-stretch: normal;\n font-size: 16px;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: normal;\n text-align: left;\n border-radius: 8px;\n width: calc(100% - 16px);\n margin: 0;\n margin-bottom: 8px;\n}\n',e.head.appendChild(n)}();var r,a=function(){var e=i.getDocumentOrThrow(),t=e.createElement("div");return t.setAttribute("id",b),e.body.appendChild(t),t}();c.render(c.createElement(O,{text:(r=i.getNavigatorOrThrow().language.split("-")[0]||"en",P[r]||P.en),uri:e,onClose:B(t),qrcodeModalOptions:n}),a)}(e,t,n)},close:function(){N()||M()}};e.exports=R},62158:function(e,t,n){"use strict";n.r(t),n.d(t,{Children:function(){return Pe},Component:function(){return A},Fragment:function(){return g},PureComponent:function(){return Ie},StrictMode:function(){return yt},Suspense:function(){return De},SuspenseList:function(){return Le},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:function(){return st},cloneElement:function(){return ft},createContext:function(){return z},createElement:function(){return y},createFactory:function(){return ut},createPortal:function(){return ze},createRef:function(){return v},default:function(){return xt},findDOMNode:function(){return bt},flushSync:function(){return ht},forwardRef:function(){return Te},hydrate:function(){return Ye},isValidElement:function(){return dt},lazy:function(){return Ue},memo:function(){return Se},render:function(){return We},startTransition:function(){return mt},unmountComponentAtNode:function(){return lt},unstable_batchedUpdates:function(){return pt},useCallback:function(){return de},useContext:function(){return fe},useDebugValue:function(){return le},useDeferredValue:function(){return vt},useEffect:function(){return ie},useErrorBoundary:function(){return be},useId:function(){return pe},useImperativeHandle:function(){return ce},useInsertionEffect:function(){return At},useLayoutEffect:function(){return oe},useMemo:function(){return ue},useReducer:function(){return ae},useRef:function(){return se},useState:function(){return re},useSyncExternalStore:function(){return wt},useTransition:function(){return gt},version:function(){return ct}});var r,a,i,o,s,c,u,d,f={},l=[],b=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(e,t){for(var n in t)e[n]=t[n];return e}function h(e){var t=e.parentNode;t&&t.removeChild(e)}function y(e,t,n){var a,i,o,s={};for(o in t)"key"==o?a=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return m(e,s,a,i,null)}function m(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++i:o};return null==o&&null!=a.vnode&&a.vnode(s),s}function v(){return{current:null}}function g(e){return e.children}function A(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&o.sort(u));k.__r=0}function I(e,t,n,r,a,i,o,s,c,u){var d,b,p,h,y,v,A,x=r&&r.__k||l,_=x.length;for(n.__k=[],d=0;d0?m(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(p=x[d])||p&&h.key==p.key&&h.type===p.type)x[d]=void 0;else for(b=0;b<_;b++){if((p=x[b])&&h.key==p.key&&h.type===p.type){x[b]=void 0;break}p=null}N(e,h,p=p||f,a,i,o,s,c,u),y=h.__e,(b=h.ref)&&p.ref!=b&&(A||(A=[]),p.ref&&A.push(p.ref,null,h),A.push(b,h.__c||y,h)),null!=y?(null==v&&(v=y),"function"==typeof h.type&&h.__k===p.__k?h.__d=c=S(h,c,e):c=C(e,h,p,x,y,c),"function"==typeof n.type&&(n.__d=c)):c&&p.__e==c&&c.parentNode!=e&&(c=w(p))}for(n.__e=v,d=_;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=T(r).nextSibling),U(x[d],x[d]));if(A)for(d=0;d=0;t--)if((n=e.__k[t])&&(r=T(n)))return r;return null}function O(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||b.test(t)?n:n+"px"}function P(e,t,n,r,a){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||O(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||O(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?B:M,i):e.removeEventListener(t,i?B:M,i);else if("dangerouslySetInnerHTML"!==t){if(a)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function M(e){return this.l[e.type+!1](a.event?a.event(e):e)}function B(e){return this.l[e.type+!0](a.event?a.event(e):e)}function N(e,t,n,r,i,o,s,c,u){var d,f,l,b,h,y,m,v,w,x,_,k,S,E,C,T=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(u=n.__h,c=t.__e=n.__e,t.__h=null,o=[c]),(d=a.__b)&&d(t);try{e:if("function"==typeof T){if(v=t.props,w=(d=T.contextType)&&r[d.__c],x=d?w?w.props.value:d.__:r,n.__c?m=(f=t.__c=n.__c).__=f.__E:("prototype"in T&&T.prototype.render?t.__c=f=new T(v,x):(t.__c=f=new A(v,x),f.constructor=T,f.render=L),w&&w.sub(f),f.props=v,f.state||(f.state={}),f.context=x,f.__n=r,l=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=T.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,T.getDerivedStateFromProps(v,f.__s))),b=f.props,h=f.state,f.__v=t,l)null==T.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==T.getDerivedStateFromProps&&v!==b&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(v,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(v,f.__s,x)||t.__v===n.__v){for(t.__v!==n.__v&&(f.props=v,f.state=f.__s,f.__d=!1),f.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),_=0;_2&&(s.children=arguments.length>3?r.call(arguments,2):n),m(e.type,s,a||e.key,i||e.ref,null)}function z(e,t){var n={__c:t="__cC"+d++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,_(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=l.slice,a={__e:function(e,t,n,r){for(var a,i,o;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&null!=i.getDerivedStateFromError&&(a.setState(i.getDerivedStateFromError(e)),o=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(e,r||{}),o=a.__d),o)return a.__E=a}catch(t){e=t}throw e}},i=0,A.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof e&&(e=e(p({},n),this.props)),e&&p(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),_(this))},A.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_(this))},A.prototype.render=g,o=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,u=function(e,t){return e.__v.__b-t.__v.__b},k.__r=0,d=0;var Q,q,V,J,K=0,G=[],W=[],Y=a.__b,X=a.__r,$=a.diffed,ee=a.__c,te=a.unmount;function ne(e,t){a.__h&&a.__h(q,e,K||t),K=0;var n=q.__H||(q.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:W}),n.__[e]}function re(e){return K=1,ae(we,e)}function ae(e,t,n){var r=ne(Q++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):we(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=q,!q.u)){var a=function(e,t,n){if(!r.__c.__H)return!0;var a=r.__c.__H.__.filter((function(e){return e.__c}));if(a.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var o=!1;return a.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};q.u=!0;var i=q.shouldComponentUpdate,o=q.componentWillUpdate;q.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,a(e,t,n),i=r}o&&o.call(this,e,t,n)},q.shouldComponentUpdate=a}return r.__N||r.__}function ie(e,t){var n=ne(Q++,3);!a.__s&&Ae(n.__H,t)&&(n.__=e,n.i=t,q.__H.__h.push(n))}function oe(e,t){var n=ne(Q++,4);!a.__s&&Ae(n.__H,t)&&(n.__=e,n.i=t,q.__h.push(n))}function se(e){return K=5,ue((function(){return{current:e}}),[])}function ce(e,t,n){K=6,oe((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function ue(e,t){var n=ne(Q++,7);return Ae(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function de(e,t){return K=8,ue((function(){return e}),t)}function fe(e){var t=q.context[e.__c],n=ne(Q++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(q)),t.props.value):e.__}function le(e,t){a.useDebugValue&&a.useDebugValue(t?t(e):e)}function be(e){var t=ne(Q++,10),n=re();return t.__=e,q.componentDidCatch||(q.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function pe(){var e=ne(Q++,11);if(!e.__){for(var t=q.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function he(){for(var e;e=G.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ve),e.__H.__h.forEach(ge),e.__H.__h=[]}catch(t){e.__H.__h=[],a.__e(t,e.__v)}}a.__b=function(e){q=null,Y&&Y(e)},a.__r=function(e){X&&X(e),Q=0;var t=(q=e.__c).__H;t&&(V===q?(t.__h=[],q.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=W,e.__N=e.i=void 0}))):(t.__h.forEach(ve),t.__h.forEach(ge),t.__h=[])),V=q},a.diffed=function(e){$&&$(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==G.push(t)&&J===a.requestAnimationFrame||((J=a.requestAnimationFrame)||me)(he)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==W&&(e.__=e.__V),e.i=void 0,e.__V=W}))),V=q=null},a.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ve),e.__h=e.__h.filter((function(e){return!e.__||ge(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],a.__e(n,e.__v)}})),ee&&ee(e,t)},a.unmount=function(e){te&&te(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ve(e)}catch(e){t=e}})),n.__H=void 0,t&&a.__e(t,n.__v))};var ye="function"==typeof requestAnimationFrame;function me(e){var t,n=function(){clearTimeout(r),ye&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ye&&(t=requestAnimationFrame(n))}function ve(e){var t=q,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),q=t}function ge(e){var t=q;e.__c=e.__(),q=t}function Ae(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function we(e,t){return"function"==typeof t?t(e):t}function xe(e,t){for(var n in t)e[n]=t[n];return e}function _e(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function ke(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}function Ie(e){this.props=e}function Se(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:_e(this.props,e)}function r(t){return this.shouldComponentUpdate=n,y(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ie.prototype=new A).isPureReactComponent=!0,Ie.prototype.shouldComponentUpdate=function(e,t){return _e(this.props,e)||_e(this.state,t)};var Ee=a.__b;a.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ee&&Ee(e)};var Ce="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Te(e){function t(t){var n=xe({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=Ce,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Oe=function(e,t){return null==e?null:E(E(e).map(t))},Pe={map:Oe,forEach:Oe,count:function(e){return e?E(e).length:0},only:function(e){var t=E(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:E},Me=a.__e;a.__e=function(e,t,n,r){if(e.then)for(var a,i=t;i=i.__;)if((a=i.__c)&&a.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),a.__c(e,t);Me(e,t,n,r)};var Be=a.unmount;function Ne(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=xe({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ne(e,t,n)}))),e}function Re(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Re(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function De(){this.__u=0,this.t=null,this.__b=null}function je(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ue(e){var t,n,r;function a(a){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return y(n,a)}return a.displayName="Lazy",a.__f=!0,a}function Le(){this.u=null,this.o=null}a.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Be&&Be(e)},(De.prototype=new A).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var a=je(r.__v),i=!1,o=function(){i||(i=!0,n.__R=null,a?a(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Re(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},De.prototype.componentWillUnmount=function(){this.t=[]},De.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ne(this.__b,n,r.__O=r.__P)}this.__b=null}var a=t.__a&&y(g,null,e.fallback);return a&&(a.__h=null),[y(g,null,t.__a?null:e.children),a]};var Fe=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]>>1,1),t.i.removeChild(e)}}),F(y(Ze,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function ze(e,t){var n=y(He,{__v:e,i:t});return n.containerInfo=t,n}(Le.prototype=new A).__a=function(e){var t=this,n=je(t.__v),r=t.o.get(e);return r[0]++,function(a){var i=function(){t.props.revealOrder?(r.push(a),Fe(t,e,r)):a()};n?n(i):i()}},Le.prototype.render=function(e){this.u=null,this.o=new Map;var t=E(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Le.prototype.componentDidUpdate=Le.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Fe(e,n,t)}))};var Qe="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,qe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ve=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Je=/[A-Z0-9]/g,Ke="undefined"!=typeof document,Ge=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function We(e,t,n){return null==t.__k&&(t.textContent=""),F(e,t),"function"==typeof n&&n(),e?e.__c:null}function Ye(e,t,n){return Z(e,t),"function"==typeof n&&n(),e?e.__c:null}A.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(A.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Xe=a.event;function $e(){}function et(){return this.cancelBubble}function tt(){return this.defaultPrevented}a.event=function(e){return Xe&&(e=Xe(e)),e.persist=$e,e.isPropagationStopped=et,e.isDefaultPrevented=tt,e.nativeEvent=e};var nt,rt={enumerable:!1,configurable:!0,get:function(){return this.class}},at=a.vnode;a.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var a in t){var i=t[a];if(!("value"===a&&"defaultValue"in t&&null==i||Ke&&"children"===a&&"noscript"===n||"class"===a||"className"===a)){var o=a.toLowerCase();"defaultValue"===a&&"value"in t&&null==t.value?a="value":"download"===a&&!0===i?i="":"ondoubleclick"===o?a="ondblclick":"onchange"!==o||"input"!==n&&"textarea"!==n||Ge(t.type)?"onfocus"===o?a="onfocusin":"onblur"===o?a="onfocusout":Ve.test(a)?a=o:-1===n.indexOf("-")&&qe.test(a)?a=a.replace(Je,"-$&").toLowerCase():null===i&&(i=void 0):o=a="oninput","oninput"===o&&r[a=o]&&(a="oninputCapture"),r[a]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=E(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=E(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",rt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Qe,at&&at(e)};var it=a.__r;a.__r=function(e){it&&it(e),nt=e.__c};var ot=a.diffed;a.diffed=function(e){ot&&ot(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),nt=null};var st={ReactCurrentDispatcher:{current:{readContext:function(e){return nt.__n[e.__c].props.value}}}},ct="17.0.2";function ut(e){return y.bind(null,e)}function dt(e){return!!e&&e.$$typeof===Qe}function ft(e){return dt(e)?H.apply(null,arguments):e}function lt(e){return!!e.__k&&(F(null,e),!0)}function bt(e){return e&&(e.base||1===e.nodeType&&e)||null}var pt=function(e,t){return e(t)},ht=function(e,t){return e(t)},yt=g;function mt(e){e()}function vt(e){return e}function gt(){return[!1,mt]}var At=oe;function wt(e,t){var n=t(),r=re({h:{__:n,v:t}}),a=r[0].h,i=r[1];return oe((function(){a.__=n,a.v=t,ke(a.__,t())||i({h:a})}),[e,n,t]),ie((function(){return ke(a.__,a.v())||i({h:a}),e((function(){ke(a.__,a.v())||i({h:a})}))}),[e]),n}var xt={useState:re,useId:pe,useReducer:ae,useEffect:ie,useLayoutEffect:oe,useInsertionEffect:oe,useTransition:gt,useDeferredValue:vt,useSyncExternalStore:wt,startTransition:mt,useRef:se,useImperativeHandle:ce,useMemo:ue,useCallback:de,useContext:fe,useDebugValue:le,version:"17.0.2",Children:Pe,render:We,hydrate:Ye,unmountComponentAtNode:lt,createPortal:ze,createElement:y,createContext:z,createFactory:ut,cloneElement:ft,createRef:v,Fragment:g,isValidElement:dt,findDOMNode:bt,Component:A,PureComponent:Ie,memo:Se,forwardRef:Te,flushSync:ht,unstable_batchedUpdates:pt,StrictMode:g,Suspense:De,SuspenseList:Le,lazy:Ue,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:st}},37457:function(e,t,n){var r=n(47507),a=n(43415),i=n(80185),o=n(96562);function s(e,t,n,i,o){var s=[].slice.call(arguments,1),c=s.length,u="function"==typeof s[c-1];if(!u&&!r())throw new Error("Callback required as last argument");if(!u){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=t,t=i=void 0):2!==c||t.getContext||(i=n,n=t,t=void 0),new Promise((function(r,o){try{var s=a.create(n,i);r(e(s,t,i))}catch(e){o(e)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(o=n,n=t,t=i=void 0):3===c&&(t.getContext&&void 0===o?(o=i,i=void 0):(o=i,i=n,n=t,t=void 0));try{var d=a.create(n,i);o(null,e(d,t,i))}catch(e){o(e)}}t.create=a.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return o.render(e,n)}))},47507:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},11293:function(e,t,n){var r=n(48843).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,n=r(e),a=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7],o=1;o>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},34168:function(e){function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){var a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},41864:function(e,t,n){var r=n(25246),a=n(87919);function i(e){this.mode=a.BYTE,"string"==typeof e&&(e=r(e)),this.data=new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(var t=0,n=this.data.length;t=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},72781:function(e,t,n){var r=n(48843).getSymbolSize;t.getPositions=function(e){var t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},96702:function(e,t,n){var r=n(48843),a=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){for(var n=e.bit<<3|t,i=n<<10;r.getBCHDigit(i)-a>=0;)i^=1335<=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=i},43273:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,n=0,r=0,a=0,i=null,o=null,s=0;s=5&&(n+=r-5+3),i=u,r=1),(u=e.get(c,s))===o?a++:(a>=5&&(n+=a-5+3),o=u,a=1)}r>=5&&(n+=r-5+3),a>=5&&(n+=a-5+3)}return n},t.getPenaltyN2=function(e){for(var t=e.size,n=0,r=0;r=10&&(1488===r||93===r)&&n++,a=a<<1&2047|e.get(o,i),o>=10&&(1488===a||93===a)&&n++}return 40*n},t.getPenaltyN4=function(e){for(var t=0,n=e.data.length,r=0;r=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return a.testNumeric(e)?t.NUMERIC:a.testAlphanumeric(e)?t.ALPHANUMERIC:a.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},46219:function(e,t,n){var r=n(87919);function a(e){this.mode=r.NUMERIC,this.data=e.toString()}a.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){var t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);var a=this.data.length-t;a>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*a+1))},e.exports=a},94138:function(e,t,n){var r=n(99348);t.mul=function(e,t){for(var n=new Uint8Array(e.length+t.length-1),a=0;a=0;){for(var a=n[0],i=0;i>r&1),r<6?e.set(r,8,a,!0):r<8?e.set(r+1,8,a,!0):e.set(i-15+r,8,a,!0),r<8?e.set(8,i-r-1,a,!0):r<9?e.set(8,15-r-1+1,a,!0):e.set(8,15-r-1,a,!0);e.set(i-8,8,1,!0)}function m(e,t,n,a){var b;if(Array.isArray(e))b=h.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");var m=t;if(!m){var v=h.rawSplit(e);m=l.getBestVersionForData(v,n)}b=h.fromString(e,m||40)}var g=l.getBestVersionForData(b,n);if(!g)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t=0&&s<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===s||6===s)||s>=2&&s<=4&&u>=2&&u<=4?e.set(i+s,o+u,!0,!0):e.set(i+s,o+u,!1,!0))}(x,t),function(e){for(var t=e.size,n=8;n=7&&function(e,t){for(var n,r,a,i=e.size,o=l.getEncodedBits(t),s=0;s<18;s++)n=Math.floor(s/3),r=s%3+i-8-3,a=1==(o>>s&1),e.set(n,r,a,!0),e.set(r,n,a,!0)}(x,t),function(e,t){for(var n=e.size,r=-1,a=n-1,i=7,o=0,s=n-1;s>0;s-=2)for(6===s&&s--;;){for(var c=0;c<2;c++)if(!e.isReserved(a,s-c)){var u=!1;o>>i&1)),e.set(a,s-c,u),-1==--i&&(o++,i=7)}if((a+=r)<0||n<=a){a-=r,r=-r;break}}}(x,A),isNaN(a)&&(a=u.getBestMask(x,y.bind(null,x,n))),u.applyMask(a,x),y(x,n,a),{modules:x,version:t,errorCorrectionLevel:n,maskPattern:a,segments:b}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");var n,i,o=a.M;return void 0!==t&&(o=a.from(t.errorCorrectionLevel,a.M),n=l.from(t.version),i=u.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),m(e,n,o,i)}},87109:function(e,t,n){var r=n(94138);function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=new Uint8Array(e.length+this.degree);t.set(e);var n=r.mod(t,this.genPoly),a=this.degree-n.length;if(a>0){var i=new Uint8Array(this.degree);return i.set(n,a),i}return n},e.exports=a},50994:function(e,t){var n="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",a="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(a,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var i=new RegExp("^"+r+"$"),o=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},86189:function(e,t,n){var r=n(87919),a=n(46219),i=n(27445),o=n(41864),s=n(22899),c=n(50994),u=n(48843),d=n(60550);function f(e){return unescape(encodeURIComponent(e)).length}function l(e,t,n){for(var r,a=[];null!==(r=e.exec(n));)a.push({data:r[0],index:r.index,mode:t,length:r[0].length});return a}function b(e){var t,n,a=l(c.NUMERIC,r.NUMERIC,e),i=l(c.ALPHANUMERIC,r.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=l(c.BYTE,r.BYTE,e),n=l(c.KANJI,r.KANJI,e)):(t=l(c.BYTE_KANJI,r.BYTE,e),n=[]),a.concat(i,t,n).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function p(e,t){switch(t){case r.NUMERIC:return a.getBitsLength(e);case r.ALPHANUMERIC:return i.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return o.getBitsLength(e)}}function h(e,t){var n,c=r.getBestModeForData(e);if((n=r.from(t,c))!==r.BYTE&&n.bit=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[]))},t.rawSplit=function(e){return t.fromArray(b(e,u.isKanjiModeEnabled()))}},48843:function(e,t){var n,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},49751:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},27681:function(e,t,n){var r=n(48843),a=n(49089),i=n(53812),o=n(87919),s=n(49751),c=r.getBCHDigit(7973);function u(e,t){return o.getCharCountIndicator(e,t)+4}function d(e,t){var n=0;return e.forEach((function(e){var r=u(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=o.BYTE);var i=8*(r.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,t));if(n===o.MIXED)return i;var c=i-u(n,e);switch(n){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){var r,a=i.from(n,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(var r=1;r<=40;r++)if(d(e,r)<=t.getCapacity(r,n,o.MIXED))return r}(e,a);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(var a=1;a<=40;a++)if(n<=t.getCapacity(a,r,e))return a}(r.mode,r.getLength(),a)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;r.getBCHDigit(t)-c>=0;)t^=7973<':"",f="0&&u>0&&e[c-1]||(r+=o?i("M",u+n,.5+d+n):i("m",a,0),a=0,o=!1),u+1',l='viewBox="0 0 '+u+" "+u+'"',b=''+d+f+"\n";return"function"==typeof n&&n(null,b),b}},2910:function(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:r,scale:r?4:a,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){for(var a=n.modules.size,i=n.modules.data,o=t.getScale(a,r),s=Math.floor((a+2*r.margin)*o),c=r.margin*o,u=[r.color.light,r.color.dark],d=0;d=c&&f>=c&&d0&&void 0!==n[0]?n[0]:this.connection,e.next=3,this.open(t);case 3:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"disconnect",value:(b=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.close();case 2:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"request",value:(u=(0,i.Z)((0,a.Z)().mark((function e(t,n){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.requestStrict((0,l.formatJsonRpcRequest)(t.method,t.params||[],(0,l.getBigIntRpcId)().toString()),n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return u.apply(this,arguments)})},{key:"requestStrict",value:(r=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r=this;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=(0,i.Z)((0,a.Z)().mark((function e(i,o){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.connection.connected){e.next=9;break}return e.prev=1,e.next=4,r.open();case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),o(e.t0);case 9:return r.events.on("".concat(t.id),(function(e){(0,l.isJsonRpcError)(e)?o(e.error):i(e.result)})),e.prev=10,e.next=13,r.connection.send(t,n);case 13:e.next=18;break;case 15:e.prev=15,e.t1=e.catch(10),o(e.t1);case 18:case"end":return e.stop()}}),e,null,[[1,6],[10,15]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})},{key:"setConnection",value:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection}},{key:"onPayload",value:function(e){this.events.emit("payload",e),(0,l.isJsonRpcResponse)(e)?this.events.emit("".concat(e.id),e):this.events.emit("message",{type:e.method,data:e.params})}},{key:"onClose",value:function(e){e&&3e3===e.code&&this.events.emit("error",new Error("WebSocket connection closed abnormally with code: ".concat(e.code," ").concat(e.reason?"(".concat(e.reason,")"):""))),this.events.emit("disconnect")}},{key:"open",value:(n=(0,i.Z)((0,a.Z)().mark((function e(){var t,n=arguments;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=n.length>0&&void 0!==n[0]?n[0]:this.connection,this.connection!==t||!this.connection.connected){e.next=3;break}return e.abrupt("return");case 3:if(this.connection.connected&&this.close(),"string"!=typeof t){e.next=8;break}return e.next=7,this.connection.open(t);case 7:t=this.connection;case 8:return this.connection=this.setConnection(t),e.next=11,this.connection.open();case 11:this.registerEventListeners(),this.events.emit("connect");case 13:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"close",value:(t=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.connection.close();case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"registerEventListeners",value:function(){var e=this;this.hasRegisteredEventListeners||(this.connection.on("payload",(function(t){return e.onPayload(t)})),this.connection.on("close",(function(t){return e.onClose(t)})),this.connection.on("error",(function(t){return e.events.emit("error",t)})),this.connection.on("register_error",(function(t){return e.onClose()})),this.hasRegisteredEventListeners=!0)}}]),y}(l.IJsonRpcProvider),p=n(67268),h=n.n(p);function y(e){return"string"==typeof e?e:(t=e,JSON.stringify(t,(function(e,t){return"bigint"==typeof t?t.toString()+"n":t}))||"");var t}var m={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"},v=function(){function e(t){if((0,o.Z)(this,e),this.url=t,this.events=new c.EventEmitter,this.isAvailable=!1,this.registering=!1,!(0,l.isHttpUrl)(t))throw new Error("Provided URL is not compatible with HTTP connection: ".concat(t));this.url=t}var t,n,r,u;return(0,s.Z)(e,[{key:"connected",get:function(){return this.isAvailable}},{key:"connecting",get:function(){return this.registering}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"open",value:(u=(0,i.Z)((0,a.Z)().mark((function e(){var t,n=arguments;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:this.url,e.next=3,this.register(t);case 3:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"close",value:(r=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isAvailable){e.next=2;break}throw new Error("Connection already closed");case 2:this.onClose();case 3:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"send",value:(n=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r,i,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isAvailable){e.next=3;break}return e.next=3,this.register();case 3:return e.prev=3,r=y(t),e.next=7,h()(this.url,Object.assign(Object.assign({},m),{body:r}));case 7:return i=e.sent,e.next=10,i.json();case 10:o=e.sent,this.onPayload({data:o}),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),this.onError(t.id,e.t0);case 17:case"end":return e.stop()}}),e,this,[[3,14]])}))),function(e,t){return n.apply(this,arguments)})},{key:"register",value:(t=(0,i.Z)((0,a.Z)().mark((function e(){var t,n,r,i,o=this,s=arguments;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=s.length>0&&void 0!==s[0]?s[0]:this.url,(0,l.isHttpUrl)(t)){e.next=3;break}throw new Error("Provided URL is not compatible with HTTP connection: ".concat(t));case 3:if(!this.registering){e.next=7;break}return n=this.events.getMaxListeners(),(this.events.listenerCount("register_error")>=n||this.events.listenerCount("open")>=n)&&this.events.setMaxListeners(n+1),e.abrupt("return",new Promise((function(e,t){o.events.once("register_error",(function(e){o.resetMaxListeners(),t(e)})),o.events.once("open",(function(){if(o.resetMaxListeners(),void 0===o.isAvailable)return t(new Error("HTTP connection is missing or invalid"));e()}))})));case 7:return this.url=t,this.registering=!0,e.prev=9,r=y({id:1,jsonrpc:"2.0",method:"test",params:[]}),e.next=13,h()(t,Object.assign(Object.assign({},m),{body:r}));case 13:this.onOpen(),e.next=22;break;case 16:throw e.prev=16,e.t0=e.catch(9),i=this.parseError(e.t0),this.events.emit("register_error",i),this.onClose(),i;case 22:case"end":return e.stop()}}),e,this,[[9,16]])}))),function(){return t.apply(this,arguments)})},{key:"onOpen",value:function(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}},{key:"onClose",value:function(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}},{key:"onPayload",value:function(e){if(void 0!==e.data){var t="string"==typeof e.data?function(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type ".concat(typeof e));try{return t=e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3'),JSON.parse(t,(function(e,t){return"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t}))}catch(t){return e}var t}(e.data):e.data;this.events.emit("payload",t)}}},{key:"onError",value:function(e,t){var n=this.parseError(t),r=n.message||n.toString(),a=(0,l.formatJsonRpcError)(e,r);this.events.emit("payload",a)}},{key:"parseError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.url;return(0,l.parseConnectionError)(e,t,"HTTP")}},{key:"resetMaxListeners",value:function(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}]),e}(),g=n(87644),A=n(50684),w=n(87402),x=function(){function e(){var t=this;(0,o.Z)(this,e),this._eventEmitters=[],"undefined"!=typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",(function(){return t.trigger("online")})),window.addEventListener("offline",(function(){return t.trigger("offline")})))}return(0,s.Z)(e,[{key:"on",value:function(e,t){this._eventEmitters.push({event:e,callback:t})}},{key:"trigger",value:function(e){var t=[];e&&(t=this._eventEmitters.filter((function(t){return t.event===e}))),t.forEach((function(e){e.callback()}))}}]),e}(),_=void 0!==n.g.WebSocket?n.g.WebSocket:n(19707),k=function(){function e(t){var n=this;if((0,o.Z)(this,e),this.opts=t,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=t.protocol,this._version=t.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=t.subscriptions||[],this._netMonitor=t.netMonitor||new x,!t.url||"string"!=typeof t.url)throw new Error("Missing or invalid WebSocket url");this._url=t.url,this._netMonitor.on("online",(function(){return n._socketCreate()}))}var t;return(0,s.Z)(e,[{key:"readyState",get:function(){return this._socket?this._socket.readyState:-1},set:function(e){}},{key:"connecting",get:function(){return 0===this.readyState},set:function(e){}},{key:"connected",get:function(){return 1===this.readyState},set:function(e){}},{key:"closing",get:function(){return 2===this.readyState},set:function(e){}},{key:"closed",get:function(){return 3===this.readyState},set:function(e){}},{key:"open",value:function(){this._socketCreate()}},{key:"close",value:function(){this._socketClose()}},{key:"send",value:function(e,t,n){if(!t||"string"!=typeof t)throw new Error("Missing or invalid topic field");this._socketSend({topic:t,type:"pub",payload:e,silent:!!n})}},{key:"subscribe",value:function(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}},{key:"on",value:function(e,t){this._events.push({event:e,callback:t})}},{key:"_socketCreate",value:function(){var e,t,n,r,a,i,o,s,c=this;if(!this._nextSocket){var u=(e=this._url,t=this._protocol,n=this._version,i=(e.startsWith("https")?e.replace("https","wss"):e.startsWith("http")?e.replace("http","ws"):e).split("?"),o=(0,A.isBrowser)()?{protocol:t,version:n,env:"browser",host:(null===(r=(0,A.getLocation)())||void 0===r?void 0:r.host)||""}:{protocol:t,version:n,env:(null===(a=(0,A.detectEnv)())||void 0===a?void 0:a.name)||""},s=(0,A.appendToQueryString)((0,A.getQueryString)(i[1]||""),o),i[0]+"?"+s);if(this._nextSocket=new _(u),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=function(e){return c._socketReceive(e)},this._nextSocket.onopen=function(){return c._socketOpen()},this._nextSocket.onerror=function(e){return c._socketError(e)},this._nextSocket.onclose=function(){setTimeout((function(){c._nextSocket=null,c._socketCreate()}),1e3)}}}},{key:"_socketOpen",value:function(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}},{key:"_socketClose",value:function(){this._socket&&(this._socket.onclose=function(){},this._socket.close())}},{key:"_socketSend",value:function(e){var t=JSON.stringify(e);this._socket&&1===this._socket.readyState?this._socket.send(t):(this._setToQueue(e),this._socketCreate())}},{key:"_socketReceive",value:(t=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,n=JSON.parse(t.data),e.next=7;break;case 4:return e.prev=4,e.t0=e.catch(0),e.abrupt("return");case 7:this._socketSend({topic:n.topic,type:"ack",payload:"",silent:!0}),this._socket&&1===this._socket.readyState&&(r=this._events.filter((function(e){return"message"===e.event})),r&&r.length&&r.forEach((function(e){return e.callback(n)})));case 9:case"end":return e.stop()}}),e,this,[[0,4]])}))),function(e){return t.apply(this,arguments)})},{key:"_socketError",value:function(e){var t=this._events.filter((function(e){return"error"===e.event}));t&&t.length&&t.forEach((function(t){return t.callback(e)}))}},{key:"_queueSubscriptions",value:function(){var e=this;this._subscriptions.forEach((function(t){return e._queue.push({topic:t,type:"sub",payload:"",silent:!0})})),this._subscriptions=this.opts.subscriptions||[]}},{key:"_setToQueue",value:function(e){this._queue.push(e)}},{key:"_pushQueue",value:function(){var e=this;this._queue.forEach((function(t){return e._socketSend(t)})),this._queue=[]}}]),e}(),I=k,S=function(){function e(){(0,o.Z)(this,e),this._eventEmitters=[]}return(0,s.Z)(e,[{key:"subscribe",value:function(e){this._eventEmitters.push(e)}},{key:"unsubscribe",value:function(e){this._eventEmitters=this._eventEmitters.filter((function(t){return t.event!==e}))}},{key:"trigger",value:function(e){var t,n=[];(t=(0,A.isJsonRpcRequest)(e)?e.method:(0,A.isJsonRpcResponseSuccess)(e)||(0,A.isJsonRpcResponseError)(e)?"response:".concat(e.id):(0,A.isInternalEvent)(e)?e.event:"")&&(n=this._eventEmitters.filter((function(e){return e.event===t}))),n&&n.length||(0,A.isReservedEvent)(t)||(0,A.isInternalEvent)(t)||(n=this._eventEmitters.filter((function(e){return"call_request"===e.event}))),n.forEach((function(t){if((0,A.isJsonRpcResponseError)(e)){var n=new Error(e.error.message);t.callback(n,null)}else t.callback(null,e)}))}}]),e}(),E=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"walletconnect";(0,o.Z)(this,e),this.storageId=t}return(0,s.Z)(e,[{key:"getSession",value:function(){var e=null,t=(0,A.getLocal)(this.storageId);return t&&(0,A.isWalletConnectSession)(t)&&(e=t),e}},{key:"setSession",value:function(e){return(0,A.setLocal)(this.storageId,e),e}},{key:"removeSession",value:function(){(0,A.removeLocal)(this.storageId)}}]),e}(),C=E,T="abcdefghijklmnopqrstuvwxyz0123456789".split("").map((function(e){return"https://".concat(e,".bridge.walletconnect.org")}));function O(e){return function(e){return"walletconnect.org"===function(e){return function(e){var t=e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0];return(t=t.split(":")[0]).split("?")[0]}(e).split(".").slice(-2).join(".")}(e)}(e)?T[Math.floor(Math.random()*T.length)]:e}var P=function(){function e(t){if((0,o.Z)(this,e),this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new S,this._clientMeta=(0,A.getClientMeta)()||t.connectorOpts.clientMeta||null,this._cryptoLib=t.cryptoLib,this._sessionStorage=t.sessionStorage||new C(t.connectorOpts.storageId),this._qrcodeModal=t.connectorOpts.qrcodeModal,this._qrcodeModalOptions=t.connectorOpts.qrcodeModalOptions,this._signingMethods=[].concat((0,w.Z)(g.SIGNING_METHODS),(0,w.Z)(t.connectorOpts.signingMethods||[])),!t.connectorOpts.bridge&&!t.connectorOpts.uri&&!t.connectorOpts.session)throw new Error(g.ERROR_MISSING_REQUIRED);t.connectorOpts.bridge&&(this.bridge=O(t.connectorOpts.bridge)),t.connectorOpts.uri&&(this.uri=t.connectorOpts.uri);var n=t.connectorOpts.session||this._getStorageSession();n&&(this.session=n),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=t.transport||new I({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),t.connectorOpts.uri&&this._subscribeToSessionRequest(),t.pushServerOpts&&this._registerPushServer(t.pushServerOpts)}var t,n,r,c,u,d,f,l,b,p,h,y,m,v,x,_,k,E;return(0,s.Z)(e,[{key:"bridge",get:function(){return this._bridge},set:function(e){e&&(this._bridge=e)}},{key:"key",get:function(){return this._key?(0,A.convertArrayBufferToHex)(this._key,!0):""},set:function(e){if(e){var t=(0,A.convertHexToArrayBuffer)(e);this._key=t}}},{key:"clientId",get:function(){var e=this._clientId;return e||(e=this._clientId=(0,A.uuid)()),this._clientId},set:function(e){e&&(this._clientId=e)}},{key:"peerId",get:function(){return this._peerId},set:function(e){e&&(this._peerId=e)}},{key:"clientMeta",get:function(){var e=this._clientMeta;return e||(e=this._clientMeta=(0,A.getClientMeta)()),e},set:function(e){}},{key:"peerMeta",get:function(){return this._peerMeta},set:function(e){this._peerMeta=e}},{key:"handshakeTopic",get:function(){return this._handshakeTopic},set:function(e){e&&(this._handshakeTopic=e)}},{key:"handshakeId",get:function(){return this._handshakeId},set:function(e){e&&(this._handshakeId=e)}},{key:"uri",get:function(){return this._formatUri()},set:function(e){if(e){var t=this._parseUri(e),n=t.handshakeTopic,r=t.bridge,a=t.key;this.handshakeTopic=n,this.bridge=r,this.key=a}}},{key:"chainId",get:function(){return this._chainId},set:function(e){this._chainId=e}},{key:"networkId",get:function(){return this._networkId},set:function(e){this._networkId=e}},{key:"accounts",get:function(){return this._accounts},set:function(e){this._accounts=e}},{key:"rpcUrl",get:function(){return this._rpcUrl},set:function(e){this._rpcUrl=e}},{key:"connected",get:function(){return this._connected},set:function(e){}},{key:"pending",get:function(){return!!this._handshakeTopic},set:function(e){}},{key:"session",get:function(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}},set:function(e){e&&(this._connected=e.connected,this.accounts=e.accounts,this.chainId=e.chainId,this.bridge=e.bridge,this.key=e.key,this.clientId=e.clientId,this.clientMeta=e.clientMeta,this.peerId=e.peerId,this.peerMeta=e.peerMeta,this.handshakeId=e.handshakeId,this.handshakeTopic=e.handshakeTopic)}},{key:"on",value:function(e,t){var n={event:e,callback:t};this._eventManager.subscribe(n)}},{key:"off",value:function(e){this._eventManager.unsubscribe(e)}},{key:"createInstantRequest",value:(k=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r,i,o=this;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._generateKey();case 2:return this._key=e.sent,n=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(t)}]}),this.handshakeId=n.id,this.handshakeTopic=(0,A.uuid)(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",(function(){throw new Error(g.ERROR_QRCODE_MODAL_USER_CLOSED)})),r=function(){o.killSession()},e.prev=9,e.next=12,this._sendCallRequest(n);case 12:return(i=e.sent)&&r(),e.abrupt("return",i);case 17:throw e.prev=17,e.t0=e.catch(9),r(),e.t0;case 21:case"end":return e.stop()}}),e,this,[[9,17]])}))),function(e){return k.apply(this,arguments)})},{key:"connect",value:(_=(0,i.Z)((0,a.Z)().mark((function e(t){var n=this;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._qrcodeModal){e.next=2;break}throw new Error(g.ERROR_QRCODE_MODAL_NOT_PROVIDED);case 2:if(!this.connected){e.next=4;break}return e.abrupt("return",{chainId:this.chainId,accounts:this.accounts});case 4:return e.next=6,this.createSession(t);case 6:return e.abrupt("return",new Promise(function(){var e=(0,i.Z)((0,a.Z)().mark((function e(t,r){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.on("modal_closed",(function(){return r(new Error(g.ERROR_QRCODE_MODAL_USER_CLOSED))})),n.on("connect",(function(e,n){if(e)return r(e);t(n.params[0])}));case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"createSession",value:(x=(0,i.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._connected){e.next=2;break}throw new Error(g.ERROR_SESSION_CONNECTED);case 2:if(!this.pending){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,this._generateKey();case 6:this._key=e.sent,n=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:t&&t.chainId?t.chainId:null}]}),this.handshakeId=n.id,this.handshakeTopic=(0,A.uuid)(),this._sendSessionRequest(n,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]});case 12:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"approveSession",value:function(e){if(this._connected)throw new Error(g.ERROR_SESSION_CONNECTED);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";var t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:t};this._sendResponse(n),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}},{key:"rejectSession",value:function(e){if(this._connected)throw new Error(g.ERROR_SESSION_CONNECTED);var t=e&&e.message?e.message:g.ERROR_SESSION_REJECTED,n=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}},{key:"updateSession",value:function(e){if(!this._connected)throw new Error(g.ERROR_SESSION_DISCONNECTED);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";var t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[t]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}},{key:"killSession",value:(v=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t?t.message:"Session Disconnected",r={approved:!1,chainId:null,networkId:null,accounts:null},i=this._formatRequest({method:"wc_sessionUpdate",params:[r]}),e.next=5,this._sendRequest(i);case 5:this._handleSessionDisconnect(n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"sendTransaction",value:(m=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(g.ERROR_SESSION_DISCONNECTED);case 2:return n=t,r=this._formatRequest({method:"eth_sendTransaction",params:[n]}),e.next=6,this._sendCallRequest(r);case 6:return i=e.sent,e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"signTransaction",value:(y=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(g.ERROR_SESSION_DISCONNECTED);case 2:return n=t,r=this._formatRequest({method:"eth_signTransaction",params:[n]}),e.next=6,this._sendCallRequest(r);case 6:return i=e.sent,e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return y.apply(this,arguments)})},{key:"signMessage",value:(h=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(g.ERROR_SESSION_DISCONNECTED);case 2:return n=this._formatRequest({method:"eth_sign",params:t}),e.next=5,this._sendCallRequest(n);case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"signPersonalMessage",value:(p=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(g.ERROR_SESSION_DISCONNECTED);case 2:return n=this._formatRequest({method:"personal_sign",params:t}),e.next=5,this._sendCallRequest(n);case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"signTypedData",value:(E=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(g.ERROR_SESSION_DISCONNECTED);case 2:return n=this._formatRequest({method:"eth_signTypedData",params:t}),e.next=5,this._sendCallRequest(n);case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"updateChain",value:(b=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error("Session currently disconnected");case 2:return n=this._formatRequest({method:"wallet_updateChain",params:[t]}),e.next=5,this._sendCallRequest(n);case 5:return r=e.sent,e.abrupt("return",r);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"unsafeSend",value:function(e,t){var n=this;return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise((function(t,r){n._subscribeToResponse(e.id,(function(e,n){if(e)r(e);else{if(!n)throw new Error(g.ERROR_MISSING_JSON_RPC);t(n)}}))}))}},{key:"sendCustomRequest",value:(l=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._connected){e.next=2;break}throw new Error(g.ERROR_SESSION_DISCONNECTED);case 2:e.t0=t.method,e.next="eth_accounts"===e.t0?5:"eth_chainId"===e.t0?6:"eth_sendTransaction"===e.t0||"eth_signTransaction"===e.t0?7:"personal_sign"===e.t0?9:11;break;case 5:return e.abrupt("return",this.accounts);case 6:return e.abrupt("return",(0,A.convertNumberToHex)(this.chainId));case 7:case 9:return t.params,e.abrupt("break",12);case 11:return e.abrupt("break",12);case 12:return r=this._formatRequest(t),e.next=15,this._sendCallRequest(r,n);case 15:return i=e.sent,e.abrupt("return",i);case 17:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"approveRequest",value:function(e){if(!(0,A.isJsonRpcResponseSuccess)(e))throw new Error(g.ERROR_MISSING_RESULT);var t=this._formatResponse(e);this._sendResponse(t)}},{key:"rejectRequest",value:function(e){if(!(0,A.isJsonRpcResponseError)(e))throw new Error(g.ERROR_MISSING_ERROR);var t=this._formatResponse(e);this._sendResponse(t)}},{key:"transportClose",value:function(){this._transport.close()}},{key:"_sendRequest",value:(f=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r,i,o,s,c;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._formatRequest(t),e.next=3,this._encrypt(r);case 3:i=e.sent,o=void 0!==(null==n?void 0:n.topic)?n.topic:this.peerId,s=JSON.stringify(i),c=void 0!==(null==n?void 0:n.forcePushNotification)?!n.forcePushNotification:(0,A.isSilentPayload)(r),this._transport.send(s,o,c);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"_sendResponse",value:(d=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r,i;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._encrypt(t);case 2:n=e.sent,r=this.peerId,i=JSON.stringify(n),this._transport.send(i,r,!0);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"_sendSessionRequest",value:(u=(0,i.Z)((0,a.Z)().mark((function e(t,n,r){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._sendRequest(t,r),this._subscribeToSessionResponse(t.id,n);case 2:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return u.apply(this,arguments)})},{key:"_sendCallRequest",value:function(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}},{key:"_formatRequest",value:function(e){if(void 0===e.method)throw new Error(g.ERROR_MISSING_METHOD);return{id:void 0===e.id?(0,A.payloadId)():e.id,jsonrpc:"2.0",method:e.method,params:void 0===e.params?[]:e.params}}},{key:"_formatResponse",value:function(e){if(void 0===e.id)throw new Error(g.ERROR_MISSING_ID);var t={id:e.id,jsonrpc:"2.0"};if((0,A.isJsonRpcResponseError)(e)){var n=(0,A.formatRpcError)(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:n})}if((0,A.isJsonRpcResponseSuccess)(e))return Object.assign(Object.assign({},t),e);throw new Error(g.ERROR_INVALID_RESPONSE)}},{key:"_handleSessionDisconnect",value:function(e){var t=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),(0,A.removeLocal)(g.MOBILE_LINK_CHOICE_KEY)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession(),this.transportClose()}},{key:"_handleSessionResponse",value:function(e,t){t&&t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(e)}},{key:"_handleIncomingMessages",value:(c=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if([this.clientId,this.handshakeTopic].includes(t.topic)){e.next=3;break}return e.abrupt("return");case 3:e.prev=3,n=JSON.parse(t.payload),e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(3),e.abrupt("return");case 10:return e.next=12,this._decrypt(n);case 12:(r=e.sent)&&this._eventManager.trigger(r);case 14:case"end":return e.stop()}}),e,this,[[3,7]])}))),function(e){return c.apply(this,arguments)})},{key:"_subscribeToSessionRequest",value:function(){this._transport.subscribe(this.handshakeTopic)}},{key:"_subscribeToResponse",value:function(e,t){this.on("response:".concat(e),t)}},{key:"_subscribeToSessionResponse",value:function(e,t){var n=this;this._subscribeToResponse(e,(function(e,r){e?n._handleSessionResponse(e.message):(0,A.isJsonRpcResponseSuccess)(r)?n._handleSessionResponse(t,r.result):r.error&&r.error.message?n._handleSessionResponse(r.error.message):n._handleSessionResponse(t)}))}},{key:"_subscribeToCallResponse",value:function(e){var t=this;return new Promise((function(n,r){t._subscribeToResponse(e,(function(e,t){e?r(e):(0,A.isJsonRpcResponseSuccess)(t)?n(t.result):t.error&&t.error.message?r(t.error):r(new Error(g.ERROR_INVALID_RESPONSE))}))}))}},{key:"_subscribeToInternalEvents",value:function(){var e=this;this.on("display_uri",(function(){e._qrcodeModal&&e._qrcodeModal.open(e.uri,(function(){e._eventManager.trigger({event:"modal_closed",params:[]})}),e._qrcodeModalOptions)})),this.on("connect",(function(){e._qrcodeModal&&e._qrcodeModal.close()})),this.on("call_request_sent",(function(t,n){var r=n.params[0].request;if((0,A.isMobile)()&&e._signingMethods.includes(r.method)){var a=(0,A.getLocal)(g.MOBILE_LINK_CHOICE_KEY);a&&(window.location.href=a.href)}})),this.on("wc_sessionRequest",(function(t,n){t&&e._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:t.toString()}]}),e.handshakeId=n.id,e.peerId=n.params[0].peerId,e.peerMeta=n.params[0].peerMeta;var r=Object.assign(Object.assign({},n),{method:"session_request"});e._eventManager.trigger(r)})),this.on("wc_sessionUpdate",(function(t,n){t&&e._handleSessionResponse(t.message),e._handleSessionResponse("Session disconnected",n.params[0])}))}},{key:"_initTransport",value:function(){var e=this;this._transport.on("message",(function(t){return e._handleIncomingMessages(t)})),this._transport.on("open",(function(){return e._eventManager.trigger({event:"transport_open",params:[]})})),this._transport.on("close",(function(){return e._eventManager.trigger({event:"transport_close",params:[]})})),this._transport.on("error",(function(){return e._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]})})),this._transport.open()}},{key:"_formatUri",value:function(){var e=this.protocol,t=this.handshakeTopic,n=this.version,r=encodeURIComponent(this.bridge),a=this.key;return"".concat(e,":").concat(t,"@").concat(n,"?bridge=").concat(r,"&key=").concat(a)}},{key:"_parseUri",value:function(e){var t=(0,A.parseWalletConnectUri)(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");var n=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");var r=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");return{handshakeTopic:n,bridge:r,key:t.key}}throw new Error(g.ERROR_INVALID_URI)}},{key:"_generateKey",value:(r=(0,i.Z)((0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._cryptoLib){e.next=5;break}return e.next=3,this._cryptoLib.generateKey();case 3:return t=e.sent,e.abrupt("return",t);case 5:return e.abrupt("return",null);case 6:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"_encrypt",value:(n=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this._key,!this._cryptoLib||!n){e.next=6;break}return e.next=4,this._cryptoLib.encrypt(t,n);case 4:return r=e.sent,e.abrupt("return",r);case 6:return e.abrupt("return",null);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"_decrypt",value:(t=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this._key,!this._cryptoLib||!n){e.next=6;break}return e.next=4,this._cryptoLib.decrypt(t,n);case 4:return r=e.sent,e.abrupt("return",r);case 6:return e.abrupt("return",null);case 7:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"_getStorageSession",value:function(){var e=null;return this._sessionStorage&&(e=this._sessionStorage.getSession()),e}},{key:"_setStorageSession",value:function(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}},{key:"_removeStorageSession",value:function(){this._sessionStorage&&this._sessionStorage.removeSession()}},{key:"_manageStorageSession",value:function(){this._connected?this._setStorageSession():this._removeStorageSession()}},{key:"_registerPushServer",value:function(e){if(!e.url||"string"!=typeof e.url)throw Error("Invalid or missing pushServerOpts.url parameter value");if(!e.type||"string"!=typeof e.type)throw Error("Invalid or missing pushServerOpts.type parameter value");if(!e.token||"string"!=typeof e.token)throw Error("Invalid or missing pushServerOpts.token parameter value");var t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",function(){var n=(0,i.Z)((0,a.Z)().mark((function n(r,i){var o,s;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!r){n.next=2;break}throw r;case 2:return e.peerMeta&&(o=i.params[0].peerMeta.name,t.peerName=o),n.prev=3,n.next=6,fetch("".concat(e.url,"/new"),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)});case 6:return s=n.sent,n.next=9,s.json();case 9:if(n.sent.success){n.next=12;break}throw Error("Failed to register in Push Server");case 12:n.next=17;break;case 14:throw n.prev=14,n.t0=n.catch(3),Error("Failed to register in Push Server");case 17:case"end":return n.stop()}}),n,null,[[3,14]])})));return function(e,t){return n.apply(this,arguments)}}())}}]),e}(),M=P,B=n(95814);function N(e){return B.getBrowerCrypto().getRandomValues(new Uint8Array(e))}var R=256,D=256,j="AES-CBC",U="SHA-".concat(R),L="HMAC",F=("aes-".concat(R,"-cbc"),"sha".concat(D),"encrypt"),Z="decrypt",H="sign",z="verify";function Q(e){return e===j?{length:R,name:j}:{hash:{name:U},name:L}}function q(e){return e===j?[F,Z]:[H,z]}function V(e){return J.apply(this,arguments)}function J(){return J=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r=arguments;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:j,e.abrupt("return",B.getSubtleCrypto().importKey("raw",t,Q(n),!0,q(n)));case 2:case"end":return e.stop()}}),e)}))),J.apply(this,arguments)}function K(){return(K=(0,i.Z)((0,a.Z)().mark((function e(t,n,r){var i,o,s;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=B.getSubtleCrypto(),e.next=3,V(n,j);case 3:return o=e.sent,e.next=6,i.encrypt({iv:t,name:j},o,r);case 6:return s=e.sent,e.abrupt("return",new Uint8Array(s));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function G(){return(G=(0,i.Z)((0,a.Z)().mark((function e(t,n,r){var i,o,s;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=B.getSubtleCrypto(),e.next=3,V(n,j);case 3:return o=e.sent,e.next=6,i.decrypt({iv:t,name:j},o,r);case 6:return s=e.sent,e.abrupt("return",new Uint8Array(s));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function W(e,t){return Y.apply(this,arguments)}function Y(){return(Y=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r,i,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=B.getSubtleCrypto(),e.next=3,V(t,L);case 3:return i=e.sent,e.next=6,r.sign({length:D,name:L},i,n);case 6:return o=e.sent,e.abrupt("return",new Uint8Array(o));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function X(e,t,n){return function(e,t,n){return K.apply(this,arguments)}(e,t,n)}function $(e,t,n){return function(e,t,n){return G.apply(this,arguments)}(e,t,n)}function ee(e,t){return te.apply(this,arguments)}function te(){return(te=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W(t,n);case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ne=n(94570);function re(e){return ae.apply(this,arguments)}function ae(){return(ae=(0,i.Z)((0,a.Z)().mark((function e(t){var n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=N((t||256)/8),r=(0,A.convertBufferToArrayBuffer)(ne.arrayToBuffer(n)),e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ie(e,t){return oe.apply(this,arguments)}function oe(){return(oe=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r,i,o,s,c,u,d;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=ne.hexToArray(t.data),i=ne.hexToArray(t.iv),o=ne.hexToArray(t.hmac),s=ne.arrayToHex(o,!1),c=ne.concatArrays(r,i),e.next=7,ee(n,c);case 7:if(u=e.sent,d=ne.arrayToHex(u,!1),ne.removeHexPrefix(s)!==ne.removeHexPrefix(d)){e.next=11;break}return e.abrupt("return",!0);case 11:return e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function se(e,t,n){return ce.apply(this,arguments)}function ce(){return(ce=(0,i.Z)((0,a.Z)().mark((function e(t,n,r){var i,o,s,c,u,d,f,l,b,p,h;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=ne.bufferToArray((0,A.convertArrayBufferToBuffer)(n)),e.t0=r,e.t0){e.next=6;break}return e.next=5,re(128);case 5:e.t0=e.sent;case 6:return o=e.t0,s=ne.bufferToArray((0,A.convertArrayBufferToBuffer)(o)),c=ne.arrayToHex(s,!1),u=JSON.stringify(t),d=ne.utf8ToArray(u),e.next=13,X(s,i,d);case 13:return f=e.sent,l=ne.arrayToHex(f,!1),b=ne.concatArrays(f,s),e.next=18,ee(i,b);case 18:return p=e.sent,h=ne.arrayToHex(p,!1),e.abrupt("return",{data:l,hmac:h,iv:c});case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ue(e,t){return de.apply(this,arguments)}function de(){return(de=(0,i.Z)((0,a.Z)().mark((function e(t,n){var r,i,o,s,c,u;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=ne.bufferToArray((0,A.convertArrayBufferToBuffer)(n))){e.next=3;break}throw new Error("Missing key: required for decryption");case 3:return e.next=5,ie(t,r);case 5:if(e.sent){e.next=8;break}return e.abrupt("return",null);case 8:return i=ne.hexToArray(t.data),o=ne.hexToArray(t.iv),e.next=12,$(o,r,i);case 12:s=e.sent,c=ne.arrayToUtf8(s),e.prev=14,u=JSON.parse(c),e.next=21;break;case 18:return e.prev=18,e.t0=e.catch(14),e.abrupt("return",null);case 21:return e.abrupt("return",u);case 22:case"end":return e.stop()}}),e,null,[[14,18]])})))).apply(this,arguments)}var fe=function(e){(0,d.Z)(n,e);var t=(0,f.Z)(n);function n(e,a){return(0,o.Z)(this,n),t.call(this,{cryptoLib:r,connectorOpts:e,pushServerOpts:a})}return(0,s.Z)(n)}(M),le=n(16875),be=n.n(le),pe=function(e){(0,d.Z)(p,e);var t,n,r,c,b=(0,f.Z)(p);function p(e){var t;return(0,o.Z)(this,p),(t=b.call(this)).events=new(u()),t.accounts=[],t.chainId=1,t.pending=!1,t.bridge="https://bridge.walletconnect.org",t.qrcode=!0,t.qrcodeModalOptions=void 0,t.opts=e,t.chainId=(null==e?void 0:e.chainId)||t.chainId,t.wc=t.register(e),t}return(0,s.Z)(p,[{key:"connected",get:function(){return void 0!==this.wc&&this.wc.connected}},{key:"connecting",get:function(){return this.pending}},{key:"connector",get:function(){return this.wc=this.register(this.opts),this.wc}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"open",value:(c=(0,i.Z)((0,a.Z)().mark((function e(t){var n=this;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.connected){e.next=3;break}return this.onOpen(),e.abrupt("return");case 3:return e.abrupt("return",new Promise((function(e,r){n.on("error",(function(e){r(e)})),n.on("open",(function(){e()})),n.create(t)})));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"close",value:(r=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==this.wc){e.next=2;break}return e.abrupt("return");case 2:this.wc.connected&&this.wc.killSession(),this.onClose();case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"send",value:(n=(0,i.Z)((0,a.Z)().mark((function e(t){var n=this;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.wc=this.register(this.opts),this.connected){e.next=4;break}return e.next=4,this.open();case 4:this.sendPayload(t).then((function(e){return n.events.emit("payload",e)})).catch((function(e){return n.events.emit("payload",(0,l.formatJsonRpcError)(t.id,e.message))}));case 5:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"register",value:function(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=(null==e?void 0:e.connector)?e.connector.bridge:(null==e?void 0:e.bridge)||"https://bridge.walletconnect.org",this.qrcode=void 0===(null==e?void 0:e.qrcode)||!1!==e.qrcode,this.chainId=void 0!==(null==e?void 0:e.chainId)?e.chainId:this.chainId,this.qrcodeModalOptions=null==e?void 0:e.qrcodeModalOptions;var t={bridge:this.bridge,qrcodeModal:this.qrcode?be():void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:null==e?void 0:e.storageId,signingMethods:null==e?void 0:e.signingMethods,clientMeta:null==e?void 0:e.clientMeta};if(this.wc=void 0!==(null==e?void 0:e.connector)?e.connector:new fe(t),void 0===this.wc)throw new Error("Failed to register WalletConnect connector");return this.wc.accounts.length&&(this.accounts=this.wc.accounts),this.wc.chainId&&(this.chainId=this.wc.chainId),this.registerConnectorEvents(),this.wc}},{key:"onOpen",value:function(e){this.pending=!1,e&&(this.wc=e),this.events.emit("open")}},{key:"onClose",value:function(){this.pending=!1,this.wc&&(this.wc=void 0),this.events.emit("close")}},{key:"onError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Failed or Rejected Request",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-32e3,r={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:t}};return this.events.emit("payload",r),r}},{key:"create",value:function(e){var t=this;this.wc=this.register(this.opts),this.chainId=e||this.chainId,this.connected||this.pending||(this.pending=!0,this.registerConnectorEvents(),this.wc.createSession({chainId:this.chainId}).then((function(){return t.events.emit("created")})).catch((function(e){return t.events.emit("error",e)})))}},{key:"registerConnectorEvents",value:function(){var e=this;this.wc=this.register(this.opts),this.wc.on("connect",(function(t){var n,r;t?e.events.emit("error",t):(e.accounts=(null===(n=e.wc)||void 0===n?void 0:n.accounts)||[],e.chainId=(null===(r=e.wc)||void 0===r?void 0:r.chainId)||e.chainId,e.onOpen())})),this.wc.on("disconnect",(function(t){t?e.events.emit("error",t):e.onClose()})),this.wc.on("modal_closed",(function(){e.events.emit("error",new Error("User closed modal"))})),this.wc.on("session_update",(function(t,n){var r=n.params[0],a=r.accounts,i=r.chainId;(!e.accounts||a&&e.accounts!==a)&&(e.accounts=a,e.events.emit("accountsChanged",a)),(!e.chainId||i&&e.chainId!==i)&&(e.chainId=i,e.events.emit("chainChanged",i))}))}},{key:"sendPayload",value:(t=(0,i.Z)((0,a.Z)().mark((function e(t){var n;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.wc=this.register(this.opts),e.prev=1,e.next=4,this.wc.unsafeSend(t);case 4:return n=e.sent,e.abrupt("return",this.sanitizeResponse(n));case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",this.onError(t,e.t0.message));case 11:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(e){return t.apply(this,arguments)})},{key:"sanitizeResponse",value:function(e){return void 0!==e.error&&void 0===e.error.code?(0,l.formatJsonRpcError)(e.id,e.error.message,e.error.data):e}}]),p}(n(44320).XR),he=function(){function e(t){(0,o.Z)(this,e),this.events=new(u()),this.rpc={infuraId:null==t?void 0:t.infuraId,custom:null==t?void 0:t.rpc},this.signer=new b(new pe(t));var n=this.signer.connection.chainId||(null==t?void 0:t.chainId)||1;this.http=this.setHttpProvider(n),this.registerEventListeners()}var t,n,r,c;return(0,s.Z)(e,[{key:"connected",get:function(){return this.signer.connection.connected}},{key:"connector",get:function(){return this.signer.connection.connector}},{key:"accounts",get:function(){return this.signer.connection.accounts}},{key:"chainId",get:function(){return this.signer.connection.chainId}},{key:"rpcUrl",get:function(){var e;return(null===(e=this.http)||void 0===e?void 0:e.connection).url||""}},{key:"request",value:(c=(0,i.Z)((0,a.Z)().mark((function e(t){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.method,e.next="eth_requestAccounts"===e.t0?3:"eth_accounts"===e.t0?6:"eth_chainId"===e.t0?7:8;break;case 3:return e.next=5,this.connect();case 5:case 6:return e.abrupt("return",this.signer.connection.accounts);case 7:return e.abrupt("return",this.signer.connection.chainId);case 8:return e.abrupt("break",9);case 9:if(!g.SIGNING_METHODS.includes(t.method)){e.next=11;break}return e.abrupt("return",this.signer.request(t));case 11:if(void 0!==this.http){e.next=13;break}throw new Error("Cannot request JSON-RPC method (".concat(t.method,") without provided rpc url"));case 13:return e.abrupt("return",this.http.request(t));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"sendAsync",value:function(e,t){this.request(e).then((function(e){return t(null,e)})).catch((function(e){return t(e,void 0)}))}},{key:"enable",value:(r=(0,i.Z)((0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.request({method:"eth_requestAccounts"});case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"connect",value:(n=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.signer.connection.connected){e.next=3;break}return e.next=3,this.signer.connect();case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"disconnect",value:(t=(0,i.Z)((0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.signer.connection.connected){e.next=3;break}return e.next=3,this.signer.disconnect();case 3:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"isWalletConnect",get:function(){return!0}},{key:"registerEventListeners",value:function(){var e=this;this.signer.connection.on("accountsChanged",(function(t){e.events.emit("accountsChanged",t)})),this.signer.connection.on("chainChanged",(function(t){e.http=e.setHttpProvider(t),e.events.emit("chainChanged",t)})),this.signer.on("disconnect",(function(){e.events.emit("disconnect")}))}},{key:"setHttpProvider",value:function(e){var t=(0,A.getRpcUrl)(e,this.rpc);if(void 0!==t)return new b(new v(t))}}]),e}(),ye=he},86106:function(){},87644:function(e,t,n){"use strict";n.d(t,{ERROR_INVALID_RESPONSE:function(){return l},ERROR_INVALID_URI:function(){return b},ERROR_MISSING_ERROR:function(){return c},ERROR_MISSING_ID:function(){return d},ERROR_MISSING_JSON_RPC:function(){return o},ERROR_MISSING_METHOD:function(){return u},ERROR_MISSING_REQUIRED:function(){return f},ERROR_MISSING_RESULT:function(){return s},ERROR_QRCODE_MODAL_NOT_PROVIDED:function(){return p},ERROR_QRCODE_MODAL_USER_CLOSED:function(){return h},ERROR_SESSION_CONNECTED:function(){return r},ERROR_SESSION_DISCONNECTED:function(){return a},ERROR_SESSION_REJECTED:function(){return i},INFURA_NETWORKS:function(){return g},MOBILE_LINK_CHOICE_KEY:function(){return v},RESERVED_EVENTS:function(){return y},SIGNING_METHODS:function(){return m}}),n(86106);var r="Session currently connected",a="Session currently disconnected",i="Session Rejected",o="Missing JSON RPC response",s='JSON-RPC success response must include "result" field',c='JSON-RPC error response must include "error" field',u='JSON RPC request must have valid "method" value',d='JSON RPC request must have valid "id" value',f="Missing one of the required parameters: bridge / uri / session",l="JSON RPC response format is invalid",b="URI format is invalid",p="QRCode Modal not provided",h="User close QRCode Modal",y=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],m=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign"].concat(["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"]),v="WALLETCONNECT_DEEPLINK_CHOICE",g={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"}},50684:function(e,t,n){"use strict";n.r(t),n.d(t,{addHexPrefix:function(){return pe},appendToQueryString:function(){return je},concatArrayBuffers:function(){return c},concatBuffers:function(){return b},convertArrayBufferToBuffer:function(){return a},convertArrayBufferToHex:function(){return o},convertArrayBufferToNumber:function(){return s},convertArrayBufferToUtf8:function(){return i},convertBufferToArrayBuffer:function(){return u},convertBufferToHex:function(){return f},convertBufferToNumber:function(){return l},convertBufferToUtf8:function(){return d},convertHexToArrayBuffer:function(){return g},convertHexToBuffer:function(){return v},convertHexToNumber:function(){return w},convertHexToUtf8:function(){return A},convertNumberToArrayBuffer:function(){return _},convertNumberToBuffer:function(){return x},convertNumberToHex:function(){return I},convertNumberToUtf8:function(){return k},convertUtf8ToArrayBuffer:function(){return p},convertUtf8ToBuffer:function(){return h},convertUtf8ToHex:function(){return y},convertUtf8ToNumber:function(){return m},detectEnv:function(){return Y},detectOS:function(){return X},formatIOSMobile:function(){return xe},formatMobileRegistry:function(){return Ne},formatMobileRegistryEntry:function(){return Be},formatQueryString:function(){return Le},formatRpcError:function(){return Te},getClientMeta:function(){return de},getCrypto:function(){return K},getCryptoOrThrow:function(){return J},getDappRegistryUrl:function(){return Me},getDocument:function(){return H},getDocumentOrThrow:function(){return Z},getEncoding:function(){return Ke},getFromWindow:function(){return L},getFromWindowOrThrow:function(){return F},getInfuraRpcUrl:function(){return Ae},getLocal:function(){return se},getLocalStorage:function(){return W},getLocalStorageOrThrow:function(){return G},getLocation:function(){return V},getLocationOrThrow:function(){return q},getMobileLinkRegistry:function(){return Ie},getMobileRegistryEntry:function(){return ke},getNavigator:function(){return Q},getNavigatorOrThrow:function(){return z},getQueryString:function(){return De},getRpcUrl:function(){return we},getType:function(){return Je},getWalletRegistryUrl:function(){return Pe},isAndroid:function(){return $},isArrayBuffer:function(){return Ve},isBrowser:function(){return re},isBuffer:function(){return Qe},isEmptyArray:function(){return ze},isEmptyString:function(){return He},isHexString:function(){return Ge},isIOS:function(){return ee},isInternalEvent:function(){return et},isJsonRpcRequest:function(){return Ye},isJsonRpcResponseError:function(){return $e},isJsonRpcResponseSuccess:function(){return Xe},isJsonRpcSubscription:function(){return We},isMobile:function(){return te},isNode:function(){return ne},isReservedEvent:function(){return tt},isSilentPayload:function(){return nt},isTypedArray:function(){return qe},isWalletConnectSession:function(){return Fe},logDeprecationWarning:function(){return ge},parseQueryString:function(){return Ue},parseWalletConnectUri:function(){return Ze},payloadId:function(){return me},promisify:function(){return Ce},removeHexLeadingZeros:function(){return ye},removeHexPrefix:function(){return he},removeLocal:function(){return ce},safeJsonParse:function(){return ae},safeJsonStringify:function(){return ie},sanitizeHex:function(){return be},saveMobileLinkInfo:function(){return _e},setLocal:function(){return oe},uuid:function(){return ve}});var r=n(94570);function a(e){return r.arrayToBuffer(new Uint8Array(e))}function i(e){return r.arrayToUtf8(new Uint8Array(e))}function o(e,t){return r.arrayToHex(new Uint8Array(e),!t)}function s(e){return r.arrayToNumber(new Uint8Array(e))}function c(){for(var e=arguments.length,t=new Array(e),n=0;n1)}function te(){return!!X()&&($()||ee())}function ne(){var e=Y();return!(!e||!e.name)&&"node"===e.name.toLowerCase()}function re(){return!ne()&&!!Q()}var ae=function(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type ".concat(typeof e));try{return t=e.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3'),JSON.parse(t,(function(e,t){return"string"==typeof t&&t.match(/^\d+n$/)?BigInt(t.substring(0,t.length-1)):t}))}catch(t){return e}var t},ie=function(e){return"string"==typeof e?e:(t=e,JSON.stringify(t,(function(e,t){return"bigint"==typeof t?t.toString()+"n":t}))||"");var t};function oe(e,t){var n=ie(t),r=W();r&&r.setItem(e,n)}function se(e){var t=null,n=W();return n&&(t=n.getItem(e)),t?ae(t):t}function ce(e){var t=W();t&&t.removeItem(e)}var ue=n(34303);function de(){return ue.D()}var fe=n(23058),le=n(87644);function be(e){return r.sanitizeHex(e)}function pe(e){return r.addHexPrefix(e)}function he(e){return r.removeHexPrefix(e)}function ye(e){return r.removeHexLeadingZeros(r.addHexPrefix(e))}var me=fe.payloadId;function ve(){return function(e,t){for(t=e="";e++<36;t+=51*e&52?(15^e?8^Math.random()*(20^e?16:4):4).toString(16):"-");return t}()}function ge(){console.warn("DEPRECATION WARNING: This WalletConnect client library will be deprecated in favor of @walletconnect/client. Please check docs.walletconnect.org to learn more about this migration!")}function Ae(e,t){var n,r=le.INFURA_NETWORKS[e];return r&&(n="https://".concat(r,".infura.io/v3/").concat(t)),n}function we(e,t){var n,r=Ae(e,t.infuraId);return t.custom&&t.custom[e]?n=t.custom[e]:r&&(n=r),n}function xe(e,t){var n=encodeURIComponent(e);return t.universalLink?"".concat(t.universalLink,"/wc?uri=").concat(n):t.deepLink?"".concat(t.deepLink).concat(t.deepLink.endsWith(":")?"//":"/","wc?uri=").concat(n):""}function _e(e){var t=e.href.split("?")[0];oe(le.MOBILE_LINK_CHOICE_KEY,Object.assign(Object.assign({},e),{href:t}))}function ke(e,t){return e.filter((function(e){return e.name.toLowerCase().includes(t.toLowerCase())}))[0]}function Ie(e,t){var n=e;return t&&(n=t.map((function(t){return ke(e,t)})).filter(Boolean)),n}var Se=n(59754),Ee=n(41116);function Ce(e,t){var n=function(){var n=(0,Ee.Z)((0,Se.Z)().mark((function n(){var r,a,i,o=arguments;return(0,Se.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:for(r=o.length,a=new Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:"mobile";return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:null!==(t=e.image_url.sm)&&void 0!==t?t:"",universalLink:e[n].universal||"",deepLink:e[n].native||""}}function Ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mobile";return Object.values(e).filter((function(e){return!!e[t].universal||!!e[t].native})).map((function(e){return Be(e,t)}))}var Re=n(73936);function De(e){var t=-1!==e.indexOf("?")?e.indexOf("?"):void 0;return void 0!==t?e.substr(t):""}function je(e,t){var n=Ue(e);return Le(n=Object.assign(Object.assign({},n),t))}function Ue(e){return Re.parse(e)}function Le(e){return Re.stringify(e)}function Fe(e){return void 0!==e.bridge}function Ze(e){var t,n,r,a,i=e.indexOf(":"),o=-1!==e.indexOf("?")?e.indexOf("?"):void 0,s=e.substring(0,i),c=(t=e.substring(i+1,o),{handshakeTopic:(n=t.split("@"))[0],version:parseInt(n[1],10)}),u=(r=void 0!==o?e.substr(o):"",{key:(a=Ue(r)).key||"",bridge:a.bridge||""});return Object.assign(Object.assign({protocol:s},c),u)}function He(e){return""===e||"string"==typeof e&&""===e.trim()}function ze(e){return!(e&&e.length)}function Qe(e){return r.isBuffer(e)}function qe(e){return r.isTypedArray(e)}function Ve(e){return r.isArrayBuffer(e)}function Je(e){return r.getType(e)}function Ke(e){return r.getEncoding(e)}function Ge(e,t){return r.isHexString(e,t)}function We(e){return"object"==typeof e.params}function Ye(e){return void 0!==e.method}function Xe(e){return void 0!==e.result}function $e(e){return void 0!==e.error}function et(e){return void 0!==e.event}function tt(e){return le.RESERVED_EVENTS.includes(e)||e.startsWith("wc_")}function nt(e){return!!e.method.startsWith("wc_")||!le.SIGNING_METHODS.includes(e.method)}},59842:function(e,t){"use strict";function n(e){var t=void 0;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function r(e){var t=n(e);if(!t)throw new Error("".concat(e," is not defined in Window"));return t}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalStorage=t.getLocalStorageOrThrow=t.getCrypto=t.getCryptoOrThrow=t.getLocation=t.getLocationOrThrow=t.getNavigator=t.getNavigatorOrThrow=t.getDocument=t.getDocumentOrThrow=t.getFromWindowOrThrow=t.getFromWindow=void 0,t.getFromWindow=n,t.getFromWindowOrThrow=r,t.getDocumentOrThrow=function(){return r("document")},t.getDocument=function(){return n("document")},t.getNavigatorOrThrow=function(){return r("navigator")},t.getNavigator=function(){return n("navigator")},t.getLocationOrThrow=function(){return r("location")},t.getLocation=function(){return n("location")},t.getCryptoOrThrow=function(){return r("crypto")},t.getCrypto=function(){return n("crypto")},t.getLocalStorageOrThrow=function(){return r("localStorage")},t.getLocalStorage=function(){return n("localStorage")}},34303:function(e,t,n){"use strict";t.D=void 0;var r=n(59842);t.D=function(){var e,t;try{e=r.getDocumentOrThrow(),t=r.getLocationOrThrow()}catch(e){return null}function n(){for(var t=arguments.length,n=new Array(t),r=0;r-1){var s=i.getAttribute("href");if(s)if(-1===s.toLowerCase().indexOf("https:")&&-1===s.toLowerCase().indexOf("http:")&&0!==s.indexOf("//")){var c=t.protocol+"//"+t.host;if(0===s.indexOf("/"))c+=s;else{var u=t.pathname.split("/");u.pop(),c+=u.join("/")+"/"+s}r.push(c)}else if(0===s.indexOf("//")){var d=t.protocol+s;r.push(d)}else r.push(s)}}return r}(),name:a}}},73936:function(e,t,n){"use strict";var r=n(15771).default,a=n(33482).default,i=n(69453).default,o=n(92598),s=n(34942),c=n(76133),u=n(8799);function d(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function f(e,t){return t.encode?t.strict?o(e):encodeURIComponent(e):e}function l(e,t){return t.decode?s(e):e}function b(e){return Array.isArray(e)?e.sort():"object"==typeof e?b(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function p(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function h(e){var t=(e=p(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function y(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function m(e,t){d((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return function(t,n,r){var a="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!a&&l(n,e).includes(e.arrayFormatSeparator);n=i?l(n,e):n;var o=a||i?n.split(e.arrayFormatSeparator).map((function(t){return l(t,e)})):null===n?n:l(n,e);r[t]=o};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),i=Object.create(null);if("string"!=typeof e)return i;if(!(e=e.trim().replace(/^[?#&]/,"")))return i;var o,s=a(e.split("&"));try{for(s.s();!(o=s.n()).done;){var u=o.value;if(""!==u){var f=c(t.decode?u.replace(/\+/g," "):u,"="),p=r(f,2),h=p[0],m=p[1];m=void 0===m?null:["comma","separator"].includes(t.arrayFormat)?m:l(m,t),n(l(h,t),m,i)}}}catch(e){s.e(e)}finally{s.f()}for(var v=0,g=Object.keys(i);v0})).join("&")},t.parseUrl=function(e,t){t=Object.assign({decode:!0},t);var n=c(e,"#"),a=r(n,2),i=a[0],o=a[1];return Object.assign({url:i.split("?")[0]||"",query:m(h(e),t)},t&&t.parseFragmentIdentifier&&o?{fragmentIdentifier:l(o,t)}:{})},t.stringifyUrl=function(e,n){n=Object.assign({encode:!0,strict:!0},n);var r=p(e.url).split("?")[0]||"",a=t.extract(e.url),i=t.parse(a,{sort:!1}),o=Object.assign(i,e.query),s=t.stringify(o,n);s&&(s="?".concat(s));var c=function(e){var t="",n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(c="#".concat(f(e.fragmentIdentifier,n))),"".concat(r).concat(s).concat(c)},t.pick=function(e,n,r){r=Object.assign({parseFragmentIdentifier:!0},r);var a=t.parseUrl(e,r),i=a.url,o=a.query,s=a.fragmentIdentifier;return t.stringifyUrl({url:i,query:u(o,n),fragmentIdentifier:s},r)},t.exclude=function(e,n,r){var a=Array.isArray(n)?function(e){return!n.includes(e)}:function(e,t){return!n(e,t)};return t.pick(e,a,r)}},84988:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,i||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,a=[];if(0===this._eventsCount)return a;for(r in e=this._events)t.call(e,r)&&a.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,i=r.length,o=new Array(i);a0||-1===this._reconnectCount)?(-1!==this._reconnectCount&&this._reconnectCount--,this.reconnectTimeoutId&&clearTimeout(this.reconnectTimeoutId),this.reconnectTimeoutId=setTimeout((function(){e.emit("reconnect"),e.start()}),this.reconnectInterval)):this.emit("destroyed")},t.prototype.subscribe=function(e,t,n){this.queryParams=function(e){for(var t=[],n=0,r=Object.keys(e);n":case"<":case"<=":case">=":i="number"!=typeof o[1]?"".concat(a).concat(o[0]).concat(o[1].toISOString()):"".concat(a).concat(o[0]).concat(o[1]);break;case"CONTAINS":i="".concat(a," CONTAINS '").concat(d(o[1]),"'");break;case"EXISTS":i="".concat(a," EXISTS")}else switch(typeof o){case"number":i="".concat(a,"=").concat(o);break;case"string":i="".concat(a,"='").concat(d(o),"'");break;default:i="".concat(a,"=").concat(o.toISOString())}t.push(i)}return t.join(" AND ")}(i({"tm.event":e},t)),this.callback=n},t.prototype.subscribeTx=function(e,t){this.subscribe("Tx",e,(function(e){return e.value.TxResult.txhash=(0,u.hashToHex)(e.value.TxResult.tx),t(e)}))},t}(s.EventEmitter);t.WebSocketClient=f},1210:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(34555),t),a(n(86144),t),a(n(43919),t),a(n(93569),t),a(n(28427),t)},23523:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&(o=c)),d=new u.TxBody(t.msgs,t.memo||""),f=new u.AuthInfo([],new u.Fee(0,new u.Coins)),(l=new u.Tx(d,f,[])).appendEmptySignatures(e),i&&"auto"!==i&&"0"!==i?[3,2]:[4,this.estimateGas(l,{gasAdjustment:r})];case 1:i=s.sent().toString(),s.label=2;case 2:return b=o?o.mul(i).toIntCeilCoins():this.lcd.config.isClassic?"0uusd":"0axpla",[2,new u.Fee(Number.parseInt(i),b,"","")]}}))}))},t.prototype.estimateGas=function(e,t){return o(this,void 0,void 0,(function(){var n,r,a,i;return s(this,(function(o){switch(o.label){case 0:if(n=(null==t?void 0:t.gasAdjustment)||this.lcd.config.gasAdjustment,r=e,e.signatures.length<=0){if(!(t&&t.signers&&t.signers.length>0))throw Error("cannot append signature");a=new u.AuthInfo([],new u.Fee(0,new u.Coins)),(r=new u.Tx(e.body,a,[])).appendEmptySignatures(t.signers)}return[4,this.c.post("/cosmos/tx/v1beta1/simulate",{tx_bytes:this.encode(r)}).then((function(e){return l.fromData(e)}))];case 1:return i=o.sent(),[2,new u.Dec(n).mul(i.gas_info.gas_used).toNumber()]}}))}))},t.prototype.computeTax=function(){return o(this,void 0,void 0,(function(){return s(this,(function(e){throw new Error("Tax was removed from network")}))}))},t.prototype.encode=function(e){return a.from(e.toBytes(this.lcd.config.isClassic)).toString("base64")},t.prototype.decode=function(e){return u.Tx.fromBuffer(a.from(e,"base64"),this.lcd.config.isClassic)},t.prototype.hash=function(e){return o(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,this.encode(e)];case 1:return t=n.sent(),[2,(0,d.hashToHex)(t)]}}))}))},t.prototype._broadcast=function(e,t){return o(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,this.c.post("/cosmos/tx/v1beta1/txs",{tx_bytes:this.encode(e),mode:t})];case 1:return[2,n.sent()]}}))}))},t.prototype.broadcast=function(e,t){return void 0===t&&(t=3e4),o(this,void 0,void 0,(function(){var n,r,a,i;return s(this,(function(o){switch(o.label){case 0:return n=500,[4,this._broadcast(e,"BROADCAST_MODE_SYNC")];case 1:if(null!=(r=o.sent().tx_response).code&&0!=r.code)return[2,{height:Number.parseInt(r.height),txhash:r.txhash,raw_log:r.raw_log,code:r.code,codespace:r.codespace,gas_used:0,gas_wanted:0,timestamp:"",logs:[]}];i=0,o.label=2;case 2:if(!(i<=t/n))return[3,9];o.label=3;case 3:return o.trys.push([3,5,,6]),[4,this.txInfo(r.txhash)];case 4:return a=o.sent(),[3,6];case 5:return o.sent(),[3,6];case 6:return a?[3,9]:[4,new Promise((function(e){return setTimeout(e,n)}))];case 7:o.sent(),o.label=8;case 8:return i++,[3,2];case 9:if(!a)throw new Error("Transaction was not included in a block before timeout of ".concat(t,"ms"));return[2,{txhash:a.txhash,raw_log:a.raw_log,gas_wanted:a.gas_wanted,gas_used:a.gas_used,height:+a.height,logs:(a.logs||[]).map((function(e){return f.TxLog.fromData(e)})),code:a.code,codespace:a.codespace,timestamp:a.timestamp}]}}))}))},t.prototype.broadcastBlock=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._broadcast(e,"BROADCAST_MODE_BLOCK").then((function(e){var t=e.tx_response;return{txhash:t.txhash,raw_log:t.raw_log,gas_wanted:Number.parseInt(t.gas_wanted),gas_used:Number.parseInt(t.gas_used),height:+t.height,logs:t.logs.map((function(e){return f.TxLog.fromData(e)})),code:t.code,codespace:t.codespace,data:t.data,info:t.info,timestamp:t.timestamp}}))]}))}))},t.prototype.broadcastSync=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._broadcast(e,"BROADCAST_MODE_SYNC").then((function(e){var t=e.tx_response,n={height:+t.height,txhash:t.txhash,raw_log:t.raw_log};return t.code&&(n.code=t.code),t.codespace&&(n.codespace=t.codespace),n}))]}))}))},t.prototype.broadcastAsync=function(e){return o(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this._broadcast(e,"BROADCAST_MODE_ASYNC").then((function(e){var t=e.tx_response;return{height:+t.height,txhash:t.txhash}}))]}))}))},t.prototype.search=function(e){var t;return o(this,void 0,void 0,(function(){var n,r=this;return s(this,(function(a){return n=new URLSearchParams,null===(t=e.events)||void 0===t||t.forEach((function(e){return n.append("events","tx.height"===e.key?"".concat(e.key,"=").concat(e.value):"".concat(e.key,"='").concat(e.value,"'"))})),delete e.events,Object.entries(e).forEach((function(e){n.append(e[0],e[1])})),[2,this.c.getRaw("cosmos/tx/v1beta1/txs",n).then((function(e){return{txs:e.tx_responses.map((function(e){return u.TxInfo.fromData(e,r.lcd.config.isClassic)})),pagination:e.pagination}}))]}))}))},t}(c.BaseAPI);t.TxAPI=b},97133:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]Math.pow(2,32)-1)throw new Error("CompactBitArray overflow");return new e(t%8,r.alloc(n))},e.prototype.count=function(){return 0==this.extra_bits_stored?8*this.elems.length:8*(this.elems.length-1)+this.extra_bits_stored},e.prototype.getIndex=function(e){return!(e<0||e>=this.count())&&(this.elems.readUInt8(e>>3)&1<<7-e%8)>0},e.prototype.setIndex=function(e,t){return!(e<0||e>=this.count()||(t?this.elems[e>>3]|=1<<7-e%8:this.elems[e>>3]&=~(1<<7-e%8),0))},e.prototype.numTrueBitsBefore=function(e){var t=function(e){return e.toString(2).split("0").join("").length},n=0,r=this.count();e>r&&(e=r);for(var a=0;;a++){if(8*a+7>=e)return n+t(this.elems[a]>>7-e%8+1);n+=t(this.elems[a])}},e.fromData=function(t){return new e(t.extra_bits_stored,r.from(t.elems,"base64"))},e.prototype.toData=function(){return{elems:this.elems.toString("base64"),extra_bits_stored:this.extra_bits_stored}},e.fromProto=function(t){return new e(t.extraBitsStored,r.from(t.elems))},e.prototype.toProto=function(){return a.CompactBitArray.fromPartial({elems:this.elems,extraBitsStored:this.extra_bits_stored})},e}();t.CompactBitArray=i},90509:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},83408:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Deposit=void 0;var c=n(8880),u=n(45034),d=n(22453),f=s(n(24141)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.proposal_id=t,a.depositor=n,a.amount=new c.Coins(r),a}return a(t,e),t.fromAmino=function(e){var n=e.proposal_id,r=e.depositor,a=e.amount;return new t(Number.parseInt(n),r,c.Coins.fromAmino(a))},t.prototype.toAmino=function(){var e=this,t=e.proposal_id,n=e.depositor,r=e.amount;return{proposal_id:t.toString(),depositor:n,amount:r.toAmino()}},t.fromData=function(e){var n=e.proposal_id,r=e.depositor,a=e.amount;return new t(Number.parseInt(n),r,c.Coins.fromData(a))},t.prototype.toData=function(){var e=this,t=e.proposal_id,n=e.depositor,r=e.amount;return{proposal_id:t.toString(),depositor:n,amount:r.toData()}},t.fromProto=function(e){return new t(e.proposalId.toNumber(),e.depositor,c.Coins.fromProto(e.amount))},t.prototype.toProto=function(){var e=this,t=e.proposal_id,n=e.depositor,r=e.amount;return d.Deposit.fromPartial({proposalId:f.fromNumber(t),depositor:n,amount:r.toProto()})},t}(u.JSONSerializable);t.Deposit=l},71758:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Fee=void 0;var c=n(45034),u=n(8880),d=n(21879),f=n(89413),l=s(n(24141)),b=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.gas_limit=t,i.payer=r,i.granter=a,i.amount=new u.Coins(n),i}return a(t,e),t.fromAmino=function(e){var n=e.gas,r=e.amount;return new t(Number.parseInt(n),u.Coins.fromAmino(r),"","")},t.prototype.toAmino=function(){return{gas:new d.Int(this.gas_limit).toString(),amount:this.amount.toAmino()}},t.fromData=function(e){return new t(Number.parseInt(e.gas_limit),u.Coins.fromData(e.amount),e.payer,e.granter)},t.prototype.toData=function(){var e=this,t=e.amount,n=e.gas_limit,r=e.payer,a=e.granter;return{amount:t.toData(),gas_limit:n.toFixed(),granter:null!=a?a:"",payer:null!=r?r:""}},t.fromProto=function(e){return new t(e.gasLimit.toNumber(),u.Coins.fromProto(e.amount),e.payer,e.granter)},t.prototype.toProto=function(){var e=this,t=e.amount,n=e.gas_limit,r=e.payer,a=e.granter;return f.Fee.fromPartial({amount:t.toProto(),gasLimit:l.fromNumber(n),granter:a,payer:r})},t.prototype.gasPrices=function(){return this.amount.toDecCoins().div(this.gas_limit)},t}(c.JSONSerializable);t.Fee=b},18152:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Msg=void 0;var r,a=n(46311),i=n(66094),o=n(16535),s=n(21791),c=n(37747),u=n(76849),d=n(86679),f=n(94964),l=n(67170),b=n(87718),p=n(63525),h=n(42491),y=n(42666),m=n(82896),v=n(44067),g=n(66796);(r=t.Msg||(t.Msg={})).fromAmino=function(e,t){switch(e.type){case"bank/MsgSend":case"cosmos-sdk/MsgSend":return a.MsgSend.fromAmino(e,t);case"bank/MsgMultiSend":case"cosmos-sdk/MsgMultiSend":return a.MsgMultiSend.fromAmino(e,t);case"distribution/MsgModifyWithdrawAddress":case"cosmos-sdk/MsgModifyWithdrawAddress":return i.MsgSetWithdrawAddress.fromAmino(e,t);case"distribution/MsgWithdrawDelegationReward":case"cosmos-sdk/MsgWithdrawDelegationReward":return i.MsgWithdrawDelegatorReward.fromAmino(e,t);case"distribution/MsgWithdrawValidatorCommission":case"cosmos-sdk/MsgWithdrawValCommission":return i.MsgWithdrawValidatorCommission.fromAmino(e,t);case"distribution/MsgFundCommunityPool":case"cosmos-sdk/MsgFundCommunityPool":return i.MsgFundCommunityPool.fromAmino(e,t);case"feegrant/MsgGrantAllowance":case"cosmos-sdk/MsgGrantAllowance":return o.MsgGrantAllowance.fromAmino(e,t);case"feegrant/MsgRevokeAllowance":case"cosmos-sdk/MsgRevokeAllowance":return o.MsgRevokeAllowance.fromAmino(e,t);case"gov/MsgDeposit":case"cosmos-sdk/MsgDeposit":return s.MsgDeposit.fromAmino(e,t);case"gov/MsgSubmitProposal":case"cosmos-sdk/MsgSubmitProposal":return s.MsgSubmitProposal.fromAmino(e,t);case"gov/MsgVote":case"cosmos-sdk/MsgVote":return s.MsgVote.fromAmino(e,t);case"gov/MsgVoteWeighted":case"cosmos-sdk/MsgVoteWeighted":return s.MsgVoteWeighted.fromAmino(e,t);case"market/MsgSwap":return c.MsgSwap.fromAmino(e,t);case"market/MsgSwapSend":return c.MsgSwapSend.fromAmino(e,t);case"msgauth/MsgGrantAuthorization":case"cosmos-sdk/MsgGrant":return u.MsgGrantAuthorization.fromAmino(e,t);case"msgauth/MsgRevokeAuthorization":case"cosmos-sdk/MsgRevoke":return u.MsgRevokeAuthorization.fromAmino(e,t);case"msgauth/MsgExecAuthorized":case"cosmos-sdk/MsgExec":return u.MsgExecAuthorized.fromAmino(e,t);case"oracle/MsgDelegateFeedConsent":return d.MsgDelegateFeedConsent.fromAmino(e,t);case"oracle/MsgAggregateExchangeRatePrevote":return d.MsgAggregateExchangeRatePrevote.fromAmino(e,t);case"oracle/MsgAggregateExchangeRateVote":return d.MsgAggregateExchangeRateVote.fromAmino(e,t);case"slashing/MsgUnjail":case"cosmos-sdk/MsgUnjail":return f.MsgUnjail.fromAmino(e,t);case"staking/MsgDelegate":case"cosmos-sdk/MsgDelegate":return l.MsgDelegate.fromAmino(e,t);case"staking/MsgUndelegate":case"cosmos-sdk/MsgUndelegate":return l.MsgUndelegate.fromAmino(e,t);case"staking/MsgBeginRedelegate":case"cosmos-sdk/MsgBeginRedelegate":return l.MsgBeginRedelegate.fromAmino(e,t);case"staking/MsgCreateValidator":case"cosmos-sdk/MsgCreateValidator":return l.MsgCreateValidator.fromAmino(e,t);case"staking/MsgEditValidator":case"cosmos-sdk/MsgEditValidator":return l.MsgEditValidator.fromAmino(e,t);case"cosmos-sdk/MsgCreatePeriodicVestingAccount":return b.MsgCreatePeriodicVestingAccount.fromAmino(e,t);case"cosmos-sdk/MsgCreateVestingAccount":return b.MsgCreateVestingAccount.fromAmino(e,t);case"cosmos-sdk/MsgDonateAllVestingTokens":return b.MsgDonateAllVestingTokens.fromAmino(e,t);case"wasm/MsgStoreCode":return p.MsgStoreCode.fromAmino(e,t);case"wasm/MsgMigrateCode":return p.MsgMigrateCode.fromAmino(e,t);case"wasm/MsgInstantiateContract":return p.MsgInstantiateContract.fromAmino(e,t);case"wasm/MsgExecuteContract":return p.MsgExecuteContract.fromAmino(e,t);case"wasm/MsgMigrateContract":return p.MsgMigrateContract.fromAmino(e,t);case"wasm/MsgUpdateContractAdmin":case"wasm/MsgUpdateAdmin":return p.MsgUpdateContractAdmin.fromAmino(e,t);case"wasm/MsgClearContractAdmin":case"wasm/MsgClearAdmin":return p.MsgClearContractAdmin.fromAmino(e,t);case"cosmos-sdk/MsgTransfer":return h.MsgTransfer.fromAmino(e,t);case"crisis/MsgVerifyInvariant":case"cosmos-sdk/MsgVerifyInvariant":return g.MsgVerifyInvariant.fromAmino(e,t)}},r.fromData=function(e,t){switch(e["@type"]){case"/cosmos.bank.v1beta1.MsgSend":return a.MsgSend.fromData(e,t);case"/cosmos.bank.v1beta1.MsgMultiSend":return a.MsgMultiSend.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress":return i.MsgSetWithdrawAddress.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward":return i.MsgWithdrawDelegatorReward.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission":return i.MsgWithdrawValidatorCommission.fromData(e,t);case"/cosmos.distribution.v1beta1.MsgFundCommunityPool":return i.MsgFundCommunityPool.fromData(e,t);case"/cosmos.feegrant.v1beta1.MsgGrantAllowance":return o.MsgGrantAllowance.fromData(e,t);case"/cosmos.feegrant.v1beta1.MsgRevokeAllowance":return o.MsgRevokeAllowance.fromData(e,t);case"/cosmos.gov.v1beta1.MsgDeposit":return s.MsgDeposit.fromData(e,t);case"/cosmos.gov.v1beta1.MsgSubmitProposal":return s.MsgSubmitProposal.fromData(e,t);case"/cosmos.gov.v1beta1.MsgVote":return s.MsgVote.fromData(e,t);case"/cosmos.gov.v1beta1.MsgVoteWeighted":return s.MsgVoteWeighted.fromData(e,t);case"/terra.market.v1beta1.MsgSwap":return c.MsgSwap.fromData(e,t);case"/terra.market.v1beta1.MsgSwapSend":return c.MsgSwapSend.fromData(e,t);case"/cosmos.authz.v1beta1.MsgGrant":return u.MsgGrantAuthorization.fromData(e,t);case"/cosmos.authz.v1beta1.MsgRevoke":return u.MsgRevokeAuthorization.fromData(e,t);case"/cosmos.authz.v1beta1.MsgExec":return u.MsgExecAuthorized.fromData(e,t);case"/terra.oracle.v1beta1.MsgDelegateFeedConsent":return d.MsgDelegateFeedConsent.fromData(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote":return d.MsgAggregateExchangeRatePrevote.fromData(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote":return d.MsgAggregateExchangeRateVote.fromData(e,t);case"/cosmos.slashing.v1beta1.MsgUnjail":return f.MsgUnjail.fromData(e,t);case"/cosmos.staking.v1beta1.MsgDelegate":return l.MsgDelegate.fromData(e,t);case"/cosmos.staking.v1beta1.MsgUndelegate":return l.MsgUndelegate.fromData(e,t);case"/cosmos.staking.v1beta1.MsgBeginRedelegate":return l.MsgBeginRedelegate.fromData(e,t);case"/cosmos.staking.v1beta1.MsgCreateValidator":return l.MsgCreateValidator.fromData(e,t);case"/cosmos.staking.v1beta1.MsgEditValidator":return l.MsgEditValidator.fromData(e,t);case"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount":return b.MsgCreatePeriodicVestingAccount.fromData(e,t);case"/cosmos.vesting.v1beta1.MsgCreateVestingAccount":return b.MsgCreateVestingAccount.fromData(e,t);case"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens":return b.MsgDonateAllVestingTokens.fromData(e,t);case"/terra.wasm.v1beta1.MsgStoreCode":case"/cosmwasm.wasm.v1.MsgStoreCode":return p.MsgStoreCode.fromData(e,t);case"/terra.wasm.v1beta1.MsgMigrateCode":return p.MsgMigrateCode.fromData(e,t);case"/terra.wasm.v1beta1.MsgInstantiateContract":case"/cosmwasm.wasm.v1.MsgInstantiateContract":return p.MsgInstantiateContract.fromData(e,t);case"/terra.wasm.v1beta1.MsgExecuteContract":case"/cosmwasm.wasm.v1.MsgExecuteContract":return p.MsgExecuteContract.fromData(e,t);case"/terra.wasm.v1beta1.MsgMigrateContract":case"/cosmwasm.wasm.v1.MsgMigrateContract":return p.MsgMigrateContract.fromData(e,t);case"/terra.wasm.v1beta1.MsgUpdateContractAdmin":case"/cosmwasm.wasm.v1.MsgUpdateAdmin":return p.MsgUpdateContractAdmin.fromData(e,t);case"/terra.wasm.v1beta1.MsgClearContractAdmin":case"/cosmwasm.wasm.v1.MsgClearAdmin":return p.MsgClearContractAdmin.fromData(e,t);case"/ibc.applications.transfer.v1.MsgTransfer":return h.MsgTransfer.fromData(e,t);case"/ibc.core.client.v1.MsgCreateClient":return y.MsgCreateClient.fromData(e,t);case"/ibc.core.client.v1.MsgUpdateClient":return y.MsgUpdateClient.fromData(e,t);case"/ibc.core.client.v1.MsgUpgradeClient":return y.MsgUpgradeClient.fromData(e,t);case"/ibc.core.client.v1.MsgSubmitMisbehaviour":return y.MsgSubmitMisbehaviour.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenInit":return m.MsgConnectionOpenInit.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenTry":return m.MsgConnectionOpenTry.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenConfirm":return m.MsgConnectionOpenConfirm.fromData(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenAck":return m.MsgConnectionOpenAck.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenInit":return v.MsgChannelOpenInit.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenTry":return v.MsgChannelOpenTry.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenConfirm":return v.MsgChannelOpenConfirm.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelOpenAck":return v.MsgChannelOpenAck.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelCloseInit":return v.MsgChannelCloseInit.fromData(e,t);case"/ibc.core.channel.v1.MsgChannelCloseConfirm":return v.MsgChannelCloseConfirm.fromData(e,t);case"/ibc.core.channel.v1.MsgRecvPacket":return v.MsgRecvPacket.fromData(e,t);case"/ibc.core.channel.v1.MsgAcknowledgement":return v.MsgAcknowledgement.fromData(e,t);case"/ibc.core.channel.v1.MsgTimeout":return v.MsgTimeout.fromData(e,t);case"/ibc.core.channel.v1.MsgTimeoutOnClose":return v.MsgTimeoutOnClose.fromData(e,t);case"/cosmos.crisis.v1beta1.MsgVerifyInvariant":return g.MsgVerifyInvariant.fromData(e,t);default:throw Error("not supported msg ".concat(e["@type"]))}},r.fromProto=function(e,t){switch(e.typeUrl){case"/cosmos.bank.v1beta1.MsgSend":return a.MsgSend.unpackAny(e,t);case"/cosmos.bank.v1beta1.MsgMultiSend":return a.MsgMultiSend.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress":return i.MsgSetWithdrawAddress.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward":return i.MsgWithdrawDelegatorReward.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgWithdrawValidatorCommission":return i.MsgWithdrawValidatorCommission.unpackAny(e,t);case"/cosmos.distribution.v1beta1.MsgFundCommunityPool":return i.MsgFundCommunityPool.unpackAny(e,t);case"/cosmos.feegrant.v1beta1.MsgGrantAllowance":return o.MsgGrantAllowance.unpackAny(e,t);case"/cosmos.feegrant.v1beta1.MsgRevokeAllowance":return o.MsgRevokeAllowance.unpackAny(e,t);case"/cosmos.gov.v1beta1.MsgDeposit":return s.MsgDeposit.unpackAny(e,t);case"/cosmos.gov.v1beta1.MsgSubmitProposal":return s.MsgSubmitProposal.unpackAny(e,t);case"/cosmos.gov.v1beta1.MsgVote":return s.MsgVote.unpackAny(e,t);case"/terra.market.v1beta1.MsgSwap":return c.MsgSwap.unpackAny(e,t);case"/terra.market.v1beta1.MsgSwapSend":return c.MsgSwapSend.unpackAny(e,t);case"/cosmos.authz.v1beta1.MsgGrant":return u.MsgGrantAuthorization.unpackAny(e,t);case"/cosmos.authz.v1beta1.MsgRevoke":return u.MsgRevokeAuthorization.unpackAny(e,t);case"/cosmos.authz.v1beta1.MsgExec":return u.MsgExecAuthorized.unpackAny(e,t);case"/terra.oracle.v1beta1.MsgDelegateFeedConsent":return d.MsgDelegateFeedConsent.unpackAny(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote":return d.MsgAggregateExchangeRatePrevote.unpackAny(e,t);case"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote":return d.MsgAggregateExchangeRateVote.unpackAny(e,t);case"/cosmos.slashing.v1beta1.MsgUnjail":return f.MsgUnjail.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgDelegate":return l.MsgDelegate.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgUndelegate":return l.MsgUndelegate.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgBeginRedelegate":return l.MsgBeginRedelegate.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgCreateValidator":return l.MsgCreateValidator.unpackAny(e,t);case"/cosmos.staking.v1beta1.MsgEditValidator":return l.MsgEditValidator.unpackAny(e,t);case"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount":return b.MsgCreatePeriodicVestingAccount.unpackAny(e,t);case"/cosmos.vesting.v1beta1.MsgCreateVestingAccount":return b.MsgCreateVestingAccount.unpackAny(e,t);case"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens":return b.MsgDonateAllVestingTokens.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgStoreCode":case"/cosmwasm.wasm.v1.MsgStoreCode":return p.MsgStoreCode.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgMigrateCode":return p.MsgMigrateCode.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgInstantiateContract":case"/cosmwasm.wasm.v1.MsgInstantiateContract":return p.MsgInstantiateContract.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgExecuteContract":case"/cosmwasm.wasm.v1.MsgExecuteContract":return p.MsgExecuteContract.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgMigrateContract":case"/cosmwasm.wasm.v1beta1.MsgMigrateContract":return p.MsgMigrateContract.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgUpdateContractAdmin":case"/cosmwasm.wasm.v1beta1.MsgUpdateAdmin":return p.MsgUpdateContractAdmin.unpackAny(e,t);case"/terra.wasm.v1beta1.MsgClearContractAdmin":case"/cosmwasm.wasm.v1.MsgClearAdmin":return p.MsgClearContractAdmin.unpackAny(e,t);case"/ibc.applications.transfer.v1.MsgTransfer":return h.MsgTransfer.unpackAny(e,t);case"/ibc.core.client.v1.MsgCreateClient":return y.MsgCreateClient.unpackAny(e,t);case"/ibc.core.client.v1.MsgUpdateClient":return y.MsgUpdateClient.unpackAny(e,t);case"/ibc.core.client.v1.MsgUpgradeClient":return y.MsgUpgradeClient.unpackAny(e,t);case"/ibc.core.client.v1.MsgSubmitMisbehaviour":return y.MsgSubmitMisbehaviour.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenInit":return m.MsgConnectionOpenInit.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenTry":return m.MsgConnectionOpenTry.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenConfirm":return m.MsgConnectionOpenConfirm.unpackAny(e,t);case"/ibc.core.connection.v1.MsgConnectionOpenAck":return m.MsgConnectionOpenAck.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenInit":return v.MsgChannelOpenInit.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenTry":return v.MsgChannelOpenTry.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenConfirm":return v.MsgChannelOpenConfirm.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelOpenAck":return v.MsgChannelOpenAck.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelCloseInit":return v.MsgChannelCloseInit.unpackAny(e,t);case"/ibc.core.channel.v1.MsgChannelCloseConfirm":return v.MsgChannelCloseConfirm.unpackAny(e,t);case"/ibc.core.channel.v1.MsgRecvPacket":return v.MsgRecvPacket.unpackAny(e,t);case"/ibc.core.channel.v1.MsgAcknowledgement":return v.MsgAcknowledgement.unpackAny(e,t);case"/ibc.core.channel.v1.MsgTimeout":return v.MsgTimeout.unpackAny(e,t);case"/ibc.core.channel.v1.MsgTimeoutOnClose":return v.MsgTimeoutOnClose.unpackAny(e,t);case"/cosmos.crisis.v1beta1.MsgVerifyInvariant":return g.MsgVerifyInvariant.unpackAny(e,t);default:throw Error("not supported msg ".concat(e.typeUrl))}}},73957:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSignature=void 0;var r=n(37378),a=n(329),i=n(84437),o=function(){function e(e){this.multisig_pubkey=e;var t=e.pubkeys.length;this.bitarray=a.CompactBitArray.fromBits(t),this.signatures=[]}return e.prototype.appendSignature=function(e,t){var n=this.bitarray.numTrueBitsBefore(t);this.bitarray.getIndex(t)?this.signatures[n]=e:(this.bitarray.setIndex(t,!0),n!=this.signatures.length?this.signatures.splice(n,0,e):this.signatures.push(e))},e.prototype.appendSignatureFromPubKey=function(e,t){var n=this.multisig_pubkey.pubkeys.findIndex((function(e){return e.key===t.key}));if(-1==n)throw new Error("provided key doesn't exist in public_keys");this.appendSignature(e,n)},e.prototype.appendSignatureV2s=function(e){for(var t=0,n=e;t127)throw new Error("Encoding numbers > 127 is not supported here. Please tell those lazy CosmJS maintainers to port the binary.PutUvarint implementation from the Go standard library and write some tests.");return[t]};(o=t.PublicKey||(t.PublicKey={})).fromAmino=function(e){switch(e.type){case"tendermint/PubKeySecp256k1":return w.fromAmino(e);case"tendermint/PubKeyMultisigThreshold":return x.fromAmino(e);case"tendermint/PubKeyEd25519":return _.fromAmino(e)}},o.fromData=function(e){switch(e["@type"]){case"/ethermint.crypto.v1.ethsecp256k1.PubKey":return w.fromData(e);case"/cosmos.crypto.multisig.LegacyAminoPubKey":return x.fromData(e);case"/cosmos.crypto.ed25519.PubKey":return _.fromData(e)}},o.fromProto=function(e){var t=e.typeUrl;if("/ethermint.crypto.v1.ethsecp256k1.PubKey"===t)return w.unpackAny(e);if("/cosmos.crypto.multisig.LegacyAminoPubKey"===t)return x.unpackAny(e);if("/cosmos.crypto.ed25519.PubKey"===t)return _.unpackAny(e);throw new Error("Pubkey type ".concat(t," not recognized"))};var w=function(e){function t(t){var n=e.call(this)||this;return n.key=t,n}return i(t,e),t.fromAmino=function(e){return new t(e.value)},t.prototype.toAmino=function(){return{type:"tendermint/PubKeySecp256k1",value:this.key}},t.fromData=function(e){return new t(e.key)},t.prototype.toData=function(){return{"@type":"/ethermint.crypto.v1.ethsecp256k1.PubKey",key:this.key}},t.fromProto=function(e){return new t(a.from(e.key).toString("base64"))},t.prototype.toProto=function(){return f.PubKey.fromPartial({key:a.from(this.key,"base64")})},t.prototype.packAny=function(){return d.Any.fromPartial({typeUrl:"/ethermint.crypto.v1.ethsecp256k1.PubKey",value:f.PubKey.encode(this.toProto()).finish()})},t.unpackAny=function(e){return t.fromProto(f.PubKey.decode(e.value))},t.prototype.encodeAminoPubkey=function(){return a.from(this.key,"base64")},t.prototype.rawAddress=function(){var e=a.from(this.key,"base64"),t="0x"+new p.ec("secp256k1").keyFromPublic(e).getPublic(!1,"hex"),n=(0,h.keccak256)((0,y.hexDataSlice)(t,1)),r=(0,y.hexDataSlice)(n,12);return a.from((0,m.stripHexPrefix)(r),"hex")},t.prototype.address=function(){return b.bech32.encode("xpla",b.bech32.toWords(this.rawAddress()))},t.prototype.pubkeyAddress=function(){return b.bech32.encode("xplapub",b.bech32.toWords(this.encodeAminoPubkey()))},t}(s.JSONSerializable);t.SimplePublicKey=w;var x=function(e){function t(t,n){var r=e.call(this)||this;return r.threshold=t,r.pubkeys=n,r}return i(t,e),t.prototype.encodeAminoPubkey=function(){var e=Array.from(g);e.push(8),e.push.apply(e,A(this.threshold));for(var t=0,n=this.pubkeys.map((function(e){return e.encodeAminoPubkey()}));t0?e.toFixed():void 0,revision_height:t>0?t.toFixed():void 0}},t.fromData=function(e){var n=e.revision_number,r=e.revision_height;return new t(Number.parseInt(n),Number.parseInt(r))},t.prototype.toData=function(){var e=this.revision_number,t=this.revision_height;return{revision_number:e.toFixed(),revision_height:t.toFixed()}},t.fromProto=function(e){return new t(e.revisionNumber.toNumber(),e.revisionHeight.toNumber())},t.prototype.toProto=function(){var e=this.revision_number,t=this.revision_height;return c.Height.fromPartial({revisionNumber:u.fromNumber(e),revisionHeight:u.fromNumber(t)})},t}(n(45034).JSONSerializable);t.Height=d},98510:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifiedClientState=void 0;var i=n(56820),o=function(e){function t(t,n){var r=e.call(this)||this;return r.client_id=t,r.client_state=n,r}return a(t,e),t.fromAmino=function(e){return new t(e.client_id,e.client_state)},t.prototype.toAmino=function(){return{client_id:this.client_id,client_state:this.client_state}},t.fromData=function(e){return new t(e.client_id,e.client_state)},t.prototype.toData=function(){return{client_id:this.client_id,client_state:this.client_state}},t.fromProto=function(e){return new t(e.clientId,e.clientState)},t.prototype.toProto=function(){var e=this.client_id,t=this.client_state;return i.IdentifiedClientState.fromPartial({clientId:e,clientState:t})},t}(n(45034).JSONSerializable);t.IdentifiedClientState=o},52619:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MerklePrefix=void 0;var o=n(88255),s=function(e){function t(t){var n=e.call(this)||this;return n.key_prefix=t,n}return i(t,e),t.fromAmino=function(e){return new t(e.key_prefix)},t.prototype.toAmino=function(){return{key_prefix:this.key_prefix}},t.fromData=function(e){return new t(e.key_prefix)},t.prototype.toData=function(){return{key_prefix:this.key_prefix}},t.fromProto=function(e){return new t(a.from(e.keyPrefix).toString("base64"))},t.prototype.toProto=function(){var e=this.key_prefix;return o.MerklePrefix.fromPartial({keyPrefix:a.from(e,"base64")})},t}(n(45034).JSONSerializable);t.MerklePrefix=s},64925:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Counterparty=void 0;var i=n(20594),o=n(45034),s=n(52619),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_id=t,a.connection_id=n,a.prefix=r,a}return a(t,e),t.fromAmino=function(e){var n=e.client_id,r=e.connection_id,a=e.prefix;return new t(n,r,a?s.MerklePrefix.fromAmino(a):void 0)},t.prototype.toAmino=function(){var e=this;return{client_id:e.client_id,connection_id:e.connection_id,prefix:e.prefix}},t.fromData=function(e){var n=e.client_id,r=e.connection_id,a=e.prefix;return new t(n,r,a?s.MerklePrefix.fromData(a):void 0)},t.prototype.toData=function(){var e=this,t=e.client_id,n=e.connection_id,r=e.prefix;return{client_id:t,connection_id:n,prefix:r?r.toData():void 0}},t.fromProto=function(e){return new t(e.clientId,e.connectionId,e.prefix?s.MerklePrefix.fromProto(e.prefix):void 0)},t.prototype.toProto=function(){var e=this,t=e.client_id,n=e.connection_id,r=e.prefix;return i.Counterparty.fromPartial({clientId:t,connectionId:n,prefix:r?r.toProto():void 0})},t}(o.JSONSerializable);t.Counterparty=c},81671:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifiedConnection=t.stateToJSON=t.stateFromJSON=t.State=void 0;var o=n(20594),s=n(45034),c=n(53013),u=n(20594);Object.defineProperty(t,"State",{enumerable:!0,get:function(){return u.State}}),Object.defineProperty(t,"stateFromJSON",{enumerable:!0,get:function(){return u.stateFromJSON}}),Object.defineProperty(t,"stateToJSON",{enumerable:!0,get:function(){return u.stateToJSON}});var d=n(64925),f=i(n(24141)),l=function(e){function t(t,n,r,a,i,o){var s=e.call(this)||this;return s.id=t,s.client_id=n,s.versions=r,s.state=a,s.counterparty=i,s.delay_period=o,s}return a(t,e),t.fromAmino=function(e){var n=e.id,r=e.client_id,a=e.versions,i=e.state,o=e.counterparty,s=e.delay_period;return new t(n,r,a.map(c.Version.fromAmino),(0,u.stateFromJSON)(i),o?d.Counterparty.fromAmino(o):void 0,Number.parseInt(s))},t.prototype.toAmino=function(){var e=this,t=e.id,n=e.client_id,r=e.versions,a=e.state,i=e.counterparty,o=e.delay_period;return{id:t,client_id:n,versions:r.map((function(e){return e.toAmino()})),state:(0,u.stateToJSON)(a),counterparty:null==i?void 0:i.toAmino(),delay_period:o.toFixed()}},t.fromData=function(e){var n=e.id,r=e.client_id,a=e.versions,i=e.state,o=e.counterparty,s=e.delay_period;return new t(n,r,a.map(c.Version.fromData),(0,u.stateFromJSON)(i),o?d.Counterparty.fromData(o):void 0,Number.parseInt(s))},t.prototype.toData=function(){var e=this,t=e.id,n=e.client_id,r=e.versions,a=e.state,i=e.counterparty,o=e.delay_period;return{id:t,client_id:n,versions:r.map((function(e){return e.toData()})),state:(0,u.stateToJSON)(a),counterparty:null==i?void 0:i.toData(),delay_period:o.toFixed()}},t.fromProto=function(e){return new t(e.id,e.clientId,e.versions.map(c.Version.fromProto),e.state,e.counterparty?d.Counterparty.fromProto(e.counterparty):void 0,e.delayPeriod.toNumber())},t.prototype.toProto=function(){var e=this,t=e.id,n=e.client_id,r=e.versions,a=e.state,i=e.counterparty,s=e.delay_period;return o.IdentifiedConnection.fromPartial({id:t,clientId:n,versions:r.map((function(e){return e.toProto()})),state:a,counterparty:null==i?void 0:i.toProto(),delayPeriod:f.default.fromNumber(s)})},t}(s.JSONSerializable);t.IdentifiedConnection=l},53013:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Version=void 0;var i=n(20594),o=function(e){function t(t,n){var r=e.call(this)||this;return r.identifier=t,r.features=n,r}return a(t,e),t.fromAmino=function(e){return new t(e.identifier,e.features)},t.prototype.toAmino=function(){return{identifier:this.identifier,features:this.features}},t.fromData=function(e){return new t(e.identifier,e.features)},t.prototype.toData=function(){return{identifier:this.identifier,features:this.features}},t.fromProto=function(e){return new t(e.identifier,e.features)},t.prototype.toProto=function(){var e=this.identifier,t=this.features;return i.Version.fromPartial({identifier:e,features:t})},t}(n(45034).JSONSerializable);t.Version=o},58955:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(64925),t),a(n(53013),t),a(n(81671),t)},25404:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Header=void 0;var i=n(45034),o=n(46362),s=n(29764),c=n(53006),u=n(58682),d=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.signedHeader=t,i.validatorSet=n,i.trustedHeight=r,i.trustedValidators=a,i}return a(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.signed_header,r=e.validator_set,a=e.trusted_height,i=e.trusted_validators;return new t(n?c.SignedHeader.fromData(n):void 0,r?c.ValidatorSet.fromData(r):void 0,a?s.Height.fromData(a):void 0,i?c.ValidatorSet.fromData(i):void 0)},t.prototype.toData=function(){var e=this,t=e.signedHeader,n=e.validatorSet,r=e.trustedHeight,a=e.trustedValidators;return{signed_header:(null==t?void 0:t.toData())||void 0,validator_set:(null==n?void 0:n.toData())||void 0,trusted_height:(null==r?void 0:r.toData())||void 0,trusted_validators:(null==a?void 0:a.toData())||void 0}},t.fromProto=function(e){var n=e.signedHeader,r=e.validatorSet,a=e.trustedHeight,i=e.trustedValidators;return new t(n?c.SignedHeader.fromProto(n):void 0,r?c.ValidatorSet.fromProto(r):void 0,a?s.Height.fromProto(a):void 0,i?c.ValidatorSet.fromProto(i):void 0)},t.prototype.toProto=function(){var e=this,t=e.signedHeader,n=e.validatorSet,r=e.trustedHeight,a=e.trustedValidators;return o.Header.fromPartial({signedHeader:(null==t?void 0:t.toProto())||void 0,validatorSet:(null==n?void 0:n.toProto())||void 0,trustedHeight:(null==r?void 0:r.toProto())||void 0,trustedValidators:(null==a?void 0:a.toProto())||void 0})},t.prototype.packAny=function(){return u.Any.fromPartial({typeUrl:"ibc.lightclients.tendermint.v1.Header",value:o.Header.encode(this.toProto()).finish()})},t.unpackAny=function(e){return t.fromProto(o.Header.decode(e.value))},t}(i.JSONSerializable);t.Header=d},62869:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelCloseConfirm=void 0;var o=n(45034),s=n(58682),c=n(29764),u=n(81492),d=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.port_id=t,o.channel_id=n,o.proof_init=r,o.proof_height=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel_id,i=e.proof_init,o=e.proof_height,s=e.signer;return new t(r,a,i,o?c.Height.fromData(o):void 0,s)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.proof_init,i=t.proof_height,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelCloseConfirm",port_id:n,channel_id:r,proof_init:a,proof_height:i?i.toData():void 0,signer:o}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,a.from(e.proofInit).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,i=t.proof_init,o=t.proof_height,s=t.signer;return u.MsgChannelCloseConfirm.fromPartial({portId:n,channelId:r,proofInit:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,signer:s})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelCloseConfirm",value:u.MsgChannelCloseConfirm.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgChannelCloseConfirm.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelCloseConfirm=d},34044:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelCloseInit=void 0;var i=n(45034),o=n(58682),s=n(81492),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.port_id=t,a.channel_id=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.port_id,e.channel_id,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.channel.v1.MsgChannelCloseInit",port_id:t.port_id,channel_id:t.channel_id,signer:t.signer}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.signer;return s.MsgChannelCloseInit.fromPartial({portId:n,channelId:r,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelCloseInit",value:s.MsgChannelCloseInit.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgChannelCloseInit.decode(e.value))},t}(i.JSONSerializable);t.MsgChannelCloseInit=c},26299:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenAck=void 0;var o=n(45034),s=n(58682),c=n(29764),u=n(81492),d=function(e){function t(t,n,r,a,i,o,s){var c=e.call(this)||this;return c.port_id=t,c.channel_id=n,c.counterparty_channel_id=r,c.counterparty_version=a,c.proof_try=i,c.proof_height=o,c.signer=s,c}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel_id,i=e.counterparty_channel_id,o=e.counterparty_version,s=e.proof_try,u=e.proof_height,d=e.signer;return new t(r,a,i,o,s,u?c.Height.fromData(u):void 0,d)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.counterparty_channel_id,i=t.counterparty_version,o=t.proof_try,s=t.proof_height,c=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenAck",port_id:n,channel_id:r,counterparty_channel_id:a,counterparty_version:i,proof_try:o,proof_height:s?s.toData():void 0,signer:c}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,e.counterpartyChannelId,e.counterpartyVersion,a.from(e.proofTry).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,i=t.counterparty_channel_id,o=t.counterparty_version,s=t.proof_try,c=t.proof_height,d=t.signer;return u.MsgChannelOpenAck.fromPartial({portId:n,channelId:r,counterpartyChannelId:i,counterpartyVersion:o,proofTry:a.from(s,"base64"),proofHeight:c?c.toProto():void 0,signer:d})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenAck",value:u.MsgChannelOpenAck.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgChannelOpenAck.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelOpenAck=d},70725:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenConfirm=void 0;var o=n(45034),s=n(58682),c=n(29764),u=n(81492),d=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.port_id=t,o.channel_id=n,o.proof_ack=r,o.proof_height=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel_id,i=e.proof_ack,o=e.proof_height,s=e.signer;return new t(r,a,i,o?c.Height.fromData(o):void 0,s)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel_id,a=t.proof_ack,i=t.proof_height,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenConfirm",port_id:n,channel_id:r,proof_ack:a,proof_height:i?i.toData():void 0,signer:o}},t.fromProto=function(e,n){return new t(e.portId,e.channelId,a.from(e.proofAck).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel_id,i=t.proof_ack,o=t.proof_height,s=t.signer;return u.MsgChannelOpenConfirm.fromPartial({portId:n,channelId:r,proofAck:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,signer:s})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenConfirm",value:u.MsgChannelOpenConfirm.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgChannelOpenConfirm.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelOpenConfirm=d},57487:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenInit=void 0;var i=n(45034),o=n(58682),s=n(71027),c=n(81492),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.port_id=t,a.channel=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.channel,i=e.signer;return new t(r,a?s.Channel.fromData(a):void 0,i)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.channel,a=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenInit",port_id:n,channel:r?r.toData():void 0,signer:a}},t.fromProto=function(e,n){return new t(e.portId,e.channel?s.Channel.fromProto(e.channel):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.channel,a=t.signer;return c.MsgChannelOpenInit.fromPartial({portId:n,channel:r?r.toProto():void 0,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenInit",value:c.MsgChannelOpenInit.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgChannelOpenInit.decode(e.value))},t}(i.JSONSerializable);t.MsgChannelOpenInit=u},81801:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgChannelOpenTry=void 0;var o=n(45034),s=n(58682),c=n(71027),u=n(29764),d=n(81492),f=function(e){function t(t,n,r,a,i,o,s){var c=e.call(this)||this;return c.port_id=t,c.previous_channel_id=n,c.channel=r,c.counterparty_version=a,c.proof_init=i,c.proof_height=o,c.signer=s,c}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.port_id,a=e.previous_channel_id,i=e.channel,o=e.counterparty_version,s=e.proof_init,d=e.proof_height,f=e.signer;return new t(r,a,i?c.Channel.fromData(i):void 0,o,s,d?u.Height.fromData(d):void 0,f)},t.prototype.toData=function(e){var t=this,n=t.port_id,r=t.previous_channel_id,a=t.channel,i=t.counterparty_version,o=t.proof_init,s=t.proof_height,c=t.signer;return{"@type":"/ibc.core.channel.v1.MsgChannelOpenTry",port_id:n,previous_channel_id:r,channel:a?a.toData():void 0,counterparty_version:i,proof_init:o,proof_height:s?s.toData():void 0,signer:c}},t.fromProto=function(e,n){return new t(e.portId,e.previousChannelId,e.channel?c.Channel.fromProto(e.channel):void 0,e.counterpartyVersion,a.from(e.proofInit).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.port_id,r=t.previous_channel_id,i=t.channel,o=t.counterparty_version,s=t.proof_init,c=t.proof_height,u=t.signer;return d.MsgChannelOpenTry.fromPartial({portId:n,previousChannelId:r,channel:i?i.toProto():void 0,counterpartyVersion:o,proofInit:a.from(s,"base64"),proofHeight:c?c.toProto():void 0,signer:u})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgChannelOpenTry",value:d.MsgChannelOpenTry.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgChannelOpenTry.decode(e.value))},t}(o.JSONSerializable);t.MsgChannelOpenTry=f},44660:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgAcknowledgement=void 0;var o=n(45034),s=n(58682),c=n(29764),u=n(69048),d=n(81492),f=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.packet=t,o.acknowledgement=n,o.proof_acked=r,o.proof_height=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.acknowledgement,i=e.proof_acked,o=e.proof_height,s=e.signer;return new t(r?u.Packet.fromData(r):void 0,i,a,o?c.Height.fromData(o):void 0,s)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.acknowledgement,a=t.proof_acked,i=t.proof_height,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgAcknowledgement",packet:n?n.toData():void 0,acknowledgement:r,proof_acked:a,proof_height:i?i.toData():void 0,signer:o}},t.fromProto=function(e,n){return new t(e.packet?u.Packet.fromProto(e.packet):void 0,a.from(e.acknowledgement).toString("base64"),a.from(e.proofAcked).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.acknowledgement,i=t.proof_acked,o=t.proof_height,s=t.signer;return d.MsgAcknowledgement.fromPartial({packet:n?n.toProto():void 0,acknowledgement:a.from(r,"base64"),proofAcked:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,signer:s})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgAcknowledgement",value:d.MsgAcknowledgement.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgAcknowledgement.decode(e.value))},t}(o.JSONSerializable);t.MsgAcknowledgement=f},31558:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgRecvPacket=void 0;var o=n(45034),s=n(58682),c=n(29764),u=n(69048),d=n(81492),f=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.packet=t,i.proof_commitment=n,i.proof_height=r,i.signer=a,i}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.proof_commitment,i=e.proof_height,o=e.signer;return new t(r?u.Packet.fromData(r):void 0,a,i?c.Height.fromData(i):void 0,o)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.proof_commitment,a=t.proof_height,i=t.signer;return{"@type":"/ibc.core.channel.v1.MsgRecvPacket",packet:n?n.toData():void 0,proof_commitment:r,proof_height:a?a.toData():void 0,signer:i}},t.fromProto=function(e,n){return new t(e.packet?u.Packet.fromProto(e.packet):void 0,a.from(e.proofCommitment).toString("base64"),e.proofHeight?c.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.proof_commitment,i=t.proof_height,o=t.signer;return d.MsgRecvPacket.fromPartial({packet:n?n.toProto():void 0,proofCommitment:a.from(r,"base64"),proofHeight:i?i.toProto():void 0,signer:o})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgRecvPacket",value:d.MsgRecvPacket.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgRecvPacket.decode(e.value))},t}(o.JSONSerializable);t.MsgRecvPacket=f},14672:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgTimeout=void 0;var s=n(45034),c=n(58682),u=n(29764),d=n(69048),f=n(81492),l=o(n(24141)),b=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.packet=t,o.proof_unreceived=n,o.proof_height=r,o.next_sequence_recv=a,o.signer=i,o}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.proof_unreceived,i=e.proof_height,o=e.next_sequence_recv,s=e.signer;return new t(r?d.Packet.fromData(r):void 0,a,i?u.Height.fromData(i):void 0,Number.parseInt(o),s)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.proof_unreceived,a=t.proof_height,i=t.next_sequence_recv,o=t.signer;return{"@type":"/ibc.core.channel.v1.MsgTimeout",packet:n?n.toData():void 0,proof_unreceived:r,proof_height:a?a.toData():void 0,next_sequence_recv:i.toFixed(),signer:o}},t.fromProto=function(e,n){return new t(e.packet?d.Packet.fromProto(e.packet):void 0,a.from(e.proofUnreceived).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.nextSequenceRecv.toNumber(),e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.proof_unreceived,i=t.proof_height,o=t.next_sequence_recv,s=t.signer;return f.MsgTimeout.fromPartial({packet:n?n.toProto():void 0,proofUnreceived:a.from(r,"base64"),proofHeight:i?i.toProto():void 0,nextSequenceRecv:l.default.fromNumber(o),signer:s})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgTimeout",value:f.MsgTimeout.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgTimeout.decode(e.value))},t}(s.JSONSerializable);t.MsgTimeout=b},83215:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgTimeoutOnClose=void 0;var s=n(45034),c=n(58682),u=n(29764),d=n(69048),f=n(81492),l=o(n(24141)),b=function(e){function t(t,n,r,a,i,o){var s=e.call(this)||this;return s.packet=t,s.proof_unreceived=n,s.proof_close=r,s.proof_height=a,s.next_sequence_recv=i,s.signer=o,s}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.packet,a=e.proof_unreceived,i=e.proof_close,o=e.proof_height,s=e.next_sequence_recv,c=e.signer;return new t(r?d.Packet.fromData(r):void 0,i,a,o?u.Height.fromData(o):void 0,Number.parseInt(s),c)},t.prototype.toData=function(e){var t=this,n=t.packet,r=t.proof_unreceived,a=t.proof_close,i=t.proof_height,o=t.next_sequence_recv,s=t.signer;return{"@type":"/ibc.core.channel.v1.MsgTimeoutOnClose",packet:n?n.toData():void 0,proof_unreceived:r,proof_close:a,proof_height:i?i.toData():void 0,next_sequence_recv:o.toFixed(),signer:s}},t.fromProto=function(e,n){return new t(e.packet?d.Packet.fromProto(e.packet):void 0,a.from(e.proofUnreceived).toString("base64"),a.from(e.proofClose).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.nextSequenceRecv.toNumber(),e.signer)},t.prototype.toProto=function(e){var t=this,n=t.packet,r=t.proof_unreceived,i=t.proof_close,o=t.proof_height,s=t.next_sequence_recv,c=t.signer;return f.MsgTimeoutOnClose.fromPartial({packet:n?n.toProto():void 0,proofUnreceived:a.from(r,"base64"),proofClose:a.from(i,"base64"),proofHeight:o?o.toProto():void 0,nextSequenceRecv:l.default.fromNumber(s),signer:c})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/ibc.core.channel.v1.MsgTimeoutOnClose",value:f.MsgTimeoutOnClose.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgTimeoutOnClose.decode(e.value))},t}(s.JSONSerializable);t.MsgTimeoutOnClose=b},44067:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(57487),t),a(n(81801),t),a(n(70725),t),a(n(26299),t),a(n(34044),t),a(n(62869),t),a(n(31558),t),a(n(44660),t),a(n(14672),t),a(n(83215),t)},22400:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreateClient=void 0;var i=n(45034),o=n(58682),s=n(41113),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_state=t,a.consensus_state=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.client_state,e.consensus_state,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.MsgCreateClient",client_state:t.client_state,consensus_state:t.consensus_state,signer:t.signer}},t.fromProto=function(e,n){return new t(e.clientState,e.consensusState,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_state,r=t.consensus_state,a=t.signer;return s.MsgCreateClient.fromPartial({clientState:n,consensusState:r,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgCreateClient",value:s.MsgCreateClient.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgCreateClient.decode(e.value))},t}(i.JSONSerializable);t.MsgCreateClient=c},35162:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgSubmitMisbehaviour=void 0;var i=n(45034),o=n(58682),s=n(41113),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_id=t,a.misbehaviour=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.client_id,e.misbehaviour,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.MsgSubmitMisbehaviour",client_id:t.client_id,misbehaviour:t.misbehaviour,signer:t.signer}},t.fromProto=function(e,n){return new t(e.clientId,e.misbehaviour,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.misbehaviour,a=t.signer;return s.MsgSubmitMisbehaviour.fromPartial({clientId:n,misbehaviour:r,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgSubmitMisbehaviour",value:s.MsgSubmitMisbehaviour.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgSubmitMisbehaviour.decode(e.value))},t}(i.JSONSerializable);t.MsgSubmitMisbehaviour=c},25403:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUpdateClient=void 0;var i=n(45034),o=n(58682),s=n(41113),c=n(25404),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.client_id=t,a.header=n,a.signer=r,a}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.client_id,a=e.header,i=e.signer;return new t(r,a?c.Header.fromData(a):void 0,i)},t.prototype.toData=function(e){var t=this,n=t.client_id,r=t.header,a=t.signer;return{"@type":"/ibc.core.client.v1.MsgUpdateClient",client_id:n,header:(null==r?void 0:r.toData())||void 0,signer:a}},t.fromProto=function(e,n){return new t(e.clientId,e.header?c.Header.unpackAny(e.header):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.header,a=t.signer;return s.MsgUpdateClient.fromPartial({clientId:n,header:(null==r?void 0:r.packAny())||void 0,signer:a})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgUpdateClient",value:s.MsgUpdateClient.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgUpdateClient.decode(e.value))},t}(i.JSONSerializable);t.MsgUpdateClient=u},80568:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUpgradeClient=void 0;var o=n(45034),s=n(58682),c=n(41113),u=function(e){function t(t,n,r,a,i,o){var s=e.call(this)||this;return s.client_id=t,s.client_state=n,s.consensus_state=r,s.proof_upgrade_client=a,s.proof_upgrade_consensus_state=i,s.signer=o,s}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){return new t(e.client_id,e.client_state,e.consensus_state,e.proof_upgrade_client,e.proof_upgrade_consensus_state,e.signer)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.MsgUpgradeClient",client_id:t.client_id,client_state:t.client_state,consensus_state:t.consensus_state,proof_upgrade_client:t.proof_upgrade_client,proof_upgrade_consensus_state:t.proof_upgrade_consensus_state,signer:t.signer}},t.fromProto=function(e,n){return new t(e.clientId,e.clientState,e.consensusState,a.from(e.proofUpgradeClient).toString("base64"),a.from(e.proofUpgradeConsensusState).toString("base64"),e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.client_state,i=t.consensus_state,o=t.proof_upgrade_client,s=t.proof_upgrade_consensus_state,u=t.signer;return c.MsgUpgradeClient.fromPartial({clientId:n,clientState:r,consensusState:i,proofUpgradeClient:a.from(o,"base64"),proofUpgradeConsensusState:a.from(s,"base64"),signer:u})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.client.v1.MsgUpgradeClient",value:c.MsgUpgradeClient.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgUpgradeClient.decode(e.value))},t}(o.JSONSerializable);t.MsgUpgradeClient=u},42666:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(22400),t),a(n(25403),t),a(n(80568),t),a(n(35162),t)},11083:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PublicKey=t.Proof=void 0;var u=n(54195),d=n(83811),f=c(n(24141)),l=n(45034),b=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.total=t,i.index=n,i.leafHash=r,i.aunts=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.total,r=e.index,a=e.leaf_hash,i=e.aunts;return new t(Number.parseInt(n),Number.parseInt(r),a,i)},t.prototype.toData=function(){var e=this,t=e.total,n=e.index,r=e.leafHash,a=e.aunts;return{total:t.toFixed(),index:n.toFixed(),leaf_hash:r,aunts:a}},t.fromProto=function(e){return new t(e.total.toNumber(),e.index.toNumber(),a.from(e.leafHash).toString("base64"),e.aunts.map((function(e){return a.from(e).toString("base64")})))},t.prototype.toProto=function(){var e=this,t=e.total,n=e.index,r=e.leafHash,i=e.aunts;return u.Proof.fromPartial({total:f.fromNumber(t),index:f.fromNumber(n),leafHash:a.from(r,"base64"),aunts:i.map((function(e){return a.from(e,"base64")}))})},t}(l.JSONSerializable);t.Proof=b;var p=function(e){function t(t,n){var r=e.call(this)||this;return r.ed25519=t,r.secp256k1=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){return new t(e.ed25519,e.secp256k1)},t.prototype.toData=function(){return{ed25519:this.ed25519,secp256k1:this.secp256k1}},t.fromProto=function(e){var n=e.ed25519,r=e.secp256k1;return new t(n?a.from(n).toString("base64"):void 0,r?a.from(r).toString("base64"):void 0)},t.prototype.toProto=function(){var e=this.ed25519,t=this.secp256k1;return d.PublicKey.fromPartial({ed25519:e?a.from(e,"base64"):void 0,secp256k1:t?a.from(t,"base64"):void 0})},t}(l.JSONSerializable);t.PublicKey=p},53006:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Validator=t.ValidatorSet=t.CommitSig=t.Commit=t.PartSetHeader=t.BlockID=t.SignedHeader=t.Header=void 0;var u=n(49203),d=n(52599),f=c(n(24141)),l=n(45034),b=n(62278),p=n(11083),h=function(e){function t(t,n,r,a,i,o,s,c,u,d,f,l,b,p){var h=e.call(this)||this;return h.version=t,h.chainId=n,h.height=r,h.time=a,h.lastBlockId=i,h.lastCommitHash=o,h.dataHash=s,h.validatorsHash=c,h.nextValidatorsHash=u,h.consensusHash=d,h.appHash=f,h.lastResultsHash=l,h.evidenceHash=b,h.proposerAddress=p,h}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.version,r=e.chain_id,a=e.height,i=e.time,o=e.last_block_id,s=e.last_commit_hash,c=e.data_hash,u=e.validators_hash,d=e.next_validators_hash,f=e.consensus_hash,l=e.app_hash,p=e.last_results_hash,h=e.evidence_hash,y=e.proposer_address;return new t(n?b.Consensus.fromData(n):void 0,r,a,i?new Date(i):void 0,o?m.fromData(o):void 0,s,c,u,d,f,l,p,h,y)},t.prototype.toData=function(){var e=this,t=e.version,n=e.chainId,r=e.height,a=e.time,i=e.lastBlockId,o=e.lastCommitHash,s=e.dataHash,c=e.validatorsHash,u=e.nextValidatorsHash,d=e.consensusHash,f=e.appHash,l=e.lastResultsHash,b=e.evidenceHash,p=e.proposerAddress;return{version:null==t?void 0:t.toData(),chain_id:n,height:r,time:a?a.toISOString().replace(/\.000Z$/,"Z"):void 0,last_block_id:i?i.toData():void 0,last_commit_hash:o,data_hash:s,validators_hash:c,next_validators_hash:u,consensus_hash:d,app_hash:f,last_results_hash:l,evidence_hash:b,proposer_address:p}},t.fromProto=function(e){var n=e.version,r=e.chainId,i=e.height,o=e.time,s=e.lastBlockId,c=e.lastCommitHash,u=e.dataHash,d=e.validatorsHash,f=e.nextValidatorsHash,l=e.consensusHash,p=e.appHash,h=e.lastResultsHash,y=e.evidenceHash,v=e.proposerAddress;return new t(n?b.Consensus.fromProto(n):void 0,r,i.toString(),o,s?m.fromProto(s):void 0,a.from(c).toString("base64"),a.from(u).toString("base64"),a.from(d).toString("base64"),a.from(f).toString("base64"),a.from(l).toString("base64"),a.from(p).toString("base64"),a.from(h).toString("base64"),a.from(y).toString("base64"),v.toString())},t.prototype.toProto=function(){var e=this,t=e.version,n=e.chainId,r=e.height,i=e.time,o=e.lastBlockId,s=e.lastCommitHash,c=e.dataHash,d=e.validatorsHash,l=e.nextValidatorsHash,b=e.consensusHash,p=e.appHash,h=e.lastResultsHash,y=e.evidenceHash,m=e.proposerAddress;return u.Header.fromPartial({version:null==t?void 0:t.toProto(),chainId:n,height:f.fromString(r),time:i,lastBlockId:null==o?void 0:o.toProto(),lastCommitHash:a.from(s,"base64"),dataHash:a.from(c,"base64"),validatorsHash:a.from(d,"base64"),nextValidatorsHash:a.from(l,"base64"),consensusHash:a.from(b,"base64"),appHash:a.from(p,"base64"),lastResultsHash:a.from(h,"base64"),evidenceHash:a.from(y,"base64"),proposerAddress:a.from(m)})},t}(l.JSONSerializable);t.Header=h;var y=function(e){function t(t,n){var r=e.call(this)||this;return r.header=t,r.commit=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.header,r=e.commit;return new t(n?h.fromData(n):void 0,r?g.fromData(r):void 0)},t.prototype.toData=function(){var e=this.header,t=this.commit;return{header:null==e?void 0:e.toData(),commit:null==t?void 0:t.toData()}},t.fromProto=function(e){return new t(e.header?h.fromProto(e.header):void 0,e.commit?g.fromProto(e.commit):void 0)},t.prototype.toProto=function(){var e=this.header,t=this.commit;return u.SignedHeader.fromPartial({header:null==e?void 0:e.toProto(),commit:null==t?void 0:t.toProto()})},t}(l.JSONSerializable);t.SignedHeader=y;var m=function(e){function t(t,n){var r=e.call(this)||this;return r.hash=t,r.partSetHeader=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.hash,r=e.part_set_header;return new t(n,r?v.fromData(r):void 0)},t.prototype.toData=function(){var e=this.hash,t=this.partSetHeader;return{hash:e,part_set_header:null==t?void 0:t.toData()}},t.fromProto=function(e){return new t(a.from(e.hash).toString("base64"),e.partSetHeader?v.fromProto(e.partSetHeader):void 0)},t.prototype.toProto=function(){var e=this.hash,t=this.partSetHeader;return u.BlockID.fromPartial({hash:a.from(e,"base64"),partSetHeader:t?t.toProto():void 0})},t}(l.JSONSerializable);t.BlockID=m;var v=function(e){function t(t,n){var r=e.call(this)||this;return r.total=t,r.hash=n,r}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.total,r=e.hash;return new t(parseInt(n),r)},t.prototype.toData=function(){var e=this.total,t=this.hash;return{total:e.toFixed(),hash:t}},t.fromProto=function(e){return new t(e.total,a.from(e.hash).toString("base64"))},t.prototype.toProto=function(){var e=this.total,t=this.hash;return u.PartSetHeader.fromPartial({total:e,hash:a.from(t,"base64")})},t}(l.JSONSerializable);t.PartSetHeader=v;var g=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.height=t,i.round=n,i.blockId=r,i.signatures=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.height,r=e.round,a=e.block_id,i=e.signatures;return new t(f.fromString(n),Number.parseInt(r),a?m.fromData(a):void 0,i.map((function(e){return A.fromData(e)})))},t.prototype.toData=function(){var e=this,t=e.height,n=e.round,r=e.blockId,a=e.signatures;return{height:t.toString(),round:n.toFixed(),block_id:null==r?void 0:r.toData(),signatures:a.map((function(e){return e.toData()}))}},t.fromProto=function(e){var n=e.height,r=e.round,a=e.blockId,i=e.signatures;return new t(n,r,a?m.fromProto(a):void 0,i.map((function(e){return A.fromProto(e)})))},t.prototype.toProto=function(){var e=this,t=e.height,n=e.round,r=e.blockId,a=e.signatures;return u.Commit.fromPartial({height:t,round:n,blockId:null==r?void 0:r.toProto(),signatures:a.map((function(e){return e.toProto()}))})},t}(l.JSONSerializable);t.Commit=g;var A=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.blockIdFlag=t,i.validatorAddress=n,i.timestamp=r,i.signature=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.block_id_flag,r=e.validator_address,a=e.timestamp,i=e.signature;return new t((0,u.blockIDFlagFromJSON)(n),r,a?new Date(a):void 0,i)},t.prototype.toData=function(){var e=this,t=e.blockIdFlag,n=e.validatorAddress,r=e.timestamp,a=e.signature;return{block_id_flag:(0,u.blockIDFlagToJSON)(t),validator_address:n||"",timestamp:r?r.toISOString().replace(/\.000Z$/,"Z"):void 0,signature:a||""}},t.fromProto=function(e){var n=e.blockIdFlag,r=e.validatorAddress,i=e.timestamp,o=e.signature;return new t(n,a.from(r).toString("base64"),i,a.from(o).toString("base64"))},t.prototype.toProto=function(){var e=this,t=e.blockIdFlag,n=e.validatorAddress,r=e.timestamp,i=e.signature;return u.CommitSig.fromPartial({blockIdFlag:t,validatorAddress:n?a.from(n,"base64"):void 0,timestamp:r,signature:i?a.from(i,"base64"):void 0})},t}(l.JSONSerializable);t.CommitSig=A;var w=function(e){function t(t,n,r){var a=e.call(this)||this;return a.validators=t,a.proposer=n,a.totalVotingPower=r,a}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.validators,r=e.proposer,a=e.total_voting_power;return new t(n.map((function(e){return x.fromData(e)})),r?x.fromData(r):void 0,f.fromString(a))},t.prototype.toData=function(){var e=this,t=e.validators,n=e.proposer,r=e.totalVotingPower;return{validators:t.map((function(e){return e.toData()})),proposer:null==n?void 0:n.toData(),total_voting_power:r.toString()}},t.fromProto=function(e){var n=e.validators,r=e.proposer,a=e.totalVotingPower;return new t(n.map((function(e){return x.fromProto(e)})),r?x.fromProto(r):void 0,a)},t.prototype.toProto=function(){var e=this,t=e.validators,n=e.proposer,r=e.totalVotingPower;return d.ValidatorSet.fromPartial({validators:t.map((function(e){return e.toProto()})),proposer:(null==n?void 0:n.toProto())||void 0,totalVotingPower:r})},t}(l.JSONSerializable);t.ValidatorSet=w;var x=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.address=t,i.pubKey=n,i.votingPower=r,i.proposerPriority=a,i}return i(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.address,r=e.pub_key,a=e.voting_power,i=e.proposer_priority;return new t(n,r?p.PublicKey.fromData(r):void 0,f.fromString(a),f.fromString(i))},t.prototype.toData=function(){var e=this,t=e.address,n=e.pubKey,r=e.votingPower,a=e.proposerPriority;return{address:t,pub_key:null==n?void 0:n.toData(),voting_power:r.toString(),proposer_priority:a.toString()}},t.fromProto=function(e){var n=e.address,r=e.pubKey,i=e.votingPower,o=e.proposerPriority;return new t(a.from(n).toString("base64"),r?p.PublicKey.fromProto(r):void 0,i,o)},t.prototype.toProto=function(){var e=this,t=e.address,n=e.pubKey,r=e.votingPower,i=e.proposerPriority;return d.Validator.fromPartial({address:a.from(t,"base64"),pubKey:(null==n?void 0:n.toProto())||void 0,votingPower:r,proposerPriority:i})},t}(l.JSONSerializable);t.Validator=x},62278:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.App=t.Consensus=void 0;var c=n(12362),u=n(12362),d=s(n(24141)),f=n(45034),l=function(e){function t(t,n){var r=e.call(this)||this;return r.block=t,r.app=n,r}return a(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.block,r=e.app;return new t(Number.parseInt(n),Number.parseInt(r))},t.prototype.toData=function(){var e=this.block,t=this.app;return{block:e.toFixed(),app:t.toFixed()}},t.fromProto=function(e){return new t(e.block.toNumber(),e.app.toNumber())},t.prototype.toProto=function(){var e=this.block,t=this.app;return c.Consensus.fromPartial({block:d.fromNumber(e),app:d.fromNumber(t)})},t}(f.JSONSerializable);t.Consensus=l;var b=function(e){function t(t,n){var r=e.call(this)||this;return r.protocol=t,r.software=n,r}return a(t,e),t.fromAmino=function(e){throw new Error("Amino not supported")},t.prototype.toAmino=function(){throw new Error("Amino not supported")},t.fromData=function(e){var n=e.protocol,r=e.software;return new t(Number.parseInt(n),r)},t.prototype.toData=function(){var e=this.protocol,t=this.software;return{protocol:e.toFixed(),software:t}},t.fromProto=function(e){return new t(e.protocol.toNumber(),e.software)},t.prototype.toProto=function(){var e=this.protocol,t=this.software;return u.App.fromPartial({protocol:d.fromNumber(e),software:t})},t}(f.JSONSerializable);t.App=b},52711:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenAck=void 0;var o=n(45034),s=n(58682),c=n(53013),u=n(41794),d=n(29764),f=function(e){function t(t,n,r,a,i,o,s,c,u,d){var f=e.call(this)||this;return f.connection_id=t,f.counterparty_connection_id=n,f.version=r,f.client_state=a,f.proof_height=i,f.proof_try=o,f.proof_client=s,f.proof_consensus=c,f.consensus_height=u,f.signer=d,f}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.connection_id,a=e.counterparty_connection_id,i=e.version,o=e.client_state,s=e.proof_height,u=e.proof_try,f=e.proof_client,l=e.proof_consensus,b=e.consensus_height,p=e.signer;return new t(r,a,i?c.Version.fromData(i):void 0,o,s?d.Height.fromData(s):void 0,u,f,l,b?d.Height.fromData(b):void 0,p)},t.prototype.toData=function(e){var t=this,n=t.connection_id,r=t.counterparty_connection_id,a=t.version,i=t.client_state,o=t.proof_height,s=t.proof_try,c=t.proof_client,u=t.proof_consensus,d=t.consensus_height,f=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenAck",connection_id:n,counterparty_connection_id:r,version:a?a.toData():void 0,client_state:i,proof_height:o?o.toData():void 0,proof_try:s,proof_client:c,proof_consensus:u,consensus_height:d?d.toData():void 0,signer:f}},t.fromProto=function(e,n){return new t(e.connectionId,e.counterpartyConnectionId,e.version?c.Version.fromProto(e.version):void 0,e.clientState,e.proofHeight?d.Height.fromProto(e.proofHeight):void 0,a.from(e.proofTry).toString("base64"),a.from(e.proofClient).toString("base64"),a.from(e.proofConsensus).toString("base64"),e.consensusHeight?d.Height.fromProto(e.consensusHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.connection_id,r=t.counterparty_connection_id,i=t.version,o=t.client_state,s=t.proof_height,c=t.proof_try,d=t.proof_client,f=t.proof_consensus,l=t.consensus_height,b=t.signer;return u.MsgConnectionOpenAck.fromPartial({connectionId:n,counterpartyConnectionId:r,version:i?i.toProto():void 0,clientState:o,proofHeight:s?s.toProto():void 0,proofTry:a.from(c,"base64"),proofClient:a.from(d,"base64"),proofConsensus:a.from(f,"base64"),consensusHeight:l?l.toProto():void 0,signer:b})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenAck",value:u.MsgConnectionOpenAck.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgConnectionOpenAck.decode(e.value))},t}(o.JSONSerializable);t.MsgConnectionOpenAck=f},16272:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenConfirm=void 0;var o=n(45034),s=n(58682),c=n(41794),u=n(29764),d=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.connection_id=t,i.proof_ack=n,i.proof_height=r,i.signer=a,i}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.connection_id,a=e.proof_ack,i=e.proof_height,o=e.signer;return new t(r,a,i?u.Height.fromData(i):void 0,o)},t.prototype.toData=function(e){var t=this,n=t.connection_id,r=t.proof_ack,a=t.proof_height,i=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenConfirm",connection_id:n,proof_ack:r,proof_height:a?a.toData():void 0,signer:i}},t.fromProto=function(e,n){return new t(e.connectionId,a.from(e.proofAck).toString("base64"),e.proofHeight?u.Height.fromProto(e.proofHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.connection_id,r=t.proof_ack,i=t.proof_height,o=t.signer;return c.MsgConnectionOpenConfirm.fromPartial({connectionId:n,proofAck:a.from(r,"base64"),proofHeight:i?i.toProto():void 0,signer:o})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenConfirm",value:c.MsgConnectionOpenConfirm.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgConnectionOpenConfirm.decode(e.value))},t}(o.JSONSerializable);t.MsgConnectionOpenConfirm=d},57697:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenInit=void 0;var o=n(45034),s=n(58682),c=n(64925),u=n(53013),d=n(41794),f=i(n(24141)),l=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.client_id=t,o.delay_period=n,o.signer=r,o.counterparty=a,o.version=i,o}return a(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.client_id,a=e.counterparty,i=e.version,o=e.delay_period,s=e.signer;return new t(r,Number.parseInt(o),s,a?c.Counterparty.fromData(a):void 0,i?u.Version.fromData(i):void 0)},t.prototype.toData=function(e){var t=this,n=t.client_id,r=t.counterparty,a=t.version,i=t.delay_period,o=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenInit",client_id:n,delay_period:i.toFixed(),signer:o,counterparty:r?r.toData():void 0,version:a?a.toData():void 0}},t.fromProto=function(e,n){return new t(e.clientId,e.delayPeriod.toNumber(),e.signer,e.counterparty?c.Counterparty.fromProto(e.counterparty):void 0,e.version?u.Version.fromProto(e.version):void 0)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.counterparty,a=t.version,i=t.delay_period,o=t.signer;return d.MsgConnectionOpenInit.fromPartial({clientId:n,delayPeriod:f.default.fromNumber(i),signer:o,counterparty:r?r.toProto():void 0,version:a?a.toProto():void 0})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenInit",value:d.MsgConnectionOpenInit.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgConnectionOpenInit.decode(e.value))},t}(o.JSONSerializable);t.MsgConnectionOpenInit=l},12085:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgConnectionOpenTry=void 0;var s=n(45034),c=n(58682),u=n(64925),d=n(53013),f=n(41794),l=o(n(24141)),b=n(29764),p=function(e){function t(t,n,r,a,i,o,s,c,u,d,f,l){var b=e.call(this)||this;return b.client_id=t,b.previous_connection_id=n,b.client_state=r,b.counterparty=a,b.delay_period=i,b.counterparty_versions=o,b.proof_height=s,b.proof_init=c,b.proof_client=u,b.proof_consensus=d,b.consensus_height=f,b.signer=l,b}return i(t,e),t.fromAmino=function(e,t){throw new Error("Amino not supported")},t.prototype.toAmino=function(e){throw new Error("Amino not supported")},t.fromData=function(e,n){var r=e.client_id,i=e.previous_connection_id,o=e.client_state,s=e.counterparty,c=e.delay_period,f=e.counterparty_versions,l=e.proof_height,p=e.proof_init,h=e.proof_client,y=e.proof_consensus,m=e.consensus_height,v=e.signer;return new t(r,i,o,s?u.Counterparty.fromData(s):void 0,Number.parseInt(c),f.length>0?f.map((function(e){return d.Version.fromData(e)})):[],l?b.Height.fromData(l):void 0,a.from(p).toString("base64"),a.from(h).toString("base64"),a.from(y).toString("base64"),m?b.Height.fromData(m):void 0,v)},t.prototype.toData=function(e){var t=this,n=t.client_id,r=t.previous_connection_id,a=t.client_state,i=t.counterparty,o=t.delay_period,s=t.counterparty_versions,c=t.proof_height,u=t.proof_init,d=t.proof_client,f=t.proof_consensus,l=t.consensus_height,b=t.signer;return{"@type":"/ibc.core.connection.v1.MsgConnectionOpenTry",client_id:n,previous_connection_id:r,client_state:a,counterparty:i?i.toData():void 0,delay_period:o.toFixed(),counterparty_versions:s.length>0?s.map((function(e){return e.toData()})):[],proof_height:c?c.toData():void 0,proof_init:u,proof_client:d,proof_consensus:f,consensus_height:l?l.toData():void 0,signer:b}},t.fromProto=function(e,n){return new t(e.clientId,e.previousConnectionId,e.clientState,e.counterparty?u.Counterparty.fromProto(e.counterparty):void 0,e.delayPeriod.toNumber(),e.counterpartyVersions.length>0?e.counterpartyVersions.map((function(e){return d.Version.fromProto(e)})):[],e.proofHeight?b.Height.fromProto(e.proofHeight):void 0,a.from(e.proofInit).toString("base64"),a.from(e.proofClient).toString("base64"),a.from(e.proofConsensus).toString("base64"),e.consensusHeight?b.Height.fromProto(e.consensusHeight):void 0,e.signer)},t.prototype.toProto=function(e){var t=this,n=t.client_id,r=t.previous_connection_id,i=t.client_state,o=t.counterparty,s=t.delay_period,c=t.counterparty_versions,u=t.proof_height,d=t.proof_init,b=t.proof_client,p=t.proof_consensus,h=t.consensus_height,y=t.signer;return f.MsgConnectionOpenTry.fromPartial({clientId:n,previousConnectionId:r,clientState:i.toProto(),counterparty:o?o.toProto():void 0,delayPeriod:l.default.fromNumber(s),counterpartyVersions:c.length>0?c.map((function(e){return e.toProto()})):[],proofHeight:u?u.toProto():void 0,proofInit:a.from(d,"base64"),proofClient:a.from(b,"base64"),proofConsensus:a.from(p,"base64"),consensusHeight:h?h.toProto():void 0,signer:y})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/ibc.core.connection.v1.MsgConnectionOpenTry",value:f.MsgConnectionOpenTry.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(f.MsgConnectionOpenTry.decode(e.value))},t}(s.JSONSerializable);t.MsgConnectionOpenTry=p},82896:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(57697),t),a(n(12085),t),a(n(16272),t),a(n(52711),t)},11394:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientUpdateProposal=void 0;var i=n(45034),o=n(58682),s=n(56820),c=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.title=t,i.description=n,i.subjectClientId=r,i.substituteClientId=a,i}return a(t,e),t.fromAmino=function(e,n){var r=e.value;return new t(r.title,r.description,r.subjectClientId,r.substituteClientId)},t.prototype.toAmino=function(e){var t=this;return{type:"ibc/ClientUpdateProposal",value:{title:t.title,description:t.description,subjectClientId:t.subjectClientId,substituteClientId:t.substituteClientId}}},t.fromData=function(e,n){return new t(e.title,e.description,e.subject_client_id,e.substitute_client_id)},t.prototype.toData=function(e){var t=this;return{"@type":"/ibc.core.client.v1.ClientUpdateProposal",title:t.title,description:t.description,subject_client_id:t.subjectClientId,substitute_client_id:t.substituteClientId}},t.fromProto=function(e,n){return new t(e.title,e.description,e.subjectClientId,e.substituteClientId)},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,a=t.subjectClientId,i=t.substituteClientId;return s.ClientUpdateProposal.fromPartial({subjectClientId:a,substituteClientId:i,description:r,title:n})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/ibc.core.client.v1.ClientUpdateProposal",value:s.ClientUpdateProposal.encode(this.toProto()).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.ClientUpdateProposal.decode(e.value))},t}(i.JSONSerializable);t.ClientUpdateProposal=c},92373:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(11394),t)},18749:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(94025),t),a(n(81640),t),a(n(8880),t),a(n(90509),t),a(n(18152),t),a(n(21879),t),a(n(37378),t),a(n(71758),t),a(n(39313),t),a(n(53143),t),a(n(91901),t),a(n(81008),t),a(n(83408),t),a(n(84437),t),a(n(73957),t),a(n(52616),t),a(n(13975),t),a(n(50821),t),a(n(29680),t),a(n(62774),t),a(n(9856),t),a(n(64610),t),a(n(46311),t),a(n(66094),t),a(n(71608),t),a(n(16535),t),a(n(4252),t),a(n(21791),t),a(n(79453),t),a(n(71073),t),a(n(97819),t),a(n(37747),t),a(n(76849),t),a(n(12266),t),a(n(86679),t),a(n(55083),t),a(n(40271),t),a(n(15070),t),a(n(44871),t),a(n(94964),t),a(n(67170),t),a(n(29877),t),a(n(71188),t),a(n(29401),t),a(n(88654),t),a(n(16945),t),a(n(27182),t),a(n(578),t),a(n(62218),t),a(n(63525),t),a(n(81225),t),a(n(44067),t),a(n(42666),t),a(n(82896),t),a(n(42491),t),a(n(43282),t)},35210:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgSwap=void 0;var i=n(45034),o=n(81640),s=n(79164),c=n(27213),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.trader=t,a.offer_coin=n,a.ask_denom=r,a}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.trader,i=r.offer_coin,s=r.ask_denom;return new t(a,o.Coin.fromAmino(i),s)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.trader,r=t.offer_coin,a=t.ask_denom;return{type:"market/MsgSwap",value:{trader:n,offer_coin:r.toAmino(),ask_denom:a}}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.trader,o.Coin.fromProto(e.offerCoin),e.askDenom)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.trader,r=t.offer_coin,a=t.ask_denom;return s.MsgSwap.fromPartial({askDenom:a,offerCoin:r.toProto(),trader:n})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/terra.market.v1beta1.MsgSwap",value:s.MsgSwap.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.MsgSwap.decode(e.value),n)},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.trader,a=e.offer_coin,i=e.ask_denom;return new t(r,o.Coin.fromData(a),i)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.trader,r=t.offer_coin,a=t.ask_denom;return{"@type":"/terra.market.v1beta1.MsgSwap",trader:n,offer_coin:r.toData(),ask_denom:a}},t}(i.JSONSerializable);t.MsgSwap=u},43490:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgSwapSend=void 0;var i=n(45034),o=n(81640),s=n(27213),c=n(79164),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.from_address=t,i.to_address=n,i.offer_coin=r,i.ask_denom=a,i}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.from_address,i=r.to_address,s=r.offer_coin,c=r.ask_denom;return new t(a,i,o.Coin.fromAmino(s),c)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.offer_coin,i=t.ask_denom;return{type:"market/MsgSwapSend",value:{from_address:n,to_address:r,offer_coin:a.toAmino(),ask_denom:i}}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.fromAddress,e.toAddress,o.Coin.fromProto(e.offerCoin),e.askDenom)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.offer_coin,i=t.ask_denom;return c.MsgSwapSend.fromPartial({askDenom:i,fromAddress:n,offerCoin:a.toProto(),toAddress:r})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return s.Any.fromPartial({typeUrl:"/terra.market.v1beta1.MsgSwapSend",value:c.MsgSwapSend.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(c.MsgSwapSend.decode(e.value),n)},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.from_address,a=e.to_address,i=e.offer_coin,s=e.ask_denom;return new t(r,a,o.Coin.fromData(i),s)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.offer_coin,i=t.ask_denom;return{"@type":"/terra.market.v1beta1.MsgSwapSend",from_address:n,to_address:r,offer_coin:a.toData(),ask_denom:i}},t}(i.JSONSerializable);t.MsgSwapSend=u},37747:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(35210),t),a(n(43490),t)},21879:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.int=t.dec=t.Int=t.Dec=t.Numeric=t.DEC_PRECISION=void 0;var o,s=i(n(85363));t.DEC_PRECISION=18,s.default.set({precision:64,rounding:3}),function(e){e.parse=function(e){if(e instanceof c)return e;if("string"==typeof e)return e.includes(".")?new c(e):new u(e);var t=new s.default(e);return t.isInteger()?new u(t):new c(t.toString())}}(o=t.Numeric||(t.Numeric={}));var c=function(e){function n(t){return e.call(this,(null!=t?t:0).toString())||this}return a(n,e),n.prototype.toString=function(){return this.toFixed(t.DEC_PRECISION)},n.withPrec=function(e,t){return new n(new n(e).div(Math.pow(10,t)))},n.prototype.toInt=function(){return new u(this)},n.prototype.add=function(t){var r=new n(o.parse(t));return new n(e.prototype.add.call(this,r))},n.prototype.sub=function(t){var r=new n(o.parse(t));return new n(e.prototype.sub.call(this,r))},n.prototype.mul=function(t){var r=new n(o.parse(t));return new n(e.prototype.mul.call(this,r))},n.prototype.div=function(t){var r=new n(o.parse(t));return new n(e.prototype.div.call(this,r))},n.prototype.mod=function(t){var r=new n(o.parse(t));return new n(e.prototype.mod.call(this,r))},n}(s.default);t.Dec=c;var u=function(e){function t(t){var n=new s.default((null!=t?t:0).toString());return e.call(this,n.divToInt(1))||this}return a(t,e),t.prototype.toString=function(){return this.toFixed()},t.prototype.toDec=function(){return new c(this)},t.prototype.add=function(e){var n=o.parse(e);return n instanceof c?new c(this).add(n):new t(this.plus(n))},t.prototype.sub=function(e){var n=o.parse(e);return n instanceof c?new c(this).sub(n):new t(this.minus(n))},t.prototype.mul=function(e){var n=o.parse(e);return n instanceof c?new c(this).mul(n):new t(this.times(n))},t.prototype.div=function(n){var r=o.parse(n);return r instanceof c?new c(this).div(r):new t(e.prototype.div.call(this,r))},t.prototype.mod=function(n){var r=o.parse(n);return r instanceof c?new c(this).mod(r):new t(e.prototype.mod.call(this,r))},t}(s.default.clone());t.Int=u,t.dec=function(e){return new c(e[0])},t.int=function(e){return new u(e[0])}},55083:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AggregateExchangeRatePrevote=void 0;var c=n(45034),u=n(28097),d=s(n(24141)),f=function(e){function t(t,n,r){var a=e.call(this)||this;return a.hash=t,a.voter=n,a.submit_block=r,a}return a(t,e),t.fromAmino=function(e){var n=e.hash,r=e.voter,a=e.submit_block;return new t(n,r,Number.parseInt(a))},t.prototype.toAmino=function(){var e=this;return{hash:e.hash,voter:e.voter,submit_block:e.submit_block.toFixed()}},t.fromData=function(e){var n=e.hash,r=e.voter,a=e.submit_block;return new t(n,r,Number.parseInt(a))},t.prototype.toData=function(){var e=this;return{hash:e.hash,voter:e.voter,submit_block:e.submit_block.toFixed()}},t.fromProto=function(e){return new t(e.hash,e.voter,e.submitBlock.toNumber())},t.prototype.toProto=function(){var e=this,t=e.hash,n=e.voter,r=e.submit_block;return u.AggregateExchangeRatePrevote.fromPartial({hash:t,submitBlock:d.fromNumber(r),voter:n})},t}(c.JSONSerializable);t.AggregateExchangeRatePrevote=f},40271:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExchangeRateTuple=t.AggregateExchangeRateVote=void 0;var i=n(45034),o=n(28097),s=n(21879),c=function(e){function t(t,n){var r=e.call(this)||this;return r.exchange_rate_tuples=t,r.voter=n,r}return a(t,e),t.fromAmino=function(e){var n=e.exchange_rate_tuples,r=e.voter;return new t(n.map((function(e){return u.fromAmino(e)})),r)},t.prototype.toAmino=function(){var e=this.exchange_rate_tuples,t=this.voter;return{exchange_rate_tuples:e.map((function(e){return e.toAmino()})),voter:t}},t.fromData=function(e){var n=e.exchange_rate_tuples,r=e.voter;return new t(n.map((function(e){return u.fromData(e)})),r)},t.prototype.toData=function(){var e=this.exchange_rate_tuples,t=this.voter;return{exchange_rate_tuples:e.map((function(e){return e.toData()})),voter:t}},t.fromProto=function(e){return new t(e.exchangeRateTuples.map((function(e){return u.fromProto(e)})),e.voter)},t.prototype.toProto=function(){var e=this.exchange_rate_tuples,t=this.voter;return o.AggregateExchangeRateVote.fromPartial({exchangeRateTuples:e.map((function(e){return e.toProto()})),voter:t})},t}(i.JSONSerializable);t.AggregateExchangeRateVote=c;var u=function(e){function t(t,n){var r=e.call(this)||this;return r.denom=t,r.exchange_rate=new s.Dec(n),r}return a(t,e),t.fromAmino=function(e){return new t(e.denom,e.exchange_rate)},t.prototype.toAmino=function(){return{denom:this.denom,exchange_rate:this.exchange_rate.toString()}},t.fromData=function(e){return new t(e.denom,e.exchange_rate)},t.prototype.toData=function(){return{denom:this.denom,exchange_rate:this.exchange_rate.toString()}},t.fromProto=function(e){return new t(e.denom,e.exchangeRate)},t.prototype.toProto=function(){var e=this.denom,t=this.exchange_rate;return o.ExchangeRateTuple.fromPartial({denom:e,exchangeRate:t.toString()})},t}(i.JSONSerializable);t.ExchangeRateTuple=u},36454:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgAggregateExchangeRatePrevote=void 0;var i=n(45034),o=n(27213),s=n(13019),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.hash=t,a.feeder=n,a.validator=r,a}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value;return new t(r.hash,r.feeder,r.validator)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{type:"oracle/MsgAggregateExchangeRatePrevote",value:{hash:t.hash,feeder:t.feeder,validator:t.validator}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.hash,e.feeder,e.validator)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this;return{"@type":"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote",hash:t.hash,feeder:t.feeder,validator:t.validator}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.hash,e.feeder,e.validator)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.hash,r=t.feeder,a=t.validator;return s.MsgAggregateExchangeRatePrevote.fromPartial({hash:n,feeder:r,validator:a})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/terra.oracle.v1beta1.MsgAggregateExchangeRatePrevote",value:s.MsgAggregateExchangeRatePrevote.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.MsgAggregateExchangeRatePrevote.decode(e.value),n)},t}(i.JSONSerializable);t.MsgAggregateExchangeRatePrevote=c},56276:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgAggregateExchangeRateVote=t.aggregateVoteHash=void 0;var i=n(72495),o=n(45034),s=n(36454),c=n(8880),u=n(27213),d=n(13019);function f(e,t,n){var r="".concat(t,":").concat(e.toDecCoins().toString(),":").concat(n);return i.SHA256.hash(r).toString().substring(0,40)}t.aggregateVoteHash=f;var l=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.salt=n,i.feeder=r,i.validator=a,i.exchange_rates=new c.Coins(t).toDecCoins(),i}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.exchange_rates,i=r.salt,o=r.feeder,s=r.validator;return new t(c.Coins.fromString(a),i,o,s)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.exchange_rates,r=t.salt,a=t.feeder,i=t.validator;return{type:"oracle/MsgAggregateExchangeRateVote",value:{exchange_rates:n.toDecCoins().toString(),salt:r,feeder:a,validator:i}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.exchange_rates,a=e.salt,i=e.feeder,o=e.validator;return new t(c.Coins.fromString(r),a,i,o)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.exchange_rates,r=t.salt,a=t.feeder,i=t.validator;return{"@type":"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote",exchange_rates:n.toDecCoins().toString(),salt:r,feeder:a,validator:i}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(c.Coins.fromString(e.exchangeRates),e.salt,e.feeder,e.validator)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.exchange_rates,r=t.salt,a=t.feeder,i=t.validator;return d.MsgAggregateExchangeRateVote.fromPartial({exchangeRates:n.toString(),feeder:a,salt:r,validator:i})},t.prototype.getAggregateVoteHash=function(){return f(this.exchange_rates,this.salt,this.validator)},t.prototype.getPrevote=function(){return new s.MsgAggregateExchangeRatePrevote(this.getAggregateVoteHash(),this.feeder,this.validator)},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return u.Any.fromPartial({typeUrl:"/terra.oracle.v1beta1.MsgAggregateExchangeRateVote",value:d.MsgAggregateExchangeRateVote.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(d.MsgAggregateExchangeRateVote.decode(e.value),n)},t}(o.JSONSerializable);t.MsgAggregateExchangeRateVote=l},19791:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgDelegateFeedConsent=void 0;var i=n(45034),o=n(58682),s=n(13019),c=function(e){function t(t,n){var r=e.call(this)||this;return r.operator=t,r.delegate=n,r}return a(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value;return new t(r.operator,r.delegate)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");return{type:"oracle/MsgDelegateFeedConsent",value:{operator:this.operator,delegate:this.delegate}}},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.operator,e.delegate)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");return{"@type":"/terra.oracle.v1beta1.MsgDelegateFeedConsent",operator:this.operator,delegate:this.delegate}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.operator,e.delegate)},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this.operator,n=this.delegate;return s.MsgDelegateFeedConsent.fromPartial({delegate:n,operator:t})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/terra.oracle.v1beta1.MsgDelegateFeedConsent",value:s.MsgDelegateFeedConsent.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(s.MsgDelegateFeedConsent.decode(e.value),n)},t}(i.JSONSerializable);t.MsgDelegateFeedConsent=c},86679:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(19791),t),a(n(56276),t),a(n(36454),t)},44871:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ParamChange=t.ParamChanges=void 0;var i=n(45034),o=n(50857),s=function(e){function t(t){var n=e.call(this)||this;return n.paramChanges=t,n}return a(t,e),t.fromAmino=function(e){return new t((null!=e?e:[]).map(c.fromAmino))},t.prototype.toAmino=function(){return this.paramChanges.map((function(e){return e.toAmino()}))},t.fromData=function(e){return new t((null!=e?e:[]).map(c.fromData))},t.prototype.toData=function(){return this.paramChanges.map((function(e){return e.toData()}))},t.fromProto=function(e){return new t((null!=e?e:[]).map(c.fromProto))},t.prototype.toProto=function(){return this.paramChanges.map((function(e){return e.toProto()}))},t}(i.JSONSerializable);t.ParamChanges=s;var c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.subspace=t,a.key=n,a.value=r,a}return a(t,e),t.fromAmino=function(e){return new t(e.subspace,e.key,e.value)},t.prototype.toAmino=function(){var e=this;return{subspace:e.subspace,key:e.key,value:e.value}},t.fromData=function(e){return new t(e.subspace,e.key,e.value)},t.prototype.toData=function(){var e=this;return{subspace:e.subspace,key:e.key,value:e.value}},t.fromProto=function(e){return new t(e.subspace,e.key,e.value)},t.prototype.toProto=function(){var e=this,t=e.subspace,n=e.key,r=e.value;return o.ParamChange.fromPartial({key:n,subspace:t,value:r})},t}(i.JSONSerializable);t.ParamChange=c},19353:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ParameterChangeProposal=void 0;var i=n(45034),o=n(44871),s=n(58682),c=n(25946),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,Array.isArray(r)?a.changes=o.ParamChanges.fromData(r):a.changes=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.title,i=r.description,s=r.changes;return new t(a,i,o.ParamChanges.fromAmino(s))},t.prototype.toAmino=function(e){var t=this;return{type:e?"params/ParameterChangeProposal":"cosmos-sdk/ParameterChangeProposal",value:{title:t.title,description:t.description,changes:t.changes.toAmino()}}},t.fromData=function(e,n){var r=e.title,a=e.description,i=e.changes;return new t(r,a,o.ParamChanges.fromData(i))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.params.v1beta1.ParameterChangeProposal",title:t.title,description:t.description,changes:t.changes.toData()}},t.fromProto=function(e,n){return new t(e.title,e.description,o.ParamChanges.fromProto(e.changes))},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,a=t.changes;return c.ParameterChangeProposal.fromPartial({changes:a.toProto(),description:r,title:n})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.params.v1beta1.ParameterChangeProposal",value:c.ParameterChangeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.ParameterChangeProposal.decode(e.value),n)},t}(i.JSONSerializable);t.ParameterChangeProposal=u},15070:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(19353),t)},27767:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUnjail=void 0;var i=n(45034),o=n(58682),s=n(41591),c=function(e){function t(t){var n=e.call(this)||this;return n.address=t,n}return a(t,e),t.fromAmino=function(e,n){return new t(e.value.address)},t.prototype.toAmino=function(e){return{type:e?"slashing/MsgUnjail":"cosmos-sdk/MsgUnjail",value:{address:this.address}}},t.fromData=function(e,n){return new t(e.address)},t.prototype.toData=function(e){return{"@type":"/cosmos.slashing.v1beta1.MsgUnjail",address:this.address}},t.fromProto=function(e,n){return new t(e.validatorAddr)},t.prototype.toProto=function(e){var t=this.address;return s.MsgUnjail.fromPartial({validatorAddr:t})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/cosmos.slashing.v1beta1.MsgUnjail",value:s.MsgUnjail.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.MsgUnjail.decode(e.value),n)},t}(i.JSONSerializable);t.MsgUnjail=c},94964:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(27767),t)},29877:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Delegation=void 0;var i=n(45034),o=n(21879),s=n(81640),c=n(1511),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.delegator_address=t,i.validator_address=n,i.shares=r,i.balance=a,i}return a(t,e),t.fromAmino=function(e){var n=e.delegation,r=n.delegator_address,a=n.validator_address,i=n.shares,c=e.balance;return new t(r,a,new o.Dec(i),s.Coin.fromAmino(c))},t.prototype.toAmino=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.shares,a=e.balance;return{delegation:{delegator_address:t,validator_address:n,shares:r.toString()},balance:a.toAmino()}},t.fromData=function(e){var n=e.delegation,r=n.delegator_address,a=n.validator_address,i=n.shares,c=e.balance;return new t(r,a,new o.Dec(i),s.Coin.fromData(c))},t.prototype.toData=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.shares,a=e.balance;return{delegation:{delegator_address:t,validator_address:n,shares:r.toString()},balance:a.toData()}},t.fromProto=function(e){var n=e.delegation;return new t(n.delegatorAddress,n.validatorAddress,new o.Dec(n.shares),s.Coin.fromProto(e.balance))},t.prototype.toProto=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.shares,a=e.balance;return c.DelegationResponse.fromPartial({delegation:c.Delegation.fromPartial({delegatorAddress:t,shares:r.toString(),validatorAddress:n}),balance:a.toProto()})},t}(i.JSONSerializable);t.Delegation=u},71188:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Redelegation=void 0;var c=n(45034),u=n(21879),d=n(1511),f=s(n(24141)),l=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.delegator_address=t,i.validator_src_address=n,i.validator_dst_address=r,i.entries=a,i}return a(t,e),t.fromAmino=function(e){var n=e.redelegation;return new t(n.delegator_address,n.validator_src_address,n.validator_dst_address,e.entries.map((function(e){return t.Entry.fromAmino(e)})))},t.prototype.toAmino=function(){var e=this;return{redelegation:{delegator_address:e.delegator_address,validator_src_address:e.validator_src_address,validator_dst_address:e.validator_dst_address},entries:e.entries.map((function(e){return e.toAmino()}))}},t.fromData=function(e){var n=e.redelegation;return new t(n.delegator_address,n.validator_src_address,n.validator_dst_address,e.entries.map((function(e){return t.Entry.fromData(e)})))},t.prototype.toData=function(){var e=this;return{redelegation:{delegator_address:e.delegator_address,validator_src_address:e.validator_src_address,validator_dst_address:e.validator_dst_address},entries:e.entries.map((function(e){return e.toData()}))}},t.fromProto=function(e){var n=e.redelegation;return new t(n.delegatorAddress,n.validatorDstAddress,n.validatorDstAddress,e.entries.map((function(e){return t.Entry.fromProto(e)})))},t.prototype.toProto=function(){var e=this,t=e.delegator_address,n=e.validator_src_address,r=e.validator_dst_address,a=e.entries;return d.RedelegationResponse.fromPartial({entries:a.map((function(e){return e.toProto()})),redelegation:d.Redelegation.fromPartial({delegatorAddress:t,entries:a.map((function(e){return e.toProto().redelegationEntry})),validatorDstAddress:r,validatorSrcAddress:n})})},t}(c.JSONSerializable);t.Redelegation=l,function(e){var t=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.initial_balance=t,o.balance=n,o.shares_dst=r,o.creation_height=a,o.completion_time=i,o}return a(t,e),t.prototype.toAmino=function(){return{redelegation_entry:{initial_balance:this.initial_balance.toString(),shares_dst:this.shares_dst.toString(),creation_height:this.creation_height,completion_time:this.completion_time.toISOString()},balance:this.balance.toString()}},t.fromAmino=function(e){var n=e.redelegation_entry,r=n.initial_balance,a=n.shares_dst,i=n.creation_height,o=n.completion_time,s=e.balance;return new t(new u.Int(r),new u.Int(s),new u.Dec(a),i,new Date(o))},t.prototype.toData=function(){return{redelegation_entry:{initial_balance:this.initial_balance.toString(),shares_dst:this.shares_dst.toString(),creation_height:this.creation_height,completion_time:this.completion_time.toISOString()},balance:this.balance.toString()}},t.fromData=function(e){var n=e.redelegation_entry,r=n.initial_balance,a=n.shares_dst,i=n.creation_height,o=n.completion_time,s=e.balance;return new t(new u.Int(r),new u.Int(s),new u.Dec(a),i,new Date(o))},t.prototype.toProto=function(){var e=this,t=e.initial_balance,n=e.balance,r=e.shares_dst,a=e.creation_height,i=e.completion_time;return d.RedelegationEntryResponse.fromPartial({balance:n.toString(),redelegationEntry:d.RedelegationEntry.fromPartial({completionTime:i,creationHeight:f.fromNumber(a),initialBalance:t.toString(),sharesDst:r.toString()})})},t.fromProto=function(e){var n=e.redelegationEntry;return new t(new u.Int(n.initialBalance),new u.Int(e.balance),new u.Dec(n.sharesDst),n.creationHeight.toNumber(),n.completionTime)},t}(c.JSONSerializable);e.Entry=t}(l=t.Redelegation||(t.Redelegation={})),t.Redelegation=l},29401:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.UnbondingDelegation=void 0;var c=n(45034),u=n(21879),d=n(1511),f=s(n(24141)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.delegator_address=t,a.validator_address=n,a.entries=r,a}return a(t,e),t.fromAmino=function(e){return new t(e.delegator_address,e.validator_address,e.entries.map((function(e){return t.Entry.fromAmino(e)})))},t.prototype.toAmino=function(){var e=this;return{delegator_address:e.delegator_address,validator_address:e.validator_address,entries:e.entries.map((function(e){return e.toAmino()}))}},t.fromData=function(e){return new t(e.delegator_address,e.validator_address,e.entries.map((function(e){return t.Entry.fromData(e)})))},t.prototype.toData=function(){var e=this;return{delegator_address:e.delegator_address,validator_address:e.validator_address,entries:e.entries.map((function(e){return e.toData()}))}},t.prototype.toProto=function(){var e=this,t=e.delegator_address,n=e.validator_address,r=e.entries;return d.UnbondingDelegation.fromPartial({delegatorAddress:t,entries:r.map((function(e){return e.toProto()})),validatorAddress:n})},t.fromProto=function(e){return new t(e.delegatorAddress,e.validatorAddress,e.entries.map((function(e){return t.Entry.fromProto(e)})))},t}(c.JSONSerializable);t.UnbondingDelegation=l,function(e){var t=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.initial_balance=t,i.balance=n,i.creation_height=r,i.completion_time=a,i}return a(t,e),t.prototype.toAmino=function(){return{initial_balance:this.initial_balance.toString(),balance:this.balance.toString(),creation_height:this.creation_height.toFixed(),completion_time:this.completion_time.toISOString()}},t.fromAmino=function(e){var n=e.initial_balance,r=e.balance,a=e.creation_height,i=e.completion_time;return new t(new u.Int(n),new u.Int(r),Number.parseInt(a),new Date(i))},t.prototype.toData=function(){return{initial_balance:this.initial_balance.toString(),balance:this.balance.toString(),creation_height:this.creation_height.toFixed(),completion_time:this.completion_time.toISOString()}},t.fromData=function(e){var n=e.initial_balance,r=e.balance,a=e.creation_height,i=e.completion_time;return new t(new u.Int(n),new u.Int(r),Number.parseInt(a),new Date(i))},t.prototype.toProto=function(){var e=this,t=e.initial_balance,n=e.balance,r=e.creation_height,a=e.completion_time;return d.UnbondingDelegationEntry.fromPartial({balance:n.toString(),completionTime:a,creationHeight:f.fromNumber(r),initialBalance:t.toString()})},t.fromProto=function(e){return new t(new u.Int(e.initialBalance),new u.Int(e.balance),e.creationHeight.toNumber(),e.completionTime)},t}(c.JSONSerializable);e.Entry=t}(l=t.UnbondingDelegation||(t.UnbondingDelegation={})),t.UnbondingDelegation=l},88654:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Validator=void 0;var c=n(45034),u=n(21879),d=n(37378),f=n(1511),l=s(n(24141)),b=function(e){function t(t,n,r,a,i,o,s,c,u,d,f){var l=e.call(this)||this;return l.operator_address=t,l.consensus_pubkey=n,l.jailed=r,l.status=a,l.tokens=i,l.delegator_shares=o,l.description=s,l.unbonding_height=c,l.unbonding_time=u,l.commission=d,l.min_self_delegation=f,l}return a(t,e),t.prototype.toAmino=function(){return{operator_address:this.operator_address,consensus_pubkey:this.consensus_pubkey.toAmino(),jailed:this.jailed,status:this.status,tokens:this.tokens.toString(),delegator_shares:this.delegator_shares.toString(),description:this.description,unbonding_height:this.unbonding_height.toFixed(),unbonding_time:this.unbonding_time.toISOString(),commission:this.commission.toAmino(),min_self_delegation:this.min_self_delegation.toString()}},t.fromAmino=function(e){return new t(e.operator_address,d.ValConsPublicKey.fromAmino(e.consensus_pubkey),e.jailed||!1,e.status||0,new u.Int(e.tokens),new u.Dec(e.delegator_shares),t.Description.fromAmino(e.description),Number.parseInt(e.unbonding_height),new Date(e.unbonding_time),t.Commission.fromAmino(e.commission),new u.Int(e.min_self_delegation))},t.prototype.toData=function(){return{operator_address:this.operator_address,consensus_pubkey:this.consensus_pubkey.toData(),jailed:this.jailed,status:this.status,tokens:this.tokens.toString(),delegator_shares:this.delegator_shares.toString(),description:this.description,unbonding_height:this.unbonding_height.toFixed(),unbonding_time:this.unbonding_time.toISOString(),commission:this.commission.toData(),min_self_delegation:this.min_self_delegation.toString()}},t.fromData=function(e){return new t(e.operator_address,d.ValConsPublicKey.fromData(e.consensus_pubkey),e.jailed||!1,e.status||0,new u.Int(e.tokens),new u.Dec(e.delegator_shares),t.Description.fromData(e.description),Number.parseInt(e.unbonding_height),new Date(e.unbonding_time),t.Commission.fromData(e.commission),new u.Int(e.min_self_delegation))},t.prototype.toProto=function(){var e=this,t=e.operator_address,n=e.consensus_pubkey,r=e.jailed,a=e.status,i=e.tokens,o=e.delegator_shares,s=e.description,c=e.unbonding_height,u=e.unbonding_time,d=e.commission,b=e.min_self_delegation;return f.Validator.fromPartial({commission:d.toProto(),consensusPubkey:n.packAny(),delegatorShares:o.toString(),description:s.toProto(),jailed:r,minSelfDelegation:b.toString(),operatorAddress:t,status:a,tokens:i.toString(),unbondingHeight:l.fromNumber(c),unbondingTime:u})},t.fromProto=function(e){return new t(e.operatorAddress,d.ValConsPublicKey.unpackAny(e.consensusPubkey),e.jailed,e.status,new u.Int(e.tokens),new u.Dec(e.delegatorShares),t.Description.fromProto(e.description),e.unbondingHeight.toNumber(),e.unbondingTime,t.Commission.fromProto(e.commission),new u.Int(e.minSelfDelegation))},t}(c.JSONSerializable);t.Validator=b,function(e){e.Status=f.BondStatus;var t=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.moniker=t,o.identity=n,o.website=r,o.details=a,o.security_contact=i,o}return a(t,e),t.prototype.toAmino=function(){return{moniker:this.moniker,identity:this.identity,website:this.website,details:this.details,security_contact:this.security_contact}},t.fromAmino=function(e){return new t(e.moniker,e.identity||"",e.website||"",e.details||"",e.security_contact||"")},t.prototype.toData=function(){return{moniker:this.moniker,identity:this.identity,website:this.website,details:this.details,security_contact:this.security_contact}},t.fromData=function(e){return new t(e.moniker,e.identity||"",e.website||"",e.details||"",e.security_contact||"")},t.prototype.toProto=function(){var e=this,t=e.moniker,n=e.identity,r=e.website,a=e.details,i=e.security_contact;return f.Description.fromPartial({details:a,identity:n,moniker:t,securityContact:i,website:r})},t.fromProto=function(e){return new t(e.moniker,e.identity,e.website,e.details,e.securityContact)},t}(c.JSONSerializable);e.Description=t;var n=function(e){function t(t,n,r){var a=e.call(this)||this;return a.rate=t,a.max_rate=n,a.max_change_rate=r,a}return a(t,e),t.fromAmino=function(e){var n=e.rate,r=e.max_rate,a=e.max_change_rate;return new t(new u.Dec(n),new u.Dec(r),new u.Dec(a))},t.prototype.toAmino=function(){var e=this,t=e.rate,n=e.max_rate,r=e.max_change_rate;return{rate:t.toString(),max_rate:n.toString(),max_change_rate:r.toString()}},t.fromData=function(e){var n=e.rate,r=e.max_rate,a=e.max_change_rate;return new t(new u.Dec(n),new u.Dec(r),new u.Dec(a))},t.prototype.toData=function(){var e=this,t=e.rate,n=e.max_rate,r=e.max_change_rate;return{rate:t.toString(),max_rate:n.toString(),max_change_rate:r.toString()}},t.fromProto=function(e){return new t(new u.Dec(e.rate),new u.Dec(e.maxRate),new u.Dec(e.maxChangeRate))},t.prototype.toProto=function(){var e=this,t=e.rate,n=e.max_rate,r=e.max_change_rate;return f.CommissionRates.fromPartial({maxChangeRate:r.toString(),maxRate:n.toString(),rate:t.toString()})},t}(c.JSONSerializable);e.CommissionRates=n;var r=function(e){function t(t,n){var r=e.call(this)||this;return r.commission_rates=t,r.update_time=n,r}return a(t,e),t.prototype.toAmino=function(){return{commission_rates:this.commission_rates.toAmino(),update_time:this.update_time.toISOString()}},t.fromAmino=function(e){return new t(n.fromAmino(e.commission_rates),new Date(e.update_time))},t.prototype.toData=function(){return{commission_rates:this.commission_rates.toData(),update_time:this.update_time.toISOString()}},t.fromData=function(e){return new t(n.fromData(e.commission_rates),new Date(e.update_time))},t.prototype.toProto=function(){var e=this.commission_rates,t=this.update_time;return f.Commission.fromPartial({commissionRates:e.toProto(),updateTime:t})},t.fromProto=function(e){return new t(n.fromProto(e.commissionRates),e.updateTime)},t}(c.JSONSerializable);e.Commission=r}(b=t.Validator||(t.Validator={})),t.Validator=b},97983:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgBeginRedelegate=void 0;var i=n(45034),o=n(81640),s=n(58682),c=n(25281),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.delegator_address=t,i.validator_src_address=n,i.validator_dst_address=r,i.amount=a,i}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.delegator_address,i=r.validator_src_address,s=r.validator_dst_address,c=r.amount;return new t(a,i,s,o.Coin.fromAmino(c))},t.prototype.toAmino=function(e){var t=this;return{type:e?"staking/MsgBeginRedelegate":"cosmos-sdk/MsgBeginRedelegate",value:{delegator_address:t.delegator_address,validator_src_address:t.validator_src_address,validator_dst_address:t.validator_dst_address,amount:t.amount.toAmino()}}},t.fromData=function(e,n){var r=e.delegator_address,a=e.validator_src_address,i=e.validator_dst_address,s=e.amount;return new t(r,a,i,o.Coin.fromData(s))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.staking.v1beta1.MsgBeginRedelegate",delegator_address:t.delegator_address,validator_src_address:t.validator_src_address,validator_dst_address:t.validator_dst_address,amount:t.amount.toData()}},t.fromProto=function(e,n){return new t(e.delegatorAddress,e.validatorSrcAddress,e.validatorDstAddress,o.Coin.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this,n=t.delegator_address,r=t.validator_src_address,a=t.validator_dst_address,i=t.amount;return c.MsgBeginRedelegate.fromPartial({amount:i.toProto(),delegatorAddress:n,validatorDstAddress:a,validatorSrcAddress:r})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgBeginRedelegate",value:c.MsgBeginRedelegate.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgBeginRedelegate.decode(e.value),n)},t}(i.JSONSerializable);t.MsgBeginRedelegate=u},85887:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreateValidator=void 0;var i=n(45034),o=n(81640),s=n(21879),c=n(88654),u=n(58682),d=n(25281),f=n(37378),l=function(e){function t(t,n,r,a,i,o,s){var c=e.call(this)||this;return c.description=t,c.commission=n,c.min_self_delegation=r,c.delegator_address=a,c.validator_address=i,c.pubkey=o,c.value=s,c}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.description,i=r.commission,u=r.min_self_delegation,d=r.delegator_address,l=r.validator_address,b=r.pubkey,p=r.value;return new t(a,c.Validator.CommissionRates.fromAmino(i),new s.Int(u),d,l,f.ValConsPublicKey.fromAmino(b),o.Coin.fromAmino(p))},t.prototype.toAmino=function(e){var t=this,n=t.description,r=t.commission,a=t.min_self_delegation,i=t.delegator_address,o=t.validator_address,s=t.pubkey,c=t.value;return{type:e?"staking/MsgCreateValidator":"cosmos-sdk/MsgCreateValidator",value:{description:n,commission:r.toAmino(),min_self_delegation:a.toString(),delegator_address:i,validator_address:o,pubkey:s.toAmino(),value:c.toAmino()}}},t.fromData=function(e,n){var r=e.description,a=e.commission,i=e.min_self_delegation,u=e.delegator_address,d=e.validator_address,l=e.pubkey,b=e.value;return new t(r,c.Validator.CommissionRates.fromData(a),new s.Int(i),u,d,f.ValConsPublicKey.fromData(l),o.Coin.fromData(b))},t.prototype.toData=function(e){var t=this,n=t.description,r=t.commission,a=t.min_self_delegation,i=t.delegator_address,o=t.validator_address,s=t.pubkey,c=t.value;return{"@type":"/cosmos.staking.v1beta1.MsgCreateValidator",description:n,commission:r.toData(),min_self_delegation:a.toString(),delegator_address:i,validator_address:o,pubkey:s.toData(),value:c.toData()}},t.fromProto=function(e,n){return new t(c.Validator.Description.fromProto(e.description),c.Validator.CommissionRates.fromProto(e.commission),new s.Int(e.minSelfDelegation),e.delegatorAddress,e.validatorAddress,f.PublicKey.fromProto(e.pubkey),o.Coin.fromProto(e.value))},t.prototype.toProto=function(e){var t=this,n=t.description,r=t.commission,a=t.min_self_delegation,i=t.delegator_address,o=t.validator_address,s=t.pubkey,c=t.value;return d.MsgCreateValidator.fromPartial({commission:r.toProto(),delegatorAddress:i,description:n.toProto(),minSelfDelegation:a.toString(),pubkey:s.packAny(),validatorAddress:o,value:c.toProto()})},t.prototype.packAny=function(e){return u.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgCreateValidator",value:d.MsgCreateValidator.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(d.MsgCreateValidator.decode(e.value),n)},t}(i.JSONSerializable);t.MsgCreateValidator=l},43399:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgDelegate=void 0;var i=n(81640),o=n(45034),s=n(58682),c=n(25281),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.delegator_address=t,a.validator_address=n,a.amount=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.delegator_address,o=r.validator_address,s=r.amount;return new t(a,o,i.Coin.fromAmino(s))},t.prototype.toAmino=function(e){var t=this;return{type:e?"staking/MsgDelegate":"cosmos-sdk/MsgDelegate",value:{delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toAmino()}}},t.fromProto=function(e,n){return new t(e.delegatorAddress,e.validatorAddress,i.Coin.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this,n=t.delegator_address,r=t.validator_address,a=t.amount;return c.MsgDelegate.fromPartial({amount:a.toProto(),delegatorAddress:n,validatorAddress:r})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgDelegate",value:c.MsgDelegate.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgDelegate.decode(e.value),n)},t.fromData=function(e,n){var r=e.delegator_address,a=e.validator_address,o=e.amount;return new t(r,a,i.Coin.fromData(o))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.staking.v1beta1.MsgDelegate",delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toData()}},t}(o.JSONSerializable);t.MsgDelegate=u},22897:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgEditValidator=void 0;var i=n(45034),o=n(21879),s=n(88654),c=n(58682),u=n(25281),d=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.description=t,i.validator_address=n,i.commission_rate=r,i.min_self_delegation=a,i}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.description,i=r.validator_address,c=r.commission_rate,u=r.min_self_delegation;return new t(s.Validator.Description.fromAmino(a),i,c?new o.Dec(c):void 0,u?new o.Int(u):void 0)},t.prototype.toAmino=function(e){var t=this,n=t.description,r=t.validator_address,a=t.commission_rate,i=t.min_self_delegation;return{type:e?"staking/MsgEditValidator":"cosmos-sdk/MsgEditValidator",value:{description:n,validator_address:r,commission_rate:a?a.toString():void 0,min_self_delegation:i?i.toString():void 0}}},t.fromProto=function(e,n){return new t(s.Validator.Description.fromProto(e.description),e.validatorAddress,""!==e.commissionRate?new o.Dec(e.commissionRate):void 0,""!==e.minSelfDelegation?new o.Int(e.minSelfDelegation):void 0)},t.prototype.toProto=function(e){var t=this,n=t.description,r=t.validator_address,a=t.commission_rate,i=t.min_self_delegation;return u.MsgEditValidator.fromPartial({description:n.toProto(),commissionRate:(null==a?void 0:a.toString())||"",minSelfDelegation:(null==i?void 0:i.toString())||"",validatorAddress:r})},t.prototype.packAny=function(e){return c.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgEditValidator",value:u.MsgEditValidator.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.MsgEditValidator.decode(e.value),n)},t.fromData=function(e,n){var r=e.description,a=e.validator_address,i=e.commission_rate,c=e.min_self_delegation;return new t(s.Validator.Description.fromData(r),a,i?new o.Dec(i):void 0,c?new o.Int(c):void 0)},t.prototype.toData=function(e){var t=this,n=t.description,r=t.validator_address,a=t.commission_rate,i=t.min_self_delegation;return{"@type":"/cosmos.staking.v1beta1.MsgEditValidator",description:n,validator_address:r,commission_rate:a?a.toString():void 0,min_self_delegation:i?i.toString():void 0}},t}(i.JSONSerializable);t.MsgEditValidator=d,function(e){e.DESC_DO_NOT_MODIFY={moniker:"[do-not-modify]",website:"[do-not-modify]",identity:"[do-not-modify]",details:"[do-not-modify]",security_contact:"[do-not-modify]"}}(d=t.MsgEditValidator||(t.MsgEditValidator={})),t.MsgEditValidator=d},62276:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUndelegate=void 0;var i=n(81640),o=n(45034),s=n(58682),c=n(25281),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.delegator_address=t,a.validator_address=n,a.amount=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.delegator_address,o=r.validator_address,s=r.amount;return new t(a,o,i.Coin.fromAmino(s))},t.prototype.toAmino=function(e){var t=this;return{type:e?"staking/MsgUndelegate":"cosmos-sdk/MsgUndelegate",value:{delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toAmino()}}},t.fromProto=function(e,n){return new t(e.delegatorAddress,e.validatorAddress,i.Coin.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this,n=t.delegator_address,r=t.validator_address,a=t.amount;return c.MsgUndelegate.fromPartial({amount:a.toProto(),delegatorAddress:n,validatorAddress:r})},t.prototype.packAny=function(e){return s.Any.fromPartial({typeUrl:"/cosmos.staking.v1beta1.MsgUndelegate",value:c.MsgUndelegate.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(c.MsgUndelegate.decode(e.value),n)},t.fromData=function(e,n){var r=e.delegator_address,a=e.validator_address,o=e.amount;return new t(r,a,i.Coin.fromData(o))},t.prototype.toData=function(e){var t=this;return{"@type":"/cosmos.staking.v1beta1.MsgUndelegate",delegator_address:t.delegator_address,validator_address:t.validator_address,amount:t.amount.toData()}},t}(o.JSONSerializable);t.MsgUndelegate=u},67170:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(43399),t),a(n(62276),t),a(n(97983),t),a(n(85887),t),a(n(22897),t)},16945:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PolicyConstraints=void 0;var i=n(45034),o=n(81640),s=n(21879),c=n(1284),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.cap=r,i.rate_min=new s.Dec(t),i.rate_max=new s.Dec(n),i.change_rate_max=new s.Dec(a),i}return a(t,e),t.fromAmino=function(e){var n=e.rate_min,r=e.rate_max,a=e.cap,i=e.change_rate_max;return new t(n,r,o.Coin.fromAmino(a),i)},t.prototype.toAmino=function(){var e=this,t=e.rate_min,n=e.rate_max,r=e.cap,a=e.change_rate_max;return{rate_min:t.toString(),rate_max:n.toString(),cap:r.toAmino(),change_rate_max:a.toString()}},t.fromData=function(e){var n=e.rate_min,r=e.rate_max,a=e.cap,i=e.change_rate_max;return new t(n,r,o.Coin.fromData(a),i)},t.prototype.toData=function(){var e=this,t=e.rate_min,n=e.rate_max,r=e.cap,a=e.change_rate_max;return{rate_min:t.toString(),rate_max:n.toString(),cap:r.toData(),change_rate_max:a.toString()}},t.fromProto=function(e){return new t(e.rateMax,e.rateMin,o.Coin.fromProto(e.cap),e.changeRateMax)},t.prototype.toProto=function(){var e=this,t=e.rate_min,n=e.rate_max,r=e.cap,a=e.change_rate_max;return c.PolicyConstraints.fromPartial({cap:r.toProto(),changeRateMax:a.toString(),rateMax:n.toString(),rateMin:t.toString()})},t.prototype.clamp=function(e,t){var n=new s.Dec(e),r=new s.Dec(t);r.lt(this.rate_min)?r=this.rate_min:r.gt(this.rate_max)&&(r=this.rate_max);var a=r.sub(n);return r.gt(n)?a.gt(this.change_rate_max)&&(r=n.add(this.change_rate_max)):a.abs().gt(this.change_rate_max)&&(r=n.sub(this.change_rate_max)),r},t}(i.JSONSerializable);t.PolicyConstraints=u},62183:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Plan=void 0;var o=n(45034),s=n(3142),c=i(n(24141)),u=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.name=t,o.time=n,o.height=r,o.info=a,o.upgraded_client_state=i,o}return a(t,e),t.fromAmino=function(e){var n=e.name,r=e.time,a=e.height,i=e.info,o=e.upgraded_client_state;return new t(n,r?new Date(r):void 0,a,i,o)},t.prototype.toAmino=function(){var e=this,t=e.name,n=e.time,r=e.height,a=e.info,i=e.upgraded_client_state;return{name:t,time:n?n.toISOString().replace(/\.000Z$/,"Z"):void 0,height:r,info:a,upgraded_client_state:i}},t.fromData=function(e){var n=e.name,r=e.time,a=e.height,i=e.info,o=e.upgraded_client_state;return new t(n,r?new Date(r):void 0,a,i,o)},t.prototype.toData=function(){var e=this,t=e.name,n=e.time,r=e.height,a=e.info,i=e.upgraded_client_state;return{name:t,time:n?n.toISOString().replace(/\.000Z$/,"Z"):void 0,height:r,info:a,upgraded_client_state:i}},t.fromProto=function(e){return new t(e.name,e.time,e.height.toString(),e.info,e.upgradedClientState)},t.prototype.toProto=function(){var e=this,t=e.name,n=e.time,r=e.height,a=e.info,i=e.upgraded_client_state;return s.Plan.fromPartial({name:t,time:n,height:c.default.fromString(r),info:a,upgradedClientState:i})},t}(o.JSONSerializable);t.Plan=u},578:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(62183),t),a(n(48773),t)},31150:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.CancelSoftwareUpgradeProposal=void 0;var i=n(45034),o=n(27213),s=n(2883),c=function(e){function t(t,n){var r=e.call(this)||this;return r.title=t,r.description=n,r}return a(t,e),t.fromAmino=function(e,n){var r=e.value;return new t(r.title,r.description)},t.prototype.toAmino=function(e){return{type:e?"upgrade/CancelSoftwareUpgradeProposal":"cosmos-sdk/CancelSoftwareUpgradeProposal",value:{title:this.title,description:this.description}}},t.fromData=function(e,n){return new t(e.title,e.description)},t.prototype.toData=function(e){return{"@type":"/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",title:this.title,description:this.description}},t.fromProto=function(e,n){return new t(e.title,e.description)},t.prototype.toProto=function(e){var t=this.title,n=this.description;return s.CancelSoftwareUpgradeProposal.fromPartial({title:t,description:n})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/cosmos.upgrade.v1beta1.CancelSoftwareUpgradeProposal",value:s.CancelSoftwareUpgradeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.CancelSoftwareUpgradeProposal.decode(e.value),n)},t}(i.JSONSerializable);t.CancelSoftwareUpgradeProposal=c},88758:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SoftwareUpgradeProposal=void 0;var i=n(45034),o=n(27213),s=n(2883),c=n(62183),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.plan=r,a}return a(t,e),t.fromAmino=function(e,n){var r=e.value,a=r.title,i=r.description,o=r.plan;return new t(a,i,o?c.Plan.fromAmino(o):void 0)},t.prototype.toAmino=function(e){var t=this,n=t.title,r=t.description,a=t.plan;return{type:e?"upgrade/SoftwareUpgradeProposal":"cosmos-sdk/SoftwareUpgradeProposal",value:{title:n,description:r,plan:a?a.toAmino():void 0}}},t.fromData=function(e,n){var r=e.title,a=e.description,i=e.plan;return new t(r,a,i?c.Plan.fromData(i):void 0)},t.prototype.toData=function(e){var t=this,n=t.title,r=t.description,a=t.plan;return{"@type":"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",title:n,description:r,plan:a?a.toData():void 0}},t.fromProto=function(e,n){return new t(e.title,e.description,e.plan?c.Plan.fromProto(e.plan):void 0)},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,a=t.plan;return s.SoftwareUpgradeProposal.fromPartial({title:n,description:r,plan:a?a.toProto():void 0})},t.prototype.packAny=function(e){return o.Any.fromPartial({typeUrl:"/cosmos.upgrade.v1beta1.SoftwareUpgradeProposal",value:s.SoftwareUpgradeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(s.SoftwareUpgradeProposal.decode(e.value),n)},t}(i.JSONSerializable);t.SoftwareUpgradeProposal=u},48773:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(88758),t),a(n(31150),t)},85436:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Period=void 0;var c=n(8880),u=n(54529),d=n(45034),f=s(n(24141)),l=function(e){function t(t,n){var r=e.call(this)||this;return r.length=t,r.amount=new c.Coins(n),r}return a(t,e),t.fromAmino=function(e,n){var r=e.length,a=e.amount;return new t(Number.parseInt(r),c.Coins.fromAmino(a))},t.prototype.toAmino=function(e){var t=this.length,n=this.amount;return{length:t.toFixed(),amount:n.toAmino()}},t.fromData=function(e,n){var r=e.length,a=e.amount;return new t(Number.parseInt(r),c.Coins.fromData(a))},t.prototype.toData=function(e){var t=this.length,n=this.amount;return{length:t.toFixed(),amount:n.toData()}},t.fromProto=function(e,n){return new t(e.length.toNumber(),c.Coins.fromProto(e.amount))},t.prototype.toProto=function(e){var t=this.length,n=this.amount;return u.Period.fromPartial({length:f.fromNumber(t),amount:n.toProto()})},t}(d.JSONSerializable);t.Period=l},27182:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(85436),t),a(n(87718),t)},11852:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreatePeriodicVestingAccount=void 0;var o=n(85436),s=n(45034),c=n(58682),u=n(95350),d=i(n(24141)),f=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.from_address=t,i.to_address=n,i.start_time=r,i.vesting_periods=a,i}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.from_address,i=r.to_address,s=r.start_time,c=r.vesting_periods;return new t(a,i,Number.parseInt(s),c.map((function(e){return o.Period.fromAmino(e,n)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.start_time,i=t.vesting_periods;return{type:"cosmos-sdk/MsgCreatePeriodicVestingAccount",value:{from_address:n,to_address:r,start_time:a.toFixed(),vesting_periods:i.map((function(t){return t.toAmino(e)}))}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.from_address,a=e.to_address,i=e.start_time,s=e.vesting_periods;return new t(r,a,Number.parseInt(i),s.map((function(e){return o.Period.fromData(e,n)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.start_time,i=t.vesting_periods;return{"@type":"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",from_address:n,to_address:r,start_time:a.toFixed(),vesting_periods:i.map((function(t){return t.toData(e)}))}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.fromAddress,e.toAddress,e.startTime.toNumber(),e.vestingPeriods.map((function(e){return o.Period.fromProto(e,n)})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.start_time,i=t.vesting_periods;return u.MsgCreatePeriodicVestingAccount.fromPartial({fromAddress:n,toAddress:r,startTime:d.default.fromNumber(a),vestingPeriods:i.map((function(t){return t.toProto(e)}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/cosmos.vesting.v1beta1.MsgCreatePeriodicVestingAccount",value:u.MsgCreatePeriodicVestingAccount.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(u.MsgCreatePeriodicVestingAccount.decode(e.value),n)},t}(s.JSONSerializable);t.MsgCreatePeriodicVestingAccount=f},36500:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgCreateVestingAccount=void 0;var o=n(8880),s=n(45034),c=n(58682),u=n(95350),d=i(n(24141)),f=function(e){function t(t,n,r,a,i){var s=e.call(this)||this;return s.from_address=t,s.to_address=n,s.end_time=a,s.delayed=i,s.amount=new o.Coins(r),s}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.from_address,i=r.to_address,s=r.amount,c=r.end_time,u=r.delayed;return new t(a,i,o.Coins.fromAmino(s),Number.parseInt(c),u)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.amount,i=t.end_time,o=t.delayed;return{type:"cosmos-sdk/MsgCreateVestingAccount",value:{from_address:n,to_address:r,amount:a.toAmino(),end_time:i.toFixed(),delayed:o}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.from_address,a=e.to_address,i=e.amount,s=e.end_time,c=e.delayed;return new t(r,a,o.Coins.fromData(i),Number.parseInt(s),c)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.amount,i=t.end_time,o=t.delayed;return{"@type":"/cosmos.vesting.v1beta1.MsgCreateVestingAccount",from_address:n,to_address:r,amount:a.toData(),end_time:i.toFixed(),delayed:o}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.fromAddress,e.toAddress,o.Coins.fromProto(e.amount),e.endTime.toNumber(),e.delayed)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.from_address,r=t.to_address,a=t.amount,i=t.end_time,o=t.delayed;return u.MsgCreateVestingAccount.fromPartial({fromAddress:n,toAddress:r,amount:a.toProto(),endTime:d.default.fromNumber(i),delayed:o})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/cosmos.vesting.v1beta1.MsgCreateVestingAccount",value:u.MsgCreateVestingAccount.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(u.MsgCreateVestingAccount.decode(e.value),n)},t}(s.JSONSerializable);t.MsgCreateVestingAccount=f},3209:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgDonateAllVestingTokens=void 0;var i=n(45034),o=n(58682),s=n(95350),c=function(e){function t(t){var n=e.call(this)||this;return n.from_address=t,n}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.value.from_address)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");return{type:"cosmos-sdk/MsgDonateAllVestingTokens",value:{from_address:this.from_address}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.from_address)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");return{"@type":"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens",from_address:this.from_address}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.fromAddress)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");return s.MsgDonateAllVestingTokens.fromPartial({fromAddress:this.from_address})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmos.vesting.v1beta1.MsgDonateAllVestingTokens",value:s.MsgDonateAllVestingTokens.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.MsgDonateAllVestingTokens.decode(e.value),n)},t}(i.JSONSerializable);t.MsgDonateAllVestingTokens=c},87718:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(11852),t),a(n(36500),t),a(n(3209),t)},10022:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AbsoluteTxPosition=void 0;var c=n(59673),u=n(45034),d=s(n(24141)),f=function(e){function t(t,n){var r=e.call(this)||this;return r.block_height=t,r.tx_index=n,r}return a(t,e),t.fromAmino=function(e){return new t(Number.parseInt(e.block_height),Number.parseInt(e.tx_index))},t.prototype.toAmino=function(){return{block_height:this.block_height.toFixed(),tx_index:this.tx_index.toFixed()}},t.fromData=function(e){return new t(Number.parseInt(e.block_height),Number.parseInt(e.tx_index))},t.prototype.toData=function(){return{block_height:this.block_height.toFixed(),tx_index:this.tx_index.toFixed()}},t.fromProto=function(e){return new t(e.blockHeight.toNumber(),e.txIndex.toNumber())},t.prototype.toProto=function(){return c.AbsoluteTxPosition.fromPartial({blockHeight:d.fromNumber(this.block_height),txIndex:d.fromNumber(this.tx_index)})},t}(u.JSONSerializable);t.AbsoluteTxPosition=f},88856:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessConfig=t.AccessType=void 0;var i=n(59673);Object.defineProperty(t,"AccessType",{enumerable:!0,get:function(){return i.AccessType}});var o=n(45034),s=n(65852),c=function(e){function t(t,n){var r=e.call(this)||this;return r.permission=t,r.address=n,r}return a(t,e),t.fromAmino=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.permission),e.address)},t.prototype.toAmino=function(){return{permission:(0,i.accessTypeToJSON)(this.permission),address:this.address}},t.fromData=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.permission),e.address)},t.prototype.toData=function(){return{permission:(0,i.accessTypeToJSON)(this.permission),address:this.address}},t.fromProto=function(e){return new t(e.permission,e.address)},t.prototype.toProto=function(){return i.AccessConfig.fromPartial({permission:this.permission,address:this.address})},t}(o.JSONSerializable);t.AccessConfig=c},48307:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AccessConfigUpdate=void 0;var c=n(33082),u=n(45034),d=n(88856),f=s(n(24141)),l=function(e){function t(t,n){var r=e.call(this)||this;return r.code_id=t,r.instantiate_permission=n,r}return a(t,e),t.fromAmino=function(e){return new t(Number.parseInt(e.code_id),e.instantiate_permission?d.AccessConfig.fromAmino(e.instantiate_permission):void 0)},t.prototype.toAmino=function(){var e;return{code_id:this.code_id.toFixed(),instantiate_permission:null===(e=this.instantiate_permission)||void 0===e?void 0:e.toAmino()}},t.fromData=function(e){return new t(Number.parseInt(e.code_id),e.instantiate_permission?d.AccessConfig.fromData(e.instantiate_permission):void 0)},t.prototype.toData=function(){var e;return{code_id:this.code_id.toFixed(),instantiate_permission:null===(e=this.instantiate_permission)||void 0===e?void 0:e.toData()}},t.fromProto=function(e){return new t(e.codeId.toNumber(),e.instantiatePermission?d.AccessConfig.fromProto(e.instantiatePermission):void 0)},t.prototype.toProto=function(){var e;return c.AccessConfigUpdate.fromPartial({codeId:f.fromNumber(this.code_id),instantiatePermission:null===(e=this.instantiate_permission)||void 0===e?void 0:e.toProto()})},t}(u.JSONSerializable);t.AccessConfigUpdate=l},53584:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AccessTypeParam=t.AccessType=void 0;var i=n(59673);Object.defineProperty(t,"AccessType",{enumerable:!0,get:function(){return i.AccessType}});var o=n(45034),s=n(65852),c=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return a(t,e),t.fromAmino=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.value))},t.prototype.toAmino=function(){return{value:(0,i.accessTypeToJSON)(this.value)}},t.fromData=function(e){return new t((0,s.convertAccessTypeFromJSON)(e.value))},t.prototype.toData=function(){return{value:(0,i.accessTypeToJSON)(this.value)}},t.fromProto=function(e){return new t(e.value)},t.prototype.toProto=function(){return i.AccessTypeParam.fromPartial({value:this.value})},t}(o.JSONSerializable);t.AccessTypeParam=c},98969:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.HistoryEntry=void 0;var u=n(59673),d=n(45034),f=c(n(24141)),l=n(10022),b=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.operation=t,i.code_id=n,i.updated=r,i.msg=a,i}return i(t,e),t.fromAmino=function(e){return new t((0,u.contractCodeHistoryOperationTypeFromJSON)(e.operation),Number.parseInt(e.code_id),e.updated?l.AbsoluteTxPosition.fromAmino(e.updated):void 0,e.msg)},t.prototype.toAmino=function(){var e;return{operation:(0,u.contractCodeHistoryOperationTypeToJSON)(this.operation),code_id:this.code_id.toFixed(),updated:null===(e=this.updated)||void 0===e?void 0:e.toAmino(),msg:this.msg}},t.fromData=function(e){return new t((0,u.contractCodeHistoryOperationTypeFromJSON)(e.operation),Number.parseInt(e.code_id),e.updated?l.AbsoluteTxPosition.fromData(e.updated):void 0,e.msg)},t.prototype.toData=function(){var e;return{operation:(0,u.contractCodeHistoryOperationTypeToJSON)(this.operation),code_id:this.code_id.toFixed(),updated:null===(e=this.updated)||void 0===e?void 0:e.toData(),msg:this.msg}},t.fromProto=function(e){return new t(e.operation,e.codeId.toNumber(),e.updated?l.AbsoluteTxPosition.fromProto(e.updated):void 0,JSON.parse(a.from(e.msg).toString("utf-8")))},t.prototype.toProto=function(){var e;return u.ContractCodeHistoryEntry.fromPartial({operation:this.operation,codeId:f.fromNumber(this.code_id),updated:null===(e=this.updated)||void 0===e?void 0:e.toProto(),msg:a.from(JSON.stringify((0,d.removeNull)(this.msg)),"utf-8")})},t}(d.JSONSerializable);t.HistoryEntry=b},62218:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(53584),t),a(n(88856),t)},82638:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClearContractAdmin=void 0;var i=n(45034),o=n(58682),s=n(75084),c=n(67973),u=function(e){function t(t,n){var r=e.call(this)||this;return r.admin=t,r.contract=n,r}return a(t,e),t.fromAmino=function(e,n){if(n){var r=e.value;return new t(r.admin,r.contract)}var a=e.value;return new t(a.sender,a.contract)},t.prototype.toAmino=function(e){var t=this.admin,n=this.contract;return e?{type:"wasm/MsgClearContractAdmin",value:{admin:t,contract:n}}:{type:"wasm/MsgClearAdmin",value:{sender:t,contract:n}}},t.fromProto=function(e,n){if(n){var r=e;return new t(r.admin,r.contract)}var a=e;return new t(a.sender,a.contract)},t.prototype.toProto=function(e){return e?s.MsgClearContractAdmin.fromPartial({admin:this.admin,contract:this.contract}):c.MsgClearAdmin.fromPartial({sender:this.admin,contract:this.contract})},t.prototype.packAny=function(e){return e?o.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgClearContractAdmin",value:s.MsgClearContractAdmin.encode(this.toProto(e)).finish()}):o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgClearAdmin",value:c.MsgClearAdmin.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(s.MsgClearContractAdmin.decode(e.value),n):t.fromProto(c.MsgClearAdmin.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e;return new t(r.admin,r.contract)}var a=e;return new t(a.sender,a.contract)},t.prototype.toData=function(e){return e?{"@type":"/terra.wasm.v1beta1.MsgClearContractAdmin",admin:this.admin,contract:this.contract}:{"@type":"/cosmwasm.wasm.v1.MsgClearAdmin",sender:this.admin,contract:this.contract}},t}(i.JSONSerializable);t.MsgClearContractAdmin=u},36960:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgExecuteContract=void 0;var o=n(45034),s=n(8880),c=n(58682),u=n(75084),d=n(67973),f=function(e){function t(t,n,r,a){void 0===a&&(a={});var i=e.call(this)||this;return i.sender=t,i.contract=n,i.execute_msg=r,i.coins=new s.Coins(a),i}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value,a=r.sender,i=r.contract,o=r.execute_msg,c=r.coins;return new t(a,i,o,s.Coins.fromAmino(c))}var u=e.value,d=(a=u.sender,i=u.contract,u.msg),f=u.funds;return new t(a,i,d,s.Coins.fromAmino(f))},t.prototype.toAmino=function(e){var t=this,n=t.sender,r=t.contract,a=t.execute_msg,i=t.coins;return e?{type:"wasm/MsgExecuteContract",value:{sender:n,contract:r,execute_msg:(0,o.removeNull)(a),coins:i.toAmino()}}:{type:"wasm/MsgExecuteContract",value:{sender:n,contract:r,msg:(0,o.removeNull)(a),funds:i.toAmino()}}},t.fromProto=function(e,n){var r;return n?new t((r=e).sender,r.contract,JSON.parse(a.from(r.executeMsg).toString("utf-8")),s.Coins.fromProto(r.coins)):new t((r=e).sender,r.contract,JSON.parse(a.from(r.msg).toString("utf-8")),s.Coins.fromProto(r.funds))},t.prototype.toProto=function(e){var t=this,n=t.sender,r=t.contract,i=t.execute_msg,s=t.coins;return e?u.MsgExecuteContract.fromPartial({coins:s.toProto(),contract:r,sender:n,executeMsg:a.from(JSON.stringify((0,o.removeNull)(i)),"utf-8")}):d.MsgExecuteContract.fromPartial({funds:s.toProto(),contract:r,sender:n,msg:a.from(JSON.stringify((0,o.removeNull)(i)),"utf-8")})},t.prototype.packAny=function(e){return e?c.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgExecuteContract",value:u.MsgExecuteContract.encode(this.toProto(e)).finish()}):c.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgExecuteContract",value:d.MsgExecuteContract.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(n?u.MsgExecuteContract.decode(e.value):d.MsgExecuteContract.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e,a=r.sender,i=r.contract,o=r.execute_msg,c=r.coins;return new t(a,i,o,s.Coins.fromData(c))}var u=e,d=(a=u.sender,i=u.contract,u.msg),f=u.funds;return new t(a,i,d,s.Coins.fromData(f))},t.prototype.toData=function(e){var t=this,n=t.sender,r=t.contract,a=t.execute_msg,i=t.coins;return e?{"@type":"/terra.wasm.v1beta1.MsgExecuteContract",sender:n,contract:r,execute_msg:a,coins:i.toData()}:{"@type":"/cosmwasm.wasm.v1.MsgExecuteContract",sender:n,contract:r,msg:a,funds:i.toData()}},t}(o.JSONSerializable);t.MsgExecuteContract=f},53189:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgInstantiateContract=void 0;var u=n(45034),d=n(8880),f=n(58682),l=n(75084),b=n(67973),p=c(n(24141)),h=function(e){function t(t,n,r,a,i,o){void 0===i&&(i={});var s=e.call(this)||this;return s.sender=t,s.admin=n,s.code_id=r,s.init_msg=a,s.label=o,s.init_coins=new d.Coins(i),s}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value,a=r.sender,i=r.admin,o=r.code_id,s=r.init_msg,c=r.init_coins;return new t(a,i,Number.parseInt(o),s,d.Coins.fromAmino(c))}var u=e.value,f=(a=u.sender,i=u.admin,o=u.code_id,u.msg),l=u.funds,b=u.label;return new t(a,i,Number.parseInt(o),f,d.Coins.fromAmino(l),b)},t.prototype.toAmino=function(e){var t=this,n=t.sender,r=t.admin,a=t.code_id,i=t.init_msg,o=t.init_coins,s=t.label;return e?{type:"wasm/MsgInstantiateContract",value:{sender:n,admin:r,code_id:a.toFixed(),init_msg:(0,u.removeNull)(i),init_coins:o.toAmino()}}:{type:"wasm/MsgInstantiateContract",value:{sender:n,admin:r,code_id:a.toFixed(),label:s,msg:(0,u.removeNull)(i),funds:o.toAmino()}}},t.fromProto=function(e,n){var r;return n?new t((r=e).sender,""!==r.admin?r.admin:void 0,r.codeId.toNumber(),JSON.parse(a.from(r.initMsg).toString("utf-8")),d.Coins.fromProto(r.initCoins)):new t((r=e).sender,""!==r.admin?r.admin:void 0,r.codeId.toNumber(),JSON.parse(a.from(r.msg).toString("utf-8")),d.Coins.fromProto(r.funds),""!==r.label?r.label:void 0)},t.prototype.toProto=function(e){var t=this,n=t.sender,r=t.admin,i=t.code_id,o=t.init_msg,s=t.init_coins,c=t.label;return e?l.MsgInstantiateContract.fromPartial({admin:r,codeId:p.fromNumber(i),initCoins:s.toProto(),initMsg:a.from(JSON.stringify(o),"utf-8"),sender:n}):b.MsgInstantiateContract.fromPartial({admin:r,codeId:p.fromNumber(i),funds:s.toProto(),msg:a.from(JSON.stringify(o),"utf-8"),sender:n,label:c})},t.prototype.packAny=function(e){return e?f.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgInstantiateContract",value:l.MsgInstantiateContract.encode(this.toProto(e)).finish()}):f.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgInstantiateContract",value:b.MsgInstantiateContract.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(l.MsgInstantiateContract.decode(e.value),n):t.fromProto(b.MsgInstantiateContract.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e,a=r.sender,i=r.admin,o=r.code_id,s=r.init_msg,c=r.init_coins;return new t(a,""!==i?i:void 0,Number.parseInt(o),s,d.Coins.fromData(c))}var u=e,f=(a=u.sender,i=u.admin,o=u.code_id,u.label),l=u.msg,b=u.funds;return new t(a,""!==i?i:void 0,Number.parseInt(o),l,d.Coins.fromData(b),f)},t.prototype.toData=function(e){var t=this,n=t.sender,r=t.admin,a=t.code_id,i=t.label,o=t.init_msg,s=t.init_coins;return e?{"@type":"/terra.wasm.v1beta1.MsgInstantiateContract",sender:n,admin:r||"",code_id:a.toFixed(),init_msg:(0,u.removeNull)(o),init_coins:s.toData()}:{"@type":"/cosmwasm.wasm.v1.MsgInstantiateContract",sender:n,admin:r||"",code_id:a.toFixed(),label:i,msg:(0,u.removeNull)(o),funds:s.toData()}},t}(u.JSONSerializable);t.MsgInstantiateContract=h},99685:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgMigrateCode=void 0;var u=n(45034),d=n(58682),f=n(75084),l=c(n(24141)),b=function(e){function t(t,n,r){var a=e.call(this)||this;return a.sender=t,a.code_id=n,a.wasm_byte_code=r,a}return i(t,e),t.fromAmino=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.value,a=r.sender,i=r.code_id,o=r.wasm_byte_code;return new t(a,Number.parseInt(i),o)},t.prototype.toAmino=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.sender,r=t.code_id,a=t.wasm_byte_code;return{type:"wasm/MsgMigrateCode",value:{sender:n,code_id:r.toFixed(),wasm_byte_code:a}}},t.fromProto=function(e,n){if(!n)throw new Error("Not supported for the network");return new t(e.sender,e.codeId.toNumber(),a.from(e.wasmByteCode).toString("base64"))},t.prototype.toProto=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.sender,r=t.code_id,i=t.wasm_byte_code;return f.MsgMigrateCode.fromPartial({codeId:l.fromNumber(r),sender:n,wasmByteCode:a.from(i,"base64")})},t.prototype.packAny=function(e){if(!e)throw new Error("Not supported for the network");return d.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgMigrateCode",value:f.MsgMigrateCode.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(!n)throw new Error("Not supported for the network");return t.fromProto(f.MsgMigrateCode.decode(e.value),n)},t.fromData=function(e,n){if(!n)throw new Error("Not supported for the network");var r=e.sender,a=e.code_id,i=e.wasm_byte_code;return new t(r,Number.parseInt(a),i)},t.prototype.toData=function(e){if(!e)throw new Error("Not supported for the network");var t=this,n=t.sender,r=t.code_id,a=t.wasm_byte_code;return{"@type":"/terra.wasm.v1beta1.MsgMigrateCode",sender:n,code_id:r.toFixed(),wasm_byte_code:a}},t}(u.JSONSerializable);t.MsgMigrateCode=b},49582:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgMigrateContract=void 0;var u=n(45034),d=n(58682),f=n(75084),l=n(67973),b=c(n(24141)),p=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.admin=t,i.contract=n,i.new_code_id=r,i.migrate_msg=a,i}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value,a=r.admin,i=r.contract,o=r.new_code_id,s=r.migrate_msg;return new t(a,i,Number.parseInt(o),s)}var c=e.value,u=c.sender,d=(i=c.contract,c.code_id),f=c.msg;return new t(u,i,Number.parseInt(d),f)},t.prototype.toAmino=function(e){if(e){var t=this,n=t.admin,r=t.contract,a=t.new_code_id,i=t.migrate_msg;return{type:"wasm/MsgMigrateContract",value:{admin:n,contract:r,new_code_id:a.toFixed(),migrate_msg:(0,u.removeNull)(i)}}}var o=this;return n=o.admin,r=o.contract,a=o.new_code_id,i=o.migrate_msg,{type:"wasm/MsgMigrateContract",value:{sender:n,contract:r,code_id:a.toFixed(),msg:(0,u.removeNull)(i)}}},t.fromProto=function(e,n){var r;return n?new t((r=e).admin,r.contract,r.newCodeId.toNumber(),JSON.parse(a.from(r.migrateMsg).toString("utf-8"))):new t((r=e).sender,r.contract,r.codeId.toNumber(),JSON.parse(a.from(r.msg).toString("utf-8")))},t.prototype.toProto=function(e){var t=this,n=t.admin,r=t.contract,i=t.new_code_id,o=t.migrate_msg;return e?f.MsgMigrateContract.fromPartial({admin:n,contract:r,newCodeId:b.fromNumber(i),migrateMsg:a.from(JSON.stringify(o),"utf-8")}):l.MsgMigrateContract.fromPartial({sender:n,contract:r,codeId:b.fromNumber(i),msg:a.from(JSON.stringify(o),"utf-8")})},t.prototype.packAny=function(e){return e?d.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgMigrateContract",value:f.MsgMigrateContract.encode(this.toProto(e)).finish()}):d.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgMigrateContract",value:l.MsgMigrateContract.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(n?f.MsgMigrateContract.decode(e.value):l.MsgMigrateContract.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e,a=r.admin,i=r.contract,o=r.new_code_id,s=r.migrate_msg;return new t(a,i,Number.parseInt(o),s)}var c=e,u=c.sender,d=(i=c.contract,c.code_id),f=c.msg;return new t(u,i,Number.parseInt(d),f)},t.prototype.toData=function(e){var t=this,n=t.admin,r=t.contract,a=t.new_code_id,i=t.migrate_msg;return e?{"@type":"/terra.wasm.v1beta1.MsgMigrateContract",admin:n,contract:r,new_code_id:a.toFixed(),migrate_msg:(0,u.removeNull)(i)}:{"@type":"/cosmwasm.wasm.v1.MsgMigrateContract",sender:n,contract:r,code_id:a.toFixed(),msg:(0,u.removeNull)(i)}},t}(u.JSONSerializable);t.MsgMigrateContract=p},43748:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgStoreCode=void 0;var o=n(45034),s=n(58682),c=n(75084),u=n(67973),d=n(88856),f=function(e){function t(t,n,r){var a=e.call(this)||this;return a.sender=t,a.wasm_byte_code=n,a.instantiate_permission=r,a}return i(t,e),t.fromAmino=function(e,n){if(n){var r=e.value;return new t(i=r.sender,o=r.wasm_byte_code)}var a=e.value,i=a.sender,o=a.wasm_byte_code,s=a.instantiate_permission;return new t(i,o,s?d.AccessConfig.fromAmino(s):void 0)},t.prototype.toAmino=function(e){var t=this,n=t.sender,r=t.wasm_byte_code,a=t.instantiate_permission;return e?{type:"wasm/MsgStoreCode",value:{sender:n,wasm_byte_code:r}}:{type:"wasm/MsgStoreCode",value:{sender:n,wasm_byte_code:r,instantiate_permission:null==a?void 0:a.toAmino()}}},t.fromProto=function(e,n){if(n)return new t(e.sender,a.from(e.wasmByteCode).toString("base64"));var r=e;return new t(r.sender,a.from(r.wasmByteCode).toString("base64"),r.instantiatePermission?d.AccessConfig.fromProto(r.instantiatePermission):void 0)},t.prototype.toProto=function(e){var t=this,n=t.sender,r=t.wasm_byte_code,i=t.instantiate_permission;return e?c.MsgStoreCode.fromPartial({sender:n,wasmByteCode:a.from(r,"base64")}):u.MsgStoreCode.fromPartial({sender:n,wasmByteCode:a.from(r,"base64"),instantiatePermission:null==i?void 0:i.toProto()})},t.prototype.packAny=function(e){var t;return t=e?"/terra.wasm.v1beta1.MsgStoreCode":"/cosmwasm.wasm.v1.MsgStoreCode",s.Any.fromPartial({typeUrl:t,value:e?c.MsgStoreCode.encode(this.toProto(e)).finish():u.MsgStoreCode.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(c.MsgStoreCode.decode(e.value),n):t.fromProto(u.MsgStoreCode.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e;return new t(i=r.sender,o=r.wasm_byte_code)}var a=e,i=a.sender,o=a.wasm_byte_code,s=a.instantiate_permission;return new t(i,o,s?d.AccessConfig.fromData(s):void 0)},t.prototype.toData=function(e){var t=this,n=t.sender,r=t.wasm_byte_code,a=t.instantiate_permission;return e?{"@type":"/terra.wasm.v1beta1.MsgStoreCode",sender:n,wasm_byte_code:r}:{"@type":"/cosmwasm.wasm.v1.MsgStoreCode",sender:n,wasm_byte_code:r,instantiate_permission:null==a?void 0:a.toData()}},t}(o.JSONSerializable);t.MsgStoreCode=f},75183:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MsgUpdateContractAdmin=void 0;var i=n(45034),o=n(58682),s=n(75084),c=n(67973),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.admin=t,a.new_admin=n,a.contract=r,a}return a(t,e),t.fromAmino=function(e,n){if(n){var r=e.value;return new t(r.admin,r.new_admin,r.contract)}var a=e.value;return new t(a.sender,a.new_admin,a.contract)},t.prototype.toAmino=function(e){var t=this,n=t.admin,r=t.new_admin,a=t.contract;return e?{type:"wasm/MsgUpdateContractAdmin",value:{admin:n,new_admin:r,contract:a}}:{type:"wasm/MsgUpdateAdmin",value:{sender:n,new_admin:r,contract:a}}},t.fromProto=function(e,n){var r;return new t(n?(r=e).admin:(r=e).sender,r.newAdmin,r.contract)},t.prototype.toProto=function(e){var t=this,n=t.admin,r=t.new_admin,a=t.contract;return e?s.MsgUpdateContractAdmin.fromPartial({admin:n,contract:a,newAdmin:r}):c.MsgUpdateAdmin.fromPartial({sender:n,contract:a,newAdmin:r})},t.prototype.packAny=function(e){return e?o.Any.fromPartial({typeUrl:"/terra.wasm.v1beta1.MsgUpdateContractAdmin",value:s.MsgUpdateContractAdmin.encode(this.toProto(e)).finish()}):o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MsgUpdateAdmin",value:c.MsgUpdateAdmin.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return n?t.fromProto(s.MsgUpdateContractAdmin.decode(e.value),n):t.fromProto(c.MsgUpdateAdmin.decode(e.value),n)},t.fromData=function(e,n){if(n){var r=e;return new t(r.admin,r.new_admin,r.contract)}var a=e;return new t(a.sender,a.new_admin,a.contract)},t.prototype.toData=function(e){var t=this,n=t.admin,r=t.new_admin,a=t.contract;return e?{"@type":"/terra.wasm.v1beta1.MsgUpdateContractAdmin",admin:n,new_admin:r,contract:a}:{"@type":"/cosmwasm.wasm.v1.MsgUpdateAdmin",sender:n,new_admin:r,contract:a}},t}(i.JSONSerializable);t.MsgUpdateContractAdmin=u},63525:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(43748),t),a(n(99685),t),a(n(53189),t),a(n(36960),t),a(n(49582),t),a(n(75183),t),a(n(82638),t)},39605:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClearAdminProposal=void 0;var i=n(45034),o=n(58682),s=n(33082),c=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.contract=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.contract)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/ClearAdminProposal",value:{title:t.title,description:t.description,contract:t.contract}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract;return s.ClearAdminProposal.fromPartial({title:n,description:r,contract:a})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.ClearAdminProposal",value:s.ClearAdminProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.ClearAdminProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.contract)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.ClearAdminProposal",title:t.title,description:t.description,contract:t.contract}},t}(i.JSONSerializable);t.ClearAdminProposal=c},72129:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ExecuteContractProposal=void 0;var o=n(45034),s=n(8880),c=n(58682),u=n(33082),d=function(e){function t(t,n,r,a,i,o){void 0===o&&(o={});var c=e.call(this)||this;return c.title=t,c.description=n,c.run_as=r,c.contract=a,c.execute_msg=i,c.coins=new s.Coins(o),c}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.run_as,c=r.contract,u=r.msg,d=r.funds;return new t(a,i,o,c,u,s.Coins.fromAmino(d))},t.prototype.toAmino=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.contract,s=t.execute_msg,c=t.coins;if(e)throw new Error("Not supported for the network");return{type:"wasm/ExecuteContractProposal",value:{title:n,description:r,run_as:a,contract:i,msg:(0,o.removeNull)(s),funds:c.toAmino()}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.runAs,e.contract,JSON.parse(a.from(e.msg).toString("utf-8")),s.Coins.fromProto(e.funds))},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,i=t.run_as,s=t.contract,c=t.execute_msg,d=t.coins;if(e)throw new Error("Not supported for the network");return u.ExecuteContractProposal.fromPartial({title:n,description:r,funds:d.toProto(),contract:s,runAs:i,msg:a.from(JSON.stringify((0,o.removeNull)(c)),"utf-8")})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return c.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.ExecuteContractProposal",value:u.ExecuteContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){return t.fromProto(u.ExecuteContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e,a=r.title,i=r.description,o=r.run_as,c=r.contract,u=r.msg,d=r.funds;return new t(a,i,o,c,u,s.Coins.fromData(d))},t.prototype.toData=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.contract,o=t.execute_msg,s=t.coins;if(e)throw new Error("Not supported for the network");return{"@type":"/cosmwasm.wasm.v1.ExecuteContractProposal",title:n,description:r,run_as:a,contract:i,msg:o,funds:s.toData()}},t}(o.JSONSerializable);t.ExecuteContractProposal=d},83509:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiateContractProposal=void 0;var u=n(45034),d=n(8880),f=n(58682),l=n(33082),b=c(n(24141)),p=function(e){function t(t,n,r,a,i,o,s,c){void 0===s&&(s={});var u=e.call(this)||this;return u.title=t,u.description=n,u.run_as=r,u.admin=a,u.code_id=i,u.init_msg=o,u.label=c,u.init_coins=new d.Coins(s),u}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.run_as,s=r.admin,c=r.code_id,u=r.msg,f=r.funds,l=r.label;return new t(a,i,o,s,Number.parseInt(c),u,d.Coins.fromAmino(f),l)},t.prototype.toAmino=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.admin,o=t.code_id,s=t.init_msg,c=t.init_coins,d=t.label;if(e)throw new Error("Not supported for the network");return{type:"wasm/InstantiateContractProposal",value:{title:n,description:r,run_as:a,admin:i,code_id:o.toFixed(),label:d,msg:(0,u.removeNull)(s),funds:c.toAmino()}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.runAs,""!==e.admin?e.admin:void 0,e.codeId.toNumber(),JSON.parse(a.from(e.msg).toString("utf-8")),d.Coins.fromProto(e.funds),e.label)},t.prototype.toProto=function(e){var t=this,n=t.title,r=t.description,i=t.run_as,o=t.admin,s=t.code_id,c=t.init_msg,u=t.init_coins,d=t.label;if(e)throw new Error("Not supported for the network");return l.InstantiateContractProposal.fromPartial({title:n,description:r,runAs:i,admin:o,codeId:b.fromNumber(s),funds:u.toProto(),msg:a.from(JSON.stringify(c),"utf-8"),label:d})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return f.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.InstantiateContractProposal",value:l.InstantiateContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(l.InstantiateContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e,a=r.title,i=r.description,o=r.run_as,s=r.admin,c=r.code_id,u=r.label,f=r.msg,l=r.funds;return new t(a,i,o,""!==s?s:void 0,Number.parseInt(c),f,d.Coins.fromData(l),u)},t.prototype.toData=function(e){var t=this,n=t.title,r=t.description,a=t.run_as,i=t.admin,o=t.code_id,s=t.label,c=t.init_msg,d=t.init_coins;if(e)throw new Error("Not supported for the network");return{"@type":"/cosmwasm.wasm.v1.InstantiateContractProposal",title:n,description:r,run_as:a,admin:i||"",code_id:o.toFixed(),label:s,msg:(0,u.removeNull)(c),funds:d.toData()}},t}(u.JSONSerializable);t.InstantiateContractProposal=p},33413:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateContractProposal=void 0;var u=n(45034),d=n(58682),f=n(33082),l=c(n(24141)),b=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.title=t,o.description=n,o.contract=r,o.new_code_id=a,o.migrate_msg=i,o}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.contract,s=r.code_id,c=r.msg;return new t(a,i,o,Number.parseInt(s),c)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.new_code_id,o=t.migrate_msg;return{type:"wasm/MigrateContractProposal",value:{title:n,description:r,contract:a,code_id:i.toFixed(),msg:(0,u.removeNull)(o)}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract,e.codeId.toNumber(),JSON.parse(a.from(e.msg).toString("utf-8")))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,i=t.contract,o=t.new_code_id,s=t.migrate_msg;return f.MigrateContractProposal.fromPartial({title:n,description:r,contract:i,codeId:l.fromNumber(o),msg:a.from(JSON.stringify(s),"utf-8")})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return d.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.MigrateContractProposal",value:f.MigrateContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(f.MigrateContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e,a=r.title,i=r.description,o=r.contract,s=r.code_id,c=r.msg;return new t(a,i,o,Number.parseInt(s),c)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.new_code_id,o=t.migrate_msg;return{"@type":"/cosmwasm.wasm.v1.MigrateContractProposal",title:n,description:r,contract:a,code_id:i.toFixed(),msg:(0,u.removeNull)(o)}},t}(u.JSONSerializable);t.MigrateContractProposal=b},49311:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PinCodesProposal=void 0;var c=n(45034),u=n(58682),d=n(33082),f=s(n(24141)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.code_ids=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/PinCodesProposal",value:{title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.codeIds.map((function(e){return e.toNumber()})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.code_ids;return d.PinCodesProposal.fromPartial({title:n,description:r,codeIds:a.map((function(e){return f.fromNumber(e)}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return u.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.PinCodesProposal",value:d.PinCodesProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(d.PinCodesProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.PinCodesProposal",title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}},t}(c.JSONSerializable);t.PinCodesProposal=l},79875:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.StoreCodeProposal=void 0;var o=n(45034),s=n(27213),c=n(33082),u=n(88856),d=function(e){function t(t,n,r,a,i){var o=e.call(this)||this;return o.title=t,o.description=n,o.run_as=r,o.wasm_byte_code=a,o.instantiate_permission=i,o}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value,a=r.title,i=r.description,o=r.run_as,s=r.wasm_byte_code,c=r.instantiate_permission;return new t(a,i,o,s,c?u.AccessConfig.fromAmino(c):void 0)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.run_as,i=t.wasm_byte_code,o=t.instantiate_permission;return{type:"wasm/StoreCodeProposal",value:{title:n,description:r,run_as:a,wasm_byte_code:i,instantiate_permission:null==o?void 0:o.toAmino()}}},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.title,a=e.description,i=e.run_as,o=e.wasm_byte_code,s=e.instantiate_permission;return new t(r,a,i,o,s?u.AccessConfig.fromData(s):void 0)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.run_as,i=t.wasm_byte_code,o=t.instantiate_permission;return{"@type":"/cosmwasm.wasm.v1.StoreCodeProposal",title:n,description:r,run_as:a,wasm_byte_code:i,instantiate_permission:null==o?void 0:o.toData()}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.runAs,a.from(e.wasmByteCode).toString("base64"),e.instantiatePermission?u.AccessConfig.fromProto(e.instantiatePermission):void 0)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,i=t.run_as,o=t.wasm_byte_code,s=t.instantiate_permission;return c.StoreCodeProposal.fromPartial({title:n,description:r,runAs:i,wasmByteCode:a.from(o,"base64"),instantiatePermission:null==s?void 0:s.toProto()})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return s.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.StoreCodeProposal",value:c.StoreCodeProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(c.StoreCodeProposal.decode(e.value),n)},t}(o.JSONSerializable);t.StoreCodeProposal=d},73041:function(e,t,n){"use strict";var r,a=n(5886).Buffer,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.SudoContractProposal=void 0;var o=n(45034),s=n(58682),c=n(33082),u=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.title=t,i.description=n,i.contract=r,i.msg=a,i}return i(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.contract,r.msg)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.msg;return{type:"wasm/SudoContractProposal",value:{title:n,description:r,contract:a,msg:(0,o.removeNull)(i)}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract,JSON.parse(a.from(e.msg).toString("utf-8")))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,i=t.contract,o=t.msg;return c.SudoContractProposal.fromPartial({title:n,description:r,contract:i,msg:a.from(JSON.stringify(o),"utf-8")})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return s.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.SudoContractProposal",value:c.SudoContractProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(c.SudoContractProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.contract,r.msg)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.msg;return{"@type":"/cosmwasm.wasm.v1.SudoContractProposal",title:n,description:r,contract:a,msg:(0,o.removeNull)(i)}},t}(o.JSONSerializable);t.SudoContractProposal=u},44247:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.UnpinCodesProposal=void 0;var c=n(45034),u=n(58682),d=n(33082),f=s(n(24141)),l=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.code_ids=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/UnpinCodesProposal",value:{title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.codeIds.map((function(e){return e.toNumber()})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.code_ids;return d.UnpinCodesProposal.fromPartial({title:n,description:r,codeIds:a.map((function(e){return f.fromNumber(e)}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return u.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.UnpinCodesProposal",value:d.UnpinCodesProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(d.UnpinCodesProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.code_ids.map((function(e){return Number.parseInt(e)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.UnpinCodesProposal",title:t.title,description:t.description,code_ids:t.code_ids.map((function(e){return e.toFixed()}))}},t}(c.JSONSerializable);t.UnpinCodesProposal=l},62968:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateAdminProposal=void 0;var i=n(45034),o=n(58682),s=n(33082),c=function(e){function t(t,n,r,a){var i=e.call(this)||this;return i.title=t,i.description=n,i.contract=r,i.new_admin=a,i}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.contract,r.new_admin)},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/UpdateAdminProposal",value:{title:t.title,description:t.description,contract:t.contract,new_admin:t.new_admin}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.contract,e.newAdmin)},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.contract,i=t.new_admin;return s.UpdateAdminProposal.fromPartial({title:n,description:r,contract:a,newAdmin:i})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.UpdateAdminProposal",value:s.UpdateAdminProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.UpdateAdminProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.contract,r.new_admin)},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.UpdateAdminProposal",title:t.title,description:t.description,contract:t.contract,new_admin:t.new_admin}},t}(i.JSONSerializable);t.UpdateAdminProposal=c},11362:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateInstantiateConfigProposal=void 0;var i=n(45034),o=n(58682),s=n(33082),c=n(48307),u=function(e){function t(t,n,r){var a=e.call(this)||this;return a.title=t,a.description=n,a.access_config_updates=r,a}return a(t,e),t.fromAmino=function(e,n){if(n)throw new Error("Not supported for the network");var r=e.value;return new t(r.title,r.description,r.access_config_updates.map((function(e){return c.AccessConfigUpdate.fromAmino(e)})))},t.prototype.toAmino=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{type:"wasm/UpdateInstantiateConfigProposal",value:{title:t.title,description:t.description,access_config_updates:t.access_config_updates.map((function(e){return e.toAmino()}))}}},t.fromProto=function(e,n){if(n)throw new Error("Not supported for the network");return new t(e.title,e.description,e.accessConfigUpdates.map((function(e){return c.AccessConfigUpdate.fromProto(e)})))},t.prototype.toProto=function(e){if(e)throw new Error("Not supported for the network");var t=this,n=t.title,r=t.description,a=t.access_config_updates;return s.UpdateInstantiateConfigProposal.fromPartial({title:n,description:r,accessConfigUpdates:a.map((function(e){return e.toProto()}))})},t.prototype.packAny=function(e){if(e)throw new Error("Not supported for the network");return o.Any.fromPartial({typeUrl:"/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal",value:s.UpdateInstantiateConfigProposal.encode(this.toProto(e)).finish()})},t.unpackAny=function(e,n){if(n)throw new Error("Not supported for the network");return t.fromProto(s.UpdateInstantiateConfigProposal.decode(e.value),n)},t.fromData=function(e,n){if(n)throw new Error("Not supported for the network");var r=e;return new t(r.title,r.description,r.access_config_updates.map((function(e){return c.AccessConfigUpdate.fromData(e)})))},t.prototype.toData=function(e){if(e)throw new Error("Not supported for the network");var t=this;return{"@type":"/cosmwasm.wasm.v1.UpdateInstantiateConfigProposal",title:t.title,description:t.description,access_config_updates:t.access_config_updates.map((function(e){return e.toData()}))}},t}(i.JSONSerializable);t.UpdateInstantiateConfigProposal=u},81225:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),a(n(39605),t),a(n(72129),t),a(n(83509),t),a(n(33413),t),a(n(49311),t),a(n(79875),t),a(n(73041),t),a(n(44247),t),a(n(62968),t),a(n(11362),t)},65852:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertAccessTypeFromJSON=void 0;var r=n(59673);t.convertAccessTypeFromJSON=function(e){var t=e;switch(e){case"Everybody":t="ACCESS_TYPE_EVERYBODY";break;case"Nobody":t="ACCESS_TYPE_NOBODY";break;case"OnlyAddress":t="ACCESS_TYPE_ONLY_ADDRESS";break;case"Unspecified":t="ACCESS_TYPE_UNSPECIFIED"}return(0,r.accessTypeFromJSON)(t)}},20020:function(e,t,n){"use strict";var r,a=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(96181),o=function(){},s=function(e){function t(t){var n=t.name,r=t.target,a=t.targetWindow,i=e.call(this,{objectMode:!0})||this;return i._name=n,i._target=r,i._targetWindow=a||window,i._origin=a?"*":location.origin,i._init=!1,i._haveSyn=!1,i._onMessage=i._onMessage.bind(i),window.addEventListener("message",i._onMessage,!1),i._write("SYN",null,o),i.cork(),i}return a(t,e),t.prototype._destroy=function(){window.removeEventListener("message",this._onMessage,!1)},t.prototype._onMessage=function(e){var t=e.data;if(("*"===this._origin||e.origin===this._origin)&&e.source===this._targetWindow&&"object"==typeof t&&t.target===this._name&&t.data)if(this._init)try{this.push(t.data)}catch(e){this.emit("error",e)}else"SYN"===t.data?(this._haveSyn=!0,this._write("ACK",null,o)):"ACK"===t.data&&(this._init=!0,this._haveSyn||this._write("ACK",null,o),this.uncork())},t.prototype._read=function(){},t.prototype._write=function(e,t,n){var r={target:this._target,data:e};this._targetWindow.postMessage(r,this._origin),n(null)},t}(i.Duplex);t.default=s},79005:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){f.headers[e]=a.merge(c)})),e.exports=f},31722:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},89418:function(e){e.exports={version:"0.26.1"}},76173:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},63658:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},75940:function(e,t,n){"use strict";var r=n(89418).version,a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var i={};a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new Error(a(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),a=r.length;a-- >0;){var i=r[a],o=t[i];if(o){var s=e[i],c=void 0===s||o(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:a}},56386:function(e,t,n){"use strict";var r=n(76173),a=Object.prototype.toString;function i(e){return Array.isArray(e)}function o(e){return void 0===e}function s(e){return"[object ArrayBuffer]"===a.call(e)}function c(e){return null!==e&&"object"==typeof e}function u(e){if("[object Object]"!==a.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function d(e){return"[object Function]"===a.call(e)}function f(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},i=function(){for(var e=[],t=0;t=55296&&a<=56319&&r65535&&(f-=65536,o.push(f>>>10&1023|55296),f=56320|1023&f),o.push(f)}else o.push(c);o.length>=4096&&(s+=String.fromCharCode.apply(String,i(o)),o.length=0)}return o.length>0&&(s+=String.fromCharCode.apply(String,i(o))),s}var l=o?new TextDecoder:null,b=void 0!==r?200:0,p=function(e,t){this.type=e,this.data=t};function h(e,t,n){var r=Math.floor(n/4294967296),a=n;e.setUint32(t,r),e.setUint32(t+4,a)}function y(e,t){var n=e.getInt32(t),r=e.getUint32(t+4),a=nMath.floor(Number.MAX_SAFE_INTEGER/4294967296);return a||i?BigInt(n)*BigInt(4294967296)+BigInt(r):4294967296*n+r}var m=-1;function v(e){var t,n=e.sec,r=e.nsec;if(n>=0&&r>=0&&n<=17179869183){if(0===r&&n<=4294967295){var a=new Uint8Array(4);return(t=new DataView(a.buffer)).setUint32(0,n),a}var i=n/4294967296,o=4294967295&n;return a=new Uint8Array(8),(t=new DataView(a.buffer)).setUint32(0,r<<2|3&i),t.setUint32(4,o),a}return a=new Uint8Array(12),(t=new DataView(a.buffer)).setUint32(0,r),h(t,4,n),a}function g(e){var t=e.getTime(),n=Math.floor(t/1e3),r=1e6*(t-1e3*n),a=Math.floor(r/1e9);return{sec:n+a,nsec:r-1e9*a}}function A(e){return e instanceof Date?v(g(e)):null}function w(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);switch(e.byteLength){case 4:return{sec:t.getUint32(0),nsec:0};case 8:var n=t.getUint32(0);return{sec:4294967296*(3&n)+t.getUint32(4),nsec:n>>>2};case 12:return{sec:y(t,4),nsec:t.getUint32(0)};default:throw new Error("Unrecognized data size for timestamp: "+e.length)}}function x(e){var t=w(e);return new Date(1e3*t.sec+t.nsec/1e6)}var _={type:m,encode:A,decode:x},k=function(){function e(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(_)}return e.prototype.register=function(e){var t=e.type,n=e.encode,r=e.decode;if(t>=0)this.encoders[t]=n,this.decoders[t]=r;else{var a=1+t;this.builtInEncoders[a]=n,this.builtInDecoders[a]=r}},e.prototype.tryToEncode=function(e,t){for(var n=0;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},E=function(){function e(e,t,n,r,a,i,o,s){void 0===e&&(e=k.defaultCodec),void 0===t&&(t=void 0),void 0===n&&(n=100),void 0===r&&(r=2048),void 0===a&&(a=!1),void 0===i&&(i=!1),void 0===o&&(o=!1),void 0===s&&(s=!1),this.extensionCodec=e,this.context=t,this.maxDepth=n,this.initialBufferSize=r,this.sortKeys=a,this.forceFloat32=i,this.ignoreUndefined=o,this.forceIntegerToFloat=s,this.pos=0,this.view=new DataView(new ArrayBuffer(this.initialBufferSize)),this.bytes=new Uint8Array(this.view.buffer)}return e.prototype.getUint8Array=function(){return this.bytes.subarray(0,this.pos)},e.prototype.reinitializeState=function(){this.pos=0},e.prototype.encode=function(e){return this.reinitializeState(),this.doEncode(e,1),this.getUint8Array()},e.prototype.doEncode=function(e,t){if(t>this.maxDepth)throw new Error("Too deep objects in depth "+t);null==e?this.encodeNil():"boolean"==typeof e?this.encodeBoolean(e):"number"==typeof e?this.encodeNumber(e):"string"==typeof e?this.encodeString(e):"bigint"==typeof e?this.encodebigint(e):this.encodeObject(e,t)},e.prototype.ensureBufferSizeToWrite=function(e){var t=this.pos+e;this.view.byteLength=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},e.prototype.encodebigint=function(e){e>=BigInt(0)?e=BigInt(-32)?this.writeU8(224|Number(e)+32):e>=BigInt(-128)?(this.writeU8(208),this.writeI8(Number(e))):e>=BigInt(-32768)?(this.writeU8(209),this.writeI16(Number(e))):e>=BigInt(-2147483648)?(this.writeU8(210),this.writeI32(Number(e))):(this.writeU8(211),this.writeBig64(e))},e.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else{if(!(e<4294967296))throw new Error("Too long string: "+e+" bytes in UTF-8");this.writeU8(219),this.writeU32(e)}},e.prototype.encodeString=function(e){var t=e.length;if(o&&t>u){var n=s(e);this.ensureBufferSizeToWrite(5+n),this.writeStringHeader(n),d(e,this.bytes,this.pos),this.pos+=n}else n=s(e),this.ensureBufferSizeToWrite(5+n),this.writeStringHeader(n),function(e,t,n){for(var r=e.length,a=n,i=0;i>6&31|192;else{if(o>=55296&&o<=56319&&i>12&15|224,t[a++]=o>>6&63|128):(t[a++]=o>>18&7|240,t[a++]=o>>12&63|128,t[a++]=o>>6&63|128)}t[a++]=63&o|128}else t[a++]=o}}(e,this.bytes,this.pos),this.pos+=n},e.prototype.encodeObject=function(e,t){var n=this.extensionCodec.tryToEncode(e,this.context);if(null!=n)this.encodeExtension(n);else if(Array.isArray(e))this.encodeArray(e,t);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else{if("object"!=typeof e)throw new Error("Unrecognized object: "+Object.prototype.toString.apply(e));this.encodeMap(e,t)}},e.prototype.encodeBinary=function(e){var t=e.byteLength;if(t<256)this.writeU8(196),this.writeU8(t);else if(t<65536)this.writeU8(197),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large binary: "+t);this.writeU8(198),this.writeU32(t)}var n=I(e);this.writeU8a(n)},e.prototype.encodeArray=function(e,t){var n,r,a=e.length;if(a<16)this.writeU8(144+a);else if(a<65536)this.writeU8(220),this.writeU16(a);else{if(!(a<4294967296))throw new Error("Too large array: "+a);this.writeU8(221),this.writeU32(a)}try{for(var i=S(e),o=i.next();!o.done;o=i.next()){var s=o.value;this.doEncode(s,t+1)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.countWithoutUndefined=function(e,t){var n,r,a=0;try{for(var i=S(t),o=i.next();!o.done;o=i.next())void 0!==e[o.value]&&a++}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},e.prototype.encodeMap=function(e,t){var n,r,a=Object.keys(e);this.sortKeys&&a.sort();var i=this.ignoreUndefined?this.countWithoutUndefined(e,a):a.length;if(i<16)this.writeU8(128+i);else if(i<65536)this.writeU8(222),this.writeU16(i);else{if(!(i<4294967296))throw new Error("Too large map object: "+i);this.writeU8(223),this.writeU32(i)}try{for(var o=S(a),s=o.next();!s.done;s=o.next()){var c=s.value,u=e[c];this.ignoreUndefined&&void 0===u||(this.encodeString(c),this.doEncode(u,t+1))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},e.prototype.encodeExtension=function(e){var t=e.data.length;if(1===t)this.writeU8(212);else if(2===t)this.writeU8(213);else if(4===t)this.writeU8(214);else if(8===t)this.writeU8(215);else if(16===t)this.writeU8(216);else if(t<256)this.writeU8(199),this.writeU8(t);else if(t<65536)this.writeU8(200),this.writeU16(t);else{if(!(t<4294967296))throw new Error("Too large extension object: "+t);this.writeU8(201),this.writeU32(t)}this.writeI8(e.type),this.writeU8a(e.data)},e.prototype.writeU8=function(e){this.ensureBufferSizeToWrite(1),this.view.setUint8(this.pos,e),this.pos++},e.prototype.writeU8a=function(e){var t=e.length;this.ensureBufferSizeToWrite(t),this.bytes.set(e,this.pos),this.pos+=t},e.prototype.writeI8=function(e){this.ensureBufferSizeToWrite(1),this.view.setInt8(this.pos,e),this.pos++},e.prototype.writeU16=function(e){this.ensureBufferSizeToWrite(2),this.view.setUint16(this.pos,e),this.pos+=2},e.prototype.writeI16=function(e){this.ensureBufferSizeToWrite(2),this.view.setInt16(this.pos,e),this.pos+=2},e.prototype.writeU32=function(e){this.ensureBufferSizeToWrite(4),this.view.setUint32(this.pos,e),this.pos+=4},e.prototype.writeI32=function(e){this.ensureBufferSizeToWrite(4),this.view.setInt32(this.pos,e),this.pos+=4},e.prototype.writeF32=function(e){this.ensureBufferSizeToWrite(4),this.view.setFloat32(this.pos,e),this.pos+=4},e.prototype.writeF64=function(e){this.ensureBufferSizeToWrite(8),this.view.setFloat64(this.pos,e),this.pos+=8},e.prototype.writeU64=function(e){this.ensureBufferSizeToWrite(8),function(e,t,n){var r=n/4294967296,a=n;e.setUint32(t,r),e.setUint32(t+4,a)}(this.view,this.pos,e),this.pos+=8},e.prototype.writeI64=function(e){this.ensureBufferSizeToWrite(8),h(this.view,this.pos,e),this.pos+=8},e.prototype.writeBig64=function(e){this.ensureBufferSizeToWrite(8),function(e,t,n){var r=Number(n/BigInt(4294967296)),a=Number(n%BigInt(4294967296));r<0&&0!==a&&(r-=1),e.setUint32(t,r),e.setUint32(t+4,a)}(this.view,this.pos,e),this.pos+=8},e}(),C={};function T(e,t){return void 0===t&&(t=C),new E(t.extensionCodec,t.context,t.maxDepth,t.initialBufferSize,t.sortKeys,t.forceFloat32,t.ignoreUndefined,t.forceIntegerToFloat).encode(e)}function O(e){return(e<0?"-":"")+"0x"+Math.abs(e).toString(16).padStart(2,"0")}var P=function(){function e(e,t){void 0===e&&(e=16),void 0===t&&(t=16),this.maxKeyLength=e,this.maxLengthPerKey=t,this.hit=0,this.miss=0,this.caches=[];for(var n=0;n0&&e<=this.maxKeyLength},e.prototype.get=function(e,t,n){var r=this.caches[n-1],a=r.length;e:for(var i=0;i=this.maxLengthPerKey?n[Math.random()*n.length|0]=r:n.push(r)},e.prototype.decode=function(e,t,n){var r=this.get(e,t,n);if(null!=r)return this.hit++,r;this.miss++;var a=f(e,t,n),i=Uint8Array.prototype.slice.call(e,t,t+n);return this.store(i,a),a},e}(),M=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=e},e.prototype.createNoExtraBytesError=function(e){var t=this.view,n=this.pos;return new RangeError("Extra "+(t.byteLength-n)+" of "+t.byteLength+" byte(s) found at buffer["+e+"]")},e.prototype.decode=function(e){return this.reinitializeState(),this.setBuffer(e),this.doDecodeSingleSync()},e.prototype.doDecodeSingleSync=function(){var e=this.doDecodeSync();if(this.hasRemaining())throw this.createNoExtraBytesError(this.pos);return e},e.prototype.decodeAsync=function(e){var t,n,r,a;return function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}(this,void 0,void 0,(function(){var i,o,s,c,u,d,f,l;return M(this,(function(b){switch(b.label){case 0:i=!1,b.label=1;case 1:b.trys.push([1,6,7,12]),t=B(e),b.label=2;case 2:return[4,t.next()];case 3:if((n=b.sent()).done)return[3,5];if(s=n.value,i)throw this.createNoExtraBytesError(this.totalPos);this.appendBuffer(s);try{o=this.doDecodeSync(),i=!0}catch(e){if(!(e instanceof j))throw e}this.totalPos+=this.pos,b.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return c=b.sent(),r={error:c},[3,12];case 7:return b.trys.push([7,,10,11]),n&&!n.done&&(a=t.return)?[4,a.call(t)]:[3,9];case 8:b.sent(),b.label=9;case 9:return[3,11];case 10:if(r)throw r.error;return[7];case 11:return[7];case 12:if(i){if(this.hasRemaining())throw this.createNoExtraBytesError(this.totalPos);return[2,o]}throw d=(u=this).headByte,f=u.pos,l=u.totalPos,new RangeError("Insufficient data in parcing "+O(d)+" at "+l+" ("+f+" in the current buffer)")}}))}))},e.prototype.decodeArrayStream=function(e){return this.decodeMultiAsync(e,!0)},e.prototype.decodeStream=function(e){return this.decodeMultiAsync(e,!1)},e.prototype.decodeMultiAsync=function(e,t){return function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,a=n.apply(e,t||[]),i=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){a[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof N?Promise.resolve(n.value.v).then(c,u):d(i[0][2],n)}catch(e){d(i[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function d(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}(this,arguments,(function(){var n,r,a,i,o,s,c,u,d;return M(this,(function(f){switch(f.label){case 0:n=t,r=-1,f.label=1;case 1:f.trys.push([1,13,14,19]),a=B(e),f.label=2;case 2:return[4,N(a.next())];case 3:if((i=f.sent()).done)return[3,12];if(o=i.value,t&&0===r)throw this.createNoExtraBytesError(this.totalPos);this.appendBuffer(o),n&&(r=this.readArraySize(),n=!1,this.complete()),f.label=4;case 4:f.trys.push([4,9,,10]),f.label=5;case 5:return[4,N(this.doDecodeSync())];case 6:return[4,f.sent()];case 7:return f.sent(),0==--r?[3,8]:[3,5];case 8:return[3,10];case 9:if(!((s=f.sent())instanceof j))throw s;return[3,10];case 10:this.totalPos+=this.pos,f.label=11;case 11:return[3,2];case 12:return[3,19];case 13:return c=f.sent(),u={error:c},[3,19];case 14:return f.trys.push([14,,17,18]),i&&!i.done&&(d=a.return)?[4,N(d.call(a))]:[3,16];case 15:f.sent(),f.label=16;case 16:return[3,18];case 17:if(u)throw u.error;return[7];case 18:return[7];case 19:return[2]}}))}))},e.prototype.doDecodeSync=function(){e:for(;;){var e=this.readHeadByte(),t=void 0;if(e>=224)t=e-256;else if(e<192)if(e<128)t=e;else if(e<144){if(0!=(r=e-128)){this.pushMapState(r),this.complete();continue e}t={}}else if(e<160){if(0!=(r=e-144)){this.pushArrayState(r),this.complete();continue e}t=[]}else{var n=e-160;t=this.decodeUtf8String(n,0)}else if(192===e)t=null;else if(194===e)t=!1;else if(195===e)t=!0;else if(202===e)t=this.readF32();else if(203===e)t=this.readF64();else if(204===e)t=this.readU8();else if(205===e)t=this.readU16();else if(206===e)t=this.readU32();else if(207===e)t=this.readU64();else if(208===e)t=this.readI8();else if(209===e)t=this.readI16();else if(210===e)t=this.readI32();else if(211===e)t=this.readI64();else if(217===e)n=this.lookU8(),t=this.decodeUtf8String(n,1);else if(218===e)n=this.lookU16(),t=this.decodeUtf8String(n,2);else if(219===e)n=this.lookU32(),t=this.decodeUtf8String(n,4);else if(220===e){if(0!==(r=this.readU16())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(221===e){if(0!==(r=this.readU32())){this.pushArrayState(r),this.complete();continue e}t=[]}else if(222===e){if(0!==(r=this.readU16())){this.pushMapState(r),this.complete();continue e}t={}}else if(223===e){if(0!==(r=this.readU32())){this.pushMapState(r),this.complete();continue e}t={}}else if(196===e){var r=this.lookU8();t=this.decodeBinary(r,1)}else if(197===e)r=this.lookU16(),t=this.decodeBinary(r,2);else if(198===e)r=this.lookU32(),t=this.decodeBinary(r,4);else if(212===e)t=this.decodeExtension(1,0);else if(213===e)t=this.decodeExtension(2,0);else if(214===e)t=this.decodeExtension(4,0);else if(215===e)t=this.decodeExtension(8,0);else if(216===e)t=this.decodeExtension(16,0);else if(199===e)r=this.lookU8(),t=this.decodeExtension(r,1);else if(200===e)r=this.lookU16(),t=this.decodeExtension(r,2);else{if(201!==e)throw new Error("Unrecognized type byte: "+O(e));r=this.lookU32(),t=this.decodeExtension(r,4)}this.complete();for(var a=this.stack;a.length>0;){var i=a[a.length-1];if(0===i.type){if(i.array[i.position]=t,i.position++,i.position!==i.size)continue e;a.pop(),t=i.array}else{if(1===i.type){if(void 0,"string"!=(o=typeof t)&&"number"!==o)throw new Error("The type of key must be string or number but "+typeof t);i.key=t,i.type=2;continue e}if(i.map[i.key]=t,i.readCount++,i.readCount!==i.size){i.key=null,i.type=1;continue e}a.pop(),t=i.map}}return t}var o},e.prototype.readHeadByte=function(){return-1===this.headByte&&(this.headByte=this.readU8()),this.headByte},e.prototype.complete=function(){this.headByte=-1},e.prototype.readArraySize=function(){var e=this.readHeadByte();switch(e){case 220:return this.readU16();case 221:return this.readU32();default:if(e<160)return e-144;throw new Error("Unrecognized array type byte: "+O(e))}},e.prototype.pushMapState=function(e){if(e>this.maxMapLength)throw new Error("Max length exceeded: map length ("+e+") > maxMapLengthLength ("+this.maxMapLength+")");this.stack.push({type:1,size:e,key:null,readCount:0,map:{}})},e.prototype.pushArrayState=function(e){if(e>this.maxArrayLength)throw new Error("Max length exceeded: array length ("+e+") > maxArrayLength ("+this.maxArrayLength+")");this.stack.push({type:0,size:e,array:new Array(e),position:0})},e.prototype.decodeUtf8String=function(e,t){var n;if(e>this.maxStrLength)throw new Error("Max length exceeded: UTF-8 byte length ("+e+") > maxStrLength ("+this.maxStrLength+")");if(this.bytes.byteLengthb?function(e,t,n){var r=e.subarray(t,t+n);return l.decode(r)}(this.bytes,a,e):f(this.bytes,a,e),this.pos+=t+e,r},e.prototype.stateIsMapKey=function(){return this.stack.length>0&&1===this.stack[this.stack.length-1].type},e.prototype.decodeBinary=function(e,t){if(e>this.maxBinLength)throw new Error("Max length exceeded: bin length ("+e+") > maxBinLength ("+this.maxBinLength+")");if(!this.hasRemaining(e+t))throw U;var n=this.pos+t,r=this.bytes.subarray(n,n+e);return this.pos+=t+e,r},e.prototype.decodeExtension=function(e,t){if(e>this.maxExtLength)throw new Error("Max length exceeded: ext length ("+e+") > maxExtLength ("+this.maxExtLength+")");var n=this.view.getInt8(this.pos+t),r=this.decodeBinary(e,t+1);return this.extensionCodec.decode(r,n,this.context)},e.prototype.lookU8=function(){return this.view.getUint8(this.pos)},e.prototype.lookU16=function(){return this.view.getUint16(this.pos)},e.prototype.lookU32=function(){return this.view.getUint32(this.pos)},e.prototype.readU8=function(){var e=this.view.getUint8(this.pos);return this.pos++,e},e.prototype.readI8=function(){var e=this.view.getInt8(this.pos);return this.pos++,e},e.prototype.readU16=function(){var e=this.view.getUint16(this.pos);return this.pos+=2,e},e.prototype.readI16=function(){var e=this.view.getInt16(this.pos);return this.pos+=2,e},e.prototype.readU32=function(){var e=this.view.getUint32(this.pos);return this.pos+=4,e},e.prototype.readI32=function(){var e=this.view.getInt32(this.pos);return this.pos+=4,e},e.prototype.readU64=function(){var e,t,n,r,a=(e=this.view,t=this.pos,n=e.getUint32(t),r=e.getUint32(t+4),n>Math.floor(Number.MAX_SAFE_INTEGER/4294967296)?BigInt(n)*BigInt(4294967296)+BigInt(r):4294967296*n+r);return this.pos+=8,a},e.prototype.readI64=function(){var e=y(this.view,this.pos);return this.pos+=8,e},e.prototype.readF32=function(){var e=this.view.getFloat32(this.pos);return this.pos+=4,e},e.prototype.readF64=function(){var e=this.view.getFloat64(this.pos);return this.pos+=8,e},e}(),Z={};function H(e,t){return void 0===t&&(t=Z),new F(t.extensionCodec,t.context,t.maxStrLength,t.maxBinLength,t.maxArrayLength,t.maxMapLength,t.maxExtLength).decode(e)}var z=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof Q?Promise.resolve(n.value.v).then(c,u):d(i[0][2],n)}catch(e){d(i[0][3],e)}var n}function c(e){s("next",e)}function u(e){s("throw",e)}function d(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}};function V(e){return null!=e[Symbol.asyncIterator]?e:function(e){return q(this,arguments,(function(){var t,n,r,a;return z(this,(function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,Q(t.read())];case 3:return n=i.sent(),r=n.done,a=n.value,r?[4,Q(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return function(e){if(null==e)throw new Error("Assertion Failure: value must not be null nor undefined")}(a),[4,Q(a)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}(e)}var J=function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},K=function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]0&&void 0!==arguments[0]?arguments[0]:"";"string"==typeof t&&(t={"X-Algo-API-Token":t});var n=new s(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"http://r2.algorand.network",arguments.length>2&&void 0!==arguments[2]?arguments[2]:4180,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{});function u(e){return void 0!==e.noteb64&&null!==e.noteb64&&(e.note=r.from(e.noteb64,"base64")),e}this.status=o(i().mark((function e(){var t,r,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,n.get("/v1/status",{},t);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e)}))),this.healthCheck=o(i().mark((function e(){var t,r,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,n.get("/health",{},t);case 3:if((r=e.sent).ok){e.next=6;break}throw new Error("Health response: ".concat(r.status));case 6:return e.abrupt("return",{});case 7:case"end":return e.stop()}}),e)}))),this.statusAfterBlock=function(){var e=o(i().mark((function e(t){var r,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=o.length>1&&void 0!==o[1]?o[1]:{},Number.isInteger(t)){e.next=3;break}throw Error("roundNumber should be an integer");case 3:return e.next=5,n.get("/v1/status/wait-for-block-after/".concat(t),{},r);case 5:return a=e.sent,e.abrupt("return",a.body);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.pendingTransactions=function(){var e=o(i().mark((function e(t){var r,a,o,s=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:{},Number.isInteger(t)){e.next=3;break}throw Error("maxTxns should be an integer");case 3:return e.next=5,n.get("/v1/transactions/pending",{max:t},r);case 5:if(200===(a=e.sent).statusCode&&void 0!==a.body.truncatedTxns.transactions)for(o=0;o0&&void 0!==a[0]?a[0]:{},e.next=3,n.get("/versions",{},t);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e)}))),this.ledgerSupply=o(i().mark((function e(){var t,r,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,n.get("/v1/ledger/supply",{},t);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e)}))),this.transactionByAddress=function(){var e=o(i().mark((function e(t){var r,a,o,s,c,d,f=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=f.length>2&&void 0!==f[2]?f[2]:null,o=f.length>3&&void 0!==f[3]?f[3]:null,s=f.length>4&&void 0!==f[4]?f[4]:{},null===(r=f.length>1&&void 0!==f[1]?f[1]:null)||Number.isInteger(r)){e.next=6;break}throw Error("first round should be an integer");case 6:if(null===a||Number.isInteger(a)){e.next=8;break}throw Error("last round should be an integer");case 8:return e.next=10,n.get("/v1/account/".concat(t,"/transactions"),{firstRound:r,lastRound:a,max:o},s);case 10:if(200===(c=e.sent).statusCode&&void 0!==c.body.transactions)for(d=0;d3&&void 0!==f[3]?f[3]:null,s=f.length>4&&void 0!==f[4]?f[4]:{},e.next=4,n.get("/v1/account/".concat(t,"/transactions"),{fromDate:r,toDate:a,max:o},s);case 4:if(200===(c=e.sent).statusCode&&void 0!==c.body.transactions)for(d=0;d1&&void 0!==o[1]?o[1]:{},e.next=3,n.get("/v1/transaction/".concat(t),{},r);case 3:return 200===(a=e.sent).statusCode&&(a.body=u(a.body)),e.abrupt("return",a.body);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.transactionInformation=function(){var e=o(i().mark((function e(t,r){var a,o,s=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>2&&void 0!==s[2]?s[2]:{},e.next=3,n.get("/v1/account/".concat(t,"/transaction/").concat(r),{},a);case 3:return 200===(o=e.sent).statusCode&&(o.body=u(o.body)),e.abrupt("return",o.body);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.pendingTransactionInformation=function(){var e=o(i().mark((function e(t){var r,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,n.get("/v1/transactions/pending/".concat(t),{},r);case 3:return 200===(a=e.sent).statusCode&&(a.body=u(a.body)),e.abrupt("return",a.body);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.accountInformation=function(){var e=o(i().mark((function e(t){var r,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,n.get("/v1/account/".concat(t),{},r);case 3:return a=e.sent,e.abrupt("return",a.body);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.assetInformation=function(){var e=o(i().mark((function e(t){var r,a,o=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,n.get("/v1/asset/".concat(t),{},r);case 3:return a=e.sent,e.abrupt("return",a.body);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.suggestedFee=o(i().mark((function e(){var t,r,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,n.get("/v1/transactions/fee",{},t);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e)}))),this.sendRawTransaction=function(){var e=o(i().mark((function e(t){var a,o,s=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=c(s.length>1&&void 0!==s[1]?s[1]:{}),e.next=4,n.post("/v1/transactions",r.from(t),a);case 4:return o=e.sent,e.abrupt("return",o.body);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.sendRawTransactions=function(){var e=o(i().mark((function e(t){var o,s,u,d,f=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=c(f.length>1&&void 0!==f[1]?f[1]:{}),u=(o=Array.prototype).concat.apply(o,a(t.map((function(e){return Array.from(e)})))),e.next=5,n.post("/v1/transactions",r.from(u),s);case 5:return d=e.sent,e.abrupt("return",d.body);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),this.getTransactionParams=o(i().mark((function e(){var t,r,a=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,n.get("/v1/transactions/params",{},t);case 3:return r=e.sent,e.abrupt("return",r.body);case 5:case"end":return e.stop()}}),e)}))),this.suggestParams=o(i().mark((function t(){var n,r,a=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:{},t.next=3,e.getTransactionParams(n);case 3:return r=t.sent,t.abrupt("return",{flatFee:!1,fee:r.fee,firstRound:r.lastRound,lastRound:r.lastRound+1e3,genesisID:r.genesisID,genesisHash:r.genesishashb64});case 5:case"end":return t.stop()}}),t)}))),this.block=function(){var e=o(i().mark((function e(t){var r,a,o,s=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=s.length>1&&void 0!==s[1]?s[1]:{},Number.isInteger(t)){e.next=3;break}throw Error("roundNumber should be an integer");case 3:return e.next=5,n.get("/v1/block/".concat(t),{},r);case 5:if(200===(a=e.sent).statusCode&&void 0!==a.body.txns.transactions)for(o=0;o3&&void 0!==arguments[3]?arguments[3]:{};(0,o.Z)(this,e),this.defaultHeaders=a;var i=n.endsWith("/")?n:"".concat(n,"/"),s=new URL(i);if(void 0!==r&&(s.port=r.toString()),0===s.protocol.length)throw new Error("Invalid base server URL, protocol must be defined.");this.baseURL=s,this.tokenHeader=t}var t,n,c,d,f;return(0,s.Z)(e,[{key:"getURL",value:function(e,t){var n;n=e.startsWith("./")?e:e.startsWith("/")?".".concat(e):"./".concat(e);var r=new URL(n,this.baseURL);if(t)for(var a=0,i=Object.entries(t);a2&&void 0!==u[2]?u[2]:{},s=(0,a.Z)((0,a.Z)((0,a.Z)({},this.tokenHeader),this.defaultHeaders),o),t.next=4,(0,b.fetch)(this.getURL(n,i),{mode:"cors",headers:s});case 4:return c=t.sent,t.abrupt("return",e.formatFetchResponse(c));case 6:case"end":return t.stop()}}),t,this)}))),function(e,t){return f.apply(this,arguments)})},{key:"post",value:(d=(0,i.Z)((0,r.Z)().mark((function t(n,i,o){var s,c,u,d=arguments;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=d.length>3&&void 0!==d[3]?d[3]:{},c=(0,a.Z)((0,a.Z)((0,a.Z)({},this.tokenHeader),this.defaultHeaders),s),t.next=4,(0,b.fetch)(this.getURL(n,o),{method:"POST",mode:"cors",body:i,headers:c});case 4:return u=t.sent,t.abrupt("return",e.formatFetchResponse(u));case 6:case"end":return t.stop()}}),t,this)}))),function(e,t,n){return d.apply(this,arguments)})},{key:"delete",value:(c=(0,i.Z)((0,r.Z)().mark((function t(n,i,o){var s,c,u,d=arguments;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=d.length>3&&void 0!==d[3]?d[3]:{},c=(0,a.Z)((0,a.Z)((0,a.Z)({},this.tokenHeader),this.defaultHeaders),s),t.next=4,(0,b.fetch)(this.getURL(n,o),{method:"DELETE",mode:"cors",body:i,headers:c});case 4:return u=t.sent,t.abrupt("return",e.formatFetchResponse(u));case 6:case"end":return t.stop()}}),t,this)}))),function(e,t,n){return c.apply(this,arguments)})}],[{key:"formatFetchResponseHeaders",value:function(e){var t={};return e.forEach((function(e,n){t[e]=n})),t}},{key:"checkHttpError",value:(n=(0,i.Z)((0,r.Z)().mark((function t(n){var a,i,o,s;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.ok){t.next=2;break}return t.abrupt("return");case 2:return a=null,i=null,t.prev=4,t.t0=Uint8Array,t.next=8,n.arrayBuffer();case 8:t.t1=t.sent,a=new t.t0(t.t1),(o=JSON.parse(p.from(a).toString())).message&&(i=o.message),t.next=16;break;case 14:t.prev=14,t.t2=t.catch(4);case 16:throw s="Network request error. Received status ".concat(n.status," (").concat(n.statusText,")"),i&&(s+=": ".concat(i)),new h(s,{body:a,status:n.status,headers:e.formatFetchResponseHeaders(n.headers)});case 19:case"end":return t.stop()}}),t,null,[[4,14]])}))),function(e){return n.apply(this,arguments)})},{key:"formatFetchResponse",value:(t=(0,i.Z)((0,r.Z)().mark((function t(n){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.checkHttpError(n);case 2:return t.t0=Uint8Array,t.next=5,n.arrayBuffer();case 5:return t.t1=t.sent,t.t2=new t.t0(t.t1),t.t3=n.status,t.t4=e.formatFetchResponseHeaders(n.headers),t.abrupt("return",{body:t.t2,status:t.t3,headers:t.t4});case 10:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})}]),e}(),m=n(5886).Buffer;function v(e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(e[t]&&0!==e[t].length||delete e[t]);return e}function g(e){return Object.keys(e).reduce((function(t,n){return t[n.toLowerCase()]=e[n],t}),{})}function A(e){return void 0!==e&&Object.prototype.hasOwnProperty.call(e,"format")&&"msgpack"===e.format?"application/msgpack":"application/json"}var w=function(){function e(t,n,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,o.Z)(this,e),this.bc=void 0!==n?new y(t,n,r,a):t}var t,n,u;return(0,s.Z)(e,[{key:"get",value:(u=(0,i.Z)((0,r.Z)().mark((function t(n,i){var o,s,c,u,d,f,l=arguments;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=l.length>2&&void 0!==l[2]?l[2]:{},s=l.length>3&&void 0!==l[3]?l[3]:{},c=!(l.length>4&&void 0!==l[4])||l[4],u=A(i),d=(0,a.Z)((0,a.Z)({},o),{},{accept:u}),t.prev=5,t.next=8,this.bc.get(n,v(i),d);case 8:return f=t.sent,t.abrupt("return",e.prepareResponse(f,u,c,s));case 12:throw t.prev=12,t.t0=t.catch(5),e.prepareResponseError(t.t0);case 15:case"end":return t.stop()}}),t,this,[[5,12]])}))),function(e,t){return u.apply(this,arguments)})},{key:"post",value:(n=(0,i.Z)((0,r.Z)().mark((function t(n,i){var o,s,c,u,d,f=arguments;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=f.length>2&&void 0!==f[2]?f[2]:{},s=f.length>3?f[3]:void 0,c=!(f.length>4&&void 0!==f[4])||f[4],u=(0,a.Z)({"content-type":"application/json"},g(o)),t.prev=4,t.next=7,this.bc.post(n,e.serializeData(i,u),s,u);case 7:return d=t.sent,t.abrupt("return",e.prepareResponse(d,"application/json",c));case 11:throw t.prev=11,t.t0=t.catch(4),e.prepareResponseError(t.t0);case 14:case"end":return t.stop()}}),t,this,[[4,11]])}))),function(e,t){return n.apply(this,arguments)})},{key:"delete",value:(t=(0,i.Z)((0,r.Z)().mark((function t(n,i){var o,s,c,u,d=arguments;return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=d.length>2&&void 0!==d[2]?d[2]:{},s=!(d.length>3&&void 0!==d[3])||d[3],c=(0,a.Z)({"content-type":"application/json"},g(o)),t.next=5,this.bc.delete(n,e.serializeData(i,c),void 0,c);case 5:return u=t.sent,t.abrupt("return",e.prepareResponse(u,"application/json",s));case 7:case"end":return t.stop()}}),t,this)}))),function(e,n){return t.apply(this,arguments)})}],[{key:"parseJSON",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};try{return 0===Object.keys(n).length?e&&JSON.parse(e):e&&c.parseJSON(e,n)}catch(n){var r=n;throw r.rawResponse=e||null,r.statusCode=t,r}}},{key:"serializeData",value:function(e,t){if(!e)return new Uint8Array(0);if("application/json"===t["content-type"])return new Uint8Array(m.from(JSON.stringify(e)));if("string"==typeof e)return new Uint8Array(m.from(e));if(e instanceof Uint8Array)return e;throw new Error("provided data is neither a string nor a Uint8Array and content-type is not application/json")}},{key:"prepareResponse",value:function(t,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=t.body;return"application/msgpack"!==n&&(i=s&&m.from(s).toString()||""),r&&"application/json"===n&&(s=e.parseJSON(i,t.status,o)),(0,a.Z)((0,a.Z)({},t),{},{body:s,text:i,ok:2===Math.trunc(t.status/100)})}},{key:"prepareResponseError",value:function(t){return t.response&&(t.response=e.prepareResponse(t.response,"application/json",!0),t.status=t.response.status),t}}]),e}()},65035:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return y},setSendTransactionHeaders:function(){return p}});var r=n(59754),a=n(41116),i=n(87402),o=n(91610),s=n(31945),c=n(61968),u=n(6058),d=n(25630),f=n(57868),l=n(39373),b=n(5886).Buffer;function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e;return Object.keys(t).every((function(e){return"content-type"!==e.toLowerCase()}))&&((t=(0,d.Z)({},e))["Content-Type"]="application/x-binary"),t}function h(e){return e&&void 0!==e.byteLength}var y=function(e){(0,c.Z)(d,e);var t,n=(0,u.Z)(d);function d(e,t){var r;(0,o.Z)(this,d),r=n.call(this,e);var a=t;if(Array.isArray(t)){if(!t.every(h))throw new TypeError("Array elements must be byte arrays");a=l.concatArrays.apply(void 0,(0,i.Z)(t))}else if(!h(a))throw new TypeError("Argument must be byte array");return r.txnBytesToPost=a,r}return(0,s.Z)(d,[{key:"path",value:function(){return"/v2/transactions"}},{key:"do",value:(t=(0,a.Z)((0,r.Z)().mark((function e(){var t,n,a=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=p(a.length>0&&void 0!==a[0]?a[0]:{}),e.next=4,this.c.post(this.path(),b.from(this.txnBytesToPost),t);case 4:return n=e.sent,e.abrupt("return",n.body);case 6:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),d}(f.Z)},57868:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(59754),a=n(41116),i=n(91610),o=n(31945),s=n(72459),c=function(){function e(t,n){(0,i.Z)(this,e),this.c=t,this.query={},this.intDecoding=n||s.Z.DEFAULT}var t,n;return(0,o.Z)(e,[{key:"prepare",value:function(e){return e}},{key:"do",value:(n=(0,a.Z)((0,r.Z)().mark((function e(){var t,n,a,i=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:{},n={},"default"!==this.intDecoding&&(n.intDecoding=this.intDecoding),e.next=5,this.c.get(this.path(),this.query,t,n);case 5:return a=e.sent,e.abrupt("return",this.prepare(a.body));case 7:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"doRaw",value:(t=(0,a.Z)((0,r.Z)().mark((function e(){var t,n,a=arguments;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]?a[0]:{},e.next=3,this.c.get(this.path(),this.query,t,{},!1);case 3:return n=e.sent,e.abrupt("return",n.body);case 5:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"setIntDecoding",value:function(e){if("default"!==e&&"safe"!==e&&"mixed"!==e&&"bigint"!==e)throw new Error("Invalid method for int decoding: ".concat(e));return this.intDecoding=e,this}}]),e}()},58673:function(e,t,n){"use strict";n.r(t),n.d(t,{ALGORAND_ZERO_ADDRESS_STRING:function(){return l},CHECKSUM_ADDRESS_ERROR_MSG:function(){return y},INVALID_MSIG_PK_ERROR_MSG:function(){return g},INVALID_MSIG_THRESHOLD_ERROR_MSG:function(){return v},INVALID_MSIG_VERSION_ERROR_MSG:function(){return m},MALFORMED_ADDRESS_ERROR_MSG:function(){return h},UNEXPECTED_PK_LEN_ERROR_MSG:function(){return A},decodeAddress:function(){return w},encodeAddress:function(){return _},fromMultisigPreImg:function(){return k},fromMultisigPreImgAddrs:function(){return I},getApplicationAddress:function(){return S},isValidAddress:function(){return x}});var r=n(10842),a=n.n(r),i=n(85965),o=n(39373),s=n(47983),c=n(5886).Buffer,u=36,d=4,f=58,l="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY5HFKQ",b=new Uint8Array([77,117,108,116,105,115,105,103,65,100,100,114]),p=c.from("appID"),h="address seems to be malformed",y="wrong checksum for address",m="invalid multisig version",v="bad multisig threshold",g="bad multisig public key - wrong length",A="nacl public key length is not 32 bytes";function w(e){if("string"!=typeof e||e.length!==f)throw new Error(h);var t=a().decode.asBytes(e.toString());if(t.length!==u)throw new Error(h);var n=new Uint8Array(t.slice(0,u-d)),r=new Uint8Array(t.slice(i.PUBLIC_KEY_LENGTH,u)),s=i.genericHash(n).slice(i.HASH_BYTES_LENGTH-d,i.HASH_BYTES_LENGTH);if(!o.arrayEqual(s,r))throw new Error(y);return{publicKey:n,checksum:r}}function x(e){try{w(e)}catch(e){return!1}return!0}function _(e){var t=i.genericHash(e).slice(i.PUBLIC_KEY_LENGTH-d,i.PUBLIC_KEY_LENGTH);return a().encode(o.concatArrays(e,t)).toString().slice(0,f)}function k(e){var t=e.version,n=e.threshold,r=e.pks;if(1!==t||t>255||t<0)throw new Error(m);if(0===n||0===r.length||n>r.length||n>255)throw new Error(v);var a=u-d;if(a!==i.PUBLIC_KEY_LENGTH)throw new Error(A);var o=new Uint8Array(b.length+2+a*r.length);o.set(b,0),o.set([t],b.length),o.set([n],b.length+1);for(var s=0;sBigInt("0xffffffffffffffff"))throw new Error("Input is not a 64-bit unsigned integer");var t=r.allocUnsafe(8);return t.writeBigUInt64BE(BigInt(e)),new Uint8Array(t)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"safe";if("safe"!==t&&"mixed"!==t&&"bigint"!==t)throw new Error("Unknown decodingMode option: ".concat(t));if(0===e.byteLength||e.byteLength>8)throw new Error("Data has unacceptable length. Expected length is between 1 and 8, got ".concat(e.byteLength));var n=r.allocUnsafe(8-e.byteLength);n.fill(0);var a=r.concat([n,r.from(e)]).readBigUInt64BE(),i=a>Number.MAX_SAFE_INTEGER;if("safe"===t){if(i)throw new Error("Integer exceeds maximum safe integer: ".concat(a.toString(),'. Try decoding with "mixed" or "safe" decodingMode.'));return Number(a)}return"mixed"!==t||i?a:Number(a)}},14539:function(e,t,n){"use strict";n.r(t),n.d(t,{TxGroup:function(){return l},assignGroupID:function(){return p},computeGroupID:function(){return b}});var r=n(28994),a=n(91610),i=n(31945),o=n(71877),s=n(85965),c=n(80641),u=n(58673),d=n(39373),f=n(5886).Buffer,l=function(){function e(t){if((0,a.Z)(this,e),this.name="Transaction group",this.tag=f.from("TG"),t.length>16){var n="".concat(t.length.toString()," transactions grouped together but max group size is ").concat(16..toString());throw Error(n)}this.txGroupHashes=t}return(0,i.Z)(e,[{key:"get_obj_for_encoding",value:function(){return{txlist:this.txGroupHashes}}},{key:"toByte",value:function(){return c.encode(this.get_obj_for_encoding())}}],[{key:"from_obj_for_encoding",value:function(e){var t=Object.create(this.prototype);t.name="Transaction group",t.tag=f.from("TG"),t.txGroupHashes=[];var n,a=(0,r.Z)(e.txlist);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.txGroupHashes.push(f.from(i))}}catch(e){a.e(e)}finally{a.f()}return t}}]),e}();function b(e){var t,n=[],a=(0,r.Z)(e);try{for(a.s();!(t=a.n()).done;){var i=t.value,c=o.instantiateTxnIfNeeded(i);n.push(c.rawTxID())}}catch(e){a.e(e)}finally{a.f()}var u=new l(n),b=u.toByte(),p=f.from(d.concatArrays(u.tag,b)),h=s.genericHash(p);return f.from(h)}function p(e,t){var n,a=b(e),i=[],s=(0,r.Z)(e);try{for(s.s();!(n=s.n()).done;){var c=n.value,d=o.instantiateTxnIfNeeded(c);t&&u.encodeAddress(d.from.publicKey)!==t||(d.group=a,i.push(d))}}catch(e){s.e(e)}finally{s.f()}return i}t.default=l},93543:function(e,t,n){"use strict";n.r(t),n.d(t,{checkByteConstBlock:function(){return m},checkIntConstBlock:function(){return y},checkProgram:function(){return h},checkPushByteOp:function(){return g},checkPushIntOp:function(){return v},langspecEvalMaxVersion:function(){return A},langspecLogicSigVersion:function(){return w},parseUvarint:function(){return u},readProgram:function(){return p}});var r,a=n(28994),i=n(17600),o=JSON.parse('{"z_":6,"BV":5,"AP":[{"Opcode":0,"Name":"err","Cost":1,"Size":1,"Doc":"Fail immediately.","Groups":["Flow Control"]},{"Opcode":1,"Name":"sha256","Args":"B","Returns":"B","Cost":35,"Size":1,"Doc":"SHA256 hash of value A, yields [32]byte","Groups":["Arithmetic"]},{"Opcode":2,"Name":"keccak256","Args":"B","Returns":"B","Cost":130,"Size":1,"Doc":"Keccak256 hash of value A, yields [32]byte","Groups":["Arithmetic"]},{"Opcode":3,"Name":"sha512_256","Args":"B","Returns":"B","Cost":45,"Size":1,"Doc":"SHA512_256 hash of value A, yields [32]byte","Groups":["Arithmetic"]},{"Opcode":4,"Name":"ed25519verify","Args":"BBB","Returns":"U","Cost":1900,"Size":1,"Doc":"for (data A, signature B, pubkey C) verify the signature of (\\"ProgData\\" || program_hash || data) against the pubkey => {0 or 1}","DocExtra":"The 32 byte public key is the last element on the stack, preceded by the 64 byte signature at the second-to-last element on the stack, preceded by the data which was signed at the third-to-last element on the stack.","Groups":["Arithmetic"]},{"Opcode":5,"Name":"ecdsa_verify","Args":"BBBBB","Returns":"U","Cost":1700,"Size":2,"Doc":"for (data A, signature B, C and pubkey D, E) verify the signature of the data against the pubkey => {0 or 1}","DocExtra":"The 32 byte Y-component of a public key is the last element on the stack, preceded by X-component of a pubkey, preceded by S and R components of a signature, preceded by the data that is fifth element on the stack. All values are big-endian encoded. The signed data must be 32 bytes long, and signatures in lower-S form are only accepted.","ImmediateNote":"{uint8 curve index}","Groups":["Arithmetic"]},{"Opcode":6,"Name":"ecdsa_pk_decompress","Args":"B","Returns":"BB","Cost":650,"Size":2,"Doc":"decompress pubkey A into components X, Y","DocExtra":"The 33 byte public key in a compressed form to be decompressed into X and Y (top) components. All values are big-endian encoded.","ImmediateNote":"{uint8 curve index}","Groups":["Arithmetic"]},{"Opcode":7,"Name":"ecdsa_pk_recover","Args":"BUBB","Returns":"BB","Cost":2000,"Size":2,"Doc":"for (data A, recovery id B, signature C, D) recover a public key","DocExtra":"S (top) and R elements of a signature, recovery id and data (bottom) are expected on the stack and used to deriver a public key. All values are big-endian encoded. The signed data must be 32 bytes long.","ImmediateNote":"{uint8 curve index}","Groups":["Arithmetic"]},{"Opcode":8,"Name":"+","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A plus B. Fail on overflow.","DocExtra":"Overflow is an error condition which halts execution and fails the transaction. Full precision is available from `addw`.","Groups":["Arithmetic"]},{"Opcode":9,"Name":"-","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A minus B. Fail if B > A.","Groups":["Arithmetic"]},{"Opcode":10,"Name":"/","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A divided by B (truncated division). Fail if B == 0.","DocExtra":"`divmodw` is available to divide the two-element values produced by `mulw` and `addw`.","Groups":["Arithmetic"]},{"Opcode":11,"Name":"*","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A times B. Fail on overflow.","DocExtra":"Overflow is an error condition which halts execution and fails the transaction. Full precision is available from `mulw`.","Groups":["Arithmetic"]},{"Opcode":12,"Name":"<","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A less than B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":13,"Name":">","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A greater than B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":14,"Name":"<=","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A less than or equal to B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":15,"Name":">=","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A greater than or equal to B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":16,"Name":"&&","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A is not zero and B is not zero => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":17,"Name":"||","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A is not zero or B is not zero => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":18,"Name":"==","Args":"..","Returns":"U","Cost":1,"Size":1,"Doc":"A is equal to B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":19,"Name":"!=","Args":"..","Returns":"U","Cost":1,"Size":1,"Doc":"A is not equal to B => {0 or 1}","Groups":["Arithmetic"]},{"Opcode":20,"Name":"!","Args":"U","Returns":"U","Cost":1,"Size":1,"Doc":"A == 0 yields 1; else 0","Groups":["Arithmetic"]},{"Opcode":21,"Name":"len","Args":"B","Returns":"U","Cost":1,"Size":1,"Doc":"yields length of byte value A","Groups":["Arithmetic"]},{"Opcode":22,"Name":"itob","Args":"U","Returns":"B","Cost":1,"Size":1,"Doc":"converts uint64 A to big endian bytes","Groups":["Arithmetic"]},{"Opcode":23,"Name":"btoi","Args":"B","Returns":"U","Cost":1,"Size":1,"Doc":"converts bytes A as big endian to uint64","DocExtra":"`btoi` fails if the input is longer than 8 bytes.","Groups":["Arithmetic"]},{"Opcode":24,"Name":"%","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A modulo B. Fail if B == 0.","Groups":["Arithmetic"]},{"Opcode":25,"Name":"|","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A bitwise-or B","Groups":["Arithmetic"]},{"Opcode":26,"Name":"&","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A bitwise-and B","Groups":["Arithmetic"]},{"Opcode":27,"Name":"^","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A bitwise-xor B","Groups":["Arithmetic"]},{"Opcode":28,"Name":"~","Args":"U","Returns":"U","Cost":1,"Size":1,"Doc":"bitwise invert value A","Groups":["Arithmetic"]},{"Opcode":29,"Name":"mulw","Args":"UU","Returns":"UU","Cost":1,"Size":1,"Doc":"A times B as a 128-bit result in two uint64s. X is the high 64 bits, Y is the low","Groups":["Arithmetic"]},{"Opcode":30,"Name":"addw","Args":"UU","Returns":"UU","Cost":1,"Size":1,"Doc":"A plus B as a 128-bit result. X is the carry-bit, Y is the low-order 64 bits.","Groups":["Arithmetic"]},{"Opcode":31,"Name":"divmodw","Args":"UUUU","Returns":"UUUU","Cost":20,"Size":1,"Doc":"W,X = (A,B / C,D); Y,Z = (A,B modulo C,D)","DocExtra":"The notation J,K indicates that two uint64 values J and K are interpreted as a uint128 value, with J as the high uint64 and K the low.","Groups":["Arithmetic"]},{"Opcode":32,"Name":"intcblock","Cost":1,"Size":0,"Doc":"prepare block of uint64 constants for use by intc","DocExtra":"`intcblock` loads following program bytes into an array of integer constants in the evaluator. These integer constants can be referred to by `intc` and `intc_*` which will push the value onto the stack. Subsequent calls to `intcblock` reset and replace the integer constants available to the script.","ImmediateNote":"{varuint length} [{varuint value}, ...]","Groups":["Loading Values"]},{"Opcode":33,"Name":"intc","Returns":"U","Cost":1,"Size":2,"Doc":"Ith constant from intcblock","ImmediateNote":"{uint8 int constant index}","Groups":["Loading Values"]},{"Opcode":34,"Name":"intc_0","Returns":"U","Cost":1,"Size":1,"Doc":"constant 0 from intcblock","Groups":["Loading Values"]},{"Opcode":35,"Name":"intc_1","Returns":"U","Cost":1,"Size":1,"Doc":"constant 1 from intcblock","Groups":["Loading Values"]},{"Opcode":36,"Name":"intc_2","Returns":"U","Cost":1,"Size":1,"Doc":"constant 2 from intcblock","Groups":["Loading Values"]},{"Opcode":37,"Name":"intc_3","Returns":"U","Cost":1,"Size":1,"Doc":"constant 3 from intcblock","Groups":["Loading Values"]},{"Opcode":38,"Name":"bytecblock","Cost":1,"Size":0,"Doc":"prepare block of byte-array constants for use by bytec","DocExtra":"`bytecblock` loads the following program bytes into an array of byte-array constants in the evaluator. These constants can be referred to by `bytec` and `bytec_*` which will push the value onto the stack. Subsequent calls to `bytecblock` reset and replace the bytes constants available to the script.","ImmediateNote":"{varuint length} [({varuint value length} bytes), ...]","Groups":["Loading Values"]},{"Opcode":39,"Name":"bytec","Returns":"B","Cost":1,"Size":2,"Doc":"Ith constant from bytecblock","ImmediateNote":"{uint8 byte constant index}","Groups":["Loading Values"]},{"Opcode":40,"Name":"bytec_0","Returns":"B","Cost":1,"Size":1,"Doc":"constant 0 from bytecblock","Groups":["Loading Values"]},{"Opcode":41,"Name":"bytec_1","Returns":"B","Cost":1,"Size":1,"Doc":"constant 1 from bytecblock","Groups":["Loading Values"]},{"Opcode":42,"Name":"bytec_2","Returns":"B","Cost":1,"Size":1,"Doc":"constant 2 from bytecblock","Groups":["Loading Values"]},{"Opcode":43,"Name":"bytec_3","Returns":"B","Cost":1,"Size":1,"Doc":"constant 3 from bytecblock","Groups":["Loading Values"]},{"Opcode":44,"Name":"arg","Returns":"B","Cost":1,"Size":2,"Doc":"Nth LogicSig argument","ImmediateNote":"{uint8 arg index N}","Groups":["Loading Values"]},{"Opcode":45,"Name":"arg_0","Returns":"B","Cost":1,"Size":1,"Doc":"LogicSig argument 0","Groups":["Loading Values"]},{"Opcode":46,"Name":"arg_1","Returns":"B","Cost":1,"Size":1,"Doc":"LogicSig argument 1","Groups":["Loading Values"]},{"Opcode":47,"Name":"arg_2","Returns":"B","Cost":1,"Size":1,"Doc":"LogicSig argument 2","Groups":["Loading Values"]},{"Opcode":48,"Name":"arg_3","Returns":"B","Cost":1,"Size":1,"Doc":"LogicSig argument 3","Groups":["Loading Values"]},{"Opcode":49,"Name":"txn","Returns":".","Cost":1,"Size":2,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of current transaction","DocExtra":"FirstValidTime causes the program to fail. The field is reserved for future use.","ImmediateNote":"{uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":50,"Name":"global","Returns":".","Cost":1,"Size":2,"Doc":"global field F","ImmediateNote":"{uint8 global field index}","Groups":["Loading Values"]},{"Opcode":51,"Name":"gtxn","Returns":".","Cost":1,"Size":3,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of the Tth transaction in the current group","DocExtra":"for notes on transaction fields available, see `txn`. If this transaction is _i_ in the group, `gtxn i field` is equivalent to `txn field`.","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":52,"Name":"load","Returns":".","Cost":1,"Size":2,"Doc":"Ith scratch space value. All scratch spaces are 0 at program start.","ImmediateNote":"{uint8 position in scratch space to load from}","Groups":["Loading Values"]},{"Opcode":53,"Name":"store","Args":".","Cost":1,"Size":2,"Doc":"store A to the Ith scratch space","ImmediateNote":"{uint8 position in scratch space to store to}","Groups":["Loading Values"]},{"Opcode":54,"Name":"txna","Returns":".","Cost":1,"Size":3,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F of the current transaction","ImmediateNote":"{uint8 transaction field index} {uint8 transaction field array index}","Groups":["Loading Values"]},{"Opcode":55,"Name":"gtxna","Returns":".","Cost":1,"Size":4,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F from the Tth transaction in the current group","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index} {uint8 transaction field array index}","Groups":["Loading Values"]},{"Opcode":56,"Name":"gtxns","Args":"U","Returns":".","Cost":1,"Size":2,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of the Ath transaction in the current group","DocExtra":"for notes on transaction fields available, see `txn`. If top of stack is _i_, `gtxns field` is equivalent to `gtxn _i_ field`. gtxns exists so that _i_ can be calculated, often based on the index of the current transaction.","ImmediateNote":"{uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":57,"Name":"gtxnsa","Args":"U","Returns":".","Cost":1,"Size":3,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F from the Ath transaction in the current group","ImmediateNote":"{uint8 transaction field index} {uint8 transaction field array index}","Groups":["Loading Values"]},{"Opcode":58,"Name":"gload","Returns":".","Cost":1,"Size":3,"Doc":"Ith scratch space value of the Tth transaction in the current group","DocExtra":"`gload` fails unless the requested transaction is an ApplicationCall and T < GroupIndex.","ImmediateNote":"{uint8 transaction group index} {uint8 position in scratch space to load from}","Groups":["Loading Values"]},{"Opcode":59,"Name":"gloads","Args":"U","Returns":".","Cost":1,"Size":2,"Doc":"Ith scratch space value of the Ath transaction in the current group","DocExtra":"`gloads` fails unless the requested transaction is an ApplicationCall and A < GroupIndex.","ImmediateNote":"{uint8 position in scratch space to load from}","Groups":["Loading Values"]},{"Opcode":60,"Name":"gaid","Returns":"U","Cost":1,"Size":2,"Doc":"ID of the asset or application created in the Tth transaction of the current group","DocExtra":"`gaid` fails unless the requested transaction created an asset or application and T < GroupIndex.","ImmediateNote":"{uint8 transaction group index}","Groups":["Loading Values"]},{"Opcode":61,"Name":"gaids","Args":"U","Returns":"U","Cost":1,"Size":1,"Doc":"ID of the asset or application created in the Ath transaction of the current group","DocExtra":"`gaids` fails unless the requested transaction created an asset or application and A < GroupIndex.","Groups":["Loading Values"]},{"Opcode":62,"Name":"loads","Args":"U","Returns":".","Cost":1,"Size":1,"Doc":"Ath scratch space value. All scratch spaces are 0 at program start.","Groups":["Loading Values"]},{"Opcode":63,"Name":"stores","Args":"U.","Cost":1,"Size":1,"Doc":"store B to the Ath scratch space","Groups":["Loading Values"]},{"Opcode":64,"Name":"bnz","Args":"U","Cost":1,"Size":3,"Doc":"branch to TARGET if value A is not zero","DocExtra":"The `bnz` instruction opcode 0x40 is followed by two immediate data bytes which are a high byte first and low byte second which together form a 16 bit offset which the instruction may branch to. For a bnz instruction at `pc`, if the last element of the stack is not zero then branch to instruction at `pc + 3 + N`, else proceed to next instruction at `pc + 3`. Branch targets must be aligned instructions. (e.g. Branching to the second byte of a 2 byte op will be rejected.) Starting at v4, the offset is treated as a signed 16 bit integer allowing for backward branches and looping. In prior version (v1 to v3), branch offsets are limited to forward branches only, 0-0x7fff.\\n\\nAt v2 it became allowed to branch to the end of the program exactly after the last instruction: bnz to byte N (with 0-indexing) was illegal for a TEAL program with N bytes before v2, and is legal after it. This change eliminates the need for a last instruction of no-op as a branch target at the end. (Branching beyond the end--in other words, to a byte larger than N--is still illegal and will cause the program to fail.)","ImmediateNote":"{int16 branch offset, big endian}","Groups":["Flow Control"]},{"Opcode":65,"Name":"bz","Args":"U","Cost":1,"Size":3,"Doc":"branch to TARGET if value A is zero","DocExtra":"See `bnz` for details on how branches work. `bz` inverts the behavior of `bnz`.","ImmediateNote":"{int16 branch offset, big endian}","Groups":["Flow Control"]},{"Opcode":66,"Name":"b","Cost":1,"Size":3,"Doc":"branch unconditionally to TARGET","DocExtra":"See `bnz` for details on how branches work. `b` always jumps to the offset.","ImmediateNote":"{int16 branch offset, big endian}","Groups":["Flow Control"]},{"Opcode":67,"Name":"return","Args":"U","Cost":1,"Size":1,"Doc":"use A as success value; end","Groups":["Flow Control"]},{"Opcode":68,"Name":"assert","Args":"U","Cost":1,"Size":1,"Doc":"immediately fail unless A is a non-zero number","Groups":["Flow Control"]},{"Opcode":72,"Name":"pop","Args":".","Cost":1,"Size":1,"Doc":"discard A","Groups":["Flow Control"]},{"Opcode":73,"Name":"dup","Args":".","Returns":"..","Cost":1,"Size":1,"Doc":"duplicate A","Groups":["Flow Control"]},{"Opcode":74,"Name":"dup2","Args":"..","Returns":"....","Cost":1,"Size":1,"Doc":"duplicate A and B","Groups":["Flow Control"]},{"Opcode":75,"Name":"dig","Args":".","Returns":"..","Cost":1,"Size":2,"Doc":"Nth value from the top of the stack. dig 0 is equivalent to dup","ImmediateNote":"{uint8 depth}","Groups":["Flow Control"]},{"Opcode":76,"Name":"swap","Args":"..","Returns":"..","Cost":1,"Size":1,"Doc":"swaps A and B on stack","Groups":["Flow Control"]},{"Opcode":77,"Name":"select","Args":"..U","Returns":".","Cost":1,"Size":1,"Doc":"selects one of two values based on top-of-stack: B if C != 0, else A","Groups":["Flow Control"]},{"Opcode":78,"Name":"cover","Args":".","Returns":".","Cost":1,"Size":2,"Doc":"remove top of stack, and place it deeper in the stack such that N elements are above it. Fails if stack depth <= N.","ImmediateNote":"{uint8 depth}","Groups":["Flow Control"]},{"Opcode":79,"Name":"uncover","Args":".","Returns":".","Cost":1,"Size":2,"Doc":"remove the value at depth N in the stack and shift above items down so the Nth deep value is on top of the stack. Fails if stack depth <= N.","ImmediateNote":"{uint8 depth}","Groups":["Flow Control"]},{"Opcode":80,"Name":"concat","Args":"BB","Returns":"B","Cost":1,"Size":1,"Doc":"join A and B","DocExtra":"`concat` fails if the result would be greater than 4096 bytes.","Groups":["Arithmetic"]},{"Opcode":81,"Name":"substring","Args":"B","Returns":"B","Cost":1,"Size":3,"Doc":"A range of bytes from A starting at S up to but not including E. If E < S, or either is larger than the array length, the program fails","ImmediateNote":"{uint8 start position} {uint8 end position}","Groups":["Byte Array Manipulation"]},{"Opcode":82,"Name":"substring3","Args":"BUU","Returns":"B","Cost":1,"Size":1,"Doc":"A range of bytes from A starting at B up to but not including C. If C < B, or either is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":83,"Name":"getbit","Args":".U","Returns":"U","Cost":1,"Size":1,"Doc":"Bth bit of (byte-array or integer) A.","DocExtra":"see explanation of bit ordering in setbit","Groups":["Arithmetic"]},{"Opcode":84,"Name":"setbit","Args":".UU","Returns":".","Cost":1,"Size":1,"Doc":"Copy of (byte-array or integer) A, with the Bth bit set to (0 or 1) C","DocExtra":"When A is a uint64, index 0 is the least significant bit. Setting bit 3 to 1 on the integer 0 yields 8, or 2^3. When A is a byte array, index 0 is the leftmost bit of the leftmost byte. Setting bits 0 through 11 to 1 in a 4-byte-array of 0s yields the byte array 0xfff00000. Setting bit 3 to 1 on the 1-byte-array 0x00 yields the byte array 0x10.","Groups":["Arithmetic"]},{"Opcode":85,"Name":"getbyte","Args":"BU","Returns":"U","Cost":1,"Size":1,"Doc":"Bth byte of A, as an integer","Groups":["Arithmetic"]},{"Opcode":86,"Name":"setbyte","Args":"BUU","Returns":"B","Cost":1,"Size":1,"Doc":"Copy of A with the Bth byte set to small integer (between 0..255) C","Groups":["Arithmetic"]},{"Opcode":87,"Name":"extract","Args":"B","Returns":"B","Cost":1,"Size":3,"Doc":"A range of bytes from A starting at S up to but not including S+L. If L is 0, then extract to the end of the string. If S or S+L is larger than the array length, the program fails","ImmediateNote":"{uint8 start position} {uint8 length}","Groups":["Byte Array Manipulation"]},{"Opcode":88,"Name":"extract3","Args":"BUU","Returns":"B","Cost":1,"Size":1,"Doc":"A range of bytes from A starting at B up to but not including B+C. If B+C is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":89,"Name":"extract_uint16","Args":"BU","Returns":"U","Cost":1,"Size":1,"Doc":"A uint16 formed from a range of big-endian bytes from A starting at B up to but not including B+2. If B+2 is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":90,"Name":"extract_uint32","Args":"BU","Returns":"U","Cost":1,"Size":1,"Doc":"A uint32 formed from a range of big-endian bytes from A starting at B up to but not including B+4. If B+4 is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":91,"Name":"extract_uint64","Args":"BU","Returns":"U","Cost":1,"Size":1,"Doc":"A uint64 formed from a range of big-endian bytes from A starting at B up to but not including B+8. If B+8 is larger than the array length, the program fails","Groups":["Byte Array Manipulation"]},{"Opcode":96,"Name":"balance","Args":".","Returns":"U","Cost":1,"Size":1,"Doc":"get balance for account A, in microalgos. The balance is observed after the effects of previous transactions in the group, and after the fee for the current transaction is deducted.","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), _available_ application id (or, since v4, a Txn.ForeignApps offset). Return: value.","Groups":["State Access"]},{"Opcode":97,"Name":"app_opted_in","Args":".U","Returns":"U","Cost":1,"Size":1,"Doc":"1 if account A is opted in to application B, else 0","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), _available_ application id (or, since v4, a Txn.ForeignApps offset). Return: 1 if opted in and 0 otherwise.","Groups":["State Access"]},{"Opcode":98,"Name":"app_local_get","Args":".B","Returns":".","Cost":1,"Size":1,"Doc":"local state of the key B in the current application in account A","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), state key. Return: value. The value is zero (of type uint64) if the key does not exist.","Groups":["State Access"]},{"Opcode":99,"Name":"app_local_get_ex","Args":".UB","Returns":".U","Cost":1,"Size":1,"Doc":"X is the local state of application B, key C in account A. Y is 1 if key existed, else 0","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), _available_ application id (or, since v4, a Txn.ForeignApps offset), state key. Return: did_exist flag (top of the stack, 1 if the application and key existed and 0 otherwise), value. The value is zero (of type uint64) if the key does not exist.","Groups":["State Access"]},{"Opcode":100,"Name":"app_global_get","Args":"B","Returns":".","Cost":1,"Size":1,"Doc":"global state of the key A in the current application","DocExtra":"params: state key. Return: value. The value is zero (of type uint64) if the key does not exist.","Groups":["State Access"]},{"Opcode":101,"Name":"app_global_get_ex","Args":"UB","Returns":".U","Cost":1,"Size":1,"Doc":"X is the global state of application A, key B. Y is 1 if key existed, else 0","DocExtra":"params: Txn.ForeignApps offset (or, since v4, an _available_ application id), state key. Return: did_exist flag (top of the stack, 1 if the application and key existed and 0 otherwise), value. The value is zero (of type uint64) if the key does not exist.","Groups":["State Access"]},{"Opcode":102,"Name":"app_local_put","Args":".B.","Cost":1,"Size":1,"Doc":"write C to key B in account A\'s local state of the current application","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), state key, value.","Groups":["State Access"]},{"Opcode":103,"Name":"app_global_put","Args":"B.","Cost":1,"Size":1,"Doc":"write B to key A in the global state of the current application","Groups":["State Access"]},{"Opcode":104,"Name":"app_local_del","Args":".B","Cost":1,"Size":1,"Doc":"delete key B from account A\'s local state of the current application","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), state key.\\n\\nDeleting a key which is already absent has no effect on the application local state. (In particular, it does _not_ cause the program to fail.)","Groups":["State Access"]},{"Opcode":105,"Name":"app_global_del","Args":"B","Cost":1,"Size":1,"Doc":"delete key A from the global state of the current application","DocExtra":"params: state key.\\n\\nDeleting a key which is already absent has no effect on the application global state. (In particular, it does _not_ cause the program to fail.)","Groups":["State Access"]},{"Opcode":112,"Name":"asset_holding_get","Args":".U","Returns":".U","Cost":1,"Size":2,"ArgEnum":["AssetBalance","AssetFrozen"],"ArgEnumTypes":"UU","Doc":"X is field F from account A\'s holding of asset B. Y is 1 if A is opted into B, else 0","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ address), asset id (or, since v4, a Txn.ForeignAssets offset). Return: did_exist flag (1 if the asset existed and 0 otherwise), value.","ImmediateNote":"{uint8 asset holding field index}","Groups":["State Access"]},{"Opcode":113,"Name":"asset_params_get","Args":"U","Returns":".U","Cost":1,"Size":2,"ArgEnum":["AssetTotal","AssetDecimals","AssetDefaultFrozen","AssetUnitName","AssetName","AssetURL","AssetMetadataHash","AssetManager","AssetReserve","AssetFreeze","AssetClawback","AssetCreator"],"ArgEnumTypes":"UUUBBBBBBBBB","Doc":"X is field F from asset A. Y is 1 if A exists, else 0","DocExtra":"params: Txn.ForeignAssets offset (or, since v4, an _available_ asset id. Return: did_exist flag (1 if the asset existed and 0 otherwise), value.","ImmediateNote":"{uint8 asset params field index}","Groups":["State Access"]},{"Opcode":114,"Name":"app_params_get","Args":"U","Returns":".U","Cost":1,"Size":2,"ArgEnum":["AppApprovalProgram","AppClearStateProgram","AppGlobalNumUint","AppGlobalNumByteSlice","AppLocalNumUint","AppLocalNumByteSlice","AppExtraProgramPages","AppCreator","AppAddress"],"ArgEnumTypes":"BBUUUUUBB","Doc":"X is field F from app A. Y is 1 if A exists, else 0","DocExtra":"params: Txn.ForeignApps offset or an _available_ app id. Return: did_exist flag (1 if the application existed and 0 otherwise), value.","ImmediateNote":"{uint8 app params field index}","Groups":["State Access"]},{"Opcode":115,"Name":"acct_params_get","Args":".","Returns":".U","Cost":1,"Size":2,"Doc":"X is field F from account A. Y is 1 if A owns positive algos, else 0","ImmediateNote":"{uint8 account params field index}","Groups":["State Access"]},{"Opcode":120,"Name":"min_balance","Args":".","Returns":"U","Cost":1,"Size":1,"Doc":"get minimum required balance for account A, in microalgos. Required balance is affected by [ASA](https://developer.algorand.org/docs/features/asa/#assets-overview) and [App](https://developer.algorand.org/docs/features/asc1/stateful/#minimum-balance-requirement-for-a-smart-contract) usage. When creating or opting into an app, the minimum balance grows before the app code runs, therefore the increase is visible there. When deleting or closing out, the minimum balance decreases after the app executes.","DocExtra":"params: Txn.Accounts offset (or, since v4, an _available_ account address), _available_ application id (or, since v4, a Txn.ForeignApps offset). Return: value.","Groups":["State Access"]},{"Opcode":128,"Name":"pushbytes","Returns":"B","Cost":1,"Size":0,"Doc":"immediate BYTES","DocExtra":"pushbytes args are not added to the bytecblock during assembly processes","ImmediateNote":"{varuint length} {bytes}","Groups":["Loading Values"]},{"Opcode":129,"Name":"pushint","Returns":"U","Cost":1,"Size":0,"Doc":"immediate UINT","DocExtra":"pushint args are not added to the intcblock during assembly processes","ImmediateNote":"{varuint int}","Groups":["Loading Values"]},{"Opcode":136,"Name":"callsub","Cost":1,"Size":3,"Doc":"branch unconditionally to TARGET, saving the next instruction on the call stack","DocExtra":"The call stack is separate from the data stack. Only `callsub` and `retsub` manipulate it.","ImmediateNote":"{int16 branch offset, big endian}","Groups":["Flow Control"]},{"Opcode":137,"Name":"retsub","Cost":1,"Size":1,"Doc":"pop the top instruction from the call stack and branch to it","DocExtra":"The call stack is separate from the data stack. Only `callsub` and `retsub` manipulate it.","Groups":["Flow Control"]},{"Opcode":144,"Name":"shl","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A times 2^B, modulo 2^64","Groups":["Arithmetic"]},{"Opcode":145,"Name":"shr","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A divided by 2^B","Groups":["Arithmetic"]},{"Opcode":146,"Name":"sqrt","Args":"U","Returns":"U","Cost":4,"Size":1,"Doc":"The largest integer I such that I^2 <= A","Groups":["Arithmetic"]},{"Opcode":147,"Name":"bitlen","Args":".","Returns":"U","Cost":1,"Size":1,"Doc":"The highest set bit in A. If A is a byte-array, it is interpreted as a big-endian unsigned integer. bitlen of 0 is 0, bitlen of 8 is 4","DocExtra":"bitlen interprets arrays as big-endian integers, unlike setbit/getbit","Groups":["Arithmetic"]},{"Opcode":148,"Name":"exp","Args":"UU","Returns":"U","Cost":1,"Size":1,"Doc":"A raised to the Bth power. Fail if A == B == 0 and on overflow","Groups":["Arithmetic"]},{"Opcode":149,"Name":"expw","Args":"UU","Returns":"UU","Cost":10,"Size":1,"Doc":"A raised to the Bth power as a 128-bit result in two uint64s. X is the high 64 bits, Y is the low. Fail if A == B == 0 or if the results exceeds 2^128-1","Groups":["Arithmetic"]},{"Opcode":150,"Name":"bsqrt","Args":"B","Returns":"B","Cost":40,"Size":1,"Doc":"The largest integer I such that I^2 <= A. A and I are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":151,"Name":"divw","Args":"UUU","Returns":"U","Cost":1,"Size":1,"Doc":"A,B / C. Fail if C == 0 or if result overflows.","DocExtra":"The notation A,B indicates that A and B are interpreted as a uint128 value, with A as the high uint64 and B the low.","Groups":["Arithmetic"]},{"Opcode":160,"Name":"b+","Args":"BB","Returns":"B","Cost":10,"Size":1,"Doc":"A plus B. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":161,"Name":"b-","Args":"BB","Returns":"B","Cost":10,"Size":1,"Doc":"A minus B. A and B are interpreted as big-endian unsigned integers. Fail on underflow.","Groups":["Byte Array Arithmetic"]},{"Opcode":162,"Name":"b/","Args":"BB","Returns":"B","Cost":20,"Size":1,"Doc":"A divided by B (truncated division). A and B are interpreted as big-endian unsigned integers. Fail if B is zero.","Groups":["Byte Array Arithmetic"]},{"Opcode":163,"Name":"b*","Args":"BB","Returns":"B","Cost":20,"Size":1,"Doc":"A times B. A and B are interpreted as big-endian unsigned integers.","Groups":["Byte Array Arithmetic"]},{"Opcode":164,"Name":"b<","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is less than B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":165,"Name":"b>","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is greater than B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":166,"Name":"b<=","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is less than or equal to B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":167,"Name":"b>=","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is greater than or equal to B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":168,"Name":"b==","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"1 if A is equal to B, else 0. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":169,"Name":"b!=","Args":"BB","Returns":"U","Cost":1,"Size":1,"Doc":"0 if A is equal to B, else 1. A and B are interpreted as big-endian unsigned integers","Groups":["Byte Array Arithmetic"]},{"Opcode":170,"Name":"b%","Args":"BB","Returns":"B","Cost":20,"Size":1,"Doc":"A modulo B. A and B are interpreted as big-endian unsigned integers. Fail if B is zero.","Groups":["Byte Array Arithmetic"]},{"Opcode":171,"Name":"b|","Args":"BB","Returns":"B","Cost":6,"Size":1,"Doc":"A bitwise-or B. A and B are zero-left extended to the greater of their lengths","Groups":["Byte Array Logic"]},{"Opcode":172,"Name":"b&","Args":"BB","Returns":"B","Cost":6,"Size":1,"Doc":"A bitwise-and B. A and B are zero-left extended to the greater of their lengths","Groups":["Byte Array Logic"]},{"Opcode":173,"Name":"b^","Args":"BB","Returns":"B","Cost":6,"Size":1,"Doc":"A bitwise-xor B. A and B are zero-left extended to the greater of their lengths","Groups":["Byte Array Logic"]},{"Opcode":174,"Name":"b~","Args":"B","Returns":"B","Cost":4,"Size":1,"Doc":"A with all bits inverted","Groups":["Byte Array Logic"]},{"Opcode":175,"Name":"bzero","Args":"U","Returns":"B","Cost":1,"Size":1,"Doc":"zero filled byte-array of length A","Groups":["Loading Values"]},{"Opcode":176,"Name":"log","Args":"B","Cost":1,"Size":1,"Doc":"write A to log state of the current application","DocExtra":"`log` fails if called more than MaxLogCalls times in a program, or if the sum of logged bytes exceeds 1024 bytes.","Groups":["State Access"]},{"Opcode":177,"Name":"itxn_begin","Cost":1,"Size":1,"Doc":"begin preparation of a new inner transaction in a new transaction group","DocExtra":"`itxn_begin` initializes Sender to the application address; Fee to the minimum allowable, taking into account MinTxnFee and credit from overpaying in earlier transactions; FirstValid/LastValid to the values in the invoking transaction, and all other fields to zero or empty values.","Groups":["Inner Transactions"]},{"Opcode":178,"Name":"itxn_field","Args":".","Cost":1,"Size":2,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"set field F of the current inner transaction to A","DocExtra":"`itxn_field` fails if A is of the wrong type for F, including a byte array of the wrong size for use as an address when F is an address field. `itxn_field` also fails if A is an account, asset, or app that is not _available_, or an attempt is made extend an array field beyond the limit imposed by consensus parameters. (Addresses set into asset params of acfg transactions need not be _available_.)","ImmediateNote":"{uint8 transaction field index}","Groups":["Inner Transactions"]},{"Opcode":179,"Name":"itxn_submit","Cost":1,"Size":1,"Doc":"execute the current inner transaction group. Fail if executing this group would exceed the inner transaction limit, or if any transaction in the group fails.","DocExtra":"`itxn_submit` resets the current transaction so that it can not be resubmitted. A new `itxn_begin` is required to prepare another inner transaction.","Groups":["Inner Transactions"]},{"Opcode":180,"Name":"itxn","Returns":".","Cost":1,"Size":2,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of the last inner transaction","ImmediateNote":"{uint8 transaction field index}","Groups":["Inner Transactions"]},{"Opcode":181,"Name":"itxna","Returns":".","Cost":1,"Size":3,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F of the last inner transaction","ImmediateNote":"{uint8 transaction field index} {uint8 transaction field array index}","Groups":["Inner Transactions"]},{"Opcode":182,"Name":"itxn_next","Cost":1,"Size":1,"Doc":"begin preparation of a new inner transaction in the same transaction group","DocExtra":"`itxn_next` initializes the transaction exactly as `itxn_begin` does","Groups":["Inner Transactions"]},{"Opcode":183,"Name":"gitxn","Returns":".","Cost":1,"Size":3,"ArgEnum":["Sender","Fee","FirstValid","FirstValidTime","LastValid","Note","Lease","Receiver","Amount","CloseRemainderTo","VotePK","SelectionPK","VoteFirst","VoteLast","VoteKeyDilution","Type","TypeEnum","XferAsset","AssetAmount","AssetSender","AssetReceiver","AssetCloseTo","GroupIndex","TxID","ApplicationID","OnCompletion","ApplicationArgs","NumAppArgs","Accounts","NumAccounts","ApprovalProgram","ClearStateProgram","RekeyTo","ConfigAsset","ConfigAssetTotal","ConfigAssetDecimals","ConfigAssetDefaultFrozen","ConfigAssetUnitName","ConfigAssetName","ConfigAssetURL","ConfigAssetMetadataHash","ConfigAssetManager","ConfigAssetReserve","ConfigAssetFreeze","ConfigAssetClawback","FreezeAsset","FreezeAssetAccount","FreezeAssetFrozen","Assets","NumAssets","Applications","NumApplications","GlobalNumUint","GlobalNumByteSlice","LocalNumUint","LocalNumByteSlice","ExtraProgramPages","Nonparticipation","Logs","NumLogs","CreatedAssetID","CreatedApplicationID","LastLog","StateProofPK"],"ArgEnumTypes":"BUUUUBBBUBBBUUUBUUUBBBUBUUBUBUBBBUUUUBBBBBBBBUBUUUUUUUUUUUBUUUBB","Doc":"field F of the Tth transaction in the last inner group submitted","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index}","Groups":["Inner Transactions"]},{"Opcode":184,"Name":"gitxna","Returns":".","Cost":1,"Size":4,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ith value of the array field F from the Tth transaction in the last inner group submitted","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index} {uint8 transaction field array index}","Groups":["Inner Transactions"]},{"Opcode":192,"Name":"txnas","Args":"U","Returns":".","Cost":1,"Size":2,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ath value of the array field F of the current transaction","ImmediateNote":"{uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":193,"Name":"gtxnas","Args":"U","Returns":".","Cost":1,"Size":3,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Ath value of the array field F from the Tth transaction in the current group","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":194,"Name":"gtxnsas","Args":"UU","Returns":".","Cost":1,"Size":2,"ArgEnum":["ApplicationArgs","Accounts","Assets","Applications","Logs"],"ArgEnumTypes":"BBUUB","Doc":"Bth value of the array field F from the Ath transaction in the current group","ImmediateNote":"{uint8 transaction field index}","Groups":["Loading Values"]},{"Opcode":195,"Name":"args","Args":"U","Returns":"B","Cost":1,"Size":1,"Doc":"Ath LogicSig argument","Groups":["Loading Values"]},{"Opcode":196,"Name":"gloadss","Args":"UU","Returns":".","Cost":1,"Size":1,"Doc":"Bth scratch space value of the Ath transaction in the current group","Groups":["Loading Values"]},{"Opcode":197,"Name":"itxnas","Args":"U","Returns":".","Cost":1,"Size":2,"Doc":"Ath value of the array field F of the last inner transaction","ImmediateNote":"{uint8 transaction field index}","Groups":["Inner Transactions"]},{"Opcode":198,"Name":"gitxnas","Args":"U","Returns":".","Cost":1,"Size":3,"Doc":"Ath value of the array field F from the Tth transaction in the last inner group submitted","ImmediateNote":"{uint8 transaction group index} {uint8 transaction field index}","Groups":["Inner Transactions"]}]}'),s=2e4,c=1e3;function u(e){for(var t=0,n=0,r=0;r9||9===r&&a>1?[0,-(r+1)]:[t|a<o.z_)throw new Error("unsupported version");var m,v=0,g=e.length,A=(0,a.Z)(t);try{for(A.s();!(m=A.n()).done;)g+=m.value.length}catch(e){A.e(e)}finally{A.f()}if(g>c)throw new Error("program too long");if(!r){r={};var w,x=(0,a.Z)(o.AP);try{for(x.s();!(w=x.n()).done;){var _=w.value;r[_.Opcode]=_}}catch(e){x.e(e)}finally{x.f()}}for(var k=y,I=[],S=[];ks)throw new Error("program too costly for version < 4. consider using v4.");return[I,S,!0]}function h(e,t){var n=p(e,t);return(0,i.Z)(n,3)[2]}function y(e,t){var n=d(e,t);return(0,i.Z)(n,1)[0]}function m(e,t){var n=f(e,t);return(0,i.Z)(n,1)[0]}function v(e,t){var n=l(e,t);return(0,i.Z)(n,1)[0]}function g(e,t){var n=b(e,t);return(0,i.Z)(n,1)[0]}var A=o.z_,w=o.BV},15834:function(e,t,n){var r=n(5886).Buffer,a=n(34671).default,i=n(68387).default,o=n(58673),s=n(80641),c=n(14539),u=n(93543),d=n(89677),f=n(85965),l=n(45543),b=n(71877),p=function(){"use strict";function e(t,n,i,s,c,u){if(a(this,e),!Number.isSafeInteger(n)||n<0)throw Error("amount must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(i)||i<0)throw Error("firstValid must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(s)||s<0)throw Error("lastValid must be a positive number and smaller than 2^53-1");if(void 0===c&&(c=o.ALGORAND_ZERO_ADDRESS_STRING),void 0===u){var b=f.randomBytes(32);u=r.from(b).toString("base64")}var p=r.from("ASAFAgEHBgUmAyD+vKC7FEpaTqe0OKRoGsgObKEFvLYH/FZTJclWlfaiEyDmmpYeby1feshmB5JlUr6YI17TM2PKiJGLuck4qRW2+SB/g7Flf/H8U7ktwYFIodZd/C1LH6PWdyhK3dIAEm2QaTIEIhIzABAjEhAzAAcxABIQMwAIMQESEDEWIxIQMRAjEhAxBygSEDEJKRIQMQgkEhAxAiUSEDEEIQQSEDEGKhIQ","base64"),h=[n,i,s,t,c,u],y=[l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.ADDRESS,l.valTypes.ADDRESS,l.valTypes.BASE64],m=l.inject(p,[5,6,7,11,44,76],h,y);this.programBytes=m;var v=new d.LogicSig(m,void 0);this.address=v.address()}return i(e,[{key:"getProgram",value:function(){return this.programBytes}},{key:"getAddress",value:function(){return this.address}}]),e}();e.exports={DynamicFee:p,getDynamicFeeTransactions:function(e,t,n,r){if(!t.verify(o.decodeAddress(e.from).publicKey))throw new Error("invalid signature");e.fee=r,e.feev)throw new Error("final fee of payment transaction".concat(g.fee.toString(),"greater than transaction max fee").concat(v.toString()));return u.signLogicSigTransaction(t,m)}}},87381:function(e,t,n){var r=n(15834),a=n(66613),i=n(83649),o=n(18023),s=n(87435);e.exports={DynamicFee:r.DynamicFee,getDynamicFeeTransactions:r.getDynamicFeeTransactions,signDynamicFee:r.signDynamicFee,HTLC:a.HTLC,signTransactionWithHTLCUnlock:a.signTransactionWithHTLCUnlock,LimitOrder:i.LimitOrder,getSwapAssetsTransaction:i.getSwapAssetsTransaction,Split:o.Split,getSplitFundsTransaction:o.getSplitFundsTransaction,PeriodicPayment:s.PeriodicPayment,getPeriodicPaymentWithdrawalTransaction:s.getPeriodicPaymentWithdrawalTransaction}},83649:function(e,t,n){var r=n(5886).Buffer,a=n(34671).default,i=n(68387).default,o=n(58673),s=n(13234),c=n(14539),u=n(93543),d=n(89677),f=n(85965),l=n(45543),b=n(39373),p=function(){"use strict";function e(t,n,i,o,s,c,u){if(a(this,e),!Number.isSafeInteger(n)||n<0)throw Error("assetid must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(i)||i<0)throw Error("ratn must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(o)||o<0)throw Error("ratd must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(s)||s<0)throw Error("expiryRound must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(c)||c<0)throw Error("minTrade must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(u)||u<0)throw Error("maxFee must be a positive number and smaller than 2^53-1");var f=r.from("ASAKAAEFAgYEBwgJCiYBIP68oLsUSlpOp7Q4pGgayA5soQW8tgf8VlMlyVaV9qITMRYiEjEQIxIQMQEkDhAyBCMSQABVMgQlEjEIIQQNEDEJMgMSEDMBECEFEhAzAREhBhIQMwEUKBIQMwETMgMSEDMBEiEHHTUCNQExCCEIHTUENQM0ATQDDUAAJDQBNAMSNAI0BA8QQAAWADEJKBIxAiEJDRAxBzIDEhAxCCISEBA=","base64"),b=[u,c,n,o,i,s,t],p=[l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.INT,l.valTypes.ADDRESS],h=l.inject(f,[5,7,9,10,11,12,16],b,p);this.programBytes=h;var y=new d.LogicSig(h,void 0);this.address=y.address(),this.owner=t,this.assetid=n}return i(e,[{key:"getProgram",value:function(){return this.programBytes}},{key:"getAddress",value:function(){return this.address}}]),e}();e.exports={LimitOrder:p,getSwapAssetsTransaction:function(e,t,n,r,a,i,l,p){var h,y=f.keyPairFromSecretKey(r),m=o.encodeAddress(y.publicKey),v=u.readProgram(e,void 0),g=v[0],A=v[1],w=g[6],x=o.encodeAddress(A[0]),_=d.makeLogicSig(e,void 0),k=_.address(),I=[s.makePaymentTxn(k,m,a,n,h,i,l,void 0,p,void 0),s.makeAssetTransferTxn(m,x,h,void 0,a,t,i,l,void 0,p,void 0,w)],S=c.assignGroupID(I),E=g[7],C=g[8];if(t*E= ").concat(n.toString(),"*").concat(C.toString()));var T=g[4];if(nO)throw new Error("final fee of payment transaction ".concat(S[0].fee.toString()," greater than transaction max fee ").concat(O.toString()));if(S[1].fee>O)throw new Error("final fee of asset transaction ".concat(S[1].fee.toString()," greater than transaction max fee ").concat(O.toString()));var P=d.signLogicSigTransactionObject(S[0],_),M=S[1].signTxn(r);return b.concatArrays(P.blob,M)}}},87435:function(e,t,n){var r=n(5886).Buffer,a=n(34671).default,i=n(68387).default,o=n(58673),s=n(13234),c=n(93543),u=n(89677),d=n(85965),f=n(45543),l=function(){"use strict";function e(t,n,i,o,s,c,f){if(a(this,e),this.receiver=t,!Number.isSafeInteger(n)||n<0)throw Error("amount must be a positive number and smaller than 2^53-1");if(this.amount=n,!Number.isSafeInteger(i)||i<0)throw Error("withdrawalWindow must be a positive number and smaller than 2^53-1");if(this.withdrawalWindow=i,!Number.isSafeInteger(o)||o<0)throw Error("period must be a positive number and smaller than 2^53-1");if(this.period=o,!Number.isSafeInteger(s)||s<0)throw Error("expiryRound must be a positive number and smaller than 2^53-1");if(this.expiryRound=s,!Number.isSafeInteger(c)||c<0)throw Error("maxFee must be a positive number and smaller than 2^53-1");if(this.maxFee=c,void 0===f){var l=d.randomBytes(32);this.lease=r.from(l).toString("base64")}else this.lease=f;this.programBytes=this.getProgram();var b=new u.LogicSig(this.programBytes,void 0);this.address=b.address()}return i(e,[{key:"getProgram",value:function(){var e=r.from("ASAHAQYFAAQDByYCIAECAwQFBgcIAQIDBAUGBwgBAgMEBQYHCAECAwQFBgcIIJKvkYTkEzwJf2arzJOxERsSogG9nQzKPkpIoc4TzPTFMRAiEjEBIw4QMQIkGCUSEDEEIQQxAggSEDEGKBIQMQkyAxIxBykSEDEIIQUSEDEJKRIxBzIDEhAxAiEGDRAxCCUSEBEQ","base64"),t=[this.maxFee,this.period,this.withdrawalWindow,this.amount,this.expiryRound,this.lease,this.receiver],n=[f.valTypes.INT,f.valTypes.INT,f.valTypes.INT,f.valTypes.INT,f.valTypes.INT,f.valTypes.BASE64,f.valTypes.ADDRESS];return f.inject(e,[4,5,7,8,9,12,46],t,n)}},{key:"getAddress",value:function(){return this.address}}]),e}();e.exports={PeriodicPayment:l,getPeriodicPaymentWithdrawalTransaction:function(e,t,n,r){var a=c.readProgram(e,void 0),i=a[0],d=a[1],f=i[2],l=i[4],b=i[5];if(n%f!=0)throw new Error("firstValid round ".concat(n.toString()," was not a multiple of contract period ").concat(f.toString()));var p,h,y=d[1],m=o.encodeAddress(y),v=d[0],g=new Uint8Array(v),A=n+l,w=m,x=u.makeLogicSig(e,void 0),_=x.address(),k={from:_,to:w,fee:t,amount:b,closeRemainderTo:p,firstRound:n,lastRound:A,note:h,genesisHash:r,genesisID:"",type:"pay",lease:g},I=s.makePaymentTxn(_,w,t,b,p,n,A,h,r,"");if(I.fee>i[1])throw new Error("final fee of payment transaction".concat(I.fee.toString(),"greater than transaction max fee").concat(i[1].toString()));return u.signLogicSigTransaction(k,x)}}},18023:function(e,t,n){var r=n(5886).Buffer,a=n(34671).default,i=n(68387).default,o=n(58673),s=n(13234),c=n(14539),u=n(89677),d=n(93543),f=n(45543),l=n(39373),b=function(){"use strict";function e(t,n,i,o,s,c,d,l){if(a(this,e),!Number.isSafeInteger(s)||s<0)throw Error("rat2 must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(o)||o<0)throw Error("rat1 must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(c)||c<0)throw Error("expiryRound must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(d)||d<0)throw Error("minPay must be a positive number and smaller than 2^53-1");if(!Number.isSafeInteger(l)||l<0)throw Error("maxFee must be a positive number and smaller than 2^53-1");var b=r.from("ASAIAQUCAAYHCAkmAyCztwQn0+DycN+vsk+vJWcsoz/b7NDS6i33HOkvTpf+YiC3qUpIgHGWE8/1LPh9SGCalSN7IaITeeWSXbfsS5wsXyC4kBQ38Z8zcwWVAym4S8vpFB/c0XC6R4mnPi9EBADsPDEQIhIxASMMEDIEJBJAABkxCSgSMQcyAxIQMQglEhAxAiEEDRAiQAAuMwAAMwEAEjEJMgMSEDMABykSEDMBByoSEDMACCEFCzMBCCEGCxIQMwAIIQcPEBA=","base64"),p=[l,c,s,o,d,t,n,i],h=[f.valTypes.INT,f.valTypes.INT,f.valTypes.INT,f.valTypes.INT,f.valTypes.INT,f.valTypes.ADDRESS,f.valTypes.ADDRESS,f.valTypes.ADDRESS],y=f.inject(b,[4,7,8,9,10,14,47,80],p,h);this.programBytes=y;var m=u.makeLogicSig(y,void 0);this.address=m.address()}return i(e,[{key:"getProgram",value:function(){return this.programBytes}},{key:"getAddress",value:function(){return this.address}}]),e}();e.exports={Split:b,getSplitFundsTransaction:function(e,t,n,r,a,i){var f,b=d.readProgram(e,void 0),p=b[0],h=b[1],y=p[6],m=p[5],v=function e(t,n){if("number"!=typeof t||"number"!=typeof n)throw new Error("gcd operates only on positive integers");return n?e(n,t%n):t}(y,m);y=Math.floor(y/v);var g=(m=Math.floor(m/v))/y,A=t-(f=Math.round(t/(1+g)));if(m*f!=y*A)throw Error("could not split funds in a way that satisfied the contract ratio");var w=u.makeLogicSig(e,void 0).address(),x=o.encodeAddress(h[1]),_=o.encodeAddress(h[2]),k=[s.makePaymentTxn(w,x,a,f,void 0,n,r,void 0,i),s.makePaymentTxn(w,_,a,A,void 0,n,r,void 0,i)],I=c.assignGroupID(k).map((function(e){return u.signLogicSigTransactionObject(e,u).blob}));return l.concatArrays(I[0],I[1])}}},45543:function(e,t,n){var r=n(5886).Buffer,a=n(58673);function i(e,t){for(var n=0;t>128;)e.push(255&t|128),t>>=7,n+=1;return e.push(255&t),n+1}var o={INT:1,ADDRESS:2,BASE64:3};e.exports={inject:function(e,t,n,s){if(t.length!==n.length||t.length!==s.length)throw new Error("Lengths do not match");var c=e;function u(e,t,n,a){var i=e.slice(0,n),o=e.slice(n+a,e.length),s=[i,r.from(t),o];return r.concat(s)}for(var d=0;d9&&void 0!==arguments[9]&&arguments[9],l=arguments.length>10&&void 0!==arguments[10]?arguments[10]:void 0,b={from:e,note:t,voteKey:n,selectionKey:a,voteFirst:o,voteLast:s,voteKeyDilution:c,suggestedParams:u,type:i.i.keyreg,reKeyTo:d,nonParticipation:f,stateProofKey:l};return new r.Transaction(b)}function d(e,t,n,r,a,i,o,s,c,d,f,l,b){return u(e,a,s,c,d,f,l,{genesisHash:i,genesisID:o,firstRound:n,lastRound:r,fee:t},b,arguments.length>13&&void 0!==arguments[13]&&arguments[13],arguments.length>14&&void 0!==arguments[14]?arguments[14]:void 0)}function f(e){return u(e.from,e.note,e.voteKey,e.selectionKey,e.voteFirst,e.voteLast,e.voteKeyDilution,e.suggestedParams,e.rekeyTo,e.nonParticipation,e.stateProofKey)}function l(e,t,n,a,o,s,c,u,d,f,l,b,p,h,y){var m={from:e,note:t,suggestedParams:h,assetTotal:n,assetDecimals:a,assetDefaultFrozen:o,assetUnitName:f,assetName:l,assetURL:b,assetMetadataHash:p,assetManager:s,assetReserve:c,assetFreeze:u,assetClawback:d,type:i.i.acfg,reKeyTo:y};return new r.Transaction(m)}function b(e,t,n,r,a,i,o,s,c,u,d,f,b,p,h,y,m,v,g){return l(e,a,s,c,u,d,f,b,p,h,y,m,v,{genesisHash:i,genesisID:o,firstRound:n,lastRound:r,fee:t},g)}function p(e){return l(e.from,e.note,e.total,e.decimals,e.defaultFrozen,e.manager,e.reserve,e.freeze,e.clawback,e.unitName,e.assetName,e.assetURL,e.assetMetadataHash,e.suggestedParams,e.rekeyTo)}function h(e,t,n,a,o,s,c,u){var d=arguments.length>9?arguments[9]:void 0;if((!(arguments.length>8&&void 0!==arguments[8])||arguments[8])&&(void 0===a||void 0===o||void 0===s||void 0===c))throw Error("strict empty address checking was turned on, but at least one empty address was provided");var f={from:e,suggestedParams:u,assetIndex:n,assetManager:a,assetReserve:o,assetFreeze:s,assetClawback:c,type:i.i.acfg,note:t,reKeyTo:d};return new r.Transaction(f)}function y(e,t,n,r,a,i,o,s,c,u,d,f){return h(e,a,s,c,u,d,f,{genesisHash:i,genesisID:o,firstRound:n,lastRound:r,fee:t},!(arguments.length>12&&void 0!==arguments[12])||arguments[12],arguments.length>13?arguments[13]:void 0)}function m(e){return h(e.from,e.note,e.assetIndex,e.manager,e.reserve,e.freeze,e.clawback,e.suggestedParams,e.strictEmptyAddressChecking,e.rekeyTo)}function v(e,t,n,a,o){var s={from:e,suggestedParams:a,assetIndex:n,type:i.i.acfg,note:t,reKeyTo:o};return new r.Transaction(s)}function g(e,t,n,r,a,i,o,s,c){return v(e,a,s,{genesisHash:i,genesisID:o,firstRound:n,lastRound:r,fee:t},c)}function A(e){return v(e.from,e.note,e.assetIndex,e.suggestedParams,e.rekeyTo)}function w(e,t,n,a,o,s,c){var u={from:e,type:i.i.afrz,freezeAccount:a,assetIndex:n,freezeState:o,note:t,suggestedParams:s,reKeyTo:c};return new r.Transaction(u)}function x(e,t,n,r,a,i,o,s,c,u,d){return w(e,a,s,c,u,{genesisHash:i,genesisID:o,firstRound:n,lastRound:r,fee:t},d)}function _(e){return w(e.from,e.note,e.assetIndex,e.freezeTarget,e.freezeState,e.suggestedParams,e.rekeyTo)}function k(e,t,n,a,o,s,c,u,d){var f={type:i.i.axfer,from:e,to:t,amount:o,suggestedParams:u,assetIndex:c,note:s,assetRevocationTarget:a,closeRemainderTo:n,reKeyTo:d};return new r.Transaction(f)}function I(e,t,n,r,a,i,o,s,c,u,d,f,l){return k(e,t,n,r,i,c,f,{genesisHash:u,genesisID:d,firstRound:o,lastRound:s,fee:a},l)}function S(e){return k(e.from,e.to,e.closeRemainderTo,e.revocationTarget,e.amount,e.note,e.assetIndex,e.suggestedParams,e.rekeyTo)}function E(e,t,n,a,o,s,c,u,d,f,l,b,p,h,y,m,v,g){var A={type:i.i.appl,from:e,suggestedParams:t,appIndex:0,appOnComplete:n,appLocalInts:s,appLocalByteSlices:c,appGlobalInts:u,appGlobalByteSlices:d,appApprovalProgram:a,appClearProgram:o,appArgs:f,appAccounts:l,appForeignApps:b,appForeignAssets:p,boxes:g,note:h,lease:y,reKeyTo:m,extraPages:v};return new r.Transaction(A)}function C(e){return E(e.from,e.suggestedParams,e.onComplete,e.approvalProgram,e.clearProgram,e.numLocalInts,e.numLocalByteSlices,e.numGlobalInts,e.numGlobalByteSlices,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.extraPages,e.boxes)}function T(e,t,n,o,s,c,u,d,f,l,b,p,h){var y={type:i.i.appl,from:e,suggestedParams:t,appIndex:n,appApprovalProgram:o,appOnComplete:a.hq.UpdateApplicationOC,appClearProgram:s,appArgs:c,appAccounts:u,appForeignApps:d,appForeignAssets:f,boxes:h,note:l,lease:b,reKeyTo:p};return new r.Transaction(y)}function O(e){return T(e.from,e.suggestedParams,e.appIndex,e.approvalProgram,e.clearProgram,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function P(e,t,n,o,s,c,u,d,f,l,b){var p={type:i.i.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:a.hq.DeleteApplicationOC,appArgs:o,appAccounts:s,appForeignApps:c,appForeignAssets:u,boxes:b,note:d,lease:f,reKeyTo:l};return new r.Transaction(p)}function M(e){return P(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function B(e,t,n,o,s,c,u,d,f,l,b){var p={type:i.i.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:a.hq.OptInOC,appArgs:o,appAccounts:s,appForeignApps:c,appForeignAssets:u,boxes:b,note:d,lease:f,reKeyTo:l};return new r.Transaction(p)}function N(e){return B(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function R(e,t,n,o,s,c,u,d,f,l,b){var p={type:i.i.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:a.hq.CloseOutOC,appArgs:o,appAccounts:s,appForeignApps:c,appForeignAssets:u,boxes:b,note:d,lease:f,reKeyTo:l};return new r.Transaction(p)}function D(e){return R(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function j(e,t,n,o,s,c,u,d,f,l,b){var p={type:i.i.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:a.hq.ClearStateOC,appArgs:o,appAccounts:s,appForeignApps:c,appForeignAssets:u,boxes:b,note:d,lease:f,reKeyTo:l};return new r.Transaction(p)}function U(e){return j(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function L(e,t,n,o,s,c,u,d,f,l,b){var p={type:i.i.appl,from:e,suggestedParams:t,appIndex:n,appOnComplete:a.hq.NoOpOC,appArgs:o,appAccounts:s,appForeignApps:c,appForeignAssets:u,boxes:b,note:d,lease:f,reKeyTo:l};return new r.Transaction(p)}function F(e){return L(e.from,e.suggestedParams,e.appIndex,e.appArgs,e.accounts,e.foreignApps,e.foreignAssets,e.note,e.lease,e.rekeyTo,e.boxes)}function Z(e){var t={type:i.i.appl,from:e.from,suggestedParams:e.suggestedParams,appIndex:e.appIndex,appOnComplete:e.onComplete,appLocalInts:e.numLocalInts,appLocalByteSlices:e.numLocalByteSlices,appGlobalInts:e.numGlobalInts,appGlobalByteSlices:e.numGlobalByteSlices,appApprovalProgram:e.approvalProgram,appClearProgram:e.clearProgram,appArgs:e.appArgs,appAccounts:e.accounts,appForeignApps:e.foreignApps,appForeignAssets:e.foreignAssets,boxes:e.boxes,note:e.note,lease:e.lease,reKeyTo:e.rekeyTo,extraPages:e.extraPages};return new r.Transaction(t)}},16063:function(e,t,n){"use strict";n.d(t,{F2:function(){return E},J6:function(){return S},PO:function(){return T},PU:function(){return C},f7:function(){return O},gJ:function(){return _},vH:function(){return P}});var r=n(28994),a=n(25630),i=n(91610),o=n(31945),s=n(76056),c=n(12293),u=n(61968),d=n(6058),f=n(85965),l=n(58673),b=n(80641),p=n(71877),h=n(39373),y=n(5886).Buffer,m="Not enough multisig transactions to merge. Need at least two",v="Cannot merge txs. txIDs differ",g="Cannot merge txs. Auth addrs differ",A="Cannot merge txs. Multisig preimages differ",w="Cannot merge txs. subsigs are mismatched.",x="Cannot mutate a multisig field as it would invalidate all existing signatures.";function _(e,t){var n=t.version,r=t.threshold,a=t.addrs.map((function(e){return l.decodeAddress(e).publicKey})),i={v:n,thr:r,subsig:a.map((function(e){return{pk:y.from(e)}}))},o=e.get_obj_for_encoding(),s={msig:i,txn:o},c=l.fromMultisigPreImg({version:n,threshold:r,pks:a});return l.encodeAddress(o.snd)!==l.encodeAddress(c)&&(s.sgnr=y.from(c)),new Uint8Array(b.encode(s))}function k(e,t,n){var r=t.rawSig,a=t.myPk,i=n.version,o=n.threshold,s=n.pks,c=_(e,{version:i,threshold:o,addrs:s.map((function(e){return l.encodeAddress(e)}))}),u=b.decode(c),d=!1;if(u.msig.subsig.forEach((function(e,t){f.bytesEqual(e.pk,a)&&(d=!0,u.msig.subsig[t].s=r)})),!1===d)throw new Error("Key does not exist");var p=l.fromMultisigPreImg({version:i,threshold:o,pks:s});return l.encodeAddress(u.txn.snd)!==l.encodeAddress(p)&&(u.sgnr=y.from(p)),new Uint8Array(b.encode(u))}var I=function(e){(0,u.Z)(n,e);var t=(0,d.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"addLease",value:function(){throw new Error(x)}},{key:"addRekey",value:function(){throw new Error(x)}},{key:"signTxn",value:function(e){throw new Error("Cannot sign a multisig transaction using `signTxn`. Use `partialSignTxn` instead.")}},{key:"partialSignTxn",value:function(e,t){var n=e.version,r=e.threshold,a=e.pks,i=f.keyPairFromSecretKey(t).publicKey;return k(this,{rawSig:this.rawSignTxn(t),myPk:i},{version:n,threshold:r,pks:a})}},{key:"partialSignWithMultisigSignature",value:function(e,t,n){if(!f.isValidSignatureLength(n.length))throw new Error("Cannot add multisig signature. Signature is not of the correct length.");return k(this,{rawSig:n,myPk:l.decodeAddress(t).publicKey},e)}}],[{key:"from_obj_for_encoding",value:function(e){return(0,s.Z)((0,c.Z)(n),"from_obj_for_encoding",this).call(this,e)}}]),n}(p.Transaction);function S(e){if(e.length<2)throw new Error(m);for(var t=b.decode(e[0]),n=I.from_obj_for_encoding(t.txn).txID(),r=t.sgnr?l.encodeAddress(t.sgnr):void 0,i={version:t.msig.v,threshold:t.msig.thr,pks:t.msig.subsig.map((function(e){return e.pk}))},o=l.encodeAddress(l.fromMultisigPreImg(i)),s=t.msig.subsig.map((function(e){return(0,a.Z)({},e)})),c=1;c3))throw Error("extraPages must be an Integer between and including 0 to 3");if(void 0!==o.assetTotal&&(!(Number.isSafeInteger(o.assetTotal)||"bigint"==typeof o.assetTotal&&o.assetTotal<=BigInt("0xffffffffffffffff"))||o.assetTotal<0))throw Error("Total asset issuance must be a positive number and smaller than 2^64-1. If the number is larger than 2^53-1, use bigint.");if(void 0!==o.assetDecimals&&(!Number.isSafeInteger(o.assetDecimals)||o.assetDecimals<0||o.assetDecimals>19))throw Error("assetDecimals must be a positive number and smaller than ".concat(19..toString()));if(void 0!==o.assetIndex&&(!Number.isSafeInteger(o.assetIndex)||o.assetIndex<0))throw Error("Asset index must be a positive number and smaller than 2^53-1");if(void 0!==o.appIndex&&(!Number.isSafeInteger(o.appIndex)||o.appIndex<0))throw Error("Application index must be a positive number and smaller than 2^53-1");if(void 0!==o.appLocalInts&&(!Number.isSafeInteger(o.appLocalInts)||o.appLocalInts<0))throw Error("Application local ints count must be a positive number and smaller than 2^53-1");if(void 0!==o.appLocalByteSlices&&(!Number.isSafeInteger(o.appLocalByteSlices)||o.appLocalByteSlices<0))throw Error("Application local byte slices count must be a positive number and smaller than 2^53-1");if(void 0!==o.appGlobalInts&&(!Number.isSafeInteger(o.appGlobalInts)||o.appGlobalInts<0))throw Error("Application global ints count must be a positive number and smaller than 2^53-1");if(void 0!==o.appGlobalByteSlices&&(!Number.isSafeInteger(o.appGlobalByteSlices)||o.appGlobalByteSlices<0))throw Error("Application global byte slices count must be a positive number and smaller than 2^53-1");if(void 0!==o.appApprovalProgram&&o.appApprovalProgram.constructor!==Uint8Array)throw Error("appApprovalProgram must be a Uint8Array.");if(void 0!==o.appClearProgram&&o.appClearProgram.constructor!==Uint8Array)throw Error("appClearProgram must be a Uint8Array.");if(void 0!==o.appArgs){if(!Array.isArray(o.appArgs))throw Error("appArgs must be an Array of Uint8Array.");o.appArgs=o.appArgs.slice(),o.appArgs.forEach((function(e){if(e.constructor!==Uint8Array)throw Error("each element of AppArgs must be a Uint8Array.")}))}else o.appArgs=[];if(void 0!==o.appAccounts){if(!Array.isArray(o.appAccounts))throw Error("appAccounts must be an Array of addresses.");o.appAccounts=o.appAccounts.map((function(e){return u.decodeAddress(e)}))}if(void 0!==o.appForeignApps){if(!Array.isArray(o.appForeignApps))throw Error("appForeignApps must be an Array of integers.");o.appForeignApps=o.appForeignApps.slice(),o.appForeignApps.forEach((function(e){if(!Number.isSafeInteger(e)||e<0)throw Error("each foreign application index must be a positive number and smaller than 2^53-1")}))}if(void 0!==o.appForeignAssets){if(!Array.isArray(o.appForeignAssets))throw Error("appForeignAssets must be an Array of integers.");o.appForeignAssets=o.appForeignAssets.slice(),o.appForeignAssets.forEach((function(e){if(!Number.isSafeInteger(e)||e<0)throw Error("each foreign asset index must be a positive number and smaller than 2^53-1")}))}if(void 0!==o.boxes){if(!Array.isArray(o.boxes))throw Error("boxes must be an Array of BoxReference.");o.boxes=o.boxes.slice(),o.boxes.forEach((function(e){if(!Number.isSafeInteger(e.appIndex)||e.name.constructor!==Uint8Array)throw Error("box app index must be a number and name must be an Uint8Array.")}))}if(void 0!==o.assetMetadataHash&&0!==o.assetMetadataHash.length){if("string"==typeof o.assetMetadataHash&&(o.assetMetadataHash=new Uint8Array(p.from(o.assetMetadataHash))),o.assetMetadataHash.constructor!==Uint8Array||32!==o.assetMetadataHash.byteLength)throw Error("assetMetadataHash must be a ".concat(32," byte Uint8Array or string."));o.assetMetadataHash.every((function(e){return 0===e}))&&(o.assetMetadataHash=void 0)}else o.assetMetadataHash=void 0;if(void 0!==o.note){if(o.note.constructor!==Uint8Array)throw Error("note must be a Uint8Array.")}else o.note=new Uint8Array(0);if(void 0!==o.lease){if(o.lease.constructor!==Uint8Array)throw Error("lease must be a Uint8Array.");if(32!==o.lease.length)throw Error("lease must be of length ".concat(32..toString(),"."));o.lease.every((function(e){return 0===e}))&&(o.lease=new Uint8Array(0))}else o.lease=new Uint8Array(0);if(o.voteKey=y(o.voteKey,"voteKey",32),o.selectionKey=y(o.selectionKey,"selectionKey",32),o.stateProofKey=y(o.stateProofKey,"stateProofKey",64),o.nonParticipation&&(o.voteKey||o.selectionKey||o.voteFirst||o.stateProofKey||o.voteLast||o.voteKeyDilution))throw new Error("nonParticipation is true but participation params are present.");if(!o.nonParticipation&&(o.voteKey||o.selectionKey||o.stateProofKey||o.voteFirst||o.voteLast||o.voteKeyDilution)&&!(o.voteKey&&o.selectionKey&&o.voteFirst&&o.voteLast&&o.voteKeyDilution))throw new Error("online key registration missing at least one of the following fields: voteKey, selectionKey, voteFirst, voteLast, voteKeyDilution");if(delete o.suggestedParams,Object.assign(this,l.removeUndefinedProperties(o)),o.flatFee||(this.fee*=this.estimateSize(),this.fee1&&void 0!==arguments[1]?arguments[1]:0;if(void 0!==e){if(e.constructor!==Uint8Array)throw Error("lease must be a Uint8Array.");if(32!==e.length)throw Error("lease must be of length ".concat(32..toString(),"."));t=new Uint8Array(e)}else t=new Uint8Array(0);this.lease=t,0!==n&&(this.fee+=37*n)}},{key:"addRekey",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;void 0!==e&&(this.reKeyTo=u.decodeAddress(e)),0!==t&&(this.fee+=37*t)}},{key:"_getDictForDisplay",value:function(){var e=(0,r.Z)({},this);return e.tag=e.tag.toString(),e.from=u.encodeAddress(e.from.publicKey),void 0!==e.to&&(e.to=u.encodeAddress(e.to.publicKey)),void 0!==e.freezeAccount&&(e.freezeAccount=u.encodeAddress(e.freezeAccount.publicKey)),void 0!==e.closeRemainderTo&&(e.closeRemainderTo=u.encodeAddress(e.closeRemainderTo.publicKey)),void 0!==e.assetManager&&(e.assetManager=u.encodeAddress(e.assetManager.publicKey)),void 0!==e.assetReserve&&(e.assetReserve=u.encodeAddress(e.assetReserve.publicKey)),void 0!==e.assetFreeze&&(e.assetFreeze=u.encodeAddress(e.assetFreeze.publicKey)),void 0!==e.assetClawback&&(e.assetClawback=u.encodeAddress(e.assetClawback.publicKey)),void 0!==e.assetRevocationTarget&&(e.assetRevocationTarget=u.encodeAddress(e.assetRevocationTarget.publicKey)),void 0!==e.reKeyTo&&(e.reKeyTo=u.encodeAddress(e.reKeyTo.publicKey)),e.genesisHash=e.genesisHash.toString("base64"),e}},{key:"prettyPrint",value:function(){console.log(this._getDictForDisplay())}},{key:"toString",value:function(){return JSON.stringify(this._getDictForDisplay())}}],[{key:"from_obj_for_encoding",value:function(e){var t=Object.create(this.prototype);if(t.name="Transaction",t.tag=p.from("TX"),t.genesisID=e.gen,t.genesisHash=p.from(e.gh),!(0,b.v8)(e.type))throw new Error("Unrecognized transaction type: ".concat(e.type));return t.type=e.type,t.fee=e.fee,t.firstRound=e.fv,t.lastRound=e.lv,t.note=new Uint8Array(e.note),t.lease=new Uint8Array(e.lx),t.from=u.decodeAddress(u.encodeAddress(new Uint8Array(e.snd))),void 0!==e.grp&&(t.group=p.from(e.grp)),void 0!==e.rekey&&(t.reKeyTo=u.decodeAddress(u.encodeAddress(new Uint8Array(e.rekey)))),"pay"===e.type?(t.amount=e.amt,t.to=u.decodeAddress(u.encodeAddress(new Uint8Array(e.rcv))),void 0!==e.close&&(t.closeRemainderTo=u.decodeAddress(u.encodeAddress(e.close)))):"keyreg"===e.type?(void 0!==e.votekey&&(t.voteKey=p.from(e.votekey)),void 0!==e.selkey&&(t.selectionKey=p.from(e.selkey)),void 0!==e.sprfkey&&(t.stateProofKey=p.from(e.sprfkey)),void 0!==e.votekd&&(t.voteKeyDilution=e.votekd),void 0!==e.votefst&&(t.voteFirst=e.votefst),void 0!==e.votelst&&(t.voteLast=e.votelst),void 0!==e.nonpart&&(t.nonParticipation=e.nonpart)):"acfg"===e.type?(void 0!==e.caid&&(t.assetIndex=e.caid),void 0!==e.apar&&(t.assetTotal=e.apar.t,t.assetDefaultFrozen=e.apar.df,void 0!==e.apar.dc&&(t.assetDecimals=e.apar.dc),void 0!==e.apar.m&&(t.assetManager=u.decodeAddress(u.encodeAddress(new Uint8Array(e.apar.m)))),void 0!==e.apar.r&&(t.assetReserve=u.decodeAddress(u.encodeAddress(new Uint8Array(e.apar.r)))),void 0!==e.apar.f&&(t.assetFreeze=u.decodeAddress(u.encodeAddress(new Uint8Array(e.apar.f)))),void 0!==e.apar.c&&(t.assetClawback=u.decodeAddress(u.encodeAddress(new Uint8Array(e.apar.c)))),void 0!==e.apar.un&&(t.assetUnitName=e.apar.un),void 0!==e.apar.an&&(t.assetName=e.apar.an),void 0!==e.apar.au&&(t.assetURL=e.apar.au),void 0!==e.apar.am&&(t.assetMetadataHash=e.apar.am))):"axfer"===e.type?(void 0!==e.xaid&&(t.assetIndex=e.xaid),void 0!==e.aamt&&(t.amount=e.aamt),void 0!==e.aclose&&(t.closeRemainderTo=u.decodeAddress(u.encodeAddress(new Uint8Array(e.aclose)))),void 0!==e.asnd&&(t.assetRevocationTarget=u.decodeAddress(u.encodeAddress(new Uint8Array(e.asnd)))),t.to=u.decodeAddress(u.encodeAddress(new Uint8Array(e.arcv)))):"afrz"===e.type?(void 0!==e.afrz&&(t.freezeState=e.afrz),void 0!==e.faid&&(t.assetIndex=e.faid),t.freezeAccount=u.decodeAddress(u.encodeAddress(new Uint8Array(e.fadd)))):"appl"===e.type?(void 0!==e.apid&&(t.appIndex=e.apid),void 0!==e.apan&&(t.appOnComplete=e.apan),void 0!==e.apls&&(void 0!==e.apls.nui&&(t.appLocalInts=e.apls.nui),void 0!==e.apls.nbs&&(t.appLocalByteSlices=e.apls.nbs)),void 0!==e.apgs&&(void 0!==e.apgs.nui&&(t.appGlobalInts=e.apgs.nui),void 0!==e.apgs.nbs&&(t.appGlobalByteSlices=e.apgs.nbs)),void 0!==e.apep&&(t.extraPages=e.apep),void 0!==e.apap&&(t.appApprovalProgram=new Uint8Array(e.apap)),void 0!==e.apsu&&(t.appClearProgram=new Uint8Array(e.apsu)),void 0!==e.apaa&&(t.appArgs=e.apaa.map((function(e){return new Uint8Array(e)}))),void 0!==e.apat&&(t.appAccounts=e.apat.map((function(e){return u.decodeAddress(u.encodeAddress(new Uint8Array(e)))}))),void 0!==e.apfa&&(t.appForeignApps=e.apfa),void 0!==e.apas&&(t.appForeignAssets=e.apas),void 0!==e.apbx&&(t.boxes=e.apbx.map((function(e){return{appIndex:e.i?t.appForeignApps[e.i-1]:0,name:e.n}})))):"stpf"===e.type&&(void 0!==e.sptype&&(t.stateProofType=e.sptype),void 0!==e.sp&&(t.stateProof=e.sp),void 0!==e.spmsg&&(t.stateProofMessage=e.spmsg)),t}}]),e}();function v(e){var t=e.get_obj_for_encoding();return d.encode(t)}function g(e){var t=d.decode(e);return m.from_obj_for_encoding(t)}function A(e){var t=d.decode(e);return(0,r.Z)((0,r.Z)({},t),{},{txn:m.from_obj_for_encoding(t.txn)})}function w(e){return e instanceof m?e:new m(e)}var x=m},72459:function(e,t){"use strict";var n;!function(e){e.DEFAULT="default",e.SAFE="safe",e.MIXED="mixed",e.BIGINT="bigint"}(n||(n={})),t.Z=n},30657:function(e,t,n){"use strict";var r,a;function i(e){return e===r.pay||e===r.keyreg||e===r.acfg||e===r.axfer||e===r.afrz||e===r.appl||e===r.stpf}n.d(t,{hq:function(){return a},iU:function(){return r},v8:function(){return i}}),function(e){e.pay="pay",e.keyreg="keyreg",e.acfg="acfg",e.axfer="axfer",e.afrz="afrz",e.appl="appl",e.stpf="stpf"}(r||(r={})),function(e){e[e.NoOpOC=0]="NoOpOC",e[e.OptInOC=1]="OptInOC",e[e.CloseOutOC=2]="CloseOutOC",e[e.ClearStateOC=3]="ClearStateOC",e[e.UpdateApplicationOC=4]="UpdateApplicationOC",e[e.DeleteApplicationOC=5]="DeleteApplicationOC"}(a||(a={}))},18292:function(e,t,n){"use strict";n.d(t,{i:function(){return r.iU}});var r=n(30657)},39373:function(e,t,n){"use strict";n.r(t),n.d(t,{arrayEqual:function(){return d},concatArrays:function(){return f},isNode:function(){return b},parseJSON:function(){return u},removeUndefinedProperties:function(){return l}});var r=n(25630),a=n(37310),i=n.n(a),o=n(72459),s=n(32375),c=i()({useNativeBigInt:!0,strict:!0});function u(e,t){var n=t&&t.intDecoding?t.intDecoding:o.Z.DEFAULT;return c.parse(e,(function(e,t){if(null!=t&&"object"==typeof t&&null==Object.getPrototypeOf(t)&&Object.setPrototypeOf(t,Object.prototype),"bigint"==typeof t){if("safe"===n&&t>Number.MAX_SAFE_INTEGER)throw new Error("Integer exceeds maximum safe integer: ".concat(t.toString(),". Try parsing with a different intDecoding option."));return"bigint"===n||"mixed"===n&&t>Number.MAX_SAFE_INTEGER?t:Number(t)}return"number"==typeof t&&"bigint"===n&&Number.isInteger(t)?BigInt(t):t}))}function d(e,t){return e.length===t.length&&Array.from(e).every((function(e,n){return e===t[n]}))}function f(){for(var e=arguments.length,t=new Array(e),n=0;n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};a.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),a.forEach(["post","put","patch"],(function(e){l.headers[e]=a.merge(u)})),e.exports=l},34342:function(e){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},33478:function(e){e.exports={version:"0.27.2"}},82862:function(e){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}})),o):o}},74396:function(e){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},83330:function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},74815:function(e,t,n){"use strict";var r=n(5886).Buffer,a=n(58270);e.exports=function(e,t){t=t||new FormData;var n=[];function i(e){return null===e?"":a.isDate(e)?e.toISOString():a.isArrayBuffer(e)||a.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):r.from(e):e}return function e(r,o){if(a.isPlainObject(r)||a.isArray(r)){if(-1!==n.indexOf(r))throw Error("Circular reference detected in "+o);n.push(r),a.forEach(r,(function(n,r){if(!a.isUndefined(n)){var s,c=o?o+"."+r:r;if(n&&!o&&"object"==typeof n)if(a.endsWith(r,"{}"))n=JSON.stringify(n);else if(a.endsWith(r,"[]")&&(s=a.toArray(n)))return void s.forEach((function(e){!a.isUndefined(e)&&t.append(c,i(e))}));e(n,c)}})),n.pop()}else t.append(o,i(r))}(e),t}},10062:function(e,t,n){"use strict";var r=n(33478).version,a=n(63122),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var o={};i.transitional=function(e,t,n){function i(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new a(i(r," has been removed"+(t?" in "+t:"")),a.ERR_DEPRECATED);return t&&!o[r]&&(o[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new a("options must be an object",a.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var c=e[o],u=void 0===c||s(c,o,e);if(!0!==u)throw new a("option "+o+" must be "+u,a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new a("Unknown option "+o,a.ERR_BAD_OPTION)}},validators:i}},58270:function(e,t,n){"use strict";var r,a=n(82862),i=Object.prototype.toString,o=(r=Object.create(null),function(e){var t=i.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function c(e){return Array.isArray(e)}function u(e){return void 0===e}var d=s("ArrayBuffer");function f(e){return null!==e&&"object"==typeof e}function l(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var b=s("Date"),p=s("File"),h=s("Blob"),y=s("FileList");function m(e){return"[object Function]"===i.call(e)}var v=s("URLSearchParams");function g(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var n=0,r=e.length;n0;)o[i=r[a]]||(t[i]=e[i],o[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(u(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:y}},43324:function(e,t,n){"use strict";var r=t;r.bignum=n(96344),r.define=n(41235).define,r.base=n(63173),r.constants=n(49829),r.decoders=n(36004),r.encoders=n(42884)},41235:function(e,t,n){"use strict";var r=n(42884),a=n(36004),i=n(56249);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t=this.name;function n(e){this._initNamed(e,t)}return i(n,e),n.prototype._initNamed=function(t,n){e.call(this,t,n)},new n(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(a[e])),this.decoders[e]},o.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},o.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},8818:function(e,t,n){"use strict";var r=n(56249),a=n(75663).b,i=n(53309).Buffer;function o(e,t){a.call(this,t),i.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return s.isEncoderBuffer(e)||(e=new s(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=i.byteLength(e);else{if(!i.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(o,a),t.C=o,o.isDecoderBuffer=function(e){return e instanceof o||"object"==typeof e&&i.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},o.prototype.save=function(){return{offset:this.offset,reporter:a.prototype.save.call(this)}},o.prototype.restore=function(e){var t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,a.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var n=new o(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=s,s.isEncoderBuffer=function(e){return e instanceof s||"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},s.prototype.join=function(e,t){return e||(e=i.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):i.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},63173:function(e,t,n){"use strict";var r=t;r.Reporter=n(75663).b,r.DecoderBuffer=n(8818).C,r.EncoderBuffer=n(8818).R,r.Node=n(7712)},7712:function(e,t,n){"use strict";var r=n(75663).b,a=n(8818).R,i=n(8818).C,o=n(44713),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function u(e,t,n){var r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=u;var d=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var e=this._baseState,t={};d.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},u.prototype._wrap=function(){var e=this._baseState;c.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},u.prototype._init=function(e){var t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),o.equal(t.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(o(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){u.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(n),this}})),u.prototype.use=function(e){o(e);var t=this._baseState;return o(null===t.use),t.use=e,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(e){var t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},u.prototype.explicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},u.prototype.implicit=function(e){var t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},u.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},u.prototype.key=function(e){var t=this._baseState;return o(null===t.key),t.key=e,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){var t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},u.prototype.contains=function(e){var t=this._baseState;return o(null===t.use),t.contains=e,this},u.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,a=n.default,o=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var c=null;if(null!==n.explicit?c=n.explicit:null!==n.implicit?c=n.implicit:null!==n.tag&&(c=n.tag),null!==c||n.any){if(o=this._peekTag(e,c,n.any),e.isError(o))return o}else{var u=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(u)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){var d=this._decodeTag(e,n.explicit);if(e.isError(d))return d;e=d}var f=e.offset;if(null===n.use&&null===n.choice){var l;n.any&&(l=e.save());var b=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(b))return b;n.any?a=e.raw(l):e=b}if(t&&t.track&&null!==n.tag&&t.track(e.path(),f,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(a=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(a))return a;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var p=new i(a);a=this._getUse(n.contains,e._reporterState.obj)._decode(p,t)}}return n.obj&&o&&(a=e.leaveObject(r)),null===n.key||null===a&&!0!==o?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,a),a},u.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},u.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),o(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},u.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,a=!1;return Object.keys(n.choice).some((function(i){var o=e.save(),s=n.choice[i];try{var c=s._decode(e,t);if(e.isError(c))return!1;r={type:i,value:c},a=!0}catch(t){return e.restore(o),!1}return!0}),this),a?r:e.error("Choice not matched")},u.prototype._createEncoderBuffer=function(e){return new a(e,this.reporter)},u.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var a=this._encodeValue(e,t,n);if(void 0!==a&&!this._skipDefault(a,t,n))return a}},u.prototype._encodeValue=function(e,t,n){var a=this._baseState;if(null===a.parent)return a.children[0]._encode(e,t||new r);var i=null;if(this.reporter=t,a.optional&&void 0===e){if(null===a.default)return;e=a.default}var o=null,s=!1;if(a.any)i=this._createEncoderBuffer(e);else if(a.choice)i=this._encodeChoice(e,t);else if(a.contains)o=this._getUse(a.contains,n)._encode(e,t),s=!0;else if(a.children)o=a.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var a=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),a}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===a.tag||"setof"===a.tag){if(!a.args||1!==a.args.length)return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var c=this.clone();c._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),c))}else null!==a.use?i=this._getUse(a.use,n)._encode(e,t):(o=this._encodePrimitive(a.tag,e),s=!0);if(!a.any&&null===a.choice){var u=null!==a.implicit?a.implicit:a.tag,d=null===a.implicit?"universal":"context";null===u?null===a.use&&t.error("Tag could be omitted only for .use()"):null===a.use&&(i=this._encodeComposite(u,s,d,o))}return null!==a.explicit&&(i=this._encodeComposite(a.explicit,!1,"context",i)),i},u.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},u.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},u.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},u.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},75663:function(e,t,n){"use strict";var r=n(56249);function a(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function i(e,t){this.path=e,this.rethrow(t)}t.b=a,a.prototype.isError=function(e){return e instanceof i},a.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},a.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},a.prototype.enterKey=function(e){return this._reporterState.path.push(e)},a.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},a.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},a.prototype.path=function(){return this._reporterState.path.join("/")},a.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},a.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},a.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof i;if(t=r?e:new i(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},a.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(i,Error),i.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,i),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},16898:function(e,t){"use strict";function n(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n(t.tag)},49829:function(e,t,n){"use strict";var r=t;r._reverse=function(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t},r.der=n(16898)},82232:function(e,t,n){"use strict";var r=n(56249),a=n(96344),i=n(8818).C,o=n(7712),s=n(16898);function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new u,this.tree._init(e.body)}function u(e){o.call(this,"der",e)}function d(e,t){var n=e.readUInt8(t);if(e.isError(n))return n;var r=s.tagClass[n>>6],a=0==(32&n);if(31==(31&n)){var i=n;for(n=0;128==(128&i);){if(i=e.readUInt8(t),e.isError(i))return i;n<<=7,n|=127&i}}else n&=31;return{cls:r,primitive:a,tag:n,tagStr:s.tag[n]}}function f(e,t,n){var r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;var a=127&r;if(a>4)return e.error("length octect is too long");r=0;for(var i=0;i=31?r.error("Multi-octet tag encoding unsupported"):(t||(a|=32),a|=o.tagClassByName[n||"universal"]<<6)}(e,t,n,this.reporter);if(r.length<128){var s=a.alloc(2);return s[0]=i,s[1]=r.length,this._createEncoderBuffer([s,r])}for(var c=1,u=r.length;u>=256;u>>=8)c++;var d=a.alloc(2+c);d[0]=i,d[1]=128|c;for(var f=1+c,l=r.length;l>0;f--,l>>=8)d[f]=255&l;return this._createEncoderBuffer([d,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var n=a.alloc(2*e.length),r=0;r=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}for(var o=0,s=0;s=128;c>>=7)o++}for(var u=a.alloc(o),d=u.length-1,f=e.length-1;f>=0;f--){var l=e[f];for(u[d--]=127&l;(l>>=7)>0;)u[d--]=128|127&l}return this._createEncoderBuffer(u)},c.prototype._encodeTime=function(e,t){var n,r=new Date(e);return"gentime"===t?n=[u(r.getUTCFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[u(r.getUTCFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!a.isBuffer(e)){var n=e.toArray();!e.sign&&128&n[0]&&n.unshift(0),e=a.from(n)}if(a.isBuffer(e)){var r=e.length;0===e.length&&r++;var i=a.alloc(r);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);for(var o=1,s=e;s>=256;s>>=8)o++;for(var c=new Array(o),u=c.length-1;u>=0;u--)c[u]=255&e,e>>=8;return 128&c[0]&&c.unshift(0),this._createEncoderBuffer(a.from(c))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){var r,a=this._baseState;if(null===a.default)return!1;var i=e.join();if(void 0===a.defaultBuffer&&(a.defaultBuffer=this._encodeValue(a.default,t,n).join()),i.length!==a.defaultBuffer.length)return!1;for(r=0;r=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,d=n;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,f=67108863&c,l=Math.min(u,t.length-1),b=Math.max(0,u-e.length+1);b<=l;b++){var p=u-b|0;d+=(o=(a=0|e.words[p])*(i=0|t.words[b])+f)/67108864|0,f=67108863&o}n.words[u]=0|f,c=0|d}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?d[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],b=l[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var h=p.modn(b).toString(e);n=(p=p.idivn(b)).isZero()?h+n:d[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),d=this.clone();if(c){for(s=0;!d.isZero();s++)o=d.andln(255),d.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,b=0|o[1],p=8191&b,h=b>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,I=0|o[5],S=8191&I,E=I>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,N=0|o[8],R=8191&N,D=N>>>13,j=0|o[9],U=8191&j,L=j>>>13,F=0|s[0],Z=8191&F,H=F>>>13,z=0|s[1],Q=8191&z,q=z>>>13,V=0|s[2],J=8191&V,K=V>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,de=0|s[8],fe=8191&de,le=de>>>13,be=0|s[9],pe=8191&be,he=be>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(f,Z))|0)+((8191&(a=(a=Math.imul(f,H))+Math.imul(l,Z)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(p,Z),a=(a=Math.imul(p,H))+Math.imul(h,Z)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(f,Q)|0)|0)+((8191&(a=(a=a+Math.imul(f,q)|0)+Math.imul(l,Q)|0))<<13)|0;u=((i=i+Math.imul(l,q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,Z),a=(a=Math.imul(m,H))+Math.imul(v,Z)|0,i=Math.imul(v,H),r=r+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,q)|0)+Math.imul(h,Q)|0,i=i+Math.imul(h,q)|0;var ve=(u+(r=r+Math.imul(f,J)|0)|0)+((8191&(a=(a=a+Math.imul(f,K)|0)+Math.imul(l,J)|0))<<13)|0;u=((i=i+Math.imul(l,K)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,Z),a=(a=Math.imul(A,H))+Math.imul(w,Z)|0,i=Math.imul(w,H),r=r+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,q)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,a=(a=a+Math.imul(p,K)|0)+Math.imul(h,J)|0,i=i+Math.imul(h,K)|0;var ge=(u+(r=r+Math.imul(f,W)|0)|0)+((8191&(a=(a=a+Math.imul(f,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,Z),a=(a=Math.imul(_,H))+Math.imul(k,Z)|0,i=Math.imul(k,H),r=r+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,q)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,q)|0,r=r+Math.imul(m,J)|0,a=(a=a+Math.imul(m,K)|0)+Math.imul(v,J)|0,i=i+Math.imul(v,K)|0,r=r+Math.imul(p,W)|0,a=(a=a+Math.imul(p,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(f,$)|0)|0)+((8191&(a=(a=a+Math.imul(f,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(S,Z),a=(a=Math.imul(S,H))+Math.imul(E,Z)|0,i=Math.imul(E,H),r=r+Math.imul(_,Q)|0,a=(a=a+Math.imul(_,q)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,q)|0,r=r+Math.imul(A,J)|0,a=(a=a+Math.imul(A,K)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,K)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(p,$)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(a=(a=a+Math.imul(f,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,Z),a=(a=Math.imul(T,H))+Math.imul(O,Z)|0,i=Math.imul(O,H),r=r+Math.imul(S,Q)|0,a=(a=a+Math.imul(S,q)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,q)|0,r=r+Math.imul(_,J)|0,a=(a=a+Math.imul(_,K)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,K)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(p,ne)|0,a=(a=a+Math.imul(p,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(f,ie)|0)|0)+((8191&(a=(a=a+Math.imul(f,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,Z),a=(a=Math.imul(M,H))+Math.imul(B,Z)|0,i=Math.imul(B,H),r=r+Math.imul(T,Q)|0,a=(a=a+Math.imul(T,q)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,q)|0,r=r+Math.imul(S,J)|0,a=(a=a+Math.imul(S,K)|0)+Math.imul(E,J)|0,i=i+Math.imul(E,K)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(p,ie)|0,a=(a=a+Math.imul(p,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(a=(a=a+Math.imul(f,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,Z),a=(a=Math.imul(R,H))+Math.imul(D,Z)|0,i=Math.imul(D,H),r=r+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,q)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,q)|0,r=r+Math.imul(T,J)|0,a=(a=a+Math.imul(T,K)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,K)|0,r=r+Math.imul(S,W)|0,a=(a=a+Math.imul(S,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(p,ce)|0,a=(a=a+Math.imul(p,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(a=(a=a+Math.imul(f,le)|0)+Math.imul(l,fe)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,Z),a=(a=Math.imul(U,H))+Math.imul(L,Z)|0,i=Math.imul(L,H),r=r+Math.imul(R,Q)|0,a=(a=a+Math.imul(R,q)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,q)|0,r=r+Math.imul(M,J)|0,a=(a=a+Math.imul(M,K)|0)+Math.imul(B,J)|0,i=i+Math.imul(B,K)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(S,$)|0,a=(a=a+Math.imul(S,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(p,fe)|0,a=(a=a+Math.imul(p,le)|0)+Math.imul(h,fe)|0,i=i+Math.imul(h,le)|0;var Ie=(u+(r=r+Math.imul(f,pe)|0)|0)+((8191&(a=(a=a+Math.imul(f,he)|0)+Math.imul(l,pe)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,Q),a=(a=Math.imul(U,q))+Math.imul(L,Q)|0,i=Math.imul(L,q),r=r+Math.imul(R,J)|0,a=(a=a+Math.imul(R,K)|0)+Math.imul(D,J)|0,i=i+Math.imul(D,K)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(S,ne)|0,a=(a=a+Math.imul(S,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,fe)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,fe)|0,i=i+Math.imul(v,le)|0;var Se=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(a=(a=a+Math.imul(p,he)|0)+Math.imul(h,pe)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,J),a=(a=Math.imul(U,K))+Math.imul(L,J)|0,i=Math.imul(L,K),r=r+Math.imul(R,W)|0,a=(a=a+Math.imul(R,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(S,ie)|0,a=(a=a+Math.imul(S,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,pe)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,pe)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(R,$)|0,a=(a=a+Math.imul(R,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(S,ce)|0,a=(a=a+Math.imul(S,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,fe)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,pe)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,pe)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,a=(a=a+Math.imul(R,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(S,fe)|0,a=(a=a+Math.imul(S,le)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,pe)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,pe)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(R,ie)|0,a=(a=a+Math.imul(R,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,fe)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,fe)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(S,pe)|0)|0)+((8191&(a=(a=a+Math.imul(S,he)|0)+Math.imul(E,pe)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(R,ce)|0,a=(a=a+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,pe)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,pe)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(R,fe)|0,a=(a=a+Math.imul(R,le)|0)+Math.imul(D,fe)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,pe)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,pe)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,fe),a=(a=Math.imul(U,le))+Math.imul(L,fe)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(R,pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,he)|0)+Math.imul(D,pe)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Ne=(u+(r=Math.imul(U,pe))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,pe)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Ie,c[10]=Se,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Ne,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=b),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?p(this,e,t):r<63?b(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==d||u>=a);u--){var f=0|this.words[u];this.words[u]=d<<26-i|f>>>i,d=f&s}return c&&0!==d&&(c.words[c.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var l=67108864*(0|r.words[a.length+f])+(0|r.words[a.length+f-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var d=n.clone(),f=t.clone();!t.isZero();){for(var l=0,b=1;0==(t.words[0]&b)&&l<26;++l,b<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(d),o.isub(f)),a.iushrn(1),o.iushrn(1);for(var p=0,h=1;0==(n.words[0]&h)&&p<26;++p,h<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(d),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,d=1;0==(t.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var f=0,l=1;0==(n.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);0!==this.pow(d,u).cmp(c);)d.redIAdd(c);for(var f=this.pow(d,a),l=this.pow(e,a.addn(1).iushrn(1)),b=this.pow(e,a),p=o;0!==b.cmp(s);){for(var h=b,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],d=c-1;d>=0;d--){var f=u>>d&1;a!==n[0]&&(a=this.sqr(a)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===d)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},86694:function(e,t,n){"use strict";var r=n(32375);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var i,o,s=n(2057).codes,c=s.ERR_AMBIGUOUS_ARGUMENT,u=s.ERR_INVALID_ARG_TYPE,d=s.ERR_INVALID_ARG_VALUE,f=s.ERR_INVALID_RETURN_VALUE,l=s.ERR_MISSING_ARGS,b=n(19464),p=n(13457).inspect,h=n(13457).types,y=h.isPromise,m=h.isRegExp,v=Object.assign?Object.assign:n(9479).assign,g=Object.is?Object.is:n(3193);function A(){var e=n(28085);i=e.isDeepEqual,o=e.isDeepStrictEqual}new Map;var w=!1,x=e.exports=S,_={};function k(e){if(e.message instanceof Error)throw e.message;throw new b(e)}function I(e,t,n,r){if(!n){var a=!1;if(0===t)a=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var i=new b({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw i.generatedMessage=a,i}}function S(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),a=1;a1?n-1:0),a=1;a1?n-1:0),a=1;a1?n-1:0),a=1;ae.length)&&(n=e.length),e.substring(n-t.length,n)===t}var y="",m="",v="",g="",A={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function w(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function x(e){return b(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}var _=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==l(e)||null===e)throw new p("options","Object",e);var a=e.message,i=e.operator,c=e.stackStartFn,u=e.actual,d=e.expected,b=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=a)n=o(this,f(t).call(this,String(a)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(y="",m="",g="",v=""):(y="",m="",g="",v="")),"object"===l(u)&&null!==u&&"object"===l(d)&&null!==d&&"stack"in u&&u instanceof Error&&"stack"in d&&d instanceof Error&&(u=w(u),d=w(d)),"deepStrictEqual"===i||"strictEqual"===i)n=o(this,f(t).call(this,function(e,t,n){var a="",i="",o=0,s="",c=!1,u=x(e),d=u.split("\n"),f=x(t).split("\n"),b=0,p="";if("strictEqual"===n&&"object"===l(e)&&"object"===l(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===d.length&&1===f.length&&d[0]!==f[0]){var w=d[0].length+f[0].length;if(w<=10){if(!("object"===l(e)&&null!==e||"object"===l(t)&&null!==t||0===e&&0===t))return"".concat(A[n],"\n\n")+"".concat(d[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n&&w<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;d[0][b]===f[0][b];)b++;b>2&&(p="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",b),"^"),b=0)}}for(var _=d[d.length-1],k=f[f.length-1];_===k&&(b++<2?s="\n ".concat(_).concat(s):a=_,d.pop(),f.pop(),0!==d.length&&0!==f.length);)_=d[d.length-1],k=f[f.length-1];var I=Math.max(d.length,f.length);if(0===I){var S=u.split("\n");if(S.length>30)for(S[26]="".concat(y,"...").concat(g);S.length>27;)S.pop();return"".concat(A.notIdentical,"\n\n").concat(S.join("\n"),"\n")}b>3&&(s="\n".concat(y,"...").concat(g).concat(s),c=!0),""!==a&&(s="\n ".concat(a).concat(s),a="");var E=0,C=A[n]+"\n".concat(m,"+ actual").concat(g," ").concat(v,"- expected").concat(g),T=" ".concat(y,"...").concat(g," Lines skipped");for(b=0;b1&&b>2&&(O>4?(i+="\n".concat(y,"...").concat(g),c=!0):O>3&&(i+="\n ".concat(f[b-2]),E++),i+="\n ".concat(f[b-1]),E++),o=b,a+="\n".concat(v,"-").concat(g," ").concat(f[b]),E++;else if(f.length1&&b>2&&(O>4?(i+="\n".concat(y,"...").concat(g),c=!0):O>3&&(i+="\n ".concat(d[b-2]),E++),i+="\n ".concat(d[b-1]),E++),o=b,i+="\n".concat(m,"+").concat(g," ").concat(d[b]),E++;else{var P=f[b],M=d[b],B=M!==P&&(!h(M,",")||M.slice(0,-1)!==P);B&&h(P,",")&&P.slice(0,-1)===M&&(B=!1,M+=","),B?(O>1&&b>2&&(O>4?(i+="\n".concat(y,"...").concat(g),c=!0):O>3&&(i+="\n ".concat(d[b-2]),E++),i+="\n ".concat(d[b-1]),E++),o=b,i+="\n".concat(m,"+").concat(g," ").concat(M),a+="\n".concat(v,"-").concat(g," ").concat(P),E+=2):(i+=a,a="",1!==O&&0!==b||(i+="\n ".concat(M),E++))}if(E>20&&b30)for(k[26]="".concat(y,"...").concat(g);k.length>27;)k.pop();n=1===k.length?o(this,f(t).call(this,"".concat(_," ").concat(k[0]))):o(this,f(t).call(this,"".concat(_,"\n\n").concat(k.join("\n"),"\n")))}else{var I=x(u),S="",E=A[i];"notDeepEqual"===i||"notEqual"===i?(I="".concat(A[i],"\n\n").concat(I)).length>1024&&(I="".concat(I.slice(0,1021),"...")):(S="".concat(x(d)),I.length>512&&(I="".concat(I.slice(0,509),"...")),S.length>512&&(S="".concat(S.slice(0,509),"...")),"deepEqual"===i||"equal"===i?I="".concat(E,"\n\n").concat(I,"\n\nshould equal\n\n"):S=" ".concat(i," ").concat(S)),n=o(this,f(t).call(this,"".concat(I).concat(S)))}return Error.stackTraceLimit=b,n.generatedMessage=!a,Object.defineProperty(s(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=u,n.expected=d,n.operator=i,Error.captureStackTrace&&Error.captureStackTrace(s(n),c),n.stack,n.name="AssertionError",o(n)}var n,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:b.custom,value:function(e,t){return b(this,function(e){for(var t=1;t2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(e,t,a){var i,s,c,u,f;if(void 0===o&&(o=n(86694)),o("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(s="not ",t.substr(0,4)===s)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-9,n)===t}(e," argument"))c="The ".concat(e," ").concat(i," ").concat(d(t,"type"));else{var l=("number"!=typeof f&&(f=0),f+1>(u=e).length||-1===u.indexOf(".",f)?"argument":"property");c='The "'.concat(e,'" ').concat(l," ").concat(i," ").concat(d(t,"type"))}return c+". Received type ".concat(r(a))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===s&&(s=n(13457));var a=s.inspect(t);return a.length>128&&(a="".concat(a.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(a)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var a;return a=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(a,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r0,"At least one arg needs to be specified");var a="The ",i=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),i){case 1:a+="".concat(t[0]," argument");break;case 2:a+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:a+=t.slice(0,i-1).join(", "),a+=", and ".concat(t[i-1]," arguments")}return"".concat(a," must be specified")}),TypeError),e.exports.codes=c},28085:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}var i=void 0!==/a/g.flags,o=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},c=Object.is?Object.is:n(3193),u=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},d=Number.isNaN?Number.isNaN:n(56237);function f(e){return e.call.bind(e)}var l=f(Object.prototype.hasOwnProperty),b=f(Object.prototype.propertyIsEnumerable),p=f(Object.prototype.toString),h=n(13457).types,y=h.isAnyArrayBuffer,m=h.isArrayBufferView,v=h.isDate,g=h.isMap,A=h.isRegExp,w=h.isSet,x=h.isNativeError,_=h.isBoxedPrimitive,k=h.isNumberObject,I=h.isStringObject,S=h.isBooleanObject,E=h.isBigIntObject,C=h.isSymbolObject,T=h.isFloat32Array,O=h.isFloat64Array;function P(e){if(0===e.length||e.length>10)return!0;for(var t=0;t57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function M(e){return Object.keys(e).filter(P).concat(u(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function B(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,a=0,i=Math.min(n,r);a=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,d=new Uint8Array(o);e[n];){var f=t[e.charCodeAt(n)];if(255===f)return;for(var l=0,b=o-1;(0!==f||l>>0,d[b]=f%256>>>0,f=f/256>>>0;if(0!==f)throw new Error("Non-zero carry");i=l,n++}for(var p=o-i;p!==o&&0===d[p];)p++;var h=r.allocUnsafe(a+(o-p));h.fill(0,0,a);for(var y=a;p!==o;)h[y++]=d[p++];return h}return{encode:function(t){if((Array.isArray(t)||t instanceof Uint8Array)&&(t=r.from(t)),!r.isBuffer(t))throw new TypeError("Expected Buffer");if(0===t.length)return"";for(var n=0,a=0,i=0,o=t.length;i!==o&&0===t[i];)i++,n++;for(var u=(o-i)*d+1>>>0,f=new Uint8Array(u);i!==o;){for(var l=t[i],b=0,p=u-1;(0!==l||b>>0,f[p]=l%s>>>0,l=l/s>>>0;if(0!==l)throw new Error("Non-zero carry");a=b,i++}for(var h=u-a;h!==u&&0===f[h];)h++;for(var y=c.repeat(n);h0?o-4:o;for(n=0;n>16&255,u[d++]=t>>8&255,u[d++]=255&t;return 2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[d++]=255&t),1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[d++]=t>>8&255,u[d++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,s=0,u=r-a;su?u:s+o));return 1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],a="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=i[o],r[i.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,r){for(var a,i,o=[],s=t;s>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},16051:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bech32m=t.bech32=void 0;for(var n="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},a=0;a<32;a++){var i=n.charAt(a);r[i]=a}function o(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function s(e){for(var t=1,n=0;n126)return"Invalid prefix ("+e+")";t=o(t)^r>>5}t=o(t);for(var a=0;a=n;)i-=n,s.push(a>>i&o);if(r)i>0&&s.push(a<=t)return"Excess padding";if(a<n)return"Exceeds length limit";var a=e.toLowerCase(),i=e.toUpperCase();if(e!==a&&e!==i)return"Mixed-case string "+e;var c=(e=a).lastIndexOf("1");if(-1===c)return"No separator character for "+e;if(0===c)return"Missing prefix for "+e;var u=e.slice(0,c),d=e.slice(c+1);if(d.length<6)return"Data too short";var f=s(u);if("string"==typeof f)return f;for(var l=[],b=0;b=d.length||l.push(h)}return f!==t?"Invalid checksum for "+e:{prefix:u,words:l}}return t="bech32"===e?1:734539939,{decodeUnsafe:function(e,t){var n=a(e,t);if("object"==typeof n)return n},decode:function(e,t){var n=a(e,t);if("object"==typeof n)return n;throw new Error(n)},encode:function(e,r,a){if(a=a||90,e.length+7+r.length>a)throw new TypeError("Exceeds length limit");var i=s(e=e.toLowerCase());if("string"==typeof i)throw new Error(i);for(var c=e+"1",u=0;u>5!=0)throw new Error("Non 5-bit word");i=o(i)^d,c+=n.charAt(d)}for(var f=0;f<6;++f)i=o(i);i^=t;for(var l=0;l<6;++l)c+=n.charAt(i>>5*(5-l)&31);return c},toWords:u,fromWordsUnsafe:d,fromWords:f}}t.bech32=l("bech32"),t.bech32m=l("bech32m")},44334:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.toBigIntLE=function(e){var t=r.from(e);t.reverse();var n=t.toString("hex");return 0===n.length?BigInt(0):BigInt("0x".concat(n))},t.toBigIntBE=function(e){var t=e.toString("hex");return 0===t.length?BigInt(0):BigInt("0x".concat(t))},t.toBufferLE=function(e,t){var n=e.toString(16),a=r.from(n.padStart(2*t,"0").slice(0,2*t),"hex");return a.reverse(),a},t.toBufferBE=function(e,t){var n=e.toString(16);return r.from(n.padStart(2*t,"0").slice(0,2*t),"hex")}},17162:function(e,t,n){var r;!function(a){"use strict";var i,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,c=Math.floor,u="[BigNumber Error] ",d=u+"Number primitive has more than 15 significant digits: ",f=1e14,l=14,b=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],h=1e7,y=1e9;function m(e){var t=0|e;return e>0||e===t?t:t-1}function v(e){for(var t,n,r=1,a=e.length,i=e[0]+"";ru^n?1:-1;for(s=(c=a.length)<(u=i.length)?c:u,o=0;oi[o]^n?1:-1;return c==u?0:c>u^n?1:-1}function A(e,t,n,r){if(en||e!==c(e))throw Error(u+(r||"Argument")+("number"==typeof e?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function w(e){var t=e.c.length-1;return m(e.e/l)==t&&e.c[t]%2!=0}function x(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function _(e,t,n){var r,a;if(t<0){for(a=n+".";++t;a+=n);e=a+e}else if(++t>(r=e.length)){for(a=n,t-=r;--t;a+=n);e+=a}else tj?m.c=m.e=null:e.e=10;f/=10,u++);return void(u>j?m.c=m.e=null:(m.e=u,m.c=[e]))}y=String(e)}else{if(!o.test(y=String(e)))return a(m,y,p);m.s=45==y.charCodeAt(0)?(y=y.slice(1),-1):1}(u=y.indexOf("."))>-1&&(y=y.replace(".","")),(f=y.search(/e/i))>0?(u<0&&(u=f),u+=+y.slice(f+1),y=y.substring(0,f)):u<0&&(u=y.length)}else{if(A(t,2,H.length,"Base"),10==t&&z)return K(m=new Q(e),M+m.e+1,B);if(y=String(e),p="number"==typeof e){if(0*e!=0)return a(m,y,p,t);if(m.s=1/e<0?(y=y.slice(1),-1):1,Q.DEBUG&&y.replace(/^0\.0*|\./,"").length>15)throw Error(d+e)}else m.s=45===y.charCodeAt(0)?(y=y.slice(1),-1):1;for(n=H.slice(0,t),u=f=0,h=y.length;fu){u=h;continue}}else if(!s&&(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase()))){s=!0,f=-1,u=0;continue}return a(m,String(e),p,t)}p=!1,(u=(y=r(y,t,10,m.s)).indexOf("."))>-1?y=y.replace(".",""):u=y.length}for(f=0;48===y.charCodeAt(f);f++);for(h=y.length;48===y.charCodeAt(--h););if(y=y.slice(f,++h)){if(h-=f,p&&Q.DEBUG&&h>15&&(e>b||e!==c(e)))throw Error(d+m.s*e);if((u=u-f-1)>j)m.c=m.e=null;else if(u=R)?x(c,o):_(c,o,"0");else if(i=(e=K(new Q(e),t,n)).e,s=(c=v(e.c)).length,1==r||2==r&&(t<=i||i<=N)){for(;ss){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=i-s)>0)for(i+1==s&&(c+=".");t--;c+="0");return e.s<0&&a?"-"+c:c}function V(e,t){for(var n,r=1,a=new Q(e[0]);r=10;a/=10,r++);return(n=r+n*l-1)>j?e.c=e.e=null:n=10;u/=10,a++);if((i=t-a)<0)i+=l,o=t,h=(d=y[b=0])/m[a-o-1]%10|0;else if((b=s((i+1)/l))>=y.length){if(!r)break e;for(;y.length<=b;y.push(0));d=h=0,a=1,o=(i%=l)-l+1}else{for(d=u=y[b],a=1;u>=10;u/=10,a++);h=(o=(i%=l)-l+a)<0?0:d/m[a-o-1]%10|0}if(r=r||t<0||null!=y[b+1]||(o<0?d:d%m[a-o-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(i>0?o>0?d/m[a-o]:0:y[b-1])%10&1||n==(e.s<0?8:7)),t<1||!y[0])return y.length=0,r?(t-=e.e+1,y[0]=m[(l-t%l)%l],e.e=-t||0):y[0]=e.e=0,e;if(0==i?(y.length=b,u=1,b--):(y.length=b+1,u=m[l-i],y[b]=o>0?c(d/m[a-o]%m[o])*u:0),r)for(;;){if(0==b){for(i=1,o=y[0];o>=10;o/=10,i++);for(o=y[0]+=u,u=1;o>=10;o/=10,u++);i!=u&&(e.e++,y[0]==f&&(y[0]=1));break}if(y[b]+=u,y[b]!=f)break;y[b--]=0,u=1}for(i=y.length;0===y[--i];y.pop());}e.e>j?e.c=e.e=null:e.e=R?x(t,n):_(t,n,"0"),e.s<0?"-"+t:t)}return Q.clone=e,Q.ROUND_UP=0,Q.ROUND_DOWN=1,Q.ROUND_CEIL=2,Q.ROUND_FLOOR=3,Q.ROUND_HALF_UP=4,Q.ROUND_HALF_DOWN=5,Q.ROUND_HALF_EVEN=6,Q.ROUND_HALF_CEIL=7,Q.ROUND_HALF_FLOOR=8,Q.EUCLID=9,Q.config=Q.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(u+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(A(n=e[t],0,y,t),M=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(A(n=e[t],0,8,t),B=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(A(n[0],-y,0,t),A(n[1],0,y,t),N=n[0],R=n[1]):(A(n,-y,y,t),N=-(R=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)A(n[0],-y,-1,t),A(n[1],1,y,t),D=n[0],j=n[1];else{if(A(n,-y,y,t),!n)throw Error(u+t+" cannot be zero: "+n);D=-(j=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(u+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw U=!n,Error(u+"crypto unavailable");U=n}else U=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(A(n=e[t],0,9,t),L=n),e.hasOwnProperty(t="POW_PRECISION")&&(A(n=e[t],0,y,t),F=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(u+t+" not an object: "+n);Z=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(u+t+" invalid: "+n);z="0123456789"==n.slice(0,10),H=n}}return{DECIMAL_PLACES:M,ROUNDING_MODE:B,EXPONENTIAL_AT:[N,R],RANGE:[D,j],CRYPTO:U,MODULO_MODE:L,POW_PRECISION:F,FORMAT:Z,ALPHABET:H}},Q.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!Q.DEBUG)return!0;var t,n,r=e.c,a=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===i||-1===i)&&a>=-y&&a<=y&&a===c(a)){if(0===r[0]){if(0===a&&1===r.length)return!0;break e}if((t=(a+1)%l)<1&&(t+=l),String(r[0]).length==t){for(t=0;t=f||n!==c(n))break e;if(0!==n)return!0}}}else if(null===r&&null===a&&(null===i||1===i||-1===i))return!0;throw Error(u+"Invalid BigNumber: "+e)},Q.maximum=Q.max=function(){return V(arguments,O.lt)},Q.minimum=Q.min=function(){return V(arguments,O.gt)},Q.random=(i=9007199254740992,k=Math.random()*i&2097151?function(){return c(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,a,i,o=0,d=[],f=new Q(P);if(null==e?e=M:A(e,0,y),a=s(e/l),U)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));o>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[o]=n[0],t[o+1]=n[1]):(d.push(i%1e14),o+=2);o=a/2}else{if(!crypto.randomBytes)throw U=!1,Error(u+"crypto unavailable");for(t=crypto.randomBytes(a*=7);o=9e15?crypto.randomBytes(7).copy(t,o):(d.push(i%1e14),o+=7);o=a/7}if(!U)for(;o=10;i/=10,o++);on-1&&(null==o[a+1]&&(o[a+1]=0),o[a+1]+=o[a]/n|0,o[a]%=n)}return o.reverse()}return function(r,a,i,o,s){var c,u,d,f,l,b,p,h,y=r.indexOf("."),m=M,g=B;for(y>=0&&(f=F,F=0,r=r.replace(".",""),b=(h=new Q(a)).pow(r.length-y),F=f,h.c=t(_(v(b.c),b.e,"0"),10,i,e),h.e=h.c.length),d=f=(p=t(r,a,i,s?(c=H,e):(c=e,H))).length;0==p[--f];p.pop());if(!p[0])return c.charAt(0);if(y<0?--d:(b.c=p,b.e=d,b.s=o,p=(b=n(b,h,m,g,i)).c,l=b.r,d=b.e),y=p[u=d+m+1],f=i/2,l=l||u<0||null!=p[u+1],l=g<4?(null!=y||l)&&(0==g||g==(b.s<0?3:2)):y>f||y==f&&(4==g||l||6==g&&1&p[u-1]||g==(b.s<0?8:7)),u<1||!p[0])r=l?_(c.charAt(1),-m,c.charAt(0)):c.charAt(0);else{if(p.length=u,l)for(--i;++p[--u]>i;)p[u]=0,u||(++d,p=[1].concat(p));for(f=p.length;!p[--f];);for(y=0,r="";y<=f;r+=c.charAt(p[y++]));r=_(r,d,c.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,a,i,o,s=0,c=e.length,u=t%h,d=t/h|0;for(e=e.slice();c--;)s=((a=u*(i=e[c]%h)+(r=d*i+(o=e[c]/h|0)*u)%h*h+s)/n|0)+(r/h|0)+d*o,e[c]=a%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var a,i;if(n!=r)i=n>r?1:-1;else for(a=i=0;at[a]?1:-1;break}return i}function n(e,t,n,r){for(var a=0;n--;)e[n]-=a,a=e[n]1;e.splice(0,1));}return function(r,a,i,o,s){var u,d,b,p,h,y,v,g,A,w,x,_,k,I,S,E,C,T=r.s==a.s?1:-1,O=r.c,P=a.c;if(!(O&&O[0]&&P&&P[0]))return new Q(r.s&&a.s&&(O?!P||O[0]!=P[0]:P)?O&&0==O[0]||!P?0*T:T/0:NaN);for(A=(g=new Q(T)).c=[],T=i+(d=r.e-a.e)+1,s||(s=f,d=m(r.e/l)-m(a.e/l),T=T/l|0),b=0;P[b]==(O[b]||0);b++);if(P[b]>(O[b]||0)&&d--,T<0)A.push(1),p=!0;else{for(I=O.length,E=P.length,b=0,T+=2,(h=c(s/(P[0]+1)))>1&&(P=e(P,h,s),O=e(O,h,s),E=P.length,I=O.length),k=E,x=(w=O.slice(0,E)).length;x=s/2&&S++;do{if(h=0,(u=t(P,w,E,x))<0){if(_=w[0],E!=x&&(_=_*s+(w[1]||0)),(h=c(_/S))>1)for(h>=s&&(h=s-1),v=(y=e(P,h,s)).length,x=w.length;1==t(y,w,v,x);)h--,n(y,E=10;T/=10,b++);K(g,i+(g.e=b+d*l-1)+1,o,p)}else g.e=d,g.r=+p;return g}}(),I=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,E=/^\.([^.]+)$/,C=/^-?(Infinity|NaN)$/,T=/^\s*\+(?=[\w.])|^\s+|\s+$/g,a=function(e,t,n,r){var a,i=n?t:t.replace(T,"");if(C.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!n&&(i=i.replace(I,(function(e,t,n){return a="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=a?e:t})),r&&(a=r,i=i.replace(S,"$1").replace(E,"0.$1")),t!=i))return new Q(i,a);if(Q.DEBUG)throw Error(u+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},O.absoluteValue=O.abs=function(){var e=new Q(this);return e.s<0&&(e.s=1),e},O.comparedTo=function(e,t){return g(this,new Q(e,t))},O.decimalPlaces=O.dp=function(e,t){var n,r,a,i=this;if(null!=e)return A(e,0,y),null==t?t=B:A(t,0,8),K(new Q(i),e+i.e+1,t);if(!(n=i.c))return null;if(r=((a=n.length-1)-m(this.e/l))*l,a=n[a])for(;a%10==0;a/=10,r--);return r<0&&(r=0),r},O.dividedBy=O.div=function(e,t){return n(this,new Q(e,t),M,B)},O.dividedToIntegerBy=O.idiv=function(e,t){return n(this,new Q(e,t),0,1)},O.exponentiatedBy=O.pow=function(e,t){var n,r,a,i,o,d,f,b,p=this;if((e=new Q(e)).c&&!e.isInteger())throw Error(u+"Exponent not an integer: "+G(e));if(null!=t&&(t=new Q(t)),o=e.e>14,!p.c||!p.c[0]||1==p.c[0]&&!p.e&&1==p.c.length||!e.c||!e.c[0])return b=new Q(Math.pow(+G(p),o?e.s*(2-w(e)):+G(e))),t?b.mod(t):b;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new Q(NaN);(r=!d&&p.isInteger()&&t.isInteger())&&(p=p.mod(t))}else{if(e.e>9&&(p.e>0||p.e<-1||(0==p.e?p.c[0]>1||o&&p.c[1]>=24e7:p.c[0]<8e13||o&&p.c[0]<=9999975e7)))return i=p.s<0&&w(e)?-0:0,p.e>-1&&(i=1/i),new Q(d?1/i:i);F&&(i=s(F/l+2))}for(o?(n=new Q(.5),d&&(e.s=1),f=w(e)):f=(a=Math.abs(+G(e)))%2,b=new Q(P);;){if(f){if(!(b=b.times(p)).c)break;i?b.c.length>i&&(b.c.length=i):r&&(b=b.mod(t))}if(a){if(0===(a=c(a/2)))break;f=a%2}else if(K(e=e.times(n),e.e+1,1),e.e>14)f=w(e);else{if(0==(a=+G(e)))break;f=a%2}p=p.times(p),i?p.c&&p.c.length>i&&(p.c.length=i):r&&(p=p.mod(t))}return r?b:(d&&(b=P.div(b)),t?b.mod(t):i?K(b,F,B,void 0):b)},O.integerValue=function(e){var t=new Q(this);return null==e?e=B:A(e,0,8),K(t,t.e+1,e)},O.isEqualTo=O.eq=function(e,t){return 0===g(this,new Q(e,t))},O.isFinite=function(){return!!this.c},O.isGreaterThan=O.gt=function(e,t){return g(this,new Q(e,t))>0},O.isGreaterThanOrEqualTo=O.gte=function(e,t){return 1===(t=g(this,new Q(e,t)))||0===t},O.isInteger=function(){return!!this.c&&m(this.e/l)>this.c.length-2},O.isLessThan=O.lt=function(e,t){return g(this,new Q(e,t))<0},O.isLessThanOrEqualTo=O.lte=function(e,t){return-1===(t=g(this,new Q(e,t)))||0===t},O.isNaN=function(){return!this.s},O.isNegative=function(){return this.s<0},O.isPositive=function(){return this.s>0},O.isZero=function(){return!!this.c&&0==this.c[0]},O.minus=function(e,t){var n,r,a,i,o=this,s=o.s;if(t=(e=new Q(e,t)).s,!s||!t)return new Q(NaN);if(s!=t)return e.s=-t,o.plus(e);var c=o.e/l,u=e.e/l,d=o.c,b=e.c;if(!c||!u){if(!d||!b)return d?(e.s=-t,e):new Q(b?o:NaN);if(!d[0]||!b[0])return b[0]?(e.s=-t,e):new Q(d[0]?o:3==B?-0:0)}if(c=m(c),u=m(u),d=d.slice(),s=c-u){for((i=s<0)?(s=-s,a=d):(u=c,a=b),a.reverse(),t=s;t--;a.push(0));a.reverse()}else for(r=(i=(s=d.length)<(t=b.length))?s:t,s=t=0;t0)for(;t--;d[n++]=0);for(t=f-1;r>s;){if(d[--r]=0;){for(n=0,p=_[a]%A,y=_[a]/A|0,i=a+(o=c);i>a;)n=((u=p*(u=x[--o]%A)+(s=y*u+(d=x[o]/A|0)*p)%A*A+v[i]+n)/g|0)+(s/A|0)+y*d,v[i--]=u%g;v[i]=n}return n?++r:v.splice(0,1),J(e,v,r)},O.negated=function(){var e=new Q(this);return e.s=-e.s||null,e},O.plus=function(e,t){var n,r=this,a=r.s;if(t=(e=new Q(e,t)).s,!a||!t)return new Q(NaN);if(a!=t)return e.s=-t,r.minus(e);var i=r.e/l,o=e.e/l,s=r.c,c=e.c;if(!i||!o){if(!s||!c)return new Q(a/0);if(!s[0]||!c[0])return c[0]?e:new Q(s[0]?r:0*a)}if(i=m(i),o=m(o),s=s.slice(),a=i-o){for(a>0?(o=i,n=c):(a=-a,n=s),n.reverse();a--;n.push(0));n.reverse()}for((a=s.length)-(t=c.length)<0&&(n=c,c=s,s=n,t=a),a=0;t;)a=(s[--t]=s[t]+c[t]+a)/f|0,s[t]=f===s[t]?0:s[t]%f;return a&&(s=[a].concat(s),++o),J(e,s,o)},O.precision=O.sd=function(e,t){var n,r,a,i=this;if(null!=e&&e!==!!e)return A(e,1,y),null==t?t=B:A(t,0,8),K(new Q(i),e,t);if(!(n=i.c))return null;if(r=(a=n.length-1)*l+1,a=n[a]){for(;a%10==0;a/=10,r--);for(a=n[0];a>=10;a/=10,r++);}return e&&i.e+1>r&&(r=i.e+1),r},O.shiftedBy=function(e){return A(e,-9007199254740991,b),this.times("1e"+e)},O.squareRoot=O.sqrt=function(){var e,t,r,a,i,o=this,s=o.c,c=o.s,u=o.e,d=M+4,f=new Q("0.5");if(1!==c||!s||!s[0])return new Q(!c||c<0&&(!s||s[0])?NaN:s?o:1/0);if(0==(c=Math.sqrt(+G(o)))||c==1/0?(((t=v(s)).length+u)%2==0&&(t+="0"),c=Math.sqrt(+t),u=m((u+1)/2)-(u<0||u%2),r=new Q(t=c==1/0?"5e"+u:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+u)):r=new Q(c+""),r.c[0])for((c=(u=r.e)+d)<3&&(c=0);;)if(i=r,r=f.times(i.plus(n(o,i,d,1))),v(i.c).slice(0,c)===(t=v(r.c)).slice(0,c)){if(r.e0&&h>0){for(i=h%s||s,f=p.substr(0,i);i0&&(f+=d+p.slice(i)),b&&(f="-"+f)}r=l?f+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?l.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):l):f}return(n.prefix||"")+r+(n.suffix||"")},O.toFraction=function(e){var t,r,a,i,o,s,c,d,f,b,h,y,m=this,g=m.c;if(null!=e&&(!(c=new Q(e)).isInteger()&&(c.c||1!==c.s)||c.lt(P)))throw Error(u+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+G(c));if(!g)return new Q(m);for(t=new Q(P),f=r=new Q(P),a=d=new Q(P),y=v(g),o=t.e=y.length-m.e-1,t.c[0]=p[(s=o%l)<0?l+s:s],e=!e||c.comparedTo(t)>0?o>0?t:f:c,s=j,j=1/0,c=new Q(y),d.c[0]=0;b=n(c,t,0,1),1!=(i=r.plus(b.times(a))).comparedTo(e);)r=a,a=i,f=d.plus(b.times(i=f)),d=i,t=c.minus(b.times(i=t)),c=i;return i=n(e.minus(r),a,0,1),d=d.plus(i.times(f)),r=r.plus(i.times(a)),d.s=f.s=m.s,h=n(f,a,o*=2,B).minus(m).abs().comparedTo(n(d,r,o,B).minus(m).abs())<1?[f,a]:[d,r],j=s,h},O.toNumber=function(){return+G(this)},O.toPrecision=function(e,t){return null!=e&&A(e,1,y),q(this,e,t,2)},O.toString=function(e){var t,n=this,a=n.s,i=n.e;return null===i?a?(t="Infinity",a<0&&(t="-"+t)):t="NaN":(null==e?t=i<=N||i>=R?x(v(n.c),i):_(v(n.c),i,"0"):10===e&&z?t=_(v((n=K(new Q(n),M+i+1,B)).c),n.e,"0"):(A(e,2,H.length,"Base"),t=r(_(v(n.c),i,"0"),10,e,a,!0)),a<0&&n.c[0]&&(t="-"+t)),t},O.valueOf=O.toJSON=function(){return G(this)},O._isBigNumber=!0,null!=t&&Q.set(t),Q}(),i.default=i.BigNumber=i,void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r)}()},67731:function(e,t,n){"use strict";var r=n(15771).default,a=n(69453).default,i=n(34671).default,o=n(68387).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var s=function(){function e(t,n){i(this,e),this.code="",this.scopes=[["vars"]],this.bitFields=[],this.tmpVariableCount=0,this.references=new Map,this.imports=[],this.reverseImports=new Map,this.useContextVariables=!1,this.importPath=t,this.useContextVariables=n}return o(e,[{key:"generateVariable",value:function(e){var t=a(this.scopes[this.scopes.length-1]);return e&&t.push(e),t.join(".")}},{key:"generateOption",value:function(e){switch(typeof e){case"number":return e.toString();case"string":return this.generateVariable(e);case"function":return"".concat(this.addImport(e),".call(").concat(this.generateVariable(),", vars)")}}},{key:"generateError",value:function(e){this.pushCode("throw new Error(".concat(e,");"))}},{key:"generateTmpVariable",value:function(){return"$tmp"+this.tmpVariableCount++}},{key:"pushCode",value:function(e){this.code+=e+"\n"}},{key:"pushPath",value:function(e){e&&this.scopes[this.scopes.length-1].push(e)}},{key:"popPath",value:function(e){e&&this.scopes[this.scopes.length-1].pop()}},{key:"pushScope",value:function(e){this.scopes.push([e])}},{key:"popScope",value:function(){this.scopes.pop()}},{key:"addImport",value:function(e){if(!this.importPath)return"(".concat(e,")");var t=this.reverseImports.get(e);return t||(t=this.imports.push(e)-1,this.reverseImports.set(e,t)),"".concat(this.importPath,"[").concat(t,"]")}},{key:"addReference",value:function(e){this.references.has(e)||this.references.set(e,{resolved:!1,requested:!1})}},{key:"markResolved",value:function(e){var t=this.references.get(e);t&&(t.resolved=!0)}},{key:"markRequested",value:function(e){var t=this;e.forEach((function(e){var n=t.references.get(e);n&&(n.requested=!0)}))}},{key:"getUnresolvedReferences",value:function(){return Array.from(this.references).filter((function(e){var t=r(e,2),n=(t[0],t[1]);return!n.resolved&&!n.requested})).map((function(e){var t=r(e,2),n=t[0];return t[1],n}))}}]),e}(),c=new Map,u="___parser_",d={uint8:1,uint16le:2,uint16be:2,uint32le:4,uint32be:4,int8:1,int16le:2,int16be:2,int32le:4,int32be:4,int64be:8,int64le:8,uint64be:8,uint64le:8,floatle:4,floatbe:4,doublele:8,doublebe:8},f={uint8:"Uint8",uint16le:"Uint16",uint16be:"Uint16",uint32le:"Uint32",uint32be:"Uint32",int8:"Int8",int16le:"Int16",int16be:"Int16",int32le:"Int32",int32be:"Int32",int64be:"BigInt64",int64le:"BigInt64",uint64be:"BigUint64",uint64le:"BigUint64",floatle:"Float32",floatbe:"Float32",doublele:"Float64",doublebe:"Float64"},l={uint8:!1,uint16le:!0,uint16be:!1,uint32le:!0,uint32be:!1,int8:!1,int16le:!0,int16be:!1,int32le:!0,int32be:!1,int64be:!1,int64le:!0,uint64be:!1,uint64le:!0,floatle:!0,floatbe:!1,doublele:!0,doublebe:!1},b=function(){function e(){i(this,e),this.varName="",this.type="",this.options={},this.endian="be",this.useContextVariables=!1}return o(e,[{key:"primitiveGenerateN",value:function(e,t){var n=f[e],r=l[e];t.pushCode("".concat(t.generateVariable(this.varName)," = dataView.get").concat(n,"(offset, ").concat(r,");")),t.pushCode("offset += ".concat(d[e],";"))}},{key:"primitiveN",value:function(e,t,n){return this.setNextParser(e,t,n)}},{key:"useThisEndian",value:function(e){return e+this.endian.toLowerCase()}},{key:"uint8",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint8",e,t)}},{key:"uint16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("uint16"),e,t)}},{key:"uint16le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint16le",e,t)}},{key:"uint16be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint16be",e,t)}},{key:"uint32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("uint32"),e,t)}},{key:"uint32le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint32le",e,t)}},{key:"uint32be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("uint32be",e,t)}},{key:"int8",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int8",e,t)}},{key:"int16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("int16"),e,t)}},{key:"int16le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int16le",e,t)}},{key:"int16be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int16be",e,t)}},{key:"int32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN(this.useThisEndian("int32"),e,t)}},{key:"int32le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int32le",e,t)}},{key:"int32be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("int32be",e,t)}},{key:"bigIntVersionCheck",value:function(){if(!DataView.prototype.getBigInt64)throw new Error("BigInt64 is unsupported on this runtime")}},{key:"int64",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN(this.useThisEndian("int64"),e,t)}},{key:"int64be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("int64be",e,t)}},{key:"int64le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("int64le",e,t)}},{key:"uint64",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN(this.useThisEndian("uint64"),e,t)}},{key:"uint64be",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("uint64be",e,t)}},{key:"uint64le",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bigIntVersionCheck(),this.primitiveN("uint64le",e,t)}},{key:"floatle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("floatle",e,t)}},{key:"floatbe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("floatbe",e,t)}},{key:"doublele",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("doublele",e,t)}},{key:"doublebe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.primitiveN("doublebe",e,t)}},{key:"bitN",value:function(e,t,n){return n.length=e,this.setNextParser("bit",t,n)}},{key:"bit1",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(1,e,t)}},{key:"bit2",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(2,e,t)}},{key:"bit3",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(3,e,t)}},{key:"bit4",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(4,e,t)}},{key:"bit5",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(5,e,t)}},{key:"bit6",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(6,e,t)}},{key:"bit7",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(7,e,t)}},{key:"bit8",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(8,e,t)}},{key:"bit9",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(9,e,t)}},{key:"bit10",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(10,e,t)}},{key:"bit11",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(11,e,t)}},{key:"bit12",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(12,e,t)}},{key:"bit13",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(13,e,t)}},{key:"bit14",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(14,e,t)}},{key:"bit15",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(15,e,t)}},{key:"bit16",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(16,e,t)}},{key:"bit17",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(17,e,t)}},{key:"bit18",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(18,e,t)}},{key:"bit19",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(19,e,t)}},{key:"bit20",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(20,e,t)}},{key:"bit21",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(21,e,t)}},{key:"bit22",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(22,e,t)}},{key:"bit23",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(23,e,t)}},{key:"bit24",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(24,e,t)}},{key:"bit25",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(25,e,t)}},{key:"bit26",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(26,e,t)}},{key:"bit27",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(27,e,t)}},{key:"bit28",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(28,e,t)}},{key:"bit29",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(29,e,t)}},{key:"bit30",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(30,e,t)}},{key:"bit31",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(31,e,t)}},{key:"bit32",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.bitN(32,e,t)}},{key:"namely",value:function(e){return c.set(e,this),this.alias=e,this}},{key:"skip",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.seek(e,t)}},{key:"seek",value:function(e){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).assert)throw new Error("assert option on seek is not allowed.");return this.setNextParser("seek","",{length:e})}},{key:"string",value:function(e,t){if(!t.zeroTerminated&&!t.length&&!t.greedy)throw new Error("One of length, zeroTerminated, or greedy must be defined for string.");if((t.zeroTerminated||t.length)&&t.greedy)throw new Error("greedy is mutually exclusive with length and zeroTerminated for string.");if(t.stripNull&&!t.length&&!t.greedy)throw new Error("length or greedy must be defined if stripNull is enabled.");return t.encoding=t.encoding||"utf8",this.setNextParser("string",e,t)}},{key:"buffer",value:function(e,t){if(!t.length&&!t.readUntil)throw new Error("length or readUntil must be defined for buffer.");return this.setNextParser("buffer",e,t)}},{key:"wrapped",value:function(e,t){if("object"!=typeof t&&"object"==typeof e&&(t=e,e=""),!t||!t.wrapper||!t.type)throw new Error("Both wrapper and type must be defined for wrapped.");if(!t.length&&!t.readUntil)throw new Error("length or readUntil must be defined for wrapped.");return this.setNextParser("wrapper",e,t)}},{key:"array",value:function(e,t){if(!t.readUntil&&!t.length&&!t.lengthInBytes)throw new Error("One of readUntil, length and lengthInBytes must be defined for array.");if(!t.type)throw new Error("type is required for array.");if("string"==typeof t.type&&!c.has(t.type)&&!(t.type in d))throw new Error('Array element type "'.concat(t.type,'" is unkown.'));return this.setNextParser("array",e,t)}},{key:"choice",value:function(e,t){if("object"!=typeof t&&"object"==typeof e&&(t=e,e=""),!t)throw new Error("tag and choices are are required for choice.");if(!t.tag)throw new Error("tag is requird for choice.");if(!t.choices)throw new Error("choices is required for choice.");for(var n in t.choices){var r=parseInt(n,10),a=t.choices[r];if(isNaN(r))throw new Error('Choice key "'.concat(n,'" is not a number.'));if("string"==typeof a&&!c.has(a)&&!(a in d))throw new Error('Choice type "'.concat(a,'" is unkown.'))}return this.setNextParser("choice",e,t)}},{key:"nest",value:function(t,n){if("object"!=typeof n&&"object"==typeof t&&(n=t,t=""),!n||!n.type)throw new Error("type is required for nest.");if(!(n.type instanceof e||c.has(n.type)))throw new Error("type must be a known parser name or a Parser object.");if(!(n.type instanceof e||t))throw new Error("type must be a Parser object if the variable name is omitted.");return this.setNextParser("nest",t,n)}},{key:"pointer",value:function(e,t){if(!t.offset)throw new Error("offset is required for pointer.");if(!t.type)throw new Error("type is required for pointer.");if("string"==typeof t.type&&!(t.type in d)&&!c.has(t.type))throw new Error('Pointer type "'.concat(t.type,'" is unkown.'));return this.setNextParser("pointer",e,t)}},{key:"saveOffset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setNextParser("saveOffset",e,t)}},{key:"endianness",value:function(e){switch(e.toLowerCase()){case"little":this.endian="le";break;case"big":this.endian="be";break;default:throw new Error('endianness must be one of "little" or "big"')}return this}},{key:"endianess",value:function(e){return this.endianness(e)}},{key:"useContextVars",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.useContextVariables=e,this}},{key:"create",value:function(e){if(!(e instanceof Function))throw new Error("Constructor must be a Function object.");return this.constructorFn=e,this}},{key:"getContext",value:function(e){var t=new s(e,this.useContextVariables);return t.pushCode("var dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.length);"),this.alias?(this.addAliasedCode(t),t.pushCode("return ".concat(u+this.alias,"(0).result;"))):this.addRawCode(t),t}},{key:"getCode",value:function(){return this.getContext("imports").code}},{key:"addRawCode",value:function(e){e.pushCode("var offset = 0;"),e.pushCode("var vars = ".concat(this.constructorFn?"new constructorFn()":"{}",";")),e.pushCode("vars.$parent = null;"),e.pushCode("vars.$root = vars;"),this.generate(e),this.resolveReferences(e),e.pushCode("delete vars.$parent;"),e.pushCode("delete vars.$root;"),e.pushCode("return vars;")}},{key:"addAliasedCode",value:function(e){return e.pushCode("function ".concat(u+this.alias,"(offset, context) {")),e.pushCode("var vars = ".concat(this.constructorFn?"new constructorFn()":"{}",";")),e.pushCode("var ctx = Object.assign({$parent: null, $root: vars}, context || {});"),e.pushCode("vars = Object.assign(vars, ctx);"),this.generate(e),e.markResolved(this.alias),this.resolveReferences(e),e.pushCode("Object.keys(ctx).forEach(function (item) { delete vars[item]; });"),e.pushCode("return { offset: offset, result: vars };"),e.pushCode("}"),e}},{key:"resolveReferences",value:function(e){var t=e.getUnresolvedReferences();e.markRequested(t),t.forEach((function(t){var n;null===(n=c.get(t))||void 0===n||n.addAliasedCode(e)}))}},{key:"compile",value:function(){var e="imports",t=this.getContext(e);this.compiled=new Function(e,"TextDecoder","return function (buffer, constructorFn) { ".concat(t.code," };"))(t.imports,TextDecoder)}},{key:"sizeOf",value:function(){var t=NaN;if(Object.keys(d).indexOf(this.type)>=0)t=d[this.type];else if("string"===this.type&&"number"==typeof this.options.length)t=this.options.length;else if("buffer"===this.type&&"number"==typeof this.options.length)t=this.options.length;else if("array"===this.type&&"number"==typeof this.options.length){var n=NaN;"string"==typeof this.options.type?n=d[this.options.type]:this.options.type instanceof e&&(n=this.options.type.sizeOf()),t=this.options.length*n}else"seek"===this.type?t=this.options.length:"nest"===this.type?t=this.options.type.sizeOf():this.type||(t=0);return this.next&&(t+=this.next.sizeOf()),t}},{key:"parse",value:function(e){return this.compiled||this.compile(),this.compiled(e,this.constructorFn)}},{key:"setNextParser",value:function(t,n,r){var a=new e;return a.type=t,a.varName=n,a.options=r,a.endian=this.endian,this.head?this.head.next=a:this.next=a,this.head=a,this}},{key:"generate",value:function(e){if(this.type){switch(this.type){case"uint8":case"uint16le":case"uint16be":case"uint32le":case"uint32be":case"int8":case"int16le":case"int16be":case"int32le":case"int32be":case"int64be":case"int64le":case"uint64be":case"uint64le":case"floatle":case"floatbe":case"doublele":case"doublebe":this.primitiveGenerateN(this.type,e);break;case"bit":this.generateBit(e);break;case"string":this.generateString(e);break;case"buffer":this.generateBuffer(e);break;case"seek":this.generateSeek(e);break;case"nest":this.generateNest(e);break;case"array":this.generateArray(e);break;case"choice":this.generateChoice(e);break;case"pointer":this.generatePointer(e);break;case"saveOffset":this.generateSaveOffset(e);break;case"wrapper":this.generateWrapper(e)}"bit"!==this.type&&this.generateAssert(e)}var t=e.generateVariable(this.varName);return this.options.formatter&&"bit"!==this.type&&this.generateFormatter(e,t,this.options.formatter),this.generateNext(e)}},{key:"generateAssert",value:function(e){if(this.options.assert){var t=e.generateVariable(this.varName);switch(typeof this.options.assert){case"function":var n=e.addImport(this.options.assert);e.pushCode("if (!".concat(n,".call(vars, ").concat(t,")) {"));break;case"number":e.pushCode("if (".concat(this.options.assert," !== ").concat(t,") {"));break;case"string":e.pushCode("if (".concat(JSON.stringify(this.options.assert)," !== ").concat(t,") {"));break;default:throw new Error("assert option must be a string, number or a function.")}e.generateError('"Assertion error: '.concat(t,' is " + ').concat(JSON.stringify(this.options.assert.toString()))),e.pushCode("}")}}},{key:"generateNext",value:function(e){return this.next&&(e=this.next.generate(e)),e}},{key:"generateBit",value:function(e){var t=JSON.parse(JSON.stringify(this));if(t.options=this.options,t.generateAssert=this.generateAssert.bind(this),t.generateFormatter=this.generateFormatter.bind(this),t.varName=e.generateVariable(t.varName),e.bitFields.push(t),!this.next||this.next&&["bit","nest"].indexOf(this.next.type)<0){var n=e.generateTmpVariable();e.pushCode("var ".concat(n," = 0;"));var r=0,a="be"===this.endian,i=0,o=0;e.bitFields.forEach((function(t,s){var c=t.options.length;if(c>o){if(o){var u=-1>>>32-o;e.pushCode("".concat(t.varName," = (").concat(n," & 0x").concat(u.toString(16),") << ").concat(c-o,";")),c-=o}r=0,o=i=function(t){return t<=8?(e.pushCode("".concat(n," = dataView.getUint8(offset);")),t=8):t<=16?(e.pushCode("".concat(n," = dataView.getUint16(offset);")),t=16):t<=24?(e.pushCode("".concat(n," = (dataView.getUint16(offset) << 8) | dataView.getUint8(offset + 2);")),t=24):(e.pushCode("".concat(n," = dataView.getUint32(offset);")),t=32),e.pushCode("offset += ".concat(t/8,";")),t}(function(){for(var t=0,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;n32)break;t+=r}return t}(s)-o)}var d=a?i-r-c:r,f=-1>>>32-c;e.pushCode("".concat(t.varName," ").concat(c> ").concat(d," & 0x").concat(f.toString(16),";")),32===t.options.length&&e.pushCode("".concat(t.varName," >>>= 0")),t.options.assert&&t.generateAssert(e),t.options.formatter&&t.generateFormatter(e,t.varName,t.options.formatter),r+=c,o-=c})),e.bitFields=[]}}},{key:"generateSeek",value:function(e){var t=e.generateOption(this.options.length);e.pushCode("offset += ".concat(t,";"))}},{key:"generateString",value:function(e){var t=e.generateVariable(this.varName),n=e.generateTmpVariable(),r=this.options.encoding,a="hex"===r.toLowerCase(),i='b => b.toString(16).padStart(2, "0")';if(this.options.length&&this.options.zeroTerminated){var o=this.options.length;e.pushCode("var ".concat(n," = offset;")),e.pushCode("while(dataView.getUint8(offset++) !== 0 && offset - ".concat(n," < ").concat(o,");"));var s="offset - ".concat(n," < ").concat(o," ? offset - 1 : offset");e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(").concat(n,", ").concat(s,"), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(").concat(n,", ").concat(s,"));"))}else if(this.options.length){var c=e.generateOption(this.options.length);e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(offset, offset + ").concat(c,"), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(offset, offset + ").concat(c,"));")),e.pushCode("offset += ".concat(c,";"))}else this.options.zeroTerminated?(e.pushCode("var ".concat(n," = offset;")),e.pushCode("while(dataView.getUint8(offset++) !== 0);"),e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(").concat(n,", offset - 1), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(").concat(n,", offset - 1));"))):this.options.greedy&&(e.pushCode("var ".concat(n," = offset;")),e.pushCode("while(buffer.length > offset++);"),e.pushCode(a?"".concat(t," = Array.from(buffer.subarray(").concat(n,", offset), ").concat(i,").join('');"):"".concat(t," = new TextDecoder('").concat(r,"').decode(buffer.subarray(").concat(n,", offset));")));this.options.stripNull&&e.pushCode("".concat(t," = ").concat(t,".replace(/\\x00+$/g, '')"))}},{key:"generateBuffer",value:function(e){var t=e.generateVariable(this.varName);if("function"==typeof this.options.readUntil){var n=this.options.readUntil,r=e.generateTmpVariable(),a=e.generateTmpVariable();e.pushCode("var ".concat(r," = offset;")),e.pushCode("var ".concat(a," = 0;")),e.pushCode("while (offset < buffer.length) {"),e.pushCode("".concat(a," = dataView.getUint8(offset);"));var i=e.addImport(n);e.pushCode("if (".concat(i,".call(").concat(e.generateVariable(),", ").concat(a,", buffer.subarray(offset))) break;")),e.pushCode("offset += 1;"),e.pushCode("}"),e.pushCode("".concat(t," = buffer.subarray(").concat(r,", offset);"))}else if("eof"===this.options.readUntil)e.pushCode("".concat(t," = buffer.subarray(offset);"));else{var o=e.generateOption(this.options.length);e.pushCode("".concat(t," = buffer.subarray(offset, offset + ").concat(o,");")),e.pushCode("offset += ".concat(o,";"))}this.options.clone&&e.pushCode("".concat(t," = buffer.constructor.from(").concat(t,");"))}},{key:"generateArray",value:function(t){var n=t.generateOption(this.options.length),r=t.generateOption(this.options.lengthInBytes),a=this.options.type,i=t.generateTmpVariable(),o=t.generateVariable(this.varName),s=t.generateTmpVariable(),b=this.options.key,p="string"==typeof b;if(p?t.pushCode("".concat(o," = {};")):t.pushCode("".concat(o," = [];")),"function"==typeof this.options.readUntil?t.pushCode("do {"):"eof"===this.options.readUntil?t.pushCode("for (var ".concat(i," = 0; offset < buffer.length; ").concat(i,"++) {")):void 0!==r?t.pushCode("for (var ".concat(i," = offset + ").concat(r,"; offset < ").concat(i,"; ) {")):t.pushCode("for (var ".concat(i," = ").concat(n,"; ").concat(i," > 0; ").concat(i,"--) {")),"string"==typeof a)if(c.get(a)){var h=t.generateTmpVariable();if(t.pushCode("var ".concat(h," = ").concat(u+a,"(offset, {")),t.useContextVariables){var y=t.generateVariable();t.pushCode("$parent: ".concat(y,",")),t.pushCode("$root: ".concat(y,".$root,")),this.options.readUntil||void 0!==r||t.pushCode("$index: ".concat(n," - ").concat(i,","))}t.pushCode("});"),t.pushCode("var ".concat(s," = ").concat(h,".result; offset = ").concat(h,".offset;")),a!==this.alias&&t.addReference(a)}else{var m=f[a],v=l[a];t.pushCode("var ".concat(s," = dataView.get").concat(m,"(offset, ").concat(v,");")),t.pushCode("offset += ".concat(d[a],";"))}else if(a instanceof e){t.pushCode("var ".concat(s," = {};"));var g=t.generateVariable();t.pushScope(s),t.useContextVariables&&(t.pushCode("".concat(s,".$parent = ").concat(g,";")),t.pushCode("".concat(s,".$root = ").concat(g,".$root;")),this.options.readUntil||void 0!==r||t.pushCode("".concat(s,".$index = ").concat(n," - ").concat(i,";"))),a.generate(t),t.useContextVariables&&(t.pushCode("delete ".concat(s,".$parent;")),t.pushCode("delete ".concat(s,".$root;")),t.pushCode("delete ".concat(s,".$index;"))),t.popScope()}if(p?t.pushCode("".concat(o,"[").concat(s,".").concat(b,"] = ").concat(s,";")):t.pushCode("".concat(o,".push(").concat(s,");")),t.pushCode("}"),"function"==typeof this.options.readUntil){var A=this.options.readUntil,w=t.addImport(A);t.pushCode("while (!".concat(w,".call(").concat(t.generateVariable(),", ").concat(s,", buffer.subarray(offset)));"))}}},{key:"generateChoiceCase",value:function(t,n,r){if("string"==typeof r){var a=t.generateVariable(this.varName);if(c.has(r)){var i=t.generateTmpVariable();t.pushCode("var ".concat(i," = ").concat(u+r,"(offset, {")),t.useContextVariables&&(t.pushCode("$parent: ".concat(a,".$parent,")),t.pushCode("$root: ".concat(a,".$root,"))),t.pushCode("});"),t.pushCode("".concat(a," = ").concat(i,".result; offset = ").concat(i,".offset;")),r!==this.alias&&t.addReference(r)}else{var o=f[r],s=l[r];t.pushCode("".concat(a," = dataView.get").concat(o,"(offset, ").concat(s,");")),t.pushCode("offset += ".concat(d[r]))}}else r instanceof e&&(t.pushPath(n),r.generate(t),t.popPath(n))}},{key:"generateChoice",value:function(e){var t=e.generateOption(this.options.tag),n=e.generateVariable(this.varName);if(this.varName&&(e.pushCode("".concat(n," = {};")),e.useContextVariables)){var r=e.generateVariable();e.pushCode("".concat(n,".$parent = ").concat(r,";")),e.pushCode("".concat(n,".$root = ").concat(r,".$root;"))}for(var a in e.pushCode("switch(".concat(t,") {")),this.options.choices){var i=parseInt(a,10),o=this.options.choices[i];e.pushCode("case ".concat(i,":")),this.generateChoiceCase(e,this.varName,o),e.pushCode("break;")}e.pushCode("default:"),this.options.defaultChoice?this.generateChoiceCase(e,this.varName,this.options.defaultChoice):e.generateError('"Met undefined tag value " + '.concat(t,' + " at choice"')),e.pushCode("}"),this.varName&&e.useContextVariables&&(e.pushCode("delete ".concat(n,".$parent;")),e.pushCode("delete ".concat(n,".$root;")))}},{key:"generateNest",value:function(t){var n=t.generateVariable(this.varName);if(this.options.type instanceof e){if(this.varName&&(t.pushCode("".concat(n," = {};")),t.useContextVariables)){var r=t.generateVariable();t.pushCode("".concat(n,".$parent = ").concat(r,";")),t.pushCode("".concat(n,".$root = ").concat(r,".$root;"))}t.pushPath(this.varName),this.options.type.generate(t),t.popPath(this.varName),this.varName&&t.useContextVariables&&t.useContextVariables&&(t.pushCode("delete ".concat(n,".$parent;")),t.pushCode("delete ".concat(n,".$root;")))}else if(c.has(this.options.type)){var a=t.generateTmpVariable();if(t.pushCode("var ".concat(a," = ").concat(u+this.options.type,"(offset, {")),t.useContextVariables){var i=t.generateVariable();t.pushCode("$parent: ".concat(i,",")),t.pushCode("$root: ".concat(i,".$root,"))}t.pushCode("});"),t.pushCode("".concat(n," = ").concat(a,".result; offset = ").concat(a,".offset;")),this.options.type!==this.alias&&t.addReference(this.options.type)}}},{key:"generateWrapper",value:function(t){var n=t.generateVariable(this.varName),r=t.generateTmpVariable();if("function"==typeof this.options.readUntil){var a=this.options.readUntil,i=t.generateTmpVariable(),o=t.generateTmpVariable();t.pushCode("var ".concat(i," = offset;")),t.pushCode("var ".concat(o," = 0;")),t.pushCode("while (offset < buffer.length) {"),t.pushCode("".concat(o," = dataView.getUint8(offset);"));var s=t.addImport(a);t.pushCode("if (".concat(s,".call(").concat(t.generateVariable(),", ").concat(o,", buffer.subarray(offset))) break;")),t.pushCode("offset += 1;"),t.pushCode("}"),t.pushCode("".concat(r," = buffer.subarray(").concat(i,", offset);"))}else if("eof"===this.options.readUntil)t.pushCode("".concat(r," = buffer.subarray(offset);"));else{var d=t.generateOption(this.options.length);t.pushCode("".concat(r," = buffer.subarray(offset, offset + ").concat(d,");")),t.pushCode("offset += ".concat(d,";"))}this.options.clone&&t.pushCode("".concat(r," = buffer.constructor.from(").concat(r,");"));var f=t.generateTmpVariable(),l=t.generateTmpVariable(),b=t.generateTmpVariable(),p=t.addImport(this.options.wrapper);if(t.pushCode("".concat(r," = ").concat(p,".call(this, ").concat(r,").subarray(0);")),t.pushCode("var ".concat(f," = buffer;")),t.pushCode("var ".concat(l," = offset;")),t.pushCode("var ".concat(b," = dataView;")),t.pushCode("buffer = ".concat(r,";")),t.pushCode("offset = 0;"),t.pushCode("dataView = new DataView(buffer.buffer, buffer.byteOffset, buffer.length);"),this.options.type instanceof e)this.varName&&t.pushCode("".concat(n," = {};")),t.pushPath(this.varName),this.options.type.generate(t),t.popPath(this.varName);else if(c.has(this.options.type)){var h=t.generateTmpVariable();t.pushCode("var ".concat(h," = ").concat(u+this.options.type,"(0);")),t.pushCode("".concat(n," = ").concat(h,".result;")),this.options.type!==this.alias&&t.addReference(this.options.type)}t.pushCode("buffer = ".concat(f,";")),t.pushCode("dataView = ".concat(b,";")),t.pushCode("offset = ".concat(l,";"))}},{key:"generateFormatter",value:function(e,t,n){if("function"==typeof n){var r=e.addImport(n);e.pushCode("".concat(t," = ").concat(r,".call(").concat(e.generateVariable(),", ").concat(t,");"))}}},{key:"generatePointer",value:function(t){var n=this.options.type,r=t.generateOption(this.options.offset),a=t.generateTmpVariable(),i=t.generateVariable(this.varName);if(t.pushCode("var ".concat(a," = offset;")),t.pushCode("offset = ".concat(r,";")),this.options.type instanceof e){if(t.pushCode("".concat(i," = {};")),t.useContextVariables){var o=t.generateVariable();t.pushCode("".concat(i,".$parent = ").concat(o,";")),t.pushCode("".concat(i,".$root = ").concat(o,".$root;"))}t.pushPath(this.varName),this.options.type.generate(t),t.popPath(this.varName),t.useContextVariables&&(t.pushCode("delete ".concat(i,".$parent;")),t.pushCode("delete ".concat(i,".$root;")))}else if(c.has(this.options.type)){var s=t.generateTmpVariable();if(t.pushCode("var ".concat(s," = ").concat(u+this.options.type,"(offset, {")),t.useContextVariables){var b=t.generateVariable();t.pushCode("$parent: ".concat(b,",")),t.pushCode("$root: ".concat(b,".$root,"))}t.pushCode("});"),t.pushCode("".concat(i," = ").concat(s,".result; offset = ").concat(s,".offset;")),this.options.type!==this.alias&&t.addReference(this.options.type)}else if(Object.keys(d).indexOf(this.options.type)>=0){var p=f[n],h=l[n];t.pushCode("".concat(i," = dataView.get").concat(p,"(offset, ").concat(h,");")),t.pushCode("offset += ".concat(d[n],";"))}t.pushCode("offset = ".concat(a,";"))}},{key:"generateSaveOffset",value:function(e){var t=e.generateVariable(this.varName);e.pushCode("".concat(t," = offset"))}}],[{key:"start",value:function(){return new e}}]),e}();t.Parser=b},92406:function(e,t,n){"use strict";var r=n(5886).Buffer,a=n(34671).default,i=n(68387).default;Object.defineProperty(t,"__esModule",{value:!0});var o=n(68063),s=n(83025),c=n(73134),u=n(73330),d=n(5038),f=u.BufferN(32),l=u.compile({wif:u.UInt8,bip32:{public:u.UInt32,private:u.UInt32}}),b={messagePrefix:"Bitcoin Signed Message:\n",bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128},p=2147483648,h=Math.pow(2,31)-1;function y(e){return u.String(e)&&null!==e.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}function m(e){return u.UInt32(e)&&e<=h}var v=function(){function e(t,n,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;a(this,e),this.__D=t,this.__Q=n,this.chainCode=r,this.network=i,this.__DEPTH=o,this.__INDEX=s,this.__PARENT_FINGERPRINT=c,u(l,i),this.lowR=!1}return i(e,[{key:"depth",get:function(){return this.__DEPTH}},{key:"index",get:function(){return this.__INDEX}},{key:"parentFingerprint",get:function(){return this.__PARENT_FINGERPRINT}},{key:"publicKey",get:function(){return void 0===this.__Q&&(this.__Q=c.pointFromScalar(this.__D,!0)),this.__Q}},{key:"privateKey",get:function(){return this.__D}},{key:"identifier",get:function(){return o.hash160(this.publicKey)}},{key:"fingerprint",get:function(){return this.identifier.slice(0,4)}},{key:"compressed",get:function(){return!0}},{key:"isNeutered",value:function(){return void 0===this.__D}},{key:"neutered",value:function(){return w(this.publicKey,this.chainCode,this.network,this.depth,this.index,this.parentFingerprint)}},{key:"toBase58",value:function(){var e=this.network,t=this.isNeutered()?e.bip32.public:e.bip32.private,n=r.allocUnsafe(78);return n.writeUInt32BE(t,0),n.writeUInt8(this.depth,4),n.writeUInt32BE(this.parentFingerprint,5),n.writeUInt32BE(this.index,9),this.chainCode.copy(n,13),this.isNeutered()?this.publicKey.copy(n,45):(n.writeUInt8(0,45),this.privateKey.copy(n,46)),s.encode(n)}},{key:"toWIF",value:function(){if(!this.privateKey)throw new TypeError("Missing private key");return d.encode(this.network.wif,this.privateKey,!0)}},{key:"derive",value:function(e){u(u.UInt32,e);var t=e>=p,n=r.allocUnsafe(37);if(t){if(this.isNeutered())throw new TypeError("Missing private key for hardened child key");n[0]=0,this.privateKey.copy(n,1),n.writeUInt32BE(e,33)}else this.publicKey.copy(n,0),n.writeUInt32BE(e,33);var a,i=o.hmacSHA512(this.chainCode,n),s=i.slice(0,32),d=i.slice(32);if(!c.isPrivate(s))return this.derive(e+1);if(this.isNeutered()){var f=c.pointAddScalar(this.publicKey,s,!0);if(null===f)return this.derive(e+1);a=w(f,d,this.network,this.depth+1,e,this.fingerprint.readUInt32BE(0))}else{var l=c.privateAdd(this.privateKey,s);if(null==l)return this.derive(e+1);a=A(l,d,this.network,this.depth+1,e,this.fingerprint.readUInt32BE(0))}return a}},{key:"deriveHardened",value:function(e){return u(m,e),this.derive(e+p)}},{key:"derivePath",value:function(e){u(y,e);var t=e.split("/");if("m"===t[0]){if(this.parentFingerprint)throw new TypeError("Expected master, got child");t=t.slice(1)}return t.reduce((function(e,t){var n;return"'"===t.slice(-1)?(n=parseInt(t.slice(0,-1),10),e.deriveHardened(n)):(n=parseInt(t,10),e.derive(n))}),this)}},{key:"sign",value:function(e,t){if(!this.privateKey)throw new Error("Missing private key");if(void 0===t&&(t=this.lowR),!1===t)return c.sign(e,this.privateKey);for(var n=c.sign(e,this.privateKey),a=r.alloc(32,0),i=0;n[0]>127;)i++,a.writeUIntLE(i,0,6),n=c.signWithEntropy(e,this.privateKey,a);return n}},{key:"verify",value:function(e,t){return c.verify(e,this.publicKey,t)}}]),e}();function g(e,t,n){return A(e,t,n)}function A(e,t,n,r,a,i){if(u({privateKey:f,chainCode:f},{privateKey:e,chainCode:t}),n=n||b,!c.isPrivate(e))throw new TypeError("Private key not in range [1, n)");return new v(e,void 0,t,n,r,a,i)}function w(e,t,n,r,a,i){if(u({publicKey:u.BufferN(33),chainCode:f},{publicKey:e,chainCode:t}),n=n||b,!c.isPoint(e))throw new TypeError("Point is not on the curve");return new v(void 0,e,t,n,r,a,i)}t.fromBase58=function(e,t){var n=s.decode(e);if(78!==n.length)throw new TypeError("Invalid buffer length");t=t||b;var r=n.readUInt32BE(0);if(r!==t.bip32.private&&r!==t.bip32.public)throw new TypeError("Invalid network version");var a=n[4],i=n.readUInt32BE(5);if(0===a&&0!==i)throw new TypeError("Invalid parent fingerprint");var o=n.readUInt32BE(9);if(0===a&&0!==o)throw new TypeError("Invalid index");var c,u=n.slice(13,45);if(r===t.bip32.private){if(0!==n.readUInt8(45))throw new TypeError("Invalid private key");c=A(n.slice(46,78),u,t,a,o,i)}else c=w(n.slice(45,78),u,t,a,o,i);return c},t.fromPrivateKey=g,t.fromPublicKey=function(e,t,n){return w(e,t,n)},t.fromSeed=function(e,t){if(u(u.Buffer,e),e.length<16)throw new TypeError("Seed should be at least 128 bits");if(e.length>64)throw new TypeError("Seed should be at most 512 bits");t=t||b;var n=o.hmacSHA512(r.from("Bitcoin seed","utf8"),e);return g(n.slice(0,32),n.slice(32),t)}},68063:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(51132),a=n(79710);t.hash160=function(e){var t=r("sha256").update(e).digest();try{return r("rmd160").update(t).digest()}catch(e){return r("ripemd160").update(t).digest()}},t.hmacSHA512=function(e,t){return a("sha512",e).update(t).digest()}},93223:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(92406);t.fromSeed=r.fromSeed,t.fromBase58=r.fromBase58,t.fromPublicKey=r.fromPublicKey,t.fromPrivateKey=r.fromPrivateKey},73194:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a={};t.wordlists=a,t._default=r;try{t._default=r=n(92561),a.czech=r}catch(e){}try{t._default=r=n(61404),a.chinese_simplified=r}catch(e){}try{t._default=r=n(88922),a.chinese_traditional=r}catch(e){}try{t._default=r=n(2968),a.korean=r}catch(e){}try{t._default=r=n(78340),a.french=r}catch(e){}try{t._default=r=n(45576),a.italian=r}catch(e){}try{t._default=r=n(94786),a.spanish=r}catch(e){}try{t._default=r=n(29748),a.japanese=r,a.JA=r}catch(e){}try{t._default=r=n(54004),a.portuguese=r}catch(e){}try{t._default=r=n(8438),a.english=r,a.EN=r}catch(e){}},78480:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var a=n(19818),i=n(65483),o=n(10333),s=n(59444),c=n(73194),u=c._default,d="Invalid mnemonic",f="Invalid entropy",l="A wordlist is required but a default could not be found.\nPlease pass a 2048 word array explicitly.";function b(e){return(e||"").normalize("NFKD")}function p(e,t,n){for(;e.length32)throw new Error(f);if(c.length%4!=0)throw new Error(f);var y=r.from(c);if(m(y)!==s)throw new Error("Invalid mnemonic checksum");return y.toString("hex")}function A(e,t){if(r.isBuffer(e)||(e=r.from(e,"hex")),!(t=t||u))throw new Error(l);if(e.length<16)throw new TypeError(f);if(e.length>32)throw new TypeError(f);if(e.length%4!=0)throw new TypeError(f);var n=(y(Array.from(e))+m(e)).match(/(.{1,11})/g).map((function(e){var n=h(e);return t[n]}));return"あいこくしん"===t[0]?n.join(" "):n.join(" ")}t.mnemonicToSeedSync=function(e,t){var n=Uint8Array.from(r.from(b(e),"utf8")),a=Uint8Array.from(r.from(v(b(t)),"utf8")),s=o.pbkdf2(i.sha512,n,a,{c:2048,dkLen:64});return r.from(s)},t.mnemonicToSeed=function(e,t){var n=Uint8Array.from(r.from(b(e),"utf8")),a=Uint8Array.from(r.from(v(b(t)),"utf8"));return o.pbkdf2Async(i.sha512,n,a,{c:2048,dkLen:64}).then((function(e){return r.from(e)}))},t.mnemonicToEntropy=g,t.entropyToMnemonic=A,t.generateMnemonic=function(e,t,n){if((e=e||128)%32!=0)throw new TypeError(f);return A((t=t||function(e){return r.from(s.randomBytes(e))})(e/8),n)},t.validateMnemonic=function(e,t){try{g(e,t)}catch(e){return!1}return!0},t.setDefaultWordlist=function(e){var t=c.wordlists[e];if(!t)throw new Error('Could not find wordlist for language "'+e+'"');u=t},t.getDefaultWordlist=function(){if(!u)throw new Error("No Default Wordlist set");return Object.keys(c.wordlists).filter((function(e){return"JA"!==e&&"EN"!==e&&c.wordlists[e].every((function(e,t){return e===u[t]}))}))[0]};var w=n(73194);t.wordlists=w.wordlists},22097:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(45545).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,a){for(var i=0,o=0,s=Math.min(e.length,n),c=t;c=49?u-49+10:u>=17?u-17+10:u,r(u>=0&&o0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this._strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,d=n;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(e){i.prototype.inspect=f}else i.prototype.inspect=f;function f(){return(this.red?""}var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],b=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,f=67108863&c,l=Math.min(u,t.length-1),b=Math.max(0,u-e.length+1);b<=l;b++){var p=u-b|0;d+=(o=(a=0|e.words[p])*(i=0|t.words[b])+f)/67108864|0,f=67108863&o}n.words[u]=0|f,c=0|d}return 0!==c?n.words[u]=0|c:n.length--,n._strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215,(a+=2)>=26&&(a-=26,o--),n=0!==i||o!==this.length-1?l[6-c.length]+c+n:c+n}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=b[e],d=p[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var h=f.modrn(d).toString(e);n=(f=f.idivn(d)).isZero()?h+n:l[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){this._strip();var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,a),o},i.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,a=0,i=0;a>8&255),n>16&255),6===i?(n>24&255),r=0,i=0):(r=o>>>24,i+=2)}if(n=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),6===i?(n>=0&&(e[n--]=o>>24&255),r=0,i=0):(r=o>>>24,i+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,b=0|o[1],p=8191&b,h=b>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,I=0|o[5],S=8191&I,E=I>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,N=0|o[8],R=8191&N,D=N>>>13,j=0|o[9],U=8191&j,L=j>>>13,F=0|s[0],Z=8191&F,H=F>>>13,z=0|s[1],Q=8191&z,q=z>>>13,V=0|s[2],J=8191&V,K=V>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,de=0|s[8],fe=8191&de,le=de>>>13,be=0|s[9],pe=8191&be,he=be>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(f,Z))|0)+((8191&(a=(a=Math.imul(f,H))+Math.imul(l,Z)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(p,Z),a=(a=Math.imul(p,H))+Math.imul(h,Z)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(f,Q)|0)|0)+((8191&(a=(a=a+Math.imul(f,q)|0)+Math.imul(l,Q)|0))<<13)|0;u=((i=i+Math.imul(l,q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,Z),a=(a=Math.imul(m,H))+Math.imul(v,Z)|0,i=Math.imul(v,H),r=r+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,q)|0)+Math.imul(h,Q)|0,i=i+Math.imul(h,q)|0;var ve=(u+(r=r+Math.imul(f,J)|0)|0)+((8191&(a=(a=a+Math.imul(f,K)|0)+Math.imul(l,J)|0))<<13)|0;u=((i=i+Math.imul(l,K)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,Z),a=(a=Math.imul(A,H))+Math.imul(w,Z)|0,i=Math.imul(w,H),r=r+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,q)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,a=(a=a+Math.imul(p,K)|0)+Math.imul(h,J)|0,i=i+Math.imul(h,K)|0;var ge=(u+(r=r+Math.imul(f,W)|0)|0)+((8191&(a=(a=a+Math.imul(f,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,Z),a=(a=Math.imul(_,H))+Math.imul(k,Z)|0,i=Math.imul(k,H),r=r+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,q)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,q)|0,r=r+Math.imul(m,J)|0,a=(a=a+Math.imul(m,K)|0)+Math.imul(v,J)|0,i=i+Math.imul(v,K)|0,r=r+Math.imul(p,W)|0,a=(a=a+Math.imul(p,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(f,$)|0)|0)+((8191&(a=(a=a+Math.imul(f,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(S,Z),a=(a=Math.imul(S,H))+Math.imul(E,Z)|0,i=Math.imul(E,H),r=r+Math.imul(_,Q)|0,a=(a=a+Math.imul(_,q)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,q)|0,r=r+Math.imul(A,J)|0,a=(a=a+Math.imul(A,K)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,K)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(p,$)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(a=(a=a+Math.imul(f,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,Z),a=(a=Math.imul(T,H))+Math.imul(O,Z)|0,i=Math.imul(O,H),r=r+Math.imul(S,Q)|0,a=(a=a+Math.imul(S,q)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,q)|0,r=r+Math.imul(_,J)|0,a=(a=a+Math.imul(_,K)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,K)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(p,ne)|0,a=(a=a+Math.imul(p,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(f,ie)|0)|0)+((8191&(a=(a=a+Math.imul(f,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,Z),a=(a=Math.imul(M,H))+Math.imul(B,Z)|0,i=Math.imul(B,H),r=r+Math.imul(T,Q)|0,a=(a=a+Math.imul(T,q)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,q)|0,r=r+Math.imul(S,J)|0,a=(a=a+Math.imul(S,K)|0)+Math.imul(E,J)|0,i=i+Math.imul(E,K)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(p,ie)|0,a=(a=a+Math.imul(p,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(a=(a=a+Math.imul(f,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,Z),a=(a=Math.imul(R,H))+Math.imul(D,Z)|0,i=Math.imul(D,H),r=r+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,q)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,q)|0,r=r+Math.imul(T,J)|0,a=(a=a+Math.imul(T,K)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,K)|0,r=r+Math.imul(S,W)|0,a=(a=a+Math.imul(S,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(p,ce)|0,a=(a=a+Math.imul(p,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(a=(a=a+Math.imul(f,le)|0)+Math.imul(l,fe)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,Z),a=(a=Math.imul(U,H))+Math.imul(L,Z)|0,i=Math.imul(L,H),r=r+Math.imul(R,Q)|0,a=(a=a+Math.imul(R,q)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,q)|0,r=r+Math.imul(M,J)|0,a=(a=a+Math.imul(M,K)|0)+Math.imul(B,J)|0,i=i+Math.imul(B,K)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(S,$)|0,a=(a=a+Math.imul(S,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(p,fe)|0,a=(a=a+Math.imul(p,le)|0)+Math.imul(h,fe)|0,i=i+Math.imul(h,le)|0;var Ie=(u+(r=r+Math.imul(f,pe)|0)|0)+((8191&(a=(a=a+Math.imul(f,he)|0)+Math.imul(l,pe)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,Q),a=(a=Math.imul(U,q))+Math.imul(L,Q)|0,i=Math.imul(L,q),r=r+Math.imul(R,J)|0,a=(a=a+Math.imul(R,K)|0)+Math.imul(D,J)|0,i=i+Math.imul(D,K)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(S,ne)|0,a=(a=a+Math.imul(S,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,fe)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,fe)|0,i=i+Math.imul(v,le)|0;var Se=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(a=(a=a+Math.imul(p,he)|0)+Math.imul(h,pe)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,J),a=(a=Math.imul(U,K))+Math.imul(L,J)|0,i=Math.imul(L,K),r=r+Math.imul(R,W)|0,a=(a=a+Math.imul(R,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(S,ie)|0,a=(a=a+Math.imul(S,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,pe)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,pe)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(R,$)|0,a=(a=a+Math.imul(R,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(S,ce)|0,a=(a=a+Math.imul(S,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,fe)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,pe)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,pe)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,a=(a=a+Math.imul(R,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(S,fe)|0,a=(a=a+Math.imul(S,le)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,pe)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,pe)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(R,ie)|0,a=(a=a+Math.imul(R,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,fe)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,fe)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(S,pe)|0)|0)+((8191&(a=(a=a+Math.imul(S,he)|0)+Math.imul(E,pe)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(R,ce)|0,a=(a=a+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,pe)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,pe)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(R,fe)|0,a=(a=a+Math.imul(R,le)|0)+Math.imul(D,fe)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,pe)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,pe)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,fe),a=(a=Math.imul(U,le))+Math.imul(L,fe)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(R,pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,he)|0)+Math.imul(D,pe)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Ne=(u+(r=Math.imul(U,pe))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,pe)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Ie,c[10]=Se,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Ne,0!==u&&(c[19]=u,n.length++),n};function m(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n._strip()}function v(e,t,n){return m(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(y=h),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?h(this,e,t):n<1024?m(this,e,t):v(this,e,t)},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},g.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,n+=i/67108864|0,n+=o>>>26,this.words[a]=67108863&o}return 0!==n&&(this.words[a]=n,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==d||u>=a);u--){var f=0|this.words[u];this.words[u]=d<<26-i|f>>>i,d=f&s}return c&&0!==d&&(c.words[c.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this._strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var l=67108864*(0|r.words[a.length+f])+(0|r.words[a.length+f-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=l)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,a=0,i=this.length-1;i>=0;i--)a=(n*a+(0|this.words[i]))%e;return t?-a:a},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,a=this.length-1;a>=0;a--){var i=(0|this.words[a])+67108864*n;this.words[a]=i/e|0,n=i%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var d=n.clone(),f=t.clone();!t.isZero();){for(var l=0,b=1;0==(t.words[0]&b)&&l<26;++l,b<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(d),o.isub(f)),a.iushrn(1),o.iushrn(1);for(var p=0,h=1;0==(n.words[0]&h)&&p<26;++p,h<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(d),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,d=1;0==(t.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var f=0,l=1;0==(n.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new S(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var A={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},a(x,w),x.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(A[e])return A[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new _;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new I}return A[e]=t,t},S.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(d(e,e.umod(this.m)._forceRed(this)),e)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);0!==this.pow(d,u).cmp(c);)d.redIAdd(c);for(var f=this.pow(d,a),l=this.pow(e,a.addn(1).iushrn(1)),b=this.pow(e,a),p=o;0!==b.cmp(s);){for(var h=b,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],d=c-1;d>=0;d--){var f=u>>d&1;a!==n[0]&&(a=this.sqr(a)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===d)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},a(E,S),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},62503:function(e,t,n){"use strict";var r=n(5886).Buffer,a=n(36595).default,i=n(15771).default,o=n(33482).default,s=n(34671).default,c=n(68387).default,u=n(67766).default,d=n(65040).default,f=n(96511).default,l=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),b=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),p=this&&this.__decorate||function(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o},h=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&l(t,e,n);return b(t,e),t},y=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.deserializeUnchecked=t.deserialize=t.serialize=t.BinaryReader=t.BinaryWriter=t.BorshError=t.baseDecode=t.baseEncode=void 0;var m=y(n(22097)),v=y(n(38600)),g=h(n(55723)),A=new("function"!=typeof TextDecoder?g.TextDecoder:TextDecoder)("utf-8",{fatal:!0});t.baseEncode=function(e){return"string"==typeof e&&(e=r.from(e,"utf8")),v.default.encode(r.from(e))},t.baseDecode=function(e){return r.from(v.default.decode(e))};var w=1024,x=function(e){u(n,e);var t=d(n);function n(e){var r;return s(this,n),(r=t.call(this,e)).fieldPath=[],r.originalMessage=e,r}return c(n,[{key:"addToFieldPath",value:function(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}]),n}(f(Error));t.BorshError=x;var _=function(){function e(){s(this,e),this.buf=r.alloc(w),this.length=0}return c(e,[{key:"maybeResize",value:function(){this.buf.length<16+this.length&&(this.buf=r.concat([this.buf,r.alloc(w)]))}},{key:"writeU8",value:function(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}},{key:"writeU16",value:function(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}},{key:"writeU32",value:function(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}},{key:"writeU64",value:function(e){this.maybeResize(),this.writeBuffer(r.from(new m.default(e).toArray("le",8)))}},{key:"writeU128",value:function(e){this.maybeResize(),this.writeBuffer(r.from(new m.default(e).toArray("le",16)))}},{key:"writeU256",value:function(e){this.maybeResize(),this.writeBuffer(r.from(new m.default(e).toArray("le",32)))}},{key:"writeU512",value:function(e){this.maybeResize(),this.writeBuffer(r.from(new m.default(e).toArray("le",64)))}},{key:"writeBuffer",value:function(e){this.buf=r.concat([r.from(this.buf.subarray(0,this.length)),e,r.alloc(w)]),this.length+=e.length}},{key:"writeString",value:function(e){this.maybeResize();var t=r.from(e,"utf8");this.writeU32(t.length),this.writeBuffer(t)}},{key:"writeFixedArray",value:function(e){this.writeBuffer(r.from(e))}},{key:"writeArray",value:function(e,t){this.maybeResize(),this.writeU32(e.length);var n,r=o(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;this.maybeResize(),t(a)}}catch(e){r.e(e)}finally{r.f()}}},{key:"toArray",value:function(){return this.buf.subarray(0,this.length)}}]),e}();function k(e,t,n){var r=n.value;n.value=function(){try{for(var e=arguments.length,t=new Array(e),n=0;n=0)throw new x("Reached the end of buffer when deserializing")}throw e}}}t.BinaryWriter=_;var I=function(){function e(t){s(this,e),this.buf=t,this.offset=0}return c(e,[{key:"readU8",value:function(){var e=this.buf.readUInt8(this.offset);return this.offset+=1,e}},{key:"readU16",value:function(){var e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}},{key:"readU32",value:function(){var e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}},{key:"readU64",value:function(){var e=this.readBuffer(8);return new m.default(e,"le")}},{key:"readU128",value:function(){var e=this.readBuffer(16);return new m.default(e,"le")}},{key:"readU256",value:function(){var e=this.readBuffer(32);return new m.default(e,"le")}},{key:"readU512",value:function(){var e=this.readBuffer(64);return new m.default(e,"le")}},{key:"readBuffer",value:function(e){if(this.offset+e>this.buf.length)throw new x("Expected buffer length ".concat(e," isn't within bounds"));var t=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,t}},{key:"readString",value:function(){var e=this.readU32(),t=this.readBuffer(e);try{return A.decode(t)}catch(e){throw new x("Error decoding UTF-8 string: ".concat(e))}}},{key:"readFixedArray",value:function(e){return new Uint8Array(this.readBuffer(e))}},{key:"readArray",value:function(e){for(var t=this.readU32(),n=Array(),r=0;r=r.values.length)throw new x("Enum index: ".concat(b," is out of range"));var p=i(r.values[b],2),h=p[0],y=T(e,h,p[1],n);return new t(a({},h,y))}throw new x("Unexpected schema kind: ".concat(r.kind," for ").concat(t.constructor.name))}p([k],I.prototype,"readU8",null),p([k],I.prototype,"readU16",null),p([k],I.prototype,"readU32",null),p([k],I.prototype,"readU64",null),p([k],I.prototype,"readU128",null),p([k],I.prototype,"readU256",null),p([k],I.prototype,"readU512",null),p([k],I.prototype,"readString",null),p([k],I.prototype,"readFixedArray",null),p([k],I.prototype,"readArray",null),t.BinaryReader=I,t.serialize=function(e,t){var n=new(arguments.length>2&&void 0!==arguments[2]?arguments[2]:_);return C(e,t,n),n.toArray()},t.deserialize=function(e,t,n){var r=new(arguments.length>3&&void 0!==arguments[3]?arguments[3]:I)(n),a=O(e,t,r);if(r.offset3&&void 0!==arguments[3]?arguments[3]:I)(n))}},33756:function(e,t,n){var r;function a(e){this.rand=e}if(e.exports=function(e){return r||(r=new a(null)),r.generate(e)},e.exports.Rand=a,a.prototype.generate=function(e){return this._rand(e)},a.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n0){var i=r.substring(0,a).trim(),o=r.substring(a+1).trim();this.append(i,o)}}},e.prototype.delete=function(e,t){var n=r.normalizeName(e);if(void 0===t)delete this.headersMap[n];else{var a=this.headersMap[n];if(a){var i=a.indexOf(t);i>=0&&a.splice(i,1),0===a.length&&delete this.headersMap[n]}}},e.prototype.append=function(e,t){var n=this,a=r.normalizeName(e);Array.isArray(this.headersMap[a])||(this.headersMap[a]=[]),Array.isArray(t)?t.forEach((function(e){n.headersMap[a].push(r.normalizeValue(e))})):this.headersMap[a].push(r.normalizeValue(t))},e.prototype.set=function(e,t){var n=r.normalizeName(e);if(Array.isArray(t)){var a=[];t.forEach((function(e){a.push(r.normalizeValue(e))})),this.headersMap[n]=a}else this.headersMap[n]=[r.normalizeValue(t)]},e.prototype.has=function(e,t){var n=this.headersMap[r.normalizeName(e)];if(!Array.isArray(n))return!1;if(void 0!==t){var a=r.normalizeValue(t);return n.indexOf(a)>=0}return!0},e.prototype.get=function(e){var t=this.headersMap[r.normalizeName(e)];return void 0!==t?t.concat():[]},e.prototype.forEach=function(e){var t=this;Object.getOwnPropertyNames(this.headersMap).forEach((function(n){e(n,t.headersMap[n])}),this)},e.prototype.toHeaders=function(){if("undefined"!=typeof Headers){var e=new Headers;return this.forEach((function(t,n){n.forEach((function(n){e.append(t,n)}))})),e}throw new Error("Headers class is not defined")},e}();t.BrowserHeaders=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.BrowserHeaders=r.BrowserHeaders},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.iterateHeaders=function(e,t){for(var n=e[Symbol.iterator](),r=n.next();!r.done;)t(r.value[0]),r=n.next()},t.iterateHeadersKeys=function(e,t){for(var n=e.keys(),r=n.next();!r.done;)t(r.value),r=n.next()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);t.normalizeName=function(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()},t.normalizeValue=function(e){return"string"!=typeof e&&(e=String(e)),e},t.getHeaderValues=function(e,t){var n=e;if(n instanceof Headers&&n.getAll)return n.getAll(t);var r=n.get(t);return r&&"string"==typeof r?[r]:r},t.getHeaderKeys=function(e){var t=e,n={},a=[];return t.keys?r.iterateHeadersKeys(t,(function(e){n[e]||(n[e]=!0,a.push(e))})):t.forEach?t.forEach((function(e,t){n[t]||(n[t]=!0,a.push(t))})):r.iterateHeaders(t,(function(e){var t=e[0];n[t]||(n[t]=!0,a.push(t))})),a},t.splitHeaderValue=function(e){var t=[];return e.split(", ").forEach((function(e){e.split(",").forEach((function(e){t.push(e)}))})),t}}])},e.exports=t()},23066:function(e,t,n){var r=n(31892).Buffer;function a(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),a=0;a>>24]^d[p>>>16&255]^f[h>>>8&255]^l[255&y]^t[m++],o=u[p>>>24]^d[h>>>16&255]^f[y>>>8&255]^l[255&b]^t[m++],s=u[h>>>24]^d[y>>>16&255]^f[b>>>8&255]^l[255&p]^t[m++],c=u[y>>>24]^d[b>>>16&255]^f[p>>>8&255]^l[255&h]^t[m++],b=i,p=o,h=s,y=c;return i=(r[b>>>24]<<24|r[p>>>16&255]<<16|r[h>>>8&255]<<8|r[255&y])^t[m++],o=(r[p>>>24]<<24|r[h>>>16&255]<<16|r[y>>>8&255]<<8|r[255&b])^t[m++],s=(r[h>>>24]<<24|r[y>>>16&255]<<16|r[b>>>8&255]<<8|r[255&p])^t[m++],c=(r[y>>>24]<<24|r[b>>>16&255]<<16|r[p>>>8&255]<<8|r[255&h])^t[m++],[i>>>=0,o>>>=0,s>>>=0,c>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],a=[[],[],[],[]],i=[[],[],[],[]],o=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,n[o]=u,r[u]=o;var d=e[o],f=e[d],l=e[f],b=257*e[u]^16843008*u;a[0][o]=b<<24|b>>>8,a[1][o]=b<<16|b>>>16,a[2][o]=b<<8|b>>>24,a[3][o]=b,b=16843009*l^65537*f^257*d^16843008*o,i[0][u]=b<<24|b>>>8,i[1][u]=b<<16|b>>>16,i[2][u]=b<<8|b>>>24,i[3][u]=b,0===o?o=s=1:(o=d^e[e[e[l^d]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:a,INV_SUB_MIX:i}}();function u(e){this._key=a(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),a=[],i=0;i>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=s[i/t|0]<<24):t>6&&i%t==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),a[i]=a[i-t]^o}for(var u=[],d=0;d>>24]]^c.INV_SUB_MIX[1][c.SBOX[l>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[l>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&l]]}this._nRounds=n,this._keySchedule=a,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return o(e=a(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},u.prototype.decryptBlock=function(e){var t=(e=a(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),i=r.allocUnsafe(16);return i.writeUInt32BE(n[0],0),i.writeUInt32BE(n[3],4),i.writeUInt32BE(n[2],8),i.writeUInt32BE(n[1],12),i},u.prototype.scrub=function(){i(this._keySchedule),i(this._invKeySchedule),i(this._key)},e.exports.AES=u},81960:function(e,t,n){var r=n(23066),a=n(31892).Buffer,i=n(85422),o=n(56249),s=n(31546),c=n(43071),u=n(16357);function d(e,t,n,o){i.call(this);var c=a.alloc(4,0);this._cipher=new r.AES(t);var d=this._cipher.encryptBlock(c);this._ghash=new s(d),n=function(e,t,n){if(12===t.length)return e._finID=a.concat([t,a.from([0,0,0,1])]),a.concat([t,a.from([0,0,0,2])]);var r=new s(n),i=t.length,o=i%16;r.update(t),o&&(o=16-o,r.update(a.alloc(o,0))),r.update(a.alloc(8,0));var c=8*i,d=a.alloc(8);d.writeUIntBE(c,0,8),r.update(d),e._finID=r.state;var f=a.from(e._finID);return u(f),f}(this,n,d),this._prev=a.from(n),this._cache=a.allocUnsafe(0),this._secCache=a.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(d,i),d.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=a.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},d.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),a=0;a16)throw new Error("unable to decrypt data");for(var n=-1;++n16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=i[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=u(t,!1,n.key,n.iv);return l(e,r.key,r.iv)},t.createDecipheriv=l},5444:function(e,t,n){var r=n(95888),a=n(81960),i=n(31892).Buffer,o=n(34844),s=n(85422),c=n(23066),u=n(25656);function d(e,t,n){s.call(this),this._cache=new l,this._cipher=new c.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}n(56249)(d,s),d.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return i.concat(r)};var f=i.alloc(16,16);function l(){this.cache=i.allocUnsafe(0)}function b(e,t,n){var s=r[e.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=i.from(t)),t.length!==s.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new o(s.module,t,n):"auth"===s.type?new a(s.module,t,n):new d(s.module,t,n)}d.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},d.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},l.prototype.add=function(e){this.cache=i.concat([this.cache,e])},l.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},l.prototype.flush=function(){for(var e=16-this.cache.length,t=i.allocUnsafe(e),n=-1;++n>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=i(a)},o.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,a],16)),this.ghash(i([0,e,0,t])),this.state},e.exports=o},16357:function(e){e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},84371:function(e,t,n){var r=n(43071);t.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var a=e._cipher.decryptBlock(t);return r(a,n)}},84579:function(e,t,n){var r=n(31892).Buffer,a=n(43071);function i(e,t,n){var i=t.length,o=a(t,e._cache);return e._cache=e._cache.slice(i),e._prev=r.concat([e._prev,n?t:o]),o}t.encrypt=function(e,t,n){for(var a,o=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){o=r.concat([o,i(e,t,n)]);break}a=e._cache.length,o=r.concat([o,i(e,t.slice(0,a),n)]),t=t.slice(a)}return o}},80783:function(e,t,n){var r=n(31892).Buffer;function a(e,t,n){for(var r,a,o=-1,s=0;++o<8;)r=t&1<<7-o?128:0,s+=(128&(a=e._cipher.encryptBlock(e._prev)[0]^r))>>o%8,e._prev=i(e._prev,n?r:a);return s}function i(e,t){var n=e.length,a=-1,i=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++a>7;return i}t.encrypt=function(e,t,n){for(var i=t.length,o=r.allocUnsafe(i),s=-1;++s=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function s(e,t){var n=function(e){var t=o(e);return{blinder:t.toRed(a.mont(e.modulus)).redPow(new a(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),i=t.modulus.byteLength(),s=new a(e).mul(n.blinder).umod(t.modulus),c=s.toRed(a.mont(t.prime1)),u=s.toRed(a.mont(t.prime2)),d=t.coefficient,f=t.prime1,l=t.prime2,b=c.redPow(t.exponent1).fromRed(),p=u.redPow(t.exponent2).fromRed(),h=b.isub(p).imul(d).umod(f).imul(l);return p.iadd(h).imul(n.unblinder).umod(t.modulus).toArrayLike(r,"be",i)}s.getr=o,e.exports=s},65567:function(e,t,n){e.exports=n(17536)},70710:function(e,t,n){var r=n(31892).Buffer,a=n(51132),i=n(96181),o=n(56249),s=n(19421),c=n(70316),u=n(17536);function d(e){i.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function f(e){i.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){return new d(e)}function b(e){return new f(e)}Object.keys(u).forEach((function(e){u[e].id=r.from(u[e].id,"hex"),u[e.toLowerCase()]=u[e]})),o(d,i.Writable),d.prototype._write=function(e,t,n){this._hash.update(e),n()},d.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},d.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=s(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},o(f,i.Writable),f.prototype._write=function(e,t,n){this._hash.update(e),n()},f.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},f.prototype.verify=function(e,t,n){"string"==typeof t&&(t=r.from(t,n)),this.end();var a=this._hash.digest();return c(t,a,e,this._signType,this._tag)},e.exports={Sign:l,Verify:b,createSign:l,createVerify:b}},19421:function(e,t,n){var r=n(31892).Buffer,a=n(79710),i=n(30510),o=n(98722).ec,s=n(22097),c=n(64017),u=n(87330);function d(e,t,n,i){if((e=r.from(e.toArray())).length0&&n.ishrn(r),n}function l(e,t,n){var i,o;do{for(i=r.alloc(0);8*i.length=t)throw new Error("invalid sig")}e.exports=function(e,t,n,u,d){var f=o(n);if("ec"===f.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(e,t,n){var r=s[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var a=new i(r),o=n.data.subjectPrivateKey.data;return a.verify(t,e,o)}(e,t,f)}if("dsa"===f.type){if("dsa"!==u)throw new Error("wrong public key type");return function(e,t,n){var r=n.data.p,i=n.data.q,s=n.data.g,u=n.data.pub_key,d=o.signature.decode(e,"der"),f=d.s,l=d.r;c(f,i),c(l,i);var b=a.mont(r),p=f.invm(i);return 0===s.toRed(b).redPow(new a(t).mul(p).mod(i)).fromRed().mul(u.toRed(b).redPow(l.mul(p).mod(i)).fromRed()).mod(r).mod(i).cmp(l)}(e,t,f)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");t=r.concat([d,t]);for(var l=f.modulus.byteLength(),b=[1],p=0;t.length+b.length+2this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(e){var t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}},{key:"fromArray",value:function(e){}}]),e}();function f(e,t){return t.property?e+"["+t.property+"]":e}t.Layout=d,t.nameWithProperty=f,t.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(e.hasOwnProperty("layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof d))throw new TypeError("layout must be a Layout");if(t.hasOwnProperty("boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=function(){return new e},Object.defineProperty(e.prototype,"encode",{value:function(e,n){return t.encode(this,e,n)},writable:!0}),Object.defineProperty(e,"decode",{value:function(e,n){return t.decode(e,n)},writable:!0})};var l=function(e){o(n,e);var t=s(n);function n(){return c(this,n),t.apply(this,arguments)}return u(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}(d),b=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),void 0===e&&(e=1),!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");return(a=t.call(this,-1,r)).elementSpan=e,a}return u(n,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.length-t;return Math.floor(n/this.elementSpan)}},{key:"encode",value:function(e,t,n){return 0}}]),n}(l),p=function(e){o(n,e);var t=s(n);function n(e,r,a){var i;if(c(this,n),!(e instanceof d))throw new TypeError("layout must be a Layout");if(void 0===r)r=0;else if(!Number.isInteger(r))throw new TypeError("offset must be integer or undefined");return(i=t.call(this,e.span,a||e.property)).layout=e,i.offset=r,i}return u(n,[{key:"isCount",value:function(){return this.layout instanceof h||this.layout instanceof y}},{key:"decode",value:function(e,t){return void 0===t&&(t=0),this.layout.decode(e,t+this.offset)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),this.layout.encode(e,t,n+this.offset)}}]),n}(l),h=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readUIntLE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeUIntLE(e,n,this.span),this.span}}]),n}(d),y=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readUIntBE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeUIntBE(e,n,this.span),this.span}}]),n}(d),m=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readIntLE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeIntLE(e,n,this.span),this.span}}]),n}(d),v=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),6<(a=t.call(this,e,r)).span)throw new RangeError("span must not exceed 6 bytes");return a}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readIntBE(t,this.span)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeIntBE(e,n,this.span),this.span}}]),n}(d),g=Math.pow(2,32);function A(e){var t=Math.floor(e/g);return{hi32:t,lo32:e-t*g}}function w(e,t){return e*g+t}var x=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.readUInt32LE(t);return w(e.readUInt32LE(t+4),n)}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=A(e);return t.writeUInt32LE(r.lo32,n),t.writeUInt32LE(r.hi32,n+4),8}}]),n}(d),_=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),w(e.readUInt32BE(t),e.readUInt32BE(t+4))}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=A(e);return t.writeUInt32BE(r.hi32,n),t.writeUInt32BE(r.lo32,n+4),8}}]),n}(d),k=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=e.readUInt32LE(t);return w(e.readInt32LE(t+4),n)}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=A(e);return t.writeUInt32LE(r.lo32,n),t.writeInt32LE(r.hi32,n+4),8}}]),n}(d),I=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),w(e.readInt32BE(t),e.readUInt32BE(t+4))}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=A(e);return t.writeInt32BE(r.hi32,n),t.writeUInt32BE(r.lo32,n+4),8}}]),n}(d),S=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,4,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readFloatLE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeFloatLE(e,n),4}}]),n}(d),E=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,4,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readFloatBE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeFloatBE(e,n),4}}]),n}(d),C=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readDoubleLE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeDoubleLE(e,n),8}}]),n}(d),T=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,8,e)}return u(n,[{key:"decode",value:function(e,t){return void 0===t&&(t=0),e.readDoubleBE(t)}},{key:"encode",value:function(e,t,n){return void 0===n&&(n=0),t.writeDoubleBE(e,n),8}}]),n}(d),O=function(e){o(n,e);var t=s(n);function n(e,r,a){var i;if(c(this,n),!(e instanceof d))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof l&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var o=-1;return!(r instanceof l)&&0f.span&&void 0===f.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(e){u.e(e)}finally{u.f()}var l=-1;try{l=e.reduce((function(e,t){return e+t.getSpan()}),0)}catch(e){}return(o=t.call(this,l,r)).fields=e,o.decodePrefixes=!!a,o}return u(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=0;try{n=this.fields.reduce((function(n,r){var a=r.getSpan(e,t);return t+=a,n+a}),0)}catch(e){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n,r=this.makeDestinationObject(),a=i(this.fields);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(void 0!==o.property&&(r[o.property]=o.decode(e,t)),t+=o.getSpan(e,t),this.decodePrefixes&&e.length===t)break}}catch(e){a.e(e)}finally{a.f()}return r}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r,a=n,o=0,s=0,c=i(this.fields);try{for(c.s();!(r=c.n()).done;){var u=r.value,d=u.span;if(s=0d&&(d=u.getSpan(t,n)))}o=n,n+=d}}catch(e){c.e(e)}finally{c.f()}return o+s-a}},{key:"fromArray",value:function(e){var t,n=this.makeDestinationObject(),r=i(this.fields);try{for(r.s();!(t=r.n()).done;){var a=t.value;void 0!==a.property&&0a.span?n=-1:0<=n&&(n+=a.span)}}catch(e){r.e(e)}finally{r.f()}}}]),n}(d),M=function(){function e(t){c(this,e),this.property=t}return u(e,[{key:"decode",value:function(){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(){throw new Error("UnionDiscriminator is abstract")}}]),e}(),B=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),!(e instanceof l&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(a=t.call(this,r||e.property||"variant")).layout=e,a}return u(n,[{key:"decode",value:function(e,t){return this.layout.decode(e,t)}},{key:"encode",value:function(e,t,n){return this.layout.encode(e,t,n)}}]),n}(M),N=function(e){o(n,e);var t=s(n);function n(e,r,i){var o;c(this,n);var s=e instanceof h||e instanceof y;if(s)e=new B(new p(e));else if(e instanceof l&&e.isCount())e=new B(e);else if(!(e instanceof M))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===r&&(r=null),!(null===r||r instanceof d))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var u=-1;r&&0<=(u=r.span)&&s&&(u+=e.layout.span),(o=t.call(this,u,i)).discriminator=e,o.usesPrefixDiscriminator=s,o.defaultLayout=r,o.registry={};var f=o.defaultGetSourceVariant.bind(a(o));return o.getSourceVariant=function(e){return f(e)},o.configGetSourceVariant=function(e){f=e.bind(this)},o}return u(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}},{key:"defaultGetSourceVariant",value:function(e){if(e.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&e.hasOwnProperty(this.defaultLayout.property))return;var t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||e.hasOwnProperty(t.property)))return t}else for(var n in this.registry){var r=this.registry[n];if(e.hasOwnProperty(r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(e,t){var n;void 0===t&&(t=0);var r=this.discriminator,a=r.decode(e,t),i=this.registry[a];if(void 0===i){var o=0;i=this.defaultLayout,this.usesPrefixDiscriminator&&(o=r.layout.span),(n=this.makeDestinationObject())[r.property]=a,n[i.property]=this.defaultLayout.decode(e,t+o)}else n=i.decode(e,t);return n}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=this.getSourceVariant(e);if(void 0===r){var a=this.discriminator,i=this.defaultLayout,o=0;return this.usesPrefixDiscriminator&&(o=a.layout.span),a.encode(e[a.property],t,n),o+i.encode(e[i.property],t,n+o)}return r.encode(e,t,n)}},{key:"addVariant",value:function(e,t,n){var r=new R(this,e,t,n);return this.registry[e]=r,r}},{key:"getVariant",value:function(e,t){var n=e;return r.isBuffer(e)&&(void 0===t&&(t=0),n=this.discriminator.decode(e,t)),this.registry[n]}}]),n}(d),R=function(e){o(n,e);var t=s(n);function n(e,r,a,i){var o;if(c(this,n),!(e instanceof N))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof a&&void 0===i&&(i=a,a=null),a){if(!(a instanceof d))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=a.span&&a.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof i)throw new TypeError("variant must have a String property")}var s=e.span;return 0>e.span&&0<=(s=a?a.span:0)&&e.usesPrefixDiscriminator&&(s+=e.discriminator.layout.span),(o=t.call(this,s,i)).union=e,o.variant=r,o.layout=a||null,o}return u(n,[{key:"getSpan",value:function(e,t){if(0<=this.span)return this.span;void 0===t&&(t=0);var n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),n+this.layout.getSpan(e,t+n)}},{key:"decode",value:function(e,t){var n=this.makeDestinationObject();if(void 0===t&&(t=0),this!==this.union.getVariant(e,t))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(e,t,n){void 0===n&&(n=0);var r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!e.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);var a=r;if(this.layout&&(this.layout.encode(e[this.property],t,n+r),a+=this.layout.getSpan(t,n+r),0<=this.union.span&&a>this.union.span))throw new Error("encoded variant overruns containing union");return a}},{key:"fromArray",value:function(e){if(this.layout)return this.layout.fromArray(e)}}]),n}(d);function D(e){return 0>e&&(e+=4294967296),e}var j=function(e){o(n,e);var t=s(n);function n(e,r,a){var i;if(c(this,n),!(e instanceof h||e instanceof y))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof r&&void 0===a&&(a=r,r=void 0),4=n)throw new TypeError("bits must be positive integer");var a=8*t.span,i=t.fields.reduce((function(e,t){return e+t.bits}),0);if(n+i>a)throw new Error("bits too long for span remainder ("+(a-i)+" of "+a+" remain)");this.container=t,this.bits=n,this.valueMask=(1<>>this.start}},{key:"encode",value:function(e){if(!Number.isInteger(e)||e!==D(e&this.valueMask))throw new TypeError(f("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var t=this.container._packedGetValue(),n=D(e<n&&(n=this.length.decode(e,t)),n}},{key:"decode",value:function(e,t){void 0===t&&(t=0);var n=this.span;return 0>n&&(n=this.length.decode(e,t)),e.slice(t,t+n)}},{key:"encode",value:function(e,t,n){var a=this.length;if(this.length instanceof l&&(a=e.length),!r.isBuffer(e)||a!==e.length)throw new TypeError(f("Blob.encode",this)+" requires (length "+a+") Buffer as src");if(n+a>t.length)throw new RangeError("encoding overruns Buffer");return t.write(e.toString("hex"),n,a,"hex"),this.length instanceof l&&this.length.encode(a,t,n),a}}]),n}(d),Z=function(e){o(n,e);var t=s(n);function n(e){return c(this,n),t.call(this,-1,e)}return u(n,[{key:"getSpan",value:function(e,t){if(!r.isBuffer(e))throw new TypeError("b must be a Buffer");void 0===t&&(t=0);for(var n=t;nt.length)throw new RangeError("encoding overruns Buffer");return a.copy(t,n),t[n+i]=0,i+1}}]),n}(d),H=function(e){o(n,e);var t=s(n);function n(e,r){var a;if(c(this,n),"string"==typeof e&&void 0===r&&(r=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");return(a=t.call(this,-1,r)).maxSpan=e,a}return u(n,[{key:"getSpan",value:function(e,t){if(!r.isBuffer(e))throw new TypeError("b must be a Buffer");return void 0===t&&(t=0),e.length-t}},{key:"decode",value:function(e,t,n){void 0===t&&(t=0);var r=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpant.length)throw new RangeError("encoding overruns Buffer");return a.copy(t,n),i}}]),n}(d),z=function(e){o(n,e);var t=s(n);function n(e,r){var a;return c(this,n),(a=t.call(this,0,r)).value=e,a}return u(n,[{key:"decode",value:function(e,t,n){return this.value}},{key:"encode",value:function(e,t,n){return 0}}]),n}(d);t.ExternalLayout=l,t.GreedyCount=b,t.OffsetLayout=p,t.UInt=h,t.UIntBE=y,t.Int=m,t.IntBE=v,t.Float=S,t.FloatBE=E,t.Double=C,t.DoubleBE=T,t.Sequence=O,t.Structure=P,t.UnionDiscriminator=M,t.UnionLayoutDiscriminator=B,t.Union=N,t.VariantLayout=R,t.BitStructure=j,t.BitField=U,t.Boolean=L,t.Blob=F,t.CString=Z,t.UTF8=H,t.Constant=z,t.greedy=function(e,t){return new b(e,t)},t.offset=function(e,t,n){return new p(e,t,n)},t.u8=function(e){return new h(1,e)},t.u16=function(e){return new h(2,e)},t.u24=function(e){return new h(3,e)},t.u32=function(e){return new h(4,e)},t.u40=function(e){return new h(5,e)},t.u48=function(e){return new h(6,e)},t.nu64=function(e){return new x(e)},t.u16be=function(e){return new y(2,e)},t.u24be=function(e){return new y(3,e)},t.u32be=function(e){return new y(4,e)},t.u40be=function(e){return new y(5,e)},t.u48be=function(e){return new y(6,e)},t.nu64be=function(e){return new _(e)},t.s8=function(e){return new m(1,e)},t.s16=function(e){return new m(2,e)},t.s24=function(e){return new m(3,e)},t.s32=function(e){return new m(4,e)},t.s40=function(e){return new m(5,e)},t.s48=function(e){return new m(6,e)},t.ns64=function(e){return new k(e)},t.s16be=function(e){return new v(2,e)},t.s24be=function(e){return new v(3,e)},t.s32be=function(e){return new v(4,e)},t.s40be=function(e){return new v(5,e)},t.s48be=function(e){return new v(6,e)},t.ns64be=function(e){return new I(e)},t.f32=function(e){return new S(e)},t.f32be=function(e){return new E(e)},t.f64=function(e){return new C(e)},t.f64be=function(e){return new T(e)},t.struct=function(e,t,n){return new P(e,t,n)},t.bits=function(e,t,n){return new j(e,t,n)},t.seq=function(e,t,n){return new O(e,t,n)},t.union=function(e,t,n){return new N(e,t,n)},t.unionLayoutDiscriminator=function(e,t){return new B(e,t)},t.blob=function(e,t){return new F(e,t)},t.cstr=function(e){return new Z(e)},t.utf8=function(e,t){return new H(e,t)},t.const=function(e,t){return new z(e,t)}},43071:function(e,t,n){var r=n(5886).Buffer;e.exports=function(e,t){for(var n=Math.min(e.length,t.length),a=new r(n),i=0;if)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,b.prototype),t}function b(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return y(e)}return p(e,t,n)}function p(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!b.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|A(e,t),r=l(n),a=r.write(e,t);return a!==n&&(r=r.slice(0,a)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ee(e,Uint8Array)){var t=new Uint8Array(e);return v(t.buffer,t.byteOffset,t.byteLength)}return m(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ee(e,ArrayBuffer)||e&&ee(e.buffer,ArrayBuffer))return v(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(ee(e,SharedArrayBuffer)||e&&ee(e.buffer,SharedArrayBuffer)))return v(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return b.from(r,t,n);var a=function(e){if(b.isBuffer(e)){var t=0|g(e.length),n=l(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||te(e.length)?l(0):m(e):"Buffer"===e.type&&Array.isArray(e.data)?m(e.data):void 0}(e);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return b.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function y(e){return h(e),l(e<0?0:0|g(e))}function m(e){for(var t=e.length<0?0:0|g(e.length),n=l(t),r=0;r=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return 0|e}function A(e,t){if(b.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ee(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var a=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(e).length;default:if(a)return r?-1:Y(e).length;t=(""+t).toLowerCase(),a=!0}}function w(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return R(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return B(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _(e,t,n,r,a){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),te(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof t&&(t=b.from(t,r)),b.isBuffer(t))return 0===t.length?-1:k(e,t,n,r,a);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,r,a){var i,o=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){var d=-1;for(i=n;is&&(n=s-c),i=n;i>=0;i--){for(var f=!0,l=0;la&&(r=a):r=a;var i,o=t.length;for(r>o/2&&(r=o/2),i=0;i>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?c.fromByteArray(e):c.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],a=t;a239?4:i>223?3:i>191?2:1;if(a+s<=n){var c=void 0,u=void 0,d=void 0,f=void 0;switch(s){case 1:i<128&&(o=i);break;case 2:128==(192&(c=e[a+1]))&&(f=(31&i)<<6|63&c)>127&&(o=f);break;case 3:c=e[a+1],u=e[a+2],128==(192&c)&&128==(192&u)&&(f=(15&i)<<12|(63&c)<<6|63&u)>2047&&(f<55296||f>57343)&&(o=f);break;case 4:c=e[a+1],u=e[a+2],d=e[a+3],128==(192&c)&&128==(192&u)&&128==(192&d)&&(f=(15&i)<<18|(63&c)<<12|(63&u)<<6|63&d)>65535&&f<1114112&&(o=f)}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),a+=s}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);for(var n="",r=0;rr.length?(b.isBuffer(i)||(i=b.from(i)),i.copy(r,a)):Uint8Array.prototype.set.call(r,i,a);else{if(!b.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,a)}a+=i.length}return r},b.byteLength=A,b.prototype._isBuffer=!0,b.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},d&&(b.prototype[d]=b.prototype.inspect),b.prototype.compare=function(e,t,n,r,a){if(ee(e,Uint8Array)&&(e=b.from(e,e.offset,e.byteLength)),!b.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(i,o),c=this.slice(r,a),u=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return I(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},b.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function B(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;ar)&&(n=r);for(var a="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function U(e,t,n,r,a,i){if(!b.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||te.length)throw new RangeError("Index out of range")}function L(e,t,n,r,a){J(t,r,a,e,n,7);var i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function F(e,t,n,r,a){J(t,r,a,e,n,7);var i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;var o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function Z(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,a){return t=+t,n>>>=0,a||Z(e,0,n,4),u.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,a){return t=+t,n>>>=0,a||Z(e,0,n,8),u.write(e,t,n,r,52,8),n+8}b.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e],a=1,i=0;++i>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e+--t],a=1;t>0&&(a*=256);)r+=this[e+--t]*a;return r},b.prototype.readUint8=b.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},b.prototype.readUint16LE=b.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},b.prototype.readUint16BE=b.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},b.prototype.readUint32LE=b.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},b.prototype.readUint32BE=b.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},b.prototype.readBigUInt64LE=re((function(e){K(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),a=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+n*Math.pow(2,24);return BigInt(r)+(BigInt(a)<>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],a=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n;return(BigInt(r)<>>=0,t>>>=0,n||j(e,t,this.length);for(var r=this[e],a=1,i=0;++i=(a*=128)&&(r-=Math.pow(2,8*t)),r},b.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);for(var r=t,a=1,i=this[e+--r];r>0&&(a*=256);)i+=this[e+--r]*a;return i>=(a*=128)&&(i-=Math.pow(2,8*t)),i},b.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},b.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},b.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},b.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},b.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},b.prototype.readBigInt64LE=re((function(e){K(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(n<<24);return(BigInt(r)<>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||G(e,this.length-8);var r=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(r)<>>=0,t||j(e,4,this.length),u.read(this,e,!0,23,4)},b.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),u.read(this,e,!1,23,4)},b.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),u.read(this,e,!0,52,8)},b.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),u.read(this,e,!1,52,8)},b.prototype.writeUintLE=b.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var a=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,r||U(this,e,t,n,Math.pow(2,8*n)-1,0);var a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},b.prototype.writeUint8=b.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,255,0),this[t]=255&e,t+1},b.prototype.writeUint16LE=b.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},b.prototype.writeUint16BE=b.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},b.prototype.writeUint32LE=b.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},b.prototype.writeUint32BE=b.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},b.prototype.writeBigUInt64LE=re((function(e){return L(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),b.prototype.writeBigUInt64BE=re((function(e){return F(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),b.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);U(this,e,t,n,a-1,-a)}var i=0,o=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},b.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);U(this,e,t,n,a-1,-a)}var i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o>>0)-s&255;return t+n},b.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},b.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},b.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},b.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},b.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||U(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},b.prototype.writeBigInt64LE=re((function(e){return L(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),b.prototype.writeBigInt64BE=re((function(e){return F(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),b.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},b.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},b.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},b.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},b.prototype.copy=function(e,t,n,r){if(!b.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function J(e,t,n,r,a,i){if(e>n||e3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(i+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(i+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(i+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(n).concat(s),new Q.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){K(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||G(t,e.length-(n+1))}(r,a,i)}function K(e,t){if("number"!=typeof e)throw new Q.ERR_INVALID_ARG_TYPE(t,"number",e)}function G(e,t,n){if(Math.floor(e)!==e)throw K(e,n),new Q.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new Q.ERR_BUFFER_OUT_OF_BOUNDS;throw new Q.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}q("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),q("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),q("ERR_OUT_OF_RANGE",(function(e,t,n){var r='The value of "'.concat(e,'" is out of range.'),a=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?a=V(String(n)):"bigint"==typeof n&&(a=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(a=V(a)),a+="n"),r+" It must be ".concat(t,". Received ").concat(a)}),RangeError);var W=/[^+/0-9A-Za-z-_]/g;function Y(e,t){var n;t=t||1/0;for(var r=e.length,a=null,i=[],o=0;o55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function X(e){return c.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){var a;for(a=0;a=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function ee(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function te(e){return e!=e}var ne=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,a=0;a<16;++a)t[r+a]=e[n]+e[a];return t}();function re(e){return"undefined"==typeof BigInt?ae:e}function ae(){throw new Error("BigInt not supported")}},70949:function(e){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},8949:function(e,t,n){"use strict";var r=n(51588),a=n(95506),i=a(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?a(n):n}},95506:function(e,t,n){"use strict";var r=n(70315),a=n(51588),i=a("%Function.prototype.apply%"),o=a("%Function.prototype.call%"),s=a("%Reflect.apply%",!0)||r.call(o,i),c=a("%Object.getOwnPropertyDescriptor%",!0),u=a("%Object.defineProperty%",!0),d=a("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var t=s(r,o,arguments);return c&&u&&c(t,"length").configurable&&u(t,"length",{value:1+d(0,e.length-(arguments.length-1))}),t};var f=function(){return s(r,i,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},85959:function(e){"use strict";var t=function(e,t){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");var n;return t=Object.assign({pascalCase:!1},t),e=Array.isArray(e)?e.map((function(e){return e.trim()})).filter((function(e){return e.length})).join("-"):e.trim(),0===e.length?"":1===e.length?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=function(e){for(var t=!1,n=!1,r=!1,a=0;a1&&void 0!==arguments[1]?arguments[1]:c.Writer.create(),i=r(e.sendEnabled);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.SendEnabled.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return!0===e.defaultSendEnabled&&a.uint32(16).bool(e.defaultSendEnabled),a},decode:function(e,n){for(var r=e instanceof c.Reader?e:new c.Reader(e),a=void 0===n?r.len:r.pos+n,i={sendEnabled:[],defaultSendEnabled:!1};r.pos>>3){case 1:i.sendEnabled.push(t.SendEnabled.decode(r,r.uint32()));break;case 2:i.defaultSendEnabled=r.bool();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{sendEnabled:Array.isArray(null==e?void 0:e.sendEnabled)?e.sendEnabled.map((function(e){return t.SendEnabled.fromJSON(e)})):[],defaultSendEnabled:!!(0,u.isSet)(e.defaultSendEnabled)&&Boolean(e.defaultSendEnabled)}},toJSON:function(e){var n={};return e.sendEnabled?n.sendEnabled=e.sendEnabled.map((function(e){return e?t.SendEnabled.toJSON(e):void 0})):n.sendEnabled=[],void 0!==e.defaultSendEnabled&&(n.defaultSendEnabled=e.defaultSendEnabled),n},fromPartial:function(e){var n,r,a={sendEnabled:[],defaultSendEnabled:!1};return a.sendEnabled=(null===(n=e.sendEnabled)||void 0===n?void 0:n.map((function(e){return t.SendEnabled.fromPartial(e)})))||[],a.defaultSendEnabled=null!==(r=e.defaultSendEnabled)&&void 0!==r&&r,a}},t.SendEnabled={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),!0===e.enabled&&t.uint32(16).bool(e.enabled),t},decode:function(e,t){for(var n=e instanceof c.Reader?e:new c.Reader(e),r=void 0===t?n.len:n.pos+t,a={denom:"",enabled:!1};n.pos>>3){case 1:a.denom=n.string();break;case 2:a.enabled=n.bool();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{denom:(0,u.isSet)(e.denom)?String(e.denom):"",enabled:!!(0,u.isSet)(e.enabled)&&Boolean(e.enabled)}},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.enabled&&(t.enabled=e.enabled),t},fromPartial:function(e){var t,n,r={denom:"",enabled:!1};return r.denom=null!==(t=e.denom)&&void 0!==t?t:"",r.enabled=null!==(n=e.enabled)&&void 0!==n&&n,r}},t.Input={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create();""!==e.address&&t.uint32(10).string(e.address);var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){for(var n=e instanceof c.Reader?e:new c.Reader(e),r=void 0===t?n.len:n.pos+t,a={address:"",coins:[]};n.pos>>3){case 1:a.address=n.string();break;case 2:a.coins.push(s.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{address:(0,u.isSet)(e.address)?String(e.address):"",coins:Array.isArray(null==e?void 0:e.coins)?e.coins.map((function(e){return s.Coin.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.coins=[],t},fromPartial:function(e){var t,n,r={address:"",coins:[]};return r.address=null!==(t=e.address)&&void 0!==t?t:"",r.coins=(null===(n=e.coins)||void 0===n?void 0:n.map((function(e){return s.Coin.fromPartial(e)})))||[],r}},t.Output={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create();""!==e.address&&t.uint32(10).string(e.address);var n,a=r(e.coins);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.Coin.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){for(var n=e instanceof c.Reader?e:new c.Reader(e),r=void 0===t?n.len:n.pos+t,a={address:"",coins:[]};n.pos>>3){case 1:a.address=n.string();break;case 2:a.coins.push(s.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{address:(0,u.isSet)(e.address)?String(e.address):"",coins:Array.isArray(null==e?void 0:e.coins)?e.coins.map((function(e){return s.Coin.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.address&&(t.address=e.address),e.coins?t.coins=e.coins.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.coins=[],t},fromPartial:function(e){var t,n,r={address:"",coins:[]};return r.address=null!==(t=e.address)&&void 0!==t?t:"",r.coins=(null===(n=e.coins)||void 0===n?void 0:n.map((function(e){return s.Coin.fromPartial(e)})))||[],r}},t.Supply={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create(),a=r(e.total);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){for(var n=e instanceof c.Reader?e:new c.Reader(e),r=void 0===t?n.len:n.pos+t,a={total:[]};n.pos>>3==1?a.total.push(s.Coin.decode(n,n.uint32())):n.skipType(7&i)}return a},fromJSON:function(e){return{total:Array.isArray(null==e?void 0:e.total)?e.total.map((function(e){return s.Coin.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.total?t.total=e.total.map((function(e){return e?s.Coin.toJSON(e):void 0})):t.total=[],t},fromPartial:function(e){var t,n={total:[]};return n.total=(null===(t=e.total)||void 0===t?void 0:t.map((function(e){return s.Coin.fromPartial(e)})))||[],n}},t.DenomUnit={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create();""!==e.denom&&t.uint32(10).string(e.denom),0!==e.exponent&&t.uint32(16).uint32(e.exponent);var n,a=r(e.aliases);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(26).string(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){for(var n=e instanceof c.Reader?e:new c.Reader(e),r=void 0===t?n.len:n.pos+t,a={denom:"",exponent:0,aliases:[]};n.pos>>3){case 1:a.denom=n.string();break;case 2:a.exponent=n.uint32();break;case 3:a.aliases.push(n.string());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{denom:(0,u.isSet)(e.denom)?String(e.denom):"",exponent:(0,u.isSet)(e.exponent)?Number(e.exponent):0,aliases:Array.isArray(null==e?void 0:e.aliases)?e.aliases.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.exponent&&(t.exponent=Math.round(e.exponent)),e.aliases?t.aliases=e.aliases.map((function(e){return e})):t.aliases=[],t},fromPartial:function(e){var t,n,r,a={denom:"",exponent:0,aliases:[]};return a.denom=null!==(t=e.denom)&&void 0!==t?t:"",a.exponent=null!==(n=e.exponent)&&void 0!==n?n:0,a.aliases=(null===(r=e.aliases)||void 0===r?void 0:r.map((function(e){return e})))||[],a}},t.Metadata={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create();""!==e.description&&n.uint32(10).string(e.description);var a,i=r(e.denomUnits);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.DenomUnit.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return""!==e.base&&n.uint32(26).string(e.base),""!==e.display&&n.uint32(34).string(e.display),""!==e.name&&n.uint32(42).string(e.name),""!==e.symbol&&n.uint32(50).string(e.symbol),n},decode:function(e,n){for(var r=e instanceof c.Reader?e:new c.Reader(e),a=void 0===n?r.len:r.pos+n,i={description:"",denomUnits:[],base:"",display:"",name:"",symbol:""};r.pos>>3){case 1:i.description=r.string();break;case 2:i.denomUnits.push(t.DenomUnit.decode(r,r.uint32()));break;case 3:i.base=r.string();break;case 4:i.display=r.string();break;case 5:i.name=r.string();break;case 6:i.symbol=r.string();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{description:(0,u.isSet)(e.description)?String(e.description):"",denomUnits:Array.isArray(null==e?void 0:e.denomUnits)?e.denomUnits.map((function(e){return t.DenomUnit.fromJSON(e)})):[],base:(0,u.isSet)(e.base)?String(e.base):"",display:(0,u.isSet)(e.display)?String(e.display):"",name:(0,u.isSet)(e.name)?String(e.name):"",symbol:(0,u.isSet)(e.symbol)?String(e.symbol):""}},toJSON:function(e){var n={};return void 0!==e.description&&(n.description=e.description),e.denomUnits?n.denomUnits=e.denomUnits.map((function(e){return e?t.DenomUnit.toJSON(e):void 0})):n.denomUnits=[],void 0!==e.base&&(n.base=e.base),void 0!==e.display&&(n.display=e.display),void 0!==e.name&&(n.name=e.name),void 0!==e.symbol&&(n.symbol=e.symbol),n},fromPartial:function(e){var n,r,a,i,o,s,c={description:"",denomUnits:[],base:"",display:"",name:"",symbol:""};return c.description=null!==(n=e.description)&&void 0!==n?n:"",c.denomUnits=(null===(r=e.denomUnits)||void 0===r?void 0:r.map((function(e){return t.DenomUnit.fromPartial(e)})))||[],c.base=null!==(a=e.base)&&void 0!==a?a:"",c.display=null!==(i=e.display)&&void 0!==i?i:"",c.name=null!==(o=e.name)&&void 0!==o?o:"",c.symbol=null!==(s=e.symbol)&&void 0!==s?s:"",c}}},13576:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(33482).default,o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.MsgClientImpl=t.MsgMultiSendResponse=t.MsgMultiSend=t.MsgSendResponse=t.MsgSend=t.protobufPackage=void 0;var u=n(42621),d=n(51803),f=c(n(46096)),l=n(54366);t.protobufPackage="cosmos.bank.v1beta1",t.MsgSend={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create();""!==e.fromAddress&&t.uint32(10).string(e.fromAddress),""!==e.toAddress&&t.uint32(18).string(e.toAddress);var n,r=i(e.amount);try{for(r.s();!(n=r.n()).done;){var a=n.value;u.Coin.encode(a,t.uint32(26).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}return t},decode:function(e,t){for(var n=e instanceof f.Reader?e:new f.Reader(e),r=void 0===t?n.len:n.pos+t,a={fromAddress:"",toAddress:"",amount:[]};n.pos>>3){case 1:a.fromAddress=n.string();break;case 2:a.toAddress=n.string();break;case 3:a.amount.push(u.Coin.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{fromAddress:(0,l.isSet)(e.fromAddress)?String(e.fromAddress):"",toAddress:(0,l.isSet)(e.toAddress)?String(e.toAddress):"",amount:Array.isArray(null==e?void 0:e.amount)?e.amount.map((function(e){return u.Coin.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.fromAddress&&(t.fromAddress=e.fromAddress),void 0!==e.toAddress&&(t.toAddress=e.toAddress),e.amount?t.amount=e.amount.map((function(e){return e?u.Coin.toJSON(e):void 0})):t.amount=[],t},fromPartial:function(e){var t,n,r,a={fromAddress:"",toAddress:"",amount:[]};return a.fromAddress=null!==(t=e.fromAddress)&&void 0!==t?t:"",a.toAddress=null!==(n=e.toAddress)&&void 0!==n?n:"",a.amount=(null===(r=e.amount)||void 0===r?void 0:r.map((function(e){return u.Coin.fromPartial(e)})))||[],a}},t.MsgSendResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create()},decode:function(e,t){for(var n=e instanceof f.Reader?e:new f.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:f.Writer.create(),r=i(e.inputs);try{for(r.s();!(t=r.n()).done;){var a=t.value;d.Input.encode(a,n.uint32(10).fork()).ldelim()}}catch(e){r.e(e)}finally{r.f()}var o,s=i(e.outputs);try{for(s.s();!(o=s.n()).done;){var c=o.value;d.Output.encode(c,n.uint32(18).fork()).ldelim()}}catch(e){s.e(e)}finally{s.f()}return n},decode:function(e,t){for(var n=e instanceof f.Reader?e:new f.Reader(e),r=void 0===t?n.len:n.pos+t,a={inputs:[],outputs:[]};n.pos>>3){case 1:a.inputs.push(d.Input.decode(n,n.uint32()));break;case 2:a.outputs.push(d.Output.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{inputs:Array.isArray(null==e?void 0:e.inputs)?e.inputs.map((function(e){return d.Input.fromJSON(e)})):[],outputs:Array.isArray(null==e?void 0:e.outputs)?e.outputs.map((function(e){return d.Output.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.inputs?t.inputs=e.inputs.map((function(e){return e?d.Input.toJSON(e):void 0})):t.inputs=[],e.outputs?t.outputs=e.outputs.map((function(e){return e?d.Output.toJSON(e):void 0})):t.outputs=[],t},fromPartial:function(e){var t,n,r={inputs:[],outputs:[]};return r.inputs=(null===(t=e.inputs)||void 0===t?void 0:t.map((function(e){return d.Input.fromPartial(e)})))||[],r.outputs=(null===(n=e.outputs)||void 0===n?void 0:n.map((function(e){return d.Output.fromPartial(e)})))||[],r}},t.MsgMultiSendResponse={encode:function(e){return arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create()},decode:function(e,t){for(var n=e instanceof f.Reader?e:new f.Reader(e),r=void 0===t?n.len:n.pos+t;n.pos1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a={denom:"",amount:""};n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{denom:(0,s.isSet)(e.denom)?String(e.denom):"",amount:(0,s.isSet)(e.amount)?String(e.amount):""}},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t,n,r={denom:"",amount:""};return r.denom=null!==(t=e.denom)&&void 0!==t?t:"",r.amount=null!==(n=e.amount)&&void 0!==n?n:"",r}},t.DecCoin={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return""!==e.denom&&t.uint32(10).string(e.denom),""!==e.amount&&t.uint32(18).string(e.amount),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a={denom:"",amount:""};n.pos>>3){case 1:a.denom=n.string();break;case 2:a.amount=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{denom:(0,s.isSet)(e.denom)?String(e.denom):"",amount:(0,s.isSet)(e.amount)?String(e.amount):""}},toJSON:function(e){var t={};return void 0!==e.denom&&(t.denom=e.denom),void 0!==e.amount&&(t.amount=e.amount),t},fromPartial:function(e){var t,n,r={denom:"",amount:""};return r.denom=null!==(t=e.denom)&&void 0!==t?t:"",r.amount=null!==(n=e.amount)&&void 0!==n?n:"",r}},t.IntProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return""!==e.int&&t.uint32(10).string(e.int),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a={int:""};n.pos>>3==1?a.int=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{int:(0,s.isSet)(e.int)?String(e.int):""}},toJSON:function(e){var t={};return void 0!==e.int&&(t.int=e.int),t},fromPartial:function(e){var t,n={int:""};return n.int=null!==(t=e.int)&&void 0!==t?t:"",n}},t.DecProto={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return""!==e.dec&&t.uint32(10).string(e.dec),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a={dec:""};n.pos>>3==1?a.dec=n.string():n.skipType(7&i)}return a},fromJSON:function(e){return{dec:(0,s.isSet)(e.dec)?String(e.dec):""}},toJSON:function(e){var t={};return void 0!==e.dec&&(t.dec=e.dec),t},fromPartial:function(e){var t,n={dec:""};return n.dec=null!==(t=e.dec)&&void 0!==t?t:"",n}}},88081:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PrivKey=t.PubKey=t.protobufPackage=void 0;var o=i(n(46096)),s=n(54366);function c(){return{key:new Uint8Array}}function u(){return{key:new Uint8Array}}t.protobufPackage="cosmos.crypto.ed25519",t.PubKey={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a=c();n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){return{key:(0,s.isSet)(e.key)?(0,s.bytesFromBase64)(e.key):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=(0,s.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t,n=c();return n.key=null!==(t=e.key)&&void 0!==t?t:new Uint8Array,n}},t.PrivKey={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a=u();n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){return{key:(0,s.isSet)(e.key)?(0,s.bytesFromBase64)(e.key):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=(0,s.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t,n=u();return n.key=null!==(t=e.key)&&void 0!==t?t:new Uint8Array,n}}},5201:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LegacyAminoPubKey=t.protobufPackage=void 0;var s=n(56148),c=o(n(46096)),u=n(54366);t.protobufPackage="cosmos.crypto.multisig",t.LegacyAminoPubKey={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.Writer.create();0!==e.threshold&&t.uint32(8).uint32(e.threshold);var n,a=r(e.publicKeys);try{for(a.s();!(n=a.n()).done;){var i=n.value;s.Any.encode(i,t.uint32(18).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){for(var n=e instanceof c.Reader?e:new c.Reader(e),r=void 0===t?n.len:n.pos+t,a={threshold:0,publicKeys:[]};n.pos>>3){case 1:a.threshold=n.uint32();break;case 2:a.publicKeys.push(s.Any.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{threshold:(0,u.isSet)(e.threshold)?Number(e.threshold):0,publicKeys:Array.isArray(null==e?void 0:e.publicKeys)?e.publicKeys.map((function(e){return s.Any.fromJSON(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.threshold&&(t.threshold=Math.round(e.threshold)),e.publicKeys?t.publicKeys=e.publicKeys.map((function(e){return e?s.Any.toJSON(e):void 0})):t.publicKeys=[],t},fromPartial:function(e){var t,n,r={threshold:0,publicKeys:[]};return r.threshold=null!==(t=e.threshold)&&void 0!==t?t:0,r.publicKeys=(null===(n=e.publicKeys)||void 0===n?void 0:n.map((function(e){return s.Any.fromPartial(e)})))||[],r}}},84064:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CompactBitArray=t.MultiSignature=t.protobufPackage=void 0;var s=o(n(46096)),c=n(54366);function u(){return{extraBitsStored:0,elems:new Uint8Array}}t.protobufPackage="cosmos.crypto.multisig.v1beta1",t.MultiSignature={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Writer.create(),a=r(e.signatures);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){for(var n=e instanceof s.Reader?e:new s.Reader(e),r=void 0===t?n.len:n.pos+t,a={signatures:[]};n.pos>>3==1?a.signatures.push(n.bytes()):n.skipType(7&i)}return a},fromJSON:function(e){return{signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map((function(e){return(0,c.bytesFromBase64)(e)})):[]}},toJSON:function(e){var t={};return e.signatures?t.signatures=e.signatures.map((function(e){return(0,c.base64FromBytes)(void 0!==e?e:new Uint8Array)})):t.signatures=[],t},fromPartial:function(e){var t,n={signatures:[]};return n.signatures=(null===(t=e.signatures)||void 0===t?void 0:t.map((function(e){return e})))||[],n}},t.CompactBitArray={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Writer.create();return 0!==e.extraBitsStored&&t.uint32(8).uint32(e.extraBitsStored),0!==e.elems.length&&t.uint32(18).bytes(e.elems),t},decode:function(e,t){for(var n=e instanceof s.Reader?e:new s.Reader(e),r=void 0===t?n.len:n.pos+t,a=u();n.pos>>3){case 1:a.extraBitsStored=n.uint32();break;case 2:a.elems=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{extraBitsStored:(0,c.isSet)(e.extraBitsStored)?Number(e.extraBitsStored):0,elems:(0,c.isSet)(e.elems)?(0,c.bytesFromBase64)(e.elems):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.extraBitsStored&&(t.extraBitsStored=Math.round(e.extraBitsStored)),void 0!==e.elems&&(t.elems=(0,c.base64FromBytes)(void 0!==e.elems?e.elems:new Uint8Array)),t},fromPartial:function(e){var t,n,r=u();return r.extraBitsStored=null!==(t=e.extraBitsStored)&&void 0!==t?t:0,r.elems=null!==(n=e.elems)&&void 0!==n?n:new Uint8Array,r}}},33361:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.PrivKey=t.PubKey=t.protobufPackage=void 0;var o=i(n(46096)),s=n(54366);function c(){return{key:new Uint8Array}}function u(){return{key:new Uint8Array}}t.protobufPackage="cosmos.crypto.secp256k1",t.PubKey={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a=c();n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){return{key:(0,s.isSet)(e.key)?(0,s.bytesFromBase64)(e.key):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=(0,s.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t,n=c();return n.key=null!==(t=e.key)&&void 0!==t?t:new Uint8Array,n}},t.PrivKey={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return 0!==e.key.length&&t.uint32(10).bytes(e.key),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a=u();n.pos>>3==1?a.key=n.bytes():n.skipType(7&i)}return a},fromJSON:function(e){return{key:(0,s.isSet)(e.key)?(0,s.bytesFromBase64)(e.key):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.key&&(t.key=(0,s.base64FromBytes)(void 0!==e.key?e.key:new Uint8Array)),t},fromPartial:function(e){var t,n=u();return n.key=null!==(t=e.key)&&void 0!==t?t:new Uint8Array,n}}},57171:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureDescriptor_Data_Multi=t.SignatureDescriptor_Data_Single=t.SignatureDescriptor_Data=t.SignatureDescriptor=t.SignatureDescriptors=t.signModeToJSON=t.signModeFromJSON=t.SignMode=t.protobufPackage=void 0;var s,c=n(84064),u=n(56148),d=o(n(46096)),f=n(54366);function l(e){switch(e){case 0:case"SIGN_MODE_UNSPECIFIED":return s.SIGN_MODE_UNSPECIFIED;case 1:case"SIGN_MODE_DIRECT":return s.SIGN_MODE_DIRECT;case 2:case"SIGN_MODE_TEXTUAL":return s.SIGN_MODE_TEXTUAL;case 127:case"SIGN_MODE_LEGACY_AMINO_JSON":return s.SIGN_MODE_LEGACY_AMINO_JSON;case 191:case"SIGN_MODE_EIP_191":return s.SIGN_MODE_EIP_191;default:return s.UNRECOGNIZED}}function b(e){switch(e){case s.SIGN_MODE_UNSPECIFIED:return"SIGN_MODE_UNSPECIFIED";case s.SIGN_MODE_DIRECT:return"SIGN_MODE_DIRECT";case s.SIGN_MODE_TEXTUAL:return"SIGN_MODE_TEXTUAL";case s.SIGN_MODE_LEGACY_AMINO_JSON:return"SIGN_MODE_LEGACY_AMINO_JSON";case s.SIGN_MODE_EIP_191:return"SIGN_MODE_EIP_191";case s.UNRECOGNIZED:default:return"UNRECOGNIZED"}}function p(){return{publicKey:void 0,data:void 0,sequence:f.Long.UZERO}}function h(){return{mode:0,signature:new Uint8Array}}t.protobufPackage="cosmos.tx.signing.v1beta1",function(e){e[e.SIGN_MODE_UNSPECIFIED=0]="SIGN_MODE_UNSPECIFIED",e[e.SIGN_MODE_DIRECT=1]="SIGN_MODE_DIRECT",e[e.SIGN_MODE_TEXTUAL=2]="SIGN_MODE_TEXTUAL",e[e.SIGN_MODE_LEGACY_AMINO_JSON=127]="SIGN_MODE_LEGACY_AMINO_JSON",e[e.SIGN_MODE_EIP_191=191]="SIGN_MODE_EIP_191",e[e.UNRECOGNIZED=-1]="UNRECOGNIZED"}(s=t.SignMode||(t.SignMode={})),t.signModeFromJSON=l,t.signModeToJSON=b,t.SignatureDescriptors={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create(),i=r(e.signatures);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.SignatureDescriptor.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return a},decode:function(e,n){for(var r=e instanceof d.Reader?e:new d.Reader(e),a=void 0===n?r.len:r.pos+n,i={signatures:[]};r.pos>>3==1?i.signatures.push(t.SignatureDescriptor.decode(r,r.uint32())):r.skipType(7&o)}return i},fromJSON:function(e){return{signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map((function(e){return t.SignatureDescriptor.fromJSON(e)})):[]}},toJSON:function(e){var n={};return e.signatures?n.signatures=e.signatures.map((function(e){return e?t.SignatureDescriptor.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n,r={signatures:[]};return r.signatures=(null===(n=e.signatures)||void 0===n?void 0:n.map((function(e){return t.SignatureDescriptor.fromPartial(e)})))||[],r}},t.SignatureDescriptor={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create();return void 0!==e.publicKey&&u.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),void 0!==e.data&&t.SignatureDescriptor_Data.encode(e.data,n.uint32(18).fork()).ldelim(),e.sequence.isZero()||n.uint32(24).uint64(e.sequence),n},decode:function(e,n){for(var r=e instanceof d.Reader?e:new d.Reader(e),a=void 0===n?r.len:r.pos+n,i=p();r.pos>>3){case 1:i.publicKey=u.Any.decode(r,r.uint32());break;case 2:i.data=t.SignatureDescriptor_Data.decode(r,r.uint32());break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{publicKey:(0,f.isSet)(e.publicKey)?u.Any.fromJSON(e.publicKey):void 0,data:(0,f.isSet)(e.data)?t.SignatureDescriptor_Data.fromJSON(e.data):void 0,sequence:(0,f.isSet)(e.sequence)?f.Long.fromValue(e.sequence):f.Long.UZERO}},toJSON:function(e){var n={};return void 0!==e.publicKey&&(n.publicKey=e.publicKey?u.Any.toJSON(e.publicKey):void 0),void 0!==e.data&&(n.data=e.data?t.SignatureDescriptor_Data.toJSON(e.data):void 0),void 0!==e.sequence&&(n.sequence=(e.sequence||f.Long.UZERO).toString()),n},fromPartial:function(e){var n=p();return n.publicKey=void 0!==e.publicKey&&null!==e.publicKey?u.Any.fromPartial(e.publicKey):void 0,n.data=void 0!==e.data&&null!==e.data?t.SignatureDescriptor_Data.fromPartial(e.data):void 0,n.sequence=void 0!==e.sequence&&null!==e.sequence?f.Long.fromValue(e.sequence):f.Long.UZERO,n}},t.SignatureDescriptor_Data={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create();return void 0!==e.single&&t.SignatureDescriptor_Data_Single.encode(e.single,n.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.SignatureDescriptor_Data_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof d.Reader?e:new d.Reader(e),a=void 0===n?r.len:r.pos+n,i={single:void 0,multi:void 0};r.pos>>3){case 1:i.single=t.SignatureDescriptor_Data_Single.decode(r,r.uint32());break;case 2:i.multi=t.SignatureDescriptor_Data_Multi.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{single:(0,f.isSet)(e.single)?t.SignatureDescriptor_Data_Single.fromJSON(e.single):void 0,multi:(0,f.isSet)(e.multi)?t.SignatureDescriptor_Data_Multi.fromJSON(e.multi):void 0}},toJSON:function(e){var n={};return void 0!==e.single&&(n.single=e.single?t.SignatureDescriptor_Data_Single.toJSON(e.single):void 0),void 0!==e.multi&&(n.multi=e.multi?t.SignatureDescriptor_Data_Multi.toJSON(e.multi):void 0),n},fromPartial:function(e){var n={single:void 0,multi:void 0};return n.single=void 0!==e.single&&null!==e.single?t.SignatureDescriptor_Data_Single.fromPartial(e.single):void 0,n.multi=void 0!==e.multi&&null!==e.multi?t.SignatureDescriptor_Data_Multi.fromPartial(e.multi):void 0,n}},t.SignatureDescriptor_Data_Single={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create();return 0!==e.mode&&t.uint32(8).int32(e.mode),0!==e.signature.length&&t.uint32(18).bytes(e.signature),t},decode:function(e,t){for(var n=e instanceof d.Reader?e:new d.Reader(e),r=void 0===t?n.len:n.pos+t,a=h();n.pos>>3){case 1:a.mode=n.int32();break;case 2:a.signature=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{mode:(0,f.isSet)(e.mode)?l(e.mode):0,signature:(0,f.isSet)(e.signature)?(0,f.bytesFromBase64)(e.signature):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.mode&&(t.mode=b(e.mode)),void 0!==e.signature&&(t.signature=(0,f.base64FromBytes)(void 0!==e.signature?e.signature:new Uint8Array)),t},fromPartial:function(e){var t,n,r=h();return r.mode=null!==(t=e.mode)&&void 0!==t?t:0,r.signature=null!==(n=e.signature)&&void 0!==n?n:new Uint8Array,r}},t.SignatureDescriptor_Data_Multi={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.Writer.create();void 0!==e.bitarray&&c.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.SignatureDescriptor_Data.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){for(var r=e instanceof d.Reader?e:new d.Reader(e),a=void 0===n?r.len:r.pos+n,i={bitarray:void 0,signatures:[]};r.pos>>3){case 1:i.bitarray=c.CompactBitArray.decode(r,r.uint32());break;case 2:i.signatures.push(t.SignatureDescriptor_Data.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{bitarray:(0,f.isSet)(e.bitarray)?c.CompactBitArray.fromJSON(e.bitarray):void 0,signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map((function(e){return t.SignatureDescriptor_Data.fromJSON(e)})):[]}},toJSON:function(e){var n={};return void 0!==e.bitarray&&(n.bitarray=e.bitarray?c.CompactBitArray.toJSON(e.bitarray):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return e?t.SignatureDescriptor_Data.toJSON(e):void 0})):n.signatures=[],n},fromPartial:function(e){var n,r={bitarray:void 0,signatures:[]};return r.bitarray=void 0!==e.bitarray&&null!==e.bitarray?c.CompactBitArray.fromPartial(e.bitarray):void 0,r.signatures=(null===(n=e.signatures)||void 0===n?void 0:n.map((function(e){return t.SignatureDescriptor_Data.fromPartial(e)})))||[],r}}},49211:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Fee=t.ModeInfo_Multi=t.ModeInfo_Single=t.ModeInfo=t.SignerInfo=t.AuthInfo=t.TxBody=t.SignDoc=t.TxRaw=t.Tx=t.protobufPackage=void 0;var s=n(56148),c=n(57171),u=n(84064),d=n(42621),f=o(n(46096)),l=n(54366);function b(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,signatures:[]}}function p(){return{bodyBytes:new Uint8Array,authInfoBytes:new Uint8Array,chainId:"",accountNumber:l.Long.UZERO}}function h(){return{messages:[],memo:"",timeoutHeight:l.Long.UZERO,extensionOptions:[],nonCriticalExtensionOptions:[]}}function y(){return{publicKey:void 0,modeInfo:void 0,sequence:l.Long.UZERO}}function m(){return{amount:[],gasLimit:l.Long.UZERO,payer:"",granter:""}}t.protobufPackage="cosmos.tx.v1beta1",t.Tx={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create();void 0!==e.body&&t.TxBody.encode(e.body,n.uint32(10).fork()).ldelim(),void 0!==e.authInfo&&t.AuthInfo.encode(e.authInfo,n.uint32(18).fork()).ldelim();var a,i=r(e.signatures);try{for(i.s();!(a=i.n()).done;){var o=a.value;n.uint32(26).bytes(o)}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){for(var r=e instanceof f.Reader?e:new f.Reader(e),a=void 0===n?r.len:r.pos+n,i={body:void 0,authInfo:void 0,signatures:[]};r.pos>>3){case 1:i.body=t.TxBody.decode(r,r.uint32());break;case 2:i.authInfo=t.AuthInfo.decode(r,r.uint32());break;case 3:i.signatures.push(r.bytes());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{body:(0,l.isSet)(e.body)?t.TxBody.fromJSON(e.body):void 0,authInfo:(0,l.isSet)(e.authInfo)?t.AuthInfo.fromJSON(e.authInfo):void 0,signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map((function(e){return(0,l.bytesFromBase64)(e)})):[]}},toJSON:function(e){var n={};return void 0!==e.body&&(n.body=e.body?t.TxBody.toJSON(e.body):void 0),void 0!==e.authInfo&&(n.authInfo=e.authInfo?t.AuthInfo.toJSON(e.authInfo):void 0),e.signatures?n.signatures=e.signatures.map((function(e){return(0,l.base64FromBytes)(void 0!==e?e:new Uint8Array)})):n.signatures=[],n},fromPartial:function(e){var n,r={body:void 0,authInfo:void 0,signatures:[]};return r.body=void 0!==e.body&&null!==e.body?t.TxBody.fromPartial(e.body):void 0,r.authInfo=void 0!==e.authInfo&&null!==e.authInfo?t.AuthInfo.fromPartial(e.authInfo):void 0,r.signatures=(null===(n=e.signatures)||void 0===n?void 0:n.map((function(e){return e})))||[],r}},t.TxRaw={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create();0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes);var n,a=r(e.signatures);try{for(a.s();!(n=a.n()).done;){var i=n.value;t.uint32(26).bytes(i)}}catch(e){a.e(e)}finally{a.f()}return t},decode:function(e,t){for(var n=e instanceof f.Reader?e:new f.Reader(e),r=void 0===t?n.len:n.pos+t,a=b();n.pos>>3){case 1:a.bodyBytes=n.bytes();break;case 2:a.authInfoBytes=n.bytes();break;case 3:a.signatures.push(n.bytes());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{bodyBytes:(0,l.isSet)(e.bodyBytes)?(0,l.bytesFromBase64)(e.bodyBytes):new Uint8Array,authInfoBytes:(0,l.isSet)(e.authInfoBytes)?(0,l.bytesFromBase64)(e.authInfoBytes):new Uint8Array,signatures:Array.isArray(null==e?void 0:e.signatures)?e.signatures.map((function(e){return(0,l.bytesFromBase64)(e)})):[]}},toJSON:function(e){var t={};return void 0!==e.bodyBytes&&(t.bodyBytes=(0,l.base64FromBytes)(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=(0,l.base64FromBytes)(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),e.signatures?t.signatures=e.signatures.map((function(e){return(0,l.base64FromBytes)(void 0!==e?e:new Uint8Array)})):t.signatures=[],t},fromPartial:function(e){var t,n,r,a=b();return a.bodyBytes=null!==(t=e.bodyBytes)&&void 0!==t?t:new Uint8Array,a.authInfoBytes=null!==(n=e.authInfoBytes)&&void 0!==n?n:new Uint8Array,a.signatures=(null===(r=e.signatures)||void 0===r?void 0:r.map((function(e){return e})))||[],a}},t.SignDoc={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create();return 0!==e.bodyBytes.length&&t.uint32(10).bytes(e.bodyBytes),0!==e.authInfoBytes.length&&t.uint32(18).bytes(e.authInfoBytes),""!==e.chainId&&t.uint32(26).string(e.chainId),e.accountNumber.isZero()||t.uint32(32).uint64(e.accountNumber),t},decode:function(e,t){for(var n=e instanceof f.Reader?e:new f.Reader(e),r=void 0===t?n.len:n.pos+t,a=p();n.pos>>3){case 1:a.bodyBytes=n.bytes();break;case 2:a.authInfoBytes=n.bytes();break;case 3:a.chainId=n.string();break;case 4:a.accountNumber=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{bodyBytes:(0,l.isSet)(e.bodyBytes)?(0,l.bytesFromBase64)(e.bodyBytes):new Uint8Array,authInfoBytes:(0,l.isSet)(e.authInfoBytes)?(0,l.bytesFromBase64)(e.authInfoBytes):new Uint8Array,chainId:(0,l.isSet)(e.chainId)?String(e.chainId):"",accountNumber:(0,l.isSet)(e.accountNumber)?l.Long.fromValue(e.accountNumber):l.Long.UZERO}},toJSON:function(e){var t={};return void 0!==e.bodyBytes&&(t.bodyBytes=(0,l.base64FromBytes)(void 0!==e.bodyBytes?e.bodyBytes:new Uint8Array)),void 0!==e.authInfoBytes&&(t.authInfoBytes=(0,l.base64FromBytes)(void 0!==e.authInfoBytes?e.authInfoBytes:new Uint8Array)),void 0!==e.chainId&&(t.chainId=e.chainId),void 0!==e.accountNumber&&(t.accountNumber=(e.accountNumber||l.Long.UZERO).toString()),t},fromPartial:function(e){var t,n,r,a=p();return a.bodyBytes=null!==(t=e.bodyBytes)&&void 0!==t?t:new Uint8Array,a.authInfoBytes=null!==(n=e.authInfoBytes)&&void 0!==n?n:new Uint8Array,a.chainId=null!==(r=e.chainId)&&void 0!==r?r:"",a.accountNumber=void 0!==e.accountNumber&&null!==e.accountNumber?l.Long.fromValue(e.accountNumber):l.Long.UZERO,a}},t.TxBody={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create(),a=r(e.messages);try{for(a.s();!(t=a.n()).done;){var i=t.value;s.Any.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}""!==e.memo&&n.uint32(18).string(e.memo),e.timeoutHeight.isZero()||n.uint32(24).uint64(e.timeoutHeight);var o,c=r(e.extensionOptions);try{for(c.s();!(o=c.n()).done;){var u=o.value;s.Any.encode(u,n.uint32(8186).fork()).ldelim()}}catch(e){c.e(e)}finally{c.f()}var d,l=r(e.nonCriticalExtensionOptions);try{for(l.s();!(d=l.n()).done;){var b=d.value;s.Any.encode(b,n.uint32(16378).fork()).ldelim()}}catch(e){l.e(e)}finally{l.f()}return n},decode:function(e,t){for(var n=e instanceof f.Reader?e:new f.Reader(e),r=void 0===t?n.len:n.pos+t,a=h();n.pos>>3){case 1:a.messages.push(s.Any.decode(n,n.uint32()));break;case 2:a.memo=n.string();break;case 3:a.timeoutHeight=n.uint64();break;case 1023:a.extensionOptions.push(s.Any.decode(n,n.uint32()));break;case 2047:a.nonCriticalExtensionOptions.push(s.Any.decode(n,n.uint32()));break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{messages:Array.isArray(null==e?void 0:e.messages)?e.messages.map((function(e){return s.Any.fromJSON(e)})):[],memo:(0,l.isSet)(e.memo)?String(e.memo):"",timeoutHeight:(0,l.isSet)(e.timeoutHeight)?l.Long.fromValue(e.timeoutHeight):l.Long.UZERO,extensionOptions:Array.isArray(null==e?void 0:e.extensionOptions)?e.extensionOptions.map((function(e){return s.Any.fromJSON(e)})):[],nonCriticalExtensionOptions:Array.isArray(null==e?void 0:e.nonCriticalExtensionOptions)?e.nonCriticalExtensionOptions.map((function(e){return s.Any.fromJSON(e)})):[]}},toJSON:function(e){var t={};return e.messages?t.messages=e.messages.map((function(e){return e?s.Any.toJSON(e):void 0})):t.messages=[],void 0!==e.memo&&(t.memo=e.memo),void 0!==e.timeoutHeight&&(t.timeoutHeight=(e.timeoutHeight||l.Long.UZERO).toString()),e.extensionOptions?t.extensionOptions=e.extensionOptions.map((function(e){return e?s.Any.toJSON(e):void 0})):t.extensionOptions=[],e.nonCriticalExtensionOptions?t.nonCriticalExtensionOptions=e.nonCriticalExtensionOptions.map((function(e){return e?s.Any.toJSON(e):void 0})):t.nonCriticalExtensionOptions=[],t},fromPartial:function(e){var t,n,r,a,i=h();return i.messages=(null===(t=e.messages)||void 0===t?void 0:t.map((function(e){return s.Any.fromPartial(e)})))||[],i.memo=null!==(n=e.memo)&&void 0!==n?n:"",i.timeoutHeight=void 0!==e.timeoutHeight&&null!==e.timeoutHeight?l.Long.fromValue(e.timeoutHeight):l.Long.UZERO,i.extensionOptions=(null===(r=e.extensionOptions)||void 0===r?void 0:r.map((function(e){return s.Any.fromPartial(e)})))||[],i.nonCriticalExtensionOptions=(null===(a=e.nonCriticalExtensionOptions)||void 0===a?void 0:a.map((function(e){return s.Any.fromPartial(e)})))||[],i}},t.AuthInfo={encode:function(e){var n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create(),i=r(e.signerInfos);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.SignerInfo.encode(o,a.uint32(10).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return void 0!==e.fee&&t.Fee.encode(e.fee,a.uint32(18).fork()).ldelim(),a},decode:function(e,n){for(var r=e instanceof f.Reader?e:new f.Reader(e),a=void 0===n?r.len:r.pos+n,i={signerInfos:[],fee:void 0};r.pos>>3){case 1:i.signerInfos.push(t.SignerInfo.decode(r,r.uint32()));break;case 2:i.fee=t.Fee.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{signerInfos:Array.isArray(null==e?void 0:e.signerInfos)?e.signerInfos.map((function(e){return t.SignerInfo.fromJSON(e)})):[],fee:(0,l.isSet)(e.fee)?t.Fee.fromJSON(e.fee):void 0}},toJSON:function(e){var n={};return e.signerInfos?n.signerInfos=e.signerInfos.map((function(e){return e?t.SignerInfo.toJSON(e):void 0})):n.signerInfos=[],void 0!==e.fee&&(n.fee=e.fee?t.Fee.toJSON(e.fee):void 0),n},fromPartial:function(e){var n,r={signerInfos:[],fee:void 0};return r.signerInfos=(null===(n=e.signerInfos)||void 0===n?void 0:n.map((function(e){return t.SignerInfo.fromPartial(e)})))||[],r.fee=void 0!==e.fee&&null!==e.fee?t.Fee.fromPartial(e.fee):void 0,r}},t.SignerInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create();return void 0!==e.publicKey&&s.Any.encode(e.publicKey,n.uint32(10).fork()).ldelim(),void 0!==e.modeInfo&&t.ModeInfo.encode(e.modeInfo,n.uint32(18).fork()).ldelim(),e.sequence.isZero()||n.uint32(24).uint64(e.sequence),n},decode:function(e,n){for(var r=e instanceof f.Reader?e:new f.Reader(e),a=void 0===n?r.len:r.pos+n,i=y();r.pos>>3){case 1:i.publicKey=s.Any.decode(r,r.uint32());break;case 2:i.modeInfo=t.ModeInfo.decode(r,r.uint32());break;case 3:i.sequence=r.uint64();break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{publicKey:(0,l.isSet)(e.publicKey)?s.Any.fromJSON(e.publicKey):void 0,modeInfo:(0,l.isSet)(e.modeInfo)?t.ModeInfo.fromJSON(e.modeInfo):void 0,sequence:(0,l.isSet)(e.sequence)?l.Long.fromValue(e.sequence):l.Long.UZERO}},toJSON:function(e){var n={};return void 0!==e.publicKey&&(n.publicKey=e.publicKey?s.Any.toJSON(e.publicKey):void 0),void 0!==e.modeInfo&&(n.modeInfo=e.modeInfo?t.ModeInfo.toJSON(e.modeInfo):void 0),void 0!==e.sequence&&(n.sequence=(e.sequence||l.Long.UZERO).toString()),n},fromPartial:function(e){var n=y();return n.publicKey=void 0!==e.publicKey&&null!==e.publicKey?s.Any.fromPartial(e.publicKey):void 0,n.modeInfo=void 0!==e.modeInfo&&null!==e.modeInfo?t.ModeInfo.fromPartial(e.modeInfo):void 0,n.sequence=void 0!==e.sequence&&null!==e.sequence?l.Long.fromValue(e.sequence):l.Long.UZERO,n}},t.ModeInfo={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create();return void 0!==e.single&&t.ModeInfo_Single.encode(e.single,n.uint32(10).fork()).ldelim(),void 0!==e.multi&&t.ModeInfo_Multi.encode(e.multi,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof f.Reader?e:new f.Reader(e),a=void 0===n?r.len:r.pos+n,i={single:void 0,multi:void 0};r.pos>>3){case 1:i.single=t.ModeInfo_Single.decode(r,r.uint32());break;case 2:i.multi=t.ModeInfo_Multi.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{single:(0,l.isSet)(e.single)?t.ModeInfo_Single.fromJSON(e.single):void 0,multi:(0,l.isSet)(e.multi)?t.ModeInfo_Multi.fromJSON(e.multi):void 0}},toJSON:function(e){var n={};return void 0!==e.single&&(n.single=e.single?t.ModeInfo_Single.toJSON(e.single):void 0),void 0!==e.multi&&(n.multi=e.multi?t.ModeInfo_Multi.toJSON(e.multi):void 0),n},fromPartial:function(e){var n={single:void 0,multi:void 0};return n.single=void 0!==e.single&&null!==e.single?t.ModeInfo_Single.fromPartial(e.single):void 0,n.multi=void 0!==e.multi&&null!==e.multi?t.ModeInfo_Multi.fromPartial(e.multi):void 0,n}},t.ModeInfo_Single={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create();return 0!==e.mode&&t.uint32(8).int32(e.mode),t},decode:function(e,t){for(var n=e instanceof f.Reader?e:new f.Reader(e),r=void 0===t?n.len:n.pos+t,a={mode:0};n.pos>>3==1?a.mode=n.int32():n.skipType(7&i)}return a},fromJSON:function(e){return{mode:(0,l.isSet)(e.mode)?(0,c.signModeFromJSON)(e.mode):0}},toJSON:function(e){var t={};return void 0!==e.mode&&(t.mode=(0,c.signModeToJSON)(e.mode)),t},fromPartial:function(e){var t,n={mode:0};return n.mode=null!==(t=e.mode)&&void 0!==t?t:0,n}},t.ModeInfo_Multi={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create();void 0!==e.bitarray&&u.CompactBitArray.encode(e.bitarray,n.uint32(10).fork()).ldelim();var a,i=r(e.modeInfos);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.ModeInfo.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){for(var r=e instanceof f.Reader?e:new f.Reader(e),a=void 0===n?r.len:r.pos+n,i={bitarray:void 0,modeInfos:[]};r.pos>>3){case 1:i.bitarray=u.CompactBitArray.decode(r,r.uint32());break;case 2:i.modeInfos.push(t.ModeInfo.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{bitarray:(0,l.isSet)(e.bitarray)?u.CompactBitArray.fromJSON(e.bitarray):void 0,modeInfos:Array.isArray(null==e?void 0:e.modeInfos)?e.modeInfos.map((function(e){return t.ModeInfo.fromJSON(e)})):[]}},toJSON:function(e){var n={};return void 0!==e.bitarray&&(n.bitarray=e.bitarray?u.CompactBitArray.toJSON(e.bitarray):void 0),e.modeInfos?n.modeInfos=e.modeInfos.map((function(e){return e?t.ModeInfo.toJSON(e):void 0})):n.modeInfos=[],n},fromPartial:function(e){var n,r={bitarray:void 0,modeInfos:[]};return r.bitarray=void 0!==e.bitarray&&null!==e.bitarray?u.CompactBitArray.fromPartial(e.bitarray):void 0,r.modeInfos=(null===(n=e.modeInfos)||void 0===n?void 0:n.map((function(e){return t.ModeInfo.fromPartial(e)})))||[],r}},t.Fee={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create(),a=r(e.amount);try{for(a.s();!(t=a.n()).done;){var i=t.value;d.Coin.encode(i,n.uint32(10).fork()).ldelim()}}catch(e){a.e(e)}finally{a.f()}return e.gasLimit.isZero()||n.uint32(16).uint64(e.gasLimit),""!==e.payer&&n.uint32(26).string(e.payer),""!==e.granter&&n.uint32(34).string(e.granter),n},decode:function(e,t){for(var n=e instanceof f.Reader?e:new f.Reader(e),r=void 0===t?n.len:n.pos+t,a=m();n.pos>>3){case 1:a.amount.push(d.Coin.decode(n,n.uint32()));break;case 2:a.gasLimit=n.uint64();break;case 3:a.payer=n.string();break;case 4:a.granter=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{amount:Array.isArray(null==e?void 0:e.amount)?e.amount.map((function(e){return d.Coin.fromJSON(e)})):[],gasLimit:(0,l.isSet)(e.gasLimit)?l.Long.fromValue(e.gasLimit):l.Long.UZERO,payer:(0,l.isSet)(e.payer)?String(e.payer):"",granter:(0,l.isSet)(e.granter)?String(e.granter):""}},toJSON:function(e){var t={};return e.amount?t.amount=e.amount.map((function(e){return e?d.Coin.toJSON(e):void 0})):t.amount=[],void 0!==e.gasLimit&&(t.gasLimit=(e.gasLimit||l.Long.UZERO).toString()),void 0!==e.payer&&(t.payer=e.payer),void 0!==e.granter&&(t.granter=e.granter),t},fromPartial:function(e){var t,n,r,a=m();return a.amount=(null===(t=e.amount)||void 0===t?void 0:t.map((function(e){return d.Coin.fromPartial(e)})))||[],a.gasLimit=void 0!==e.gasLimit&&null!==e.gasLimit?l.Long.fromValue(e.gasLimit):l.Long.UZERO,a.payer=null!==(n=e.payer)&&void 0!==n?n:"",a.granter=null!==(r=e.granter)&&void 0!==r?r:"",a}}},28981:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ModuleVersion=t.CancelSoftwareUpgradeProposal=t.SoftwareUpgradeProposal=t.Plan=t.protobufPackage=void 0;var o=n(4855),s=n(56148),c=n(54366),u=i(n(46096));function d(){return{name:"",time:void 0,height:c.Long.ZERO,info:"",upgradedClientState:void 0}}function f(){return{name:"",version:c.Long.UZERO}}t.protobufPackage="cosmos.upgrade.v1beta1",t.Plan={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return""!==e.name&&t.uint32(10).string(e.name),void 0!==e.time&&o.Timestamp.encode(e.time,t.uint32(18).fork()).ldelim(),e.height.isZero()||t.uint32(24).int64(e.height),""!==e.info&&t.uint32(34).string(e.info),void 0!==e.upgradedClientState&&s.Any.encode(e.upgradedClientState,t.uint32(42).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a=d();n.pos>>3){case 1:a.name=n.string();break;case 2:a.time=o.Timestamp.decode(n,n.uint32());break;case 3:a.height=n.int64();break;case 4:a.info=n.string();break;case 5:a.upgradedClientState=s.Any.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{name:(0,c.isSet)(e.name)?String(e.name):"",time:(0,c.isSet)(e.time)?(0,c.fromJsonTimestamp)(e.time):void 0,height:(0,c.isSet)(e.height)?c.Long.fromValue(e.height):c.Long.ZERO,info:(0,c.isSet)(e.info)?String(e.info):"",upgradedClientState:(0,c.isSet)(e.upgradedClientState)?s.Any.fromJSON(e.upgradedClientState):void 0}},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.time&&(t.time=(0,c.fromTimestamp)(e.time).toISOString()),void 0!==e.height&&(t.height=(e.height||c.Long.ZERO).toString()),void 0!==e.info&&(t.info=e.info),void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?s.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial:function(e){var t,n,r=d();return r.name=null!==(t=e.name)&&void 0!==t?t:"",r.time=void 0!==e.time&&null!==e.time?o.Timestamp.fromPartial(e.time):void 0,r.height=void 0!==e.height&&null!==e.height?c.Long.fromValue(e.height):c.Long.ZERO,r.info=null!==(n=e.info)&&void 0!==n?n:"",r.upgradedClientState=void 0!==e.upgradedClientState&&null!==e.upgradedClientState?s.Any.fromPartial(e.upgradedClientState):void 0,r}},t.SoftwareUpgradeProposal={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return""!==e.title&&n.uint32(10).string(e.title),""!==e.description&&n.uint32(18).string(e.description),void 0!==e.plan&&t.Plan.encode(e.plan,n.uint32(26).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof u.Reader?e:new u.Reader(e),a=void 0===n?r.len:r.pos+n,i={title:"",description:"",plan:void 0};r.pos>>3){case 1:i.title=r.string();break;case 2:i.description=r.string();break;case 3:i.plan=t.Plan.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{title:(0,c.isSet)(e.title)?String(e.title):"",description:(0,c.isSet)(e.description)?String(e.description):"",plan:(0,c.isSet)(e.plan)?t.Plan.fromJSON(e.plan):void 0}},toJSON:function(e){var n={};return void 0!==e.title&&(n.title=e.title),void 0!==e.description&&(n.description=e.description),void 0!==e.plan&&(n.plan=e.plan?t.Plan.toJSON(e.plan):void 0),n},fromPartial:function(e){var n,r,a={title:"",description:"",plan:void 0};return a.title=null!==(n=e.title)&&void 0!==n?n:"",a.description=null!==(r=e.description)&&void 0!==r?r:"",a.plan=void 0!==e.plan&&null!==e.plan?t.Plan.fromPartial(e.plan):void 0,a}},t.CancelSoftwareUpgradeProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),t},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a={title:"",description:""};n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{title:(0,c.isSet)(e.title)?String(e.title):"",description:(0,c.isSet)(e.description)?String(e.description):""}},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),t},fromPartial:function(e){var t,n,r={title:"",description:""};return r.title=null!==(t=e.title)&&void 0!==t?t:"",r.description=null!==(n=e.description)&&void 0!==n?n:"",r}},t.ModuleVersion={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return""!==e.name&&t.uint32(10).string(e.name),e.version.isZero()||t.uint32(16).uint64(e.version),t},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a=f();n.pos>>3){case 1:a.name=n.string();break;case 2:a.version=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{name:(0,c.isSet)(e.name)?String(e.name):"",version:(0,c.isSet)(e.version)?c.Long.fromValue(e.version):c.Long.UZERO}},toJSON:function(e){var t={};return void 0!==e.name&&(t.name=e.name),void 0!==e.version&&(t.version=(e.version||c.Long.UZERO).toString()),t},fromPartial:function(e){var t,n=f();return n.name=null!==(t=e.name)&&void 0!==t?t:"",n.version=void 0!==e.version&&null!==e.version?c.Long.fromValue(e.version):c.Long.UZERO,n}}},56148:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Any=t.protobufPackage=void 0;var o=i(n(46096)),s=n(54366);function c(){return{typeUrl:"",value:new Uint8Array}}t.protobufPackage="google.protobuf",t.Any={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.Writer.create();return""!==e.typeUrl&&t.uint32(10).string(e.typeUrl),0!==e.value.length&&t.uint32(18).bytes(e.value),t},decode:function(e,t){for(var n=e instanceof o.Reader?e:new o.Reader(e),r=void 0===t?n.len:n.pos+t,a=c();n.pos>>3){case 1:a.typeUrl=n.string();break;case 2:a.value=n.bytes();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{typeUrl:(0,s.isSet)(e.typeUrl)?String(e.typeUrl):"",value:(0,s.isSet)(e.value)?(0,s.bytesFromBase64)(e.value):new Uint8Array}},toJSON:function(e){var t={};return void 0!==e.typeUrl&&(t.typeUrl=e.typeUrl),void 0!==e.value&&(t.value=(0,s.base64FromBytes)(void 0!==e.value?e.value:new Uint8Array)),t},fromPartial:function(e){var t,n,r=c();return r.typeUrl=null!==(t=e.typeUrl)&&void 0!==t?t:"",r.value=null!==(n=e.value)&&void 0!==n?n:new Uint8Array,r}}},4855:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.protobufPackage=void 0;var o=n(54366),s=i(n(46096));function c(){return{seconds:o.Long.ZERO,nanos:0}}t.protobufPackage="google.protobuf",t.Timestamp={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.Writer.create();return e.seconds.isZero()||t.uint32(8).int64(e.seconds),0!==e.nanos&&t.uint32(16).int32(e.nanos),t},decode:function(e,t){for(var n=e instanceof s.Reader?e:new s.Reader(e),r=void 0===t?n.len:n.pos+t,a=c();n.pos>>3){case 1:a.seconds=n.int64();break;case 2:a.nanos=n.int32();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{seconds:(0,o.isSet)(e.seconds)?o.Long.fromValue(e.seconds):o.Long.ZERO,nanos:(0,o.isSet)(e.nanos)?Number(e.nanos):0}},toJSON:function(e){var t={};return void 0!==e.seconds&&(t.seconds=(e.seconds||o.Long.ZERO).toString()),void 0!==e.nanos&&(t.nanos=Math.round(e.nanos)),t},fromPartial:function(e){var t,n=c();return n.seconds=void 0!==e.seconds&&null!==e.seconds?o.Long.fromValue(e.seconds):o.Long.ZERO,n.nanos=null!==(t=e.nanos)&&void 0!==t?t:0,n}}},54366:function(e,t,n){"use strict";var r=n(5886).Buffer,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.fromJsonTimestamp=t.fromTimestamp=t.toTimestamp=t.setPaginationParams=t.isObject=t.isSet=t.fromDuration=t.toDuration=t.omitDefault=t.base64FromBytes=t.bytesFromBase64=t.Long=void 0;var c=o(n(46096)),u=s(n(24141));t.Long=u.default,c.util.Long!==u.default&&(c.util.Long=u.default,c.configure());var d=function(){if(void 0!==d)return d;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw"Unable to locate global object"}(),f=d.atob||function(e){return d.Buffer.from(e,"base64").toString("binary")};t.bytesFromBase64=function(e){for(var t=f(e),n=new Uint8Array(t.length),r=0;r1&&void 0!==arguments[1]?arguments[1]:f.Writer.create();return""!==e.sourcePort&&t.uint32(10).string(e.sourcePort),""!==e.sourceChannel&&t.uint32(18).string(e.sourceChannel),void 0!==e.token&&c.Coin.encode(e.token,t.uint32(26).fork()).ldelim(),""!==e.sender&&t.uint32(34).string(e.sender),""!==e.receiver&&t.uint32(42).string(e.receiver),void 0!==e.timeoutHeight&&u.Height.encode(e.timeoutHeight,t.uint32(50).fork()).ldelim(),e.timeoutTimestamp.isZero()||t.uint32(56).uint64(e.timeoutTimestamp),""!==e.memo&&t.uint32(66).string(e.memo),t},decode:function(e,t){for(var n=e instanceof f.Reader?e:new f.Reader(e),r=void 0===t?n.len:n.pos+t,a=l();n.pos>>3){case 1:a.sourcePort=n.string();break;case 2:a.sourceChannel=n.string();break;case 3:a.token=c.Coin.decode(n,n.uint32());break;case 4:a.sender=n.string();break;case 5:a.receiver=n.string();break;case 6:a.timeoutHeight=u.Height.decode(n,n.uint32());break;case 7:a.timeoutTimestamp=n.uint64();break;case 8:a.memo=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{sourcePort:(0,d.isSet)(e.sourcePort)?String(e.sourcePort):"",sourceChannel:(0,d.isSet)(e.sourceChannel)?String(e.sourceChannel):"",token:(0,d.isSet)(e.token)?c.Coin.fromJSON(e.token):void 0,sender:(0,d.isSet)(e.sender)?String(e.sender):"",receiver:(0,d.isSet)(e.receiver)?String(e.receiver):"",timeoutHeight:(0,d.isSet)(e.timeoutHeight)?u.Height.fromJSON(e.timeoutHeight):void 0,timeoutTimestamp:(0,d.isSet)(e.timeoutTimestamp)?d.Long.fromValue(e.timeoutTimestamp):d.Long.UZERO,memo:(0,d.isSet)(e.memo)?String(e.memo):""}},toJSON:function(e){var t={};return void 0!==e.sourcePort&&(t.sourcePort=e.sourcePort),void 0!==e.sourceChannel&&(t.sourceChannel=e.sourceChannel),void 0!==e.token&&(t.token=e.token?c.Coin.toJSON(e.token):void 0),void 0!==e.sender&&(t.sender=e.sender),void 0!==e.receiver&&(t.receiver=e.receiver),void 0!==e.timeoutHeight&&(t.timeoutHeight=e.timeoutHeight?u.Height.toJSON(e.timeoutHeight):void 0),void 0!==e.timeoutTimestamp&&(t.timeoutTimestamp=(e.timeoutTimestamp||d.Long.UZERO).toString()),void 0!==e.memo&&(t.memo=e.memo),t},fromPartial:function(e){var t,n,r,a,i,o=l();return o.sourcePort=null!==(t=e.sourcePort)&&void 0!==t?t:"",o.sourceChannel=null!==(n=e.sourceChannel)&&void 0!==n?n:"",o.token=void 0!==e.token&&null!==e.token?c.Coin.fromPartial(e.token):void 0,o.sender=null!==(r=e.sender)&&void 0!==r?r:"",o.receiver=null!==(a=e.receiver)&&void 0!==a?a:"",o.timeoutHeight=void 0!==e.timeoutHeight&&null!==e.timeoutHeight?u.Height.fromPartial(e.timeoutHeight):void 0,o.timeoutTimestamp=void 0!==e.timeoutTimestamp&&null!==e.timeoutTimestamp?d.Long.fromValue(e.timeoutTimestamp):d.Long.UZERO,o.memo=null!==(i=e.memo)&&void 0!==i?i:"",o}},t.MsgTransferResponse={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.Writer.create();return e.sequence.isZero()||t.uint32(8).uint64(e.sequence),t},decode:function(e,t){for(var n=e instanceof f.Reader?e:new f.Reader(e),r=void 0===t?n.len:n.pos+t,a=b();n.pos>>3==1?a.sequence=n.uint64():n.skipType(7&i)}return a},fromJSON:function(e){return{sequence:(0,d.isSet)(e.sequence)?d.Long.fromValue(e.sequence):d.Long.UZERO}},toJSON:function(e){var t={};return void 0!==e.sequence&&(t.sequence=(e.sequence||d.Long.UZERO).toString()),t},fromPartial:function(e){var t=b();return t.sequence=void 0!==e.sequence&&null!==e.sequence?d.Long.fromValue(e.sequence):d.Long.UZERO,t}};var p=function(){function e(t){r(this,e),this.rpc=t,this.Transfer=this.Transfer.bind(this)}return a(e,[{key:"Transfer",value:function(e){var n=t.MsgTransfer.encode(e).finish();return this.rpc.request("ibc.applications.transfer.v1.Msg","Transfer",n).then((function(e){return t.MsgTransferResponse.decode(new f.Reader(e))}))}}]),e}();t.MsgClientImpl=p},80201:function(e,t,n){"use strict";var r=n(33482).default,a=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Params=t.Height=t.UpgradeProposal=t.ClientUpdateProposal=t.ClientConsensusStates=t.ConsensusStateWithHeight=t.IdentifiedClientState=t.protobufPackage=void 0;var s=n(56148),c=n(28981),u=o(n(46096)),d=n(54366);function f(){return{revisionNumber:d.Long.UZERO,revisionHeight:d.Long.UZERO}}t.protobufPackage="ibc.core.client.v1",t.IdentifiedClientState={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return""!==e.clientId&&t.uint32(10).string(e.clientId),void 0!==e.clientState&&s.Any.encode(e.clientState,t.uint32(18).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a={clientId:"",clientState:void 0};n.pos>>3){case 1:a.clientId=n.string();break;case 2:a.clientState=s.Any.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{clientId:(0,d.isSet)(e.clientId)?String(e.clientId):"",clientState:(0,d.isSet)(e.clientState)?s.Any.fromJSON(e.clientState):void 0}},toJSON:function(e){var t={};return void 0!==e.clientId&&(t.clientId=e.clientId),void 0!==e.clientState&&(t.clientState=e.clientState?s.Any.toJSON(e.clientState):void 0),t},fromPartial:function(e){var t,n={clientId:"",clientState:void 0};return n.clientId=null!==(t=e.clientId)&&void 0!==t?t:"",n.clientState=void 0!==e.clientState&&null!==e.clientState?s.Any.fromPartial(e.clientState):void 0,n}},t.ConsensusStateWithHeight={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return void 0!==e.height&&t.Height.encode(e.height,n.uint32(10).fork()).ldelim(),void 0!==e.consensusState&&s.Any.encode(e.consensusState,n.uint32(18).fork()).ldelim(),n},decode:function(e,n){for(var r=e instanceof u.Reader?e:new u.Reader(e),a=void 0===n?r.len:r.pos+n,i={height:void 0,consensusState:void 0};r.pos>>3){case 1:i.height=t.Height.decode(r,r.uint32());break;case 2:i.consensusState=s.Any.decode(r,r.uint32());break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{height:(0,d.isSet)(e.height)?t.Height.fromJSON(e.height):void 0,consensusState:(0,d.isSet)(e.consensusState)?s.Any.fromJSON(e.consensusState):void 0}},toJSON:function(e){var n={};return void 0!==e.height&&(n.height=e.height?t.Height.toJSON(e.height):void 0),void 0!==e.consensusState&&(n.consensusState=e.consensusState?s.Any.toJSON(e.consensusState):void 0),n},fromPartial:function(e){var n={height:void 0,consensusState:void 0};return n.height=void 0!==e.height&&null!==e.height?t.Height.fromPartial(e.height):void 0,n.consensusState=void 0!==e.consensusState&&null!==e.consensusState?s.Any.fromPartial(e.consensusState):void 0,n}},t.ClientConsensusStates={encode:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();""!==e.clientId&&n.uint32(10).string(e.clientId);var a,i=r(e.consensusStates);try{for(i.s();!(a=i.n()).done;){var o=a.value;t.ConsensusStateWithHeight.encode(o,n.uint32(18).fork()).ldelim()}}catch(e){i.e(e)}finally{i.f()}return n},decode:function(e,n){for(var r=e instanceof u.Reader?e:new u.Reader(e),a=void 0===n?r.len:r.pos+n,i={clientId:"",consensusStates:[]};r.pos>>3){case 1:i.clientId=r.string();break;case 2:i.consensusStates.push(t.ConsensusStateWithHeight.decode(r,r.uint32()));break;default:r.skipType(7&o)}}return i},fromJSON:function(e){return{clientId:(0,d.isSet)(e.clientId)?String(e.clientId):"",consensusStates:Array.isArray(null==e?void 0:e.consensusStates)?e.consensusStates.map((function(e){return t.ConsensusStateWithHeight.fromJSON(e)})):[]}},toJSON:function(e){var n={};return void 0!==e.clientId&&(n.clientId=e.clientId),e.consensusStates?n.consensusStates=e.consensusStates.map((function(e){return e?t.ConsensusStateWithHeight.toJSON(e):void 0})):n.consensusStates=[],n},fromPartial:function(e){var n,r,a={clientId:"",consensusStates:[]};return a.clientId=null!==(n=e.clientId)&&void 0!==n?n:"",a.consensusStates=(null===(r=e.consensusStates)||void 0===r?void 0:r.map((function(e){return t.ConsensusStateWithHeight.fromPartial(e)})))||[],a}},t.ClientUpdateProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),""!==e.subjectClientId&&t.uint32(26).string(e.subjectClientId),""!==e.substituteClientId&&t.uint32(34).string(e.substituteClientId),t},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a={title:"",description:"",subjectClientId:"",substituteClientId:""};n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.subjectClientId=n.string();break;case 4:a.substituteClientId=n.string();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{title:(0,d.isSet)(e.title)?String(e.title):"",description:(0,d.isSet)(e.description)?String(e.description):"",subjectClientId:(0,d.isSet)(e.subjectClientId)?String(e.subjectClientId):"",substituteClientId:(0,d.isSet)(e.substituteClientId)?String(e.substituteClientId):""}},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.subjectClientId&&(t.subjectClientId=e.subjectClientId),void 0!==e.substituteClientId&&(t.substituteClientId=e.substituteClientId),t},fromPartial:function(e){var t,n,r,a,i={title:"",description:"",subjectClientId:"",substituteClientId:""};return i.title=null!==(t=e.title)&&void 0!==t?t:"",i.description=null!==(n=e.description)&&void 0!==n?n:"",i.subjectClientId=null!==(r=e.subjectClientId)&&void 0!==r?r:"",i.substituteClientId=null!==(a=e.substituteClientId)&&void 0!==a?a:"",i}},t.UpgradeProposal={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return""!==e.title&&t.uint32(10).string(e.title),""!==e.description&&t.uint32(18).string(e.description),void 0!==e.plan&&c.Plan.encode(e.plan,t.uint32(26).fork()).ldelim(),void 0!==e.upgradedClientState&&s.Any.encode(e.upgradedClientState,t.uint32(34).fork()).ldelim(),t},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a={title:"",description:"",plan:void 0,upgradedClientState:void 0};n.pos>>3){case 1:a.title=n.string();break;case 2:a.description=n.string();break;case 3:a.plan=c.Plan.decode(n,n.uint32());break;case 4:a.upgradedClientState=s.Any.decode(n,n.uint32());break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{title:(0,d.isSet)(e.title)?String(e.title):"",description:(0,d.isSet)(e.description)?String(e.description):"",plan:(0,d.isSet)(e.plan)?c.Plan.fromJSON(e.plan):void 0,upgradedClientState:(0,d.isSet)(e.upgradedClientState)?s.Any.fromJSON(e.upgradedClientState):void 0}},toJSON:function(e){var t={};return void 0!==e.title&&(t.title=e.title),void 0!==e.description&&(t.description=e.description),void 0!==e.plan&&(t.plan=e.plan?c.Plan.toJSON(e.plan):void 0),void 0!==e.upgradedClientState&&(t.upgradedClientState=e.upgradedClientState?s.Any.toJSON(e.upgradedClientState):void 0),t},fromPartial:function(e){var t,n,r={title:"",description:"",plan:void 0,upgradedClientState:void 0};return r.title=null!==(t=e.title)&&void 0!==t?t:"",r.description=null!==(n=e.description)&&void 0!==n?n:"",r.plan=void 0!==e.plan&&null!==e.plan?c.Plan.fromPartial(e.plan):void 0,r.upgradedClientState=void 0!==e.upgradedClientState&&null!==e.upgradedClientState?s.Any.fromPartial(e.upgradedClientState):void 0,r}},t.Height={encode:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create();return e.revisionNumber.isZero()||t.uint32(8).uint64(e.revisionNumber),e.revisionHeight.isZero()||t.uint32(16).uint64(e.revisionHeight),t},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a=f();n.pos>>3){case 1:a.revisionNumber=n.uint64();break;case 2:a.revisionHeight=n.uint64();break;default:n.skipType(7&i)}}return a},fromJSON:function(e){return{revisionNumber:(0,d.isSet)(e.revisionNumber)?d.Long.fromValue(e.revisionNumber):d.Long.UZERO,revisionHeight:(0,d.isSet)(e.revisionHeight)?d.Long.fromValue(e.revisionHeight):d.Long.UZERO}},toJSON:function(e){var t={};return void 0!==e.revisionNumber&&(t.revisionNumber=(e.revisionNumber||d.Long.UZERO).toString()),void 0!==e.revisionHeight&&(t.revisionHeight=(e.revisionHeight||d.Long.UZERO).toString()),t},fromPartial:function(e){var t=f();return t.revisionNumber=void 0!==e.revisionNumber&&null!==e.revisionNumber?d.Long.fromValue(e.revisionNumber):d.Long.UZERO,t.revisionHeight=void 0!==e.revisionHeight&&null!==e.revisionHeight?d.Long.fromValue(e.revisionHeight):d.Long.UZERO,t}},t.Params={encode:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.Writer.create(),a=r(e.allowedClients);try{for(a.s();!(t=a.n()).done;){var i=t.value;n.uint32(10).string(i)}}catch(e){a.e(e)}finally{a.f()}return n},decode:function(e,t){for(var n=e instanceof u.Reader?e:new u.Reader(e),r=void 0===t?n.len:n.pos+t,a={allowedClients:[]};n.pos>>3==1?a.allowedClients.push(n.string()):n.skipType(7&i)}return a},fromJSON:function(e){return{allowedClients:Array.isArray(null==e?void 0:e.allowedClients)?e.allowedClients.map((function(e){return String(e)})):[]}},toJSON:function(e){var t={};return e.allowedClients?t.allowedClients=e.allowedClients.map((function(e){return e})):t.allowedClients=[],t},fromPartial:function(e){var t,n={allowedClients:[]};return n.allowedClients=(null===(t=e.allowedClients)||void 0===t?void 0:t.map((function(e){return e})))||[],n}}},46096:function(e,t,n){"use strict";e.exports=n(19504)},19504:function(e,t,n){"use strict";var r=t;function a(){r.util._configure(),r.Writer._configure(r.BufferWriter),r.Reader._configure(r.BufferReader)}r.build="minimal",r.Writer=n(15329),r.BufferWriter=n(93444),r.Reader=n(41870),r.BufferReader=n(83056),r.util=n(8722),r.rpc=n(62047),r.roots=n(84335),r.configure=a,a()},41870:function(e,t,n){"use strict";e.exports=c;var r,a=n(8722),i=a.LongBits,o=a.utf8;function s(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u,d="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},f=function(){return a.Buffer?function(e){return(c.create=function(e){return a.Buffer.isBuffer(e)?new r(e):d(e)})(e)}:d};function l(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function b(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8);return new i(b(this.buf,this.pos+=4),b(this.buf,this.pos+=4))}c.create=f(),c.prototype._slice=a.Array.prototype.subarray||a.Array.prototype.slice,c.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return u}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return b(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|b(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=a.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=a.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return o.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){r=e,c.create=f(),r._configure();var t=a.Long?"toLong":"toNumber";a.merge(c.prototype,{int64:function(){return l.call(this)[t](!1)},uint64:function(){return l.call(this)[t](!0)},sint64:function(){return l.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},83056:function(e,t,n){"use strict";e.exports=i;var r=n(41870);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(8722);function i(e){r.call(this,e)}i._configure=function(){a.Buffer&&(i.prototype._slice=a.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},84335:function(e){"use strict";e.exports={}},62047:function(e,t,n){"use strict";t.Service=n(33893)},33893:function(e,t,n){"use strict";e.exports=a;var r=n(8722);function a(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(a.prototype=Object.create(r.EventEmitter.prototype)).constructor=a,a.prototype.rpcCall=function e(t,n,a,i,o){if(!i)throw TypeError("request must be specified");var s=this;if(!o)return r.asPromise(e,s,t,n,a,i);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,n){if(e)return s.emit("error",e,t),o(e);if(null!==n){if(!(n instanceof a))try{n=a[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),o(e)}return s.emit("data",n,t),o(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){o(e)}),0)}else setTimeout((function(){o(Error("already ended"))}),0)},a.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},17742:function(e,t,n){"use strict";e.exports=a;var r=n(8722);function a(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=a.zero=new a(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var o=a.zeroHash="\0\0\0\0\0\0\0\0";a.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new a(n,r)},a.from=function(e){if("number"==typeof e)return a.fromNumber(e);if(r.isString(e)){if(!r.Long)return a.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new a(e.low>>>0,e.high>>>0):i},a.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},a.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;a.fromHash=function(e){return e===o?i:new a((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},a.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},a.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},a.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},a.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},8722:function(e,t,n){"use strict";var r=t;function a(e,t,n){for(var r=Object.keys(t),a=0;a0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=a,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function y(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}f.create=l(),f.alloc=function(e){return new a.Array(e)},a.Array!==Array&&(f.alloc=a.pool(f.alloc,a.Array.prototype.subarray)),f.prototype._push=function(e,t,n){return this.tail=this.tail.next=new c(e,t,n),this.len+=t,this},p.prototype=Object.create(c.prototype),p.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(h,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(h,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(h,t.length(),t)},f.prototype.bool=function(e){return this._push(b,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(y,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(y,4,t.lo)._push(y,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(a.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(a.float.writeDoubleLE,8,e)};var m=a.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(b,1,0);if(a.isString(e)){var n=f.alloc(t=o.length(e));o.decode(e,n,0),e=n}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(b,1,0)},f.prototype.fork=function(){return this.states=new d(this),this.head=this.tail=new c(u,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},f._configure=function(e){r=e,f.create=l(),r._configure()}},93444:function(e,t,n){"use strict";e.exports=i;var r=n(15329);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(8722);function i(){r.call(this)}function o(e,t,n){e.length<40?a.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i._configure=function(){i.alloc=a._Buffer_allocUnsafe,i.writeBytesBuffer=a.Buffer&&a.Buffer.prototype instanceof Uint8Array&&"set"===a.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=a.Buffer.byteLength(e);return this.uint32(t),t&&this._push(o,t,e),this},i._configure()},1544:function(e,t){var n;n=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=n)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),n=function(e){var t=0,n=0,r=0,a="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)a[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=a[t]=n>>>8^e[255&n];var i=[];for(r=1;16!=r;++r)i[r-1]="undefined"!=typeof Int32Array?a.subarray(256*r,256*r+256):a.slice(256*r,256*r+256);return i}(t),r=n[0],a=n[1],i=n[2],o=n[3],s=n[4],c=n[5],u=n[6],d=n[7],f=n[8],l=n[9],b=n[10],p=n[11],h=n[12],y=n[13],m=n[14];e.table=t,e.bstr=function(e,n){for(var r=-1^n,a=0,i=e.length;a>>8^t[255&(r^e.charCodeAt(a++))];return~r},e.buf=function(e,n){for(var v=-1^n,g=e.length-15,A=0;A>8&255]^h[e[A++]^v>>16&255]^p[e[A++]^v>>>24]^b[e[A++]]^l[e[A++]]^f[e[A++]]^d[e[A++]]^u[e[A++]]^c[e[A++]]^s[e[A++]]^o[e[A++]]^i[e[A++]]^a[e[A++]]^r[e[A++]]^t[e[A++]];for(g+=15;A>>8^t[255&(v^e[A++])];return~v},e.str=function(e,n){for(var r=-1^n,a=0,i=e.length,o=0,s=0;a>>8^t[255&(r^o)]:o<2048?r=(r=r>>>8^t[255&(r^(192|o>>6&31))])>>>8^t[255&(r^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),s=1023&e.charCodeAt(a++),r=(r=(r=(r=r>>>8^t[255&(r^(240|o>>8&7))])>>>8^t[255&(r^(128|o>>2&63))])>>>8^t[255&(r^(128|s>>6&15|(3&o)<<4))])>>>8^t[255&(r^(128|63&s))]):r=(r=(r=r>>>8^t[255&(r^(224|o>>12&15))])>>>8^t[255&(r^(128|o>>6&63))])>>>8^t[255&(r^(128|63&o))];return~r}},"undefined"==typeof DO_NOT_EXPORT_CRC?n(t):n({})},49832:function(e,t,n){var r=n(5886).Buffer,a=n(98722),i=n(57297);e.exports=function(e){return new s(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new a.ec(this.curveType.name),this.keys=void 0}function c(e,t,n){Array.isArray(e)||(e=e.toArray());var a=new r(e);if(n&&a.length=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,d=n;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,f=67108863&c,l=Math.min(u,t.length-1),b=Math.max(0,u-e.length+1);b<=l;b++){var p=u-b|0;d+=(o=(a=0|e.words[p])*(i=0|t.words[b])+f)/67108864|0,f=67108863&o}n.words[u]=0|f,c=0|d}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?d[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],b=l[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var h=p.modn(b).toString(e);n=(p=p.idivn(b)).isZero()?h+n:d[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),d=this.clone();if(c){for(s=0;!d.isZero();s++)o=d.andln(255),d.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,b=0|o[1],p=8191&b,h=b>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,I=0|o[5],S=8191&I,E=I>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,N=0|o[8],R=8191&N,D=N>>>13,j=0|o[9],U=8191&j,L=j>>>13,F=0|s[0],Z=8191&F,H=F>>>13,z=0|s[1],Q=8191&z,q=z>>>13,V=0|s[2],J=8191&V,K=V>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,de=0|s[8],fe=8191&de,le=de>>>13,be=0|s[9],pe=8191&be,he=be>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(f,Z))|0)+((8191&(a=(a=Math.imul(f,H))+Math.imul(l,Z)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(p,Z),a=(a=Math.imul(p,H))+Math.imul(h,Z)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(f,Q)|0)|0)+((8191&(a=(a=a+Math.imul(f,q)|0)+Math.imul(l,Q)|0))<<13)|0;u=((i=i+Math.imul(l,q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,Z),a=(a=Math.imul(m,H))+Math.imul(v,Z)|0,i=Math.imul(v,H),r=r+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,q)|0)+Math.imul(h,Q)|0,i=i+Math.imul(h,q)|0;var ve=(u+(r=r+Math.imul(f,J)|0)|0)+((8191&(a=(a=a+Math.imul(f,K)|0)+Math.imul(l,J)|0))<<13)|0;u=((i=i+Math.imul(l,K)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,Z),a=(a=Math.imul(A,H))+Math.imul(w,Z)|0,i=Math.imul(w,H),r=r+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,q)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,a=(a=a+Math.imul(p,K)|0)+Math.imul(h,J)|0,i=i+Math.imul(h,K)|0;var ge=(u+(r=r+Math.imul(f,W)|0)|0)+((8191&(a=(a=a+Math.imul(f,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,Z),a=(a=Math.imul(_,H))+Math.imul(k,Z)|0,i=Math.imul(k,H),r=r+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,q)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,q)|0,r=r+Math.imul(m,J)|0,a=(a=a+Math.imul(m,K)|0)+Math.imul(v,J)|0,i=i+Math.imul(v,K)|0,r=r+Math.imul(p,W)|0,a=(a=a+Math.imul(p,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(f,$)|0)|0)+((8191&(a=(a=a+Math.imul(f,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(S,Z),a=(a=Math.imul(S,H))+Math.imul(E,Z)|0,i=Math.imul(E,H),r=r+Math.imul(_,Q)|0,a=(a=a+Math.imul(_,q)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,q)|0,r=r+Math.imul(A,J)|0,a=(a=a+Math.imul(A,K)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,K)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(p,$)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(a=(a=a+Math.imul(f,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,Z),a=(a=Math.imul(T,H))+Math.imul(O,Z)|0,i=Math.imul(O,H),r=r+Math.imul(S,Q)|0,a=(a=a+Math.imul(S,q)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,q)|0,r=r+Math.imul(_,J)|0,a=(a=a+Math.imul(_,K)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,K)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(p,ne)|0,a=(a=a+Math.imul(p,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(f,ie)|0)|0)+((8191&(a=(a=a+Math.imul(f,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,Z),a=(a=Math.imul(M,H))+Math.imul(B,Z)|0,i=Math.imul(B,H),r=r+Math.imul(T,Q)|0,a=(a=a+Math.imul(T,q)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,q)|0,r=r+Math.imul(S,J)|0,a=(a=a+Math.imul(S,K)|0)+Math.imul(E,J)|0,i=i+Math.imul(E,K)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(p,ie)|0,a=(a=a+Math.imul(p,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(a=(a=a+Math.imul(f,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,Z),a=(a=Math.imul(R,H))+Math.imul(D,Z)|0,i=Math.imul(D,H),r=r+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,q)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,q)|0,r=r+Math.imul(T,J)|0,a=(a=a+Math.imul(T,K)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,K)|0,r=r+Math.imul(S,W)|0,a=(a=a+Math.imul(S,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(p,ce)|0,a=(a=a+Math.imul(p,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(a=(a=a+Math.imul(f,le)|0)+Math.imul(l,fe)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,Z),a=(a=Math.imul(U,H))+Math.imul(L,Z)|0,i=Math.imul(L,H),r=r+Math.imul(R,Q)|0,a=(a=a+Math.imul(R,q)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,q)|0,r=r+Math.imul(M,J)|0,a=(a=a+Math.imul(M,K)|0)+Math.imul(B,J)|0,i=i+Math.imul(B,K)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(S,$)|0,a=(a=a+Math.imul(S,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(p,fe)|0,a=(a=a+Math.imul(p,le)|0)+Math.imul(h,fe)|0,i=i+Math.imul(h,le)|0;var Ie=(u+(r=r+Math.imul(f,pe)|0)|0)+((8191&(a=(a=a+Math.imul(f,he)|0)+Math.imul(l,pe)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,Q),a=(a=Math.imul(U,q))+Math.imul(L,Q)|0,i=Math.imul(L,q),r=r+Math.imul(R,J)|0,a=(a=a+Math.imul(R,K)|0)+Math.imul(D,J)|0,i=i+Math.imul(D,K)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(S,ne)|0,a=(a=a+Math.imul(S,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,fe)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,fe)|0,i=i+Math.imul(v,le)|0;var Se=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(a=(a=a+Math.imul(p,he)|0)+Math.imul(h,pe)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,J),a=(a=Math.imul(U,K))+Math.imul(L,J)|0,i=Math.imul(L,K),r=r+Math.imul(R,W)|0,a=(a=a+Math.imul(R,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(S,ie)|0,a=(a=a+Math.imul(S,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,pe)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,pe)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(R,$)|0,a=(a=a+Math.imul(R,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(S,ce)|0,a=(a=a+Math.imul(S,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,fe)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,pe)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,pe)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,a=(a=a+Math.imul(R,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(S,fe)|0,a=(a=a+Math.imul(S,le)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,pe)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,pe)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(R,ie)|0,a=(a=a+Math.imul(R,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,fe)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,fe)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(S,pe)|0)|0)+((8191&(a=(a=a+Math.imul(S,he)|0)+Math.imul(E,pe)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(R,ce)|0,a=(a=a+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,pe)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,pe)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(R,fe)|0,a=(a=a+Math.imul(R,le)|0)+Math.imul(D,fe)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,pe)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,pe)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,fe),a=(a=Math.imul(U,le))+Math.imul(L,fe)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(R,pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,he)|0)+Math.imul(D,pe)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Ne=(u+(r=Math.imul(U,pe))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,pe)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Ie,c[10]=Se,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Ne,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=b),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?p(this,e,t):r<63?b(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==d||u>=a);u--){var f=0|this.words[u];this.words[u]=d<<26-i|f>>>i,d=f&s}return c&&0!==d&&(c.words[c.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var l=67108864*(0|r.words[a.length+f])+(0|r.words[a.length+f-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var d=n.clone(),f=t.clone();!t.isZero();){for(var l=0,b=1;0==(t.words[0]&b)&&l<26;++l,b<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(d),o.isub(f)),a.iushrn(1),o.iushrn(1);for(var p=0,h=1;0==(n.words[0]&h)&&p<26;++p,h<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(d),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,d=1;0==(t.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var f=0,l=1;0==(n.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);0!==this.pow(d,u).cmp(c);)d.redIAdd(c);for(var f=this.pow(d,a),l=this.pow(e,a.addn(1).iushrn(1)),b=this.pow(e,a),p=o;0!==b.cmp(s);){for(var h=b,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],d=c-1;d>=0;d--){var f=u>>d&1;a!==n[0]&&(a=this.sqr(a)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===d)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},51132:function(e,t,n){"use strict";var r=n(56249),a=n(29078),i=n(83195),o=n(67402),s=n(85422);function c(e){s.call(this,"digest"),this._hash=e}r(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new a:"rmd160"===e||"ripemd160"===e?new i:new c(o(e))}},70529:function(e,t,n){var r=n(29078);e.exports=function(e){return(new r).update(e).digest()}},79710:function(e,t,n){"use strict";var r=n(56249),a=n(7607),i=n(85422),o=n(31892).Buffer,s=n(70529),c=n(83195),u=n(67402),d=o.alloc(128);function f(e,t){i.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var n="sha512"===e||"sha384"===e?128:64;this._alg=e,this._key=t,t.length>n?t=("rmd160"===e?new c:u(e)).update(t).digest():t.lengths?t=e(t):t.length-1};function i(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function o(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function u(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function f(e){var t=new FileReader,n=d(t);return t.readAsArrayBuffer(e),n}function l(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:n.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:n.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=l(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=l(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var e,t,n,r=u(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=d(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function y(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(a))}})),t}function m(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}h.prototype.clone=function(){return new h(this,{body:this._bodyInit})},b.call(h.prototype),b.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var v=[301,302,303,307,308];m.redirect=function(e,t){if(-1===v.indexOf(t))throw new RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function g(e,r){return new Promise((function(a,i){var o=new h(e,r);if(o.signal&&o.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var a=n.join(":").trim();t.append(r,a)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;a(new m(r,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&n.blob&&(s.responseType="blob"),o.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",u)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}g.polyfill=!0,e.fetch||(e.fetch=g,e.Headers=c,e.Request=h,e.Response=m),t.Headers=c,t.Request=h,t.Response=m,t.fetch=g,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=r;(t=a.fetch).default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t},23092:function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(41753),t.createHash=t.Hash=n(51132),t.createHmac=t.Hmac=n(79710);var r=n(65567),a=Object.keys(r),i=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(a);t.getHashes=function(){return i};var o=n(65718);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var s=n(94822);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var c=n(14446);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var u=n(70710);t.createSign=u.createSign,t.Sign=u.Sign,t.createVerify=u.createVerify,t.Verify=u.Verify,t.createECDH=n(49832);var d=n(36975);t.publicEncrypt=d.publicEncrypt,t.privateEncrypt=d.privateEncrypt,t.publicDecrypt=d.publicDecrypt,t.privateDecrypt=d.privateDecrypt;var f=n(39034);t.randomFill=f.randomFill,t.randomFillSync=f.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},85363:function(e,t,n){var r;!function(a){"use strict";var i,o,s,c=9e15,u=1e9,d="0123456789abcdef",f="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",l="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",b={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-c,maxE:c,crypto:!1},p=!0,h="[DecimalError] ",y=h+"Invalid argument: ",m=h+"Precision limit exceeded",v=h+"crypto unavailable",g="[object Decimal]",A=Math.floor,w=Math.pow,x=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,_=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,k=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,I=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,S=1e7,E=7,C=f.length-1,T=l.length-1,O={toStringTag:g};function P(e){var t,n,r,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;tn)throw Error(y+e)}function B(e,t,n,r){var a,i,o,s;for(i=e[0];i>=10;i/=10)--t;return--t<0?(t+=E,a=0):(a=Math.ceil((t+1)/E),t%=E),i=w(10,E-t),s=e[a]%i|0,null==r?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),o=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):o=(n<4&&s+1==i||n>3&&s+1==i/2)&&(e[a+1]/i/100|0)==w(10,t-2)-1||(s==i/2||0==s)&&0==(e[a+1]/i/100|0):t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),o=(r||n<4)&&9999==s||!r&&n>3&&4999==s):o=((r||n<4)&&s+1==i||!r&&n>3&&s+1==i/2)&&(e[a+1]/i/1e3|0)==w(10,t-3)-1,o}function N(e,t,n){for(var r,a,i=[0],o=0,s=e.length;on-1&&(void 0===i[r+1]&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}O.absoluteValue=O.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),D(e)},O.ceil=function(){return D(new this.constructor(this),this.e+1,2)},O.clampedTo=O.clamp=function(e,t){var n=this,r=n.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(y+t);return n.cmp(e)<0?e:n.cmp(t)>0?t:new r(n)},O.comparedTo=O.cmp=function(e){var t,n,r,a,i=this,o=i.d,s=(e=new i.constructor(e)).d,c=i.s,u=e.s;if(!o||!s)return c&&u?c!==u?c:o===s?0:!o^c<0?1:-1:NaN;if(!o[0]||!s[0])return o[0]?c:s[0]?-u:0;if(c!==u)return c;if(i.e!==e.e)return i.e>e.e^c<0?1:-1;for(t=0,n=(r=o.length)<(a=s.length)?r:a;ts[t]^c<0?1:-1;return r===a?0:r>a^c<0?1:-1},O.cosine=O.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+E,r.rounding=1,n=function(e,t){var n,r,a;if(t.isZero())return t;(r=t.d.length)<32?a=(1/X(4,n=Math.ceil(r/3))).toString():(n=16,a="2.3283064365386962890625e-10"),e.precision+=n,t=Y(e,1,t.times(a),new e(1));for(var i=n;i--;){var o=t.times(t);t=o.times(o).minus(o).times(8).plus(1)}return e.precision-=n,t}(r,$(r,n)),r.precision=e,r.rounding=t,D(2==s||3==s?n.neg():n,e,t,!0)):new r(1):new r(NaN)},O.cubeRoot=O.cbrt=function(){var e,t,n,r,a,i,o,s,c,u,d=this,f=d.constructor;if(!d.isFinite()||d.isZero())return new f(d);for(p=!1,(i=d.s*w(d.s*d,1/3))&&Math.abs(i)!=1/0?r=new f(i.toString()):(n=P(d.d),(i=((e=d.e)-n.length+1)%3)&&(n+=1==i||-2==i?"0":"00"),i=w(n,1/3),e=A((e+1)/3)-(e%3==(e<0?-1:2)),(r=new f(n=i==1/0?"5e"+e:(n=i.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=d.s),o=(e=f.precision)+3;;)if(u=(c=(s=r).times(s).times(s)).plus(d),r=R(u.plus(d).times(s),u.plus(c),o+2,1),P(s.d).slice(0,o)===(n=P(r.d)).slice(0,o)){if("9999"!=(n=n.slice(o-3,o+1))&&(a||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(D(r,e+1,1),t=!r.times(r).times(r).eq(d));break}if(!a&&(D(s,e+1,0),s.times(s).times(s).eq(d))){r=s;break}o+=4,a=1}return p=!0,D(r,e,f.rounding,t)},O.decimalPlaces=O.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-A(this.e/E))*E,e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},O.dividedBy=O.div=function(e){return R(this,new this.constructor(e))},O.dividedToIntegerBy=O.divToInt=function(e){var t=this.constructor;return D(R(this,new t(e),0,1,1),t.precision,t.rounding)},O.equals=O.eq=function(e){return 0===this.cmp(e)},O.floor=function(){return D(new this.constructor(this),this.e+1,3)},O.greaterThan=O.gt=function(e){return this.cmp(e)>0},O.greaterThanOrEqualTo=O.gte=function(e){var t=this.cmp(e);return 1==t||0===t},O.hyperbolicCosine=O.cosh=function(){var e,t,n,r,a,i=this,o=i.constructor,s=new o(1);if(!i.isFinite())return new o(i.s?1/0:NaN);if(i.isZero())return s;n=o.precision,r=o.rounding,o.precision=n+Math.max(i.e,i.sd())+4,o.rounding=1,(a=i.d.length)<32?t=(1/X(4,e=Math.ceil(a/3))).toString():(e=16,t="2.3283064365386962890625e-10"),i=Y(o,1,i.times(t),new o(1),!0);for(var c,u=e,d=new o(8);u--;)c=i.times(i),i=s.minus(c.times(d.minus(c.times(d))));return D(i,o.precision=n,o.rounding=r,!0)},O.hyperbolicSine=O.sinh=function(){var e,t,n,r,a=this,i=a.constructor;if(!a.isFinite()||a.isZero())return new i(a);if(t=i.precision,n=i.rounding,i.precision=t+Math.max(a.e,a.sd())+4,i.rounding=1,(r=a.d.length)<3)a=Y(i,2,a,a,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,a=Y(i,2,a=a.times(1/X(5,e)),a,!0);for(var o,s=new i(5),c=new i(16),u=new i(20);e--;)o=a.times(a),a=a.times(s.plus(o.times(c.times(o).plus(u))))}return i.precision=t,i.rounding=n,D(a,t,n,!0)},O.hyperbolicTangent=O.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,R(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},O.inverseCosine=O.acos=function(){var e,t=this,n=t.constructor,r=t.abs().cmp(1),a=n.precision,i=n.rounding;return-1!==r?0===r?t.isNeg()?F(n,a,i):new n(0):new n(NaN):t.isZero()?F(n,a+4,i).times(.5):(n.precision=a+6,n.rounding=1,t=t.asin(),e=F(n,a+4,i).times(.5),n.precision=a,n.rounding=i,e.minus(t))},O.inverseHyperbolicCosine=O.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,p=!1,n=n.times(n).minus(1).sqrt().plus(n),p=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},O.inverseHyperbolicSine=O.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,p=!1,n=n.times(n).plus(1).sqrt().plus(n),p=!0,r.precision=e,r.rounding=t,n.ln())},O.inverseHyperbolicTangent=O.atanh=function(){var e,t,n,r,a=this,i=a.constructor;return a.isFinite()?a.e>=0?new i(a.abs().eq(1)?a.s/0:a.isZero()?a:NaN):(e=i.precision,t=i.rounding,r=a.sd(),Math.max(r,e)<2*-a.e-1?D(new i(a),e,t,!0):(i.precision=n=r-a.e,a=R(a.plus(1),new i(1).minus(a),n+e,1),i.precision=e+4,i.rounding=1,a=a.ln(),i.precision=e,i.rounding=t,a.times(.5))):new i(NaN)},O.inverseSine=O.asin=function(){var e,t,n,r,a=this,i=a.constructor;return a.isZero()?new i(a):(t=a.abs().cmp(1),n=i.precision,r=i.rounding,-1!==t?0===t?((e=F(i,n+4,r).times(.5)).s=a.s,e):new i(NaN):(i.precision=n+6,i.rounding=1,a=a.div(new i(1).minus(a.times(a)).sqrt().plus(1)).atan(),i.precision=n,i.rounding=r,a.times(2)))},O.inverseTangent=O.atan=function(){var e,t,n,r,a,i,o,s,c,u=this,d=u.constructor,f=d.precision,l=d.rounding;if(u.isFinite()){if(u.isZero())return new d(u);if(u.abs().eq(1)&&f+4<=T)return(o=F(d,f+4,l).times(.25)).s=u.s,o}else{if(!u.s)return new d(NaN);if(f+4<=T)return(o=F(d,f+4,l).times(.5)).s=u.s,o}for(d.precision=s=f+10,d.rounding=1,e=n=Math.min(28,s/E+2|0);e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(p=!1,t=Math.ceil(s/E),r=1,c=u.times(u),o=new d(u),a=u;-1!==e;)if(a=a.times(c),i=o.minus(a.div(r+=2)),a=a.times(c),void 0!==(o=i.plus(a.div(r+=2))).d[t])for(e=t;o.d[e]===i.d[e]&&e--;);return n&&(o=o.times(2<this.d.length-2},O.isNaN=function(){return!this.s},O.isNegative=O.isNeg=function(){return this.s<0},O.isPositive=O.isPos=function(){return this.s>0},O.isZero=function(){return!!this.d&&0===this.d[0]},O.lessThan=O.lt=function(e){return this.cmp(e)<0},O.lessThanOrEqualTo=O.lte=function(e){return this.cmp(e)<1},O.logarithm=O.log=function(e){var t,n,r,a,i,o,s,c,u=this,d=u.constructor,f=d.precision,l=d.rounding;if(null==e)e=new d(10),t=!0;else{if(n=(e=new d(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new d(NaN);t=e.eq(10)}if(n=u.d,u.s<0||!n||!n[0]||u.eq(1))return new d(n&&!n[0]?-1/0:1!=u.s?NaN:n?0:1/0);if(t)if(n.length>1)i=!0;else{for(a=n[0];a%10==0;)a/=10;i=1!==a}if(p=!1,o=J(u,s=f+5),r=t?L(d,s+10):J(e,s),B((c=R(o,r,s,1)).d,a=f,l))do{if(o=J(u,s+=10),r=t?L(d,s+10):J(e,s),c=R(o,r,s,1),!i){+P(c.d).slice(a+1,a+15)+1==1e14&&(c=D(c,f+1,0));break}}while(B(c.d,a+=10,l));return p=!0,D(c,f,l)},O.minus=O.sub=function(e){var t,n,r,a,i,o,s,c,u,d,f,l,b=this,h=b.constructor;if(e=new h(e),!b.d||!e.d)return b.s&&e.s?b.d?e.s=-e.s:e=new h(e.d||b.s!==e.s?b:NaN):e=new h(NaN),e;if(b.s!=e.s)return e.s=-e.s,b.plus(e);if(u=b.d,l=e.d,s=h.precision,c=h.rounding,!u[0]||!l[0]){if(l[0])e.s=-e.s;else{if(!u[0])return new h(3===c?-0:0);e=new h(b)}return p?D(e,s,c):e}if(n=A(e.e/E),d=A(b.e/E),u=u.slice(),i=d-n){for((f=i<0)?(t=u,i=-i,o=l.length):(t=l,n=d,o=u.length),i>(r=Math.max(Math.ceil(s/E),o)+2)&&(i=r,t.length=1),t.reverse(),r=i;r--;)t.push(0);t.reverse()}else{for((f=(r=u.length)<(o=l.length))&&(o=r),r=0;r0;--r)u[o++]=0;for(r=l.length;r>i;){if(u[--r](o=(i=Math.ceil(s/E))>o?i+1:o+1)&&(a=o,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for((o=u.length)-(a=d.length)<0&&(a=o,n=d,d=u,u=n),t=0;a;)t=(u[--a]=u[a]+d[a]+t)/S|0,u[a]%=S;for(t&&(u.unshift(t),++r),o=u.length;0==u[--o];)u.pop();return e.d=u,e.e=U(u,r),p?D(e,s,c):e},O.precision=O.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(y+e);return n.d?(t=Z(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},O.round=function(){var e=this,t=e.constructor;return D(new t(e),e.e+1,t.rounding)},O.sine=O.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+E,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:Y(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=Y(e,2,t=t.times(1/X(5,n)),t);for(var a,i=new e(5),o=new e(16),s=new e(20);n--;)a=t.times(t),t=t.times(i.plus(a.times(o.times(a).minus(s))));return t}(r,$(r,n)),r.precision=e,r.rounding=t,D(s>2?n.neg():n,e,t,!0)):new r(NaN)},O.squareRoot=O.sqrt=function(){var e,t,n,r,a,i,o=this,s=o.d,c=o.e,u=o.s,d=o.constructor;if(1!==u||!s||!s[0])return new d(!u||u<0&&(!s||s[0])?NaN:s?o:1/0);for(p=!1,0==(u=Math.sqrt(+o))||u==1/0?(((t=P(s)).length+c)%2==0&&(t+="0"),u=Math.sqrt(t),c=A((c+1)/2)-(c<0||c%2),r=new d(t=u==1/0?"5e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):r=new d(u.toString()),n=(c=d.precision)+3;;)if(r=(i=r).plus(R(o,i,n+2,1)).times(.5),P(i.d).slice(0,n)===(t=P(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(a||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(D(r,c+1,1),e=!r.times(r).eq(o));break}if(!a&&(D(i,c+1,0),i.times(i).eq(o))){r=i;break}n+=4,a=1}return p=!0,D(r,c,d.rounding,e)},O.tangent=O.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=R(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,D(2==s||4==s?n.neg():n,e,t,!0)):new r(NaN)},O.times=O.mul=function(e){var t,n,r,a,i,o,s,c,u,d=this,f=d.constructor,l=d.d,b=(e=new f(e)).d;if(e.s*=d.s,!(l&&l[0]&&b&&b[0]))return new f(!e.s||l&&!l[0]&&!b||b&&!b[0]&&!l?NaN:l&&b?0*e.s:e.s/0);for(n=A(d.e/E)+A(e.e/E),(c=l.length)<(u=b.length)&&(i=l,l=b,b=i,o=c,c=u,u=o),i=[],r=o=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,a=c+r;a>r;)s=i[a]+b[r]*l[a-r-1]+t,i[a--]=s%S|0,t=s/S|0;i[a]=(i[a]+t)%S|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=U(i,n),p?D(e,f.precision,f.rounding):e},O.toBinary=function(e,t){return ee(this,2,e,t)},O.toDecimalPlaces=O.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(M(e,0,u),void 0===t?t=r.rounding:M(t,0,8),D(n,e+n.e+1,t))},O.toExponential=function(e,t){var n,r=this,a=r.constructor;return void 0===e?n=j(r,!0):(M(e,0,u),void 0===t?t=a.rounding:M(t,0,8),n=j(r=D(new a(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},O.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return void 0===e?n=j(a):(M(e,0,u),void 0===t?t=i.rounding:M(t,0,8),n=j(r=D(new i(a),e+a.e+1,t),!1,e+r.e+1)),a.isNeg()&&!a.isZero()?"-"+n:n},O.toFraction=function(e){var t,n,r,a,i,o,s,c,u,d,f,l,b=this,h=b.d,m=b.constructor;if(!h)return new m(b);if(u=n=new m(1),r=c=new m(0),o=(i=(t=new m(r)).e=Z(h)-b.e-1)%E,t.d[0]=w(10,o<0?E+o:o),null==e)e=i>0?t:u;else{if(!(s=new m(e)).isInt()||s.lt(u))throw Error(y+s);e=s.gt(t)?i>0?t:u:s}for(p=!1,s=new m(P(h)),d=m.precision,m.precision=i=h.length*E*2;f=R(s,t,0,1,1),1!=(a=n.plus(f.times(r))).cmp(e);)n=r,r=a,a=u,u=c.plus(f.times(a)),c=a,a=t,t=s.minus(f.times(a)),s=a;return a=R(e.minus(n),r,0,1,1),c=c.plus(a.times(u)),n=n.plus(a.times(r)),c.s=u.s=b.s,l=R(u,r,i,1).minus(b).abs().cmp(R(c,n,i,1).minus(b).abs())<1?[u,r]:[c,n],m.precision=d,p=!0,l},O.toHexadecimal=O.toHex=function(e,t){return ee(this,16,e,t)},O.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:M(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(p=!1,n=R(n,e,0,t,1).times(e),p=!0,D(n)):(e.s=n.s,n=e),n},O.toNumber=function(){return+this},O.toOctal=function(e,t){return ee(this,8,e,t)},O.toPower=O.pow=function(e){var t,n,r,a,i,o,s=this,c=s.constructor,u=+(e=new c(e));if(!(s.d&&e.d&&s.d[0]&&e.d[0]))return new c(w(+s,u));if((s=new c(s)).eq(1))return s;if(r=c.precision,i=c.rounding,e.eq(1))return D(s,r,i);if((t=A(e.e/E))>=e.d.length-1&&(n=u<0?-u:u)<=9007199254740991)return a=z(c,s,n,r),e.s<0?new c(1).div(a):D(a,r,i);if((o=s.s)<0){if(tc.maxE+1||t0?o/0:0):(p=!1,c.rounding=s.s=1,n=Math.min(12,(t+"").length),(a=V(e.times(J(s,r+n)),r)).d&&B((a=D(a,r+5,1)).d,r,i)&&(t=r+10,+P((a=D(V(e.times(J(s,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(a=D(a,r+1,0))),a.s=o,p=!0,c.rounding=i,D(a,r,i))},O.toPrecision=function(e,t){var n,r=this,a=r.constructor;return void 0===e?n=j(r,r.e<=a.toExpNeg||r.e>=a.toExpPos):(M(e,1,u),void 0===t?t=a.rounding:M(t,0,8),n=j(r=D(new a(r),e,t),e<=r.e||r.e<=a.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},O.toSignificantDigits=O.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(M(e,1,u),void 0===t?t=n.rounding:M(t,0,8)),D(new n(this),e,t)},O.toString=function(){var e=this,t=e.constructor,n=j(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},O.truncated=O.trunc=function(){return D(new this.constructor(this),this.e+1,1)},O.valueOf=O.toJSON=function(){var e=this,t=e.constructor,n=j(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var R=function(){function e(e,t,n){var r,a=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+a,e[i]=r%n|0,a=r/n|0;return a&&e.unshift(a),e}function t(e,t,n,r){var a,i;if(n!=r)i=n>r?1:-1;else for(a=i=0;at[a]?1:-1;break}return i}function n(e,t,n,r){for(var a=0;n--;)e[n]-=a,a=e[n]1;)e.shift()}return function(r,a,i,s,c,u){var d,f,l,b,p,h,y,m,v,g,w,x,_,k,I,C,T,O,P,M,B=r.constructor,N=r.s==a.s?1:-1,R=r.d,j=a.d;if(!(R&&R[0]&&j&&j[0]))return new B(r.s&&a.s&&(R?!j||R[0]!=j[0]:j)?R&&0==R[0]||!j?0*N:N/0:NaN);for(u?(p=1,f=r.e-a.e):(u=S,p=E,f=A(r.e/p)-A(a.e/p)),P=j.length,T=R.length,g=(v=new B(N)).d=[],l=0;j[l]==(R[l]||0);l++);if(j[l]>(R[l]||0)&&f--,null==i?(k=i=B.precision,s=B.rounding):k=c?i+(r.e-a.e)+1:i,k<0)g.push(1),h=!0;else{if(k=k/p+2|0,l=0,1==P){for(b=0,j=j[0],k++;(l1&&(j=e(j,b,u),R=e(R,b,u),P=j.length,T=R.length),C=P,x=(w=R.slice(0,P)).length;x=u/2&&++O;do{b=0,(d=t(j,w,P,x))<0?(_=w[0],P!=x&&(_=_*u+(w[1]||0)),(b=_/O|0)>1?(b>=u&&(b=u-1),1==(d=t(y=e(j,b,u),w,m=y.length,x=w.length))&&(b--,n(y,P=10;b/=10)l++;v.e=l+f*p-1,D(v,c?i+v.e+1:i,s,h)}return v}}();function D(e,t,n,r){var a,i,o,s,c,u,d,f,l,b=e.constructor;e:if(null!=t){if(!(f=e.d))return e;for(a=1,s=f[0];s>=10;s/=10)a++;if((i=t-a)<0)i+=E,o=t,c=(d=f[l=0])/w(10,a-o-1)%10|0;else if((l=Math.ceil((i+1)/E))>=(s=f.length)){if(!r)break e;for(;s++<=l;)f.push(0);d=c=0,a=1,o=(i%=E)-E+1}else{for(d=s=f[l],a=1;s>=10;s/=10)a++;c=(o=(i%=E)-E+a)<0?0:d/w(10,a-o-1)%10|0}if(r=r||t<0||void 0!==f[l+1]||(o<0?d:d%w(10,a-o-1)),u=n<4?(c||r)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||r||6==n&&(i>0?o>0?d/w(10,a-o):0:f[l-1])%10&1||n==(e.s<0?8:7)),t<1||!f[0])return f.length=0,u?(t-=e.e+1,f[0]=w(10,(E-t%E)%E),e.e=-t||0):f[0]=e.e=0,e;if(0==i?(f.length=l,s=1,l--):(f.length=l+1,s=w(10,E-i),f[l]=o>0?(d/w(10,a-o)%w(10,o)|0)*s:0),u)for(;;){if(0==l){for(i=1,o=f[0];o>=10;o/=10)i++;for(o=f[0]+=s,s=1;o>=10;o/=10)s++;i!=s&&(e.e++,f[0]==S&&(f[0]=1));break}if(f[l]+=s,f[l]!=S)break;f[l--]=0,s=1}for(i=f.length;0===f[--i];)f.pop()}return p&&(e.e>b.maxE?(e.d=null,e.e=NaN):e.e0?i=i.charAt(0)+"."+i.slice(1)+H(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(e.e<0?"e":"e+")+e.e):a<0?(i="0."+H(-a-1)+i,n&&(r=n-o)>0&&(i+=H(r))):a>=o?(i+=H(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+H(r))):((r=a+1)0&&(a+1===o&&(i+="."),i+=H(r))),i}function U(e,t){var n=e[0];for(t*=E;n>=10;n/=10)t++;return t}function L(e,t,n){if(t>C)throw p=!0,n&&(e.precision=n),Error(m);return D(new e(f),t,1,!0)}function F(e,t,n){if(t>T)throw Error(m);return D(new e(l),t,n,!0)}function Z(e){var t=e.length-1,n=t*E+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function H(e){for(var t="";e--;)t+="0";return t}function z(e,t,n,r){var a,i=new e(1),o=Math.ceil(r/E+4);for(p=!1;;){if(n%2&&te((i=i.times(t)).d,o)&&(a=!0),0===(n=A(n/2))){n=i.d.length-1,a&&0===i.d[n]&&++i.d[n];break}te((t=t.times(t)).d,o)}return p=!0,i}function Q(e){return 1&e.d[e.d.length-1]}function q(e,t,n){for(var r,a=new e(t[0]),i=0;++i17)return new l(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(p=!1,c=h):c=t,s=new l(.03125);e.e>-2;)e=e.times(s),f+=5;for(c+=r=Math.log(w(2,f))/Math.LN10*2+5|0,n=i=o=new l(1),l.precision=c;;){if(i=D(i.times(e),c,1),n=n.times(++d),P((s=o.plus(R(i,n,c,1))).d).slice(0,c)===P(o.d).slice(0,c)){for(a=f;a--;)o=D(o.times(o),c,1);if(null!=t)return l.precision=h,o;if(!(u<3&&B(o.d,c-r,b,u)))return D(o,l.precision=h,b,p=!0);l.precision=c+=10,n=i=s=new l(1),d=0,u++}o=s}}function J(e,t){var n,r,a,i,o,s,c,u,d,f,l,b=1,h=e,y=h.d,m=h.constructor,v=m.rounding,g=m.precision;if(h.s<0||!y||!y[0]||!h.e&&1==y[0]&&1==y.length)return new m(y&&!y[0]?-1/0:1!=h.s?NaN:y?0:h);if(null==t?(p=!1,d=g):d=t,m.precision=d+=10,r=(n=P(y)).charAt(0),!(Math.abs(i=h.e)<15e14))return u=L(m,d+2,g).times(i+""),h=J(new m(r+"."+n.slice(1)),d-10).plus(u),m.precision=g,null==t?D(h,g,v,p=!0):h;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=P((h=h.times(e)).d)).charAt(0),b++;for(i=h.e,r>1?(h=new m("0."+n),i++):h=new m(r+"."+n.slice(1)),f=h,c=o=h=R(h.minus(1),h.plus(1),d,1),l=D(h.times(h),d,1),a=3;;){if(o=D(o.times(l),d,1),P((u=c.plus(R(o,new m(a),d,1))).d).slice(0,d)===P(c.d).slice(0,d)){if(c=c.times(2),0!==i&&(c=c.plus(L(m,d+2,g).times(i+""))),c=R(c,new m(b),d,1),null!=t)return m.precision=g,c;if(!B(c.d,d-10,v,s))return D(c,m.precision=g,v,p=!0);m.precision=d+=10,u=o=h=R(f.minus(1),f.plus(1),d,1),l=D(h.times(h),d,1),a=s=1}c=u,a+=2}}function K(e){return String(e.s*e.s/0)}function G(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(a=t.length;48===t.charCodeAt(a-1);--a);if(t=t.slice(r,a)){if(a-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%E,n<0&&(r+=E),re.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),I.test(t))return G(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(_.test(t))n=16,t=t.toLowerCase();else if(x.test(t))n=2;else{if(!k.test(t))throw Error(y+t);n=8}for((o=t.search(/p/i))>0?(u=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),s=(o=t.indexOf("."))>=0,r=e.constructor,s&&(o=(c=(t=t.replace(".","")).length)-o,a=z(r,new r(n),o,2*o)),o=f=(d=N(t,n,S)).length-1;0===d[o];--o)d.pop();return o<0?new r(0*e.s):(e.e=U(d,f),e.d=d,p=!1,s&&(e=R(e,a,4*c)),u&&(e=e.times(Math.abs(u)<54?w(2,u):i.pow(2,u))),p=!0,e)}function Y(e,t,n,r,a){var i,o,s,c,u=e.precision,d=Math.ceil(u/E);for(p=!1,c=n.times(n),s=new e(r);;){if(o=R(s.times(c),new e(t++*t++),u,1),s=a?r.plus(o):r.minus(o),r=R(o.times(c),new e(t++*t++),u,1),void 0!==(o=s.plus(r)).d[d]){for(i=d;o.d[i]===s.d[i]&&i--;);if(-1==i)break}i=s,s=r,r=o,o=i}return p=!0,o.d.length=d+1,o}function X(e,t){for(var n=e;--t;)n*=e;return n}function $(e,t){var n,r=t.s<0,a=F(e,e.precision,1),i=a.times(.5);if((t=t.abs()).lte(i))return s=r?4:1,t;if((n=t.divToInt(a)).isZero())s=r?3:2;else{if((t=t.minus(n.times(a))).lte(i))return s=Q(n)?r?2:3:r?4:1,t;s=Q(n)?r?1:4:r?3:2}return t.minus(a).abs()}function ee(e,t,n,r){var a,i,s,c,f,l,b,p,h,y=e.constructor,m=void 0!==n;if(m?(M(n,1,u),void 0===r?r=y.rounding:M(r,0,8)):(n=y.precision,r=y.rounding),e.isFinite()){for(m?(a=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):a=t,(s=(b=j(e)).indexOf("."))>=0&&(b=b.replace(".",""),(h=new y(1)).e=b.length-s,h.d=N(j(h),10,a),h.e=h.d.length),i=f=(p=N(b,10,a)).length;0==p[--f];)p.pop();if(p[0]){if(s<0?i--:((e=new y(e)).d=p,e.e=i,p=(e=R(e,h,n,r,0,a)).d,i=e.e,l=o),s=p[n],c=a/2,l=l||void 0!==p[n+1],l=r<4?(void 0!==s||l)&&(0===r||r===(e.s<0?3:2)):s>c||s===c&&(4===r||l||6===r&&1&p[n-1]||r===(e.s<0?8:7)),p.length=n,l)for(;++p[--n]>a-1;)p[n]=0,n||(++i,p.unshift(1));for(f=p.length;!p[f-1];--f);for(s=0,b="";s1)if(16==t||8==t){for(s=16==t?4:3,--f;f%s;f++)b+="0";for(f=(p=N(b,a,t)).length;!p[f-1];--f);for(s=1,b="1.";sf)for(i-=f;i--;)b+="0";else it)return e.length=t,!0}function ne(e){return new this(e).abs()}function re(e){return new this(e).acos()}function ae(e){return new this(e).acosh()}function ie(e,t){return new this(e).plus(t)}function oe(e){return new this(e).asin()}function se(e){return new this(e).asinh()}function ce(e){return new this(e).atan()}function ue(e){return new this(e).atanh()}function de(e,t){e=new this(e),t=new this(t);var n,r=this.precision,a=this.rounding,i=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?F(this,r,a):new this(0)).s=e.s:!e.d||t.isZero()?(n=F(this,i,1).times(.5)).s=e.s:t.s<0?(this.precision=i,this.rounding=1,n=this.atan(R(e,t,i,1)),t=F(this,i,1),this.precision=r,this.rounding=a,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(R(e,t,i,1)):(n=F(this,i,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function fe(e){return new this(e).cbrt()}function le(e){return D(e=new this(e),e.e+1,2)}function be(e,t,n){return new this(e).clamp(t,n)}function pe(e){if(!e||"object"!=typeof e)throw Error(h+"Object expected");var t,n,r,a=!0===e.defaults,i=["precision",1,u,"rounding",0,8,"toExpNeg",-c,0,"toExpPos",0,c,"maxE",0,c,"minE",-c,0,"modulo",0,9];for(t=0;t=i[t+1]&&r<=i[t+2]))throw Error(y+n+": "+r);this[n]=r}if(n="crypto",a&&(this[n]=b[n]),void 0!==(r=e[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(y+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(v);this[n]=!0}else this[n]=!1}return this}function he(e){return new this(e).cos()}function ye(e){return new this(e).cosh()}function me(e,t){return new this(e).div(t)}function ve(e){return new this(e).exp()}function ge(e){return D(e=new this(e),e.e+1,3)}function Ae(){var e,t,n=new this(0);for(p=!1,e=0;e=429e7?t[i]=crypto.getRandomValues(new Uint32Array(1))[0]:s[i++]=a%1e7;else{if(!crypto.randomBytes)throw Error(v);for(t=crypto.randomBytes(r*=4);i=214e7?crypto.randomBytes(4).copy(t,i):(s.push(a%1e7),i+=4);i=r/4}else for(;i=10;a/=10)r++;ri.maxE?(a.e=NaN,a.d=null):e.e=10;n/=10)t++;return void(p?t>i.maxE?(a.e=NaN,a.d=null):t2?arguments[2]:{},i=r(t);a&&(i=o.call(i,Object.getOwnPropertySymbols(t)));for(var s=0;s0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(a,n);return t+=this._buffer(e,t),a},a.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},a.prototype._pad=function(e,t){if(0===t)return!1;for(;t>>1];n=i.r28shl(n,s),a=i.r28shl(a,s),i.pc2(n,a,e.keys,o)}},c.prototype._update=function(e,t,n,r){var a=this._desState,o=i.readUInt32BE(e,t),s=i.readUInt32BE(e,t+4);i.ip(o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],"encrypt"===this.type?this._encrypt(a,o,s,a.tmp,0):this._decrypt(a,o,s,a.tmp,0),o=a.tmp[0],s=a.tmp[1],i.writeUInt32BE(n,o,r),i.writeUInt32BE(n,s,r+4)},c.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r>>0,o=l}i.rip(s,o,r,a)},c.prototype._decrypt=function(e,t,n,r,a){for(var o=n,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],d=e.keys[c+1];i.expand(o,e.tmp,0),u^=e.tmp[0],d^=e.tmp[1];var f=i.substitute(u,d),l=o;o=(s^i.permute(f))>>>0,s=l}i.rip(o,s,r,a)}},85867:function(e,t,n){"use strict";var r=n(44713),a=n(56249),i=n(80788),o=n(12745);function s(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),a=t.slice(8,16),i=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:a}),o.create({type:"encrypt",key:i})]:[o.create({type:"decrypt",key:i}),o.create({type:"encrypt",key:a}),o.create({type:"decrypt",key:n})]}function c(e){i.call(this,e);var t=new s(this.type,this.options.key);this._edeState=t}a(c,i),e.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,n,r){var a=this._edeState;a.ciphers[0]._update(e,t,n,r),a.ciphers[1]._update(n,r,n,r),a.ciphers[2]._update(n,r,n,r)},c.prototype._pad=o.prototype._pad,c.prototype._unpad=o.prototype._unpad},22268:function(e,t){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var a=0,i=0,o=6;o>=0;o-=2){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>>s+o&1}for(o=6;o>=0;o-=2){for(s=1;s<=25;s+=8)i<<=1,i|=t>>>s+o&1;for(s=1;s<=25;s+=8)i<<=1,i|=e>>>s+o&1}n[r+0]=a>>>0,n[r+1]=i>>>0},t.rip=function(e,t,n,r){for(var a=0,i=0,o=0;o<4;o++)for(var s=24;s>=0;s-=8)a<<=1,a|=t>>>s+o&1,a<<=1,a|=e>>>s+o&1;for(o=4;o<8;o++)for(s=24;s>=0;s-=8)i<<=1,i|=t>>>s+o&1,i<<=1,i|=e>>>s+o&1;n[r+0]=a>>>0,n[r+1]=i>>>0},t.pc1=function(e,t,n,r){for(var a=0,i=0,o=7;o>=5;o--){for(var s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(s=0;s<=24;s+=8)a<<=1,a|=e>>s+o&1}for(s=0;s<=24;s+=8)a<<=1,a|=t>>s+o&1;for(o=1;o<=3;o++){for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+o&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+o&1;n[r+0]=a>>>0,n[r+1]=i>>>0},t.r28shl=function(e,t){return e<>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,a){for(var i=0,o=0,s=n.length>>>1,c=0;c>>n[c]&1;for(c=s;c>>n[c]&1;r[a+0]=i>>>0,r[a+1]=o>>>0},t.expand=function(e,t,n){var r=0,a=0;r=(1&e)<<5|e>>>27;for(var i=23;i>=15;i-=4)r<<=6,r|=e>>>i&63;for(i=11;i>=3;i-=4)a|=e>>>i&63,a<<=6;a|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=a>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,a=0;a<4;a++)n<<=4,n|=r[64*a+(e>>>18-6*a&63)];for(a=0;a<4;a++)n<<=4,n|=r[256+64*a+(t>>>18-6*a&63)];return n>>>0};var a=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n>>a[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.lengthe;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(c),t.cmp(c)){if(!t.cmp(u))for(;n.mod(d).cmp(f);)n.iadd(b)}else for(;n.mod(i).cmp(l);)n.iadd(b);if(y(p=n.shrn(1))&&y(n)&&m(p)&&m(n)&&o.test(p)&&o.test(n))return n}}},83331:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(61212).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,d=n;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,f=67108863&c,l=Math.min(u,t.length-1),b=Math.max(0,u-e.length+1);b<=l;b++){var p=u-b|0;d+=(o=(a=0|e.words[p])*(i=0|t.words[b])+f)/67108864|0,f=67108863&o}n.words[u]=0|f,c=0|d}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?d[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],b=l[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var h=p.modn(b).toString(e);n=(p=p.idivn(b)).isZero()?h+n:d[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),d=this.clone();if(c){for(s=0;!d.isZero();s++)o=d.andln(255),d.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,b=0|o[1],p=8191&b,h=b>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,I=0|o[5],S=8191&I,E=I>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,N=0|o[8],R=8191&N,D=N>>>13,j=0|o[9],U=8191&j,L=j>>>13,F=0|s[0],Z=8191&F,H=F>>>13,z=0|s[1],Q=8191&z,q=z>>>13,V=0|s[2],J=8191&V,K=V>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,de=0|s[8],fe=8191&de,le=de>>>13,be=0|s[9],pe=8191&be,he=be>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(f,Z))|0)+((8191&(a=(a=Math.imul(f,H))+Math.imul(l,Z)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(p,Z),a=(a=Math.imul(p,H))+Math.imul(h,Z)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(f,Q)|0)|0)+((8191&(a=(a=a+Math.imul(f,q)|0)+Math.imul(l,Q)|0))<<13)|0;u=((i=i+Math.imul(l,q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,Z),a=(a=Math.imul(m,H))+Math.imul(v,Z)|0,i=Math.imul(v,H),r=r+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,q)|0)+Math.imul(h,Q)|0,i=i+Math.imul(h,q)|0;var ve=(u+(r=r+Math.imul(f,J)|0)|0)+((8191&(a=(a=a+Math.imul(f,K)|0)+Math.imul(l,J)|0))<<13)|0;u=((i=i+Math.imul(l,K)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,Z),a=(a=Math.imul(A,H))+Math.imul(w,Z)|0,i=Math.imul(w,H),r=r+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,q)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,a=(a=a+Math.imul(p,K)|0)+Math.imul(h,J)|0,i=i+Math.imul(h,K)|0;var ge=(u+(r=r+Math.imul(f,W)|0)|0)+((8191&(a=(a=a+Math.imul(f,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,Z),a=(a=Math.imul(_,H))+Math.imul(k,Z)|0,i=Math.imul(k,H),r=r+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,q)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,q)|0,r=r+Math.imul(m,J)|0,a=(a=a+Math.imul(m,K)|0)+Math.imul(v,J)|0,i=i+Math.imul(v,K)|0,r=r+Math.imul(p,W)|0,a=(a=a+Math.imul(p,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(f,$)|0)|0)+((8191&(a=(a=a+Math.imul(f,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(S,Z),a=(a=Math.imul(S,H))+Math.imul(E,Z)|0,i=Math.imul(E,H),r=r+Math.imul(_,Q)|0,a=(a=a+Math.imul(_,q)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,q)|0,r=r+Math.imul(A,J)|0,a=(a=a+Math.imul(A,K)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,K)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(p,$)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(a=(a=a+Math.imul(f,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,Z),a=(a=Math.imul(T,H))+Math.imul(O,Z)|0,i=Math.imul(O,H),r=r+Math.imul(S,Q)|0,a=(a=a+Math.imul(S,q)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,q)|0,r=r+Math.imul(_,J)|0,a=(a=a+Math.imul(_,K)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,K)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(p,ne)|0,a=(a=a+Math.imul(p,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(f,ie)|0)|0)+((8191&(a=(a=a+Math.imul(f,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,Z),a=(a=Math.imul(M,H))+Math.imul(B,Z)|0,i=Math.imul(B,H),r=r+Math.imul(T,Q)|0,a=(a=a+Math.imul(T,q)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,q)|0,r=r+Math.imul(S,J)|0,a=(a=a+Math.imul(S,K)|0)+Math.imul(E,J)|0,i=i+Math.imul(E,K)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(p,ie)|0,a=(a=a+Math.imul(p,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(a=(a=a+Math.imul(f,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,Z),a=(a=Math.imul(R,H))+Math.imul(D,Z)|0,i=Math.imul(D,H),r=r+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,q)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,q)|0,r=r+Math.imul(T,J)|0,a=(a=a+Math.imul(T,K)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,K)|0,r=r+Math.imul(S,W)|0,a=(a=a+Math.imul(S,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(p,ce)|0,a=(a=a+Math.imul(p,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(a=(a=a+Math.imul(f,le)|0)+Math.imul(l,fe)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,Z),a=(a=Math.imul(U,H))+Math.imul(L,Z)|0,i=Math.imul(L,H),r=r+Math.imul(R,Q)|0,a=(a=a+Math.imul(R,q)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,q)|0,r=r+Math.imul(M,J)|0,a=(a=a+Math.imul(M,K)|0)+Math.imul(B,J)|0,i=i+Math.imul(B,K)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(S,$)|0,a=(a=a+Math.imul(S,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(p,fe)|0,a=(a=a+Math.imul(p,le)|0)+Math.imul(h,fe)|0,i=i+Math.imul(h,le)|0;var Ie=(u+(r=r+Math.imul(f,pe)|0)|0)+((8191&(a=(a=a+Math.imul(f,he)|0)+Math.imul(l,pe)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,Q),a=(a=Math.imul(U,q))+Math.imul(L,Q)|0,i=Math.imul(L,q),r=r+Math.imul(R,J)|0,a=(a=a+Math.imul(R,K)|0)+Math.imul(D,J)|0,i=i+Math.imul(D,K)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(S,ne)|0,a=(a=a+Math.imul(S,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,fe)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,fe)|0,i=i+Math.imul(v,le)|0;var Se=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(a=(a=a+Math.imul(p,he)|0)+Math.imul(h,pe)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,J),a=(a=Math.imul(U,K))+Math.imul(L,J)|0,i=Math.imul(L,K),r=r+Math.imul(R,W)|0,a=(a=a+Math.imul(R,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(S,ie)|0,a=(a=a+Math.imul(S,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,pe)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,pe)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(R,$)|0,a=(a=a+Math.imul(R,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(S,ce)|0,a=(a=a+Math.imul(S,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,fe)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,pe)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,pe)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,a=(a=a+Math.imul(R,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(S,fe)|0,a=(a=a+Math.imul(S,le)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,pe)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,pe)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(R,ie)|0,a=(a=a+Math.imul(R,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,fe)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,fe)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(S,pe)|0)|0)+((8191&(a=(a=a+Math.imul(S,he)|0)+Math.imul(E,pe)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(R,ce)|0,a=(a=a+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,pe)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,pe)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(R,fe)|0,a=(a=a+Math.imul(R,le)|0)+Math.imul(D,fe)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,pe)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,pe)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,fe),a=(a=Math.imul(U,le))+Math.imul(L,fe)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(R,pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,he)|0)+Math.imul(D,pe)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Ne=(u+(r=Math.imul(U,pe))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,pe)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Ie,c[10]=Se,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Ne,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=b),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?p(this,e,t):r<63?b(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==d||u>=a);u--){var f=0|this.words[u];this.words[u]=d<<26-i|f>>>i,d=f&s}return c&&0!==d&&(c.words[c.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var l=67108864*(0|r.words[a.length+f])+(0|r.words[a.length+f-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var d=n.clone(),f=t.clone();!t.isZero();){for(var l=0,b=1;0==(t.words[0]&b)&&l<26;++l,b<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(d),o.isub(f)),a.iushrn(1),o.iushrn(1);for(var p=0,h=1;0==(n.words[0]&h)&&p<26;++p,h<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(d),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,d=1;0==(t.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var f=0,l=1;0==(n.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);0!==this.pow(d,u).cmp(c);)d.redIAdd(c);for(var f=this.pow(d,a),l=this.pow(e,a.addn(1).iushrn(1)),b=this.pow(e,a),p=o;0!==b.cmp(s);){for(var h=b,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],d=c-1;d>=0;d--){var f=u>>d&1;a!==n[0]&&(a=this.sqr(a)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===d)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},60550:function(e){"use strict";var t={single_source_shortest_paths:function(e,n,r){var a={},i={};i[n]=0;var o,s,c,u,d,f,l,b=t.PriorityQueue.make();for(b.push(n,0);!b.empty();)for(c in s=(o=b.pop()).value,u=o.cost,d=e[s]||{})d.hasOwnProperty(c)&&(f=u+d[c],l=i[c],(void 0===i[c]||l>f)&&(i[c]=f,b.push(c,f),a[c]=s));if(void 0!==r&&void 0===i[r]){var p=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(p)}return a},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var a=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(a,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,a={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(a[n]=r[n]);return a.queue=[],a.sorter=e.sorter||r.default_sorter,a},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},36620:function(e,t,n){"use strict";var r=n(5886).Buffer,a=new(0,n(98722).ec)("secp256k1"),i=n.g.crypto||n.g.msCrypto||{},o=i.subtle||i.webkitSubtle,s=n(23092),c=r.from("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","hex"),u=r.alloc(32,0);function d(e,t){if(!e)throw new Error(t||"Assertion failed")}function f(e){return t=e,!(!r.isBuffer(t)||32!==t.length)&&e.compare(u)>0&&e.compare(c)<0;var t}function l(e){var t=new Uint8Array(e);return void 0===i.getRandomValues?r.from(s.randomBytes(e)):(i.getRandomValues(t),r.from(t))}function b(e){return new Promise((function(t){var n=s.createHash("sha512").update(e).digest();t(new Uint8Array(n))}))}function p(e){return function(t,n,a){return new Promise((function(i){if(o)return o.importKey("raw",n,{name:"AES-CBC"},!1,[e]).then((function(n){var r={name:"AES-CBC",iv:t};return o[e](r,n,a)})).then((function(e){i(r.from(new Uint8Array(e)))}));if("encrypt"===e){var c=s.createCipheriv("aes-256-cbc",n,t),u=c.update(a),d=c.final();i(r.concat([u,d]))}else if("decrypt"===e){var f=s.createDecipheriv("aes-256-cbc",n,t),l=f.update(a),b=f.final();i(r.concat([l,b]))}}))}}var h=p("encrypt"),y=p("decrypt"),m=function(e,t){return new Promise((function(n){d(r.isBuffer(e),"Bad private key"),d(r.isBuffer(t),"Bad public key"),d(32===e.length,"Bad private key"),d(f(e),"Bad private key"),d(65===t.length||33===t.length,"Bad public key"),65===t.length&&d(4===t[0],"Bad public key"),33===t.length&&d(2===t[0]||3===t[0],"Bad public key");var i=a.keyFromPrivate(e),o=a.keyFromPublic(t),s=i.derive(o.getPublic());n(r.from(s.toArray()))}))};t.HI=function(e,t,n){var i,o,c,u;return n=n||{},new Promise((function(t){for(var i=n.ephemPrivateKey||l(32);!f(i);)i=n.ephemPrivateKey||l(32);var s;d(32===(s=i).length,"Bad private key"),d(f(s),"Bad private key"),o=r.from(a.keyFromPrivate(s).getPublic("arr")),t(m(i,e))})).then((function(e){return b(e)})).then((function(e){i=n.iv||l(16);var r=e.slice(0,32);return u=e.slice(32),h(i,r,t)})).then((function(e){c=e;var t=r.concat([i,o,c]);return function(e,t){return new Promise((function(n){var a=s.createHmac("sha256",r.from(e));a.update(t),n(a.digest())}))}(u,t)})).then((function(e){return{iv:i,ephemPublicKey:o,ciphertext:c,mac:e}}))},t.pe=function(e,t){var n;return m(e,t.ephemPublicKey).then((function(e){return b(e)})).then((function(e){n=e.slice(0,32);var a,i,o,c=e.slice(32),u=r.concat([t.iv,t.ephemPublicKey,t.ciphertext]);return a=c,i=u,o=t.mac,new Promise((function(e){var t=s.createHmac("sha256",r.from(a));t.update(i),e(function(e,t){if(e.length!==t.length)return!1;for(var n=0,r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=i(t,1,this._bitLength),a=(1<=o;d--)c=(c<<1)+r[d];u.push(c)}for(var f=this.jpoint(null,null,null),l=this.jpoint(null,null,null),b=a;b>0;b--){for(o=0;o=0;u--){for(var d=0;u>=0&&0===o[u];u--)d++;if(u>=0&&d++,c=c.dblp(d),u<0)break;var f=o[u];s(0!==f),c="affine"===e.type?f>0?c.mixedAdd(a[f-1>>1]):c.mixedAdd(a[-f-1>>1].neg()):f>0?c.add(a[f-1>>1]):c.add(a[-f-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,a){var s,c,u,d=this._wnafT1,f=this._wnafT2,l=this._wnafT3,b=0;for(s=0;s=1;s-=2){var h=s-1,y=s;if(1===d[h]&&1===d[y]){var m=[t[h],null,null,t[y]];0===t[h].y.cmp(t[y].y)?(m[1]=t[h].add(t[y]),m[2]=t[h].toJ().mixedAdd(t[y].neg())):0===t[h].y.cmp(t[y].y.redNeg())?(m[1]=t[h].toJ().mixedAdd(t[y]),m[2]=t[h].add(t[y].neg())):(m[1]=t[h].toJ().mixedAdd(t[y]),m[2]=t[h].toJ().mixedAdd(t[y].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=o(n[h],n[y]);for(b=Math.max(g[0].length,b),l[h]=new Array(b),l[y]=new Array(b),c=0;c=0;s--){for(var k=0;s>=0;){var I=!0;for(c=0;c=0&&k++,x=x.dblp(k),s<0)break;for(c=0;c0?u=f[c][S-1>>1]:S<0&&(u=f[c][-S-1>>1].neg()),x="affine"===u.type?x.mixedAdd(u):x.add(u))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,a=0;a":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),a=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),i=r.redAdd(t),o=i.redSub(n),s=r.redSub(t),c=a.redMul(o),u=i.redMul(s),d=a.redMul(s),f=o.redMul(i);return this.curve.point(c,u,f,d)},u.prototype._projDbl=function(){var e,t,n,r,a,i,o=this.x.redAdd(this.y).redSqr(),s=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var u=(r=this.curve._mulA(s)).redAdd(c);this.zOne?(e=o.redSub(s).redSub(c).redMul(u.redSub(this.curve.two)),t=u.redMul(r.redSub(c)),n=u.redSqr().redSub(u).redSub(u)):(a=this.z.redSqr(),i=u.redSub(a).redISub(a),e=o.redSub(s).redISub(c).redMul(i),t=u.redMul(r.redSub(c)),n=u.redMul(i))}else r=s.redAdd(c),a=this.curve._mulC(this.z).redSqr(),i=r.redSub(a).redSub(a),e=this.curve._mulC(o.redISub(r)).redMul(i),t=this.curve._mulC(r).redMul(s.redISub(c)),n=r.redMul(i);return this.curve.point(e,t,n)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),a=this.z.redMul(e.z.redAdd(e.z)),i=n.redSub(t),o=a.redSub(r),s=a.redAdd(r),c=n.redAdd(t),u=i.redMul(o),d=s.redMul(c),f=i.redMul(c),l=o.redMul(s);return this.curve.point(u,d,l,f)},u.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),a=r.redSqr(),i=this.x.redMul(e.x),o=this.y.redMul(e.y),s=this.curve.d.redMul(i).redMul(o),c=a.redSub(s),u=a.redAdd(s),d=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(i).redISub(o),f=r.redMul(c).redMul(d);return this.curve.twisted?(t=r.redMul(u).redMul(o.redSub(this.curve._mulA(i))),n=c.redMul(u)):(t=r.redMul(u).redMul(o.redSub(i)),n=this.curve._mulC(c).redMul(u)),this.curve.point(f,t,n)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},u.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},56085:function(e,t,n){"use strict";var r=t;r.base=n(83401),r.short=n(9314),r.mont=n(76251),r.edwards=n(31410)},76251:function(e,t,n){"use strict";var r=n(57483),a=n(56249),i=n(83401),o=n(80172);function s(e){i.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,n){i.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}a(s,i),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},a(c,i.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),a=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,a)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),a=e.x.redAdd(e.z),i=e.x.redSub(e.z).redMul(n),o=a.redMul(r),s=t.z.redMul(i.redAdd(o).redSqr()),c=t.x.redMul(i.redISub(o).redSqr());return this.curve.point(s,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),a=[];0!==t.cmpn(0);t.iushrn(1))a.push(t.andln(1));for(var i=a.length-1;i>=0;i--)0===a[i]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},9314:function(e,t,n){"use strict";var r=n(80172),a=n(57483),i=n(56249),o=n(83401),s=r.assert;function c(e){o.call(this,"short",e),this.a=new a(e.a,16).toRed(this.red),this.b=new a(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(e,t,n,r){o.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new a(t,16),this.y=new a(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function d(e,t,n,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new a(0)):(this.x=new a(t,16),this.y=new a(n,16),this.z=new a(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}i(c,o),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new a(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new a(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?n=i[0]:(n=i[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new a(e.a,16),b:new a(e.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:a.mont(e),n=new a(2).toRed(t).redInvm(),r=n.redNeg(),i=new a(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,n,r,i,o,s,c,u,d,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,b=this.n.clone(),p=new a(1),h=new a(0),y=new a(0),m=new a(1),v=0;0!==l.cmpn(0);){var g=b.div(l);u=b.sub(g.mul(l)),d=y.sub(g.mul(p));var A=m.sub(g.mul(h));if(!r&&u.cmp(f)<0)t=c.neg(),n=p,r=u.neg(),i=d;else if(r&&2==++v)break;c=u,b=l,l=u,y=p,p=d,m=h,h=A}o=u.neg(),s=d;var w=r.sqr().add(i.sqr());return o.sqr().add(s.sqr()).cmp(w)>=0&&(o=t,s=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:i},{a:o,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],a=r.b.mul(e).divRound(this.n),i=n.b.neg().mul(e).divRound(this.n),o=a.mul(n.a),s=i.mul(r.a),c=a.mul(n.b),u=i.mul(r.b);return{k1:e.sub(o).sub(s),k2:c.add(u).neg()}},c.prototype.pointFromX=function(e,t){(e=new a(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),a=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(a).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,a=this._endoWnafT2,i=0;i":""},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),a=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),i=a.redSqr().redISub(this.x.redAdd(this.x)),o=a.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,o)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a):this.curve._wnafMulAdd(1,r,a,2)},u.prototype.jmulAdd=function(e,t,n){var r=[this,t],a=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,a,!0):this.curve._wnafMulAdd(1,r,a,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},i(d,o.BasePoint),c.prototype.jpoint=function(e,t,n){return new d(this,e,t,n)},d.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},d.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},d.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),a=e.x.redMul(n),i=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),s=r.redSub(a),c=i.redSub(o);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),d=u.redMul(s),f=r.redMul(u),l=c.redSqr().redIAdd(d).redISub(f).redISub(f),b=c.redMul(f.redISub(l)).redISub(i.redMul(d)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(l,b,p)},d.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),a=this.y,i=e.y.redMul(t).redMul(this.z),o=n.redSub(r),s=a.redSub(i);if(0===o.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),u=c.redMul(o),d=n.redMul(c),f=s.redSqr().redIAdd(u).redISub(d).redISub(d),l=s.redMul(d.redISub(f)).redISub(a.redMul(u)),b=this.z.redMul(o);return this.curve.jpoint(f,l,b)},d.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(a),0===this.x.cmp(n))return!0}},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},40276:function(e,t,n){"use strict";var r,a=t,i=n(33791),o=n(56085),s=n(80172).assert;function c(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(a,e,{configurable:!0,enumerable:!0,get:function(){var n=new c(t);return Object.defineProperty(a,e,{configurable:!0,enumerable:!0,value:n}),n}})}a.PresetCurve=c,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(28843)}catch(e){r=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},51198:function(e,t,n){"use strict";var r=n(57483),a=n(66741),i=n(80172),o=n(40276),s=n(33756),c=i.assert,u=n(36617),d=n(21092);function f(e){if(!(this instanceof f))return new f(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=f,f.prototype.keyPair=function(e){return new u(this,e)},f.prototype.keyFromPrivate=function(e,t){return u.fromPrivate(this,e,t)},f.prototype.keyFromPublic=function(e,t){return u.fromPublic(this,e,t)},f.prototype.genKeyPair=function(e){e||(e={});for(var t=new a({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||s(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new r(2));;){var o=new r(t.generate(n));if(!(o.cmp(i)>0))return o.iaddn(1),this.keyFromPrivate(o)}},f.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},f.prototype.sign=function(e,t,n,i){"object"==typeof n&&(i=n,n=null),i||(i={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var o=this.n.byteLength(),s=t.getPrivate().toArray("be",o),c=e.toArray("be",o),u=new a({hash:this.hash,entropy:s,nonce:c,pers:i.pers,persEnc:i.persEnc||"utf8"}),f=this.n.sub(new r(1)),l=0;;l++){var b=i.k?i.k(l):new r(u.generate(this.n.byteLength()));if(!((b=this._truncateToN(b,!0)).cmpn(1)<=0||b.cmp(f)>=0)){var p=this.g.mul(b);if(!p.isInfinity()){var h=p.getX(),y=h.umod(this.n);if(0!==y.cmpn(0)){var m=b.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==h.cmp(y)?2:0);return i.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),v^=1),new d({r:y,s:m,recoveryParam:v})}}}}}},f.prototype.verify=function(e,t,n,a){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,a);var i=(t=new d(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,c=o.invm(this.n),u=c.mul(e).umod(this.n),f=c.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,n.getPublic(),f)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(u,n.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},f.prototype.recoverPubKey=function(e,t,n,a){c((3&n)===n,"The recovery param is more than two bits"),t=new d(t,a);var i=this.n,o=new r(e),s=t.r,u=t.s,f=1&n,l=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var b=t.r.invm(i),p=i.sub(o).mul(b).umod(i),h=u.mul(b).umod(i);return this.g.mulAdd(p,s,h)},f.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new d(t,r)).recoveryParam)return t.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(e,t,a)}catch(e){continue}if(i.eq(n))return a}throw new Error("Unable to find valid recovery factor")}},36617:function(e,t,n){"use strict";var r=n(57483),a=n(80172).assert;function i(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=i,i.fromPublic=function(e,t,n){return t instanceof i?t:new i(e,{pub:t,pubEnc:n})},i.fromPrivate=function(e,t,n){return t instanceof i?t:new i(e,{priv:t,privEnc:n})},i.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},i.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},i.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},i.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},i.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?a(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||a(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},i.prototype.derive=function(e){return e.validate()||a(e.validate(),"public point not validated"),e.mul(this.priv).getX()},i.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},i.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},i.prototype.inspect=function(){return""}},21092:function(e,t,n){"use strict";var r=n(57483),a=n(80172),i=a.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(i(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var a=0,i=0,o=t.place;i>>=0;return!(a<=127)&&(t.place=o,a)}function u(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=o,o.prototype._importDER=function(e,t){e=a.toArray(e,t);var n=new s;if(48!==e[n.place++])return!1;var i=c(e,n);if(!1===i)return!1;if(i+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var o=c(e,n);if(!1===o)return!1;var u=e.slice(n.place,o+n.place);if(n.place+=o,2!==e[n.place++])return!1;var d=c(e,n);if(!1===d)return!1;if(e.length!==d+n.place)return!1;var f=e.slice(n.place,d+n.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new r(u),this.s=new r(f),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=u(t),n=u(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];d(r,t.length),(r=r.concat(t)).push(2),d(r,n.length);var i=r.concat(n),o=[48];return d(o,i.length),o=o.concat(i),a.encode(o,e)}},27102:function(e,t,n){"use strict";var r=n(33791),a=n(40276),i=n(80172),o=i.assert,s=i.parseBytes,c=n(55969),u=n(73736);function d(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof d))return new d(e);e=a[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=d,d.prototype.sign=function(e,t){e=s(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),a=this.g.mul(r),i=this.encodePoint(a),o=this.hashInt(i,n.pubBytes(),e).mul(n.priv()),c=r.add(o).umod(this.curve.n);return this.makeSignature({R:a,S:c,Rencoded:i})},d.prototype.verify=function(e,t,n){e=s(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),a=this.hashInt(t.Rencoded(),r.pubBytes(),e),i=this.g.mul(t.S());return t.R().add(r.pub().mul(a)).eq(i)},d.prototype.hashInt=function(){for(var e=this.hash(),t=0;t(a>>1)-1?(a>>1)-c:c,i.isubn(s)):s=0,r[o]=s,i.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,a=0,i=0;e.cmpn(-a)>0||t.cmpn(-i)>0;){var o,s,c=e.andln(3)+a&3,u=t.andln(3)+i&3;3===c&&(c=-1),3===u&&(u=-1),o=0==(1&c)?0:3!=(r=e.andln(7)+a&7)&&5!==r||2!==u?c:-c,n[0].push(o),s=0==(1&u)?0:3!=(r=t.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[1].push(s),2*a===o+1&&(a=1-a),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new a(e,"hex","le")}},57483:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(50303).Buffer}catch(e){}function s(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,d=n;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,f=67108863&c,l=Math.min(u,t.length-1),b=Math.max(0,u-e.length+1);b<=l;b++){var p=u-b|0;d+=(o=(a=0|e.words[p])*(i=0|t.words[b])+f)/67108864|0,f=67108863&o}n.words[u]=0|f,c=0|d}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?d[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],b=l[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var h=p.modn(b).toString(e);n=(p=p.idivn(b)).isZero()?h+n:d[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),d=this.clone();if(c){for(s=0;!d.isZero();s++)o=d.andln(255),d.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,b=0|o[1],p=8191&b,h=b>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,I=0|o[5],S=8191&I,E=I>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,N=0|o[8],R=8191&N,D=N>>>13,j=0|o[9],U=8191&j,L=j>>>13,F=0|s[0],Z=8191&F,H=F>>>13,z=0|s[1],Q=8191&z,q=z>>>13,V=0|s[2],J=8191&V,K=V>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,de=0|s[8],fe=8191&de,le=de>>>13,be=0|s[9],pe=8191&be,he=be>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(f,Z))|0)+((8191&(a=(a=Math.imul(f,H))+Math.imul(l,Z)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(p,Z),a=(a=Math.imul(p,H))+Math.imul(h,Z)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(f,Q)|0)|0)+((8191&(a=(a=a+Math.imul(f,q)|0)+Math.imul(l,Q)|0))<<13)|0;u=((i=i+Math.imul(l,q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,Z),a=(a=Math.imul(m,H))+Math.imul(v,Z)|0,i=Math.imul(v,H),r=r+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,q)|0)+Math.imul(h,Q)|0,i=i+Math.imul(h,q)|0;var ve=(u+(r=r+Math.imul(f,J)|0)|0)+((8191&(a=(a=a+Math.imul(f,K)|0)+Math.imul(l,J)|0))<<13)|0;u=((i=i+Math.imul(l,K)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,Z),a=(a=Math.imul(A,H))+Math.imul(w,Z)|0,i=Math.imul(w,H),r=r+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,q)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,a=(a=a+Math.imul(p,K)|0)+Math.imul(h,J)|0,i=i+Math.imul(h,K)|0;var ge=(u+(r=r+Math.imul(f,W)|0)|0)+((8191&(a=(a=a+Math.imul(f,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,Z),a=(a=Math.imul(_,H))+Math.imul(k,Z)|0,i=Math.imul(k,H),r=r+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,q)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,q)|0,r=r+Math.imul(m,J)|0,a=(a=a+Math.imul(m,K)|0)+Math.imul(v,J)|0,i=i+Math.imul(v,K)|0,r=r+Math.imul(p,W)|0,a=(a=a+Math.imul(p,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(f,$)|0)|0)+((8191&(a=(a=a+Math.imul(f,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(S,Z),a=(a=Math.imul(S,H))+Math.imul(E,Z)|0,i=Math.imul(E,H),r=r+Math.imul(_,Q)|0,a=(a=a+Math.imul(_,q)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,q)|0,r=r+Math.imul(A,J)|0,a=(a=a+Math.imul(A,K)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,K)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(p,$)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(a=(a=a+Math.imul(f,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,Z),a=(a=Math.imul(T,H))+Math.imul(O,Z)|0,i=Math.imul(O,H),r=r+Math.imul(S,Q)|0,a=(a=a+Math.imul(S,q)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,q)|0,r=r+Math.imul(_,J)|0,a=(a=a+Math.imul(_,K)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,K)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(p,ne)|0,a=(a=a+Math.imul(p,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(f,ie)|0)|0)+((8191&(a=(a=a+Math.imul(f,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,Z),a=(a=Math.imul(M,H))+Math.imul(B,Z)|0,i=Math.imul(B,H),r=r+Math.imul(T,Q)|0,a=(a=a+Math.imul(T,q)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,q)|0,r=r+Math.imul(S,J)|0,a=(a=a+Math.imul(S,K)|0)+Math.imul(E,J)|0,i=i+Math.imul(E,K)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(p,ie)|0,a=(a=a+Math.imul(p,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(a=(a=a+Math.imul(f,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,Z),a=(a=Math.imul(R,H))+Math.imul(D,Z)|0,i=Math.imul(D,H),r=r+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,q)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,q)|0,r=r+Math.imul(T,J)|0,a=(a=a+Math.imul(T,K)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,K)|0,r=r+Math.imul(S,W)|0,a=(a=a+Math.imul(S,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(p,ce)|0,a=(a=a+Math.imul(p,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(a=(a=a+Math.imul(f,le)|0)+Math.imul(l,fe)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,Z),a=(a=Math.imul(U,H))+Math.imul(L,Z)|0,i=Math.imul(L,H),r=r+Math.imul(R,Q)|0,a=(a=a+Math.imul(R,q)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,q)|0,r=r+Math.imul(M,J)|0,a=(a=a+Math.imul(M,K)|0)+Math.imul(B,J)|0,i=i+Math.imul(B,K)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(S,$)|0,a=(a=a+Math.imul(S,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(p,fe)|0,a=(a=a+Math.imul(p,le)|0)+Math.imul(h,fe)|0,i=i+Math.imul(h,le)|0;var Ie=(u+(r=r+Math.imul(f,pe)|0)|0)+((8191&(a=(a=a+Math.imul(f,he)|0)+Math.imul(l,pe)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,Q),a=(a=Math.imul(U,q))+Math.imul(L,Q)|0,i=Math.imul(L,q),r=r+Math.imul(R,J)|0,a=(a=a+Math.imul(R,K)|0)+Math.imul(D,J)|0,i=i+Math.imul(D,K)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(S,ne)|0,a=(a=a+Math.imul(S,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,fe)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,fe)|0,i=i+Math.imul(v,le)|0;var Se=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(a=(a=a+Math.imul(p,he)|0)+Math.imul(h,pe)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,J),a=(a=Math.imul(U,K))+Math.imul(L,J)|0,i=Math.imul(L,K),r=r+Math.imul(R,W)|0,a=(a=a+Math.imul(R,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(S,ie)|0,a=(a=a+Math.imul(S,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,pe)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,pe)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(R,$)|0,a=(a=a+Math.imul(R,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(S,ce)|0,a=(a=a+Math.imul(S,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,fe)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,pe)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,pe)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,a=(a=a+Math.imul(R,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(S,fe)|0,a=(a=a+Math.imul(S,le)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,pe)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,pe)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(R,ie)|0,a=(a=a+Math.imul(R,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,fe)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,fe)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(S,pe)|0)|0)+((8191&(a=(a=a+Math.imul(S,he)|0)+Math.imul(E,pe)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(R,ce)|0,a=(a=a+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,pe)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,pe)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(R,fe)|0,a=(a=a+Math.imul(R,le)|0)+Math.imul(D,fe)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,pe)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,pe)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,fe),a=(a=Math.imul(U,le))+Math.imul(L,fe)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(R,pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,he)|0)+Math.imul(D,pe)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Ne=(u+(r=Math.imul(U,pe))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,pe)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Ie,c[10]=Se,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Ne,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=b),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?p(this,e,t):r<63?b(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==d||u>=a);u--){var f=0|this.words[u];this.words[u]=d<<26-i|f>>>i,d=f&s}return c&&0!==d&&(c.words[c.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var l=67108864*(0|r.words[a.length+f])+(0|r.words[a.length+f-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var d=n.clone(),f=t.clone();!t.isZero();){for(var l=0,b=1;0==(t.words[0]&b)&&l<26;++l,b<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(d),o.isub(f)),a.iushrn(1),o.iushrn(1);for(var p=0,h=1;0==(n.words[0]&h)&&p<26;++p,h<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(d),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,d=1;0==(t.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var f=0,l=1;0==(n.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);0!==this.pow(d,u).cmp(c);)d.redIAdd(c);for(var f=this.pow(d,a),l=this.pow(e,a.addn(1).iushrn(1)),b=this.pow(e,a),p=o;0!==b.cmp(s);){for(var h=b,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],d=c-1;d>=0;d--){var f=u>>d&1;a!==n[0]&&(a=this.sqr(a)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===d)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},25246:function(e){"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r=55296&&a<=56319&&n>r+1){var i=e.charCodeAt(r+1);i>=56320&&i<=57343&&(a=1024*(a-55296)+i-56320+65536,r+=1)}a<128?t.push(a):a<2048?(t.push(a>>6|192),t.push(63&a|128)):a<55296||a>=57344&&a<65536?(t.push(a>>12|224),t.push(a>>6&63|128),t.push(63&a|128)):a>=65536&&a<=1114111?(t.push(a>>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(63&a|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},27330:function(e,t,n){e.exports=n(29655)},29655:function(e,t,n){n(59331);var r,a=n(20809);r=a("Error.captureStackTrace")?n(85207):a("Error.prototype.stack")?n(20754):n(98390),e.exports=r()},38710:function(e,t,n){var r=n(798).Class,a=n(798).abstractMethod,i=r(Object,{prototype:{init:r.prototype.merge,frameString:void 0,toString:function(){return this.frameString},functionValue:void 0,getThis:a,getTypeName:a,getFunction:function(){return this.functionValue},getFunctionName:a,getMethodName:a,getFileName:a,getLineNumber:a,getColumnNumber:a,getEvalOrigin:a,isTopLevel:a,isEval:a,isNative:a,isConstructor:a}});e.exports=i},35468:function(e,t,n){var r=n(798).Class,a=n(38710),i=n(73903).cache,o=r(Object,{prototype:{stackParser:null,frameParser:null,locationParsers:null,constructor:function(e){r.prototype.merge.call(this,e)},getFrames:function(e,t){for(var n=[],r=0,a=e.length;r=0)return null;var o=(n=n.toRed(a.red)).redSqr().redIMul(n).redIAdd(a.b).redSqrt();return 3===e!==o.isOdd()&&(o=o.redNeg()),r.keyPair({pub:{x:n,y:o}})}(t,e.subarray(1,33));case 4:case 6:case 7:return 65!==e.length?null:function(e,t,n){var o=new i(t),s=new i(n);if(o.cmp(a.p)>=0||s.cmp(a.p)>=0)return null;if(o=o.toRed(a.red),s=s.toRed(a.red),(6===e||7===e)&&s.isOdd()!==(7===e))return null;var c=o.redSqr().redIMul(o);return s.redSqr().redISub(c.redIAdd(a.b)).isZero()?r.keyPair({pub:{x:o,y:s}}):null}(t,e.subarray(1,33),e.subarray(33,65));default:return null}}function s(e,t){for(var n=t.encode(null,33===e.length),r=0;r=0)return 1;if(n.iadd(new i(e)),n.cmp(a.n)>=0&&n.isub(a.n),n.isZero())return 1;var r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},privateKeyTweakMul:function(e,t){var n=new i(t);if(n.cmp(a.n)>=0||n.isZero())return 1;n.imul(new i(e)),n.cmp(a.n)>=0&&(n=n.umod(a.n));var r=n.toArrayLike(Uint8Array,"be",32);return e.set(r),0},publicKeyVerify:function(e){return null===o(e)?1:0},publicKeyCreate:function(e,t){var n=new i(t);return n.cmp(a.n)>=0||n.isZero()?1:(s(e,r.keyFromPrivate(t).getPublic()),0)},publicKeyConvert:function(e,t){var n=o(t);return null===n?1:(s(e,n.getPublic()),0)},publicKeyNegate:function(e,t){var n=o(t);if(null===n)return 1;var r=n.getPublic();return r.y=r.y.redNeg(),s(e,r),0},publicKeyCombine:function(e,t){for(var n=new Array(t.length),r=0;r=0)return 2;var c=r.getPublic().add(a.g.mul(n));return c.isInfinity()?2:(s(e,c),0)},publicKeyTweakMul:function(e,t,n){var r=o(t);return null===r?1:(n=new i(n)).cmp(a.n)>=0||n.isZero()?2:(s(e,r.getPublic().mul(n)),0)},signatureNormalize:function(e){var t=new i(e.subarray(0,32)),n=new i(e.subarray(32,64));return t.cmp(a.n)>=0||n.cmp(a.n)>=0?1:(1===n.cmp(r.nh)&&e.set(a.n.sub(n).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport:function(e,t){var n=t.subarray(0,32),r=t.subarray(32,64);if(new i(n).cmp(a.n)>=0)return 1;if(new i(r).cmp(a.n)>=0)return 1;var o=e.output,s=o.subarray(4,37);s[0]=0,s.set(n,1);for(var c=33,u=0;c>1&&0===s[u]&&!(128&s[u+1]);--c,++u);if(128&(s=s.subarray(u))[0])return 1;if(c>1&&0===s[0]&&!(128&s[1]))return 1;var d=o.subarray(39,72);d[0]=0,d.set(r,1);for(var f=33,l=0;f>1&&0===d[l]&&!(128&d[l+1]);--f,++l);return 128&(d=d.subarray(l))[0]||f>1&&0===d[0]&&!(128&d[1])?1:(e.outputlen=6+c+f,o[0]=48,o[1]=e.outputlen-2,o[2]=2,o[3]=s.length,o.set(s,4),o[4+c]=2,o[5+c]=d.length,o.set(d,6+c),0)},signatureImport:function(e,t){if(t.length<8)return 1;if(t.length>72)return 1;if(48!==t[0])return 1;if(t[1]!==t.length-2)return 1;if(2!==t[2])return 1;var n=t[3];if(0===n)return 1;if(5+n>=t.length)return 1;if(2!==t[4+n])return 1;var r=t[5+n];if(0===r)return 1;if(6+n+r!==t.length)return 1;if(128&t[4])return 1;if(n>1&&0===t[4]&&!(128&t[5]))return 1;if(128&t[n+6])return 1;if(r>1&&0===t[n+6]&&!(128&t[n+7]))return 1;var o=t.subarray(4,4+n);if(33===o.length&&0===o[0]&&(o=o.subarray(1)),o.length>32)return 1;var s=t.subarray(6+n);if(33===s.length&&0===s[0]&&(s=s.slice(1)),s.length>32)throw new Error("S length is too long");var c=new i(o);c.cmp(a.n)>=0&&(c=new i(0));var u=new i(t.subarray(6+n));return u.cmp(a.n)>=0&&(u=new i(0)),e.set(c.toArrayLike(Uint8Array,"be",32),0),e.set(u.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign:function(e,t,n,o,s){if(s){var c=s;s=function(e){var r=c(t,n,null,o,e);if(!(r instanceof Uint8Array&&32===r.length))throw new Error("This is the way");return new i(r)}}var u,d=new i(n);if(d.cmp(a.n)>=0||d.isZero())return 1;try{u=r.sign(t,n,{canonical:!0,k:s,pers:o})}catch(e){return 1}return e.signature.set(u.r.toArrayLike(Uint8Array,"be",32),0),e.signature.set(u.s.toArrayLike(Uint8Array,"be",32),32),e.recid=u.recoveryParam,0},ecdsaVerify:function(e,t,n){var s={r:e.subarray(0,32),s:e.subarray(32,64)},c=new i(s.r),u=new i(s.s);if(c.cmp(a.n)>=0||u.cmp(a.n)>=0)return 1;if(1===u.cmp(r.nh)||c.isZero()||u.isZero())return 3;var d=o(n);if(null===d)return 2;var f=d.getPublic();return r.verify(t,s,f)?0:3},ecdsaRecover:function(e,t,n,o){var c,u={r:t.slice(0,32),s:t.slice(32,64)},d=new i(u.r),f=new i(u.s);if(d.cmp(a.n)>=0||f.cmp(a.n)>=0)return 1;if(d.isZero()||f.isZero())return 2;try{c=r.recoverPubKey(o,u,n)}catch(e){return 2}return s(e,c),0},ecdh:function(e,t,n,s,c,u,d){var f=o(t);if(null===f)return 1;var l=new i(n);if(l.cmp(a.n)>=0||l.isZero())return 2;var b=f.getPublic().mul(l);if(void 0===c)for(var p=b.encode(null,!0),h=r.hash().update(p).digest(),y=0;y<32;++y)e[y]=h[y];else{u||(u=new Uint8Array(32));for(var m=b.getX().toArray("be",32),v=0;v<32;++v)u[v]=m[v];d||(d=new Uint8Array(32));for(var g=b.getY().toArray("be",32),A=0;A<32;++A)d[A]=g[A];var w=c(u,d,s);if(!(w instanceof Uint8Array&&w.length===e.length))return 2;e.set(w)}return 0}}},79776:function(e,t,n){var r=n(33482).default,a="Impossible case. Please create issue.",i="The tweak was out of range or the resulted private key is invalid",o="The tweak was out of range or equal to zero",s="Public Key could not be parsed",c="Public Key serialization error",u="Signature could not be parsed";function d(e,t){if(!e)throw new Error(t)}function f(e,t,n){if(d(t instanceof Uint8Array,"Expected ".concat(e," to be an Uint8Array")),void 0!==n)if(Array.isArray(n)){var r=n.join(", "),a="Expected ".concat(e," to be an Uint8Array with length [").concat(r,"]");d(n.includes(t.length),a)}else{var i="Expected ".concat(e," to be an Uint8Array with length ").concat(n);d(t.length===n,i)}}function l(e){d("Boolean"===p(e),"Expected compressed to be a Boolean")}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return new Uint8Array(e)},t=arguments.length>1?arguments[1]:void 0;return"function"==typeof e&&(e=e(t)),f("output",e,t),e}function p(e){return Object.prototype.toString.call(e).slice(8,-1)}e.exports=function(e){return{contextRandomize:function(t){if(d(null===t||t instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),null!==t&&f("seed",t,32),1===e.contextRandomize(t))throw new Error("Unknow error on context randomization")},privateKeyVerify:function(t){return f("private key",t,32),0===e.privateKeyVerify(t)},privateKeyNegate:function(t){switch(f("private key",t,32),e.privateKeyNegate(t)){case 0:return t;case 1:throw new Error(a)}},privateKeyTweakAdd:function(t,n){switch(f("private key",t,32),f("tweak",n,32),e.privateKeyTweakAdd(t,n)){case 0:return t;case 1:throw new Error(i)}},privateKeyTweakMul:function(t,n){switch(f("private key",t,32),f("tweak",n,32),e.privateKeyTweakMul(t,n)){case 0:return t;case 1:throw new Error(o)}},publicKeyVerify:function(t){return f("public key",t,[33,65]),0===e.publicKeyVerify(t)},publicKeyCreate:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0;switch(f("private key",t,32),l(n),r=b(r,n?33:65),e.publicKeyCreate(r,t)){case 0:return r;case 1:throw new Error("Private Key is invalid");case 2:throw new Error(c)}},publicKeyConvert:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0;switch(f("public key",t,[33,65]),l(n),r=b(r,n?33:65),e.publicKeyConvert(r,t)){case 0:return r;case 1:throw new Error(s);case 2:throw new Error(c)}},publicKeyNegate:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0;switch(f("public key",t,[33,65]),l(n),r=b(r,n?33:65),e.publicKeyNegate(r,t)){case 0:return r;case 1:throw new Error(s);case 2:throw new Error(a);case 3:throw new Error(c)}},publicKeyCombine:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2?arguments[2]:void 0;d(Array.isArray(t),"Expected public keys to be an Array"),d(t.length>0,"Expected public keys array will have more than zero items");var i,o=r(t);try{for(o.s();!(i=o.n()).done;)f("public key",i.value,[33,65])}catch(e){o.e(e)}finally{o.f()}switch(l(n),a=b(a,n?33:65),e.publicKeyCombine(a,t)){case 0:return a;case 1:throw new Error(s);case 2:throw new Error("The sum of the public keys is not valid");case 3:throw new Error(c)}},publicKeyTweakAdd:function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0;switch(f("public key",t,[33,65]),f("tweak",n,32),l(r),a=b(a,r?33:65),e.publicKeyTweakAdd(a,t,n)){case 0:return a;case 1:throw new Error(s);case 2:throw new Error(i)}},publicKeyTweakMul:function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3?arguments[3]:void 0;switch(f("public key",t,[33,65]),f("tweak",n,32),l(r),a=b(a,r?33:65),e.publicKeyTweakMul(a,t,n)){case 0:return a;case 1:throw new Error(s);case 2:throw new Error(o)}},signatureNormalize:function(t){switch(f("signature",t,64),e.signatureNormalize(t)){case 0:return t;case 1:throw new Error(u)}},signatureExport:function(t,n){f("signature",t,64);var r={output:n=b(n,72),outputlen:72};switch(e.signatureExport(r,t)){case 0:return n.slice(0,r.outputlen);case 1:throw new Error(u);case 2:throw new Error(a)}},signatureImport:function(t,n){switch(f("signature",t),n=b(n,64),e.signatureImport(n,t)){case 0:return n;case 1:throw new Error(u);case 2:throw new Error(a)}},ecdsaSign:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;f("message",t,32),f("private key",n,32),d("Object"===p(r),"Expected options to be an Object"),void 0!==r.data&&f("options.data",r.data),void 0!==r.noncefn&&d("Function"===p(r.noncefn),"Expected options.noncefn to be a Function");var o={signature:i=b(i,64),recid:null};switch(e.ecdsaSign(o,t,n,r.data,r.noncefn)){case 0:return o;case 1:throw new Error("The nonce generation function failed, or the private key was invalid");case 2:throw new Error(a)}},ecdsaVerify:function(t,n,r){switch(f("signature",t,64),f("message",n,32),f("public key",r,[33,65]),e.ecdsaVerify(t,n,r)){case 0:return!0;case 3:return!1;case 1:throw new Error(u);case 2:throw new Error(s)}},ecdsaRecover:function(t,n,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4?arguments[4]:void 0;switch(f("signature",t,64),d("Number"===p(n)&&n>=0&&n<=3,"Expected recovery id to be a Number within interval [0, 3]"),f("message",r,32),l(i),o=b(o,i?33:65),e.ecdsaRecover(o,t,n,r)){case 0:return o;case 1:throw new Error(u);case 2:throw new Error("Public key could not be recover");case 3:throw new Error(a)}},ecdh:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;switch(f("public key",t,[33,65]),f("private key",n,32),d("Object"===p(r),"Expected options to be an Object"),void 0!==r.data&&f("options.data",r.data),void 0!==r.hashfn?(d("Function"===p(r.hashfn),"Expected options.hashfn to be a Function"),void 0!==r.xbuf&&f("options.xbuf",r.xbuf,32),void 0!==r.ybuf&&f("options.ybuf",r.ybuf,32),f("output",a)):a=b(a,32),e.ecdh(a,t,n,r.data,r.hashfn,r.xbuf,r.ybuf)){case 0:return a;case 1:throw new Error(s);case 2:throw new Error("Scalar was invalid (zero or overflow)")}}}}},27287:function(e,t,n){e.exports=n(61014)},61014:function(e,t,n){var r=n(5886).Buffer,a=n(15656),i=n(28102),o=function(){};function s(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function c(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function u(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function d(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function f(e){var t=typeof e;if("string"===t)return a.isHexPrefixed(e)?new i(a.stripHexPrefix(e),16):new i(e,10);if("number"===t)return new i(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function l(e){var t=/^(\w+)\((.*)\)$/.exec(e);if(3!==t.length)throw new Error("Invalid method signature");var n=/^(.+)\):\((.+)$/.exec(t[2]);if(null!==n&&3===n.length)return{method:t[1],args:n[1].split(","),retargs:n[2].split(",")};var r=t[2].split(",");return 1===r.length&&""===r[0]&&(r=[]),{method:t[1],args:r}}function b(e,t){var n,o,s,l;if("address"===e)return b("uint160",f(t));if("bool"===e)return b("uint8",t?1:0);if("string"===e)return b("bytes",r.from(t,"utf8"));if(m(e)){if(void 0===t.length)throw new Error("Not an array?");if("dynamic"!==(n=d(e))&&0!==n&&t.length>n)throw new Error("Elements exceed array size: "+n);for(l in s=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)s.push(b(e,t[l]));if("dynamic"===n){var p=b("uint256",t.length);s.unshift(p)}return r.concat(s)}if("bytes"===e)return t=r.from(t),s=r.concat([b("uint256",t.length),t]),t.length%32!=0&&(s=r.concat([s,a.zeros(32-t.length%32)])),s;if(e.startsWith("bytes")){if((n=c(e))<1||n>32)throw new Error("Invalid bytes width: "+n);return a.setLengthRight(t,32)}if(e.startsWith("uint")){if((n=c(e))%8||n<8||n>256)throw new Error("Invalid uint width: "+n);if((o=f(t)).bitLength()>n)throw new Error("Supplied uint exceeds width: "+n+" vs "+o.bitLength());if(o<0)throw new Error("Supplied uint is negative");return o.toArrayLike(r,"be",32)}if(e.startsWith("int")){if((n=c(e))%8||n<8||n>256)throw new Error("Invalid int width: "+n);if((o=f(t)).bitLength()>n)throw new Error("Supplied int exceeds width: "+n+" vs "+o.bitLength());return o.toTwos(256).toArrayLike(r,"be",32)}if(e.startsWith("ufixed")){if(n=u(e),(o=f(t))<0)throw new Error("Supplied ufixed is negative");return b("uint256",o.mul(new i(2).pow(new i(n[1]))))}if(e.startsWith("fixed"))return n=u(e),b("int256",f(t).mul(new i(2).pow(new i(n[1]))));throw new Error("Unsupported or invalid type: "+e)}function p(e,t,n){var a,o,s,c;if("string"==typeof e&&(e=h(e)),"address"===e.name)return p(e.rawType,t,n).toArrayLike(r,"be",20).toString("hex");if("bool"===e.name)return p(e.rawType,t,n).toString()===new i(1).toString();if("string"===e.name){var u=p(e.rawType,t,n);return r.from(u,"utf8").toString()}if(e.isArray){for(s=[],a=e.size,"dynamic"===e.size&&(n=p("uint256",t,n).toNumber(),a=p("uint256",t,n).toNumber(),n+=32),c=0;ce.size)throw new Error("Decoded int exceeds width: "+e.size+" vs "+o.bitLength());return o}if(e.name.startsWith("int")){if((o=new i(t.slice(n,n+32),16,"be").fromTwos(256)).bitLength()>e.size)throw new Error("Decoded uint exceeds width: "+e.size+" vs "+o.bitLength());return o}if(e.name.startsWith("ufixed")){if(a=new i(2).pow(new i(e.size[1])),!(o=p("uint256",t,n)).mod(a).isZero())throw new Error("Decimals not supported yet");return o.div(a)}if(e.name.startsWith("fixed")){if(a=new i(2).pow(new i(e.size[1])),!(o=p("int256",t,n)).mod(a).isZero())throw new Error("Decimals not supported yet");return o.div(a)}throw new Error("Unsupported or invalid type: "+e.name)}function h(e){var t,n,r;if(m(e)){t=d(e);var a=e.slice(0,e.lastIndexOf("["));return a=h(a),{isArray:!0,name:e,size:t,memoryUsage:"dynamic"===t?32:a.memoryUsage*t,subArray:a}}switch(e){case"address":r="uint160";break;case"bool":r="uint8";break;case"string":r="bytes"}if(n={rawType:r,name:e,memoryUsage:32},e.startsWith("bytes")&&"bytes"!==e||e.startsWith("uint")||e.startsWith("int")?n.size=c(e):(e.startsWith("ufixed")||e.startsWith("fixed"))&&(n.size=u(e)),e.startsWith("bytes")&&"bytes"!==e&&(n.size<1||n.size>32))throw new Error("Invalid bytes width: "+n.size);if((e.startsWith("uint")||e.startsWith("int"))&&(n.size%8||n.size<8||n.size>256))throw new Error("Invalid int/uint width: "+n.size);return n}function y(e){return"string"===e||"bytes"===e||"dynamic"===d(e)}function m(e){return e.lastIndexOf("]")===e.length-1}function v(e,t){return e.startsWith("address")||e.startsWith("bytes")?"0x"+t.toString("hex"):t.toString()}o.eventID=function(e,t){var n=e+"("+t.map(s).join(",")+")";return a.keccak256(r.from(n))},o.methodID=function(e,t){return o.eventID(e,t).slice(0,4)},o.rawEncode=function(e,t){var n=[],a=[],i=0;e.forEach((function(e){if(m(e)){var t=d(e);i+="dynamic"!==t?32*t:32}else i+=32}));for(var o=0;ol)throw new Error("Elements exceed array size: "+l)}var b=t.map((function(e){return o.solidityHexValue(u,e,256)}));return r.concat(b)}if("bytes"===e)return t;if("string"===e)return r.from(t,"utf8");if("bool"===e){n=n||8;var p=Array(n/4).join("0");return r.from(t?p+"1":p+"0","hex")}if("address"===e){var h=20;return n&&(h=n/8),a.setLengthLeft(t,h)}if(e.startsWith("bytes")){if((i=c(e))<1||i>32)throw new Error("Invalid bytes width: "+i);return a.setLengthRight(t,i)}if(e.startsWith("uint")){if((i=c(e))%8||i<8||i>256)throw new Error("Invalid uint width: "+i);if((s=f(t)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+s.bitLength());return n=n||i,s.toArrayLike(r,"be",n/8)}if(e.startsWith("int")){if((i=c(e))%8||i<8||i>256)throw new Error("Invalid int width: "+i);if((s=f(t)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+s.bitLength());return n=n||i,s.toTwos(i).toArrayLike(r,"be",n/8)}throw new Error("Unsupported or invalid type: "+e)},o.solidityPack=function(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var n=[],a=0;a="0"&&t<="9";)i+=e[o]-"0",o++;r=o-1,n.push(i)}else if("i"===a)n.push("int256");else{if("a"!==a)throw new Error("Unsupported or invalid type: "+a);n.push("int256[]")}}return n},o.toSerpent=function(e){for(var t=[],n=0;n=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,d=n;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,f=67108863&c,l=Math.min(u,t.length-1),b=Math.max(0,u-e.length+1);b<=l;b++){var p=u-b|0;d+=(o=(a=0|e.words[p])*(i=0|t.words[b])+f)/67108864|0,f=67108863&o}n.words[u]=0|f,c=0|d}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?d[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],b=l[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var h=p.modn(b).toString(e);n=(p=p.idivn(b)).isZero()?h+n:d[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),d=this.clone();if(c){for(s=0;!d.isZero();s++)o=d.andln(255),d.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,b=0|o[1],p=8191&b,h=b>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,I=0|o[5],S=8191&I,E=I>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,N=0|o[8],R=8191&N,D=N>>>13,j=0|o[9],U=8191&j,L=j>>>13,F=0|s[0],Z=8191&F,H=F>>>13,z=0|s[1],Q=8191&z,q=z>>>13,V=0|s[2],J=8191&V,K=V>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,de=0|s[8],fe=8191&de,le=de>>>13,be=0|s[9],pe=8191&be,he=be>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(f,Z))|0)+((8191&(a=(a=Math.imul(f,H))+Math.imul(l,Z)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(p,Z),a=(a=Math.imul(p,H))+Math.imul(h,Z)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(f,Q)|0)|0)+((8191&(a=(a=a+Math.imul(f,q)|0)+Math.imul(l,Q)|0))<<13)|0;u=((i=i+Math.imul(l,q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,Z),a=(a=Math.imul(m,H))+Math.imul(v,Z)|0,i=Math.imul(v,H),r=r+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,q)|0)+Math.imul(h,Q)|0,i=i+Math.imul(h,q)|0;var ve=(u+(r=r+Math.imul(f,J)|0)|0)+((8191&(a=(a=a+Math.imul(f,K)|0)+Math.imul(l,J)|0))<<13)|0;u=((i=i+Math.imul(l,K)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,Z),a=(a=Math.imul(A,H))+Math.imul(w,Z)|0,i=Math.imul(w,H),r=r+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,q)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,a=(a=a+Math.imul(p,K)|0)+Math.imul(h,J)|0,i=i+Math.imul(h,K)|0;var ge=(u+(r=r+Math.imul(f,W)|0)|0)+((8191&(a=(a=a+Math.imul(f,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,Z),a=(a=Math.imul(_,H))+Math.imul(k,Z)|0,i=Math.imul(k,H),r=r+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,q)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,q)|0,r=r+Math.imul(m,J)|0,a=(a=a+Math.imul(m,K)|0)+Math.imul(v,J)|0,i=i+Math.imul(v,K)|0,r=r+Math.imul(p,W)|0,a=(a=a+Math.imul(p,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(f,$)|0)|0)+((8191&(a=(a=a+Math.imul(f,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(S,Z),a=(a=Math.imul(S,H))+Math.imul(E,Z)|0,i=Math.imul(E,H),r=r+Math.imul(_,Q)|0,a=(a=a+Math.imul(_,q)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,q)|0,r=r+Math.imul(A,J)|0,a=(a=a+Math.imul(A,K)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,K)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(p,$)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(a=(a=a+Math.imul(f,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,Z),a=(a=Math.imul(T,H))+Math.imul(O,Z)|0,i=Math.imul(O,H),r=r+Math.imul(S,Q)|0,a=(a=a+Math.imul(S,q)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,q)|0,r=r+Math.imul(_,J)|0,a=(a=a+Math.imul(_,K)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,K)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(p,ne)|0,a=(a=a+Math.imul(p,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(f,ie)|0)|0)+((8191&(a=(a=a+Math.imul(f,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,Z),a=(a=Math.imul(M,H))+Math.imul(B,Z)|0,i=Math.imul(B,H),r=r+Math.imul(T,Q)|0,a=(a=a+Math.imul(T,q)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,q)|0,r=r+Math.imul(S,J)|0,a=(a=a+Math.imul(S,K)|0)+Math.imul(E,J)|0,i=i+Math.imul(E,K)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(p,ie)|0,a=(a=a+Math.imul(p,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(a=(a=a+Math.imul(f,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,Z),a=(a=Math.imul(R,H))+Math.imul(D,Z)|0,i=Math.imul(D,H),r=r+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,q)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,q)|0,r=r+Math.imul(T,J)|0,a=(a=a+Math.imul(T,K)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,K)|0,r=r+Math.imul(S,W)|0,a=(a=a+Math.imul(S,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(p,ce)|0,a=(a=a+Math.imul(p,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(a=(a=a+Math.imul(f,le)|0)+Math.imul(l,fe)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,Z),a=(a=Math.imul(U,H))+Math.imul(L,Z)|0,i=Math.imul(L,H),r=r+Math.imul(R,Q)|0,a=(a=a+Math.imul(R,q)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,q)|0,r=r+Math.imul(M,J)|0,a=(a=a+Math.imul(M,K)|0)+Math.imul(B,J)|0,i=i+Math.imul(B,K)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(S,$)|0,a=(a=a+Math.imul(S,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(p,fe)|0,a=(a=a+Math.imul(p,le)|0)+Math.imul(h,fe)|0,i=i+Math.imul(h,le)|0;var Ie=(u+(r=r+Math.imul(f,pe)|0)|0)+((8191&(a=(a=a+Math.imul(f,he)|0)+Math.imul(l,pe)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,Q),a=(a=Math.imul(U,q))+Math.imul(L,Q)|0,i=Math.imul(L,q),r=r+Math.imul(R,J)|0,a=(a=a+Math.imul(R,K)|0)+Math.imul(D,J)|0,i=i+Math.imul(D,K)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(S,ne)|0,a=(a=a+Math.imul(S,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,fe)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,fe)|0,i=i+Math.imul(v,le)|0;var Se=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(a=(a=a+Math.imul(p,he)|0)+Math.imul(h,pe)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,J),a=(a=Math.imul(U,K))+Math.imul(L,J)|0,i=Math.imul(L,K),r=r+Math.imul(R,W)|0,a=(a=a+Math.imul(R,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(S,ie)|0,a=(a=a+Math.imul(S,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,pe)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,pe)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(R,$)|0,a=(a=a+Math.imul(R,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(S,ce)|0,a=(a=a+Math.imul(S,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,fe)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,pe)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,pe)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,a=(a=a+Math.imul(R,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(S,fe)|0,a=(a=a+Math.imul(S,le)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,pe)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,pe)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(R,ie)|0,a=(a=a+Math.imul(R,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,fe)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,fe)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(S,pe)|0)|0)+((8191&(a=(a=a+Math.imul(S,he)|0)+Math.imul(E,pe)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(R,ce)|0,a=(a=a+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,pe)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,pe)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(R,fe)|0,a=(a=a+Math.imul(R,le)|0)+Math.imul(D,fe)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,pe)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,pe)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,fe),a=(a=Math.imul(U,le))+Math.imul(L,fe)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(R,pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,he)|0)+Math.imul(D,pe)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Ne=(u+(r=Math.imul(U,pe))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,pe)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Ie,c[10]=Se,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Ne,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=b),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?p(this,e,t):r<63?b(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==d||u>=a);u--){var f=0|this.words[u];this.words[u]=d<<26-i|f>>>i,d=f&s}return c&&0!==d&&(c.words[c.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var l=67108864*(0|r.words[a.length+f])+(0|r.words[a.length+f-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var d=n.clone(),f=t.clone();!t.isZero();){for(var l=0,b=1;0==(t.words[0]&b)&&l<26;++l,b<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(d),o.isub(f)),a.iushrn(1),o.iushrn(1);for(var p=0,h=1;0==(n.words[0]&h)&&p<26;++p,h<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(d),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,d=1;0==(t.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var f=0,l=1;0==(n.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);0!==this.pow(d,u).cmp(c);)d.redIAdd(c);for(var f=this.pow(d,a),l=this.pow(e,a.addn(1).iushrn(1)),b=this.pow(e,a),p=o;0!==b.cmp(s);){for(var h=b,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],d=c-1;d>=0;d--){var f=u>>d&1;a!==n[0]&&(a=this.sqr(a)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===d)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},64449:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.createHashFunction=function(e){return function(t){var n=e();return n.update(t),r.from(n.digest())}}},89014:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(64449),a=n(51605);t.keccak224=r.createHashFunction((function(){return a("keccak224")})),t.keccak256=r.createHashFunction((function(){return a("keccak256")})),t.keccak384=r.createHashFunction((function(){return a("keccak384")})),t.keccak512=r.createHashFunction((function(){return a("keccak512")}))},26170:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41753);t.getRandomBytes=function(e){return new Promise((function(t,n){r(e,(function(e,r){e?n(e):t(r)}))}))},t.getRandomBytesSync=function(e){return r(e)}},41641:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=8?a+=e[o].toUpperCase():a+=e[o];return a},t.isValidChecksumAddress=function(e,n){return t.isValidAddress(e)&&t.toChecksumAddress(e,n)===e},t.generateAddress=function(e,t){e=c.toBuffer(e);var n=new s(t);return n.isZero()?u.rlphash([e,null]).slice(-20):u.rlphash([e,r.from(n.toArray())]).slice(-20)},t.generateAddress2=function(e,t,n){var i=c.toBuffer(e),o=c.toBuffer(t),s=c.toBuffer(n);return a(20===i.length),a(32===o.length),u.keccak256(r.concat([r.from("ff","hex"),i,o,u.keccak256(s)])).slice(-20)},t.isPrecompiled=function(e){var t=c.unpad(e);return 1===t.length&&t[0]>=1&&t[0]<=8},t.isValidPrivate=function(e){return o.privateKeyVerify(e)},t.isValidPublic=function(e,t){return void 0===t&&(t=!1),64===e.length?o.publicKeyVerify(r.concat([r.from([4]),e])):!!t&&o.publicKeyVerify(e)},t.pubToAddress=function(e,t){return void 0===t&&(t=!1),e=c.toBuffer(e),t&&64!==e.length&&(e=o.publicKeyConvert(e,!1).slice(1)),a(64===e.length),u.keccak(e).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToAddress=function(e){return t.publicToAddress(t.privateToPublic(e))},t.privateToPublic=function(e){return e=c.toBuffer(e),o.publicKeyCreate(e,!1).slice(1)},t.importPublic=function(e){return 64!==(e=c.toBuffer(e)).length&&(e=o.publicKeyConvert(e,!1).slice(1)),e}},32740:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.baToJSON=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.stripZeros=t.unpad=t.setLengthRight=t.setLength=t.setLengthLeft=t.zeros=void 0;var a=n(537),i=n(28102);t.zeros=function(e){return r.allocUnsafe(e).fill(0)},t.setLengthLeft=function(e,n,r){void 0===r&&(r=!1);var a=t.zeros(n);return e=t.toBuffer(e),r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e},t.stripZeros=t.unpad,t.toBuffer=function(e){if(!r.isBuffer(e))if(Array.isArray(e))e=r.from(e);else if("string"==typeof e){if(!a.isHexString(e))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: "+e);e=r.from(a.padToEven(a.stripHexPrefix(e)),"hex")}else if("number"==typeof e)e=a.intToBuffer(e);else if(null==e)e=r.allocUnsafe(0);else if(i.isBN(e))e=e.toArrayLike(r);else{if(!e.toArray)throw new Error("invalid type");e=r.from(e.toArray())}return e},t.bufferToInt=function(e){return new i(t.toBuffer(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=t.toBuffer(e)).toString("hex")},t.fromSigned=function(e){return new i(e).fromTwos(256)},t.toUnsigned=function(e){return r.from(e.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||a.isHexPrefixed(e)?e:"0x"+e},t.baToJSON=function(e){if(r.isBuffer(e))return"0x"+e.toString("hex");if(e instanceof Array){for(var n=[],a=0;a=i.length,"The field "+t.name+" must not have more "+t.length+" bytes")):t.allowZero&&0===i.length||!t.length||a(t.length===i.length,"The field "+t.name+" must have byte length of "+t.length),e.raw[n]=i}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:i,set:o}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:o,get:i})})),n)if("string"==typeof n&&(n=r.from(i.stripHexPrefix(n),"hex")),r.isBuffer(n)&&(n=o.decode(n)),Array.isArray(n)){if(n.length>e._fields.length)throw new Error("wrong number of fields in data");n.forEach((function(t,n){e[e._fields[n]]=s.toBuffer(t)}))}else{if("object"!=typeof n)throw new Error("invalid data");var c=Object.keys(n);t.forEach((function(t){-1!==c.indexOf(t.name)&&(e[t.name]=n[t.name]),-1!==c.indexOf(t.alias)&&(e[t.alias]=n[t.alias])}))}}},22810:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.ecdhUnsafe=t.ecdh=t.recover=t.verify=t.sign=t.signatureImportLax=t.signatureImport=t.signatureExport=t.signatureNormalize=t.publicKeyCombine=t.publicKeyTweakMul=t.publicKeyTweakAdd=t.publicKeyVerify=t.publicKeyConvert=t.publicKeyCreate=t.privateKeyTweakMul=t.privateKeyTweakAdd=t.privateKeyModInverse=t.privateKeyNegate=t.privateKeyImport=t.privateKeyExport=t.privateKeyVerify=void 0;var a=n(41641),i=n(41287),o=n(97646);t.privateKeyVerify=function(e){return 32===e.length&&a.privateKeyVerify(Uint8Array.from(e))},t.privateKeyExport=function(e,t){if(32!==e.length)throw new RangeError("private key length is invalid");var n=i.privateKeyExport(e,t);return o.privateKeyExport(e,n,t)},t.privateKeyImport=function(e){if(null!==(e=o.privateKeyImport(e))&&32===e.length&&t.privateKeyVerify(e))return e;throw new Error("couldn't import from DER format")},t.privateKeyNegate=function(e){return r.from(a.privateKeyNegate(Uint8Array.from(e)))},t.privateKeyModInverse=function(e){if(32!==e.length)throw new Error("private key length is invalid");return r.from(i.privateKeyModInverse(Uint8Array.from(e)))},t.privateKeyTweakAdd=function(e,t){return r.from(a.privateKeyTweakAdd(Uint8Array.from(e),t))},t.privateKeyTweakMul=function(e,t){return r.from(a.privateKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t)))},t.publicKeyCreate=function(e,t){return r.from(a.publicKeyCreate(Uint8Array.from(e),t))},t.publicKeyConvert=function(e,t){return r.from(a.publicKeyConvert(Uint8Array.from(e),t))},t.publicKeyVerify=function(e){return(33===e.length||65===e.length)&&a.publicKeyVerify(Uint8Array.from(e))},t.publicKeyTweakAdd=function(e,t,n){return r.from(a.publicKeyTweakAdd(Uint8Array.from(e),Uint8Array.from(t),n))},t.publicKeyTweakMul=function(e,t,n){return r.from(a.publicKeyTweakMul(Uint8Array.from(e),Uint8Array.from(t),n))},t.publicKeyCombine=function(e,t){var n=[];return e.forEach((function(e){n.push(Uint8Array.from(e))})),r.from(a.publicKeyCombine(n,t))},t.signatureNormalize=function(e){return r.from(a.signatureNormalize(Uint8Array.from(e)))},t.signatureExport=function(e){return r.from(a.signatureExport(Uint8Array.from(e)))},t.signatureImport=function(e){return r.from(a.signatureImport(Uint8Array.from(e)))},t.signatureImportLax=function(e){if(0===e.length)throw new RangeError("signature length is invalid");var t=o.signatureImportLax(e);if(null===t)throw new Error("couldn't parse DER signature");return i.signatureImport(t)},t.sign=function(e,t,n){if(null===n)throw new TypeError("options should be an Object");var i=void 0;if(n){if(i={},null===n.data)throw new TypeError("options.data should be a Buffer");if(n.data){if(32!=n.data.length)throw new RangeError("options.data length is invalid");i.data=new Uint8Array(n.data)}if(null===n.noncefn)throw new TypeError("options.noncefn should be a Function");n.noncefn&&(i.noncefn=function(e,t,a,i,o){var s=null!=a?r.from(a):null,c=null!=i?r.from(i):null,u=r.from("");return n.noncefn&&(u=n.noncefn(r.from(e),r.from(t),s,c,o)),new Uint8Array(u)})}var o=a.ecdsaSign(Uint8Array.from(e),Uint8Array.from(t),i);return{signature:r.from(o.signature),recovery:o.recid}},t.verify=function(e,t,n){return a.ecdsaVerify(Uint8Array.from(t),Uint8Array.from(e),n)},t.recover=function(e,t,n,i){return r.from(a.ecdsaRecover(Uint8Array.from(t),n,Uint8Array.from(e),i))},t.ecdh=function(e,t){return r.from(a.ecdh(Uint8Array.from(e),Uint8Array.from(t),{}))},t.ecdhUnsafe=function(e,t,n){if(33!==e.length&&65!==e.length)throw new RangeError("public key length is invalid");if(32!==t.length)throw new RangeError("private key length is invalid");return r.from(i.ecdhUnsafe(Uint8Array.from(e),Uint8Array.from(t),n))}},97646:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var a=r.from([48,129,211,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,133,48,129,130,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,33,2,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,36,3,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),i=r.from([48,130,1,19,2,1,1,4,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,160,129,165,48,129,162,2,1,1,48,44,6,7,42,134,72,206,61,1,1,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,252,47,48,6,4,1,0,4,1,7,4,65,4,121,190,102,126,249,220,187,172,85,160,98,149,206,135,11,7,2,155,252,219,45,206,40,217,89,242,129,91,22,248,23,152,72,58,218,119,38,163,196,101,93,164,251,252,14,17,8,168,253,23,180,72,166,133,84,25,156,71,208,143,251,16,212,184,2,33,0,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,186,174,220,230,175,72,160,59,191,210,94,140,208,54,65,65,2,1,1,161,68,3,66,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t.privateKeyExport=function(e,t,n){void 0===n&&(n=!0);var o=r.from(n?a:i);return e.copy(o,n?8:9),t.copy(o,n?181:214),o},t.privateKeyImport=function(e){var t=e.length,n=0;if(t2)return null;if(t<(n+=1)+r)return null;var a=e[n+r-1]|(r>1?e[n+r-2]<<8:0);return t<(n+=r)+a||t32||ta)return null;if(2!==e[i++])return null;var s=e[i++];if(128&s){if(i+(o=s-128)>a)return null;for(;o>0&&0===e[i];i+=1,o-=1);for(s=0;o>0;i+=1,o-=1)s=(s<<8)+e[i]}if(s>a-i)return null;var c=i;if(i+=s,2!==e[i++])return null;var u=e[i++];if(128&u){if(i+(o=u-128)>a)return null;for(;o>0&&0===e[i];i+=1,o-=1);for(u=0;o>0;i+=1,o-=1)u=(u<<8)+e[i]}if(u>a-i)return null;var d=i;for(i+=u;s>0&&0===e[c];s-=1,c+=1);if(s>32)return null;var f=e.slice(c,c+s);for(f.copy(t,32-f.length);u>0&&0===e[d];u-=1,d+=1);if(u>32)return null;var l=e.slice(d,d+u);return l.copy(n,32-l.length),{r:t,s:n}}},41287:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0});var a=n(28102),i=new(0,n(98722).ec)("secp256k1"),o=i.curve;t.privateKeyExport=function(e,t){void 0===t&&(t=!0);var n=new a(e);if(n.ucmp(o.n)>=0)throw new Error("couldn't export to DER format");var r=i.g.mul(n);return s(r.getX(),r.getY(),t)},t.privateKeyModInverse=function(e){var t=new a(e);if(t.ucmp(o.n)>=0||t.isZero())throw new Error("private key range is invalid");return t.invm(o.n).toArrayLike(r,"be",32)},t.signatureImport=function(e){var t=new a(e.r);t.ucmp(o.n)>=0&&(t=new a(0));var n=new a(e.s);return n.ucmp(o.n)>=0&&(n=new a(0)),r.concat([t.toArrayLike(r,"be",32),n.toArrayLike(r,"be",32)])},t.ecdhUnsafe=function(e,t,n){void 0===n&&(n=!0);var r=i.keyFromPublic(e),c=new a(t);if(c.ucmp(o.n)>=0||c.isZero())throw new Error("scalar was invalid (zero or overflow)");var u=r.pub.mul(c);return s(u.getX(),u.getY(),n)};var s=function(e,t,n){var a;return n?((a=r.alloc(33))[0]=t.isOdd()?3:2,e.toArrayLike(r,"be",32).copy(a,1)):((a=r.alloc(65))[0]=4,e.toArrayLike(r,"be",32).copy(a,1),t.toArrayLike(r,"be",32).copy(a,33)),a}},52983:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var a=n(22810),i=n(28102),o=n(32740),s=n(33035);function c(e,t){return t?e-(2*t+35):e-27}function u(e){return 0===e||1===e}t.ecsign=function(e,t,n){var r=a.sign(e,t),i=r.recovery;return{r:r.signature.slice(0,32),s:r.signature.slice(32,64),v:n?i+(2*n+35):i+27}},t.ecrecover=function(e,t,n,i,s){var d=r.concat([o.setLength(n,32),o.setLength(i,32)],64),f=c(t,s);if(!u(f))throw new Error("Invalid signature v value");var l=a.recover(e,d,f);return a.publicKeyConvert(l,!1).slice(1)},t.toRpcSig=function(e,t,n,a){if(!u(c(e,a)))throw new Error("Invalid signature v value");return o.bufferToHex(r.concat([o.setLengthLeft(t,32),o.setLengthLeft(n,32),o.toBuffer(e)]))},t.fromRpcSig=function(e){var t=o.toBuffer(e);if(65!==t.length)throw new Error("Invalid signature length");var n=t[64];return n<27&&(n+=27),{v:n,r:t.slice(0,32),s:t.slice(32,64)}},t.isValidSignature=function(e,t,n,r,a){void 0===r&&(r=!0);var o=new i("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new i("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==n.length)return!1;if(!u(c(e,a)))return!1;var d=new i(t),f=new i(n);return!(d.isZero()||d.gt(s)||f.isZero()||f.gt(s)||r&&1===f.cmp(o))},t.hashPersonalMessage=function(e){var t=r.from("Ethereum Signed Message:\n"+e.length.toString(),"utf-8");return s.keccak(r.concat([t,e]))}},74004:function(e,t,n){"use strict";var r=n(5886).Buffer,a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isZeroAddress=t.zeroAddress=t.importPublic=t.privateToAddress=t.privateToPublic=t.publicToAddress=t.pubToAddress=t.isValidPublic=t.isValidPrivate=t.generateAddress2=t.generateAddress=t.isValidChecksumAddress=t.toChecksumAddress=t.isValidAddress=t.Account=void 0;var o=i(n(86694)),s=n(85),c=n(40109),u=n(70177),d=n(68086),f=n(84941),l=n(75953),b=n(51976),p=n(95009),h=function(){function e(e,t,n,r){void 0===e&&(e=new s.BN(0)),void 0===t&&(t=new s.BN(0)),void 0===n&&(n=d.KECCAK256_RLP),void 0===r&&(r=d.KECCAK256_NULL),this.nonce=e,this.balance=t,this.stateRoot=n,this.codeHash=r,this._validate()}return e.fromAccountData=function(t){var n=t.nonce,r=t.balance,a=t.stateRoot,i=t.codeHash;return new e(n?new s.BN((0,f.toBuffer)(n)):void 0,r?new s.BN((0,f.toBuffer)(r)):void 0,a?(0,f.toBuffer)(a):void 0,i?(0,f.toBuffer)(i):void 0)},e.fromRlpSerializedAccount=function(e){var t=s.rlp.decode(e);if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)},e.fromValuesArray=function(t){var n=a(t,4),r=n[0],i=n[1],o=n[2],c=n[3];return new e(new s.BN(r),new s.BN(i),o,c)},e.prototype._validate=function(){if(this.nonce.lt(new s.BN(0)))throw new Error("nonce must be greater than zero");if(this.balance.lt(new s.BN(0)))throw new Error("balance must be greater than zero");if(32!==this.stateRoot.length)throw new Error("stateRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")},e.prototype.raw=function(){return[(0,p.bnToUnpaddedBuffer)(this.nonce),(0,p.bnToUnpaddedBuffer)(this.balance),this.stateRoot,this.codeHash]},e.prototype.serialize=function(){return s.rlp.encode(this.raw())},e.prototype.isContract=function(){return!this.codeHash.equals(d.KECCAK256_NULL)},e.prototype.isEmpty=function(){return this.balance.isZero()&&this.nonce.isZero()&&this.codeHash.equals(d.KECCAK256_NULL)},e}();t.Account=h,t.isValidAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)},t.toChecksumAddress=function(e,t){(0,b.assertIsHexString)(e);var n=(0,u.stripHexPrefix)(e).toLowerCase(),r="";t&&(r=(0,p.toType)(t,p.TypeOutput.BN).toString()+"0x");for(var a=(0,l.keccakFromString)(r+n).toString("hex"),i="0x",o=0;o=8?i+=n[o].toUpperCase():i+=n[o];return i},t.isValidChecksumAddress=function(e,n){return(0,t.isValidAddress)(e)&&(0,t.toChecksumAddress)(e,n)===e},t.generateAddress=function(e,t){(0,b.assertIsBuffer)(e),(0,b.assertIsBuffer)(t);var n=new s.BN(t);return n.isZero()?(0,l.rlphash)([e,null]).slice(-20):(0,l.rlphash)([e,r.from(n.toArray())]).slice(-20)},t.generateAddress2=function(e,t,n){return(0,b.assertIsBuffer)(e),(0,b.assertIsBuffer)(t),(0,b.assertIsBuffer)(n),(0,o.default)(20===e.length),(0,o.default)(32===t.length),(0,l.keccak256)(r.concat([r.from("ff","hex"),e,t,(0,l.keccak256)(n)])).slice(-20)},t.isValidPrivate=function(e){return(0,c.privateKeyVerify)(e)},t.isValidPublic=function(e,t){return void 0===t&&(t=!1),(0,b.assertIsBuffer)(e),64===e.length?(0,c.publicKeyVerify)(r.concat([r.from([4]),e])):!!t&&(0,c.publicKeyVerify)(e)},t.pubToAddress=function(e,t){return void 0===t&&(t=!1),(0,b.assertIsBuffer)(e),t&&64!==e.length&&(e=r.from((0,c.publicKeyConvert)(e,!1).slice(1))),(0,o.default)(64===e.length),(0,l.keccak)(e).slice(-20)},t.publicToAddress=t.pubToAddress,t.privateToPublic=function(e){return(0,b.assertIsBuffer)(e),r.from((0,c.publicKeyCreate)(e,!1)).slice(1)},t.privateToAddress=function(e){return(0,t.publicToAddress)((0,t.privateToPublic)(e))},t.importPublic=function(e){return(0,b.assertIsBuffer)(e),64!==e.length&&(e=r.from((0,c.publicKeyConvert)(e,!1).slice(1))),e},t.zeroAddress=function(){var e=(0,f.zeros)(20);return(0,f.bufferToHex)(e)},t.isZeroAddress=function(e){try{(0,b.assertIsString)(e)}catch(e){return!1}return(0,t.zeroAddress)()===e}},46142:function(e,t,n){"use strict";var r=n(5886).Buffer,a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Address=void 0;var i=a(n(86694)),o=n(85),s=n(84941),c=n(74004),u=function(){function e(e){(0,i.default)(20===e.length,"Invalid address length"),this.buf=e}return e.zero=function(){return new e((0,s.zeros)(20))},e.fromString=function(t){return(0,i.default)((0,c.isValidAddress)(t),"Invalid address"),new e((0,s.toBuffer)(t))},e.fromPublicKey=function(t){return(0,i.default)(r.isBuffer(t),"Public key should be Buffer"),new e((0,c.pubToAddress)(t))},e.fromPrivateKey=function(t){return(0,i.default)(r.isBuffer(t),"Private key should be Buffer"),new e((0,c.privateToAddress)(t))},e.generate=function(t,n){return(0,i.default)(o.BN.isBN(n)),new e((0,c.generateAddress)(t.buf,n.toArrayLike(r)))},e.generate2=function(t,n,a){return(0,i.default)(r.isBuffer(n)),(0,i.default)(r.isBuffer(a)),new e((0,c.generateAddress2)(t.buf,n,a))},e.prototype.equals=function(e){return this.buf.equals(e.buf)},e.prototype.isZero=function(){return this.equals(e.zero())},e.prototype.isPrecompileOrSystemAddress=function(){var e=new o.BN(this.buf),t=new o.BN(0),n=new o.BN("ffff","hex");return e.gte(t)&&e.lte(n)},e.prototype.toString=function(){return"0x"+this.buf.toString("hex")},e.prototype.toBuffer=function(){return r.from(this.buf)},e}();t.Address=u},84941:function(e,t,n){"use strict";var r=n(5886).Buffer,a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},i=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(t,"__esModule",{value:!0}),t.bufArrToArr=t.arrToBufArr=t.validateNoLeadingZeroes=t.baToJSON=t.toUtf8=t.addHexPrefix=t.toUnsigned=t.fromSigned=t.bufferToHex=t.bufferToInt=t.toBuffer=t.unpadHexString=t.unpadArray=t.unpadBuffer=t.setLengthRight=t.setLengthLeft=t.zeros=t.intToBuffer=t.intToHex=void 0;var o=n(85),s=n(70177),c=n(51976);t.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("Received an invalid integer type: ".concat(e));return"0x".concat(e.toString(16))},t.intToBuffer=function(e){var n=(0,t.intToHex)(e);return r.from((0,s.padToEven)(n.slice(2)),"hex")},t.zeros=function(e){return r.allocUnsafe(e).fill(0)};var u=function(e,n,r){var a=(0,t.zeros)(n);return r?e.length0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};t.unpadBuffer=function(e){return(0,c.assertIsBuffer)(e),d(e)},t.unpadArray=function(e){return(0,c.assertIsArray)(e),d(e)},t.unpadHexString=function(e){return(0,c.assertIsHexString)(e),e=(0,s.stripHexPrefix)(e),d(e)},t.toBuffer=function(e){if(null==e)return r.allocUnsafe(0);if(r.isBuffer(e))return r.from(e);if(Array.isArray(e)||e instanceof Uint8Array)return r.from(e);if("string"==typeof e){if(!(0,s.isHexString)(e))throw new Error("Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ".concat(e));return r.from((0,s.padToEven)((0,s.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,t.intToBuffer)(e);if(o.BN.isBN(e)){if(e.isNeg())throw new Error("Cannot convert negative BN to buffer. Given: ".concat(e));return e.toArrayLike(r)}if(e.toArray)return r.from(e.toArray());if(e.toBuffer)return r.from(e.toBuffer());throw new Error("invalid type")},t.bufferToInt=function(e){return new o.BN((0,t.toBuffer)(e)).toNumber()},t.bufferToHex=function(e){return"0x"+(e=(0,t.toBuffer)(e)).toString("hex")},t.fromSigned=function(e){return new o.BN(e).fromTwos(256)},t.toUnsigned=function(e){return r.from(e.toTwos(256).toArray())},t.addHexPrefix=function(e){return"string"!=typeof e||(0,s.isHexPrefixed)(e)?e:"0x"+e},t.toUtf8=function(e){if((e=(0,s.stripHexPrefix)(e)).length%2!=0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return r.from(e.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")},t.baToJSON=function(e){if(r.isBuffer(e))return"0x".concat(e.toString("hex"));if(e instanceof Array){for(var n=[],a=0;a0&&0===u[0])throw new Error("".concat(c," cannot have leading zeroes, received: ").concat(u.toString("hex")))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},t.arrToBufArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):r.from(t)},t.bufArrToArr=function e(t){return Array.isArray(t)?t.map((function(t){return e(t)})):Uint8Array.from(null!=t?t:[])}},68086:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KECCAK256_RLP=t.KECCAK256_RLP_S=t.KECCAK256_RLP_ARRAY=t.KECCAK256_RLP_ARRAY_S=t.KECCAK256_NULL=t.KECCAK256_NULL_S=t.TWO_POW256=t.MAX_INTEGER=t.MAX_UINT64=void 0;var r=n(5886),a=n(85);t.MAX_UINT64=new a.BN("ffffffffffffffff",16),t.MAX_INTEGER=new a.BN("ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",16),t.TWO_POW256=new a.BN("10000000000000000000000000000000000000000000000000000000000000000",16),t.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",t.KECCAK256_NULL=r.Buffer.from(t.KECCAK256_NULL_S,"hex"),t.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",t.KECCAK256_RLP_ARRAY=r.Buffer.from(t.KECCAK256_RLP_ARRAY_S,"hex"),t.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",t.KECCAK256_RLP=r.Buffer.from(t.KECCAK256_RLP_S,"hex")},85:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.rlp=t.BN=void 0;var s=o(n(22097));t.BN=s.default;var c=i(n(57560));t.rlp=c},75953:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.rlphash=t.ripemd160FromArray=t.ripemd160FromString=t.ripemd160=t.sha256FromArray=t.sha256FromString=t.sha256=t.keccakFromArray=t.keccakFromHexString=t.keccakFromString=t.keccak256=t.keccak=void 0;var a=n(29665),i=n(51132),o=n(85),s=n(84941),c=n(51976);t.keccak=function(e,t){switch(void 0===t&&(t=256),(0,c.assertIsBuffer)(e),t){case 224:return(0,a.keccak224)(e);case 256:return(0,a.keccak256)(e);case 384:return(0,a.keccak384)(e);case 512:return(0,a.keccak512)(e);default:throw new Error("Invald algorithm: keccak".concat(t))}},t.keccak256=function(e){return(0,t.keccak)(e)},t.keccakFromString=function(e,n){void 0===n&&(n=256),(0,c.assertIsString)(e);var a=r.from(e,"utf8");return(0,t.keccak)(a,n)},t.keccakFromHexString=function(e,n){return void 0===n&&(n=256),(0,c.assertIsHexString)(e),(0,t.keccak)((0,s.toBuffer)(e),n)},t.keccakFromArray=function(e,n){return void 0===n&&(n=256),(0,c.assertIsArray)(e),(0,t.keccak)((0,s.toBuffer)(e),n)};var u=function(e){return e=(0,s.toBuffer)(e),i("sha256").update(e).digest()};t.sha256=function(e){return(0,c.assertIsBuffer)(e),u(e)},t.sha256FromString=function(e){return(0,c.assertIsString)(e),u(e)},t.sha256FromArray=function(e){return(0,c.assertIsArray)(e),u(e)};var d=function(e,t){e=(0,s.toBuffer)(e);var n=i("rmd160").update(e).digest();return!0===t?(0,s.setLengthLeft)(n,32):n};t.ripemd160=function(e,t){return(0,c.assertIsBuffer)(e),d(e,t)},t.ripemd160FromString=function(e,t){return(0,c.assertIsString)(e),d(e,t)},t.ripemd160FromArray=function(e,t){return(0,c.assertIsArray)(e),d(e,t)},t.rlphash=function(e){return(0,t.keccak)(o.rlp.encode(e))}},51976:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.assertIsString=t.assertIsArray=t.assertIsBuffer=t.assertIsHexString=void 0;var a=n(70177);t.assertIsHexString=function(e){if(!(0,a.isHexString)(e)){var t="This method only supports 0x-prefixed hex strings but input was: ".concat(e);throw new Error(t)}},t.assertIsBuffer=function(e){if(!r.isBuffer(e)){var t="This method only supports Buffer but input was: ".concat(e);throw new Error(t)}},t.assertIsArray=function(e){if(!Array.isArray(e)){var t="This method only supports number arrays but input was: ".concat(e);throw new Error(t)}},t.assertIsString=function(e){if("string"!=typeof e){var t="This method only supports strings but input was: ".concat(e);throw new Error(t)}}},44556:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,a(n(68086),t),a(n(74004),t),a(n(46142),t),a(n(75953),t),a(n(97794),t),a(n(84941),t),a(n(74419),t),a(n(85),t),a(n(95009),t);var i=n(70177);Object.defineProperty(t,"isHexPrefixed",{enumerable:!0,get:function(){return i.isHexPrefixed}}),Object.defineProperty(t,"stripHexPrefix",{enumerable:!0,get:function(){return i.stripHexPrefix}}),Object.defineProperty(t,"padToEven",{enumerable:!0,get:function(){return i.padToEven}}),Object.defineProperty(t,"getBinarySize",{enumerable:!0,get:function(){return i.getBinarySize}}),Object.defineProperty(t,"arrayContainsArray",{enumerable:!0,get:function(){return i.arrayContainsArray}}),Object.defineProperty(t,"toAscii",{enumerable:!0,get:function(){return i.toAscii}}),Object.defineProperty(t,"fromUtf8",{enumerable:!0,get:function(){return i.fromUtf8}}),Object.defineProperty(t,"fromAscii",{enumerable:!0,get:function(){return i.fromAscii}}),Object.defineProperty(t,"getKeys",{enumerable:!0,get:function(){return i.getKeys}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return i.isHexString}})},70177:function(e,t,n){"use strict";var r=n(5886).Buffer;function a(e){if("string"!=typeof e)throw new Error("[isHexPrefixed] input must be type 'string', received type ".concat(typeof e));return"0"===e[0]&&"x"===e[1]}function i(e){var t=e;if("string"!=typeof t)throw new Error("[padToEven] value must be type 'string', received ".concat(typeof t));return t.length%2&&(t="0".concat(t)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.isHexString=t.getKeys=t.fromAscii=t.fromUtf8=t.toAscii=t.arrayContainsArray=t.getBinarySize=t.padToEven=t.stripHexPrefix=t.isHexPrefixed=void 0,t.isHexPrefixed=a,t.stripHexPrefix=function(e){if("string"!=typeof e)throw new Error("[stripHexPrefix] input must be type 'string', received ".concat(typeof e));return a(e)?e.slice(2):e},t.padToEven=i,t.getBinarySize=function(e){if("string"!=typeof e)throw new Error("[getBinarySize] method requires input type 'string', recieved ".concat(typeof e));return r.byteLength(e,"utf8")},t.arrayContainsArray=function(e,t,n){if(!0!==Array.isArray(e))throw new Error("[arrayContainsArray] method requires input 'superset' to be an array, got type '".concat(typeof e,"'"));if(!0!==Array.isArray(t))throw new Error("[arrayContainsArray] method requires input 'subset' to be an array, got type '".concat(typeof t,"'"));return t[n?"some":"every"]((function(t){return e.indexOf(t)>=0}))},t.toAscii=function(e){var t="",n=0,r=e.length;for("0x"===e.substring(0,2)&&(n=2);n=a.length,"The field ".concat(t.name," must not have more ").concat(t.length," bytes"))):t.allowZero&&0===a.length||!t.length||(0,i.default)(t.length===a.length,"The field ".concat(t.name," must have byte length of ").concat(t.length)),e.raw[n]=a}e._fields.push(t.name),Object.defineProperty(e,t.name,{enumerable:!0,configurable:!0,get:a,set:o}),t.default&&(e[t.name]=t.default),t.alias&&Object.defineProperty(e,t.alias,{enumerable:!1,configurable:!0,set:o,get:a})})),n)if("string"==typeof n&&(n=r.from((0,o.stripHexPrefix)(n),"hex")),r.isBuffer(n)&&(n=s.rlp.decode(n)),Array.isArray(n)){if(n.length>e._fields.length)throw new Error("wrong number of fields in data");n.forEach((function(t,n){e[e._fields[n]]=(0,c.toBuffer)(t)}))}else{if("object"!=typeof n)throw new Error("invalid data");var a=Object.keys(n);t.forEach((function(t){-1!==a.indexOf(t.name)&&(e[t.name]=n[t.name]),-1!==a.indexOf(t.alias)&&(e[t.alias]=n[t.alias])}))}}},97794:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.hashPersonalMessage=t.isValidSignature=t.fromRpcSig=t.toCompactSig=t.toRpcSig=t.ecrecover=t.ecsign=void 0;var a=n(40109),i=n(85),o=n(84941),s=n(75953),c=n(51976),u=n(95009);function d(e,t){var n=(0,u.toType)(e,u.TypeOutput.BN);if(n.eqn(0)||n.eqn(1))return(0,u.toType)(e,u.TypeOutput.BN);if(!t)return n.subn(27);var r=(0,u.toType)(t,u.TypeOutput.BN);return n.sub(r.muln(2).addn(35))}function f(e){var t=new i.BN(e);return t.eqn(0)||t.eqn(1)}t.ecsign=function(e,t,n){var i=(0,a.ecdsaSign)(e,t),o=i.signature,s=i.recid,c=r.from(o.slice(0,32)),d=r.from(o.slice(32,64));if(!n||"number"==typeof n){if(n&&!Number.isSafeInteger(n))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");return{r:c,s:d,v:n?s+(2*n+35):s+27}}return{r:c,s:d,v:(0,u.toType)(n,u.TypeOutput.BN).muln(2).addn(35).addn(s).toArrayLike(r)}},t.ecrecover=function(e,t,n,i,s){var c=r.concat([(0,o.setLengthLeft)(n,32),(0,o.setLengthLeft)(i,32)],64),u=d(t,s);if(!f(u))throw new Error("Invalid signature v value");var l=(0,a.ecdsaRecover)(c,u.toNumber(),e);return r.from((0,a.publicKeyConvert)(l,!1).slice(1))},t.toRpcSig=function(e,t,n,a){if(!f(d(e,a)))throw new Error("Invalid signature v value");return(0,o.bufferToHex)(r.concat([(0,o.setLengthLeft)(t,32),(0,o.setLengthLeft)(n,32),(0,o.toBuffer)(e)]))},t.toCompactSig=function(e,t,n,a){if(!f(d(e,a)))throw new Error("Invalid signature v value");var i=(0,u.toType)(e,u.TypeOutput.Number),s=n;return(i>28&&i%2==1||1===i||28===i)&&((s=r.from(n))[0]|=128),(0,o.bufferToHex)(r.concat([(0,o.setLengthLeft)(t,32),(0,o.setLengthLeft)(s,32)]))},t.fromRpcSig=function(e){var t,n,r,a=(0,o.toBuffer)(e);if(a.length>=65)t=a.slice(0,32),n=a.slice(32,64),r=(0,o.bufferToInt)(a.slice(64));else{if(64!==a.length)throw new Error("Invalid signature length");t=a.slice(0,32),n=a.slice(32,64),r=(0,o.bufferToInt)(a.slice(32,33))>>7,n[0]&=127}return r<27&&(r+=27),{v:r,r:t,s:n}},t.isValidSignature=function(e,t,n,r,a){void 0===r&&(r=!0);var o=new i.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16),s=new i.BN("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141",16);if(32!==t.length||32!==n.length)return!1;if(!f(d(e,a)))return!1;var c=new i.BN(t),u=new i.BN(n);return!(c.isZero()||c.gt(s)||u.isZero()||u.gt(s)||r&&1===u.cmp(o))},t.hashPersonalMessage=function(e){(0,c.assertIsBuffer)(e);var t=r.from("Ethereum Signed Message:\n".concat(e.length),"utf-8");return(0,s.keccak)(r.concat([t,e]))}},95009:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.toType=t.TypeOutput=t.bnToRlp=t.bnToUnpaddedBuffer=t.bnToHex=void 0;var a,i=n(85),o=n(70177),s=n(84941);function c(e){return(0,s.unpadBuffer)(e.toArrayLike(r))}t.bnToHex=function(e){return"0x".concat(e.toString(16))},t.bnToUnpaddedBuffer=c,t.bnToRlp=function(e){return c(e)},function(e){e[e.Number=0]="Number",e[e.BN=1]="BN",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(a=t.TypeOutput||(t.TypeOutput={})),t.toType=function(e,t){if(null===e)return null;if(void 0!==e){if("string"==typeof e&&!(0,o.isHexString)(e))throw new Error("A string must be provided with a 0x-prefix, given: ".concat(e));if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");var n=(0,s.toBuffer)(e);if(t===a.Buffer)return n;if(t===a.BN)return new i.BN(n);if(t===a.Number){var r=new i.BN(n),c=new i.BN(Number.MAX_SAFE_INTEGER.toString());if(r.gt(c))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return r.toNumber()}return"0x".concat(n.toString("hex"))}}},60706:function(e,t,n){"use strict";var r=n(5886).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.createHashFunction=function(e){return function(t){var n=e();return n.update(t),r.from(n.digest())}}},29665:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(60706),a=n(51605);t.keccak224=r.createHashFunction((function(){return a("keccak224")})),t.keccak256=r.createHashFunction((function(){return a("keccak256")})),t.keccak384=r.createHashFunction((function(){return a("keccak384")})),t.keccak512=r.createHashFunction((function(){return a("keccak512")}))},25655:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41753);t.getRandomBytes=function(e){return new Promise((function(t,n){r(e,(function(e,r){e?n(e):t(r)}))}))},t.getRandomBytesSync=function(e){return r(e)}},40109:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((a=(a=o.trys).length>0&&a[a.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]=0&&(t.throttleRetry=!0),t}return e.result}function re(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){var t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){var n=new Error("invalid response");throw n.result=JSON.stringify(e),n}if(e.error){var r=new Error(e.error.message||"unknown error");throw e.error.code&&(r.code=e.error.code),e.error.data&&(r.data=e.error.data),r}return e.result}function ae(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function ie(e,t,n){if("call"===e&&t.code===P.Logger.errors.SERVER_ERROR){var r=t.error;if(r&&(r.message.match(/reverted/i)||r.message.match(/VM execution error/i))){var a=r.data;if(a&&(a="0x"+a.replace(/^.*0x/i,"")),(0,W.isHexString)(a))return a;ee.throwError("missing revert data in call exception",P.Logger.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}var i=t.message;throw t.code===P.Logger.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText)),(i=(i||"").toLowerCase()).match(/insufficient funds/)&&ee.throwError("insufficient funds for intrinsic transaction cost",P.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&ee.throwError("nonce has already been used",P.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/another transaction with same nonce/)&&ee.throwError("replacement fee too low",P.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/execution failed due to an exception|execution reverted/)&&ee.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",P.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}var oe=function(e){(0,x.Z)(n,e);var t=(0,_.Z)(n);function n(e,r){var a;return(0,g.Z)(this,n),a=t.call(this,e),(0,k.defineReadOnly)((0,w.Z)(a),"baseUrl",a.getBaseUrl()),(0,k.defineReadOnly)((0,w.Z)(a),"apiKey",r||null),a}return(0,A.Z)(n,[{key:"getBaseUrl",value:function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return ee.throwArgumentError("unsupported network","network",this.network.name)}},{key:"getUrl",value:function(e,t){var n=Object.keys(t).reduce((function(e,n){var r=t[n];return null!=r&&(e+="&".concat(n,"=").concat(r)),e}),""),r=this.apiKey?"&apikey=".concat(this.apiKey):"";return"".concat(this.baseUrl,"/api?module=").concat(e).concat(n).concat(r)}},{key:"getPostUrl",value:function(){return"".concat(this.baseUrl,"/api")}},{key:"getPostData",value:function(e,t){return t.module=e,t.apikey=this.apiKey,t}},{key:"fetch",value:function(e,t,n){return $(this,void 0,void 0,(0,S.Z)().mark((function r(){var a,i,o,s,c,u,d=this;return(0,S.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=n?this.getPostUrl():this.getUrl(e,t),i=n?this.getPostData(e,t):null,o="proxy"===e?re:ne,this.emit("debug",{action:"request",request:a,provider:this}),s={url:a,throttleSlotInterval:1e3,throttleCallback:function(e,t){return d.isCommunityResource()&&(0,I.vh)(),Promise.resolve(!0)}},c=null,i&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},c=Object.keys(i).map((function(e){return"".concat(e,"=").concat(i[e])})).join("&")),r.next=9,(0,X.fetchJson)(s,c,o||re);case 9:return u=r.sent,this.emit("debug",{action:"response",request:a,response:(0,k.deepCopy)(u),provider:this}),r.abrupt("return",u);case 12:case"end":return r.stop()}}),r,this)})))}},{key:"detectNetwork",value:function(){return $(this,void 0,void 0,(0,S.Z)().mark((function e(){return(0,S.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.network);case 1:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){var r=this,a=Object.create(null,{perform:{get:function(){return(0,C.Z)((0,T.Z)(n.prototype),"perform",r)}}});return $(this,void 0,void 0,(0,S.Z)().mark((function n(){var r,i,o,s,c,u,d,f,l;return(0,S.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=e,n.next="getBlockNumber"===n.t0?3:"getGasPrice"===n.t0?4:"getBalance"===n.t0?5:"getTransactionCount"===n.t0?6:"getCode"===n.t0?7:"getStorageAt"===n.t0?8:"sendTransaction"===n.t0?9:"getBlock"===n.t0?10:"getTransaction"===n.t0?13:"getTransactionReceipt"===n.t0?14:"call"===n.t0?15:"estimateGas"===n.t0?29:"getLogs"===n.t0?41:"getEtherPrice"===n.t0?65:72;break;case 3:return n.abrupt("return",this.fetch("proxy",{action:"eth_blockNumber"}));case 4:return n.abrupt("return",this.fetch("proxy",{action:"eth_gasPrice"}));case 5:return n.abrupt("return",this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag}));case 6:return n.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag}));case 7:return n.abrupt("return",this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag}));case 8:return n.abrupt("return",this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag}));case 9:return n.abrupt("return",this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((function(e){return ie("sendTransaction",e,t.signedTransaction)})));case 10:if(!t.blockTag){n.next=12;break}return n.abrupt("return",this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"}));case 12:throw new Error("getBlock by blockHash not implemented");case 13:return n.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash}));case 14:return n.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash}));case 15:if("latest"===t.blockTag){n.next=17;break}throw new Error("EtherscanProvider does not support blockTag for call");case 17:return(r=te(t.transaction)).module="proxy",r.action="eth_call",n.prev=20,n.next=23,this.fetch("proxy",r,!0);case 23:return n.abrupt("return",n.sent);case 26:return n.prev=26,n.t1=n.catch(20),n.abrupt("return",ie("call",n.t1,t.transaction));case 29:return(i=te(t.transaction)).module="proxy",i.action="eth_estimateGas",n.prev=32,n.next=35,this.fetch("proxy",i,!0);case 35:return n.abrupt("return",n.sent);case 38:return n.prev=38,n.t2=n.catch(32),n.abrupt("return",ie("estimateGas",n.t2,t.transaction));case 41:return o={action:"getLogs"},t.filter.fromBlock&&(o.fromBlock=ae(t.filter.fromBlock)),t.filter.toBlock&&(o.toBlock=ae(t.filter.toBlock)),t.filter.address&&(o.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&ee.throwError("unsupported topic count",P.Logger.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length&&("string"==typeof(s=t.filter.topics[0])&&66===s.length||ee.throwError("unsupported topic format",P.Logger.errors.UNSUPPORTED_OPERATION,{topic0:s}),o.topic0=s)),n.next=48,this.fetch("logs",o);case 48:c=n.sent,u={},d=0;case 51:if(!(d=0}))},intToBuffer:function(e){var t=s(e);return new r(o(t.slice(2)),"hex")},getBinarySize:function(e){if("string"!=typeof e)throw new Error("[ethjs-util] while getting binary size, method getBinarySize requires input 'str' to be type String, got '"+typeof e+"'.");return r.byteLength(e,"utf8")},isHexPrefixed:a,stripHexPrefix:i,padToEven:o,intToHex:s,fromAscii:function(e){for(var t="",n=0;n0&&o.length>a&&!o.warned){o.warned=!0;var d=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");d.name="MaxListenersExceededWarning",d.emitter=e,d.type=t,d.count=o.length,u=d,console&&console.warn&&console.warn(u)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=d.bind(r);return a.listener=n,r.wrapFn=a,a}function l(e,t,n){var r=e._events;if(void 0===r)return[];var a=r[t];return void 0===a?[]:"function"==typeof a?n?[a.listener||a]:[a]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,d=p(c,u);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){o=n[i].listener,a=i;break}if(a<0)return this;0===a?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return l(this,e,!0)},i.prototype.rawListeners=function(e){return l(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},i.prototype.listenerCount=b,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},25656:function(e,t,n){var r=n(31892).Buffer,a=n(29078);e.exports=function(e,t,n,i){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,s=r.alloc(o),c=r.alloc(i||0),u=r.alloc(0);o>0||i>0;){var d=new a;d.update(u),d.update(e),t&&d.update(t),u=d.digest();var f=0;if(o>0){var l=s.length-o;f=Math.min(o,u.length),u.copy(s,l,0,f),o-=f}if(f0){var b=c.length-i,p=Math.min(i,u.length-f);u.copy(c,b,f,f+p),i-=p}}return u.fill(0),{key:s,iv:c}}},8799:function(e){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),a=Array.isArray(t),i=0;i=3&&(o=n),"[object Array]"===a.call(e)?function(e,t,n){for(var r=0,a=e.length;r1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=k(e,0,1),n=k(e,-1);if("%"===t&&"%"!==n)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,S,(function(e,t,n,a){r[r.length]=n?_(a,E,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=C("%"+r+"%",t),s=i.name,u=i.value,d=!1,f=i.alias;f&&(r=f[0],x(n,w([0,1],f)));for(var l=1,b=!0;l=n.length){var v=c(u,p);u=(b=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:u[p]}else b=A(u,p),u=u[p];b&&!d&&(h[s]=u)}}return u}},55980:function(e,t,n){"use strict";var r=n(51588)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},97935:function(e,t,n){"use strict";var r=n(51588)("%Object.defineProperty%",!0),a=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};a.hasArrayLengthDefineBug=function(){if(!a())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=a},83239:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,a=n(1905);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&a()}},1905:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},54405:function(e,t,n){"use strict";var r=n(1905);e.exports=function(){return r()&&!!Symbol.toStringTag}},27599:function(e,t,n){"use strict";var r=n(70315);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},98450:function(e,t,n){"use strict";var r=n(31892).Buffer,a=n(96181).Transform;function i(e){a.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(56249)(i,a),i.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},i.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},i.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer")}(e),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,a=0;this._blockOffset+e.length-a>=this._blockSize;){for(var i=this._blockOffset;i0;++o)this._length[o]+=s,(s=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*s);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=i},33791:function(e,t,n){var r=t;r.utils=n(51949),r.common=n(98625),r.sha=n(94639),r.ripemd=n(65297),r.hmac=n(82961),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},98625:function(e,t,n){"use strict";var r=n(51949),a=n(44713);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,r[a++]=e>>>16&255,r[a++]=e>>>8&255,r[a++]=255&e}else for(r[a++]=255&e,r[a++]=e>>>8&255,r[a++]=e>>>16&255,r[a++]=e>>>24&255,r[a++]=0,r[a++]=0,r[a++]=0,r[a++]=0,i=8;ithis.blockSize&&(e=(new this.Hash).update(e).digest()),a(e.length<=this.blockSize);for(var t=e.length;t>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},51949:function(e,t,n){"use strict";var r=n(44713),a=n(56249);function i(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=a,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),a=0;a>6|192,n[r++]=63&o|128):i(e,a)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++a)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(a=0;a>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,a=0;r>>24,n[a+1]=i>>>16&255,n[a+2]=i>>>8&255,n[a+3]=255&i):(n[a+3]=i>>>24,n[a+2]=i>>>16&255,n[a+1]=i>>>8&255,n[a]=255&i)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,a){return e+t+n+r+a>>>0},t.sum64=function(e,t,n,r){var a=e[t],i=r+e[t+1]>>>0,o=(i>>0,e[t+1]=i},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,a,i,o,s){var c=0,u=t;return c+=(u=u+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,a,i,o,s){return t+r+i+s>>>0},t.sum64_5_hi=function(e,t,n,r,a,i,o,s,c,u){var d=0,f=t;return d+=(f=f+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,a,i,o,s,c,u){return t+r+i+s+u>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},10842:function(e,t,n){var r,a=n(32375);!function(){"use strict";var t="object"==typeof window?window:{};!t.HI_BASE32_NO_NODE_JS&&"object"==typeof a&&a.versions&&a.versions.node&&(t=n.g);var i=!t.HI_BASE32_NO_COMMON_JS&&e.exports,o=n.amdO,s="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".split(""),c={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,2:26,3:27,4:28,5:29,6:30,7:31},u=[0,0,0,0,0,0,0,0],d=function(e,t){t.length>10&&(t="..."+t.substr(-10));var n=new Error("Decoded data is not valid UTF-8. Maybe try base32.decode.asBytes()? Partial data after reading "+e+" bytes: "+t+" <-");throw n.position=e,n},f=function(e){if(""===e)return[];if(!/^[A-Z2-7=]+$/.test(e))throw new Error("Invalid base32 characters");for(var t,n,r,a,i,o,s,u,d=[],f=0,l=(e=e.replace(/=/g,"")).length,b=0,p=l>>3<<3;b>>2),d[f++]=255&(n<<6|r<<1|a>>>4),d[f++]=255&(a<<4|i>>>1),d[f++]=255&(i<<7|o<<2|s>>>3),d[f++]=255&(s<<5|u);var h=l-p;return 2===h?(t=c[e.charAt(b++)],n=c[e.charAt(b++)],d[f++]=255&(t<<3|n>>>2)):4===h?(t=c[e.charAt(b++)],n=c[e.charAt(b++)],r=c[e.charAt(b++)],a=c[e.charAt(b++)],d[f++]=255&(t<<3|n>>>2),d[f++]=255&(n<<6|r<<1|a>>>4)):5===h?(t=c[e.charAt(b++)],n=c[e.charAt(b++)],r=c[e.charAt(b++)],a=c[e.charAt(b++)],i=c[e.charAt(b++)],d[f++]=255&(t<<3|n>>>2),d[f++]=255&(n<<6|r<<1|a>>>4),d[f++]=255&(a<<4|i>>>1)):7===h&&(t=c[e.charAt(b++)],n=c[e.charAt(b++)],r=c[e.charAt(b++)],a=c[e.charAt(b++)],i=c[e.charAt(b++)],o=c[e.charAt(b++)],s=c[e.charAt(b++)],d[f++]=255&(t<<3|n>>>2),d[f++]=255&(n<<6|r<<1|a>>>4),d[f++]=255&(a<<4|i>>>1),d[f++]=255&(i<<7|o<<2|s>>>3)),d},l=function(e,t){if(!t)return function(e){for(var t,n,r="",a=e.length,i=0,o=0;i191&&t<=223?(n=31&t,o=1):t<=239?(n=15&t,o=2):t<=247?(n=7&t,o=3):d(i,r);for(var s=0;s191)&&d(i,r),n<<=6,n+=63&t;n>=55296&&n<=57343&&d(i,r),n>1114111&&d(i,r),n<=65535?r+=String.fromCharCode(n):(n-=65536,r+=String.fromCharCode(55296+(n>>10)),r+=String.fromCharCode(56320+(1023&n)))}return r}(f(e));if(""===e)return"";if(!/^[A-Z2-7=]+$/.test(e))throw new Error("Invalid base32 characters");var n,r,a,i,o,s,u,l,b="",p=e.indexOf("=");-1===p&&(p=e.length);for(var h=0,y=p>>3<<3;h>>2))+String.fromCharCode(255&(r<<6|a<<1|i>>>4))+String.fromCharCode(255&(i<<4|o>>>1))+String.fromCharCode(255&(o<<7|s<<2|u>>>3))+String.fromCharCode(255&(u<<5|l));var m=p-y;return 2===m?(n=c[e.charAt(h++)],r=c[e.charAt(h++)],b+=String.fromCharCode(255&(n<<3|r>>>2))):4===m?(n=c[e.charAt(h++)],r=c[e.charAt(h++)],a=c[e.charAt(h++)],i=c[e.charAt(h++)],b+=String.fromCharCode(255&(n<<3|r>>>2))+String.fromCharCode(255&(r<<6|a<<1|i>>>4))):5===m?(n=c[e.charAt(h++)],r=c[e.charAt(h++)],a=c[e.charAt(h++)],i=c[e.charAt(h++)],o=c[e.charAt(h++)],b+=String.fromCharCode(255&(n<<3|r>>>2))+String.fromCharCode(255&(r<<6|a<<1|i>>>4))+String.fromCharCode(255&(i<<4|o>>>1))):7===m&&(n=c[e.charAt(h++)],r=c[e.charAt(h++)],a=c[e.charAt(h++)],i=c[e.charAt(h++)],o=c[e.charAt(h++)],s=c[e.charAt(h++)],u=c[e.charAt(h++)],b+=String.fromCharCode(255&(n<<3|r>>>2))+String.fromCharCode(255&(r<<6|a<<1|i>>>4))+String.fromCharCode(255&(i<<4|o>>>1))+String.fromCharCode(255&(o<<7|s<<2|u>>>3))),b},b={encode:function(e,t){var n="string"!=typeof e;return n&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),n?function(e){for(var t,n,r,a,i,o="",c=e.length,u=0,d=5*parseInt(c/5);u>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[31&(r<<1|a>>>7)]+s[a>>>2&31]+s[31&(a<<3|i>>>5)]+s[31&i];var f=c-d;return 1===f?(t=e[u],o+=s[t>>>3]+s[t<<2&31]+"======"):2===f?(t=e[u++],n=e[u],o+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[n<<4&31]+"===="):3===f?(t=e[u++],n=e[u++],r=e[u],o+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[r<<1&31]+"==="):4===f&&(t=e[u++],n=e[u++],r=e[u++],a=e[u],o+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[31&(r<<1|a>>>7)]+s[a>>>2&31]+s[a<<3&31]+"="),o}(e):t?function(e){for(var t,n,r,a,i,o="",c=e.length,u=0,d=5*parseInt(c/5);u>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[31&(r<<1|a>>>7)]+s[a>>>2&31]+s[31&(a<<3|i>>>5)]+s[31&i];var f=c-d;return 1===f?(t=e.charCodeAt(u),o+=s[t>>>3]+s[t<<2&31]+"======"):2===f?(t=e.charCodeAt(u++),n=e.charCodeAt(u),o+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[n<<4&31]+"===="):3===f?(t=e.charCodeAt(u++),n=e.charCodeAt(u++),r=e.charCodeAt(u),o+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[r<<1&31]+"==="):4===f&&(t=e.charCodeAt(u++),n=e.charCodeAt(u++),r=e.charCodeAt(u++),a=e.charCodeAt(u),o+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[31&(r<<1|a>>>7)]+s[a>>>2&31]+s[a<<3&31]+"="),o}(e):function(e){var t,n,r,a,i,o,c,d=!1,f="",l=0,b=0,p=e.length;if(""===e)return f;do{for(u[0]=u[5],u[1]=u[6],u[2]=u[7],c=b;l>6,u[c++]=128|63&o):o<55296||o>=57344?(u[c++]=224|o>>12,u[c++]=128|o>>6&63,u[c++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++l)),u[c++]=240|o>>18,u[c++]=128|o>>12&63,u[c++]=128|o>>6&63,u[c++]=128|63&o);b=c-5,l===p&&++l,l>p&&c<6&&(d=!0),t=u[0],c>4?(n=u[1],r=u[2],a=u[3],i=u[4],f+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[31&(r<<1|a>>>7)]+s[a>>>2&31]+s[31&(a<<3|i>>>5)]+s[31&i]):1===c?f+=s[t>>>3]+s[t<<2&31]+"======":2===c?(n=u[1],f+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[n<<4&31]+"===="):3===c?(n=u[1],r=u[2],f+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[r<<1&31]+"==="):(n=u[1],r=u[2],a=u[3],f+=s[t>>>3]+s[31&(t<<2|n>>>6)]+s[n>>>1&31]+s[31&(n<<4|r>>>4)]+s[31&(r<<1|a>>>7)]+s[a>>>2&31]+s[a<<3&31]+"=")}while(!d);return f}(e)},decode:l};l.asBytes=f,i?e.exports=b:(t.base32=b,o&&(void 0===(r=function(){return b}.call(b,n,b,e))||(e.exports=r)))}()},66741:function(e,t,n){"use strict";var r=n(33791),a=n(74068),i=n(44713);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=a.toArray(e.entropy,e.entropyEnc||"hex"),n=a.toArray(e.nonce,e.nonceEnc||"hex"),r=a.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=o,o.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var a=0;a=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},o.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=a.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length=600)&&a("non-error status code; use only 4xx or 5xx status codes"),("number"!=typeof r||!o[r]&&(r<400||r>=600))&&(r=500);var d=e[r]||e[u(r)];for(var f in t||(t=d?new d(n):new Error(n||o[r]),Error.captureStackTrace(t,e)),d&&t instanceof d&&t.status===r||(t.expose=r<500,t.status=t.statusCode=r),i)"status"!==f&&"statusCode"!==f&&(t[f]=i[f]);return t},e.exports.HttpError=function(){function e(){throw new TypeError("cannot construct abstract class")}return s(e,Error),e}(),e.exports.isHttpError=(r=e.exports.HttpError,function(e){return!(!e||"object"!=typeof e)&&(e instanceof r||e instanceof Error&&"boolean"==typeof e.expose&&"number"==typeof e.statusCode&&e.status===e.statusCode)}),function(e,t,n){t.forEach((function(t){var r,a=c(o[t]);switch(u(t)){case 400:r=function(e,t,n){var r=f(t);function a(e){var t=null!=e?e:o[n],s=new Error(t);return Error.captureStackTrace(s,a),i(s,a.prototype),Object.defineProperty(s,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(s,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),s}return s(a,e),d(a,r),a.prototype.status=n,a.prototype.statusCode=n,a.prototype.expose=!0,a}(n,a,t);break;case 500:r=function(e,t,n){var r=f(t);function a(e){var t=null!=e?e:o[n],s=new Error(t);return Error.captureStackTrace(s,a),i(s,a.prototype),Object.defineProperty(s,"message",{enumerable:!0,configurable:!0,value:t,writable:!0}),Object.defineProperty(s,"name",{enumerable:!1,configurable:!0,value:r,writable:!0}),s}return s(a,e),d(a,r),a.prototype.status=n,a.prototype.statusCode=n,a.prototype.expose=!1,a}(n,a,t)}r&&(e[t]=r,e[a]=r)})),e["I'mateapot"]=a.function(e.ImATeapot,'"I\'mateapot"; use "ImATeapot" instead')}(e.exports,o.codes,e.exports.HttpError)},19634:function(e){"use strict";function t(e,t){if("function"!=typeof e)throw new TypeError("argument fn must be a function");return e}function n(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("argument obj must be object");var r=Object.getOwnPropertyDescriptor(e,t);if(!r)throw new TypeError("must call property on owner object");if(!r.configurable)throw new TypeError("property must be configurable")}e.exports=function(e){if(!e)throw new TypeError("argument namespace is required");function r(e){}return r._file=void 0,r._ignored=!0,r._namespace=e,r._traced=!1,r._warned=Object.create(null),r.function=t,r.property=n,r}},43135:function(e,t,n){var r=n(28110),a=n(18281),i=e.exports;for(var o in r)r.hasOwnProperty(o)&&(i[o]=r[o]);function s(e){if("string"==typeof e&&(e=a.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}i.request=function(e,t){return e=s(e),r.request.call(this,e,t)},i.get=function(e,t){return e=s(e),r.get.call(this,e,t)}},29602:function(e,t){t.read=function(e,t,n,r,a){var i,o,s=8*a-r-1,c=(1<>1,d=-7,f=n?a-1:0,l=n?-1:1,b=e[t+f];for(f+=l,i=b&(1<<-d)-1,b>>=-d,d+=s;d>0;i=256*i+e[t+f],f+=l,d-=8);for(o=i&(1<<-d)-1,i>>=-d,d+=r;d>0;o=256*o+e[t+f],f+=l,d-=8);if(0===i)i=1-u;else{if(i===c)return o?NaN:1/0*(b?-1:1);o+=Math.pow(2,r),i-=u}return(b?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,s,c,u=8*i-a-1,d=(1<>1,l=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,b=r?0:i-1,p=r?1:-1,h=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+f>=1?l/c:l*Math.pow(2,1-f))*c>=2&&(o++,c/=2),o+f>=d?(s=0,o=d):o+f>=1?(s=(t*c-1)*Math.pow(2,a),o+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,a),o=0));a>=8;e[n+b]=255&s,b+=p,s/=256,a-=8);for(o=o<0;e[n+b]=255&o,b+=p,o/=256,u-=8);e[n+b-p]|=128*h}},56249:function(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},25540:function(e,t,n){"use strict";var r=n(54405)(),a=n(8949)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===a(e)},o=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==a(e)&&"[object Function]"===a(e.callee)},s=function(){return i(arguments)}();i.isLegacyArguments=o,e.exports=s?i:o},52943:function(e){"use strict";var t,n,r=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},a((function(){throw 42}),null,t)}catch(e){e!==n&&(a=null)}else a=null;var i=/^\s*class\b/,o=function(e){try{var t=r.call(e);return i.test(t)}catch(e){return!1}},s=function(e){try{return!o(e)&&(r.call(e),!0)}catch(e){return!1}},c=Object.prototype.toString,u="function"==typeof Symbol&&!!Symbol.toStringTag,d=!(0 in[,]),f=function(){return!1};if("object"==typeof document){var l=document.all;c.call(l)===c.call(document.all)&&(f=function(e){if((d||!e)&&(void 0===e||"object"==typeof e))try{var t=c.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}e.exports=a?function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;try{a(e,null,t)}catch(e){if(e!==n)return!1}return!o(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(u)return s(e);if(o(e))return!1;var t=c.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},60451:function(e,t,n){"use strict";var r,a=Object.prototype.toString,i=Function.prototype.toString,o=/^\s*(?:function)?\*/,s=n(54405)(),c=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(i.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===a.call(e);if(!c)return!1;if(void 0===r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&c(t)}return c(e)===r}},3423:function(e){e.exports=function(e){if("string"!=typeof e)throw new Error("[is-hex-prefixed] value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}},64307:function(e){"use strict";e.exports=function(e){return e!=e}},56237:function(e,t,n){"use strict";var r=n(95506),a=n(41564),i=n(64307),o=n(71521),s=n(42514),c=r(o(),Number);a(c,{getPolyfill:o,implementation:i,shim:s}),e.exports=c},71521:function(e,t,n){"use strict";var r=n(64307);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},42514:function(e,t,n){"use strict";var r=n(41564),a=n(71521);e.exports=function(){var e=a();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},57718:function(e,t,n){"use strict";var r=n(26295),a=n(57896),i=n(8949),o=i("Object.prototype.toString"),s=n(54405)(),c=n(55980),u="undefined"==typeof globalThis?n.g:globalThis,d=a(),f=i("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1}return!!c&&function(e){var t=!1;return r(b,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},54341:function(e){e.exports=r,r.strict=a,r.loose=i;var t=Object.prototype.toString,n={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function r(e){return a(e)||i(e)}function a(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function i(e){return n[t.call(e)]}},64245:function(e,t,n){"use strict";var r=n(34806).v4,a=n(95006),i=function e(t,n){if(!(this instanceof e))return new e(t,n);n||(n={}),this.options={reviver:void 0!==n.reviver?n.reviver:null,replacer:void 0!==n.replacer?n.replacer:null,generator:void 0!==n.generator?n.generator:function(){return r()},version:void 0!==n.version?n.version:2,notificationIdNull:"boolean"==typeof n.notificationIdNull&&n.notificationIdNull},this.callServer=t};e.exports=i,i.prototype.request=function(e,t,n,r){var i,o=this,s=null,c=Array.isArray(e)&&"function"==typeof t;if(1===this.options.version&&c)throw new TypeError("JSON-RPC 1.0 does not support batching");if(c||!c&&e&&"object"==typeof e&&"function"==typeof t)r=t,s=e;else{"function"==typeof n&&(r=n,n=void 0);var u="function"==typeof r;try{s=a(e,t,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(e){if(u)return r(e);throw e}if(!u)return s}try{i=JSON.stringify(s,this.options.replacer)}catch(e){return r(e)}return this.callServer(i,(function(e,t){o._parseResponse(e,t,r)})),s},i.prototype._parseResponse=function(e,t,n){if(e)n(e);else{if(!t)return n();var r;try{r=JSON.parse(t,this.options.reviver)}catch(e){return n(e)}if(3===n.length){if(Array.isArray(r)){var a=function(e){return void 0!==e.error};return n(null,r.filter(a),r.filter((function(e){return!a(e)})))}return n(null,r.error,r.result)}n(null,r)}}},95006:function(e,t,n){"use strict";var r=n(34806).v4;e.exports=function(e,t,n,a){if("string"!=typeof e)throw new TypeError(e+" must be a string");var i="number"==typeof(a=a||{}).version?a.version:2;if(1!==i&&2!==i)throw new TypeError(i+" must be 1 or 2");var o={method:e};if(2===i&&(o.jsonrpc="2.0"),t){if("object"!=typeof t&&!Array.isArray(t))throw new TypeError(t+" must be an object, array or omitted");o.params=t}if(void 0===n){var s="function"==typeof a.generator?a.generator:function(){return r()};o.id=s(o,a)}else 2===i&&null===n?a.notificationIdNull&&(o.id=null):o.id=n;return o}},13190:function(module,exports,__webpack_require__){var process=__webpack_require__(32375),__WEBPACK_AMD_DEFINE_RESULT__;(function(){"use strict";var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=__webpack_require__.g:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&module.exports,AMD=__webpack_require__.amdO,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[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],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n>6,o[c++]=128|63&i):i<55296||i>=57344?(o[c++]=224|i>>12,o[c++]=128|i>>6&63,o[c++]=128|63&i):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++r)),o[c++]=240|i>>18,o[c++]=128|i>>12&63,o[c++]=128|i>>6&63,o[c++]=128|63&i);e=o}else{if("object"!==a)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var u=[],d=[];for(r=0;r<64;++r){var f=e[r]||0;u[r]=92^f,d[r]=54^f}Sha256.call(this,t,n),this.update(d),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var r,a,i=0,o=e.length,s=this.blocks;i>2]|=e[i]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(s[a>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=64?(this.block=s[16],this.start=a-64,this.hash(),this.hashed=!0):this.start=a}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,r,a,i,o,s,c,u=this.h0,d=this.h1,f=this.h2,l=this.h3,b=this.h4,p=this.h5,h=this.h6,y=this.h7,m=this.blocks;for(e=16;e<64;++e)t=((a=m[e-15])>>>7|a<<25)^(a>>>18|a<<14)^a>>>3,n=((a=m[e-2])>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,m[e]=m[e-16]+t+m[e-7]+n<<0;for(c=d&f,e=0;e<64;e+=4)this.first?(this.is224?(i=300032,y=(a=m[0]-1413257819)-150054599<<0,l=a+24177077<<0):(i=704751109,y=(a=m[0]-210244248)-1521486534<<0,l=a+143694565<<0),this.first=!1):(t=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(i=u&d)^u&f^c,y=l+(a=y+(n=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&p^~b&h)+K[e]+m[e])<<0,l=a+(t+r)<<0),t=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),r=(o=l&u)^l&d^i,h=f+(a=h+(n=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&b^~y&p)+K[e+1]+m[e+1])<<0,t=((f=a+(t+r)<<0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),r=(s=f&l)^f&u^o,p=d+(a=p+(n=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&y^~h&b)+K[e+2]+m[e+2])<<0,t=((d=a+(t+r)<<0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(c=d&f)^d&l^s,b=u+(a=b+(n=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&h^~p&y)+K[e+3]+m[e+3])<<0,u=a+(t+r)<<0;this.h0=this.h0+u<<0,this.h1=this.h1+d<<0,this.h2=this.h2+f<<0,this.h3=this.h3+l<<0,this.h4=this.h4+b<<0,this.h5=this.h5+p<<0,this.h6=this.h6+h<<0,this.h7=this.h7+y<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,c=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o];return this.is224||(c+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),c},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,a=this.h4,i=this.h5,o=this.h6,s=this.h7,c=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,a>>24&255,a>>16&255,a>>8&255,255&a,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o];return this.is224||c.push(s>>24&255,s>>16&255,s>>8&255,255&s),c},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()},44105:function(e,t,n){var r,a=n(32375);!function(){"use strict";var i="input is invalid type",o="object"==typeof window,s=o?window:{};s.JS_SHA3_NO_WINDOW&&(o=!1);var c=!o&&"object"==typeof self;!s.JS_SHA3_NO_NODE_JS&&"object"==typeof a&&a.versions&&a.versions.node?s=n.g:c&&(s=self);var u=!s.JS_SHA3_NO_COMMON_JS&&e.exports,d=n.amdO,f=!s.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,l="0123456789abcdef".split(""),b=[4,1024,262144,67108864],p=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],y=[224,256,384,512],m=[128,256],v=["hex","buffer","arrayBuffer","array","digest"],g={128:168,256:136};!s.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!f||!s.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var A=function(e,t,n){return function(r){return new R(e,t,e).update(r)[n]()}},w=function(e,t,n){return function(r,a){return new R(e,t,a).update(r)[n]()}},x=function(e,t,n){return function(t,r,a,i){return E["cshake"+e].update(t,r,a,i)[n]()}},_=function(e,t,n){return function(t,r,a,i){return E["kmac"+e].update(t,r,a,i)[n]()}},k=function(e,t,n,r){for(var a=0;a>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function D(e,t,n){R.call(this,e,t,n)}R.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(i);if(null===e)throw new Error(i);if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||f&&ArrayBuffer.isView(e)))throw new Error(i);t=!0}for(var r,a,o=this.blocks,s=this.byteCount,c=e.length,u=this.blockCount,d=0,l=this.s;d>2]|=e[d]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|63&a)<=57344?(o[r>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<=s){for(this.start=r-s,this.block=o[u],r=0;r>=8);n>0;)a.unshift(n),n=255&(e>>=8),++r;return t?a.push(r):a.unshift(r),this.update(a),a.length},R.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(i);if(null===e)throw new Error(i);if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||f&&ArrayBuffer.isView(e)))throw new Error(i);t=!0}var r=0,a=e.length;if(t)r=a;else for(var o=0;o=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++o)),r+=4)}return r+=this.encode(8*r),this.update(e),r},R.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t>4&15]+l[15&e]+l[e>>12&15]+l[e>>8&15]+l[e>>20&15]+l[e>>16&15]+l[e>>28&15]+l[e>>24&15];o%t==0&&(j(n),i=0)}return a&&(e=n[i],s+=l[e>>4&15]+l[15&e],a>1&&(s+=l[e>>12&15]+l[e>>8&15]),a>2&&(s+=l[e>>20&15]+l[e>>16&15])),s},R.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,a=this.extraBytes,i=0,o=0,s=this.outputBits>>3;e=a?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var c=new Uint32Array(e);o>8&255,c[e+2]=t>>16&255,c[e+3]=t>>24&255;s%n==0&&j(r)}return i&&(e=s<<2,t=r[o],c[e]=255&t,i>1&&(c[e+1]=t>>8&255),i>2&&(c[e+2]=t>>16&255)),c},D.prototype=new R,D.prototype.finalize=function(){return this.encode(this.outputBits,!0),R.prototype.finalize.call(this)};var j=function(e){var t,n,r,a,i,o,s,c,u,d,f,l,b,p,y,m,v,g,A,w,x,_,k,I,S,E,C,T,O,P,M,B,N,R,D,j,U,L,F,Z,H,z,Q,q,V,J,K,G,W,Y,X,$,ee,te,ne,re,ae,ie,oe,se,ce,ue,de;for(r=0;r<48;r+=2)a=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],o=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],c=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],d=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(l=e[8]^e[18]^e[28]^e[38]^e[48])^(o<<1|s>>>31),n=(b=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|o>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=a^(c<<1|u>>>31),n=i^(u<<1|c>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=o^(d<<1|f>>>31),n=s^(f<<1|d>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=c^(l<<1|b>>>31),n=u^(b<<1|l>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=d^(a<<1|i>>>31),n=f^(i<<1|a>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,p=e[0],y=e[1],J=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,T=e[20]<<3|e[21]>>>29,O=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ce=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,Q=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,m=e[13]<<12|e[12]>>>20,v=e[12]<<12|e[13]>>>20,G=e[22]<<10|e[23]>>>22,W=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,M=e[32]<<13|e[33]>>>19,ue=e[42]<<2|e[43]>>>30,de=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,j=e[14]<<6|e[15]>>>26,U=e[15]<<6|e[14]>>>26,g=e[25]<<11|e[24]>>>21,A=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,B=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,I=e[6]<<28|e[7]>>>4,S=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ae=e[16]<<23|e[17]>>>9,L=e[26]<<25|e[27]>>>7,F=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,q=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,E=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,oe=e[28]<<7|e[29]>>>25,Z=e[38]<<8|e[39]>>>24,H=e[39]<<8|e[38]>>>24,_=e[48]<<14|e[49]>>>18,k=e[49]<<14|e[48]>>>18,e[0]=p^~m&g,e[1]=y^~v&A,e[10]=I^~E&T,e[11]=S^~C&O,e[20]=R^~j&L,e[21]=D^~U&F,e[30]=q^~J&G,e[31]=V^~K&W,e[40]=te^~re&ie,e[41]=ne^~ae&oe,e[2]=m^~g&w,e[3]=v^~A&x,e[12]=E^~T&P,e[13]=C^~O&M,e[22]=j^~L&Z,e[23]=U^~F&H,e[32]=J^~G&Y,e[33]=K^~W&X,e[42]=re^~ie&se,e[43]=ae^~oe&ce,e[4]=g^~w&_,e[5]=A^~x&k,e[14]=T^~P&B,e[15]=O^~M&N,e[24]=L^~Z&z,e[25]=F^~H&Q,e[34]=G^~Y&$,e[35]=W^~X&ee,e[44]=ie^~se&ue,e[45]=oe^~ce&de,e[6]=w^~_&p,e[7]=x^~k&y,e[16]=P^~B&I,e[17]=M^~N&S,e[26]=Z^~z&R,e[27]=H^~Q&D,e[36]=Y^~$&q,e[37]=X^~ee&V,e[46]=se^~ue&te,e[47]=ce^~de&ne,e[8]=_^~p&m,e[9]=k^~y&v,e[18]=B^~I&E,e[19]=N^~S&C,e[28]=z^~R&j,e[29]=Q^~D&U,e[38]=$^~q&J,e[39]=ee^~V&K,e[48]=ue^~te&re,e[49]=de^~ne&ae,e[0]^=h[r],e[1]^=h[r+1]};if(u)e.exports=E;else{for(T=0;T>6,c[u++]=128|63&s):s<55296||s>=57344?(c[u++]=224|s>>12,c[u++]=128|s>>6&63,c[u++]=128|63&s):(s=65536+((1023&s)<<10|1023&e.charCodeAt(++f)),c[u++]=240|s>>18,c[u++]=128|s>>12&63,c[u++]=128|s>>6&63,c[u++]=128|63&s);e=c}e.length>128&&(e=new w(n,!0).update(e).array());var l=[],b=[];for(f=0;f<128;++f){var p=e[f]||0;l[f]=92^p,b[f]=54^p}w.call(this,n,r),this.update(b),this.oKeyPad=l,this.inner=!0,this.sharedMemory=r}w.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var n,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(t);if(null===e)throw new Error(t);if(d&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||d&&ArrayBuffer.isView(e)))throw new Error(t);n=!0}for(var a,i,o=0,s=e.length,c=this.blocks;o>2]|=e[o]<>2]|=a<>2]|=(192|a>>6)<>2]|=(128|63&a)<=57344?(c[i>>2]|=(224|a>>12)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<>2]|=(240|a>>18)<>2]|=(128|a>>12&63)<>2]|=(128|a>>6&63)<>2]|=(128|63&a)<=128?(this.block=c[32],this.start=i-128,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},w.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[32]=this.block,e[t>>2]|=l[3&t],this.block=e[32],t>=112&&(this.hashed||this.hash(),e[0]=this.block,e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=e[16]=e[17]=e[18]=e[19]=e[20]=e[21]=e[22]=e[23]=e[24]=e[25]=e[26]=e[27]=e[28]=e[29]=e[30]=e[31]=e[32]=0),e[30]=this.hBytes<<3|this.bytes>>>29,e[31]=this.bytes<<3,this.hash()}},w.prototype.hash=function(){var e,t,n,r,a,i,o,s,c,u,d,f,l,b,h,y,m,v,g,A,w,x,_,k,I,S=this.h0h,E=this.h0l,C=this.h1h,T=this.h1l,O=this.h2h,P=this.h2l,M=this.h3h,B=this.h3l,N=this.h4h,R=this.h4l,D=this.h5h,j=this.h5l,U=this.h6h,L=this.h6l,F=this.h7h,Z=this.h7l,H=this.blocks;for(e=32;e<160;e+=2)t=((A=H[e-30])>>>1|(w=H[e-29])<<31)^(A>>>8|w<<24)^A>>>7,n=(w>>>1|A<<31)^(w>>>8|A<<24)^(w>>>7|A<<25),r=((A=H[e-4])>>>19|(w=H[e-3])<<13)^(w>>>29|A<<3)^A>>>6,a=(w>>>19|A<<13)^(A>>>29|w<<3)^(w>>>6|A<<26),A=H[e-32],w=H[e-31],c=((x=H[e-14])>>>16)+(A>>>16)+(t>>>16)+(r>>>16)+((s=(65535&x)+(65535&A)+(65535&t)+(65535&r)+((o=((_=H[e-13])>>>16)+(w>>>16)+(n>>>16)+(a>>>16)+((i=(65535&_)+(65535&w)+(65535&n)+(65535&a))>>>16))>>>16))>>>16),H[e]=c<<16|65535&s,H[e+1]=o<<16|65535&i;var z=S,Q=E,q=C,V=T,J=O,K=P,G=M,W=B,Y=N,X=R,$=D,ee=j,te=U,ne=L,re=F,ae=Z;for(y=q&J,m=V&K,e=0;e<160;e+=8)t=(z>>>28|Q<<4)^(Q>>>2|z<<30)^(Q>>>7|z<<25),n=(Q>>>28|z<<4)^(z>>>2|Q<<30)^(z>>>7|Q<<25),r=(Y>>>14|X<<18)^(Y>>>18|X<<14)^(X>>>9|Y<<23),a=(X>>>14|Y<<18)^(X>>>18|Y<<14)^(Y>>>9|X<<23),v=(u=z&q)^z&J^y,g=(d=Q&V)^Q&K^m,k=Y&$^~Y&te,I=X&ee^~X&ne,A=H[e],w=H[e+1],A=(c=((x=p[e])>>>16)+(A>>>16)+(k>>>16)+(r>>>16)+(re>>>16)+((s=(65535&x)+(65535&A)+(65535&k)+(65535&r)+(65535&re)+((o=((_=p[e+1])>>>16)+(w>>>16)+(I>>>16)+(a>>>16)+(ae>>>16)+((i=(65535&_)+(65535&w)+(65535&I)+(65535&a)+(65535&ae))>>>16))>>>16))>>>16))<<16|65535&s,w=o<<16|65535&i,x=(c=(v>>>16)+(t>>>16)+((s=(65535&v)+(65535&t)+((o=(g>>>16)+(n>>>16)+((i=(65535&g)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,_=o<<16|65535&i,re=(c=(G>>>16)+(A>>>16)+((s=(65535&G)+(65535&A)+((o=(W>>>16)+(w>>>16)+((i=(65535&W)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s,ae=o<<16|65535&i,t=((G=(c=(x>>>16)+(A>>>16)+((s=(65535&x)+(65535&A)+((o=(_>>>16)+(w>>>16)+((i=(65535&_)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(W=o<<16|65535&i)<<4)^(W>>>2|G<<30)^(W>>>7|G<<25),n=(W>>>28|G<<4)^(G>>>2|W<<30)^(G>>>7|W<<25),r=(re>>>14|ae<<18)^(re>>>18|ae<<14)^(ae>>>9|re<<23),a=(ae>>>14|re<<18)^(ae>>>18|re<<14)^(re>>>9|ae<<23),v=(f=G&z)^G&q^u,g=(l=W&Q)^W&V^d,k=re&Y^~re&$,I=ae&X^~ae&ee,A=H[e+2],w=H[e+3],A=(c=((x=p[e+2])>>>16)+(A>>>16)+(k>>>16)+(r>>>16)+(te>>>16)+((s=(65535&x)+(65535&A)+(65535&k)+(65535&r)+(65535&te)+((o=((_=p[e+3])>>>16)+(w>>>16)+(I>>>16)+(a>>>16)+(ne>>>16)+((i=(65535&_)+(65535&w)+(65535&I)+(65535&a)+(65535&ne))>>>16))>>>16))>>>16))<<16|65535&s,w=o<<16|65535&i,x=(c=(v>>>16)+(t>>>16)+((s=(65535&v)+(65535&t)+((o=(g>>>16)+(n>>>16)+((i=(65535&g)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,_=o<<16|65535&i,te=(c=(J>>>16)+(A>>>16)+((s=(65535&J)+(65535&A)+((o=(K>>>16)+(w>>>16)+((i=(65535&K)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s,ne=o<<16|65535&i,t=((J=(c=(x>>>16)+(A>>>16)+((s=(65535&x)+(65535&A)+((o=(_>>>16)+(w>>>16)+((i=(65535&_)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(K=o<<16|65535&i)<<4)^(K>>>2|J<<30)^(K>>>7|J<<25),n=(K>>>28|J<<4)^(J>>>2|K<<30)^(J>>>7|K<<25),r=(te>>>14|ne<<18)^(te>>>18|ne<<14)^(ne>>>9|te<<23),a=(ne>>>14|te<<18)^(ne>>>18|te<<14)^(te>>>9|ne<<23),v=(b=J&G)^J&z^f,g=(h=K&W)^K&Q^l,k=te&re^~te&Y,I=ne&ae^~ne&X,A=H[e+4],w=H[e+5],A=(c=((x=p[e+4])>>>16)+(A>>>16)+(k>>>16)+(r>>>16)+($>>>16)+((s=(65535&x)+(65535&A)+(65535&k)+(65535&r)+(65535&$)+((o=((_=p[e+5])>>>16)+(w>>>16)+(I>>>16)+(a>>>16)+(ee>>>16)+((i=(65535&_)+(65535&w)+(65535&I)+(65535&a)+(65535&ee))>>>16))>>>16))>>>16))<<16|65535&s,w=o<<16|65535&i,x=(c=(v>>>16)+(t>>>16)+((s=(65535&v)+(65535&t)+((o=(g>>>16)+(n>>>16)+((i=(65535&g)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,_=o<<16|65535&i,$=(c=(q>>>16)+(A>>>16)+((s=(65535&q)+(65535&A)+((o=(V>>>16)+(w>>>16)+((i=(65535&V)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s,ee=o<<16|65535&i,t=((q=(c=(x>>>16)+(A>>>16)+((s=(65535&x)+(65535&A)+((o=(_>>>16)+(w>>>16)+((i=(65535&_)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s)>>>28|(V=o<<16|65535&i)<<4)^(V>>>2|q<<30)^(V>>>7|q<<25),n=(V>>>28|q<<4)^(q>>>2|V<<30)^(q>>>7|V<<25),r=($>>>14|ee<<18)^($>>>18|ee<<14)^(ee>>>9|$<<23),a=(ee>>>14|$<<18)^(ee>>>18|$<<14)^($>>>9|ee<<23),v=(y=q&J)^q&G^b,g=(m=V&K)^V&W^h,k=$&te^~$&re,I=ee&ne^~ee&ae,A=H[e+6],w=H[e+7],A=(c=((x=p[e+6])>>>16)+(A>>>16)+(k>>>16)+(r>>>16)+(Y>>>16)+((s=(65535&x)+(65535&A)+(65535&k)+(65535&r)+(65535&Y)+((o=((_=p[e+7])>>>16)+(w>>>16)+(I>>>16)+(a>>>16)+(X>>>16)+((i=(65535&_)+(65535&w)+(65535&I)+(65535&a)+(65535&X))>>>16))>>>16))>>>16))<<16|65535&s,w=o<<16|65535&i,x=(c=(v>>>16)+(t>>>16)+((s=(65535&v)+(65535&t)+((o=(g>>>16)+(n>>>16)+((i=(65535&g)+(65535&n))>>>16))>>>16))>>>16))<<16|65535&s,_=o<<16|65535&i,Y=(c=(z>>>16)+(A>>>16)+((s=(65535&z)+(65535&A)+((o=(Q>>>16)+(w>>>16)+((i=(65535&Q)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s,X=o<<16|65535&i,z=(c=(x>>>16)+(A>>>16)+((s=(65535&x)+(65535&A)+((o=(_>>>16)+(w>>>16)+((i=(65535&_)+(65535&w))>>>16))>>>16))>>>16))<<16|65535&s,Q=o<<16|65535&i;c=(S>>>16)+(z>>>16)+((s=(65535&S)+(65535&z)+((o=(E>>>16)+(Q>>>16)+((i=(65535&E)+(65535&Q))>>>16))>>>16))>>>16),this.h0h=c<<16|65535&s,this.h0l=o<<16|65535&i,c=(C>>>16)+(q>>>16)+((s=(65535&C)+(65535&q)+((o=(T>>>16)+(V>>>16)+((i=(65535&T)+(65535&V))>>>16))>>>16))>>>16),this.h1h=c<<16|65535&s,this.h1l=o<<16|65535&i,c=(O>>>16)+(J>>>16)+((s=(65535&O)+(65535&J)+((o=(P>>>16)+(K>>>16)+((i=(65535&P)+(65535&K))>>>16))>>>16))>>>16),this.h2h=c<<16|65535&s,this.h2l=o<<16|65535&i,c=(M>>>16)+(G>>>16)+((s=(65535&M)+(65535&G)+((o=(B>>>16)+(W>>>16)+((i=(65535&B)+(65535&W))>>>16))>>>16))>>>16),this.h3h=c<<16|65535&s,this.h3l=o<<16|65535&i,c=(N>>>16)+(Y>>>16)+((s=(65535&N)+(65535&Y)+((o=(R>>>16)+(X>>>16)+((i=(65535&R)+(65535&X))>>>16))>>>16))>>>16),this.h4h=c<<16|65535&s,this.h4l=o<<16|65535&i,c=(D>>>16)+($>>>16)+((s=(65535&D)+(65535&$)+((o=(j>>>16)+(ee>>>16)+((i=(65535&j)+(65535&ee))>>>16))>>>16))>>>16),this.h5h=c<<16|65535&s,this.h5l=o<<16|65535&i,c=(U>>>16)+(te>>>16)+((s=(65535&U)+(65535&te)+((o=(L>>>16)+(ne>>>16)+((i=(65535&L)+(65535&ne))>>>16))>>>16))>>>16),this.h6h=c<<16|65535&s,this.h6l=o<<16|65535&i,c=(F>>>16)+(re>>>16)+((s=(65535&F)+(65535&re)+((o=(Z>>>16)+(ae>>>16)+((i=(65535&Z)+(65535&ae))>>>16))>>>16))>>>16),this.h7h=c<<16|65535&s,this.h7l=o<<16|65535&i},w.prototype.hex=function(){this.finalize();var e=this.h0h,t=this.h0l,n=this.h1h,r=this.h1l,a=this.h2h,i=this.h2l,o=this.h3h,s=this.h3l,c=this.h4h,u=this.h4l,d=this.h5h,l=this.h5l,b=this.h6h,p=this.h6l,h=this.h7h,y=this.h7l,m=this.bits,v=f[e>>28&15]+f[e>>24&15]+f[e>>20&15]+f[e>>16&15]+f[e>>12&15]+f[e>>8&15]+f[e>>4&15]+f[15&e]+f[t>>28&15]+f[t>>24&15]+f[t>>20&15]+f[t>>16&15]+f[t>>12&15]+f[t>>8&15]+f[t>>4&15]+f[15&t]+f[n>>28&15]+f[n>>24&15]+f[n>>20&15]+f[n>>16&15]+f[n>>12&15]+f[n>>8&15]+f[n>>4&15]+f[15&n]+f[r>>28&15]+f[r>>24&15]+f[r>>20&15]+f[r>>16&15]+f[r>>12&15]+f[r>>8&15]+f[r>>4&15]+f[15&r]+f[a>>28&15]+f[a>>24&15]+f[a>>20&15]+f[a>>16&15]+f[a>>12&15]+f[a>>8&15]+f[a>>4&15]+f[15&a]+f[i>>28&15]+f[i>>24&15]+f[i>>20&15]+f[i>>16&15]+f[i>>12&15]+f[i>>8&15]+f[i>>4&15]+f[15&i]+f[o>>28&15]+f[o>>24&15]+f[o>>20&15]+f[o>>16&15]+f[o>>12&15]+f[o>>8&15]+f[o>>4&15]+f[15&o];return m>=256&&(v+=f[s>>28&15]+f[s>>24&15]+f[s>>20&15]+f[s>>16&15]+f[s>>12&15]+f[s>>8&15]+f[s>>4&15]+f[15&s]),m>=384&&(v+=f[c>>28&15]+f[c>>24&15]+f[c>>20&15]+f[c>>16&15]+f[c>>12&15]+f[c>>8&15]+f[c>>4&15]+f[15&c]+f[u>>28&15]+f[u>>24&15]+f[u>>20&15]+f[u>>16&15]+f[u>>12&15]+f[u>>8&15]+f[u>>4&15]+f[15&u]+f[d>>28&15]+f[d>>24&15]+f[d>>20&15]+f[d>>16&15]+f[d>>12&15]+f[d>>8&15]+f[d>>4&15]+f[15&d]+f[l>>28&15]+f[l>>24&15]+f[l>>20&15]+f[l>>16&15]+f[l>>12&15]+f[l>>8&15]+f[l>>4&15]+f[15&l]),512==m&&(v+=f[b>>28&15]+f[b>>24&15]+f[b>>20&15]+f[b>>16&15]+f[b>>12&15]+f[b>>8&15]+f[b>>4&15]+f[15&b]+f[p>>28&15]+f[p>>24&15]+f[p>>20&15]+f[p>>16&15]+f[p>>12&15]+f[p>>8&15]+f[p>>4&15]+f[15&p]+f[h>>28&15]+f[h>>24&15]+f[h>>20&15]+f[h>>16&15]+f[h>>12&15]+f[h>>8&15]+f[h>>4&15]+f[15&h]+f[y>>28&15]+f[y>>24&15]+f[y>>20&15]+f[y>>16&15]+f[y>>12&15]+f[y>>8&15]+f[y>>4&15]+f[15&y]),v},w.prototype.toString=w.prototype.hex,w.prototype.digest=function(){this.finalize();var e=this.h0h,t=this.h0l,n=this.h1h,r=this.h1l,a=this.h2h,i=this.h2l,o=this.h3h,s=this.h3l,c=this.h4h,u=this.h4l,d=this.h5h,f=this.h5l,l=this.h6h,b=this.h6l,p=this.h7h,h=this.h7l,y=this.bits,m=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,a>>24&255,a>>16&255,a>>8&255,255&a,i>>24&255,i>>16&255,i>>8&255,255&i,o>>24&255,o>>16&255,o>>8&255,255&o];return y>=256&&m.push(s>>24&255,s>>16&255,s>>8&255,255&s),y>=384&&m.push(c>>24&255,c>>16&255,c>>8&255,255&c,u>>24&255,u>>16&255,u>>8&255,255&u,d>>24&255,d>>16&255,d>>8&255,255&d,f>>24&255,f>>16&255,f>>8&255,255&f),512==y&&m.push(l>>24&255,l>>16&255,l>>8&255,255&l,b>>24&255,b>>16&255,b>>8&255,255&b,p>>24&255,p>>16&255,p>>8&255,255&p,h>>24&255,h>>16&255,h>>8&255,255&h),m},w.prototype.array=w.prototype.digest,w.prototype.arrayBuffer=function(){this.finalize();var e=this.bits,t=new ArrayBuffer(e/8),n=new DataView(t);return n.setUint32(0,this.h0h),n.setUint32(4,this.h0l),n.setUint32(8,this.h1h),n.setUint32(12,this.h1l),n.setUint32(16,this.h2h),n.setUint32(20,this.h2l),n.setUint32(24,this.h3h),e>=256&&n.setUint32(28,this.h3l),e>=384&&(n.setUint32(32,this.h4h),n.setUint32(36,this.h4l),n.setUint32(40,this.h5h),n.setUint32(44,this.h5l)),512==e&&(n.setUint32(48,this.h6h),n.setUint32(52,this.h6l),n.setUint32(56,this.h7h),n.setUint32(60,this.h7l)),t},w.prototype.clone=function(){var e=new w(this.bits,!1);return this.copyTo(e),e},w.prototype.copyTo=function(e){var t=0,n=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(t=0;t>>2]|=r[o]<<24-o%4*8;this.i=i,this.u=a}return Object.defineProperty(e.prototype,"nSigBytes",{get:function(){return this.u},set:function(e){this.u=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"words",{get:function(){return this.i},enumerable:!1,configurable:!0}),e.prototype.toString=function(e){return e?e.stringify(this):function(e){for(var t=e.nSigBytes,n=e.words,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")}(this)},e.prototype.toUint8Array=function(){for(var e=this.i,t=this.u,n=new Uint8Array(t),r=0;r>>2]>>>24-r%4*8&255;return n},e.prototype.concat=function(e){var t=e.words.slice(),n=e.nSigBytes;if(this.clamp(),this.u%4)for(var r=0;r>>2]>>>24-r%4*8&255;this.i[this.u+r>>>2]|=a<<24-(this.u+r)%4*8}else for(r=0;r>>2]=t[r>>>2];return this.u+=n,this},e.prototype.clamp=function(){var e=this.u;this.i[e>>>2]&=4294967295<<32-e%4*8,this.i.length=Math.ceil(e/4)},e.prototype.clone=function(){return new e(this.i.slice(),this.u)},e.random=function(t){for(var n=[],r=0;r>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,o=0;o<4&&a+.75*o>>6*(3-o)&63));var s=c.charAt(64);if(s)for(;r.length%4;)r.push(s);return r.join("")},parse:function(e){var t=e.length,n=c.charAt(64);if(n){var r=e.indexOf(n);-1!==r&&(t=r)}for(var a=[],i=0,o=0;o>>6-o%4*2;a[i>>>2]|=d<<24-i%4*8,i++}return new s(a,i)}};return t}()},10041:function(e,t,n){e.exports=function(){"use strict";var e={3354:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(5720),a=n(9054),i=function(){function e(t,n){if(Array.isArray(t)||!t)return this.t=Array.isArray(t)?t:[],void(this.i="number"==typeof n?n:4*this.t.length);if(t instanceof e)return this.t=t.words.slice(),void(this.i=t.nSigBytes);var r;try{t instanceof ArrayBuffer?r=new Uint8Array(t):(t instanceof Uint8Array||t instanceof Int8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}catch(e){throw new Error("Invalid argument")}if(!r)throw new Error("Invalid argument");for(var a=r.byteLength,i=[],o=0;o>>2]|=r[o]<<24-o%4*8;this.t=i,this.i=a}return Object.defineProperty(e.prototype,"nSigBytes",{get:function(){return this.i},set:function(e){this.i=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"words",{get:function(){return this.t},enumerable:!1,configurable:!0}),e.prototype.toString=function(e){return e?e.stringify(this):r.p.stringify(this)},e.prototype.toUint8Array=function(){for(var e=this.t,t=this.i,n=new Uint8Array(t),r=0;r>>2]>>>24-r%4*8&255;return n},e.prototype.concat=function(e){var t=e.words.slice(),n=e.nSigBytes;if(this.clamp(),this.i%4)for(var r=0;r>>2]>>>24-r%4*8&255;this.t[this.i+r>>>2]|=a<<24-(this.i+r)%4*8}else for(r=0;r>>2]=t[r>>>2];return this.i+=n,this},e.prototype.clamp=function(){var e=this.i;this.t[e>>>2]&=4294967295<<32-e%4*8,this.t.length=Math.ceil(e/4)},e.prototype.clone=function(){return new e(this.t.slice(),this.i)},e.random=function(t){for(var n=[],r=0;r"===e?i>t:">="===e?i>=t:i===t))}},5720:function(e,t,n){n.d(t,{p:function(){return a}});var r=n(3354),a={stringify:function(e){for(var t=e.nSigBytes,n=e.words,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){var t=e.length;if(t%2!=0)throw new Error("Hex string count must be even");if(!/^[a-fA-F0-9]+$/.test(e))throw new Error("Invalid Hex string: "+e);for(var n=[],a=0;a>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new r.e(n,t/2)}}},8702:function(e,t,n){n.d(t,{m:function(){return a}});var r=n(3354),a={stringify:function(e){for(var t=e.nSigBytes,n=e.words,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new r.e(n,t)}}},4768:function(e,t,n){n.d(t,{d:function(){return a}});var r=n(8702),a={stringify:function(e){try{return decodeURIComponent(escape(r.m.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return r.m.parse(unescape(encodeURIComponent(e)))}}},9054:function(e,t,r){r.d(t,{M:function(){return i}});var a=r(1756),i=function(){if("undefined"!=typeof window){var e=window.crypto||window.msCrypto;if(!e){if((0,a.w)("<",11))return console.warn("IE <= 10 uses insecure random generator. Please consider to use IE11 or another modern browser"),function(){return Math.floor(512*Math.random())%256};throw new Error("Crypto module not found")}return function(){return e.getRandomValues(new Uint32Array(1))[0]}}return void 0!==r.g&&r.g.crypto?function(){return r.g.crypto.randomBytes(4).readInt32LE()}:function(){return n(85114).randomBytes(4).readInt32LE()}}()}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"S",{value:!0})};var a={};return function(){r.r(a),r.d(a,{RIPEMD160:function(){return v}});var e,t=r(1868),n=r(3354),i=(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)},function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),o=new n.e([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=new n.e([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=new n.e([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=new n.e([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=new n.e([0,1518500249,1859775393,2400959708,2840853838]),f=new n.e([1352829926,1548603684,1836072691,2053994217,0]);function l(e,t,n){return e^t^n}function b(e,t,n){return e&t|~e&n}function p(e,t,n){return(e|~t)^n}function h(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function m(e,t){return e<>>32-t}var v=function(e){function t(t){var r=e.call(this,t)||this;return r.N=new n.e([1732584193,4023233417,2562383102,271733878,3285377520]),r.v=t,t&&void 0!==t.hash&&(r.N=t.hash.clone()),r}return i(t,e),t.prototype.U=function(){this.N=new n.e([1732584193,4023233417,2562383102,271733878,3285377520])},t.prototype.O=function(e,t){for(var n=0;n<16;n++){var r=t+n,a=e[r];e[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var i,v,g,A,w,x,_,k,I,S,E,C=this.N.words,T=d.words,O=f.words,P=o.words,M=s.words,B=c.words,N=u.words;for(x=i=C[0],_=v=C[1],k=g=C[2],I=A=C[3],S=w=C[4],n=0;n<80;n+=1)E=i+e[t+P[n]]|0,E+=n<16?l(v,g,A)+T[0]:n<32?b(v,g,A)+T[1]:n<48?p(v,g,A)+T[2]:n<64?h(v,g,A)+T[3]:y(v,g,A)+T[4],E=(E=m(E|=0,B[n]))+w|0,i=w,w=A,A=m(g,10),g=v,v=E,E=x+e[t+M[n]]|0,E+=n<16?y(_,k,I)+O[0]:n<32?h(_,k,I)+O[1]:n<48?p(_,k,I)+O[2]:n<64?b(_,k,I)+O[3]:l(_,k,I)+O[4],E=(E=m(E|=0,N[n]))+S|0,x=S,S=I,I=m(k,10),k=_,_=E;E=C[1]+g+I|0,C[1]=C[2]+A+S|0,C[2]=C[3]+w+x|0,C[3]=C[4]+i+_|0,C[4]=C[0]+v+k|0,C[0]=E},t.prototype._=function(){var e=this.l,t=e.words,n=8*this.j,r=8*e.nSigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.nSigBytes=4*(t.length+1),this.I();for(var a=this.N,i=a.words,o=0;o<5;o++){var s=i[o];i[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return a},t.prototype.clone=function(){return new t({hash:this.N,blockSize:this.h,data:this.l,nBytes:this.j})},t.hash=function(e,n){return new t(n).finalize(e)},t}(t.P)}(),a}()},72495:function(e,t,n){e.exports=function(){"use strict";var e={3354:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(5720),a=n(9054),i=function(){function e(t,n){if(Array.isArray(t)||!t)return this.t=Array.isArray(t)?t:[],void(this.i="number"==typeof n?n:4*this.t.length);if(t instanceof e)return this.t=t.words.slice(),void(this.i=t.nSigBytes);var r;try{t instanceof ArrayBuffer?r=new Uint8Array(t):(t instanceof Uint8Array||t instanceof Int8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}catch(e){throw new Error("Invalid argument")}if(!r)throw new Error("Invalid argument");for(var a=r.byteLength,i=[],o=0;o>>2]|=r[o]<<24-o%4*8;this.t=i,this.i=a}return Object.defineProperty(e.prototype,"nSigBytes",{get:function(){return this.i},set:function(e){this.i=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"words",{get:function(){return this.t},enumerable:!1,configurable:!0}),e.prototype.toString=function(e){return e?e.stringify(this):r.p.stringify(this)},e.prototype.toUint8Array=function(){for(var e=this.t,t=this.i,n=new Uint8Array(t),r=0;r>>2]>>>24-r%4*8&255;return n},e.prototype.concat=function(e){var t=e.words.slice(),n=e.nSigBytes;if(this.clamp(),this.i%4)for(var r=0;r>>2]>>>24-r%4*8&255;this.t[this.i+r>>>2]|=a<<24-(this.i+r)%4*8}else for(r=0;r>>2]=t[r>>>2];return this.i+=n,this},e.prototype.clamp=function(){var e=this.i;this.t[e>>>2]&=4294967295<<32-e%4*8,this.t.length=Math.ceil(e/4)},e.prototype.clone=function(){return new e(this.t.slice(),this.i)},e.random=function(t){for(var n=[],r=0;r"===e?i>t:">="===e?i>=t:i===t))}},5720:function(e,t,n){n.d(t,{p:function(){return a}});var r=n(3354),a={stringify:function(e){for(var t=e.nSigBytes,n=e.words,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){var t=e.length;if(t%2!=0)throw new Error("Hex string count must be even");if(!/^[a-fA-F0-9]+$/.test(e))throw new Error("Invalid Hex string: "+e);for(var n=[],a=0;a>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new r.e(n,t/2)}}},8702:function(e,t,n){n.d(t,{m:function(){return a}});var r=n(3354),a={stringify:function(e){for(var t=e.nSigBytes,n=e.words,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new r.e(n,t)}}},4768:function(e,t,n){n.d(t,{d:function(){return a}});var r=n(8702),a={stringify:function(e){try{return decodeURIComponent(escape(r.m.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return r.m.parse(unescape(encodeURIComponent(e)))}}},9054:function(e,t,r){r.d(t,{M:function(){return i}});var a=r(1756),i=function(){if("undefined"!=typeof window){var e=window.crypto||window.msCrypto;if(!e){if((0,a.w)("<",11))return console.warn("IE <= 10 uses insecure random generator. Please consider to use IE11 or another modern browser"),function(){return Math.floor(512*Math.random())%256};throw new Error("Crypto module not found")}return function(){return e.getRandomValues(new Uint32Array(1))[0]}}return void 0!==r.g&&r.g.crypto?function(){return r.g.crypto.randomBytes(4).readInt32LE()}:function(){return n(85114).randomBytes(4).readInt32LE()}}()}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"S",{value:!0})};var a={};return function(){r.r(a),r.d(a,{SHA256:function(){return f}});var e,t=r(1868),n=r(3354),i=(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)},function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),o=[],s=[];function c(e){for(var t=Math.sqrt(e),n=2;n<=t;n++)if(!(e%n))return!1;return!0}function u(e){return 4294967296*(e-(0|e))|0}!function(){for(var e=2,t=0;t<64;)c(e)&&(t<8&&(o[t]=u(Math.pow(e,.5))),s[t]=u(Math.pow(e,1/3)),t++),e++}();var d=[],f=function(e){function t(t){var r=e.call(this,t)||this;return r.N=new n.e(o.slice(0)),r.v=t,t&&void 0!==t.hash&&(r.N=t.hash.clone()),r}return i(t,e),t.prototype.U=function(){this.N=new n.e(o.slice(0))},t.prototype.I=function(e,t){for(var n=this.N.words,r=n[0],a=n[1],i=n[2],o=n[3],c=n[4],u=n[5],f=n[6],l=n[7],b=0;b<64;b++){if(b<16)d[b]=0|e[t+b];else{var p=d[b-15],h=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,y=d[b-2],m=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;d[b]=h+d[b-7]+m+d[b-16]}var v=r&a^r&i^a&i,g=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),A=l+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&f)+s[b]+d[b];l=f,f=u,u=c,c=o+A|0,o=i,i=a,a=r,r=A+(g+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+i|0,n[3]=n[3]+o|0,n[4]=n[4]+c|0,n[5]=n[5]+u|0,n[6]=n[6]+f|0,n[7]=n[7]+l|0},t.prototype._=function(){var e=this.l.words,t=8*this.A,n=8*this.l.nSigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(t/4294967296),e[15+(n+64>>>9<<4)]=t,this.l.nSigBytes=4*e.length,this.O(),this.N},t.prototype.clone=function(){return new t({hash:this.N,blockSize:this.h,data:this.l,nBytes:this.A})},t.hash=function(e,n){return new t(n).finalize(e)},t}(t.P)}(),a}()},33193:function(e,t,n){e.exports=function(){"use strict";var e={9691:function(e,t,n){n.d(t,{AES:function(){return w}});var r,a=n(9456),i=n(787),o=n(5693),s=n(9109),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n>>8^255&a^99,d[n]=a,f[a]=n;var i=e[n],o=e[i],s=e[o],c=257*e[a]^16843008*a;l[n]=c<<24|c>>>8,b[n]=c<<16|c>>>16,p[n]=c<<8|c>>>24,h[n]=c,c=16843009*s^65537*o^257*i^16843008*n,y[a]=c<<24|c>>>8,m[a]=c<<16|c>>>16,v[a]=c<<8|c>>>24,g[a]=c,n?(n=i^e[e[e[s^i]]],r^=e[e[r]]):n=r=1}}();var A=[0,1,2,4,8,16,32,64,128,27,54],w=function(e){function t(t){var n=e.call(this,t)||this;return n.u=0,n.h=[],n.v=[],n.O=t,n.A(),n}return c(t,e),t.prototype.A=function(){var e;if(!this.u||this.k!==this.H){for(var t=this.k=this.H,n=t.words,r=t.nSigBytes/4,a=4*((this.u=r+6)+1),i=this.h=[],o=0;o6&&o%r==4&&(e=d[e>>>24]<<24|d[e>>>16&255]<<16|d[e>>>8&255]<<8|d[255&e]):(e=d[(e=e<<8|e>>>24)>>>24]<<24|d[e>>>16&255]<<16|d[e>>>8&255]<<8|d[255&e],e^=A[o/r|0]<<24),i[o]=i[o-r]^e);this.v=[];for(var s=0;s>>24]]^m[d[e>>>16&255]]^v[d[e>>>8&255]]^g[d[255&e]]}},t.prototype.encryptBlock=function(e,t){this.B(e,t,this.h,l,b,p,h,d)},t.prototype.decryptBlock=function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this.B(e,t,this.v,y,m,v,g,f),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},t.prototype.B=function(e,t,n,r,a,i,o,s){for(var c=this.u,u=e[t]^n[0],d=e[t+1]^n[1],f=e[t+2]^n[2],l=e[t+3]^n[3],b=4,p=1;p>>24]^a[d>>>16&255]^i[f>>>8&255]^o[255&l]^n[b++],y=r[d>>>24]^a[f>>>16&255]^i[l>>>8&255]^o[255&u]^n[b++],m=r[f>>>24]^a[l>>>16&255]^i[u>>>8&255]^o[255&d]^n[b++],v=r[l>>>24]^a[u>>>16&255]^i[d>>>8&255]^o[255&f]^n[b++];u=h,d=y,f=m,l=v}var g=(s[u>>>24]<<24|s[d>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^n[b++],A=(s[d>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&u])^n[b++],w=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[u>>>8&255]<<8|s[255&d])^n[b++],x=(s[l>>>24]<<24|s[u>>>16&255]<<16|s[d>>>8&255]<<8|s[255&f])^n[b++];e[t]=g,e[t+1]=A,e[t+2]=w,e[t+3]=x},t.createEncryptor=function(e,n){return new t(u(u({},n=void 0===n?{}:n),{key:e,transformMode:a.t.ENC_TRANSFORM_MODE}))},t.createDecryptor=function(e,n){return new t(u(u({},n=void 0===n?{}:n),{key:e,transformMode:a.t.DEC_TRANSFORM_MODE}))},t.encrypt=function(e,n,r){if("string"==typeof n)return o.E.encrypt(t,e,n,r);if(n.nSigBytes%4!=0)throw new Error("Key size must be multiple of 32bit/4byte/1word");return s.D.encrypt(t,e,n,r)},t.decrypt=function(e,n,r){if("string"==typeof n)return o.E.decrypt(t,e,n,r);if(n.nSigBytes%4!=0)throw new Error("Key size must be multiple of 32bit/4byte/1word");return s.D.decrypt(t,e,n,r)},t.keySize=8,t}(i.G)},3967:function(e,t,n){n.d(t,{CBCMAC:function(){return s}});var r=n(4768),a=n(3354),i=n(9691),o=n(3664);function s(e,t,n,s,c,u){var d=u&&u.Cipher?u.Cipher:i.AES,f="string"==typeof n?r.d.parse(n):n,l=s||new a.e([0,0]),b="string"==typeof t?r.d.parse(t):t,p="string"==typeof e?r.d.parse(e):e,h=c||16;return o.K.mac(d,f,l,b,p,h)}},9910:function(e,t,n){n.d(t,{DES:function(){return h}});var r,a=n(787),i=n(9456),o=n(5693),s=n(9109),c=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n>>5]>>>31-r%32&1}for(var a=this.I=[],i=0;i<16;i++){var o=a[i]=[],s=l[i];for(n=0;n<24;n++)o[n/6|0]|=t[(f[n]-1+s)%28]<<31-n%6,o[4+(n/6|0)]|=t[28+(f[n+24]-1+s)%28]<<31-n%6;for(o[0]=o[0]<<1|o[0]>>>31,n=1;n<7;n++)o[n]=o[n]>>>4*(n-1)+3;o[7]=o[7]<<5|o[7]>>>27}for(this.U=[],n=0;n<16;n++)this.U[n]=a[15-n]},t.prototype.encryptBlock=function(e,t){this.R(e,t,this.I)},t.prototype.decryptBlock=function(e,t){this.R(e,t,this.U)},t.prototype.R=function(e,t,n){this.L=e[t],this.F=e[t+1],this.X(4,252645135),this.X(16,65535),this.Z(2,858993459),this.Z(8,16711935),this.X(1,1431655765);for(var r=0;r<16;r++){for(var a=n[r],i=this.L,o=this.F,s=0,c=0;c<8;c++){var u=(o^a[c])&p[c];s|=b[c][u>>>0]}this.L=o,this.F=i^s}var d=this.L;this.L=this.F,this.F=d,this.X(1,1431655765),this.Z(8,16711935),this.Z(2,858993459),this.X(16,65535),this.X(4,252645135),e[t]=this.L,e[t+1]=this.F},t.prototype.X=function(e,t){var n=(this.L>>>e^this.F)&t;this.F^=n,this.L^=n<>>e^this.L)&t;this.L^=n,this.F^=n<192.");var t=e.slice(0,2),n=e.length<4?e.slice(0,2):e.slice(2,4),r=e.length<6?e.slice(0,2):e.slice(4,6);return[s.DES.createEncryptor(new c.e(t)),s.DES.createEncryptor(new c.e(n)),s.DES.createEncryptor(new c.e(r))]},t.prototype.A=function(){var e=this.J();this.Y=e[0],this.$=e[1],this.nn=e[2]},t.prototype.encryptBlock=function(e,t){this.Y.encryptBlock(e,t),this.$.decryptBlock(e,t),this.nn.encryptBlock(e,t)},t.prototype.decryptBlock=function(e,t){this.nn.decryptBlock(e,t),this.$.encryptBlock(e,t),this.Y.decryptBlock(e,t)},t.createEncryptor=function(e,n){return new t(f(f({},n=void 0===n?{}:n),{key:e,transformMode:o.t.ENC_TRANSFORM_MODE}))},t.createDecryptor=function(e,n){return new t(f(f({},n=void 0===n?{}:n),{key:e,transformMode:o.t.DEC_TRANSFORM_MODE}))},t.encrypt=function(e,n,r){return"string"==typeof n?u.E.encrypt(t,e,n,r):a.D.encrypt(t,e,n,r)},t.decrypt=function(e,n,r){return"string"==typeof n?u.E.decrypt(t,e,n,r):a.D.decrypt(t,e,n,r)},t.keySize=6,t.ivSize=2,t}(i.G)},7753:function(e,t,n){n.d(t,{GMAC:function(){return s}});var r=n(4768),a=n(3354),i=n(9691),o=n(5607);function s(e,t,n,s,c){var u="string"==typeof e?r.d.parse(e):e,d=n||new a.e([0,0,0,0]),f=c&&c.Cipher?c.Cipher:i.AES,l="string"==typeof t?r.d.parse(t):t,b=s||16;return o.V.mac(f,l,d,u,void 0,b)}},6367:function(e,t,n){n.d(t,{Hmac:function(){return a}});var r=n(4768),a=function(){function e(e,t){this.tn=e,"string"==typeof t&&(t=r.d.parse(t));var n=e.blockSize,a=4*n;t.nSigBytes>a&&(t=e.finalize(t)),t.clamp();for(var i=this.rn=t.clone(),o=this.en=t.clone(),s=i.words,c=o.words,u=0;u>>32-i)+t}function u(e,t,n,r,a,i,o){var s=e+(t&r|n&~r)+a+o;return(s<>>32-i)+t}function d(e,t,n,r,a,i,o){var s=e+(t^n^r)+a+o;return(s<>>32-i)+t}function f(e,t,n,r,a,i,o){var s=e+(n^(t|~r))+a+o;return(s<>>32-i)+t}!function(){for(var e=0;e<64;e++)s[e]=4294967296*Math.abs(Math.sin(e+1))|0}();var l=function(e){function t(t){var n=e.call(this,t)||this;return n.on=new a.e([1732584193,4023233417,2562383102,271733878]),t&&void 0!==t.hash&&(n.on=t.hash.clone()),n}return o(t,e),t.prototype.A=function(){this.on=new a.e([1732584193,4023233417,2562383102,271733878])},t.prototype.un=function(e,t){for(var n=0;n<16;n++){var r=t+n,a=e[r];e[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var i=this.on.words,o=e[t],l=e[t+1],b=e[t+2],p=e[t+3],h=e[t+4],y=e[t+5],m=e[t+6],v=e[t+7],g=e[t+8],A=e[t+9],w=e[t+10],x=e[t+11],_=e[t+12],k=e[t+13],I=e[t+14],S=e[t+15],E=i[0],C=i[1],T=i[2],O=i[3];E=c(E,C,T,O,o,7,s[0]),O=c(O,E,C,T,l,12,s[1]),T=c(T,O,E,C,b,17,s[2]),C=c(C,T,O,E,p,22,s[3]),E=c(E,C,T,O,h,7,s[4]),O=c(O,E,C,T,y,12,s[5]),T=c(T,O,E,C,m,17,s[6]),C=c(C,T,O,E,v,22,s[7]),E=c(E,C,T,O,g,7,s[8]),O=c(O,E,C,T,A,12,s[9]),T=c(T,O,E,C,w,17,s[10]),C=c(C,T,O,E,x,22,s[11]),E=c(E,C,T,O,_,7,s[12]),O=c(O,E,C,T,k,12,s[13]),T=c(T,O,E,C,I,17,s[14]),E=u(E,C=c(C,T,O,E,S,22,s[15]),T,O,l,5,s[16]),O=u(O,E,C,T,m,9,s[17]),T=u(T,O,E,C,x,14,s[18]),C=u(C,T,O,E,o,20,s[19]),E=u(E,C,T,O,y,5,s[20]),O=u(O,E,C,T,w,9,s[21]),T=u(T,O,E,C,S,14,s[22]),C=u(C,T,O,E,h,20,s[23]),E=u(E,C,T,O,A,5,s[24]),O=u(O,E,C,T,I,9,s[25]),T=u(T,O,E,C,p,14,s[26]),C=u(C,T,O,E,g,20,s[27]),E=u(E,C,T,O,k,5,s[28]),O=u(O,E,C,T,b,9,s[29]),T=u(T,O,E,C,v,14,s[30]),E=d(E,C=u(C,T,O,E,_,20,s[31]),T,O,y,4,s[32]),O=d(O,E,C,T,g,11,s[33]),T=d(T,O,E,C,x,16,s[34]),C=d(C,T,O,E,I,23,s[35]),E=d(E,C,T,O,l,4,s[36]),O=d(O,E,C,T,h,11,s[37]),T=d(T,O,E,C,v,16,s[38]),C=d(C,T,O,E,w,23,s[39]),E=d(E,C,T,O,k,4,s[40]),O=d(O,E,C,T,o,11,s[41]),T=d(T,O,E,C,p,16,s[42]),C=d(C,T,O,E,m,23,s[43]),E=d(E,C,T,O,A,4,s[44]),O=d(O,E,C,T,_,11,s[45]),T=d(T,O,E,C,S,16,s[46]),E=f(E,C=d(C,T,O,E,b,23,s[47]),T,O,o,6,s[48]),O=f(O,E,C,T,v,10,s[49]),T=f(T,O,E,C,I,15,s[50]),C=f(C,T,O,E,y,21,s[51]),E=f(E,C,T,O,_,6,s[52]),O=f(O,E,C,T,p,10,s[53]),T=f(T,O,E,C,w,15,s[54]),C=f(C,T,O,E,l,21,s[55]),E=f(E,C,T,O,g,6,s[56]),O=f(O,E,C,T,S,10,s[57]),T=f(T,O,E,C,m,15,s[58]),C=f(C,T,O,E,k,21,s[59]),E=f(E,C,T,O,h,6,s[60]),O=f(O,E,C,T,x,10,s[61]),T=f(T,O,E,C,b,15,s[62]),C=f(C,T,O,E,A,21,s[63]),i[0]=i[0]+E|0,i[1]=i[1]+C|0,i[2]=i[2]+T|0,i[3]=i[3]+O|0},t.prototype.fn=function(){var e=this.cn,t=e.words,n=8*this.sn,r=8*e.nSigBytes;t[r>>>5]|=128<<24-r%32;var a=Math.floor(n/4294967296),i=n;t[15+(r+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t[14+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),e.nSigBytes=4*(t.length+1),this.an();for(var o=this.on,s=o.words,c=0;c<4;c++){var u=s[c];s[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return o},t.prototype.clone=function(){return new t({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e){return(new t).finalize(e)},t}(i.P)},4615:function(e,t,n){n.d(t,{RC4:function(){return u}});var r,a=n(30),i=n(5693),o=n(9109),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n>>2]>>>24-i%4*8&255;a=(a+this.S[r]+o)%256;var s=this.S[r];this.S[r]=this.S[a],this.S[a]=s}this.i=this.j=0},t.prototype.un=function(e,t){e[t]^=this.generateKeyStreamWord()},t.prototype.generateKeyStreamWord=function(){for(var e=this.S,t=this.i,n=this.j,r=0,a=0;a<4;a++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,r|=e[(e[t]+e[n])%256]<<24-8*a}return this.i=t,this.j=n,r},t.createEncryptor=function(e,n){return new t(c(c({},n=void 0===n?{}:n),{key:e}))},t.createDecryptor=function(e,n){return new t(c(c({},n=void 0===n?{}:n),{key:e}))},t.encrypt=function(e,n,r){return"string"==typeof n?i.E.encrypt(t,e,n,r):o.D.encrypt(t,e,n,r)},t.decrypt=function(e,n,r){return"string"==typeof n?i.E.decrypt(t,e,n,r):o.D.decrypt(t,e,n,r)},t.ivSize=0,t.keySize=8,t}(a.q)},9639:function(e,t,n){n.d(t,{RC4Drop:function(){return u}});var r,a=n(5693),i=n(9109),o=n(4615),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0;t--)this.generateKeyStreamWord()},t.createEncryptor=function(e,n){return new t(c(c({},n=void 0===n?{}:n),{key:e}))},t.createDecryptor=function(e,n){return new t(c(c({},n=void 0===n?{}:n),{key:e}))},t.encrypt=function(e,n,r){return"string"==typeof n?a.E.encrypt(t,e,n,r):i.D.encrypt(t,e,n,r)},t.decrypt=function(e,n,r){return"string"==typeof n?a.E.decrypt(t,e,n,r):i.D.decrypt(t,e,n,r)},t}(o.RC4)},7104:function(e,t,n){n.d(t,{RIPEMD160:function(){return g}});var r,a=n(1868),i=n(3354),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=new i.e([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=new i.e([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=new i.e([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=new i.e([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=new i.e([0,1518500249,1859775393,2400959708,2840853838]),l=new i.e([1352829926,1548603684,1836072691,2053994217,0]);function b(e,t,n){return e^t^n}function p(e,t,n){return e&t|~e&n}function h(e,t,n){return(e|~t)^n}function y(e,t,n){return e&n|t&~n}function m(e,t,n){return e^(t|~n)}function v(e,t){return e<>>32-t}var g=function(e){function t(t){var n=e.call(this,t)||this;return n.on=new i.e([1732584193,4023233417,2562383102,271733878,3285377520]),n.O=t,t&&void 0!==t.hash&&(n.on=t.hash.clone()),n}return o(t,e),t.prototype.A=function(){this.on=new i.e([1732584193,4023233417,2562383102,271733878,3285377520])},t.prototype.un=function(e,t){for(var n=0;n<16;n++){var r=t+n,a=e[r];e[r]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}var i,o,g,A,w,x,_,k,I,S,E,C=this.on.words,T=f.words,O=l.words,P=s.words,M=c.words,B=u.words,N=d.words;for(x=i=C[0],_=o=C[1],k=g=C[2],I=A=C[3],S=w=C[4],n=0;n<80;n+=1)E=i+e[t+P[n]]|0,E+=n<16?b(o,g,A)+T[0]:n<32?p(o,g,A)+T[1]:n<48?h(o,g,A)+T[2]:n<64?y(o,g,A)+T[3]:m(o,g,A)+T[4],E=(E=v(E|=0,B[n]))+w|0,i=w,w=A,A=v(g,10),g=o,o=E,E=x+e[t+M[n]]|0,E+=n<16?m(_,k,I)+O[0]:n<32?y(_,k,I)+O[1]:n<48?h(_,k,I)+O[2]:n<64?p(_,k,I)+O[3]:b(_,k,I)+O[4],E=(E=v(E|=0,N[n]))+S|0,x=S,S=I,I=v(k,10),k=_,_=E;E=C[1]+g+I|0,C[1]=C[2]+A+S|0,C[2]=C[3]+w+x|0,C[3]=C[4]+i+_|0,C[4]=C[0]+o+k|0,C[0]=E},t.prototype.fn=function(){var e=this.cn,t=e.words,n=8*this.sn,r=8*e.nSigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.nSigBytes=4*(t.length+1),this.an();for(var a=this.on,i=a.words,o=0;o<5;o++){var s=i[o];i[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return a},t.prototype.clone=function(){return new t({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e,n){return new t(n).finalize(e)},t}(a.P)},5187:function(e,t,n){n.d(t,{Rabbit:function(){return u}});var r,a=n(30),i=n(5693),o=n(9109),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this.hn=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this.vn=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this.wn=0,n=0;n<4;n++)this.nextState();for(n=0;n<8;n++)a[n]^=r[n+4&7];if(t){var i=t.words,o=i[0],s=i[1],c=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=c>>>16|4294901760&u,f=u<<16|65535&c;for(a[0]^=c,a[1]^=d,a[2]^=u,a[3]^=f,a[4]^=c,a[5]^=d,a[6]^=u,a[7]^=f,n=0;n<4;n++)this.nextState()}},t.prototype.un=function(e,t){var n=this.hn;this.nextState(),this.S[0]=n[0]^n[5]>>>16^n[3]<<16,this.S[1]=n[2]^n[7]>>>16^n[5]<<16,this.S[2]=n[4]^n[1]>>>16^n[7]<<16,this.S[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)this.S[r]=16711935&(this.S[r]<<8|this.S[r]>>>24)|4278255360&(this.S[r]<<24|this.S[r]>>>8),e[t+r]^=this.S[r]},t.prototype.nextState=function(){for(var e=this.hn,t=this.vn,n=0;n<8;n++)this.C[n]=t[n];for(t[0]=t[0]+1295307597+this.wn|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this.wn=t[7]>>>0>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],a=65535&r,i=r>>>16,o=((a*a>>>17)+a*i>>>15)+i*i,s=((4294901760&r)*r|0)+((65535&r)*r|0);this.G[n]=o^s}var c=this.G;e[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,e[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,e[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,e[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,e[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,e[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,e[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,e[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0},t.createEncryptor=function(e,n){return new t(c(c({},n=void 0===n?{}:n),{key:e}))},t.createDecryptor=function(e,n){return new t(c(c({},n=void 0===n?{}:n),{key:e}))},t.encrypt=function(e,n,r){return"string"==typeof n?i.E.encrypt(t,e,n,r):o.D.encrypt(t,e,n,r)},t.decrypt=function(e,n,r){return"string"==typeof n?i.E.decrypt(t,e,n,r):o.D.decrypt(t,e,n,r)},t.ivSize=4,t}(a.q)},3173:function(e,t,n){n.d(t,{SHA1:function(){return c}});var r,a=n(1868),i=n(3354),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=[],c=function(e){function t(t){var n=e.call(this,t)||this;return n.on=new i.e([1732584193,4023233417,2562383102,271733878,3285377520]),n.O=t,t&&void 0!==t.hash&&(n.on=t.hash.clone()),n}return o(t,e),t.prototype.A=function(){this.on=new i.e([1732584193,4023233417,2562383102,271733878,3285377520])},t.prototype.un=function(e,t){for(var n=this.on.words,r=n[0],a=n[1],i=n[2],o=n[3],c=n[4],u=0;u<80;u++){if(u<16)s[u]=0|e[t+u];else{var d=s[u-3]^s[u-8]^s[u-14]^s[u-16];s[u]=d<<1|d>>>31}var f=(r<<5|r>>>27)+c+s[u];f+=u<20?1518500249+(a&i|~a&o):u<40?1859775393+(a^i^o):u<60?(a&i|a&o|i&o)-1894007588:(a^i^o)-899497514,c=o,o=i,i=a<<30|a>>>2,a=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+i|0,n[3]=n[3]+o|0,n[4]=n[4]+c|0},t.prototype.fn=function(){var e=this.cn.words,t=8*this.sn,n=8*this.cn.nSigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(t/4294967296),e[15+(n+64>>>9<<4)]=t,this.cn.nSigBytes=4*e.length,this.an(),this.on},t.prototype.clone=function(){return new t({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e,n){return new t(n).finalize(e)},t}(a.P)},766:function(e,t,n){n.d(t,{SHA224:function(){return s}});var r,a=n(3354),i=n(5561),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=e.call(this,t)||this;return n.on=new a.e([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),n.O=t,t&&void 0!==t.hash&&(n.on=t.hash.clone()),n}return o(t,e),t.prototype.A=function(){this.on=new a.e([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},t.prototype.fn=function(){var t=e.prototype.fn.call(this);return t.nSigBytes-=4,t},t.prototype.clone=function(){return new t({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e,n){return new t(n).finalize(e)},t}(i.SHA256)},5561:function(e,t,n){n.d(t,{SHA256:function(){return l}});var r,a=n(1868),i=n(3354),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=[],c=[];function u(e){for(var t=Math.sqrt(e),n=2;n<=t;n++)if(!(e%n))return!1;return!0}function d(e){return 4294967296*(e-(0|e))|0}!function(){for(var e=2,t=0;t<64;)u(e)&&(t<8&&(s[t]=d(Math.pow(e,.5))),c[t]=d(Math.pow(e,1/3)),t++),e++}();var f=[],l=function(e){function t(t){var n=e.call(this,t)||this;return n.on=new i.e(s.slice(0)),n.O=t,t&&void 0!==t.hash&&(n.on=t.hash.clone()),n}return o(t,e),t.prototype.A=function(){this.on=new i.e(s.slice(0))},t.prototype.un=function(e,t){for(var n=this.on.words,r=n[0],a=n[1],i=n[2],o=n[3],s=n[4],u=n[5],d=n[6],l=n[7],b=0;b<64;b++){if(b<16)f[b]=0|e[t+b];else{var p=f[b-15],h=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,y=f[b-2],m=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;f[b]=h+f[b-7]+m+f[b-16]}var v=r&a^r&i^a&i,g=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),A=l+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&u^~s&d)+c[b]+f[b];l=d,d=u,u=s,s=o+A|0,o=i,i=a,a=r,r=A+(g+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+a|0,n[2]=n[2]+i|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+l|0},t.prototype.fn=function(){var e=this.cn.words,t=8*this.sn,n=8*this.cn.nSigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(t/4294967296),e[15+(n+64>>>9<<4)]=t,this.cn.nSigBytes=4*e.length,this.an(),this.on},t.prototype.clone=function(){return new t({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e,n){return new t(n).finalize(e)},t}(a.P)},3408:function(e,t,n){n.d(t,{SHA3:function(){return l}});var r,a=n(6957),i=n(1868),o=n(3354),s=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),c=[],u=[],d=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(var i=0;i<5;i++)for(var o=0;o<5;o++)u[i+5*o]=o+(2*i+3*o)%5*5;for(var s=1,f=0;f<24;f++){for(var l=0,b=0,p=0;p<7;p++){if(1&s){var h=(1<>>24)|4278255360&(i<<24|i>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[a].high^=o,n[a].low^=i}for(var s=0;s<24;s++){for(var l=0;l<5;l++){for(var b=0,p=0,h=0;h<5;h++)b^=(C=n[l+5*h]).high,p^=C.low;var y=f[l];y.high=b,y.low=p}for(l=0;l<5;l++){var m=f[(l+4)%5],v=f[(l+1)%5],g=v.high,A=v.low;for(b=m.high^(g<<1|A>>>31),p=m.low^(A<<1|g>>>31),h=0;h<5;h++)(C=n[l+5*h]).high^=b,C.low^=p}for(var w=1;w<25;w++){b=void 0,p=void 0;var x=n[w].high,_=n[w].low,k=c[w];k<32?(b=x<>>32-k,p=_<>>32-k):(b=_<>>64-k,p=x<>>64-k);var I=f[u[w]];I.high=b,I.low=p}var S=f[0],E=n[0];for(S.high=E.high,S.low=E.low,l=0;l<5;l++)for(h=0;h<5;h++){var C=n[w=l+5*h],T=f[w],O=f[(l+1)%5+5*h],P=f[(l+2)%5+5*h];C.high=T.high^~O.high&P.high,C.low=T.low^~O.low&P.low}var M=n[0],B=d[s];M.high^=B.high,M.low^=B.low}},t.prototype.fn=function(){var e=this.cn,t=e.words,n=8*e.nSigBytes,r=32*this.blockSize;t[n>>>5]|=1<<24-n%32,t[(Math.ceil((n+1)/r)*r>>>5)-1]|=128,e.nSigBytes=4*t.length,this.an();for(var a=this.bn,i=this.dn/8,s=i/8,c=[],u=0;u>>24)|4278255360&(f<<24|f>>>8),l=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),c.push(l),c.push(f)}return new o.e(c,i)},t.prototype.clone=function(){return new t({outputLength:this.dn,state:this.bn,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e,n){return new t(n).finalize(e)},t}(i.P)},6324:function(e,t,n){n.d(t,{SHA384:function(){return s}});var r,a=n(6957),i=n(7491),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=function(e){function t(t){var n=e.call(this,t)||this;return n.on=new a.m([new a.r(3418070365,3238371032),new a.r(1654270250,914150663),new a.r(2438529370,812702999),new a.r(355462360,4144912697),new a.r(1731405415,4290775857),new a.r(2394180231,1750603025),new a.r(3675008525,1694076839),new a.r(1203062813,3204075428)]),n.O=t,t&&void 0!==t.hash&&(n.on=t.hash.clone()),n}return o(t,e),t.prototype.A=function(){this.on=new a.m([new a.r(3418070365,3238371032),new a.r(1654270250,914150663),new a.r(2438529370,812702999),new a.r(355462360,4144912697),new a.r(1731405415,4290775857),new a.r(2394180231,1750603025),new a.r(3675008525,1694076839),new a.r(1203062813,3204075428)])},t.prototype.fn=function(){var t=e.prototype.fn.call(this);return t.nSigBytes-=16,t},t.prototype.clone=function(){return new t({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e,n){return new t(n).finalize(e)},t}(i.SHA512)},7491:function(e,t,n){n.d(t,{SHA512:function(){return u}});var r,a=n(1868),i=n(6957),o=(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),s=[new i.r(1116352408,3609767458),new i.r(1899447441,602891725),new i.r(3049323471,3964484399),new i.r(3921009573,2173295548),new i.r(961987163,4081628472),new i.r(1508970993,3053834265),new i.r(2453635748,2937671579),new i.r(2870763221,3664609560),new i.r(3624381080,2734883394),new i.r(310598401,1164996542),new i.r(607225278,1323610764),new i.r(1426881987,3590304994),new i.r(1925078388,4068182383),new i.r(2162078206,991336113),new i.r(2614888103,633803317),new i.r(3248222580,3479774868),new i.r(3835390401,2666613458),new i.r(4022224774,944711139),new i.r(264347078,2341262773),new i.r(604807628,2007800933),new i.r(770255983,1495990901),new i.r(1249150122,1856431235),new i.r(1555081692,3175218132),new i.r(1996064986,2198950837),new i.r(2554220882,3999719339),new i.r(2821834349,766784016),new i.r(2952996808,2566594879),new i.r(3210313671,3203337956),new i.r(3336571891,1034457026),new i.r(3584528711,2466948901),new i.r(113926993,3758326383),new i.r(338241895,168717936),new i.r(666307205,1188179964),new i.r(773529912,1546045734),new i.r(1294757372,1522805485),new i.r(1396182291,2643833823),new i.r(1695183700,2343527390),new i.r(1986661051,1014477480),new i.r(2177026350,1206759142),new i.r(2456956037,344077627),new i.r(2730485921,1290863460),new i.r(2820302411,3158454273),new i.r(3259730800,3505952657),new i.r(3345764771,106217008),new i.r(3516065817,3606008344),new i.r(3600352804,1432725776),new i.r(4094571909,1467031594),new i.r(275423344,851169720),new i.r(430227734,3100823752),new i.r(506948616,1363258195),new i.r(659060556,3750685593),new i.r(883997877,3785050280),new i.r(958139571,3318307427),new i.r(1322822218,3812723403),new i.r(1537002063,2003034995),new i.r(1747873779,3602036899),new i.r(1955562222,1575990012),new i.r(2024104815,1125592928),new i.r(2227730452,2716904306),new i.r(2361852424,442776044),new i.r(2428436474,593698344),new i.r(2756734187,3733110249),new i.r(3204031479,2999351573),new i.r(3329325298,3815920427),new i.r(3391569614,3928383900),new i.r(3515267271,566280711),new i.r(3940187606,3454069534),new i.r(4118630271,4000239992),new i.r(116418474,1914138554),new i.r(174292421,2731055270),new i.r(289380356,3203993006),new i.r(460393269,320620315),new i.r(685471733,587496836),new i.r(852142971,1086792851),new i.r(1017036298,365543100),new i.r(1126000580,2618297676),new i.r(1288033470,3409855158),new i.r(1501505948,4234509866),new i.r(1607167915,987167468),new i.r(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=new i.r(0,0)}();var u=function(e){function t(t){var n=e.call(this,t)||this;return n.N=32,n.on=new i.m([new i.r(1779033703,4089235720),new i.r(3144134277,2227873595),new i.r(1013904242,4271175723),new i.r(2773480762,1595750129),new i.r(1359893119,2917565137),new i.r(2600822924,725511199),new i.r(528734635,4215389547),new i.r(1541459225,327033209)]),n.O=t,t&&void 0!==t.hash&&(n.on=t.hash.clone()),n}return o(t,e),t.prototype.A=function(){this.on=new i.m([new i.r(1779033703,4089235720),new i.r(3144134277,2227873595),new i.r(1013904242,4271175723),new i.r(2773480762,1595750129),new i.r(1359893119,2917565137),new i.r(2600822924,725511199),new i.r(528734635,4215389547),new i.r(1541459225,327033209)])},t.prototype.un=function(e,t){for(var n=this.on.words,r=n[0],a=n[1],i=n[2],o=n[3],u=n[4],d=n[5],f=n[6],l=n[7],b=r.high,p=r.low,h=a.high,y=a.low,m=i.high,v=i.low,g=o.high,A=o.low,w=u.high,x=u.low,_=d.high,k=d.low,I=f.high,S=f.low,E=l.high,C=l.low,T=b,O=p,P=h,M=y,B=m,N=v,R=g,D=A,j=w,U=x,L=_,F=k,Z=I,H=S,z=E,Q=C,q=0;q<80;q++){var V=void 0,J=void 0,K=c[q];if(q<16)J=K.high=0|e[t+2*q],V=K.low=0|e[t+2*q+1];else{var G=c[q-15],W=G.high,Y=G.low,X=(W>>>1|Y<<31)^(W>>>8|Y<<24)^W>>>7,$=(Y>>>1|W<<31)^(Y>>>8|W<<24)^(Y>>>7|W<<25),ee=c[q-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ae=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=c[q-7],oe=ie.high,se=ie.low,ce=c[q-16],ue=ce.high,de=ce.low;J=(J=(J=X+oe+((V=$+se)>>>0<$>>>0?1:0))+re+((V+=ae)>>>0>>0?1:0))+ue+((V+=de)>>>0>>0?1:0),K.high=J,K.low=V}var fe=j&L^~j&Z,le=U&F^~U&H,be=T&P^T&B^P&B,pe=O&M^O&N^M&N,he=(T>>>28|O<<4)^(T<<30|O>>>2)^(T<<25|O>>>7),ye=(O>>>28|T<<4)^(O<<30|T>>>2)^(O<<25|T>>>7),me=(j>>>14|U<<18)^(j>>>18|U<<14)^(j<<23|U>>>9),ve=(U>>>14|j<<18)^(U>>>18|j<<14)^(U<<23|j>>>9),ge=s[q],Ae=ge.high,we=ge.low,xe=Q+ve,_e=z+me+(xe>>>0>>0?1:0),ke=ye+pe;z=Z,Q=H,Z=L,H=F,L=j,F=U,j=R+(_e=(_e=(_e=_e+fe+((xe+=le)>>>0>>0?1:0))+Ae+((xe+=we)>>>0>>0?1:0))+J+((xe+=V)>>>0>>0?1:0))+((U=D+xe|0)>>>0>>0?1:0)|0,R=B,D=N,B=P,N=M,P=T,M=O,T=_e+(he+be+(ke>>>0>>0?1:0))+((O=xe+ke|0)>>>0>>0?1:0)|0}p=r.low=p+O,r.high=b+T+(p>>>0>>0?1:0),y=a.low=y+M,a.high=h+P+(y>>>0>>0?1:0),v=i.low=v+N,i.high=m+B+(v>>>0>>0?1:0),A=o.low=A+D,o.high=g+R+(A>>>0>>0?1:0),x=u.low=x+U,u.high=w+j+(x>>>0>>0?1:0),k=d.low=k+F,d.high=_+L+(k>>>0>>0?1:0),S=f.low=S+H,f.high=I+Z+(S>>>0>>0?1:0),C=l.low=C+Q,l.high=E+z+(C>>>0>>0?1:0)},t.prototype.fn=function(){var e=this.cn,t=e.words,n=8*this.sn,r=8*e.nSigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.nSigBytes=4*t.length,this.an(),this.on.to32()},t.prototype.clone=function(){return new t({hash:this.on,blockSize:this.N,data:this.cn,nBytes:this.sn})},t.hash=function(e,n){return new t(n).finalize(e)},t}(a.P)},3354:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(5720),a=n(9054),i=function(){function e(t,n){if(Array.isArray(t)||!t)return this.yn=Array.isArray(t)?t:[],void(this.pn="number"==typeof n?n:4*this.yn.length);if(t instanceof e)return this.yn=t.words.slice(),void(this.pn=t.nSigBytes);var r;try{t instanceof ArrayBuffer?r=new Uint8Array(t):(t instanceof Uint8Array||t instanceof Int8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}catch(e){throw new Error("Invalid argument")}if(!r)throw new Error("Invalid argument");for(var a=r.byteLength,i=[],o=0;o>>2]|=r[o]<<24-o%4*8;this.yn=i,this.pn=a}return Object.defineProperty(e.prototype,"nSigBytes",{get:function(){return this.pn},set:function(e){this.pn=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"words",{get:function(){return this.yn},enumerable:!1,configurable:!0}),e.prototype.toString=function(e){return e?e.stringify(this):r.p.stringify(this)},e.prototype.toUint8Array=function(){for(var e=this.yn,t=this.pn,n=new Uint8Array(t),r=0;r>>2]>>>24-r%4*8&255;return n},e.prototype.concat=function(e){var t=e.words.slice(),n=e.nSigBytes;if(this.clamp(),this.pn%4)for(var r=0;r>>2]>>>24-r%4*8&255;this.yn[this.pn+r>>>2]|=a<<24-(this.pn+r)%4*8}else for(r=0;r>>2]=t[r>>>2];return this.pn+=n,this},e.prototype.clamp=function(){var e=this.pn;this.yn[e>>>2]&=4294967295<<32-e%4*8,this.yn.length=Math.ceil(e/4)},e.prototype.clone=function(){return new e(this.yn.slice(),this.pn)},e.random=function(t){for(var n=[],r=0;r0&&a.push(0),e.concat(new r.e(a,n))}}function i(e,t){return new r.e(e.words.slice(),t)}function o(e,t){for(var n=e.nSigBytes-t,a=[],i=0;i>>2,s=n+i,c=s>>>2,u=e.words[c]>>>24-s%4*8&255;a[o]=0|a[o]|u<<24-i%4*8}var d=new r.e(a,t);return d.clamp(),d}},7919:function(e,t,n){n.d(t,{l:function(){return a}});var r=n(3354),a={pad:function(e,t){for(var n=4*t,a=n-e.nSigBytes%n,i=a<<24|a<<16|a<<8|a,o=[],s=0;s>>2];e.nSigBytes-=t}}},1756:function(e,t,n){n.d(t,{w:function(){return o}});var r,a="undefined"!=typeof navigator&&navigator.userAgent?navigator.userAgent.toLowerCase():"",i=(r=parseInt((/msie (\d+)/.exec(a)||[])[1],10),isNaN(r)?(r=parseInt((/trident\/.*; rv:(\d+)/.exec(a)||[])[1],10),!isNaN(r)&&r):r);function o(e,t){return!1!==i&&(!t||("<"===e?i"===e?i>t:">="===e?i>=t:i===t))}},1773:function(e,t,n){n.d(t,{D:function(){return s}});for(var r=n(3354),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",i=[],o=0;o<65;o++)i[a.charCodeAt(o)]=o;var s={stringify:function(e){var t=e.words,n=e.nSigBytes;e.clamp();for(var r=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,s=0;s<4&&i+.75*s>>6*(3-s)&63));var c=a.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(e){var t=e.length,n=a.charAt(64);if(n){var o=e.indexOf(n);-1!==o&&(t=o)}for(var s=[],c=0,u=0;u>>6-u%4*2;s[c>>>2]|=d<<24-c%4*8,c++}return new r.e(s,c)}}},5720:function(e,t,n){n.d(t,{p:function(){return a}});var r=n(3354),a={stringify:function(e){for(var t=e.nSigBytes,n=e.words,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){var t=e.length;if(t%2!=0)throw new Error("Hex string count must be even");if(!/^[a-fA-F0-9]+$/.test(e))throw new Error("Invalid Hex string: "+e);for(var n=[],a=0;a>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new r.e(n,t/2)}}},8702:function(e,t,n){n.d(t,{m:function(){return a}});var r=n(3354),a={stringify:function(e){for(var t=e.nSigBytes,n=e.words,r=[],a=0;a>>2]>>>24-a%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new r.e(n,t)}}},4768:function(e,t,n){n.d(t,{d:function(){return a}});var r=n(8702),a={stringify:function(e){try{return decodeURIComponent(escape(r.m.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return r.m.parse(unescape(encodeURIComponent(e)))}}},2688:function(e,t,n){n.d(t,{Base64:function(){return i.D},EvpKDF:function(){return g},Hex:function(){return c.p},Latin1:function(){return s.m},OpenSSLKDF:function(){return p.s},PBKDF2:function(){return h.E},Utf16:function(){return b},Utf16BE:function(){return u},Utf16LE:function(){return l},Utf8:function(){return o.d},Word32Array:function(){return r.e},Word64:function(){return a.r},Word64Array:function(){return a.m}}),n(9054);var r=n(3354),a=n(6957),i=(n(1756),n(1773)),o=n(4768),s=n(8702),c=n(5720),u={stringify:function(e){for(var t=e.words,n=e.nSigBytes,r=[],a=0;a>>2]>>>16-a%4*8&65535;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a>>1]|=e.charCodeAt(a)<<16-a%2*16;return new r.e(n,2*t)}};function d(e){return e<<8&4278255360|e>>>8&16711935}var f,l={stringify:function(e){for(var t=e.words,n=e.nSigBytes,r=[],a=0;a>>2]>>>16-a%4*8&65535);r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a>>1]|=d(e.charCodeAt(a)<<16-a%2*16);return new r.e(n,2*t)}},b=u,p=n(2214),h=n(7008),y=n(670),m=n(9541),v=(f=function(e,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),g=function(e){function t(t){var n=e.call(this,t)||this;return n.Sn=4,n.Mn=y.MD5,n.kn=1,t&&(n.Sn=void 0!==t.keySize?t.keySize:n.Sn,n.Mn=void 0!==t.Hasher?t.Hasher:n.Mn,n.kn=void 0!==t.iterations?t.iterations:n.kn),n}return v(t,e),t.prototype.compute=function(e,t){for(var n,a=new this.Mn,i=new r.e,o=i.words,s=this.Sn,c=this.kn;o.length13||a.nSigBytes<7))throw new Error("Byte size of iv must be between 7 and 13");return n.Nn=a||new i.e([0,0],8),n.In=15-n.Nn.nSigBytes,n}return s(t,e),t.getB0=function(e,t,n,r){if(n.nSigBytes+r.nSigBytes!==15)throw new Error("LEN(Q)+LEN(N) must be 15");var a=255&(0|(e?1:0)<<6|(t-2)/2<<3|n.nSigBytes-1),o=r.clone().concat(n);return new i.e([a<<24],1).concat(o)},t.formatAssociatedDataAndPayload=function(e,t){var n,r=e.nSigBytes;if(0===r)n=new i.e([0],0);else if(r4?(a.concat(new i.e([0],e%4)),a.concat(new i.e([n],4))):a.concat(new i.e([n<<32-8*e],e)):a.concat(new i.e([n],4)),r.concat(t).concat(a)},t.mac=function(e,n,r,a,s,c){var u=new e({key:n,iv:r});if(4!==u.blockSize)throw new Error("In CCM, cipher block size must be 128bit");if(r&&(r.nSigBytes>13||r.nSigBytes<7))throw new Error("Byte size of iv must be between 7 and 13");var d=r||new i.e([0,0],8),f=(null==a?void 0:a.clone())||new i.e,l=f.nSigBytes,b=(null==s?void 0:s.clone())||new i.e,p=b.nSigBytes;if(p>>>0>4294967295)throw new Error("Byte length of Payload(plainText) larger than 2^32-1 (4,294,967,295byte) is not supported at this time.");var h=15-d.nSigBytes,y=(0,o.ur)(new i.e([0,p],8),h),m=c||16,v=t.getB0(Boolean(l),m,y,d),g=t.formatAssociatedDataAndPayload(f,b),A=v.words.slice();u.encryptBlock(A,0);for(var w=g.nSigBytes/16,x=g.words,_=A,k=0;k0?4-n.length%4:0,i=n.slice(),o=0;o>>0,r=n+1>>>0>>0,i=a+1>>>0>>5]>>>31-i%32&1)>0&&(r[0]=r[0]^a[0],r[1]=r[1]^a[1],r[2]=r[2]^a[2],r[3]=r[3]^a[3]);var o=(1&a[3])>>>0,s=(1&a[0])>>>0,c=(1&a[1])>>>0,u=(1&a[2])>>>0;a[0]=a[0]>>>1,a[1]=a[1]>>>1|(s?2147483648:0),a[2]=a[2]>>>1|(c?2147483648:0),a[3]=a[3]>>>1|(u?2147483648:0),o>0&&(a[0]^=n[0],a[1]^=n[1],a[2]^=n[2],a[3]^=n[3])}return r},t.GHASH=function(e,n){if(e.length%4!=0)throw new Error("Length of 32bit word array 'H' must be multiple of 4(128bit)");if(n.length%4!=0)throw new Error("Length of 32bit word array 'X' must be multiple of 4(128bit)");for(var r=n.length,a=[0,0,0,0],i=0;i0){var _=a[4*c+g]<<32-8*x^s[c][g];m.push(_),v+=x}var k=new i.e(m,v);d.concat(k)}}return d.nSigBytes=r.nSigBytes,d.clamp(),d},t.mac=function(e,n,r,a,s,c){var u=new e({key:n,iv:r}),d=[0,0,0,0];u.encryptBlock(d,0);var f=t.getJ0(d,r.words),l=(null==a?void 0:a.clone())||new i.e,b=[0,8*l.nSigBytes],p=(null==s?void 0:s.clone())||new i.e,h=[0,8*p.nSigBytes],y=c||16;(0,o.I4)(l),(0,o.I4)(p);var m=l.words.concat(p.words).concat(b).concat(h),v=t.GHASH(d,m),g=t.GCTR(u,f,new i.e(v));return(0,o.z6)(g,y)},t.createEncryptor=function(e){return new t.Encryptor(e)},t.createDecryptor=function(e){return new t.Decryptor(e)},t.Encryptor=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return s(n,e),n.prototype.processBlock=function(e,n){var r=this.Hn.blockSize;this.Un=t.inc32(this.Un);for(var a=new i.e(e.slice(n,n+r)),o=t.GCTR(this.Hn,this.Un,a),s=0;s>>2];e.nSigBytes-=t}},J={pad:function(e,t){var n=4*t;e.clamp(),e.nSigBytes+=n-(e.nSigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.nSigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.nSigBytes=n+1;break}}},K={pad:function(e,t){e.concat(new q.e([2147483648],1)),J.pad(e,t)},unpad:function(e){J.unpad(e),e.nSigBytes-=1}},G=r(7919),W=r(1232),Y={CBC:B.n,CFB:D,CTR:U,ECB:F,OFB:H,GCM:z.V,CCM:Q.K},X={AnsiX923:{pad:function(e,t){var n=e.nSigBytes,r=4*t,a=r-n%r,i=n+a-1;e.clamp(),e.words[i>>>2]|=a<<24-i%4*8,e.nSigBytes+=a},unpad:function(e){var t=255&e.words[e.nSigBytes-1>>>2];e.nSigBytes-=t}},ISO10126:V,ISO97971:K,Pkcs7:G.l,NoPadding:{pad:function(e,t){},unpad:function(e){}},Zero:J},$={OpenSSLFormatter:W.w}}(),a}()},37310:function(e,t,n){var r=n(60392).stringify,a=n(63472);e.exports=function(e){return{parse:a(e),stringify:r}},e.exports.parse=a(),e.exports.stringify=r},63472:function(e,t,n){var r=null,a=/(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])/,i=/(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)/;e.exports=function(e){"use strict";var t={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1,protoAction:"error",constructorAction:"error"};if(null!=e){if(!0===e.strict&&(t.strict=!0),!0===e.storeAsString&&(t.storeAsString=!0),t.alwaysParseAsBig=!0===e.alwaysParseAsBig&&e.alwaysParseAsBig,t.useNativeBigInt=!0===e.useNativeBigInt&&e.useNativeBigInt,void 0!==e.constructorAction){if("error"!==e.constructorAction&&"ignore"!==e.constructorAction&&"preserve"!==e.constructorAction)throw new Error('Incorrect value for constructorAction option, must be "error", "ignore" or undefined but passed '.concat(e.constructorAction));t.constructorAction=e.constructorAction}if(void 0!==e.protoAction){if("error"!==e.protoAction&&"ignore"!==e.protoAction&&"preserve"!==e.protoAction)throw new Error('Incorrect value for protoAction option, must be "error", "ignore" or undefined but passed '.concat(e.protoAction));t.protoAction=e.protoAction}}var o,s,c,u,d={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},f=function(e){throw{name:"SyntaxError",message:e,at:o,text:c}},l=function(e){return e&&e!==s&&f("Expected '"+e+"' instead of '"+s+"'"),s=c.charAt(o),o+=1,s},b=function(){var e,a="";for("-"===s&&(a="-",l("-"));s>="0"&&s<="9";)a+=s,l();if("."===s)for(a+=".";l()&&s>="0"&&s<="9";)a+=s;if("e"===s||"E"===s)for(a+=s,l(),"-"!==s&&"+"!==s||(a+=s,l());s>="0"&&s<="9";)a+=s,l();if(e=+a,isFinite(e))return null==r&&(r=n(17162)),a.length>15?t.storeAsString?a:t.useNativeBigInt?BigInt(a):new r(a):t.alwaysParseAsBig?t.useNativeBigInt?BigInt(e):new r(e):e;f("Bad number")},p=function(){var e,t,n,r="";if('"'===s)for(var a=o;l();){if('"'===s)return o-1>a&&(r+=c.substring(a,o-1)),l(),r;if("\\"===s){if(o-1>a&&(r+=c.substring(a,o-1)),l(),"u"===s){for(n=0,t=0;t<4&&(e=parseInt(l(),16),isFinite(e));t+=1)n=16*n+e;r+=String.fromCharCode(n)}else{if("string"!=typeof d[s])break;r+=d[s]}a=o}}f("Bad string")},h=function(){for(;s&&s<=" ";)l()};return u=function(){switch(h(),s){case"{":return function(){var e,n=Object.create(null);if("{"===s){if(l("{"),h(),"}"===s)return l("}"),n;for(;s;){if(e=p(),h(),l(":"),!0===t.strict&&Object.hasOwnProperty.call(n,e)&&f('Duplicate key "'+e+'"'),!0===a.test(e)?"error"===t.protoAction?f("Object contains forbidden prototype property"):"ignore"===t.protoAction?u():n[e]=u():!0===i.test(e)?"error"===t.constructorAction?f("Object contains forbidden constructor property"):"ignore"===t.constructorAction?u():n[e]=u():n[e]=u(),h(),"}"===s)return l("}"),n;l(","),h()}}f("Bad object")}();case"[":return function(){var e=[];if("["===s){if(l("["),h(),"]"===s)return l("]"),e;for(;s;){if(e.push(u()),h(),"]"===s)return l("]"),e;l(","),h()}}f("Bad array")}();case'"':return p();case"-":return b();default:return s>="0"&&s<="9"?b():function(){switch(s){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}f("Unexpected '"+s+"'")}()}},function(e,t){var n;return c=e+"",o=0,s=" ",n=u(),h(),s&&f("Syntax error"),"function"==typeof t?function e(n,r){var a,i=n[r];return i&&"object"==typeof i&&Object.keys(i).forEach((function(t){void 0!==(a=e(i,t))?i[t]=a:delete i[t]})),t.call(n,r,i)}({"":n},""):n}}},60392:function(e,t,n){var r=n(17162),a=e.exports;!function(){"use strict";var e,t,n,i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){return i.lastIndex=0,i.test(e)?'"'+e.replace(i,(function(e){var t=o[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}function c(a,i){var o,u,d,f,l,b=e,p=i[a],h=null!=p&&(p instanceof r||r.isBigNumber(p));switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(a)),"function"==typeof n&&(p=n.call(i,a,p)),typeof p){case"string":return h?p:s(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":case"bigint":return String(p);case"object":if(!p)return"null";if(e+=t,l=[],"[object Array]"===Object.prototype.toString.apply(p)){for(f=p.length,o=0;o>>31),p=l^(o<<1|i>>>31),h=e[0]^b,y=e[1]^p,m=e[10]^b,v=e[11]^p,g=e[20]^b,A=e[21]^p,w=e[30]^b,x=e[31]^p,_=e[40]^b,k=e[41]^p;b=r^(s<<1|c>>>31),p=a^(c<<1|s>>>31);var I=e[2]^b,S=e[3]^p,E=e[12]^b,C=e[13]^p,T=e[22]^b,O=e[23]^p,P=e[32]^b,M=e[33]^p,B=e[42]^b,N=e[43]^p;b=i^(u<<1|d>>>31),p=o^(d<<1|u>>>31);var R=e[4]^b,D=e[5]^p,j=e[14]^b,U=e[15]^p,L=e[24]^b,F=e[25]^p,Z=e[34]^b,H=e[35]^p,z=e[44]^b,Q=e[45]^p;b=s^(f<<1|l>>>31),p=c^(l<<1|f>>>31);var q=e[6]^b,V=e[7]^p,J=e[16]^b,K=e[17]^p,G=e[26]^b,W=e[27]^p,Y=e[36]^b,X=e[37]^p,$=e[46]^b,ee=e[47]^p;b=u^(r<<1|a>>>31),p=d^(a<<1|r>>>31);var te=e[8]^b,ne=e[9]^p,re=e[18]^b,ae=e[19]^p,ie=e[28]^b,oe=e[29]^p,se=e[38]^b,ce=e[39]^p,ue=e[48]^b,de=e[49]^p,fe=h,le=y,be=v<<4|m>>>28,pe=m<<4|v>>>28,he=g<<3|A>>>29,ye=A<<3|g>>>29,me=x<<9|w>>>23,ve=w<<9|x>>>23,ge=_<<18|k>>>14,Ae=k<<18|_>>>14,we=I<<1|S>>>31,xe=S<<1|I>>>31,_e=C<<12|E>>>20,ke=E<<12|C>>>20,Ie=T<<10|O>>>22,Se=O<<10|T>>>22,Ee=M<<13|P>>>19,Ce=P<<13|M>>>19,Te=B<<2|N>>>30,Oe=N<<2|B>>>30,Pe=D<<30|R>>>2,Me=R<<30|D>>>2,Be=j<<6|U>>>26,Ne=U<<6|j>>>26,Re=F<<11|L>>>21,De=L<<11|F>>>21,je=Z<<15|H>>>17,Ue=H<<15|Z>>>17,Le=Q<<29|z>>>3,Fe=z<<29|Q>>>3,Ze=q<<28|V>>>4,He=V<<28|q>>>4,ze=K<<23|J>>>9,Qe=J<<23|K>>>9,qe=G<<25|W>>>7,Ve=W<<25|G>>>7,Je=Y<<21|X>>>11,Ke=X<<21|Y>>>11,Ge=ee<<24|$>>>8,We=$<<24|ee>>>8,Ye=te<<27|ne>>>5,Xe=ne<<27|te>>>5,$e=re<<20|ae>>>12,et=ae<<20|re>>>12,tt=oe<<7|ie>>>25,nt=ie<<7|oe>>>25,rt=se<<8|ce>>>24,at=ce<<8|se>>>24,it=ue<<14|de>>>18,ot=de<<14|ue>>>18;e[0]=fe^~_e&Re,e[1]=le^~ke&De,e[10]=Ze^~$e&he,e[11]=He^~et&ye,e[20]=we^~Be&qe,e[21]=xe^~Ne&Ve,e[30]=Ye^~be&Ie,e[31]=Xe^~pe&Se,e[40]=Pe^~ze&tt,e[41]=Me^~Qe&nt,e[2]=_e^~Re&Je,e[3]=ke^~De&Ke,e[12]=$e^~he&Ee,e[13]=et^~ye&Ce,e[22]=Be^~qe&rt,e[23]=Ne^~Ve&at,e[32]=be^~Ie&je,e[33]=pe^~Se&Ue,e[42]=ze^~tt&me,e[43]=Qe^~nt&ve,e[4]=Re^~Je&it,e[5]=De^~Ke&ot,e[14]=he^~Ee&Le,e[15]=ye^~Ce&Fe,e[24]=qe^~rt&ge,e[25]=Ve^~at&Ae,e[34]=Ie^~je&Ge,e[35]=Se^~Ue&We,e[44]=tt^~me&Te,e[45]=nt^~ve&Oe,e[6]=Je^~it&fe,e[7]=Ke^~ot&le,e[16]=Ee^~Le&Ze,e[17]=Ce^~Fe&He,e[26]=rt^~ge&we,e[27]=at^~Ae&xe,e[36]=je^~Ge&Ye,e[37]=Ue^~We&Xe,e[46]=me^~Te&Pe,e[47]=ve^~Oe&Me,e[8]=it^~fe&_e,e[9]=ot^~le&ke,e[18]=Le^~Ze&$e,e[19]=Fe^~He&et,e[28]=ge^~we&Be,e[29]=Ae^~xe&Ne,e[38]=Ge^~Ye&be,e[39]=We^~Xe&pe,e[48]=Te^~Pe&ze,e[49]=Oe^~Me&Qe,e[0]^=n[2*t],e[1]^=n[2*t+1]}}},13046:function(e,t,n){var r=n(5886).Buffer,a=n(61881);function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(e,t){for(var n=0;n<50;++n)this.state[n]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(e){for(var t=0;t>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(a.p1600(this.state),this.count=0);return t},i.prototype.copy=function(e){for(var t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=i},48028:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=r(n(22097)),i=r(n(5886)),o=r(n(51605)),s=i.default.Buffer;function c(e){return e=function(e){if(!s.isBuffer(e))if(Array.isArray(e))e=s.from(e);else if("string"==typeof e)e=function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))}(e)?s.from(u(function(e){return"string"!=typeof e?e:function(e){if("string"!=typeof e)throw new Error("value must be type 'string', is currently type "+typeof e+", while checking isHexPrefixed.");return"0x"===e.slice(0,2)}(e)?e.slice(2):e}(e)),"hex"):s.from(e);else if("number"==typeof e)t=function(e){var t=e.toString(16);return"0x".concat(t)}(e),e=s.from(u(t.slice(2)),"hex");else if(null==e)e=s.allocUnsafe(0);else if(a.default.isBN(e))e=e.toArrayLike(s);else{if(!e.toArray)throw new Error("invalid type");e=s.from(e.toArray())}var t;return e}(e),(0,o.default)("keccak256").update(e).digest()}function u(e){if("string"!=typeof e)throw new Error("while padding to even, value must be string, is currently ".concat(typeof e,", while padToEven."));return e.length%2&&(e="0".concat(e)),e}"undefined"!=typeof window&&(window.keccak256=c),e.exports=c},53987:function(e,t,n){var r,a,i,o,s;s="object"==typeof(o=this).sodium&&"function"==typeof o.sodium.onload?o.sodium.onload:null,a=[t,n(84168)],r=function(e,t){"use strict";var n,r="uint8array",a=t.ready.then((function(){function r(){if(0!==n._sodium_init())throw new Error("libsodium was not correctly initialized.");for(var t=["crypto_aead_chacha20poly1305_decrypt","crypto_aead_chacha20poly1305_decrypt_detached","crypto_aead_chacha20poly1305_encrypt","crypto_aead_chacha20poly1305_encrypt_detached","crypto_aead_chacha20poly1305_ietf_decrypt","crypto_aead_chacha20poly1305_ietf_decrypt_detached","crypto_aead_chacha20poly1305_ietf_encrypt","crypto_aead_chacha20poly1305_ietf_encrypt_detached","crypto_aead_chacha20poly1305_ietf_keygen","crypto_aead_chacha20poly1305_keygen","crypto_aead_xchacha20poly1305_ietf_decrypt","crypto_aead_xchacha20poly1305_ietf_decrypt_detached","crypto_aead_xchacha20poly1305_ietf_encrypt","crypto_aead_xchacha20poly1305_ietf_encrypt_detached","crypto_aead_xchacha20poly1305_ietf_keygen","crypto_auth","crypto_auth_hmacsha256","crypto_auth_hmacsha256_final","crypto_auth_hmacsha256_init","crypto_auth_hmacsha256_keygen","crypto_auth_hmacsha256_update","crypto_auth_hmacsha256_verify","crypto_auth_hmacsha512","crypto_auth_hmacsha512_final","crypto_auth_hmacsha512_init","crypto_auth_hmacsha512_keygen","crypto_auth_hmacsha512_update","crypto_auth_hmacsha512_verify","crypto_auth_keygen","crypto_auth_verify","crypto_box_beforenm","crypto_box_curve25519xchacha20poly1305_keypair","crypto_box_curve25519xchacha20poly1305_seal","crypto_box_curve25519xchacha20poly1305_seal_open","crypto_box_detached","crypto_box_easy","crypto_box_easy_afternm","crypto_box_keypair","crypto_box_open_detached","crypto_box_open_easy","crypto_box_open_easy_afternm","crypto_box_seal","crypto_box_seal_open","crypto_box_seed_keypair","crypto_core_ed25519_add","crypto_core_ed25519_from_hash","crypto_core_ed25519_from_uniform","crypto_core_ed25519_is_valid_point","crypto_core_ed25519_random","crypto_core_ed25519_scalar_add","crypto_core_ed25519_scalar_complement","crypto_core_ed25519_scalar_invert","crypto_core_ed25519_scalar_mul","crypto_core_ed25519_scalar_negate","crypto_core_ed25519_scalar_random","crypto_core_ed25519_scalar_reduce","crypto_core_ed25519_scalar_sub","crypto_core_ed25519_sub","crypto_core_hchacha20","crypto_core_hsalsa20","crypto_core_ristretto255_add","crypto_core_ristretto255_from_hash","crypto_core_ristretto255_is_valid_point","crypto_core_ristretto255_random","crypto_core_ristretto255_scalar_add","crypto_core_ristretto255_scalar_complement","crypto_core_ristretto255_scalar_invert","crypto_core_ristretto255_scalar_mul","crypto_core_ristretto255_scalar_negate","crypto_core_ristretto255_scalar_random","crypto_core_ristretto255_scalar_reduce","crypto_core_ristretto255_scalar_sub","crypto_core_ristretto255_sub","crypto_generichash","crypto_generichash_blake2b_salt_personal","crypto_generichash_final","crypto_generichash_init","crypto_generichash_keygen","crypto_generichash_update","crypto_hash","crypto_hash_sha256","crypto_hash_sha256_final","crypto_hash_sha256_init","crypto_hash_sha256_update","crypto_hash_sha512","crypto_hash_sha512_final","crypto_hash_sha512_init","crypto_hash_sha512_update","crypto_kdf_derive_from_key","crypto_kdf_keygen","crypto_kx_client_session_keys","crypto_kx_keypair","crypto_kx_seed_keypair","crypto_kx_server_session_keys","crypto_onetimeauth","crypto_onetimeauth_final","crypto_onetimeauth_init","crypto_onetimeauth_keygen","crypto_onetimeauth_update","crypto_onetimeauth_verify","crypto_pwhash","crypto_pwhash_scryptsalsa208sha256","crypto_pwhash_scryptsalsa208sha256_ll","crypto_pwhash_scryptsalsa208sha256_str","crypto_pwhash_scryptsalsa208sha256_str_verify","crypto_pwhash_str","crypto_pwhash_str_needs_rehash","crypto_pwhash_str_verify","crypto_scalarmult","crypto_scalarmult_base","crypto_scalarmult_ed25519","crypto_scalarmult_ed25519_base","crypto_scalarmult_ed25519_base_noclamp","crypto_scalarmult_ed25519_noclamp","crypto_scalarmult_ristretto255","crypto_scalarmult_ristretto255_base","crypto_secretbox_detached","crypto_secretbox_easy","crypto_secretbox_keygen","crypto_secretbox_open_detached","crypto_secretbox_open_easy","crypto_secretstream_xchacha20poly1305_init_pull","crypto_secretstream_xchacha20poly1305_init_push","crypto_secretstream_xchacha20poly1305_keygen","crypto_secretstream_xchacha20poly1305_pull","crypto_secretstream_xchacha20poly1305_push","crypto_secretstream_xchacha20poly1305_rekey","crypto_shorthash","crypto_shorthash_keygen","crypto_shorthash_siphashx24","crypto_sign","crypto_sign_detached","crypto_sign_ed25519_pk_to_curve25519","crypto_sign_ed25519_sk_to_curve25519","crypto_sign_ed25519_sk_to_pk","crypto_sign_ed25519_sk_to_seed","crypto_sign_final_create","crypto_sign_final_verify","crypto_sign_init","crypto_sign_keypair","crypto_sign_open","crypto_sign_seed_keypair","crypto_sign_update","crypto_sign_verify_detached","crypto_stream_chacha20","crypto_stream_chacha20_ietf_xor","crypto_stream_chacha20_ietf_xor_ic","crypto_stream_chacha20_keygen","crypto_stream_chacha20_xor","crypto_stream_chacha20_xor_ic","crypto_stream_keygen","crypto_stream_xchacha20_keygen","crypto_stream_xchacha20_xor","crypto_stream_xchacha20_xor_ic","randombytes_buf","randombytes_buf_deterministic","randombytes_close","randombytes_random","randombytes_set_implementation","randombytes_stir","randombytes_uniform","sodium_version_string"],r=[x,_,k,I,S,E,C,T,O,P,M,B,N,R,D,j,U,L,F,Z,H,z,Q,q,V,J,K,G,W,Y,X,$,ee,te,ne,re,ae,ie,oe,se,ce,ue,de,fe,le,be,pe,he,ye,me,ve,ge,Ae,we,xe,_e,ke,Ie,Se,Ee,Ce,Te,Oe,Pe,Me,Be,Ne,Re,De,je,Ue,Le,Fe,Ze,He,ze,Qe,qe,Ve,Je,Ke,Ge,We,Ye,Xe,$e,et,tt,nt,rt,at,it,ot,st,ct,ut,dt,ft,lt,bt,pt,ht,yt,mt,vt,gt,At,wt,xt,_t,kt,It,St,Et,Ct,Tt,Ot,Pt,Mt,Bt,Nt,Rt,Dt,jt,Ut,Lt,Ft,Zt,Ht,zt,Qt,qt,Vt,Jt,Kt,Gt,Wt,Yt,Xt,$t,en,tn,nn,rn,an,on,sn,cn,un,dn,fn,ln,bn,pn,hn,yn,mn,vn,gn,An,wn,xn],a=0;a=240?(d=4,c=!0):f>=224?(d=3,c=!0):f>=192?(d=2,c=!0):f<128&&(d=1,c=!0)}while(!c);for(var l=d-(s.length-u),b=0;b>8&-39)<<8|87+(t=e[i]>>>4)+(t-10>>8&-39),a+=String.fromCharCode(255&r)+String.fromCharCode(r>>>8);return a}var c={ORIGINAL:1,ORIGINAL_NO_PADDING:3,URLSAFE:5,URLSAFE_NO_PADDING:7};function u(e){if(null==e)return c.URLSAFE_NO_PADDING;if(e!==c.ORIGINAL&&e!==c.ORIGINAL_NO_PADDING&&e!==c.URLSAFE&&e!=c.URLSAFE_NO_PADDING)throw new Error("unsupported base64 variant");return e}function d(e,t){t=u(t),e=w(a,e,"input");var r,a=[],i=0|Math.floor(e.length/3),s=e.length-3*i,c=4*i+(0!==s?0==(2&t)?4:2+(s>>>1):0),d=new p(c+1),f=h(e);return a.push(f),a.push(d.address),0===n._sodium_bin2base64(d.address,d.length,f,e.length,t)&&v(a,"conversion failed"),d.length=c,r=o(d.to_Uint8Array()),m(a),r}function f(e,t){var n=t||r;if(!l(n))throw new Error(n+" output format is not available");if(e instanceof p){if("uint8array"===n)return e.to_Uint8Array();if("text"===n)return o(e.to_Uint8Array());if("hex"===n)return s(e.to_Uint8Array());if("base64"===n)return d(e.to_Uint8Array(),c.URLSAFE_NO_PADDING);throw new Error('What is output format "'+n+'"?')}if("object"==typeof e){for(var a=Object.keys(e),i={},u=0;u>>24>>>8,c,d);var x=f(y,o);return m(s),x}function rt(e){var t=[];b(e);var r=new p(0|n._crypto_kdf_keybytes()),a=r.address;t.push(a),n._crypto_kdf_keygen(a);var i=f(r,e);return m(t),i}function at(e,t,r,a){var i=[];b(a),e=w(i,e,"clientPublicKey");var o,s=0|n._crypto_kx_publickeybytes();e.length!==s&&g(i,"invalid clientPublicKey length"),o=h(e),i.push(o),t=w(i,t,"clientSecretKey");var c,u=0|n._crypto_kx_secretkeybytes();t.length!==u&&g(i,"invalid clientSecretKey length"),c=h(t),i.push(c),r=w(i,r,"serverPublicKey");var d,l=0|n._crypto_kx_publickeybytes();r.length!==l&&g(i,"invalid serverPublicKey length"),d=h(r),i.push(d);var y=new p(0|n._crypto_kx_sessionkeybytes()),A=y.address;i.push(A);var x=new p(0|n._crypto_kx_sessionkeybytes()),_=x.address;if(i.push(_),0==(0|n._crypto_kx_client_session_keys(A,_,o,c,d))){var k=f({sharedRx:y,sharedTx:x},a);return m(i),k}v(i,"invalid usage")}function it(e){var t=[];b(e);var r=new p(0|n._crypto_kx_publickeybytes()),a=r.address;t.push(a);var i=new p(0|n._crypto_kx_secretkeybytes()),o=i.address;if(t.push(o),0==(0|n._crypto_kx_keypair(a,o))){var s={publicKey:f(r,e),privateKey:f(i,e),keyType:"x25519"};return m(t),s}v(t,"internal error")}function ot(e,t){var r=[];b(t),e=w(r,e,"seed");var a,i=0|n._crypto_kx_seedbytes();e.length!==i&&g(r,"invalid seed length"),a=h(e),r.push(a);var o=new p(0|n._crypto_kx_publickeybytes()),s=o.address;r.push(s);var c=new p(0|n._crypto_kx_secretkeybytes()),u=c.address;if(r.push(u),0==(0|n._crypto_kx_seed_keypair(s,u,a))){var d={publicKey:f(o,t),privateKey:f(c,t),keyType:"x25519"};return m(r),d}v(r,"internal error")}function st(e,t,r,a){var i=[];b(a),e=w(i,e,"serverPublicKey");var o,s=0|n._crypto_kx_publickeybytes();e.length!==s&&g(i,"invalid serverPublicKey length"),o=h(e),i.push(o),t=w(i,t,"serverSecretKey");var c,u=0|n._crypto_kx_secretkeybytes();t.length!==u&&g(i,"invalid serverSecretKey length"),c=h(t),i.push(c),r=w(i,r,"clientPublicKey");var d,l=0|n._crypto_kx_publickeybytes();r.length!==l&&g(i,"invalid clientPublicKey length"),d=h(r),i.push(d);var y=new p(0|n._crypto_kx_sessionkeybytes()),A=y.address;i.push(A);var x=new p(0|n._crypto_kx_sessionkeybytes()),_=x.address;if(i.push(_),0==(0|n._crypto_kx_server_session_keys(A,_,o,c,d))){var k=f({sharedRx:y,sharedTx:x},a);return m(i),k}v(i,"invalid usage")}function ct(e,t,r){var a=[];b(r);var i=h(e=w(a,e,"message")),o=e.length;a.push(i),t=w(a,t,"key");var s,c=0|n._crypto_onetimeauth_keybytes();t.length!==c&&g(a,"invalid key length"),s=h(t),a.push(s);var u=new p(0|n._crypto_onetimeauth_bytes()),d=u.address;if(a.push(d),0==(0|n._crypto_onetimeauth(d,i,o,0,s))){var l=f(u,r);return m(a),l}v(a,"invalid usage")}function ut(e,t){var r=[];b(t),A(r,e,"state_address");var a=new p(0|n._crypto_onetimeauth_bytes()),i=a.address;if(r.push(i),0==(0|n._crypto_onetimeauth_final(e,i))){var o=(n._free(e),f(a,t));return m(r),o}v(r,"invalid usage")}function dt(e,t){var r=[];b(t);var a=null;null!=e&&(a=h(e=w(r,e,"key")),e.length,r.push(a));var i=new p(144).address;if(0==(0|n._crypto_onetimeauth_init(i,a))){var o=i;return m(r),o}v(r,"invalid usage")}function ft(e){var t=[];b(e);var r=new p(0|n._crypto_onetimeauth_keybytes()),a=r.address;t.push(a),n._crypto_onetimeauth_keygen(a);var i=f(r,e);return m(t),i}function lt(e,t,r){var a=[];b(r),A(a,e,"state_address");var i=h(t=w(a,t,"message_chunk")),o=t.length;a.push(i),0!=(0|n._crypto_onetimeauth_update(e,i,o))&&v(a,"invalid usage"),m(a)}function bt(e,t,r){var a=[];e=w(a,e,"hash");var i,o=0|n._crypto_onetimeauth_bytes();e.length!==o&&g(a,"invalid hash length"),i=h(e),a.push(i);var s=h(t=w(a,t,"message")),c=t.length;a.push(s),r=w(a,r,"key");var u,d=0|n._crypto_onetimeauth_keybytes();r.length!==d&&g(a,"invalid key length"),u=h(r),a.push(u);var f=0==(0|n._crypto_onetimeauth_verify(i,s,c,0,u));return m(a),f}function pt(e,t,r,a,i,o,s){var c=[];b(s),A(c,e,"keyLength"),("number"!=typeof e||(0|e)!==e||e<0)&&g(c,"keyLength must be an unsigned integer");var u=h(t=w(c,t,"password")),d=t.length;c.push(u),r=w(c,r,"salt");var l,y=0|n._crypto_pwhash_saltbytes();r.length!==y&&g(c,"invalid salt length"),l=h(r),c.push(l),A(c,a,"opsLimit"),("number"!=typeof a||(0|a)!==a||a<0)&&g(c,"opsLimit must be an unsigned integer"),A(c,i,"memLimit"),("number"!=typeof i||(0|i)!==i||i<0)&&g(c,"memLimit must be an unsigned integer"),A(c,o,"algorithm"),("number"!=typeof o||(0|o)!==o||o<0)&&g(c,"algorithm must be an unsigned integer");var x=new p(0|e),_=x.address;if(c.push(_),0==(0|n._crypto_pwhash(_,e,0,u,d,0,l,a,0,i,o))){var k=f(x,s);return m(c),k}v(c,"invalid usage")}function ht(e,t,r,a,i,o){var s=[];b(o),A(s,e,"keyLength"),("number"!=typeof e||(0|e)!==e||e<0)&&g(s,"keyLength must be an unsigned integer");var c=h(t=w(s,t,"password")),u=t.length;s.push(c),r=w(s,r,"salt");var d,l=0|n._crypto_pwhash_scryptsalsa208sha256_saltbytes();r.length!==l&&g(s,"invalid salt length"),d=h(r),s.push(d),A(s,a,"opsLimit"),("number"!=typeof a||(0|a)!==a||a<0)&&g(s,"opsLimit must be an unsigned integer"),A(s,i,"memLimit"),("number"!=typeof i||(0|i)!==i||i<0)&&g(s,"memLimit must be an unsigned integer");var y=new p(0|e),x=y.address;if(s.push(x),0==(0|n._crypto_pwhash_scryptsalsa208sha256(x,e,0,c,u,0,d,a,0,i))){var _=f(y,o);return m(s),_}v(s,"invalid usage")}function yt(e,t,r,a,i,o,s){var c=[];b(s);var u=h(e=w(c,e,"password")),d=e.length;c.push(u);var l=h(t=w(c,t,"salt")),y=t.length;c.push(l),A(c,r,"opsLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&g(c,"opsLimit must be an unsigned integer"),A(c,a,"r"),("number"!=typeof a||(0|a)!==a||a<0)&&g(c,"r must be an unsigned integer"),A(c,i,"p"),("number"!=typeof i||(0|i)!==i||i<0)&&g(c,"p must be an unsigned integer"),A(c,o,"keyLength"),("number"!=typeof o||(0|o)!==o||o<0)&&g(c,"keyLength must be an unsigned integer");var x=new p(0|o),_=x.address;if(c.push(_),0==(0|n._crypto_pwhash_scryptsalsa208sha256_ll(u,d,l,y,r,0,a,i,_,o))){var k=f(x,s);return m(c),k}v(c,"invalid usage")}function mt(e,t,r,a){var i=[];b(a);var o=h(e=w(i,e,"password")),s=e.length;i.push(o),A(i,t,"opsLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&g(i,"opsLimit must be an unsigned integer"),A(i,r,"memLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&g(i,"memLimit must be an unsigned integer");var c=new p(0|n._crypto_pwhash_scryptsalsa208sha256_strbytes()).address;if(i.push(c),0==(0|n._crypto_pwhash_scryptsalsa208sha256_str(c,o,s,0,t,0,r))){var u=n.UTF8ToString(c);return m(i),u}v(i,"invalid usage")}function vt(e,t,r){var a=[];b(r),"string"!=typeof e&&g(a,"hashed_password must be a string"),e=i(e+"\0"),null!=s&&e.length-1!==s&&g(a,"invalid hashed_password length");var o=h(e),s=e.length-1;a.push(o);var c=h(t=w(a,t,"password")),u=t.length;a.push(c);var d=0==(0|n._crypto_pwhash_scryptsalsa208sha256_str_verify(o,c,u,0));return m(a),d}function gt(e,t,r,a){var i=[];b(a);var o=h(e=w(i,e,"password")),s=e.length;i.push(o),A(i,t,"opsLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&g(i,"opsLimit must be an unsigned integer"),A(i,r,"memLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&g(i,"memLimit must be an unsigned integer");var c=new p(0|n._crypto_pwhash_strbytes()).address;if(i.push(c),0==(0|n._crypto_pwhash_str(c,o,s,0,t,0,r))){var u=n.UTF8ToString(c);return m(i),u}v(i,"invalid usage")}function At(e,t,r,a){var o=[];b(a),"string"!=typeof e&&g(o,"hashed_password must be a string"),e=i(e+"\0"),null!=c&&e.length-1!==c&&g(o,"invalid hashed_password length");var s=h(e),c=e.length-1;o.push(s),A(o,t,"opsLimit"),("number"!=typeof t||(0|t)!==t||t<0)&&g(o,"opsLimit must be an unsigned integer"),A(o,r,"memLimit"),("number"!=typeof r||(0|r)!==r||r<0)&&g(o,"memLimit must be an unsigned integer");var u=0!=(0|n._crypto_pwhash_str_needs_rehash(s,t,0,r));return m(o),u}function wt(e,t,r){var a=[];b(r),"string"!=typeof e&&g(a,"hashed_password must be a string"),e=i(e+"\0"),null!=s&&e.length-1!==s&&g(a,"invalid hashed_password length");var o=h(e),s=e.length-1;a.push(o);var c=h(t=w(a,t,"password")),u=t.length;a.push(c);var d=0==(0|n._crypto_pwhash_str_verify(o,c,u,0));return m(a),d}function xt(e,t,r){var a=[];b(r),e=w(a,e,"privateKey");var i,o=0|n._crypto_scalarmult_scalarbytes();e.length!==o&&g(a,"invalid privateKey length"),i=h(e),a.push(i),t=w(a,t,"publicKey");var s,c=0|n._crypto_scalarmult_bytes();t.length!==c&&g(a,"invalid publicKey length"),s=h(t),a.push(s);var u=new p(0|n._crypto_scalarmult_bytes()),d=u.address;if(a.push(d),0==(0|n._crypto_scalarmult(d,i,s))){var l=f(u,r);return m(a),l}v(a,"weak public key")}function _t(e,t){var r=[];b(t),e=w(r,e,"privateKey");var a,i=0|n._crypto_scalarmult_scalarbytes();e.length!==i&&g(r,"invalid privateKey length"),a=h(e),r.push(a);var o=new p(0|n._crypto_scalarmult_bytes()),s=o.address;if(r.push(s),0==(0|n._crypto_scalarmult_base(s,a))){var c=f(o,t);return m(r),c}v(r,"unknown error")}function kt(e,t,r){var a=[];b(r),e=w(a,e,"n");var i,o=0|n._crypto_scalarmult_ed25519_scalarbytes();e.length!==o&&g(a,"invalid n length"),i=h(e),a.push(i),t=w(a,t,"p");var s,c=0|n._crypto_scalarmult_ed25519_bytes();t.length!==c&&g(a,"invalid p length"),s=h(t),a.push(s);var u=new p(0|n._crypto_scalarmult_ed25519_bytes()),d=u.address;if(a.push(d),0==(0|n._crypto_scalarmult_ed25519(d,i,s))){var l=f(u,r);return m(a),l}v(a,"invalid point or scalar is 0")}function It(e,t){var r=[];b(t),e=w(r,e,"scalar");var a,i=0|n._crypto_scalarmult_ed25519_scalarbytes();e.length!==i&&g(r,"invalid scalar length"),a=h(e),r.push(a);var o=new p(0|n._crypto_scalarmult_ed25519_bytes()),s=o.address;if(r.push(s),0==(0|n._crypto_scalarmult_ed25519_base(s,a))){var c=f(o,t);return m(r),c}v(r,"scalar is 0")}function St(e,t){var r=[];b(t),e=w(r,e,"scalar");var a,i=0|n._crypto_scalarmult_ed25519_scalarbytes();e.length!==i&&g(r,"invalid scalar length"),a=h(e),r.push(a);var o=new p(0|n._crypto_scalarmult_ed25519_bytes()),s=o.address;if(r.push(s),0==(0|n._crypto_scalarmult_ed25519_base_noclamp(s,a))){var c=f(o,t);return m(r),c}v(r,"scalar is 0")}function Et(e,t,r){var a=[];b(r),e=w(a,e,"n");var i,o=0|n._crypto_scalarmult_ed25519_scalarbytes();e.length!==o&&g(a,"invalid n length"),i=h(e),a.push(i),t=w(a,t,"p");var s,c=0|n._crypto_scalarmult_ed25519_bytes();t.length!==c&&g(a,"invalid p length"),s=h(t),a.push(s);var u=new p(0|n._crypto_scalarmult_ed25519_bytes()),d=u.address;if(a.push(d),0==(0|n._crypto_scalarmult_ed25519_noclamp(d,i,s))){var l=f(u,r);return m(a),l}v(a,"invalid point or scalar is 0")}function Ct(e,t,r){var a=[];b(r),e=w(a,e,"scalar");var i,o=0|n._crypto_scalarmult_ristretto255_scalarbytes();e.length!==o&&g(a,"invalid scalar length"),i=h(e),a.push(i),t=w(a,t,"element");var s,c=0|n._crypto_scalarmult_ristretto255_bytes();t.length!==c&&g(a,"invalid element length"),s=h(t),a.push(s);var u=new p(0|n._crypto_scalarmult_ristretto255_bytes()),d=u.address;if(a.push(d),0==(0|n._crypto_scalarmult_ristretto255(d,i,s))){var l=f(u,r);return m(a),l}v(a,"result is identity element")}function Tt(e,t){var r=[];b(t),e=w(r,e,"scalar");var a,i=0|n._crypto_core_ristretto255_scalarbytes();e.length!==i&&g(r,"invalid scalar length"),a=h(e),r.push(a);var o=new p(0|n._crypto_core_ristretto255_bytes()),s=o.address;if(r.push(s),0==(0|n._crypto_scalarmult_ristretto255_base(s,a))){var c=f(o,t);return m(r),c}v(r,"scalar is 0")}function Ot(e,t,r,a){var i=[];b(a);var o=h(e=w(i,e,"message")),s=e.length;i.push(o),t=w(i,t,"nonce");var c,u=0|n._crypto_secretbox_noncebytes();t.length!==u&&g(i,"invalid nonce length"),c=h(t),i.push(c),r=w(i,r,"key");var d,l=0|n._crypto_secretbox_keybytes();r.length!==l&&g(i,"invalid key length"),d=h(r),i.push(d);var y=new p(0|s),A=y.address;i.push(A);var x=new p(0|n._crypto_secretbox_macbytes()),_=x.address;if(i.push(_),0==(0|n._crypto_secretbox_detached(A,_,o,s,0,c,d))){var k=f({mac:x,cipher:y},a);return m(i),k}v(i,"invalid usage")}function Pt(e,t,r,a){var i=[];b(a);var o=h(e=w(i,e,"message")),s=e.length;i.push(o),t=w(i,t,"nonce");var c,u=0|n._crypto_secretbox_noncebytes();t.length!==u&&g(i,"invalid nonce length"),c=h(t),i.push(c),r=w(i,r,"key");var d,l=0|n._crypto_secretbox_keybytes();r.length!==l&&g(i,"invalid key length"),d=h(r),i.push(d);var y=new p(s+n._crypto_secretbox_macbytes()|0),A=y.address;if(i.push(A),0==(0|n._crypto_secretbox_easy(A,o,s,0,c,d))){var x=f(y,a);return m(i),x}v(i,"invalid usage")}function Mt(e){var t=[];b(e);var r=new p(0|n._crypto_secretbox_keybytes()),a=r.address;t.push(a),n._crypto_secretbox_keygen(a);var i=f(r,e);return m(t),i}function Bt(e,t,r,a,i){var o=[];b(i);var s=h(e=w(o,e,"ciphertext")),c=e.length;o.push(s),t=w(o,t,"mac");var u,d=0|n._crypto_secretbox_macbytes();t.length!==d&&g(o,"invalid mac length"),u=h(t),o.push(u),r=w(o,r,"nonce");var l,y=0|n._crypto_secretbox_noncebytes();r.length!==y&&g(o,"invalid nonce length"),l=h(r),o.push(l),a=w(o,a,"key");var A,x=0|n._crypto_secretbox_keybytes();a.length!==x&&g(o,"invalid key length"),A=h(a),o.push(A);var _=new p(0|c),k=_.address;if(o.push(k),0==(0|n._crypto_secretbox_open_detached(k,s,u,c,0,l,A))){var I=f(_,i);return m(o),I}v(o,"wrong secret key for the given ciphertext")}function Nt(e,t,r,a){var i=[];b(a),e=w(i,e,"ciphertext");var o,s=n._crypto_secretbox_macbytes(),c=e.length;c>>0;return m([]),t}function gn(e,t){var r=[];b(t);for(var a=n._malloc(24),i=0;i<6;i++)n.setValue(a+4*i,n.Runtime.addFunction(e[["implementation_name","random","stir","uniform","buf","close"][i]]),"i32");0!=(0|n._randombytes_set_implementation(a))&&v(r,"unsupported implementation"),m(r)}function An(e){b(e),n._randombytes_stir()}function wn(e,t){var r=[];b(t),A(r,e,"upper_bound"),("number"!=typeof e||(0|e)!==e||e<0)&&g(r,"upper_bound must be an unsigned integer");var a=n._randombytes_uniform(e)>>>0;return m(r),a}function xn(){var e=n._sodium_version_string(),t=n.UTF8ToString(e);return m([]),t}return p.prototype.to_Uint8Array=function(){var e=new Uint8Array(this.length);return e.set(n.HEAPU8.subarray(this.address,this.address+this.length)),e},e.add=function(e,t){if(!(e instanceof Uint8Array&&t instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can added");var n=e.length,r=0,a=0;if(t.length!=e.length)throw new TypeError("Arguments must have the same length");for(a=0;a>=8,r+=e[a]+t[a],e[a]=255&r},e.base64_variants=c,e.compare=function(e,t){if(!(e instanceof Uint8Array&&t instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be compared");if(e.length!==t.length)throw new TypeError("Only instances of identical length can be compared");for(var n=0,r=1,a=e.length;a-- >0;)n|=t[a]-e[a]>>8&r,r&=(t[a]^e[a])-1>>8;return n+n+r-1},e.from_base64=function(e,t){t=u(t);var r,a=[],i=new p(3*(e=w(a,e,"input")).length/4),o=h(e),s=y(4),c=y(4);return a.push(o),a.push(i.address),a.push(i.result_bin_len_p),a.push(i.b64_end_p),0!==n._sodium_base642bin(i.address,i.length,o,e.length,0,s,c,t)&&v(a,"invalid input"),n.getValue(c,"i32")-o!==e.length&&v(a,"incomplete input"),i.length=n.getValue(s,"i32"),r=i.to_Uint8Array(),m(a),r},e.from_hex=function(e){var t,r=[],a=new p((e=w(r,e,"input")).length/2),i=h(e),o=y(4);return r.push(i),r.push(a.address),r.push(a.hex_end_p),0!==n._sodium_hex2bin(a.address,a.length,i,e.length,0,0,o)&&v(r,"invalid input"),n.getValue(o,"i32")-i!==e.length&&v(r,"incomplete input"),t=a.to_Uint8Array(),m(r),t},e.from_string=i,e.increment=function(e){if(!(e instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be incremented");for(var t=256,n=0,r=e.length;n>=8,t+=e[n],e[n]=255&t},e.is_zero=function(e){if(!(e instanceof Uint8Array))throw new TypeError("Only Uint8Array instances can be checked");for(var t=0,n=0,r=e.length;n 0");var r,a=[],i=y(4),o=1,s=0,c=0|e.length,u=new p(c+t);a.push(i),a.push(u.address);for(var d=u.address,f=u.address+c+t;d>>48|c>>>32|c>>>16|c))-1>>16);return 0!==n._sodium_pad(i,u.address,e.length,t,u.length)&&v(a,"internal error"),u.length=n.getValue(i,"i32"),r=u.to_Uint8Array(),m(a),r},e.unpad=function(e,t){if(!(e instanceof Uint8Array))throw new TypeError("buffer must be a Uint8Array");if((t|=0)<=0)throw new Error("block size must be > 0");var r=[],a=h(e),i=y(4);return r.push(a),r.push(i),0!==n._sodium_unpad(i,a,e.length,t)&&v(r,"unsupported/invalid padding"),e=(e=new Uint8Array(e)).subarray(0,n.getValue(i,"i32")),m(r),e},e.ready=a,e.symbols=function(){return Object.keys(e).sort()},e.to_base64=d,e.to_hex=s,e.to_string=o,e},void 0!==(i=r.apply(t,a))&&(e.exports=i),s&&o.sodium.ready.then((function(){s(o.sodium)}))},84168:function(e,t,n){var r,a,i=n(32375),o=n(5886).Buffer;r=function(t){"use strict";var r;void 0===(r=t)&&(r={});var a=r;"object"!=typeof a.sodium&&("object"==typeof n.g?a=n.g:"object"==typeof window&&(a=window));var s=r;return r.ready=new Promise((function(t,r){(d=s).onAbort=r,d.print=function(e){},d.printErr=function(e){},d.onRuntimeInitialized=function(){try{d._crypto_secretbox_keybytes(),t()}catch(e){r(e)}},d.useBackupModule=function(){return new Promise((function(t,r){(d={}).onAbort=r,d.onRuntimeInitialized=function(){Object.keys(s).forEach((function(e){"getRandomValue"!==e&&delete s[e]})),Object.keys(d).forEach((function(e){s[e]=d[e]})),t()};var a,c,u,d=void 0!==d?d:{},f=Object.assign({},d),l="object"==typeof window,b="function"==typeof importScripts,p="object"==typeof i&&"object"==typeof i.versions&&"string"==typeof i.versions.node,h="";if(p){var y=n(42448),m=n(74048);h=b?m.dirname(h)+"/":"//",a=function(e,t){var n=ee(e);return n?t?n:n.toString():(e=J(e)?new URL(e):m.normalize(e),y.readFileSync(e,t?void 0:"utf8"))},u=function(e){var t=a(e,!0);return t.buffer||(t=new Uint8Array(t)),t},c=function(e,t,n){var r=ee(e);r&&t(r),e=J(e)?new URL(e):m.normalize(e),y.readFile(e,(function(e,r){e?n(e):t(r.buffer)}))},i.argv.length>1&&i.argv[1].replace(/\\/g,"/"),i.argv.slice(2),e.exports=d,d.inspect=function(){return"[Emscripten Module object]"}}else(l||b)&&(b?h=self.location.href:"undefined"!=typeof document&&document.currentScript&&(h=document.currentScript.src),h=0!==h.indexOf("blob:")?h.substr(0,h.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText}catch(t){var n=ee(e);if(n)return function(e){for(var t=[],n=0;n255&&(r&=255),t.push(String.fromCharCode(r))}return t.join("")}(n);throw t}},b&&(u=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}catch(t){var n=ee(e);if(n)return n;throw t}}),c=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){if(200==r.status||0==r.status&&r.response)t(r.response);else{var a=ee(e);a?t(a.buffer):n()}},r.onerror=n,r.send(null)});d.print;var v,g=d.printErr||void 0;Object.assign(d,f),f=null,d.arguments&&d.arguments,d.thisProgram&&d.thisProgram,d.quit&&d.quit,d.wasmBinary&&(v=d.wasmBinary),d.noExitRuntime;var A,w={Memory:function(e){this.buffer=new ArrayBuffer(65536*e.initial)},Module:function(e){},Instance:function(e,t){this.exports=function(e){for(var t,n=new Uint8Array(123),r=25;r>=0;--r)n[48+r]=52+r,n[65+r]=r,n[97+r]=26+r;function a(e,t,r){for(var a,i,o=0,s=t,c=r.length,u=t+(3*c>>2)-("="==r[c-2])-("="==r[c-1]);o>4,s>2),s>>0>z>>>0?c+1|0:c)|0,c=(ie=(d=z)>>>0>(z=z+ie|0)>>>0?c+1|0:c)+ye|0,oe=he=z+pe|0,he=c=he>>>0>>0?c+1|0:c,z=de(z^(u[e+80|0]|u[e+81|0]<<8|u[e+82|0]<<16|u[e+83|0]<<24)^-79577749,ie^(u[e+84|0]|u[e+85|0]<<8|u[e+86|0]<<16|u[e+87|0]<<24)^528734635,32),ke=c=v,c=c+1013904242|0,ie=z,W=c=(z=z-23791573|0)>>>0<4271175723?c+1|0:c,fe=de(z^ue,c^fe,40),c=(c=he)+(he=v)|0,ue=de(ie^(m=ue=fe+oe|0),ke^(g=m>>>0>>0?c+1|0:c),48),c=W+(Z=v)|0,_=c=(ue=z+(A=ue)|0)>>>0>>0?c+1|0:c,ue=c=de(fe^(x=ue),he^c,1),W=z=v,he=u[t+24|0]|u[t+25|0]<<8|u[t+26|0]<<16|u[t+27|0]<<24,ke=c=u[t+28|0]|u[t+29|0]<<8|u[t+30|0]<<16|u[t+31|0]<<24,be=u[e+8|0]|u[e+9|0]<<8|u[e+10|0]<<16|u[e+11|0]<<24,z=(fe=u[t+16|0]|u[t+17|0]<<8|u[t+18|0]<<16|u[t+19|0]<<24)+(ie=u[e+40|0]|u[e+41|0]<<8|u[e+42|0]<<16|u[e+43|0]<<24)|0,c=(Ce=u[t+20|0]|u[t+21|0]<<8|u[t+22|0]<<16|u[t+23|0]<<24)+(Oe=u[e+44|0]|u[e+45|0]<<8|u[e+46|0]<<16|u[e+47|0]<<24)|0,c=(u[e+12|0]|u[e+13|0]<<8|u[e+14|0]<<16|u[e+15|0]<<24)+(z>>>0>>0?c+1|0:c)|0,c=ke+(oe=(d=z)>>>0>(z=z+be|0)>>>0?c+1|0:c)|0,c=(be=z+he|0)>>>0>>0?c+1|0:c,d=de(z^(u[e+72|0]|u[e+73|0]<<8|u[e+74|0]<<16|u[e+75|0]<<24)^725511199,oe^(u[e+76|0]|u[e+77|0]<<8|u[e+78|0]<<16|u[e+79|0]<<24)^-1694144372,32),p=de(ie^(f=d-2067093701|0),Oe^(L=(N=z=v)-((d>>>0<2067093701)+1150833018|0)|0),40),c=(H=v)+c|0,c=(B=(k=z=p+be|0)>>>0

>>0?c+1|0:c)+W|0,c=(k>>>0>(z=k+ue|0)>>>0?c+1|0:c)+J|0,c=(ie=(l=z)>>>0>(z=z+se|0)>>>0?c+1|0:c)+q|0,j=q=z+n|0,y=c=q>>>0>>0?c+1|0:c,w=ue,xe=W,W=z,oe=ie,ue=u[t+8|0]|u[t+9|0]<<8|u[t+10|0]<<16|u[t+11|0]<<24,z=c=u[t+12|0]|u[t+13|0]<<8|u[t+14|0]<<16|u[t+15|0]<<24,Oe=c=u[0|e]|u[e+1|0]<<8|u[e+2|0]<<16|u[e+3|0]<<24,i=ie=u[e+4|0]|u[e+5|0]<<8|u[e+6|0]<<16|u[e+7|0]<<24,J=c,c=(Ie=u[t+4|0]|u[t+5|0]<<8|u[t+6|0]<<16|u[t+7|0]<<24)+(b=u[e+36|0]|u[e+37|0]<<8|u[e+38|0]<<16|u[e+39|0]<<24)|0,c=i+((q=u[e+32|0]|u[e+33|0]<<8|u[e+34|0]<<16|u[e+35|0]<<24)>>>0>(l=q+(ie=u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24)|0)>>>0?c+1|0:c)|0,c=(be=(J=l+J|0)>>>0>>0?c+1|0:c)+z|0,Ae=l=J+ue|0,l=c=l>>>0>>0?c+1|0:c,h=q,q=de(J^(u[0|(c=e- -64|0)]|u[c+1|0]<<8|u[c+2|0]<<16|u[c+3|0]<<24)^-1377402159,be^(u[c+4|0]|u[c+5|0]<<8|u[c+6|0]<<16|u[c+7|0]<<24)^1359893119,32),be=c=v,c=c+1779033703|0,J=q,O=c=(q=q-205731576|0)>>>0<4089235720?c+1|0:c,b=de(h^(I=q),c^b,40),c=(D=v)+l|0,h=de(J^(l=q=b+Ae|0),be^(E=b>>>0>l>>>0?c+1|0:c),48),c=de(h^W,(X=v)^oe,32),G=q=v,U=c,r=c=u[t+60|0]|u[t+61|0]<<8|u[t+62|0]<<16|u[t+63|0]<<24,be=Ae=u[t+56|0]|u[t+57|0]<<8|u[t+58|0]<<16|u[t+59|0]<<24,T=u[e+24|0]|u[e+25|0]<<8|u[e+26|0]<<16|u[e+27|0]<<24,q=(oe=u[t+48|0]|u[t+49|0]<<8|u[t+50|0]<<16|u[t+51|0]<<24)+(J=u[e+56|0]|u[e+57|0]<<8|u[e+58|0]<<16|u[e+59|0]<<24)|0,c=(Se=u[t+52|0]|u[t+53|0]<<8|u[t+54|0]<<16|u[t+55|0]<<24)+(R=u[e+60|0]|u[e+61|0]<<8|u[e+62|0]<<16|u[e+63|0]<<24)|0,c=(u[e+28|0]|u[e+29|0]<<8|u[e+30|0]<<16|u[e+31|0]<<24)+(q>>>0>>0?c+1|0:c)|0,c=r+(W=(C=q)>>>0>(q=T+q|0)>>>0?c+1|0:c)|0,c=(T=q+be|0)>>>0>>0?c+1|0:c,W=de(q^(u[e+88|0]|u[e+89|0]<<8|u[e+90|0]<<16|u[e+91|0]<<24)^327033209,W^(u[e+92|0]|u[e+93|0]<<8|u[e+94|0]<<16|u[e+95|0]<<24)^1541459225,32),J=de(J^(be=W+1595750129|0),(C=R)^(R=(P=q=v)-((W>>>0<2699217167)+1521486533|0)|0),40),c=(te=v)+c|0,q=de((T=q=J+T|0)^W,P^(C=T>>>0>>0?c+1|0:c),48),c=R+($=v)|0,M=c=(q=be+(R=q)|0)>>>0>>0?c+1|0:c,c=G+c|0,K=w^(W=U+(P=q)|0),w=c=W>>>0

>>0?c+1|0:c,be=de(K,c^xe,40),c=(xe=v)+y|0,q=de(j=U^(y=q=be+j|0),G^(U=y>>>0>>0?c+1|0:c),48),c=w+(re=v)|0,G=c=(w=W+(j=q)|0)>>>0>>0?c+1|0:c,q=(F=de(w^be,xe^c,1))+(W=u[t+72|0]|u[t+73|0]<<8|u[t+74|0]<<16|u[t+75|0]<<24)|0,c=(ve=v)+(xe=u[t+76|0]|u[t+77|0]<<8|u[t+78|0]<<16|u[t+79|0]<<24)|0,_e=q,Q=q>>>0>>0?c+1|0:c,Y=me,q=u[t+96|0]|u[t+97|0]<<8|u[t+98|0]<<16|u[t+99|0]<<24,be=c=u[t+100|0]|u[t+101|0]<<8|u[t+102|0]<<16|u[t+103|0]<<24,J=(c=m)+(m=de(P^J,M^te,1))|0,c=(P=v)+g|0,c=(m>>>0>J>>>0?c+1|0:c)+be|0,c=(g=(g=J)>>>0>(J=q+J|0)>>>0?c+1|0:c)+Y|0,K=M=J+ne|0,M=c=M>>>0>>0?c+1|0:c,k=de(d^k,B^N,48),B=c=de(k^J,(N=v)^g,32),c=O+X|0,c=(te=J=v)+(I=(J=h+I|0)>>>0>>0?c+1|0:c)|0,O=c=(g=J)>>>0>(h=g+B|0)>>>0?c+1|0:c,m=de(h^m,P^c,40),c=(X=v)+M|0,c=(P=m>>>0>(M=J=m+K|0)>>>0?c+1|0:c)+Q|0,c=(d=M>>>0>(J=M+_e|0)>>>0?c+1|0:c)+we|0,_e=Q=J+ce|0,Q=c=Q>>>0>>0?c+1|0:c,K=J,Y=d,J=u[t+116|0]|u[t+117|0]<<8|u[t+118|0]<<16|u[t+119|0]<<24,t=u[t+112|0]|u[t+113|0]<<8|u[t+114|0]<<16|u[t+115|0]<<24,b=de(b^g,I^D,1),c=(D=v)+C|0,c=((d=b+T|0)>>>0>>0?c+1|0:c)+J|0,c=(g=(I=d)>>>0>(d=t+d|0)>>>0?c+1|0:c)+we|0,Te=I=d+ce|0,I=c=I>>>0>>0?c+1|0:c,c=de(d^A,g^Z,32),ee=d=v,A=c,g=d,c=N+L|0,k=d=f+k|0,T=c=d>>>0>>0?c+1|0:c,c=c+g|0,C=d=d+A|0,Z=c=k>>>0>d>>>0?c+1|0:c,g=de(d^b,D^c,40),c=(D=v)+I|0,A=de((d=g+Te|0)^A,ee^(f=d>>>0>>0?c+1|0:c),48),c=de(A^K,(Te=v)^Y,32),ee=b=v,I=c,K=b,p=de(p^k,T^H,1),c=E+(k=v)|0,c=((b=l)>>>0>(l=l+p|0)>>>0?c+1|0:c)+ae|0,c=(l=(b=l+V|0)>>>0>>0?c+1|0:c)+xe|0,Y=E=b+W|0,E=c=E>>>0>>0?c+1|0:c,T=p,b=de(b^R,l^$,32),c=(R=v)+_|0,x=de(T^(l=p=b+x|0),(_=b>>>0>l>>>0?c+1|0:c)^k,40),c=($=v)+E|0,k=p=x+Y|0,p=de(b^p,R^(E=p>>>0>>0?c+1|0:c),48),c=_+(o=v)|0,_=p,R=c=(p=l+p|0)>>>0>>0?c+1|0:c,c=c+K|0,c=(T=p)>>>0>(p=p+I|0)>>>0?c+1|0:c,K=p,p^=F,F=c,b=de(p,ve^c,40),c=(ve=v)+Q|0,Q=p=b+_e|0,c=a+(Y=b>>>0>p>>>0?c+1|0:c)|0,_e=p=p+n|0,N=c=p>>>0>>0?c+1|0:c,p=d,L=ne,H=me,d=de(B^M,P^te,48),c=O+(te=v)|0,B=d,O=c=(l=h+d|0)>>>0>>0?c+1|0:c,d=de(l^m,X^c,1),c=(h=v)+H|0,c=((m=d+L|0)>>>0>>0?c+1|0:c)+f|0,c=Se+(p=(f=p+m|0)>>>0>>0?c+1|0:c)|0,M=m=f+oe|0,m=c=m>>>0>>0?c+1|0:c,f=de(f^_,p^o,32),c=G+(P=v)|0,_=f,w=c=(f=w+f|0)>>>0>>0?c+1|0:c,p=de(d^f,c^h,40),c=(c=m)+(m=v)|0,h=d=p+M|0,d=de(d^_,P^(M=d>>>0

>>0?c+1|0:c,p=d,B=c,c=c+f|0,E=d=d+I|0,T=c=p>>>0>d>>>0?c+1|0:c,f=de(d^j,c^m,40),c=(c=M)+(M=v)|0,j=d=f+L|0,Q=c=d>>>0>>0?c+1|0:c,c=c+x|0,Y=c=(m=d+Te|0)>>>0>>0?c+1|0:c,x=c,d=de(l^p,B^te,1),c=z+(l=v)|0,c=k+((p=d+ue|0)>>>0>>0?c+1|0:c)|0,c=be+(g=(p=p+g|0)>>>0>>0?c+1|0:c)|0,L=k=p+q|0,k=c=k>>>0>>0?c+1|0:c,B=d,c=de(p^P,g^X,32),H=d=v,p=c,g=d,c=D+F|0,P=d=h+K|0,F=c=d>>>0>>0?c+1|0:c,c=c+g|0,c=(h=d+p|0)>>>0>>0?c+1|0:c,d=h^B,B=c,g=de(d,c^l,40),c=(X=v)+k|0,l=d=g+L|0,K=de(d^p,H^(k=d>>>0>>0?c+1|0:c),48),c=de(K^m,(te=v)^x,32),Te=d=v,L=c,x=d,d=de(b^P,F^ve,1),c=U+(b=v)|0,c=Ie+((p=d+y|0)>>>0>>0?c+1|0:c)|0,c=(y=(p=p+ie|0)>>>0>>0?c+1|0:c)+Ce|0,P=U=p+fe|0,U=c=U>>>0

>>0?c+1|0:c,p=de(p^O,y^re,32),c=G+(F=v)|0,O=p,y=b,b=c=(p=w+p|0)>>>0>>0?c+1|0:c,y=de(d^p,y^c,40),c=(re=v)+U|0,w=d=y+P|0,d=de(P=d^O,F^(O=d>>>0>>0?c+1|0:c),48),c=b+(D=v)|0,b=d,U=d=p+d|0,P=c=d>>>0

>>0?c+1|0:c,c=c+x|0,G=c=(x=d+L|0)>>>0>>0?c+1|0:c,p=de(x^N,_e^c,40),c=Y+(F=v)|0,c=((d=p+m|0)>>>0>>0?c+1|0:c)+me|0,m=d,Y=d=d+ne|0,N=c=m>>>0>d>>>0?c+1|0:c,H=ae,m=de(I^j,Q^ee,48),c=(ve=v)+T|0,I=d=m+E|0,c=de(d^f,(E=d>>>0>>0?c+1|0:c)^M,1),M=f=v,d=c,c=k+a|0,c=((l=l+n|0)>>>0>>0?c+1|0:c)+f|0,c=(l=(f=d+l|0)>>>0>>0?c+1|0:c)+H|0,T=k=f+V|0,k=c=k>>>0>>0?c+1|0:c,f=de(f^b,l^D,32),c=Z+(j=v)|0,A=c=(b=f+A|0)>>>0>>0?c+1|0:c,l=de(d^b,c^M,40),c=(Q=v)+k|0,k=d=l+T|0,f=de(d^f,j^(M=d>>>0>>0?c+1|0:c),48),c=A+(T=v)|0,j=c=(A=f+b|0)>>>0>>0?c+1|0:c,d=de(l^A,Q^c,1),c=(Q=v)+N|0,c=xe+((b=d+Y|0)>>>0>>0?c+1|0:c)|0,c=(l=(b=b+W|0)>>>0>>0?c+1|0:c)+S|0,_e=S=b+le|0,S=c=S>>>0>>0?c+1|0:c,Z=d,H=b,D=l,b=pe,d=de(y^U,P^re,1),c=R+(y=v)|0,c=((l=_)>>>0>(_=d+_|0)>>>0?c+1|0:c)+ye|0,c=Ce+(l=(b=b+_|0)>>>0<_>>>0?c+1|0:c)|0,R=_=b+fe|0,U=c=_>>>0>>0?c+1|0:c,_=d,l=c=de(b^m,l^ve,32),c=B+te|0,c=(P=d=v)+(h=(d=h+K|0)>>>0>>0?c+1|0:c)|0,B=c=(m=d+l|0)>>>0>>0?c+1|0:c,_=de(m^_,c^y,40),c=(te=v)+U|0,U=de(R=(b=_+R|0)^l,P^(l=b>>>0<_>>>0?c+1|0:c),48),c=de(U^H,(re=v)^D,32),ve=y=v,R=c,P=y,d=de(d^g,h^X,1),c=be+(y=v)|0,c=O+((h=d+q|0)>>>0>>0?c+1|0:c)|0,c=Ie+(w=(h=h+w|0)>>>0>>0?c+1|0:c)|0,H=g=h+ie|0,g=c=g>>>0>>0?c+1|0:c,O=d,K=y,h=de(h^C,w^$,32),c=(C=v)+E|0,y=d=h+I|0,w=de(d^O,(I=d>>>0>>0?c+1|0:c)^K,40),c=(X=v)+g|0,O=d=w+H|0,d=de(d^h,C^(E=d>>>0>>0?c+1|0:c),48),c=I+(H=v)|0,g=d,I=d=y+d|0,C=c=d>>>0>>0?c+1|0:c,c=c+P|0,P=d=d+R|0,h=Q,Q=c=I>>>0>d>>>0?c+1|0:c,h=de(d^Z,h^c,40),c=(c=S)+(S=v)|0,K=d=h+_e|0,Z=c=d>>>0>>0?c+1|0:c,y=l,d=de(L^Y,N^Te,48),c=G+($=v)|0,G=d,l=(d=x+d|0)^p,p=c=d>>>0>>0?c+1|0:c,l=de(l,c^F,1),c=(F=v)+y|0,c=r+((b=l+b|0)>>>0>>0?c+1|0:c)|0,c=(y=(b=b+Ae|0)>>>0>>0?c+1|0:c)+z|0,Y=x=b+ue|0,x=c=x>>>0>>0?c+1|0:c,b=de(b^g,y^H,32),c=j+(N=v)|0,j=b,A=c=(y=A+b|0)>>>0>>0?c+1|0:c,l=de(l^y,F^c,40),c=(c=x)+(x=v)|0,g=b=l+Y|0,b=de(L=b^j,N^(j=b>>>0>>0?c+1|0:c),48),c=A+(_e=v)|0,F=b,Y=c=(A=y+b|0)>>>0>>0?c+1|0:c,b=de(l^A,x^c,1),c=(x=v)+Z|0,c=a+((l=b+K|0)>>>0>>0?c+1|0:c)|0,c=J+(y=(l=l+n|0)>>>0>>0?c+1|0:c)|0,Te=N=t+l|0,N=c=N>>>0>>0?c+1|0:c,L=b,H=x,x=l,D=y,b=de(w^I,C^X,1),c=(y=v)+M|0,c=ge+((l=b+k|0)>>>0>>0?c+1|0:c)|0,c=(w=(l=l+se|0)>>>0>>0?c+1|0:c)+J|0,M=k=t+l|0,k=c=k>>>0>>0?c+1|0:c,I=b,l=c=de(l^G,w^$,32),w=b=v,c=B+re|0,B=c=(b=m+U|0)>>>0>>0?c+1|0:c,c=c+w|0,c=(m=b)>>>0>(b=b+l|0)>>>0?c+1|0:c,U=b,b^=I,I=c,y=de(b,c^y,40),c=(X=v)+k|0,w=de(k=(b=y+M|0)^l,w^(l=b>>>0>>0?c+1|0:c),48),c=de(w^x,(c=D)^(D=v),32),$=x=v,k=c,M=p,p=f,c=de(m^_,B^te,1),C=f=v,m=c,c=E+ke|0,c=((_=O+he|0)>>>0>>0?c+1|0:c)+f|0,_=c=(f=m+_|0)>>>0<_>>>0?c+1|0:c,p=de(f^p,c^T,32),c=(c=M)+(M=v)|0,m=de((d=p+d|0)^m,C^(B=d>>>0

>>0?c+1|0:c),40),c=_+(te=v)|0,O=m,c=Se+((E=f)>>>0>(f=f+m|0)>>>0?c+1|0:c)|0,E=c=(m=f+oe|0)>>>0>>0?c+1|0:c,f=de(p^m,M^c,48),c=B+(re=v)|0,T=d,p=f,B=d=d+f|0,M=c=T>>>0>d>>>0?c+1|0:c,c=c+x|0,T=c=(x=d+k|0)>>>0>>0?c+1|0:c,d=(_=de(x^L,c^H,40))+Te|0,c=(Te=v)+N|0,C=d,G=d>>>0<_>>>0?c+1|0:c,d=de(R^K,Z^ve,48),c=(R=v)+Q|0,P=f=d+P|0,L=S,S=c=f>>>0>>0?c+1|0:c,c=de(f^h,L^c,1),K=f=v,h=c,c=l+r|0,c=((b=b+Ae|0)>>>0>>0?c+1|0:c)+f|0,c=xe+(b=(f=b+h|0)>>>0>>0?c+1|0:c)|0,Z=l=f+W|0,l=c=l>>>0>>0?c+1|0:c,f=de(f^p,b^re,32),c=Y+(N=v)|0,Q=f,f=(p=A+f|0)^h,h=c=p>>>0>>0?c+1|0:c,b=de(f,K^c,40),c=(c=l)+(l=v)|0,K=f=b+Z|0,f=de(A=f^Q,N^(Q=f>>>0>>0?c+1|0:c),48),c=h+(re=v)|0,Y=f,p=c=(f=p+f|0)>>>0

>>0?c+1|0:c,b=de(f^b,l^c,1),c=(A=v)+G|0,c=we+((l=b+C|0)>>>0>>0?c+1|0:c)|0,c=(h=(l=l+ce|0)>>>0>>0?c+1|0:c)+ae|0,ee=Z=l+V|0,Z=c=Z>>>0>>0?c+1|0:c,N=b,L=l,H=h,b=de(O^B,M^te,1),c=(M=v)+me|0,c=j+(b>>>0>(l=b+ne|0)>>>0?c+1|0:c)|0,h=c=(l=l+g|0)>>>0>>0?c+1|0:c,c=de(d^l,c^R,32),R=d=v,g=c,c=I+D|0,c=(d=w+U|0)>>>0>>0?c+1|0:c,w=d,B=c,c=R+c|0,I=d=d+g|0,O=c=w>>>0>d>>>0?c+1|0:c,d=de(d^b,M^c,40),c=h+(D=v)|0,U=d,c=be+((d=l+d|0)>>>0>>0?c+1|0:c)|0,c=(d=d+q|0)>>>0>>0?c+1|0:c,M=d,d^=g,g=c,h=de(d,R^c,48),c=de(h^L,(c=H)^(H=v),32),te=d=v,R=c,j=d,d=de(y^w,B^X,1),c=ke+(l=v)|0,c=E+((b=d+he|0)>>>0>>0?c+1|0:c)|0,c=(y=(b=b+m|0)>>>0>>0?c+1|0:c)+z|0,E=w=b+ue|0,w=c=w>>>0>>0?c+1|0:c,m=d,B=l,d=(b=de(b^F,y^_e,32))+P|0,c=(P=v)+S|0,l=d,y=de(y=d^m,(m=d>>>0>>0?c+1|0:c)^B,40),c=(X=v)+w|0,w=d=y+E|0,b=de(d^b,P^(S=d>>>0>>0?c+1|0:c),48),c=m+(B=v)|0,E=d=b+l|0,P=c=d>>>0>>0?c+1|0:c,c=c+j|0,j=c=(m=d+R|0)>>>0>>0?c+1|0:c,l=de(m^N,c^A,40),c=(F=v)+Z|0,Z=d=l+ee|0,N=c=d>>>0>>0?c+1|0:c,d=f,A=p,p=b,f=de(k^C,G^$,48),c=T+(ee=v)|0,k=f,x=c=(b=x+f|0)>>>0>>0?c+1|0:c,c=de(b^_,Te^c,1),T=f=v,_=c,c=g+Ee|0,c=((g=M+le|0)>>>0>>0?c+1|0:c)+f|0,g=c=(f=g+_|0)>>>0>>0?c+1|0:c,p=de(f^p,c^B,32),c=(M=v)+A|0,_=de((d=p+d|0)^_,T^(A=d>>>0

>>0?c+1|0:c),40),c=g+(C=v)|0,c=Ie+((g=f)>>>0>(f=f+_|0)>>>0?c+1|0:c)|0,B=c=(g=f+ie|0)>>>0>>0?c+1|0:c,f=de(p^g,M^c,48),c=A+($=v)|0,M=f,T=c=(A=d+f|0)>>>0>>0?c+1|0:c,d=de(A^_,C^c,1),c=(_=v)+N|0,c=ge+((f=d+Z|0)>>>0>>0?c+1|0:c)|0,c=we+(p=(f=f+se|0)>>>0>>0?c+1|0:c)|0,ve=C=f+ce|0,C=c=C>>>0>>0?c+1|0:c,G=d,L=f,d=de(y^E,P^X,1),c=(y=v)+Q|0,c=Ce+((f=d+K|0)>>>0>>0?c+1|0:c)|0,c=Se+(E=(f=f+fe|0)>>>0>>0?c+1|0:c)|0,K=P=f+oe|0,P=c=P>>>0>>0?c+1|0:c,Q=d,c=de(f^k,E^ee,32),ee=d=v,f=c,c=O+H|0,I=d=h+I|0,k=c=d>>>0>>0?c+1|0:c,c=ee+c|0,O=c=(h=d+f|0)>>>0>>0?c+1|0:c,y=de(h^Q,c^y,40),c=(H=v)+P|0,E=d=y+K|0,Q=de(d^f,ee^(P=d>>>0>>0?c+1|0:c),48),c=de(Q^L,(ee=v)^p,32),X=d=v,K=c,p=d,f=pe,d=de(I^U,k^D,1),c=S+(k=v)|0,c=((I=w)>>>0>(w=d+w|0)>>>0?c+1|0:c)+ye|0,c=ge+(w=(f=f+w|0)>>>0>>0?c+1|0:c)|0,I=S=f+se|0,S=c=S>>>0>>0?c+1|0:c,f=de(f^Y,w^re,32),c=x+(U=v)|0,x=f,c=(f=b+f|0)>>>0>>0?c+1|0:c,b=k,k=c,b=de(d^f,b^c,40),c=(D=v)+S|0,w=d=b+I|0,d=de(d^x,U^(S=d>>>0>>0?c+1|0:c),48),c=k+(L=v)|0,k=d,I=d=f+d|0,U=c=d>>>0>>0?c+1|0:c,c=c+p|0,c=(x=d+K|0)>>>0>>0?c+1|0:c,d=x^G,G=c,_=de(d,c^_,40),c=(re=v)+C|0,C=d=_+ve|0,Y=d>>>0<_>>>0?c+1|0:c,d=de(R^Z,N^te,48),c=j+(te=v)|0,R=d,c=(d=m+d|0)>>>0>>0?c+1|0:c,m=d,j=c,c=de(d^l,c^F,1),F=d=v,p=c,c=P+xe|0,c=((f=E+W|0)>>>0>>0?c+1|0:c)+d|0,c=Ie+(f=(d=f+p|0)>>>0>>0?c+1|0:c)|0,E=l=d+ie|0,l=c=l>>>0>>0?c+1|0:c,d=de(d^k,f^L,32),c=T+(P=v)|0,k=d,A=c=(f=A+d|0)>>>0>>0?c+1|0:c,p=de(f^p,F^c,40),c=(F=v)+l|0,E=d=p+E|0,d=de(l=d^k,P^(k=d>>>0

>>0?c+1|0:c),48),c=A+(ve=v)|0,A=d,T=c=(l=f+d|0)>>>0>>0?c+1|0:c,d=de(l^p,F^c,1),c=(P=v)+Y|0,c=ke+((f=d+C|0)>>>0>>0?c+1|0:c)|0,c=(p=(f=f+he|0)>>>0>>0?c+1|0:c)+me|0,_e=F=f+ne|0,F=c=F>>>0>>0?c+1|0:c,Z=d,N=f,L=p,d=de(b^I,D^U,1),c=Ce+(p=v)|0,c=B+((f=d+fe|0)>>>0>>0?c+1|0:c)|0,c=Ee+(b=(f=f+g|0)>>>0>>0?c+1|0:c)|0,U=g=f+le|0,g=c=g>>>0>>0?c+1|0:c,B=d,I=p,c=de(f^R,b^te,32),R=d=v,b=c,f=d,c=O+ee|0,c=(d=h+Q|0)>>>0>>0?c+1|0:c,h=d,O=c,c=c+f|0,c=(p=d+b|0)>>>0>>0?c+1|0:c,d=p^B,B=c,d=de(d,c^I,40),c=(c=g)+(g=v)|0,I=f=d+U|0,U=c=f>>>0>>0?c+1|0:c,R=de(f^b,R^c,48),c=de(R^N,(c=L)^(L=v),32),D=f=v,Q=c,f=de(h^y,O^H,1),c=(h=v)+ye|0,c=S+((b=f+pe|0)>>>0>>0?c+1|0:c)|0,c=r+(y=(b=b+w|0)>>>0>>0?c+1|0:c)|0,H=w=b+Ae|0,w=c=w>>>0>>0?c+1|0:c,S=f,O=h,b=de(b^M,y^$,32),c=(M=v)+j|0,h=f=b+m|0,f=(y=de(f^S,(m=f>>>0>>0?c+1|0:c)^O,40))+H|0,c=(H=v)+w|0,S=f,f=de(f^b,M^(O=f>>>0>>0?c+1|0:c),48),c=m+(ee=v)|0,M=f,j=f=h+f|0,N=c=f>>>0>>0?c+1|0:c,c=D+c|0,c=(b=f+Q|0)>>>0>>0?c+1|0:c,f=P,P=c,h=de(b^Z,f^c,40),c=(te=v)+F|0,w=f=h+_e|0,c=de(f^Q,D^(F=f>>>0>>0?c+1|0:c),48),D=f=v,Q=c,f=d,c=B+L|0,B=d=p+R|0,R=c=d>>>0

>>0?c+1|0:c,c=de(d^f,c^g,1),p=f=v,d=c,c=O+a|0,c=((m=S+n|0)>>>0>>0?c+1|0:c)+f|0,c=be+(m=(f=d+m|0)>>>0>>0?c+1|0:c)|0,L=g=f+q|0,g=c=g>>>0>>0?c+1|0:c,S=d,O=p,d=de(C^K,Y^X,48),c=G+(X=v)|0,C=d,c=(d=x+d|0)>>>0>>0?c+1|0:c,x=d,f=de(f^A,m^ve,32),G=c,c=c+(K=v)|0,p=d=f+d|0,m=de(d^S,(A=d>>>0>>0?c+1|0:c)^O,40),c=(Y=v)+g|0,g=d=m+L|0,d=de(d^f,K^(S=d>>>0>>0?c+1|0:c),48),c=A+($=v)|0,O=d,K=c=(A=p+d|0)>>>0

>>0?c+1|0:c,d=de(m^A,Y^c,1),c=Ie+(L=v)|0,Y=d,ve=d=ie+d|0,p=c=d>>>0>>0?c+1|0:c,d=de(_^x,G^re,1),c=(m=v)+U|0,c=Se+((f=d+I|0)>>>0>>0?c+1|0:c)|0,c=ae+(x=(f=f+oe|0)>>>0>>0?c+1|0:c)|0,G=_=f+V|0,_=c=_>>>0>>0?c+1|0:c,I=m,f=de(f^M,x^ee,32),c=T+(ee=v)|0,U=f,c=(m=l+f|0)>>>0>>0?c+1|0:c,l=I,I=c,x=de(d^m,l^c,40),c=(re=v)+_|0,M=d=x+G|0,c=(T=d>>>0>>0?c+1|0:c)+p|0,_=c=(p=d+ve|0)>>>0>>0?c+1|0:c,G=c=de(p^Q,c^D,32),Z=d=v,d=de(y^j,N^H,1),c=(l=v)+k|0,c=J+((f=d+E|0)>>>0>>0?c+1|0:c)|0,c=(y=(f=t+f|0)>>>0>>0?c+1|0:c)+z|0,N=k=f+ue|0,k=c=k>>>0>>0?c+1|0:c,E=d,j=l,f=de(f^C,y^X,32),c=(C=v)+R|0,l=d=f+B|0,d=(y=de(d^E,(B=d>>>0>>0?c+1|0:c)^j,40))+N|0,c=(N=v)+k|0,k=d,d=de(d^f,C^(E=d>>>0>>0?c+1|0:c),48),c=B+(X=v)|0,B=d,C=c=(d=l+d|0)>>>0>>0?c+1|0:c,c=c+Z|0,R=c=(l=d)>>>0>(d=d+G|0)>>>0?c+1|0:c,f=de(d^Y,L^c,40),c=_+(L=v)|0,j=f,c=a+((f=p+f|0)>>>0

>>0?c+1|0:c)|0,Y=f=f+n|0,p=f^G,G=c=f>>>0>>0?c+1|0:c,f=de(p,Z^c,48),c=R+(Z=v)|0,R=c=(_=d+f|0)>>>0>>0?c+1|0:c,d=c=de(_^j,L^c,1),j=p=v,p=de(l^y,C^N,1),c=S+(y=v)|0,c=Se+((l=p+g|0)>>>0>>0?c+1|0:c)|0,c=ge+(g=(l=l+oe|0)>>>0>>0?c+1|0:c)|0,L=S=l+se|0,S=c=S>>>0>>0?c+1|0:c,C=p,N=y,c=P+D|0,c=(p=b+Q|0)>>>0>>0?c+1|0:c,P=p,U=de(M^U,T^ee,48),y=de(l^U,g^(ee=v),32),M=c,c=c+(ve=v)|0,g=p=y+p|0,p=de(p^C,(T=p>>>0>>0?c+1|0:c)^N,40),c=(C=v)+S|0,N=c=(b=p+L|0)>>>0

>>0?c+1|0:c,c=c+j|0,c=r+((Q=b)>>>0>(b=d+b|0)>>>0?c+1|0:c)|0,c=(l=(b=b+Ae|0)>>>0>>0?c+1|0:c)+ye|0,_e=S=b+pe|0,L=c=S>>>0>>0?c+1|0:c,H=d,D=b,c=de(h^P,M^te,1),h=b=v,d=c,c=E+Ce|0,c=((S=k+fe|0)>>>0>>0?c+1|0:c)+b|0,c=be+(S=(b=d+S|0)>>>0>>0?c+1|0:c)|0,M=k=b+q|0,k=c=k>>>0>>0?c+1|0:c,E=d,c=de(b^O,S^$,32),P=d=v,b=c,S=d,c=I+ee|0,I=d=m+U|0,O=c=d>>>0>>0?c+1|0:c,c=c+S|0,c=(m=d+b|0)>>>0>>0?c+1|0:c;d=m^E,E=c,S=de(d,c^h,40),c=(ee=v)+k|0,U=de(k=(d=S+M|0)^b,P^(b=d>>>0>>0?c+1|0:c),48),c=de(c=U^D,(D=v)^l,32),te=l=v,M=c,k=l,l=de(x^I,O^re,1),c=ae+(x=v)|0,c=F+((h=l+V|0)>>>0>>0?c+1|0:c)|0,c=ke+(w=(h=h+w|0)>>>0>>0?c+1|0:c)|0,O=I=h+he|0,I=c=I>>>0>>0?c+1|0:c,h=de(h^B,w^X,32),c=K+(P=v)|0,B=h,A=c=(h=A+h|0)>>>0>>0?c+1|0:c,w=de(l^h,c^x,40),c=(X=v)+I|0,x=l=w+O|0,l=de(I=l^B,P^(B=l>>>0>>0?c+1|0:c),48),c=A+($=v)|0,I=l,O=l=h+l|0,P=c=l>>>0>>0?c+1|0:c,c=c+k|0,c=(h=l+M|0)>>>0>>0?c+1|0:c,l=j,j=c,A=de(h^H,l^c,40),c=(F=v)+L|0,k=l=A+_e|0,l=de(L=l^M,te^(M=l>>>0>>0?c+1|0:c),48),c=j+(te=v)|0,j=l,h=c=(l=h+l|0)>>>0>>0?c+1|0:c,F=c=de(l^A,F^c,1),re=c,K=A=v,A=b,b=p,p=de(y^Q,N^ve,48),c=T+(ve=v)|0,T=p,c=(p=g+p|0)>>>0>>0?c+1|0:c,g=d,d=b^p,b=c,d=de(d,c^C,1),c=(C=v)+A|0,c=Ee+(d>>>0>(y=g+d|0)>>>0?c+1|0:c)|0,c=me+(g=(y=y+le|0)>>>0>>0?c+1|0:c)|0,Q=A=y+ne|0,A=c=A>>>0>>0?c+1|0:c,y=de(y^I,g^$,32),c=R+(N=v)|0,I=c=(g=y+_|0)>>>0<_>>>0?c+1|0:c,_=de(d^g,C^c,40),c=($=v)+A|0,C=d=_+Q|0,y=de(d^y,N^(R=d>>>0<_>>>0?c+1|0:c),48),c=I+(Q=v)|0,N=d=y+g|0,I=d,L=c=d>>>0>>0?c+1|0:c,g=p,A=b,c=E+D|0,c=(d=m+U|0)>>>0>>0?c+1|0:c,m=d,d^=S,S=c,c=de(d,ee^c,1),H=d=v,E=c,b=c,c=B+z|0,c=((p=x+ue|0)>>>0>>0?c+1|0:c)+d|0,x=c=(d=p)>>>0>(p=b+p|0)>>>0?c+1|0:c,b=de(f^p,c^Z,32),c=(c=A)+(A=v)|0,U=d=b+g|0,f=de(f=d^E,H^(E=d>>>0>>0?c+1|0:c),40),c=x+(Z=v)|0,c=xe+((d=f+p|0)>>>0

>>0?c+1|0:c)|0,H=c=(g=d+W|0)>>>0>>0?c+1|0:c,A=de(b^g,A^c,48),_e=c=v,d=de(w^O,P^X,1),c=(b=v)+G|0,c=we+((p=d+Y|0)>>>0>>0?c+1|0:c)|0,c=J+(w=(p=p+ce|0)>>>0>>0?c+1|0:c)|0,G=x=t+p|0,O=c=x>>>0>>0?c+1|0:c,P=d,x=de(p^T,w^ve,32),c=(X=v)+S|0,S=d=x+m|0,p=de(d^P,(T=d>>>0>>0?c+1|0:c)^b,40),c=(c=O)+(O=v)|0,P=d=p+G|0,G=c=d>>>0

>>0?c+1|0:c,b=c,c=J+K|0,c=((w=t+F|0)>>>0>>0?c+1|0:c)+b|0,B=c=(b=d+w|0)>>>0>>0?c+1|0:c,d=de(b^A,_e^c,32),c=(F=v)+L|0,m=de((w=d+I|0)^re,(c=w>>>0>>0?c+1|0:c)^K,40),K=c,c=me+(I=v)|0,c=B+((Y=m+ne|0)>>>0>>0?c+1|0:c)|0,c=(B=b+Y|0)>>>0>>0?c+1|0:c,b=F,F=c,b=de(d^B,b^c,48),c=(c=K)+(K=v)|0,d=m^(w=b+w|0),m=c=w>>>0>>0?c+1|0:c,Y=c=de(d,c^I,1),re=c,D=d=v,I=l,ee=h,l=p,p=de(x^P,G^X,48),c=T+(P=v)|0,x=d=p+S|0,S=c=d>>>0>>0?c+1|0:c,l=de(d^l,c^O,1),c=(G=v)+Ee|0,c=H+((d=l+le|0)>>>0>>0?c+1|0:c)|0,g=c=(h=d+g|0)>>>0>>0?c+1|0:c,d=de(h^y,c^Q,32),c=(O=v)+ee|0,I=y=d+I|0,T=c=y>>>0>>0?c+1|0:c,l=de(l^y,c^G,40),c=ge+(ve=v)|0,G=l,c=g+((l=se+l|0)>>>0>>0?c+1|0:c)|0,h=c=(l=l+h|0)>>>0>>0?c+1|0:c,y=de(d^l,c^O,48),c=(c=T)+(T=v)|0,Q=d=y+I|0,O=d,H=c=d>>>0>>0?c+1|0:c,c=E+_e|0,I=(d=A+U|0)^f,f=c=d>>>0>>0?c+1|0:c,c=de(I,c^Z,1),Z=g=v,I=c,c=R+be|0,c=((A=C+q|0)>>>0>>0?c+1|0:c)+g|0,E=c=(E=A)>>>0>(A=A+I|0)>>>0?c+1|0:c,U=g=de(A^j,te^c,32),C=c=v,c=c+S|0,R=g=g+x|0,j=c=U>>>0>g>>>0?c+1|0:c,g=de(g^I,Z^c,40),c=ye+(Z=v)|0,c=E+((x=g+pe|0)>>>0>>0?c+1|0:c)|0,x=c=(I=A)>>>0>(A=A+x|0)>>>0?c+1|0:c,I=de(A^U,c^C,48),te=c=v,S=c,_=de(_^N,L^$,1),E=c=v,U=p,c=c+z|0,c=M+((p=_+ue|0)>>>0>>0?c+1|0:c)|0,c=(p=p+k|0)>>>0>>0?c+1|0:c,k=p^U,U=c,k=de(k,c^P,32),c=($=v)+f|0,M=d=k+d|0,f=de(d^_,(f=E)^(E=d>>>0>>0?c+1|0:c),40),c=we+(C=v)|0,c=U+((d=f+ce|0)>>>0>>0?c+1|0:c)|0,U=d=d+p|0,P=c=d>>>0

>>0?c+1|0:c,p=c,c=D+Se|0,c=((_=Y+oe|0)>>>0>>0?c+1|0:c)+p|0,Y=c=(p=d+_|0)>>>0<_>>>0?c+1|0:c,d=de(p^I,c^S,32),c=(N=v)+H|0,S=de((_=d+O|0)^re,(c=_>>>0>>0?c+1|0:c)^D,40),L=O=v,D=c,c=O+ke|0,c=Y+((O=S+he|0)>>>0>>0?c+1|0:c)|0,Y=c=(O=p+O|0)>>>0

>>0?c+1|0:c,p=de(d^O,c^N,48),c=(N=v)+D|0,d=(_=p+_|0)^S,S=c=_>>>0

>>0?c+1|0:c,L=c=de(d,c^L,1),D=d=v,ee=w,X=y,y=f,f=de(k^U,P^$,48),c=(k=v)+E|0,E=d=f+M|0,U=c=d>>>0>>0?c+1|0:c,y=de(d^y,c^C,1),c=(C=v)+Ie|0,c=((d=y+ie|0)>>>0>>0?c+1|0:c)+x|0,A=c=(w=d+A|0)>>>0>>0?c+1|0:c,d=de(w^X,c^T,32),c=(x=v)+m|0,M=m=d+ee|0,T=c=m>>>0>>0?c+1|0:c,y=de(y^m,c^C,40),c=r+(X=v)|0,C=y,c=A+((y=Ae+y|0)>>>0>>0?c+1|0:c)|0,P=c=(m=y+w|0)>>>0>>0?c+1|0:c,y=de(d^m,c^x,48),c=(c=T)+(T=v)|0,M=d=y+M|0,ee=c=d>>>0>>0?c+1|0:c,A=b,w=l,c=j+te|0,b=c=(d=I+R|0)>>>0>>0?c+1|0:c,l=de(d^g,c^Z,1),c=(g=v)+ae|0,c=((x=l+V|0)>>>0>>0?c+1|0:c)+h|0,h=de(A^(w=w+x|0),(c=w>>>0>>0?c+1|0:c)^K,32),x=c,I=l,c=(A=v)+U|0,c=(l=h+E|0)>>>0>>0?c+1|0:c,E=l,l^=I,I=c,l=de(l,c^g,40),c=a+(U=v)|0,c=((g=l+n|0)>>>0>>0?c+1|0:c)+x|0,R=c=(x=g)>>>0>(g=g+w|0)>>>0?c+1|0:c,A=de(h^g,c^A,48),te=c=v,w=c,h=de(Q^G,H^ve,1),j=c=v,G=b,c=c+xe|0,c=F+((b=h+W|0)>>>0>>0?c+1|0:c)|0,x=k,k=c=(b=b+B|0)>>>0>>0?c+1|0:c,x=de(f^b,x^c,32),c=($=v)+G|0,B=d=x+d|0,f=de(d^h,(f=j)^(j=d>>>0>>0?c+1|0:c),40),c=Ce+(G=v)|0,c=k+((d=f+fe|0)>>>0>>0?c+1|0:c)|0,F=d=d+b|0,Q=c=d>>>0>>0?c+1|0:c,b=c,c=D+be|0,c=((h=q+L|0)>>>0>>0?c+1|0:c)+b|0,k=c=(b=d+h|0)>>>0>>0?c+1|0:c,d=de(b^A,c^w,32),c=(K=v)+ee|0,w=de((h=d+M|0)^L,(c=h>>>0>>0?c+1|0:c)^D,40),L=c,c=z+(Z=v)|0,c=k+((H=w+ue|0)>>>0>>0?c+1|0:c)|0,c=(k=b+H|0)>>>0>>0?c+1|0:c,b=K,K=c,b=de(d^k,b^c,48),c=(c=L)+(L=v)|0,d=(h=b+h|0)^w,w=c=h>>>0>>0?c+1|0:c,Z=c=de(d,c^Z,1),H=d=v,D=y,y=f,f=de(x^F,Q^$,48),c=(c=j)+(j=v)|0,B=d=f+B|0,x=G,G=c=d>>>0>>0?c+1|0:c,y=de(d^y,x^c,1),c=(F=v)+ke|0,c=R+((d=y+he|0)>>>0>>0?c+1|0:c)|0,x=g,g=d+g|0,d=T,T=c=x>>>0>g>>>0?c+1|0:c,d=de(g^D,d^c,32),c=(c=S)+(S=v)|0,R=c=(x=d+_|0)>>>0>>0?c+1|0:c,_=x,y=de(y^x,c^F,40),c=xe+($=v)|0,F=y,c=T+((y=W+y|0)>>>0>>0?c+1|0:c)|0,T=c=(x=y+g|0)>>>0>>0?c+1|0:c,y=de(d^x,c^S,48),c=(c=R)+(R=v)|0,Q=d=y+_|0,D=c=d>>>0>>0?c+1|0:c,_=p,c=I+te|0,p=c=(d=A+E|0)>>>0>>0?c+1|0:c,l=de(d^l,c^U,1),c=me+(A=v)|0,c=P+((g=l+ne|0)>>>0>>0?c+1|0:c)|0,I=(g=m+g|0)^_,_=c=g>>>0>>0?c+1|0:c,m=de(I,c^N,32),S=c=v,I=l,c=c+G|0,c=(l=m+B|0)>>>0>>0?c+1|0:c,E=l,l^=I,I=c,l=de(l,c^A,40),c=a+(U=v)|0,c=_+((A=l+n|0)>>>0>>0?c+1|0:c)|0,P=c=(A=g+A|0)>>>0>>0?c+1|0:c,_=de(m^A,c^S,48),te=c=v,g=c,m=de(C^M,X^ee,1),B=c=v,M=p,c=c+r|0,c=Y+((p=m+Ae|0)>>>0>>0?c+1|0:c)|0,O=c=(p=p+O|0)>>>0>>0?c+1|0:c,S=de(f^p,c^j,32),c=(re=v)+M|0,M=d=S+d|0,f=de(d^m,(C=d>>>0>>0?c+1|0:c)^B,40),c=J+(j=v)|0,c=O+((d=t+f|0)>>>0>>0?c+1|0:c)|0,O=d=d+p|0,G=c=d>>>0

>>0?c+1|0:c,p=c,c=H+we|0,c=((m=Z+ce|0)>>>0>>0?c+1|0:c)+p|0,B=c=(p=d+m|0)>>>0>>0?c+1|0:c,d=de(p^_,c^g,32),c=(Y=v)+D|0,g=de((m=d+Q|0)^Z,(c=m>>>0>>0?c+1|0:c)^H,40),N=c,c=Ee+(Z=v)|0,c=B+((H=g+le|0)>>>0>>0?c+1|0:c)|0,c=(B=p+H|0)>>>0

>>0?c+1|0:c,p=Y,Y=c,p=de(d^B,p^c,48),c=(c=N)+(N=v)|0,d=(m=p+m|0)^g,g=c=m>>>0

>>0?c+1|0:c,Z=c=de(d,c^Z,1),ve=c,H=d=v,ee=h,X=y,h=f,f=de(S^O,G^re,48),c=(S=v)+C|0,O=d=f+M|0,M=c=d>>>0>>0?c+1|0:c,h=de(d^h,c^j,1),c=(j=v)+ye|0,c=P+((d=h+pe|0)>>>0>>0?c+1|0:c)|0,A=c=(y=d+A|0)>>>0>>0?c+1|0:c,d=de(y^X,c^R,32),c=(C=v)+w|0,R=c=(w=d+ee|0)>>>0>>0?c+1|0:c,h=de(h^w,c^j,40),c=Ie+(re=v)|0,P=h,c=A+((h=ie+h|0)>>>0>>0?c+1|0:c)|0,A=h+y|0,h=C,C=c=A>>>0>>0?c+1|0:c,h=de(d^A,h^c,48),c=(c=R)+(R=v)|0,j=d=h+w|0,G=c=d>>>0>>0?c+1|0:c,y=b,c=I+te|0,b=c=(d=_+E|0)>>>0<_>>>0?c+1|0:c,l=de(d^l,c^U,1),c=(_=v)+Ce|0,c=T+((w=l+fe|0)>>>0>>0?c+1|0:c)|0,y=de(y^(w=w+x|0),(c=w>>>0>>0?c+1|0:c)^L,32),I=x=v,x=c,E=l,c=I+M|0,c=(l=y+O|0)>>>0>>0?c+1|0:c,O=l,l^=E,E=c,l=de(l,c^_,40),c=ge+(U=v)|0,c=((_=l+se|0)>>>0>>0?c+1|0:c)+x|0,T=I,I=c=(x=w+_|0)>>>0<_>>>0?c+1|0:c,_=de(y^x,T^c,48),te=c=v,w=c,y=de(Q^F,D^$,1),M=c=v,T=b,c=c+ae|0,c=K+((b=y+V|0)>>>0>>0?c+1|0:c)|0,k=c=(b=b+k|0)>>>0>>0?c+1|0:c,S=de(f^b,c^S,32),c=($=v)+T|0,T=d=S+d|0,f=de(d^y,(f=M)^(M=d>>>0>>0?c+1|0:c),40),c=Se+(F=v)|0,c=k+((d=f+oe|0)>>>0>>0?c+1|0:c)|0,Q=d=d+b|0,K=c=d>>>0>>0?c+1|0:c,b=c,c=H+a|0,c=((y=Z+n|0)>>>0>>0?c+1|0:c)+b|0,k=c=(b=d+y|0)>>>0>>0?c+1|0:c,d=de(b^_,c^w,32),c=(Z=v)+G|0,w=de((y=d+j|0)^ve,(c=y>>>0>>0?c+1|0:c)^H,40),H=c,c=ke+(L=v)|0,c=k+((D=w+he|0)>>>0>>0?c+1|0:c)|0,c=(k=b+D|0)>>>0>>0?c+1|0:c,b=Z,Z=c,b=de(d^k,b^c,48),c=(c=H)+(H=v)|0,d=(y=b+y|0)^w,w=c=y>>>0>>0?c+1|0:c,L=c=de(d,c^L,1),D=d=v,ee=m,X=h,h=f,f=de(S^Q,K^$,48),c=(S=v)+M|0,M=d=f+T|0,T=c=d>>>0>>0?c+1|0:c,h=de(d^h,c^F,1),c=(F=v)+Ie|0,c=I+((d=h+ie|0)>>>0>>0?c+1|0:c)|0,x=c=(m=d+x|0)>>>0>>0?c+1|0:c,d=de(m^X,c^R,32),c=(I=v)+g|0,R=c=(g=d+ee|0)>>>0>>0?c+1|0:c,h=de(h^g,c^F,40),c=ae+($=v)|0,F=h,c=x+((h=V+h|0)>>>0>>0?c+1|0:c)|0,x=h+m|0,h=I,I=c=x>>>0>>0?c+1|0:c,h=de(d^x,h^c,48),c=(c=R)+(R=v)|0,Q=d=h+g|0,K=c=d>>>0>>0?c+1|0:c,m=p,c=E+te|0,p=c=(d=_+O|0)>>>0<_>>>0?c+1|0:c,l=de(d^l,c^U,1),c=Se+(_=v)|0,c=C+((g=l+oe|0)>>>0>>0?c+1|0:c)|0,A=c=(g=g+A|0)>>>0>>0?c+1|0:c,m=de(m^g,c^N,32),O=c=v,E=l,c=c+T|0,c=(l=m+M|0)>>>0>>0?c+1|0:c,U=l,l^=E,E=c,l=de(l,c^_,40),c=we+(M=v)|0,c=A+((_=l+ce|0)>>>0>>0?c+1|0:c)|0,c=(A=g+_|0)>>>0>>0?c+1|0:c,g=O,O=c,_=de(m^A,g^c,48),te=c=v,g=c,m=de(P^j,G^re,1),T=c=v,C=p,c=c+J|0,c=Y+((p=t+m|0)>>>0>>0?c+1|0:c)|0,B=c=(p=p+B|0)>>>0>>0?c+1|0:c,S=de(f^p,c^S,32),c=(re=v)+C|0,C=d=S+d|0,f=de(d^m,(f=T)^(T=d>>>0>>0?c+1|0:c),40),c=xe+(P=v)|0,c=B+((d=f+W|0)>>>0>>0?c+1|0:c)|0,j=d=d+p|0,G=c=d>>>0

>>0?c+1|0:c,p=c,c=D+me|0,c=((m=L+ne|0)>>>0>>0?c+1|0:c)+p|0,B=c=(p=d+m|0)>>>0>>0?c+1|0:c,d=de(p^_,c^g,32),c=(Y=v)+K|0,g=de((m=d+Q|0)^L,(c=m>>>0>>0?c+1|0:c)^D,40),L=c,c=r+(N=v)|0,c=B+((D=g+Ae|0)>>>0>>0?c+1|0:c)|0,c=(B=p+D|0)>>>0

>>0?c+1|0:c,p=Y,Y=c,p=de(d^B,p^c,48),c=(c=L)+(L=v)|0,d=(m=p+m|0)^g,g=c=m>>>0

>>0?c+1|0:c,N=c=de(d,c^N,1),D=d=v,ee=y,X=h,h=f,f=de(S^j,G^re,48),c=(S=v)+T|0,T=d=f+C|0,C=c=d>>>0>>0?c+1|0:c,h=de(d^h,c^P,1),c=(P=v)+be|0,c=O+((d=h+q|0)>>>0>>0?c+1|0:c)|0,A=c=(y=d+A|0)>>>0>>0?c+1|0:c,d=de(y^X,c^R,32),c=(O=v)+w|0,R=c=(w=d+ee|0)>>>0>>0?c+1|0:c,h=de(h^w,c^P,40),c=Ce+(re=v)|0,P=h,c=A+((h=fe+h|0)>>>0>>0?c+1|0:c)|0,A=h+y|0,h=O,O=c=A>>>0>>0?c+1|0:c,h=de(d^A,h^c,48),c=(c=R)+(R=v)|0,j=d=h+w|0,G=c=d>>>0>>0?c+1|0:c,y=b,c=E+te|0,b=c=(d=_+U|0)>>>0<_>>>0?c+1|0:c,l=de(d^l,c^M,1),c=(_=v)+ge|0,c=I+((w=l+se|0)>>>0>>0?c+1|0:c)|0,x=c=(w=w+x|0)>>>0>>0?c+1|0:c,y=de(y^w,c^H,32),I=c=v,E=l,c=c+C|0,c=(l=y+T|0)>>>0>>0?c+1|0:c,U=l,l^=E,E=c,l=de(l,c^_,40),c=ye+(M=v)|0,c=x+((_=l+pe|0)>>>0>>0?c+1|0:c)|0,T=I,I=c=(x=w+_|0)>>>0>>0?c+1|0:c,_=de(y^x,T^c,48),te=c=v,w=c,y=de(Q^F,K^$,1),T=c=v,C=b,c=c+z|0,c=Z+((b=y+ue|0)>>>0>>0?c+1|0:c)|0,k=c=(b=b+k|0)>>>0>>0?c+1|0:c,S=de(f^b,c^S,32),c=($=v)+C|0,C=d=S+d|0,f=de(d^y,(f=T)^(T=d>>>0>>0?c+1|0:c),40),c=Ee+(F=v)|0,c=k+((d=f+le|0)>>>0>>0?c+1|0:c)|0,Q=d=d+b|0,K=c=d>>>0>>0?c+1|0:c,b=c,c=D+r|0,c=((y=N+Ae|0)>>>0>>0?c+1|0:c)+b|0,k=c=(b=d+y|0)>>>0>>0?c+1|0:c,d=de(b^_,c^w,32),c=(Z=v)+G|0,w=de((y=d+j|0)^N,(c=y>>>0>>0?c+1|0:c)^D,40),H=c,c=Se+(N=v)|0,c=k+((D=w+oe|0)>>>0>>0?c+1|0:c)|0,c=(k=b+D|0)>>>0>>0?c+1|0:c,b=Z,Z=c,b=de(d^k,b^c,48),c=(c=H)+(H=v)|0,d=(y=b+y|0)^w,w=c=y>>>0>>0?c+1|0:c,N=c=de(d,c^N,1),D=d=v,ee=m,X=h,h=f,f=de(S^Q,K^$,48),c=(S=v)+T|0,T=d=f+C|0,C=c=d>>>0>>0?c+1|0:c,h=de(d^h,c^F,1),c=(F=v)+z|0,c=I+((d=h+ue|0)>>>0>>0?c+1|0:c)|0,x=c=(m=d+x|0)>>>0>>0?c+1|0:c,d=de(m^X,c^R,32),c=(I=v)+g|0,R=c=(g=d+ee|0)>>>0>>0?c+1|0:c,h=de(h^g,c^F,40),c=ye+($=v)|0,F=h,c=x+((h=pe+h|0)>>>0>>0?c+1|0:c)|0,x=h+m|0,h=I,I=c=x>>>0>>0?c+1|0:c,h=de(d^x,h^c,48),c=(c=R)+(R=v)|0,Q=d=h+g|0,K=c=d>>>0>>0?c+1|0:c,m=p,c=E+te|0,p=c=(d=_+U|0)>>>0<_>>>0?c+1|0:c,l=de(d^l,c^M,1),c=ge+(_=v)|0,c=O+((g=l+se|0)>>>0>>0?c+1|0:c)|0,A=c=(g=g+A|0)>>>0>>0?c+1|0:c,m=de(m^g,c^L,32),O=c=v,E=l,c=c+C|0,c=(l=m+T|0)>>>0>>0?c+1|0:c,U=l,l^=E,E=c,l=de(l,c^_,40),c=Ce+(M=v)|0,c=A+((_=l+fe|0)>>>0>>0?c+1|0:c)|0,c=(A=g+_|0)>>>0>>0?c+1|0:c,g=O,O=c,_=de(m^A,g^c,48),te=c=v,g=c,m=de(P^j,G^re,1),T=c=v,C=p,c=c+ae|0,c=Y+((p=m+V|0)>>>0>>0?c+1|0:c)|0,B=c=(p=p+B|0)>>>0>>0?c+1|0:c,S=de(f^p,c^S,32),c=(re=v)+C|0,C=d=S+d|0,f=de(d^m,(f=T)^(T=d>>>0>>0?c+1|0:c),40),c=Ee+(P=v)|0,c=B+((d=f+le|0)>>>0>>0?c+1|0:c)|0,j=d=d+p|0,G=c=d>>>0

>>0?c+1|0:c,p=c,c=D+xe|0,c=((m=N+W|0)>>>0>>0?c+1|0:c)+p|0,B=c=(p=d+m|0)>>>0>>0?c+1|0:c,d=de(p^_,c^g,32),c=(Y=v)+K|0,g=de((m=d+Q|0)^N,(c=m>>>0>>0?c+1|0:c)^D,40),L=c,c=J+(N=v)|0,c=B+((D=t+g|0)>>>0>>0?c+1|0:c)|0,c=(B=p+D|0)>>>0

>>0?c+1|0:c,p=Y,Y=c,p=de(d^B,p^c,48),c=(c=L)+(L=v)|0,d=(m=p+m|0)^g,g=c=m>>>0

>>0?c+1|0:c,N=c=de(d,c^N,1),D=d=v,ee=y,X=h,h=f,f=de(S^j,G^re,48),c=(S=v)+T|0,T=d=f+C|0,C=c=d>>>0>>0?c+1|0:c,h=de(d^h,c^P,1),c=(P=v)+we|0,c=O+((d=h+ce|0)>>>0>>0?c+1|0:c)|0,A=c=(y=d+A|0)>>>0>>0?c+1|0:c,d=de(y^X,c^R,32),c=(O=v)+w|0,R=c=(w=d+ee|0)>>>0>>0?c+1|0:c,h=de(h^w,c^P,40),c=a+(re=v)|0,P=h,c=A+((h=n+h|0)>>>0>>0?c+1|0:c)|0,A=h+y|0,h=O,O=c=A>>>0>>0?c+1|0:c,h=de(d^A,h^c,48),c=(c=R)+(R=v)|0,j=d=h+w|0,G=c=d>>>0>>0?c+1|0:c,y=b,c=E+te|0,b=c=(d=_+U|0)>>>0<_>>>0?c+1|0:c,l=de(d^l,c^M,1),c=(_=v)+me|0,c=I+((w=l+ne|0)>>>0>>0?c+1|0:c)|0,x=c=(w=w+x|0)>>>0>>0?c+1|0:c,y=de(y^w,c^H,32),I=c=v,E=l,c=c+C|0,c=(l=y+T|0)>>>0>>0?c+1|0:c,U=l,l^=E,E=c,l=de(l,c^_,40),c=Ie+(M=v)|0,c=x+((_=l+ie|0)>>>0>>0?c+1|0:c)|0,T=I,I=c=(x=w+_|0)>>>0>>0?c+1|0:c,_=de(y^x,T^c,48),te=c=v,w=c,y=de(Q^F,K^$,1),T=c=v,C=b,c=c+ke|0,c=Z+((b=y+he|0)>>>0>>0?c+1|0:c)|0,k=c=(b=b+k|0)>>>0>>0?c+1|0:c,S=de(f^b,c^S,32),c=($=v)+C|0,C=d=S+d|0,f=de(d^y,(f=T)^(T=d>>>0>>0?c+1|0:c),40),c=be+(F=v)|0,c=k+((d=f+q|0)>>>0>>0?c+1|0:c)|0,Q=d=d+b|0,K=c=d>>>0>>0?c+1|0:c,b=c,c=D+Ee|0,c=((y=N+le|0)>>>0>>0?c+1|0:c)+b|0,k=c=(b=d+y|0)>>>0>>0?c+1|0:c,d=de(b^_,c^w,32),c=(Z=v)+G|0,w=de((y=d+j|0)^N,(c=y>>>0>>0?c+1|0:c)^D,40),H=c,c=ye+(N=v)|0,c=k+((D=w+pe|0)>>>0>>0?c+1|0:c)|0,c=(k=b+D|0)>>>0>>0?c+1|0:c,b=Z,Z=c,b=de(d^k,b^c,48),c=(c=H)+(H=v)|0,d=(y=b+y|0)^w,w=c=y>>>0>>0?c+1|0:c,N=c=de(d,c^N,1),D=d=v,ee=m,X=h,h=f,f=de(S^Q,K^$,48),c=(S=v)+T|0,T=d=f+C|0,C=c=d>>>0>>0?c+1|0:c,h=de(d^h,c^F,1),c=(F=v)+Se|0,c=I+((d=h+oe|0)>>>0>>0?c+1|0:c)|0,x=c=(m=d+x|0)>>>0>>0?c+1|0:c,d=de(m^X,c^R,32),c=(I=v)+g|0,R=c=(g=d+ee|0)>>>0>>0?c+1|0:c,h=de(h^g,c^F,40),c=r+($=v)|0,F=h,c=x+((h=Ae+h|0)>>>0>>0?c+1|0:c)|0,x=h+m|0,h=I,I=c=x>>>0>>0?c+1|0:c,h=de(d^x,h^c,48),c=(c=R)+(R=v)|0,Q=d=h+g|0,K=c=d>>>0>>0?c+1|0:c,m=p,c=E+te|0,p=c=(d=_+U|0)>>>0<_>>>0?c+1|0:c,l=de(d^l,c^M,1),c=Ie+(_=v)|0,c=O+((g=l+ie|0)>>>0>>0?c+1|0:c)|0,A=c=(g=g+A|0)>>>0>>0?c+1|0:c,m=de(m^g,c^L,32),O=c=v,E=l,c=c+C|0,c=(l=m+T|0)>>>0>>0?c+1|0:c,U=l,l^=E,E=c,l=de(l,c^_,40),c=z+(M=v)|0,c=A+((_=l+ue|0)>>>0>>0?c+1|0:c)|0,c=(A=g+_|0)>>>0>>0?c+1|0:c,g=O,O=c,_=de(m^A,g^c,48),te=c=v,g=c,m=de(P^j,G^re,1),T=c=v,C=p,c=c+Ce|0,c=Y+((p=m+fe|0)>>>0>>0?c+1|0:c)|0,B=c=(p=p+B|0)>>>0>>0?c+1|0:c,S=de(f^p,c^S,32),c=(re=v)+C|0,C=d=S+d|0,f=de(d^m,(f=T)^(T=d>>>0>>0?c+1|0:c),40),c=ke+(P=v)|0,c=B+((d=f+he|0)>>>0>>0?c+1|0:c)|0,j=d=d+p|0,G=c=d>>>0

>>0?c+1|0:c,p=c,c=D+ge|0,c=((m=N+se|0)>>>0>>0?c+1|0:c)+p|0,B=c=(p=d+m|0)>>>0>>0?c+1|0:c,d=de(p^_,c^g,32),c=(Y=v)+K|0,g=de((m=d+Q|0)^N,(c=m>>>0>>0?c+1|0:c)^D,40),L=c,c=a+(N=v)|0,c=B+((D=g+n|0)>>>0>>0?c+1|0:c)|0,c=(B=p+D|0)>>>0

>>0?c+1|0:c,p=Y,Y=c,p=de(d^B,p^c,48),c=(c=L)+(L=v)|0,d=(m=p+m|0)^g,g=c=m>>>0

>>0?c+1|0:c,N=c=de(d,c^N,1),D=d=v,ee=y,X=h,h=f,f=de(S^j,G^re,48),c=(S=v)+T|0,T=d=f+C|0,C=c=d>>>0>>0?c+1|0:c,h=de(d^h,c^P,1),c=(j=v)+ae|0,c=O+((d=h+V|0)>>>0>>0?c+1|0:c)|0,A=c=(y=d+A|0)>>>0>>0?c+1|0:c,d=de(y^X,c^R,32),c=(O=v)+w|0,R=w=d+ee|0,P=c=w>>>0>>0?c+1|0:c,h=de(h^w,c^j,40),c=xe+(ee=v)|0,j=h,c=A+((h=W+h|0)>>>0>>0?c+1|0:c)|0,w=h+y|0,h=O,O=c=w>>>0>>0?c+1|0:c,h=de(d^w,h^c,48),c=(c=P)+(P=v)|0,R=d=h+R|0,G=c=d>>>0>>0?c+1|0:c,y=b,c=E+te|0,b=c=(d=_+U|0)>>>0<_>>>0?c+1|0:c,l=de(d^l,c^M,1),c=(_=v)+J|0,c=I+((A=t+l|0)>>>0>>0?c+1|0:c)|0,x=c=(A=A+x|0)>>>0>>0?c+1|0:c,I=y=de(y^A,c^H,32),E=c=v,U=l,c=c+C|0,c=(l=y+T|0)>>>0>>0?c+1|0:c,M=l,l^=U,U=c,l=de(l,c^_,40),c=we+(T=v)|0,c=x+((y=l+ce|0)>>>0>>0?c+1|0:c)|0,C=(y=y+A|0)^I,I=c=y>>>0>>0?c+1|0:c,A=de(C,c^E,48),H=c=v,_=c,E=x=de(Q^F,K^$,1),C=c=v,F=b,c=c+be|0,c=Z+((b=x+q|0)>>>0>>0?c+1|0:c)|0,c=(b=b+k|0)>>>0>>0?c+1|0:c,k=S,S=c,x=de(f^b,k^c,32),c=(X=v)+F|0,k=d=x+d|0,f=de(f=d^E,(E=d>>>0>>0?c+1|0:c)^C,40),c=me+(C=v)|0,c=S+((d=f+ne|0)>>>0>>0?c+1|0:c)|0,S=d=d+b|0,F=c=d>>>0>>0?c+1|0:c,b=c,c=D+xe|0,c=((Z=W)>>>0>(W=N+W|0)>>>0?c+1|0:c)+b|0,xe=c=(d=d+W|0)>>>0>>0?c+1|0:c,W=de(d^A,c^_,32),c=(Q=v)+G|0,_=de((b=R+W|0)^N,(c=b>>>0>>0?c+1|0:c)^D,40),Z=c,c=we+(K=v)|0,c=xe+((N=ce)>>>0>(ce=_+ce|0)>>>0?c+1|0:c)|0,c=(ce=d+ce|0)>>>0>>0?c+1|0:c,d=W^ce,W=c;we=de(d,c^Q,48),c=(xe=v)+Z|0,b=c=(d=b+we|0)>>>0>>0?c+1|0:c,c=de(d^_,c^K,1),_=v,Q=c,K=m,m=ne,Z=me,me=de(x^S,F^X,48),c=(x=v)+E|0,E=m,k=c=(ne=k+me|0)>>>0>>0?c+1|0:c,m=de(f^(S=ne),c^C,1),c=(C=v)+Z|0,c=I+(m>>>0>(ne=E+m|0)>>>0?c+1|0:c)|0,f=c=(ne=y+ne|0)>>>0>>0?c+1|0:c,h=de(h^ne,c^P,32),c=(c=g)+(g=v)|0,I=y=h+K|0,E=c=y>>>0>>0?c+1|0:c,y=de(y^m,c^C,40),c=(C=v)+Se|0,c=(y>>>0>(oe=y+oe|0)>>>0?c+1|0:c)+f|0,f=c=(f=oe)>>>0>(oe=ne+oe|0)>>>0?c+1|0:c,h=de(h^oe,c^g,48),c=(m=v)+E|0,g=ne=h+I|0,Se=c=ne>>>0>>0?c+1|0:c,I=t,E=J,c=U+H|0,ne=c=(t=A+M|0)>>>0>>0?c+1|0:c,J=de(t^l,c^T,1),c=(A=v)+E|0,c=O+((l=I+J|0)>>>0>>0?c+1|0:c)|0,p=de((l=l+w|0)^p,(c=l>>>0>>0?c+1|0:c)^L,32),I=c,O=se,se=J,c=(w=v)+k|0,k=A,A=c=(J=p+S|0)>>>0

>>0?c+1|0:c,se=de(J^se,k^c,40),c=(S=v)+ge|0,c=((ge=O+se|0)>>>0>>0?c+1|0:c)+I|0,I=ge,l=p^(ge=l+ge|0),p=c=I>>>0>ge>>>0?c+1|0:c,c=de(l,c^w,48),U=l=v,w=c,k=V,I=ae,V=de(R^j,G^ee,1),E=c=v,c=c+Ee|0,c=Y+((V=(O=V)+le|0)>>>0>>0?c+1|0:c)|0,le=c=(V=B+V|0)>>>0>>0?c+1|0:c,ae=de(V^me,c^x,32),c=(B=v)+ne|0,ne=t=ae+t|0,me=de(t^O,(x=t>>>0>>0?c+1|0:c)^E,40),c=(c=I)+(I=v)|0,c=le+((t=me+k|0)>>>0>>0?c+1|0:c)|0,le=t=t+V|0,Ee=c=t>>>0>>0?c+1|0:c,V=c,c=_+Ie|0,c=((O=ie)>>>0>(ie=Q+ie|0)>>>0?c+1|0:c)+V|0,Ie=c=(V=t+ie|0)>>>0>>0?c+1|0:c,ie=de(w^V,c^l,32),c=(O=v)+Se|0,l=t=ie+g|0,t=de(t^Q,(k=_)^(_=t>>>0>>0?c+1|0:c),40),c=Ce+(E=v)|0,Ce=t,c=Ie+((t=fe+t|0)>>>0>>0?c+1|0:c)|0,c=(t=t+V|0)>>>0>>0?c+1|0:c,Ie=t,M=(u[e+8|0]|u[e+9|0]<<8|u[e+10|0]<<16|u[e+11|0]<<24)^t,k=c,T=c^(u[e+12|0]|u[e+13|0]<<8|u[e+14|0]<<16|u[e+15|0]<<24),V=de(ae^le,B^Ee,48),c=(le=v)+x|0,x=t=V+ne|0,Ee=c=t>>>0>>0?c+1|0:c,ae=pe,c=A+U|0,pe=c=(t=w+J|0)>>>0>>0?c+1|0:c,se=de(t^se,c^S,1),c=(w=v)+ye|0,c=((ae=se+ae|0)>>>0>>0?c+1|0:c)+f|0,ae=c=(ye=ae+oe|0)>>>0>>0?c+1|0:c,ne=de(ye^we,c^xe,32),c=(J=v)+Ee|0,oe=c=(fe=ne+x|0)>>>0>>0?c+1|0:c,we=ne,ne=de(se^fe,c^w,40),c=(f=v)+ke|0,c=(ne>>>0>(se=ne+he|0)>>>0?c+1|0:c)+ae|0,A=J,J=c=(ye=se+ye|0)>>>0>>0?c+1|0:c,se=de(we^(he=ye),A^c,48),c=(w=v)+oe|0,c=(ae=se+fe|0)>>>0>>0?c+1|0:c,fe=ae,ae^=M,s[e+8|0]=ae,s[e+9|0]=ae>>>8,s[e+10|0]=ae>>>16,s[e+11|0]=ae>>>24,oe=c,c^=T,s[e+12|0]=c,s[e+13|0]=c>>>8,s[e+14|0]=c>>>16,s[e+15|0]=c>>>24,ye=t,ae=pe,t=V,V=de(y^g,C^Se,1),c=(ke=v)+a|0,c=(V>>>0>(pe=V+n|0)>>>0?c+1|0:c)+W|0,ce=c=(g=pe)>>>0>(pe=ce+pe|0)>>>0?c+1|0:c,t=de(t^pe,c^le,32),c=(c=ae)+(ae=v)|0,le=c=(ye=t+ye|0)>>>0>>0?c+1|0:c,we=t,ye=de(V^(W=ye),c^ke,40),c=(y=v)+r|0,c=ce+((t=ye+Ae|0)>>>0>>0?c+1|0:c)|0,c=(t=t+pe|0)>>>0>>0?c+1|0:c,ce=t,t^=we,we=c,pe=de(t,c^ae,48),c=(g=v)+le|0,W=t=pe+W|0,le=t>>>0>>0?c+1|0:c,me=t=de(x^me,I^Ee,1),ke=c=v,c=c+z|0,c=p+((t=t+ue|0)>>>0>>0?c+1|0:c)|0,z=c=(V=t+ge|0)>>>0>>0?c+1|0:c,t=(ae=de(h^V,c^m,32))+d|0,c=(d=v)+b|0,ge=t,t=(ue=de(p=t^me,(me=t>>>0>>0?c+1|0:c)^ke,40))+q|0,c=(q=v)+be|0,c=z+(t>>>0>>0?c+1|0:c)|0,c=(z=t+V|0)>>>0>>0?c+1|0:c,V=z^Oe^W,s[0|(t=e)]=V,s[t+1|0]=V>>>8,s[t+2|0]=V>>>16,s[t+3|0]=V>>>24,V=c^i^le,s[t+4|0]=V,s[t+5|0]=V>>>8,s[t+6|0]=V>>>16,s[t+7|0]=V>>>24,V=(ae=de(z^ae,c^d,48))+ge|0,c=(ge=v)+me|0,c=(me=V>>>0>>0?c+1|0:c)^(u[t+20|0]|u[t+21|0]<<8|u[t+22|0]<<16|u[t+23|0]<<24)^we,z=(u[t+16|0]|u[t+17|0]<<8|u[t+18|0]<<16|u[t+19|0]<<24)^ce^V,s[t+16|0]=z,s[t+17|0]=z>>>8,s[t+18|0]=z>>>16,s[t+19|0]=z>>>24,s[t+20|0]=c,s[t+21|0]=c>>>8,s[t+22|0]=c>>>16,s[t+23|0]=c>>>24,t=de(ie^Ie,k^O,48),z=v,ce=u[e+36|0]|u[e+37|0]<<8|u[e+38|0]<<16|u[e+39|0]<<24,c=(u[e+32|0]|u[e+33|0]<<8|u[e+34|0]<<16|u[e+35|0]<<24)^de(ne^fe,f^oe,1)^t,s[e+32|0]=c,s[e+33|0]=c>>>8,s[e+34|0]=c>>>16,s[e+35|0]=c>>>24,c=v^ce^z,s[e+36|0]=c,s[e+37|0]=c>>>8,s[e+38|0]=c>>>16,s[e+39|0]=c>>>24,c=_+z|0,c=(ce=t+l|0)>>>0>>0?c+1|0:c,ne=(u[(t=e)+28|0]|u[t+29|0]<<8|u[t+30|0]<<16|u[t+31|0]<<24)^J^c,z=(u[t+24|0]|u[t+25|0]<<8|u[t+26|0]<<16|u[t+27|0]<<24)^he^ce,s[t+24|0]=z,s[t+25|0]=z>>>8,s[t+26|0]=z>>>16,s[t+27|0]=z>>>24,s[t+28|0]=ne,s[t+29|0]=ne>>>8,s[t+30|0]=ne>>>16,s[t+31|0]=ne>>>24,ne=u[t+44|0]|u[t+45|0]<<8|u[t+46|0]<<16|u[t+47|0]<<24,t=pe^(u[t+40|0]|u[t+41|0]<<8|u[t+42|0]<<16|u[t+43|0]<<24)^de(V^ue,q^me,1),s[e+40|0]=t,s[e+41|0]=t>>>8,s[e+42|0]=t>>>16,s[e+43|0]=t>>>24,t=g^v^ne,s[e+44|0]=t,s[e+45|0]=t>>>8,s[e+46|0]=t>>>16,s[e+47|0]=t>>>24,V=u[e+60|0]|u[e+61|0]<<8|u[e+62|0]<<16|u[e+63|0]<<24,t=ae^(u[e+56|0]|u[e+57|0]<<8|u[e+58|0]<<16|u[e+59|0]<<24)^de(W^ye,y^le,1),s[e+56|0]=t,s[e+57|0]=t>>>8,s[e+58|0]=t>>>16,s[e+59|0]=t>>>24,t=ge^v^V,s[e+60|0]=t,s[e+61|0]=t>>>8,s[e+62|0]=t>>>16,s[e+63|0]=t>>>24,V=u[e+52|0]|u[e+53|0]<<8|u[e+54|0]<<16|u[e+55|0]<<24,t=se^(u[e+48|0]|u[e+49|0]<<8|u[e+50|0]<<16|u[e+51|0]<<24)^de(ce^Ce,c^E,1),s[e+48|0]=t,s[e+49|0]=t>>>8,s[e+50|0]=t>>>16,s[e+51|0]=t>>>24,t=w^v^V,s[e+52|0]=t,s[e+53|0]=t>>>8,s[e+54|0]=t>>>16,s[e+55|0]=t>>>24}function A(e,t,n,r,a,i,o){var d,f,l,b,p,h,y,g,A,w,_,k,I,S,E,T,O,P,M,B,N,R,D,j,F,Z,H,z,Q,q,V,J,K,G,W,Y,X,$,ee,te,ne,re,ae,oe,ce,ue,de,fe,le=0,be=0,pe=0,he=0,ye=0,ve=0,ge=0,Ae=0,we=0,_e=0,ke=0,Ie=0,Se=0,Ee=0,Ce=0,Te=0,Oe=0,Pe=0,Me=0,Be=0,Ne=0,Re=0,De=0,je=0,Ue=0,Le=0,Fe=0,Ze=0,He=0,ze=0,Qe=0,qe=0,Ve=0,Je=0,Ke=0,Ge=0,We=0,Ye=0,Xe=0,et=0,tt=0,nt=0,rt=0,at=0,it=0,ot=0;return m=l=m-560|0,se(l+352|0),o&&L(l+352|0,34768,34,0),ie(l+288|0,i,32,0),L(ve=l+352|0,l+320|0,32,0),L(ve,n,r,a),C(ve,Ae=l+224|0),we=u[(be=i)+32|0]|u[be+33|0]<<8|u[be+34|0]<<16|u[be+35|0]<<24,ke=u[be+36|0]|u[be+37|0]<<8|u[be+38|0]<<16|u[be+39|0]<<24,he=u[be+40|0]|u[be+41|0]<<8|u[be+42|0]<<16|u[be+43|0]<<24,le=u[be+44|0]|u[be+45|0]<<8|u[be+46|0]<<16|u[be+47|0]<<24,pe=u[be+48|0]|u[be+49|0]<<8|u[be+50|0]<<16|u[be+51|0]<<24,i=u[be+52|0]|u[be+53|0]<<8|u[be+54|0]<<16|u[be+55|0]<<24,ye=u[be+60|0]|u[be+61|0]<<8|u[be+62|0]<<16|u[be+63|0]<<24,be=u[be+56|0]|u[be+57|0]<<8|u[be+58|0]<<16|u[be+59|0]<<24,s[e+56|0]=be,s[e+57|0]=be>>>8,s[e+58|0]=be>>>16,s[e+59|0]=be>>>24,s[e+60|0]=ye,s[e+61|0]=ye>>>8,s[e+62|0]=ye>>>16,s[e+63|0]=ye>>>24,s[e+48|0]=pe,s[e+49|0]=pe>>>8,s[e+50|0]=pe>>>16,s[e+51|0]=pe>>>24,s[e+52|0]=i,s[e+53|0]=i>>>8,s[e+54|0]=i>>>16,s[e+55|0]=i>>>24,s[e+40|0]=he,s[e+41|0]=he>>>8,s[e+42|0]=he>>>16,s[e+43|0]=he>>>24,s[e+44|0]=le,s[e+45|0]=le>>>8,s[e+46|0]=le>>>16,s[e+47|0]=le>>>24,s[0|(i=e+32|0)]=we,s[i+1|0]=we>>>8,s[i+2|0]=we>>>16,s[i+3|0]=we>>>24,s[i+4|0]=ke,s[i+5|0]=ke>>>8,s[i+6|0]=ke>>>16,s[i+7|0]=ke>>>24,x(Ae),U(l,Ae),xe(e,l),se(ve),o&&L(l+352|0,34768,34,0),L(o=l+352|0,e,64,0),L(o,n,r,a),C(o,ge=l+160|0),x(ge),s[l+288|0]=248&u[l+288|0],s[l+319|0]=63&u[l+319|0]|64,n=u[23+(e=f=l+288|0)|0],he=me(b=u[e+21|0]|u[e+22|0]<<8|n<<16&2031616,0,p=(u[ge+28|0]|u[ge+29|0]<<8|u[ge+30|0]<<16|u[ge+31|0]<<24)>>>7|0,0),pe=v,n=(e=u[ge+27|0])>>>24|0,a=e<<8|(le=u[ge+23|0]|u[ge+24|0]<<8|u[ge+25|0]<<16|u[ge+26|0]<<24)>>>24,e=me(h=2097151&((3&(ke=(e=(r=u[ge+28|0])>>>16|0)|n))<<30|(n=(r<<=16)|a)>>>2),0,y=(o=u[f+23|0]|u[f+24|0]<<8|u[f+25|0]<<16|u[f+26|0]<<24)>>>5&2097151,0),n=v+pe|0,r=e>>>0>(a=e+he|0)>>>0?n+1|0:n,e=me(g=(n=u[ge+23|0])<<16&2031616|u[ge+21|0]|u[ge+22|0]<<8,0,A=(u[f+28|0]|u[f+29|0]<<8|u[f+30|0]<<16|u[f+31|0]<<24)>>>7|0,0),r=v+r|0,pe=n=e+a|0,a=e>>>0>n>>>0?r+1|0:r,r=(e=u[f+27|0])>>>24|0,o=e<<8|o>>>24,e=me(w=2097151&((3&(r|=n=(e=u[f+28|0])>>>16|0))<<30|(n=(e<<=16)|o)>>>2),0,_=le>>>5&2097151,0),n=v+a|0,be=r=e+pe|0,a=e>>>0>r>>>0?n+1|0:n,le=me(y,0,_,0),pe=v,n=(e=u[f+19|0])>>>24|0,o=e<<8|(Oe=u[f+15|0]|u[f+16|0]<<8|u[f+17|0]<<16|u[f+18|0]<<24)>>>24,r=n,n=me(k=(7&(r|=n=(e=u[f+20|0])>>>16|0))<<29|(n=(e<<=16)|o)>>>3,ke=r>>>3|0,p,0),e=v+pe|0,e=n>>>0>(r=n+le|0)>>>0?e+1|0:e,o=(n=me(b,0,h,0))+r|0,r=v+e|0,n=n>>>0>(le=o)>>>0?r+1|0:r,r=(e=u[ge+19|0])>>>24|0,pe=e<<8|(Te=u[ge+15|0]|u[ge+16|0]<<8|u[ge+17|0]<<16|u[ge+18|0]<<24)>>>24,e=me(I=(7&(he=(e=(o=u[ge+20|0])>>>16|0)|r))<<29|(r=(o<<=16)|pe)>>>3,S=he>>>3|0,A,0),n=v+n|0,n=e>>>0>(r=e+le|0)>>>0?n+1|0:n,e=me(g,0,w,0),n=v+n|0,we=n=e>>>0>(Ae=e+r|0)>>>0?n+1|0:n,Ie=e=n-((Ae>>>0<4293918720)-1|0)|0,r=(n=e>>>21|0)+a|0,le=r=(e=(2097151&e)<<11|(he=Ae- -1048576|0)>>>21)>>>0>(be=e+be|0)>>>0?r+1|0:r,Ee=e=r-((be>>>0<4293918720)-1|0)|0,ve=(2097151&e)<<11|(pe=be- -1048576|0)>>>21,o=e>>>21|0,e=me(A,0,_,0),n=v,r=e,e=me(p,0,y,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,Se=(e=r)+(r=me(h,0,w,0))|0,e=v+n|0,e=r>>>0>Se>>>0?e+1|0:e,ye=Se-(n=-2097152&(r=Se- -1048576|0))|0,n=(e-((131071&(a=e-((Se>>>0<4293918720)-1|0)|0))+(n>>>0>Se>>>0)|0)|0)+o|0,Q=n=(e=ye+ve|0)>>>0>>0?n+1|0:n,q=e,ye=me(e,n,470296,0),ve=v,n=me(p,0,w,0),e=v,o=n,n=me(h,0,A,0),e=v+e|0,n=n>>>0>(o=o+n|0)>>>0?e+1|0:e,e=a>>>21|0,a=(2097151&a)<<11|r>>>21,r=e+n|0,Re=a=(r=a>>>0>(o=a+o|0)>>>0?r+1|0:r)-((o>>>0<4293918720)-1|0)|0,e=o-(n=-2097152&(Ne=o- -1048576|0))|0,V=o=r-((131071&a)+(n>>>0>o>>>0)|0)|0,J=n=be-(r=-2097152&pe)|0,K=a=le-((r>>>0>be>>>0)+Ee|0)|0,G=e,r=me(e,o,666643,0),e=v+ve|0,e=r>>>0>(o=r+ye|0)>>>0?e+1|0:e,r=me(n,a,654183,0),n=v+e|0,_e=a=r+o|0,pe=r>>>0>a>>>0?n+1|0:n,Se=Ae-(e=-2097152&he)|0,Ie=we-((e>>>0>Ae>>>0)+Ie|0)|0,n=me(h,0,k,ke),r=v,a=(e=n)+(n=me(E=Oe>>>6&2097151,0,p,0))|0,e=v+r|0,e=n>>>0>a>>>0?e+1|0:e,n=me(y,0,g,0),r=v+e|0,r=n>>>0>(a=n+a|0)>>>0?r+1|0:r,e=me(b,0,_,0),n=v+r|0,n=e>>>0>(a=e+a|0)>>>0?n+1|0:n,r=me(A,0,T=Te>>>6&2097151,0),e=v+n|0,e=r>>>0>(a=r+a|0)>>>0?e+1|0:e,r=me(w,0,I,S),n=v+e|0,Ae=a=r+a|0,o=r>>>0>a>>>0?n+1|0:n,n=(e=u[f+14|0])>>>24|0,a=e<<8|(we=u[f+10|0]|u[f+11|0]<<8|u[f+12|0]<<16|u[f+13|0]<<24)>>>24,n=me(O=2097151&((1&(n|=e=(r=u[f+15|0])>>>16|0))<<31|(e=(r<<=16)|a)>>>1),0,p,0),e=v,r=n,n=me(h,0,E,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,a=(n=me(_,0,k,ke))+r|0,r=v+e|0,r=n>>>0>a>>>0?r+1|0:r,e=me(y,0,I,S),n=v+r|0,n=e>>>0>(a=e+a|0)>>>0?n+1|0:n,e=me(b,0,g,0),n=v+n|0,he=r=e+a|0,a=e>>>0>r>>>0?n+1|0:n,n=(e=u[ge+14|0])>>>24|0,le=e<<8|(be=u[ge+10|0]|u[ge+11|0]<<8|u[ge+12|0]<<16|u[ge+13|0]<<24)>>>24,r=n,n=(e=u[ge+15|0])>>>16|0,n=me(P=2097151&((1&(n|=r))<<31|(e=e<<16|le)>>>1),0,A,0),e=v+a|0,e=n>>>0>(r=n+he|0)>>>0?e+1|0:e,n=me(w,0,T,0),e=v+e|0,le=e=n>>>0>(he=n+r|0)>>>0?e+1|0:e,De=n=e-((he>>>0<4293918720)-1|0)|0,r=(e=n>>>21|0)+o|0,ve=r=(n=(2097151&n)<<11|(ye=he- -1048576|0)>>>21)>>>0>(Ee=n+Ae|0)>>>0?r+1|0:r,Me=n=r-((Ee>>>0<4293918720)-1|0)|0,e=(e=n>>>21|0)+Ie|0,W=e=(n=(r=(2097151&n)<<11|(Ae=Ee- -1048576|0)>>>21)+Se|0)>>>0>>0?e+1|0:e,Y=n,e=me(n,e,-997805,-1),n=v+pe|0,_e=r=e+_e|0,pe=e>>>0>r>>>0?n+1|0:n,Se=(Le=u[23+(d=l+224|0)|0]|u[d+24|0]<<8|u[d+25|0]<<16|u[d+26|0]<<24)>>>5&2097151,r=me(M=(e=u[f+2|0])<<16&2031616|u[0|f]|u[f+1|0]<<8,0,_,0),n=v,a=(e=me(g,0,B=(o=u[f+2|0]|u[f+3|0]<<8|u[f+4|0]<<16|u[f+5|0]<<24)>>>5&2097151,0))+r|0,r=v+n|0,r=e>>>0>a>>>0?r+1|0:r,e=me(N=(u[f+7|0]|u[f+8|0]<<8|u[f+9|0]<<16|u[f+10|0]<<24)>>>7&2097151,0,T,0),n=v+r|0,n=e>>>0>(a=e+a|0)>>>0?n+1|0:n,r=me(P,0,R=we>>>4&2097151,0),e=v+n|0,we=a=r+a|0,a=r>>>0>a>>>0?e+1|0:e,o=(n=u[f+6|0])<<8|o>>>24,r=e=n>>>24|0,n=(e=u[f+7|0])>>>16|0,n=me(D=2097151&((3&(n|=r))<<30|(e=e<<16|o)>>>2),0,I,S),e=v+a|0,e=n>>>0>(r=n+we|0)>>>0?e+1|0:e,a=(n=me(E,0,j=(u[ge+7|0]|u[ge+8|0]<<8|u[ge+9|0]<<16|u[ge+10|0]<<24)>>>7&2097151,0))+r|0,r=v+e|0,r=n>>>0>a>>>0?r+1|0:r,n=me(O,0,Be=be>>>4&2097151,0),e=v+r|0,o=n>>>0>(a=n+a|0)>>>0?e+1|0:e,e=(n=u[ge+6|0])>>>24|0,we=n<<8|(be=u[ge+2|0]|u[ge+3|0]<<8|u[ge+4|0]<<16|u[ge+5|0]<<24)>>>24,n=e,e=me(k,ke,F=2097151&((3&(n|=r=(e=u[ge+7|0])>>>16|0))<<30|(e=e<<16|we)>>>2),0),n=v+o|0,n=e>>>0>(r=e+a|0)>>>0?n+1|0:n,a=r,r=me(Z=(e=u[ge+2|0])<<16&2031616|u[0|ge]|u[ge+1|0]<<8,0,y,0),e=v+n|0,e=r>>>0>(a=a+r|0)>>>0?e+1|0:e,n=me(b,0,H=be>>>5&2097151,0),e=v+e|0,n=n>>>0>(r=n+a|0)>>>0?e+1|0:e,we=e=r+Se|0,o=n=e>>>0>>0?n+1|0:n,a=u[d+21|0]|u[d+22|0]<<8,e=me(g,0,M,0),n=v,be=(r=e)+(e=me(I,S,B,0))|0,r=v+n|0,r=e>>>0>be>>>0?r+1|0:r,e=me(P,0,N,0),n=v+r|0,n=e>>>0>(be=e+be|0)>>>0?n+1|0:n,e=me(R,0,Be,0),n=v+n|0,n=e>>>0>(r=e+be|0)>>>0?n+1|0:n,be=(e=r)+(r=me(T,0,D,0))|0,e=v+n|0,e=r>>>0>be>>>0?e+1|0:e,n=me(E,0,F,0),e=v+e|0,e=n>>>0>(r=n+be|0)>>>0?e+1|0:e,be=(n=me(O,0,j,0))+r|0,r=v+e|0,r=n>>>0>be>>>0?r+1|0:r,e=me(k,ke,H,0),n=v+r|0,n=e>>>0>(be=e+be|0)>>>0?n+1|0:n,e=me(b,0,Z,0),n=v+n|0,e=e>>>0>(r=e+be|0)>>>0?n+1|0:n,n=(n=r)>>>0>(r=r+a|0)>>>0?e+1|0:e,a=r,r=(e=u[d+23|0])<<16&2031616,e=n,r=e=r>>>0>(a=a+r|0)>>>0?e+1|0:e,ge=e=e-((a>>>0<4293918720)-1|0)|0,n=(n=e>>>21|0)+o|0,e=(n=(o=we=(e=(2097151&e)<<11|(be=a- -1048576|0)>>>21)+we|0)>>>0>>0?n+1|0:n)+pe|0,e=(pe=o+_e|0)>>>0>>0?e+1|0:e,Oe=o- -1048576|0,Ce=o=n-((o>>>0<4293918720)-1|0)|0,Pe=pe-(n=-2097152&Oe)|0,je=e-((n>>>0>pe>>>0)+o|0)|0,we=a,pe=r,e=me(J,K,470296,0),n=v,r=e,e=me(q,Q,666643,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,a=(e=r)+(r=me(Y,W,654183,0))|0,e=v+n|0,Te=a,o=r>>>0>a>>>0?e+1|0:e,n=me(I,S,M,0),e=v,r=n,n=me(T,0,B,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,a=(n=r)+(r=me(N,0,Be,0))|0,n=v+e|0,n=r>>>0>a>>>0?n+1|0:n,e=me(R,0,j,0),r=v+n|0,r=e>>>0>(a=e+a|0)>>>0?r+1|0:r,e=me(P,0,D,0),n=v+r|0,n=e>>>0>(a=e+a|0)>>>0?n+1|0:n,r=me(E,0,H,0),e=v+n|0,e=r>>>0>(a=r+a|0)>>>0?e+1|0:e,n=me(O,0,F,0),e=v+e|0,e=n>>>0>(r=n+a|0)>>>0?e+1|0:e,a=(n=r)+(r=me(k,ke,Z,0))|0,n=v+e|0,Se=a,r=r>>>0>a>>>0?n+1|0:n,n=(e=u[d+19|0])>>>24|0,Ie=e<<8|(_e=u[d+15|0]|u[d+16|0]<<8|u[d+17|0]<<16|u[d+18|0]<<24)>>>24,r=((Ue=(e=(a=u[d+20|0])>>>16|0)|n)>>>3|0)+r|0,Se=a=(n=(7&Ue)<<29|(n=(a<<=16)|Ie)>>>3)+Se|0,a=n>>>0>a>>>0?r+1|0:r,Ie=_e>>>6&2097151,e=me(T,0,M,0),n=v,r=e,e=me(P,0,B,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,_e=(e=r)+(r=me(N,0,j,0))|0,e=v+n|0,e=r>>>0>_e>>>0?e+1|0:e,r=me(R,0,F,0),n=v+e|0,n=r>>>0>(_e=r+_e|0)>>>0?n+1|0:n,r=me(D,0,Be,0),e=v+n|0,e=r>>>0>(_e=r+_e|0)>>>0?e+1|0:e,n=me(E,0,Z,0),r=v+e|0,r=n>>>0>(_e=n+_e|0)>>>0?r+1|0:r,e=me(O,0,H,0),n=v+r|0,e=e>>>0>(_e=e+_e|0)>>>0?n+1|0:n,Ke=e=(Ze=_e+Ie|0)>>>0<_e>>>0?e+1|0:e,nt=e=e-((Ze>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(Ve=Ze- -1048576|0)>>>21,e=(e>>>21|0)+a|0,We=e=r>>>0>(Ge=r+Se|0)>>>0?e+1|0:e,rt=e=e-((Ge>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(ze=Ge- -1048576|0)>>>21,e=(e>>>21|0)+o|0,n=(r>>>0>(a=r+Te|0)>>>0?e+1|0:e)+pe|0,pe=(r=a+we|0)-(e=-2097152&be)|0,ge=e=(n=r>>>0>>0?n+1|0:n)-((e>>>0>r>>>0)+ge|0)|0,at=e=e-((pe>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(Qe=pe- -1048576|0)>>>21,e=(e>>21)+je|0,a=e=r>>>0>(o=r+Pe|0)>>>0?e+1|0:e,tt=e=e-((o>>>0<4293918720)-1|0)|0,qe=(2097151&e)<<11|(Te=o- -1048576|0)>>>21,we=e>>21,Ue=Ee-(e=-2097152&Ae)|0,Me=ve-((e>>>0>Ee>>>0)+Me|0)|0,e=me(p,0,A,0),Je=n=v,Pe=e,_e=e- -1048576|0,He=n=n-((e>>>0<4293918720)-1|0)|0,X=e=n>>>21|0,e=me(z=(2097151&n)<<11|_e>>>21,e,-683901,-1),n=v+le|0,n=e>>>0>(r=e+he|0)>>>0?n+1|0:n,Ae=r-(e=-2097152&ye)|0,be=n-((e>>>0>r>>>0)+De|0)|0,n=me(_,0,E,0),e=v,r=n,n=me(p,0,R,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,n=me(h,0,O,0),e=v+e|0,e=n>>>0>(r=n+r|0)>>>0?e+1|0:e,le=(n=r)+(r=me(g,0,k,ke))|0,n=v+e|0,n=r>>>0>le>>>0?n+1|0:n,e=me(y,0,T,0),r=v+n|0,r=e>>>0>(le=e+le|0)>>>0?r+1|0:r,e=me(b,0,I,S),n=v+r|0,n=e>>>0>(le=e+le|0)>>>0?n+1|0:n,r=me(A,0,Be,0),e=v+n|0,e=r>>>0>(le=r+le|0)>>>0?e+1|0:e,n=me(w,0,P,0),e=v+e|0,he=r=n+le|0,le=n>>>0>r>>>0?e+1|0:e,e=me(h,0,R,0),n=v,r=e,e=me(p,0,N,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,ve=(e=me(g,0,E,0))+r|0,r=v+n|0,r=e>>>0>ve>>>0?r+1|0:r,e=me(_,0,O,0),n=v+r|0,n=e>>>0>(ve=e+ve|0)>>>0?n+1|0:n,r=me(k,ke,I,S),e=v+n|0,e=r>>>0>(ve=r+ve|0)>>>0?e+1|0:e,n=me(y,0,P,0),e=v+e|0,e=n>>>0>(r=n+ve|0)>>>0?e+1|0:e,ve=(n=r)+(r=me(b,0,T,0))|0,n=v+e|0,n=r>>>0>ve>>>0?n+1|0:n,e=me(A,0,j,0),r=v+n|0,r=e>>>0>(ve=e+ve|0)>>>0?r+1|0:r,e=me(w,0,Be,0),n=v+r|0,Ie=n=e>>>0>(Se=e+ve|0)>>>0?n+1|0:n,Xe=e=n-((Se>>>0<4293918720)-1|0)|0,n=(2097151&e)<<11|(Ee=Se- -1048576|0)>>>21,e=(e>>>21|0)+le|0,ye=e=n>>>0>(De=n+he|0)>>>0?e+1|0:e,Fe=e=e-((De>>>0<4293918720)-1|0)|0,n=(r=e>>>21|0)+be|0,Ae=n=(e=(2097151&e)<<11|(ve=De- -1048576|0)>>>21)>>>0>(je=e+Ae|0)>>>0?n+1|0:n,Ye=e=n-((je>>>0<4293918720)-1|0)|0,le=(2097151&e)<<11|(be=je- -1048576|0)>>>21,e=(e>>21)+Me|0,$=e=(n=le+Ue|0)>>>0>>0?e+1|0:e,ee=n,e=me(n,e,-683901,-1),n=v+we|0,qe=r=e+qe|0,we=e>>>0>r>>>0?n+1|0:n,e=me(h,0,M,0),n=v,r=e,e=me(_,0,B,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,le=(e=r)+(r=me(I,S,N,0))|0,e=v+n|0,e=r>>>0>le>>>0?e+1|0:e,n=me(T,0,R,0),r=v+e|0,r=n>>>0>(le=n+le|0)>>>0?r+1|0:r,n=me(g,0,D,0),e=v+r|0,e=n>>>0>(le=n+le|0)>>>0?e+1|0:e,r=me(E,0,Be,0),n=v+e|0,n=r>>>0>(le=r+le|0)>>>0?n+1|0:n,e=me(O,0,P,0),n=v+n|0,n=e>>>0>(r=e+le|0)>>>0?n+1|0:n,le=(e=r)+(r=me(k,ke,j,0))|0,e=v+n|0,e=r>>>0>le>>>0?e+1|0:e,n=me(y,0,H,0),r=v+e|0,r=n>>>0>(le=n+le|0)>>>0?r+1|0:r,n=me(b,0,F,0),e=v+r|0,e=n>>>0>(le=n+le|0)>>>0?e+1|0:e,r=me(w,0,Z,0),n=v+e|0,Me=le=r+le|0,r=r>>>0>le>>>0?n+1|0:n,n=(e=u[d+27|0])>>>24|0,he=e<<8|Le>>>24,le=2097151&((3&(n|=e=(le=u[d+28|0])>>>16|0))<<30|(e=(le<<=16)|he)>>>2),n=r,he=e=le+Me|0,le=e>>>0>>0?n+1|0:n,Ue=me(G,V,470296,0),Me=v,e=(r=(2097151&Re)<<11|Ne>>>21)+(Pe-(n=-2097152&_e)|0)|0,n=Je-((524287&He)+(n>>>0>Pe>>>0)|0)+(Re>>>21)|0,te=n=e>>>0>>0?n+1|0:n,ne=e,n=me(e,n,666643,0),e=v+Me|0,e=n>>>0>(r=n+Ue|0)>>>0?e+1|0:e,_e=(n=me(q,Q,654183,0))+r|0,r=v+e|0,r=n>>>0>_e>>>0?r+1|0:r,n=me(J,K,-997805,-1),e=v+r|0,e=n>>>0>(_e=n+_e|0)>>>0?e+1|0:e,r=me(Y,W,136657,0),n=v+e|0,Oe=(e=(2097151&Ce)<<11|Oe>>>21)+(_e=r+_e|0)|0,n=(Ce>>>21|0)+(r>>>0>_e>>>0?n+1|0:n)|0,He=_e=le-((he>>>0<4293918720)-1|0)|0,e=(e>>>0>Oe>>>0?n+1|0:n)+le|0,n=(le=he+Oe|0)-(r=-2097152&(Je=he- -1048576|0))|0,r=(e=(e=le>>>0>>0?e+1|0:e)-((r>>>0>le>>>0)+_e|0)|0)+we|0,Ue=le=e-((n>>>0<4293918720)-1|0)|0,Pe=(r=(he=n+qe|0)>>>0>>0?r+1|0:r)-(((n=-2097152&(Me=n- -1048576|0))>>>0>he>>>0)+le|0)|0,Le=e=he-n|0,le=o,o=a,et=je-(e=-2097152&be)|0,_e=Ae-((e>>>0>je>>>0)+Ye|0)|0,e=me(ne,te,-683901,-1),n=v,a=(r=e)+(e=me(z,X,136657,0))|0,r=v+n|0,n=ye+(e>>>0>a>>>0?r+1|0:r)|0,ve=(r=a+De|0)-(e=-2097152&ve)|0,Ae=(n=r>>>0>>0?n+1|0:n)-((e>>>0>r>>>0)+Fe|0)|0,n=me(z,X,-997805,-1),e=v+Ie|0,e=n>>>0>(r=n+Se|0)>>>0?e+1|0:e,a=(n=me(ne,te,136657,0))+r|0,r=v+e|0,r=n>>>0>a>>>0?r+1|0:r,e=me(G,V,-683901,-1),n=v+r|0,n=e>>>0>(a=e+a|0)>>>0?n+1|0:n,be=a-(e=-2097152&Ee)|0,we=n-((e>>>0>a>>>0)+Xe|0)|0,n=me(_,0,R,0),e=v,r=n,n=me(h,0,N,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,a=(n=me(p,0,D,0))+r|0,r=v+e|0,r=n>>>0>a>>>0?r+1|0:r,e=me(I,S,E,0),n=v+r|0,n=e>>>0>(a=e+a|0)>>>0?n+1|0:n,r=me(g,0,O,0),e=v+n|0,e=r>>>0>(a=r+a|0)>>>0?e+1|0:e,r=me(k,ke,T,0),n=v+e|0,n=r>>>0>(a=r+a|0)>>>0?n+1|0:n,r=me(y,0,Be,0),e=v+n|0,e=r>>>0>(a=r+a|0)>>>0?e+1|0:e,n=me(b,0,P,0),r=v+e|0,r=n>>>0>(a=n+a|0)>>>0?r+1|0:r,e=me(A,0,F,0),n=v+r|0,n=e>>>0>(a=e+a|0)>>>0?n+1|0:n,r=me(w,0,j,0),e=v+n|0,he=a=r+a|0,a=r>>>0>a>>>0?e+1|0:e,e=me(_,0,N,0),n=v,r=e,e=me(p,0,B,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,ye=(e=r)+(r=me(g,0,R,0))|0,e=v+n|0,e=r>>>0>ye>>>0?e+1|0:e,n=me(h,0,D,0),r=v+e|0,r=n>>>0>(ye=n+ye|0)>>>0?r+1|0:r,e=me(E,0,T,0),n=v+r|0,n=e>>>0>(ye=e+ye|0)>>>0?n+1|0:n,r=me(I,S,O,0),e=v+n|0,e=r>>>0>(ye=r+ye|0)>>>0?e+1|0:e,r=me(k,ke,P,0),n=v+e|0,n=r>>>0>(ye=r+ye|0)>>>0?n+1|0:n,r=me(y,0,j,0),e=v+n|0,e=r>>>0>(ye=r+ye|0)>>>0?e+1|0:e,n=me(b,0,Be,0),r=v+e|0,r=n>>>0>(ye=n+ye|0)>>>0?r+1|0:r,ye=(e=me(A,0,H,0))+ye|0,n=v+r|0,r=me(w,0,F,0),e=v+(e>>>0>ye>>>0?n+1|0:n)|0,je=e=r>>>0>(Ye=r+ye|0)>>>0?e+1|0:e,ae=e=e-((Ye>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(Re=Ye- -1048576|0)>>>21,e=(e>>>21|0)+a|0,Ne=e=r>>>0>(qe=r+he|0)>>>0?e+1|0:e,oe=e=e-((qe>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(Ce=qe- -1048576|0)>>>21,e=(e>>>21|0)+we|0,Oe=e=r>>>0>(De=r+be|0)>>>0?e+1|0:e,ce=e=e-((De>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(Ie=De- -1048576|0)>>>21,e=(e>>21)+Ae|0,a=e=r>>>0>(be=r+ve|0)>>>0?e+1|0:e,Ae=e=e-((be>>>0<4293918720)-1|0)|0,we=(2097151&e)<<11|(r=be- -1048576|0)>>>21,e=(e>>21)+_e|0,Xe=e=(he=we+et|0)>>>0>>0?e+1|0:e,Fe=he,e=me(he,e,-683901,-1),n=v,he=e,e=me(ee,$,136657,0),n=v+n|0,e=(e>>>0>(he=he+e|0)>>>0?n+1|0:n)+o|0,it=(o=le+he|0)-(n=-2097152&Te)|0,ot=(e=o>>>0>>0?e+1|0:e)-((n>>>0>o>>>0)+tt|0)|0,we=pe,he=ge,pe=me(Fe,Xe,136657,0),o=v,et=e=be-(n=-2097152&r)|0,re=a=a-((n>>>0>be>>>0)+Ae|0)|0,r=me(ee,$,-997805,-1),n=v+o|0,n=r>>>0>(pe=r+pe|0)>>>0?n+1|0:n,r=me(e,a,-683901,-1),e=v+n|0,tt=a=r+pe|0,le=r>>>0>a>>>0?e+1|0:e,e=me(Y,W,470296,0),n=v,a=(r=e)+(e=me(J,K,666643,0))|0,r=v+n|0,n=We+(e>>>0>a>>>0?r+1|0:r)|0,_e=e=a+Ge|0,o=n=e>>>0>>0?n+1|0:n,n=me(Y,W,666643,0),e=v+Ke|0,e=n>>>0>(r=n+Ze|0)>>>0?e+1|0:e,ve=r-(n=-2097152&Ve)|0,Se=e-((n>>>0>r>>>0)+nt|0)|0,n=me(P,0,M,0),e=v,r=n,n=me(B,0,Be,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,a=(n=r)+(r=me(N,0,F,0))|0,n=v+e|0,n=r>>>0>a>>>0?n+1|0:n,r=me(R,0,H,0),e=v+n|0,e=r>>>0>(a=r+a|0)>>>0?e+1|0:e,n=me(D,0,j,0),r=v+e|0,r=n>>>0>(a=n+a|0)>>>0?r+1|0:r,e=me(O,0,Z,0),n=v+r|0,be=a=e+a|0,a=e>>>0>a>>>0?n+1|0:n,n=(e=u[d+14|0])>>>24|0,pe=e<<8|(Ae=u[d+10|0]|u[d+11|0]<<8|u[d+12|0]<<16|u[d+13|0]<<24)>>>24,n=2097151&((1&(n|=r=(e=u[d+15|0])>>>16|0))<<31|(e=pe|e<<16)>>>1),e=a,be=r=n+be|0,a=n>>>0>r>>>0?e+1|0:e,pe=Ae>>>4&2097151,e=me(M,0,Be,0),n=v,r=e,e=me(B,0,j,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,e=me(N,0,H,0),n=v+n|0,n=e>>>0>(r=e+r|0)>>>0?n+1|0:n,Ae=(e=r)+(r=me(R,0,Z,0))|0,e=v+n|0,e=r>>>0>Ae>>>0?e+1|0:e,n=me(D,0,F,0),r=v+e|0,e=n>>>0>(Ae=n+Ae|0)>>>0?r+1|0:r,ge=e=(Ve=pe+Ae|0)>>>0>>0?e+1|0:e,ue=e=e-((Ve>>>0<4293918720)-1|0)|0,n=(r=e>>>21|0)+a|0,Ee=n=(e=(2097151&e)<<11|(Te=Ve- -1048576|0)>>>21)>>>0>(We=e+be|0)>>>0?n+1|0:n,de=e=n-((We>>>0<4293918720)-1|0)|0,n=(2097151&e)<<11|(ye=We- -1048576|0)>>>21,e=(e>>>21|0)+Se|0,Ae=e=n>>>0>(ve=n+ve|0)>>>0?e+1|0:e,fe=e=e-((ve>>>0<4293918720)-1|0)|0,n=(r=e>>21)+o|0,nt=n=(n=(e=(2097151&e)<<11|(be=ve- -1048576|0)>>>21)>>>0>(a=e+_e|0)>>>0?n+1|0:n)-(((r=-2097152&ze)>>>0>a>>>0)+rt|0)|0,ze=e=a-r|0,pe=e- -1048576|0,rt=e=n-((e>>>0<4293918720)-1|0)|0,r=(n=e>>21)+le|0,n=((e=(2097151&e)<<11|pe>>>21)>>>0>(a=e+tt|0)>>>0?r+1|0:r)+he|0,Ze=n=(n=(e=a)>>>0>(a=a+we|0)>>>0?n+1|0:n)-(((r=-2097152&Qe)>>>0>a>>>0)+at|0)|0,he=e=a-r|0,o=e- -1048576|0,Ke=e=n-((e>>>0<4293918720)-1|0)|0,r=(n=e>>21)+ot|0,Qe=e=(r=(e=(2097151&e)<<11|o>>>21)>>>0>(le=e+it|0)>>>0?r+1|0:r)-((le>>>0<4293918720)-1|0)|0,_e=Le- -1048576|0,Se=Pe-((Le>>>0<4293918720)-1|0)|0,we=(2097151&e)<<11|(a=le- -1048576|0)>>>21,e=(e>>21)+Pe|0,at=(Le=we+Le|0)-(n=-2097152&_e)|0,it=(we>>>0>Le>>>0?e+1|0:e)-((n>>>0>Le>>>0)+Se|0)|0,ot=le-(e=-2097152&a)|0,tt=r-((e>>>0>le>>>0)+Qe|0)|0,Ge=he-(e=-2097152&o)|0,Le=Ze-((e>>>0>he>>>0)+Ke|0)|0,e=me(Fe,Xe,-997805,-1),n=v,r=e,e=me(ee,$,654183,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,a=(e=r)+(r=me(et,re,136657,0))|0,e=v+n|0,n=nt+(r>>>0>a>>>0?e+1|0:e)|0,Ze=(r=a+ze|0)-(e=-2097152&pe)|0,Ke=(n=r>>>0>>0?n+1|0:n)-((e>>>0>r>>>0)+rt|0)|0,ze=De-(e=-2097152&Ie)|0,Pe=Oe-((e>>>0>De>>>0)+ce|0)|0,n=me(ne,te,-997805,-1),e=v,r=n,n=me(z,X,654183,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,a=(n=r)+(r=me(G,V,136657,0))|0,n=v+e|0,n=r>>>0>a>>>0?n+1|0:n,e=me(q,Q,-683901,-1),r=v+n|0,n=Ne+(e>>>0>(a=e+a|0)>>>0?r+1|0:r)|0,Ie=(r=a+qe|0)-(e=-2097152&Ce)|0,Oe=(n=r>>>0>>0?n+1|0:n)-((e>>>0>r>>>0)+oe|0)|0,n=me(ne,te,654183,0),e=v,r=n,n=me(z,X,470296,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,a=(n=me(G,V,-997805,-1))+r|0,r=v+e|0,n=je+(n>>>0>a>>>0?r+1|0:r)|0,n=(e=a+Ye|0)>>>0>>0?n+1|0:n,r=e,e=me(q,Q,136657,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,a=(e=r)+(r=me(J,K,-683901,-1))|0,e=v+n|0,pe=a-(n=-2097152&Re)|0,o=(r>>>0>a>>>0?e+1|0:e)-((n>>>0>a>>>0)+ae|0)|0,a=(u[d+28|0]|u[d+29|0]<<8|u[d+30|0]<<16|u[d+31|0]<<24)>>>7|0,e=me(p,0,M,0),n=v,le=(r=e)+(e=me(h,0,B,0))|0,r=v+n|0,r=e>>>0>le>>>0?r+1|0:r,e=me(g,0,N,0),n=v+r|0,n=e>>>0>(le=e+le|0)>>>0?n+1|0:n,r=me(I,S,R,0),e=v+n|0,e=r>>>0>(le=r+le|0)>>>0?e+1|0:e,r=me(_,0,D,0),n=v+e|0,n=r>>>0>(le=r+le|0)>>>0?n+1|0:n,r=me(E,0,P,0),e=v+n|0,e=r>>>0>(le=r+le|0)>>>0?e+1|0:e,n=me(T,0,O,0),r=v+e|0,r=n>>>0>(le=n+le|0)>>>0?r+1|0:r,e=me(k,ke,Be,0),n=v+r|0,n=e>>>0>(le=e+le|0)>>>0?n+1|0:n,r=me(y,0,F,0),e=v+n|0,e=r>>>0>(le=r+le|0)>>>0?e+1|0:e,r=me(b,0,j,0),n=v+e|0,n=r>>>0>(le=r+le|0)>>>0?n+1|0:n,r=me(A,0,Z,0),e=v+n|0,e=r>>>0>(le=r+le|0)>>>0?e+1|0:e,n=me(w,0,H,0),r=v+e|0,n=n>>>0>(le=n+le|0)>>>0?r+1|0:r,Ne=(r=(2097151&He)<<11|Je>>>21)+(e=a+le|0)|0,e=(He>>>21|0)+(n=e>>>0>>0?n+1|0:n)|0,we=e=r>>>0>Ne>>>0?e+1|0:e,Qe=n=e-((Ne>>>0<4293918720)-1|0)|0,r=(e=n>>>21|0)+o|0,he=r=(n=(2097151&n)<<11|(ke=Ne- -1048576|0)>>>21)>>>0>(Ce=n+pe|0)>>>0?r+1|0:r,Je=n=r-((Ce>>>0<4293918720)-1|0)|0,e=(e=n>>21)+Oe|0,pe=e=(n=(2097151&n)<<11|(le=Ce- -1048576|0)>>>21)>>>0>(Ie=n+Ie|0)>>>0?e+1|0:e,Re=n=e-((Ie>>>0<4293918720)-1|0)|0,r=(e=n>>21)+Pe|0,He=r=(n=(a=(2097151&n)<<11|(o=Ie- -1048576|0)>>>21)+ze|0)>>>0>>0?r+1|0:r,Pe=n,e=me(n,r,-683901,-1),n=v+Ke|0,Oe=r=e+Ze|0,a=e>>>0>r>>>0?n+1|0:n,n=me(ee,$,470296,0),e=v+Ae|0,e=n>>>0>(ve=n+ve|0)>>>0?e+1|0:e,n=me(Fe,Xe,654183,0),e=v+(e-(((r=-2097152&be)>>>0>ve>>>0)+fe|0)|0)|0,e=n>>>0>(be=n+(ve-r|0)|0)>>>0?e+1|0:e,r=me(et,re,-997805,-1),n=v+e|0,n=r>>>0>(be=r+be|0)>>>0?n+1|0:n,je=r=Ie-(e=-2097152&o)|0,Be=pe=pe-((e>>>0>Ie>>>0)+Re|0)|0,be=(o=me(Pe,He,136657,0))+be|0,e=v+n|0,r=me(r,pe,-683901,-1),n=v+(o>>>0>be>>>0?e+1|0:e)|0,pe=n=r>>>0>(Ae=r+be|0)>>>0?n+1|0:n,Re=e=n-((Ae>>>0<4293918720)-1|0)|0,n=(2097151&e)<<11|(o=Ae- -1048576|0)>>>21,e=(e>>21)+a|0,Ie=n=(e=n>>>0>(be=n+Oe|0)>>>0?e+1|0:e)-((be>>>0<4293918720)-1|0)|0,ve=(2097151&n)<<11|(a=be- -1048576|0)>>>21,n=(n>>21)+Le|0,Ge=Oe=ve+Ge|0,Oe=ve>>>0>Oe>>>0?n+1|0:n,Le=be-(n=-2097152&a)|0,Ye=e-((n>>>0>be>>>0)+Ie|0)|0,Ze=Ae-(e=-2097152&o)|0,Ke=pe-((e>>>0>Ae>>>0)+Re|0)|0,e=me(ee,$,666643,0),r=Ee+v|0,r=(o=e+We|0)>>>0>>0?r+1|0:r,a=(e=me(Fe,Xe,470296,0))+(o-(n=-2097152&ye)|0)|0,n=v+(r-((n>>>0>o>>>0)+de|0)|0)|0,n=e>>>0>a>>>0?n+1|0:n,r=me(et,re,654183,0),e=v+n|0,be=a=r+a|0,a=r>>>0>a>>>0?e+1|0:e,o=Ce-(e=-2097152&le)|0,pe=he-((e>>>0>Ce>>>0)+Je|0)|0,e=me(ne,te,470296,0),n=v,r=e,e=me(z,X,666643,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,e=me(G,V,654183,0),n=v+n|0,n=e>>>0>(r=e+r|0)>>>0?n+1|0:n,le=(e=r)+(r=me(q,Q,-997805,-1))|0,e=v+n|0,e=r>>>0>le>>>0?e+1|0:e,n=me(J,K,136657,0),e=v+e|0,e=n>>>0>(r=n+le|0)>>>0?e+1|0:e,le=(n=me(Y,W,-683901,-1))+r|0,r=v+e|0,n=we+(n>>>0>le>>>0?r+1|0:r)|0,Ce=(r=(2097151&Ue)<<11|Me>>>21)+((le=le+Ne|0)-(e=-2097152&ke)|0)|0,e=((n=le>>>0>>0?n+1|0:n)-((e>>>0>le>>>0)+Qe|0)|0)+(Ue>>21)|0,Ie=e=r>>>0>Ce>>>0?e+1|0:e,ze=e=e-((Ce>>>0<4293918720)-1|0)|0,n=o,o=(2097151&e)<<11|(ye=Ce- -1048576|0)>>>21,e=(e>>21)+pe|0,Re=e=(r=n+o|0)>>>0>>0?e+1|0:e,Ne=r,e=me(r,e,-683901,-1),n=v+a|0,n=e>>>0>(r=e+be|0)>>>0?n+1|0:n,a=(e=r)+(r=me(Pe,He,-997805,-1))|0,e=v+n|0,e=r>>>0>a>>>0?e+1|0:e,n=me(je,Be,136657,0),r=v+e|0,Me=a=n+a|0,he=n>>>0>a>>>0?r+1|0:r,be=Ve-(e=-2097152&Te)|0,we=ge-((e>>>0>Ve>>>0)+ue|0)|0,n=me(M,0,j,0),e=v,r=n,n=me(B,0,F,0),e=v+e|0,e=n>>>0>(r=r+n|0)>>>0?e+1|0:e,n=me(N,0,Z,0),e=v+e|0,e=n>>>0>(r=n+r|0)>>>0?e+1|0:e,a=(n=me(D,0,H,0))+r|0,r=v+e|0,n=n>>>0>a>>>0?r+1|0:r,ke=r=(e=(u[d+7|0]|u[d+8|0]<<8|u[d+9|0]<<16|u[d+10|0]<<24)>>>7&2097151)+a|0,le=e>>>0>r>>>0?n+1|0:n,e=me(M,0,F,0),n=v,r=e,e=me(B,0,H,0),n=v+n|0,n=e>>>0>(r=r+e|0)>>>0?n+1|0:n,a=(e=r)+(r=me(D,0,Z,0))|0,e=v+n|0,pe=a,a=r>>>0>a>>>0?e+1|0:e,e=(n=u[d+6|0])>>>24|0,o=n<<8|(Qe=u[d+2|0]|u[d+3|0]<<8|u[d+4|0]<<16|u[d+5|0]<<24)>>>24,r=e,n=(e=u[d+7|0])>>>16|0,n|=r,r=a,o=r=(e=2097151&((3&n)<<30|(e=e<<16|o)>>>2))>>>0>(pe=e+pe|0)>>>0?r+1|0:r,qe=e=r-((pe>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(Ee=pe- -1048576|0)>>>21,e=(e>>>21|0)+le|0,ve=e=r>>>0>(ge=r+ke|0)>>>0?e+1|0:e,Je=e=e-((ge>>>0<4293918720)-1|0)|0,r=(n=e>>>21|0)+we|0,r=(e=(2097151&e)<<11|(Ae=ge- -1048576|0)>>>21)>>>0>(a=e+be|0)>>>0?r+1|0:r,n=me(Fe,Xe,666643,0),e=v+r|0,e=n>>>0>(a=n+a|0)>>>0?e+1|0:e,n=me(et,re,470296,0),e=v+e|0,e=n>>>0>(r=n+a|0)>>>0?e+1|0:e,a=(n=r)+(r=me(Ne,Re,136657,0))|0,n=v+e|0,n=r>>>0>a>>>0?n+1|0:n,e=me(Pe,He,654183,0),n=v+n|0,n=e>>>0>(r=e+a|0)>>>0?n+1|0:n,be=(e=me(je,Be,-997805,-1))+r|0,r=v+n|0,we=r=e>>>0>be>>>0?r+1|0:r,Ue=e=r-((be>>>0<4293918720)-1|0)|0,r=(2097151&e)<<11|(ke=be- -1048576|0)>>>21,e=(e>>21)+he|0,Me=r=(e=r>>>0>(a=r+Me|0)>>>0?e+1|0:e)-((a>>>0<4293918720)-1|0)|0,le=(2097151&r)<<11|(he=a- -1048576|0)>>>21,r=(r>>21)+Ke|0,De=Te=le+Ze|0,Te=le>>>0>Te>>>0?r+1|0:r,le=a,n=e,a=(Ce-(e=-2097152&ye)|0)+(ye=(2097151&Se)<<11|_e>>>21)|0,e=(Ie-((e>>>0>Ce>>>0)+ze|0)|0)+(Se>>21)|0,_e=e=a>>>0>>0?e+1|0:e,Ze=e=e-((a>>>0<4293918720)-1|0)|0,Ce=r=e>>21,e=me(Fe=(2097151&e)<<11|(Se=a- -1048576|0)>>>21,r,-683901,-1),n=v+n|0,n=e>>>0>(r=e+le|0)>>>0?n+1|0:n,Ke=r-(e=-2097152&he)|0,Ve=n-((e>>>0>r>>>0)+Me|0)|0,n=me(Fe,Ce,136657,0),e=v+we|0,e=n>>>0>(r=n+be|0)>>>0?e+1|0:e,We=r-(n=-2097152&ke)|0,Ue=e-((n>>>0>r>>>0)+Ue|0)|0,n=me(et,re,666643,0),e=v+(ve-(((r=-2097152&Ae)>>>0>ge>>>0)+Je|0)|0)|0,e=n>>>0>(le=n+(ge-r|0)|0)>>>0?e+1|0:e,r=me(Ne,Re,-997805,-1),n=v+e|0,n=r>>>0>(le=r+le|0)>>>0?n+1|0:n,e=me(Pe,He,470296,0),r=v+n|0,r=e>>>0>(le=e+le|0)>>>0?r+1|0:r,n=me(je,Be,654183,0),e=v+r|0,Me=le=n+le|0,we=n>>>0>le>>>0?e+1|0:e,r=Qe>>>5&2097151,e=me(M,0,H,0),n=v,he=e,e=me(B,0,Z,0),n=v+n|0,e=e>>>0>(le=he+e|0)>>>0?n+1|0:n,he=n=r+le|0,r=e=n>>>0>>0?e+1|0:e,ge=(n=me(M,0,Z,0))+(e=(e=u[d+2|0])<<16&2031616|u[0|d]|u[d+1|0]<<8)|0,n=v,ye=n=e>>>0>ge>>>0?n+1|0:n,ze=n=n-((ge>>>0<4293918720)-1|0)|0,e=(e=n>>>21|0)+r|0,Ae=e=(n=(2097151&n)<<11|(ve=ge- -1048576|0)>>>21)>>>0>(Ie=n+he|0)>>>0?e+1|0:e,Qe=n=e-((Ie>>>0<4293918720)-1|0)|0,r=(2097151&n)<<11|(be=Ie- -1048576|0)>>>21,n=(n>>>21|0)+o|0,n=r>>>0>(le=r+pe|0)>>>0?n+1|0:n,r=me(Ne,Re,654183,0),e=v+(n-(((o=-2097152&Ee)>>>0>le>>>0)+qe|0)|0)|0,e=r>>>0>(pe=r+(le-o|0)|0)>>>0?e+1|0:e,n=me(Pe,He,666643,0),e=v+e|0,e=n>>>0>(r=n+pe|0)>>>0?e+1|0:e,ke=(n=r)+(r=me(je,Be,470296,0))|0,n=v+e|0,he=n=r>>>0>ke>>>0?n+1|0:n,Je=n=n-((ke>>>0<4293918720)-1|0)|0,r=(e=n>>21)+we|0,Ee=n=(r=(n=(2097151&n)<<11|(le=ke- -1048576|0)>>>21)>>>0>(pe=n+Me|0)>>>0?r+1|0:r)-((pe>>>0<4293918720)-1|0)|0,we=(2097151&n)<<11|(o=pe- -1048576|0)>>>21,n=(n>>21)+Ue|0,He=Pe=we+We|0,we=we>>>0>Pe>>>0?n+1|0:n,e=me(Fe,Ce,-997805,-1),n=v+r|0,n=e>>>0>(pe=e+pe|0)>>>0?n+1|0:n,Ue=pe-(e=-2097152&o)|0,Me=n-((e>>>0>pe>>>0)+Ee|0)|0,n=me(Fe,Ce,654183,0),e=v+he|0,e=n>>>0>(r=n+ke|0)>>>0?e+1|0:e,Pe=r-(n=-2097152&le)|0,Ee=e-((n>>>0>r>>>0)+Je|0)|0,e=me(Ne,Re,470296,0),r=v+(Ae-(((n=-2097152&be)>>>0>Ie>>>0)+Qe|0)|0)|0,r=e>>>0>(o=e+(Ie-n|0)|0)>>>0?r+1|0:r,n=me(je,Be,666643,0),e=v+r|0,pe=o=n+o|0,r=n>>>0>o>>>0?e+1|0:e,n=me(Ne,Re,666643,0),e=v+(ye-((4095&ze)+((o=-2097152&ve)>>>0>ge>>>0)|0)|0)|0,ke=e=n>>>0>(be=n+(ge-o|0)|0)>>>0?e+1|0:e,ye=e=e-((be>>>0<4293918720)-1|0)|0,o=(2097151&e)<<11|(he=be- -1048576|0)>>>21,e=(e>>21)+r|0,r=e=o>>>0>(le=o+pe|0)>>>0?e+1|0:e,ve=e=e-((le>>>0<4293918720)-1|0)|0,o=(2097151&e)<<11|(pe=le- -1048576|0)>>>21,e=(e>>21)+Ee|0,o=o>>>0>(Ae=o+Pe|0)>>>0?e+1|0:e,e=me(Fe,Ce,470296,0),r=v+r|0,r=e>>>0>(n=e+le|0)>>>0?r+1|0:r,le=n-(e=-2097152&pe)|0,pe=r-((e>>>0>n>>>0)+ve|0)|0,n=me(Fe,Ce,666643,0),e=v+(ke-(((r=-2097152&he)>>>0>be>>>0)+ye|0)|0)|0,n=(r=(e=n>>>0>(Ie=n+(be-r|0)|0)>>>0?e+1|0:e)>>21)+pe|0,e=(e=(n=(e=(2097151&e)<<11|Ie>>>21)>>>0>(Ee=e+le|0)>>>0?n+1|0:n)>>21)+o|0,n=(n=(e=(n=(2097151&n)<<11|Ee>>>21)>>>0>(ye=n+Ae|0)>>>0?e+1|0:e)>>21)+Me|0,r=(e=(n=(e=(2097151&e)<<11|ye>>>21)>>>0>(o=e+Ue|0)>>>0?n+1|0:n)>>21)+we|0,e=(n=(r=(n=(2097151&n)<<11|o>>>21)>>>0>(ve=n+He|0)>>>0?r+1|0:r)>>21)+Ve|0,n=(r=(e=(r=(2097151&r)<<11|ve>>>21)>>>0>(Ae=r+Ke|0)>>>0?e+1|0:e)>>21)+Te|0,e=(e=(n=(e=(2097151&e)<<11|Ae>>>21)>>>0>(be=e+De|0)>>>0?n+1|0:n)>>21)+Ye|0,n=(n=(e=(n=(2097151&n)<<11|be>>>21)>>>0>(we=n+Le|0)>>>0?e+1|0:e)>>21)+Oe|0,r=(e=(n=(e=(2097151&e)<<11|we>>>21)>>>0>(ke=e+Ge|0)>>>0?n+1|0:n)>>21)+tt|0,e=(n=(r=(n=(2097151&n)<<11|ke>>>21)>>>0>(he=n+ot|0)>>>0?r+1|0:r)>>21)+it|0,pe=(Se=a-(n=-2097152&Se)|0)+((2097151&(e=(r=(2097151&r)<<11|he>>>21)>>>0>(le=r+at|0)>>>0?e+1|0:e))<<11|le>>>21)|0,e=(_e-((n>>>0>a>>>0)+Ze|0)|0)+(e>>21)|0,Se=n=(e=pe>>>0>>0?e+1|0:e)>>21,Ie=(e=me(Te=(2097151&e)<<11|pe>>>21,n,666643,0))+(n=2097151&Ie)|0,e=v,a=e=n>>>0>Ie>>>0?e+1|0:e,s[0|i]=Ie,s[i+1|0]=(255&e)<<24|Ie>>>8,e=2097151&Ee,n=me(Te,Se,470296,0)+e|0,r=v,e=(a>>21)+(e>>>0>n>>>0?r+1|0:r)|0,e=(_e=(2097151&a)<<11|Ie>>>21)>>>0>(Ee=_e+n|0)>>>0?e+1|0:e,s[i+4|0]=(2047&e)<<21|Ee>>>11,n=e,r=Ee,s[i+3|0]=(7&e)<<29|r>>>3,s[i+2|0]=31&((65535&a)<<16|Ie>>>16)|r<<5,a=2097151&ye,ye=me(Te,Se,654183,0)+a|0,e=v,Ee=(2097151&n)<<11|r>>>21,n=(n>>21)+(a=a>>>0>ye>>>0?e+1|0:e)|0,e=n=(ye=Ee+ye|0)>>>0>>0?n+1|0:n,s[i+6|0]=(63&e)<<26|ye>>>6,a=ye,ye=0,s[i+5|0]=ye<<13|(1572864&r)>>>19|a<<2,r=2097151&o,o=me(Te,Se,-997805,-1)+r|0,n=v,n=r>>>0>o>>>0?n+1|0:n,ye=(2097151&(r=e))<<11|a>>>21,r=(e>>=21)+n|0,r=(o=ye+o|0)>>>0>>0?r+1|0:r,s[i+9|0]=(511&r)<<23|o>>>9,s[i+8|0]=(1&r)<<31|o>>>1,n=0,s[i+7|0]=n<<18|(2080768&a)>>>14|o<<7,n=2097151&ve,a=me(Te,Se,136657,0)+n|0,e=v,e=n>>>0>a>>>0?e+1|0:e,ve=(2097151&(n=r))<<11|o>>>21,n=e+(r=n>>21)|0,n=(a=ve+a|0)>>>0>>0?n+1|0:n,s[i+12|0]=(4095&n)<<20|a>>>12,r=a,s[i+11|0]=(15&n)<<28|r>>>4,a=0,s[i+10|0]=a<<15|(1966080&o)>>>17|r<<4,a=2097151&Ae,o=me(Te,Se,-683901,-1)+a|0,e=v,e=a>>>0>o>>>0?e+1|0:e,a=n,n=e+(n>>=21)|0,n=(a=(Ae=o)+(o=(2097151&a)<<11|r>>>21)|0)>>>0>>0?n+1|0:n,s[i+14|0]=(127&n)<<25|a>>>7,o=0,s[i+13|0]=o<<12|(1048576&r)>>>20|a<<1,e=n>>21,r=(n=(2097151&n)<<11|a>>>21)>>>0>(o=n+(2097151&be)|0)>>>0?e+1|0:e,s[i+17|0]=(1023&r)<<22|o>>>10,s[i+16|0]=(3&r)<<30|o>>>2,n=0,s[i+15|0]=n<<17|(2064384&a)>>>15|o<<6,e=r>>21,e=(n=(2097151&r)<<11|o>>>21)>>>0>(r=n+(2097151&we)|0)>>>0?e+1|0:e,s[i+20|0]=(8191&e)<<19|r>>>13,s[i+19|0]=(31&e)<<27|r>>>5,a=(n=2097151&ke)+(ke=(2097151&e)<<11|r>>>21)|0,n=e>>21,n=a>>>0>>0?n+1|0:n,ke=a,s[i+21|0]=a,we=0,s[i+18|0]=we<<14|(1835008&o)>>>18|r<<3,s[i+22|0]=(255&n)<<24|a>>>8,r=n>>21,r=(a=(o=(2097151&n)<<11|a>>>21)+(2097151&he)|0)>>>0>>0?r+1|0:r,s[i+25|0]=(2047&r)<<21|a>>>11,s[i+24|0]=(7&r)<<29|a>>>3,s[i+23|0]=31&((65535&n)<<16|ke>>>16)|a<<5,e=r>>21,e=(n=(2097151&r)<<11|a>>>21)>>>0>(r=n+(2097151&le)|0)>>>0?e+1|0:e,s[i+27|0]=(63&e)<<26|r>>>6,o=0,s[i+26|0]=o<<13|(1572864&a)>>>19|r<<2,n=e>>21,n=(e=(a=(2097151&e)<<11|r>>>21)+(2097151&pe)|0)>>>0>>0?n+1|0:n,s[i+31|0]=(131071&n)<<15|e>>>17,s[i+30|0]=(511&n)<<23|e>>>9,s[i+29|0]=(1&n)<<31|e>>>1,a=0,s[i+28|0]=a<<18|(2080768&r)>>>14|e<<7,$e(f,64),$e(d,64),t&&(c[t>>2]=64,c[t+4>>2]=0),m=l+560|0,0}function w(e,t,n,r){for(var a=0,i=0,o=0,s=0,d=0,f=0,l=0,b=0,p=0,h=0,y=0,m=0,g=0,A=0,w=0,x=0,_=0,k=0,I=0,S=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,N=0,R=0,D=0,j=0,U=0,L=0,F=0,Z=0,H=0,z=0;o=(a=l<<3)+n|0,i=u[0|(a=t+a|0)]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,E=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,d=i<<24|(65280&i)<<8,p=(f=16711680&i)<<24,f=f>>>8|0,a=(b=-16777216&i)>>>24|0,c[o>>2]=p|b<<8|-16777216&((255&E)<<24|i>>>8)|16711680&((16777215&E)<<8|i>>>24)|E>>>8&65280|E>>>24,i=a|f|d,a=0,c[o+4>>2]=i|a|a,16!=(0|(l=l+1|0)););for(t=c[e+4>>2],c[r>>2]=c[e>>2],c[r+4>>2]=t,t=c[e+60>>2],c[r+56>>2]=c[e+56>>2],c[r+60>>2]=t,t=c[e+52>>2],c[r+48>>2]=c[e+48>>2],c[r+52>>2]=t,t=c[e+44>>2],c[r+40>>2]=c[e+40>>2],c[r+44>>2]=t,t=c[e+36>>2],c[r+32>>2]=c[e+32>>2],c[r+36>>2]=t,t=c[e+28>>2],c[r+24>>2]=c[e+24>>2],c[r+28>>2]=t,t=c[e+20>>2],c[r+16>>2]=c[e+16>>2],c[r+20>>2]=t,t=c[e+12>>2],c[r+8>>2]=c[e+8>>2],c[r+12>>2]=t;b=c[r+56>>2],d=c[r+60>>2],a=c[(t=E=(C=z<<3)+n|0)>>2],t=c[t+4>>2],_=i=c[r+36>>2],i=de(l=c[r+32>>2],i,50),o=v,i=de(l,_,46)^i,o^=v,i=de(l,_,23)^i,t=(v^o)+t|0,t=(a=i+a|0)>>>0>>0?t+1|0:t,a=(o=c[(i=C+34e3|0)>>2])+a|0,t=c[i+4>>2]+t|0,t=a>>>0>>0?t+1|0:t,i=(p=((o=c[r+48>>2])^(f=c[r+40>>2]))&l^o)+a|0,a=(((x=c[r+52>>2])^(h=c[r+44>>2]))&_^x)+t|0,t=(i>>>0

>>0?a+1|0:a)+d|0,t=(a=i)>>>0>(i=i+b|0)>>>0?t+1|0:t,b=(d=c[r+24>>2])+i|0,a=c[r+28>>2]+t|0,y=a=d>>>0>b>>>0?a+1|0:a,c[r+24>>2]=b,c[r+28>>2]=a,I=a=c[r+4>>2],a=de(g=c[r>>2],a,36),d=v,a=de(g,I,30)^a,p=v^d,d=i+(de(g,I,25)^a)|0,a=t+(v^p)|0,a=i>>>0>d>>>0?a+1|0:a,p=(t=d)+(d=g&((i=c[r+16>>2])|(A=c[r+8>>2]))|i&A)|0,t=(t=a)+(I&((a=c[r+20>>2])|(k=c[r+12>>2]))|a&k)|0,d=t=d>>>0>p>>>0?t+1|0:t,c[r+56>>2]=p,c[r+60>>2]=t,s=i,m=a,S=c[(t=j=(w=8|C)+n|0)>>2],D=c[t+4>>2],a=((h^_)&y^h)+x|0,a=(t=(i=(f^l)&b^f)+o|0)>>>0>>0?a+1|0:a,i=de(b,y,50),o=v,i=de(b,y,46)^i,o^=v,i=(x=de(b,y,23)^i)+t|0,t=(v^o)+a|0,t=(i>>>0>>0?t+1|0:t)+D|0,t=(a=i+S|0)>>>0>>0?t+1|0:t,i=(i=a)+(o=c[(a=w+34e3|0)>>2])|0,a=c[a+4>>2]+t|0,a=(t=i>>>0>>0?a+1|0:a)+m|0,w=a=(s=i+s|0)>>>0>>0?a+1|0:a,c[r+16>>2]=s,c[r+20>>2]=a,t=t+((k|I)&d|k&I)|0,t=(a=i+((g|A)&p|g&A)|0)>>>0>>0?t+1|0:t,i=de(p,d,36),o=v,i=de(p,d,30)^i,m=v^o,o=a,a=de(p,d,25)^i,t=(v^m)+t|0,m=t=a>>>0>(o=o+a|0)>>>0?t+1|0:t,c[r+48>>2]=o,c[r+52>>2]=t,t=(t=f)+(f=c[(a=D=(i=16|C)+n|0)>>2])|0,a=c[a+4>>2]+h|0,a=t>>>0>>0?a+1|0:a,i=(h=t)+(f=c[(t=i+34e3|0)>>2])|0,t=c[t+4>>2]+a|0,t=((y^_)&w^_)+(t=i>>>0>>0?t+1|0:t)|0,t=(a=(a=i)+(i=(b^l)&s^l)|0)>>>0>>0?t+1|0:t,i=de(s,w,50),f=v,i=de(s,w,46)^i,f^=v,i=(h=de(s,w,23)^i)+a|0,a=(v^f)+t|0,x=a=i>>>0>>0?a+1|0:a,t=a,a=de(o,m,36),f=v,a=de(o,m,30)^a,h=v^f,S=de(o,m,25)^a,a=((d|I)&m|d&I)+(v^h)|0,t=((f=S+((p|g)&o|p&g)|0)>>>0>>0?a+1|0:a)+t|0,h=t=(a=f)>>>0>(f=i+f|0)>>>0?t+1|0:t,c[r+40>>2]=f,c[r+44>>2]=t,a=x+k|0,k=a=(A=i+A|0)>>>0>>0?a+1|0:a,c[r+8>>2]=A,c[r+12>>2]=a,a=(a=l)+(l=c[(t=M=(i=24|C)+n|0)>>2])|0,t=c[t+4>>2]+_|0,t=a>>>0>>0?t+1|0:t,i=(_=a)+(l=c[(a=i+34e3|0)>>2])|0,a=c[a+4>>2]+t|0,a=(y^(y^w)&k)+(a=i>>>0>>0?a+1|0:a)|0,a=(t=(t=i)+(i=b^(b^s)&A)|0)>>>0>>0?a+1|0:a,i=de(A,k,50),l=v,i=de(A,k,46)^i,l^=v,i=(x=de(A,k,23)^i)+t|0,t=(v^l)+a|0,t=i>>>0>>0?t+1|0:t,a=de(f,h,36),l=v,a=de(f,h,30)^a,x=v^l,_=de(f,h,25)^a,a=((d|m)&h|d&m)+(v^x)|0,a=((l=_+((o|p)&f|o&p)|0)>>>0<_>>>0?a+1|0:a)+t|0,x=a=(_=l)>>>0>(l=i+l|0)>>>0?a+1|0:a,c[r+32>>2]=l,c[r+36>>2]=a,t=t+I|0,I=t=(g=i+g|0)>>>0>>0?t+1|0:t,c[r>>2]=g,c[r+4>>2]=t,i=c[(a=U=(t=32|C)+n|0)>>2],a=y+c[a+4>>2]|0,a=(i=i+b|0)>>>0>>0?a+1|0:a,i=(b=c[(t=t+34e3|0)>>2])+i|0,t=c[t+4>>2]+a|0,t=(w^(w^k)&I)+(t=i>>>0>>0?t+1|0:t)|0,t=(a=(a=i)+(i=s^(s^A)&g)|0)>>>0>>0?t+1|0:t,i=de(g,I,50),b=v,i=de(g,I,46)^i,b^=v,i=(y=de(g,I,23)^i)+a|0,a=(v^b)+t|0,_=a=i>>>0>>0?a+1|0:a,t=a,a=de(l,x,36),b=v,a=de(l,x,30)^a,y=v^b,S=de(l,x,25)^a,a=((h|m)&x|h&m)+(v^y)|0,t=((b=S+((o|f)&l|o&f)|0)>>>0>>0?a+1|0:a)+t|0,b=t=(y=i+b|0)>>>0>>0?t+1|0:t,c[r+24>>2]=y,c[r+28>>2]=t,a=d+_|0,_=a=(d=i+p|0)>>>0>>0?a+1|0:a,c[r+56>>2]=d,c[r+60>>2]=a,i=c[(t=N=(a=40|C)+n|0)>>2],t=w+c[t+4>>2]|0,t=(i=i+s|0)>>>0>>0?t+1|0:t,i=(p=c[(a=a+34e3|0)>>2])+i|0,a=c[a+4>>2]+t|0,a=(k^(k^I)&_)+(a=i>>>0

>>0?a+1|0:a)|0,a=(t=(t=i)+(i=A^(g^A)&d)|0)>>>0>>0?a+1|0:a,i=de(d,_,50),p=v,i=de(d,_,46)^i,p^=v,i=(s=de(d,_,23)^i)+t|0,t=(v^p)+a|0,t=i>>>0>>0?t+1|0:t,a=de(y,b,36),p=v,a=de(y,b,30)^a,s=v^p,w=de(y,b,25)^a,a=((h|x)&b|h&x)+(v^s)|0,a=((p=w+((f|l)&y|f&l)|0)>>>0>>0?a+1|0:a)+t|0,p=a=(s=i+p|0)>>>0

>>0?a+1|0:a,c[r+16>>2]=s,c[r+20>>2]=a,t=t+m|0,w=t=(m=i+o|0)>>>0>>0?t+1|0:t,c[r+48>>2]=m,c[r+52>>2]=t,i=c[(a=R=(t=48|C)+n|0)>>2],a=k+c[a+4>>2]|0,a=(i=i+A|0)>>>0>>0?a+1|0:a,i=(o=c[(t=t+34e3|0)>>2])+i|0,t=c[t+4>>2]+a|0,t=(I^(_^I)&w)+(t=i>>>0>>0?t+1|0:t)|0,t=(a=(a=i)+(i=g^(d^g)&m)|0)>>>0>>0?t+1|0:t,i=de(m,w,50),o=v,i=de(m,w,46)^i,o^=v,i=(A=de(m,w,23)^i)+a|0,a=(v^o)+t|0,k=a=i>>>0>>0?a+1|0:a,t=a,a=de(s,p,36),o=v,a=de(s,p,30)^a,A=v^o,S=de(s,p,25)^a,a=((b|x)&p|b&x)+(v^A)|0,t=((o=S+((l|y)&s|l&y)|0)>>>0>>0?a+1|0:a)+t|0,A=t=(a=o)>>>0>(o=i+o|0)>>>0?t+1|0:t,c[r+8>>2]=o,c[r+12>>2]=t,a=h+k|0,k=a=(S=i+f|0)>>>0>>0?a+1|0:a,c[r+40>>2]=S,c[r+44>>2]=a,i=c[(t=B=(a=56|C)+n|0)>>2],t=I+c[t+4>>2]|0,t=(i=i+g|0)>>>0>>0?t+1|0:t,i=(f=c[(a=a+34e3|0)>>2])+i|0,a=c[a+4>>2]+t|0,a=(_^(w^_)&k)+(a=i>>>0>>0?a+1|0:a)|0,a=(t=(t=i)+(i=d^(d^m)&S)|0)>>>0>>0?a+1|0:a,i=de(S,k,50),f=v,i=de(S,k,46)^i,f^=v,i=(h=de(S,k,23)^i)+t|0,t=(v^f)+a|0,t=i>>>0>>0?t+1|0:t,a=de(o,A,36),f=v,a=de(o,A,30)^a,h=v^f,g=de(o,A,25)^a,a=((b|p)&A|b&p)+(v^h)|0,a=((f=g+((s|y)&o|s&y)|0)>>>0>>0?a+1|0:a)+t|0,h=a=(h=f)>>>0>(f=i+f|0)>>>0?a+1|0:a,c[r>>2]=f,c[r+4>>2]=a,t=t+x|0,I=t=(a=l)>>>0>(l=i+l|0)>>>0?t+1|0:t,c[r+32>>2]=l,c[r+36>>2]=t,i=c[(a=L=(t=64|C)+n|0)>>2],a=_+c[a+4>>2]|0,a=(i=i+d|0)>>>0>>0?a+1|0:a,i=(d=c[(t=t+34e3|0)>>2])+i|0,t=c[t+4>>2]+a|0,t=(w^(w^k)&I)+(t=i>>>0>>0?t+1|0:t)|0,t=(a=(a=i)+(i=m^(m^S)&l)|0)>>>0>>0?t+1|0:t,i=de(l,I,50),d=v,i=de(l,I,46)^i,d^=v,i=(x=de(l,I,23)^i)+a|0,a=(v^d)+t|0,g=a=i>>>0>>0?a+1|0:a,t=a,a=de(f,h,36),d=v,a=de(f,h,30)^a,x=v^d,_=de(f,h,25)^a,a=((p|A)&h|p&A)+(v^x)|0,t=((d=_+((o|s)&f|o&s)|0)>>>0<_>>>0?a+1|0:a)+t|0,d=t=(x=i+d|0)>>>0>>0?t+1|0:t,c[r+56>>2]=x,c[r+60>>2]=t,a=b+g|0,_=a=(b=i+y|0)>>>0>>0?a+1|0:a,c[r+24>>2]=b,c[r+28>>2]=a,i=c[(t=T=(a=72|C)+n|0)>>2],t=w+c[t+4>>2]|0,t=(i=i+m|0)>>>0>>0?t+1|0:t,i=(m=c[(a=a+34e3|0)>>2])+i|0,a=c[a+4>>2]+t|0,a=(k^(k^I)&_)+(a=i>>>0>>0?a+1|0:a)|0,a=(t=(t=i)+(i=S^(l^S)&b)|0)>>>0>>0?a+1|0:a,i=de(b,_,50),m=v,i=de(b,_,46)^i,m^=v,i=(g=de(b,_,23)^i)+t|0,t=(v^m)+a|0,t=i>>>0>>0?t+1|0:t,a=de(x,d,36),m=v,a=de(x,d,30)^a,g=v^m,y=de(x,d,25)^a,a=((h|A)&d|h&A)+(v^g)|0,a=((m=y+((o|f)&x|o&f)|0)>>>0>>0?a+1|0:a)+t|0,m=a=(g=i+m|0)>>>0>>0?a+1|0:a,c[r+48>>2]=g,c[r+52>>2]=a,t=t+p|0,w=t=(p=i+s|0)>>>0>>0?t+1|0:t,c[r+16>>2]=p,c[r+20>>2]=t,t=(s=c[(a=P=(i=80|C)+n|0)>>2])+S|0,a=c[a+4>>2]+k|0,a=t>>>0>>0?a+1|0:a,i=(y=t)+(s=c[(t=i+34e3|0)>>2])|0,t=c[t+4>>2]+a|0,t=(I^(_^I)&w)+(t=i>>>0>>0?t+1|0:t)|0,t=(a=(a=i)+(i=l^(b^l)&p)|0)>>>0>>0?t+1|0:t,i=de(p,w,50),s=v,i=de(p,w,46)^i,s^=v,i=(y=de(p,w,23)^i)+a|0,a=(v^s)+t|0,k=a=i>>>0>>0?a+1|0:a,t=a,a=de(g,m,36),s=v,a=de(g,m,30)^a,y=v^s,S=de(g,m,25)^a,a=((d|h)&m|d&h)+(v^y)|0,t=((s=S+((f|x)&g|f&x)|0)>>>0>>0?a+1|0:a)+t|0,s=t=(y=i+s|0)>>>0>>0?t+1|0:t,c[r+40>>2]=y,c[r+44>>2]=t,a=A+k|0,k=a=(A=i+o|0)>>>0>>0?a+1|0:a,c[r+8>>2]=A,c[r+12>>2]=a,a=34e3+(t=88|C)|0,o=c[(t=O=t+n|0)>>2],i=c[a>>2]+o|0,t=c[a+4>>2]+c[t+4>>2]|0,a=I+(i>>>0>>0?t+1|0:t)|0,a=(_^(w^_)&k)+(a=(t=i+l|0)>>>0>>0?a+1|0:a)|0,a=(t=(i=b^(b^p)&A)+t|0)>>>0>>0?a+1|0:a,i=de(A,k,50),o=v,i=de(A,k,46)^i,o^=v,i=(l=de(A,k,23)^i)+t|0,t=(v^o)+a|0,t=i>>>0>>0?t+1|0:t,a=de(y,s,36),o=v,a=de(y,s,30)^a,l=v^o,I=de(y,s,25)^a,a=((d|m)&s|d&m)+(v^l)|0,a=((o=I+((g|x)&y|g&x)|0)>>>0>>0?a+1|0:a)+t|0,l=a=(l=o)>>>0>(o=i+o|0)>>>0?a+1|0:a,c[r+32>>2]=o,c[r+36>>2]=a,t=t+h|0,h=t=(a=f)>>>0>(f=i+f|0)>>>0?t+1|0:t,c[r>>2]=f,c[r+4>>2]=t,a=34e3+(t=96|C)|0,I=c[(t=F=t+n|0)>>2],i=c[a>>2]+I|0,a=c[a+4>>2]+c[t+4>>2]|0,t=_+(i>>>0>>0?a+1|0:a)|0,t=(a=i+b|0)>>>0>>0?t+1|0:t,i=(b=p^(p^A)&f)+a|0,a=(w^(w^k)&h)+t|0,a=i>>>0>>0?a+1|0:a,t=de(f,h,50),b=v,t=de(f,h,46)^t,b^=v,_=i,i=de(f,h,23)^t,a=(v^b)+a|0,_=a=(t=_+i|0)>>>0>>0?a+1|0:a,i=t,t=de(o,l,36),b=v,t=de(o,l,30)^t,I=v^b,S=de(o,l,25)^t,t=((s|m)&l|s&m)+(v^I)|0,a=((b=S+((g|y)&o|g&y)|0)>>>0>>0?t+1|0:t)+a|0,b=a=(I=i+b|0)>>>0>>0?a+1|0:a,c[r+24>>2]=I,c[r+28>>2]=a,a=d+_|0,d=a=(x=i+x|0)>>>0>>0?a+1|0:a,c[r+56>>2]=x,c[r+60>>2]=a,a=34e3+(t=104|C)|0,_=c[(t=H=t+n|0)>>2],i=c[a>>2]+_|0,t=c[a+4>>2]+c[t+4>>2]|0,a=w+(i>>>0<_>>>0?t+1|0:t)|0,a=(t=i+p|0)>>>0

>>0?a+1|0:a,i=(p=A^(f^A)&x)+t|0,t=(k^(h^k)&d)+a|0,t=i>>>0

>>0?t+1|0:t,a=de(x,d,50),p=v,a=de(x,d,46)^a,p^=v,w=de(x,d,23)^a,a=(v^p)+t|0,_=a=(i=w+i|0)>>>0>>0?a+1|0:a,t=a,a=de(I,b,36),p=v,a=de(I,b,30)^a,w=v^p,S=de(I,b,25)^a,a=((s|l)&b|s&l)+(v^w)|0,t=((p=S+((o|y)&I|o&y)|0)>>>0>>0?a+1|0:a)+t|0,p=t=(w=i+p|0)>>>0

>>0?t+1|0:t,c[r+16>>2]=w,c[r+20>>2]=t,t=m+_|0,m=t=(g=i+g|0)>>>0>>0?t+1|0:t,c[r+48>>2]=g,c[r+52>>2]=t,a=34e3+(t=112|C)|0,_=c[(i=S=t+n|0)>>2],t=c[a>>2]+_|0,a=c[a+4>>2]+c[i+4>>2]|0,a=k+(t>>>0<_>>>0?a+1|0:a)|0,a=(h^(d^h)&m)+(a=(t=t+A|0)>>>0>>0?a+1|0:a)|0,a=(t=(i=f^(f^x)&g)+t|0)>>>0>>0?a+1|0:a,i=de(g,m,50),A=v,i=de(g,m,46)^i,A^=v,i=(k=de(g,m,23)^i)+t|0,t=(v^A)+a|0,_=t=i>>>0>>0?t+1|0:t,a=t,t=de(w,p,36),A=v,t=de(w,p,30)^t,k=v^A,Z=de(w,p,25)^t,t=((b|l)&p|b&l)+(v^k)|0,a=((A=Z+((o|I)&w|o&I)|0)>>>0>>0?t+1|0:t)+a|0,A=a=(k=i+A|0)>>>0>>0?a+1|0:a,c[r+8>>2]=k,c[r+12>>2]=a,a=s+_|0,i=a=(s=i+y|0)>>>0>>0?a+1|0:a,c[r+40>>2]=s,c[r+44>>2]=a,a=34e3+(t=120|C)|0,C=c[(t=y=t+n|0)>>2],_=c[a>>2]+C|0,a=c[a+4>>2]+c[t+4>>2]|0,t=h+(_>>>0>>0?a+1|0:a)|0,t=(d^(d^m)&i)+(t=(a=f+_|0)>>>0>>0?t+1|0:t)|0,t=(a=(f=x^(g^x)&s)+a|0)>>>0>>0?t+1|0:t,f=de(s,i,50),d=v,f=de(s,i,46)^f,d^=v,i=(f=de(s,i,23)^f)+a|0,a=(v^d)+t|0,a=i>>>0>>0?a+1|0:a,f=i,d=a,t=a,a=de(k,A,36),s=v,a=de(k,A,30)^a,m=v^s,h=de(k,A,25)^a,a=((b|p)&A|b&p)+(v^m)|0,t=((s=h+((w|I)&k|w&I)|0)>>>0>>0?a+1|0:a)+t|0,t=(i=i+s|0)>>>0>>0?t+1|0:t,c[r>>2]=i,c[r+4>>2]=t,a=d+l|0,a=(l=o)>>>0>(o=o+f|0)>>>0?a+1|0:a,c[r+32>>2]=o,c[r+36>>2]=a,64!=(0|z);)d=((z=z+16|0)<<3)+n|0,f=c[E>>2],l=c[E+4>>2],Z=c[T>>2],b=t=c[T+4>>2],a=t,i=t=c[S+4>>2],t=de(k=c[S>>2],t,45),o=v,s=((63&i)<<26|k>>>6)^(t=de(k,i,3)^t),t=(i>>>6^(p=v^o))+a|0,a=((o=s+Z|0)>>>0>>0?t+1|0:t)+l|0,a=(t=o+f|0)>>>0>>0?a+1|0:a,f=o=c[j+4>>2],o=de(l=c[j>>2],o,63),p=v,o=((127&f)<<25|l>>>7)^de(l,f,56)^o,a=(v^p^f>>>7)+a|0,o=a=o>>>0>(I=o+t|0)>>>0?a+1|0:a,c[d>>2]=I,c[d+4>>2]=a,l=(S=c[P>>2])+l|0,t=(d=c[P+4>>2])+f|0,a=l>>>0>>0?t+1|0:t,f=t=c[y+4>>2],t=de(_=c[y>>2],t,45),p=v,s=l,l=((63&f)<<26|_>>>6)^de(_,f,3)^t,a=(v^p^f>>>6)+a|0,l=(s=s+l|0)>>>0>>0?a+1|0:a,a=de(p=c[D>>2],t=c[D+4>>2],63),m=v,y=s,s=((127&t)<<25|p>>>7)^de(p,t,56)^a,a=(v^m^t>>>7)+l|0,l=a=s>>>0>(w=y+s|0)>>>0?a+1|0:a,c[E+136>>2]=w,c[E+140>>2]=a,a=(C=c[O>>2])+p|0,t=(p=c[O+4>>2])+t|0,s=de(I,o,45),m=v,s=(h=((63&o)<<26|I>>>6)^de(I,o,3)^s)+a|0,a=(v^m^o>>>6)+(a>>>0>>0?t+1|0:t)|0,a=s>>>0>>0?a+1|0:a,m=t=c[M+4>>2],t=de(h=c[M>>2],t,63),A=v,y=s,s=((127&m)<<25|h>>>7)^de(h,m,56)^t,a=(v^A^m>>>7)+a|0,s=a=s>>>0>(j=y+s|0)>>>0?a+1|0:a,c[E+144>>2]=j,c[E+148>>2]=a,h=(D=c[F>>2])+h|0,t=(t=m)+(m=c[F+4>>2])|0,a=h>>>0>>0?t+1|0:t,t=de(w,l,45),A=v,x=((63&l)<<26|w>>>6)^de(w,l,3)^t,a=(v^A^l>>>6)+a|0,a=(h=x+h|0)>>>0>>0?a+1|0:a,A=t=c[U+4>>2],t=de(x=c[U>>2],t,63),g=v,y=h,h=((127&A)<<25|x>>>7)^de(x,A,56)^t,a=(v^g^A>>>7)+a|0,h=a=h>>>0>(M=y+h|0)>>>0?a+1|0:a,c[E+152>>2]=M,c[E+156>>2]=a,t=(U=c[H>>2])+x|0,a=(a=A)+(A=c[H+4>>2])|0,x=de(j,s,45),g=v,x=((63&s)<<26|j>>>6)^de(j,s,3)^x,a=(v^g^s>>>6)+(t>>>0>>0?a+1|0:a)|0,x=(y=x+t|0)>>>0>>0?a+1|0:a,a=de(g=c[N>>2],t=c[N+4>>2],63),N=v,O=y,y=((127&t)<<25|g>>>7)^(a=de(g,t,56)^a),a=(t>>>7^(T=v^N))+x|0,x=a=y>>>0>(N=O+y|0)>>>0?a+1|0:a,c[E+160>>2]=N,c[E+164>>2]=a,t=t+i|0,t=(a=g+k|0)>>>0>>0?t+1|0:t,g=de(M,h,45),y=v,g=(T=((63&h)<<26|M>>>6)^de(M,h,3)^g)+a|0,a=(v^y^h>>>6)+t|0,a=g>>>0>>0?a+1|0:a,T=t=c[R+4>>2],t=de(y=c[R>>2],t,63),R=v,t=de(y,T,56)^t,O=g,a=(T>>>7^(P=v^R))+a|0,g=a=(g=((127&T)<<25|y>>>7)^t)>>>0>(R=O+g|0)>>>0?a+1|0:a,c[E+168>>2]=R,c[E+172>>2]=a,t=f+T|0,t=(a=y+_|0)>>>0>>0?t+1|0:t,O=y=c[B+4>>2],y=de(P=c[B>>2],y,63),T=v,y=(B=((127&O)<<25|P>>>7)^de(P,O,56)^y)+a|0,a=(v^T^O>>>7)+t|0,t=y>>>0>>0?a+1|0:a,a=de(N,x,45),T=v,a=de(N,x,3)^a,B=v^T,T=y,t=(x>>>6^B)+t|0,y=t=(y=((63&x)<<26|N>>>6)^a)>>>0>(T=T+y|0)>>>0?t+1|0:t,c[E+176>>2]=T,c[E+180>>2]=t,F=c[L>>2],L=t=c[L+4>>2],B=t,t=de(Z,b,63),a=v,H=((127&b)<<25|Z>>>7)^de(Z,b,56)^t,t=(v^a^b>>>7)+l|0,a=((w=H+w|0)>>>0>>0?t+1|0:t)+B|0,a=(t=w+F|0)>>>0>>0?a+1|0:a,l=de(T,y,45),w=v,B=(l=((63&y)<<26|T>>>6)^de(T,y,3)^l)+t|0,t=(v^w^y>>>6)+a|0,l=t=l>>>0>B>>>0?t+1|0:t,c[E+192>>2]=B,c[E+196>>2]=t,a=o+O|0,a=(t=I+P|0)>>>0

>>0?a+1|0:a,w=de(F,L,63),P=v,O=((127&L)<<25|F>>>7)^de(F,L,56)^w,a=(v^P^L>>>7)+a|0,t=(w=O+t|0)>>>0>>0?a+1|0:a,a=de(R,g,45),P=v,a=de(R,g,3)^a,L=w,t=(g>>>6^(O=v^P))+t|0,w=t=(w=((63&g)<<26|R>>>6)^a)>>>0>(P=L+w|0)>>>0?t+1|0:t,c[E+184>>2]=P,c[E+188>>2]=t,t=de(C,p,63),a=v,t=((127&p)<<25|C>>>7)^de(C,p,56)^t,a=(v^a^p>>>7)+d|0,t=h+(t>>>0>(O=t+S|0)>>>0?a+1|0:a)|0,t=(a=M+O|0)>>>0>>0?t+1|0:t,h=de(B,l,45),M=v,h=de(B,l,3)^h,O=v^M,M=(h^=(63&l)<<26|B>>>6)+a|0,a=(l>>>6^O)+t|0,h=a=h>>>0>M>>>0?a+1|0:a,c[E+208>>2]=M,c[E+212>>2]=a,t=de(S,d,63),a=v,O=de(S,d,56)^t,a=((t=d>>>7|0)^v^a)+b|0,t=s+((d=(S=O^((127&d)<<25|S>>>7))+Z|0)>>>0>>0?a+1|0:a)|0,t=(a=d+j|0)>>>0>>0?t+1|0:t,b=de(P,w,45),d=v,s=(b=((63&w)<<26|P>>>6)^de(P,w,3)^b)+a|0,a=(v^d^w>>>6)+t|0,b=a=b>>>0>s>>>0?a+1|0:a,c[E+200>>2]=s,c[E+204>>2]=a,t=de(U,A,63),a=v,S=((127&A)<<25|U>>>7)^de(U,A,56)^t,t=(v^a^A>>>7)+m|0,a=g+((d=S+D|0)>>>0>>0?t+1|0:t)|0,a=(t=d+R|0)>>>0>>0?a+1|0:a,d=de(M,h,45),g=v,O=t,t=h>>>6|0,d=((63&h)<<26|M>>>6)^de(M,h,3)^d,a=(t^v^g)+a|0,d=a=d>>>0>(h=O+d|0)>>>0?a+1|0:a,c[E+224>>2]=h,c[E+228>>2]=a,t=de(D,m,63),a=v,t=de(D,m,56)^t,g=v^a,S=((127&m)<<25|D>>>7)^t,t=((a=m>>>7|0)^g)+p|0,a=x+((m=S+C|0)>>>0>>0?t+1|0:t)|0,a=(t=m+N|0)>>>0>>0?a+1|0:a,p=de(s,b,45),m=v,g=t,t=b>>>6|0,b=((63&b)<<26|s>>>6)^de(s,b,3)^p,t=(t^v^m)+a|0,b=t=b>>>0>(p=g+b|0)>>>0?t+1|0:t,c[E+216>>2]=p,c[E+220>>2]=t,t=de(_,f,63),a=v,m=((127&f)<<25|_>>>7)^de(_,f,56)^t,a=(v^a^f>>>7)+i|0,a=w+((t=m+k|0)>>>0>>0?a+1|0:a)|0,t=(s=t+P|0)>>>0

>>0?a+1|0:a,a=de(h,d,45),m=v,w=s,s=de(h,d,3)^a,a=d>>>6|0,d=w+(s^=(63&d)<<26|h>>>6)|0,t=(a^v^m)+t|0,c[E+240>>2]=d,c[E+244>>2]=d>>>0>>0?t+1|0:t,t=de(k,i,63),a=v,t=de(k,i,56)^t,d=v^a,a=((a=i>>>7|0)^d)+A|0,t=y+((t^=(127&i)<<25|k>>>7)>>>0>(i=t+U|0)>>>0?a+1|0:a)|0,t=(a=i+T|0)>>>0>>0?t+1|0:t,i=de(p,b,45),d=v,s=a,a=b>>>6|0,i=((63&b)<<26|p>>>6)^de(p,b,3)^i,a=(a^v^d)+t|0,i=a=i>>>0>(b=s+i|0)>>>0?a+1|0:a,c[E+232>>2]=b,c[E+236>>2]=a,t=de(I,o,63),a=v,s=de(I,o,56)^t,a=((t=o>>>7|0)^v^a)+f|0,t=l+((o=(d=s^((127&o)<<25|I>>>7))+_|0)>>>0>>0?a+1|0:a)|0,t=(a=o+B|0)>>>0>>0?t+1|0:t,o=de(b,i,45),f=v,l=a,a=i>>>6|0,i=l+(o=((63&i)<<26|b>>>6)^de(b,i,3)^o)|0,a=(a^v^f)+t|0,c[E+248>>2]=i,c[E+252>>2]=i>>>0>>0?a+1|0:a;t=t+c[e+4>>2]|0,t=(n=i+c[e>>2]|0)>>>0>>0?t+1|0:t,c[e>>2]=n,c[e+4>>2]=t,a=c[e+12>>2]+c[r+12>>2]|0,t=(n=c[r+8>>2])+c[e+8>>2]|0,c[e+8>>2]=t,c[e+12>>2]=t>>>0>>0?a+1|0:a,a=c[e+20>>2]+c[r+20>>2]|0,t=(n=c[r+16>>2])+c[e+16>>2]|0,c[e+16>>2]=t,c[e+20>>2]=t>>>0>>0?a+1|0:a,t=c[e+28>>2]+c[r+28>>2]|0,n=(a=c[r+24>>2])+c[e+24>>2]|0,c[e+24>>2]=n,c[e+28>>2]=n>>>0>>0?t+1|0:t,a=c[e+36>>2]+c[r+36>>2]|0,t=(n=c[r+32>>2])+c[e+32>>2]|0,c[e+32>>2]=t,c[e+36>>2]=t>>>0>>0?a+1|0:a,t=c[e+44>>2]+c[r+44>>2]|0,n=(a=c[r+40>>2])+c[e+40>>2]|0,c[e+40>>2]=n,c[e+44>>2]=n>>>0>>0?t+1|0:t,a=c[e+52>>2]+c[r+52>>2]|0,t=(n=c[r+48>>2])+c[e+48>>2]|0,c[e+48>>2]=t,c[e+52>>2]=t>>>0>>0?a+1|0:a,a=c[e+60>>2]+c[r+60>>2]|0,t=(n=c[r+56>>2])+c[e+56>>2]|0,c[e+56>>2]=t,c[e+60>>2]=t>>>0>>0?a+1|0:a}function x(e){var t,n,r,a,i,o,c,d,f,l,b=0,p=0,h=0,y=0,m=0,g=0,A=0,w=0,x=0,_=0,k=0,I=0,S=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,N=0,R=0,D=0,j=0,U=0,L=0,F=0,Z=0,H=0,z=0,Q=0,q=0,V=0,J=0,K=0,G=0,W=0,Y=0;y=(I=u[e+44|0]|u[e+45|0]<<8|u[e+46|0]<<16|u[e+47|0]<<24)>>>5&2097151,h=me(R=(u[e+60|0]|u[e+61|0]<<8|u[e+62|0]<<16|u[e+63|0]<<24)>>>3|0,0,-683901,-1),p=(b=u[e+44|0])<<16&2031616|u[e+42|0]|u[e+43|0]<<8,b=v,w=b=p>>>0>(x=h+p|0)>>>0?b+1|0:b,T=b=b-((x>>>0<4293918720)-1|0)|0,h=b>>21,b=(p=y)+(y=(2097151&b)<<11|(g=x- -1048576|0)>>>21)|0,p=h,z=p=b>>>0>>0?p+1|0:p,Q=b,M=me(b,p,-683901,-1),_=v,A=me(t=(u[e+49|0]|u[e+50|0]<<8|u[e+51|0]<<16|u[e+52|0]<<24)>>>7&2097151,0,-997805,-1),h=(b=u[e+27|0])>>>24|0,y=b<<8|(S=u[e+23|0]|u[e+24|0]<<8|u[e+25|0]<<16|u[e+26|0]<<24)>>>24,p=(b=u[e+28|0])>>>16|0,p=2097151&((3&(p|=h))<<30|(b=y|b<<16)>>>2),b=v,b=p>>>0>(h=p+A|0)>>>0?b+1|0:b,p=me(F=(E=u[e+52|0]|u[e+53|0]<<8|u[e+54|0]<<16|u[e+55|0]<<24)>>>4&2097151,0,654183,0),b=v+b|0,A=h=p+h|0,h=p>>>0>h>>>0?b+1|0:b,m=(p=u[e+48|0])<<8|I>>>24,p=b=p>>>24|0,b=me(n=2097151&((3&(I=(b=(y=u[e+49|0])>>>16|0)|p))<<30|(p=(y<<=16)|m)>>>2),0,136657,0),h=v+h|0,h=b>>>0>(p=b+A|0)>>>0?h+1|0:h,y=(b=me(r=(u[e+57|0]|u[e+58|0]<<8|u[e+59|0]<<16|u[e+60|0]<<24)>>>6&2097151,0,666643,0))+p|0,p=v+h|0,A=y,h=b>>>0>y>>>0?p+1|0:p,p=(b=u[e+56|0])>>>24|0,m=b<<8|E>>>24,p=me(a=2097151&((1&(E=(b=(y=u[e+57|0])>>>16|0)|p))<<31|(p=(y<<=16)|m)>>>1),0,470296,0),b=v+h|0,p=(b=(h=y=p+A|0)>>>0

>>0?b+1|0:b)+_|0,p=h>>>0>(y=h+M|0)>>>0?p+1|0:p,O=h- -1048576|0,P=h=b-((h>>>0<4293918720)-1|0)|0,_=y-(b=-2097152&O)|0,M=p-((b>>>0>y>>>0)+h|0)|0,p=me(t,0,654183,0),b=v,b=p>>>0>(h=p+(S>>>5&2097151)|0)>>>0?b+1|0:b,y=(p=h)+(h=me(F,0,470296,0))|0,p=v+b|0,p=h>>>0>y>>>0?p+1|0:p,b=me(n,V,-997805,-1),p=v+p|0,p=b>>>0>(h=b+y|0)>>>0?p+1|0:p,y=(b=h)+(h=me(a,J,666643,0))|0,b=v+p|0,m=y,y=h>>>0>y>>>0?b+1|0:b,A=(h=me(t,0,470296,0))+(b=(b=u[e+23|0])<<16&2031616|u[e+21|0]|u[e+22|0]<<8)|0,h=v,h=b>>>0>A>>>0?h+1|0:h,A=(p=me(F,0,666643,0))+A|0,b=v+h|0,h=me(n,V,654183,0),p=v+(p>>>0>A>>>0?b+1|0:b)|0,E=p=h>>>0>(S=h+A|0)>>>0?p+1|0:p,L=p=p-((S>>>0<4293918720)-1|0)|0,b=(b=p>>>21|0)+y|0,h=b=(p=(2097151&p)<<11|(A=S- -1048576|0)>>>21)>>>0>(m=p+m|0)>>>0?b+1|0:b,k=p=b-((m>>>0<4293918720)-1|0)|0,b=_,_=(2097151&p)<<11|(y=m- -1048576|0)>>>21,p=(p>>21)+M|0,I=_=(p=_>>>0>(C=b+_|0)>>>0?p+1|0:p)-((C>>>0<4293918720)-1|0)|0,Z=C-(b=-2097152&(M=C- -1048576|0))|0,K=p-((b>>>0>C>>>0)+_|0)|0,b=me(Q,z,136657,0),h=v+h|0,h=b>>>0>(p=b+m|0)>>>0?h+1|0:h,N=p-(b=-2097152&y)|0,H=h-((b>>>0>p>>>0)+k|0)|0,C=x-(b=-2097152&g)|0,T=w-((b>>>0>x>>>0)+T|0)|0,w=me(R,0,136657,0),p=(b=u[e+40|0])>>>24|0,y=b<<8|(g=u[e+36|0]|u[e+37|0]<<8|u[e+38|0]<<16|u[e+39|0]<<24)>>>24,h=(b=u[e+41|0])>>>16|0,p=(h|=p)>>>3|0,h=(7&h)<<29|(b=y|b<<16)>>>3,b=p+v|0,b=h>>>0>(y=h+w|0)>>>0?b+1|0:b,p=me(r,0,-683901,-1),b=v+b|0,b=p>>>0>(h=p+y|0)>>>0?b+1|0:b,m=h,p=me(R,0,-997805,-1),h=v,h=p>>>0>(y=p+(g>>>6&2097151)|0)>>>0?h+1|0:h,g=(p=y)+(y=me(r,0,136657,0))|0,p=v+h|0,h=me(a,J,-683901,-1),p=v+(y>>>0>g>>>0?p+1|0:p)|0,_=p=h>>>0>(D=h+g|0)>>>0?p+1|0:p,G=h=p-((D>>>0<4293918720)-1|0)|0,b=b+(p=h>>21)|0,g=b=(h=(2097151&h)<<11|(x=D- -1048576|0)>>>21)>>>0>(k=h+m|0)>>>0?b+1|0:b,j=b=b-((k>>>0<4293918720)-1|0)|0,p=(p=b>>21)+T|0,q=p=(b=(h=(2097151&b)<<11|(m=k- -1048576|0)>>>21)+C|0)>>>0>>0?p+1|0:p,U=b,p=me(b,p,-683901,-1),b=v+H|0,B=h=p+N|0,y=p>>>0>h>>>0?b+1|0:b,H=S-(b=-2097152&A)|0,T=E-((4095&L)+(b>>>0>S>>>0)|0)|0,S=me(t,0,666643,0),b=(p=u[e+19|0])>>>24|0,A=p<<8|(E=u[e+15|0]|u[e+16|0]<<8|u[e+17|0]<<16|u[e+18|0]<<24)>>>24,h=b,p=(7&(h|=p=(b=u[e+20|0])>>>16|0))<<29|(p=(b<<=16)|A)>>>3,h=v+(h>>>3|0)|0,h=p>>>0>(A=p+S|0)>>>0?h+1|0:h,b=me(n,V,470296,0),p=v+h|0,b=b>>>0>(A=b+A|0)>>>0?p+1|0:p,h=me(n,V,666643,0),p=v,S=p=h>>>0>(N=h+(E>>>6&2097151)|0)>>>0?p+1|0:p,W=h=p-((N>>>0<4293918720)-1|0)|0,b=b+(p=h>>>21|0)|0,E=b=(h=(2097151&h)<<11|(w=N- -1048576|0)>>>21)>>>0>(C=h+A|0)>>>0?b+1|0:b,Y=b=b-((C>>>0<4293918720)-1|0)|0,p=(p=b>>>21|0)+T|0,p=(b=(2097151&b)<<11|(A=C- -1048576|0)>>>21)>>>0>(h=b+H|0)>>>0?p+1|0:p,T=(b=h)+(h=me(Q,z,-997805,-1))|0,b=v+p|0,b=h>>>0>T>>>0?b+1|0:b,L=p=k-(h=-2097152&m)|0,i=m=g-((h>>>0>k>>>0)+j|0)|0,h=me(U,q,136657,0),b=v+b|0,b=h>>>0>(g=h+T|0)>>>0?b+1|0:b,h=me(p,m,-683901,-1),p=v+b|0,g=p=h>>>0>(T=h+g|0)>>>0?p+1|0:p,j=b=p-((T>>>0<4293918720)-1|0)|0,p=(2097151&b)<<11|(m=T- -1048576|0)>>>21,b=(b>>21)+y|0,B=p=(b=p>>>0>(k=p+B|0)>>>0?b+1|0:b)-((k>>>0<4293918720)-1|0)|0,H=(2097151&p)<<11|(y=k- -1048576|0)>>>21,p=(p>>21)+K|0,c=Z=H+Z|0,H=Z>>>0>>0?p+1|0:p,d=k-(p=-2097152&y)|0,f=b-((p>>>0>k>>>0)+B|0)|0,Z=T-(b=-2097152&m)|0,K=g-((b>>>0>T>>>0)+j|0)|0,h=(b=me(Q,z,654183,0))+(C-(p=-2097152&A)|0)|0,p=v+(E-((p>>>0>C>>>0)+Y|0)|0)|0,p=b>>>0>h>>>0?p+1|0:p,b=me(U,q,-997805,-1),p=v+p|0,p=b>>>0>(h=b+h|0)>>>0?p+1|0:p,y=(b=h)+(h=me(L,i,136657,0))|0,b=v+p|0,B=y,g=h>>>0>y>>>0?b+1|0:b,C=D-(b=-2097152&x)|0,k=_-((b>>>0>D>>>0)+G|0)|0,E=me(F,0,-683901,-1),b=(p=u[e+35|0])>>>24|0,y=p<<8|(A=u[e+31|0]|u[e+32|0]<<8|u[e+33|0]<<16|u[e+34|0]<<24)>>>24,h=b,p=(b=u[e+36|0])>>>16|0,p|=h,h=v,h=(b=2097151&((1&p)<<31|(b=b<<16|y)>>>1))>>>0>(p=b+E|0)>>>0?h+1|0:h,y=(b=me(R,0,654183,0))+p|0,p=v+h|0,p=b>>>0>y>>>0?p+1|0:p,h=me(r,0,-997805,-1),b=v+p|0,b=h>>>0>(y=h+y|0)>>>0?b+1|0:b,p=me(a,J,136657,0),b=v+b|0,m=h=p+y|0,y=p>>>0>h>>>0?b+1|0:b,b=me(t,0,-683901,-1),p=v,p=b>>>0>(h=b+(A>>>4&2097151)|0)>>>0?p+1|0:p,A=(b=me(F,0,136657,0))+h|0,h=v+p|0,h=b>>>0>A>>>0?h+1|0:h,b=me(R,0,470296,0),p=v+h|0,p=b>>>0>(A=b+A|0)>>>0?p+1|0:p,A=(h=me(r,0,654183,0))+A|0,b=v+p|0,p=me(a,J,-997805,-1),b=v+(h>>>0>A>>>0?b+1|0:b)|0,E=b=p>>>0>(_=p+A|0)>>>0?b+1|0:b,l=p=b-((_>>>0<4293918720)-1|0)|0,h=(b=p>>21)+y|0,T=p=(h=(p=(2097151&p)<<11|(A=_- -1048576|0)>>>21)>>>0>(x=p+m|0)>>>0?h+1|0:h)-((x>>>0<4293918720)-1|0)|0,b=(b=p>>21)+k|0,j=b=(p=(y=(2097151&p)<<11|(m=x- -1048576|0)>>>21)+C|0)>>>0>>0?b+1|0:b,y=B,B=p,b=me(p,b,-683901,-1),p=v+g|0,k=y=y+b|0,y=b>>>0>y>>>0?p+1|0:p,g=(b=me(Q,z,470296,0))+(N-(p=-2097152&w)|0)|0,p=v+(S-((2047&W)+(p>>>0>N>>>0)|0)|0)|0,p=b>>>0>g>>>0?p+1|0:p,w=(b=g)+(g=me(U,q,654183,0))|0,b=v+p|0,b=g>>>0>w>>>0?b+1|0:b,g=me(L,i,-997805,-1),p=v+b|0,p=g>>>0>(w=g+w|0)>>>0?p+1|0:p,D=m=x-(b=-2097152&m)|0,o=g=h-((b>>>0>x>>>0)+T|0)|0,h=me(B,j,136657,0),b=v+p|0,b=h>>>0>(w=h+w|0)>>>0?b+1|0:b,h=me(m,g,-683901,-1),p=v+b|0,g=p=h>>>0>(S=h+w|0)>>>0?p+1|0:p,T=b=p-((S>>>0<4293918720)-1|0)|0,p=(2097151&b)<<11|(m=S- -1048576|0)>>>21,b=(b>>21)+y|0,k=p=(b=p>>>0>(w=p+k|0)>>>0?b+1|0:b)-((w>>>0<4293918720)-1|0)|0,x=(2097151&p)<<11|(y=w- -1048576|0)>>>21,p=(p>>21)+K|0,G=C=x+Z|0,C=x>>>0>C>>>0?p+1|0:p,W=w-(p=-2097152&y)|0,Y=b-((p>>>0>w>>>0)+k|0)|0,Z=S-(b=-2097152&m)|0,K=g-((b>>>0>S>>>0)+T|0)|0,g=me(Q,z,666643,0),b=(p=u[e+14|0])>>>24|0,y=p<<8|(T=u[e+10|0]|u[e+11|0]<<8|u[e+12|0]<<16|u[e+13|0]<<24)>>>24,h=b,p=(b=u[e+15|0])>>>16|0,p|=h,h=v,h=(b=2097151&((1&p)<<31|(b=b<<16|y)>>>1))>>>0>(p=b+g|0)>>>0?h+1|0:h,y=(b=p)+(p=me(U,q,470296,0))|0,b=v+h|0,b=p>>>0>y>>>0?b+1|0:b,p=me(L,i,654183,0),b=v+b|0,b=p>>>0>(h=p+y|0)>>>0?b+1|0:b,y=(p=h)+(h=me(B,j,-997805,-1))|0,p=v+b|0,p=h>>>0>y>>>0?p+1|0:p,b=me(D,o,136657,0),p=v+p|0,S=h=b+y|0,y=b>>>0>h>>>0?p+1|0:p,A=_-(b=-2097152&A)|0,g=E-((b>>>0>_>>>0)+l|0)|0,h=me(t,0,136657,0),b=v,b=(p=(u[e+28|0]|u[e+29|0]<<8|u[e+30|0]<<16|u[e+31|0]<<24)>>>7&2097151)>>>0>(h=p+h|0)>>>0?b+1|0:b,m=(p=h)+(h=me(F,0,-997805,-1))|0,p=v+b|0,p=h>>>0>m>>>0?p+1|0:p,b=me(n,V,-683901,-1),p=v+p|0,p=b>>>0>(h=b+m|0)>>>0?p+1|0:p,m=(b=me(R,0,666643,0))+h|0,h=v+p|0,h=b>>>0>m>>>0?h+1|0:h,p=me(r,0,470296,0),b=v+h|0,b=p>>>0>(m=p+m|0)>>>0?b+1|0:b,p=me(a,J,654183,0),b=v+b|0,p=(P>>21)+(p>>>0>(h=p+m|0)>>>0?b+1|0:b)|0,x=p=(m=(2097151&P)<<11|O>>>21)>>>0>(O=m+h|0)>>>0?p+1|0:p,k=b=p-((O>>>0<4293918720)-1|0)|0,m=(2097151&b)<<11|(w=O- -1048576|0)>>>21,b=(b>>21)+g|0,N=b=(p=m+A|0)>>>0>>0?b+1|0:b,P=p,p=me(p,b,-683901,-1),b=v+y|0,m=h=p+S|0,y=p>>>0>h>>>0?b+1|0:b,b=me(U,q,666643,0),p=v,p=b>>>0>(h=b+(T>>>4&2097151)|0)>>>0?p+1|0:p,b=me(L,i,470296,0),p=v+p|0,p=b>>>0>(h=b+h|0)>>>0?p+1|0:p,g=(b=me(B,j,654183,0))+h|0,h=v+p|0,h=b>>>0>g>>>0?h+1|0:h,p=me(D,o,-997805,-1),b=v+h|0,b=p>>>0>(g=p+g|0)>>>0?b+1|0:b,p=me(P,N,136657,0),b=v+b|0,E=b=p>>>0>(_=p+g|0)>>>0?b+1|0:b,z=p=b-((_>>>0<4293918720)-1|0)|0,b=m,m=(2097151&p)<<11|(A=_- -1048576|0)>>>21,p=(p>>21)+y|0,U=y=(p=(h=b+m|0)>>>0>>0?p+1|0:p)-((h>>>0<4293918720)-1|0)|0,b=(b=y>>21)+K|0,Q=m=(y=(2097151&y)<<11|(g=h- -1048576|0)>>>21)+Z|0,S=y>>>0>m>>>0?b+1|0:b,m=h,h=p,y=(O-(p=-2097152&w)|0)+(w=(2097151&I)<<11|M>>>21)|0,p=(x-((p>>>0>O>>>0)+k|0)|0)+(I>>21)|0,T=p=y>>>0>>0?p+1|0:p,F=p=p-((y>>>0<4293918720)-1|0)|0,M=b=p>>21,b=me(R=(2097151&p)<<11|(k=y- -1048576|0)>>>21,b,-683901,-1),h=v+h|0,h=b>>>0>(p=b+m|0)>>>0?h+1|0:h,V=p-(b=-2097152&g)|0,J=h-((b>>>0>p>>>0)+U|0)|0,b=me(R,M,136657,0),p=E+v|0,q=(h=b+_|0)-(b=-2097152&A)|0,U=(p=h>>>0<_>>>0?p+1|0:p)-((b>>>0>h>>>0)+z|0)|0,p=me(L,i,666643,0),h=v,h=(b=(u[e+7|0]|u[e+8|0]<<8|u[e+9|0]<<16|u[e+10|0]<<24)>>>7&2097151)>>>0>(p=b+p|0)>>>0?h+1|0:h,m=(b=me(B,j,470296,0))+p|0,p=v+h|0,p=b>>>0>m>>>0?p+1|0:p,b=me(D,o,654183,0),p=v+p|0,p=b>>>0>(h=b+m|0)>>>0?p+1|0:p,m=(b=h)+(h=me(P,N,-997805,-1))|0,b=v+p|0,w=m,m=h>>>0>m>>>0?b+1|0:b,E=me(B,j,666643,0),b=(p=u[e+6|0])>>>24|0,g=p<<8|(O=u[e+2|0]|u[e+3|0]<<8|u[e+4|0]<<16|u[e+5|0]<<24)>>>24,h=b,p=(b=u[e+7|0])>>>16|0,p=2097151&((3&(p|=h))<<30|(b=b<<16|g)>>>2),b=v,b=p>>>0>(h=p+E|0)>>>0?b+1|0:b,g=(p=me(D,o,470296,0))+h|0,h=v+b|0,h=p>>>0>g>>>0?h+1|0:h,p=me(P,N,654183,0),b=v+h|0,E=b=p>>>0>(x=p+g|0)>>>0?b+1|0:b,I=b=b-((x>>>0<4293918720)-1|0)|0,p=(h=b>>21)+m|0,_=b=(p=(b=(2097151&b)<<11|(A=x- -1048576|0)>>>21)>>>0>(g=b+w|0)>>>0?p+1|0:p)-((g>>>0<4293918720)-1|0)|0,w=(2097151&b)<<11|(m=g- -1048576|0)>>>21,b=(b>>21)+U|0,U=B=w+q|0,w=w>>>0>B>>>0?b+1|0:b,b=me(R,M,-997805,-1),p=v+p|0,p=b>>>0>(h=b+g|0)>>>0?p+1|0:p,L=h-(b=-2097152&m)|0,j=p-((b>>>0>h>>>0)+_|0)|0,p=me(R,M,654183,0),b=E+v|0,B=(h=p+x|0)-(p=-2097152&A)|0,I=(b=h>>>0>>0?b+1|0:b)-((p>>>0>h>>>0)+I|0)|0,b=me(D,o,666643,0),p=v,p=b>>>0>(h=b+(O>>>5&2097151)|0)>>>0?p+1|0:p,b=me(P,N,470296,0),p=v+p|0,g=h=b+h|0,h=b>>>0>h>>>0?p+1|0:p,m=me(P,N,666643,0),p=(b=u[e+2|0])<<16&2031616|u[0|e]|u[e+1|0]<<8,b=v,E=b=p>>>0>(_=m+p|0)>>>0?b+1|0:b,N=b=b-((_>>>0<4293918720)-1|0)|0,m=(2097151&b)<<11|(A=_- -1048576|0)>>>21,b=(b>>21)+h|0,h=b=m>>>0>(x=m+g|0)>>>0?b+1|0:b,O=b=b-((x>>>0<4293918720)-1|0)|0,m=(2097151&b)<<11|(g=x- -1048576|0)>>>21,b=(b>>21)+I|0,m=m>>>0>(I=P=m+B|0)>>>0?b+1|0:b,b=me(R,M,470296,0),h=h+v|0,h=(p=b+x|0)>>>0>>0?h+1|0:h,x=p-(b=-2097152&g)|0,g=h-((b>>>0>p>>>0)+O|0)|0,p=me(R,M,666643,0),b=v+(E-(((h=-2097152&A)>>>0>_>>>0)+N|0)|0)|0,p=(h=(b=p>>>0>(P=p+(_-h|0)|0)>>>0?b+1|0:b)>>21)+g|0,b=(b=(p=(b=(2097151&b)<<11|P>>>21)>>>0>(O=b+x|0)>>>0?p+1|0:p)>>21)+m|0,p=(p=(b=(p=(2097151&p)<<11|O>>>21)>>>0>(I=p+I|0)>>>0?b+1|0:b)>>21)+j|0,h=(b=(p=(b=(2097151&b)<<11|I>>>21)>>>0>(m=b+L|0)>>>0?p+1|0:p)>>21)+w|0,b=(p=(h=(p=(2097151&p)<<11|m>>>21)>>>0>(M=p+U|0)>>>0?h+1|0:h)>>21)+J|0,p=(h=(b=(h=(2097151&h)<<11|M>>>21)>>>0>(_=h+V|0)>>>0?b+1|0:b)>>21)+S|0,b=(b=(p=(b=(2097151&b)<<11|_>>>21)>>>0>(x=b+Q|0)>>>0?p+1|0:p)>>21)+Y|0,p=(p=(b=(p=(2097151&p)<<11|x>>>21)>>>0>(S=p+W|0)>>>0?b+1|0:b)>>21)+C|0,h=(b=(p=(b=(2097151&b)<<11|S>>>21)>>>0>(w=b+G|0)>>>0?p+1|0:p)>>21)+f|0,b=(p=(h=(p=(2097151&p)<<11|w>>>21)>>>0>(E=p+d|0)>>>0?h+1|0:h)>>21)+H|0,g=(k=y-(p=-2097152&k)|0)+((2097151&(b=(h=(2097151&h)<<11|E>>>21)>>>0>(A=h+c|0)>>>0?b+1|0:b))<<11|A>>>21)|0,b=(T-((p>>>0>y>>>0)+F|0)|0)+(b>>21)|0,k=p=(b=g>>>0>>0?b+1|0:b)>>21,P=(b=me(C=(2097151&b)<<11|g>>>21,p,666643,0))+(p=2097151&P)|0,b=v,y=b=p>>>0>P>>>0?b+1|0:b,s[0|e]=P,s[e+1|0]=(255&b)<<24|P>>>8,b=2097151&O,p=me(C,k,470296,0)+b|0,h=v,b=(y>>21)+(b>>>0>p>>>0?h+1|0:h)|0,b=(T=(2097151&y)<<11|P>>>21)>>>0>(O=T+p|0)>>>0?b+1|0:b,s[e+4|0]=(2047&b)<<21|O>>>11,p=b,h=O,s[e+3|0]=(7&b)<<29|h>>>3,s[e+2|0]=31&((65535&y)<<16|P>>>16)|h<<5,y=2097151&I,I=me(C,k,654183,0)+y|0,b=v,O=(2097151&p)<<11|h>>>21,p=(p>>21)+(y=y>>>0>I>>>0?b+1|0:b)|0,b=p=(I=O+I|0)>>>0>>0?p+1|0:p,s[e+6|0]=(63&b)<<26|I>>>6,y=I,I=0,s[e+5|0]=I<<13|(1572864&h)>>>19|y<<2,h=2097151&m,m=me(C,k,-997805,-1)+h|0,p=v,p=h>>>0>m>>>0?p+1|0:p,I=(2097151&(h=b))<<11|y>>>21,h=(b>>=21)+p|0,h=(m=I+m|0)>>>0>>0?h+1|0:h,s[e+9|0]=(511&h)<<23|m>>>9,s[e+8|0]=(1&h)<<31|m>>>1,p=0,s[e+7|0]=p<<18|(2080768&y)>>>14|m<<7,p=2097151&M,y=me(C,k,136657,0)+p|0,b=v,b=p>>>0>y>>>0?b+1|0:b,M=(2097151&(p=h))<<11|m>>>21,p=b+(h=p>>21)|0,p=(y=M+y|0)>>>0>>0?p+1|0:p,s[e+12|0]=(4095&p)<<20|y>>>12,h=y,s[e+11|0]=(15&p)<<28|h>>>4,y=0,s[e+10|0]=y<<15|(1966080&m)>>>17|h<<4,y=2097151&_,m=me(C,k,-683901,-1)+y|0,b=v,b=y>>>0>m>>>0?b+1|0:b,y=p,p=b+(p>>=21)|0,p=(y=(B=m)+(m=(2097151&y)<<11|h>>>21)|0)>>>0>>0?p+1|0:p,s[e+14|0]=(127&p)<<25|y>>>7,m=0,s[e+13|0]=m<<12|(1048576&h)>>>20|y<<1,b=p>>21,h=(p=(2097151&p)<<11|y>>>21)>>>0>(m=p+(2097151&x)|0)>>>0?b+1|0:b,s[e+17|0]=(1023&h)<<22|m>>>10,s[e+16|0]=(3&h)<<30|m>>>2,p=0,s[e+15|0]=p<<17|(2064384&y)>>>15|m<<6,b=h>>21,b=(p=(2097151&h)<<11|m>>>21)>>>0>(h=p+(2097151&S)|0)>>>0?b+1|0:b,s[e+20|0]=(8191&b)<<19|h>>>13,s[e+19|0]=(31&b)<<27|h>>>5,y=(p=2097151&w)+(w=(2097151&b)<<11|h>>>21)|0,p=b>>21,p=y>>>0>>0?p+1|0:p,w=y,s[e+21|0]=y,S=0,s[e+18|0]=S<<14|(1835008&m)>>>18|h<<3,s[e+22|0]=(255&p)<<24|y>>>8,h=p>>21,h=(y=(m=(2097151&p)<<11|y>>>21)+(2097151&E)|0)>>>0>>0?h+1|0:h,s[e+25|0]=(2047&h)<<21|y>>>11,s[e+24|0]=(7&h)<<29|y>>>3,s[e+23|0]=31&((65535&p)<<16|w>>>16)|y<<5,b=h>>21,b=(p=(2097151&h)<<11|y>>>21)>>>0>(h=p+(2097151&A)|0)>>>0?b+1|0:b,s[e+27|0]=(63&b)<<26|h>>>6,m=0,s[e+26|0]=m<<13|(1572864&y)>>>19|h<<2,p=b>>21,p=(b=(y=(2097151&b)<<11|h>>>21)+(2097151&g)|0)>>>0>>0?p+1|0:p,s[e+31|0]=(131071&p)<<15|b>>>17,s[e+30|0]=(511&p)<<23|b>>>9,s[e+29|0]=(1&p)<<31|b>>>1,y=0,s[e+28|0]=y<<18|(2080768&h)>>>14|b<<7}function _(e,t,n,r,a,i){var o,d=0,l=0,b=0,p=0,h=0,y=0,v=0,g=0,A=0,w=0,_=0,S=0,E=0,T=0,P=0,M=0,B=0,j=0,U=0,F=0,Z=0,H=0,z=0,Q=0,q=0,V=0,J=0,G=0,W=0,Y=0,X=0,$=0,ee=0,te=0,ne=0,re=0,ae=0,ie=0;for(m=o=m-592|0,S=-1,E=e+32|0,_=32,T=1;w=u[2672+(l=_-1|0)|0],b=(l=((p=u[l+E|0])^w)-1>>8&T)&(y=u[E+(_=_-2|0)|0])-(h=u[_+2672|0])>>8|255&(p-w>>>8&T|b),T=l&(h^y)-1>>8,_;);if(255&b&&!(ue(e)|!(((127&(-1^u[a+31|0])|u[a+1|0]&u[a+2|0]&u[a+3|0]&u[a+4|0]&u[a+5|0]&u[a+6|0]&u[a+7|0]&u[a+8|0]&u[a+9|0]&u[a+10|0]&u[a+11|0]&u[a+12|0]&u[a+13|0]&u[a+14|0]&u[a+15|0]&u[a+16|0]&u[a+17|0]&u[a+18|0]&u[a+19|0]&u[a+20|0]&u[a+21|0]&u[a+22|0]&u[a+23|0]&u[a+24|0]&u[a+25|0]&u[a+26|0]&u[a+27|0]&u[a+28|0]&u[a+30|0]&u[a+29|0]^255)-1&236-u[0|a]^-1)>>>8&1)||ue(a)||O(o+128|0,a))){for(se(l=o+384|0),i&&L(l,34768,34,0),L(l,e,32,0),L(l,a,32,0),L(l,t,n,r),C(l,n=o+320|0),x(n),i=o+8|0,r=o+128|0,a=0,t=0,m=d=m-2272|0;p=n+(a>>>3|0)|0,s[(l=d+2016|0)+a|0]=u[0|p]>>>(6&a)&1,s[(b=l)+(l=1|a)|0]=u[0|p]>>>(7&l)&1,256!=(0|(a=a+2|0)););for(;;){t=(n=t)+1|0;e:if(!(!u[0|(b=n+(d+2016|0)|0)]|n>>>0>254)){t:if(a=s[0|(h=(d+2016|0)+t|0)])if((0|(a=(p=a<<1)+(l=s[0|b])|0))<=15)s[0|b]=a,s[0|h]=0;else{if((0|(a=l-p|0))<-15)break e;for(s[0|b]=a,a=t;;){if(!u[0|(l=(d+2016|0)+a|0)]){s[0|l]=1;break t}if(s[0|l]=0,l=a>>>0<255,a=a+1|0,!l)break}}if(!(n>>>0>253)){t:if(l=s[0|(y=(a=n+2|0)+(d+2016|0)|0)])if((0|(l=(h=l<<2)+(p=s[0|b])|0))>=16){if((0|(l=p-h|0))<-15)break e;for(s[0|b]=l;;){if(u[0|(l=(d+2016|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|b]=l,s[0|y]=0;if(!(n>>>0>252)){t:if(l=s[0|(y=(a=n+3|0)+(d+2016|0)|0)])if((0|(l=(h=l<<3)+(p=s[0|b])|0))>=16){if((0|(l=p-h|0))<-15)break e;for(s[0|b]=l;;){if(u[0|(l=(d+2016|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|b]=l,s[0|y]=0;if(!(n>>>0>251)){t:if(l=s[0|(y=(a=n+4|0)+(d+2016|0)|0)])if((0|(l=(h=l<<4)+(p=s[0|b])|0))>=16){if((0|(l=p-h|0))<-15)break e;for(s[0|b]=l;;){if(u[0|(l=(d+2016|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|b]=l,s[0|y]=0;if(!(n>>>0>250)){t:if(l=s[0|(y=(a=n+5|0)+(d+2016|0)|0)])if((0|(l=(h=l<<5)+(p=s[0|b])|0))>=16){if((0|(l=p-h|0))<-15)break e;for(s[0|b]=l;;){if(u[0|(l=(d+2016|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|b]=l,s[0|y]=0;if(!(n>>>0>249)&&(n=s[0|(h=(a=n+6|0)+(d+2016|0)|0)]))if((0|(n=(p=n<<6)+(l=s[0|b])|0))>=16){if((0|(n=l-p|0))<-15)break e;for(s[0|b]=n;;){if(u[0|(n=(d+2016|0)+a|0)]){if(s[0|n]=0,n=a>>>0<255,a=a+1|0,n)continue;break e}break}s[0|n]=1}else s[0|b]=n,s[0|h]=0}}}}}if(256==(0|t))break}for(a=0;n=E+(a>>>3|0)|0,s[(t=d+1760|0)+a|0]=u[0|n]>>>(6&a)&1,s[(l=t)+(t=1|a)|0]=u[0|n]>>>(7&t)&1,256!=(0|(a=a+2|0)););for(t=0;;){t=(n=t)+1|0;e:if(!(!u[0|(b=n+(d+1760|0)|0)]|n>>>0>254)){t:if(a=s[0|(h=(d+1760|0)+t|0)])if((0|(a=(p=a<<1)+(l=s[0|b])|0))<=15)s[0|b]=a,s[0|h]=0;else{if((0|(a=l-p|0))<-15)break e;for(s[0|b]=a,a=t;;){if(!u[0|(l=(d+1760|0)+a|0)]){s[0|l]=1;break t}if(s[0|l]=0,l=a>>>0<255,a=a+1|0,!l)break}}if(!(n>>>0>253)){t:if(l=s[0|(y=(a=n+2|0)+(d+1760|0)|0)])if((0|(l=(h=l<<2)+(p=s[0|b])|0))>=16){if((0|(l=p-h|0))<-15)break e;for(s[0|b]=l;;){if(u[0|(l=(d+1760|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|b]=l,s[0|y]=0;if(!(n>>>0>252)){t:if(l=s[0|(y=(a=n+3|0)+(d+1760|0)|0)])if((0|(l=(h=l<<3)+(p=s[0|b])|0))>=16){if((0|(l=p-h|0))<-15)break e;for(s[0|b]=l;;){if(u[0|(l=(d+1760|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|b]=l,s[0|y]=0;if(!(n>>>0>251)){t:if(l=s[0|(y=(a=n+4|0)+(d+1760|0)|0)])if((0|(l=(h=l<<4)+(p=s[0|b])|0))>=16){if((0|(l=p-h|0))<-15)break e;for(s[0|b]=l;;){if(u[0|(l=(d+1760|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|b]=l,s[0|y]=0;if(!(n>>>0>250)){t:if(l=s[0|(y=(a=n+5|0)+(d+1760|0)|0)])if((0|(l=(h=l<<5)+(p=s[0|b])|0))>=16){if((0|(l=p-h|0))<-15)break e;for(s[0|b]=l;;){if(u[0|(l=(d+1760|0)+a|0)]){if(s[0|l]=0,l=a>>>0<255,a=a+1|0,l)continue;break t}break}s[0|l]=1}else s[0|b]=l,s[0|y]=0;if(!(n>>>0>249)&&(n=s[0|(h=(a=n+6|0)+(d+1760|0)|0)]))if((0|(n=(p=n<<6)+(l=s[0|b])|0))>=16){if((0|(n=l-p|0))<-15)break e;for(s[0|b]=n;;){if(u[0|(n=(d+1760|0)+a|0)]){if(s[0|n]=0,n=a>>>0<255,a=a+1|0,n)continue;break e}break}s[0|n]=1}else s[0|b]=n,s[0|h]=0}}}}}if(256==(0|t))break}for(K(S=d+480|0,r),w=c[r+8>>2],b=c[r+12>>2],y=c[r+16>>2],h=c[r+20>>2],p=c[r+24>>2],l=c[r+28>>2],a=c[r>>2],n=c[r+4>>2],t=c[r+36>>2],c[d+192>>2]=c[r+32>>2],c[d+196>>2]=t,c[d+184>>2]=p,c[d+188>>2]=l,c[d+176>>2]=y,c[d+180>>2]=h,c[d+168>>2]=w,c[d+172>>2]=b,c[d+160>>2]=a,c[d+164>>2]=n,w=c[r+40>>2],b=c[r+44>>2],y=c[r+48>>2],h=c[r+52>>2],p=c[r+56>>2],l=c[r+60>>2],a=c[(t=r- -64|0)>>2],n=c[t+4>>2],t=c[r+76>>2],c[d+232>>2]=c[r+72>>2],c[d+236>>2]=t,c[d+224>>2]=a,c[d+228>>2]=n,c[d+216>>2]=p,c[d+220>>2]=l,c[d+208>>2]=y,c[d+212>>2]=h,c[d+200>>2]=w,c[d+204>>2]=b,w=c[r+80>>2],b=c[r+84>>2],y=c[r+88>>2],h=c[r+92>>2],p=c[r+96>>2],l=c[r+100>>2],a=c[r+104>>2],n=c[r+108>>2],t=c[r+116>>2],c[d+272>>2]=c[r+112>>2],c[d+276>>2]=t,c[d+264>>2]=a,c[d+268>>2]=n,c[d+256>>2]=p,c[d+260>>2]=l,c[d+248>>2]=y,c[d+252>>2]=h,c[d+240>>2]=w,c[d+244>>2]=b,I(r=d+320|0,n=d+160|0),k(d,r,v=d+440|0),k(d+40|0,g=d+360|0,A=d+400|0),k(d+80|0,A,v),k(d+120|0,r,g),R(r,d,S),k(n,r,v),k(M=d+200|0,g,A),k(B=d+240|0,A,v),k(P=d+280|0,r,g),K(t=d+640|0,n),R(r,d,t),k(n,r,v),k(M,g,A),k(B,A,v),k(P,r,g),K(t=d+800|0,n),R(r,d,t),k(n,r,v),k(M,g,A),k(B,A,v),k(P,r,g),K(t=d+960|0,n),R(r,d,t),k(n,r,v),k(M,g,A),k(B,A,v),k(P,r,g),K(t=d+1120|0,n),R(r,d,t),k(n,r,v),k(M,g,A),k(B,A,v),k(P,r,g),K(t=d+1280|0,n),R(r,d,t),k(n,r,v),k(M,g,A),k(B,A,v),k(P,r,g),K(t=d+1440|0,n),R(r,d,t),k(n,r,v),k(M,g,A),k(B,A,v),k(P,r,g),K(d+1600|0,n),c[i+32>>2]=0,c[i+36>>2]=0,c[i+24>>2]=0,c[i+28>>2]=0,c[i+16>>2]=0,c[i+20>>2]=0,c[i+8>>2]=0,c[i+12>>2]=0,c[i>>2]=0,c[i+4>>2]=0,c[i+44>>2]=0,c[i+48>>2]=0,c[(J=i+40|0)>>2]=1,c[i+52>>2]=0,c[i+56>>2]=0,c[i+60>>2]=0,c[i+64>>2]=0,c[i+68>>2]=0,c[i+72>>2]=0,c[i+84>>2]=0,c[i+88>>2]=0,c[i+76>>2]=0,c[i+80>>2]=1,c[i+92>>2]=0,c[i+96>>2]=0,c[i+100>>2]=0,c[i+104>>2]=0,c[i+108>>2]=0,c[i+112>>2]=0,c[i+116>>2]=0,te=i+80|0,t=255;;){e:{t:{if(!(u[(d+2016|0)+t|0]|u[(d+1760|0)+t|0])){if(!(u[(n=t-1|0)+(d+2016|0)|0]|u[n+(d+1760|0)|0]))break t;t=n}if((0|t)<0)break e;for(;I(d+320|0,i),(0|(a=s[(n=t)+(d+2016|0)|0]))>0?(k(t=d+160|0,r=d+320|0,v),k(M,g,A),k(B,A,v),k(P,r,g),R(r,t,(d+480|0)+f((254&a)>>>1|0,160)|0)):(0|a)>=0||(k(t=d+160|0,r=d+320|0,v),k(M,g,A),k(B,A,v),k(P,r,g),N(r,t,(d+480|0)+f((0-a&254)>>>1|0,160)|0)),(0|(q=s[n+(d+1760|0)|0]))>0?(k(t=d+160|0,r=d+320|0,v),k(M,g,A),k(B,A,v),k(P,r,g),D(r,t,f((254&q)>>>1|0,120)+1488|0)):(0|q)>=0||(k(d+160|0,V=d+320|0,v),k(M,g,A),k(B,A,v),k(P,V,g),j=c[d+160>>2],U=c[d+200>>2],F=c[d+164>>2],Z=c[d+204>>2],H=c[d+168>>2],z=c[d+208>>2],Q=c[d+172>>2],_=c[d+212>>2],E=c[d+176>>2],T=c[d+216>>2],S=c[d+180>>2],w=c[d+220>>2],b=c[d+184>>2],y=c[d+224>>2],h=c[d+188>>2],p=c[d+228>>2],l=c[d+192>>2],a=c[d+232>>2],r=c[d+236>>2],t=c[d+196>>2],c[d+396>>2]=r-t,c[d+392>>2]=a-l,c[d+388>>2]=p-h,c[d+384>>2]=y-b,c[d+380>>2]=w-S,c[d+376>>2]=T-E,c[d+372>>2]=_-Q,c[d+368>>2]=z-H,c[d+364>>2]=Z-F,c[d+360>>2]=U-j,c[d+356>>2]=t+r,c[d+352>>2]=a+l,c[d+348>>2]=p+h,c[d+344>>2]=b+y,c[d+340>>2]=w+S,c[d+336>>2]=E+T,c[d+332>>2]=_+Q,c[d+328>>2]=H+z,c[d+324>>2]=F+Z,c[d+320>>2]=j+U,k(A,V,40+(t=f((0-q&254)>>>1|0,120)+1488|0)|0),k(g,g,t),k(v,t+80|0,P),ne=c[d+276>>2],re=c[d+272>>2],q=c[d+268>>2],V=c[d+264>>2],b=c[d+260>>2],y=c[d+256>>2],h=c[d+252>>2],p=c[d+248>>2],l=c[d+244>>2],a=c[d+240>>2],G=c[d+360>>2],W=c[d+400>>2],Y=c[d+364>>2],X=c[d+404>>2],$=c[d+368>>2],ee=c[d+408>>2],j=c[d+372>>2],U=c[d+412>>2],F=c[d+376>>2],Z=c[d+416>>2],H=c[d+380>>2],z=c[d+420>>2],Q=c[d+384>>2],_=c[d+424>>2],E=c[d+388>>2],T=c[d+428>>2],S=c[d+392>>2],w=c[d+432>>2],r=c[d+396>>2],t=c[d+436>>2],c[d+396>>2]=r+t,c[d+392>>2]=w+S,c[d+388>>2]=E+T,c[d+384>>2]=_+Q,c[d+380>>2]=H+z,c[d+376>>2]=F+Z,c[d+372>>2]=j+U,c[d+368>>2]=$+ee,c[d+364>>2]=Y+X,c[d+360>>2]=G+W,c[d+356>>2]=t-r,c[d+352>>2]=w-S,c[d+348>>2]=T-E,c[d+344>>2]=_-Q,c[d+340>>2]=z-H,c[d+336>>2]=Z-F,c[d+332>>2]=U-j,c[d+328>>2]=ee-$,c[d+324>>2]=X-Y,c[d+320>>2]=W-G,j=a<<1,U=c[d+440>>2],c[d+400>>2]=j-U,F=l<<1,Z=c[d+444>>2],c[d+404>>2]=F-Z,H=p<<1,z=c[d+448>>2],c[d+408>>2]=H-z,Q=h<<1,_=c[d+452>>2],c[d+412>>2]=Q-_,E=y<<1,T=c[d+456>>2],c[d+416>>2]=E-T,S=b<<1,w=c[d+460>>2],c[d+420>>2]=S-w,b=V<<1,y=c[d+464>>2],c[d+424>>2]=b-y,h=q<<1,p=c[d+468>>2],c[d+428>>2]=h-p,l=re<<1,a=c[d+472>>2],c[d+432>>2]=l-a,r=ne<<1,t=c[d+476>>2],c[d+436>>2]=r-t,c[d+440>>2]=j+U,c[d+444>>2]=F+Z,c[d+448>>2]=H+z,c[d+452>>2]=_+Q,c[d+456>>2]=E+T,c[d+460>>2]=w+S,c[d+464>>2]=b+y,c[d+468>>2]=p+h,c[d+472>>2]=a+l,c[d+476>>2]=t+r),k(i,d+320|0,v),k(J,g,A),k(te,A,v),t=n-1|0,(0|n)>0;);break e}if(t=t-2|0,n)continue}break}m=d+2272|0,xe(t=o+288|0,i),ae=-1,ie=he(t,e),S=((0|e)==(0|t)?ae:ie)|ce(e,t,32)}return m=o+592|0,S}function k(e,t,n){var r,a,i,o,s,u,d,l,b,p,h,y,m,g,A,w,x,_,k,I,S,E,C,T,O,P,M,B,N,R,D,j,U,L,F,Z,H,z,Q,q,V,J,K,G,W,Y,X,$,ee,te,ne,re,ae,ie,oe=0,se=0,ce=0,ue=0,de=0,fe=0,le=0,be=0,pe=0,he=0,ye=0,ve=0,ge=0,Ae=0,we=0,xe=0,_e=0,ke=0,Ie=0,Se=0,Ee=0,Ce=0,Te=0,Oe=0;oe=me(r=c[n+4>>2],p=r>>31,_e=(w=c[t+20>>2])<<1,D=_e>>31),ce=v,se=(ge=me(we=c[n>>2],i=we>>31,a=c[t+24>>2],o=a>>31))+oe|0,oe=v+ce|0,oe=se>>>0>>0?oe+1|0:oe,pe=me(s=c[n+8>>2],m=s>>31,ge=c[t+16>>2],u=ge>>31),ce=v+oe|0,ce=(se=pe+se|0)>>>0>>0?ce+1|0:ce,oe=(pe=me(h=c[n+12>>2],x=h>>31,T=(_=c[t+12>>2])<<1,j=T>>31))+se|0,se=v+ce|0,se=oe>>>0>>0?se+1|0:se,ce=(Ae=me(g=c[n+16>>2],O=g>>31,pe=c[t+8>>2],d=pe>>31))+oe|0,oe=v+se|0,oe=ce>>>0>>0?oe+1|0:oe,se=ce,ce=me(k=c[n+20>>2],U=k>>31,P=(I=c[t+4>>2])<<1,L=P>>31),oe=v+oe|0,oe=(se=se+ce|0)>>>0>>0?oe+1|0:oe,Y=be=c[n+24>>2],ce=(he=me(be,G=be>>31,Ae=c[t>>2],l=Ae>>31))+se|0,se=v+oe|0,se=ce>>>0>>0?se+1|0:se,F=c[n+28>>2],oe=(he=me(ve=f(F,19),S=ve>>31,M=(E=c[t+36>>2])<<1,Z=M>>31))+ce|0,ce=v+se|0,ce=oe>>>0>>0?ce+1|0:ce,$=c[n+32>>2],se=(le=me(ue=f($,19),A=ue>>31,he=c[t+32>>2],b=he>>31))+oe|0,oe=v+ce|0,oe=se>>>0>>0?oe+1|0:oe,X=c[n+36>>2],n=me(le=f(X,19),y=le>>31,B=(C=c[t+28>>2])<<1,H=B>>31),oe=v+oe|0,de=t=n+se|0,n=t>>>0>>0?oe+1|0:oe,t=me(ge,u,r,p),oe=v,se=me(we,i,w,z=w>>31),ce=v+oe|0,ce=(t=se+t|0)>>>0>>0?ce+1|0:ce,oe=me(s,m,_,Q=_>>31),se=v+ce|0,se=(t=oe+t|0)>>>0>>0?se+1|0:se,ce=me(pe,d,h,x),oe=v+se|0,oe=(t=ce+t|0)>>>0>>0?oe+1|0:oe,se=me(g,O,I,q=I>>31),oe=v+oe|0,oe=(t=se+t|0)>>>0>>0?oe+1|0:oe,se=me(Ae,l,k,U),oe=v+oe|0,oe=(t=se+t|0)>>>0>>0?oe+1|0:oe,se=me(be=f(be,19),N=be>>31,E,V=E>>31),ce=v+oe|0,ce=(t=se+t|0)>>>0>>0?ce+1|0:ce,oe=me(he,b,ve,S),se=v+ce|0,se=(t=oe+t|0)>>>0>>0?se+1|0:se,ce=me(ue,A,C,J=C>>31),oe=v+se|0,oe=(t=ce+t|0)>>>0>>0?oe+1|0:oe,se=me(le,y,a,o),oe=v+oe|0,Ce=t=se+t|0,Ie=t>>>0>>0?oe+1|0:oe,t=me(r,p,T,j),oe=v,se=me(we,i,ge,u),oe=v+oe|0,oe=(t=se+t|0)>>>0>>0?oe+1|0:oe,se=me(pe,d,s,m),ce=v+oe|0,ce=(t=se+t|0)>>>0>>0?ce+1|0:ce,oe=me(h,x,P,L),se=v+ce|0,se=(t=oe+t|0)>>>0>>0?se+1|0:se,ce=me(Ae,l,g,O),oe=v+se|0,oe=(t=ce+t|0)>>>0>>0?oe+1|0:oe,se=me(R=f(k,19),K=R>>31,M,Z),oe=v+oe|0,oe=(t=se+t|0)>>>0>>0?oe+1|0:oe,se=me(he,b,be,N),oe=v+oe|0,oe=(t=se+t|0)>>>0>>0?oe+1|0:oe,se=me(ve,S,B,H),ce=v+oe|0,ce=(t=se+t|0)>>>0>>0?ce+1|0:ce,oe=me(ue,A,a,o),se=v+ce|0,se=(t=oe+t|0)>>>0>>0?se+1|0:se,ce=me(le,y,_e,D),oe=v+se|0,ee=t=ce+t|0,te=oe=t>>>0>>0?oe+1|0:oe,ne=t=t+33554432|0,re=oe=t>>>0<33554432?oe+1|0:oe,ce=(67108863&oe)<<6|t>>>26,oe=(oe>>26)+Ie|0,Ce=t=ce+Ce|0,oe=t>>>0>>0?oe+1|0:oe,ae=t=t+16777216|0,oe=n+(se=(ce=t>>>0<16777216?oe+1|0:oe)>>25)|0,oe=(t=(ce=(33554431&ce)<<7|t>>>25)+de|0)>>>0>>0?oe+1|0:oe,ke=n=(se=t)+33554432|0,t=oe=n>>>0<33554432?oe+1|0:oe,c[e+24>>2]=se-(-67108864&n),n=me(r,p,P,L),oe=v,se=me(we,i,pe,d),ce=v+oe|0,ce=(n=se+n|0)>>>0>>0?ce+1|0:ce,se=(oe=n)+(n=me(Ae,l,s,m))|0,oe=v+ce|0,oe=n>>>0>se>>>0?oe+1|0:oe,ce=me(n=f(h,19),Se=n>>31,M,Z),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,ce=(de=me(he,b,Ie=f(g,19),W=Ie>>31))+se|0,se=v+oe|0,se=ce>>>0>>0?se+1|0:se,de=me(B,H,R,K),oe=v+se|0,oe=(ce=de+ce|0)>>>0>>0?oe+1|0:oe,se=(de=me(a,o,be,N))+ce|0,ce=v+oe|0,ce=se>>>0>>0?ce+1|0:ce,de=me(ve,S,_e,D),oe=v+ce|0,oe=(se=de+se|0)>>>0>>0?oe+1|0:oe,ce=me(ue,A,ge,u),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,ce=(de=me(le,y,T,j))+se|0,se=v+oe|0,ye=ce,Te=ce>>>0>>0?se+1|0:se,oe=me(Ae,l,r,p),se=v,ce=(de=me(we,i,I,q))+oe|0,oe=v+se|0,oe=ce>>>0>>0?oe+1|0:oe,de=se=f(s,19),se=(fe=me(se,Ee=se>>31,E,V))+ce|0,ce=v+oe|0,ce=se>>>0>>0?ce+1|0:ce,fe=me(he,b,n,Se),oe=v+ce|0,oe=(se=fe+se|0)>>>0>>0?oe+1|0:oe,ce=me(Ie,W,C,J),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,ce=(fe=me(a,o,R,K))+se|0,se=v+oe|0,se=ce>>>0>>0?se+1|0:se,fe=me(be,N,w,z),oe=v+se|0,oe=(ce=fe+ce|0)>>>0>>0?oe+1|0:oe,se=(fe=me(ge,u,ve,S))+ce|0,ce=v+oe|0,ce=se>>>0>>0?ce+1|0:ce,fe=me(ue,A,_,Q),oe=v+ce|0,oe=(se=fe+se|0)>>>0>>0?oe+1|0:oe,ce=me(le,y,pe,d),oe=v+oe|0,Oe=se=ce+se|0,fe=se>>>0>>0?oe+1|0:oe,oe=me(oe=f(r,19),oe>>31,M,Z),se=v,ce=me(we,i,Ae,l),se=v+se|0,se=(oe=ce+oe|0)>>>0>>0?se+1|0:se,ce=(de=me(he,b,de,Ee))+oe|0,oe=v+se|0,n=(se=me(n,Se,B,H))+ce|0,ce=v+(ce>>>0>>0?oe+1|0:oe)|0,ce=n>>>0>>0?ce+1|0:ce,se=me(a,o,Ie,W),oe=v+ce|0,oe=(n=se+n|0)>>>0>>0?oe+1|0:oe,se=me(_e,D,R,K),oe=v+oe|0,oe=(n=se+n|0)>>>0>>0?oe+1|0:oe,ce=me(ge,u,be,N),se=v+oe|0,se=(n=ce+n|0)>>>0>>0?se+1|0:se,ce=me(ve,S,T,j),oe=v+se|0,oe=(n=ce+n|0)>>>0>>0?oe+1|0:oe,se=me(ue,A,pe,d),ce=v+oe|0,ce=(n=se+n|0)>>>0>>0?ce+1|0:ce,se=me(le,y,P,L),oe=v+ce|0,de=n=se+n|0,Se=oe=n>>>0>>0?oe+1|0:oe,Ee=n=n+33554432|0,ie=oe=n>>>0<33554432?oe+1|0:oe,se=(ce=oe>>26)+fe|0,fe=n=(oe=(67108863&oe)<<6|n>>>26)+Oe|0,oe=se=n>>>0>>0?se+1|0:se,Oe=n=n+16777216|0,se=(33554431&(oe=n>>>0<16777216?oe+1|0:oe))<<7|n>>>25,oe=(oe>>25)+Te|0,oe=(n=se+ye|0)>>>0>>0?oe+1|0:oe,Te=se=(ce=n)+33554432|0,n=oe=se>>>0<33554432?oe+1|0:oe,c[e+8>>2]=ce-(-67108864&se),oe=me(a,o,r,p),ce=v,se=(ye=me(we,i,C,J))+oe|0,oe=v+ce|0,oe=se>>>0>>0?oe+1|0:oe,ce=me(s,m,w,z),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,ce=me(ge,u,h,x),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,ye=me(g,O,_,Q),ce=v+oe|0,ce=(se=ye+se|0)>>>0>>0?ce+1|0:ce,oe=(ye=me(pe,d,k,U))+se|0,se=v+ce|0,se=oe>>>0>>0?se+1|0:se,ce=(ye=me(I,q,Y,G))+oe|0,oe=v+se|0,oe=ce>>>0>>0?oe+1|0:oe,se=ce,ce=me(Ae,l,F,ye=F>>31),oe=v+oe|0,oe=(se=se+ce|0)>>>0>>0?oe+1|0:oe,ce=me(ue,A,E,V),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,xe=me(le,y,he,b),ce=v+oe|0,oe=t>>26,t=(ke=(67108863&t)<<6|ke>>>26)+(se=xe+se|0)|0,se=oe+(se>>>0>>0?ce+1|0:ce)|0,oe=(ce=t)>>>0>>0?se+1|0:se,ke=se=ce+16777216|0,t=oe=se>>>0<16777216?oe+1|0:oe,c[e+28>>2]=ce-(-33554432&se),oe=me(pe,d,r,p),se=v,xe=me(we,i,_,Q),ce=v+se|0,ce=(oe=xe+oe|0)>>>0>>0?ce+1|0:ce,xe=me(s,m,I,q),se=v+ce|0,se=(oe=xe+oe|0)>>>0>>0?se+1|0:se,ce=(xe=me(Ae,l,h,x))+oe|0,oe=v+se|0,oe=ce>>>0>>0?oe+1|0:oe,se=ce,ce=me(Ie,W,E,V),oe=v+oe|0,oe=(se=se+ce|0)>>>0>>0?oe+1|0:oe,ce=me(he,b,R,K),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,se=(be=me(be,N,C,J))+se|0,ce=v+oe|0,oe=(ve=me(a,o,ve,S))+se|0,se=v+(se>>>0>>0?ce+1|0:ce)|0,ce=(ue=me(ue,A,w,z))+oe|0,oe=v+(oe>>>0>>0?se+1|0:se)|0,oe=ce>>>0>>0?oe+1|0:oe,se=ce,ce=me(le,y,ge,u),oe=v+oe|0,ue=se=se+ce|0,oe=(oe=se>>>0>>0?oe+1|0:oe)+(se=n>>26)|0,ce=(se=n=ue+(ce=(67108863&n)<<6|Te>>>26)|0)>>>0>>0?oe+1|0:oe,ve=oe=se+16777216|0,n=ce=oe>>>0<16777216?ce+1|0:ce,c[e+12>>2]=se-(-33554432&oe),oe=me(r,p,B,H),ce=v,se=(ue=me(we,i,he,b))+oe|0,oe=v+ce|0,oe=se>>>0>>0?oe+1|0:oe,ce=me(a,o,s,m),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,ue=me(h,x,_e,D),ce=v+oe|0,ce=(se=ue+se|0)>>>0>>0?ce+1|0:ce,oe=(ue=me(ge,u,g,O))+se|0,se=v+ce|0,se=oe>>>0>>0?se+1|0:se,ce=(ue=me(T,j,k,U))+oe|0,oe=v+se|0,oe=ce>>>0>>0?oe+1|0:oe,se=ce,ce=me(pe,d,Y,G),oe=v+oe|0,oe=(se=se+ce|0)>>>0>>0?oe+1|0:oe,ce=me(F,ye,P,L),oe=v+oe|0,oe=(se=ce+se|0)>>>0>>0?oe+1|0:oe,se=(_e=me(Ae,l,ue=$,be=ue>>31))+se|0,ce=v+oe|0,oe=(le=me(le,y,M,Z))+se|0,se=v+(se>>>0<_e>>>0?ce+1|0:ce)|0,se=oe>>>0>>0?se+1|0:se,le=oe,oe=(oe=t>>25)+se|0,oe=(t=le+(ce=(33554431&t)<<7|ke>>>25)|0)>>>0>>0?oe+1|0:oe,le=se=(ce=t)+33554432|0,t=oe=se>>>0<33554432?oe+1|0:oe,c[e+32>>2]=ce-(-67108864&se),se=n>>25,n=(ve=(33554431&n)<<7|ve>>>25)+(ee-(oe=-67108864&ne)|0)|0,oe=se+(te-((oe>>>0>ee>>>0)+re|0)|0)|0,oe=n>>>0>>0?oe+1|0:oe,ke=oe=(67108863&(oe=(n=(se=n)+33554432|0)>>>0<33554432?oe+1|0:oe))<<6|n>>>26,oe=oe+(ce=Ce-(-33554432&ae)|0)|0,c[e+20>>2]=oe,c[e+16>>2]=se-(-67108864&n),n=me(he,b,r,p),oe=v,se=me(we,i,E,V),oe=v+oe|0,oe=(n=se+n|0)>>>0>>0?oe+1|0:oe,ce=me(s,m,C,J),se=v+oe|0,se=(n=ce+n|0)>>>0>>0?se+1|0:se,oe=me(a,o,h,x),ce=v+se|0,ce=(n=oe+n|0)>>>0>>0?ce+1|0:ce,se=me(g,O,w,z),oe=v+ce|0,oe=(n=se+n|0)>>>0>>0?oe+1|0:oe,se=me(ge,u,k,U),oe=v+oe|0,oe=(n=se+n|0)>>>0>>0?oe+1|0:oe,se=me(_,Q,Y,G),oe=v+oe|0,oe=(n=se+n|0)>>>0>>0?oe+1|0:oe,ce=me(pe,d,F,ye),se=v+oe|0,se=(n=ce+n|0)>>>0>>0?se+1|0:se,oe=me(ue,be,I,q),ce=v+se|0,ce=(n=oe+n|0)>>>0>>0?ce+1|0:ce,se=me(Ae,l,X,X>>31),oe=v+ce|0,oe=(oe=(n=se+n|0)>>>0>>0?oe+1|0:oe)+(se=t>>26)|0,oe=(t=(ce=n)+(n=(67108863&t)<<6|le>>>26)|0)>>>0>>0?oe+1|0:oe,oe=(t=(n=t)+16777216|0)>>>0<16777216?oe+1|0:oe,c[e+36>>2]=n-(-33554432&t),ce=fe-(-33554432&Oe)|0,se=de-(n=-67108864&Ee)|0,we=Se-((n>>>0>de>>>0)+ie|0)|0,t=(n=me((33554431&(n=oe))<<7|t>>>25,oe>>=25,19,0))+se|0,se=v+we|0,oe=t>>>0>>0?se+1|0:se,se=oe=(67108863&(oe=(t=(n=t)+33554432|0)>>>0<33554432?oe+1|0:oe))<<6|t>>>26,oe=oe+ce|0,c[e+4>>2]=oe,c[e>>2]=n-(-67108864&t)}function I(e,t){var n,r,a,i,o,s,u,d,l,b,p,h,y,g,A,w,x,_,k,I,E,C,T,O,P=0,M=0,B=0,N=0,R=0,D=0,j=0,U=0,L=0,F=0,Z=0,H=0,z=0,Q=0,q=0,V=0,J=0,K=0,G=0,W=0,Y=0,X=0,$=0,ee=0,te=0,ne=0,re=0,ae=0,ie=0,oe=0,se=0,ce=0,ue=0,de=0,fe=0;m=n=m-48|0,S(e,t),S(e+80|0,t+40|0),P=me(z=(Y=c[t+92>>2])<<1,o=z>>31,H=(N=c[t+84>>2])<<1,r=H>>31),B=v,ae=Q=c[t+88>>2],M=(Z=me(Q,V=Q>>31,Q,V))+P|0,P=v+B|0,P=M>>>0>>0?P+1|0:P,B=(L=me(j=c[t+96>>2],s=j>>31,Z=(R=c[t+80>>2])<<1,a=Z>>31))+M|0,M=v+P|0,M=B>>>0>>0?M+1|0:M,te=c[t+108>>2],L=me(F=f(te,38),p=F>>31,te,g=te>>31),P=v+M|0,P=(B=L+B|0)>>>0>>0?P+1|0:P,U=B,X=c[t+112>>2],B=me(D=f(X,19),u=D>>31,M=(J=c[t+104>>2])<<1,M>>31),P=v+P|0,P=(M=U+B|0)>>>0>>0?P+1|0:P,oe=c[t+116>>2],B=($=me(L=f(oe,38),i=L>>31,q=(K=c[t+100>>2])<<1,l=q>>31))+M|0,M=v+P|0,se=P=(B>>>0<$>>>0?M+1|0:M)<<1|B>>>31,ce=B=33554432+(A=B<<1)|0,ue=P=B>>>0<33554432?P+1|0:P,ne=(67108863&P)<<6|B>>>26,G=P>>26,P=me(H,r,j,s),M=v,B=me(Q<<=1,b=Q>>31,Y,w=Y>>31),M=v+M|0,M=(P=B+P|0)>>>0>>0?M+1|0:M,B=($=me(K,h=K>>31,Z,a))+P|0,P=v+M|0,P=B>>>0<$>>>0?P+1|0:P,M=B,B=me(D,u,$=te<<1,x=$>>31),P=v+P|0,P=(M=M+B|0)>>>0>>0?P+1|0:P,B=me(L,i,J,d=J>>31),P=v+P|0,P=(M=B+M|0)>>>0>>0?P+1|0:P,B=ne,ne=M<<1,M=(P<<1|M>>>31)+G|0,M=(B=B+ne|0)>>>0>>0?M+1|0:M,ne=B,de=B=B+16777216|0,U=(33554431&(M=B>>>0<16777216?M+1|0:M))<<7|B>>>25,G=M>>25,P=me(z,o,Y,w),B=v,M=(W=me(j,s,Q,b))+P|0,P=v+B|0,P=M>>>0>>0?P+1|0:P,B=me(H,r,q,l),P=v+P|0,P=(M=B+M|0)>>>0>>0?P+1|0:P,B=(W=me(Z,a,J,d))+M|0,M=v+P|0,M=B>>>0>>0?M+1|0:M,P=B,B=me(D,u,X,y=X>>31),M=v+M|0,M=(P=P+B|0)>>>0>>0?M+1|0:M,B=(W=me(L,i,$,x))+P|0,P=v+M|0,M=(B>>>0>>0?P+1|0:P)<<1|B>>>31,B=(P=U)+(U=B<<1)|0,P=M+G|0,P=B>>>0>>0?P+1|0:P,G=B,W=M=B+33554432|0,B=P=M>>>0<33554432?P+1|0:P,c[e+144>>2]=G-(-67108864&M),G=me(P=f(K,38),P>>31,K,h),U=v,R=me(P=R,M=P>>31,P,M),P=v+U|0,P=(M=R+G|0)>>>0>>0?P+1|0:P,U=me(R=f(J,19),_=R>>31,G=j<<1,k=G>>31),P=v+P|0,P=(M=U+M|0)>>>0>>0?P+1|0:P,U=me(z,o,F,p),P=v+P|0,P=(M=U+M|0)>>>0>>0?P+1|0:P,U=(fe=me(D,u,Q,b))+M|0,M=v+P|0,M=U>>>0>>0?M+1|0:M,P=U,U=me(H,r,L,i),M=v+M|0,M=((P=P+U|0)>>>0>>0?M+1|0:M)<<1,U=P,fe=P=M|P>>>31,C=U=33554432+(I=U<<1)|0,T=P=U>>>0<33554432?P+1|0:P,ee=(67108863&P)<<6|U>>>26,U=P>>26,P=me(R,_,q,l),re=v,ie=N,M=(N=me(Z,a,N,E=N>>31))+P|0,P=v+re|0,P=M>>>0>>0?P+1|0:P,N=(re=me(j,s,F,p))+M|0,M=v+P|0,M=N>>>0>>0?M+1|0:M,re=me(D,u,z,o),P=v+M|0,P=(N=re+N|0)>>>0>>0?P+1|0:P,M=N,N=me(L,i,ae,V),P=v+P|0,P=((M=M+N|0)>>>0>>0?P+1|0:P)<<1,N=M,M=(M=P|M>>>31)+U|0,U=N=(P=N<<1)+ee|0,P=M=P>>>0>N>>>0?M+1|0:M,re=N=N+16777216|0,O=(33554431&(P=N>>>0<16777216?P+1|0:P))<<7|N>>>25,ee=P>>25,P=me(Z,a,ae,V),N=v,M=(ie=me(H,r,ie,E))+P|0,P=v+N|0,P=M>>>0>>0?P+1|0:P,N=me(R,_,J,d),P=v+P|0,P=(M=N+M|0)>>>0>>0?P+1|0:P,N=(R=me(q,l,F,p))+M|0,M=v+P|0,M=N>>>0>>0?M+1|0:M,R=me(D,u,G,k),P=v+M|0,P=(N=R+N|0)>>>0>>0?P+1|0:P,R=me(L,i,z,o),M=v+P|0,P=(M=((N=R+N|0)>>>0>>0?M+1|0:M)<<1|N>>>31)+ee|0,P=(N=(R=N<<1)+O|0)>>>0>>0?P+1|0:P,R=N,ie=M=N+33554432|0,N=P=M>>>0<33554432?P+1|0:P,c[e+128>>2]=R-(-67108864&M),P=me(Q,b,K,h),M=v,R=me(j,s,z,o),M=v+M|0,M=(P=R+P|0)>>>0>>0?M+1|0:M,R=(ee=me(H,r,J,d))+P|0,P=v+M|0,P=R>>>0>>0?P+1|0:P,M=R,R=me(Z,a,te,g),P=v+P|0,P=(M=M+R|0)>>>0>>0?P+1|0:P,R=(ee=me(L,i,X,y))+M|0,M=v+P|0,M=P=(R>>>0>>0?M+1|0:M)<<1|R>>>31,P=(P=B>>26)+M|0,P=(B=(ee=R<<=1)+(R=(67108863&B)<<6|W>>>26)|0)>>>0>>0?P+1|0:P,R=B,M=P,W=P=B+16777216|0,B=M=P>>>0<16777216?M+1|0:M,c[e+148>>2]=R-(-33554432&P),P=me(Z,a,Y,w),Y=v,M=(V=me(H,r,ae,V))+P|0,P=v+Y|0,P=M>>>0>>0?P+1|0:P,F=me(J,d,F,p),P=v+P|0,P=(M=F+M|0)>>>0>>0?P+1|0:P,D=(F=me(D,u,q,l))+M|0,M=v+P|0,M=D>>>0>>0?M+1|0:M,F=me(L,i,j,s),P=v+M|0,M=(P=((D=F+D|0)>>>0>>0?P+1|0:P)<<1|D>>>31)+(M=N>>26)|0,M=(N=(R=D<<1)+(D=(67108863&N)<<6|ie>>>26)|0)>>>0>>0?M+1|0:M,D=N,P=M,F=M=N+16777216|0,N=P=M>>>0<16777216?P+1|0:P,c[e+132>>2]=D-(-33554432&M),P=me(J,d,Q,b),D=v,M=(j=me(j,s,j,s))+P|0,P=v+D|0,P=M>>>0>>0?P+1|0:P,j=(D=me(z,o,q,l))+M|0,M=v+P|0,M=j>>>0>>0?M+1|0:M,D=me(H,r,$,x),P=v+M|0,P=(j=D+j|0)>>>0>>0?P+1|0:P,D=me(Z,a,X,y),M=v+P|0,M=(j=D+j|0)>>>0>>0?M+1|0:M,D=me(P=L,i,L=oe,q=L>>31),P=v+M|0,P=(P=((j=D+j|0)>>>0>>0?P+1|0:P)<<1|j>>>31)+(M=B>>25)|0,P=(B=(R=j<<1)+(j=(33554431&B)<<7|W>>>25)|0)>>>0>>0?P+1|0:P,j=B,M=P,D=P=B+33554432|0,B=M=P>>>0<33554432?M+1|0:M,c[e+152>>2]=j-(-67108864&P),M=A-(P=-67108864&ce)|0,V=se-((P>>>0>A>>>0)+ue|0)|0,P=N>>25,N=(F=(33554431&N)<<7|F>>>25)+M|0,M=P+V|0,M=N>>>0>>0?M+1|0:M,R=M=(67108863&(M=(P=N+33554432|0)>>>0<33554432?M+1|0:M))<<6|P>>>26,M=M+(j=ne-(-33554432&de)|0)|0,c[e+140>>2]=M,c[e+136>>2]=N-(-67108864&P),P=me(z,o,J,d),M=v,N=me(K,h,G,k),M=v+M|0,M=(P=N+P|0)>>>0>>0?M+1|0:M,N=(z=me(Q,b,te,g))+P|0,P=v+M|0,P=N>>>0>>0?P+1|0:P,M=N,N=me(H,r,X,y),P=v+P|0,P=(M=M+N|0)>>>0>>0?P+1|0:P,N=(H=me(Z,a,L,q))+M|0,M=v+P|0,M=P=(N>>>0>>0?M+1|0:M)<<1|N>>>31,P=(P=B>>26)+M|0,M=(B=(R=N<<=1)+(N=(67108863&B)<<6|D>>>26)|0)>>>0>>0?P+1|0:P,M=(P=B+16777216|0)>>>0<16777216?M+1|0:M,c[e+156>>2]=B-(-33554432&P),N=U-(-33554432&re)|0,H=I-(B=-67108864&C)|0,Z=fe-((B>>>0>I>>>0)+T|0)|0,M=me((33554431&M)<<7|P>>>25,M>>25,19,0),P=v+Z|0,M=M>>>0>(B=M+H|0)>>>0?P+1|0:P,R=M=(67108863&(M=(P=B+33554432|0)>>>0<33554432?M+1|0:M))<<6|P>>>26,M=M+N|0,c[e+124>>2]=M,c[e+120>>2]=B-(-67108864&P),P=c[t+40>>2],M=c[t+44>>2],B=c[t+4>>2],N=c[t+48>>2],H=c[t+8>>2],Z=c[t+52>>2],L=c[t+12>>2],z=c[t+56>>2],j=c[t+16>>2],D=c[t+60>>2],J=c[t+20>>2],q=c[t- -64>>2],Q=c[t+24>>2],F=c[t+68>>2],V=c[t+28>>2],K=c[t+72>>2],X=c[t+32>>2],ae=c[t>>2],c[e+76>>2]=c[t+76>>2]+c[t+36>>2],c[e+72>>2]=K+X,c[e+68>>2]=F+V,c[(te=e- -64|0)>>2]=Q+q,c[e+60>>2]=D+J,c[e+56>>2]=j+z,c[e+52>>2]=L+Z,c[e+48>>2]=N+H,c[e+44>>2]=M+B,c[(t=e+40|0)>>2]=P+ae,S(n,t),P=c[e+80>>2],M=c[e+4>>2],B=c[e+84>>2],N=c[e+8>>2],H=c[e+88>>2],Z=c[e+12>>2],L=c[e+92>>2],z=c[e+16>>2],j=c[e+96>>2],D=c[e+20>>2],J=c[e+100>>2],q=c[e+24>>2],Q=c[e+104>>2],F=c[e+28>>2],V=c[e+108>>2],K=c[e+32>>2],X=c[e+112>>2],ae=c[e>>2],R=(Y=c[e+116>>2])-($=c[e+36>>2])|0,c[e+116>>2]=R,G=X-K|0,c[e+112>>2]=G,ne=V-F|0,c[e+108>>2]=ne,U=Q-q|0,c[e+104>>2]=U,oe=J-D|0,c[e+100>>2]=oe,se=j-z|0,c[e+96>>2]=se,ce=L-Z|0,c[e+92>>2]=ce,ue=H-N|0,c[e+88>>2]=ue,W=B-M|0,c[e+84>>2]=W,de=P-ae|0,c[e+80>>2]=de,Y=Y+$|0,c[e+76>>2]=Y,K=K+X|0,c[e+72>>2]=K,F=F+V|0,c[e+68>>2]=F,q=Q+q|0,c[te>>2]=q,D=D+J|0,c[e+60>>2]=D,z=j+z|0,c[e+56>>2]=z,Z=L+Z|0,c[e+52>>2]=Z,N=N+H|0,c[e+48>>2]=N,M=M+B|0,c[e+44>>2]=M,B=t,t=P+ae|0,c[B>>2]=t,P=c[n>>2],B=c[n+4>>2],H=c[n+8>>2],L=c[n+12>>2],j=c[n+16>>2],J=c[n+20>>2],Q=c[n+24>>2],V=c[n+28>>2],X=c[n+32>>2],c[e+36>>2]=c[n+36>>2]-Y,c[e+32>>2]=X-K,c[e+28>>2]=V-F,c[e+24>>2]=Q-q,c[e+20>>2]=J-D,c[e+16>>2]=j-z,c[e+12>>2]=L-Z,c[e+8>>2]=H-N,c[e+4>>2]=B-M,c[e>>2]=P-t,t=c[e+120>>2],P=c[e+124>>2],M=c[e+128>>2],B=c[e+132>>2],N=c[e+136>>2],H=c[e+140>>2],Z=c[e+144>>2],L=c[e+148>>2],z=c[e+152>>2],c[e+156>>2]=c[e+156>>2]-R,c[e+152>>2]=z-G,c[e+148>>2]=L-ne,c[e+144>>2]=Z-U,c[e+140>>2]=H-oe,c[e+136>>2]=N-se,c[e+132>>2]=B-ce,c[e+128>>2]=M-ue,c[e+124>>2]=P-W,c[e+120>>2]=t-de,m=n+48|0}function S(e,t){var n,r,a,i,o,s,u,d,l,b,p,h,y,m,g,A,w,x,_,k,I,S,E,C,T,O,P,M,B,N,R,D,j,U=0,L=0,F=0,Z=0,H=0,z=0,Q=0,q=0,V=0,J=0,K=0,G=0,W=0,Y=0,X=0,$=0,ee=0,te=0,ne=0,re=0,ae=0,ie=0;U=me(r=(A=c[t+12>>2])<<1,s=r>>31,A,I=A>>31),F=v,L=(V=me(H=c[t+16>>2],u=H>>31,d=(Z=c[t+8>>2])<<1,h=d>>31))+U|0,U=v+F|0,U=L>>>0>>0?U+1|0:U,F=(J=me(W=(l=c[t+20>>2])<<1,y=W>>31,V=(z=c[t+4>>2])<<1,a=V>>31))+L|0,L=v+U|0,L=F>>>0>>0?L+1|0:L,Q=me(n=c[t+24>>2],b=n>>31,J=($=c[t>>2])<<1,i=J>>31),U=v+L|0,U=(F=Q+F|0)>>>0>>0?U+1|0:U,L=F,m=c[t+32>>2],F=me(K=f(m,19),p=K>>31,m,x=m>>31),U=v+U|0,U=(L=L+F|0)>>>0>>0?U+1|0:U,O=c[t+36>>2],F=me(Q=f(O,38),o=Q>>31,_=(g=c[t+28>>2])<<1,S=_>>31),t=v+U|0,X=L=F+L|0,F=L>>>0>>0?t+1|0:t,t=me(V,a,H,u),U=v,L=me(d,h,A,I),U=v+U|0,U=(t=L+t|0)>>>0>>0?U+1|0:U,q=me(l,k=l>>31,J,i),L=v+U|0,L=(t=q+t|0)>>>0>>0?L+1|0:L,q=me(K,p,_,S),U=v+L|0,U=(t=q+t|0)>>>0>>0?U+1|0:U,L=me(Q,o,n,b),U=v+U|0,ae=t=L+t|0,G=t>>>0>>0?U+1|0:U,U=me(V,a,r,s),L=v,E=t=Z,Z=me(t,Y=t>>31,t,Y),t=v+L|0,t=(U=Z+U|0)>>>0>>0?t+1|0:t,L=(Z=me(J,i,H,u))+U|0,U=v+t|0,U=L>>>0>>0?U+1|0:U,t=(Z=me(q=f(g,38),w=q>>31,g,C=g>>31))+L|0,L=v+U|0,L=t>>>0>>0?L+1|0:L,t=(U=t)+(Z=me(K,p,t=n<<1,t>>31))|0,U=v+L|0,U=t>>>0>>0?U+1|0:U,L=t,t=me(Q,o,W,y),U=v+U|0,P=L=L+t|0,M=U=t>>>0>L>>>0?U+1|0:U,t=U,B=L=L+33554432|0,N=t=L>>>0<33554432?t+1|0:t,U=(U=t>>26)+G|0,ae=t=(L=(67108863&t)<<6|L>>>26)+ae|0,U=t>>>0>>0?U+1|0:U,R=t=t+16777216|0,U=(U=(L=t>>>0<16777216?U+1|0:U)>>25)+F|0,t=(t=(33554431&L)<<7|t>>>25)>>>0>(L=t+X|0)>>>0?U+1|0:U,X=U=L+33554432|0,Z=t=U>>>0<33554432?t+1|0:t,c[e+24>>2]=L-(-67108864&U),t=me(J,i,E,Y),U=v,F=me(V,a,z,re=z>>31),L=v+U|0,L=(t=F+t|0)>>>0>>0?L+1|0:L,G=me(F=f(n,19),ne=F>>31,n,b),U=v+L|0,U=(t=G+t|0)>>>0>>0?U+1|0:U,L=(G=me(W,y,q,w))+t|0,t=v+U|0,t=L>>>0>>0?t+1|0:t,ee=me(K,p,G=H<<1,T=G>>31),U=v+t|0,U=(L=ee+L|0)>>>0>>0?U+1|0:U,t=L,L=me(Q,o,r,s),U=v+U|0,te=t=t+L|0,ee=t>>>0>>0?U+1|0:U,t=me(W,y,F,ne),U=v,z=me(J,i,z,re),L=v+U|0,L=(t=z+t|0)>>>0>>0?L+1|0:L,z=me(H,u,q,w),U=v+L|0,U=(t=z+t|0)>>>0>>0?U+1|0:U,L=(z=me(K,p,r,s))+t|0,t=v+U|0,t=L>>>0>>0?t+1|0:t,z=me(Q,o,E,Y),U=v+t|0,ie=L=z+L|0,re=L>>>0>>0?U+1|0:U,L=me(t=f(l,38),t>>31,l,k),z=v,t=$,$=L,L=me(t,U=t>>31,t,U),U=v+z|0,U=(t=$+L|0)>>>0>>0?U+1|0:U,F=me(F,ne,G,T),L=v+U|0,L=(t=F+t|0)>>>0>>0?L+1|0:L,F=me(r,s,q,w),U=v+L|0,U=(t=F+t|0)>>>0>>0?U+1|0:U,L=(F=me(K,p,d,h))+t|0,t=v+U|0,t=L>>>0>>0?t+1|0:t,F=me(V,a,Q,o),U=v+t|0,z=L=F+L|0,ne=U=L>>>0>>0?U+1|0:U,D=L=L+33554432|0,j=U=L>>>0<33554432?U+1|0:U,t=U>>26,U=(67108863&U)<<6|L>>>26,L=t+re|0,$=F=U+ie|0,U=L=U>>>0>F>>>0?L+1|0:L,ie=L=F+16777216|0,F=(33554431&(U=L>>>0<16777216?U+1|0:U))<<7|L>>>25,U=(U>>25)+ee|0,U=(L=F+te|0)>>>0>>0?U+1|0:U,ee=t=L+33554432|0,F=U=t>>>0<33554432?U+1|0:U,c[e+8>>2]=L-(-67108864&t),t=me(d,h,l,k),U=v,L=me(H,u,r,s),U=v+U|0,U=(t=L+t|0)>>>0>>0?U+1|0:U,L=me(V,a,n,b),U=v+U|0,U=(t=L+t|0)>>>0>>0?U+1|0:U,L=me(J,i,g,C),U=v+U|0,U=(t=L+t|0)>>>0>>0?U+1|0:U,te=(L=me(Q,o,m,x))+t|0,t=v+U|0,L=(U=Z>>26)+(L=L>>>0>te>>>0?t+1|0:t)|0,X=t=(Z=(67108863&Z)<<6|X>>>26)+te|0,U=t>>>0>>0?L+1|0:L,te=t=t+16777216|0,Z=U=t>>>0<16777216?U+1|0:U,c[e+28>>2]=X-(-33554432&t),t=me(J,i,A,I),L=v,U=(Y=me(V,a,E,Y))+t|0,t=v+L|0,t=U>>>0>>0?t+1|0:t,U=(q=me(n,b,q,w))+U|0,L=v+t|0,t=(K=me(K,p,W,y))+U|0,U=v+(U>>>0>>0?L+1|0:L)|0,U=t>>>0>>0?U+1|0:U,L=me(Q,o,H,u),U=v+U|0,U=(U=(t=L+t|0)>>>0>>0?U+1|0:U)+(L=F>>26)|0,t=(L=F=(X=t)+(t=(67108863&F)<<6|ee>>>26)|0)>>>0>>0?U+1|0:U,K=U=L+16777216|0,F=t=U>>>0<16777216?t+1|0:t,c[e+12>>2]=L-(-33554432&U),t=me(n,b,d,h),U=v,L=me(H,u,H,u),U=v+U|0,U=(t=L+t|0)>>>0>>0?U+1|0:U,L=me(r,s,W,y),U=v+U|0,U=(t=L+t|0)>>>0>>0?U+1|0:U,L=(H=me(V,a,_,S))+t|0,t=v+U|0,t=L>>>0>>0?t+1|0:t,U=(H=me(J,i,m,x))+L|0,L=v+t|0,L=U>>>0>>0?L+1|0:L,t=(H=me(t=Q,o,Q=O,W=Q>>31))+U|0,U=v+L|0,U=t>>>0>>0?U+1|0:U,L=t,U=(t=Z>>25)+U|0,U=(L=L+(Z=(33554431&Z)<<7|te>>>25)|0)>>>0>>0?U+1|0:U,H=t=L+33554432|0,Z=U=t>>>0<33554432?U+1|0:U,c[e+32>>2]=L-(-67108864&t),U=F>>25,L=(F=(33554431&F)<<7|K>>>25)+(P-(t=-67108864&B)|0)|0,t=U+(M-((t>>>0>P>>>0)+N|0)|0)|0,U=L>>>0>>0?t+1|0:t,F=U=(67108863&(U=(t=L+33554432|0)>>>0<33554432?U+1|0:U))<<6|t>>>26,U=U+(q=ae-(-33554432&R)|0)|0,c[e+20>>2]=U,c[e+16>>2]=L-(-67108864&t),t=me(r,s,n,b),L=v,U=(F=me(l,k,G,T))+t|0,t=v+L|0,t=U>>>0>>0?t+1|0:t,L=(F=me(d,h,g,C))+U|0,U=v+t|0,U=L>>>0>>0?U+1|0:U,t=(F=me(V,a,m,x))+L|0,L=v+U|0,L=t>>>0>>0?L+1|0:L,F=(U=t)+(t=me(J,i,Q,W))|0,U=v+L|0,U=(t=t>>>0>F>>>0?U+1|0:U)+(U=Z>>26)|0,t=(L=(Z=(67108863&Z)<<6|H>>>26)+F|0)>>>0>>0?U+1|0:U,t=(U=L+16777216|0)>>>0<16777216?t+1|0:t,c[e+36>>2]=L-(-33554432&U),Z=$-(-33554432&ie)|0,F=z-(L=-67108864&D)|0,V=ne-((L>>>0>z>>>0)+j|0)|0,t=me((33554431&t)<<7|U>>>25,t>>25,19,0),U=v+V|0,t=t>>>0>(L=t+F|0)>>>0?U+1|0:U,F=t=(67108863&(t=(U=L+33554432|0)>>>0<33554432?t+1|0:t))<<6|U>>>26,t=t+Z|0,c[e+4>>2]=t,c[e>>2]=L-(-67108864&U)}function E(e,t,n,r,a){var i,o,d,f,l,b,p,h,y,v,g,A,w,x,_,k=0,I=0,S=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,N=0,R=0,D=0,j=0,U=0,L=0,F=0,Z=0,H=0,z=0,Q=0,q=0,V=0,J=0,K=0,G=0,W=0,Y=0,X=0,$=0,ee=0,te=0,ne=0,re=0;for(i=m+-64|0,o=c[e+60>>2],d=c[e+56>>2],z=c[e+52>>2],H=c[e+48>>2],f=c[e+44>>2],l=c[e+40>>2],b=c[e+36>>2],p=c[e+32>>2],h=c[e+28>>2],y=c[e+24>>2],v=c[e+20>>2],g=c[e+16>>2],A=c[e+12>>2],w=c[e+8>>2],x=c[e+4>>2],_=c[e>>2];;){if(!a&r>>>0>63|a)k=n;else{if(c[i+56>>2]=0,c[i+60>>2]=0,c[i+48>>2]=0,c[i+52>>2]=0,c[i+40>>2]=0,c[i+44>>2]=0,c[i+32>>2]=0,c[i+36>>2]=0,c[i+24>>2]=0,c[i+28>>2]=0,c[i+16>>2]=0,c[i+20>>2]=0,c[i+8>>2]=0,c[i+12>>2]=0,c[i>>2]=0,c[i+4>>2]=0,S=0,r|a)for(;s[S+i|0]=u[t+S|0],!a&(S=S+1|0)>>>0>>0|a;);t=k=i,K=n}for(Q=20,I=_,B=x,N=w,j=A,S=g,n=v,C=y,T=h,O=p,L=b,R=l,E=o,F=d,U=z,D=H,P=f;M=S,I=Be((S=I+S|0)^D,16),M=D=Be(M^(O=I+O|0),12),D=Be((Z=S+D|0)^I,8),S=Be(M^(O=D+O|0),7),E=Be((I=T+j|0)^E,16),T=Be((P=E+P|0)^T,12),j=Be((N=C+N|0)^F,16),C=Be((R=j+R|0)^C,12),F=(q=I+T|0)+S|0,V=Be((N=C+N|0)^j,8),I=Be(F^V,16),j=Be((B=n+B|0)^U,16),n=Be((L=j+L|0)^n,12),M=S,U=Be((B=n+B|0)^j,8),M=Be(M^(S=(J=U+L|0)+I|0),12),F=Be(I^(j=M+F|0),8),S=Be((L=F+S|0)^M,7),M=O,O=N,I=Be(E^q,8),N=Be((E=I+P|0)^T,7),U=Be((O=O+N|0)^U,16),P=Be((T=M+U|0)^N,12),U=Be(U^(N=P+O|0),8),T=Be((O=T+U|0)^P,7),P=E,E=B,B=Be((R=R+V|0)^C,7),C=P+(D=Be((E=E+B|0)^D,16))|0,P=E,E=Be(C^B,12),D=Be(D^(B=P+E|0),8),C=Be((P=C+D|0)^E,7),M=R,E=I,I=Be(n^J,7),E=Be(E^(R=I+Z|0),16),Z=Be((n=M+E|0)^I,12),E=Be(E^(I=Z+R|0),8),n=Be((R=n+E|0)^Z,7),Q=Q-2|0;);if(Q=u[t+4|0]|u[t+5|0]<<8|u[t+6|0]<<16|u[t+7|0]<<24,Z=u[t+8|0]|u[t+9|0]<<8|u[t+10|0]<<16|u[t+11|0]<<24,q=u[t+12|0]|u[t+13|0]<<8|u[t+14|0]<<16|u[t+15|0]<<24,V=u[t+16|0]|u[t+17|0]<<8|u[t+18|0]<<16|u[t+19|0]<<24,J=u[t+20|0]|u[t+21|0]<<8|u[t+22|0]<<16|u[t+23|0]<<24,M=u[t+24|0]|u[t+25|0]<<8|u[t+26|0]<<16|u[t+27|0]<<24,G=u[t+28|0]|u[t+29|0]<<8|u[t+30|0]<<16|u[t+31|0]<<24,W=u[t+32|0]|u[t+33|0]<<8|u[t+34|0]<<16|u[t+35|0]<<24,Y=u[t+36|0]|u[t+37|0]<<8|u[t+38|0]<<16|u[t+39|0]<<24,X=u[t+40|0]|u[t+41|0]<<8|u[t+42|0]<<16|u[t+43|0]<<24,$=u[t+44|0]|u[t+45|0]<<8|u[t+46|0]<<16|u[t+47|0]<<24,ee=u[t+48|0]|u[t+49|0]<<8|u[t+50|0]<<16|u[t+51|0]<<24,te=u[t+52|0]|u[t+53|0]<<8|u[t+54|0]<<16|u[t+55|0]<<24,ne=u[t+56|0]|u[t+57|0]<<8|u[t+58|0]<<16|u[t+59|0]<<24,re=u[t+60|0]|u[t+61|0]<<8|u[t+62|0]<<16|u[t+63|0]<<24,I=I+_^(u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24),s[0|k]=I,s[k+1|0]=I>>>8,s[k+2|0]=I>>>16,s[k+3|0]=I>>>24,I=E+o^re,s[k+60|0]=I,s[k+61|0]=I>>>8,s[k+62|0]=I>>>16,s[k+63|0]=I>>>24,I=F+d^ne,s[k+56|0]=I,s[k+57|0]=I>>>8,s[k+58|0]=I>>>16,s[k+59|0]=I>>>24,I=U+z^te,s[k+52|0]=I,s[k+53|0]=I>>>8,s[k+54|0]=I>>>16,s[k+55|0]=I>>>24,I=D+H^ee,s[k+48|0]=I,s[k+49|0]=I>>>8,s[k+50|0]=I>>>16,s[k+51|0]=I>>>24,I=P+f^$,s[k+44|0]=I,s[k+45|0]=I>>>8,s[k+46|0]=I>>>16,s[k+47|0]=I>>>24,I=R+l^X,s[k+40|0]=I,s[k+41|0]=I>>>8,s[k+42|0]=I>>>16,s[k+43|0]=I>>>24,I=L+b^Y,s[k+36|0]=I,s[k+37|0]=I>>>8,s[k+38|0]=I>>>16,s[k+39|0]=I>>>24,I=O+p^W,s[k+32|0]=I,s[k+33|0]=I>>>8,s[k+34|0]=I>>>16,s[k+35|0]=I>>>24,T=T+h^G,s[k+28|0]=T,s[k+29|0]=T>>>8,s[k+30|0]=T>>>16,s[k+31|0]=T>>>24,C=M^C+y,s[k+24|0]=C,s[k+25|0]=C>>>8,s[k+26|0]=C>>>16,s[k+27|0]=C>>>24,n=J^n+v,s[k+20|0]=n,s[k+21|0]=n>>>8,s[k+22|0]=n>>>16,s[k+23|0]=n>>>24,n=V^S+g,s[k+16|0]=n,s[k+17|0]=n>>>8,s[k+18|0]=n>>>16,s[k+19|0]=n>>>24,n=q^j+A,s[k+12|0]=n,s[k+13|0]=n>>>8,s[k+14|0]=n>>>16,s[k+15|0]=n>>>24,n=Z^N+w,s[k+8|0]=n,s[k+9|0]=n>>>8,s[k+10|0]=n>>>16,s[k+11|0]=n>>>24,n=Q^B+x,s[k+4|0]=n,s[k+5|0]=n>>>8,s[k+6|0]=n>>>16,s[k+7|0]=n>>>24,z=!(H=H+1|0)+z|0,!a&r>>>0<=64){if(!(!r|!a&r>>>0>63|0!=(0|a)))for(S=0;s[S+K|0]=u[k+S|0],r>>>0>(S=S+1|0)>>>0;);c[e+52>>2]=z,c[e+48>>2]=H;break}t=t- -64|0,n=k- -64|0,a=a-1|0,a=(r=r+-64|0)>>>0<4294967232?a+1|0:a}}function C(e,t){var n,r=0,a=0,i=0,o=0,u=0,d=0,f=0;m=n=m-704|0,r=80+((a=c[e+72>>2]>>>3&127)+e|0)|0,a>>>0<=111?Ee(r,34640,112-a|0):(Ee(r,34640,128-a|0),w(e,a=e+80|0,n,n+640|0),Ce(a,0,112)),d=(i=c[e+64>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,f=o<<24,o=(u=-16777216&i)>>>24|0,r=f|u<<8|-16777216&((255&(r=c[e+68>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[e+192|0]=r,s[e+193|0]=r>>>8,s[e+194|0]=r>>>16,s[e+195|0]=r>>>24,a=(r=a|o|d)|(a=0)|a|0,s[e+196|0]=a,s[e+197|0]=a>>>8,s[e+198|0]=a>>>16,s[e+199|0]=a>>>24,d=(i=c[e+72>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,f=o<<24,o=(u=-16777216&i)>>>24|0,r=f|u<<8|-16777216&((255&(r=c[e+76>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[e+200|0]=r,s[e+201|0]=r>>>8,s[e+202|0]=r>>>16,s[e+203|0]=r>>>24,a=(r=a|o|d)|(a=0)|a|0,s[e+204|0]=a,s[e+205|0]=a>>>8,s[e+206|0]=a>>>16,s[e+207|0]=a>>>24,w(e,e+80|0,n,n+640|0),d=(i=c[e>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,f=o<<24,o=(u=-16777216&i)>>>24|0,r=f|u<<8|-16777216&((255&(r=c[e+4>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[0|t]=r,s[t+1|0]=r>>>8,s[t+2|0]=r>>>16,s[t+3|0]=r>>>24,a=(r=a|o|d)|(a=0)|a|0,s[t+4|0]=a,s[t+5|0]=a>>>8,s[t+6|0]=a>>>16,s[t+7|0]=a>>>24,d=(i=c[e+8>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,f=o<<24,o=(u=-16777216&i)>>>24|0,r=f|u<<8|-16777216&((255&(r=c[e+12>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[t+8|0]=r,s[t+9|0]=r>>>8,s[t+10|0]=r>>>16,s[t+11|0]=r>>>24,a=(r=a|o|d)|(a=0)|a|0,s[t+12|0]=a,s[t+13|0]=a>>>8,s[t+14|0]=a>>>16,s[t+15|0]=a>>>24,d=(i=c[e+16>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,f=o<<24,o=(u=-16777216&i)>>>24|0,r=f|u<<8|-16777216&((255&(r=c[e+20>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[t+16|0]=r,s[t+17|0]=r>>>8,s[t+18|0]=r>>>16,s[t+19|0]=r>>>24,a=(r=a|o|d)|(a=0)|a|0,s[t+20|0]=a,s[t+21|0]=a>>>8,s[t+22|0]=a>>>16,s[t+23|0]=a>>>24,d=(i=c[e+24>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,f=o<<24,o=(u=-16777216&i)>>>24|0,r=f|u<<8|-16777216&((255&(r=c[e+28>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[t+24|0]=r,s[t+25|0]=r>>>8,s[t+26|0]=r>>>16,s[t+27|0]=r>>>24,a=(r=a|o|d)|(a=0)|a|0,s[t+28|0]=a,s[t+29|0]=a>>>8,s[t+30|0]=a>>>16,s[t+31|0]=a>>>24,d=(i=c[e+32>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,f=o<<24,o=(u=-16777216&i)>>>24|0,r=f|u<<8|-16777216&((255&(r=c[e+36>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[t+32|0]=r,s[t+33|0]=r>>>8,s[t+34|0]=r>>>16,s[t+35|0]=r>>>24,a=(r=a|o|d)|(a=0)|a|0,s[t+36|0]=a,s[t+37|0]=a>>>8,s[t+38|0]=a>>>16,s[t+39|0]=a>>>24,d=(i=c[e+40>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,f=o<<24,o=(u=-16777216&i)>>>24|0,r=f|u<<8|-16777216&((255&(r=c[e+44>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[t+40|0]=r,s[t+41|0]=r>>>8,s[t+42|0]=r>>>16,s[t+43|0]=r>>>24,a=(r=a|o|d)|(a=0)|a|0,s[t+44|0]=a,s[t+45|0]=a>>>8,s[t+46|0]=a>>>16,s[t+47|0]=a>>>24,d=(i=c[e+48>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,f=o<<24,o=(u=-16777216&i)>>>24|0,r=f|u<<8|-16777216&((255&(r=c[e+52>>2]))<<24|i>>>8)|16711680&((16777215&r)<<8|i>>>24)|r>>>8&65280|r>>>24,s[t+48|0]=r,s[t+49|0]=r>>>8,s[t+50|0]=r>>>16,s[t+51|0]=r>>>24,a=(r=a|o|d)|(a=0)|a|0,s[t+52|0]=a,s[t+53|0]=a>>>8,s[t+54|0]=a>>>16,s[t+55|0]=a>>>24,d=(i=c[e+56>>2])<<24|(65280&i)<<8,a=(o=16711680&i)>>>8|0,r=t,f=o<<24,o=(u=-16777216&i)>>>24|0,t=f|u<<8|-16777216&((255&(t=c[e+60>>2]))<<24|i>>>8)|16711680&((16777215&t)<<8|i>>>24)|t>>>8&65280|t>>>24,s[r+56|0]=t,s[r+57|0]=t>>>8,s[r+58|0]=t>>>16,s[r+59|0]=t>>>24,t=(t=a|o|d)|(a=0)|a|0,s[r+60|0]=t,s[r+61|0]=t>>>8,s[r+62|0]=t>>>16,s[r+63|0]=t>>>24,$e(n,704),$e(e,208),m=n+704|0}function T(e,t,n){var r,a=0,o=0,d=0,f=0,l=0,b=0;m=r=m+-64|0;e:{if((n-65&255)>>>0>191){if(a=-1,!(u[e+80|0]|u[e+81|0]<<8|u[e+82|0]<<16|u[e+83|0]<<24|u[e+84|0]|u[e+85|0]<<8|u[e+86|0]<<16|u[e+87|0]<<24)){if((f=u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24)>>>0>=129){if(d=u[0|(a=e- -64|0)]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,l=o=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,o=(f=d+128|0)>>>0<128?o+1|0:o,s[0|a]=f,s[a+1|0]=f>>>8,s[a+2|0]=f>>>16,s[a+3|0]=f>>>24,s[a+4|0]=o,s[a+5|0]=o>>>8,s[a+6|0]=o>>>16,s[a+7|0]=o>>>24,o=u[e+76|0]|u[e+77|0]<<8|u[e+78|0]<<16|u[e+79|0]<<24,o=(a=-1==(0|l)&d>>>0>4294967167)>>>0>(d=a+(u[e+72|0]|u[e+73|0]<<8|u[e+74|0]<<16|u[e+75|0]<<24)|0)>>>0?o+1|0:o,s[e+72|0]=d,s[e+73|0]=d>>>8,s[e+74|0]=d>>>16,s[e+75|0]=d>>>24,s[e+76|0]=o,s[e+77|0]=o>>>8,s[e+78|0]=o>>>16,s[e+79|0]=o>>>24,g(e,o=e+96|0),a=(u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24)-128|0,s[e+352|0]=a,s[e+353|0]=a>>>8,s[e+354|0]=a>>>16,s[e+355|0]=a>>>24,a>>>0>=129)break e;Ee(o,e+224|0,a),f=u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24}o=u[0|(a=e- -64|0)]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,d=b=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,d=(l=o+f|0)>>>0>>0?d+1|0:d,s[0|a]=l,s[a+1|0]=l>>>8,s[a+2|0]=l>>>16,s[a+3|0]=l>>>24,s[a+4|0]=d,s[a+5|0]=d>>>8,s[a+6|0]=d>>>16,s[a+7|0]=d>>>24,a=(0|d)==(0|b)&o>>>0>l>>>0|d>>>0>>0,o=u[e+76|0]|u[e+77|0]<<8|u[e+78|0]<<16|u[e+79|0]<<24,o=(d=a+(u[e+72|0]|u[e+73|0]<<8|u[e+74|0]<<16|u[e+75|0]<<24)|0)>>>0>>0?o+1|0:o,s[e+72|0]=d,s[e+73|0]=d>>>8,s[e+74|0]=d>>>16,s[e+75|0]=d>>>24,s[e+76|0]=o,s[e+77|0]=o>>>8,s[e+78|0]=o>>>16,s[e+79|0]=o>>>24,u[e+356|0]&&(s[e+88|0]=255,s[e+89|0]=255,s[e+90|0]=255,s[e+91|0]=255,s[e+92|0]=255,s[e+93|0]=255,s[e+94|0]=255,s[e+95|0]=255),s[e+80|0]=255,s[e+81|0]=255,s[e+82|0]=255,s[e+83|0]=255,s[e+84|0]=255,s[e+85|0]=255,s[e+86|0]=255,s[e+87|0]=255,Ce((a=e+96|0)+f|0,0,256-f|0),g(e,a),o=u[e+4|0]|u[e+5|0]<<8|u[e+6|0]<<16|u[e+7|0]<<24,c[r>>2]=u[0|e]|u[e+1|0]<<8|u[e+2|0]<<16|u[e+3|0]<<24,c[r+4>>2]=o,o=u[e+12|0]|u[e+13|0]<<8|u[e+14|0]<<16|u[e+15|0]<<24,c[r+8>>2]=u[e+8|0]|u[e+9|0]<<8|u[e+10|0]<<16|u[e+11|0]<<24,c[r+12>>2]=o,o=u[e+20|0]|u[e+21|0]<<8|u[e+22|0]<<16|u[e+23|0]<<24,c[r+16>>2]=u[e+16|0]|u[e+17|0]<<8|u[e+18|0]<<16|u[e+19|0]<<24,c[r+20>>2]=o,o=u[e+28|0]|u[e+29|0]<<8|u[e+30|0]<<16|u[e+31|0]<<24,c[r+24>>2]=u[e+24|0]|u[e+25|0]<<8|u[e+26|0]<<16|u[e+27|0]<<24,c[r+28>>2]=o,o=u[e+36|0]|u[e+37|0]<<8|u[e+38|0]<<16|u[e+39|0]<<24,c[r+32>>2]=u[e+32|0]|u[e+33|0]<<8|u[e+34|0]<<16|u[e+35|0]<<24,c[r+36>>2]=o,o=u[e+44|0]|u[e+45|0]<<8|u[e+46|0]<<16|u[e+47|0]<<24,c[r+40>>2]=u[e+40|0]|u[e+41|0]<<8|u[e+42|0]<<16|u[e+43|0]<<24,c[r+44>>2]=o,o=u[e+52|0]|u[e+53|0]<<8|u[e+54|0]<<16|u[e+55|0]<<24,c[r+48>>2]=u[e+48|0]|u[e+49|0]<<8|u[e+50|0]<<16|u[e+51|0]<<24,c[r+52>>2]=o,o=u[e+60|0]|u[e+61|0]<<8|u[e+62|0]<<16|u[e+63|0]<<24,c[r+56>>2]=u[e+56|0]|u[e+57|0]<<8|u[e+58|0]<<16|u[e+59|0]<<24,c[r+60>>2]=o,Ee(t,r,n),$e(e,64),$e(a,256),a=0}return m=r- -64|0,a}Le(),i()}p(1280,1142,306,1086),i()}function O(e,t){var n,r,a,i,o,d,f,l,b,p,h,y,v,g,A,w,x=0,_=0,I=0,E=0,C=0,T=0,O=0;for(m=n=m-320|0,j(r=e+40|0,t),c[e+84>>2]=0,c[e+88>>2]=0,c[e+80>>2]=1,c[e+92>>2]=0,c[e+96>>2]=0,c[e+100>>2]=0,c[e+104>>2]=0,c[e+108>>2]=0,c[e+112>>2]=0,c[e+116>>2]=0,S(T=n+240|0,r),k(E=n+192|0,T,1344),O=-1,a=c[n+240>>2]-1|0,c[n+240>>2]=a,c[n+192>>2]=c[n+192>>2]+1,i=c[n+244>>2],o=c[n+248>>2],d=c[n+252>>2],f=c[n+256>>2],l=c[n+260>>2],b=c[n+264>>2],p=c[n+268>>2],h=c[n+272>>2],y=c[n+276>>2],S(C=n+144|0,E),k(C,C,E),S(e,C),k(e,e,E),k(e,e,T),m=_=m-144|0,S(I=_+96|0,e),S(x=_+48|0,I),S(x,x),k(x,e,x),k(I,I,x),S(I,I),k(I,x,I),S(x,I),S(x,x),S(x,x),S(x,x),S(x,x),k(I,x,I),S(x,I),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),k(x,x,I),S(_,x),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),S(_,_),k(x,_,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),k(I,x,I),S(x,I),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),k(x,x,I),S(_,x),x=1;S(_,_),100!=(0|(x=x+1|0)););k(x=_+48|0,_,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),S(x,x),k(I=_+96|0,x,I),S(I,I),S(I,I),k(e,I,e),m=_+144|0,k(e,e,C),k(e,e,T),S(x=n+96|0,e),k(x,x,E),x=c[n+132>>2],c[n+84>>2]=x-y,_=c[n+128>>2],c[n+80>>2]=_-h,I=c[n+124>>2],c[n+76>>2]=I-p,E=c[n+120>>2],c[n+72>>2]=E-b,C=c[n+116>>2],c[n+68>>2]=C-l,T=c[n+112>>2],c[n+64>>2]=T-f,v=c[n+108>>2],c[n+60>>2]=v-d,g=c[n+104>>2],c[n+56>>2]=g-o,A=c[n+100>>2],c[n+52>>2]=A-i,w=c[n+96>>2],c[n+48>>2]=w-a,Y(n,n+48|0);e:{if(!oe(n,32)){if(c[n+36>>2]=x+y,c[n+32>>2]=_+h,c[n+28>>2]=I+p,c[n+24>>2]=E+b,c[n+20>>2]=C+l,c[n+16>>2]=T+f,c[n+12>>2]=d+v,c[n+8>>2]=o+g,c[n+4>>2]=i+A,c[n>>2]=a+w,Y(x=n+288|0,n),!oe(x,32))break e;k(e,e,1392)}Y(n+288|0,e),(1&s[n+288|0])==(u[t+31|0]>>>7|0)&&(c[e>>2]=0-c[e>>2],c[e+36>>2]=0-c[e+36>>2],c[e+32>>2]=0-c[e+32>>2],c[e+28>>2]=0-c[e+28>>2],c[e+24>>2]=0-c[e+24>>2],c[e+20>>2]=0-c[e+20>>2],c[e+16>>2]=0-c[e+16>>2],c[e+12>>2]=0-c[e+12>>2],c[e+8>>2]=0-c[e+8>>2],c[e+4>>2]=0-c[e+4>>2]),k(e+120|0,e,r),O=0}return m=n+320|0,O}function P(e,t,n){var r,a,i,o,c,d,f,l,b,p,h,y,m=0,v=0,g=0,A=0,w=0,x=0,_=0,k=0,I=0,S=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,N=0,R=0,D=0;for(w=1634760805,v=r=u[0|n]|u[n+1|0]<<8|u[n+2|0]<<16|u[n+3|0]<<24,x=a=u[n+4|0]|u[n+5|0]<<8|u[n+6|0]<<16|u[n+7|0]<<24,_=i=u[n+8|0]|u[n+9|0]<<8|u[n+10|0]<<16|u[n+11|0]<<24,k=o=u[n+12|0]|u[n+13|0]<<8|u[n+14|0]<<16|u[n+15|0]<<24,C=857760878,I=c=u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24,g=d=u[t+4|0]|u[t+5|0]<<8|u[t+6|0]<<16|u[t+7|0]<<24,E=f=u[t+8|0]|u[t+9|0]<<8|u[t+10|0]<<16|u[t+11|0]<<24,O=l=u[t+12|0]|u[t+13|0]<<8|u[t+14|0]<<16|u[t+15|0]<<24,t=2036477234,A=b=u[n+16|0]|u[n+17|0]<<8|u[n+18|0]<<16|u[n+19|0]<<24,m=1797285236,P=p=u[n+28|0]|u[n+29|0]<<8|u[n+30|0]<<16|u[n+31|0]<<24,T=h=u[n+24|0]|u[n+25|0]<<8|u[n+26|0]<<16|u[n+27|0]<<24,n=y=u[n+20|0]|u[n+21|0]<<8|u[n+22|0]<<16|u[n+23|0]<<24;S=Be(v+C|0,7)^O,M=Be(S+C|0,9)^T,k=Be(n+w|0,7)^k,B=Be(k+w|0,9)^E,R=Be(B+k|0,13)^n,_=Be(m+A|0,7)^_,N=Be(_+m|0,9)^g,E=Be(_+N|0,13)^A,A=Be(N+E|0,18)^m,g=Be(t+I|0,7)^P,n=R^Be(A+g|0,7),T=M^Be(n+A|0,9),P=Be(n+T|0,13)^g,m=Be(T+P|0,18)^A,x=Be(t+g|0,9)^x,I=Be(x+g|0,13)^I,t=Be(I+x|0,18)^t,A=Be(t+S|0,7)^E,E=Be(A+t|0,9)^B,O=Be(A+E|0,13)^S,t=Be(E+O|0,18)^t,S=Be(S+M|0,13)^v,v=Be(S+M|0,18)^C,I=Be(v+k|0,7)^I,g=Be(I+v|0,9)^N,k=Be(g+I|0,13)^k,C=Be(g+k|0,18)^v,w=Be(B+R|0,18)^w,v=Be(w+_|0,7)^S,x=Be(v+w|0,9)^x,_=Be(v+x|0,13)^_,w=Be(x+_|0,18)^w,S=D>>>0<18,D=D+2|0,S;);m=m+1797285236|0,s[e+60|0]=m,s[e+61|0]=m>>>8,s[e+62|0]=m>>>16,s[e+63|0]=m>>>24,m=P+p|0,s[e+56|0]=m,s[e+57|0]=m>>>8,s[e+58|0]=m>>>16,s[e+59|0]=m>>>24,m=T+h|0,s[e+52|0]=m,s[e+53|0]=m>>>8,s[e+54|0]=m>>>16,s[e+55|0]=m>>>24,n=n+y|0,s[e+48|0]=n,s[e+49|0]=n>>>8,s[e+50|0]=n>>>16,s[e+51|0]=n>>>24,n=A+b|0,s[e+44|0]=n,s[e+45|0]=n>>>8,s[e+46|0]=n>>>16,s[e+47|0]=n>>>24,t=t+2036477234|0,s[e+40|0]=t,s[e+41|0]=t>>>8,s[e+42|0]=t>>>16,s[e+43|0]=t>>>24,t=O+l|0,s[e+36|0]=t,s[e+37|0]=t>>>8,s[e+38|0]=t>>>16,s[e+39|0]=t>>>24,t=E+f|0,s[e+32|0]=t,s[e+33|0]=t>>>8,s[e+34|0]=t>>>16,s[e+35|0]=t>>>24,t=g+d|0,s[e+28|0]=t,s[e+29|0]=t>>>8,s[e+30|0]=t>>>16,s[e+31|0]=t>>>24,t=I+c|0,s[e+24|0]=t,s[e+25|0]=t>>>8,s[e+26|0]=t>>>16,s[e+27|0]=t>>>24,t=C+857760878|0,s[e+20|0]=t,s[e+21|0]=t>>>8,s[e+22|0]=t>>>16,s[e+23|0]=t>>>24,t=k+o|0,s[e+16|0]=t,s[e+17|0]=t>>>8,s[e+18|0]=t>>>16,s[e+19|0]=t>>>24,t=_+i|0,s[e+12|0]=t,s[e+13|0]=t>>>8,s[e+14|0]=t>>>16,s[e+15|0]=t>>>24,t=x+a|0,s[e+8|0]=t,s[e+9|0]=t>>>8,s[e+10|0]=t>>>16,s[e+11|0]=t>>>24,t=v+r|0,s[e+4|0]=t,s[e+5|0]=t>>>8,s[e+6|0]=t>>>16,s[e+7|0]=t>>>24,t=w+1634760805|0,s[0|e]=t,s[e+1|0]=t>>>8,s[e+2|0]=t>>>16,s[e+3|0]=t>>>24}function M(e,t,n,r){var a=0,i=0,o=0,s=0,d=0,l=0,b=0,p=0,h=0,y=0,m=0,g=0,A=0,w=0,x=0,_=0,k=0,I=0,S=0,E=0,C=0,T=0,O=0,P=0,M=0;if(m=c[e+36>>2],h=c[e+32>>2],y=c[e+28>>2],b=c[e+24>>2],p=c[e+20>>2],!r&n>>>0>=16|r)for(C=!u[e+80|0]<<24,A=c[e+4>>2],T=f(A,5),x=c[e+8>>2],S=f(x,5),k=c[e+12>>2],I=f(k,5),E=c[e+16>>2],_=f(E,5),w=c[e>>2];a=me(o=((u[t+3|0]|u[t+4|0]<<8|u[t+5|0]<<16|u[t+6|0]<<24)>>>2&67108863)+b|0,0,k,0),d=v,p=(s=me(b=(67108863&(u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24))+p|0,0,E,0))+a|0,a=v+d|0,a=s>>>0>p>>>0?a+1|0:a,d=me(y=((u[t+6|0]|u[t+7|0]<<8|u[t+8|0]<<16|u[t+9|0]<<24)>>>4&67108863)+y|0,0,x,0),a=v+a|0,a=d>>>0>(p=d+p|0)>>>0?a+1|0:a,d=me(h=((u[t+9|0]|u[t+10|0]<<8|u[t+11|0]<<16|u[t+12|0]<<24)>>>6|0)+h|0,0,A,0),a=v+a|0,a=d>>>0>(p=d+p|0)>>>0?a+1|0:a,d=me(m=m+C+((u[t+12|0]|u[t+13|0]<<8|u[t+14|0]<<16|u[t+15|0]<<24)>>>8)|0,0,w,0),a=v+a|0,O=p=d+p|0,p=d>>>0>p>>>0?a+1|0:a,a=me(o,0,x,0),d=v,s=me(b,0,k,0),i=v+d|0,i=(a=s+a|0)>>>0>>0?i+1|0:i,d=(s=me(y,0,A,0))+a|0,a=v+i|0,a=s>>>0>d>>>0?a+1|0:a,s=me(h,0,w,0),a=v+a|0,a=s>>>0>(d=s+d|0)>>>0?a+1|0:a,s=me(m,0,_,0),a=v+a|0,P=d=s+d|0,d=s>>>0>d>>>0?a+1|0:a,a=me(o,0,A,0),l=v,s=(i=me(b,0,x,0))+a|0,a=v+l|0,a=i>>>0>s>>>0?a+1|0:a,l=me(y,0,w,0),i=v+a|0,i=(s=l+s|0)>>>0>>0?i+1|0:i,l=me(h,0,_,0),a=v+i|0,a=(s=l+s|0)>>>0>>0?a+1|0:a,l=me(m,0,I,0),a=v+a|0,M=s=l+s|0,s=s>>>0>>0?a+1|0:a,a=me(o,0,w,0),i=v,l=(g=me(b,0,A,0))+a|0,a=v+i|0,a=l>>>0>>0?a+1|0:a,i=me(y,0,_,0),a=v+a|0,a=i>>>0>(l=i+l|0)>>>0?a+1|0:a,g=me(h,0,I,0),i=v+a|0,i=(l=g+l|0)>>>0>>0?i+1|0:i,g=me(m,0,S,0),a=v+i|0,a=(l=g+l|0)>>>0>>0?a+1|0:a,g=l,l=a,a=me(o,0,_,0),i=v,o=(b=me(b,0,w,0))+a|0,a=v+i|0,a=o>>>0>>0?a+1|0:a,b=me(y,0,I,0),a=v+a|0,a=(o=b+o|0)>>>0>>0?a+1|0:a,b=me(h,0,S,0),a=v+a|0,a=(o=b+o|0)>>>0>>0?a+1|0:a,b=me(m,0,T,0),i=v+a|0,i=(o=b+o|0)>>>0>>0?i+1|0:i,b=o,a=l,a=(o=(y=(67108863&i)<<6|o>>>26)+g|0)>>>0>>0?a+1|0:a,y=o,h=(67108863&a)<<6|o>>>26,a=s,a=(o=h+M|0)>>>0>>0?a+1|0:a,h=o,i=d,m=a=(o=(67108863&a)<<6|o>>>26)+P|0,d=(67108863&(i=a>>>0>>0?i+1|0:i))<<6|a>>>26,a=p,b=(67108863&y)+((a=f((67108863&((o=d+O|0)>>>0>>0?a+1|0:a))<<6|o>>>26,5)+(67108863&b)|0)>>>26|0)|0,y=67108863&h,h=67108863&m,m=67108863&o,p=67108863&a,t=t+16|0,!(r=r-(n>>>0<16)|0)&(n=n-16|0)>>>0>15|r;);c[e+20>>2]=p,c[e+36>>2]=m,c[e+32>>2]=h,c[e+28>>2]=y,c[e+24>>2]=b}function B(e,t,n,r){e|=0,t|=0;var a=0;return a=-1,(r|=0)-65>>>0<4294967232|(n|=0)>>>0>64||(n&&t?(m=a=m-128|0,!t|((r&=255)-65&255)>>>0<=191|((n&=255)-65&255)>>>0<=191?(Le(),i()):(Ce(e- -64|0,0,293),s[e+56|0]=121,s[e+57|0]=33,s[e+58|0]=126,s[e+59|0]=19,s[e+60|0]=25,s[e+61|0]=205,s[e+62|0]=224,s[e+63|0]=91,s[e+48|0]=107,s[e+49|0]=189,s[e+50|0]=65,s[e+51|0]=251,s[e+52|0]=171,s[e+53|0]=217,s[e+54|0]=131,s[e+55|0]=31,s[e+40|0]=31,s[e+41|0]=108,s[e+42|0]=62,s[e+43|0]=43,s[e+44|0]=140,s[e+45|0]=104,s[e+46|0]=5,s[e+47|0]=155,s[e+32|0]=209,s[e+33|0]=130,s[e+34|0]=230,s[e+35|0]=173,s[e+36|0]=127,s[e+37|0]=82,s[e+38|0]=14,s[e+39|0]=81,s[e+24|0]=241,s[e+25|0]=54,s[e+26|0]=29,s[e+27|0]=95,s[e+28|0]=58,s[e+29|0]=245,s[e+30|0]=79,s[e+31|0]=165,s[e+16|0]=43,s[e+17|0]=248,s[e+18|0]=148,s[e+19|0]=254,s[e+20|0]=114,s[e+21|0]=243,s[e+22|0]=110,s[e+23|0]=60,s[e+8|0]=59,s[e+9|0]=167,s[e+10|0]=202,s[e+11|0]=132,s[e+12|0]=133,s[e+13|0]=174,s[e+14|0]=103,s[e+15|0]=187,r=-222443256^(n<<8|r),s[0|e]=r,s[e+1|0]=r>>>8,s[e+2|0]=r>>>16,s[e+3|0]=r>>>24,r=n>>>24^1779033703,s[e+4|0]=r,s[e+5|0]=r>>>8,s[e+6|0]=r>>>16,s[e+7|0]=r>>>24,Ce(n+a|0,0,n<<24>>24>=0?128-n|0:0),n=Ee(a,t,n),Ee(e+96|0,n,128),t=128+(u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24)|0,s[e+352|0]=t,s[e+353|0]=t>>>8,s[e+354|0]=t>>>16,s[e+355|0]=t>>>24,$e(n,128),m=n+128|0)):(((t=255&r)-65&255)>>>0<=191&&(Le(),i()),Ce(e- -64|0,0,293),s[e+56|0]=121,s[e+57|0]=33,s[e+58|0]=126,s[e+59|0]=19,s[e+60|0]=25,s[e+61|0]=205,s[e+62|0]=224,s[e+63|0]=91,s[e+48|0]=107,s[e+49|0]=189,s[e+50|0]=65,s[e+51|0]=251,s[e+52|0]=171,s[e+53|0]=217,s[e+54|0]=131,s[e+55|0]=31,s[e+40|0]=31,s[e+41|0]=108,s[e+42|0]=62,s[e+43|0]=43,s[e+44|0]=140,s[e+45|0]=104,s[e+46|0]=5,s[e+47|0]=155,s[e+32|0]=209,s[e+33|0]=130,s[e+34|0]=230,s[e+35|0]=173,s[e+36|0]=127,s[e+37|0]=82,s[e+38|0]=14,s[e+39|0]=81,s[e+24|0]=241,s[e+25|0]=54,s[e+26|0]=29,s[e+27|0]=95,s[e+28|0]=58,s[e+29|0]=245,s[e+30|0]=79,s[e+31|0]=165,s[e+16|0]=43,s[e+17|0]=248,s[e+18|0]=148,s[e+19|0]=254,s[e+20|0]=114,s[e+21|0]=243,s[e+22|0]=110,s[e+23|0]=60,s[e+8|0]=59,s[e+9|0]=167,s[e+10|0]=202,s[e+11|0]=132,s[e+12|0]=133,s[e+13|0]=174,s[e+14|0]=103,s[e+15|0]=187,t^=-222443256,s[0|e]=t,s[e+1|0]=t>>>8,s[e+2|0]=t>>>16,s[e+3|0]=t>>>24,s[e+4|0]=103,s[e+5|0]=230,s[e+6|0]=9,s[e+7|0]=106),a=0),0|a}function N(e,t,n){var r,a,i,o,s,u,d,f,l,b,p,h=0,y=0,m=0,v=0,g=0,A=0,w=0,x=0,_=0,I=0,S=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,N=0;h=c[t+40>>2],y=c[t+4>>2],v=c[t+44>>2],g=c[t+8>>2],A=c[t+48>>2],w=c[t+12>>2],x=c[t+52>>2],_=c[t+16>>2],I=c[t+56>>2],S=c[t+20>>2],E=c[t+60>>2],C=c[t+24>>2],T=c[(m=t- -64|0)>>2],O=c[t+28>>2],P=c[t+68>>2],M=c[t+32>>2],B=c[t+72>>2],N=c[t>>2],c[e+36>>2]=c[t+36>>2]+c[t+76>>2],c[e+32>>2]=M+B,c[e+28>>2]=O+P,c[e+24>>2]=C+T,c[e+20>>2]=S+E,c[e+16>>2]=_+I,c[e+12>>2]=w+x,c[e+8>>2]=g+A,c[e+4>>2]=y+v,c[e>>2]=h+N,v=c[t+40>>2],h=c[t+4>>2],g=c[t+44>>2],A=c[t+8>>2],w=c[t+48>>2],x=c[t+12>>2],_=c[t+52>>2],I=c[t+16>>2],S=c[t+56>>2],E=c[t+20>>2],C=c[t+60>>2],T=c[t+24>>2],m=c[m>>2],y=c[t+28>>2],O=c[t+68>>2],P=c[t+32>>2],M=c[t+72>>2],B=c[t>>2],c[e+76>>2]=c[t+76>>2]-c[t+36>>2],c[e+72>>2]=M-P,c[e+68>>2]=O-y,c[(y=e- -64|0)>>2]=m-T,c[e+60>>2]=C-E,c[e+56>>2]=S-I,c[e+52>>2]=_-x,c[e+48>>2]=w-A,c[e+44>>2]=g-h,c[(h=e+40|0)>>2]=v-B,k(e+80|0,e,n+40|0),k(h,h,n),k(e+120|0,n+120|0,t+120|0),k(e,t+80|0,n+80|0),N=c[e+4>>2],i=c[e+8>>2],o=c[e+12>>2],s=c[e+16>>2],u=c[e+20>>2],d=c[e+24>>2],f=c[e+28>>2],l=c[e+32>>2],b=c[e+36>>2],t=c[h>>2],n=c[e+80>>2],v=c[e+44>>2],g=c[e+84>>2],A=c[e+48>>2],w=c[e+88>>2],x=c[e+52>>2],_=c[e+92>>2],I=c[e+56>>2],S=c[e+96>>2],E=c[e+60>>2],C=c[e+100>>2],m=c[y>>2],T=c[e+104>>2],O=c[e+68>>2],P=c[e+108>>2],M=c[e+72>>2],B=c[e+112>>2],p=c[e>>2],r=c[e+76>>2],a=c[e+116>>2],c[e+76>>2]=r+a,c[e+72>>2]=M+B,c[e+68>>2]=O+P,c[y>>2]=m+T,c[e+60>>2]=E+C,c[e+56>>2]=I+S,c[e+52>>2]=x+_,c[e+48>>2]=A+w,c[e+44>>2]=v+g,c[h>>2]=t+n,c[e+36>>2]=a-r,c[e+32>>2]=B-M,c[e+28>>2]=P-O,c[e+24>>2]=T-m,c[e+20>>2]=C-E,c[e+16>>2]=S-I,c[e+12>>2]=_-x,c[e+8>>2]=w-A,c[e+4>>2]=g-v,c[e>>2]=n-t,t=c[e+156>>2],n=b<<1,c[e+156>>2]=t+n,h=c[e+152>>2],y=l<<1,c[e+152>>2]=h+y,v=c[e+148>>2],g=f<<1,c[e+148>>2]=v+g,A=c[e+144>>2],w=d<<1,c[e+144>>2]=A+w,x=c[e+140>>2],_=u<<1,c[e+140>>2]=x+_,I=c[e+136>>2],S=s<<1,c[e+136>>2]=I+S,E=c[e+132>>2],C=o<<1,c[e+132>>2]=E+C,m=c[e+128>>2],T=i<<1,c[e+128>>2]=m+T,O=c[e+124>>2],P=N<<1,c[e+124>>2]=O+P,M=c[e+120>>2],B=p<<1,c[e+120>>2]=M+B,c[e+112>>2]=y-h,c[e+108>>2]=g-v,c[e+104>>2]=w-A,c[e+100>>2]=_-x,c[e+96>>2]=S-I,c[e+92>>2]=C-E,c[e+88>>2]=T-m,c[e+84>>2]=P-O,c[e+80>>2]=B-M,c[e+116>>2]=n-t}function R(e,t,n){var r,a,i,o,s,u,d,f,l,b,p,h=0,y=0,m=0,v=0,g=0,A=0,w=0,x=0,_=0,I=0,S=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,N=0;h=c[t+40>>2],y=c[t+4>>2],v=c[t+44>>2],g=c[t+8>>2],A=c[t+48>>2],w=c[t+12>>2],x=c[t+52>>2],_=c[t+16>>2],I=c[t+56>>2],S=c[t+20>>2],E=c[t+60>>2],C=c[t+24>>2],T=c[(m=t- -64|0)>>2],O=c[t+28>>2],P=c[t+68>>2],M=c[t+32>>2],B=c[t+72>>2],N=c[t>>2],c[e+36>>2]=c[t+36>>2]+c[t+76>>2],c[e+32>>2]=M+B,c[e+28>>2]=O+P,c[e+24>>2]=C+T,c[e+20>>2]=S+E,c[e+16>>2]=_+I,c[e+12>>2]=w+x,c[e+8>>2]=g+A,c[e+4>>2]=y+v,c[e>>2]=h+N,v=c[t+40>>2],h=c[t+4>>2],g=c[t+44>>2],A=c[t+8>>2],w=c[t+48>>2],x=c[t+12>>2],_=c[t+52>>2],I=c[t+16>>2],S=c[t+56>>2],E=c[t+20>>2],C=c[t+60>>2],T=c[t+24>>2],m=c[m>>2],y=c[t+28>>2],O=c[t+68>>2],P=c[t+32>>2],M=c[t+72>>2],B=c[t>>2],c[e+76>>2]=c[t+76>>2]-c[t+36>>2],c[e+72>>2]=M-P,c[e+68>>2]=O-y,c[(y=e- -64|0)>>2]=m-T,c[e+60>>2]=C-E,c[e+56>>2]=S-I,c[e+52>>2]=_-x,c[e+48>>2]=w-A,c[e+44>>2]=g-h,c[(h=e+40|0)>>2]=v-B,k(e+80|0,e,n),k(h,h,n+40|0),k(e+120|0,n+120|0,t+120|0),k(e,t+80|0,n+80|0),N=c[e+4>>2],i=c[e+8>>2],o=c[e+12>>2],s=c[e+16>>2],u=c[e+20>>2],d=c[e+24>>2],f=c[e+28>>2],l=c[e+32>>2],b=c[e+36>>2],t=c[h>>2],n=c[e+80>>2],v=c[e+44>>2],g=c[e+84>>2],A=c[e+48>>2],w=c[e+88>>2],x=c[e+52>>2],_=c[e+92>>2],I=c[e+56>>2],S=c[e+96>>2],E=c[e+60>>2],C=c[e+100>>2],m=c[y>>2],T=c[e+104>>2],O=c[e+68>>2],P=c[e+108>>2],M=c[e+72>>2],B=c[e+112>>2],p=c[e>>2],r=c[e+76>>2],a=c[e+116>>2],c[e+76>>2]=r+a,c[e+72>>2]=M+B,c[e+68>>2]=O+P,c[y>>2]=m+T,c[e+60>>2]=E+C,c[e+56>>2]=I+S,c[e+52>>2]=x+_,c[e+48>>2]=A+w,c[e+44>>2]=v+g,c[h>>2]=t+n,c[e+36>>2]=a-r,c[e+32>>2]=B-M,c[e+28>>2]=P-O,c[e+24>>2]=T-m,c[e+20>>2]=C-E,c[e+16>>2]=S-I,c[e+12>>2]=_-x,c[e+8>>2]=w-A,c[e+4>>2]=g-v,c[e>>2]=n-t,t=b<<1,n=c[e+156>>2],c[e+156>>2]=t-n,h=l<<1,y=c[e+152>>2],c[e+152>>2]=h-y,v=f<<1,g=c[e+148>>2],c[e+148>>2]=v-g,A=d<<1,w=c[e+144>>2],c[e+144>>2]=A-w,x=u<<1,_=c[e+140>>2],c[e+140>>2]=x-_,I=s<<1,S=c[e+136>>2],c[e+136>>2]=I-S,E=o<<1,C=c[e+132>>2],c[e+132>>2]=E-C,m=i<<1,T=c[e+128>>2],c[e+128>>2]=m-T,O=N<<1,P=c[e+124>>2],c[e+124>>2]=O-P,M=p<<1,B=c[e+120>>2],c[e+120>>2]=M-B,c[e+112>>2]=h+y,c[e+108>>2]=v+g,c[e+104>>2]=A+w,c[e+100>>2]=x+_,c[e+96>>2]=I+S,c[e+92>>2]=E+C,c[e+88>>2]=m+T,c[e+84>>2]=O+P,c[e+80>>2]=M+B,c[e+116>>2]=t+n}function D(e,t,n){var r,a,i,o,s,u,d,f,l,b,p,h=0,y=0,m=0,v=0,g=0,A=0,w=0,x=0,_=0,I=0,S=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,N=0;h=c[t+40>>2],y=c[t+4>>2],v=c[t+44>>2],g=c[t+8>>2],A=c[t+48>>2],w=c[t+12>>2],x=c[t+52>>2],_=c[t+16>>2],I=c[t+56>>2],S=c[t+20>>2],E=c[t+60>>2],C=c[t+24>>2],T=c[(m=t- -64|0)>>2],O=c[t+28>>2],P=c[t+68>>2],M=c[t+32>>2],B=c[t+72>>2],N=c[t>>2],c[e+36>>2]=c[t+36>>2]+c[t+76>>2],c[e+32>>2]=M+B,c[e+28>>2]=O+P,c[e+24>>2]=C+T,c[e+20>>2]=S+E,c[e+16>>2]=_+I,c[e+12>>2]=w+x,c[e+8>>2]=g+A,c[e+4>>2]=y+v,c[e>>2]=h+N,v=c[t+40>>2],h=c[t+4>>2],g=c[t+44>>2],A=c[t+8>>2],w=c[t+48>>2],x=c[t+12>>2],_=c[t+52>>2],I=c[t+16>>2],S=c[t+56>>2],E=c[t+20>>2],C=c[t+60>>2],T=c[t+24>>2],m=c[m>>2],y=c[t+28>>2],O=c[t+68>>2],P=c[t+32>>2],M=c[t+72>>2],B=c[t>>2],c[e+76>>2]=c[t+76>>2]-c[t+36>>2],c[e+72>>2]=M-P,c[e+68>>2]=O-y,c[(y=e- -64|0)>>2]=m-T,c[e+60>>2]=C-E,c[e+56>>2]=S-I,c[e+52>>2]=_-x,c[e+48>>2]=w-A,c[e+44>>2]=g-h,c[(h=e+40|0)>>2]=v-B,k(e+80|0,e,n),k(h,h,n+40|0),k(e+120|0,n+80|0,t+120|0),N=c[t+80>>2],i=c[t+84>>2],o=c[t+88>>2],s=c[t+92>>2],u=c[t+96>>2],d=c[t+100>>2],f=c[t+104>>2],l=c[t+108>>2],b=c[t+112>>2],p=c[t+116>>2],t=c[h>>2],n=c[e+80>>2],v=c[e+44>>2],g=c[e+84>>2],A=c[e+48>>2],w=c[e+88>>2],x=c[e+52>>2],_=c[e+92>>2],I=c[e+56>>2],S=c[e+96>>2],E=c[e+60>>2],C=c[e+100>>2],m=c[y>>2],T=c[e+104>>2],O=c[e+68>>2],P=c[e+108>>2],M=c[e+72>>2],B=c[e+112>>2],r=c[e+76>>2],a=c[e+116>>2],c[e+76>>2]=r+a,c[e+72>>2]=M+B,c[e+68>>2]=O+P,c[y>>2]=m+T,c[e+60>>2]=E+C,c[e+56>>2]=I+S,c[e+52>>2]=x+_,c[e+48>>2]=A+w,c[e+44>>2]=v+g,c[h>>2]=t+n,c[e+36>>2]=a-r,c[e+32>>2]=B-M,c[e+28>>2]=P-O,c[e+24>>2]=T-m,c[e+20>>2]=C-E,c[e+16>>2]=S-I,c[e+12>>2]=_-x,c[e+8>>2]=w-A,c[e+4>>2]=g-v,c[e>>2]=n-t,t=p<<1,n=c[e+156>>2],c[e+156>>2]=t-n,h=b<<1,y=c[e+152>>2],c[e+152>>2]=h-y,v=l<<1,g=c[e+148>>2],c[e+148>>2]=v-g,A=f<<1,w=c[e+144>>2],c[e+144>>2]=A-w,x=d<<1,_=c[e+140>>2],c[e+140>>2]=x-_,I=u<<1,S=c[e+136>>2],c[e+136>>2]=I-S,E=s<<1,C=c[e+132>>2],c[e+132>>2]=E-C,m=o<<1,T=c[e+128>>2],c[e+128>>2]=m-T,O=i<<1,P=c[e+124>>2],c[e+124>>2]=O-P,M=N<<1,B=c[e+120>>2],c[e+120>>2]=M-B,c[e+112>>2]=h+y,c[e+108>>2]=v+g,c[e+104>>2]=A+w,c[e+100>>2]=x+_,c[e+96>>2]=I+S,c[e+92>>2]=E+C,c[e+88>>2]=m+T,c[e+84>>2]=O+P,c[e+80>>2]=M+B,c[e+116>>2]=t+n}function j(e,t){var n,r,a,i,o,s,d,f,l,b,p,h,y,m=0,g=0,A=0,w=0,x=0,_=0,k=0,I=0,S=0,E=0,C=0,T=0,O=0,P=0;h=u[t+31|0],n=u[t+30|0],r=u[t+29|0],a=u[t+6|0],i=u[t+5|0],o=u[t+4|0],s=u[t+9|0],d=u[t+8|0],f=u[t+7|0],E=u[t+12|0],C=u[t+11|0],l=u[t+10|0],b=u[t+15|0],T=u[t+14|0],p=u[t+13|0],k=u[t+28|0],S=u[t+27|0],I=u[t+26|0],_=u[t+25|0],w=u[t+24|0],A=u[t+23|0],y=u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24,x=(m=u[t+21|0])<<15,m=g=m>>>17|0,P=x,g=(x=u[t+20|0])>>>25|0,x=P|x<<7,O=m|g,m=(g=u[t+22|0])>>>9|0,x|=g<<23,m|=O,g=u[t+16|0]|u[t+17|0]<<8|u[t+18|0]<<16|u[t+19|0]<<24,t=0,P=g,g=(33554431&(t=(O=g+16777216|0)>>>0<16777216?1:t))<<7|O>>>25,t=(t>>>25|0)+m|0,g=(m=x=g+x|0)>>>0>>0?t+1|0:t,t=(x=m+33554432|0)>>>0<33554432?g+1|0:g,c[e+24>>2]=m-(-67108864&x),g=(m=A>>>27|0)|w>>>19|_>>>11,m=A=(w=_<<21|(A=w<<13|A<<5))+(m=(67108863&(m=t))<<6|x>>>26)|0,t=g,g=(A=w+16777216|0)>>>0<16777216?t+1|0:t,c[e+28>>2]=m-(1040187392&A),m=(m=S>>>20|I>>>28|k>>>12)+(g=(t=g)>>>25|0)|0,t=(g=A=(t=(33554431&t)<<7|A>>>25)+(S<<12|I<<4|k<<20)|0)>>>0>>0?m+1|0:m,A=(k=g+33554432|0)>>>0<33554432?t+1|0:t,c[e+32>>2]=g-(-67108864&k),m=(t=E>>>13|0)|(g=C>>>21|l>>>29),t=(m=(S=16777216+(E=C<<11|l<<3|E<<19)|0)>>>0<16777216?m+1|0:m)>>>25|0,m=(g=w=T<<10|p<<2|b<<18)+(w=(33554431&m)<<7|S>>>25)|0,g=t+(_=T>>>22|p>>>30|b>>>14)|0,t=m>>>0>>0?g+1|0:g,w=t=(67108863&(t=(g=m+33554432|0)>>>0<33554432?t+1|0:t))<<6|g>>>26,t=t+(I=P-(-33554432&O)|0)|0,c[e+20>>2]=t,c[e+16>>2]=m-(-67108864&g),g=i>>>18|o>>>26|a>>>10,m=(g=(I=16777216+(C=i<<14|o<<6|a<<22)|0)>>>0<16777216?g+1|0:g)>>>25|0,g=(t=w=d<<13|f<<5|s<<21)+(w=(33554431&g)<<7|I>>>25)|0,t=m+(_=d>>>19|f>>>27|s>>>11)|0,t=g>>>0>>0?t+1|0:t,m=(_=g+33554432|0)>>>0<33554432?t+1|0:t,c[e+8>>2]=g-(-67108864&_),k=(A=(67108863&A)<<6|k>>>26)+(T=h<<18&33292288|n<<10|r<<2)|0,t=g=n>>>22|r>>>30,g=(A=T+16777216|0)>>>0<16777216?t+1|0:t,c[e+36>>2]=k-(33554432&A),m=E+((67108863&m)<<6|_>>>26)|0,c[e+12>>2]=m-(234881024&S),w=C-(2113929216&I)|0,m=me((33554431&(t=g))<<7|A>>>25,g=t>>>25|0,19,0),t=v,m=m>>>0>(g=m+y|0)>>>0?t+1|0:t,A=m=(67108863&(m=(t=g+33554432|0)>>>0<33554432?m+1|0:m))<<6|t>>>26,m=m+w|0,c[e+4>>2]=m,c[e>>2]=g-(-67108864&t)}function U(e,t){var n,r,a,i=0,o=0,d=0,f=0,l=0,b=0,p=0,h=0,y=0,v=0,g=0,A=0;for(m=n=m-480|0;o=(d=n+288|0)+(i<<1)|0,h=u[t+i|0],s[o+1|0]=h>>>4,s[0|o]=15&h,d=d+((o=1|i)<<1)|0,o=u[t+o|0],s[d+1|0]=o>>>4,s[0|d]=15&o,32!=(0|(i=i+2|0)););for(t=0;i=8+(d=(i=t)+u[0|(t=(n+288|0)+f|0)]|0)|0,s[0|t]=d-(240&i),i=8+(d=u[t+1|0]+(i<<24>>24>>4)|0)|0,s[t+1|0]=d-(240&i),i=8+(d=u[t+2|0]+(i<<24>>24>>4)|0)|0,s[t+2|0]=d-(240&i),t=i<<24>>24>>4,63!=(0|(f=f+3|0)););for(s[n+351|0]=u[n+351|0]+t,c[e+32>>2]=0,c[e+36>>2]=0,c[e+24>>2]=0,c[e+28>>2]=0,c[e+16>>2]=0,c[e+20>>2]=0,c[e+8>>2]=0,c[e+12>>2]=0,c[e>>2]=0,c[e+4>>2]=0,c[e+44>>2]=0,c[e+48>>2]=0,c[(h=e+40|0)>>2]=1,c[e+52>>2]=0,c[e+56>>2]=0,c[e+60>>2]=0,c[e+64>>2]=0,c[e+68>>2]=0,c[e+72>>2]=0,c[e+76>>2]=0,c[e+80>>2]=1,Ce(e+84|0,0,76),r=e+120|0,a=e+80|0,t=n+208|0,d=n+168|0,f=n+248|0,i=1;V(l=n+8|0,i>>>1|0,s[(n+288|0)+i|0]),D(o=n+128|0,e,l),k(e,o,f),k(h,d,t),k(a,t,f),k(r,o,d),o=i>>>0<62,i=i+2|0,o;);for(i=c[e+8>>2],o=c[e+12>>2],l=c[e+16>>2],b=c[e+20>>2],y=c[e+24>>2],v=c[e+28>>2],p=c[e>>2],g=c[e+4>>2],A=c[e+36>>2],c[n+392>>2]=c[e+32>>2],c[n+396>>2]=A,c[n+384>>2]=y,c[n+388>>2]=v,c[n+376>>2]=l,c[n+380>>2]=b,c[n+368>>2]=i,c[n+372>>2]=o,c[n+360>>2]=p,c[n+364>>2]=g,i=c[e+40>>2],o=c[e+44>>2],l=c[e+48>>2],b=c[e+52>>2],y=c[e+56>>2],v=c[e+60>>2],g=c[(p=e- -64|0)>>2],p=c[p+4>>2],A=c[e+76>>2],c[n+432>>2]=c[e+72>>2],c[n+436>>2]=A,c[n+424>>2]=g,c[n+428>>2]=p,c[n+416>>2]=y,c[n+420>>2]=v,c[n+408>>2]=l,c[n+412>>2]=b,c[n+400>>2]=i,c[n+404>>2]=o,i=c[e+80>>2],o=c[e+84>>2],l=c[e+88>>2],b=c[e+92>>2],y=c[e+96>>2],v=c[e+100>>2],p=c[e+104>>2],g=c[e+108>>2],A=c[e+116>>2],c[n+472>>2]=c[e+112>>2],c[n+476>>2]=A,c[n+464>>2]=p,c[n+468>>2]=g,c[n+456>>2]=y,c[n+460>>2]=v,c[n+448>>2]=l,c[n+452>>2]=b,c[n+440>>2]=i,c[n+444>>2]=o,I(i=n+128|0,o=n+360|0),k(o,i,f),k(l=n+400|0,d,t),k(b=n+440|0,t,f),I(i,o),k(o,i,f),k(l,d,t),k(b,t,f),I(i,o),k(o,i,f),k(l,d,t),k(b,t,f),I(i,o),k(e,i,f),k(h,d,t),k(a,t,f),k(r,i,d),i=0;V(l=n+8|0,i>>>1|0,s[(n+288|0)+i|0]),D(o=n+128|0,e,l),k(e,o,f),k(h,d,t),k(a,t,f),k(r,o,d),o=i>>>0<62,i=i+2|0,o;);m=n+480|0}function L(e,t,n,r){var a,i=0,o=0,d=0,f=0,l=0,b=0,p=0,h=0,y=0,v=0,g=0,A=0;if(m=a=m-704|0,n|r)if(i=(r<<3|n>>>29)+(o=d=c[e+76>>2])|0,l=(b=c[e+72>>2])+(f=n<<3)|0,c[e+72>>2]=l,i=f>>>0>l>>>0?i+1|0:i,c[e+76>>2]=i,d=c[4+(f=e- -64|0)>>2],d=(p=i=(0|i)==(0|o)&l>>>0>>0|i>>>0>>0)>>>0>(i=i+c[f>>2]|0)>>>0?d+1|0:d,l=(p=r>>>29|0)+i|0,i=d,c[f>>2]=l,c[f+4>>2]=l>>>0

>>0?i+1|0:i,(0|(d=p=0-((i=0)+((f=127&((7&o)<<29|b>>>3))>>>0>128)|0)|0))==(0|r)&n>>>0>=(l=128-f|0)>>>0|r>>>0>d>>>0){if(o=0,d=0,!i&(127^f)>>>0>=3|i)for(A=252&l,b=e+80|0;s[(i=o+f|0)+b|0]=u[t+o|0],s[b+(f+(i=1|o)|0)|0]=u[t+i|0],s[b+(f+(i=2|o)|0)|0]=u[t+i|0],s[b+(f+(i=3|o)|0)|0]=u[t+i|0],i=d,d=(o=o+4|0)>>>0<4?i+1|0:i,i=y,y=i=(v=v+4|0)>>>0<4?i+1|0:i,(0|v)!=(0|A)|(0|g)!=(0|i););if(b=i=0,i|(y=3&l))for(;s[80+(e+(i=o+f|0)|0)|0]=u[t+o|0],i=d,d=(o=o+1|0)?i:i+1|0,i=g,g=i=(h=h+1|0)?i:i+1|0,(0|y)!=(0|h)|(0|b)!=(0|i););if(w(e,e+80|0,a,o=a+640|0),t=t+l|0,!(r=r-((n>>>0>>0)+p|0)|0)&(n=n-l|0)>>>0>127|r)for(;w(e,t,a,o),t=t+128|0,!(r=r-(n>>>0<128)|0)&(n=n-128|0)>>>0>127|r;);if(n|r){if(v=3&n,l=0,h=0,g=0,o=0,d=0,!r&n>>>0>=4|r)for(f=-4&n,b=r,y=e+80|0,n=0,r=0;s[o+y|0]=u[t+o|0],s[(i=1|o)+y|0]=u[t+i|0],s[(i=2|o)+y|0]=u[t+i|0],s[(i=3|o)+y|0]=u[t+i|0],i=d,d=(o=o+4|0)>>>0<4?i+1|0:i,i=r,r=i=(n=n+4|0)>>>0<4?i+1|0:i,(0|n)!=(0|f)|(0|b)!=(0|i););if(l|v)for(;s[80+(e+o|0)|0]=u[t+o|0],d=(o=o+1|0)?d:d+1|0,i=g,g=i=(h=h+1|0)?i:i+1|0,(0|h)!=(0|v)|(0|l)!=(0|i););}$e(a,704)}else{if(o=0,d=0,!r&n>>>0>=4|r)for(l=-4&n,b=r,r=e+80|0;s[r+(i=o+f|0)|0]=u[t+o|0],s[r+(p=f+(i=1|o)|0)|0]=u[t+i|0],s[r+(p=f+(i=2|o)|0)|0]=u[t+i|0],s[r+(p=f+(i=3|o)|0)|0]=u[t+i|0],i=d,d=(o=o+4|0)>>>0<4?i+1|0:i,i=y,y=i=(v=v+4|0)>>>0<4?i+1|0:i,(0|l)!=(0|v)|(0|b)!=(0|i););if((n&=3)|(r=0))for(;s[80+(e+(i=o+f|0)|0)|0]=u[t+o|0],d=(o=o+1|0)?d:d+1|0,i=g,g=i=(h=h+1|0)?i:i+1|0,(0|n)!=(0|h)|(0|r)!=(0|i););}return m=a+704|0,0}function F(e,t,n){var r=0,a=0,i=0,o=0,c=0,d=0,f=0,l=0,b=0,p=0,h=0,y=0,m=0,v=0,g=0,A=0,w=0,x=0,_=0,k=0;for(a=2036477234,o=857760878,r=1634760805,d=1797285236,i=u[t+12|0]|u[t+13|0]<<8|u[t+14|0]<<16|u[t+15|0]<<24,b=u[t+8|0]|u[t+9|0]<<8|u[t+10|0]<<16|u[t+11|0]<<24,c=u[t+4|0]|u[t+5|0]<<8|u[t+6|0]<<16|u[t+7|0]<<24,p=u[n+28|0]|u[n+29|0]<<8|u[n+30|0]<<16|u[n+31|0]<<24,f=u[n+24|0]|u[n+25|0]<<8|u[n+26|0]<<16|u[n+27|0]<<24,w=u[n+20|0]|u[n+21|0]<<8|u[n+22|0]<<16|u[n+23|0]<<24,h=u[n+16|0]|u[n+17|0]<<8|u[n+18|0]<<16|u[n+19|0]<<24,y=u[n+12|0]|u[n+13|0]<<8|u[n+14|0]<<16|u[n+15|0]<<24,m=u[n+8|0]|u[n+9|0]<<8|u[n+10|0]<<16|u[n+11|0]<<24,v=u[n+4|0]|u[n+5|0]<<8|u[n+6|0]<<16|u[n+7|0]<<24,t=u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24,n=u[0|n]|u[n+1|0]<<8|u[n+2|0]<<16|u[n+3|0]<<24;l=n,n=Be((g=t)^(t=n+r|0),16),l=h=Be(l^(r=n+h|0),12),x=Be((g=t+h|0)^n,8),t=Be(l^(h=x+r|0),7),r=y,y=Be((n=d+y|0)^i,16),r=Be(r^(p=y+p|0),12),i=m,d=Be((a=a+m|0)^b,16),i=Be(i^(m=d+f|0),12),f=Be((a=i+a|0)^d,8),n=Be(f^(d=t+(A=n+r|0)|0),16),b=Be((o=o+v|0)^c,16),v=Be((c=b+w|0)^v,12),l=t,t=Be((o=o+v|0)^b,8),l=Be(l^(c=n+(_=t+c|0)|0),12),b=Be(n^(d=l+d|0),8),n=Be((w=b+c|0)^l,7),l=a,a=r,A=Be(y^A,8),a=Be(a^(r=A+p|0),7),y=Be((c=l+a|0)^t,16),p=Be((t=y+h|0)^a,12),c=Be(y^(a=p+c|0),8),y=Be((h=t+c|0)^p,7),t=Be((t=i)^(i=f+m|0),7),m=Be((o=t+o|0)^x,16),f=Be(t^(r=m+r|0),12),t=Be(m^(o=f+o|0),8),m=Be((p=r+t|0)^f,7),l=i,r=Be(v^_,7),f=Be((i=r+g|0)^A,16),g=Be(r^(v=l+f|0),12),i=Be(f^(r=g+i|0),8),v=Be((f=v+i|0)^g,7),10!=(0|(k=k+1|0)););s[0|e]=r,s[e+1|0]=r>>>8,s[e+2|0]=r>>>16,s[e+3|0]=r>>>24,s[e+28|0]=i,s[e+29|0]=i>>>8,s[e+30|0]=i>>>16,s[e+31|0]=i>>>24,s[e+24|0]=b,s[e+25|0]=b>>>8,s[e+26|0]=b>>>16,s[e+27|0]=b>>>24,s[e+20|0]=c,s[e+21|0]=c>>>8,s[e+22|0]=c>>>16,s[e+23|0]=c>>>24,s[e+16|0]=t,s[e+17|0]=t>>>8,s[e+18|0]=t>>>16,s[e+19|0]=t>>>24,s[e+12|0]=d,s[e+13|0]=d>>>8,s[e+14|0]=d>>>16,s[e+15|0]=d>>>24,s[e+8|0]=a,s[e+9|0]=a>>>8,s[e+10|0]=a>>>16,s[e+11|0]=a>>>24,s[e+4|0]=o,s[e+5|0]=o>>>8,s[e+6|0]=o>>>16,s[e+7|0]=o>>>24}function Z(e,t,n){var r=0,a=0,i=0,o=0,c=0,d=0,f=0,l=0,b=0,p=0,h=0,y=0,m=0,v=0,g=0,A=0,w=0,x=0,_=0,k=0;for(r=1797285236,f=2036477234,l=857760878,a=1634760805,i=u[t+12|0]|u[t+13|0]<<8|u[t+14|0]<<16|u[t+15|0]<<24,c=u[t+8|0]|u[t+9|0]<<8|u[t+10|0]<<16|u[t+11|0]<<24,o=u[t+4|0]|u[t+5|0]<<8|u[t+6|0]<<16|u[t+7|0]<<24,g=u[n+28|0]|u[n+29|0]<<8|u[n+30|0]<<16|u[n+31|0]<<24,v=u[n+24|0]|u[n+25|0]<<8|u[n+26|0]<<16|u[n+27|0]<<24,A=20,y=u[n+20|0]|u[n+21|0]<<8|u[n+22|0]<<16|u[n+23|0]<<24,m=u[n+16|0]|u[n+17|0]<<8|u[n+18|0]<<16|u[n+19|0]<<24,b=u[n+12|0]|u[n+13|0]<<8|u[n+14|0]<<16|u[n+15|0]<<24,p=u[n+8|0]|u[n+9|0]<<8|u[n+10|0]<<16|u[n+11|0]<<24,h=u[n+4|0]|u[n+5|0]<<8|u[n+6|0]<<16|u[n+7|0]<<24,t=u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24,n=u[0|n]|u[n+1|0]<<8|u[n+2|0]<<16|u[n+3|0]<<24;d=Be(n+l|0,7)^i,w=Be(d+l|0,9)^v,b=Be(a+y|0,7)^b,x=Be(b+a|0,9)^c,_=Be(x+b|0,13)^y,p=Be(r+m|0,7)^p,o=Be(p+r|0,9)^o,c=Be(o+p|0,13)^m,r=Be(o+c|0,18)^r,i=Be(t+f|0,7)^g,y=_^Be(r+i|0,7),v=w^Be(y+r|0,9),g=Be(y+v|0,13)^i,r=Be(v+g|0,18)^r,h=Be(i+f|0,9)^h,k=Be(h+i|0,13)^t,t=Be(k+h|0,18)^f,m=Be(t+d|0,7)^c,c=Be(m+t|0,9)^x,i=Be(c+m|0,13)^d,f=Be(i+c|0,18)^t,d=Be(d+w|0,13)^n,n=Be(d+w|0,18)^l,t=Be(n+b|0,7)^k,o=Be(t+n|0,9)^o,b=Be(t+o|0,13)^b,l=Be(o+b|0,18)^n,a=Be(x+_|0,18)^a,n=Be(a+p|0,7)^d,h=Be(n+a|0,9)^h,p=Be(n+h|0,13)^p,a=Be(h+p|0,18)^a,d=A>>>0>2,A=A-2|0,d;);return s[0|e]=a,s[e+1|0]=a>>>8,s[e+2|0]=a>>>16,s[e+3|0]=a>>>24,s[e+28|0]=i,s[e+29|0]=i>>>8,s[e+30|0]=i>>>16,s[e+31|0]=i>>>24,s[e+24|0]=c,s[e+25|0]=c>>>8,s[e+26|0]=c>>>16,s[e+27|0]=c>>>24,s[e+20|0]=o,s[e+21|0]=o>>>8,s[e+22|0]=o>>>16,s[e+23|0]=o>>>24,s[e+16|0]=t,s[e+17|0]=t>>>8,s[e+18|0]=t>>>16,s[e+19|0]=t>>>24,s[e+12|0]=r,s[e+13|0]=r>>>8,s[e+14|0]=r>>>16,s[e+15|0]=r>>>24,s[e+8|0]=f,s[e+9|0]=f>>>8,s[e+10|0]=f>>>16,s[e+11|0]=f>>>24,s[e+4|0]=l,s[e+5|0]=l>>>8,s[e+6|0]=l>>>16,s[e+7|0]=l>>>24,0}function H(e,t,n,r,a,o,s){var u=0,d=0,f=0,l=0,b=0,p=0,h=0;if(t-65>>>0<4294967232|s>>>0>64)e=-1;else{p=u=m,m=u=u-512&-64;e:{t:if(!(!(!(r|a)|n)|!e|((d=255&t)-65&255)>>>0<=191|!(!(t=255&s)||o)|t>>>0>=65)){if(t){if(!o)break t;Ce(u- -64|0,0,293),c[u+56>>2]=327033209,c[u+60>>2]=1541459225,c[u+48>>2]=-79577749,c[u+52>>2]=528734635,c[u+40>>2]=725511199,c[u+44>>2]=-1694144372,c[u+32>>2]=-1377402159,c[u+36>>2]=1359893119,c[u+24>>2]=1595750129,c[u+28>>2]=-1521486534,c[u+16>>2]=-23791573,c[u+20>>2]=1013904242,c[u+8>>2]=-2067093701,c[u+12>>2]=-1150833019,c[u>>2]=-222443256^(t<<8|d),c[u+4>>2]=t>>>24^1779033703,Ce((s=u+384|0)+t|0,0,128-t|0),Ee(s,o,t),Ee(u+96|0,s,128),c[u+352>>2]=128,$e(s,128),t=128}else Ce(u- -64|0,0,293),c[u+56>>2]=327033209,c[u+60>>2]=1541459225,c[u+48>>2]=-79577749,c[u+52>>2]=528734635,c[u+40>>2]=725511199,c[u+44>>2]=-1694144372,c[u+32>>2]=-1377402159,c[u+36>>2]=1359893119,c[u+24>>2]=1595750129,c[u+28>>2]=-1521486534,c[u+16>>2]=-23791573,c[u+20>>2]=1013904242,c[u+8>>2]=-2067093701,c[u+12>>2]=-1150833019,c[u>>2]=-222443256^d,c[u+4>>2]=1779033703,t=0;n:if(r|a)for(h=u+224|0,f=u+96|0;;){if(s=t+f|0,!a&r>>>0<=(o=256-t|0)>>>0){Ee(s,n,r),c[u+352>>2]=r+c[u+352>>2];break n}if(Ee(s,n,o),c[u+352>>2]=o+c[u+352>>2],l=t=c[u+68>>2],t=(b=(s=c[u+64>>2])+128|0)>>>0<128?t+1|0:t,c[u+64>>2]=b,c[u+68>>2]=t,t=c[u+76>>2],t=(l=s=-1==(0|l)&s>>>0>4294967167)>>>0>(s=s+c[u+72>>2]|0)>>>0?t+1|0:t,c[u+72>>2]=s,c[u+76>>2]=t,g(u,f),Ee(f,h,128),t=c[u+352>>2]-128|0,c[u+352>>2]=t,n=n+o|0,!((a=a-(r>>>0>>0)|0)|(r=r-o|0)))break}T(u,e,d),m=p;break e}Le(),i()}e=0}return e}function z(e,t,n,r){var a=0,i=0,o=0,d=0,f=0,l=0,b=0,p=0,h=0,y=0,m=0,v=0;e:{if((o=c[e+56>>2])|(a=c[e+60>>2])){if(h=i=16-o|0,f=(i=(0|(d=0-((o>>>0>16)+a|0)|0))==(0|r)&n>>>0>i>>>0|r>>>0>d>>>0)?h:n,h=i=i?d:r,i|f){if(i=0,o=0,!h&f>>>0>=4|h)for(l=-4&f,d=e- -64|0;a=i+c[e+56>>2]|0,s[a+d|0]=u[t+i|0],a=(y=1|i)+c[e+56>>2]|0,s[a+d|0]=u[t+y|0],a=(y=2|i)+c[e+56>>2]|0,s[a+d|0]=u[t+y|0],a=(y=3|i)+c[e+56>>2]|0,s[a+d|0]=u[t+y|0],a=o,o=(i=i+4|0)>>>0<4?a+1|0:a,a=b,b=a=(p=p+4|0)>>>0<4?a+1|0:a,(0|p)!=(0|l)|(0|h)!=(0|a););if(d=a=0,a|(b=3&f))for(;p=i+c[e+56>>2]|0,s[(e+p|0)- -64|0]=u[t+i|0],o=(i=i+1|0)?o:o+1|0,a=v,v=a=(m=m+1|0)?a:a+1|0,(0|b)!=(0|m)|(0|d)!=(0|a););o=c[e+56>>2],a=c[e+60>>2]}if(a=a+h|0,a=(o=o+f|0)>>>0>>0?a+1|0:a,c[e+56>>2]=o,c[e+60>>2]=a,!a&o>>>0<16)break e;M(e,e- -64|0,16,0),c[e+56>>2]=0,c[e+60>>2]=0,n=(o=n)-f|0,r=r-((o>>>0>>0)+h|0)|0,t=t+f|0}if(!r&n>>>0>=16|r&&(M(e,t,o=-16&n,r),n&=15,r=0,t=t+o|0),n|r){if(m=0,v=0,i=0,o=0,!r&n>>>0>=4|r)for(f=12&n,h=0,d=e- -64|0,p=0,b=0;a=i+c[e+56>>2]|0,s[a+d|0]=u[t+i|0],a=(l=1|i)+c[e+56>>2]|0,s[a+d|0]=u[t+l|0],a=(l=2|i)+c[e+56>>2]|0,s[a+d|0]=u[t+l|0],a=(l=3|i)+c[e+56>>2]|0,s[a+d|0]=u[t+l|0],o=(i=i+4|0)>>>0<4?o+1|0:o,a=b,b=a=(p=p+4|0)>>>0<4?a+1|0:a,(0|f)!=(0|p)|(0|h)!=(0|a););if(d=a=0,a|(b=3&n))for(;a=i+c[e+56>>2]|0,s[(e+a|0)- -64|0]=u[t+i|0],o=(i=i+1|0)?o:o+1|0,a=v,v=a=(m=m+1|0)?a:a+1|0,(0|b)!=(0|m)|(0|d)!=(0|a););o=r+c[e+60>>2]|0,o=(t=n+c[e+56>>2]|0)>>>0>>0?o+1|0:o,c[e+56>>2]=t,c[e+60>>2]=o}}}function Q(e,t,n){var r,a=0,i=0,o=0,s=0,u=0,d=0,f=0,l=0,b=0,p=0,h=0,y=0,m=0,v=0,g=0,A=0,w=0,x=0,_=0;y=c[t+4>>2],a=c[e+4>>2],m=c[t+8>>2],i=c[e+8>>2],v=c[t+12>>2],o=c[e+12>>2],g=c[t+16>>2],s=c[e+16>>2],A=c[t+20>>2],u=c[e+20>>2],w=c[t+24>>2],d=c[e+24>>2],p=c[t+28>>2],f=c[e+28>>2],x=c[t+32>>2],l=c[e+32>>2],_=c[t+36>>2],b=c[e+36>>2],n=0-n|0,h=c[e>>2],c[e>>2]=n&(h^c[t>>2])^h,c[e+36>>2]=b^n&(b^_),c[e+32>>2]=l^n&(l^x),c[e+28>>2]=f^n&(f^p),c[e+24>>2]=d^n&(d^w),c[e+20>>2]=u^n&(u^A),c[e+16>>2]=s^n&(s^g),c[e+12>>2]=o^n&(o^v),c[e+8>>2]=i^n&(i^m),c[e+4>>2]=a^n&(a^y),a=c[e+40>>2],y=c[t+40>>2],i=c[e+44>>2],m=c[t+44>>2],o=c[e+48>>2],v=c[t+48>>2],s=c[e+52>>2],g=c[t+52>>2],u=c[e+56>>2],A=c[t+56>>2],d=c[e+60>>2],w=c[t+60>>2],f=c[(p=e- -64|0)>>2],x=c[t- -64>>2],l=c[e+68>>2],_=c[t+68>>2],b=c[e+72>>2],h=c[t+72>>2],r=c[e+76>>2],c[e+76>>2]=r^n&(c[t+76>>2]^r),c[e+72>>2]=b^n&(b^h),c[e+68>>2]=l^n&(l^_),c[p>>2]=f^n&(f^x),c[e+60>>2]=d^n&(d^w),c[e+56>>2]=u^n&(u^A),c[e+52>>2]=s^n&(s^g),c[e+48>>2]=o^n&(o^v),c[e+44>>2]=i^n&(i^m),c[e+40>>2]=a^n&(a^y),a=c[e+80>>2],y=c[t+80>>2],i=c[e+84>>2],m=c[t+84>>2],o=c[e+88>>2],v=c[t+88>>2],s=c[e+92>>2],g=c[t+92>>2],u=c[e+96>>2],A=c[t+96>>2],d=c[e+100>>2],w=c[t+100>>2],f=c[e+104>>2],p=c[t+104>>2],l=c[e+108>>2],x=c[t+108>>2],b=c[e+112>>2],_=c[t+112>>2],h=c[t+116>>2],t=c[e+116>>2],c[e+116>>2]=n&(h^t)^t,c[e+112>>2]=b^n&(b^_),c[e+108>>2]=l^n&(l^x),c[e+104>>2]=f^n&(f^p),c[e+100>>2]=d^n&(d^w),c[e+96>>2]=u^n&(u^A),c[e+92>>2]=s^n&(s^g),c[e+88>>2]=o^n&(o^v),c[e+84>>2]=i^n&(i^m),c[e+80>>2]=a^n&(a^y)}function q(e,t){var n,r,a=0;for(m=n=m-192|0,S(r=n+144|0,t),S(a=n+96|0,r),S(a,a),k(a,t,a),k(r,r,a),S(t=n+48|0,r),k(a,a,t),S(t,a),S(t,t),S(t,t),S(t,t),S(t,t),k(a,t,a),S(t,a),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),k(t,t,a),S(n,t),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),S(n,n),k(t,n,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),k(a,t,a),S(t,a),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),k(t,t,a),S(n,t),t=1;S(n,n),100!=(0|(t=t+1|0)););k(t=n+48|0,n,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),S(t,t),k(a=n+96|0,t,a),S(a,a),S(a,a),S(a,a),S(a,a),S(a,a),k(e,a,n+144|0),m=n+192|0}function V(e,t,n){var r,a=0,i=0,o=0,s=0,u=0,d=0,l=0,b=0;m=r=m-128|0,c[e>>2]=1,c[e+4>>2]=0,c[e+8>>2]=0,c[e+12>>2]=0,c[e+16>>2]=0,c[e+20>>2]=0,c[e+24>>2]=0,c[e+28>>2]=0,c[e+32>>2]=0,c[e+36>>2]=0,c[e+40>>2]=1,Ce(e+44|0,0,76),Q(e,a=f(t,960)+2704|0,(255&(1^(t=n-((n>>31&n)<<1)|0)))-1>>>31|0),Q(e,a+120|0,(255&(2^t))-1>>>31|0),Q(e,a+240|0,(255&(3^t))-1>>>31|0),Q(e,a+360|0,(255&(4^t))-1>>>31|0),Q(e,a+480|0,(255&(5^t))-1>>>31|0),Q(e,a+600|0,(255&(6^t))-1>>>31|0),Q(e,a+720|0,(255&(7^t))-1>>>31|0),Q(e,a+840|0,(255&(8^t))-1>>>31|0),i=c[e+40>>2],o=c[e+44>>2],s=c[e+48>>2],u=c[e+52>>2],d=c[e+56>>2],l=c[e+60>>2],b=c[(t=e- -64|0)>>2],a=c[t+4>>2],t=c[e+76>>2],c[r+40>>2]=c[e+72>>2],c[r+44>>2]=t,c[r+32>>2]=b,c[r+36>>2]=a,c[r+24>>2]=d,c[r+28>>2]=l,c[r+16>>2]=s,c[r+20>>2]=u,c[r+8>>2]=i,c[r+12>>2]=o,i=c[e+8>>2],o=c[e+12>>2],s=c[e+16>>2],u=c[e+20>>2],d=c[e+24>>2],l=c[e+28>>2],b=c[e>>2],a=c[e+4>>2],t=c[e+36>>2],c[r+80>>2]=c[e+32>>2],c[r+84>>2]=t,c[r+72>>2]=d,c[r+76>>2]=l,c[(t=r- -64|0)>>2]=s,c[t+4>>2]=u,c[r+56>>2]=i,c[r+60>>2]=o,c[r+48>>2]=b,c[r+52>>2]=a,i=c[e+80>>2],o=c[e+84>>2],s=c[e+88>>2],u=c[e+92>>2],d=c[e+96>>2],l=c[e+100>>2],b=c[e+104>>2],a=c[e+108>>2],t=c[e+112>>2],c[r+124>>2]=0-c[e+116>>2],c[r+120>>2]=0-t,c[r+116>>2]=0-a,c[r+112>>2]=0-b,c[r+108>>2]=0-l,c[r+104>>2]=0-d,c[r+100>>2]=0-u,c[r+96>>2]=0-s,c[r+92>>2]=0-o,c[r+88>>2]=0-i,Q(e,r+8|0,(128&n)>>>7|0),m=r+128|0}function J(e,t,n,r){var a=0,i=0,o=0,c=0,d=0,f=0,l=0;if(n|r)e:for(l=e+224|0,d=e+96|0,i=u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24;;){if(a=i+d|0,!r&n>>>0<=(o=256-i|0)>>>0){Ee(a,t,n),t=(u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24)+n|0,s[e+352|0]=t,s[e+353|0]=t>>>8,s[e+354|0]=t>>>16,s[e+355|0]=t>>>24;break e}if(Ee(a,t,o),a=(u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24)+o|0,s[e+352|0]=a,s[e+353|0]=a>>>8,s[e+354|0]=a>>>16,s[e+355|0]=a>>>24,f=i=u[e+68|0]|u[e+69|0]<<8|u[e+70|0]<<16|u[e+71|0]<<24,i=(c=128+(a=u[e+64|0]|u[e+65|0]<<8|u[e+66|0]<<16|u[e+67|0]<<24)|0)>>>0<128?i+1|0:i,s[e+64|0]=c,s[e+65|0]=c>>>8,s[e+66|0]=c>>>16,s[e+67|0]=c>>>24,s[e+68|0]=i,s[e+69|0]=i>>>8,s[e+70|0]=i>>>16,s[e+71|0]=i>>>24,i=u[e+76|0]|u[e+77|0]<<8|u[e+78|0]<<16|u[e+79|0]<<24,i=(f=a=-1==(0|f)&a>>>0>4294967167)>>>0>(a=a+(u[e+72|0]|u[e+73|0]<<8|u[e+74|0]<<16|u[e+75|0]<<24)|0)>>>0?i+1|0:i,s[e+72|0]=a,s[e+73|0]=a>>>8,s[e+74|0]=a>>>16,s[e+75|0]=a>>>24,s[e+76|0]=i,s[e+77|0]=i>>>8,s[e+78|0]=i>>>16,s[e+79|0]=i>>>24,g(e,d),Ee(d,l,128),a=i=(u[e+352|0]|u[e+353|0]<<8|u[e+354|0]<<16|u[e+355|0]<<24)-128|0,s[e+352|0]=a,s[e+353|0]=a>>>8,s[e+354|0]=a>>>16,s[e+355|0]=a>>>24,t=t+o|0,!((r=r-(n>>>0>>0)|0)|(n=n-o|0)))break}return 0}function K(e,t){var n,r=0,a=0,i=0,o=0,s=0,u=0,d=0,f=0,l=0,b=0,p=0,h=0,y=0,m=0,v=0,g=0,A=0,w=0;r=c[t+40>>2],a=c[t+4>>2],i=c[t+44>>2],o=c[t+8>>2],s=c[t+48>>2],u=c[t+12>>2],d=c[t+52>>2],f=c[t+16>>2],l=c[t+56>>2],p=c[t+20>>2],h=c[t+60>>2],y=c[t+24>>2],m=c[(b=t- -64|0)>>2],v=c[t+28>>2],g=c[t+68>>2],A=c[t+32>>2],w=c[t+72>>2],n=c[t>>2],c[e+36>>2]=c[t+36>>2]+c[t+76>>2],c[e+32>>2]=A+w,c[e+28>>2]=v+g,c[e+24>>2]=y+m,c[e+20>>2]=p+h,c[e+16>>2]=f+l,c[e+12>>2]=u+d,c[e+8>>2]=o+s,c[e+4>>2]=a+i,c[e>>2]=r+n,r=c[t+40>>2],a=c[t+4>>2],i=c[t+44>>2],o=c[t+8>>2],s=c[t+48>>2],u=c[t+12>>2],d=c[t+52>>2],f=c[t+16>>2],l=c[t+56>>2],p=c[t+20>>2],h=c[t+60>>2],y=c[t+24>>2],b=c[b>>2],m=c[t+28>>2],v=c[t+68>>2],g=c[t+32>>2],A=c[t+72>>2],w=c[t>>2],c[e+76>>2]=c[t+76>>2]-c[t+36>>2],c[e+72>>2]=A-g,c[e+68>>2]=v-m,c[e- -64>>2]=b-y,c[e+60>>2]=h-p,c[e+56>>2]=l-f,c[e+52>>2]=d-u,c[e+48>>2]=s-o,c[e+44>>2]=i-a,c[e+40>>2]=r-w,r=c[t+80>>2],a=c[t+84>>2],i=c[t+88>>2],o=c[t+92>>2],s=c[t+96>>2],u=c[t+100>>2],d=c[t+104>>2],f=c[t+108>>2],l=c[t+116>>2],c[e+112>>2]=c[t+112>>2],c[e+116>>2]=l,c[e+104>>2]=d,c[e+108>>2]=f,c[e+96>>2]=s,c[e+100>>2]=u,c[e+88>>2]=i,c[e+92>>2]=o,c[e+80>>2]=r,c[e+84>>2]=a,k(e+120|0,t+120|0,1440)}function G(e,t){var n,r,a,i,o,u=0,d=0,l=0,b=0,p=0,h=0,y=0,m=0,v=0,g=0;(l=c[e+56>>2])|(u=c[e+60>>2])&&(s[l+(d=e- -64|0)|0]=1,!((g=l+1|0)?u:u+1|0)&g>>>0<=15&&Ce(65+(e+l|0)|0,0,15-l|0),s[e+80|0]=1,M(e,d,16,0)),g=c[e+52>>2],m=c[e+48>>2],d=c[e+44>>2],l=c[e+24>>2],p=c[e+28>>2]+(l>>>26|0)|0,b=c[e+32>>2]+(p>>>26|0)|0,n=c[e+36>>2]+(b>>>26|0)|0,u=(y=(l=(l=(67108863&l)+((h=c[e+20>>2]+f(n>>>26|0,5)|0)>>>26|0)|0)&(p=(b=(o=(67108863&n)+((i=(r=67108863&b)+((a=(v=67108863&p)+((h=l+((u=5+(y=67108863&h)|0)>>>26|0)|0)>>>26|0)|0)>>>26|0)|0)>>>26|0)|0)-67108864|0)>>31)|h&(b=67108863&(h=(b>>>31|0)-1|0)))<<26|u&b|p&y)+c[e+40>>2]|0,s[0|t]=u,s[t+1|0]=u>>>8,s[t+2|0]=u>>>16,s[t+3|0]=u>>>24,y=u>>>0>>0,u=(v=p&v|b&a)<<20|l>>>6,l=0,u=(d=u+d|0)>>>0>>0?1:l,u=(l=d+y|0)>>>0>>0?u+1|0:u,s[(d=t)+4|0]=l,s[d+5|0]=l>>>8,s[d+6|0]=l>>>16,s[d+7|0]=l>>>24,l=0,d=(d=(b=p&r|b&i)<<14|v>>>12)>>>0>(m=d+m|0)>>>0?1:l,l=m,m=u,l=(u=l+u|0)>>>0>>0?d+1|0:d,s[(d=t)+8|0]=u,s[d+9|0]=u>>>8,s[d+10|0]=u>>>16,s[d+11|0]=u>>>24,u=d=(h&o|p&n)<<8|b>>>18,u=(u=l)+(d=d+g|0)|0,s[t+12|0]=u,s[t+13|0]=u>>>8,s[t+14|0]=u>>>16,s[t+15|0]=u>>>24,$e(e,88)}function W(e,t,n){var r,a=0;return m=r=m-16|0,s[r+15|0]=0,a=-1,0|dt[c[8722]](e,t,n)||(s[r+15|0]=u[0|e]|u[r+15|0],s[r+15|0]=u[e+1|0]|u[r+15|0],s[r+15|0]=u[e+2|0]|u[r+15|0],s[r+15|0]=u[e+3|0]|u[r+15|0],s[r+15|0]=u[e+4|0]|u[r+15|0],s[r+15|0]=u[e+5|0]|u[r+15|0],s[r+15|0]=u[e+6|0]|u[r+15|0],s[r+15|0]=u[e+7|0]|u[r+15|0],s[r+15|0]=u[e+8|0]|u[r+15|0],s[r+15|0]=u[e+9|0]|u[r+15|0],s[r+15|0]=u[e+10|0]|u[r+15|0],s[r+15|0]=u[e+11|0]|u[r+15|0],s[r+15|0]=u[e+12|0]|u[r+15|0],s[r+15|0]=u[e+13|0]|u[r+15|0],s[r+15|0]=u[e+14|0]|u[r+15|0],s[r+15|0]=u[e+15|0]|u[r+15|0],s[r+15|0]=u[e+16|0]|u[r+15|0],s[r+15|0]=u[e+17|0]|u[r+15|0],s[r+15|0]=u[e+18|0]|u[r+15|0],s[r+15|0]=u[e+19|0]|u[r+15|0],s[r+15|0]=u[e+20|0]|u[r+15|0],s[r+15|0]=u[e+21|0]|u[r+15|0],s[r+15|0]=u[e+22|0]|u[r+15|0],s[r+15|0]=u[e+23|0]|u[r+15|0],s[r+15|0]=u[e+24|0]|u[r+15|0],s[r+15|0]=u[e+25|0]|u[r+15|0],s[r+15|0]=u[e+26|0]|u[r+15|0],s[r+15|0]=u[e+27|0]|u[r+15|0],s[r+15|0]=u[e+28|0]|u[r+15|0],s[r+15|0]=u[e+29|0]|u[r+15|0],s[r+15|0]=u[e+30|0]|u[r+15|0],s[r+15|0]=u[e+31|0]|u[r+15|0],a=(u[r+15|0]<<23)-8388608>>31),m=r+16|0,a}function Y(e,t){var n,r,a,i,o,u,d,l=0,b=0;r=c[t+32>>2],a=c[t+28>>2],i=c[t+24>>2],o=c[t+20>>2],u=c[t+16>>2],d=c[t+12>>2],l=c[t+4>>2],b=c[t>>2],n=c[t+36>>2],t=c[t+8>>2],b=f((r+(a+(i+(o+(u+(d+((l+(b+(f(n,19)+16777216>>>25|0)>>26)>>25)+t>>26)>>25)>>26)>>25)>>26)>>25)>>26)+n>>25,19)+b|0,s[0|e]=b,s[e+2|0]=b>>>16,s[e+1|0]=b>>>8,l=l+(b>>26)|0,s[e+5|0]=l>>>14,s[e+4|0]=l>>>6,s[e+3|0]=b>>>24&3|l<<2,t=t+(l>>25)|0,s[e+8|0]=t>>>13,s[e+7|0]=t>>>5,s[e+6|0]=t<<3|(29360128&l)>>>22,b=(t>>26)+d|0,s[e+11|0]=b>>>11,s[e+10|0]=b>>>3,s[e+9|0]=b<<5|(65011712&t)>>>21,l=(b>>25)+u|0,s[e+15|0]=l>>>18,s[e+14|0]=l>>>10,s[e+13|0]=l>>>2,t=(l>>26)+o|0,s[e+16|0]=t,s[e+12|0]=l<<6|(33030144&b)>>>19,s[e+18|0]=t>>>16,s[e+17|0]=t>>>8,l=(t>>25)+i|0,s[e+21|0]=l>>>15,s[e+20|0]=l>>>7,s[e+19|0]=t>>>24&1|l<<1,t=(l>>26)+a|0,s[e+24|0]=t>>>13,s[e+23|0]=t>>>5,s[e+22|0]=t<<3|(58720256&l)>>>23,l=(t>>25)+r|0,s[e+27|0]=l>>>12,s[e+26|0]=l>>>4,s[e+25|0]=l<<4|(31457280&t)>>>21,t=n+(l>>26)|0,s[e+30|0]=t>>>10,s[e+29|0]=t>>>2,s[e+31|0]=(33292288&t)>>>18,s[e+28|0]=t<<6|(66060288&l)>>>20}function X(e,t){var n;return c[12+(n=m-16|0)>>2]=e,c[n+8>>2]=t,c[n+4>>2]=0,c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]]^u[c[n+8>>2]],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+1|0]^u[c[n+8>>2]+1|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+2|0]^u[c[n+8>>2]+2|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+3|0]^u[c[n+8>>2]+3|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+4|0]^u[c[n+8>>2]+4|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+5|0]^u[c[n+8>>2]+5|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+6|0]^u[c[n+8>>2]+6|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+7|0]^u[c[n+8>>2]+7|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+8|0]^u[c[n+8>>2]+8|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+9|0]^u[c[n+8>>2]+9|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+10|0]^u[c[n+8>>2]+10|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+11|0]^u[c[n+8>>2]+11|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+12|0]^u[c[n+8>>2]+12|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+13|0]^u[c[n+8>>2]+13|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+14|0]^u[c[n+8>>2]+14|0],c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+15|0]^u[c[n+8>>2]+15|0],(c[n+4>>2]-1>>>8&1)-1|0}function $(e,t){var n,r=0,a=0;n=t;e:if(r=255&t){if(3&e)for(;;){if(!(t=u[0|e])|(0|t)==(255&n))break e;if(!(3&(e=e+1|0)))break}t:if(!((-1^(t=c[e>>2]))&t-16843009&-2139062144))for(r=f(r,16843009);;){if((-1^(t^=r))&t-16843009&-2139062144)break t;if(t=c[e+4>>2],e=e+4|0,t-16843009&(-1^t)&-2139062144)break}for(;t=e,(r=u[0|e])&&(e=t+1|0,(0|r)!=(255&n)););e=t}else{r=e;t:{if(3&e)for(;;){if(!u[0|e])break t;if(!(3&(e=e+1|0)))break}for(;t=e,e=e+4|0,!((-1^(a=c[t>>2]))&a-16843009&-2139062144););for(;t=(e=t)+1|0,u[0|e];);}e=r+(e-r|0)|0}return u[0|e]==(255&n)?e:0}function ee(e,t){var n,r=0,a=0,i=0,o=0,c=0;for(m=n=m-192|0,se(e),Ce(n- -64|0,54,128);s[0|(r=(o=n- -64|0)+a|0)]=u[0|r]^u[t+a|0],s[0|(i=(r=1|a)+o|0)]=u[0|i]^u[t+r|0],s[0|(i=(r=2|a)+o|0)]=u[0|i]^u[t+r|0],s[0|(r=(r=o)+(o=3|a)|0)]=u[0|r]^u[t+o|0],a=a+4|0,32!=(0|(c=c+4|0)););for(L(e,a=n- -64|0,128,0),se(o=e+208|0),Ce(a,92,128),a=0,c=0;s[0|(r=(e=n- -64|0)+a|0)]=u[0|r]^u[t+a|0],s[0|(i=(r=1|a)+e|0)]=u[0|i]^u[t+r|0],s[0|(i=(r=2|a)+e|0)]=u[0|i]^u[t+r|0],s[0|(r=(r=e)+(e=3|a)|0)]=u[0|r]^u[e+t|0],a=a+4|0,32!=(0|(c=c+4|0)););L(o,e=n- -64|0,128,0),$e(e,128),$e(n,64),m=n+192|0}function te(e,t,n,r,a,i,o){var s,u,d,f,l,b=0;return m=s=m-352|0,Z(s,i,o),!((!a&r>>>0>e-n>>>0|0!=(0|a))&e>>>0>n>>>0)&(!a&r>>>0<=n-e>>>0|e>>>0>=n>>>0)||(n=_e(e,n,r)),c[s+56>>2]=0,c[s+60>>2]=0,c[s+48>>2]=0,c[s+52>>2]=0,c[s+40>>2]=0,c[s+44>>2]=0,c[s+32>>2]=0,c[s+36>>2]=0,o=(b=!a&r>>>0>=32|0!=(0|a))?32:r,l=b=b?0:a,(d=!(o|b))||Ee(s- -64|0,n,o),Ze(u=s+32|0,u,f=o+32|0,b=f>>>0<32?b+1|0:b,i=i+16|0,s),Ge(s+96|0,u),d||Ee(e,s- -64|0,o),$e(s+32|0,64),!a&r>>>0>=33|a&&Ue(e+o|0,n+o|0,r-o|0,a-(l+(r>>>0>>0)|0)|0,i,s),$e(s,32),Je(n=s+96|0,e,r,a),We(n,t),$e(n,256),m=s+352|0,0}function ne(e,t,n,r,a,i,o){var s,u,d=0,f=0;m=s=m-96|0,Z(s,i,o),o=s+32|0,u=i+16|0,dt[c[8724]](o,32,0,u,s),i=-1;e:{if(!(0|dt[c[8718]](n,t,r,a,o))){if(i=0,!e)break e;!((!a&r>>>0>t-e>>>0|0!=(0|a))&e>>>0>>0)&(!a&r>>>0<=e-t>>>0|e>>>0<=t>>>0)||(t=_e(e,t,r)),(o=(n=!a&r>>>0>=32|0!=(0|a))?32:r)|(n=n?0:a)?(f=Ee(s- -64|0,t,o),Ze(i=s+32|0,i,d=o+32|0,d>>>0<32?n+1|0:n,u,s),Ee(e,f,o)):Ze(i=s+32|0,i,d=o+32|0,d>>>0<32?n+1|0:n,u,s),$e(s+32|0,64),i=0,!a&r>>>0<33||Ue(e+o|0,t+o|0,r-o|0,a-(n+(r>>>0>>0)|0)|0,u,s)}$e(s,32)}return m=s+96|0,i}function re(e,t,n,r,a,i,o,s,d,f){var l,b;return m=l=m-400|0,c[l+4>>2]=0,F(b=l+16|0,d,f),f=u[d+20|0]|u[d+21|0]<<8|u[d+22|0]<<16|u[d+23|0]<<24,c[l+8>>2]=u[d+16|0]|u[d+17|0]<<8|u[d+18|0]<<16|u[d+19|0]<<24,c[l+12>>2]=f,qe(f=l+80|0,64,l+4|0,b),Ge(d=l+144|0,f),$e(f,64),Je(d,i,o,s),Je(d,34816,0-o&15,0),Je(d,t,n,r),Je(d,34816,0-n&15,0),c[l+72>>2]=o,c[l+76>>2]=s,Je(d,i=l+72|0,8,0),c[l+72>>2]=n,c[l+76>>2]=r,Je(d,i,8,0),We(d,i=l+48|0),$e(d,256),d=X(i,a),$e(i,16),e&&(d?(Ce(e,0,n),d=-1):(Re(e,t,n,r,l+4|0,l+16|0),d=0)),$e(l+16|0,32),m=l+400|0,d}function ae(e,t,n,r,a,i,o,s,d,f,l){var b,p,h;return m=b=m-384|0,c[b+4>>2]=0,F(p=b+16|0,f,l),l=u[f+20|0]|u[f+21|0]<<8|u[f+22|0]<<16|u[f+23|0]<<24,c[b+8>>2]=u[f+16|0]|u[f+17|0]<<8|u[f+18|0]<<16|u[f+19|0]<<24,c[b+12>>2]=l,qe(l=b- -64|0,64,h=b+4|0,p),Ge(f=b+128|0,l),$e(l,64),Je(f,o,s,d),Je(f,34816,0-s&15,0),Re(e,r,a,i,h,p),Je(f,e,a,i),Je(f,34816,0-a&15,0),c[b+56>>2]=s,c[b+60>>2]=d,Je(f,e=b+56|0,8,0),c[b+56>>2]=a,c[b+60>>2]=i,Je(f,e,8,0),We(f,t),$e(f,256),n&&(c[n>>2]=16,c[n+4>>2]=0),$e(b+16|0,32),m=b+384|0,0}function ie(e,t,n,r){var a,i=0;return m=a=m-208|0,c[a+72>>2]=0,c[a+76>>2]=0,i=c[8487],c[a+8>>2]=c[8486],c[a+12>>2]=i,i=c[8489],c[a+16>>2]=c[8488],c[a+20>>2]=i,i=c[8491],c[a+24>>2]=c[8490],c[a+28>>2]=i,i=c[8493],c[a+32>>2]=c[8492],c[a+36>>2]=i,i=c[8495],c[a+40>>2]=c[8494],c[a+44>>2]=i,i=c[8497],c[a+48>>2]=c[8496],c[a+52>>2]=i,i=c[8499],c[a+56>>2]=c[8498],c[a+60>>2]=i,c[a+64>>2]=0,c[a+68>>2]=0,i=c[8485],c[a>>2]=c[8484],c[a+4>>2]=i,L(a,t,n,r),C(a,e),m=a+208|0,0}function oe(e,t){var n,r=0,a=0,i=0;if(s[15+(n=m-16|0)|0]=0,t){if(a=3&t,t>>>0>=4)for(i=-4&t,t=0;s[n+15|0]=u[e+r|0]|u[n+15|0],s[n+15|0]=u[(1|r)+e|0]|u[n+15|0],s[n+15|0]=u[(2|r)+e|0]|u[n+15|0],s[n+15|0]=u[(3|r)+e|0]|u[n+15|0],r=r+4|0,(0|i)!=(0|(t=t+4|0)););if(a)for(t=0;s[n+15|0]=u[e+r|0]|u[n+15|0],r=r+1|0,(0|a)!=(0|(t=t+1|0)););}return u[n+15|0]-1>>>8&1}function se(e){var t=0;c[e+64>>2]=0,c[e+68>>2]=0,c[e+72>>2]=0,c[e+76>>2]=0,t=c[8485],c[e>>2]=c[8484],c[e+4>>2]=t,t=c[8487],c[e+8>>2]=c[8486],c[e+12>>2]=t,t=c[8489],c[e+16>>2]=c[8488],c[e+20>>2]=t,t=c[8491],c[e+24>>2]=c[8490],c[e+28>>2]=t,t=c[8493],c[e+32>>2]=c[8492],c[e+36>>2]=t,t=c[8495],c[e+40>>2]=c[8494],c[e+44>>2]=t,t=c[8497],c[e+48>>2]=c[8496],c[e+52>>2]=t,t=c[8499],c[e+56>>2]=c[8498],c[e+60>>2]=t}function ce(e,t,n){var r,a=0,i=0;if(c[12+(r=m-16|0)>>2]=e,c[r+8>>2]=t,e=0,s[r+7|0]=0,n){if(t=1&n,1!=(0|n))for(i=-2&n,n=0;s[r+7|0]=u[r+7|0]|u[c[r+12>>2]+e|0]^u[c[r+8>>2]+e|0],a=1|e,s[r+7|0]=u[r+7|0]|u[a+c[r+12>>2]|0]^u[c[r+8>>2]+a|0],e=e+2|0,(0|i)!=(0|(n=n+2|0)););t&&(s[r+7|0]=u[r+7|0]|u[c[r+12>>2]+e|0]^u[c[r+8>>2]+e|0])}return(u[r+7|0]-1>>>8&1)-1|0}function ue(e){for(var t=0,n=0,r=0,a=0,i=0,o=0,s=0,c=0,d=0,f=0;a=(n=u[e+r|0])^u[0|(t=r+2448|0)]|a,i=n^u[t+192|0]|i,o=n^u[t+160|0]|o,s=n^u[t+128|0]|s,c=n^u[t+96|0]|c,d=n^u[t- -64|0]|d,f=n^u[t+32|0]|f,31!=(0|(r=r+1|0)););return((255&((t=127^(e=127&u[e+31|0]))|i))-1|(255&(t|o))-1|(255&(t|s))-1|(255&(122^e|c))-1|(255&(5^e|d))-1|(255&(e|f))-1|(255&(e|a))-1)>>>8&1}function de(e,t,n){var r=0,a=0,i=0,o=0;return a=31&(i=o=63&n),i=i>>>0>=32?-1>>>a|0:(r=-1>>>a|0)|(1<>>0>=32?(r=i<>>32-a|r<>>0>=32?(r=-1<>>32-r,e&=n,t&=r,r=31&a,a>>>0>=32?(n=0,e=t>>>r|0):(n=t>>>r|0,e=((1<>>r),v=n|i,e|o}function fe(e,t,n,r,a,i,o,s,u,d){var f,l,b;return m=f=m-352|0,qe(b=f+32|0,64,u,d),Ge(l=f+96|0,b),$e(b,64),Je(l,i,o,s),Je(l,33920,0-o&15,0),Je(l,t,n,r),Je(l,33920,0-n&15,0),c[f+24>>2]=o,c[f+28>>2]=s,Je(l,i=f+24|0,8,0),c[f+24>>2]=n,c[f+28>>2]=r,Je(l,i,8,0),We(l,f),$e(l,256),i=X(f,a),$e(f,16),e&&(i?(Ce(e,0,n),i=-1):(ve(e,t,n,r,u,1,d),i=0)),m=f+352|0,i}function le(e,t,n,r,a,i,o,s,u,d,f){var l,b,p;return m=l=m-336|0,qe(p=l+16|0,64,d,f),Ge(b=l+80|0,p),$e(p,64),Je(b,o,s,u),Je(b,33920,0-s&15,0),ve(e,r,a,i,d,1,f),Je(b,e,a,i),Je(b,33920,0-a&15,0),c[l+8>>2]=s,c[l+12>>2]=u,Je(b,e=l+8|0,8,0),c[l+8>>2]=a,c[l+12>>2]=i,Je(b,e,8,0),We(b,t),$e(b,256),n&&(c[n>>2]=16,c[n+4>>2]=0),m=l+336|0,0}function be(e,t,n,r,a,i,o,s,u,d){var f,l,b;return m=f=m-352|0,Ve(b=f+32|0,u,d),Ge(l=f+96|0,b),$e(b,64),Je(l,i,o,s),c[f+24>>2]=o,c[f+28>>2]=s,Je(l,i=f+24|0,8,0),Je(l,t,n,r),c[f+24>>2]=n,c[f+28>>2]=r,Je(l,i,8,0),We(l,f),$e(l,256),i=X(f,a),$e(f,16),e&&(i?(Ce(e,0,n),i=-1):(Ne(e,t,n,r,u,d),i=0)),m=f+352|0,i}function pe(e,t,n,r,a,i,o,s,u,d,f){var l,b,p;return m=l=m-336|0,Ve(p=l+16|0,d,f),Ge(b=l+80|0,p),$e(p,64),Je(b,o,s,u),c[l+8>>2]=s,c[l+12>>2]=u,Je(b,o=l+8|0,8,0),Ne(e,r,a,i,d,f),Je(b,e,a,i),c[l+8>>2]=a,c[l+12>>2]=i,Je(b,o,8,0),We(b,t),$e(b,256),n&&(c[n>>2]=16,c[n+4>>2]=0),m=l+336|0,0}function he(e,t){var n;for(c[12+(n=m-16|0)>>2]=e,c[n+8>>2]=t,e=0,c[n+4>>2]=0;c[n+4>>2]=c[n+4>>2]|u[c[n+12>>2]+e|0]^u[c[n+8>>2]+e|0],t=1|e,c[n+4>>2]=c[n+4>>2]|u[t+c[n+12>>2]|0]^u[t+c[n+8>>2]|0],32!=(0|(e=e+2|0)););return(c[n+4>>2]-1>>>8&1)-1|0}function ye(e){var t=0,n=0,r=0,a=0;for(t=1;t=u[0|(n=e+r|0)]+t|0,s[0|n]=t,t=u[0|(n=(1|r)+e|0)]+(t>>>8|0)|0,s[0|n]=t,t=u[0|(n=(2|r)+e|0)]+(t>>>8|0)|0,s[0|n]=t,t=u[0|(n=(3|r)+e|0)]+(t>>>8|0)|0,s[0|n]=t,t=t>>>8|0,r=r+4|0,4!=(0|(a=a+4|0)););}function me(e,t,n,r){var a,i,o,s,c=0,u=0;return s=f(c=n>>>16|0,u=e>>>16|0),c=(65535&(u=((o=f(a=65535&n,i=65535&e))>>>16|0)+f(u,a)|0))+f(c,i)|0,v=(f(t,n)+s|0)+f(e,r)+(u>>>16)+(c>>>16)|0,65535&o|c<<16}function ve(e,t,n,r,a,o,s){var u=0,d=0;u=r,1==(((u=(d=n+63|0)>>>0<63?u+1|0:u)>>>6|0)+(0!=(0|(u=(63&u)<<26|d>>>6)))|0)&o>>>0>(d=0-u|0)>>>0|1==(0|r)|r>>>0>1?(Le(),i()):dt[c[8716]](e,t,n,r,a,o,s)}function ge(e,t){e|=0;var n,r=0,a=0,i=0;if(m=n=m-16|0,t|=0)for(;s[n+15|0]=0,a=e+r|0,i=0|b(34904,n+15|0,0),s[0|a]=i,(0|(r=r+1|0))!=(0|t););m=n+16|0}function Ae(e,t,n,r,a,i,o){var s,c=0;return m=s=m-32|0,c=-1,!r&n>>>0<16||Se(s,i,o)||(c=ne(e,t+16|0,t,n-16|0,r-(n>>>0<16)|0,a,s),$e(s,32)),m=s+32|0,c}function we(e){var t,n;return(e=(t=c[8712])+(n=e+7&-8)|0)>>>0<=t>>>0&&n||e>>>0>ft()<<16>>>0&&!(0|y(0|e))?(c[8916]=48,-1):(c[8712]=e,t)}function xe(e,t){var n,r,a;m=n=m-176|0,q(r=n+96|0,t+80|0),k(a=n+48|0,t,r),k(n,t+40|0,r),Y(e,n),Y(n+144|0,a),s[e+31|0]=u[e+31|0]^u[n+144|0]<<7,m=n+176|0}function _e(e,t,n){var r=0;if(e>>>0>>0)return Ee(e,t,n);if(n)for(r=e+n|0,t=t+n|0;t=t-1|0,s[0|(r=r-1|0)]=u[0|t],n=n-1|0;);return e}function ke(e,t,n,r,a,o,s){var c,u=0;if(m=c=m-32|0,!r&n>>>0<4294967280)return u=-1,Se(c,o,s)||(u=te(e+16|0,e,t,n,r,a,c),$e(c,32)),m=c+32|0,u;Le(),i()}function Ie(e,t,n,r,a,i){return t|=0,0|(!(r|=0)&(n|=0)>>>0>=16|r?ne(e|=0,t+16|0,t,n-16|0,r-(n>>>0<16)|0,a|=0,i|=0):-1)}function Se(e,t,n){e|=0;var r,a=0;return m=r=m-32|0,a=-1,W(r,n|=0,t|=0)||(a=Z(e,34832,r)),m=r+32|0,0|a}function Ee(e,t,n){var r=0;if(n)for(r=e;s[0|r]=u[0|t],r=r+1|0,t=t+1|0,n=n-1|0;);return e}function Ce(e,t,n){var r=0;if(n)for(r=e;s[0|r]=t,r=r+1|0,n=n-1|0;);return e}function Te(e,t,n){return e|=0,t|=0,(n|=0)>>>0>=256&&(p(1260,1187,107,1067),i()),0|T(e,t,255&n)}function Oe(e,t){var n;m=n=m+-64|0,C(e,n),L(e=e+208|0,n,64,0),C(e,t),$e(n,64),m=n- -64|0}function Pe(e,t,n,r,a,i,o){return 0|te(e|=0,t|=0,n|=0,r|=0,a|=0,i|=0,o|=0)}function Me(e,t,n,r,a,i,o){return 0|ne(e|=0,t|=0,n|=0,r|=0,a|=0,i|=0,o|=0)}function Be(e,t){var n=0;return(-1>>>(n=31&t)&e)<>>e}function Ne(e,t,n,r,a,o){1==(0|r)|r>>>0>1&&(Le(),i()),dt[c[8715]](e,t,n,r,a,1,0,o)}function Re(e,t,n,r,a,o){1==(0|r)|r>>>0>1&&(Le(),i()),dt[c[8716]](e,t,n,r,a,1,o)}function De(){var e;m=e=m-16|0,s[e+15|0]=0,b(34940,e+15|0,0),m=e+16|0}function je(e,t,n){return 0|W(e|=0,t|=0,n|=0)}function Ue(e,t,n,r,a,i){dt[c[8725]](e,t,n,r,a,1,0,i)}function Le(){var e;(e=c[9050])&&dt[0|e](),h(),i()}function Fe(e,t){return e|=0,ge(t|=0,32),0|Ke(e,t)}function Ze(e,t,n,r,a,i){dt[c[8725]](e,t,n,r,a,0,0,i)}function He(e){return e?31-l(e-1^e)|0:32}function ze(e,t,n,r){dt[c[8716]](e,t,40,0,n,0,r)}function Qe(e,t){return 0|Ke(e|=0,t|=0)}function qe(e,t,n,r){dt[c[8714]](e,t,0,n,r)}function Ve(e,t,n){dt[c[8713]](e,64,0,t,n)}function Je(e,t,n,r){dt[c[8720]](e,t,n,r)}function Ke(e,t){return 0|dt[c[8723]](e,t)}function Ge(e,t){dt[c[8719]](e,t)}function We(e,t){dt[c[8721]](e,t)}function Ye(e,t,n,r){L(e,t,n,r)}function Xe(e){ge(e|=0,32)}function $e(e,t){Ce(e,0,t)}function et(){return 16}function tt(){return 32}function nt(){return 24}function rt(){return-17}function at(){return 64}function it(){return 1}function ot(){return 3}function st(){return 8}function ct(){return 0}a(t=u,1024,"TGlic29kaXVtRFJHcmFuZG9tYnl0ZXMAYjY0X3BvcyA8PSBiNjRfbGVuAGNyeXB0b19nZW5lcmljaGFzaF9ibGFrZTJiX2ZpbmFsAHJhbmRvbWJ5dGVzL3JhbmRvbWJ5dGVzLmMAc29kaXVtL2NvZGVjcy5jAGNyeXB0b19nZW5lcmljaGFzaC9ibGFrZTJiL3JlZi9ibGFrZTJiLXJlZi5jAGNyeXB0b19nZW5lcmljaGFzaC9ibGFrZTJiL3JlZi9nZW5lcmljaGFzaF9ibGFrZTJiLmMAYnVmX2xlbiA8PSBTSVpFX01BWABvdXRsZW4gPD0gVUlOVDhfTUFYAFMtPmJ1ZmxlbiA8PSBCTEFLRTJCX0JMT0NLQllURVMAMS4wLjE4AHNvZGl1bV9iaW4yYmFzZTY0AAAAAAAAAAC2eFn/hXLTAL1uFf8PCmoAKcABAJjoef+8PKD/mXHO/wC34v60DUj/AAAAAAAAAACwoA7+08mG/54YjwB/aTUAYAy9AKfX+/+fTID+amXh/x78BACSDK4="),a(t,1440,"WfGy/grlpv973Sr+HhTUAFKAAwAw0fMAd3lA/zLjnP8AbsUBZxuQ"),a(t,1488,"hTuMAb3xJP/4JcMBYNw3ALdMPv/DQj0AMkykAeGkTP9MPaP/dT4fAFGRQP92QQ4AonPW/waKLgB85vT/CoqPADQawgC49EwAgY8pAb70E/97qnr/YoFEAHnVkwBWZR7/oWebAIxZQ//v5b4BQwu1AMbwif7uRbz/Q5fuABMqbP/lVXEBMkSH/xFqCQAyZwH/UAGoASOYHv8QqLkBOFno/2XS/AAp+kcAzKpP/w4u7/9QTe8AvdZL/xGN+QAmUEz/vlV1AFbkqgCc2NABw8+k/5ZCTP+v4RD/jVBiAUzb8gDGonIALtqYAJsr8f6boGj/M7ulAAIRrwBCVKAB9zoeACNBNf5F7L8ALYb1AaN73QAgbhT/NBelALrWRwDpsGAA8u82ATlZigBTAFT/iKBkAFyOeP5ofL4AtbE+//opVQCYgioBYPz2AJeXP/7vhT4AIDicAC2nvf+OhbMBg1bTALuzlv76qg7/0qNOACU0lwBjTRoA7pzV/9XA0QFJLlQAFEEpATbOTwDJg5L+qm8Y/7EhMv6rJsv/Tvd0ANHdmQCFgLIBOiwZAMknOwG9E/wAMeXSAXW7dQC1s7gBAHLbADBekwD1KTgAfQ3M/vStdwAs3SD+VOoUAPmgxgHsfur/L2Oo/qrimf9ms9gA4o16/3pCmf629YYA4+QZAdY56//YrTj/tefSAHeAnf+BX4j/bn4zAAKpt/8HgmL+RbBe/3QE4wHZ8pH/yq0fAWkBJ/8ur0UA5C86/9fgRf7POEX/EP6L/xfP1P/KFH7/X9Vg/wmwIQDIBc//8SqA/iMhwP/45cQBgRF4APtnl/8HNHD/jDhC/yji9f/ZRiX+rNYJ/0hDhgGSwNb/LCZwAES4S//OWvsAleuNALWqOgB09O8AXJ0CAGatYgDpiWABfzHLAAWblAAXlAn/03oMACKGGv/bzIgAhggp/+BTK/5VGfcAbX8A/qmIMADud9v/563VAM4S/v4Iugf/fgkHAW8qSABvNOz+YD+NAJO/f/7NTsD/DmrtAbvbTACv87v+aVmtAFUZWQGi85QAAnbR/iGeCQCLoy7/XUYoAGwqjv5v/I7/m9+QADPlp/9J/Jv/XnQM/5ig2v+c7iX/s+rP/8UAs/+apI0A4cRoAAojGf7R1PL/Yf3e/rhl5QDeEn8BpIiH/x7PjP6SYfMAgcAa/slUIf9vCk7/k1Gy/wQEGACh7tf/Bo0hADXXDv8ptdD/54udALPL3f//uXEAveKs/3FC1v/KPi3/ZkAI/06uEP6FdUT/"),a(t,2480,"AQ=="),a(t,2512,"JuiVj8KyJ7BFw/SJ8u+Y8NXfrAXTxjM5sTgCiG1T/AXHF2pwPU3YT7o8C3YNEGcPKiBT+iw5zMZOx/13kqwDeuz///////////////////////////////////////9/7f///////////////////////////////////////3/u////////////////////////////////////////f+3T9VwaYxJY1pz3ot753hQ="),a(t,2703,"EIU7jAG98ST/+CXDAWDcNwC3TD7/w0I9ADJMpAHhpEz/TD2j/3U+HwBRkUD/dkEOAKJz1v8Gii4AfOb0/wqKjwA0GsIAuPRMAIGPKQG+9BP/e6p6/2KBRAB51ZMAVmUe/6FnmwCMWUP/7+W+AUMLtQDG8In+7kW8/+pxPP8l/zn/RbK2/oDQswB2Gn3+AwfW//EyTf9Vy8X/04f6/xkwZP+71bT+EVhpAFPRngEFc2IABK48/qs3bv/ZtRH/FLyqAJKcZv5X1q7/cnqbAeksqgB/CO8B1uzqAK8F2wAxaj3/BkLQ/wJqbv9R6hP/12vA/0OX7gATKmz/5VVxATJEh/8RagkAMmcB/1ABqAEjmB7/EKi5AThZ6P9l0vwAKfpHAMyqT/8OLu//UE3vAL3WS/8RjfkAJlBM/75VdQBW5KoAnNjQAcPPpP+WQkz/r+EQ/41QYgFM2/IAxqJyAC7amACbK/H+m6Bo/7IJ/P5kbtQADgWnAOnvo/8cl50BZZIK//6eRv5H+eQAWB4yAEQ6oP+/GGgBgUKB/8AyVf8Is4r/JvrJAHNQoACD5nEAfViTAFpExwD9TJ4AHP92AHH6/gBCSy4A5torAOV4ugGURCsAiHzuAbtrxf9UNfb/M3T+/zO7pQACEa8AQlSgAfc6HgAjQTX+Rey/AC2G9QGje90AIG4U/zQXpQC61kcA6bBgAPLvNgE5WYoAUwBU/4igZABcjnj+aHy+ALWxPv/6KVUAmIIqAWD89gCXlz/+74U+ACA4nAAtp73/joWzAYNW0wC7s5b++qoO/0RxFf/eujv/QgfxAUUGSABWnGz+N6dZAG002/4NsBf/xCxq/++VR/+kjH3/n60BADMp5wCRPiEAim9dAblTRQCQcy4AYZcQ/xjkGgAx2eIAcUvq/sGZDP+2MGD/Dg0aAIDD+f5FwTsAhCVR/n1qPADW8KkBpONCANKjTgAlNJcAY00aAO6c1f/VwNEBSS5UABRBKQE2zk8AyYOS/qpvGP+xITL+qybL/073dADR3ZkAhYCyATosGQDJJzsBvRP8ADHl0gF1u3UAtbO4AQBy2wAwXpMA9Sk4AH0NzP70rXcALN0g/lTqFAD5oMYB7H7q/48+3QCBWdb/N4sF/kQUv/8OzLIBI8PZAC8zzgEm9qUAzhsG/p5XJADZNJL/fXvX/1U8H/+rDQcA2vVY/vwjPAA31qD/hWU4AOAgE/6TQOoAGpGiAXJ2fQD4/PoAZV7E/8aN4v4zKrYAhwwJ/m2s0v/F7MIB8UGaADCcL/+ZQzf/2qUi/kq0swDaQkcBWHpjANS12/9cKuf/7wCaAPVNt/9eUaoBEtXYAKtdRwA0XvgAEpeh/sXRQv+u9A/+ojC3ADE98P62XcMAx+QGAcgFEf+JLe3/bJQEAFpP7f8nP03/NVLPAY4Wdv9l6BIBXBpDAAXIWP8hqIr/leFIAALRG/8s9agB3O0R/x7Taf6N7t0AgFD1/m/+DgDeX74B3wnxAJJM1P9szWj/P3WZAJBFMAAj5G8AwCHB/3DWvv5zmJcAF2ZYADNK+ADix4/+zKJl/9BhvQH1aBIA5vYe/xeURQBuWDT+4rVZ/9AvWv5yoVD/IXT4ALOYV/9FkLEBWO4a/zogcQEBTUUAO3k0/5juUwA0CMEA5yfp/8ciigDeRK0AWzny/tzSf//AB/b+lyO7AMPspQBvXc4A1PeFAZqF0f+b5woAQE4mAHr5ZAEeE2H/Plv5AfiFTQDFP6j+dApSALjscf7Uy8L/PWT8/iQFyv93W5n/gU8dAGdnq/7t12//2DVFAO/wFwDCld3/JuHeAOj/tP52UoX/OdGxAYvohQCesC7+wnMuAFj35QEcZ78A3d6v/pXrLACX5Bn+2mlnAI5V0gCVgb7/1UFe/nWG4P9SxnUAnd3cAKNlJADFciUAaKym/gu2AABRSLz/YbwQ/0UGCgDHk5H/CAlzAUHWr//ZrdEAUH+mAPflBP6nt3z/WhzM/q878P8LKfgBbCgz/5Cxw/6W+n4AiltBAXg83v/1we8AHda9/4ACGQBQmqIATdxrAerNSv82pmf/dEgJAOReL/8eyBn/I9ZZ/z2wjP9T4qP/S4KsAIAmEQBfiZj/13yfAU9dAACUUp3+w4L7/yjKTP/7fuAAnWM+/s8H4f9gRMMAjLqd/4MT5/8qgP4ANNs9/mbLSACNBwv/uqTVAB96dwCF8pEA0Pzo/1vVtv+PBPr++ddKAKUebwGrCd8A5XsiAVyCGv9Nmy0Bw4sc/zvgTgCIEfcAbHkgAE/6vf9g4/z+JvE+AD6uff+bb13/CubOAWHFKP8AMTn+QfoNABL7lv/cbdL/Ba6m/iyBvQDrI5P/JfeN/0iNBP9na/8A91oEADUsKgACHvAABDs/AFhOJABxp7QAvkfB/8eepP86CKwATSEMAEE/AwCZTSH/rP5mAeTdBP9XHv4BkilW/4rM7/5sjRH/u/KHANLQfwBELQ7+SWA+AFE8GP+qBiT/A/kaACPVbQAWgTb/FSPh/+o9OP862QYAj3xYAOx+QgDRJrf/Iu4G/66RZgBfFtMAxA+Z/i5U6P91IpIB5/pK/xuGZAFcu8P/qsZwAHgcKgDRRkMAHVEfAB2oZAGpraAAayN1AD5gO/9RDEUBh+++/9z8EgCj3Dr/iYm8/1NmbQBgBkwA6t7S/7muzQE8ntX/DfHWAKyBjABdaPIAwJz7ACt1HgDhUZ4Af+jaAOIcywDpG5f/dSsF//IOL/8hFAYAifss/hsf9f+31n3+KHmVALqe1f9ZCOMARVgA/suH4QDJrssAk0e4ABJ5Kf5eBU4A4Nbw/iQFtAD7h+cBo4rUANL5dP5YgbsAEwgx/j4OkP+fTNMA1jNSAG115P5n38v/S/wPAZpH3P8XDVsBjahg/7W2hQD6MzcA6urU/q8/ngAn8DQBnr0k/9UoVQEgtPf/E2YaAVQYYf9FFd4AlIt6/9zV6wHoy/8AeTmTAOMHmgA1FpMBSAHhAFKGMP5TPJ3/kUipACJn7wDG6S8AdBME/7hqCf+3gVMAJLDmASJnSADbooYA9SqeACCVYP6lLJAAyu9I/teWBQAqQiQBhNevAFauVv8axZz/MeiH/me2UgD9gLABmbJ6APX6CgDsGLIAiWqEACgdKQAyHpj/fGkmAOa/SwCPK6oALIMU/ywNF//t/5sBn21k/3C1GP9o3GwAN9ODAGMM1f+Yl5H/7gWfAGGbCAAhbFEAAQNnAD5tIv/6m7QAIEfD/yZGkQGfX/UAReVlAYgc8ABP4BkATm55//iofAC7gPcAApPr/k8LhABGOgwBtQij/0+Jhf8lqgv/jfNV/7Dn1//MlqT/79cn/y5XnP4Io1j/rCLoAEIsZv8bNin+7GNX/yl7qQE0cisAdYYoAJuGGgDnz1v+I4Qm/xNmff4k44X/dgNx/x0NfACYYEoBWJLO/6e/3P6iElj/tmQXAB91NABRLmoBDAIHAEVQyQHR9qwADDCNAeDTWAB04p8AemKCAEHs6gHh4gn/z+J7AVnWOwBwh1gBWvTL/zELJgGBbLoAWXAPAWUuzP9/zC3+T//d/zNJEv9/KmX/8RXKAKDjBwBpMuwATzTF/2jK0AG0DxAAZcVO/2JNywApufEBI8F8ACObF//PNcAAC32jAfmeuf8EgzAAFV1v/z155wFFyCT/uTC5/2/uFf8nMhn/Y9ej/1fUHv+kkwX/gAYjAWzfbv/CTLIASmW0APMvMACuGSv/Uq39ATZywP8oN1sA12yw/ws4BwDg6UwA0WLK/vIZfQAswV3+ywixAIewEwBwR9X/zjuwAQRDGgAOj9X+KjfQ/zxDeADBFaMAY6RzAAoUdgCc1N7+oAfZ/3L1TAF1O3sAsMJW/tUPsABOzs/+1YE7AOn7FgFgN5j/7P8P/8VZVP9dlYUArqBxAOpjqf+YdFgAkKRT/18dxv8iLw//Y3iG/wXswQD5937/k7seADLmdf9s2dv/o1Gm/0gZqf6beU//HJtZ/gd+EQCTQSEBL+r9ABozEgBpU8f/o8TmAHH4pADi/toAvdHL/6T33v7/I6UABLzzAX+zRwAl7f7/ZLrwAAU5R/5nSEn/9BJR/uXShP/uBrT/C+Wu/+PdwAERMRwAo9fE/gl2BP8z8EcAcYFt/0zw5wC8sX8AfUcsARqv8wBeqRn+G+YdAA+LdwGoqrr/rMVM//xLvACJfMQASBZg/y2X+QHckWQAQMCf/3jv4gCBspIAAMB9AOuK6gC3nZIAU8fA/7isSP9J4YAATQb6/7pBQwBo9s8AvCCK/9oY8gBDilH+7YF5/xTPlgEpxxD/BhSAAJ92BQC1EI//3CYPABdAk/5JGg0AV+Q5Acx8gAArGN8A22PHABZLFP8TG34AnT7XAG4d5gCzp/8BNvy+AN3Mtv6znkH/UZ0DAMLanwCq3wAA4Asg/ybFYgCopCUAF1gHAaS6bgBgJIYA6vLlAPp5EwDy/nD/Ay9eAQnvBv9Rhpn+1v2o/0N84AD1X0oAHB4s/gFt3P+yWVkA/CRMABjGLv9MTW8AhuqI/ydeHQC5SOr/RkSH/+dmB/5N54wApy86AZRhdv8QG+EBps6P/26y1v+0g6IAj43hAQ3aTv9ymSEBYmjMAK9ydQGnzksAysRTATpAQwCKL28BxPeA/4ng4P6ecM8AmmT/AYYlawDGgE//f9Gb/6P+uf48DvMAH9tw/h3ZQQDIDXT+ezzE/+A7uP7yWcQAexBL/pUQzgBF/jAB53Tf/9GgQQHIUGIAJcK4/pQ/IgCL8EH/2ZCE/zgmLf7HeNIAbLGm/6DeBADcfnf+pWug/1Lc+AHxr4gAkI0X/6mKVACgiU7/4nZQ/zQbhP8/YIv/mPonALybDwDoM5b+KA/o//DlCf+Jrxv/S0lhAdrUCwCHBaIBa7nVAAL5a/8o8kYA28gZABmdDQBDUlD/xPkX/5EUlQAySJIAXkyUARj7QQAfwBcAuNTJ/3vpogH3rUgAolfb/n6GWQCfCwz+pmkdAEkb5AFxeLf/QqNtAdSPC/+f56gB/4BaADkOOv5ZNAr//QijAQCR0v8KgVUBLrUbAGeIoP5+vNH/IiNvANfbGP/UC9b+ZQV2AOjFhf/fp23/7VBW/0aLXgCewb8Bmw8z/w++cwBOh8//+QobAbV96QBfrA3+qtWh/yfsiv9fXVf/voBfAH0PzgCmlp8A4w+e/86eeP8qjYAAZbJ4AZxtgwDaDiz+96jO/9RwHABwEeT/WhAlAcXebAD+z1P/CVrz//P0rAAaWHP/zXR6AL/mwQC0ZAsB2SVg/5pOnADr6h//zrKy/5XA+wC2+ocA9hZpAHzBbf8C0pX/qRGqAABgbv91CQgBMnso/8G9YwAi46AAMFBG/tMz7AAtevX+LK4IAK0l6f+eQasAekXX/1pQAv+DamD+43KHAM0xd/6wPkD/UjMR//EU8/+CDQj+gNnz/6IbAf5advEA9sb2/zcQdv/In50AoxEBAIxreQBVoXb/JgCVAJwv7gAJpqYBS2K1/zJKGQBCDy8Ai+GfAEwDjv8O7rgAC881/7fAugGrIK7/v0zdAfeq2wAZrDL+2QnpAMt+RP+3XDAAf6e3AUEx/gAQP38B/hWq/zvgf/4WMD//G06C/ijDHQD6hHD+I8uQAGipqADP/R7/aCgm/l7kWADOEID/1Dd6/98W6gDfxX8A/bW1AZFmdgDsmST/1NlI/xQmGP6KPj4AmIwEAObcY/8BFdT/lMnnAPR7Cf4Aq9IAMzol/wH/Dv/0t5H+APKmABZKhAB52CkAX8Ny/oUYl/+c4uf/9wVN//aUc/7hXFH/3lD2/qp7Wf9Kx40AHRQI/4qIRv9dS1wA3ZMx/jR+4gDlfBcALgm1AM1ANAGD/hwAl57UAINATgDOGasAAOaLAL/9bv5n96cAQCgoASql8f87S+T+fPO9/8Rcsv+CjFb/jVk4AZPGBf/L+J7+kKKNAAus4gCCKhX/AaeP/5AkJP8wWKT+qKrcAGJH1gBb0E8An0zJAaYq1v9F/wD/BoB9/74BjACSU9r/1+5IAXp/NQC9dKX/VAhC/9YD0P/VboUAw6gsAZ7nRQCiQMj+WzpoALY6u/755IgAy4ZM/mPd6QBL/tb+UEWaAECY+P7siMr/nWmZ/pWvFAAWIxP/fHnpALr6xv6E5YsAiVCu/6V9RACQypT+6+/4AIe4dgBlXhH/ekhG/kWCkgB/3vgBRX92/x5S1/68ShP/5afC/nUZQv9B6jj+1RacAJc7Xf4tHBv/un6k/yAG7wB/cmMB2zQC/2Ngpv4+vn7/bN6oAUvirgDm4scAPHXa//z4FAHWvMwAH8KG/ntFwP+prST+N2JbAN8qZv6JAWYAnVoZAO96QP/8BukABzYU/1J0rgCHJTb/D7p9AONwr/9ktOH/Ku30//St4v74EiEAq2OW/0rrMv91UiD+aqjtAM9t0AHkCboAhzyp/rNcjwD0qmj/6y18/0ZjugB1ibcA4B/XACgJZAAaEF8BRNlXAAiXFP8aZDr/sKXLATR2RgAHIP7+9P71/6eQwv99cRf/sHm1AIhU0QCKBh7/WTAcACGbDv8Z8JoAjc1tAUZzPv8UKGv+iprH/17f4v+dqyYAo7EZ/i12A/8O3hcB0b5R/3Z76AEN1WX/ezd7/hv2pQAyY0z/jNYg/2FBQ/8YDBwArlZOAUD3YACgh0MAQjfz/5PMYP8aBiH/YjNTAZnV0P8CuDb/GdoLADFD9v4SlUj/DRlIACpP1gAqBCYBG4uQ/5W7FwASpIQA9VS4/njGaP9+2mAAOHXq/w0d1v5ELwr/p5qE/pgmxgBCsln/yC6r/w1jU//Su/3/qi0qAYrRfADWoo0ADOacAGYkcP4Dk0MANNd7/+mrNv9iiT4A99on/+fa7AD3v38Aw5JUAKWwXP8T1F7/EUrjAFgomQHGkwH/zkP1/vAD2v89jdX/YbdqAMPo6/5fVpoA0TDN/nbR8f/weN8B1R2fAKN/k/8N2l0AVRhE/kYUUP+9BYwBUmH+/2Njv/+EVIX/a9p0/3B6LgBpESAAwqA//0TeJwHY/VwAsWnN/5XJwwAq4Qv/KKJzAAkHUQCl2tsAtBYA/h2S/P+Sz+EBtIdgAB+jcACxC9v/hQzB/itOMgBBcXkBO9kG/25eGAFwrG8ABw9gACRVewBHlhX/0Em8AMALpwHV9SIACeZcAKKOJ//XWhsAYmFZAF5P0wBanfAAX9x+AWaw4gAkHuD+Ix9/AOfocwFVU4IA0kn1/y+Pcv9EQcUAO0g+/7eFrf5deXb/O7FR/+pFrf/NgLEA3PQzABr00QFJ3k3/owhg/paV0wCe/ssBNn+LAKHgOwAEbRb/3iot/9CSZv/sjrsAMs31/wpKWf4wT44A3kyC/x6mPwDsDA3/Mbj0ALtxZgDaZf0AmTm2/iCWKgAZxpIB7fE4AIxEBQBbpKz/TpG6/kM0zQDbz4EBbXMRADaPOgEV+Hj/s/8eAMHsQv8B/wf//cAw/xNF2QED1gD/QGWSAd99I//rSbP/+afiAOGvCgFhojoAanCrAVSsBf+FjLL/hvWOAGFaff+6y7n/300X/8BcagAPxnP/2Zj4AKuyeP/khjUAsDbBAfr7NQDVCmQBIsdqAJcf9P6s4Ff/Du0X//1VGv9/J3T/rGhkAPsORv/U0Ir//dP6ALAxpQAPTHv/Jdqg/1yHEAEKfnL/RgXg//f5jQBEFDwB8dK9/8PZuwGXA3EAl1yuAOc+sv/bt+EAFxch/821UAA5uPj/Q7QB/1p7Xf8nAKL/YPg0/1RCjAAif+T/wooHAaZuvAAVEZsBmr7G/9ZQO/8SB48ASB3iAcfZ+QDooUcBlb7JANmvX/5xk0P/io/H/3/MAQAdtlMBzuab/7rMPAAKfVX/6GAZ//9Z9//V/q8B6MFRABwrnP4MRQgAkxj4ABLGMQCGPCMAdvYS/zFY/v7kFbr/tkFwAdsWAf8WfjT/vTUx/3AZjwAmfzf/4mWj/tCFPf+JRa4BvnaR/zxi2//ZDfX/+ogKAFT+4gDJH30B8DP7/x+Dgv8CijL/19exAd8M7v/8lTj/fFtE/0h+qv53/2QAgofo/w5PsgD6g8UAisbQAHnYi/53EiT/HcF6ABAqLf/V8OsB5r6p/8Yj5P5urUgA1t3x/ziUhwDAdU7+jV3P/49BlQAVEmL/Xyz0AWq/TQD+VQj+1m6w/0mtE/6gxMf/7VqQAMGscf/Im4j+5FrdAIkxSgGk3df/0b0F/2nsN/8qH4EBwf/sAC7ZPACKWLv/4lLs/1FFl/+OvhABDYYIAH96MP9RQJwAq/OLAO0j9gB6j8H+1HqSAF8p/wFXhE0ABNQfABEfTgAnLa3+GI7Z/18JBv/jUwYAYjuC/j4eIQAIc9MBomGA/we4F/50HKj/+IqX/2L08AC6doIAcvjr/2mtyAGgfEf/XiSkAa9Bkv/u8ar+ysbFAORHiv4t9m3/wjSeAIW7sABT/Jr+Wb3d/6pJ/ACUOn0AJEQz/ipFsf+oTFb/JmTM/yY1IwCvE2EA4e79/1FRhwDSG//+60lrAAjPcwBSf4gAVGMV/s8TiABkpGUAUNBN/4TP7f8PAw//IaZuAJxfVf8luW8Blmoj/6aXTAByV4f/n8JAAAx6H//oB2X+rXdiAJpH3P6/OTX/qOig/+AgY//anKUAl5mjANkNlAHFcVkAlRyh/s8XHgBphOP/NuZe/4WtzP9ct53/WJD8/mYhWgCfYQMAtdqb//BydwBq1jX/pb5zAZhb4f9Yaiz/0D1xAJc0fAC/G5z/bjbsAQ4epv8nf88B5cccALzkvP5knesA9tq3AWsWwf/OoF8ATO+TAM+hdQAzpgL/NHUK/kk44/+YweEAhF6I/2W/0QAga+X/xiu0AWTSdgByQ5n/F1ga/1maXAHceIz/kHLP//xz+v8izkgAioV//wiyfAFXS2EAD+Vc/vBDg/92e+P+knho/5HV/wGBu0b/23c2AAETrQAtlpQB+FNIAMvpqQGOazgA9/kmAS3yUP8e6WcAYFJGABfJbwBRJx7/obdO/8LqIf9E44z+2M50AEYb6/9okE8ApOZd/taHnACau/L+vBSD/yRtrgCfcPEABW6VASSl2gCmHRMBsi5JAF0rIP74ve0AZpuNAMldw//xi/3/D29i/2xBo/6bT77/Sa7B/vYoMP9rWAv+ymFV//3MEv9x8kIAbqDC/tASugBRFTwAvGin/3ymYf7ShY4AOPKJ/ilvggBvlzoBb9WN/7es8f8mBsT/uQd7/y4L9gD1aXcBDwKh/wjOLf8Sykr/U3xzAdSNnQBTCNH+iw/o/6w2rf4y94QA1r3VAJC4aQDf/vgA/5Pw/xe8SAAHMzYAvBm0/ty0AP9ToBQAo73z/zrRwv9XSTwAahgxAPX53AAWracAdgvD/xN+7QBunyX/O1IvALS7VgC8lNABZCWF/wdwwQCBvJz/VGqB/4XhygAO7G//KBRlAKysMf4zNkr/+7m4/12b4P+0+eAB5rKSAEg5Nv6yPrgAd81IALnv/f89D9oAxEM4/+ogqwEu2+QA0Gzq/xQ/6P+lNccBheQF/zTNawBK7oz/lpzb/u+ssv/7vd/+II7T/9oPigHxxFAAHCRi/hbqxwA97dz/9jklAI4Rjv+dPhoAK+5f/gPZBv/VGfABJ9yu/5rNMP4TDcD/9CI2/owQmwDwtQX+m8E8AKaABP8kkTj/lvDbAHgzkQBSmSoBjOySAGtc+AG9CgMAP4jyANMnGAATyqEBrRu6/9LM7/4p0aL/tv6f/6x0NADDZ97+zUU7ADUWKQHaMMIAUNLyANK8zwC7oaH+2BEBAIjhcQD6uD8A3x5i/k2oogA7Na8AE8kK/4vgwgCTwZr/1L0M/gHIrv8yhXEBXrNaAK22hwBesXEAK1nX/4j8av97hlP+BfVC/1IxJwHcAuAAYYGxAE07WQA9HZsBy6vc/1xOiwCRIbX/qRiNATeWswCLPFD/2idhAAKTa/88+EgAreYvAQZTtv8QaaL+idRR/7S4hgEn3qT/3Wn7Ae9wfQA/B2EAP2jj/5Q6DABaPOD/VNT8AE/XqAD43ccBc3kBACSseAAgorv/OWsx/5MqFQBqxisBOUpXAH7LUf+Bh8MAjB+xAN2LwgAD3tcAg0TnALFWsv58l7QAuHwmAUajEQD5+7UBKjfjAOKhLAAX7G4AM5WOAV0F7ADat2r+QxhNACj10f/eeZkApTkeAFN9PABGJlIB5Qa8AG3enf83dj//zZe6AOMhlf/+sPYB47HjACJqo/6wK08Aal9OAbnxev+5Dj0AJAHKAA2yov/3C4QAoeZcAUEBuf/UMqUBjZJA/57y2gAVpH0A1Yt6AUNHVwDLnrIBl1wrAJhvBf8nA+//2f/6/7A/R/9K9U0B+q4S/yIx4//2Lvv/miMwAX2dPf9qJE7/YeyZAIi7eP9xhqv/E9XZ/the0f/8BT0AXgPKAAMat/9Avyv/HhcVAIGNTf9meAcBwkyMALyvNP8RUZQA6FY3AeEwrACGKir/7jIvAKkS/gAUk1f/DsPv/0X3FwDu5YD/sTFwAKhi+/95R/gA8wiR/vbjmf/bqbH++4ul/wyjuf+kKKv/mZ8b/vNtW//eGHABEtbnAGudtf7DkwD/wmNo/1mMvv+xQn7+arlCADHaHwD8rp4AvE/mAe4p4ADU6ggBiAu1AKZ1U/9Ew14ALoTJAPCYWACkOUX+oOAq/zvXQ/93w43/JLR5/s8vCP+u0t8AZcVE//9SjQH6iekAYVaFARBQRQCEg58AdF1kAC2NiwCYrJ3/WitbAEeZLgAnEHD/2Yhh/9zGGf6xNTEA3liG/4APPADPwKn/wHTR/2pO0wHI1bf/Bwx6/t7LPP8hbsf++2p1AOThBAF4Ogf/3cFU/nCFGwC9yMn/i4eWAOo3sP89MkEAmGyp/9xVAf9wh+MAohq6AM9guf70iGsAXZkyAcZhlwBuC1b/j3Wu/3PUyAAFyrcA7aQK/rnvPgDseBL+Yntj/6jJwv4u6tYAv4Ux/2OpdwC+uyMBcxUt//mDSABwBnv/1jG1/qbpIgBcxWb+/eTN/wM7yQEqYi4A2yUj/6nDJgBefMEBnCvfAF9Ihf54zr8AesXv/7G7T//+LgIB+qe+AFSBEwDLcab/+R+9/kidyv/QR0n/zxhIAAoQEgHSUUz/WNDA/37za//ujXj/x3nq/4kMO/8k3Hv/lLM8/vAMHQBCAGEBJB4m/3MBXf9gZ+f/xZ47AcCk8ADKyjn/GK4wAFlNmwEqTNcA9JfpABcwUQDvfzT+44Il//h0XQF8hHYArf7AAQbrU/9ur+cB+xy2AIH5Xf5UuIAATLU+AK+AugBkNYj+bR3iAN3pOgEUY0oAABagAIYNFQAJNDf/EVmMAK8iOwBUpXf/4OLq/wdIpv97c/8BEtb2APoHRwHZ3LkA1CNM/yZ9rwC9YdIAcu4s/ym8qf4tupoAUVwWAISgwQB50GL/DVEs/8ucUgBHOhX/0HK//jImkwCa2MMAZRkSADz61//phOv/Z6+OARAOXACNH27+7vEt/5nZ7wFhqC//+VUQARyvPv85/jYA3ud+AKYtdf4SvWD/5EwyAMj0XgDGmHgBRCJF/wxBoP5lE1oAp8V4/0Q2uf8p2rwAcagwAFhpvQEaUiD/uV2kAeTw7f9CtjUAq8Vc/2sJ6QHHeJD/TjEK/22qaf9aBB//HPRx/0o6CwA+3Pb/eZrI/pDSsv9+OYEBK/oO/2VvHAEvVvH/PUaW/zVJBf8eGp4A0RpWAIrtSgCkX7wAjjwd/qJ0+P+7r6AAlxIQANFvQf7Lhif/WGwx/4MaR//dG9f+aGld/x/sH/6HANP/j39uAdRJ5QDpQ6f+wwHQ/4QR3f8z2VoAQ+sy/9/SjwCzNYIB6WrGANmt3P9w5Rj/r5pd/kfL9v8wQoX/A4jm/xfdcf7rb9UAqnhf/vvdAgAtgp7+aV7Z//I0tP7VRC3/aCYcAPSeTAChyGD/zzUN/7tDlACqNvgAd6Ky/1MUCwAqKsABkp+j/7fobwBN5RX/RzWPABtMIgD2iC//2ye2/1zgyQETjg7/Rbbx/6N29QAJbWoBqrX3/04v7v9U0rD/1WuLACcmCwBIFZYASIJFAM1Nm/6OhRUAR2+s/uIqO/+zANcBIYDxAOr8DQG4TwgAbh5J//aNvQCqz9oBSppF/4r2Mf+bIGQAfUpp/1pVPf8j5bH/Pn3B/5lWvAFJeNQA0Xv2/ofRJv+XOiwBXEXW/w4MWP/8mab//c9w/zxOU//jfG4AtGD8/zV1If6k3FL/KQEb/yakpv+kY6n+PZBG/8CmEgBr+kIAxUEyAAGzEv//aAH/K5kj/1BvqABur6gAKWkt/9sOzf+k6Yz+KwF2AOlDwwCyUp//ild6/9TuWv+QI3z+GYykAPvXLP6FRmv/ZeNQ/lypNwDXKjEAcrRV/yHoGwGs1RkAPrB7/iCFGP/hvz4AXUaZALUqaAEWv+D/yMiM//nqJQCVOY0AwzjQ//6CRv8grfD/HdzHAG5kc/+E5fkA5Onf/yXY0f6ysdH/ty2l/uBhcgCJYaj/4d6sAKUNMQHS68z//AQc/kaglwDovjT+U/hd/z7XTQGvr7P/oDJCAHkw0AA/qdH/ANLIAOC7LAFJolIACbCP/xNMwf8dO6cBGCuaABy+vgCNvIEA6OvL/+oAbf82QZ8APFjo/3n9lv786YP/xm4pAVNNR//IFjv+av3y/xUMz//tQr0AWsbKAeGsfwA1FsoAOOaEAAFWtwBtvioA80SuAW3kmgDIsXoBI6C3/7EwVf9a2qn/+JhOAMr+bgAGNCsAjmJB/z+RFgBGal0A6IprAW6zPf/TgdoB8tFcACNa2QG2j2r/dGXZ/3L63f+tzAYAPJajAEmsLP/vblD/7UyZ/qGM+QCV6OUAhR8o/66kdwBxM9YAgeQC/kAi8wBr4/T/rmrI/1SZRgEyIxAA+krY/uy9Qv+Z+Q0A5rIE/90p7gB243n/XleM/v53XABJ7/b+dVeAABPTkf+xLvwA5Vv2AUWA9//KTTYBCAsJ/5lgpgDZ1q3/hsACAQDPAAC9rmsBjIZkAJ7B8wG2ZqsA65ozAI4Fe/88qFkB2Q5c/xPWBQHTp/4ALAbK/ngS7P8Pcbj/uN+LACixd/62e1r/sKWwAPdNwgAb6ngA5wDW/zsnHgB9Y5H/lkREAY3e+ACZe9L/bn+Y/+Uh1gGH3cUAiWECAAyPzP9RKbwAc0+C/14DhACYr7v/fI0K/37As/8LZ8YAlQYtANtVuwHmErL/SLaYAAPGuP+AcOABYaHmAP5jJv86n8UAl0LbADtFj/+5cPkAd4gv/3uChACoR1//cbAoAei5rQDPXXUBRJ1s/2YFk/4xYSEAWUFv/vceo/982d0BZvrYAMauS/45NxIA4wXsAeXVrQDJbdoBMenvAB43ngEZsmoAm2+8AV5+jADXH+4BTfAQANXyGQEmR6gAzbpd/jHTjP/bALT/hnalAKCThv9uuiP/xvMqAPOSdwCG66MBBPGH/8Euwf5ntE//4QS4/vJ2ggCSh7AB6m8eAEVC1f4pYHsAeV4q/7K/w/8ugioAdVQI/+kx1v7uem0ABkdZAezTewD0DTD+d5QOAHIcVv9L7Rn/keUQ/oFkNf+Glnj+qJ0yABdIaP/gMQ4A/3sW/5e5l/+qULgBhrYUAClkZQGZIRAATJpvAVbO6v/AoKT+pXtd/wHYpP5DEa//qQs7/54pPf9JvA7/wwaJ/xaTHf8UZwP/9oLj/3oogADiLxj+IyQgAJi6t/9FyhQAw4XDAN4z9wCpq14BtwCg/0DNEgGcUw//xTr5/vtZbv8yClj+MyvYAGLyxgH1l3EAq+zCAcUfx//lUSYBKTsUAP1o5gCYXQ7/9vKS/tap8P/wZmz+oKfsAJravACW6cr/GxP6AQJHhf+vDD8BkbfGAGh4c/+C+/cAEdSn/z57hP/3ZL0Am9+YAI/FIQCbOyz/ll3wAX8DV/9fR88Bp1UB/7yYdP8KFxcAicNdATZiYQDwAKj/lLx/AIZrlwBM/asAWoTAAJIWNgDgQjb+5rrl/ye2xACU+4L/QYNs/oABoACpMaf+x/6U//sGgwC7/oH/VVI+ALIXOv/+hAUApNUnAIb8kv4lNVH/m4ZSAM2n7v9eLbT/hCihAP5vcAE2S9kAs+bdAetev/8X8zABypHL/yd2Kv91jf0A/gDeACv7MgA2qeoBUETQAJTL8/6RB4cABv4AAPy5fwBiCIH/JiNI/9Mk3AEoGlkAqEDF/gPe7/8CU9f+tJ9pADpzwgC6dGr/5ffb/4F2wQDKrrcBpqFIAMlrk/7tiEoA6eZqAWlvqABA4B4BAeUDAGaXr//C7uT//vrUALvteQBD+2ABxR4LALdfzADNWYoAQN0lAf/fHv+yMNP/8cha/6fRYP85gt0ALnLI/z24QgA3thj+brYhAKu+6P9yXh8AEt0IAC/n/gD/cFMAdg/X/60ZKP7AwR//7hWS/6vBdv9l6jX+g9RwAFnAawEI0BsAtdkP/+eV6ACM7H4AkAnH/wxPtf6Ttsr/E222/zHU4QBKo8sAr+mUABpwMwDBwQn/D4f5AJbjggDMANsBGPLNAO7Qdf8W9HAAGuUiACVQvP8mLc7+8Frh/x0DL/8q4EwAuvOnACCED/8FM30Ai4cYAAbx2wCs5YX/9tYyAOcLz/+/flMBtKOq//U4GAGypNP/AxDKAWI5dv+Ng1n+ITMYAPOVW//9NA4AI6lD/jEeWP+zGyT/pYy3ADq9lwBYHwAAS6lCAEJlx/8Y2McBecQa/w5Py/7w4lH/XhwK/1PB8P/MwYP/Xg9WANoonQAzwdEAAPKxAGa59wCebXQAJodbAN+vlQDcQgH/VjzoABlgJf/heqIB17uo/56dLgA4q6IA6PBlAXoWCQAzCRX/NRnu/9ke6P59qZQADehmAJQJJQClYY0B5IMpAN4P8//+EhEABjztAWoDcQA7hL0AXHAeAGnQ1QAwVLP/u3nn/hvYbf+i3Wv+Se/D//ofOf+Vh1n/uRdzAQOjnf8ScPoAGTm7/6FgpAAvEPMADI37/kPquP8pEqEArwZg/6CsNP4YsLf/xsFVAXx5if+XMnL/3Ms8/8/vBQEAJmv/N+5e/kaYXgDV3E0BeBFF/1Wkvv/L6lEAJjEl/j2QfACJTjH+qPcwAF+k/ABpqYcA/eSGAECmSwBRSRT/z9IKAOpqlv9eIlr//p85/tyFYwCLk7T+GBe5ACk5Hv+9YUwAQbvf/+CsJf8iPl8B55DwAE1qfv5AmFsAHWKbAOL7Nf/q0wX/kMve/6Sw3f4F5xgAs3rNACQBhv99Rpf+YeT8AKyBF/4wWtH/luBSAVSGHgDxxC4AZ3Hq/y5lef4ofPr/hy3y/gn5qP+MbIP/j6OrADKtx/9Y3o7/yF+eAI7Ao/8HdYcAb3wWAOwMQf5EJkH/467+APT1JgDwMtD/oT/6ADzR7wB6IxMADiHm/gKfcQBqFH//5M1gAInSrv601JD/WWKaASJYiwCnonABQW7FAPElqQBCOIP/CslT/oX9u/+xcC3+xPsAAMT6l//u6Nb/ltHNABzwdgBHTFMB7GNbACr6gwFgEkD/dt4jAHHWy/96d7j/QhMkAMxA+QCSWYsAhj6HAWjpZQC8VBoAMfmBANDWS//Pgk3/c6/rAKsCif+vkboBN/WH/5pWtQFkOvb/bcc8/1LMhv/XMeYBjOXA/97B+/9RiA//s5Wi/xcnHf8HX0v+v1HeAPFRWv9rMcn/9NOdAN6Mlf9B2zj+vfZa/7I7nQEw2zQAYiLXABwRu/+vqRgAXE+h/+zIwgGTj+oA5eEHAcWoDgDrMzUB/XiuAMUGqP/KdasAoxXOAHJVWv8PKQr/whNjAEE32P6iknQAMs7U/0CSHf+enoMBZKWC/6wXgf99NQn/D8ESARoxC/+1rskBh8kO/2QTlQDbYk8AKmOP/mAAMP/F+VP+aJVP/+tuiP5SgCz/QSkk/ljTCgC7ebsAYobHAKu8s/7SC+7/QnuC/jTqPQAwcRf+BlZ4/3ey9QBXgckA8o3RAMpyVQCUFqEAZ8MwABkxq/+KQ4IAtkl6/pQYggDT5ZoAIJueAFRpPQCxwgn/pllWATZTuwD5KHX/bQPX/zWSLAE/L7MAwtgD/g5UiACIsQ3/SPO6/3URff/TOtP/XU/fAFpY9f+L0W//Rt4vAAr2T//G2bIA4+ELAU5+s/8+K34AZ5QjAIEIpf718JQAPTOOAFHQhgAPiXP/03fs/5/1+P8Choj/5os6AaCk/gByVY3/Maa2/5BGVAFVtgcALjVdAAmmof83orL/Lbi8AJIcLP6pWjEAeLLxAQ57f/8H8ccBvUIy/8aPZf6984f/jRgY/kthVwB2+5oB7TacAKuSz/+DxPb/iEBxAZfoOQDw2nMAMT0b/0CBSQH8qRv/KIQKAVrJwf/8efABus4pACvGYQCRZLcAzNhQ/qyWQQD55cT+aHtJ/01oYP6CtAgAaHs5ANzK5f9m+dMAVg7o/7ZO0QDv4aQAag0g/3hJEf+GQ+kAU/61ALfscAEwQIP/8djz/0HB4gDO8WT+ZIam/+3KxQA3DVEAIHxm/yjksQB2tR8B56CG/3e7ygAAjjz/gCa9/6bJlgDPeBoBNrisAAzyzP6FQuYAIiYfAbhwUAAgM6X+v/M3ADpJkv6bp83/ZGiY/8X+z/+tE/cA7grKAO+X8gBeOyf/8B1m/wpcmv/lVNv/oYFQANBazAHw267/nmaRATWyTP80bKgBU95rANMkbQB2OjgACB0WAO2gxwCq0Z0AiUcvAI9WIADG8gIA1DCIAVysugDml2kBYL/lAIpQv/7w2IL/YisG/qjEMQD9ElsBkEl5AD2SJwE/aBj/uKVw/n7rYgBQ1WL/ezxX/1KM9QHfeK3/D8aGAc487wDn6lz/Ie4T/6VxjgGwdyYAoCum/u9baQBrPcIBGQREAA+LMwCkhGr/InQu/qhfxQCJ1BcASJw6AIlwRf6WaZr/7MmdABfUmv+IUuP+4jvd/1+VwABRdjT/ISvXAQ6TS/9ZnHn+DhJPAJPQiwGX2j7/nFgIAdK4Yv8Ur3v/ZlPlANxBdAGW+gT/XI7c/yL3Qv/M4bP+l1GXAEco7P+KPz4ABk/w/7e5tQB2MhsAP+PAAHtjOgEy4Jv/EeHf/tzgTf8OLHsBjYCvAPjUyACWO7f/k2EdAJbMtQD9JUcAkVV3AJrIugACgPn/Uxh8AA5XjwCoM/UBfJfn/9DwxQF8vrkAMDr2ABTp6AB9EmL/Df4f//Wxgv9sjiMAq33y/owMIv+loaIAzs1lAPcZIgFkkTkAJ0Y5AHbMy//yAKIApfQeAMZ04gCAb5n/jDa2ATx6D/+bOjkBNjLGAKvTHf9riqf/rWvH/22hwQBZSPL/znNZ//r+jv6xyl7/UVkyAAdpQv8Z/v/+y0AX/0/ebP8n+UsA8XwyAO+YhQDd8WkAk5diANWhef7yMYkA6SX5/iq3GwC4d+b/2SCj/9D75AGJPoP/T0AJ/l4wcQARijL+wf8WAPcSxQFDN2gAEM1f/zAlQgA3nD8BQFJK/8g1R/7vQ30AGuDeAN+JXf8e4Mr/CdyEAMYm6wFmjVYAPCtRAYgcGgDpJAj+z/KUAKSiPwAzLuD/cjBP/wmv4gDeA8H/L6Do//9daf4OKuYAGopSAdAr9AAbJyb/YtB//0CVtv8F+tEAuzwc/jEZ2v+pdM3/dxJ4AJx0k/+ENW3/DQrKAG5TpwCd24n/BgOC/zKnHv88ny//gYCd/l4DvQADpkQAU9/XAJZawgEPqEEA41Mz/82rQv82uzwBmGYt/3ea4QDw94gAZMWy/4tH3//MUhABKc4q/5zA3f/Ye/T/2tq5/7u67//8rKD/wzQWAJCutf67ZHP/006w/xsHwQCT1Wj/WskK/1B7QgEWIboAAQdj/h7OCgDl6gUANR7SAIoI3P5HN6cASOFWAXa+vAD+wWUBq/ms/16et/5dAmz/sF1M/0ljT/9KQIH+9i5BAGPxf/72l2b/LDXQ/jtm6gCar6T/WPIgAG8mAQD/tr7/c7AP/qk8gQB67fEAWkw/AD5KeP96w24AdwSyAN7y0gCCIS7+nCgpAKeScAExo2//ebDrAEzPDv8DGcYBKevVAFUk1gExXG3/yBge/qjswwCRJ3wB7MOVAFokuP9DVar/JiMa/oN8RP/vmyP/NsmkAMQWdf8xD80AGOAdAX5xkAB1FbYAy5+NAN+HTQCw5rD/vuXX/2Mltf8zFYr/Gb1Z/zEwpf6YLfcAqmzeAFDKBQAbRWf+zBaB/7T8Pv7SAVv/km7+/9uiHADf/NUBOwghAM4Q9ACB0zAAa6DQAHA70QBtTdj+IhW5//ZjOP+zixP/uR0y/1RZEwBK+mL/4SrI/8DZzf/SEKcAY4RfASvmOQD+C8v/Y7w//3fB+/5QaTYA6LW9AbdFcP/Qq6X/L220/3tTpQCSojT/mgsE/5fjWv+SiWH+Pekp/14qN/9spOwAmET+AAqMg/8Kak/+856JAEOyQv6xe8b/Dz4iAMVYKv+VX7H/mADG/5X+cf/hWqP/fdn3ABIR4ACAQnj+wBkJ/zLdzQAx1EYA6f+kAALRCQDdNNv+rOD0/144zgHyswL/H1ukAeYuiv+95twAOS89/28LnQCxW5gAHOZiAGFXfgDGWZH/p09rAPlNoAEd6eb/lhVW/jwLwQCXJST+uZbz/+TUUwGsl7QAyambAPQ86gCO6wQBQ9o8AMBxSwF088//QaybAFEenP9QSCH+Eudt/45rFf59GoT/sBA7/5bJOgDOqckA0HniACisDv+WPV7/ODmc/408kf8tbJX/7pGb/9FVH/7ADNIAY2Jd/pgQlwDhudwAjess/6CsFf5HGh//DUBd/hw4xgCxPvgBtgjxAKZllP9OUYX/gd7XAbypgf/oB2EAMXA8/9nl+wB3bIoAJxN7/oMx6wCEVJEAguaU/xlKuwAF9Tb/udvxARLC5P/xymYAaXHKAJvrTwAVCbL/nAHvAMiUPQBz99L/Md2HADq9CAEjLgkAUUEF/zSeuf99dC7/SowN/9JcrP6TF0cA2eD9/nNstP+ROjD+27EY/5z/PAGak/IA/YZXADVL5QAww97/H68y/5zSeP/QI97/EvizAQIKZf+dwvj/nsxl/2j+xf9PPgQAsqxlAWCS+/9BCpwAAoml/3QE5wDy1wEAEyMd/yuhTwA7lfYB+0KwAMghA/9Qbo7/w6ERAeQ4Qv97L5H+hASkAEOurAAZ/XIAV2FXAfrcVABgW8j/JX07ABNBdgChNPH/7awG/7C///8BQYL+377mAGX95/+SI20A+h1NATEAEwB7WpsBFlYg/9rVQQBvXX8APF2p/wh/tgARug7+/Yn2/9UZMP5M7gD/+FxG/2PgiwC4Cf8BB6TQAM2DxgFX1scAgtZfAN2V3gAXJqv+xW7VACtzjP7XsXYAYDRCAXWe7QAOQLb/Lj+u/55fvv/hzbH/KwWO/6xj1P/0u5MAHTOZ/+R0GP4eZc8AE/aW/4bnBQB9huIBTUFiAOyCIf8Fbj4ARWx//wdxFgCRFFP+wqHn/4O1PADZ0bH/5ZTU/gODuAB1sbsBHA4f/7BmUAAyVJf/fR82/xWdhf8Ts4sB4OgaACJ1qv+n/Kv/SY3O/oH6IwBIT+wB3OUU/ynKrf9jTO7/xhbg/2zGw/8kjWAB7J47/2pkVwBu4gIA4+reAJpdd/9KcKT/Q1sC/xWRIf9m1on/r+Zn/qP2pgBd93T+p+Ac/9wCOQGrzlQAe+QR/xt4dwB3C5MBtC/h/2jIuf6lAnIATU7UAC2asf8YxHn+Up22AFoQvgEMk8UAX++Y/wvrRwBWknf/rIbWADyDxACh4YEAH4J4/l/IMwBp59L/OgmU/yuo3f987Y4AxtMy/i71ZwCk+FQAmEbQ/7R1sQBGT7kA80ogAJWczwDFxKEB9TXvAA9d9v6L8DH/xFgk/6ImewCAyJ0Brkxn/62pIv7YAav/cjMRAIjkwgBuljj+avafABO4T/+WTfD/m1CiAAA1qf8dl1YARF4QAFwHbv5idZX/+U3m//0KjADWfFz+I3brAFkwOQEWNaYAuJA9/7P/wgDW+D3+O272AHkVUf6mA+QAakAa/0Xohv/y3DX+LtxVAHGV9/9hs2f/vn8LAIfRtgBfNIEBqpDO/3rIzP+oZJIAPJCV/kY8KAB6NLH/9tNl/67tCAAHM3gAEx+tAH7vnP+PvcsAxIBY/+mF4v8efa3/yWwyAHtkO//+owMB3ZS1/9aIOf7etIn/z1g2/xwh+/9D1jQB0tBkAFGqXgCRKDUA4G/n/iMc9P/ix8P+7hHmANnZpP6pnd0A2i6iAcfPo/9sc6IBDmC7/3Y8TAC4n5gA0edH/iqkuv+6mTP+3au2/6KOrQDrL8EAB4sQAV+kQP8Q3aYA28UQAIQdLP9kRXX/POtY/ihRrQBHvj3/u1idAOcLFwDtdaQA4ajf/5pydP+jmPIBGCCqAH1icf6oE0wAEZ3c/ps0BQATb6H/R1r8/61u8AAKxnn//f/w/0J70gDdwtf+eaMR/+EHYwC+MbYAcwmFAegaiv/VRIQALHd6/7NiMwCVWmoARzLm/wqZdv+xRhkApVfNADeK6gDuHmEAcZvPAGKZfwAia9v+dXKs/0y0//7yObP/3SKs/jiiMf9TA///cd29/7wZ5P4QWFn/RxzG/hYRlf/zef7/a8pj/wnODgHcL5kAa4knAWExwv+VM8X+ujoL/2sr6AHIBg7/tYVB/t3kq/97PucB4+qz/yK91P70u/kAvg1QAYJZAQDfha0ACd7G/0J/SgCn2F3/m6jGAUKRAABEZi4BrFqaANiAS/+gKDMAnhEbAXzwMQDsyrD/l3zA/ybBvgBftj0Ao5N8//+lM/8cKBH+12BOAFaR2v4fJMr/VgkFAG8pyP/tbGEAOT4sAHW4DwEt8XQAmAHc/52lvAD6D4MBPCx9/0Hc+/9LMrgANVqA/+dQwv+IgX8BFRK7/y06of9HkyIArvkL/iONHQDvRLH/c246AO6+sQFX9ab/vjH3/5JTuP+tDif/ktdoAI7feACVyJv/1M+RARC12QCtIFf//yO1AHffoQHI317/Rga6/8BDVf8yqZgAkBp7/zjzs/4URIgAJ4y8/v3QBf/Ic4cBK6zl/5xouwCX+6cANIcXAJeZSACTxWv+lJ4F/+6PzgB+mYn/WJjF/gdEpwD8n6X/7042/xg/N/8m3l4A7bcM/87M0gATJ/b+HkrnAIdsHQGzcwAAdXZ0AYQG/P+RgaEBaUONAFIl4v/u4uT/zNaB/qJ7ZP+5eeoALWznAEIIOP+EiIAArOBC/q+dvADm3+L+8ttFALgOdwFSojgAcnsUAKJnVf8x72P+nIfXAG//p/4nxNYAkCZPAfmofQCbYZz/FzTb/5YWkAAslaX/KH+3AMRN6f92gdL/qofm/9Z3xgDp8CMA/TQH/3VmMP8VzJr/s4ix/xcCAwGVgln//BGfAUY8GgCQaxEAtL48/zi2O/9uRzb/xhKB/5XgV//fFZj/iha2//qczQDsLdD/T5TyAWVG0QBnTq4AZZCs/5iI7QG/wogAcVB9AZgEjQCbljX/xHT1AO9ySf4TUhH/fH3q/yg0vwAq0p7/m4SlALIFKgFAXCj/JFVN/7LkdgCJQmD+c+JCAG7wRf6Xb1AAp67s/+Nsa/+88kH/t1H/ADnOtf8vIrX/1fCeAUdLXwCcKBj/ZtJRAKvH5P+aIikA469LABXvwwCK5V8BTMAxAHV7VwHj4YIAfT4//wLGqwD+JA3+kbrOAJT/9P8jAKYAHpbbAVzk1ABcxjz+PoXI/8kpOwB97m3/tKPuAYx6UgAJFlj/xZ0v/5leOQBYHrYAVKFVALKSfACmpgf/FdDfAJy28gCbebkAU5yu/poQdv+6U+gB3zp5/x0XWAAjfX//qgWV/qQMgv+bxB0AoWCIAAcjHQGiJfsAAy7y/wDZvAA5ruIBzukCADm7iP57vQn/yXV//7okzADnGdgAUE5pABOGgf+Uy0QAjVF9/vilyP/WkIcAlzem/ybrWwAVLpoA3/6W/yOZtP99sB0BK2Ie/9h65v/poAwAObkM/vBxB/8FCRD+GltsAG3GywAIkygAgYbk/3y6KP9yYoT+poQXAGNFLAAJ8u7/uDU7AISBZv80IPP+k9/I/3tTs/6HkMn/jSU4AZc84/9aSZwBy6y7AFCXL/9eief/JL87/+HRtf9K19X+Bnaz/5k2wQEyAOcAaJ1IAYzjmv+24hD+YOFc/3MUqv4G+k4A+Eut/zVZBv8AtHYASK0BAEAIzgGuhd8AuT6F/9YLYgDFH9AAq6f0/xbntQGW2rkA96lhAaWL9/8veJUBZ/gzADxFHP4Zs8QAfAfa/jprUQC46Zz//EokAHa8QwCNXzX/3l6l/i49NQDOO3P/L+z6/0oFIAGBmu7/aiDiAHm7Pf8DpvH+Q6qs/x3Ysv8XyfwA/W7zAMh9OQBtwGD/NHPuACZ58//JOCEAwnaCAEtgGf+qHub+Jz/9ACQt+v/7Ae8AoNRcAS3R7QDzIVf+7VTJ/9QSnf7UY3//2WIQ/ous7wCoyYL/j8Gp/+6XwQHXaCkA7z2l/gID8gAWy7H+scwWAJWB1f4fCyn/AJ95/qAZcv+iUMgAnZcLAJqGTgHYNvwAMGeFAGncxQD9qE3+NbMXABh58AH/LmD/azyH/mLN+f8/+Xf/eDvT/3K0N/5bVe0AldRNAThJMQBWxpYAXdGgAEXNtv/0WisAFCSwAHp03QAzpycB5wE//w3FhgAD0SL/hzvKAKdkTgAv30wAuTw+ALKmewGEDKH/Pa4rAMNFkAB/L78BIixOADnqNAH/Fij/9l6SAFPkgAA8TuD/AGDS/5mv7ACfFUkAtHPE/oPhagD/p4YAnwhw/3hEwv+wxMb/djCo/12pAQBwyGYBShj+ABONBP6OPj8Ag7O7/02cm/93VqQAqtCS/9CFmv+Umzr/onjo/vzVmwDxDSoAXjKDALOqcACMU5f/N3dUAYwj7/+ZLUMB7K8nADaXZ/+eKkH/xO+H/lY1ywCVYS/+2CMR/0YDRgFnJFr/KBqtALgwDQCj29n/UQYB/92qbP7p0F0AZMn5/lYkI//Rmh4B48n7/wK9p/5kOQMADYApAMVkSwCWzOv/ka47AHj4lf9VN+EActI1/sfMdwAO90oBP/uBAENolwGHglAAT1k3/3Xmnf8ZYI8A1ZEFAEXxeAGV81//cioUAINIAgCaNRT/ST5tAMRmmAApDMz/eiYLAfoKkQDPfZQA9vTe/ykgVQFw1X4AovlWAUfGf/9RCRUBYicE/8xHLQFLb4kA6jvnACAwX//MH3IBHcS1/zPxp/5dbY4AaJAtAOsMtf80cKQATP7K/64OogA965P/K0C5/ul92QDzWKf+SjEIAJzMQgB81nsAJt12AZJw7AByYrEAl1nHAFfFcAC5laEALGClAPizFP+829j+KD4NAPOOjQDl487/rMoj/3Ww4f9SbiYBKvUO/xRTYQAxqwoA8nd4ABnoPQDU8JP/BHM4/5ER7/7KEfv/+RL1/2N17wC4BLP/9u0z/yXvif+mcKb/Ubwh/7n6jv82u60A0HDJAPYr5AFouFj/1DTE/zN1bP/+dZsALlsP/1cOkP9X48wAUxpTAZ9M4wCfG9UBGJdsAHWQs/6J0VIAJp8KAHOFyQDftpwBbsRd/zk86QAFp2n/msWkAGAiuv+ThSUB3GO+AAGnVP8UkasAwsX7/l9Ohf/8+PP/4V2D/7uGxP/YmaoAFHae/owBdgBWng8BLdMp/5MBZP5xdEz/039sAWcPMADBEGYBRTNf/2uAnQCJq+kAWnyQAWqhtgCvTOwByI2s/6M6aADptDT/8P0O/6Jx/v8m74r+NC6mAPFlIf6DupwAb9A+/3xeoP8frP4AcK44/7xjG/9DivsAfTqAAZyYrv+yDPf//FSeAFLFDv6syFP/JScuAWrPpwAYvSIAg7KQAM7VBACh4tIASDNp/2Etu/9OuN//sB37AE+gVv90JbIAUk3VAVJUjf/iZdQBr1jH//Ve9wGsdm3/prm+AIO1eABX/l3/hvBJ/yD1j/+Lomf/s2IS/tnMcACT33j/NQrzAKaMlgB9UMj/Dm3b/1vaAf/8/C/+bZx0/3MxfwHMV9P/lMrZ/xpV+f8O9YYBTFmp//It5gA7Yqz/ckmE/k6bMf+eflQAMa8r/xC2VP+dZyMAaMFt/0PdmgDJrAH+CKJYAKUBHf99m+X/HprcAWfvXADcAW3/ysYBAF4CjgEkNiwA6+Ke/6r71v+5TQkAYUryANujlf/wI3b/33JY/sDHAwBqJRj/yaF2/2FZYwHgOmf/ZceT/t48YwDqGTsBNIcbAGYDW/6o2OsA5eiIAGg8gQAuqO4AJ79DAEujLwCPYWL/ONioAajp/P8jbxb/XFQrABrIVwFb/ZgAyjhGAI4ITQBQCq8B/MdMABZuUv+BAcIAC4A9AVcOkf/93r4BD0iuAFWjVv46Yyz/LRi8/hrNDwAT5dL++EPDAGNHuACaxyX/l/N5/yYzS//JVYL+LEH6ADmT8/6SKzv/WRw1ACFUGP+zMxL+vUZTAAucswFihncAnm9vAHeaSf/IP4z+LQ0N/5rAAv5RSCoALqC5/ixwBgCS15UBGrBoAEQcVwHsMpn/s4D6/s7Bv/+mXIn+NSjvANIBzP6orSMAjfMtASQybf8P8sL/4596/7Cvyv5GOUgAKN84ANCiOv+3Yl0AD28MAB4ITP+Ef/b/LfJnAEW1D/8K0R4AA7N5APHo2gF7x1j/AtLKAbyCUf9eZdABZyQtAEzBGAFfGvH/paK7ACRyjADKQgX/JTiTAJgL8wF/Vej/+ofUAbmxcQBa3Ev/RfiSADJvMgBcFlAA9CRz/qNkUv8ZwQYBfz0kAP1DHv5B7Kr/oRHX/j+vjAA3fwQAT3DpAG2gKACPUwf/QRru/9mpjP9OXr3/AJO+/5NHuv5qTX//6Z3pAYdX7f/QDewBm20k/7Rk2gC0oxIAvm4JARE/e/+ziLT/pXt7/5C8Uf5H8Gz/GXAL/+PaM/+nMur/ck9s/x8Tc/+38GMA41eP/0jZ+P9mqV8BgZWVAO6FDAHjzCMA0HMaAWYI6gBwWI8BkPkOAPCerP5kcHcAwo2Z/ig4U/95sC4AKjVM/56/mgBb0VwArQ0QAQVI4v/M/pUAULjPAGQJev52Zav//MsA/qDPNgA4SPkBOIwN/wpAa/5bZTT/4bX4AYv/hADmkREA6TgXAHcB8f/VqZf/Y2MJ/rkPv/+tZ20Brg37/7JYB/4bO0T/CiEC//hhOwAaHpIBsJMKAF95zwG8WBgAuV7+/nM3yQAYMkYAeDUGAI5CkgDk4vn/aMDeAa1E2wCiuCT/j2aJ/50LFwB9LWIA613h/jhwoP9GdPMBmfk3/4EnEQHxUPQAV0UVAV7kSf9OQkH/wuPnAD2SV/+tmxf/cHTb/tgmC/+DuoUAXtS7AGQvWwDM/q//3hLX/q1EbP/j5E//Jt3VAKPjlv4fvhIAoLMLAQpaXv/crlgAo9Pl/8eINACCX93/jLzn/otxgP91q+z+MdwU/zsUq//kbbwAFOEg/sMQrgDj/ogBhydpAJZNzv/S7uIAN9SE/u85fACqwl3/+RD3/xiXPv8KlwoAT4uy/3jyygAa29UAPn0j/5ACbP/mIVP/US3YAeA+EQDW2X0AYpmZ/7Owav6DXYr/bT4k/7J5IP94/EYA3PglAMxYZwGA3Pv/7OMHAWoxxv88OGsAY3LuANzMXgFJuwEAWZoiAE7Zpf8Ow/n/Ceb9/82H9QAa/Af/VM0bAYYCcAAlniAA51vt/7+qzP+YB94AbcAxAMGmkv/oE7X/aY40/2cQGwH9yKUAw9kE/zS9kP97m6D+V4I2/054Pf8OOCkAGSl9/1eo9QDWpUYA1KkG/9vTwv5IXaT/xSFn/yuOjQCD4awA9GkcAERE4QCIVA3/gjko/otNOABUljUANl+dAJANsf5fc7oAdRd2//Sm8f8LuocAsmrL/2HaXQAr/S0ApJgEAIt27wBgARj+65nT/6huFP8y77AAcinoAMH6NQD+oG/+iHop/2FsQwDXmBf/jNHUACq9owDKKjL/amq9/75E2f/pOnUA5dzzAcUDBAAleDb+BJyG/yQ9q/6liGT/1OgOAFquCgDYxkH/DANAAHRxc//4ZwgA530S/6AcxQAeuCMB30n5/3sULv6HOCX/rQ3lAXehIv/1PUkAzX1wAIlohgDZ9h7/7Y6PAEGfZv9spL4A23Wt/yIleP7IRVAAH3za/koboP+6msf/R8f8AGhRnwERyCcA0z3AARruWwCU2QwAO1vV/wtRt/+B5nr/csuRAXe0Qv9IirQA4JVqAHdSaP/QjCsAYgm2/81lhv8SZSYAX8Wm/8vxkwA+0JH/hfb7AAKpDgAN97gAjgf+ACTIF/9Yzd8AW4E0/xW6HgCP5NIB9+r4/+ZFH/6wuof/7s00AYtPKwARsNn+IPNDAPJv6QAsIwn/43JRAQRHDP8mab8AB3Uy/1FPEAA/REH/nSRu/03xA//iLfsBjhnOAHh70QEc/u7/BYB+/1ve1/+iD78AVvBJAIe5Uf4s8aMA1NvS/3CimwDPZXYAqEg4/8QFNABIrPL/fhad/5JgO/+ieZj+jBBfAMP+yP5SlqIAdyuR/sysTv+m4J8AaBPt//V+0P/iO9UAddnFAJhI7QDcHxf+Dlrn/7zUQAE8Zfb/VRhWAAGxbQCSUyABS7bAAHfx4AC57Rv/uGVSAeslTf/9hhMA6PZ6ADxqswDDCwwAbULrAX1xOwA9KKQAr2jwAAIvu/8yDI0Awou1/4f6aABhXN7/2ZXJ/8vxdv9Pl0MAeo7a/5X17wCKKsj+UCVh/3xwp/8kilf/gh2T//FXTv/MYRMBsdEW//fjf/5jd1P/1BnGARCzswCRTaz+WZkO/9q9pwBr6Tv/IyHz/ixwcP+hf08BzK8KACgViv5odOQAx1+J/4W+qP+SpeoBt2MnALfcNv7/3oUAott5/j/vBgDhZjb/+xL2AAQigQGHJIMAzjI7AQ9htwCr2If/ZZgr/5b7WwAmkV8AIswm/rKMU/8ZgfP/TJAlAGokGv52kKz/RLrl/2uh1f8uo0T/lar9ALsRDwDaoKX/qyP2AWANEwCly3UA1mvA//R7sQFkA2gAsvJh//tMgv/TTSoB+k9G/z/0UAFpZfYAPYg6Ae5b1QAOO2L/p1RNABGELv45r8X/uT64AExAzwCsr9D+r0olAIob0/6UfcIACllRAKjLZf8r1dEB6/U2AB4j4v8JfkYA4n1e/px1FP85+HAB5jBA/6RcpgHg1ub/JHiPADcIK//7AfUBamKlAEprav41BDb/WrKWAQN4e//0BVkBcvo9//6ZUgFNDxEAOe5aAV/f5gDsNC/+Z5Sk/3nPJAESELn/SxRKALsLZQAuMIH/Fu/S/03sgf9vTcz/PUhh/8fZ+/8q18wAhZHJ/znmkgHrZMYAkkkj/mzGFP+2T9L/UmeIAPZssAAiETz/E0py/qiqTv+d7xT/lSmoADp5HABPs4b/53mH/67RYv/zer4Aq6bNANR0MAAdbEL/ot62AQ53FQDVJ/n//t/k/7elxgCFvjAAfNBt/3evVf8J0XkBMKu9/8NHhgGI2zP/tluN/jGfSAAjdvX/cLrj/zuJHwCJLKMAcmc8/gjVlgCiCnH/wmhIANyDdP+yT1wAy/rV/l3Bvf+C/yL+1LyXAIgRFP8UZVP/1M6mAOXuSf+XSgP/qFfXAJu8hf+mgUkA8E+F/7LTUf/LSKP+wailAA6kx/4e/8wAQUhbAaZKZv/IKgD/wnHj/0IX0ADl2GT/GO8aAArpPv97CrIBGiSu/3fbxwEto74AEKgqAKY5xv8cGhoAfqXnAPtsZP895Xn/OnaKAEzPEQANInD+WRCoACXQaf8jydf/KGpl/gbvcgAoZ+L+9n9u/z+nOgCE8I4ABZ5Y/4FJnv9eWZIA5jaSAAgtrQBPqQEAc7r3AFRAgwBD4P3/z71AAJocUQEtuDb/V9Tg/wBgSf+BIesBNEJQ//uum/8EsyUA6qRd/l2v/QDGRVf/4GouAGMd0gA+vHL/LOoIAKmv9/8XbYn/5bYnAMClXv71ZdkAv1hgAMReY/9q7gv+NX7zAF4BZf8ukwIAyXx8/40M2gANpp0BMPvt/5v6fP9qlJL/tg3KABw9pwDZmAj+3IIt/8jm/wE3QVf/Xb9h/nL7DgAgaVwBGs+NABjPDf4VMjD/upR0/9Mr4QAlIqL+pNIq/0QXYP+21gj/9XWJ/0LDMgBLDFP+UIykAAmlJAHkbuMA8RFaARk01AAG3wz/i/M5AAxxSwH2t7//1b9F/+YPjgABw8T/iqsv/0A/agEQqdb/z644AVhJhf+2hYwAsQ4Z/5O4Nf8K46H/eNj0/0lN6QCd7osBO0HpAEb72AEpuJn/IMtwAJKT/QBXZW0BLFKF//SWNf9emOj/O10n/1iT3P9OUQ0BIC/8/6ATcv9dayf/dhDTAbl30f/j23/+WGns/6JuF/8kpm7/W+zd/0LqdABvE/T+CukaACC3Bv4Cv/IA2pw1/ik8Rv+o7G8Aebl+/+6Oz/83fjQA3IHQ/lDMpP9DF5D+2ihs/3/KpADLIQP/Ap4AACVgvP/AMUoAbQQAAG+nCv5b2of/y0Kt/5bC4gDJ/Qb/rmZ5AM2/bgA1wgQAUSgt/iNmj/8MbMb/EBvo//xHugGwbnIAjgN1AXFNjgATnMUBXC/8ADXoFgE2EusALiO9/+zUgQACYND+yO7H/zuvpP+SK+cAwtk0/wPfDACKNrL+VevPAOjPIgAxNDL/pnFZ/wot2P8+rRwAb6X2AHZzW/+AVDwAp5DLAFcN8wAWHuQBsXGS/4Gq5v78mYH/keErAEbnBf96aX7+VvaU/24lmv7RA1sARJE+AOQQpf833fn+stJbAFOS4v5FkroAXdJo/hAZrQDnuiYAvXqM//sNcP9pbl0A+0iqAMAX3/8YA8oB4V3kAJmTx/5tqhYA+GX2/7J8DP+y/mb+NwRBAH3WtAC3YJMALXUX/oS/+QCPsMv+iLc2/5LqsQCSZVb/LHuPASHRmADAWin+Uw99/9WsUgDXqZAAEA0iACDRZP9UEvkBxRHs/9m65gAxoLD/b3Zh/+1o6wBPO1z+RfkL/yOsSgETdkQA3nyl/7RCI/9WrvYAK0pv/36QVv/k6lsA8tUY/kUs6//ctCMACPgH/2YvXP/wzWb/cearAR+5yf/C9kb/ehG7AIZGx/+VA5b/dT9nAEFoe//UNhMBBo1YAFOG8/+INWcAqRu0ALExGABvNqcAwz3X/x8BbAE8KkYAuQOi/8KVKP/2fyb+vncm/z13CAFgodv/KsvdAbHypP/1nwoAdMQAAAVdzf6Af7MAfe32/5Wi2f9XJRT+jO7AAAkJwQBhAeIAHSYKAACIP//lSNL+JoZc/07a0AFoJFT/DAXB//KvPf+/qS4Bs5OT/3G+i/59rB8AA0v8/tckDwDBGxgB/0WV/26BdgDLXfkAiolA/iZGBgCZdN4AoUp7AMFjT/92O17/PQwrAZKxnQAuk78AEP8mAAszHwE8OmL/b8JNAZpb9ACMKJABrQr7AMvRMv5sgk4A5LRaAK4H+gAfrjwAKaseAHRjUv92wYv/u63G/tpvOAC5e9gA+Z40ADS0Xf/JCVv/OC2m/oSby/866G4ANNNZ//0AogEJV7cAkYgsAV569QBVvKsBk1zGAAAIaAAeX64A3eY0Aff36/+JrjX/IxXM/0fj1gHoUsIACzDj/6pJuP/G+/z+LHAiAINlg/9IqLsAhId9/4poYf/uuKj/82hU/4fY4v+LkO0AvImWAVA4jP9Wqaf/wk4Z/9wRtP8RDcEAdYnU/43glwAx9K8AwWOv/xNjmgH/QT7/nNI3//L0A//6DpUAnljZ/53Phv776BwALpz7/6s4uP/vM+oAjoqD/xn+8wEKycIAP2FLANLvogDAyB8BddbzABhH3v42KOj/TLdv/pAOV//WT4j/2MTUAIQbjP6DBf0AfGwT/xzXSwBM3jf+6bY/AESrv/40b97/CmlN/1Cq6wCPGFj/Led5AJSB4AE99lQA/S7b/+9MIQAxlBL+5iVFAEOGFv6Om14AH53T/tUqHv8E5Pf+/LAN/ycAH/7x9P//qi0K/v3e+QDecoQA/y8G/7SjswFUXpf/WdFS/uU0qf/V7AAB1jjk/4d3l/9wycEAU6A1/gaXQgASohEA6WFbAIMFTgG1eDX/dV8//+11uQC/foj/kHfpALc5YQEvybv/p6V3AS1kfgAVYgb+kZZf/3g2mADRYmgAj28e/riU+QDr2C4A+MqU/zlfFgDy4aMA6ffo/0erE/9n9DH/VGdd/0R59AFS4A0AKU8r//nOp//XNBX+wCAW//dvPABlSib/FltU/h0cDf/G59f+9JrIAN+J7QDThA4AX0DO/xE+9//pg3kBXRdNAM3MNP5RvYgAtNuKAY8SXgDMK4z+vK/bAG9ij/+XP6L/0zJH/hOSNQCSLVP+slLu/xCFVP/ixl3/yWEU/3h2I/9yMuf/ouWc/9MaDAByJ3P/ztSGAMXZoP90gV7+x9fb/0vf+QH9dLX/6Ndo/+SC9v+5dVYADgUIAO8dPQHtV4X/fZKJ/syo3wAuqPUAmmkWANzUof9rRRj/idq1//FUxv+CetP/jQiZ/76xdgBgWbIA/xAw/npgaf91Nuj/In5p/8xDpgDoNIr/05MMABk2BwAsD9f+M+wtAL5EgQFqk+EAHF0t/uyND/8RPaEA3HPAAOyRGP5vqKkA4Do//3+kvABS6ksB4J6GANFEbgHZptkARuGmAbvBj/8QB1j/Cs2MAHXAnAEROCYAG3xsAavXN/9f/dQAm4eo//aymf6aREoA6D1g/mmEOwAhTMcBvbCC/wloGf5Lxmb/6QFwAGzcFP9y5kYAjMKF/zmepP6SBlD/qcRhAVW3ggBGnt4BO+3q/2AZGv/or2H/C3n4/lgjwgDbtPz+SgjjAMPjSQG4bqH/MemkAYA1LwBSDnn/wb46ADCudf+EFyAAKAqGARYzGf/wC7D/bjmSAHWP7wGdZXb/NlRMAM24Ev8vBEj/TnBV/8EyQgFdEDT/CGmGAAxtSP86nPsAkCPMACygdf4ya8IAAUSl/29uogCeUyj+TNbqADrYzf+rYJP/KONyAbDj8QBG+bcBiFSL/zx69/6PCXX/sa6J/kn3jwDsuX7/Phn3/y1AOP+h9AYAIjk4AWnKUwCAk9AABmcK/0qKQf9hUGT/1q4h/zKGSv9ul4L+b1SsAFTHS/74O3D/CNiyAQm3XwDuGwj+qs3cAMPlhwBiTO3/4lsaAVLbJ//hvscB2ch5/1GzCP+MQc4Ass9X/vr8Lv9oWW4B/b2e/5DWnv+g9Tb/NbdcARXIwv+SIXEB0QH/AOtqK/+nNOgAneXdADMeGQD63RsBQZNX/097xABBxN//TCwRAVXxRADKt/n/QdTU/wkhmgFHO1AAr8I7/41ICQBkoPQA5tA4ADsZS/5QwsIAEgPI/qCfcwCEj/cBb105/zrtCwGG3of/eqNsAXsrvv/7vc7+ULZI/9D24AERPAkAoc8mAI1tWwDYD9P/iE5uAGKjaP8VUHn/rbK3AX+PBABoPFL+1hAN/2DuIQGelOb/f4E+/zP/0v8+jez+nTfg/3In9ADAvPr/5Ew1AGJUUf+tyz3+kzI3/8zrvwA0xfQAWCvT/hu/dwC855oAQlGhAFzBoAH643gAezfiALgRSACFqAr+Foec/ykZZ/8wyjoAupVR/7yG7wDrtb3+2Yu8/0owUgAu2uUAvf37ADLlDP/Tjb8BgPQZ/6nnev5WL73/hLcX/yWylv8zif0AyE4fABZpMgCCPAAAhKNb/hfnuwDAT+8AnWak/8BSFAEYtWf/8AnqAAF7pP+F6QD/yvLyADy69QDxEMf/4HSe/r99W//gVs8AeSXn/+MJxv8Pme//eejZ/ktwUgBfDDn+M9Zp/5TcYQHHYiQAnNEM/grUNADZtDf+1Kro/9gUVP+d+ocAnWN//gHOKQCVJEYBNsTJ/1d0AP7rq5YAG6PqAMqHtADQXwD+e5xdALc+SwCJ67YAzOH//9aL0v8Ccwj/HQxvADScAQD9Ffv/JaUf/gyC0wBqEjX+KmOaAA7ZPf7YC1z/yMVw/pMmxwAk/Hj+a6lNAAF7n//PS2YAo6/EACwB8AB4urD+DWJM/+188f/okrz/yGDgAMwfKQDQyA0AFeFg/6+cxAD30H4APrj0/gKrUQBVc54ANkAt/xOKcgCHR80A4y+TAdrnQgD90RwA9A+t/wYPdv4QltD/uRYy/1Zwz/9LcdcBP5Ir/wThE/7jFz7/Dv/W/i0Izf9XxZf+0lLX//X49/+A+EYA4fdXAFp4RgDV9VwADYXiAC+1BQFco2n/Bh6F/uiyPf/mlRj/EjGeAORkPf508/v/TUtcAVHbk/9Mo/7+jdX2AOglmP5hLGQAySUyAdT0OQCuq7f/+UpwAKacHgDe3WH/811J/vtlZP/Y2V3//oq7/46+NP87y7H/yF40AHNynv+lmGgBfmPi/3ad9AFryBAAwVrlAHkGWACcIF3+ffHT/w7tnf+lmhX/uOAW//oYmP9xTR8A96sX/+2xzP80iZH/wrZyAODqlQAKb2cByYEEAO6OTgA0Bij/btWl/jzP/QA+10UAYGEA/zEtygB4eRb/64swAcYtIv+2MhsBg9Jb/y42gACve2n/xo1O/kP07//1Nmf+Tiby/wJc+f77rlf/iz+QABhsG/8iZhIBIhaYAELldv4yj2MAkKmVAXYemACyCHkBCJ8SAFpl5v+BHXcARCQLAei3NwAX/2D/oSnB/z+L3gAPs/MA/2QP/1I1hwCJOZUBY/Cq/xbm5P4xtFL/PVIrAG712QDHfT0ALv00AI3F2wDTn8EAN3lp/rcUgQCpd6r/y7KL/4cotv+sDcr/QbKUAAjPKwB6NX8BSqEwAOPWgP5WC/P/ZFYHAfVEhv89KxUBmFRe/748+v7vduj/1oglAXFMa/9daGQBkM4X/26WmgHkZ7kA2jEy/odNi/+5AU4AAKGU/2Ed6f/PlJX/oKgAAFuAq/8GHBP+C2/3ACe7lv+K6JUAdT5E/z/YvP/r6iD+HTmg/xkM8QGpPL8AIION/+2fe/9exV7+dP4D/1yzYf55YVz/qnAOABWV+AD44wMAUGBtAEvASgEMWuL/oWpEAdByf/9yKv/+ShpK//ezlv55jDwAk0bI/9Yoof+hvMn/jUGH//Jz/AA+L8oAtJX//oI37QClEbr/CqnCAJxt2v9wjHv/aIDf/rGObP95Jdv/gE0S/29sFwFbwEsArvUW/wTsPv8rQJkB463+AO16hAF/Wbr/jlKA/vxUrgBas7EB89ZX/2c8ov/Qgg7/C4KLAM6B2/9e2Z3/7+bm/3Rzn/6ka18AM9oCAdh9xv+MyoD+C19E/zcJXf6umQb/zKxgAEWgbgDVJjH+G1DVAHZ9cgBGRkP/D45J/4N6uf/zFDL+gu0oANKfjAHFl0H/VJlCAMN+WgAQ7uwBdrtm/wMYhf+7ReYAOMVcAdVFXv9QiuUBzgfmAN5v5gFb6Xf/CVkHAQJiAQCUSoX/M/a0/+SxcAE6vWz/wsvt/hXRwwCTCiMBVp3iAB+ji/44B0v/Plp0ALU8qQCKotT+UacfAM1acP8hcOMAU5d1AbHgSf+ukNn/5sxP/xZN6P9yTuoA4Dl+/gkxjQDyk6UBaLaM/6eEDAF7RH8A4VcnAftsCADGwY8BeYfP/6wWRgAyRHT/Za8o//hp6QCmywcAbsXaANf+Gv6o4v0AH49gAAtnKQC3gcv+ZPdK/9V+hADSkywAx+obAZQvtQCbW54BNmmv/wJOkf5mml8AgM9//jR87P+CVEcA3fPTAJiqzwDeascAt1Re/lzIOP+KtnMBjmCSAIWI5ABhEpYAN/tCAIxmBADKZ5cAHhP4/zO4zwDKxlkAN8Xh/qlf+f9CQUT/vOp+AKbfZAFw7/QAkBfCADontgD0LBj+r0Sz/5h2mgGwooIA2XLM/q1+Tv8h3h7/JAJb/wKP8wAJ69cAA6uXARjX9f+oL6T+8ZLPAEWBtABE83EAkDVI/vstDgAXbqgARERP/25GX/6uW5D/Ic5f/4kpB/8Tu5n+I/9w/wmRuf4ynSUAC3AxAWYIvv/q86kBPFUXAEonvQB0Me8ArdXSAC6hbP+fliUAxHi5/yJiBv+Zwz7/YeZH/2Y9TAAa1Oz/pGEQAMY7kgCjF8QAOBg9ALViwQD7k+X/Yr0Y/y42zv/qUvYAt2cmAW0+zAAK8OAAkhZ1/46aeABF1CMA0GN2AXn/A/9IBsIAdRHF/30PFwCaT5kA1l7F/7k3k/8+/k7+f1KZAG5mP/9sUqH/abvUAVCKJwA8/13/SAy6ANL7HwG+p5D/5CwT/oBD6ADW+Wv+iJFW/4QusAC9u+P/0BaMANnTdAAyUbr+i/ofAB5AxgGHm2QAoM4X/rui0/8QvD8A/tAxAFVUvwDxwPL/mX6RAeqiov/mYdgBQId+AL6U3wE0ACv/HCe9AUCI7gCvxLkAYuLV/3+f9AHirzwAoOmOAbTzz/9FmFkBH2UVAJAZpP6Lv9EAWxl5ACCTBQAnunv/P3Pm/12nxv+P1dz/s5wT/xlCegDWoNn/Ai0+/2pPkv4ziWP/V2Tn/6+R6P9luAH/rgl9AFIloQEkco3/MN6O//W6mgAFrt3+P3Kb/4c3oAFQH4cAfvqzAezaLQAUHJEBEJNJAPm9hAERvcD/347G/0gUD//6Ne3+DwsSABvTcf7Vazj/rpOS/2B+MAAXwW0BJaJeAMed+f4YgLv/zTGy/l2kKv8rd+sBWLft/9rSAf9r/ioA5gpj/6IA4gDb7VsAgbLLANAyX/7O0F//979Z/m7qT/+lPfMAFHpw//b2uf5nBHsA6WPmAdtb/P/H3hb/s/Xp/9Px6gBv+sD/VVSIAGU6Mv+DrZz+dy0z/3bpEP7yWtYAXp/bAQMD6v9iTFz+UDbmAAXk5/41GN//cTh2ARSEAf+r0uwAOPGe/7pzE/8I5a4AMCwAAXJypv8GSeL/zVn0AInjSwH4rTgASnj2/ncDC/9ReMb/iHpi/5Lx3QFtwk7/3/FGAdbIqf9hvi//L2eu/2NcSP526bT/wSPp/hrlIP/e/MYAzCtH/8dUrACGZr4Ab+5h/uYo5gDjzUD+yAzhAKYZ3gBxRTP/j58YAKe4SgAd4HT+ntDpAMF0fv/UC4X/FjqMAcwkM//oHisA60a1/0A4kv6pElT/4gEN/8gysP801fX+qNFhAL9HNwAiTpwA6JA6AblKvQC6jpX+QEV//6HLk/+wl78AiOfL/qO2iQChfvv+6SBCAETPQgAeHCUAXXJgAf5c9/8sq0UAyncL/7x2MgH/U4j/R1IaAEbjAgAg63kBtSmaAEeG5f7K/yQAKZgFAJo/Sf8itnwAed2W/xrM1QEprFcAWp2S/22CFABHa8j/82a9AAHDkf4uWHUACM7jAL9u/f9tgBT+hlUz/4mxcAHYIhb/gxDQ/3mVqgByExcBplAf/3HwegDos/oARG60/tKqdwDfbKT/z0/p/xvl4v7RYlH/T0QHAIO5ZACqHaL/EaJr/zkVCwFkyLX/f0GmAaWGzABop6gAAaRPAJKHOwFGMoD/ZncN/uMGhwCijrP/oGTeABvg2wGeXcP/6o2JABAYff/uzi//YRFi/3RuDP9gc00AW+Po//j+T/9c5Qb+WMaLAM5LgQD6Tc7/jfR7AYpF3AAglwYBg6cW/+1Ep/7HvZYAo6uK/zO8Bv9fHYn+lOKzALVr0P+GH1L/l2Ut/4HK4QDgSJMAMIqX/8NAzv7t2p4Aah2J/v296f9nDxH/wmH/ALItqf7G4ZsAJzB1/4dqcwBhJrUAli9B/1OC5f72JoEAXO+a/ltjfwChbyH/7tny/4O5w//Vv57/KZbaAISpgwBZVPwBq0aA/6P4y/4BMrT/fExVAftvUABjQu//mu22/91+hf5KzGP/QZN3/2M4p/9P+JX/dJvk/+0rDv5FiQv/FvrxAVt6j//N+fMA1Bo8/zC2sAEwF7//y3mY/i1K1f8+WhL+9aPm/7lqdP9TI58ADCEC/1AiPgAQV67/rWVVAMokUf6gRcz/QOG7ADrOXgBWkC8A5Vb1AD+RvgElBScAbfsaAImT6gCieZH/kHTO/8Xouf+3voz/SQz+/4sU8v+qWu//YUK7//W1h/7eiDQA9QUz/ssvTgCYZdgASRd9AP5gIQHr0kn/K9FYAQeBbQB6aOT+qvLLAPLMh//KHOn/QQZ/AJ+QRwBkjF8ATpYNAPtrdgG2On3/ASZs/4290f8Im30BcaNb/3lPvv+G72z/TC/4AKPk7wARbwoAWJVL/9fr7wCnnxj/L5ds/2vRvADp52P+HMqU/64jiv9uGET/AkW1AGtmUgBm7QcAXCTt/92iUwE3ygb/h+qH/xj63gBBXqj+9fjS/6dsyf7/oW8AzQj+AIgNdABksIT/K9d+/7GFgv+eT5QAQ+AlAQzOFf8+Im4B7Wiv/1CEb/+OrkgAVOW0/mmzjABA+A//6YoQAPVDe/7aedT/P1/aAdWFif+PtlL/MBwLAPRyjQHRr0z/nbWW/7rlA/+knW8B572LAHfKvv/aakD/ROs//mAarP+7LwsB1xL7/1FUWQBEOoAAXnEFAVyB0P9hD1P+CRy8AO8JpAA8zZgAwKNi/7gSPADZtosAbTt4/wTA+wCp0vD/Jaxc/pTT9f+zQTQA/Q1zALmuzgFyvJX/7VqtACvHwP9YbHEANCNMAEIZlP/dBAf/l/Fy/77R6ABiMscAl5bV/xJKJAE1KAcAE4dB/xqsRQCu7VUAY18pAAM4EAAnoLH/yGra/rlEVP9buj3+Q4+N/w30pv9jcsYAx26j/8ESugB87/YBbkQWAALrLgHUPGsAaSppAQ7mmAAHBYMAjWia/9UDBgCD5KL/s2QcAed7Vf/ODt8B/WDmACaYlQFiiXoA1s0D/+KYs/8GhYkAnkWM/3Gimv+086z/G71z/48u3P/VhuH/fh1FALwriQHyRgkAWsz//+eqkwAXOBP+OH2d/zCz2v9Ptv3/JtS/ASnrfABglxwAh5S+AM35J/40YIj/1CyI/0PRg//8ghf/24AU/8aBdgBsZQsAsgWSAT4HZP+17F7+HBqkAEwWcP94Zk8AysDlAciw1wApQPT/zrhOAKctPwGgIwD/OwyO/8wJkP/bXuUBehtwAL1pbf9A0Er/+383AQLixgAsTNEAl5hN/9IXLgHJq0X/LNPnAL4l4P/1xD7/qbXe/yLTEQB38cX/5SOYARVFKP+y4qEAlLPBANvC/gEozjP/51z6AUOZqgAVlPEAqkVS/3kS5/9ccgMAuD7mAOHJV/+SYKL/tfLcAK273QHiPqr/OH7ZAXUN4/+zLO8AnY2b/5DdUwDr0dAAKhGlAftRhQB89cn+YdMY/1PWpgCaJAn/+C9/AFrbjP+h2Sb+1JM//0JUlAHPAwEA5oZZAX9Oev/gmwH/UohKALKc0P+6GTH/3gPSAeWWvv9VojT/KVSN/0l7VP5dEZYAdxMcASAW1/8cF8z/jvE0/+Q0fQAdTM8A16f6/q+k5gA3z2kBbbv1/6Es3AEpZYD/pxBeAF3Wa/92SAD+UD3q/3mvfQCLqfsAYSeT/vrEMf+ls27+30a7/xaOfQGas4r/drAqAQqumQCcXGYAqA2h/48QIAD6xbT/y6MsAVcgJAChmRT/e/wPABnjUAA8WI4AERbJAZrNTf8nPy8ACHqNAIAXtv7MJxP/BHAd/xckjP/S6nT+NTI//3mraP+g214AV1IO/ucqBQCli3/+Vk4mAII8Qv7LHi3/LsR6Afk1ov+Ij2f+19JyAOcHoP6pmCr/by32AI6Dh/+DR8z/JOILAAAc8v/hitX/9y7Y/vUDtwBs/EoBzhow/8029v/TxiT/eSMyADTYyv8mi4H+8kmUAEPnjf8qL8wATnQZAQThv/8Gk+QAOlixAHql5f/8U8n/4KdgAbG4nv/yabMB+MbwAIVCywH+JC8ALRhz/3c+/gDE4br+e42sABpVKf/ib7cA1eeXAAQ7B//uipQAQpMh/x/2jf/RjXT/aHAfAFihrABT1+b+L2+XAC0mNAGELcwAioBt/ul1hv/zvq3+8ezwAFJ/7P4o36H/brbh/3uu7wCH8pEBM9GaAJYDc/7ZpPz/N5xFAVRe///oSS0BFBPU/2DFO/5g+yEAJsdJAUCs9/91dDj/5BESAD6KZwH25aT/9HbJ/lYgn/9tIokBVdO6AArBwf56wrEAeu5m/6LaqwBs2aEBnqoiALAvmwG15Av/CJwAABBLXQDOYv8BOpojAAzzuP5DdUL/5uV7AMkqbgCG5LL+umx2/zoTmv9SqT7/co9zAe/EMv+tMMH/kwJU/5aGk/5f6EkAbeM0/r+JCgAozB7+TDRh/6TrfgD+fLwASrYVAXkdI//xHgf+VdrW/wdUlv5RG3X/oJ+Y/kIY3f/jCjwBjYdmANC9lgF1s1wAhBaI/3jHHAAVgU/+tglBANqjqQD2k8b/ayaQAU6vzf/WBfr+L1gd/6QvzP8rNwb/g4bP/nRk1gBgjEsBatyQAMMgHAGsUQX/x7M0/yVUywCqcK4ACwRbAEX0GwF1g1wAIZiv/4yZa//7hyv+V4oE/8bqk/55mFT/zWWbAZ0JGQBIahH+bJkA/73lugDBCLD/rpXRAO6CHQDp1n4BPeJmADmjBAHGbzP/LU9OAXPSCv/aCRn/novG/9NSu/5QhVMAnYHmAfOFhv8oiBAATWtP/7dVXAGxzMoAo0eT/5hFvgCsM7wB+tKs/9PycQFZWRr/QEJv/nSYKgChJxv/NlD+AGrRcwFnfGEA3eZi/x/nBgCywHj+D9nL/3yeTwBwkfcAXPowAaO1wf8lL47+kL2l/y6S8AAGS4AAKZ3I/ld51QABcewABS36AJAMUgAfbOcA4e93/6cHvf+75IT/br0iAF4szAGiNMUATrzx/jkUjQD0ki8BzmQzAH1rlP4bw00AmP1aAQePkP8zJR8AIncm/wfFdgCZvNMAlxR0/vVBNP+0/W4BL7HRAKFjEf923soAfbP8AXs2fv+ROb8AN7p5AArzigDN0+X/fZzx/pScuf/jE7z/fCkg/x8izv4ROVMAzBYl/ypgYgB3ZrgBA74cAG5S2v/IzMD/yZF2AHXMkgCEIGIBwMJ5AGqh+AHtWHwAF9QaAM2rWv/4MNgBjSXm/3zLAP6eqB7/1vgVAHC7B/9Lhe//SuPz//qTRgDWeKIApwmz/xaeEgDaTdEBYW1R//Qhs/85NDn/QazS//lH0f+Oqe4Anr2Z/67+Z/5iIQ4AjUzm/3GLNP8POtQAqNfJ//jM1wHfRKD/OZq3/i/neQBqpokAUYiKAKUrMwDniz0AOV87/nZiGf+XP+wBXr76/6m5cgEF+jr/S2lhAdffhgBxY6MBgD5wAGNqkwCjwwoAIc22ANYOrv+BJuf/NbbfAGIqn//3DSgAvNKxAQYVAP//PZT+iS2B/1kadP5+JnIA+zLy/nmGgP/M+af+pevXAMqx8wCFjT4A8IK+AW6v/wAAFJIBJdJ5/wcnggCO+lT/jcjPAAlfaP8L9K4Ahuh+AKcBe/4QwZX/6OnvAdVGcP/8dKD+8t7c/81V4wAHuToAdvc/AXRNsf8+9cj+PxIl/2s16P4y3dMAotsH/gJeKwC2Prb+oE7I/4eMqgDruOQArzWK/lA6Tf+YyQIBP8QiAAUeuACrsJoAeTvOACZjJwCsUE3+AIaXALoh8f5e/d//LHL8AGx+Of/JKA3/J+Ub/yfvFwGXeTP/mZb4AArqrv929gT+yPUmAEWh8gEQspYAcTiCAKsfaQAaWGz/MSpqAPupQgBFXZUAFDn+AKQZbwBavFr/zATFACjVMgHUYIT/WIq0/uSSfP+49vcAQXVW//1m0v7+eSQAiXMD/zwY2ACGEh0AO+JhALCORwAH0aEAvVQz/pv6SADVVOv/Ld7gAO6Uj/+qKjX/Tqd1ALoAKP99sWf/ReFCAOMHWAFLrAYAqS3jARAkRv8yAgn/i8EWAI+35/7aRTIA7DihAdWDKgCKkSz+iOUo/zE/I/89kfX/ZcAC/uincQCYaCYBebnaAHmL0/538CMAQb3Z/ruzov+gu+YAPvgO/zxOYQD/96P/4Ttb/2tHOv/xLyEBMnXsANuxP/70WrMAI8LX/71DMv8Xh4EAaL0l/7k5wgAjPuf/3PhsAAznsgCPUFsBg11l/5AnAgH/+rIABRHs/osgLgDMvCb+9XM0/79xSf6/bEX/FkX1ARfLsgCqY6oAQfhvACVsmf9AJUUAAFg+/lmUkP+/ROAB8Sc1ACnL7f+RfsL/3Sr9/xljlwBh/d8BSnMx/wavSP87sMsAfLf5AeTkYwCBDM/+qMDD/8ywEP6Y6qsATSVV/yF4h/+OwuMBH9Y6ANW7ff/oLjz/vnQq/peyE/8zPu3+zOzBAMLoPACsIp3/vRC4/mcDX/+N6ST+KRkL/xXDpgB29S0AQ9WV/58MEv+7pOMBoBkFAAxOwwErxeEAMI4p/sSbPP/fxxIBkYicAPx1qf6R4u4A7xdrAG21vP/mcDH+Sart/+e34/9Q3BQAwmt/AX/NZQAuNMUB0qsk/1gDWv84l40AYLv//ypOyAD+RkYB9H2oAMxEigF810YAZkLI/hE05AB13I/+y/h7ADgSrv+6l6T/M+jQAaDkK//5HRkBRL4/AA0AAAAA/wAAAAD1AAAAAAAA+wAAAAAAAP0AAAAA8wAAAAAHAAAAAAADAAAAAPMAAAAABQAAAAAAAAAACwAAAAAACwAAAADzAAAAAAAA/QAAAAAA/wAAAAADAAAAAPUAAAAAAAAADwAAAAAA/wAAAAD/AAAAAAcAAAAABQ=="),a(t,33676,"AQ=="),a(t,33712,"AQ=="),a(t,33744,"4Ot6fDtBuK4WVuP68Z/EatoJjeucMrH9hmIFFl9JuABfnJW8o1CMJLHQsVWcg+9bBERcxFgcjobYIk7d0J8RV+z///////////////////////////////////////9/7f///////////////////////////////////////3/u////////////////////////////////////////fw=="),a(t,33936,"CMm882fmCWo7p8qEha5nuyv4lP5y82488TYdXzr1T6XRguatf1IOUR9sPiuMaAWba71B+6vZgx95IX4TGc3gWyKuKNeYL4pCzWXvI5FEN3EvO03sz/vAtbzbiYGl27XpOLVI81vCVjkZ0AW28RHxWZtPGa+kgj+SGIFt2tVeHKtCAgOjmKoH2L5vcEUBW4MSjLLkTr6FMSTitP/Vw30MVW+Je/J0Xb5ysZYWO/6x3oA1Esclpwbcm5Qmac908ZvB0krxnsFpm+TjJU84hke+77XVjIvGncEPZZysd8yhDCR1AitZbyzpLYPkpm6qhHRK1PtBvdypsFy1UxGD2oj5dqvfZu5SUT6YEDK0LW3GMag/IfuYyCcDsOQO777Hf1m/wo+oPfML4MYlpwqTR5Gn1W+CA+BRY8oGcG4OCmcpKRT8L9JGhQq3JybJJlw4IRsu7SrEWvxtLE3fs5WdEw04U95jr4tUcwplqLJ3PLsKanbmru1HLsnCgTs1ghSFLHKSZAPxTKHov6IBMEK8S2YaqJGX+NBwi0vCML5UBqNRbMcYUu/WGeiS0RCpZVUkBpnWKiBxV4U1DvS40bsycKBqEMjQ0rgWwaQZU6tBUQhsNx6Z647fTHdIJ6hIm+G1vLA0Y1rJxbMMHDnLikHjSqrYTnPjY3dPypxbo7iy1vNvLmj8su9d7oKPdGAvF0NvY6V4cqvwoRR4yITsOWQaCALHjCgeYyP6/76Q6b2C3utsUKQVecay96P5vitTcuPyeHHGnGEm6s4+J8oHwsAhx7iG0R7r4M3WfdrqeNFu7n9PffW6bxdyqmfwBqaYyKLFfWMKrg35vgSYPxEbRxwTNQtxG4R9BCP1d9sokyTHQHuryjK8vskVCr6ePEwNEJzEZx1DtkI+y77UxUwqfmX8nCl/Wez61jqrb8tfF1hHSowZRGyA"),a(t,34768,"U2lnRWQyNTUxOSBubyBFZDI1NTE5IGNvbGxpc2lvbnMB"),a(t,34848,"cI0BAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0=");var ut,dt=(ut=[null,function(e,t,n,r,a){var i;return e|=0,r|=0,a|=0,m=i=m+-64|0,(t|=0)|(n|=0)&&(c[i+8>>2]=2036477234,c[i+12>>2]=1797285236,c[i>>2]=1634760805,c[i+4>>2]=857760878,c[i+16>>2]=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,c[i+20>>2]=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,c[i+24>>2]=u[a+8|0]|u[a+9|0]<<8|u[a+10|0]<<16|u[a+11|0]<<24,c[i+28>>2]=u[a+12|0]|u[a+13|0]<<8|u[a+14|0]<<16|u[a+15|0]<<24,c[i+32>>2]=u[a+16|0]|u[a+17|0]<<8|u[a+18|0]<<16|u[a+19|0]<<24,c[i+36>>2]=u[a+20|0]|u[a+21|0]<<8|u[a+22|0]<<16|u[a+23|0]<<24,c[i+40>>2]=u[a+24|0]|u[a+25|0]<<8|u[a+26|0]<<16|u[a+27|0]<<24,a=u[a+28|0]|u[a+29|0]<<8|u[a+30|0]<<16|u[a+31|0]<<24,c[i+48>>2]=0,c[i+52>>2]=0,c[i+44>>2]=a,c[i+56>>2]=u[0|r]|u[r+1|0]<<8|u[r+2|0]<<16|u[r+3|0]<<24,c[i+60>>2]=u[r+4|0]|u[r+5|0]<<8|u[r+6|0]<<16|u[r+7|0]<<24,E(i,e=Ce(e,0,t),e,t,n),$e(i,64)),m=i- -64|0,0},function(e,t,n,r,a){var i;return e|=0,r|=0,a|=0,m=i=m+-64|0,(t|=0)|(n|=0)&&(c[i+8>>2]=2036477234,c[i+12>>2]=1797285236,c[i>>2]=1634760805,c[i+4>>2]=857760878,c[i+16>>2]=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,c[i+20>>2]=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,c[i+24>>2]=u[a+8|0]|u[a+9|0]<<8|u[a+10|0]<<16|u[a+11|0]<<24,c[i+28>>2]=u[a+12|0]|u[a+13|0]<<8|u[a+14|0]<<16|u[a+15|0]<<24,c[i+32>>2]=u[a+16|0]|u[a+17|0]<<8|u[a+18|0]<<16|u[a+19|0]<<24,c[i+36>>2]=u[a+20|0]|u[a+21|0]<<8|u[a+22|0]<<16|u[a+23|0]<<24,c[i+40>>2]=u[a+24|0]|u[a+25|0]<<8|u[a+26|0]<<16|u[a+27|0]<<24,a=u[a+28|0]|u[a+29|0]<<8|u[a+30|0]<<16|u[a+31|0]<<24,c[i+48>>2]=0,c[i+44>>2]=a,c[i+52>>2]=u[0|r]|u[r+1|0]<<8|u[r+2|0]<<16|u[r+3|0]<<24,c[i+56>>2]=u[r+4|0]|u[r+5|0]<<8|u[r+6|0]<<16|u[r+7|0]<<24,c[i+60>>2]=u[r+8|0]|u[r+9|0]<<8|u[r+10|0]<<16|u[r+11|0]<<24,E(i,e=Ce(e,0,t),e,t,n),$e(i,64)),m=i- -64|0,0},function(e,t,n,r,a,i,o,s){var d;return e|=0,t|=0,a|=0,i|=0,o|=0,s|=0,m=d=m+-64|0,(n|=0)|(r|=0)&&(c[d+8>>2]=2036477234,c[d+12>>2]=1797285236,c[d>>2]=1634760805,c[d+4>>2]=857760878,c[d+16>>2]=u[0|s]|u[s+1|0]<<8|u[s+2|0]<<16|u[s+3|0]<<24,c[d+20>>2]=u[s+4|0]|u[s+5|0]<<8|u[s+6|0]<<16|u[s+7|0]<<24,c[d+24>>2]=u[s+8|0]|u[s+9|0]<<8|u[s+10|0]<<16|u[s+11|0]<<24,c[d+28>>2]=u[s+12|0]|u[s+13|0]<<8|u[s+14|0]<<16|u[s+15|0]<<24,c[d+32>>2]=u[s+16|0]|u[s+17|0]<<8|u[s+18|0]<<16|u[s+19|0]<<24,c[d+36>>2]=u[s+20|0]|u[s+21|0]<<8|u[s+22|0]<<16|u[s+23|0]<<24,c[d+40>>2]=u[s+24|0]|u[s+25|0]<<8|u[s+26|0]<<16|u[s+27|0]<<24,c[d+44>>2]=u[s+28|0]|u[s+29|0]<<8|u[s+30|0]<<16|u[s+31|0]<<24,c[d+48>>2]=i,c[d+52>>2]=o,c[d+56>>2]=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,c[d+60>>2]=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,E(d,t,e,n,r),$e(d,64)),m=d- -64|0,0},function(e,t,n,r,a,i,o){var s;return e|=0,t|=0,a|=0,i|=0,o|=0,m=s=m+-64|0,(n|=0)|(r|=0)&&(c[s+8>>2]=2036477234,c[s+12>>2]=1797285236,c[s>>2]=1634760805,c[s+4>>2]=857760878,c[s+16>>2]=u[0|o]|u[o+1|0]<<8|u[o+2|0]<<16|u[o+3|0]<<24,c[s+20>>2]=u[o+4|0]|u[o+5|0]<<8|u[o+6|0]<<16|u[o+7|0]<<24,c[s+24>>2]=u[o+8|0]|u[o+9|0]<<8|u[o+10|0]<<16|u[o+11|0]<<24,c[s+28>>2]=u[o+12|0]|u[o+13|0]<<8|u[o+14|0]<<16|u[o+15|0]<<24,c[s+32>>2]=u[o+16|0]|u[o+17|0]<<8|u[o+18|0]<<16|u[o+19|0]<<24,c[s+36>>2]=u[o+20|0]|u[o+21|0]<<8|u[o+22|0]<<16|u[o+23|0]<<24,c[s+40>>2]=u[o+24|0]|u[o+25|0]<<8|u[o+26|0]<<16|u[o+27|0]<<24,o=u[o+28|0]|u[o+29|0]<<8|u[o+30|0]<<16|u[o+31|0]<<24,c[s+48>>2]=i,c[s+44>>2]=o,c[s+52>>2]=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,c[s+56>>2]=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,c[s+60>>2]=u[a+8|0]|u[a+9|0]<<8|u[a+10|0]<<16|u[a+11|0]<<24,E(s,t,e,n,r),$e(s,64)),m=s- -64|0,0},function(e,t,n,r,a){var i,o,d;return e|=0,t|=0,n|=0,r|=0,a|=0,m=i=(o=m)-128&-64,c[i>>2]=67108863&(u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24),c[i+4>>2]=(u[a+3|0]|u[a+4|0]<<8|u[a+5|0]<<16|u[a+6|0]<<24)>>>2&67108611,c[i+8>>2]=(u[a+6|0]|u[a+7|0]<<8|u[a+8|0]<<16|u[a+9|0]<<24)>>>4&67092735,c[i+12>>2]=(u[a+9|0]|u[a+10|0]<<8|u[a+11|0]<<16|u[a+12|0]<<24)>>>6&66076671,d=u[a+12|0]|u[a+13|0]<<8|u[a+14|0]<<16|u[a+15|0]<<24,c[i+20>>2]=0,c[i+24>>2]=0,c[i+28>>2]=0,c[i+32>>2]=0,c[i+36>>2]=0,c[i+16>>2]=d>>>8&1048575,c[i+40>>2]=u[a+16|0]|u[a+17|0]<<8|u[a+18|0]<<16|u[a+19|0]<<24,c[i+44>>2]=u[a+20|0]|u[a+21|0]<<8|u[a+22|0]<<16|u[a+23|0]<<24,c[i+48>>2]=u[a+24|0]|u[a+25|0]<<8|u[a+26|0]<<16|u[a+27|0]<<24,a=u[a+28|0]|u[a+29|0]<<8|u[a+30|0]<<16|u[a+31|0]<<24,s[i+80|0]=0,c[i+56>>2]=0,c[i+60>>2]=0,c[i+52>>2]=a,z(i,t,n,r),G(i,e),m=o,0},function(e,t,n,r,a){var i,o,d;return e|=0,t|=0,n|=0,r|=0,a|=0,m=i=(o=m)-192&-64,c[i+64>>2]=67108863&(u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24),c[i+68>>2]=(u[a+3|0]|u[a+4|0]<<8|u[a+5|0]<<16|u[a+6|0]<<24)>>>2&67108611,c[i+72>>2]=(u[a+6|0]|u[a+7|0]<<8|u[a+8|0]<<16|u[a+9|0]<<24)>>>4&67092735,c[i+76>>2]=(u[a+9|0]|u[a+10|0]<<8|u[a+11|0]<<16|u[a+12|0]<<24)>>>6&66076671,d=u[a+12|0]|u[a+13|0]<<8|u[a+14|0]<<16|u[a+15|0]<<24,c[i+84>>2]=0,c[i+88>>2]=0,c[i+92>>2]=0,c[i+96>>2]=0,c[i+100>>2]=0,c[i+80>>2]=d>>>8&1048575,c[i+104>>2]=u[a+16|0]|u[a+17|0]<<8|u[a+18|0]<<16|u[a+19|0]<<24,c[i+108>>2]=u[a+20|0]|u[a+21|0]<<8|u[a+22|0]<<16|u[a+23|0]<<24,c[i+112>>2]=u[a+24|0]|u[a+25|0]<<8|u[a+26|0]<<16|u[a+27|0]<<24,a=u[a+28|0]|u[a+29|0]<<8|u[a+30|0]<<16|u[a+31|0]<<24,s[i+144|0]=0,c[i+120>>2]=0,c[i+124>>2]=0,c[i+116>>2]=a,z(a=i- -64|0,t,n,r),G(a,t=i+48|0),e=X(e,t),m=o,0|e},function(e,t){var n;return t|=0,c[(e|=0)>>2]=67108863&(u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24),c[e+4>>2]=(u[t+3|0]|u[t+4|0]<<8|u[t+5|0]<<16|u[t+6|0]<<24)>>>2&67108611,c[e+8>>2]=(u[t+6|0]|u[t+7|0]<<8|u[t+8|0]<<16|u[t+9|0]<<24)>>>4&67092735,c[e+12>>2]=(u[t+9|0]|u[t+10|0]<<8|u[t+11|0]<<16|u[t+12|0]<<24)>>>6&66076671,n=u[t+12|0]|u[t+13|0]<<8|u[t+14|0]<<16|u[t+15|0]<<24,c[e+20>>2]=0,c[e+24>>2]=0,c[e+28>>2]=0,c[e+32>>2]=0,c[e+36>>2]=0,c[e+16>>2]=n>>>8&1048575,c[e+40>>2]=u[t+16|0]|u[t+17|0]<<8|u[t+18|0]<<16|u[t+19|0]<<24,c[e+44>>2]=u[t+20|0]|u[t+21|0]<<8|u[t+22|0]<<16|u[t+23|0]<<24,c[e+48>>2]=u[t+24|0]|u[t+25|0]<<8|u[t+26|0]<<16|u[t+27|0]<<24,t=u[t+28|0]|u[t+29|0]<<8|u[t+30|0]<<16|u[t+31|0]<<24,s[e+80|0]=0,c[e+56>>2]=0,c[e+60>>2]=0,c[e+52>>2]=t,0},function(e,t,n,r){return z(e|=0,t|=0,n|=0,r|=0),0},function(e,t){return G(e|=0,t|=0),0},function(e,t,n){e|=0,t|=0,n|=0;var r,a=0,i=0,o=0,d=0,f=0,l=0,b=0,p=0,h=0,y=0,g=0,A=0,w=0,x=0,_=0,I=0,E=0,C=0,T=0,O=0,P=0,M=0,B=0,N=0,R=0,D=0,U=0,L=0,F=0,Z=0,H=0,z=0,Q=0,V=0,J=0,K=0,G=0,W=0,X=0,$=0,ee=0,te=0,ne=0,re=0,ae=0,ie=0,oe=0,se=0,ce=0,ue=0,de=0,fe=0,le=0,be=0,pe=0,he=0,ye=0,ve=0,ge=0,Ae=0,we=0,xe=0,_e=0,ke=0,Ie=0;for(m=r=m-368|0;g=(o=u[n+a|0])^u[0|(f=a+33680|0)]|g,h=o^u[f+192|0]|h,y=o^u[f+160|0]|y,p=o^u[f+128|0]|p,d=o^u[f+96|0]|d,l=o^u[f- -64|0]|l,i=o^u[f+32|0]|i,31!=(0|(a=a+1|0)););if(a=-1,!(256&((255&((o=127^(f=127&u[n+31|0]))|h))-1|(255&(o|y))-1|(255&(o|p))-1|(255&(87^f|d))-1|(255&(l|f))-1|(255&(i|f))-1|(255&(f|g))-1))){for(a=t,t=u[t+28|0]|u[t+29|0]<<8|u[t+30|0]<<16|u[t+31|0]<<24,c[r+360>>2]=u[a+24|0]|u[a+25|0]<<8|u[a+26|0]<<16|u[a+27|0]<<24,c[r+364>>2]=t,t=u[a+20|0]|u[a+21|0]<<8|u[a+22|0]<<16|u[a+23|0]<<24,c[r+352>>2]=u[a+16|0]|u[a+17|0]<<8|u[a+18|0]<<16|u[a+19|0]<<24,c[r+356>>2]=t,i=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,t=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,c[r+336>>2]=t,c[r+340>>2]=i,i=u[a+12|0]|u[a+13|0]<<8|u[a+14|0]<<16|u[a+15|0]<<24,c[r+344>>2]=u[a+8|0]|u[a+9|0]<<8|u[a+10|0]<<16|u[a+11|0]<<24,c[r+348>>2]=i,s[r+336|0]=248&t,s[r+367|0]=63&u[r+367|0]|64,j(r+288|0,n),c[r+260>>2]=0,c[r+264>>2]=0,c[r+268>>2]=0,c[r+272>>2]=0,c[r+276>>2]=0,c[r+208>>2]=0,c[r+212>>2]=0,c[r+216>>2]=0,c[r+220>>2]=0,c[r+224>>2]=0,c[r+228>>2]=0,c[r+244>>2]=0,c[r+248>>2]=0,c[r+240>>2]=1,c[r+252>>2]=0,c[r+256>>2]=0,c[r+192>>2]=0,c[r+196>>2]=0,c[r+200>>2]=0,c[r+204>>2]=0,t=c[r+316>>2],c[r+168>>2]=c[r+312>>2],c[r+172>>2]=t,t=c[r+308>>2],c[r+160>>2]=c[r+304>>2],c[r+164>>2]=t,t=c[r+300>>2],c[r+152>>2]=c[r+296>>2],c[r+156>>2]=t,t=c[r+292>>2],c[r+144>>2]=c[r+288>>2],c[r+148>>2]=t,t=c[r+324>>2],c[r+176>>2]=c[r+320>>2],c[r+180>>2]=t,c[r+116>>2]=0,c[r+120>>2]=0,c[r+124>>2]=0,c[r+128>>2]=0,c[r+132>>2]=0,c[r+100>>2]=0,c[r+104>>2]=0,c[r+96>>2]=1,c[r+108>>2]=0,c[r+112>>2]=0,n=254;X=c[r+276>>2],o=c[r+180>>2],$=c[r+96>>2],ee=c[r+192>>2],te=c[r+144>>2],ne=c[r+240>>2],re=c[r+100>>2],ae=c[r+196>>2],ie=c[r+148>>2],oe=c[r+244>>2],P=c[r+104>>2],se=c[r+200>>2],M=c[r+152>>2],ce=c[r+248>>2],D=c[r+108>>2],ue=c[r+204>>2],B=c[r+156>>2],de=c[r+252>>2],N=c[r+112>>2],fe=c[r+208>>2],T=c[r+160>>2],le=c[r+256>>2],g=c[r+116>>2],be=c[r+212>>2],b=c[r+164>>2],pe=c[r+260>>2],h=c[r+120>>2],he=c[r+216>>2],y=c[r+168>>2],ye=c[r+264>>2],p=c[r+124>>2],ve=c[r+220>>2],d=c[r+172>>2],ge=c[r+268>>2],l=c[r+128>>2],Ae=c[r+224>>2],i=c[r+176>>2],we=c[r+272>>2],xe=n,O=(E=(t=0-((t=W)^(W=u[r+336+(n>>>3)|0]>>>(7&n)&1))|0)&((a=c[r+132>>2])^(V=c[r+228>>2])))^a,c[r+132>>2]=O,J=o^(w=t&(o^X)),c[r+84>>2]=J-O,R=l^(x=t&(l^Ae)),c[r+128>>2]=R,K=(C=t&(i^we))^i,c[r+80>>2]=K-R,L=p^(_=t&(p^ve)),c[r+124>>2]=L,_e=d^(I=t&(d^ge)),c[r+76>>2]=_e-L,F=h^(A=t&(h^he)),c[r+120>>2]=F,ke=y^(f=t&(y^ye)),c[r+72>>2]=ke-F,Z=g^(o=t&(g^be)),c[r+116>>2]=Z,Ie=b^(g=t&(b^pe)),c[r+68>>2]=Ie-Z,H=N^(h=t&(N^fe)),c[r+112>>2]=H,U=T^(y=t&(T^le)),c[r+64>>2]=U-H,z=D^(p=t&(D^ue)),c[r+108>>2]=z,G=B^(d=t&(B^de)),c[r+60>>2]=G-z,Q=P^(l=t&(P^se)),c[r+104>>2]=Q,D=M^(i=t&(M^ce)),c[r+56>>2]=D-Q,P=re^(a=t&(re^ae)),c[r+100>>2]=P,B=ie^(n=t&(ie^oe)),c[r+52>>2]=B-P,M=$^(N=t&($^ee)),c[r+96>>2]=M,T=(t&=te^ne)^te,c[r+48>>2]=T-M,b=w^X,E^=V,c[r+36>>2]=b-E,w=C^we,x^=Ae,c[r+32>>2]=w-x,C=I^ge,_^=ve,c[r+28>>2]=C-_,I=f^ye,A^=he,c[r+24>>2]=I-A,f=g^pe,o^=be,c[r+20>>2]=f-o,g=y^le,h^=fe,c[r+16>>2]=g-h,y=d^de,p^=ue,c[r+12>>2]=y-p,d=i^ce,l^=se,c[r+8>>2]=d-l,i=n^oe,a^=ae,c[r+4>>2]=i-a,n=t^ne,t=N^ee,c[r>>2]=n-t,c[r+276>>2]=b+E,c[r+272>>2]=w+x,c[r+268>>2]=_+C,c[r+264>>2]=A+I,c[r+260>>2]=o+f,c[r+256>>2]=h+g,c[r+248>>2]=d+l,c[r+244>>2]=a+i,c[r+240>>2]=t+n,c[r+252>>2]=p+y,c[r+228>>2]=O+J,c[r+224>>2]=R+K,c[r+220>>2]=L+_e,c[r+216>>2]=F+ke,c[r+212>>2]=Z+Ie,c[r+208>>2]=U+H,c[r+204>>2]=z+G,c[r+200>>2]=D+Q,c[r+196>>2]=P+B,c[r+192>>2]=T+M,k(J=r+96|0,R=r+48|0,T=r+240|0),k(O=r+192|0,O,r),S(R,r),S(r,T),b=c[r+192>>2],E=c[r+96>>2],w=c[r+196>>2],x=c[r+100>>2],C=c[r+200>>2],_=c[r+104>>2],I=c[r+204>>2],A=c[r+108>>2],f=c[r+208>>2],o=c[r+112>>2],g=c[r+212>>2],h=c[r+116>>2],y=c[r+216>>2],p=c[r+120>>2],d=c[r+220>>2],l=c[r+124>>2],i=c[r+224>>2],a=c[r+128>>2],n=c[r+228>>2],t=c[r+132>>2],c[r+180>>2]=n+t,c[r+176>>2]=a+i,c[r+172>>2]=d+l,c[r+168>>2]=p+y,c[r+164>>2]=h+g,c[r+160>>2]=o+f,c[r+156>>2]=A+I,c[r+152>>2]=_+C,c[r+148>>2]=w+x,c[r+144>>2]=b+E,c[r+228>>2]=t-n,c[r+224>>2]=a-i,c[r+220>>2]=l-d,c[r+216>>2]=p-y,c[r+212>>2]=h-g,c[r+208>>2]=o-f,c[r+204>>2]=A-I,c[r+200>>2]=_-C,c[r+196>>2]=x-w,c[r+192>>2]=E-b,k(T,r,R),L=c[r+52>>2],A=c[r+4>>2],F=c[r+56>>2],f=c[r+8>>2],Z=c[r+64>>2],o=c[r+16>>2],H=c[r+60>>2],p=c[r+12>>2],z=c[r+72>>2],d=c[r+24>>2],Q=c[r+68>>2],l=c[r+20>>2],P=c[r+80>>2],a=c[r+32>>2],M=c[r+76>>2],n=c[r+28>>2],V=c[r+84>>2],t=c[r+36>>2],K=c[r+48>>2],i=c[r>>2]-K|0,c[r>>2]=i,t=t-V|0,c[r+36>>2]=t,N=n-M|0,c[r+28>>2]=N,T=a-P|0,c[r+32>>2]=T,g=l-Q|0,c[r+20>>2]=g,h=d-z|0,c[r+24>>2]=h,y=p-H|0,c[r+12>>2]=y,p=o-Z|0,c[r+16>>2]=p,d=f-F|0,c[r+8>>2]=d,a=A-L|0,c[r+4>>2]=a,S(O,O),t=me(t,t>>31,121666,0),n=v,G=t,t=me((33554431&(n=(b=t+16777216|0)>>>0<16777216?n+1|0:n))<<7|b>>>25,n>>25,19,0),l=v,n=t,t=me(i,i>>31,121666,0),U=v+l|0,t=t>>>0>(n=n+t|0)>>>0?U+1|0:U,t=(l=n+33554432|0)>>>0<33554432?t+1|0:t,E=n-(-67108864&l)|0,c[r+96>>2]=E,i=me(a,a>>31,121666,0),n=v,n=(a=i+16777216|0)>>>0<16777216?n+1|0:n,w=(t=(67108863&t)<<6|l>>>26)+(i-(-33554432&a)|0)|0,c[r+100>>2]=w,U=n>>25,a=(33554431&n)<<7|a>>>25,n=me(d,d>>31,121666,0)+a|0,t=U+v|0,t=n>>>0>>0?t+1|0:t,l=(x=n+33554432|0)>>>0<33554432?t+1|0:t,C=n-(-67108864&x)|0,c[r+104>>2]=C,a=me(p,p>>31,121666,0),i=v,n=me(y,y>>31,121666,0),t=v,B=a,D=n,a=(33554431&(t=(_=n+16777216|0)>>>0<16777216?t+1|0:t))<<7|_>>>25,t=(t>>25)+i|0,t=(n=B+a|0)>>>0>>0?t+1|0:t,i=(I=n+33554432|0)>>>0<33554432?t+1|0:t,A=n-(-67108864&I)|0,c[r+112>>2]=A,a=me(h,h>>31,121666,0),d=v,n=me(g,g>>31,121666,0),t=v,B=n,n=(33554431&(t=(f=n+16777216|0)>>>0<16777216?t+1|0:t))<<7|f>>>25,t=(t>>25)+d|0,t=n>>>0>(a=n+a|0)>>>0?t+1|0:t,n=(o=a+33554432|0)>>>0<33554432?t+1|0:t,g=a-(-67108864&o)|0,c[r+120>>2]=g,d=me(T,T>>31,121666,0),p=v,a=me(N,N>>31,121666,0),t=v,T=a,a=(33554431&(t=(h=a+16777216|0)>>>0<16777216?t+1|0:t))<<7|h>>>25,t=(t>>25)+p|0,t=a>>>0>(d=a+d|0)>>>0?t+1|0:t,a=(y=d+33554432|0)>>>0<33554432?t+1|0:t,p=d-(-67108864&y)|0,c[r+128>>2]=p,d=(l=D+((67108863&l)<<6|x>>>26)|0)-(-33554432&_)|0,c[r+108>>2]=d,l=(i=B+((67108863&i)<<6|I>>>26)|0)-(-33554432&f)|0,c[r+116>>2]=l,i=(t=T+((67108863&n)<<6|o>>>26)|0)-(-33554432&h)|0,c[r+124>>2]=i,n=(a=G+((67108863&a)<<6|y>>>26)|0)-(-33554432&b)|0,c[r+132>>2]=n,S(t=r+144|0,t),c[r+84>>2]=n+V,c[r+80>>2]=p+P,c[r+76>>2]=i+M,c[r+72>>2]=g+z,c[r+68>>2]=l+Q,c[r+64>>2]=A+Z,c[r+60>>2]=d+H,c[r+56>>2]=C+F,c[r+52>>2]=w+L,c[r+48>>2]=E+K,n=xe-1|0,k(J,r+288|0,O),k(O,r,R),xe;);g=c[r+144>>2],E=c[r+240>>2],h=c[r+148>>2],w=c[r+244>>2],y=c[r+152>>2],x=c[r+248>>2],p=c[r+156>>2],C=c[r+252>>2],d=c[r+160>>2],_=c[r+256>>2],l=c[r+164>>2],I=c[r+260>>2],i=c[r+168>>2],A=c[r+264>>2],a=c[r+172>>2],f=c[r+268>>2],n=c[r+176>>2],o=c[r+272>>2],b=0-W|0,t=c[r+276>>2],c[r+276>>2]=b&(t^c[r+180>>2])^t,c[r+272>>2]=o^b&(n^o),c[r+268>>2]=f^b&(a^f),c[r+264>>2]=A^b&(i^A),c[r+260>>2]=I^b&(l^I),c[r+256>>2]=_^b&(d^_),c[r+252>>2]=C^b&(p^C),c[r+248>>2]=x^b&(y^x),c[r+244>>2]=w^b&(h^w),c[r+240>>2]=E^b&(g^E),E=c[r+192>>2],g=c[r+96>>2],w=c[r+196>>2],h=c[r+100>>2],x=c[r+200>>2],y=c[r+104>>2],C=c[r+204>>2],p=c[r+108>>2],_=c[r+208>>2],d=c[r+112>>2],I=c[r+212>>2],l=c[r+116>>2],A=c[r+216>>2],i=c[r+120>>2],f=c[r+220>>2],a=c[r+124>>2],o=c[r+224>>2],n=c[r+128>>2],t=c[r+228>>2],c[r+228>>2]=b&(t^c[r+132>>2])^t,c[r+224>>2]=o^b&(n^o),c[r+220>>2]=f^b&(a^f),c[r+216>>2]=A^b&(i^A),c[r+212>>2]=I^b&(l^I),c[r+208>>2]=_^b&(d^_),c[r+204>>2]=C^b&(p^C),c[r+200>>2]=x^b&(y^x),c[r+196>>2]=w^b&(h^w),c[r+192>>2]=E^b&(g^E),q(n=r+192|0,n),k(t=r+240|0,t,n),Y(e,t),$e(r+336|0,32),a=0}return m=r+368|0,0|a},function(e,t){var n,r,a,i,o,d,f,l,b,p,h,y,v,g,A,w,x,_,I,S;return t|=0,m=n=m-304|0,s[0|(e|=0)]=u[0|t],s[e+1|0]=u[t+1|0],s[e+2|0]=u[t+2|0],s[e+3|0]=u[t+3|0],s[e+4|0]=u[t+4|0],s[e+5|0]=u[t+5|0],s[e+6|0]=u[t+6|0],s[e+7|0]=u[t+7|0],s[e+8|0]=u[t+8|0],s[e+9|0]=u[t+9|0],s[e+10|0]=u[t+10|0],s[e+11|0]=u[t+11|0],s[e+12|0]=u[t+12|0],s[e+13|0]=u[t+13|0],s[e+14|0]=u[t+14|0],s[e+15|0]=u[t+15|0],s[e+16|0]=u[t+16|0],s[e+17|0]=u[t+17|0],s[e+18|0]=u[t+18|0],s[e+19|0]=u[t+19|0],s[e+20|0]=u[t+20|0],s[e+21|0]=u[t+21|0],s[e+22|0]=u[t+22|0],s[e+23|0]=u[t+23|0],s[e+24|0]=u[t+24|0],s[e+25|0]=u[t+25|0],s[e+26|0]=u[t+26|0],s[e+27|0]=u[t+27|0],s[e+28|0]=u[t+28|0],s[e+29|0]=u[t+29|0],s[e+30|0]=u[t+30|0],t=u[t+31|0],s[0|e]=248&u[0|e],s[e+31|0]=63&t|64,U(n+48|0,e),t=c[n+132>>2],r=c[n+92>>2],a=c[n+136>>2],i=c[n+96>>2],o=c[n+140>>2],d=c[n+100>>2],f=c[n+144>>2],l=c[n+104>>2],b=c[n+148>>2],p=c[n+108>>2],h=c[n+152>>2],y=c[n+112>>2],v=c[n+156>>2],g=c[n+116>>2],A=c[n+160>>2],w=c[n+120>>2],x=c[n+128>>2],_=c[n+88>>2],I=c[n+124>>2],S=c[n+164>>2],c[n+292>>2]=I+S,c[n+288>>2]=A+w,c[n+284>>2]=v+g,c[n+280>>2]=h+y,c[n+276>>2]=b+p,c[n+272>>2]=f+l,c[n+268>>2]=o+d,c[n+264>>2]=a+i,c[n+260>>2]=t+r,c[n+256>>2]=x+_,c[n+244>>2]=S-I,c[n+240>>2]=A-w,c[n+236>>2]=v-g,c[n+232>>2]=h-y,c[n+228>>2]=b-p,c[n+224>>2]=f-l,c[n+220>>2]=o-d,c[n+216>>2]=a-i,c[n+212>>2]=t-r,c[n+208>>2]=x-_,q(t=n+208|0,t),k(n,n+256|0,t),Y(e,n),m=n+304|0,0},function(e,t,n,r,a){e|=0,r|=0,a|=0;var i,o=0,d=0,f=0,l=0;if(m=i=m-112|0,(t|=0)|(n|=0)){o=u[a+28|0]|u[a+29|0]<<8|u[a+30|0]<<16|u[a+31|0]<<24,c[i+24>>2]=u[a+24|0]|u[a+25|0]<<8|u[a+26|0]<<16|u[a+27|0]<<24,c[i+28>>2]=o,o=u[a+20|0]|u[a+21|0]<<8|u[a+22|0]<<16|u[a+23|0]<<24,c[i+16>>2]=u[a+16|0]|u[a+17|0]<<8|u[a+18|0]<<16|u[a+19|0]<<24,c[i+20>>2]=o,o=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,c[i>>2]=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,c[i+4>>2]=o,o=u[a+12|0]|u[a+13|0]<<8|u[a+14|0]<<16|u[a+15|0]<<24,c[i+8>>2]=u[a+8|0]|u[a+9|0]<<8|u[a+10|0]<<16|u[a+11|0]<<24,c[i+12>>2]=o,a=u[0|r]|u[r+1|0]<<8|u[r+2|0]<<16|u[r+3|0]<<24,r=u[r+4|0]|u[r+5|0]<<8|u[r+6|0]<<16|u[r+7|0]<<24,c[i+104>>2]=0,c[i+108>>2]=0,c[i+96>>2]=a,c[i+100>>2]=r;e:{if(!n&t>>>0>=64|n){for(;P(e,i+96|0,i),r=u[i+104|0]+1|0,s[i+104|0]=r,r=u[i+105|0]+(r>>>8|0)|0,s[i+105|0]=r,r=u[i+106|0]+(r>>>8|0)|0,s[i+106|0]=r,r=u[i+107|0]+(r>>>8|0)|0,s[i+107|0]=r,r=u[i+108|0]+(r>>>8|0)|0,s[i+108|0]=r,r=u[i+109|0]+(r>>>8|0)|0,s[i+109|0]=r,r=u[i+110|0]+(r>>>8|0)|0,s[i+110|0]=r,s[i+111|0]=u[i+111|0]+(r>>>8|0),e=e- -64|0,n=n-1|0,!(n=(t=t+-64|0)>>>0<4294967232?n+1|0:n)&t>>>0>63|n;);if(!(t|n))break e}if(r=0,P(i+32|0,i+96|0,i),n=3&t,a=0,t-1>>>0>=3)for(o=-4&t,t=0;d=f=i+32|0,s[e+a|0]=u[d+a|0],s[(l=1|a)+e|0]=u[d+l|0],s[(d=2|a)+e|0]=u[d+f|0],s[(d=3|a)+e|0]=u[d+(i+32|0)|0],a=a+4|0,(0|o)!=(0|(t=t+4|0)););if(n)for(;s[e+a|0]=u[(i+32|0)+a|0],a=a+1|0,(0|n)!=(0|(r=r+1|0)););}$e(i+32|0,64),$e(i,32)}return m=i+112|0,0},function(e,t,n,r,a,i,o,d){e|=0,t|=0,a|=0,i|=0,o|=0,d|=0;var f,l=0;if(m=f=m-112|0,(n|=0)|(r|=0)){l=u[d+28|0]|u[d+29|0]<<8|u[d+30|0]<<16|u[d+31|0]<<24,c[f+24>>2]=u[d+24|0]|u[d+25|0]<<8|u[d+26|0]<<16|u[d+27|0]<<24,c[f+28>>2]=l,l=u[d+20|0]|u[d+21|0]<<8|u[d+22|0]<<16|u[d+23|0]<<24,c[f+16>>2]=u[d+16|0]|u[d+17|0]<<8|u[d+18|0]<<16|u[d+19|0]<<24,c[f+20>>2]=l,l=u[d+4|0]|u[d+5|0]<<8|u[d+6|0]<<16|u[d+7|0]<<24,c[f>>2]=u[0|d]|u[d+1|0]<<8|u[d+2|0]<<16|u[d+3|0]<<24,c[f+4>>2]=l,l=u[d+12|0]|u[d+13|0]<<8|u[d+14|0]<<16|u[d+15|0]<<24,c[f+8>>2]=u[d+8|0]|u[d+9|0]<<8|u[d+10|0]<<16|u[d+11|0]<<24,c[f+12>>2]=l,d=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,c[f+96>>2]=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,c[f+100>>2]=d,s[f+104|0]=i,s[f+111|0]=o>>>24,s[f+110|0]=o>>>16,s[f+109|0]=o>>>8,s[f+108|0]=o,s[f+107|0]=(16777215&o)<<8|i>>>24,s[f+106|0]=(65535&o)<<16|i>>>16,s[f+105|0]=(255&o)<<24|i>>>8;e:{if(!r&n>>>0>=64|r){for(;;){for(d=0,P(f+32|0,f+96|0,f);i=f+32|0,s[e+d|0]=u[i+d|0]^u[t+d|0],s[(a=1|d)+e|0]=u[a+i|0]^u[t+a|0],64!=(0|(d=d+2|0)););if(a=u[f+104|0]+1|0,s[f+104|0]=a,a=u[f+105|0]+(a>>>8|0)|0,s[f+105|0]=a,a=u[f+106|0]+(a>>>8|0)|0,s[f+106|0]=a,a=u[f+107|0]+(a>>>8|0)|0,s[f+107|0]=a,a=u[f+108|0]+(a>>>8|0)|0,s[f+108|0]=a,a=u[f+109|0]+(a>>>8|0)|0,s[f+109|0]=a,a=u[f+110|0]+(a>>>8|0)|0,s[f+110|0]=a,s[f+111|0]=u[f+111|0]+(a>>>8|0),t=t- -64|0,e=e- -64|0,r=r-1|0,!(!(r=(n=n+-64|0)>>>0<4294967232?r+1|0:r)&n>>>0>63|r))break}if(!(n|r))break e}if(d=0,P(f+32|0,f+96|0,f),r=1&n,1!=(0|n))for(i=-2&n,a=0;o=f+32|0,s[e+d|0]=u[o+d|0]^u[t+d|0],s[(n=1|d)+e|0]=u[n+o|0]^u[t+n|0],d=d+2|0,(0|i)!=(0|(a=a+2|0)););r&&(s[e+d|0]=u[(f+32|0)+d|0]^u[t+d|0])}$e(f+32|0,64),$e(f,32)}return m=f+112|0,0}],ut.grow=function(e){var t=this.length;return this.length=this.length+e,t},ut.set=function(e,t){this[e]=t},ut.get=function(e){return this[e]},ut);function ft(){return o.byteLength/65536|0}return{f:function(){},g:function(e,t,n,r,a,i,o,s,c,u,d,f){return 0|pe(e|=0,t|=0,n|=0,r|=0,(e=0)|(a|=0),i|=0,o|=0,e|(s|=0),c|=0,d|=0,f|=0)},h:function(e,t,n,r,a,o,s,u,d,f,l){return e|=0,t|=0,d|=0,d=r|=0,!(r=a|=0)&(a=0|d)>>>0<4294967280?(pe(e,e+a|0,0,n|=0,a,r,o|=0,s|=0,u|=0,f|=0,l|=0),t&&(r=(e=a+16|0)>>>0<16?r+1|0:r,c[t>>2]=e,c[t+4>>2]=r)):(Le(),i()),0},i:function(e,t,n,r,a,i,o,s,c,u,d,f){return 0|le(e|=0,t|=0,n|=0,r|=0,(e=0)|(a|=0),i|=0,o|=0,e|(s|=0),c|=0,d|=0,f|=0)},j:function(e,t,n,r,a,o,s,u,d,f,l){return e|=0,t|=0,d|=0,d=r|=0,!(r=a|=0)&(a=0|d)>>>0<4294967280?(le(e,e+a|0,0,n|=0,a,r,o|=0,s|=0,u|=0,f|=0,l|=0),t&&(r=(e=a+16|0)>>>0<16?r+1|0:r,c[t>>2]=e,c[t+4>>2]=r)):(Le(),i()),0},k:function(e,t,n,r,a,i,o,s,c,u,d){return 0|be(e|=0,n|=0,(e=0)|(r|=0),a|=0,i|=0,o|=0,e|(s|=0),c|=0,u|=0,d|=0)},l:function(e,t,n,r,a,i,o,s,u,d,f){return t|=0,n|=0,r|=0,a|=0,s|=0,s|=0,n=-1,!(i|=0)&(a|=0)>>>0>=16|i&&(n=be(e|=0,r,a-16|0,i-(a>>>0<16)|0,(r+a|0)-16|0,o|=0,s,u|=0,d|=0,f|=0)),t&&(c[t>>2]=n?0:a-16|0,c[t+4>>2]=n?0:i-(a>>>0<16)|0),0|n},m:function(e,t,n,r,a,i,o,s,c,u,d){return 0|fe(e|=0,n|=0,(e=0)|(r|=0),a|=0,i|=0,o|=0,e|(s|=0),c|=0,u|=0,d|=0)},n:function(e,t,n,r,a,i,o,s,u,d,f){return t|=0,n|=0,r|=0,a|=0,s|=0,s|=0,n=-1,!(i|=0)&(a|=0)>>>0>=16|i&&(n=fe(e|=0,r,a-16|0,i-(a>>>0<16)|0,(r+a|0)-16|0,o|=0,s,u|=0,d|=0,f|=0)),t&&(c[t>>2]=n?0:a-16|0,c[t+4>>2]=n?0:i-(a>>>0<16)|0),0|n},o:tt,p:function(){return 12},q:ct,r:et,s:rt,t:Xe,u:tt,v:st,w:ct,x:et,y:rt,z:Xe,A:function(e,t,n,r,a,i,o,s,c,u,d,f){return 0|ae(e|=0,t|=0,n|=0,r|=0,(e=0)|(a|=0),i|=0,o|=0,e|(s|=0),c|=0,d|=0,f|=0)},B:function(e,t,n,r,a,o,s,u,d,f,l){return e|=0,t|=0,d|=0,d=r|=0,!(r=a|=0)&(a=0|d)>>>0<4294967280?(ae(e,e+a|0,0,n|=0,a,r,o|=0,s|=0,u|=0,f|=0,l|=0),t&&(r=(e=a+16|0)>>>0<16?r+1|0:r,c[t>>2]=e,c[t+4>>2]=r)):(Le(),i()),0},C:function(e,t,n,r,a,i,o,s,c,u,d){return 0|re(e|=0,n|=0,(e=0)|(r|=0),a|=0,i|=0,o|=0,e|(s|=0),c|=0,u|=0,d|=0)},D:function(e,t,n,r,a,i,o,s,u,d,f){return t|=0,n|=0,r|=0,a|=0,s|=0,s|=0,n=-1,!(i|=0)&(a|=0)>>>0>=16|i&&(n=re(e|=0,r,a-16|0,i-(a>>>0<16)|0,(r+a|0)-16|0,o|=0,s,u|=0,d|=0,f|=0)),t&&(c[t>>2]=n?0:a-16|0,c[t+4>>2]=n?0:i-(a>>>0<16)|0),0|n},E:tt,F:nt,G:ct,H:et,I:rt,J:Xe,K:tt,L:tt,M:function(e,t,n,r,a){var i;return e|=0,t|=0,n|=0,r|=0,m=i=m-480|0,ee(i,a|=0),Ye(i,t,n,r),Oe(i,i+416|0),t=c[i+444>>2],n=c[i+440>>2],s[e+24|0]=n,s[e+25|0]=n>>>8,s[e+26|0]=n>>>16,s[e+27|0]=n>>>24,s[e+28|0]=t,s[e+29|0]=t>>>8,s[e+30|0]=t>>>16,s[e+31|0]=t>>>24,t=c[i+436>>2],n=c[i+432>>2],s[e+16|0]=n,s[e+17|0]=n>>>8,s[e+18|0]=n>>>16,s[e+19|0]=n>>>24,s[e+20|0]=t,s[e+21|0]=t>>>8,s[e+22|0]=t>>>16,s[e+23|0]=t>>>24,t=c[i+428>>2],n=c[i+424>>2],s[e+8|0]=n,s[e+9|0]=n>>>8,s[e+10|0]=n>>>16,s[e+11|0]=n>>>24,s[e+12|0]=t,s[e+13|0]=t>>>8,s[e+14|0]=t>>>16,s[e+15|0]=t>>>24,t=c[i+420>>2],n=c[i+416>>2],s[0|e]=n,s[e+1|0]=n>>>8,s[e+2|0]=n>>>16,s[e+3|0]=n>>>24,s[e+4|0]=t,s[e+5|0]=t>>>8,s[e+6|0]=t>>>16,s[e+7|0]=t>>>24,m=i+480|0,0},N:function(e,t,n,r,a){var i,o;return e|=0,t|=0,n|=0,r|=0,m=i=m-512|0,ee(o=i+32|0,a|=0),Ye(o,t,n,r),Oe(o,i+448|0),t=c[i+476>>2],c[i+24>>2]=c[i+472>>2],c[i+28>>2]=t,t=c[i+468>>2],c[i+16>>2]=c[i+464>>2],c[i+20>>2]=t,t=c[i+460>>2],c[i+8>>2]=c[i+456>>2],c[i+12>>2]=t,t=c[i+452>>2],c[i>>2]=c[i+448>>2],c[i+4>>2]=t,t=he(e,i),n=ce(i,e,32),m=i+512|0,n|((0|e)==(0|i)?-1:t)},O:Xe,P:tt,Q:tt,R:tt,S:tt,T:nt,U:et,V:rt,W:function(e,t,n){e|=0,t|=0;var r,a=0;return m=r=m+-64|0,ie(r,n|=0,32,0),n=c[r+28>>2],a=c[r+24>>2],s[t+24|0]=a,s[t+25|0]=a>>>8,s[t+26|0]=a>>>16,s[t+27|0]=a>>>24,s[t+28|0]=n,s[t+29|0]=n>>>8,s[t+30|0]=n>>>16,s[t+31|0]=n>>>24,n=c[r+20>>2],a=c[r+16>>2],s[t+16|0]=a,s[t+17|0]=a>>>8,s[t+18|0]=a>>>16,s[t+19|0]=a>>>24,s[t+20|0]=n,s[t+21|0]=n>>>8,s[t+22|0]=n>>>16,s[t+23|0]=n>>>24,n=c[r+12>>2],a=c[r+8>>2],s[t+8|0]=a,s[t+9|0]=a>>>8,s[t+10|0]=a>>>16,s[t+11|0]=a>>>24,s[t+12|0]=n,s[t+13|0]=n>>>8,s[t+14|0]=n>>>16,s[t+15|0]=n>>>24,n=c[r+4>>2],a=c[r>>2],s[0|t]=a,s[t+1|0]=a>>>8,s[t+2|0]=a>>>16,s[t+3|0]=a>>>24,s[t+4|0]=n,s[t+5|0]=n>>>8,s[t+6|0]=n>>>16,s[t+7|0]=n>>>24,$e(r,64),e=Ke(e,t),m=r- -64|0,0|e},X:Fe,Y:Se,Z:Pe,_:function(e,t,n,r,a,i,o,s){var c,u;return e|=0,t|=0,n|=0,i|=0,u=r|=0,r=a|=0,m=c=m-32|0,a=-1,Se(c,o|=0,s|=0)||(a=te(e,t,n,u,r,i,c),$e(c,32)),m=c+32|0,0|a},$:function(e,t,n,r,a,o){return e|=0,t|=0,a|=0,o|=0,!(r|=0)&(n|=0)>>>0>=4294967280|r&&(Le(),i()),0|te(e+16|0,e,t,n,r,a,o)},aa:function(e,t,n,r,a,i,o){return 0|ke(e|=0,t|=0,n|=0,r|=0,a|=0,i|=0,o|=0)},ba:Me,ca:function(e,t,n,r,a,i,o,s){var c,u;return e|=0,t|=0,n|=0,i|=0,u=r|=0,r=a|=0,m=c=m-32|0,a=-1,Se(c,o|=0,s|=0)||(a=ne(e,t,n,u,r,i,c),$e(c,32)),m=c+32|0,0|a},da:Ie,ea:function(e,t,n,r,a,i,o){return 0|Ae(e|=0,t|=0,n|=0,r|=0,a|=0,i|=0,o|=0)},fa:function(e,t,n,r,a){e|=0,t|=0,a|=0;var i,o,u,d=0,f=0;return o=n|=0,n=r|=0,u=r=m,m=i=r-512&-64,r=-1,Fe(i- -64|0,i+32|0)||(B(r=i+128|0,0,0,24),J(r,f=i- -64|0,32,0),J(r,a,32,0),Te(r,d=i+96|0,24),r=ke(e+32|0,t,o,n,d,r=a,a=i+32|0),t=c[i+92>>2],n=c[i+88>>2],s[e+24|0]=n,s[e+25|0]=n>>>8,s[e+26|0]=n>>>16,s[e+27|0]=n>>>24,s[e+28|0]=t,s[e+29|0]=t>>>8,s[e+30|0]=t>>>16,s[e+31|0]=t>>>24,t=c[i+84>>2],n=c[i+80>>2],s[e+16|0]=n,s[e+17|0]=n>>>8,s[e+18|0]=n>>>16,s[e+19|0]=n>>>24,s[e+20|0]=t,s[e+21|0]=t>>>8,s[e+22|0]=t>>>16,s[e+23|0]=t>>>24,t=c[i+76>>2],n=c[i+72>>2],s[e+8|0]=n,s[e+9|0]=n>>>8,s[e+10|0]=n>>>16,s[e+11|0]=n>>>24,s[e+12|0]=t,s[e+13|0]=t>>>8,s[e+14|0]=t>>>16,s[e+15|0]=t>>>24,t=c[i+68>>2],n=c[i+64>>2],s[0|e]=n,s[e+1|0]=n>>>8,s[e+2|0]=n>>>16,s[e+3|0]=n>>>24,s[e+4|0]=t,s[e+5|0]=t>>>8,s[e+6|0]=t>>>16,s[e+7|0]=t>>>24,$e(a,32),$e(f,32),$e(d,24)),m=u,0|r},ga:function(e,t,n,r,a,i){e|=0,t|=0,a|=0,i|=0;var o,s,c=0,u=0;return o=c=m,m=c=c-448&-64,u=-1,s=r|=0,!r&(n|=0)>>>0>=48|r&&(B(r=c- -64|0,0,0,24),J(r,t,32,0),J(r,a,32,0),Te(a=r,r=c+32|0,24),u=Ae(e,t+32|0,n-32|0,s-(n>>>0<32)|0,r,t,i)),m=o,0|u},ha:function(){return 48},ia:et,ja:at,ka:tt,la:et,ma:at,na:tt,oa:function(){return 384},pa:function(e,t,n,r,a,i,o){return 0|H(e|=0,t|=0,n|=0,r|=0,a|=0,i|=0,o|=0)},qa:B,ra:function(e,t,n,r){return 0|J(e|=0,t|=0,n|=0,r|=0)},sa:Te,ta:Xe,ua:at,va:function(e,t,n,r){return 0|ie(e|=0,t|=0,n|=0,r|=0)},wa:et,xa:at,ya:st,za:tt,Aa:function(e,t,n,r,a,o){e|=0,t|=0,n|=0,r|=0,o|=0;var s,d=0,f=0,l=0,b=0,p=0,h=0,y=0;return m=s=m-32|0,d=u[0|(a|=0)]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,a=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,c[s+24>>2]=0,c[s+28>>2]=0,c[s+16>>2]=d,c[s+20>>2]=a,c[s+8>>2]=0,c[s+12>>2]=0,c[(a=s)>>2]=n,c[a+4>>2]=r,t-65>>>0<=4294967246?(c[8916]=28,e=-1):t-65>>>0<4294967232?e=-1:(m=a=(l=m)-512&-64,!o|!e|((f=255&t)-65&255)>>>0<=191?(Le(),i()):(r=s+16|0,s?(b=725511199^(u[s+8|0]|u[s+9|0]<<8|u[s+10|0]<<16|u[s+11|0]<<24),p=-1694144372^(u[s+12|0]|u[s+13|0]<<8|u[s+14|0]<<16|u[s+15|0]<<24),n=-1377402159^(u[0|s]|u[s+1|0]<<8|u[s+2|0]<<16|u[s+3|0]<<24),t=1359893119^(u[s+4|0]|u[s+5|0]<<8|u[s+6|0]<<16|u[s+7|0]<<24)):(b=725511199,p=-1694144372,n=-1377402159,t=1359893119),r?(h=327033209^(u[r+8|0]|u[r+9|0]<<8|u[r+10|0]<<16|u[r+11|0]<<24),y=1541459225^(u[r+12|0]|u[r+13|0]<<8|u[r+14|0]<<16|u[r+15|0]<<24),d=-79577749^(u[0|r]|u[r+1|0]<<8|u[r+2|0]<<16|u[r+3|0]<<24),r=528734635^(u[r+4|0]|u[r+5|0]<<8|u[r+6|0]<<16|u[r+7|0]<<24)):(h=327033209,y=1541459225,d=-79577749,r=528734635),Ce(a- -64|0,0,293),c[a+56>>2]=h,c[a+60>>2]=y,c[a+48>>2]=d,c[a+52>>2]=r,c[a+40>>2]=b,c[a+44>>2]=p,c[a+32>>2]=n,c[a+36>>2]=t,c[a+24>>2]=1595750129,c[a+28>>2]=-1521486534,c[a+16>>2]=-23791573,c[a+20>>2]=1013904242,c[a+8>>2]=-2067093701,c[a+12>>2]=-1150833019,c[a>>2]=-222443256^(8192|f),c[a+4>>2]=1779033703,Ce(32+(t=a+384|0)|0,0,96),Ee(t,o,32),Ee(a+96|0,t,128),c[a+352>>2]=128,$e(t,128),T(a,e,f),m=l),e=0),m=s+32|0,0|e},Ba:Xe,Ca:function(e,t,n){return e|=0,H(t|=0,32,n|=0,32,0,0,0),0|Qe(e,t)},Da:function(e,t){return e|=0,ge(t|=0,32),0|Qe(e,t)},Ea:function(e,t,n,r,a){t|=0,n|=0,r|=0,a|=0;var o,c,d=0,f=0;if(c=d=m,m=d=d-512&-64,o=(e|=0)||t){if(f=-1,!je(d+96|0,r,a)){for(r=t||e,e=0,B(t=d+128|0,0,0,64),J(t,f=d+96|0,32,0),$e(f,32),J(t,n,32,0),J(t,a,32,0),Te(t,d+32|0,64),$e(t,384);t=(a=d+32|0)+e|0,s[e+o|0]=u[0|t],s[e+r|0]=u[t+32|0],s[(n=1|e)+o|0]=u[n+a|0],s[n+r|0]=u[t+33|0],32!=(0|(e=e+2|0)););$e(d+32|0,64),f=0}return m=c,0|f}Le(),i()},Fa:function(e,t,n,r,a){t|=0,n|=0,r|=0,a|=0;var o,c,d=0,f=0;if(c=d=m,m=d=d-512&-64,o=(e|=0)||t){if(f=-1,!je(d+96|0,r,a)){for(r=t||e,e=0,B(t=d+128|0,0,0,64),J(t,f=d+96|0,32,0),$e(f,32),J(t,a,32,0),J(t,n,32,0),Te(t,d+32|0,64),$e(t,384);t=(a=d+32|0)+e|0,s[e+r|0]=u[0|t],s[e+o|0]=u[t+32|0],s[(n=1|e)+r|0]=u[n+a|0],s[n+o|0]=u[t+33|0],32!=(0|(e=e+2|0)););$e(d+32|0,64),f=0}return m=c,0|f}Le(),i()},Ga:tt,Ha:tt,Ia:tt,Ja:tt,Ka:Qe,La:je,Ma:tt,Na:tt,Oa:tt,Pa:nt,Qa:et,Ra:rt,Sa:Xe,Ta:Pe,Ua:function(e,t,n,r,a,o){return e|=0,t|=0,a|=0,o|=0,!(r|=0)&(n|=0)>>>0>=4294967280|r&&(Le(),i()),te(e+16|0,e,t,n,r,a,o),0},Va:Me,Wa:Ie,Xa:Xe,Ya:function(e,t,n){return e|=0,n|=0,ge(t|=0,24),F(e,t,n),s[e+32|0]=1,s[e+33|0]=0,s[e+34|0]=0,s[e+35|0]=0,n=u[t+16|0]|u[t+17|0]<<8|u[t+18|0]<<16|u[t+19|0]<<24,t=u[t+20|0]|u[t+21|0]<<8|u[t+22|0]<<16|u[t+23|0]<<24,s[e+44|0]=0,s[e+45|0]=0,s[e+46|0]=0,s[e+47|0]=0,s[e+48|0]=0,s[e+49|0]=0,s[e+50|0]=0,s[e+51|0]=0,s[e+36|0]=n,s[e+37|0]=n>>>8,s[e+38|0]=n>>>16,s[e+39|0]=n>>>24,s[e+40|0]=t,s[e+41|0]=t>>>8,s[e+42|0]=t>>>16,s[e+43|0]=t>>>24,0},Za:function(e,t,n){return F(e|=0,t|=0,n|=0),s[e+32|0]=1,s[e+33|0]=0,s[e+34|0]=0,s[e+35|0]=0,n=u[t+16|0]|u[t+17|0]<<8|u[t+18|0]<<16|u[t+19|0]<<24,t=u[t+20|0]|u[t+21|0]<<8|u[t+22|0]<<16|u[t+23|0]<<24,s[e+44|0]=0,s[e+45|0]=0,s[e+46|0]=0,s[e+47|0]=0,s[e+48|0]=0,s[e+49|0]=0,s[e+50|0]=0,s[e+51|0]=0,s[e+36|0]=n,s[e+37|0]=n>>>8,s[e+38|0]=n>>>16,s[e+39|0]=n>>>24,s[e+40|0]=t,s[e+41|0]=t>>>8,s[e+42|0]=t>>>16,s[e+43|0]=t>>>24,0},_a:function(e){var t,n=0,r=0;m=t=m-48|0,n=u[28+(e|=0)|0]|u[e+29|0]<<8|u[e+30|0]<<16|u[e+31|0]<<24,c[t+24>>2]=u[e+24|0]|u[e+25|0]<<8|u[e+26|0]<<16|u[e+27|0]<<24,c[t+28>>2]=n,n=u[e+20|0]|u[e+21|0]<<8|u[e+22|0]<<16|u[e+23|0]<<24,c[t+16>>2]=u[e+16|0]|u[e+17|0]<<8|u[e+18|0]<<16|u[e+19|0]<<24,c[t+20>>2]=n,n=u[e+4|0]|u[e+5|0]<<8|u[e+6|0]<<16|u[e+7|0]<<24,c[t>>2]=u[0|e]|u[e+1|0]<<8|u[e+2|0]<<16|u[e+3|0]<<24,c[t+4>>2]=n,n=u[e+12|0]|u[e+13|0]<<8|u[e+14|0]<<16|u[e+15|0]<<24,c[t+8>>2]=u[e+8|0]|u[e+9|0]<<8|u[e+10|0]<<16|u[e+11|0]<<24,c[t+12>>2]=n,n=u[e+40|0]|u[e+41|0]<<8|u[e+42|0]<<16|u[e+43|0]<<24,c[t+32>>2]=u[e+36|0]|u[e+37|0]<<8|u[e+38|0]<<16|u[e+39|0]<<24,c[t+36>>2]=n,ze(t,t,e+32|0,e),n=c[t+28>>2],r=c[t+24>>2],s[e+24|0]=r,s[e+25|0]=r>>>8,s[e+26|0]=r>>>16,s[e+27|0]=r>>>24,s[e+28|0]=n,s[e+29|0]=n>>>8,s[e+30|0]=n>>>16,s[e+31|0]=n>>>24,n=c[t+20>>2],r=c[t+16>>2],s[e+16|0]=r,s[e+17|0]=r>>>8,s[e+18|0]=r>>>16,s[e+19|0]=r>>>24,s[e+20|0]=n,s[e+21|0]=n>>>8,s[e+22|0]=n>>>16,s[e+23|0]=n>>>24,n=c[t+12>>2],r=c[t+8>>2],s[e+8|0]=r,s[e+9|0]=r>>>8,s[e+10|0]=r>>>16,s[e+11|0]=r>>>24,s[e+12|0]=n,s[e+13|0]=n>>>8,s[e+14|0]=n>>>16,s[e+15|0]=n>>>24,n=c[t+4>>2],r=c[t>>2],s[0|e]=r,s[e+1|0]=r>>>8,s[e+2|0]=r>>>16,s[e+3|0]=r>>>24,s[e+4|0]=n,s[e+5|0]=n>>>8,s[e+6|0]=n>>>16,s[e+7|0]=n>>>24,r=c[t+36>>2],n=c[t+32>>2],s[e+32|0]=1,s[e+33|0]=0,s[e+34|0]=0,s[e+35|0]=0,s[e+36|0]=n,s[e+37|0]=n>>>8,s[e+38|0]=n>>>16,s[e+39|0]=n>>>24,s[e+40|0]=r,s[e+41|0]=r>>>8,s[e+42|0]=r>>>16,s[e+43|0]=r>>>24,m=t+48|0},$a:function(e,t,n,r,a,o,d,f,l,b){e|=0,t|=0,r|=0,d|=0,l|=0,b|=0;var p,h=0,y=0,v=0;return h=a|=0,a=o|=0,h|=o=0,p=o|(f|=0),m=o=m-384|0,(n|=0)&&(c[n>>2]=0,c[n+4>>2]=0),!a&h>>>0<4294967279?(qe(y=o+16|0,64,v=e+32|0,e),Ge(f=o+80|0,y),$e(y,64),Je(f,d,p,l),Je(f,33904,0-p&15,0),c[o+72>>2]=0,c[o+76>>2]=0,c[(d=o- -64|0)>>2]=0,c[d+4>>2]=0,c[o+56>>2]=0,c[o+60>>2]=0,c[o+48>>2]=0,c[o+52>>2]=0,c[o+40>>2]=0,c[o+44>>2]=0,c[o+32>>2]=0,c[o+36>>2]=0,c[o+16>>2]=0,c[o+20>>2]=0,c[o+24>>2]=0,c[o+28>>2]=0,s[o+16|0]=b,ve(y,y,64,0,v,1,e),Je(f,y,64,0),s[0|t]=u[o+16|0],ve(t=t+1|0,r,h,a,v,2,e),Je(f,t,h,a),Je(f,33904,15&h,0),c[o+8>>2]=p,c[o+12>>2]=l,Je(f,r=o+8|0,8,0),c[o+8>>2]=h- -64,c[o+12>>2]=a-((h>>>0<4294967232)-1|0),Je(f,r,8,0),We(f,t=t+h|0),$e(f,256),s[e+36|0]=u[e+36|0]^u[0|t],s[e+37|0]=u[e+37|0]^u[t+1|0],s[e+38|0]=u[e+38|0]^u[t+2|0],s[e+39|0]=u[e+39|0]^u[t+3|0],s[e+40|0]=u[e+40|0]^u[t+4|0],s[e+41|0]=u[e+41|0]^u[t+5|0],s[e+42|0]=u[e+42|0]^u[t+6|0],s[e+43|0]=u[e+43|0]^u[t+7|0],ye(v),(2&b||oe(v,4))&&(t=u[e+28|0]|u[e+29|0]<<8|u[e+30|0]<<16|u[e+31|0]<<24,c[o+360>>2]=u[e+24|0]|u[e+25|0]<<8|u[e+26|0]<<16|u[e+27|0]<<24,c[o+364>>2]=t,t=u[e+20|0]|u[e+21|0]<<8|u[e+22|0]<<16|u[e+23|0]<<24,c[o+352>>2]=u[e+16|0]|u[e+17|0]<<8|u[e+18|0]<<16|u[e+19|0]<<24,c[o+356>>2]=t,t=u[e+4|0]|u[e+5|0]<<8|u[e+6|0]<<16|u[e+7|0]<<24,c[o+336>>2]=u[0|e]|u[e+1|0]<<8|u[e+2|0]<<16|u[e+3|0]<<24,c[o+340>>2]=t,t=u[e+12|0]|u[e+13|0]<<8|u[e+14|0]<<16|u[e+15|0]<<24,c[o+344>>2]=u[e+8|0]|u[e+9|0]<<8|u[e+10|0]<<16|u[e+11|0]<<24,c[o+348>>2]=t,t=u[e+40|0]|u[e+41|0]<<8|u[e+42|0]<<16|u[e+43|0]<<24,c[o+368>>2]=u[e+36|0]|u[e+37|0]<<8|u[e+38|0]<<16|u[e+39|0]<<24,c[o+372>>2]=t,ze(t=o+336|0,t,v,e),t=c[o+364>>2],r=c[o+360>>2],s[e+24|0]=r,s[e+25|0]=r>>>8,s[e+26|0]=r>>>16,s[e+27|0]=r>>>24,s[e+28|0]=t,s[e+29|0]=t>>>8,s[e+30|0]=t>>>16,s[e+31|0]=t>>>24,t=c[o+356>>2],r=c[o+352>>2],s[e+16|0]=r,s[e+17|0]=r>>>8,s[e+18|0]=r>>>16,s[e+19|0]=r>>>24,s[e+20|0]=t,s[e+21|0]=t>>>8,s[e+22|0]=t>>>16,s[e+23|0]=t>>>24,t=c[o+348>>2],r=c[o+344>>2],s[e+8|0]=r,s[e+9|0]=r>>>8,s[e+10|0]=r>>>16,s[e+11|0]=r>>>24,s[e+12|0]=t,s[e+13|0]=t>>>8,s[e+14|0]=t>>>16,s[e+15|0]=t>>>24,t=c[o+340>>2],r=c[o+336>>2],s[0|e]=r,s[e+1|0]=r>>>8,s[e+2|0]=r>>>16,s[e+3|0]=r>>>24,s[e+4|0]=t,s[e+5|0]=t>>>8,s[e+6|0]=t>>>16,s[e+7|0]=t>>>24,t=c[o+368>>2],r=c[o+372>>2],s[e+32|0]=1,s[e+33|0]=0,s[e+34|0]=0,s[e+35|0]=0,s[e+36|0]=t,s[e+37|0]=t>>>8,s[e+38|0]=t>>>16,s[e+39|0]=t>>>24,s[e+40|0]=r,s[e+41|0]=r>>>8,s[e+42|0]=r>>>16,s[e+43|0]=r>>>24),n&&(a=(e=h+17|0)>>>0<17?a+1|0:a,c[n>>2]=e,c[n+4>>2]=a),m=o+384|0):(Le(),i()),0},ab:function(e,t,n,r,a,o,d,f,l,b){e|=0,t|=0,r|=0,a|=0,f|=0,b|=0;var p,h=0,y=0,v=0,g=0,A=0,w=0;h=o|=0,o=d|=0,y=0|h,p=l|=0,m=d=m-400|0,(n|=0)&&(c[n>>2]=0,c[n+4>>2]=0),r&&(s[0|r]=255),w=-1;e:{t:{if(!(!o&y>>>0<17)){if(A=h=o-(y>>>0<17)|0,!h&(l=y-17|0)>>>0>=4294967279|h)break t;qe(v=d+32|0,64,g=e+32|0,e),Ge(h=d+96|0,v),$e(v,64),Je(h,f,p,b),Je(h,33904,0-p&15,0),c[d+88>>2]=0,c[d+92>>2]=0,c[d+80>>2]=0,c[d+84>>2]=0,c[d+72>>2]=0,c[d+76>>2]=0,c[(f=d- -64|0)>>2]=0,c[f+4>>2]=0,c[d+56>>2]=0,c[d+60>>2]=0,c[d+48>>2]=0,c[d+52>>2]=0,c[d+40>>2]=0,c[d+44>>2]=0,c[d+32>>2]=0,c[d+36>>2]=0,s[d+32|0]=u[0|a],ve(v,v,64,0,g,1,e),f=u[d+32|0],s[d+32|0]=u[0|a],Je(h,v,64,0),Je(h,a=a+1|0,l,A),Je(h,33904,y-1&15,0),c[d+24>>2]=p,c[d+28>>2]=b,Je(h,b=d+24|0,8,0),o=(y=y+47|0)>>>0<47?o+1|0:o,c[d+24>>2]=y,c[d+28>>2]=o,Je(h,b,8,0),We(h,d),$e(h,256),ce(d,a+l|0,16)?$e(d,16):(ve(t,a,l,A,g,2,e),s[e+36|0]=u[e+36|0]^u[0|d],s[e+37|0]=u[e+37|0]^u[d+1|0],s[e+38|0]=u[e+38|0]^u[d+2|0],s[e+39|0]=u[e+39|0]^u[d+3|0],s[e+40|0]=u[e+40|0]^u[d+4|0],s[e+41|0]=u[e+41|0]^u[d+5|0],s[e+42|0]=u[e+42|0]^u[d+6|0],s[e+43|0]=u[e+43|0]^u[d+7|0],ye(g),(2&f||oe(g,4))&&(t=u[e+28|0]|u[e+29|0]<<8|u[e+30|0]<<16|u[e+31|0]<<24,c[d+376>>2]=u[e+24|0]|u[e+25|0]<<8|u[e+26|0]<<16|u[e+27|0]<<24,c[d+380>>2]=t,t=u[e+20|0]|u[e+21|0]<<8|u[e+22|0]<<16|u[e+23|0]<<24,c[d+368>>2]=u[e+16|0]|u[e+17|0]<<8|u[e+18|0]<<16|u[e+19|0]<<24,c[d+372>>2]=t,t=u[e+4|0]|u[e+5|0]<<8|u[e+6|0]<<16|u[e+7|0]<<24,c[d+352>>2]=u[0|e]|u[e+1|0]<<8|u[e+2|0]<<16|u[e+3|0]<<24,c[d+356>>2]=t,t=u[e+12|0]|u[e+13|0]<<8|u[e+14|0]<<16|u[e+15|0]<<24,c[d+360>>2]=u[e+8|0]|u[e+9|0]<<8|u[e+10|0]<<16|u[e+11|0]<<24,c[d+364>>2]=t,t=u[e+40|0]|u[e+41|0]<<8|u[e+42|0]<<16|u[e+43|0]<<24,c[d+384>>2]=u[e+36|0]|u[e+37|0]<<8|u[e+38|0]<<16|u[e+39|0]<<24,c[d+388>>2]=t,ze(t=d+352|0,t,g,e),t=c[d+380>>2],a=c[d+376>>2],s[e+24|0]=a,s[e+25|0]=a>>>8,s[e+26|0]=a>>>16,s[e+27|0]=a>>>24,s[e+28|0]=t,s[e+29|0]=t>>>8,s[e+30|0]=t>>>16,s[e+31|0]=t>>>24,t=c[d+372>>2],a=c[d+368>>2],s[e+16|0]=a,s[e+17|0]=a>>>8,s[e+18|0]=a>>>16,s[e+19|0]=a>>>24,s[e+20|0]=t,s[e+21|0]=t>>>8,s[e+22|0]=t>>>16,s[e+23|0]=t>>>24,t=c[d+364>>2],a=c[d+360>>2],s[e+8|0]=a,s[e+9|0]=a>>>8,s[e+10|0]=a>>>16,s[e+11|0]=a>>>24,s[e+12|0]=t,s[e+13|0]=t>>>8,s[e+14|0]=t>>>16,s[e+15|0]=t>>>24,t=c[d+356>>2],a=c[d+352>>2],s[0|e]=a,s[e+1|0]=a>>>8,s[e+2|0]=a>>>16,s[e+3|0]=a>>>24,s[e+4|0]=t,s[e+5|0]=t>>>8,s[e+6|0]=t>>>16,s[e+7|0]=t>>>24,t=c[d+384>>2],a=c[d+388>>2],s[e+32|0]=1,s[e+33|0]=0,s[e+34|0]=0,s[e+35|0]=0,s[e+36|0]=t,s[e+37|0]=t>>>8,s[e+38|0]=t>>>16,s[e+39|0]=t>>>24,s[e+40|0]=a,s[e+41|0]=a>>>8,s[e+42|0]=a>>>16,s[e+43|0]=a>>>24),n&&(c[n>>2]=l,c[n+4>>2]=A),w=0,r&&(s[0|r]=f))}m=d+400|0;break e}Le(),i()}return 0|w},bb:function(){return 52},cb:function(){return 17},db:nt,eb:tt,fb:function(){return-18},gb:ct,hb:it,ib:function(){return 2},jb:ot,kb:st,lb:et,mb:function(e,t,n,r,a){e|=0,t|=0,n|=0,r|=0;var i,o=0,c=0,d=0,f=0,l=0,b=0,p=0,h=0,y=0,m=0,g=0,A=0,w=0,x=0,_=0,k=0;if(w=1886610805^(a=u[0|(o=a|=0)]|u[o+1|0]<<8|u[o+2|0]<<16|u[o+3|0]<<24),x=1936682341^(c=u[o+4|0]|u[o+5|0]<<8|u[o+6|0]<<16|u[o+7|0]<<24),a^=1852142177,d=1819895653^c,_=1852075885^(c=u[o+8|0]|u[o+9|0]<<8|u[o+10|0]<<16|u[o+11|0]<<24),k=1685025377^(o=u[o+12|0]|u[o+13|0]<<8|u[o+14|0]<<16|u[o+15|0]<<24),f=2037671283^c,c=1952801890^o,m=n,(0|(h=(t+n|0)-(i=7&n)|0))!=(0|t)){for(;n=(g=c^(A=u[t+4|0]|u[t+5|0]<<8|u[t+6|0]<<16|u[t+7|0]<<24))+d|0,f=a=(o=r=f^(y=u[0|t]|u[t+1|0]<<8|u[t+2|0]<<16|u[t+3|0]<<24))+a|0,p=n=a>>>0>>0?n+1|0:n,n=x+k|0,n=(d=w+_|0)>>>0<_>>>0?n+1|0:n,o=de(_,k,13)^d,c=n,n=p+(a=n^v)|0,n=o>>>0>(l=f+o|0)>>>0?n+1|0:n,o=de(o,a,17)^l,b=n,w=de(o,a=n^v,13),x=v,n=de(r,g,16),r=p^v,g=n^f,c=de(d,c,32),n=v+r|0,n=(c=(d=g+c|0)>>>0>>0?n+1|0:n)+a|0,p=n=(f=o+d|0)>>>0>>0?n+1|0:n,w=de(o=f^w,a=n^x,17),x=v,n=de(g,r,21),r=c^v,g=n^d,c=de(l,b,32),n=v+r|0,n=(c=(d=g+c|0)>>>0>>0?n+1|0:n)+a|0,_=(o=o+d|0)^w,a=n=o>>>0>>0?n+1|0:n,k=n^x,n=de(g,r,16),l=c^=v,b=de(n^=d,c,21),d=v,p=(c=de(f,p,32))+n|0,n=v+l|0,f=b^p,c=(n=c>>>0>p>>>0?n+1|0:n)^d,a=de(o,a,32),d=v,w=p^y,x=n^A,(0|h)!=(0|(t=t+8|0)););t=h}switch(A=0,b=m<<24,i-1|0){case 6:b|=u[t+6|0]<<16;case 5:b|=u[t+5|0]<<8;case 4:b|=u[t+4|0];case 3:A|=(r=u[t+3|0])<<24,b|=n=r>>>8|0;case 2:A|=(r=u[t+2|0])<<16,b|=n=r>>>16|0;case 1:A|=(r=u[t+1|0])<<8,b|=n=r>>>24|0;case 0:A=u[0|t]|A}return t=e,r=de(o=f^A,e=c^b,16),e=e+d|0,p=e=(f=a+o|0)>>>0>>0?e+1|0:e,l=de(a=r^f,e^=n=v,21),c=v,n=x+k|0,r=n=(o=w+_|0)>>>0<_>>>0?n+1|0:n,h=a,a=de(o,n,32),n=v+e|0,e=c,c=n=a>>>0>(d=h+a|0)>>>0?n+1|0:n,m=de(a=d^l,e^=n,16),y=v,o=(n=f)+(f=h=de(_,k,13)^o)|0,n=(l=v^r)+p|0,r=o,p=a,a=de(o,n=o>>>0>>0?n+1|0:n,32),e=v+e|0,g=de(o=(f=p+a|0)^m,a=(p=a>>>0>f>>>0?e+1|0:e)^y,21),y=v,h=de(h,l,17)^r,n=(l=v^n)+c|0,e=n=(e=h)>>>0>(r=e+d|0)>>>0?n+1|0:n,c=o,o=de(r,n,32),n=v+a|0,m=n=(c=o>>>0>(d=c+o|0)>>>0?n+1|0:n)^y,y=de(g^=d,n,16),o=v,h=de(h,l,13)^r,e=(l=e^v)+p|0,r=e=(n=h)>>>0>(a=n+f|0)>>>0?e+1|0:e,e=de(a,e,32),n=m+v|0,m=n=(f=o)^(o=(e=g+(255^e)|0)>>>0>>0?n+1|0:n),f=e,y=de(g=y^e,n,21),p=v,h=de(h,l,17)^a,n=(l=r^v)+(c^b)|0,r=n=(e=d^A)>>>0>(a=h+e|0)>>>0?n+1|0:n,e=de(a,n,32),n=m+v|0,n=(c=(e=e+g|0)>>>0>>0?n+1|0:n)^p,p=e,y=de(m=y^e,n,16),d=v,l=de(h,l,13)^a,e=o+(b=v^r)|0,r=e=(a=f+l|0)>>>0>>0?e+1|0:e,e=de(a,e,32),n=n+v|0,h=n=(o=(e=e+m|0)>>>0>>0?n+1|0:n)^d,d=e,y=de(m=y^e,n,21),f=v,e=de(l,b,17),n=c+(l=r^v)|0,r=n=(a=p+(b=e^a)|0)>>>0

>>0?n+1|0:n,e=de(a,n,32),n=h+v|0,f=n=(c=(e=e+m|0)>>>0>>0?n+1|0:n)^f,p=e,h=de(m=y^e,n,16),y=v,e=de(b,l,13),n=o+(l=r^v)|0,r=n=(o=d+(b=e^a)|0)>>>0>>0?n+1|0:n,e=de(o,n,32),n=f+v|0,f=e=e+m|0,d=n=e>>>0>>0?n+1|0:n,m=de(a=h^e,e=n^y,21),h=v,b=de(b,l,17),n=c+(y=r^v)|0,l=o^b,o=a,a=de(r=p+l|0,n=r>>>0

>>0?n+1|0:n,32),e=v+e|0,h=de(o=(p=o+a|0)^m,a=(c=a>>>0>p>>>0?e+1|0:e)^h,16),b=v,e=de(l,y,13),n=d+(y=n^v)|0,e=n=(r=f+(l=e^r)|0)>>>0>>0?n+1|0:n,d=de(r,n,32),n=v+a|0,a=o=d+o|0,b=de(o^h,(n=o>>>0>>0?n+1|0:n)^b,21),f=v,r=de(l,y,17)^r,d=de(r,e^=v,13),e=e+c|0,c=e=v^((r=r+p|0)>>>0

>>0?e+1|0:e),r=de(o=r^d,e,17)^b,e=v^f,n=n+c|0,f=a,r=de(a=a+o|0,n=f>>>0>a>>>0?n+1|0:n,32)^r^a,s[0|t]=r,s[t+1|0]=r>>>8,s[t+2|0]=r>>>16,s[t+3|0]=r>>>24,e^=n^v,s[t+4|0]=e,s[t+5|0]=e>>>8,s[t+6|0]=e>>>16,s[t+7|0]=e>>>24,0},nb:function(e){ge(e|=0,16)},ob:function(){return 208},pb:at,qb:tt,rb:tt,sb:at,tb:function(){return-65},ub:function(e,t,n){e|=0;var r,a,i,o,c=0,d=0,f=0,l=0,b=0;return m=i=m-160|0,ie(t|=0,n|=0,32,0),s[0|t]=248&u[0|t],s[t+31|0]=63&u[t+31|0]|64,U(i,t),xe(e,i),d=u[(a=n)+8|0]|u[a+9|0]<<8|u[a+10|0]<<16|u[a+11|0]<<24,c=u[a+12|0]|u[a+13|0]<<8|u[a+14|0]<<16|u[a+15|0]<<24,f=u[a+16|0]|u[a+17|0]<<8|u[a+18|0]<<16|u[a+19|0]<<24,l=u[a+20|0]|u[a+21|0]<<8|u[a+22|0]<<16|u[a+23|0]<<24,b=u[0|a]|u[a+1|0]<<8|u[a+2|0]<<16|u[a+3|0]<<24,n=u[a+4|0]|u[a+5|0]<<8|u[a+6|0]<<16|u[a+7|0]<<24,o=u[a+28|0]|u[a+29|0]<<8|u[a+30|0]<<16|u[a+31|0]<<24,r=t,t=u[a+24|0]|u[a+25|0]<<8|u[a+26|0]<<16|u[a+27|0]<<24,s[r+24|0]=t,s[r+25|0]=t>>>8,s[r+26|0]=t>>>16,s[r+27|0]=t>>>24,s[r+28|0]=o,s[r+29|0]=o>>>8,s[r+30|0]=o>>>16,s[r+31|0]=o>>>24,s[r+16|0]=f,s[r+17|0]=f>>>8,s[r+18|0]=f>>>16,s[r+19|0]=f>>>24,s[r+20|0]=l,s[r+21|0]=l>>>8,s[r+22|0]=l>>>16,s[r+23|0]=l>>>24,s[r+8|0]=d,s[r+9|0]=d>>>8,s[r+10|0]=d>>>16,s[r+11|0]=d>>>24,s[r+12|0]=c,s[r+13|0]=c>>>8,s[r+14|0]=c>>>16,s[r+15|0]=c>>>24,s[0|r]=b,s[r+1|0]=b>>>8,s[r+2|0]=b>>>16,s[r+3|0]=b>>>24,s[r+4|0]=n,s[r+5|0]=n>>>8,s[r+6|0]=n>>>16,s[r+7|0]=n>>>24,f=u[(c=e)+8|0]|u[c+9|0]<<8|u[c+10|0]<<16|u[c+11|0]<<24,l=u[c+12|0]|u[c+13|0]<<8|u[c+14|0]<<16|u[c+15|0]<<24,b=u[c+16|0]|u[c+17|0]<<8|u[c+18|0]<<16|u[c+19|0]<<24,n=u[c+20|0]|u[c+21|0]<<8|u[c+22|0]<<16|u[c+23|0]<<24,t=u[0|c]|u[c+1|0]<<8|u[c+2|0]<<16|u[c+3|0]<<24,e=u[c+4|0]|u[c+5|0]<<8|u[c+6|0]<<16|u[c+7|0]<<24,d=u[c+28|0]|u[c+29|0]<<8|u[c+30|0]<<16|u[c+31|0]<<24,c=u[c+24|0]|u[c+25|0]<<8|u[c+26|0]<<16|u[c+27|0]<<24,s[r+56|0]=c,s[r+57|0]=c>>>8,s[r+58|0]=c>>>16,s[r+59|0]=c>>>24,s[r+60|0]=d,s[r+61|0]=d>>>8,s[r+62|0]=d>>>16,s[r+63|0]=d>>>24,s[r+48|0]=b,s[r+49|0]=b>>>8,s[r+50|0]=b>>>16,s[r+51|0]=b>>>24,s[r+52|0]=n,s[r+53|0]=n>>>8,s[r+54|0]=n>>>16,s[r+55|0]=n>>>24,s[r+40|0]=f,s[r+41|0]=f>>>8,s[r+42|0]=f>>>16,s[r+43|0]=f>>>24,s[r+44|0]=l,s[r+45|0]=l>>>8,s[r+46|0]=l>>>16,s[r+47|0]=l>>>24,s[r+32|0]=t,s[r+33|0]=t>>>8,s[r+34|0]=t>>>16,s[r+35|0]=t>>>24,s[r+36|0]=e,s[r+37|0]=e>>>8,s[r+38|0]=e>>>16,s[r+39|0]=e>>>24,m=i+160|0,0},vb:function(e,t){e|=0,t|=0;var n,r,a,i,o,d=0,f=0,l=0;return m=f=m-192|0,ge(f,32),ie(t,f,32,0),s[0|t]=248&u[0|t],s[t+31|0]=63&u[t+31|0]|64,U(l=f+32|0,t),xe(e,l),n=f,l=c[f+28>>2],f=c[f+24>>2],s[t+24|0]=f,s[t+25|0]=f>>>8,s[t+26|0]=f>>>16,s[t+27|0]=f>>>24,s[t+28|0]=l,s[t+29|0]=l>>>8,s[t+30|0]=l>>>16,s[t+31|0]=l>>>24,l=c[n+20>>2],f=c[n+16>>2],s[t+16|0]=f,s[t+17|0]=f>>>8,s[t+18|0]=f>>>16,s[t+19|0]=f>>>24,s[t+20|0]=l,s[t+21|0]=l>>>8,s[t+22|0]=l>>>16,s[t+23|0]=l>>>24,l=c[n+12>>2],f=c[n+8>>2],s[t+8|0]=f,s[t+9|0]=f>>>8,s[t+10|0]=f>>>16,s[t+11|0]=f>>>24,s[t+12|0]=l,s[t+13|0]=l>>>8,s[t+14|0]=l>>>16,s[t+15|0]=l>>>24,l=c[n+4>>2],f=c[n>>2],s[0|t]=f,s[t+1|0]=f>>>8,s[t+2|0]=f>>>16,s[t+3|0]=f>>>24,s[t+4|0]=l,s[t+5|0]=l>>>8,s[t+6|0]=l>>>16,s[t+7|0]=l>>>24,r=u[(d=e)+8|0]|u[d+9|0]<<8|u[d+10|0]<<16|u[d+11|0]<<24,a=u[d+12|0]|u[d+13|0]<<8|u[d+14|0]<<16|u[d+15|0]<<24,i=u[d+16|0]|u[d+17|0]<<8|u[d+18|0]<<16|u[d+19|0]<<24,l=u[d+20|0]|u[d+21|0]<<8|u[d+22|0]<<16|u[d+23|0]<<24,f=u[0|d]|u[d+1|0]<<8|u[d+2|0]<<16|u[d+3|0]<<24,e=u[d+4|0]|u[d+5|0]<<8|u[d+6|0]<<16|u[d+7|0]<<24,o=u[d+28|0]|u[d+29|0]<<8|u[d+30|0]<<16|u[d+31|0]<<24,d=u[d+24|0]|u[d+25|0]<<8|u[d+26|0]<<16|u[d+27|0]<<24,s[t+56|0]=d,s[t+57|0]=d>>>8,s[t+58|0]=d>>>16,s[t+59|0]=d>>>24,s[t+60|0]=o,s[t+61|0]=o>>>8,s[t+62|0]=o>>>16,s[t+63|0]=o>>>24,s[t+48|0]=i,s[t+49|0]=i>>>8,s[t+50|0]=i>>>16,s[t+51|0]=i>>>24,s[t+52|0]=l,s[t+53|0]=l>>>8,s[t+54|0]=l>>>16,s[t+55|0]=l>>>24,s[t+40|0]=r,s[t+41|0]=r>>>8,s[t+42|0]=r>>>16,s[t+43|0]=r>>>24,s[t+44|0]=a,s[t+45|0]=a>>>8,s[t+46|0]=a>>>16,s[t+47|0]=a>>>24,s[t+32|0]=f,s[t+33|0]=f>>>8,s[t+34|0]=f>>>16,s[t+35|0]=f>>>24,s[t+36|0]=e,s[t+37|0]=e>>>8,s[t+38|0]=e>>>16,s[t+39|0]=e>>>24,$e(n,32),m=n+192|0,0},wb:function(e,t,n,r,a,i){t|=0,a|=0,i|=0;var o,s=0;return m=o=m-16|0,A(e|=0,o+8|0,_e(e- -64|0,n|=0,r|=0),r,a,i,0),64!=c[o+8>>2]|c[o+12>>2]?(t&&(c[t>>2]=0,c[t+4>>2]=0),Ce(e,0,r- -64|0),s=-1):t&&(c[t>>2]=r- -64,c[t+4>>2]=a-((r>>>0<4294967232)-1|0)),m=o+16|0,0|s},xb:function(e,t,n,r,a,i){e|=0,t|=0,n|=0;var o=0;e:{t:{if(!(!(a|=0)&(r|=0)>>>0<64||(a=a-1|0,!(a=(r=r+-64|0)>>>0<4294967232?a+1|0:a)&r>>>0>4294967231|a))){if(!_(n,o=n- -64|0,r,a,i|=0,0))break t;e&&Ce(e,0,r)}if(n=-1,!t)break e;c[t>>2]=0,c[t+4>>2]=0;break e}t&&(c[t>>2]=r,c[t+4>>2]=a),n=0,e&&_e(e,o,r)}return 0|n},yb:function(e,t,n,r,a,i){return A(e|=0,t|=0,n|=0,r|=0,a|=0,i|=0,0),0},zb:function(e,t,n,r,a){return 0|_(e|=0,t|=0,n|=0,r|=0,a|=0,0)},Ab:function(e){return se(e|=0),0},Bb:function(e,t,n,r){return 0|L(e|=0,t|=0,n|=0,r|=0)},Cb:function(e,t,n,r){var a;return t|=0,n|=0,r|=0,m=a=m+-64|0,C(e|=0,a),e=A(t,n,a,64,0,r,1),m=a- -64|0,0|e},Db:function(e,t,n){var r;return t|=0,n|=0,m=r=m+-64|0,C(e|=0,r),e=_(t,r,64,0,n,1),m=r- -64|0,0|e},Eb:function(e,t){e|=0;var n,r=0,a=0,i=0,o=0,u=0,d=0,l=0,b=0,p=0,h=0,y=0,g=0,A=0,w=0,x=0,_=0,S=0,E=0,C=0,T=0,P=0,M=0,B=0,D=0,j=0,U=0,L=0,F=0,Z=0,H=0,z=0,Q=0,V=0,J=0,G=0,W=0,X=0,$=0,ee=0,te=0,ne=0,re=0,ae=0,ie=0,se=0,ce=0,de=0,fe=0,le=0,be=0,pe=0,he=0,ye=0,ve=0,ge=0,Ae=0,we=0,xe=0,_e=0,ke=0,Ie=0,Se=0,Ee=0,Te=0,Oe=0,Pe=0,Me=0,Be=0,Ne=0,Re=0,De=0,je=0,Ue=0,Le=0,Fe=0,Ze=0,He=0,ze=0,Qe=0,qe=0;if(m=n=m-256|0,je=-1,!ue(t|=0)&&!O(n+96|0,t)){for(m=r=m-2048|0,K(A=r+640|0,t=n+96|0),a=c[t+8>>2],o=c[t+12>>2],i=c[t+16>>2],u=c[t+20>>2],p=c[t+24>>2],h=c[t+28>>2],d=c[t>>2],l=c[t+4>>2],w=c[t+36>>2],c[r+352>>2]=c[t+32>>2],c[r+356>>2]=w,c[r+344>>2]=p,c[r+348>>2]=h,c[r+336>>2]=i,c[r+340>>2]=u,c[r+328>>2]=a,c[r+332>>2]=o,c[r+320>>2]=d,c[r+324>>2]=l,a=c[t+40>>2],o=c[t+44>>2],i=c[t+48>>2],u=c[t+52>>2],p=c[t+56>>2],h=c[t+60>>2],l=c[(d=t- -64|0)>>2],d=c[d+4>>2],w=c[t+76>>2],c[r+392>>2]=c[t+72>>2],c[r+396>>2]=w,c[r+384>>2]=l,c[r+388>>2]=d,c[r+376>>2]=p,c[r+380>>2]=h,c[r+368>>2]=i,c[r+372>>2]=u,c[r+360>>2]=a,c[r+364>>2]=o,a=c[t+80>>2],o=c[t+84>>2],i=c[t+88>>2],u=c[t+92>>2],p=c[t+96>>2],h=c[t+100>>2],d=c[t+104>>2],l=c[t+108>>2],w=c[t+116>>2],c[r+432>>2]=c[t+112>>2],c[r+436>>2]=w,c[r+424>>2]=d,c[r+428>>2]=l,c[r+416>>2]=p,c[r+420>>2]=h,c[r+408>>2]=i,c[r+412>>2]=u,c[r+400>>2]=a,c[r+404>>2]=o,I(t=r+480|0,a=r+320|0),k(d=r+160|0,t,o=r+600|0),k(r+200|0,i=r+520|0,u=r+560|0),k(r+240|0,u,o),k(r+280|0,t,i),R(t,d,A),k(a,t,o),k(A=r+360|0,i,u),k(p=r+400|0,u,o),k(h=r+440|0,t,i),K(l=r+800|0,a),R(t,d,l),k(a,t,o),k(A,i,u),k(p,u,o),k(h,t,i),K(l=r+960|0,a),R(t,d,l),k(a,t,o),k(A,i,u),k(p,u,o),k(h,t,i),K(l=r+1120|0,a),R(t,d,l),k(a,t,o),k(A,i,u),k(p,u,o),k(h,t,i),K(l=r+1280|0,a),R(t,d,l),k(a,t,o),k(A,i,u),k(p,u,o),k(h,t,i),K(l=r+1440|0,a),R(t,d,l),k(a,t,o),k(A,i,u),k(p,u,o),k(h,t,i),K(l=r+1600|0,a),R(t,d,l),k(a,t,o),k(A,i,u),k(p,u,o),k(h,t,i),K(r+1760|0,a),c[r+32>>2]=0,c[r+36>>2]=0,c[r+24>>2]=0,c[r+28>>2]=0,c[r+16>>2]=0,c[r+20>>2]=0,c[r+8>>2]=0,c[r+12>>2]=0,c[r+44>>2]=0,c[r+48>>2]=0,c[r+52>>2]=0,c[r+56>>2]=0,c[r+60>>2]=0,c[r+64>>2]=0,c[r+68>>2]=0,c[r+72>>2]=0,c[r+76>>2]=0,c[r+80>>2]=1,c[r>>2]=0,c[r+4>>2]=0,c[r+40>>2]=1,Ce(r+84|0,0,76),l=r+120|0,w=r+80|0,C=r+40|0,t=252;a=c[r+36>>2],c[r+1960>>2]=c[r+32>>2],c[r+1964>>2]=a,a=c[r+28>>2],c[r+1952>>2]=c[r+24>>2],c[r+1956>>2]=a,a=c[r+20>>2],c[r+1944>>2]=c[r+16>>2],c[r+1948>>2]=a,a=c[r+12>>2],c[r+1936>>2]=c[r+8>>2],c[r+1940>>2]=a,a=c[r+4>>2],c[r+1928>>2]=c[r>>2],c[r+1932>>2]=a,a=c[r+76>>2],c[r+2e3>>2]=c[r+72>>2],c[r+2004>>2]=a,a=c[r+68>>2],c[r+1992>>2]=c[r+64>>2],c[r+1996>>2]=a,a=c[r+60>>2],c[r+1984>>2]=c[r+56>>2],c[r+1988>>2]=a,a=c[r+52>>2],c[r+1976>>2]=c[r+48>>2],c[r+1980>>2]=a,a=c[r+44>>2],c[r+1968>>2]=c[r+40>>2],c[r+1972>>2]=a,a=c[r+84>>2],c[r+2008>>2]=c[r+80>>2],c[r+2012>>2]=a,a=c[r+92>>2],c[r+2016>>2]=c[r+88>>2],c[r+2020>>2]=a,a=c[r+100>>2],c[r+2024>>2]=c[r+96>>2],c[r+2028>>2]=a,a=c[r+108>>2],c[r+2032>>2]=c[r+104>>2],c[r+2036>>2]=a,a=c[r+116>>2],c[r+2040>>2]=c[r+112>>2],c[r+2044>>2]=a,a=t,t=s[t+33424|0],I(r+480|0,r+1928|0),(0|t)>0?(k(_=r+320|0,d=r+480|0,o),k(A,i,u),k(p,u,o),k(h,d,i),R(d,_,(r+640|0)+f((254&t)>>>1|0,160)|0)):(0|t)>=0||(k(_=r+320|0,d=r+480|0,o),k(A,i,u),k(p,u,o),k(h,d,i),N(d,_,(r+640|0)+f((0-t&254)>>>1|0,160)|0)),k(r,t=r+480|0,o),k(C,i,u),k(w,u,o),k(l,t,i),t=a-1|0,a;);Y(t=r+640|0,r),t=oe(t,32),m=r+2048|0,t&&(i=c[n+136>>2],c[n>>2]=1-i,je=0,Q=c[n+172>>2],c[n+36>>2]=0-Q,l=c[n+168>>2],c[n+32>>2]=0-l,V=c[n+164>>2],c[n+28>>2]=0-V,A=c[n+160>>2],c[n+24>>2]=0-A,J=c[n+156>>2],c[n+20>>2]=0-J,p=c[n+152>>2],c[n+16>>2]=0-p,G=c[n+148>>2],c[n+12>>2]=0-G,h=c[n+144>>2],c[n+8>>2]=0-h,W=c[n+140>>2],c[n+4>>2]=0-W,q(n,n),t=me(C=c[n+4>>2],Z=C>>31,T=J<<1,le=T>>31),a=v,r=me(u=c[n>>2],M=u>>31,A,B=A>>31),a=v+a|0,a=(t=r+t|0)>>>0>>0?a+1|0:a,r=(o=me(D=c[n+8>>2],X=D>>31,p,j=p>>31))+t|0,t=v+a|0,t=r>>>0>>0?t+1|0:t,a=r,r=me(H=c[n+12>>2],te=H>>31,ae=G<<1,be=ae>>31),t=v+t|0,t=r>>>0>(a=a+r|0)>>>0?t+1|0:t,r=me($=c[n+16>>2],ie=$>>31,h,U=h>>31),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,Pe=o=c[n+20>>2],d=me(o,pe=o>>31,se=W<<1,he=se>>31),r=v+t|0,r=(a=d+a|0)>>>0>>0?r+1|0:r,Me=S=c[n+24>>2],t=(i=me(S,Ee=S>>31,d=i+1|0,L=d>>31))+a|0,a=v+r|0,a=t>>>0>>0?a+1|0:a,ye=c[n+28>>2],r=(i=me(y=f(ye,19),ne=y>>31,ce=Q<<1,ve=ce>>31))+t|0,t=v+a|0,t=r>>>0>>0?t+1|0:t,a=r,Ue=c[n+32>>2],r=me(_=f(Ue,19),ee=_>>31,l,F=l>>31),t=v+t|0,t=r>>>0>(a=a+r|0)>>>0?t+1|0:t,Le=c[n+36>>2],r=me(w=f(Le,19),z=w>>31,de=V<<1,ge=de>>31),t=v+t|0,g=a=r+a|0,i=r>>>0>a>>>0?t+1|0:t,t=me(p,j,C,Z),a=v,b=me(u,M,J,Ae=J>>31),r=v+a|0,r=(t=b+t|0)>>>0>>0?r+1|0:r,b=me(D,X,G,we=G>>31),a=v+r|0,a=(t=b+t|0)>>>0>>0?a+1|0:a,r=(b=me(h,U,H,te))+t|0,t=v+a|0,t=r>>>0>>0?t+1|0:t,a=r,r=me($,ie,W,xe=W>>31),t=v+t|0,t=r>>>0>(a=a+r|0)>>>0?t+1|0:t,r=me(d,L,o,pe),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,b=me(S=f(S,19),fe=S>>31,Q,_e=Q>>31),r=v+t|0,r=(a=b+a|0)>>>0>>0?r+1|0:r,t=(b=me(l,F,y,ne))+a|0,a=v+r|0,a=t>>>0>>0?a+1|0:a,r=(b=me(_,ee,V,ke=V>>31))+t|0,t=v+a|0,t=r>>>0>>0?t+1|0:t,a=r,r=me(A,B,w,z),t=v+t|0,Be=a=a+r|0,re=r>>>0>a>>>0?t+1|0:t,t=me(C,Z,ae,be),r=v,a=(b=me(u,M,p,j))+t|0,t=v+r|0,t=a>>>0>>0?t+1|0:t,b=me(h,U,D,X),r=v+t|0,r=(a=b+a|0)>>>0>>0?r+1|0:r,t=(b=me(H,te,se,he))+a|0,a=v+r|0,a=t>>>0>>0?a+1|0:a,r=(b=me(d,L,$,ie))+t|0,t=v+a|0,t=r>>>0>>0?t+1|0:t,a=r,r=me(b=f(o,19),Ie=b>>31,ce,ve),t=v+t|0,t=r>>>0>(a=a+r|0)>>>0?t+1|0:t,r=me(l,F,S,fe),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,o=me(y,ne,de,ge),r=v+t|0,r=(a=o+a|0)>>>0>>0?r+1|0:r,t=(o=me(A,B,_,ee))+a|0,a=v+r|0,a=t>>>0>>0?a+1|0:a,r=(o=me(w,z,T,le))+t|0,t=v+a|0,Fe=r,Ze=t=r>>>0>>0?t+1|0:t,He=r=r+33554432|0,ze=t=r>>>0<33554432?t+1|0:t,r=(67108863&t)<<6|r>>>26,t=(t>>26)+re|0,Be=o=r+Be|0,r=t=r>>>0>o>>>0?t+1|0:t,Qe=t=o+16777216|0,o=(33554431&(r=t>>>0<16777216?r+1|0:r))<<7|t>>>25,t=(a=r>>25)+i|0,t=(r=o+g|0)>>>0>>0?t+1|0:t,Ne=a=r+33554432|0,o=t=a>>>0<33554432?t+1|0:t,c[n+72>>2]=r-(-67108864&a),t=me(C,Z,se,he),a=v,i=me(u,M,h,U),r=v+a|0,r=(t=i+t|0)>>>0>>0?r+1|0:r,a=(i=me(d,L,D,X))+t|0,t=v+r|0,t=a>>>0>>0?t+1|0:t,r=me(i=f(H,19),Se=i>>31,ce,ve),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,r=(g=me(re=f($,19),Te=re>>31,l,F))+a|0,a=v+t|0,a=r>>>0>>0?a+1|0:a,g=me(de,ge,b,Ie),t=v+a|0,t=(r=g+r|0)>>>0>>0?t+1|0:t,a=(g=me(A,B,S,fe))+r|0,r=v+t|0,r=a>>>0>>0?r+1|0:r,g=me(y,ne,T,le),t=v+r|0,t=(a=g+a|0)>>>0>>0?t+1|0:t,r=me(p,j,_,ee),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,r=(g=me(w,z,ae,be))+a|0,a=v+t|0,E=r,Re=r>>>0>>0?a+1|0:a,t=me(d,L,C,Z),a=v,r=(g=me(u,M,W,xe))+t|0,t=v+a|0,t=r>>>0>>0?t+1|0:t,g=a=f(D,19),a=(x=me(a,Oe=a>>31,Q,_e))+r|0,r=v+t|0,r=a>>>0>>0?r+1|0:r,x=me(l,F,i,Se),t=v+r|0,t=(a=x+a|0)>>>0>>0?t+1|0:t,r=me(re,Te,V,ke),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,r=(x=me(A,B,b,Ie))+a|0,a=v+t|0,a=r>>>0>>0?a+1|0:a,x=me(S,fe,J,Ae),t=v+a|0,t=(r=x+r|0)>>>0>>0?t+1|0:t,a=(x=me(p,j,y,ne))+r|0,r=v+t|0,r=a>>>0>>0?r+1|0:r,x=me(_,ee,G,we),t=v+r|0,t=(a=x+a|0)>>>0>>0?t+1|0:t,r=me(h,U,w,z),t=v+t|0,De=a=r+a|0,x=r>>>0>a>>>0?t+1|0:t,t=me(t=f(C,19),t>>31,ce,ve),a=v,r=me(u,M,d,L),a=v+a|0,a=(t=r+t|0)>>>0>>0?a+1|0:a,r=(g=me(l,F,g,Oe))+t|0,t=v+a|0,a=(i=me(i,Se,de,ge))+r|0,r=v+(r>>>0>>0?t+1|0:t)|0,r=a>>>0>>0?r+1|0:r,i=me(A,B,re,Te),t=v+r|0,t=(a=i+a|0)>>>0>>0?t+1|0:t,r=me(T,le,b,Ie),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,r=(i=me(p,j,S,fe))+a|0,a=v+t|0,a=r>>>0>>0?a+1|0:a,i=me(y,ne,ae,be),t=v+a|0,t=(r=i+r|0)>>>0>>0?t+1|0:t,a=(i=me(h,U,_,ee))+r|0,r=v+t|0,r=a>>>0>>0?r+1|0:r,i=me(w,z,se,he),t=v+r|0,g=a=i+a|0,Se=t=a>>>0>>0?t+1|0:t,Oe=a=a+33554432|0,qe=t=a>>>0<33554432?t+1|0:t,r=t>>26,t=(67108863&t)<<6|a>>>26,a=r+x|0,x=i=t+De|0,t=a=t>>>0>i>>>0?a+1|0:a,De=a=i+16777216|0,i=(33554431&(t=a>>>0<16777216?t+1|0:t))<<7|a>>>25,t=(t>>25)+Re|0,t=(a=i+E|0)>>>0>>0?t+1|0:t,Re=a=(r=a)+33554432|0,i=t=a>>>0<33554432?t+1|0:t,c[n+56>>2]=r-(-67108864&a),t=me(A,B,C,Z),r=v,a=(E=me(u,M,V,ke))+t|0,t=v+r|0,t=a>>>0>>0?t+1|0:t,r=me(D,X,J,Ae),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,r=me(p,j,H,te),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,E=me($,ie,G,we),r=v+t|0,r=(a=E+a|0)>>>0>>0?r+1|0:r,t=(E=me(h,U,Pe,pe))+a|0,a=v+r|0,a=t>>>0>>0?a+1|0:a,r=(E=me(W,xe,Me,Ee))+t|0,t=v+a|0,t=r>>>0>>0?t+1|0:t,a=r,r=me(ye,E=ye>>31,d,L),t=v+t|0,t=r>>>0>(a=a+r|0)>>>0?t+1|0:t,r=me(_,ee,Q,_e),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,P=(r=a)+(a=me(w,z,l,F))|0,r=v+t|0,a=(t=o>>26)+(a=a>>>0>P>>>0?r+1|0:r)|0,t=(r=(o=(67108863&o)<<6|Ne>>>26)+P|0)>>>0>>0?a+1|0:a,Ne=a=r+16777216|0,o=t=a>>>0<16777216?t+1|0:t,c[n+76>>2]=r-(-33554432&a),t=me(h,U,C,Z),a=v,P=me(u,M,G,we),r=v+a|0,r=(t=P+t|0)>>>0

>>0?r+1|0:r,P=me(D,X,W,xe),a=v+r|0,a=(t=P+t|0)>>>0

>>0?a+1|0:a,r=(P=me(d,L,H,te))+t|0,t=v+a|0,t=r>>>0

>>0?t+1|0:t,a=r,r=me(re,Te,Q,_e),t=v+t|0,t=r>>>0>(a=a+r|0)>>>0?t+1|0:t,r=me(l,F,b,Ie),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,a=(S=me(S,fe,V,ke))+a|0,r=v+t|0,t=(y=me(A,B,y,ne))+a|0,a=v+(a>>>0>>0?r+1|0:r)|0,r=(_=me(_,ee,J,Ae))+t|0,t=v+(t>>>0>>0?a+1|0:a)|0,t=r>>>0<_>>>0?t+1|0:t,a=r,r=me(p,j,w,z),t=v+t|0,y=a=a+r|0,t=(t=r>>>0>a>>>0?t+1|0:t)+(a=i>>26)|0,r=(a=i=y+(r=(67108863&i)<<6|Re>>>26)|0)>>>0>>0?t+1|0:t,_=t=a+16777216|0,i=r=t>>>0<16777216?r+1|0:r,c[n+60>>2]=a-(-33554432&t),t=me(C,Z,de,ge),r=v,a=(y=me(u,M,l,F))+t|0,t=v+r|0,t=a>>>0>>0?t+1|0:t,r=me(A,B,D,X),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,y=me(H,te,T,le),r=v+t|0,r=(a=y+a|0)>>>0>>0?r+1|0:r,t=(y=me(p,j,$,ie))+a|0,a=v+r|0,a=t>>>0>>0?a+1|0:a,r=(y=me(ae,be,Pe,pe))+t|0,t=v+a|0,t=r>>>0>>0?t+1|0:t,a=r,r=me(h,U,Me,Ee),t=v+t|0,t=r>>>0>(a=a+r|0)>>>0?t+1|0:t,r=a,a=me(ye,E,se,he),t=v+t|0,t=(r=r+a|0)>>>0>>0?t+1|0:t,y=a=Ue,a=(T=me(a,S=a>>31,d,L))+r|0,r=v+t|0,t=(w=me(w,z,ce,ve))+a|0,a=v+(a>>>0>>0?r+1|0:r)|0,r=t>>>0>>0?a+1|0:a,a=t,t=(t=o>>25)+r|0,t=(a=a+(o=(33554431&o)<<7|Ne>>>25)|0)>>>0>>0?t+1|0:t,w=a=(r=a)+33554432|0,o=t=a>>>0<33554432?t+1|0:t,c[n+80>>2]=r-(-67108864&a),a=i>>25,r=(i=(33554431&i)<<7|_>>>25)+(Fe-(t=-67108864&He)|0)|0,t=a+(Ze-((t>>>0>Fe>>>0)+ze|0)|0)|0,t=r>>>0>>0?t+1|0:t,i=t=(67108863&(t=(a=r+33554432|0)>>>0<33554432?t+1|0:t))<<6|a>>>26,t=t+(T=Be-(-33554432&Qe)|0)|0,c[n+68>>2]=t,c[n+64>>2]=r-(-67108864&a),t=me(l,F,C,Z),r=v,a=(i=me(u,M,Q,_e))+t|0,t=v+r|0,t=a>>>0>>0?t+1|0:t,r=(i=me(D,X,V,ke))+a|0,a=v+t|0,a=r>>>0>>0?a+1|0:a,t=(i=me(A,B,H,te))+r|0,r=v+a|0,r=t>>>0>>0?r+1|0:r,a=(i=me($,ie,J,Ae))+t|0,t=v+r|0,t=a>>>0>>0?t+1|0:t,r=me(p,j,Pe,pe),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,r=me(G,we,Me,Ee),t=v+t|0,t=r>>>0>(a=r+a|0)>>>0?t+1|0:t,r=(i=me(h,U,ye,E))+a|0,a=v+t|0,a=r>>>0>>0?a+1|0:a,i=(t=me(y,S,W,xe))+r|0,r=v+a|0,r=t>>>0>i>>>0?r+1|0:r,a=i,i=me(t=Le,t>>31,d,L),t=v+r|0,r=a=a+i|0,t=(t=a>>>0>>0?t+1|0:t)+(a=o>>26)|0,t=(r=r+(o=(67108863&o)<<6|w>>>26)|0)>>>0>>0?t+1|0:t,t=(a=r+16777216|0)>>>0<16777216?t+1|0:t,c[n+84>>2]=r-(-33554432&a),o=x-(-33554432&De)|0,i=g-(r=-67108864&Oe)|0,u=Se-((r>>>0>g>>>0)+qe|0)|0,t=me((33554431&(r=t))<<7|a>>>25,t=r>>25,19,0),a=v+u|0,t=t>>>0>(r=t+i|0)>>>0?a+1|0:a,i=t=(67108863&(t=(a=r+33554432|0)>>>0<33554432?t+1|0:t))<<6|a>>>26,t=t+o|0,c[n+52>>2]=t,c[n+48>>2]=r-(-67108864&a),Y(e,n+48|0))}return m=n+256|0,0|je},Fb:function(e,t){e|=0;var n,r=0;return m=n=m+-64|0,ie(n,t|=0,32,0),s[0|n]=248&u[0|n],s[n+31|0]=63&u[n+31|0]|64,t=c[n+20>>2],r=c[n+16>>2],s[e+16|0]=r,s[e+17|0]=r>>>8,s[e+18|0]=r>>>16,s[e+19|0]=r>>>24,s[e+20|0]=t,s[e+21|0]=t>>>8,s[e+22|0]=t>>>16,s[e+23|0]=t>>>24,t=c[n+12>>2],r=c[n+8>>2],s[e+8|0]=r,s[e+9|0]=r>>>8,s[e+10|0]=r>>>16,s[e+11|0]=r>>>24,s[e+12|0]=t,s[e+13|0]=t>>>8,s[e+14|0]=t>>>16,s[e+15|0]=t>>>24,t=c[n+4>>2],r=c[n>>2],s[0|e]=r,s[e+1|0]=r>>>8,s[e+2|0]=r>>>16,s[e+3|0]=r>>>24,s[e+4|0]=t,s[e+5|0]=t>>>8,s[e+6|0]=t>>>16,s[e+7|0]=t>>>24,t=c[n+28>>2],r=c[n+24>>2],s[e+24|0]=r,s[e+25|0]=r>>>8,s[e+26|0]=r>>>16,s[e+27|0]=r>>>24,s[e+28|0]=t,s[e+29|0]=t>>>8,s[e+30|0]=t>>>16,s[e+31|0]=t>>>24,$e(n,64),m=n- -64|0,0},Gb:function(){var e,t;return m=e=m-16|0,s[e+15|0]=0,t=0|b(34904,e+15|0,0),m=e+16|0,0|t},Hb:De,Ib:function(e){var t,n=0,r=0;if(m=t=m-16|0,(e|=0)>>>0>=2){for(n=(0-e>>>0)%(e>>>0)|0;s[t+15|0]=0,n>>>0>(r=0|b(34904,t+15|0,0))>>>0;);n=(r>>>0)%(e>>>0)|0}return m=t+16|0,0|n},Jb:ge,Kb:function(e,t,n){qe(e|=0,t|=0,1024,n|=0)},Lb:tt,Mb:function(){var e=0,t=0;return(e=c[9048])&&(e=c[e+20>>2])&&(t=0|dt[0|e]()),0|t},Nb:function(e,t,n){e|=0,t|=0;var r,a=0,o=0,c=0;if(m=r=m-16|0,n|=0)p(1240,1100,197,1036),i();else{if(t)for(;s[r+15|0]=0,o=e+a|0,c=0|b(34904,r+15|0,0),s[0|o]=c,(0|t)!=(0|(a=a+1|0)););m=r+16|0}},Ob:function(e,t,n,r){e|=0,n|=0;var a=0,o=0,c=0;if(!((r|=0)>>>0>2147483646|r<<1>>>0>=(t|=0)>>>0)){if(t=0,r){for(;a=(t<<1)+e|0,o=15&(c=u[t+n|0]),s[a+1|0]=22272+((o<<8)+(o+65526&55552)|0)>>>8,o=a,a=c>>>4|0,s[0|o]=87+((a+65526>>>8&217)+a|0),(0|r)!=(0|(t=t+1|0)););t=r<<1}else t=0;return s[t+e|0]=0,0|e}Le(),i()},Pb:function(e,t,n,r,a,i,o){e|=0,t|=0,n|=0,a|=0,i|=0,o|=0;var d=0,f=0,l=0,b=0,p=0,h=0,y=0,m=0,v=0,g=0;e:if(r|=0){t:{n:{r:{a:{if(!a){for(f=1,a=0;;){if(!(255&((y=(65526+(l=(223&(p=u[n+d|0]))-55&255)^l+65520)>>>8|0)|(m=65526+(p^=48)>>>8|0))))break r;if(t>>>0<=h>>>0)break a;if(l=l&y|p&m,255&b?(s[e+h|0]=a|l,h=h+1|0):a=l<<4,b^=-1,(0|(d=d+1|0))==(0|r))break}d=r;break r}for(;;){i:{o:{s:{c:{u:{if(!(255&((p=(65526+(l=(223&(f=u[n+d|0]))-55&255)^l+65520)>>>8|0)|(m=65526+(y=48^f)>>>8|0)))){if(255&b)break n;if(!$(a,f))break e;if((d=b=d+1|0)>>>0>>0)break u;break e}if(t>>>0<=h>>>0)break a;if(f=l&p|y&m,!(255&b))break c;s[e+h|0]=f|g,h=h+1|0;break i}for(;;){if(!(255&((p=(65526+(l=(223&(f=u[n+d|0]))-55&255)^l+65520)>>>8|0)|(m=65526+(y=48^f)>>>8|0)))){if(!$(a,f))break e;if((d=d+1|0)>>>0>>0)continue;break s}break}if(t>>>0<=h>>>0)break o;f=l&p|y&m}g=f<<4,b=0;break i}d=r>>>0>b>>>0?r:b;break e}b=0;break a}if(b^=-1,f=1,!((d=d+1|0)>>>0>>0))break}break r}c[8916]=68,f=0}if(!(255&b))break t}c[8916]=28,v=-1,d=d-1|0,h=0;break e}f||(h=0,v=-1)}return o?c[o>>2]=n+d:(0|r)!=(0|d)&&(c[8916]=28,v=-1),i&&(c[i>>2]=h),0|v},Qb:function(e,t){e|=0;var n=0;return 1!=(-7&(t|=0))&&(Le(),i()),1+((3&(n=(n=e)+f(e=(e>>>0)/3|0,-3)|0)?2&t?n+1|0:4:0)+(e<<2)|0)|0},Rb:function(e,t,n,r,a){e|=0,t|=0,n|=0,r|=0;var o=0,c=0,d=0,l=0,b=0,h=0,y=0,m=0,v=0,g=0;e:{t:{n:{if(1==(-7&(a|=0))&&(l=(o=(r>>>0)/3|0)<<2,(o=f(o,-3)+r|0)&&(l=2&a?(2|l)+(o>>>1|0)|0:l+4|0),!(t>>>0<=l>>>0))){if(!(4&a)){if(o=0,!r)break e;break n}if(o=0,!r)break e;for(;;){for(h=(m=u[n+y|0])|h<<8,b=o,o=1+((((d|=8)-6>>>0)/6|0)+o|0)|0;v=65510+(c=h>>>(d=(a=d)-6|0)&63)>>>8|0,g=c+65484>>>8|0,s[e+b|0]=(1+(16321^c)^-1)>>>8&45|c+252&c+65474>>>8&(-1^g)|(c+32705^-1)>>>8&95|v&c+65|g&c+71&(-1^v),(0|(b=b+1|0))!=(0|o););if((0|(y=y+1|0))==(0|r))break}if(!d)break e;b=(r=65510+(n=m<<12-a&63)>>>8|0)&n+65,h=n+252&n+65474>>>8&(-1^(a=n+65484>>>8|0)),d=a&n+71&(-1^r),r=n+32705|0,a=(1+(16321^n)^-1)>>>8&45,n=95;break t}Le(),i()}for(;;){for(h=(m=u[n+y|0])|h<<8,b=o,o=1+((((d|=8)-6>>>0)/6|0)+o|0)|0;v=65510+(c=h>>>(d=(a=d)-6|0)&63)>>>8|0,g=c+65484>>>8|0,s[e+b|0]=(1+(16321^c)^-1)>>>8&43|c+252&c+65474>>>8&(-1^g)|(c+16321^-1)>>>8&47|v&c+65|g&c+71&(-1^v),(0|(b=b+1|0))!=(0|o););if((0|(y=y+1|0))==(0|r))break}if(!d)break e;b=(r=65510+(n=m<<12-a&63)>>>8|0)&n+65,h=n+252&n+65474>>>8&(-1^(a=n+65484>>>8|0)),d=a&n+71&(-1^r),r=n+16321|0,a=(1+(16321^n)^-1)>>>8&43,n=47}s[e+o|0]=n&(-1^r)>>>8|b|h|a|d,o=o+1|0}e:{t:{if(o>>>0<=l>>>0){if(o>>>0>>0)break t;l=o;break e}p(1048,1126,230,1319),i()}Ce(e+o|0,61,l-o|0)}return Ce(e+l|0,0,(t>>>0>(n=l+1|0)>>>0?t:n)-l|0),0|e},Sb:function(e,t,n,r,a,o,d,f){e|=0,t|=0,n|=0,r|=0,a|=0,o|=0,d|=0;var l=0,b=0,p=0,h=0,y=0,m=0,v=0,g=0;e:{t:{n:{r:{a:{i:{o:{s:{c:{u:{d:{if(1==(-7&(f|=0))){if(p=0,!r)break s;if(4&f)break d;for(;;){p=b;f:{l:{b:{p:{for(;;){if(l=(l=(h=s[n+p|0])-65|0)&((90-h^-1)&(-1^l))>>>8&255|h+4&((h+65488^-1)&(57-h^-1))>>>8&255|h+185&((h+65439^-1)&(122-h^-1))>>>8&255|(1+(16336^h)^-1)>>>8&63|(1+(16340^h)^-1)>>>8&62,255!=(0|(l|=(l-1&1+(65470^h))>>>8&255)))break p;if(l=0,!a)break c;if(!$(a,h))break;if((p=p+1|0)>>>0>=r>>>0)break b}b=p;break c}if(v=l+(v<<6)|0,y>>>0>1)break l;y=y+6|0;break f}b=(e=b+1|0)>>>0>>0?r:e;break c}if(y=y-2|0,t>>>0<=m>>>0)break u;s[e+m|0]=v>>>y,m=m+1|0}if(l=0,!((b=p+1|0)>>>0>>0))break}break c}Le(),i()}d:for(;;){for(p=b;;){f:{if(l=(l=(h=s[n+p|0])-65|0)&((90-h^-1)&(-1^l))>>>8&255|h+4&((h+65488^-1)&(57-h^-1))>>>8&255|h+185&((h+65439^-1)&(122-h^-1))>>>8&255|(1+(16288^h)^-1)>>>8&63|(1+(16338^h)^-1)>>>8&62,255==(0|(l|=(l-1&1+(65470^h))>>>8&255))){if(l=0,!a)break c;if($(a,h))break f;b=p;break c}if(v=l+(v<<6)|0,y>>>0<2)y=y+6|0;else{if(y=y-2|0,t>>>0<=m>>>0)break u;s[e+m|0]=v>>>y,m=m+1|0}if(l=0,(b=p+1|0)>>>0>>0)continue d;break c}if(!((p=p+1|0)>>>0>>0))break}break}b=(e=b+1|0)>>>0>>0?r:e;break c}b=p,c[8916]=68,l=1}if(y>>>0>4)break o;p=b}if(e=p,t=-1,l){b=e;break e}if((-1<>>0<2){f=e;break a}if(b=e>>>0>r>>>0?e:r,p=y>>>1|0,!a)break i;for(f=e;;){if((0|f)==(0|b)){l=68;break r}if(61!=(0|(e=s[n+f|0]))){if(!$(a,e)){l=28,b=f;break r}}else p=p-1|0;if(f=f+1|0,!p)break}break a}t=-1;break e}if(l=68,e>>>0>=r>>>0)break r;if(61!=u[e+n|0]){b=e,l=28;break r}if(f=e+p|0,1!=(0|p)){if((0|(y=e+1|0))==(0|b))break r;if(61!=u[n+y|0]){b=y,l=28;break r}if(2!=(0|p)){if((0|(e=e+2|0))==(0|b))break r;if(l=28,b=e,61!=u[e+n|0])break r}}}if(t=0,a)break n;break t}c[8916]=l;break e}if(!(r>>>0<=f>>>0)){for(;;){if(!$(a,s[n+f|0]))break t;if((0|(f=f+1|0))==(0|r))break}f=r}}b=f,g=m}return d?c[d>>2]=n+b:(0|r)!=(0|b)&&(c[8916]=28,t=-1),o&&(c[o>>2]=g),0|t},Tb:function(){var e=0;return c[9049]?e=1:(De(),ge(36176,16),c[9049]=1,e=0),0|e},Ub:function(e,t,n,r,a){e|=0,t|=0,n|=0,a|=0;var o,d=0,f=0,l=0;m=o=m-16|0;e:{if(r|=0){if(l=-1,(d=(d=r-1|0)-(f=d&r?(n>>>0)%(r>>>0)|0:n&d)|0)>>>0>=(-1^n)>>>0)break e;if(!((n=n+d|0)>>>0>=a>>>0))for(e&&(c[e>>2]=n+1),e=t+n|0,l=0,s[o+15|0]=0,n=0;a=t=e-n|0,f=u[0|t]&u[o+15|0],t=(n^d)-1>>>24|0,s[0|a]=f|128&t,s[o+15|0]=t|u[o+15|0],(0|r)!=(0|(n=n+1|0)););}else l=-1;return m=o+16|0,0|l}Le(),i()},Vb:function(e,t,n,r){e|=0,t|=0,n|=0,r|=0;var a,i=0,o=0,s=0,d=0,f=0;if(c[12+(a=m-16|0)>>2]=0,r-1>>>0>>0){for(f=(o=n-1|0)+t|0,n=0,t=0;t&=255,d=(128^(s=u[f-i|0]))-1&c[a+12>>2]-1&t-1,c[a+12>>2]=c[a+12>>2]|d<<23>>31&i,t|=s,n|=d>>>8&1,(0|(i=i+1|0))!=(0|r););c[e>>2]=o-c[a+12>>2],e=(255&n)-1|0}else e=-1;return 0|e},Wb:function(){return 1312},Xb:function(){return 10},Yb:ot,Zb:it,_b:function(e){var t,n=0,r=0,a=0,i=0,o=0,s=0,f=0,b=0,p=0,h=0,y=0,v=0;m=t=m-16|0;e:{t:{n:{r:{a:{i:{o:{s:{c:{if((e|=0)>>>0<=244){if(3&(n=(s=c[8917])>>>(r=(f=e>>>0<11?16:e+11&-8)>>>3|0)|0)){n=35708+(e=(r=r+(1&(-1^n))|0)<<3)|0,a=c[e+35716>>2],(0|n)!=(0|(e=c[a+8>>2]))?(c[e+12>>2]=n,c[n+8>>2]=e):(y=35668,v=Be(-2,r)&s,c[y>>2]=v),e=a+8|0,n=r<<3,c[a+4>>2]=3|n,c[4+(n=n+a|0)>>2]=1|c[n+4>>2];break e}if((h=c[8919])>>>0>=f>>>0)break c;if(n){n=35708+(e=(a=He(0-(e=(0-(e=2<>2],(0|n)!=(0|(e=c[i+8>>2]))?(c[e+12>>2]=n,c[n+8>>2]=e):(s=Be(-2,a)&s,c[8917]=s),c[i+4>>2]=3|f,a=(e=a<<3)-f|0,c[4+(r=i+f|0)>>2]=1|a,c[e+i>>2]=a,h&&(n=35708+(-8&h)|0,o=c[8922],(e=1<<(h>>>3))&s?e=c[n+8>>2]:(c[8917]=e|s,e=n),c[n+8>>2]=o,c[e+12>>2]=o,c[o+12>>2]=n,c[o+8>>2]=e),e=i+8|0,c[8922]=r,c[8919]=a;break e}if(!(p=c[8918]))break c;for(r=c[35972+(He(0-p&p)<<2)>>2],o=(-8&c[r+4>>2])-f|0,n=r;(e=c[n+16>>2])||(e=c[n+20>>2]);)o=(a=(n=(-8&c[e+4>>2])-f|0)>>>0>>0)?n:o,r=a?e:r,n=e;if(b=c[r+24>>2],(0|(a=c[r+12>>2]))!=(0|r)){e=c[r+8>>2],c[e+12>>2]=a,c[a+8>>2]=e;break t}if(!(e=c[(n=r+20|0)>>2])){if(!(e=c[r+16>>2]))break s;n=r+16|0}for(;i=n,a=e,(e=c[(n=e+20|0)>>2])||(n=a+16|0,e=c[a+16>>2]););c[i>>2]=0;break t}if(f=-1,!(e>>>0>4294967231)&&(f=-8&(e=e+11|0),p=c[8918])){o=0-f|0,s=0,f>>>0<256||(s=31,f>>>0>16777215||(s=62+((f>>>38-(e=l(e>>>8|0))&1)-(e<<1)|0)|0));u:{d:{if(n=c[35972+(s<<2)>>2])for(e=0,r=f<<(31!=(0|s)?25-(s>>>1|0)|0:0);;){if(!((i=(-8&c[n+4>>2])-f|0)>>>0>=o>>>0||(a=n,o=i,i))){o=0,e=n;break d}if(i=c[n+20>>2],n=c[16+((r>>>29&4)+n|0)>>2],e=i?(0|i)==(0|n)?e:i:e,r<<=1,!n)break}else e=0;if(!(e|a)){if(a=0,!(e=(0-(e=2<>2]}if(!e)break u}for(;o=(r=(n=(-8&c[e+4>>2])-f|0)>>>0>>0)?n:o,a=r?e:a,e=(n=c[e+16>>2])||c[e+20>>2];);}if(!(!a|c[8919]-f>>>0<=o>>>0)){if(s=c[a+24>>2],(0|a)!=(0|(r=c[a+12>>2]))){e=c[a+8>>2],c[e+12>>2]=r,c[r+8>>2]=e;break n}if(!(e=c[(n=a+20|0)>>2])){if(!(e=c[a+16>>2]))break o;n=a+16|0}for(;i=n,r=e,(e=c[(n=e+20|0)>>2])||(n=r+16|0,e=c[r+16>>2]););c[i>>2]=0;break n}}}if((e=c[8919])>>>0>=f>>>0){a=c[8922],(n=e-f|0)>>>0>=16?(c[4+(r=a+f|0)>>2]=1|n,c[e+a>>2]=n,c[a+4>>2]=3|f):(c[a+4>>2]=3|e,c[4+(e=e+a|0)>>2]=1|c[e+4>>2],r=0,n=0),c[8919]=n,c[8922]=r,e=a+8|0;break e}if((b=c[8920])>>>0>f>>>0){n=b-f|0,c[8920]=n,e=(r=c[8923])+f|0,c[8923]=e,c[e+4>>2]=1|n,c[r+4>>2]=3|f,e=r+8|0;break e}if(e=0,p=f+47|0,c[9035]?r=c[9037]:(c[9038]=-1,c[9039]=-1,c[9036]=4096,c[9037]=4096,c[9035]=t+12&-16^1431655768,c[9040]=0,c[9028]=0,r=4096),(n=(i=p+r|0)&(o=0-r|0))>>>0<=f>>>0)break e;if((a=c[9027])&&a>>>0<(s=(r=c[9025])+n|0)>>>0|r>>>0>=s>>>0)break e;c:{if(!(4&u[36112])){u:{d:{f:{l:{if(a=c[8923])for(e=36116;;){if((r=c[e>>2])>>>0<=a>>>0&a>>>0>2]>>>0)break l;if(!(e=c[e+8>>2]))break}if(-1==(0|(r=we(0))))break u;if(s=n,(e=(a=c[9036])-1|0)&r&&(s=(n-r|0)+(e+r&0-a)|0),s>>>0<=f>>>0)break u;if((a=c[9027])&&a>>>0<(o=(e=c[9025])+s|0)>>>0|e>>>0>=o>>>0)break u;if((0|r)!=(0|(e=we(s))))break f;break c}if((0|(r=we(s=o&i-b)))==(c[e>>2]+c[e+4>>2]|0))break d;e=r}if(-1==(0|e))break u;if(f+48>>>0<=s>>>0){r=e;break c}if(-1==(0|we(r=(r=c[9037])+(p-s|0)&0-r)))break u;s=r+s|0,r=e;break c}if(-1!=(0|r))break c}c[9028]=4|c[9028]}if(-1==(0|(r=we(n)))|-1==(0|(e=we(0)))|e>>>0<=r>>>0)break r;if((s=e-r|0)>>>0<=f+40>>>0)break r}e=c[9025]+s|0,c[9025]=e,e>>>0>d[9026]&&(c[9026]=e);c:{if(i=c[8923]){for(e=36116;;){if(((a=c[e>>2])+(n=c[e+4>>2])|0)==(0|r))break c;if(!(e=c[e+8>>2]))break}break i}for((e=c[8921])>>>0<=r>>>0&&e||(c[8921]=r),e=0,c[9030]=s,c[9029]=r,c[8925]=-1,c[8926]=c[9035],c[9032]=0;n=35708+(a=e<<3)|0,c[a+35716>>2]=n,c[a+35720>>2]=n,32!=(0|(e=e+1|0)););n=(a=s-40|0)-(e=r+8&7?-8-r&7:0)|0,c[8920]=n,e=e+r|0,c[8923]=e,c[e+4>>2]=1|n,c[4+(r+a|0)>>2]=40,c[8924]=c[9039];break a}if(8&u[e+12|0]|a>>>0>i>>>0|r>>>0<=i>>>0)break i;c[e+4>>2]=n+s,r=(e=i+8&7?-8-i&7:0)+i|0,c[8923]=r,e=(n=c[8920]+s|0)-e|0,c[8920]=e,c[r+4>>2]=1|e,c[4+(n+i|0)>>2]=40,c[8924]=c[9039];break a}a=0;break t}r=0;break n}d[8921]>r>>>0&&(c[8921]=r),n=r+s|0,e=36116;i:{o:{s:{c:{u:{d:{for(;;){if((0|n)!=c[e>>2]){if(e=c[e+8>>2])continue;break d}break}if(!(8&u[e+12|0]))break u}for(e=36116;;){if((n=c[e>>2])>>>0<=i>>>0&&(o=n+c[e+4>>2]|0)>>>0>i>>>0)break c;e=c[e+8>>2]}}if(c[e>>2]=r,c[e+4>>2]=c[e+4>>2]+s,c[4+(p=(r+8&7?-8-r&7:0)+r|0)>>2]=3|f,e=(s=n+(n+8&7?-8-n&7:0)|0)-(b=f+p|0)|0,(0|i)==(0|s)){c[8923]=b,e=c[8920]+e|0,c[8920]=e,c[b+4>>2]=1|e;break o}if(c[8922]==(0|s)){c[8922]=b,e=c[8919]+e|0,c[8919]=e,c[b+4>>2]=1|e,c[e+b>>2]=e;break o}if(1==(3&(o=c[s+4>>2]))){i=-8&o;u:if(o>>>0<=255){if(a=c[s+8>>2],n=o>>>3|0,(0|(r=c[s+12>>2]))==(0|a)){y=35668,v=c[8917]&Be(-2,n),c[y>>2]=v;break u}c[a+12>>2]=r,c[r+8>>2]=a}else{if(f=c[s+24>>2],(0|s)==(0|(r=c[s+12>>2])))if((n=c[(o=s+20|0)>>2])||(n=c[(o=s+16|0)>>2])){for(;a=o,(n=c[(o=(r=n)+20|0)>>2])||(o=r+16|0,n=c[r+16>>2]););c[a>>2]=0}else r=0;else n=c[s+8>>2],c[n+12>>2]=r,c[r+8>>2]=n;if(f){a=c[s+28>>2];d:{if(c[(n=35972+(a<<2)|0)>>2]==(0|s)){if(c[n>>2]=r,r)break d;y=35672,v=c[8918]&Be(-2,a),c[y>>2]=v;break u}if(c[f+(c[f+16>>2]==(0|s)?16:20)>>2]=r,!r)break u}c[r+24>>2]=f,(n=c[s+16>>2])&&(c[r+16>>2]=n,c[n+24>>2]=r),(n=c[s+20>>2])&&(c[r+20>>2]=n,c[n+24>>2]=r)}}o=c[4+(s=i+s|0)>>2],e=e+i|0}if(c[s+4>>2]=-2&o,c[b+4>>2]=1|e,c[e+b>>2]=e,e>>>0<=255){n=35708+(-8&e)|0,(r=c[8917])&(e=1<<(e>>>3))?e=c[n+8>>2]:(c[8917]=e|r,e=n),c[n+8>>2]=b,c[e+12>>2]=b,c[b+12>>2]=n,c[b+8>>2]=e;break o}if(o=31,e>>>0<=16777215&&(o=62+((e>>>38-(n=l(e>>>8|0))&1)-(n<<1)|0)|0),c[b+28>>2]=o,c[b+16>>2]=0,c[b+20>>2]=0,n=35972+(o<<2)|0,(a=c[8918])&(r=1<>>1|0)|0:0),r=c[n>>2];;){if(n=r,(-8&c[r+4>>2])==(0|e))break s;if(r=o>>>29|0,o<<=1,!(r=c[16+(a=(4&r)+n|0)>>2]))break}c[a+16>>2]=b}else c[8918]=r|a,c[n>>2]=b;c[b+24>>2]=n,c[b+12>>2]=b,c[b+8>>2]=b;break o}for(n=(a=s-40|0)-(e=r+8&7?-8-r&7:0)|0,c[8920]=n,e=e+r|0,c[8923]=e,c[e+4>>2]=1|n,c[4+(r+a|0)>>2]=40,c[8924]=c[9039],c[(a=(e=(o+(o-39&7?39-o&7:0)|0)-47|0)>>>0>>0?i:e)+4>>2]=27,e=c[9032],c[a+16>>2]=c[9031],c[a+20>>2]=e,e=c[9030],c[a+8>>2]=c[9029],c[a+12>>2]=e,c[9031]=a+8,c[9030]=s,c[9029]=r,c[9032]=0,e=a+24|0;c[e+4>>2]=7,n=e+8|0,e=e+4|0,n>>>0>>0;);if((0|a)==(0|i))break a;if(c[a+4>>2]=-2&c[a+4>>2],o=a-i|0,c[i+4>>2]=1|o,c[a>>2]=o,o>>>0<=255){n=35708+(-8&o)|0,(r=c[8917])&(e=1<<(o>>>3))?e=c[n+8>>2]:(c[8917]=e|r,e=n),c[n+8>>2]=i,c[e+12>>2]=i,c[i+12>>2]=n,c[i+8>>2]=e;break a}if(e=31,o>>>0<=16777215&&(e=62+((o>>>38-(e=l(o>>>8|0))&1)-(e<<1)|0)|0),c[i+28>>2]=e,c[i+16>>2]=0,c[i+20>>2]=0,n=35972+(e<<2)|0,(a=c[8918])&(r=1<>>1|0)|0:0),a=c[n>>2];;){if((0|o)==(-8&c[(n=a)+4>>2]))break i;if(r=e>>>29|0,e<<=1,!(a=c[16+(r=(4&r)+n|0)>>2]))break}c[r+16>>2]=i}else c[8918]=r|a,c[n>>2]=i;c[i+24>>2]=n,c[i+12>>2]=i,c[i+8>>2]=i;break a}e=c[n+8>>2],c[e+12>>2]=b,c[n+8>>2]=b,c[b+24>>2]=0,c[b+12>>2]=n,c[b+8>>2]=e}e=p+8|0;break e}e=c[n+8>>2],c[e+12>>2]=i,c[n+8>>2]=i,c[i+24>>2]=0,c[i+12>>2]=n,c[i+8>>2]=e}if(!((e=c[8920])>>>0<=f>>>0)){n=e-f|0,c[8920]=n,e=(r=c[8923])+f|0,c[8923]=e,c[e+4>>2]=1|n,c[r+4>>2]=3|f,e=r+8|0;break e}}c[8916]=48,e=0;break e}n:if(s){n=c[a+28>>2];r:{if(c[(e=35972+(n<<2)|0)>>2]==(0|a)){if(c[e>>2]=r,r)break r;p=Be(-2,n)&p,c[8918]=p;break n}if(c[s+(c[s+16>>2]==(0|a)?16:20)>>2]=r,!r)break n}c[r+24>>2]=s,(e=c[a+16>>2])&&(c[r+16>>2]=e,c[e+24>>2]=r),(e=c[a+20>>2])&&(c[r+20>>2]=e,c[e+24>>2]=r)}n:if(o>>>0<=15)e=o+f|0,c[a+4>>2]=3|e,c[4+(e=e+a|0)>>2]=1|c[e+4>>2];else if(c[a+4>>2]=3|f,c[4+(i=a+f|0)>>2]=1|o,c[i+o>>2]=o,o>>>0<=255)n=35708+(-8&o)|0,(r=c[8917])&(e=1<<(o>>>3))?e=c[n+8>>2]:(c[8917]=e|r,e=n),c[n+8>>2]=i,c[e+12>>2]=i,c[i+12>>2]=n,c[i+8>>2]=e;else{e=31,o>>>0<=16777215&&(e=62+((o>>>38-(e=l(o>>>8|0))&1)-(e<<1)|0)|0),c[i+28>>2]=e,c[i+16>>2]=0,c[i+20>>2]=0,n=35972+(e<<2)|0;r:{if((r=1<>>1|0)|0:0),f=c[n>>2];;){if((-8&c[(n=f)+4>>2])==(0|o))break r;if(r=e>>>29|0,e<<=1,!(f=c[16+(r=(4&r)+n|0)>>2]))break}c[r+16>>2]=i}else c[8918]=r|p,c[n>>2]=i;c[i+24>>2]=n,c[i+12>>2]=i,c[i+8>>2]=i;break n}e=c[n+8>>2],c[e+12>>2]=i,c[n+8>>2]=i,c[i+24>>2]=0,c[i+12>>2]=n,c[i+8>>2]=e}e=a+8|0;break e}t:if(b){n=c[r+28>>2];n:{if(c[(e=35972+(n<<2)|0)>>2]==(0|r)){if(c[e>>2]=a,a)break n;y=35672,v=Be(-2,n)&p,c[y>>2]=v;break t}if(c[b+(c[b+16>>2]==(0|r)?16:20)>>2]=a,!a)break t}c[a+24>>2]=b,(e=c[r+16>>2])&&(c[a+16>>2]=e,c[e+24>>2]=a),(e=c[r+20>>2])&&(c[a+20>>2]=e,c[e+24>>2]=a)}o>>>0<=15?(e=o+f|0,c[r+4>>2]=3|e,c[4+(e=e+r|0)>>2]=1|c[e+4>>2]):(c[r+4>>2]=3|f,c[4+(a=r+f|0)>>2]=1|o,c[a+o>>2]=o,h&&(n=35708+(-8&h)|0,i=c[8922],(e=1<<(h>>>3))&s?e=c[n+8>>2]:(c[8917]=e|s,e=n),c[n+8>>2]=i,c[e+12>>2]=i,c[i+12>>2]=n,c[i+8>>2]=e),c[8922]=a,c[8919]=o),e=r+8|0}return m=t+16|0,0|e},$b:function(e){var t=0,n=0,r=0,a=0,i=0,o=0,s=0,u=0,f=0;e:if(e|=0){i=(r=e-8|0)+(e=-8&(t=c[e-4>>2]))|0;t:if(!(1&t)){if(!(3&t))break e;if((r=r-(t=c[r>>2])|0)>>>0>2])))return c[8919]=e,c[i+4>>2]=-2&t,c[r+4>>2]=1|e,void(c[e+r>>2]=e)}else{if(t>>>0<=255){if(a=c[r+8>>2],t=t>>>3|0,(0|(n=c[r+12>>2]))==(0|a)){u=35668,f=c[8917]&Be(-2,t),c[u>>2]=f;break t}c[a+12>>2]=n,c[n+8>>2]=a;break t}if(s=c[r+24>>2],(0|r)==(0|(t=c[r+12>>2])))if((n=c[(a=r+20|0)>>2])||(n=c[(a=r+16|0)>>2])){for(;o=a,(n=c[(a=(t=n)+20|0)>>2])||(a=t+16|0,n=c[t+16>>2]););c[o>>2]=0}else t=0;else n=c[r+8>>2],c[n+12>>2]=t,c[t+8>>2]=n;if(!s)break t;a=c[r+28>>2];n:{if(c[(n=35972+(a<<2)|0)>>2]==(0|r)){if(c[n>>2]=t,t)break n;u=35672,f=c[8918]&Be(-2,a),c[u>>2]=f;break t}if(c[s+(c[s+16>>2]==(0|r)?16:20)>>2]=t,!t)break t}if(c[t+24>>2]=s,(n=c[r+16>>2])&&(c[t+16>>2]=n,c[n+24>>2]=t),!(n=c[r+20>>2]))break t;c[t+20>>2]=n,c[n+24>>2]=t}}if(!(r>>>0>=i>>>0)&&1&(t=c[i+4>>2])){t:{if(!(2&t)){if(c[8923]==(0|i)){if(c[8923]=r,e=c[8920]+e|0,c[8920]=e,c[r+4>>2]=1|e,c[8922]!=(0|r))break e;return c[8919]=0,void(c[8922]=0)}if(c[8922]==(0|i))return c[8922]=r,e=c[8919]+e|0,c[8919]=e,c[r+4>>2]=1|e,void(c[e+r>>2]=e);e=(-8&t)+e|0;n:if(t>>>0<=255){if(a=c[i+8>>2],t=t>>>3|0,(0|(n=c[i+12>>2]))==(0|a)){u=35668,f=c[8917]&Be(-2,t),c[u>>2]=f;break n}c[a+12>>2]=n,c[n+8>>2]=a}else{if(s=c[i+24>>2],(0|i)==(0|(t=c[i+12>>2])))if((n=c[(a=i+20|0)>>2])||(n=c[(a=i+16|0)>>2])){for(;o=a,(n=c[(a=(t=n)+20|0)>>2])||(a=t+16|0,n=c[t+16>>2]););c[o>>2]=0}else t=0;else n=c[i+8>>2],c[n+12>>2]=t,c[t+8>>2]=n;if(s){a=c[i+28>>2];r:{if(c[(n=35972+(a<<2)|0)>>2]==(0|i)){if(c[n>>2]=t,t)break r;u=35672,f=c[8918]&Be(-2,a),c[u>>2]=f;break n}if(c[s+(c[s+16>>2]==(0|i)?16:20)>>2]=t,!t)break n}c[t+24>>2]=s,(n=c[i+16>>2])&&(c[t+16>>2]=n,c[n+24>>2]=t),(n=c[i+20>>2])&&(c[t+20>>2]=n,c[n+24>>2]=t)}}if(c[r+4>>2]=1|e,c[e+r>>2]=e,c[8922]!=(0|r))break t;return void(c[8919]=e)}c[i+4>>2]=-2&t,c[r+4>>2]=1|e,c[e+r>>2]=e}if(e>>>0<=255)return t=35708+(-8&e)|0,(n=c[8917])&(e=1<<(e>>>3))?e=c[t+8>>2]:(c[8917]=e|n,e=t),c[t+8>>2]=r,c[e+12>>2]=r,c[r+12>>2]=t,void(c[r+8>>2]=e);a=31,e>>>0<=16777215&&(a=62+((e>>>38-(t=l(e>>>8|0))&1)-(t<<1)|0)|0),c[r+28>>2]=a,c[r+16>>2]=0,c[r+20>>2]=0,o=35972+(a<<2)|0;t:{n:{if((n=c[8918])&(t=1<>>1|0)|0:0),t=c[o>>2];;){if(n=t,(-8&c[t+4>>2])==(0|e))break n;if(t=a>>>29|0,a<<=1,!(t=c[16+(o=n+(4&t)|0)>>2]))break}c[o+16>>2]=r,c[r+24>>2]=n}else c[8918]=t|n,c[o>>2]=r,c[r+24>>2]=o;c[r+12>>2]=r,c[r+8>>2]=r;break t}e=c[n+8>>2],c[e+12>>2]=r,c[n+8>>2]=r,c[r+24>>2]=0,c[r+12>>2]=n,c[r+8>>2]=e}e=c[8925]-1|0,c[8925]=e||-1}}},ac:dt}}(e)}(t)},instantiate:function(e,t){return{then:function(n){var r=new w.Module(e);n({instance:new w.Instance(r,t)})}}},RuntimeError:Error};v=[],"object"!=typeof w&&F("no native wasm support detected");var x,_,k,I,S,E,C,T=!1,O="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function P(e,t){return e?function(e,t,n){for(var r=t+n,a=t;e[a]&&!(a>=r);)++a;if(a-t>16&&e.buffer&&O)return O.decode(e.subarray(t,a));for(var i="";t>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|s)}else i+=String.fromCharCode(o)}return i}(_,e,t):""}function M(){var e=A.buffer;d.HEAP8=x=new Int8Array(e),d.HEAP16=k=new Int16Array(e),d.HEAP32=I=new Int32Array(e),d.HEAPU8=_=new Uint8Array(e),d.HEAPU16=new Uint16Array(e),d.HEAPU32=S=new Uint32Array(e),d.HEAPF32=E=new Float32Array(e),d.HEAPF64=C=new Float64Array(e)}var B=d.INITIAL_MEMORY||16777216;B>=65536||F("INITIAL_MEMORY should be larger than STACK_SIZE, was "+B+"! (STACK_SIZE=65536)"),A=d.wasmMemory?d.wasmMemory:new w.Memory({initial:B/65536,maximum:32768}),M(),B=A.buffer.byteLength;var N=[],R=[],D=[],j=0,U=null,L=null;function F(e){throw d.onAbort&&d.onAbort(e),g(e="Aborted("+e+")"),T=!0,e+=". Build with -sASSERTIONS for more info.",new w.RuntimeError(e)}var Z,H,z,Q,q="data:application/octet-stream;base64,";function V(e){return e.startsWith(q)}function J(e){return e.startsWith("file://")}function K(e){try{if(e==Z&&v)return new Uint8Array(v);var t=ee(e);if(t)return t;if(u)return u(e);throw"both async and sync fetching of the wasm failed"}catch(e){F(e)}}V(Z="<<< WASM_BINARY_FILE >>>")||(H=Z,Z=d.locateFile?d.locateFile(H,h):h+H);var G={34904:function(){return d.getRandomValue()},34940:function(){if(void 0===d.getRandomValue)try{var e="object"==typeof window?window:self,t=void 0!==e.crypto?e.crypto:e.msCrypto,r=function(){var e=new Uint32Array(1);return t.getRandomValues(e),e[0]>>>0};r(),d.getRandomValue=r}catch(e){try{var a=n(23092),i=function(){var e=a.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};i(),d.getRandomValue=i}catch(e){throw"No secure random number generator found"}}}};function W(e){for(;e.length>0;)e.shift()(d)}var Y=[];function X(e){var t=A.buffer;try{return A.grow(e-t.byteLength+65535>>>16),M(),1}catch(e){}}var $="function"==typeof atob?atob:function(e){var t,n,r,a,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=s.indexOf(e.charAt(u++))<<2|(a=s.indexOf(e.charAt(u++)))>>4,n=(15&a)<<4|(i=s.indexOf(e.charAt(u++)))>>2,r=(3&i)<<6|(o=s.indexOf(e.charAt(u++))),c+=String.fromCharCode(t),64!==i&&(c+=String.fromCharCode(n)),64!==o&&(c+=String.fromCharCode(r))}while(u>=2;n=_[e++];)t+=105!=n&t,Y.push(105==n?I[t]:C[t++>>1]),++t;return Y}(t,n);return G[e].apply(null,r)}(e,t,n)},e:function(e){var t,n=_.length,r=2147483648;if((e>>>=0)>r)return!1;for(var a=1;a<=4;a*=2){var i=n*(1+.2/a);if(i=Math.min(i,e+100663296),X(Math.min(r,(t=Math.max(e,i))+(65536-t%65536)%65536)))return!0}return!1},a:A};function re(){function e(){te||(te=!0,d.calledRun=!0,T||(W(R),d.onRuntimeInitialized&&d.onRuntimeInitialized(),function(){if(d.postRun)for("function"==typeof d.postRun&&(d.postRun=[d.postRun]);d.postRun.length;)e=d.postRun.shift(),D.unshift(e);var e;W(D)}()))}j>0||(function(){if(d.preRun)for("function"==typeof d.preRun&&(d.preRun=[d.preRun]);d.preRun.length;)e=d.preRun.shift(),N.unshift(e);var e;W(N)}(),j>0||(d.setStatus?(d.setStatus("Running..."),setTimeout((function(){setTimeout((function(){d.setStatus("")}),1),e()}),1)):e()))}if(function(){var e={a:ne};function t(e,t){var n,r=e.exports;d.asm=r,d.asm.ac,n=d.asm.f,R.unshift(n),function(e){if(j--,d.monitorRunDependencies&&d.monitorRunDependencies(j),0==j&&(null!==U&&(clearInterval(U),U=null),L)){var t=L;L=null,t()}}()}function n(e){t(e.instance)}function r(t){return function(){if(!v&&(l||b)){if("function"==typeof fetch&&!J(Z))return fetch(Z,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+Z+"'";return e.arrayBuffer()})).catch((function(){return K(Z)}));if(c)return new Promise((function(e,t){c(Z,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return K(Z)}))}().then((function(t){return w.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){g("failed to asynchronously prepare wasm: "+e),F(e)}))}if(j++,d.monitorRunDependencies&&d.monitorRunDependencies(j),d.instantiateWasm)try{return d.instantiateWasm(e,t)}catch(e){return g("Module.instantiateWasm callback failed with error: "+e),!1}v||"function"!=typeof w.instantiateStreaming||V(Z)||J(Z)||p||"function"!=typeof fetch?r(n):fetch(Z,{credentials:"same-origin"}).then((function(t){return w.instantiateStreaming(t,e).then(n,(function(e){return g("wasm streaming compile failed: "+e),g("falling back to ArrayBuffer instantiation"),r(n)}))}))}(),d._crypto_aead_chacha20poly1305_encrypt_detached=function(){return(d._crypto_aead_chacha20poly1305_encrypt_detached=d.asm.g).apply(null,arguments)},d._crypto_aead_chacha20poly1305_encrypt=function(){return(d._crypto_aead_chacha20poly1305_encrypt=d.asm.h).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_encrypt_detached=function(){return(d._crypto_aead_chacha20poly1305_ietf_encrypt_detached=d.asm.i).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_encrypt=function(){return(d._crypto_aead_chacha20poly1305_ietf_encrypt=d.asm.j).apply(null,arguments)},d._crypto_aead_chacha20poly1305_decrypt_detached=function(){return(d._crypto_aead_chacha20poly1305_decrypt_detached=d.asm.k).apply(null,arguments)},d._crypto_aead_chacha20poly1305_decrypt=function(){return(d._crypto_aead_chacha20poly1305_decrypt=d.asm.l).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_decrypt_detached=function(){return(d._crypto_aead_chacha20poly1305_ietf_decrypt_detached=d.asm.m).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_decrypt=function(){return(d._crypto_aead_chacha20poly1305_ietf_decrypt=d.asm.n).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_keybytes=function(){return(d._crypto_aead_chacha20poly1305_ietf_keybytes=d.asm.o).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_npubbytes=function(){return(d._crypto_aead_chacha20poly1305_ietf_npubbytes=d.asm.p).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_nsecbytes=function(){return(d._crypto_aead_chacha20poly1305_ietf_nsecbytes=d.asm.q).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_abytes=function(){return(d._crypto_aead_chacha20poly1305_ietf_abytes=d.asm.r).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_messagebytes_max=function(){return(d._crypto_aead_chacha20poly1305_ietf_messagebytes_max=d.asm.s).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_keygen=function(){return(d._crypto_aead_chacha20poly1305_ietf_keygen=d.asm.t).apply(null,arguments)},d._crypto_aead_chacha20poly1305_keybytes=function(){return(d._crypto_aead_chacha20poly1305_keybytes=d.asm.u).apply(null,arguments)},d._crypto_aead_chacha20poly1305_npubbytes=function(){return(d._crypto_aead_chacha20poly1305_npubbytes=d.asm.v).apply(null,arguments)},d._crypto_aead_chacha20poly1305_nsecbytes=function(){return(d._crypto_aead_chacha20poly1305_nsecbytes=d.asm.w).apply(null,arguments)},d._crypto_aead_chacha20poly1305_abytes=function(){return(d._crypto_aead_chacha20poly1305_abytes=d.asm.x).apply(null,arguments)},d._crypto_aead_chacha20poly1305_messagebytes_max=function(){return(d._crypto_aead_chacha20poly1305_messagebytes_max=d.asm.y).apply(null,arguments)},d._crypto_aead_chacha20poly1305_keygen=function(){return(d._crypto_aead_chacha20poly1305_keygen=d.asm.z).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=function(){return(d._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=d.asm.A).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_encrypt=function(){return(d._crypto_aead_xchacha20poly1305_ietf_encrypt=d.asm.B).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=function(){return(d._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=d.asm.C).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_decrypt=function(){return(d._crypto_aead_xchacha20poly1305_ietf_decrypt=d.asm.D).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_keybytes=function(){return(d._crypto_aead_xchacha20poly1305_ietf_keybytes=d.asm.E).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_npubbytes=function(){return(d._crypto_aead_xchacha20poly1305_ietf_npubbytes=d.asm.F).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_nsecbytes=function(){return(d._crypto_aead_xchacha20poly1305_ietf_nsecbytes=d.asm.G).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_abytes=function(){return(d._crypto_aead_xchacha20poly1305_ietf_abytes=d.asm.H).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=function(){return(d._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=d.asm.I).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_keygen=function(){return(d._crypto_aead_xchacha20poly1305_ietf_keygen=d.asm.J).apply(null,arguments)},d._crypto_auth_bytes=function(){return(d._crypto_auth_bytes=d.asm.K).apply(null,arguments)},d._crypto_auth_keybytes=function(){return(d._crypto_auth_keybytes=d.asm.L).apply(null,arguments)},d._crypto_auth=function(){return(d._crypto_auth=d.asm.M).apply(null,arguments)},d._crypto_auth_verify=function(){return(d._crypto_auth_verify=d.asm.N).apply(null,arguments)},d._crypto_auth_keygen=function(){return(d._crypto_auth_keygen=d.asm.O).apply(null,arguments)},d._crypto_box_seedbytes=function(){return(d._crypto_box_seedbytes=d.asm.P).apply(null,arguments)},d._crypto_box_publickeybytes=function(){return(d._crypto_box_publickeybytes=d.asm.Q).apply(null,arguments)},d._crypto_box_secretkeybytes=function(){return(d._crypto_box_secretkeybytes=d.asm.R).apply(null,arguments)},d._crypto_box_beforenmbytes=function(){return(d._crypto_box_beforenmbytes=d.asm.S).apply(null,arguments)},d._crypto_box_noncebytes=function(){return(d._crypto_box_noncebytes=d.asm.T).apply(null,arguments)},d._crypto_box_macbytes=function(){return(d._crypto_box_macbytes=d.asm.U).apply(null,arguments)},d._crypto_box_messagebytes_max=function(){return(d._crypto_box_messagebytes_max=d.asm.V).apply(null,arguments)},d._crypto_box_seed_keypair=function(){return(d._crypto_box_seed_keypair=d.asm.W).apply(null,arguments)},d._crypto_box_keypair=function(){return(d._crypto_box_keypair=d.asm.X).apply(null,arguments)},d._crypto_box_beforenm=function(){return(d._crypto_box_beforenm=d.asm.Y).apply(null,arguments)},d._crypto_box_detached_afternm=function(){return(d._crypto_box_detached_afternm=d.asm.Z).apply(null,arguments)},d._crypto_box_detached=function(){return(d._crypto_box_detached=d.asm._).apply(null,arguments)},d._crypto_box_easy_afternm=function(){return(d._crypto_box_easy_afternm=d.asm.$).apply(null,arguments)},d._crypto_box_easy=function(){return(d._crypto_box_easy=d.asm.aa).apply(null,arguments)},d._crypto_box_open_detached_afternm=function(){return(d._crypto_box_open_detached_afternm=d.asm.ba).apply(null,arguments)},d._crypto_box_open_detached=function(){return(d._crypto_box_open_detached=d.asm.ca).apply(null,arguments)},d._crypto_box_open_easy_afternm=function(){return(d._crypto_box_open_easy_afternm=d.asm.da).apply(null,arguments)},d._crypto_box_open_easy=function(){return(d._crypto_box_open_easy=d.asm.ea).apply(null,arguments)},d._crypto_box_seal=function(){return(d._crypto_box_seal=d.asm.fa).apply(null,arguments)},d._crypto_box_seal_open=function(){return(d._crypto_box_seal_open=d.asm.ga).apply(null,arguments)},d._crypto_box_sealbytes=function(){return(d._crypto_box_sealbytes=d.asm.ha).apply(null,arguments)},d._crypto_generichash_bytes_min=function(){return(d._crypto_generichash_bytes_min=d.asm.ia).apply(null,arguments)},d._crypto_generichash_bytes_max=function(){return(d._crypto_generichash_bytes_max=d.asm.ja).apply(null,arguments)},d._crypto_generichash_bytes=function(){return(d._crypto_generichash_bytes=d.asm.ka).apply(null,arguments)},d._crypto_generichash_keybytes_min=function(){return(d._crypto_generichash_keybytes_min=d.asm.la).apply(null,arguments)},d._crypto_generichash_keybytes_max=function(){return(d._crypto_generichash_keybytes_max=d.asm.ma).apply(null,arguments)},d._crypto_generichash_keybytes=function(){return(d._crypto_generichash_keybytes=d.asm.na).apply(null,arguments)},d._crypto_generichash_statebytes=function(){return(d._crypto_generichash_statebytes=d.asm.oa).apply(null,arguments)},d._crypto_generichash=function(){return(d._crypto_generichash=d.asm.pa).apply(null,arguments)},d._crypto_generichash_init=function(){return(d._crypto_generichash_init=d.asm.qa).apply(null,arguments)},d._crypto_generichash_update=function(){return(d._crypto_generichash_update=d.asm.ra).apply(null,arguments)},d._crypto_generichash_final=function(){return(d._crypto_generichash_final=d.asm.sa).apply(null,arguments)},d._crypto_generichash_keygen=function(){return(d._crypto_generichash_keygen=d.asm.ta).apply(null,arguments)},d._crypto_hash_bytes=function(){return(d._crypto_hash_bytes=d.asm.ua).apply(null,arguments)},d._crypto_hash=function(){return(d._crypto_hash=d.asm.va).apply(null,arguments)},d._crypto_kdf_bytes_min=function(){return(d._crypto_kdf_bytes_min=d.asm.wa).apply(null,arguments)},d._crypto_kdf_bytes_max=function(){return(d._crypto_kdf_bytes_max=d.asm.xa).apply(null,arguments)},d._crypto_kdf_contextbytes=function(){return(d._crypto_kdf_contextbytes=d.asm.ya).apply(null,arguments)},d._crypto_kdf_keybytes=function(){return(d._crypto_kdf_keybytes=d.asm.za).apply(null,arguments)},d._crypto_kdf_derive_from_key=function(){return(d._crypto_kdf_derive_from_key=d.asm.Aa).apply(null,arguments)},d._crypto_kdf_keygen=function(){return(d._crypto_kdf_keygen=d.asm.Ba).apply(null,arguments)},d._crypto_kx_seed_keypair=function(){return(d._crypto_kx_seed_keypair=d.asm.Ca).apply(null,arguments)},d._crypto_kx_keypair=function(){return(d._crypto_kx_keypair=d.asm.Da).apply(null,arguments)},d._crypto_kx_client_session_keys=function(){return(d._crypto_kx_client_session_keys=d.asm.Ea).apply(null,arguments)},d._crypto_kx_server_session_keys=function(){return(d._crypto_kx_server_session_keys=d.asm.Fa).apply(null,arguments)},d._crypto_kx_publickeybytes=function(){return(d._crypto_kx_publickeybytes=d.asm.Ga).apply(null,arguments)},d._crypto_kx_secretkeybytes=function(){return(d._crypto_kx_secretkeybytes=d.asm.Ha).apply(null,arguments)},d._crypto_kx_seedbytes=function(){return(d._crypto_kx_seedbytes=d.asm.Ia).apply(null,arguments)},d._crypto_kx_sessionkeybytes=function(){return(d._crypto_kx_sessionkeybytes=d.asm.Ja).apply(null,arguments)},d._crypto_scalarmult_base=function(){return(d._crypto_scalarmult_base=d.asm.Ka).apply(null,arguments)},d._crypto_scalarmult=function(){return(d._crypto_scalarmult=d.asm.La).apply(null,arguments)},d._crypto_scalarmult_bytes=function(){return(d._crypto_scalarmult_bytes=d.asm.Ma).apply(null,arguments)},d._crypto_scalarmult_scalarbytes=function(){return(d._crypto_scalarmult_scalarbytes=d.asm.Na).apply(null,arguments)},d._crypto_secretbox_keybytes=function(){return(d._crypto_secretbox_keybytes=d.asm.Oa).apply(null,arguments)},d._crypto_secretbox_noncebytes=function(){return(d._crypto_secretbox_noncebytes=d.asm.Pa).apply(null,arguments)},d._crypto_secretbox_macbytes=function(){return(d._crypto_secretbox_macbytes=d.asm.Qa).apply(null,arguments)},d._crypto_secretbox_messagebytes_max=function(){return(d._crypto_secretbox_messagebytes_max=d.asm.Ra).apply(null,arguments)},d._crypto_secretbox_keygen=function(){return(d._crypto_secretbox_keygen=d.asm.Sa).apply(null,arguments)},d._crypto_secretbox_detached=function(){return(d._crypto_secretbox_detached=d.asm.Ta).apply(null,arguments)},d._crypto_secretbox_easy=function(){return(d._crypto_secretbox_easy=d.asm.Ua).apply(null,arguments)},d._crypto_secretbox_open_detached=function(){return(d._crypto_secretbox_open_detached=d.asm.Va).apply(null,arguments)},d._crypto_secretbox_open_easy=function(){return(d._crypto_secretbox_open_easy=d.asm.Wa).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_keygen=function(){return(d._crypto_secretstream_xchacha20poly1305_keygen=d.asm.Xa).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_init_push=function(){return(d._crypto_secretstream_xchacha20poly1305_init_push=d.asm.Ya).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_init_pull=function(){return(d._crypto_secretstream_xchacha20poly1305_init_pull=d.asm.Za).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_rekey=function(){return(d._crypto_secretstream_xchacha20poly1305_rekey=d.asm._a).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_push=function(){return(d._crypto_secretstream_xchacha20poly1305_push=d.asm.$a).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_pull=function(){return(d._crypto_secretstream_xchacha20poly1305_pull=d.asm.ab).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_statebytes=function(){return(d._crypto_secretstream_xchacha20poly1305_statebytes=d.asm.bb).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_abytes=function(){return(d._crypto_secretstream_xchacha20poly1305_abytes=d.asm.cb).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_headerbytes=function(){return(d._crypto_secretstream_xchacha20poly1305_headerbytes=d.asm.db).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_keybytes=function(){return(d._crypto_secretstream_xchacha20poly1305_keybytes=d.asm.eb).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_messagebytes_max=function(){return(d._crypto_secretstream_xchacha20poly1305_messagebytes_max=d.asm.fb).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_tag_message=function(){return(d._crypto_secretstream_xchacha20poly1305_tag_message=d.asm.gb).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_tag_push=function(){return(d._crypto_secretstream_xchacha20poly1305_tag_push=d.asm.hb).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_tag_rekey=function(){return(d._crypto_secretstream_xchacha20poly1305_tag_rekey=d.asm.ib).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_tag_final=function(){return(d._crypto_secretstream_xchacha20poly1305_tag_final=d.asm.jb).apply(null,arguments)},d._crypto_shorthash_bytes=function(){return(d._crypto_shorthash_bytes=d.asm.kb).apply(null,arguments)},d._crypto_shorthash_keybytes=function(){return(d._crypto_shorthash_keybytes=d.asm.lb).apply(null,arguments)},d._crypto_shorthash=function(){return(d._crypto_shorthash=d.asm.mb).apply(null,arguments)},d._crypto_shorthash_keygen=function(){return(d._crypto_shorthash_keygen=d.asm.nb).apply(null,arguments)},d._crypto_sign_statebytes=function(){return(d._crypto_sign_statebytes=d.asm.ob).apply(null,arguments)},d._crypto_sign_bytes=function(){return(d._crypto_sign_bytes=d.asm.pb).apply(null,arguments)},d._crypto_sign_seedbytes=function(){return(d._crypto_sign_seedbytes=d.asm.qb).apply(null,arguments)},d._crypto_sign_publickeybytes=function(){return(d._crypto_sign_publickeybytes=d.asm.rb).apply(null,arguments)},d._crypto_sign_secretkeybytes=function(){return(d._crypto_sign_secretkeybytes=d.asm.sb).apply(null,arguments)},d._crypto_sign_messagebytes_max=function(){return(d._crypto_sign_messagebytes_max=d.asm.tb).apply(null,arguments)},d._crypto_sign_seed_keypair=function(){return(d._crypto_sign_seed_keypair=d.asm.ub).apply(null,arguments)},d._crypto_sign_keypair=function(){return(d._crypto_sign_keypair=d.asm.vb).apply(null,arguments)},d._crypto_sign=function(){return(d._crypto_sign=d.asm.wb).apply(null,arguments)},d._crypto_sign_open=function(){return(d._crypto_sign_open=d.asm.xb).apply(null,arguments)},d._crypto_sign_detached=function(){return(d._crypto_sign_detached=d.asm.yb).apply(null,arguments)},d._crypto_sign_verify_detached=function(){return(d._crypto_sign_verify_detached=d.asm.zb).apply(null,arguments)},d._crypto_sign_init=function(){return(d._crypto_sign_init=d.asm.Ab).apply(null,arguments)},d._crypto_sign_update=function(){return(d._crypto_sign_update=d.asm.Bb).apply(null,arguments)},d._crypto_sign_final_create=function(){return(d._crypto_sign_final_create=d.asm.Cb).apply(null,arguments)},d._crypto_sign_final_verify=function(){return(d._crypto_sign_final_verify=d.asm.Db).apply(null,arguments)},d._crypto_sign_ed25519_pk_to_curve25519=function(){return(d._crypto_sign_ed25519_pk_to_curve25519=d.asm.Eb).apply(null,arguments)},d._crypto_sign_ed25519_sk_to_curve25519=function(){return(d._crypto_sign_ed25519_sk_to_curve25519=d.asm.Fb).apply(null,arguments)},d._randombytes_random=function(){return(d._randombytes_random=d.asm.Gb).apply(null,arguments)},d._randombytes_stir=function(){return(d._randombytes_stir=d.asm.Hb).apply(null,arguments)},d._randombytes_uniform=function(){return(d._randombytes_uniform=d.asm.Ib).apply(null,arguments)},d._randombytes_buf=function(){return(d._randombytes_buf=d.asm.Jb).apply(null,arguments)},d._randombytes_buf_deterministic=function(){return(d._randombytes_buf_deterministic=d.asm.Kb).apply(null,arguments)},d._randombytes_seedbytes=function(){return(d._randombytes_seedbytes=d.asm.Lb).apply(null,arguments)},d._randombytes_close=function(){return(d._randombytes_close=d.asm.Mb).apply(null,arguments)},d._randombytes=function(){return(d._randombytes=d.asm.Nb).apply(null,arguments)},d._sodium_bin2hex=function(){return(d._sodium_bin2hex=d.asm.Ob).apply(null,arguments)},d._sodium_hex2bin=function(){return(d._sodium_hex2bin=d.asm.Pb).apply(null,arguments)},d._sodium_base64_encoded_len=function(){return(d._sodium_base64_encoded_len=d.asm.Qb).apply(null,arguments)},d._sodium_bin2base64=function(){return(d._sodium_bin2base64=d.asm.Rb).apply(null,arguments)},d._sodium_base642bin=function(){return(d._sodium_base642bin=d.asm.Sb).apply(null,arguments)},d._sodium_init=function(){return(d._sodium_init=d.asm.Tb).apply(null,arguments)},d._sodium_pad=function(){return(d._sodium_pad=d.asm.Ub).apply(null,arguments)},d._sodium_unpad=function(){return(d._sodium_unpad=d.asm.Vb).apply(null,arguments)},d._sodium_version_string=function(){return(d._sodium_version_string=d.asm.Wb).apply(null,arguments)},d._sodium_library_version_major=function(){return(d._sodium_library_version_major=d.asm.Xb).apply(null,arguments)},d._sodium_library_version_minor=function(){return(d._sodium_library_version_minor=d.asm.Yb).apply(null,arguments)},d._sodium_library_minimal=function(){return(d._sodium_library_minimal=d.asm.Zb).apply(null,arguments)},d._malloc=function(){return(d._malloc=d.asm._b).apply(null,arguments)},d._free=function(){return(d._free=d.asm.$b).apply(null,arguments)},d.UTF8ToString=P,d.setValue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"i8";switch(n.endsWith("*")&&(n="*"),n){case"i1":case"i8":x[e>>0]=t;break;case"i16":k[e>>1]=t;break;case"i32":I[e>>2]=t;break;case"i64":Q=[t>>>0,(z=t,+Math.abs(z)>=1?z>0?(0|Math.min(+Math.floor(z/4294967296),4294967295))>>>0:~~+Math.ceil((z-+(~~z>>>0))/4294967296)>>>0:0)],I[e>>2]=Q[0],I[e+4>>2]=Q[1];break;case"float":E[e>>2]=t;break;case"double":C[e>>3]=t;break;case"*":S[e>>2]=t;break;default:F("invalid type for setValue: "+n)}},d.getValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"i8";switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return x[e>>0];case"i16":return k[e>>1];case"i32":case"i64":return I[e>>2];case"float":return E[e>>2];case"double":return C[e>>3];case"*":return S[e>>2];default:F("invalid type for getValue: "+t)}return null},L=function e(){te||re(),te||(L=e)},d.preInit)for("function"==typeof d.preInit&&(d.preInit=[d.preInit]);d.preInit.length>0;)d.preInit.pop()();re()}))};var a,c,u,d=void 0!==d?d:{},f=Object.assign({},d),l="object"==typeof window,b="function"==typeof importScripts,p="object"==typeof i&&"object"==typeof i.versions&&"string"==typeof i.versions.node,h="";if(p){var y=n(42448),m=n(74048);h=b?m.dirname(h)+"/":"//",a=function(e,t){var n=X(e);return n?t?n:n.toString():(e=q(e)?new URL(e):m.normalize(e),y.readFileSync(e,t?void 0:"utf8"))},u=function(e){var t=a(e,!0);return t.buffer||(t=new Uint8Array(t)),t},c=function(e,t,n){var r=X(e);r&&t(r),e=q(e)?new URL(e):m.normalize(e),y.readFile(e,(function(e,r){e?n(e):t(r.buffer)}))},i.argv.length>1&&i.argv[1].replace(/\\/g,"/"),i.argv.slice(2),e.exports=d,d.inspect=function(){return"[Emscripten Module object]"}}else(l||b)&&(b?h=self.location.href:"undefined"!=typeof document&&document.currentScript&&(h=document.currentScript.src),h=0!==h.indexOf("blob:")?h.substr(0,h.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText}catch(t){var n=X(e);if(n)return function(e){for(var t=[],n=0;n255&&(r&=255),t.push(String.fromCharCode(r))}return t.join("")}(n);throw t}},b&&(u=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}catch(t){var n=X(e);if(n)return n;throw t}}),c=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){if(200==r.status||0==r.status&&r.response)t(r.response);else{var a=X(e);a?t(a.buffer):n()}},r.onerror=n,r.send(null)});d.print;var v,g,A=d.printErr||void 0;Object.assign(d,f),f=null,d.arguments&&d.arguments,d.thisProgram&&d.thisProgram,d.quit&&d.quit,d.wasmBinary&&(v=d.wasmBinary),d.noExitRuntime,"object"!=typeof WebAssembly&&U("no native wasm support detected");var w,x,_,k,I,S,E,C=!1,T="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function O(e,t){return e?function(e,t,n){for(var r=t+n,a=t;e[a]&&!(a>=r);)++a;if(a-t>16&&e.buffer&&T)return T.decode(e.subarray(t,a));for(var i="";t>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|s)}else i+=String.fromCharCode(o)}return i}(x,e,t):""}function P(){var e=g.buffer;d.HEAP8=w=new Int8Array(e),d.HEAP16=_=new Int16Array(e),d.HEAP32=k=new Int32Array(e),d.HEAPU8=x=new Uint8Array(e),d.HEAPU16=new Uint16Array(e),d.HEAPU32=I=new Uint32Array(e),d.HEAPF32=S=new Float32Array(e),d.HEAPF64=E=new Float64Array(e)}var M=[],B=[],N=[],R=0,D=null,j=null;function U(e){throw d.onAbort&&d.onAbort(e),A(e="Aborted("+e+")"),C=!0,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var L,F,Z,H,z="data:application/octet-stream;base64,";function Q(e){return e.startsWith(z)}function q(e){return e.startsWith("file://")}function V(e){try{if(e==L&&v)return new Uint8Array(v);var t=X(e);if(t)return t;if(u)return u(e);throw"both async and sync fetching of the wasm failed"}catch(e){U(e)}}Q(L="data:application/octet-stream;base64,AGFzbQEAAAABiwIfYAN/f34Bf2ACf38Bf2AAAX9gA39/fwF/YAJ/fwBgA39/fwBgBX9/f39/AX9gC39/f39/f39/f39/AX9gBn9/fn9/fwF/YAZ/f35/fn8Bf2AGf39/f39/AX9gAX8AYAR/fn9/AX9gBH9/f38Bf2ABfwF/YAd/f39/f39/AX9gAABgBn9/f35/fwF/YAR/f35/AX9gA39/fgBgCH9/fn9/fn9/AX9gCX9/f39+f35/fwF/YAh/f39/f39/fwF/YAx/f39/f39/f39/f38Bf2AEf39/fwBgBX9/fn9/AGAKf39/f39/f39/fwF/YAR/fn9/AGAGf39+f39/AGAEf39/fgBgBX9/fn9/AX8CHwUBYQFhAAMBYQFiABgBYQFjABABYQFkAAUBYQFlAA4DsAGuAQQFBAMQAgMABAUAAgUEBAsEBBsACwIcDgECAREDAw0DGAIFBAUEBAQBAh0RHhEDAgMLDgUTBBMDAQMLFBQVFQICAwUFAQQBEBkZCg8PCAgEEwQUFREDAgIBAQICAgICCwMDAgkMAQMLDgEAARISAgUOAgUNBgoKCgYaGgoKDQ0PCgYPCBYPChYGBgcHCQcXBwcHBwcXBxcMBgYDAQICCwIDDAINFgYBDw0DDQ4BBgQEAXAADgUGAQFAgIACBggBfwFB8JoGCweWBp4BAWYCAAFnAJsBAWgAmgEBaQCZAQFqAJgBAWsAlwEBbACWAQFtAJUBAW4AlAEBbwAKAXAAXwFxAC4BcgAQAXMAHgF0ABQBdQAKAXYANAF3AC4BeAAQAXkAHgF6ABQBQQCTAQFCAJIBAUMAkAEBRACPAQFFAAoBRgAmAUcALgFIABABSQAeAUoAFAFLAAoBTAAKAU0AjgEBTgCNAQFPABQBUAAKAVEACgFSAAoBUwAKAVQAJgFVABABVgAeAVcApQEBWAA9AVkAIQFaAFEBXwCMAQEkAIsBAmFhAIoBAmJhAFACY2EAiQECZGEATwJlYQCHAQJmYQCGAQJnYQCFAQJoYQCkAQJpYQAQAmphABoCa2EACgJsYQAQAm1hABoCbmEACgJvYQCnAQJwYQCEAQJxYQAjAnJhAIMBAnNhACICdGEAFAJ1YQAaAnZhAIIBAndhABACeGEAGgJ5YQA0AnphAAoCQWEAgQECQmEAFAJDYQCfAQJEYQA9AkVhAJ4BAkZhAJ0BAkdhAAoCSGEACgJJYQAKAkphAAoCS2EAoAECTGEAPAJNYQAKAk5hAAoCT2EACgJQYQAmAlFhABACUmEAHgJTYQAUAlRhAFECVWEAgAECVmEAUAJXYQBPAlhhABQCWWEAZgJaYQBlAl9hAGQCJGEAfwJhYgB+AmJiAGMCY2IAYgJkYgAmAmViAAoCZmIAYQJnYgAuAmhiAEUCaWIAYAJqYgBEAmtiADQCbGIAEAJtYgB9Am5iAKMBAm9iAFwCcGIAGgJxYgAKAnJiAAoCc2IAGgJ0YgBbAnViAFoCdmIAsQECd2IAfAJ4YgB7AnliAHoCemIAeQJBYgCwAQJCYgB4AkNiAK8BAkRiAK4BAkViAF4CRmIAXQJHYgB2AkhiAEwCSWIAdQJKYgAWAktiAHQCTGIACgJNYgBzAk5iAHcCT2IArQECUGIArAECUWIAqwECUmIAqgECU2IAqQECVGIAZwJVYgCyAQJWYgCoAQJXYgCiAQJYYgChAQJZYgBEAlpiAEUCX2IAbQIkYgBsAmFjAQAJFwEAQQELDaYBnAGRAYgBcnFwb25ramloCrPlBK4BywYCG34HfyAAIAEoAgwiHUEBdKwiByAdrCITfiABKAIQIiCsIgYgASgCCCIhQQF0rCILfnwgASgCFCIdQQF0rCIIIAEoAgQiIkEBdKwiAn58IAEoAhgiH6wiCSABKAIAIiNBAXSsIgV+fCABKAIgIh5BE2ysIgMgHqwiEH58IAEoAiQiHkEmbKwiBCABKAIcIgFBAXSsIhR+fCACIAZ+IAsgE358IB2sIhEgBX58IAMgFH58IAQgCX58IAIgB34gIawiDiAOfnwgBSAGfnwgAUEmbKwiDyABrCIVfnwgAyAfQQF0rH58IAQgCH58IhdCgICAEHwiGEIah3wiGUKAgIAIfCIaQhmHfCIKIApCgICAEHwiDEKAgIDgD4N9PgIYIAAgBSAOfiACICKsIg1+fCAfQRNsrCIKIAl+fCAIIA9+fCADICBBAXSsIhZ+fCAEIAd+fCAIIAp+IAUgDX58IAYgD358IAMgB358IAQgDn58IB1BJmysIBF+ICOsIg0gDX58IAogFn58IAcgD358IAMgC358IAIgBH58IgpCgICAEHwiDUIah3wiG0KAgIAIfCIcQhmHfCISIBJCgICAEHwiEkKAgIDgD4N9PgIIIAAgCyARfiAGIAd+fCACIAl+fCAFIBV+fCAEIBB+fCAMQhqHfCIMIAxCgICACHwiDEKAgIDwD4N9PgIcIAAgBSATfiACIA5+fCAJIA9+fCADIAh+fCAEIAZ+fCASQhqHfCIDIANCgICACHwiA0KAgIDwD4N9PgIMIAAgCSALfiAGIAZ+fCAHIAh+fCACIBR+fCAFIBB+fCAEIB6sIgZ+fCAMQhmHfCIEIARCgICAEHwiBEKAgIDgD4N9PgIgIAAgGSAaQoCAgPAPg30gFyAYQoCAgGCDfSADQhmHfCIDQoCAgBB8IghCGoh8PgIUIAAgAyAIQoCAgOAPg30+AhAgACAHIAl+IBEgFn58IAsgFX58IAIgEH58IAUgBn58IARCGod8IgIgAkKAgIAIfCICQoCAgPAPg30+AiQgACAbIBxCgICA8A+DfSAKIA1CgICAYIN9IAJCGYdCE358IgJCgICAEHwiBUIaiHw+AgQgACACIAVCgICA4A+DfT4CAAudCQInfgx/IAAgAigCBCIqrCILIAEoAhQiK0EBdKwiFH4gAjQCACIDIAE0AhgiBn58IAIoAggiLKwiDSABNAIQIgd+fCACKAIMIi2sIhAgASgCDCIuQQF0rCIVfnwgAigCECIvrCIRIAE0AggiCH58IAIoAhQiMKwiFiABKAIEIjFBAXSsIhd+fCACKAIYIjKsIiAgATQCACIJfnwgAigCHCIzQRNsrCIMIAEoAiQiNEEBdKwiGH58IAIoAiAiNUETbKwiBCABNAIgIgp+fCACKAIkIgJBE2ysIgUgASgCHCIBQQF0rCIZfnwgByALfiADICusIhp+fCANIC6sIht+fCAIIBB+fCARIDGsIhx+fCAJIBZ+fCAyQRNsrCIOIDSsIh1+fCAKIAx+fCAEIAGsIh5+fCAFIAZ+fCALIBV+IAMgB358IAggDX58IBAgF358IAkgEX58IDBBE2ysIh8gGH58IAogDn58IAwgGX58IAQgBn58IAUgFH58IiJCgICAEHwiI0Iah3wiJEKAgIAIfCIlQhmHfCISIBJCgICAEHwiE0KAgIDgD4N9PgIYIAAgCyAXfiADIAh+fCAJIA1+fCAtQRNsrCIPIBh+fCAKIC9BE2ysIhJ+fCAZIB9+fCAGIA5+fCAMIBR+fCAEIAd+fCAFIBV+fCAJIAt+IAMgHH58ICxBE2ysIiEgHX58IAogD358IBIgHn58IAYgH358IA4gGn58IAcgDH58IAQgG358IAUgCH58ICpBE2ysIBh+IAMgCX58IAogIX58IA8gGX58IAYgEn58IBQgH358IAcgDn58IAwgFX58IAQgCH58IAUgF358IiFCgICAEHwiJkIah3wiJ0KAgIAIfCIoQhmHfCIPIA9CgICAEHwiKUKAgIDgD4N9PgIIIAAgBiALfiADIB5+fCANIBp+fCAHIBB+fCARIBt+fCAIIBZ+fCAcICB+fCAJIDOsIg9+fCAEIB1+fCAFIAp+fCATQhqHfCITIBNCgICACHwiE0KAgIDwD4N9PgIcIAAgCCALfiADIBt+fCANIBx+fCAJIBB+fCASIB1+fCAKIB9+fCAOIB5+fCAGIAx+fCAEIBp+fCAFIAd+fCApQhqHfCIEIARCgICACHwiBEKAgIDwD4N9PgIMIAAgCyAZfiADIAp+fCAGIA1+fCAQIBR+fCAHIBF+fCAVIBZ+fCAIICB+fCAPIBd+fCAJIDWsIgx+fCAFIBh+fCATQhmHfCIFIAVCgICAEHwiBUKAgIDgD4N9PgIgIAAgJCAlQoCAgPAPg30gIiAjQoCAgGCDfSAEQhmHfCIEQoCAgBB8Ig5CGoh8PgIUIAAgBCAOQoCAgOAPg30+AhAgACAKIAt+IAMgHX58IA0gHn58IAYgEH58IBEgGn58IAcgFn58IBsgIH58IAggD358IAwgHH58IAkgAqx+fCAFQhqHfCIDIANCgICACHwiA0KAgIDwD4N9PgIkIAAgJyAoQoCAgPAPg30gISAmQoCAgGCDfSADQhmHQhN+fCIDQoCAgBB8IgZCGoh8PgIEIAAgAyAGQoCAgOAPg30+AgALCwAgAEEAIAEQCBoL8gICAn8BfgJAIAJFDQAgACABOgAAIAAgAmoiA0EBayABOgAAIAJBA0kNACAAIAE6AAIgACABOgABIANBA2sgAToAACADQQJrIAE6AAAgAkEHSQ0AIAAgAToAAyADQQRrIAE6AAAgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBBGsgATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQQhrIAE2AgAgAkEMayABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkEQayABNgIAIAJBFGsgATYCACACQRhrIAE2AgAgAkEcayABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa1CgYCAgBB+IQUgAyAEaiEBA0AgASAFNwMYIAEgBTcDECABIAU3AwggASAFNwMAIAFBIGohASACQSBrIgJBH0sNAAsLIAALGAEBf0HomgIoAgAiAARAIAAREAALEAIACwQAQSALgAQBA38gAkGABE8EQCAAIAEgAhADIAAPCyAAIAJqIQMCQCAAIAFzQQNxRQRAAkAgAEEDcUUEQCAAIQIMAQsgAkUEQCAAIQIMAQsgACECA0AgAiABLQAAOgAAIAFBAWohASACQQFqIgJBA3FFDQEgAiADSQ0ACwsCQCADQXxxIgRBwABJDQAgAiAEQUBqIgVLDQADQCACIAEoAgA2AgAgAiABKAIENgIEIAIgASgCCDYCCCACIAEoAgw2AgwgAiABKAIQNgIQIAIgASgCFDYCFCACIAEoAhg2AhggAiABKAIcNgIcIAIgASgCIDYCICACIAEoAiQ2AiQgAiABKAIoNgIoIAIgASgCLDYCLCACIAEoAjA2AjAgAiABKAI0NgI0IAIgASgCODYCOCACIAEoAjw2AjwgAUFAayEBIAJBQGsiAiAFTQ0ACwsgAiAETw0BA0AgAiABKAIANgIAIAFBBGohASACQQRqIgIgBEkNAAsMAQsgA0EESQRAIAAhAgwBCyAAIANBBGsiBEsEQCAAIQIMAQsgACECA0AgAiABLQAAOgAAIAIgAS0AAToAASACIAEtAAI6AAIgAiABLQADOgADIAFBBGohASACQQRqIgIgBE0NAAsLIAIgA0kEQANAIAIgAS0AADoAACABQQFqIQEgAkEBaiICIANHDQALCyAAC6EGAgd+BH8jAEHABWsiDCQAAkAgAlANACAAIAApA0giAyACQgOGfCIENwNIIABBQGsiCiAKKQMAIAMgBFatfCACQj2IfDcDACACQoABIANCA4hC/wCDIgR9IghaBEBCACEDIARC/wCFQgNaBEAgCEL8AYMhByAAQdAAaiEKA0AgCiADIAR8p2ogASADp2otAAA6AAAgCiADQgGEIgkgBHynaiABIAmnai0AADoAACAKIANCAoQiCSAEfKdqIAEgCadqLQAAOgAAIAogA0IDhCIJIAR8p2ogASAJp2otAAA6AAAgA0IEfCEDIAVCBHwiBSAHUg0ACwsgCEIDgyIFQgBSBEADQCAAIAMgBHynaiABIAOnai0AADoAUCADQgF8IQMgBkIBfCIGIAVSDQALCyAAIABB0ABqIAwgDEGABWoiChAlIAEgCKdqIQEgAiAIfSICQv8AVgRAA0AgACABIAwgChAlIAFBgAFqIQEgAkKAAX0iAkL/AFYNAAsLAkAgAlANACACQgODIQRCACEGQgAhAyACQgRaBEAgAkJ8gyEFIABB0ABqIQpCACECA0AgCiADpyILaiABIAtqLQAAOgAAIAogC0EBciINaiABIA1qLQAAOgAAIAogC0ECciINaiABIA1qLQAAOgAAIAogC0EDciILaiABIAtqLQAAOgAAIANCBHwhAyACQgR8IgIgBVINAAsLIARQDQADQCAAIAOnIgpqIAEgCmotAAA6AFAgA0IBfCEDIAZCAXwiBiAEUg0ACwsgDEHABRAHDAELQgAhAyACQgRaBEAgAkJ8gyEIIABB0ABqIQoDQCAKIAMgBHynaiABIAOnai0AADoAACAKIANCAYQiByAEfKdqIAEgB6dqLQAAOgAAIAogA0IChCIHIAR8p2ogASAHp2otAAA6AAAgCiADQgOEIgcgBHynaiABIAenai0AADoAACADQgR8IQMgBUIEfCIFIAhSDQALCyACQgODIgJQDQADQCAAIAMgBHynaiABIAOnai0AADoAUCADQgF8IQMgBkIBfCIGIAJSDQALCyAMQcAFaiQAQQALsQQCE38EfiABKAIoIQIgASgCBCEDIAEoAiwhBCABKAIIIQUgASgCMCEGIAEoAgwhByABKAI0IQggASgCECEJIAEoAjghCiABKAIUIQsgASgCPCEMIAEoAhghDSABQUBrIg4oAgAhDyABKAIcIRAgASgCRCERIAEoAiAhEiABKAJIIRMgASgCACEUIAAgASgCJCABKAJMajYCJCAAIBIgE2o2AiAgACAQIBFqNgIcIAAgDSAPajYCGCAAIAsgDGo2AhQgACAJIApqNgIQIAAgByAIajYCDCAAIAUgBmo2AgggACADIARqNgIEIAAgAiAUajYCACABKAIoIQIgASgCBCEDIAEoAiwhBCABKAIIIQUgASgCMCEGIAEoAgwhByABKAI0IQggASgCECEJIAEoAjghCiABKAIUIQsgASgCPCEMIAEoAhghDSAOKAIAIQ4gASgCHCEPIAEoAkQhECABKAIgIREgASgCSCESIAEoAgAhEyAAIAEoAkwgASgCJGs2AkwgACASIBFrNgJIIAAgECAPazYCRCAAQUBrIA4gDWs2AgAgACAMIAtrNgI8IAAgCiAJazYCOCAAIAggB2s2AjQgACAGIAVrNgIwIAAgBCADazYCLCAAIAIgE2s2AiggASkCUCEVIAEpAlghFiABKQJgIRcgASkCaCEYIAAgASkCcDcCcCAAIBg3AmggACAXNwJgIAAgFjcCWCAAIBU3AlAgAEH4AGogAUH4AGpBoAsQBgvwCQEefyABKAIoIQMgASgCBCEEIAEoAiwhBSABKAIIIQYgASgCMCEHIAEoAgwhCCABKAI0IQkgASgCECEKIAEoAjghCyABKAIUIQwgASgCPCENIAEoAhghDiABQUBrIg8oAgAhECABKAIcIREgASgCRCESIAEoAiAhEyABKAJIIRQgASgCACEVIAAgASgCJCABKAJMajYCJCAAIBMgFGo2AiAgACARIBJqNgIcIAAgDiAQajYCGCAAIAwgDWo2AhQgACAKIAtqNgIQIAAgCCAJajYCDCAAIAYgB2o2AgggACAEIAVqNgIEIAAgAyAVajYCACABKAIoIQUgASgCBCEDIAEoAiwhBiABKAIIIQcgASgCMCEIIAEoAgwhCSABKAI0IQogASgCECELIAEoAjghDCABKAIUIQ0gASgCPCEOIAEoAhghECAPKAIAIQ8gASgCHCEEIAEoAkQhESABKAIgIRIgASgCSCETIAEoAgAhFCAAIAEoAkwgASgCJGs2AkwgACATIBJrNgJIIAAgESAEazYCRCAAQUBrIgQgDyAQazYCACAAIA4gDWs2AjwgACAMIAtrNgI4IAAgCiAJazYCNCAAIAggB2s2AjAgACAGIANrNgIsIABBKGoiAyAFIBRrNgIAIABB0ABqIAAgAhAGIAMgAyACQShqEAYgAEH4AGogAkH4AGogAUH4AGoQBiAAIAFB0ABqIAJB0ABqEAYgACgCBCEVIAAoAgghFiAAKAIMIRcgACgCECEYIAAoAhQhGSAAKAIYIRogACgCHCEbIAAoAiAhHCAAKAIkIR0gAygCACEBIAAoAlAhAiAAKAIsIQUgACgCVCEGIAAoAjAhByAAKAJYIQggACgCNCEJIAAoAlwhCiAAKAI4IQsgACgCYCEMIAAoAjwhDSAAKAJkIQ4gBCgCACEPIAAoAmghECAAKAJEIREgACgCbCESIAAoAkghEyAAKAJwIRQgACgCACEeIAAgACgCTCIfIAAoAnQiIGo2AkwgACATIBRqNgJIIAAgESASajYCRCAEIA8gEGo2AgAgACANIA5qNgI8IAAgCyAMajYCOCAAIAkgCmo2AjQgACAHIAhqNgIwIAAgBSAGajYCLCADIAEgAmo2AgAgACAgIB9rNgIkIAAgFCATazYCICAAIBIgEWs2AhwgACAQIA9rNgIYIAAgDiANazYCFCAAIAwgC2s2AhAgACAKIAlrNgIMIAAgCCAHazYCCCAAIAYgBWs2AgQgACACIAFrNgIAIAAgHUEBdCIBIAAoApwBIgJrNgKcASAAIBxBAXQiAyAAKAKYASIEazYCmAEgACAbQQF0IgUgACgClAEiBms2ApQBIAAgGkEBdCIHIAAoApABIghrNgKQASAAIBlBAXQiCSAAKAKMASIKazYCjAEgACAYQQF0IgsgACgCiAEiDGs2AogBIAAgF0EBdCINIAAoAoQBIg5rNgKEASAAIBZBAXQiDyAAKAKAASIQazYCgAEgACAVQQF0IhEgACgCfCISazYCfCAAIB5BAXQiEyAAKAJ4IhRrNgJ4IAAgAyAEajYCcCAAIAUgBmo2AmwgACAHIAhqNgJoIAAgCSAKajYCZCAAIAsgDGo2AmAgACANIA5qNgJcIAAgDyAQajYCWCAAIBEgEmo2AlQgACATIBRqNgJQIAAgASACajYCdAvUAQIFfwJ+An8gAkIAUgRAIABB4AFqIQcgAEHgAGohAyAAKADgAiEEA0AgAyAEaiEGQYACIARrIgWtIgggAloEQCAGIAEgAqciARALGiAAIAAoAOACIAFqNgDgAkEADAMLIAYgASAFEAsaIAAgACgA4AIgBWo2AOACIAAgACkAQCIJQoABfDcAQCAAIAApAEggCUL/flatfDcASCAAIAMQKCADIAdBgAEQCxogACAAKADgAkGAAWsiBDYA4AIgASAFaiEBIAIgCH0iAkIAUg0ACwtBAAsLBABBEAuDBwEUfyABKAIEIQwgACgCBCEDIAEoAgghDSAAKAIIIQQgASgCDCEOIAAoAgwhBSABKAIQIQ8gACgCECEGIAEoAhQhECAAKAIUIQcgASgCGCERIAAoAhghCCABKAIcIRIgACgCHCEJIAEoAiAhEyAAKAIgIQogASgCJCEUIAAoAiQhCyAAQQAgAmsiAiAAKAIAIhUgASgCAHNxIBVzNgIAIAAgCyALIBRzIAJxczYCJCAAIAogCiATcyACcXM2AiAgACAJIAkgEnMgAnFzNgIcIAAgCCAIIBFzIAJxczYCGCAAIAcgByAQcyACcXM2AhQgACAGIAYgD3MgAnFzNgIQIAAgBSAFIA5zIAJxczYCDCAAIAQgBCANcyACcXM2AgggACADIAMgDHMgAnFzNgIEIAAoAighAyABKAIoIQwgACgCLCEEIAEoAiwhDSAAKAIwIQUgASgCMCEOIAAoAjQhBiABKAI0IQ8gACgCOCEHIAEoAjghECAAKAI8IQggASgCPCERIABBQGsiEigCACEJIAFBQGsoAgAhEyAAKAJEIQogASgCRCEUIAAoAkghCyABKAJIIRUgACAAKAJMIhYgASgCTHMgAnEgFnM2AkwgACALIAsgFXMgAnFzNgJIIAAgCiAKIBRzIAJxczYCRCASIAkgCSATcyACcXM2AgAgACAIIAggEXMgAnFzNgI8IAAgByAHIBBzIAJxczYCOCAAIAYgBiAPcyACcXM2AjQgACAFIAUgDnMgAnFzNgIwIAAgBCAEIA1zIAJxczYCLCAAIAMgAyAMcyACcXM2AiggACgCUCEDIAEoAlAhDCAAKAJUIQQgASgCVCENIAAoAlghBSABKAJYIQ4gACgCXCEGIAEoAlwhDyAAKAJgIQcgASgCYCEQIAAoAmQhCCABKAJkIREgACgCaCEJIAEoAmghEiAAKAJsIQogASgCbCETIAAoAnAhCyABKAJwIRQgACAAKAJ0IhUgASgCdHMgAnEgFXM2AnQgACALIAsgFHMgAnFzNgJwIAAgCiAKIBNzIAJxczYCbCAAIAkgCSAScyACcXM2AmggACAIIAggEXMgAnFzNgJkIAAgByAHIBBzIAJxczYCYCAAIAYgBiAPcyACcXM2AlwgACAFIAUgDnMgAnFzNgJYIAAgBCAEIA1zIAJxczYCVCAAIAMgAyAMcyACcXM2AlAL6AQBCX8gACABKAIgIgUgASgCHCIGIAEoAhgiByABKAIUIgggASgCECIJIAEoAgwiCiABKAIIIgQgASgCBCIDIAEoAgAiAiABKAIkIgFBE2xBgICACGpBGXZqQRp1akEZdWpBGnVqQRl1akEadWpBGXVqQRp1akEZdWpBGnUgAWpBGXVBE2wgAmoiAjoAACAAIAJBEHY6AAIgACACQQh2OgABIAAgAyACQRp1aiIDQQ52OgAFIAAgA0EGdjoABCAAIAJBGHZBA3EgA0ECdHI6AAMgACAEIANBGXVqIgJBDXY6AAggACACQQV2OgAHIAAgAkEDdCADQYCAgA5xQRZ2cjoABiAAIAogAkEadWoiBEELdjoACyAAIARBA3Y6AAogACAEQQV0IAJBgICAH3FBFXZyOgAJIAAgCSAEQRl1aiICQRJ2OgAPIAAgAkEKdjoADiAAIAJBAnY6AA0gACAIIAJBGnVqIgM6ABAgACACQQZ0IARBgIDgD3FBE3ZyOgAMIAAgA0EQdjoAEiAAIANBCHY6ABEgACAHIANBGXVqIgJBD3Y6ABUgACACQQd2OgAUIAAgA0EYdkEBcSACQQF0cjoAEyAAIAYgAkEadWoiA0ENdjoAGCAAIANBBXY6ABcgACADQQN0IAJBgICAHHFBF3ZyOgAWIAAgBSADQRl1aiICQQx2OgAbIAAgAkEEdjoAGiAAIAJBBHQgA0GAgIAPcUEVdnI6ABkgACABIAJBGnVqIgFBCnY6AB4gACABQQJ2OgAdIAAgAUGAgPAPcUESdjoAHyAAIAFBBnQgAkGAgMAfcUEUdnI6ABwLvQgCAX4DfyMAQcAFayIDJAAgACgCSEEDdkH/AHEiBCAAakHQAGohBQJAIARB7wBNBEAgBUHQjgJB8AAgBGsQCxoMAQsgBUHQjgJBgAEgBGsQCxogACAAQdAAaiIEIAMgA0GABWoQJSAEQQBB8AAQCBoLIAAgACkDQCICQjiGIAJCgP4Dg0IohoQgAkKAgPwHg0IYhiACQoCAgPgPg0IIhoSEIAJCCIhCgICA+A+DIAJCGIhCgID8B4OEIAJCKIhCgP4DgyACQjiIhISENwDAASAAIAApA0giAkI4hiACQoD+A4NCKIaEIAJCgID8B4NCGIYgAkKAgID4D4NCCIaEhCACQgiIQoCAgPgPgyACQhiIQoCA/AeDhCACQiiIQoD+A4MgAkI4iISEhDcAyAEgACAAQdAAaiADIANBgAVqECUgASAAKQMAIgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3AAAgASAAKQMIIgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3AAggASAAKQMQIgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3ABAgASAAKQMYIgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3ABggASAAKQMgIgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3ACAgASAAKQMoIgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3ACggASAAKQMwIgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3ADAgASAAKQM4IgJCOIYgAkKA/gODQiiGhCACQoCA/AeDQhiGIAJCgICA+A+DQgiGhIQgAkIIiEKAgID4D4MgAkIYiEKAgPwHg4QgAkIoiEKA/gODIAJCOIiEhIQ3ADggA0HABRAHIABB0AEQByADQcAFaiQACwgAIABBIBAWC+MOAhx+IH8jAEEwayIeJAAgACABEAUgAEHQAGogAUEoahAFIAAgASgCXCIiQQF0rCIIIAEoAlQiI0EBdKwiAn4gASgCWCIkrCINIA1+fCABKAJgIiWsIgcgASgCUCImQQF0rCIFfnwgASgCbCIfQSZsrCIOIB+sIhF+fCABKAJwIidBE2ysIgMgASgCaCIgQQF0rH58IAEoAnQiKEEmbKwiBCABKAJkIiFBAXSsIgl+fEIBhiIVQoCAgBB8IhZCGocgAiAHfiAkQQF0rCILICKsIhJ+fCAhrCIPIAV+fCADIB9BAXSsIhN+fCAEICCsIgp+fEIBhnwiF0KAgIAIfCIYQhmHIAggEn4gByALfnwgAiAJfnwgBSAKfnwgAyAnrCIQfnwgBCATfnxCAYZ8IgYgBkKAgIAQfCIMQoCAgOAPg30+ApABIAAgIUEmbKwgD34gJqwiBiAGfnwgIEETbKwiBiAlQQF0rCIUfnwgCCAOfnwgAyALfnwgAiAEfnxCAYYiGUKAgIAQfCIaQhqHIAYgCX4gBSAjrCIbfnwgByAOfnwgAyAIfnwgBCANfnxCAYZ8IhxCgICACHwiHUIZhyAFIA1+IAIgG358IAYgCn58IAkgDn58IAMgFH58IAQgCH58QgGGfCIGIAZCgICAEHwiBkKAgIDgD4N9PgKAASAAIAsgD34gByAIfnwgAiAKfnwgBSARfnwgBCAQfnxCAYYgDEIah3wiDCAMQoCAgAh8IgxCgICA8A+DfT4ClAEgACAFIBJ+IAIgDX58IAogDn58IAMgCX58IAQgB358QgGGIAZCGod8IgMgA0KAgIAIfCIDQoCAgPAPg30+AoQBIAAgCiALfiAHIAd+fCAIIAl+fCACIBN+fCAFIBB+fCAEICisIgd+fEIBhiAMQhmHfCIEIARCgICAEHwiBEKAgIDgD4N9PgKYASAAIBcgGEKAgIDwD4N9IBUgFkKAgIBgg30gA0IZh3wiA0KAgIAQfCIJQhqIfD4CjAEgACADIAlCgICA4A+DfT4CiAEgACAIIAp+IA8gFH58IAsgEX58IAIgEH58IAUgB358QgGGIARCGod8IgIgAkKAgIAIfCICQoCAgPAPg30+ApwBIAAgHCAdQoCAgPAPg30gGSAaQoCAgGCDfSACQhmHQhN+fCICQoCAgBB8IgVCGoh8PgJ8IAAgAiAFQoCAgOAPg30+AnggASgCKCEfIAEoAiwhICABKAIEISEgASgCMCEiIAEoAgghIyABKAI0ISQgASgCDCElIAEoAjghJiABKAIQIScgASgCPCEoIAEoAhQhKSABQUBrKAIAISogASgCGCErIAEoAkQhLCABKAIcIS0gASgCSCEuIAEoAiAhLyABKAIAITAgACABKAJMIAEoAiRqNgJMIAAgLiAvajYCSCAAICwgLWo2AkQgAEFAayIyICogK2o2AgAgACAoIClqNgI8IAAgJiAnajYCOCAAICQgJWo2AjQgACAiICNqNgIwIAAgICAhajYCLCAAQShqIgEgHyAwajYCACAeIAEQBSAAKAJQIR8gACgCBCEgIAAoAlQhISAAKAIIISIgACgCWCEjIAAoAgwhJCAAKAJcISUgACgCECEmIAAoAmAhJyAAKAIUISggACgCZCEpIAAoAhghKiAAKAJoISsgACgCHCEsIAAoAmwhLSAAKAIgIS4gACgCcCEvIAAoAgAhMCAAIAAoAnQiMSAAKAIkIjNrIjQ2AnQgACAvIC5rIjU2AnAgACAtICxrIjY2AmwgACArICprIjc2AmggACApIChrIjg2AmQgACAnICZrIjk2AmAgACAlICRrIjo2AlwgACAjICJrIjs2AlggACAhICBrIjw2AlQgACAfIDBrIj02AlAgACAxIDNqIjE2AkwgACAuIC9qIi42AkggACAsIC1qIiw2AkQgMiAqICtqIio2AgAgACAoIClqIig2AjwgACAmICdqIiY2AjggACAkICVqIiQ2AjQgACAiICNqIiI2AjAgACAgICFqIiA2AiwgASAfIDBqIgE2AgAgHigCACEfIB4oAgQhISAeKAIIISMgHigCDCElIB4oAhAhJyAeKAIUISkgHigCGCErIB4oAhwhLSAeKAIgIS8gACAeKAIkIDFrNgIkIAAgLyAuazYCICAAIC0gLGs2AhwgACArICprNgIYIAAgKSAoazYCFCAAICcgJms2AhAgACAlICRrNgIMIAAgIyAiazYCCCAAICEgIGs2AgQgACAfIAFrNgIAIAAoAnghASAAKAJ8IR8gACgCgAEhICAAKAKEASEhIAAoAogBISIgACgCjAEhIyAAKAKQASEkIAAoApQBISUgACgCmAEhJiAAIAAoApwBIDRrNgKcASAAICYgNWs2ApgBIAAgJSA2azYClAEgACAkIDdrNgKQASAAICMgOGs2AowBIAAgIiA5azYCiAEgACAhIDprNgKEASAAICAgO2s2AoABIAAgHyA8azYCfCAAIAEgPWs2AnggHkEwaiQAC0QBAn8jAEEQayICJAAgAQRAA0AgAkEAOgAPIAAgA2pB2JACIAJBD2pBABAAOgAAIANBAWoiAyABRw0ACwsgAkEQaiQACyQAIAFCgICAgBBaBEAQCQALIAAgASACIANBqJACKAIAEQwAGguVAQEBfyMAQdABayIDJAAgA0IANwNIIANBmIkCKQMANwMIIANBoIkCKQMANwMQIANBqIkCKQMANwMYIANBsIkCKQMANwMgIANBuIkCKQMANwMoIANBwIkCKQMANwMwIANByIkCKQMANwM4IANCADcDQCADQZCJAikDADcDACADIAEgAhAMGiADIAAQEyADQdABaiQAQQALcAAgAEIANwNAIABCADcDSCAAQZCJAikDADcDACAAQZiJAikDADcDCCAAQaCJAikDADcDECAAQaiJAikDADcDGCAAQbCJAikDADcDICAAQbiJAikDADcDKCAAQcCJAikDADcDMCAAQciJAikDADcDOAsFAEHAAAtAAAJAIAStQoCAgIAQIAJCP3xCBoh9Vg0AIAJCgICAgBBaDQAgACABIAIgAyAEIAVBsJACKAIAEQgAGg8LEAkAC1IBAn9BoJACKAIAIgEgAEEHakF4cSICaiEAAkAgAkEAIAAgAU0bDQAgAD8AQRB0SwRAIAAQBEUNAQtBoJACIAA2AgAgAQ8LQdCWAkEwNgIAQX8L0wIBA38CfwJAIAEiA0H/AXEiAgRAIABBA3EEQANAIAAtAAAiAUUNAyABIANB/wFxRg0DIABBAWoiAEEDcQ0ACwsCQCAAKAIAIgFBf3MgAUGBgoQIa3FBgIGChHhxDQAgAkGBgoQIbCECA0AgASACcyIBQX9zIAFBgYKECGtxQYCBgoR4cQ0BIAAoAgQhASAAQQRqIQAgAUGBgoQIayABQX9zcUGAgYKEeHFFDQALCwNAIAAiAS0AACICBEAgAUEBaiEAIAIgA0H/AXFHDQELCyABDAILAkAgACICQQNxBEADQCAALQAARQ0CIABBAWoiAEEDcQ0ACwsDQCAAIgFBBGohACABKAIAIgRBf3MgBEGBgoQIa3FBgIGChHhxRQ0ACwNAIAEiAEEBaiEBIAAtAAANAAsLIAIgACACa2oMAQsgAAsiAEEAIAAtAAAgA0H/AXFGGwsEAEFvC90BAQR/IwBBEGsiAkEAOgAPAkAgAUUNACABQQNxIQQgAUEETwRAIAFBfHEhBUEAIQEDQCACIAAgA2otAAAgAi0AD3I6AA8gAiAAIANBAXJqLQAAIAItAA9yOgAPIAIgACADQQJyai0AACACLQAPcjoADyACIAAgA0EDcmotAAAgAi0AD3I6AA8gA0EEaiEDIAFBBGoiASAFRw0ACwsgBEUNAEEAIQEDQCACIAAgA2otAAAgAi0AD3I6AA8gA0EBaiEDIAFBAWoiASAERw0ACwsgAi0AD0EBa0EIdkEBcQvEAgICfwF+IwBB4AJrIgYkACAGIAQgBRA+GgJAIAAgAksgACACa60gA1RxRQRAIAAgAk8NASACIABrrSADWg0BCyAAIAIgA6cQJCECCyAGQgA3AzggBkIANwMwIAZCADcDKCAGQgA3AyBCICADIANCIFobIghQIgdFBEAgBkFAayACIAinEAsaCyAGQSBqIgUgBSAIQiB8IARBEGoiBEIAIAZB1JACKAIAEQkAGiAGQeAAaiAFQbyQAigCABEBABogB0UEQCAAIAZBQGsgCKcQCxoLIAZBIGpBwAAQByADQiFaBEAgACAIpyIFaiACIAVqIAMgCH0gBEIBIAZB1JACKAIAEQkAGgsgBkEgEAcgBkHgAGoiAiAAIANBwJACKAIAEQAAGiACIAFBxJACKAIAEQEAGiACQYACEAcgBkHgAmokAEEACzIBAn8jAEEgayIDJABBfyEEIAMgAiABEEZFBEAgAEGQkAIgAxA+IQQLIANBIGokACAECyYAIAJBgAJPBEBB7AlBowlB6wBBqwgQAQALIAAgASACQf8BcRA1C40EAQJ/QX8hBAJAIAJBwABLDQAgA0HBAGtBQEkNAAJAIAFBACACG0UEQCADQf8BcSIBQcEAa0H/AXFBvwFNBEAQCQALIABBQGtBAEGlAhAIGiAAQvnC+JuRo7Pw2wA3ADggAELr+obav7X2wR83ADAgAEKf2PnZwpHagpt/NwAoIABC0YWa7/rPlIfRADcAICAAQvHt9Pilp/2npX83ABggAEKr8NP0r+68tzw3ABAgAEK7zqqm2NDrs7t/NwAIIAAgAa1CiJL3lf/M+YTqAIU3AAAMAQsCfyACQf8BcSECIwBBgAFrIgUkAAJAIANB/wFxIgNBwQBrQf8BcUG/AU0NACABRQ0AIAJBwQBrQf8BcUG/AU0NACAAQUBrQQBBpQIQCBogAEL5wvibkaOz8NsANwA4IABC6/qG2r+19sEfNwAwIABCn9j52cKR2oKbfzcAKCAAQtGFmu/6z5SH0QA3ACAgAELx7fT4paf9p6V/NwAYIABCq/DT9K/uvLc8NwAQIABCu86qptjQ67O7fzcACCAAIAOtIAKtQgiGhEKIkveV/8z5hOoAhTcAACACIAVqQQBBgAEgAmtBACACwEEAThsQCBogAEHgAGogBSABIAIQCyIBQYABEAsaIAAgACgA4AJBgAFqNgDgAiABQYABEAcgAUGAAWokAEEADAELEAkACw0BC0EAIQQLIAQL6AIBAn8CQCAAIAFGDQAgASAAIAJqIgRrQQAgAkEBdGtNBEAgACABIAIQCw8LIAAgAXNBA3EhAwJAAkAgACABSQRAIAMEQCAAIQMMAwsgAEEDcUUEQCAAIQMMAgsgACEDA0AgAkUNBCADIAEtAAA6AAAgAUEBaiEBIAJBAWshAiADQQFqIgNBA3ENAAsMAQsCQCADDQAgBEEDcQRAA0AgAkUNBSAAIAJBAWsiAmoiAyABIAJqLQAAOgAAIANBA3ENAAsLIAJBA00NAANAIAAgAkEEayICaiABIAJqKAIANgIAIAJBA0sNAAsLIAJFDQIDQCAAIAJBAWsiAmogASACai0AADoAACACDQALDAILIAJBA00NAANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIAJBBGsiAkEDSw0ACwsgAkUNAANAIAMgAS0AADoAACADQQFqIQMgAUEBaiEBIAJBAWsiAg0ACwsgAAv7FwIQfhB/A0AgAiAVQQN0IhZqIAEgFmopAAAiBEI4hiAEQoD+A4NCKIaEIARCgID8B4NCGIYgBEKAgID4D4NCCIaEhCAEQgiIQoCAgPgPgyAEQhiIQoCA/AeDhCAEQiiIQoD+A4MgBEI4iISEhDcDACAVQQFqIhVBEEcNAAsgAyAAKQMANwMAIAMgACkDODcDOCADIAApAzA3AzAgAyAAKQMoNwMoIAMgACkDIDcDICADIAApAxg3AxggAyAAKQMQNwMQIAMgACkDCDcDCEEAIRYDQCADIAMpAzggAiAWQQN0IgFqIhUpAwAgAykDICIHQjKJIAdCLomFIAdCF4mFfCABQdCJAmopAwB8IAcgAykDMCILIAMpAygiCIWDIAuFfHwiBCADKQMYfCIKNwMYIAMgAykDACIFQiSJIAVCHomFIAVCGYmFIAR8IAMpAxAiCSADKQMIIgaEIAWDIAYgCYOEfCIENwM4IAMgCSACIAFBCHIiFGoiGikDACALIAggCiAHIAiFg4V8IApCMokgCkIuiYUgCkIXiYV8fCAUQdCJAmopAwB8Igt8Igk3AxAgAyAEIAUgBoSDIAUgBoOEIAt8IARCJIkgBEIeiYUgBEIZiYV8Igs3AzAgAyAIIAIgAUEQciIUaiIbKQMAfCAUQdCJAmopAwB8IAcgCSAHIAqFg4V8IAlCMokgCUIuiYUgCUIXiYV8IgwgCyAEIAWEgyAEIAWDhCALQiSJIAtCHomFIAtCGYmFfHwiCDcDKCADIAYgDHwiBjcDCCADIAcgAiABQRhyIhRqIhwpAwB8IBRB0IkCaikDAHwgBiAJIAqFgyAKhXwgBkIyiSAGQi6JhSAGQheJhXwiDCAIIAQgC4SDIAQgC4OEIAhCJIkgCEIeiYUgCEIZiYV8fCIHNwMgIAMgBSAMfCIFNwMAIAMgAiABQSByIhRqIh0pAwAgCnwgFEHQiQJqKQMAfCAFIAYgCYWDIAmFfCAFQjKJIAVCLomFIAVCF4mFfCIMIAcgCCALhIMgCCALg4QgB0IkiSAHQh6JhSAHQhmJhXx8Igo3AxggAyAEIAx8Igw3AzggAyACIAFBKHIiFGoiHikDACAJfCAUQdCJAmopAwB8IAwgBSAGhYMgBoV8IAxCMokgDEIuiYUgDEIXiYV8IgkgCiAHIAiEgyAHIAiDhCAKQiSJIApCHomFIApCGYmFfHwiBDcDECADIAkgC3wiCTcDMCADIAIgAUEwciIUaiIfKQMAIAZ8IBRB0IkCaikDAHwgCSAFIAyFgyAFhXwgCUIyiSAJQi6JhSAJQheJhXwiBiAEIAcgCoSDIAcgCoOEIARCJIkgBEIeiYUgBEIZiYV8fCILNwMIIAMgBiAIfCIGNwMoIAMgAiABQThyIhRqIiApAwAgBXwgFEHQiQJqKQMAfCAGIAkgDIWDIAyFfCAGQjKJIAZCLomFIAZCF4mFfCIFIAsgBCAKhIMgBCAKg4QgC0IkiSALQh6JhSALQhmJhXx8Igg3AwAgAyAFIAd8IgU3AyAgAyACIAFBwAByIhRqIiEpAwAgDHwgFEHQiQJqKQMAfCAFIAYgCYWDIAmFfCAFQjKJIAVCLomFIAVCF4mFfCIMIAggBCALhIMgBCALg4QgCEIkiSAIQh6JhSAIQhmJhXx8Igc3AzggAyAKIAx8Igw3AxggAyACIAFByAByIhRqIiIpAwAgCXwgFEHQiQJqKQMAfCAMIAUgBoWDIAaFfCAMQjKJIAxCLomFIAxCF4mFfCIJIAcgCCALhIMgCCALg4QgB0IkiSAHQh6JhSAHQhmJhXx8Igo3AzAgAyAEIAl8Igk3AxAgAyAGIAIgAUHQAHIiFGoiIykDAHwgFEHQiQJqKQMAfCAJIAUgDIWDIAWFfCAJQjKJIAlCLomFIAlCF4mFfCIGIAogByAIhIMgByAIg4QgCkIkiSAKQh6JhSAKQhmJhXx8IgQ3AyggAyAGIAt8IgY3AwggAyABQdgAciIUQdCJAmopAwAgAiAUaiIUKQMAfCAFfCAGIAkgDIWDIAyFfCAGQjKJIAZCLomFIAZCF4mFfCIFIAQgByAKhIMgByAKg4QgBEIkiSAEQh6JhSAEQhmJhXx8Igs3AyAgAyAFIAh8Igg3AwAgAyABQeAAciIXQdCJAmopAwAgAiAXaiIXKQMAfCAMfCAIIAYgCYWDIAmFfCAIQjKJIAhCLomFIAhCF4mFfCIMIAsgBCAKhIMgBCAKg4QgC0IkiSALQh6JhSALQhmJhXx8IgU3AxggAyAHIAx8Igc3AzggAyABQegAciIYQdCJAmopAwAgAiAYaiIYKQMAfCAJfCAHIAYgCIWDIAaFfCAHQjKJIAdCLomFIAdCF4mFfCIMIAUgBCALhIMgBCALg4QgBUIkiSAFQh6JhSAFQhmJhXx8Igk3AxAgAyAKIAx8Igo3AzAgAyABQfAAciIZQdCJAmopAwAgAiAZaiIZKQMAfCAGfCAKIAcgCIWDIAiFfCAKQjKJIApCLomFIApCF4mFfCIMIAkgBSALhIMgBSALg4QgCUIkiSAJQh6JhSAJQhmJhXx8IgY3AwggAyAEIAx8IgQ3AyggAyABQfgAciIBQdCJAmopAwAgASACaiIBKQMAfCAIfCAEIAcgCoWDIAeFfCAEQjKJIARCLomFIARCF4mFfCIEIAYgBSAJhIMgBSAJg4QgBkIkiSAGQh6JhSAGQhmJhXx8Igg3AwAgAyAEIAt8NwMgIBZBwABGRQRAIAIgFkEQaiIWQQN0aiAVKQMAICIpAwAiByAZKQMAIgRCLYkgBEIDiYUgBEIGiIV8fCAaKQMAIghCP4kgCEI4iYUgCEIHiIV8Igs3AwAgFSAIICMpAwAiCnwgASkDACIIQi2JIAhCA4mFIAhCBoiFfCAbKQMAIgZCP4kgBkI4iYUgBkIHiIV8IgU3A4gBIBUgBiAUKQMAIgl8IAtCLYkgC0IDiYUgC0IGiIV8IBwpAwAiDUI/iSANQjiJhSANQgeIhXwiBjcDkAEgFSANIBcpAwAiDHwgBUItiSAFQgOJhSAFQgaIhXwgHSkDACIOQj+JIA5COImFIA5CB4iFfCINNwOYASAVIA4gGCkDACISfCAGQi2JIAZCA4mFIAZCBoiFfCAeKQMAIg9CP4kgD0I4iYUgD0IHiIV8Ig43A6ABIBUgBCAPfCANQi2JIA1CA4mFIA1CBoiFfCAfKQMAIhBCP4kgEEI4iYUgEEIHiIV8Ig83A6gBIBUgCCAQfCAgKQMAIhFCP4kgEUI4iYUgEUIHiIV8IA5CLYkgDkIDiYUgDkIGiIV8IhA3A7ABIBUgISkDACITIAUgB0I/iSAHQjiJhSAHQgeIhXx8IBBCLYkgEEIDiYUgEEIGiIV8IgU3A8ABIBUgCyARfCATQj+JIBNCOImFIBNCB4iFfCAPQi2JIA9CA4mFIA9CBoiFfCIRNwO4ASAVIAogCUI/iSAJQjiJhSAJQgeIhXwgDXwgBUItiSAFQgOJhSAFQgaIhXwiDTcD0AEgFSAHIApCP4kgCkI4iYUgCkIHiIV8IAZ8IBFCLYkgEUIDiYUgEUIGiIV8Igc3A8gBIBUgDCASQj+JIBJCOImFIBJCB4iFfCAPfCANQi2JIA1CA4mFIA1CBoiFfCIKNwPgASAVIAkgDEI/iSAMQjiJhSAMQgeIhXwgDnwgB0ItiSAHQgOJhSAHQgaIhXwiBzcD2AEgFSAEIAhCP4kgCEI4iYUgCEIHiIV8IBF8IApCLYkgCkIDiYUgCkIGiIV8NwPwASAVIBIgBEI/iSAEQjiJhSAEQgeIhXwgEHwgB0ItiSAHQgOJhSAHQgaIhXwiBDcD6AEgFSAIIAtCP4kgC0I4iYUgC0IHiIV8IAV8IARCLYkgBEIDiYUgBEIGiIV8NwP4AQwBCwsgACAAKQMAIAh8NwMAIAAgACkDCCADKQMIfDcDCCAAIAApAxAgAykDEHw3AxAgACAAKQMYIAMpAxh8NwMYIAAgACkDICADKQMgfDcDICAAIAApAyggAykDKHw3AyggACAAKQMwIAMpAzB8NwMwIAAgACkDOCADKQM4fDcDOAsEAEEYC+cEARJ/QbLaiMsHIQNB7siBmQMhBEHl8MGLBiEFQfTKgdkGIQ4gASgADCEGIAEoAAghDyABKAAEIQcgAigAHCELIAIoABghDCACKAAUIRAgAigAECENIAIoAAwhCCACKAAIIQkgAigABCEKIAEoAAAhASACKAAAIQIDQCACIAEgAiAFaiIFc0EQdyIBIA1qIg1zQQx3IgIgBWoiBSABc0EIdyIBIA1qIg0gAnNBB3ciAiAIIAYgCCAOaiIOc0EQdyIGIAtqIgtzQQx3IgggDmoiEWoiDiAJIA8gAyAJaiIDc0EQdyIPIAxqIgxzQQx3IgkgA2oiAyAPc0EIdyISc0EQdyIPIAogByAEIApqIgRzQRB3IgcgEGoiEHNBDHciCiAEaiIEIAdzQQh3IgcgEGoiE2oiECACc0EMdyICIA5qIg4gD3NBCHciDyAQaiIQIAJzQQd3IQIgDSAHIAMgBiARc0EIdyIGIAtqIgsgCHNBB3ciCGoiA3NBEHciB2oiDSAIc0EMdyIIIANqIgMgB3NBCHciByANaiINIAhzQQd3IQggCyABIAQgDCASaiIMIAlzQQd3IglqIgRzQRB3IgFqIgsgCXNBDHciCSAEaiIEIAFzQQh3IgEgC2oiCyAJc0EHdyEJIAwgBiAFIAogE3NBB3ciCmoiBXNBEHciBmoiDCAKc0EMdyIKIAVqIgUgBnNBCHciBiAMaiIMIApzQQd3IQogFEEBaiIUQQpHDQALIAAgBTYAACAAIAY2ABwgACAPNgAYIAAgBzYAFCAAIAE2ABAgACAONgAMIAAgAzYACCAAIAQ2AAQLiy4BJX4gACABKQAoIiAgASkAaCIYIAEpAEAiGiABKQAgIhkgGCABKQB4IhwgASkAWCIhIAEpAFAiGyAgIAApABAgGSAAKQAwIh18fCIVfCAdIAApAFAgFYVC6/qG2r+19sEfhUIgiSIVQqvw0/Sv7ry3PHwiHoVCKIkiHXwiFiAVhUIwiSIGIB58IgQgHYVCAYkiFyABKQAYIh0gACkACCIlIAEpABAiFSAAKQAoIh58fCIifCAAKQBIICKFQp/Y+dnCkdqCm3+FQiCJIgNCxbHV2aevlMzEAH0iBSAehUIoiSICfCIHfHwiI3wgFyAjIAEpAAgiHiAAKQAAIiYgASkAACIiIAApACAiJHx8Ih98ICQgAEFAaykAACAfhULRhZrv+s+Uh9EAhUIgiSIfQoiS853/zPmE6gB8IgiFQiiJIgt8IgwgH4VCMIkiCYVCIIkiHyABKQA4IiMgACkAGCABKQAwIiQgACkAOCIKfHwiDXwgCiAAKQBYIA2FQvnC+JuRo7Pw2wCFQiCJIg1Cj5KLh9rYgtjaAH0iDoVCKIkiCnwiECANhUIwiSINIA58Ig58IhGFQiiJIhd8IhIgH4VCMIkiEyARfCIRIBeFQgGJIhQgASkASCIXfCAYIAEpAGAiHyAWIAogDoVCAYkiCnx8IhZ8IBYgAyAHhUIwiSIDhUIgiSIHIAggCXwiCHwiCSAKhUIoiSIKfCIOfCIPfCAPIBwgASkAcCIWIBAgCCALhUIBiSIIfHwiC3wgBiALhUIgiSIGIAMgBXwiA3wiBSAIhUIoiSIIfCILIAaFQjCJIgaFQiCJIhAgFyAaIAIgA4VCAYkiAyAMfHwiAnwgAyAEIAIgDYVCIIkiAnwiBIVCKIkiA3wiDCAChUIwiSICIAR8IgR8Ig0gFIVCKIkiFHwiDyAhfCALIBggByAOhUIwiSIHIAl8IgkgCoVCAYkiCnx8IgsgJHwgCiACIAuFQiCJIgIgEXwiC4VCKIkiCnwiDiAChUIwiSICIAt8IgsgCoVCAYkiCnwiESAjfCAKIAUgBnwiBiAIhUIBiSIFIAwgFnx8IgggG3wgBSAIIBOFQiCJIgggCXwiDIVCKIkiBXwiCSAIhUIwiSIIIAx8IgwgESAaIBkgAyAEhUIBiSIEfCASfCIDfCAEIAYgAyAHhUIgiSIDfCIGhUIoiSIEfCIHIAOFQjCJIgOFQiCJIhF8IhKFQiiJIgp8IhMgEYVCMIkiESASfCISIAqFQgGJIgogHHwgHSAgIAUgDIVCAYkiBSAOfHwiDHwgBSAMIA8gEIVCMIkiDoVCIIkiDCADIAZ8IgZ8IgOFQiiJIgV8IhB8Ig8gBCAGhUIBiSIGIB58IAl8IgQgH3wgBiACIASFQiCJIgQgDSAOfCICfCIJhUIoiSIGfCINIASFQjCJIgSFQiCJIg4gFSACIBSFQgGJIgIgB3wgInwiB3wgAiAHIAiFQiCJIgcgC3wiCIVCKIkiAnwiCyAHhUIwiSIHIAh8Igh8IhQgCoVCKIkiCiAPfHwiDyAaIAUgAyAMIBCFQjCJIgV8IgOFQgGJIgwgDSAhfHwiDXwgDCAHIA2FQiCJIgcgEnwiDIVCKIkiDXwiECAHhUIwiSIHIAx8IgwgDYVCAYkiDXwgF3wiEnwgDSASICAgAiAIhUIBiSICIBN8fCIIIBV8IAIgBSAIhUIgiSIFIAQgCXwiBHwiCIVCKIkiAnwiCSAFhUIwiSIFhUIgiSISIAQgBoVCAYkiBiAffCALfCIEICJ8IAYgAyAEIBGFQiCJIgR8IgOFQiiJIgZ8IgsgBIVCMIkiBCADfCIDfCIRhUIoiSINfCITIB4gCSAKIA4gD4VCMIkiCiAUfCIOhUIBiSIUfCAjfCIJfCAEIAmFQiCJIgQgDHwiDCAUhUIoiSIJfCIUIASFQjCJIgQgDHwiDCAJhUIBiSIJfCAhfCIPIBZ8IAkgDyAWIBAgAyAGhUIBiSIGfCAbfCIDfCAGIAMgCoVCIIkiBiAFIAh8IgN8IgWFQiiJIgh8IgkgBoVCMIkiBoVCIIkiCiAOIAcgAiADhUIBiSIDIAsgHXx8IgKFQiCJIgd8IgsgA4VCKIkiAyACfCAkfCICIAeFQjCJIgcgC3wiC3wiDoVCKIkiEHwiDyANIBEgEiAThUIwiSINfCIRhUIBiSISIAkgI3x8IgkgF3wgByAJhUIgiSIHIAx8IgwgEoVCKIkiCXwiEiAHhUIwiSIHIAx8IgwgCYVCAYkiCXwgHHwiE3wgCSATIA0gGCADIAuFQgGJIgN8IBR8IguFQiCJIg0gBSAGfCIGfCIFIAOFQiiJIgMgC3wgH3wiCyANhUIwiSINhUIgiSITIB4gBiAIhUIBiSIGIB18IAJ8IgJ8IAYgESACIASFQiCJIgR8IgKFQiiJIgZ8IgggBIVCMIkiBCACfCICfCIRhUIoiSIJfCIUIAwgBCAKIA+FQjCJIgogDnwiDiAQhUIBiSIQIAsgGXx8IguFQiCJIgR8IgwgEIVCKIkiECALfCAifCILIASFQjCJIgQgDHwiDCAQhUIBiSIQfCAbfCIPIBx8IBAgDyASIAIgBoVCAYkiBnwgFXwiAiAkfCAGIAIgCoVCIIkiAiAFIA18IgV8IgqFQiiJIgZ8Ig0gAoVCMIkiAoVCIIkiEiAgIAMgBYVCAYkiAyAIfHwiBSAbfCADIAUgB4VCIIkiBSAOfCIHhUIoiSIDfCIIIAWFQjCJIgUgB3wiB3wiDoVCKIkiEHwiDyAJIBMgFIVCMIkiCSARfCIRhUIBiSITIA0gF3x8Ig0gInwgBSANhUIgiSIFIAx8IgwgE4VCKIkiDXwiEyAFhUIwiSIFIAx8IgwgDYVCAYkiDXwgHXwiFHwgDSAUIAMgB4VCAYkiAyAVfCALfCIHIBl8IAMgByAJhUIgiSIHIAIgCnwiAnwiC4VCKIkiA3wiCSAHhUIwiSIHhUIgiSIKICAgAiAGhUIBiSIGfCAIfCICICN8IAYgESACIASFQiCJIgR8IgKFQiiJIgZ8IgggBIVCMIkiBCACfCICfCINhUIoiSIRfCIUIAqFQjCJIgogAyAHIAt8IgOFQgGJIgcgCCAhfHwiCCAffCAHIA8gEoVCMIkiCyAOfCIOIAUgCIVCIIkiBXwiCIVCKIkiB3wiEiAFhUIwiSIFIAh8IgggB4VCAYkiByAifCAJIA4gEIVCAYkiCXwgJHwiDiAafCAJIAQgDoVCIIkiBCAMfCIMhUIoiSIJfCIOfCIQhUIgiSIPIB4gEyACIAaFQgGJIgZ8IBZ8IgJ8IAYgAyACIAuFQiCJIgZ8IgOFQiiJIgJ8IgsgBoVCMIkiBiADfCIDfCITIAeFQiiJIgcgEHwgIXwiECAPhUIwiSIPIBN8IhMgB4VCAYkiByACIAOFQgGJIgMgEnwgJHwiAiAbfCADIAogDXwiCiAEIA6FQjCJIgQgAoVCIIkiAnwiDYVCKIkiA3wiDnwgI3wiEnwgByASIAogEYVCAYkiCiALIBV8fCILIB98IAogBSALhUIgiSIFIAQgDHwiBHwiC4VCKIkiDHwiCiAFhUIwiSIFhUIgiSIRIAQgCYVCAYkiBCAafCAUfCIJIB18IAQgBiAJhUIgiSIGIAh8IgiFQiiJIgR8IgkgBoVCMIkiBiAIfCIIfCIShUIoiSIHfCIUIBGFQjCJIhEgEnwiEiAHhUIBiSIHIAogAyACIA6FQjCJIgMgDXwiAoVCAYkiDXwgGXwiCiAYfCAGIAqFQiCJIgYgE3wiCiANhUIoiSINfCIOIAaFQjCJIgYgCnwiCiACIA8gBSALfCIFIAyFQgGJIgIgCSAefHwiC4VCIIkiDHwiCSAChUIoiSICIAt8IBd8IgsgDIVCMIkiDCAQIAQgCIVCAYkiBHwgHHwiCCAWfCAEIAUgAyAIhUIgiSIDfCIFhUIoiSIEfCIIIAcgFnx8IgeFQiCJIhB8IhOFQiiJIg8gEyAQIA8gGHwgB3wiB4VCMIkiEHwiE4VCAYkiDyASIAYgGSAEIAMgCIVCMIkiBCAFfCIDhUIBiSIFfCALfCIIhUIgiSIGfCILIAYgBSALhUIoiSIFIBt8IAh8IgiFQjCJIgZ8IgsgAiAJIAx8IgyFQgGJIgIgDiAffHwiCSARhUIgiSIOIAMgDnwiAyAChUIoiSICICB8IAl8IgmFQjCJIg4gCiANhUIBiSIKIAwgBCAKIB58IBR8IgqFQiCJIgR8IgyFQiiJIg0gHHwgCnwiCiAPICR8fCIRhUIgiSISfCIUhUIoiSIPIBQgEiAPIB18IBF8IhGFQjCJIhJ8IhSFQgGJIg8gEyAGIAkgIiANIAwgBCAKhUIwiSIEfCIMhUIBiSIJfHwiCoVCIIkiBnwiDSAGIAkgDYVCKIkiCSAjfCAKfCIKhUIwiSIGfCINIBAgCCAaIAIgAyAOfCIDhUIBiSICfHwiCIVCIIkiDiAIIAIgDCAOfCIIhUIoiSICICF8fCIMhUIwiSIOIAUgC4VCAYkiBSADIAQgBSAXfCAHfCIFhUIgiSIEfCIDhUIoiSIHIBV8IAV8IgUgDyAffHwiC4VCIIkiEHwiE4VCKIkiDyATIBAgDyAefCALfCILhUIwiSIQfCIThUIBiSIPIBQgBiAdIAcgAyAEIAWFQjCJIgR8IgOFQgGJIgV8IAx8IgeFQiCJIgZ8IgwgBiAFIAyFQiiJIgUgF3wgB3wiB4VCMIkiBnwiDCASIAIgCCAOfCIIhUIBiSICIBh8IAp8IgqFQiCJIg4gAiADIA58IgOFQiiJIgIgIXwgCnwiCoVCMIkiDiAJIA2FQgGJIgkgCCAEIAkgI3wgEXwiCYVCIIkiBHwiCIVCKIkiDSAWfCAJfCIJIA8gHHx8IhGFQiCJIhJ8IhSFQiiJIg8gFCASIA8gGXwgEXwiEYVCMIkiEnwiFIVCAYkiDyATIAYgICANIAggBCAJhUIwiSIEfCIIhUIBiSIJfCAKfCIKhUIgiSIGfCINIAYgCSANhUIoiSIJICJ8IAp8IgqFQjCJIgZ8Ig0gECAVIAIgAyAOfCIDhUIBiSICfCAHfCIHhUIgiSIOIAcgAiAIIA58IgeFQiiJIgIgG3x8IgiFQjCJIg4gBSAMhUIBiSIFIAMgBCAFIBp8IAt8IgWFQiCJIgR8IgOFQiiJIgsgJHwgBXwiBSAPICF8fCIMhUIgiSIQfCIThUIoiSIPIBMgECAPIB18IAx8IgyFQjCJIhB8IhOFQgGJIg8gFCAGICIgCyADIAQgBYVCMIkiBHwiA4VCAYkiBXwgCHwiCIVCIIkiBnwiCyAGIAUgC4VCKIkiBSAafCAIfCIIhUIwiSIGfCILIBIgAiAHIA58IgeFQgGJIgIgJHwgCnwiCoVCIIkiDiACIAMgDnwiA4VCKIkiAiAcfCAKfCIKhUIwiSIOIAkgDYVCAYkiCSAHIAQgCSAWfCARfCIJhUIgiSIEfCIHhUIoiSINIBd8IAl8IgkgDyAYfHwiEYVCIIkiEnwiFIVCKIkiDyAUIBIgDyAjfCARfCIRhUIwiSISfCIUhUIBiSIPIBMgBiAfIA0gByAEIAmFQjCJIgR8IgeFQgGJIgl8IAp8IgqFQiCJIgZ8Ig0gBiAJIA2FQiiJIgkgFXwgCnwiCoVCMIkiBnwiDSAQIBsgAiADIA58IgOFQgGJIgJ8IAh8IgiFQiCJIg4gAiAHIA58IgeFQiiJIgIgIHwgCHwiCIVCMIkiDiAFIAuFQgGJIgUgAyAEIAUgHnwgDHwiBYVCIIkiBHwiA4VCKIkiCyAZfCAFfCIFIA8gI3x8IgyFQiCJIhB8IhOFQiiJIg8gEyAQIA8gJHwgDHwiDIVCMIkiEHwiE4VCAYkiDyAUIAYgHiALIAMgBCAFhUIwiSIEfCIDhUIBiSIFfCAIfCIIhUIgiSIGfCILIAYgBSALhUIoiSIFICB8IAh8IgiFQjCJIgZ8IgsgEiACIAcgDnwiB4VCAYkiAiAbfCAKfCIKhUIgiSIOIAIgAyAOfCIDhUIoiSICIBV8IAp8IgqFQjCJIg4gCSANhUIBiSIJIAcgBCAJIBp8IBF8IgmFQiCJIgR8IgeFQiiJIg0gGXwgCXwiCSAPIBd8fCIRhUIgiSISfCIUhUIoiSIPIBQgEiAPIBZ8IBF8IhGFQjCJIhJ8IhSFQgGJIg8gEyAGIBwgDSAHIAQgCYVCMIkiBHwiB4VCAYkiCXwgCnwiCoVCIIkiBnwiDSAGIAkgDYVCKIkiCSAhfCAKfCIKhUIwiSIGfCINIBAgGCACIAMgDnwiA4VCAYkiAnwgCHwiCIVCIIkiDiACIAcgDnwiB4VCKIkiAiAifCAIfCIIhUIwiSIOIAUgC4VCAYkiBSADIAQgBSAdfCAMfCIFhUIgiSIEfCIDhUIoiSILIB98IAV8IgUgDyAZfHwiDIVCIIkiEHwiE4VCKIkiDyATIBAgDyAgfCAMfCIMhUIwiSIQfCIThUIBiSIPIBQgBiAkIAsgAyAEIAWFQjCJIgR8IgOFQgGJIgV8IAh8IgiFQiCJIgZ8IgsgBiAFIAuFQiiJIgUgI3wgCHwiCIVCMIkiBnwiCyASIAIgByAOfCIHhUIBiSICICJ8IAp8IgqFQiCJIg4gAiADIA58IgOFQiiJIgIgHnwgCnwiCoVCMIkiDiAJIA2FQgGJIgkgByAEIAkgFXwgEXwiCYVCIIkiBHwiB4VCKIkiDSAdfCAJfCIJIA8gG3x8IhGFQiCJIhJ8IhSFQiiJIg8gFCASIA8gIXwgEXwiEYVCMIkiEnwiFIVCAYkiDyATIAYgGiANIAcgBCAJhUIwiSIEfCIHhUIBiSIJfCAKfCIKhUIgiSIGfCINIAYgCSANhUIoiSIJIBd8IAp8IgqFQjCJIgZ8Ig0gECAWIAIgAyAOfCIDhUIBiSICfCAIfCIIhUIgiSIOIAIgByAOfCIHhUIoiSICIBx8IAh8IgiFQjCJIg4gBSALhUIBiSIFIAMgBCAFIB98IAx8IgWFQiCJIgR8IgOFQiiJIgsgGHwgBXwiBSAPIBd8fCIXhUIgiSIMfCIQhUIoiSITIBAgDCATIBx8IBd8IhyFQjCJIhd8IgyFQgGJIhAgFCAGIBggCyADIAQgBYVCMIkiBHwiA4VCAYkiBXwgCHwiGIVCIIkiBnwiCCAGIBggJCAFIAiFQiiJIiR8fCIYhUIwiSIGfCIFIBIgFiACIAcgDnwiB4VCAYkiAnwgCnwiFoVCIIkiCCAWIBsgAiADIAh8IhaFQiiJIgN8fCIbhUIwiSICIBogCSANhUIBiSIIIAcgBCAIIBl8IBF8IhmFQiCJIgR8IgeFQiiJIgh8IBl8IhogECAifHwiGYVCIIkiInwiC4VCKIkiCSAVfCAZfCIZICWFIAcgBCAahUIwiSIafCIVIBcgGCAgIAMgAiAWfCIYhUIBiSIWfHwiIIVCIIkiF3wiBCAXICAgHSAEIBaFQiiJIh18fCIghUIwiSIXfCIWhTcACCAAIBggGiAcICEgBSAkhUIBiSIcfHwiIYVCIIkiGnwiGCAaICMgGCAchUIoiSIYfCAhfCIchUIwiSIafCIhICYgHyAIIBWFQgGJIhUgDCAGIBUgHnwgG3wiG4VCIIkiFXwiHoVCKIkiI3wgG3wiG4WFNwAAIAAgHiAVIBuFQjCJIht8IhUgHCAAKQAQhYU3ABAgACAZICKFQjCJIhkgACkAICAWIB2FQgGJhYU3ACAgACALIBl8IhkgICAAKQAYhYU3ABggACAAKQAoIBUgI4VCAYmFIBqFNwAoIAAgACkAOCAYICGFQgGJhSAbhTcAOCAAIAApADAgCSAZhUIBiYUgF4U3ADALvQUBH39B5fDBiwYhBCACKAAAIhUhBSACKAAEIhYhByACKAAIIhchCCACKAAMIhghCUHuyIGZAyEOIAEoAAAiGSEKIAEoAAQiGiELIAEoAAgiGyENIAEoAAwiHCEQQbLaiMsHIQEgAigAECIdIQNB9MqB2QYhBiACKAAcIh4hESACKAAYIh8hDyACKAAUIiAhAgNAIA8gECAFIA5qQQd3cyIMIA5qQQl3cyISIAIgBGpBB3cgCXMiCSAEakEJdyANcyITIAlqQQ13IAJzIiEgAyAGakEHdyAIcyIIIAZqQQl3IAtzIgsgCGpBDXcgA3MiDSALakESdyAGcyIGIBEgASAKakEHd3MiA2pBB3dzIgIgBmpBCXdzIg8gAmpBDXcgA3MiESAPakESdyAGcyEGIAMgASADakEJdyAHcyIHakENdyAKcyIKIAdqQRJ3IAFzIgEgDGpBB3cgDXMiAyABakEJdyATcyINIANqQQ13IAxzIhAgDWpBEncgAXMhASASIAwgEmpBDXcgBXMiDGpBEncgDnMiBSAJakEHdyAKcyIKIAVqQQl3IAtzIgsgCmpBDXcgCXMiCSALakESdyAFcyEOIBMgIWpBEncgBHMiBCAIakEHdyAMcyIFIARqQQl3IAdzIgcgBWpBDXcgCHMiCCAHakESdyAEcyEEIBRBEkkhDCAUQQJqIRQgDA0ACyAAIAZB9MqB2QZqNgA8IAAgESAeajYAOCAAIA8gH2o2ADQgACACICBqNgAwIAAgAyAdajYALCAAIAFBstqIywdqNgAoIAAgECAcajYAJCAAIA0gG2o2ACAgACALIBpqNgAcIAAgCiAZajYAGCAAIA5B7siBmQNqNgAUIAAgCSAYajYAECAAIAggF2o2AAwgACAHIBZqNgAIIAAgBSAVajYABCAAIARB5fDBiwZqNgAAC8QHAgp/BH4jAEHgA2siAiQAA0AgAkGgAmoiBSADQQF0aiIGIAEgA2otAAAiCEEEdjoAASAGIAhBD3E6AAAgA0EBciIGQQF0IAVqIgggASAGai0AACIGQQR2OgABIAggBkEPcToAACADQQJqIgNBIEcNAAtBACEBA0AgAkGgAmogBGoiAyADLQAAIAFqIgEgAUEIaiIBQfABcWs6AAAgAyADLQABIAHAQQR1aiIBIAFBCGoiAUHwAXFrOgABIAMgAy0AAiABwEEEdWoiASABQQhqIgFB8AFxazoAAiABwEEEdSEBIARBA2oiBEE/Rw0ACyACIAItAN8CIAFqOgDfAiAAQgA3AiAgAEIANwIYIABCADcCECAAQgA3AgggAEIANwIAIABCADcCLCAAQShqIghBATYCACAAQgA3AjQgAEIANwI8IABCADcCRCAAQoCAgIAQNwJMIABB1ABqQQBBzAAQCBogAEH4AGohCiAAQdAAaiELIAJB0AFqIQEgAkGoAWohBiACQfgBaiEEQQEhAwNAIAJBCGoiByADQQF2IAJBoAJqIANqLAAAEEcgAkGAAWoiBSAAIAcQOCAAIAUgBBAGIAggBiABEAYgCyABIAQQBiAKIAUgBhAGIANBPkkhByADQQJqIQMgBw0ACyAAKQIIIQwgACkCECENIAApAhghDiAAKQIAIQ8gAiAAKQIgNwOIAyACIA43A4ADIAIgDTcD+AIgAiAMNwPwAiACIA83A+gCIAApAighDCAAKQIwIQ0gACkCOCEOIABBQGspAgAhDyACIAApAkg3A7ADIAIgDzcDqAMgAiAONwOgAyACIA03A5gDIAIgDDcDkAMgACkCUCEMIAApAlghDSAAKQJgIQ4gACkCaCEPIAIgACkCcDcD2AMgAiAPNwPQAyACIA43A8gDIAIgDTcDwAMgAiAMNwO4AyACQYABaiIFIAJB6AJqIgkQFSAJIAUgBBAGIAJBkANqIgMgBiABEAYgAkG4A2oiByABIAQQBiAFIAkQFSAJIAUgBBAGIAMgBiABEAYgByABIAQQBiAFIAkQFSAJIAUgBBAGIAMgBiABEAYgByABIAQQBiAFIAkQFSAAIAUgBBAGIAggBiABEAYgCyABIAQQBiAKIAUgBhAGQQAhAwNAIAJBCGoiByADQQF2IAJBoAJqIANqLAAAEEcgAkGAAWoiBSAAIAcQOCAAIAUgBBAGIAggBiABEAYgCyABIAQQBiAKIAUgBhAGIANBPkkhByADQQJqIQMgBw0ACyACQeADaiQAC2IBA38jAEGwAWsiAiQAIAJB4ABqIgMgAUHQAGoQLCACQTBqIgQgASADEAYgAiABQShqIAMQBiAAIAIQEiACQZABaiAEEBIgACAALQAfIAItAJABQQd0czoAHyACQbABaiQAC8oIAQN/IwBBwAFrIgIkACACQZABaiIEIAEQBSACQeAAaiIDIAQQBSADIAMQBSADIAEgAxAGIAQgBCADEAYgAkEwaiIBIAQQBSADIAMgARAGIAEgAxAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAMgASADEAYgASADEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABIAMQBiACIAEQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSABIAIgARAGIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAEgARAFIAMgASADEAYgASADEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABEAUgASABIAMQBiACIAEQBUEBIQEDQCACIAIQBSABQQFqIgFB5ABHDQALIAJBMGoiASACIAEQBiABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSABIAEQBSACQeAAaiIDIAEgAxAGIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAMgAxAFIAAgAyACQZABahAGIAJBwAFqJAAL7wMBAX8jAEEQayICIAA2AgwgAiABNgIIIAJBADYCBCACIAIoAgQgAigCDC0AACACKAIILQAAc3I2AgQgAiACKAIEIAIoAgwtAAEgAigCCC0AAXNyNgIEIAIgAigCBCACKAIMLQACIAIoAggtAAJzcjYCBCACIAIoAgQgAigCDC0AAyACKAIILQADc3I2AgQgAiACKAIEIAIoAgwtAAQgAigCCC0ABHNyNgIEIAIgAigCBCACKAIMLQAFIAIoAggtAAVzcjYCBCACIAIoAgQgAigCDC0ABiACKAIILQAGc3I2AgQgAiACKAIEIAIoAgwtAAcgAigCCC0AB3NyNgIEIAIgAigCBCACKAIMLQAIIAIoAggtAAhzcjYCBCACIAIoAgQgAigCDC0ACSACKAIILQAJc3I2AgQgAiACKAIEIAIoAgwtAAogAigCCC0ACnNyNgIEIAIgAigCBCACKAIMLQALIAIoAggtAAtzcjYCBCACIAIoAgQgAigCDC0ADCACKAIILQAMc3I2AgQgAiACKAIEIAIoAgwtAA0gAigCCC0ADXNyNgIEIAIgAigCBCACKAIMLQAOIAIoAggtAA5zcjYCBCACIAIoAgQgAigCDC0ADyACKAIILQAPc3I2AgQgAigCBEEBa0EIdkEBcUEBawsEAEEAC6IJATF/IwBBQGohCSAAKAI8IR0gACgCOCEeIAAoAjQhEiAAKAIwIRMgACgCLCEfIAAoAighICAAKAIkISEgACgCICEiIAAoAhwhIyAAKAIYISQgACgCFCElIAAoAhAhJiAAKAIMIScgACgCCCEoIAAoAgQhKSAAKAIAISoDQAJAIANCP1YEQCACIQUMAQsgCUIANwM4IAlCADcDMCAJQgA3AyggCUIANwMgIAlCADcDGCAJQgA3AxAgCUIANwMIIAlCADcDAEEAIQQgA0IAUgRAA0AgBCAJaiABIARqLQAAOgAAIAMgBEEBaiIErVYNAAsLIAkiBSEBIAIhKwtBFCEWICohCCApIQogKCEOICchFCAmIQQgJSECICQhBiAjIQcgIiELICEhDyAgIQwgHSEQIB4hFyASIRggEyENIB8hEQNAIAQgBCAIaiIEIA1zQRB3IgggC2oiC3NBDHciDSAEaiIVIAhzQQh3IgggC2oiCyANc0EHdyIEIAcgByAUaiIHIBBzQRB3IhAgEWoiDXNBDHciESAHaiIHaiIUIAYgBiAOaiIGIBdzQRB3Ig4gDGoiDHNBDHciGSAGaiIGIA5zQQh3IhpzQRB3Ig4gAiACIApqIgIgGHNBEHciCiAPaiIPc0EMdyIbIAJqIgIgCnNBCHciCiAPaiIcaiIPIARzQQx3IgQgFGoiFCAOc0EIdyIXIA9qIg8gBHNBB3chBCALIAogBiAHIBBzQQh3IhAgDWoiBiARc0EHdyIHaiIKc0EQdyILaiINIAdzQQx3IgcgCmoiDiALc0EIdyIYIA1qIgsgB3NBB3chByAGIAggAiAMIBpqIgIgGXNBB3ciBmoiCHNBEHciDGoiESAGc0EMdyIGIAhqIgogDHNBCHciDSARaiIRIAZzQQd3IQYgAiAbIBxzQQd3IgIgFWoiCCAQc0EQdyIMaiIVIAJzQQx3IgIgCGoiCCAMc0EIdyIQIBVqIgwgAnNBB3chAiAWQQJrIhYNAAsgASgABCEWIAEoAAghFSABKAAMIRkgASgAECEaIAEoABQhGyABKAAYIRwgASgAHCEsIAEoACAhLSABKAAkIS4gASgAKCEvIAEoACwhMCABKAAwITEgASgANCEyIAEoADghMyABKAA8ITQgBSABKAAAIAggKmpzNgAAIAUgNCAQIB1qczYAPCAFIDMgFyAeanM2ADggBSAyIBIgGGpzNgA0IAUgMSANIBNqczYAMCAFIDAgESAfanM2ACwgBSAvIAwgIGpzNgAoIAUgLiAPICFqczYAJCAFIC0gCyAianM2ACAgBSAsIAcgI2pzNgAcIAUgHCAGICRqczYAGCAFIBsgAiAlanM2ABQgBSAaIAQgJmpzNgAQIAUgGSAUICdqczYADCAFIBUgDiAoanM2AAggBSAWIAogKWpzNgAEIBIgE0EBaiITRWohEiADQsAAWARAAkAgA0I/Vg0AIAOnIgFFDQBBACEEA0AgBCAraiAEIAVqLQAAOgAAIARBAWoiBCABSQ0ACwsgACASNgI0IAAgEzYCMAUgAUFAayEBIAVBQGshAiADQkB8IQMMAQsLC8QCAgJ/AX4jAEHgAGsiBiQAIAYgBCAFED4aIAZBIGoiB0IgIARBEGoiBSAGQdCQAigCABEMABpBfyEEAkACQCACIAEgAyAHQbiQAigCABESAA0AQQAhBCAARQ0BAkAgACABSSABIABrrSADVHFFBEAgACABTQ0BIAAgAWutIANaDQELIAAgASADpxAkIQELAkBCICADIANCIFobIghQBEAgBkEgaiICIAIgCEIgfCAFQgAgBkHUkAIoAgARCQAaDAELIAZBQGsgASAIpyICEAshBCAGQSBqIgcgByAIQiB8IAVCACAGQdSQAigCABEJABogACAEIAIQCxoLIAZBIGpBwAAQB0EAIQQgA0IhVA0AIAAgCKciAmogASACaiADIAh9IAVCASAGQdSQAigCABEJABoLIAZBIBAHCyAGQeAAaiQAIAQL4ScCJ38DfiMAQdAEayIPJABBfyELIABBIGohCUEgIQVBASEMA0AgBUEBayIHQfAUai0AACIKIAcgCWotAAAiB3NBAWtBCHUgDHEiCCAJIAVBAmsiBWotAAAiDSAFQfAUai0AACIOa0EIdXEgByAKa0EIdiAMcSAGckH/AXFyIQYgDSAOc0EBa0EIdSAIcSEMIAUNAAsCQCAGQf8BcUUNACAAEDcNACADLQAfQX9zQf8AcSADLQABIAMtAAIgAy0AAyADLQAEIAMtAAUgAy0ABiADLQAHIAMtAAggAy0ACSADLQAKIAMtAAsgAy0ADCADLQANIAMtAA4gAy0ADyADLQAQIAMtABEgAy0AEiADLQATIAMtABQgAy0AFSADLQAWIAMtABcgAy0AGCADLQAZIAMtABogAy0AGyADLQAcIAMtAB4gAy0AHXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxcXFxQf8Bc3JBAWtB7AEgAy0AAGtxQX9zQQh2QQFxRQ0AIAMQNw0AIA9BgAFqIAMQSQ0AIA9BgANqIgUQGSAEBEAgBUHQjwJCIhAMGgsgBSAAQiAQDBogBSADQiAQDBogBSABIAIQDBogBSAPQcACaiIBEBMgARA2IA9BCGohDCABIQQgD0GAAWohC0EAIQNBACEBIwBB4BFrIgUkAANAIAVB4A9qIgYgA2ogBCADQQN2aiIHLQAAIANBBnF2QQFxOgAAIAYgA0EBciIKaiAHLQAAIApBB3F2QQFxOgAAIANBAmoiA0GAAkcNAAsDQCABIgRBAWohAQJAIAQgBUHgD2pqIgYtAABFDQAgBEH+AUsNAAJAIAVB4A9qIAFqIgMsAAAiB0UNACAHQQF0IgcgBiwAACIKaiIIQQ9MBEAgBiAIOgAAIANBADoAAAwBCyAKIAdrIgNBcUgNASAGIAM6AAAgASEDA0AgBUHgD2ogA2oiBy0AAEUEQCAHQQE6AAAMAgsgB0EAOgAAIANB/wFJIQcgA0EBaiEDIAcNAAsLIARB/QFLDQACQCAEQQJqIgMgBUHgD2pqIgcsAAAiCkUNACAKQQJ0IgogBiwAACIIaiINQRBOBEAgCCAKayIHQXFIDQIgBiAHOgAAA0AgBUHgD2ogA2oiBy0AAARAIAdBADoAACADQf8BSSEHIANBAWohAyAHDQEMAwsLIAdBAToAAAwBCyAGIA06AAAgB0EAOgAACyAEQfwBSw0AAkAgBEEDaiIDIAVB4A9qaiIHLAAAIgpFDQAgCkEDdCIKIAYsAAAiCGoiDUEQTgRAIAggCmsiB0FxSA0CIAYgBzoAAANAIAVB4A9qIANqIgctAAAEQCAHQQA6AAAgA0H/AUkhByADQQFqIQMgBw0BDAMLCyAHQQE6AAAMAQsgBiANOgAAIAdBADoAAAsgBEH7AUsNAAJAIARBBGoiAyAFQeAPamoiBywAACIKRQ0AIApBBHQiCiAGLAAAIghqIg1BEE4EQCAIIAprIgdBcUgNAiAGIAc6AAADQCAFQeAPaiADaiIHLQAABEAgB0EAOgAAIANB/wFJIQcgA0EBaiEDIAcNAQwDCwsgB0EBOgAADAELIAYgDToAACAHQQA6AAALIARB+gFLDQACQCAEQQVqIgMgBUHgD2pqIgcsAAAiCkUNACAKQQV0IgogBiwAACIIaiINQRBOBEAgCCAKayIHQXFIDQIgBiAHOgAAA0AgBUHgD2ogA2oiBy0AAARAIAdBADoAACADQf8BSSEHIANBAWohAyAHDQEMAwsLIAdBAToAAAwBCyAGIA06AAAgB0EAOgAACyAEQfkBSw0AIARBBmoiAyAFQeAPamoiBCwAACIHRQ0AIAdBBnQiByAGLAAAIgpqIghBEE4EQCAKIAdrIgRBcUgNASAGIAQ6AAADQCAFQeAPaiADaiIELQAABEAgBEEAOgAAIANB/wFJIQQgA0EBaiEDIAQNAQwDCwsgBEEBOgAADAELIAYgCDoAACAEQQA6AAALIAFBgAJHDQALQQAhAwNAIAVB4A1qIgEgA2ogCSADQQN2aiIELQAAIANBBnF2QQFxOgAAIAEgA0EBciIGaiAELQAAIAZBB3F2QQFxOgAAIANBAmoiA0GAAkcNAAtBACEBA0AgASIEQQFqIQECQCAEIAVB4A1qaiIJLQAARQ0AIARB/gFLDQACQCAFQeANaiABaiIDLAAAIgZFDQAgBkEBdCIGIAksAAAiB2oiCkEPTARAIAkgCjoAACADQQA6AAAMAQsgByAGayIDQXFIDQEgCSADOgAAIAEhAwNAIAVB4A1qIANqIgYtAABFBEAgBkEBOgAADAILIAZBADoAACADQf8BSSEGIANBAWohAyAGDQALCyAEQf0BSw0AAkAgBEECaiIDIAVB4A1qaiIGLAAAIgdFDQAgB0ECdCIHIAksAAAiCmoiCEEQTgRAIAogB2siBkFxSA0CIAkgBjoAAANAIAVB4A1qIANqIgYtAAAEQCAGQQA6AAAgA0H/AUkhBiADQQFqIQMgBg0BDAMLCyAGQQE6AAAMAQsgCSAIOgAAIAZBADoAAAsgBEH8AUsNAAJAIARBA2oiAyAFQeANamoiBiwAACIHRQ0AIAdBA3QiByAJLAAAIgpqIghBEE4EQCAKIAdrIgZBcUgNAiAJIAY6AAADQCAFQeANaiADaiIGLQAABEAgBkEAOgAAIANB/wFJIQYgA0EBaiEDIAYNAQwDCwsgBkEBOgAADAELIAkgCDoAACAGQQA6AAALIARB+wFLDQACQCAEQQRqIgMgBUHgDWpqIgYsAAAiB0UNACAHQQR0IgcgCSwAACIKaiIIQRBOBEAgCiAHayIGQXFIDQIgCSAGOgAAA0AgBUHgDWogA2oiBi0AAARAIAZBADoAACADQf8BSSEGIANBAWohAyAGDQEMAwsLIAZBAToAAAwBCyAJIAg6AAAgBkEAOgAACyAEQfoBSw0AAkAgBEEFaiIDIAVB4A1qaiIGLAAAIgdFDQAgB0EFdCIHIAksAAAiCmoiCEEQTgRAIAogB2siBkFxSA0CIAkgBjoAAANAIAVB4A1qIANqIgYtAAAEQCAGQQA6AAAgA0H/AUkhBiADQQFqIQMgBg0BDAMLCyAGQQE6AAAMAQsgCSAIOgAAIAZBADoAAAsgBEH5AUsNACAEQQZqIgMgBUHgDWpqIgQsAAAiBkUNACAGQQZ0IgYgCSwAACIHaiIKQRBOBEAgByAGayIEQXFIDQEgCSAEOgAAA0AgBUHgDWogA2oiBC0AAARAIARBADoAACADQf8BSSEEIANBAWohAyAEDQEMAwsLIARBAToAAAwBCyAJIAo6AAAgBEEAOgAACyABQYACRw0ACyAFQeADaiIHIAsQDSALKQIIIQIgCykCECEsIAspAhghLSALKQIAIS4gBSALKQIgNwPAASAFIC03A7gBIAUgLDcDsAEgBSACNwOoASAFIC43A6ABIAspAighAiALKQIwISwgCykCOCEtIAtBQGspAgAhLiAFIAspAkg3A+gBIAUgLjcD4AEgBSAtNwPYASAFICw3A9ABIAUgAjcDyAEgCykCUCECIAspAlghLCALKQJgIS0gCykCaCEuIAUgCykCcDcDkAIgBSAuNwOIAiAFIC03A4ACIAUgLDcD+AEgBSACNwPwASAFQcACaiIBIAVBoAFqIgMQFSAFIAEgBUG4A2oiBBAGIAVBKGogBUHoAmoiCSAFQZADaiIGEAYgBUHQAGogBiAEEAYgBUH4AGogASAJEAYgASAFIAcQDiADIAEgBBAGIAVByAFqIgcgCSAGEAYgBUHwAWoiCiAGIAQQBiAFQZgCaiILIAEgCRAGIAVBgAVqIgggAxANIAEgBSAIEA4gAyABIAQQBiAHIAkgBhAGIAogBiAEEAYgCyABIAkQBiAFQaAGaiIIIAMQDSABIAUgCBAOIAMgASAEEAYgByAJIAYQBiAKIAYgBBAGIAsgASAJEAYgBUHAB2oiCCADEA0gASAFIAgQDiADIAEgBBAGIAcgCSAGEAYgCiAGIAQQBiALIAEgCRAGIAVB4AhqIgggAxANIAEgBSAIEA4gAyABIAQQBiAHIAkgBhAGIAogBiAEEAYgCyABIAkQBiAFQYAKaiIIIAMQDSABIAUgCBAOIAMgASAEEAYgByAJIAYQBiAKIAYgBBAGIAsgASAJEAYgBUGgC2oiCCADEA0gASAFIAgQDiADIAEgBBAGIAcgCSAGEAYgCiAGIAQQBiALIAEgCRAGIAVBwAxqIAMQDSAMQgA3AiAgDEIANwIYIAxCADcCECAMQgA3AgggDEIANwIAIAxCADcCLCAMQShqIiJBATYCACAMQgA3AjQgDEIANwI8IAxCADcCRCAMQgA3AlQgDEKAgICAEDcCTCAMQgA3AlwgDEIANwJkIAxCADcCbCAMQQA2AnQgDEHQAGohI0H/ASEBA0ACQAJAAkAgBUHgD2ogAWotAAANACAFQeANaiABai0AAA0AIAFBAWsiAyAFQeAPamotAABFBEAgBUHgDWogA2otAABFDQILIAMhAQsgAUEASA0BA0AgBUHAAmogDBAVAkAgASIDIAVB4A9qaiwAACIBQQBKBEAgBUGgAWoiDSAFQcACaiIIIAQQBiAHIAkgBhAGIAogBiAEEAYgCyAIIAkQBiAIIA0gBUHgA2ogAUH+AXFBAXZBoAFsahAODAELIAFBAE4NACAFQaABaiINIAVBwAJqIgggBBAGIAcgCSAGEAYgCiAGIAQQBiALIAggCRAGIAggDSAFQeADakEAIAFrQf4BcUEBdkGgAWxqEEgLAkAgBUHgDWogA2osAAAiAUEASgRAIAVBoAFqIg0gBUHAAmoiCCAEEAYgByAJIAYQBiAKIAYgBBAGIAsgCCAJEAYgCCANIAFB/gFxQQF2QfgAbEHQC2oQOAwBCyABQQBODQAgBUGgAWogBUHAAmoiCCAEEAYgByAJIAYQBiAKIAYgBBAGIAsgCCAJEAYgBSgCoAEhDSAFKALIASEOIAUoAqQBIRAgBSgCzAEhESAFKAKoASESIAUoAtABIRMgBSgCrAEhFCAFKALUASEVIAUoArABIRYgBSgC2AEhFyAFKAK0ASEYIAUoAtwBIRkgBSgCuAEhGiAFKALgASEbIAUoArwBIRwgBSgC5AEhHSAFKALAASEeIAUoAugBIR8gBSAFKALsASIgIAUoAsQBIiFrNgKMAyAFIB8gHms2AogDIAUgHSAcazYChAMgBSAbIBprNgKAAyAFIBkgGGs2AvwCIAUgFyAWazYC+AIgBSAVIBRrNgL0AiAFIBMgEms2AvACIAUgESAQazYC7AIgBSAOIA1rNgLoAiAFICAgIWo2AuQCIAUgHiAfajYC4AIgBSAcIB1qNgLcAiAFIBogG2o2AtgCIAUgGCAZajYC1AIgBSAWIBdqNgLQAiAFIBQgFWo2AswCIAUgEiATajYCyAIgBSAQIBFqNgLEAiAFIA0gDmo2AsACIAYgCEEAIAFrQf4BcUEBdkH4AGxB0AtqIgFBKGoQBiAJIAkgARAGIAQgAUHQAGogCxAGIAUoApQCIR4gBSgCkAIhHyAFKAKMAiEgIAUoAogCISEgBSgChAIhJCAFKAKAAiElIAUoAvwBISYgBSgC+AEhJyAFKAL0ASEoIAUoAvABISkgBSgC6AIhASAFKAKQAyEIIAUoAuwCIQ0gBSgClAMhDiAFKALwAiEQIAUoApgDIREgBSgC9AIhEiAFKAKcAyETIAUoAvgCIRQgBSgCoAMhFSAFKAL8AiEWIAUoAqQDIRcgBSgCgAMhGCAFKAKoAyEZIAUoAoQDIRogBSgCrAMhGyAFKAKIAyEcIAUoArADIR0gBSAFKAKMAyIqIAUoArQDIitqNgKMAyAFIBwgHWo2AogDIAUgGiAbajYChAMgBSAYIBlqNgKAAyAFIBYgF2o2AvwCIAUgFCAVajYC+AIgBSASIBNqNgL0AiAFIBAgEWo2AvACIAUgDSAOajYC7AIgBSABIAhqNgLoAiAFICsgKms2AuQCIAUgHSAcazYC4AIgBSAbIBprNgLcAiAFIBkgGGs2AtgCIAUgFyAWazYC1AIgBSAVIBRrNgLQAiAFIBMgEms2AswCIAUgESAQazYCyAIgBSAOIA1rNgLEAiAFIAggAWs2AsACIAUgKUEBdCIBIAUoArgDIghrNgKQAyAFIChBAXQiDSAFKAK8AyIOazYClAMgBSAnQQF0IhAgBSgCwAMiEWs2ApgDIAUgJkEBdCISIAUoAsQDIhNrNgKcAyAFICVBAXQiFCAFKALIAyIVazYCoAMgBSAkQQF0IhYgBSgCzAMiF2s2AqQDIAUgIUEBdCIYIAUoAtADIhlrNgKoAyAFICBBAXQiGiAFKALUAyIbazYCrAMgBSAfQQF0IhwgBSgC2AMiHWs2ArADIAUgHkEBdCIeIAUoAtwDIh9rNgK0AyAFIAEgCGo2ArgDIAUgDSAOajYCvAMgBSAQIBFqNgLAAyAFIBIgE2o2AsQDIAUgFCAVajYCyAMgBSAWIBdqNgLMAyAFIBggGWo2AtADIAUgGiAbajYC1AMgBSAcIB1qNgLYAyAFIB4gH2o2AtwDCyAMIAVBwAJqIAQQBiAiIAkgBhAGICMgBiAEEAYgA0EBayEBIANBAEoNAAsMAQsgAUECayEBIAMNAQsLIAVB4BFqJAAgD0GgAmoiASAMECtBfyABIAAQSyAAIAFGGyAAIAFBIBAzciELCyAPQdAEaiQAIAsLqSICOH4FfyMAQbAEayI/JAAgP0HgAmoQGSAFBEAgP0HgAmpB0I8CQiIQDBoLID9BoAJqIARCIBAYGiA/QeACaiJBID9BwAJqQiAQDBogQSACIAMQDBogQSA/QeABaiI+EBMgBCkAICEIIAQpACghByAEKQAwIQYgACAEKQA4NwA4IAAgBjcAMCAAIAc3ACggAEEgaiIEIAg3AAAgPhA2ID8gPhAqIAAgPxArIEEQGSAFBEAgP0HgAmpB0I8CQiIQDBoLID9B4AJqIgUgAELAABAMGiAFIAIgAxAMGiAFID9BoAFqIgAQEyAAEDYgPyA/LQCgAkH4AXE6AKACID8gPy0AvwJBP3FBwAByOgC/AiAEID9BoAJqIkAzABUgQDEAF0IQhkKAgPwAg4QiECAAKAAcQQd2rSIRfiAAKAAXIgVBGHatIAAxABtCCIaEIAAxABxCEIaEQgKIQv///wCDIhIgQCgAFyICQQV2Qf///wBxrSITfnwgADMAFSAAMQAXQhCGQoCA/ACDhCIUIEAoABxBB3atIhV+fCACQRh2rSBAMQAbQgiGhCBAMQAcQhCGhEICiEL///8AgyIWIAVBBXZB////AHGtIhd+fCATIBd+IEAoAA8iBUEYdq0gQDEAE0IIhoQgQDEAFEIQhoRCA4giGCARfnwgECASfnwgACgADyICQRh2rSAAMQATQgiGhCAAMQAUQhCGhEIDiCIZIBV+fCAUIBZ+fCIJQoCAQH0iCEIViHwiB0KAgEB9IgZCFYggFSAXfiARIBN+fCASIBZ+fCIDIANCgIBAfSIDQoCAgP////8Ag318IixCmNocfiARIBZ+IBIgFX58IANCFYh8IgMgA0KAgEB9IipCgICA/////wCDfSItQpPYKH58IAcgBkKAgIB/g30iLkLn9id+fCAJIAhCgICAf4N9IBIgGH4gBUEGdkH///8Aca0iGiARfnwgEyAUfnwgECAXfnwgFSACQQZ2Qf///wBxrSIbfnwgFiAZfnwgQCgACiJCQRh2rSBAMQAOQgiGhCBAMQAPQhCGhEIBiEL///8AgyIcIBF+IBIgGn58IBcgGH58IBMgGX58IBAgFH58IAAoAAoiQUEYdq0gADEADkIIhoQgADEAD0IQhoRCAYhC////AIMiHSAVfnwgFiAbfnwiDEKAgEB9IgpCFYh8IglCgIBAfSIIQhWIfCIvQtOMQ358ID9B4AFqIj4oABciBUEFdkH///8Aca0gQDMAACBAMQACQhCGQoCA/ACDhCIeIBd+IBQgQCgAAiICQQV2Qf///wBxrSIffnwgQDUAB0IHiEL///8AgyIgIBt+fCAdIEJBBHZB////AHGtIiF+fCACQRh2rSBAMQAGQgiGhCBAMQAHQhCGhEICiEL///8AgyIiIBl+fCAaIAA1AAdCB4hC////AIMiI358IBwgQUEEdkH///8Aca0iJH58IBggACgAAiICQRh2rSAAMQAGQgiGhCAAMQAHQhCGhEICiEL///8AgyIlfnwgADMAACAAMQACQhCGQoCA/ACDhCImIBN+fCAQIAJBBXZB////AHGtIid+fHwgPjMAFSAUIB5+IBkgH358IB0gIH58ICEgJH58IBsgIn58IBogJX58IBwgI358IBggJ358IBAgJn58fCA+MQAXQhCGQoCA/ACDfCIHQoCAQH0iBkIViHwiA3wgA0KAgEB9IgtCgICAf4N9IAcgLkKY2hx+ICxCk9gofnwgL0Ln9id+fCAZIB5+IBsgH358ICAgJH58ICEgI358IB0gIn58IBogJ358IBwgJX58IBggJn58ID4oAA8iAEEYdq0gPjEAE0IIhoQgPjEAFEIQhoRCA4h8IABBBnZB////AHGtIBsgHn4gHSAffnwgICAjfnwgISAlfnwgIiAkfnwgGiAmfnwgHCAnfnx8IjZCgIBAfSIwQhWIfCIoQoCAQH0iN0IViHx8IAZCgICAf4N9IjhCgIBAfSI5QhWHfCIOQoCAQH0iKUIVhyAJIAhCgICAf4N9IAwgESAVfiIPQoCAQH0iDUIViCIxQoOhVn58IApCgICAf4N9IBcgGn4gESAhfnwgEiAcfnwgFCAYfnwgEyAbfnwgECAZfnwgFSAkfnwgFiAdfnwgEiAhfiARICB+fCAUIBp+fCAXIBx+fCAYIBl+fCATIB1+fCAQIBt+fCAVICN+fCAWICR+fCIMQoCAQH0iCkIViHwiCUKAgEB9IghCFYh8IgdCgIBAfSIGQhWHfCIyQoOhVn58IBIgHn4gFyAffnwgGSAgfnwgGyAhfnwgFCAifnwgGiAkfnwgHCAdfnwgGCAjfnwgEyAnfnwgECAlfnwgFiAmfnwgBUEYdq0gPjEAG0IIhoQgPjEAHEIQhoRCAohC////AIN8IgMgLUKY2hx+IA8gDUKAgID/////A4N9ICpCFYh8IjNCk9gofnwgLELn9id+fCAuQtOMQ358IC9C0asIfnwgC0IViHx8IANCgIBAfSI6QoCAgH+DfSIDfCADQoCAQH0iO0KAgIB/g30iCyAOIAcgBkKAgIB/g30gM0KDoVZ+IDFC0asIfnwgCXwgCEKAgIB/g30gDCAxQtOMQ358IDNC0asIfnwgLUKDoVZ+fCAKQoCAgH+DfSAXICF+IBIgIH58IBEgIn58IBkgGn58IBQgHH58IBggG358IBMgJH58IBAgHX58IBUgJX58IBYgI358IBcgIH4gESAffnwgFCAhfnwgEiAifnwgGiAbfnwgGSAcfnwgGCAdfnwgEyAjfnwgECAkfnwgFSAnfnwgFiAlfnwiPEKAgEB9Ij1CFYh8IitCgIBAfSIqQhWIfCINQoCAQH0iDEIVh3wiBkKAgEB9IgNCFYd8IjRCg6FWfiAyQtGrCH58fCApQoCAgH+DfSA4IDRC0asIfiAyQtOMQ358IAYgA0KAgIB/g30iNUKDoVZ+fCAvQpjaHH4gLkKT2Ch+fCAofCA2IC9Ck9gofnwgMEKAgIB/g30gHSAefiAfICR+fCAgICV+fCAhICd+fCAiICN+fCAcICZ+fCA+KAAKIgBBGHatID4xAA5CCIaEID4xAA9CEIaEQgGIQv///wCDfCAAQQR2Qf///wBxrSAeICR+IB8gI358ICAgJ358ICEgJn58ICIgJX58fCI2QoCAQH0iMEIViHwiKEKAgEB9Ig5CFYh8IilCgIBAfSIPQhWHfCA3QoCAgH+DfSIKQoCAQH0iCUIVh3x8IDlCgICAf4N9IghCgIBAfSIHQhWHfCIGQoCAQH0iA0IVh3wgC0KAgEB9IgtCgICAf4N9IAYgA0KAgIB/g30gCCAHQoCAgH+DfSA0QtOMQ34gMkLn9id+fCA1QtGrCH58IAp8IAlCgICAf4N9IA0gDEKAgIB/g30gM0LTjEN+IDFC5/YnfnwgLULRqwh+fCAsQoOhVn58ICt8ICpCgICAf4N9IDNC5/YnfiAxQpjaHH58IC1C04xDfnwgPHwgLELRqwh+fCAuQoOhVn58ID1CgICAf4N9ID4oABxBB3atIBEgHn4gEiAffnwgFCAgfnwgGSAhfnwgFyAifnwgGiAdfnwgGyAcfnwgGCAkfnwgEyAlfnwgECAjfnwgFSAmfnwgFiAnfnx8IDpCFYh8Ig1CgIBAfSIMQhWIfCIKQoCAQH0iCUIVh3wiBkKAgEB9IgNCFYd8IitCg6FWfnwgKSAyQpjaHH58IA9CgICAf4N9IDRC5/YnfnwgNULTjEN+fCArQtGrCH58IAYgA0KAgIB/g30iKkKDoVZ+fCIIQoCAQH0iB0IVh3wiBkKAgEB9IgNCFYd8IAYgA0KAgIB/g30gCCAHQoCAgH+DfSAyQpPYKH4gKHwgDkKAgIB/g30gNEKY2hx+fCA1Quf2J358IAogCUKAgIB/g30gM0KY2hx+IDFCk9gofnwgLULn9id+fCAsQtOMQ358IC5C0asIfnwgL0KDoVZ+fCANfCAMQoCAgH+DfSA7QhWHfCINQoCAQH0iDEIVh3wiDkKDoVZ+fCArQtOMQ358ICpC0asIfnwgNiAwQoCAgH+DfSAeICN+IB8gJX58ICAgJn58ICIgJ358ID41AAdCB4hC////AIN8IB4gJX4gHyAnfnwgIiAmfnwgPigAAiIAQRh2rSA+MQAGQgiGhCA+MQAHQhCGhEICiEL///8Ag3wiKUKAgEB9Ig9CFYh8IgpCgIBAfSIJQhWIfCA0QpPYKH58IDVCmNocfnwgDkLRqwh+fCArQuf2J358ICpC04xDfnwiCEKAgEB9IgdCFYd8IgZCgIBAfSIDQhWHfCAGIA0gDEKAgIB/g30gC0IVh3wiMEKAgEB9IihCFYciC0KDoVZ+fCADQoCAgH+DfSAIIAtC0asIfnwgB0KAgIB/g30gCiAJQoCAgH+DfSA1QpPYKH58IA5C04xDfnwgK0KY2hx+fCAqQuf2J358ICkgAEEFdkH///8Aca0gHiAnfiAfICZ+fHwgHiAmfiA+MwAAID4xAAJCEIZCgID8AIOEfCINQoCAQH0iDEIViHwiCkKAgEB9IglCFYh8IA9CgICAf4N9IA5C5/YnfnwgK0KT2Ch+fCAqQpjaHH58IghCgIBAfSIHQhWHfCIGQoCAQH0iA0IVh3wgBiALQtOMQ358IANCgICAf4N9IAggC0Ln9id+fCAHQoCAgH+DfSAKIAlCgICAf4N9IA5CmNocfnwgKkKT2Ch+fCANIAxCgICA////A4N9IA5Ck9gofnwiCEKAgEB9IgdCFYd8IgZCgIBAfSIDQhWHfCAGIAtCmNocfnwgA0KAgIB/g30gCCAHQoCAgH+DfSALQpPYKH58Ig5CFYd8IgtCFYd8IilCFYd8Ig9CFYd8Ig1CFYd8IgxCFYd8IgpCFYd8IglCFYd8IghCFYd8IgdCFYd8IgZCFYcgMCAoQoCAgH+DfXwiA0IVhyIoQpPYKH4gDkL///8Ag3wiDjwAACAEIA5CCIg8AAEgBCAoQpjaHH4gC0L///8Ag3wgDkIVh3wiC0ILiDwABCAEIAtCA4g8AAMgBCAOQhCIQh+DIAtCBYaEPAACIAQgKELn9id+IClC////AIN8IAtCFYd8IilCBog8AAYgBCApQgKGIAtCgIDgAINCE4iEPAAFIAQgKELTjEN+IA9C////AIN8IClCFYd8Ig9CCYg8AAkgBCAPQgGIPAAIIAQgD0IHhiApQoCA/wCDQg6IhDwAByAEIChC0asIfiANQv///wCDfCAPQhWHfCINQgyIPAAMIAQgDUIEiDwACyAEIA1CBIYgD0KAgPgAg0IRiIQ8AAogBCAoQoOhVn4gDEL///8Ag3wgDUIVh3wiDEIHiDwADiAEIAxCAYYgDUKAgMAAg0IUiIQ8AA0gBCAKQv///wCDIAxCFYd8IgpCCog8ABEgBCAKQgKIPAAQIAQgCkIGhiAMQoCA/gCDQg+IhDwADyAEIAlC////AIMgCkIVh3wiCUINiDwAFCAEIAlCBYg8ABMgBCAIQv///wCDIAlCFYd8Igg8ABUgBCAJQgOGIApCgIDwAINCEoiEPAASIAQgCEIIiDwAFiAEIAdC////AIMgCEIVh3wiB0ILiDwAGSAEIAdCA4g8ABggBCAIQhCIQh+DIAdCBYaEPAAXIAQgBkL///8AgyAHQhWHfCIGQgaIPAAbIAQgBkIChiAHQoCA4ACDQhOIhDwAGiAEIANC////AIMgBkIVh3wiA0IRiDwAHyAEIANCCYg8AB4gBCADQgGIPAAdIAQgA0IHhiAGQoCA/wCDQg6IhDwAHCBAQcAAEAcgPkHAABAHIAEEQCABQsAANwMACyA/QbAEaiQAQQAL2wEBA38jAEEQayIDIAA2AgwgAyABNgIIQQAhACADQQA6AAcCQCACRQ0AIAJBAXEhASACQQFHBEAgAkF+cSEEQQAhAgNAIAMgAy0AByADKAIMIABqLQAAIAMoAgggAGotAABzcjoAByADIAMtAAcgAEEBciIFIAMoAgxqLQAAIAMoAgggBWotAABzcjoAByAAQQJqIQAgAkECaiICIARHDQALCyABRQ0AIAMgAy0AByADKAIMIABqLQAAIAMoAgggAGotAABzcjoABwsgAy0AB0EBa0EIdkEBcUEBawsEAEEIC4MDAgN/An4jAEFAaiIDJAACQCACQcEAa0H/AXFBvwFLBEBBfyEEIAApAFBQBEAgACgA4AIiBUGBAU8EQCAAQUBrIgUgBSkAACIGQoABfDcAACAAIAApAEggBkL/flatfDcASCAAIABB4ABqIgQQKCAAIAAoAOACQYABayIFNgDgAiAFQYEBTw0DIAQgAEHgAWogBRALGiAAKADgAiEFCyAAQUBrIgQgBCkAACIGIAWtfCIHNwAAIAAgACkASCAGIAdWrXw3AEggAC0A5AIEQCAAQn83AFgLIABCfzcAUCAAQeAAaiIEIAVqQQBBgAIgBWsQCBogACAEECggAyAAKQAANwMAIAMgACkACDcDCCADIAApABA3AxAgAyAAKQAYNwMYIAMgACkAIDcDICADIAApACg3AyggAyAAKQAwNwMwIAMgACkAODcDOCABIAMgAhALGiAAQcAAEAcgBEGAAhAHQQAhBAsgA0FAayQAIAQPCxAJAAtBgApB9ghBsgJBvggQAQAL6RICFX4DfyAAIAAoACwiFkEFdkH///8Aca0gACgAPEEDdq0iAkKDoVZ+IAAzACogADEALEIQhkKAgPwAg4R8IghCgIBAfSIJQhWHfCIBQoOhVn4gADUAMUIHiEL///8AgyIDQtOMQ34gACgAFyIXQRh2rSAAMQAbQgiGhCAAMQAcQhCGhEICiEL///8Ag3wgACgANCIYQQR2Qf///wBxrSIEQuf2J358IBZBGHatIAAxADBCCIaEIAAxADFCEIaEQgKIQv///wCDIgVC0asIfnwgADUAOUIGiEL///8AgyIGQpPYKH58IBhBGHatIAAxADhCCIaEIAAxADlCEIaEQgGIQv///wCDIgpCmNocfnwiB3wgB0KAgEB9IhBCgICAf4N9IBdBBXZB////AHGtIANC5/YnfnwgBEKY2hx+fCAFQtOMQ358IApCk9gofnwgA0KY2hx+IAAzABUgADEAF0IQhkKAgPwAg4R8IARCk9gofnwgBULn9id+fCIHQoCAQH0iC0IViHwiDEKAgEB9Ig1CFYd8IhEgEUKAgEB9IhFCgICAf4N9IAwgAULRqwh+fCANQoCAgH+DfSAIIAlCgICAf4N9IAJC0asIfiAAKAAkIhZBGHatIAAxAChCCIaEIAAxAClCEIaEQgOIfCAGQoOhVn58IBZBBnZB////AHGtIAJC04xDfnwgBkLRqwh+fCAKQoOhVn58IgxCgIBAfSINQhWHfCIJQoCAQH0iDkIVh3wiCEKDoVZ+fCAHIAtCgICA////A4N9IANCk9gofiAAKAAPIhZBGHatIAAxABNCCIaEIAAxABRCEIaEQgOIfCAFQpjaHH58IBZBBnZB////AHGtIAVCk9gofnwiC0KAgEB9IhJCFYh8IgdCgIBAfSIPQhWIfCABQtOMQ358IAhC0asIfnwgCSAOQoCAgH+DfSIJQoOhVn58Ig5CgIBAfSITQhWHfCIUQoCAQH0iFUIVh3wgFCAVQoCAgH+DfSAOIBNCgICAf4N9IAcgD0KAgIB/g30gAULn9id+fCAIQtOMQ358IAlC0asIfnwgDCANQoCAgH+DfSAEQoOhVn4gACgAHyIWQRh2rSAAMQAjQgiGhCAAMQAkQhCGhEIBiEL///8Ag3wgAkLn9id+fCAGQtOMQ358IApC0asIfnwgFkEEdkH///8Aca0gA0KDoVZ+fCAEQtGrCH58IAJCmNocfnwgBkLn9id+fCAKQtOMQ358IgxCgIBAfSINQhWHfCIOQoCAQH0iD0IVh3wiB0KDoVZ+fCALIBJCgICA////AYN9IAFCmNocfnwgCELn9id+fCAJQtOMQ358IAdC0asIfnwgDiAPQoCAgH+DfSILQoOhVn58Ig5CgIBAfSISQhWHfCIPQoCAQH0iE0IVh3wgDyATQoCAgH+DfSAOIBJCgICAf4N9IAFCk9gofiAAKAAKIhZBGHatIAAxAA5CCIaEIAAxAA9CEIaEQgGIQv///wCDfCAIQpjaHH58IAlC5/YnfnwgB0LTjEN+fCALQtGrCH58IAwgDUKAgIB/g30gA0LRqwh+IAA1ABxCB4hC////AIN8IARC04xDfnwgBUKDoVZ+fCACQpPYKH58IAZCmNocfnwgCkLn9id+fCAQQhWHfCIBQoCAQH0iA0IVh3wiAkKDoVZ+fCAWQQR2Qf///wBxrSAIQpPYKH58IAlCmNocfnwgB0Ln9id+fCALQtOMQ358IAJC0asIfnwiBEKAgEB9IgVCFYd8IgZCgIBAfSIKQhWHfCAGIAEgA0KAgIB/g30gEUIVh3wiA0KAgEB9IghCFYciAUKDoVZ+fCAKQoCAgH+DfSABQtGrCH4gBHwgBUKAgIB/g30gCUKT2Ch+IAA1AAdCB4hC////AIN8IAdCmNocfnwgC0Ln9id+fCACQtOMQ358IAdCk9gofiAAKAACIhZBGHatIAAxAAZCCIaEIAAxAAdCEIaEQgKIQv///wCDfCALQpjaHH58IAJC5/YnfnwiBEKAgEB9IgVCFYd8IgZCgIBAfSIKQhWHfCAGIAFC04xDfnwgCkKAgIB/g30gAULn9id+IAR8IAVCgICAf4N9IBZBBXZB////AHGtIAtCk9gofnwgAkKY2hx+fCACQpPYKH4gADMAACAAMQACQhCGQoCA/ACDhHwiAkKAgEB9IgRCFYd8IgVCgIBAfSIGQhWHfCABQpjaHH4gBXwgBkKAgIB/g30gAiAEQoCAgH+DfSABQpPYKH58IgFCFYd8IgRCFYd8IgVCFYd8IgZCFYd8IgpCFYd8IglCFYd8IgdCFYd8IgtCFYd8IhBCFYd8IgxCFYd8Ig1CFYcgAyAIQoCAgH+DfXwiCEIVhyICQpPYKH4gAUL///8Ag3wiAzwAACAAIANCCIg8AAEgACACQpjaHH4gBEL///8Ag3wgA0IVh3wiAUILiDwABCAAIAFCA4g8AAMgACADQhCIQh+DIAFCBYaEPAACIAAgAkLn9id+IAVC////AIN8IAFCFYd8IgNCBog8AAYgACADQgKGIAFCgIDgAINCE4iEPAAFIAAgAkLTjEN+IAZC////AIN8IANCFYd8IgFCCYg8AAkgACABQgGIPAAIIAAgAUIHhiADQoCA/wCDQg6IhDwAByAAIAJC0asIfiAKQv///wCDfCABQhWHfCIDQgyIPAAMIAAgA0IEiDwACyAAIANCBIYgAUKAgPgAg0IRiIQ8AAogACACQoOhVn4gCUL///8Ag3wgA0IVh3wiAUIHiDwADiAAIAFCAYYgA0KAgMAAg0IUiIQ8AA0gACAHQv///wCDIAFCFYd8IgJCCog8ABEgACACQgKIPAAQIAAgAkIGhiABQoCA/gCDQg+IhDwADyAAIAtC////AIMgAkIVh3wiAUINiDwAFCAAIAFCBYg8ABMgACAQQv///wCDIAFCFYd8IgM8ABUgACABQgOGIAJCgIDwAINCEoiEPAASIAAgA0IIiDwAFiAAIAxC////AIMgA0IVh3wiAkILiDwAGSAAIAJCA4g8ABggACADQhCIQh+DIAJCBYaEPAAXIAAgDUL///8AgyACQhWHfCIBQgaIPAAbIAAgAUIChiACQoCA4ACDQhOIhDwAGiAAIAhC////AIMgAUIVh3wiAkIRiDwAHyAAIAJCCYg8AB4gACACQgGIPAAdIAAgAkIHhiABQoCA/wCDQg6IhDwAHAv4AQEKfwNAIAQgACADai0AACIBIANBkBNqIgItAABzciEEIAogASACLQDAAXNyIQogCSABIAItAKABc3IhCSAIIAEgAi0AgAFzciEIIAcgASACLQBgc3IhByAGIAEgAkFAay0AAHNyIQYgBSABIAItACBzciEFIANBAWoiA0EfRw0ACyAKIAAtAB9B/wBxIgBB/wBzIgFyQf8BcUEBayABIAlyQf8BcUEBayABIAhyQf8BcUEBayAHIABB+gBzckH/AXFBAWsgBiAAQQVzckH/AXFBAWsgACAFckH/AXFBAWsgACAEckH/AXFBAWtycnJycnJBCHZBAXEL4AkBHn8gASgCKCEDIAEoAgQhBCABKAIsIQUgASgCCCEGIAEoAjAhByABKAIMIQggASgCNCEJIAEoAhAhCiABKAI4IQsgASgCFCEMIAEoAjwhDSABKAIYIQ4gAUFAayIPKAIAIRAgASgCHCERIAEoAkQhEiABKAIgIRMgASgCSCEUIAEoAgAhFSAAIAEoAiQgASgCTGo2AiQgACATIBRqNgIgIAAgESASajYCHCAAIA4gEGo2AhggACAMIA1qNgIUIAAgCiALajYCECAAIAggCWo2AgwgACAGIAdqNgIIIAAgBCAFajYCBCAAIAMgFWo2AgAgASgCKCEFIAEoAgQhAyABKAIsIQYgASgCCCEHIAEoAjAhCCABKAIMIQkgASgCNCEKIAEoAhAhCyABKAI4IQwgASgCFCENIAEoAjwhDiABKAIYIRAgDygCACEPIAEoAhwhBCABKAJEIREgASgCICESIAEoAkghEyABKAIAIRQgACABKAJMIAEoAiRrNgJMIAAgEyASazYCSCAAIBEgBGs2AkQgAEFAayIEIA8gEGs2AgAgACAOIA1rNgI8IAAgDCALazYCOCAAIAogCWs2AjQgACAIIAdrNgIwIAAgBiADazYCLCAAQShqIgMgBSAUazYCACAAQdAAaiAAIAIQBiADIAMgAkEoahAGIABB+ABqIAJB0ABqIAFB+ABqEAYgASgCUCEVIAEoAlQhFiABKAJYIRcgASgCXCEYIAEoAmAhGSABKAJkIRogASgCaCEbIAEoAmwhHCABKAJwIR0gASgCdCEeIAMoAgAhASAAKAJQIQIgACgCLCEFIAAoAlQhBiAAKAIwIQcgACgCWCEIIAAoAjQhCSAAKAJcIQogACgCOCELIAAoAmAhDCAAKAI8IQ0gACgCZCEOIAQoAgAhDyAAKAJoIRAgACgCRCERIAAoAmwhEiAAKAJIIRMgACgCcCEUIAAgACgCTCIfIAAoAnQiIGo2AkwgACATIBRqNgJIIAAgESASajYCRCAEIA8gEGo2AgAgACANIA5qNgI8IAAgCyAMajYCOCAAIAkgCmo2AjQgACAHIAhqNgIwIAAgBSAGajYCLCADIAEgAmo2AgAgACAgIB9rNgIkIAAgFCATazYCICAAIBIgEWs2AhwgACAQIA9rNgIYIAAgDiANazYCFCAAIAwgC2s2AhAgACAKIAlrNgIMIAAgCCAHazYCCCAAIAYgBWs2AgQgACACIAFrNgIAIAAgHkEBdCIBIAAoApwBIgJrNgKcASAAIB1BAXQiAyAAKAKYASIEazYCmAEgACAcQQF0IgUgACgClAEiBms2ApQBIAAgG0EBdCIHIAAoApABIghrNgKQASAAIBpBAXQiCSAAKAKMASIKazYCjAEgACAZQQF0IgsgACgCiAEiDGs2AogBIAAgGEEBdCINIAAoAoQBIg5rNgKEASAAIBdBAXQiDyAAKAKAASIQazYCgAEgACAWQQF0IhEgACgCfCISazYCfCAAIBVBAXQiEyAAKAJ4IhRrNgJ4IAAgAyAEajYCcCAAIAUgBmo2AmwgACAHIAhqNgJoIAAgCSAKajYCZCAAIAsgDGo2AmAgACANIA5qNgJcIAAgDyAQajYCWCAAIBEgEmo2AlQgACATIBRqNgJQIAAgASACajYCdAumBAIOfgp/IAAoAiQhEiAAKAIgIRMgACgCHCEUIAAoAhghFSAAKAIUIREgAkIQWgRAIAAtAFBFQRh0IRYgACgCECIXrSEPIAAoAgwiGK0hDSAAKAIIIhmtIQsgACgCBCIarSEJIBpBBWytIRAgGUEFbK0hDiAYQQVsrSEMIBdBBWytIQogADUCACEIA0AgASgAA0ECdkH///8fcSAVaq0iAyANfiABKAAAQf///x9xIBFqrSIEIA9+fCABKAAGQQR2Qf///x9xIBRqrSIFIAt+fCABKAAJQQZ2IBNqrSIGIAl+fCASIBZqIAEoAAxBCHZqrSIHIAh+fCADIAt+IAQgDX58IAUgCX58IAYgCH58IAcgCn58IAMgCX4gBCALfnwgBSAIfnwgBiAKfnwgByAMfnwgAyAIfiAEIAl+fCAFIAp+fCAGIAx+fCAHIA5+fCADIAp+IAQgCH58IAUgDH58IAYgDn58IAcgEH58IgNCGohC/////w+DfCIEQhqIQv////8Pg3wiBUIaiEL/////D4N8IgZCGohC/////w+DfCIHQhqIp0EFbCADp0H///8fcWoiEUEadiAEp0H///8fcWohFSAFp0H///8fcSEUIAanQf///x9xIRMgB6dB////H3EhEiARQf///x9xIREgAUEQaiEBIAJCEH0iAkIPVg0ACwsgACARNgIUIAAgEjYCJCAAIBM2AiAgACAUNgIcIAAgFTYCGAutAwIMfwN+IAApAzgiDkIAUgRAIABBQGsiAiAOpyIDakEBOgAAIA5CAXxCD1gEQCAAIANqQcEAakEAQQ8gA2sQCBoLIABBAToAUCAAIAJCEBA5CyAANQI0IQ4gADUCMCEPIAA1AiwhECABIAAoAhQgACgCJCAAKAIgIAAoAhwgACgCGCIDQRp2aiICQRp2aiIGQRp2aiIJQRp2QQVsaiIEQf///x9xIgVBBWoiB0EadiADQf///x9xIARBGnZqIgRqIghBGnYgAkH///8fcSIKaiILQRp2IAZB////H3EiBmoiDEEadiAJQf///x9xaiINQYCAgCBrIgJBH3UiAyAEcSACQR92QQFrIgRB////H3EiAiAIcXIiCEEadCACIAdxIAMgBXFyciIFIAAoAihqIgc2AAAgASAFIAdLrSAQIAMgCnEgAiALcXIiBUEUdCAIQQZ2cq18fCIQPgAEIAEgDyADIAZxIAIgDHFyIgJBDnQgBUEMdnKtfCAQQiCIfCIPPgAIIAEgDiAEIA1xIAMgCXFyQQh0IAJBEnZyrXwgD0IgiHw+AAwgAEHYABAHC98EAgZ+AX8CQCAAKQM4IgNCAFIEQCAAQhAgA30iBCACIAIgBFYbIgRCAFIEfkIAIQMgBEIEWgRAIARCfIMhBSAAQUBrIQkDQCAJIAApAzggA3ynaiABIAOnai0AADoAACAJIANCAYQiCCAAKQM4fKdqIAEgCKdqLQAAOgAAIAkgA0IChCIIIAApAzh8p2ogASAIp2otAAA6AAAgCSADQgOEIgggACkDOHynaiABIAinai0AADoAACADQgR8IQMgBkIEfCIGIAVSDQALCyAEQgODIgZCAFIEQANAIAAgACkDOCADfKdqQUBrIAEgA6dqLQAAOgAAIANCAXwhAyAHQgF8IgcgBlINAAsLIAApAzgFIAMLIAR8IgM3AzggA0IQVA0BIAAgAEFAa0IQEDkgAEIANwM4IAIgBH0hAiABIASnaiEBCyACQhBaBEAgACABIAJCcIMiAxA5IAJCD4MhAiABIAOnaiEBCyACUA0AQgAhB0IAIQMgAkIEWgRAIAJCDIMhBCAAQUBrIQlCACEGA0AgCSAAKQM4IAN8p2ogASADp2otAAA6AAAgCSADQgGEIgUgACkDOHynaiABIAWnai0AADoAACAJIANCAoQiBSAAKQM4fKdqIAEgBadqLQAAOgAAIAkgA0IDhCIFIAApAzh8p2ogASAFp2otAAA6AAAgA0IEfCEDIAZCBHwiBiAEUg0ACwsgAkIDgyIEQgBSBEADQCAAIAApAzggA3ynakFAayABIAOnai0AADoAACADQgF8IQMgB0IBfCIHIARSDQALCyAAIAApAzggAnw3AzgLCwoAIAAgASACEEYLFgAgAUEgEBYgACABQcyQAigCABEBAAuzBAEUf0H0yoHZBiEDQbLaiMsHIQxB7siBmQMhDUHl8MGLBiEEIAEoAAwhDyABKAAIIQUgASgABCEGIAIoABwhEiACKAAYIRBBFCERIAIoABQhDiACKAAQIQggAigADCEJIAIoAAghCiACKAAEIQsgASgAACEBIAIoAAAhAgNAIBAgDyACIA1qQQd3cyIHIA1qQQl3cyITIAQgDmpBB3cgCXMiCSAEakEJdyAFcyIUIAlqQQ13IA5zIhUgAyAIakEHdyAKcyIKIANqQQl3IAZzIgYgCmpBDXcgCHMiCCAGakESdyADcyIDIBIgASAMakEHd3MiBWpBB3dzIg4gA2pBCXdzIhAgDmpBDXcgBXMiEiAQakESdyADcyEDIAUgBSAMakEJdyALcyILakENdyABcyIWIAtqQRJ3IAxzIgEgB2pBB3cgCHMiCCABakEJdyAUcyIFIAhqQQ13IAdzIg8gBWpBEncgAXMhDCATIAcgE2pBDXcgAnMiB2pBEncgDXMiAiAJakEHdyAWcyIBIAJqQQl3IAZzIgYgAWpBDXcgCXMiCSAGakESdyACcyENIBQgFWpBEncgBHMiBCAKakEHdyAHcyICIARqQQl3IAtzIgsgAmpBDXcgCnMiCiALakESdyAEcyEEIBFBAkshByARQQJrIREgBw0ACyAAIAQ2AAAgACAPNgAcIAAgBTYAGCAAIAY2ABQgACABNgAQIAAgAzYADCAAIAw2AAggACANNgAEQQALhwEBBH9BASEBA0AgACADaiICIAEgAi0AAGoiAToAACAAIANBAXJqIgIgAi0AACABQQh2aiIBOgAAIAAgA0ECcmoiAiACLQAAIAFBCHZqIgE6AAAgACADQQNyaiICIAItAAAgAUEIdmoiAToAACABQQh2IQEgA0EEaiEDIARBBGoiBEEERw0ACwugAgEDfyMAQeACayIIJAAgCEEgaiIKQsAAIAYgBxAXIAhB4ABqIgkgCkG8kAIoAgARAQAaIApBwAAQByAJIAQgBUHAkAIoAgARAAAaIAlBgIkCQgAgBX1CD4NBwJACKAIAEQAAGiAJIAEgAkHAkAIoAgARAAAaIAlBgIkCQgAgAn1CD4NBwJACKAIAEQAAGiAIIAU3AxggCSAIQRhqIgRCCEHAkAIoAgARAAAaIAggAjcDGCAJIARCCEHAkAIoAgARAAAaIAkgCEHEkAIoAgARAQAaIAlBgAIQByAIIAMQLSEEIAhBEBAHAkAgAEUNACAEBEAgAEEAIAKnEAgaQX8hBAwBCyAAIAEgAiAGQQEgBxAbQQAhBAsgCEHgAmokACAEC/UBAQN/IwBB4AJrIggkACAIQSBqIgpCwAAgBiAHQaSQAigCABEMABogCEHgAGoiCSAKQbyQAigCABEBABogCkHAABAHIAkgBCAFQcCQAigCABEAABogCCAFNwMYIAkgCEEYaiIEQghBwJACKAIAEQAAGiAJIAEgAkHAkAIoAgARAAAaIAggAjcDGCAJIARCCEHAkAIoAgARAAAaIAkgCEHEkAIoAgARAQAaIAlBgAIQByAIIAMQLSEEIAhBEBAHAkAgAEUNACAEBEAgAEEAIAKnEAgaQX8hBAwBCyAAIAEgAiAGIAcQTkEAIQQLIAhB4AJqJAAgBAv9AQEDfyMAQdACayIKJAAgCkEQaiILQsAAIAcgCBAXIApB0ABqIgkgC0G8kAIoAgARAQAaIAtBwAAQByAJIAUgBkHAkAIoAgARAAAaIAlBgIkCQgAgBn1CD4NBwJACKAIAEQAAGiAAIAMgBCAHQQEgCBAbIAkgACAEQcCQAigCABEAABogCUGAiQJCACAEfUIPg0HAkAIoAgARAAAaIAogBjcDCCAJIApBCGoiAEIIQcCQAigCABEAABogCiAENwMIIAkgAEIIQcCQAigCABEAABogCSABQcSQAigCABEBABogCUGAAhAHIAIEQCACQhA3AwALIApB0AJqJABBAAvSAQEDfyMAQdACayIJJAAgCUEQaiILQsAAIAcgCEGkkAIoAgARDAAaIAlB0ABqIgogC0G8kAIoAgARAQAaIAtBwAAQByAKIAUgBkHAkAIoAgARAAAaIAkgBjcDCCAKIAlBCGoiBUIIQcCQAigCABEAABogACADIAQgByAIEE4gCiAAIARBwJACKAIAEQAAGiAJIAQ3AwggCiAFQghBwJACKAIAEQAAGiAKIAFBxJACKAIAEQEAGiAKQYACEAcgAgRAIAJCEDcDAAsgCUHQAmokAEEACwQAQQMLBABBAQvIBAECfyMAQRBrIgMkACADQQA6AA9BfyEEIAAgASACQciQAigCABEDAEUEQCADIAAtAAAgAy0AD3I6AA8gAyAALQABIAMtAA9yOgAPIAMgAC0AAiADLQAPcjoADyADIAAtAAMgAy0AD3I6AA8gAyAALQAEIAMtAA9yOgAPIAMgAC0ABSADLQAPcjoADyADIAAtAAYgAy0AD3I6AA8gAyAALQAHIAMtAA9yOgAPIAMgAC0ACCADLQAPcjoADyADIAAtAAkgAy0AD3I6AA8gAyAALQAKIAMtAA9yOgAPIAMgAC0ACyADLQAPcjoADyADIAAtAAwgAy0AD3I6AA8gAyAALQANIAMtAA9yOgAPIAMgAC0ADiADLQAPcjoADyADIAAtAA8gAy0AD3I6AA8gAyAALQAQIAMtAA9yOgAPIAMgAC0AESADLQAPcjoADyADIAAtABIgAy0AD3I6AA8gAyAALQATIAMtAA9yOgAPIAMgAC0AFCADLQAPcjoADyADIAAtABUgAy0AD3I6AA8gAyAALQAWIAMtAA9yOgAPIAMgAC0AFyADLQAPcjoADyADIAAtABggAy0AD3I6AA8gAyAALQAZIAMtAA9yOgAPIAMgAC0AGiADLQAPcjoADyADIAAtABsgAy0AD3I6AA8gAyAALQAcIAMtAA9yOgAPIAMgAC0AHSADLQAPcjoADyADIAAtAB4gAy0AD3I6AA8gAyAALQAfIAMtAA9yOgAPIAMtAA9BF3RBgICABGtBH3UhBAsgA0EQaiQAIAQL8QQCCX8EfiMAQYABayIDJAAgAEEBNgIAIABCADcCBCAAQgA3AgwgAEIANwIUIABCADcCHCAAQoCAgIAQNwIkIABBLGpBAEHMABAIGiAAIAFBwAdsQZAVaiIBIAIgAkEfdSACcUEBdGsiBEEBc0H/AXFBAWtBH3YQESAAIAFB+ABqIARBAnNB/wFxQQFrQR92EBEgACABQfABaiAEQQNzQf8BcUEBa0EfdhARIAAgAUHoAmogBEEEc0H/AXFBAWtBH3YQESAAIAFB4ANqIARBBXNB/wFxQQFrQR92EBEgACABQdgEaiAEQQZzQf8BcUEBa0EfdhARIAAgAUHQBWogBEEHc0H/AXFBAWtBH3YQESAAIAFByAZqIARBCHNB/wFxQQFrQR92EBEgACkCKCEMIAApAjAhDSAAKQI4IQ4gAEFAaykCACEPIAMgACkCSDcDKCADIA83AyAgAyAONwMYIAMgDTcDECADIAw3AwggACkCCCEMIAApAhAhDSAAKQIYIQ4gACkCACEPIAMgACkCIDcDUCADIA43A0ggA0FAayANNwMAIAMgDDcDOCADIA83AzAgACgCUCEBIAAoAlQhBCAAKAJYIQUgACgCXCEGIAAoAmAhByAAKAJkIQggACgCaCEJIAAoAmwhCiAAKAJwIQsgA0EAIAAoAnRrNgJ8IANBACALazYCeCADQQAgCms2AnQgA0EAIAlrNgJwIANBACAIazYCbCADQQAgB2s2AmggA0EAIAZrNgJkIANBACAFazYCYCADQQAgBGs2AlwgA0EAIAFrNgJYIAAgA0EIaiACQYABcUEHdhARIANBgAFqJAAL8AkBHn8gASgCKCEDIAEoAgQhBCABKAIsIQUgASgCCCEGIAEoAjAhByABKAIMIQggASgCNCEJIAEoAhAhCiABKAI4IQsgASgCFCEMIAEoAjwhDSABKAIYIQ4gAUFAayIPKAIAIRAgASgCHCERIAEoAkQhEiABKAIgIRMgASgCSCEUIAEoAgAhFSAAIAEoAiQgASgCTGo2AiQgACATIBRqNgIgIAAgESASajYCHCAAIA4gEGo2AhggACAMIA1qNgIUIAAgCiALajYCECAAIAggCWo2AgwgACAGIAdqNgIIIAAgBCAFajYCBCAAIAMgFWo2AgAgASgCKCEFIAEoAgQhAyABKAIsIQYgASgCCCEHIAEoAjAhCCABKAIMIQkgASgCNCEKIAEoAhAhCyABKAI4IQwgASgCFCENIAEoAjwhDiABKAIYIRAgDygCACEPIAEoAhwhBCABKAJEIREgASgCICESIAEoAkghEyABKAIAIRQgACABKAJMIAEoAiRrNgJMIAAgEyASazYCSCAAIBEgBGs2AkQgAEFAayIEIA8gEGs2AgAgACAOIA1rNgI8IAAgDCALazYCOCAAIAogCWs2AjQgACAIIAdrNgIwIAAgBiADazYCLCAAQShqIgMgBSAUazYCACAAQdAAaiAAIAJBKGoQBiADIAMgAhAGIABB+ABqIAJB+ABqIAFB+ABqEAYgACABQdAAaiACQdAAahAGIAAoAgQhFSAAKAIIIRYgACgCDCEXIAAoAhAhGCAAKAIUIRkgACgCGCEaIAAoAhwhGyAAKAIgIRwgACgCJCEdIAMoAgAhASAAKAJQIQIgACgCLCEFIAAoAlQhBiAAKAIwIQcgACgCWCEIIAAoAjQhCSAAKAJcIQogACgCOCELIAAoAmAhDCAAKAI8IQ0gACgCZCEOIAQoAgAhDyAAKAJoIRAgACgCRCERIAAoAmwhEiAAKAJIIRMgACgCcCEUIAAoAgAhHiAAIAAoAkwiHyAAKAJ0IiBqNgJMIAAgEyAUajYCSCAAIBEgEmo2AkQgBCAPIBBqNgIAIAAgDSAOajYCPCAAIAsgDGo2AjggACAJIApqNgI0IAAgByAIajYCMCAAIAUgBmo2AiwgAyABIAJqNgIAIAAgICAfazYCJCAAIBQgE2s2AiAgACASIBFrNgIcIAAgECAPazYCGCAAIA4gDWs2AhQgACAMIAtrNgIQIAAgCiAJazYCDCAAIAggB2s2AgggACAGIAVrNgIEIAAgAiABazYCACAAIAAoApwBIgEgHUEBdCICajYCnAEgACAAKAKYASIDIBxBAXQiBGo2ApgBIAAgACgClAEiBSAbQQF0IgZqNgKUASAAIAAoApABIgcgGkEBdCIIajYCkAEgACAAKAKMASIJIBlBAXQiCmo2AowBIAAgACgCiAEiCyAYQQF0IgxqNgKIASAAIAAoAoQBIg0gF0EBdCIOajYChAEgACAAKAKAASIPIBZBAXQiEGo2AoABIAAgACgCfCIRIBVBAXQiEmo2AnwgACAAKAJ4IhMgHkEBdCIUajYCeCAAIAQgA2s2AnAgACAGIAVrNgJsIAAgCCAHazYCaCAAIAogCWs2AmQgACAMIAtrNgJgIAAgDiANazYCXCAAIBAgD2s2AlggACASIBFrNgJUIAAgFCATazYCUCAAIAIgAWs2AnQLrQ4BF38jAEHAAmsiAyQAIABBKGoiCSABEEogAEIANwJUIABBATYCUCAAQgA3AlwgAEIANwJkIABCADcCbCAAQQA2AnQgA0HwAWoiCCAJEAUgA0HAAWoiBiAIQcAKEAZBfyEKIAMgAygC8AFBAWsiCzYC8AEgAyADKALAAUEBajYCwAEgAygC9AEhDCADKAL4ASENIAMoAvwBIQ4gAygCgAIhDyADKAKEAiEQIAMoAogCIREgAygCjAIhEiADKAKQAiETIAMoApQCIRQgA0GQAWoiByAGEAUgByAHIAYQBiAAIAcQBSAAIAAgBhAGIAAgACAIEAYjAEGQAWsiBCQAIARB4ABqIgUgABAFIARBMGoiAiAFEAUgAiACEAUgAiAAIAIQBiAFIAUgAhAGIAUgBRAFIAUgAiAFEAYgAiAFEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgBSACIAUQBiACIAUQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIgBRAGIAQgAhAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAQgBBAFIAIgBCACEAYgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgAiACEAUgBSACIAUQBiACIAUQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIQBSACIAIgBRAGIAQgAhAFQQEhAgNAIAQgBBAFIAJBAWoiAkHkAEcNAAsgBEEwaiICIAQgAhAGIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIAIgAhAFIARB4ABqIgUgAiAFEAYgBSAFEAUgBSAFEAUgACAFIAAQBiAEQZABaiQAIAAgACAHEAYgACAAIAgQBiADQeAAaiICIAAQBSACIAIgBhAGIAMgAygChAEiAiAUazYCVCADIAMoAoABIgQgE2s2AlAgAyADKAJ8IgUgEms2AkwgAyADKAJ4IgYgEWs2AkggAyADKAJ0IgcgEGs2AkQgAyADKAJwIgggD2s2AkAgAyADKAJsIhUgDms2AjwgAyADKAJoIhYgDWs2AjggAyADKAJkIhcgDGs2AjQgAyADKAJgIhggC2s2AjAgAyADQTBqEBICQCADQSAQH0UEQCADIAIgFGo2AiQgAyAEIBNqNgIgIAMgBSASajYCHCADIAYgEWo2AhggAyAHIBBqNgIUIAMgCCAPajYCECADIA4gFWo2AgwgAyANIBZqNgIIIAMgDCAXajYCBCADIAsgGGo2AgAgA0GgAmoiAiADEBIgAkEgEB9FDQEgACAAQfAKEAYLIANBoAJqIAAQEiADLQCgAkEBcSABLQAfQQd2RgRAIABBACAAKAIAazYCACAAQQAgACgCJGs2AiQgAEEAIAAoAiBrNgIgIABBACAAKAIcazYCHCAAQQAgACgCGGs2AhggAEEAIAAoAhRrNgIUIABBACAAKAIQazYCECAAQQAgACgCDGs2AgwgAEEAIAAoAghrNgIIIABBACAAKAIEazYCBAsgAEH4AGogACAJEAZBACEKCyADQcACaiQAIAoL9AQBGX4gATEAHyECIAExAB4hBiABMQAdIQ4gATEABiEHIAExAAUhCCABMQAEIQMgATEACSEPIAExAAghECABMQAHIREgATEADCEJIAExAAshCiABMQAKIQsgATEADyEMIAExAA4hEiABMQANIRMgATEAHCEEIAExABshFCABMQAaIRUgATEAGSEFIAExABghFiABMQAXIRcgATUAACEYIAAgATEAFUIPhiABMQAUQgeGhCABMQAWQheGhCABNQAQIhlCgICACHwiGkIZiHwiDSANQoCAgBB8Ig1CgICA4A+DfT4CGCAAIBZCDYYgF0IFhoQgBUIVhoQiBSANQhqIfCAFQoCAgAh8IgVCgICA8AODfT4CHCAAIBRCDIYgFUIEhoQgBEIUhoQgBUIZiHwiBCAEQoCAgBB8IgRCgICA4A+DfT4CICAAIBkgGkKAgIDwD4N9IBJCCoYgE0IChoQgDEIShoQgCkILhiALQgOGhCAJQhOGhCIJQoCAgAh8IgpCGYh8IgtCgICAEHwiDEIaiHw+AhQgACALIAxCgICA4A+DfT4CECAAIBBCDYYgEUIFhoQgD0IVhoQgCEIOhiADQgaGhCAHQhaGhCIHQoCAgAh8IghCGYh8IgMgA0KAgIAQfCIDQoCAgOAPg30+AgggACACQhKGQoCA8A+DIAZCCoYgDkIChoSEIgIgBEIaiHwgAkKAgIAIfCICQoCAgBCDfT4CJCAAIANCGoggCXwgCkKAgIDwAIN9PgIMIAAgByAIQoCAgPAHg30gGCACQhmIQhN+fCICQoCAgBB8IgZCGoh8PgIEIAAgAiAGQoCAgOAPg30+AgALiwEBAX8jAEEQayICIAA2AgwgAiABNgIIQQAhACACQQA2AgQDQCACIAIoAgQgAigCDCAAai0AACACKAIIIABqLQAAc3I2AgQgAiACKAIEIABBAXIiASACKAIMai0AACACKAIIIAFqLQAAc3I2AgQgAEECaiIAQSBHDQALIAIoAgRBAWtBCHZBAXFBAWsLKQEBfyMAQRBrIgAkACAAQQA6AA9B/JACIABBD2pBABAAGiAAQRBqJAALKAAgAkKAgICAEFoEQBAJAAsgACABIAIgA0EBIARBsJACKAIAEQgAGgsoACACQoCAgIAQWgRAEAkACyAAIAEgAiADQgEgBEGskAIoAgARCQAaCy0BAX4gAq0gA61CIIaEIgZCEFoEfyAAIAFBEGogASAGQhB9IAQgBRAwBUF/CwsYACAAIAEgAiADrSAErUIghoQgBSAGEDALGAAgACABIAIgA60gBK1CIIaEIAUgBhAgC0oBAn8jAEEgayIGJABBfyEHAkAgAkIQVA0AIAYgBCAFECENACAAIAFBEGogASACQhB9IAMgBhAwIQcgBkEgEAcLIAZBIGokACAHC08BAn8jAEEgayIGJAAgAkLw////D1QEQEF/IQcgBiAEIAUQIUUEQCAAQRBqIAAgASACIAMgBhAgIQcgBkEgEAcLIAZBIGokACAHDwsQCQALNwEBfyMAQUBqIgIkACAAIAIQEyAAQdABaiIAIAJCwAAQDBogACABEBMgAkHAABAHIAJBQGskAAsLACAAIAEgAhAMGguEAwEGfyMAQcABayIEJAAgABAZIARBQGtBNkGAARAIGgNAIARBQGsiBSACaiIDIAMtAAAgASACai0AAHM6AAAgBSACQQFyIgNqIgYgBi0AACABIANqLQAAczoAACAFIAJBAnIiA2oiBiAGLQAAIAEgA2otAABzOgAAIAUgAkEDciIDaiIFIAUtAAAgASADai0AAHM6AAAgAkEEaiECIAdBBGoiB0EgRw0ACyAAIARBQGsiAkKAARAMGiAAQdABaiIFEBkgAkHcAEGAARAIGkEAIQJBACEHA0AgBEFAayIAIAJqIgMgAy0AACABIAJqLQAAczoAACAAIAJBAXIiA2oiBiAGLQAAIAEgA2otAABzOgAAIAAgAkECciIDaiIGIAYtAAAgASADai0AAHM6AAAgACACQQNyIgNqIgAgAC0AACABIANqLQAAczoAACACQQRqIQIgB0EEaiIHQSBHDQALIAUgBEFAayIAQoABEAwaIABBgAEQByAEQcAAEAcgBEHAAWokAAvVAgECfyMAQZADayIIJAAgCEEANgIEIAhBEGoiCSAGIAcQJyAIIAYpABA3AgggCEHQAGoiB0LAACAIQQRqIAkQFyAIQZABaiIGIAdBvJACKAIAEQEAGiAHQcAAEAcgBiAEIAVBwJACKAIAEQAAGiAGQYCQAkIAIAV9Qg+DQcCQAigCABEAABogBiABIAJBwJACKAIAEQAAGiAGQYCQAkIAIAJ9Qg+DQcCQAigCABEAABogCCAFNwNIIAYgCEHIAGoiBEIIQcCQAigCABEAABogCCACNwNIIAYgBEIIQcCQAigCABEAABogBiAIQTBqIgRBxJACKAIAEQEAGiAGQYACEAcgBCADEC0hBiAEQRAQBwJAIABFDQAgBgRAIABBACACpxAIGkF/IQYMAQsgACABIAIgCEEEaiAIQRBqEE1BACEGCyAIQRBqQSAQByAIQZADaiQAIAYLpwIBA38jAEGAA2siCSQAIAlBADYCBCAJQRBqIgogByAIECcgCSAHKQAQNwIIIAlBQGsiCELAACAJQQRqIgsgChAXIAlBgAFqIgcgCEG8kAIoAgARAQAaIAhBwAAQByAHIAUgBkHAkAIoAgARAAAaIAdBgJACQgAgBn1CD4NBwJACKAIAEQAAGiAAIAMgBCALIAoQTSAHIAAgBEHAkAIoAgARAAAaIAdBgJACQgAgBH1CD4NBwJACKAIAEQAAGiAJIAY3AzggByAJQThqIgBCCEHAkAIoAgARAAAaIAkgBDcDOCAHIABCCEHAkAIoAgARAAAaIAcgAUHEkAIoAgARAQAaIAdBgAIQByACBEAgAkIQNwMACyAJQRBqQSAQByAJQYADaiQAQQALygUCBX8CfkF/IQYCQCABQcEAa0FASQ0AIAVBwABLDQACfyABQf8BcSEGIAVB/wFxIQUjACIBIQkgAUGABGtBQHEiASQAAkAgAkUgA0IAUnENACAARQ0AIAZBwQBrQf8BcUG/AU0NACAEQQEgBRtFDQAgBUHBAE8NAAJ/IAUEQCAERQ0CIAFBQGtBAEGlAhAIGiABQvnC+JuRo7Pw2wA3AzggAULr+obav7X2wR83AzAgAUKf2PnZwpHagpt/NwMoIAFC0YWa7/rPlIfRADcDICABQvHt9Pilp/2npX83AxggAUKr8NP0r+68tzw3AxAgAUK7zqqm2NDrs7t/NwMIIAEgBq0gBa1CCIaEQoiS95X/zPmE6gCFNwMAIAFBgANqIgcgBWpBAEGAASAFaxAIGiAHIAQgBRALGiABQeAAaiAHQYABEAsaIAFBgAE2AuACIAdBgAEQB0GAAQwBCyABQUBrQQBBpQIQCBogAUL5wvibkaOz8NsANwM4IAFC6/qG2r+19sEfNwMwIAFCn9j52cKR2oKbfzcDKCABQtGFmu/6z5SH0QA3AyAgAULx7fT4paf9p6V/NwMYIAFCq/DT9K/uvLc8NwMQIAFCu86qptjQ67O7fzcDCCABIAatQoiS95X/zPmE6gCFNwMAQQALIQQCQCADUA0AIAFB4AFqIQogAUHgAGohBQNAIAQgBWohCEGAAiAEayIHrSILIANaBEAgCCACIAOnIgIQCxogASABKALgAiACajYC4AIMAgsgCCACIAcQCxogASABKALgAiAHajYC4AIgASABKQNAIgxCgAF8NwNAIAEgASkDSCAMQv9+Vq18NwNIIAEgBRAoIAUgCkGAARALGiABIAEoAuACQYABayIENgLgAiACIAdqIQIgAyALfSIDQgBSDQALCyABIAAgBhA1GiAJJABBAAwBCxAJAAshBgsgBgu2AQIBfwN+IwBBoAFrIgMkACABIAJCIBAYGiABIAEtAABB+AFxOgAAIAEgAS0AH0E/cUHAAHI6AB8gAyABECogACADECsgAikACCEEIAIpABAhBSACKQAAIQYgASACKQAYNwAYIAEgBTcAECABIAQ3AAggASAGNwAAIAApAAghBCAAKQAQIQUgACkAACEGIAEgACkAGDcAOCABIAU3ADAgASAENwAoIAEgBjcAICADQaABaiQAQQALBQBBv38LBQBB0AELbQEBfyMAQUBqIgIkACACIAFCIBAYGiACIAItAABB+AFxOgAAIAIgAi0AH0E/cUHAAHI6AB8gACACKQMQNwAQIAAgAikDCDcACCAAIAIpAwA3AAAgACACKQMYNwAYIAJBwAAQByACQUBrJABBAAvXFAIPfyd+IwBBgAJrIgMkAEF/IRACQCABEDcNACADQeAAaiABEEkNACMAQYAQayICJAAgAkGABWoiCiADQeAAaiIBEA0gASkCCCERIAEpAhAhEiABKQIYIRMgASkCACEUIAIgASkCIDcD4AIgAiATNwPYAiACIBI3A9ACIAIgETcDyAIgAiAUNwPAAiABKQIoIREgASkCMCESIAEpAjghEyABQUBrKQIAIRQgAiABKQJINwOIAyACIBQ3A4ADIAIgEzcD+AIgAiASNwPwAiACIBE3A+gCIAEpAlAhESABKQJYIRIgASkCYCETIAEpAmghFCACIAEpAnA3A7ADIAIgFDcDqAMgAiATNwOgAyACIBI3A5gDIAIgETcDkAMgAkHgA2oiASACQcACaiIHEBUgAkGgAWoiCCABIAJB2ARqIgUQBiACQcgBaiACQYgEaiIGIAJBsARqIgQQBiACQfABaiAEIAUQBiACQZgCaiABIAYQBiABIAggChAOIAcgASAFEAYgAkHoAmoiCiAGIAQQBiACQZADaiILIAQgBRAGIAJBuANqIgwgASAGEAYgAkGgBmoiCSAHEA0gASAIIAkQDiAHIAEgBRAGIAogBiAEEAYgCyAEIAUQBiAMIAEgBhAGIAJBwAdqIgkgBxANIAEgCCAJEA4gByABIAUQBiAKIAYgBBAGIAsgBCAFEAYgDCABIAYQBiACQeAIaiIJIAcQDSABIAggCRAOIAcgASAFEAYgCiAGIAQQBiALIAQgBRAGIAwgASAGEAYgAkGACmoiCSAHEA0gASAIIAkQDiAHIAEgBRAGIAogBiAEEAYgCyAEIAUQBiAMIAEgBhAGIAJBoAtqIgkgBxANIAEgCCAJEA4gByABIAUQBiAKIAYgBBAGIAsgBCAFEAYgDCABIAYQBiACQcAMaiIJIAcQDSABIAggCRAOIAcgASAFEAYgCiAGIAQQBiALIAQgBRAGIAwgASAGEAYgAkHgDWogBxANIAJCADcDICACQgA3AxggAkIANwMQIAJCADcDCCACQgA3AiwgAkIANwI0IAJCADcCPCACQgA3AkQgAkKAgICAEDcCTCACQgA3AwAgAkEBNgIoIAJB1ABqQQBBzAAQCBogAkH4AGohCSACQdAAaiEOIAJBKGohD0H8ASEBA0AgAiACKQMgNwOoDyACIAIpAxg3A6APIAIgAikDEDcDmA8gAiACKQMINwOQDyACIAIpAwA3A4gPIAIgAikDSDcD0A8gAiACKQNANwPIDyACIAIpAzg3A8APIAIgAikDMDcDuA8gAiACKQMoNwOwDyACIAIpA1A3A9gPIAIgAikDWDcD4A8gAiACKQNgNwPoDyACIAIpA2g3A/APIAIgAikDcDcD+A8gASIHQZCFAmosAAAhASACQeADaiACQYgPahAVAkAgAUEASgRAIAJBwAJqIg0gAkHgA2oiCCAFEAYgCiAGIAQQBiALIAQgBRAGIAwgCCAGEAYgCCANIAJBgAVqIAFB/gFxQQF2QaABbGoQDgwBCyABQQBODQAgAkHAAmoiDSACQeADaiIIIAUQBiAKIAYgBBAGIAsgBCAFEAYgDCAIIAYQBiAIIA0gAkGABWpBACABa0H+AXFBAXZBoAFsahBICyACIAJB4ANqIgEgBRAGIA8gBiAEEAYgDiAEIAUQBiAJIAEgBhAGIAdBAWshASAHDQALIAJBgAVqIgEgAhASIAFBIBAfIQEgAkGAEGokACABRQ0AIANBASADKAKIASIEazYCAEEAIRAgA0EAIAMoAqwBIgFrNgIkIANBACADKAKoASIKazYCICADQQAgAygCpAEiB2s2AhwgA0EAIAMoAqABIgtrNgIYIANBACADKAKcASICazYCFCADQQAgAygCmAEiDGs2AhAgA0EAIAMoApQBIgVrNgIMIANBACADKAKQASIIazYCCCADQQAgAygCjAEiBms2AgQgAyADECwgAyADKAIEIgmsIhkgAkEBdKwiIn4gAzQCACIRIAusIhJ+fCADKAIIIgusIhsgDKwiE358IAMoAgwiDKwiHiAFQQF0rCIjfnwgAygCECIOrCIfIAisIhR+fCADKAIUIgisIiQgBkEBdKwiJX58IAMoAhgiD6wiLiAEQQFqrCIXfnwgAygCHCIEQRNsrCIaIAFBAXSsIiZ+fCADKAIgIg1BE2ysIhUgCqwiGH58IAMoAiQiCkETbKwiFiAHQQF0rCInfnwgEyAZfiARIAKsIih+fCAbIAWsIil+fCAUIB5+fCAfIAasIip+fCAXICR+fCAPQRNsrCIcIAGsIit+fCAYIBp+fCAVIAesIix+fCASIBZ+fCAZICN+IBEgE358IBQgG358IB4gJX58IBcgH358IAhBE2ysIi0gJn58IBggHH58IBogJ358IBIgFX58IBYgIn58IjBCgICAEHwiMUIah3wiMkKAgIAIfCIzQhmHfCIgICBCgICAEHwiIUKAgIDgD4N9PgJIIAMgGSAlfiARIBR+fCAXIBt+fCAMQRNsrCIdICZ+fCAOQRNsrCIgIBh+fCAnIC1+fCASIBx+fCAaICJ+fCATIBV+fCAWICN+fCAXIBl+IBEgKn58IAtBE2ysIi8gK358IBggHX58ICAgLH58IBIgLX58IBwgKH58IBMgGn58IBUgKX58IBQgFn58IAlBE2ysICZ+IBEgF358IBggL358IB0gJ358IBIgIH58ICIgLX58IBMgHH58IBogI358IBQgFX58IBYgJX58Ii9CgICAEHwiNEIah3wiNUKAgIAIfCI2QhmHfCIdIB1CgICAEHwiN0KAgIDgD4N9PgI4IAMgEiAZfiARICx+fCAbICh+fCATIB5+fCAfICl+fCAUICR+fCAqIC5+fCAErCIdIBd+fCAVICt+fCAWIBh+fCAhQhqHfCIhICFCgICACHwiIUKAgIDwD4N9PgJMIAMgFCAZfiARICl+fCAbICp+fCAXIB5+fCAgICt+fCAYIC1+fCAcICx+fCASIBp+fCAVICh+fCATIBZ+fCA3QhqHfCIVIBVCgICACHwiFUKAgIDwD4N9PgI8IAMgGSAnfiARIBh+fCASIBt+fCAeICJ+fCATIB9+fCAjICR+fCAUIC5+fCAdICV+fCANrCIaIBd+fCAWICZ+fCAhQhmHfCIWIBZCgICAEHwiFkKAgIDgD4N9PgJQIAMgMiAzQoCAgPAPg30gMCAxQoCAgGCDfSAVQhmHfCIVQoCAgBB8IhxCGoh8PgJEIAMgFSAcQoCAgOAPg30+AkAgAyAYIBl+IBEgK358IBsgLH58IBIgHn58IB8gKH58IBMgJH58ICkgLn58IBQgHX58IBogKn58IAqsIBd+fCAWQhqHfCIRIBFCgICACHwiEUKAgIDwD4N9PgJUIAMgNSA2QoCAgPAPg30gLyA0QoCAgGCDfSARQhmHQhN+fCIRQoCAgBB8IhJCGoh8PgI0IAMgESASQoCAgOAPg30+AjAgACADQTBqEBILIANBgAJqJAAgEAsEAEEMCwQAQQILBABBbgsEAEERCwQAQTQLnwECAX8BfiMAQTBrIgEkACABIAApABg3AxggASAAKQAQNwMQIAEgACkAADcDACABIAApAAg3AwggASAAKQAkNwMgIAEgAUIoIABBIGpBACAAQbCQAigCABEIABogACABKQMYNwAYIAAgASkDEDcAECAAIAEpAwg3AAggACABKQMANwAAIAEpAyAhAiAAQQE2ACAgACACNwAkIAFBMGokAAsqAQF+IAAgASACECcgAEEBNgAgIAEpABAhAyAAQgA3ACwgACADNwAkQQALMAEBfiABQRgQFiAAIAEgAhAnIABBATYAICABKQAQIQMgAEIANwAsIAAgAzcAJEEACyQAQeSaAigCAAR/QQEFEExB0JoCQRAQFkHkmgJBATYCAEEACwvqBAEFfyMAQfAAayIGJAAgAkIAUgRAIAYgBSkAGDcDGCAGIAUpABA3AxAgBiAFKQAANwMAIAYgBSkACDcDCCAGIAMpAAA3A2AgBiAEPABoIAYgBEI4iDwAbyAGIARCMIg8AG4gBiAEQiiIPABtIAYgBEIgiDwAbCAGIARCGIg8AGsgBiAEQhCIPABqIAYgBEIIiDwAaQJAIAJCwABaBEADQEEAIQUgBkEgaiAGQeAAaiAGECkDQCAAIAVqIAZBIGoiByAFai0AACABIAVqLQAAczoAACAAIAVBAXIiA2ogAyAHai0AACABIANqLQAAczoAACAFQQJqIgVBwABHDQALIAYgBi0AaEEBaiIDOgBoIAYgBi0AaSADQQh2aiIDOgBpIAYgBi0AaiADQQh2aiIDOgBqIAYgBi0AayADQQh2aiIDOgBrIAYgBi0AbCADQQh2aiIDOgBsIAYgBi0AbSADQQh2aiIDOgBtIAYgBi0AbiADQQh2aiIDOgBuIAYgBi0AbyADQQh2ajoAbyABQUBrIQEgAEFAayEAIAJCQHwiAkI/Vg0ACyACUA0BC0EAIQUgBkEgaiAGQeAAaiAGECkgAqciA0EBcSEIIANBAUcEQCADQX5xIQlBACEDA0AgACAFaiAGQSBqIgogBWotAAAgASAFai0AAHM6AAAgACAFQQFyIgdqIAcgCmotAAAgASAHai0AAHM6AAAgBUECaiEFIANBAmoiAyAJRw0ACwsgCEUNACAAIAVqIAZBIGogBWotAAAgASAFai0AAHM6AAALIAZBIGpBwAAQByAGQSAQBwsgBkHwAGokAEEAC4IEAgZ/AX4jAEHwAGsiBCQAIAFCAFIEQCAEIAMpABg3AxggBCADKQAQNwMQIAQgAykAADcDACAEIAMpAAg3AwggAikAACEKIARCADcDaCAEIAo3A2ACQCABQsAAWgRAA0AgACAEQeAAaiAEECkgBCAELQBoQQFqIgI6AGggBCAELQBpIAJBCHZqIgI6AGkgBCAELQBqIAJBCHZqIgI6AGogBCAELQBrIAJBCHZqIgI6AGsgBCAELQBsIAJBCHZqIgI6AGwgBCAELQBtIAJBCHZqIgI6AG0gBCAELQBuIAJBCHZqIgI6AG4gBCAELQBvIAJBCHZqOgBvIABBQGshACABQkB8IgFCP1YNAAsgAVANAQtBACECIARBIGogBEHgAGogBBApIAGnIgVBA3EhB0EAIQMgBUEBa0EDTwRAIAVBfHEhCEEAIQUDQCAAIANqIARBIGoiCSADai0AADoAACAAIANBAXIiBmogBiAJai0AADoAACAAIANBAnIiBmogBEEgaiAGai0AADoAACAAIANBA3IiBmogBEEgaiAGai0AADoAACADQQRqIQMgBUEEaiIFIAhHDQALCyAHRQ0AA0AgACADaiAEQSBqIANqLQAAOgAAIANBAWohAyACQQFqIgIgB0cNAAsLIARBIGpBwAAQByAEQSAQBwsgBEHwAGokAEEAC4YGARR/IwBBsAJrIgIkACAAIAEtAAA6AAAgACABLQABOgABIAAgAS0AAjoAAiAAIAEtAAM6AAMgACABLQAEOgAEIAAgAS0ABToABSAAIAEtAAY6AAYgACABLQAHOgAHIAAgAS0ACDoACCAAIAEtAAk6AAkgACABLQAKOgAKIAAgAS0ACzoACyAAIAEtAAw6AAwgACABLQANOgANIAAgAS0ADjoADiAAIAEtAA86AA8gACABLQAQOgAQIAAgAS0AEToAESAAIAEtABI6ABIgACABLQATOgATIAAgAS0AFDoAFCAAIAEtABU6ABUgACABLQAWOgAWIAAgAS0AFzoAFyAAIAEtABg6ABggACABLQAZOgAZIAAgAS0AGjoAGiAAIAEtABs6ABsgACABLQAcOgAcIAAgAS0AHToAHSAAIAEtAB46AB4gAS0AHyEBIAAgAC0AAEH4AXE6AAAgACABQT9xQcAAcjoAHyACQTBqIAAQKiACKAKEASEBIAIoAlwhAyACKAKIASEEIAIoAmAhBSACKAKMASEGIAIoAmQhByACKAKQASEIIAIoAmghCSACKAKUASEKIAIoAmwhCyACKAKYASEMIAIoAnAhDSACKAKcASEOIAIoAnQhDyACKAKgASEQIAIoAnghESACKAKAASESIAIoAlghEyACIAIoAnwiFCACKAKkASIVajYCpAIgAiAQIBFqNgKgAiACIA4gD2o2ApwCIAIgDCANajYCmAIgAiAKIAtqNgKUAiACIAggCWo2ApACIAIgBiAHajYCjAIgAiAEIAVqNgKIAiACIAEgA2o2AoQCIAIgEiATajYCgAIgAiAVIBRrNgL0ASACIBAgEWs2AvABIAIgDiAPazYC7AEgAiAMIA1rNgLoASACIAogC2s2AuQBIAIgCCAJazYC4AEgAiAGIAdrNgLcASACIAQgBWs2AtgBIAIgASADazYC1AEgAiASIBNrNgLQASACQdABaiIBIAEQLCACIAJBgAJqIAEQBiAAIAIQEiACQbACaiQAQQAL+RwCPX8MfiMAQfACayIDJAADQCACIAZqLQAAIgQgBkGQhwJqIgktAABzIAdyIQcgBCAJLQDAAXMgBXIhBSAEIAktAKABcyAMciEMIAQgCS0AgAFzIAhyIQggBCAJLQBgcyANciENIAQgCUFAay0AAHMgC3IhCyAEIAktACBzIApyIQogBkEBaiIGQR9HDQALQX8hCSACLQAfQf8AcSIEIApyQf8BcUEBayAEIAdyQf8BcUEBa3IgBCALckH/AXFBAWtyIARB1wBzIA1yQf8BcUEBa3IgBEH/AHMiBCAIckH/AXFBAWtyIAQgDHJB/wFxQQFrciAEIAVyQf8BcUEBa3JBgAJxRQRAIAMgASkAGDcD6AIgAyABKQAQNwPgAiADIAEpAAAiQjcD0AIgAyABKQAINwPYAiADIEKnQfgBcToA0AIgAyADLQDvAkE/cUHAAHI6AO8CIANBoAJqIAIQSiADQgA3AoQCIANCADcCjAIgA0EANgKUAiADQgA3A9ABIANCADcD2AEgA0IANwPgASADQgA3AvQBIANBATYC8AEgA0IANwL8ASADQgA3A8ABIANCADcDyAEgAyADKQO4AjcDqAEgAyADKQOwAjcDoAEgAyADKQOoAjcDmAEgAyADKQOgAjcDkAEgAyADKQPAAjcDsAEgA0IANwJ0IANCADcCfCADQQA2AoQBIANCADcCZCADQQE2AmAgA0IANwJsQf4BIQJBACEEA0AgAygClAIhCSADKAK0ASEGIAMoAmAhByADKALAASEKIAMoApABIQsgAygC8AEhDSADKAJkIQggAygCxAEhDCADKAKUASEFIAMoAvQBIRAgAygCaCEOIAMoAsgBIREgAygCmAEhEiADKAL4ASETIAMoAmwhDyADKALMASEUIAMoApwBIRUgAygC/AEhFiADKAJwIRggAygC0AEhHCADKAKgASEdIAMoAoACIR4gAygCdCEaIAMoAtQBIR8gAygCpAEhICADKAKEAiEhIAMoAnghGSADKALYASEiIAMoAqgBISMgAygCiAIhJCADKAJ8IRsgAygC3AEhJSADKAKsASEmIAMoAowCIScgAygCgAEhFyADKALgASEoIAMoArABISkgAygCkAIhLCADQQAgBCADQdACaiACIgFBA3ZqLQAAIAJBB3F2QQFxIgRzayICIAMoAoQBIiogAygC5AEiK3NxIi0gKnMiKjYChAEgAyAGIAYgCXMgAnEiLnMiLyAqazYCVCADIBcgFyAocyACcSIwcyIGNgKAASADICkgKSAscyACcSIXcyIpIAZrNgJQIAMgGyAbICVzIAJxIjFzIhs2AnwgAyAmICYgJ3MgAnEiMnMiJiAbazYCTCADIBkgGSAicyACcSIzcyIZNgJ4IAMgIyAjICRzIAJxIjRzIiMgGWs2AkggAyAaIBogH3MgAnEiNXMiGjYCdCADICAgICAhcyACcSI2cyIgIBprNgJEIAMgGCAYIBxzIAJxIjdzIhg2AnAgAyAdIB0gHnMgAnEiOHMiHSAYazYCQCADIA8gDyAUcyACcSI5cyIPNgJsIAMgFSAVIBZzIAJxIjpzIhUgD2s2AjwgAyAOIA4gEXMgAnEiO3MiDjYCaCADIBIgEiATcyACcSI8cyISIA5rNgI4IAMgCCAIIAxzIAJxIj1zIgg2AmQgAyAFIAUgEHMgAnEiPnMiBSAIazYCNCADIAcgByAKcyACcSI/cyIHNgJgIAMgCyALIA1zIAJxIgJzIgsgB2s2AjAgAyAJIC5zIgkgKyAtcyIrazYCJCADIBcgLHMiFyAoIDBzIihrNgIgIAMgJyAycyInICUgMXMiJWs2AhwgAyAkIDRzIiQgIiAzcyIiazYCGCADICEgNnMiISAfIDVzIh9rNgIUIAMgHiA4cyIeIBwgN3MiHGs2AhAgAyAWIDpzIhYgFCA5cyIUazYCDCADIBMgPHMiEyARIDtzIhFrNgIIIAMgECA+cyIQIAwgPXMiDGs2AgQgAyACIA1zIgIgCiA/cyIKazYCACADIAkgK2o2ApQCIAMgFyAoajYCkAIgAyAlICdqNgKMAiADICIgJGo2AogCIAMgHyAhajYChAIgAyAcIB5qNgKAAiADIBEgE2o2AvgBIAMgDCAQajYC9AEgAyACIApqNgLwASADIBQgFmo2AvwBIAMgKiAvajYC5AEgAyAGIClqNgLgASADIBsgJmo2AtwBIAMgGSAjajYC2AEgAyAaICBqNgLUASADIBggHWo2AtABIAMgDyAVajYCzAEgAyAOIBJqNgLIASADIAUgCGo2AsQBIAMgByALajYCwAEgA0HgAGoiGyADQTBqIhogA0HwAWoiGRAGIANBwAFqIhcgFyADEAYgGiADEAUgAyAZEAUgAygCwAEhAiADKAJgIQkgAygCxAEhBiADKAJkIQcgAygCyAEhCiADKAJoIQsgAygCzAEhDSADKAJsIQggAygC0AEhDCADKAJwIQUgAygC1AEhECADKAJ0IQ4gAygC2AEhESADKAJ4IRIgAygC3AEhEyADKAJ8IQ8gAygC4AEhFCADKAKAASEVIAMgAygC5AEiFiADKAKEASIYajYCtAEgAyAUIBVqNgKwASADIA8gE2o2AqwBIAMgESASajYCqAEgAyAOIBBqNgKkASADIAUgDGo2AqABIAMgCCANajYCnAEgAyAKIAtqNgKYASADIAYgB2o2ApQBIAMgAiAJajYCkAEgAyAYIBZrNgLkASADIBUgFGs2AuABIAMgDyATazYC3AEgAyASIBFrNgLYASADIA4gEGs2AtQBIAMgBSAMazYC0AEgAyAIIA1rNgLMASADIAsgCms2AsgBIAMgByAGazYCxAEgAyAJIAJrNgLAASAZIAMgGhAGIAMoAjQhAiADKAIEIQUgAygCOCEJIAMoAgghECADKAJAIQYgAygCECEOIAMoAjwhByADKAIMIREgAygCSCEKIAMoAhghEiADKAJEIQsgAygCFCETIAMoAlAhDSADKAIgIQ8gAygCTCEIIAMoAhwhFCADKAJUIQwgAygCJCEVIAMgAygCACADKAIwIhZrIhg2AgAgAyAVIAxrIhU2AiQgAyAUIAhrIhQ2AhwgAyAPIA1rIg82AiAgAyATIAtrIhM2AhQgAyASIAprIhI2AhggAyARIAdrIhE2AgwgAyAOIAZrIg42AhAgAyAQIAlrIhA2AgggAyAFIAJrIgU2AgQgFyAXEAUgAyAVrELCtgd+IkJCgICACHwiRkIZh0ITfiAYrELCtgd+fCJAIEBCgICAEHwiQEKAgIDgD4N9pyIVNgJgIAMgBaxCwrYHfiJBIEFCgICACHwiQUKAgIDwD4N9IEBCGoh8pyIFNgJkIAMgEKxCwrYHfiBBQhmHfCJAIEBCgICAEHwiQEKAgIDgD4N9pyIQNgJoIAMgDqxCwrYHfiARrELCtgd+IkFCgICACHwiR0IZh3wiQyBDQoCAgBB8IkNCgICA4A+DfaciDjYCcCADIBKsQsK2B34gE6xCwrYHfiJIQoCAgAh8IklCGYd8IkQgREKAgIAQfCJEQoCAgOAPg32nIhE2AnggAyAPrELCtgd+IBSsQsK2B34iSkKAgIAIfCJLQhmHfCJFIEVCgICAEHwiRUKAgIDgD4N9pyISNgKAASADIEBCGoggQXwgR0KAgIDwD4N9pyITNgJsIAMgQ0IaiCBIfCBJQoCAgPAPg32nIg82AnQgAyBEQhqIIEp8IEtCgICA8A+DfaciFDYCfCADIEVCGoggQnwgRkKAgIDwD4N9pyIYNgKEASADQZABaiIZIBkQBSADIAwgGGo2AlQgAyANIBJqNgJQIAMgCCAUajYCTCADIAogEWo2AkggAyALIA9qNgJEIAMgBiAOajYCQCADIAcgE2o2AjwgAyAJIBBqNgI4IAMgAiAFajYCNCADIBUgFmo2AjAgAUEBayECIBsgA0GgAmogFxAGIBcgAyAaEAYgAQ0ACyADKAKQASEQIAMoAvABIQIgAygClAEhDiADKAL0ASEGIAMoApgBIREgAygC+AEhByADKAKcASESIAMoAvwBIQogAygCoAEhEyADKAKAAiELIAMoAqQBIQ8gAygChAIhDSADKAKoASEUIAMoAogCIQggAygCrAEhFSADKAKMAiEMIAMoArABIRYgAygCkAIhBSADQQAgBGsiASADKAKUAiIEIAMoArQBc3EgBHM2ApQCIAMgBSAFIBZzIAFxczYCkAIgAyAMIAwgFXMgAXFzNgKMAiADIAggCCAUcyABcXM2AogCIAMgDSANIA9zIAFxczYChAIgAyALIAsgE3MgAXFzNgKAAiADIAogCiAScyABcXM2AvwBIAMgByAHIBFzIAFxczYC+AEgAyAGIAYgDnMgAXFzNgL0ASADIAIgAiAQcyABcXM2AvABIAMoAsABIQIgAygCYCEFIAMoAsQBIQQgAygCZCEQIAMoAsgBIQYgAygCaCEOIAMoAswBIQcgAygCbCERIAMoAtABIQogAygCcCESIAMoAtQBIQsgAygCdCETIAMoAtgBIQ0gAygCeCEPIAMoAtwBIQggAygCfCEUIAMoAuABIQwgAygCgAEhFSADIAMoAuQBIhYgAygChAFzIAFxIBZzNgLkASADIAwgDCAVcyABcXM2AuABIAMgCCAIIBRzIAFxczYC3AEgAyANIA0gD3MgAXFzNgLYASADIAsgCyATcyABcXM2AtQBIAMgCiAKIBJzIAFxczYC0AEgAyAHIAcgEXMgAXFzNgLMASADIAYgBiAOcyABcXM2AsgBIAMgBCAEIBBzIAFxczYCxAEgAyACIAIgBXMgAXFzNgLAASADQcABaiIBIAEQLCADQfABaiICIAIgARAGIAAgAhASIANB0AJqQSAQB0EAIQkLIANB8AJqJAAgCQuJDAEHfwJAIABFDQAgAEEIayICIABBBGsoAgAiAUF4cSIAaiEFAkAgAUEBcQ0AIAFBA3FFDQEgAiACKAIAIgFrIgJB5JYCKAIASQ0BIAAgAWohAEHolgIoAgAgAkcEQCABQf8BTQRAIAIoAggiBCABQQN2IgFBA3RB/JYCakYaIAQgAigCDCIDRgRAQdSWAkHUlgIoAgBBfiABd3E2AgAMAwsgBCADNgIMIAMgBDYCCAwCCyACKAIYIQYCQCACIAIoAgwiAUcEQCACKAIIIgMgATYCDCABIAM2AggMAQsCQCACQRRqIgQoAgAiAw0AIAJBEGoiBCgCACIDDQBBACEBDAELA0AgBCEHIAMiAUEUaiIEKAIAIgMNACABQRBqIQQgASgCECIDDQALIAdBADYCAAsgBkUNAQJAIAIoAhwiBEECdEGEmQJqIgMoAgAgAkYEQCADIAE2AgAgAQ0BQdiWAkHYlgIoAgBBfiAEd3E2AgAMAwsgBkEQQRQgBigCECACRhtqIAE2AgAgAUUNAgsgASAGNgIYIAIoAhAiAwRAIAEgAzYCECADIAE2AhgLIAIoAhQiA0UNASABIAM2AhQgAyABNgIYDAELIAUoAgQiAUEDcUEDRw0AQdyWAiAANgIAIAUgAUF+cTYCBCACIABBAXI2AgQgACACaiAANgIADwsgAiAFTw0AIAUoAgQiAUEBcUUNAAJAIAFBAnFFBEBB7JYCKAIAIAVGBEBB7JYCIAI2AgBB4JYCQeCWAigCACAAaiIANgIAIAIgAEEBcjYCBCACQeiWAigCAEcNA0HclgJBADYCAEHolgJBADYCAA8LQeiWAigCACAFRgRAQeiWAiACNgIAQdyWAkHclgIoAgAgAGoiADYCACACIABBAXI2AgQgACACaiAANgIADwsgAUF4cSAAaiEAAkAgAUH/AU0EQCAFKAIIIgQgAUEDdiIBQQN0QfyWAmpGGiAEIAUoAgwiA0YEQEHUlgJB1JYCKAIAQX4gAXdxNgIADAILIAQgAzYCDCADIAQ2AggMAQsgBSgCGCEGAkAgBSAFKAIMIgFHBEAgBSgCCCIDQeSWAigCAEkaIAMgATYCDCABIAM2AggMAQsCQCAFQRRqIgQoAgAiAw0AIAVBEGoiBCgCACIDDQBBACEBDAELA0AgBCEHIAMiAUEUaiIEKAIAIgMNACABQRBqIQQgASgCECIDDQALIAdBADYCAAsgBkUNAAJAIAUoAhwiBEECdEGEmQJqIgMoAgAgBUYEQCADIAE2AgAgAQ0BQdiWAkHYlgIoAgBBfiAEd3E2AgAMAgsgBkEQQRQgBigCECAFRhtqIAE2AgAgAUUNAQsgASAGNgIYIAUoAhAiAwRAIAEgAzYCECADIAE2AhgLIAUoAhQiA0UNACABIAM2AhQgAyABNgIYCyACIABBAXI2AgQgACACaiAANgIAIAJB6JYCKAIARw0BQdyWAiAANgIADwsgBSABQX5xNgIEIAIgAEEBcjYCBCAAIAJqIAA2AgALIABB/wFNBEAgAEF4cUH8lgJqIQECf0HUlgIoAgAiA0EBIABBA3Z0IgBxRQRAQdSWAiAAIANyNgIAIAEMAQsgASgCCAshACABIAI2AgggACACNgIMIAIgATYCDCACIAA2AggPC0EfIQQgAEH///8HTQRAIABBJiAAQQh2ZyIBa3ZBAXEgAUEBdGtBPmohBAsgAiAENgIcIAJCADcCECAEQQJ0QYSZAmohBwJAAkACQEHYlgIoAgAiA0EBIAR0IgFxRQRAQdiWAiABIANyNgIAIAcgAjYCACACIAc2AhgMAQsgAEEZIARBAXZrQQAgBEEfRxt0IQQgBygCACEBA0AgASIDKAIEQXhxIABGDQIgBEEddiEBIARBAXQhBCADIAFBBHFqIgdBEGooAgAiAQ0ACyAHIAI2AhAgAiADNgIYCyACIAI2AgwgAiACNgIIDAELIAMoAggiACACNgIMIAMgAjYCCCACQQA2AhggAiADNgIMIAIgADYCCAtB9JYCQfSWAigCAEEBayIAQX8gABs2AgALC60pAQt/IwBBEGsiCyQAAkACQAJAAkACQAJAAkACQAJAIABB9AFNBEBB1JYCKAIAIgZBECAAQQtqQXhxIABBC0kbIgVBA3YiAHYiAUEDcQRAAkAgAUF/c0EBcSAAaiICQQN0IgFB/JYCaiIAIAFBhJcCaigCACIBKAIIIgRGBEBB1JYCIAZBfiACd3E2AgAMAQsgBCAANgIMIAAgBDYCCAsgAUEIaiEAIAEgAkEDdCICQQNyNgIEIAEgAmoiASABKAIEQQFyNgIEDAoLIAVB3JYCKAIAIgdNDQEgAQRAAkBBAiAAdCICQQAgAmtyIAEgAHRxIgBBACAAa3FoIgFBA3QiAEH8lgJqIgIgAEGElwJqKAIAIgAoAggiBEYEQEHUlgIgBkF+IAF3cSIGNgIADAELIAQgAjYCDCACIAQ2AggLIAAgBUEDcjYCBCAAIAVqIgggAUEDdCIBIAVrIgRBAXI2AgQgACABaiAENgIAIAcEQCAHQXhxQfyWAmohAUHolgIoAgAhAgJ/IAZBASAHQQN2dCIDcUUEQEHUlgIgAyAGcjYCACABDAELIAEoAggLIQMgASACNgIIIAMgAjYCDCACIAE2AgwgAiADNgIICyAAQQhqIQBB6JYCIAg2AgBB3JYCIAQ2AgAMCgtB2JYCKAIAIgpFDQEgCkEAIAprcWhBAnRBhJkCaigCACICKAIEQXhxIAVrIQMgAiEBA0ACQCABKAIQIgBFBEAgASgCFCIARQ0BCyAAKAIEQXhxIAVrIgEgAyABIANJIgEbIQMgACACIAEbIQIgACEBDAELCyACKAIYIQkgAiACKAIMIgRHBEAgAigCCCIAQeSWAigCAEkaIAAgBDYCDCAEIAA2AggMCQsgAkEUaiIBKAIAIgBFBEAgAigCECIARQ0DIAJBEGohAQsDQCABIQggACIEQRRqIgEoAgAiAA0AIARBEGohASAEKAIQIgANAAsgCEEANgIADAgLQX8hBSAAQb9/Sw0AIABBC2oiAEF4cSEFQdiWAigCACIIRQ0AQQAgBWshAwJAAkACQAJ/QQAgBUGAAkkNABpBHyAFQf///wdLDQAaIAVBJiAAQQh2ZyIAa3ZBAXEgAEEBdGtBPmoLIgdBAnRBhJkCaigCACIBRQRAQQAhAAwBC0EAIQAgBUEZIAdBAXZrQQAgB0EfRxt0IQIDQAJAIAEoAgRBeHEgBWsiBiADTw0AIAEhBCAGIgMNAEEAIQMgASEADAMLIAAgASgCFCIGIAYgASACQR12QQRxaigCECIBRhsgACAGGyEAIAJBAXQhAiABDQALCyAAIARyRQRAQQAhBEECIAd0IgBBACAAa3IgCHEiAEUNAyAAQQAgAGtxaEECdEGEmQJqKAIAIQALIABFDQELA0AgACgCBEF4cSAFayICIANJIQEgAiADIAEbIQMgACAEIAEbIQQgACgCECIBBH8gAQUgACgCFAsiAA0ACwsgBEUNACADQdyWAigCACAFa08NACAEKAIYIQcgBCAEKAIMIgJHBEAgBCgCCCIAQeSWAigCAEkaIAAgAjYCDCACIAA2AggMBwsgBEEUaiIBKAIAIgBFBEAgBCgCECIARQ0DIARBEGohAQsDQCABIQYgACICQRRqIgEoAgAiAA0AIAJBEGohASACKAIQIgANAAsgBkEANgIADAYLIAVB3JYCKAIAIgRNBEBB6JYCKAIAIQACQCAEIAVrIgFBEE8EQCAAIAVqIgIgAUEBcjYCBCAAIARqIAE2AgAgACAFQQNyNgIEDAELIAAgBEEDcjYCBCAAIARqIgEgASgCBEEBcjYCBEEAIQJBACEBC0HclgIgATYCAEHolgIgAjYCACAAQQhqIQAMCAsgBUHglgIoAgAiAkkEQEHglgIgAiAFayIBNgIAQeyWAkHslgIoAgAiACAFaiICNgIAIAIgAUEBcjYCBCAAIAVBA3I2AgQgAEEIaiEADAgLQQAhACAFQS9qIgMCf0GsmgIoAgAEQEG0mgIoAgAMAQtBuJoCQn83AgBBsJoCQoCggICAgAQ3AgBBrJoCIAtBDGpBcHFB2KrVqgVzNgIAQcCaAkEANgIAQZCaAkEANgIAQYAgCyIBaiIGQQAgAWsiCHEiASAFTQ0HQYyaAigCACIEBEBBhJoCKAIAIgcgAWoiCSAHTQ0IIAQgCUkNCAsCQEGQmgItAABBBHFFBEACQAJAAkACQEHslgIoAgAiBARAQZSaAiEAA0AgBCAAKAIAIgdPBEAgByAAKAIEaiAESw0DCyAAKAIIIgANAAsLQQAQHCICQX9GDQMgASEGQbCaAigCACIAQQFrIgQgAnEEQCABIAJrIAIgBGpBACAAa3FqIQYLIAUgBk8NA0GMmgIoAgAiAARAQYSaAigCACIEIAZqIgggBE0NBCAAIAhJDQQLIAYQHCIAIAJHDQEMBQsgBiACayAIcSIGEBwiAiAAKAIAIAAoAgRqRg0BIAIhAAsgAEF/Rg0BIAYgBUEwak8EQCAAIQIMBAtBtJoCKAIAIgIgAyAGa2pBACACa3EiAhAcQX9GDQEgAiAGaiEGIAAhAgwDCyACQX9HDQILQZCaAkGQmgIoAgBBBHI2AgALIAEQHCECQQAQHCEAIAJBf0YNBSAAQX9GDQUgACACTQ0FIAAgAmsiBiAFQShqTQ0FC0GEmgJBhJoCKAIAIAZqIgA2AgBBiJoCKAIAIABJBEBBiJoCIAA2AgALAkBB7JYCKAIAIgMEQEGUmgIhAANAIAIgACgCACIBIAAoAgQiBGpGDQIgACgCCCIADQALDAQLQeSWAigCACIAQQAgACACTRtFBEBB5JYCIAI2AgALQQAhAEGYmgIgBjYCAEGUmgIgAjYCAEH0lgJBfzYCAEH4lgJBrJoCKAIANgIAQaCaAkEANgIAA0AgAEEDdCIBQYSXAmogAUH8lgJqIgQ2AgAgAUGIlwJqIAQ2AgAgAEEBaiIAQSBHDQALQeCWAiAGQShrIgBBeCACa0EHcUEAIAJBCGpBB3EbIgFrIgQ2AgBB7JYCIAEgAmoiATYCACABIARBAXI2AgQgACACakEoNgIEQfCWAkG8mgIoAgA2AgAMBAsgAC0ADEEIcQ0CIAEgA0sNAiACIANNDQIgACAEIAZqNgIEQeyWAiADQXggA2tBB3FBACADQQhqQQdxGyIAaiIBNgIAQeCWAkHglgIoAgAgBmoiAiAAayIANgIAIAEgAEEBcjYCBCACIANqQSg2AgRB8JYCQbyaAigCADYCAAwDC0EAIQQMBQtBACECDAMLQeSWAigCACACSwRAQeSWAiACNgIACyACIAZqIQFBlJoCIQACQAJAAkACQAJAAkADQCABIAAoAgBHBEAgACgCCCIADQEMAgsLIAAtAAxBCHFFDQELQZSaAiEAA0AgAyAAKAIAIgFPBEAgASAAKAIEaiIEIANLDQMLIAAoAgghAAwACwALIAAgAjYCACAAIAAoAgQgBmo2AgQgAkF4IAJrQQdxQQAgAkEIakEHcRtqIgcgBUEDcjYCBCABQXggAWtBB3FBACABQQhqQQdxG2oiBiAFIAdqIgVrIQAgAyAGRgRAQeyWAiAFNgIAQeCWAkHglgIoAgAgAGoiADYCACAFIABBAXI2AgQMAwtB6JYCKAIAIAZGBEBB6JYCIAU2AgBB3JYCQdyWAigCACAAaiIANgIAIAUgAEEBcjYCBCAAIAVqIAA2AgAMAwsgBigCBCIDQQNxQQFGBEAgA0F4cSEJAkAgA0H/AU0EQCAGKAIIIgEgA0EDdiIEQQN0QfyWAmpGGiABIAYoAgwiAkYEQEHUlgJB1JYCKAIAQX4gBHdxNgIADAILIAEgAjYCDCACIAE2AggMAQsgBigCGCEIAkAgBiAGKAIMIgJHBEAgBigCCCIBIAI2AgwgAiABNgIIDAELAkAgBkEUaiIDKAIAIgENACAGQRBqIgMoAgAiAQ0AQQAhAgwBCwNAIAMhBCABIgJBFGoiAygCACIBDQAgAkEQaiEDIAIoAhAiAQ0ACyAEQQA2AgALIAhFDQACQCAGKAIcIgFBAnRBhJkCaiIEKAIAIAZGBEAgBCACNgIAIAINAUHYlgJB2JYCKAIAQX4gAXdxNgIADAILIAhBEEEUIAgoAhAgBkYbaiACNgIAIAJFDQELIAIgCDYCGCAGKAIQIgEEQCACIAE2AhAgASACNgIYCyAGKAIUIgFFDQAgAiABNgIUIAEgAjYCGAsgBiAJaiIGKAIEIQMgACAJaiEACyAGIANBfnE2AgQgBSAAQQFyNgIEIAAgBWogADYCACAAQf8BTQRAIABBeHFB/JYCaiEBAn9B1JYCKAIAIgJBASAAQQN2dCIAcUUEQEHUlgIgACACcjYCACABDAELIAEoAggLIQAgASAFNgIIIAAgBTYCDCAFIAE2AgwgBSAANgIIDAMLQR8hAyAAQf///wdNBEAgAEEmIABBCHZnIgFrdkEBcSABQQF0a0E+aiEDCyAFIAM2AhwgBUIANwIQIANBAnRBhJkCaiEBAkBB2JYCKAIAIgJBASADdCIEcUUEQEHYlgIgAiAEcjYCACABIAU2AgAMAQsgAEEZIANBAXZrQQAgA0EfRxt0IQMgASgCACECA0AgAiIBKAIEQXhxIABGDQMgA0EddiECIANBAXQhAyABIAJBBHFqIgQoAhAiAg0ACyAEIAU2AhALIAUgATYCGCAFIAU2AgwgBSAFNgIIDAILQeCWAiAGQShrIgBBeCACa0EHcUEAIAJBCGpBB3EbIgFrIgg2AgBB7JYCIAEgAmoiATYCACABIAhBAXI2AgQgACACakEoNgIEQfCWAkG8mgIoAgA2AgAgAyAEQScgBGtBB3FBACAEQSdrQQdxG2pBL2siACAAIANBEGpJGyIBQRs2AgQgAUGcmgIpAgA3AhAgAUGUmgIpAgA3AghBnJoCIAFBCGo2AgBBmJoCIAY2AgBBlJoCIAI2AgBBoJoCQQA2AgAgAUEYaiEAA0AgAEEHNgIEIABBCGohAiAAQQRqIQAgAiAESQ0ACyABIANGDQMgASABKAIEQX5xNgIEIAMgASADayICQQFyNgIEIAEgAjYCACACQf8BTQRAIAJBeHFB/JYCaiEAAn9B1JYCKAIAIgFBASACQQN2dCICcUUEQEHUlgIgASACcjYCACAADAELIAAoAggLIQEgACADNgIIIAEgAzYCDCADIAA2AgwgAyABNgIIDAQLQR8hACACQf///wdNBEAgAkEmIAJBCHZnIgBrdkEBcSAAQQF0a0E+aiEACyADIAA2AhwgA0IANwIQIABBAnRBhJkCaiEBAkBB2JYCKAIAIgRBASAAdCIGcUUEQEHYlgIgBCAGcjYCACABIAM2AgAMAQsgAkEZIABBAXZrQQAgAEEfRxt0IQAgASgCACEEA0AgBCIBKAIEQXhxIAJGDQQgAEEddiEEIABBAXQhACABIARBBHFqIgYoAhAiBA0ACyAGIAM2AhALIAMgATYCGCADIAM2AgwgAyADNgIIDAMLIAEoAggiACAFNgIMIAEgBTYCCCAFQQA2AhggBSABNgIMIAUgADYCCAsgB0EIaiEADAULIAEoAggiACADNgIMIAEgAzYCCCADQQA2AhggAyABNgIMIAMgADYCCAtB4JYCKAIAIgAgBU0NAEHglgIgACAFayIBNgIAQeyWAkHslgIoAgAiACAFaiICNgIAIAIgAUEBcjYCBCAAIAVBA3I2AgQgAEEIaiEADAMLQdCWAkEwNgIAQQAhAAwCCwJAIAdFDQACQCAEKAIcIgBBAnRBhJkCaiIBKAIAIARGBEAgASACNgIAIAINAUHYlgIgCEF+IAB3cSIINgIADAILIAdBEEEUIAcoAhAgBEYbaiACNgIAIAJFDQELIAIgBzYCGCAEKAIQIgAEQCACIAA2AhAgACACNgIYCyAEKAIUIgBFDQAgAiAANgIUIAAgAjYCGAsCQCADQQ9NBEAgBCADIAVqIgBBA3I2AgQgACAEaiIAIAAoAgRBAXI2AgQMAQsgBCAFQQNyNgIEIAQgBWoiAiADQQFyNgIEIAIgA2ogAzYCACADQf8BTQRAIANBeHFB/JYCaiEAAn9B1JYCKAIAIgFBASADQQN2dCIDcUUEQEHUlgIgASADcjYCACAADAELIAAoAggLIQEgACACNgIIIAEgAjYCDCACIAA2AgwgAiABNgIIDAELQR8hACADQf///wdNBEAgA0EmIANBCHZnIgBrdkEBcSAAQQF0a0E+aiEACyACIAA2AhwgAkIANwIQIABBAnRBhJkCaiEBAkACQCAIQQEgAHQiBnFFBEBB2JYCIAYgCHI2AgAgASACNgIADAELIANBGSAAQQF2a0EAIABBH0cbdCEAIAEoAgAhBQNAIAUiASgCBEF4cSADRg0CIABBHXYhBiAAQQF0IQAgASAGQQRxaiIGKAIQIgUNAAsgBiACNgIQCyACIAE2AhggAiACNgIMIAIgAjYCCAwBCyABKAIIIgAgAjYCDCABIAI2AgggAkEANgIYIAIgATYCDCACIAA2AggLIARBCGohAAwBCwJAIAlFDQACQCACKAIcIgBBAnRBhJkCaiIBKAIAIAJGBEAgASAENgIAIAQNAUHYlgIgCkF+IAB3cTYCAAwCCyAJQRBBFCAJKAIQIAJGG2ogBDYCACAERQ0BCyAEIAk2AhggAigCECIABEAgBCAANgIQIAAgBDYCGAsgAigCFCIARQ0AIAQgADYCFCAAIAQ2AhgLAkAgA0EPTQRAIAIgAyAFaiIAQQNyNgIEIAAgAmoiACAAKAIEQQFyNgIEDAELIAIgBUEDcjYCBCACIAVqIgQgA0EBcjYCBCADIARqIAM2AgAgBwRAIAdBeHFB/JYCaiEAQeiWAigCACEBAn9BASAHQQN2dCIFIAZxRQRAQdSWAiAFIAZyNgIAIAAMAQsgACgCCAshBiAAIAE2AgggBiABNgIMIAEgADYCDCABIAY2AggLQeiWAiAENgIAQdyWAiADNgIACyACQQhqIQALIAtBEGokACAACwoAIAAgARA6QQALDAAgACABIAIQO0EAC7QBAQF/IAAgASgAAEH///8fcTYCACAAIAEoAANBAnZBg/7/H3E2AgQgACABKAAGQQR2Qf+B/x9xNgIIIAAgASgACUEGdkH//8AfcTYCDCABKAAMIQIgAEIANwIUIABCADcCHCAAQQA2AiQgACACQQh2Qf//P3E2AhAgACABKAAQNgIoIAAgASgAFDYCLCAAIAEoABg2AjAgASgAHCEBIABBADoAUCAAQgA3AzggACABNgI0QQAL6AEBA38jACIFQcABa0FAcSIEJAAgBCADKAAAQf///x9xNgJAIAQgAygAA0ECdkGD/v8fcTYCRCAEIAMoAAZBBHZB/4H/H3E2AkggBCADKAAJQQZ2Qf//wB9xNgJMIAMoAAwhBiAEQgA3AlQgBEIANwJcIARBADYCZCAEIAZBCHZB//8/cTYCUCAEIAMoABA2AmggBCADKAAUNgJsIAQgAygAGDYCcCADKAAcIQMgBEEAOgCQASAEQgA3A3ggBCADNgJ0IARBQGsiAyABIAIQOyADIARBMGoiARA6IAAgARAtIQAgBSQAIAAL1QEBA38jACIFQYABa0FAcSIEJAAgBCADKAAAQf///x9xNgIAIAQgAygAA0ECdkGD/v8fcTYCBCAEIAMoAAZBBHZB/4H/H3E2AgggBCADKAAJQQZ2Qf//wB9xNgIMIAMoAAwhBiAEQgA3AhQgBEIANwIcIARBADYCJCAEIAZBCHZB//8/cTYCECAEIAMoABA2AiggBCADKAAUNgIsIAQgAygAGDYCMCADKAAcIQMgBEEAOgBQIARCADcDOCAEIAM2AjQgBCABIAIQOyAEIAAQOiAFJABBAAsmAQJ/AkBB4JoCKAIAIgBFDQAgACgCFCIARQ0AIAARAgAhAQsgAQsOACAAIAGtQYAIIAIQFwtNAQN/IwBBEGsiAiQAIABBAk8EQEEAIABrIABwIQEDQCACQQA6AA9B2JACIAJBD2pBABAAIgMgAUkNAAsgAyAAcCEBCyACQRBqJAAgAQssAQJ/IwBBEGsiACQAIABBADoAD0HYkAIgAEEPakEAEAAhASAAQRBqJAAgAQtzAgJ/AX4CQCMAQRBrIgQkACABrSACrUIghoQiBUKAgICAEFQEQCAFpyIBBEADQCAEQQA6AA8gACADakHYkAIgBEEPakEAEAA6AAAgA0EBaiIDIAFHDQALCyAEQRBqJAAMAQtB2AlBzAhBxQFBjAgQAQALCxIAIAAgASACrSADrUIghoQQDAsWACAAIAEgAq0gA61CIIaEIARBABAxCxsAIAAgASACIAOtIAStQiCGhCAFQQAQMhpBAAuKAQEBfgJ/AkACQAJAIAOtIAStQiCGhCIGQsAAVA0AIAZCQHwiBkK/////D1YNACACIAJBQGsiAyAGIAVBABAxRQ0BIABFDQAgAEEAIAanEAgaC0F/IQIgAUUNASABQgA3AwBBfwwCCyABBEAgASAGNwMAC0EAIQIgAEUNACAAIAMgBqcQJBoLIAILC3wCAn8BfiMAQRBrIgYkACAAIAZBCGogAEFAayACIAOtIAStQiCGhCIIpyICECQgCCAFQQAQMhoCQCAGKQMIQsAAUgRAIAEEQCABQgA3AwALIABBACACQUBrEAgaQX8hBwwBCyABRQ0AIAEgCEJAfTcDAAsgBkEQaiQAIAcL+gUBCX4gBCkAACIFQvXKzYPXrNu38wCFIQkgBULh5JXz1uzZvOwAhSEGIAQpAAgiBULt3pHzlszct+QAhSELIAVC88rRy6eM2bL0AIUhByABIAEgAq0gA61CIIaEIgynIgJqIAJBB3EiA2siAkcEQANAIAYgASkAACINIAeFIgh8IgcgCSALfCIJIAtCDYmFIgV8IgogBUIRiYUiBkINiSAGIAhCEIkgB4UiByAJQiCJfCIFfCIJhSIGQhGJIAYgB0IViSAFhSIHIApCIIl8IgV8IgaFIQsgB0IQiSAFhSIFQhWJIAUgCUIgiXwiBYUhByAGQiCJIQYgBSANhSEJIAFBCGoiASACRw0ACyACIQELIAxCOIYhCAJAAkACQAJAAkACQAJAAkAgA0EBaw4HBgUEAwIBAAcLIAExAAZCMIYgCIQhCAsgATEABUIohiAIhCEICyABMQAEQiCGIAiEIQgLIAExAANCGIYgCIQhCAsgATEAAkIQhiAIhCEICyABMQABQgiGIAiEIQgLIAggATEAAIQhCAsgACAHIAiFIgVCEIkgBSAGfCIKhSIFQhWJIAUgCSALfCIGQiCJfCIJhSIFQhCJIAUgCiAGIAtCDYmFIgd8IgZCIIl8IgqFIgVCFYkgBSAJIAYgB0IRiYUiB3wiBkIgiXwiCYUiBUIQiSAKIAdCDYkgBoUiB3wiBkIgiUL/AYUgBXwiCoUiBUIViSAHQhGJIAaFIgcgCCAJhXwiBkIgiSAFfCIJhSIFQhCJIAYgB0INiYUiByAKfCIGQiCJIAV8IgqFIgVCFYkgB0IRiSAGhSIHIAl8IgZCIIkgBXwiCYUiBUIQiSAHQg2JIAaFIgcgCnwiBkIgiSAFfCIKhSIFQhWJIAUgB0IRiSAGhSIHIAl8IgVCIIl8IgmFIgZCEIkgBiAHQg2JIAWFIgcgCnwiBUIgiXwiBoVCFYkgB0IRiSAFhSIFQg2JIAUgCXyFIgVCEYmFIAUgBnwiBUIgiYUgBYU3AABBAAuzBgIDfgF/An8gBa0gBq1CIIaEIQogCK0gCa1CIIaEIQwjAEGQA2siBSQAIAIEQCACQgA3AwALIAMEQCADQf8BOgAAC0F/IQ0CQAJAIApCEVQNACAKQhF9IgtC7////w9aDQEgBUEgaiIIQsAAIABBIGoiCSAAEBcgBUHgAGoiBiAIQbyQAigCABEBABogCEHAABAHIAYgByAMQcCQAigCABEAABogBkHwiAJCACAMfUIPg0HAkAIoAgARAAAaIAVCADcDWCAFQgA3A1AgBUIANwNIIAVBQGtCADcDACAFQgA3AzggBUIANwMwIAVCADcDKCAFQgA3AyAgBSAELQAAOgAgIAggCELAACAJQQEgABAbIAUtACAhByAFIAQtAAA6ACAgBiAIQsAAQcCQAigCABEAABogBiAEQQFqIgQgC0HAkAIoAgARAAAaIAZB8IgCIApCAX1CD4NBwJACKAIAEQAAGiAFIAw3AxggBiAFQRhqIghCCEHAkAIoAgARAAAaIAUgCkIvfDcDGCAGIAhCCEHAkAIoAgARAAAaIAYgBUHEkAIoAgARAQAaIAZBgAIQByAFIAQgC6dqQRAQMwRAIAVBEBAHDAELIAEgBCALIAlBAiAAEBsgACAALQAkIAUtAABzOgAkIAAgAC0AJSAFLQABczoAJSAAIAAtACYgBS0AAnM6ACYgACAALQAnIAUtAANzOgAnIAAgAC0AKCAFLQAEczoAKCAAIAAtACkgBS0ABXM6ACkgACAALQAqIAUtAAZzOgAqIAAgAC0AKyAFLQAHczoAKyAJED8CQCAHQQJxRQRAIAlBBBAfRQ0BCyAFIAApABg3A/gCIAUgACkAEDcD8AIgBSAAKQAANwPgAiAFIAApAAg3A+gCIAUgACkAJDcDgAMgBUHgAmoiASABQiggCUEAIABBsJACKAIAEQgAGiAAIAUpA/gCNwAYIAAgBSkD8AI3ABAgACAFKQPoAjcACCAAIAUpA+ACNwAAIAUpA4ADIQogAEEBNgAgIAAgCjcAJAsgAgRAIAIgCzcDAAtBACENIANFDQAgAyAHOgAACyAFQZADaiQAIA0MAQsQCQALC+QFAQJ+An8gBK0gBa1CIIaEIQogB60gCK1CIIaEIQsjAEGAA2siBCQAIAIEQCACQgA3AwALIApC7////w9UBEAgBEEQaiIHQsAAIABBIGoiCCAAEBcgBEHQAGoiBSAHQbyQAigCABEBABogB0HAABAHIAUgBiALQcCQAigCABEAABogBUHwiAJCACALfUIPg0HAkAIoAgARAAAaIARCADcDSCAEQUBrQgA3AwAgBEIANwM4IARCADcDMCAEQgA3AyggBEIANwMgIARCADcDECAEQgA3AxggBCAJOgAQIAcgB0LAACAIQQEgABAbIAUgB0LAAEHAkAIoAgARAAAaIAEgBC0AEDoAACABQQFqIgEgAyAKIAhBAiAAEBsgBSABIApBwJACKAIAEQAAGiAFQfCIAiAKQg+DQcCQAigCABEAABogBCALNwMIIAUgBEEIaiIDQghBwJACKAIAEQAAGiAEIApCQH03AwggBSADQghBwJACKAIAEQAAGiAFIAEgCqdqIgFBxJACKAIAEQEAGiAFQYACEAcgACAALQAkIAEtAABzOgAkIAAgAC0AJSABLQABczoAJSAAIAAtACYgAS0AAnM6ACYgACAALQAnIAEtAANzOgAnIAAgAC0AKCABLQAEczoAKCAAIAAtACkgAS0ABXM6ACkgACAALQAqIAEtAAZzOgAqIAAgAC0AKyABLQAHczoAKyAIED8CQCAJQQJxRQRAIAhBBBAfRQ0BCyAEIAApABg3A+gCIAQgACkAEDcD4AIgBCAAKQAANwPQAiAEIAApAAg3A9gCIAQgACkAJDcD8AIgBEHQAmoiASABQiggCEEAIABBsJACKAIAEQgAGiAAIAQpA+gCNwAYIAAgBCkD4AI3ABAgACAEKQPYAjcACCAAIAQpA9ACNwAAIAQpA/ACIQsgAEEBNgAgIAAgCzcAJAsgAgRAIAIgCkIRfDcDAAsgBEGAA2okAEEADAELEAkACwsxAQF+IAKtIAOtQiCGhCIGQvD///8PWgRAEAkACyAAQRBqIAAgASAGIAQgBRAgGkEAC4YEAgF/BH4jAEEgayIGJAAgBCkAACEHIAZCADcDGCAGIAc3AxAgBkIANwMIIAYgAq0gA61CIIaENwMAAn8gAUHBAGtBTk0EQEHQlgJBHDYCAEF/DAELIAFBwQBrQUBPBH8CfyAGQRBqIQIgAUH/AXEhAyMAIgEhBCABQYAEa0FAcSIBJAACQCAARQ0AIANBwQBrQf8BcUG/AU0NACAFRQ0AIAVFDQACfiAGRQRAQp/Y+dnCkdqCm38hB0LRhZrv+s+Uh9EADAELIAYpAAhCn9j52cKR2oKbf4UhByAGKQAAQtGFmu/6z5SH0QCFCyEJAn4gAkUEQEL5wvibkaOz8NsAIQhC6/qG2r+19sEfDAELIAIpAAhC+cL4m5Gjs/DbAIUhCCACKQAAQuv6htq/tfbBH4ULIQogAUFAa0EAQaUCEAgaIAEgCDcDOCABIAo3AzAgASAHNwMoIAEgCTcDICABQvHt9Pilp/2npX83AxggAUKr8NP0r+68tzw3AxAgAUK7zqqm2NDrs7t/NwMIIAEgA61CgMAAhEKIkveV/8z5hOoAhTcDACABQYADaiICQSBqQQBB4AAQCBogAiAFQSAQCxogAUHgAGogAkGAARALGiABQYABNgLgAiACQYABEAcgASAAIAMQNRogBCQAQQAMAQsQCQALBUF/CwshACAGQSBqJAAgAAsSACAAIAEgAq0gA61CIIaEEBgLEgAgACABIAKtIAOtQiCGhBAPCxgAIAAgASACIAOtIAStQiCGhCAFIAYQWQt7AgN/AX4jACIGIQggBkHAA2tBQHEiBiQAQX8hByACrSADrUIghoQiCUIwWgRAIAZBQGsiAkEAQQBBGBAjGiACIAFCIBAPGiACIARCIBAPGiACIAZBIGoiAkEYECIaIAAgAUEgaiAJQiB9IAIgASAFEFIhBwsgCCQAIAcLyAECA38BfiACrSADrUIghoQhCCMAIgIhBiACQYAEa0FAcSICJABBfyEDIAJBQGsgAkEgahA9RQRAIAJBgAFqIgNBAEEAQRgQIxogAyACQUBrIgdCIBAPGiADIARCIBAPGiADIAJB4ABqIgVBGBAiGiAAQSBqIAEgCCAFIAQgAkEgaiIBEFMhAyAAIAIpA1g3ABggACACKQNQNwAQIAAgAikDSDcACCAAIAIpA0A3AAAgAUEgEAcgB0EgEAcgBUEYEAcLIAYkACADCxgAIAAgASACrSADrUIghoQgBCAFIAYQUgvHAQEBfyMAQUBqIgYkACACQgBSBEAgBkKy2ojLx66ZkOsANwMIIAZC5fDBi+aNmZAzNwMAIAYgBSgAADYCECAGIAUoAAQ2AhQgBiAFKAAINgIYIAYgBSgADDYCHCAGIAUoABA2AiAgBiAFKAAUNgIkIAYgBSgAGDYCKCAFKAAcIQUgBiAENgIwIAYgBTYCLCAGIAMoAAA2AjQgBiADKAAENgI4IAYgAygACDYCPCAGIAEgACACEC8gBkHAABAHCyAGQUBrJABBAAtIAQF+IAOtIAStQiCGhCEIIwBBIGsiAyQAQX8hBCADIAYgBxAhRQRAIAAgASACIAggBSADEDAhBCADQSAQBwsgA0EgaiQAIAQLGAAgACABIAKtIAOtQiCGhCAEIAUgBhBTCy4BAX4gAq0gA61CIIaEIgZC8P///w9aBEAQCQALIABBEGogACABIAYgBCAFECALSAEBfiADrSAErUIghoQhCCMAQSBrIgMkAEF/IQQgAyAGIAcQIUUEQCAAIAEgAiAIIAUgAxAgIQQgA0EgEAcLIANBIGokACAEC4YBAQJ/IwBBgARrIgUkACAFQSBqIgYgBBBWIAYgASACrSADrUIghoQQVSAGIAVBwANqEFQgBSAFKQPYAzcDGCAFIAUpA9ADNwMQIAUgBSkDyAM3AwggBSAFKQPAAzcDACAAIAUQSyEBIAUgAEEgEDMhAiAFQYAEaiQAIAJBfyABIAAgBUYbcgtkAQF/IwBB4ANrIgUkACAFIAQQViAFIAEgAq0gA61CIIaEEFUgBSAFQaADahBUIAAgBSkDuAM3ABggACAFKQOwAzcAECAAIAUpA6gDNwAIIAAgBSkDoAM3AAAgBUHgA2okAEEAC1oBAn4gB60gCK1CIIaEIQxBfyECIAStIAWtQiCGhCILQhBaBEAgACADIAtCEH0gAyALp2pBEGsgBiAMIAkgChBXIQILIAEEQCABQgAgC0IQfSACGzcDAAsgAgskACAAIAIgA60gBK1CIIaEIAUgBiAHrSAIrUIghoQgCSAKEFcLwwEBAX8jAEFAaiIGJAAgAkIAUgRAIAZCstqIy8eumZDrADcDCCAGQuXwwYvmjZmQMzcDACAGIAUoAAA2AhAgBiAFKAAENgIUIAYgBSgACDYCGCAGIAUoAAw2AhwgBiAFKAAQNgIgIAYgBSgAFDYCJCAGIAUoABg2AiggBiAFKAAcNgIsIAYgBD4CMCAGIARCIIg+AjQgBiADKAAANgI4IAYgAygABDYCPCAGIAEgACACEC8gBkHAABAHCyAGQUBrJABBAAtYAQJ+An8gBq0gB61CIIaEIQwgA60gBK1CIIaEIgtC8P///w9UBEAgACAAIAunakEAIAIgCyAFIAwgCSAKEFgaIAEEQCABIAtCEHw3AwALQQAMAQsQCQALCyYAIAAgASACIAMgBK0gBa1CIIaEIAYgB60gCK1CIIaEIAogCxBYC1oBAn4gB60gCK1CIIaEIQxBfyECIAStIAWtQiCGhCILQhBaBEAgACADIAtCEH0gAyALp2pBEGsgBiAMIAkgChBAIQILIAEEQCABQgAgC0IQfSACGzcDAAsgAgskACAAIAIgA60gBK1CIIaEIAUgBiAHrSAIrUIghoQgCSAKEEALWgECfiAHrSAIrUIghoQhDEF/IQIgBK0gBa1CIIaEIgtCEFoEQCAAIAMgC0IQfSADIAunakEQayAGIAwgCSAKEEEhAgsgAQRAIAFCACALQhB9IAIbNwMACyACCyQAIAAgAiADrSAErUIghoQgBSAGIAetIAitQiCGhCAJIAoQQQtYAQJ+An8gBq0gB61CIIaEIQwgA60gBK1CIIaEIgtC8P///w9UBEAgACAAIAunakEAIAIgCyAFIAwgCSAKEEIaIAEEQCABIAtCEHw3AwALQQAMAQsQCQALCyYAIAAgASACIAMgBK0gBa1CIIaEIAYgB60gCK1CIIaEIAogCxBCC1gBAn4CfyAGrSAHrUIghoQhDCADrSAErUIghoQiC0Lw////D1QEQCAAIAAgC6dqQQAgAiALIAUgDCAJIAoQQxogAQRAIAEgC0IQfDcDAAtBAAwBCxAJAAsLJgAgACABIAIgAyAErSAFrUIghoQgBiAHrSAIrUIghoQgCiALEEML0AEBAX8jAEFAaiIEJAAgAUIAUgRAIARCstqIy8eumZDrADcDCCAEQuXwwYvmjZmQMzcDACAEIAMoAAA2AhAgBCADKAAENgIUIAQgAygACDYCGCAEIAMoAAw2AhwgBCADKAAQNgIgIAQgAygAFDYCJCAEIAMoABg2AiggAygAHCEDIARBADYCMCAEIAM2AiwgBCACKAAANgI0IAQgAigABDYCOCAEIAIoAAg2AjwgBCAAQQAgAacQCCIAIAAgARAvIARBwAAQBwsgBEFAayQAQQAL/gEBBH8jACIFIQggBUGABGtBQHEiBSQAIAAgASAAGyIHBEBBfyEGIAVB4ABqIAMgBBA8RQRAIAEgACABGyEBQQAhACAFQYABaiIDQQBBAEHAABAjGiADIAVB4ABqIgZCIBAPGiAGQSAQByADIARCIBAPGiADIAJCIBAPGiADIAVBIGpBwAAQIhogA0GAAxAHA0AgACABaiAFQSBqIgQgAGoiAi0AADoAACAAIAdqIAItACA6AAAgASAAQQFyIgNqIAMgBGotAAA6AAAgAyAHaiACLQAhOgAAIABBAmoiAEEgRw0ACyAFQSBqQcAAEAdBACEGCyAIJAAgBg8LEAkAC/4BAQR/IwAiBSEIIAVBgARrQUBxIgUkACAAIAEgABsiBwRAQX8hBiAFQeAAaiADIAQQPEUEQCABIAAgARshAUEAIQAgBUGAAWoiA0EAQQBBwAAQIxogAyAFQeAAaiIGQiAQDxogBkEgEAcgAyACQiAQDxogAyAEQiAQDxogAyAFQSBqQcAAECIaIANBgAMQBwNAIAAgB2ogBUEgaiIEIABqIgItAAA6AAAgACABaiACLQAgOgAAIAcgAEEBciIDaiADIARqLQAAOgAAIAEgA2ogAi0AIToAACAAQQJqIgBBIEcNAAsgBUEgakHAABAHQQAhBgsgCCQAIAYPCxAJAAsfACABQSAgAkIgQQBBABBZGiAAIAFBzJACKAIAEQEACxAAIAAgAUHMkAIoAgARAQALBABBCgsFAEGgCgsIACAAQRAQFgsEAEEwC14BAX8jAEFAaiIDJAAgAyACQiAQGBogASADKQMYNwAYIAEgAykDEDcAECABIAMpAwg3AAggASADKQMANwAAIANBwAAQByAAIAFBzJACKAIAEQEAIQAgA0FAayQAIAALxgEBAX8jAEFAaiIEJAAgAUIAUgRAIARCstqIy8eumZDrADcDCCAEQuXwwYvmjZmQMzcDACAEIAMoAAA2AhAgBCADKAAENgIUIAQgAygACDYCGCAEIAMoAAw2AhwgBCADKAAQNgIgIAQgAygAFDYCJCAEIAMoABg2AiggAygAHCEDIARCADcDMCAEIAM2AiwgBCACKAAANgI4IAQgAigABDYCPCAEIABBACABpxAIIgAgACABEC8gBEHAABAHCyAEQUBrJABBAAsFAEGAAwuqAQEGfyMAQRBrIgZBADYCDEF/IQQgAiADQQFrSwR/IAEgAkEBayICaiEIQQAhBEEAIQEDQCAGIAYoAgwiByAIIAVrLQAAIglBgAFzQQFrIAdBAWsgAUH/AXEiAUEBa3FxIgdBF3RBH3UgBXFyNgIMIAEgCXIhASAEIAdBCHZBAXFyIQQgBUEBaiIFIANHDQALIAAgAiAGKAIMazYCACAEQf8BcUEBawVBfwsLpQkBCH8CQAJ/AkACQAJAAkACQAJAAn8CQAJAAkAgB0F5cUEBRgRAQQAgA0UNBBogB0EEcQ0BA0AgCCELAkACQAJAAkADQCACIAtqLAAAIgpB0P8Ac0EBakF/c0EIdkE/cSAKQdT/AHNBAWpBf3NBCHZBPnFyIApBuQFqIApBn/8DakF/c0H6ACAKa0F/c3FBCHZxQf8BcXIgCkEEaiAKQdD/A2pBf3NBOSAKa0F/c3FBCHZxQf8BcXJB2gAgCmtBf3MgCkHBAGsiCUF/c3FBCHYgCXFB/wFxciIJQQFrIApBvv8Dc0EBanFBCHZB/wFxIAlyIglB/wFHDQFBACEJIARFDQkgBCAKEB0EQCALQQFqIgsgA08NAwwBCwsgCyEIDAgLIAkgDkEGdGohDiAMQQFLDQEgDEEGaiEMDAILIAMgCEEBaiIAIAAgA0kbIQgMBgsgDEECayEMIAEgDU0NBCAAIA1qIA4gDHY6AAAgDUEBaiENC0EAIQkgC0EBaiIIIANJDQALDAMLEAkACwNAIAghCwNAAkAgAiALaiwAACIKQaD/AHNBAWpBf3NBCHZBP3EgCkHS/wBzQQFqQX9zQQh2QT5xciAKQbkBaiAKQZ//A2pBf3NB+gAgCmtBf3NxQQh2cUH/AXFyIApBBGogCkHQ/wNqQX9zQTkgCmtBf3NxQQh2cUH/AXFyQdoAIAprQX9zIApBwQBrIglBf3NxQQh2IAlxQf8BcXIiCUEBayAKQb7/A3NBAWpxQQh2Qf8BcSAJciIJQf8BRgRAQQAhCSAERQ0FIAQgChAdDQEgCyEIDAULIAkgDkEGdGohDgJAIAxBAkkEQCAMQQZqIQwMAQsgDEECayEMIAEgDU0NBCAAIA1qIA4gDHY6AAAgDUEBaiENC0EAIQkgC0EBaiIIIANJDQIMBAsgC0EBaiILIANJDQALCyADIAhBAWoiACAAIANJGyEIDAELIAshCEHQlgJBxAA2AgBBASEJCyAMQQRLDQEgCAshAEF/IQEgCQRAIAAhCAwICyAOQX8gDHRBf3NxBEAgACEIDAgLIAdBAnEEQCAAIQcMAwsgDEECSQRAIAAhBwwDCyAAIAMgACADSxshCCAMQQF2IQsgBEUNASAAIQcDQCAHIAhGBEBBxAAhCQwFCwJAIAIgB2osAAAiAEE9RgRAIAtBAWshCwwBCyAEIAAQHQ0AQRwhCSAHIQgMBQsgB0EBaiEHIAsNAAsMAgtBfyEBDAYLQcQAIQkgACADTw0BIAAgAmotAABBPUcEQCAAIQhBHCEJDAILIAAgC2ohByALQQFGDQAgAEEBaiIMIAhGDQEgAiAMai0AAEE9RwRAIAwhCEEcIQkMAgsgC0ECRg0AIABBAmoiACAIRg0BQRwhCSAAIgggAmotAABBPUcNAQtBACEBIAQNAQwCC0HQlgIgCTYCAAwDCyADIAdNDQADQCAEIAIgB2osAAAQHUUNASAHQQFqIgcgA0cNAAsgAwwBCyAHCyEIIA0hDwsCQCAGBEAgBiACIAhqNgIADAELIAMgCEYNAEHQlgJBHDYCAEF/IQELIAUEQCAFIA82AgALIAELkQcBCn8CfwJ/AkACQCAEQXlxQQFHDQAgA0EDbiIGQQJ0IQkCQCAGQX1sIANqIgZFDQAgBEECcUUEQCAJQQRqIQkMAQsgCUECciAGQQF2aiEJCyABIAlNDQACQCAEQQRxBEBBACADRQ0FGkEAIQYMAQtBACADRQ0EGkEAIQYMAgsDQCACIAtqLQAAIgwgBUEIdHIhBSAGIgogCEEIciIIQQZrQQZuakEBaiEGA0AgACAKaiAFIAgiBEEGayIIdkE/cSIHQcH/AWpBf3NBCHZB3wBxIAdB5v8DakEIdiINIAdBwQBqcXIgB0H8AWogB0HC/wNqQQh2cSAHQcz/A2pBCHYiDkF/c3FyIAdBwf8Ac0EBakF/c0EIdkEtcXIgB0HHAGogDUF/c3EgDnFyOgAAIApBAWoiCiAGRw0ACyALQQFqIgsgA0cNAAsgBiAIRQ0DGiAMQQwgBGt0QT9xIgJB5v8DakEIdiIDIAJBwQBqcSEKIAJB/AFqIAJBwv8DakEIdnEgAkHM/wNqQQh2IgRBf3NxIQUgAkHHAGogA0F/c3EgBHEhCCACQcH/AWohAyACQcH/AHNBAWpBf3NBCHZBLXEhBEHfAAwCCxAJAAsDQCACIAtqLQAAIgwgBUEIdHIhBSAGIgogCEEIciIIQQZrQQZuakEBaiEGA0AgACAKaiAFIAgiBEEGayIIdkE/cSIHQcH/AGpBf3NBCHZBL3EgB0Hm/wNqQQh2Ig0gB0HBAGpxciAHQfwBaiAHQcL/A2pBCHZxIAdBzP8DakEIdiIOQX9zcXIgB0HB/wBzQQFqQX9zQQh2QStxciAHQccAaiANQX9zcSAOcXI6AAAgCkEBaiIKIAZHDQALIAtBAWoiCyADRw0ACyAGIAhFDQEaIAxBDCAEa3RBP3EiAkHm/wNqQQh2IgMgAkHBAGpxIQogAkH8AWogAkHC/wNqQQh2cSACQcz/A2pBCHYiBEF/c3EhBSACQccAaiADQX9zcSAEcSEIIAJBwf8AaiEDIAJBwf8Ac0EBakF/c0EIdkErcSEEQS8LIQIgACAGaiACIANBf3NBCHZxIApyIAVyIARyIAhyOgAAIAZBAWoLIQUCQAJAIAUgCU0EQCAFIAlJDQEgBSEJDAILQZgIQeYIQeYBQacKEAEACyAAIAVqQT0gCSAFaxAIGgsgACAJakEAIAEgCUEBaiICIAEgAksbIAlrEAgaIAALPQEBfyABQXlxQQFHBEAQCQALIAAgAEEDbiIAQX1saiICQQFqQQQgAUECcRtBACACQQNxGyAAQQJ0akEBaguIBQEKfwJAIANFDQACQAJAAkACQCAERQRAQQEhCUEAIQQDQCACIAdqLQAAIgxB3wFxQTdrQf8BcSIKQfb/A2ogCkHw/wNqc0EIdiINIAxBMHMiDEH2/wNqQQh2Ig5yQf8BcUUNAyABIAtNDQIgCiANcSAMIA5xciEKAkAgCEH/AXFFBEAgCkEEdCEEDAELIAAgC2ogBCAKcjoAACALQQFqIQsLIAhBf3MhCCAHQQFqIgcgA0cNAAsgAyEHDAILA0ACQAJAAkACfwJAIAIgB2otAAAiCUHfAXFBN2tB/wFxIgpB9v8DaiAKQfD/A2pzQQh2IgwgCUEwcyINQfb/A2pBCHYiDnJB/wFxRQRAIAhB/wFxDQkgBCAJEB1FDQsgB0EBaiIIIQcgAyAISw0BDAsLIAEgC00NBiAKIAxxIA0gDnFyIgkgCEH/AXFFDQEaIAAgC2ogCSAQcjoAACALQQFqIQsMBAsDQCACIAdqLQAAIglB3wFxQTdrQf8BcSIKQfb/A2ogCkHw/wNqc0EIdiIMIAlBMHMiDUH2/wNqQQh2Ig5yQf8BcUUEQCAEIAkQHUUNCyADIAdBAWoiB0sNAQwDCwsgASALTQ0CIAogDHEgDSAOcXILQQR0IRBBACEIDAILIAMgCCADIAhLGyEHDAcLQQAhCAwCCyAIQX9zIQhBASEJIAdBAWoiByADSQ0ACwwBC0HQlgJBxAA2AgBBACEJCyAIQf8BcUUNAQtB0JYCQRw2AgBBfyEPIAdBAWshB0EAIQsMAQsgCQ0AQQAhC0F/IQ8LAkAgBgRAIAYgAiAHajYCAAwBCyADIAdGDQBB0JYCQRw2AgBBfyEPCyAFBEAgBSALNgIACyAPC50BAQN/AkAgA0H+////B0sNACADQQF0IAFPDQBBACEBIAMEfwNAIAAgAUEBdGoiBCABIAJqLQAAIgVBD3EiBkEIdCAGQfb/A2pBgLIDcWpBgK4BakEIdjoAASAEIAVBBHYiBCAEQfb/A2pBCHZB2QFxakHXAGo6AAAgAUEBaiIBIANHDQALIANBAXQFQQALIABqQQA6AAAgAA8LEAkACysBAX8jAEFAaiIDJAAgACADEBMgASADQsAAIAJBARAxIQAgA0FAayQAIAALLQEBfyMAQUBqIgQkACAAIAQQEyABIAIgBELAACADQQEQMiEAIARBQGskACAACwgAIAAQGUEAC7sBAgJ/A34jAEHAAWsiAiQAIAJBIBAWIAEgAkIgEBgaIAEgAS0AAEH4AXE6AAAgASABLQAfQT9xQcAAcjoAHyACQSBqIgMgARAqIAAgAxArIAEgAikDGDcAGCABIAIpAxA3ABAgASACKQMINwAIIAEgAikDADcAACAAKQAIIQQgACkAECEFIAApAAAhBiABIAApABg3ADggASAFNwAwIAEgBDcAKCABIAY3ACAgAkEgEAcgAkHAAWokAEEAC9IBAQR/IwBBEGsiBSQAAkACQCADRQRAQX8hBwwBCwJ/IAMgA0EBayIGcUUEQCACIAZxDAELIAIgA3ALIQhBfyEHIAYgCGsiBiACQX9zTw0BIAIgBmoiAiAETw0AIAAEQCAAIAJBAWo2AgALIAEgAmohAEEAIQcgBUEAOgAPQQAhAgNAIAAgAmsiASABLQAAIAUtAA9xIAIgBnNBAWtBGHYiAUGAAXFyOgAAIAUgBS0ADyABcjoADyACQQFqIgIgA0cNAAsLIAVBEGokACAHDwsQCQALC7qFAgwAQYAIC5cDTGlic29kaXVtRFJHcmFuZG9tYnl0ZXMAYjY0X3BvcyA8PSBiNjRfbGVuAGNyeXB0b19nZW5lcmljaGFzaF9ibGFrZTJiX2ZpbmFsAHJhbmRvbWJ5dGVzL3JhbmRvbWJ5dGVzLmMAc29kaXVtL2NvZGVjcy5jAGNyeXB0b19nZW5lcmljaGFzaC9ibGFrZTJiL3JlZi9ibGFrZTJiLXJlZi5jAGNyeXB0b19nZW5lcmljaGFzaC9ibGFrZTJiL3JlZi9nZW5lcmljaGFzaF9ibGFrZTJiLmMAYnVmX2xlbiA8PSBTSVpFX01BWABvdXRsZW4gPD0gVUlOVDhfTUFYAFMtPmJ1ZmxlbiA8PSBCTEFLRTJCX0JMT0NLQllURVMAMS4wLjE4AHNvZGl1bV9iaW4yYmFzZTY0AAAAAAAAAAC2eFn/hXLTAL1uFf8PCmoAKcABAJjoef+8PKD/mXHO/wC34v60DUj/AAAAAAAAAACwoA7+08mG/54YjwB/aTUAYAy9AKfX+/+fTID+amXh/x78BACSDK4AQaALCydZ8bL+CuWm/3vdKv4eFNQAUoADADDR8wB3eUD/MuOc/wBuxQFnG5AAQdALC8AHhTuMAb3xJP/4JcMBYNw3ALdMPv/DQj0AMkykAeGkTP9MPaP/dT4fAFGRQP92QQ4AonPW/waKLgB85vT/CoqPADQawgC49EwAgY8pAb70E/97qnr/YoFEAHnVkwBWZR7/oWebAIxZQ//v5b4BQwu1AMbwif7uRbz/Q5fuABMqbP/lVXEBMkSH/xFqCQAyZwH/UAGoASOYHv8QqLkBOFno/2XS/AAp+kcAzKpP/w4u7/9QTe8AvdZL/xGN+QAmUEz/vlV1AFbkqgCc2NABw8+k/5ZCTP+v4RD/jVBiAUzb8gDGonIALtqYAJsr8f6boGj/M7ulAAIRrwBCVKAB9zoeACNBNf5F7L8ALYb1AaN73QAgbhT/NBelALrWRwDpsGAA8u82ATlZigBTAFT/iKBkAFyOeP5ofL4AtbE+//opVQCYgioBYPz2AJeXP/7vhT4AIDicAC2nvf+OhbMBg1bTALuzlv76qg7/0qNOACU0lwBjTRoA7pzV/9XA0QFJLlQAFEEpATbOTwDJg5L+qm8Y/7EhMv6rJsv/Tvd0ANHdmQCFgLIBOiwZAMknOwG9E/wAMeXSAXW7dQC1s7gBAHLbADBekwD1KTgAfQ3M/vStdwAs3SD+VOoUAPmgxgHsfur/L2Oo/qrimf9ms9gA4o16/3pCmf629YYA4+QZAdY56//YrTj/tefSAHeAnf+BX4j/bn4zAAKpt/8HgmL+RbBe/3QE4wHZ8pH/yq0fAWkBJ/8ur0UA5C86/9fgRf7POEX/EP6L/xfP1P/KFH7/X9Vg/wmwIQDIBc//8SqA/iMhwP/45cQBgRF4APtnl/8HNHD/jDhC/yji9f/ZRiX+rNYJ/0hDhgGSwNb/LCZwAES4S//OWvsAleuNALWqOgB09O8AXJ0CAGatYgDpiWABfzHLAAWblAAXlAn/03oMACKGGv/bzIgAhggp/+BTK/5VGfcAbX8A/qmIMADud9v/563VAM4S/v4Iugf/fgkHAW8qSABvNOz+YD+NAJO/f/7NTsD/DmrtAbvbTACv87v+aVmtAFUZWQGi85QAAnbR/iGeCQCLoy7/XUYoAGwqjv5v/I7/m9+QADPlp/9J/Jv/XnQM/5ig2v+c7iX/s+rP/8UAs/+apI0A4cRoAAojGf7R1PL/Yf3e/rhl5QDeEn8BpIiH/x7PjP6SYfMAgcAa/slUIf9vCk7/k1Gy/wQEGACh7tf/Bo0hADXXDv8ptdD/54udALPL3f//uXEAveKs/3FC1v/KPi3/ZkAI/06uEP6FdUT/AEGwEwsBAQBB0BMLsAEm6JWPwrInsEXD9Iny75jw1d+sBdPGMzmxOAKIbVP8BccXanA9TdhPujwLdg0QZw8qIFP6LDnMxk7H/XeSrAN67P///////////////////////////////////////3/t////////////////////////////////////////f+7///////////////////////////////////////9/7dP1XBpjEljWnPei3vneFABBjxUL/PABEIU7jAG98ST/+CXDAWDcNwC3TD7/w0I9ADJMpAHhpEz/TD2j/3U+HwBRkUD/dkEOAKJz1v8Gii4AfOb0/wqKjwA0GsIAuPRMAIGPKQG+9BP/e6p6/2KBRAB51ZMAVmUe/6FnmwCMWUP/7+W+AUMLtQDG8In+7kW8/+pxPP8l/zn/RbK2/oDQswB2Gn3+AwfW//EyTf9Vy8X/04f6/xkwZP+71bT+EVhpAFPRngEFc2IABK48/qs3bv/ZtRH/FLyqAJKcZv5X1q7/cnqbAeksqgB/CO8B1uzqAK8F2wAxaj3/BkLQ/wJqbv9R6hP/12vA/0OX7gATKmz/5VVxATJEh/8RagkAMmcB/1ABqAEjmB7/EKi5AThZ6P9l0vwAKfpHAMyqT/8OLu//UE3vAL3WS/8RjfkAJlBM/75VdQBW5KoAnNjQAcPPpP+WQkz/r+EQ/41QYgFM2/IAxqJyAC7amACbK/H+m6Bo/7IJ/P5kbtQADgWnAOnvo/8cl50BZZIK//6eRv5H+eQAWB4yAEQ6oP+/GGgBgUKB/8AyVf8Is4r/JvrJAHNQoACD5nEAfViTAFpExwD9TJ4AHP92AHH6/gBCSy4A5torAOV4ugGURCsAiHzuAbtrxf9UNfb/M3T+/zO7pQACEa8AQlSgAfc6HgAjQTX+Rey/AC2G9QGje90AIG4U/zQXpQC61kcA6bBgAPLvNgE5WYoAUwBU/4igZABcjnj+aHy+ALWxPv/6KVUAmIIqAWD89gCXlz/+74U+ACA4nAAtp73/joWzAYNW0wC7s5b++qoO/0RxFf/eujv/QgfxAUUGSABWnGz+N6dZAG002/4NsBf/xCxq/++VR/+kjH3/n60BADMp5wCRPiEAim9dAblTRQCQcy4AYZcQ/xjkGgAx2eIAcUvq/sGZDP+2MGD/Dg0aAIDD+f5FwTsAhCVR/n1qPADW8KkBpONCANKjTgAlNJcAY00aAO6c1f/VwNEBSS5UABRBKQE2zk8AyYOS/qpvGP+xITL+qybL/073dADR3ZkAhYCyATosGQDJJzsBvRP8ADHl0gF1u3UAtbO4AQBy2wAwXpMA9Sk4AH0NzP70rXcALN0g/lTqFAD5oMYB7H7q/48+3QCBWdb/N4sF/kQUv/8OzLIBI8PZAC8zzgEm9qUAzhsG/p5XJADZNJL/fXvX/1U8H/+rDQcA2vVY/vwjPAA31qD/hWU4AOAgE/6TQOoAGpGiAXJ2fQD4/PoAZV7E/8aN4v4zKrYAhwwJ/m2s0v/F7MIB8UGaADCcL/+ZQzf/2qUi/kq0swDaQkcBWHpjANS12/9cKuf/7wCaAPVNt/9eUaoBEtXYAKtdRwA0XvgAEpeh/sXRQv+u9A/+ojC3ADE98P62XcMAx+QGAcgFEf+JLe3/bJQEAFpP7f8nP03/NVLPAY4Wdv9l6BIBXBpDAAXIWP8hqIr/leFIAALRG/8s9agB3O0R/x7Taf6N7t0AgFD1/m/+DgDeX74B3wnxAJJM1P9szWj/P3WZAJBFMAAj5G8AwCHB/3DWvv5zmJcAF2ZYADNK+ADix4/+zKJl/9BhvQH1aBIA5vYe/xeURQBuWDT+4rVZ/9AvWv5yoVD/IXT4ALOYV/9FkLEBWO4a/zogcQEBTUUAO3k0/5juUwA0CMEA5yfp/8ciigDeRK0AWzny/tzSf//AB/b+lyO7AMPspQBvXc4A1PeFAZqF0f+b5woAQE4mAHr5ZAEeE2H/Plv5AfiFTQDFP6j+dApSALjscf7Uy8L/PWT8/iQFyv93W5n/gU8dAGdnq/7t12//2DVFAO/wFwDCld3/JuHeAOj/tP52UoX/OdGxAYvohQCesC7+wnMuAFj35QEcZ78A3d6v/pXrLACX5Bn+2mlnAI5V0gCVgb7/1UFe/nWG4P9SxnUAnd3cAKNlJADFciUAaKym/gu2AABRSLz/YbwQ/0UGCgDHk5H/CAlzAUHWr//ZrdEAUH+mAPflBP6nt3z/WhzM/q878P8LKfgBbCgz/5Cxw/6W+n4AiltBAXg83v/1we8AHda9/4ACGQBQmqIATdxrAerNSv82pmf/dEgJAOReL/8eyBn/I9ZZ/z2wjP9T4qP/S4KsAIAmEQBfiZj/13yfAU9dAACUUp3+w4L7/yjKTP/7fuAAnWM+/s8H4f9gRMMAjLqd/4MT5/8qgP4ANNs9/mbLSACNBwv/uqTVAB96dwCF8pEA0Pzo/1vVtv+PBPr++ddKAKUebwGrCd8A5XsiAVyCGv9Nmy0Bw4sc/zvgTgCIEfcAbHkgAE/6vf9g4/z+JvE+AD6uff+bb13/CubOAWHFKP8AMTn+QfoNABL7lv/cbdL/Ba6m/iyBvQDrI5P/JfeN/0iNBP9na/8A91oEADUsKgACHvAABDs/AFhOJABxp7QAvkfB/8eepP86CKwATSEMAEE/AwCZTSH/rP5mAeTdBP9XHv4BkilW/4rM7/5sjRH/u/KHANLQfwBELQ7+SWA+AFE8GP+qBiT/A/kaACPVbQAWgTb/FSPh/+o9OP862QYAj3xYAOx+QgDRJrf/Iu4G/66RZgBfFtMAxA+Z/i5U6P91IpIB5/pK/xuGZAFcu8P/qsZwAHgcKgDRRkMAHVEfAB2oZAGpraAAayN1AD5gO/9RDEUBh+++/9z8EgCj3Dr/iYm8/1NmbQBgBkwA6t7S/7muzQE8ntX/DfHWAKyBjABdaPIAwJz7ACt1HgDhUZ4Af+jaAOIcywDpG5f/dSsF//IOL/8hFAYAifss/hsf9f+31n3+KHmVALqe1f9ZCOMARVgA/suH4QDJrssAk0e4ABJ5Kf5eBU4A4Nbw/iQFtAD7h+cBo4rUANL5dP5YgbsAEwgx/j4OkP+fTNMA1jNSAG115P5n38v/S/wPAZpH3P8XDVsBjahg/7W2hQD6MzcA6urU/q8/ngAn8DQBnr0k/9UoVQEgtPf/E2YaAVQYYf9FFd4AlIt6/9zV6wHoy/8AeTmTAOMHmgA1FpMBSAHhAFKGMP5TPJ3/kUipACJn7wDG6S8AdBME/7hqCf+3gVMAJLDmASJnSADbooYA9SqeACCVYP6lLJAAyu9I/teWBQAqQiQBhNevAFauVv8axZz/MeiH/me2UgD9gLABmbJ6APX6CgDsGLIAiWqEACgdKQAyHpj/fGkmAOa/SwCPK6oALIMU/ywNF//t/5sBn21k/3C1GP9o3GwAN9ODAGMM1f+Yl5H/7gWfAGGbCAAhbFEAAQNnAD5tIv/6m7QAIEfD/yZGkQGfX/UAReVlAYgc8ABP4BkATm55//iofAC7gPcAApPr/k8LhABGOgwBtQij/0+Jhf8lqgv/jfNV/7Dn1//MlqT/79cn/y5XnP4Io1j/rCLoAEIsZv8bNin+7GNX/yl7qQE0cisAdYYoAJuGGgDnz1v+I4Qm/xNmff4k44X/dgNx/x0NfACYYEoBWJLO/6e/3P6iElj/tmQXAB91NABRLmoBDAIHAEVQyQHR9qwADDCNAeDTWAB04p8AemKCAEHs6gHh4gn/z+J7AVnWOwBwh1gBWvTL/zELJgGBbLoAWXAPAWUuzP9/zC3+T//d/zNJEv9/KmX/8RXKAKDjBwBpMuwATzTF/2jK0AG0DxAAZcVO/2JNywApufEBI8F8ACObF//PNcAAC32jAfmeuf8EgzAAFV1v/z155wFFyCT/uTC5/2/uFf8nMhn/Y9ej/1fUHv+kkwX/gAYjAWzfbv/CTLIASmW0APMvMACuGSv/Uq39ATZywP8oN1sA12yw/ws4BwDg6UwA0WLK/vIZfQAswV3+ywixAIewEwBwR9X/zjuwAQRDGgAOj9X+KjfQ/zxDeADBFaMAY6RzAAoUdgCc1N7+oAfZ/3L1TAF1O3sAsMJW/tUPsABOzs/+1YE7AOn7FgFgN5j/7P8P/8VZVP9dlYUArqBxAOpjqf+YdFgAkKRT/18dxv8iLw//Y3iG/wXswQD5937/k7seADLmdf9s2dv/o1Gm/0gZqf6beU//HJtZ/gd+EQCTQSEBL+r9ABozEgBpU8f/o8TmAHH4pADi/toAvdHL/6T33v7/I6UABLzzAX+zRwAl7f7/ZLrwAAU5R/5nSEn/9BJR/uXShP/uBrT/C+Wu/+PdwAERMRwAo9fE/gl2BP8z8EcAcYFt/0zw5wC8sX8AfUcsARqv8wBeqRn+G+YdAA+LdwGoqrr/rMVM//xLvACJfMQASBZg/y2X+QHckWQAQMCf/3jv4gCBspIAAMB9AOuK6gC3nZIAU8fA/7isSP9J4YAATQb6/7pBQwBo9s8AvCCK/9oY8gBDilH+7YF5/xTPlgEpxxD/BhSAAJ92BQC1EI//3CYPABdAk/5JGg0AV+Q5Acx8gAArGN8A22PHABZLFP8TG34AnT7XAG4d5gCzp/8BNvy+AN3Mtv6znkH/UZ0DAMLanwCq3wAA4Asg/ybFYgCopCUAF1gHAaS6bgBgJIYA6vLlAPp5EwDy/nD/Ay9eAQnvBv9Rhpn+1v2o/0N84AD1X0oAHB4s/gFt3P+yWVkA/CRMABjGLv9MTW8AhuqI/ydeHQC5SOr/RkSH/+dmB/5N54wApy86AZRhdv8QG+EBps6P/26y1v+0g6IAj43hAQ3aTv9ymSEBYmjMAK9ydQGnzksAysRTATpAQwCKL28BxPeA/4ng4P6ecM8AmmT/AYYlawDGgE//f9Gb/6P+uf48DvMAH9tw/h3ZQQDIDXT+ezzE/+A7uP7yWcQAexBL/pUQzgBF/jAB53Tf/9GgQQHIUGIAJcK4/pQ/IgCL8EH/2ZCE/zgmLf7HeNIAbLGm/6DeBADcfnf+pWug/1Lc+AHxr4gAkI0X/6mKVACgiU7/4nZQ/zQbhP8/YIv/mPonALybDwDoM5b+KA/o//DlCf+Jrxv/S0lhAdrUCwCHBaIBa7nVAAL5a/8o8kYA28gZABmdDQBDUlD/xPkX/5EUlQAySJIAXkyUARj7QQAfwBcAuNTJ/3vpogH3rUgAolfb/n6GWQCfCwz+pmkdAEkb5AFxeLf/QqNtAdSPC/+f56gB/4BaADkOOv5ZNAr//QijAQCR0v8KgVUBLrUbAGeIoP5+vNH/IiNvANfbGP/UC9b+ZQV2AOjFhf/fp23/7VBW/0aLXgCewb8Bmw8z/w++cwBOh8//+QobAbV96QBfrA3+qtWh/yfsiv9fXVf/voBfAH0PzgCmlp8A4w+e/86eeP8qjYAAZbJ4AZxtgwDaDiz+96jO/9RwHABwEeT/WhAlAcXebAD+z1P/CVrz//P0rAAaWHP/zXR6AL/mwQC0ZAsB2SVg/5pOnADr6h//zrKy/5XA+wC2+ocA9hZpAHzBbf8C0pX/qRGqAABgbv91CQgBMnso/8G9YwAi46AAMFBG/tMz7AAtevX+LK4IAK0l6f+eQasAekXX/1pQAv+DamD+43KHAM0xd/6wPkD/UjMR//EU8/+CDQj+gNnz/6IbAf5advEA9sb2/zcQdv/In50AoxEBAIxreQBVoXb/JgCVAJwv7gAJpqYBS2K1/zJKGQBCDy8Ai+GfAEwDjv8O7rgAC881/7fAugGrIK7/v0zdAfeq2wAZrDL+2QnpAMt+RP+3XDAAf6e3AUEx/gAQP38B/hWq/zvgf/4WMD//G06C/ijDHQD6hHD+I8uQAGipqADP/R7/aCgm/l7kWADOEID/1Dd6/98W6gDfxX8A/bW1AZFmdgDsmST/1NlI/xQmGP6KPj4AmIwEAObcY/8BFdT/lMnnAPR7Cf4Aq9IAMzol/wH/Dv/0t5H+APKmABZKhAB52CkAX8Ny/oUYl/+c4uf/9wVN//aUc/7hXFH/3lD2/qp7Wf9Kx40AHRQI/4qIRv9dS1wA3ZMx/jR+4gDlfBcALgm1AM1ANAGD/hwAl57UAINATgDOGasAAOaLAL/9bv5n96cAQCgoASql8f87S+T+fPO9/8Rcsv+CjFb/jVk4AZPGBf/L+J7+kKKNAAus4gCCKhX/AaeP/5AkJP8wWKT+qKrcAGJH1gBb0E8An0zJAaYq1v9F/wD/BoB9/74BjACSU9r/1+5IAXp/NQC9dKX/VAhC/9YD0P/VboUAw6gsAZ7nRQCiQMj+WzpoALY6u/755IgAy4ZM/mPd6QBL/tb+UEWaAECY+P7siMr/nWmZ/pWvFAAWIxP/fHnpALr6xv6E5YsAiVCu/6V9RACQypT+6+/4AIe4dgBlXhH/ekhG/kWCkgB/3vgBRX92/x5S1/68ShP/5afC/nUZQv9B6jj+1RacAJc7Xf4tHBv/un6k/yAG7wB/cmMB2zQC/2Ngpv4+vn7/bN6oAUvirgDm4scAPHXa//z4FAHWvMwAH8KG/ntFwP+prST+N2JbAN8qZv6JAWYAnVoZAO96QP/8BukABzYU/1J0rgCHJTb/D7p9AONwr/9ktOH/Ku30//St4v74EiEAq2OW/0rrMv91UiD+aqjtAM9t0AHkCboAhzyp/rNcjwD0qmj/6y18/0ZjugB1ibcA4B/XACgJZAAaEF8BRNlXAAiXFP8aZDr/sKXLATR2RgAHIP7+9P71/6eQwv99cRf/sHm1AIhU0QCKBh7/WTAcACGbDv8Z8JoAjc1tAUZzPv8UKGv+iprH/17f4v+dqyYAo7EZ/i12A/8O3hcB0b5R/3Z76AEN1WX/ezd7/hv2pQAyY0z/jNYg/2FBQ/8YDBwArlZOAUD3YACgh0MAQjfz/5PMYP8aBiH/YjNTAZnV0P8CuDb/GdoLADFD9v4SlUj/DRlIACpP1gAqBCYBG4uQ/5W7FwASpIQA9VS4/njGaP9+2mAAOHXq/w0d1v5ELwr/p5qE/pgmxgBCsln/yC6r/w1jU//Su/3/qi0qAYrRfADWoo0ADOacAGYkcP4Dk0MANNd7/+mrNv9iiT4A99on/+fa7AD3v38Aw5JUAKWwXP8T1F7/EUrjAFgomQHGkwH/zkP1/vAD2v89jdX/YbdqAMPo6/5fVpoA0TDN/nbR8f/weN8B1R2fAKN/k/8N2l0AVRhE/kYUUP+9BYwBUmH+/2Njv/+EVIX/a9p0/3B6LgBpESAAwqA//0TeJwHY/VwAsWnN/5XJwwAq4Qv/KKJzAAkHUQCl2tsAtBYA/h2S/P+Sz+EBtIdgAB+jcACxC9v/hQzB/itOMgBBcXkBO9kG/25eGAFwrG8ABw9gACRVewBHlhX/0Em8AMALpwHV9SIACeZcAKKOJ//XWhsAYmFZAF5P0wBanfAAX9x+AWaw4gAkHuD+Ix9/AOfocwFVU4IA0kn1/y+Pcv9EQcUAO0g+/7eFrf5deXb/O7FR/+pFrf/NgLEA3PQzABr00QFJ3k3/owhg/paV0wCe/ssBNn+LAKHgOwAEbRb/3iot/9CSZv/sjrsAMs31/wpKWf4wT44A3kyC/x6mPwDsDA3/Mbj0ALtxZgDaZf0AmTm2/iCWKgAZxpIB7fE4AIxEBQBbpKz/TpG6/kM0zQDbz4EBbXMRADaPOgEV+Hj/s/8eAMHsQv8B/wf//cAw/xNF2QED1gD/QGWSAd99I//rSbP/+afiAOGvCgFhojoAanCrAVSsBf+FjLL/hvWOAGFaff+6y7n/300X/8BcagAPxnP/2Zj4AKuyeP/khjUAsDbBAfr7NQDVCmQBIsdqAJcf9P6s4Ff/Du0X//1VGv9/J3T/rGhkAPsORv/U0Ir//dP6ALAxpQAPTHv/Jdqg/1yHEAEKfnL/RgXg//f5jQBEFDwB8dK9/8PZuwGXA3EAl1yuAOc+sv/bt+EAFxch/821UAA5uPj/Q7QB/1p7Xf8nAKL/YPg0/1RCjAAif+T/wooHAaZuvAAVEZsBmr7G/9ZQO/8SB48ASB3iAcfZ+QDooUcBlb7JANmvX/5xk0P/io/H/3/MAQAdtlMBzuab/7rMPAAKfVX/6GAZ//9Z9//V/q8B6MFRABwrnP4MRQgAkxj4ABLGMQCGPCMAdvYS/zFY/v7kFbr/tkFwAdsWAf8WfjT/vTUx/3AZjwAmfzf/4mWj/tCFPf+JRa4BvnaR/zxi2//ZDfX/+ogKAFT+4gDJH30B8DP7/x+Dgv8CijL/19exAd8M7v/8lTj/fFtE/0h+qv53/2QAgofo/w5PsgD6g8UAisbQAHnYi/53EiT/HcF6ABAqLf/V8OsB5r6p/8Yj5P5urUgA1t3x/ziUhwDAdU7+jV3P/49BlQAVEmL/Xyz0AWq/TQD+VQj+1m6w/0mtE/6gxMf/7VqQAMGscf/Im4j+5FrdAIkxSgGk3df/0b0F/2nsN/8qH4EBwf/sAC7ZPACKWLv/4lLs/1FFl/+OvhABDYYIAH96MP9RQJwAq/OLAO0j9gB6j8H+1HqSAF8p/wFXhE0ABNQfABEfTgAnLa3+GI7Z/18JBv/jUwYAYjuC/j4eIQAIc9MBomGA/we4F/50HKj/+IqX/2L08AC6doIAcvjr/2mtyAGgfEf/XiSkAa9Bkv/u8ar+ysbFAORHiv4t9m3/wjSeAIW7sABT/Jr+Wb3d/6pJ/ACUOn0AJEQz/ipFsf+oTFb/JmTM/yY1IwCvE2EA4e79/1FRhwDSG//+60lrAAjPcwBSf4gAVGMV/s8TiABkpGUAUNBN/4TP7f8PAw//IaZuAJxfVf8luW8Blmoj/6aXTAByV4f/n8JAAAx6H//oB2X+rXdiAJpH3P6/OTX/qOig/+AgY//anKUAl5mjANkNlAHFcVkAlRyh/s8XHgBphOP/NuZe/4WtzP9ct53/WJD8/mYhWgCfYQMAtdqb//BydwBq1jX/pb5zAZhb4f9Yaiz/0D1xAJc0fAC/G5z/bjbsAQ4epv8nf88B5cccALzkvP5knesA9tq3AWsWwf/OoF8ATO+TAM+hdQAzpgL/NHUK/kk44/+YweEAhF6I/2W/0QAga+X/xiu0AWTSdgByQ5n/F1ga/1maXAHceIz/kHLP//xz+v8izkgAioV//wiyfAFXS2EAD+Vc/vBDg/92e+P+knho/5HV/wGBu0b/23c2AAETrQAtlpQB+FNIAMvpqQGOazgA9/kmAS3yUP8e6WcAYFJGABfJbwBRJx7/obdO/8LqIf9E44z+2M50AEYb6/9okE8ApOZd/taHnACau/L+vBSD/yRtrgCfcPEABW6VASSl2gCmHRMBsi5JAF0rIP74ve0AZpuNAMldw//xi/3/D29i/2xBo/6bT77/Sa7B/vYoMP9rWAv+ymFV//3MEv9x8kIAbqDC/tASugBRFTwAvGin/3ymYf7ShY4AOPKJ/ilvggBvlzoBb9WN/7es8f8mBsT/uQd7/y4L9gD1aXcBDwKh/wjOLf8Sykr/U3xzAdSNnQBTCNH+iw/o/6w2rf4y94QA1r3VAJC4aQDf/vgA/5Pw/xe8SAAHMzYAvBm0/ty0AP9ToBQAo73z/zrRwv9XSTwAahgxAPX53AAWracAdgvD/xN+7QBunyX/O1IvALS7VgC8lNABZCWF/wdwwQCBvJz/VGqB/4XhygAO7G//KBRlAKysMf4zNkr/+7m4/12b4P+0+eAB5rKSAEg5Nv6yPrgAd81IALnv/f89D9oAxEM4/+ogqwEu2+QA0Gzq/xQ/6P+lNccBheQF/zTNawBK7oz/lpzb/u+ssv/7vd/+II7T/9oPigHxxFAAHCRi/hbqxwA97dz/9jklAI4Rjv+dPhoAK+5f/gPZBv/VGfABJ9yu/5rNMP4TDcD/9CI2/owQmwDwtQX+m8E8AKaABP8kkTj/lvDbAHgzkQBSmSoBjOySAGtc+AG9CgMAP4jyANMnGAATyqEBrRu6/9LM7/4p0aL/tv6f/6x0NADDZ97+zUU7ADUWKQHaMMIAUNLyANK8zwC7oaH+2BEBAIjhcQD6uD8A3x5i/k2oogA7Na8AE8kK/4vgwgCTwZr/1L0M/gHIrv8yhXEBXrNaAK22hwBesXEAK1nX/4j8av97hlP+BfVC/1IxJwHcAuAAYYGxAE07WQA9HZsBy6vc/1xOiwCRIbX/qRiNATeWswCLPFD/2idhAAKTa/88+EgAreYvAQZTtv8QaaL+idRR/7S4hgEn3qT/3Wn7Ae9wfQA/B2EAP2jj/5Q6DABaPOD/VNT8AE/XqAD43ccBc3kBACSseAAgorv/OWsx/5MqFQBqxisBOUpXAH7LUf+Bh8MAjB+xAN2LwgAD3tcAg0TnALFWsv58l7QAuHwmAUajEQD5+7UBKjfjAOKhLAAX7G4AM5WOAV0F7ADat2r+QxhNACj10f/eeZkApTkeAFN9PABGJlIB5Qa8AG3enf83dj//zZe6AOMhlf/+sPYB47HjACJqo/6wK08Aal9OAbnxev+5Dj0AJAHKAA2yov/3C4QAoeZcAUEBuf/UMqUBjZJA/57y2gAVpH0A1Yt6AUNHVwDLnrIBl1wrAJhvBf8nA+//2f/6/7A/R/9K9U0B+q4S/yIx4//2Lvv/miMwAX2dPf9qJE7/YeyZAIi7eP9xhqv/E9XZ/the0f/8BT0AXgPKAAMat/9Avyv/HhcVAIGNTf9meAcBwkyMALyvNP8RUZQA6FY3AeEwrACGKir/7jIvAKkS/gAUk1f/DsPv/0X3FwDu5YD/sTFwAKhi+/95R/gA8wiR/vbjmf/bqbH++4ul/wyjuf+kKKv/mZ8b/vNtW//eGHABEtbnAGudtf7DkwD/wmNo/1mMvv+xQn7+arlCADHaHwD8rp4AvE/mAe4p4ADU6ggBiAu1AKZ1U/9Ew14ALoTJAPCYWACkOUX+oOAq/zvXQ/93w43/JLR5/s8vCP+u0t8AZcVE//9SjQH6iekAYVaFARBQRQCEg58AdF1kAC2NiwCYrJ3/WitbAEeZLgAnEHD/2Yhh/9zGGf6xNTEA3liG/4APPADPwKn/wHTR/2pO0wHI1bf/Bwx6/t7LPP8hbsf++2p1AOThBAF4Ogf/3cFU/nCFGwC9yMn/i4eWAOo3sP89MkEAmGyp/9xVAf9wh+MAohq6AM9guf70iGsAXZkyAcZhlwBuC1b/j3Wu/3PUyAAFyrcA7aQK/rnvPgDseBL+Yntj/6jJwv4u6tYAv4Ux/2OpdwC+uyMBcxUt//mDSABwBnv/1jG1/qbpIgBcxWb+/eTN/wM7yQEqYi4A2yUj/6nDJgBefMEBnCvfAF9Ihf54zr8AesXv/7G7T//+LgIB+qe+AFSBEwDLcab/+R+9/kidyv/QR0n/zxhIAAoQEgHSUUz/WNDA/37za//ujXj/x3nq/4kMO/8k3Hv/lLM8/vAMHQBCAGEBJB4m/3MBXf9gZ+f/xZ47AcCk8ADKyjn/GK4wAFlNmwEqTNcA9JfpABcwUQDvfzT+44Il//h0XQF8hHYArf7AAQbrU/9ur+cB+xy2AIH5Xf5UuIAATLU+AK+AugBkNYj+bR3iAN3pOgEUY0oAABagAIYNFQAJNDf/EVmMAK8iOwBUpXf/4OLq/wdIpv97c/8BEtb2APoHRwHZ3LkA1CNM/yZ9rwC9YdIAcu4s/ym8qf4tupoAUVwWAISgwQB50GL/DVEs/8ucUgBHOhX/0HK//jImkwCa2MMAZRkSADz61//phOv/Z6+OARAOXACNH27+7vEt/5nZ7wFhqC//+VUQARyvPv85/jYA3ud+AKYtdf4SvWD/5EwyAMj0XgDGmHgBRCJF/wxBoP5lE1oAp8V4/0Q2uf8p2rwAcagwAFhpvQEaUiD/uV2kAeTw7f9CtjUAq8Vc/2sJ6QHHeJD/TjEK/22qaf9aBB//HPRx/0o6CwA+3Pb/eZrI/pDSsv9+OYEBK/oO/2VvHAEvVvH/PUaW/zVJBf8eGp4A0RpWAIrtSgCkX7wAjjwd/qJ0+P+7r6AAlxIQANFvQf7Lhif/WGwx/4MaR//dG9f+aGld/x/sH/6HANP/j39uAdRJ5QDpQ6f+wwHQ/4QR3f8z2VoAQ+sy/9/SjwCzNYIB6WrGANmt3P9w5Rj/r5pd/kfL9v8wQoX/A4jm/xfdcf7rb9UAqnhf/vvdAgAtgp7+aV7Z//I0tP7VRC3/aCYcAPSeTAChyGD/zzUN/7tDlACqNvgAd6Ky/1MUCwAqKsABkp+j/7fobwBN5RX/RzWPABtMIgD2iC//2ye2/1zgyQETjg7/Rbbx/6N29QAJbWoBqrX3/04v7v9U0rD/1WuLACcmCwBIFZYASIJFAM1Nm/6OhRUAR2+s/uIqO/+zANcBIYDxAOr8DQG4TwgAbh5J//aNvQCqz9oBSppF/4r2Mf+bIGQAfUpp/1pVPf8j5bH/Pn3B/5lWvAFJeNQA0Xv2/ofRJv+XOiwBXEXW/w4MWP/8mab//c9w/zxOU//jfG4AtGD8/zV1If6k3FL/KQEb/yakpv+kY6n+PZBG/8CmEgBr+kIAxUEyAAGzEv//aAH/K5kj/1BvqABur6gAKWkt/9sOzf+k6Yz+KwF2AOlDwwCyUp//ild6/9TuWv+QI3z+GYykAPvXLP6FRmv/ZeNQ/lypNwDXKjEAcrRV/yHoGwGs1RkAPrB7/iCFGP/hvz4AXUaZALUqaAEWv+D/yMiM//nqJQCVOY0AwzjQ//6CRv8grfD/HdzHAG5kc/+E5fkA5Onf/yXY0f6ysdH/ty2l/uBhcgCJYaj/4d6sAKUNMQHS68z//AQc/kaglwDovjT+U/hd/z7XTQGvr7P/oDJCAHkw0AA/qdH/ANLIAOC7LAFJolIACbCP/xNMwf8dO6cBGCuaABy+vgCNvIEA6OvL/+oAbf82QZ8APFjo/3n9lv786YP/xm4pAVNNR//IFjv+av3y/xUMz//tQr0AWsbKAeGsfwA1FsoAOOaEAAFWtwBtvioA80SuAW3kmgDIsXoBI6C3/7EwVf9a2qn/+JhOAMr+bgAGNCsAjmJB/z+RFgBGal0A6IprAW6zPf/TgdoB8tFcACNa2QG2j2r/dGXZ/3L63f+tzAYAPJajAEmsLP/vblD/7UyZ/qGM+QCV6OUAhR8o/66kdwBxM9YAgeQC/kAi8wBr4/T/rmrI/1SZRgEyIxAA+krY/uy9Qv+Z+Q0A5rIE/90p7gB243n/XleM/v53XABJ7/b+dVeAABPTkf+xLvwA5Vv2AUWA9//KTTYBCAsJ/5lgpgDZ1q3/hsACAQDPAAC9rmsBjIZkAJ7B8wG2ZqsA65ozAI4Fe/88qFkB2Q5c/xPWBQHTp/4ALAbK/ngS7P8Pcbj/uN+LACixd/62e1r/sKWwAPdNwgAb6ngA5wDW/zsnHgB9Y5H/lkREAY3e+ACZe9L/bn+Y/+Uh1gGH3cUAiWECAAyPzP9RKbwAc0+C/14DhACYr7v/fI0K/37As/8LZ8YAlQYtANtVuwHmErL/SLaYAAPGuP+AcOABYaHmAP5jJv86n8UAl0LbADtFj/+5cPkAd4gv/3uChACoR1//cbAoAei5rQDPXXUBRJ1s/2YFk/4xYSEAWUFv/vceo/982d0BZvrYAMauS/45NxIA4wXsAeXVrQDJbdoBMenvAB43ngEZsmoAm2+8AV5+jADXH+4BTfAQANXyGQEmR6gAzbpd/jHTjP/bALT/hnalAKCThv9uuiP/xvMqAPOSdwCG66MBBPGH/8Euwf5ntE//4QS4/vJ2ggCSh7AB6m8eAEVC1f4pYHsAeV4q/7K/w/8ugioAdVQI/+kx1v7uem0ABkdZAezTewD0DTD+d5QOAHIcVv9L7Rn/keUQ/oFkNf+Glnj+qJ0yABdIaP/gMQ4A/3sW/5e5l/+qULgBhrYUAClkZQGZIRAATJpvAVbO6v/AoKT+pXtd/wHYpP5DEa//qQs7/54pPf9JvA7/wwaJ/xaTHf8UZwP/9oLj/3oogADiLxj+IyQgAJi6t/9FyhQAw4XDAN4z9wCpq14BtwCg/0DNEgGcUw//xTr5/vtZbv8yClj+MyvYAGLyxgH1l3EAq+zCAcUfx//lUSYBKTsUAP1o5gCYXQ7/9vKS/tap8P/wZmz+oKfsAJravACW6cr/GxP6AQJHhf+vDD8BkbfGAGh4c/+C+/cAEdSn/z57hP/3ZL0Am9+YAI/FIQCbOyz/ll3wAX8DV/9fR88Bp1UB/7yYdP8KFxcAicNdATZiYQDwAKj/lLx/AIZrlwBM/asAWoTAAJIWNgDgQjb+5rrl/ye2xACU+4L/QYNs/oABoACpMaf+x/6U//sGgwC7/oH/VVI+ALIXOv/+hAUApNUnAIb8kv4lNVH/m4ZSAM2n7v9eLbT/hCihAP5vcAE2S9kAs+bdAetev/8X8zABypHL/yd2Kv91jf0A/gDeACv7MgA2qeoBUETQAJTL8/6RB4cABv4AAPy5fwBiCIH/JiNI/9Mk3AEoGlkAqEDF/gPe7/8CU9f+tJ9pADpzwgC6dGr/5ffb/4F2wQDKrrcBpqFIAMlrk/7tiEoA6eZqAWlvqABA4B4BAeUDAGaXr//C7uT//vrUALvteQBD+2ABxR4LALdfzADNWYoAQN0lAf/fHv+yMNP/8cha/6fRYP85gt0ALnLI/z24QgA3thj+brYhAKu+6P9yXh8AEt0IAC/n/gD/cFMAdg/X/60ZKP7AwR//7hWS/6vBdv9l6jX+g9RwAFnAawEI0BsAtdkP/+eV6ACM7H4AkAnH/wxPtf6Ttsr/E222/zHU4QBKo8sAr+mUABpwMwDBwQn/D4f5AJbjggDMANsBGPLNAO7Qdf8W9HAAGuUiACVQvP8mLc7+8Frh/x0DL/8q4EwAuvOnACCED/8FM30Ai4cYAAbx2wCs5YX/9tYyAOcLz/+/flMBtKOq//U4GAGypNP/AxDKAWI5dv+Ng1n+ITMYAPOVW//9NA4AI6lD/jEeWP+zGyT/pYy3ADq9lwBYHwAAS6lCAEJlx/8Y2McBecQa/w5Py/7w4lH/XhwK/1PB8P/MwYP/Xg9WANoonQAzwdEAAPKxAGa59wCebXQAJodbAN+vlQDcQgH/VjzoABlgJf/heqIB17uo/56dLgA4q6IA6PBlAXoWCQAzCRX/NRnu/9ke6P59qZQADehmAJQJJQClYY0B5IMpAN4P8//+EhEABjztAWoDcQA7hL0AXHAeAGnQ1QAwVLP/u3nn/hvYbf+i3Wv+Se/D//ofOf+Vh1n/uRdzAQOjnf8ScPoAGTm7/6FgpAAvEPMADI37/kPquP8pEqEArwZg/6CsNP4YsLf/xsFVAXx5if+XMnL/3Ms8/8/vBQEAJmv/N+5e/kaYXgDV3E0BeBFF/1Wkvv/L6lEAJjEl/j2QfACJTjH+qPcwAF+k/ABpqYcA/eSGAECmSwBRSRT/z9IKAOpqlv9eIlr//p85/tyFYwCLk7T+GBe5ACk5Hv+9YUwAQbvf/+CsJf8iPl8B55DwAE1qfv5AmFsAHWKbAOL7Nf/q0wX/kMve/6Sw3f4F5xgAs3rNACQBhv99Rpf+YeT8AKyBF/4wWtH/luBSAVSGHgDxxC4AZ3Hq/y5lef4ofPr/hy3y/gn5qP+MbIP/j6OrADKtx/9Y3o7/yF+eAI7Ao/8HdYcAb3wWAOwMQf5EJkH/467+APT1JgDwMtD/oT/6ADzR7wB6IxMADiHm/gKfcQBqFH//5M1gAInSrv601JD/WWKaASJYiwCnonABQW7FAPElqQBCOIP/CslT/oX9u/+xcC3+xPsAAMT6l//u6Nb/ltHNABzwdgBHTFMB7GNbACr6gwFgEkD/dt4jAHHWy/96d7j/QhMkAMxA+QCSWYsAhj6HAWjpZQC8VBoAMfmBANDWS//Pgk3/c6/rAKsCif+vkboBN/WH/5pWtQFkOvb/bcc8/1LMhv/XMeYBjOXA/97B+/9RiA//s5Wi/xcnHf8HX0v+v1HeAPFRWv9rMcn/9NOdAN6Mlf9B2zj+vfZa/7I7nQEw2zQAYiLXABwRu/+vqRgAXE+h/+zIwgGTj+oA5eEHAcWoDgDrMzUB/XiuAMUGqP/KdasAoxXOAHJVWv8PKQr/whNjAEE32P6iknQAMs7U/0CSHf+enoMBZKWC/6wXgf99NQn/D8ESARoxC/+1rskBh8kO/2QTlQDbYk8AKmOP/mAAMP/F+VP+aJVP/+tuiP5SgCz/QSkk/ljTCgC7ebsAYobHAKu8s/7SC+7/QnuC/jTqPQAwcRf+BlZ4/3ey9QBXgckA8o3RAMpyVQCUFqEAZ8MwABkxq/+KQ4IAtkl6/pQYggDT5ZoAIJueAFRpPQCxwgn/pllWATZTuwD5KHX/bQPX/zWSLAE/L7MAwtgD/g5UiACIsQ3/SPO6/3URff/TOtP/XU/fAFpY9f+L0W//Rt4vAAr2T//G2bIA4+ELAU5+s/8+K34AZ5QjAIEIpf718JQAPTOOAFHQhgAPiXP/03fs/5/1+P8Choj/5os6AaCk/gByVY3/Maa2/5BGVAFVtgcALjVdAAmmof83orL/Lbi8AJIcLP6pWjEAeLLxAQ57f/8H8ccBvUIy/8aPZf6984f/jRgY/kthVwB2+5oB7TacAKuSz/+DxPb/iEBxAZfoOQDw2nMAMT0b/0CBSQH8qRv/KIQKAVrJwf/8efABus4pACvGYQCRZLcAzNhQ/qyWQQD55cT+aHtJ/01oYP6CtAgAaHs5ANzK5f9m+dMAVg7o/7ZO0QDv4aQAag0g/3hJEf+GQ+kAU/61ALfscAEwQIP/8djz/0HB4gDO8WT+ZIam/+3KxQA3DVEAIHxm/yjksQB2tR8B56CG/3e7ygAAjjz/gCa9/6bJlgDPeBoBNrisAAzyzP6FQuYAIiYfAbhwUAAgM6X+v/M3ADpJkv6bp83/ZGiY/8X+z/+tE/cA7grKAO+X8gBeOyf/8B1m/wpcmv/lVNv/oYFQANBazAHw267/nmaRATWyTP80bKgBU95rANMkbQB2OjgACB0WAO2gxwCq0Z0AiUcvAI9WIADG8gIA1DCIAVysugDml2kBYL/lAIpQv/7w2IL/YisG/qjEMQD9ElsBkEl5AD2SJwE/aBj/uKVw/n7rYgBQ1WL/ezxX/1KM9QHfeK3/D8aGAc487wDn6lz/Ie4T/6VxjgGwdyYAoCum/u9baQBrPcIBGQREAA+LMwCkhGr/InQu/qhfxQCJ1BcASJw6AIlwRf6WaZr/7MmdABfUmv+IUuP+4jvd/1+VwABRdjT/ISvXAQ6TS/9ZnHn+DhJPAJPQiwGX2j7/nFgIAdK4Yv8Ur3v/ZlPlANxBdAGW+gT/XI7c/yL3Qv/M4bP+l1GXAEco7P+KPz4ABk/w/7e5tQB2MhsAP+PAAHtjOgEy4Jv/EeHf/tzgTf8OLHsBjYCvAPjUyACWO7f/k2EdAJbMtQD9JUcAkVV3AJrIugACgPn/Uxh8AA5XjwCoM/UBfJfn/9DwxQF8vrkAMDr2ABTp6AB9EmL/Df4f//Wxgv9sjiMAq33y/owMIv+loaIAzs1lAPcZIgFkkTkAJ0Y5AHbMy//yAKIApfQeAMZ04gCAb5n/jDa2ATx6D/+bOjkBNjLGAKvTHf9riqf/rWvH/22hwQBZSPL/znNZ//r+jv6xyl7/UVkyAAdpQv8Z/v/+y0AX/0/ebP8n+UsA8XwyAO+YhQDd8WkAk5diANWhef7yMYkA6SX5/iq3GwC4d+b/2SCj/9D75AGJPoP/T0AJ/l4wcQARijL+wf8WAPcSxQFDN2gAEM1f/zAlQgA3nD8BQFJK/8g1R/7vQ30AGuDeAN+JXf8e4Mr/CdyEAMYm6wFmjVYAPCtRAYgcGgDpJAj+z/KUAKSiPwAzLuD/cjBP/wmv4gDeA8H/L6Do//9daf4OKuYAGopSAdAr9AAbJyb/YtB//0CVtv8F+tEAuzwc/jEZ2v+pdM3/dxJ4AJx0k/+ENW3/DQrKAG5TpwCd24n/BgOC/zKnHv88ny//gYCd/l4DvQADpkQAU9/XAJZawgEPqEEA41Mz/82rQv82uzwBmGYt/3ea4QDw94gAZMWy/4tH3//MUhABKc4q/5zA3f/Ye/T/2tq5/7u67//8rKD/wzQWAJCutf67ZHP/006w/xsHwQCT1Wj/WskK/1B7QgEWIboAAQdj/h7OCgDl6gUANR7SAIoI3P5HN6cASOFWAXa+vAD+wWUBq/ms/16et/5dAmz/sF1M/0ljT/9KQIH+9i5BAGPxf/72l2b/LDXQ/jtm6gCar6T/WPIgAG8mAQD/tr7/c7AP/qk8gQB67fEAWkw/AD5KeP96w24AdwSyAN7y0gCCIS7+nCgpAKeScAExo2//ebDrAEzPDv8DGcYBKevVAFUk1gExXG3/yBge/qjswwCRJ3wB7MOVAFokuP9DVar/JiMa/oN8RP/vmyP/NsmkAMQWdf8xD80AGOAdAX5xkAB1FbYAy5+NAN+HTQCw5rD/vuXX/2Mltf8zFYr/Gb1Z/zEwpf6YLfcAqmzeAFDKBQAbRWf+zBaB/7T8Pv7SAVv/km7+/9uiHADf/NUBOwghAM4Q9ACB0zAAa6DQAHA70QBtTdj+IhW5//ZjOP+zixP/uR0y/1RZEwBK+mL/4SrI/8DZzf/SEKcAY4RfASvmOQD+C8v/Y7w//3fB+/5QaTYA6LW9AbdFcP/Qq6X/L220/3tTpQCSojT/mgsE/5fjWv+SiWH+Pekp/14qN/9spOwAmET+AAqMg/8Kak/+856JAEOyQv6xe8b/Dz4iAMVYKv+VX7H/mADG/5X+cf/hWqP/fdn3ABIR4ACAQnj+wBkJ/zLdzQAx1EYA6f+kAALRCQDdNNv+rOD0/144zgHyswL/H1ukAeYuiv+95twAOS89/28LnQCxW5gAHOZiAGFXfgDGWZH/p09rAPlNoAEd6eb/lhVW/jwLwQCXJST+uZbz/+TUUwGsl7QAyambAPQ86gCO6wQBQ9o8AMBxSwF088//QaybAFEenP9QSCH+Eudt/45rFf59GoT/sBA7/5bJOgDOqckA0HniACisDv+WPV7/ODmc/408kf8tbJX/7pGb/9FVH/7ADNIAY2Jd/pgQlwDhudwAjess/6CsFf5HGh//DUBd/hw4xgCxPvgBtgjxAKZllP9OUYX/gd7XAbypgf/oB2EAMXA8/9nl+wB3bIoAJxN7/oMx6wCEVJEAguaU/xlKuwAF9Tb/udvxARLC5P/xymYAaXHKAJvrTwAVCbL/nAHvAMiUPQBz99L/Md2HADq9CAEjLgkAUUEF/zSeuf99dC7/SowN/9JcrP6TF0cA2eD9/nNstP+ROjD+27EY/5z/PAGak/IA/YZXADVL5QAww97/H68y/5zSeP/QI97/EvizAQIKZf+dwvj/nsxl/2j+xf9PPgQAsqxlAWCS+/9BCpwAAoml/3QE5wDy1wEAEyMd/yuhTwA7lfYB+0KwAMghA/9Qbo7/w6ERAeQ4Qv97L5H+hASkAEOurAAZ/XIAV2FXAfrcVABgW8j/JX07ABNBdgChNPH/7awG/7C///8BQYL+377mAGX95/+SI20A+h1NATEAEwB7WpsBFlYg/9rVQQBvXX8APF2p/wh/tgARug7+/Yn2/9UZMP5M7gD/+FxG/2PgiwC4Cf8BB6TQAM2DxgFX1scAgtZfAN2V3gAXJqv+xW7VACtzjP7XsXYAYDRCAXWe7QAOQLb/Lj+u/55fvv/hzbH/KwWO/6xj1P/0u5MAHTOZ/+R0GP4eZc8AE/aW/4bnBQB9huIBTUFiAOyCIf8Fbj4ARWx//wdxFgCRFFP+wqHn/4O1PADZ0bH/5ZTU/gODuAB1sbsBHA4f/7BmUAAyVJf/fR82/xWdhf8Ts4sB4OgaACJ1qv+n/Kv/SY3O/oH6IwBIT+wB3OUU/ynKrf9jTO7/xhbg/2zGw/8kjWAB7J47/2pkVwBu4gIA4+reAJpdd/9KcKT/Q1sC/xWRIf9m1on/r+Zn/qP2pgBd93T+p+Ac/9wCOQGrzlQAe+QR/xt4dwB3C5MBtC/h/2jIuf6lAnIATU7UAC2asf8YxHn+Up22AFoQvgEMk8UAX++Y/wvrRwBWknf/rIbWADyDxACh4YEAH4J4/l/IMwBp59L/OgmU/yuo3f987Y4AxtMy/i71ZwCk+FQAmEbQ/7R1sQBGT7kA80ogAJWczwDFxKEB9TXvAA9d9v6L8DH/xFgk/6ImewCAyJ0Brkxn/62pIv7YAav/cjMRAIjkwgBuljj+avafABO4T/+WTfD/m1CiAAA1qf8dl1YARF4QAFwHbv5idZX/+U3m//0KjADWfFz+I3brAFkwOQEWNaYAuJA9/7P/wgDW+D3+O272AHkVUf6mA+QAakAa/0Xohv/y3DX+LtxVAHGV9/9hs2f/vn8LAIfRtgBfNIEBqpDO/3rIzP+oZJIAPJCV/kY8KAB6NLH/9tNl/67tCAAHM3gAEx+tAH7vnP+PvcsAxIBY/+mF4v8efa3/yWwyAHtkO//+owMB3ZS1/9aIOf7etIn/z1g2/xwh+/9D1jQB0tBkAFGqXgCRKDUA4G/n/iMc9P/ix8P+7hHmANnZpP6pnd0A2i6iAcfPo/9sc6IBDmC7/3Y8TAC4n5gA0edH/iqkuv+6mTP+3au2/6KOrQDrL8EAB4sQAV+kQP8Q3aYA28UQAIQdLP9kRXX/POtY/ihRrQBHvj3/u1idAOcLFwDtdaQA4ajf/5pydP+jmPIBGCCqAH1icf6oE0wAEZ3c/ps0BQATb6H/R1r8/61u8AAKxnn//f/w/0J70gDdwtf+eaMR/+EHYwC+MbYAcwmFAegaiv/VRIQALHd6/7NiMwCVWmoARzLm/wqZdv+xRhkApVfNADeK6gDuHmEAcZvPAGKZfwAia9v+dXKs/0y0//7yObP/3SKs/jiiMf9TA///cd29/7wZ5P4QWFn/RxzG/hYRlf/zef7/a8pj/wnODgHcL5kAa4knAWExwv+VM8X+ujoL/2sr6AHIBg7/tYVB/t3kq/97PucB4+qz/yK91P70u/kAvg1QAYJZAQDfha0ACd7G/0J/SgCn2F3/m6jGAUKRAABEZi4BrFqaANiAS/+gKDMAnhEbAXzwMQDsyrD/l3zA/ybBvgBftj0Ao5N8//+lM/8cKBH+12BOAFaR2v4fJMr/VgkFAG8pyP/tbGEAOT4sAHW4DwEt8XQAmAHc/52lvAD6D4MBPCx9/0Hc+/9LMrgANVqA/+dQwv+IgX8BFRK7/y06of9HkyIArvkL/iONHQDvRLH/c246AO6+sQFX9ab/vjH3/5JTuP+tDif/ktdoAI7feACVyJv/1M+RARC12QCtIFf//yO1AHffoQHI317/Rga6/8BDVf8yqZgAkBp7/zjzs/4URIgAJ4y8/v3QBf/Ic4cBK6zl/5xouwCX+6cANIcXAJeZSACTxWv+lJ4F/+6PzgB+mYn/WJjF/gdEpwD8n6X/7042/xg/N/8m3l4A7bcM/87M0gATJ/b+HkrnAIdsHQGzcwAAdXZ0AYQG/P+RgaEBaUONAFIl4v/u4uT/zNaB/qJ7ZP+5eeoALWznAEIIOP+EiIAArOBC/q+dvADm3+L+8ttFALgOdwFSojgAcnsUAKJnVf8x72P+nIfXAG//p/4nxNYAkCZPAfmofQCbYZz/FzTb/5YWkAAslaX/KH+3AMRN6f92gdL/qofm/9Z3xgDp8CMA/TQH/3VmMP8VzJr/s4ix/xcCAwGVgln//BGfAUY8GgCQaxEAtL48/zi2O/9uRzb/xhKB/5XgV//fFZj/iha2//qczQDsLdD/T5TyAWVG0QBnTq4AZZCs/5iI7QG/wogAcVB9AZgEjQCbljX/xHT1AO9ySf4TUhH/fH3q/yg0vwAq0p7/m4SlALIFKgFAXCj/JFVN/7LkdgCJQmD+c+JCAG7wRf6Xb1AAp67s/+Nsa/+88kH/t1H/ADnOtf8vIrX/1fCeAUdLXwCcKBj/ZtJRAKvH5P+aIikA469LABXvwwCK5V8BTMAxAHV7VwHj4YIAfT4//wLGqwD+JA3+kbrOAJT/9P8jAKYAHpbbAVzk1ABcxjz+PoXI/8kpOwB97m3/tKPuAYx6UgAJFlj/xZ0v/5leOQBYHrYAVKFVALKSfACmpgf/FdDfAJy28gCbebkAU5yu/poQdv+6U+gB3zp5/x0XWAAjfX//qgWV/qQMgv+bxB0AoWCIAAcjHQGiJfsAAy7y/wDZvAA5ruIBzukCADm7iP57vQn/yXV//7okzADnGdgAUE5pABOGgf+Uy0QAjVF9/vilyP/WkIcAlzem/ybrWwAVLpoA3/6W/yOZtP99sB0BK2Ie/9h65v/poAwAObkM/vBxB/8FCRD+GltsAG3GywAIkygAgYbk/3y6KP9yYoT+poQXAGNFLAAJ8u7/uDU7AISBZv80IPP+k9/I/3tTs/6HkMn/jSU4AZc84/9aSZwBy6y7AFCXL/9eief/JL87/+HRtf9K19X+Bnaz/5k2wQEyAOcAaJ1IAYzjmv+24hD+YOFc/3MUqv4G+k4A+Eut/zVZBv8AtHYASK0BAEAIzgGuhd8AuT6F/9YLYgDFH9AAq6f0/xbntQGW2rkA96lhAaWL9/8veJUBZ/gzADxFHP4Zs8QAfAfa/jprUQC46Zz//EokAHa8QwCNXzX/3l6l/i49NQDOO3P/L+z6/0oFIAGBmu7/aiDiAHm7Pf8DpvH+Q6qs/x3Ysv8XyfwA/W7zAMh9OQBtwGD/NHPuACZ58//JOCEAwnaCAEtgGf+qHub+Jz/9ACQt+v/7Ae8AoNRcAS3R7QDzIVf+7VTJ/9QSnf7UY3//2WIQ/ous7wCoyYL/j8Gp/+6XwQHXaCkA7z2l/gID8gAWy7H+scwWAJWB1f4fCyn/AJ95/qAZcv+iUMgAnZcLAJqGTgHYNvwAMGeFAGncxQD9qE3+NbMXABh58AH/LmD/azyH/mLN+f8/+Xf/eDvT/3K0N/5bVe0AldRNAThJMQBWxpYAXdGgAEXNtv/0WisAFCSwAHp03QAzpycB5wE//w3FhgAD0SL/hzvKAKdkTgAv30wAuTw+ALKmewGEDKH/Pa4rAMNFkAB/L78BIixOADnqNAH/Fij/9l6SAFPkgAA8TuD/AGDS/5mv7ACfFUkAtHPE/oPhagD/p4YAnwhw/3hEwv+wxMb/djCo/12pAQBwyGYBShj+ABONBP6OPj8Ag7O7/02cm/93VqQAqtCS/9CFmv+Umzr/onjo/vzVmwDxDSoAXjKDALOqcACMU5f/N3dUAYwj7/+ZLUMB7K8nADaXZ/+eKkH/xO+H/lY1ywCVYS/+2CMR/0YDRgFnJFr/KBqtALgwDQCj29n/UQYB/92qbP7p0F0AZMn5/lYkI//Rmh4B48n7/wK9p/5kOQMADYApAMVkSwCWzOv/ka47AHj4lf9VN+EActI1/sfMdwAO90oBP/uBAENolwGHglAAT1k3/3Xmnf8ZYI8A1ZEFAEXxeAGV81//cioUAINIAgCaNRT/ST5tAMRmmAApDMz/eiYLAfoKkQDPfZQA9vTe/ykgVQFw1X4AovlWAUfGf/9RCRUBYicE/8xHLQFLb4kA6jvnACAwX//MH3IBHcS1/zPxp/5dbY4AaJAtAOsMtf80cKQATP7K/64OogA965P/K0C5/ul92QDzWKf+SjEIAJzMQgB81nsAJt12AZJw7AByYrEAl1nHAFfFcAC5laEALGClAPizFP+829j+KD4NAPOOjQDl487/rMoj/3Ww4f9SbiYBKvUO/xRTYQAxqwoA8nd4ABnoPQDU8JP/BHM4/5ER7/7KEfv/+RL1/2N17wC4BLP/9u0z/yXvif+mcKb/Ubwh/7n6jv82u60A0HDJAPYr5AFouFj/1DTE/zN1bP/+dZsALlsP/1cOkP9X48wAUxpTAZ9M4wCfG9UBGJdsAHWQs/6J0VIAJp8KAHOFyQDftpwBbsRd/zk86QAFp2n/msWkAGAiuv+ThSUB3GO+AAGnVP8UkasAwsX7/l9Ohf/8+PP/4V2D/7uGxP/YmaoAFHae/owBdgBWng8BLdMp/5MBZP5xdEz/039sAWcPMADBEGYBRTNf/2uAnQCJq+kAWnyQAWqhtgCvTOwByI2s/6M6aADptDT/8P0O/6Jx/v8m74r+NC6mAPFlIf6DupwAb9A+/3xeoP8frP4AcK44/7xjG/9DivsAfTqAAZyYrv+yDPf//FSeAFLFDv6syFP/JScuAWrPpwAYvSIAg7KQAM7VBACh4tIASDNp/2Etu/9OuN//sB37AE+gVv90JbIAUk3VAVJUjf/iZdQBr1jH//Ve9wGsdm3/prm+AIO1eABX/l3/hvBJ/yD1j/+Lomf/s2IS/tnMcACT33j/NQrzAKaMlgB9UMj/Dm3b/1vaAf/8/C/+bZx0/3MxfwHMV9P/lMrZ/xpV+f8O9YYBTFmp//It5gA7Yqz/ckmE/k6bMf+eflQAMa8r/xC2VP+dZyMAaMFt/0PdmgDJrAH+CKJYAKUBHf99m+X/HprcAWfvXADcAW3/ysYBAF4CjgEkNiwA6+Ke/6r71v+5TQkAYUryANujlf/wI3b/33JY/sDHAwBqJRj/yaF2/2FZYwHgOmf/ZceT/t48YwDqGTsBNIcbAGYDW/6o2OsA5eiIAGg8gQAuqO4AJ79DAEujLwCPYWL/ONioAajp/P8jbxb/XFQrABrIVwFb/ZgAyjhGAI4ITQBQCq8B/MdMABZuUv+BAcIAC4A9AVcOkf/93r4BD0iuAFWjVv46Yyz/LRi8/hrNDwAT5dL++EPDAGNHuACaxyX/l/N5/yYzS//JVYL+LEH6ADmT8/6SKzv/WRw1ACFUGP+zMxL+vUZTAAucswFihncAnm9vAHeaSf/IP4z+LQ0N/5rAAv5RSCoALqC5/ixwBgCS15UBGrBoAEQcVwHsMpn/s4D6/s7Bv/+mXIn+NSjvANIBzP6orSMAjfMtASQybf8P8sL/4596/7Cvyv5GOUgAKN84ANCiOv+3Yl0AD28MAB4ITP+Ef/b/LfJnAEW1D/8K0R4AA7N5APHo2gF7x1j/AtLKAbyCUf9eZdABZyQtAEzBGAFfGvH/paK7ACRyjADKQgX/JTiTAJgL8wF/Vej/+ofUAbmxcQBa3Ev/RfiSADJvMgBcFlAA9CRz/qNkUv8ZwQYBfz0kAP1DHv5B7Kr/oRHX/j+vjAA3fwQAT3DpAG2gKACPUwf/QRru/9mpjP9OXr3/AJO+/5NHuv5qTX//6Z3pAYdX7f/QDewBm20k/7Rk2gC0oxIAvm4JARE/e/+ziLT/pXt7/5C8Uf5H8Gz/GXAL/+PaM/+nMur/ck9s/x8Tc/+38GMA41eP/0jZ+P9mqV8BgZWVAO6FDAHjzCMA0HMaAWYI6gBwWI8BkPkOAPCerP5kcHcAwo2Z/ig4U/95sC4AKjVM/56/mgBb0VwArQ0QAQVI4v/M/pUAULjPAGQJev52Zav//MsA/qDPNgA4SPkBOIwN/wpAa/5bZTT/4bX4AYv/hADmkREA6TgXAHcB8f/VqZf/Y2MJ/rkPv/+tZ20Brg37/7JYB/4bO0T/CiEC//hhOwAaHpIBsJMKAF95zwG8WBgAuV7+/nM3yQAYMkYAeDUGAI5CkgDk4vn/aMDeAa1E2wCiuCT/j2aJ/50LFwB9LWIA613h/jhwoP9GdPMBmfk3/4EnEQHxUPQAV0UVAV7kSf9OQkH/wuPnAD2SV/+tmxf/cHTb/tgmC/+DuoUAXtS7AGQvWwDM/q//3hLX/q1EbP/j5E//Jt3VAKPjlv4fvhIAoLMLAQpaXv/crlgAo9Pl/8eINACCX93/jLzn/otxgP91q+z+MdwU/zsUq//kbbwAFOEg/sMQrgDj/ogBhydpAJZNzv/S7uIAN9SE/u85fACqwl3/+RD3/xiXPv8KlwoAT4uy/3jyygAa29UAPn0j/5ACbP/mIVP/US3YAeA+EQDW2X0AYpmZ/7Owav6DXYr/bT4k/7J5IP94/EYA3PglAMxYZwGA3Pv/7OMHAWoxxv88OGsAY3LuANzMXgFJuwEAWZoiAE7Zpf8Ow/n/Ceb9/82H9QAa/Af/VM0bAYYCcAAlniAA51vt/7+qzP+YB94AbcAxAMGmkv/oE7X/aY40/2cQGwH9yKUAw9kE/zS9kP97m6D+V4I2/054Pf8OOCkAGSl9/1eo9QDWpUYA1KkG/9vTwv5IXaT/xSFn/yuOjQCD4awA9GkcAERE4QCIVA3/gjko/otNOABUljUANl+dAJANsf5fc7oAdRd2//Sm8f8LuocAsmrL/2HaXQAr/S0ApJgEAIt27wBgARj+65nT/6huFP8y77AAcinoAMH6NQD+oG/+iHop/2FsQwDXmBf/jNHUACq9owDKKjL/amq9/75E2f/pOnUA5dzzAcUDBAAleDb+BJyG/yQ9q/6liGT/1OgOAFquCgDYxkH/DANAAHRxc//4ZwgA530S/6AcxQAeuCMB30n5/3sULv6HOCX/rQ3lAXehIv/1PUkAzX1wAIlohgDZ9h7/7Y6PAEGfZv9spL4A23Wt/yIleP7IRVAAH3za/koboP+6msf/R8f8AGhRnwERyCcA0z3AARruWwCU2QwAO1vV/wtRt/+B5nr/csuRAXe0Qv9IirQA4JVqAHdSaP/QjCsAYgm2/81lhv8SZSYAX8Wm/8vxkwA+0JH/hfb7AAKpDgAN97gAjgf+ACTIF/9Yzd8AW4E0/xW6HgCP5NIB9+r4/+ZFH/6wuof/7s00AYtPKwARsNn+IPNDAPJv6QAsIwn/43JRAQRHDP8mab8AB3Uy/1FPEAA/REH/nSRu/03xA//iLfsBjhnOAHh70QEc/u7/BYB+/1ve1/+iD78AVvBJAIe5Uf4s8aMA1NvS/3CimwDPZXYAqEg4/8QFNABIrPL/fhad/5JgO/+ieZj+jBBfAMP+yP5SlqIAdyuR/sysTv+m4J8AaBPt//V+0P/iO9UAddnFAJhI7QDcHxf+Dlrn/7zUQAE8Zfb/VRhWAAGxbQCSUyABS7bAAHfx4AC57Rv/uGVSAeslTf/9hhMA6PZ6ADxqswDDCwwAbULrAX1xOwA9KKQAr2jwAAIvu/8yDI0Awou1/4f6aABhXN7/2ZXJ/8vxdv9Pl0MAeo7a/5X17wCKKsj+UCVh/3xwp/8kilf/gh2T//FXTv/MYRMBsdEW//fjf/5jd1P/1BnGARCzswCRTaz+WZkO/9q9pwBr6Tv/IyHz/ixwcP+hf08BzK8KACgViv5odOQAx1+J/4W+qP+SpeoBt2MnALfcNv7/3oUAott5/j/vBgDhZjb/+xL2AAQigQGHJIMAzjI7AQ9htwCr2If/ZZgr/5b7WwAmkV8AIswm/rKMU/8ZgfP/TJAlAGokGv52kKz/RLrl/2uh1f8uo0T/lar9ALsRDwDaoKX/qyP2AWANEwCly3UA1mvA//R7sQFkA2gAsvJh//tMgv/TTSoB+k9G/z/0UAFpZfYAPYg6Ae5b1QAOO2L/p1RNABGELv45r8X/uT64AExAzwCsr9D+r0olAIob0/6UfcIACllRAKjLZf8r1dEB6/U2AB4j4v8JfkYA4n1e/px1FP85+HAB5jBA/6RcpgHg1ub/JHiPADcIK//7AfUBamKlAEprav41BDb/WrKWAQN4e//0BVkBcvo9//6ZUgFNDxEAOe5aAV/f5gDsNC/+Z5Sk/3nPJAESELn/SxRKALsLZQAuMIH/Fu/S/03sgf9vTcz/PUhh/8fZ+/8q18wAhZHJ/znmkgHrZMYAkkkj/mzGFP+2T9L/UmeIAPZssAAiETz/E0py/qiqTv+d7xT/lSmoADp5HABPs4b/53mH/67RYv/zer4Aq6bNANR0MAAdbEL/ot62AQ53FQDVJ/n//t/k/7elxgCFvjAAfNBt/3evVf8J0XkBMKu9/8NHhgGI2zP/tluN/jGfSAAjdvX/cLrj/zuJHwCJLKMAcmc8/gjVlgCiCnH/wmhIANyDdP+yT1wAy/rV/l3Bvf+C/yL+1LyXAIgRFP8UZVP/1M6mAOXuSf+XSgP/qFfXAJu8hf+mgUkA8E+F/7LTUf/LSKP+wailAA6kx/4e/8wAQUhbAaZKZv/IKgD/wnHj/0IX0ADl2GT/GO8aAArpPv97CrIBGiSu/3fbxwEto74AEKgqAKY5xv8cGhoAfqXnAPtsZP895Xn/OnaKAEzPEQANInD+WRCoACXQaf8jydf/KGpl/gbvcgAoZ+L+9n9u/z+nOgCE8I4ABZ5Y/4FJnv9eWZIA5jaSAAgtrQBPqQEAc7r3AFRAgwBD4P3/z71AAJocUQEtuDb/V9Tg/wBgSf+BIesBNEJQ//uum/8EsyUA6qRd/l2v/QDGRVf/4GouAGMd0gA+vHL/LOoIAKmv9/8XbYn/5bYnAMClXv71ZdkAv1hgAMReY/9q7gv+NX7zAF4BZf8ukwIAyXx8/40M2gANpp0BMPvt/5v6fP9qlJL/tg3KABw9pwDZmAj+3IIt/8jm/wE3QVf/Xb9h/nL7DgAgaVwBGs+NABjPDf4VMjD/upR0/9Mr4QAlIqL+pNIq/0QXYP+21gj/9XWJ/0LDMgBLDFP+UIykAAmlJAHkbuMA8RFaARk01AAG3wz/i/M5AAxxSwH2t7//1b9F/+YPjgABw8T/iqsv/0A/agEQqdb/z644AVhJhf+2hYwAsQ4Z/5O4Nf8K46H/eNj0/0lN6QCd7osBO0HpAEb72AEpuJn/IMtwAJKT/QBXZW0BLFKF//SWNf9emOj/O10n/1iT3P9OUQ0BIC/8/6ATcv9dayf/dhDTAbl30f/j23/+WGns/6JuF/8kpm7/W+zd/0LqdABvE/T+CukaACC3Bv4Cv/IA2pw1/ik8Rv+o7G8Aebl+/+6Oz/83fjQA3IHQ/lDMpP9DF5D+2ihs/3/KpADLIQP/Ap4AACVgvP/AMUoAbQQAAG+nCv5b2of/y0Kt/5bC4gDJ/Qb/rmZ5AM2/bgA1wgQAUSgt/iNmj/8MbMb/EBvo//xHugGwbnIAjgN1AXFNjgATnMUBXC/8ADXoFgE2EusALiO9/+zUgQACYND+yO7H/zuvpP+SK+cAwtk0/wPfDACKNrL+VevPAOjPIgAxNDL/pnFZ/wot2P8+rRwAb6X2AHZzW/+AVDwAp5DLAFcN8wAWHuQBsXGS/4Gq5v78mYH/keErAEbnBf96aX7+VvaU/24lmv7RA1sARJE+AOQQpf833fn+stJbAFOS4v5FkroAXdJo/hAZrQDnuiYAvXqM//sNcP9pbl0A+0iqAMAX3/8YA8oB4V3kAJmTx/5tqhYA+GX2/7J8DP+y/mb+NwRBAH3WtAC3YJMALXUX/oS/+QCPsMv+iLc2/5LqsQCSZVb/LHuPASHRmADAWin+Uw99/9WsUgDXqZAAEA0iACDRZP9UEvkBxRHs/9m65gAxoLD/b3Zh/+1o6wBPO1z+RfkL/yOsSgETdkQA3nyl/7RCI/9WrvYAK0pv/36QVv/k6lsA8tUY/kUs6//ctCMACPgH/2YvXP/wzWb/cearAR+5yf/C9kb/ehG7AIZGx/+VA5b/dT9nAEFoe//UNhMBBo1YAFOG8/+INWcAqRu0ALExGABvNqcAwz3X/x8BbAE8KkYAuQOi/8KVKP/2fyb+vncm/z13CAFgodv/KsvdAbHypP/1nwoAdMQAAAVdzf6Af7MAfe32/5Wi2f9XJRT+jO7AAAkJwQBhAeIAHSYKAACIP//lSNL+JoZc/07a0AFoJFT/DAXB//KvPf+/qS4Bs5OT/3G+i/59rB8AA0v8/tckDwDBGxgB/0WV/26BdgDLXfkAiolA/iZGBgCZdN4AoUp7AMFjT/92O17/PQwrAZKxnQAuk78AEP8mAAszHwE8OmL/b8JNAZpb9ACMKJABrQr7AMvRMv5sgk4A5LRaAK4H+gAfrjwAKaseAHRjUv92wYv/u63G/tpvOAC5e9gA+Z40ADS0Xf/JCVv/OC2m/oSby/866G4ANNNZ//0AogEJV7cAkYgsAV569QBVvKsBk1zGAAAIaAAeX64A3eY0Aff36/+JrjX/IxXM/0fj1gHoUsIACzDj/6pJuP/G+/z+LHAiAINlg/9IqLsAhId9/4poYf/uuKj/82hU/4fY4v+LkO0AvImWAVA4jP9Wqaf/wk4Z/9wRtP8RDcEAdYnU/43glwAx9K8AwWOv/xNjmgH/QT7/nNI3//L0A//6DpUAnljZ/53Phv776BwALpz7/6s4uP/vM+oAjoqD/xn+8wEKycIAP2FLANLvogDAyB8BddbzABhH3v42KOj/TLdv/pAOV//WT4j/2MTUAIQbjP6DBf0AfGwT/xzXSwBM3jf+6bY/AESrv/40b97/CmlN/1Cq6wCPGFj/Led5AJSB4AE99lQA/S7b/+9MIQAxlBL+5iVFAEOGFv6Om14AH53T/tUqHv8E5Pf+/LAN/ycAH/7x9P//qi0K/v3e+QDecoQA/y8G/7SjswFUXpf/WdFS/uU0qf/V7AAB1jjk/4d3l/9wycEAU6A1/gaXQgASohEA6WFbAIMFTgG1eDX/dV8//+11uQC/foj/kHfpALc5YQEvybv/p6V3AS1kfgAVYgb+kZZf/3g2mADRYmgAj28e/riU+QDr2C4A+MqU/zlfFgDy4aMA6ffo/0erE/9n9DH/VGdd/0R59AFS4A0AKU8r//nOp//XNBX+wCAW//dvPABlSib/FltU/h0cDf/G59f+9JrIAN+J7QDThA4AX0DO/xE+9//pg3kBXRdNAM3MNP5RvYgAtNuKAY8SXgDMK4z+vK/bAG9ij/+XP6L/0zJH/hOSNQCSLVP+slLu/xCFVP/ixl3/yWEU/3h2I/9yMuf/ouWc/9MaDAByJ3P/ztSGAMXZoP90gV7+x9fb/0vf+QH9dLX/6Ndo/+SC9v+5dVYADgUIAO8dPQHtV4X/fZKJ/syo3wAuqPUAmmkWANzUof9rRRj/idq1//FUxv+CetP/jQiZ/76xdgBgWbIA/xAw/npgaf91Nuj/In5p/8xDpgDoNIr/05MMABk2BwAsD9f+M+wtAL5EgQFqk+EAHF0t/uyND/8RPaEA3HPAAOyRGP5vqKkA4Do//3+kvABS6ksB4J6GANFEbgHZptkARuGmAbvBj/8QB1j/Cs2MAHXAnAEROCYAG3xsAavXN/9f/dQAm4eo//aymf6aREoA6D1g/mmEOwAhTMcBvbCC/wloGf5Lxmb/6QFwAGzcFP9y5kYAjMKF/zmepP6SBlD/qcRhAVW3ggBGnt4BO+3q/2AZGv/or2H/C3n4/lgjwgDbtPz+SgjjAMPjSQG4bqH/MemkAYA1LwBSDnn/wb46ADCudf+EFyAAKAqGARYzGf/wC7D/bjmSAHWP7wGdZXb/NlRMAM24Ev8vBEj/TnBV/8EyQgFdEDT/CGmGAAxtSP86nPsAkCPMACygdf4ya8IAAUSl/29uogCeUyj+TNbqADrYzf+rYJP/KONyAbDj8QBG+bcBiFSL/zx69/6PCXX/sa6J/kn3jwDsuX7/Phn3/y1AOP+h9AYAIjk4AWnKUwCAk9AABmcK/0qKQf9hUGT/1q4h/zKGSv9ul4L+b1SsAFTHS/74O3D/CNiyAQm3XwDuGwj+qs3cAMPlhwBiTO3/4lsaAVLbJ//hvscB2ch5/1GzCP+MQc4Ass9X/vr8Lv9oWW4B/b2e/5DWnv+g9Tb/NbdcARXIwv+SIXEB0QH/AOtqK/+nNOgAneXdADMeGQD63RsBQZNX/097xABBxN//TCwRAVXxRADKt/n/QdTU/wkhmgFHO1AAr8I7/41ICQBkoPQA5tA4ADsZS/5QwsIAEgPI/qCfcwCEj/cBb105/zrtCwGG3of/eqNsAXsrvv/7vc7+ULZI/9D24AERPAkAoc8mAI1tWwDYD9P/iE5uAGKjaP8VUHn/rbK3AX+PBABoPFL+1hAN/2DuIQGelOb/f4E+/zP/0v8+jez+nTfg/3In9ADAvPr/5Ew1AGJUUf+tyz3+kzI3/8zrvwA0xfQAWCvT/hu/dwC855oAQlGhAFzBoAH643gAezfiALgRSACFqAr+Foec/ykZZ/8wyjoAupVR/7yG7wDrtb3+2Yu8/0owUgAu2uUAvf37ADLlDP/Tjb8BgPQZ/6nnev5WL73/hLcX/yWylv8zif0AyE4fABZpMgCCPAAAhKNb/hfnuwDAT+8AnWak/8BSFAEYtWf/8AnqAAF7pP+F6QD/yvLyADy69QDxEMf/4HSe/r99W//gVs8AeSXn/+MJxv8Pme//eejZ/ktwUgBfDDn+M9Zp/5TcYQHHYiQAnNEM/grUNADZtDf+1Kro/9gUVP+d+ocAnWN//gHOKQCVJEYBNsTJ/1d0AP7rq5YAG6PqAMqHtADQXwD+e5xdALc+SwCJ67YAzOH//9aL0v8Ccwj/HQxvADScAQD9Ffv/JaUf/gyC0wBqEjX+KmOaAA7ZPf7YC1z/yMVw/pMmxwAk/Hj+a6lNAAF7n//PS2YAo6/EACwB8AB4urD+DWJM/+188f/okrz/yGDgAMwfKQDQyA0AFeFg/6+cxAD30H4APrj0/gKrUQBVc54ANkAt/xOKcgCHR80A4y+TAdrnQgD90RwA9A+t/wYPdv4QltD/uRYy/1Zwz/9LcdcBP5Ir/wThE/7jFz7/Dv/W/i0Izf9XxZf+0lLX//X49/+A+EYA4fdXAFp4RgDV9VwADYXiAC+1BQFco2n/Bh6F/uiyPf/mlRj/EjGeAORkPf508/v/TUtcAVHbk/9Mo/7+jdX2AOglmP5hLGQAySUyAdT0OQCuq7f/+UpwAKacHgDe3WH/811J/vtlZP/Y2V3//oq7/46+NP87y7H/yF40AHNynv+lmGgBfmPi/3ad9AFryBAAwVrlAHkGWACcIF3+ffHT/w7tnf+lmhX/uOAW//oYmP9xTR8A96sX/+2xzP80iZH/wrZyAODqlQAKb2cByYEEAO6OTgA0Bij/btWl/jzP/QA+10UAYGEA/zEtygB4eRb/64swAcYtIv+2MhsBg9Jb/y42gACve2n/xo1O/kP07//1Nmf+Tiby/wJc+f77rlf/iz+QABhsG/8iZhIBIhaYAELldv4yj2MAkKmVAXYemACyCHkBCJ8SAFpl5v+BHXcARCQLAei3NwAX/2D/oSnB/z+L3gAPs/MA/2QP/1I1hwCJOZUBY/Cq/xbm5P4xtFL/PVIrAG712QDHfT0ALv00AI3F2wDTn8EAN3lp/rcUgQCpd6r/y7KL/4cotv+sDcr/QbKUAAjPKwB6NX8BSqEwAOPWgP5WC/P/ZFYHAfVEhv89KxUBmFRe/748+v7vduj/1oglAXFMa/9daGQBkM4X/26WmgHkZ7kA2jEy/odNi/+5AU4AAKGU/2Ed6f/PlJX/oKgAAFuAq/8GHBP+C2/3ACe7lv+K6JUAdT5E/z/YvP/r6iD+HTmg/xkM8QGpPL8AIION/+2fe/9exV7+dP4D/1yzYf55YVz/qnAOABWV+AD44wMAUGBtAEvASgEMWuL/oWpEAdByf/9yKv/+ShpK//ezlv55jDwAk0bI/9Yoof+hvMn/jUGH//Jz/AA+L8oAtJX//oI37QClEbr/CqnCAJxt2v9wjHv/aIDf/rGObP95Jdv/gE0S/29sFwFbwEsArvUW/wTsPv8rQJkB463+AO16hAF/Wbr/jlKA/vxUrgBas7EB89ZX/2c8ov/Qgg7/C4KLAM6B2/9e2Z3/7+bm/3Rzn/6ka18AM9oCAdh9xv+MyoD+C19E/zcJXf6umQb/zKxgAEWgbgDVJjH+G1DVAHZ9cgBGRkP/D45J/4N6uf/zFDL+gu0oANKfjAHFl0H/VJlCAMN+WgAQ7uwBdrtm/wMYhf+7ReYAOMVcAdVFXv9QiuUBzgfmAN5v5gFb6Xf/CVkHAQJiAQCUSoX/M/a0/+SxcAE6vWz/wsvt/hXRwwCTCiMBVp3iAB+ji/44B0v/Plp0ALU8qQCKotT+UacfAM1acP8hcOMAU5d1AbHgSf+ukNn/5sxP/xZN6P9yTuoA4Dl+/gkxjQDyk6UBaLaM/6eEDAF7RH8A4VcnAftsCADGwY8BeYfP/6wWRgAyRHT/Za8o//hp6QCmywcAbsXaANf+Gv6o4v0AH49gAAtnKQC3gcv+ZPdK/9V+hADSkywAx+obAZQvtQCbW54BNmmv/wJOkf5mml8AgM9//jR87P+CVEcA3fPTAJiqzwDeascAt1Re/lzIOP+KtnMBjmCSAIWI5ABhEpYAN/tCAIxmBADKZ5cAHhP4/zO4zwDKxlkAN8Xh/qlf+f9CQUT/vOp+AKbfZAFw7/QAkBfCADontgD0LBj+r0Sz/5h2mgGwooIA2XLM/q1+Tv8h3h7/JAJb/wKP8wAJ69cAA6uXARjX9f+oL6T+8ZLPAEWBtABE83EAkDVI/vstDgAXbqgARERP/25GX/6uW5D/Ic5f/4kpB/8Tu5n+I/9w/wmRuf4ynSUAC3AxAWYIvv/q86kBPFUXAEonvQB0Me8ArdXSAC6hbP+fliUAxHi5/yJiBv+Zwz7/YeZH/2Y9TAAa1Oz/pGEQAMY7kgCjF8QAOBg9ALViwQD7k+X/Yr0Y/y42zv/qUvYAt2cmAW0+zAAK8OAAkhZ1/46aeABF1CMA0GN2AXn/A/9IBsIAdRHF/30PFwCaT5kA1l7F/7k3k/8+/k7+f1KZAG5mP/9sUqH/abvUAVCKJwA8/13/SAy6ANL7HwG+p5D/5CwT/oBD6ADW+Wv+iJFW/4QusAC9u+P/0BaMANnTdAAyUbr+i/ofAB5AxgGHm2QAoM4X/rui0/8QvD8A/tAxAFVUvwDxwPL/mX6RAeqiov/mYdgBQId+AL6U3wE0ACv/HCe9AUCI7gCvxLkAYuLV/3+f9AHirzwAoOmOAbTzz/9FmFkBH2UVAJAZpP6Lv9EAWxl5ACCTBQAnunv/P3Pm/12nxv+P1dz/s5wT/xlCegDWoNn/Ai0+/2pPkv4ziWP/V2Tn/6+R6P9luAH/rgl9AFIloQEkco3/MN6O//W6mgAFrt3+P3Kb/4c3oAFQH4cAfvqzAezaLQAUHJEBEJNJAPm9hAERvcD/347G/0gUD//6Ne3+DwsSABvTcf7Vazj/rpOS/2B+MAAXwW0BJaJeAMed+f4YgLv/zTGy/l2kKv8rd+sBWLft/9rSAf9r/ioA5gpj/6IA4gDb7VsAgbLLANAyX/7O0F//979Z/m7qT/+lPfMAFHpw//b2uf5nBHsA6WPmAdtb/P/H3hb/s/Xp/9Px6gBv+sD/VVSIAGU6Mv+DrZz+dy0z/3bpEP7yWtYAXp/bAQMD6v9iTFz+UDbmAAXk5/41GN//cTh2ARSEAf+r0uwAOPGe/7pzE/8I5a4AMCwAAXJypv8GSeL/zVn0AInjSwH4rTgASnj2/ncDC/9ReMb/iHpi/5Lx3QFtwk7/3/FGAdbIqf9hvi//L2eu/2NcSP526bT/wSPp/hrlIP/e/MYAzCtH/8dUrACGZr4Ab+5h/uYo5gDjzUD+yAzhAKYZ3gBxRTP/j58YAKe4SgAd4HT+ntDpAMF0fv/UC4X/FjqMAcwkM//oHisA60a1/0A4kv6pElT/4gEN/8gysP801fX+qNFhAL9HNwAiTpwA6JA6AblKvQC6jpX+QEV//6HLk/+wl78AiOfL/qO2iQChfvv+6SBCAETPQgAeHCUAXXJgAf5c9/8sq0UAyncL/7x2MgH/U4j/R1IaAEbjAgAg63kBtSmaAEeG5f7K/yQAKZgFAJo/Sf8itnwAed2W/xrM1QEprFcAWp2S/22CFABHa8j/82a9AAHDkf4uWHUACM7jAL9u/f9tgBT+hlUz/4mxcAHYIhb/gxDQ/3mVqgByExcBplAf/3HwegDos/oARG60/tKqdwDfbKT/z0/p/xvl4v7RYlH/T0QHAIO5ZACqHaL/EaJr/zkVCwFkyLX/f0GmAaWGzABop6gAAaRPAJKHOwFGMoD/ZncN/uMGhwCijrP/oGTeABvg2wGeXcP/6o2JABAYff/uzi//YRFi/3RuDP9gc00AW+Po//j+T/9c5Qb+WMaLAM5LgQD6Tc7/jfR7AYpF3AAglwYBg6cW/+1Ep/7HvZYAo6uK/zO8Bv9fHYn+lOKzALVr0P+GH1L/l2Ut/4HK4QDgSJMAMIqX/8NAzv7t2p4Aah2J/v296f9nDxH/wmH/ALItqf7G4ZsAJzB1/4dqcwBhJrUAli9B/1OC5f72JoEAXO+a/ltjfwChbyH/7tny/4O5w//Vv57/KZbaAISpgwBZVPwBq0aA/6P4y/4BMrT/fExVAftvUABjQu//mu22/91+hf5KzGP/QZN3/2M4p/9P+JX/dJvk/+0rDv5FiQv/FvrxAVt6j//N+fMA1Bo8/zC2sAEwF7//y3mY/i1K1f8+WhL+9aPm/7lqdP9TI58ADCEC/1AiPgAQV67/rWVVAMokUf6gRcz/QOG7ADrOXgBWkC8A5Vb1AD+RvgElBScAbfsaAImT6gCieZH/kHTO/8Xouf+3voz/SQz+/4sU8v+qWu//YUK7//W1h/7eiDQA9QUz/ssvTgCYZdgASRd9AP5gIQHr0kn/K9FYAQeBbQB6aOT+qvLLAPLMh//KHOn/QQZ/AJ+QRwBkjF8ATpYNAPtrdgG2On3/ASZs/4290f8Im30BcaNb/3lPvv+G72z/TC/4AKPk7wARbwoAWJVL/9fr7wCnnxj/L5ds/2vRvADp52P+HMqU/64jiv9uGET/AkW1AGtmUgBm7QcAXCTt/92iUwE3ygb/h+qH/xj63gBBXqj+9fjS/6dsyf7/oW8AzQj+AIgNdABksIT/K9d+/7GFgv+eT5QAQ+AlAQzOFf8+Im4B7Wiv/1CEb/+OrkgAVOW0/mmzjABA+A//6YoQAPVDe/7aedT/P1/aAdWFif+PtlL/MBwLAPRyjQHRr0z/nbWW/7rlA/+knW8B572LAHfKvv/aakD/ROs//mAarP+7LwsB1xL7/1FUWQBEOoAAXnEFAVyB0P9hD1P+CRy8AO8JpAA8zZgAwKNi/7gSPADZtosAbTt4/wTA+wCp0vD/Jaxc/pTT9f+zQTQA/Q1zALmuzgFyvJX/7VqtACvHwP9YbHEANCNMAEIZlP/dBAf/l/Fy/77R6ABiMscAl5bV/xJKJAE1KAcAE4dB/xqsRQCu7VUAY18pAAM4EAAnoLH/yGra/rlEVP9buj3+Q4+N/w30pv9jcsYAx26j/8ESugB87/YBbkQWAALrLgHUPGsAaSppAQ7mmAAHBYMAjWia/9UDBgCD5KL/s2QcAed7Vf/ODt8B/WDmACaYlQFiiXoA1s0D/+KYs/8GhYkAnkWM/3Gimv+086z/G71z/48u3P/VhuH/fh1FALwriQHyRgkAWsz//+eqkwAXOBP+OH2d/zCz2v9Ptv3/JtS/ASnrfABglxwAh5S+AM35J/40YIj/1CyI/0PRg//8ghf/24AU/8aBdgBsZQsAsgWSAT4HZP+17F7+HBqkAEwWcP94Zk8AysDlAciw1wApQPT/zrhOAKctPwGgIwD/OwyO/8wJkP/bXuUBehtwAL1pbf9A0Er/+383AQLixgAsTNEAl5hN/9IXLgHJq0X/LNPnAL4l4P/1xD7/qbXe/yLTEQB38cX/5SOYARVFKP+y4qEAlLPBANvC/gEozjP/51z6AUOZqgAVlPEAqkVS/3kS5/9ccgMAuD7mAOHJV/+SYKL/tfLcAK273QHiPqr/OH7ZAXUN4/+zLO8AnY2b/5DdUwDr0dAAKhGlAftRhQB89cn+YdMY/1PWpgCaJAn/+C9/AFrbjP+h2Sb+1JM//0JUlAHPAwEA5oZZAX9Oev/gmwH/UohKALKc0P+6GTH/3gPSAeWWvv9VojT/KVSN/0l7VP5dEZYAdxMcASAW1/8cF8z/jvE0/+Q0fQAdTM8A16f6/q+k5gA3z2kBbbv1/6Es3AEpZYD/pxBeAF3Wa/92SAD+UD3q/3mvfQCLqfsAYSeT/vrEMf+ls27+30a7/xaOfQGas4r/drAqAQqumQCcXGYAqA2h/48QIAD6xbT/y6MsAVcgJAChmRT/e/wPABnjUAA8WI4AERbJAZrNTf8nPy8ACHqNAIAXtv7MJxP/BHAd/xckjP/S6nT+NTI//3mraP+g214AV1IO/ucqBQCli3/+Vk4mAII8Qv7LHi3/LsR6Afk1ov+Ij2f+19JyAOcHoP6pmCr/by32AI6Dh/+DR8z/JOILAAAc8v/hitX/9y7Y/vUDtwBs/EoBzhow/8029v/TxiT/eSMyADTYyv8mi4H+8kmUAEPnjf8qL8wATnQZAQThv/8Gk+QAOlixAHql5f/8U8n/4KdgAbG4nv/yabMB+MbwAIVCywH+JC8ALRhz/3c+/gDE4br+e42sABpVKf/ib7cA1eeXAAQ7B//uipQAQpMh/x/2jf/RjXT/aHAfAFihrABT1+b+L2+XAC0mNAGELcwAioBt/ul1hv/zvq3+8ezwAFJ/7P4o36H/brbh/3uu7wCH8pEBM9GaAJYDc/7ZpPz/N5xFAVRe///oSS0BFBPU/2DFO/5g+yEAJsdJAUCs9/91dDj/5BESAD6KZwH25aT/9HbJ/lYgn/9tIokBVdO6AArBwf56wrEAeu5m/6LaqwBs2aEBnqoiALAvmwG15Av/CJwAABBLXQDOYv8BOpojAAzzuP5DdUL/5uV7AMkqbgCG5LL+umx2/zoTmv9SqT7/co9zAe/EMv+tMMH/kwJU/5aGk/5f6EkAbeM0/r+JCgAozB7+TDRh/6TrfgD+fLwASrYVAXkdI//xHgf+VdrW/wdUlv5RG3X/oJ+Y/kIY3f/jCjwBjYdmANC9lgF1s1wAhBaI/3jHHAAVgU/+tglBANqjqQD2k8b/ayaQAU6vzf/WBfr+L1gd/6QvzP8rNwb/g4bP/nRk1gBgjEsBatyQAMMgHAGsUQX/x7M0/yVUywCqcK4ACwRbAEX0GwF1g1wAIZiv/4yZa//7hyv+V4oE/8bqk/55mFT/zWWbAZ0JGQBIahH+bJkA/73lugDBCLD/rpXRAO6CHQDp1n4BPeJmADmjBAHGbzP/LU9OAXPSCv/aCRn/novG/9NSu/5QhVMAnYHmAfOFhv8oiBAATWtP/7dVXAGxzMoAo0eT/5hFvgCsM7wB+tKs/9PycQFZWRr/QEJv/nSYKgChJxv/NlD+AGrRcwFnfGEA3eZi/x/nBgCywHj+D9nL/3yeTwBwkfcAXPowAaO1wf8lL47+kL2l/y6S8AAGS4AAKZ3I/ld51QABcewABS36AJAMUgAfbOcA4e93/6cHvf+75IT/br0iAF4szAGiNMUATrzx/jkUjQD0ki8BzmQzAH1rlP4bw00AmP1aAQePkP8zJR8AIncm/wfFdgCZvNMAlxR0/vVBNP+0/W4BL7HRAKFjEf923soAfbP8AXs2fv+ROb8AN7p5AArzigDN0+X/fZzx/pScuf/jE7z/fCkg/x8izv4ROVMAzBYl/ypgYgB3ZrgBA74cAG5S2v/IzMD/yZF2AHXMkgCEIGIBwMJ5AGqh+AHtWHwAF9QaAM2rWv/4MNgBjSXm/3zLAP6eqB7/1vgVAHC7B/9Lhe//SuPz//qTRgDWeKIApwmz/xaeEgDaTdEBYW1R//Qhs/85NDn/QazS//lH0f+Oqe4Anr2Z/67+Z/5iIQ4AjUzm/3GLNP8POtQAqNfJ//jM1wHfRKD/OZq3/i/neQBqpokAUYiKAKUrMwDniz0AOV87/nZiGf+XP+wBXr76/6m5cgEF+jr/S2lhAdffhgBxY6MBgD5wAGNqkwCjwwoAIc22ANYOrv+BJuf/NbbfAGIqn//3DSgAvNKxAQYVAP//PZT+iS2B/1kadP5+JnIA+zLy/nmGgP/M+af+pevXAMqx8wCFjT4A8IK+AW6v/wAAFJIBJdJ5/wcnggCO+lT/jcjPAAlfaP8L9K4Ahuh+AKcBe/4QwZX/6OnvAdVGcP/8dKD+8t7c/81V4wAHuToAdvc/AXRNsf8+9cj+PxIl/2s16P4y3dMAotsH/gJeKwC2Prb+oE7I/4eMqgDruOQArzWK/lA6Tf+YyQIBP8QiAAUeuACrsJoAeTvOACZjJwCsUE3+AIaXALoh8f5e/d//LHL8AGx+Of/JKA3/J+Ub/yfvFwGXeTP/mZb4AArqrv929gT+yPUmAEWh8gEQspYAcTiCAKsfaQAaWGz/MSpqAPupQgBFXZUAFDn+AKQZbwBavFr/zATFACjVMgHUYIT/WIq0/uSSfP+49vcAQXVW//1m0v7+eSQAiXMD/zwY2ACGEh0AO+JhALCORwAH0aEAvVQz/pv6SADVVOv/Ld7gAO6Uj/+qKjX/Tqd1ALoAKP99sWf/ReFCAOMHWAFLrAYAqS3jARAkRv8yAgn/i8EWAI+35/7aRTIA7DihAdWDKgCKkSz+iOUo/zE/I/89kfX/ZcAC/uincQCYaCYBebnaAHmL0/538CMAQb3Z/ruzov+gu+YAPvgO/zxOYQD/96P/4Ttb/2tHOv/xLyEBMnXsANuxP/70WrMAI8LX/71DMv8Xh4EAaL0l/7k5wgAjPuf/3PhsAAznsgCPUFsBg11l/5AnAgH/+rIABRHs/osgLgDMvCb+9XM0/79xSf6/bEX/FkX1ARfLsgCqY6oAQfhvACVsmf9AJUUAAFg+/lmUkP+/ROAB8Sc1ACnL7f+RfsL/3Sr9/xljlwBh/d8BSnMx/wavSP87sMsAfLf5AeTkYwCBDM/+qMDD/8ywEP6Y6qsATSVV/yF4h/+OwuMBH9Y6ANW7ff/oLjz/vnQq/peyE/8zPu3+zOzBAMLoPACsIp3/vRC4/mcDX/+N6ST+KRkL/xXDpgB29S0AQ9WV/58MEv+7pOMBoBkFAAxOwwErxeEAMI4p/sSbPP/fxxIBkYicAPx1qf6R4u4A7xdrAG21vP/mcDH+Sart/+e34/9Q3BQAwmt/AX/NZQAuNMUB0qsk/1gDWv84l40AYLv//ypOyAD+RkYB9H2oAMxEigF810YAZkLI/hE05AB13I/+y/h7ADgSrv+6l6T/M+jQAaDkK//5HRkBRL4/AA0AAAAA/wAAAAD1AAAAAAAA+wAAAAAAAP0AAAAA8wAAAAAHAAAAAAADAAAAAPMAAAAABQAAAAAAAAAACwAAAAAACwAAAADzAAAAAAAA/QAAAAAA/wAAAAADAAAAAPUAAAAAAAAADwAAAAAA/wAAAAD/AAAAAAcAAAAABQBBjIcCCwEBAEGwhwILAQEAQdCHAgugAeDrenw7QbiuFlbj+vGfxGraCY3rnDKx/YZiBRZfSbgAX5yVvKNQjCSx0LFVnIPvWwREXMRYHI6G2CJO3dCfEVfs////////////////////////////////////////f+3///////////////////////////////////////9/7v///////////////////////////////////////38AQZCJAgvBBQjJvPNn5glqO6fKhIWuZ7sr+JT+cvNuPPE2HV869U+l0YLmrX9SDlEfbD4rjGgFm2u9Qfur2YMfeSF+ExnN4FsirijXmC+KQs1l7yORRDdxLztN7M/7wLW824mBpdu16Ti1SPNbwlY5GdAFtvER8VmbTxmvpII/khiBbdrVXhyrQgIDo5iqB9i+b3BFAVuDEoyy5E6+hTEk4rT/1cN9DFVviXvydF2+crGWFjv+sd6ANRLHJacG3JuUJmnPdPGbwdJK8Z7BaZvk4yVPOIZHvu+11YyLxp3BD2WcrHfMoQwkdQIrWW8s6S2D5KZuqoR0StT7Qb3cqbBctVMRg9qI+Xar32buUlE+mBAytC1txjGoPyH7mMgnA7DkDu++x39Zv8KPqD3zC+DGJacKk0eRp9VvggPgUWPKBnBuDgpnKSkU/C/SRoUKtycmySZcOCEbLu0qxFr8bSxN37OVnRMNOFPeY6+LVHMKZaiydzy7Cmp25q7tRy7JwoE7NYIUhSxykmQD8Uyh6L+iATBCvEtmGqiRl/jQcItLwjC+VAajUWzHGFLv1hnoktEQqWVVJAaZ1iogcVeFNQ70uNG7MnCgahDI0NK4FsGkGVOrQVEIbDcemeuO30x3SCeoSJvhtbywNGNaycWzDBw5y4pB40qq2E5z42N3T8qcW6O4stbzby5o/LLvXe6Cj3RgLxdDb2OleHKr8KEUeMiE7DlkGggCx4woHmMj+v++kOm9gt7rbFCkFXnGsvej+b4rU3Lj8nhxxpxhJurOPifKB8LAIce4htEe6+DN1n3a6njRbu5/T331um8Xcqpn8AammMiixX1jCq4N+b4EmD8RG0ccEzULcRuEfQQj9XfbKJMkx0B7q8oyvL7JFQq+njxMDRCcxGcdQ7ZCPsu+1MVMKn5l/Jwpf1ns+tY6q2/LXxdYR0qMGURsgABB0I8CCyFTaWdFZDI1NTE5IG5vIEVkMjU1MTkgY29sbGlzaW9ucwEAQaCQAgs1cI0BAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0=")||(F=L,L=d.locateFile?d.locateFile(F,h):h+F);var J={34904:function(){return d.getRandomValue()},34940:function(){if(void 0===d.getRandomValue)try{var e="object"==typeof window?window:self,t=void 0!==e.crypto?e.crypto:e.msCrypto,r=function(){var e=new Uint32Array(1);return t.getRandomValues(e),e[0]>>>0};r(),d.getRandomValue=r}catch(e){try{var a=n(23092),i=function(){var e=a.randomBytes(4);return(e[0]<<24|e[1]<<16|e[2]<<8|e[3])>>>0};i(),d.getRandomValue=i}catch(e){throw"No secure random number generator found"}}}};function K(e){for(;e.length>0;)e.shift()(d)}var G=[];function W(e){var t=g.buffer;try{return g.grow(e-t.byteLength+65535>>>16),P(),1}catch(e){}}var Y="function"==typeof atob?atob:function(e){var t,n,r,a,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",c="",u=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{t=s.indexOf(e.charAt(u++))<<2|(a=s.indexOf(e.charAt(u++)))>>4,n=(15&a)<<4|(i=s.indexOf(e.charAt(u++)))>>2,r=(3&i)<<6|(o=s.indexOf(e.charAt(u++))),c+=String.fromCharCode(t),64!==i&&(c+=String.fromCharCode(n)),64!==o&&(c+=String.fromCharCode(r))}while(u>=2;n=x[e++];)t+=105!=n&t,G.push(105==n?k[t]:E[t++>>1]),++t;return G}(t,n);return J[e].apply(null,r)}(e,t,n)},d:function(e,t,n){x.copyWithin(e,t,t+n)},e:function(e){var t,n=x.length,r=2147483648;if((e>>>=0)>r)return!1;for(var a=1;a<=4;a*=2){var i=n*(1+.2/a);if(i=Math.min(i,e+100663296),W(Math.min(r,(t=Math.max(e,i))+(65536-t%65536)%65536)))return!0}return!1}};function te(){function e(){$||($=!0,d.calledRun=!0,C||(K(B),d.onRuntimeInitialized&&d.onRuntimeInitialized(),function(){if(d.postRun)for("function"==typeof d.postRun&&(d.postRun=[d.postRun]);d.postRun.length;)e=d.postRun.shift(),N.unshift(e);var e;K(N)}()))}R>0||(function(){if(d.preRun)for("function"==typeof d.preRun&&(d.preRun=[d.preRun]);d.preRun.length;)e=d.preRun.shift(),M.unshift(e);var e;K(M)}(),R>0||(d.setStatus?(d.setStatus("Running..."),setTimeout((function(){setTimeout((function(){d.setStatus("")}),1),e()}),1)):e()))}if(function(){var e={a:ee};function t(e,t){var n=e.exports;d.asm=n,g=d.asm.f,P(),d.asm.ac,function(e){if(R--,d.monitorRunDependencies&&d.monitorRunDependencies(R),0==R&&(null!==D&&(clearInterval(D),D=null),j)){var t=j;j=null,t()}}()}function n(e){t(e.instance)}function r(t){return function(){if(!v&&(l||b)){if("function"==typeof fetch&&!q(L))return fetch(L,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+L+"'";return e.arrayBuffer()})).catch((function(){return V(L)}));if(c)return new Promise((function(e,t){c(L,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return V(L)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){A("failed to asynchronously prepare wasm: "+e),U(e)}))}if(R++,d.monitorRunDependencies&&d.monitorRunDependencies(R),d.instantiateWasm)try{return d.instantiateWasm(e,t)}catch(e){return A("Module.instantiateWasm callback failed with error: "+e),!1}v||"function"!=typeof WebAssembly.instantiateStreaming||Q(L)||q(L)||p||"function"!=typeof fetch?r(n):fetch(L,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return A("wasm streaming compile failed: "+e),A("falling back to ArrayBuffer instantiation"),r(n)}))}))}(),d._crypto_aead_chacha20poly1305_encrypt_detached=function(){return(d._crypto_aead_chacha20poly1305_encrypt_detached=d.asm.g).apply(null,arguments)},d._crypto_aead_chacha20poly1305_encrypt=function(){return(d._crypto_aead_chacha20poly1305_encrypt=d.asm.h).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_encrypt_detached=function(){return(d._crypto_aead_chacha20poly1305_ietf_encrypt_detached=d.asm.i).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_encrypt=function(){return(d._crypto_aead_chacha20poly1305_ietf_encrypt=d.asm.j).apply(null,arguments)},d._crypto_aead_chacha20poly1305_decrypt_detached=function(){return(d._crypto_aead_chacha20poly1305_decrypt_detached=d.asm.k).apply(null,arguments)},d._crypto_aead_chacha20poly1305_decrypt=function(){return(d._crypto_aead_chacha20poly1305_decrypt=d.asm.l).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_decrypt_detached=function(){return(d._crypto_aead_chacha20poly1305_ietf_decrypt_detached=d.asm.m).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_decrypt=function(){return(d._crypto_aead_chacha20poly1305_ietf_decrypt=d.asm.n).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_keybytes=function(){return(d._crypto_aead_chacha20poly1305_ietf_keybytes=d.asm.o).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_npubbytes=function(){return(d._crypto_aead_chacha20poly1305_ietf_npubbytes=d.asm.p).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_nsecbytes=function(){return(d._crypto_aead_chacha20poly1305_ietf_nsecbytes=d.asm.q).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_abytes=function(){return(d._crypto_aead_chacha20poly1305_ietf_abytes=d.asm.r).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_messagebytes_max=function(){return(d._crypto_aead_chacha20poly1305_ietf_messagebytes_max=d.asm.s).apply(null,arguments)},d._crypto_aead_chacha20poly1305_ietf_keygen=function(){return(d._crypto_aead_chacha20poly1305_ietf_keygen=d.asm.t).apply(null,arguments)},d._crypto_aead_chacha20poly1305_keybytes=function(){return(d._crypto_aead_chacha20poly1305_keybytes=d.asm.u).apply(null,arguments)},d._crypto_aead_chacha20poly1305_npubbytes=function(){return(d._crypto_aead_chacha20poly1305_npubbytes=d.asm.v).apply(null,arguments)},d._crypto_aead_chacha20poly1305_nsecbytes=function(){return(d._crypto_aead_chacha20poly1305_nsecbytes=d.asm.w).apply(null,arguments)},d._crypto_aead_chacha20poly1305_abytes=function(){return(d._crypto_aead_chacha20poly1305_abytes=d.asm.x).apply(null,arguments)},d._crypto_aead_chacha20poly1305_messagebytes_max=function(){return(d._crypto_aead_chacha20poly1305_messagebytes_max=d.asm.y).apply(null,arguments)},d._crypto_aead_chacha20poly1305_keygen=function(){return(d._crypto_aead_chacha20poly1305_keygen=d.asm.z).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=function(){return(d._crypto_aead_xchacha20poly1305_ietf_encrypt_detached=d.asm.A).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_encrypt=function(){return(d._crypto_aead_xchacha20poly1305_ietf_encrypt=d.asm.B).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=function(){return(d._crypto_aead_xchacha20poly1305_ietf_decrypt_detached=d.asm.C).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_decrypt=function(){return(d._crypto_aead_xchacha20poly1305_ietf_decrypt=d.asm.D).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_keybytes=function(){return(d._crypto_aead_xchacha20poly1305_ietf_keybytes=d.asm.E).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_npubbytes=function(){return(d._crypto_aead_xchacha20poly1305_ietf_npubbytes=d.asm.F).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_nsecbytes=function(){return(d._crypto_aead_xchacha20poly1305_ietf_nsecbytes=d.asm.G).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_abytes=function(){return(d._crypto_aead_xchacha20poly1305_ietf_abytes=d.asm.H).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=function(){return(d._crypto_aead_xchacha20poly1305_ietf_messagebytes_max=d.asm.I).apply(null,arguments)},d._crypto_aead_xchacha20poly1305_ietf_keygen=function(){return(d._crypto_aead_xchacha20poly1305_ietf_keygen=d.asm.J).apply(null,arguments)},d._crypto_auth_bytes=function(){return(d._crypto_auth_bytes=d.asm.K).apply(null,arguments)},d._crypto_auth_keybytes=function(){return(d._crypto_auth_keybytes=d.asm.L).apply(null,arguments)},d._crypto_auth=function(){return(d._crypto_auth=d.asm.M).apply(null,arguments)},d._crypto_auth_verify=function(){return(d._crypto_auth_verify=d.asm.N).apply(null,arguments)},d._crypto_auth_keygen=function(){return(d._crypto_auth_keygen=d.asm.O).apply(null,arguments)},d._crypto_box_seedbytes=function(){return(d._crypto_box_seedbytes=d.asm.P).apply(null,arguments)},d._crypto_box_publickeybytes=function(){return(d._crypto_box_publickeybytes=d.asm.Q).apply(null,arguments)},d._crypto_box_secretkeybytes=function(){return(d._crypto_box_secretkeybytes=d.asm.R).apply(null,arguments)},d._crypto_box_beforenmbytes=function(){return(d._crypto_box_beforenmbytes=d.asm.S).apply(null,arguments)},d._crypto_box_noncebytes=function(){return(d._crypto_box_noncebytes=d.asm.T).apply(null,arguments)},d._crypto_box_macbytes=function(){return(d._crypto_box_macbytes=d.asm.U).apply(null,arguments)},d._crypto_box_messagebytes_max=function(){return(d._crypto_box_messagebytes_max=d.asm.V).apply(null,arguments)},d._crypto_box_seed_keypair=function(){return(d._crypto_box_seed_keypair=d.asm.W).apply(null,arguments)},d._crypto_box_keypair=function(){return(d._crypto_box_keypair=d.asm.X).apply(null,arguments)},d._crypto_box_beforenm=function(){return(d._crypto_box_beforenm=d.asm.Y).apply(null,arguments)},d._crypto_box_detached_afternm=function(){return(d._crypto_box_detached_afternm=d.asm.Z).apply(null,arguments)},d._crypto_box_detached=function(){return(d._crypto_box_detached=d.asm._).apply(null,arguments)},d._crypto_box_easy_afternm=function(){return(d._crypto_box_easy_afternm=d.asm.$).apply(null,arguments)},d._crypto_box_easy=function(){return(d._crypto_box_easy=d.asm.aa).apply(null,arguments)},d._crypto_box_open_detached_afternm=function(){return(d._crypto_box_open_detached_afternm=d.asm.ba).apply(null,arguments)},d._crypto_box_open_detached=function(){return(d._crypto_box_open_detached=d.asm.ca).apply(null,arguments)},d._crypto_box_open_easy_afternm=function(){return(d._crypto_box_open_easy_afternm=d.asm.da).apply(null,arguments)},d._crypto_box_open_easy=function(){return(d._crypto_box_open_easy=d.asm.ea).apply(null,arguments)},d._crypto_box_seal=function(){return(d._crypto_box_seal=d.asm.fa).apply(null,arguments)},d._crypto_box_seal_open=function(){return(d._crypto_box_seal_open=d.asm.ga).apply(null,arguments)},d._crypto_box_sealbytes=function(){return(d._crypto_box_sealbytes=d.asm.ha).apply(null,arguments)},d._crypto_generichash_bytes_min=function(){return(d._crypto_generichash_bytes_min=d.asm.ia).apply(null,arguments)},d._crypto_generichash_bytes_max=function(){return(d._crypto_generichash_bytes_max=d.asm.ja).apply(null,arguments)},d._crypto_generichash_bytes=function(){return(d._crypto_generichash_bytes=d.asm.ka).apply(null,arguments)},d._crypto_generichash_keybytes_min=function(){return(d._crypto_generichash_keybytes_min=d.asm.la).apply(null,arguments)},d._crypto_generichash_keybytes_max=function(){return(d._crypto_generichash_keybytes_max=d.asm.ma).apply(null,arguments)},d._crypto_generichash_keybytes=function(){return(d._crypto_generichash_keybytes=d.asm.na).apply(null,arguments)},d._crypto_generichash_statebytes=function(){return(d._crypto_generichash_statebytes=d.asm.oa).apply(null,arguments)},d._crypto_generichash=function(){return(d._crypto_generichash=d.asm.pa).apply(null,arguments)},d._crypto_generichash_init=function(){return(d._crypto_generichash_init=d.asm.qa).apply(null,arguments)},d._crypto_generichash_update=function(){return(d._crypto_generichash_update=d.asm.ra).apply(null,arguments)},d._crypto_generichash_final=function(){return(d._crypto_generichash_final=d.asm.sa).apply(null,arguments)},d._crypto_generichash_keygen=function(){return(d._crypto_generichash_keygen=d.asm.ta).apply(null,arguments)},d._crypto_hash_bytes=function(){return(d._crypto_hash_bytes=d.asm.ua).apply(null,arguments)},d._crypto_hash=function(){return(d._crypto_hash=d.asm.va).apply(null,arguments)},d._crypto_kdf_bytes_min=function(){return(d._crypto_kdf_bytes_min=d.asm.wa).apply(null,arguments)},d._crypto_kdf_bytes_max=function(){return(d._crypto_kdf_bytes_max=d.asm.xa).apply(null,arguments)},d._crypto_kdf_contextbytes=function(){return(d._crypto_kdf_contextbytes=d.asm.ya).apply(null,arguments)},d._crypto_kdf_keybytes=function(){return(d._crypto_kdf_keybytes=d.asm.za).apply(null,arguments)},d._crypto_kdf_derive_from_key=function(){return(d._crypto_kdf_derive_from_key=d.asm.Aa).apply(null,arguments)},d._crypto_kdf_keygen=function(){return(d._crypto_kdf_keygen=d.asm.Ba).apply(null,arguments)},d._crypto_kx_seed_keypair=function(){return(d._crypto_kx_seed_keypair=d.asm.Ca).apply(null,arguments)},d._crypto_kx_keypair=function(){return(d._crypto_kx_keypair=d.asm.Da).apply(null,arguments)},d._crypto_kx_client_session_keys=function(){return(d._crypto_kx_client_session_keys=d.asm.Ea).apply(null,arguments)},d._crypto_kx_server_session_keys=function(){return(d._crypto_kx_server_session_keys=d.asm.Fa).apply(null,arguments)},d._crypto_kx_publickeybytes=function(){return(d._crypto_kx_publickeybytes=d.asm.Ga).apply(null,arguments)},d._crypto_kx_secretkeybytes=function(){return(d._crypto_kx_secretkeybytes=d.asm.Ha).apply(null,arguments)},d._crypto_kx_seedbytes=function(){return(d._crypto_kx_seedbytes=d.asm.Ia).apply(null,arguments)},d._crypto_kx_sessionkeybytes=function(){return(d._crypto_kx_sessionkeybytes=d.asm.Ja).apply(null,arguments)},d._crypto_scalarmult_base=function(){return(d._crypto_scalarmult_base=d.asm.Ka).apply(null,arguments)},d._crypto_scalarmult=function(){return(d._crypto_scalarmult=d.asm.La).apply(null,arguments)},d._crypto_scalarmult_bytes=function(){return(d._crypto_scalarmult_bytes=d.asm.Ma).apply(null,arguments)},d._crypto_scalarmult_scalarbytes=function(){return(d._crypto_scalarmult_scalarbytes=d.asm.Na).apply(null,arguments)},d._crypto_secretbox_keybytes=function(){return(d._crypto_secretbox_keybytes=d.asm.Oa).apply(null,arguments)},d._crypto_secretbox_noncebytes=function(){return(d._crypto_secretbox_noncebytes=d.asm.Pa).apply(null,arguments)},d._crypto_secretbox_macbytes=function(){return(d._crypto_secretbox_macbytes=d.asm.Qa).apply(null,arguments)},d._crypto_secretbox_messagebytes_max=function(){return(d._crypto_secretbox_messagebytes_max=d.asm.Ra).apply(null,arguments)},d._crypto_secretbox_keygen=function(){return(d._crypto_secretbox_keygen=d.asm.Sa).apply(null,arguments)},d._crypto_secretbox_detached=function(){return(d._crypto_secretbox_detached=d.asm.Ta).apply(null,arguments)},d._crypto_secretbox_easy=function(){return(d._crypto_secretbox_easy=d.asm.Ua).apply(null,arguments)},d._crypto_secretbox_open_detached=function(){return(d._crypto_secretbox_open_detached=d.asm.Va).apply(null,arguments)},d._crypto_secretbox_open_easy=function(){return(d._crypto_secretbox_open_easy=d.asm.Wa).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_keygen=function(){return(d._crypto_secretstream_xchacha20poly1305_keygen=d.asm.Xa).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_init_push=function(){return(d._crypto_secretstream_xchacha20poly1305_init_push=d.asm.Ya).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_init_pull=function(){return(d._crypto_secretstream_xchacha20poly1305_init_pull=d.asm.Za).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_rekey=function(){return(d._crypto_secretstream_xchacha20poly1305_rekey=d.asm._a).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_push=function(){return(d._crypto_secretstream_xchacha20poly1305_push=d.asm.$a).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_pull=function(){return(d._crypto_secretstream_xchacha20poly1305_pull=d.asm.ab).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_statebytes=function(){return(d._crypto_secretstream_xchacha20poly1305_statebytes=d.asm.bb).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_abytes=function(){return(d._crypto_secretstream_xchacha20poly1305_abytes=d.asm.cb).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_headerbytes=function(){return(d._crypto_secretstream_xchacha20poly1305_headerbytes=d.asm.db).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_keybytes=function(){return(d._crypto_secretstream_xchacha20poly1305_keybytes=d.asm.eb).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_messagebytes_max=function(){return(d._crypto_secretstream_xchacha20poly1305_messagebytes_max=d.asm.fb).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_tag_message=function(){return(d._crypto_secretstream_xchacha20poly1305_tag_message=d.asm.gb).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_tag_push=function(){return(d._crypto_secretstream_xchacha20poly1305_tag_push=d.asm.hb).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_tag_rekey=function(){return(d._crypto_secretstream_xchacha20poly1305_tag_rekey=d.asm.ib).apply(null,arguments)},d._crypto_secretstream_xchacha20poly1305_tag_final=function(){return(d._crypto_secretstream_xchacha20poly1305_tag_final=d.asm.jb).apply(null,arguments)},d._crypto_shorthash_bytes=function(){return(d._crypto_shorthash_bytes=d.asm.kb).apply(null,arguments)},d._crypto_shorthash_keybytes=function(){return(d._crypto_shorthash_keybytes=d.asm.lb).apply(null,arguments)},d._crypto_shorthash=function(){return(d._crypto_shorthash=d.asm.mb).apply(null,arguments)},d._crypto_shorthash_keygen=function(){return(d._crypto_shorthash_keygen=d.asm.nb).apply(null,arguments)},d._crypto_sign_statebytes=function(){return(d._crypto_sign_statebytes=d.asm.ob).apply(null,arguments)},d._crypto_sign_bytes=function(){return(d._crypto_sign_bytes=d.asm.pb).apply(null,arguments)},d._crypto_sign_seedbytes=function(){return(d._crypto_sign_seedbytes=d.asm.qb).apply(null,arguments)},d._crypto_sign_publickeybytes=function(){return(d._crypto_sign_publickeybytes=d.asm.rb).apply(null,arguments)},d._crypto_sign_secretkeybytes=function(){return(d._crypto_sign_secretkeybytes=d.asm.sb).apply(null,arguments)},d._crypto_sign_messagebytes_max=function(){return(d._crypto_sign_messagebytes_max=d.asm.tb).apply(null,arguments)},d._crypto_sign_seed_keypair=function(){return(d._crypto_sign_seed_keypair=d.asm.ub).apply(null,arguments)},d._crypto_sign_keypair=function(){return(d._crypto_sign_keypair=d.asm.vb).apply(null,arguments)},d._crypto_sign=function(){return(d._crypto_sign=d.asm.wb).apply(null,arguments)},d._crypto_sign_open=function(){return(d._crypto_sign_open=d.asm.xb).apply(null,arguments)},d._crypto_sign_detached=function(){return(d._crypto_sign_detached=d.asm.yb).apply(null,arguments)},d._crypto_sign_verify_detached=function(){return(d._crypto_sign_verify_detached=d.asm.zb).apply(null,arguments)},d._crypto_sign_init=function(){return(d._crypto_sign_init=d.asm.Ab).apply(null,arguments)},d._crypto_sign_update=function(){return(d._crypto_sign_update=d.asm.Bb).apply(null,arguments)},d._crypto_sign_final_create=function(){return(d._crypto_sign_final_create=d.asm.Cb).apply(null,arguments)},d._crypto_sign_final_verify=function(){return(d._crypto_sign_final_verify=d.asm.Db).apply(null,arguments)},d._crypto_sign_ed25519_pk_to_curve25519=function(){return(d._crypto_sign_ed25519_pk_to_curve25519=d.asm.Eb).apply(null,arguments)},d._crypto_sign_ed25519_sk_to_curve25519=function(){return(d._crypto_sign_ed25519_sk_to_curve25519=d.asm.Fb).apply(null,arguments)},d._randombytes_random=function(){return(d._randombytes_random=d.asm.Gb).apply(null,arguments)},d._randombytes_stir=function(){return(d._randombytes_stir=d.asm.Hb).apply(null,arguments)},d._randombytes_uniform=function(){return(d._randombytes_uniform=d.asm.Ib).apply(null,arguments)},d._randombytes_buf=function(){return(d._randombytes_buf=d.asm.Jb).apply(null,arguments)},d._randombytes_buf_deterministic=function(){return(d._randombytes_buf_deterministic=d.asm.Kb).apply(null,arguments)},d._randombytes_seedbytes=function(){return(d._randombytes_seedbytes=d.asm.Lb).apply(null,arguments)},d._randombytes_close=function(){return(d._randombytes_close=d.asm.Mb).apply(null,arguments)},d._randombytes=function(){return(d._randombytes=d.asm.Nb).apply(null,arguments)},d._sodium_bin2hex=function(){return(d._sodium_bin2hex=d.asm.Ob).apply(null,arguments)},d._sodium_hex2bin=function(){return(d._sodium_hex2bin=d.asm.Pb).apply(null,arguments)},d._sodium_base64_encoded_len=function(){return(d._sodium_base64_encoded_len=d.asm.Qb).apply(null,arguments)},d._sodium_bin2base64=function(){return(d._sodium_bin2base64=d.asm.Rb).apply(null,arguments)},d._sodium_base642bin=function(){return(d._sodium_base642bin=d.asm.Sb).apply(null,arguments)},d._sodium_init=function(){return(d._sodium_init=d.asm.Tb).apply(null,arguments)},d._sodium_pad=function(){return(d._sodium_pad=d.asm.Ub).apply(null,arguments)},d._sodium_unpad=function(){return(d._sodium_unpad=d.asm.Vb).apply(null,arguments)},d._sodium_version_string=function(){return(d._sodium_version_string=d.asm.Wb).apply(null,arguments)},d._sodium_library_version_major=function(){return(d._sodium_library_version_major=d.asm.Xb).apply(null,arguments)},d._sodium_library_version_minor=function(){return(d._sodium_library_version_minor=d.asm.Yb).apply(null,arguments)},d._sodium_library_minimal=function(){return(d._sodium_library_minimal=d.asm.Zb).apply(null,arguments)},d._malloc=function(){return(d._malloc=d.asm._b).apply(null,arguments)},d._free=function(){return(d._free=d.asm.$b).apply(null,arguments)},d.UTF8ToString=O,d.setValue=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"i8";switch(n.endsWith("*")&&(n="*"),n){case"i1":case"i8":w[e>>0]=t;break;case"i16":_[e>>1]=t;break;case"i32":k[e>>2]=t;break;case"i64":H=[t>>>0,(Z=t,+Math.abs(Z)>=1?Z>0?(0|Math.min(+Math.floor(Z/4294967296),4294967295))>>>0:~~+Math.ceil((Z-+(~~Z>>>0))/4294967296)>>>0:0)],k[e>>2]=H[0],k[e+4>>2]=H[1];break;case"float":S[e>>2]=t;break;case"double":E[e>>3]=t;break;case"*":I[e>>2]=t;break;default:U("invalid type for setValue: "+n)}},d.getValue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"i8";switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return w[e>>0];case"i16":return _[e>>1];case"i32":case"i64":return k[e>>2];case"float":return S[e>>2];case"double":return E[e>>3];case"*":return I[e>>2];default:U("invalid type for getValue: "+t)}return null},j=function e(){$||te(),$||(j=e)},d.preInit)for("function"==typeof d.preInit&&(d.preInit=[d.preInit]);d.preInit.length>0;)d.preInit.pop()();te()})).catch((function(){return s.useBackupModule()})),r},void 0===(a=r.apply(t,[t]))||(e.exports=a)},3106:function(e,t,n){var r;e=n.nmd(e),function(){var a,i="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",c=32,u=128,d=1/0,f=9007199254740991,l=NaN,b=4294967295,p=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",c],["partialRight",64],["rearg",256]],h="[object Arguments]",y="[object Array]",m="[object Boolean]",v="[object Date]",g="[object Error]",A="[object Function]",w="[object GeneratorFunction]",x="[object Map]",_="[object Number]",k="[object Object]",I="[object Promise]",S="[object RegExp]",E="[object Set]",C="[object String]",T="[object Symbol]",O="[object WeakMap]",P="[object ArrayBuffer]",M="[object DataView]",B="[object Float32Array]",N="[object Float64Array]",R="[object Int8Array]",D="[object Int16Array]",j="[object Int32Array]",U="[object Uint8Array]",L="[object Uint8ClampedArray]",F="[object Uint16Array]",Z="[object Uint32Array]",H=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,Q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,V=/[&<>"']/g,J=RegExp(q.source),K=RegExp(V.source),G=/<%-([\s\S]+?)%>/g,W=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,ae=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,oe=/\{\n\/\* \[wrapped with (.+)\] \*/,se=/,? & /,ce=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,le=/\w*$/,be=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,he=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ge=/($^)/,Ae=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",ke="a-z\\xdf-\\xf6\\xf8-\\xff",Ie="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\ufe0e\\ufe0f",Ee="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ce="["+we+"]",Te="["+Ee+"]",Oe="["+xe+"]",Pe="\\d+",Me="["+_e+"]",Be="["+ke+"]",Ne="[^"+we+Ee+Pe+_e+ke+Ie+"]",Re="\\ud83c[\\udffb-\\udfff]",De="[^"+we+"]",je="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="["+Ie+"]",Fe="\\u200d",Ze="(?:"+Be+"|"+Ne+")",He="(?:"+Le+"|"+Ne+")",ze="(?:['’](?:d|ll|m|re|s|t|ve))?",Qe="(?:['’](?:D|LL|M|RE|S|T|VE))?",qe="(?:"+Oe+"|"+Re+")?",Ve="["+Se+"]?",Je=Ve+qe+"(?:"+Fe+"(?:"+[De,je,Ue].join("|")+")"+Ve+qe+")*",Ke="(?:"+[Me,je,Ue].join("|")+")"+Je,Ge="(?:"+[De+Oe+"?",Oe,je,Ue,Ce].join("|")+")",We=RegExp("['’]","g"),Ye=RegExp(Oe,"g"),Xe=RegExp(Re+"(?="+Re+")|"+Ge+Je,"g"),$e=RegExp([Le+"?"+Be+"+"+ze+"(?="+[Te,Le,"$"].join("|")+")",He+"+"+Qe+"(?="+[Te,Le+Ze,"$"].join("|")+")",Le+"?"+Ze+"+"+ze,Le+"+"+Qe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pe,Ke].join("|"),"g"),et=RegExp("["+Fe+we+xe+Se+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,at={};at[B]=at[N]=at[R]=at[D]=at[j]=at[U]=at[L]=at[F]=at[Z]=!0,at[h]=at[y]=at[P]=at[m]=at[M]=at[v]=at[g]=at[A]=at[x]=at[_]=at[k]=at[S]=at[E]=at[C]=at[O]=!1;var it={};it[h]=it[y]=it[P]=it[M]=it[m]=it[v]=it[B]=it[N]=it[R]=it[D]=it[j]=it[x]=it[_]=it[k]=it[S]=it[E]=it[C]=it[T]=it[U]=it[L]=it[F]=it[Z]=!0,it[g]=it[A]=it[O]=!1;var ot={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},st=parseFloat,ct=parseInt,ut="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,dt="object"==typeof self&&self&&self.Object===Object&&self,ft=ut||dt||Function("return this")(),lt=t&&!t.nodeType&&t,bt=lt&&e&&!e.nodeType&&e,pt=bt&&bt.exports===lt,ht=pt&&ut.process,yt=function(){try{return bt&&bt.require&&bt.require("util").types||ht&&ht.binding&&ht.binding("util")}catch(e){}}(),mt=yt&&yt.isArrayBuffer,vt=yt&&yt.isDate,gt=yt&&yt.isMap,At=yt&&yt.isRegExp,wt=yt&&yt.isSet,xt=yt&&yt.isTypedArray;function _t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a-1}function Ot(e,t,n){for(var r=-1,a=null==e?0:e.length;++r-1;);return n}function $t(e,t){for(var n=e.length;n--&&Lt(t,e[n],0)>-1;);return n}var en=Qt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),tn=Qt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+ot[e]}function rn(e){return et.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function on(e,t){return function(n){return e(t(n))}}function sn(e,t){for(var n=-1,r=e.length,a=0,i=[];++n",""":'"',"'":"'"}),pn=function e(t){var n,r=(t=null==t?ft:pn.defaults(ft.Object(),t,pn.pick(ft,nt))).Array,ae=t.Date,we=t.Error,xe=t.Function,_e=t.Math,ke=t.Object,Ie=t.RegExp,Se=t.String,Ee=t.TypeError,Ce=r.prototype,Te=xe.prototype,Oe=ke.prototype,Pe=t["__core-js_shared__"],Me=Te.toString,Be=Oe.hasOwnProperty,Ne=0,Re=(n=/[^.]+$/.exec(Pe&&Pe.keys&&Pe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",De=Oe.toString,je=Me.call(ke),Ue=ft._,Le=Ie("^"+Me.call(Be).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fe=pt?t.Buffer:a,Ze=t.Symbol,He=t.Uint8Array,ze=Fe?Fe.allocUnsafe:a,Qe=on(ke.getPrototypeOf,ke),qe=ke.create,Ve=Oe.propertyIsEnumerable,Je=Ce.splice,Ke=Ze?Ze.isConcatSpreadable:a,Ge=Ze?Ze.iterator:a,Xe=Ze?Ze.toStringTag:a,et=function(){try{var e=ci(ke,"defineProperty");return e({},"",{}),e}catch(e){}}(),ot=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ut=ae&&ae.now!==ft.Date.now&&ae.now,dt=t.setTimeout!==ft.setTimeout&&t.setTimeout,lt=_e.ceil,bt=_e.floor,ht=ke.getOwnPropertySymbols,yt=Fe?Fe.isBuffer:a,Dt=t.isFinite,Qt=Ce.join,hn=on(ke.keys,ke),yn=_e.max,mn=_e.min,vn=ae.now,gn=t.parseInt,An=_e.random,wn=Ce.reverse,xn=ci(t,"DataView"),_n=ci(t,"Map"),kn=ci(t,"Promise"),In=ci(t,"Set"),Sn=ci(t,"WeakMap"),En=ci(ke,"create"),Cn=Sn&&new Sn,Tn={},On=Di(xn),Pn=Di(_n),Mn=Di(kn),Bn=Di(In),Nn=Di(Sn),Rn=Ze?Ze.prototype:a,Dn=Rn?Rn.valueOf:a,jn=Rn?Rn.toString:a;function Un(e){if(es(e)&&!zo(e)&&!(e instanceof Hn)){if(e instanceof Zn)return e;if(Be.call(e,"__wrapped__"))return ji(e)}return new Zn(e)}var Ln=function(){function e(){}return function(t){if(!$o(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function Fn(){}function Zn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=b,this.__views__=[]}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function or(e,t,n,r,i,o){var s,c=1&t,u=2&t,d=4&t;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!$o(e))return e;var f=zo(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Be.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return Sa(e,s)}else{var l=fi(e),b=l==A||l==w;if(Jo(e))return Aa(e,c);if(l==k||l==h||b&&!i){if(s=u||b?{}:bi(e),!c)return u?function(e,t){return Ea(e,di(e),t)}(e,function(e,t){return e&&Ea(t,Ps(t),e)}(s,e)):function(e,t){return Ea(e,ui(e),t)}(e,nr(s,e))}else{if(!it[l])return i?e:{};s=function(e,t,n){var r,a=e.constructor;switch(t){case P:return wa(e);case m:case v:return new a(+e);case M:return function(e,t){var n=t?wa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case B:case N:case R:case D:case j:case U:case L:case F:case Z:return xa(e,n);case x:return new a;case _:case C:return new a(e);case S:return function(e){var t=new e.constructor(e.source,le.exec(e));return t.lastIndex=e.lastIndex,t}(e);case E:return new a;case T:return r=e,Dn?ke(Dn.call(r)):{}}}(e,l,c)}}o||(o=new Jn);var p=o.get(e);if(p)return p;o.set(e,s),is(e)?e.forEach((function(r){s.add(or(r,t,n,r,e,o))})):ts(e)&&e.forEach((function(r,a){s.set(a,or(r,t,n,a,e,o))}));var y=f?a:(d?u?ti:ei:u?Ps:Os)(e);return It(y||e,(function(r,a){y&&(r=e[a=r]),$n(s,a,or(r,t,n,a,e,o))})),s}function sr(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function cr(e,t,n){if("function"!=typeof e)throw new Ee(i);return Ei((function(){e.apply(a,n)}),t)}function ur(e,t,n,r){var a=-1,i=Tt,o=!0,s=e.length,c=[],u=t.length;if(!s)return c;n&&(t=Pt(t,Gt(n))),r?(i=Ot,o=!1):t.length>=200&&(i=Yt,o=!1,t=new Vn(t));e:for(;++a-1},Qn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new zn,map:new(_n||Qn),string:new zn}},qn.prototype.delete=function(e){var t=oi(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return oi(this,e).get(e)},qn.prototype.has=function(e){return oi(this,e).has(e)},qn.prototype.set=function(e,t){var n=oi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Vn.prototype.add=Vn.prototype.push=function(e){return this.__data__.set(e,o),this},Vn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.clear=function(){this.__data__=new Qn,this.size=0},Jn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Jn.prototype.get=function(e){return this.__data__.get(e)},Jn.prototype.has=function(e){return this.__data__.has(e)},Jn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Qn){var r=n.__data__;if(!_n||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var dr=Oa(vr),fr=Oa(gr,!0);function lr(e,t){var n=!0;return dr(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function br(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?hr(s,t-1,n,r,a):Mt(a,s):r||(a[a.length]=s)}return a}var yr=Pa(),mr=Pa(!0);function vr(e,t){return e&&yr(e,t,Os)}function gr(e,t){return e&&mr(e,t,Os)}function Ar(e,t){return Ct(t,(function(t){return Wo(e[t])}))}function wr(e,t){for(var n=0,r=(t=ya(t,e)).length;null!=e&&nt}function Ir(e,t){return null!=e&&Be.call(e,t)}function Sr(e,t){return null!=e&&t in ke(e)}function Er(e,t,n){for(var i=n?Ot:Tt,o=e[0].length,s=e.length,c=s,u=r(s),d=1/0,f=[];c--;){var l=e[c];c&&t&&(l=Pt(l,Gt(t))),d=mn(l.length,d),u[c]=!n&&(t||o>=120&&l.length>=120)?new Vn(c&&l):a}l=e[0];var b=-1,p=u[0];e:for(;++b=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(a)}function Hr(e,t,n){for(var r=-1,a=t.length,i={};++r-1;)s!==e&&Je.call(s,c,1),Je.call(e,c,1);return e}function Qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==i){var i=a;hi(a)?Je.call(e,a,1):ca(e,a)}}return e}function qr(e,t){return e+bt(An()*(t-e+1))}function Vr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=bt(t/2))&&(e+=e)}while(t);return n}function Jr(e,t){return Ci(_i(e,t,nc),e+"")}function Kr(e){return Gn(Ls(e))}function Gr(e,t){var n=Ls(e);return Pi(n,ir(t,0,n.length))}function Wr(e,t,n,r){if(!$o(e))return e;for(var i=-1,o=(t=ya(t,e)).length,s=o-1,c=e;null!=c&&++ii?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=r(i);++a>>1,o=e[i];null!==o&&!ss(o)&&(n?o<=t:o=200){var u=t?null:Va(e);if(u)return cn(u);o=!1,a=Yt,c=new Vn}else c=t?[]:s;e:for(;++r=r?e:ea(e,t,n)}var ga=ot||function(e){return ft.clearTimeout(e)};function Aa(e,t){if(t)return e.slice();var n=e.length,r=ze?ze(n):new e.constructor(n);return e.copy(r),r}function wa(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function xa(e,t){var n=t?wa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function _a(e,t){if(e!==t){var n=e!==a,r=null===e,i=e==e,o=ss(e),s=t!==a,c=null===t,u=t==t,d=ss(t);if(!c&&!d&&!o&&e>t||o&&s&&u&&!c&&!d||r&&s&&u||!n&&u||!i)return 1;if(!r&&!o&&!d&&e1?n[i-1]:a,s=i>2?n[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&yi(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=ke(t);++r-1?i[o?t[s]:s]:a}}function Da(e){return $a((function(t){var n=t.length,r=n,o=Zn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ee(i);if(o&&!c&&"wrapper"==ri(s))var c=new Zn([],!0)}for(r=c?r:n;++r1&&A.reverse(),b&&fc))return!1;var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var l=-1,b=!0,p=2&n?new Vn:a;for(o.set(e,t),o.set(t,e);++l-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return It(p,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(oe);return t?t[1].split(se):[]}(r),n)))}function Oi(e){var t=0,n=0;return function(){var r=vn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Pi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,ro(e,n)}));function fo(e){var t=Un(e);return t.__chain__=!0,t}function lo(e,t){return t(e)}var bo=$a((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&hi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:lo,args:[i],thisArg:a}),new Zn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)})),po=Ca((function(e,t,n){Be.call(e,n)?++e[n]:rr(e,n,1)})),ho=Ra(Zi),yo=Ra(Hi);function mo(e,t){return(zo(e)?It:dr)(e,ii(t,3))}function vo(e,t){return(zo(e)?St:fr)(e,ii(t,3))}var go=Ca((function(e,t,n){Be.call(e,n)?e[n].push(t):rr(e,n,[t])})),Ao=Jr((function(e,t,n){var a=-1,i="function"==typeof t,o=qo(e)?r(e.length):[];return dr(e,(function(e){o[++a]=i?_t(t,e,n):Cr(e,t,n)})),o})),wo=Ca((function(e,t,n){rr(e,n,t)}));function xo(e,t){return(zo(e)?Pt:Dr)(e,ii(t,3))}var _o=Ca((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ko=Jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yi(e,t[0],t[1])?t=[]:n>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),Zr(e,hr(t,1),[])})),Io=ut||function(){return ft.Date.now()};function So(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Ka(e,u,a,a,a,a,t)}function Eo(e,t){var n;if("function"!=typeof t)throw new Ee(i);return e=bs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Co=Jr((function(e,t,n){var r=1;if(n.length){var a=sn(n,ai(Co));r|=c}return Ka(e,r,t,n,a)})),To=Jr((function(e,t,n){var r=3;if(n.length){var a=sn(n,ai(To));r|=c}return Ka(t,r,e,n,a)}));function Oo(e,t,n){var r,o,s,c,u,d,f=0,l=!1,b=!1,p=!0;if("function"!=typeof e)throw new Ee(i);function h(t){var n=r,i=o;return r=o=a,f=t,c=e.apply(i,n)}function y(e){var n=e-d;return d===a||n>=t||n<0||b&&e-f>=s}function m(){var e=Io();if(y(e))return v(e);u=Ei(m,function(e){var n=t-(e-d);return b?mn(n,s-(e-f)):n}(e))}function v(e){return u=a,p&&r?h(e):(r=o=a,c)}function g(){var e=Io(),n=y(e);if(r=arguments,o=this,d=e,n){if(u===a)return function(e){return f=e,u=Ei(m,t),l?h(e):c}(d);if(b)return ga(u),u=Ei(m,t),h(d)}return u===a&&(u=Ei(m,t)),c}return t=hs(t)||0,$o(n)&&(l=!!n.leading,s=(b="maxWait"in n)?yn(hs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),g.cancel=function(){u!==a&&ga(u),f=0,r=d=o=u=a},g.flush=function(){return u===a?c:v(Io())},g}var Po=Jr((function(e,t){return cr(e,1,t)})),Mo=Jr((function(e,t,n){return cr(e,hs(t)||0,n)}));function Bo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ee(i);var n=function n(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Bo.Cache||qn),n}function No(e){if("function"!=typeof e)throw new Ee(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Bo.Cache=qn;var Ro=ma((function(e,t){var n=(t=1==t.length&&zo(t[0])?Pt(t[0],Gt(ii())):Pt(hr(t,1),Gt(ii()))).length;return Jr((function(r){for(var a=-1,i=mn(r.length,n);++a=t})),Ho=Tr(function(){return arguments}())?Tr:function(e){return es(e)&&Be.call(e,"callee")&&!Ve.call(e,"callee")},zo=r.isArray,Qo=mt?Gt(mt):function(e){return es(e)&&_r(e)==P};function qo(e){return null!=e&&Xo(e.length)&&!Wo(e)}function Vo(e){return es(e)&&qo(e)}var Jo=yt||hc,Ko=vt?Gt(vt):function(e){return es(e)&&_r(e)==v};function Go(e){if(!es(e))return!1;var t=_r(e);return t==g||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Wo(e){if(!$o(e))return!1;var t=_r(e);return t==A||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Yo(e){return"number"==typeof e&&e==bs(e)}function Xo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function $o(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=gt?Gt(gt):function(e){return es(e)&&fi(e)==x};function ns(e){return"number"==typeof e||es(e)&&_r(e)==_}function rs(e){if(!es(e)||_r(e)!=k)return!1;var t=Qe(e);if(null===t)return!0;var n=Be.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==je}var as=At?Gt(At):function(e){return es(e)&&_r(e)==S},is=wt?Gt(wt):function(e){return es(e)&&fi(e)==E};function os(e){return"string"==typeof e||!zo(e)&&es(e)&&_r(e)==C}function ss(e){return"symbol"==typeof e||es(e)&&_r(e)==T}var cs=xt?Gt(xt):function(e){return es(e)&&Xo(e.length)&&!!at[_r(e)]},us=za(Rr),ds=za((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(qo(e))return os(e)?fn(e):Sa(e);if(Ge&&e[Ge])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ge]());var t=fi(e);return(t==x?an:t==E?cn:Ls)(e)}function ls(e){return e?(e=hs(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function bs(e){var t=ls(e),n=t%1;return t==t?n?t-n:t:0}function ps(e){return e?ir(bs(e),0,b):0}function hs(e){if("number"==typeof e)return e;if(ss(e))return l;if($o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=$o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=pe.test(e);return n||ye.test(e)?ct(e.slice(2),n?2:8):be.test(e)?l:+e}function ys(e){return Ea(e,Ps(e))}function ms(e){return null==e?"":oa(e)}var vs=Ta((function(e,t){if(Ai(t)||qo(t))Ea(t,Os(t),e);else for(var n in t)Be.call(t,n)&&$n(e,n,t[n])})),gs=Ta((function(e,t){Ea(t,Ps(t),e)})),As=Ta((function(e,t,n,r){Ea(t,Ps(t),e,r)})),ws=Ta((function(e,t,n,r){Ea(t,Os(t),e,r)})),xs=$a(ar),_s=Jr((function(e,t){e=ke(e);var n=-1,r=t.length,i=r>2?t[2]:a;for(i&&yi(t[0],t[1],i)&&(r=1);++n1),t})),Ea(e,ti(e),n),r&&(n=or(n,7,Ya));for(var a=t.length;a--;)ca(n,t[a]);return n})),Rs=$a((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return Ss(e,n)}))}(e,t)}));function Ds(e,t){if(null==e)return{};var n=Pt(ti(e),(function(e){return[e]}));return t=ii(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var js=Ja(Os),Us=Ja(Ps);function Ls(e){return null==e?[]:Wt(e,Os(e))}var Fs=Ba((function(e,t,n){return t=t.toLowerCase(),e+(n?Zs(t):t)}));function Zs(e){return Gs(ms(e).toLowerCase())}function Hs(e){return(e=ms(e))&&e.replace(ve,en).replace(Ye,"")}var zs=Ba((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Qs=Ba((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),qs=Ma("toLowerCase"),Vs=Ba((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Js=Ba((function(e,t,n){return e+(n?" ":"")+Gs(t)})),Ks=Ba((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Gs=Ma("toUpperCase");function Ws(e,t,n){return e=ms(e),(t=n?a:t)===a?function(e){return tt.test(e)}(e)?function(e){return e.match($e)||[]}(e):function(e){return e.match(ce)||[]}(e):e.match(t)||[]}var Ys=Jr((function(e,t){try{return _t(e,a,t)}catch(e){return Go(e)?e:new we(e)}})),Xs=$a((function(e,t){return It(t,(function(t){t=Ri(t),rr(e,t,Co(e[t],e))})),e}));function $s(e){return function(){return e}}var ec=Da(),tc=Da(!0);function nc(e){return e}function rc(e){return Br("function"==typeof e?e:or(e,1))}var ac=Jr((function(e,t){return function(n){return Cr(n,e,t)}})),ic=Jr((function(e,t){return function(n){return Cr(e,n,t)}}));function oc(e,t,n){var r=Os(t),a=Ar(t,r);null!=n||$o(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Ar(t,Os(t)));var i=!($o(n)&&"chain"in n&&!n.chain),o=Wo(e);return It(a,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Sa(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Mt([this.value()],arguments))})})),e}function sc(){}var cc=Fa(Pt),uc=Fa(Et),dc=Fa(Rt);function fc(e){return mi(e)?zt(Ri(e)):function(e){return function(t){return wr(t,e)}}(e)}var lc=Ha(),bc=Ha(!0);function pc(){return[]}function hc(){return!1}var yc,mc=La((function(e,t){return e+t}),0),vc=qa("ceil"),gc=La((function(e,t){return e/t}),1),Ac=qa("floor"),wc=La((function(e,t){return e*t}),1),xc=qa("round"),_c=La((function(e,t){return e-t}),0);return Un.after=function(e,t){if("function"!=typeof t)throw new Ee(i);return e=bs(e),function(){if(--e<1)return t.apply(this,arguments)}},Un.ary=So,Un.assign=vs,Un.assignIn=gs,Un.assignInWith=As,Un.assignWith=ws,Un.at=xs,Un.before=Eo,Un.bind=Co,Un.bindAll=Xs,Un.bindKey=To,Un.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return zo(e)?e:[e]},Un.chain=fo,Un.chunk=function(e,t,n){t=(n?yi(e,t,n):t===a)?1:yn(bs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,c=r(lt(i/t));oi?0:i+n),(r=r===a||r>i?i:bs(r))<0&&(r+=i),r=n>r?0:ps(r);n>>0)?(e=ms(e))&&("string"==typeof t||null!=t&&!as(t))&&!(t=oa(t))&&rn(e)?va(fn(e),0,n):e.split(t,n):[]},Un.spread=function(e,t){if("function"!=typeof e)throw new Ee(i);return t=null==t?0:yn(bs(t),0),Jr((function(n){var r=n[t],a=va(n,0,t);return r&&Mt(a,r),_t(e,this,a)}))},Un.tail=function(e){var t=null==e?0:e.length;return t?ea(e,1,t):[]},Un.take=function(e,t,n){return e&&e.length?ea(e,0,(t=n||t===a?1:bs(t))<0?0:t):[]},Un.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ea(e,(t=r-(t=n||t===a?1:bs(t)))<0?0:t,r):[]},Un.takeRightWhile=function(e,t){return e&&e.length?da(e,ii(t,3),!1,!0):[]},Un.takeWhile=function(e,t){return e&&e.length?da(e,ii(t,3)):[]},Un.tap=function(e,t){return t(e),e},Un.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new Ee(i);return $o(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Oo(e,t,{leading:r,maxWait:t,trailing:a})},Un.thru=lo,Un.toArray=fs,Un.toPairs=js,Un.toPairsIn=Us,Un.toPath=function(e){return zo(e)?Pt(e,Ri):ss(e)?[e]:Sa(Ni(ms(e)))},Un.toPlainObject=ys,Un.transform=function(e,t,n){var r=zo(e),a=r||Jo(e)||cs(e);if(t=ii(t,4),null==n){var i=e&&e.constructor;n=a?r?new i:[]:$o(e)&&Wo(i)?Ln(Qe(e)):{}}return(a?It:vr)(e,(function(e,r,a){return t(n,e,r,a)})),n},Un.unary=function(e){return So(e,1)},Un.union=$i,Un.unionBy=eo,Un.unionWith=to,Un.uniq=function(e){return e&&e.length?sa(e):[]},Un.uniqBy=function(e,t){return e&&e.length?sa(e,ii(t,2)):[]},Un.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?sa(e,a,t):[]},Un.unset=function(e,t){return null==e||ca(e,t)},Un.unzip=no,Un.unzipWith=ro,Un.update=function(e,t,n){return null==e?e:ua(e,t,ha(n))},Un.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:ua(e,t,ha(n),r)},Un.values=Ls,Un.valuesIn=function(e){return null==e?[]:Wt(e,Ps(e))},Un.without=ao,Un.words=Ws,Un.wrap=function(e,t){return Do(ha(t),e)},Un.xor=io,Un.xorBy=oo,Un.xorWith=so,Un.zip=co,Un.zipObject=function(e,t){return ba(e||[],t||[],$n)},Un.zipObjectDeep=function(e,t){return ba(e||[],t||[],Wr)},Un.zipWith=uo,Un.entries=js,Un.entriesIn=Us,Un.extend=gs,Un.extendWith=As,oc(Un,Un),Un.add=mc,Un.attempt=Ys,Un.camelCase=Fs,Un.capitalize=Zs,Un.ceil=vc,Un.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=hs(n))==n?n:0),t!==a&&(t=(t=hs(t))==t?t:0),ir(hs(e),t,n)},Un.clone=function(e){return or(e,4)},Un.cloneDeep=function(e){return or(e,5)},Un.cloneDeepWith=function(e,t){return or(e,5,t="function"==typeof t?t:a)},Un.cloneWith=function(e,t){return or(e,4,t="function"==typeof t?t:a)},Un.conformsTo=function(e,t){return null==t||sr(e,t,Os(t))},Un.deburr=Hs,Un.defaultTo=function(e,t){return null==e||e!=e?t:e},Un.divide=gc,Un.endsWith=function(e,t,n){e=ms(e),t=oa(t);var r=e.length,i=n=n===a?r:ir(bs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Un.eq=Lo,Un.escape=function(e){return(e=ms(e))&&K.test(e)?e.replace(V,tn):e},Un.escapeRegExp=function(e){return(e=ms(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Un.every=function(e,t,n){var r=zo(e)?Et:lr;return n&&yi(e,t,n)&&(t=a),r(e,ii(t,3))},Un.find=ho,Un.findIndex=Zi,Un.findKey=function(e,t){return jt(e,ii(t,3),vr)},Un.findLast=yo,Un.findLastIndex=Hi,Un.findLastKey=function(e,t){return jt(e,ii(t,3),gr)},Un.floor=Ac,Un.forEach=mo,Un.forEachRight=vo,Un.forIn=function(e,t){return null==e?e:yr(e,ii(t,3),Ps)},Un.forInRight=function(e,t){return null==e?e:mr(e,ii(t,3),Ps)},Un.forOwn=function(e,t){return e&&vr(e,ii(t,3))},Un.forOwnRight=function(e,t){return e&&gr(e,ii(t,3))},Un.get=Is,Un.gt=Fo,Un.gte=Zo,Un.has=function(e,t){return null!=e&&li(e,t,Ir)},Un.hasIn=Ss,Un.head=Qi,Un.identity=nc,Un.includes=function(e,t,n,r){e=qo(e)?e:Ls(e),n=n&&!r?bs(n):0;var a=e.length;return n<0&&(n=yn(a+n,0)),os(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Lt(e,t,n)>-1},Un.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:bs(n);return a<0&&(a=yn(r+a,0)),Lt(e,t,a)},Un.inRange=function(e,t,n){return t=ls(t),n===a?(n=t,t=0):n=ls(n),function(e,t,n){return e>=mn(t,n)&&e=-9007199254740991&&e<=f},Un.isSet=is,Un.isString=os,Un.isSymbol=ss,Un.isTypedArray=cs,Un.isUndefined=function(e){return e===a},Un.isWeakMap=function(e){return es(e)&&fi(e)==O},Un.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==_r(e)},Un.join=function(e,t){return null==e?"":Qt.call(e,t)},Un.kebabCase=zs,Un.last=Ki,Un.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=bs(n))<0?yn(r+i,0):mn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ut(e,Zt,i,!0)},Un.lowerCase=Qs,Un.lowerFirst=qs,Un.lt=us,Un.lte=ds,Un.max=function(e){return e&&e.length?br(e,nc,kr):a},Un.maxBy=function(e,t){return e&&e.length?br(e,ii(t,2),kr):a},Un.mean=function(e){return Ht(e,nc)},Un.meanBy=function(e,t){return Ht(e,ii(t,2))},Un.min=function(e){return e&&e.length?br(e,nc,Rr):a},Un.minBy=function(e,t){return e&&e.length?br(e,ii(t,2),Rr):a},Un.stubArray=pc,Un.stubFalse=hc,Un.stubObject=function(){return{}},Un.stubString=function(){return""},Un.stubTrue=function(){return!0},Un.multiply=wc,Un.nth=function(e,t){return e&&e.length?Fr(e,bs(t)):a},Un.noConflict=function(){return ft._===this&&(ft._=Ue),this},Un.noop=sc,Un.now=Io,Un.pad=function(e,t,n){e=ms(e);var r=(t=bs(t))?dn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Za(bt(a),n)+e+Za(lt(a),n)},Un.padEnd=function(e,t,n){e=ms(e);var r=(t=bs(t))?dn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=An();return mn(e+i*(t-e+st("1e-"+((i+"").length-1))),t)}return qr(e,t)},Un.reduce=function(e,t,n){var r=zo(e)?Bt:qt,a=arguments.length<3;return r(e,ii(t,4),n,a,dr)},Un.reduceRight=function(e,t,n){var r=zo(e)?Nt:qt,a=arguments.length<3;return r(e,ii(t,4),n,a,fr)},Un.repeat=function(e,t,n){return t=(n?yi(e,t,n):t===a)?1:bs(t),Vr(ms(e),t)},Un.replace=function(){var e=arguments,t=ms(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Un.result=function(e,t,n){var r=-1,i=(t=ya(t,e)).length;for(i||(i=1,e=a);++rf)return[];var n=b,r=mn(e,b);t=ii(t),e-=b;for(var a=Jt(r,t);++n=o)return e;var c=n-dn(r);if(c<1)return r;var u=s?va(s,0,c).join(""):e.slice(0,c);if(i===a)return u+r;if(s&&(c+=u.length-c),as(i)){if(e.slice(c).search(i)){var d,f=u;for(i.global||(i=Ie(i.source,ms(le.exec(i))+"g")),i.lastIndex=0;d=i.exec(f);)var l=d.index;u=u.slice(0,l===a?c:l)}}else if(e.indexOf(oa(i),c)!=c){var b=u.lastIndexOf(i);b>-1&&(u=u.slice(0,b))}return u+r},Un.unescape=function(e){return(e=ms(e))&&J.test(e)?e.replace(q,bn):e},Un.uniqueId=function(e){var t=++Ne;return ms(e)+t},Un.upperCase=Ks,Un.upperFirst=Gs,Un.each=mo,Un.eachRight=vo,Un.first=Qi,oc(Un,(yc={},vr(Un,(function(e,t){Be.call(Un.prototype,t)||(yc[t]=e)})),yc),{chain:!1}),Un.VERSION="4.17.21",It(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Un[e].placeholder=Un})),It(["drop","take"],(function(e,t){Hn.prototype[e]=function(n){n=n===a?1:yn(bs(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=mn(n,r.__takeCount__):r.__views__.push({size:mn(n,b),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),It(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),It(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),It(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(nc)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Jr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Cr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(No(ii(e)))},Hn.prototype.slice=function(e,t){e=bs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=bs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(b)},vr(Hn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Un[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Un.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Hn,u=s[0],d=c||zo(t),f=function(e){var t=i.apply(Un,Mt([e],s));return r&&l?t[0]:t};d&&n&&"function"==typeof u&&1!=u.length&&(c=d=!1);var l=this.__chain__,b=!!this.__actions__.length,p=o&&!l,h=c&&!b;if(!o&&d){t=h?t:new Hn(this);var y=e.apply(t,s);return y.__actions__.push({func:lo,args:[f],thisArg:a}),new Zn(y,l)}return p&&h?e.apply(this,s):(y=this.thru(f),p?r?y.value()[0]:y.value():y)})})),It(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ce[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Un.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(zo(a)?a:[],e)}return this[n]((function(n){return t.apply(zo(n)?n:[],e)}))}})),vr(Hn.prototype,(function(e,t){var n=Un[t];if(n){var r=n.name+"";Be.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[ja(a,2).name]=[{name:"wrapper",func:a}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Sa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Sa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Sa(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=zo(e),r=t<0,a=n?e.length:0,i=function(e,t,n){for(var r=-1,a=n.length;++r=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},Un.prototype.plant=function(e){for(var t,n=this;n instanceof Fn;){var r=ji(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Un.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:lo,args:[Xi],thisArg:a}),new Zn(t,this.__chain__)}return this.thru(Xi)},Un.prototype.toJSON=Un.prototype.valueOf=Un.prototype.value=function(){return fa(this.__wrapped__,this.__actions__)},Un.prototype.first=Un.prototype.head,Ge&&(Un.prototype[Ge]=function(){return this}),Un}();ft._=pn,(r=function(){return pn}.call(t,n,t,e))===a||(e.exports=r)}.call(this)},24141:function(e){e.exports=n;var t=null;try{t=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(e){}function n(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function r(e){return!0===(e&&e.__isLong__)}n.prototype.__isLong__,Object.defineProperty(n.prototype,"__isLong__",{value:!0}),n.isLong=r;var a={},i={};function o(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=i[e])?r:(n=c(e,(0|e)<0?-1:0,!0),o&&(i[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=a[e])?r:(n=c(e,e<0?-1:0,!1),o&&(a[e]=n),n)}function s(e,t){if(isNaN(e))return t?m:y;if(t){if(e<0)return m;if(e>=b)return x}else{if(e<=-p)return _;if(e+1>=p)return w}return e<0?s(-e,t).neg():c(e%l|0,e/l|0,t)}function c(e,t,r){return new n(e,t,r)}n.fromInt=o,n.fromNumber=s,n.fromBits=c;var u=Math.pow;function d(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return y;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||360)throw Error("interior hyphen");if(0===r)return d(e.substring(1),t,n).neg();for(var a=s(u(n,8)),i=y,o=0;o>>0:this.low},k.toNumber=function(){return this.unsigned?(this.high>>>0)*l+(this.low>>>0):this.high*l+(this.low>>>0)},k.toString=function(e){if((e=e||10)<2||36>>0).toString(e);if((i=c).isZero())return d+o;for(;d.length<6;)d="0"+d;o=""+d+o}},k.getHighBits=function(){return this.high},k.getHighBitsUnsigned=function(){return this.high>>>0},k.getLowBits=function(){return this.low},k.getLowBitsUnsigned=function(){return this.low>>>0},k.getNumBitsAbs=function(){if(this.isNegative())return this.eq(_)?64:this.neg().getNumBitsAbs();for(var e=0!=this.high?this.high:this.low,t=31;t>0&&0==(e&1<=0},k.isOdd=function(){return 1==(1&this.low)},k.isEven=function(){return 0==(1&this.low)},k.equals=function(e){return r(e)||(e=f(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low},k.eq=k.equals,k.notEquals=function(e){return!this.eq(e)},k.neq=k.notEquals,k.ne=k.notEquals,k.lessThan=function(e){return this.comp(e)<0},k.lt=k.lessThan,k.lessThanOrEqual=function(e){return this.comp(e)<=0},k.lte=k.lessThanOrEqual,k.le=k.lessThanOrEqual,k.greaterThan=function(e){return this.comp(e)>0},k.gt=k.greaterThan,k.greaterThanOrEqual=function(e){return this.comp(e)>=0},k.gte=k.greaterThanOrEqual,k.ge=k.greaterThanOrEqual,k.compare=function(e){if(r(e)||(e=f(e)),this.eq(e))return 0;var t=this.isNegative(),n=e.isNegative();return t&&!n?-1:!t&&n?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1},k.comp=k.compare,k.negate=function(){return!this.unsigned&&this.eq(_)?_:this.not().add(v)},k.neg=k.negate,k.add=function(e){r(e)||(e=f(e));var t=this.high>>>16,n=65535&this.high,a=this.low>>>16,i=65535&this.low,o=e.high>>>16,s=65535&e.high,u=e.low>>>16,d=0,l=0,b=0,p=0;return b+=(p+=i+(65535&e.low))>>>16,l+=(b+=a+u)>>>16,d+=(l+=n+s)>>>16,d+=t+o,c((b&=65535)<<16|(p&=65535),(d&=65535)<<16|(l&=65535),this.unsigned)},k.subtract=function(e){return r(e)||(e=f(e)),this.add(e.neg())},k.sub=k.subtract,k.multiply=function(e){if(this.isZero())return y;if(r(e)||(e=f(e)),t)return c(t.mul(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned);if(e.isZero())return y;if(this.eq(_))return e.isOdd()?_:y;if(e.eq(_))return this.isOdd()?_:y;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(h)&&e.lt(h))return s(this.toNumber()*e.toNumber(),this.unsigned);var n=this.high>>>16,a=65535&this.high,i=this.low>>>16,o=65535&this.low,u=e.high>>>16,d=65535&e.high,l=e.low>>>16,b=65535&e.low,p=0,m=0,v=0,g=0;return v+=(g+=o*b)>>>16,m+=(v+=i*b)>>>16,v&=65535,m+=(v+=o*l)>>>16,p+=(m+=a*b)>>>16,m&=65535,p+=(m+=i*l)>>>16,m&=65535,p+=(m+=o*d)>>>16,p+=n*b+a*l+i*d+o*u,c((v&=65535)<<16|(g&=65535),(p&=65535)<<16|(m&=65535),this.unsigned)},k.mul=k.multiply,k.divide=function(e){if(r(e)||(e=f(e)),e.isZero())throw Error("division by zero");var n,a,i;if(t)return this.unsigned||-2147483648!==this.high||-1!==e.low||-1!==e.high?c((this.unsigned?t.div_u:t.div_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this;if(this.isZero())return this.unsigned?m:y;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return m;if(e.gt(this.shru(1)))return g;i=m}else{if(this.eq(_))return e.eq(v)||e.eq(A)?_:e.eq(_)?v:(n=this.shr(1).div(e).shl(1)).eq(y)?e.isNegative()?v:A:(a=this.sub(e.mul(n)),i=n.add(a.div(e)));if(e.eq(_))return this.unsigned?m:y;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();i=y}for(a=this;a.gte(e);){n=Math.max(1,Math.floor(a.toNumber()/e.toNumber()));for(var o=Math.ceil(Math.log(n)/Math.LN2),d=o<=48?1:u(2,o-48),l=s(n),b=l.mul(e);b.isNegative()||b.gt(a);)b=(l=s(n-=d,this.unsigned)).mul(e);l.isZero()&&(l=v),i=i.add(l),a=a.sub(b)}return i},k.div=k.divide,k.modulo=function(e){return r(e)||(e=f(e)),t?c((this.unsigned?t.rem_u:t.rem_s)(this.low,this.high,e.low,e.high),t.get_high(),this.unsigned):this.sub(this.div(e).mul(e))},k.mod=k.modulo,k.rem=k.modulo,k.not=function(){return c(~this.low,~this.high,this.unsigned)},k.and=function(e){return r(e)||(e=f(e)),c(this.low&e.low,this.high&e.high,this.unsigned)},k.or=function(e){return r(e)||(e=f(e)),c(this.low|e.low,this.high|e.high,this.unsigned)},k.xor=function(e){return r(e)||(e=f(e)),c(this.low^e.low,this.high^e.high,this.unsigned)},k.shiftLeft=function(e){return r(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?c(this.low<>>32-e,this.unsigned):c(0,this.low<>>e|this.high<<32-e,this.high>>e,this.unsigned):c(this.high>>e-32,this.high>=0?0:-1,this.unsigned)},k.shr=k.shiftRight,k.shiftRightUnsigned=function(e){if(r(e)&&(e=e.toInt()),0==(e&=63))return this;var t=this.high;return e<32?c(this.low>>>e|t<<32-e,t>>>e,this.unsigned):c(32===e?t:t>>>e-32,0,this.unsigned)},k.shru=k.shiftRightUnsigned,k.shr_u=k.shiftRightUnsigned,k.toSigned=function(){return this.unsigned?c(this.low,this.high,!1):this},k.toUnsigned=function(){return this.unsigned?this:c(this.low,this.high,!0)},k.toBytes=function(e){return e?this.toBytesLE():this.toBytesBE()},k.toBytesLE=function(){var e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]},k.toBytesBE=function(){var e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]},n.fromBytes=function(e,t,r){return r?n.fromBytesLE(e,t):n.fromBytesBE(e,t)},n.fromBytesLE=function(e,t){return new n(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)},n.fromBytesBE=function(e,t){return new n(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}},75732:function(e,t,n){"use strict";var r=n(15771).default,a=n(97785).default,i=function(e){return"object"==typeof e&&null!==e},o=Symbol("skip"),s=function(e){return i(e)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof Date)},c=function e(t,n,i){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new WeakMap;if(i=a({deep:!1,target:{}},i),c.has(t))return c.get(t);c.set(t,i.target);var u=i.target;delete i.target;var d=function(t){return t.map((function(t){return s(t)?e(t,n,i,c):t}))};if(Array.isArray(t))return d(t);for(var f=0,l=Object.entries(t);f>>32-t}function u(e,t,n,r,a,i,o){return c(e+(t&n|~t&r)+a+i|0,o)+t|0}function d(e,t,n,r,a,i,o){return c(e+(t&r|n&~r)+a+i|0,o)+t|0}function f(e,t,n,r,a,i,o){return c(e+(t^n^r)+a+i|0,o)+t|0}function l(e,t,n,r,a,i,o){return c(e+(n^(t|~r))+a+i|0,o)+t|0}r(s,a),s.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,a=this._c,i=this._d;n=u(n,r,a,i,e[0],3614090360,7),i=u(i,n,r,a,e[1],3905402710,12),a=u(a,i,n,r,e[2],606105819,17),r=u(r,a,i,n,e[3],3250441966,22),n=u(n,r,a,i,e[4],4118548399,7),i=u(i,n,r,a,e[5],1200080426,12),a=u(a,i,n,r,e[6],2821735955,17),r=u(r,a,i,n,e[7],4249261313,22),n=u(n,r,a,i,e[8],1770035416,7),i=u(i,n,r,a,e[9],2336552879,12),a=u(a,i,n,r,e[10],4294925233,17),r=u(r,a,i,n,e[11],2304563134,22),n=u(n,r,a,i,e[12],1804603682,7),i=u(i,n,r,a,e[13],4254626195,12),a=u(a,i,n,r,e[14],2792965006,17),n=d(n,r=u(r,a,i,n,e[15],1236535329,22),a,i,e[1],4129170786,5),i=d(i,n,r,a,e[6],3225465664,9),a=d(a,i,n,r,e[11],643717713,14),r=d(r,a,i,n,e[0],3921069994,20),n=d(n,r,a,i,e[5],3593408605,5),i=d(i,n,r,a,e[10],38016083,9),a=d(a,i,n,r,e[15],3634488961,14),r=d(r,a,i,n,e[4],3889429448,20),n=d(n,r,a,i,e[9],568446438,5),i=d(i,n,r,a,e[14],3275163606,9),a=d(a,i,n,r,e[3],4107603335,14),r=d(r,a,i,n,e[8],1163531501,20),n=d(n,r,a,i,e[13],2850285829,5),i=d(i,n,r,a,e[2],4243563512,9),a=d(a,i,n,r,e[7],1735328473,14),n=f(n,r=d(r,a,i,n,e[12],2368359562,20),a,i,e[5],4294588738,4),i=f(i,n,r,a,e[8],2272392833,11),a=f(a,i,n,r,e[11],1839030562,16),r=f(r,a,i,n,e[14],4259657740,23),n=f(n,r,a,i,e[1],2763975236,4),i=f(i,n,r,a,e[4],1272893353,11),a=f(a,i,n,r,e[7],4139469664,16),r=f(r,a,i,n,e[10],3200236656,23),n=f(n,r,a,i,e[13],681279174,4),i=f(i,n,r,a,e[0],3936430074,11),a=f(a,i,n,r,e[3],3572445317,16),r=f(r,a,i,n,e[6],76029189,23),n=f(n,r,a,i,e[9],3654602809,4),i=f(i,n,r,a,e[12],3873151461,11),a=f(a,i,n,r,e[15],530742520,16),n=l(n,r=f(r,a,i,n,e[2],3299628645,23),a,i,e[0],4096336452,6),i=l(i,n,r,a,e[7],1126891415,10),a=l(a,i,n,r,e[14],2878612391,15),r=l(r,a,i,n,e[5],4237533241,21),n=l(n,r,a,i,e[12],1700485571,6),i=l(i,n,r,a,e[3],2399980690,10),a=l(a,i,n,r,e[10],4293915773,15),r=l(r,a,i,n,e[1],2240044497,21),n=l(n,r,a,i,e[8],1873313359,6),i=l(i,n,r,a,e[15],4264355552,10),a=l(a,i,n,r,e[6],2734768916,15),r=l(r,a,i,n,e[13],1309151649,21),n=l(n,r,a,i,e[4],4149444226,6),i=l(i,n,r,a,e[11],3174756917,10),a=l(a,i,n,r,e[2],718787259,15),r=l(r,a,i,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+a|0,this._d=this._d+i|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=i.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},98238:function(e,t,n){var r=n(18034),a=n(33756);function i(e){this.rand=e||new a.Rand}e.exports=i,i.create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var a=new r(this.rand.generate(n))}while(a.cmp(e)>=0);return a},i.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},i.prototype.test=function(e,t,n){var a=e.bitLength(),i=r.mont(e),o=new r(1).toRed(i);t||(t=Math.max(1,a/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),d=s.toRed(i);t>0;t--){var f=this._randrange(new r(2),s);n&&n(f);var l=f.toRed(i).redPow(u);if(0!==l.cmp(o)&&0!==l.cmp(d)){for(var b=1;b0;t--){var d=this._randrange(new r(2),o),f=e.gcd(d);if(0!==f.cmpn(1))return f;var l=d.toRed(a).redPow(c);if(0!==l.cmp(i)&&0!==l.cmp(u)){for(var b=1;b=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,d=n;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,f=67108863&c,l=Math.min(u,t.length-1),b=Math.max(0,u-e.length+1);b<=l;b++){var p=u-b|0;d+=(o=(a=0|e.words[p])*(i=0|t.words[b])+f)/67108864|0,f=67108863&o}n.words[u]=0|f,c=0|d}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?d[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],b=l[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var h=p.modn(b).toString(e);n=(p=p.idivn(b)).isZero()?h+n:d[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),d=this.clone();if(c){for(s=0;!d.isZero();s++)o=d.andln(255),d.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,b=0|o[1],p=8191&b,h=b>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,I=0|o[5],S=8191&I,E=I>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,N=0|o[8],R=8191&N,D=N>>>13,j=0|o[9],U=8191&j,L=j>>>13,F=0|s[0],Z=8191&F,H=F>>>13,z=0|s[1],Q=8191&z,q=z>>>13,V=0|s[2],J=8191&V,K=V>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,de=0|s[8],fe=8191&de,le=de>>>13,be=0|s[9],pe=8191&be,he=be>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(f,Z))|0)+((8191&(a=(a=Math.imul(f,H))+Math.imul(l,Z)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(p,Z),a=(a=Math.imul(p,H))+Math.imul(h,Z)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(f,Q)|0)|0)+((8191&(a=(a=a+Math.imul(f,q)|0)+Math.imul(l,Q)|0))<<13)|0;u=((i=i+Math.imul(l,q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,Z),a=(a=Math.imul(m,H))+Math.imul(v,Z)|0,i=Math.imul(v,H),r=r+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,q)|0)+Math.imul(h,Q)|0,i=i+Math.imul(h,q)|0;var ve=(u+(r=r+Math.imul(f,J)|0)|0)+((8191&(a=(a=a+Math.imul(f,K)|0)+Math.imul(l,J)|0))<<13)|0;u=((i=i+Math.imul(l,K)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,Z),a=(a=Math.imul(A,H))+Math.imul(w,Z)|0,i=Math.imul(w,H),r=r+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,q)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,a=(a=a+Math.imul(p,K)|0)+Math.imul(h,J)|0,i=i+Math.imul(h,K)|0;var ge=(u+(r=r+Math.imul(f,W)|0)|0)+((8191&(a=(a=a+Math.imul(f,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,Z),a=(a=Math.imul(_,H))+Math.imul(k,Z)|0,i=Math.imul(k,H),r=r+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,q)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,q)|0,r=r+Math.imul(m,J)|0,a=(a=a+Math.imul(m,K)|0)+Math.imul(v,J)|0,i=i+Math.imul(v,K)|0,r=r+Math.imul(p,W)|0,a=(a=a+Math.imul(p,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(f,$)|0)|0)+((8191&(a=(a=a+Math.imul(f,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(S,Z),a=(a=Math.imul(S,H))+Math.imul(E,Z)|0,i=Math.imul(E,H),r=r+Math.imul(_,Q)|0,a=(a=a+Math.imul(_,q)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,q)|0,r=r+Math.imul(A,J)|0,a=(a=a+Math.imul(A,K)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,K)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(p,$)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(a=(a=a+Math.imul(f,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,Z),a=(a=Math.imul(T,H))+Math.imul(O,Z)|0,i=Math.imul(O,H),r=r+Math.imul(S,Q)|0,a=(a=a+Math.imul(S,q)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,q)|0,r=r+Math.imul(_,J)|0,a=(a=a+Math.imul(_,K)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,K)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(p,ne)|0,a=(a=a+Math.imul(p,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(f,ie)|0)|0)+((8191&(a=(a=a+Math.imul(f,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,Z),a=(a=Math.imul(M,H))+Math.imul(B,Z)|0,i=Math.imul(B,H),r=r+Math.imul(T,Q)|0,a=(a=a+Math.imul(T,q)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,q)|0,r=r+Math.imul(S,J)|0,a=(a=a+Math.imul(S,K)|0)+Math.imul(E,J)|0,i=i+Math.imul(E,K)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(p,ie)|0,a=(a=a+Math.imul(p,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(a=(a=a+Math.imul(f,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,Z),a=(a=Math.imul(R,H))+Math.imul(D,Z)|0,i=Math.imul(D,H),r=r+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,q)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,q)|0,r=r+Math.imul(T,J)|0,a=(a=a+Math.imul(T,K)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,K)|0,r=r+Math.imul(S,W)|0,a=(a=a+Math.imul(S,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(p,ce)|0,a=(a=a+Math.imul(p,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(a=(a=a+Math.imul(f,le)|0)+Math.imul(l,fe)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,Z),a=(a=Math.imul(U,H))+Math.imul(L,Z)|0,i=Math.imul(L,H),r=r+Math.imul(R,Q)|0,a=(a=a+Math.imul(R,q)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,q)|0,r=r+Math.imul(M,J)|0,a=(a=a+Math.imul(M,K)|0)+Math.imul(B,J)|0,i=i+Math.imul(B,K)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(S,$)|0,a=(a=a+Math.imul(S,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(p,fe)|0,a=(a=a+Math.imul(p,le)|0)+Math.imul(h,fe)|0,i=i+Math.imul(h,le)|0;var Ie=(u+(r=r+Math.imul(f,pe)|0)|0)+((8191&(a=(a=a+Math.imul(f,he)|0)+Math.imul(l,pe)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,Q),a=(a=Math.imul(U,q))+Math.imul(L,Q)|0,i=Math.imul(L,q),r=r+Math.imul(R,J)|0,a=(a=a+Math.imul(R,K)|0)+Math.imul(D,J)|0,i=i+Math.imul(D,K)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(S,ne)|0,a=(a=a+Math.imul(S,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,fe)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,fe)|0,i=i+Math.imul(v,le)|0;var Se=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(a=(a=a+Math.imul(p,he)|0)+Math.imul(h,pe)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,J),a=(a=Math.imul(U,K))+Math.imul(L,J)|0,i=Math.imul(L,K),r=r+Math.imul(R,W)|0,a=(a=a+Math.imul(R,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(S,ie)|0,a=(a=a+Math.imul(S,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,pe)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,pe)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(R,$)|0,a=(a=a+Math.imul(R,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(S,ce)|0,a=(a=a+Math.imul(S,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,fe)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,pe)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,pe)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,a=(a=a+Math.imul(R,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(S,fe)|0,a=(a=a+Math.imul(S,le)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,pe)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,pe)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(R,ie)|0,a=(a=a+Math.imul(R,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,fe)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,fe)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(S,pe)|0)|0)+((8191&(a=(a=a+Math.imul(S,he)|0)+Math.imul(E,pe)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(R,ce)|0,a=(a=a+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,pe)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,pe)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(R,fe)|0,a=(a=a+Math.imul(R,le)|0)+Math.imul(D,fe)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,pe)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,pe)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,fe),a=(a=Math.imul(U,le))+Math.imul(L,fe)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(R,pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,he)|0)+Math.imul(D,pe)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Ne=(u+(r=Math.imul(U,pe))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,pe)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Ie,c[10]=Se,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Ne,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=b),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?p(this,e,t):r<63?b(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==d||u>=a);u--){var f=0|this.words[u];this.words[u]=d<<26-i|f>>>i,d=f&s}return c&&0!==d&&(c.words[c.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var l=67108864*(0|r.words[a.length+f])+(0|r.words[a.length+f-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var d=n.clone(),f=t.clone();!t.isZero();){for(var l=0,b=1;0==(t.words[0]&b)&&l<26;++l,b<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(d),o.isub(f)),a.iushrn(1),o.iushrn(1);for(var p=0,h=1;0==(n.words[0]&h)&&p<26;++p,h<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(d),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,d=1;0==(t.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var f=0,l=1;0==(n.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);0!==this.pow(d,u).cmp(c);)d.redIAdd(c);for(var f=this.pow(d,a),l=this.pow(e,a.addn(1).iushrn(1)),b=this.pow(e,a),p=o;0!==b.cmp(s);){for(var h=b,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],d=c-1;d>=0;d--){var f=u>>d&1;a!==n[0]&&(a=this.sqr(a)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===d)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},44713:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},74068:function(e,t){"use strict";var n=t;function r(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",n=0;n>8,o=255&a;i?n.push(i,o):n.push(o)}return n},n.zero2=r,n.toHex=a,n.encode=function(e,t){return"hex"===t?a(e):e}},92584:function(e){e.exports=function(){"use strict";var e=Object.prototype.toString,t=Array.isArray||function(t){return"[object Array]"===e.call(t)};function n(e){return"function"==typeof e}function r(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function a(e,t){return null!=e&&"object"==typeof e&&t in e}var i=RegExp.prototype.test;var o=/\S/;function s(e){return!function(e,t){return i.call(e,t)}(o,e)}var c={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};var u=/\s*/,d=/\s+/,f=/\s*=/,l=/\s*\}/,b=/#|\^|\/|>|\{|&|=|!/;function p(e){this.string=e,this.tail=e,this.pos=0}function h(e,t){this.view=e,this.cache={".":this.view},this.parent=t}function y(){this.templateCache={_cache:{},set:function(e,t){this._cache[e]=t},get:function(e){return this._cache[e]},clear:function(){this._cache={}}}}p.prototype.eos=function(){return""===this.tail},p.prototype.scan=function(e){var t=this.tail.match(e);if(!t||0!==t.index)return"";var n=t[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},p.prototype.scanUntil=function(e){var t,n=this.tail.search(e);switch(n){case-1:t=this.tail,this.tail="";break;case 0:t="";break;default:t=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=t.length,t},h.prototype.push=function(e){return new h(e,this)},h.prototype.lookup=function(e){var t,r,i,o=this.cache;if(o.hasOwnProperty(e))t=o[e];else{for(var s,c,u,d=this,f=!1;d;){if(e.indexOf(".")>0)for(s=d.view,c=e.split("."),u=0;null!=s&&u0?a[a.length-1][4]:n;break;default:r.push(t)}return n}(function(e){for(var t,n,r=[],a=0,i=e.length;a"===o?s=this.renderPartial(i,t,n,a):"&"===o?s=this.unescapedValue(i,t):"name"===o?s=this.escapedValue(i,t,a):"text"===o&&(s=this.rawValue(i)),void 0!==s&&(c+=s);return c},y.prototype.renderSection=function(e,r,a,i,o){var s=this,c="",u=r.lookup(e[1]);if(u){if(t(u))for(var d=0,f=u.length;d0||!n)&&(a[i]=r+a[i]);return a.join("\n")},y.prototype.renderPartial=function(e,t,r,a){if(r){var i=this.getConfigTags(a),o=n(r)?r(e[1]):r[e[1]];if(null!=o){var s=e[6],c=e[5],u=e[4],d=o;0==c&&u&&(d=this.indentPartial(o,u,s));var f=this.parse(d,i);return this.renderTokens(f,t,r,d,a)}}},y.prototype.unescapedValue=function(e,t){var n=t.lookup(e[1]);if(null!=n)return n},y.prototype.escapedValue=function(e,t,n){var r=this.getConfigEscape(n)||m.escape,a=t.lookup(e[1]);if(null!=a)return"number"==typeof a&&r===m.escape?String(a):r(a)},y.prototype.rawValue=function(e){return e[1]},y.prototype.getConfigTags=function(e){return t(e)?e:e&&"object"==typeof e?e.tags:void 0},y.prototype.getConfigEscape=function(e){return e&&"object"==typeof e&&!t(e)?e.escape:void 0};var m={name:"mustache.js",version:"4.2.0",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,Scanner:void 0,Context:void 0,Writer:void 0,set templateCache(e){v.templateCache=e},get templateCache(){return v.templateCache}},v=new y;return m.clearCache=function(){return v.clearCache()},m.parse=function(e,t){return v.parse(e,t)},m.render=function(e,n,r,a){if("string"!=typeof e)throw new TypeError('Invalid template! Template should be a "string" but "'+((t(i=e)?"array":typeof i)+'" was given as the first argument for mustache#render(template, view, partials)'));var i;return v.render(e,n,r,a)},m.escape=function(e){return String(e).replace(/[&<>"'`=\/]/g,(function(e){return c[e]}))},m.Scanner=p,m.Context=h,m.Writer=y,m}()},19081:function(e,t,n){"use strict";var r=n(5886).Buffer,a=n(69453).default,i=n(15771).default,o=n(33482).default,s=n(80294).default,c=n(34671).default,u=n(68387).default,d=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Account=void 0;var l=f(n(22097)),b=f(n(71016)),p=n(8e4),h=n(22162),y=n(62503),m=n(42058),v=n(80011),g=n(60249),A=n(38458),w=f(n(13476));function x(e){return JSON.parse(r.from(e).toString())}function _(e){return r.from(JSON.stringify(e))}var k=function(){function e(t,n){c(this,e),this.accessKeyByPublicKeyCache={},this.connection=t,this.accountId=n}return u(e,[{key:"state",value:function(){return d(this,void 0,void 0,s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.connection.provider.query({request_type:"view_account",account_id:this.accountId,finality:"optimistic"}));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"printLogsAndFailures",value:function(e,t){if(!{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ENV:"TESTNET",REACT_APP_WORMHOLE_EXPLORER:"https://wormhole.com/explorer/",REACT_APP_WORMHOLE_API:"https://api.testnet.wormscan.io/",REACT_APP_ATTEST_URL:"https://wormhole-foundation.github.io/example-token-bridge-ui/#/register"}.NEAR_NO_LOGS){var n,r=o(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;console.log("Receipt".concat(a.receiptIds.length>1?"s":"",": ").concat(a.receiptIds.join(", "))),this.printLogs(e,a.logs,"\t"),a.failure&&console.warn("\tFailure [".concat(e,"]: ").concat(a.failure))}}catch(e){r.e(e)}finally{r.f()}}}},{key:"printLogs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ENV:"TESTNET",REACT_APP_WORMHOLE_EXPLORER:"https://wormhole.com/explorer/",REACT_APP_WORMHOLE_API:"https://api.testnet.wormscan.io/",REACT_APP_ATTEST_URL:"https://wormhole-foundation.github.io/example-token-bridge-ui/#/register"}.NEAR_NO_LOGS){var r,a=o(t);try{for(a.s();!(r=a.n()).done;){var i=r.value;console.log("".concat(n,"Log [").concat(e,"]: ").concat(i))}}catch(e){a.e(e)}finally{a.f()}}}},{key:"signTransaction",value:function(e,t){return d(this,void 0,void 0,s().mark((function n(){var r,a,i,o,c;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.findAccessKey(e,t);case 2:if(r=n.sent){n.next=5;break}throw new h.TypedError("Can not sign transactions for account ".concat(this.accountId," on network ").concat(this.connection.networkId,", no matching key pair exists for this account"),"KeyNotFound");case 5:return a=r.accessKey,n.next=8,this.connection.provider.block({finality:"final"});case 8:return i=n.sent,o=i.header.hash,c=a.nonce.add(new l.default(1)),n.next=13,(0,p.signTransaction)(e,c,t,(0,y.baseDecode)(o),this.connection.signer,this.accountId,this.connection.networkId);case 13:return n.abrupt("return",n.sent);case 14:case"end":return n.stop()}}),n,this)})))}},{key:"signAndSendTransaction",value:function(e){var t=e.receiverId,n=e.actions,r=e.returnError;return d(this,void 0,void 0,s().mark((function e(){var o,c,u,f,l=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,w.default)(500,12,1.5,(function(){return d(l,void 0,void 0,s().mark((function e(){var r,a,u;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.signTransaction(t,n);case 2:return r=e.sent,a=i(r,2),o=a[0],c=a[1],u=c.transaction.publicKey,e.prev=7,e.next=10,this.connection.provider.sendTransaction(c);case 10:return e.abrupt("return",e.sent);case 13:if(e.prev=13,e.t0=e.catch(7),"InvalidNonce"!==e.t0.type){e.next=19;break}return(0,v.logWarning)("Retrying transaction ".concat(t,":").concat((0,y.baseEncode)(o)," with new nonce.")),delete this.accessKeyByPublicKeyCache[u.toString()],e.abrupt("return",null);case 19:if("Expired"!==e.t0.type){e.next=22;break}return(0,v.logWarning)("Retrying transaction ".concat(t,":").concat((0,y.baseEncode)(o)," due to expired block hash")),e.abrupt("return",null);case 22:throw e.t0.context=new h.ErrorContext((0,y.baseEncode)(o)),e.t0;case 24:case"end":return e.stop()}}),e,this,[[7,13]])})))}));case 2:if(u=e.sent){e.next=5;break}throw new h.TypedError("nonce retries exceeded for transaction. This usually means there are too many parallel requests with the same access key.","RetriesExceeded");case 5:if(f=[u.transaction_outcome].concat(a(u.receipts_outcome)).reduce((function(e,t){return t.outcome.logs.length||"object"==typeof t.outcome.status&&"object"==typeof t.outcome.status.Failure?e.concat({receiptIds:t.outcome.receipt_ids,logs:t.outcome.logs,failure:void 0!==t.outcome.status.Failure?(0,g.parseRpcError)(t.outcome.status.Failure):null}):e}),[]),this.printLogsAndFailures(c.transaction.receiverId,f),r||"object"!=typeof u.status||"object"!=typeof u.status.Failure||null===u.status.Failure){e.next=13;break}if(!u.status.Failure.error_message||!u.status.Failure.error_type){e.next=12;break}throw new h.TypedError("Transaction ".concat(u.transaction_outcome.id," failed. ").concat(u.status.Failure.error_message),u.status.Failure.error_type);case 12:throw(0,g.parseResultError)(u);case 13:return e.abrupt("return",u);case 14:case"end":return e.stop()}}),e,this)})))}},{key:"findAccessKey",value:function(e,t){return d(this,void 0,void 0,s().mark((function e(){var t,n,r,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.connection.signer.getPublicKey(this.accountId,this.connection.networkId);case 2:if(t=e.sent){e.next=5;break}throw new h.TypedError("no matching key pair found in ".concat(this.connection.signer),"PublicKeyNotFound");case 5:if(void 0===(n=this.accessKeyByPublicKeyCache[t.toString()])){e.next=8;break}return e.abrupt("return",{publicKey:t,accessKey:n});case 8:return e.prev=8,e.next=11,this.connection.provider.query({request_type:"view_access_key",account_id:this.accountId,public_key:t.toString(),finality:"optimistic"});case 11:if(r=e.sent,a=Object.assign(Object.assign({},r),{nonce:new l.default(r.nonce)}),!this.accessKeyByPublicKeyCache[t.toString()]){e.next=15;break}return e.abrupt("return",{publicKey:t,accessKey:this.accessKeyByPublicKeyCache[t.toString()]});case 15:return this.accessKeyByPublicKeyCache[t.toString()]=a,e.abrupt("return",{publicKey:t,accessKey:a});case 19:if(e.prev=19,e.t0=e.catch(8),"AccessKeyDoesNotExist"!=e.t0.type){e.next=23;break}return e.abrupt("return",null);case 23:throw e.t0;case 24:case"end":return e.stop()}}),e,this,[[8,19]])})))}},{key:"createAndDeployContract",value:function(t,n,r,a){return d(this,void 0,void 0,s().mark((function i(){var o,c;return s().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=(0,p.fullAccessKey)(),i.next=3,this.signAndSendTransaction({receiverId:t,actions:[(0,p.createAccount)(),(0,p.transfer)(a),(0,p.addKey)(m.PublicKey.from(n),o),(0,p.deployContract)(r)]});case 3:return c=new e(this.connection,t),i.abrupt("return",c);case 5:case"end":return i.stop()}}),i,this)})))}},{key:"sendMoney",value:function(e,t){return d(this,void 0,void 0,s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.signAndSendTransaction({receiverId:e,actions:[(0,p.transfer)(t)]}));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"createAccount",value:function(e,t,n){return d(this,void 0,void 0,s().mark((function r(){var a;return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=(0,p.fullAccessKey)(),r.abrupt("return",this.signAndSendTransaction({receiverId:e,actions:[(0,p.createAccount)(),(0,p.transfer)(n),(0,p.addKey)(m.PublicKey.from(t),a)]}));case 2:case"end":return r.stop()}}),r,this)})))}},{key:"deleteAccount",value:function(e){return d(this,void 0,void 0,s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ENV:"TESTNET",REACT_APP_WORMHOLE_EXPLORER:"https://wormhole.com/explorer/",REACT_APP_WORMHOLE_API:"https://api.testnet.wormscan.io/",REACT_APP_ATTEST_URL:"https://wormhole-foundation.github.io/example-token-bridge-ui/#/register"}.NEAR_NO_LOGS||console.log("Deleting an account does not automatically transfer NFTs and FTs to the beneficiary address. Ensure to transfer assets before deleting."),t.abrupt("return",this.signAndSendTransaction({receiverId:this.accountId,actions:[(0,p.deleteAccount)(e)]}));case 2:case"end":return t.stop()}}),t,this)})))}},{key:"deployContract",value:function(e){return d(this,void 0,void 0,s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.signAndSendTransaction({receiverId:this.accountId,actions:[(0,p.deployContract)(e)]}));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"encodeJSContractArgs",value:function(e,t,n){return r.concat([r.from(e),r.from([0]),r.from(t),r.from([0]),r.from(n)])}},{key:"functionCall",value:function(e){var t=e.contractId,n=e.methodName,r=e.args,a=void 0===r?{}:r,i=e.gas,o=void 0===i?A.DEFAULT_FUNCTION_CALL_GAS:i,c=e.attachedDeposit,u=e.walletMeta,f=e.walletCallbackUrl,l=e.stringify,b=e.jsContract;return d(this,void 0,void 0,s().mark((function e(){var r,i,d;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateArgs(a),b?(i=this.encodeJSContractArgs(t,n,JSON.stringify(a)),r=["call_js_contract",i,o,c,null,!0]):(d=void 0===l?p.stringifyJsonOrBytes:l,r=[n,a,o,c,d,!1]),e.abrupt("return",this.signAndSendTransaction({receiverId:b?this.connection.jsvmAccountId:t,actions:[p.functionCall.apply(void 0,r)],walletMeta:u,walletCallbackUrl:f}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"addKey",value:function(e,t,n,r){return d(this,void 0,void 0,s().mark((function a(){var i;return s().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return n||(n=[]),Array.isArray(n)||(n=[n]),i=t?(0,p.functionCallAccessKey)(t,n,r):(0,p.fullAccessKey)(),a.abrupt("return",this.signAndSendTransaction({receiverId:this.accountId,actions:[(0,p.addKey)(m.PublicKey.from(e),i)]}));case 4:case"end":return a.stop()}}),a,this)})))}},{key:"deleteKey",value:function(e){return d(this,void 0,void 0,s().mark((function t(){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.signAndSendTransaction({receiverId:this.accountId,actions:[(0,p.deleteKey)(m.PublicKey.from(e))]}));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"stake",value:function(e,t){return d(this,void 0,void 0,s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.signAndSendTransaction({receiverId:this.accountId,actions:[(0,p.stake)(t,m.PublicKey.from(e))]}));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"validateArgs",value:function(e){if((void 0===e.byteLength||e.byteLength!==e.length)&&(Array.isArray(e)||"object"!=typeof e))throw new v.PositionalArgsError}},{key:"viewFunction",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.parse,i=void 0===a?x:a,o=r.stringify,c=void 0===o?_:o,u=r.jsContract,f=void 0!==u&&u,l=r.blockQuery,p=void 0===l?{finality:"optimistic"}:l;return d(this,void 0,void 0,s().mark((function r(){return s().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return(0,b.default)("Account.viewFunction(contractId, methodName, args, options)")("use `Account.viewFunction(ViewFunctionCallOptions)` instead"),r.abrupt("return",this.viewFunctionV2({contractId:e,methodName:t,args:n,parse:i,stringify:c,jsContract:f,blockQuery:p}));case 3:case"end":return r.stop()}}),r,this)})))}},{key:"viewFunctionV2",value:function(e){var t=e.contractId,n=e.methodName,a=e.args,i=e.parse,o=void 0===i?x:i,c=e.stringify,u=void 0===c?_:c,f=e.jsContract,l=void 0!==f&&f,b=e.blockQuery,p=void 0===b?{finality:"optimistic"}:b;return d(this,void 0,void 0,s().mark((function e(){var i,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.validateArgs(a),i=l?this.encodeJSContractArgs(t,n,Object.keys(a).length>0?JSON.stringify(a):""):u(a),e.next=4,this.connection.provider.query(Object.assign(Object.assign({request_type:"call_function"},p),{account_id:l?this.connection.jsvmAccountId:t,method_name:l?"view_js_contract":n,args_base64:i.toString("base64")}));case 4:return(c=e.sent).logs&&this.printLogs(t,c.logs),e.abrupt("return",c.result&&c.result.length>0&&o(r.from(c.result)));case 7:case"end":return e.stop()}}),e,this)})))}},{key:"viewState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{finality:"optimistic"};return d(this,void 0,void 0,s().mark((function n(){var a,i;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.connection.provider.query(Object.assign(Object.assign({request_type:"view_state"},t),{account_id:this.accountId,prefix_base64:r.from(e).toString("base64")}));case 2:return a=n.sent,i=a.values,n.abrupt("return",i.map((function(e){var t=e.key,n=e.value;return{key:r.from(t,"base64"),value:r.from(n,"base64")}})));case 5:case"end":return n.stop()}}),n,this)})))}},{key:"getAccessKeys",value:function(){var e;return d(this,void 0,void 0,s().mark((function t(){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.connection.provider.query({request_type:"view_access_key_list",account_id:this.accountId,finality:"optimistic"});case 2:return n=t.sent,t.abrupt("return",null===(e=null==n?void 0:n.keys)||void 0===e?void 0:e.map((function(e){return Object.assign(Object.assign({},e),{access_key:Object.assign(Object.assign({},e.access_key),{nonce:new l.default(e.access_key.nonce)})})})));case 4:case"end":return t.stop()}}),t,this)})))}},{key:"getAccountDetails",value:function(){return d(this,void 0,void 0,s().mark((function e(){var t,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessKeys();case 2:return t=e.sent,n=t.filter((function(e){return"FullAccess"!==e.access_key.permission})).map((function(e){var t=e.access_key.permission;return{contractId:t.FunctionCall.receiver_id,amount:t.FunctionCall.allowance,publicKey:e.public_key}})),e.abrupt("return",{authorizedApps:n});case 5:case"end":return e.stop()}}),e,this)})))}},{key:"getAccountBalance",value:function(){return d(this,void 0,void 0,s().mark((function e(){var t,n,r,a,i,o,c;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.connection.provider.experimental_protocolConfig({finality:"final"});case 2:return t=e.sent,e.next=5,this.state();case 5:return n=e.sent,r=new l.default(t.runtime_config.storage_amount_per_byte),a=new l.default(n.storage_usage).mul(r),i=new l.default(n.locked),o=new l.default(n.amount).add(i),c=o.sub(l.default.max(i,a)),e.abrupt("return",{total:o.toString(),stateStaked:a.toString(),staked:i.toString(),available:c.toString()});case 12:case"end":return e.stop()}}),e,this)})))}},{key:"getActiveDelegatedStakeBalance",value:function(){return d(this,void 0,void 0,s().mark((function e(){var t,n,r,i,o,c,u,d,f,b,p,h,y=this;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.connection.provider.block({finality:"final"});case 2:return t=e.sent,n=t.header.hash,r=t.header.epoch_id,e.next=7,this.connection.provider.validators(r);case 7:return i=e.sent,o=i.current_validators,c=i.next_validators,u=i.current_proposals,d=new Set,[].concat(a(o),a(c),a(u)).forEach((function(e){return d.add(e.account_id)})),f=a(d),b=f.map((function(e){return y.viewFunction({contractId:e,methodName:"get_account_total_balance",args:{account_id:y.accountId},blockQuery:{blockId:n}})})),e.next=17,Promise.allSettled(b);case 17:if(!(p=e.sent).some((function(e){return"rejected"===e.status&&"TimeoutError"===e.reason.type}))){e.next=21;break}throw new Error("Failed to get delegated stake balance");case 21:return h=p.reduce((function(e,t,n){var r=f[n];if("fulfilled"===t.status){var i=new l.default(t.value);if(!i.isZero())return Object.assign(Object.assign({},e),{stakedValidators:[].concat(a(e.stakedValidators),[{validatorId:r,amount:i.toString()}]),total:e.total.add(i)})}return"rejected"===t.status?Object.assign(Object.assign({},e),{failedValidators:[].concat(a(e.failedValidators),[{validatorId:r,error:t.reason}])}):e}),{stakedValidators:[],failedValidators:[],total:new l.default(0)}),e.abrupt("return",Object.assign(Object.assign({},h),{total:h.total.toString()}));case 23:case"end":return e.stop()}}),e,this)})))}}]),e}();t.Account=k},48419:function(e,t,n){"use strict";var r=n(80294).default,a=n(67766).default,i=n(65040).default,o=n(68387).default,s=n(34671).default,c=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.UrlAccountCreator=t.LocalAccountCreator=t.AccountCreator=void 0;var u=n(81599),d=o((function e(){s(this,e)}));t.AccountCreator=d;var f=function(e){a(n,e);var t=i(n);function n(e,r){var a;return s(this,n),(a=t.call(this)).masterAccount=e,a.initialBalance=r,a}return o(n,[{key:"createAccount",value:function(e,t){return c(this,void 0,void 0,r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.masterAccount.createAccount(e,t,this.initialBalance);case 2:case"end":return n.stop()}}),n,this)})))}}]),n}(d);t.LocalAccountCreator=f;var l=function(e){a(n,e);var t=i(n);function n(e,r){var a;return s(this,n),(a=t.call(this)).connection=e,a.helperUrl=r,a}return o(n,[{key:"createAccount",value:function(e,t){return c(this,void 0,void 0,r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,u.fetchJson)("".concat(this.helperUrl,"/account"),JSON.stringify({newAccountId:e,newAccountPublicKey:t.toString()}));case 2:case"end":return n.stop()}}),n,this)})))}}]),n}(d);t.UrlAccountCreator=l},66606:function(e,t,n){"use strict";var r=n(5886).Buffer,a=n(69453).default,i=n(33482).default,o=n(80294).default,s=n(34671).default,c=n(68387).default,u=n(58738).default,d=n(88941).default,f=n(67766).default,l=n(65040).default,b=n(36595).default,p=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},h=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Account2FA=t.AccountMultisig=t.MultisigStateStatus=t.MultisigDeleteRequestRejectionError=t.MULTISIG_CONFIRM_METHODS=t.MULTISIG_CHANGE_METHODS=t.MULTISIG_DEPOSIT=t.MULTISIG_GAS=t.MULTISIG_ALLOWANCE=t.MULTISIG_STORAGE_KEY=void 0;var y,m,v,g=h(n(22097)),A=n(19081),w=n(54273),x=n(42058),_=n(8e4),k=n(22162),I=n(81599);t.MULTISIG_STORAGE_KEY="__multisigRequest",t.MULTISIG_ALLOWANCE=new g.default((0,w.parseNearAmount)("1")),t.MULTISIG_GAS=new g.default("100000000000000"),t.MULTISIG_DEPOSIT=new g.default("0"),t.MULTISIG_CHANGE_METHODS=["add_request","add_request_and_confirm","delete_request","confirm"],t.MULTISIG_CONFIRM_METHODS=["confirm"],function(e){e.CANNOT_DESERIALIZE_STATE="Cannot deserialize the contract state",e.MULTISIG_NOT_INITIALIZED="Smart contract panicked: Multisig contract should be initialized before usage",e.NO_SUCH_REQUEST="Smart contract panicked: panicked at 'No such request: either wrong number or already confirmed'",e.REQUEST_COOLDOWN_ERROR="Request cannot be deleted immediately after creation.",e.METHOD_NOT_FOUND="Contract method is not found"}(y=t.MultisigDeleteRequestRejectionError||(t.MultisigDeleteRequestRejectionError={})),function(e){e[e.INVALID_STATE=0]="INVALID_STATE",e[e.STATE_NOT_INITIALIZED=1]="STATE_NOT_INITIALIZED",e[e.VALID_STATE=2]="VALID_STATE",e[e.UNKNOWN_STATE=3]="UNKNOWN_STATE"}(m=t.MultisigStateStatus||(t.MultisigStateStatus={})),function(e){e[e.INVALID_CODE=0]="INVALID_CODE",e[e.VALID_CODE=1]="VALID_CODE",e[e.UNKNOWN_CODE=2]="UNKNOWN_CODE"}(v||(v={}));var S=b({},t.MULTISIG_STORAGE_KEY,null),E=function(e){f(a,e);var n=l(a);function a(e,t,r){var i;return s(this,a),(i=n.call(this,e,t)).storage=r.storage,i.onAddRequestResult=r.onAddRequestResult,i}return c(a,[{key:"signAndSendTransactionWithAccount",value:function(e,t){var n=this,r=Object.create(null,{signAndSendTransaction:{get:function(){return u(d(a.prototype),"signAndSendTransaction",n)}}});return p(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.signAndSendTransaction.call(this,{receiverId:e,actions:t}));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"signAndSendTransaction",value:function(e){var n=this,i=e.receiverId,s=e.actions,c=Object.create(null,{signAndSendTransaction:{get:function(){return u(d(a.prototype),"signAndSendTransaction",n)}}});return p(this,void 0,void 0,o().mark((function e(){var n,a,u,d;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.accountId,a=r.from(JSON.stringify({request:{receiver_id:i,actions:O(s,n,i)}})),e.prev=2,e.next=5,c.signAndSendTransaction.call(this,{receiverId:n,actions:[(0,_.functionCall)("add_request_and_confirm",a,t.MULTISIG_GAS,t.MULTISIG_DEPOSIT)]});case 5:u=e.sent,e.next=17;break;case 8:if(e.prev=8,e.t0=e.catch(2),!e.t0.toString().includes("Account has too many active requests. Confirm or delete some")){e.next=16;break}return e.next=13,this.deleteUnconfirmedRequests();case 13:return e.next=15,this.signAndSendTransaction({receiverId:i,actions:s});case 15:return e.abrupt("return",e.sent);case 16:throw e.t0;case 17:if(u.status){e.next=19;break}throw new Error("Request failed");case 19:if((d=Object.assign({},u.status)).SuccessValue&&"string"==typeof d.SuccessValue){e.next=22;break}throw new Error("Request failed");case 22:if(this.setRequest({accountId:n,actions:s,requestId:parseInt(r.from(d.SuccessValue,"base64").toString("ascii"),10)}),!this.onAddRequestResult){e.next=26;break}return e.next=26,this.onAddRequestResult(u);case 26:return this.deleteUnconfirmedRequests(),e.abrupt("return",u);case 28:case"end":return e.stop()}}),e,this,[[2,8]])})))}},{key:"checkMultisigCodeAndStateStatus",value:function(e){var n=this,r=Object.create(null,{signAndSendTransaction:{get:function(){return u(d(a.prototype),"signAndSendTransaction",n)}}});return p(this,void 0,void 0,o().mark((function n(){var a,i;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(a=4294967295,i=e?v.UNKNOWN_CODE:v.VALID_CODE,n.prev=2,!e){n.next=8;break}return n.next=6,r.signAndSendTransaction.call(this,{receiverId:this.accountId,actions:[(0,_.deployContract)(e),(0,_.functionCall)("delete_request",{request_id:a},t.MULTISIG_GAS,t.MULTISIG_DEPOSIT)]});case 6:n.next=10;break;case 8:return n.next=10,this.deleteRequest(a);case 10:return n.abrupt("return",{codeStatus:v.VALID_CODE,stateStatus:m.VALID_STATE});case 13:if(n.prev=13,n.t0=n.catch(2),!new RegExp(y.CANNOT_DESERIALIZE_STATE).test(n.t0&&n.t0.kind&&n.t0.kind.ExecutionError)){n.next=19;break}return n.abrupt("return",{codeStatus:i,stateStatus:m.INVALID_STATE});case 19:if(!new RegExp(y.MULTISIG_NOT_INITIALIZED).test(n.t0&&n.t0.kind&&n.t0.kind.ExecutionError)){n.next=23;break}return n.abrupt("return",{codeStatus:i,stateStatus:m.STATE_NOT_INITIALIZED});case 23:if(!new RegExp(y.NO_SUCH_REQUEST).test(n.t0&&n.t0.kind&&n.t0.kind.ExecutionError)){n.next=27;break}return n.abrupt("return",{codeStatus:i,stateStatus:m.VALID_STATE});case 27:if(!new RegExp(y.METHOD_NOT_FOUND).test(n.t0&&n.t0.message)){n.next=29;break}return n.abrupt("return",{codeStatus:v.INVALID_CODE,stateStatus:m.UNKNOWN_STATE});case 29:throw n.t0;case 30:case"end":return n.stop()}}),n,this,[[2,13]])})))}},{key:"deleteRequest",value:function(e){return u(d(a.prototype),"signAndSendTransaction",this).call(this,{receiverId:this.accountId,actions:[(0,_.functionCall)("delete_request",{request_id:e},t.MULTISIG_GAS,t.MULTISIG_DEPOSIT)]})}},{key:"deleteAllRequests",value:function(){return p(this,void 0,void 0,o().mark((function e(){var t,n=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRequestIds();case 2:if(!(t=e.sent).length){e.next=6;break}return e.next=6,Promise.all(t.map((function(e){return n.deleteRequest(e)})));case 6:case"end":return e.stop()}}),e,this)})))}},{key:"deleteUnconfirmedRequests",value:function(){var e=this,n=Object.create(null,{signAndSendTransaction:{get:function(){return u(d(a.prototype),"signAndSendTransaction",e)}}});return p(this,void 0,void 0,o().mark((function e(){var r,a,s,c,u,d;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRequestIds();case 2:r=e.sent,a=this.getRequest(),s=a.requestId,c=i(r),e.prev=5,c.s();case 7:if((u=c.n()).done){e.next=21;break}if((d=u.value)!=s){e.next=11;break}return e.abrupt("continue",19);case 11:return e.prev=11,e.next=14,n.signAndSendTransaction.call(this,{receiverId:this.accountId,actions:[(0,_.functionCall)("delete_request",{request_id:d},t.MULTISIG_GAS,t.MULTISIG_DEPOSIT)]});case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(11),console.warn("Attempt to delete an earlier request before 15 minutes failed. Will try again.");case 19:e.next=7;break;case 21:e.next=26;break;case 23:e.prev=23,e.t1=e.catch(5),c.e(e.t1);case 26:return e.prev=26,c.f(),e.finish(26);case 29:case"end":return e.stop()}}),e,this,[[5,23,26,29],[11,16]])})))}},{key:"getRequestIds",value:function(){return p(this,void 0,void 0,o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.viewFunction(this.accountId,"list_request_ids"));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"getRequest",value:function(){return this.storage?JSON.parse(this.storage.getItem(t.MULTISIG_STORAGE_KEY)||"{}"):S[t.MULTISIG_STORAGE_KEY]}},{key:"setRequest",value:function(e){if(this.storage)return this.storage.setItem(t.MULTISIG_STORAGE_KEY,JSON.stringify(e));S[t.MULTISIG_STORAGE_KEY]=e}}]),a}(A.Account);t.AccountMultisig=E;var C=function(e){f(i,e);var n=l(i);function i(e,t,r){var a;return s(this,i),(a=n.call(this,e,t,r)).helperUrl="https://helper.testnet.near.org",a.helperUrl=r.helperUrl||a.helperUrl,a.storage=r.storage,a.sendCode=r.sendCode||a.sendCodeDefault,a.getCode=r.getCode||a.getCodeDefault,a.verifyCode=r.verifyCode||a.verifyCodeDefault,a.onConfirmResult=r.onConfirmResult,a}return c(i,[{key:"signAndSendTransaction",value:function(e){var t=this,n=e.receiverId,r=e.actions,a=Object.create(null,{signAndSendTransaction:{get:function(){return u(d(i.prototype),"signAndSendTransaction",t)}}});return p(this,void 0,void 0,o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.signAndSendTransaction.call(this,{receiverId:n,actions:r});case 2:return e.next=4,this.sendCode();case 4:return e.next=6,this.promptAndVerify();case 6:if(t=e.sent,!this.onConfirmResult){e.next=10;break}return e.next=10,this.onConfirmResult(t);case 10:return e.abrupt("return",t);case 11:case"end":return e.stop()}}),e,this)})))}},{key:"deployMultisig",value:function(e){var n=this,s=Object.create(null,{signAndSendTransactionWithAccount:{get:function(){return u(d(i.prototype),"signAndSendTransactionWithAccount",n)}}});return p(this,void 0,void 0,o().mark((function n(){var i,c,u,d,f,l,b,p,h;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=this.accountId,n.next=3,this.getRecoveryMethods();case 3:return c=n.sent.data.filter((function(e){var t=e.kind,n=e.publicKey;return("phrase"===t||"ledger"===t)&&null!==n})).map((function(e){return e.publicKey})),n.next=6,this.getAccessKeys();case 6:return u=n.sent.filter((function(e){var t=e.public_key;return"FullAccess"===e.access_key.permission&&!c.includes(t)})).map((function(e){return e.public_key})).map(T),n.t0=T,n.next=10,this.postSignedJson("/2fa/getAccessKey",{accountId:i});case 10:return n.t1=n.sent.publicKey,d=(0,n.t0)(n.t1),f=r.from(JSON.stringify({num_confirmations:2})),l=[].concat(a(u.map((function(e){return(0,_.deleteKey)(e)}))),a(u.map((function(e){return(0,_.addKey)(e,(0,_.functionCallAccessKey)(i,t.MULTISIG_CHANGE_METHODS,null))}))),[(0,_.addKey)(d,(0,_.functionCallAccessKey)(i,t.MULTISIG_CONFIRM_METHODS,null)),(0,_.deployContract)(e)]),b=l.concat((0,_.functionCall)("new",f,t.MULTISIG_GAS,t.MULTISIG_DEPOSIT)),console.log("deploying multisig contract for",i),n.next=18,this.checkMultisigCodeAndStateStatus(e);case 18:p=n.sent,h=p.stateStatus,n.t2=h,n.next=n.t2===m.STATE_NOT_INITIALIZED?23:n.t2===m.VALID_STATE?26:n.t2===m.INVALID_STATE?29:30;break;case 23:return n.next=25,s.signAndSendTransactionWithAccount.call(this,i,b);case 25:case 28:return n.abrupt("return",n.sent);case 26:return n.next=28,s.signAndSendTransactionWithAccount.call(this,i,l);case 29:throw new k.TypedError("Can not deploy a contract to account ".concat(this.accountId," on network ").concat(this.connection.networkId,", the account has existing state."),"ContractHasExistingState");case 30:throw new k.TypedError("Can not deploy a contract to account ".concat(this.accountId," on network ").concat(this.connection.networkId,", the account state could not be verified."),"ContractStateUnknown");case 31:case"end":return n.stop()}}),n,this)})))}},{key:"disableWithFAK",value:function(e){var t=e.contractBytes,n=e.cleanupContractBytes;return p(this,void 0,void 0,o().mark((function e(){var r,i,s,c;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=[],!n){e.next=7;break}return e.next=4,this.deleteAllRequests().catch((function(e){return e}));case 4:return e.next=6,this.get2faDisableCleanupActions(n);case 6:r=e.sent;case 7:return e.next=9,this.get2faDisableKeyConversionActions();case 9:return i=e.sent,s=[].concat(a(r),a(i),[(0,_.deployContract)(t)]),e.next=13,this.findAccessKey(this.accountId,s);case 13:if(!(c=e.sent)||!c.accessKey||"FullAccess"===c.accessKey.permission){e.next=16;break}throw new k.TypedError("No full access key found in keystore. Unable to bypass multisig","NoFAKFound");case 16:return e.abrupt("return",this.signAndSendTransactionWithAccount(this.accountId,s));case 17:case"end":return e.stop()}}),e,this)})))}},{key:"get2faDisableCleanupActions",value:function(e){return p(this,void 0,void 0,o().mark((function n(){var r,a,i=this;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.viewState("").catch((function(e){var t=e.cause&&e.cause.name;if("NO_CONTRACT_CODE"==t)return[];throw"TOO_LARGE_CONTRACT_STATE"==t?new k.TypedError("Can not deploy a contract to account ".concat(i.accountId," on network ").concat(i.connection.networkId,", the account has existing state."),"ContractHasExistingState"):e}));case 2:return r=n.sent,a=r.map((function(e){return e.key.toString("base64")})),n.abrupt("return",r.length?[(0,_.deployContract)(e),(0,_.functionCall)("clean",{keys:a},t.MULTISIG_GAS,new g.default("0"))]:[]);case 5:case"end":return n.stop()}}),n,this)})))}},{key:"get2faDisableKeyConversionActions",value:function(){return p(this,void 0,void 0,o().mark((function e(){var t,n,r,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.accountId,e.next=3,this.getAccessKeys();case 3:return n=e.sent,r=n.filter((function(e){return"FullAccess"!==e.access_key.permission})).filter((function(e){var n=e.access_key.permission.FunctionCall;return n.receiver_id===t&&4===n.method_names.length&&n.method_names.includes("add_request_and_confirm")})),e.t0=x.PublicKey,e.next=8,this.postSignedJson("/2fa/getAccessKey",{accountId:t});case 8:return e.t1=e.sent.publicKey,i=e.t0.from.call(e.t0,e.t1),e.abrupt("return",[(0,_.deleteKey)(i)].concat(a(r.map((function(e){var t=e.public_key;return(0,_.deleteKey)(x.PublicKey.from(t))}))),a(r.map((function(e){var t=e.public_key;return(0,_.addKey)(x.PublicKey.from(t),(0,_.fullAccessKey)())})))));case 11:case"end":return e.stop()}}),e,this)})))}},{key:"disable",value:function(e,t){return p(this,void 0,void 0,o().mark((function n(){var r,i,s,c,u;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.checkMultisigCodeAndStateStatus();case 2:if(r=n.sent,(i=r.stateStatus)===m.VALID_STATE||i===m.STATE_NOT_INITIALIZED){n.next=6;break}throw new k.TypedError("Can not deploy a contract to account ".concat(this.accountId," on network ").concat(this.connection.networkId,", the account state could not be verified."),"ContractStateUnknown");case 6:return n.next=8,this.deleteAllRequests().catch((function(e){return s=e}));case 8:return n.next=10,this.get2faDisableCleanupActions(t).catch((function(e){if("ContractHasExistingState"===e.type)throw s||e;throw e}));case 10:return c=n.sent,n.t0=[],n.t1=a(c),n.t2=a,n.next=16,this.get2faDisableKeyConversionActions();case 16:return n.t3=n.sent,n.t4=(0,n.t2)(n.t3),n.t5=[(0,_.deployContract)(e)],u=n.t0.concat.call(n.t0,n.t1,n.t4,n.t5),console.log("disabling 2fa for",this.accountId),n.next=23,this.signAndSendTransaction({receiverId:this.accountId,actions:u});case 23:return n.abrupt("return",n.sent);case 24:case"end":return n.stop()}}),n,this)})))}},{key:"sendCodeDefault",value:function(){return p(this,void 0,void 0,o().mark((function e(){var t,n,r,a;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.accountId,n=this.getRequest(),r=n.requestId,e.next=4,this.get2faMethod();case 4:return a=e.sent,e.next=7,this.postSignedJson("/2fa/send",{accountId:t,method:a,requestId:r});case 7:return e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)})))}},{key:"getCodeDefault",value:function(){return p(this,void 0,void 0,o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error('There is no getCode callback provided. Please provide your own in AccountMultisig constructor options. It has a parameter method where method.kind is "email" or "phone".');case 1:case"end":return e.stop()}}),e)})))}},{key:"promptAndVerify",value:function(){return p(this,void 0,void 0,o().mark((function e(){var t,n,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.get2faMethod();case 2:return t=e.sent,e.next=5,this.getCode(t);case 5:return n=e.sent,e.prev=6,e.next=9,this.verifyCode(n);case 9:return r=e.sent,e.abrupt("return",r);case 13:if(e.prev=13,e.t0=e.catch(6),console.warn("Error validating security code:",e.t0),!e.t0.toString().includes("invalid 2fa code provided")&&!e.t0.toString().includes("2fa code not valid")){e.next=20;break}return e.next=19,this.promptAndVerify();case 19:return e.abrupt("return",e.sent);case 20:throw e.t0;case 21:case"end":return e.stop()}}),e,this,[[6,13]])})))}},{key:"verifyCodeDefault",value:function(e){return p(this,void 0,void 0,o().mark((function t(){var n,r,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.accountId,r=this.getRequest()){t.next=4;break}throw new Error("no request pending");case 4:return a=r.requestId,t.next=7,this.postSignedJson("/2fa/verify",{accountId:n,securityCode:e,requestId:a});case 7:return t.abrupt("return",t.sent);case 8:case"end":return t.stop()}}),t,this)})))}},{key:"getRecoveryMethods",value:function(){return p(this,void 0,void 0,o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.accountId,e.t0=t,e.next=4,this.postSignedJson("/account/recoveryMethods",{accountId:t});case 4:return e.t1=e.sent,e.abrupt("return",{accountId:e.t0,data:e.t1});case 6:case"end":return e.stop()}}),e,this)})))}},{key:"get2faMethod",value:function(){return p(this,void 0,void 0,o().mark((function e(){var t,n,r,a,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRecoveryMethods();case 2:if(t=e.sent,(n=t.data)&&n.length&&(n=n.find((function(e){return 0===e.kind.indexOf("2fa-")}))),n){e.next=7;break}return e.abrupt("return",null);case 7:return a=(r=n).kind,i=r.detail,e.abrupt("return",{kind:a,detail:i});case 9:case"end":return e.stop()}}),e,this)})))}},{key:"signatureFor",value:function(){return p(this,void 0,void 0,o().mark((function e(){var t,n,a,i,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.accountId,e.next=3,this.connection.provider.block({finality:"final"});case 3:return n=e.sent,a=n.header.height.toString(),e.next=7,this.connection.signer.signMessage(r.from(a),t,this.connection.networkId);case 7:return i=e.sent,s=r.from(i.signature).toString("base64"),e.abrupt("return",{blockNumber:a,blockNumberSignature:s});case 10:case"end":return e.stop()}}),e,this)})))}},{key:"postSignedJson",value:function(e,t){return p(this,void 0,void 0,o().mark((function n(){return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=I.fetchJson,n.t1=this.helperUrl+e,n.t2=JSON,n.t3=Object,n.t4=Object.assign({},t),n.next=7,this.signatureFor();case 7:return n.t5=n.sent,n.t6=n.t3.assign.call(n.t3,n.t4,n.t5),n.t7=n.t2.stringify.call(n.t2,n.t6),n.next=12,(0,n.t0)(n.t1,n.t7);case 12:return n.abrupt("return",n.sent);case 13:case"end":return n.stop()}}),n,this)})))}}]),i}(E);t.Account2FA=C;var T=function(e){return x.PublicKey.from(e)},O=function(e,n,a){return e.map((function(e){var i,o=e.enum,s=e[o],c=s.gas,u=s.publicKey,d=s.methodName,f=s.args,l=s.deposit,b=s.accessKey,p=s.code,h={type:o[0].toUpperCase()+o.substr(1),gas:c&&c.toString()||void 0,public_key:u&&(i=u,i.toString().replace("ed25519:",""))||void 0,method_name:d,args:f&&r.from(f).toString("base64")||void 0,code:p&&r.from(p).toString("base64")||void 0,amount:l&&l.toString()||void 0,deposit:l&&l.toString()||"0",permission:void 0};if(b&&(a===n&&"fullAccess"!==b.permission.enum&&(h.permission={receiver_id:n,allowance:t.MULTISIG_ALLOWANCE.toString(),method_names:t.MULTISIG_CHANGE_METHODS}),"functionCall"===b.permission.enum)){var y=b.permission.functionCall,m=y.receiverId,v=y.methodNames,g=y.allowance;h.permission={receiver_id:m,allowance:g&&g.toString()||void 0,method_names:v}}return h}))}},23077:function(e,t,n){"use strict";var r=n(80294).default,a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var i=n(42197);t.connect=function(e){return a(this,void 0,void 0,r().mark((function t(){return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new i.Near(e));case 1:case"end":return t.stop()}}),t)})))}},47691:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t},o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.keyStores=void 0,t.keyStores=i(n(87952)),o(n(12923),t),o(n(23077),t),n(27330)},12923:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.WalletConnection=t.ConnectedWalletAccount=t.Near=t.KeyPair=t.Signer=t.InMemorySigner=t.Contract=t.Connection=t.Account=t.multisig=t.validators=t.transactions=t.utils=t.providers=t.accountCreator=void 0;var o=i(n(22162));t.providers=o;var s=i(n(56797));t.utils=s;var c=i(n(8e4));t.transactions=c;var u=i(n(49237));t.validators=u;var d=n(19081);Object.defineProperty(t,"Account",{enumerable:!0,get:function(){return d.Account}});var f=i(n(66606));t.multisig=f;var l=i(n(48419));t.accountCreator=l;var b=n(26218);Object.defineProperty(t,"Connection",{enumerable:!0,get:function(){return b.Connection}});var p=n(64091);Object.defineProperty(t,"Signer",{enumerable:!0,get:function(){return p.Signer}}),Object.defineProperty(t,"InMemorySigner",{enumerable:!0,get:function(){return p.InMemorySigner}});var h=n(30502);Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return h.Contract}});var y=n(42058);Object.defineProperty(t,"KeyPair",{enumerable:!0,get:function(){return y.KeyPair}});var m=n(42197);Object.defineProperty(t,"Near",{enumerable:!0,get:function(){return m.Near}});var v=n(57290);Object.defineProperty(t,"ConnectedWalletAccount",{enumerable:!0,get:function(){return v.ConnectedWalletAccount}}),Object.defineProperty(t,"WalletConnection",{enumerable:!0,get:function(){return v.WalletConnection}})},26218:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Connection=void 0;var i=n(22162),o=n(64091),s=function(){function e(t,n,a,i){r(this,e),this.networkId=t,this.provider=n,this.signer=a,this.jsvmAccountId=i}return a(e,null,[{key:"fromConfig",value:function(t){var n=function(e){switch(e.type){case void 0:return e;case"JsonRpcProvider":return new i.JsonRpcProvider(Object.assign({},e.args));default:throw new Error("Unknown provider type ".concat(e.type))}}(t.provider),r=function(e){switch(e.type){case void 0:return e;case"InMemorySigner":return new o.InMemorySigner(e.keyStore);default:throw new Error("Unknown signer type ".concat(e.type))}}(t.signer);return new e(t.networkId,n,r,t.jsvmAccountId)}}]),e}();t.Connection=s},38458:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_FUNCTION_CALL_GAS=void 0;var a=r(n(22097));t.DEFAULT_FUNCTION_CALL_GAS=new a.default("30000000000000")},30502:function(e,t,n){"use strict";var r=n(80294).default,a=n(34671).default,i=n(68387).default,o=n(36595).default,s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Contract=void 0;var u=c(n(22097)),d=c(n(71016)),f=n(22162),l=n(80011);function b(e,t){return o({},e,(function(){return t.apply(void 0,arguments)}))[e]}var p=function(e){return e&&void 0!==e.byteLength&&e.byteLength===e.length},h=function(e){return"[object Object]"===Object.prototype.toString.call(e)},y=function(){function e(t,n,i){var o=this;a(this,e),this.account=t,this.contractId=n;var c=i.viewMethods,u=void 0===c?[]:c,f=i.changeMethods,y=void 0===f?[]:f;u.forEach((function(e){Object.defineProperty(o,e,{writable:!1,enumerable:!0,value:b(e,(function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length,i=new Array(a>2?a-2:0),c=2;c3||!h(n[0])&&!p(n[0]))){t.next=2;break}throw new l.PositionalArgsError;case 2:if(!(n.length>1)&&n[0]&&n[0].args){t.next=6;break}return(0,d.default)("contract.methodName(args, gas, amount)")("use `contract.methodName({ args, gas?, amount?, callbackUrl?, meta? })` instead"),t.abrupt("return",this._changeMethod({methodName:e,args:n[0],gas:n[1],amount:n[2]}));case 6:return t.abrupt("return",this._changeMethod(Object.assign({methodName:e},n[0])));case 7:case"end":return t.stop()}}),t,this)})))}))})}))}return i(e,[{key:"_changeMethod",value:function(e){var t=e.args,n=e.methodName,a=e.gas,i=e.amount,o=e.meta,c=e.callbackUrl;return s(this,void 0,void 0,r().mark((function e(){var s;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return m({gas:a,amount:i}),e.next=3,this.account.functionCall({contractId:this.contractId,methodName:n,args:t,gas:a,attachedDeposit:i,walletMeta:o,walletCallbackUrl:c});case 3:return s=e.sent,e.abrupt("return",(0,f.getTransactionLastResult)(s));case 5:case"end":return e.stop()}}),e,this)})))}}]),e}();function m(e){for(var t=0,n=Object.keys(e);t0&&void 0!==arguments[0]?arguments[0]:window.localStorage,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"near-api-js:keystore:";return i(this,n),(e=t.call(this)).localStorage=r,e.prefix=a,e}return o(n,[{key:"setKey",value:function(e,t,n){return u(this,void 0,void 0,a().mark((function r(){return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:this.localStorage.setItem(this.storageKeyForSecretKey(e,t),n.toString());case 1:case"end":return r.stop()}}),r,this)})))}},{key:"getKey",value:function(e,t){return u(this,void 0,void 0,a().mark((function n(){var r;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=this.localStorage.getItem(this.storageKeyForSecretKey(e,t))){n.next=3;break}return n.abrupt("return",null);case 3:return n.abrupt("return",f.KeyPair.fromString(r));case 4:case"end":return n.stop()}}),n,this)})))}},{key:"removeKey",value:function(e,t){return u(this,void 0,void 0,a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:this.localStorage.removeItem(this.storageKeyForSecretKey(e,t));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"clear",value:function(){return u(this,void 0,void 0,a().mark((function e(){var t,n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r(this.storageKeys());try{for(t.s();!(n=t.n()).done;)(i=n.value).startsWith(this.prefix)&&this.localStorage.removeItem(i)}catch(e){t.e(e)}finally{t.f()}case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getNetworks",value:function(){return u(this,void 0,void 0,a().mark((function e(){var t,n,i,o,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=new Set,n=r(this.storageKeys());try{for(n.s();!(i=n.n()).done;)(o=i.value).startsWith(this.prefix)&&(s=o.substring(this.prefix.length).split(":"),t.add(s[1]))}catch(e){n.e(e)}finally{n.f()}return e.abrupt("return",Array.from(t.values()));case 4:case"end":return e.stop()}}),e,this)})))}},{key:"getAccounts",value:function(e){return u(this,void 0,void 0,a().mark((function t(){var n,i,o,s,c;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=new Array,i=r(this.storageKeys());try{for(i.s();!(o=i.n()).done;)(s=o.value).startsWith(this.prefix)&&(c=s.substring(this.prefix.length).split(":"))[1]===e&&n.push(c[0])}catch(e){i.e(e)}finally{i.f()}return t.abrupt("return",n);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"storageKeyForSecretKey",value:function(e,t){return"".concat(this.prefix).concat(t,":").concat(e)}},{key:"storageKeys",value:a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t1&&void 0!==arguments[1]?arguments[1]:{writeKeyStoreIndex:0};return i(this,n),(r=t.call(this)).options=a,r.keyStores=e,r}return o(n,[{key:"setKey",value:function(e,t,n){return u(this,void 0,void 0,a().mark((function r(){return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.keyStores[this.options.writeKeyStoreIndex].setKey(e,t,n);case 2:case"end":return r.stop()}}),r,this)})))}},{key:"getKey",value:function(e,t){return u(this,void 0,void 0,a().mark((function n(){var i,o,s,c;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i=r(this.keyStores),n.prev=1,i.s();case 3:if((o=i.n()).done){n.next=12;break}return s=o.value,n.next=7,s.getKey(e,t);case 7:if(!(c=n.sent)){n.next=10;break}return n.abrupt("return",c);case 10:n.next=3;break;case 12:n.next=17;break;case 14:n.prev=14,n.t0=n.catch(1),i.e(n.t0);case 17:return n.prev=17,i.f(),n.finish(17);case 20:return n.abrupt("return",null);case 21:case"end":return n.stop()}}),n,this,[[1,14,17,20]])})))}},{key:"removeKey",value:function(e,t){return u(this,void 0,void 0,a().mark((function n(){var i,o,s;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:i=r(this.keyStores),n.prev=1,i.s();case 3:if((o=i.n()).done){n.next=9;break}return s=o.value,n.next=7,s.removeKey(e,t);case 7:n.next=3;break;case 9:n.next=14;break;case 11:n.prev=11,n.t0=n.catch(1),i.e(n.t0);case 14:return n.prev=14,i.f(),n.finish(14);case 17:case"end":return n.stop()}}),n,this,[[1,11,14,17]])})))}},{key:"clear",value:function(){return u(this,void 0,void 0,a().mark((function e(){var t,n,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r(this.keyStores),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.clear();case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])})))}},{key:"getNetworks",value:function(){return u(this,void 0,void 0,a().mark((function e(){var t,n,i,o,s,c,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=new Set,n=r(this.keyStores),e.prev=2,n.s();case 4:if((i=n.n()).done){e.next=14;break}return o=i.value,e.t0=r,e.next=9,o.getNetworks();case 9:e.t1=e.sent,s=(0,e.t0)(e.t1);try{for(s.s();!(c=s.n()).done;)u=c.value,t.add(u)}catch(e){s.e(e)}finally{s.f()}case 12:e.next=4;break;case 14:e.next=19;break;case 16:e.prev=16,e.t2=e.catch(2),n.e(e.t2);case 19:return e.prev=19,n.f(),e.finish(19);case 22:return e.abrupt("return",Array.from(t));case 23:case"end":return e.stop()}}),e,this,[[2,16,19,22]])})))}},{key:"getAccounts",value:function(e){return u(this,void 0,void 0,a().mark((function t(){var n,i,o,s,c,u,d;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=new Set,i=r(this.keyStores),t.prev=2,i.s();case 4:if((o=i.n()).done){t.next=14;break}return s=o.value,t.t0=r,t.next=9,s.getAccounts(e);case 9:t.t1=t.sent,c=(0,t.t0)(t.t1);try{for(c.s();!(u=c.n()).done;)d=u.value,n.add(d)}catch(e){c.e(e)}finally{c.f()}case 12:t.next=4;break;case 14:t.next=19;break;case 16:t.prev=16,t.t2=t.catch(2),i.e(t.t2);case 19:return t.prev=19,i.f(),t.finish(19);case 22:return t.abrupt("return",Array.from(n));case 23:case"end":return t.stop()}}),t,this,[[2,16,19,22]])})))}},{key:"toString",value:function(){return"MergeKeyStore(".concat(this.keyStores.join(", "),")")}}]),n}(n(6766).KeyStore);t.MergeKeyStore=d},42197:function(e,t,n){"use strict";var r=n(80294).default,a=n(34671).default,i=n(68387).default,o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Near=void 0;var c=s(n(22097)),u=n(19081),d=n(26218),f=n(48419),l=function(){function e(t){if(a(this,e),this.config=t,this.connection=d.Connection.fromConfig({networkId:t.networkId,provider:{type:"JsonRpcProvider",args:{url:t.nodeUrl,headers:t.headers}},signer:t.signer||{type:"InMemorySigner",keyStore:t.keyStore},jsvmAccountId:t.jsvmAccountId||"jsvm.".concat(t.networkId)}),t.masterAccount){var n=t.initialBalance?new c.default(t.initialBalance):new c.default("500000000000000000000000000");this.accountCreator=new f.LocalAccountCreator(new u.Account(this.connection,t.masterAccount),n)}else t.helperUrl?this.accountCreator=new f.UrlAccountCreator(this.connection,t.helperUrl):this.accountCreator=null}return i(e,[{key:"account",value:function(e){return o(this,void 0,void 0,r().mark((function t(){var n;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new u.Account(this.connection,e),t.abrupt("return",n);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"createAccount",value:function(e,t){return o(this,void 0,void 0,r().mark((function n(){return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.accountCreator){n.next=2;break}throw new Error("Must specify account creator, either via masterAccount or helperUrl configuration settings.");case 2:return n.next=4,this.accountCreator.createAccount(e,t);case 4:return n.abrupt("return",new u.Account(this.connection,e));case 5:case"end":return n.stop()}}),n,this)})))}}]),e}();t.Near=l},22162:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorContext=t.TypedError=t.getTransactionLastResult=t.FinalExecutionStatusBasic=t.JsonRpcProvider=t.Provider=void 0;var r=n(6625);Object.defineProperty(t,"Provider",{enumerable:!0,get:function(){return r.Provider}}),Object.defineProperty(t,"getTransactionLastResult",{enumerable:!0,get:function(){return r.getTransactionLastResult}}),Object.defineProperty(t,"FinalExecutionStatusBasic",{enumerable:!0,get:function(){return r.FinalExecutionStatusBasic}});var a=n(36172);Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return a.JsonRpcProvider}}),Object.defineProperty(t,"TypedError",{enumerable:!0,get:function(){return a.TypedError}}),Object.defineProperty(t,"ErrorContext",{enumerable:!0,get:function(){return a.ErrorContext}})},36172:function(e,t,n){"use strict";var r=n(5886).Buffer,a=n(80294).default,i=n(34671).default,o=n(68387).default,s=n(67766).default,c=n(65040).default,u=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},d=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a2&&void 0!==arguments[2]?arguments[2]:"";return u(this,void 0,void 0,a().mark((function r(){var i,o;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=t.finality,o=t.blockId,r.abrupt("return",this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"data_changes",account_ids:e,key_prefix_base64:n,block_id:o,finality:i}));case 3:case"end":return r.stop()}}),r,this)})))}},{key:"contractCodeChanges",value:function(e,t){return u(this,void 0,void 0,a().mark((function n(){var r,i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.finality,i=t.blockId,n.abrupt("return",this.sendJsonRpc("EXPERIMENTAL_changes",{changes_type:"contract_code_changes",account_ids:e,block_id:i,finality:r}));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"gasPrice",value:function(e){return u(this,void 0,void 0,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.sendJsonRpc("gas_price",[e]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"sendJsonRpc",value:function(e,t){return u(this,void 0,void 0,a().mark((function n(){var r,i,o=this;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,y.default)(500,12,1.5,(function(){return u(o,void 0,void 0,a().mark((function n(){var r,i,o;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,r={method:e,params:t,id:v++,jsonrpc:"2.0"},n.next=4,(0,b.fetchJson)(this.connection,JSON.stringify(r));case 4:if(!(i=n.sent).error){n.next=16;break}if("object"!=typeof i.error.data){n.next=12;break}if("string"!=typeof i.error.data.error_message||"string"!=typeof i.error.data.error_type){n.next=9;break}throw new p.TypedError(i.error.data.error_message,i.error.data.error_type);case 9:throw(0,m.parseRpcError)(i.error.data);case 12:if(o="[".concat(i.error.code,"] ").concat(i.error.message,": ").concat(i.error.data),"Timeout"!==i.error.data&&!o.includes("Timeout error")&&!o.includes("query has timed out")){n.next=15;break}throw new p.TypedError(o,"TimeoutError");case 15:throw new p.TypedError(o,i.error.name);case 16:return n.abrupt("return",i);case 19:if(n.prev=19,n.t0=n.catch(0),"TimeoutError"!==n.t0.type){n.next=24;break}return{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_ENV:"TESTNET",REACT_APP_WORMHOLE_EXPLORER:"https://wormhole.com/explorer/",REACT_APP_WORMHOLE_API:"https://api.testnet.wormscan.io/",REACT_APP_ATTEST_URL:"https://wormhole-foundation.github.io/example-token-bridge-ui/#/register"}.NEAR_NO_LOGS||console.warn("Retrying request to ".concat(e," as it has timed out"),t),n.abrupt("return",null);case 24:throw n.t0;case 25:case"end":return n.stop()}}),n,this,[[0,19]])})))}));case 2:if(r=n.sent,void 0!==(i=r.result)){n.next=6;break}throw new p.TypedError("Exceeded ".concat(12," attempts for request to ").concat(e,"."),"RetriesExceeded");case 6:return n.abrupt("return",i);case 7:case"end":return n.stop()}}),n)})))}}]),n}(l.Provider);t.JsonRpcProvider=g},6625:function(e,t,n){"use strict";var r,a,i,o=n(5886).Buffer,s=n(68387).default,c=n(34671).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getTransactionLastResult=t.Provider=t.IdType=t.FinalExecutionStatusBasic=t.ExecutionStatusBasic=void 0,(i=t.ExecutionStatusBasic||(t.ExecutionStatusBasic={})).Unknown="Unknown",i.Pending="Pending",i.Failure="Failure",(a=t.FinalExecutionStatusBasic||(t.FinalExecutionStatusBasic={})).NotStarted="NotStarted",a.Started="Started",a.Failure="Failure",(r=t.IdType||(t.IdType={})).Transaction="transaction",r.Receipt="receipt";var u=s((function e(){c(this,e)}));t.Provider=u,t.getTransactionLastResult=function(e){if("object"==typeof e.status&&"string"==typeof e.status.SuccessValue){var t=o.from(e.status.SuccessValue,"base64").toString();try{return JSON.parse(t)}catch(e){return t}}return null}},64091:function(e,t,n){"use strict";var r=n(80294).default,a=n(67766).default,i=n(65040).default,o=n(68387).default,s=n(34671).default,c=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InMemorySigner=t.Signer=void 0;var d=u(n(13190)),f=n(42058),l=n(59545),b=o((function e(){s(this,e)}));t.Signer=b;var p=function(e){a(n,e);var t=i(n);function n(e){var r;return s(this,n),(r=t.call(this)).keyStore=e,r}return o(n,[{key:"createKey",value:function(e,t){return c(this,void 0,void 0,r().mark((function n(){var a;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=f.KeyPair.fromRandom("ed25519"),n.next=3,this.keyStore.setKey(t,e,a);case 3:return n.abrupt("return",a.getPublicKey());case 4:case"end":return n.stop()}}),n,this)})))}},{key:"getPublicKey",value:function(e,t){return c(this,void 0,void 0,r().mark((function n(){var a;return r().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.keyStore.getKey(t,e);case 2:if(null!==(a=n.sent)){n.next=5;break}return n.abrupt("return",null);case 5:return n.abrupt("return",a.getPublicKey());case 6:case"end":return n.stop()}}),n,this)})))}},{key:"signMessage",value:function(e,t,n){return c(this,void 0,void 0,r().mark((function a(){var i,o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=new Uint8Array(d.default.sha256.array(e)),t){r.next=3;break}throw new Error("InMemorySigner requires provided account id");case 3:return r.next=5,this.keyStore.getKey(n,t);case 5:if(null!==(o=r.sent)){r.next=8;break}throw new Error("Key for ".concat(t," not found in ").concat(n));case 8:return r.abrupt("return",o.sign(i));case 9:case"end":return r.stop()}}),a,this)})))}},{key:"toString",value:function(){return"InMemorySigner(".concat(this.keyStore,")")}}],[{key:"fromKeyPair",value:function(e,t,a){return c(this,void 0,void 0,r().mark((function i(){var o;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=new l.InMemoryKeyStore,r.next=3,o.setKey(e,t,a);case 3:return r.abrupt("return",new n(o));case 4:case"end":return r.stop()}}),i)})))}}]),n}(b);t.InMemorySigner=p},8e4:function(e,t,n){"use strict";var r=n(5886).Buffer,a=n(80294).default,i=n(68387).default,o=n(34671).default,s=n(67766).default,c=n(65040).default,u=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.signTransaction=t.createTransaction=t.SCHEMA=t.Action=t.SignedTransaction=t.Transaction=t.Signature=t.deleteAccount=t.deleteKey=t.addKey=t.stake=t.transfer=t.functionCall=t.stringifyJsonOrBytes=t.deployContract=t.createAccount=t.DeleteAccount=t.DeleteKey=t.AddKey=t.Stake=t.Transfer=t.FunctionCall=t.DeployContract=t.CreateAccount=t.IAction=t.functionCallAccessKey=t.fullAccessKey=t.AccessKey=t.AccessKeyPermission=t.FullAccessPermission=t.FunctionCallPermission=void 0;var f=d(n(13190)),l=n(80099),b=n(62503),p=n(42058),h=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(l.Assignable);t.FunctionCallPermission=h;var y=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(l.Assignable);t.FullAccessPermission=y;var m=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(l.Enum);t.AccessKeyPermission=m;var v=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(l.Assignable);t.AccessKey=v,t.fullAccessKey=function(){return new v({permission:new m({fullAccess:new y({})})})},t.functionCallAccessKey=function(e,t,n){return new v({permission:new m({functionCall:new h({receiverId:e,allowance:n,methodNames:t})})})};var g=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(l.Assignable);t.IAction=g;var A=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);t.CreateAccount=A;var w=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);t.DeployContract=w;var x=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);t.FunctionCall=x;var _=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);t.Transfer=_;var k=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);t.Stake=k;var I=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);t.AddKey=I;var S=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);t.DeleteKey=S;var E=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(g);function C(e){return void 0!==e.byteLength&&e.byteLength===e.length?e:r.from(JSON.stringify(e))}t.DeleteAccount=E,t.createAccount=function(){return new M({createAccount:new A({})})},t.deployContract=function(e){return new M({deployContract:new w({code:e})})},t.stringifyJsonOrBytes=C,t.functionCall=function(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:C;return new M(arguments.length>5&&void 0!==arguments[5]&&arguments[5]?{functionCall:new x({methodName:e,args:t,gas:n,deposit:r})}:{functionCall:new x({methodName:e,args:a(t),gas:n,deposit:r})})},t.transfer=function(e){return new M({transfer:new _({deposit:e})})},t.stake=function(e,t){return new M({stake:new k({stake:e,publicKey:t})})},t.addKey=function(e,t){return new M({addKey:new I({publicKey:e,accessKey:t})})},t.deleteKey=function(e){return new M({deleteKey:new S({publicKey:e})})},t.deleteAccount=function(e){return new M({deleteAccount:new E({beneficiaryId:e})})};var T=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(l.Assignable);t.Signature=T;var O=function(e){s(r,e);var n=c(r);function r(){return o(this,r),n.apply(this,arguments)}return i(r,[{key:"encode",value:function(){return(0,b.serialize)(t.SCHEMA,this)}}],[{key:"decode",value:function(e){return(0,b.deserialize)(t.SCHEMA,r,e)}}]),r}(l.Assignable);t.Transaction=O;var P=function(e){s(r,e);var n=c(r);function r(){return o(this,r),n.apply(this,arguments)}return i(r,[{key:"encode",value:function(){return(0,b.serialize)(t.SCHEMA,this)}}],[{key:"decode",value:function(e){return(0,b.deserialize)(t.SCHEMA,r,e)}}]),r}(l.Assignable);t.SignedTransaction=P;var M=function(e){s(n,e);var t=c(n);function n(){return o(this,n),t.apply(this,arguments)}return i(n)}(l.Enum);function B(e,t,n,r,a,i){return new O({signerId:e,publicKey:t,nonce:r,receiverId:n,actions:a,blockHash:i})}function N(e,n,r,i){return u(this,void 0,void 0,a().mark((function o(){var s,c,u,d;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=(0,b.serialize)(t.SCHEMA,e),c=new Uint8Array(f.default.sha256.array(s)),a.next=4,n.signMessage(s,r,i);case 4:return u=a.sent,d=new P({transaction:e,signature:new T({keyType:e.publicKey.keyType,data:u.signature})}),a.abrupt("return",[c,d]);case 7:case"end":return a.stop()}}),o)})))}t.Action=M,t.SCHEMA=new Map([[T,{kind:"struct",fields:[["keyType","u8"],["data",[64]]]}],[P,{kind:"struct",fields:[["transaction",O],["signature",T]]}],[O,{kind:"struct",fields:[["signerId","string"],["publicKey",p.PublicKey],["nonce","u64"],["receiverId","string"],["blockHash",[32]],["actions",[M]]]}],[p.PublicKey,{kind:"struct",fields:[["keyType","u8"],["data",[32]]]}],[v,{kind:"struct",fields:[["nonce","u64"],["permission",m]]}],[m,{kind:"enum",field:"enum",values:[["functionCall",h],["fullAccess",y]]}],[h,{kind:"struct",fields:[["allowance",{kind:"option",type:"u128"}],["receiverId","string"],["methodNames",["string"]]]}],[y,{kind:"struct",fields:[]}],[M,{kind:"enum",field:"enum",values:[["createAccount",A],["deployContract",w],["functionCall",x],["transfer",_],["stake",k],["addKey",I],["deleteKey",S],["deleteAccount",E]]}],[A,{kind:"struct",fields:[]}],[w,{kind:"struct",fields:[["code",["u8"]]]}],[x,{kind:"struct",fields:[["methodName","string"],["args",["u8"]],["gas","u64"],["deposit","u128"]]}],[_,{kind:"struct",fields:[["deposit","u128"]]}],[k,{kind:"struct",fields:[["stake","u128"],["publicKey",p.PublicKey]]}],[I,{kind:"struct",fields:[["publicKey",p.PublicKey],["accessKey",v]]}],[S,{kind:"struct",fields:[["publicKey",p.PublicKey]]}],[E,{kind:"struct",fields:[["beneficiaryId","string"]]}]]),t.createTransaction=B,t.signTransaction=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:t.NEAR_NOMINATION_EXP,r=new a.default(e,10);if(n!==t.NEAR_NOMINATION_EXP){var o=t.NEAR_NOMINATION_EXP-n-1;o>0&&r.iadd(i[o])}var s=(e=r.toString()).substring(0,e.length-t.NEAR_NOMINATION_EXP)||"0",c=e.substring(e.length-t.NEAR_NOMINATION_EXP).padStart(t.NEAR_NOMINATION_EXP,"0").substring(0,n);return"".concat(function(e){for(var t=/(-?\d+)(\d{3})/;t.test(e);)e=e.replace(t,"$1,$2");return e}(s),".").concat(c).replace(/\.?0*$/,"")},t.parseNearAmount=function(e){if(!e)return null;var n,r=(e=e.replace(/,/g,"").trim()).split("."),a=r[0],i=r[1]||"";if(r.length>2||i.length>t.NEAR_NOMINATION_EXP)throw new Error("Cannot parse '".concat(e,"' as NEAR amount"));return""===(n=(n=a+i.padEnd(t.NEAR_NOMINATION_EXP,"0")).replace(/^0+/,""))?"0":n}},56797:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.logWarning=t.rpc_errors=t.KeyPairEd25519=t.KeyPair=t.PublicKey=t.format=t.enums=t.web=t.serialize=t.key_pair=void 0;var o=i(n(42058));t.key_pair=o;var s=i(n(96797));t.serialize=s;var c=i(n(81599));t.web=c;var u=i(n(80099));t.enums=u;var d=i(n(54273));t.format=d;var f=i(n(60249));t.rpc_errors=f;var l=n(42058);Object.defineProperty(t,"PublicKey",{enumerable:!0,get:function(){return l.PublicKey}}),Object.defineProperty(t,"KeyPair",{enumerable:!0,get:function(){return l.KeyPair}}),Object.defineProperty(t,"KeyPairEd25519",{enumerable:!0,get:function(){return l.KeyPairEd25519}});var b=n(80011);Object.defineProperty(t,"logWarning",{enumerable:!0,get:function(){return b.logWarning}})},42058:function(e,t,n){"use strict";var r=n(34671).default,a=n(68387).default,i=n(67766).default,o=n(65040).default,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KeyPairEd25519=t.KeyPair=t.PublicKey=t.KeyType=void 0;var c,u=s(n(91066)),d=n(96797),f=n(80099);function l(e){if("ed25519"===e.toLowerCase())return c.ED25519;throw new Error("Unknown key type ".concat(e))}!function(e){e[e.ED25519=0]="ED25519"}(c=t.KeyType||(t.KeyType={}));var b=function(e){i(n,e);var t=o(n);function n(){return r(this,n),t.apply(this,arguments)}return a(n,[{key:"toString",value:function(){return"".concat(function(e){if(e===c.ED25519)return"ed25519";throw new Error("Unknown key type ".concat(e))}(this.keyType),":").concat((0,d.base_encode)(this.data))}},{key:"verify",value:function(e,t){if(this.keyType===c.ED25519)return u.default.sign.detached.verify(e,t,this.data);throw new Error("Unknown key type ".concat(this.keyType))}}],[{key:"from",value:function(e){return"string"==typeof e?n.fromString(e):e}},{key:"fromString",value:function(e){var t=e.split(":");if(1===t.length)return new n({keyType:c.ED25519,data:(0,d.base_decode)(t[0])});if(2===t.length)return new n({keyType:l(t[0]),data:(0,d.base_decode)(t[1])});throw new Error("Invalid encoded key format, must be :")}}]),n}(f.Assignable);t.PublicKey=b;var p=function(){function e(){r(this,e)}return a(e,null,[{key:"fromRandom",value:function(e){if("ED25519"===e.toUpperCase())return h.fromRandom();throw new Error("Unknown curve ".concat(e))}},{key:"fromString",value:function(e){var t=e.split(":");if(1===t.length)return new h(t[0]);if(2===t.length){if("ED25519"===t[0].toUpperCase())return new h(t[1]);throw new Error("Unknown curve: ".concat(t[0]))}throw new Error("Invalid encoded key format, must be :")}}]),e}();t.KeyPair=p;var h=function(e){i(n,e);var t=o(n);function n(e){var a;r(this,n),a=t.call(this);var i=u.default.sign.keyPair.fromSecretKey((0,d.base_decode)(e));return a.publicKey=new b({keyType:c.ED25519,data:i.publicKey}),a.secretKey=e,a}return a(n,[{key:"sign",value:function(e){return{signature:u.default.sign.detached(e,(0,d.base_decode)(this.secretKey)),publicKey:this.publicKey}}},{key:"verify",value:function(e,t){return this.publicKey.verify(e,t)}},{key:"toString",value:function(){return"ed25519:".concat(this.secretKey)}},{key:"getPublicKey",value:function(){return this.publicKey}}],[{key:"fromRandom",value:function(){var e=u.default.sign.keyPair();return new n((0,d.base_encode)(e.secretKey))}}]),n}(p);t.KeyPairEd25519=h},60249:function(e,t,n){"use strict";var r=n(68387).default,a=n(34671).default,i=n(67766).default,o=n(65040).default,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.formatError=t.parseResultError=t.parseRpcError=t.ServerError=void 0;var c=s(n(92584)),u=s(n(28531)),d=s(n(88957)),f=n(12923),l=n(80011),b={formatNear:function(){return function(e,t){return f.utils.format.formatNearAmount(t(e))}}},p=function(e){i(n,e);var t=o(n);function n(){return a(this,n),t.apply(this,arguments)}return r(n)}(l.TypedError);t.ServerError=p;var h=function(e){i(n,e);var t=o(n);function n(){return a(this,n),t.apply(this,arguments)}return r(n)}(p);function y(e){var t={},n=v(e,u.default.schema,t,""),r=new p(m(n,t),n);return Object.assign(r,t),r}function m(e,t){return"string"==typeof d.default[e]?c.default.render(d.default[e],Object.assign(Object.assign({},t),b)):JSON.stringify(t)}function v(e,t,n,r){var a,i,o,s;for(var c in t){if(s=e[c],"[object String]"===Object.prototype.toString.call(s))return e[c];if(g(e[c]))a=e[c],i=t[c],o=c;else{if(!g(e.kind)||!g(e.kind[c]))continue;a=e.kind[c],i=t[c],o=c}}if(a&&i){for(var u=0,d=Object.keys(i.props);u0&&!a.call(e,0))for(var h=0;h0)for(var y=0;y=0&&"[object Function]"===t.call(e.callee)),r}},68206:function(e,t,n){"use strict";var r=n(43324);t.certificate=n(62074);var a=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=a;var i=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=i;var o=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));t.PublicKey=o;var s=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),c=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=c;var u=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=u;var d=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=d,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var f=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=f;var l=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},62074:function(e,t,n){"use strict";var r=n(43324),a=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),i=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),c=r.define("RelativeDistinguishedName",(function(){this.setof(i)})),u=r.define("RDNSequence",(function(){this.seqof(c)})),d=r.define("Name",(function(){this.choice({rdnSequence:this.use(u)})})),f=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(a),this.key("notAfter").use(a))})),l=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),b=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(d),this.key("validity").use(f),this.key("subject").use(d),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())})),p=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(b),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));e.exports=p},75071:function(e,t,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,a=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=n(25656),s=n(81266),c=n(31892).Buffer;e.exports=function(e,t){var n,u=e.toString(),d=u.match(r);if(d){var f="aes"+d[1],l=c.from(d[2],"hex"),b=c.from(d[3].replace(/[\r\n]/g,""),"base64"),p=o(t,l.slice(0,8),parseInt(d[1],10)).key,h=[],y=s.createDecipheriv(f,p,l);h.push(y.update(b)),h.push(y.final()),n=c.concat(h)}else{var m=u.match(i);n=c.from(m[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(a)[1],data:n}}},64017:function(e,t,n){var r=n(68206),a=n(41095),i=n(75071),o=n(81266),s=n(65718),c=n(31892).Buffer;function u(e){var t;"object"!=typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var n,u,d=i(e,t),f=d.tag,l=d.data;switch(f){case"CERTIFICATE":u=r.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=r.PublicKey.decode(l,"der")),n=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=r.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":l=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=a[e.algorithm.decrypt.cipher.algo.join(".")],u=e.algorithm.decrypt.cipher.iv,d=e.subjectPrivateKey,f=parseInt(i.split("-")[1],10)/8,l=s.pbkdf2Sync(t,n,r,f,"sha1"),b=o.createDecipheriv(i,l,u),p=[];return p.push(b.update(d)),p.push(b.final()),c.concat(p)}(l=r.EncryptedPrivateKey.decode(l,"der"),t);case"PRIVATE KEY":switch(n=(u=r.PrivateKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:r.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=r.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return{curve:(l=r.ECPrivateKey.decode(l,"der")).parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+f)}}e.exports=u,u.signature=r.signature},65718:function(e,t,n){t.pbkdf2=n(45200),t.pbkdf2Sync=n(56009)},45200:function(e,t,n){var r,a,i=n(31892).Buffer,o=n(87279),s=n(75890),c=n(56009),u=n(94301),d=n.g.crypto&&n.g.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},l=[];function b(){return a||(a=n.g.process&&n.g.process.nextTick?n.g.process.nextTick:n.g.queueMicrotask?n.g.queueMicrotask:n.g.setImmediate?n.g.setImmediate:n.g.setTimeout)}function p(e,t,n,r,a){return d.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return d.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:a}},e,r<<3)})).then((function(e){return i.from(e)}))}e.exports=function(e,t,a,h,y,m){"function"==typeof y&&(m=y,y=void 0);var v=f[(y=y||"sha1").toLowerCase()];if(v&&"function"==typeof n.g.Promise){if(o(a,h),e=u(e,s,"Password"),t=u(t,s,"Salt"),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){b()((function(){t(null,e)}))}),(function(e){b()((function(){t(e)}))}))}(function(e){if(n.g.process&&!n.g.process.browser)return Promise.resolve(!1);if(!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==l[e])return l[e];var t=p(r=r||i.alloc(8),r,10,128,e).then((function(){return!0})).catch((function(){return!1}));return l[e]=t,t}(v).then((function(n){return n?p(e,t,a,h,v):c(e,t,a,h,y)})),m)}else b()((function(){var n;try{n=c(e,t,a,h,y)}catch(e){return m(e)}m(null,n)}))}},75890:function(e,t,n){var r,a=n(32375);r=n.g.process&&n.g.process.browser?"utf-8":n.g.process&&n.g.process.version?parseInt(a.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary":"utf-8",e.exports=r},87279:function(e){var t=Math.pow(2,30)-1;e.exports=function(e,n){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof n)throw new TypeError("Key length not a number");if(n<0||n>t||n!=n)throw new TypeError("Bad key length")}},56009:function(e,t,n){var r=n(70529),a=n(83195),i=n(67402),o=n(31892).Buffer,s=n(87279),c=n(75890),u=n(94301),d=o.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(e,t,n){var s=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new a).update(e).digest()}:"md5"===e?r:function(t){return i(e).update(t).digest()}}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=s(t):t.length1)for(var n=1;n "+e.len)}function c(e){this.buf=e,this.pos=0,this.len=e.length}var u,d="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new c(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new c(e);throw Error("illegal buffer")},f=function(){return a.Buffer?function(e){return(c.create=function(e){return a.Buffer.isBuffer(e)?new r(e):d(e)})(e)}:d};function l(){var e=new i(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw s(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw s(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function b(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw s(this,8);return new i(b(this.buf,this.pos+=4),b(this.buf,this.pos+=4))}c.create=f(),c.prototype._slice=a.Array.prototype.subarray||a.Array.prototype.slice,c.prototype.uint32=(u=4294967295,function(){if(u=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return u;if(u=(u|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return u;if((this.pos+=5)>this.len)throw this.pos=this.len,s(this,10);return u}),c.prototype.int32=function(){return 0|this.uint32()},c.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)|0},c.prototype.bool=function(){return 0!==this.uint32()},c.prototype.fixed32=function(){if(this.pos+4>this.len)throw s(this,4);return b(this.buf,this.pos+=4)},c.prototype.sfixed32=function(){if(this.pos+4>this.len)throw s(this,4);return 0|b(this.buf,this.pos+=4)},c.prototype.float=function(){if(this.pos+4>this.len)throw s(this,4);var e=a.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},c.prototype.double=function(){if(this.pos+8>this.len)throw s(this,4);var e=a.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},c.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw s(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)},c.prototype.string=function(){var e=this.bytes();return o.read(e,0,e.length)},c.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw s(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw s(this)}while(128&this.buf[this.pos++]);return this},c.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},c._configure=function(e){r=e,c.create=f(),r._configure();var t=a.Long?"toLong":"toNumber";a.merge(c.prototype,{int64:function(){return l.call(this)[t](!1)},uint64:function(){return l.call(this)[t](!0)},sint64:function(){return l.call(this).zzDecode()[t](!1)},fixed64:function(){return p.call(this)[t](!0)},sfixed64:function(){return p.call(this)[t](!1)}})}},66900:function(e,t,n){"use strict";e.exports=i;var r=n(96106);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(55533);function i(e){r.call(this,e)}i._configure=function(){a.Buffer&&(i.prototype._slice=a.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},25372:function(e){"use strict";e.exports={}},59285:function(e,t,n){"use strict";t.Service=n(98187)},98187:function(e,t,n){"use strict";e.exports=a;var r=n(55533);function a(e,t,n){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");r.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(n)}(a.prototype=Object.create(r.EventEmitter.prototype)).constructor=a,a.prototype.rpcCall=function e(t,n,a,i,o){if(!i)throw TypeError("request must be specified");var s=this;if(!o)return r.asPromise(e,s,t,n,a,i);if(s.rpcImpl)try{return s.rpcImpl(t,n[s.requestDelimited?"encodeDelimited":"encode"](i).finish(),(function(e,n){if(e)return s.emit("error",e,t),o(e);if(null!==n){if(!(n instanceof a))try{n=a[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),o(e)}return s.emit("data",n,t),o(null,n)}s.end(!0)}))}catch(e){return s.emit("error",e,t),void setTimeout((function(){o(e)}),0)}else setTimeout((function(){o(Error("already ended"))}),0)},a.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},48352:function(e,t,n){"use strict";e.exports=a;var r=n(55533);function a(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=a.zero=new a(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var o=a.zeroHash="\0\0\0\0\0\0\0\0";a.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var n=e>>>0,r=(e-n)/4294967296>>>0;return t&&(r=~r>>>0,n=~n>>>0,++n>4294967295&&(n=0,++r>4294967295&&(r=0))),new a(n,r)},a.from=function(e){if("number"==typeof e)return a.fromNumber(e);if(r.isString(e)){if(!r.Long)return a.fromNumber(parseInt(e,10));e=r.Long.fromString(e)}return e.low||e.high?new a(e.low>>>0,e.high>>>0):i},a.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+4294967296*n)}return this.lo+4294967296*this.hi},a.prototype.toLong=function(e){return r.Long?new r.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var s=String.prototype.charCodeAt;a.fromHash=function(e){return e===o?i:new a((s.call(e,0)|s.call(e,1)<<8|s.call(e,2)<<16|s.call(e,3)<<24)>>>0,(s.call(e,4)|s.call(e,5)<<8|s.call(e,6)<<16|s.call(e,7)<<24)>>>0)},a.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},a.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},a.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},a.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}},55533:function(e,t,n){"use strict";var r=t;function a(e,t,n){for(var r=Object.keys(t),a=0;a0)},r.Buffer=function(){try{var e=r.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),r._Buffer_from=null,r._Buffer_allocUnsafe=null,r.newBuffer=function(e){return"number"==typeof e?r.Buffer?r._Buffer_allocUnsafe(e):new r.Array(e):r.Buffer?r._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},r.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,r.Long=r.global.dcodeIO&&r.global.dcodeIO.Long||r.global.Long||r.inquire("long"),r.key2Re=/^true|false|0|1$/,r.key32Re=/^-?(?:0|[1-9][0-9]*)$/,r.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,r.longToHash=function(e){return e?r.LongBits.from(e).toHash():r.LongBits.zeroHash},r.longFromHash=function(e,t){var n=r.LongBits.fromHash(e);return r.Long?r.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))},r.merge=a,r.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},r.newError=i,r.ProtocolError=i("ProtocolError"),r.oneOfGetter=function(e){for(var t={},n=0;n-1;--n)if(1===t[e[n]]&&void 0!==this[e[n]]&&null!==this[e[n]])return e[n]}},r.oneOfSetter=function(e){return function(t){for(var n=0;n>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[n++]=127&e.lo|128,e.lo=e.lo>>>7;t[n++]=e.lo}function y(e,t,n){t[n]=255&e,t[n+1]=e>>>8&255,t[n+2]=e>>>16&255,t[n+3]=e>>>24}f.create=l(),f.alloc=function(e){return new a.Array(e)},a.Array!==Array&&(f.alloc=a.pool(f.alloc,a.Array.prototype.subarray)),f.prototype._push=function(e,t,n){return this.tail=this.tail.next=new c(e,t,n),this.len+=t,this},p.prototype=Object.create(c.prototype),p.prototype.fn=function(e,t,n){for(;e>127;)t[n++]=127&e|128,e>>>=7;t[n]=e},f.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new p((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},f.prototype.int32=function(e){return e<0?this._push(h,10,i.fromNumber(e)):this.uint32(e)},f.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},f.prototype.uint64=function(e){var t=i.from(e);return this._push(h,t.length(),t)},f.prototype.int64=f.prototype.uint64,f.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(h,t.length(),t)},f.prototype.bool=function(e){return this._push(b,1,e?1:0)},f.prototype.fixed32=function(e){return this._push(y,4,e>>>0)},f.prototype.sfixed32=f.prototype.fixed32,f.prototype.fixed64=function(e){var t=i.from(e);return this._push(y,4,t.lo)._push(y,4,t.hi)},f.prototype.sfixed64=f.prototype.fixed64,f.prototype.float=function(e){return this._push(a.float.writeFloatLE,4,e)},f.prototype.double=function(e){return this._push(a.float.writeDoubleLE,8,e)};var m=a.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var r=0;r>>0;if(!t)return this._push(b,1,0);if(a.isString(e)){var n=f.alloc(t=o.length(e));o.decode(e,n,0),e=n}return this.uint32(t)._push(m,t,e)},f.prototype.string=function(e){var t=s.length(e);return t?this.uint32(t)._push(s.write,t,e):this._push(b,1,0)},f.prototype.fork=function(){return this.states=new d(this),this.head=this.tail=new c(u,0,0),this.len=0,this},f.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new c(u,0,0),this.len=0),this},f.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this},f.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t},f._configure=function(e){r=e,f.create=l(),r._configure()}},20270:function(e,t,n){"use strict";e.exports=i;var r=n(76616);(i.prototype=Object.create(r.prototype)).constructor=i;var a=n(55533);function i(){r.call(this)}function o(e,t,n){e.length<40?a.utf8.write(e,t,n):t.utf8Write?t.utf8Write(e,n):t.write(e,n)}i._configure=function(){i.alloc=a._Buffer_allocUnsafe,i.writeBytesBuffer=a.Buffer&&a.Buffer.prototype instanceof Uint8Array&&"set"===a.Buffer.prototype.set.name?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var r=0;r>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=a.Buffer.byteLength(e);return this.uint32(t),t&&this._push(o,t,e),this},i._configure()},36975:function(e,t,n){t.publicEncrypt=n(58050),t.privateDecrypt=n(7777),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},32270:function(e,t,n){var r=n(51132),a=n(31892).Buffer;function i(e){var t=a.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var n,o=a.alloc(0),s=0;o.length=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function u(e,t,n,r){for(var a=0,i=Math.min(e.length,n),o=t;o=49?s-49+10:s>=17?s-17+10:s}return a}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var a=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a=0;a-=3)o=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===n)for(a=0,i=0;a>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=2)a=c(e,t,r)<=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;else for(r=(e.length-t)%2==0?t+1:t;r=18?(i-=18,o+=1,this.words[o]|=a>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var i=e.length-n,o=i%r,s=Math.min(i,i-o)+n,c=0,d=n;d1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],i=0|t.words[0],o=a*i,s=67108863&o,c=o/67108864|0;n.words[0]=s;for(var u=1;u>>26,f=67108863&c,l=Math.min(u,t.length-1),b=Math.max(0,u-e.length+1);b<=l;b++){var p=u-b|0;d+=(o=(a=0|e.words[p])*(i=0|t.words[b])+f)/67108864|0,f=67108863&o}n.words[u]=0|f,c=0|d}return 0!==c?n.words[u]=0|c:n.length--,n.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var a=0,i=0,o=0;o>>24-a&16777215)||o!==this.length-1?d[6-c.length]+c+n:c+n,(a+=2)>=26&&(a-=26,o--)}for(0!==i&&(n=i.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var u=f[e],b=l[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var h=p.modn(b).toString(e);n=(p=p.idivn(b)).isZero()?h+n:d[u-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),i=n||Math.max(1,a);r(a<=i,"byte array longer than desired length"),r(i>0,"Requested array length <= 0"),this.strip();var o,s,c="le"===t,u=new e(i),d=this.clone();if(c){for(s=0;!d.isZero();s++)o=d.andln(255),d.iushrn(8),u[s]=o;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var a=0,i=0;i>>26;for(;0!==a&&i>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;ie.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>26,this.words[o]=67108863&t;for(;0!==i&&o>26,this.words[o]=67108863&t;if(0===i&&o>>13,b=0|o[1],p=8191&b,h=b>>>13,y=0|o[2],m=8191&y,v=y>>>13,g=0|o[3],A=8191&g,w=g>>>13,x=0|o[4],_=8191&x,k=x>>>13,I=0|o[5],S=8191&I,E=I>>>13,C=0|o[6],T=8191&C,O=C>>>13,P=0|o[7],M=8191&P,B=P>>>13,N=0|o[8],R=8191&N,D=N>>>13,j=0|o[9],U=8191&j,L=j>>>13,F=0|s[0],Z=8191&F,H=F>>>13,z=0|s[1],Q=8191&z,q=z>>>13,V=0|s[2],J=8191&V,K=V>>>13,G=0|s[3],W=8191&G,Y=G>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ae=0|s[6],ie=8191&ae,oe=ae>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,de=0|s[8],fe=8191&de,le=de>>>13,be=0|s[9],pe=8191&be,he=be>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(u+(r=Math.imul(f,Z))|0)+((8191&(a=(a=Math.imul(f,H))+Math.imul(l,Z)|0))<<13)|0;u=((i=Math.imul(l,H))+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(p,Z),a=(a=Math.imul(p,H))+Math.imul(h,Z)|0,i=Math.imul(h,H);var me=(u+(r=r+Math.imul(f,Q)|0)|0)+((8191&(a=(a=a+Math.imul(f,q)|0)+Math.imul(l,Q)|0))<<13)|0;u=((i=i+Math.imul(l,q)|0)+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,Z),a=(a=Math.imul(m,H))+Math.imul(v,Z)|0,i=Math.imul(v,H),r=r+Math.imul(p,Q)|0,a=(a=a+Math.imul(p,q)|0)+Math.imul(h,Q)|0,i=i+Math.imul(h,q)|0;var ve=(u+(r=r+Math.imul(f,J)|0)|0)+((8191&(a=(a=a+Math.imul(f,K)|0)+Math.imul(l,J)|0))<<13)|0;u=((i=i+Math.imul(l,K)|0)+(a>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(A,Z),a=(a=Math.imul(A,H))+Math.imul(w,Z)|0,i=Math.imul(w,H),r=r+Math.imul(m,Q)|0,a=(a=a+Math.imul(m,q)|0)+Math.imul(v,Q)|0,i=i+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,a=(a=a+Math.imul(p,K)|0)+Math.imul(h,J)|0,i=i+Math.imul(h,K)|0;var ge=(u+(r=r+Math.imul(f,W)|0)|0)+((8191&(a=(a=a+Math.imul(f,Y)|0)+Math.imul(l,W)|0))<<13)|0;u=((i=i+Math.imul(l,Y)|0)+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(_,Z),a=(a=Math.imul(_,H))+Math.imul(k,Z)|0,i=Math.imul(k,H),r=r+Math.imul(A,Q)|0,a=(a=a+Math.imul(A,q)|0)+Math.imul(w,Q)|0,i=i+Math.imul(w,q)|0,r=r+Math.imul(m,J)|0,a=(a=a+Math.imul(m,K)|0)+Math.imul(v,J)|0,i=i+Math.imul(v,K)|0,r=r+Math.imul(p,W)|0,a=(a=a+Math.imul(p,Y)|0)+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0;var Ae=(u+(r=r+Math.imul(f,$)|0)|0)+((8191&(a=(a=a+Math.imul(f,ee)|0)+Math.imul(l,$)|0))<<13)|0;u=((i=i+Math.imul(l,ee)|0)+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(S,Z),a=(a=Math.imul(S,H))+Math.imul(E,Z)|0,i=Math.imul(E,H),r=r+Math.imul(_,Q)|0,a=(a=a+Math.imul(_,q)|0)+Math.imul(k,Q)|0,i=i+Math.imul(k,q)|0,r=r+Math.imul(A,J)|0,a=(a=a+Math.imul(A,K)|0)+Math.imul(w,J)|0,i=i+Math.imul(w,K)|0,r=r+Math.imul(m,W)|0,a=(a=a+Math.imul(m,Y)|0)+Math.imul(v,W)|0,i=i+Math.imul(v,Y)|0,r=r+Math.imul(p,$)|0,a=(a=a+Math.imul(p,ee)|0)+Math.imul(h,$)|0,i=i+Math.imul(h,ee)|0;var we=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(a=(a=a+Math.imul(f,re)|0)+Math.imul(l,ne)|0))<<13)|0;u=((i=i+Math.imul(l,re)|0)+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(T,Z),a=(a=Math.imul(T,H))+Math.imul(O,Z)|0,i=Math.imul(O,H),r=r+Math.imul(S,Q)|0,a=(a=a+Math.imul(S,q)|0)+Math.imul(E,Q)|0,i=i+Math.imul(E,q)|0,r=r+Math.imul(_,J)|0,a=(a=a+Math.imul(_,K)|0)+Math.imul(k,J)|0,i=i+Math.imul(k,K)|0,r=r+Math.imul(A,W)|0,a=(a=a+Math.imul(A,Y)|0)+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,r=r+Math.imul(m,$)|0,a=(a=a+Math.imul(m,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0,r=r+Math.imul(p,ne)|0,a=(a=a+Math.imul(p,re)|0)+Math.imul(h,ne)|0,i=i+Math.imul(h,re)|0;var xe=(u+(r=r+Math.imul(f,ie)|0)|0)+((8191&(a=(a=a+Math.imul(f,oe)|0)+Math.imul(l,ie)|0))<<13)|0;u=((i=i+Math.imul(l,oe)|0)+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(M,Z),a=(a=Math.imul(M,H))+Math.imul(B,Z)|0,i=Math.imul(B,H),r=r+Math.imul(T,Q)|0,a=(a=a+Math.imul(T,q)|0)+Math.imul(O,Q)|0,i=i+Math.imul(O,q)|0,r=r+Math.imul(S,J)|0,a=(a=a+Math.imul(S,K)|0)+Math.imul(E,J)|0,i=i+Math.imul(E,K)|0,r=r+Math.imul(_,W)|0,a=(a=a+Math.imul(_,Y)|0)+Math.imul(k,W)|0,i=i+Math.imul(k,Y)|0,r=r+Math.imul(A,$)|0,a=(a=a+Math.imul(A,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,r=r+Math.imul(m,ne)|0,a=(a=a+Math.imul(m,re)|0)+Math.imul(v,ne)|0,i=i+Math.imul(v,re)|0,r=r+Math.imul(p,ie)|0,a=(a=a+Math.imul(p,oe)|0)+Math.imul(h,ie)|0,i=i+Math.imul(h,oe)|0;var _e=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(a=(a=a+Math.imul(f,ue)|0)+Math.imul(l,ce)|0))<<13)|0;u=((i=i+Math.imul(l,ue)|0)+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(R,Z),a=(a=Math.imul(R,H))+Math.imul(D,Z)|0,i=Math.imul(D,H),r=r+Math.imul(M,Q)|0,a=(a=a+Math.imul(M,q)|0)+Math.imul(B,Q)|0,i=i+Math.imul(B,q)|0,r=r+Math.imul(T,J)|0,a=(a=a+Math.imul(T,K)|0)+Math.imul(O,J)|0,i=i+Math.imul(O,K)|0,r=r+Math.imul(S,W)|0,a=(a=a+Math.imul(S,Y)|0)+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,r=r+Math.imul(_,$)|0,a=(a=a+Math.imul(_,ee)|0)+Math.imul(k,$)|0,i=i+Math.imul(k,ee)|0,r=r+Math.imul(A,ne)|0,a=(a=a+Math.imul(A,re)|0)+Math.imul(w,ne)|0,i=i+Math.imul(w,re)|0,r=r+Math.imul(m,ie)|0,a=(a=a+Math.imul(m,oe)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,oe)|0,r=r+Math.imul(p,ce)|0,a=(a=a+Math.imul(p,ue)|0)+Math.imul(h,ce)|0,i=i+Math.imul(h,ue)|0;var ke=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(a=(a=a+Math.imul(f,le)|0)+Math.imul(l,fe)|0))<<13)|0;u=((i=i+Math.imul(l,le)|0)+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,Z),a=(a=Math.imul(U,H))+Math.imul(L,Z)|0,i=Math.imul(L,H),r=r+Math.imul(R,Q)|0,a=(a=a+Math.imul(R,q)|0)+Math.imul(D,Q)|0,i=i+Math.imul(D,q)|0,r=r+Math.imul(M,J)|0,a=(a=a+Math.imul(M,K)|0)+Math.imul(B,J)|0,i=i+Math.imul(B,K)|0,r=r+Math.imul(T,W)|0,a=(a=a+Math.imul(T,Y)|0)+Math.imul(O,W)|0,i=i+Math.imul(O,Y)|0,r=r+Math.imul(S,$)|0,a=(a=a+Math.imul(S,ee)|0)+Math.imul(E,$)|0,i=i+Math.imul(E,ee)|0,r=r+Math.imul(_,ne)|0,a=(a=a+Math.imul(_,re)|0)+Math.imul(k,ne)|0,i=i+Math.imul(k,re)|0,r=r+Math.imul(A,ie)|0,a=(a=a+Math.imul(A,oe)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,oe)|0,r=r+Math.imul(m,ce)|0,a=(a=a+Math.imul(m,ue)|0)+Math.imul(v,ce)|0,i=i+Math.imul(v,ue)|0,r=r+Math.imul(p,fe)|0,a=(a=a+Math.imul(p,le)|0)+Math.imul(h,fe)|0,i=i+Math.imul(h,le)|0;var Ie=(u+(r=r+Math.imul(f,pe)|0)|0)+((8191&(a=(a=a+Math.imul(f,he)|0)+Math.imul(l,pe)|0))<<13)|0;u=((i=i+Math.imul(l,he)|0)+(a>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,Q),a=(a=Math.imul(U,q))+Math.imul(L,Q)|0,i=Math.imul(L,q),r=r+Math.imul(R,J)|0,a=(a=a+Math.imul(R,K)|0)+Math.imul(D,J)|0,i=i+Math.imul(D,K)|0,r=r+Math.imul(M,W)|0,a=(a=a+Math.imul(M,Y)|0)+Math.imul(B,W)|0,i=i+Math.imul(B,Y)|0,r=r+Math.imul(T,$)|0,a=(a=a+Math.imul(T,ee)|0)+Math.imul(O,$)|0,i=i+Math.imul(O,ee)|0,r=r+Math.imul(S,ne)|0,a=(a=a+Math.imul(S,re)|0)+Math.imul(E,ne)|0,i=i+Math.imul(E,re)|0,r=r+Math.imul(_,ie)|0,a=(a=a+Math.imul(_,oe)|0)+Math.imul(k,ie)|0,i=i+Math.imul(k,oe)|0,r=r+Math.imul(A,ce)|0,a=(a=a+Math.imul(A,ue)|0)+Math.imul(w,ce)|0,i=i+Math.imul(w,ue)|0,r=r+Math.imul(m,fe)|0,a=(a=a+Math.imul(m,le)|0)+Math.imul(v,fe)|0,i=i+Math.imul(v,le)|0;var Se=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(a=(a=a+Math.imul(p,he)|0)+Math.imul(h,pe)|0))<<13)|0;u=((i=i+Math.imul(h,he)|0)+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,J),a=(a=Math.imul(U,K))+Math.imul(L,J)|0,i=Math.imul(L,K),r=r+Math.imul(R,W)|0,a=(a=a+Math.imul(R,Y)|0)+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,r=r+Math.imul(M,$)|0,a=(a=a+Math.imul(M,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,r=r+Math.imul(T,ne)|0,a=(a=a+Math.imul(T,re)|0)+Math.imul(O,ne)|0,i=i+Math.imul(O,re)|0,r=r+Math.imul(S,ie)|0,a=(a=a+Math.imul(S,oe)|0)+Math.imul(E,ie)|0,i=i+Math.imul(E,oe)|0,r=r+Math.imul(_,ce)|0,a=(a=a+Math.imul(_,ue)|0)+Math.imul(k,ce)|0,i=i+Math.imul(k,ue)|0,r=r+Math.imul(A,fe)|0,a=(a=a+Math.imul(A,le)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,le)|0;var Ee=(u+(r=r+Math.imul(m,pe)|0)|0)+((8191&(a=(a=a+Math.imul(m,he)|0)+Math.imul(v,pe)|0))<<13)|0;u=((i=i+Math.imul(v,he)|0)+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,W),a=(a=Math.imul(U,Y))+Math.imul(L,W)|0,i=Math.imul(L,Y),r=r+Math.imul(R,$)|0,a=(a=a+Math.imul(R,ee)|0)+Math.imul(D,$)|0,i=i+Math.imul(D,ee)|0,r=r+Math.imul(M,ne)|0,a=(a=a+Math.imul(M,re)|0)+Math.imul(B,ne)|0,i=i+Math.imul(B,re)|0,r=r+Math.imul(T,ie)|0,a=(a=a+Math.imul(T,oe)|0)+Math.imul(O,ie)|0,i=i+Math.imul(O,oe)|0,r=r+Math.imul(S,ce)|0,a=(a=a+Math.imul(S,ue)|0)+Math.imul(E,ce)|0,i=i+Math.imul(E,ue)|0,r=r+Math.imul(_,fe)|0,a=(a=a+Math.imul(_,le)|0)+Math.imul(k,fe)|0,i=i+Math.imul(k,le)|0;var Ce=(u+(r=r+Math.imul(A,pe)|0)|0)+((8191&(a=(a=a+Math.imul(A,he)|0)+Math.imul(w,pe)|0))<<13)|0;u=((i=i+Math.imul(w,he)|0)+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,$),a=(a=Math.imul(U,ee))+Math.imul(L,$)|0,i=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,a=(a=a+Math.imul(R,re)|0)+Math.imul(D,ne)|0,i=i+Math.imul(D,re)|0,r=r+Math.imul(M,ie)|0,a=(a=a+Math.imul(M,oe)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,oe)|0,r=r+Math.imul(T,ce)|0,a=(a=a+Math.imul(T,ue)|0)+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,r=r+Math.imul(S,fe)|0,a=(a=a+Math.imul(S,le)|0)+Math.imul(E,fe)|0,i=i+Math.imul(E,le)|0;var Te=(u+(r=r+Math.imul(_,pe)|0)|0)+((8191&(a=(a=a+Math.imul(_,he)|0)+Math.imul(k,pe)|0))<<13)|0;u=((i=i+Math.imul(k,he)|0)+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,ne),a=(a=Math.imul(U,re))+Math.imul(L,ne)|0,i=Math.imul(L,re),r=r+Math.imul(R,ie)|0,a=(a=a+Math.imul(R,oe)|0)+Math.imul(D,ie)|0,i=i+Math.imul(D,oe)|0,r=r+Math.imul(M,ce)|0,a=(a=a+Math.imul(M,ue)|0)+Math.imul(B,ce)|0,i=i+Math.imul(B,ue)|0,r=r+Math.imul(T,fe)|0,a=(a=a+Math.imul(T,le)|0)+Math.imul(O,fe)|0,i=i+Math.imul(O,le)|0;var Oe=(u+(r=r+Math.imul(S,pe)|0)|0)+((8191&(a=(a=a+Math.imul(S,he)|0)+Math.imul(E,pe)|0))<<13)|0;u=((i=i+Math.imul(E,he)|0)+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,ie),a=(a=Math.imul(U,oe))+Math.imul(L,ie)|0,i=Math.imul(L,oe),r=r+Math.imul(R,ce)|0,a=(a=a+Math.imul(R,ue)|0)+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,r=r+Math.imul(M,fe)|0,a=(a=a+Math.imul(M,le)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,le)|0;var Pe=(u+(r=r+Math.imul(T,pe)|0)|0)+((8191&(a=(a=a+Math.imul(T,he)|0)+Math.imul(O,pe)|0))<<13)|0;u=((i=i+Math.imul(O,he)|0)+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,ce),a=(a=Math.imul(U,ue))+Math.imul(L,ce)|0,i=Math.imul(L,ue),r=r+Math.imul(R,fe)|0,a=(a=a+Math.imul(R,le)|0)+Math.imul(D,fe)|0,i=i+Math.imul(D,le)|0;var Me=(u+(r=r+Math.imul(M,pe)|0)|0)+((8191&(a=(a=a+Math.imul(M,he)|0)+Math.imul(B,pe)|0))<<13)|0;u=((i=i+Math.imul(B,he)|0)+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,fe),a=(a=Math.imul(U,le))+Math.imul(L,fe)|0,i=Math.imul(L,le);var Be=(u+(r=r+Math.imul(R,pe)|0)|0)+((8191&(a=(a=a+Math.imul(R,he)|0)+Math.imul(D,pe)|0))<<13)|0;u=((i=i+Math.imul(D,he)|0)+(a>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Ne=(u+(r=Math.imul(U,pe))|0)+((8191&(a=(a=Math.imul(U,he))+Math.imul(L,pe)|0))<<13)|0;return u=((i=Math.imul(L,he))+(a>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,c[0]=ye,c[1]=me,c[2]=ve,c[3]=ge,c[4]=Ae,c[5]=we,c[6]=xe,c[7]=_e,c[8]=ke,c[9]=Ie,c[10]=Se,c[11]=Ee,c[12]=Ce,c[13]=Te,c[14]=Oe,c[15]=Pe,c[16]=Me,c[17]=Be,c[18]=Ne,0!==u&&(c[19]=u,n.length++),n};function h(e,t,n){return(new y).mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(p=b),i.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?p(this,e,t):r<63?b(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,i=0;i>>26)|0)>>>26,o&=67108863}n.words[i]=s,r=o,o=a}return 0!==r?n.words[i]=r:n.length--,n.strip()}(this,e,t):h(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=i.prototype._countBits(e)-1,r=0;r>=1;return r},y.prototype.permute=function(e,t,n,r,a,i){for(var o=0;o>>=1)a++;return 1<>>=13,n[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=26,t+=a/67108864|0,t+=i>>>26,this.words[n]=67108863&i}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>a}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r=0);var t,n=e%26,a=(e-n)/26,i=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t=0),a=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<o)for(this.length-=o,u=0;u=0&&(0!==d||u>=a);u--){var f=0|this.words[u];this.words[u]=d<<26-i|f>>>i,d=f&s}return c&&0!==d&&(c.words[c.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[a+n]=67108863&i}for(;a>26,this.words[a+n]=67108863&i;if(0===s)return this.strip();for(r(-1===s),s=0,a=0;a>26,this.words[a]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),r.iushln(n),o=0|a.words[a.length-1]);var s,c=r.length-a.length;if("mod"!==t){(s=new i(null)).length=c+1,s.words=new Array(s.length);for(var u=0;u=0;f--){var l=67108864*(0|r.words[a.length+f])+(0|r.words[a.length+f-1]);for(l=Math.min(l/o|0,67108863),r._ishlnsubmul(a,l,f);0!==r.negative;)l--,r.negative=0,r._ishlnsubmul(a,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=l)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(a=s.div.neg()),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:a,mod:o}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(a=s.div.neg()),{div:a,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:s.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,o,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a=new i(1),o=new i(0),s=new i(0),c=new i(1),u=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++u;for(var d=n.clone(),f=t.clone();!t.isZero();){for(var l=0,b=1;0==(t.words[0]&b)&&l<26;++l,b<<=1);if(l>0)for(t.iushrn(l);l-- >0;)(a.isOdd()||o.isOdd())&&(a.iadd(d),o.isub(f)),a.iushrn(1),o.iushrn(1);for(var p=0,h=1;0==(n.words[0]&h)&&p<26;++p,h<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||c.isOdd())&&(s.iadd(d),c.isub(f)),s.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s),o.isub(c)):(n.isub(t),s.isub(a),c.isub(o))}return{a:s,b:c,gcd:n.iushln(u)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var a,o=new i(1),s=new i(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,d=1;0==(t.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(t.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var f=0,l=1;0==(n.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(s)):(n.isub(t),s.isub(o))}return(a=0===t.cmpn(1)?o:s).cmpn(0)<0&&a.iadd(e),a},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=t.cmp(n);if(a<0){var i=t;t=n,n=i}else if(0===a||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,a=1<>>26,s&=67108863,this.words[o]=s}return 0!==i&&(this.words[o]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:ae.length)return 1;if(this.length=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){ra&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function g(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},a(g,v),g.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a>>22,i=o}i>>>=22,e.words[a-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},g.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new A;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var a=this.m.subn(1),o=0;!a.isZero()&&0===a.andln(1);)o++,a.iushrn(1);r(!a.isZero());var s=new i(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new i(2*d*d).toRed(this);0!==this.pow(d,u).cmp(c);)d.redIAdd(c);for(var f=this.pow(d,a),l=this.pow(e,a.addn(1).iushrn(1)),b=this.pow(e,a),p=o;0!==b.cmp(s);){for(var h=b,y=0;0!==h.cmp(s);y++)h=h.redSqr();r(y=0;r--){for(var u=t.words[r],d=c-1;d>=0;d--){var f=u>>d&1;a!==n[0]&&(a=this.sqr(a)),0!==f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===d)&&(a=this.mul(a,n[o]),s=0,o=0)):s=0}c=26}return a},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new k(e)},a(k,_),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},7777:function(e,t,n){var r=n(64017),a=n(32270),i=n(87796),o=n(8298),s=n(30510),c=n(51132),u=n(55371),d=n(31892).Buffer;e.exports=function(e,t,n){var f;f=e.padding?e.padding:n?1:4;var l,b=r(e),p=b.modulus.byteLength();if(t.length>p||new o(t).cmp(b.modulus)>=0)throw new Error("decryption error");l=n?u(new o(t),b):s(t,b);var h=d.alloc(p-l.length);if(l=d.concat([h,l],p),4===f)return function(e,t){var n=e.modulus.byteLength(),r=c("sha1").update(d.alloc(0)).digest(),o=r.length;if(0!==t[0])throw new Error("decryption error");var s=t.slice(1,o+1),u=t.slice(o+1),f=i(s,a(u,o)),l=i(u,a(f,n-o-1));if(function(e,t){e=d.from(e),t=d.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));for(var a=-1;++a=t.length){i++;break}var o=t.slice(2,a-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&i++,o.length<8&&i++,i)throw new Error("decryption error");return t.slice(a)}(0,l,n);if(3===f)return l;throw new Error("unknown padding")}},58050:function(e,t,n){var r=n(64017),a=n(41753),i=n(51132),o=n(32270),s=n(87796),c=n(8298),u=n(55371),d=n(30510),f=n(31892).Buffer;e.exports=function(e,t,n){var l;l=e.padding?e.padding:n?1:4;var b,p=r(e);if(4===l)b=function(e,t){var n=e.modulus.byteLength(),r=t.length,u=i("sha1").update(f.alloc(0)).digest(),d=u.length,l=2*d;if(r>n-l-2)throw new Error("message too long");var b=f.alloc(n-r-l-2),p=n-d-1,h=a(d),y=s(f.concat([u,b,f.alloc(1,1),t],p),o(h,p)),m=s(h,o(y,d));return new c(f.concat([f.alloc(1),m,y],n))}(p,t);else if(1===l)b=function(e,t,n){var r,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw new Error("message too long");return r=n?f.alloc(o-i-3,255):function(e){for(var t,n=f.allocUnsafe(e),r=0,i=a(2*e),o=0;r=0)throw new Error("data too long for modulus")}return n?d(b,p):u(b,p)}},55371:function(e,t,n){var r=n(8298),a=n(31892).Buffer;e.exports=function(e,t){return a.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},87796:function(e){e.exports=function(e,t){for(var n=e.length,r=-1;++r0&&c>s&&(c=s);for(var u=0;u=0?(d=p.substr(0,h),f=p.substr(h+1)):(d=p,f=""),l=decodeURIComponent(d),b=decodeURIComponent(f),t(i,l)?Array.isArray(i[l])?i[l].push(b):i[l]=[i[l],b]:i[l]=b}return i}},51974:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,a){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(a){var i=encodeURIComponent(t(a))+r;return Array.isArray(e[a])?e[a].map((function(e){return i+encodeURIComponent(t(e))})).join(n):i+encodeURIComponent(t(e[a]))})).join(n):a?encodeURIComponent(t(a))+r+encodeURIComponent(t(e)):""}},83922:function(e,t,n){"use strict";t.decode=t.parse=n(49093),t.encode=t.stringify=n(51974)},41753:function(e,t,n){"use strict";var r=n(32375),a=65536,i=n(31892).Buffer,o=n.g.crypto||n.g.msCrypto;o&&o.getRandomValues?e.exports=function(e,t){if(e>4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(e);if(e>0)if(e>a)for(var s=0;sd||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function l(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>d||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>c)throw new RangeError("buffer too small")}function b(e,t,n,a){if(r.browser){var i=e.buffer,s=new Uint8Array(i,t,n);return u.getRandomValues(s),a?void r.nextTick((function(){a(null,e)})):e}if(!a)return o(n).copy(e,t),e;o(n,(function(n,r){if(n)return a(n);r.copy(e,t),a(null,e)}))}u&&u.getRandomValues||!r.browser?(t.randomFill=function(e,t,r,a){if(!(s.isBuffer(e)||e instanceof n.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)a=t,t=0,r=e.length;else if("function"==typeof r)a=r,r=e.length-t;else if("function"!=typeof a)throw new TypeError('"cb" argument must be a function');return f(t,e.length),l(r,t,e.length),b(e,t,r,a)},t.randomFillSync=function(e,t,r){if(void 0===t&&(t=0),!(s.isBuffer(e)||e instanceof n.g.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return f(t,e.length),void 0===r&&(r=e.length-t),l(r,t,e.length),b(e,t,r)}):(t.randomFill=a,t.randomFillSync=a)},68181:function(e,t,n){"use strict";var r=n(53250),a=n(70059);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n

diff --git a/wormhole-connect/src/components/AlertBanner.tsx b/wormhole-connect/src/components/AlertBanner.tsx index 15d4bd700..81a79b79f 100644 --- a/wormhole-connect/src/components/AlertBanner.tsx +++ b/wormhole-connect/src/components/AlertBanner.tsx @@ -3,7 +3,6 @@ import { makeStyles } from 'tss-react/mui'; import { joinClass, OPACITY } from '../utils/style'; import AlertIcon from '../icons/Alert'; import { Collapse } from '@mui/material'; -import { usePrevious } from '../utils'; const useStyles = makeStyles()((theme) => ({ base: { diff --git a/wormhole-connect/src/components/ConnectWallet.tsx b/wormhole-connect/src/components/ConnectWallet.tsx index e364b5dc7..471ee17d5 100644 --- a/wormhole-connect/src/components/ConnectWallet.tsx +++ b/wormhole-connect/src/components/ConnectWallet.tsx @@ -51,15 +51,18 @@ const useStyles = makeStyles()((theme) => ({ type Props = { type: TransferWallet; + disabled?: boolean; }; + function ConnectWallet(props: Props) { + const { disabled = false, type } = props; const { classes } = useStyles(); const dispatch = useDispatch(); - const wallet = useSelector((state: RootState) => state.wallet[props.type]); + const wallet = useSelector((state: RootState) => state.wallet[type]); const connect = async (popupState?: any) => { if (popupState) popupState.close(); - dispatch(setWalletModal(props.type)); + dispatch(setWalletModal(type)); }; const copy = async (popupState: any) => { @@ -68,50 +71,67 @@ function ConnectWallet(props: Props) { }; const disconnectWallet = async () => { - dispatch(clearWallet(props.type)); + dispatch(clearWallet(type)); }; return wallet && wallet.address ? ( - {(popupState) => ( -
-
- - {displayWalletAddress(wallet.type, wallet.address)} - -
- -
-
copy(popupState)} - > - Copy address -
-
connect(popupState)} - > - Change wallet -
-
- Disconnect -
+ {(popupState) => { + const { onClick: triggerPopup, ...boundProps } = + bindTrigger(popupState); + + const onClick = (e: React.MouseEvent) => { + if (disabled) return; + triggerPopup(e); + }; + + return ( +
+
+ + {displayWalletAddress(wallet.type, wallet.address)} + {!disabled && }
- -
- )} + +
+
copy(popupState)} + > + Copy address +
+
connect(popupState)} + > + Change wallet +
+
+ Disconnect +
+
+
+
+ ); + }} ) : (
connect()}> diff --git a/wormhole-connect/src/components/InputTransparent.tsx b/wormhole-connect/src/components/InputTransparent.tsx index a76073c78..788ec01a0 100644 --- a/wormhole-connect/src/components/InputTransparent.tsx +++ b/wormhole-connect/src/components/InputTransparent.tsx @@ -80,7 +80,7 @@ function InputTransparent(props: Props) { }, 1000), ); } - }, []); + }, [props.id, props.onPause]); return ( config.tokens!.includes(c.symbol)) + ? Object.values(TOKENS).filter((c) => config.tokens!.includes(c.key)) : (Object.values(TOKENS) as TokenConfig[]); +export const GAS_ESTIMATES = isProduction + ? MAINNET_GAS_ESTIMATES + : TESTNET_GAS_ESTIMATES; + export const THEME_MODE = config && config.mode ? config.mode : 'dark'; export const CUSTOM_THEME = config && config.customTheme; export const THEME = CUSTOM_THEME @@ -71,6 +84,8 @@ export const THEME = CUSTOM_THEME : light; export const CTA = config && config.cta; +export const BRIDGE_DEFAULTS = + config && validateDefaults(config.bridgeDefaults); export const TESTNET_TO_MAINNET_CHAIN_NAMES: { [k in TestnetChainName]: MainnetChainName; diff --git a/wormhole-connect/src/config/mainnet.ts b/wormhole-connect/src/config/mainnet.ts index 09462ae95..819801b16 100644 --- a/wormhole-connect/src/config/mainnet.ts +++ b/wormhole-connect/src/config/mainnet.ts @@ -1,5 +1,5 @@ import { CONFIG } from '@wormhole-foundation/wormhole-connect-sdk'; -import { NetworksConfig, TokenConfig, Icon } from './types'; +import { NetworksConfig, TokenConfig, Icon, GasEstimates } from './types'; const { chains } = CONFIG.MAINNET; @@ -96,6 +96,7 @@ export const MAINNET_NETWORKS: NetworksConfig = { export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { ETH: { + key: 'ETH', symbol: 'ETH', nativeNetwork: 'ethereum', icon: Icon.ETH, @@ -106,6 +107,7 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { wrappedAsset: 'WETH', }, WETH: { + key: 'WETH', symbol: 'WETH', nativeNetwork: 'ethereum', icon: Icon.ETH, @@ -118,7 +120,78 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { decimals: 18, solDecimals: 8, }, + USDCeth: { + key: 'USDCeth', + symbol: 'USDC', + nativeNetwork: 'ethereum', + icon: Icon.USDC, + tokenId: { + chain: 'ethereum', + address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48', + }, + coinGeckoId: 'usd-coin', + color: '#ffffff', + decimals: 6, + solDecimals: 6, + }, + WBTC: { + key: 'WBTC', + symbol: 'WBTC', + nativeNetwork: 'ethereum', + icon: Icon.WBTC, + tokenId: { + chain: 'ethereum', + address: '0x2260fac5e5542a773aa44fbcfedf7c193bc2c599', + }, + coinGeckoId: 'wrapped-bitcoin', + color: '#ffffff', + decimals: 8, + solDecimals: 8, + }, + USDT: { + key: 'USDT', + symbol: 'USDT', + nativeNetwork: 'ethereum', + icon: Icon.USDT, + tokenId: { + chain: 'ethereum', + address: '0xdac17f958d2ee523a2206206994597c13d831ec7', + }, + coinGeckoId: 'tether', + color: '#ffffff', + decimals: 6, + solDecimals: 6, + }, + DAI: { + key: 'DAI', + symbol: 'DAI', + nativeNetwork: 'ethereum', + icon: Icon.DAI, + tokenId: { + chain: 'ethereum', + address: '0x6b175474e89094c44da98b954eedeac495271d0f', + }, + coinGeckoId: 'dai', + color: '#FEFEFD', + decimals: 18, + solDecimals: 8, + }, + BUSD: { + key: 'BUSD', + symbol: 'BUSD', + nativeNetwork: 'ethereum', + icon: Icon.BUSD, + tokenId: { + chain: 'ethereum', + address: '0x4fabb145d64652a948d72533023f6e7a623c7c53', + }, + coinGeckoId: 'binance-usd', + color: '#F0B90B', + decimals: 18, + solDecimals: 8, + }, MATIC: { + key: 'MATIC', symbol: 'MATIC', nativeNetwork: 'polygon', icon: Icon.POLYGON, @@ -129,6 +202,7 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { wrappedAsset: 'WMATIC', }, WMATIC: { + key: 'WMATIC', symbol: 'WMATIC', nativeNetwork: 'polygon', icon: Icon.POLYGON, @@ -141,7 +215,22 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { decimals: 18, solDecimals: 8, }, + USDCpolygon: { + key: 'USDCpolygon', + symbol: 'USDC', + nativeNetwork: 'polygon', + icon: Icon.USDC, + tokenId: { + chain: 'polygon', + address: '0x2791bca1f2de4661ed88a30c99a7a9449aa84174', + }, + coinGeckoId: 'usd-coin', + color: '#2774CA', + decimals: 6, + solDecimals: 6, + }, BNB: { + key: 'BNB', symbol: 'BNB', nativeNetwork: 'bsc', icon: Icon.BNB, @@ -152,6 +241,7 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { wrappedAsset: 'WBNB', }, WBNB: { + key: 'WBNB', symbol: 'WBNB', nativeNetwork: 'bsc', icon: Icon.BNB, @@ -164,7 +254,22 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { decimals: 18, solDecimals: 8, }, + USDCbnb: { + key: 'USDCbnb', + symbol: 'USDC', + nativeNetwork: 'bsc', + icon: Icon.USDC, + tokenId: { + chain: 'bsc', + address: '0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d', + }, + coinGeckoId: 'usd-coin', + color: '#2774CA', + decimals: 18, + solDecimals: 8, + }, AVAX: { + key: 'AVAX', symbol: 'AVAX', nativeNetwork: 'avalanche', icon: Icon.AVAX, @@ -175,6 +280,7 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { wrappedAsset: 'WAVAX', }, WAVAX: { + key: 'WAVAX', symbol: 'WAVAX', nativeNetwork: 'avalanche', icon: Icon.AVAX, @@ -187,7 +293,22 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { decimals: 18, solDecimals: 8, }, + USDCavax: { + key: 'USDCavax', + symbol: 'USDC', + nativeNetwork: 'avalanche', + icon: Icon.USDC, + tokenId: { + chain: 'avalanche', + address: '0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E', + }, + coinGeckoId: 'usd-coin', + color: '#2774CA', + decimals: 6, + solDecimals: 6, + }, FTM: { + key: 'FTM', symbol: 'FTM', nativeNetwork: 'fantom', icon: Icon.FANTOM, @@ -198,6 +319,7 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { wrappedAsset: 'WFTM', }, WFTM: { + key: 'WFTM', symbol: 'WFTM', nativeNetwork: 'fantom', icon: Icon.FANTOM, @@ -211,6 +333,7 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { solDecimals: 8, }, CELO: { + key: 'CELO', symbol: 'CELO', nativeNetwork: 'celo', icon: Icon.CELO, @@ -224,6 +347,7 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { solDecimals: 8, }, GLMR: { + key: 'GLMR', symbol: 'GLMR', nativeNetwork: 'moonbeam', icon: Icon.GLMR, @@ -234,6 +358,7 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { wrappedAsset: 'WGLMR', }, WGLMR: { + key: 'WGLMR', symbol: 'WGLMR', nativeNetwork: 'moonbeam', icon: Icon.GLMR, @@ -247,6 +372,7 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { solDecimals: 8, }, SOL: { + key: 'SOL', symbol: 'SOL', nativeNetwork: 'solana', icon: Icon.SOLANA, @@ -257,6 +383,7 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { wrappedAsset: 'WSOL', }, WSOL: { + key: 'WSOL', symbol: 'WSOL', nativeNetwork: 'solana', tokenId: { @@ -269,4 +396,75 @@ export const MAINNET_TOKENS: { [key: string]: TokenConfig } = { decimals: 9, solDecimals: 9, }, + USDCsol: { + key: 'USDCsol', + symbol: 'USDC', + nativeNetwork: 'solana', + tokenId: { + chain: 'solana', + address: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', + }, + icon: Icon.USDC, + coinGeckoId: 'usd-coin', + color: '#2774CA', + decimals: 6, + solDecimals: 6, + }, +}; + +export const MAINNET_GAS_ESTIMATES: GasEstimates = { + ethereum: { + sendNative: 100000, + sendToken: 150000, + sendNativeWithRelay: 200000, + sendTokenWithRelay: 300000, + claim: 300000, + }, + polygon: { + sendNative: 100000, + sendToken: 150000, + sendNativeWithRelay: 200000, + sendTokenWithRelay: 250000, + claim: 300000, + }, + bsc: { + sendNative: 100000, + sendToken: 200000, + sendNativeWithRelay: 200000, + sendTokenWithRelay: 300000, + claim: 250000, + }, + avalanche: { + sendNative: 100000, + sendToken: 150000, + sendNativeWithRelay: 200000, + sendTokenWithRelay: 300000, + claim: 300000, + }, + fantom: { + sendNative: 100000, + sendToken: 150000, + sendNativeWithRelay: 250000, + sendTokenWithRelay: 300000, + claim: 300000, + }, + celo: { + sendNative: 150000, + sendToken: 150000, + sendNativeWithRelay: 300000, + sendTokenWithRelay: 300000, + claim: 300000, + }, + moonbeam: { + sendNative: 100000, + sendToken: 150000, + sendNativeWithRelay: 200000, + sendTokenWithRelay: 300000, + claim: 300000, + }, + solana: { + sendNative: 15000, + sendToken: 15000, + claim: 25000, + }, }; diff --git a/wormhole-connect/src/config/testnet.ts b/wormhole-connect/src/config/testnet.ts index cb53bd4e2..41920ae62 100644 --- a/wormhole-connect/src/config/testnet.ts +++ b/wormhole-connect/src/config/testnet.ts @@ -96,6 +96,7 @@ export const TESTNET_NETWORKS: NetworksConfig = { export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { ETH: { + key: 'ETH', symbol: 'ETH', nativeNetwork: 'goerli', icon: Icon.ETH, @@ -106,6 +107,7 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { solDecimals: 8, }, WETH: { + key: 'WETH', symbol: 'WETH', nativeNetwork: 'goerli', icon: Icon.ETH, @@ -118,13 +120,14 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { decimals: 18, solDecimals: 8, }, - USDC: { + USDCeth: { + key: 'USDCeth', symbol: 'USDC', - nativeNetwork: 'fuji', + nativeNetwork: 'goerli', icon: Icon.USDC, tokenId: { - chain: 'fuji', - address: '0x5425890298aed601595a70AB815c96711a31Bc65', + chain: 'goerli', + address: '0x07865c6e87b9f70255377e024ace6630c1eaa37f', }, coinGeckoId: 'usd-coin', color: '#2774CA', @@ -132,6 +135,7 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { solDecimals: 6, }, MATIC: { + key: 'MATIC', symbol: 'MATIC', nativeNetwork: 'mumbai', icon: Icon.POLYGON, @@ -142,6 +146,7 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { wrappedAsset: 'WMATIC', }, WMATIC: { + key: 'WMATIC', symbol: 'WMATIC', nativeNetwork: 'mumbai', icon: Icon.POLYGON, @@ -154,7 +159,22 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { decimals: 18, solDecimals: 8, }, + USDCpolygon: { + key: 'USDCpolygon', + symbol: 'USDC', + nativeNetwork: 'mumbai', + icon: Icon.USDC, + tokenId: { + chain: 'mumbai', + address: '0x0FA8781a83E46826621b3BC094Ea2A0212e71B23', + }, + coinGeckoId: 'usd-coin', + color: '#2774CA', + decimals: 6, + solDecimals: 6, + }, BNB: { + key: 'BNB', symbol: 'BNB', nativeNetwork: 'bsc', icon: Icon.BNB, @@ -165,6 +185,7 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { wrappedAsset: 'WBNB', }, WBNB: { + key: 'WBNB', symbol: 'WBNB', nativeNetwork: 'bsc', icon: Icon.BNB, @@ -178,6 +199,7 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { solDecimals: 8, }, AVAX: { + key: 'AVAX', symbol: 'AVAX', nativeNetwork: 'fuji', icon: Icon.AVAX, @@ -188,6 +210,7 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { wrappedAsset: 'WAVAX', }, WAVAX: { + key: 'WAVAX', symbol: 'WAVAX', nativeNetwork: 'fuji', icon: Icon.AVAX, @@ -200,7 +223,22 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { decimals: 18, solDecimals: 8, }, + USDCavax: { + key: 'USDCavax', + symbol: 'USDC', + nativeNetwork: 'fuji', + icon: Icon.USDC, + tokenId: { + chain: 'fuji', + address: '0x5425890298aed601595a70AB815c96711a31Bc65', + }, + coinGeckoId: 'usd-coin', + color: '#2774CA', + decimals: 6, + solDecimals: 6, + }, FTM: { + key: 'FTM', symbol: 'FTM', nativeNetwork: 'fantom', icon: Icon.FANTOM, @@ -211,6 +249,7 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { wrappedAsset: 'WFTM', }, WFTM: { + key: 'WFTM', symbol: 'WFTM', nativeNetwork: 'fantom', icon: Icon.FANTOM, @@ -224,6 +263,7 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { solDecimals: 8, }, CELO: { + key: 'CELO', symbol: 'CELO', nativeNetwork: 'alfajores', icon: Icon.CELO, @@ -237,6 +277,7 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { solDecimals: 8, }, GLMR: { + key: 'GLMR', symbol: 'GLMR', nativeNetwork: 'moonbasealpha', icon: Icon.GLMR, @@ -247,6 +288,7 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { wrappedAsset: 'WGLMR', }, WGLMR: { + key: 'WGLMR', symbol: 'WGLMR', nativeNetwork: 'moonbasealpha', icon: Icon.GLMR, @@ -260,6 +302,7 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { solDecimals: 8, }, SOL: { + key: 'SOL', symbol: 'SOL', nativeNetwork: 'solana', icon: Icon.SOLANA, @@ -270,6 +313,7 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { wrappedAsset: 'WSOL', }, WSOL: { + key: 'WSOL', symbol: 'WSOL', nativeNetwork: 'solana', tokenId: { @@ -282,9 +326,23 @@ export const TESTNET_TOKENS: { [key: string]: TokenConfig } = { decimals: 9, solDecimals: 9, }, + USDCsol: { + key: 'USDCsol', + symbol: 'USDC', + nativeNetwork: 'solana', + tokenId: { + chain: 'solana', + address: '4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU', + }, + icon: Icon.USDC, + coinGeckoId: 'usd-coin', + color: '#2774CA', + decimals: 6, + solDecimals: 6, + }, }; -export const GAS_ESTIMATES: GasEstimates = { +export const TESTNET_GAS_ESTIMATES: GasEstimates = { goerli: { sendNative: 100000, sendToken: 150000, diff --git a/wormhole-connect/src/config/types.ts b/wormhole-connect/src/config/types.ts index 108cc4ac2..0da20637b 100644 --- a/wormhole-connect/src/config/types.ts +++ b/wormhole-connect/src/config/types.ts @@ -6,6 +6,12 @@ import { } from '@wormhole-foundation/wormhole-connect-sdk'; import { ExtendedTheme } from 'theme'; +export interface BridgeDefaults { + fromNetwork?: ChainName; + toNetwork?: ChainName; + token?: string; +} + export interface WormholeConnectConfig { env?: 'mainnet' | 'testnet'; rpcs?: Rpcs; @@ -17,9 +23,11 @@ export interface WormholeConnectConfig { text: string; link: string; }; + bridgeDefaults?: BridgeDefaults; } export type TokenConfig = { + key: string; symbol: string; nativeNetwork: ChainName; icon: Icon; @@ -57,6 +65,10 @@ export enum Icon { 'SOLANA', 'USDC', 'GLMR', + 'DAI', + 'USDT', + 'BUSD', + 'WBTC', } export type GasEstimates = { diff --git a/wormhole-connect/src/config/utils.ts b/wormhole-connect/src/config/utils.ts new file mode 100644 index 000000000..e1dc79835 --- /dev/null +++ b/wormhole-connect/src/config/utils.ts @@ -0,0 +1,57 @@ +import { CHAINS, TOKENS } from '.'; +import { BridgeDefaults } from './types'; + +const error = (msg: string) => { + console.error(`Wormhole Connect:\n${msg}`); +}; + +export const validateDefaults = (defaults: BridgeDefaults | undefined) => { + if (!defaults) return; + let validDefaults = defaults; + if (defaults.fromNetwork) { + const network = CHAINS[defaults.fromNetwork]; + if (!network) { + error( + `Invalid chain name "${defaults.fromNetwork}" specified for bridgeDefaults.fromNetwork`, + ); + validDefaults.fromNetwork = undefined; + } + } + if (defaults.toNetwork) { + const network = CHAINS[defaults.toNetwork]; + if (!network) { + error( + `Invalid chain name "${defaults.toNetwork}" specified for bridgeDefaults.toNetwork`, + ); + validDefaults.toNetwork = undefined; + } + } + if (defaults.toNetwork && defaults.fromNetwork) { + if (defaults.toNetwork === defaults.fromNetwork) { + error( + `Source and destination chain cannot be the same, check the bridgeDefaults configuration`, + ); + validDefaults.toNetwork = undefined; + } + } + if (defaults.token) { + const token = TOKENS[defaults.token]; + if (!token) { + error( + `Invalid token "${defaults.token}" specified for bridgeDefaults.token`, + ); + validDefaults.token = undefined; + } + } + if (validDefaults.fromNetwork && validDefaults.token) { + const network = CHAINS[validDefaults.fromNetwork]!; + const token = TOKENS[validDefaults.token]; + if (!token.tokenId && token.nativeNetwork !== network.key) { + error( + `Invalid token "${validDefaults.token}" specified for bridgeDefaults.token. It does not exist on "${validDefaults.fromNetwork}"`, + ); + validDefaults.token = undefined; + } + } + return validDefaults; +}; diff --git a/wormhole-connect/src/icons/TokenIcons.tsx b/wormhole-connect/src/icons/TokenIcons.tsx index e32784e4e..ff3b01545 100644 --- a/wormhole-connect/src/icons/TokenIcons.tsx +++ b/wormhole-connect/src/icons/TokenIcons.tsx @@ -17,6 +17,134 @@ const useStyles = makeStyles<{ size: number }>()((theme, { size }) => ({ export const getIcon = (icon: Icon) => { switch (icon) { + case Icon.WBTC: { + return ( + + + + + + + + + + + + ); + } + case Icon.BUSD: { + return ( + + + + + + + + + + + + + + ); + } + case Icon.USDT: { + return ( + + + + + + + + + + + + ); + } + case Icon.DAI: { + return ( + + + + + + + + + + + + ); + } case Icon.GLMR: { return ( , ) => { state.fromNetwork = payload; + // clear balances if the network changes; + state.balances = {}; const { fromNetwork, token } = state; if (token) { const tokenConfig = TOKENS[token]; - // clear token if not supported on the selected network + // clear token and amount if not supported on the selected network if (!tokenConfig.tokenId && tokenConfig.nativeNetwork !== fromNetwork) { state.token = ''; + state.amount = undefined; } } }, @@ -137,6 +140,9 @@ export const transferSlice = createSlice({ state: TransferState, { payload }: PayloadAction, ) => { + if (payload === PaymentOption.MANUAL) { + state.maxSwapAmt = undefined; + } state.destGasPayment = payload; }, // transfer calculations diff --git a/wormhole-connect/src/utils/index.ts b/wormhole-connect/src/utils/index.ts index c8e10624b..a07b7257a 100644 --- a/wormhole-connect/src/utils/index.ts +++ b/wormhole-connect/src/utils/index.ts @@ -65,7 +65,7 @@ export function getWrappedToken(token: TokenConfig): TokenConfig { // otherwise get wrapped token if (!token.tokenId && !token.wrappedAsset) - throw new Error(`token details misconfigured for ${token.symbol}`); + throw new Error(`token details misconfigured for ${token.key}`); if (!token.tokenId && token.wrappedAsset) { const wrapped = TOKENS[token.wrappedAsset]; if (!wrapped) throw new Error('wrapped token not found'); diff --git a/wormhole-connect/src/utils/style.ts b/wormhole-connect/src/utils/style.ts index b2ad9c7c7..80c293736 100644 --- a/wormhole-connect/src/utils/style.ts +++ b/wormhole-connect/src/utils/style.ts @@ -38,6 +38,7 @@ export const LINK = (theme: Theme) => ({ display: 'flex', alignItems: 'center', gap: '8px', + cursor: 'pointer', }); export const CENTER = { diff --git a/wormhole-connect/src/utils/transferValidation.ts b/wormhole-connect/src/utils/transferValidation.ts index 6a0681669..4d0a5a6bc 100644 --- a/wormhole-connect/src/utils/transferValidation.ts +++ b/wormhole-connect/src/utils/transferValidation.ts @@ -103,7 +103,16 @@ async function checkAddressIsSanctioned(address: string): Promise { }, ); - if (res.status !== 200) return false; + if (res.status !== 200) { + // set cache so it stops making requests + if (res.status === 429) { + trmCache[address] = { + address, + isSanctioned: false, + }; + } + return false; + } const data = await res.json(); trmCache[address] = data[0]; diff --git a/wormhole-connect/src/utils/wallet.ts b/wormhole-connect/src/utils/wallet.ts index 79ad6adcb..c8fe94c28 100644 --- a/wormhole-connect/src/utils/wallet.ts +++ b/wormhole-connect/src/utils/wallet.ts @@ -132,7 +132,10 @@ export const signSolanaTransaction = async ( throw new Error('wallet.signAndSendTransaction is undefined'); } - const tx = await wallet?.signAndSendTransaction(transaction); + const tx = await (wallet as SolanaWallet).signAndSendTransaction({ + transaction, + options, + }); return { transactionHash: tx.id }; }; diff --git a/wormhole-connect/src/views/Bridge/Bridge.tsx b/wormhole-connect/src/views/Bridge/Bridge.tsx index 6375f0e8b..ca5caaa27 100644 --- a/wormhole-connect/src/views/Bridge/Bridge.tsx +++ b/wormhole-connect/src/views/Bridge/Bridge.tsx @@ -54,7 +54,6 @@ function Bridge() { fromNetwork, toNetwork, token, - amount, destGasPayment, automaticRelayAvail, toNativeToken, @@ -80,7 +79,7 @@ function Bridge() { setReceiverNativeBalance(toDecimals(res, tokenConfig.decimals, 6)), ); }); - }, [fromNetwork, toNetwork, receiving.address]); + }, [fromNetwork, toNetwork, receiving.address, dispatch]); // check if automatic relay option is available useEffect(() => { @@ -102,7 +101,7 @@ function Bridge() { } else { dispatch(disableAutomaticTransfer()); } - }, [fromNetwork, toNetwork, token]); + }, [fromNetwork, toNetwork, token, dispatch]); // validate transfer inputs useEffect(() => { @@ -120,6 +119,7 @@ function Bridge() { foreignAsset, associatedTokenAddress, balances, + dispatch, ]); const valid = isTransferValid(validations); diff --git a/wormhole-connect/src/views/Bridge/Collapse.tsx b/wormhole-connect/src/views/Bridge/Collapse.tsx index 602cb5d45..ed0d925f3 100644 --- a/wormhole-connect/src/views/Bridge/Collapse.tsx +++ b/wormhole-connect/src/views/Bridge/Collapse.tsx @@ -50,6 +50,8 @@ const useStyles = makeStyles()((theme) => ({ backgroundColor: theme.palette.info[500], padding: '8px 16px', transition: 'border-radius 0.4s', + display: 'flex', + flexDirection: 'row', }, open: { borderBottomLeftRadius: '0 !important', @@ -60,8 +62,8 @@ const useStyles = makeStyles()((theme) => ({ cursor: 'not-allowed !important', }, link: { - ...LINK, - color: theme.palette.text.primary, + ...LINK(theme), + margin: '0 0 0 4px', }, })); @@ -85,18 +87,19 @@ type Props = { function BridgeCollapse(props: Props) { const { classes } = useStyles(); + const { onCollapseChange } = props; const [collapsed, setCollapsed] = React.useState(props.close || false); const toggleCollapsed = useCallback(() => { if (props.disabled) return; setCollapsed((prev) => !prev); - }, [collapsed, props.disabled, props.onCollapseChange]); + }, [props.disabled]); - const onCollapseChange = useCallback(() => { - if (props.onCollapseChange) { - props.onCollapseChange(collapsed); + const onChange = useCallback(() => { + if (onCollapseChange) { + onCollapseChange(collapsed); } - }, [collapsed, props.onCollapseChange]); + }, [collapsed, onCollapseChange]); const relayAvail = useSelector( (state: RootState) => state.transfer.automaticRelayAvail, @@ -144,7 +147,7 @@ function BridgeCollapse(props: Props) { !collapsedState && classes.open, ])} > - This feature provided by{' '} + This feature provided by )} - + {props.children}
diff --git a/wormhole-connect/src/views/Bridge/GasOptions.tsx b/wormhole-connect/src/views/Bridge/GasOptions.tsx index 709475211..b848f8ca1 100644 --- a/wormhole-connect/src/views/Bridge/GasOptions.tsx +++ b/wormhole-connect/src/views/Bridge/GasOptions.tsx @@ -153,7 +153,15 @@ function GasOptions(props: { disabled: boolean }) { ), description, }); - }, [token, selectedOption, fromNetwork, toNetwork, gasEst, relayerFee]); + }, [ + token, + selectedOption, + fromNetwork, + toNetwork, + gasEst, + relayerFee, + automaticRelayAvail, + ]); return ( state.transfer); const tokenConfig = token && TOKENS[token]; @@ -57,18 +58,18 @@ function FromInputs() { getBalance(wallet.address, tokenConfig.tokenId, fromNetwork).then( (res: BigNumber | null) => { const balance = formatBalance(fromNetwork, tokenConfig, res); - setBalance(balance[tokenConfig.symbol]); + setBalance(balance[tokenConfig.key]); dispatch(setStoreBalance(balance)); }, ); } else { getNativeBalance(wallet.address, fromNetwork).then((res: BigNumber) => { const balance = formatBalance(fromNetwork, tokenConfig, res); - setBalance(balance[tokenConfig.symbol]); + setBalance(balance[tokenConfig.key]); dispatch(setStoreBalance(balance)); }); } - }, [tokenConfig, fromNetwork, wallet.address]); + }, [tokenConfig, fromNetwork, wallet.address, dispatch]); // token input jsx const selectedToken = tokenConfig @@ -80,6 +81,7 @@ function FromInputs() { selected={selectedToken} error={!!(showErrors && validations.token)} onClick={openTokensModal} + disabled={!fromNetwork || !wallet.address || isTransactionInProgress} editable /> ); @@ -88,9 +90,9 @@ function FromInputs() { const amountInput = ( {token ? ( ) : (
-
diff --git a/wormhole-connect/src/views/Bridge/Inputs.tsx/Inputs.tsx b/wormhole-connect/src/views/Bridge/Inputs.tsx/Inputs.tsx index 1e62f701b..d5dc57496 100644 --- a/wormhole-connect/src/views/Bridge/Inputs.tsx/Inputs.tsx +++ b/wormhole-connect/src/views/Bridge/Inputs.tsx/Inputs.tsx @@ -120,7 +120,7 @@ type Props = { function Inputs(props: Props) { const { classes } = useStyles(); - const { validate: showErrors } = useSelector( + const { validate: showErrors, isTransactionInProgress } = useSelector( (state: RootState) => state.transfer, ); @@ -138,7 +138,10 @@ function Inputs(props: Props) {
{props.title}
{/* connect wallet button */} - +
{/* wallet validation error banner */} @@ -167,6 +170,7 @@ function Inputs(props: Props) { network={networkConfig} error={!!(showErrors && props.networkValidation)} onClick={props.onNetworkClick} + disabled={isTransactionInProgress} />
)} @@ -182,6 +186,7 @@ function Inputs(props: Props) { error={!!(showErrors && props.networkValidation)} onClick={props.onNetworkClick} editable + disabled={isTransactionInProgress} />
)} diff --git a/wormhole-connect/src/views/Bridge/Inputs.tsx/Select.tsx b/wormhole-connect/src/views/Bridge/Inputs.tsx/Select.tsx index 2781d3af4..3246ac5fa 100644 --- a/wormhole-connect/src/views/Bridge/Inputs.tsx/Select.tsx +++ b/wormhole-connect/src/views/Bridge/Inputs.tsx/Select.tsx @@ -22,24 +22,33 @@ type Props = { selected: Selected | undefined; error?: boolean; editable?: boolean; + disabled?: boolean; onClick?: any; }; function Select(props: Props) { const { classes } = useStyles(); + const handleClick = () => { + if (props.editable && !props.disabled) { + props.onClick(); + } + }; + return ( {props.selected ? (
{props.selected.text}
+ ) : props.disabled ? ( + '-' ) : (
diff --git a/wormhole-connect/src/views/Bridge/Inputs.tsx/To.tsx b/wormhole-connect/src/views/Bridge/Inputs.tsx/To.tsx index e7b83c41d..208910e92 100644 --- a/wormhole-connect/src/views/Bridge/Inputs.tsx/To.tsx +++ b/wormhole-connect/src/views/Bridge/Inputs.tsx/To.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react'; +import React, { useCallback, useEffect, useMemo, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import { BigNumber } from 'ethers'; import { makeStyles } from 'tss-react/mui'; @@ -18,7 +18,8 @@ import Input from './Input'; import Select from './Select'; import InputTransparent from '../../../components/InputTransparent'; import { getWrappedToken, getWrappedTokenId } from '../../../utils'; -import { Link, Typography } from '@mui/material'; +import { CircularProgress, Link, Typography } from '@mui/material'; +import { joinClass } from '../../../utils/style'; const { REACT_APP_ATTEST_URL } = process.env; @@ -31,18 +32,72 @@ const useStyles = makeStyles()((theme) => ({ link: { textDecoration: 'underline', opacity: '0.8', - marginTop: '4px', padding: '4px 0', cursor: 'pointer', '&:hover': { opacity: '1', }, }, + disabled: { + cursor: 'not-allowed', + opacity: '0.6', + '&:hover': { + opacity: '0.6', + }, + }, + inProgress: { + marginRight: '8px', + }, + error: { + color: theme.palette.error[500], + marginTop: '4px', + }, })); +type Props = { + createAssociatedTokenAccount: any; +}; +function AssociatedTokenWarning(props: Props) { + const { classes } = useStyles(); + const [inProgress, setInProgress] = useState(false); + const [error, setError] = useState(''); + + const createAccount = async () => { + // if `createAccount` is already in progress, disable function + if (inProgress) return; + setInProgress(true); + setError(''); + try { + await props.createAssociatedTokenAccount(); + setError(''); + } catch (e) { + setError('Encountered an error, please try again.'); + console.error(e); + } finally { + setInProgress(false); + } + }; + + return ( +
+ No associated token account exists for your wallet on Solana. You must + create it before proceeding. + {error &&
{error}
} +
+ {inProgress && ( + + )} + Create account +
+
+ ); +} + function ToInputs() { const dispatch = useDispatch(); - const { classes } = useStyles(); const [balance, setBalance] = useState(undefined as string | undefined); const [warnings, setWarnings] = useState([] as any[]); @@ -55,7 +110,9 @@ function ToInputs() { foreignAsset, associatedTokenAddress, } = useSelector((state: RootState) => state.transfer); - const wallet = useSelector((state: RootState) => state.wallet.receiving); + const { sending, receiving } = useSelector( + (state: RootState) => state.wallet, + ); const tokenConfig = TOKENS[token]; @@ -63,19 +120,19 @@ function ToInputs() { // get balance on destination chain useEffect(() => { - if (!fromNetwork || !toNetwork || !tokenConfig || !wallet.address) { + if (!fromNetwork || !toNetwork || !tokenConfig || !receiving.address) { return setBalance(undefined); } const { tokenId } = tokenConfig.tokenId ? tokenConfig : TOKENS[tokenConfig.wrappedAsset!]; - getBalance(wallet.address, tokenId!, toNetwork).then( + getBalance(receiving.address, tokenId!, toNetwork).then( (res: BigNumber | null) => { const balance = formatBalance(toNetwork, tokenConfig, res); - setBalance(balance[tokenConfig.symbol]); + setBalance(balance[tokenConfig.key]); }, ); - }, [tokenConfig, fromNetwork, toNetwork, wallet.address]); + }, [tokenConfig, fromNetwork, toNetwork, receiving.address]); // check if the destination token contract is deployed useEffect(() => { @@ -98,14 +155,20 @@ function ToInputs() { dispatch(setForeignAsset(address || '')); }; checkWrappedTokenExists(); - }, [toNetwork, token]); + }, [toNetwork, token, dispatch]); // token display jsx const symbol = tokenConfig && getWrappedToken(tokenConfig).symbol; const selectedToken = tokenConfig ? { icon: tokenConfig.icon, text: symbol } : undefined; - const tokenInput = + ); // amount display jsx const amountInput = ( @@ -114,27 +177,8 @@ function ToInputs() { ); - // the associated token account address is deterministic, so we still - // need to check if there is an account created for that address - const checkSolanaAssociatedTokenAccount = async (): Promise => { - if (!foreignAsset) return false; - let tokenId = tokenConfig.tokenId || getWrappedTokenId(tokenConfig); - const account = await solanaContext().getAssociatedTokenAccount( - tokenId, - wallet.address, - ); - if (account) { - dispatch(setAssociatedTokenAddress(account.toString())); - setWarnings([]); - return true; - } else { - setWarnings([associatedTokenWarning]); - return false; - } - }; - - const createAssociatedTokenAccount = async () => { - if (!wallet.address || !token) + const createAssociatedTokenAccount = useCallback(async () => { + if (!receiving.address || !token) throw new Error( 'Must fill in all fields before you can create a token account', ); @@ -145,7 +189,7 @@ function ToInputs() { const tokenId = getWrappedTokenId(tokenConfig); const tx = await solanaContext().createAssociatedTokenAccount( tokenId, - wallet.address, + receiving.address, 'finalized', ); // if `tx` is null it means the account already exists @@ -154,53 +198,92 @@ function ToInputs() { let accountExists = false; let retries = 0; - const checkAccount = setInterval(async () => { - if (accountExists || retries > 10) { - clearInterval(checkAccount); - } else { - accountExists = await checkSolanaAssociatedTokenAccount(); - retries += 1; - } - }, 1000); - }; + return await new Promise((resolve) => { + const checkAccount = setInterval(async () => { + if (accountExists || retries > 20) { + clearInterval(checkAccount); + resolve(true); + } else { + accountExists = await checkSolanaAssociatedTokenAccount(); + retries += 1; + } + }, 1000); + }); + }, [token, receiving, foreignAsset, tokenConfig]); // destination token warnings - const tokenWarning = ( - - This token is not registered, you must{' '} - - register - {' '} - it before you continue. Newly registered tokens will not have liquid - markets. - + const tokenWarning = useMemo( + () => ( + + This token is not registered, you must{' '} + + register + {' '} + it before you continue. Newly registered tokens will not have liquid + markets. + + ), + [], ); - const associatedTokenWarning = ( -
- No associated token account exists for your wallet on Solana. You must - create it before proceeding. -
- Create account -
-
+ const associatedTokenWarning = useMemo( + () => ( + + ), + [createAssociatedTokenAccount], ); + // the associated token account address is deterministic, so we still + // need to check if there is an account created for that address + const checkSolanaAssociatedTokenAccount = + useCallback(async (): Promise => { + if (!foreignAsset) return false; + let tokenId = tokenConfig.tokenId || getWrappedTokenId(tokenConfig); + const account = await solanaContext().getAssociatedTokenAccount( + tokenId, + receiving.address, + ); + if (account) { + dispatch(setAssociatedTokenAddress(account.toString())); + setWarnings([]); + return true; + } else { + setWarnings([associatedTokenWarning]); + return false; + } + }, [ + foreignAsset, + tokenConfig, + receiving, + dispatch, + associatedTokenWarning, + ]); + useEffect(() => { - if (!toNetwork || !token || !wallet.address) return setWarnings([]); + if (!toNetwork || !token || !receiving.address) return setWarnings([]); if (!foreignAsset) return setWarnings([tokenWarning]); if (toNetwork === 'solana') { checkSolanaAssociatedTokenAccount(); } else { setWarnings([]); } - }, [toNetwork, token, foreignAsset, wallet, associatedTokenAddress]); + }, [ + toNetwork, + token, + foreignAsset, + receiving, + associatedTokenAddress, + tokenWarning, + checkSolanaAssociatedTokenAccount, + ]); return ( ({ tokensContainer: { @@ -202,6 +202,7 @@ function TokensModal() { // listen for close event const closeTokensModal = () => { dispatch(setTokensModal(false)); + setTokens(networkTokens); }; // select token @@ -222,7 +223,7 @@ function TokensModal() { const getBalances = async ( tokens: TokenConfig[], walletAddr: string, - chain: ChainName | ChainId, + chain: ChainName, ) => { // fetch all N tokens and trigger a single update action const balances = await Promise.all( @@ -255,19 +256,18 @@ function TokensModal() { setTokens(networkTokens); }, [networkTokens]); - // TODO: filter out tokens that don't exist useEffect(() => { // filter only when a wallet is connected AND a network is selected - const filtered = - fromNetwork && walletAddr - ? networkTokens.filter( - (t) => - tokenBalances[t.symbol] !== undefined && - tokenBalances[t.symbol] !== null, - ) - : networkTokens; + if (!fromNetwork || !walletAddr) { + setTokens(networkTokens); + return; + } + const filtered = networkTokens.filter((t) => { + const b = tokenBalances[t.key]; + return b !== null && b !== '0'; + }); setTokens(filtered); - }, [tokenBalances, networkTokens, walletAddr]); + }, [fromNetwork, tokenBalances, networkTokens, walletAddr]); return ( selectToken(token.symbol)} + onClick={() => selectToken(token.key)} >
@@ -316,8 +316,8 @@ function TokensModal() {
Balance
- {tokenBalances[token.symbol] && walletAddr ? ( -
{tokenBalances[token.symbol]}
+ {tokenBalances[token.key] && walletAddr ? ( +
{tokenBalances[token.key]}
) : fromNetwork && walletAddr ? ( ) : ( @@ -363,13 +363,6 @@ function TokensModal() { */}
- -
); } diff --git a/wormhole-connect/src/views/Bridge/NativeGasSlider.tsx b/wormhole-connect/src/views/Bridge/NativeGasSlider.tsx index 892227414..57b8d2b49 100644 --- a/wormhole-connect/src/views/Bridge/NativeGasSlider.tsx +++ b/wormhole-connect/src/views/Bridge/NativeGasSlider.tsx @@ -150,7 +150,7 @@ function GasSlider(props: { disabled: boolean }) { getConversion(token, gasToken).then((res: number) => { setState({ ...state, conversionRate: res }); }); - }, [sendingToken, toNetwork, destGasPayment]); + }, [sendingToken, toNetwork, destGasPayment, token, dispatch]); function Thumb(props: ThumbProps) { const { children, ...other } = props; diff --git a/wormhole-connect/src/views/Bridge/NetworkTile.tsx b/wormhole-connect/src/views/Bridge/NetworkTile.tsx index 02cdb6445..ed4c92826 100644 --- a/wormhole-connect/src/views/Bridge/NetworkTile.tsx +++ b/wormhole-connect/src/views/Bridge/NetworkTile.tsx @@ -41,17 +41,25 @@ type Props = { network?: NetworkConfig; onClick: React.MouseEventHandler; error?: boolean; + disabled?: boolean; }; function NetworkTile(props: Props) { + const { disabled = false } = props; const { classes } = useStyles(); + + const onClick = (e: React.MouseEvent) => { + if (disabled) return; + props.onClick(e); + }; + return props.network ? (
Network
@@ -64,7 +72,7 @@ function NetworkTile(props: Props) { classes.networkNone, !!props.error && classes.error, ])} - onClick={props.onClick} + onClick={onClick} >
Select network
diff --git a/wormhole-connect/src/views/Bridge/Preview.tsx b/wormhole-connect/src/views/Bridge/Preview.tsx index c665bdf67..cdbff9317 100644 --- a/wormhole-connect/src/views/Bridge/Preview.tsx +++ b/wormhole-connect/src/views/Bridge/Preview.tsx @@ -159,6 +159,7 @@ function Preview(props: { collapsed: boolean }) { toNativeToken, receiveNativeAmt, gasEst, + dispatch, ]); return ( diff --git a/wormhole-connect/src/views/Bridge/Send.tsx b/wormhole-connect/src/views/Bridge/Send.tsx index 9af911e83..02d640655 100644 --- a/wormhole-connect/src/views/Bridge/Send.tsx +++ b/wormhole-connect/src/views/Bridge/Send.tsx @@ -1,6 +1,8 @@ -import React, { useEffect, useState } from 'react'; +import React, { useCallback, useEffect, useState } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { Context } from '@wormhole-foundation/wormhole-connect-sdk'; +import { useTheme } from '@mui/material/styles'; +import { makeStyles } from 'tss-react/mui'; import { CHAINS, TOKENS } from '../../config'; import { @@ -30,9 +32,8 @@ import { import Button from '../../components/Button'; import CircularProgress from '@mui/material/CircularProgress'; import AlertBanner from '../../components/AlertBanner'; -import { Link, Typography } from '@mui/material'; -import { makeStyles } from 'tss-react/mui'; import PoweredByIcon from '../../icons/PoweredBy'; +import { LINK } from '../../utils/style'; const useStyles = makeStyles()((theme) => ({ body: { @@ -46,13 +47,21 @@ const useStyles = makeStyles()((theme) => ({ marginTop: '24px', }, tosDisclaimer: { + display: 'flex', + flexDirection: 'row', marginBottom: 5, marginLeft: 16, + fontSize: '12px', + }, + link: { + ...LINK(theme), + margin: '0 0 0 4px', }, })); function Send(props: { valid: boolean }) { const { classes } = useStyles(); + const theme = useTheme(); const dispatch = useDispatch(); const wallets = useSelector((state: RootState) => state.wallet); const { sending, receiving } = wallets; @@ -123,34 +132,46 @@ function Send(props: { valid: boolean }) { } } - const setSendingGas = async (gasPayment: PaymentOption) => { - const tokenConfig = TOKENS[token]!; - if (!tokenConfig) return; - const sendToken = tokenConfig.tokenId; - - const gasFee = await estimateSendGasFee( - sendToken || 'native', - `${amount}`, - fromNetwork!, - sending.address, - toNetwork!, - receiving.address, - gasPayment, - `${toNativeToken}`, - ); - if (gasPayment === PaymentOption.MANUAL) { - dispatch(setManualGasEst(gasFee)); - } else { - dispatch(setAutomaticGasEst(gasFee)); - } - }; + const setSendingGas = useCallback( + async (gasPayment: PaymentOption) => { + const tokenConfig = TOKENS[token]!; + if (!tokenConfig) return; + const sendToken = tokenConfig.tokenId; + + const gasFee = await estimateSendGasFee( + sendToken || 'native', + `${amount}`, + fromNetwork!, + sending.address, + toNetwork!, + receiving.address, + gasPayment, + `${toNativeToken}`, + ); + if (gasPayment === PaymentOption.MANUAL) { + dispatch(setManualGasEst(gasFee)); + } else { + dispatch(setAutomaticGasEst(gasFee)); + } + }, + [ + token, + amount, + fromNetwork, + sending, + toNetwork, + receiving, + toNativeToken, + dispatch, + ], + ); // TODO: mock vaa? - const setDestGas = async () => { + const setDestGas = useCallback(async () => { if (!toNetwork) return; const gasFee = await estimateClaimGasFee(toNetwork!); dispatch(setClaimGasEst(gasFee)); - }; + }, [toNetwork, dispatch]); useEffect(() => { const valid = isTransferValid(validations); @@ -171,6 +192,9 @@ function Send(props: { valid: boolean }) { destGasPayment, toNativeToken, relayerFee, + automaticRelayAvail, + setDestGas, + setSendingGas, ]); useEffect(() => { @@ -203,12 +227,14 @@ function Send(props: { valid: boolean }) { ) : ( <>
- - By proceeding, you agree to the{' '} - dispatch(setRoute('terms'))} href="#"> - Terms of Service - - + By proceeding, you agree to the + dispatch(setRoute('terms'))} + rel="noreferrer" + > + Terms of Use +
); diff --git a/wormhole-connect/src/views/Redeem/AddToWallet.tsx b/wormhole-connect/src/views/Redeem/AddToWallet.tsx index 00fdede4f..25a1a4858 100644 --- a/wormhole-connect/src/views/Redeem/AddToWallet.tsx +++ b/wormhole-connect/src/views/Redeem/AddToWallet.tsx @@ -109,13 +109,13 @@ function AddToWallet() { const [targetToken, setTargetToken] = useState( undefined, ); - const [targetAddress, setTargetAddress] = useState( + const [targetAddress, setTargetAddress] = useState( undefined, ); useEffect(() => { const fetchTokenInfo = async () => { - const tokenInfo = TOKENS[txData.tokenSymbol]; + const tokenInfo = TOKENS[txData.tokenKey]; const wrapped = getWrappedToken(tokenInfo); if (!wrapped.tokenId) return; const address = await getForeignAsset(wrapped.tokenId, txData.toChain); @@ -138,7 +138,10 @@ function AddToWallet() { if (isEVMChain(chainId)) { return ; - } else if (chainId === MAINNET_NETWORKS.solana?.id) { + } else if ( + chainId === MAINNET_NETWORKS.solana?.id && + targetToken.symbol !== 'WSOL' + ) { return ; } diff --git a/wormhole-connect/src/views/Redeem/Confirmations.tsx b/wormhole-connect/src/views/Redeem/Confirmations.tsx index fd10a961d..ebf66620d 100644 --- a/wormhole-connect/src/views/Redeem/Confirmations.tsx +++ b/wormhole-connect/src/views/Redeem/Confirmations.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react'; +import React, { useCallback, useEffect, useState } from 'react'; import { styled } from '@mui/material/styles'; import { makeStyles } from 'tss-react/mui'; import { LinearProgress, linearProgressClasses } from '@mui/material'; @@ -37,14 +37,15 @@ type Props = { function Confirmations(props: Props) { const { classes } = useStyles(); - const chainConfig = CHAINS[props.chain]!; - const requiredHeight = props.blockHeight + chainConfig.finalityThreshold; + const { chain, blockHeight } = props; + const chainConfig = CHAINS[chain]!; + const requiredHeight = blockHeight + chainConfig.finalityThreshold; const [currentBlock, setCurrentBlock] = useState(0); - const updateCurrentBlock = async () => { - const height = await getCurrentBlock(props.chain); + const updateCurrentBlock = useCallback(async () => { + const height = await getCurrentBlock(chain); setCurrentBlock(height); - }; + }, [chain]); useEffect(() => { updateCurrentBlock(); @@ -55,7 +56,7 @@ function Confirmations(props: Props) { clearInterval(interval); } }, 1000); - }, []); + }, [currentBlock, requiredHeight, updateCurrentBlock]); const blockDiff = currentBlock > requiredHeight ? 0 : requiredHeight - currentBlock; diff --git a/wormhole-connect/src/views/Redeem/SendFrom.tsx b/wormhole-connect/src/views/Redeem/SendFrom.tsx index e475fe3d8..e4ade9271 100644 --- a/wormhole-connect/src/views/Redeem/SendFrom.tsx +++ b/wormhole-connect/src/views/Redeem/SendFrom.tsx @@ -18,19 +18,20 @@ const getRows = (txData: any): RowsData => { txData.tokenDecimals, MAX_DECIMALS, ); - const { gasToken: sourceGasTokenSymbol } = CHAINS[txData.fromChain]; + const { gasToken: sourceGasTokenSymbol } = CHAINS[txData.fromChain]!; const sourceGasToken = TOKENS[sourceGasTokenSymbol]; const formattedGas = txData.gasFee && toDecimals(txData.gasFee, sourceGasToken.decimals, MAX_DECIMALS); const type = txData.payloadID; + const token = TOKENS[txData.tokenKey]; // manual transfers if (type === PaymentOption.MANUAL) { return [ { title: 'Amount', - value: `${formattedAmt} ${txData.tokenSymbol}`, + value: `${formattedAmt} ${token.symbol}`, }, { title: 'Gas fee', @@ -54,7 +55,7 @@ const getRows = (txData: any): RowsData => { return [ { title: 'Amount', - value: `${formattedAmt} ${txData.tokenSymbol}`, + value: `${formattedAmt} ${token.symbol}`, }, { title: 'Gas fee', @@ -62,11 +63,11 @@ const getRows = (txData: any): RowsData => { }, { title: 'Relayer fee', - value: `${formattedFee} ${txData.tokenSymbol}`, + value: `${formattedFee} ${token.symbol}`, }, { title: 'Convert to native gas token', - value: `≈ ${formattedToNative} ${txData.tokenSymbol} \u2192 ${gasToken}`, + value: `≈ ${formattedToNative} ${token.symbol} \u2192 ${gasToken}`, }, ]; }; @@ -84,7 +85,7 @@ function SendFrom() { if (!txData) return; const rows = getRows(txData); setRows(rows); - }, []); + }, [txData]); return (
diff --git a/wormhole-connect/src/views/Redeem/SendTo.tsx b/wormhole-connect/src/views/Redeem/SendTo.tsx index 525040534..86c4f5af6 100644 --- a/wormhole-connect/src/views/Redeem/SendTo.tsx +++ b/wormhole-connect/src/views/Redeem/SendTo.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react'; +import React, { useCallback, useEffect, useState } from 'react'; import { useSelector, useDispatch } from 'react-redux'; import { BigNumber, utils } from 'ethers'; import CircularProgress from '@mui/material/CircularProgress'; @@ -31,7 +31,7 @@ import { } from '../../sdk'; import { CHAINS, TOKENS } from '../../config'; import WalletsModal from '../WalletModal'; -import { GAS_ESTIMATES } from '../../config/testnet'; +import { GAS_ESTIMATES } from '../../config'; import { fetchRedeemedEvent, fetchSwapEvent } from '../../utils/events'; import Header from './Header'; @@ -68,6 +68,7 @@ const getManualRows = async ( txData: any, receiveTx?: string, ): Promise => { + const token = TOKENS[txData.tokenKey]; const { gasToken } = CHAINS[txData.toChain]!; // get gas used (if complete) or gas estimate if not @@ -81,7 +82,7 @@ const getManualRows = async ( return [ { title: 'Amount', - value: `${formattedAmt} ${txData.tokenSymbol}`, + value: `${formattedAmt} ${token.symbol}`, }, { title: receiveTx ? 'Gas fee' : 'Gas estimate', @@ -95,6 +96,7 @@ const getAutomaticRows = async ( receiveTx?: string, transferComplete?: boolean, ): Promise => { + const token = TOKENS[txData.tokenKey]; const { gasToken } = CHAINS[txData.toChain]!; // calculate the amount of native gas received @@ -145,7 +147,7 @@ const getAutomaticRows = async ( return [ { title: 'Amount', - value: `${formattedAmt} ${txData.tokenSymbol}`, + value: `${formattedAmt} ${token.symbol}`, }, { title: 'Native gas token', @@ -178,14 +180,14 @@ function SendTo() { setWalletModal(true); }; - const checkConnection = () => { + const checkConnection = useCallback(() => { if (!txData) return; const addr = wallet.address.toLowerCase(); const curAddr = wallet.currentAddress.toLowerCase(); const formattedRecipient = parseAddress(txData.toChain, txData.recipient); const reqAddr = formattedRecipient.toLowerCase(); return addr === curAddr && addr === reqAddr; - }; + }, [wallet, txData]); const [inProgress, setInProgress] = useState(false); const [isConnected, setIsConnected] = useState(checkConnection()); @@ -193,7 +195,7 @@ function SendTo() { const [openWalletModal, setWalletModal] = useState(false); // get the redeem tx, for automatic transfers only - const getRedeemTx = async () => { + const getRedeemTx = useCallback(async () => { if (redeemTx) return redeemTx; if ( vaa && @@ -211,7 +213,7 @@ function SendTo() { return redeemed.transactionHash; } } - }; + }, [redeemTx, vaa, txData, dispatch]); useEffect(() => { if (!txData) return; @@ -226,11 +228,11 @@ function SendTo() { setRows(rows); }; populate(); - }, [transferComplete]); + }, [transferComplete, getRedeemTx, txData]); useEffect(() => { setIsConnected(checkConnection()); - }, [wallet]); + }, [wallet, checkConnection]); const claim = async () => { setInProgress(true); diff --git a/wormhole-connect/src/views/WalletModal.tsx b/wormhole-connect/src/views/WalletModal.tsx index 6e9a64483..42d5cb176 100644 --- a/wormhole-connect/src/views/WalletModal.tsx +++ b/wormhole-connect/src/views/WalletModal.tsx @@ -1,4 +1,4 @@ -import React, { useEffect, useState } from 'react'; +import React, { useCallback, useEffect, useState } from 'react'; import { makeStyles } from 'tss-react/mui'; import { useDispatch, useSelector } from 'react-redux'; import { Wallet, WalletState } from '@xlabs-libs/wallet-aggregator-core'; @@ -104,34 +104,36 @@ type Props = { function WalletsModal(props: Props) { const { classes } = useStyles(); + const { chain: chainProp, type } = props; const dispatch = useDispatch(); const { fromNetwork, toNetwork } = useSelector( (state: RootState) => state.transfer, ); - const [walletOptions, setWalletOptions] = useState( - getAvailableWallets() || [], - ); - - function getAvailableWallets() { + const getAvailableWallets = useCallback(() => { const chain = - props.chain || - (props.type === TransferWallet.SENDING ? fromNetwork : toNetwork); + chainProp || (type === TransferWallet.SENDING ? fromNetwork : toNetwork); const config = CHAINS[chain!]; if (!config) return Object.values(WALLETS); return getWalletOptions(config); - } + }, [chainProp, type, fromNetwork, toNetwork]); + + const [walletOptions, setWalletOptions] = useState( + getAvailableWallets() || [], + ); useEffect(() => { const options = getAvailableWallets(); if (options) setWalletOptions(options); - }, [fromNetwork, toNetwork, props.chain]); + }, [fromNetwork, toNetwork, props.chain, getAvailableWallets]); const connect = async (walletInfo: WalletData) => { const { wallet } = walletInfo; await wallet.connect(); setWalletConnection(props.type, wallet); + const address = wallet.getAddress(); + // clear wallet when the user manually disconnects from outside the app wallet.on('disconnect', () => { wallet.removeAllListeners(); @@ -140,11 +142,16 @@ function WalletsModal(props: Props) { // when the user has multiple wallets connected and either changes // or disconnects the current wallet, clear the wallet - wallet.on('accountsChanged', () => { - wallet.disconnect(); + wallet.on('accountsChanged', (accs: string[]) => { + // disconnect only if there are no accounts, or if the new account is different from the current + const shouldDisconnect = + accs.length === 0 || (accs.length && address && accs[0] !== address); + + if (shouldDisconnect) { + wallet.disconnect(); + } }); - const address = wallet.getAddress(); if (address) { const payload = { address, type: walletInfo.type }; if (props.type === TransferWallet.SENDING) {

>>0?c+1|0:c),48),c=w+(X=v)|0,P=d,G=c=(w=f+d|0)>>>0>>0?c+1|0:c,d=de(p^w,m^c,1),c=(m=v)+N|0,c=r+(p=(f=d+_e|0)>>>0>>0?c+1|0:c)|0,_e=_=f+Ae|0,_=c=_>>>0>>0?c+1|0:c,N=d,L=m,c=Z+Te|0,c=(d=A+C|0)>>>0>>0?c+1|0:c,A=d,C=c,c=de(d^g,D^c,1),g=m=v,d=c,c=E+J|0,c=((k=t+k|0)>>>0>>0?c+1|0:c)+m|0,c=ge+(k=(m=d+k|0)>>>0>>0?c+1|0:c)|0,Z=E=m+se|0,E=c=E>>>0>>0?c+1|0:c,m=de(m^j,k^re,32),c=O+(j=v)|0,k=m,O=c=(O=l)>>>0>(l=l+m|0)>>>0?c+1|0:c,m=de(d^l,c^g,40),c=(D=v)+E|0,g=d=m+Z|0,d=de(E=d^k,j^(k=d>>>0>>0?c+1|0:c),48),c=O+(re=v)|0,O=d,E=d=l+d|0,j=c=d>>>0>>0?c+1|0:c,Z=f,H=p,d=de(x^T,R^$,1),c=(l=v)+S|0,c=U+((f=d+le|0)>>>0>>0?c+1|0:c)|0,c=ae+(p=(f=f+y|0)>>>0>>0?c+1|0:c)|0,U=y=f+V|0,y=c=y>>>0>>0?c+1|0:c,x=d,d=(f=de(f^B,p^te,32))+A|0,c=(A=v)+C|0,p=d,l=de(d^x,(B=d>>>0>>0?c+1|0:c)^l,40),c=(te=v)+y|0,y=d=l+U|0,T=de(d^f,A^(U=d>>>0>>0?c+1|0:c),48),f=de(T^Z,(c=H)^(H=v),32),c=(Z=v)+j|0,A=d=f+E|0,x=de(d^N,(C=d>>>0>>0?c+1|0:c)^L,40),c=(N=v)+_|0,_=d=x+_e|0,d=de(d^f,Z^(R=d>>>0>>0?c+1|0:c),48),c=C+($=v)|0,C=d,Z=c=(f=A)>>>0>(A=A+d|0)>>>0?c+1|0:c,d=de(A^x,N^c,1),c=we+(_e=v)|0,N=d,Te=d=ce+d|0,x=c=d>>>0>>0?c+1|0:c,f=pe,d=de(m^E,D^j,1),c=M+(m=v)|0,c=((E=h)>>>0>(h=d+h|0)>>>0?c+1|0:c)+ye|0,c=(E=(f=f+h|0)>>>0>>0?c+1|0:c)+ke|0,L=h=f+he|0,M=c=h>>>0>>0?c+1|0:c,j=d,h=de(I^Q,Y^ee,48),c=de(h^f,(D=v)^E,32),ee=d=v,I=c,f=d,c=B+H|0,c=(d=p+T|0)>>>0